@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202506051607 → 0.8.0-nightly.202506071606

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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x43a8be=_0x4bca;(function(_0x3ab24e,_0x579c66){const _0x32f964=_0x4bca,_0x4d1ff0=_0x3ab24e();while(!![]){try{const _0x58ddc0=-parseInt(_0x32f964(0x109))/0x1+parseInt(_0x32f964(0x247))/0x2*(parseInt(_0x32f964(0x168))/0x3)+-parseInt(_0x32f964(0x2ad))/0x4*(-parseInt(_0x32f964(0x1a9))/0x5)+parseInt(_0x32f964(0x173))/0x6+-parseInt(_0x32f964(0x1b7))/0x7+-parseInt(_0x32f964(0x14d))/0x8*(parseInt(_0x32f964(0x260))/0x9)+parseInt(_0x32f964(0xe4))/0xa;if(_0x58ddc0===_0x579c66)break;else _0x4d1ff0['push'](_0x4d1ff0['shift']());}catch(_0x57f9b5){_0x4d1ff0['push'](_0x4d1ff0['shift']());}}}(_0x26fc,0xf0d71));var $t=Object[_0x43a8be(0x113)],xt=(_0x5d892b,_0x5be3be,_0x552d80)=>_0x5be3be in _0x5d892b?$t(_0x5d892b,_0x5be3be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x552d80}):_0x5d892b[_0x5be3be]=_0x552d80,_=(_0x23a5e5,_0x4253d0,_0x325036)=>xt(_0x23a5e5,typeof _0x4253d0!=_0x43a8be(0x197)?_0x4253d0+'':_0x4253d0,_0x325036);import{MemberService as _0x3207c8,SessionStatus as _0x5c7ba8,CollaborationSessionService as _0x2c205b,CollaborationStatus as _0x5b5652,CollaborationController as _0x5ea1c3,ILocalCacheService as _0x2d0fce,CollaborationUIEventService as _0x517d57,CollaborationUIEventId as _0x39a5da,DataLoaderService as _0x40d53b,DocCollaborationEntity as _0x3ab3d9,getLocalCacheKey as _0x3a4652,LOCAL_CACHE_INTERVAL as _0x54e4b8,LOCAL_CACHE_INTERVAL_KEY as _0x976e1f,UniverCollaborationClientPlugin as _0x563abf,CollaborationSocketService as _0x5e3805,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x84207d,DEFAULT_WS_SESSION_TICKET_URL as _0x3bd64d,UnitStatus as _0x5d0f43,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5a9f90,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x444213}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x53a758,Disposable as _0x518b39,DOC_RANGE_TYPE as _0xb6a4bc,Inject as _0x31fbf2,Injector as _0x5a1f22,IUniverInstanceService as _0x3d8fed,ICommandService as _0x290d3b,debounce as _0x1cf752,Rectangle as _0x29dd00,DisposableCollection as _0x1d11bd,toDisposable as _0x33b3e6,UniverInstanceType as _0x2eec1c,Tools as _0x430170,COLORS as _0x50c85a,ColorKit as _0x63e883,ThemeService as _0x527360,fromEventSubject as _0x45bd83,LocaleService as _0x2959ab,createIdentifier as _0x4cfad9,ILogService as _0x5ac3a6,Optional as _0x426fa7,Workbook as _0x2762ea,CommandType as _0x581c36,IConfigService as _0x53ad44,ILocalStorageService as _0x57ecc4,DependentOn as _0x50b29c,Plugin as _0x49ef6b,merge as _0x72f98d,registerDependencies as _0x1b7cdc,mergeOverrideWithDependencies as _0x5cab48,touchDependencies as _0x1438c5,generateRandomId as _0x52c335}from'@univerjs/core';import{Shape as _0x5b6e4a,Rect as _0x27147d,getColor as _0x148ba5,RegularPolygon as _0x2f3f33,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x47710d,Vector2 as _0x359c15,SHEET_VIEWPORT_KEY as _0x42695b,IRenderManagerService as _0x4f9c3c}from'@univerjs/engine-render';import{ISocketService as _0x5978c1,WebSocketService as _0x3950ab,HTTPService as _0x663635}from'@univerjs/network';import{IDocClipboardService as _0x204999,NodePositionConvertToCursor as _0x97c42b,NodePositionConvertToRectRange as _0x24a4b4,TEXT_RANGE_LAYER_INDEX as _0x313fe,SetDocZoomRatioOperation as _0x282840,DocIMEInputManagerService as _0x5a5cb8,DocStateChangeManagerService as _0x10cd4b}from'@univerjs/docs-ui';import{IImageIoService as _0x4af938}from'@univerjs/drawing';import{BehaviorSubject as _0x4db302,debounceTime as _0x500aac,takeUntil as _0x31b790,Subject as _0x1564c1,filter as _0x5263e2,switchMap as _0x1b30c1,merge as _0x4d7caf,combineLatest as _0x382251,of as _0x5f5a1a,fromEvent as _0x2b0b52,shareReplay as _0x295263,mapTo as _0x279763,distinctUntilChanged as _0x473aac}from'rxjs';import{SetTextSelectionsOperation as _0x47c6dc,RichTextEditingMutation as _0x1ec75e,DocSelectionManagerService as _0x325118,DocSkeletonManagerService as _0x4a61d8}from'@univerjs/docs';import{ITransformService as _0x282ab3,CollaborationEvent as _0x4a998d,isTransformMutationFailure as _0x4381f3,isTransformMutationsWithChangesetSuccess as _0x591b6f,RevisionService as _0x290a0b,ISnapshotServerService as _0x55775}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x451de4,serializeRangeWithSheet as _0xb5b502}from'@univerjs/engine-formula';import{RefRangeService as _0x12325d,SetSelectionsOperation as _0x13ca5b,SheetsSelectionsService as _0x5d4575,EffectRefRangId as _0x1e0cac,handleIRemoveRow as _0x406851,handleIRemoveCol as _0x234d75,handleMoveRange as _0x1c7ba5,handleInsertRow as _0x2d3f27,handleInsertRangeMoveRight as _0x431fb5,handleInsertRangeMoveDown as _0x3cc041,handleInsertCol as _0x1f3f71,handleDeleteRangeMoveUp as _0x54066d,handleDeleteRangeMoveLeft as _0x2c2cab,runRefRangeMutations as _0x1886b2,SetWorksheetActivateCommand as _0x3b96e7}from'@univerjs/sheets';function _0x26fc(){const _0x1f7da2=['cursorInfo$','transformIMECache','save','blue.400','_hovered','_collabCursorState$','4322IAsoAG','_docStateChangeManagerService','_notificationService','error','_color','transformRemoteChangeset','path','InsertRangeMoveRightCommandId','unitID','SNAPSHOT_INVALID_SNAPSHOT','...','INVALID_ARGUMENT','setInterval','icon','Warning','APPLY_REVISION_CONFILICT','getDocRanges','_createSocketURL','asObservable','_updateCollabCursors','getUniverSheetInstance','getConfig','_backgroundColor','arc','Unknown\x20user','13823001QuTilL','transformByState','collabStatus.fetchMiss','_getSessionTicket','COMPLETION_FINISHED','range','defs','loadOfflineData','replace','_toggleOnline','fill','getFocusedUnit','DeleteRangeMoveUpCommandId','with','_colorAssignService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','type','Failed','_getSaveTimeout','size','className','redoState','INVITE_CODE_HAS_BEEN_UES','_init','USERS_LEAVE','prototype','registerBeforeClose','_registerRenderDependencies','_cursorShapes','setParam','YUUMI_ASYNCIO_CANCELLED','setShapeProps','setUndoRedoMutationParamsCache','getMergeData','getSheetBySheetId','_onCursorDelete','_logService','CONFLICT','LICENSE_DISTRO_REJECTED','getMemberID','column','_initCommandExecutedListener','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getMember','mask','endColumn','off-line-icon_clip0_910_343','getCollabCursors$','svg','invokeId','extend','APPLY_REJECT','_beforeCloseService','getRelativeToViewportCoord','toRgbString','InsertRowCommandId','_getSheetObject','exhaustSavingTask','transformStateCache','string','UNRECOGNIZED','name','_setupSubUnitSync','collab-rect-range-','push','init','_scheduleSaving','_scheduleClearOtherTimer','YUUMI_TABLE_NOT_FOUND_IN_UNIT','hovered','ticket','onMouseMove','permission.content','_sheetSkeletonManagerService','_clearOtherTimers','WECHAT_HAS_BEEN_BOUND','_labelPosition','4OJfXDk','roomMembers','measureText','dispose','_heartbeatTimer','collab-client.tooltip.reconnect','requireSession','_removeClearOtherTimer','focused$','YUUMI_NO_CUBOID_FOR_QUESTION','_session','INVITE_CODE_REQUIRED','function','toString','_eventUnsubscribe','unit','activeSheet$','_docClipboardService','text','registerRefRange','eventID','forEach','top','_scheduleHeartbeat','_toggleOffline','isEditing','_commandService','_cursors','urlChange$','startColumn','generateRandomId','YUUMI_URL_COL_OUT_OF_RANGE','UPDATE_CURSOR','startRow','OTHER_CLIENTS_EDITING','ENSURE_SNAPSHOT_EXECUTION','dispose$','_configService','_initDependencies','purple.300','_transformPreviousActiveRange','_drawRectRange','url(#off-line-icon_clip0_910_343)','transformMutationsWithChangeset','_cursorInfo$','session.will-retry','UNIVER_DOC','attrs','indexOf','href','findNodePositionByCharIndex','getCellPositionByOffset','max','complete','beginPath','_entityInit$','clearInterval','InsertRangeMoveDownCommandId','VIEW_MAIN','_docTransformSelectionsService','mutations','24463630mixQBO','disposeUnit','use','_registerDependencies','_removeCollabCursors','_localStorageService','_transformUndoRedoStack','setAlpha','next','LOGIN_FAILED','YUUMI_SUBSCRIPTION_NOT_FOUND','getUnhiddenWorksheets','syncEditingCollabCursor','reconnect','sheetID','replaceState','_startDocCollabCursor','_renderManagerService','fillStyle','AWAITING','textRanges','labelPosition','currentTheme$','getCollabEntity$','assignAColorForMemberID','_docSyncEditingCollabCursorService','getAncestorScale','_handleHover','UNDEFINED','then','_localeService','getCurrentUnitForType','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','_textBubble','color','OnLineIcon','getViewport','1805769hhnYlH','getCurrent','_transformHistoryAndStateStack','_univerInstanceService','createInstance','_themeService','map','_config','history','onStarting','defineProperty','INVITE_CODE_ALREADY_BOUND','_scene','fillRule','concat','SOCKET_FAILED','collabStatus.synced','setStateCache','getTypeOfUnitAdded$','_status$','undoState','_name','event$','SUBMIT_CHANGESET_TIMEOUT','_drawAnchor','_getScale','height','_anchor','flatMap','setActiveRange','includes','ONLINE','registerRenderModule','onCommandExecuted','ACTIVE_UNIT_EVENT_CHANNEL','subscribeEvent','http://www.w3.org/2000/svg','RECT','M0\x200H16V16H0z','getSheetId','editingUnit','CONNECTOR_DATA_TOO_LARGE','entityInit$','addObjects','_initStatusComponent','unsubscribe','getOwnPropertyDescriptor','_docTransformIMECacheService','location','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','m2Prime','getParam','addClipboardHook','executeCommand','setItem','origin','_updateURLWithCurrentState','getOffsetConfig','getUnitStatus$','clipPath','_colorIndex','unitId','onPointerMove$','registerComponent','add','_collabSessionService','roomMembers$','_transformService','8OLAieZ','getSkeleton','MoveRangeCommandId','whenReady','resize','_refRangeService','InsertColCommandId','PERMISSION_DENIED','_refreshCollabCursors','selections','updateOfflineData','closePath','isArray','restore','assign','currentSkeleton$','getOwnPropertySymbols','doc.mutation.rich-text-editing','_cachedData','_disabled','set','SNAPSHOT_HAS_BEEN_REMOVED','NO_OTHER_CLIENTS_EDITING','_memberService','_updateLocalCursor','_send','onTransformChange$','1983PJTrNC','APPLY_PERMISSION_DENIED','[CollaborationDataLoaderController]','permission.title','parse','sessionStatus$','APPLY_NON_SEQUENTIAL_REVISION','children','RemoveRowCommandId','pipe','_dataLoaderService','6056196AhRQaW','0\x200\x2016\x2016','transformSelections','PY_RUNTIME_SCRIPT_ERROR','moveTo','fillText','translate(.97)','pushState','runId','_online','none','_startSheetCollabCursor','subunit','_roomMembers$','m1Prime','_getMergeRange','univer-flex\x20univer-mr-2\x20univer-text-xl','xlink:href','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','USER_NOT_INVITED_CODE','application/json','saveOfflineData','UNIVER_SHEET','YUUMI_RATE_OVER_LIMIT','lineTo','get','UNAUTHENTICATED','_messageService','url(#$1','disableLocalCache','getActiveRange','_initStatusListener','TOO_MANY_REQUESTS','removeParam','unload','FromArray','symbol','LICENSE_MAX_UNITS_EXCEEDED','selection','delete','_entities','_getAnchorBounding','from','ALREADY_EXISTS','_draw','round','Error','min','_hover','_anchorDot','params','currentColor','HEADER_MENU','_ensureSubject','523465VoqwMy','LICENSE_IMPORT_SIZE_EXCEEDED','data','docStateChange$','_saveTaskMap','onPointerLeave$','_shapes','entries','onPointerEnter$','_handleLeaveEvent','APPLY_DUPLICATED','CHANGESET_REVISION_CONFILICT','EMAIL_HAS_BEEN_BOUND','setTimeout','4624928HfibUr','subscribe','backgroundColor','collaboration-client-ui.config','search','_id','endRow','collab-text-anchor-','disposeWithMe','isActive','clearTimeout','idSuffix','_uiPartsService','has','AWAITING_WITH_PENDING','getTypeOfUnitDisposed$','show','white','0\x200\x2017\x2016','/run/','setConfig','getStateCache','cursorInfo','triggerDblclick','drawWith','_onRefRangeChange','red.300','_instanceService','collabStatus.syncing','getUnitId','collabStatus.offline','NOT_FOUND','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','tag','evenodd','_saveCache','debug','on-line-icon_clip0_910_349','_syncEditingCollabCursorService','FETCH_MISS','LICENSE_EXPORT_SIZE_EXCEEDED','session.collaboration-timeout','JOIN_ROOM_FAILED','_render','some','post','getCurrentRevOfUnit','width','getActiveSheet','addObject','jiqing.500','_unitOnClients','_urlService','YUUMI_AI_RUN_FAILED','collab-text-range-','_handleHeartbeatEvent','getValue','colorChannel1','call','YUUMI_UNABLE_LOAD_URL','div','_collabCursorController','collabCursorState$','send','stringify','INTERNAL_ERROR','substring','_initEntityListener','NOT_COLLAB','makeDirty','UniverIcon','_handleEvent','_hideTimer','row','saveImage','body','current','collaboration-client.offline-data-not-saved','_initResize','executionId','propertyIsEnumerable','_cursor','result','1em','actions','PENDING','deepClone','getItem','unshift','OffLineIcon','_context','pluginName','getCurrentSelections','_onCursorUpdate','saveTaskMap','DeleteRangeMoveLeftCommandId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getRenderById','key','getColorFromTheme','collabStatus.notCollab','_document','black','addEventListener','_collaborationUIEventService','_doCreateSocket','_injector','YUUMI_ALL_TABLES_IS_INVALID','_range','searchParams','uni.network.url-service','sessionTicket','length','_lastPointer','_docTransformStateCacheService','_docSkeletonManagerService','bottom','status$','_collaborationController','_docSkeleton','_updateSubUnitFromURLParams','getRangePointData','_initEvent','CLOSE_ROOM','newValue','transformMutation','_imageIoService','rgba(255,\x20255,\x20255,\x200.01)','addHandlerCallback','_localCacheService','_httpService','hide','values','_selfUnitIDs','split','_unitStatus','skeleton','ranges'];_0x26fc=function(){return _0x1f7da2;};return _0x26fc();}import{map as _0x1b5b3c,filter as _0x8a17ca,throttleTime as _0x37fc0e,takeUntil as _0x968360,switchMap as _0x4861e7}from'rxjs/operators';import{SheetSkeletonManagerService as _0x4a15a3,getCoordByCell as _0x2ea3f6,getSheetObject as _0x11974c}from'@univerjs/sheets-ui';import{jsx as _0x37564b,jsxs as _0x55b2b1}from'react/jsx-runtime';import{useObservable as _0xc35486,useDependency as _0xb33446,IUIPartsService as _0x35398f,BuiltInUIPart as _0xe0d7c4,connectInjector as _0x194d6d,IBeforeCloseService as _0x34ba9f,IMessageService as _0x9bedeb,INotificationService as _0xcb6622}from'@univerjs/ui';import{Tooltip as _0x57de25,clsx as _0xe6900d,MessageType as _0x1b6d69}from'@univerjs/design';import{forwardRef as _0x44303b,useRef as _0x2ef2f1,createElement as _0x691609,useCallback as _0x121f9a}from'react';import{IRemoteInstanceService as _0x2f1561}from'@univerjs/rpc';var ci=Object['getOwnPropertyDescriptor'],li=(_0x4cc6fe,_0x37799b,_0x229c4e,_0x1a407b)=>{const _0x524abb=_0x43a8be;for(var _0x54e3d7=_0x1a407b>0x1?void 0x0:_0x1a407b?ci(_0x37799b,_0x229c4e):_0x37799b,_0x25eb65=_0x4cc6fe[_0x524abb(0x227)]-0x1,_0x4442ee;_0x25eb65>=0x0;_0x25eb65--)(_0x4442ee=_0x4cc6fe[_0x25eb65])&&(_0x54e3d7=_0x4442ee(_0x54e3d7)||_0x54e3d7);return _0x54e3d7;},Je=(_0x352511,_0x3b2b8b)=>(_0x129ee1,_0x18dd78)=>_0x3b2b8b(_0x129ee1,_0x18dd78,_0x352511);let Ne=class extends _0x53a758{constructor(_0x8862b2,_0x53e0b1){const _0x3d8c88=_0x43a8be;super(),this[_0x3d8c88(0x2be)]=_0x8862b2,this['_imageIoService']=_0x53e0b1,this['_init']();}['_init'](){const _0x523883=_0x43a8be,_0x158207=this;this[_0x523883(0x1bf)](this['_docClipboardService'][_0x523883(0x13d)]({'onBeforePasteImage':async _0x3d37f7=>{const _0x157dce=_0x523883,_0x253974=await _0x158207[_0x157dce(0x235)][_0x157dce(0x201)](_0x3d37f7);return _0x253974?{'source':_0x253974['source'],'imageSourceType':_0x253974['imageSourceType']}:null;}}));}};Ne=li([Je(0x0,_0x204999),Je(0x1,_0x4af938)],Ne);const Ze=[_0x43a8be(0xce),_0x43a8be(0x1e9),'green.600',_0x43a8be(0x1d1),_0x43a8be(0x244),'yellow.400'];class ke extends _0x518b39{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x43a8be(0xfc)](_0x3682c4){const _0x1005f0=_0x43a8be;if(this['_assignedColors'][_0x1005f0(0x1c4)](_0x3682c4))return this['_assignedColors']['get'](_0x3682c4);const _0x385531=Ze[this[_0x1005f0(0x145)]];return this[_0x1005f0(0x145)]=(this['_colorIndex']+0x1)%Ze[_0x1005f0(0x227)],this['_assignedColors'][_0x1005f0(0x161)](_0x3682c4,_0x385531),_0x385531;}}function Tt(_0x1392c4){const _0x2dadf0=_0x43a8be;let _0x122043='';for(const _0x4d9dd1 of _0x1392c4){const {startOffset:_0x415aa4,endOffset:_0x2f29e2,isActive:_0x1e2626,rangeType:_0x47730c,segmentId:_0x27fe15,segmentPage:_0x5778a0}=_0x4d9dd1;_0x122043[_0x2dadf0(0x227)]&&(_0x122043+=','),_0x122043+=_0x415aa4+':'+_0x2f29e2+':'+(_0x1e2626?'1':'0')+':'+_0x47730c+':'+_0x27fe15+':'+_0x5778a0;}return _0x122043;}function _i(_0x2a9a14){const _0x42324c=_0x43a8be,_0x3bb165=_0x2a9a14[_0x42324c(0x23d)](','),_0x540489=[];for(const _0x15a555 of _0x3bb165){const [_0x1e1ffe,_0x2042b4,_0x469d81,_0x279d84,_0x3cb098,_0x4effc4]=_0x15a555[_0x42324c(0x23d)](':');_0x540489['push']({'startOffset':Number(_0x1e1ffe),'endOffset':Number(_0x2042b4),'collapsed':_0x1e1ffe===_0x2042b4,'isActive':_0x469d81==='1','rangeType':_0x279d84===_0xb6a4bc['TEXT']?_0xb6a4bc['TEXT']:_0xb6a4bc['RECT'],'segmentId':typeof _0x3cb098==_0x42324c(0x29b)?String(_0x3cb098):'','segmentPage':Number(_0x4effc4!=null?_0x4effc4:-0x1)});}return _0x540489[_0x42324c(0x1e3)](_0x44e46f=>_0x44e46f[_0x42324c(0x1c0)])||(_0x540489[0x0][_0x42324c(0x1c0)]=!0x0),_0x540489;}class He extends _0x53a758{constructor(){const _0x13c996=_0x43a8be;super(...arguments),_(this,_0x13c996(0x246),new _0x4db302(null)),_(this,'collabCursorState$',this[_0x13c996(0x246)]['asObservable']());}[_0x43a8be(0xf0)](_0x1afedd){const _0x4148ec=_0x43a8be,{unitID:_0x526219,memberID:_0x399a47,textRanges:_0x5eea8b}=_0x1afedd,_0x577446=Tt(_0x5eea8b);if(_0x577446==='')return;const _0x5c53ef={'unitID':_0x526219,'memberID':_0x399a47,'selection':_0x577446};this[_0x4148ec(0x246)]['next'](_0x5c53ef);}}var hi=Object[_0x43a8be(0x137)],ui=(_0x4882b5,_0x53207c,_0x9c0b2d,_0xceba40)=>{const _0x1158a6=_0x43a8be;for(var _0x5bc22d=_0xceba40>0x1?void 0x0:_0xceba40?hi(_0x53207c,_0x9c0b2d):_0x53207c,_0x235b6a=_0x4882b5[_0x1158a6(0x227)]-0x1,_0x16c0b7;_0x235b6a>=0x0;_0x235b6a--)(_0x16c0b7=_0x4882b5[_0x235b6a])&&(_0x5bc22d=_0x16c0b7(_0x5bc22d)||_0x5bc22d);return _0x5bc22d;},P=(_0x5dce02,_0x63243b)=>(_0x454094,_0x41cf13)=>_0x63243b(_0x454094,_0x41cf13,_0x5dce02);const di=0x12c,fi=0x64;let Ue=class extends _0x53a758{constructor(_0x2d7971,_0x377e09,_0x4ae36e,_0x2ccf85,_0x1bb81e,_0x2fc86d,_0x3b8f2d,_0x1dd6fd,_0xa52a55){const _0x5a9753=_0x43a8be;super(),_(this,_0x5a9753(0x17c),!0x1),_(this,_0x5a9753(0x277),!0x1),_(this,_0x5a9753(0xd3),new _0x4db302(new Map())),_(this,_0x5a9753(0x241),this['_cursorInfo$'][_0x5a9753(0x259)]()),_(this,_0x5a9753(0x180),new _0x4db302([])),_(this,_0x5a9753(0x14b),this[_0x5a9753(0x180)][_0x5a9753(0x171)](_0x500aac(di))),_(this,_0x5a9753(0x165),_0x1cf752(_0x4516dc=>{const _0xae4393=_0x5a9753,_0x5cd92b={'eventID':_0x4a998d[_0xae4393(0x2cd)],'data':{'unitID':this['unitID'],'memberID':this[_0xae4393(0x2b7)][_0xae4393(0x287)](),'selection':Tt(_0x4516dc)}};this[_0xae4393(0x2b7)][_0xae4393(0x1f6)](_0x5cd92b,this[_0xae4393(0x24f)]);},fi)),(this['unitID']=_0x2d7971,this[_0x5a9753(0x2b7)]=_0x377e09,this[_0x5a9753(0x221)]=_0x4ae36e,this['_colorAssignService']=_0x2ccf85,this[_0x5a9753(0x164)]=_0x1bb81e,this['_syncEditingCollabCursorService']=_0x2fc86d,this['_transformService']=_0x3b8f2d,this['_univerInstanceService']=_0x1dd6fd,this[_0x5a9753(0x2c7)]=_0xa52a55);}get['cursorInfo'](){const _0x239d17=_0x43a8be;return this[_0x239d17(0xd3)][_0x239d17(0x1ef)]();}get[_0x43a8be(0x2ae)](){const _0x571632=_0x43a8be;return this['_roomMembers$'][_0x571632(0x1ef)]();}[_0x43a8be(0x2b0)](){const _0x108c41=_0x43a8be;super[_0x108c41(0x2b0)](),this[_0x108c41(0xd3)][_0x108c41(0xec)](new Map()),this['_cursorInfo$']['complete'](),this[_0x108c41(0x180)][_0x108c41(0xec)]([]),this[_0x108c41(0x180)][_0x108c41(0xdc)]();}[_0x43a8be(0x2a1)](){const _0x4c554d=_0x43a8be;this[_0x4c554d(0x277)]||(this[_0x4c554d(0x277)]=!0x0,this[_0x4c554d(0x2b7)][_0x4c554d(0x16d)][_0x4c554d(0x171)](_0x31b790(this[_0x4c554d(0xcb)]))['subscribe'](_0x182d22=>{const _0x5c7d23=_0x4c554d;_0x182d22===_0x5c7ba8[_0x5c7d23(0x128)]?this[_0x5c7d23(0x269)]():this[_0x5c7d23(0x2c5)]();}),this[_0x4c554d(0x2b7)][_0x4c554d(0x11f)][_0x4c554d(0x171)](_0x31b790(this[_0x4c554d(0xcb)]))[_0x4c554d(0x1b8)](_0xfbd63b=>{const _0x1716c2=_0x4c554d,_0x19b5ee=_0xfbd63b['eventID'];_0x19b5ee===_0x4a998d['UPDATE_CURSOR']&&this[_0x1716c2(0x214)](_0xfbd63b),_0x19b5ee===_0x4a998d[_0x1716c2(0x278)]&&this[_0x1716c2(0x283)](_0xfbd63b);}),this['disposeWithMe'](this[_0x4c554d(0x2c7)][_0x4c554d(0x12a)](_0x553b28=>{const _0x38829f=_0x4c554d,_0x286386=_0x553b28[_0x38829f(0x1a5)];_0x286386!=null&&this[_0x38829f(0x17c)]&&_0x553b28['id']===_0x47c6dc['id']&&_0x286386[_0x38829f(0x146)]===this[_0x38829f(0x24f)]&&_0x286386[_0x38829f(0x2c6)]===!0x1&&_0x286386[_0x38829f(0x240)][_0x38829f(0x227)]>0x0&&this[_0x38829f(0x165)](_0x286386['ranges']);})),this[_0x4c554d(0x1dd)][_0x4c554d(0x1f5)][_0x4c554d(0x171)](_0x31b790(this[_0x4c554d(0xcb)]))[_0x4c554d(0x1b8)](_0x58c982=>{const _0x20004f=_0x4c554d;if((_0x58c982==null?void 0x0:_0x58c982[_0x20004f(0x24f)])!==this['unitID'])return;const _0x363ea8={'eventID':_0x4a998d[_0x20004f(0x2cd)],'data':_0x58c982};this[_0x20004f(0x214)](_0x363ea8);}),this[_0x4c554d(0x1bf)](this[_0x4c554d(0x2c7)][_0x4c554d(0x12a)](_0x509746=>{const _0x4c097b=_0x4c554d;if(_0x509746[_0x4c097b(0x1a5)]==null)return;const _0x50c546=_0x509746[_0x4c097b(0x1a5)];if(_0x509746['id']!==_0x1ec75e['id']||_0x50c546[_0x4c097b(0x146)]!==this[_0x4c097b(0x24f)])return;const _0x1bd7b3={'id':'doc.mutation.rich-text-editing','params':_0x50c546},_0xa34989=this[_0x4c097b(0x1cd)];for(const [_0x4305e3,_0x3b5d73]of _0xa34989){const _0xd51223={'id':_0x4c097b(0x15e),'params':{'unitId':this[_0x4c097b(0x24f)],'actions':null,'textRanges':_0x3b5d73[_0x4c097b(0x240)]}},_0x420cf9=this[_0x4c097b(0x14c)][_0x4c097b(0x234)](_0x1bd7b3,_0xd51223,!0x1);if(_0x4381f3(_0x420cf9))throw _0x420cf9[_0x4c097b(0x24a)];_0xa34989['set'](_0x4305e3,{..._0x3b5d73,'ranges':_0x420cf9['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0x47325a=_0x4c097b;this['_cursorInfo$'][_0x47325a(0xec)](_0xa34989);});})));}['_onCursorUpdate'](_0x344481){const _0x28a03f=_0x43a8be;var _0x366dfc,_0x324c9e;const {memberID:_0x2ce621,selection:_0x3f0282}=_0x344481['data'],_0x5115cd=_i(_0x3f0282),_0x2ee1fe=(_0x324c9e=(_0x366dfc=this[_0x28a03f(0x164)][_0x28a03f(0x28b)](this[_0x28a03f(0x24f)],_0x2ce621))==null?void 0x0:_0x366dfc[_0x28a03f(0x29d)])!=null?_0x324c9e:_0x28a03f(0x25f),_0x1c6cb7={'color':this[_0x28a03f(0x26e)][_0x28a03f(0xfc)](_0x2ce621),'name':_0x2ee1fe,'ranges':_0x5115cd},_0x29b6ee=this['cursorInfo'];_0x29b6ee[_0x28a03f(0x161)](_0x2ce621,_0x1c6cb7),this[_0x28a03f(0xd3)][_0x28a03f(0xec)](_0x29b6ee);}[_0x43a8be(0x283)](_0x37ddaa){const _0x145177=_0x43a8be,{memberID:_0x59ee99}=_0x37ddaa[_0x145177(0x1ab)],_0x4b00f4=this['cursorInfo'];_0x4b00f4['delete'](_0x59ee99),this[_0x145177(0xd3)]['next'](_0x4b00f4);}[_0x43a8be(0x269)](){const _0x3689a0=_0x43a8be;var _0x5e3ab3;if(this['_online']=!0x0,((_0x5e3ab3=this['_univerInstanceService'][_0x3689a0(0x26b)]())==null?void 0x0:_0x5e3ab3[_0x3689a0(0x1d4)]())!==this[_0x3689a0(0x24f)])return;const _0x56883a=this['_injector'][_0x3689a0(0x18c)](_0x325118)[_0x3689a0(0x257)]();Array['isArray'](_0x56883a)&&_0x56883a['length']>0x0&&this['_updateLocalCursor'](_0x56883a);}[_0x43a8be(0x2c5)](){this['_online']=!0x1;}};Ue=ui([P(0x2,_0x31fbf2(_0x5a1f22)),P(0x3,_0x31fbf2(ke)),P(0x4,_0x31fbf2(_0x3207c8)),P(0x5,_0x31fbf2(He)),P(0x6,_0x282ab3),P(0x7,_0x3d8fed),P(0x8,_0x290d3b)],Ue);var Si=Object['getOwnPropertyDescriptor'],mi=(_0x584503,_0x4d0d9d,_0x1cab24,_0x1a00d1)=>{for(var _0x3996bb=_0x1a00d1>0x1?void 0x0:_0x1a00d1?Si(_0x4d0d9d,_0x1cab24):_0x4d0d9d,_0x42baea=_0x584503['length']-0x1,_0x293e4e;_0x42baea>=0x0;_0x42baea--)(_0x293e4e=_0x584503[_0x42baea])&&(_0x3996bb=_0x293e4e(_0x3996bb)||_0x3996bb);return _0x3996bb;},x=(_0x33ac79,_0x482532)=>(_0x56b4d3,_0x5a12df)=>_0x482532(_0x56b4d3,_0x5a12df,_0x33ac79);const Ii=0x12c,gi=0x64,vi=()=>{let _0x3a55b5=[],_0x36917f=!0x1;return _0x2dfd69=>{const _0x3b4fab=_0x4bca;_0x3a55b5[_0x3b4fab(0x2a0)](_0x2dfd69),_0x36917f||(_0x36917f=!0x0,setTimeout(()=>{_0x3a55b5['forEach'](_0x36e00c=>_0x36e00c()),_0x3a55b5=[],_0x36917f=!0x1;}));};};function _0x4bca(_0x34af22,_0xe9c240){const _0x26fc85=_0x26fc();return _0x4bca=function(_0x4bcabf,_0x2078b7){_0x4bcabf=_0x4bcabf-0xc9;let _0x433bd2=_0x26fc85[_0x4bcabf];return _0x433bd2;},_0x4bca(_0x34af22,_0xe9c240);}let Me=class extends _0x53a758{constructor(_0x60ece4,_0x14ffe5,_0x35be82,_0x2d4bf7,_0x2698e4,_0x29b461,_0x512470,_0x8d9912){const _0x4aa097=_0x43a8be;super(),_(this,_0x4aa097(0x17c),!0x1),_(this,_0x4aa097(0x277),!0x1),_(this,_0x4aa097(0xd3),new _0x4db302(new Map())),_(this,_0x4aa097(0x241),this[_0x4aa097(0xd3)][_0x4aa097(0x259)]()),_(this,_0x4aa097(0x180),new _0x4db302([])),_(this,_0x4aa097(0x14b),this[_0x4aa097(0x180)]['pipe'](_0x500aac(Ii))),_(this,_0x4aa097(0x165),_0x1cf752((_0x417ad1,_0x26ad78)=>{const _0x59a98d=_0x4aa097,_0x48643d={'eventID':_0x4a998d[_0x59a98d(0x2cd)],'data':{'unitID':this[_0x59a98d(0x24f)],'memberID':this[_0x59a98d(0x2b7)][_0x59a98d(0x287)](),'selection':_0xb5b502(_0x417ad1,_0x26ad78[_0x59a98d(0x265)])}};this[_0x59a98d(0x2b7)][_0x59a98d(0x1f6)](_0x48643d,this[_0x59a98d(0x24f)]);},gi)),(this['unitID']=_0x60ece4,this[_0x4aa097(0x2b7)]=_0x14ffe5,this[_0x4aa097(0x221)]=_0x35be82,this[_0x4aa097(0x26e)]=_0x2d4bf7,this[_0x4aa097(0x164)]=_0x2698e4,this[_0x4aa097(0x10c)]=_0x29b461,this[_0x4aa097(0x2c7)]=_0x512470,this[_0x4aa097(0x152)]=_0x8d9912);}get[_0x43a8be(0x1cd)](){const _0x2ab909=_0x43a8be;return this['_cursorInfo$'][_0x2ab909(0x1ef)]();}get[_0x43a8be(0x2ae)](){const _0x2857de=_0x43a8be;return this[_0x2857de(0x180)][_0x2857de(0x1ef)]();}['dispose'](){const _0x5dc9e4=_0x43a8be;super[_0x5dc9e4(0x2b0)](),this[_0x5dc9e4(0xd3)][_0x5dc9e4(0xec)](new Map()),this['_cursorInfo$'][_0x5dc9e4(0xdc)](),this[_0x5dc9e4(0x180)][_0x5dc9e4(0xec)]([]),this[_0x5dc9e4(0x180)][_0x5dc9e4(0xdc)]();}[_0x43a8be(0x2a1)](){const _0x300d75=_0x43a8be;this[_0x300d75(0x277)]||(this[_0x300d75(0x277)]=!0x0,this[_0x300d75(0x2b7)][_0x300d75(0x16d)][_0x300d75(0x171)](_0x31b790(this['dispose$']))[_0x300d75(0x1b8)](_0x5dc3cb=>{const _0xea1b3a=_0x300d75;_0x5dc3cb===_0x5c7ba8[_0xea1b3a(0x128)]?this['_toggleOnline']():this[_0xea1b3a(0x2c5)]();}),this[_0x300d75(0x2b7)][_0x300d75(0x11f)][_0x300d75(0x171)](_0x31b790(this[_0x300d75(0xcb)]))[_0x300d75(0x1b8)](_0x1cf132=>{const _0x4baacf=_0x300d75,_0x5cf7b8=_0x1cf132[_0x4baacf(0x2c1)];_0x5cf7b8===_0x4a998d[_0x4baacf(0x2cd)]&&this[_0x4baacf(0x214)](_0x1cf132),_0x5cf7b8===_0x4a998d[_0x4baacf(0x278)]&&this['_onCursorDelete'](_0x1cf132);}),this[_0x300d75(0x1d0)](),this[_0x300d75(0x1bf)](this[_0x300d75(0x2c7)][_0x300d75(0x12a)](_0x5545c1=>{const _0x3e221f=_0x300d75;if(this[_0x3e221f(0x17c)]&&_0x5545c1['id']===_0x13ca5b['id']&&_0x5545c1[_0x3e221f(0x1a5)][_0x3e221f(0x146)]===this[_0x3e221f(0x24f)]){const _0x1d3548=_0x5545c1[_0x3e221f(0x1a5)];this[_0x3e221f(0x165)](_0x1d3548['subUnitId'],_0x1d3548[_0x3e221f(0x156)][0x0]);}})));}[_0x43a8be(0x214)](_0xf86e0a){const _0x5cc2e9=_0x43a8be;var _0x51f04a,_0x2c1c55;const {memberID:_0x1d4e22,selection:_0x22d5c2}=_0xf86e0a[_0x5cc2e9(0x1ab)],{sheetName:_0x16c980,range:_0x5b6604}=_0x451de4(_0x22d5c2),_0x551193={'name':(_0x2c1c55=(_0x51f04a=this[_0x5cc2e9(0x164)][_0x5cc2e9(0x28b)](this[_0x5cc2e9(0x24f)],_0x1d4e22))==null?void 0x0:_0x51f04a[_0x5cc2e9(0x29d)])!=null?_0x2c1c55:_0x5cc2e9(0x25f),'range':this['_getMergeRange'](_0x16c980,_0x5b6604),'sheetID':_0x16c980,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1d4e22),'selection':_0x22d5c2},_0x5077ae=this['cursorInfo'];_0x5077ae[_0x5cc2e9(0x161)](_0x1d4e22,_0x551193),this[_0x5cc2e9(0xd3)][_0x5cc2e9(0xec)](_0x5077ae);}[_0x43a8be(0x283)](_0x5809c9){const _0x536485=_0x43a8be,{memberID:_0x1cf340}=_0x5809c9['data'],_0x25477c=this[_0x536485(0x1cd)];_0x25477c['delete'](_0x1cf340),this[_0x536485(0xd3)][_0x536485(0xec)](_0x25477c);}[_0x43a8be(0x182)](_0x482585,_0x4bc9d7){const _0x2cefdd=_0x43a8be;var _0x441ffc,_0x451251;const _0x38c690=(_0x451251=(_0x441ffc=this[_0x2cefdd(0x10c)][_0x2cefdd(0x25b)](this['unitID']))==null?void 0x0:_0x441ffc[_0x2cefdd(0x282)](_0x482585))==null?void 0x0:_0x451251[_0x2cefdd(0x281)]();return(_0x38c690==null?void 0x0:_0x38c690['find'](_0x2d5d14=>_0x29dd00['contains'](_0x2d5d14,_0x4bc9d7)))||_0x4bc9d7;}[_0x43a8be(0x1d0)](){const _0x3cddbd=_0x43a8be,_0x54a557=new _0x1d11bd(),_0xdf36d2=vi(),_0x54d6aa=()=>{const _0x14ceaf=_0x4bca;_0x54a557[_0x14ceaf(0x2b0)]();const _0x54e980=(_0x3667ee,_0x44a5f5,_0xa889f0,_0x311ec9)=>{const _0x581f81=_0x14ceaf;let _0x123aab=[];switch(_0x3667ee['id']){case _0x1e0cac[_0x581f81(0x216)]:{_0x123aab=_0x2c2cab(_0x3667ee,_0x311ec9);break;}case _0x1e0cac[_0x581f81(0x26c)]:{_0x123aab=_0x54066d(_0x3667ee,_0x311ec9);break;}case _0x1e0cac[_0x581f81(0x153)]:{_0x123aab=_0x1f3f71(_0x3667ee,_0x311ec9);break;}case _0x1e0cac[_0x581f81(0xe0)]:{_0x123aab=_0x3cc041(_0x3667ee,_0x311ec9);break;}case _0x1e0cac[_0x581f81(0x24e)]:{_0x123aab=_0x431fb5(_0x3667ee,_0x311ec9);break;}case _0x1e0cac[_0x581f81(0x297)]:{_0x123aab=_0x2d3f27(_0x3667ee,_0x311ec9);break;}case _0x1e0cac[_0x581f81(0x14f)]:{_0x123aab=_0x1c7ba5(_0x3667ee,_0x311ec9);break;}case _0x1e0cac['RemoveColCommandId']:{_0x123aab=_0x234d75(_0x3667ee,_0x311ec9);break;}case _0x1e0cac[_0x581f81(0x170)]:{_0x123aab=_0x406851(_0x3667ee,_0x311ec9);break;}}const _0x126237=_0x1886b2(_0x123aab,_0x311ec9),_0x32a55d=this['cursorInfo'][_0x581f81(0x18c)](_0x44a5f5);if(_0x32a55d&&_0x126237){const _0x42ddd9={..._0x32a55d,'range':_0x126237};this[_0x581f81(0x1cd)][_0x581f81(0x161)](_0x44a5f5,_0x42ddd9),_0xdf36d2(()=>{const _0x3cd39=_0x581f81,_0x330517=this[_0x3cd39(0x152)][_0x3cd39(0x2c0)](_0x126237,_0x574edb=>(_0x330517[_0x3cd39(0x2b0)](),_0x54e980(_0x574edb,_0x44a5f5,_0xa889f0,_0x126237)));_0x54a557[_0x3cd39(0x149)](_0x330517);});}return{'redos':[],'undos':[]};};this[_0x14ceaf(0x1cd)][_0x14ceaf(0x2c2)]((_0xbf6482,_0x1632ab)=>{const _0xd4389a=_0x14ceaf,{range:_0x4c8f64,sheetID:_0x13c30a}=_0xbf6482,_0x14731d=this[_0xd4389a(0x152)][_0xd4389a(0x2c0)](_0x4c8f64,_0x960bb3=>(_0x14731d[_0xd4389a(0x2b0)](),_0x54e980(_0x960bb3,_0x1632ab,_0x13c30a,_0x4c8f64)));_0x54a557['add'](_0x14731d);});};this[_0x3cddbd(0x1bf)](_0x33b3e6(this[_0x3cddbd(0xd3)][_0x3cddbd(0x1b8)](()=>{_0x54d6aa();})));}[_0x43a8be(0x269)](){const _0x3e0ea6=_0x43a8be;var _0x52e4f9,_0xe976f;if(this[_0x3e0ea6(0x17c)]=!0x0,((_0x52e4f9=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x52e4f9[_0x3e0ea6(0x1d4)]())!==this[_0x3e0ea6(0x24f)])return;const _0x11df8d=(_0xe976f=this[_0x3e0ea6(0x221)][_0x3e0ea6(0x18c)](_0x5d4575)[_0x3e0ea6(0x213)]())==null?void 0x0:_0xe976f[0x0],_0x220c9e=this[_0x3e0ea6(0x10c)][_0x3e0ea6(0x103)](_0x2eec1c[_0x3e0ea6(0x189)])[_0x3e0ea6(0x1e7)]();_0x11df8d&&_0x220c9e&&this[_0x3e0ea6(0x165)](_0x220c9e['getSheetId'](),_0x11df8d);}[_0x43a8be(0x2c5)](){const _0x265eeb=_0x43a8be;this[_0x265eeb(0x17c)]=!0x1;}};Me=mi([x(0x2,_0x31fbf2(_0x5a1f22)),x(0x3,_0x31fbf2(ke)),x(0x4,_0x31fbf2(_0x3207c8)),x(0x5,_0x3d8fed),x(0x6,_0x290d3b),x(0x7,_0x31fbf2(_0x12325d))],Me);var pi=Object[_0x43a8be(0x137)],Ci=(_0x27860a,_0x5530bd,_0x321dba,_0x15323d)=>{const _0x32146a=_0x43a8be;for(var _0x135433=_0x15323d>0x1?void 0x0:_0x15323d?pi(_0x5530bd,_0x321dba):_0x5530bd,_0xe52fad=_0x27860a[_0x32146a(0x227)]-0x1,_0x1c9adf;_0xe52fad>=0x0;_0xe52fad--)(_0x1c9adf=_0x27860a[_0xe52fad])&&(_0x135433=_0x1c9adf(_0x135433)||_0x135433);return _0x135433;},Se=(_0x474fa8,_0x3e404a)=>(_0x227ab9,_0x1eef81)=>_0x3e404a(_0x227ab9,_0x1eef81,_0x474fa8);let H=class extends _0x53a758{constructor(_0x5ec117,_0x36728d,_0x238f5b){const _0x30e313=_0x43a8be;super(),_(this,'_entities',new Map()),_(this,_0x30e313(0xde),new _0x1564c1()),(this[_0x30e313(0x10c)]=_0x5ec117,this[_0x30e313(0x221)]=_0x36728d,this[_0x30e313(0x14a)]=_0x238f5b,this[_0x30e313(0x277)]());}['dispose'](){const _0x1160f8=_0x43a8be;super[_0x1160f8(0x2b0)](),this['_entityInit$']['complete'](),this[_0x1160f8(0x19b)][_0x1160f8(0x2c2)](_0x2d8d7c=>_0x2d8d7c[_0x1160f8(0x2b0)]());}[_0x43a8be(0x28f)](_0x52f1f5){const _0x1dd79e=_0x43a8be;return this[_0x1dd79e(0x19b)][_0x1dd79e(0x1c4)](_0x52f1f5)?this[_0x1dd79e(0x19b)]['get'](_0x52f1f5)[_0x1dd79e(0x241)]:this[_0x1dd79e(0xde)][_0x1dd79e(0x171)](_0x5263e2(_0x218ca0=>_0x218ca0[_0x1dd79e(0x24f)]===_0x52f1f5),_0x1b30c1(_0x484507=>_0x484507[_0x1dd79e(0x241)]));}[_0x43a8be(0x277)](){const _0x388305=_0x43a8be;this[_0x388305(0x10c)][_0x388305(0x11b)](_0x2eec1c['UNIVER_SHEET'])['pipe'](_0x31b790(this[_0x388305(0xcb)]))[_0x388305(0x1b8)](async _0x3dbce1=>{const _0x1a94f2=_0x388305,_0xba3590=_0x3dbce1[_0x1a94f2(0x1d4)](),_0x5d03c7=await this[_0x1a94f2(0x17e)](_0xba3590);this[_0x1a94f2(0xde)]['next'](_0x5d03c7),this[_0x1a94f2(0x19b)][_0x1a94f2(0x161)](_0xba3590,_0x5d03c7);}),this[_0x388305(0x10c)][_0x388305(0x11b)](_0x2eec1c[_0x388305(0xd5)])[_0x388305(0x171)](_0x31b790(this[_0x388305(0xcb)]))[_0x388305(0x171)](_0x5263e2(_0x5b6691=>!_0x5b6691[_0x388305(0x1d4)]()['startsWith']('__')))[_0x388305(0x1b8)](async _0x5d5603=>{const _0x58641b=_0x388305,_0x5363ea=_0x5d5603['getUnitId'](),_0x2aa9b7=await this[_0x58641b(0xf4)](_0x5363ea);this[_0x58641b(0xde)][_0x58641b(0xec)](_0x2aa9b7),this[_0x58641b(0x19b)][_0x58641b(0x161)](_0x5363ea,_0x2aa9b7);}),_0x4d7caf(this[_0x388305(0x10c)]['getTypeOfUnitDisposed$'](_0x2eec1c[_0x388305(0xd5)]),this[_0x388305(0x10c)][_0x388305(0x1c6)](_0x2eec1c['UNIVER_SHEET']))[_0x388305(0x171)](_0x31b790(this[_0x388305(0xcb)]))[_0x388305(0x1b8)](_0x491334=>{const _0x52edfe=_0x388305,_0x18d6ed=_0x491334[_0x52edfe(0x1d4)](),_0x2bba5b=this[_0x52edfe(0x19b)][_0x52edfe(0x18c)](_0x18d6ed);_0x2bba5b&&(_0x2bba5b[_0x52edfe(0x2b0)](),this[_0x52edfe(0x19b)][_0x52edfe(0x19a)](_0x18d6ed));});}async['_startSheetCollabCursor'](_0x584afc){const _0x1b3ee1=_0x43a8be,_0x13e959=await this[_0x1b3ee1(0x14a)][_0x1b3ee1(0x2b3)](_0x584afc),_0x557a9a=this[_0x1b3ee1(0x221)][_0x1b3ee1(0x10d)](Me,_0x584afc,_0x13e959);return _0x557a9a[_0x1b3ee1(0x2a1)](),_0x557a9a;}async[_0x43a8be(0xf4)](_0x36e458){const _0x41871b=_0x43a8be,_0x22a5a5=await this[_0x41871b(0x14a)][_0x41871b(0x2b3)](_0x36e458),_0x130a8d=this['_injector']['createInstance'](Ue,_0x36e458,_0x22a5a5);return _0x130a8d[_0x41871b(0x2a1)](),_0x130a8d;}};H=Ci([Se(0x0,_0x3d8fed),Se(0x1,_0x31fbf2(_0x5a1f22)),Se(0x2,_0x31fbf2(_0x2c205b))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x6e9952,_0x103ac9){const _0xe993d6=_0x43a8be;let {radius:_0x14ee3f,width:_0x51749e,height:_0x115c07}=_0x103ac9;_0x14ee3f=_0x14ee3f!=null?_0x14ee3f:0x0,_0x51749e=_0x51749e!=null?_0x51749e:0x1e,_0x115c07=_0x115c07!=null?_0x115c07:0x1e;let _0x19ef10=0x0,_0x8d3706=0x0,_0x7e8f22=0x0;_0x19ef10=_0x8d3706=_0x7e8f22=Math[_0xe993d6(0x1a2)](_0x14ee3f,_0x51749e/0x2,_0x115c07/0x2),_0x6e9952[_0xe993d6(0xdd)](),_0x6e9952[_0xe993d6(0x177)](_0x19ef10,0x0),_0x6e9952[_0xe993d6(0x18b)](_0x51749e-_0x8d3706,0x0),_0x6e9952[_0xe993d6(0x25e)](_0x51749e-_0x8d3706,_0x8d3706,_0x8d3706,Math['PI']*0x3/0x2,0x0,!0x1),_0x6e9952['lineTo'](_0x51749e,_0x115c07-_0x7e8f22),_0x6e9952['arc'](_0x51749e-_0x7e8f22,_0x115c07-_0x7e8f22,_0x7e8f22,0x0,Math['PI']/0x2,!0x1),_0x6e9952[_0xe993d6(0x18b)](0x0,_0x115c07),_0x6e9952[_0xe993d6(0x18b)](0x0,_0x19ef10),_0x6e9952[_0xe993d6(0x25e)](_0x19ef10,_0x19ef10,_0x19ef10,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x6e9952[_0xe993d6(0x158)](),_0x103ac9[_0xe993d6(0x26a)]&&(_0x6e9952[_0xe993d6(0x243)](),_0x6e9952[_0xe993d6(0xf6)]=_0x103ac9[_0xe993d6(0x26a)],_0x103ac9[_0xe993d6(0x116)]===_0xe993d6(0x1d9)?_0x6e9952[_0xe993d6(0x26a)](_0xe993d6(0x1d9)):_0x6e9952['fill'](),_0x6e9952[_0xe993d6(0x15a)]());}class he extends _0x5b6e4a{constructor(_0x5a09e8,_0x252b10){const _0x4fecf5=_0x43a8be;super(_0x5a09e8,_0x252b10),_(this,_0x4fecf5(0x106)),_(this,_0x4fecf5(0x2bf)),(this[_0x4fecf5(0x106)]=_0x252b10==null?void 0x0:_0x252b10[_0x4fecf5(0x106)],this[_0x4fecf5(0x2bf)]=_0x252b10==null?void 0x0:_0x252b10[_0x4fecf5(0x2bf)]);}static[_0x43a8be(0x1cf)](_0x1a8293,_0x1a0d20){const _0x16df4c=_0x43a8be,{text:_0x500409,color:_0xe16c0a}=_0x1a0d20;_0x1a8293[_0x16df4c(0x243)](),_0x1a8293['font']=_0x16df4c(0x185);const _0x3accb5=_0x1a8293[_0x16df4c(0x2af)](_0x500409)[_0x16df4c(0x1e6)],_0x117f50=Math[_0x16df4c(0x1a2)](_0x3accb5+0x2*me,Qe);Oi(_0x1a8293,{'height':ee,'radius':0x4,'width':_0x117f50,'fill':_0xe16c0a}),_0x1a8293[_0x16df4c(0xf6)]='#FFF';const _0x30e174=me,_0x1eda53=ee-Ei,_0x7baa3e=Qe-0x2*me;if(_0x3accb5>_0x7baa3e){let _0xceafc4='',_0x20a972=0x0;for(const _0x4a610f of _0x500409){const _0xff208a=_0x1a8293[_0x16df4c(0x2af)](_0x4a610f)['width'];if(_0x20a972+_0xff208a<=_0x7baa3e-_0x1a8293[_0x16df4c(0x2af)](_0x16df4c(0x251))['width'])_0xceafc4+=_0x4a610f,_0x20a972+=_0xff208a;else{_0xceafc4+='...';break;}}_0x1a8293[_0x16df4c(0x178)](_0xceafc4,_0x30e174,_0x1eda53);}else _0x1a8293['fillText'](_0x500409,_0x30e174,_0x1eda53);_0x1a8293[_0x16df4c(0x15a)]();}[_0x43a8be(0x19f)](_0x331903){const _0x2dc86b=_0x43a8be;he[_0x2dc86b(0x1cf)](_0x331903,this);}}const Ie=_0x43a8be(0x1be),bi=_0x43a8be(0x1ed),Ti=_0x43a8be(0x29f),X=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0x43a8be(0x236);class qe{constructor(_0x46fcaa,_0x4bf51d,_0x249e01,_0x24ff47){const _0x46346d=_0x43a8be;_(this,_0x46346d(0x1af),[]),_(this,'_anchor',null),_(this,_0x46346d(0x105),null),_(this,_0x46346d(0x1a4),null),_(this,_0x46346d(0x1ff),null),_(this,_0x46346d(0x2bb),null),(this[_0x46346d(0x208)]=_0x46fcaa,this[_0x46346d(0x115)]=_0x4bf51d,this[_0x46346d(0x22e)]=_0x249e01,this[_0x46346d(0x21c)]=_0x24ff47,this[_0x46346d(0x1e2)]());}set[_0x43a8be(0x1a3)](_0x50db34){const _0x1bf235=_0x43a8be;_0x50db34?(this['_anchorDot']&&this['_anchorDot'][_0x1bf235(0x23a)](),this[_0x1bf235(0x105)]&&this['_textBubble'][_0x1bf235(0x1c7)]()):(this[_0x1bf235(0x1a4)]&&this[_0x1bf235(0x1a4)][_0x1bf235(0x1c7)](),this[_0x1bf235(0x105)]&&this[_0x1bf235(0x105)][_0x1bf235(0x23a)]());}[_0x43a8be(0x2b0)](){const _0x242dab=_0x43a8be;for(const _0xbd4ab4 of this[_0x242dab(0x1af)])_0xbd4ab4[_0x242dab(0x2b0)]();this[_0x242dab(0x105)]&&this[_0x242dab(0x105)]['dispose'](),this['_anchorDot']&&this[_0x242dab(0x1a4)]['dispose'](),this['_anchor']&&this[_0x242dab(0x124)][_0x242dab(0x2b0)](),this['_eventUnsubscribe']&&this[_0x242dab(0x2bb)]();}[_0x43a8be(0x1e2)](){const _0x5704b8=_0x43a8be;var _0x3138b5;const {_docSkeleton:_0x6664a2,_document:_0x280ef6}=this,{color:_0x4d4c66,name:_0x3a6acf,ranges:_0x7371ba}=this[_0x5704b8(0x208)],_0x2b278e=_0x280ef6[_0x5704b8(0x142)](),{docsLeft:_0x327157,docsTop:_0x45be46}=_0x2b278e,_0x3ec7ae=new _0x97c42b(_0x2b278e,_0x6664a2);for(const {startOffset:_0x1c6525,endOffset:_0x4e4ba2,rangeType:_0xe2c61c,segmentId:_0xb291aa,segmentPage:_0x25efd5,collapsed:_0x552c04,isActive:_0x2d910b}of _0x7371ba){const _0x5a33e5=_0x6664a2[_0x5704b8(0xd9)](_0x1c6525,!0x0,_0xb291aa,_0x25efd5);let _0x5e0c39=_0x6664a2['findNodePositionByCharIndex'](_0x4e4ba2,!0x0,_0xb291aa,_0x25efd5);if(_0x5e0c39==null&&(_0x5e0c39=_0x6664a2['findNodePositionByCharIndex'](_0x4e4ba2-0x1,!0x1,_0xb291aa,_0x25efd5)),_0x2d910b){const {contentBoxPointGroup:_0x575f50}=_0x3ec7ae[_0x5704b8(0x230)](_0x5e0c39,_0x5e0c39);if(_0x575f50[_0x5704b8(0x227)]===0x0)continue;this[_0x5704b8(0x121)](_0x4d4c66,_0x575f50,_0x327157,_0x45be46,_0x3a6acf),this[_0x5704b8(0x2bb)]=this[_0x5704b8(0xff)]();}if(_0x5a33e5&&_0x5e0c39){if(_0xe2c61c===_0xb6a4bc[_0x5704b8(0x12e)]){const _0x5c151f=new _0x24a4b4(_0x2b278e,_0x6664a2),{pointGroup:_0x5524f1}=(_0x3138b5=_0x5c151f[_0x5704b8(0x230)](_0x5a33e5,_0x5e0c39))!=null?_0x3138b5:{};if(_0x5524f1==null||_0x5524f1['length']===0x0)continue;this[_0x5704b8(0xd0)](_0x4d4c66,_0x5524f1,_0x327157,_0x45be46);}else{if(!_0x552c04){const {borderBoxPointGroup:_0x38c4b7}=_0x3ec7ae[_0x5704b8(0x230)](_0x5a33e5,_0x5e0c39);if(_0x38c4b7[_0x5704b8(0x227)]===0x0)continue;this['_drawTextRange'](_0x4d4c66,_0x38c4b7,_0x327157,_0x45be46);}}}}}[_0x43a8be(0x121)](_0x485f8b,_0x6c8820,_0x2e5b04,_0x192e16,_0xb0fbf2){const _0x288e6d=_0x43a8be,_0x5ecabd=this[_0x288e6d(0x19c)](_0x6c8820),{left:_0x476cea,top:_0x52829e,height:_0x2064a3}=_0x5ecabd,_0x547763=this[_0x288e6d(0x122)](),_0x47c895=Di/_0x547763,_0xc022f4=new _0x27147d(Ie+_0x430170[_0x288e6d(0x2cb)](X),{'left':_0x476cea+_0x2e5b04-_0x47c895,'top':_0x52829e+_0x192e16,'height':_0x2064a3,'width':Ri,'fill':_0x485f8b||_0x148ba5(_0x50c85a[_0x288e6d(0x21d)],0x0),'strokeWidth':_0x47c895,'stroke':Ni,'evented':!0x0});this[_0x288e6d(0x124)]=_0xc022f4,this[_0x288e6d(0x115)][_0x288e6d(0x1e8)](_0xc022f4,_0x313fe);const _0x59ed7e=new _0x27147d(Ie+_0x430170[_0x288e6d(0x2cb)](X),{'left':_0x476cea+_0x2e5b04-_0x47c895,'top':_0x52829e+_0x192e16-ge/0x2,'height':ge,'width':ge,'fill':_0x485f8b||_0x148ba5(_0x50c85a['black'],0x0),'strokeWidth':0x0,'stroke':_0x485f8b||_0x148ba5(_0x50c85a[_0x288e6d(0x21d)],0x0),'evented':!0x1});this['_anchorDot']=_0x59ed7e,this[_0x288e6d(0x115)][_0x288e6d(0x1e8)](_0x59ed7e,_0x313fe);const _0x536db9=new he(Ie+_0x430170[_0x288e6d(0x2cb)](X),{'left':_0x476cea+_0x2e5b04-_0x47c895,'top':_0x52829e+_0x192e16-ee,'text':_0xb0fbf2,'color':_0x485f8b});this[_0x288e6d(0x105)]=_0x536db9,this['_scene'][_0x288e6d(0x1e8)](_0x536db9,_0x313fe),this[_0x288e6d(0x1a3)]=!0x1;}['_handleHover'](){const _0x4d4ca1=_0x43a8be,_0x530ae3=this[_0x4d4ca1(0x124)][_0x4d4ca1(0x1b1)][_0x4d4ca1(0x12c)](()=>{const _0x4ccff6=_0x4d4ca1;this[_0x4ccff6(0x1a3)]=!0x0;}),_0x9b8c72=this['_anchor'][_0x4d4ca1(0x1ae)][_0x4d4ca1(0x12c)](()=>{const _0x48412c=_0x4d4ca1;this[_0x48412c(0x1ff)]&&clearTimeout(this[_0x48412c(0x1ff)]),this[_0x48412c(0x1ff)]=setTimeout(()=>{const _0x5ca962=_0x48412c;this[_0x5ca962(0x1a3)]=!0x1;},0x7d0);});return()=>{const _0xb5936e=_0x4d4ca1;_0x530ae3[_0xb5936e(0x136)](),_0x9b8c72[_0xb5936e(0x136)]();};}['_drawTextRange'](_0xfb4deb,_0x3a29f5,_0xd04770,_0x50074b){const _0x6c9ac5=_0x43a8be,_0x59bf84=new _0x63e883(_0xfb4deb)[_0x6c9ac5(0xeb)](0.2)[_0x6c9ac5(0x296)](),_0x1b0352=new _0x2f3f33(bi+_0x430170['generateRandomId'](X),{'pointsGroup':_0x3a29f5,'fill':_0x59bf84||_0x148ba5(_0x50c85a['black'],0.2),'left':_0xd04770,'top':_0x50074b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x6c9ac5(0x1af)][_0x6c9ac5(0x2a0)](_0x1b0352),this[_0x6c9ac5(0x115)][_0x6c9ac5(0x1e8)](_0x1b0352,_0x313fe);}[_0x43a8be(0xd0)](_0x5bf3b2,_0x30d86e,_0x1fb44a,_0x24fe7){const _0x34ee6d=_0x43a8be,_0x59fc22=new _0x63e883(_0x5bf3b2)['setAlpha'](0.2)[_0x34ee6d(0x296)](),_0x1a4519=new _0x2f3f33(Ti+_0x430170[_0x34ee6d(0x2cb)](X),{'pointsGroup':_0x30d86e,'fill':_0x59fc22||_0x148ba5(_0x50c85a[_0x34ee6d(0x21d)],0.2),'left':_0x1fb44a,'top':_0x24fe7,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1a4519),this[_0x34ee6d(0x115)][_0x34ee6d(0x1e8)](_0x1a4519,_0x313fe);}['_getAnchorBounding'](_0x3f76a3){const _0x223e56=_0x3f76a3[0x0],_0x2131be=_0x223e56[0x0],_0x24eb65=_0x223e56[0x2],{x:_0x5e5420,y:_0xe369b}=_0x2131be,{x:_0x363edf,y:_0x309649}=_0x24eb65;return{'left':_0x5e5420,'top':_0xe369b,'width':_0x363edf-_0x5e5420,'height':_0x309649-_0xe369b};}['_getScale'](){const _0x251eb8=_0x43a8be,{scaleX:_0x208267,scaleY:_0x5e2d2d}=this[_0x251eb8(0x115)][_0x251eb8(0xfe)]();return Math[_0x251eb8(0xdb)](_0x208267,_0x5e2d2d);}}var Ui=Object[_0x43a8be(0x137)],Mi=(_0x18b81d,_0x48ca0f,_0x6315ce,_0x5c528b)=>{const _0x8a50a8=_0x43a8be;for(var _0x4deeee=_0x5c528b>0x1?void 0x0:_0x5c528b?Ui(_0x48ca0f,_0x6315ce):_0x48ca0f,_0x59afce=_0x18b81d[_0x8a50a8(0x227)]-0x1,_0x464cf2;_0x59afce>=0x0;_0x59afce--)(_0x464cf2=_0x18b81d[_0x59afce])&&(_0x4deeee=_0x464cf2(_0x4deeee)||_0x4deeee);return _0x4deeee;},Z=(_0x3c058b,_0x3b9a50)=>(_0x193977,_0x9061c3)=>_0x3b9a50(_0x193977,_0x9061c3,_0x3c058b);let we=class extends _0x53a758{constructor(_0x63a214,_0x24990a,_0x5701eb,_0x2423ee,_0x2087bf){const _0x3fd7d3=_0x43a8be;super(),_(this,_0x3fd7d3(0x27c),[]),_(this,_0x3fd7d3(0x2c8),[]),(this[_0x3fd7d3(0x211)]=_0x63a214,this[_0x3fd7d3(0x22a)]=_0x24990a,this['_collabCursorController']=_0x5701eb,this[_0x3fd7d3(0x2c7)]=_0x2423ee,this[_0x3fd7d3(0x10e)]=_0x2087bf,this[_0x3fd7d3(0x277)]());}['_init'](){const _0x7c3cc4=_0x43a8be,_0x5d358e=this[_0x7c3cc4(0x211)][_0x7c3cc4(0x146)],_0x4dc9ec=this[_0x7c3cc4(0x22a)];this[_0x7c3cc4(0x1bf)](_0x382251([this[_0x7c3cc4(0x1f4)][_0x7c3cc4(0x28f)](_0x5d358e),this['_themeService'][_0x7c3cc4(0xfa)]])['pipe'](_0x1b5b3c(([_0x1f1e35,_0x178431])=>({'skeleton':_0x4dc9ec[_0x7c3cc4(0x14e)](),'cursors':[..._0x1f1e35[_0x7c3cc4(0x23b)]()][_0x7c3cc4(0x125)](_0xb93f2c=>({..._0xb93f2c,'color':this['_themeService'][_0x7c3cc4(0x21a)](_0xb93f2c[_0x7c3cc4(0x106)])}))})))[_0x7c3cc4(0x1b8)](_0x3b4c30=>{if(this['_removeCollabCursors'](),_0x3b4c30){const {skeleton:_0x390fba,cursors:_0x813ba2}=_0x3b4c30;this['_updateCollabCursors'](_0x390fba,_0x813ba2);}})),this['_initResize'](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x147fc4,_0x288771){const _0x81e1dd=_0x43a8be,{scene:_0x2f6e4b,mainComponent:_0x37e994}=this[_0x81e1dd(0x211)],_0x2f1a48=_0x288771[_0x81e1dd(0x10f)](_0x317812=>new qe(_0x317812,_0x2f6e4b,_0x147fc4,_0x37e994));this[_0x81e1dd(0x27c)]=_0x2f1a48,this[_0x81e1dd(0x2c8)]=_0x288771;}['_refreshCollabCursors'](){const _0x4369ae=_0x43a8be;this[_0x4369ae(0xe8)]();const {scene:_0x4c979d,mainComponent:_0x4b7845}=this[_0x4369ae(0x211)],_0xf4de82=this['_docSkeletonManagerService'][_0x4369ae(0x14e)](),_0x5bdec4=this[_0x4369ae(0x2c8)][_0x4369ae(0x10f)](_0x44d788=>new qe(_0x44d788,_0x4c979d,_0xf4de82,_0x4b7845));this[_0x4369ae(0x27c)]=_0x5bdec4;}[_0x43a8be(0xe8)](){const _0x3029cb=_0x43a8be;this['_cursorShapes'][_0x3029cb(0x2c2)](_0x5a91bb=>_0x5a91bb[_0x3029cb(0x2b0)]()),this[_0x3029cb(0x27c)]=[];}[_0x43a8be(0x289)](){const _0x237b1b=_0x43a8be,_0x579589=[_0x282840['id']];this[_0x237b1b(0x1bf)](this[_0x237b1b(0x2c7)][_0x237b1b(0x12a)](_0x4737d8=>{const _0x4ecfa7=_0x237b1b;_0x579589[_0x4ecfa7(0x127)](_0x4737d8['id'])&&_0x4737d8['params'][_0x4ecfa7(0x146)]===this['_context'][_0x4ecfa7(0x146)]&&this[_0x4ecfa7(0x155)]();}));}[_0x43a8be(0x205)](){const _0x23073d=_0x43a8be;this['disposeWithMe'](_0x45bd83(this['_context']['engine'][_0x23073d(0x167)])[_0x23073d(0x171)](_0x8a17ca(_0x9f441b=>_0x9f441b[_0x23073d(0x270)]===_0x47710d[_0x23073d(0x151)]),_0x37fc0e(0x10))[_0x23073d(0x1b8)](()=>{const _0x7f0bef=_0x23073d;this[_0x7f0bef(0x155)]();}));}};we=Mi([Z(0x1,_0x31fbf2(_0x4a61d8)),Z(0x2,_0x31fbf2(H)),Z(0x3,_0x290d3b),Z(0x4,_0x31fbf2(_0x527360))],we);const wi=0x1,Pi=1.5;class Li extends _0x5b6e4a{constructor(_0x3dad28,_0x2f11ae){const _0x5f285e=_0x43a8be;super(_0x3dad28,_0x2f11ae),_(this,_0x5f285e(0x24b)),_(this,'_hovered',!0x1),_(this,_0x5f285e(0x223)),_(this,'_name',''),_(this,_0x5f285e(0x2ac),_0x5f285e(0x2c3)),_(this,_0x5f285e(0x25d)),(_0x2f11ae&&this[_0x5f285e(0x27f)](_0x2f11ae),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x5f285e(0x27f)]({'hovered':!0x0})),this[_0x5f285e(0x1ae)][_0x5f285e(0x12c)](()=>this[_0x5f285e(0x27f)]({'hovered':!0x1})));}['setShapeProps'](_0x45fb1e){const _0x447be3=_0x43a8be;var _0x1e2df2,_0x27877d,_0x39a87a,_0x571637,_0x3ab1a1,_0x30daba;this[_0x447be3(0x24b)]=(_0x1e2df2=_0x45fb1e['color'])!=null?_0x1e2df2:this[_0x447be3(0x24b)],this[_0x447be3(0x245)]=(_0x27877d=_0x45fb1e[_0x447be3(0x2a5)])!=null?_0x27877d:this[_0x447be3(0x245)],this[_0x447be3(0x223)]=(_0x39a87a=_0x45fb1e[_0x447be3(0x265)])!=null?_0x39a87a:this[_0x447be3(0x223)],this['_name']=(_0x571637=_0x45fb1e[_0x447be3(0x29d)])!=null?_0x571637:this[_0x447be3(0x11e)],this[_0x447be3(0x2ac)]=(_0x3ab1a1=_0x45fb1e[_0x447be3(0xf9)])!=null?_0x3ab1a1:this[_0x447be3(0x2ac)],this['_backgroundColor']=(_0x30daba=_0x45fb1e[_0x447be3(0x1b9)])!=null?_0x30daba:this['_backgroundColor'],this[_0x447be3(0x261)]({'width':_0x45fb1e[_0x447be3(0x1e6)],'height':_0x45fb1e[_0x447be3(0x123)]});}[_0x43a8be(0x2a7)](_0xa6fff3){const _0x2639ad=_0x43a8be,{row:_0xc43aa4,column:_0x1ad3f7}=_0xa6fff3;if(_0xc43aa4>=this[_0x2639ad(0x223)][_0x2639ad(0x2ce)]&&_0xc43aa4<=this['_range'][_0x2639ad(0x1bd)]&&_0x1ad3f7>=this[_0x2639ad(0x223)][_0x2639ad(0x2ca)]&&_0x1ad3f7<=this['_range'][_0x2639ad(0x28d)]){this[_0x2639ad(0x27f)]({'hovered':!0x0});return;}this[_0x2639ad(0x27f)]({'hovered':!0x1});}[_0x43a8be(0x1ce)](_0x1d3f06){return!0x1;}[_0x43a8be(0x19f)](_0x19b985){const _0x2cdebf=_0x43a8be;_0x27147d[_0x2cdebf(0x1cf)](_0x19b985,{'width':this[_0x2cdebf(0x1e6)],'height':this['height'],'strokeWidth':Pi,'stroke':this[_0x2cdebf(0x24b)],'evented':!0x1,'fill':this[_0x2cdebf(0x25d)]}),this[_0x2cdebf(0x245)]&&(_0x19b985['save'](),_0x19b985['transform'](0x1,0x0,0x0,0x1,this[_0x2cdebf(0x1e6)],this[_0x2cdebf(0x2ac)]===_0x2cdebf(0x22b)?0x0:-0x14),he['drawWith'](_0x19b985,{'text':this[_0x2cdebf(0x11e)],'color':this[_0x2cdebf(0x24b)]}),_0x19b985['restore']());}}var Ai=Object[_0x43a8be(0x137)],yi=(_0x3f4a9e,_0x5b51c4,_0x508455,_0xa280d9)=>{const _0x29b5c9=_0x43a8be;for(var _0x581f3b=_0xa280d9>0x1?void 0x0:_0xa280d9?Ai(_0x5b51c4,_0x508455):_0x5b51c4,_0x4d457d=_0x3f4a9e[_0x29b5c9(0x227)]-0x1,_0x4e64b2;_0x4d457d>=0x0;_0x4d457d--)(_0x4e64b2=_0x3f4a9e[_0x4d457d])&&(_0x581f3b=_0x4e64b2(_0x581f3b)||_0x581f3b);return _0x581f3b;},ve=(_0x4a3320,_0x29af94)=>(_0x1471be,_0x22e32f)=>_0x29af94(_0x1471be,_0x22e32f,_0x4a3320);const $i=0x1389;let Pe=class extends _0x53a758{constructor(_0x879c2e,_0x2999fa,_0x3dafa4,_0x29d354){const _0x2c9717=_0x43a8be;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x879c2e,this[_0x2c9717(0x2a9)]=_0x2999fa,this[_0x2c9717(0x1f4)]=_0x3dafa4,this[_0x2c9717(0x10e)]=_0x29d354,this[_0x2c9717(0x277)]());}[_0x43a8be(0x277)](){const _0x5cb71f=_0x43a8be;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x5cb71f(0x171)](_0x968360(this[_0x5cb71f(0xcb)]),_0x4861e7(_0x27e850=>{const _0x1a611f=_0x5cb71f;if(_0x27e850){const _0x126962=_0x27e850['sheetId'];return _0x382251(this['_collabCursorController'][_0x1a611f(0x28f)](this[_0x1a611f(0x211)][_0x1a611f(0x146)]),this['_themeService']['currentTheme$'])[_0x1a611f(0x171)](_0x1b5b3c(([_0x469b25,_0x38c047])=>{const _0x1e51ee=_0x1a611f,_0x52df3d=new Map();return _0x469b25[_0x1e51ee(0x2c2)]((_0x437b63,_0x4a8e96)=>{const _0x4fa487=_0x1e51ee;if(_0x437b63[_0x4fa487(0xf2)]===_0x126962){const _0x3b690c={..._0x437b63};_0x3b690c[_0x4fa487(0x106)]=this[_0x4fa487(0x10e)][_0x4fa487(0x21a)](_0x437b63[_0x4fa487(0x106)]),_0x52df3d[_0x4fa487(0x161)](_0x4a8e96,_0x3b690c);}}),{'skeleton':_0x27e850,'cursors':_0x52df3d};}));}return _0x5f5a1a({'skeleton':null,'cursors':new Map()});}))[_0x5cb71f(0x1b8)](({skeleton:_0x2f934f,cursors:_0x2e62c6})=>{const _0x1dc379=_0x5cb71f;this[_0x1dc379(0xe8)](),_0x2f934f&&this[_0x1dc379(0x25a)](_0x2f934f,_0x2e62c6);}),this['_sheetSkeletonManagerService'][_0x5cb71f(0x15c)][_0x5cb71f(0x1b8)](_0x521f31=>{const _0x48fc3c=_0x5cb71f;if(_0x521f31==null)return;const {skeleton:_0x33e4e1}=_0x521f31,{scene:_0x487fbd}=this[_0x48fc3c(0x211)];_0x487fbd[_0x48fc3c(0x147)][_0x48fc3c(0x12c)](_0x1cf752(_0x38f420=>{const _0x5f1219=_0x48fc3c;var _0x1923d3,_0xe9b363;const {offsetX:_0x4a014a,offsetY:_0x449022}=_0x38f420,{x:_0x58a51,y:_0x53f2dd}=_0x487fbd[_0x5f1219(0x295)](_0x359c15[_0x5f1219(0x196)]([_0x4a014a,_0x449022])),{scaleX:_0x117c5f,scaleY:_0x4b65e3}=_0x487fbd[_0x5f1219(0xfe)](),_0x88c81e=_0x487fbd[_0x5f1219(0x108)](_0x42695b[_0x5f1219(0xe1)]),_0x313bdb=_0x487fbd['getVpScrollXYInfoByPosToVp'](_0x359c15[_0x5f1219(0x196)]([_0x58a51,_0x53f2dd]),_0x88c81e),_0x20aa02=_0x33e4e1[_0x5f1219(0xda)](_0x4a014a,_0x449022,_0x117c5f,_0x4b65e3,_0x313bdb);((_0x1923d3=this[_0x5f1219(0x228)])==null?void 0x0:_0x1923d3[_0x5f1219(0x288)])===_0x20aa02[_0x5f1219(0x288)]&&((_0xe9b363=this[_0x5f1219(0x228)])==null?void 0x0:_0xe9b363[_0x5f1219(0x200)])===_0x20aa02[_0x5f1219(0x200)]||this[_0x5f1219(0x2c8)][_0x5f1219(0x2c2)](_0x35f4d9=>{_0x35f4d9['onMouseMove'](_0x20aa02);});},0x64));});}['_updateCollabCursors'](_0x1bd6df,_0x10763e){const _0x97ff77=_0x43a8be;var _0x487587;const _0x27a387=(_0x487587=this[_0x97ff77(0x2a9)][_0x97ff77(0x10a)]())==null?void 0x0:_0x487587[_0x97ff77(0x23f)];if(!_0x27a387)return;const _0x2c2c60=this[_0x97ff77(0x298)]();if(!_0x2c2c60)return;this[_0x97ff77(0x2c8)][_0x97ff77(0x2c2)](_0x1802a0=>{const _0xe5e580=_0x97ff77;_0x1802a0[_0xe5e580(0x1fc)]();});const {scene:_0x49daf2}=_0x2c2c60,_0x3384ee=xi(Array[_0x97ff77(0x19d)](_0x10763e[_0x97ff77(0x23b)]()))[_0x97ff77(0x10f)](_0x54917b=>{const {color:_0x532923,range:_0x5d5c90,name:_0x1da650,selection:_0x1adda4,sheetID:_0x527f5f}=_0x54917b,{startColumn:_0x39d6db,startRow:_0x47f55b,endColumn:_0x989f89,endRow:_0x51d937}=_0x5d5c90,_0x3b8856=_0x2ea3f6(_0x47f55b,_0x39d6db,_0x49daf2,_0x27a387),_0x29967d=_0x2ea3f6(_0x51d937,_0x989f89,_0x49daf2,_0x27a387),{columnHeaderHeightAndMarginTop:_0x32be39}=_0x27a387,{startX:_0x18bdf2,startY:_0x539682}=_0x3b8856,{endX:_0x2bf1f5,endY:_0x3ef905}=_0x29967d,_0x1a4ad1=_0x2bf1f5-_0x18bdf2,_0x4ad5af=_0x3ef905-_0x539682,_0x394dea={'labelPosition':_0x539682-_0x32be39>=ee?'top':'bottom','sheetID':_0x527f5f,'range':_0x5d5c90,'color':_0x532923,'name':_0x1da650,'selection':_0x1adda4,'left':_0x18bdf2,'top':_0x539682,'width':_0x1a4ad1,'height':_0x4ad5af,'evented':!0x1,'zIndex':$i};return new Li(_0x1da650,_0x394dea);});_0x49daf2[_0x97ff77(0x134)](_0x3384ee,wi),this[_0x97ff77(0x2c8)]=new Set(_0x3384ee);}[_0x43a8be(0xe8)](){const _0x1e2e7e=_0x43a8be;var _0x21b05a;(_0x21b05a=this[_0x1e2e7e(0x2c8)])==null||_0x21b05a[_0x1e2e7e(0x2c2)](_0xdb43f1=>_0xdb43f1[_0x1e2e7e(0x2b0)]());}[_0x43a8be(0x298)](){const _0x24aa88=_0x43a8be;return _0x11974c(this[_0x24aa88(0x211)][_0x24aa88(0x2bc)],this[_0x24aa88(0x211)]);}};Pe=yi([ve(0x1,_0x31fbf2(_0x4a15a3)),ve(0x2,_0x31fbf2(H)),ve(0x3,_0x31fbf2(_0x527360))],Pe);function xi(_0xc18b74){const _0x5535f0=_0x43a8be,_0x5eec4d=new Map();return _0xc18b74['forEach'](_0x4d9ecd=>{const _0x55f694=_0x4bca;if(_0x5eec4d['has'](_0x4d9ecd[_0x55f694(0x199)])){const _0x2ad8fc=_0x5eec4d[_0x55f694(0x18c)](_0x4d9ecd[_0x55f694(0x199)]);_0x2ad8fc[_0x55f694(0x29d)]+=',\x20'+_0x4d9ecd[_0x55f694(0x29d)];}else _0x5eec4d[_0x55f694(0x161)](_0x4d9ecd[_0x55f694(0x199)],_0x4d9ecd);}),Array['from'](_0x5eec4d[_0x5535f0(0x23b)]());}var v=function(){const _0x2fa08f=_0x43a8be;return v=Object[_0x2fa08f(0x15b)]||function(_0x5160de){const _0x36edf7=_0x2fa08f;for(var _0x169c7f,_0x5bd93c=0x1,_0x2d1b42=arguments['length'];_0x5bd93c<_0x2d1b42;_0x5bd93c++){_0x169c7f=arguments[_0x5bd93c];for(var _0x598154 in _0x169c7f)Object['prototype']['hasOwnProperty'][_0x36edf7(0x1f1)](_0x169c7f,_0x598154)&&(_0x5160de[_0x598154]=_0x169c7f[_0x598154]);}return _0x5160de;},v['apply'](this,arguments);},Bi=function(_0x300390,_0x392715){const _0x771b2f=_0x43a8be;var _0x2abe3c={};for(var _0x582050 in _0x300390)Object[_0x771b2f(0x279)]['hasOwnProperty'][_0x771b2f(0x1f1)](_0x300390,_0x582050)&&_0x392715[_0x771b2f(0xd7)](_0x582050)<0x0&&(_0x2abe3c[_0x582050]=_0x300390[_0x582050]);if(_0x300390!=null&&typeof Object[_0x771b2f(0x15d)]==_0x771b2f(0x2b9)){for(var _0x4e74c5=0x0,_0x582050=Object['getOwnPropertySymbols'](_0x300390);_0x4e74c5<_0x582050['length'];_0x4e74c5++)_0x392715[_0x771b2f(0xd7)](_0x582050[_0x4e74c5])<0x0&&Object[_0x771b2f(0x279)][_0x771b2f(0x207)][_0x771b2f(0x1f1)](_0x300390,_0x582050[_0x4e74c5])&&(_0x2abe3c[_0x582050[_0x4e74c5]]=_0x300390[_0x582050[_0x4e74c5]]);}return _0x2abe3c;},je=_0x44303b(function(_0x3c263e,_0x1f1248){const _0xc0f479=_0x43a8be;var _0x514b6c=_0x3c263e['icon'],_0x50a38e=_0x3c263e['id'],_0x14050d=_0x3c263e[_0xc0f479(0x274)],_0x4756fa=_0x3c263e[_0xc0f479(0x292)],_0x1a3d0b=Bi(_0x3c263e,[_0xc0f479(0x254),'id',_0xc0f479(0x274),_0xc0f479(0x292)]),_0x199a06='univerjs-icon\x20univerjs-icon-'[_0xc0f479(0x117)](_0x50a38e,'\x20')[_0xc0f479(0x117)](_0x14050d||'')['trim'](),_0x505e24=_0x2ef2f1('_'['concat'](ji()));return Rt(_0x514b6c,''['concat'](_0x50a38e),{'defIds':_0x514b6c['defIds'],'idSuffix':_0x505e24[_0xc0f479(0x203)]},v({'ref':_0x1f1248,'className':_0x199a06},_0x1a3d0b),_0x4756fa);});function Rt(_0x4cfcc6,_0x473b53,_0x42c43d,_0xb039ae,_0x5d64a5){const _0x29200c=_0x43a8be;return _0x691609(_0x4cfcc6['tag'],v(v({'key':_0x473b53},ki(_0x4cfcc6,_0x42c43d,_0x5d64a5)),_0xb039ae),(Hi(_0x4cfcc6,_0x42c43d)[_0x29200c(0x16f)]||[])[_0x29200c(0x10f)](function(_0x5e3070,_0x3e47c9){const _0x4cc104=_0x29200c;return Rt(_0x5e3070,''[_0x4cc104(0x117)](_0x473b53,'-')[_0x4cc104(0x117)](_0x4cfcc6[_0x4cc104(0x1d8)],'-')[_0x4cc104(0x117)](_0x3e47c9),_0x42c43d,void 0x0,_0x5d64a5);}));}function ki(_0x48a9fa,_0x37faa7,_0x3e0b9a){const _0x4b4ba4=_0x43a8be;var _0x1fb081=v({},_0x48a9fa[_0x4b4ba4(0xd6)]);_0x3e0b9a!=null&&_0x3e0b9a[_0x4b4ba4(0x1f0)]&&_0x1fb081['fill']===_0x4b4ba4(0x1f0)&&(_0x1fb081['fill']=_0x3e0b9a[_0x4b4ba4(0x1f0)]),_0x48a9fa[_0x4b4ba4(0x1d8)]==='mask'&&_0x1fb081['id']&&(_0x1fb081['id']=_0x1fb081['id']+_0x37faa7['idSuffix']),Object[_0x4b4ba4(0x1b0)](_0x1fb081)[_0x4b4ba4(0x2c2)](function(_0x31a35f){const _0x12306a=_0x4b4ba4;var _0x1c5f49=_0x31a35f[0x0],_0x33f7c2=_0x31a35f[0x1];_0x1c5f49===_0x12306a(0x28c)&&typeof _0x33f7c2==_0x12306a(0x29b)&&(_0x1fb081[_0x1c5f49]=_0x33f7c2[_0x12306a(0x268)](/url\(#(.*)\)/,_0x12306a(0x18f)['concat'](_0x37faa7[_0x12306a(0x1c2)],')')));});var _0x3f87b4=_0x37faa7['defIds'];return!_0x3f87b4||_0x3f87b4['length']===0x0||(_0x48a9fa[_0x4b4ba4(0x1d8)]===_0x4b4ba4(0xe6)&&_0x1fb081[_0x4b4ba4(0x184)]&&(_0x1fb081[_0x4b4ba4(0x184)]=_0x1fb081[_0x4b4ba4(0x184)]+_0x37faa7['idSuffix']),Object[_0x4b4ba4(0x1b0)](_0x1fb081)[_0x4b4ba4(0x2c2)](function(_0x956f80){const _0x2437fe=_0x4b4ba4;var _0x49aecd=_0x956f80[0x0],_0xf5e2b6=_0x956f80[0x1];typeof _0xf5e2b6=='string'&&(_0x1fb081[_0x49aecd]=_0xf5e2b6[_0x2437fe(0x268)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x37faa7[_0x2437fe(0x1c2)],')')));})),_0x1fb081;}function Hi(_0x57e424,_0x5d7dec){const _0x32d8f9=_0x43a8be;var _0x444995,_0x219853=_0x5d7dec['defIds'];return!_0x219853||_0x219853[_0x32d8f9(0x227)]===0x0?_0x57e424:_0x57e424[_0x32d8f9(0x1d8)]===_0x32d8f9(0x266)&&(!((_0x444995=_0x57e424['children'])===null||_0x444995===void 0x0)&&_0x444995[_0x32d8f9(0x227)])?v(v({},_0x57e424),{'children':_0x57e424['children'][_0x32d8f9(0x10f)](function(_0x5e599b){const _0x155a57=_0x32d8f9;return typeof _0x5e599b[_0x155a57(0xd6)]['id']==_0x155a57(0x29b)&&_0x219853&&_0x219853['includes'](_0x5e599b[_0x155a57(0xd6)]['id'])?v(v({},_0x5e599b),{'attrs':v(v({},_0x5e599b[_0x155a57(0xd6)]),{'id':_0x5e599b[_0x155a57(0xd6)]['id']+_0x5d7dec[_0x155a57(0x1c2)]})}):_0x5e599b;})}):_0x57e424;}function ji(){const _0x2016a7=_0x43a8be;return Math['random']()['toString'](0x24)[_0x2016a7(0x1f9)](0x2,0x8);}je['displayName']=_0x43a8be(0x1fd);var Yi={'tag':_0x43a8be(0x290),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x43a8be(0x17d),'viewBox':_0x43a8be(0x174),'width':_0x43a8be(0x20a),'height':_0x43a8be(0x20a)},'children':[{'tag':'g','attrs':{'clipPath':_0x43a8be(0xd1)},'children':[{'tag':_0x43a8be(0x24d),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x43a8be(0x1a0),'strokeLinejoin':_0x43a8be(0x1a0),'strokeWidth':1.2}}]},{'tag':_0x43a8be(0x266),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x43a8be(0x28e)]},Dt=_0x44303b(function(_0x5b0ea7,_0xfd0c8c){const _0x33db8b=_0x43a8be;return _0x691609(je,Object[_0x33db8b(0x15b)]({},_0x5b0ea7,{'id':'off-line-icon','ref':_0xfd0c8c,'icon':Yi}));});Dt['displayName']=_0x43a8be(0x210);var Fi={'tag':'svg','attrs':{'xmlns':_0x43a8be(0x12d),'fill':_0x43a8be(0x17d),'viewBox':_0x43a8be(0x1c9),'width':_0x43a8be(0x20a),'height':_0x43a8be(0x20a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x43a8be(0x24d),'attrs':{'stroke':_0x43a8be(0x1a6),'d':_0x43a8be(0x104),'strokeLinecap':_0x43a8be(0x1a0),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x43a8be(0x144),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x43a8be(0x24d),'attrs':{'fill':_0x43a8be(0x1c8),'d':_0x43a8be(0x12f),'transform':_0x43a8be(0x179)}}]}]}],'defIds':[_0x43a8be(0x1dc)]},Nt=_0x44303b(function(_0x1a04bf,_0x368d01){const _0x680137=_0x43a8be;return _0x691609(je,Object[_0x680137(0x15b)]({},_0x1a04bf,{'id':'on-line-icon','ref':_0x368d01,'icon':Fi}));});Nt['displayName']=_0x43a8be(0x107);function Wi(_0x3c1d7e){const _0x4459c1=_0x43a8be;switch(_0x3c1d7e){case _0x5b5652['OFFLINE']:return _0x4459c1(0x1d5);case _0x5b5652[_0x4459c1(0x285)]:return'collabStatus.conflict';case _0x5b5652[_0x4459c1(0x1de)]:return _0x4459c1(0x262);case _0x5b5652[_0x4459c1(0x1fb)]:return _0x4459c1(0x21b);case _0x5b5652[_0x4459c1(0xf7)]:case _0x5b5652[_0x4459c1(0x1c5)]:return _0x4459c1(0x1d3);case _0x5b5652['SYNCED']:case _0x5b5652[_0x4459c1(0x20c)]:return _0x4459c1(0x119);}}function Vi(_0x1dbfd1){const _0x3f830c=_0x43a8be,{status$:_0x32e2ef}=_0x1dbfd1,_0x27269a=_0xc35486(_0x32e2ef,_0x5b5652[_0x3f830c(0x1fb)]),_0x288019=_0xb33446(_0x2959ab),_0x33e89b=_0xb33446(_0x2c205b),_0x447e2a=_0x27269a!==_0x5b5652['OFFLINE'],_0x301e6c=_0x288019['t'](Wi(_0x27269a)),_0x2e1998=_0x447e2a?_0x37564b(Nt,{}):_0x37564b(Dt,{}),_0x18cca6=_0x121f9a(()=>{const _0x16d920=_0x3f830c;_0x447e2a||_0x33e89b[_0x16d920(0xf1)]();},[_0x447e2a,_0x33e89b]);function _0xc9343(){const _0x5692cf=_0x3f830c;return _0x55b2b1('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x18cca6,'children':[_0x37564b(_0x5692cf(0x1f3),{'className':_0xe6900d(_0x5692cf(0x183),{'univer-text-green-500':_0x447e2a,'univer-text-red-500':!_0x447e2a}),'children':_0x2e1998}),_0x37564b(_0x5692cf(0x1f3),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x301e6c})]});}return _0x447e2a?_0xc9343():_0x37564b(_0x57de25,{'title':_0x288019['t'](_0x3f830c(0x2b2)),'children':_0xc9343()});}var Xi=Object[_0x43a8be(0x137)],Gi=(_0x5e6c99,_0x20bb4c,_0x132ef1,_0x18436d)=>{for(var _0x5229ce=_0x18436d>0x1?void 0x0:_0x18436d?Xi(_0x20bb4c,_0x132ef1):_0x20bb4c,_0x30a76a=_0x5e6c99['length']-0x1,_0x8fb602;_0x30a76a>=0x0;_0x30a76a--)(_0x8fb602=_0x5e6c99[_0x30a76a])&&(_0x5229ce=_0x8fb602(_0x5229ce)||_0x5229ce);return _0x5229ce;},Q=(_0x585469,_0x2aeb2b)=>(_0x4914c5,_0xe9c02f)=>_0x2aeb2b(_0x4914c5,_0xe9c02f,_0x585469);let te=class extends _0x518b39{constructor(_0x33c0bf,_0x5048e2,_0x5e8b43,_0x4efee8){const _0x47d038=_0x43a8be;super(),_(this,_0x47d038(0x11c),new _0x4db302(_0x5b5652[_0x47d038(0x1fb)])),(this['_univerInstanceService']=_0x33c0bf,this['_injector']=_0x5048e2,this['_collaborationController']=_0x5e8b43,this[_0x47d038(0x1c3)]=_0x4efee8,this[_0x47d038(0x135)](),this[_0x47d038(0x192)]());}[_0x43a8be(0x192)](){const _0x17a56c=_0x43a8be;this[_0x17a56c(0x1bf)](this[_0x17a56c(0x10c)][_0x17a56c(0x2b5)][_0x17a56c(0x171)](_0x1b30c1(()=>{const _0x4a279c=_0x17a56c,_0x1dfe94=this[_0x4a279c(0x10c)]['getFocusedUnit']();return _0x1dfe94?this['_collaborationController'][_0x4a279c(0xfb)](_0x1dfe94[_0x4a279c(0x1d4)]()):_0x5f5a1a(null);}),_0x1b30c1(_0x5442cc=>_0x5442cc?_0x5442cc[_0x17a56c(0x22c)]:_0x5f5a1a(_0x5b5652[_0x17a56c(0x1fb)])))[_0x17a56c(0x1b8)](_0x14c5e5=>{const _0x478c65=_0x17a56c;this[_0x478c65(0x11c)][_0x478c65(0xec)](_0x14c5e5);}));}[_0x43a8be(0x135)](){const _0x23b719=_0x43a8be;this[_0x23b719(0x1bf)](this[_0x23b719(0x1c3)][_0x23b719(0x148)](_0xe0d7c4[_0x23b719(0x1a7)],()=>_0x194d6d(Ki({'status$':this[_0x23b719(0x11c)][_0x23b719(0x259)]()}),this[_0x23b719(0x221)])));}};te=Gi([Q(0x0,_0x3d8fed),Q(0x1,_0x31fbf2(_0x5a1f22)),Q(0x2,_0x31fbf2(_0x5ea1c3)),Q(0x3,_0x35398f)],te);function Ki(_0x32f784){const {status$:_0x4b1a79}=_0x32f784;return function(){return _0x37564b(Vi,{'status$':_0x4b1a79});};}var zi=Object['getOwnPropertyDescriptor'],Ji=(_0x32b20a,_0x1941f4,_0x46a40a,_0x1ebfb5)=>{const _0x1d8dec=_0x43a8be;for(var _0x3fda62=_0x1ebfb5>0x1?void 0x0:_0x1ebfb5?zi(_0x1941f4,_0x46a40a):_0x1941f4,_0x5bf62b=_0x32b20a[_0x1d8dec(0x227)]-0x1,_0x1a5943;_0x5bf62b>=0x0;_0x5bf62b--)(_0x1a5943=_0x32b20a[_0x5bf62b])&&(_0x3fda62=_0x1a5943(_0x3fda62)||_0x3fda62);return _0x3fda62;},B=(_0x4160ab,_0x533001)=>(_0x121f6c,_0x19b303)=>_0x533001(_0x121f6c,_0x19b303,_0x4160ab);let se=class extends _0x518b39{constructor(_0x7e3df,_0x30f5d7,_0x1d5709,_0x74a5a8,_0x35c82c,_0x4adf56){const _0x2177a1=_0x43a8be;super(),this[_0x2177a1(0x294)]=_0x7e3df,this[_0x2177a1(0x238)]=_0x30f5d7,this['_collaborationUIEventService']=_0x1d5709,this[_0x2177a1(0x18e)]=_0x74a5a8,this[_0x2177a1(0x249)]=_0x35c82c,this['_localeService']=_0x4adf56,this['_setupBeforeClosingHandler'](),this[_0x2177a1(0x231)]();}['_setupBeforeClosingHandler'](){const _0x33ab94=_0x43a8be;this[_0x33ab94(0x1bf)](this[_0x33ab94(0x294)][_0x33ab94(0x27a)](()=>{const _0x309047=_0x33ab94;if(this[_0x309047(0x238)][_0x309047(0x215)][_0x309047(0x273)])return this[_0x309047(0x102)]['t'](_0x309047(0x204));}));}['_initEvent'](){const _0x23a8c8=_0x43a8be;this[_0x23a8c8(0x1bf)](this[_0x23a8c8(0x21f)][_0x23a8c8(0x11f)][_0x23a8c8(0x1b8)](_0xea2ef6=>{const _0x1c8d35=_0x23a8c8;_0xea2ef6['id']===_0x39a5da['OTHER_CLIENT_EDITING']&&this[_0x1c8d35(0x18e)][_0x1c8d35(0x1c7)]({'type':_0x1b6d69[_0x1c8d35(0x255)],'content':this[_0x1c8d35(0x102)]['t']('collaboration.single-unit.warning')}),_0xea2ef6['id']===_0x39a5da[_0x1c8d35(0x232)]&&this['_messageService']['show']({'type':_0x1b6d69[_0x1c8d35(0x255)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0xea2ef6['id']===_0x39a5da['PERMISSION_DENIED']&&this['_notificationService'][_0x1c8d35(0x1c7)]({'title':this[_0x1c8d35(0x102)]['t'](_0x1c8d35(0x16b)),'content':this['_localeService']['t'](_0x1c8d35(0x2a8)),'type':'error','duration':0x0}),_0xea2ef6['id']===_0x39a5da['CONFLICT']&&this[_0x1c8d35(0x18e)][_0x1c8d35(0x1c7)]({'type':_0x1b6d69[_0x1c8d35(0x1a1)],'content':this[_0x1c8d35(0x102)]['t']('collaboration.closeRoom')+'('+_0xea2ef6[_0x1c8d35(0x1ab)]+')'}),_0xea2ef6['id']===_0x39a5da[_0x1c8d35(0x1e1)]&&this[_0x1c8d35(0x18e)][_0x1c8d35(0x1c7)]({'type':_0x1b6d69['Warning'],'content':this[_0x1c8d35(0x102)]['t'](_0xea2ef6[_0x1c8d35(0x1ab)]||'')}),_0xea2ef6['id']===_0x39a5da['SOCKET_FAILED_RETRY']&&this[_0x1c8d35(0x18e)][_0x1c8d35(0x1c7)]({'type':_0x1b6d69['Warning'],'content':this[_0x1c8d35(0x102)]['t'](_0x1c8d35(0xd4))}),_0xea2ef6['id']===_0x39a5da[_0x1c8d35(0x118)]&&this['_messageService'][_0x1c8d35(0x1c7)]({'type':_0x1b6d69[_0x1c8d35(0x1a1)],'content':this[_0x1c8d35(0x102)]['t']('session.connection-failed')}),_0xea2ef6['id']===_0x39a5da[_0x1c8d35(0x120)]&&this[_0x1c8d35(0x18e)][_0x1c8d35(0x1c7)]({'type':_0x1b6d69['Error'],'content':this[_0x1c8d35(0x102)]['t'](_0x1c8d35(0x1e0))});}));}};se=Ji([B(0x0,_0x34ba9f),B(0x1,_0x2d0fce),B(0x2,_0x31fbf2(_0x517d57)),B(0x3,_0x9bedeb),B(0x4,_0xcb6622),B(0x5,_0x31fbf2(_0x2959ab))],se);const Zi=_0x43a8be(0x1ba),et={},Ut=_0x4cfad9(_0x43a8be(0x225));var Qi=Object[_0x43a8be(0x137)],qi=(_0x146a74,_0x3861c3,_0x41cf17,_0x4b6520)=>{const _0x44f9b4=_0x43a8be;for(var _0xb6a05d=_0x4b6520>0x1?void 0x0:_0x4b6520?Qi(_0x3861c3,_0x41cf17):_0x3861c3,_0xfbd6e0=_0x146a74[_0x44f9b4(0x227)]-0x1,_0x28f3dc;_0xfbd6e0>=0x0;_0xfbd6e0--)(_0x28f3dc=_0x146a74[_0xfbd6e0])&&(_0xb6a05d=_0x28f3dc(_0xb6a05d)||_0xb6a05d);return _0xb6a05d;},G=(_0x25e7fd,_0x82959b)=>(_0x2021e9,_0x7f34aa)=>_0x82959b(_0x2021e9,_0x7f34aa,_0x25e7fd);let ie=class extends _0x53a758{constructor(_0xd334bb,_0x24eb22,_0x17e2d3,_0xf6195f,_0x351602){const _0x5ad8cf=_0x43a8be;super(),this[_0x5ad8cf(0x1eb)]=_0xd334bb,this['_logService']=_0x24eb22,this[_0x5ad8cf(0x2c7)]=_0x17e2d3,this['_dataLoaderService']=_0xf6195f,_0x351602?_0x351602==null||_0x351602[_0x5ad8cf(0x150)]()['then'](()=>this[_0x5ad8cf(0x277)]()):(this['_logService'][_0x5ad8cf(0x1db)](_0x5ad8cf(0x16a),_0x5ad8cf(0x1d7)),this[_0x5ad8cf(0x277)]());}async['_init'](){const _0x51fdfd=_0x43a8be,_0x1b3b35=this[_0x51fdfd(0x1eb)][_0x51fdfd(0x13c)](_0x51fdfd(0x2bc)),_0x2a894a=this[_0x51fdfd(0x1eb)][_0x51fdfd(0x13c)]('type'),_0x4432b5=this[_0x51fdfd(0x1eb)][_0x51fdfd(0x13c)](_0x51fdfd(0x17f));if(!_0x1b3b35||!_0x2a894a){this[_0x51fdfd(0x284)][_0x51fdfd(0x1db)]('[CollaborationDataLoaderController]',_0x51fdfd(0x13a));return;}const _0x5cdfc2=await this[_0x51fdfd(0x172)]['loadUnit'](_0x1b3b35,Number(_0x2a894a),_0x4432b5);_0x5cdfc2&&_0x5cdfc2 instanceof _0x2762ea&&this[_0x51fdfd(0x29e)](_0x5cdfc2);}async[_0x43a8be(0x29e)](_0x36cb21){const _0x1522b2=_0x43a8be;await this['_updateSubUnitFromURLParams'](_0x36cb21),_0x36cb21[_0x1522b2(0x2bd)][_0x1522b2(0x171)](_0x31b790(this[_0x1522b2(0xcb)]))[_0x1522b2(0x1b8)](_0x21d8a7=>{const _0x19b852=_0x1522b2;_0x21d8a7&&this[_0x19b852(0x141)](_0x21d8a7);}),this[_0x1522b2(0x1eb)]['urlChange$'][_0x1522b2(0x171)](_0x31b790(this[_0x1522b2(0xcb)]))[_0x1522b2(0x1b8)](()=>this['_updateSubUnitFromURLParams'](_0x36cb21));}[_0x43a8be(0x141)](_0x1213ff,_0x1e036e=!0x1){const _0x37dc35=_0x43a8be,_0x26d9f9=this[_0x37dc35(0x1eb)]['getParam'](_0x37dc35(0x17f));_0x1213ff['getSheetId']()!==_0x26d9f9&&this[_0x37dc35(0x1eb)][_0x37dc35(0x27d)](_0x37dc35(0x17f),_0x1213ff[_0x37dc35(0x130)](),_0x1e036e);}async[_0x43a8be(0x22f)](_0x5651e5){const _0x3205d1=_0x43a8be;var _0x41f4ae;const _0x1bc7c3=this['_urlService'][_0x3205d1(0x13c)](_0x3205d1(0x17f));if(!_0x1bc7c3||!_0x5651e5['getSheetBySheetId'](_0x1bc7c3)){const _0xb10f5b=_0x5651e5[_0x3205d1(0xef)]()[0x0],_0x2dc6f6=_0x5651e5[_0x3205d1(0x282)](_0xb10f5b);if(!_0x2dc6f6)return;this['_updateURLWithCurrentState'](_0x2dc6f6,!0x0),await this['_commandService'][_0x3205d1(0x13e)](_0x3b96e7['id'],{'unitId':_0x5651e5[_0x3205d1(0x1d4)](),'subUnitId':_0xb10f5b});return;}((_0x41f4ae=_0x5651e5['getActiveSheet']())==null?void 0x0:_0x41f4ae['getSheetId']())!==_0x1bc7c3&&await this[_0x3205d1(0x2c7)]['executeCommand'](_0x3b96e7['id'],{'unitId':_0x5651e5['getUnitId'](),'subUnitId':_0x1bc7c3});}};ie=qi([G(0x0,Ut),G(0x1,_0x5ac3a6),G(0x2,_0x290d3b),G(0x3,_0x31fbf2(_0x40d53b)),G(0x4,_0x426fa7(_0x2f1561))],ie);var en=Object[_0x43a8be(0x137)],tn=(_0x3ffb50,_0x56ff8e,_0x2eda6b,_0xf3bd45)=>{const _0x24d5e0=_0x43a8be;for(var _0x2f22a6=_0xf3bd45>0x1?void 0x0:_0xf3bd45?en(_0x56ff8e,_0x2eda6b):_0x56ff8e,_0x5b93f0=_0x3ffb50[_0x24d5e0(0x227)]-0x1,_0x169c19;_0x5b93f0>=0x0;_0x5b93f0--)(_0x169c19=_0x3ffb50[_0x5b93f0])&&(_0x2f22a6=_0x169c19(_0x2f22a6)||_0x2f22a6);return _0x2f22a6;},pe=(_0x29a157,_0x13f823)=>(_0x5bb0ce,_0x29a99c)=>_0x13f823(_0x5bb0ce,_0x29a99c,_0x29a157);let ne=class{constructor(_0x2e99f9,_0x4f24dd,_0x59cd25){const _0x8cf5b7=_0x43a8be;this[_0x8cf5b7(0x221)]=_0x2e99f9,this[_0x8cf5b7(0x14c)]=_0x4f24dd,this[_0x8cf5b7(0xf5)]=_0x59cd25;}[_0x43a8be(0x242)](_0x32d9f8){const _0x4137ee=_0x43a8be;this[_0x4137ee(0xea)](_0x32d9f8),this['_transformPreviousActiveRange'](_0x32d9f8);}[_0x43a8be(0x24c)](_0xd03a96){const _0x47eed2=_0x43a8be,{unitID:_0x40c530}=_0xd03a96,_0x381340=this[_0x47eed2(0xf5)]['getRenderById'](_0x40c530)[_0x47eed2(0x26d)](_0x5a5cb8),{redoCache:_0x3b7e25}=_0x381340['getUndoRedoMutationParamsCache']();if(_0x3b7e25[_0x47eed2(0x227)]===0x0)return _0xd03a96;let _0x13da2e=_0x430170['deepClone'](_0xd03a96['mutations'][0x0]);for(let _0x201203=0x0;_0x201203<_0x3b7e25[_0x47eed2(0x227)];_0x201203++){const _0x4dc03c={'id':_0x47eed2(0x15e),'params':{..._0x3b7e25[_0x201203]}},_0x3958c7=this['_transformService']['transformMutation'](_0x13da2e,_0x4dc03c,!0x1);if(_0x4381f3(_0x3958c7))throw _0x3958c7[_0x47eed2(0x24a)];_0x13da2e=_0x3958c7[_0x47eed2(0x181)];}return{..._0x430170['deepClone'](_0xd03a96),'mutations':[_0x13da2e]};}[_0x43a8be(0xea)](_0x4f5c3a){const _0x2ecb32=_0x43a8be,{unitID:_0x37abd2}=_0x4f5c3a,_0x39bec6=this['_renderManagerService'][_0x2ecb32(0x218)](_0x37abd2)[_0x2ecb32(0x26d)](_0x5a5cb8),{undoCache:_0x4c9efb,redoCache:_0xdfb4ee}=_0x39bec6['getUndoRedoMutationParamsCache']();if(_0x4c9efb['length']===0x0||_0xdfb4ee[_0x2ecb32(0x227)]===0x0)return;const _0x1f8ddf=[],_0x3a8d61=[];let _0x116f2c=_0x430170[_0x2ecb32(0x20d)](_0x4f5c3a[_0x2ecb32(0xe3)][0x0]),_0x5ae095=_0x430170[_0x2ecb32(0x20d)](_0x4f5c3a['mutations'][0x0]);for(let _0x53d31f=_0x4c9efb[_0x2ecb32(0x227)]-0x1;_0x53d31f>=0x0;_0x53d31f--){const _0xa77c8b={'id':_0x2ecb32(0x15e),'params':{..._0x4c9efb[_0x53d31f]}},_0x189f07={'id':'doc.mutation.rich-text-editing','params':{..._0xdfb4ee[_0x53d31f]}},_0x52be67=this[_0x2ecb32(0x14c)]['transformMutation'](_0x116f2c,_0xa77c8b,!0x1),_0x2d85e3=this[_0x2ecb32(0x14c)][_0x2ecb32(0x234)](_0x5ae095,_0x189f07,!0x1);if(_0x4381f3(_0x52be67))throw _0x52be67['error'];if(_0x4381f3(_0x2d85e3))throw _0x2d85e3[_0x2ecb32(0x24a)];_0x1f8ddf[_0x2ecb32(0x20f)](_0x52be67['m2Prime'][_0x2ecb32(0x1a5)]),_0x3a8d61['unshift'](_0x2d85e3['m2Prime']['params']),_0x116f2c=_0x52be67[_0x2ecb32(0x181)],_0x5ae095=_0x2d85e3[_0x2ecb32(0x181)];}_0x39bec6[_0x2ecb32(0x280)]({'undoCache':_0x1f8ddf,'redoCache':_0x3a8d61});}[_0x43a8be(0xcf)](_0x56227f){const _0x4fd5f3=_0x43a8be,{unitID:_0x462fca}=_0x56227f,_0x428bf9=this[_0x4fd5f3(0xf5)][_0x4fd5f3(0x218)](_0x462fca)[_0x4fd5f3(0x26d)](_0x5a5cb8),_0x45fc8e=_0x428bf9[_0x4fd5f3(0x191)]();if(_0x45fc8e==null)return;const _0x474803=[{'id':_0x4fd5f3(0x15e),'params':{'unitId':_0x56227f[_0x4fd5f3(0x24f)],'actions':null,'textRanges':[_0x45fc8e]}}],_0x2209fd=this[_0x4fd5f3(0x14c)]['transformMutationsWithChangeset'](_0x56227f,_0x474803);if(!_0x591b6f(_0x2209fd))throw _0x2209fd[_0x4fd5f3(0x24a)];const _0x21d300=_0x2209fd['m2Prime'][0x0][_0x4fd5f3(0x1a5)][_0x4fd5f3(0xf8)];Array['isArray'](_0x21d300)&&_0x21d300[_0x4fd5f3(0x227)]&&_0x428bf9[_0x4fd5f3(0x126)](_0x21d300[0x0]);}};ne=tn([pe(0x0,_0x31fbf2(_0x5a1f22)),pe(0x1,_0x282ab3),pe(0x2,_0x4f9c3c)],ne);var sn=Object[_0x43a8be(0x137)],nn=(_0x5247bc,_0x55b7d8,_0x40fb66,_0x4164d1)=>{const _0x45ffce=_0x43a8be;for(var _0x224ab9=_0x4164d1>0x1?void 0x0:_0x4164d1?sn(_0x55b7d8,_0x40fb66):_0x55b7d8,_0x3077b8=_0x5247bc[_0x45ffce(0x227)]-0x1,_0x65771d;_0x3077b8>=0x0;_0x3077b8--)(_0x65771d=_0x5247bc[_0x3077b8])&&(_0x224ab9=_0x65771d(_0x224ab9)||_0x224ab9);return _0x224ab9;},Ce=(_0x2177ab,_0x5dd90b)=>(_0x117600,_0x1d0dad)=>_0x5dd90b(_0x117600,_0x1d0dad,_0x2177ab);let re=class{constructor(_0x21aaa4,_0x2527d7,_0x1724ec){const _0xde5465=_0x43a8be;this[_0xde5465(0x221)]=_0x21aaa4,this[_0xde5465(0x14c)]=_0x2527d7,this[_0xde5465(0x248)]=_0x1724ec;}[_0x43a8be(0x29a)](_0x2cefb5){const _0x43de54=_0x43a8be;this[_0x43de54(0x10b)](_0x2cefb5);}[_0x43a8be(0x24c)](_0x1fca17){const _0x4c8860=_0x43a8be,{unitID:_0x116065}=_0x1fca17,{collaboration:_0x147070}=this[_0x4c8860(0x248)]['getStateCache'](_0x116065);if(_0x147070[_0x4c8860(0x227)]===0x0)return _0x1fca17;let _0x473530=_0x430170[_0x4c8860(0x20d)](_0x1fca17['mutations'][0x0]);for(let _0x449fa3=0x0;_0x449fa3<_0x147070[_0x4c8860(0x227)];_0x449fa3++){const _0xd6d053={'id':_0x4c8860(0x15e),'params':{'unitId':_0x147070[_0x449fa3][_0x4c8860(0x146)],..._0x147070[_0x449fa3]['redoState']}},_0x699610=this['_transformService']['transformMutation'](_0x473530,_0xd6d053,!0x1);if(_0x4381f3(_0x699610))throw _0x699610[_0x4c8860(0x24a)];_0x473530=_0x699610[_0x4c8860(0x181)];}return{..._0x430170[_0x4c8860(0x20d)](_0x1fca17),'mutations':[_0x473530]};}['_transformHistoryAndStateStack'](_0x59208c){const _0x47cd5b=_0x43a8be,{unitID:_0x2ab354}=_0x59208c,{history:_0x4412b7,collaboration:_0x215243}=this[_0x47cd5b(0x248)][_0x47cd5b(0x1cc)](_0x2ab354);if(_0x4412b7[_0x47cd5b(0x227)]===0x0&&_0x215243[_0x47cd5b(0x227)]===0x0)return;const _0x4f6e61=[],_0x2afa1d=[];let _0x38dcff=_0x430170['deepClone'](_0x59208c[_0x47cd5b(0xe3)][0x0]),_0x338c37=_0x430170[_0x47cd5b(0x20d)](_0x59208c[_0x47cd5b(0xe3)][0x0]);for(let _0x268588=_0x4412b7['length']-0x1;_0x268588>=0x0;_0x268588--){const _0x503812={'id':_0x47cd5b(0x15e),'params':{'unitId':_0x4412b7[_0x268588][_0x47cd5b(0x146)],..._0x4412b7[_0x268588][_0x47cd5b(0x11d)]}},_0x48083d={'id':_0x47cd5b(0x15e),'params':{'unitId':_0x4412b7[_0x268588][_0x47cd5b(0x146)],..._0x4412b7[_0x268588][_0x47cd5b(0x275)]}},_0x30561e=this[_0x47cd5b(0x14c)]['transformMutation'](_0x38dcff,_0x503812,!0x1),_0x36f41e=this[_0x47cd5b(0x14c)][_0x47cd5b(0x234)](_0x338c37,_0x48083d,!0x1);if(_0x4381f3(_0x30561e))throw _0x30561e['error'];if(_0x4381f3(_0x36f41e))throw _0x36f41e['error'];_0x4f6e61[_0x47cd5b(0x20f)]({..._0x4412b7[_0x268588],'undoState':_0x30561e[_0x47cd5b(0x13b)][_0x47cd5b(0x1a5)],'redoState':_0x36f41e[_0x47cd5b(0x13b)][_0x47cd5b(0x1a5)]}),_0x38dcff=_0x30561e[_0x47cd5b(0x181)],_0x338c37=_0x36f41e[_0x47cd5b(0x181)];}_0x38dcff=_0x430170[_0x47cd5b(0x20d)](_0x59208c[_0x47cd5b(0xe3)][0x0]),_0x338c37=_0x430170['deepClone'](_0x59208c[_0x47cd5b(0xe3)][0x0]);for(let _0x280b05=_0x215243[_0x47cd5b(0x227)]-0x1;_0x280b05>=0x0;_0x280b05--){const _0x37723a={'id':_0x47cd5b(0x15e),'params':{'unitId':_0x215243[_0x280b05][_0x47cd5b(0x146)],..._0x215243[_0x280b05][_0x47cd5b(0x11d)]}},_0x1d38e0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x215243[_0x280b05][_0x47cd5b(0x146)],..._0x215243[_0x280b05][_0x47cd5b(0x275)]}},_0xab8eac=this['_transformService'][_0x47cd5b(0x234)](_0x38dcff,_0x37723a,!0x1),_0x4bb3d4=this['_transformService'][_0x47cd5b(0x234)](_0x338c37,_0x1d38e0,!0x1);if(_0x4381f3(_0xab8eac))throw _0xab8eac[_0x47cd5b(0x24a)];if(_0x4381f3(_0x4bb3d4))throw _0x4bb3d4[_0x47cd5b(0x24a)];_0x2afa1d[_0x47cd5b(0x20f)]({..._0x215243[_0x280b05],'undoState':_0xab8eac[_0x47cd5b(0x13b)][_0x47cd5b(0x1a5)],'redoState':_0x4bb3d4['m2Prime'][_0x47cd5b(0x1a5)]}),_0x38dcff=_0xab8eac[_0x47cd5b(0x181)],_0x338c37=_0x4bb3d4['m1Prime'];}this[_0x47cd5b(0x248)][_0x47cd5b(0x11a)](_0x2ab354,{'history':_0x4f6e61,'collaboration':_0x2afa1d});}};re=nn([Ce(0x0,_0x31fbf2(_0x5a1f22)),Ce(0x1,_0x282ab3),Ce(0x2,_0x31fbf2(_0x10cd4b))],re);var rn=Object[_0x43a8be(0x137)],on=(_0x5d47f8,_0xfc58fc,_0x4fc5a5,_0x461968)=>{const _0xfc4bcd=_0x43a8be;for(var _0x1d9c0c=_0x461968>0x1?void 0x0:_0x461968?rn(_0xfc58fc,_0x4fc5a5):_0xfc58fc,_0x3661f4=_0x5d47f8[_0xfc4bcd(0x227)]-0x1,_0x2aeee5;_0x3661f4>=0x0;_0x3661f4--)(_0x2aeee5=_0x5d47f8[_0x3661f4])&&(_0x1d9c0c=_0x2aeee5(_0x1d9c0c)||_0x1d9c0c);return _0x1d9c0c;},tt=(_0x505872,_0x4af0f6)=>(_0x476fb6,_0x577ef1)=>_0x4af0f6(_0x476fb6,_0x577ef1,_0x505872);let oe=class{constructor(_0x1f01e9,_0x45b6c0){const _0x4f0981=_0x43a8be;this['_injector']=_0x1f01e9,this[_0x4f0981(0x14c)]=_0x45b6c0;}['transformSelections'](_0x4946cf){const _0x5b6109=_0x43a8be;var _0x1eab50;const _0x2448d5=this['_injector'][_0x5b6109(0x18c)](_0x325118),_0x465db3=(_0x1eab50=_0x2448d5[_0x5b6109(0x257)]())!=null?_0x1eab50:[];if(_0x465db3[_0x5b6109(0x227)]===0x0)return;const _0x58c243=_0x4946cf[_0x5b6109(0x24f)],_0x12044a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x58c243,'actions':null,'textRanges':_0x465db3}}],_0x16099a=this[_0x5b6109(0x14c)][_0x5b6109(0xd2)](_0x4946cf,_0x12044a);if(!_0x591b6f(_0x16099a))throw _0x16099a[_0x5b6109(0x24a)];const _0x4c179d=_0x16099a[_0x5b6109(0x13b)][0x0][_0x5b6109(0x1a5)][_0x5b6109(0xf8)];Array[_0x5b6109(0x159)](_0x4c179d)&&_0x4c179d['length']&&_0x2448d5['replaceDocRanges'](_0x4c179d,{'unitId':_0x58c243,'subUnitId':_0x58c243},!0x1);}};oe=on([tt(0x0,_0x31fbf2(_0x5a1f22)),tt(0x1,_0x282ab3)],oe);var an=Object[_0x43a8be(0x137)],cn=(_0x268870,_0x3fa4a,_0x309010,_0x5db28e)=>{const _0x4e82c3=_0x43a8be;for(var _0x3e43b7=_0x5db28e>0x1?void 0x0:_0x5db28e?an(_0x3fa4a,_0x309010):_0x3fa4a,_0x209eb1=_0x268870[_0x4e82c3(0x227)]-0x1,_0x5a28c3;_0x209eb1>=0x0;_0x209eb1--)(_0x5a28c3=_0x268870[_0x209eb1])&&(_0x3e43b7=_0x5a28c3(_0x3e43b7)||_0x3e43b7);return _0x3e43b7;},U=(_0x2f01e1,_0x4d1eba)=>(_0x4bf66b,_0x626700)=>_0x4d1eba(_0x4bf66b,_0x626700,_0x2f01e1);let ae=class extends _0x518b39{constructor(_0x353447,_0x5d64e4,_0x14cefc,_0x1a92e6,_0x252a63,_0x1fd2e5,_0x2a9166,_0x20f33c){const _0x2b2138=_0x43a8be;super(),_(this,_0x2b2138(0x11c),new _0x4db302(_0x5b5652[_0x2b2138(0x1fb)])),(this[_0x2b2138(0x248)]=_0x353447,this[_0x2b2138(0x22d)]=_0x5d64e4,this[_0x2b2138(0x138)]=_0x14cefc,this[_0x2b2138(0x229)]=_0x1a92e6,this[_0x2b2138(0xe2)]=_0x252a63,this[_0x2b2138(0xfd)]=_0x1fd2e5,this[_0x2b2138(0x18e)]=_0x2a9166,this[_0x2b2138(0x102)]=_0x20f33c,this[_0x2b2138(0x1fa)]());}[_0x43a8be(0x1fa)](){const _0x79438a=_0x43a8be;this[_0x79438a(0x1bf)](this['_collaborationController'][_0x79438a(0x133)]['subscribe'](_0x59cb93=>{const _0x1735d6=_0x79438a,_0x6da7d=this[_0x1735d6(0x248)][_0x1735d6(0x1ac)][_0x1735d6(0x1b8)](_0x2705eb=>{const _0x35d2ac=_0x1735d6;if(_0x2705eb==null)return;const {unitId:_0x13248b,redoState:_0x1f06d5,commandId:_0x164a28}=_0x2705eb;if(_0x13248b!==_0x59cb93[_0x35d2ac(0x24f)])return;const _0x5b58b4={'id':_0x164a28,'type':_0x581c36['MUTATION'],'params':{'unitId':_0x13248b,'actions':_0x1f06d5[_0x35d2ac(0x20b)],'textRanges':null}};_0x59cb93['onLocalMutation'](_0x5b58b4);});if(_0x59cb93[_0x1735d6(0x1bf)](_0x6da7d),_0x59cb93 instanceof _0x3ab3d9){const _0x373fb5={'onTransformIME':_0x258162=>this['_docTransformIMECacheService'][_0x1735d6(0x242)](_0x258162),'onTransformState':_0x317ba4=>this[_0x1735d6(0x229)][_0x1735d6(0x29a)](_0x317ba4),'onTransformSelections':_0x1a9d4d=>this[_0x1735d6(0xe2)][_0x1735d6(0x175)](_0x1a9d4d),'onSyncEditingCollabCursor':_0x471cb3=>this[_0x1735d6(0xfd)]['syncEditingCollabCursor'](_0x471cb3),'onTransformRemoteChangesetByIMECache':_0x4cfdd0=>this['_docTransformIMECacheService'][_0x1735d6(0x24c)](_0x4cfdd0),'onTransformRemoteChangesetByStateCache':_0x14e0e4=>this[_0x1735d6(0x229)][_0x1735d6(0x24c)](_0x14e0e4)};_0x59cb93[_0x1735d6(0x237)](_0x373fb5);}}));}};ae=cn([U(0x0,_0x31fbf2(_0x10cd4b)),U(0x1,_0x31fbf2(_0x5ea1c3)),U(0x2,_0x31fbf2(ne)),U(0x3,_0x31fbf2(re)),U(0x4,_0x31fbf2(oe)),U(0x5,_0x31fbf2(He)),U(0x6,_0x9bedeb),U(0x7,_0x31fbf2(_0x2959ab))],ae);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x3a6aee,_0x2b89f2,_0x2ad7c5,_0x343e88)=>{const _0x428462=_0x43a8be;for(var _0x523ecb=_0x343e88>0x1?void 0x0:_0x343e88?ln(_0x2b89f2,_0x2ad7c5):_0x2b89f2,_0x44b40b=_0x3a6aee[_0x428462(0x227)]-0x1,_0x11216c;_0x44b40b>=0x0;_0x44b40b--)(_0x11216c=_0x3a6aee[_0x44b40b])&&(_0x523ecb=_0x11216c(_0x523ecb)||_0x523ecb);return _0x523ecb;},Ee=(_0x5c9f71,_0x341cb2)=>(_0xc444c,_0x5b74fc)=>_0x341cb2(_0xc444c,_0x5b74fc,_0x5c9f71);let Le=class extends _0x518b39{constructor(_0x595dfc,_0x4691b2,_0x1e1983){const _0x4aa747=_0x43a8be;super(),_(this,_0x4aa747(0x15f),new Map()),_(this,_0x4aa747(0x1ad),new Map()),_(this,_0x4aa747(0x160),!0x1),(this['_configService']=_0x595dfc,this[_0x4aa747(0xe9)]=_0x4691b2,this['_revisionService']=_0x1e1983);}[_0x43a8be(0x190)](){const _0x40d722=_0x43a8be;this[_0x40d722(0x160)]=!0x0;}['enableLocalCache'](){const _0x479d87=_0x43a8be;this[_0x479d87(0x160)]=!0x1;}get[_0x43a8be(0x215)](){const _0x35cf19=_0x43a8be;return this[_0x35cf19(0x1ad)];}['dispose'](){const _0x5f24be=_0x43a8be;this[_0x5f24be(0x299)]()['then'](()=>super[_0x5f24be(0x2b0)]());}async[_0x43a8be(0x267)](_0x40826d){const _0x57650b=_0x43a8be;return this[_0x57650b(0x160)]?null:this['_localStorageService'][_0x57650b(0x20e)](_0x3a4652(_0x40826d));}async[_0x43a8be(0x188)](_0x24d0aa,_0x592da2){return!!this['_localStorageService']['setItem'](_0x24d0aa,_0x592da2);}[_0x43a8be(0x157)](_0x35455f,_0x215051,_0x35b1a0,_0x5e78d1){const _0x3813e9=_0x43a8be,_0x3af8cb=this['_revisionService'][_0x3813e9(0x1e5)](_0x35455f);this['_cachedData'][_0x3813e9(0x161)](_0x35455f,{'unitID':_0x35455f,'type':_0x215051,'awaitingChangeset':_0x35b1a0,'mutations':_0x5e78d1,'rev':_0x3af8cb}),this[_0x3813e9(0x1ad)][_0x3813e9(0x1c4)](_0x35455f)||this[_0x3813e9(0x2a2)](_0x35455f);}[_0x43a8be(0x2a2)](_0x249533){const _0x1f4593=_0x43a8be,_0x10be3a=this[_0x1f4593(0x272)]();_0x10be3a===0x0?this[_0x1f4593(0x1da)](_0x249533):this['_saveTaskMap'][_0x1f4593(0x161)](_0x249533,setTimeout(()=>this[_0x1f4593(0x1da)](_0x249533),_0x10be3a));}[_0x43a8be(0x272)](){const _0x1b8309=_0x43a8be;var _0x52c8a5;return(_0x52c8a5=this[_0x1b8309(0xcc)][_0x1b8309(0x25c)](_0x976e1f))!=null?_0x52c8a5:_0x54e4b8;}['_saveCache'](_0x2de45b){const _0x1bed31=_0x43a8be,_0x3d2577=this['_saveTaskMap'][_0x1bed31(0x18c)](_0x2de45b);return _0x3d2577!==void 0x0&&window['clearTimeout'](_0x3d2577),this[_0x1bed31(0xe9)]['setItem'](_0x3a4652(_0x2de45b),this[_0x1bed31(0x15f)]['get'](_0x2de45b))[_0x1bed31(0x101)](()=>this['_saveTaskMap'][_0x1bed31(0x19a)](_0x2de45b));}async[_0x43a8be(0x299)](){const _0x5dc122=_0x43a8be,_0x2046bc=[];this[_0x5dc122(0x1ad)][_0x5dc122(0x2c2)]((_0x530605,_0x1d2ccf)=>{const _0x1f4672=_0x5dc122;window[_0x1f4672(0x1c1)](_0x530605),_0x2046bc[_0x1f4672(0x2a0)](this[_0x1f4672(0x1da)](_0x1d2ccf)[_0x1f4672(0x101)](()=>{const _0x259730=_0x1f4672;this[_0x259730(0x1ad)]['delete'](_0x1d2ccf);}));}),await Promise['all'](_0x2046bc);}};Le=_n([Ee(0x0,_0x53ad44),Ee(0x1,_0x57ecc4),Ee(0x2,_0x31fbf2(_0x290a0b))],Le);class hn extends _0x53a758{constructor(){const _0x29b4ca=_0x43a8be;super(),_(this,_0x29b4ca(0x2c9)),this[_0x29b4ca(0x2c9)]=_0x2b0b52(window,'popstate')[_0x29b4ca(0x171)](_0x31b790(this[_0x29b4ca(0xcb)]),_0x295263(0x1),_0x279763(void 0x0));}[_0x43a8be(0x27d)](_0x3f5ad7,_0xaa8975,_0x259469=!0x1){const _0x4a23c1=_0x43a8be,_0x5055a7=new URL(window[_0x4a23c1(0x139)][_0x4a23c1(0xd8)]);_0x5055a7['searchParams']['set'](_0x3f5ad7,_0xaa8975),_0x259469?window[_0x4a23c1(0x111)][_0x4a23c1(0xf3)]('','',_0x5055a7[_0x4a23c1(0x2ba)]()):window[_0x4a23c1(0x111)]['pushState']('','',_0x5055a7[_0x4a23c1(0x2ba)]());}[_0x43a8be(0x194)](_0x2254e2,_0x29f412=!0x1){const _0x4be2f3=_0x43a8be,_0x463097=new URL(window[_0x4be2f3(0x139)][_0x4be2f3(0xd8)]);_0x463097['searchParams'][_0x4be2f3(0x19a)](_0x2254e2),_0x29f412?window[_0x4be2f3(0x111)][_0x4be2f3(0xf3)]('','',_0x463097[_0x4be2f3(0x2ba)]()):window['history'][_0x4be2f3(0x17a)]('','',_0x463097[_0x4be2f3(0x2ba)]());}['getParam'](_0x450f1a){const _0x32d7f9=_0x43a8be;var _0x236ea8;return(_0x236ea8=new URL(window[_0x32d7f9(0x139)]['href'])[_0x32d7f9(0x224)]['get'](_0x450f1a))!=null?_0x236ea8:void 0x0;}}var un=Object[_0x43a8be(0x113)],dn=Object['getOwnPropertyDescriptor'],fn=(_0x437881,_0x5df827,_0xd27cb0)=>_0x5df827 in _0x437881?un(_0x437881,_0x5df827,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd27cb0}):_0x437881[_0x5df827]=_0xd27cb0,Sn=(_0x5aa142,_0xc8d8a4,_0x46a2a2,_0x52b418)=>{const _0x5d3cda=_0x43a8be;for(var _0x303f1a=_0x52b418>0x1?void 0x0:_0x52b418?dn(_0xc8d8a4,_0x46a2a2):_0xc8d8a4,_0x115b58=_0x5aa142[_0x5d3cda(0x227)]-0x1,_0x115416;_0x115b58>=0x0;_0x115b58--)(_0x115416=_0x5aa142[_0x115b58])&&(_0x303f1a=_0x115416(_0x303f1a)||_0x303f1a);return _0x303f1a;},Oe=(_0x5c5c66,_0x39d6f5)=>(_0x128f0b,_0x2440d2)=>_0x39d6f5(_0x128f0b,_0x2440d2,_0x5c5c66),mn=(_0x55d1bc,_0x1efb7d,_0x5dfd35)=>fn(_0x55d1bc,_0x1efb7d+'',_0x5dfd35);const In='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ae=class extends _0x49ef6b{constructor(_0x51bc37=et,_0x29567c,_0x50bb09,_0x9d09c6){const _0x1fddf1=_0x43a8be;super(),this[_0x1fddf1(0x110)]=_0x51bc37,this['_renderManagerService']=_0x29567c,this[_0x1fddf1(0x221)]=_0x50bb09,this[_0x1fddf1(0xcc)]=_0x9d09c6;const {..._0x24f692}=_0x72f98d({},et,this[_0x1fddf1(0x110)]);this['_configService'][_0x1fddf1(0x1cb)](Zi,_0x24f692);}[_0x43a8be(0x112)](){const _0x5ea79d=_0x43a8be;this[_0x5ea79d(0xe7)](),this[_0x5ea79d(0xcd)]();}['onRendered'](){const _0x3b979b=_0x43a8be;this[_0x3b979b(0x27b)]();}[_0x43a8be(0xe7)](){const _0x5d43d4=_0x43a8be;var _0x2e50f7;const _0x34b2e6=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x5978c1,{'useClass':_0x3950ab}],[_0x2d0fce,{'useClass':Le}],[te],[ae],[se],[H],[Ne],[ie]];_0x1b7cdc(this[_0x5d43d4(0x221)],_0x5cab48(_0x34b2e6,(_0x2e50f7=this[_0x5d43d4(0x110)])==null?void 0x0:_0x2e50f7['override']));}[_0x43a8be(0x27b)](){const _0x3bee34=_0x43a8be;this[_0x3bee34(0x1bf)](this['_renderManagerService']['registerRenderModule'](_0x2eec1c['UNIVER_DOC'],[we])),this[_0x3bee34(0x1bf)](this[_0x3bee34(0xf5)][_0x3bee34(0x129)](_0x2eec1c[_0x3bee34(0x189)],[Pe]));}[_0x43a8be(0xcd)](){const _0x496e3d=_0x43a8be;_0x1438c5(this[_0x496e3d(0x221)],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x43a8be(0x212),In),Ae=Sn([_0x50b29c(_0x563abf),Oe(0x1,_0x4f9c3c),Oe(0x2,_0x31fbf2(_0x5a1f22)),Oe(0x3,_0x53ad44)],Ae);var gn=Object[_0x43a8be(0x137)],vn=(_0xdd32a7,_0x49dbd0,_0x524bb1,_0x35b5e8)=>{const _0x560d4c=_0x43a8be;for(var _0x5bcc9c=_0x35b5e8>0x1?void 0x0:_0x35b5e8?gn(_0x49dbd0,_0x524bb1):_0x49dbd0,_0x437d28=_0xdd32a7[_0x560d4c(0x227)]-0x1,_0xeeca47;_0x437d28>=0x0;_0x437d28--)(_0xeeca47=_0xdd32a7[_0x437d28])&&(_0x5bcc9c=_0xeeca47(_0x5bcc9c)||_0x5bcc9c);return _0x5bcc9c;},K=(_0x457259,_0x2c1646)=>(_0x4a8d11,_0x46955a)=>_0x2c1646(_0x4a8d11,_0x46955a,_0x457259);let st=class extends _0x5e3805{constructor(_0x8279e4,_0x52834b,_0x5041f7,_0x4d9cab,_0x29780c){super(_0x8279e4,_0x52834b,_0x5041f7,_0x4d9cab,_0x29780c);}async['createSocket'](_0x1a54e0){const _0x36e093=_0x43a8be,_0x182558=await this['_getSessionTicket'](),_0x52bd18=this[_0x36e093(0x258)](_0x1a54e0,_0x182558);return this[_0x36e093(0x220)](_0x52bd18);}[_0x43a8be(0x258)](_0x38f9d4,_0x2db587){const _0x564c7d=_0x43a8be,_0x24ed19=typeof window>'u'?new URL(_0x38f9d4):new URL(_0x38f9d4,window[_0x564c7d(0x139)][_0x564c7d(0x140)]);_0x24ed19[_0x564c7d(0x224)][_0x564c7d(0x161)](_0x564c7d(0x226),_0x2db587);const _0x2ab2c3=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x564c7d(0x139)][_0x564c7d(0x1bb)]);return _0x2ab2c3[_0x564c7d(0x18c)](_0x564c7d(0x17b))&&_0x24ed19[_0x564c7d(0x224)][_0x564c7d(0x161)](_0x564c7d(0x17b),_0x2ab2c3[_0x564c7d(0x18c)]('runId')),_0x24ed19[_0x564c7d(0x2ba)]();}async[_0x43a8be(0x263)](){const _0x52b90d=_0x43a8be;var _0x22833c,_0x37ab68,_0x698714;const _0x35cb4d=this['_configService'][_0x52b90d(0x25c)](_0x84207d),_0x1a7c78=(_0x22833c=_0x35cb4d==null?void 0x0:_0x35cb4d['wsSessionTicketUrl'])!=null?_0x22833c:_0x3bd64d;return(_0x698714=(_0x37ab68=(await this[_0x52b90d(0x239)]['get'](_0x1a7c78,{'headers':{'Content-Type':_0x52b90d(0x187)}}))[_0x52b90d(0x202)])==null?void 0x0:_0x37ab68[_0x52b90d(0x2a6)])!=null?_0x698714:'';}};st=vn([K(0x0,_0x31fbf2(_0x5a1f22)),K(0x1,_0x31fbf2(_0x663635)),K(0x2,_0x53ad44),K(0x3,_0x5ac3a6),K(0x4,_0x55775)],st);const it=0x7530,nt=_0x43a8be(0x12b);class jn extends _0x518b39{constructor(){const _0x324e18=_0x43a8be;super(),_(this,'_id',_0x52c335()),_(this,'_selfUnitIDs',new Set()),_(this,_0x324e18(0x1ea),new Map()),_(this,_0x324e18(0x2b1),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this[_0x324e18(0x277)]();}[_0x43a8be(0x2b0)](){const _0x863bd2=_0x43a8be;super[_0x863bd2(0x2b0)](),this[_0x863bd2(0x2aa)][_0x863bd2(0x2c2)]((_0x477f77,_0x59f487)=>this[_0x863bd2(0x2b4)](_0x59f487)),this[_0x863bd2(0x2b1)]&&window[_0x863bd2(0xdf)](this[_0x863bd2(0x2b1)]);}[_0x43a8be(0x143)](_0x5bb81a){const _0x288176=_0x43a8be;return this[_0x288176(0x1a8)](_0x5bb81a)['pipe'](_0x473aac());}[_0x43a8be(0x131)](_0x50aa1c){const _0x1366b1=_0x43a8be;this[_0x1366b1(0x23c)][_0x1366b1(0x273)]===0x0&&this[_0x1366b1(0x2c4)](),this['_selfUnitIDs']['add'](_0x50aa1c),this[_0x1366b1(0x166)]({'type':0x0,'memberID':this[_0x1366b1(0x1bc)],'unitIDs':[_0x50aa1c],'isForwarded':!0x1});}[_0x43a8be(0xe5)](_0x530dc5){const _0x265919=_0x43a8be;this[_0x265919(0x23c)][_0x265919(0x19a)](_0x530dc5),this[_0x265919(0x23c)][_0x265919(0x273)]===0x0&&this[_0x265919(0x2b1)]&&window['clearInterval'](this[_0x265919(0x2b1)]);}[_0x43a8be(0x277)](){const _0xfda9e3=_0x43a8be;this[_0xfda9e3(0x1bf)](_0x33b3e6(_0x2b0b52(window,'storage')[_0xfda9e3(0x1b8)](_0x148639=>{const _0xe610d2=_0xfda9e3;if(_0x148639[_0xe610d2(0x219)]!==nt||!_0x148639[_0xe610d2(0x233)])return;const _0x1c8517=JSON[_0xe610d2(0x16c)](_0x148639[_0xe610d2(0x233)]);this[_0xe610d2(0x1fe)](_0x1c8517);}))),window[_0xfda9e3(0x21e)](_0xfda9e3(0x195),()=>this['_send']({'type':0x1,'memberID':this[_0xfda9e3(0x1bc)],'unitIDs':Array[_0xfda9e3(0x19d)](this[_0xfda9e3(0x23c)])}));}['_handleEvent'](_0x10f811){const _0x3f5168=_0x43a8be;switch(_0x10f811[_0x3f5168(0x270)]){case 0x0:this['_handleJoinEvent'](_0x10f811);break;case 0x1:this['_handleLeaveEvent'](_0x10f811);break;case 0x2:this[_0x3f5168(0x1ee)](_0x10f811);break;}}['_handleJoinEvent'](_0x52cb06){const _0xb43c3=_0x43a8be,{unitIDs:_0x5c4f60,memberID:_0x24033d,isForwarded:_0x10c1fe}=_0x52cb06;_0x5c4f60[_0xb43c3(0x2c2)](_0xd018a0=>{const _0x1e4b74=_0xb43c3;if(!_0x10c1fe&&this[_0x1e4b74(0x1ea)][_0x1e4b74(0x1c4)](_0xd018a0)&&this[_0x1e4b74(0x1a8)](_0xd018a0)[_0x1e4b74(0xec)](_0x5d0f43[_0x1e4b74(0xc9)]),!this[_0x1e4b74(0x1ea)]['has'](_0xd018a0)||!this[_0x1e4b74(0x1ea)]['get'](_0xd018a0)[_0x1e4b74(0x1c4)](_0x24033d)){const _0x4fa3c5=this['_unitOnClients'][_0x1e4b74(0x18c)](_0xd018a0)||new Set();_0x4fa3c5[_0x1e4b74(0x149)](_0x24033d),this[_0x1e4b74(0x1ea)][_0x1e4b74(0x161)](_0xd018a0,_0x4fa3c5),this[_0x1e4b74(0x2a3)](_0x24033d);}}),_0x10c1fe||this['_send']({'type':0x0,'memberID':this[_0xb43c3(0x1bc)],'unitIDs':[...this[_0xb43c3(0x23c)]],'isForwarded':!0x0});}[_0x43a8be(0x2a3)](_0x506f20){const _0x5bd608=_0x43a8be;this[_0x5bd608(0x2b4)](_0x506f20);const _0x5c1ff0=window[_0x5bd608(0x1b6)](()=>{const _0x456d81=_0x5bd608;this[_0x456d81(0x1ea)]['forEach'](_0x4816c6=>{const _0x4ddf61=_0x456d81;_0x4816c6[_0x4ddf61(0x19a)](_0x506f20);});},it*0x2);this['_clearOtherTimers'][_0x5bd608(0x161)](_0x506f20,_0x5c1ff0);}['_removeClearOtherTimer'](_0xcb54d9){const _0x16d72c=_0x43a8be;if(this[_0x16d72c(0x2aa)][_0x16d72c(0x1c4)](_0xcb54d9)){const _0x45bd7e=this[_0x16d72c(0x2aa)][_0x16d72c(0x18c)](_0xcb54d9);_0x45bd7e&&window[_0x16d72c(0x1c1)](_0x45bd7e),this[_0x16d72c(0x2aa)]['set'](_0xcb54d9,null);}}[_0x43a8be(0x1b2)](_0x4dedcc){const _0x2f3152=_0x43a8be,{memberID:_0x51959c,unitIDs:_0x8b88dc}=_0x4dedcc;_0x8b88dc['forEach'](_0x22a7e1=>{const _0x5cb1e0=_0x4bca;var _0x50beb1;const _0x55e38d=this[_0x5cb1e0(0x1ea)][_0x5cb1e0(0x18c)](_0x22a7e1);_0x55e38d&&(_0x55e38d[_0x5cb1e0(0x19a)](_0x51959c),(_0x50beb1=this[_0x5cb1e0(0x1a8)](_0x22a7e1))==null||_0x50beb1['next'](_0x55e38d[_0x5cb1e0(0x273)]===0x0?_0x5d0f43[_0x5cb1e0(0x163)]:_0x5d0f43[_0x5cb1e0(0xc9)]));}),this[_0x2f3152(0x2b4)](_0x51959c);}['_handleHeartbeatEvent'](_0xcd2ddc){const _0x4c69ba=_0x43a8be;this[_0x4c69ba(0x2a3)](_0xcd2ddc['memberID']);}[_0x43a8be(0x166)](_0x547367){const _0xff85b6=_0x43a8be;localStorage[_0xff85b6(0x13f)](nt,JSON[_0xff85b6(0x1f7)](_0x547367));}[_0x43a8be(0x2c4)](){const _0x13e03b=_0x43a8be;this[_0x13e03b(0x2b1)]=window[_0x13e03b(0x253)](()=>{const _0x2a60c1=_0x13e03b;this['_send']({'type':0x2,'memberID':this[_0x2a60c1(0x1bc)]});},it);}[_0x43a8be(0x1a8)](_0x17243c){const _0xa71217=_0x43a8be;return this[_0xa71217(0x23e)][_0xa71217(0x1c4)](_0x17243c)||this[_0xa71217(0x23e)][_0xa71217(0x161)](_0x17243c,new _0x4db302(_0x5d0f43['NO_OTHER_CLIENTS_EDITING'])),this[_0xa71217(0x23e)][_0xa71217(0x18c)](_0x17243c);}}var Mt=(_0x5b2982=>(_0x5b2982[_0x5b2982['UNDEFINED']=0x0]=_0x43a8be(0x100),_0x5b2982[_0x5b2982['OK']=0x1]='OK',_0x5b2982[_0x5b2982[_0x43a8be(0x1f8)]=0x2]=_0x43a8be(0x1f8),_0x5b2982[_0x5b2982[_0x43a8be(0x154)]=0x3]=_0x43a8be(0x154),_0x5b2982[_0x5b2982[_0x43a8be(0x1d6)]=0x4]=_0x43a8be(0x1d6),_0x5b2982[_0x5b2982[_0x43a8be(0x18d)]=0x5]=_0x43a8be(0x18d),_0x5b2982[_0x5b2982[_0x43a8be(0x19e)]=0x6]=_0x43a8be(0x19e),_0x5b2982[_0x5b2982[_0x43a8be(0x252)]=0x7]=_0x43a8be(0x252),_0x5b2982[_0x5b2982[_0x43a8be(0x193)]=0x8]=_0x43a8be(0x193),_0x5b2982[_0x5b2982[_0x43a8be(0x264)]=0x9]=_0x43a8be(0x264),_0x5b2982[_0x5b2982[_0x43a8be(0xed)]=0xa]=_0x43a8be(0xed),_0x5b2982[_0x5b2982['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x43a8be(0x1b4),_0x5b2982[_0x5b2982['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x43a8be(0x250),_0x5b2982[_0x5b2982['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x43a8be(0x162),_0x5b2982[_0x5b2982[_0x43a8be(0xca)]=0x1773]=_0x43a8be(0xca),_0x5b2982[_0x5b2982[_0x43a8be(0x293)]=0x1b59]=_0x43a8be(0x293),_0x5b2982[_0x5b2982[_0x43a8be(0x16e)]=0x1b5a]=_0x43a8be(0x16e),_0x5b2982[_0x5b2982[_0x43a8be(0x256)]=0x1b5b]=_0x43a8be(0x256),_0x5b2982[_0x5b2982[_0x43a8be(0x169)]=0x1b5c]=_0x43a8be(0x169),_0x5b2982[_0x5b2982[_0x43a8be(0x1b3)]=0x1b5d]=_0x43a8be(0x1b3),_0x5b2982[_0x5b2982[_0x43a8be(0x132)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5b2982[_0x5b2982['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x43a8be(0x198),_0x5b2982[_0x5b2982[_0x43a8be(0x217)]=0x232a]=_0x43a8be(0x217),_0x5b2982[_0x5b2982[_0x43a8be(0x1aa)]=0x232b]=_0x43a8be(0x1aa),_0x5b2982[_0x5b2982['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x43a8be(0x1df),_0x5b2982[_0x5b2982[_0x43a8be(0x286)]=0x232d]=_0x43a8be(0x286),_0x5b2982[_0x5b2982[_0x43a8be(0x1f2)]=0x2711]=_0x43a8be(0x1f2),_0x5b2982[_0x5b2982[_0x43a8be(0x2cc)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5b2982[_0x5b2982[_0x43a8be(0x18a)]=0x2713]=_0x43a8be(0x18a),_0x5b2982[_0x5b2982[_0x43a8be(0xee)]=0x2714]=_0x43a8be(0xee),_0x5b2982[_0x5b2982[_0x43a8be(0x2b6)]=0x271a]=_0x43a8be(0x2b6),_0x5b2982[_0x5b2982[_0x43a8be(0x27e)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5b2982[_0x5b2982[_0x43a8be(0x2a4)]=0x271c]=_0x43a8be(0x2a4),_0x5b2982[_0x5b2982[_0x43a8be(0x222)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5b2982[_0x5b2982[_0x43a8be(0x28a)]=0x271e]=_0x43a8be(0x28a),_0x5b2982[_0x5b2982[_0x43a8be(0x1ec)]=0x271f]=_0x43a8be(0x1ec),_0x5b2982[_0x5b2982[_0x43a8be(0x176)]=0x2af9]=_0x43a8be(0x176),_0x5b2982[_0x5b2982[_0x43a8be(0x276)]=0x2ee1]=_0x43a8be(0x276),_0x5b2982[_0x5b2982['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x5b2982[_0x5b2982['INVITE_CODE_REQUIRED']=0x2ee3]=_0x43a8be(0x2b8),_0x5b2982[_0x5b2982['USER_NOT_INVITED_CODE']=0x2ee4]=_0x43a8be(0x186),_0x5b2982[_0x5b2982[_0x43a8be(0x114)]=0x2ee5]=_0x43a8be(0x114),_0x5b2982[_0x5b2982['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x43a8be(0x2ab),_0x5b2982[_0x5b2982['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5b2982[_0x5b2982[_0x43a8be(0x1b5)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5b2982[_0x5b2982[_0x43a8be(0x29c)]=-0x1]='UNRECOGNIZED',_0x5b2982))(Mt||{}),pn=Object[_0x43a8be(0x137)],Cn=(_0x5c7e0c,_0x55e028,_0x268bad,_0x4b5958)=>{for(var _0x3d3c0e=_0x4b5958>0x1?void 0x0:_0x4b5958?pn(_0x55e028,_0x268bad):_0x55e028,_0x3eb2a6=_0x5c7e0c['length']-0x1,_0x524c32;_0x3eb2a6>=0x0;_0x3eb2a6--)(_0x524c32=_0x5c7e0c[_0x3eb2a6])&&(_0x3d3c0e=_0x524c32(_0x3d3c0e)||_0x3d3c0e);return _0x3d3c0e;},be=(_0x491a18,_0x1bbb4c)=>(_0x5f3434,_0x141b6f)=>_0x1bbb4c(_0x5f3434,_0x141b6f,_0x491a18);let rt=class extends _0x518b39{constructor(_0x4e78db,_0x23f4ae,_0x30926a){const _0x59aede=_0x43a8be;super(),this[_0x59aede(0x1d2)]=_0x4e78db,this[_0x59aede(0x239)]=_0x23f4ae,this[_0x59aede(0xcc)]=_0x30926a;}async['runOnServer'](_0x2c75b9,_0x524d0f,_0x3aeabd,..._0x26269c){const _0x4a64a8=_0x43a8be;var _0x5d23e0,_0x29a50b,_0x5b4950,_0x4f9be3;const _0x2553a1=this[_0x4a64a8(0x1d2)][_0x4a64a8(0x26b)]();if(!_0x2553a1)throw new Error(_0x4a64a8(0x26f));const _0x23e9df=((_0x5d23e0=this[_0x4a64a8(0xcc)][_0x4a64a8(0x25c)](_0x5a9f90))!=null?_0x5d23e0:_0x444213)+'/'+_0x2c75b9+_0x4a64a8(0x1ca)+_0x524d0f,_0x176533=new URL(window[_0x4a64a8(0x139)][_0x4a64a8(0xd8)]),_0xf8972b={'scriptId':_0x2c75b9,'runId':(_0x29a50b=_0x176533[_0x4a64a8(0x224)][_0x4a64a8(0x18c)](_0x4a64a8(0x17b)))!=null?_0x29a50b:'','function':_0x524d0f,'unitId':_0x2553a1[_0x4a64a8(0x1d4)](),'argsOfFunction':JSON[_0x4a64a8(0x1f7)](_0x26269c),'invokeId':(_0x5b4950=_0x3aeabd[_0x4a64a8(0x291)])!=null?_0x5b4950:'','executionId':(_0x4f9be3=_0x3aeabd[_0x4a64a8(0x206)])!=null?_0x4f9be3:''};try{const _0x3e538d=await this[_0x4a64a8(0x239)][_0x4a64a8(0x1e4)](_0x23e9df,{'body':_0xf8972b});return _0x3e538d[_0x4a64a8(0x202)][_0x4a64a8(0x24a)]&&_0x3e538d['body']['error']['code']!==Mt['OK']?_0x4a64a8(0x271):_0x3e538d[_0x4a64a8(0x202)][_0x4a64a8(0x209)];}catch{return _0x4a64a8(0x271);}}};rt=Cn([be(0x0,_0x3d8fed),be(0x1,_0x31fbf2(_0x663635)),be(0x2,_0x53ad44)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Vi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,Li as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,jn as WebBrowserSingleActiveUnitService,hn as WebURLService};
1
+ const _0x64618b=_0x5700;(function(_0x2a7d78,_0x326348){const _0x32223a=_0x5700,_0x5aa1e1=_0x2a7d78();while(!![]){try{const _0x2c303a=-parseInt(_0x32223a(0x1c2))/0x1+-parseInt(_0x32223a(0x26d))/0x2*(parseInt(_0x32223a(0x20d))/0x3)+parseInt(_0x32223a(0x16a))/0x4+-parseInt(_0x32223a(0x2d4))/0x5+-parseInt(_0x32223a(0x1a2))/0x6*(-parseInt(_0x32223a(0x283))/0x7)+-parseInt(_0x32223a(0x300))/0x8*(-parseInt(_0x32223a(0x266))/0x9)+parseInt(_0x32223a(0x1ff))/0xa*(parseInt(_0x32223a(0x2e5))/0xb);if(_0x2c303a===_0x326348)break;else _0x5aa1e1['push'](_0x5aa1e1['shift']());}catch(_0x2eaed9){_0x5aa1e1['push'](_0x5aa1e1['shift']());}}}(_0x16c4,0xc3ace));var $t=Object['defineProperty'],xt=(_0x1f10a3,_0x421d87,_0xcaffe9)=>_0x421d87 in _0x1f10a3?$t(_0x1f10a3,_0x421d87,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcaffe9}):_0x1f10a3[_0x421d87]=_0xcaffe9,_=(_0x40245c,_0x56f9fe,_0x65b1c2)=>xt(_0x40245c,typeof _0x56f9fe!=_0x64618b(0x22a)?_0x56f9fe+'':_0x56f9fe,_0x65b1c2);function _0x5700(_0x2c58c2,_0x4bd157){const _0x16c4fc=_0x16c4();return _0x5700=function(_0x570061,_0x500032){_0x570061=_0x570061-0x13e;let _0x54a564=_0x16c4fc[_0x570061];return _0x54a564;},_0x5700(_0x2c58c2,_0x4bd157);}import{MemberService as _0x595aa4,SessionStatus as _0x3cc143,CollaborationSessionService as _0x2959b5,CollaborationStatus as _0x253d04,CollaborationController as _0x22feca,ILocalCacheService as _0x212ecf,CollaborationUIEventService as _0x2beba7,CollaborationUIEventId as _0x5d9b57,DataLoaderService as _0x1df97d,DocCollaborationEntity as _0x1cc43c,getLocalCacheKey as _0x284f5a,LOCAL_CACHE_INTERVAL as _0x2b2211,LOCAL_CACHE_INTERVAL_KEY as _0x55e399,UniverCollaborationClientPlugin as _0x420057,CollaborationSocketService as _0x2082c4,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4e72ac,DEFAULT_WS_SESSION_TICKET_URL as _0x55056a,UnitStatus as _0x201f5e,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2ee7f8,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4128ca}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x4ddff1,Disposable as _0xfd192d,DOC_RANGE_TYPE as _0xe48f47,Inject as _0x5033cb,Injector as _0x5d0444,IUniverInstanceService as _0x56a9dd,ICommandService as _0x441fb8,debounce as _0x528585,Rectangle as _0x532fdd,DisposableCollection as _0x5c707e,toDisposable as _0x467123,UniverInstanceType as _0x55218d,Tools as _0x521fe2,COLORS as _0x13d148,ColorKit as _0x47caa8,ThemeService as _0x3cc326,fromEventSubject as _0x4ca10b,LocaleService as _0x7d4dd3,createIdentifier as _0x334356,ILogService as _0x2b7a43,Optional as _0x350c9b,Workbook as _0x165fa1,CommandType as _0x8e4acc,IConfigService as _0x8e7106,ILocalStorageService as _0x2b41b1,DependentOn as _0x1a8199,Plugin as _0x2c548a,merge as _0x32f801,registerDependencies as _0x1bad60,mergeOverrideWithDependencies as _0x10af78,touchDependencies as _0x55a510,generateRandomId as _0x26dde8}from'@univerjs/core';import{Shape as _0x2f321f,Rect as _0x44fdaf,getColor as _0x2d3e0b,RegularPolygon as _0x40cb0f,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x191eae,Vector2 as _0x2da506,SHEET_VIEWPORT_KEY as _0x4547f8,IRenderManagerService as _0x479a8}from'@univerjs/engine-render';function _0x16c4(){const _0x2d653d=['from','enableLocalCache','USERS_LEAVE','transformRemoteChangeset','_configService','12369bSVXlC','_collabCursorController','assignAColorForMemberID','top','_textBubble','collabStatus.conflict','_hovered','disableLocalCache','_document','_disabled','_scheduleSaving','hovered','MOBILE_HAS_BEEN_BOUND','getTypeOfUnitDisposed$','set','createInstance','ENSURE_SNAPSHOT_EXECUTION','hasOwnProperty','getRenderById','apply','location','row','_drawTextRange','_cursorInfo$','_doCreateSocket','_docSkeletonManagerService','skeleton','unsubscribe','addClipboardHook','symbol','engine','deepClone','unit','isEditing','height','lineTo','urlChange$','_handleJoinEvent','CONFLICT','invokeId','stringify','ONLINE','_onRefRangeChange','_cachedData','MoveRangeCommandId','ALREADY_EXISTS','evenodd','get','_docTransformIMECacheService','dispose','className','fillStyle','disposeWithMe','url(#$1','type','bottom','_handleHover','_registerRenderDependencies','CHANGESET_REVISION_CONFILICT','unitId','getCurrentSelections','save','href','_saveTaskMap','HEADER_MENU','path','_beforeCloseService','actions','getDocRanges','undoState','url(#off-line-icon_clip0_910_343)','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SOCKET_FAILED_RETRY','fillText','LICENSE_DISTRO_REJECTED','UNIVER_SHEET','UNDEFINED','push','...','_initEntityListener','getOffsetConfig','pipe','forEach','all','_clearOtherTimers','_univerInstanceService','getActiveRange','replaceDocRanges','getUnitStatus$','306RSlZFk','INVITE_CODE_HAS_BEEN_UES','moveTo','result','labelPosition','clearInterval','_backgroundColor','192OuVDQa','eventID','yellow.400','debug','_httpService','mask','InsertColCommandId','setShapeProps','use','LOGIN_FAILED','http://www.w3.org/2000/svg','M0\x200H16V16H0z','selections','_ensureSubject','children','editingUnit','color','YUUMI_SUBSCRIPTION_NOT_FOUND','_collaborationController','getAncestorScale','addEventListener','_handleHeartbeatEvent','7AgZHwb','ticket','pluginName','transformByState','executeCommand','includes','then','_sheetSkeletonManagerService','updateOfflineData','icon','LICENSE_IMPORT_SIZE_EXCEEDED','INVALID_ARGUMENT','_logService','call','TEXT','_commandService','setItem','defIds','concat','textRanges','_collabCursorState$','_entities','attrs','docStateChange$','_updateCollabCursors','_roomMembers$','_onCursorUpdate','add','override','getMemberID','YUUMI_AI_RUN_FAILED','trim','subscribeEvent','_anchorDot','params','registerBeforeClose','FromArray','_imageIoService','UNAUTHENTICATED','setUndoRedoMutationParamsCache','_init','unitID','selection','getParam','onCommandExecuted','APPLY_PERMISSION_DENIED','transformStateCache','_online','_startSheetCollabCursor','url(#on-line-icon_clip0_910_349)','getUndoRedoMutationParamsCache','APPLY_NON_SEQUENTIAL_REVISION','0\x200\x2016\x2016','replace','defineProperty','beginPath','m1Prime','column','focused$','closePath','memberID','_updateSubUnitFromURLParams','currentColor','purple.300','_shapes','text','SNAPSHOT_HAS_BEEN_REMOVED','getValue','search','sessionStatus$','_startDocCollabCursor','INTERNAL_ERROR','SUBMIT_CHANGESET_TIMEOUT','redoState','_messageService','blue.400','INVALID_INVITE_CODE','_initDependencies','setParam','APPLY_REJECT','collabStatus.notCollab','5304410HxVxsJ','session.collaboration-timeout','_eventUnsubscribe','none','_colorIndex','_status$','_id','YUUMI_URL_COL_OUT_OF_RANGE','PERMISSION_DENIED','INVITE_CODE_ALREADY_BOUND','error','COMPLETION_FINISHED','generateRandomId','PY_RUNTIME_SCRIPT_ERROR','JOIN_ROOM_FAILED','roomMembers$','backgroundColor','18535099wXJies','find','_removeClearOtherTimer','popstate','permission.title','_getSessionTicket','getSheetBySheetId','transformMutation','_send','getCollabCursors$','prototype','transformSelections','indexOf','#FFF','getConfig','_saveCache','code','on-line-icon','_refRangeService','_urlService','registerRenderModule','collabStatus.synced','createSocket','getOwnPropertySymbols','getTypeOfUnitAdded$','_localeService','origin','118248WyPATV','LICENSE_MAX_UNITS_EXCEEDED','NOT_COLLAB','UniverIcon','arc','data','black','_draw','round','svg','_docSkeleton','RemoveRowCommandId','_injector','YUUMI_UNABLE_LOAD_URL','getFocusedUnit','activeSheet$','setStateCache','_config','_docSyncEditingCollabCursorService','rgba(255,\x20255,\x20255,\x200.01)','onStarting','NO_OTHER_CLIENTS_EDITING','send','size','storage','wsSessionTicketUrl','_getScale','_memberService','_initResize','map','CONNECTOR_DATA_TOO_LARGE','_onCursorDelete','endColumn','string','_drawAnchor','_uiPartsService','cursorInfo$','_docTransformSelectionsService','session.will-retry','AWAITING','min','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','APPLY_DUPLICATED','InsertRowCommandId','_getAnchorBounding','m2Prime','_colorAssignService','name','/run/','setConfig','cursorInfo','getUnitId','xlink:href','div','_initEvent','collaboration.single-unit.warning','newValue','UNRECOGNIZED','whenReady','split','getCurrent','registerComponent','OTHER_CLIENTS_EDITING','show','makeDirty','[CollaborationDataLoaderController]','_renderManagerService','next','displayName','Unknown\x20user','_initStatusComponent','delete','UPDATE_CURSOR','setInterval','_scene','collabCursorState$','_updateURLWithCurrentState','_handleLeaveEvent','length','getSheetId','subUnitId','removeParam','_heartbeatTimer','YUUMI_ALL_TABLES_IS_INVALID','_collaborationUIEventService','_session','application/json','hide','INVITE_CODE_REQUIRED','mutations','MUTATION','_name','getRangePointData','APPLY_REVISION_CONFILICT','_docClipboardService','_collabSessionService','univer-flex\x20univer-mr-2\x20univer-text-xl','drawWith','searchParams','function','_toggleOffline','SYNCED','pushState','unload','getColorFromTheme','permission.content','extend','_docStateChangeManagerService','_notificationService','onPointerMove$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getUniverSheetInstance','386164hgCEby','getItem','YUUMI_NO_CUBOID_FOR_QUESTION','_entityInit$','_initCommandExecutedListener','transformMutationsWithChangeset','YUUMI_RATE_OVER_LIMIT','status$','collaboration-client-ui.config','doc.mutation.rich-text-editing','_setupSubUnitSync','currentTheme$','RECT','assign','getMember','requireSession','tag','_getSaveTimeout','OffLineIcon','unshift','idSuffix','_transformService','_updateLocalCursor','getStateCache','width','YUUMI_TABLE_NOT_FOUND_IN_UNIT','green.600','toString','toRgbString','clipPath','getRelativeToViewportCoord','EMAIL_HAS_BEEN_BOUND','_localStorageService','getVpScrollXYInfoByPosToVp','NOT_FOUND','_cursorShapes','_instanceService','Failed','_anchor','startColumn','_revisionService','with','_getSheetObject','Warning','collabStatus.fetchMiss','_removeCollabCursors','restore','collaboration-client.offline-data-not-saved','_color','getCellPositionByOffset','clearTimeout','on-line-icon_clip0_910_349','random','_transformUndoRedoStack','_cursors','exhaustSavingTask','3093918Bkkffr','_docTransformStateCacheService','collab-rect-range-','setTimeout','dispose$','max','AWAITING_WITH_PENDING','subunit','transformIMECache','loadOfflineData','uni.network.url-service','replaceState','onTransformChange$','complete','_syncEditingCollabCursorService','WECHAT_HAS_BEEN_BOUND','_dataLoaderService','addObject','_render','USER_NOT_INVITED_CODE','_unitOnClients','_labelPosition','_refreshCollabCursors','contains','Error','getMergeData','getOwnPropertyDescriptor','jiqing.500','_context','onMouseMove','onPointerEnter$','ranges','541581UIQomG','_transformHistoryAndStateStack','history','SNAPSHOT_INVALID_SNAPSHOT','_drawRectRange','_transformPreviousActiveRange','collaboration.closeRoom','asObservable','white','fill','setActiveRange','_scheduleHeartbeat','event$','startRow','UNIVER_DOC','YUUMI_ASYNCIO_CANCELLED','measureText','setAlpha','1em','_hideTimer','_setupBeforeClosingHandler','_scheduleClearOtherTimer','InsertRangeMoveRightCommandId','defs','colorChannel1','saveTaskMap','onPointerLeave$','sessionTicket','source','_range','univer-flex\x20univer-items-center','propertyIsEnumerable','_selfUnitIDs','_hover','_handleEvent','saveImage','font','_cursor','some','currentSkeleton$','body','findNodePositionByCharIndex','registerRefRange','_assignedColors','init','has','subscribe','translate(.97)','_themeService','syncEditingCollabCursor','_unitStatus','RemoveColCommandId','sheetId','_lastPointer','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_createSocketURL','addHandlerCallback','univerjs-icon\x20univerjs-icon-','isArray','TOO_MANY_REQUESTS','post','10guPrWB','addObjects','_toggleOnline','VIEW_MAIN','range','loadUnit','runId','values','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200'];_0x16c4=function(){return _0x2d653d;};return _0x16c4();}import{ISocketService as _0x405659,WebSocketService as _0xefa18a,HTTPService as _0x511497}from'@univerjs/network';import{IDocClipboardService as _0x4c00c3,NodePositionConvertToCursor as _0xb1b446,NodePositionConvertToRectRange as _0x36f802,TEXT_RANGE_LAYER_INDEX as _0x54b383,SetDocZoomRatioOperation as _0x12c153,DocIMEInputManagerService as _0x27ee56,DocStateChangeManagerService as _0x1a5ccb}from'@univerjs/docs-ui';import{IImageIoService as _0x5101e9}from'@univerjs/drawing';import{BehaviorSubject as _0x3d4fde,debounceTime as _0x6156d5,takeUntil as _0xf9f0d5,Subject as _0x185d1b,filter as _0x14c0fe,switchMap as _0x31eb21,merge as _0x264842,combineLatest as _0x47b847,of as _0x221268,fromEvent as _0x282fe4,shareReplay as _0xa8cb90,mapTo as _0x203496,distinctUntilChanged as _0x33ccb0}from'rxjs';import{SetTextSelectionsOperation as _0x12c489,RichTextEditingMutation as _0x1e80f7,DocSelectionManagerService as _0x34051a,DocSkeletonManagerService as _0x30cf23}from'@univerjs/docs';import{ITransformService as _0x492187,CollaborationEvent as _0x110449,isTransformMutationFailure as _0x2438e1,isTransformMutationsWithChangesetSuccess as _0x2ccd38,RevisionService as _0x1996cf,ISnapshotServerService as _0x3e1e1d}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x1eabee,serializeRangeWithSheet as _0x4e4fff}from'@univerjs/engine-formula';import{RefRangeService as _0x4c0591,SetSelectionsOperation as _0x3de7a1,SheetsSelectionsService as _0x6612a2,EffectRefRangId as _0x28222f,handleIRemoveRow as _0x38756b,handleIRemoveCol as _0x218b2e,handleMoveRange as _0x2495b1,handleInsertRow as _0x560e2d,handleInsertRangeMoveRight as _0x59fa95,handleInsertRangeMoveDown as _0x12a9d4,handleInsertCol as _0x24253b,handleDeleteRangeMoveUp as _0x567827,handleDeleteRangeMoveLeft as _0x5f1b70,runRefRangeMutations as _0x460ac6,SetWorksheetActivateCommand as _0x4ab9ef}from'@univerjs/sheets';import{map as _0x18694b,filter as _0x12b8db,throttleTime as _0x40c540,takeUntil as _0x223637,switchMap as _0x2ff73a}from'rxjs/operators';import{SheetSkeletonManagerService as _0x31d5fb,getCoordByCell as _0x1d907c,getSheetObject as _0x495b33}from'@univerjs/sheets-ui';import{jsx as _0x4eb9b5,jsxs as _0x4ca26e}from'react/jsx-runtime';import{useObservable as _0x4861f8,useDependency as _0xbdf0d4,IUIPartsService as _0x5bd75c,BuiltInUIPart as _0x257042,connectInjector as _0x174522,IBeforeCloseService as _0x6045cf,IMessageService as _0x453f1e,INotificationService as _0x180a10}from'@univerjs/ui';import{Tooltip as _0x1cf3b2,clsx as _0x55d543,MessageType as _0x37e46e}from'@univerjs/design';import{forwardRef as _0x36b6f5,useRef as _0x3bf52a,createElement as _0x4d5013,useCallback as _0x46934a}from'react';import{IRemoteInstanceService as _0x13b1c1}from'@univerjs/rpc';var ci=Object[_0x64618b(0x1bc)],li=(_0x40f0db,_0x4f080e,_0x44f480,_0x568cb8)=>{const _0x1d7fb0=_0x64618b;for(var _0x19892d=_0x568cb8>0x1?void 0x0:_0x568cb8?ci(_0x4f080e,_0x44f480):_0x4f080e,_0x5ac1d7=_0x40f0db[_0x1d7fb0(0x148)]-0x1,_0x39c6db;_0x5ac1d7>=0x0;_0x5ac1d7--)(_0x39c6db=_0x40f0db[_0x5ac1d7])&&(_0x19892d=_0x39c6db(_0x19892d)||_0x19892d);return _0x19892d;},Je=(_0x5573ee,_0x3234d2)=>(_0x288a29,_0xa3fcd)=>_0x3234d2(_0x288a29,_0xa3fcd,_0x5573ee);let Ne=class extends _0x4ddff1{constructor(_0x3de177,_0x4e03a2){const _0x41264a=_0x64618b;super(),this[_0x41264a(0x158)]=_0x3de177,this[_0x41264a(0x2a8)]=_0x4e03a2,this[_0x41264a(0x2ab)]();}['_init'](){const _0x1923d1=_0x64618b,_0x41ca8b=this;this[_0x1923d1(0x241)](this['_docClipboardService'][_0x1923d1(0x229)]({'onBeforePasteImage':async _0x293384=>{const _0x2af846=_0x1923d1,_0x26a4ef=await _0x41ca8b[_0x2af846(0x2a8)][_0x2af846(0x1e5)](_0x293384);return _0x26a4ef?{'source':_0x26a4ef[_0x2af846(0x1de)],'imageSourceType':_0x26a4ef['imageSourceType']}:null;}}));}};Ne=li([Je(0x0,_0x4c00c3),Je(0x1,_0x5101e9)],Ne);const Ze=[_0x64618b(0x2c2),_0x64618b(0x1bd),_0x64618b(0x184),'red.300',_0x64618b(0x2ce),_0x64618b(0x26f)];class ke extends _0xfd192d{constructor(){const _0xdab985=_0x64618b;super(...arguments),_(this,_0xdab985(0x1ed),new Map()),_(this,_0xdab985(0x2d8),0x0);}[_0x64618b(0x20f)](_0x394e21){const _0x181120=_0x64618b;if(this['_assignedColors'][_0x181120(0x1ef)](_0x394e21))return this[_0x181120(0x1ed)]['get'](_0x394e21);const _0x1bbf48=Ze[this[_0x181120(0x2d8)]];return this[_0x181120(0x2d8)]=(this[_0x181120(0x2d8)]+0x1)%Ze[_0x181120(0x148)],this['_assignedColors']['set'](_0x394e21,_0x1bbf48),_0x1bbf48;}}function Tt(_0x46fb67){const _0x923638=_0x64618b;let _0xdf849='';for(const _0x3a39d8 of _0x46fb67){const {startOffset:_0x4d9cda,endOffset:_0x5041f9,isActive:_0x8d7366,rangeType:_0x1fe148,segmentId:_0xaf9095,segmentPage:_0x52e6bc}=_0x3a39d8;_0xdf849[_0x923638(0x148)]&&(_0xdf849+=','),_0xdf849+=_0x4d9cda+':'+_0x5041f9+':'+(_0x8d7366?'1':'0')+':'+_0x1fe148+':'+_0xaf9095+':'+_0x52e6bc;}return _0xdf849;}function _i(_0x2762d7){const _0x445bd2=_0x64618b,_0x8d3ea=_0x2762d7['split'](','),_0xce68b5=[];for(const _0x5b8be5 of _0x8d3ea){const [_0x534ff7,_0x9cbc5,_0x120de0,_0x5d5aaa,_0x4ec423,_0x4e0e33]=_0x5b8be5[_0x445bd2(0x33b)](':');_0xce68b5[_0x445bd2(0x25a)]({'startOffset':Number(_0x534ff7),'endOffset':Number(_0x9cbc5),'collapsed':_0x534ff7===_0x9cbc5,'isActive':_0x120de0==='1','rangeType':_0x5d5aaa===_0xe48f47[_0x445bd2(0x291)]?_0xe48f47['TEXT']:_0xe48f47[_0x445bd2(0x176)],'segmentId':typeof _0x4ec423==_0x445bd2(0x321)?String(_0x4ec423):'','segmentPage':Number(_0x4e0e33!=null?_0x4e0e33:-0x1)});}return _0xce68b5[_0x445bd2(0x1e8)](_0x27838a=>_0x27838a['isActive'])||(_0xce68b5[0x0]['isActive']=!0x0),_0xce68b5;}class He extends _0x4ddff1{constructor(){const _0x318d4a=_0x64618b;super(...arguments),_(this,_0x318d4a(0x297),new _0x3d4fde(null)),_(this,'collabCursorState$',this[_0x318d4a(0x297)][_0x318d4a(0x1c9)]());}[_0x64618b(0x1f3)](_0x10fc3b){const _0x1bf8f8=_0x64618b,{unitID:_0x341715,memberID:_0x489da5,textRanges:_0x24dc16}=_0x10fc3b,_0x4bf395=Tt(_0x24dc16);if(_0x4bf395==='')return;const _0x4865d6={'unitID':_0x341715,'memberID':_0x489da5,'selection':_0x4bf395};this[_0x1bf8f8(0x297)][_0x1bf8f8(0x343)](_0x4865d6);}}var hi=Object[_0x64618b(0x1bc)],ui=(_0xb99e77,_0x21dc62,_0x4dc905,_0x567cce)=>{const _0x3ac486=_0x64618b;for(var _0x3cfdf3=_0x567cce>0x1?void 0x0:_0x567cce?hi(_0x21dc62,_0x4dc905):_0x21dc62,_0x42530a=_0xb99e77[_0x3ac486(0x148)]-0x1,_0x2f9886;_0x42530a>=0x0;_0x42530a--)(_0x2f9886=_0xb99e77[_0x42530a])&&(_0x3cfdf3=_0x2f9886(_0x3cfdf3)||_0x3cfdf3);return _0x3cfdf3;},P=(_0x4e3f00,_0xf015f5)=>(_0x5f1f51,_0x2563a3)=>_0xf015f5(_0x5f1f51,_0x2563a3,_0x4e3f00);const di=0x12c,fi=0x64;let Ue=class extends _0x4ddff1{constructor(_0x50989a,_0x1d5ad5,_0x3a8ce4,_0x186e32,_0x9e37e9,_0x43cf82,_0x4897be,_0x4c0b7f,_0x225038){const _0x56f89d=_0x64618b;super(),_(this,_0x56f89d(0x2b2),!0x1),_(this,_0x56f89d(0x2ab),!0x1),_(this,_0x56f89d(0x224),new _0x3d4fde(new Map())),_(this,_0x56f89d(0x324),this[_0x56f89d(0x224)][_0x56f89d(0x1c9)]()),_(this,_0x56f89d(0x29c),new _0x3d4fde([])),_(this,_0x56f89d(0x2e3),this[_0x56f89d(0x29c)][_0x56f89d(0x25e)](_0x6156d5(di))),_(this,'_updateLocalCursor',_0x528585(_0x56b28d=>{const _0x1fe13a=_0x56f89d,_0x5222ca={'eventID':_0x110449[_0x1fe13a(0x142)],'data':{'unitID':this['unitID'],'memberID':this[_0x1fe13a(0x14f)][_0x1fe13a(0x2a0)](),'selection':Tt(_0x56b28d)}};this['_session'][_0x1fe13a(0x316)](_0x5222ca,this[_0x1fe13a(0x2ac)]);},fi)),(this['unitID']=_0x50989a,this['_session']=_0x1d5ad5,this[_0x56f89d(0x30c)]=_0x3a8ce4,this[_0x56f89d(0x32e)]=_0x186e32,this[_0x56f89d(0x31b)]=_0x9e37e9,this[_0x56f89d(0x1b0)]=_0x43cf82,this[_0x56f89d(0x17f)]=_0x4897be,this['_univerInstanceService']=_0x4c0b7f,this[_0x56f89d(0x292)]=_0x225038);}get[_0x64618b(0x332)](){const _0x430f5b=_0x64618b;return this['_cursorInfo$'][_0x430f5b(0x2c6)]();}get['roomMembers'](){const _0x199a13=_0x64618b;return this['_roomMembers$'][_0x199a13(0x2c6)]();}[_0x64618b(0x23e)](){const _0x1df53b=_0x64618b;super[_0x1df53b(0x23e)](),this[_0x1df53b(0x224)]['next'](new Map()),this['_cursorInfo$'][_0x1df53b(0x1af)](),this[_0x1df53b(0x29c)][_0x1df53b(0x343)]([]),this[_0x1df53b(0x29c)][_0x1df53b(0x1af)]();}[_0x64618b(0x1ee)](){const _0x147390=_0x64618b;this['_init']||(this['_init']=!0x0,this[_0x147390(0x14f)][_0x147390(0x2c8)][_0x147390(0x25e)](_0xf9f0d5(this['dispose$']))[_0x147390(0x1f0)](_0x448d09=>{const _0x20693c=_0x147390;_0x448d09===_0x3cc143[_0x20693c(0x236)]?this[_0x20693c(0x201)]():this[_0x20693c(0x15e)]();}),this['_session']['event$'][_0x147390(0x25e)](_0xf9f0d5(this[_0x147390(0x1a6)]))[_0x147390(0x1f0)](_0x55f342=>{const _0x50aa05=_0x147390,_0x506500=_0x55f342[_0x50aa05(0x26e)];_0x506500===_0x110449[_0x50aa05(0x142)]&&this[_0x50aa05(0x29d)](_0x55f342),_0x506500===_0x110449['USERS_LEAVE']&&this['_onCursorDelete'](_0x55f342);}),this[_0x147390(0x241)](this[_0x147390(0x292)][_0x147390(0x2af)](_0x27a411=>{const _0x144e8a=_0x147390,_0x182be5=_0x27a411[_0x144e8a(0x2a5)];_0x182be5!=null&&this['_online']&&_0x27a411['id']===_0x12c489['id']&&_0x182be5[_0x144e8a(0x248)]===this[_0x144e8a(0x2ac)]&&_0x182be5[_0x144e8a(0x22e)]===!0x1&&_0x182be5[_0x144e8a(0x1c1)][_0x144e8a(0x148)]>0x0&&this[_0x144e8a(0x180)](_0x182be5[_0x144e8a(0x1c1)]);})),this[_0x147390(0x1b0)][_0x147390(0x145)][_0x147390(0x25e)](_0xf9f0d5(this[_0x147390(0x1a6)]))[_0x147390(0x1f0)](_0x5144d3=>{const _0xe65e0b=_0x147390;if((_0x5144d3==null?void 0x0:_0x5144d3[_0xe65e0b(0x2ac)])!==this[_0xe65e0b(0x2ac)])return;const _0x3217a9={'eventID':_0x110449[_0xe65e0b(0x142)],'data':_0x5144d3};this[_0xe65e0b(0x29d)](_0x3217a9);}),this[_0x147390(0x241)](this[_0x147390(0x292)][_0x147390(0x2af)](_0x1f5102=>{const _0x4ceaf1=_0x147390;if(_0x1f5102['params']==null)return;const _0x467b5a=_0x1f5102[_0x4ceaf1(0x2a5)];if(_0x1f5102['id']!==_0x1e80f7['id']||_0x467b5a[_0x4ceaf1(0x248)]!==this['unitID'])return;const _0x3d83d4={'id':_0x4ceaf1(0x173),'params':_0x467b5a},_0x4826af=this[_0x4ceaf1(0x332)];for(const [_0x3f5139,_0x33322d]of _0x4826af){const _0x521ef5={'id':_0x4ceaf1(0x173),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x33322d[_0x4ceaf1(0x1c1)]}},_0x3b8e7a=this[_0x4ceaf1(0x17f)][_0x4ceaf1(0x2ec)](_0x3d83d4,_0x521ef5,!0x1);if(_0x2438e1(_0x3b8e7a))throw _0x3b8e7a[_0x4ceaf1(0x2de)];_0x4826af[_0x4ceaf1(0x21b)](_0x3f5139,{..._0x33322d,'ranges':_0x3b8e7a['m2Prime'][_0x4ceaf1(0x2a5)][_0x4ceaf1(0x296)]});}queueMicrotask(()=>{const _0x5080db=_0x4ceaf1;this[_0x5080db(0x224)]['next'](_0x4826af);});})));}[_0x64618b(0x29d)](_0x5206d9){const _0x5b7590=_0x64618b;var _0x367057,_0x12bbc3;const {memberID:_0x4d62ae,selection:_0x2a8699}=_0x5206d9[_0x5b7590(0x305)],_0x3962e4=_i(_0x2a8699),_0x56143a=(_0x12bbc3=(_0x367057=this[_0x5b7590(0x31b)][_0x5b7590(0x178)](this[_0x5b7590(0x2ac)],_0x4d62ae))==null?void 0x0:_0x367057[_0x5b7590(0x32f)])!=null?_0x12bbc3:_0x5b7590(0x13f),_0x5d7d3f={'color':this[_0x5b7590(0x32e)][_0x5b7590(0x20f)](_0x4d62ae),'name':_0x56143a,'ranges':_0x3962e4},_0x4d9772=this[_0x5b7590(0x332)];_0x4d9772['set'](_0x4d62ae,_0x5d7d3f),this['_cursorInfo$'][_0x5b7590(0x343)](_0x4d9772);}['_onCursorDelete'](_0xe455d3){const _0x277482=_0x64618b,{memberID:_0x40559b}=_0xe455d3[_0x277482(0x305)],_0x5e8c0b=this[_0x277482(0x332)];_0x5e8c0b[_0x277482(0x141)](_0x40559b),this['_cursorInfo$'][_0x277482(0x343)](_0x5e8c0b);}['_toggleOnline'](){const _0x7077d9=_0x64618b;var _0x4c9fb5;if(this[_0x7077d9(0x2b2)]=!0x0,((_0x4c9fb5=this[_0x7077d9(0x262)][_0x7077d9(0x30e)]())==null?void 0x0:_0x4c9fb5[_0x7077d9(0x333)]())!==this[_0x7077d9(0x2ac)])return;const _0x5af1df=this[_0x7077d9(0x30c)][_0x7077d9(0x23c)](_0x34051a)[_0x7077d9(0x251)]();Array[_0x7077d9(0x1fc)](_0x5af1df)&&_0x5af1df[_0x7077d9(0x148)]>0x0&&this[_0x7077d9(0x180)](_0x5af1df);}[_0x64618b(0x15e)](){const _0x4004cb=_0x64618b;this[_0x4004cb(0x2b2)]=!0x1;}};Ue=ui([P(0x2,_0x5033cb(_0x5d0444)),P(0x3,_0x5033cb(ke)),P(0x4,_0x5033cb(_0x595aa4)),P(0x5,_0x5033cb(He)),P(0x6,_0x492187),P(0x7,_0x56a9dd),P(0x8,_0x441fb8)],Ue);var Si=Object[_0x64618b(0x1bc)],mi=(_0x50111c,_0x554c97,_0x5a4a85,_0x487944)=>{const _0x32bd83=_0x64618b;for(var _0x67288c=_0x487944>0x1?void 0x0:_0x487944?Si(_0x554c97,_0x5a4a85):_0x554c97,_0x1814a5=_0x50111c[_0x32bd83(0x148)]-0x1,_0x39d6a4;_0x1814a5>=0x0;_0x1814a5--)(_0x39d6a4=_0x50111c[_0x1814a5])&&(_0x67288c=_0x39d6a4(_0x67288c)||_0x67288c);return _0x67288c;},x=(_0x474bfa,_0x1b2b95)=>(_0x33dd2f,_0x193904)=>_0x1b2b95(_0x33dd2f,_0x193904,_0x474bfa);const Ii=0x12c,gi=0x64,vi=()=>{let _0x375472=[],_0x46cce3=!0x1;return _0x222121=>{const _0x259d05=_0x5700;_0x375472[_0x259d05(0x25a)](_0x222121),_0x46cce3||(_0x46cce3=!0x0,setTimeout(()=>{const _0x522767=_0x259d05;_0x375472[_0x522767(0x25f)](_0x6bbd3e=>_0x6bbd3e()),_0x375472=[],_0x46cce3=!0x1;}));};};let Me=class extends _0x4ddff1{constructor(_0x2b9362,_0xae3ec1,_0x8d45a3,_0x439a0b,_0x2d2385,_0x3a2ac2,_0x35e983,_0x53a0f2){const _0x10c54b=_0x64618b;super(),_(this,_0x10c54b(0x2b2),!0x1),_(this,_0x10c54b(0x2ab),!0x1),_(this,'_cursorInfo$',new _0x3d4fde(new Map())),_(this,_0x10c54b(0x324),this['_cursorInfo$'][_0x10c54b(0x1c9)]()),_(this,'_roomMembers$',new _0x3d4fde([])),_(this,_0x10c54b(0x2e3),this[_0x10c54b(0x29c)][_0x10c54b(0x25e)](_0x6156d5(Ii))),_(this,_0x10c54b(0x180),_0x528585((_0x11958a,_0x50afdf)=>{const _0x269eb1=_0x10c54b,_0x3614df={'eventID':_0x110449[_0x269eb1(0x142)],'data':{'unitID':this[_0x269eb1(0x2ac)],'memberID':this[_0x269eb1(0x14f)][_0x269eb1(0x2a0)](),'selection':_0x4e4fff(_0x11958a,_0x50afdf[_0x269eb1(0x203)])}};this[_0x269eb1(0x14f)][_0x269eb1(0x316)](_0x3614df,this[_0x269eb1(0x2ac)]);},gi)),(this[_0x10c54b(0x2ac)]=_0x2b9362,this[_0x10c54b(0x14f)]=_0xae3ec1,this[_0x10c54b(0x30c)]=_0x8d45a3,this[_0x10c54b(0x32e)]=_0x439a0b,this[_0x10c54b(0x31b)]=_0x2d2385,this[_0x10c54b(0x262)]=_0x3a2ac2,this[_0x10c54b(0x292)]=_0x35e983,this['_refRangeService']=_0x53a0f2);}get[_0x64618b(0x332)](){const _0x30301c=_0x64618b;return this[_0x30301c(0x224)]['getValue']();}get['roomMembers'](){const _0xb10211=_0x64618b;return this[_0xb10211(0x29c)][_0xb10211(0x2c6)]();}[_0x64618b(0x23e)](){const _0x202fde=_0x64618b;super[_0x202fde(0x23e)](),this[_0x202fde(0x224)][_0x202fde(0x343)](new Map()),this[_0x202fde(0x224)][_0x202fde(0x1af)](),this[_0x202fde(0x29c)][_0x202fde(0x343)]([]),this['_roomMembers$'][_0x202fde(0x1af)]();}[_0x64618b(0x1ee)](){const _0x1a6280=_0x64618b;this[_0x1a6280(0x2ab)]||(this[_0x1a6280(0x2ab)]=!0x0,this[_0x1a6280(0x14f)][_0x1a6280(0x2c8)][_0x1a6280(0x25e)](_0xf9f0d5(this[_0x1a6280(0x1a6)]))[_0x1a6280(0x1f0)](_0x18d3f2=>{const _0x30478d=_0x1a6280;_0x18d3f2===_0x3cc143[_0x30478d(0x236)]?this[_0x30478d(0x201)]():this[_0x30478d(0x15e)]();}),this['_session'][_0x1a6280(0x1ce)][_0x1a6280(0x25e)](_0xf9f0d5(this[_0x1a6280(0x1a6)]))[_0x1a6280(0x1f0)](_0x1be44e=>{const _0x3bddd6=_0x1a6280,_0x19412c=_0x1be44e['eventID'];_0x19412c===_0x110449['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1be44e),_0x19412c===_0x110449[_0x3bddd6(0x20a)]&&this[_0x3bddd6(0x31f)](_0x1be44e);}),this[_0x1a6280(0x237)](),this[_0x1a6280(0x241)](this[_0x1a6280(0x292)][_0x1a6280(0x2af)](_0x2415de=>{const _0x16681b=_0x1a6280;if(this[_0x16681b(0x2b2)]&&_0x2415de['id']===_0x3de7a1['id']&&_0x2415de[_0x16681b(0x2a5)][_0x16681b(0x248)]===this[_0x16681b(0x2ac)]){const _0x25911c=_0x2415de[_0x16681b(0x2a5)];this[_0x16681b(0x180)](_0x25911c[_0x16681b(0x14a)],_0x25911c[_0x16681b(0x279)][0x0]);}})));}[_0x64618b(0x29d)](_0x18e8b4){const _0x58c82b=_0x64618b;var _0x33966c,_0x4eb618;const {memberID:_0x39bed6,selection:_0x480435}=_0x18e8b4[_0x58c82b(0x305)],{sheetName:_0x11eadf,range:_0x4bdfcb}=_0x1eabee(_0x480435),_0x41c356={'name':(_0x4eb618=(_0x33966c=this[_0x58c82b(0x31b)][_0x58c82b(0x178)](this[_0x58c82b(0x2ac)],_0x39bed6))==null?void 0x0:_0x33966c[_0x58c82b(0x32f)])!=null?_0x4eb618:_0x58c82b(0x13f),'range':this['_getMergeRange'](_0x11eadf,_0x4bdfcb),'sheetID':_0x11eadf,'color':this[_0x58c82b(0x32e)][_0x58c82b(0x20f)](_0x39bed6),'selection':_0x480435},_0x5e1fc5=this[_0x58c82b(0x332)];_0x5e1fc5[_0x58c82b(0x21b)](_0x39bed6,_0x41c356),this[_0x58c82b(0x224)][_0x58c82b(0x343)](_0x5e1fc5);}[_0x64618b(0x31f)](_0x14e45d){const _0x3e4be3=_0x64618b,{memberID:_0x696e32}=_0x14e45d[_0x3e4be3(0x305)],_0x263029=this[_0x3e4be3(0x332)];_0x263029[_0x3e4be3(0x141)](_0x696e32),this['_cursorInfo$'][_0x3e4be3(0x343)](_0x263029);}['_getMergeRange'](_0x1ad5f0,_0x5158e8){const _0x1d4e2d=_0x64618b;var _0x104c4d,_0x11ffdb;const _0x5099ba=(_0x11ffdb=(_0x104c4d=this[_0x1d4e2d(0x262)][_0x1d4e2d(0x169)](this[_0x1d4e2d(0x2ac)]))==null?void 0x0:_0x104c4d[_0x1d4e2d(0x2eb)](_0x1ad5f0))==null?void 0x0:_0x11ffdb[_0x1d4e2d(0x1bb)]();return(_0x5099ba==null?void 0x0:_0x5099ba[_0x1d4e2d(0x2e6)](_0x4a572f=>_0x532fdd[_0x1d4e2d(0x1b9)](_0x4a572f,_0x5158e8)))||_0x5158e8;}[_0x64618b(0x237)](){const _0x2a9a6e=_0x64618b,_0x5bf700=new _0x5c707e(),_0x14e7fb=vi(),_0x2ac4b5=()=>{const _0x138e19=_0x5700;_0x5bf700[_0x138e19(0x23e)]();const _0x307e2f=(_0x199849,_0xc97030,_0x373d3d,_0x24e0e)=>{const _0x20f936=_0x138e19;let _0xa2d4c4=[];switch(_0x199849['id']){case _0x28222f['DeleteRangeMoveLeftCommandId']:{_0xa2d4c4=_0x5f1b70(_0x199849,_0x24e0e);break;}case _0x28222f['DeleteRangeMoveUpCommandId']:{_0xa2d4c4=_0x567827(_0x199849,_0x24e0e);break;}case _0x28222f[_0x20f936(0x273)]:{_0xa2d4c4=_0x24253b(_0x199849,_0x24e0e);break;}case _0x28222f['InsertRangeMoveDownCommandId']:{_0xa2d4c4=_0x12a9d4(_0x199849,_0x24e0e);break;}case _0x28222f[_0x20f936(0x1d8)]:{_0xa2d4c4=_0x59fa95(_0x199849,_0x24e0e);break;}case _0x28222f[_0x20f936(0x32b)]:{_0xa2d4c4=_0x560e2d(_0x199849,_0x24e0e);break;}case _0x28222f[_0x20f936(0x239)]:{_0xa2d4c4=_0x2495b1(_0x199849,_0x24e0e);break;}case _0x28222f[_0x20f936(0x1f5)]:{_0xa2d4c4=_0x218b2e(_0x199849,_0x24e0e);break;}case _0x28222f[_0x20f936(0x30b)]:{_0xa2d4c4=_0x38756b(_0x199849,_0x24e0e);break;}}const _0x1dc4ca=_0x460ac6(_0xa2d4c4,_0x24e0e),_0x4c037a=this[_0x20f936(0x332)][_0x20f936(0x23c)](_0xc97030);if(_0x4c037a&&_0x1dc4ca){const _0x1de6ec={..._0x4c037a,'range':_0x1dc4ca};this[_0x20f936(0x332)][_0x20f936(0x21b)](_0xc97030,_0x1de6ec),_0x14e7fb(()=>{const _0x5ecae1=_0x20f936,_0x4ad7bf=this['_refRangeService'][_0x5ecae1(0x1ec)](_0x1dc4ca,_0x10d71b=>(_0x4ad7bf[_0x5ecae1(0x23e)](),_0x307e2f(_0x10d71b,_0xc97030,_0x373d3d,_0x1dc4ca)));_0x5bf700[_0x5ecae1(0x29e)](_0x4ad7bf);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x138e19(0x25f)]((_0x5b849d,_0x18b877)=>{const _0x1b3248=_0x138e19,{range:_0x4408f9,sheetID:_0x3fefd7}=_0x5b849d,_0x28a978=this[_0x1b3248(0x2f7)][_0x1b3248(0x1ec)](_0x4408f9,_0xd1a069=>(_0x28a978[_0x1b3248(0x23e)](),_0x307e2f(_0xd1a069,_0x18b877,_0x3fefd7,_0x4408f9)));_0x5bf700[_0x1b3248(0x29e)](_0x28a978);});};this[_0x2a9a6e(0x241)](_0x467123(this[_0x2a9a6e(0x224)][_0x2a9a6e(0x1f0)](()=>{_0x2ac4b5();})));}[_0x64618b(0x201)](){const _0x190799=_0x64618b;var _0x44b802,_0xc05b65;if(this[_0x190799(0x2b2)]=!0x0,((_0x44b802=this['_univerInstanceService'][_0x190799(0x30e)]())==null?void 0x0:_0x44b802['getUnitId']())!==this[_0x190799(0x2ac)])return;const _0x17fccb=(_0xc05b65=this[_0x190799(0x30c)]['get'](_0x6612a2)[_0x190799(0x249)]())==null?void 0x0:_0xc05b65[0x0],_0x1aef57=this[_0x190799(0x262)]['getCurrentUnitForType'](_0x55218d['UNIVER_SHEET'])['getActiveSheet']();_0x17fccb&&_0x1aef57&&this[_0x190799(0x180)](_0x1aef57[_0x190799(0x149)](),_0x17fccb);}[_0x64618b(0x15e)](){const _0xfc6ea7=_0x64618b;this[_0xfc6ea7(0x2b2)]=!0x1;}};Me=mi([x(0x2,_0x5033cb(_0x5d0444)),x(0x3,_0x5033cb(ke)),x(0x4,_0x5033cb(_0x595aa4)),x(0x5,_0x56a9dd),x(0x6,_0x441fb8),x(0x7,_0x5033cb(_0x4c0591))],Me);var pi=Object[_0x64618b(0x1bc)],Ci=(_0x52e449,_0x35ca56,_0x7a47c,_0x2b4c51)=>{const _0x1cdf2a=_0x64618b;for(var _0x11d6ab=_0x2b4c51>0x1?void 0x0:_0x2b4c51?pi(_0x35ca56,_0x7a47c):_0x35ca56,_0x528bae=_0x52e449[_0x1cdf2a(0x148)]-0x1,_0x1ed6ca;_0x528bae>=0x0;_0x528bae--)(_0x1ed6ca=_0x52e449[_0x528bae])&&(_0x11d6ab=_0x1ed6ca(_0x11d6ab)||_0x11d6ab);return _0x11d6ab;},Se=(_0x2b2fbd,_0x24453c)=>(_0x509c46,_0x113e39)=>_0x24453c(_0x509c46,_0x113e39,_0x2b2fbd);let H=class extends _0x4ddff1{constructor(_0x3bcdb2,_0x5ba7e8,_0x519c09){const _0x246fd9=_0x64618b;super(),_(this,_0x246fd9(0x298),new Map()),_(this,_0x246fd9(0x16d),new _0x185d1b()),(this[_0x246fd9(0x262)]=_0x3bcdb2,this[_0x246fd9(0x30c)]=_0x5ba7e8,this[_0x246fd9(0x159)]=_0x519c09,this[_0x246fd9(0x2ab)]());}[_0x64618b(0x23e)](){const _0x4a6b4b=_0x64618b;super['dispose'](),this[_0x4a6b4b(0x16d)]['complete'](),this[_0x4a6b4b(0x298)][_0x4a6b4b(0x25f)](_0xf6df73=>_0xf6df73[_0x4a6b4b(0x23e)]());}[_0x64618b(0x2ee)](_0x8e80d5){const _0x587bfc=_0x64618b;return this[_0x587bfc(0x298)]['has'](_0x8e80d5)?this[_0x587bfc(0x298)][_0x587bfc(0x23c)](_0x8e80d5)[_0x587bfc(0x324)]:this[_0x587bfc(0x16d)][_0x587bfc(0x25e)](_0x14c0fe(_0x3fe797=>_0x3fe797[_0x587bfc(0x2ac)]===_0x8e80d5),_0x31eb21(_0x759b66=>_0x759b66[_0x587bfc(0x324)]));}[_0x64618b(0x2ab)](){const _0x1efa07=_0x64618b;this[_0x1efa07(0x262)][_0x1efa07(0x2fd)](_0x55218d[_0x1efa07(0x258)])[_0x1efa07(0x25e)](_0xf9f0d5(this['dispose$']))[_0x1efa07(0x1f0)](async _0x1eb064=>{const _0x15cfe7=_0x1efa07,_0x53728d=_0x1eb064[_0x15cfe7(0x333)](),_0xa51fa1=await this[_0x15cfe7(0x2b3)](_0x53728d);this[_0x15cfe7(0x16d)]['next'](_0xa51fa1),this[_0x15cfe7(0x298)][_0x15cfe7(0x21b)](_0x53728d,_0xa51fa1);}),this[_0x1efa07(0x262)][_0x1efa07(0x2fd)](_0x55218d[_0x1efa07(0x1d0)])['pipe'](_0xf9f0d5(this[_0x1efa07(0x1a6)]))['pipe'](_0x14c0fe(_0x1aa0d3=>!_0x1aa0d3['getUnitId']()['startsWith']('__')))[_0x1efa07(0x1f0)](async _0x2ad795=>{const _0xa829a4=_0x1efa07,_0x2c0b5c=_0x2ad795[_0xa829a4(0x333)](),_0x1b5bce=await this[_0xa829a4(0x2c9)](_0x2c0b5c);this[_0xa829a4(0x16d)][_0xa829a4(0x343)](_0x1b5bce),this[_0xa829a4(0x298)][_0xa829a4(0x21b)](_0x2c0b5c,_0x1b5bce);}),_0x264842(this[_0x1efa07(0x262)][_0x1efa07(0x21a)](_0x55218d[_0x1efa07(0x1d0)]),this[_0x1efa07(0x262)][_0x1efa07(0x21a)](_0x55218d[_0x1efa07(0x258)]))['pipe'](_0xf9f0d5(this[_0x1efa07(0x1a6)]))[_0x1efa07(0x1f0)](_0xff83f3=>{const _0x5504b9=_0x1efa07,_0x3d1597=_0xff83f3[_0x5504b9(0x333)](),_0x312fd5=this[_0x5504b9(0x298)][_0x5504b9(0x23c)](_0x3d1597);_0x312fd5&&(_0x312fd5[_0x5504b9(0x23e)](),this[_0x5504b9(0x298)][_0x5504b9(0x141)](_0x3d1597));});}async['_startSheetCollabCursor'](_0x46343a){const _0x39f870=_0x64618b,_0x32ffd7=await this[_0x39f870(0x159)][_0x39f870(0x179)](_0x46343a),_0x2f148f=this[_0x39f870(0x30c)]['createInstance'](Me,_0x46343a,_0x32ffd7);return _0x2f148f['init'](),_0x2f148f;}async['_startDocCollabCursor'](_0x566d30){const _0x3c6e42=_0x64618b,_0x169301=await this['_collabSessionService'][_0x3c6e42(0x179)](_0x566d30),_0x2be9ce=this[_0x3c6e42(0x30c)][_0x3c6e42(0x21c)](Ue,_0x566d30,_0x169301);return _0x2be9ce[_0x3c6e42(0x1ee)](),_0x2be9ce;}};H=Ci([Se(0x0,_0x56a9dd),Se(0x1,_0x5033cb(_0x5d0444)),Se(0x2,_0x5033cb(_0x2959b5))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x356145,_0xc0d7e3){const _0x4a4344=_0x64618b;let {radius:_0x360afa,width:_0x3c45b8,height:_0x36f5aa}=_0xc0d7e3;_0x360afa=_0x360afa!=null?_0x360afa:0x0,_0x3c45b8=_0x3c45b8!=null?_0x3c45b8:0x1e,_0x36f5aa=_0x36f5aa!=null?_0x36f5aa:0x1e;let _0x23c0cb=0x0,_0x4df758=0x0,_0x16c34d=0x0;_0x23c0cb=_0x4df758=_0x16c34d=Math[_0x4a4344(0x328)](_0x360afa,_0x3c45b8/0x2,_0x36f5aa/0x2),_0x356145[_0x4a4344(0x2ba)](),_0x356145[_0x4a4344(0x268)](_0x23c0cb,0x0),_0x356145[_0x4a4344(0x230)](_0x3c45b8-_0x4df758,0x0),_0x356145[_0x4a4344(0x304)](_0x3c45b8-_0x4df758,_0x4df758,_0x4df758,Math['PI']*0x3/0x2,0x0,!0x1),_0x356145['lineTo'](_0x3c45b8,_0x36f5aa-_0x16c34d),_0x356145[_0x4a4344(0x304)](_0x3c45b8-_0x16c34d,_0x36f5aa-_0x16c34d,_0x16c34d,0x0,Math['PI']/0x2,!0x1),_0x356145[_0x4a4344(0x230)](0x0,_0x36f5aa),_0x356145[_0x4a4344(0x230)](0x0,_0x23c0cb),_0x356145['arc'](_0x23c0cb,_0x23c0cb,_0x23c0cb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x356145[_0x4a4344(0x2be)](),_0xc0d7e3[_0x4a4344(0x1cb)]&&(_0x356145[_0x4a4344(0x24a)](),_0x356145[_0x4a4344(0x240)]=_0xc0d7e3[_0x4a4344(0x1cb)],_0xc0d7e3['fillRule']===_0x4a4344(0x23b)?_0x356145[_0x4a4344(0x1cb)](_0x4a4344(0x23b)):_0x356145[_0x4a4344(0x1cb)](),_0x356145[_0x4a4344(0x198)]());}class he extends _0x2f321f{constructor(_0x373d23,_0x47bbd0){const _0x36e769=_0x64618b;super(_0x373d23,_0x47bbd0),_(this,'color'),_(this,'text'),(this[_0x36e769(0x27d)]=_0x47bbd0==null?void 0x0:_0x47bbd0[_0x36e769(0x27d)],this[_0x36e769(0x2c4)]=_0x47bbd0==null?void 0x0:_0x47bbd0[_0x36e769(0x2c4)]);}static[_0x64618b(0x15b)](_0x55dad9,_0x2354c6){const _0x2c9493=_0x64618b,{text:_0x55b0c6,color:_0x4fdb99}=_0x2354c6;_0x55dad9[_0x2c9493(0x24a)](),_0x55dad9[_0x2c9493(0x1e6)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2642f6=_0x55dad9[_0x2c9493(0x1d2)](_0x55b0c6)[_0x2c9493(0x182)],_0x23d5fe=Math['min'](_0x2642f6+0x2*me,Qe);Oi(_0x55dad9,{'height':ee,'radius':0x4,'width':_0x23d5fe,'fill':_0x4fdb99}),_0x55dad9[_0x2c9493(0x240)]=_0x2c9493(0x2f2);const _0x10a315=me,_0x240be0=ee-Ei,_0x3758e1=Qe-0x2*me;if(_0x2642f6>_0x3758e1){let _0x317c6f='',_0xbdd93f=0x0;for(const _0x3d7bd4 of _0x55b0c6){const _0x518a71=_0x55dad9['measureText'](_0x3d7bd4)[_0x2c9493(0x182)];if(_0xbdd93f+_0x518a71<=_0x3758e1-_0x55dad9[_0x2c9493(0x1d2)](_0x2c9493(0x25b))['width'])_0x317c6f+=_0x3d7bd4,_0xbdd93f+=_0x518a71;else{_0x317c6f+=_0x2c9493(0x25b);break;}}_0x55dad9[_0x2c9493(0x256)](_0x317c6f,_0x10a315,_0x240be0);}else _0x55dad9[_0x2c9493(0x256)](_0x55b0c6,_0x10a315,_0x240be0);_0x55dad9[_0x2c9493(0x198)]();}[_0x64618b(0x307)](_0x3ca234){const _0x34038a=_0x64618b;he[_0x34038a(0x15b)](_0x3ca234,this);}}const Ie='collab-text-anchor-',bi='collab-text-range-',Ti=_0x64618b(0x1a4),X=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0x64618b(0x313);class qe{constructor(_0x470133,_0x293f06,_0x5c9687,_0x24c14d){const _0x4b01d6=_0x64618b;_(this,'_shapes',[]),_(this,_0x4b01d6(0x190),null),_(this,_0x4b01d6(0x211),null),_(this,_0x4b01d6(0x2a4),null),_(this,_0x4b01d6(0x1d5),null),_(this,_0x4b01d6(0x2d6),null),(this[_0x4b01d6(0x1e7)]=_0x470133,this[_0x4b01d6(0x144)]=_0x293f06,this[_0x4b01d6(0x30a)]=_0x5c9687,this[_0x4b01d6(0x215)]=_0x24c14d,this[_0x4b01d6(0x1b4)]());}set[_0x64618b(0x1e3)](_0x46f520){const _0x2c1870=_0x64618b;_0x46f520?(this[_0x2c1870(0x2a4)]&&this[_0x2c1870(0x2a4)][_0x2c1870(0x151)](),this[_0x2c1870(0x211)]&&this['_textBubble'][_0x2c1870(0x33f)]()):(this[_0x2c1870(0x2a4)]&&this['_anchorDot']['show'](),this['_textBubble']&&this[_0x2c1870(0x211)]['hide']());}['dispose'](){const _0x32cd9b=_0x64618b;for(const _0x4f6aa3 of this[_0x32cd9b(0x2c3)])_0x4f6aa3[_0x32cd9b(0x23e)]();this[_0x32cd9b(0x211)]&&this[_0x32cd9b(0x211)]['dispose'](),this[_0x32cd9b(0x2a4)]&&this[_0x32cd9b(0x2a4)][_0x32cd9b(0x23e)](),this[_0x32cd9b(0x190)]&&this['_anchor'][_0x32cd9b(0x23e)](),this[_0x32cd9b(0x2d6)]&&this[_0x32cd9b(0x2d6)]();}['_render'](){const _0x4709e4=_0x64618b;var _0x1b9809;const {_docSkeleton:_0xe5c5a8,_document:_0x4ab809}=this,{color:_0x585500,name:_0x3ba98f,ranges:_0x516dae}=this[_0x4709e4(0x1e7)],_0x296d4d=_0x4ab809[_0x4709e4(0x25d)](),{docsLeft:_0x12503b,docsTop:_0x16408a}=_0x296d4d,_0x3be63c=new _0xb1b446(_0x296d4d,_0xe5c5a8);for(const {startOffset:_0x35c810,endOffset:_0x1bcc98,rangeType:_0xc9376e,segmentId:_0x55ebc5,segmentPage:_0x3a584e,collapsed:_0x504a3f,isActive:_0xa59bf5}of _0x516dae){const _0x26033f=_0xe5c5a8[_0x4709e4(0x1eb)](_0x35c810,!0x0,_0x55ebc5,_0x3a584e);let _0x14450b=_0xe5c5a8['findNodePositionByCharIndex'](_0x1bcc98,!0x0,_0x55ebc5,_0x3a584e);if(_0x14450b==null&&(_0x14450b=_0xe5c5a8[_0x4709e4(0x1eb)](_0x1bcc98-0x1,!0x1,_0x55ebc5,_0x3a584e)),_0xa59bf5){const {contentBoxPointGroup:_0x3c72dd}=_0x3be63c[_0x4709e4(0x156)](_0x14450b,_0x14450b);if(_0x3c72dd[_0x4709e4(0x148)]===0x0)continue;this[_0x4709e4(0x322)](_0x585500,_0x3c72dd,_0x12503b,_0x16408a,_0x3ba98f),this[_0x4709e4(0x2d6)]=this[_0x4709e4(0x245)]();}if(_0x26033f&&_0x14450b){if(_0xc9376e===_0xe48f47['RECT']){const _0x165fb6=new _0x36f802(_0x296d4d,_0xe5c5a8),{pointGroup:_0x141abc}=(_0x1b9809=_0x165fb6[_0x4709e4(0x156)](_0x26033f,_0x14450b))!=null?_0x1b9809:{};if(_0x141abc==null||_0x141abc[_0x4709e4(0x148)]===0x0)continue;this[_0x4709e4(0x1c6)](_0x585500,_0x141abc,_0x12503b,_0x16408a);}else{if(!_0x504a3f){const {borderBoxPointGroup:_0x58e8fb}=_0x3be63c[_0x4709e4(0x156)](_0x26033f,_0x14450b);if(_0x58e8fb['length']===0x0)continue;this[_0x4709e4(0x223)](_0x585500,_0x58e8fb,_0x12503b,_0x16408a);}}}}}['_drawAnchor'](_0x547984,_0x2b7836,_0x390f8e,_0x14294c,_0x1b3a51){const _0x310925=_0x64618b,_0x474aef=this[_0x310925(0x32c)](_0x2b7836),{left:_0x5cf7a9,top:_0x29357c,height:_0x1d4177}=_0x474aef,_0x5b72cb=this[_0x310925(0x31a)](),_0xd324fd=Di/_0x5b72cb,_0x3edb96=new _0x44fdaf(Ie+_0x521fe2[_0x310925(0x2e0)](X),{'left':_0x5cf7a9+_0x390f8e-_0xd324fd,'top':_0x29357c+_0x14294c,'height':_0x1d4177,'width':Ri,'fill':_0x547984||_0x2d3e0b(_0x13d148[_0x310925(0x306)],0x0),'strokeWidth':_0xd324fd,'stroke':Ni,'evented':!0x0});this[_0x310925(0x190)]=_0x3edb96,this[_0x310925(0x144)][_0x310925(0x1b3)](_0x3edb96,_0x54b383);const _0x332a97=new _0x44fdaf(Ie+_0x521fe2[_0x310925(0x2e0)](X),{'left':_0x5cf7a9+_0x390f8e-_0xd324fd,'top':_0x29357c+_0x14294c-ge/0x2,'height':ge,'width':ge,'fill':_0x547984||_0x2d3e0b(_0x13d148[_0x310925(0x306)],0x0),'strokeWidth':0x0,'stroke':_0x547984||_0x2d3e0b(_0x13d148['black'],0x0),'evented':!0x1});this[_0x310925(0x2a4)]=_0x332a97,this['_scene'][_0x310925(0x1b3)](_0x332a97,_0x54b383);const _0x44c56f=new he(Ie+_0x521fe2['generateRandomId'](X),{'left':_0x5cf7a9+_0x390f8e-_0xd324fd,'top':_0x29357c+_0x14294c-ee,'text':_0x1b3a51,'color':_0x547984});this[_0x310925(0x211)]=_0x44c56f,this['_scene'][_0x310925(0x1b3)](_0x44c56f,_0x54b383),this['_hover']=!0x1;}[_0x64618b(0x245)](){const _0x3c409b=_0x64618b,_0x34dd23=this['_anchor']['onPointerEnter$'][_0x3c409b(0x2a3)](()=>{const _0xdee308=_0x3c409b;this[_0xdee308(0x1e3)]=!0x0;}),_0x1fc518=this['_anchor']['onPointerLeave$'][_0x3c409b(0x2a3)](()=>{const _0x5066e6=_0x3c409b;this[_0x5066e6(0x1d5)]&&clearTimeout(this[_0x5066e6(0x1d5)]),this[_0x5066e6(0x1d5)]=setTimeout(()=>{const _0x259ad3=_0x5066e6;this[_0x259ad3(0x1e3)]=!0x1;},0x7d0);});return()=>{const _0xfe0596=_0x3c409b;_0x34dd23[_0xfe0596(0x228)](),_0x1fc518['unsubscribe']();};}[_0x64618b(0x223)](_0xf4e8f1,_0x587295,_0x933e09,_0x1d2648){const _0x5b906c=_0x64618b,_0x55f4b9=new _0x47caa8(_0xf4e8f1)[_0x5b906c(0x1d3)](0.2)[_0x5b906c(0x186)](),_0x255cd2=new _0x40cb0f(bi+_0x521fe2[_0x5b906c(0x2e0)](X),{'pointsGroup':_0x587295,'fill':_0x55f4b9||_0x2d3e0b(_0x13d148[_0x5b906c(0x306)],0.2),'left':_0x933e09,'top':_0x1d2648,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b906c(0x2c3)][_0x5b906c(0x25a)](_0x255cd2),this[_0x5b906c(0x144)][_0x5b906c(0x1b3)](_0x255cd2,_0x54b383);}[_0x64618b(0x1c6)](_0x5e3444,_0x175c2a,_0x47bd61,_0x33cbb9){const _0xd43050=_0x64618b,_0x4146c6=new _0x47caa8(_0x5e3444)['setAlpha'](0.2)['toRgbString'](),_0x2ebf10=new _0x40cb0f(Ti+_0x521fe2[_0xd43050(0x2e0)](X),{'pointsGroup':_0x175c2a,'fill':_0x4146c6||_0x2d3e0b(_0x13d148[_0xd43050(0x306)],0.2),'left':_0x47bd61,'top':_0x33cbb9,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x2ebf10),this['_scene'][_0xd43050(0x1b3)](_0x2ebf10,_0x54b383);}[_0x64618b(0x32c)](_0x4317d2){const _0x4196f3=_0x4317d2[0x0],_0x9ffc91=_0x4196f3[0x0],_0x695a1=_0x4196f3[0x2],{x:_0x30f421,y:_0xf80c22}=_0x9ffc91,{x:_0x57bef9,y:_0x192199}=_0x695a1;return{'left':_0x30f421,'top':_0xf80c22,'width':_0x57bef9-_0x30f421,'height':_0x192199-_0xf80c22};}[_0x64618b(0x31a)](){const _0x3cc4e7=_0x64618b,{scaleX:_0x81a975,scaleY:_0x3def02}=this['_scene'][_0x3cc4e7(0x280)]();return Math[_0x3cc4e7(0x1a7)](_0x81a975,_0x3def02);}}var Ui=Object[_0x64618b(0x1bc)],Mi=(_0x4aeffc,_0x53d484,_0x41ff0d,_0xc66fb8)=>{const _0x3a06bd=_0x64618b;for(var _0x465464=_0xc66fb8>0x1?void 0x0:_0xc66fb8?Ui(_0x53d484,_0x41ff0d):_0x53d484,_0x2d495b=_0x4aeffc[_0x3a06bd(0x148)]-0x1,_0x23af48;_0x2d495b>=0x0;_0x2d495b--)(_0x23af48=_0x4aeffc[_0x2d495b])&&(_0x465464=_0x23af48(_0x465464)||_0x465464);return _0x465464;},Z=(_0x53e57a,_0x30313e)=>(_0x5b41aa,_0x37ea0e)=>_0x30313e(_0x5b41aa,_0x37ea0e,_0x53e57a);let we=class extends _0x4ddff1{constructor(_0x26f9aa,_0x15b7b4,_0x2e1996,_0x352607,_0x373f89){const _0x5534c6=_0x64618b;super(),_(this,_0x5534c6(0x18d),[]),_(this,_0x5534c6(0x1a0),[]),(this['_context']=_0x26f9aa,this[_0x5534c6(0x226)]=_0x15b7b4,this[_0x5534c6(0x20e)]=_0x2e1996,this[_0x5534c6(0x292)]=_0x352607,this[_0x5534c6(0x1f2)]=_0x373f89,this[_0x5534c6(0x2ab)]());}[_0x64618b(0x2ab)](){const _0x491655=_0x64618b,_0x37056d=this['_context']['unitId'],_0x406614=this[_0x491655(0x226)];this[_0x491655(0x241)](_0x47b847([this[_0x491655(0x20e)]['getCollabCursors$'](_0x37056d),this[_0x491655(0x1f2)][_0x491655(0x175)]])[_0x491655(0x25e)](_0x18694b(([_0x161436,_0x407df9])=>({'skeleton':_0x406614['getSkeleton'](),'cursors':[..._0x161436[_0x491655(0x206)]()]['flatMap'](_0x6243f7=>({..._0x6243f7,'color':this[_0x491655(0x1f2)][_0x491655(0x162)](_0x6243f7['color'])}))})))[_0x491655(0x1f0)](_0x458d24=>{const _0x16ae9d=_0x491655;if(this[_0x16ae9d(0x197)](),_0x458d24){const {skeleton:_0x1933da,cursors:_0x24c678}=_0x458d24;this[_0x16ae9d(0x29b)](_0x1933da,_0x24c678);}})),this[_0x491655(0x31c)](),this[_0x491655(0x16e)]();}[_0x64618b(0x29b)](_0x46da34,_0x36cefb){const _0x223d82=_0x64618b,{scene:_0x1bbdac,mainComponent:_0xece434}=this[_0x223d82(0x1be)],_0x13dfdc=_0x36cefb[_0x223d82(0x31d)](_0x7f8475=>new qe(_0x7f8475,_0x1bbdac,_0x46da34,_0xece434));this[_0x223d82(0x18d)]=_0x13dfdc,this[_0x223d82(0x1a0)]=_0x36cefb;}[_0x64618b(0x1b8)](){const _0x15b8e9=_0x64618b;this[_0x15b8e9(0x197)]();const {scene:_0x4104a8,mainComponent:_0x40666a}=this[_0x15b8e9(0x1be)],_0x3bd3fc=this['_docSkeletonManagerService']['getSkeleton'](),_0xad6f49=this[_0x15b8e9(0x1a0)][_0x15b8e9(0x31d)](_0x723142=>new qe(_0x723142,_0x4104a8,_0x3bd3fc,_0x40666a));this[_0x15b8e9(0x18d)]=_0xad6f49;}[_0x64618b(0x197)](){const _0x7ef301=_0x64618b;this[_0x7ef301(0x18d)][_0x7ef301(0x25f)](_0x18e214=>_0x18e214[_0x7ef301(0x23e)]()),this[_0x7ef301(0x18d)]=[];}[_0x64618b(0x16e)](){const _0x293108=_0x64618b,_0x4e6e53=[_0x12c153['id']];this[_0x293108(0x241)](this[_0x293108(0x292)][_0x293108(0x2af)](_0x29a6f4=>{const _0xdedadc=_0x293108;_0x4e6e53[_0xdedadc(0x288)](_0x29a6f4['id'])&&_0x29a6f4['params'][_0xdedadc(0x248)]===this[_0xdedadc(0x1be)][_0xdedadc(0x248)]&&this['_refreshCollabCursors']();}));}[_0x64618b(0x31c)](){const _0x4aa34e=_0x64618b;this[_0x4aa34e(0x241)](_0x4ca10b(this[_0x4aa34e(0x1be)][_0x4aa34e(0x22b)][_0x4aa34e(0x1ae)])[_0x4aa34e(0x25e)](_0x12b8db(_0x16f27a=>_0x16f27a[_0x4aa34e(0x243)]===_0x191eae['resize']),_0x40c540(0x10))[_0x4aa34e(0x1f0)](()=>{const _0x4192e2=_0x4aa34e;this[_0x4192e2(0x1b8)]();}));}};we=Mi([Z(0x1,_0x5033cb(_0x30cf23)),Z(0x2,_0x5033cb(H)),Z(0x3,_0x441fb8),Z(0x4,_0x5033cb(_0x3cc326))],we);const wi=0x1,Pi=1.5;class Li extends _0x2f321f{constructor(_0x1c5caf,_0x26650a){const _0x34b765=_0x64618b;super(_0x1c5caf,_0x26650a),_(this,'_color'),_(this,_0x34b765(0x213),!0x1),_(this,_0x34b765(0x1df)),_(this,_0x34b765(0x155),''),_(this,_0x34b765(0x1b7),_0x34b765(0x210)),_(this,'_backgroundColor'),(_0x26650a&&this[_0x34b765(0x274)](_0x26650a),this[_0x34b765(0x1c0)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x34b765(0x1dc)]['subscribeEvent'](()=>this[_0x34b765(0x274)]({'hovered':!0x1})));}[_0x64618b(0x274)](_0xff3e57){const _0x4a49eb=_0x64618b;var _0x302283,_0x12d766,_0x4c4a7d,_0x3bfe76,_0x1b26da,_0x6cf0ac;this[_0x4a49eb(0x19a)]=(_0x302283=_0xff3e57[_0x4a49eb(0x27d)])!=null?_0x302283:this[_0x4a49eb(0x19a)],this[_0x4a49eb(0x213)]=(_0x12d766=_0xff3e57[_0x4a49eb(0x218)])!=null?_0x12d766:this[_0x4a49eb(0x213)],this['_range']=(_0x4c4a7d=_0xff3e57['range'])!=null?_0x4c4a7d:this[_0x4a49eb(0x1df)],this[_0x4a49eb(0x155)]=(_0x3bfe76=_0xff3e57['name'])!=null?_0x3bfe76:this[_0x4a49eb(0x155)],this[_0x4a49eb(0x1b7)]=(_0x1b26da=_0xff3e57[_0x4a49eb(0x26a)])!=null?_0x1b26da:this['_labelPosition'],this[_0x4a49eb(0x26c)]=(_0x6cf0ac=_0xff3e57[_0x4a49eb(0x2e4)])!=null?_0x6cf0ac:this[_0x4a49eb(0x26c)],this[_0x4a49eb(0x286)]({'width':_0xff3e57['width'],'height':_0xff3e57[_0x4a49eb(0x22f)]});}[_0x64618b(0x1bf)](_0x43adf8){const _0x10a887=_0x64618b,{row:_0x473c30,column:_0x3ac873}=_0x43adf8;if(_0x473c30>=this[_0x10a887(0x1df)][_0x10a887(0x1cf)]&&_0x473c30<=this[_0x10a887(0x1df)]['endRow']&&_0x3ac873>=this[_0x10a887(0x1df)][_0x10a887(0x191)]&&_0x3ac873<=this['_range'][_0x10a887(0x320)]){this[_0x10a887(0x274)]({'hovered':!0x0});return;}this[_0x10a887(0x274)]({'hovered':!0x1});}['triggerDblclick'](_0x147bdc){return!0x1;}[_0x64618b(0x307)](_0xc4374a){const _0x55e622=_0x64618b;_0x44fdaf[_0x55e622(0x15b)](_0xc4374a,{'width':this['width'],'height':this[_0x55e622(0x22f)],'strokeWidth':Pi,'stroke':this[_0x55e622(0x19a)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x55e622(0x213)]&&(_0xc4374a[_0x55e622(0x24a)](),_0xc4374a['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x55e622(0x1b7)]===_0x55e622(0x244)?0x0:-0x14),he[_0x55e622(0x15b)](_0xc4374a,{'text':this[_0x55e622(0x155)],'color':this['_color']}),_0xc4374a['restore']());}}var Ai=Object[_0x64618b(0x1bc)],yi=(_0x40fde8,_0x4ca5fa,_0x3576ec,_0x5dda49)=>{for(var _0x3a17fd=_0x5dda49>0x1?void 0x0:_0x5dda49?Ai(_0x4ca5fa,_0x3576ec):_0x4ca5fa,_0x465d09=_0x40fde8['length']-0x1,_0x247df0;_0x465d09>=0x0;_0x465d09--)(_0x247df0=_0x40fde8[_0x465d09])&&(_0x3a17fd=_0x247df0(_0x3a17fd)||_0x3a17fd);return _0x3a17fd;},ve=(_0x3fd1b0,_0x3e5aad)=>(_0x1e163b,_0x51402a)=>_0x3e5aad(_0x1e163b,_0x51402a,_0x3fd1b0);const $i=0x1389;let Pe=class extends _0x4ddff1{constructor(_0x5c9659,_0x3021d8,_0x4f940d,_0x2a6784){const _0x148c16=_0x64618b;super(),_(this,_0x148c16(0x1a0),new Set()),_(this,_0x148c16(0x1f7),null),(this[_0x148c16(0x1be)]=_0x5c9659,this[_0x148c16(0x28a)]=_0x3021d8,this[_0x148c16(0x20e)]=_0x4f940d,this['_themeService']=_0x2a6784,this['_init']());}[_0x64618b(0x2ab)](){const _0x269367=_0x64618b;this['_sheetSkeletonManagerService'][_0x269367(0x1e9)]['pipe'](_0x223637(this[_0x269367(0x1a6)]),_0x2ff73a(_0x41a9d2=>{const _0x403767=_0x269367;if(_0x41a9d2){const _0xf41b77=_0x41a9d2[_0x403767(0x1f6)];return _0x47b847(this[_0x403767(0x20e)][_0x403767(0x2ee)](this[_0x403767(0x1be)][_0x403767(0x248)]),this[_0x403767(0x1f2)]['currentTheme$'])['pipe'](_0x18694b(([_0x396f4d,_0x18a31f])=>{const _0x2862a9=new Map();return _0x396f4d['forEach']((_0x2bf4fe,_0x498da5)=>{const _0x5e5005=_0x5700;if(_0x2bf4fe['sheetID']===_0xf41b77){const _0x530714={..._0x2bf4fe};_0x530714['color']=this['_themeService'][_0x5e5005(0x162)](_0x2bf4fe[_0x5e5005(0x27d)]),_0x2862a9[_0x5e5005(0x21b)](_0x498da5,_0x530714);}}),{'skeleton':_0x41a9d2,'cursors':_0x2862a9};}));}return _0x221268({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x35cbca,cursors:_0x25b69d})=>{const _0x4d991a=_0x269367;this[_0x4d991a(0x197)](),_0x35cbca&&this['_updateCollabCursors'](_0x35cbca,_0x25b69d);}),this[_0x269367(0x28a)][_0x269367(0x1e9)][_0x269367(0x1f0)](_0xf16b59=>{const _0x2dc202=_0x269367;if(_0xf16b59==null)return;const {skeleton:_0x4cc33c}=_0xf16b59,{scene:_0x359f87}=this[_0x2dc202(0x1be)];_0x359f87[_0x2dc202(0x167)]['subscribeEvent'](_0x528585(_0x5acfda=>{const _0x26da43=_0x2dc202;var _0x25bbe3,_0x45c549;const {offsetX:_0xb8ae17,offsetY:_0x36c359}=_0x5acfda,{x:_0x54d33c,y:_0x2bfb15}=_0x359f87[_0x26da43(0x188)](_0x2da506[_0x26da43(0x2a7)]([_0xb8ae17,_0x36c359])),{scaleX:_0x12073e,scaleY:_0x12a6ee}=_0x359f87[_0x26da43(0x280)](),_0x3cc467=_0x359f87['getViewport'](_0x4547f8[_0x26da43(0x202)]),_0x51d2b9=_0x359f87[_0x26da43(0x18b)](_0x2da506[_0x26da43(0x2a7)]([_0x54d33c,_0x2bfb15]),_0x3cc467),_0x4cd151=_0x4cc33c[_0x26da43(0x19b)](_0xb8ae17,_0x36c359,_0x12073e,_0x12a6ee,_0x51d2b9);((_0x25bbe3=this[_0x26da43(0x1f7)])==null?void 0x0:_0x25bbe3[_0x26da43(0x2bc)])===_0x4cd151['column']&&((_0x45c549=this[_0x26da43(0x1f7)])==null?void 0x0:_0x45c549[_0x26da43(0x222)])===_0x4cd151[_0x26da43(0x222)]||this[_0x26da43(0x1a0)][_0x26da43(0x25f)](_0x285bff=>{const _0x48f20b=_0x26da43;_0x285bff[_0x48f20b(0x1bf)](_0x4cd151);});},0x64));});}[_0x64618b(0x29b)](_0x14f1f5,_0x29dfc5){const _0x25ec1d=_0x64618b;var _0x4a8811;const _0x3a7b88=(_0x4a8811=this[_0x25ec1d(0x28a)][_0x25ec1d(0x33c)]())==null?void 0x0:_0x4a8811[_0x25ec1d(0x227)];if(!_0x3a7b88)return;const _0x51c956=this[_0x25ec1d(0x194)]();if(!_0x51c956)return;this[_0x25ec1d(0x1a0)][_0x25ec1d(0x25f)](_0x94392=>{const _0x34f90b=_0x25ec1d;_0x94392[_0x34f90b(0x340)]();});const {scene:_0xbd520b}=_0x51c956,_0x1a9e23=xi(Array['from'](_0x29dfc5[_0x25ec1d(0x206)]()))['map'](_0x111f60=>{const {color:_0x394662,range:_0x593cfa,name:_0x2958bd,selection:_0x234655,sheetID:_0x677e8d}=_0x111f60,{startColumn:_0x21bb50,startRow:_0x3e7489,endColumn:_0x544d03,endRow:_0x115412}=_0x593cfa,_0x3438d2=_0x1d907c(_0x3e7489,_0x21bb50,_0xbd520b,_0x3a7b88),_0x43386d=_0x1d907c(_0x115412,_0x544d03,_0xbd520b,_0x3a7b88),{columnHeaderHeightAndMarginTop:_0xd0da57}=_0x3a7b88,{startX:_0x335a1e,startY:_0x1bc663}=_0x3438d2,{endX:_0x1d9d85,endY:_0x3ab24f}=_0x43386d,_0x5a987b=_0x1d9d85-_0x335a1e,_0x2bd37c=_0x3ab24f-_0x1bc663,_0x1a7b77={'labelPosition':_0x1bc663-_0xd0da57>=ee?'top':'bottom','sheetID':_0x677e8d,'range':_0x593cfa,'color':_0x394662,'name':_0x2958bd,'selection':_0x234655,'left':_0x335a1e,'top':_0x1bc663,'width':_0x5a987b,'height':_0x2bd37c,'evented':!0x1,'zIndex':$i};return new Li(_0x2958bd,_0x1a7b77);});_0xbd520b[_0x25ec1d(0x200)](_0x1a9e23,wi),this[_0x25ec1d(0x1a0)]=new Set(_0x1a9e23);}[_0x64618b(0x197)](){const _0x5e64fe=_0x64618b;var _0x6678b0;(_0x6678b0=this[_0x5e64fe(0x1a0)])==null||_0x6678b0['forEach'](_0x2fab7d=>_0x2fab7d[_0x5e64fe(0x23e)]());}['_getSheetObject'](){const _0x4b9922=_0x64618b;return _0x495b33(this[_0x4b9922(0x1be)][_0x4b9922(0x22d)],this[_0x4b9922(0x1be)]);}};Pe=yi([ve(0x1,_0x5033cb(_0x31d5fb)),ve(0x2,_0x5033cb(H)),ve(0x3,_0x5033cb(_0x3cc326))],Pe);function xi(_0x140d9b){const _0x5cff5e=_0x64618b,_0x22ab0c=new Map();return _0x140d9b[_0x5cff5e(0x25f)](_0x90bc64=>{const _0x5989ee=_0x5cff5e;if(_0x22ab0c['has'](_0x90bc64[_0x5989ee(0x2ad)])){const _0x57ab94=_0x22ab0c[_0x5989ee(0x23c)](_0x90bc64['selection']);_0x57ab94['name']+=',\x20'+_0x90bc64['name'];}else _0x22ab0c[_0x5989ee(0x21b)](_0x90bc64[_0x5989ee(0x2ad)],_0x90bc64);}),Array[_0x5cff5e(0x208)](_0x22ab0c[_0x5cff5e(0x206)]());}var v=function(){const _0x2194f4=_0x64618b;return v=Object['assign']||function(_0x53b35f){const _0x22e690=_0x5700;for(var _0x278579,_0x4a54a0=0x1,_0x420489=arguments[_0x22e690(0x148)];_0x4a54a0<_0x420489;_0x4a54a0++){_0x278579=arguments[_0x4a54a0];for(var _0x14bd2f in _0x278579)Object[_0x22e690(0x2ef)]['hasOwnProperty'][_0x22e690(0x290)](_0x278579,_0x14bd2f)&&(_0x53b35f[_0x14bd2f]=_0x278579[_0x14bd2f]);}return _0x53b35f;},v[_0x2194f4(0x220)](this,arguments);},Bi=function(_0x288e62,_0x5f338a){const _0x52be97=_0x64618b;var _0x56080a={};for(var _0x3e2e4e in _0x288e62)Object[_0x52be97(0x2ef)][_0x52be97(0x21e)][_0x52be97(0x290)](_0x288e62,_0x3e2e4e)&&_0x5f338a['indexOf'](_0x3e2e4e)<0x0&&(_0x56080a[_0x3e2e4e]=_0x288e62[_0x3e2e4e]);if(_0x288e62!=null&&typeof Object[_0x52be97(0x2fc)]==_0x52be97(0x15d)){for(var _0x3af277=0x0,_0x3e2e4e=Object['getOwnPropertySymbols'](_0x288e62);_0x3af277<_0x3e2e4e[_0x52be97(0x148)];_0x3af277++)_0x5f338a[_0x52be97(0x2f1)](_0x3e2e4e[_0x3af277])<0x0&&Object[_0x52be97(0x2ef)][_0x52be97(0x1e1)]['call'](_0x288e62,_0x3e2e4e[_0x3af277])&&(_0x56080a[_0x3e2e4e[_0x3af277]]=_0x288e62[_0x3e2e4e[_0x3af277]]);}return _0x56080a;},je=_0x36b6f5(function(_0x1d5ef9,_0x570207){const _0x5bc613=_0x64618b;var _0x50fbec=_0x1d5ef9[_0x5bc613(0x28c)],_0x398291=_0x1d5ef9['id'],_0x3e3cc2=_0x1d5ef9[_0x5bc613(0x23f)],_0xf504ff=_0x1d5ef9[_0x5bc613(0x164)],_0x1228e6=Bi(_0x1d5ef9,[_0x5bc613(0x28c),'id',_0x5bc613(0x23f),_0x5bc613(0x164)]),_0xbbf92f=_0x5bc613(0x1fb)['concat'](_0x398291,'\x20')[_0x5bc613(0x295)](_0x3e3cc2||'')[_0x5bc613(0x2a2)](),_0x1e8aa8=_0x3bf52a('_'['concat'](ji()));return Rt(_0x50fbec,''[_0x5bc613(0x295)](_0x398291),{'defIds':_0x50fbec[_0x5bc613(0x294)],'idSuffix':_0x1e8aa8['current']},v({'ref':_0x570207,'className':_0xbbf92f},_0x1228e6),_0xf504ff);});function Rt(_0x4394d6,_0x2338a8,_0xa52ac2,_0x5ef112,_0x59484a){const _0x4c0154=_0x64618b;return _0x4d5013(_0x4394d6[_0x4c0154(0x17a)],v(v({'key':_0x2338a8},ki(_0x4394d6,_0xa52ac2,_0x59484a)),_0x5ef112),(Hi(_0x4394d6,_0xa52ac2)['children']||[])[_0x4c0154(0x31d)](function(_0x2d4e14,_0x431943){const _0x19fbd3=_0x4c0154;return Rt(_0x2d4e14,''[_0x19fbd3(0x295)](_0x2338a8,'-')[_0x19fbd3(0x295)](_0x4394d6[_0x19fbd3(0x17a)],'-')[_0x19fbd3(0x295)](_0x431943),_0xa52ac2,void 0x0,_0x59484a);}));}function ki(_0x4c19c4,_0x1c7ae9,_0x147127){const _0x1c317e=_0x64618b;var _0x29d298=v({},_0x4c19c4[_0x1c317e(0x299)]);_0x147127!=null&&_0x147127[_0x1c317e(0x1da)]&&_0x29d298['fill']==='colorChannel1'&&(_0x29d298['fill']=_0x147127['colorChannel1']),_0x4c19c4[_0x1c317e(0x17a)]===_0x1c317e(0x272)&&_0x29d298['id']&&(_0x29d298['id']=_0x29d298['id']+_0x1c7ae9[_0x1c317e(0x17e)]),Object['entries'](_0x29d298)['forEach'](function(_0x443369){const _0x3cded1=_0x1c317e;var _0x556469=_0x443369[0x0],_0x41cbe4=_0x443369[0x1];_0x556469===_0x3cded1(0x272)&&typeof _0x41cbe4=='string'&&(_0x29d298[_0x556469]=_0x41cbe4['replace'](/url\(#(.*)\)/,_0x3cded1(0x242)[_0x3cded1(0x295)](_0x1c7ae9[_0x3cded1(0x17e)],')')));});var _0x376c3d=_0x1c7ae9[_0x1c317e(0x294)];return!_0x376c3d||_0x376c3d['length']===0x0||(_0x4c19c4[_0x1c317e(0x17a)]===_0x1c317e(0x275)&&_0x29d298[_0x1c317e(0x334)]&&(_0x29d298[_0x1c317e(0x334)]=_0x29d298[_0x1c317e(0x334)]+_0x1c7ae9[_0x1c317e(0x17e)]),Object['entries'](_0x29d298)[_0x1c317e(0x25f)](function(_0x2ef0c4){const _0x11c404=_0x1c317e;var _0x13317b=_0x2ef0c4[0x0],_0x16a45d=_0x2ef0c4[0x1];typeof _0x16a45d==_0x11c404(0x321)&&(_0x29d298[_0x13317b]=_0x16a45d[_0x11c404(0x2b8)](/url\(#(.*)\)/,'url(#$1'[_0x11c404(0x295)](_0x1c7ae9[_0x11c404(0x17e)],')')));})),_0x29d298;}function Hi(_0x3c8bc3,_0x5ad59d){const _0x49a63a=_0x64618b;var _0x517774,_0x45890a=_0x5ad59d[_0x49a63a(0x294)];return!_0x45890a||_0x45890a['length']===0x0?_0x3c8bc3:_0x3c8bc3[_0x49a63a(0x17a)]===_0x49a63a(0x1d9)&&(!((_0x517774=_0x3c8bc3[_0x49a63a(0x27b)])===null||_0x517774===void 0x0)&&_0x517774[_0x49a63a(0x148)])?v(v({},_0x3c8bc3),{'children':_0x3c8bc3[_0x49a63a(0x27b)][_0x49a63a(0x31d)](function(_0x39676b){const _0x455e31=_0x49a63a;return typeof _0x39676b[_0x455e31(0x299)]['id']==_0x455e31(0x321)&&_0x45890a&&_0x45890a[_0x455e31(0x288)](_0x39676b[_0x455e31(0x299)]['id'])?v(v({},_0x39676b),{'attrs':v(v({},_0x39676b[_0x455e31(0x299)]),{'id':_0x39676b[_0x455e31(0x299)]['id']+_0x5ad59d['idSuffix']})}):_0x39676b;})}):_0x3c8bc3;}function ji(){const _0x1a62d9=_0x64618b;return Math[_0x1a62d9(0x19e)]()[_0x1a62d9(0x185)](0x24)['substring'](0x2,0x8);}je[_0x64618b(0x13e)]=_0x64618b(0x303);var Yi={'tag':_0x64618b(0x309),'attrs':{'xmlns':_0x64618b(0x277),'fill':_0x64618b(0x2d7),'viewBox':_0x64618b(0x2b7),'width':_0x64618b(0x1d4),'height':_0x64618b(0x1d4)},'children':[{'tag':'g','attrs':{'clipPath':_0x64618b(0x253)},'children':[{'tag':_0x64618b(0x24e),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x64618b(0x308),'strokeLinejoin':_0x64618b(0x308),'strokeWidth':1.2}}]},{'tag':_0x64618b(0x1d9),'attrs':{},'children':[{'tag':_0x64618b(0x187),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x64618b(0x24e),'attrs':{'fill':_0x64618b(0x1ca),'d':_0x64618b(0x278)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Dt=_0x36b6f5(function(_0x2ee9b4,_0x225ae6){const _0x2a0a75=_0x64618b;return _0x4d5013(je,Object[_0x2a0a75(0x177)]({},_0x2ee9b4,{'id':'off-line-icon','ref':_0x225ae6,'icon':Yi}));});Dt[_0x64618b(0x13e)]=_0x64618b(0x17c);var Fi={'tag':'svg','attrs':{'xmlns':_0x64618b(0x277),'fill':_0x64618b(0x2d7),'viewBox':'0\x200\x2017\x2016','width':_0x64618b(0x1d4),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x64618b(0x2b4)},'children':[{'tag':_0x64618b(0x24e),'attrs':{'stroke':_0x64618b(0x2c1),'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':_0x64618b(0x308),'strokeLinejoin':_0x64618b(0x308),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x64618b(0x187),'attrs':{'id':_0x64618b(0x19d)},'children':[{'tag':'path','attrs':{'fill':_0x64618b(0x1ca),'d':_0x64618b(0x278),'transform':_0x64618b(0x1f1)}}]}]}],'defIds':[_0x64618b(0x19d)]},Nt=_0x36b6f5(function(_0x42f868,_0x32c65b){const _0x26b90e=_0x64618b;return _0x4d5013(je,Object['assign']({},_0x42f868,{'id':_0x26b90e(0x2f6),'ref':_0x32c65b,'icon':Fi}));});Nt['displayName']='OnLineIcon';function Wi(_0x207dca){const _0x307764=_0x64618b;switch(_0x207dca){case _0x253d04['OFFLINE']:return'collabStatus.offline';case _0x253d04[_0x307764(0x233)]:return _0x307764(0x212);case _0x253d04['FETCH_MISS']:return _0x307764(0x196);case _0x253d04[_0x307764(0x302)]:return _0x307764(0x2d3);case _0x253d04[_0x307764(0x327)]:case _0x253d04[_0x307764(0x1a8)]:return'collabStatus.syncing';case _0x253d04[_0x307764(0x15f)]:case _0x253d04['PENDING']:return _0x307764(0x2fa);}}function Vi(_0x41d765){const _0x1519ad=_0x64618b,{status$:_0x2c02ca}=_0x41d765,_0x2d129e=_0x4861f8(_0x2c02ca,_0x253d04[_0x1519ad(0x302)]),_0x36a9f5=_0xbdf0d4(_0x7d4dd3),_0x11778a=_0xbdf0d4(_0x2959b5),_0x564ff7=_0x2d129e!==_0x253d04['OFFLINE'],_0x3d4189=_0x36a9f5['t'](Wi(_0x2d129e)),_0x4c80bd=_0x564ff7?_0x4eb9b5(Nt,{}):_0x4eb9b5(Dt,{}),_0x27d9a4=_0x46934a(()=>{_0x564ff7||_0x11778a['reconnect']();},[_0x564ff7,_0x11778a]);function _0x1c446e(){const _0x42209f=_0x1519ad;return _0x4ca26e('div',{'className':_0x42209f(0x1e0),'onClick':_0x27d9a4,'children':[_0x4eb9b5(_0x42209f(0x335),{'className':_0x55d543(_0x42209f(0x15a),{'univer-text-green-500':_0x564ff7,'univer-text-red-500':!_0x564ff7}),'children':_0x4c80bd}),_0x4eb9b5('div',{'className':_0x42209f(0x207),'children':_0x3d4189})]});}return _0x564ff7?_0x1c446e():_0x4eb9b5(_0x1cf3b2,{'title':_0x36a9f5['t']('collab-client.tooltip.reconnect'),'children':_0x1c446e()});}var Xi=Object['getOwnPropertyDescriptor'],Gi=(_0x43a027,_0x252284,_0x39d712,_0x374a78)=>{const _0x2bad4c=_0x64618b;for(var _0x59a302=_0x374a78>0x1?void 0x0:_0x374a78?Xi(_0x252284,_0x39d712):_0x252284,_0x4cbdb1=_0x43a027[_0x2bad4c(0x148)]-0x1,_0x38c5ac;_0x4cbdb1>=0x0;_0x4cbdb1--)(_0x38c5ac=_0x43a027[_0x4cbdb1])&&(_0x59a302=_0x38c5ac(_0x59a302)||_0x59a302);return _0x59a302;},Q=(_0x9d301,_0x5064b0)=>(_0x596f8f,_0x1c6c6e)=>_0x5064b0(_0x596f8f,_0x1c6c6e,_0x9d301);let te=class extends _0xfd192d{constructor(_0x4c6eb8,_0x585035,_0x23e22f,_0x2f8a9d){const _0x33f378=_0x64618b;super(),_(this,_0x33f378(0x2d9),new _0x3d4fde(_0x253d04[_0x33f378(0x302)])),(this[_0x33f378(0x262)]=_0x4c6eb8,this[_0x33f378(0x30c)]=_0x585035,this['_collaborationController']=_0x23e22f,this['_uiPartsService']=_0x2f8a9d,this[_0x33f378(0x140)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x2b50ef=_0x64618b;this['disposeWithMe'](this[_0x2b50ef(0x262)][_0x2b50ef(0x2bd)][_0x2b50ef(0x25e)](_0x31eb21(()=>{const _0x2123ae=_0x2b50ef,_0x348bef=this[_0x2123ae(0x262)][_0x2123ae(0x30e)]();return _0x348bef?this[_0x2123ae(0x27f)]['getCollabEntity$'](_0x348bef['getUnitId']()):_0x221268(null);}),_0x31eb21(_0xbd4328=>_0xbd4328?_0xbd4328[_0x2b50ef(0x171)]:_0x221268(_0x253d04['NOT_COLLAB'])))['subscribe'](_0x586210=>{const _0x1f0fa8=_0x2b50ef;this['_status$'][_0x1f0fa8(0x343)](_0x586210);}));}[_0x64618b(0x140)](){const _0x3f44b7=_0x64618b;this[_0x3f44b7(0x241)](this[_0x3f44b7(0x323)][_0x3f44b7(0x33d)](_0x257042[_0x3f44b7(0x24d)],()=>_0x174522(Ki({'status$':this[_0x3f44b7(0x2d9)]['asObservable']()}),this[_0x3f44b7(0x30c)])));}};te=Gi([Q(0x0,_0x56a9dd),Q(0x1,_0x5033cb(_0x5d0444)),Q(0x2,_0x5033cb(_0x22feca)),Q(0x3,_0x5bd75c)],te);function Ki(_0x510eff){const {status$:_0x2ea189}=_0x510eff;return function(){return _0x4eb9b5(Vi,{'status$':_0x2ea189});};}var zi=Object['getOwnPropertyDescriptor'],Ji=(_0x1856ae,_0x41b47a,_0x238c64,_0x2997c5)=>{for(var _0x3baa6c=_0x2997c5>0x1?void 0x0:_0x2997c5?zi(_0x41b47a,_0x238c64):_0x41b47a,_0x116bfc=_0x1856ae['length']-0x1,_0x330611;_0x116bfc>=0x0;_0x116bfc--)(_0x330611=_0x1856ae[_0x116bfc])&&(_0x3baa6c=_0x330611(_0x3baa6c)||_0x3baa6c);return _0x3baa6c;},B=(_0x9f31da,_0x24f8dd)=>(_0x26895e,_0x190067)=>_0x24f8dd(_0x26895e,_0x190067,_0x9f31da);let se=class extends _0xfd192d{constructor(_0x467243,_0x533ca4,_0x29b8d7,_0x305655,_0x5a31ec,_0x2f719b){const _0xa831f1=_0x64618b;super(),this[_0xa831f1(0x24f)]=_0x467243,this['_localCacheService']=_0x533ca4,this[_0xa831f1(0x14e)]=_0x29b8d7,this[_0xa831f1(0x2cd)]=_0x305655,this[_0xa831f1(0x166)]=_0x5a31ec,this[_0xa831f1(0x2fe)]=_0x2f719b,this[_0xa831f1(0x1d6)](),this[_0xa831f1(0x336)]();}[_0x64618b(0x1d6)](){const _0x1578c4=_0x64618b;this[_0x1578c4(0x241)](this[_0x1578c4(0x24f)][_0x1578c4(0x2a6)](()=>{const _0x9f5310=_0x1578c4;if(this['_localCacheService'][_0x9f5310(0x1db)][_0x9f5310(0x317)])return this['_localeService']['t'](_0x9f5310(0x199));}));}['_initEvent'](){const _0x5cf201=_0x64618b;this[_0x5cf201(0x241)](this[_0x5cf201(0x14e)][_0x5cf201(0x1ce)][_0x5cf201(0x1f0)](_0x2d58fa=>{const _0x1c0680=_0x5cf201;_0x2d58fa['id']===_0x5d9b57['OTHER_CLIENT_EDITING']&&this[_0x1c0680(0x2cd)][_0x1c0680(0x33f)]({'type':_0x37e46e['Warning'],'content':this[_0x1c0680(0x2fe)]['t'](_0x1c0680(0x337))}),_0x2d58fa['id']===_0x5d9b57['CLOSE_ROOM']&&this['_messageService'][_0x1c0680(0x33f)]({'type':_0x37e46e['Warning'],'content':this[_0x1c0680(0x2fe)]['t'](_0x1c0680(0x1c8))}),_0x2d58fa['id']===_0x5d9b57[_0x1c0680(0x2dc)]&&this['_notificationService'][_0x1c0680(0x33f)]({'title':this['_localeService']['t'](_0x1c0680(0x2e9)),'content':this[_0x1c0680(0x2fe)]['t'](_0x1c0680(0x163)),'type':'error','duration':0x0}),_0x2d58fa['id']===_0x5d9b57[_0x1c0680(0x233)]&&this[_0x1c0680(0x2cd)][_0x1c0680(0x33f)]({'type':_0x37e46e[_0x1c0680(0x1ba)],'content':this[_0x1c0680(0x2fe)]['t'](_0x1c0680(0x1c8))+'('+_0x2d58fa[_0x1c0680(0x305)]+')'}),_0x2d58fa['id']===_0x5d9b57[_0x1c0680(0x2e2)]&&this[_0x1c0680(0x2cd)][_0x1c0680(0x33f)]({'type':_0x37e46e[_0x1c0680(0x195)],'content':this['_localeService']['t'](_0x2d58fa[_0x1c0680(0x305)]||'')}),_0x2d58fa['id']===_0x5d9b57[_0x1c0680(0x255)]&&this[_0x1c0680(0x2cd)][_0x1c0680(0x33f)]({'type':_0x37e46e[_0x1c0680(0x195)],'content':this[_0x1c0680(0x2fe)]['t'](_0x1c0680(0x326))}),_0x2d58fa['id']===_0x5d9b57['SOCKET_FAILED']&&this[_0x1c0680(0x2cd)][_0x1c0680(0x33f)]({'type':_0x37e46e[_0x1c0680(0x1ba)],'content':this['_localeService']['t']('session.connection-failed')}),_0x2d58fa['id']===_0x5d9b57[_0x1c0680(0x2cb)]&&this[_0x1c0680(0x2cd)][_0x1c0680(0x33f)]({'type':_0x37e46e['Error'],'content':this[_0x1c0680(0x2fe)]['t'](_0x1c0680(0x2d5))});}));}};se=Ji([B(0x0,_0x6045cf),B(0x1,_0x212ecf),B(0x2,_0x5033cb(_0x2beba7)),B(0x3,_0x453f1e),B(0x4,_0x180a10),B(0x5,_0x5033cb(_0x7d4dd3))],se);const Zi=_0x64618b(0x172),et={},Ut=_0x334356(_0x64618b(0x1ac));var Qi=Object['getOwnPropertyDescriptor'],qi=(_0xa924fa,_0x61c842,_0x4b5049,_0x531f13)=>{const _0x59702a=_0x64618b;for(var _0x5a15f8=_0x531f13>0x1?void 0x0:_0x531f13?Qi(_0x61c842,_0x4b5049):_0x61c842,_0x5155ea=_0xa924fa[_0x59702a(0x148)]-0x1,_0x5eeb44;_0x5155ea>=0x0;_0x5155ea--)(_0x5eeb44=_0xa924fa[_0x5155ea])&&(_0x5a15f8=_0x5eeb44(_0x5a15f8)||_0x5a15f8);return _0x5a15f8;},G=(_0x516d44,_0x181e8a)=>(_0x24ccad,_0x1b8ed9)=>_0x181e8a(_0x24ccad,_0x1b8ed9,_0x516d44);let ie=class extends _0x4ddff1{constructor(_0x45c348,_0xb34799,_0x177dd8,_0x4f9832,_0x5d34e8){const _0x371f85=_0x64618b;super(),this[_0x371f85(0x2f8)]=_0x45c348,this[_0x371f85(0x28f)]=_0xb34799,this[_0x371f85(0x292)]=_0x177dd8,this[_0x371f85(0x1b2)]=_0x4f9832,_0x5d34e8?_0x5d34e8==null||_0x5d34e8[_0x371f85(0x33a)]()[_0x371f85(0x289)](()=>this[_0x371f85(0x2ab)]()):(this[_0x371f85(0x28f)][_0x371f85(0x270)](_0x371f85(0x341),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x371f85(0x2ab)]());}async[_0x64618b(0x2ab)](){const _0x1f7577=_0x64618b,_0x2cb16d=this['_urlService'][_0x1f7577(0x2ae)](_0x1f7577(0x22d)),_0x50a2fb=this[_0x1f7577(0x2f8)][_0x1f7577(0x2ae)]('type'),_0x3a1ac6=this['_urlService']['getParam'](_0x1f7577(0x1a9));if(!_0x2cb16d||!_0x50a2fb){this[_0x1f7577(0x28f)]['debug'](_0x1f7577(0x341),_0x1f7577(0x254));return;}const _0x313e7e=await this[_0x1f7577(0x1b2)][_0x1f7577(0x204)](_0x2cb16d,Number(_0x50a2fb),_0x3a1ac6);_0x313e7e&&_0x313e7e instanceof _0x165fa1&&this['_setupSubUnitSync'](_0x313e7e);}async[_0x64618b(0x174)](_0x3fc7ac){const _0x947041=_0x64618b;await this['_updateSubUnitFromURLParams'](_0x3fc7ac),_0x3fc7ac[_0x947041(0x30f)][_0x947041(0x25e)](_0xf9f0d5(this[_0x947041(0x1a6)]))[_0x947041(0x1f0)](_0x5a1893=>{const _0x3d4240=_0x947041;_0x5a1893&&this[_0x3d4240(0x146)](_0x5a1893);}),this[_0x947041(0x2f8)][_0x947041(0x231)][_0x947041(0x25e)](_0xf9f0d5(this[_0x947041(0x1a6)]))[_0x947041(0x1f0)](()=>this[_0x947041(0x2c0)](_0x3fc7ac));}['_updateURLWithCurrentState'](_0x20c490,_0x2c16d1=!0x1){const _0x1e2f35=_0x64618b,_0x19ae6a=this[_0x1e2f35(0x2f8)][_0x1e2f35(0x2ae)]('subunit');_0x20c490[_0x1e2f35(0x149)]()!==_0x19ae6a&&this[_0x1e2f35(0x2f8)][_0x1e2f35(0x2d1)]('subunit',_0x20c490[_0x1e2f35(0x149)](),_0x2c16d1);}async[_0x64618b(0x2c0)](_0x160cec){const _0x4e8e1b=_0x64618b;var _0x4d2b7a;const _0x3d155a=this['_urlService'][_0x4e8e1b(0x2ae)](_0x4e8e1b(0x1a9));if(!_0x3d155a||!_0x160cec[_0x4e8e1b(0x2eb)](_0x3d155a)){const _0x1b1fe6=_0x160cec['getUnhiddenWorksheets']()[0x0],_0x5eb6a5=_0x160cec[_0x4e8e1b(0x2eb)](_0x1b1fe6);if(!_0x5eb6a5)return;this['_updateURLWithCurrentState'](_0x5eb6a5,!0x0),await this[_0x4e8e1b(0x292)][_0x4e8e1b(0x287)](_0x4ab9ef['id'],{'unitId':_0x160cec['getUnitId'](),'subUnitId':_0x1b1fe6});return;}((_0x4d2b7a=_0x160cec['getActiveSheet']())==null?void 0x0:_0x4d2b7a[_0x4e8e1b(0x149)]())!==_0x3d155a&&await this[_0x4e8e1b(0x292)][_0x4e8e1b(0x287)](_0x4ab9ef['id'],{'unitId':_0x160cec['getUnitId'](),'subUnitId':_0x3d155a});}};ie=qi([G(0x0,Ut),G(0x1,_0x2b7a43),G(0x2,_0x441fb8),G(0x3,_0x5033cb(_0x1df97d)),G(0x4,_0x350c9b(_0x13b1c1))],ie);var en=Object[_0x64618b(0x1bc)],tn=(_0x48509f,_0x542f05,_0x35d0a8,_0x46c1e0)=>{const _0x2cf011=_0x64618b;for(var _0x17962d=_0x46c1e0>0x1?void 0x0:_0x46c1e0?en(_0x542f05,_0x35d0a8):_0x542f05,_0x1e0697=_0x48509f[_0x2cf011(0x148)]-0x1,_0x5371bf;_0x1e0697>=0x0;_0x1e0697--)(_0x5371bf=_0x48509f[_0x1e0697])&&(_0x17962d=_0x5371bf(_0x17962d)||_0x17962d);return _0x17962d;},pe=(_0x3ad032,_0x5bd0dd)=>(_0x359977,_0x2cbc20)=>_0x5bd0dd(_0x359977,_0x2cbc20,_0x3ad032);let ne=class{constructor(_0x3e486a,_0x3bd5de,_0x72ab9){const _0x329961=_0x64618b;this['_injector']=_0x3e486a,this[_0x329961(0x17f)]=_0x3bd5de,this[_0x329961(0x342)]=_0x72ab9;}[_0x64618b(0x1aa)](_0x3e5ec0){const _0x2c1251=_0x64618b;this[_0x2c1251(0x19f)](_0x3e5ec0),this[_0x2c1251(0x1c7)](_0x3e5ec0);}[_0x64618b(0x20b)](_0x2ca58b){const _0x18ab25=_0x64618b,{unitID:_0x57f4ac}=_0x2ca58b,_0x3975c6=this['_renderManagerService'][_0x18ab25(0x21f)](_0x57f4ac)[_0x18ab25(0x193)](_0x27ee56),{redoCache:_0x20c647}=_0x3975c6[_0x18ab25(0x2b5)]();if(_0x20c647[_0x18ab25(0x148)]===0x0)return _0x2ca58b;let _0x106c28=_0x521fe2[_0x18ab25(0x22c)](_0x2ca58b[_0x18ab25(0x153)][0x0]);for(let _0x2eb700=0x0;_0x2eb700<_0x20c647[_0x18ab25(0x148)];_0x2eb700++){const _0x57c49c={'id':_0x18ab25(0x173),'params':{..._0x20c647[_0x2eb700]}},_0x3dbf14=this[_0x18ab25(0x17f)][_0x18ab25(0x2ec)](_0x106c28,_0x57c49c,!0x1);if(_0x2438e1(_0x3dbf14))throw _0x3dbf14['error'];_0x106c28=_0x3dbf14['m1Prime'];}return{..._0x521fe2[_0x18ab25(0x22c)](_0x2ca58b),'mutations':[_0x106c28]};}[_0x64618b(0x19f)](_0x1d6366){const _0x558f30=_0x64618b,{unitID:_0x156f6d}=_0x1d6366,_0x2d1f5f=this[_0x558f30(0x342)][_0x558f30(0x21f)](_0x156f6d)[_0x558f30(0x193)](_0x27ee56),{undoCache:_0x2f907e,redoCache:_0x588ebc}=_0x2d1f5f['getUndoRedoMutationParamsCache']();if(_0x2f907e[_0x558f30(0x148)]===0x0||_0x588ebc[_0x558f30(0x148)]===0x0)return;const _0x1d684a=[],_0x11d268=[];let _0x4c1b26=_0x521fe2[_0x558f30(0x22c)](_0x1d6366[_0x558f30(0x153)][0x0]),_0x7247cb=_0x521fe2[_0x558f30(0x22c)](_0x1d6366['mutations'][0x0]);for(let _0x5e0eb6=_0x2f907e[_0x558f30(0x148)]-0x1;_0x5e0eb6>=0x0;_0x5e0eb6--){const _0x2bef6a={'id':_0x558f30(0x173),'params':{..._0x2f907e[_0x5e0eb6]}},_0x96b5cd={'id':_0x558f30(0x173),'params':{..._0x588ebc[_0x5e0eb6]}},_0x400649=this['_transformService'][_0x558f30(0x2ec)](_0x4c1b26,_0x2bef6a,!0x1),_0x2a68a3=this[_0x558f30(0x17f)][_0x558f30(0x2ec)](_0x7247cb,_0x96b5cd,!0x1);if(_0x2438e1(_0x400649))throw _0x400649[_0x558f30(0x2de)];if(_0x2438e1(_0x2a68a3))throw _0x2a68a3[_0x558f30(0x2de)];_0x1d684a['unshift'](_0x400649[_0x558f30(0x32d)][_0x558f30(0x2a5)]),_0x11d268[_0x558f30(0x17d)](_0x2a68a3[_0x558f30(0x32d)][_0x558f30(0x2a5)]),_0x4c1b26=_0x400649['m1Prime'],_0x7247cb=_0x2a68a3[_0x558f30(0x2bb)];}_0x2d1f5f[_0x558f30(0x2aa)]({'undoCache':_0x1d684a,'redoCache':_0x11d268});}[_0x64618b(0x1c7)](_0x3d8afc){const _0x455277=_0x64618b,{unitID:_0x4830e8}=_0x3d8afc,_0x46bb6d=this['_renderManagerService'][_0x455277(0x21f)](_0x4830e8)[_0x455277(0x193)](_0x27ee56),_0x5e0004=_0x46bb6d[_0x455277(0x263)]();if(_0x5e0004==null)return;const _0x10069e=[{'id':_0x455277(0x173),'params':{'unitId':_0x3d8afc[_0x455277(0x2ac)],'actions':null,'textRanges':[_0x5e0004]}}],_0x4586e0=this[_0x455277(0x17f)][_0x455277(0x16f)](_0x3d8afc,_0x10069e);if(!_0x2ccd38(_0x4586e0))throw _0x4586e0[_0x455277(0x2de)];const _0x480328=_0x4586e0[_0x455277(0x32d)][0x0][_0x455277(0x2a5)][_0x455277(0x296)];Array['isArray'](_0x480328)&&_0x480328[_0x455277(0x148)]&&_0x46bb6d[_0x455277(0x1cc)](_0x480328[0x0]);}};ne=tn([pe(0x0,_0x5033cb(_0x5d0444)),pe(0x1,_0x492187),pe(0x2,_0x479a8)],ne);var sn=Object[_0x64618b(0x1bc)],nn=(_0x585fce,_0x9923f9,_0x517a47,_0x5e2f0a)=>{const _0x458d4a=_0x64618b;for(var _0x1a192e=_0x5e2f0a>0x1?void 0x0:_0x5e2f0a?sn(_0x9923f9,_0x517a47):_0x9923f9,_0x16a82f=_0x585fce[_0x458d4a(0x148)]-0x1,_0x2feece;_0x16a82f>=0x0;_0x16a82f--)(_0x2feece=_0x585fce[_0x16a82f])&&(_0x1a192e=_0x2feece(_0x1a192e)||_0x1a192e);return _0x1a192e;},Ce=(_0x45eb50,_0x15eb00)=>(_0x483294,_0x240113)=>_0x15eb00(_0x483294,_0x240113,_0x45eb50);let re=class{constructor(_0x18f474,_0x17ed33,_0x20e87f){const _0x688ae0=_0x64618b;this[_0x688ae0(0x30c)]=_0x18f474,this[_0x688ae0(0x17f)]=_0x17ed33,this[_0x688ae0(0x165)]=_0x20e87f;}[_0x64618b(0x2b1)](_0x44fb38){this['_transformHistoryAndStateStack'](_0x44fb38);}[_0x64618b(0x20b)](_0x24cfcc){const _0x4269f6=_0x64618b,{unitID:_0x4d0ed1}=_0x24cfcc,{collaboration:_0x559eb6}=this['_docStateChangeManagerService'][_0x4269f6(0x181)](_0x4d0ed1);if(_0x559eb6[_0x4269f6(0x148)]===0x0)return _0x24cfcc;let _0x40279b=_0x521fe2[_0x4269f6(0x22c)](_0x24cfcc[_0x4269f6(0x153)][0x0]);for(let _0x24112a=0x0;_0x24112a<_0x559eb6[_0x4269f6(0x148)];_0x24112a++){const _0x18d232={'id':_0x4269f6(0x173),'params':{'unitId':_0x559eb6[_0x24112a][_0x4269f6(0x248)],..._0x559eb6[_0x24112a]['redoState']}},_0x3948e2=this[_0x4269f6(0x17f)]['transformMutation'](_0x40279b,_0x18d232,!0x1);if(_0x2438e1(_0x3948e2))throw _0x3948e2[_0x4269f6(0x2de)];_0x40279b=_0x3948e2['m1Prime'];}return{..._0x521fe2['deepClone'](_0x24cfcc),'mutations':[_0x40279b]};}[_0x64618b(0x1c3)](_0x405f35){const _0x5266a9=_0x64618b,{unitID:_0xe9c54e}=_0x405f35,{history:_0x3f4f6e,collaboration:_0x143d2e}=this['_docStateChangeManagerService'][_0x5266a9(0x181)](_0xe9c54e);if(_0x3f4f6e['length']===0x0&&_0x143d2e[_0x5266a9(0x148)]===0x0)return;const _0x25b982=[],_0x1e809f=[];let _0x2a22e1=_0x521fe2[_0x5266a9(0x22c)](_0x405f35[_0x5266a9(0x153)][0x0]),_0x2545e0=_0x521fe2['deepClone'](_0x405f35[_0x5266a9(0x153)][0x0]);for(let _0xd7c009=_0x3f4f6e[_0x5266a9(0x148)]-0x1;_0xd7c009>=0x0;_0xd7c009--){const _0x2b1746={'id':_0x5266a9(0x173),'params':{'unitId':_0x3f4f6e[_0xd7c009][_0x5266a9(0x248)],..._0x3f4f6e[_0xd7c009][_0x5266a9(0x252)]}},_0x5e106b={'id':_0x5266a9(0x173),'params':{'unitId':_0x3f4f6e[_0xd7c009]['unitId'],..._0x3f4f6e[_0xd7c009]['redoState']}},_0xdd4b7d=this[_0x5266a9(0x17f)][_0x5266a9(0x2ec)](_0x2a22e1,_0x2b1746,!0x1),_0x21fb0b=this[_0x5266a9(0x17f)]['transformMutation'](_0x2545e0,_0x5e106b,!0x1);if(_0x2438e1(_0xdd4b7d))throw _0xdd4b7d[_0x5266a9(0x2de)];if(_0x2438e1(_0x21fb0b))throw _0x21fb0b[_0x5266a9(0x2de)];_0x25b982[_0x5266a9(0x17d)]({..._0x3f4f6e[_0xd7c009],'undoState':_0xdd4b7d[_0x5266a9(0x32d)][_0x5266a9(0x2a5)],'redoState':_0x21fb0b[_0x5266a9(0x32d)][_0x5266a9(0x2a5)]}),_0x2a22e1=_0xdd4b7d[_0x5266a9(0x2bb)],_0x2545e0=_0x21fb0b['m1Prime'];}_0x2a22e1=_0x521fe2[_0x5266a9(0x22c)](_0x405f35['mutations'][0x0]),_0x2545e0=_0x521fe2[_0x5266a9(0x22c)](_0x405f35[_0x5266a9(0x153)][0x0]);for(let _0x3f3851=_0x143d2e[_0x5266a9(0x148)]-0x1;_0x3f3851>=0x0;_0x3f3851--){const _0x30d9f1={'id':_0x5266a9(0x173),'params':{'unitId':_0x143d2e[_0x3f3851][_0x5266a9(0x248)],..._0x143d2e[_0x3f3851][_0x5266a9(0x252)]}},_0x2c199d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x143d2e[_0x3f3851][_0x5266a9(0x248)],..._0x143d2e[_0x3f3851][_0x5266a9(0x2cc)]}},_0x4699d7=this[_0x5266a9(0x17f)]['transformMutation'](_0x2a22e1,_0x30d9f1,!0x1),_0x44ffc9=this[_0x5266a9(0x17f)][_0x5266a9(0x2ec)](_0x2545e0,_0x2c199d,!0x1);if(_0x2438e1(_0x4699d7))throw _0x4699d7[_0x5266a9(0x2de)];if(_0x2438e1(_0x44ffc9))throw _0x44ffc9['error'];_0x1e809f[_0x5266a9(0x17d)]({..._0x143d2e[_0x3f3851],'undoState':_0x4699d7['m2Prime']['params'],'redoState':_0x44ffc9[_0x5266a9(0x32d)][_0x5266a9(0x2a5)]}),_0x2a22e1=_0x4699d7[_0x5266a9(0x2bb)],_0x2545e0=_0x44ffc9[_0x5266a9(0x2bb)];}this[_0x5266a9(0x165)][_0x5266a9(0x310)](_0xe9c54e,{'history':_0x25b982,'collaboration':_0x1e809f});}};re=nn([Ce(0x0,_0x5033cb(_0x5d0444)),Ce(0x1,_0x492187),Ce(0x2,_0x5033cb(_0x1a5ccb))],re);var rn=Object[_0x64618b(0x1bc)],on=(_0x535a5f,_0x6f74cb,_0x16a071,_0x36195a)=>{for(var _0x16d941=_0x36195a>0x1?void 0x0:_0x36195a?rn(_0x6f74cb,_0x16a071):_0x6f74cb,_0x154d2b=_0x535a5f['length']-0x1,_0x5fdc9e;_0x154d2b>=0x0;_0x154d2b--)(_0x5fdc9e=_0x535a5f[_0x154d2b])&&(_0x16d941=_0x5fdc9e(_0x16d941)||_0x16d941);return _0x16d941;},tt=(_0x8ee202,_0x1a2880)=>(_0x28be3b,_0x5708cc)=>_0x1a2880(_0x28be3b,_0x5708cc,_0x8ee202);let oe=class{constructor(_0x343988,_0x1fa604){const _0x962583=_0x64618b;this[_0x962583(0x30c)]=_0x343988,this[_0x962583(0x17f)]=_0x1fa604;}[_0x64618b(0x2f0)](_0x1debce){const _0xec6824=_0x64618b;var _0x3a8dd2;const _0x901c5b=this[_0xec6824(0x30c)][_0xec6824(0x23c)](_0x34051a),_0x463373=(_0x3a8dd2=_0x901c5b[_0xec6824(0x251)]())!=null?_0x3a8dd2:[];if(_0x463373[_0xec6824(0x148)]===0x0)return;const _0x37eb37=_0x1debce[_0xec6824(0x2ac)],_0x4f3bd8=[{'id':_0xec6824(0x173),'params':{'unitId':_0x37eb37,'actions':null,'textRanges':_0x463373}}],_0x912562=this['_transformService'][_0xec6824(0x16f)](_0x1debce,_0x4f3bd8);if(!_0x2ccd38(_0x912562))throw _0x912562[_0xec6824(0x2de)];const _0x13a967=_0x912562[_0xec6824(0x32d)][0x0][_0xec6824(0x2a5)][_0xec6824(0x296)];Array[_0xec6824(0x1fc)](_0x13a967)&&_0x13a967[_0xec6824(0x148)]&&_0x901c5b[_0xec6824(0x264)](_0x13a967,{'unitId':_0x37eb37,'subUnitId':_0x37eb37},!0x1);}};oe=on([tt(0x0,_0x5033cb(_0x5d0444)),tt(0x1,_0x492187)],oe);var an=Object['getOwnPropertyDescriptor'],cn=(_0x4f0fc1,_0x1b136c,_0x3a1e07,_0x4bfbec)=>{const _0x3b43e7=_0x64618b;for(var _0x49246a=_0x4bfbec>0x1?void 0x0:_0x4bfbec?an(_0x1b136c,_0x3a1e07):_0x1b136c,_0x22d8ed=_0x4f0fc1[_0x3b43e7(0x148)]-0x1,_0x4fc5a5;_0x22d8ed>=0x0;_0x22d8ed--)(_0x4fc5a5=_0x4f0fc1[_0x22d8ed])&&(_0x49246a=_0x4fc5a5(_0x49246a)||_0x49246a);return _0x49246a;},U=(_0x10c5e5,_0x3ad822)=>(_0x4004eb,_0x4bbb1e)=>_0x3ad822(_0x4004eb,_0x4bbb1e,_0x10c5e5);let ae=class extends _0xfd192d{constructor(_0x3baa27,_0x1af401,_0x4118e7,_0x567ee2,_0x332a75,_0x3daa87,_0x3a06f1,_0x146e00){const _0x5f30a4=_0x64618b;super(),_(this,_0x5f30a4(0x2d9),new _0x3d4fde(_0x253d04[_0x5f30a4(0x302)])),(this[_0x5f30a4(0x165)]=_0x3baa27,this[_0x5f30a4(0x27f)]=_0x1af401,this[_0x5f30a4(0x23d)]=_0x4118e7,this[_0x5f30a4(0x1a3)]=_0x567ee2,this[_0x5f30a4(0x325)]=_0x332a75,this[_0x5f30a4(0x312)]=_0x3daa87,this['_messageService']=_0x3a06f1,this['_localeService']=_0x146e00,this['_initEntityListener']());}[_0x64618b(0x25c)](){const _0x913157=_0x64618b;this[_0x913157(0x241)](this[_0x913157(0x27f)]['entityInit$'][_0x913157(0x1f0)](_0xf9396d=>{const _0x617a06=_0x913157,_0x5e5c47=this['_docStateChangeManagerService'][_0x617a06(0x29a)]['subscribe'](_0x572a3b=>{const _0x128e5b=_0x617a06;if(_0x572a3b==null)return;const {unitId:_0x1629b2,redoState:_0x322cc9,commandId:_0x3de7bb}=_0x572a3b;if(_0x1629b2!==_0xf9396d[_0x128e5b(0x2ac)])return;const _0x30c423={'id':_0x3de7bb,'type':_0x8e4acc[_0x128e5b(0x154)],'params':{'unitId':_0x1629b2,'actions':_0x322cc9[_0x128e5b(0x250)],'textRanges':null}};_0xf9396d['onLocalMutation'](_0x30c423);});if(_0xf9396d[_0x617a06(0x241)](_0x5e5c47),_0xf9396d instanceof _0x1cc43c){const _0x11e75a={'onTransformIME':_0x2fbb2f=>this[_0x617a06(0x23d)][_0x617a06(0x1aa)](_0x2fbb2f),'onTransformState':_0x1e2d03=>this[_0x617a06(0x1a3)][_0x617a06(0x2b1)](_0x1e2d03),'onTransformSelections':_0x2896ec=>this[_0x617a06(0x325)]['transformSelections'](_0x2896ec),'onSyncEditingCollabCursor':_0x57510b=>this[_0x617a06(0x312)][_0x617a06(0x1f3)](_0x57510b),'onTransformRemoteChangesetByIMECache':_0x38d581=>this[_0x617a06(0x23d)][_0x617a06(0x20b)](_0x38d581),'onTransformRemoteChangesetByStateCache':_0x170d7e=>this['_docTransformStateCacheService'][_0x617a06(0x20b)](_0x170d7e)};_0xf9396d[_0x617a06(0x1fa)](_0x11e75a);}}));}};ae=cn([U(0x0,_0x5033cb(_0x1a5ccb)),U(0x1,_0x5033cb(_0x22feca)),U(0x2,_0x5033cb(ne)),U(0x3,_0x5033cb(re)),U(0x4,_0x5033cb(oe)),U(0x5,_0x5033cb(He)),U(0x6,_0x453f1e),U(0x7,_0x5033cb(_0x7d4dd3))],ae);var ln=Object[_0x64618b(0x1bc)],_n=(_0x3fbc4f,_0x4b36cc,_0x345028,_0x3ba7c)=>{const _0x3c87ef=_0x64618b;for(var _0x3ada16=_0x3ba7c>0x1?void 0x0:_0x3ba7c?ln(_0x4b36cc,_0x345028):_0x4b36cc,_0x1f818a=_0x3fbc4f[_0x3c87ef(0x148)]-0x1,_0x235ae6;_0x1f818a>=0x0;_0x1f818a--)(_0x235ae6=_0x3fbc4f[_0x1f818a])&&(_0x3ada16=_0x235ae6(_0x3ada16)||_0x3ada16);return _0x3ada16;},Ee=(_0x26098f,_0x15b613)=>(_0x19fed2,_0x13f246)=>_0x15b613(_0x19fed2,_0x13f246,_0x26098f);let Le=class extends _0xfd192d{constructor(_0x40adcd,_0x271ebd,_0x12512){const _0x4e3cc1=_0x64618b;super(),_(this,'_cachedData',new Map()),_(this,_0x4e3cc1(0x24c),new Map()),_(this,_0x4e3cc1(0x216),!0x1),(this['_configService']=_0x40adcd,this[_0x4e3cc1(0x18a)]=_0x271ebd,this[_0x4e3cc1(0x192)]=_0x12512);}[_0x64618b(0x214)](){const _0x58dd65=_0x64618b;this[_0x58dd65(0x216)]=!0x0;}[_0x64618b(0x209)](){const _0x431e4c=_0x64618b;this[_0x431e4c(0x216)]=!0x1;}get['saveTaskMap'](){const _0x4f74af=_0x64618b;return this[_0x4f74af(0x24c)];}[_0x64618b(0x23e)](){const _0x59181a=_0x64618b;this[_0x59181a(0x1a1)]()[_0x59181a(0x289)](()=>super['dispose']());}async[_0x64618b(0x1ab)](_0x2ce294){const _0xff584d=_0x64618b;return this[_0xff584d(0x216)]?null:this[_0xff584d(0x18a)][_0xff584d(0x16b)](_0x284f5a(_0x2ce294));}async['saveOfflineData'](_0x2c9a99,_0x1632ea){const _0xcf1576=_0x64618b;return!!this[_0xcf1576(0x18a)][_0xcf1576(0x293)](_0x2c9a99,_0x1632ea);}[_0x64618b(0x28b)](_0x115a92,_0x5722bd,_0x4bdd2e,_0x2baeab){const _0x196f8f=_0x64618b,_0x43e01a=this[_0x196f8f(0x192)]['getCurrentRevOfUnit'](_0x115a92);this['_cachedData'][_0x196f8f(0x21b)](_0x115a92,{'unitID':_0x115a92,'type':_0x5722bd,'awaitingChangeset':_0x4bdd2e,'mutations':_0x2baeab,'rev':_0x43e01a}),this[_0x196f8f(0x24c)]['has'](_0x115a92)||this[_0x196f8f(0x217)](_0x115a92);}[_0x64618b(0x217)](_0x422dad){const _0x2a5c36=_0x64618b,_0x44bed8=this[_0x2a5c36(0x17b)]();_0x44bed8===0x0?this[_0x2a5c36(0x2f4)](_0x422dad):this[_0x2a5c36(0x24c)]['set'](_0x422dad,setTimeout(()=>this[_0x2a5c36(0x2f4)](_0x422dad),_0x44bed8));}[_0x64618b(0x17b)](){const _0x433497=_0x64618b;var _0x4bf737;return(_0x4bf737=this[_0x433497(0x20c)][_0x433497(0x2f3)](_0x55e399))!=null?_0x4bf737:_0x2b2211;}['_saveCache'](_0xe080fd){const _0x1125ca=_0x64618b,_0x48b41a=this['_saveTaskMap'][_0x1125ca(0x23c)](_0xe080fd);return _0x48b41a!==void 0x0&&window[_0x1125ca(0x19c)](_0x48b41a),this[_0x1125ca(0x18a)]['setItem'](_0x284f5a(_0xe080fd),this[_0x1125ca(0x238)][_0x1125ca(0x23c)](_0xe080fd))['then'](()=>this[_0x1125ca(0x24c)]['delete'](_0xe080fd));}async[_0x64618b(0x1a1)](){const _0x733634=_0x64618b,_0x3ecf80=[];this[_0x733634(0x24c)][_0x733634(0x25f)]((_0x1cdf77,_0x1b8b9f)=>{const _0x58b5b8=_0x733634;window[_0x58b5b8(0x19c)](_0x1cdf77),_0x3ecf80['push'](this['_saveCache'](_0x1b8b9f)[_0x58b5b8(0x289)](()=>{const _0x18c8c1=_0x58b5b8;this['_saveTaskMap'][_0x18c8c1(0x141)](_0x1b8b9f);}));}),await Promise[_0x733634(0x260)](_0x3ecf80);}};Le=_n([Ee(0x0,_0x8e7106),Ee(0x1,_0x2b41b1),Ee(0x2,_0x5033cb(_0x1996cf))],Le);class hn extends _0x4ddff1{constructor(){const _0x1f063a=_0x64618b;super(),_(this,'urlChange$'),this[_0x1f063a(0x231)]=_0x282fe4(window,_0x1f063a(0x2e8))[_0x1f063a(0x25e)](_0xf9f0d5(this[_0x1f063a(0x1a6)]),_0xa8cb90(0x1),_0x203496(void 0x0));}[_0x64618b(0x2d1)](_0x2e271f,_0x231da2,_0x309ed0=!0x1){const _0x5effce=_0x64618b,_0x114238=new URL(window['location'][_0x5effce(0x24b)]);_0x114238[_0x5effce(0x15c)][_0x5effce(0x21b)](_0x2e271f,_0x231da2),_0x309ed0?window[_0x5effce(0x1c4)]['replaceState']('','',_0x114238[_0x5effce(0x185)]()):window[_0x5effce(0x1c4)]['pushState']('','',_0x114238[_0x5effce(0x185)]());}[_0x64618b(0x14b)](_0x57641d,_0x516c76=!0x1){const _0x23cc7b=_0x64618b,_0x178d50=new URL(window[_0x23cc7b(0x221)][_0x23cc7b(0x24b)]);_0x178d50[_0x23cc7b(0x15c)][_0x23cc7b(0x141)](_0x57641d),_0x516c76?window[_0x23cc7b(0x1c4)][_0x23cc7b(0x1ad)]('','',_0x178d50[_0x23cc7b(0x185)]()):window[_0x23cc7b(0x1c4)][_0x23cc7b(0x160)]('','',_0x178d50[_0x23cc7b(0x185)]());}['getParam'](_0x1dbd16){const _0x2f51c3=_0x64618b;var _0x4a4694;return(_0x4a4694=new URL(window[_0x2f51c3(0x221)][_0x2f51c3(0x24b)])[_0x2f51c3(0x15c)][_0x2f51c3(0x23c)](_0x1dbd16))!=null?_0x4a4694:void 0x0;}}var un=Object[_0x64618b(0x2b9)],dn=Object[_0x64618b(0x1bc)],fn=(_0x4ecb24,_0x293667,_0x5db3c9)=>_0x293667 in _0x4ecb24?un(_0x4ecb24,_0x293667,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5db3c9}):_0x4ecb24[_0x293667]=_0x5db3c9,Sn=(_0x12c245,_0xf3f393,_0xc1553a,_0x64b08)=>{for(var _0x305299=_0x64b08>0x1?void 0x0:_0x64b08?dn(_0xf3f393,_0xc1553a):_0xf3f393,_0x207623=_0x12c245['length']-0x1,_0x4e2d6b;_0x207623>=0x0;_0x207623--)(_0x4e2d6b=_0x12c245[_0x207623])&&(_0x305299=_0x4e2d6b(_0x305299)||_0x305299);return _0x305299;},Oe=(_0x5d1c7a,_0x5ed2bf)=>(_0x1700d0,_0x214fea)=>_0x5ed2bf(_0x1700d0,_0x214fea,_0x5d1c7a),mn=(_0x4762d3,_0xd9f592,_0x200397)=>fn(_0x4762d3,_0xd9f592+'',_0x200397);const In='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ae=class extends _0x2c548a{constructor(_0xd5dda5=et,_0x442e69,_0x2366ae,_0x47d079){const _0xbdef76=_0x64618b;super(),this[_0xbdef76(0x311)]=_0xd5dda5,this[_0xbdef76(0x342)]=_0x442e69,this[_0xbdef76(0x30c)]=_0x2366ae,this[_0xbdef76(0x20c)]=_0x47d079;const {..._0x4e47b9}=_0x32f801({},et,this[_0xbdef76(0x311)]);this[_0xbdef76(0x20c)][_0xbdef76(0x331)](Zi,_0x4e47b9);}[_0x64618b(0x314)](){const _0x196849=_0x64618b;this['_registerDependencies'](),this[_0x196849(0x2d0)]();}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x33db6b=_0x64618b;var _0x40030f;const _0x37616a=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x405659,{'useClass':_0xefa18a}],[_0x212ecf,{'useClass':Le}],[te],[ae],[se],[H],[Ne],[ie]];_0x1bad60(this['_injector'],_0x10af78(_0x37616a,(_0x40030f=this['_config'])==null?void 0x0:_0x40030f[_0x33db6b(0x29f)]));}[_0x64618b(0x246)](){const _0xd5f220=_0x64618b;this[_0xd5f220(0x241)](this[_0xd5f220(0x342)][_0xd5f220(0x2f9)](_0x55218d[_0xd5f220(0x1d0)],[we])),this[_0xd5f220(0x241)](this[_0xd5f220(0x342)]['registerRenderModule'](_0x55218d[_0xd5f220(0x258)],[Pe]));}[_0x64618b(0x2d0)](){const _0x3bbcf3=_0x64618b;_0x55a510(this[_0x3bbcf3(0x30c)],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x64618b(0x285),In),Ae=Sn([_0x1a8199(_0x420057),Oe(0x1,_0x479a8),Oe(0x2,_0x5033cb(_0x5d0444)),Oe(0x3,_0x8e7106)],Ae);var gn=Object[_0x64618b(0x1bc)],vn=(_0x969fff,_0x23ed0a,_0x288f41,_0x36d990)=>{const _0x1a5c3c=_0x64618b;for(var _0x1e3461=_0x36d990>0x1?void 0x0:_0x36d990?gn(_0x23ed0a,_0x288f41):_0x23ed0a,_0x2c6583=_0x969fff[_0x1a5c3c(0x148)]-0x1,_0x208995;_0x2c6583>=0x0;_0x2c6583--)(_0x208995=_0x969fff[_0x2c6583])&&(_0x1e3461=_0x208995(_0x1e3461)||_0x1e3461);return _0x1e3461;},K=(_0x38b654,_0x14e86d)=>(_0x5dd153,_0x5dd646)=>_0x14e86d(_0x5dd153,_0x5dd646,_0x38b654);let st=class extends _0x2082c4{constructor(_0x28ffbd,_0x4af564,_0x3483e0,_0x4d3c80,_0x5c30ed){super(_0x28ffbd,_0x4af564,_0x3483e0,_0x4d3c80,_0x5c30ed);}async[_0x64618b(0x2fb)](_0x1be33f){const _0x42843f=_0x64618b,_0x152ce0=await this[_0x42843f(0x2ea)](),_0xea7fc8=this[_0x42843f(0x1f9)](_0x1be33f,_0x152ce0);return this[_0x42843f(0x225)](_0xea7fc8);}[_0x64618b(0x1f9)](_0x5c3e2f,_0x22de8e){const _0x5e083f=_0x64618b,_0x103cab=typeof window>'u'?new URL(_0x5c3e2f):new URL(_0x5c3e2f,window[_0x5e083f(0x221)][_0x5e083f(0x2ff)]);_0x103cab[_0x5e083f(0x15c)][_0x5e083f(0x21b)](_0x5e083f(0x1dd),_0x22de8e);const _0x3c364b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5e083f(0x221)][_0x5e083f(0x2c7)]);return _0x3c364b['get'](_0x5e083f(0x205))&&_0x103cab[_0x5e083f(0x15c)][_0x5e083f(0x21b)](_0x5e083f(0x205),_0x3c364b['get']('runId')),_0x103cab[_0x5e083f(0x185)]();}async[_0x64618b(0x2ea)](){const _0x37cddc=_0x64618b;var _0x53ecd6,_0x2118ed,_0xd21ce6;const _0x296b9a=this[_0x37cddc(0x20c)][_0x37cddc(0x2f3)](_0x4e72ac),_0x161a7d=(_0x53ecd6=_0x296b9a==null?void 0x0:_0x296b9a[_0x37cddc(0x319)])!=null?_0x53ecd6:_0x55056a;return(_0xd21ce6=(_0x2118ed=(await this['_httpService'][_0x37cddc(0x23c)](_0x161a7d,{'headers':{'Content-Type':_0x37cddc(0x150)}}))['body'])==null?void 0x0:_0x2118ed[_0x37cddc(0x284)])!=null?_0xd21ce6:'';}};st=vn([K(0x0,_0x5033cb(_0x5d0444)),K(0x1,_0x5033cb(_0x511497)),K(0x2,_0x8e7106),K(0x3,_0x2b7a43),K(0x4,_0x3e1e1d)],st);const it=0x7530,nt='ACTIVE_UNIT_EVENT_CHANNEL';class jn extends _0xfd192d{constructor(){const _0x2ec813=_0x64618b;super(),_(this,_0x2ec813(0x2da),_0x26dde8()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x2ec813(0x14c),null),_(this,_0x2ec813(0x261),new Map()),_(this,_0x2ec813(0x1f4),new Map()),this['_init']();}['dispose'](){const _0x464199=_0x64618b;super['dispose'](),this[_0x464199(0x261)]['forEach']((_0x397cc8,_0x54ba76)=>this[_0x464199(0x2e7)](_0x54ba76)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x464199(0x14c)]);}[_0x64618b(0x265)](_0x5d6a05){const _0x3770f1=_0x64618b;return this['_ensureSubject'](_0x5d6a05)[_0x3770f1(0x25e)](_0x33ccb0());}[_0x64618b(0x27c)](_0x58c3f2){const _0x32a199=_0x64618b;this[_0x32a199(0x1e2)][_0x32a199(0x317)]===0x0&&this[_0x32a199(0x1cd)](),this[_0x32a199(0x1e2)][_0x32a199(0x29e)](_0x58c3f2),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x58c3f2],'isForwarded':!0x1});}['disposeUnit'](_0x5d579d){const _0x1159db=_0x64618b;this[_0x1159db(0x1e2)]['delete'](_0x5d579d),this[_0x1159db(0x1e2)][_0x1159db(0x317)]===0x0&&this[_0x1159db(0x14c)]&&window[_0x1159db(0x26b)](this['_heartbeatTimer']);}[_0x64618b(0x2ab)](){const _0x5bb5c1=_0x64618b;this['disposeWithMe'](_0x467123(_0x282fe4(window,_0x5bb5c1(0x318))[_0x5bb5c1(0x1f0)](_0x2d732a=>{const _0x4d7e13=_0x5bb5c1;if(_0x2d732a['key']!==nt||!_0x2d732a['newValue'])return;const _0x15621b=JSON['parse'](_0x2d732a[_0x4d7e13(0x338)]);this[_0x4d7e13(0x1e4)](_0x15621b);}))),window[_0x5bb5c1(0x281)](_0x5bb5c1(0x161),()=>this[_0x5bb5c1(0x2ed)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5bb5c1(0x208)](this[_0x5bb5c1(0x1e2)])}));}[_0x64618b(0x1e4)](_0x484838){const _0x587f3c=_0x64618b;switch(_0x484838[_0x587f3c(0x243)]){case 0x0:this[_0x587f3c(0x232)](_0x484838);break;case 0x1:this['_handleLeaveEvent'](_0x484838);break;case 0x2:this['_handleHeartbeatEvent'](_0x484838);break;}}[_0x64618b(0x232)](_0x44078f){const _0x150a98=_0x64618b,{unitIDs:_0x18358b,memberID:_0x4b5a5c,isForwarded:_0x344661}=_0x44078f;_0x18358b['forEach'](_0x5127d6=>{const _0x4bdc67=_0x5700;if(!_0x344661&&this[_0x4bdc67(0x1b6)][_0x4bdc67(0x1ef)](_0x5127d6)&&this['_ensureSubject'](_0x5127d6)[_0x4bdc67(0x343)](_0x201f5e[_0x4bdc67(0x33e)]),!this[_0x4bdc67(0x1b6)][_0x4bdc67(0x1ef)](_0x5127d6)||!this['_unitOnClients']['get'](_0x5127d6)['has'](_0x4b5a5c)){const _0x4da56c=this[_0x4bdc67(0x1b6)][_0x4bdc67(0x23c)](_0x5127d6)||new Set();_0x4da56c[_0x4bdc67(0x29e)](_0x4b5a5c),this[_0x4bdc67(0x1b6)]['set'](_0x5127d6,_0x4da56c),this[_0x4bdc67(0x1d7)](_0x4b5a5c);}}),_0x344661||this[_0x150a98(0x2ed)]({'type':0x0,'memberID':this[_0x150a98(0x2da)],'unitIDs':[...this[_0x150a98(0x1e2)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3f770c){const _0x1e0f86=_0x64618b;this[_0x1e0f86(0x2e7)](_0x3f770c);const _0xef31a6=window[_0x1e0f86(0x1a5)](()=>{const _0x2df715=_0x1e0f86;this[_0x2df715(0x1b6)][_0x2df715(0x25f)](_0x3e89d4=>{const _0x4100e3=_0x2df715;_0x3e89d4[_0x4100e3(0x141)](_0x3f770c);});},it*0x2);this[_0x1e0f86(0x261)][_0x1e0f86(0x21b)](_0x3f770c,_0xef31a6);}[_0x64618b(0x2e7)](_0x1b2040){const _0x521824=_0x64618b;if(this[_0x521824(0x261)]['has'](_0x1b2040)){const _0x59e5c6=this[_0x521824(0x261)][_0x521824(0x23c)](_0x1b2040);_0x59e5c6&&window[_0x521824(0x19c)](_0x59e5c6),this[_0x521824(0x261)][_0x521824(0x21b)](_0x1b2040,null);}}[_0x64618b(0x147)](_0x4a00b7){const _0x351fe1=_0x64618b,{memberID:_0xfe3577,unitIDs:_0x4c55e6}=_0x4a00b7;_0x4c55e6[_0x351fe1(0x25f)](_0x9ba480=>{const _0x33b333=_0x351fe1;var _0x51ed50;const _0x19689d=this[_0x33b333(0x1b6)][_0x33b333(0x23c)](_0x9ba480);_0x19689d&&(_0x19689d[_0x33b333(0x141)](_0xfe3577),(_0x51ed50=this[_0x33b333(0x27a)](_0x9ba480))==null||_0x51ed50['next'](_0x19689d[_0x33b333(0x317)]===0x0?_0x201f5e[_0x33b333(0x315)]:_0x201f5e[_0x33b333(0x33e)]));}),this[_0x351fe1(0x2e7)](_0xfe3577);}[_0x64618b(0x282)](_0x17b0ab){const _0x57e1a5=_0x64618b;this[_0x57e1a5(0x1d7)](_0x17b0ab[_0x57e1a5(0x2bf)]);}['_send'](_0x1e1ad8){const _0x18b962=_0x64618b;localStorage[_0x18b962(0x293)](nt,JSON[_0x18b962(0x235)](_0x1e1ad8));}[_0x64618b(0x1cd)](){const _0x375466=_0x64618b;this['_heartbeatTimer']=window[_0x375466(0x143)](()=>{const _0x5e222c=_0x375466;this[_0x5e222c(0x2ed)]({'type':0x2,'memberID':this['_id']});},it);}[_0x64618b(0x27a)](_0x5cdb74){const _0xd94ab0=_0x64618b;return this['_unitStatus'][_0xd94ab0(0x1ef)](_0x5cdb74)||this['_unitStatus'][_0xd94ab0(0x21b)](_0x5cdb74,new _0x3d4fde(_0x201f5e['NO_OTHER_CLIENTS_EDITING'])),this[_0xd94ab0(0x1f4)][_0xd94ab0(0x23c)](_0x5cdb74);}}var Mt=(_0x23fbbc=>(_0x23fbbc[_0x23fbbc[_0x64618b(0x259)]=0x0]=_0x64618b(0x259),_0x23fbbc[_0x23fbbc['OK']=0x1]='OK',_0x23fbbc[_0x23fbbc[_0x64618b(0x2ca)]=0x2]=_0x64618b(0x2ca),_0x23fbbc[_0x23fbbc['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x23fbbc[_0x23fbbc['NOT_FOUND']=0x4]=_0x64618b(0x18c),_0x23fbbc[_0x23fbbc[_0x64618b(0x2a9)]=0x5]=_0x64618b(0x2a9),_0x23fbbc[_0x23fbbc[_0x64618b(0x23a)]=0x6]=_0x64618b(0x23a),_0x23fbbc[_0x23fbbc[_0x64618b(0x28e)]=0x7]=_0x64618b(0x28e),_0x23fbbc[_0x23fbbc['TOO_MANY_REQUESTS']=0x8]=_0x64618b(0x1fd),_0x23fbbc[_0x23fbbc['COMPLETION_FINISHED']=0x9]=_0x64618b(0x2df),_0x23fbbc[_0x23fbbc['LOGIN_FAILED']=0xa]=_0x64618b(0x276),_0x23fbbc[_0x23fbbc['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x64618b(0x247),_0x23fbbc[_0x23fbbc[_0x64618b(0x1c5)]=0x1771]=_0x64618b(0x1c5),_0x23fbbc[_0x23fbbc['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x64618b(0x2c5),_0x23fbbc[_0x23fbbc[_0x64618b(0x21d)]=0x1773]=_0x64618b(0x21d),_0x23fbbc[_0x23fbbc[_0x64618b(0x2d2)]=0x1b59]=_0x64618b(0x2d2),_0x23fbbc[_0x23fbbc['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x64618b(0x2b6),_0x23fbbc[_0x23fbbc['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x64618b(0x157),_0x23fbbc[_0x23fbbc[_0x64618b(0x2b0)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x23fbbc[_0x23fbbc[_0x64618b(0x32a)]=0x1b5d]='APPLY_DUPLICATED',_0x23fbbc[_0x23fbbc[_0x64618b(0x31e)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x23fbbc[_0x23fbbc[_0x64618b(0x301)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x23fbbc[_0x23fbbc['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x64618b(0x168),_0x23fbbc[_0x23fbbc[_0x64618b(0x28d)]=0x232b]=_0x64618b(0x28d),_0x23fbbc[_0x23fbbc['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x23fbbc[_0x23fbbc[_0x64618b(0x257)]=0x232d]=_0x64618b(0x257),_0x23fbbc[_0x23fbbc['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x64618b(0x30d),_0x23fbbc[_0x23fbbc[_0x64618b(0x2db)]=0x2712]=_0x64618b(0x2db),_0x23fbbc[_0x23fbbc[_0x64618b(0x170)]=0x2713]=_0x64618b(0x170),_0x23fbbc[_0x23fbbc[_0x64618b(0x27e)]=0x2714]=_0x64618b(0x27e),_0x23fbbc[_0x23fbbc['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x64618b(0x16c),_0x23fbbc[_0x23fbbc['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x64618b(0x1d1),_0x23fbbc[_0x23fbbc[_0x64618b(0x183)]=0x271c]=_0x64618b(0x183),_0x23fbbc[_0x23fbbc[_0x64618b(0x14d)]=0x271d]=_0x64618b(0x14d),_0x23fbbc[_0x23fbbc['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x64618b(0x329),_0x23fbbc[_0x23fbbc[_0x64618b(0x2a1)]=0x271f]=_0x64618b(0x2a1),_0x23fbbc[_0x23fbbc[_0x64618b(0x2e1)]=0x2af9]=_0x64618b(0x2e1),_0x23fbbc[_0x23fbbc[_0x64618b(0x267)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x23fbbc[_0x23fbbc[_0x64618b(0x2cf)]=0x2ee2]='INVALID_INVITE_CODE',_0x23fbbc[_0x23fbbc[_0x64618b(0x152)]=0x2ee3]=_0x64618b(0x152),_0x23fbbc[_0x23fbbc[_0x64618b(0x1b5)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x23fbbc[_0x23fbbc[_0x64618b(0x2dd)]=0x2ee5]=_0x64618b(0x2dd),_0x23fbbc[_0x23fbbc[_0x64618b(0x1b1)]=0x32c9]=_0x64618b(0x1b1),_0x23fbbc[_0x23fbbc[_0x64618b(0x219)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x23fbbc[_0x23fbbc[_0x64618b(0x189)]=0x32cb]=_0x64618b(0x189),_0x23fbbc[_0x23fbbc[_0x64618b(0x339)]=-0x1]=_0x64618b(0x339),_0x23fbbc))(Mt||{}),pn=Object[_0x64618b(0x1bc)],Cn=(_0x595da6,_0x56d26e,_0x30c418,_0x24ad6f)=>{const _0x297c52=_0x64618b;for(var _0x1a0ef2=_0x24ad6f>0x1?void 0x0:_0x24ad6f?pn(_0x56d26e,_0x30c418):_0x56d26e,_0x5b734e=_0x595da6[_0x297c52(0x148)]-0x1,_0x41d1b7;_0x5b734e>=0x0;_0x5b734e--)(_0x41d1b7=_0x595da6[_0x5b734e])&&(_0x1a0ef2=_0x41d1b7(_0x1a0ef2)||_0x1a0ef2);return _0x1a0ef2;},be=(_0x56f59e,_0xb55671)=>(_0x1ef4e2,_0x186192)=>_0xb55671(_0x1ef4e2,_0x186192,_0x56f59e);let rt=class extends _0xfd192d{constructor(_0x56e794,_0x210ad3,_0x4b4f7c){const _0x4542f6=_0x64618b;super(),this[_0x4542f6(0x18e)]=_0x56e794,this['_httpService']=_0x210ad3,this[_0x4542f6(0x20c)]=_0x4b4f7c;}async['runOnServer'](_0x4d0dc1,_0x196969,_0x125e24,..._0x3349a3){const _0x3e2d6b=_0x64618b;var _0x349785,_0x4337a6,_0x1753ae,_0x5ef8cb;const _0x59f5c5=this[_0x3e2d6b(0x18e)][_0x3e2d6b(0x30e)]();if(!_0x59f5c5)throw new Error(_0x3e2d6b(0x1f8));const _0x1c0f3c=((_0x349785=this['_configService'][_0x3e2d6b(0x2f3)](_0x2ee7f8))!=null?_0x349785:_0x4128ca)+'/'+_0x4d0dc1+_0x3e2d6b(0x330)+_0x196969,_0xc04bc8=new URL(window[_0x3e2d6b(0x221)][_0x3e2d6b(0x24b)]),_0x49a994={'scriptId':_0x4d0dc1,'runId':(_0x4337a6=_0xc04bc8['searchParams'][_0x3e2d6b(0x23c)](_0x3e2d6b(0x205)))!=null?_0x4337a6:'','function':_0x196969,'unitId':_0x59f5c5[_0x3e2d6b(0x333)](),'argsOfFunction':JSON[_0x3e2d6b(0x235)](_0x3349a3),'invokeId':(_0x1753ae=_0x125e24[_0x3e2d6b(0x234)])!=null?_0x1753ae:'','executionId':(_0x5ef8cb=_0x125e24['executionId'])!=null?_0x5ef8cb:''};try{const _0x5aaea8=await this[_0x3e2d6b(0x271)][_0x3e2d6b(0x1fe)](_0x1c0f3c,{'body':_0x49a994});return _0x5aaea8[_0x3e2d6b(0x1ea)][_0x3e2d6b(0x2de)]&&_0x5aaea8[_0x3e2d6b(0x1ea)][_0x3e2d6b(0x2de)][_0x3e2d6b(0x2f5)]!==Mt['OK']?_0x3e2d6b(0x18f):_0x5aaea8[_0x3e2d6b(0x1ea)][_0x3e2d6b(0x269)];}catch{return _0x3e2d6b(0x18f);}}};rt=Cn([be(0x0,_0x56a9dd),be(0x1,_0x5033cb(_0x511497)),be(0x2,_0x8e7106)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Vi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,Li as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,jn as WebBrowserSingleActiveUnitService,hn as WebURLService};
@@ -1 +1 @@
1
- function _0x31d7(_0x115865,_0x1e0131){const _0x246d34=_0x246d();return _0x31d7=function(_0x31d717,_0x5d5226){_0x31d717=_0x31d717-0x8f;let _0x52bbc2=_0x246d34[_0x31d717];return _0x52bbc2;},_0x31d7(_0x115865,_0x1e0131);}const _0x3f590a=_0x31d7;(function(_0x34ea74,_0x25fc62){const _0xed9e62=_0x31d7,_0x3b4b45=_0x34ea74();while(!![]){try{const _0x49f3e9=-parseInt(_0xed9e62(0x95))/0x1+-parseInt(_0xed9e62(0x93))/0x2+-parseInt(_0xed9e62(0x97))/0x3+parseInt(_0xed9e62(0x8f))/0x4+-parseInt(_0xed9e62(0x9b))/0x5+parseInt(_0xed9e62(0x90))/0x6+parseInt(_0xed9e62(0x94))/0x7;if(_0x49f3e9===_0x25fc62)break;else _0x3b4b45['push'](_0x3b4b45['shift']());}catch(_0x4bd115){_0x3b4b45['push'](_0x3b4b45['shift']());}}}(_0x246d,0xc1dce));const e={'collab-client':{'tooltip':{'reconnect':_0x3f590a(0x9a)}},'collabStatus':{'fetchMiss':_0x3f590a(0x91),'conflict':_0x3f590a(0x98),'notCollab':_0x3f590a(0x9f),'synced':_0x3f590a(0x9d),'syncing':'Syncing...','offline':_0x3f590a(0x96)},'session':{'connection-failed':_0x3f590a(0x9e),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x3f590a(0x9c),'collaboration-timeout':_0x3f590a(0xa2)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x3f590a(0x99)},'permission':{'title':'Authentication\x20Error','content':_0x3f590a(0xa1)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x3f590a(0xa0)},'auth':{'needGotoLoginAlert':_0x3f590a(0x92)}};export{e as default};function _0x246d(){const _0x363718=['Syncing\x20server\x20data...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','1461898nJBsEN','19280716OJBcbf','1432008LTiPuu','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','4498212xCHvaG','Edit\x20conflicts','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Click\x20to\x20Reconnect','166940dHEOiP','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Synced','Connection\x20failed,\x20please\x20check\x20your\x20network.','Local\x20file','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','4587820GHGQKu','3530808eXmHwR'];_0x246d=function(){return _0x363718;};return _0x246d();}
1
+ function _0x56c9(_0x1e6698,_0x5eae86){const _0x2eaf6b=_0x2eaf();return _0x56c9=function(_0x56c91c,_0x2deb6b){_0x56c91c=_0x56c91c-0x1be;let _0x519633=_0x2eaf6b[_0x56c91c];return _0x519633;},_0x56c9(_0x1e6698,_0x5eae86);}function _0x2eaf(){const _0x2c17fe=['Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Click\x20to\x20Reconnect','1512pHvfuu','35511bPDphN','Authentication\x20Error','1060225jObFJP','Edit\x20conflicts','11UkQuUu','9936ocqhdE','6OMGvjw','530201zcVxbK','Synced','Syncing...','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','4143SzklKa','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','1807470WaqQkn','24YWEjRL','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing\x20server\x20data...','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','1602276zMmTxP','42OMVuci','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'];_0x2eaf=function(){return _0x2c17fe;};return _0x2eaf();}const _0x58d217=_0x56c9;(function(_0x1a5614,_0x4681ec){const _0x45f6c9=_0x56c9,_0x580b62=_0x1a5614();while(!![]){try{const _0xa8b6d3=-parseInt(_0x45f6c9(0x1d0))/0x1*(parseInt(_0x45f6c9(0x1bf))/0x2)+-parseInt(_0x45f6c9(0x1c5))/0x3*(-parseInt(_0x45f6c9(0x1d4))/0x4)+parseInt(_0x45f6c9(0x1c7))/0x5+-parseInt(_0x45f6c9(0x1cb))/0x6*(-parseInt(_0x45f6c9(0x1cc))/0x7)+parseInt(_0x45f6c9(0x1c4))/0x8*(-parseInt(_0x45f6c9(0x1ca))/0x9)+parseInt(_0x45f6c9(0x1d3))/0xa+-parseInt(_0x45f6c9(0x1c9))/0xb*(parseInt(_0x45f6c9(0x1be))/0xc);if(_0xa8b6d3===_0x4681ec)break;else _0x580b62['push'](_0x580b62['shift']());}catch(_0x2b8f96){_0x580b62['push'](_0x580b62['shift']());}}}(_0x2eaf,0x1af27));const e={'collab-client':{'tooltip':{'reconnect':_0x58d217(0x1c3)}},'collabStatus':{'fetchMiss':_0x58d217(0x1d6),'conflict':_0x58d217(0x1c8),'notCollab':'Local\x20file','synced':_0x58d217(0x1cd),'syncing':_0x58d217(0x1ce),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x58d217(0x1d7),'room-full':_0x58d217(0x1d2),'collaboration-timeout':_0x58d217(0x1c1)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x58d217(0x1cf)},'permission':{'title':_0x58d217(0x1c6),'content':_0x58d217(0x1d5)},'collaboration':{'single-unit':{'warning':_0x58d217(0x1c0)},'closeRoom':_0x58d217(0x1c2)},'auth':{'needGotoLoginAlert':_0x58d217(0x1d1)}};export{e as default};
@@ -1 +1 @@
1
- const _0x3f48bf=_0x2794;(function(_0x220531,_0x32553f){const _0x43fd69=_0x2794,_0x2338b5=_0x220531();while(!![]){try{const _0x2be07d=-parseInt(_0x43fd69(0xb3))/0x1+-parseInt(_0x43fd69(0xb2))/0x2*(-parseInt(_0x43fd69(0xbc))/0x3)+-parseInt(_0x43fd69(0xbe))/0x4*(parseInt(_0x43fd69(0xba))/0x5)+-parseInt(_0x43fd69(0xc0))/0x6+parseInt(_0x43fd69(0xb7))/0x7+-parseInt(_0x43fd69(0xaf))/0x8*(parseInt(_0x43fd69(0xc6))/0x9)+parseInt(_0x43fd69(0xb1))/0xa*(parseInt(_0x43fd69(0xc7))/0xb);if(_0x2be07d===_0x32553f)break;else _0x2338b5['push'](_0x2338b5['shift']());}catch(_0x533c0f){_0x2338b5['push'](_0x2338b5['shift']());}}}(_0x4869,0x19238));function _0x2794(_0x345c68,_0x4d029a){const _0x48699a=_0x4869();return _0x2794=function(_0x2794e2,_0x52c103){_0x2794e2=_0x2794e2-0xaf;let _0x230fac=_0x48699a[_0x2794e2];return _0x230fac;},_0x2794(_0x345c68,_0x4d029a);}const o={'collab-client':{'tooltip':{'reconnect':'برای\x20اتصال\x20مجدد\x20کلیک\x20کنید'}},'collabStatus':{'fetchMiss':_0x3f48bf(0xc2),'conflict':_0x3f48bf(0xc4),'notCollab':_0x3f48bf(0xc5),'synced':_0x3f48bf(0xb0),'syncing':_0x3f48bf(0xb4),'offline':'آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند'},'session':{'connection-failed':_0x3f48bf(0xb5),'will-retry':_0x3f48bf(0xb6),'room-full':_0x3f48bf(0xc3),'collaboration-timeout':_0x3f48bf(0xb8)},'conflict':{'title':_0x3f48bf(0xbd),'content':_0x3f48bf(0xbb)},'permission':{'title':'خطای\x20اعتبارسنجی','content':_0x3f48bf(0xb9)},'collaboration':{'single-unit':{'warning':'شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.'},'closeRoom':_0x3f48bf(0xc1)},'auth':{'needGotoLoginAlert':_0x3f48bf(0xbf)}};function _0x4869(){const _0x4099a6=['108MKNIEO','11uINVnD','15992vHveFI','همگام\x20سازی','795510GoIJQy','124238gbzfCi','16950ZjETpU','در\x20حال\x20همگام\x20سازی...','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','69433pxCvPj','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','5UXSRIZ','یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','3OOOpRL','تداخل\x20همکاری','23252GhwazE','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','11220owzzBN','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','تداخل\x20ویرایش','پرونده\x20محلی'];_0x4869=function(){return _0x4099a6;};return _0x4869();}export{o as default};
1
+ const _0x294036=_0x11d6;function _0x5ef9(){const _0xff84d4=['اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','همگام\x20سازی','10cUfHHq','خطای\x20اعتبارسنجی','44apPoNJ','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','8YYWxzg','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','تداخل\x20همکاری','320jbAIdd','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','10280844pmVMXM','1442952fvEYIE','در\x20حال\x20همگام\x20سازی...','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','پرونده\x20محلی','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','3130408yuAPEn','143352wkYNeI','384593ciGTqA','2549068MbjUgP','21oqbUwx','4838436LWoOtR'];_0x5ef9=function(){return _0xff84d4;};return _0x5ef9();}function _0x11d6(_0x5bc4b8,_0x3ad377){const _0x5ef9f3=_0x5ef9();return _0x11d6=function(_0x11d653,_0x2ef0a7){_0x11d653=_0x11d653-0x141;let _0x166449=_0x5ef9f3[_0x11d653];return _0x166449;},_0x11d6(_0x5bc4b8,_0x3ad377);}(function(_0x4b9087,_0x284cbd){const _0x1fbb3f=_0x11d6,_0x49e161=_0x4b9087();while(!![]){try{const _0x3e6376=parseInt(_0x1fbb3f(0x141))/0x1*(-parseInt(_0x1fbb3f(0x14b))/0x2)+-parseInt(_0x1fbb3f(0x153))/0x3+parseInt(_0x1fbb3f(0x142))/0x4+-parseInt(_0x1fbb3f(0x150))/0x5*(-parseInt(_0x1fbb3f(0x15a))/0x6)+-parseInt(_0x1fbb3f(0x143))/0x7*(-parseInt(_0x1fbb3f(0x159))/0x8)+-parseInt(_0x1fbb3f(0x152))/0x9*(-parseInt(_0x1fbb3f(0x147))/0xa)+-parseInt(_0x1fbb3f(0x149))/0xb*(parseInt(_0x1fbb3f(0x144))/0xc);if(_0x3e6376===_0x284cbd)break;else _0x49e161['push'](_0x49e161['shift']());}catch(_0x3622fd){_0x49e161['push'](_0x49e161['shift']());}}}(_0x5ef9,0xcf9e6));const o={'collab-client':{'tooltip':{'reconnect':'برای\x20اتصال\x20مجدد\x20کلیک\x20کنید'}},'collabStatus':{'fetchMiss':_0x294036(0x14c),'conflict':'تداخل\x20ویرایش','notCollab':_0x294036(0x156),'synced':_0x294036(0x146),'syncing':_0x294036(0x154),'offline':'آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند'},'session':{'connection-failed':_0x294036(0x158),'will-retry':_0x294036(0x145),'room-full':_0x294036(0x14d),'collaboration-timeout':_0x294036(0x157)},'conflict':{'title':_0x294036(0x14f),'content':'یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'permission':{'title':_0x294036(0x148),'content':_0x294036(0x14e)},'collaboration':{'single-unit':{'warning':_0x294036(0x155)},'closeRoom':_0x294036(0x151)},'auth':{'needGotoLoginAlert':_0x294036(0x14a)}};export{o as default};