@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202506081606 → 0.8.0-nightly.202506091607

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/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4d59(){const _0x39329b=['univer-flex\x20univer-mr-2\x20univer-text-xl','_handleLeaveEvent','selection','479214vYuljj','getTypeOfUnitDisposed$','50YOWHIi','WebBrowserSingleActiveUnitService','set','from','unitId','CollaborationStatus','startColumn','INVITE_CODE_HAS_BEEN_UES','UniverProCollaborationClient','save','getOwnPropertySymbols','ILocalCacheService','collab-text-anchor-','merge','PERMISSION_DENIED','RichTextEditingMutation','sessionStatus$','disableLocalCache','IConfigService','HTTPService','getCurrentRevOfUnit','M0\x200H16V16H0z','collab-rect-range-','SYNCED','BrowserCollaborationSocketService','_imageIoService','debounceTime','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','6561312bqylFM','yellow.400','evenodd','onCommandExecuted','blue.400','session.collaboration-timeout','onStarting','getViewport','Disposable','_handleJoinEvent','skeleton','setShapeProps','displayName','InsertRowCommandId','RemoveRowCommandId','distinctUntilChanged','SheetSkeletonManagerService','#FFF','_removeClearOtherTimer','getCoordByCell','ILocalStorageService','0\x200\x2016\x2016','_scheduleSaving','getUndoRedoMutationParamsCache','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','INVALID_INVITE_CODE','_shapes','url(#on-line-icon_clip0_910_349)','clearTimeout','use','debug','on-line-icon_clip0_910_349','ranges','executeCommand','extend','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_dataLoaderService','UNIVER_SHEET','isTransformMutationFailure','saveOfflineData','deserializeRangeWithSheet','UniverDrawing','_collaborationController','_doCreateSocket','@univerjs/docs-ui','RevisionService','activeSheet$','2160432VBGwfJ','DocSelectionManagerService','labelPosition','operators','permission.content','ColorKit','hide','transformStateCache','OnLineIcon','searchParams','undoState','runId','React','_registerRenderDependencies','subUnitId','_unitOnClients','UniverProCollaborationClientUi','path','white','handleDeleteRangeMoveUp','call','mergeOverrideWithDependencies','className','collaboration-client.offline-data-not-saved','_disabled','backgroundColor','collabStatus.notCollab','@univerjs/core','imageSourceType','_docStateChangeManagerService','SOCKET_FAILED','Rectangle','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getFocusedUnit','asObservable','DependentOn','NOT_COLLAB','CollaborationDataLoaderController','getTypeOfUnitAdded$','assign','CHANGESET_REVISION_CONFILICT','onPointerMove$','EffectRefRangId','@univerjs/engine-render','WebSocketService','setAlpha','function','_cachedData','then','result','@univerjs/sheets-ui','switchMap','fromEvent','unshift','OffLineIcon','getActiveSheet','replace','_docTransformStateCacheService','http://www.w3.org/2000/svg','collab-text-range-','url(#off-line-icon_clip0_910_343)','string','ACTIVE_UNIT_EVENT_CHANNEL','_name','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','fillRule','CONNECTOR_DATA_TOO_LARGE','ONLINE','cursorInfo$','getDocRanges','UniverDesign','DeleteRangeMoveUpCommandId','ticket','currentSkeleton$','_updateLocalCursor','@univerjs/drawing','getMember','LOGIN_FAILED','handleIRemoveRow','mapTo','clearInterval','_docSyncEditingCollabCursorService','_cursorShapes','propertyIsEnumerable','IRenderManagerService','Module','YUUMI_SUBSCRIPTION_NOT_FOUND','ICommandService','UniverCollaborationClientUIPlugin','runRefRangeMutations','getConfig','_assignedColors','subscribe','FromArray','UNRECOGNIZED','SetWorksheetActivateCommand','JOIN_ROOM_FAILED','dispose','CollaborationSessionService','WECHAT_HAS_BEEN_BOUND','createElement','fill','bottom','WebURLService','_onCursorUpdate','_roomMembers$','Workbook','Failed','SHEET_VIEWPORT_KEY','combineLatest','Shape','_cursor','Error','OFFLINE','concat','error','_id','syncEditingCollabCursor','pushState','colorChannel1','override','findNodePositionByCharIndex','deepClone','all','debounce','unitID','IImageIoService','collabStatus.synced','_commandService','children','SOCKET_FAILED_RETRY','isActive','PY_RUNTIME_SCRIPT_ERROR','_heartbeatTimer','SheetsSelectionsService','_refRangeService','_range','green.600','setItem','LocaleService','split','triggerDblclick','_logService','NOT_FOUND','getOwnPropertyDescriptor','_syncEditingCollabCursorService','isEditing','loadOfflineData','connectInjector','handleInsertRangeMoveRight','sheetId','_themeService','_docTransformIMECacheService','UniverUi','unload','values','_localeService','UNDEFINED','event$','dispose$','_saveCache','_initResize','Inject','post','Injector','next','_colorIndex','_localStorageService','entityInit$','prototype','IURLService','getCurrentSelections','2719440BNpZYX','_unitStatus','TRANSFORM_CHANGE_OBSERVABLE_TYPE','search','OTHER_CLIENTS_EDITING','rxjs/operators','_httpService','transformRemoteChangeset','forEach','@univerjs/design','SessionStatus','registerRenderModule','_notificationService','getCurrentUnitForType','_draw','off-line-icon','RemoteUniscriptService','replaceDocRanges','_colorAssignService','_startDocCollabCursor','height','OTHER_CLIENT_EDITING','@univerjs/ui','currentTheme$','getValue','includes','CollaborationUIEventId','479866AOyeEv','makeDirty','_transformUndoRedoStack','subscribeEvent','_collabCursorController','_context','_textBubble','_uiPartsService','redoState','startRow','startsWith','addObject','_status$','max','@univerjs/network','_initStatusListener','setParam','YUUMI_NO_CUBOID_FOR_QUESTION','getSheetObject','MoveRangeCommandId','BuiltInUIPart','Rect','status$','show','handleDeleteRangeMoveLeft','createInstance','get','_session','_getSheetObject','_sheetSkeletonManagerService','InsertColCommandId','div','_getAnchorBounding','_toggleOffline','eventID','rgba(255,\x20255,\x20255,\x200.01)','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','xlink:href','beginPath','useDependency','generateRandomId','sessionTicket','_injector','throttleTime','_messageService','_clearOtherTimers','stringify','SetTextSelectionsOperation','_cursorInfo$','exports','whenReady','range','...','UniverProCollaboration','restore','Warning','APPLY_PERMISSION_DENIED','transformMutation','mutations','_beforeCloseService','NodePositionConvertToRectRange','transformIMECache','addHandlerCallback','_refreshCollabCursors','1em','@univerjs/rpc','getItem','UniverRpc','href','AWAITING','_docSkeleton','DesktopCollaborationStatusDisplayController','_lastPointer','getActiveRange','find','RxDisposable','_collabSessionService','object','getOffsetConfig','getColorFromTheme','_render','IDocClipboardService','_getMergeRange','assignAColorForMemberID','measureText','push','storage','_drawTextRange','Unknown\x20user','_startSheetCollabCursor','_collaborationUIEventService','transformMutationsWithChangeset','getCollabCursors$','UNIVER_DOC','collabStatus.conflict','tag','setActiveRange','location','text','0\x200\x2017\x2016','source','/run/','DOC_RANGE_TYPE','UnitStatus','getUnitId','runOnServer','FETCH_MISS','_univerInstanceService','UniverCore','toDisposable','_handleHeartbeatEvent','INotificationService','LICENSE_IMPORT_SIZE_EXCEEDED','defineProperty','add','hovered','textRanges','@univerjs-pro/collaboration','sheetID','_initStatusComponent','code','onRendered','saveImage','UPDATE_CURSOR','docStateChange$','size','color','params','round','_entities','getAncestorScale','UniverSheetsUi','memberID','Vector2','collaboration.closeRoom','translate(.97)','invokeId','_handleEvent','ENSURE_SNAPSHOT_EXECUTION','getSkeleton','getStateCache','toString','svg','_memberService','drawWith','shareReplay','DeleteRangeMoveLeftCommandId','_revisionService','getUnhiddenWorksheets','MUTATION','top','_collabCursorState$','ThemeService','pipe','collabStatus.fetchMiss','USER_NOT_INVITED_CODE','_getSessionTicket','3gyHAmD','LOCAL_CACHE_INTERVAL_KEY','defs','INTERNAL_ERROR','_init','getCurrent','YUUMI_ALL_TABLES_IS_INVALID','clipPath','jsx','Tools','UniverNetwork','TOO_MANY_REQUESTS','_registerDependencies','defIds','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','onTransformChange$','toStringTag','CollaborationStatusDisplay','_transformHistoryAndStateStack','onLocalMutation','flatMap','length','forwardRef','registerRefRange','mask','SUBMIT_CHANGESET_TIMEOUT','amd','arc','_getSaveTimeout','url(#$1','isArray','UniverEngineRender','isTransformMutationsWithChangesetSuccess','DocSkeletonManagerService','red.300','_toggleOnline','_labelPosition','SNAPSHOT_HAS_BEEN_REMOVED','UniverDocs','handleInsertRow','_instanceService','_initEvent','setUndoRedoMutationParamsCache','UNAUTHENTICATED','ILogService','APPLY_NON_SEQUENTIAL_REVISION','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','idSuffix','_onRefRangeChange','fillStyle','_saveTaskMap','saveTaskMap','APPLY_REVISION_CONFILICT','_setupBeforeClosingHandler','init','@univerjs/docs','has','column','_drawAnchor','InsertRangeMoveDownCommandId','createSocket','@univerjs-pro/collaboration-client','replaceState','2845395PeLATl','RemoveColCommandId','black','_hideTimer','@univerjs/engine-formula','LICENSE_MAX_UNITS_EXCEEDED','COMPLETION_FINISHED','permission.title','icon','unsubscribe','application/json','filter','_updateCollabCursors','_drawRectRange','onMouseMove','_configService','getRenderById','_urlService','_docClipboardService','TEXT','_anchor','subunit','min','MessageType','INVITE_CODE_REQUIRED','_ensureSubject','_transformPreviousActiveRange','trim','INVITE_CODE_ALREADY_BOUND','UniverIcon','SNAPSHOT_INVALID_SNAPSHOT','indexOf','_removeCollabCursors','m2Prime','_entityInit$','touchDependencies','IUIPartsService','_cursors','createIdentifier','_backgroundColor','takeUntil','registerComponent','closePath','react/jsx-runtime','getLocalCacheKey','DocIMEInputManagerService','row','_createSocketURL','_initDependencies','_initEntityListener','IUniverInstanceService','updateOfflineData','COLORS','on-line-icon','getRangePointData','rxjs','setTimeout','_scheduleHeartbeat','getColor','_selfUnitIDs','CollaborationUIEventService','Tooltip','history','_getScale','_anchorDot','YUUMI_UNABLE_LOAD_URL','entries','UniverCollaborationClientPlugin','useRef','send','MemberService','data','urlChange$','_online','_handleHover','_document','currentColor','LICENSE_DISTRO_REJECTED','map','APPLY_REJECT','@univerjs/sheets','hasOwnProperty','_transformService','_updateURLWithCurrentState','APPLY_DUPLICATED','transformSelections','univerjs-icon\x20univerjs-icon-','MOBILE_HAS_BEEN_BOUND','requireSession','getUnitStatus$','_eventUnsubscribe','_renderManagerService','unit','YUUMI_RATE_OVER_LIMIT','_docTransformSelectionsService','delete','_localCacheService','BehaviorSubject','getUniverSheetInstance','INVALID_ARGUMENT','getCollabEntity$','executionId','loadUnit','_hover','_onCursorDelete','_scene','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','current','contains','handleInsertRangeMoveDown','popstate','pluginName','TEXT_RANGE_LAYER_INDEX','exhaustSavingTask','react','SetDocZoomRatioOperation','LICENSE_EXPORT_SIZE_EXCEEDED','roomMembers','ITransformService','some','setInterval','addObjects','removeParam','CollaborationController','focused$','setConfig','_color','fillText','CONFLICT','lineTo','CollaborationEvent','reconnect','endRow','4535608NYUwoM','resize','with','jsxs','getSheetBySheetId','_hovered','complete','session.will-retry','_updateSubUnitFromURLParams','useObservable','onPointerEnter$','m1Prime','UniverInstanceType','disposeWithMe','registerBeforeClose','collabCursorState$','wsSessionTicketUrl','cursorInfo','body','YUUMI_AI_RUN_FAILED','Subject','ISocketService','apply','actions','_config','YUUMI_URL_COL_OUT_OF_RANGE','getSheetId','_initCommandExecutedListener','clsx','name','_docSkeletonManagerService','_setupSubUnitSync','width','attrs','CommandType','_send','doc.mutation.rich-text-editing','font','RefRangeService','type','[CollaborationDataLoaderController]','_scheduleClearOtherTimer','onPointerLeave$'];_0x4d59=function(){return _0x39329b;};return _0x4d59();}function _0x56ac(_0x5584e4,_0x45e95f){const _0x4d59c2=_0x4d59();return _0x56ac=function(_0x56acaf,_0x294214){_0x56acaf=_0x56acaf-0x8c;let _0x5f3e63=_0x4d59c2[_0x56acaf];return _0x5f3e63;},_0x56ac(_0x5584e4,_0x45e95f);}(function(_0x29b320,_0x1354ff){const _0x24fb51=_0x56ac,_0x596227=_0x29b320();while(!![]){try{const _0x1278b7=parseInt(_0x24fb51(0x9e))/0x1*(-parseInt(_0x24fb51(0x2a4))/0x2)+-parseInt(_0x24fb51(0x289))/0x3+parseInt(_0x24fb51(0x162))/0x4+-parseInt(_0x24fb51(0x192))/0x5*(-parseInt(_0x24fb51(0x190))/0x6)+-parseInt(_0x24fb51(0xdd))/0x7+parseInt(_0x24fb51(0x1ae))/0x8+parseInt(_0x24fb51(0x1dd))/0x9;if(_0x1278b7===_0x1354ff)break;else _0x596227['push'](_0x596227['shift']());}catch(_0x37744f){_0x596227['push'](_0x596227['shift']());}}}(_0x4d59,0xea628),function(_0x213f89,_0x1f5b09){const _0x206a82=_0x56ac;typeof exports==_0x206a82(0x2f1)&&typeof module<'u'?_0x1f5b09(exports,require(_0x206a82(0xdb)),require(_0x206a82(0x1f8)),require(_0x206a82(0x208)),require('@univerjs/network'),require(_0x206a82(0x1da)),require(_0x206a82(0x228)),require('rxjs'),require(_0x206a82(0xd5)),require(_0x206a82(0x319)),require(_0x206a82(0xe1)),require(_0x206a82(0x12d)),require(_0x206a82(0x28e)),require(_0x206a82(0x20f)),require('react/jsx-runtime'),require(_0x206a82(0x29f)),require(_0x206a82(0x292)),require(_0x206a82(0x14f)),require(_0x206a82(0x2e5))):typeof define==_0x206a82(0x20b)&&define[_0x206a82(0xb8)]?define([_0x206a82(0x2d5),'@univerjs-pro/collaboration-client',_0x206a82(0x1f8),_0x206a82(0x208),_0x206a82(0x2b2),_0x206a82(0x1da),_0x206a82(0x228),_0x206a82(0x114),_0x206a82(0xd5),_0x206a82(0x319),_0x206a82(0xe1),_0x206a82(0x12d),_0x206a82(0x28e),'@univerjs/sheets-ui',_0x206a82(0x108),_0x206a82(0x29f),'@univerjs/design',_0x206a82(0x14f),'@univerjs/rpc'],_0x1f5b09):(_0x213f89=typeof globalThis<'u'?globalThis:_0x213f89||self,_0x1f5b09(_0x213f89[_0x206a82(0x1ed)]={},_0x213f89[_0x206a82(0x19a)],_0x213f89[_0x206a82(0x310)],_0x213f89[_0x206a82(0xbd)],_0x213f89[_0x206a82(0xa8)],_0x213f89['UniverDocsUi'],_0x213f89[_0x206a82(0x1d7)],_0x213f89[_0x206a82(0x114)],_0x213f89[_0x206a82(0xc4)],_0x213f89[_0x206a82(0x2d9)],_0x213f89['UniverEngineFormula'],_0x213f89['UniverSheets'],_0x213f89[_0x206a82(0x114)][_0x206a82(0x1e0)],_0x213f89[_0x206a82(0x327)],_0x213f89[_0x206a82(0x1e9)],_0x213f89[_0x206a82(0x276)],_0x213f89[_0x206a82(0x223)],_0x213f89[_0x206a82(0x1e9)],_0x213f89[_0x206a82(0x2e7)]));}(this,function(_0x2bf47a,_0x56139f,_0x5cc899,_0xa3a2fa,_0x225722,_0x45cbcb,_0x3e221e,_0x16a76f,_0xcf3dad,_0x158f44,_0x427481,_0x156504,_0x4faa9f,_0x19b11c,_0x73eb1b,_0x218fbf,_0x3b992f,_0x4d5c38,_0x2a95b8){'use strict';const _0x3a3b32=_0x56ac;var _0x25f7fc=Object[_0x3a3b32(0x315)],_0x51c7d6=(_0x66b49,_0x2bcf98,_0x5c07bc)=>_0x2bcf98 in _0x66b49?_0x25f7fc(_0x66b49,_0x2bcf98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c07bc}):_0x66b49[_0x2bcf98]=_0x5c07bc,_0x40a5a2=(_0x38d55d,_0x30aede,_0x318027)=>_0x51c7d6(_0x38d55d,typeof _0x30aede!='symbol'?_0x30aede+'':_0x30aede,_0x318027),_0x1491e8=Object[_0x3a3b32(0x26d)],_0x5dd51a=(_0x433577,_0x433cca,_0x1c8e32,_0x2e1053)=>{for(var _0x4e4176=_0x2e1053>0x1?void 0x0:_0x2e1053?_0x1491e8(_0x433cca,_0x1c8e32):_0x433cca,_0x1b9e0=_0x433577['length']-0x1,_0x4a49d9;_0x1b9e0>=0x0;_0x1b9e0--)(_0x4a49d9=_0x433577[_0x1b9e0])&&(_0x4e4176=_0x4a49d9(_0x4e4176)||_0x4e4176);return _0x4e4176;},_0x35c63a=(_0x4e5b0b,_0x4c8240)=>(_0x4030fa,_0x3cde91)=>_0x4c8240(_0x4030fa,_0x3cde91,_0x4e5b0b);let _0x51dd46=class extends _0x5cc899[_0x3a3b32(0x2ef)]{constructor(_0x113e87,_0x5aaac0){const _0x5f11ec=_0x3a3b32;super(),this[_0x5f11ec(0xef)]=_0x113e87,this[_0x5f11ec(0x1ab)]=_0x5aaac0,this[_0x5f11ec(0xa2)]();}[_0x3a3b32(0xa2)](){const _0x33eded=_0x3a3b32,_0x8b368c=this;this['disposeWithMe'](this[_0x33eded(0xef)]['addClipboardHook']({'onBeforePasteImage':async _0x37aae0=>{const _0x2628ab=_0x33eded,_0x346848=await _0x8b368c['_imageIoService'][_0x2628ab(0x31e)](_0x37aae0);return _0x346848?{'source':_0x346848[_0x2628ab(0x308)],'imageSourceType':_0x346848[_0x2628ab(0x1f9)]}:null;}}));}};_0x51dd46=_0x5dd51a([_0x35c63a(0x0,_0x45cbcb[_0x3a3b32(0x2f5)]),_0x35c63a(0x1,_0x3e221e[_0x3a3b32(0x25b)])],_0x51dd46);const _0x2a5316=['purple.300','jiqing.500',_0x3a3b32(0x266),_0x3a3b32(0xc0),_0x3a3b32(0x1b2),_0x3a3b32(0x1af)];class _0x138d33 extends _0x5cc899[_0x3a3b32(0x1b6)]{constructor(){const _0x2d0248=_0x3a3b32;super(...arguments),_0x40a5a2(this,_0x2d0248(0x238),new Map()),_0x40a5a2(this,_0x2d0248(0x283),0x0);}[_0x3a3b32(0x2f7)](_0x2cf0bb){const _0x47dc75=_0x3a3b32;if(this[_0x47dc75(0x238)][_0x47dc75(0xd6)](_0x2cf0bb))return this[_0x47dc75(0x238)]['get'](_0x2cf0bb);const _0x2610b6=_0x2a5316[this[_0x47dc75(0x283)]];return this['_colorIndex']=(this[_0x47dc75(0x283)]+0x1)%_0x2a5316[_0x47dc75(0xb3)],this[_0x47dc75(0x238)][_0x47dc75(0x194)](_0x2cf0bb,_0x2610b6),_0x2610b6;}}function _0x5cf42e(_0x21df44){let _0x515355='';for(const _0x1f6212 of _0x21df44){const {startOffset:_0x5b409b,endOffset:_0x3f5307,isActive:_0xc139ce,rangeType:_0x19c059,segmentId:_0x26e136,segmentPage:_0x38de58}=_0x1f6212;_0x515355['length']&&(_0x515355+=','),_0x515355+=_0x5b409b+':'+_0x3f5307+':'+(_0xc139ce?'1':'0')+':'+_0x19c059+':'+_0x26e136+':'+_0x38de58;}return _0x515355;}function _0x520bdb(_0x578c66){const _0x1b664e=_0x3a3b32,_0x1a24ae=_0x578c66['split'](','),_0x30df50=[];for(const _0x2bde33 of _0x1a24ae){const [_0x43a5e8,_0x463e95,_0x294551,_0x400b11,_0x59ce52,_0x47d2a2]=_0x2bde33[_0x1b664e(0x269)](':');_0x30df50[_0x1b664e(0x2f9)]({'startOffset':Number(_0x43a5e8),'endOffset':Number(_0x463e95),'collapsed':_0x43a5e8===_0x463e95,'isActive':_0x294551==='1','rangeType':_0x400b11===_0x5cc899[_0x1b664e(0x30a)][_0x1b664e(0xf0)]?_0x5cc899[_0x1b664e(0x30a)][_0x1b664e(0xf0)]:_0x5cc899['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x59ce52==_0x1b664e(0x21a)?String(_0x59ce52):'','segmentPage':Number(_0x47d2a2!=null?_0x47d2a2:-0x1)});}return _0x30df50[_0x1b664e(0x154)](_0x392f4d=>_0x392f4d[_0x1b664e(0x260)])||(_0x30df50[0x0][_0x1b664e(0x260)]=!0x0),_0x30df50;}class _0x4fe24f extends _0x5cc899[_0x3a3b32(0x2ef)]{constructor(){const _0x350c13=_0x3a3b32;super(...arguments),_0x40a5a2(this,_0x350c13(0x98),new _0x16a76f['BehaviorSubject'](null)),_0x40a5a2(this,_0x350c13(0x171),this[_0x350c13(0x98)]['asObservable']());}[_0x3a3b32(0x252)](_0x152f96){const _0x593ed7=_0x3a3b32,{unitID:_0x116818,memberID:_0x176860,textRanges:_0x48e4b8}=_0x152f96,_0x119ccc=_0x5cf42e(_0x48e4b8);if(_0x119ccc==='')return;const _0x35f63b={'unitID':_0x116818,'memberID':_0x176860,'selection':_0x119ccc};this[_0x593ed7(0x98)][_0x593ed7(0x282)](_0x35f63b);}}var _0x3acac5=Object[_0x3a3b32(0x26d)],_0x5d3c1c=(_0x34b7cd,_0x3d8e1f,_0x4628db,_0xc8ed6a)=>{const _0x45f970=_0x3a3b32;for(var _0x2a480b=_0xc8ed6a>0x1?void 0x0:_0xc8ed6a?_0x3acac5(_0x3d8e1f,_0x4628db):_0x3d8e1f,_0x16f54f=_0x34b7cd[_0x45f970(0xb3)]-0x1,_0x2a2e1a;_0x16f54f>=0x0;_0x16f54f--)(_0x2a2e1a=_0x34b7cd[_0x16f54f])&&(_0x2a480b=_0x2a2e1a(_0x2a480b)||_0x2a480b);return _0x2a480b;},_0x1d6ef5=(_0xffda4e,_0x51e688)=>(_0x31b225,_0x435223)=>_0x51e688(_0x31b225,_0x435223,_0xffda4e);const _0x2d38ce=0x12c,_0x36547e=0x64;let _0x3cd518=class extends _0x5cc899[_0x3a3b32(0x2ef)]{constructor(_0x130fd1,_0x599bc3,_0x1697ad,_0x10a205,_0x25a9c7,_0x261227,_0x33517e,_0x14c742,_0x47d55a){const _0x13332e=_0x3a3b32;super(),_0x40a5a2(this,_0x13332e(0x126),!0x1),_0x40a5a2(this,_0x13332e(0xa2),!0x1),_0x40a5a2(this,_0x13332e(0x2d4),new _0x16a76f[(_0x13332e(0x13e))](new Map())),_0x40a5a2(this,_0x13332e(0x221),this[_0x13332e(0x2d4)][_0x13332e(0x1ff)]()),_0x40a5a2(this,_0x13332e(0x246),new _0x16a76f['BehaviorSubject']([])),_0x40a5a2(this,'roomMembers$',this[_0x13332e(0x246)]['pipe'](_0x16a76f[_0x13332e(0x1ac)](_0x2d38ce))),_0x40a5a2(this,_0x13332e(0x227),_0x5cc899[_0x13332e(0x259)](_0x9eb151=>{const _0x3e0242=_0x13332e,_0x3a6435={'eventID':_0x158f44['CollaborationEvent'][_0x3e0242(0x31f)],'data':{'unitID':this['unitID'],'memberID':this[_0x3e0242(0x2bf)]['getMemberID'](),'selection':_0x5cf42e(_0x9eb151)}};this[_0x3e0242(0x2bf)][_0x3e0242(0x122)](_0x3a6435,this[_0x3e0242(0x25a)]);},_0x36547e)),(this['unitID']=_0x130fd1,this[_0x13332e(0x2bf)]=_0x599bc3,this['_injector']=_0x1697ad,this[_0x13332e(0x29b)]=_0x10a205,this[_0x13332e(0x90)]=_0x25a9c7,this[_0x13332e(0x26e)]=_0x261227,this[_0x13332e(0x12f)]=_0x33517e,this[_0x13332e(0x30f)]=_0x14c742,this['_commandService']=_0x47d55a);}get['cursorInfo'](){const _0x5bfd9b=_0x3a3b32;return this['_cursorInfo$'][_0x5bfd9b(0x2a1)]();}get[_0x3a3b32(0x152)](){const _0x3f0fe0=_0x3a3b32;return this[_0x3f0fe0(0x246)][_0x3f0fe0(0x2a1)]();}[_0x3a3b32(0x23e)](){const _0x5451b6=_0x3a3b32;super[_0x5451b6(0x23e)](),this['_cursorInfo$'][_0x5451b6(0x282)](new Map()),this[_0x5451b6(0x2d4)][_0x5451b6(0x168)](),this[_0x5451b6(0x246)]['next']([]),this[_0x5451b6(0x246)][_0x5451b6(0x168)]();}[_0x3a3b32(0xd4)](){const _0x42ad01=_0x3a3b32;this[_0x42ad01(0xa2)]||(this[_0x42ad01(0xa2)]=!0x0,this[_0x42ad01(0x2bf)][_0x42ad01(0x1a2)][_0x42ad01(0x9a)](_0x16a76f[_0x42ad01(0x105)](this[_0x42ad01(0x27c)]))[_0x42ad01(0x239)](_0x49c8f6=>{const _0x43a65d=_0x42ad01;_0x49c8f6===_0x56139f[_0x43a65d(0x293)][_0x43a65d(0x220)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x42ad01(0x2bf)]['event$'][_0x42ad01(0x9a)](_0x16a76f[_0x42ad01(0x105)](this[_0x42ad01(0x27c)]))['subscribe'](_0x249d56=>{const _0x1da527=_0x42ad01,_0x3ee990=_0x249d56[_0x1da527(0x2c6)];_0x3ee990===_0x158f44[_0x1da527(0x15f)][_0x1da527(0x31f)]&&this[_0x1da527(0x245)](_0x249d56),_0x3ee990===_0x158f44[_0x1da527(0x15f)]['USERS_LEAVE']&&this[_0x1da527(0x145)](_0x249d56);}),this[_0x42ad01(0x16f)](this[_0x42ad01(0x25d)]['onCommandExecuted'](_0x38b6b8=>{const _0x42b912=_0x42ad01,_0x239223=_0x38b6b8['params'];_0x239223!=null&&this['_online']&&_0x38b6b8['id']===_0xcf3dad[_0x42b912(0x2d3)]['id']&&_0x239223[_0x42b912(0x196)]===this[_0x42b912(0x25a)]&&_0x239223[_0x42b912(0x26f)]===!0x1&&_0x239223[_0x42b912(0x1ce)]['length']>0x0&&this['_updateLocalCursor'](_0x239223[_0x42b912(0x1ce)]);})),this['_syncEditingCollabCursorService'][_0x42ad01(0x171)][_0x42ad01(0x9a)](_0x16a76f[_0x42ad01(0x105)](this[_0x42ad01(0x27c)]))[_0x42ad01(0x239)](_0x6f5418=>{const _0x17c04a=_0x42ad01;if((_0x6f5418==null?void 0x0:_0x6f5418[_0x17c04a(0x25a)])!==this[_0x17c04a(0x25a)])return;const _0x32aa95={'eventID':_0x158f44['CollaborationEvent'][_0x17c04a(0x31f)],'data':_0x6f5418};this[_0x17c04a(0x245)](_0x32aa95);}),this[_0x42ad01(0x16f)](this['_commandService']['onCommandExecuted'](_0x4b0e2d=>{const _0x292f09=_0x42ad01;if(_0x4b0e2d['params']==null)return;const _0x1f357a=_0x4b0e2d[_0x292f09(0x323)];if(_0x4b0e2d['id']!==_0xcf3dad[_0x292f09(0x1a1)]['id']||_0x1f357a[_0x292f09(0x196)]!==this[_0x292f09(0x25a)])return;const _0x2fe3ff={'id':'doc.mutation.rich-text-editing','params':_0x1f357a},_0x1afdd8=this[_0x292f09(0x173)];for(const [_0x430b4c,_0x365d5]of _0x1afdd8){const _0x29b589={'id':_0x292f09(0x186),'params':{'unitId':this[_0x292f09(0x25a)],'actions':null,'textRanges':_0x365d5[_0x292f09(0x1ce)]}},_0x574634=this[_0x292f09(0x12f)][_0x292f09(0x2dd)](_0x2fe3ff,_0x29b589,!0x1);if(_0x158f44[_0x292f09(0x1d4)](_0x574634))throw _0x574634['error'];_0x1afdd8[_0x292f09(0x194)](_0x430b4c,{..._0x365d5,'ranges':_0x574634[_0x292f09(0xfe)][_0x292f09(0x323)][_0x292f09(0x318)]});}queueMicrotask(()=>{const _0x3ce807=_0x292f09;this[_0x3ce807(0x2d4)][_0x3ce807(0x282)](_0x1afdd8);});})));}[_0x3a3b32(0x245)](_0xf84683){const _0x1f2803=_0x3a3b32;var _0x21c43d,_0x1102de;const {memberID:_0x569406,selection:_0x4350c2}=_0xf84683[_0x1f2803(0x124)],_0x3968b2=_0x520bdb(_0x4350c2),_0x4e8573=(_0x1102de=(_0x21c43d=this[_0x1f2803(0x90)][_0x1f2803(0x229)](this[_0x1f2803(0x25a)],_0x569406))==null?void 0x0:_0x21c43d[_0x1f2803(0x17f)])!=null?_0x1102de:_0x1f2803(0x2fc),_0x13ed5b={'color':this[_0x1f2803(0x29b)][_0x1f2803(0x2f7)](_0x569406),'name':_0x4e8573,'ranges':_0x3968b2},_0xb2432d=this[_0x1f2803(0x173)];_0xb2432d['set'](_0x569406,_0x13ed5b),this[_0x1f2803(0x2d4)][_0x1f2803(0x282)](_0xb2432d);}[_0x3a3b32(0x145)](_0x19b6c0){const _0x5af7b1=_0x3a3b32,{memberID:_0x427132}=_0x19b6c0[_0x5af7b1(0x124)],_0x46697d=this[_0x5af7b1(0x173)];_0x46697d[_0x5af7b1(0x13c)](_0x427132),this['_cursorInfo$']['next'](_0x46697d);}[_0x3a3b32(0xc1)](){const _0x540c61=_0x3a3b32;var _0x3ce2b9;if(this[_0x540c61(0x126)]=!0x0,((_0x3ce2b9=this[_0x540c61(0x30f)][_0x540c61(0x1fe)]())==null?void 0x0:_0x3ce2b9[_0x540c61(0x30c)]())!==this[_0x540c61(0x25a)])return;const _0x25d179=this['_injector'][_0x540c61(0x2be)](_0xcf3dad['DocSelectionManagerService'])[_0x540c61(0x222)]();Array[_0x540c61(0xbc)](_0x25d179)&&_0x25d179['length']>0x0&&this['_updateLocalCursor'](_0x25d179);}[_0x3a3b32(0x2c5)](){const _0x32eb55=_0x3a3b32;this[_0x32eb55(0x126)]=!0x1;}};_0x3cd518=_0x5d3c1c([_0x1d6ef5(0x2,_0x5cc899[_0x3a3b32(0x27f)](_0x5cc899[_0x3a3b32(0x281)])),_0x1d6ef5(0x3,_0x5cc899[_0x3a3b32(0x27f)](_0x138d33)),_0x1d6ef5(0x4,_0x5cc899[_0x3a3b32(0x27f)](_0x56139f['MemberService'])),_0x1d6ef5(0x5,_0x5cc899[_0x3a3b32(0x27f)](_0x4fe24f)),_0x1d6ef5(0x6,_0x158f44[_0x3a3b32(0x153)]),_0x1d6ef5(0x7,_0x5cc899[_0x3a3b32(0x10f)]),_0x1d6ef5(0x8,_0x5cc899[_0x3a3b32(0x234)])],_0x3cd518);var _0x2bdf73=Object[_0x3a3b32(0x26d)],_0x18a5cc=(_0x3fce89,_0x5be657,_0x42bf0b,_0x24d279)=>{const _0x31c76a=_0x3a3b32;for(var _0xa49248=_0x24d279>0x1?void 0x0:_0x24d279?_0x2bdf73(_0x5be657,_0x42bf0b):_0x5be657,_0x5ad3b2=_0x3fce89[_0x31c76a(0xb3)]-0x1,_0x211414;_0x5ad3b2>=0x0;_0x5ad3b2--)(_0x211414=_0x3fce89[_0x5ad3b2])&&(_0xa49248=_0x211414(_0xa49248)||_0xa49248);return _0xa49248;},_0x47ac2d=(_0x17ce02,_0x8e67c2)=>(_0x2465ba,_0x9f3a8c)=>_0x8e67c2(_0x2465ba,_0x9f3a8c,_0x17ce02);const _0x53b7f9=0x12c,_0xea6a1d=0x64,_0x131beb=()=>{let _0x434d36=[],_0x481ecc=!0x1;return _0x54dbfd=>{const _0x10895e=_0x56ac;_0x434d36[_0x10895e(0x2f9)](_0x54dbfd),_0x481ecc||(_0x481ecc=!0x0,setTimeout(()=>{const _0x4ca234=_0x10895e;_0x434d36[_0x4ca234(0x291)](_0x5bed6c=>_0x5bed6c()),_0x434d36=[],_0x481ecc=!0x1;}));};};let _0x2074c6=class extends _0x5cc899['RxDisposable']{constructor(_0x7cd426,_0x4e621f,_0xff91c2,_0x2995c5,_0x5ae717,_0xf75632,_0x3b157c,_0x2dbf39){const _0x37ff39=_0x3a3b32;super(),_0x40a5a2(this,'_online',!0x1),_0x40a5a2(this,'_init',!0x1),_0x40a5a2(this,_0x37ff39(0x2d4),new _0x16a76f['BehaviorSubject'](new Map())),_0x40a5a2(this,_0x37ff39(0x221),this[_0x37ff39(0x2d4)][_0x37ff39(0x1ff)]()),_0x40a5a2(this,_0x37ff39(0x246),new _0x16a76f[(_0x37ff39(0x13e))]([])),_0x40a5a2(this,'roomMembers$',this[_0x37ff39(0x246)]['pipe'](_0x16a76f[_0x37ff39(0x1ac)](_0x53b7f9))),_0x40a5a2(this,_0x37ff39(0x227),_0x5cc899[_0x37ff39(0x259)]((_0x57e2fe,_0x2cb8bf)=>{const _0x40b5db=_0x37ff39,_0x5909bb={'eventID':_0x158f44['CollaborationEvent'][_0x40b5db(0x31f)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':_0x427481['serializeRangeWithSheet'](_0x57e2fe,_0x2cb8bf['range'])}};this[_0x40b5db(0x2bf)][_0x40b5db(0x122)](_0x5909bb,this[_0x40b5db(0x25a)]);},_0xea6a1d)),(this[_0x37ff39(0x25a)]=_0x7cd426,this[_0x37ff39(0x2bf)]=_0x4e621f,this[_0x37ff39(0x2ce)]=_0xff91c2,this[_0x37ff39(0x29b)]=_0x2995c5,this[_0x37ff39(0x90)]=_0x5ae717,this[_0x37ff39(0x30f)]=_0xf75632,this['_commandService']=_0x3b157c,this[_0x37ff39(0x264)]=_0x2dbf39);}get[_0x3a3b32(0x173)](){const _0x4b7106=_0x3a3b32;return this[_0x4b7106(0x2d4)][_0x4b7106(0x2a1)]();}get[_0x3a3b32(0x152)](){return this['_roomMembers$']['getValue']();}[_0x3a3b32(0x23e)](){const _0x45ca18=_0x3a3b32;super['dispose'](),this[_0x45ca18(0x2d4)][_0x45ca18(0x282)](new Map()),this[_0x45ca18(0x2d4)][_0x45ca18(0x168)](),this[_0x45ca18(0x246)]['next']([]),this[_0x45ca18(0x246)]['complete']();}[_0x3a3b32(0xd4)](){const _0x2ead02=_0x3a3b32;this['_init']||(this[_0x2ead02(0xa2)]=!0x0,this[_0x2ead02(0x2bf)][_0x2ead02(0x1a2)][_0x2ead02(0x9a)](_0x16a76f[_0x2ead02(0x105)](this[_0x2ead02(0x27c)]))[_0x2ead02(0x239)](_0x103718=>{const _0x1ee92b=_0x2ead02;_0x103718===_0x56139f['SessionStatus'][_0x1ee92b(0x220)]?this[_0x1ee92b(0xc1)]():this['_toggleOffline']();}),this[_0x2ead02(0x2bf)][_0x2ead02(0x27b)][_0x2ead02(0x9a)](_0x16a76f[_0x2ead02(0x105)](this[_0x2ead02(0x27c)]))[_0x2ead02(0x239)](_0x3c0197=>{const _0x49d389=_0x2ead02,_0x2c7923=_0x3c0197['eventID'];_0x2c7923===_0x158f44['CollaborationEvent'][_0x49d389(0x31f)]&&this[_0x49d389(0x245)](_0x3c0197),_0x2c7923===_0x158f44['CollaborationEvent']['USERS_LEAVE']&&this['_onCursorDelete'](_0x3c0197);}),this[_0x2ead02(0xce)](),this[_0x2ead02(0x16f)](this[_0x2ead02(0x25d)][_0x2ead02(0x1b1)](_0x2fe1e9=>{const _0x4e9cfe=_0x2ead02;if(this[_0x4e9cfe(0x126)]&&_0x2fe1e9['id']===_0x156504['SetSelectionsOperation']['id']&&_0x2fe1e9[_0x4e9cfe(0x323)]['unitId']===this['unitID']){const _0x249d1f=_0x2fe1e9[_0x4e9cfe(0x323)];this[_0x4e9cfe(0x227)](_0x249d1f[_0x4e9cfe(0x1eb)],_0x249d1f['selections'][0x0]);}})));}['_onCursorUpdate'](_0x2d72cb){const _0x5c2ea5=_0x3a3b32;var _0x5404f0,_0x3d5c53;const {memberID:_0xc76547,selection:_0x5caf75}=_0x2d72cb[_0x5c2ea5(0x124)],{sheetName:_0x2c974c,range:_0x501c19}=_0x427481[_0x5c2ea5(0x1d6)](_0x5caf75),_0x1e06ef={'name':(_0x3d5c53=(_0x5404f0=this[_0x5c2ea5(0x90)][_0x5c2ea5(0x229)](this[_0x5c2ea5(0x25a)],_0xc76547))==null?void 0x0:_0x5404f0[_0x5c2ea5(0x17f)])!=null?_0x3d5c53:_0x5c2ea5(0x2fc),'range':this[_0x5c2ea5(0x2f6)](_0x2c974c,_0x501c19),'sheetID':_0x2c974c,'color':this[_0x5c2ea5(0x29b)]['assignAColorForMemberID'](_0xc76547),'selection':_0x5caf75},_0x45642c=this[_0x5c2ea5(0x173)];_0x45642c[_0x5c2ea5(0x194)](_0xc76547,_0x1e06ef),this[_0x5c2ea5(0x2d4)][_0x5c2ea5(0x282)](_0x45642c);}[_0x3a3b32(0x145)](_0x9f9654){const _0x4854d6=_0x3a3b32,{memberID:_0x2bad56}=_0x9f9654[_0x4854d6(0x124)],_0x14aa9a=this[_0x4854d6(0x173)];_0x14aa9a[_0x4854d6(0x13c)](_0x2bad56),this['_cursorInfo$'][_0x4854d6(0x282)](_0x14aa9a);}[_0x3a3b32(0x2f6)](_0x3c0894,_0x573bf1){const _0x1494de=_0x3a3b32;var _0x50d761,_0x165b4e;const _0x4e98f7=(_0x165b4e=(_0x50d761=this[_0x1494de(0x30f)][_0x1494de(0x13f)](this['unitID']))==null?void 0x0:_0x50d761['getSheetBySheetId'](_0x3c0894))==null?void 0x0:_0x165b4e['getMergeData']();return(_0x4e98f7==null?void 0x0:_0x4e98f7[_0x1494de(0x2ee)](_0x349db5=>_0x5cc899[_0x1494de(0x1fc)][_0x1494de(0x149)](_0x349db5,_0x573bf1)))||_0x573bf1;}['_onRefRangeChange'](){const _0x355c06=_0x3a3b32,_0x1c1916=new _0x5cc899['DisposableCollection'](),_0x40421f=_0x131beb(),_0x44de8a=()=>{const _0x464b89=_0x56ac;_0x1c1916[_0x464b89(0x23e)]();const _0x36fa00=(_0x8c0017,_0x490468,_0x24342f,_0x4dd02e)=>{const _0x6eec94=_0x464b89;let _0x41f265=[];switch(_0x8c0017['id']){case _0x156504['EffectRefRangId'][_0x6eec94(0x93)]:{_0x41f265=_0x156504[_0x6eec94(0x2bc)](_0x8c0017,_0x4dd02e);break;}case _0x156504[_0x6eec94(0x207)][_0x6eec94(0x224)]:{_0x41f265=_0x156504[_0x6eec94(0x1f0)](_0x8c0017,_0x4dd02e);break;}case _0x156504[_0x6eec94(0x207)][_0x6eec94(0x2c2)]:{_0x41f265=_0x156504['handleInsertCol'](_0x8c0017,_0x4dd02e);break;}case _0x156504['EffectRefRangId'][_0x6eec94(0xd9)]:{_0x41f265=_0x156504[_0x6eec94(0x14a)](_0x8c0017,_0x4dd02e);break;}case _0x156504['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x41f265=_0x156504[_0x6eec94(0x272)](_0x8c0017,_0x4dd02e);break;}case _0x156504[_0x6eec94(0x207)][_0x6eec94(0x1bb)]:{_0x41f265=_0x156504[_0x6eec94(0xc5)](_0x8c0017,_0x4dd02e);break;}case _0x156504[_0x6eec94(0x207)][_0x6eec94(0x2b7)]:{_0x41f265=_0x156504['handleMoveRange'](_0x8c0017,_0x4dd02e);break;}case _0x156504[_0x6eec94(0x207)][_0x6eec94(0xde)]:{_0x41f265=_0x156504['handleIRemoveCol'](_0x8c0017,_0x4dd02e);break;}case _0x156504['EffectRefRangId'][_0x6eec94(0x1bc)]:{_0x41f265=_0x156504[_0x6eec94(0x22b)](_0x8c0017,_0x4dd02e);break;}}const _0x3e5337=_0x156504[_0x6eec94(0x236)](_0x41f265,_0x4dd02e),_0x10ab75=this[_0x6eec94(0x173)][_0x6eec94(0x2be)](_0x490468);if(_0x10ab75&&_0x3e5337){const _0x2a46df={..._0x10ab75,'range':_0x3e5337};this[_0x6eec94(0x173)]['set'](_0x490468,_0x2a46df),_0x40421f(()=>{const _0x14d11c=_0x6eec94,_0x4f8ed1=this['_refRangeService']['registerRefRange'](_0x3e5337,_0x102fda=>(_0x4f8ed1[_0x14d11c(0x23e)](),_0x36fa00(_0x102fda,_0x490468,_0x24342f,_0x3e5337)));_0x1c1916[_0x14d11c(0x316)](_0x4f8ed1);});}return{'redos':[],'undos':[]};};this[_0x464b89(0x173)]['forEach']((_0x193c46,_0x46d42d)=>{const _0x156e5b=_0x464b89,{range:_0x470b0e,sheetID:_0x53d500}=_0x193c46,_0x3f6b18=this[_0x156e5b(0x264)][_0x156e5b(0xb5)](_0x470b0e,_0x2a7dbb=>(_0x3f6b18[_0x156e5b(0x23e)](),_0x36fa00(_0x2a7dbb,_0x46d42d,_0x53d500,_0x470b0e)));_0x1c1916[_0x156e5b(0x316)](_0x3f6b18);});};this[_0x355c06(0x16f)](_0x5cc899[_0x355c06(0x311)](this[_0x355c06(0x2d4)][_0x355c06(0x239)](()=>{_0x44de8a();})));}[_0x3a3b32(0xc1)](){const _0x38bab1=_0x3a3b32;var _0x14f86f,_0x2aa020;if(this[_0x38bab1(0x126)]=!0x0,((_0x14f86f=this[_0x38bab1(0x30f)][_0x38bab1(0x1fe)]())==null?void 0x0:_0x14f86f[_0x38bab1(0x30c)]())!==this[_0x38bab1(0x25a)])return;const _0x4bc9ef=(_0x2aa020=this[_0x38bab1(0x2ce)][_0x38bab1(0x2be)](_0x156504[_0x38bab1(0x263)])[_0x38bab1(0x288)]())==null?void 0x0:_0x2aa020[0x0],_0x260472=this[_0x38bab1(0x30f)][_0x38bab1(0x296)](_0x5cc899['UniverInstanceType']['UNIVER_SHEET'])[_0x38bab1(0x214)]();_0x4bc9ef&&_0x260472&&this[_0x38bab1(0x227)](_0x260472['getSheetId'](),_0x4bc9ef);}['_toggleOffline'](){const _0x14c199=_0x3a3b32;this[_0x14c199(0x126)]=!0x1;}};_0x2074c6=_0x18a5cc([_0x47ac2d(0x2,_0x5cc899[_0x3a3b32(0x27f)](_0x5cc899['Injector'])),_0x47ac2d(0x3,_0x5cc899[_0x3a3b32(0x27f)](_0x138d33)),_0x47ac2d(0x4,_0x5cc899[_0x3a3b32(0x27f)](_0x56139f[_0x3a3b32(0x123)])),_0x47ac2d(0x5,_0x5cc899[_0x3a3b32(0x10f)]),_0x47ac2d(0x6,_0x5cc899[_0x3a3b32(0x234)]),_0x47ac2d(0x7,_0x5cc899[_0x3a3b32(0x27f)](_0x156504[_0x3a3b32(0x188)]))],_0x2074c6);var _0x1d39ad=Object[_0x3a3b32(0x26d)],_0x52e77b=(_0x4da442,_0x2a410d,_0x54030f,_0x498470)=>{const _0x4f72a5=_0x3a3b32;for(var _0x157837=_0x498470>0x1?void 0x0:_0x498470?_0x1d39ad(_0x2a410d,_0x54030f):_0x2a410d,_0x4fdb8d=_0x4da442[_0x4f72a5(0xb3)]-0x1,_0x5ab35d;_0x4fdb8d>=0x0;_0x4fdb8d--)(_0x5ab35d=_0x4da442[_0x4fdb8d])&&(_0x157837=_0x5ab35d(_0x157837)||_0x157837);return _0x157837;},_0x3548fa=(_0x2a9c47,_0x1111f9)=>(_0x3717ea,_0x568cfd)=>_0x1111f9(_0x3717ea,_0x568cfd,_0x2a9c47);let _0x6e1b81=class extends _0x5cc899['RxDisposable']{constructor(_0x465d70,_0x14afa2,_0x319238){const _0x36437d=_0x3a3b32;super(),_0x40a5a2(this,_0x36437d(0x325),new Map()),_0x40a5a2(this,_0x36437d(0xff),new _0x16a76f[(_0x36437d(0x176))]()),(this['_univerInstanceService']=_0x465d70,this[_0x36437d(0x2ce)]=_0x14afa2,this[_0x36437d(0x2f0)]=_0x319238,this[_0x36437d(0xa2)]());}[_0x3a3b32(0x23e)](){const _0x4cda06=_0x3a3b32;super[_0x4cda06(0x23e)](),this[_0x4cda06(0xff)][_0x4cda06(0x168)](),this[_0x4cda06(0x325)]['forEach'](_0x574f25=>_0x574f25['dispose']());}[_0x3a3b32(0x300)](_0x3970eb){const _0x45ab7a=_0x3a3b32;return this['_entities'][_0x45ab7a(0xd6)](_0x3970eb)?this[_0x45ab7a(0x325)][_0x45ab7a(0x2be)](_0x3970eb)[_0x45ab7a(0x221)]:this[_0x45ab7a(0xff)][_0x45ab7a(0x9a)](_0x16a76f[_0x45ab7a(0xe8)](_0x1d7fcd=>_0x1d7fcd[_0x45ab7a(0x25a)]===_0x3970eb),_0x16a76f[_0x45ab7a(0x210)](_0x84433=>_0x84433[_0x45ab7a(0x221)]));}[_0x3a3b32(0xa2)](){const _0x3e2fc6=_0x3a3b32;this[_0x3e2fc6(0x30f)][_0x3e2fc6(0x203)](_0x5cc899[_0x3e2fc6(0x16e)][_0x3e2fc6(0x1d3)])[_0x3e2fc6(0x9a)](_0x16a76f['takeUntil'](this[_0x3e2fc6(0x27c)]))[_0x3e2fc6(0x239)](async _0x2d609b=>{const _0x383210=_0x3e2fc6,_0x206bb2=_0x2d609b[_0x383210(0x30c)](),_0x326fb5=await this[_0x383210(0x2fd)](_0x206bb2);this[_0x383210(0xff)]['next'](_0x326fb5),this[_0x383210(0x325)][_0x383210(0x194)](_0x206bb2,_0x326fb5);}),this[_0x3e2fc6(0x30f)][_0x3e2fc6(0x203)](_0x5cc899[_0x3e2fc6(0x16e)]['UNIVER_DOC'])[_0x3e2fc6(0x9a)](_0x16a76f['takeUntil'](this[_0x3e2fc6(0x27c)]))[_0x3e2fc6(0x9a)](_0x16a76f[_0x3e2fc6(0xe8)](_0x1613cf=>!_0x1613cf['getUnitId']()[_0x3e2fc6(0x2ae)]('__')))[_0x3e2fc6(0x239)](async _0x3b2ebc=>{const _0x185808=_0x3e2fc6,_0x9de830=_0x3b2ebc[_0x185808(0x30c)](),_0x5e3aae=await this[_0x185808(0x29c)](_0x9de830);this[_0x185808(0xff)][_0x185808(0x282)](_0x5e3aae),this['_entities']['set'](_0x9de830,_0x5e3aae);}),_0x16a76f['merge'](this[_0x3e2fc6(0x30f)][_0x3e2fc6(0x191)](_0x5cc899[_0x3e2fc6(0x16e)][_0x3e2fc6(0x301)]),this[_0x3e2fc6(0x30f)][_0x3e2fc6(0x191)](_0x5cc899['UniverInstanceType'][_0x3e2fc6(0x1d3)]))[_0x3e2fc6(0x9a)](_0x16a76f[_0x3e2fc6(0x105)](this[_0x3e2fc6(0x27c)]))[_0x3e2fc6(0x239)](_0x3757fe=>{const _0x4b1e3f=_0x3e2fc6,_0x4f6270=_0x3757fe[_0x4b1e3f(0x30c)](),_0x461c26=this[_0x4b1e3f(0x325)][_0x4b1e3f(0x2be)](_0x4f6270);_0x461c26&&(_0x461c26[_0x4b1e3f(0x23e)](),this[_0x4b1e3f(0x325)][_0x4b1e3f(0x13c)](_0x4f6270));});}async[_0x3a3b32(0x2fd)](_0x21bde4){const _0x417f41=_0x3a3b32,_0xbbe60b=await this[_0x417f41(0x2f0)][_0x417f41(0x135)](_0x21bde4),_0x603ad8=this[_0x417f41(0x2ce)][_0x417f41(0x2bd)](_0x2074c6,_0x21bde4,_0xbbe60b);return _0x603ad8[_0x417f41(0xd4)](),_0x603ad8;}async['_startDocCollabCursor'](_0x4c8ab5){const _0x4cd64e=_0x3a3b32,_0x3fffcb=await this['_collabSessionService'][_0x4cd64e(0x135)](_0x4c8ab5),_0xaaf53c=this['_injector'][_0x4cd64e(0x2bd)](_0x3cd518,_0x4c8ab5,_0x3fffcb);return _0xaaf53c[_0x4cd64e(0xd4)](),_0xaaf53c;}};_0x6e1b81=_0x52e77b([_0x3548fa(0x0,_0x5cc899[_0x3a3b32(0x10f)]),_0x3548fa(0x1,_0x5cc899[_0x3a3b32(0x27f)](_0x5cc899[_0x3a3b32(0x281)])),_0x3548fa(0x2,_0x5cc899[_0x3a3b32(0x27f)](_0x56139f[_0x3a3b32(0x23f)]))],_0x6e1b81);const _0x12924c=0x14,_0x17f9d8=0xc8,_0x1f84c0=0x4,_0x30bc6f=0x5;function _0x9b6f3f(_0x4cac28,_0x4e4dcc){const _0x468bf4=_0x3a3b32;let {radius:_0x1dad9d,width:_0x5e8bce,height:_0x8973f6}=_0x4e4dcc;_0x1dad9d=_0x1dad9d!=null?_0x1dad9d:0x0,_0x5e8bce=_0x5e8bce!=null?_0x5e8bce:0x1e,_0x8973f6=_0x8973f6!=null?_0x8973f6:0x1e;let _0x25afdb=0x0,_0x3e8a56=0x0,_0x4d1d89=0x0;_0x25afdb=_0x3e8a56=_0x4d1d89=Math[_0x468bf4(0xf3)](_0x1dad9d,_0x5e8bce/0x2,_0x8973f6/0x2),_0x4cac28[_0x468bf4(0x2ca)](),_0x4cac28['moveTo'](_0x25afdb,0x0),_0x4cac28[_0x468bf4(0x15e)](_0x5e8bce-_0x3e8a56,0x0),_0x4cac28[_0x468bf4(0xb9)](_0x5e8bce-_0x3e8a56,_0x3e8a56,_0x3e8a56,Math['PI']*0x3/0x2,0x0,!0x1),_0x4cac28[_0x468bf4(0x15e)](_0x5e8bce,_0x8973f6-_0x4d1d89),_0x4cac28[_0x468bf4(0xb9)](_0x5e8bce-_0x4d1d89,_0x8973f6-_0x4d1d89,_0x4d1d89,0x0,Math['PI']/0x2,!0x1),_0x4cac28[_0x468bf4(0x15e)](0x0,_0x8973f6),_0x4cac28[_0x468bf4(0x15e)](0x0,_0x25afdb),_0x4cac28[_0x468bf4(0xb9)](_0x25afdb,_0x25afdb,_0x25afdb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4cac28[_0x468bf4(0x107)](),_0x4e4dcc[_0x468bf4(0x242)]&&(_0x4cac28[_0x468bf4(0x19b)](),_0x4cac28['fillStyle']=_0x4e4dcc[_0x468bf4(0x242)],_0x4e4dcc[_0x468bf4(0x21e)]==='evenodd'?_0x4cac28[_0x468bf4(0x242)](_0x468bf4(0x1b0)):_0x4cac28['fill'](),_0x4cac28[_0x468bf4(0x2da)]());}class _0x8e950f extends _0xa3a2fa[_0x3a3b32(0x24b)]{constructor(_0x5a51a5,_0xb02d5d){const _0x23980c=_0x3a3b32;super(_0x5a51a5,_0xb02d5d),_0x40a5a2(this,'color'),_0x40a5a2(this,_0x23980c(0x306)),(this[_0x23980c(0x322)]=_0xb02d5d==null?void 0x0:_0xb02d5d[_0x23980c(0x322)],this['text']=_0xb02d5d==null?void 0x0:_0xb02d5d[_0x23980c(0x306)]);}static[_0x3a3b32(0x91)](_0xe07ed0,_0x19bfb3){const _0x214ca2=_0x3a3b32,{text:_0x437213,color:_0x292c68}=_0x19bfb3;_0xe07ed0[_0x214ca2(0x19b)](),_0xe07ed0[_0x214ca2(0x187)]=_0x214ca2(0xac);const _0x313474=_0xe07ed0[_0x214ca2(0x2f8)](_0x437213)[_0x214ca2(0x182)],_0x1e4a15=Math['min'](_0x313474+0x2*_0x1f84c0,_0x17f9d8);_0x9b6f3f(_0xe07ed0,{'height':_0x12924c,'radius':0x4,'width':_0x1e4a15,'fill':_0x292c68}),_0xe07ed0[_0x214ca2(0xcf)]=_0x214ca2(0x1bf);const _0x590243=_0x1f84c0,_0x2ab53c=_0x12924c-_0x30bc6f,_0x487573=_0x17f9d8-0x2*_0x1f84c0;if(_0x313474>_0x487573){let _0x10f47b='',_0x33ca2e=0x0;for(const _0x40de6e of _0x437213){const _0x37d097=_0xe07ed0[_0x214ca2(0x2f8)](_0x40de6e)[_0x214ca2(0x182)];if(_0x33ca2e+_0x37d097<=_0x487573-_0xe07ed0[_0x214ca2(0x2f8)]('...')[_0x214ca2(0x182)])_0x10f47b+=_0x40de6e,_0x33ca2e+=_0x37d097;else{_0x10f47b+=_0x214ca2(0x2d8);break;}}_0xe07ed0[_0x214ca2(0x15c)](_0x10f47b,_0x590243,_0x2ab53c);}else _0xe07ed0[_0x214ca2(0x15c)](_0x437213,_0x590243,_0x2ab53c);_0xe07ed0['restore']();}[_0x3a3b32(0x297)](_0x1d688d){_0x8e950f['drawWith'](_0x1d688d,this);}}const _0x2c041c=_0x3a3b32(0x19e),_0xe5237b=_0x3a3b32(0x218),_0x3df2a0=_0x3a3b32(0x1a8),_0x3708e6=0x6,_0x1d03a0=1.5,_0x422cf7=0x4,_0x28741e=1.5,_0x1ec2f7=_0x3a3b32(0x2c7);class _0x2d8a56{constructor(_0x257110,_0x5da521,_0x1f14af,_0x1ad32b){const _0x4930ec=_0x3a3b32;_0x40a5a2(this,_0x4930ec(0x1c8),[]),_0x40a5a2(this,_0x4930ec(0xf1),null),_0x40a5a2(this,'_textBubble',null),_0x40a5a2(this,_0x4930ec(0x11d),null),_0x40a5a2(this,'_hideTimer',null),_0x40a5a2(this,_0x4930ec(0x137),null),(this[_0x4930ec(0x24c)]=_0x257110,this[_0x4930ec(0x146)]=_0x5da521,this[_0x4930ec(0x2ea)]=_0x1f14af,this[_0x4930ec(0x128)]=_0x1ad32b,this['_render']());}set[_0x3a3b32(0x144)](_0x2f6c43){const _0x4179ad=_0x3a3b32;_0x2f6c43?(this[_0x4179ad(0x11d)]&&this[_0x4179ad(0x11d)][_0x4179ad(0x1e3)](),this['_textBubble']&&this[_0x4179ad(0x2aa)][_0x4179ad(0x2bb)]()):(this[_0x4179ad(0x11d)]&&this['_anchorDot'][_0x4179ad(0x2bb)](),this[_0x4179ad(0x2aa)]&&this[_0x4179ad(0x2aa)][_0x4179ad(0x1e3)]());}[_0x3a3b32(0x23e)](){const _0xe3662a=_0x3a3b32;for(const _0xe1b471 of this[_0xe3662a(0x1c8)])_0xe1b471[_0xe3662a(0x23e)]();this['_textBubble']&&this[_0xe3662a(0x2aa)][_0xe3662a(0x23e)](),this[_0xe3662a(0x11d)]&&this[_0xe3662a(0x11d)][_0xe3662a(0x23e)](),this[_0xe3662a(0xf1)]&&this[_0xe3662a(0xf1)][_0xe3662a(0x23e)](),this[_0xe3662a(0x137)]&&this[_0xe3662a(0x137)]();}[_0x3a3b32(0x2f4)](){const _0x2c4f23=_0x3a3b32;var _0x113ae8;const {_docSkeleton:_0x510b1a,_document:_0x3d1749}=this,{color:_0x3c08e9,name:_0x6544f6,ranges:_0x29c5dd}=this[_0x2c4f23(0x24c)],_0x3677d8=_0x3d1749[_0x2c4f23(0x2f2)](),{docsLeft:_0x31e5f8,docsTop:_0x132dce}=_0x3677d8,_0xb43aee=new _0x45cbcb['NodePositionConvertToCursor'](_0x3677d8,_0x510b1a);for(const {startOffset:_0x1a5a20,endOffset:_0x213ee5,rangeType:_0x54e3c3,segmentId:_0x912e03,segmentPage:_0x38a3a2,collapsed:_0x42c097,isActive:_0x19fb0c}of _0x29c5dd){const _0x21b3fc=_0x510b1a['findNodePositionByCharIndex'](_0x1a5a20,!0x0,_0x912e03,_0x38a3a2);let _0x1eded7=_0x510b1a[_0x2c4f23(0x256)](_0x213ee5,!0x0,_0x912e03,_0x38a3a2);if(_0x1eded7==null&&(_0x1eded7=_0x510b1a[_0x2c4f23(0x256)](_0x213ee5-0x1,!0x1,_0x912e03,_0x38a3a2)),_0x19fb0c){const {contentBoxPointGroup:_0x547443}=_0xb43aee[_0x2c4f23(0x113)](_0x1eded7,_0x1eded7);if(_0x547443[_0x2c4f23(0xb3)]===0x0)continue;this['_drawAnchor'](_0x3c08e9,_0x547443,_0x31e5f8,_0x132dce,_0x6544f6),this[_0x2c4f23(0x137)]=this[_0x2c4f23(0x127)]();}if(_0x21b3fc&&_0x1eded7){if(_0x54e3c3===_0x5cc899[_0x2c4f23(0x30a)]['RECT']){const _0x426b5d=new _0x45cbcb[(_0x2c4f23(0x2e0))](_0x3677d8,_0x510b1a),{pointGroup:_0x578a6e}=(_0x113ae8=_0x426b5d[_0x2c4f23(0x113)](_0x21b3fc,_0x1eded7))!=null?_0x113ae8:{};if(_0x578a6e==null||_0x578a6e[_0x2c4f23(0xb3)]===0x0)continue;this[_0x2c4f23(0xea)](_0x3c08e9,_0x578a6e,_0x31e5f8,_0x132dce);}else{if(!_0x42c097){const {borderBoxPointGroup:_0x3cb47f}=_0xb43aee[_0x2c4f23(0x113)](_0x21b3fc,_0x1eded7);if(_0x3cb47f[_0x2c4f23(0xb3)]===0x0)continue;this[_0x2c4f23(0x2fb)](_0x3c08e9,_0x3cb47f,_0x31e5f8,_0x132dce);}}}}}[_0x3a3b32(0xd8)](_0x3b2404,_0x535d03,_0x1c2eaf,_0x3437dd,_0x4fab16){const _0x5f086=_0x3a3b32,_0x259221=this[_0x5f086(0x2c4)](_0x535d03),{left:_0x1b13ac,top:_0x495007,height:_0x77ef3c}=_0x259221,_0x46cbfc=this[_0x5f086(0x11c)](),_0x4a6391=_0x28741e/_0x46cbfc,_0x34222b=new _0xa3a2fa[(_0x5f086(0x2b9))](_0x2c041c+_0x5cc899[_0x5f086(0xa7)][_0x5f086(0x2cc)](_0x3708e6),{'left':_0x1b13ac+_0x1c2eaf-_0x4a6391,'top':_0x495007+_0x3437dd,'height':_0x77ef3c,'width':_0x1d03a0,'fill':_0x3b2404||_0xa3a2fa[_0x5f086(0x117)](_0x5cc899['COLORS']['black'],0x0),'strokeWidth':_0x4a6391,'stroke':_0x1ec2f7,'evented':!0x0});this[_0x5f086(0xf1)]=_0x34222b,this[_0x5f086(0x146)][_0x5f086(0x2af)](_0x34222b,_0x45cbcb[_0x5f086(0x14d)]);const _0x40dbbe=new _0xa3a2fa[(_0x5f086(0x2b9))](_0x2c041c+_0x5cc899['Tools'][_0x5f086(0x2cc)](_0x3708e6),{'left':_0x1b13ac+_0x1c2eaf-_0x4a6391,'top':_0x495007+_0x3437dd-_0x422cf7/0x2,'height':_0x422cf7,'width':_0x422cf7,'fill':_0x3b2404||_0xa3a2fa[_0x5f086(0x117)](_0x5cc899['COLORS'][_0x5f086(0xdf)],0x0),'strokeWidth':0x0,'stroke':_0x3b2404||_0xa3a2fa[_0x5f086(0x117)](_0x5cc899[_0x5f086(0x111)][_0x5f086(0xdf)],0x0),'evented':!0x1});this['_anchorDot']=_0x40dbbe,this[_0x5f086(0x146)][_0x5f086(0x2af)](_0x40dbbe,_0x45cbcb[_0x5f086(0x14d)]);const _0x40249a=new _0x8e950f(_0x2c041c+_0x5cc899['Tools'][_0x5f086(0x2cc)](_0x3708e6),{'left':_0x1b13ac+_0x1c2eaf-_0x4a6391,'top':_0x495007+_0x3437dd-_0x12924c,'text':_0x4fab16,'color':_0x3b2404});this[_0x5f086(0x2aa)]=_0x40249a,this[_0x5f086(0x146)][_0x5f086(0x2af)](_0x40249a,_0x45cbcb['TEXT_RANGE_LAYER_INDEX']),this[_0x5f086(0x144)]=!0x1;}['_handleHover'](){const _0x2da48e=_0x3a3b32,_0x5829fa=this[_0x2da48e(0xf1)][_0x2da48e(0x16c)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x5db813=this['_anchor'][_0x2da48e(0x18c)][_0x2da48e(0x2a7)](()=>{const _0x21f492=_0x2da48e;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x21f492(0xe0)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x34780b=_0x2da48e;_0x5829fa['unsubscribe'](),_0x5db813[_0x34780b(0xe6)]();};}[_0x3a3b32(0x2fb)](_0x4bc11e,_0x42b435,_0x8a6917,_0x36fba1){const _0x21809e=_0x3a3b32,_0x14a197=new _0x5cc899[(_0x21809e(0x1e2))](_0x4bc11e)[_0x21809e(0x20a)](0.2)['toRgbString'](),_0x571b5c=new _0xa3a2fa['RegularPolygon'](_0xe5237b+_0x5cc899[_0x21809e(0xa7)][_0x21809e(0x2cc)](_0x3708e6),{'pointsGroup':_0x42b435,'fill':_0x14a197||_0xa3a2fa[_0x21809e(0x117)](_0x5cc899[_0x21809e(0x111)]['black'],0.2),'left':_0x8a6917,'top':_0x36fba1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x21809e(0x1c8)][_0x21809e(0x2f9)](_0x571b5c),this[_0x21809e(0x146)]['addObject'](_0x571b5c,_0x45cbcb[_0x21809e(0x14d)]);}[_0x3a3b32(0xea)](_0x4e56d3,_0x250033,_0x2dfb85,_0x2f160b){const _0x6935a5=_0x3a3b32,_0x127705=new _0x5cc899[(_0x6935a5(0x1e2))](_0x4e56d3)[_0x6935a5(0x20a)](0.2)['toRgbString'](),_0x499c68=new _0xa3a2fa['RegularPolygon'](_0x3df2a0+_0x5cc899[_0x6935a5(0xa7)][_0x6935a5(0x2cc)](_0x3708e6),{'pointsGroup':_0x250033,'fill':_0x127705||_0xa3a2fa[_0x6935a5(0x117)](_0x5cc899[_0x6935a5(0x111)][_0x6935a5(0xdf)],0.2),'left':_0x2dfb85,'top':_0x2f160b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x6935a5(0x1c8)]['push'](_0x499c68),this[_0x6935a5(0x146)]['addObject'](_0x499c68,_0x45cbcb[_0x6935a5(0x14d)]);}[_0x3a3b32(0x2c4)](_0x5d7845){const _0x448e21=_0x5d7845[0x0],_0x52d1c6=_0x448e21[0x0],_0x44f6d6=_0x448e21[0x2],{x:_0x39af5b,y:_0x26ce46}=_0x52d1c6,{x:_0x420771,y:_0x2a1e6b}=_0x44f6d6;return{'left':_0x39af5b,'top':_0x26ce46,'width':_0x420771-_0x39af5b,'height':_0x2a1e6b-_0x26ce46};}[_0x3a3b32(0x11c)](){const _0x1e6410=_0x3a3b32,{scaleX:_0x5e221c,scaleY:_0x34616d}=this[_0x1e6410(0x146)]['getAncestorScale']();return Math[_0x1e6410(0x2b1)](_0x5e221c,_0x34616d);}}var _0x64439c=Object[_0x3a3b32(0x26d)],_0xfe4265=(_0x47ff78,_0x37d6b4,_0x11e3df,_0x92bfcf)=>{const _0x1f6b13=_0x3a3b32;for(var _0x8b2618=_0x92bfcf>0x1?void 0x0:_0x92bfcf?_0x64439c(_0x37d6b4,_0x11e3df):_0x37d6b4,_0x4fbee8=_0x47ff78[_0x1f6b13(0xb3)]-0x1,_0x3b1bba;_0x4fbee8>=0x0;_0x4fbee8--)(_0x3b1bba=_0x47ff78[_0x4fbee8])&&(_0x8b2618=_0x3b1bba(_0x8b2618)||_0x8b2618);return _0x8b2618;},_0x2f1100=(_0x43afb5,_0x4cc7ec)=>(_0x46ad83,_0x4f77b8)=>_0x4cc7ec(_0x46ad83,_0x4f77b8,_0x43afb5);let _0xf4fa45=class extends _0x5cc899[_0x3a3b32(0x2ef)]{constructor(_0x2229cf,_0x105067,_0x2d3ef1,_0xba3ee2,_0x432384){const _0x270235=_0x3a3b32;super(),_0x40a5a2(this,'_cursorShapes',[]),_0x40a5a2(this,_0x270235(0x102),[]),(this['_context']=_0x2229cf,this[_0x270235(0x180)]=_0x105067,this['_collabCursorController']=_0x2d3ef1,this[_0x270235(0x25d)]=_0xba3ee2,this[_0x270235(0x274)]=_0x432384,this['_init']());}[_0x3a3b32(0xa2)](){const _0x190cea=_0x3a3b32,_0x105820=this[_0x190cea(0x2a9)][_0x190cea(0x196)],_0x28db7c=this[_0x190cea(0x180)];this['disposeWithMe'](_0x16a76f['combineLatest']([this['_collabCursorController'][_0x190cea(0x300)](_0x105820),this[_0x190cea(0x274)][_0x190cea(0x2a0)]])[_0x190cea(0x9a)](_0x4faa9f[_0x190cea(0x12b)](([_0x1ac27b,_0x552193])=>({'skeleton':_0x28db7c[_0x190cea(0x8c)](),'cursors':[..._0x1ac27b['values']()][_0x190cea(0xb2)](_0x469376=>({..._0x469376,'color':this[_0x190cea(0x274)][_0x190cea(0x2f3)](_0x469376[_0x190cea(0x322)])}))})))['subscribe'](_0x1f9af0=>{const _0x3aa297=_0x190cea;if(this[_0x3aa297(0xfd)](),_0x1f9af0){const {skeleton:_0x4b26e7,cursors:_0xe74974}=_0x1f9af0;this[_0x3aa297(0xe9)](_0x4b26e7,_0xe74974);}})),this[_0x190cea(0x27e)](),this[_0x190cea(0x17d)]();}['_updateCollabCursors'](_0x2942dd,_0x132090){const _0x4f7f4b=_0x3a3b32,{scene:_0x2dcf0e,mainComponent:_0x1ee2ce}=this[_0x4f7f4b(0x2a9)],_0x105b49=_0x132090[_0x4f7f4b(0x12b)](_0x58eccd=>new _0x2d8a56(_0x58eccd,_0x2dcf0e,_0x2942dd,_0x1ee2ce));this['_cursorShapes']=_0x105b49,this[_0x4f7f4b(0x102)]=_0x132090;}[_0x3a3b32(0x2e3)](){const _0x5dab5f=_0x3a3b32;this[_0x5dab5f(0xfd)]();const {scene:_0x30c4ce,mainComponent:_0x2ec19d}=this[_0x5dab5f(0x2a9)],_0x58fcc1=this['_docSkeletonManagerService'][_0x5dab5f(0x8c)](),_0x47f39c=this[_0x5dab5f(0x102)][_0x5dab5f(0x12b)](_0x126425=>new _0x2d8a56(_0x126425,_0x30c4ce,_0x58fcc1,_0x2ec19d));this[_0x5dab5f(0x22f)]=_0x47f39c;}[_0x3a3b32(0xfd)](){const _0x1c59c5=_0x3a3b32;this['_cursorShapes'][_0x1c59c5(0x291)](_0xa7b94a=>_0xa7b94a[_0x1c59c5(0x23e)]()),this[_0x1c59c5(0x22f)]=[];}['_initCommandExecutedListener'](){const _0x3bd91d=_0x3a3b32,_0x11c9e7=[_0x45cbcb[_0x3bd91d(0x150)]['id']];this[_0x3bd91d(0x16f)](this[_0x3bd91d(0x25d)][_0x3bd91d(0x1b1)](_0x2c6326=>{const _0x1ac741=_0x3bd91d;_0x11c9e7['includes'](_0x2c6326['id'])&&_0x2c6326[_0x1ac741(0x323)][_0x1ac741(0x196)]===this[_0x1ac741(0x2a9)][_0x1ac741(0x196)]&&this[_0x1ac741(0x2e3)]();}));}[_0x3a3b32(0x27e)](){const _0x2ef1b0=_0x3a3b32;this[_0x2ef1b0(0x16f)](_0x5cc899['fromEventSubject'](this[_0x2ef1b0(0x2a9)]['engine'][_0x2ef1b0(0xad)])['pipe'](_0x4faa9f[_0x2ef1b0(0xe8)](_0x135092=>_0x135092[_0x2ef1b0(0x189)]===_0xa3a2fa[_0x2ef1b0(0x28b)][_0x2ef1b0(0x163)]),_0x4faa9f[_0x2ef1b0(0x2cf)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};_0xf4fa45=_0xfe4265([_0x2f1100(0x1,_0x5cc899[_0x3a3b32(0x27f)](_0xcf3dad[_0x3a3b32(0xbf)])),_0x2f1100(0x2,_0x5cc899[_0x3a3b32(0x27f)](_0x6e1b81)),_0x2f1100(0x3,_0x5cc899[_0x3a3b32(0x234)]),_0x2f1100(0x4,_0x5cc899[_0x3a3b32(0x27f)](_0x5cc899[_0x3a3b32(0x99)]))],_0xf4fa45);const _0x475930=0x1,_0x53128f=1.5;class _0x56e01b extends _0xa3a2fa[_0x3a3b32(0x24b)]{constructor(_0x156d1f,_0x426cc5){const _0x50e81c=_0x3a3b32;super(_0x156d1f,_0x426cc5),_0x40a5a2(this,_0x50e81c(0x15b)),_0x40a5a2(this,_0x50e81c(0x167),!0x1),_0x40a5a2(this,'_range'),_0x40a5a2(this,_0x50e81c(0x21c),''),_0x40a5a2(this,'_labelPosition',_0x50e81c(0x97)),_0x40a5a2(this,_0x50e81c(0x104)),(_0x426cc5&&this[_0x50e81c(0x1b9)](_0x426cc5),this[_0x50e81c(0x16c)][_0x50e81c(0x2a7)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x50e81c(0x18c)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x3f8959){const _0x2b7240=_0x3a3b32;var _0x5ad2cc,_0x4642fd,_0xda2cf2,_0x319410,_0x1ff739,_0x5cb3ec;this[_0x2b7240(0x15b)]=(_0x5ad2cc=_0x3f8959['color'])!=null?_0x5ad2cc:this['_color'],this['_hovered']=(_0x4642fd=_0x3f8959[_0x2b7240(0x317)])!=null?_0x4642fd:this[_0x2b7240(0x167)],this[_0x2b7240(0x265)]=(_0xda2cf2=_0x3f8959[_0x2b7240(0x2d7)])!=null?_0xda2cf2:this[_0x2b7240(0x265)],this[_0x2b7240(0x21c)]=(_0x319410=_0x3f8959[_0x2b7240(0x17f)])!=null?_0x319410:this[_0x2b7240(0x21c)],this['_labelPosition']=(_0x1ff739=_0x3f8959[_0x2b7240(0x1df)])!=null?_0x1ff739:this[_0x2b7240(0xc2)],this[_0x2b7240(0x104)]=(_0x5cb3ec=_0x3f8959[_0x2b7240(0x1f6)])!=null?_0x5cb3ec:this[_0x2b7240(0x104)],this['transformByState']({'width':_0x3f8959[_0x2b7240(0x182)],'height':_0x3f8959[_0x2b7240(0x29d)]});}[_0x3a3b32(0xeb)](_0x21dfa8){const _0x27c551=_0x3a3b32,{row:_0x1b287c,column:_0xa6767d}=_0x21dfa8;if(_0x1b287c>=this[_0x27c551(0x265)][_0x27c551(0x2ad)]&&_0x1b287c<=this[_0x27c551(0x265)][_0x27c551(0x161)]&&_0xa6767d>=this[_0x27c551(0x265)][_0x27c551(0x198)]&&_0xa6767d<=this[_0x27c551(0x265)]['endColumn']){this[_0x27c551(0x1b9)]({'hovered':!0x0});return;}this[_0x27c551(0x1b9)]({'hovered':!0x1});}[_0x3a3b32(0x26a)](_0x4f31be){return!0x1;}[_0x3a3b32(0x297)](_0x4ab01f){const _0x17e4f2=_0x3a3b32;_0xa3a2fa[_0x17e4f2(0x2b9)][_0x17e4f2(0x91)](_0x4ab01f,{'width':this['width'],'height':this[_0x17e4f2(0x29d)],'strokeWidth':_0x53128f,'stroke':this[_0x17e4f2(0x15b)],'evented':!0x1,'fill':this[_0x17e4f2(0x104)]}),this['_hovered']&&(_0x4ab01f['save'](),_0x4ab01f['transform'](0x1,0x0,0x0,0x1,this[_0x17e4f2(0x182)],this[_0x17e4f2(0xc2)]===_0x17e4f2(0x243)?0x0:-0x14),_0x8e950f[_0x17e4f2(0x91)](_0x4ab01f,{'text':this[_0x17e4f2(0x21c)],'color':this['_color']}),_0x4ab01f['restore']());}}var _0x5aea8b=Object[_0x3a3b32(0x26d)],_0x1588dd=(_0xf4ae6b,_0x89f5ea,_0x332759,_0xf21b41)=>{for(var _0x54d659=_0xf21b41>0x1?void 0x0:_0xf21b41?_0x5aea8b(_0x89f5ea,_0x332759):_0x89f5ea,_0x5019b9=_0xf4ae6b['length']-0x1,_0xb8782b;_0x5019b9>=0x0;_0x5019b9--)(_0xb8782b=_0xf4ae6b[_0x5019b9])&&(_0x54d659=_0xb8782b(_0x54d659)||_0x54d659);return _0x54d659;},_0x5c12a6=(_0x536a2c,_0x3bf151)=>(_0x1538f1,_0x69af51)=>_0x3bf151(_0x1538f1,_0x69af51,_0x536a2c);const _0x171475=0x1389;let _0x97462d=class extends _0x5cc899['RxDisposable']{constructor(_0x12daa0,_0x603473,_0x20e263,_0x58d934){const _0x3b6099=_0x3a3b32;super(),_0x40a5a2(this,_0x3b6099(0x102),new Set()),_0x40a5a2(this,_0x3b6099(0x2ec),null),(this['_context']=_0x12daa0,this[_0x3b6099(0x2c1)]=_0x603473,this['_collabCursorController']=_0x20e263,this[_0x3b6099(0x274)]=_0x58d934,this[_0x3b6099(0xa2)]());}[_0x3a3b32(0xa2)](){const _0x5eb629=_0x3a3b32;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x5eb629(0x9a)](_0x4faa9f['takeUntil'](this[_0x5eb629(0x27c)]),_0x4faa9f[_0x5eb629(0x210)](_0x2043c6=>{const _0x466ee6=_0x5eb629;if(_0x2043c6){const _0x505553=_0x2043c6[_0x466ee6(0x273)];return _0x16a76f[_0x466ee6(0x24a)](this[_0x466ee6(0x2a8)][_0x466ee6(0x300)](this[_0x466ee6(0x2a9)][_0x466ee6(0x196)]),this[_0x466ee6(0x274)][_0x466ee6(0x2a0)])[_0x466ee6(0x9a)](_0x4faa9f['map'](([_0x418e75,_0x5aee82])=>{const _0x31b75a=_0x466ee6,_0x590072=new Map();return _0x418e75[_0x31b75a(0x291)]((_0x484aba,_0x12d758)=>{const _0xc716aa=_0x31b75a;if(_0x484aba[_0xc716aa(0x31a)]===_0x505553){const _0x184809={..._0x484aba};_0x184809[_0xc716aa(0x322)]=this[_0xc716aa(0x274)][_0xc716aa(0x2f3)](_0x484aba[_0xc716aa(0x322)]),_0x590072[_0xc716aa(0x194)](_0x12d758,_0x184809);}}),{'skeleton':_0x2043c6,'cursors':_0x590072};}));}return _0x16a76f['of']({'skeleton':null,'cursors':new Map()});}))[_0x5eb629(0x239)](({skeleton:_0x382af1,cursors:_0x935136})=>{const _0x1a8151=_0x5eb629;this[_0x1a8151(0xfd)](),_0x382af1&&this[_0x1a8151(0xe9)](_0x382af1,_0x935136);}),this['_sheetSkeletonManagerService'][_0x5eb629(0x226)][_0x5eb629(0x239)](_0x150d28=>{const _0x6db7cd=_0x5eb629;if(_0x150d28==null)return;const {skeleton:_0x4a8ffd}=_0x150d28,{scene:_0x371b40}=this[_0x6db7cd(0x2a9)];_0x371b40[_0x6db7cd(0x206)][_0x6db7cd(0x2a7)](_0x5cc899['debounce'](_0x599621=>{const _0x996324=_0x6db7cd;var _0x5625ac,_0x1c014f;const {offsetX:_0x22abf5,offsetY:_0xb3856b}=_0x599621,{x:_0x2d7204,y:_0x51f323}=_0x371b40['getRelativeToViewportCoord'](_0xa3a2fa[_0x996324(0x329)][_0x996324(0x23a)]([_0x22abf5,_0xb3856b])),{scaleX:_0x239703,scaleY:_0x10dec4}=_0x371b40[_0x996324(0x326)](),_0x21f29c=_0x371b40[_0x996324(0x1b5)](_0xa3a2fa[_0x996324(0x249)]['VIEW_MAIN']),_0x526a2a=_0x371b40['getVpScrollXYInfoByPosToVp'](_0xa3a2fa['Vector2'][_0x996324(0x23a)]([_0x2d7204,_0x51f323]),_0x21f29c),_0x4ad5b8=_0x4a8ffd['getCellPositionByOffset'](_0x22abf5,_0xb3856b,_0x239703,_0x10dec4,_0x526a2a);((_0x5625ac=this[_0x996324(0x2ec)])==null?void 0x0:_0x5625ac[_0x996324(0xd7)])===_0x4ad5b8[_0x996324(0xd7)]&&((_0x1c014f=this[_0x996324(0x2ec)])==null?void 0x0:_0x1c014f[_0x996324(0x10b)])===_0x4ad5b8[_0x996324(0x10b)]||this[_0x996324(0x102)][_0x996324(0x291)](_0x349d88=>{const _0x59d20a=_0x996324;_0x349d88[_0x59d20a(0xeb)](_0x4ad5b8);});},0x64));});}[_0x3a3b32(0xe9)](_0x14487c,_0x4bfb50){const _0x3d9ec1=_0x3a3b32;var _0x3e02c7;const _0xcd2d9=(_0x3e02c7=this[_0x3d9ec1(0x2c1)][_0x3d9ec1(0xa3)]())==null?void 0x0:_0x3e02c7[_0x3d9ec1(0x1b8)];if(!_0xcd2d9)return;const _0x1a62e7=this[_0x3d9ec1(0x2c0)]();if(!_0x1a62e7)return;this[_0x3d9ec1(0x102)][_0x3d9ec1(0x291)](_0x28dcd1=>{const _0x4dc331=_0x3d9ec1;_0x28dcd1[_0x4dc331(0x2a5)]();});const {scene:_0x1a0872}=_0x1a62e7,_0x339933=_0x5b2943(Array[_0x3d9ec1(0x195)](_0x4bfb50[_0x3d9ec1(0x278)]()))[_0x3d9ec1(0x12b)](_0x40a4c3=>{const _0x19cc85=_0x3d9ec1,{color:_0x4214ac,range:_0x3c543b,name:_0x582931,selection:_0x5bf3e3,sheetID:_0x3d1903}=_0x40a4c3,{startColumn:_0xec1b32,startRow:_0x4789bc,endColumn:_0x491412,endRow:_0x5c0101}=_0x3c543b,_0x481a72=_0x19b11c[_0x19cc85(0x1c1)](_0x4789bc,_0xec1b32,_0x1a0872,_0xcd2d9),_0x2d7340=_0x19b11c[_0x19cc85(0x1c1)](_0x5c0101,_0x491412,_0x1a0872,_0xcd2d9),{columnHeaderHeightAndMarginTop:_0x1317b0}=_0xcd2d9,{startX:_0x2c37a9,startY:_0x1a9a89}=_0x481a72,{endX:_0x452ba2,endY:_0x1bfb7d}=_0x2d7340,_0x44a0d9=_0x452ba2-_0x2c37a9,_0x79e548=_0x1bfb7d-_0x1a9a89,_0x151f8c={'labelPosition':_0x1a9a89-_0x1317b0>=_0x12924c?'top':_0x19cc85(0x243),'sheetID':_0x3d1903,'range':_0x3c543b,'color':_0x4214ac,'name':_0x582931,'selection':_0x5bf3e3,'left':_0x2c37a9,'top':_0x1a9a89,'width':_0x44a0d9,'height':_0x79e548,'evented':!0x1,'zIndex':_0x171475};return new _0x56e01b(_0x582931,_0x151f8c);});_0x1a0872[_0x3d9ec1(0x156)](_0x339933,_0x475930),this[_0x3d9ec1(0x102)]=new Set(_0x339933);}[_0x3a3b32(0xfd)](){var _0x149883;(_0x149883=this['_cursors'])==null||_0x149883['forEach'](_0x57a9a6=>_0x57a9a6['dispose']());}[_0x3a3b32(0x2c0)](){const _0x37f083=_0x3a3b32;return _0x19b11c[_0x37f083(0x2b6)](this[_0x37f083(0x2a9)][_0x37f083(0x139)],this[_0x37f083(0x2a9)]);}};_0x97462d=_0x1588dd([_0x5c12a6(0x1,_0x5cc899[_0x3a3b32(0x27f)](_0x19b11c[_0x3a3b32(0x1be)])),_0x5c12a6(0x2,_0x5cc899[_0x3a3b32(0x27f)](_0x6e1b81)),_0x5c12a6(0x3,_0x5cc899[_0x3a3b32(0x27f)](_0x5cc899[_0x3a3b32(0x99)]))],_0x97462d);function _0x5b2943(_0x87b8e4){const _0x38e05b=_0x3a3b32,_0x18a82a=new Map();return _0x87b8e4[_0x38e05b(0x291)](_0x147ae6=>{const _0xc7b95c=_0x38e05b;if(_0x18a82a[_0xc7b95c(0xd6)](_0x147ae6[_0xc7b95c(0x18f)])){const _0x4ff7be=_0x18a82a['get'](_0x147ae6['selection']);_0x4ff7be[_0xc7b95c(0x17f)]+=',\x20'+_0x147ae6[_0xc7b95c(0x17f)];}else _0x18a82a[_0xc7b95c(0x194)](_0x147ae6['selection'],_0x147ae6);}),Array[_0x38e05b(0x195)](_0x18a82a[_0x38e05b(0x278)]());}var _0x3d0ea2=function(){const _0x1b9865=_0x3a3b32;return _0x3d0ea2=Object[_0x1b9865(0x204)]||function(_0x11b8e4){const _0x23127a=_0x1b9865;for(var _0x487361,_0x25a332=0x1,_0x1702b3=arguments[_0x23127a(0xb3)];_0x25a332<_0x1702b3;_0x25a332++){_0x487361=arguments[_0x25a332];for(var _0x5c3dc0 in _0x487361)Object[_0x23127a(0x286)]['hasOwnProperty'][_0x23127a(0x1f1)](_0x487361,_0x5c3dc0)&&(_0x11b8e4[_0x5c3dc0]=_0x487361[_0x5c3dc0]);}return _0x11b8e4;},_0x3d0ea2[_0x1b9865(0x178)](this,arguments);},_0x2583e4=function(_0x59dc7e,_0x22621d){const _0x276a15=_0x3a3b32;var _0xc24814={};for(var _0x1b979e in _0x59dc7e)Object['prototype'][_0x276a15(0x12e)][_0x276a15(0x1f1)](_0x59dc7e,_0x1b979e)&&_0x22621d[_0x276a15(0xfc)](_0x1b979e)<0x0&&(_0xc24814[_0x1b979e]=_0x59dc7e[_0x1b979e]);if(_0x59dc7e!=null&&typeof Object[_0x276a15(0x19c)]=='function'){for(var _0x581475=0x0,_0x1b979e=Object['getOwnPropertySymbols'](_0x59dc7e);_0x581475<_0x1b979e[_0x276a15(0xb3)];_0x581475++)_0x22621d[_0x276a15(0xfc)](_0x1b979e[_0x581475])<0x0&&Object[_0x276a15(0x286)][_0x276a15(0x230)]['call'](_0x59dc7e,_0x1b979e[_0x581475])&&(_0xc24814[_0x1b979e[_0x581475]]=_0x59dc7e[_0x1b979e[_0x581475]]);}return _0xc24814;},_0x5183b0=_0x4d5c38['forwardRef'](function(_0x5639fc,_0x552697){const _0x1ec921=_0x3a3b32;var _0x154493=_0x5639fc[_0x1ec921(0xe5)],_0x18ec9a=_0x5639fc['id'],_0x43cdb9=_0x5639fc[_0x1ec921(0x1f3)],_0x2c537f=_0x5639fc[_0x1ec921(0x1d0)],_0x44d4cc=_0x2583e4(_0x5639fc,[_0x1ec921(0xe5),'id',_0x1ec921(0x1f3),_0x1ec921(0x1d0)]),_0x20edf0=_0x1ec921(0x133)[_0x1ec921(0x24f)](_0x18ec9a,'\x20')[_0x1ec921(0x24f)](_0x43cdb9||'')[_0x1ec921(0xf8)](),_0xfe947b=_0x4d5c38[_0x1ec921(0x121)]('_'[_0x1ec921(0x24f)](_0x3fd373()));return _0xdd1f99(_0x154493,''[_0x1ec921(0x24f)](_0x18ec9a),{'defIds':_0x154493[_0x1ec921(0xab)],'idSuffix':_0xfe947b[_0x1ec921(0x148)]},_0x3d0ea2({'ref':_0x552697,'className':_0x20edf0},_0x44d4cc),_0x2c537f);});function _0xdd1f99(_0x110c4f,_0x405994,_0x284ce6,_0x3b6fc4,_0x417d1c){const _0x3825a0=_0x3a3b32;return _0x4d5c38[_0x3825a0(0x241)](_0x110c4f[_0x3825a0(0x303)],_0x3d0ea2(_0x3d0ea2({'key':_0x405994},_0x145756(_0x110c4f,_0x284ce6,_0x417d1c)),_0x3b6fc4),(_0x3ac0ea(_0x110c4f,_0x284ce6)[_0x3825a0(0x25e)]||[])[_0x3825a0(0x12b)](function(_0x4dc577,_0x289810){const _0x2e9bbc=_0x3825a0;return _0xdd1f99(_0x4dc577,''[_0x2e9bbc(0x24f)](_0x405994,'-')[_0x2e9bbc(0x24f)](_0x110c4f[_0x2e9bbc(0x303)],'-')[_0x2e9bbc(0x24f)](_0x289810),_0x284ce6,void 0x0,_0x417d1c);}));}function _0x145756(_0x2d3682,_0x176a9b,_0x502249){const _0x46bf5b=_0x3a3b32;var _0x284215=_0x3d0ea2({},_0x2d3682[_0x46bf5b(0x183)]);_0x502249!=null&&_0x502249['colorChannel1']&&_0x284215[_0x46bf5b(0x242)]===_0x46bf5b(0x254)&&(_0x284215[_0x46bf5b(0x242)]=_0x502249[_0x46bf5b(0x254)]),_0x2d3682[_0x46bf5b(0x303)]==='mask'&&_0x284215['id']&&(_0x284215['id']=_0x284215['id']+_0x176a9b[_0x46bf5b(0xcd)]),Object[_0x46bf5b(0x11f)](_0x284215)[_0x46bf5b(0x291)](function(_0x4f68ec){const _0x1ced81=_0x46bf5b;var _0x2fc673=_0x4f68ec[0x0],_0x77774f=_0x4f68ec[0x1];_0x2fc673===_0x1ced81(0xb6)&&typeof _0x77774f=='string'&&(_0x284215[_0x2fc673]=_0x77774f[_0x1ced81(0x215)](/url\(#(.*)\)/,_0x1ced81(0xbb)['concat'](_0x176a9b[_0x1ced81(0xcd)],')')));});var _0x3cf53d=_0x176a9b['defIds'];return!_0x3cf53d||_0x3cf53d[_0x46bf5b(0xb3)]===0x0||(_0x2d3682['tag']===_0x46bf5b(0x1cb)&&_0x284215['xlink:href']&&(_0x284215[_0x46bf5b(0x2c9)]=_0x284215[_0x46bf5b(0x2c9)]+_0x176a9b[_0x46bf5b(0xcd)]),Object[_0x46bf5b(0x11f)](_0x284215)[_0x46bf5b(0x291)](function(_0x53736c){const _0x2d99ed=_0x46bf5b;var _0x188a26=_0x53736c[0x0],_0x5cc525=_0x53736c[0x1];typeof _0x5cc525==_0x2d99ed(0x21a)&&(_0x284215[_0x188a26]=_0x5cc525[_0x2d99ed(0x215)](/url\(#(.*)\)/,_0x2d99ed(0xbb)[_0x2d99ed(0x24f)](_0x176a9b['idSuffix'],')')));})),_0x284215;}function _0x3ac0ea(_0x3a2995,_0x57f661){const _0x376b4d=_0x3a3b32;var _0xcd4fb2,_0x43b9aa=_0x57f661['defIds'];return!_0x43b9aa||_0x43b9aa[_0x376b4d(0xb3)]===0x0?_0x3a2995:_0x3a2995[_0x376b4d(0x303)]===_0x376b4d(0xa0)&&(!((_0xcd4fb2=_0x3a2995['children'])===null||_0xcd4fb2===void 0x0)&&_0xcd4fb2['length'])?_0x3d0ea2(_0x3d0ea2({},_0x3a2995),{'children':_0x3a2995[_0x376b4d(0x25e)][_0x376b4d(0x12b)](function(_0x50d287){const _0x12a762=_0x376b4d;return typeof _0x50d287[_0x12a762(0x183)]['id']==_0x12a762(0x21a)&&_0x43b9aa&&_0x43b9aa[_0x12a762(0x2a2)](_0x50d287[_0x12a762(0x183)]['id'])?_0x3d0ea2(_0x3d0ea2({},_0x50d287),{'attrs':_0x3d0ea2(_0x3d0ea2({},_0x50d287[_0x12a762(0x183)]),{'id':_0x50d287[_0x12a762(0x183)]['id']+_0x57f661['idSuffix']})}):_0x50d287;})}):_0x3a2995;}function _0x3fd373(){const _0x412be6=_0x3a3b32;return Math['random']()[_0x412be6(0x8e)](0x24)['substring'](0x2,0x8);}_0x5183b0[_0x3a3b32(0x1ba)]=_0x3a3b32(0xfa);var _0x2dd86c={'tag':_0x3a3b32(0x8f),'attrs':{'xmlns':_0x3a3b32(0x217),'fill':'none','viewBox':_0x3a3b32(0x1c3),'width':_0x3a3b32(0x2e4),'height':_0x3a3b32(0x2e4)},'children':[{'tag':'g','attrs':{'clipPath':_0x3a3b32(0x219)},'children':[{'tag':_0x3a3b32(0x1ee),'attrs':{'stroke':'currentColor','d':_0x3a3b32(0x2c8),'strokeLinecap':'round','strokeLinejoin':_0x3a3b32(0x324),'strokeWidth':1.2}}]},{'tag':_0x3a3b32(0xa0),'attrs':{},'children':[{'tag':_0x3a3b32(0xa5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3a3b32(0x1ee),'attrs':{'fill':_0x3a3b32(0x1ef),'d':_0x3a3b32(0x1a7)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x2dd16e=_0x4d5c38['forwardRef'](function(_0x2127be,_0x2d9598){const _0x562d04=_0x3a3b32;return _0x4d5c38[_0x562d04(0x241)](_0x5183b0,Object[_0x562d04(0x204)]({},_0x2127be,{'id':_0x562d04(0x298),'ref':_0x2d9598,'icon':_0x2dd86c}));});_0x2dd16e[_0x3a3b32(0x1ba)]=_0x3a3b32(0x213);var _0x1d73c4={'tag':_0x3a3b32(0x8f),'attrs':{'xmlns':_0x3a3b32(0x217),'fill':'none','viewBox':_0x3a3b32(0x307),'width':'1em','height':_0x3a3b32(0x2e4)},'children':[{'tag':'g','attrs':{'clipPath':_0x3a3b32(0x1c9)},'children':[{'tag':'path','attrs':{'stroke':_0x3a3b32(0x129),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x3a3b32(0x324),'strokeWidth':1.2}}]},{'tag':_0x3a3b32(0xa0),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3a3b32(0x1ee),'attrs':{'fill':_0x3a3b32(0x1ef),'d':_0x3a3b32(0x1a7),'transform':_0x3a3b32(0x32b)}}]}]}],'defIds':[_0x3a3b32(0x1cd)]},_0x15cc13=_0x4d5c38[_0x3a3b32(0xb4)](function(_0x1a8e89,_0x3009df){const _0x10b07f=_0x3a3b32;return _0x4d5c38['createElement'](_0x5183b0,Object[_0x10b07f(0x204)]({},_0x1a8e89,{'id':_0x10b07f(0x112),'ref':_0x3009df,'icon':_0x1d73c4}));});_0x15cc13[_0x3a3b32(0x1ba)]=_0x3a3b32(0x1e5);function _0x1d2708(_0x3b4ffa){const _0x268631=_0x3a3b32;switch(_0x3b4ffa){case _0x56139f['CollaborationStatus'][_0x268631(0x24e)]:return'collabStatus.offline';case _0x56139f[_0x268631(0x197)][_0x268631(0x15d)]:return _0x268631(0x302);case _0x56139f[_0x268631(0x197)][_0x268631(0x30e)]:return _0x268631(0x9b);case _0x56139f[_0x268631(0x197)][_0x268631(0x201)]:return _0x268631(0x1f7);case _0x56139f[_0x268631(0x197)][_0x268631(0x2e9)]:case _0x56139f[_0x268631(0x197)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case _0x56139f[_0x268631(0x197)][_0x268631(0x1a9)]:case _0x56139f[_0x268631(0x197)]['PENDING']:return _0x268631(0x25c);}}function _0x2cfcc7(_0x11689e){const _0xbadc14=_0x3a3b32,{status$:_0x109b7c}=_0x11689e,_0x2250d1=_0x218fbf[_0xbadc14(0x16b)](_0x109b7c,_0x56139f[_0xbadc14(0x197)][_0xbadc14(0x201)]),_0x5073d5=_0x218fbf[_0xbadc14(0x2cb)](_0x5cc899[_0xbadc14(0x268)]),_0x5ea54a=_0x218fbf[_0xbadc14(0x2cb)](_0x56139f[_0xbadc14(0x23f)]),_0x44f995=_0x2250d1!==_0x56139f[_0xbadc14(0x197)][_0xbadc14(0x24e)],_0x1e60db=_0x5073d5['t'](_0x1d2708(_0x2250d1)),_0xebafea=_0x44f995?_0x73eb1b[_0xbadc14(0xa6)](_0x15cc13,{}):_0x73eb1b['jsx'](_0x2dd16e,{}),_0x16ed70=_0x4d5c38['useCallback'](()=>{const _0x2ee28d=_0xbadc14;_0x44f995||_0x5ea54a[_0x2ee28d(0x160)]();},[_0x44f995,_0x5ea54a]);function _0x384662(){const _0x581d84=_0xbadc14;return _0x73eb1b[_0x581d84(0x165)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x16ed70,'children':[_0x73eb1b['jsx'](_0x581d84(0x2c3),{'className':_0x3b992f[_0x581d84(0x17e)](_0x581d84(0x18d),{'univer-text-green-500':_0x44f995,'univer-text-red-500':!_0x44f995}),'children':_0xebafea}),_0x73eb1b[_0x581d84(0xa6)](_0x581d84(0x2c3),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1e60db})]});}return _0x44f995?_0x384662():_0x73eb1b[_0xbadc14(0xa6)](_0x3b992f[_0xbadc14(0x11a)],{'title':_0x5073d5['t']('collab-client.tooltip.reconnect'),'children':_0x384662()});}var _0x2474bd=Object[_0x3a3b32(0x26d)],_0x2d9012=(_0x516f1d,_0xb1633d,_0x4579ba,_0x372688)=>{const _0x51bcb3=_0x3a3b32;for(var _0x56a9ce=_0x372688>0x1?void 0x0:_0x372688?_0x2474bd(_0xb1633d,_0x4579ba):_0xb1633d,_0x1bbde2=_0x516f1d[_0x51bcb3(0xb3)]-0x1,_0x20ed30;_0x1bbde2>=0x0;_0x1bbde2--)(_0x20ed30=_0x516f1d[_0x1bbde2])&&(_0x56a9ce=_0x20ed30(_0x56a9ce)||_0x56a9ce);return _0x56a9ce;},_0x32e9fa=(_0x4fc09a,_0xafa3de)=>(_0xf402b2,_0x4ae25a)=>_0xafa3de(_0xf402b2,_0x4ae25a,_0x4fc09a);_0x2bf47a[_0x3a3b32(0x2eb)]=class extends _0x5cc899[_0x3a3b32(0x1b6)]{constructor(_0x2d17ac,_0x104ec3,_0x2c81fb,_0x3f287a){const _0xab8f6d=_0x3a3b32;super(),_0x40a5a2(this,'_status$',new _0x16a76f[(_0xab8f6d(0x13e))](_0x56139f['CollaborationStatus'][_0xab8f6d(0x201)])),(this[_0xab8f6d(0x30f)]=_0x2d17ac,this['_injector']=_0x104ec3,this[_0xab8f6d(0x1d8)]=_0x2c81fb,this[_0xab8f6d(0x2ab)]=_0x3f287a,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x3a3b32(0x2b3)](){const _0x1b55df=_0x3a3b32;this['disposeWithMe'](this[_0x1b55df(0x30f)][_0x1b55df(0x159)]['pipe'](_0x16a76f['switchMap'](()=>{const _0x291353=_0x1b55df,_0x4920ba=this[_0x291353(0x30f)][_0x291353(0x1fe)]();return _0x4920ba?this[_0x291353(0x1d8)][_0x291353(0x141)](_0x4920ba[_0x291353(0x30c)]()):_0x16a76f['of'](null);}),_0x16a76f['switchMap'](_0x2ce918=>_0x2ce918?_0x2ce918[_0x1b55df(0x2ba)]:_0x16a76f['of'](_0x56139f[_0x1b55df(0x197)][_0x1b55df(0x201)])))[_0x1b55df(0x239)](_0x263dee=>{const _0x4b37a7=_0x1b55df;this[_0x4b37a7(0x2b0)][_0x4b37a7(0x282)](_0x263dee);}));}[_0x3a3b32(0x31b)](){const _0x5336a9=_0x3a3b32;this[_0x5336a9(0x16f)](this[_0x5336a9(0x2ab)][_0x5336a9(0x106)](_0x218fbf[_0x5336a9(0x2b8)]['HEADER_MENU'],()=>_0x218fbf[_0x5336a9(0x271)](_0x537d23({'status$':this['_status$'][_0x5336a9(0x1ff)]()}),this['_injector'])));}},_0x2bf47a[_0x3a3b32(0x2eb)]=_0x2d9012([_0x32e9fa(0x0,_0x5cc899[_0x3a3b32(0x10f)]),_0x32e9fa(0x1,_0x5cc899[_0x3a3b32(0x27f)](_0x5cc899[_0x3a3b32(0x281)])),_0x32e9fa(0x2,_0x5cc899[_0x3a3b32(0x27f)](_0x56139f[_0x3a3b32(0x158)])),_0x32e9fa(0x3,_0x218fbf[_0x3a3b32(0x101)])],_0x2bf47a[_0x3a3b32(0x2eb)]);function _0x537d23(_0x40624c){const {status$:_0x405d82}=_0x40624c;return function(){return _0x73eb1b['jsx'](_0x2cfcc7,{'status$':_0x405d82});};}var _0x564e58=Object[_0x3a3b32(0x26d)],_0x11bf26=(_0x2a505e,_0x7f07e0,_0x4cb76e,_0x320a42)=>{const _0x458c53=_0x3a3b32;for(var _0x4e8871=_0x320a42>0x1?void 0x0:_0x320a42?_0x564e58(_0x7f07e0,_0x4cb76e):_0x7f07e0,_0x1816f0=_0x2a505e[_0x458c53(0xb3)]-0x1,_0x5a41f0;_0x1816f0>=0x0;_0x1816f0--)(_0x5a41f0=_0x2a505e[_0x1816f0])&&(_0x4e8871=_0x5a41f0(_0x4e8871)||_0x4e8871);return _0x4e8871;},_0x538c5b=(_0x382a82,_0xd8cc0)=>(_0x232fc0,_0x2d1d98)=>_0xd8cc0(_0x232fc0,_0x2d1d98,_0x382a82);let _0x705ea4=class extends _0x5cc899[_0x3a3b32(0x1b6)]{constructor(_0x29fac4,_0x28518c,_0x3ac517,_0x2a1575,_0x570f11,_0x40d312){const _0x2228ad=_0x3a3b32;super(),this[_0x2228ad(0x2df)]=_0x29fac4,this[_0x2228ad(0x13d)]=_0x28518c,this[_0x2228ad(0x2fe)]=_0x3ac517,this[_0x2228ad(0x2d0)]=_0x2a1575,this[_0x2228ad(0x295)]=_0x570f11,this[_0x2228ad(0x279)]=_0x40d312,this[_0x2228ad(0xd3)](),this[_0x2228ad(0xc7)]();}[_0x3a3b32(0xd3)](){const _0x1e8bfd=_0x3a3b32;this[_0x1e8bfd(0x16f)](this[_0x1e8bfd(0x2df)][_0x1e8bfd(0x170)](()=>{const _0x2c9f98=_0x1e8bfd;if(this[_0x2c9f98(0x13d)][_0x2c9f98(0xd1)][_0x2c9f98(0x321)])return this[_0x2c9f98(0x279)]['t'](_0x2c9f98(0x1f4));}));}[_0x3a3b32(0xc7)](){const _0x17ded3=_0x3a3b32;this[_0x17ded3(0x16f)](this[_0x17ded3(0x2fe)][_0x17ded3(0x27b)][_0x17ded3(0x239)](_0x19ee9d=>{const _0x268e4e=_0x17ded3;_0x19ee9d['id']===_0x56139f[_0x268e4e(0x2a3)][_0x268e4e(0x29e)]&&this['_messageService'][_0x268e4e(0x2bb)]({'type':_0x3b992f['MessageType']['Warning'],'content':this[_0x268e4e(0x279)]['t']('collaboration.single-unit.warning')}),_0x19ee9d['id']===_0x56139f[_0x268e4e(0x2a3)]['CLOSE_ROOM']&&this[_0x268e4e(0x2d0)][_0x268e4e(0x2bb)]({'type':_0x3b992f[_0x268e4e(0xf4)][_0x268e4e(0x2db)],'content':this[_0x268e4e(0x279)]['t'](_0x268e4e(0x32a))}),_0x19ee9d['id']===_0x56139f[_0x268e4e(0x2a3)][_0x268e4e(0x1a0)]&&this[_0x268e4e(0x295)][_0x268e4e(0x2bb)]({'title':this[_0x268e4e(0x279)]['t'](_0x268e4e(0xe4)),'content':this[_0x268e4e(0x279)]['t'](_0x268e4e(0x1e1)),'type':_0x268e4e(0x250),'duration':0x0}),_0x19ee9d['id']===_0x56139f[_0x268e4e(0x2a3)][_0x268e4e(0x15d)]&&this[_0x268e4e(0x2d0)][_0x268e4e(0x2bb)]({'type':_0x3b992f['MessageType']['Error'],'content':this[_0x268e4e(0x279)]['t'](_0x268e4e(0x32a))+'('+_0x19ee9d[_0x268e4e(0x124)]+')'}),_0x19ee9d['id']===_0x56139f[_0x268e4e(0x2a3)][_0x268e4e(0x23d)]&&this[_0x268e4e(0x2d0)]['show']({'type':_0x3b992f[_0x268e4e(0xf4)]['Warning'],'content':this[_0x268e4e(0x279)]['t'](_0x19ee9d[_0x268e4e(0x124)]||'')}),_0x19ee9d['id']===_0x56139f['CollaborationUIEventId'][_0x268e4e(0x25f)]&&this['_messageService'][_0x268e4e(0x2bb)]({'type':_0x3b992f[_0x268e4e(0xf4)][_0x268e4e(0x2db)],'content':this['_localeService']['t'](_0x268e4e(0x169))}),_0x19ee9d['id']===_0x56139f[_0x268e4e(0x2a3)][_0x268e4e(0x1fb)]&&this['_messageService'][_0x268e4e(0x2bb)]({'type':_0x3b992f[_0x268e4e(0xf4)][_0x268e4e(0x24d)],'content':this[_0x268e4e(0x279)]['t']('session.connection-failed')}),_0x19ee9d['id']===_0x56139f[_0x268e4e(0x2a3)][_0x268e4e(0xb7)]&&this[_0x268e4e(0x2d0)]['show']({'type':_0x3b992f[_0x268e4e(0xf4)]['Error'],'content':this[_0x268e4e(0x279)]['t'](_0x268e4e(0x1b3))});}));}};_0x705ea4=_0x11bf26([_0x538c5b(0x0,_0x218fbf['IBeforeCloseService']),_0x538c5b(0x1,_0x56139f['ILocalCacheService']),_0x538c5b(0x2,_0x5cc899['Inject'](_0x56139f[_0x3a3b32(0x119)])),_0x538c5b(0x3,_0x218fbf['IMessageService']),_0x538c5b(0x4,_0x218fbf[_0x3a3b32(0x313)]),_0x538c5b(0x5,_0x5cc899[_0x3a3b32(0x27f)](_0x5cc899[_0x3a3b32(0x268)]))],_0x705ea4);const _0x41e66c='collaboration-client-ui.config',_0x5918aa={},_0x179a0b=_0x5cc899[_0x3a3b32(0x103)]('uni.network.url-service');var _0x330d67=Object[_0x3a3b32(0x26d)],_0x57bb93=(_0x9775cd,_0x2ed15b,_0x234fab,_0x1f124e)=>{const _0x27420f=_0x3a3b32;for(var _0x327126=_0x1f124e>0x1?void 0x0:_0x1f124e?_0x330d67(_0x2ed15b,_0x234fab):_0x2ed15b,_0x3b352b=_0x9775cd[_0x27420f(0xb3)]-0x1,_0x3c4898;_0x3b352b>=0x0;_0x3b352b--)(_0x3c4898=_0x9775cd[_0x3b352b])&&(_0x327126=_0x3c4898(_0x327126)||_0x327126);return _0x327126;},_0x5cbe33=(_0x93807d,_0x41a98f)=>(_0x786957,_0x39cf32)=>_0x41a98f(_0x786957,_0x39cf32,_0x93807d);_0x2bf47a['CollaborationDataLoaderController']=class extends _0x5cc899[_0x3a3b32(0x2ef)]{constructor(_0x2ea833,_0x2ca6f2,_0x1d6cf3,_0x2f41a3,_0x424538){const _0x42ee49=_0x3a3b32;super(),this[_0x42ee49(0xee)]=_0x2ea833,this['_logService']=_0x2ca6f2,this[_0x42ee49(0x25d)]=_0x1d6cf3,this[_0x42ee49(0x1d2)]=_0x2f41a3,_0x424538?_0x424538==null||_0x424538[_0x42ee49(0x2d6)]()[_0x42ee49(0x20d)](()=>this[_0x42ee49(0xa2)]()):(this[_0x42ee49(0x26b)][_0x42ee49(0x1cc)](_0x42ee49(0x18a),_0x42ee49(0xcc)),this['_init']());}async[_0x3a3b32(0xa2)](){const _0x11689a=_0x3a3b32,_0x230de4=this['_urlService']['getParam'](_0x11689a(0x139)),_0x4c9495=this['_urlService']['getParam'](_0x11689a(0x189)),_0x1aabf1=this['_urlService']['getParam'](_0x11689a(0xf2));if(!_0x230de4||!_0x4c9495){this[_0x11689a(0x26b)][_0x11689a(0x1cc)](_0x11689a(0x18a),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x12bd36=await this[_0x11689a(0x1d2)][_0x11689a(0x143)](_0x230de4,Number(_0x4c9495),_0x1aabf1);_0x12bd36&&_0x12bd36 instanceof _0x5cc899[_0x11689a(0x247)]&&this[_0x11689a(0x181)](_0x12bd36);}async[_0x3a3b32(0x181)](_0x3a70c6){const _0x97e8be=_0x3a3b32;await this[_0x97e8be(0x16a)](_0x3a70c6),_0x3a70c6[_0x97e8be(0x1dc)][_0x97e8be(0x9a)](_0x16a76f['takeUntil'](this[_0x97e8be(0x27c)]))[_0x97e8be(0x239)](_0x520083=>{const _0x96494a=_0x97e8be;_0x520083&&this[_0x96494a(0x130)](_0x520083);}),this[_0x97e8be(0xee)][_0x97e8be(0x125)]['pipe'](_0x16a76f[_0x97e8be(0x105)](this[_0x97e8be(0x27c)]))['subscribe'](()=>this[_0x97e8be(0x16a)](_0x3a70c6));}[_0x3a3b32(0x130)](_0x422663,_0x4b2aa5=!0x1){const _0x4d113d=_0x3a3b32,_0x5d5766=this[_0x4d113d(0xee)]['getParam'](_0x4d113d(0xf2));_0x422663[_0x4d113d(0x17c)]()!==_0x5d5766&&this[_0x4d113d(0xee)]['setParam'](_0x4d113d(0xf2),_0x422663['getSheetId'](),_0x4b2aa5);}async[_0x3a3b32(0x16a)](_0x34e679){const _0x516011=_0x3a3b32;var _0x2e0ff0;const _0x401537=this[_0x516011(0xee)]['getParam'](_0x516011(0xf2));if(!_0x401537||!_0x34e679[_0x516011(0x166)](_0x401537)){const _0x335a9e=_0x34e679[_0x516011(0x95)]()[0x0],_0x21f100=_0x34e679[_0x516011(0x166)](_0x335a9e);if(!_0x21f100)return;this[_0x516011(0x130)](_0x21f100,!0x0),await this[_0x516011(0x25d)][_0x516011(0x1cf)](_0x156504[_0x516011(0x23c)]['id'],{'unitId':_0x34e679[_0x516011(0x30c)](),'subUnitId':_0x335a9e});return;}((_0x2e0ff0=_0x34e679[_0x516011(0x214)]())==null?void 0x0:_0x2e0ff0[_0x516011(0x17c)]())!==_0x401537&&await this[_0x516011(0x25d)][_0x516011(0x1cf)](_0x156504['SetWorksheetActivateCommand']['id'],{'unitId':_0x34e679[_0x516011(0x30c)](),'subUnitId':_0x401537});}},_0x2bf47a[_0x3a3b32(0x202)]=_0x57bb93([_0x5cbe33(0x0,_0x179a0b),_0x5cbe33(0x1,_0x5cc899[_0x3a3b32(0xca)]),_0x5cbe33(0x2,_0x5cc899[_0x3a3b32(0x234)]),_0x5cbe33(0x3,_0x5cc899[_0x3a3b32(0x27f)](_0x56139f['DataLoaderService'])),_0x5cbe33(0x4,_0x5cc899['Optional'](_0x2a95b8['IRemoteInstanceService']))],_0x2bf47a['CollaborationDataLoaderController']);var _0x437650=Object[_0x3a3b32(0x26d)],_0x3e77a7=(_0x674d2a,_0x414a35,_0x539fef,_0x2b923a)=>{const _0x2703be=_0x3a3b32;for(var _0x5195ee=_0x2b923a>0x1?void 0x0:_0x2b923a?_0x437650(_0x414a35,_0x539fef):_0x414a35,_0x3fcbf5=_0x674d2a[_0x2703be(0xb3)]-0x1,_0x2701f1;_0x3fcbf5>=0x0;_0x3fcbf5--)(_0x2701f1=_0x674d2a[_0x3fcbf5])&&(_0x5195ee=_0x2701f1(_0x5195ee)||_0x5195ee);return _0x5195ee;},_0x4dc6d0=(_0x3e6281,_0x107b93)=>(_0x3274be,_0x29915c)=>_0x107b93(_0x3274be,_0x29915c,_0x3e6281);let _0x4ba19a=class{constructor(_0x5a9cb7,_0x307873,_0x377e08){const _0x1e5439=_0x3a3b32;this[_0x1e5439(0x2ce)]=_0x5a9cb7,this['_transformService']=_0x307873,this['_renderManagerService']=_0x377e08;}[_0x3a3b32(0x2e1)](_0x4e03c4){const _0x3f85ed=_0x3a3b32;this[_0x3f85ed(0x2a6)](_0x4e03c4),this[_0x3f85ed(0xf7)](_0x4e03c4);}[_0x3a3b32(0x290)](_0x8b36aa){const _0x395f35=_0x3a3b32,{unitID:_0x46280a}=_0x8b36aa,_0x48fde0=this[_0x395f35(0x138)][_0x395f35(0xed)](_0x46280a)[_0x395f35(0x164)](_0x45cbcb[_0x395f35(0x10a)]),{redoCache:_0x5c6ffa}=_0x48fde0[_0x395f35(0x1c5)]();if(_0x5c6ffa[_0x395f35(0xb3)]===0x0)return _0x8b36aa;let _0x31c057=_0x5cc899[_0x395f35(0xa7)][_0x395f35(0x257)](_0x8b36aa[_0x395f35(0x2de)][0x0]);for(let _0x4f280a=0x0;_0x4f280a<_0x5c6ffa[_0x395f35(0xb3)];_0x4f280a++){const _0x4657e0={'id':_0x395f35(0x186),'params':{..._0x5c6ffa[_0x4f280a]}},_0xe126c2=this[_0x395f35(0x12f)][_0x395f35(0x2dd)](_0x31c057,_0x4657e0,!0x1);if(_0x158f44[_0x395f35(0x1d4)](_0xe126c2))throw _0xe126c2[_0x395f35(0x250)];_0x31c057=_0xe126c2[_0x395f35(0x16d)];}return{..._0x5cc899[_0x395f35(0xa7)][_0x395f35(0x257)](_0x8b36aa),'mutations':[_0x31c057]};}[_0x3a3b32(0x2a6)](_0x2b9a51){const _0x26e4f2=_0x3a3b32,{unitID:_0x172e88}=_0x2b9a51,_0x452ecc=this[_0x26e4f2(0x138)][_0x26e4f2(0xed)](_0x172e88)[_0x26e4f2(0x164)](_0x45cbcb[_0x26e4f2(0x10a)]),{undoCache:_0x28c323,redoCache:_0x163c98}=_0x452ecc['getUndoRedoMutationParamsCache']();if(_0x28c323[_0x26e4f2(0xb3)]===0x0||_0x163c98[_0x26e4f2(0xb3)]===0x0)return;const _0x12724d=[],_0x2bf706=[];let _0x9c722=_0x5cc899[_0x26e4f2(0xa7)][_0x26e4f2(0x257)](_0x2b9a51['mutations'][0x0]),_0x2c69d6=_0x5cc899[_0x26e4f2(0xa7)][_0x26e4f2(0x257)](_0x2b9a51['mutations'][0x0]);for(let _0x36e583=_0x28c323['length']-0x1;_0x36e583>=0x0;_0x36e583--){const _0x203194={'id':_0x26e4f2(0x186),'params':{..._0x28c323[_0x36e583]}},_0x71655={'id':'doc.mutation.rich-text-editing','params':{..._0x163c98[_0x36e583]}},_0x19d917=this[_0x26e4f2(0x12f)]['transformMutation'](_0x9c722,_0x203194,!0x1),_0x67ddbc=this[_0x26e4f2(0x12f)][_0x26e4f2(0x2dd)](_0x2c69d6,_0x71655,!0x1);if(_0x158f44[_0x26e4f2(0x1d4)](_0x19d917))throw _0x19d917[_0x26e4f2(0x250)];if(_0x158f44['isTransformMutationFailure'](_0x67ddbc))throw _0x67ddbc[_0x26e4f2(0x250)];_0x12724d[_0x26e4f2(0x212)](_0x19d917[_0x26e4f2(0xfe)][_0x26e4f2(0x323)]),_0x2bf706[_0x26e4f2(0x212)](_0x67ddbc[_0x26e4f2(0xfe)]['params']),_0x9c722=_0x19d917[_0x26e4f2(0x16d)],_0x2c69d6=_0x67ddbc['m1Prime'];}_0x452ecc[_0x26e4f2(0xc8)]({'undoCache':_0x12724d,'redoCache':_0x2bf706});}['_transformPreviousActiveRange'](_0x58427d){const _0x3644a1=_0x3a3b32,{unitID:_0x17692b}=_0x58427d,_0x1e5f10=this[_0x3644a1(0x138)]['getRenderById'](_0x17692b)['with'](_0x45cbcb[_0x3644a1(0x10a)]),_0x5c8bd5=_0x1e5f10[_0x3644a1(0x2ed)]();if(_0x5c8bd5==null)return;const _0x5a689d=[{'id':_0x3644a1(0x186),'params':{'unitId':_0x58427d[_0x3644a1(0x25a)],'actions':null,'textRanges':[_0x5c8bd5]}}],_0x5c4ed0=this['_transformService'][_0x3644a1(0x2ff)](_0x58427d,_0x5a689d);if(!_0x158f44[_0x3644a1(0xbe)](_0x5c4ed0))throw _0x5c4ed0['error'];const _0x456aa5=_0x5c4ed0[_0x3644a1(0xfe)][0x0][_0x3644a1(0x323)][_0x3644a1(0x318)];Array[_0x3644a1(0xbc)](_0x456aa5)&&_0x456aa5[_0x3644a1(0xb3)]&&_0x1e5f10[_0x3644a1(0x304)](_0x456aa5[0x0]);}};_0x4ba19a=_0x3e77a7([_0x4dc6d0(0x0,_0x5cc899[_0x3a3b32(0x27f)](_0x5cc899[_0x3a3b32(0x281)])),_0x4dc6d0(0x1,_0x158f44[_0x3a3b32(0x153)]),_0x4dc6d0(0x2,_0xa3a2fa['IRenderManagerService'])],_0x4ba19a);var _0x24a758=Object['getOwnPropertyDescriptor'],_0x14205f=(_0x44e38d,_0x2fdf82,_0x1b948c,_0x3e50c0)=>{const _0x508aba=_0x3a3b32;for(var _0x214838=_0x3e50c0>0x1?void 0x0:_0x3e50c0?_0x24a758(_0x2fdf82,_0x1b948c):_0x2fdf82,_0xf75ffc=_0x44e38d[_0x508aba(0xb3)]-0x1,_0x44b963;_0xf75ffc>=0x0;_0xf75ffc--)(_0x44b963=_0x44e38d[_0xf75ffc])&&(_0x214838=_0x44b963(_0x214838)||_0x214838);return _0x214838;},_0xd32f77=(_0x3ea8d3,_0x2cb2b7)=>(_0x124e3e,_0x202f43)=>_0x2cb2b7(_0x124e3e,_0x202f43,_0x3ea8d3);let _0x1568d1=class{constructor(_0xff9b68,_0x1e6e6d,_0x5a714e){const _0x3d1303=_0x3a3b32;this[_0x3d1303(0x2ce)]=_0xff9b68,this[_0x3d1303(0x12f)]=_0x1e6e6d,this[_0x3d1303(0x1fa)]=_0x5a714e;}[_0x3a3b32(0x1e4)](_0x4aa11b){const _0x5779e3=_0x3a3b32;this[_0x5779e3(0xb0)](_0x4aa11b);}[_0x3a3b32(0x290)](_0x37747e){const _0x38bb92=_0x3a3b32,{unitID:_0x239575}=_0x37747e,{collaboration:_0x40d3e8}=this[_0x38bb92(0x1fa)][_0x38bb92(0x8d)](_0x239575);if(_0x40d3e8['length']===0x0)return _0x37747e;let _0x50f5e4=_0x5cc899[_0x38bb92(0xa7)][_0x38bb92(0x257)](_0x37747e[_0x38bb92(0x2de)][0x0]);for(let _0x2b6f10=0x0;_0x2b6f10<_0x40d3e8[_0x38bb92(0xb3)];_0x2b6f10++){const _0x44d180={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x40d3e8[_0x2b6f10][_0x38bb92(0x196)],..._0x40d3e8[_0x2b6f10][_0x38bb92(0x2ac)]}},_0x59ab8d=this[_0x38bb92(0x12f)][_0x38bb92(0x2dd)](_0x50f5e4,_0x44d180,!0x1);if(_0x158f44[_0x38bb92(0x1d4)](_0x59ab8d))throw _0x59ab8d[_0x38bb92(0x250)];_0x50f5e4=_0x59ab8d[_0x38bb92(0x16d)];}return{..._0x5cc899['Tools'][_0x38bb92(0x257)](_0x37747e),'mutations':[_0x50f5e4]};}[_0x3a3b32(0xb0)](_0x26da2d){const _0x57b4a5=_0x3a3b32,{unitID:_0x3b3b5b}=_0x26da2d,{history:_0x46b1cb,collaboration:_0x51a44b}=this['_docStateChangeManagerService']['getStateCache'](_0x3b3b5b);if(_0x46b1cb['length']===0x0&&_0x51a44b[_0x57b4a5(0xb3)]===0x0)return;const _0x158ea1=[],_0x2e820b=[];let _0x624c6e=_0x5cc899[_0x57b4a5(0xa7)][_0x57b4a5(0x257)](_0x26da2d[_0x57b4a5(0x2de)][0x0]),_0x464dd2=_0x5cc899[_0x57b4a5(0xa7)][_0x57b4a5(0x257)](_0x26da2d[_0x57b4a5(0x2de)][0x0]);for(let _0x279563=_0x46b1cb[_0x57b4a5(0xb3)]-0x1;_0x279563>=0x0;_0x279563--){const _0x12ea0f={'id':_0x57b4a5(0x186),'params':{'unitId':_0x46b1cb[_0x279563][_0x57b4a5(0x196)],..._0x46b1cb[_0x279563][_0x57b4a5(0x1e7)]}},_0x5c7910={'id':_0x57b4a5(0x186),'params':{'unitId':_0x46b1cb[_0x279563][_0x57b4a5(0x196)],..._0x46b1cb[_0x279563][_0x57b4a5(0x2ac)]}},_0x435575=this['_transformService']['transformMutation'](_0x624c6e,_0x12ea0f,!0x1),_0xab5114=this[_0x57b4a5(0x12f)][_0x57b4a5(0x2dd)](_0x464dd2,_0x5c7910,!0x1);if(_0x158f44[_0x57b4a5(0x1d4)](_0x435575))throw _0x435575['error'];if(_0x158f44[_0x57b4a5(0x1d4)](_0xab5114))throw _0xab5114[_0x57b4a5(0x250)];_0x158ea1['unshift']({..._0x46b1cb[_0x279563],'undoState':_0x435575[_0x57b4a5(0xfe)]['params'],'redoState':_0xab5114[_0x57b4a5(0xfe)][_0x57b4a5(0x323)]}),_0x624c6e=_0x435575[_0x57b4a5(0x16d)],_0x464dd2=_0xab5114[_0x57b4a5(0x16d)];}_0x624c6e=_0x5cc899['Tools'][_0x57b4a5(0x257)](_0x26da2d[_0x57b4a5(0x2de)][0x0]),_0x464dd2=_0x5cc899['Tools']['deepClone'](_0x26da2d['mutations'][0x0]);for(let _0x989dda=_0x51a44b[_0x57b4a5(0xb3)]-0x1;_0x989dda>=0x0;_0x989dda--){const _0x3e9035={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x51a44b[_0x989dda][_0x57b4a5(0x196)],..._0x51a44b[_0x989dda]['undoState']}},_0x7a776c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x51a44b[_0x989dda][_0x57b4a5(0x196)],..._0x51a44b[_0x989dda][_0x57b4a5(0x2ac)]}},_0x46e638=this[_0x57b4a5(0x12f)]['transformMutation'](_0x624c6e,_0x3e9035,!0x1),_0x4bc47d=this[_0x57b4a5(0x12f)][_0x57b4a5(0x2dd)](_0x464dd2,_0x7a776c,!0x1);if(_0x158f44[_0x57b4a5(0x1d4)](_0x46e638))throw _0x46e638[_0x57b4a5(0x250)];if(_0x158f44[_0x57b4a5(0x1d4)](_0x4bc47d))throw _0x4bc47d[_0x57b4a5(0x250)];_0x2e820b[_0x57b4a5(0x212)]({..._0x51a44b[_0x989dda],'undoState':_0x46e638[_0x57b4a5(0xfe)]['params'],'redoState':_0x4bc47d[_0x57b4a5(0xfe)][_0x57b4a5(0x323)]}),_0x624c6e=_0x46e638[_0x57b4a5(0x16d)],_0x464dd2=_0x4bc47d[_0x57b4a5(0x16d)];}this[_0x57b4a5(0x1fa)]['setStateCache'](_0x3b3b5b,{'history':_0x158ea1,'collaboration':_0x2e820b});}};_0x1568d1=_0x14205f([_0xd32f77(0x0,_0x5cc899['Inject'](_0x5cc899[_0x3a3b32(0x281)])),_0xd32f77(0x1,_0x158f44[_0x3a3b32(0x153)]),_0xd32f77(0x2,_0x5cc899['Inject'](_0x45cbcb['DocStateChangeManagerService']))],_0x1568d1);var _0x53f23e=Object[_0x3a3b32(0x26d)],_0x20e9a0=(_0x5a9a07,_0x182da4,_0x181524,_0x5e555b)=>{const _0x5b6986=_0x3a3b32;for(var _0x3922ed=_0x5e555b>0x1?void 0x0:_0x5e555b?_0x53f23e(_0x182da4,_0x181524):_0x182da4,_0x12d0e5=_0x5a9a07[_0x5b6986(0xb3)]-0x1,_0x11fa7c;_0x12d0e5>=0x0;_0x12d0e5--)(_0x11fa7c=_0x5a9a07[_0x12d0e5])&&(_0x3922ed=_0x11fa7c(_0x3922ed)||_0x3922ed);return _0x3922ed;},_0x5ad132=(_0x2d66be,_0x158ca0)=>(_0x3e0623,_0x2f5911)=>_0x158ca0(_0x3e0623,_0x2f5911,_0x2d66be);let _0x3dddae=class{constructor(_0x7f93fc,_0x28a4db){const _0x2f3b46=_0x3a3b32;this['_injector']=_0x7f93fc,this[_0x2f3b46(0x12f)]=_0x28a4db;}[_0x3a3b32(0x132)](_0x51ac3e){const _0x2e135a=_0x3a3b32;var _0x43ab58;const _0x148875=this['_injector']['get'](_0xcf3dad[_0x2e135a(0x1de)]),_0x133e91=(_0x43ab58=_0x148875[_0x2e135a(0x222)]())!=null?_0x43ab58:[];if(_0x133e91['length']===0x0)return;const _0x9c10b8=_0x51ac3e[_0x2e135a(0x25a)],_0x389837=[{'id':_0x2e135a(0x186),'params':{'unitId':_0x9c10b8,'actions':null,'textRanges':_0x133e91}}],_0x7f8970=this[_0x2e135a(0x12f)][_0x2e135a(0x2ff)](_0x51ac3e,_0x389837);if(!_0x158f44['isTransformMutationsWithChangesetSuccess'](_0x7f8970))throw _0x7f8970['error'];const _0x467b00=_0x7f8970[_0x2e135a(0xfe)][0x0][_0x2e135a(0x323)]['textRanges'];Array[_0x2e135a(0xbc)](_0x467b00)&&_0x467b00[_0x2e135a(0xb3)]&&_0x148875[_0x2e135a(0x29a)](_0x467b00,{'unitId':_0x9c10b8,'subUnitId':_0x9c10b8},!0x1);}};_0x3dddae=_0x20e9a0([_0x5ad132(0x0,_0x5cc899[_0x3a3b32(0x27f)](_0x5cc899[_0x3a3b32(0x281)])),_0x5ad132(0x1,_0x158f44[_0x3a3b32(0x153)])],_0x3dddae);var _0x21bf26=Object[_0x3a3b32(0x26d)],_0x5849df=(_0xa6bdb7,_0x5556b1,_0x41a3f3,_0x164af1)=>{const _0x4c189e=_0x3a3b32;for(var _0x3cc068=_0x164af1>0x1?void 0x0:_0x164af1?_0x21bf26(_0x5556b1,_0x41a3f3):_0x5556b1,_0xba20c7=_0xa6bdb7[_0x4c189e(0xb3)]-0x1,_0x57a017;_0xba20c7>=0x0;_0xba20c7--)(_0x57a017=_0xa6bdb7[_0xba20c7])&&(_0x3cc068=_0x57a017(_0x3cc068)||_0x3cc068);return _0x3cc068;},_0x47a9d7=(_0x5291b0,_0x10d5bc)=>(_0x2581c9,_0x2ff5fd)=>_0x10d5bc(_0x2581c9,_0x2ff5fd,_0x5291b0);let _0x5002a1=class extends _0x5cc899['Disposable']{constructor(_0x3dcbda,_0x55e0a2,_0x20a728,_0x7fb3be,_0x45d953,_0x2726b4,_0x3d305d,_0x173c8c){const _0x512284=_0x3a3b32;super(),_0x40a5a2(this,_0x512284(0x2b0),new _0x16a76f[(_0x512284(0x13e))](_0x56139f[_0x512284(0x197)][_0x512284(0x201)])),(this['_docStateChangeManagerService']=_0x3dcbda,this[_0x512284(0x1d8)]=_0x55e0a2,this[_0x512284(0x275)]=_0x20a728,this[_0x512284(0x216)]=_0x7fb3be,this[_0x512284(0x13b)]=_0x45d953,this[_0x512284(0x22e)]=_0x2726b4,this[_0x512284(0x2d0)]=_0x3d305d,this['_localeService']=_0x173c8c,this[_0x512284(0x10e)]());}[_0x3a3b32(0x10e)](){const _0x41958b=_0x3a3b32;this[_0x41958b(0x16f)](this[_0x41958b(0x1d8)][_0x41958b(0x285)][_0x41958b(0x239)](_0x37558b=>{const _0x57f16f=_0x41958b,_0x1f7704=this[_0x57f16f(0x1fa)][_0x57f16f(0x320)][_0x57f16f(0x239)](_0xc3e18a=>{const _0x59b140=_0x57f16f;if(_0xc3e18a==null)return;const {unitId:_0x4c7803,redoState:_0x4aa07c,commandId:_0x56d302}=_0xc3e18a;if(_0x4c7803!==_0x37558b[_0x59b140(0x25a)])return;const _0x1295f0={'id':_0x56d302,'type':_0x5cc899[_0x59b140(0x184)][_0x59b140(0x96)],'params':{'unitId':_0x4c7803,'actions':_0x4aa07c[_0x59b140(0x179)],'textRanges':null}};_0x37558b[_0x59b140(0xb1)](_0x1295f0);});if(_0x37558b['disposeWithMe'](_0x1f7704),_0x37558b instanceof _0x56139f['DocCollaborationEntity']){const _0x565462={'onTransformIME':_0x120672=>this[_0x57f16f(0x275)][_0x57f16f(0x2e1)](_0x120672),'onTransformState':_0x174471=>this[_0x57f16f(0x216)][_0x57f16f(0x1e4)](_0x174471),'onTransformSelections':_0x2abaf8=>this[_0x57f16f(0x13b)]['transformSelections'](_0x2abaf8),'onSyncEditingCollabCursor':_0x7d5ee4=>this[_0x57f16f(0x22e)][_0x57f16f(0x252)](_0x7d5ee4),'onTransformRemoteChangesetByIMECache':_0x42202e=>this['_docTransformIMECacheService'][_0x57f16f(0x290)](_0x42202e),'onTransformRemoteChangesetByStateCache':_0x15fa02=>this['_docTransformStateCacheService'][_0x57f16f(0x290)](_0x15fa02)};_0x37558b[_0x57f16f(0x2e2)](_0x565462);}}));}};_0x5002a1=_0x5849df([_0x47a9d7(0x0,_0x5cc899[_0x3a3b32(0x27f)](_0x45cbcb['DocStateChangeManagerService'])),_0x47a9d7(0x1,_0x5cc899[_0x3a3b32(0x27f)](_0x56139f[_0x3a3b32(0x158)])),_0x47a9d7(0x2,_0x5cc899[_0x3a3b32(0x27f)](_0x4ba19a)),_0x47a9d7(0x3,_0x5cc899['Inject'](_0x1568d1)),_0x47a9d7(0x4,_0x5cc899[_0x3a3b32(0x27f)](_0x3dddae)),_0x47a9d7(0x5,_0x5cc899[_0x3a3b32(0x27f)](_0x4fe24f)),_0x47a9d7(0x6,_0x218fbf['IMessageService']),_0x47a9d7(0x7,_0x5cc899['Inject'](_0x5cc899[_0x3a3b32(0x268)]))],_0x5002a1);var _0x31f53e=Object[_0x3a3b32(0x26d)],_0xb54e2f=(_0x72819b,_0x38332c,_0x1ff758,_0x49b013)=>{for(var _0x5b2680=_0x49b013>0x1?void 0x0:_0x49b013?_0x31f53e(_0x38332c,_0x1ff758):_0x38332c,_0x24874b=_0x72819b['length']-0x1,_0x4a8e34;_0x24874b>=0x0;_0x24874b--)(_0x4a8e34=_0x72819b[_0x24874b])&&(_0x5b2680=_0x4a8e34(_0x5b2680)||_0x5b2680);return _0x5b2680;},_0x1be74c=(_0xb127e6,_0x1e6385)=>(_0x3142e0,_0x3e9ce0)=>_0x1e6385(_0x3142e0,_0x3e9ce0,_0xb127e6);let _0x43aa91=class extends _0x5cc899[_0x3a3b32(0x1b6)]{constructor(_0x4e20b0,_0x531d5f,_0x577a63){const _0x42309d=_0x3a3b32;super(),_0x40a5a2(this,_0x42309d(0x20c),new Map()),_0x40a5a2(this,_0x42309d(0xd0),new Map()),_0x40a5a2(this,'_disabled',!0x1),(this[_0x42309d(0xec)]=_0x4e20b0,this[_0x42309d(0x284)]=_0x531d5f,this[_0x42309d(0x94)]=_0x577a63);}[_0x3a3b32(0x1a3)](){const _0x395295=_0x3a3b32;this[_0x395295(0x1f5)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x3a3b32(0x23e)](){const _0x5dfbb4=_0x3a3b32;this[_0x5dfbb4(0x14e)]()['then'](()=>super[_0x5dfbb4(0x23e)]());}async[_0x3a3b32(0x270)](_0x189261){const _0x42a58a=_0x3a3b32;return this[_0x42a58a(0x1f5)]?null:this['_localStorageService'][_0x42a58a(0x2e6)](_0x56139f['getLocalCacheKey'](_0x189261));}async[_0x3a3b32(0x1d5)](_0x4638f4,_0x2d23ce){const _0x1857e6=_0x3a3b32;return!!this[_0x1857e6(0x284)]['setItem'](_0x4638f4,_0x2d23ce);}[_0x3a3b32(0x110)](_0x3f9749,_0x2e33d1,_0x15885f,_0x1c242b){const _0x5e41a9=_0x3a3b32,_0x423153=this[_0x5e41a9(0x94)][_0x5e41a9(0x1a6)](_0x3f9749);this['_cachedData']['set'](_0x3f9749,{'unitID':_0x3f9749,'type':_0x2e33d1,'awaitingChangeset':_0x15885f,'mutations':_0x1c242b,'rev':_0x423153}),this[_0x5e41a9(0xd0)][_0x5e41a9(0xd6)](_0x3f9749)||this['_scheduleSaving'](_0x3f9749);}[_0x3a3b32(0x1c4)](_0x3f3bb8){const _0x29e7e4=_0x3a3b32,_0x32d1f2=this[_0x29e7e4(0xba)]();_0x32d1f2===0x0?this[_0x29e7e4(0x27d)](_0x3f3bb8):this[_0x29e7e4(0xd0)][_0x29e7e4(0x194)](_0x3f3bb8,setTimeout(()=>this[_0x29e7e4(0x27d)](_0x3f3bb8),_0x32d1f2));}[_0x3a3b32(0xba)](){const _0x38c4c4=_0x3a3b32;var _0x12d99e;return(_0x12d99e=this[_0x38c4c4(0xec)]['getConfig'](_0x56139f[_0x38c4c4(0x9f)]))!=null?_0x12d99e:_0x56139f['LOCAL_CACHE_INTERVAL'];}[_0x3a3b32(0x27d)](_0x1da96a){const _0x1e85e6=_0x3a3b32,_0x20d5b7=this['_saveTaskMap']['get'](_0x1da96a);return _0x20d5b7!==void 0x0&&window['clearTimeout'](_0x20d5b7),this[_0x1e85e6(0x284)][_0x1e85e6(0x267)](_0x56139f[_0x1e85e6(0x109)](_0x1da96a),this[_0x1e85e6(0x20c)]['get'](_0x1da96a))[_0x1e85e6(0x20d)](()=>this[_0x1e85e6(0xd0)][_0x1e85e6(0x13c)](_0x1da96a));}async[_0x3a3b32(0x14e)](){const _0x2f950a=_0x3a3b32,_0x490d9f=[];this[_0x2f950a(0xd0)][_0x2f950a(0x291)]((_0x217829,_0x923f17)=>{const _0x135e13=_0x2f950a;window['clearTimeout'](_0x217829),_0x490d9f[_0x135e13(0x2f9)](this['_saveCache'](_0x923f17)[_0x135e13(0x20d)](()=>{const _0x1e0277=_0x135e13;this['_saveTaskMap'][_0x1e0277(0x13c)](_0x923f17);}));}),await Promise[_0x2f950a(0x258)](_0x490d9f);}};_0x43aa91=_0xb54e2f([_0x1be74c(0x0,_0x5cc899[_0x3a3b32(0x1a4)]),_0x1be74c(0x1,_0x5cc899[_0x3a3b32(0x1c2)]),_0x1be74c(0x2,_0x5cc899[_0x3a3b32(0x27f)](_0x158f44[_0x3a3b32(0x1db)]))],_0x43aa91);class _0x389b48 extends _0x5cc899[_0x3a3b32(0x2ef)]{constructor(){const _0x593893=_0x3a3b32;super(),_0x40a5a2(this,_0x593893(0x125)),this[_0x593893(0x125)]=_0x16a76f[_0x593893(0x211)](window,_0x593893(0x14b))[_0x593893(0x9a)](_0x16a76f['takeUntil'](this[_0x593893(0x27c)]),_0x16a76f[_0x593893(0x92)](0x1),_0x16a76f[_0x593893(0x22c)](void 0x0));}[_0x3a3b32(0x2b4)](_0xbda28,_0x388f06,_0xa21d51=!0x1){const _0x483b9a=_0x3a3b32,_0x55a72a=new URL(window[_0x483b9a(0x305)][_0x483b9a(0x2e8)]);_0x55a72a[_0x483b9a(0x1e6)]['set'](_0xbda28,_0x388f06),_0xa21d51?window['history']['replaceState']('','',_0x55a72a['toString']()):window['history'][_0x483b9a(0x253)]('','',_0x55a72a[_0x483b9a(0x8e)]());}[_0x3a3b32(0x157)](_0x10943b,_0x338af5=!0x1){const _0x5a2cf3=_0x3a3b32,_0x5d2b79=new URL(window[_0x5a2cf3(0x305)][_0x5a2cf3(0x2e8)]);_0x5d2b79[_0x5a2cf3(0x1e6)][_0x5a2cf3(0x13c)](_0x10943b),_0x338af5?window[_0x5a2cf3(0x11b)][_0x5a2cf3(0xdc)]('','',_0x5d2b79[_0x5a2cf3(0x8e)]()):window[_0x5a2cf3(0x11b)][_0x5a2cf3(0x253)]('','',_0x5d2b79[_0x5a2cf3(0x8e)]());}['getParam'](_0x56a962){const _0x27528d=_0x3a3b32;var _0x46c7da;return(_0x46c7da=new URL(window[_0x27528d(0x305)][_0x27528d(0x2e8)])[_0x27528d(0x1e6)][_0x27528d(0x2be)](_0x56a962))!=null?_0x46c7da:void 0x0;}}var _0x3db3a2=Object['defineProperty'],_0x2488fa=Object[_0x3a3b32(0x26d)],_0x5294a6=(_0x3def71,_0x535d2f,_0x163bf4)=>_0x535d2f in _0x3def71?_0x3db3a2(_0x3def71,_0x535d2f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x163bf4}):_0x3def71[_0x535d2f]=_0x163bf4,_0x43aa03=(_0x582991,_0x536654,_0x1ec4d8,_0x143e8e)=>{const _0x2d43a2=_0x3a3b32;for(var _0x51d01f=_0x143e8e>0x1?void 0x0:_0x143e8e?_0x2488fa(_0x536654,_0x1ec4d8):_0x536654,_0x25bf88=_0x582991[_0x2d43a2(0xb3)]-0x1,_0x2ec900;_0x25bf88>=0x0;_0x25bf88--)(_0x2ec900=_0x582991[_0x25bf88])&&(_0x51d01f=_0x2ec900(_0x51d01f)||_0x51d01f);return _0x51d01f;},_0x2b1506=(_0x517792,_0x294544)=>(_0x39c405,_0x4c3f4f)=>_0x294544(_0x39c405,_0x4c3f4f,_0x517792),_0x32d857=(_0x1ad088,_0x691de0,_0x5ab5c9)=>_0x5294a6(_0x1ad088,_0x691de0+'',_0x5ab5c9);const _0x34f13c='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x2bf47a[_0x3a3b32(0x235)]=class extends _0x5cc899['Plugin']{constructor(_0x31c913=_0x5918aa,_0x52b7d2,_0x1890bb,_0x46eacd){const _0x10c54c=_0x3a3b32;super(),this[_0x10c54c(0x17a)]=_0x31c913,this[_0x10c54c(0x138)]=_0x52b7d2,this[_0x10c54c(0x2ce)]=_0x1890bb,this[_0x10c54c(0xec)]=_0x46eacd;const {..._0x45d847}=_0x5cc899[_0x10c54c(0x19f)]({},_0x5918aa,this[_0x10c54c(0x17a)]);this[_0x10c54c(0xec)][_0x10c54c(0x15a)](_0x41e66c,_0x45d847);}[_0x3a3b32(0x1b4)](){const _0x420df3=_0x3a3b32;this[_0x420df3(0xaa)](),this[_0x420df3(0x10d)]();}[_0x3a3b32(0x31d)](){const _0x45e72a=_0x3a3b32;this[_0x45e72a(0x1ea)]();}['_registerDependencies'](){const _0x2966da=_0x3a3b32;var _0xb16b5e;const _0x59df19=[[_0x138d33],[_0x3dddae],[_0x4ba19a],[_0x1568d1],[_0x4fe24f],[_0x179a0b,{'useClass':_0x389b48}],[_0x225722[_0x2966da(0x177)],{'useClass':_0x225722[_0x2966da(0x209)]}],[_0x56139f[_0x2966da(0x19d)],{'useClass':_0x43aa91}],[_0x2bf47a[_0x2966da(0x2eb)]],[_0x5002a1],[_0x705ea4],[_0x6e1b81],[_0x51dd46],[_0x2bf47a[_0x2966da(0x202)]]];_0x5cc899['registerDependencies'](this[_0x2966da(0x2ce)],_0x5cc899[_0x2966da(0x1f2)](_0x59df19,(_0xb16b5e=this[_0x2966da(0x17a)])==null?void 0x0:_0xb16b5e[_0x2966da(0x255)]));}['_registerRenderDependencies'](){const _0x1cb4e4=_0x3a3b32;this[_0x1cb4e4(0x16f)](this['_renderManagerService'][_0x1cb4e4(0x294)](_0x5cc899[_0x1cb4e4(0x16e)][_0x1cb4e4(0x301)],[_0xf4fa45])),this[_0x1cb4e4(0x16f)](this[_0x1cb4e4(0x138)]['registerRenderModule'](_0x5cc899[_0x1cb4e4(0x16e)][_0x1cb4e4(0x1d3)],[_0x97462d]));}[_0x3a3b32(0x10d)](){const _0x38ffc0=_0x3a3b32;_0x5cc899[_0x38ffc0(0x100)](this['_injector'],[[_0x6e1b81],[_0x2bf47a[_0x38ffc0(0x2eb)]],[_0x5002a1],[_0x705ea4],[_0x2bf47a[_0x38ffc0(0x202)]]]);}},_0x32d857(_0x2bf47a[_0x3a3b32(0x235)],_0x3a3b32(0x14c),_0x34f13c),_0x2bf47a[_0x3a3b32(0x235)]=_0x43aa03([_0x5cc899[_0x3a3b32(0x200)](_0x56139f[_0x3a3b32(0x120)]),_0x2b1506(0x1,_0xa3a2fa[_0x3a3b32(0x231)]),_0x2b1506(0x2,_0x5cc899['Inject'](_0x5cc899[_0x3a3b32(0x281)])),_0x2b1506(0x3,_0x5cc899[_0x3a3b32(0x1a4)])],_0x2bf47a[_0x3a3b32(0x235)]);var _0xd77236=Object[_0x3a3b32(0x26d)],_0x4619ea=(_0x18bbcd,_0x2d6727,_0x323729,_0x34c7e2)=>{const _0xb54078=_0x3a3b32;for(var _0x285129=_0x34c7e2>0x1?void 0x0:_0x34c7e2?_0xd77236(_0x2d6727,_0x323729):_0x2d6727,_0xcc4cd4=_0x18bbcd[_0xb54078(0xb3)]-0x1,_0x53d9b6;_0xcc4cd4>=0x0;_0xcc4cd4--)(_0x53d9b6=_0x18bbcd[_0xcc4cd4])&&(_0x285129=_0x53d9b6(_0x285129)||_0x285129);return _0x285129;},_0x576e95=(_0x49ac41,_0x3436ab)=>(_0x3df6b2,_0x53bf1d)=>_0x3436ab(_0x3df6b2,_0x53bf1d,_0x49ac41);_0x2bf47a[_0x3a3b32(0x1aa)]=class extends _0x56139f['CollaborationSocketService']{constructor(_0x3893bc,_0x2dfbda,_0x4b857b,_0x7af82b,_0x10ca1c){super(_0x3893bc,_0x2dfbda,_0x4b857b,_0x7af82b,_0x10ca1c);}async[_0x3a3b32(0xda)](_0x582b9c){const _0x97fe49=_0x3a3b32,_0x2cb56f=await this[_0x97fe49(0x9d)](),_0x5bb669=this['_createSocketURL'](_0x582b9c,_0x2cb56f);return this[_0x97fe49(0x1d9)](_0x5bb669);}[_0x3a3b32(0x10c)](_0x1d9439,_0xec164f){const _0x59e595=_0x3a3b32,_0x549ad7=typeof window>'u'?new URL(_0x1d9439):new URL(_0x1d9439,window[_0x59e595(0x305)]['origin']);_0x549ad7[_0x59e595(0x1e6)]['set'](_0x59e595(0x2cd),_0xec164f);const _0x2b09cb=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x59e595(0x305)][_0x59e595(0x28c)]);return _0x2b09cb['get'](_0x59e595(0x1e8))&&_0x549ad7[_0x59e595(0x1e6)]['set'](_0x59e595(0x1e8),_0x2b09cb[_0x59e595(0x2be)](_0x59e595(0x1e8))),_0x549ad7[_0x59e595(0x8e)]();}async[_0x3a3b32(0x9d)](){const _0x20ce7a=_0x3a3b32;var _0x424afc,_0xb99d70,_0x463967;const _0x5b0999=this[_0x20ce7a(0xec)][_0x20ce7a(0x237)](_0x56139f[_0x20ce7a(0x147)]),_0x5c2fbc=(_0x424afc=_0x5b0999==null?void 0x0:_0x5b0999[_0x20ce7a(0x172)])!=null?_0x424afc:_0x56139f['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x463967=(_0xb99d70=(await this[_0x20ce7a(0x28f)][_0x20ce7a(0x2be)](_0x5c2fbc,{'headers':{'Content-Type':_0x20ce7a(0xe7)}}))[_0x20ce7a(0x174)])==null?void 0x0:_0xb99d70[_0x20ce7a(0x225)])!=null?_0x463967:'';}},_0x2bf47a[_0x3a3b32(0x1aa)]=_0x4619ea([_0x576e95(0x0,_0x5cc899[_0x3a3b32(0x27f)](_0x5cc899[_0x3a3b32(0x281)])),_0x576e95(0x1,_0x5cc899[_0x3a3b32(0x27f)](_0x225722[_0x3a3b32(0x1a5)])),_0x576e95(0x2,_0x5cc899['IConfigService']),_0x576e95(0x3,_0x5cc899[_0x3a3b32(0xca)]),_0x576e95(0x4,_0x158f44['ISnapshotServerService'])],_0x2bf47a[_0x3a3b32(0x1aa)]);const _0x309bfd=0x7530,_0x9b0507=_0x3a3b32(0x21b);class _0x54b25e extends _0x5cc899[_0x3a3b32(0x1b6)]{constructor(){const _0x2b7b58=_0x3a3b32;super(),_0x40a5a2(this,'_id',_0x5cc899[_0x2b7b58(0x2cc)]()),_0x40a5a2(this,_0x2b7b58(0x118),new Set()),_0x40a5a2(this,_0x2b7b58(0x1ec),new Map()),_0x40a5a2(this,_0x2b7b58(0x262),null),_0x40a5a2(this,_0x2b7b58(0x2d1),new Map()),_0x40a5a2(this,_0x2b7b58(0x28a),new Map()),this[_0x2b7b58(0xa2)]();}[_0x3a3b32(0x23e)](){const _0x5e3bf7=_0x3a3b32;super['dispose'](),this['_clearOtherTimers'][_0x5e3bf7(0x291)]((_0x3430e1,_0x49182f)=>this[_0x5e3bf7(0x1c0)](_0x49182f)),this[_0x5e3bf7(0x262)]&&window[_0x5e3bf7(0x22d)](this['_heartbeatTimer']);}[_0x3a3b32(0x136)](_0x2786e8){const _0x1e7f37=_0x3a3b32;return this['_ensureSubject'](_0x2786e8)[_0x1e7f37(0x9a)](_0x16a76f[_0x1e7f37(0x1bd)]());}['editingUnit'](_0x512ef4){const _0x16db2c=_0x3a3b32;this[_0x16db2c(0x118)]['size']===0x0&&this[_0x16db2c(0x116)](),this['_selfUnitIDs'][_0x16db2c(0x316)](_0x512ef4),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x512ef4],'isForwarded':!0x1});}['disposeUnit'](_0xddc573){const _0xb2db94=_0x3a3b32;this[_0xb2db94(0x118)][_0xb2db94(0x13c)](_0xddc573),this['_selfUnitIDs']['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0xb2db94(0x262)]);}[_0x3a3b32(0xa2)](){const _0x184a41=_0x3a3b32;this[_0x184a41(0x16f)](_0x5cc899[_0x184a41(0x311)](_0x16a76f[_0x184a41(0x211)](window,_0x184a41(0x2fa))[_0x184a41(0x239)](_0x2d23ae=>{const _0x50299c=_0x184a41;if(_0x2d23ae['key']!==_0x9b0507||!_0x2d23ae['newValue'])return;const _0x1996e8=JSON['parse'](_0x2d23ae['newValue']);this[_0x50299c(0x32d)](_0x1996e8);}))),window['addEventListener'](_0x184a41(0x277),()=>this[_0x184a41(0x185)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x184a41(0x195)](this['_selfUnitIDs'])}));}[_0x3a3b32(0x32d)](_0x28bf2b){const _0x20c0b4=_0x3a3b32;switch(_0x28bf2b[_0x20c0b4(0x189)]){case 0x0:this[_0x20c0b4(0x1b7)](_0x28bf2b);break;case 0x1:this[_0x20c0b4(0x18e)](_0x28bf2b);break;case 0x2:this[_0x20c0b4(0x312)](_0x28bf2b);break;}}[_0x3a3b32(0x1b7)](_0x54649e){const _0x45d81f=_0x3a3b32,{unitIDs:_0x386aa0,memberID:_0x13400f,isForwarded:_0x1b7594}=_0x54649e;_0x386aa0['forEach'](_0x23e44b=>{const _0x4a9b80=_0x56ac;if(!_0x1b7594&&this[_0x4a9b80(0x1ec)]['has'](_0x23e44b)&&this[_0x4a9b80(0xf6)](_0x23e44b)[_0x4a9b80(0x282)](_0x56139f[_0x4a9b80(0x30b)][_0x4a9b80(0x28d)]),!this[_0x4a9b80(0x1ec)]['has'](_0x23e44b)||!this[_0x4a9b80(0x1ec)]['get'](_0x23e44b)[_0x4a9b80(0xd6)](_0x13400f)){const _0x140414=this[_0x4a9b80(0x1ec)]['get'](_0x23e44b)||new Set();_0x140414[_0x4a9b80(0x316)](_0x13400f),this[_0x4a9b80(0x1ec)][_0x4a9b80(0x194)](_0x23e44b,_0x140414),this[_0x4a9b80(0x18b)](_0x13400f);}}),_0x1b7594||this[_0x45d81f(0x185)]({'type':0x0,'memberID':this[_0x45d81f(0x251)],'unitIDs':[...this[_0x45d81f(0x118)]],'isForwarded':!0x0});}[_0x3a3b32(0x18b)](_0x35fe0e){const _0x23788f=_0x3a3b32;this[_0x23788f(0x1c0)](_0x35fe0e);const _0xcb16d1=window[_0x23788f(0x115)](()=>{const _0x22987e=_0x23788f;this['_unitOnClients'][_0x22987e(0x291)](_0x2cf484=>{const _0x5d3d42=_0x22987e;_0x2cf484[_0x5d3d42(0x13c)](_0x35fe0e);});},_0x309bfd*0x2);this[_0x23788f(0x2d1)][_0x23788f(0x194)](_0x35fe0e,_0xcb16d1);}[_0x3a3b32(0x1c0)](_0x141701){const _0x5e723f=_0x3a3b32;if(this[_0x5e723f(0x2d1)][_0x5e723f(0xd6)](_0x141701)){const _0x1c2c40=this[_0x5e723f(0x2d1)]['get'](_0x141701);_0x1c2c40&&window[_0x5e723f(0x1ca)](_0x1c2c40),this[_0x5e723f(0x2d1)][_0x5e723f(0x194)](_0x141701,null);}}['_handleLeaveEvent'](_0xdb1cfe){const _0x4b9be9=_0x3a3b32,{memberID:_0x285b3a,unitIDs:_0x786753}=_0xdb1cfe;_0x786753[_0x4b9be9(0x291)](_0x1fcc2b=>{const _0x5110ad=_0x4b9be9;var _0x5095a5;const _0x4852d3=this[_0x5110ad(0x1ec)]['get'](_0x1fcc2b);_0x4852d3&&(_0x4852d3[_0x5110ad(0x13c)](_0x285b3a),(_0x5095a5=this[_0x5110ad(0xf6)](_0x1fcc2b))==null||_0x5095a5['next'](_0x4852d3['size']===0x0?_0x56139f['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:_0x56139f[_0x5110ad(0x30b)][_0x5110ad(0x28d)]));}),this['_removeClearOtherTimer'](_0x285b3a);}['_handleHeartbeatEvent'](_0x29eb2a){const _0x135d98=_0x3a3b32;this[_0x135d98(0x18b)](_0x29eb2a[_0x135d98(0x328)]);}[_0x3a3b32(0x185)](_0x3d35d5){const _0x244465=_0x3a3b32;localStorage[_0x244465(0x267)](_0x9b0507,JSON[_0x244465(0x2d2)](_0x3d35d5));}[_0x3a3b32(0x116)](){const _0xa6a07a=_0x3a3b32;this['_heartbeatTimer']=window[_0xa6a07a(0x155)](()=>{const _0x5ada35=_0xa6a07a;this[_0x5ada35(0x185)]({'type':0x2,'memberID':this[_0x5ada35(0x251)]});},_0x309bfd);}['_ensureSubject'](_0x933fea){const _0x391efa=_0x3a3b32;return this['_unitStatus'][_0x391efa(0xd6)](_0x933fea)||this[_0x391efa(0x28a)][_0x391efa(0x194)](_0x933fea,new _0x16a76f[(_0x391efa(0x13e))](_0x56139f[_0x391efa(0x30b)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x391efa(0x28a)][_0x391efa(0x2be)](_0x933fea);}}var _0x32591f=(_0x155586=>(_0x155586[_0x155586[_0x3a3b32(0x27a)]=0x0]='UNDEFINED',_0x155586[_0x155586['OK']=0x1]='OK',_0x155586[_0x155586['INTERNAL_ERROR']=0x2]=_0x3a3b32(0xa1),_0x155586[_0x155586[_0x3a3b32(0x1a0)]=0x3]='PERMISSION_DENIED',_0x155586[_0x155586['NOT_FOUND']=0x4]=_0x3a3b32(0x26c),_0x155586[_0x155586[_0x3a3b32(0xc9)]=0x5]=_0x3a3b32(0xc9),_0x155586[_0x155586['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x155586[_0x155586['INVALID_ARGUMENT']=0x7]=_0x3a3b32(0x140),_0x155586[_0x155586['TOO_MANY_REQUESTS']=0x8]=_0x3a3b32(0xa9),_0x155586[_0x155586['COMPLETION_FINISHED']=0x9]=_0x3a3b32(0xe3),_0x155586[_0x155586[_0x3a3b32(0x22a)]=0xa]=_0x3a3b32(0x22a),_0x155586[_0x155586[_0x3a3b32(0x205)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x155586[_0x155586[_0x3a3b32(0xfb)]=0x1771]=_0x3a3b32(0xfb),_0x155586[_0x155586[_0x3a3b32(0xc3)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x155586[_0x155586[_0x3a3b32(0x32e)]=0x1773]=_0x3a3b32(0x32e),_0x155586[_0x155586[_0x3a3b32(0x12c)]=0x1b59]=_0x3a3b32(0x12c),_0x155586[_0x155586[_0x3a3b32(0xcb)]=0x1b5a]=_0x3a3b32(0xcb),_0x155586[_0x155586[_0x3a3b32(0xd2)]=0x1b5b]=_0x3a3b32(0xd2),_0x155586[_0x155586[_0x3a3b32(0x2dc)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x155586[_0x155586[_0x3a3b32(0x131)]=0x1b5d]=_0x3a3b32(0x131),_0x155586[_0x155586[_0x3a3b32(0x21f)]=0x1f41]=_0x3a3b32(0x21f),_0x155586[_0x155586[_0x3a3b32(0xe2)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x155586[_0x155586[_0x3a3b32(0x1ad)]=0x232a]=_0x3a3b32(0x1ad),_0x155586[_0x155586[_0x3a3b32(0x314)]=0x232b]=_0x3a3b32(0x314),_0x155586[_0x155586[_0x3a3b32(0x151)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x155586[_0x155586[_0x3a3b32(0x12a)]=0x232d]=_0x3a3b32(0x12a),_0x155586[_0x155586['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x3a3b32(0x11e),_0x155586[_0x155586[_0x3a3b32(0x17b)]=0x2712]=_0x3a3b32(0x17b),_0x155586[_0x155586[_0x3a3b32(0x13a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x155586[_0x155586[_0x3a3b32(0x233)]=0x2714]=_0x3a3b32(0x233),_0x155586[_0x155586['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x3a3b32(0x2b5),_0x155586[_0x155586['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x155586[_0x155586[_0x3a3b32(0x1d1)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x155586[_0x155586[_0x3a3b32(0xa4)]=0x271d]=_0x3a3b32(0xa4),_0x155586[_0x155586[_0x3a3b32(0x1c6)]=0x271e]=_0x3a3b32(0x1c6),_0x155586[_0x155586[_0x3a3b32(0x175)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x155586[_0x155586[_0x3a3b32(0x261)]=0x2af9]=_0x3a3b32(0x261),_0x155586[_0x155586[_0x3a3b32(0x199)]=0x2ee1]=_0x3a3b32(0x199),_0x155586[_0x155586[_0x3a3b32(0x1c7)]=0x2ee2]='INVALID_INVITE_CODE',_0x155586[_0x155586[_0x3a3b32(0xf5)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x155586[_0x155586[_0x3a3b32(0x9c)]=0x2ee4]=_0x3a3b32(0x9c),_0x155586[_0x155586['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x3a3b32(0xf9),_0x155586[_0x155586[_0x3a3b32(0x240)]=0x32c9]=_0x3a3b32(0x240),_0x155586[_0x155586['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x3a3b32(0x134),_0x155586[_0x155586['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x155586[_0x155586[_0x3a3b32(0x23b)]=-0x1]=_0x3a3b32(0x23b),_0x155586))(_0x32591f||{}),_0x46081e=Object[_0x3a3b32(0x26d)],_0x3810c4=(_0x3dc2fb,_0x5d9866,_0x45b666,_0x3dfdf9)=>{const _0x5f39dd=_0x3a3b32;for(var _0x145500=_0x3dfdf9>0x1?void 0x0:_0x3dfdf9?_0x46081e(_0x5d9866,_0x45b666):_0x5d9866,_0x2a315c=_0x3dc2fb[_0x5f39dd(0xb3)]-0x1,_0x3d5931;_0x2a315c>=0x0;_0x2a315c--)(_0x3d5931=_0x3dc2fb[_0x2a315c])&&(_0x145500=_0x3d5931(_0x145500)||_0x145500);return _0x145500;},_0x568fbe=(_0x445797,_0x5ccf5d)=>(_0x500ef9,_0x153f8c)=>_0x5ccf5d(_0x500ef9,_0x153f8c,_0x445797);_0x2bf47a[_0x3a3b32(0x299)]=class extends _0x5cc899['Disposable']{constructor(_0x568981,_0x2d55db,_0x120d11){const _0x100a94=_0x3a3b32;super(),this[_0x100a94(0xc6)]=_0x568981,this[_0x100a94(0x28f)]=_0x2d55db,this[_0x100a94(0xec)]=_0x120d11;}async[_0x3a3b32(0x30d)](_0xb0cd9e,_0x2f8e5d,_0x5a108f,..._0x3bb78b){const _0x403c2b=_0x3a3b32;var _0x203575,_0x4e70c5,_0x46512f,_0x4a3dbf;const _0x19f877=this['_instanceService'][_0x403c2b(0x1fe)]();if(!_0x19f877)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x259afc=((_0x203575=this[_0x403c2b(0xec)][_0x403c2b(0x237)](_0x56139f[_0x403c2b(0x1fd)]))!=null?_0x203575:_0x56139f[_0x403c2b(0x21d)])+'/'+_0xb0cd9e+_0x403c2b(0x309)+_0x2f8e5d,_0x399b30=new URL(window[_0x403c2b(0x305)][_0x403c2b(0x2e8)]),_0x226b6a={'scriptId':_0xb0cd9e,'runId':(_0x4e70c5=_0x399b30[_0x403c2b(0x1e6)][_0x403c2b(0x2be)]('runId'))!=null?_0x4e70c5:'','function':_0x2f8e5d,'unitId':_0x19f877[_0x403c2b(0x30c)](),'argsOfFunction':JSON[_0x403c2b(0x2d2)](_0x3bb78b),'invokeId':(_0x46512f=_0x5a108f[_0x403c2b(0x32c)])!=null?_0x46512f:'','executionId':(_0x4a3dbf=_0x5a108f[_0x403c2b(0x142)])!=null?_0x4a3dbf:''};try{const _0x6a3fbe=await this['_httpService'][_0x403c2b(0x280)](_0x259afc,{'body':_0x226b6a});return _0x6a3fbe['body'][_0x403c2b(0x250)]&&_0x6a3fbe[_0x403c2b(0x174)][_0x403c2b(0x250)][_0x403c2b(0x31c)]!==_0x32591f['OK']?_0x403c2b(0x248):_0x6a3fbe[_0x403c2b(0x174)][_0x403c2b(0x20e)];}catch{return _0x403c2b(0x248);}}},_0x2bf47a[_0x3a3b32(0x299)]=_0x3810c4([_0x568fbe(0x0,_0x5cc899[_0x3a3b32(0x10f)]),_0x568fbe(0x1,_0x5cc899[_0x3a3b32(0x27f)](_0x225722[_0x3a3b32(0x1a5)])),_0x568fbe(0x2,_0x5cc899[_0x3a3b32(0x1a4)])],_0x2bf47a[_0x3a3b32(0x299)]),_0x2bf47a[_0x3a3b32(0xaf)]=_0x2cfcc7,_0x2bf47a[_0x3a3b32(0x287)]=_0x179a0b,_0x2bf47a['SheetCollabCursorShape']=_0x56e01b,_0x2bf47a[_0x3a3b32(0x193)]=_0x54b25e,_0x2bf47a[_0x3a3b32(0x244)]=_0x389b48,Object[_0x3a3b32(0x315)](_0x2bf47a,Symbol[_0x3a3b32(0xae)],{'value':_0x3a3b32(0x232)});}));
1
+ function _0xc513(_0x5d3d6a,_0x2f52d8){const _0x474964=_0x4749();return _0xc513=function(_0xc51387,_0xdb79ce){_0xc51387=_0xc51387-0x118;let _0x1b0697=_0x474964[_0xc51387];return _0x1b0697;},_0xc513(_0x5d3d6a,_0x2f52d8);}function _0x4749(){const _0x4865e6=['random','LocaleService','pushState','saveOfflineData','INotificationService','hasOwnProperty','UPDATE_CURSOR','_drawTextRange','on-line-icon','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Unknown\x20user','restore','color','LICENSE_DISTRO_REJECTED','forwardRef','subscribe','UniverDrawing','collab-text-range-','width','defs','icon','getCoordByCell','_color','Module','AWAITING_WITH_PENDING','_shapes','from','url(#on-line-icon_clip0_910_349)','handleInsertRangeMoveDown','_instanceService','_cursorInfo$','amd','fromEventSubject','_scene','registerBeforeClose','subUnitId','_collabCursorState$','unit','_scheduleClearOtherTimer','updateOfflineData','memberID','RemoteUniscriptService','registerDependencies','storage','CONNECTOR_DATA_TOO_LARGE','set','RichTextEditingMutation','startsWith','UniverDesign','div','collaboration.closeRoom','height','registerRefRange','currentTheme$','_collaborationController','map','getRenderById','roomMembers$','UniverProCollaborationClient','getCollabCursors$','replace','getCellPositionByOffset','split','UniverProCollaborationClientUi','getDocRanges','_initResize','_disabled','values','NOT_COLLAB','AWAITING','yellow.400','m1Prime','InsertRangeMoveDownCommandId','DeleteRangeMoveLeftCommandId','getUnhiddenWorksheets','_logService','@univerjs/sheets-ui','_renderManagerService','onPointerMove$','_transformUndoRedoStack','_session','name','_colorAssignService','generateRandomId','DEFAULT_WS_SESSION_TICKET_URL','ticket','collaboration-client-ui.config','attrs','_docTransformStateCacheService','send','_updateSubUnitFromURLParams','isActive','next','complete','UniverInstanceType','_sheetSkeletonManagerService','MessageType','url(#$1','drawWith','urlChange$','IRemoteInstanceService','setActiveRange','2588568KwxVaZ','IURLService','RefRangeService','translate(.97)','setItem','unitId','UnitStatus','getUnitId','InsertRangeMoveRightCommandId','UniverUi','IConfigService','_httpService','_removeCollabCursors','RevisionService','href','getSkeleton','getFocusedUnit','collabStatus.fetchMiss','syncEditingCollabCursor','UniverCore','Subject','SOCKET_FAILED_RETRY','deepClone','handleIRemoveRow','React','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','collab-client.tooltip.reconnect','1em','#FFF','fillText','ILocalCacheService','INVITE_CODE_HAS_BEEN_UES','ENSURE_SNAPSHOT_EXECUTION','DependentOn','m2Prime','searchParams','onCommandExecuted','find','JOIN_ROOM_FAILED','current','jiqing.500','SetSelectionsOperation','DisposableCollection','DocCollaborationEntity','_registerRenderDependencies','_urlService','wsSessionTicketUrl','COMPLETION_FINISHED','_render','_eventUnsubscribe','CollaborationUIEventId','FETCH_MISS','@univerjs-pro/collaboration-client','unload','delete','@univerjs/drawing','_docSkeletonManagerService','YUUMI_ASYNCIO_CANCELLED','_startDocCollabCursor','getSheetObject','undoState','_onRefRangeChange','RemoveRowCommandId','subunit','_onCursorUpdate','combineLatest','createElement','indexOf','_refRangeService','2779445jcnssk','addEventListener','round','flatMap','_send','_name','roomMembers','collab-rect-range-','_initStatusListener','_imageIoService','debounce','fill','_transformHistoryAndStateStack','handleInsertCol','LICENSE_MAX_UNITS_EXCEEDED','addObjects','IBeforeCloseService','pluginName','column','transform','takeUntil','getValue','onPointerEnter$','@univerjs-pro/collaboration','params','isArray','USER_NOT_INVITED_CODE','toRgbString','deserializeRangeWithSheet','DeleteRangeMoveUpCommandId','substring','COLORS','exhaustSavingTask','UniverCollaborationClientUIPlugin','sheetID','Injector','path','CollaborationDataLoaderController','createInstance','Disposable','_clearOtherTimers','9297430OlKRfu','NOT_FOUND','_dataLoaderService','body','entries','currentColor','@univerjs/rpc','function','replaceDocRanges','YUUMI_UNABLE_LOAD_URL','_messageService','_notificationService','11362kyEfSY','_getSheetObject','YUUMI_ALL_TABLES_IS_INVALID','isEditing','requireSession','IImageIoService','xlink:href','getMember','fillStyle','executeCommand','CollaborationEvent','847KkalEJ','asObservable','EffectRefRangId','evenodd','red.300','getOwnPropertySymbols','text','saveTaskMap','LICENSE_IMPORT_SIZE_EXCEEDED','_docStateChangeManagerService','endColumn','UNAUTHENTICATED','UNRECOGNIZED','Rectangle','MOBILE_HAS_BEEN_BOUND','_injector','YUUMI_SUBSCRIPTION_NOT_FOUND','_docTransformIMECacheService','getViewport','hide','clearTimeout','_setupSubUnitSync','getMergeData','ITransformService','cursorInfo$','FromArray','show','collabStatus.offline','purple.300','_ensureSubject','application/json','currentSkeleton$','serializeRangeWithSheet','[CollaborationDataLoaderController]','EMAIL_HAS_BEEN_BOUND','history','48UUuAvj','mask','UNIVER_SHEET','error','NodePositionConvertToCursor','_hovered','loadUnit','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','override','CommandType','_localeService','handleIRemoveCol','APPLY_NON_SEQUENTIAL_REVISION','_scheduleHeartbeat','setUndoRedoMutationParamsCache','doc.mutation.rich-text-editing','BehaviorSubject','ThemeService','max','has','LOCAL_CACHE_INTERVAL','DocIMEInputManagerService','permission.content','...','debounceTime','APPLY_REVISION_CONFILICT','_collabSessionService','_init','_anchorDot','IMessageService','removeParam','@univerjs/engine-formula','@univerjs/core','PERMISSION_DENIED','measureText','APPLY_DUPLICATED','off-line-icon_clip0_910_343','call','UniverSheets','ISocketService','ALREADY_EXISTS','ILocalStorageService','disposeWithMe','shareReplay','mutations','SNAPSHOT_HAS_BEEN_REMOVED','_backgroundColor','react','_saveTaskMap','tag','setStateCache','WebURLService','LOCAL_CACHE_INTERVAL_KEY','NO_OTHER_CLIENTS_EDITING','add','string','getLocalCacheKey','LICENSE_EXPORT_SIZE_EXCEEDED','_selfUnitIDs','_range','APPLY_REJECT','onMouseMove','transformStateCache','transformMutation','DataLoaderService','startColumn','Error','CollaborationUIEventService','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','fromEvent','transformByState','_hideTimer','collab-text-anchor-','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','newValue','_collaborationUIEventService','rgba(255,\x20255,\x20255,\x200.01)','getColor','18QpCKDO','handleDeleteRangeMoveUp','_saveCache','colorChannel1','_docSyncEditingCollabCursorService','_toggleOnline','setInterval','getVpScrollXYInfoByPosToVp','_drawAnchor','collabStatus.notCollab','handleInsertRangeMoveRight','Vector2','602032xhzGmS','getParam','Plugin','addHandlerCallback','min','_toggleOffline','OTHER_CLIENTS_EDITING','OnLineIcon','setParam','_draw','_handleHover','_refreshCollabCursors','MemberService','font','IRenderManagerService','SOCKET_FAILED','_colorIndex','_updateCollabCursors','INVALID_ARGUMENT','children','length','black','getTypeOfUnitAdded$','throttleTime','DocSelectionManagerService','on-line-icon_clip0_910_349','connectInjector','_initEntityListener','DocStateChangeManagerService','dispose','9LgMNWB','svg','getOffsetConfig','getCurrentSelections','_themeService','@univerjs/ui','data','0\x200\x2016\x2016','with','_transformPreviousActiveRange','collabStatus.synced','popstate','defIds','unitID','contains','UNIVER_DOC','redoState','getRangePointData','MoveRangeCommandId','extend','_initCommandExecutedListener','YUUMI_AI_RUN_FAILED','TEXT_RANGE_LAYER_INDEX','bottom','_univerInstanceService','setAlpha','_assignedColors','parse','save','univerjs-icon\x20univerjs-icon-','rxjs/operators','_removeClearOtherTimer','_textBubble','@univerjs/docs','UniverSheetsUi','univer-flex\x20univer-items-center','_entityInit$','M0\x200H16V16H0z','clipPath','_createSocketURL','toDisposable','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','SNAPSHOT_INVALID_SNAPSHOT','reconnect','jsxs','editingUnit','stringify','ILogService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','Failed','collabCursorState$','RegularPolygon','transformMutationsWithChangeset','displayName','key','subscribeEvent','transformIMECache','getActiveRange','isTransformMutationsWithChangesetSuccess','filter','TRANSFORM_CHANGE_OBSERVABLE_TYPE','YUUMI_RATE_OVER_LIMIT','_updateLocalCursor','Warning','SessionStatus','debug','_syncEditingCollabCursorService','_labelPosition','whenReady','Inject','registerRenderModule','init','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','SYNCED','UniverIcon','Workbook','docStateChange$','ColorKit','UniverEngineRender','closePath','unshift','getMemberID','_getSessionTicket','assign','concat','getCurrentUnitForType','collaboration.single-unit.warning','ICommandService','_getScale','useRef','HTTPService','25994QdJTCp','push','_context','Shape','IUniverInstanceService','hovered','blue.400','idSuffix','setTimeout','_beforeCloseService','_cursorShapes','selections','setShapeProps','sheetId','ACTIVE_UNIT_EVENT_CHANNEL','operators','all','_roomMembers$','sessionTicket','APPLY_PERMISSION_DENIED','SheetsSelectionsService','TOO_MANY_REQUESTS','green.600','post','WebBrowserSingleActiveUnitService','getConfig','dispose$','BrowserCollaborationSocketService','getUniverSheetInstance','_handleJoinEvent','object','touchDependencies','runId','assignAColorForMemberID','textRanges','apply','react/jsx-runtime','YUUMI_TABLE_NOT_FOUND_IN_UNIT','result','pipe','getSheetId','_commandService','INVITE_CODE_ALREADY_BOUND','addClipboardHook','_unitStatus','UniverCollaborationClientPlugin','getActiveSheet','handleDeleteRangeMoveLeft','USERS_LEAVE','_docClipboardService','DesktopCollaborationStatusDisplayController','then','_handleHeartbeatEvent','@univerjs/engine-render','getItem','_id','onTransformChange$','skeleton','DOC_RANGE_TYPE','onLocalMutation','_memberService','_drawRectRange','top','loadOfflineData','_revisionService','includes','INTERNAL_ERROR','getUnitStatus$','_uiPartsService','UNDEFINED','_startSheetCollabCursor','onPointerLeave$','labelPosition','CollaborationController','startRow','engine','type','transformSelections','uni.network.url-service','search','_entities','_cursor','propertyIsEnumerable','origin','none','_configService','arc','_localCacheService','@univerjs/sheets','activeSheet$','_heartbeatTimer','SetWorksheetActivateCommand','_registerDependencies','_localStorageService','_anchor','source','selection','_online','defineProperty','ONLINE','VIEW_MAIN','Rect','executionId','_updateURLWithCurrentState','_docTransformSelectionsService','PENDING','runRefRangeMutations','ranges','prototype','_handleEvent','PY_RUNTIME_SCRIPT_ERROR','getStateCache','@univerjs/docs-ui','lineTo','Optional','range','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','createIdentifier','size','RECT','_setupBeforeClosingHandler','forEach','makeDirty','merge','collabStatus.conflict','jsx','event$','focused$','HEADER_MENU','handleMoveRange','CollaborationStatus','IUIPartsService','eventID','cursorInfo','InsertRowCommandId','imageSourceType','switchMap','trim','location','UniverRpc','runOnServer','replaceState','unsubscribe','_cachedData','_cursors','_getAnchorBounding','CollaborationSessionService','Tooltip','getOwnPropertyDescriptor','_config','addObject','_getSaveTimeout','_hover','transformRemoteChangeset','YUUMI_NO_CUBOID_FOR_QUESTION','_transformService','WebSocketService','get','_getMergeRange','SHEET_VIEWPORT_KEY','beginPath','url(#off-line-icon_clip0_910_343)','YUUMI_URL_COL_OUT_OF_RANGE','mergeOverrideWithDependencies','useDependency','INVALID_INVITE_CODE','Tools','_unitOnClients','_status$','session.will-retry','_initStatusComponent','_scheduleSaving','_collabCursorController','getSheetBySheetId','white','UniverProCollaboration','rxjs','_onCursorDelete','_doCreateSocket','clearInterval','RxDisposable','_initEvent','toString','isTransformMutationFailure','findNodePositionByCharIndex','clsx','onRendered'];_0x4749=function(){return _0x4865e6;};return _0x4749();}(function(_0x3bedb0,_0x21fc1d){const _0x119428=_0xc513,_0x554bf1=_0x3bedb0();while(!![]){try{const _0x469e56=parseInt(_0x119428(0x209))/0x1+-parseInt(_0x119428(0x3a4))/0x2*(parseInt(_0x119428(0x184))/0x3)+parseInt(_0x119428(0x32a))/0x4+parseInt(_0x119428(0x36f))/0x5+-parseInt(_0x119428(0x136))/0x6*(parseInt(_0x119428(0x3af))/0x7)+parseInt(_0x119428(0x190))/0x8+parseInt(_0x119428(0x1ae))/0x9*(-parseInt(_0x119428(0x398))/0xa);if(_0x469e56===_0x21fc1d)break;else _0x554bf1['push'](_0x554bf1['shift']());}catch(_0x5a51d7){_0x554bf1['push'](_0x554bf1['shift']());}}}(_0x4749,0x52e1a),function(_0x29f418,_0x1f293f){const _0x125c76=_0xc513;typeof exports==_0x125c76(0x227)&&typeof module<'u'?_0x1f293f(exports,require(_0x125c76(0x35e)),require(_0x125c76(0x156)),require(_0x125c76(0x23e)),require('@univerjs/network'),require(_0x125c76(0x279)),require(_0x125c76(0x361)),require(_0x125c76(0x2b9)),require(_0x125c76(0x1cf)),require(_0x125c76(0x386)),require(_0x125c76(0x155)),require(_0x125c76(0x261)),require(_0x125c76(0x1cc)),require('@univerjs/sheets-ui'),require(_0x125c76(0x22d)),require(_0x125c76(0x1b3)),require('@univerjs/design'),require(_0x125c76(0x165)),require('@univerjs/rpc')):typeof define==_0x125c76(0x39f)&&define[_0x125c76(0x2e3)]?define(['exports','@univerjs-pro/collaboration-client',_0x125c76(0x156),_0x125c76(0x23e),'@univerjs/network','@univerjs/docs-ui',_0x125c76(0x361),_0x125c76(0x2b9),_0x125c76(0x1cf),_0x125c76(0x386),'@univerjs/engine-formula',_0x125c76(0x261),'rxjs/operators',_0x125c76(0x310),_0x125c76(0x22d),_0x125c76(0x1b3),'@univerjs/design',_0x125c76(0x165),_0x125c76(0x39e)],_0x1f293f):(_0x29f418=typeof globalThis<'u'?globalThis:_0x29f418||self,_0x1f293f(_0x29f418[_0x125c76(0x303)]={},_0x29f418[_0x125c76(0x2fe)],_0x29f418[_0x125c76(0x33d)],_0x29f418[_0x125c76(0x1fc)],_0x29f418['UniverNetwork'],_0x29f418['UniverDocsUi'],_0x29f418[_0x125c76(0x2d4)],_0x29f418['rxjs'],_0x29f418['UniverDocs'],_0x29f418[_0x125c76(0x2b8)],_0x29f418['UniverEngineFormula'],_0x29f418[_0x125c76(0x15c)],_0x29f418[_0x125c76(0x2b9)][_0x125c76(0x218)],_0x29f418[_0x125c76(0x1d0)],_0x29f418[_0x125c76(0x342)],_0x29f418[_0x125c76(0x333)],_0x29f418[_0x125c76(0x2f4)],_0x29f418[_0x125c76(0x342)],_0x29f418[_0x125c76(0x294)]));}(this,function(_0x1364d3,_0x35d81a,_0x2b43e1,_0x4f9ef0,_0x519894,_0x15c8af,_0x44b6f9,_0x5ad77d,_0x854483,_0x4bbdfc,_0x56bea2,_0x575825,_0x3660b6,_0x562559,_0x356bea,_0x2d250c,_0xac66fe,_0x5544c5,_0x3716d4){'use strict';const _0x2e363d=_0xc513;var _0x4e67e1=Object[_0x2e363d(0x26b)],_0x1371fe=(_0x44c0d3,_0x188c57,_0x34a392)=>_0x188c57 in _0x44c0d3?_0x4e67e1(_0x44c0d3,_0x188c57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34a392}):_0x44c0d3[_0x188c57]=_0x34a392,_0x1b73a5=(_0x1ee6f3,_0x455272,_0x242d6e)=>_0x1371fe(_0x1ee6f3,typeof _0x455272!='symbol'?_0x455272+'':_0x455272,_0x242d6e),_0x27b18a=Object[_0x2e363d(0x29d)],_0x323db9=(_0x33719c,_0x12f893,_0xf313c8,_0x33c774)=>{const _0x17cc1a=_0x2e363d;for(var _0x1c061c=_0x33c774>0x1?void 0x0:_0x33c774?_0x27b18a(_0x12f893,_0xf313c8):_0x12f893,_0x5f3697=_0x33719c[_0x17cc1a(0x1a4)]-0x1,_0x589614;_0x5f3697>=0x0;_0x5f3697--)(_0x589614=_0x33719c[_0x5f3697])&&(_0x1c061c=_0x589614(_0x1c061c)||_0x1c061c);return _0x1c061c;},_0xcf392a=(_0x485201,_0x3df1d4)=>(_0x1ce5c4,_0x35e07a)=>_0x3df1d4(_0x1ce5c4,_0x35e07a,_0x485201);let _0x41c5dd=class extends _0x2b43e1[_0x2e363d(0x2bd)]{constructor(_0x2ac1d1,_0x2ab629){const _0x9d47f9=_0x2e363d;super(),this[_0x9d47f9(0x23a)]=_0x2ac1d1,this[_0x9d47f9(0x378)]=_0x2ab629,this[_0x9d47f9(0x151)]();}[_0x2e363d(0x151)](){const _0x4d521f=_0x2e363d,_0x3a586a=this;this[_0x4d521f(0x160)](this[_0x4d521f(0x23a)][_0x4d521f(0x234)]({'onBeforePasteImage':async _0xd257a7=>{const _0x4907cf=_0x4d521f,_0x37f3a0=await _0x3a586a['_imageIoService']['saveImage'](_0xd257a7);return _0x37f3a0?{'source':_0x37f3a0[_0x4907cf(0x268)],'imageSourceType':_0x37f3a0[_0x4907cf(0x290)]}:null;}}));}};_0x41c5dd=_0x323db9([_0xcf392a(0x0,_0x15c8af['IDocClipboardService']),_0xcf392a(0x1,_0x44b6f9[_0x2e363d(0x3a9)])],_0x41c5dd);const _0xd199bd=[_0x2e363d(0x12e),_0x2e363d(0x352),_0x2e363d(0x21f),_0x2e363d(0x3b3),_0x2e363d(0x20f),_0x2e363d(0x30a)];class _0x5daa50 extends _0x2b43e1[_0x2e363d(0x396)]{constructor(){super(...arguments),_0x1b73a5(this,'_assignedColors',new Map()),_0x1b73a5(this,'_colorIndex',0x0);}[_0x2e363d(0x22a)](_0x356ceb){const _0x400ede=_0x2e363d;if(this['_assignedColors'][_0x400ede(0x149)](_0x356ceb))return this[_0x400ede(0x1c8)]['get'](_0x356ceb);const _0x30fbb8=_0xd199bd[this['_colorIndex']];return this[_0x400ede(0x1a0)]=(this[_0x400ede(0x1a0)]+0x1)%_0xd199bd[_0x400ede(0x1a4)],this[_0x400ede(0x1c8)][_0x400ede(0x2f1)](_0x356ceb,_0x30fbb8),_0x30fbb8;}}function _0xf16511(_0x44fbfe){const _0x251ae2=_0x2e363d;let _0x5c83a9='';for(const _0x493f7c of _0x44fbfe){const {startOffset:_0x157efb,endOffset:_0x5683b9,isActive:_0x12c492,rangeType:_0x5bc9a4,segmentId:_0x1677ab,segmentPage:_0x220b0b}=_0x493f7c;_0x5c83a9[_0x251ae2(0x1a4)]&&(_0x5c83a9+=','),_0x5c83a9+=_0x157efb+':'+_0x5683b9+':'+(_0x12c492?'1':'0')+':'+_0x5bc9a4+':'+_0x1677ab+':'+_0x220b0b;}return _0x5c83a9;}function _0x214e4d(_0x178633){const _0x2832fe=_0x2e363d,_0x4fa487=_0x178633[_0x2832fe(0x302)](','),_0x4592fc=[];for(const _0x20cc44 of _0x4fa487){const [_0x281370,_0x11b66f,_0x54a148,_0x2fed48,_0x4a596f,_0x4c2fea]=_0x20cc44[_0x2832fe(0x302)](':');_0x4592fc[_0x2832fe(0x20a)]({'startOffset':Number(_0x281370),'endOffset':Number(_0x11b66f),'collapsed':_0x281370===_0x11b66f,'isActive':_0x54a148==='1','rangeType':_0x2fed48===_0x2b43e1[_0x2832fe(0x243)]['TEXT']?_0x2b43e1['DOC_RANGE_TYPE']['TEXT']:_0x2b43e1['DOC_RANGE_TYPE'][_0x2832fe(0x280)],'segmentId':typeof _0x4a596f==_0x2832fe(0x16d)?String(_0x4a596f):'','segmentPage':Number(_0x4c2fea!=null?_0x4c2fea:-0x1)});}return _0x4592fc['some'](_0x56c747=>_0x56c747[_0x2832fe(0x31f)])||(_0x4592fc[0x0]['isActive']=!0x0),_0x4592fc;}class _0x5eda65 extends _0x2b43e1[_0x2e363d(0x2bd)]{constructor(){const _0x3bccc3=_0x2e363d;super(...arguments),_0x1b73a5(this,_0x3bccc3(0x2e8),new _0x5ad77d[(_0x3bccc3(0x146))](null)),_0x1b73a5(this,_0x3bccc3(0x1e0),this['_collabCursorState$'][_0x3bccc3(0x3b0)]());}[_0x2e363d(0x33c)](_0x5487d1){const _0xe0f37e=_0x2e363d,{unitID:_0x240282,memberID:_0x1840aa,textRanges:_0x58f4ee}=_0x5487d1,_0x4476a9=_0xf16511(_0x58f4ee);if(_0x4476a9==='')return;const _0x5a034f={'unitID':_0x240282,'memberID':_0x1840aa,'selection':_0x4476a9};this[_0xe0f37e(0x2e8)]['next'](_0x5a034f);}}var _0x2533e8=Object['getOwnPropertyDescriptor'],_0x7f5cbc=(_0x564b2b,_0x1e7ca2,_0x5bf062,_0x170829)=>{const _0x597ffc=_0x2e363d;for(var _0x49cd97=_0x170829>0x1?void 0x0:_0x170829?_0x2533e8(_0x1e7ca2,_0x5bf062):_0x1e7ca2,_0x56728f=_0x564b2b[_0x597ffc(0x1a4)]-0x1,_0x58a824;_0x56728f>=0x0;_0x56728f--)(_0x58a824=_0x564b2b[_0x56728f])&&(_0x49cd97=_0x58a824(_0x49cd97)||_0x49cd97);return _0x49cd97;},_0x5e7054=(_0x2dfee7,_0xd14701)=>(_0x15debb,_0x5cd975)=>_0xd14701(_0x15debb,_0x5cd975,_0x2dfee7);const _0x199ee1=0x12c,_0x19dd5f=0x64;let _0x490396=class extends _0x2b43e1[_0x2e363d(0x2bd)]{constructor(_0xd6b79a,_0x1534b2,_0x23e832,_0x47b510,_0x573d03,_0x3d6790,_0x53c0d4,_0x4b4d1c,_0x8bdece){const _0x4a3c3b=_0x2e363d;super(),_0x1b73a5(this,_0x4a3c3b(0x26a),!0x1),_0x1b73a5(this,_0x4a3c3b(0x151),!0x1),_0x1b73a5(this,_0x4a3c3b(0x2e2),new _0x5ad77d['BehaviorSubject'](new Map())),_0x1b73a5(this,_0x4a3c3b(0x12a),this['_cursorInfo$'][_0x4a3c3b(0x3b0)]()),_0x1b73a5(this,_0x4a3c3b(0x21a),new _0x5ad77d[(_0x4a3c3b(0x146))]([])),_0x1b73a5(this,_0x4a3c3b(0x2fd),this[_0x4a3c3b(0x21a)][_0x4a3c3b(0x230)](_0x5ad77d[_0x4a3c3b(0x14e)](_0x199ee1))),_0x1b73a5(this,_0x4a3c3b(0x1ec),_0x2b43e1[_0x4a3c3b(0x379)](_0x1be959=>{const _0x55527=_0x4a3c3b,_0x24b25c={'eventID':_0x4bbdfc[_0x55527(0x3ae)][_0x55527(0x2ca)],'data':{'unitID':this['unitID'],'memberID':this[_0x55527(0x314)][_0x55527(0x1ff)](),'selection':_0xf16511(_0x1be959)}};this[_0x55527(0x314)][_0x55527(0x31d)](_0x24b25c,this[_0x55527(0x1bb)]);},_0x19dd5f)),(this[_0x4a3c3b(0x1bb)]=_0xd6b79a,this[_0x4a3c3b(0x314)]=_0x1534b2,this[_0x4a3c3b(0x121)]=_0x23e832,this['_colorAssignService']=_0x47b510,this[_0x4a3c3b(0x245)]=_0x573d03,this[_0x4a3c3b(0x1f0)]=_0x3d6790,this['_transformService']=_0x53c0d4,this[_0x4a3c3b(0x1c6)]=_0x4b4d1c,this[_0x4a3c3b(0x232)]=_0x8bdece);}get['cursorInfo'](){const _0x404d7d=_0x2e363d;return this[_0x404d7d(0x2e2)][_0x404d7d(0x384)]();}get[_0x2e363d(0x375)](){const _0x21d2be=_0x2e363d;return this[_0x21d2be(0x21a)][_0x21d2be(0x384)]();}[_0x2e363d(0x1ad)](){const _0x14f2d7=_0x2e363d;super[_0x14f2d7(0x1ad)](),this['_cursorInfo$'][_0x14f2d7(0x320)](new Map()),this[_0x14f2d7(0x2e2)][_0x14f2d7(0x321)](),this[_0x14f2d7(0x21a)][_0x14f2d7(0x320)]([]),this[_0x14f2d7(0x21a)][_0x14f2d7(0x321)]();}[_0x2e363d(0x1f5)](){const _0x4bafa7=_0x2e363d;this[_0x4bafa7(0x151)]||(this['_init']=!0x0,this[_0x4bafa7(0x314)]['sessionStatus$'][_0x4bafa7(0x230)](_0x5ad77d[_0x4bafa7(0x383)](this[_0x4bafa7(0x223)]))[_0x4bafa7(0x2d3)](_0x57c7ef=>{const _0x319b94=_0x4bafa7;_0x57c7ef===_0x35d81a[_0x319b94(0x1ee)][_0x319b94(0x26c)]?this[_0x319b94(0x189)]():this[_0x319b94(0x195)]();}),this[_0x4bafa7(0x314)][_0x4bafa7(0x287)][_0x4bafa7(0x230)](_0x5ad77d[_0x4bafa7(0x383)](this['dispose$']))['subscribe'](_0x208f42=>{const _0x451f31=_0x4bafa7,_0x114609=_0x208f42[_0x451f31(0x28d)];_0x114609===_0x4bbdfc['CollaborationEvent'][_0x451f31(0x2ca)]&&this['_onCursorUpdate'](_0x208f42),_0x114609===_0x4bbdfc[_0x451f31(0x3ae)][_0x451f31(0x239)]&&this[_0x451f31(0x2ba)](_0x208f42);}),this['disposeWithMe'](this[_0x4bafa7(0x232)][_0x4bafa7(0x34e)](_0x4391d6=>{const _0x5b7a52=_0x4bafa7,_0x332346=_0x4391d6[_0x5b7a52(0x387)];_0x332346!=null&&this[_0x5b7a52(0x26a)]&&_0x4391d6['id']===_0x854483['SetTextSelectionsOperation']['id']&&_0x332346[_0x5b7a52(0x32f)]===this[_0x5b7a52(0x1bb)]&&_0x332346[_0x5b7a52(0x3a7)]===!0x1&&_0x332346[_0x5b7a52(0x274)][_0x5b7a52(0x1a4)]>0x0&&this['_updateLocalCursor'](_0x332346[_0x5b7a52(0x274)]);})),this[_0x4bafa7(0x1f0)][_0x4bafa7(0x1e0)]['pipe'](_0x5ad77d[_0x4bafa7(0x383)](this[_0x4bafa7(0x223)]))[_0x4bafa7(0x2d3)](_0xc9d1f6=>{const _0x3cc263=_0x4bafa7;if((_0xc9d1f6==null?void 0x0:_0xc9d1f6[_0x3cc263(0x1bb)])!==this[_0x3cc263(0x1bb)])return;const _0x49cf21={'eventID':_0x4bbdfc[_0x3cc263(0x3ae)][_0x3cc263(0x2ca)],'data':_0xc9d1f6};this[_0x3cc263(0x36a)](_0x49cf21);}),this['disposeWithMe'](this[_0x4bafa7(0x232)]['onCommandExecuted'](_0x384b13=>{const _0xb20d3a=_0x4bafa7;if(_0x384b13[_0xb20d3a(0x387)]==null)return;const _0x5549be=_0x384b13[_0xb20d3a(0x387)];if(_0x384b13['id']!==_0x854483[_0xb20d3a(0x2f2)]['id']||_0x5549be[_0xb20d3a(0x32f)]!==this[_0xb20d3a(0x1bb)])return;const _0x3067d8={'id':_0xb20d3a(0x145),'params':_0x5549be},_0x2168b8=this[_0xb20d3a(0x28e)];for(const [_0x4176c8,_0x434d78]of _0x2168b8){const _0x2ccab1={'id':_0xb20d3a(0x145),'params':{'unitId':this[_0xb20d3a(0x1bb)],'actions':null,'textRanges':_0x434d78[_0xb20d3a(0x274)]}},_0x3d727a=this['_transformService'][_0xb20d3a(0x175)](_0x3067d8,_0x2ccab1,!0x1);if(_0x4bbdfc[_0xb20d3a(0x2c0)](_0x3d727a))throw _0x3d727a[_0xb20d3a(0x139)];_0x2168b8['set'](_0x4176c8,{..._0x434d78,'ranges':_0x3d727a[_0xb20d3a(0x34c)]['params'][_0xb20d3a(0x22b)]});}queueMicrotask(()=>{const _0x25dcdb=_0xb20d3a;this[_0x25dcdb(0x2e2)]['next'](_0x2168b8);});})));}['_onCursorUpdate'](_0x3140cb){const _0x2253a4=_0x2e363d;var _0x59fd6b,_0x2230d9;const {memberID:_0x5f86f2,selection:_0x59fa42}=_0x3140cb[_0x2253a4(0x1b4)],_0x3b5fb3=_0x214e4d(_0x59fa42),_0xb2f89f=(_0x2230d9=(_0x59fd6b=this['_memberService']['getMember'](this[_0x2253a4(0x1bb)],_0x5f86f2))==null?void 0x0:_0x59fd6b[_0x2253a4(0x315)])!=null?_0x2230d9:_0x2253a4(0x2ce),_0x29d36c={'color':this[_0x2253a4(0x316)][_0x2253a4(0x22a)](_0x5f86f2),'name':_0xb2f89f,'ranges':_0x3b5fb3},_0x42c146=this[_0x2253a4(0x28e)];_0x42c146['set'](_0x5f86f2,_0x29d36c),this[_0x2253a4(0x2e2)][_0x2253a4(0x320)](_0x42c146);}[_0x2e363d(0x2ba)](_0x3193f0){const _0x1501ab=_0x2e363d,{memberID:_0x14de63}=_0x3193f0[_0x1501ab(0x1b4)],_0x320202=this[_0x1501ab(0x28e)];_0x320202[_0x1501ab(0x360)](_0x14de63),this[_0x1501ab(0x2e2)][_0x1501ab(0x320)](_0x320202);}[_0x2e363d(0x189)](){const _0x2375ad=_0x2e363d;var _0xe02e86;if(this[_0x2375ad(0x26a)]=!0x0,((_0xe02e86=this[_0x2375ad(0x1c6)][_0x2375ad(0x33a)]())==null?void 0x0:_0xe02e86[_0x2375ad(0x331)]())!==this['unitID'])return;const _0x5b7b55=this[_0x2375ad(0x121)][_0x2375ad(0x2a6)](_0x854483[_0x2375ad(0x1a8)])['getDocRanges']();Array['isArray'](_0x5b7b55)&&_0x5b7b55[_0x2375ad(0x1a4)]>0x0&&this[_0x2375ad(0x1ec)](_0x5b7b55);}[_0x2e363d(0x195)](){const _0xde9d0f=_0x2e363d;this[_0xde9d0f(0x26a)]=!0x1;}};_0x490396=_0x7f5cbc([_0x5e7054(0x2,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1[_0x2e363d(0x392)])),_0x5e7054(0x3,_0x2b43e1[_0x2e363d(0x1f3)](_0x5daa50)),_0x5e7054(0x4,_0x2b43e1[_0x2e363d(0x1f3)](_0x35d81a[_0x2e363d(0x19c)])),_0x5e7054(0x5,_0x2b43e1['Inject'](_0x5eda65)),_0x5e7054(0x6,_0x4bbdfc['ITransformService']),_0x5e7054(0x7,_0x2b43e1[_0x2e363d(0x20d)]),_0x5e7054(0x8,_0x2b43e1[_0x2e363d(0x205)])],_0x490396);var _0x1167fe=Object['getOwnPropertyDescriptor'],_0x460e73=(_0x5718e7,_0xfc86d3,_0x1a1ddb,_0x70da8e)=>{for(var _0x4fe304=_0x70da8e>0x1?void 0x0:_0x70da8e?_0x1167fe(_0xfc86d3,_0x1a1ddb):_0xfc86d3,_0x11c6ae=_0x5718e7['length']-0x1,_0x372913;_0x11c6ae>=0x0;_0x11c6ae--)(_0x372913=_0x5718e7[_0x11c6ae])&&(_0x4fe304=_0x372913(_0x4fe304)||_0x4fe304);return _0x4fe304;},_0x3dc5f8=(_0xa20470,_0x540306)=>(_0x194ce7,_0x25513a)=>_0x540306(_0x194ce7,_0x25513a,_0xa20470);const _0x4e3c86=0x12c,_0x1b4f1b=0x64,_0x9ec85d=()=>{let _0x1daeba=[],_0x524697=!0x1;return _0xd78fb9=>{const _0x1bd6dc=_0xc513;_0x1daeba[_0x1bd6dc(0x20a)](_0xd78fb9),_0x524697||(_0x524697=!0x0,setTimeout(()=>{const _0x29f152=_0x1bd6dc;_0x1daeba[_0x29f152(0x282)](_0x37111e=>_0x37111e()),_0x1daeba=[],_0x524697=!0x1;}));};};let _0x2d0b44=class extends _0x2b43e1['RxDisposable']{constructor(_0x2a75c7,_0x1fec3e,_0x2ca818,_0x58531c,_0x3caf3d,_0x12f2fe,_0x18f477,_0x2634da){const _0x5c0ed5=_0x2e363d;super(),_0x1b73a5(this,'_online',!0x1),_0x1b73a5(this,_0x5c0ed5(0x151),!0x1),_0x1b73a5(this,_0x5c0ed5(0x2e2),new _0x5ad77d['BehaviorSubject'](new Map())),_0x1b73a5(this,_0x5c0ed5(0x12a),this['_cursorInfo$'][_0x5c0ed5(0x3b0)]()),_0x1b73a5(this,_0x5c0ed5(0x21a),new _0x5ad77d['BehaviorSubject']([])),_0x1b73a5(this,_0x5c0ed5(0x2fd),this['_roomMembers$']['pipe'](_0x5ad77d['debounceTime'](_0x4e3c86))),_0x1b73a5(this,'_updateLocalCursor',_0x2b43e1[_0x5c0ed5(0x379)]((_0x3c0d7d,_0xbbab02)=>{const _0xe3f27a=_0x5c0ed5,_0x1142ad={'eventID':_0x4bbdfc[_0xe3f27a(0x3ae)][_0xe3f27a(0x2ca)],'data':{'unitID':this[_0xe3f27a(0x1bb)],'memberID':this[_0xe3f27a(0x314)][_0xe3f27a(0x1ff)](),'selection':_0x56bea2[_0xe3f27a(0x132)](_0x3c0d7d,_0xbbab02[_0xe3f27a(0x27c)])}};this[_0xe3f27a(0x314)][_0xe3f27a(0x31d)](_0x1142ad,this['unitID']);},_0x1b4f1b)),(this[_0x5c0ed5(0x1bb)]=_0x2a75c7,this[_0x5c0ed5(0x314)]=_0x1fec3e,this[_0x5c0ed5(0x121)]=_0x2ca818,this['_colorAssignService']=_0x58531c,this[_0x5c0ed5(0x245)]=_0x3caf3d,this['_univerInstanceService']=_0x12f2fe,this[_0x5c0ed5(0x232)]=_0x18f477,this['_refRangeService']=_0x2634da);}get[_0x2e363d(0x28e)](){const _0x18d841=_0x2e363d;return this[_0x18d841(0x2e2)][_0x18d841(0x384)]();}get[_0x2e363d(0x375)](){const _0x311318=_0x2e363d;return this['_roomMembers$'][_0x311318(0x384)]();}[_0x2e363d(0x1ad)](){const _0x21e0ab=_0x2e363d;super[_0x21e0ab(0x1ad)](),this[_0x21e0ab(0x2e2)][_0x21e0ab(0x320)](new Map()),this[_0x21e0ab(0x2e2)]['complete'](),this[_0x21e0ab(0x21a)]['next']([]),this[_0x21e0ab(0x21a)][_0x21e0ab(0x321)]();}['init'](){const _0x3cceb9=_0x2e363d;this[_0x3cceb9(0x151)]||(this[_0x3cceb9(0x151)]=!0x0,this[_0x3cceb9(0x314)]['sessionStatus$'][_0x3cceb9(0x230)](_0x5ad77d[_0x3cceb9(0x383)](this['dispose$']))[_0x3cceb9(0x2d3)](_0x55d70d=>{const _0x4c502f=_0x3cceb9;_0x55d70d===_0x35d81a[_0x4c502f(0x1ee)]['ONLINE']?this[_0x4c502f(0x189)]():this[_0x4c502f(0x195)]();}),this[_0x3cceb9(0x314)][_0x3cceb9(0x287)][_0x3cceb9(0x230)](_0x5ad77d[_0x3cceb9(0x383)](this[_0x3cceb9(0x223)]))[_0x3cceb9(0x2d3)](_0x2f0831=>{const _0x2d641d=_0x3cceb9,_0x1c1ece=_0x2f0831[_0x2d641d(0x28d)];_0x1c1ece===_0x4bbdfc['CollaborationEvent'][_0x2d641d(0x2ca)]&&this[_0x2d641d(0x36a)](_0x2f0831),_0x1c1ece===_0x4bbdfc[_0x2d641d(0x3ae)][_0x2d641d(0x239)]&&this[_0x2d641d(0x2ba)](_0x2f0831);}),this[_0x3cceb9(0x367)](),this[_0x3cceb9(0x160)](this['_commandService'][_0x3cceb9(0x34e)](_0x21f354=>{const _0x5a8bab=_0x3cceb9;if(this[_0x5a8bab(0x26a)]&&_0x21f354['id']===_0x575825[_0x5a8bab(0x353)]['id']&&_0x21f354[_0x5a8bab(0x387)][_0x5a8bab(0x32f)]===this[_0x5a8bab(0x1bb)]){const _0x32359e=_0x21f354[_0x5a8bab(0x387)];this[_0x5a8bab(0x1ec)](_0x32359e[_0x5a8bab(0x2e7)],_0x32359e[_0x5a8bab(0x214)][0x0]);}})));}[_0x2e363d(0x36a)](_0x257ede){const _0x400937=_0x2e363d;var _0x74be1c,_0x1aec55;const {memberID:_0x1b7ea7,selection:_0x237f0c}=_0x257ede[_0x400937(0x1b4)],{sheetName:_0x55378c,range:_0x2eac24}=_0x56bea2[_0x400937(0x38b)](_0x237f0c),_0x5eee0b={'name':(_0x1aec55=(_0x74be1c=this[_0x400937(0x245)][_0x400937(0x3ab)](this['unitID'],_0x1b7ea7))==null?void 0x0:_0x74be1c[_0x400937(0x315)])!=null?_0x1aec55:_0x400937(0x2ce),'range':this[_0x400937(0x2a7)](_0x55378c,_0x2eac24),'sheetID':_0x55378c,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1b7ea7),'selection':_0x237f0c},_0x15cd9b=this['cursorInfo'];_0x15cd9b[_0x400937(0x2f1)](_0x1b7ea7,_0x5eee0b),this[_0x400937(0x2e2)][_0x400937(0x320)](_0x15cd9b);}[_0x2e363d(0x2ba)](_0x567695){const _0x424023=_0x2e363d,{memberID:_0x41dd0d}=_0x567695[_0x424023(0x1b4)],_0x4cc677=this[_0x424023(0x28e)];_0x4cc677[_0x424023(0x360)](_0x41dd0d),this[_0x424023(0x2e2)]['next'](_0x4cc677);}[_0x2e363d(0x2a7)](_0xf077a,_0x50e6bf){const _0x5ca47b=_0x2e363d;var _0x35c2e2,_0x592c02;const _0x2f2b98=(_0x592c02=(_0x35c2e2=this[_0x5ca47b(0x1c6)][_0x5ca47b(0x225)](this[_0x5ca47b(0x1bb)]))==null?void 0x0:_0x35c2e2[_0x5ca47b(0x2b6)](_0xf077a))==null?void 0x0:_0x592c02[_0x5ca47b(0x128)]();return(_0x2f2b98==null?void 0x0:_0x2f2b98[_0x5ca47b(0x34f)](_0x4ee602=>_0x2b43e1[_0x5ca47b(0x11f)][_0x5ca47b(0x1bc)](_0x4ee602,_0x50e6bf)))||_0x50e6bf;}['_onRefRangeChange'](){const _0x1d5494=_0x2e363d,_0x3075d5=new _0x2b43e1[(_0x1d5494(0x354))](),_0x51fab9=_0x9ec85d(),_0x482cde=()=>{const _0x1b84dd=_0x1d5494;_0x3075d5[_0x1b84dd(0x1ad)]();const _0x97b13f=(_0x20ac01,_0xb94916,_0x2efbfa,_0x5a999a)=>{const _0x3d3b6b=_0x1b84dd;let _0x37d253=[];switch(_0x20ac01['id']){case _0x575825[_0x3d3b6b(0x3b1)][_0x3d3b6b(0x30d)]:{_0x37d253=_0x575825[_0x3d3b6b(0x238)](_0x20ac01,_0x5a999a);break;}case _0x575825[_0x3d3b6b(0x3b1)][_0x3d3b6b(0x38c)]:{_0x37d253=_0x575825[_0x3d3b6b(0x185)](_0x20ac01,_0x5a999a);break;}case _0x575825[_0x3d3b6b(0x3b1)]['InsertColCommandId']:{_0x37d253=_0x575825[_0x3d3b6b(0x37c)](_0x20ac01,_0x5a999a);break;}case _0x575825[_0x3d3b6b(0x3b1)][_0x3d3b6b(0x30c)]:{_0x37d253=_0x575825[_0x3d3b6b(0x2e0)](_0x20ac01,_0x5a999a);break;}case _0x575825['EffectRefRangId'][_0x3d3b6b(0x332)]:{_0x37d253=_0x575825[_0x3d3b6b(0x18e)](_0x20ac01,_0x5a999a);break;}case _0x575825[_0x3d3b6b(0x3b1)][_0x3d3b6b(0x28f)]:{_0x37d253=_0x575825['handleInsertRow'](_0x20ac01,_0x5a999a);break;}case _0x575825[_0x3d3b6b(0x3b1)][_0x3d3b6b(0x1c0)]:{_0x37d253=_0x575825[_0x3d3b6b(0x28a)](_0x20ac01,_0x5a999a);break;}case _0x575825['EffectRefRangId']['RemoveColCommandId']:{_0x37d253=_0x575825[_0x3d3b6b(0x141)](_0x20ac01,_0x5a999a);break;}case _0x575825[_0x3d3b6b(0x3b1)][_0x3d3b6b(0x368)]:{_0x37d253=_0x575825[_0x3d3b6b(0x341)](_0x20ac01,_0x5a999a);break;}}const _0x8cea33=_0x575825[_0x3d3b6b(0x273)](_0x37d253,_0x5a999a),_0x1af9ad=this[_0x3d3b6b(0x28e)]['get'](_0xb94916);if(_0x1af9ad&&_0x8cea33){const _0x484e4d={..._0x1af9ad,'range':_0x8cea33};this[_0x3d3b6b(0x28e)][_0x3d3b6b(0x2f1)](_0xb94916,_0x484e4d),_0x51fab9(()=>{const _0x14ea2e=_0x3d3b6b,_0x574c07=this['_refRangeService'][_0x14ea2e(0x2f8)](_0x8cea33,_0x49046b=>(_0x574c07[_0x14ea2e(0x1ad)](),_0x97b13f(_0x49046b,_0xb94916,_0x2efbfa,_0x8cea33)));_0x3075d5[_0x14ea2e(0x16c)](_0x574c07);});}return{'redos':[],'undos':[]};};this[_0x1b84dd(0x28e)]['forEach']((_0x1f22df,_0x118d19)=>{const _0x753c34=_0x1b84dd,{range:_0x1145a7,sheetID:_0xf18bd6}=_0x1f22df,_0x5376b0=this[_0x753c34(0x36e)][_0x753c34(0x2f8)](_0x1145a7,_0xda90d2=>(_0x5376b0[_0x753c34(0x1ad)](),_0x97b13f(_0xda90d2,_0x118d19,_0xf18bd6,_0x1145a7)));_0x3075d5['add'](_0x5376b0);});};this[_0x1d5494(0x160)](_0x2b43e1[_0x1d5494(0x1d6)](this[_0x1d5494(0x2e2)][_0x1d5494(0x2d3)](()=>{_0x482cde();})));}[_0x2e363d(0x189)](){const _0x5c06c1=_0x2e363d;var _0x44420e,_0x360704;if(this[_0x5c06c1(0x26a)]=!0x0,((_0x44420e=this[_0x5c06c1(0x1c6)][_0x5c06c1(0x33a)]())==null?void 0x0:_0x44420e[_0x5c06c1(0x331)]())!==this[_0x5c06c1(0x1bb)])return;const _0x1c530c=(_0x360704=this[_0x5c06c1(0x121)][_0x5c06c1(0x2a6)](_0x575825[_0x5c06c1(0x21d)])[_0x5c06c1(0x1b1)]())==null?void 0x0:_0x360704[0x0],_0x3e309a=this[_0x5c06c1(0x1c6)][_0x5c06c1(0x203)](_0x2b43e1[_0x5c06c1(0x322)][_0x5c06c1(0x138)])['getActiveSheet']();_0x1c530c&&_0x3e309a&&this[_0x5c06c1(0x1ec)](_0x3e309a[_0x5c06c1(0x231)](),_0x1c530c);}[_0x2e363d(0x195)](){const _0x23dd72=_0x2e363d;this[_0x23dd72(0x26a)]=!0x1;}};_0x2d0b44=_0x460e73([_0x3dc5f8(0x2,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1[_0x2e363d(0x392)])),_0x3dc5f8(0x3,_0x2b43e1[_0x2e363d(0x1f3)](_0x5daa50)),_0x3dc5f8(0x4,_0x2b43e1[_0x2e363d(0x1f3)](_0x35d81a[_0x2e363d(0x19c)])),_0x3dc5f8(0x5,_0x2b43e1[_0x2e363d(0x20d)]),_0x3dc5f8(0x6,_0x2b43e1[_0x2e363d(0x205)]),_0x3dc5f8(0x7,_0x2b43e1['Inject'](_0x575825[_0x2e363d(0x32c)]))],_0x2d0b44);var _0x4cad61=Object[_0x2e363d(0x29d)],_0x5acd0a=(_0x48a38a,_0x57665b,_0x18024d,_0x2421a2)=>{const _0x1b711d=_0x2e363d;for(var _0x2f490c=_0x2421a2>0x1?void 0x0:_0x2421a2?_0x4cad61(_0x57665b,_0x18024d):_0x57665b,_0x520d3b=_0x48a38a[_0x1b711d(0x1a4)]-0x1,_0x785e3a;_0x520d3b>=0x0;_0x520d3b--)(_0x785e3a=_0x48a38a[_0x520d3b])&&(_0x2f490c=_0x785e3a(_0x2f490c)||_0x2f490c);return _0x2f490c;},_0x5e1288=(_0x2428c6,_0x185ea8)=>(_0x4d7a57,_0x9085b)=>_0x185ea8(_0x4d7a57,_0x9085b,_0x2428c6);let _0x5a14bf=class extends _0x2b43e1[_0x2e363d(0x2bd)]{constructor(_0x47ab91,_0x2c6f43,_0x4adb88){const _0x3cc129=_0x2e363d;super(),_0x1b73a5(this,_0x3cc129(0x259),new Map()),_0x1b73a5(this,_0x3cc129(0x1d2),new _0x5ad77d[(_0x3cc129(0x33e))]()),(this[_0x3cc129(0x1c6)]=_0x47ab91,this[_0x3cc129(0x121)]=_0x2c6f43,this[_0x3cc129(0x150)]=_0x4adb88,this['_init']());}[_0x2e363d(0x1ad)](){const _0x58e58b=_0x2e363d;super['dispose'](),this[_0x58e58b(0x1d2)][_0x58e58b(0x321)](),this['_entities'][_0x58e58b(0x282)](_0x2a690e=>_0x2a690e[_0x58e58b(0x1ad)]());}[_0x2e363d(0x2ff)](_0x13962f){const _0x8428f8=_0x2e363d;return this[_0x8428f8(0x259)][_0x8428f8(0x149)](_0x13962f)?this[_0x8428f8(0x259)][_0x8428f8(0x2a6)](_0x13962f)[_0x8428f8(0x12a)]:this[_0x8428f8(0x1d2)][_0x8428f8(0x230)](_0x5ad77d[_0x8428f8(0x1e9)](_0x572ae5=>_0x572ae5[_0x8428f8(0x1bb)]===_0x13962f),_0x5ad77d['switchMap'](_0x1ff9eb=>_0x1ff9eb['cursorInfo$']));}[_0x2e363d(0x151)](){const _0x5c6027=_0x2e363d;this[_0x5c6027(0x1c6)]['getTypeOfUnitAdded$'](_0x2b43e1[_0x5c6027(0x322)][_0x5c6027(0x138)])['pipe'](_0x5ad77d[_0x5c6027(0x383)](this[_0x5c6027(0x223)]))[_0x5c6027(0x2d3)](async _0x47223d=>{const _0x269b6f=_0x5c6027,_0xffb748=_0x47223d[_0x269b6f(0x331)](),_0x220c7c=await this[_0x269b6f(0x24f)](_0xffb748);this[_0x269b6f(0x1d2)]['next'](_0x220c7c),this[_0x269b6f(0x259)][_0x269b6f(0x2f1)](_0xffb748,_0x220c7c);}),this[_0x5c6027(0x1c6)][_0x5c6027(0x1a6)](_0x2b43e1['UniverInstanceType'][_0x5c6027(0x1bd)])[_0x5c6027(0x230)](_0x5ad77d[_0x5c6027(0x383)](this['dispose$']))[_0x5c6027(0x230)](_0x5ad77d[_0x5c6027(0x1e9)](_0x21cbb8=>!_0x21cbb8['getUnitId']()[_0x5c6027(0x2f3)]('__')))[_0x5c6027(0x2d3)](async _0x185da1=>{const _0x1fafe8=_0x5c6027,_0x4dc626=_0x185da1[_0x1fafe8(0x331)](),_0x36bb90=await this[_0x1fafe8(0x364)](_0x4dc626);this[_0x1fafe8(0x1d2)]['next'](_0x36bb90),this[_0x1fafe8(0x259)][_0x1fafe8(0x2f1)](_0x4dc626,_0x36bb90);}),_0x5ad77d[_0x5c6027(0x284)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2b43e1['UniverInstanceType']['UNIVER_DOC']),this[_0x5c6027(0x1c6)]['getTypeOfUnitDisposed$'](_0x2b43e1[_0x5c6027(0x322)][_0x5c6027(0x138)]))[_0x5c6027(0x230)](_0x5ad77d[_0x5c6027(0x383)](this[_0x5c6027(0x223)]))[_0x5c6027(0x2d3)](_0xf229aa=>{const _0x1f8305=_0x5c6027,_0x461340=_0xf229aa['getUnitId'](),_0x30078d=this[_0x1f8305(0x259)][_0x1f8305(0x2a6)](_0x461340);_0x30078d&&(_0x30078d['dispose'](),this[_0x1f8305(0x259)][_0x1f8305(0x360)](_0x461340));});}async[_0x2e363d(0x24f)](_0x276a1c){const _0x1f09e3=_0x2e363d,_0x3ee97c=await this[_0x1f09e3(0x150)]['requireSession'](_0x276a1c),_0x1448cf=this[_0x1f09e3(0x121)][_0x1f09e3(0x395)](_0x2d0b44,_0x276a1c,_0x3ee97c);return _0x1448cf[_0x1f09e3(0x1f5)](),_0x1448cf;}async['_startDocCollabCursor'](_0x5c5bf3){const _0x1dd44d=_0x2e363d,_0x27b1ee=await this['_collabSessionService'][_0x1dd44d(0x3a8)](_0x5c5bf3),_0x2489f4=this[_0x1dd44d(0x121)]['createInstance'](_0x490396,_0x5c5bf3,_0x27b1ee);return _0x2489f4[_0x1dd44d(0x1f5)](),_0x2489f4;}};_0x5a14bf=_0x5acd0a([_0x5e1288(0x0,_0x2b43e1['IUniverInstanceService']),_0x5e1288(0x1,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1[_0x2e363d(0x392)])),_0x5e1288(0x2,_0x2b43e1[_0x2e363d(0x1f3)](_0x35d81a[_0x2e363d(0x29b)]))],_0x5a14bf);const _0x50df79=0x14,_0xd7a649=0xc8,_0x40af53=0x4,_0x10d041=0x5;function _0x221761(_0x3b7576,_0x5c4bb5){const _0x1aef22=_0x2e363d;let {radius:_0x3867b2,width:_0x3904a2,height:_0x3d6e66}=_0x5c4bb5;_0x3867b2=_0x3867b2!=null?_0x3867b2:0x0,_0x3904a2=_0x3904a2!=null?_0x3904a2:0x1e,_0x3d6e66=_0x3d6e66!=null?_0x3d6e66:0x1e;let _0x4c32b6=0x0,_0xfb8b2b=0x0,_0x1b51a8=0x0;_0x4c32b6=_0xfb8b2b=_0x1b51a8=Math[_0x1aef22(0x194)](_0x3867b2,_0x3904a2/0x2,_0x3d6e66/0x2),_0x3b7576[_0x1aef22(0x2a9)](),_0x3b7576['moveTo'](_0x4c32b6,0x0),_0x3b7576['lineTo'](_0x3904a2-_0xfb8b2b,0x0),_0x3b7576[_0x1aef22(0x25f)](_0x3904a2-_0xfb8b2b,_0xfb8b2b,_0xfb8b2b,Math['PI']*0x3/0x2,0x0,!0x1),_0x3b7576['lineTo'](_0x3904a2,_0x3d6e66-_0x1b51a8),_0x3b7576['arc'](_0x3904a2-_0x1b51a8,_0x3d6e66-_0x1b51a8,_0x1b51a8,0x0,Math['PI']/0x2,!0x1),_0x3b7576[_0x1aef22(0x27a)](0x0,_0x3d6e66),_0x3b7576[_0x1aef22(0x27a)](0x0,_0x4c32b6),_0x3b7576[_0x1aef22(0x25f)](_0x4c32b6,_0x4c32b6,_0x4c32b6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3b7576[_0x1aef22(0x1fd)](),_0x5c4bb5[_0x1aef22(0x37a)]&&(_0x3b7576[_0x1aef22(0x1ca)](),_0x3b7576[_0x1aef22(0x3ac)]=_0x5c4bb5[_0x1aef22(0x37a)],_0x5c4bb5['fillRule']===_0x1aef22(0x3b2)?_0x3b7576[_0x1aef22(0x37a)](_0x1aef22(0x3b2)):_0x3b7576[_0x1aef22(0x37a)](),_0x3b7576[_0x1aef22(0x2cf)]());}class _0x547561 extends _0x4f9ef0[_0x2e363d(0x20c)]{constructor(_0x1e36ac,_0x19db4f){const _0x4bbb3b=_0x2e363d;super(_0x1e36ac,_0x19db4f),_0x1b73a5(this,_0x4bbb3b(0x2d0)),_0x1b73a5(this,_0x4bbb3b(0x118)),(this['color']=_0x19db4f==null?void 0x0:_0x19db4f[_0x4bbb3b(0x2d0)],this[_0x4bbb3b(0x118)]=_0x19db4f==null?void 0x0:_0x19db4f[_0x4bbb3b(0x118)]);}static[_0x2e363d(0x326)](_0x5256cd,_0x2d42f2){const _0x4fbf6d=_0x2e363d,{text:_0x33f1d3,color:_0x5cc03b}=_0x2d42f2;_0x5256cd['save'](),_0x5256cd[_0x4fbf6d(0x19d)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x4ff5ce=_0x5256cd[_0x4fbf6d(0x158)](_0x33f1d3)[_0x4fbf6d(0x2d6)],_0x36f6ff=Math['min'](_0x4ff5ce+0x2*_0x40af53,_0xd7a649);_0x221761(_0x5256cd,{'height':_0x50df79,'radius':0x4,'width':_0x36f6ff,'fill':_0x5cc03b}),_0x5256cd['fillStyle']=_0x4fbf6d(0x346);const _0x1c0933=_0x40af53,_0x2e27bb=_0x50df79-_0x10d041,_0x19148c=_0xd7a649-0x2*_0x40af53;if(_0x4ff5ce>_0x19148c){let _0xf53998='',_0x1a0c83=0x0;for(const _0x38252c of _0x33f1d3){const _0x1de577=_0x5256cd[_0x4fbf6d(0x158)](_0x38252c)[_0x4fbf6d(0x2d6)];if(_0x1a0c83+_0x1de577<=_0x19148c-_0x5256cd[_0x4fbf6d(0x158)](_0x4fbf6d(0x14d))['width'])_0xf53998+=_0x38252c,_0x1a0c83+=_0x1de577;else{_0xf53998+=_0x4fbf6d(0x14d);break;}}_0x5256cd['fillText'](_0xf53998,_0x1c0933,_0x2e27bb);}else _0x5256cd[_0x4fbf6d(0x347)](_0x33f1d3,_0x1c0933,_0x2e27bb);_0x5256cd[_0x4fbf6d(0x2cf)]();}[_0x2e363d(0x199)](_0x379b43){const _0x5e9393=_0x2e363d;_0x547561[_0x5e9393(0x326)](_0x379b43,this);}}const _0x2a01fa=_0x2e363d(0x17e),_0x427fab=_0x2e363d(0x2d5),_0x140a6d=_0x2e363d(0x376),_0x953881=0x6,_0x3d4630=1.5,_0x163a70=0x4,_0x2426ae=1.5,_0x5bb8ec=_0x2e363d(0x182);class _0xd1d4f9{constructor(_0x307c53,_0x573e82,_0x2850e3,_0x4830de){const _0xcf139a=_0x2e363d;_0x1b73a5(this,'_shapes',[]),_0x1b73a5(this,_0xcf139a(0x267),null),_0x1b73a5(this,_0xcf139a(0x1ce),null),_0x1b73a5(this,'_anchorDot',null),_0x1b73a5(this,_0xcf139a(0x17d),null),_0x1b73a5(this,_0xcf139a(0x35b),null),(this[_0xcf139a(0x25a)]=_0x307c53,this['_scene']=_0x573e82,this['_docSkeleton']=_0x2850e3,this['_document']=_0x4830de,this[_0xcf139a(0x35a)]());}set[_0x2e363d(0x2a1)](_0x5ce528){const _0x1aa211=_0x2e363d;_0x5ce528?(this[_0x1aa211(0x152)]&&this[_0x1aa211(0x152)][_0x1aa211(0x125)](),this['_textBubble']&&this[_0x1aa211(0x1ce)][_0x1aa211(0x12c)]()):(this[_0x1aa211(0x152)]&&this[_0x1aa211(0x152)][_0x1aa211(0x12c)](),this[_0x1aa211(0x1ce)]&&this[_0x1aa211(0x1ce)][_0x1aa211(0x125)]());}[_0x2e363d(0x1ad)](){const _0x30c0fe=_0x2e363d;for(const _0x266261 of this[_0x30c0fe(0x2dd)])_0x266261[_0x30c0fe(0x1ad)]();this[_0x30c0fe(0x1ce)]&&this[_0x30c0fe(0x1ce)][_0x30c0fe(0x1ad)](),this[_0x30c0fe(0x152)]&&this[_0x30c0fe(0x152)]['dispose'](),this['_anchor']&&this['_anchor'][_0x30c0fe(0x1ad)](),this[_0x30c0fe(0x35b)]&&this['_eventUnsubscribe']();}['_render'](){const _0xd6396=_0x2e363d;var _0x3f48fe;const {_docSkeleton:_0x3aace5,_document:_0x52d8a5}=this,{color:_0x1911d5,name:_0x4ccd13,ranges:_0x179a6b}=this['_cursor'],_0x2845dc=_0x52d8a5[_0xd6396(0x1b0)](),{docsLeft:_0x2c6eaf,docsTop:_0x1cc9c8}=_0x2845dc,_0x5f30e6=new _0x15c8af[(_0xd6396(0x13a))](_0x2845dc,_0x3aace5);for(const {startOffset:_0xca47cd,endOffset:_0x4d969e,rangeType:_0x2c1891,segmentId:_0x431f01,segmentPage:_0x24245e,collapsed:_0x2f4cbc,isActive:_0x586b17}of _0x179a6b){const _0x17234c=_0x3aace5[_0xd6396(0x2c1)](_0xca47cd,!0x0,_0x431f01,_0x24245e);let _0xffad36=_0x3aace5[_0xd6396(0x2c1)](_0x4d969e,!0x0,_0x431f01,_0x24245e);if(_0xffad36==null&&(_0xffad36=_0x3aace5['findNodePositionByCharIndex'](_0x4d969e-0x1,!0x1,_0x431f01,_0x24245e)),_0x586b17){const {contentBoxPointGroup:_0x11c5a0}=_0x5f30e6['getRangePointData'](_0xffad36,_0xffad36);if(_0x11c5a0[_0xd6396(0x1a4)]===0x0)continue;this['_drawAnchor'](_0x1911d5,_0x11c5a0,_0x2c6eaf,_0x1cc9c8,_0x4ccd13),this[_0xd6396(0x35b)]=this['_handleHover']();}if(_0x17234c&&_0xffad36){if(_0x2c1891===_0x2b43e1['DOC_RANGE_TYPE'][_0xd6396(0x280)]){const _0x2f51fd=new _0x15c8af['NodePositionConvertToRectRange'](_0x2845dc,_0x3aace5),{pointGroup:_0x536869}=(_0x3f48fe=_0x2f51fd[_0xd6396(0x1bf)](_0x17234c,_0xffad36))!=null?_0x3f48fe:{};if(_0x536869==null||_0x536869['length']===0x0)continue;this[_0xd6396(0x246)](_0x1911d5,_0x536869,_0x2c6eaf,_0x1cc9c8);}else{if(!_0x2f4cbc){const {borderBoxPointGroup:_0x5a5ac7}=_0x5f30e6[_0xd6396(0x1bf)](_0x17234c,_0xffad36);if(_0x5a5ac7[_0xd6396(0x1a4)]===0x0)continue;this[_0xd6396(0x2cb)](_0x1911d5,_0x5a5ac7,_0x2c6eaf,_0x1cc9c8);}}}}}[_0x2e363d(0x18c)](_0x9379a9,_0x41ce60,_0x25841c,_0x28ed82,_0x3a3f17){const _0x1e7b9a=_0x2e363d,_0x9d260a=this['_getAnchorBounding'](_0x41ce60),{left:_0x39a96f,top:_0x4e43d1,height:_0x3527d0}=_0x9d260a,_0x31d7b7=this[_0x1e7b9a(0x206)](),_0x3c057b=_0x2426ae/_0x31d7b7,_0x203337=new _0x4f9ef0[(_0x1e7b9a(0x26e))](_0x2a01fa+_0x2b43e1['Tools']['generateRandomId'](_0x953881),{'left':_0x39a96f+_0x25841c-_0x3c057b,'top':_0x4e43d1+_0x28ed82,'height':_0x3527d0,'width':_0x3d4630,'fill':_0x9379a9||_0x4f9ef0[_0x1e7b9a(0x183)](_0x2b43e1[_0x1e7b9a(0x38e)][_0x1e7b9a(0x1a5)],0x0),'strokeWidth':_0x3c057b,'stroke':_0x5bb8ec,'evented':!0x0});this[_0x1e7b9a(0x267)]=_0x203337,this['_scene']['addObject'](_0x203337,_0x15c8af[_0x1e7b9a(0x1c4)]);const _0x587dde=new _0x4f9ef0[(_0x1e7b9a(0x26e))](_0x2a01fa+_0x2b43e1[_0x1e7b9a(0x2af)][_0x1e7b9a(0x317)](_0x953881),{'left':_0x39a96f+_0x25841c-_0x3c057b,'top':_0x4e43d1+_0x28ed82-_0x163a70/0x2,'height':_0x163a70,'width':_0x163a70,'fill':_0x9379a9||_0x4f9ef0[_0x1e7b9a(0x183)](_0x2b43e1[_0x1e7b9a(0x38e)][_0x1e7b9a(0x1a5)],0x0),'strokeWidth':0x0,'stroke':_0x9379a9||_0x4f9ef0[_0x1e7b9a(0x183)](_0x2b43e1[_0x1e7b9a(0x38e)]['black'],0x0),'evented':!0x1});this[_0x1e7b9a(0x152)]=_0x587dde,this[_0x1e7b9a(0x2e5)][_0x1e7b9a(0x29f)](_0x587dde,_0x15c8af[_0x1e7b9a(0x1c4)]);const _0x171f45=new _0x547561(_0x2a01fa+_0x2b43e1['Tools']['generateRandomId'](_0x953881),{'left':_0x39a96f+_0x25841c-_0x3c057b,'top':_0x4e43d1+_0x28ed82-_0x50df79,'text':_0x3a3f17,'color':_0x9379a9});this[_0x1e7b9a(0x1ce)]=_0x171f45,this[_0x1e7b9a(0x2e5)]['addObject'](_0x171f45,_0x15c8af[_0x1e7b9a(0x1c4)]),this['_hover']=!0x1;}[_0x2e363d(0x19a)](){const _0x12b5dc=_0x2e363d,_0x637846=this[_0x12b5dc(0x267)]['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x3cedd6=this[_0x12b5dc(0x267)][_0x12b5dc(0x250)][_0x12b5dc(0x1e5)](()=>{const _0x2ee98c=_0x12b5dc;this[_0x2ee98c(0x17d)]&&clearTimeout(this['_hideTimer']),this[_0x2ee98c(0x17d)]=setTimeout(()=>{const _0x1ec6c3=_0x2ee98c;this[_0x1ec6c3(0x2a1)]=!0x1;},0x7d0);});return()=>{const _0x21bfed=_0x12b5dc;_0x637846[_0x21bfed(0x297)](),_0x3cedd6[_0x21bfed(0x297)]();};}['_drawTextRange'](_0x5c60d8,_0x5a1734,_0x4ea2c7,_0x3423f8){const _0x398532=_0x2e363d,_0x4738d1=new _0x2b43e1[(_0x398532(0x1fb))](_0x5c60d8)[_0x398532(0x1c7)](0.2)[_0x398532(0x38a)](),_0x1ecd9f=new _0x4f9ef0[(_0x398532(0x1e1))](_0x427fab+_0x2b43e1[_0x398532(0x2af)][_0x398532(0x317)](_0x953881),{'pointsGroup':_0x5a1734,'fill':_0x4738d1||_0x4f9ef0[_0x398532(0x183)](_0x2b43e1[_0x398532(0x38e)]['black'],0.2),'left':_0x4ea2c7,'top':_0x3423f8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x398532(0x2dd)][_0x398532(0x20a)](_0x1ecd9f),this[_0x398532(0x2e5)][_0x398532(0x29f)](_0x1ecd9f,_0x15c8af[_0x398532(0x1c4)]);}[_0x2e363d(0x246)](_0x1d83a7,_0x9b500,_0x228950,_0x504da0){const _0x3b376d=_0x2e363d,_0x5ef2f3=new _0x2b43e1[(_0x3b376d(0x1fb))](_0x1d83a7)[_0x3b376d(0x1c7)](0.2)[_0x3b376d(0x38a)](),_0x2aaf7e=new _0x4f9ef0[(_0x3b376d(0x1e1))](_0x140a6d+_0x2b43e1[_0x3b376d(0x2af)]['generateRandomId'](_0x953881),{'pointsGroup':_0x9b500,'fill':_0x5ef2f3||_0x4f9ef0['getColor'](_0x2b43e1[_0x3b376d(0x38e)]['black'],0.2),'left':_0x228950,'top':_0x504da0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3b376d(0x2dd)]['push'](_0x2aaf7e),this[_0x3b376d(0x2e5)][_0x3b376d(0x29f)](_0x2aaf7e,_0x15c8af['TEXT_RANGE_LAYER_INDEX']);}[_0x2e363d(0x29a)](_0x49b366){const _0x2a64f3=_0x49b366[0x0],_0xf13da0=_0x2a64f3[0x0],_0x49575b=_0x2a64f3[0x2],{x:_0x263d97,y:_0x329318}=_0xf13da0,{x:_0x5b313e,y:_0x52b076}=_0x49575b;return{'left':_0x263d97,'top':_0x329318,'width':_0x5b313e-_0x263d97,'height':_0x52b076-_0x329318};}['_getScale'](){const _0x38b63c=_0x2e363d,{scaleX:_0x5f0f75,scaleY:_0x4e4e3b}=this[_0x38b63c(0x2e5)]['getAncestorScale']();return Math[_0x38b63c(0x148)](_0x5f0f75,_0x4e4e3b);}}var _0x5eabd5=Object[_0x2e363d(0x29d)],_0x279619=(_0x5ab519,_0xe2c711,_0x163476,_0x5ef6c2)=>{const _0x97d8d=_0x2e363d;for(var _0x3d3ef5=_0x5ef6c2>0x1?void 0x0:_0x5ef6c2?_0x5eabd5(_0xe2c711,_0x163476):_0xe2c711,_0x53c8d9=_0x5ab519[_0x97d8d(0x1a4)]-0x1,_0x5e26d0;_0x53c8d9>=0x0;_0x53c8d9--)(_0x5e26d0=_0x5ab519[_0x53c8d9])&&(_0x3d3ef5=_0x5e26d0(_0x3d3ef5)||_0x3d3ef5);return _0x3d3ef5;},_0x35192e=(_0x139ade,_0x2b34d9)=>(_0x5e1869,_0x1ca83a)=>_0x2b34d9(_0x5e1869,_0x1ca83a,_0x139ade);let _0x38ac90=class extends _0x2b43e1[_0x2e363d(0x2bd)]{constructor(_0xa46055,_0x557d33,_0x29c004,_0x1bca9b,_0x2e30f2){const _0x543e46=_0x2e363d;super(),_0x1b73a5(this,_0x543e46(0x213),[]),_0x1b73a5(this,_0x543e46(0x299),[]),(this[_0x543e46(0x20b)]=_0xa46055,this[_0x543e46(0x362)]=_0x557d33,this['_collabCursorController']=_0x29c004,this[_0x543e46(0x232)]=_0x1bca9b,this[_0x543e46(0x1b2)]=_0x2e30f2,this['_init']());}[_0x2e363d(0x151)](){const _0x1a830c=_0x2e363d,_0xc298be=this['_context'][_0x1a830c(0x32f)],_0x1022af=this[_0x1a830c(0x362)];this['disposeWithMe'](_0x5ad77d[_0x1a830c(0x36b)]([this[_0x1a830c(0x2b5)][_0x1a830c(0x2ff)](_0xc298be),this['_themeService'][_0x1a830c(0x2f9)]])[_0x1a830c(0x230)](_0x3660b6['map'](([_0x5c438d,_0x40f852])=>({'skeleton':_0x1022af[_0x1a830c(0x339)](),'cursors':[..._0x5c438d[_0x1a830c(0x307)]()][_0x1a830c(0x372)](_0x5bb274=>({..._0x5bb274,'color':this[_0x1a830c(0x1b2)]['getColorFromTheme'](_0x5bb274[_0x1a830c(0x2d0)])}))})))[_0x1a830c(0x2d3)](_0x12d0bc=>{const _0x3e2c0e=_0x1a830c;if(this[_0x3e2c0e(0x336)](),_0x12d0bc){const {skeleton:_0x3c81db,cursors:_0x30ae53}=_0x12d0bc;this[_0x3e2c0e(0x1a1)](_0x3c81db,_0x30ae53);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x2e363d(0x1a1)](_0x2fdc6e,_0x56985d){const _0x46a3b7=_0x2e363d,{scene:_0x5a143a,mainComponent:_0x2d97ea}=this[_0x46a3b7(0x20b)],_0x683508=_0x56985d[_0x46a3b7(0x2fb)](_0x24f235=>new _0xd1d4f9(_0x24f235,_0x5a143a,_0x2fdc6e,_0x2d97ea));this[_0x46a3b7(0x213)]=_0x683508,this['_cursors']=_0x56985d;}['_refreshCollabCursors'](){const _0x218dbc=_0x2e363d;this[_0x218dbc(0x336)]();const {scene:_0x41155c,mainComponent:_0x2216f5}=this[_0x218dbc(0x20b)],_0x1827f5=this[_0x218dbc(0x362)]['getSkeleton'](),_0x3b644f=this['_cursors'][_0x218dbc(0x2fb)](_0x3d0ff2=>new _0xd1d4f9(_0x3d0ff2,_0x41155c,_0x1827f5,_0x2216f5));this[_0x218dbc(0x213)]=_0x3b644f;}[_0x2e363d(0x336)](){const _0x3d6be7=_0x2e363d;this['_cursorShapes'][_0x3d6be7(0x282)](_0x37ead0=>_0x37ead0[_0x3d6be7(0x1ad)]()),this[_0x3d6be7(0x213)]=[];}[_0x2e363d(0x1c2)](){const _0x2ff467=_0x2e363d,_0x39e6db=[_0x15c8af['SetDocZoomRatioOperation']['id']];this[_0x2ff467(0x160)](this[_0x2ff467(0x232)][_0x2ff467(0x34e)](_0x5a8fc1=>{const _0x13f2ab=_0x2ff467;_0x39e6db[_0x13f2ab(0x24a)](_0x5a8fc1['id'])&&_0x5a8fc1[_0x13f2ab(0x387)][_0x13f2ab(0x32f)]===this[_0x13f2ab(0x20b)][_0x13f2ab(0x32f)]&&this['_refreshCollabCursors']();}));}[_0x2e363d(0x305)](){const _0x3489d4=_0x2e363d;this['disposeWithMe'](_0x2b43e1[_0x3489d4(0x2e4)](this['_context'][_0x3489d4(0x254)][_0x3489d4(0x241)])['pipe'](_0x3660b6[_0x3489d4(0x1e9)](_0x439059=>_0x439059[_0x3489d4(0x255)]===_0x4f9ef0[_0x3489d4(0x1ea)]['resize']),_0x3660b6[_0x3489d4(0x1a7)](0x10))[_0x3489d4(0x2d3)](()=>{const _0x5b3849=_0x3489d4;this[_0x5b3849(0x19b)]();}));}};_0x38ac90=_0x279619([_0x35192e(0x1,_0x2b43e1[_0x2e363d(0x1f3)](_0x854483['DocSkeletonManagerService'])),_0x35192e(0x2,_0x2b43e1[_0x2e363d(0x1f3)](_0x5a14bf)),_0x35192e(0x3,_0x2b43e1[_0x2e363d(0x205)]),_0x35192e(0x4,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1[_0x2e363d(0x147)]))],_0x38ac90);const _0x23ccfa=0x1,_0x538bab=1.5;class _0x1366a1 extends _0x4f9ef0[_0x2e363d(0x20c)]{constructor(_0x24dedc,_0x3d8b64){const _0x4b9104=_0x2e363d;super(_0x24dedc,_0x3d8b64),_0x1b73a5(this,_0x4b9104(0x2da)),_0x1b73a5(this,_0x4b9104(0x13b),!0x1),_0x1b73a5(this,_0x4b9104(0x171)),_0x1b73a5(this,'_name',''),_0x1b73a5(this,_0x4b9104(0x1f1),_0x4b9104(0x247)),_0x1b73a5(this,'_backgroundColor'),(_0x3d8b64&&this[_0x4b9104(0x215)](_0x3d8b64),this[_0x4b9104(0x385)][_0x4b9104(0x1e5)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x4b9104(0x1e5)](()=>this[_0x4b9104(0x215)]({'hovered':!0x1})));}[_0x2e363d(0x215)](_0x223a21){const _0x2379db=_0x2e363d;var _0x36ffd3,_0x170d11,_0x52d560,_0x54c04a,_0x53896c,_0x10cdc8;this['_color']=(_0x36ffd3=_0x223a21[_0x2379db(0x2d0)])!=null?_0x36ffd3:this[_0x2379db(0x2da)],this['_hovered']=(_0x170d11=_0x223a21[_0x2379db(0x20e)])!=null?_0x170d11:this['_hovered'],this[_0x2379db(0x171)]=(_0x52d560=_0x223a21[_0x2379db(0x27c)])!=null?_0x52d560:this[_0x2379db(0x171)],this[_0x2379db(0x374)]=(_0x54c04a=_0x223a21[_0x2379db(0x315)])!=null?_0x54c04a:this[_0x2379db(0x374)],this[_0x2379db(0x1f1)]=(_0x53896c=_0x223a21[_0x2379db(0x251)])!=null?_0x53896c:this[_0x2379db(0x1f1)],this['_backgroundColor']=(_0x10cdc8=_0x223a21['backgroundColor'])!=null?_0x10cdc8:this[_0x2379db(0x164)],this[_0x2379db(0x17c)]({'width':_0x223a21['width'],'height':_0x223a21[_0x2379db(0x2f7)]});}[_0x2e363d(0x173)](_0xa31cfb){const _0x4eca90=_0x2e363d,{row:_0x281158,column:_0x364058}=_0xa31cfb;if(_0x281158>=this['_range'][_0x4eca90(0x253)]&&_0x281158<=this[_0x4eca90(0x171)]['endRow']&&_0x364058>=this[_0x4eca90(0x171)][_0x4eca90(0x177)]&&_0x364058<=this[_0x4eca90(0x171)][_0x4eca90(0x11c)]){this[_0x4eca90(0x215)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x360b07){return!0x1;}['_draw'](_0x123407){const _0x2c358b=_0x2e363d;_0x4f9ef0[_0x2c358b(0x26e)][_0x2c358b(0x326)](_0x123407,{'width':this[_0x2c358b(0x2d6)],'height':this[_0x2c358b(0x2f7)],'strokeWidth':_0x538bab,'stroke':this[_0x2c358b(0x2da)],'evented':!0x1,'fill':this[_0x2c358b(0x164)]}),this[_0x2c358b(0x13b)]&&(_0x123407[_0x2c358b(0x1ca)](),_0x123407[_0x2c358b(0x382)](0x1,0x0,0x0,0x1,this[_0x2c358b(0x2d6)],this[_0x2c358b(0x1f1)]===_0x2c358b(0x1c5)?0x0:-0x14),_0x547561[_0x2c358b(0x326)](_0x123407,{'text':this[_0x2c358b(0x374)],'color':this['_color']}),_0x123407[_0x2c358b(0x2cf)]());}}var _0x41b200=Object[_0x2e363d(0x29d)],_0x499e85=(_0x53bdfd,_0x56691c,_0x51caf1,_0x231ede)=>{const _0x4bd6aa=_0x2e363d;for(var _0x1457f1=_0x231ede>0x1?void 0x0:_0x231ede?_0x41b200(_0x56691c,_0x51caf1):_0x56691c,_0xe12bb8=_0x53bdfd[_0x4bd6aa(0x1a4)]-0x1,_0x25f8e7;_0xe12bb8>=0x0;_0xe12bb8--)(_0x25f8e7=_0x53bdfd[_0xe12bb8])&&(_0x1457f1=_0x25f8e7(_0x1457f1)||_0x1457f1);return _0x1457f1;},_0x578752=(_0xce4104,_0x4dc6f5)=>(_0x498516,_0x4d01f4)=>_0x4dc6f5(_0x498516,_0x4d01f4,_0xce4104);const _0x370f59=0x1389;let _0x5242c8=class extends _0x2b43e1[_0x2e363d(0x2bd)]{constructor(_0x1ebff7,_0x4415e9,_0x532052,_0x465c82){const _0x7dbed3=_0x2e363d;super(),_0x1b73a5(this,_0x7dbed3(0x299),new Set()),_0x1b73a5(this,'_lastPointer',null),(this[_0x7dbed3(0x20b)]=_0x1ebff7,this['_sheetSkeletonManagerService']=_0x4415e9,this[_0x7dbed3(0x2b5)]=_0x532052,this['_themeService']=_0x465c82,this[_0x7dbed3(0x151)]());}[_0x2e363d(0x151)](){const _0x56746e=_0x2e363d;this[_0x56746e(0x323)][_0x56746e(0x131)][_0x56746e(0x230)](_0x3660b6['takeUntil'](this['dispose$']),_0x3660b6[_0x56746e(0x291)](_0x289c2d=>{const _0x3a7b7c=_0x56746e;if(_0x289c2d){const _0x34ecec=_0x289c2d[_0x3a7b7c(0x216)];return _0x5ad77d[_0x3a7b7c(0x36b)](this[_0x3a7b7c(0x2b5)][_0x3a7b7c(0x2ff)](this['_context'][_0x3a7b7c(0x32f)]),this[_0x3a7b7c(0x1b2)][_0x3a7b7c(0x2f9)])[_0x3a7b7c(0x230)](_0x3660b6[_0x3a7b7c(0x2fb)](([_0x15d24e,_0x25f106])=>{const _0x380d93=_0x3a7b7c,_0x17144a=new Map();return _0x15d24e[_0x380d93(0x282)]((_0x4f8e58,_0x111c37)=>{const _0x5c304e=_0x380d93;if(_0x4f8e58[_0x5c304e(0x391)]===_0x34ecec){const _0x466310={..._0x4f8e58};_0x466310[_0x5c304e(0x2d0)]=this[_0x5c304e(0x1b2)]['getColorFromTheme'](_0x4f8e58[_0x5c304e(0x2d0)]),_0x17144a[_0x5c304e(0x2f1)](_0x111c37,_0x466310);}}),{'skeleton':_0x289c2d,'cursors':_0x17144a};}));}return _0x5ad77d['of']({'skeleton':null,'cursors':new Map()});}))[_0x56746e(0x2d3)](({skeleton:_0x500c22,cursors:_0x3c9833})=>{const _0x3bf517=_0x56746e;this['_removeCollabCursors'](),_0x500c22&&this[_0x3bf517(0x1a1)](_0x500c22,_0x3c9833);}),this[_0x56746e(0x323)][_0x56746e(0x131)]['subscribe'](_0x5d33bf=>{const _0x457521=_0x56746e;if(_0x5d33bf==null)return;const {skeleton:_0x624d8a}=_0x5d33bf,{scene:_0x1786d6}=this['_context'];_0x1786d6[_0x457521(0x312)]['subscribeEvent'](_0x2b43e1[_0x457521(0x379)](_0x3e94af=>{const _0x34b612=_0x457521;var _0x3cd362,_0x13c9f5;const {offsetX:_0x423008,offsetY:_0x1cdbf0}=_0x3e94af,{x:_0x2073f3,y:_0x589813}=_0x1786d6['getRelativeToViewportCoord'](_0x4f9ef0[_0x34b612(0x18f)]['FromArray']([_0x423008,_0x1cdbf0])),{scaleX:_0xff9716,scaleY:_0x3161c1}=_0x1786d6['getAncestorScale'](),_0x5afe71=_0x1786d6[_0x34b612(0x124)](_0x4f9ef0[_0x34b612(0x2a8)][_0x34b612(0x26d)]),_0x2d18f0=_0x1786d6[_0x34b612(0x18b)](_0x4f9ef0['Vector2'][_0x34b612(0x12b)]([_0x2073f3,_0x589813]),_0x5afe71),_0x142459=_0x624d8a[_0x34b612(0x301)](_0x423008,_0x1cdbf0,_0xff9716,_0x3161c1,_0x2d18f0);((_0x3cd362=this['_lastPointer'])==null?void 0x0:_0x3cd362[_0x34b612(0x381)])===_0x142459[_0x34b612(0x381)]&&((_0x13c9f5=this['_lastPointer'])==null?void 0x0:_0x13c9f5['row'])===_0x142459['row']||this[_0x34b612(0x299)][_0x34b612(0x282)](_0x36e0aa=>{const _0x604cee=_0x34b612;_0x36e0aa[_0x604cee(0x173)](_0x142459);});},0x64));});}['_updateCollabCursors'](_0x32a7d6,_0x1408fe){const _0x4a6271=_0x2e363d;var _0x3bdb3c;const _0x32e70a=(_0x3bdb3c=this[_0x4a6271(0x323)]['getCurrent']())==null?void 0x0:_0x3bdb3c[_0x4a6271(0x242)];if(!_0x32e70a)return;const _0x2eb454=this[_0x4a6271(0x3a5)]();if(!_0x2eb454)return;this[_0x4a6271(0x299)][_0x4a6271(0x282)](_0x34158f=>{const _0x190cdf=_0x4a6271;_0x34158f[_0x190cdf(0x283)]();});const {scene:_0x20a078}=_0x2eb454,_0x27663a=_0x3a59bd(Array[_0x4a6271(0x2de)](_0x1408fe[_0x4a6271(0x307)]()))[_0x4a6271(0x2fb)](_0x4bcf1e=>{const _0x3afdc7=_0x4a6271,{color:_0xc42066,range:_0x14e99b,name:_0x3d3ff0,selection:_0x22a620,sheetID:_0xef617c}=_0x4bcf1e,{startColumn:_0x3a4d74,startRow:_0x57530b,endColumn:_0x2fe2d6,endRow:_0x4d7637}=_0x14e99b,_0x4cd387=_0x562559[_0x3afdc7(0x2d9)](_0x57530b,_0x3a4d74,_0x20a078,_0x32e70a),_0x21d830=_0x562559['getCoordByCell'](_0x4d7637,_0x2fe2d6,_0x20a078,_0x32e70a),{columnHeaderHeightAndMarginTop:_0x1c23b4}=_0x32e70a,{startX:_0x17da2b,startY:_0xa2bb9c}=_0x4cd387,{endX:_0x120aea,endY:_0x26cda9}=_0x21d830,_0x1d76e5=_0x120aea-_0x17da2b,_0x17f6c0=_0x26cda9-_0xa2bb9c,_0x362628={'labelPosition':_0xa2bb9c-_0x1c23b4>=_0x50df79?_0x3afdc7(0x247):_0x3afdc7(0x1c5),'sheetID':_0xef617c,'range':_0x14e99b,'color':_0xc42066,'name':_0x3d3ff0,'selection':_0x22a620,'left':_0x17da2b,'top':_0xa2bb9c,'width':_0x1d76e5,'height':_0x17f6c0,'evented':!0x1,'zIndex':_0x370f59};return new _0x1366a1(_0x3d3ff0,_0x362628);});_0x20a078[_0x4a6271(0x37e)](_0x27663a,_0x23ccfa),this[_0x4a6271(0x299)]=new Set(_0x27663a);}[_0x2e363d(0x336)](){const _0x1cce82=_0x2e363d;var _0x890576;(_0x890576=this[_0x1cce82(0x299)])==null||_0x890576['forEach'](_0x31d91c=>_0x31d91c[_0x1cce82(0x1ad)]());}['_getSheetObject'](){const _0x555f8b=_0x2e363d;return _0x562559[_0x555f8b(0x365)](this['_context']['unit'],this[_0x555f8b(0x20b)]);}};_0x5242c8=_0x499e85([_0x578752(0x1,_0x2b43e1[_0x2e363d(0x1f3)](_0x562559['SheetSkeletonManagerService'])),_0x578752(0x2,_0x2b43e1[_0x2e363d(0x1f3)](_0x5a14bf)),_0x578752(0x3,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1[_0x2e363d(0x147)]))],_0x5242c8);function _0x3a59bd(_0x4f7d78){const _0x390787=_0x2e363d,_0x13e8e5=new Map();return _0x4f7d78[_0x390787(0x282)](_0x227359=>{const _0x470e59=_0x390787;if(_0x13e8e5['has'](_0x227359[_0x470e59(0x269)])){const _0x184cb8=_0x13e8e5['get'](_0x227359[_0x470e59(0x269)]);_0x184cb8['name']+=',\x20'+_0x227359[_0x470e59(0x315)];}else _0x13e8e5[_0x470e59(0x2f1)](_0x227359[_0x470e59(0x269)],_0x227359);}),Array[_0x390787(0x2de)](_0x13e8e5[_0x390787(0x307)]());}var _0x32b919=function(){const _0x3157fb=_0x2e363d;return _0x32b919=Object[_0x3157fb(0x201)]||function(_0x482264){const _0x16d954=_0x3157fb;for(var _0x3024dd,_0x35ac31=0x1,_0x5cffe1=arguments[_0x16d954(0x1a4)];_0x35ac31<_0x5cffe1;_0x35ac31++){_0x3024dd=arguments[_0x35ac31];for(var _0x5f4241 in _0x3024dd)Object['prototype'][_0x16d954(0x2c9)][_0x16d954(0x15b)](_0x3024dd,_0x5f4241)&&(_0x482264[_0x5f4241]=_0x3024dd[_0x5f4241]);}return _0x482264;},_0x32b919[_0x3157fb(0x22c)](this,arguments);},_0x3ff4bd=function(_0x36c520,_0x4a8e5a){const _0x2d01af=_0x2e363d;var _0x34cfbf={};for(var _0x1d7288 in _0x36c520)Object[_0x2d01af(0x275)][_0x2d01af(0x2c9)][_0x2d01af(0x15b)](_0x36c520,_0x1d7288)&&_0x4a8e5a[_0x2d01af(0x36d)](_0x1d7288)<0x0&&(_0x34cfbf[_0x1d7288]=_0x36c520[_0x1d7288]);if(_0x36c520!=null&&typeof Object['getOwnPropertySymbols']==_0x2d01af(0x39f)){for(var _0x52e389=0x0,_0x1d7288=Object[_0x2d01af(0x3b4)](_0x36c520);_0x52e389<_0x1d7288[_0x2d01af(0x1a4)];_0x52e389++)_0x4a8e5a[_0x2d01af(0x36d)](_0x1d7288[_0x52e389])<0x0&&Object[_0x2d01af(0x275)][_0x2d01af(0x25b)][_0x2d01af(0x15b)](_0x36c520,_0x1d7288[_0x52e389])&&(_0x34cfbf[_0x1d7288[_0x52e389]]=_0x36c520[_0x1d7288[_0x52e389]]);}return _0x34cfbf;},_0x2559b5=_0x5544c5[_0x2e363d(0x2d2)](function(_0x28e5e8,_0x513890){const _0xe55e1c=_0x2e363d;var _0x4f3c86=_0x28e5e8[_0xe55e1c(0x2d8)],_0x1028f3=_0x28e5e8['id'],_0x1e2b8c=_0x28e5e8['className'],_0x369ab5=_0x28e5e8[_0xe55e1c(0x1c1)],_0x171589=_0x3ff4bd(_0x28e5e8,[_0xe55e1c(0x2d8),'id','className',_0xe55e1c(0x1c1)]),_0xa4a77d=_0xe55e1c(0x1cb)[_0xe55e1c(0x202)](_0x1028f3,'\x20')['concat'](_0x1e2b8c||'')[_0xe55e1c(0x292)](),_0x266984=_0x5544c5[_0xe55e1c(0x207)]('_'[_0xe55e1c(0x202)](_0x46bb04()));return _0x1156a0(_0x4f3c86,''['concat'](_0x1028f3),{'defIds':_0x4f3c86[_0xe55e1c(0x1ba)],'idSuffix':_0x266984[_0xe55e1c(0x351)]},_0x32b919({'ref':_0x513890,'className':_0xa4a77d},_0x171589),_0x369ab5);});function _0x1156a0(_0xa93a9b,_0x3eb8f4,_0x79a562,_0x32f4c1,_0x34e068){const _0x40b1e4=_0x2e363d;return _0x5544c5[_0x40b1e4(0x36c)](_0xa93a9b[_0x40b1e4(0x167)],_0x32b919(_0x32b919({'key':_0x3eb8f4},_0x1f31ab(_0xa93a9b,_0x79a562,_0x34e068)),_0x32f4c1),(_0x350116(_0xa93a9b,_0x79a562)[_0x40b1e4(0x1a3)]||[])[_0x40b1e4(0x2fb)](function(_0x59a0c2,_0x517ba5){const _0xefc77c=_0x40b1e4;return _0x1156a0(_0x59a0c2,''[_0xefc77c(0x202)](_0x3eb8f4,'-')[_0xefc77c(0x202)](_0xa93a9b['tag'],'-')['concat'](_0x517ba5),_0x79a562,void 0x0,_0x34e068);}));}function _0x1f31ab(_0x48ee97,_0x1e4e85,_0x30e86a){const _0x4d7f03=_0x2e363d;var _0x3b1997=_0x32b919({},_0x48ee97[_0x4d7f03(0x31b)]);_0x30e86a!=null&&_0x30e86a[_0x4d7f03(0x187)]&&_0x3b1997['fill']===_0x4d7f03(0x187)&&(_0x3b1997[_0x4d7f03(0x37a)]=_0x30e86a['colorChannel1']),_0x48ee97[_0x4d7f03(0x167)]===_0x4d7f03(0x137)&&_0x3b1997['id']&&(_0x3b1997['id']=_0x3b1997['id']+_0x1e4e85[_0x4d7f03(0x210)]),Object[_0x4d7f03(0x39c)](_0x3b1997)[_0x4d7f03(0x282)](function(_0x1bc19d){const _0x4b9f17=_0x4d7f03;var _0x9de787=_0x1bc19d[0x0],_0x5be96a=_0x1bc19d[0x1];_0x9de787===_0x4b9f17(0x137)&&typeof _0x5be96a=='string'&&(_0x3b1997[_0x9de787]=_0x5be96a['replace'](/url\(#(.*)\)/,_0x4b9f17(0x325)[_0x4b9f17(0x202)](_0x1e4e85[_0x4b9f17(0x210)],')')));});var _0x2909c9=_0x1e4e85[_0x4d7f03(0x1ba)];return!_0x2909c9||_0x2909c9[_0x4d7f03(0x1a4)]===0x0||(_0x48ee97[_0x4d7f03(0x167)]==='use'&&_0x3b1997[_0x4d7f03(0x3aa)]&&(_0x3b1997['xlink:href']=_0x3b1997['xlink:href']+_0x1e4e85['idSuffix']),Object[_0x4d7f03(0x39c)](_0x3b1997)[_0x4d7f03(0x282)](function(_0x55cf5f){const _0x1fc37c=_0x4d7f03;var _0x428d32=_0x55cf5f[0x0],_0x277a7c=_0x55cf5f[0x1];typeof _0x277a7c=='string'&&(_0x3b1997[_0x428d32]=_0x277a7c[_0x1fc37c(0x300)](/url\(#(.*)\)/,_0x1fc37c(0x325)[_0x1fc37c(0x202)](_0x1e4e85[_0x1fc37c(0x210)],')')));})),_0x3b1997;}function _0x350116(_0x32e882,_0x1ed6f9){const _0x161fcb=_0x2e363d;var _0x5a59b7,_0x535bb3=_0x1ed6f9[_0x161fcb(0x1ba)];return!_0x535bb3||_0x535bb3[_0x161fcb(0x1a4)]===0x0?_0x32e882:_0x32e882[_0x161fcb(0x167)]===_0x161fcb(0x2d7)&&(!((_0x5a59b7=_0x32e882[_0x161fcb(0x1a3)])===null||_0x5a59b7===void 0x0)&&_0x5a59b7[_0x161fcb(0x1a4)])?_0x32b919(_0x32b919({},_0x32e882),{'children':_0x32e882['children']['map'](function(_0x4e384a){const _0xdefd62=_0x161fcb;return typeof _0x4e384a[_0xdefd62(0x31b)]['id']=='string'&&_0x535bb3&&_0x535bb3[_0xdefd62(0x24a)](_0x4e384a[_0xdefd62(0x31b)]['id'])?_0x32b919(_0x32b919({},_0x4e384a),{'attrs':_0x32b919(_0x32b919({},_0x4e384a['attrs']),{'id':_0x4e384a[_0xdefd62(0x31b)]['id']+_0x1ed6f9[_0xdefd62(0x210)]})}):_0x4e384a;})}):_0x32e882;}function _0x46bb04(){const _0x2a4540=_0x2e363d;return Math[_0x2a4540(0x2c4)]()[_0x2a4540(0x2bf)](0x24)[_0x2a4540(0x38d)](0x2,0x8);}_0x2559b5[_0x2e363d(0x1e3)]=_0x2e363d(0x1f8);var _0x28b628={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2e363d(0x25d),'viewBox':_0x2e363d(0x1b5),'width':_0x2e363d(0x345),'height':_0x2e363d(0x345)},'children':[{'tag':'g','attrs':{'clipPath':_0x2e363d(0x2aa)},'children':[{'tag':_0x2e363d(0x393),'attrs':{'stroke':_0x2e363d(0x39d),'d':_0x2e363d(0x1f6),'strokeLinecap':_0x2e363d(0x371),'strokeLinejoin':_0x2e363d(0x371),'strokeWidth':1.2}}]},{'tag':_0x2e363d(0x2d7),'attrs':{},'children':[{'tag':_0x2e363d(0x1d4),'attrs':{'id':_0x2e363d(0x15a)},'children':[{'tag':'path','attrs':{'fill':_0x2e363d(0x2b7),'d':_0x2e363d(0x1d3)}}]}]}],'defIds':[_0x2e363d(0x15a)]},_0x3f87a1=_0x5544c5[_0x2e363d(0x2d2)](function(_0x261d03,_0x3e9050){const _0x19c9f1=_0x2e363d;return _0x5544c5[_0x19c9f1(0x36c)](_0x2559b5,Object[_0x19c9f1(0x201)]({},_0x261d03,{'id':'off-line-icon','ref':_0x3e9050,'icon':_0x28b628}));});_0x3f87a1[_0x2e363d(0x1e3)]='OffLineIcon';var _0x3121d7={'tag':_0x2e363d(0x1af),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2e363d(0x25d),'viewBox':'0\x200\x2017\x2016','width':_0x2e363d(0x345),'height':_0x2e363d(0x345)},'children':[{'tag':'g','attrs':{'clipPath':_0x2e363d(0x2df)},'children':[{'tag':_0x2e363d(0x393),'attrs':{'stroke':_0x2e363d(0x39d),'d':_0x2e363d(0x17a),'strokeLinecap':'round','strokeLinejoin':_0x2e363d(0x371),'strokeWidth':1.2}}]},{'tag':_0x2e363d(0x2d7),'attrs':{},'children':[{'tag':_0x2e363d(0x1d4),'attrs':{'id':_0x2e363d(0x1a9)},'children':[{'tag':_0x2e363d(0x393),'attrs':{'fill':_0x2e363d(0x2b7),'d':_0x2e363d(0x1d3),'transform':_0x2e363d(0x32d)}}]}]}],'defIds':[_0x2e363d(0x1a9)]},_0x3e3cad=_0x5544c5['forwardRef'](function(_0x4e699e,_0xc3491d){const _0x10829c=_0x2e363d;return _0x5544c5[_0x10829c(0x36c)](_0x2559b5,Object[_0x10829c(0x201)]({},_0x4e699e,{'id':_0x10829c(0x2cc),'ref':_0xc3491d,'icon':_0x3121d7}));});_0x3e3cad[_0x2e363d(0x1e3)]=_0x2e363d(0x197);function _0x15b312(_0x5de95e){const _0x166997=_0x2e363d;switch(_0x5de95e){case _0x35d81a[_0x166997(0x28b)]['OFFLINE']:return _0x166997(0x12d);case _0x35d81a[_0x166997(0x28b)]['CONFLICT']:return _0x166997(0x285);case _0x35d81a[_0x166997(0x28b)][_0x166997(0x35d)]:return _0x166997(0x33b);case _0x35d81a['CollaborationStatus'][_0x166997(0x308)]:return _0x166997(0x18d);case _0x35d81a[_0x166997(0x28b)][_0x166997(0x309)]:case _0x35d81a['CollaborationStatus'][_0x166997(0x2dc)]:return'collabStatus.syncing';case _0x35d81a[_0x166997(0x28b)][_0x166997(0x1f7)]:case _0x35d81a[_0x166997(0x28b)][_0x166997(0x272)]:return _0x166997(0x1b8);}}function _0x58e3df(_0xa8da75){const _0x4eec7e=_0x2e363d,{status$:_0x3b51d2}=_0xa8da75,_0x33b253=_0x2d250c['useObservable'](_0x3b51d2,_0x35d81a[_0x4eec7e(0x28b)][_0x4eec7e(0x308)]),_0x3bdc2a=_0x2d250c[_0x4eec7e(0x2ad)](_0x2b43e1['LocaleService']),_0x4c60ff=_0x2d250c[_0x4eec7e(0x2ad)](_0x35d81a[_0x4eec7e(0x29b)]),_0xe8a38a=_0x33b253!==_0x35d81a[_0x4eec7e(0x28b)]['OFFLINE'],_0x34e570=_0x3bdc2a['t'](_0x15b312(_0x33b253)),_0x2d8093=_0xe8a38a?_0x356bea[_0x4eec7e(0x286)](_0x3e3cad,{}):_0x356bea['jsx'](_0x3f87a1,{}),_0x51d645=_0x5544c5['useCallback'](()=>{const _0x34ff0c=_0x4eec7e;_0xe8a38a||_0x4c60ff[_0x34ff0c(0x1d9)]();},[_0xe8a38a,_0x4c60ff]);function _0x4396a0(){const _0x48a597=_0x4eec7e;return _0x356bea[_0x48a597(0x1da)]('div',{'className':_0x48a597(0x1d1),'onClick':_0x51d645,'children':[_0x356bea['jsx']('div',{'className':_0xac66fe[_0x48a597(0x2c2)]('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0xe8a38a,'univer-text-red-500':!_0xe8a38a}),'children':_0x2d8093}),_0x356bea[_0x48a597(0x286)](_0x48a597(0x2f5),{'className':_0x48a597(0x27d),'children':_0x34e570})]});}return _0xe8a38a?_0x4396a0():_0x356bea['jsx'](_0xac66fe[_0x4eec7e(0x29c)],{'title':_0x3bdc2a['t'](_0x4eec7e(0x344)),'children':_0x4396a0()});}var _0x50b0ac=Object['getOwnPropertyDescriptor'],_0x273172=(_0x1aa4a0,_0x34c750,_0x34cac3,_0x535ff9)=>{const _0x420949=_0x2e363d;for(var _0x125d93=_0x535ff9>0x1?void 0x0:_0x535ff9?_0x50b0ac(_0x34c750,_0x34cac3):_0x34c750,_0x3ff6c9=_0x1aa4a0[_0x420949(0x1a4)]-0x1,_0xa82ae3;_0x3ff6c9>=0x0;_0x3ff6c9--)(_0xa82ae3=_0x1aa4a0[_0x3ff6c9])&&(_0x125d93=_0xa82ae3(_0x125d93)||_0x125d93);return _0x125d93;},_0x3fcb72=(_0x1c66b7,_0x583716)=>(_0x30ae15,_0x173fb3)=>_0x583716(_0x30ae15,_0x173fb3,_0x1c66b7);_0x1364d3[_0x2e363d(0x23b)]=class extends _0x2b43e1[_0x2e363d(0x396)]{constructor(_0x30986f,_0x34777a,_0x23334d,_0x565e69){const _0x19a064=_0x2e363d;super(),_0x1b73a5(this,'_status$',new _0x5ad77d[(_0x19a064(0x146))](_0x35d81a[_0x19a064(0x28b)][_0x19a064(0x308)])),(this[_0x19a064(0x1c6)]=_0x30986f,this[_0x19a064(0x121)]=_0x34777a,this[_0x19a064(0x2fa)]=_0x23334d,this[_0x19a064(0x24d)]=_0x565e69,this[_0x19a064(0x2b3)](),this[_0x19a064(0x377)]());}['_initStatusListener'](){const _0x1f5e8f=_0x2e363d;this[_0x1f5e8f(0x160)](this[_0x1f5e8f(0x1c6)][_0x1f5e8f(0x288)][_0x1f5e8f(0x230)](_0x5ad77d[_0x1f5e8f(0x291)](()=>{const _0x539eb2=_0x1f5e8f,_0x8d3f49=this[_0x539eb2(0x1c6)][_0x539eb2(0x33a)]();return _0x8d3f49?this[_0x539eb2(0x2fa)]['getCollabEntity$'](_0x8d3f49[_0x539eb2(0x331)]()):_0x5ad77d['of'](null);}),_0x5ad77d[_0x1f5e8f(0x291)](_0x171c81=>_0x171c81?_0x171c81['status$']:_0x5ad77d['of'](_0x35d81a['CollaborationStatus'][_0x1f5e8f(0x308)])))['subscribe'](_0x2de5a8=>{const _0x3e4c25=_0x1f5e8f;this[_0x3e4c25(0x2b1)][_0x3e4c25(0x320)](_0x2de5a8);}));}[_0x2e363d(0x2b3)](){const _0x2320a0=_0x2e363d;this[_0x2320a0(0x160)](this['_uiPartsService']['registerComponent'](_0x2d250c['BuiltInUIPart'][_0x2320a0(0x289)],()=>_0x2d250c[_0x2320a0(0x1aa)](_0x251708({'status$':this[_0x2320a0(0x2b1)][_0x2320a0(0x3b0)]()}),this[_0x2320a0(0x121)])));}},_0x1364d3[_0x2e363d(0x23b)]=_0x273172([_0x3fcb72(0x0,_0x2b43e1['IUniverInstanceService']),_0x3fcb72(0x1,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1[_0x2e363d(0x392)])),_0x3fcb72(0x2,_0x2b43e1[_0x2e363d(0x1f3)](_0x35d81a[_0x2e363d(0x252)])),_0x3fcb72(0x3,_0x2d250c[_0x2e363d(0x28c)])],_0x1364d3['DesktopCollaborationStatusDisplayController']);function _0x251708(_0x37290b){const {status$:_0xa78e5}=_0x37290b;return function(){const _0x58f27a=_0xc513;return _0x356bea[_0x58f27a(0x286)](_0x58e3df,{'status$':_0xa78e5});};}var _0x5bb69b=Object[_0x2e363d(0x29d)],_0x13c1ed=(_0x23f978,_0xc56a86,_0x3d21db,_0x6c17e7)=>{for(var _0x37a3f0=_0x6c17e7>0x1?void 0x0:_0x6c17e7?_0x5bb69b(_0xc56a86,_0x3d21db):_0xc56a86,_0x1a78c8=_0x23f978['length']-0x1,_0x128dc5;_0x1a78c8>=0x0;_0x1a78c8--)(_0x128dc5=_0x23f978[_0x1a78c8])&&(_0x37a3f0=_0x128dc5(_0x37a3f0)||_0x37a3f0);return _0x37a3f0;},_0x539b15=(_0x5c198b,_0x504c69)=>(_0x4bf268,_0x25812b)=>_0x504c69(_0x4bf268,_0x25812b,_0x5c198b);let _0x817f88=class extends _0x2b43e1[_0x2e363d(0x396)]{constructor(_0x344bad,_0x346952,_0x3d149a,_0x5b8c13,_0x1a763e,_0x16a522){const _0x597f18=_0x2e363d;super(),this[_0x597f18(0x212)]=_0x344bad,this[_0x597f18(0x260)]=_0x346952,this[_0x597f18(0x181)]=_0x3d149a,this[_0x597f18(0x3a2)]=_0x5b8c13,this[_0x597f18(0x3a3)]=_0x1a763e,this['_localeService']=_0x16a522,this[_0x597f18(0x281)](),this[_0x597f18(0x2be)]();}[_0x2e363d(0x281)](){const _0x44b8e9=_0x2e363d;this[_0x44b8e9(0x160)](this[_0x44b8e9(0x212)][_0x44b8e9(0x2e6)](()=>{const _0x32d51d=_0x44b8e9;if(this[_0x32d51d(0x260)][_0x32d51d(0x119)][_0x32d51d(0x27f)])return this[_0x32d51d(0x140)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x2e363d(0x2be)](){const _0x480929=_0x2e363d;this[_0x480929(0x160)](this[_0x480929(0x181)]['event$']['subscribe'](_0x4c2a42=>{const _0x171c3d=_0x480929;_0x4c2a42['id']===_0x35d81a[_0x171c3d(0x35c)]['OTHER_CLIENT_EDITING']&&this[_0x171c3d(0x3a2)][_0x171c3d(0x12c)]({'type':_0xac66fe[_0x171c3d(0x324)][_0x171c3d(0x1ed)],'content':this[_0x171c3d(0x140)]['t'](_0x171c3d(0x204))}),_0x4c2a42['id']===_0x35d81a[_0x171c3d(0x35c)]['CLOSE_ROOM']&&this['_messageService'][_0x171c3d(0x12c)]({'type':_0xac66fe[_0x171c3d(0x324)][_0x171c3d(0x1ed)],'content':this[_0x171c3d(0x140)]['t'](_0x171c3d(0x2f6))}),_0x4c2a42['id']===_0x35d81a['CollaborationUIEventId'][_0x171c3d(0x157)]&&this[_0x171c3d(0x3a3)][_0x171c3d(0x12c)]({'title':this[_0x171c3d(0x140)]['t']('permission.title'),'content':this['_localeService']['t'](_0x171c3d(0x14c)),'type':'error','duration':0x0}),_0x4c2a42['id']===_0x35d81a[_0x171c3d(0x35c)]['CONFLICT']&&this['_messageService'][_0x171c3d(0x12c)]({'type':_0xac66fe[_0x171c3d(0x324)][_0x171c3d(0x178)],'content':this[_0x171c3d(0x140)]['t'](_0x171c3d(0x2f6))+'('+_0x4c2a42[_0x171c3d(0x1b4)]+')'}),_0x4c2a42['id']===_0x35d81a[_0x171c3d(0x35c)][_0x171c3d(0x350)]&&this[_0x171c3d(0x3a2)][_0x171c3d(0x12c)]({'type':_0xac66fe[_0x171c3d(0x324)][_0x171c3d(0x1ed)],'content':this[_0x171c3d(0x140)]['t'](_0x4c2a42[_0x171c3d(0x1b4)]||'')}),_0x4c2a42['id']===_0x35d81a[_0x171c3d(0x35c)][_0x171c3d(0x33f)]&&this[_0x171c3d(0x3a2)][_0x171c3d(0x12c)]({'type':_0xac66fe['MessageType'][_0x171c3d(0x1ed)],'content':this[_0x171c3d(0x140)]['t'](_0x171c3d(0x2b2))}),_0x4c2a42['id']===_0x35d81a['CollaborationUIEventId'][_0x171c3d(0x19f)]&&this['_messageService']['show']({'type':_0xac66fe[_0x171c3d(0x324)]['Error'],'content':this['_localeService']['t']('session.connection-failed')}),_0x4c2a42['id']===_0x35d81a[_0x171c3d(0x35c)]['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x171c3d(0x12c)]({'type':_0xac66fe[_0x171c3d(0x324)][_0x171c3d(0x178)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};_0x817f88=_0x13c1ed([_0x539b15(0x0,_0x2d250c[_0x2e363d(0x37f)]),_0x539b15(0x1,_0x35d81a[_0x2e363d(0x348)]),_0x539b15(0x2,_0x2b43e1[_0x2e363d(0x1f3)](_0x35d81a[_0x2e363d(0x179)])),_0x539b15(0x3,_0x2d250c[_0x2e363d(0x153)]),_0x539b15(0x4,_0x2d250c[_0x2e363d(0x2c8)]),_0x539b15(0x5,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1[_0x2e363d(0x2c5)]))],_0x817f88);const _0x5094dd=_0x2e363d(0x31a),_0x3cf9e4={},_0x4b6a35=_0x2b43e1[_0x2e363d(0x27e)](_0x2e363d(0x257));var _0x1b14b7=Object[_0x2e363d(0x29d)],_0x19aa9a=(_0x4fca0f,_0x314a86,_0x2115e2,_0x3da59b)=>{const _0x113534=_0x2e363d;for(var _0x1f7e50=_0x3da59b>0x1?void 0x0:_0x3da59b?_0x1b14b7(_0x314a86,_0x2115e2):_0x314a86,_0x45ec40=_0x4fca0f[_0x113534(0x1a4)]-0x1,_0x56235a;_0x45ec40>=0x0;_0x45ec40--)(_0x56235a=_0x4fca0f[_0x45ec40])&&(_0x1f7e50=_0x56235a(_0x1f7e50)||_0x1f7e50);return _0x1f7e50;},_0x418d35=(_0x1326a8,_0x223526)=>(_0x2f8845,_0x4810ba)=>_0x223526(_0x2f8845,_0x4810ba,_0x1326a8);_0x1364d3[_0x2e363d(0x394)]=class extends _0x2b43e1[_0x2e363d(0x2bd)]{constructor(_0x5ecb6d,_0x403cf6,_0x2e9ce0,_0x16ea19,_0x1b830d){const _0x4111aa=_0x2e363d;super(),this[_0x4111aa(0x357)]=_0x5ecb6d,this[_0x4111aa(0x30f)]=_0x403cf6,this[_0x4111aa(0x232)]=_0x2e9ce0,this[_0x4111aa(0x39a)]=_0x16ea19,_0x1b830d?_0x1b830d==null||_0x1b830d[_0x4111aa(0x1f2)]()['then'](()=>this[_0x4111aa(0x151)]()):(this[_0x4111aa(0x30f)][_0x4111aa(0x1ef)](_0x4111aa(0x133),_0x4111aa(0x13d)),this[_0x4111aa(0x151)]());}async[_0x2e363d(0x151)](){const _0x3966bc=_0x2e363d,_0xd5b664=this[_0x3966bc(0x357)][_0x3966bc(0x191)](_0x3966bc(0x2e9)),_0x252af8=this[_0x3966bc(0x357)][_0x3966bc(0x191)](_0x3966bc(0x255)),_0x11ac5d=this['_urlService'][_0x3966bc(0x191)](_0x3966bc(0x369));if(!_0xd5b664||!_0x252af8){this[_0x3966bc(0x30f)][_0x3966bc(0x1ef)](_0x3966bc(0x133),_0x3966bc(0x17f));return;}const _0x41e4d5=await this[_0x3966bc(0x39a)][_0x3966bc(0x13c)](_0xd5b664,Number(_0x252af8),_0x11ac5d);_0x41e4d5&&_0x41e4d5 instanceof _0x2b43e1[_0x3966bc(0x1f9)]&&this[_0x3966bc(0x127)](_0x41e4d5);}async[_0x2e363d(0x127)](_0x59e505){const _0x501d60=_0x2e363d;await this['_updateSubUnitFromURLParams'](_0x59e505),_0x59e505[_0x501d60(0x262)][_0x501d60(0x230)](_0x5ad77d[_0x501d60(0x383)](this[_0x501d60(0x223)]))[_0x501d60(0x2d3)](_0x29b24e=>{_0x29b24e&&this['_updateURLWithCurrentState'](_0x29b24e);}),this['_urlService'][_0x501d60(0x327)][_0x501d60(0x230)](_0x5ad77d[_0x501d60(0x383)](this[_0x501d60(0x223)]))[_0x501d60(0x2d3)](()=>this[_0x501d60(0x31e)](_0x59e505));}[_0x2e363d(0x270)](_0x36be7f,_0x17d232=!0x1){const _0x43b3a8=_0x2e363d,_0x1463a3=this[_0x43b3a8(0x357)][_0x43b3a8(0x191)](_0x43b3a8(0x369));_0x36be7f['getSheetId']()!==_0x1463a3&&this[_0x43b3a8(0x357)][_0x43b3a8(0x198)](_0x43b3a8(0x369),_0x36be7f[_0x43b3a8(0x231)](),_0x17d232);}async['_updateSubUnitFromURLParams'](_0x2c70e9){const _0x5e49d6=_0x2e363d;var _0x587099;const _0x417f78=this[_0x5e49d6(0x357)][_0x5e49d6(0x191)](_0x5e49d6(0x369));if(!_0x417f78||!_0x2c70e9[_0x5e49d6(0x2b6)](_0x417f78)){const _0x5c74eb=_0x2c70e9[_0x5e49d6(0x30e)]()[0x0],_0x19c658=_0x2c70e9[_0x5e49d6(0x2b6)](_0x5c74eb);if(!_0x19c658)return;this[_0x5e49d6(0x270)](_0x19c658,!0x0),await this[_0x5e49d6(0x232)][_0x5e49d6(0x3ad)](_0x575825[_0x5e49d6(0x264)]['id'],{'unitId':_0x2c70e9[_0x5e49d6(0x331)](),'subUnitId':_0x5c74eb});return;}((_0x587099=_0x2c70e9[_0x5e49d6(0x237)]())==null?void 0x0:_0x587099[_0x5e49d6(0x231)]())!==_0x417f78&&await this[_0x5e49d6(0x232)][_0x5e49d6(0x3ad)](_0x575825[_0x5e49d6(0x264)]['id'],{'unitId':_0x2c70e9['getUnitId'](),'subUnitId':_0x417f78});}},_0x1364d3['CollaborationDataLoaderController']=_0x19aa9a([_0x418d35(0x0,_0x4b6a35),_0x418d35(0x1,_0x2b43e1[_0x2e363d(0x1dd)]),_0x418d35(0x2,_0x2b43e1['ICommandService']),_0x418d35(0x3,_0x2b43e1[_0x2e363d(0x1f3)](_0x35d81a[_0x2e363d(0x176)])),_0x418d35(0x4,_0x2b43e1[_0x2e363d(0x27b)](_0x3716d4[_0x2e363d(0x328)]))],_0x1364d3[_0x2e363d(0x394)]);var _0x2e5bbe=Object[_0x2e363d(0x29d)],_0x301717=(_0x12fcf9,_0x15ca15,_0x2aaeaf,_0x1d81b1)=>{const _0x15f00f=_0x2e363d;for(var _0x2e2db=_0x1d81b1>0x1?void 0x0:_0x1d81b1?_0x2e5bbe(_0x15ca15,_0x2aaeaf):_0x15ca15,_0x475425=_0x12fcf9[_0x15f00f(0x1a4)]-0x1,_0x5b7eae;_0x475425>=0x0;_0x475425--)(_0x5b7eae=_0x12fcf9[_0x475425])&&(_0x2e2db=_0x5b7eae(_0x2e2db)||_0x2e2db);return _0x2e2db;},_0x1f9433=(_0x190713,_0x317382)=>(_0x2968c9,_0x2218d8)=>_0x317382(_0x2968c9,_0x2218d8,_0x190713);let _0x417996=class{constructor(_0x5b6912,_0x560e96,_0x4b9c6f){this['_injector']=_0x5b6912,this['_transformService']=_0x560e96,this['_renderManagerService']=_0x4b9c6f;}[_0x2e363d(0x1e6)](_0x58e430){const _0x198088=_0x2e363d;this[_0x198088(0x313)](_0x58e430),this[_0x198088(0x1b7)](_0x58e430);}['transformRemoteChangeset'](_0x5d7ca3){const _0x4fc219=_0x2e363d,{unitID:_0x2d16f8}=_0x5d7ca3,_0x278946=this[_0x4fc219(0x311)][_0x4fc219(0x2fc)](_0x2d16f8)[_0x4fc219(0x1b6)](_0x15c8af[_0x4fc219(0x14b)]),{redoCache:_0x3e5f80}=_0x278946['getUndoRedoMutationParamsCache']();if(_0x3e5f80[_0x4fc219(0x1a4)]===0x0)return _0x5d7ca3;let _0x3be1b8=_0x2b43e1[_0x4fc219(0x2af)][_0x4fc219(0x340)](_0x5d7ca3['mutations'][0x0]);for(let _0x5f2e26=0x0;_0x5f2e26<_0x3e5f80[_0x4fc219(0x1a4)];_0x5f2e26++){const _0x18ec2f={'id':_0x4fc219(0x145),'params':{..._0x3e5f80[_0x5f2e26]}},_0x3ae186=this['_transformService'][_0x4fc219(0x175)](_0x3be1b8,_0x18ec2f,!0x1);if(_0x4bbdfc[_0x4fc219(0x2c0)](_0x3ae186))throw _0x3ae186[_0x4fc219(0x139)];_0x3be1b8=_0x3ae186[_0x4fc219(0x30b)];}return{..._0x2b43e1[_0x4fc219(0x2af)][_0x4fc219(0x340)](_0x5d7ca3),'mutations':[_0x3be1b8]};}['_transformUndoRedoStack'](_0x289fba){const _0x3d7c69=_0x2e363d,{unitID:_0x234f6a}=_0x289fba,_0x16fade=this[_0x3d7c69(0x311)][_0x3d7c69(0x2fc)](_0x234f6a)['with'](_0x15c8af['DocIMEInputManagerService']),{undoCache:_0x1291a2,redoCache:_0x19abff}=_0x16fade['getUndoRedoMutationParamsCache']();if(_0x1291a2[_0x3d7c69(0x1a4)]===0x0||_0x19abff[_0x3d7c69(0x1a4)]===0x0)return;const _0x37cd87=[],_0x7ff3b1=[];let _0x53ba67=_0x2b43e1['Tools']['deepClone'](_0x289fba['mutations'][0x0]),_0x336170=_0x2b43e1[_0x3d7c69(0x2af)][_0x3d7c69(0x340)](_0x289fba[_0x3d7c69(0x162)][0x0]);for(let _0x166a1d=_0x1291a2[_0x3d7c69(0x1a4)]-0x1;_0x166a1d>=0x0;_0x166a1d--){const _0x1ed11c={'id':_0x3d7c69(0x145),'params':{..._0x1291a2[_0x166a1d]}},_0x500687={'id':_0x3d7c69(0x145),'params':{..._0x19abff[_0x166a1d]}},_0x3c2604=this[_0x3d7c69(0x2a4)][_0x3d7c69(0x175)](_0x53ba67,_0x1ed11c,!0x1),_0x201262=this[_0x3d7c69(0x2a4)][_0x3d7c69(0x175)](_0x336170,_0x500687,!0x1);if(_0x4bbdfc[_0x3d7c69(0x2c0)](_0x3c2604))throw _0x3c2604[_0x3d7c69(0x139)];if(_0x4bbdfc[_0x3d7c69(0x2c0)](_0x201262))throw _0x201262[_0x3d7c69(0x139)];_0x37cd87['unshift'](_0x3c2604['m2Prime'][_0x3d7c69(0x387)]),_0x7ff3b1['unshift'](_0x201262[_0x3d7c69(0x34c)]['params']),_0x53ba67=_0x3c2604['m1Prime'],_0x336170=_0x201262[_0x3d7c69(0x30b)];}_0x16fade[_0x3d7c69(0x144)]({'undoCache':_0x37cd87,'redoCache':_0x7ff3b1});}[_0x2e363d(0x1b7)](_0x2de74e){const _0x55b684=_0x2e363d,{unitID:_0x30bf04}=_0x2de74e,_0x10145d=this['_renderManagerService'][_0x55b684(0x2fc)](_0x30bf04)['with'](_0x15c8af[_0x55b684(0x14b)]),_0x2b4633=_0x10145d[_0x55b684(0x1e7)]();if(_0x2b4633==null)return;const _0xe3cd5a=[{'id':_0x55b684(0x145),'params':{'unitId':_0x2de74e[_0x55b684(0x1bb)],'actions':null,'textRanges':[_0x2b4633]}}],_0x6e60b7=this[_0x55b684(0x2a4)][_0x55b684(0x1e2)](_0x2de74e,_0xe3cd5a);if(!_0x4bbdfc['isTransformMutationsWithChangesetSuccess'](_0x6e60b7))throw _0x6e60b7[_0x55b684(0x139)];const _0x539130=_0x6e60b7['m2Prime'][0x0][_0x55b684(0x387)][_0x55b684(0x22b)];Array[_0x55b684(0x388)](_0x539130)&&_0x539130['length']&&_0x10145d[_0x55b684(0x329)](_0x539130[0x0]);}};_0x417996=_0x301717([_0x1f9433(0x0,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1[_0x2e363d(0x392)])),_0x1f9433(0x1,_0x4bbdfc[_0x2e363d(0x129)]),_0x1f9433(0x2,_0x4f9ef0[_0x2e363d(0x19e)])],_0x417996);var _0x5a34a5=Object[_0x2e363d(0x29d)],_0x306e2f=(_0x331a85,_0x317f5d,_0x31964c,_0xa2b0c1)=>{for(var _0xe9e518=_0xa2b0c1>0x1?void 0x0:_0xa2b0c1?_0x5a34a5(_0x317f5d,_0x31964c):_0x317f5d,_0x3270ee=_0x331a85['length']-0x1,_0x164a38;_0x3270ee>=0x0;_0x3270ee--)(_0x164a38=_0x331a85[_0x3270ee])&&(_0xe9e518=_0x164a38(_0xe9e518)||_0xe9e518);return _0xe9e518;},_0x7d546c=(_0x1dae00,_0x1d78e5)=>(_0x450c06,_0x3fd723)=>_0x1d78e5(_0x450c06,_0x3fd723,_0x1dae00);let _0x4dbe37=class{constructor(_0x2dd2d7,_0x56d2c2,_0x57de39){const _0xa5de24=_0x2e363d;this[_0xa5de24(0x121)]=_0x2dd2d7,this[_0xa5de24(0x2a4)]=_0x56d2c2,this[_0xa5de24(0x11b)]=_0x57de39;}[_0x2e363d(0x174)](_0x4b39ed){const _0x195ffc=_0x2e363d;this[_0x195ffc(0x37b)](_0x4b39ed);}[_0x2e363d(0x2a2)](_0x40a68f){const _0x3b1878=_0x2e363d,{unitID:_0x7c3ce8}=_0x40a68f,{collaboration:_0x43ad40}=this[_0x3b1878(0x11b)][_0x3b1878(0x278)](_0x7c3ce8);if(_0x43ad40[_0x3b1878(0x1a4)]===0x0)return _0x40a68f;let _0xf6f1cf=_0x2b43e1[_0x3b1878(0x2af)][_0x3b1878(0x340)](_0x40a68f['mutations'][0x0]);for(let _0x221aa6=0x0;_0x221aa6<_0x43ad40[_0x3b1878(0x1a4)];_0x221aa6++){const _0x48a4a1={'id':_0x3b1878(0x145),'params':{'unitId':_0x43ad40[_0x221aa6]['unitId'],..._0x43ad40[_0x221aa6][_0x3b1878(0x1be)]}},_0x1da643=this[_0x3b1878(0x2a4)][_0x3b1878(0x175)](_0xf6f1cf,_0x48a4a1,!0x1);if(_0x4bbdfc[_0x3b1878(0x2c0)](_0x1da643))throw _0x1da643[_0x3b1878(0x139)];_0xf6f1cf=_0x1da643['m1Prime'];}return{..._0x2b43e1[_0x3b1878(0x2af)][_0x3b1878(0x340)](_0x40a68f),'mutations':[_0xf6f1cf]};}[_0x2e363d(0x37b)](_0x294f58){const _0x4b91e3=_0x2e363d,{unitID:_0x3db1d8}=_0x294f58,{history:_0x41ffda,collaboration:_0x5b8aad}=this['_docStateChangeManagerService'][_0x4b91e3(0x278)](_0x3db1d8);if(_0x41ffda['length']===0x0&&_0x5b8aad[_0x4b91e3(0x1a4)]===0x0)return;const _0x55de71=[],_0x140563=[];let _0x3b323a=_0x2b43e1['Tools'][_0x4b91e3(0x340)](_0x294f58[_0x4b91e3(0x162)][0x0]),_0x38a79b=_0x2b43e1[_0x4b91e3(0x2af)]['deepClone'](_0x294f58[_0x4b91e3(0x162)][0x0]);for(let _0x25f312=_0x41ffda[_0x4b91e3(0x1a4)]-0x1;_0x25f312>=0x0;_0x25f312--){const _0x45ed15={'id':_0x4b91e3(0x145),'params':{'unitId':_0x41ffda[_0x25f312][_0x4b91e3(0x32f)],..._0x41ffda[_0x25f312][_0x4b91e3(0x366)]}},_0x33387d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41ffda[_0x25f312]['unitId'],..._0x41ffda[_0x25f312]['redoState']}},_0x59864d=this[_0x4b91e3(0x2a4)][_0x4b91e3(0x175)](_0x3b323a,_0x45ed15,!0x1),_0x6082f0=this[_0x4b91e3(0x2a4)][_0x4b91e3(0x175)](_0x38a79b,_0x33387d,!0x1);if(_0x4bbdfc[_0x4b91e3(0x2c0)](_0x59864d))throw _0x59864d[_0x4b91e3(0x139)];if(_0x4bbdfc[_0x4b91e3(0x2c0)](_0x6082f0))throw _0x6082f0[_0x4b91e3(0x139)];_0x55de71[_0x4b91e3(0x1fe)]({..._0x41ffda[_0x25f312],'undoState':_0x59864d[_0x4b91e3(0x34c)][_0x4b91e3(0x387)],'redoState':_0x6082f0['m2Prime'][_0x4b91e3(0x387)]}),_0x3b323a=_0x59864d[_0x4b91e3(0x30b)],_0x38a79b=_0x6082f0[_0x4b91e3(0x30b)];}_0x3b323a=_0x2b43e1[_0x4b91e3(0x2af)][_0x4b91e3(0x340)](_0x294f58[_0x4b91e3(0x162)][0x0]),_0x38a79b=_0x2b43e1[_0x4b91e3(0x2af)][_0x4b91e3(0x340)](_0x294f58[_0x4b91e3(0x162)][0x0]);for(let _0x3eefc3=_0x5b8aad['length']-0x1;_0x3eefc3>=0x0;_0x3eefc3--){const _0xd3ab88={'id':_0x4b91e3(0x145),'params':{'unitId':_0x5b8aad[_0x3eefc3][_0x4b91e3(0x32f)],..._0x5b8aad[_0x3eefc3][_0x4b91e3(0x366)]}},_0x5d0cb5={'id':_0x4b91e3(0x145),'params':{'unitId':_0x5b8aad[_0x3eefc3]['unitId'],..._0x5b8aad[_0x3eefc3][_0x4b91e3(0x1be)]}},_0x583921=this[_0x4b91e3(0x2a4)][_0x4b91e3(0x175)](_0x3b323a,_0xd3ab88,!0x1),_0x528c15=this[_0x4b91e3(0x2a4)][_0x4b91e3(0x175)](_0x38a79b,_0x5d0cb5,!0x1);if(_0x4bbdfc[_0x4b91e3(0x2c0)](_0x583921))throw _0x583921[_0x4b91e3(0x139)];if(_0x4bbdfc[_0x4b91e3(0x2c0)](_0x528c15))throw _0x528c15[_0x4b91e3(0x139)];_0x140563[_0x4b91e3(0x1fe)]({..._0x5b8aad[_0x3eefc3],'undoState':_0x583921[_0x4b91e3(0x34c)]['params'],'redoState':_0x528c15[_0x4b91e3(0x34c)]['params']}),_0x3b323a=_0x583921['m1Prime'],_0x38a79b=_0x528c15['m1Prime'];}this[_0x4b91e3(0x11b)][_0x4b91e3(0x168)](_0x3db1d8,{'history':_0x55de71,'collaboration':_0x140563});}};_0x4dbe37=_0x306e2f([_0x7d546c(0x0,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1['Injector'])),_0x7d546c(0x1,_0x4bbdfc[_0x2e363d(0x129)]),_0x7d546c(0x2,_0x2b43e1[_0x2e363d(0x1f3)](_0x15c8af[_0x2e363d(0x1ac)]))],_0x4dbe37);var _0x16c2a7=Object[_0x2e363d(0x29d)],_0x5026e6=(_0x2ab1c1,_0x4e662c,_0xa137dc,_0x30d3d1)=>{const _0x1d2152=_0x2e363d;for(var _0x1cca31=_0x30d3d1>0x1?void 0x0:_0x30d3d1?_0x16c2a7(_0x4e662c,_0xa137dc):_0x4e662c,_0x188a25=_0x2ab1c1[_0x1d2152(0x1a4)]-0x1,_0x3d8b92;_0x188a25>=0x0;_0x188a25--)(_0x3d8b92=_0x2ab1c1[_0x188a25])&&(_0x1cca31=_0x3d8b92(_0x1cca31)||_0x1cca31);return _0x1cca31;},_0x238b5c=(_0x3d0229,_0x2b26c5)=>(_0x2d426f,_0x136525)=>_0x2b26c5(_0x2d426f,_0x136525,_0x3d0229);let _0x326498=class{constructor(_0x38caec,_0x2f0564){const _0x3caf13=_0x2e363d;this[_0x3caf13(0x121)]=_0x38caec,this[_0x3caf13(0x2a4)]=_0x2f0564;}['transformSelections'](_0x58ef89){const _0x15dd25=_0x2e363d;var _0x54a2f4;const _0x25b64d=this[_0x15dd25(0x121)][_0x15dd25(0x2a6)](_0x854483[_0x15dd25(0x1a8)]),_0x524599=(_0x54a2f4=_0x25b64d[_0x15dd25(0x304)]())!=null?_0x54a2f4:[];if(_0x524599[_0x15dd25(0x1a4)]===0x0)return;const _0x51197e=_0x58ef89[_0x15dd25(0x1bb)],_0x250910=[{'id':_0x15dd25(0x145),'params':{'unitId':_0x51197e,'actions':null,'textRanges':_0x524599}}],_0x6d6af9=this[_0x15dd25(0x2a4)][_0x15dd25(0x1e2)](_0x58ef89,_0x250910);if(!_0x4bbdfc[_0x15dd25(0x1e8)](_0x6d6af9))throw _0x6d6af9['error'];const _0x430a9d=_0x6d6af9['m2Prime'][0x0][_0x15dd25(0x387)][_0x15dd25(0x22b)];Array[_0x15dd25(0x388)](_0x430a9d)&&_0x430a9d[_0x15dd25(0x1a4)]&&_0x25b64d[_0x15dd25(0x3a0)](_0x430a9d,{'unitId':_0x51197e,'subUnitId':_0x51197e},!0x1);}};_0x326498=_0x5026e6([_0x238b5c(0x0,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1['Injector'])),_0x238b5c(0x1,_0x4bbdfc[_0x2e363d(0x129)])],_0x326498);var _0x6ca962=Object[_0x2e363d(0x29d)],_0x51d2fc=(_0x248591,_0x544be8,_0x4930f6,_0x3788b6)=>{const _0x5cf628=_0x2e363d;for(var _0xe4141a=_0x3788b6>0x1?void 0x0:_0x3788b6?_0x6ca962(_0x544be8,_0x4930f6):_0x544be8,_0x399dfc=_0x248591[_0x5cf628(0x1a4)]-0x1,_0x1b4782;_0x399dfc>=0x0;_0x399dfc--)(_0x1b4782=_0x248591[_0x399dfc])&&(_0xe4141a=_0x1b4782(_0xe4141a)||_0xe4141a);return _0xe4141a;},_0x11a89e=(_0x1dd6f2,_0x38b7ba)=>(_0x34e4c8,_0x52b481)=>_0x38b7ba(_0x34e4c8,_0x52b481,_0x1dd6f2);let _0x443ad7=class extends _0x2b43e1['Disposable']{constructor(_0x3b9438,_0x4b36c5,_0x248fe2,_0x45ea25,_0x3753af,_0x5ef1a8,_0x3fa4ef,_0x302fda){const _0x5800b4=_0x2e363d;super(),_0x1b73a5(this,_0x5800b4(0x2b1),new _0x5ad77d[(_0x5800b4(0x146))](_0x35d81a[_0x5800b4(0x28b)][_0x5800b4(0x308)])),(this[_0x5800b4(0x11b)]=_0x3b9438,this[_0x5800b4(0x2fa)]=_0x4b36c5,this[_0x5800b4(0x123)]=_0x248fe2,this[_0x5800b4(0x31c)]=_0x45ea25,this[_0x5800b4(0x271)]=_0x3753af,this[_0x5800b4(0x188)]=_0x5ef1a8,this[_0x5800b4(0x3a2)]=_0x3fa4ef,this[_0x5800b4(0x140)]=_0x302fda,this['_initEntityListener']());}[_0x2e363d(0x1ab)](){const _0x8ab804=_0x2e363d;this[_0x8ab804(0x160)](this['_collaborationController']['entityInit$'][_0x8ab804(0x2d3)](_0x228747=>{const _0x5a8322=_0x8ab804,_0x40fc3a=this[_0x5a8322(0x11b)][_0x5a8322(0x1fa)][_0x5a8322(0x2d3)](_0x53c89b=>{const _0x192654=_0x5a8322;if(_0x53c89b==null)return;const {unitId:_0x55fcac,redoState:_0x5e0c19,commandId:_0x3049b7}=_0x53c89b;if(_0x55fcac!==_0x228747[_0x192654(0x1bb)])return;const _0x3917c4={'id':_0x3049b7,'type':_0x2b43e1[_0x192654(0x13f)]['MUTATION'],'params':{'unitId':_0x55fcac,'actions':_0x5e0c19['actions'],'textRanges':null}};_0x228747[_0x192654(0x244)](_0x3917c4);});if(_0x228747[_0x5a8322(0x160)](_0x40fc3a),_0x228747 instanceof _0x35d81a[_0x5a8322(0x355)]){const _0x32df32={'onTransformIME':_0x5137eb=>this[_0x5a8322(0x123)][_0x5a8322(0x1e6)](_0x5137eb),'onTransformState':_0x41a718=>this[_0x5a8322(0x31c)][_0x5a8322(0x174)](_0x41a718),'onTransformSelections':_0x1e810f=>this[_0x5a8322(0x271)][_0x5a8322(0x256)](_0x1e810f),'onSyncEditingCollabCursor':_0x4a9f4b=>this['_docSyncEditingCollabCursorService'][_0x5a8322(0x33c)](_0x4a9f4b),'onTransformRemoteChangesetByIMECache':_0x2c3829=>this['_docTransformIMECacheService'][_0x5a8322(0x2a2)](_0x2c3829),'onTransformRemoteChangesetByStateCache':_0x2ebec0=>this[_0x5a8322(0x31c)][_0x5a8322(0x2a2)](_0x2ebec0)};_0x228747[_0x5a8322(0x193)](_0x32df32);}}));}};_0x443ad7=_0x51d2fc([_0x11a89e(0x0,_0x2b43e1[_0x2e363d(0x1f3)](_0x15c8af['DocStateChangeManagerService'])),_0x11a89e(0x1,_0x2b43e1[_0x2e363d(0x1f3)](_0x35d81a[_0x2e363d(0x252)])),_0x11a89e(0x2,_0x2b43e1[_0x2e363d(0x1f3)](_0x417996)),_0x11a89e(0x3,_0x2b43e1[_0x2e363d(0x1f3)](_0x4dbe37)),_0x11a89e(0x4,_0x2b43e1['Inject'](_0x326498)),_0x11a89e(0x5,_0x2b43e1['Inject'](_0x5eda65)),_0x11a89e(0x6,_0x2d250c[_0x2e363d(0x153)]),_0x11a89e(0x7,_0x2b43e1['Inject'](_0x2b43e1[_0x2e363d(0x2c5)]))],_0x443ad7);var _0x91b78=Object['getOwnPropertyDescriptor'],_0x23b014=(_0x5b88a0,_0x57c9e6,_0x467a75,_0x322c8a)=>{const _0x2c09c3=_0x2e363d;for(var _0x51302f=_0x322c8a>0x1?void 0x0:_0x322c8a?_0x91b78(_0x57c9e6,_0x467a75):_0x57c9e6,_0x3a4f30=_0x5b88a0[_0x2c09c3(0x1a4)]-0x1,_0x754c1d;_0x3a4f30>=0x0;_0x3a4f30--)(_0x754c1d=_0x5b88a0[_0x3a4f30])&&(_0x51302f=_0x754c1d(_0x51302f)||_0x51302f);return _0x51302f;},_0x3880e4=(_0x460857,_0x95e71c)=>(_0xbfab9e,_0x534c64)=>_0x95e71c(_0xbfab9e,_0x534c64,_0x460857);let _0x2c6462=class extends _0x2b43e1[_0x2e363d(0x396)]{constructor(_0x5bbba6,_0x3f424f,_0xd6c95d){const _0xf8e666=_0x2e363d;super(),_0x1b73a5(this,'_cachedData',new Map()),_0x1b73a5(this,_0xf8e666(0x166),new Map()),_0x1b73a5(this,'_disabled',!0x1),(this['_configService']=_0x5bbba6,this[_0xf8e666(0x266)]=_0x3f424f,this['_revisionService']=_0xd6c95d);}['disableLocalCache'](){const _0x484d84=_0x2e363d;this[_0x484d84(0x306)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x2e363d(0x119)](){const _0x20aeca=_0x2e363d;return this[_0x20aeca(0x166)];}[_0x2e363d(0x1ad)](){const _0x9f1494=_0x2e363d;this[_0x9f1494(0x38f)]()[_0x9f1494(0x23c)](()=>super['dispose']());}async[_0x2e363d(0x248)](_0xab23f7){const _0x50c723=_0x2e363d;return this[_0x50c723(0x306)]?null:this[_0x50c723(0x266)][_0x50c723(0x23f)](_0x35d81a[_0x50c723(0x16e)](_0xab23f7));}async[_0x2e363d(0x2c7)](_0x4989d6,_0x141b63){const _0x23ab38=_0x2e363d;return!!this[_0x23ab38(0x266)]['setItem'](_0x4989d6,_0x141b63);}[_0x2e363d(0x2eb)](_0x5b9f0e,_0x49e88a,_0x33ff5e,_0x153177){const _0x19cf82=_0x2e363d,_0x5bf8fd=this[_0x19cf82(0x249)]['getCurrentRevOfUnit'](_0x5b9f0e);this[_0x19cf82(0x298)][_0x19cf82(0x2f1)](_0x5b9f0e,{'unitID':_0x5b9f0e,'type':_0x49e88a,'awaitingChangeset':_0x33ff5e,'mutations':_0x153177,'rev':_0x5bf8fd}),this[_0x19cf82(0x166)]['has'](_0x5b9f0e)||this[_0x19cf82(0x2b4)](_0x5b9f0e);}[_0x2e363d(0x2b4)](_0x2db181){const _0xcff047=_0x2e363d,_0x28739a=this[_0xcff047(0x2a0)]();_0x28739a===0x0?this[_0xcff047(0x186)](_0x2db181):this['_saveTaskMap']['set'](_0x2db181,setTimeout(()=>this[_0xcff047(0x186)](_0x2db181),_0x28739a));}[_0x2e363d(0x2a0)](){const _0x1c7cb3=_0x2e363d;var _0x2f600b;return(_0x2f600b=this[_0x1c7cb3(0x25e)][_0x1c7cb3(0x222)](_0x35d81a[_0x1c7cb3(0x16a)]))!=null?_0x2f600b:_0x35d81a[_0x1c7cb3(0x14a)];}[_0x2e363d(0x186)](_0x4b9abf){const _0x34584e=_0x2e363d,_0x1216f5=this['_saveTaskMap'][_0x34584e(0x2a6)](_0x4b9abf);return _0x1216f5!==void 0x0&&window[_0x34584e(0x126)](_0x1216f5),this[_0x34584e(0x266)][_0x34584e(0x32e)](_0x35d81a[_0x34584e(0x16e)](_0x4b9abf),this[_0x34584e(0x298)][_0x34584e(0x2a6)](_0x4b9abf))[_0x34584e(0x23c)](()=>this[_0x34584e(0x166)][_0x34584e(0x360)](_0x4b9abf));}async['exhaustSavingTask'](){const _0x4c9a7d=_0x2e363d,_0x121738=[];this[_0x4c9a7d(0x166)][_0x4c9a7d(0x282)]((_0x479c24,_0x4fdf7a)=>{const _0x4d688b=_0x4c9a7d;window[_0x4d688b(0x126)](_0x479c24),_0x121738[_0x4d688b(0x20a)](this[_0x4d688b(0x186)](_0x4fdf7a)[_0x4d688b(0x23c)](()=>{const _0x1c1631=_0x4d688b;this[_0x1c1631(0x166)][_0x1c1631(0x360)](_0x4fdf7a);}));}),await Promise[_0x4c9a7d(0x219)](_0x121738);}};_0x2c6462=_0x23b014([_0x3880e4(0x0,_0x2b43e1['IConfigService']),_0x3880e4(0x1,_0x2b43e1[_0x2e363d(0x15f)]),_0x3880e4(0x2,_0x2b43e1[_0x2e363d(0x1f3)](_0x4bbdfc[_0x2e363d(0x337)]))],_0x2c6462);class _0x3576f9 extends _0x2b43e1[_0x2e363d(0x2bd)]{constructor(){const _0x2ecb14=_0x2e363d;super(),_0x1b73a5(this,_0x2ecb14(0x327)),this[_0x2ecb14(0x327)]=_0x5ad77d[_0x2ecb14(0x17b)](window,_0x2ecb14(0x1b9))[_0x2ecb14(0x230)](_0x5ad77d[_0x2ecb14(0x383)](this[_0x2ecb14(0x223)]),_0x5ad77d[_0x2ecb14(0x161)](0x1),_0x5ad77d['mapTo'](void 0x0));}['setParam'](_0x5c7f22,_0x23fd3e,_0x5daabc=!0x1){const _0x278afb=_0x2e363d,_0x552e85=new URL(window[_0x278afb(0x293)][_0x278afb(0x338)]);_0x552e85[_0x278afb(0x34d)]['set'](_0x5c7f22,_0x23fd3e),_0x5daabc?window[_0x278afb(0x135)][_0x278afb(0x296)]('','',_0x552e85[_0x278afb(0x2bf)]()):window['history'][_0x278afb(0x2c6)]('','',_0x552e85['toString']());}[_0x2e363d(0x154)](_0x5eae8a,_0x581148=!0x1){const _0x430cc1=_0x2e363d,_0x1db9bc=new URL(window['location'][_0x430cc1(0x338)]);_0x1db9bc[_0x430cc1(0x34d)]['delete'](_0x5eae8a),_0x581148?window['history'][_0x430cc1(0x296)]('','',_0x1db9bc[_0x430cc1(0x2bf)]()):window[_0x430cc1(0x135)]['pushState']('','',_0x1db9bc[_0x430cc1(0x2bf)]());}[_0x2e363d(0x191)](_0x28078e){const _0xc190f2=_0x2e363d;var _0x1039a7;return(_0x1039a7=new URL(window['location'][_0xc190f2(0x338)])['searchParams']['get'](_0x28078e))!=null?_0x1039a7:void 0x0;}}var _0xdb85f1=Object[_0x2e363d(0x26b)],_0xe7e635=Object[_0x2e363d(0x29d)],_0x376fae=(_0x52493a,_0x12e692,_0x1a4dd7)=>_0x12e692 in _0x52493a?_0xdb85f1(_0x52493a,_0x12e692,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a4dd7}):_0x52493a[_0x12e692]=_0x1a4dd7,_0x1f2bd3=(_0x11979c,_0x170e3c,_0x501b01,_0x18342a)=>{const _0x7d0279=_0x2e363d;for(var _0x6e3f61=_0x18342a>0x1?void 0x0:_0x18342a?_0xe7e635(_0x170e3c,_0x501b01):_0x170e3c,_0x5a3c52=_0x11979c[_0x7d0279(0x1a4)]-0x1,_0x415341;_0x5a3c52>=0x0;_0x5a3c52--)(_0x415341=_0x11979c[_0x5a3c52])&&(_0x6e3f61=_0x415341(_0x6e3f61)||_0x6e3f61);return _0x6e3f61;},_0x4e0fa5=(_0x152e80,_0xa0430b)=>(_0x3297eb,_0x5a8087)=>_0xa0430b(_0x3297eb,_0x5a8087,_0x152e80),_0x3d53d6=(_0x2d7c6c,_0x535c3b,_0x222d6f)=>_0x376fae(_0x2d7c6c,_0x535c3b+'',_0x222d6f);const _0x3f8f45='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x1364d3[_0x2e363d(0x390)]=class extends _0x2b43e1[_0x2e363d(0x192)]{constructor(_0x18e667=_0x3cf9e4,_0x2bebba,_0x291513,_0x454544){const _0x282cf5=_0x2e363d;super(),this[_0x282cf5(0x29e)]=_0x18e667,this['_renderManagerService']=_0x2bebba,this[_0x282cf5(0x121)]=_0x291513,this['_configService']=_0x454544;const {..._0x26e5cf}=_0x2b43e1[_0x282cf5(0x284)]({},_0x3cf9e4,this[_0x282cf5(0x29e)]);this[_0x282cf5(0x25e)]['setConfig'](_0x5094dd,_0x26e5cf);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}[_0x2e363d(0x2c3)](){const _0x848649=_0x2e363d;this[_0x848649(0x356)]();}[_0x2e363d(0x265)](){const _0x21c648=_0x2e363d;var _0x48821a;const _0x178e4e=[[_0x5daa50],[_0x326498],[_0x417996],[_0x4dbe37],[_0x5eda65],[_0x4b6a35,{'useClass':_0x3576f9}],[_0x519894[_0x21c648(0x15d)],{'useClass':_0x519894[_0x21c648(0x2a5)]}],[_0x35d81a['ILocalCacheService'],{'useClass':_0x2c6462}],[_0x1364d3[_0x21c648(0x23b)]],[_0x443ad7],[_0x817f88],[_0x5a14bf],[_0x41c5dd],[_0x1364d3[_0x21c648(0x394)]]];_0x2b43e1[_0x21c648(0x2ee)](this[_0x21c648(0x121)],_0x2b43e1[_0x21c648(0x2ac)](_0x178e4e,(_0x48821a=this[_0x21c648(0x29e)])==null?void 0x0:_0x48821a[_0x21c648(0x13e)]));}[_0x2e363d(0x356)](){const _0x52ef0c=_0x2e363d;this[_0x52ef0c(0x160)](this['_renderManagerService'][_0x52ef0c(0x1f4)](_0x2b43e1[_0x52ef0c(0x322)][_0x52ef0c(0x1bd)],[_0x38ac90])),this[_0x52ef0c(0x160)](this[_0x52ef0c(0x311)][_0x52ef0c(0x1f4)](_0x2b43e1[_0x52ef0c(0x322)][_0x52ef0c(0x138)],[_0x5242c8]));}['_initDependencies'](){const _0x3ccf1b=_0x2e363d;_0x2b43e1[_0x3ccf1b(0x228)](this[_0x3ccf1b(0x121)],[[_0x5a14bf],[_0x1364d3[_0x3ccf1b(0x23b)]],[_0x443ad7],[_0x817f88],[_0x1364d3[_0x3ccf1b(0x394)]]]);}},_0x3d53d6(_0x1364d3[_0x2e363d(0x390)],_0x2e363d(0x380),_0x3f8f45),_0x1364d3[_0x2e363d(0x390)]=_0x1f2bd3([_0x2b43e1[_0x2e363d(0x34b)](_0x35d81a[_0x2e363d(0x236)]),_0x4e0fa5(0x1,_0x4f9ef0[_0x2e363d(0x19e)]),_0x4e0fa5(0x2,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1['Injector'])),_0x4e0fa5(0x3,_0x2b43e1[_0x2e363d(0x334)])],_0x1364d3['UniverCollaborationClientUIPlugin']);var _0x4e96e1=Object[_0x2e363d(0x29d)],_0x14cd10=(_0x2cbec8,_0xa5b2a0,_0x43b4b5,_0x4a5336)=>{const _0x3adb10=_0x2e363d;for(var _0x293b44=_0x4a5336>0x1?void 0x0:_0x4a5336?_0x4e96e1(_0xa5b2a0,_0x43b4b5):_0xa5b2a0,_0x3326f5=_0x2cbec8[_0x3adb10(0x1a4)]-0x1,_0x13a30e;_0x3326f5>=0x0;_0x3326f5--)(_0x13a30e=_0x2cbec8[_0x3326f5])&&(_0x293b44=_0x13a30e(_0x293b44)||_0x293b44);return _0x293b44;},_0xae5226=(_0x5eabd3,_0x3553b4)=>(_0x27fc72,_0x5ebe63)=>_0x3553b4(_0x27fc72,_0x5ebe63,_0x5eabd3);_0x1364d3[_0x2e363d(0x224)]=class extends _0x35d81a['CollaborationSocketService']{constructor(_0x37a42a,_0x4858d0,_0x15fe57,_0x45f54c,_0x3b866e){super(_0x37a42a,_0x4858d0,_0x15fe57,_0x45f54c,_0x3b866e);}async['createSocket'](_0x8b8355){const _0x345623=_0x2e363d,_0x44abfb=await this[_0x345623(0x200)](),_0x57182f=this[_0x345623(0x1d5)](_0x8b8355,_0x44abfb);return this[_0x345623(0x2bb)](_0x57182f);}[_0x2e363d(0x1d5)](_0x23c27c,_0x460996){const _0x3bfc08=_0x2e363d,_0x2b076e=typeof window>'u'?new URL(_0x23c27c):new URL(_0x23c27c,window[_0x3bfc08(0x293)][_0x3bfc08(0x25c)]);_0x2b076e[_0x3bfc08(0x34d)][_0x3bfc08(0x2f1)](_0x3bfc08(0x21b),_0x460996);const _0x340682=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x3bfc08(0x258)]);return _0x340682[_0x3bfc08(0x2a6)](_0x3bfc08(0x229))&&_0x2b076e[_0x3bfc08(0x34d)][_0x3bfc08(0x2f1)]('runId',_0x340682[_0x3bfc08(0x2a6)](_0x3bfc08(0x229))),_0x2b076e[_0x3bfc08(0x2bf)]();}async[_0x2e363d(0x200)](){const _0x26302f=_0x2e363d;var _0x597881,_0x2c5ded,_0x5920ed;const _0x40b978=this[_0x26302f(0x25e)][_0x26302f(0x222)](_0x35d81a[_0x26302f(0x2cd)]),_0x45393a=(_0x597881=_0x40b978==null?void 0x0:_0x40b978[_0x26302f(0x358)])!=null?_0x597881:_0x35d81a[_0x26302f(0x318)];return(_0x5920ed=(_0x2c5ded=(await this['_httpService'][_0x26302f(0x2a6)](_0x45393a,{'headers':{'Content-Type':_0x26302f(0x130)}}))[_0x26302f(0x39b)])==null?void 0x0:_0x2c5ded[_0x26302f(0x319)])!=null?_0x5920ed:'';}},_0x1364d3[_0x2e363d(0x224)]=_0x14cd10([_0xae5226(0x0,_0x2b43e1[_0x2e363d(0x1f3)](_0x2b43e1[_0x2e363d(0x392)])),_0xae5226(0x1,_0x2b43e1['Inject'](_0x519894[_0x2e363d(0x208)])),_0xae5226(0x2,_0x2b43e1[_0x2e363d(0x334)]),_0xae5226(0x3,_0x2b43e1[_0x2e363d(0x1dd)]),_0xae5226(0x4,_0x4bbdfc['ISnapshotServerService'])],_0x1364d3[_0x2e363d(0x224)]);const _0x8fdf59=0x7530,_0x51ea71=_0x2e363d(0x217);class _0x1b25be extends _0x2b43e1[_0x2e363d(0x396)]{constructor(){const _0x1ea439=_0x2e363d;super(),_0x1b73a5(this,_0x1ea439(0x240),_0x2b43e1[_0x1ea439(0x317)]()),_0x1b73a5(this,_0x1ea439(0x170),new Set()),_0x1b73a5(this,_0x1ea439(0x2b0),new Map()),_0x1b73a5(this,'_heartbeatTimer',null),_0x1b73a5(this,_0x1ea439(0x397),new Map()),_0x1b73a5(this,_0x1ea439(0x235),new Map()),this[_0x1ea439(0x151)]();}[_0x2e363d(0x1ad)](){const _0x2a3a6c=_0x2e363d;super[_0x2a3a6c(0x1ad)](),this[_0x2a3a6c(0x397)][_0x2a3a6c(0x282)]((_0x453e5c,_0x4f9057)=>this['_removeClearOtherTimer'](_0x4f9057)),this[_0x2a3a6c(0x263)]&&window[_0x2a3a6c(0x2bc)](this[_0x2a3a6c(0x263)]);}[_0x2e363d(0x24c)](_0x37f9bd){const _0x7ee4e4=_0x2e363d;return this[_0x7ee4e4(0x12f)](_0x37f9bd)[_0x7ee4e4(0x230)](_0x5ad77d['distinctUntilChanged']());}[_0x2e363d(0x1db)](_0x4b260a){const _0x352031=_0x2e363d;this[_0x352031(0x170)][_0x352031(0x27f)]===0x0&&this[_0x352031(0x143)](),this[_0x352031(0x170)]['add'](_0x4b260a),this[_0x352031(0x373)]({'type':0x0,'memberID':this[_0x352031(0x240)],'unitIDs':[_0x4b260a],'isForwarded':!0x1});}['disposeUnit'](_0x4c5abc){const _0x3eee80=_0x2e363d;this[_0x3eee80(0x170)][_0x3eee80(0x360)](_0x4c5abc),this[_0x3eee80(0x170)]['size']===0x0&&this[_0x3eee80(0x263)]&&window['clearInterval'](this[_0x3eee80(0x263)]);}[_0x2e363d(0x151)](){const _0x5567a4=_0x2e363d;this[_0x5567a4(0x160)](_0x2b43e1[_0x5567a4(0x1d6)](_0x5ad77d[_0x5567a4(0x17b)](window,_0x5567a4(0x2ef))['subscribe'](_0x3055ad=>{const _0x5b437f=_0x5567a4;if(_0x3055ad[_0x5b437f(0x1e4)]!==_0x51ea71||!_0x3055ad[_0x5b437f(0x180)])return;const _0x236a55=JSON[_0x5b437f(0x1c9)](_0x3055ad[_0x5b437f(0x180)]);this[_0x5b437f(0x276)](_0x236a55);}))),window[_0x5567a4(0x370)](_0x5567a4(0x35f),()=>this['_send']({'type':0x1,'memberID':this[_0x5567a4(0x240)],'unitIDs':Array[_0x5567a4(0x2de)](this[_0x5567a4(0x170)])}));}[_0x2e363d(0x276)](_0x1f509b){const _0x67624=_0x2e363d;switch(_0x1f509b[_0x67624(0x255)]){case 0x0:this[_0x67624(0x226)](_0x1f509b);break;case 0x1:this['_handleLeaveEvent'](_0x1f509b);break;case 0x2:this[_0x67624(0x23d)](_0x1f509b);break;}}['_handleJoinEvent'](_0x496164){const _0x2bf025=_0x2e363d,{unitIDs:_0x9f0b54,memberID:_0x2ae9a9,isForwarded:_0x5a9a3e}=_0x496164;_0x9f0b54[_0x2bf025(0x282)](_0x72d675=>{const _0x1c2796=_0x2bf025;if(!_0x5a9a3e&&this[_0x1c2796(0x2b0)][_0x1c2796(0x149)](_0x72d675)&&this['_ensureSubject'](_0x72d675)[_0x1c2796(0x320)](_0x35d81a['UnitStatus'][_0x1c2796(0x196)]),!this[_0x1c2796(0x2b0)][_0x1c2796(0x149)](_0x72d675)||!this[_0x1c2796(0x2b0)][_0x1c2796(0x2a6)](_0x72d675)[_0x1c2796(0x149)](_0x2ae9a9)){const _0x9afe9b=this[_0x1c2796(0x2b0)]['get'](_0x72d675)||new Set();_0x9afe9b[_0x1c2796(0x16c)](_0x2ae9a9),this['_unitOnClients'][_0x1c2796(0x2f1)](_0x72d675,_0x9afe9b),this['_scheduleClearOtherTimer'](_0x2ae9a9);}}),_0x5a9a3e||this[_0x2bf025(0x373)]({'type':0x0,'memberID':this[_0x2bf025(0x240)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2e363d(0x2ea)](_0xede20f){const _0x5766e9=_0x2e363d;this[_0x5766e9(0x1cd)](_0xede20f);const _0xe552a4=window[_0x5766e9(0x211)](()=>{const _0x49c169=_0x5766e9;this[_0x49c169(0x2b0)][_0x49c169(0x282)](_0x5b24ce=>{const _0x597082=_0x49c169;_0x5b24ce[_0x597082(0x360)](_0xede20f);});},_0x8fdf59*0x2);this[_0x5766e9(0x397)][_0x5766e9(0x2f1)](_0xede20f,_0xe552a4);}['_removeClearOtherTimer'](_0x5e4b33){const _0x2956fd=_0x2e363d;if(this[_0x2956fd(0x397)][_0x2956fd(0x149)](_0x5e4b33)){const _0x298bc8=this[_0x2956fd(0x397)][_0x2956fd(0x2a6)](_0x5e4b33);_0x298bc8&&window['clearTimeout'](_0x298bc8),this['_clearOtherTimers']['set'](_0x5e4b33,null);}}['_handleLeaveEvent'](_0xcbb6d9){const {memberID:_0x2a77df,unitIDs:_0x286789}=_0xcbb6d9;_0x286789['forEach'](_0x293b0c=>{const _0x5de589=_0xc513;var _0x39e51f;const _0x2c56a9=this['_unitOnClients'][_0x5de589(0x2a6)](_0x293b0c);_0x2c56a9&&(_0x2c56a9[_0x5de589(0x360)](_0x2a77df),(_0x39e51f=this[_0x5de589(0x12f)](_0x293b0c))==null||_0x39e51f[_0x5de589(0x320)](_0x2c56a9[_0x5de589(0x27f)]===0x0?_0x35d81a[_0x5de589(0x330)][_0x5de589(0x16b)]:_0x35d81a['UnitStatus'][_0x5de589(0x196)]));}),this['_removeClearOtherTimer'](_0x2a77df);}[_0x2e363d(0x23d)](_0x44d17c){const _0x879663=_0x2e363d;this['_scheduleClearOtherTimer'](_0x44d17c[_0x879663(0x2ec)]);}['_send'](_0x4b822f){const _0x5b64d2=_0x2e363d;localStorage['setItem'](_0x51ea71,JSON[_0x5b64d2(0x1dc)](_0x4b822f));}[_0x2e363d(0x143)](){const _0xb65e87=_0x2e363d;this[_0xb65e87(0x263)]=window[_0xb65e87(0x18a)](()=>{const _0x5451b0=_0xb65e87;this[_0x5451b0(0x373)]({'type':0x2,'memberID':this['_id']});},_0x8fdf59);}[_0x2e363d(0x12f)](_0x47c3a7){const _0x3718c7=_0x2e363d;return this['_unitStatus'][_0x3718c7(0x149)](_0x47c3a7)||this[_0x3718c7(0x235)][_0x3718c7(0x2f1)](_0x47c3a7,new _0x5ad77d['BehaviorSubject'](_0x35d81a[_0x3718c7(0x330)][_0x3718c7(0x16b)])),this[_0x3718c7(0x235)][_0x3718c7(0x2a6)](_0x47c3a7);}}var _0x1c5b79=(_0x3b9636=>(_0x3b9636[_0x3b9636['UNDEFINED']=0x0]=_0x2e363d(0x24e),_0x3b9636[_0x3b9636['OK']=0x1]='OK',_0x3b9636[_0x3b9636[_0x2e363d(0x24b)]=0x2]=_0x2e363d(0x24b),_0x3b9636[_0x3b9636[_0x2e363d(0x157)]=0x3]=_0x2e363d(0x157),_0x3b9636[_0x3b9636[_0x2e363d(0x399)]=0x4]='NOT_FOUND',_0x3b9636[_0x3b9636[_0x2e363d(0x11d)]=0x5]=_0x2e363d(0x11d),_0x3b9636[_0x3b9636['ALREADY_EXISTS']=0x6]=_0x2e363d(0x15e),_0x3b9636[_0x3b9636[_0x2e363d(0x1a2)]=0x7]='INVALID_ARGUMENT',_0x3b9636[_0x3b9636[_0x2e363d(0x21e)]=0x8]='TOO_MANY_REQUESTS',_0x3b9636[_0x3b9636['COMPLETION_FINISHED']=0x9]=_0x2e363d(0x359),_0x3b9636[_0x3b9636['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x3b9636[_0x3b9636['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3b9636[_0x3b9636[_0x2e363d(0x1d8)]=0x1771]=_0x2e363d(0x1d8),_0x3b9636[_0x3b9636[_0x2e363d(0x163)]=0x1772]=_0x2e363d(0x163),_0x3b9636[_0x3b9636[_0x2e363d(0x34a)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3b9636[_0x3b9636[_0x2e363d(0x172)]=0x1b59]=_0x2e363d(0x172),_0x3b9636[_0x3b9636[_0x2e363d(0x142)]=0x1b5a]=_0x2e363d(0x142),_0x3b9636[_0x3b9636['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2e363d(0x14f),_0x3b9636[_0x3b9636[_0x2e363d(0x21c)]=0x1b5c]=_0x2e363d(0x21c),_0x3b9636[_0x3b9636[_0x2e363d(0x159)]=0x1b5d]=_0x2e363d(0x159),_0x3b9636[_0x3b9636[_0x2e363d(0x2f0)]=0x1f41]=_0x2e363d(0x2f0),_0x3b9636[_0x3b9636[_0x2e363d(0x37d)]=0x2329]=_0x2e363d(0x37d),_0x3b9636[_0x3b9636['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3b9636[_0x3b9636[_0x2e363d(0x11a)]=0x232b]=_0x2e363d(0x11a),_0x3b9636[_0x3b9636[_0x2e363d(0x16f)]=0x232c]=_0x2e363d(0x16f),_0x3b9636[_0x3b9636['LICENSE_DISTRO_REJECTED']=0x232d]=_0x2e363d(0x2d1),_0x3b9636[_0x3b9636[_0x2e363d(0x3a1)]=0x2711]=_0x2e363d(0x3a1),_0x3b9636[_0x3b9636[_0x2e363d(0x2ab)]=0x2712]=_0x2e363d(0x2ab),_0x3b9636[_0x3b9636[_0x2e363d(0x1eb)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x3b9636[_0x3b9636[_0x2e363d(0x122)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3b9636[_0x3b9636[_0x2e363d(0x2a3)]=0x271a]=_0x2e363d(0x2a3),_0x3b9636[_0x3b9636['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x2e363d(0x363),_0x3b9636[_0x3b9636[_0x2e363d(0x22e)]=0x271c]=_0x2e363d(0x22e),_0x3b9636[_0x3b9636['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x2e363d(0x3a6),_0x3b9636[_0x3b9636[_0x2e363d(0x1d7)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x3b9636[_0x3b9636['YUUMI_AI_RUN_FAILED']=0x271f]=_0x2e363d(0x1c3),_0x3b9636[_0x3b9636['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x2e363d(0x277),_0x3b9636[_0x3b9636[_0x2e363d(0x349)]=0x2ee1]=_0x2e363d(0x349),_0x3b9636[_0x3b9636[_0x2e363d(0x2ae)]=0x2ee2]='INVALID_INVITE_CODE',_0x3b9636[_0x3b9636['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x3b9636[_0x3b9636[_0x2e363d(0x389)]=0x2ee4]=_0x2e363d(0x389),_0x3b9636[_0x3b9636[_0x2e363d(0x233)]=0x2ee5]=_0x2e363d(0x233),_0x3b9636[_0x3b9636['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x3b9636[_0x3b9636[_0x2e363d(0x120)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x3b9636[_0x3b9636['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x2e363d(0x134),_0x3b9636[_0x3b9636[_0x2e363d(0x11e)]=-0x1]=_0x2e363d(0x11e),_0x3b9636))(_0x1c5b79||{}),_0x19f36c=Object[_0x2e363d(0x29d)],_0x419bad=(_0x6e4c4,_0x2c5fea,_0x232efe,_0x833795)=>{for(var _0x208928=_0x833795>0x1?void 0x0:_0x833795?_0x19f36c(_0x2c5fea,_0x232efe):_0x2c5fea,_0x3b9efc=_0x6e4c4['length']-0x1,_0x12db70;_0x3b9efc>=0x0;_0x3b9efc--)(_0x12db70=_0x6e4c4[_0x3b9efc])&&(_0x208928=_0x12db70(_0x208928)||_0x208928);return _0x208928;},_0x4c6e10=(_0x181bf0,_0x4192f7)=>(_0x51453e,_0x1386c4)=>_0x4192f7(_0x51453e,_0x1386c4,_0x181bf0);_0x1364d3[_0x2e363d(0x2ed)]=class extends _0x2b43e1[_0x2e363d(0x396)]{constructor(_0x33c7fa,_0x3e20bb,_0x124985){const _0x448a92=_0x2e363d;super(),this[_0x448a92(0x2e1)]=_0x33c7fa,this[_0x448a92(0x335)]=_0x3e20bb,this[_0x448a92(0x25e)]=_0x124985;}async[_0x2e363d(0x295)](_0x16c49f,_0x34c33a,_0x143541,..._0x286a71){const _0x5af7=_0x2e363d;var _0x59b373,_0x3b979e,_0x342ded,_0x31e20f;const _0x26f00a=this[_0x5af7(0x2e1)][_0x5af7(0x33a)]();if(!_0x26f00a)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2f57eb=((_0x59b373=this[_0x5af7(0x25e)][_0x5af7(0x222)](_0x35d81a[_0x5af7(0x1de)]))!=null?_0x59b373:_0x35d81a[_0x5af7(0x343)])+'/'+_0x16c49f+'/run/'+_0x34c33a,_0x1b2146=new URL(window[_0x5af7(0x293)][_0x5af7(0x338)]),_0x2046fb={'scriptId':_0x16c49f,'runId':(_0x3b979e=_0x1b2146[_0x5af7(0x34d)][_0x5af7(0x2a6)](_0x5af7(0x229)))!=null?_0x3b979e:'','function':_0x34c33a,'unitId':_0x26f00a['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x286a71),'invokeId':(_0x342ded=_0x143541['invokeId'])!=null?_0x342ded:'','executionId':(_0x31e20f=_0x143541[_0x5af7(0x26f)])!=null?_0x31e20f:''};try{const _0x1c5239=await this[_0x5af7(0x335)][_0x5af7(0x220)](_0x2f57eb,{'body':_0x2046fb});return _0x1c5239[_0x5af7(0x39b)][_0x5af7(0x139)]&&_0x1c5239['body']['error']['code']!==_0x1c5b79['OK']?_0x5af7(0x1df):_0x1c5239[_0x5af7(0x39b)][_0x5af7(0x22f)];}catch{return _0x5af7(0x1df);}}},_0x1364d3[_0x2e363d(0x2ed)]=_0x419bad([_0x4c6e10(0x0,_0x2b43e1['IUniverInstanceService']),_0x4c6e10(0x1,_0x2b43e1[_0x2e363d(0x1f3)](_0x519894[_0x2e363d(0x208)])),_0x4c6e10(0x2,_0x2b43e1[_0x2e363d(0x334)])],_0x1364d3[_0x2e363d(0x2ed)]),_0x1364d3['CollaborationStatusDisplay']=_0x58e3df,_0x1364d3[_0x2e363d(0x32b)]=_0x4b6a35,_0x1364d3['SheetCollabCursorShape']=_0x1366a1,_0x1364d3[_0x2e363d(0x221)]=_0x1b25be,_0x1364d3[_0x2e363d(0x169)]=_0x3576f9,Object[_0x2e363d(0x26b)](_0x1364d3,Symbol['toStringTag'],{'value':_0x2e363d(0x2db)});}));