@univerjs-pro/collaboration-client-ui 0.8.2-nightly.202506241607 → 0.8.2-nightly.202506251607

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/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3a7514=_0x5a06;(function(_0x401027,_0x21be95){const _0x3113a2=_0x5a06,_0x36709b=_0x401027();while(!![]){try{const _0x191bf6=-parseInt(_0x3113a2(0x2e3))/0x1+parseInt(_0x3113a2(0x3ed))/0x2*(-parseInt(_0x3113a2(0x3b0))/0x3)+-parseInt(_0x3113a2(0x266))/0x4*(parseInt(_0x3113a2(0x3ad))/0x5)+-parseInt(_0x3113a2(0x20e))/0x6+-parseInt(_0x3113a2(0x231))/0x7*(parseInt(_0x3113a2(0x327))/0x8)+parseInt(_0x3113a2(0x244))/0x9+parseInt(_0x3113a2(0x209))/0xa*(parseInt(_0x3113a2(0x237))/0xb);if(_0x191bf6===_0x21be95)break;else _0x36709b['push'](_0x36709b['shift']());}catch(_0x3faaf7){_0x36709b['push'](_0x36709b['shift']());}}}(_0x24d1,0x637d9));var $t=Object[_0x3a7514(0x387)],xt=(_0x17fd63,_0x55034d,_0x40fd9e)=>_0x55034d in _0x17fd63?$t(_0x17fd63,_0x55034d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40fd9e}):_0x17fd63[_0x55034d]=_0x40fd9e,_=(_0x4d0ee0,_0x158cc8,_0x31e6a6)=>xt(_0x4d0ee0,typeof _0x158cc8!='symbol'?_0x158cc8+'':_0x158cc8,_0x31e6a6);import{MemberService as _0x56a4af,SessionStatus as _0x52aee5,CollaborationSessionService as _0x52cec6,CollaborationStatus as _0x442c06,CollaborationController as _0x1da6a0,ILocalCacheService as _0x3d5a5c,CollaborationUIEventService as _0x150ebc,CollaborationUIEventId as _0x39a0a4,DataLoaderService as _0x498d1a,DocCollaborationEntity as _0x27ea85,getLocalCacheKey as _0x5030f2,LOCAL_CACHE_INTERVAL as _0x33dc78,LOCAL_CACHE_INTERVAL_KEY as _0x3a222c,UniverCollaborationClientPlugin as _0x197a0f,CollaborationSocketService as _0xf58428,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5ee5dd,DEFAULT_WS_SESSION_TICKET_URL as _0x345c81,UnitStatus as _0xf18f59,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0xa36351,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x31a5ec}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x288cb0,Disposable as _0x31943f,DOC_RANGE_TYPE as _0x2e0b28,Inject as _0x3730bb,Injector as _0x51462b,IUniverInstanceService as _0x2470f9,ICommandService as _0x38de57,debounce as _0x4fdf57,Rectangle as _0x56c2e2,DisposableCollection as _0x58d29b,toDisposable as _0x31fc53,UniverInstanceType as _0x430a21,Tools as _0x3c0adb,COLORS as _0x2ad828,ColorKit as _0x2d5c69,ThemeService as _0x5c46cb,fromEventSubject as _0x2a8af0,LocaleService as _0x42b0cb,createIdentifier as _0x10eb3b,ILogService as _0x430541,Optional as _0x3ee902,Workbook as _0x39cb8c,CommandType as _0x1cdaca,IConfigService as _0x207b24,ILocalStorageService as _0x5dcd9c,DependentOn as _0x3733e8,Plugin as _0x28ed19,merge as _0x2da3a3,registerDependencies as _0x4faf42,mergeOverrideWithDependencies as _0x2ba138,touchDependencies as _0x965508,generateRandomId as _0x3c4fd1}from'@univerjs/core';import{Shape as _0x2813c5,Rect as _0x215c95,getColor as _0x3b3e33,RegularPolygon as _0x5972ac,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1d0044,Vector2 as _0x568ce1,SHEET_VIEWPORT_KEY as _0x498db9,IRenderManagerService as _0x27ceaf}from'@univerjs/engine-render';import{ISocketService as _0x31fd50,WebSocketService as _0x9d5066,HTTPService as _0x19ddc4}from'@univerjs/network';import{IDocClipboardService as _0x92fea7,NodePositionConvertToCursor as _0x107870,NodePositionConvertToRectRange as _0x2e25db,TEXT_RANGE_LAYER_INDEX as _0x150f19,SetDocZoomRatioOperation as _0x2250cb,DocIMEInputManagerService as _0xb87fcf,DocStateChangeManagerService as _0x1bff1b}from'@univerjs/docs-ui';import{IImageIoService as _0x312ccb}from'@univerjs/drawing';import{BehaviorSubject as _0xd53c5a,debounceTime as _0x140304,takeUntil as _0x108d38,Subject as _0x7cca00,filter as _0x508892,switchMap as _0x3cde7c,merge as _0x488734,combineLatest as _0x9525b6,of as _0x48fb46,fromEvent as _0x4b8a4d,shareReplay as _0x5b9311,mapTo as _0x385ea5,distinctUntilChanged as _0x2420c4}from'rxjs';import{ITransformService as _0x432c53,CollaborationEvent as _0x4f3ff0,isTransformMutationFailure as _0x37a0c2,isTransformMutationsWithChangesetSuccess as _0x42ebc2,RevisionService as _0x47047d,ISnapshotServerService as _0x18558b}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x5eebf2,RichTextEditingMutation as _0x4add5b,DocSelectionManagerService as _0x4ff0e8,DocSkeletonManagerService as _0x3ff96d}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x399e04,serializeRangeWithSheet as _0x3aed0d}from'@univerjs/engine-formula';import{RefRangeService as _0x3fa1f5,SetSelectionsOperation as _0x34ed95,SheetsSelectionsService as _0x47cfec,EffectRefRangId as _0x210b09,handleIRemoveRow as _0x4174f7,handleIRemoveCol as _0x1e35cc,handleMoveRange as _0x4bc111,handleInsertRow as _0xb8ab98,handleInsertRangeMoveRight as _0x3ca3f0,handleInsertRangeMoveDown as _0x217cc6,handleInsertCol as _0x2683d8,handleDeleteRangeMoveUp as _0x2f6bcd,handleDeleteRangeMoveLeft as _0x3cad28,runRefRangeMutations as _0x55c499,SetWorksheetActivateCommand as _0x1c2e8c}from'@univerjs/sheets';import{map as _0x3dc2dd,filter as _0xa16737,throttleTime as _0x10bdfa,takeUntil as _0x1b16b9,switchMap as _0x18cba4}from'rxjs/operators';import{SheetSkeletonManagerService as _0x47429c,getCoordByCell as _0x266b92,getSheetObject as _0x36f1f0}from'@univerjs/sheets-ui';import{jsx as _0x14afa9,jsxs as _0x31a54d}from'react/jsx-runtime';import{useObservable as _0x314a61,useDependency as _0x1f72ab,IUIPartsService as _0x57d3a8,BuiltInUIPart as _0x380654,connectInjector as _0x358b87,IBeforeCloseService as _0x36b1b0,IMessageService as _0x5a2737,INotificationService as _0x495b51}from'@univerjs/ui';import{Tooltip as _0x10e3b0,clsx as _0x377874,MessageType as _0x2b3268}from'@univerjs/design';import{forwardRef as _0x42e0e4,useRef as _0x37a3da,createElement as _0x4f230d,useCallback as _0x41aaa4}from'react';import{IRemoteInstanceService as _0x16478f}from'@univerjs/rpc';var ci=Object[_0x3a7514(0x362)],li=(_0x2644bc,_0x15d91b,_0x428bc4,_0x525b9e)=>{for(var _0x135be6=_0x525b9e>0x1?void 0x0:_0x525b9e?ci(_0x15d91b,_0x428bc4):_0x15d91b,_0x4189d4=_0x2644bc['length']-0x1,_0x1e5318;_0x4189d4>=0x0;_0x4189d4--)(_0x1e5318=_0x2644bc[_0x4189d4])&&(_0x135be6=_0x1e5318(_0x135be6)||_0x135be6);return _0x135be6;},Je=(_0x47c429,_0x59c613)=>(_0x558230,_0x5d5359)=>_0x59c613(_0x558230,_0x5d5359,_0x47c429);let Ne=class extends _0x288cb0{constructor(_0x2de2e3,_0x20620b){const _0x471666=_0x3a7514;super(),this[_0x471666(0x29d)]=_0x2de2e3,this[_0x471666(0x3a6)]=_0x20620b,this[_0x471666(0x324)]();}[_0x3a7514(0x324)](){const _0x2a655d=_0x3a7514,_0x9c44b=this;this[_0x2a655d(0x21f)](this[_0x2a655d(0x29d)]['addClipboardHook']({'onBeforePasteImage':async _0x5d3325=>{const _0xac6a6=_0x2a655d,_0x53d16f=await _0x9c44b[_0xac6a6(0x3a6)][_0xac6a6(0x3d3)](_0x5d3325);return _0x53d16f?{'source':_0x53d16f[_0xac6a6(0x319)],'imageSourceType':_0x53d16f['imageSourceType']}:null;}}));}};Ne=li([Je(0x0,_0x92fea7),Je(0x1,_0x312ccb)],Ne);const Ze=[_0x3a7514(0x305),_0x3a7514(0x363),_0x3a7514(0x210),'red.300',_0x3a7514(0x289),'yellow.400'];class ke extends _0x31943f{constructor(){const _0x550669=_0x3a7514;super(...arguments),_(this,_0x550669(0x28f),new Map()),_(this,_0x550669(0x26f),0x0);}[_0x3a7514(0x3c7)](_0x3cb08e){const _0x21786a=_0x3a7514;if(this[_0x21786a(0x28f)]['has'](_0x3cb08e))return this[_0x21786a(0x28f)][_0x21786a(0x357)](_0x3cb08e);const _0x145dbb=Ze[this[_0x21786a(0x26f)]];return this[_0x21786a(0x26f)]=(this[_0x21786a(0x26f)]+0x1)%Ze[_0x21786a(0x1fb)],this['_assignedColors'][_0x21786a(0x22a)](_0x3cb08e,_0x145dbb),_0x145dbb;}}function Tt(_0x433c47){const _0x587512=_0x3a7514;let _0x3af1c6='';for(const _0x2a42d5 of _0x433c47){const {startOffset:_0x1b2663,endOffset:_0x3cbe12,isActive:_0x58f03b,rangeType:_0x3aeb46,segmentId:_0x394dee,segmentPage:_0x290cf9}=_0x2a42d5;_0x3af1c6[_0x587512(0x1fb)]&&(_0x3af1c6+=','),_0x3af1c6+=_0x1b2663+':'+_0x3cbe12+':'+(_0x58f03b?'1':'0')+':'+_0x3aeb46+':'+_0x394dee+':'+_0x290cf9;}return _0x3af1c6;}function _0x24d1(){const _0x3ed193=['HEADER_MENU','moveTo','result','_assignedColors','status$','black','white','makeDirty','_sheetSkeletonManagerService','collaboration-client.offline-data-not-saved','PENDING','stringify','_docTransformIMECacheService','backgroundColor','PERMISSION_DENIED','event$','USER_NOT_INVITED_CODE','_docClipboardService','ticket','session.collaboration-timeout','text','defIds','drawWith','transformRemoteChangeset','addObjects','_handleLeaveEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','height','_range','collab-rect-range-','AWAITING_WITH_PENDING','textRanges','_getScale','getCurrentRevOfUnit','transformMutationsWithChangeset','M0\x200H16V16H0z','split','createInstance','getTypeOfUnitDisposed$','_httpService','_refreshCollabCursors','UNIVER_DOC','defs','_collabCursorController','urlChange$','values','unshift','all','_memberService','onLocalMutation','getTypeOfUnitAdded$','WECHAT_HAS_BEEN_BOUND','_commandService','getCurrentUnitForType','pluginName','USERS_LEAVE','setAlpha','column','some','syncEditingCollabCursor','univerjs-icon\x20univerjs-icon-','getColorFromTheme','MoveRangeCommandId','UNRECOGNIZED','startRow','_scheduleSaving','delete','_lastPointer','_initStatusListener','_anchor','focused$','UNDEFINED','_scheduleClearOtherTimer','CONFLICT','ENSURE_SNAPSHOT_EXECUTION','complete','getParam','extend','_initEntityListener','dispose','startColumn','runId','collabStatus.offline','COMPLETION_FINISHED','RemoveRowCommandId','setActiveRange','endRow','21375cQzger','_heartbeatTimer','_selfUnitIDs','CONNECTOR_DATA_TOO_LARGE','onPointerMove$','session.will-retry','getUndoRedoMutationParamsCache','_eventUnsubscribe','path','_hover','onMouseMove','_univerInstanceService','YUUMI_AI_RUN_FAILED','registerRenderModule','_registerRenderDependencies','currentSkeleton$','_notificationService','_localCacheService','requireSession','OTHER_CLIENT_EDITING','_toggleOffline','transform','_saveTaskMap','currentTheme$','DeleteRangeMoveUpCommandId','getUnitId','INVITE_CODE_REQUIRED','_updateLocalCursor','_saveCache','[CollaborationDataLoaderController]','_cursor','_transformUndoRedoStack','unit','Failed','purple.300','getCurrentSelections','fillRule','_collabCursorState$','setConfig','endColumn','_cursorShapes','hide','color','YUUMI_ALL_TABLES_IS_INVALID','collaboration.closeRoom','/run/','getOwnPropertySymbols','univer-flex\x20univer-items-center','subunit','APPLY_DUPLICATED','getMemberID','0\x200\x2017\x2016','_getSheetObject','_instanceService','source','findNodePositionByCharIndex','YUUMI_ASYNCIO_CANCELLED','NOT_COLLAB','removeParam','isArray','_collabSessionService','ALREADY_EXISTS','onTransformChange$','ONLINE','_drawAnchor','_init','override','_docSkeletonManagerService','137144FkKBxx','transformMutation','updateOfflineData','_draw','registerComponent','univer-mr-2\x20univer-flex\x20univer-text-xl','restore','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','#FFF','executionId','error','string','Error','add','lineTo','_themeService','sheetId','_initCommandExecutedListener','getCollabCursors$','LICENSE_EXPORT_SIZE_EXCEEDED','SOCKET_FAILED_RETRY','unsubscribe','_clearOtherTimers','_registerDependencies','executeCommand','concat','INVITE_CODE_HAS_BEEN_UES','cursorInfo$','wsSessionTicketUrl','onStarting','init','use','_labelPosition','_cursors','undoState','hovered','on-line-icon_clip0_910_349','range','getSheetBySheetId','_unitOnClients','_renderManagerService','closePath','getConfig','APPLY_NON_SEQUENTIAL_REVISION','fill','measureText','debug','replaceDocRanges','get','_collaborationController','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getCurrent','_name','INVALID_ARGUMENT','displayName','docStateChange$','UPDATE_CURSOR','_logService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getOwnPropertyDescriptor','jiqing.500','deepClone','function','NO_OTHER_CLIENTS_EDITING','enableLocalCache','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','_handleEvent','NOT_FOUND','_ensureSubject','save','_disabled','ranges','current','then','_updateSubUnitFromURLParams','setStateCache','resize','saveOfflineData','selection','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_initStatusComponent','mask','arc','apply','_messageService','OTHER_CLIENTS_EDITING','_send','getRangePointData','width','_drawRectRange','JOIN_ROOM_FAILED','top','DeleteRangeMoveLeftCommandId','http://www.w3.org/2000/svg','getDocRanges','forEach','defineProperty','_removeCollabCursors','params','_getAnchorBounding','LICENSE_IMPORT_SIZE_EXCEEDED','prototype','_createSocketURL','1em','_handleJoinEvent','exhaustSavingTask','EMAIL_VERIFY_CODE_MISMATCH','APPLY_REJECT','getRenderById','_dataLoaderService','_cachedData','RECT','_colorAssignService','show','sessionTicket','trim','fillText','parse','location','data','_shapes','actions','newValue','LOGIN_FAILED','toString','YUUMI_URL_COL_OUT_OF_RANGE','ACTIVE_UNIT_EVENT_CHANNEL','_imageIoService','url(#$1','_uiPartsService','getUnhiddenWorksheets','getMergeData','_syncEditingCollabCursorService','_injector','5ISoBEy','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','url(#on-line-icon_clip0_910_349)','9rhiSLG','_handleHeartbeatEvent','send','InsertColCommandId','MUTATION','YUUMI_RATE_OVER_LIMIT','getMember','_roomMembers$','getSheetId','_scheduleHeartbeat','from','InsertRowCommandId','setParam','getAncestorScale','FETCH_MISS','name','collab-text-anchor-','onRendered','loadUnit','UniverIcon','invokeId','idSuffix','size','assignAColorForMemberID','min','_anchorDot','saveTaskMap','fillStyle','href','getCollabEntity$','doc.mutation.rich-text-editing','AWAITING','PY_RUNTIME_SCRIPT_ERROR','_localStorageService','type','saveImage','getUnitStatus$','subscribe','_hovered','entries','YUUMI_SUBSCRIPTION_NOT_FOUND','_transformService','call','_removeClearOtherTimer','searchParams','unitId','_setupBeforeClosingHandler','_id','_urlService','setShapeProps','engine','UNIVER_SHEET','cursorInfo','substring','dispose$','_updateURLWithCurrentState','SOCKET_FAILED','round','subscribeEvent','getActiveRange','...','124042mpcAeI','getViewport','collabStatus.conflict','registerBeforeClose','_unitStatus','_refRangeService','xlink:href','generateRandomId','none','OnLineIcon','entityInit$','INVALID_INVITE_CODE','asObservable','transformSelections','length','_handleHover','attrs','CLOSE_ROOM','_toggleOnline','unitID','unload','redoState','_onCursorDelete','roomMembers$','LICENSE_MAX_UNITS_EXCEEDED','TOO_MANY_REQUESTS','OFFLINE','_textBubble','10hdwuUF','m1Prime','startsWith','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','sheetID','762708usPOew','_getSaveTimeout','green.600','onCommandExecuted','has','translate(.97)','_render','editingUnit','isEditing','_transformHistoryAndStateStack','history','colorChannel1','next','collabCursorState$','collaboration.single-unit.warning','_online','clearTimeout','disposeWithMe','replaceState','_getMergeRange','indexOf','SNAPSHOT_INVALID_SNAPSHOT','_onRefRangeChange','_backgroundColor','TEXT','row','origin','getFocusedUnit','set','map','INTERNAL_ERROR','getStateCache','INVITE_CODE_ALREADY_BOUND','evenodd','transformStateCache','287VZrFhE','_docTransformSelectionsService','OffLineIcon','_getSessionTicket','_color','mutations','14182113tjBDyz','FromArray','pipe','_hideTimer','setInterval','assign','push','addObject','APPLY_PERMISSION_DENIED','_revisionService','_entities','CHANGESET_REVISION_CONFILICT','popstate','5069124xfntpw','onPointerEnter$','with','m2Prime','children','clearInterval','sessionStatus$','_drawTextRange','setItem','_status$','MOBILE_HAS_BEEN_BOUND','LICENSE_DISTRO_REJECTED','hasOwnProperty','contains','addEventListener','post','labelPosition','body','InsertRangeMoveRightCommandId','_docSkeleton','Warning','_startSheetCollabCursor','svg','pushState','_setupSubUnitSync','_doCreateSocket','_updateCollabCursors','EMAIL_HAS_BEEN_BOUND','_startDocCollabCursor','_cursorInfo$','_initEvent','application/json','permission.content','_onCursorUpdate','1630348JxKkfs','getVpScrollXYInfoByPosToVp','_config','createSocket','beginPath','Unknown\x20user','tag','div','_session','_colorIndex','isActive','_entityInit$','_transformPreviousActiveRange','YUUMI_CONNECTOR_URL_NOT_FOUND','MOBILE_VERIFY_CODE_MISMATCH','getUniverSheetInstance','addHandlerCallback','activeSheet$','YUUMI_NO_CUBOID_FOR_QUESTION','_initResize','bottom','_beforeCloseService','_scene','SNAPSHOT_HAS_BEEN_REMOVED','setTimeout','off-line-icon','collaboration-client-ui.config','getValue','clipPath','reconnect','off-line-icon_clip0_910_343','_context','_localeService','currentColor','_initDependencies','blue.400','_configService','toRgbString'];_0x24d1=function(){return _0x3ed193;};return _0x24d1();}function _i(_0x20331f){const _0x426763=_0x3a7514,_0x5efcdd=_0x20331f[_0x426763(0x2b0)](','),_0x9d64f2=[];for(const _0x39bbe9 of _0x5efcdd){const [_0x14fe4f,_0x30b794,_0xee0b83,_0x546759,_0x1ef68b,_0x17ad7d]=_0x39bbe9['split'](':');_0x9d64f2[_0x426763(0x23d)]({'startOffset':Number(_0x14fe4f),'endOffset':Number(_0x30b794),'collapsed':_0x14fe4f===_0x30b794,'isActive':_0xee0b83==='1','rangeType':_0x546759===_0x2e0b28[_0x426763(0x226)]?_0x2e0b28['TEXT']:_0x2e0b28[_0x426763(0x396)],'segmentId':typeof _0x1ef68b==_0x426763(0x332)?String(_0x1ef68b):'','segmentPage':Number(_0x17ad7d!=null?_0x17ad7d:-0x1)});}return _0x9d64f2[_0x426763(0x2c6)](_0x2e9ad4=>_0x2e9ad4[_0x426763(0x270)])||(_0x9d64f2[0x0][_0x426763(0x270)]=!0x0),_0x9d64f2;}class He extends _0x288cb0{constructor(){const _0x3d56f9=_0x3a7514;super(...arguments),_(this,_0x3d56f9(0x308),new _0xd53c5a(null)),_(this,_0x3d56f9(0x21b),this['_collabCursorState$'][_0x3d56f9(0x1f9)]());}[_0x3a7514(0x2c7)](_0x29e14b){const _0x29405b=_0x3a7514,{unitID:_0x490592,memberID:_0x48dd57,textRanges:_0x2ad263}=_0x29e14b,_0x8819e2=Tt(_0x2ad263);if(_0x8819e2==='')return;const _0x5677b9={'unitID':_0x490592,'memberID':_0x48dd57,'selection':_0x8819e2};this[_0x29405b(0x308)][_0x29405b(0x21a)](_0x5677b9);}}var hi=Object[_0x3a7514(0x362)],ui=(_0x56ec7f,_0x2a83a8,_0x40b937,_0x5a7fda)=>{const _0x5f1f92=_0x3a7514;for(var _0x2bc31e=_0x5a7fda>0x1?void 0x0:_0x5a7fda?hi(_0x2a83a8,_0x40b937):_0x2a83a8,_0x52b803=_0x56ec7f[_0x5f1f92(0x1fb)]-0x1,_0x4ecac2;_0x52b803>=0x0;_0x52b803--)(_0x4ecac2=_0x56ec7f[_0x52b803])&&(_0x2bc31e=_0x4ecac2(_0x2bc31e)||_0x2bc31e);return _0x2bc31e;},P=(_0x1961ef,_0x268dfb)=>(_0x200e8f,_0x4f1e5b)=>_0x268dfb(_0x200e8f,_0x4f1e5b,_0x1961ef);const di=0x12c,fi=0x64;let Ue=class extends _0x288cb0{constructor(_0x3f3416,_0x17c11c,_0x33da47,_0x124edc,_0x186510,_0x368868,_0x3b0a1b,_0x56dbc5,_0x3906d0){const _0x34d3a=_0x3a7514;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0xd53c5a(new Map())),_(this,_0x34d3a(0x342),this['_cursorInfo$'][_0x34d3a(0x1f9)]()),_(this,_0x34d3a(0x3b7),new _0xd53c5a([])),_(this,_0x34d3a(0x204),this[_0x34d3a(0x3b7)][_0x34d3a(0x239)](_0x140304(di))),_(this,_0x34d3a(0x2fe),_0x4fdf57(_0x129263=>{const _0x2ea220=_0x34d3a,_0x343ad1={'eventID':_0x4f3ff0[_0x2ea220(0x35f)],'data':{'unitID':this[_0x2ea220(0x200)],'memberID':this[_0x2ea220(0x26e)][_0x2ea220(0x315)](),'selection':Tt(_0x129263)}};this[_0x2ea220(0x26e)][_0x2ea220(0x3b2)](_0x343ad1,this[_0x2ea220(0x200)]);},fi)),(this[_0x34d3a(0x200)]=_0x3f3416,this[_0x34d3a(0x26e)]=_0x17c11c,this[_0x34d3a(0x3ac)]=_0x33da47,this[_0x34d3a(0x397)]=_0x124edc,this['_memberService']=_0x186510,this[_0x34d3a(0x3ab)]=_0x368868,this[_0x34d3a(0x3d9)]=_0x3b0a1b,this[_0x34d3a(0x2ee)]=_0x56dbc5,this[_0x34d3a(0x2c0)]=_0x3906d0);}get[_0x3a7514(0x3e4)](){const _0x13e664=_0x3a7514;return this[_0x13e664(0x261)][_0x13e664(0x281)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x3a7514(0x2db)](){const _0x1c3fb9=_0x3a7514;super['dispose'](),this[_0x1c3fb9(0x261)]['next'](new Map()),this[_0x1c3fb9(0x261)][_0x1c3fb9(0x2d7)](),this['_roomMembers$'][_0x1c3fb9(0x21a)]([]),this['_roomMembers$']['complete']();}[_0x3a7514(0x345)](){const _0x5cb39b=_0x3a7514;this[_0x5cb39b(0x324)]||(this[_0x5cb39b(0x324)]=!0x0,this[_0x5cb39b(0x26e)][_0x5cb39b(0x24a)][_0x5cb39b(0x239)](_0x108d38(this[_0x5cb39b(0x3e6)]))[_0x5cb39b(0x3d5)](_0x4a86f3=>{const _0x420bf1=_0x5cb39b;_0x4a86f3===_0x52aee5['ONLINE']?this[_0x420bf1(0x1ff)]():this['_toggleOffline']();}),this[_0x5cb39b(0x26e)]['event$'][_0x5cb39b(0x239)](_0x108d38(this[_0x5cb39b(0x3e6)]))['subscribe'](_0x50f9f4=>{const _0x3f2d35=_0x5cb39b,_0x54b05a=_0x50f9f4['eventID'];_0x54b05a===_0x4f3ff0[_0x3f2d35(0x35f)]&&this[_0x3f2d35(0x265)](_0x50f9f4),_0x54b05a===_0x4f3ff0[_0x3f2d35(0x2c3)]&&this[_0x3f2d35(0x203)](_0x50f9f4);}),this[_0x5cb39b(0x21f)](this[_0x5cb39b(0x2c0)]['onCommandExecuted'](_0x885f1d=>{const _0x318ace=_0x5cb39b,_0x55bb5d=_0x885f1d[_0x318ace(0x389)];_0x55bb5d!=null&&this[_0x318ace(0x21d)]&&_0x885f1d['id']===_0x5eebf2['id']&&_0x55bb5d[_0x318ace(0x3dd)]===this[_0x318ace(0x200)]&&_0x55bb5d[_0x318ace(0x216)]===!0x1&&_0x55bb5d[_0x318ace(0x36e)][_0x318ace(0x1fb)]>0x0&&this['_updateLocalCursor'](_0x55bb5d[_0x318ace(0x36e)]);})),this[_0x5cb39b(0x3ab)][_0x5cb39b(0x21b)][_0x5cb39b(0x239)](_0x108d38(this[_0x5cb39b(0x3e6)]))['subscribe'](_0x34ede2=>{const _0x410266=_0x5cb39b;if((_0x34ede2==null?void 0x0:_0x34ede2[_0x410266(0x200)])!==this['unitID'])return;const _0x11bcb2={'eventID':_0x4f3ff0[_0x410266(0x35f)],'data':_0x34ede2};this[_0x410266(0x265)](_0x11bcb2);}),this[_0x5cb39b(0x21f)](this[_0x5cb39b(0x2c0)][_0x5cb39b(0x211)](_0x3d5220=>{const _0x3df48e=_0x5cb39b;if(_0x3d5220[_0x3df48e(0x389)]==null)return;const _0x235038=_0x3d5220[_0x3df48e(0x389)];if(_0x3d5220['id']!==_0x4add5b['id']||_0x235038[_0x3df48e(0x3dd)]!==this[_0x3df48e(0x200)])return;const _0x35306e={'id':'doc.mutation.rich-text-editing','params':_0x235038},_0x3313c5=this[_0x3df48e(0x3e4)];for(const [_0x55ee2c,_0x59873e]of _0x3313c5){const _0x478878={'id':_0x3df48e(0x3ce),'params':{'unitId':this[_0x3df48e(0x200)],'actions':null,'textRanges':_0x59873e[_0x3df48e(0x36e)]}},_0x3602a5=this[_0x3df48e(0x3d9)][_0x3df48e(0x328)](_0x35306e,_0x478878,!0x1);if(_0x37a0c2(_0x3602a5))throw _0x3602a5[_0x3df48e(0x331)];_0x3313c5[_0x3df48e(0x22a)](_0x55ee2c,{..._0x59873e,'ranges':_0x3602a5['m2Prime'][_0x3df48e(0x389)][_0x3df48e(0x2ab)]});}queueMicrotask(()=>{const _0x3e105b=_0x3df48e;this[_0x3e105b(0x261)]['next'](_0x3313c5);});})));}[_0x3a7514(0x265)](_0x589dcd){const _0x50c935=_0x3a7514;var _0x5ee46c,_0x228d97;const {memberID:_0x110992,selection:_0x2c6bda}=_0x589dcd[_0x50c935(0x39e)],_0x6400aa=_i(_0x2c6bda),_0x343471=(_0x228d97=(_0x5ee46c=this['_memberService'][_0x50c935(0x3b6)](this[_0x50c935(0x200)],_0x110992))==null?void 0x0:_0x5ee46c['name'])!=null?_0x228d97:_0x50c935(0x26b),_0x428e8a={'color':this['_colorAssignService'][_0x50c935(0x3c7)](_0x110992),'name':_0x343471,'ranges':_0x6400aa},_0x17e24b=this['cursorInfo'];_0x17e24b[_0x50c935(0x22a)](_0x110992,_0x428e8a),this[_0x50c935(0x261)][_0x50c935(0x21a)](_0x17e24b);}[_0x3a7514(0x203)](_0x7d0784){const _0x35262e=_0x3a7514,{memberID:_0x22e063}=_0x7d0784['data'],_0x1b4776=this['cursorInfo'];_0x1b4776['delete'](_0x22e063),this[_0x35262e(0x261)][_0x35262e(0x21a)](_0x1b4776);}[_0x3a7514(0x1ff)](){const _0x3a25ba=_0x3a7514;var _0xf2576a;if(this['_online']=!0x0,((_0xf2576a=this[_0x3a25ba(0x2ee)]['getFocusedUnit']())==null?void 0x0:_0xf2576a[_0x3a25ba(0x2fc)]())!==this[_0x3a25ba(0x200)])return;const _0x408f37=this[_0x3a25ba(0x3ac)][_0x3a25ba(0x357)](_0x4ff0e8)[_0x3a25ba(0x385)]();Array[_0x3a25ba(0x31e)](_0x408f37)&&_0x408f37[_0x3a25ba(0x1fb)]>0x0&&this[_0x3a25ba(0x2fe)](_0x408f37);}[_0x3a7514(0x2f7)](){const _0x59c99a=_0x3a7514;this[_0x59c99a(0x21d)]=!0x1;}};Ue=ui([P(0x2,_0x3730bb(_0x51462b)),P(0x3,_0x3730bb(ke)),P(0x4,_0x3730bb(_0x56a4af)),P(0x5,_0x3730bb(He)),P(0x6,_0x432c53),P(0x7,_0x2470f9),P(0x8,_0x38de57)],Ue);var Si=Object[_0x3a7514(0x362)],mi=(_0xaea4ce,_0x110abd,_0x5cd63a,_0x105934)=>{const _0x391ae7=_0x3a7514;for(var _0x583a29=_0x105934>0x1?void 0x0:_0x105934?Si(_0x110abd,_0x5cd63a):_0x110abd,_0x3aa9bf=_0xaea4ce[_0x391ae7(0x1fb)]-0x1,_0x45b88b;_0x3aa9bf>=0x0;_0x3aa9bf--)(_0x45b88b=_0xaea4ce[_0x3aa9bf])&&(_0x583a29=_0x45b88b(_0x583a29)||_0x583a29);return _0x583a29;},x=(_0x43e0de,_0x149e41)=>(_0x34c1b3,_0x369bad)=>_0x149e41(_0x34c1b3,_0x369bad,_0x43e0de);const Ii=0x12c,gi=0x64,vi=()=>{let _0x1c9e6c=[],_0x1dc00e=!0x1;return _0x439560=>{const _0x2628ed=_0x5a06;_0x1c9e6c[_0x2628ed(0x23d)](_0x439560),_0x1dc00e||(_0x1dc00e=!0x0,setTimeout(()=>{const _0x108ada=_0x2628ed;_0x1c9e6c[_0x108ada(0x386)](_0xc8cb28=>_0xc8cb28()),_0x1c9e6c=[],_0x1dc00e=!0x1;}));};};let Me=class extends _0x288cb0{constructor(_0x3a568e,_0x287ffd,_0x4af2ad,_0x3c4563,_0x3f2855,_0x509bac,_0xfc6688,_0xaa5853){const _0x24a9b7=_0x3a7514;super(),_(this,'_online',!0x1),_(this,_0x24a9b7(0x324),!0x1),_(this,_0x24a9b7(0x261),new _0xd53c5a(new Map())),_(this,_0x24a9b7(0x342),this[_0x24a9b7(0x261)][_0x24a9b7(0x1f9)]()),_(this,_0x24a9b7(0x3b7),new _0xd53c5a([])),_(this,_0x24a9b7(0x204),this['_roomMembers$'][_0x24a9b7(0x239)](_0x140304(Ii))),_(this,_0x24a9b7(0x2fe),_0x4fdf57((_0x802f31,_0x590de2)=>{const _0x1aaddc=_0x24a9b7,_0x5238d5={'eventID':_0x4f3ff0['UPDATE_CURSOR'],'data':{'unitID':this[_0x1aaddc(0x200)],'memberID':this[_0x1aaddc(0x26e)][_0x1aaddc(0x315)](),'selection':_0x3aed0d(_0x802f31,_0x590de2[_0x1aaddc(0x34c)])}};this[_0x1aaddc(0x26e)]['send'](_0x5238d5,this[_0x1aaddc(0x200)]);},gi)),(this[_0x24a9b7(0x200)]=_0x3a568e,this[_0x24a9b7(0x26e)]=_0x287ffd,this[_0x24a9b7(0x3ac)]=_0x4af2ad,this[_0x24a9b7(0x397)]=_0x3c4563,this[_0x24a9b7(0x2bc)]=_0x3f2855,this[_0x24a9b7(0x2ee)]=_0x509bac,this['_commandService']=_0xfc6688,this[_0x24a9b7(0x3f2)]=_0xaa5853);}get[_0x3a7514(0x3e4)](){const _0x1a2888=_0x3a7514;return this[_0x1a2888(0x261)]['getValue']();}get['roomMembers'](){const _0x56df7c=_0x3a7514;return this['_roomMembers$'][_0x56df7c(0x281)]();}[_0x3a7514(0x2db)](){const _0x2b0b80=_0x3a7514;super[_0x2b0b80(0x2db)](),this['_cursorInfo$'][_0x2b0b80(0x21a)](new Map()),this['_cursorInfo$'][_0x2b0b80(0x2d7)](),this['_roomMembers$']['next']([]),this[_0x2b0b80(0x3b7)][_0x2b0b80(0x2d7)]();}[_0x3a7514(0x345)](){const _0x51ef11=_0x3a7514;this[_0x51ef11(0x324)]||(this[_0x51ef11(0x324)]=!0x0,this[_0x51ef11(0x26e)][_0x51ef11(0x24a)][_0x51ef11(0x239)](_0x108d38(this[_0x51ef11(0x3e6)]))[_0x51ef11(0x3d5)](_0x3caafe=>{const _0x2371e4=_0x51ef11;_0x3caafe===_0x52aee5[_0x2371e4(0x322)]?this['_toggleOnline']():this[_0x2371e4(0x2f7)]();}),this[_0x51ef11(0x26e)][_0x51ef11(0x29b)][_0x51ef11(0x239)](_0x108d38(this['dispose$']))[_0x51ef11(0x3d5)](_0x43cd66=>{const _0x5828a3=_0x51ef11,_0x2068ce=_0x43cd66['eventID'];_0x2068ce===_0x4f3ff0[_0x5828a3(0x35f)]&&this[_0x5828a3(0x265)](_0x43cd66),_0x2068ce===_0x4f3ff0[_0x5828a3(0x2c3)]&&this[_0x5828a3(0x203)](_0x43cd66);}),this[_0x51ef11(0x224)](),this[_0x51ef11(0x21f)](this[_0x51ef11(0x2c0)]['onCommandExecuted'](_0x2fc9ce=>{const _0x504413=_0x51ef11;if(this['_online']&&_0x2fc9ce['id']===_0x34ed95['id']&&_0x2fc9ce[_0x504413(0x389)][_0x504413(0x3dd)]===this['unitID']){const _0x51325d=_0x2fc9ce['params'];this['_updateLocalCursor'](_0x51325d['subUnitId'],_0x51325d['selections'][0x0]);}})));}[_0x3a7514(0x265)](_0x1b8e72){const _0x227be5=_0x3a7514;var _0x1d2085,_0x18d960;const {memberID:_0x518534,selection:_0x5644cf}=_0x1b8e72[_0x227be5(0x39e)],{sheetName:_0x5ad7d9,range:_0x146727}=_0x399e04(_0x5644cf),_0x2f4b78={'name':(_0x18d960=(_0x1d2085=this[_0x227be5(0x2bc)][_0x227be5(0x3b6)](this['unitID'],_0x518534))==null?void 0x0:_0x1d2085[_0x227be5(0x3bf)])!=null?_0x18d960:'Unknown\x20user','range':this[_0x227be5(0x221)](_0x5ad7d9,_0x146727),'sheetID':_0x5ad7d9,'color':this[_0x227be5(0x397)][_0x227be5(0x3c7)](_0x518534),'selection':_0x5644cf},_0x4a7121=this[_0x227be5(0x3e4)];_0x4a7121[_0x227be5(0x22a)](_0x518534,_0x2f4b78),this[_0x227be5(0x261)][_0x227be5(0x21a)](_0x4a7121);}['_onCursorDelete'](_0x1624e1){const _0x2f2396=_0x3a7514,{memberID:_0x1db98f}=_0x1624e1[_0x2f2396(0x39e)],_0xab0ed5=this[_0x2f2396(0x3e4)];_0xab0ed5[_0x2f2396(0x2ce)](_0x1db98f),this[_0x2f2396(0x261)]['next'](_0xab0ed5);}[_0x3a7514(0x221)](_0x85d9b3,_0x1fb4f3){const _0x97bdae=_0x3a7514;var _0x14e8bb,_0xab33b9;const _0x58f215=(_0xab33b9=(_0x14e8bb=this[_0x97bdae(0x2ee)][_0x97bdae(0x275)](this['unitID']))==null?void 0x0:_0x14e8bb[_0x97bdae(0x34d)](_0x85d9b3))==null?void 0x0:_0xab33b9[_0x97bdae(0x3aa)]();return(_0x58f215==null?void 0x0:_0x58f215['find'](_0x2d6249=>_0x56c2e2[_0x97bdae(0x251)](_0x2d6249,_0x1fb4f3)))||_0x1fb4f3;}[_0x3a7514(0x224)](){const _0x207f88=_0x3a7514,_0x6bef64=new _0x58d29b(),_0x48be44=vi(),_0x5b9736=()=>{const _0x428caf=_0x5a06;_0x6bef64['dispose']();const _0x5e8831=(_0x370734,_0x1f9659,_0x49e2ba,_0x40d9e5)=>{const _0x274832=_0x5a06;let _0x2a935d=[];switch(_0x370734['id']){case _0x210b09[_0x274832(0x383)]:{_0x2a935d=_0x3cad28(_0x370734,_0x40d9e5);break;}case _0x210b09[_0x274832(0x2fb)]:{_0x2a935d=_0x2f6bcd(_0x370734,_0x40d9e5);break;}case _0x210b09[_0x274832(0x3b3)]:{_0x2a935d=_0x2683d8(_0x370734,_0x40d9e5);break;}case _0x210b09['InsertRangeMoveDownCommandId']:{_0x2a935d=_0x217cc6(_0x370734,_0x40d9e5);break;}case _0x210b09[_0x274832(0x256)]:{_0x2a935d=_0x3ca3f0(_0x370734,_0x40d9e5);break;}case _0x210b09[_0x274832(0x3bb)]:{_0x2a935d=_0xb8ab98(_0x370734,_0x40d9e5);break;}case _0x210b09[_0x274832(0x2ca)]:{_0x2a935d=_0x4bc111(_0x370734,_0x40d9e5);break;}case _0x210b09['RemoveColCommandId']:{_0x2a935d=_0x1e35cc(_0x370734,_0x40d9e5);break;}case _0x210b09[_0x274832(0x2e0)]:{_0x2a935d=_0x4174f7(_0x370734,_0x40d9e5);break;}}const _0x1636f4=_0x55c499(_0x2a935d,_0x40d9e5),_0x1fe348=this[_0x274832(0x3e4)][_0x274832(0x357)](_0x1f9659);if(_0x1fe348&&_0x1636f4){const _0x237d31={..._0x1fe348,'range':_0x1636f4};this['cursorInfo']['set'](_0x1f9659,_0x237d31),_0x48be44(()=>{const _0x5bd386=_0x274832,_0x189d4c=this[_0x5bd386(0x3f2)]['registerRefRange'](_0x1636f4,_0x5ad22c=>(_0x189d4c[_0x5bd386(0x2db)](),_0x5e8831(_0x5ad22c,_0x1f9659,_0x49e2ba,_0x1636f4)));_0x6bef64[_0x5bd386(0x334)](_0x189d4c);});}return{'redos':[],'undos':[]};};this[_0x428caf(0x3e4)][_0x428caf(0x386)]((_0x1a01fc,_0x3a104a)=>{const _0x2095ae=_0x428caf,{range:_0x519ac2,sheetID:_0x497182}=_0x1a01fc,_0x11ab8b=this['_refRangeService']['registerRefRange'](_0x519ac2,_0x275a06=>(_0x11ab8b[_0x2095ae(0x2db)](),_0x5e8831(_0x275a06,_0x3a104a,_0x497182,_0x519ac2)));_0x6bef64[_0x2095ae(0x334)](_0x11ab8b);});};this[_0x207f88(0x21f)](_0x31fc53(this[_0x207f88(0x261)][_0x207f88(0x3d5)](()=>{_0x5b9736();})));}['_toggleOnline'](){const _0x1623f8=_0x3a7514;var _0x4642e4,_0x4be020;if(this[_0x1623f8(0x21d)]=!0x0,((_0x4642e4=this[_0x1623f8(0x2ee)][_0x1623f8(0x229)]())==null?void 0x0:_0x4642e4[_0x1623f8(0x2fc)]())!==this['unitID'])return;const _0x2d04e2=(_0x4be020=this[_0x1623f8(0x3ac)][_0x1623f8(0x357)](_0x47cfec)[_0x1623f8(0x306)]())==null?void 0x0:_0x4be020[0x0],_0x2ba6c0=this[_0x1623f8(0x2ee)][_0x1623f8(0x2c1)](_0x430a21['UNIVER_SHEET'])['getActiveSheet']();_0x2d04e2&&_0x2ba6c0&&this['_updateLocalCursor'](_0x2ba6c0[_0x1623f8(0x3b8)](),_0x2d04e2);}[_0x3a7514(0x2f7)](){const _0x56e2ee=_0x3a7514;this[_0x56e2ee(0x21d)]=!0x1;}};Me=mi([x(0x2,_0x3730bb(_0x51462b)),x(0x3,_0x3730bb(ke)),x(0x4,_0x3730bb(_0x56a4af)),x(0x5,_0x2470f9),x(0x6,_0x38de57),x(0x7,_0x3730bb(_0x3fa1f5))],Me);var pi=Object['getOwnPropertyDescriptor'],Ci=(_0x3a2882,_0x4aa4d2,_0x4ffab7,_0x520e58)=>{const _0x13ab42=_0x3a7514;for(var _0x551dd6=_0x520e58>0x1?void 0x0:_0x520e58?pi(_0x4aa4d2,_0x4ffab7):_0x4aa4d2,_0x1cd18b=_0x3a2882[_0x13ab42(0x1fb)]-0x1,_0x2b98b6;_0x1cd18b>=0x0;_0x1cd18b--)(_0x2b98b6=_0x3a2882[_0x1cd18b])&&(_0x551dd6=_0x2b98b6(_0x551dd6)||_0x551dd6);return _0x551dd6;},Se=(_0x8ffea9,_0x636f6c)=>(_0x279847,_0x3887ae)=>_0x636f6c(_0x279847,_0x3887ae,_0x8ffea9);let H=class extends _0x288cb0{constructor(_0x4febc2,_0x51437a,_0x29139c){const _0x13e1b7=_0x3a7514;super(),_(this,_0x13e1b7(0x241),new Map()),_(this,_0x13e1b7(0x271),new _0x7cca00()),(this['_univerInstanceService']=_0x4febc2,this[_0x13e1b7(0x3ac)]=_0x51437a,this['_collabSessionService']=_0x29139c,this['_init']());}[_0x3a7514(0x2db)](){const _0x61cabc=_0x3a7514;super[_0x61cabc(0x2db)](),this[_0x61cabc(0x271)][_0x61cabc(0x2d7)](),this[_0x61cabc(0x241)][_0x61cabc(0x386)](_0x48cbe2=>_0x48cbe2['dispose']());}['getCollabCursors$'](_0x14207c){const _0x339b8b=_0x3a7514;return this['_entities'][_0x339b8b(0x212)](_0x14207c)?this[_0x339b8b(0x241)]['get'](_0x14207c)[_0x339b8b(0x342)]:this[_0x339b8b(0x271)][_0x339b8b(0x239)](_0x508892(_0x2969a3=>_0x2969a3['unitID']===_0x14207c),_0x3cde7c(_0x18cca3=>_0x18cca3[_0x339b8b(0x342)]));}[_0x3a7514(0x324)](){const _0x5ac7bd=_0x3a7514;this[_0x5ac7bd(0x2ee)][_0x5ac7bd(0x2be)](_0x430a21[_0x5ac7bd(0x3e3)])['pipe'](_0x108d38(this['dispose$']))['subscribe'](async _0x39a10f=>{const _0x53d00b=_0x5ac7bd,_0x12abc9=_0x39a10f[_0x53d00b(0x2fc)](),_0x2f96b6=await this[_0x53d00b(0x259)](_0x12abc9);this[_0x53d00b(0x271)][_0x53d00b(0x21a)](_0x2f96b6),this[_0x53d00b(0x241)][_0x53d00b(0x22a)](_0x12abc9,_0x2f96b6);}),this[_0x5ac7bd(0x2ee)][_0x5ac7bd(0x2be)](_0x430a21[_0x5ac7bd(0x2b5)])[_0x5ac7bd(0x239)](_0x108d38(this[_0x5ac7bd(0x3e6)]))['pipe'](_0x508892(_0x142ecc=>!_0x142ecc['getUnitId']()[_0x5ac7bd(0x20b)]('__')))[_0x5ac7bd(0x3d5)](async _0x369313=>{const _0x566d1d=_0x5ac7bd,_0xac543e=_0x369313[_0x566d1d(0x2fc)](),_0x14519a=await this[_0x566d1d(0x260)](_0xac543e);this[_0x566d1d(0x271)][_0x566d1d(0x21a)](_0x14519a),this[_0x566d1d(0x241)][_0x566d1d(0x22a)](_0xac543e,_0x14519a);}),_0x488734(this[_0x5ac7bd(0x2ee)][_0x5ac7bd(0x2b2)](_0x430a21[_0x5ac7bd(0x2b5)]),this[_0x5ac7bd(0x2ee)]['getTypeOfUnitDisposed$'](_0x430a21[_0x5ac7bd(0x3e3)]))[_0x5ac7bd(0x239)](_0x108d38(this[_0x5ac7bd(0x3e6)]))['subscribe'](_0x33afe4=>{const _0x4bd8da=_0x5ac7bd,_0x27aae5=_0x33afe4[_0x4bd8da(0x2fc)](),_0x486093=this['_entities'][_0x4bd8da(0x357)](_0x27aae5);_0x486093&&(_0x486093[_0x4bd8da(0x2db)](),this[_0x4bd8da(0x241)][_0x4bd8da(0x2ce)](_0x27aae5));});}async[_0x3a7514(0x259)](_0x361fe0){const _0x4ac251=_0x3a7514,_0x2b0825=await this[_0x4ac251(0x31f)][_0x4ac251(0x2f5)](_0x361fe0),_0x1658c7=this[_0x4ac251(0x3ac)][_0x4ac251(0x2b1)](Me,_0x361fe0,_0x2b0825);return _0x1658c7[_0x4ac251(0x345)](),_0x1658c7;}async[_0x3a7514(0x260)](_0x396520){const _0x567085=_0x3a7514,_0x2f57d6=await this[_0x567085(0x31f)][_0x567085(0x2f5)](_0x396520),_0x441cc1=this[_0x567085(0x3ac)]['createInstance'](Ue,_0x396520,_0x2f57d6);return _0x441cc1[_0x567085(0x345)](),_0x441cc1;}};H=Ci([Se(0x0,_0x2470f9),Se(0x1,_0x3730bb(_0x51462b)),Se(0x2,_0x3730bb(_0x52cec6))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x564f82,_0x43a407){const _0xac52cc=_0x3a7514;let {radius:_0x2b9fd7,width:_0x19dad2,height:_0x38781d}=_0x43a407;_0x2b9fd7=_0x2b9fd7!=null?_0x2b9fd7:0x0,_0x19dad2=_0x19dad2!=null?_0x19dad2:0x1e,_0x38781d=_0x38781d!=null?_0x38781d:0x1e;let _0x310b17=0x0,_0x3504cc=0x0,_0x5f599f=0x0;_0x310b17=_0x3504cc=_0x5f599f=Math[_0xac52cc(0x3c8)](_0x2b9fd7,_0x19dad2/0x2,_0x38781d/0x2),_0x564f82[_0xac52cc(0x26a)](),_0x564f82[_0xac52cc(0x28d)](_0x310b17,0x0),_0x564f82[_0xac52cc(0x335)](_0x19dad2-_0x3504cc,0x0),_0x564f82['arc'](_0x19dad2-_0x3504cc,_0x3504cc,_0x3504cc,Math['PI']*0x3/0x2,0x0,!0x1),_0x564f82[_0xac52cc(0x335)](_0x19dad2,_0x38781d-_0x5f599f),_0x564f82['arc'](_0x19dad2-_0x5f599f,_0x38781d-_0x5f599f,_0x5f599f,0x0,Math['PI']/0x2,!0x1),_0x564f82[_0xac52cc(0x335)](0x0,_0x38781d),_0x564f82[_0xac52cc(0x335)](0x0,_0x310b17),_0x564f82[_0xac52cc(0x379)](_0x310b17,_0x310b17,_0x310b17,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x564f82[_0xac52cc(0x350)](),_0x43a407[_0xac52cc(0x353)]&&(_0x564f82[_0xac52cc(0x36c)](),_0x564f82[_0xac52cc(0x3cb)]=_0x43a407[_0xac52cc(0x353)],_0x43a407[_0xac52cc(0x307)]===_0xac52cc(0x22f)?_0x564f82[_0xac52cc(0x353)](_0xac52cc(0x22f)):_0x564f82[_0xac52cc(0x353)](),_0x564f82['restore']());}class he extends _0x2813c5{constructor(_0x2d6a9e,_0x23acf0){const _0x1bfab0=_0x3a7514;super(_0x2d6a9e,_0x23acf0),_(this,_0x1bfab0(0x30d)),_(this,_0x1bfab0(0x2a0)),(this[_0x1bfab0(0x30d)]=_0x23acf0==null?void 0x0:_0x23acf0[_0x1bfab0(0x30d)],this[_0x1bfab0(0x2a0)]=_0x23acf0==null?void 0x0:_0x23acf0[_0x1bfab0(0x2a0)]);}static['drawWith'](_0x2e1aa9,_0x5dad4e){const _0x4ed88f=_0x3a7514,{text:_0x4da8f8,color:_0x31b747}=_0x5dad4e;_0x2e1aa9[_0x4ed88f(0x36c)](),_0x2e1aa9['font']=_0x4ed88f(0x2a6);const _0x4fc7a5=_0x2e1aa9[_0x4ed88f(0x354)](_0x4da8f8)[_0x4ed88f(0x37f)],_0x1d080c=Math[_0x4ed88f(0x3c8)](_0x4fc7a5+0x2*me,Qe);Oi(_0x2e1aa9,{'height':ee,'radius':0x4,'width':_0x1d080c,'fill':_0x31b747}),_0x2e1aa9[_0x4ed88f(0x3cb)]=_0x4ed88f(0x32f);const _0xdd965d=me,_0x2c2cfa=ee-Ei,_0x4bca50=Qe-0x2*me;if(_0x4fc7a5>_0x4bca50){let _0x20e6b3='',_0x22b0ad=0x0;for(const _0x13164b of _0x4da8f8){const _0x13a90d=_0x2e1aa9[_0x4ed88f(0x354)](_0x13164b)[_0x4ed88f(0x37f)];if(_0x22b0ad+_0x13a90d<=_0x4bca50-_0x2e1aa9[_0x4ed88f(0x354)]('...')['width'])_0x20e6b3+=_0x13164b,_0x22b0ad+=_0x13a90d;else{_0x20e6b3+=_0x4ed88f(0x3ec);break;}}_0x2e1aa9['fillText'](_0x20e6b3,_0xdd965d,_0x2c2cfa);}else _0x2e1aa9[_0x4ed88f(0x39b)](_0x4da8f8,_0xdd965d,_0x2c2cfa);_0x2e1aa9['restore']();}[_0x3a7514(0x32a)](_0x587dfb){const _0x5748d9=_0x3a7514;he[_0x5748d9(0x2a2)](_0x587dfb,this);}}const Ie=_0x3a7514(0x3c0),bi='collab-text-range-',Ti=_0x3a7514(0x2a9),X=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni='rgba(255,\x20255,\x20255,\x200.01)';class qe{constructor(_0x202511,_0x5ca79b,_0x4ef9ef,_0x11cc75){const _0x4a7a0f=_0x3a7514;_(this,'_shapes',[]),_(this,'_anchor',null),_(this,_0x4a7a0f(0x208),null),_(this,_0x4a7a0f(0x3c9),null),_(this,_0x4a7a0f(0x23a),null),_(this,_0x4a7a0f(0x2ea),null),(this[_0x4a7a0f(0x301)]=_0x202511,this[_0x4a7a0f(0x27c)]=_0x5ca79b,this[_0x4a7a0f(0x257)]=_0x4ef9ef,this['_document']=_0x11cc75,this[_0x4a7a0f(0x214)]());}set[_0x3a7514(0x2ec)](_0x150b72){const _0x5567e5=_0x3a7514;_0x150b72?(this['_anchorDot']&&this['_anchorDot'][_0x5567e5(0x30c)](),this[_0x5567e5(0x208)]&&this[_0x5567e5(0x208)]['show']()):(this['_anchorDot']&&this[_0x5567e5(0x3c9)][_0x5567e5(0x398)](),this[_0x5567e5(0x208)]&&this[_0x5567e5(0x208)][_0x5567e5(0x30c)]());}[_0x3a7514(0x2db)](){const _0x2ada09=_0x3a7514;for(const _0x171e75 of this[_0x2ada09(0x39f)])_0x171e75['dispose']();this[_0x2ada09(0x208)]&&this[_0x2ada09(0x208)][_0x2ada09(0x2db)](),this[_0x2ada09(0x3c9)]&&this[_0x2ada09(0x3c9)]['dispose'](),this[_0x2ada09(0x2d1)]&&this['_anchor']['dispose'](),this[_0x2ada09(0x2ea)]&&this[_0x2ada09(0x2ea)]();}[_0x3a7514(0x214)](){const _0x12de8a=_0x3a7514;var _0x34ed23;const {_docSkeleton:_0x25ebab,_document:_0x44a642}=this,{color:_0x325aec,name:_0x414023,ranges:_0x13ed0e}=this[_0x12de8a(0x301)],_0x592f2d=_0x44a642['getOffsetConfig'](),{docsLeft:_0x389136,docsTop:_0x4bcabf}=_0x592f2d,_0x4a0bc2=new _0x107870(_0x592f2d,_0x25ebab);for(const {startOffset:_0x172e9b,endOffset:_0x4ebd6f,rangeType:_0x5f1c3f,segmentId:_0x933a77,segmentPage:_0x3f07ab,collapsed:_0x32f9f1,isActive:_0xc5e4a0}of _0x13ed0e){const _0x4e8a19=_0x25ebab[_0x12de8a(0x31a)](_0x172e9b,!0x0,_0x933a77,_0x3f07ab);let _0x1d37cc=_0x25ebab[_0x12de8a(0x31a)](_0x4ebd6f,!0x0,_0x933a77,_0x3f07ab);if(_0x1d37cc==null&&(_0x1d37cc=_0x25ebab[_0x12de8a(0x31a)](_0x4ebd6f-0x1,!0x1,_0x933a77,_0x3f07ab)),_0xc5e4a0){const {contentBoxPointGroup:_0x2a2365}=_0x4a0bc2[_0x12de8a(0x37e)](_0x1d37cc,_0x1d37cc);if(_0x2a2365[_0x12de8a(0x1fb)]===0x0)continue;this[_0x12de8a(0x323)](_0x325aec,_0x2a2365,_0x389136,_0x4bcabf,_0x414023),this[_0x12de8a(0x2ea)]=this['_handleHover']();}if(_0x4e8a19&&_0x1d37cc){if(_0x5f1c3f===_0x2e0b28['RECT']){const _0x5ad73f=new _0x2e25db(_0x592f2d,_0x25ebab),{pointGroup:_0x3545d8}=(_0x34ed23=_0x5ad73f[_0x12de8a(0x37e)](_0x4e8a19,_0x1d37cc))!=null?_0x34ed23:{};if(_0x3545d8==null||_0x3545d8['length']===0x0)continue;this[_0x12de8a(0x380)](_0x325aec,_0x3545d8,_0x389136,_0x4bcabf);}else{if(!_0x32f9f1){const {borderBoxPointGroup:_0x4deb5e}=_0x4a0bc2[_0x12de8a(0x37e)](_0x4e8a19,_0x1d37cc);if(_0x4deb5e[_0x12de8a(0x1fb)]===0x0)continue;this[_0x12de8a(0x24b)](_0x325aec,_0x4deb5e,_0x389136,_0x4bcabf);}}}}}[_0x3a7514(0x323)](_0xf67a7c,_0x3a898d,_0x2e311a,_0xecf08b,_0x31ed44){const _0x26f35d=_0x3a7514,_0x46fb1f=this['_getAnchorBounding'](_0x3a898d),{left:_0x24ecaf,top:_0x5205a5,height:_0x21bb04}=_0x46fb1f,_0x3fde11=this['_getScale'](),_0x3f9a27=Di/_0x3fde11,_0x5217f9=new _0x215c95(Ie+_0x3c0adb[_0x26f35d(0x1f4)](X),{'left':_0x24ecaf+_0x2e311a-_0x3f9a27,'top':_0x5205a5+_0xecf08b,'height':_0x21bb04,'width':Ri,'fill':_0xf67a7c||_0x3b3e33(_0x2ad828['black'],0x0),'strokeWidth':_0x3f9a27,'stroke':Ni,'evented':!0x0});this[_0x26f35d(0x2d1)]=_0x5217f9,this[_0x26f35d(0x27c)][_0x26f35d(0x23e)](_0x5217f9,_0x150f19);const _0x34b077=new _0x215c95(Ie+_0x3c0adb[_0x26f35d(0x1f4)](X),{'left':_0x24ecaf+_0x2e311a-_0x3f9a27,'top':_0x5205a5+_0xecf08b-ge/0x2,'height':ge,'width':ge,'fill':_0xf67a7c||_0x3b3e33(_0x2ad828[_0x26f35d(0x291)],0x0),'strokeWidth':0x0,'stroke':_0xf67a7c||_0x3b3e33(_0x2ad828[_0x26f35d(0x291)],0x0),'evented':!0x1});this[_0x26f35d(0x3c9)]=_0x34b077,this[_0x26f35d(0x27c)][_0x26f35d(0x23e)](_0x34b077,_0x150f19);const _0x525a65=new he(Ie+_0x3c0adb[_0x26f35d(0x1f4)](X),{'left':_0x24ecaf+_0x2e311a-_0x3f9a27,'top':_0x5205a5+_0xecf08b-ee,'text':_0x31ed44,'color':_0xf67a7c});this[_0x26f35d(0x208)]=_0x525a65,this[_0x26f35d(0x27c)][_0x26f35d(0x23e)](_0x525a65,_0x150f19),this[_0x26f35d(0x2ec)]=!0x1;}[_0x3a7514(0x1fc)](){const _0x5c211e=_0x3a7514,_0x5e2b19=this[_0x5c211e(0x2d1)][_0x5c211e(0x245)][_0x5c211e(0x3ea)](()=>{this['_hover']=!0x0;}),_0x4f1414=this['_anchor']['onPointerLeave$']['subscribeEvent'](()=>{const _0x2d93e8=_0x5c211e;this[_0x2d93e8(0x23a)]&&clearTimeout(this[_0x2d93e8(0x23a)]),this[_0x2d93e8(0x23a)]=setTimeout(()=>{const _0x2b5d98=_0x2d93e8;this[_0x2b5d98(0x2ec)]=!0x1;},0x7d0);});return()=>{const _0x5341f3=_0x5c211e;_0x5e2b19[_0x5341f3(0x33c)](),_0x4f1414['unsubscribe']();};}['_drawTextRange'](_0x376f9c,_0x93dd0,_0x4b10f5,_0x5a9521){const _0x315d08=_0x3a7514,_0x4d8317=new _0x2d5c69(_0x376f9c)[_0x315d08(0x2c4)](0.2)[_0x315d08(0x28b)](),_0x386cdc=new _0x5972ac(bi+_0x3c0adb['generateRandomId'](X),{'pointsGroup':_0x93dd0,'fill':_0x4d8317||_0x3b3e33(_0x2ad828[_0x315d08(0x291)],0.2),'left':_0x4b10f5,'top':_0x5a9521,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x315d08(0x39f)]['push'](_0x386cdc),this[_0x315d08(0x27c)][_0x315d08(0x23e)](_0x386cdc,_0x150f19);}[_0x3a7514(0x380)](_0x7017aa,_0x509288,_0x16cac1,_0x1c1262){const _0x15c508=_0x3a7514,_0x558b77=new _0x2d5c69(_0x7017aa)[_0x15c508(0x2c4)](0.2)[_0x15c508(0x28b)](),_0x5c9cc4=new _0x5972ac(Ti+_0x3c0adb['generateRandomId'](X),{'pointsGroup':_0x509288,'fill':_0x558b77||_0x3b3e33(_0x2ad828[_0x15c508(0x291)],0.2),'left':_0x16cac1,'top':_0x1c1262,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15c508(0x39f)][_0x15c508(0x23d)](_0x5c9cc4),this[_0x15c508(0x27c)][_0x15c508(0x23e)](_0x5c9cc4,_0x150f19);}[_0x3a7514(0x38a)](_0x36bfe3){const _0x170af4=_0x36bfe3[0x0],_0x2831ad=_0x170af4[0x0],_0xac1fda=_0x170af4[0x2],{x:_0x1bfa6f,y:_0x2bee3a}=_0x2831ad,{x:_0x2bc91f,y:_0x33869a}=_0xac1fda;return{'left':_0x1bfa6f,'top':_0x2bee3a,'width':_0x2bc91f-_0x1bfa6f,'height':_0x33869a-_0x2bee3a};}[_0x3a7514(0x2ac)](){const _0x5af9ca=_0x3a7514,{scaleX:_0x44dd0f,scaleY:_0xe2346c}=this['_scene'][_0x5af9ca(0x3bd)]();return Math['max'](_0x44dd0f,_0xe2346c);}}var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x39ba91,_0x3b3a3d,_0x128fad,_0x5f20a6)=>{const _0x2284c5=_0x3a7514;for(var _0x25a1df=_0x5f20a6>0x1?void 0x0:_0x5f20a6?Ui(_0x3b3a3d,_0x128fad):_0x3b3a3d,_0x475aa6=_0x39ba91[_0x2284c5(0x1fb)]-0x1,_0x101658;_0x475aa6>=0x0;_0x475aa6--)(_0x101658=_0x39ba91[_0x475aa6])&&(_0x25a1df=_0x101658(_0x25a1df)||_0x25a1df);return _0x25a1df;},Z=(_0x3e796e,_0xd83d0f)=>(_0x45cb32,_0x1dd491)=>_0xd83d0f(_0x45cb32,_0x1dd491,_0x3e796e);let Le=class extends _0x288cb0{constructor(_0x53a409,_0x196b5b,_0xbf2498,_0x1979d3,_0xb62c65){const _0x40f417=_0x3a7514;super(),_(this,_0x40f417(0x30b),[]),_(this,'_cursors',[]),(this[_0x40f417(0x285)]=_0x53a409,this['_docSkeletonManagerService']=_0x196b5b,this[_0x40f417(0x2b7)]=_0xbf2498,this[_0x40f417(0x2c0)]=_0x1979d3,this[_0x40f417(0x336)]=_0xb62c65,this['_init']());}[_0x3a7514(0x324)](){const _0xbc2bbb=_0x3a7514,_0x5f2b4c=this[_0xbc2bbb(0x285)][_0xbc2bbb(0x3dd)],_0x41c0a7=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x9525b6([this[_0xbc2bbb(0x2b7)]['getCollabCursors$'](_0x5f2b4c),this[_0xbc2bbb(0x336)]['currentTheme$']])[_0xbc2bbb(0x239)](_0x3dc2dd(([_0x2ae649,_0x1f8a3e])=>({'skeleton':_0x41c0a7['getSkeleton'](),'cursors':[..._0x2ae649[_0xbc2bbb(0x2b9)]()]['flatMap'](_0x46f6b2=>({..._0x46f6b2,'color':this[_0xbc2bbb(0x336)][_0xbc2bbb(0x2c9)](_0x46f6b2[_0xbc2bbb(0x30d)])}))})))[_0xbc2bbb(0x3d5)](_0x369f49=>{const _0x2a409f=_0xbc2bbb;if(this[_0x2a409f(0x388)](),_0x369f49){const {skeleton:_0x29921,cursors:_0x518994}=_0x369f49;this[_0x2a409f(0x25e)](_0x29921,_0x518994);}})),this[_0xbc2bbb(0x279)](),this['_initCommandExecutedListener']();}[_0x3a7514(0x25e)](_0x1cce95,_0x458e6e){const _0x5f47ac=_0x3a7514,{scene:_0x329223,mainComponent:_0x1d5b36}=this[_0x5f47ac(0x285)],_0x246e21=_0x458e6e[_0x5f47ac(0x22b)](_0x42ccad=>new qe(_0x42ccad,_0x329223,_0x1cce95,_0x1d5b36));this[_0x5f47ac(0x30b)]=_0x246e21,this[_0x5f47ac(0x348)]=_0x458e6e;}[_0x3a7514(0x2b4)](){const _0x5b2321=_0x3a7514;this[_0x5b2321(0x388)]();const {scene:_0xdacd9f,mainComponent:_0x5bd3cd}=this[_0x5b2321(0x285)],_0x4b2aaf=this[_0x5b2321(0x326)]['getSkeleton'](),_0x3dbdb4=this[_0x5b2321(0x348)][_0x5b2321(0x22b)](_0x12ac32=>new qe(_0x12ac32,_0xdacd9f,_0x4b2aaf,_0x5bd3cd));this['_cursorShapes']=_0x3dbdb4;}[_0x3a7514(0x388)](){const _0x4bff66=_0x3a7514;this['_cursorShapes']['forEach'](_0x543581=>_0x543581[_0x4bff66(0x2db)]()),this[_0x4bff66(0x30b)]=[];}[_0x3a7514(0x338)](){const _0x30f562=_0x3a7514,_0x3d45d1=[_0x2250cb['id']];this[_0x30f562(0x21f)](this[_0x30f562(0x2c0)][_0x30f562(0x211)](_0x29d9bb=>{const _0x420160=_0x30f562;_0x3d45d1['includes'](_0x29d9bb['id'])&&_0x29d9bb[_0x420160(0x389)][_0x420160(0x3dd)]===this[_0x420160(0x285)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x3a7514(0x279)](){const _0x34b9cb=_0x3a7514;this[_0x34b9cb(0x21f)](_0x2a8af0(this[_0x34b9cb(0x285)][_0x34b9cb(0x3e2)][_0x34b9cb(0x321)])[_0x34b9cb(0x239)](_0xa16737(_0x51634b=>_0x51634b[_0x34b9cb(0x3d2)]===_0x1d0044[_0x34b9cb(0x373)]),_0x10bdfa(0x10))[_0x34b9cb(0x3d5)](()=>{const _0x1c2a07=_0x34b9cb;this[_0x1c2a07(0x2b4)]();}));}};Le=Mi([Z(0x1,_0x3730bb(_0x3ff96d)),Z(0x2,_0x3730bb(H)),Z(0x3,_0x38de57),Z(0x4,_0x3730bb(_0x5c46cb))],Le);const Li=0x1,Pi=1.5;class wi extends _0x2813c5{constructor(_0xf6891f,_0x1ab62c){const _0xc59b90=_0x3a7514;super(_0xf6891f,_0x1ab62c),_(this,_0xc59b90(0x235)),_(this,'_hovered',!0x1),_(this,_0xc59b90(0x2a8)),_(this,'_name',''),_(this,_0xc59b90(0x347),_0xc59b90(0x382)),_(this,'_backgroundColor'),(_0x1ab62c&&this[_0xc59b90(0x3e1)](_0x1ab62c),this[_0xc59b90(0x245)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0xc59b90(0x3ea)](()=>this[_0xc59b90(0x3e1)]({'hovered':!0x1})));}[_0x3a7514(0x3e1)](_0x2fc3ed){const _0x3c3677=_0x3a7514;var _0x89406,_0x42dd97,_0x3109ba,_0x3479fc,_0x287222,_0x2715a1;this[_0x3c3677(0x235)]=(_0x89406=_0x2fc3ed[_0x3c3677(0x30d)])!=null?_0x89406:this[_0x3c3677(0x235)],this[_0x3c3677(0x3d6)]=(_0x42dd97=_0x2fc3ed[_0x3c3677(0x34a)])!=null?_0x42dd97:this[_0x3c3677(0x3d6)],this[_0x3c3677(0x2a8)]=(_0x3109ba=_0x2fc3ed['range'])!=null?_0x3109ba:this[_0x3c3677(0x2a8)],this['_name']=(_0x3479fc=_0x2fc3ed['name'])!=null?_0x3479fc:this[_0x3c3677(0x35b)],this[_0x3c3677(0x347)]=(_0x287222=_0x2fc3ed[_0x3c3677(0x254)])!=null?_0x287222:this[_0x3c3677(0x347)],this[_0x3c3677(0x225)]=(_0x2715a1=_0x2fc3ed[_0x3c3677(0x299)])!=null?_0x2715a1:this[_0x3c3677(0x225)],this['transformByState']({'width':_0x2fc3ed[_0x3c3677(0x37f)],'height':_0x2fc3ed[_0x3c3677(0x2a7)]});}[_0x3a7514(0x2ed)](_0x1836f6){const _0x43521f=_0x3a7514,{row:_0x5f4334,column:_0x590344}=_0x1836f6;if(_0x5f4334>=this[_0x43521f(0x2a8)][_0x43521f(0x2cc)]&&_0x5f4334<=this['_range'][_0x43521f(0x2e2)]&&_0x590344>=this[_0x43521f(0x2a8)][_0x43521f(0x2dc)]&&_0x590344<=this[_0x43521f(0x2a8)][_0x43521f(0x30a)]){this[_0x43521f(0x3e1)]({'hovered':!0x0});return;}this[_0x43521f(0x3e1)]({'hovered':!0x1});}['triggerDblclick'](_0x121557){return!0x1;}[_0x3a7514(0x32a)](_0x1f2dd3){const _0x1f577e=_0x3a7514;_0x215c95[_0x1f577e(0x2a2)](_0x1f2dd3,{'width':this['width'],'height':this[_0x1f577e(0x2a7)],'strokeWidth':Pi,'stroke':this[_0x1f577e(0x235)],'evented':!0x1,'fill':this[_0x1f577e(0x225)]}),this[_0x1f577e(0x3d6)]&&(_0x1f2dd3[_0x1f577e(0x36c)](),_0x1f2dd3[_0x1f577e(0x2f8)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x1f577e(0x27a)?0x0:-0x14),he[_0x1f577e(0x2a2)](_0x1f2dd3,{'text':this[_0x1f577e(0x35b)],'color':this[_0x1f577e(0x235)]}),_0x1f2dd3[_0x1f577e(0x32d)]());}}var Ai=Object[_0x3a7514(0x362)],yi=(_0x2cd97a,_0x442f71,_0x448bdc,_0x4c3c4e)=>{for(var _0x3186b6=_0x4c3c4e>0x1?void 0x0:_0x4c3c4e?Ai(_0x442f71,_0x448bdc):_0x442f71,_0x352ee8=_0x2cd97a['length']-0x1,_0x15dd04;_0x352ee8>=0x0;_0x352ee8--)(_0x15dd04=_0x2cd97a[_0x352ee8])&&(_0x3186b6=_0x15dd04(_0x3186b6)||_0x3186b6);return _0x3186b6;},ve=(_0x13db9b,_0x389207)=>(_0x27e77f,_0x3be226)=>_0x389207(_0x27e77f,_0x3be226,_0x13db9b);const $i=0x1389;let Pe=class extends _0x288cb0{constructor(_0x4e681d,_0x52a8ac,_0x13870c,_0x3d027a){const _0x9d6dc2=_0x3a7514;super(),_(this,_0x9d6dc2(0x348),new Set()),_(this,'_lastPointer',null),(this[_0x9d6dc2(0x285)]=_0x4e681d,this['_sheetSkeletonManagerService']=_0x52a8ac,this['_collabCursorController']=_0x13870c,this[_0x9d6dc2(0x336)]=_0x3d027a,this['_init']());}[_0x3a7514(0x324)](){const _0x18fabc=_0x3a7514;this[_0x18fabc(0x294)]['currentSkeleton$'][_0x18fabc(0x239)](_0x1b16b9(this[_0x18fabc(0x3e6)]),_0x18cba4(_0x2ccdc3=>{const _0x499479=_0x18fabc;if(_0x2ccdc3){const _0x28c350=_0x2ccdc3[_0x499479(0x337)];return _0x9525b6(this[_0x499479(0x2b7)][_0x499479(0x339)](this['_context']['unitId']),this[_0x499479(0x336)][_0x499479(0x2fa)])['pipe'](_0x3dc2dd(([_0x4212c6,_0x25117f])=>{const _0x1df812=_0x499479,_0x322e8e=new Map();return _0x4212c6[_0x1df812(0x386)]((_0x5aed82,_0x3c8e81)=>{const _0x57e87b=_0x1df812;if(_0x5aed82[_0x57e87b(0x20d)]===_0x28c350){const _0x525387={..._0x5aed82};_0x525387[_0x57e87b(0x30d)]=this['_themeService'][_0x57e87b(0x2c9)](_0x5aed82[_0x57e87b(0x30d)]),_0x322e8e['set'](_0x3c8e81,_0x525387);}}),{'skeleton':_0x2ccdc3,'cursors':_0x322e8e};}));}return _0x48fb46({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x588cef,cursors:_0x2c7ca7})=>{const _0x2cab35=_0x18fabc;this['_removeCollabCursors'](),_0x588cef&&this[_0x2cab35(0x25e)](_0x588cef,_0x2c7ca7);}),this[_0x18fabc(0x294)][_0x18fabc(0x2f2)][_0x18fabc(0x3d5)](_0x4b36b3=>{const _0x1a1ce0=_0x18fabc;if(_0x4b36b3==null)return;const {skeleton:_0x35fd4c}=_0x4b36b3,{scene:_0x4d8d9b}=this['_context'];_0x4d8d9b[_0x1a1ce0(0x2e7)][_0x1a1ce0(0x3ea)](_0x4fdf57(_0x346345=>{const _0x4450b6=_0x1a1ce0;var _0x5339c2,_0x22a6ee;const {offsetX:_0x15c65e,offsetY:_0x20d8f4}=_0x346345,{x:_0x5aca10,y:_0x243a3f}=_0x4d8d9b['getRelativeToViewportCoord'](_0x568ce1[_0x4450b6(0x238)]([_0x15c65e,_0x20d8f4])),{scaleX:_0xbd445e,scaleY:_0x38bda4}=_0x4d8d9b['getAncestorScale'](),_0x5ba679=_0x4d8d9b[_0x4450b6(0x3ee)](_0x498db9['VIEW_MAIN']),_0xc0304f=_0x4d8d9b[_0x4450b6(0x267)](_0x568ce1[_0x4450b6(0x238)]([_0x5aca10,_0x243a3f]),_0x5ba679),_0x4895d0=_0x35fd4c['getCellPositionByOffset'](_0x15c65e,_0x20d8f4,_0xbd445e,_0x38bda4,_0xc0304f);((_0x5339c2=this['_lastPointer'])==null?void 0x0:_0x5339c2[_0x4450b6(0x2c5)])===_0x4895d0[_0x4450b6(0x2c5)]&&((_0x22a6ee=this[_0x4450b6(0x2cf)])==null?void 0x0:_0x22a6ee[_0x4450b6(0x227)])===_0x4895d0['row']||this[_0x4450b6(0x348)][_0x4450b6(0x386)](_0x6c3a46=>{const _0x245a68=_0x4450b6;_0x6c3a46[_0x245a68(0x2ed)](_0x4895d0);});},0x64));});}[_0x3a7514(0x25e)](_0x33635f,_0x13e027){const _0xecc79f=_0x3a7514;var _0x39f822;const _0x1cc2ce=(_0x39f822=this[_0xecc79f(0x294)][_0xecc79f(0x35a)]())==null?void 0x0:_0x39f822['skeleton'];if(!_0x1cc2ce)return;const _0x2859cc=this[_0xecc79f(0x317)]();if(!_0x2859cc)return;this[_0xecc79f(0x348)]['forEach'](_0x3ac658=>{const _0x4ae68e=_0xecc79f;_0x3ac658[_0x4ae68e(0x293)]();});const {scene:_0x4c183c}=_0x2859cc,_0xabb579=xi(Array[_0xecc79f(0x3ba)](_0x13e027[_0xecc79f(0x2b9)]()))[_0xecc79f(0x22b)](_0x471bfb=>{const _0x2d3f76=_0xecc79f,{color:_0x5f8a1d,range:_0x3f1094,name:_0x519ad3,selection:_0x2e7c93,sheetID:_0x4df658}=_0x471bfb,{startColumn:_0x2350bf,startRow:_0x340c81,endColumn:_0x553056,endRow:_0xcc742e}=_0x3f1094,_0x44f322=_0x266b92(_0x340c81,_0x2350bf,_0x4c183c,_0x1cc2ce),_0x391161=_0x266b92(_0xcc742e,_0x553056,_0x4c183c,_0x1cc2ce),{columnHeaderHeightAndMarginTop:_0xd22878}=_0x1cc2ce,{startX:_0x186a5a,startY:_0x4d0d8c}=_0x44f322,{endX:_0x116f50,endY:_0x588968}=_0x391161,_0x2791ff=_0x116f50-_0x186a5a,_0x185dbb=_0x588968-_0x4d0d8c,_0x4debfb={'labelPosition':_0x4d0d8c-_0xd22878>=ee?_0x2d3f76(0x382):_0x2d3f76(0x27a),'sheetID':_0x4df658,'range':_0x3f1094,'color':_0x5f8a1d,'name':_0x519ad3,'selection':_0x2e7c93,'left':_0x186a5a,'top':_0x4d0d8c,'width':_0x2791ff,'height':_0x185dbb,'evented':!0x1,'zIndex':$i};return new wi(_0x519ad3,_0x4debfb);});_0x4c183c[_0xecc79f(0x2a4)](_0xabb579,Li),this['_cursors']=new Set(_0xabb579);}['_removeCollabCursors'](){const _0x2e53af=_0x3a7514;var _0x3e2096;(_0x3e2096=this[_0x2e53af(0x348)])==null||_0x3e2096[_0x2e53af(0x386)](_0x2c241f=>_0x2c241f[_0x2e53af(0x2db)]());}[_0x3a7514(0x317)](){const _0x3febb6=_0x3a7514;return _0x36f1f0(this[_0x3febb6(0x285)][_0x3febb6(0x303)],this[_0x3febb6(0x285)]);}};Pe=yi([ve(0x1,_0x3730bb(_0x47429c)),ve(0x2,_0x3730bb(H)),ve(0x3,_0x3730bb(_0x5c46cb))],Pe);function xi(_0x6da80e){const _0x357ea5=_0x3a7514,_0x14ca8a=new Map();return _0x6da80e['forEach'](_0x112f6f=>{const _0x41c95c=_0x5a06;if(_0x14ca8a['has'](_0x112f6f[_0x41c95c(0x375)])){const _0x9343b9=_0x14ca8a[_0x41c95c(0x357)](_0x112f6f['selection']);_0x9343b9['name']+=',\x20'+_0x112f6f[_0x41c95c(0x3bf)];}else _0x14ca8a['set'](_0x112f6f[_0x41c95c(0x375)],_0x112f6f);}),Array[_0x357ea5(0x3ba)](_0x14ca8a[_0x357ea5(0x2b9)]());}var v=function(){const _0x303a1b=_0x3a7514;return v=Object['assign']||function(_0x46f609){const _0x4e9ce3=_0x5a06;for(var _0x5d3929,_0x4fd6dc=0x1,_0x26fc39=arguments[_0x4e9ce3(0x1fb)];_0x4fd6dc<_0x26fc39;_0x4fd6dc++){_0x5d3929=arguments[_0x4fd6dc];for(var _0x51b6ad in _0x5d3929)Object[_0x4e9ce3(0x38c)]['hasOwnProperty'][_0x4e9ce3(0x3da)](_0x5d3929,_0x51b6ad)&&(_0x46f609[_0x51b6ad]=_0x5d3929[_0x51b6ad]);}return _0x46f609;},v[_0x303a1b(0x37a)](this,arguments);},Bi=function(_0x1be66e,_0x215ca0){const _0x2081c3=_0x3a7514;var _0x569dd9={};for(var _0x20c4e7 in _0x1be66e)Object[_0x2081c3(0x38c)][_0x2081c3(0x250)]['call'](_0x1be66e,_0x20c4e7)&&_0x215ca0['indexOf'](_0x20c4e7)<0x0&&(_0x569dd9[_0x20c4e7]=_0x1be66e[_0x20c4e7]);if(_0x1be66e!=null&&typeof Object[_0x2081c3(0x311)]==_0x2081c3(0x365)){for(var _0x14b81a=0x0,_0x20c4e7=Object[_0x2081c3(0x311)](_0x1be66e);_0x14b81a<_0x20c4e7[_0x2081c3(0x1fb)];_0x14b81a++)_0x215ca0[_0x2081c3(0x222)](_0x20c4e7[_0x14b81a])<0x0&&Object[_0x2081c3(0x38c)]['propertyIsEnumerable'][_0x2081c3(0x3da)](_0x1be66e,_0x20c4e7[_0x14b81a])&&(_0x569dd9[_0x20c4e7[_0x14b81a]]=_0x1be66e[_0x20c4e7[_0x14b81a]]);}return _0x569dd9;},Fe=_0x42e0e4(function(_0x2f3e3c,_0x3ad1ae){const _0x340b44=_0x3a7514;var _0x51f869=_0x2f3e3c['icon'],_0x491845=_0x2f3e3c['id'],_0xfb7bd4=_0x2f3e3c['className'],_0x1e518d=_0x2f3e3c[_0x340b44(0x2d9)],_0x1b5501=Bi(_0x2f3e3c,['icon','id','className',_0x340b44(0x2d9)]),_0x312d77=_0x340b44(0x2c8)[_0x340b44(0x340)](_0x491845,'\x20')['concat'](_0xfb7bd4||'')[_0x340b44(0x39a)](),_0x301132=_0x37a3da('_'[_0x340b44(0x340)](Fi()));return Rt(_0x51f869,''['concat'](_0x491845),{'defIds':_0x51f869[_0x340b44(0x2a1)],'idSuffix':_0x301132[_0x340b44(0x36f)]},v({'ref':_0x3ad1ae,'className':_0x312d77},_0x1b5501),_0x1e518d);});function Rt(_0x47cda5,_0x5a6392,_0x5311f8,_0x592f72,_0x2bd3c8){const _0x429d73=_0x3a7514;return _0x4f230d(_0x47cda5[_0x429d73(0x26c)],v(v({'key':_0x5a6392},ki(_0x47cda5,_0x5311f8,_0x2bd3c8)),_0x592f72),(Hi(_0x47cda5,_0x5311f8)[_0x429d73(0x248)]||[])[_0x429d73(0x22b)](function(_0x17f68b,_0x49640d){const _0x10676e=_0x429d73;return Rt(_0x17f68b,''[_0x10676e(0x340)](_0x5a6392,'-')['concat'](_0x47cda5[_0x10676e(0x26c)],'-')[_0x10676e(0x340)](_0x49640d),_0x5311f8,void 0x0,_0x2bd3c8);}));}function ki(_0xaeafba,_0x14f557,_0x1e9f69){const _0x23dcbc=_0x3a7514;var _0x5ec3ac=v({},_0xaeafba[_0x23dcbc(0x1fd)]);_0x1e9f69!=null&&_0x1e9f69['colorChannel1']&&_0x5ec3ac[_0x23dcbc(0x353)]==='colorChannel1'&&(_0x5ec3ac[_0x23dcbc(0x353)]=_0x1e9f69[_0x23dcbc(0x219)]),_0xaeafba[_0x23dcbc(0x26c)]==='mask'&&_0x5ec3ac['id']&&(_0x5ec3ac['id']=_0x5ec3ac['id']+_0x14f557['idSuffix']),Object['entries'](_0x5ec3ac)[_0x23dcbc(0x386)](function(_0x22038d){const _0x1ab403=_0x23dcbc;var _0x3968c3=_0x22038d[0x0],_0x22e338=_0x22038d[0x1];_0x3968c3===_0x1ab403(0x378)&&typeof _0x22e338==_0x1ab403(0x332)&&(_0x5ec3ac[_0x3968c3]=_0x22e338['replace'](/url\(#(.*)\)/,_0x1ab403(0x3a7)[_0x1ab403(0x340)](_0x14f557[_0x1ab403(0x3c5)],')')));});var _0x4ae77c=_0x14f557['defIds'];return!_0x4ae77c||_0x4ae77c[_0x23dcbc(0x1fb)]===0x0||(_0xaeafba[_0x23dcbc(0x26c)]===_0x23dcbc(0x346)&&_0x5ec3ac[_0x23dcbc(0x1f3)]&&(_0x5ec3ac[_0x23dcbc(0x1f3)]=_0x5ec3ac[_0x23dcbc(0x1f3)]+_0x14f557['idSuffix']),Object[_0x23dcbc(0x3d7)](_0x5ec3ac)[_0x23dcbc(0x386)](function(_0x244271){const _0x42ebc1=_0x23dcbc;var _0x59d4e0=_0x244271[0x0],_0x4df6f1=_0x244271[0x1];typeof _0x4df6f1==_0x42ebc1(0x332)&&(_0x5ec3ac[_0x59d4e0]=_0x4df6f1['replace'](/url\(#(.*)\)/,_0x42ebc1(0x3a7)[_0x42ebc1(0x340)](_0x14f557[_0x42ebc1(0x3c5)],')')));})),_0x5ec3ac;}function Hi(_0x597563,_0x3e2086){const _0x67bb0d=_0x3a7514;var _0x2b733f,_0x48a41d=_0x3e2086[_0x67bb0d(0x2a1)];return!_0x48a41d||_0x48a41d[_0x67bb0d(0x1fb)]===0x0?_0x597563:_0x597563[_0x67bb0d(0x26c)]===_0x67bb0d(0x2b6)&&(!((_0x2b733f=_0x597563[_0x67bb0d(0x248)])===null||_0x2b733f===void 0x0)&&_0x2b733f[_0x67bb0d(0x1fb)])?v(v({},_0x597563),{'children':_0x597563[_0x67bb0d(0x248)][_0x67bb0d(0x22b)](function(_0x186f84){const _0x574d8d=_0x67bb0d;return typeof _0x186f84['attrs']['id']==_0x574d8d(0x332)&&_0x48a41d&&_0x48a41d['includes'](_0x186f84[_0x574d8d(0x1fd)]['id'])?v(v({},_0x186f84),{'attrs':v(v({},_0x186f84['attrs']),{'id':_0x186f84['attrs']['id']+_0x3e2086[_0x574d8d(0x3c5)]})}):_0x186f84;})}):_0x597563;}function Fi(){const _0x5d7350=_0x3a7514;return Math['random']()[_0x5d7350(0x3a3)](0x24)[_0x5d7350(0x3e5)](0x2,0x8);}Fe['displayName']=_0x3a7514(0x3c3);var Yi={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3a7514(0x1f5),'viewBox':'0\x200\x2016\x2016','width':_0x3a7514(0x38e),'height':_0x3a7514(0x38e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3a7514(0x2eb),'attrs':{'stroke':_0x3a7514(0x287),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x3a7514(0x3e9),'strokeLinejoin':_0x3a7514(0x3e9),'strokeWidth':1.2}}]},{'tag':_0x3a7514(0x2b6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3a7514(0x284)},'children':[{'tag':_0x3a7514(0x2eb),'attrs':{'fill':_0x3a7514(0x292),'d':_0x3a7514(0x2af)}}]}]}],'defIds':[_0x3a7514(0x284)]},Dt=_0x42e0e4(function(_0x137eef,_0x545539){const _0x937f80=_0x3a7514;return _0x4f230d(Fe,Object[_0x937f80(0x23c)]({},_0x137eef,{'id':_0x937f80(0x27f),'ref':_0x545539,'icon':Yi}));});Dt[_0x3a7514(0x35d)]=_0x3a7514(0x233);var ji={'tag':_0x3a7514(0x25a),'attrs':{'xmlns':_0x3a7514(0x384),'fill':'none','viewBox':_0x3a7514(0x316),'width':'1em','height':_0x3a7514(0x38e)},'children':[{'tag':'g','attrs':{'clipPath':_0x3a7514(0x3af)},'children':[{'tag':_0x3a7514(0x2eb),'attrs':{'stroke':'currentColor','d':_0x3a7514(0x368),'strokeLinecap':'round','strokeLinejoin':_0x3a7514(0x3e9),'strokeWidth':1.2}}]},{'tag':_0x3a7514(0x2b6),'attrs':{},'children':[{'tag':_0x3a7514(0x282),'attrs':{'id':_0x3a7514(0x34b)},'children':[{'tag':_0x3a7514(0x2eb),'attrs':{'fill':_0x3a7514(0x292),'d':_0x3a7514(0x2af),'transform':_0x3a7514(0x213)}}]}]}],'defIds':[_0x3a7514(0x34b)]},Nt=_0x42e0e4(function(_0xa461b,_0x5d2284){const _0x195135=_0x3a7514;return _0x4f230d(Fe,Object[_0x195135(0x23c)]({},_0xa461b,{'id':'on-line-icon','ref':_0x5d2284,'icon':ji}));});Nt[_0x3a7514(0x35d)]=_0x3a7514(0x1f6);function Vi(_0x163d6e){const _0x5369fa=_0x3a7514;switch(_0x163d6e){case _0x442c06[_0x5369fa(0x207)]:return _0x5369fa(0x2de);case _0x442c06[_0x5369fa(0x2d5)]:return _0x5369fa(0x3ef);case _0x442c06[_0x5369fa(0x3be)]:return'collabStatus.fetchMiss';case _0x442c06[_0x5369fa(0x31c)]:return'collabStatus.notCollab';case _0x442c06[_0x5369fa(0x3cf)]:case _0x442c06[_0x5369fa(0x2aa)]:return'collabStatus.syncing';case _0x442c06['SYNCED']:case _0x442c06[_0x5369fa(0x296)]:return'collabStatus.synced';}}function Wi(_0x12c24f){const _0x25cc95=_0x3a7514,{status$:_0x55af74}=_0x12c24f,_0x285089=_0x314a61(_0x55af74,_0x442c06[_0x25cc95(0x31c)]),_0x2c7cd3=_0x1f72ab(_0x42b0cb),_0x4cdc13=_0x1f72ab(_0x52cec6),_0x14a9bb=_0x285089!==_0x442c06['OFFLINE'],_0x201548=_0x2c7cd3['t'](Vi(_0x285089)),_0x28109c=_0x14a9bb?_0x14afa9(Nt,{}):_0x14afa9(Dt,{}),_0x111d50=_0x41aaa4(()=>{const _0x8db7c3=_0x25cc95;_0x14a9bb||_0x4cdc13[_0x8db7c3(0x283)]();},[_0x14a9bb,_0x4cdc13]);function _0x36d58f(){const _0x466a0a=_0x25cc95;return _0x31a54d('div',{'className':_0x466a0a(0x312),'onClick':_0x111d50,'children':[_0x14afa9('div',{'className':_0x377874(_0x466a0a(0x32c),{'univer-text-green-500':_0x14a9bb,'univer-text-red-500':!_0x14a9bb}),'children':_0x28109c}),_0x14afa9(_0x466a0a(0x26d),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x201548})]});}return _0x14a9bb?_0x36d58f():_0x14afa9(_0x10e3b0,{'title':_0x2c7cd3['t']('collab-client.tooltip.reconnect'),'children':_0x36d58f()});}var Xi=Object[_0x3a7514(0x362)],Gi=(_0x4db69f,_0x47adc6,_0x5adb75,_0x48cdb3)=>{const _0x4dd623=_0x3a7514;for(var _0x162a5c=_0x48cdb3>0x1?void 0x0:_0x48cdb3?Xi(_0x47adc6,_0x5adb75):_0x47adc6,_0x31917a=_0x4db69f[_0x4dd623(0x1fb)]-0x1,_0x11800e;_0x31917a>=0x0;_0x31917a--)(_0x11800e=_0x4db69f[_0x31917a])&&(_0x162a5c=_0x11800e(_0x162a5c)||_0x162a5c);return _0x162a5c;},Q=(_0x50c3a2,_0x38f16c)=>(_0x39cf63,_0x2911d5)=>_0x38f16c(_0x39cf63,_0x2911d5,_0x50c3a2);let te=class extends _0x31943f{constructor(_0x4117d3,_0x5237e0,_0x46a4db,_0x164d31){const _0x14a6ab=_0x3a7514;super(),_(this,_0x14a6ab(0x24d),new _0xd53c5a(_0x442c06[_0x14a6ab(0x31c)])),(this[_0x14a6ab(0x2ee)]=_0x4117d3,this[_0x14a6ab(0x3ac)]=_0x5237e0,this['_collaborationController']=_0x46a4db,this['_uiPartsService']=_0x164d31,this[_0x14a6ab(0x377)](),this['_initStatusListener']());}[_0x3a7514(0x2d0)](){const _0x693095=_0x3a7514;this['disposeWithMe'](this[_0x693095(0x2ee)][_0x693095(0x2d2)][_0x693095(0x239)](_0x3cde7c(()=>{const _0x5538f3=_0x693095,_0x5a32cf=this[_0x5538f3(0x2ee)][_0x5538f3(0x229)]();return _0x5a32cf?this[_0x5538f3(0x358)][_0x5538f3(0x3cd)](_0x5a32cf[_0x5538f3(0x2fc)]()):_0x48fb46(null);}),_0x3cde7c(_0x1a4ff2=>_0x1a4ff2?_0x1a4ff2[_0x693095(0x290)]:_0x48fb46(_0x442c06[_0x693095(0x31c)])))[_0x693095(0x3d5)](_0x32f948=>{const _0x4232cf=_0x693095;this[_0x4232cf(0x24d)][_0x4232cf(0x21a)](_0x32f948);}));}['_initStatusComponent'](){const _0xe4cead=_0x3a7514;this[_0xe4cead(0x21f)](this[_0xe4cead(0x3a8)][_0xe4cead(0x32b)](_0x380654[_0xe4cead(0x28c)],()=>_0x358b87(Ki({'status$':this[_0xe4cead(0x24d)][_0xe4cead(0x1f9)]()}),this[_0xe4cead(0x3ac)])));}};te=Gi([Q(0x0,_0x2470f9),Q(0x1,_0x3730bb(_0x51462b)),Q(0x2,_0x3730bb(_0x1da6a0)),Q(0x3,_0x57d3a8)],te);function Ki(_0x9da61d){const {status$:_0x290da3}=_0x9da61d;return function(){return _0x14afa9(Wi,{'status$':_0x290da3});};}var zi=Object[_0x3a7514(0x362)],Ji=(_0x48d249,_0x1353ca,_0x4bd249,_0x1d8046)=>{const _0xf79225=_0x3a7514;for(var _0x5be476=_0x1d8046>0x1?void 0x0:_0x1d8046?zi(_0x1353ca,_0x4bd249):_0x1353ca,_0x208984=_0x48d249[_0xf79225(0x1fb)]-0x1,_0x4dba36;_0x208984>=0x0;_0x208984--)(_0x4dba36=_0x48d249[_0x208984])&&(_0x5be476=_0x4dba36(_0x5be476)||_0x5be476);return _0x5be476;},B=(_0x187920,_0x3ff499)=>(_0x296ee6,_0x157477)=>_0x3ff499(_0x296ee6,_0x157477,_0x187920);let se=class extends _0x31943f{constructor(_0x548ef5,_0x1c4c80,_0x163c9d,_0x3f1461,_0x5bee3e,_0x49f575){const _0x2f52cf=_0x3a7514;super(),this['_beforeCloseService']=_0x548ef5,this[_0x2f52cf(0x2f4)]=_0x1c4c80,this['_collaborationUIEventService']=_0x163c9d,this[_0x2f52cf(0x37b)]=_0x3f1461,this['_notificationService']=_0x5bee3e,this[_0x2f52cf(0x286)]=_0x49f575,this[_0x2f52cf(0x3de)](),this['_initEvent']();}[_0x3a7514(0x3de)](){const _0x2f8f52=_0x3a7514;this[_0x2f8f52(0x21f)](this[_0x2f8f52(0x27b)][_0x2f8f52(0x3f0)](()=>{const _0x22e5f1=_0x2f8f52;if(this[_0x22e5f1(0x2f4)][_0x22e5f1(0x3ca)][_0x22e5f1(0x3c6)])return this['_localeService']['t'](_0x22e5f1(0x295));}));}[_0x3a7514(0x262)](){const _0xa1b17=_0x3a7514;this[_0xa1b17(0x21f)](this['_collaborationUIEventService'][_0xa1b17(0x29b)][_0xa1b17(0x3d5)](_0x269639=>{const _0x57c5ac=_0xa1b17;_0x269639['id']===_0x39a0a4[_0x57c5ac(0x2f6)]&&this[_0x57c5ac(0x37b)]['show']({'type':_0x2b3268[_0x57c5ac(0x258)],'content':this[_0x57c5ac(0x286)]['t'](_0x57c5ac(0x21c))}),_0x269639['id']===_0x39a0a4[_0x57c5ac(0x1fe)]&&this[_0x57c5ac(0x37b)]['show']({'type':_0x2b3268['Warning'],'content':this['_localeService']['t'](_0x57c5ac(0x30f))}),_0x269639['id']===_0x39a0a4['PERMISSION_DENIED']&&this[_0x57c5ac(0x2f3)][_0x57c5ac(0x398)]({'title':this[_0x57c5ac(0x286)]['t']('permission.title'),'content':this[_0x57c5ac(0x286)]['t'](_0x57c5ac(0x264)),'type':_0x57c5ac(0x331),'duration':0x0}),_0x269639['id']===_0x39a0a4[_0x57c5ac(0x2d5)]&&this[_0x57c5ac(0x37b)][_0x57c5ac(0x398)]({'type':_0x2b3268[_0x57c5ac(0x333)],'content':this[_0x57c5ac(0x286)]['t'](_0x57c5ac(0x30f))+'('+_0x269639[_0x57c5ac(0x39e)]+')'}),_0x269639['id']===_0x39a0a4[_0x57c5ac(0x381)]&&this['_messageService'][_0x57c5ac(0x398)]({'type':_0x2b3268[_0x57c5ac(0x258)],'content':this['_localeService']['t'](_0x269639['data']||'')}),_0x269639['id']===_0x39a0a4[_0x57c5ac(0x33b)]&&this[_0x57c5ac(0x37b)][_0x57c5ac(0x398)]({'type':_0x2b3268[_0x57c5ac(0x258)],'content':this[_0x57c5ac(0x286)]['t'](_0x57c5ac(0x2e8))}),_0x269639['id']===_0x39a0a4[_0x57c5ac(0x3e8)]&&this[_0x57c5ac(0x37b)][_0x57c5ac(0x398)]({'type':_0x2b3268[_0x57c5ac(0x333)],'content':this[_0x57c5ac(0x286)]['t']('session.connection-failed')}),_0x269639['id']===_0x39a0a4['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x57c5ac(0x398)]({'type':_0x2b3268[_0x57c5ac(0x333)],'content':this['_localeService']['t'](_0x57c5ac(0x29f))});}));}};se=Ji([B(0x0,_0x36b1b0),B(0x1,_0x3d5a5c),B(0x2,_0x3730bb(_0x150ebc)),B(0x3,_0x5a2737),B(0x4,_0x495b51),B(0x5,_0x3730bb(_0x42b0cb))],se);const Zi=_0x3a7514(0x280),et={},Ut=_0x10eb3b('uni.network.url-service');var Qi=Object['getOwnPropertyDescriptor'],qi=(_0x4c82be,_0x125052,_0x3e1d0d,_0x13088b)=>{const _0x2534f0=_0x3a7514;for(var _0x1f2c6b=_0x13088b>0x1?void 0x0:_0x13088b?Qi(_0x125052,_0x3e1d0d):_0x125052,_0x3d7bc9=_0x4c82be[_0x2534f0(0x1fb)]-0x1,_0x58cd9d;_0x3d7bc9>=0x0;_0x3d7bc9--)(_0x58cd9d=_0x4c82be[_0x3d7bc9])&&(_0x1f2c6b=_0x58cd9d(_0x1f2c6b)||_0x1f2c6b);return _0x1f2c6b;},G=(_0x65c425,_0x11c2c5)=>(_0x2f95ad,_0x2bbb72)=>_0x11c2c5(_0x2f95ad,_0x2bbb72,_0x65c425);let ie=class extends _0x288cb0{constructor(_0x163ed2,_0x3883e2,_0x19fe59,_0x3a6574,_0x28869d){const _0x1ccf7b=_0x3a7514;super(),this[_0x1ccf7b(0x3e0)]=_0x163ed2,this[_0x1ccf7b(0x360)]=_0x3883e2,this[_0x1ccf7b(0x2c0)]=_0x19fe59,this[_0x1ccf7b(0x394)]=_0x3a6574,_0x28869d?_0x28869d==null||_0x28869d['whenReady']()['then'](()=>this[_0x1ccf7b(0x324)]()):(this[_0x1ccf7b(0x360)][_0x1ccf7b(0x355)](_0x1ccf7b(0x300),_0x1ccf7b(0x3ae)),this[_0x1ccf7b(0x324)]());}async[_0x3a7514(0x324)](){const _0x4fe220=_0x3a7514,_0x3ca40d=this[_0x4fe220(0x3e0)][_0x4fe220(0x2d8)]('unit'),_0x289e4b=this[_0x4fe220(0x3e0)][_0x4fe220(0x2d8)](_0x4fe220(0x3d2)),_0x5154f4=this[_0x4fe220(0x3e0)][_0x4fe220(0x2d8)](_0x4fe220(0x313));if(!_0x3ca40d||!_0x289e4b){this[_0x4fe220(0x360)][_0x4fe220(0x355)](_0x4fe220(0x300),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x220a83=await this['_dataLoaderService'][_0x4fe220(0x3c2)](_0x3ca40d,Number(_0x289e4b),_0x5154f4);_0x220a83&&_0x220a83 instanceof _0x39cb8c&&this[_0x4fe220(0x25c)](_0x220a83);}async['_setupSubUnitSync'](_0x6d236a){const _0x234c62=_0x3a7514;await this[_0x234c62(0x371)](_0x6d236a),_0x6d236a[_0x234c62(0x277)][_0x234c62(0x239)](_0x108d38(this[_0x234c62(0x3e6)]))['subscribe'](_0x5caabc=>{const _0x2b9483=_0x234c62;_0x5caabc&&this[_0x2b9483(0x3e7)](_0x5caabc);}),this[_0x234c62(0x3e0)][_0x234c62(0x2b8)]['pipe'](_0x108d38(this[_0x234c62(0x3e6)]))[_0x234c62(0x3d5)](()=>this[_0x234c62(0x371)](_0x6d236a));}[_0x3a7514(0x3e7)](_0x17efba,_0x40552b=!0x1){const _0x4c3c1a=_0x3a7514,_0x4b124f=this['_urlService']['getParam'](_0x4c3c1a(0x313));_0x17efba[_0x4c3c1a(0x3b8)]()!==_0x4b124f&&this[_0x4c3c1a(0x3e0)]['setParam'](_0x4c3c1a(0x313),_0x17efba['getSheetId'](),_0x40552b);}async[_0x3a7514(0x371)](_0x3d1e88){const _0x537104=_0x3a7514;var _0x362f93;const _0x5a18af=this[_0x537104(0x3e0)]['getParam']('subunit');if(!_0x5a18af||!_0x3d1e88[_0x537104(0x34d)](_0x5a18af)){const _0x55e09b=_0x3d1e88[_0x537104(0x3a9)]()[0x0],_0x429597=_0x3d1e88[_0x537104(0x34d)](_0x55e09b);if(!_0x429597)return;this['_updateURLWithCurrentState'](_0x429597,!0x0),await this['_commandService'][_0x537104(0x33f)](_0x1c2e8c['id'],{'unitId':_0x3d1e88[_0x537104(0x2fc)](),'subUnitId':_0x55e09b});return;}((_0x362f93=_0x3d1e88['getActiveSheet']())==null?void 0x0:_0x362f93[_0x537104(0x3b8)]())!==_0x5a18af&&await this[_0x537104(0x2c0)][_0x537104(0x33f)](_0x1c2e8c['id'],{'unitId':_0x3d1e88[_0x537104(0x2fc)](),'subUnitId':_0x5a18af});}};ie=qi([G(0x0,Ut),G(0x1,_0x430541),G(0x2,_0x38de57),G(0x3,_0x3730bb(_0x498d1a)),G(0x4,_0x3ee902(_0x16478f))],ie);var en=Object['getOwnPropertyDescriptor'],tn=(_0x34b929,_0xbd9dd0,_0x10ebcb,_0x4202b1)=>{const _0x3d79d4=_0x3a7514;for(var _0x170dd2=_0x4202b1>0x1?void 0x0:_0x4202b1?en(_0xbd9dd0,_0x10ebcb):_0xbd9dd0,_0x5ab817=_0x34b929[_0x3d79d4(0x1fb)]-0x1,_0x52c7ba;_0x5ab817>=0x0;_0x5ab817--)(_0x52c7ba=_0x34b929[_0x5ab817])&&(_0x170dd2=_0x52c7ba(_0x170dd2)||_0x170dd2);return _0x170dd2;},pe=(_0x76cfee,_0x5bbbd9)=>(_0x4ded90,_0x58d62c)=>_0x5bbbd9(_0x4ded90,_0x58d62c,_0x76cfee);let ne=class{constructor(_0x12e3f9,_0x3a7cc9,_0x1693ef){const _0x136632=_0x3a7514;this['_injector']=_0x12e3f9,this[_0x136632(0x3d9)]=_0x3a7cc9,this[_0x136632(0x34f)]=_0x1693ef;}['transformIMECache'](_0x6c0333){const _0x4bfa02=_0x3a7514;this[_0x4bfa02(0x302)](_0x6c0333),this[_0x4bfa02(0x272)](_0x6c0333);}[_0x3a7514(0x2a3)](_0x387ea0){const _0x122140=_0x3a7514,{unitID:_0x2a5528}=_0x387ea0,_0x2fa2bf=this[_0x122140(0x34f)]['getRenderById'](_0x2a5528)['with'](_0xb87fcf),{redoCache:_0x235dba}=_0x2fa2bf[_0x122140(0x2e9)]();if(_0x235dba[_0x122140(0x1fb)]===0x0)return _0x387ea0;let _0x1dc3f2=_0x3c0adb['deepClone'](_0x387ea0['mutations'][0x0]);for(let _0x2557d6=0x0;_0x2557d6<_0x235dba[_0x122140(0x1fb)];_0x2557d6++){const _0x150caf={'id':_0x122140(0x3ce),'params':{..._0x235dba[_0x2557d6]}},_0x31dcb0=this[_0x122140(0x3d9)][_0x122140(0x328)](_0x1dc3f2,_0x150caf,!0x1);if(_0x37a0c2(_0x31dcb0))throw _0x31dcb0[_0x122140(0x331)];_0x1dc3f2=_0x31dcb0[_0x122140(0x20a)];}return{..._0x3c0adb[_0x122140(0x364)](_0x387ea0),'mutations':[_0x1dc3f2]};}[_0x3a7514(0x302)](_0x575589){const _0x41d52f=_0x3a7514,{unitID:_0x12728b}=_0x575589,_0x2f9cbc=this[_0x41d52f(0x34f)][_0x41d52f(0x393)](_0x12728b)['with'](_0xb87fcf),{undoCache:_0x4fc782,redoCache:_0x1c0561}=_0x2f9cbc['getUndoRedoMutationParamsCache']();if(_0x4fc782['length']===0x0||_0x1c0561[_0x41d52f(0x1fb)]===0x0)return;const _0x1bc4e3=[],_0x139166=[];let _0x434401=_0x3c0adb[_0x41d52f(0x364)](_0x575589['mutations'][0x0]),_0x3911b2=_0x3c0adb[_0x41d52f(0x364)](_0x575589[_0x41d52f(0x236)][0x0]);for(let _0x5da49e=_0x4fc782['length']-0x1;_0x5da49e>=0x0;_0x5da49e--){const _0x1b1d3d={'id':'doc.mutation.rich-text-editing','params':{..._0x4fc782[_0x5da49e]}},_0x581627={'id':_0x41d52f(0x3ce),'params':{..._0x1c0561[_0x5da49e]}},_0x146af8=this['_transformService']['transformMutation'](_0x434401,_0x1b1d3d,!0x1),_0x4bf64f=this['_transformService'][_0x41d52f(0x328)](_0x3911b2,_0x581627,!0x1);if(_0x37a0c2(_0x146af8))throw _0x146af8['error'];if(_0x37a0c2(_0x4bf64f))throw _0x4bf64f[_0x41d52f(0x331)];_0x1bc4e3['unshift'](_0x146af8[_0x41d52f(0x247)]['params']),_0x139166['unshift'](_0x4bf64f[_0x41d52f(0x247)]['params']),_0x434401=_0x146af8['m1Prime'],_0x3911b2=_0x4bf64f[_0x41d52f(0x20a)];}_0x2f9cbc['setUndoRedoMutationParamsCache']({'undoCache':_0x1bc4e3,'redoCache':_0x139166});}['_transformPreviousActiveRange'](_0x2c7a49){const _0x37bea3=_0x3a7514,{unitID:_0x358b07}=_0x2c7a49,_0x690288=this[_0x37bea3(0x34f)]['getRenderById'](_0x358b07)[_0x37bea3(0x246)](_0xb87fcf),_0x408d0c=_0x690288[_0x37bea3(0x3eb)]();if(_0x408d0c==null)return;const _0x2c7992=[{'id':_0x37bea3(0x3ce),'params':{'unitId':_0x2c7a49[_0x37bea3(0x200)],'actions':null,'textRanges':[_0x408d0c]}}],_0x30478f=this[_0x37bea3(0x3d9)][_0x37bea3(0x2ae)](_0x2c7a49,_0x2c7992);if(!_0x42ebc2(_0x30478f))throw _0x30478f['error'];const _0x48bf2c=_0x30478f['m2Prime'][0x0][_0x37bea3(0x389)]['textRanges'];Array[_0x37bea3(0x31e)](_0x48bf2c)&&_0x48bf2c['length']&&_0x690288[_0x37bea3(0x2e1)](_0x48bf2c[0x0]);}};ne=tn([pe(0x0,_0x3730bb(_0x51462b)),pe(0x1,_0x432c53),pe(0x2,_0x27ceaf)],ne);var sn=Object[_0x3a7514(0x362)],nn=(_0x14b0e6,_0x55e006,_0x1b2669,_0x522351)=>{const _0x1d2961=_0x3a7514;for(var _0x1ceb26=_0x522351>0x1?void 0x0:_0x522351?sn(_0x55e006,_0x1b2669):_0x55e006,_0x59c515=_0x14b0e6[_0x1d2961(0x1fb)]-0x1,_0x1cc457;_0x59c515>=0x0;_0x59c515--)(_0x1cc457=_0x14b0e6[_0x59c515])&&(_0x1ceb26=_0x1cc457(_0x1ceb26)||_0x1ceb26);return _0x1ceb26;},Ce=(_0x163de1,_0x31a6b3)=>(_0x3ded57,_0x1cff05)=>_0x31a6b3(_0x3ded57,_0x1cff05,_0x163de1);let re=class{constructor(_0x321774,_0x4b265f,_0x4a9a6f){const _0x548884=_0x3a7514;this['_injector']=_0x321774,this[_0x548884(0x3d9)]=_0x4b265f,this['_docStateChangeManagerService']=_0x4a9a6f;}['transformStateCache'](_0x5666a9){const _0x50e444=_0x3a7514;this[_0x50e444(0x217)](_0x5666a9);}[_0x3a7514(0x2a3)](_0x232424){const _0x80a9b4=_0x3a7514,{unitID:_0x51eb2f}=_0x232424,{collaboration:_0x43ecee}=this['_docStateChangeManagerService']['getStateCache'](_0x51eb2f);if(_0x43ecee[_0x80a9b4(0x1fb)]===0x0)return _0x232424;let _0x317654=_0x3c0adb[_0x80a9b4(0x364)](_0x232424['mutations'][0x0]);for(let _0x40699b=0x0;_0x40699b<_0x43ecee[_0x80a9b4(0x1fb)];_0x40699b++){const _0x406dbe={'id':_0x80a9b4(0x3ce),'params':{'unitId':_0x43ecee[_0x40699b][_0x80a9b4(0x3dd)],..._0x43ecee[_0x40699b][_0x80a9b4(0x202)]}},_0x20b78d=this['_transformService'][_0x80a9b4(0x328)](_0x317654,_0x406dbe,!0x1);if(_0x37a0c2(_0x20b78d))throw _0x20b78d['error'];_0x317654=_0x20b78d[_0x80a9b4(0x20a)];}return{..._0x3c0adb['deepClone'](_0x232424),'mutations':[_0x317654]};}[_0x3a7514(0x217)](_0x14efd1){const _0x2deb16=_0x3a7514,{unitID:_0x45ac26}=_0x14efd1,{history:_0x4fb0b,collaboration:_0x1265b4}=this['_docStateChangeManagerService'][_0x2deb16(0x22d)](_0x45ac26);if(_0x4fb0b[_0x2deb16(0x1fb)]===0x0&&_0x1265b4['length']===0x0)return;const _0x15b944=[],_0x1ddaef=[];let _0x1ded46=_0x3c0adb[_0x2deb16(0x364)](_0x14efd1['mutations'][0x0]),_0x1e55ce=_0x3c0adb['deepClone'](_0x14efd1['mutations'][0x0]);for(let _0x3e2520=_0x4fb0b[_0x2deb16(0x1fb)]-0x1;_0x3e2520>=0x0;_0x3e2520--){const _0xbcfa12={'id':_0x2deb16(0x3ce),'params':{'unitId':_0x4fb0b[_0x3e2520][_0x2deb16(0x3dd)],..._0x4fb0b[_0x3e2520][_0x2deb16(0x349)]}},_0x1cbf78={'id':_0x2deb16(0x3ce),'params':{'unitId':_0x4fb0b[_0x3e2520][_0x2deb16(0x3dd)],..._0x4fb0b[_0x3e2520][_0x2deb16(0x202)]}},_0xa0ee24=this[_0x2deb16(0x3d9)]['transformMutation'](_0x1ded46,_0xbcfa12,!0x1),_0x4a92fc=this['_transformService']['transformMutation'](_0x1e55ce,_0x1cbf78,!0x1);if(_0x37a0c2(_0xa0ee24))throw _0xa0ee24[_0x2deb16(0x331)];if(_0x37a0c2(_0x4a92fc))throw _0x4a92fc['error'];_0x15b944['unshift']({..._0x4fb0b[_0x3e2520],'undoState':_0xa0ee24[_0x2deb16(0x247)][_0x2deb16(0x389)],'redoState':_0x4a92fc[_0x2deb16(0x247)][_0x2deb16(0x389)]}),_0x1ded46=_0xa0ee24[_0x2deb16(0x20a)],_0x1e55ce=_0x4a92fc[_0x2deb16(0x20a)];}_0x1ded46=_0x3c0adb[_0x2deb16(0x364)](_0x14efd1['mutations'][0x0]),_0x1e55ce=_0x3c0adb['deepClone'](_0x14efd1['mutations'][0x0]);for(let _0x3f07f5=_0x1265b4[_0x2deb16(0x1fb)]-0x1;_0x3f07f5>=0x0;_0x3f07f5--){const _0x2c2a60={'id':_0x2deb16(0x3ce),'params':{'unitId':_0x1265b4[_0x3f07f5][_0x2deb16(0x3dd)],..._0x1265b4[_0x3f07f5][_0x2deb16(0x349)]}},_0x3639b4={'id':_0x2deb16(0x3ce),'params':{'unitId':_0x1265b4[_0x3f07f5][_0x2deb16(0x3dd)],..._0x1265b4[_0x3f07f5][_0x2deb16(0x202)]}},_0x1d65e0=this[_0x2deb16(0x3d9)][_0x2deb16(0x328)](_0x1ded46,_0x2c2a60,!0x1),_0x487e0c=this['_transformService'][_0x2deb16(0x328)](_0x1e55ce,_0x3639b4,!0x1);if(_0x37a0c2(_0x1d65e0))throw _0x1d65e0[_0x2deb16(0x331)];if(_0x37a0c2(_0x487e0c))throw _0x487e0c[_0x2deb16(0x331)];_0x1ddaef[_0x2deb16(0x2ba)]({..._0x1265b4[_0x3f07f5],'undoState':_0x1d65e0['m2Prime'][_0x2deb16(0x389)],'redoState':_0x487e0c[_0x2deb16(0x247)][_0x2deb16(0x389)]}),_0x1ded46=_0x1d65e0[_0x2deb16(0x20a)],_0x1e55ce=_0x487e0c[_0x2deb16(0x20a)];}this['_docStateChangeManagerService'][_0x2deb16(0x372)](_0x45ac26,{'history':_0x15b944,'collaboration':_0x1ddaef});}};re=nn([Ce(0x0,_0x3730bb(_0x51462b)),Ce(0x1,_0x432c53),Ce(0x2,_0x3730bb(_0x1bff1b))],re);var rn=Object['getOwnPropertyDescriptor'],on=(_0x1378e6,_0x15a1df,_0x38135a,_0x3657e6)=>{const _0x3d6505=_0x3a7514;for(var _0x32f18b=_0x3657e6>0x1?void 0x0:_0x3657e6?rn(_0x15a1df,_0x38135a):_0x15a1df,_0x26866c=_0x1378e6[_0x3d6505(0x1fb)]-0x1,_0x35ef4b;_0x26866c>=0x0;_0x26866c--)(_0x35ef4b=_0x1378e6[_0x26866c])&&(_0x32f18b=_0x35ef4b(_0x32f18b)||_0x32f18b);return _0x32f18b;},tt=(_0x3b53cf,_0x7707b3)=>(_0x3e4d25,_0x36f6da)=>_0x7707b3(_0x3e4d25,_0x36f6da,_0x3b53cf);let oe=class{constructor(_0x44ae20,_0xe90bf0){const _0x2b35c3=_0x3a7514;this[_0x2b35c3(0x3ac)]=_0x44ae20,this['_transformService']=_0xe90bf0;}['transformSelections'](_0x361277){const _0x519dc0=_0x3a7514;var _0x413122;const _0x5c39b6=this[_0x519dc0(0x3ac)][_0x519dc0(0x357)](_0x4ff0e8),_0x5cb313=(_0x413122=_0x5c39b6['getDocRanges']())!=null?_0x413122:[];if(_0x5cb313[_0x519dc0(0x1fb)]===0x0)return;const _0x975ce8=_0x361277['unitID'],_0x36791a=[{'id':_0x519dc0(0x3ce),'params':{'unitId':_0x975ce8,'actions':null,'textRanges':_0x5cb313}}],_0x19d79a=this[_0x519dc0(0x3d9)]['transformMutationsWithChangeset'](_0x361277,_0x36791a);if(!_0x42ebc2(_0x19d79a))throw _0x19d79a[_0x519dc0(0x331)];const _0x356373=_0x19d79a[_0x519dc0(0x247)][0x0][_0x519dc0(0x389)][_0x519dc0(0x2ab)];Array[_0x519dc0(0x31e)](_0x356373)&&_0x356373[_0x519dc0(0x1fb)]&&_0x5c39b6[_0x519dc0(0x356)](_0x356373,{'unitId':_0x975ce8,'subUnitId':_0x975ce8},!0x1);}};oe=on([tt(0x0,_0x3730bb(_0x51462b)),tt(0x1,_0x432c53)],oe);var an=Object[_0x3a7514(0x362)],cn=(_0x1c34d6,_0x3cba14,_0x2474a3,_0x36564c)=>{const _0x1a3b33=_0x3a7514;for(var _0x4e5068=_0x36564c>0x1?void 0x0:_0x36564c?an(_0x3cba14,_0x2474a3):_0x3cba14,_0xe9a41c=_0x1c34d6[_0x1a3b33(0x1fb)]-0x1,_0x2f7185;_0xe9a41c>=0x0;_0xe9a41c--)(_0x2f7185=_0x1c34d6[_0xe9a41c])&&(_0x4e5068=_0x2f7185(_0x4e5068)||_0x4e5068);return _0x4e5068;},U=(_0x2dd23e,_0x10aec2)=>(_0x5e8c8f,_0x865e4f)=>_0x10aec2(_0x5e8c8f,_0x865e4f,_0x2dd23e);let ae=class extends _0x31943f{constructor(_0x2dd3de,_0x97c949,_0x136b91,_0x31a813,_0x1fb37b,_0x110c65,_0x4249f2,_0x53f9b8){const _0x246626=_0x3a7514;super(),_(this,_0x246626(0x24d),new _0xd53c5a(_0x442c06[_0x246626(0x31c)])),(this['_docStateChangeManagerService']=_0x2dd3de,this[_0x246626(0x358)]=_0x97c949,this[_0x246626(0x298)]=_0x136b91,this['_docTransformStateCacheService']=_0x31a813,this[_0x246626(0x232)]=_0x1fb37b,this['_docSyncEditingCollabCursorService']=_0x110c65,this[_0x246626(0x37b)]=_0x4249f2,this[_0x246626(0x286)]=_0x53f9b8,this[_0x246626(0x2da)]());}['_initEntityListener'](){const _0x2dc697=_0x3a7514;this[_0x2dc697(0x21f)](this[_0x2dc697(0x358)][_0x2dc697(0x1f7)][_0x2dc697(0x3d5)](_0x414b99=>{const _0x15be10=_0x2dc697,_0x120b1a=this['_docStateChangeManagerService'][_0x15be10(0x35e)]['subscribe'](_0x440f77=>{const _0x10d572=_0x15be10;if(_0x440f77==null)return;const {unitId:_0x5124a5,redoState:_0x972e6f,commandId:_0x228f1e}=_0x440f77;if(_0x5124a5!==_0x414b99[_0x10d572(0x200)])return;const _0x4339b9={'id':_0x228f1e,'type':_0x1cdaca[_0x10d572(0x3b4)],'params':{'unitId':_0x5124a5,'actions':_0x972e6f[_0x10d572(0x3a0)],'textRanges':null}};_0x414b99[_0x10d572(0x2bd)](_0x4339b9);});if(_0x414b99['disposeWithMe'](_0x120b1a),_0x414b99 instanceof _0x27ea85){const _0x338c65={'onTransformIME':_0x28878e=>this[_0x15be10(0x298)]['transformIMECache'](_0x28878e),'onTransformState':_0x67c39c=>this['_docTransformStateCacheService'][_0x15be10(0x230)](_0x67c39c),'onTransformSelections':_0x1e071d=>this[_0x15be10(0x232)][_0x15be10(0x1fa)](_0x1e071d),'onSyncEditingCollabCursor':_0x4e7113=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x4e7113),'onTransformRemoteChangesetByIMECache':_0x2d02e8=>this[_0x15be10(0x298)][_0x15be10(0x2a3)](_0x2d02e8),'onTransformRemoteChangesetByStateCache':_0x73079f=>this['_docTransformStateCacheService'][_0x15be10(0x2a3)](_0x73079f)};_0x414b99[_0x15be10(0x276)](_0x338c65);}}));}};ae=cn([U(0x0,_0x3730bb(_0x1bff1b)),U(0x1,_0x3730bb(_0x1da6a0)),U(0x2,_0x3730bb(ne)),U(0x3,_0x3730bb(re)),U(0x4,_0x3730bb(oe)),U(0x5,_0x3730bb(He)),U(0x6,_0x5a2737),U(0x7,_0x3730bb(_0x42b0cb))],ae);var ln=Object[_0x3a7514(0x362)],_n=(_0x1939ec,_0x3017b5,_0x1abb58,_0x8409ad)=>{const _0x5d5aae=_0x3a7514;for(var _0x45e58c=_0x8409ad>0x1?void 0x0:_0x8409ad?ln(_0x3017b5,_0x1abb58):_0x3017b5,_0x46aa82=_0x1939ec[_0x5d5aae(0x1fb)]-0x1,_0x317941;_0x46aa82>=0x0;_0x46aa82--)(_0x317941=_0x1939ec[_0x46aa82])&&(_0x45e58c=_0x317941(_0x45e58c)||_0x45e58c);return _0x45e58c;},Ee=(_0x569cd7,_0x32937a)=>(_0x5412fa,_0x55e756)=>_0x32937a(_0x5412fa,_0x55e756,_0x569cd7);let we=class extends _0x31943f{constructor(_0x3d41c6,_0x4b5840,_0x43441a){const _0x117f42=_0x3a7514;super(),_(this,_0x117f42(0x395),new Map()),_(this,_0x117f42(0x2f9),new Map()),_(this,_0x117f42(0x36d),!0x1),(this[_0x117f42(0x28a)]=_0x3d41c6,this[_0x117f42(0x3d1)]=_0x4b5840,this[_0x117f42(0x240)]=_0x43441a);}['disableLocalCache'](){const _0xf8fa75=_0x3a7514;this[_0xf8fa75(0x36d)]=!0x0;}[_0x3a7514(0x367)](){const _0x13f1c8=_0x3a7514;this[_0x13f1c8(0x36d)]=!0x1;}get[_0x3a7514(0x3ca)](){const _0x391953=_0x3a7514;return this[_0x391953(0x2f9)];}['dispose'](){const _0x1a0ff2=_0x3a7514;this[_0x1a0ff2(0x390)]()['then'](()=>super[_0x1a0ff2(0x2db)]());}async['loadOfflineData'](_0x1b0f6a){const _0x41e457=_0x3a7514;return this[_0x41e457(0x36d)]?null:this['_localStorageService']['getItem'](_0x5030f2(_0x1b0f6a));}async[_0x3a7514(0x374)](_0xdb7693,_0x386a6c){const _0x3e3ae3=_0x3a7514;return!!this[_0x3e3ae3(0x3d1)][_0x3e3ae3(0x24c)](_0xdb7693,_0x386a6c);}[_0x3a7514(0x329)](_0x137f2d,_0x5ee309,_0x134c7d,_0x4cd796){const _0xbf54ba=_0x3a7514,_0x3c538b=this['_revisionService'][_0xbf54ba(0x2ad)](_0x137f2d);this[_0xbf54ba(0x395)][_0xbf54ba(0x22a)](_0x137f2d,{'unitID':_0x137f2d,'type':_0x5ee309,'awaitingChangeset':_0x134c7d,'mutations':_0x4cd796,'rev':_0x3c538b}),this[_0xbf54ba(0x2f9)][_0xbf54ba(0x212)](_0x137f2d)||this['_scheduleSaving'](_0x137f2d);}[_0x3a7514(0x2cd)](_0x27fd1e){const _0xa6d48=_0x3a7514,_0x3f0595=this[_0xa6d48(0x20f)]();_0x3f0595===0x0?this[_0xa6d48(0x2ff)](_0x27fd1e):this['_saveTaskMap']['set'](_0x27fd1e,setTimeout(()=>this[_0xa6d48(0x2ff)](_0x27fd1e),_0x3f0595));}[_0x3a7514(0x20f)](){const _0x3b026a=_0x3a7514;var _0x5406ab;return(_0x5406ab=this['_configService'][_0x3b026a(0x351)](_0x3a222c))!=null?_0x5406ab:_0x33dc78;}[_0x3a7514(0x2ff)](_0x4bfa0b){const _0x303075=_0x3a7514,_0x4c4c40=this[_0x303075(0x2f9)][_0x303075(0x357)](_0x4bfa0b);return _0x4c4c40!==void 0x0&&window[_0x303075(0x21e)](_0x4c4c40),this['_localStorageService'][_0x303075(0x24c)](_0x5030f2(_0x4bfa0b),this['_cachedData'][_0x303075(0x357)](_0x4bfa0b))[_0x303075(0x370)](()=>this['_saveTaskMap']['delete'](_0x4bfa0b));}async[_0x3a7514(0x390)](){const _0x525a3a=_0x3a7514,_0xd96aad=[];this[_0x525a3a(0x2f9)][_0x525a3a(0x386)]((_0x554476,_0x497070)=>{const _0x18afaa=_0x525a3a;window['clearTimeout'](_0x554476),_0xd96aad[_0x18afaa(0x23d)](this[_0x18afaa(0x2ff)](_0x497070)[_0x18afaa(0x370)](()=>{const _0x5e8210=_0x18afaa;this[_0x5e8210(0x2f9)][_0x5e8210(0x2ce)](_0x497070);}));}),await Promise[_0x525a3a(0x2bb)](_0xd96aad);}};we=_n([Ee(0x0,_0x207b24),Ee(0x1,_0x5dcd9c),Ee(0x2,_0x3730bb(_0x47047d))],we);class hn extends _0x288cb0{constructor(){const _0x393739=_0x3a7514;super(),_(this,'urlChange$'),this[_0x393739(0x2b8)]=_0x4b8a4d(window,_0x393739(0x243))[_0x393739(0x239)](_0x108d38(this[_0x393739(0x3e6)]),_0x5b9311(0x1),_0x385ea5(void 0x0));}[_0x3a7514(0x3bc)](_0x457df4,_0x16b0d5,_0x434a37=!0x1){const _0x2244f7=_0x3a7514,_0x162afa=new URL(window[_0x2244f7(0x39d)]['href']);_0x162afa['searchParams'][_0x2244f7(0x22a)](_0x457df4,_0x16b0d5),_0x434a37?window[_0x2244f7(0x218)][_0x2244f7(0x220)]('','',_0x162afa[_0x2244f7(0x3a3)]()):window[_0x2244f7(0x218)][_0x2244f7(0x25b)]('','',_0x162afa[_0x2244f7(0x3a3)]());}[_0x3a7514(0x31d)](_0x206a70,_0x3e9ae5=!0x1){const _0x238e51=_0x3a7514,_0x5e9e80=new URL(window[_0x238e51(0x39d)][_0x238e51(0x3cc)]);_0x5e9e80[_0x238e51(0x3dc)]['delete'](_0x206a70),_0x3e9ae5?window[_0x238e51(0x218)][_0x238e51(0x220)]('','',_0x5e9e80[_0x238e51(0x3a3)]()):window[_0x238e51(0x218)][_0x238e51(0x25b)]('','',_0x5e9e80['toString']());}[_0x3a7514(0x2d8)](_0x57202c){const _0x17e5d1=_0x3a7514;var _0x4849bb;return(_0x4849bb=new URL(window['location'][_0x17e5d1(0x3cc)])[_0x17e5d1(0x3dc)][_0x17e5d1(0x357)](_0x57202c))!=null?_0x4849bb:void 0x0;}}var un=Object[_0x3a7514(0x387)],dn=Object[_0x3a7514(0x362)],fn=(_0x1ef857,_0x1a7f80,_0x404047)=>_0x1a7f80 in _0x1ef857?un(_0x1ef857,_0x1a7f80,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x404047}):_0x1ef857[_0x1a7f80]=_0x404047,Sn=(_0x51b838,_0x710be6,_0x1f3083,_0x3dbcb4)=>{const _0x524369=_0x3a7514;for(var _0x5eecec=_0x3dbcb4>0x1?void 0x0:_0x3dbcb4?dn(_0x710be6,_0x1f3083):_0x710be6,_0x251876=_0x51b838[_0x524369(0x1fb)]-0x1,_0x1accc9;_0x251876>=0x0;_0x251876--)(_0x1accc9=_0x51b838[_0x251876])&&(_0x5eecec=_0x1accc9(_0x5eecec)||_0x5eecec);return _0x5eecec;},Oe=(_0x7814fd,_0x4dcf9f)=>(_0x44f750,_0x111d70)=>_0x4dcf9f(_0x44f750,_0x111d70,_0x7814fd),mn=(_0x3c1fb8,_0x31cfab,_0x3cf768)=>fn(_0x3c1fb8,_0x31cfab+'',_0x3cf768);const In='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ae=class extends _0x28ed19{constructor(_0xc94445=et,_0x4d1ee0,_0x4bd78a,_0x24821c){const _0x42d7f6=_0x3a7514;super(),this['_config']=_0xc94445,this['_renderManagerService']=_0x4d1ee0,this['_injector']=_0x4bd78a,this[_0x42d7f6(0x28a)]=_0x24821c;const {..._0x1d6739}=_0x2da3a3({},et,this[_0x42d7f6(0x268)]);this[_0x42d7f6(0x28a)][_0x42d7f6(0x309)](Zi,_0x1d6739);}[_0x3a7514(0x344)](){const _0x25b94d=_0x3a7514;this[_0x25b94d(0x33e)](),this[_0x25b94d(0x288)]();}[_0x3a7514(0x3c1)](){const _0x333617=_0x3a7514;this[_0x333617(0x2f1)]();}['_registerDependencies'](){const _0x146a92=_0x3a7514;var _0x134ac8;const _0x5b2efb=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x31fd50,{'useClass':_0x9d5066}],[_0x3d5a5c,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x4faf42(this['_injector'],_0x2ba138(_0x5b2efb,(_0x134ac8=this['_config'])==null?void 0x0:_0x134ac8[_0x146a92(0x325)]));}[_0x3a7514(0x2f1)](){const _0x24d0b7=_0x3a7514;this[_0x24d0b7(0x21f)](this[_0x24d0b7(0x34f)][_0x24d0b7(0x2f0)](_0x430a21['UNIVER_DOC'],[Le])),this['disposeWithMe'](this[_0x24d0b7(0x34f)][_0x24d0b7(0x2f0)](_0x430a21[_0x24d0b7(0x3e3)],[Pe]));}['_initDependencies'](){const _0x253a27=_0x3a7514;_0x965508(this[_0x253a27(0x3ac)],[[H],[te],[ae],[se],[ie]]);}};function _0x5a06(_0x36c37f,_0x5a8a55){const _0x24d1ac=_0x24d1();return _0x5a06=function(_0x5a066b,_0x29b40b){_0x5a066b=_0x5a066b-0x1f3;let _0x4c2733=_0x24d1ac[_0x5a066b];return _0x4c2733;},_0x5a06(_0x36c37f,_0x5a8a55);}mn(Ae,_0x3a7514(0x2c2),In),Ae=Sn([_0x3733e8(_0x197a0f),Oe(0x1,_0x27ceaf),Oe(0x2,_0x3730bb(_0x51462b)),Oe(0x3,_0x207b24)],Ae);var gn=Object[_0x3a7514(0x362)],vn=(_0x437b5e,_0x113292,_0x236fa5,_0x30a0ae)=>{const _0x5d4f54=_0x3a7514;for(var _0x2fd0cd=_0x30a0ae>0x1?void 0x0:_0x30a0ae?gn(_0x113292,_0x236fa5):_0x113292,_0x186751=_0x437b5e[_0x5d4f54(0x1fb)]-0x1,_0x492abe;_0x186751>=0x0;_0x186751--)(_0x492abe=_0x437b5e[_0x186751])&&(_0x2fd0cd=_0x492abe(_0x2fd0cd)||_0x2fd0cd);return _0x2fd0cd;},K=(_0xf8288,_0x16ea7e)=>(_0x224aef,_0x4ed21c)=>_0x16ea7e(_0x224aef,_0x4ed21c,_0xf8288);let st=class extends _0xf58428{constructor(_0x32351a,_0x3b91eb,_0x1ccff9,_0x25ab72,_0x314c95){super(_0x32351a,_0x3b91eb,_0x1ccff9,_0x25ab72,_0x314c95);}async[_0x3a7514(0x269)](_0x14d228){const _0x302edc=_0x3a7514,_0xa21c9d=await this[_0x302edc(0x234)](),_0x4090c4=this[_0x302edc(0x38d)](_0x14d228,_0xa21c9d);return this[_0x302edc(0x25d)](_0x4090c4);}[_0x3a7514(0x38d)](_0x29e839,_0x3b6913){const _0x295fed=_0x3a7514,_0x1dcc16=typeof window>'u'?new URL(_0x29e839):new URL(_0x29e839,window[_0x295fed(0x39d)][_0x295fed(0x228)]);_0x1dcc16[_0x295fed(0x3dc)][_0x295fed(0x22a)](_0x295fed(0x399),_0x3b6913);const _0x15df9b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x295fed(0x39d)]['search']);return _0x15df9b[_0x295fed(0x357)](_0x295fed(0x2dd))&&_0x1dcc16[_0x295fed(0x3dc)]['set'](_0x295fed(0x2dd),_0x15df9b[_0x295fed(0x357)](_0x295fed(0x2dd))),_0x1dcc16[_0x295fed(0x3a3)]();}async['_getSessionTicket'](){const _0x148a37=_0x3a7514;var _0x21dbc6,_0x5298c7,_0xe11585;const _0x508b15=this[_0x148a37(0x28a)][_0x148a37(0x351)](_0x5ee5dd),_0x365e68=(_0x21dbc6=_0x508b15==null?void 0x0:_0x508b15[_0x148a37(0x343)])!=null?_0x21dbc6:_0x345c81;return(_0xe11585=(_0x5298c7=(await this[_0x148a37(0x2b3)][_0x148a37(0x357)](_0x365e68,{'headers':{'Content-Type':_0x148a37(0x263)}}))[_0x148a37(0x255)])==null?void 0x0:_0x5298c7[_0x148a37(0x29e)])!=null?_0xe11585:'';}};st=vn([K(0x0,_0x3730bb(_0x51462b)),K(0x1,_0x3730bb(_0x19ddc4)),K(0x2,_0x207b24),K(0x3,_0x430541),K(0x4,_0x18558b)],st);const it=0x7530,nt=_0x3a7514(0x3a5);class Fn extends _0x31943f{constructor(){const _0x3d0eda=_0x3a7514;super(),_(this,_0x3d0eda(0x3df),_0x3c4fd1()),_(this,_0x3d0eda(0x2e5),new Set()),_(this,_0x3d0eda(0x34e),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x3d0eda(0x33d),new Map()),_(this,'_unitStatus',new Map()),this[_0x3d0eda(0x324)]();}[_0x3a7514(0x2db)](){const _0x228979=_0x3a7514;super[_0x228979(0x2db)](),this[_0x228979(0x33d)][_0x228979(0x386)]((_0x250b38,_0xd4f27f)=>this['_removeClearOtherTimer'](_0xd4f27f)),this['_heartbeatTimer']&&window[_0x228979(0x249)](this[_0x228979(0x2e4)]);}[_0x3a7514(0x3d4)](_0x2f5b8c){return this['_ensureSubject'](_0x2f5b8c)['pipe'](_0x2420c4());}[_0x3a7514(0x215)](_0x1179d2){const _0x469a3c=_0x3a7514;this[_0x469a3c(0x2e5)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x469a3c(0x2e5)]['add'](_0x1179d2),this['_send']({'type':0x0,'memberID':this[_0x469a3c(0x3df)],'unitIDs':[_0x1179d2],'isForwarded':!0x1});}['disposeUnit'](_0x42a57b){const _0x102bda=_0x3a7514;this[_0x102bda(0x2e5)][_0x102bda(0x2ce)](_0x42a57b),this[_0x102bda(0x2e5)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x102bda(0x249)](this[_0x102bda(0x2e4)]);}[_0x3a7514(0x324)](){const _0x21a993=_0x3a7514;this['disposeWithMe'](_0x31fc53(_0x4b8a4d(window,'storage')[_0x21a993(0x3d5)](_0x501e8b=>{const _0x27ff91=_0x21a993;if(_0x501e8b['key']!==nt||!_0x501e8b[_0x27ff91(0x3a1)])return;const _0x4ed9e3=JSON[_0x27ff91(0x39c)](_0x501e8b['newValue']);this[_0x27ff91(0x369)](_0x4ed9e3);}))),window[_0x21a993(0x252)](_0x21a993(0x201),()=>this[_0x21a993(0x37d)]({'type':0x1,'memberID':this[_0x21a993(0x3df)],'unitIDs':Array[_0x21a993(0x3ba)](this[_0x21a993(0x2e5)])}));}[_0x3a7514(0x369)](_0xad54d5){const _0x3e434c=_0x3a7514;switch(_0xad54d5[_0x3e434c(0x3d2)]){case 0x0:this[_0x3e434c(0x38f)](_0xad54d5);break;case 0x1:this[_0x3e434c(0x2a5)](_0xad54d5);break;case 0x2:this[_0x3e434c(0x3b1)](_0xad54d5);break;}}['_handleJoinEvent'](_0x6a9307){const _0x2c44af=_0x3a7514,{unitIDs:_0x11e54b,memberID:_0x34080b,isForwarded:_0x5c2a69}=_0x6a9307;_0x11e54b[_0x2c44af(0x386)](_0x4ec54f=>{const _0x2ef8c3=_0x2c44af;if(!_0x5c2a69&&this[_0x2ef8c3(0x34e)][_0x2ef8c3(0x212)](_0x4ec54f)&&this[_0x2ef8c3(0x36b)](_0x4ec54f)[_0x2ef8c3(0x21a)](_0xf18f59['OTHER_CLIENTS_EDITING']),!this[_0x2ef8c3(0x34e)][_0x2ef8c3(0x212)](_0x4ec54f)||!this[_0x2ef8c3(0x34e)]['get'](_0x4ec54f)[_0x2ef8c3(0x212)](_0x34080b)){const _0x21c4e1=this[_0x2ef8c3(0x34e)][_0x2ef8c3(0x357)](_0x4ec54f)||new Set();_0x21c4e1[_0x2ef8c3(0x334)](_0x34080b),this[_0x2ef8c3(0x34e)][_0x2ef8c3(0x22a)](_0x4ec54f,_0x21c4e1),this[_0x2ef8c3(0x2d4)](_0x34080b);}}),_0x5c2a69||this[_0x2c44af(0x37d)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2c44af(0x2e5)]],'isForwarded':!0x0});}[_0x3a7514(0x2d4)](_0x121c80){const _0xaf9d29=_0x3a7514;this['_removeClearOtherTimer'](_0x121c80);const _0x20249f=window[_0xaf9d29(0x27e)](()=>{const _0x4899d4=_0xaf9d29;this[_0x4899d4(0x34e)][_0x4899d4(0x386)](_0x70e37d=>{const _0x478375=_0x4899d4;_0x70e37d[_0x478375(0x2ce)](_0x121c80);});},it*0x2);this[_0xaf9d29(0x33d)][_0xaf9d29(0x22a)](_0x121c80,_0x20249f);}[_0x3a7514(0x3db)](_0x29ef7f){const _0x5ce6e4=_0x3a7514;if(this[_0x5ce6e4(0x33d)][_0x5ce6e4(0x212)](_0x29ef7f)){const _0x3d90dd=this[_0x5ce6e4(0x33d)][_0x5ce6e4(0x357)](_0x29ef7f);_0x3d90dd&&window['clearTimeout'](_0x3d90dd),this[_0x5ce6e4(0x33d)][_0x5ce6e4(0x22a)](_0x29ef7f,null);}}[_0x3a7514(0x2a5)](_0x30d0b5){const {memberID:_0x23c07f,unitIDs:_0x5451ba}=_0x30d0b5;_0x5451ba['forEach'](_0x3f80e4=>{const _0x599fca=_0x5a06;var _0x4525e4;const _0x35ea9c=this['_unitOnClients']['get'](_0x3f80e4);_0x35ea9c&&(_0x35ea9c[_0x599fca(0x2ce)](_0x23c07f),(_0x4525e4=this[_0x599fca(0x36b)](_0x3f80e4))==null||_0x4525e4[_0x599fca(0x21a)](_0x35ea9c[_0x599fca(0x3c6)]===0x0?_0xf18f59[_0x599fca(0x366)]:_0xf18f59[_0x599fca(0x37c)]));}),this['_removeClearOtherTimer'](_0x23c07f);}[_0x3a7514(0x3b1)](_0x25adc5){this['_scheduleClearOtherTimer'](_0x25adc5['memberID']);}[_0x3a7514(0x37d)](_0x5d1be6){const _0x8c1880=_0x3a7514;localStorage[_0x8c1880(0x24c)](nt,JSON[_0x8c1880(0x297)](_0x5d1be6));}[_0x3a7514(0x3b9)](){const _0x31686d=_0x3a7514;this[_0x31686d(0x2e4)]=window[_0x31686d(0x23b)](()=>{const _0x4b7c20=_0x31686d;this[_0x4b7c20(0x37d)]({'type':0x2,'memberID':this['_id']});},it);}['_ensureSubject'](_0xad4527){const _0x337ec1=_0x3a7514;return this['_unitStatus']['has'](_0xad4527)||this['_unitStatus'][_0x337ec1(0x22a)](_0xad4527,new _0xd53c5a(_0xf18f59[_0x337ec1(0x366)])),this[_0x337ec1(0x3f1)][_0x337ec1(0x357)](_0xad4527);}}var Mt=(_0x12a533=>(_0x12a533[_0x12a533[_0x3a7514(0x2d3)]=0x0]=_0x3a7514(0x2d3),_0x12a533[_0x12a533['OK']=0x1]='OK',_0x12a533[_0x12a533[_0x3a7514(0x22c)]=0x2]=_0x3a7514(0x22c),_0x12a533[_0x12a533['PERMISSION_DENIED']=0x3]=_0x3a7514(0x29a),_0x12a533[_0x12a533[_0x3a7514(0x36a)]=0x4]=_0x3a7514(0x36a),_0x12a533[_0x12a533['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x12a533[_0x12a533[_0x3a7514(0x320)]=0x6]=_0x3a7514(0x320),_0x12a533[_0x12a533[_0x3a7514(0x35c)]=0x7]='INVALID_ARGUMENT',_0x12a533[_0x12a533[_0x3a7514(0x206)]=0x8]=_0x3a7514(0x206),_0x12a533[_0x12a533[_0x3a7514(0x2df)]=0x9]=_0x3a7514(0x2df),_0x12a533[_0x12a533[_0x3a7514(0x3a2)]=0xa]='LOGIN_FAILED',_0x12a533[_0x12a533['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x3a7514(0x274),_0x12a533[_0x12a533[_0x3a7514(0x359)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x12a533[_0x12a533[_0x3a7514(0x391)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x12a533[_0x12a533[_0x3a7514(0x32e)]=0xe]=_0x3a7514(0x32e),_0x12a533[_0x12a533[_0x3a7514(0x242)]=0x1389]=_0x3a7514(0x242),_0x12a533[_0x12a533[_0x3a7514(0x223)]=0x1771]=_0x3a7514(0x223),_0x12a533[_0x12a533[_0x3a7514(0x27d)]=0x1772]=_0x3a7514(0x27d),_0x12a533[_0x12a533[_0x3a7514(0x2d6)]=0x1773]=_0x3a7514(0x2d6),_0x12a533[_0x12a533['APPLY_REJECT']=0x1b59]=_0x3a7514(0x392),_0x12a533[_0x12a533[_0x3a7514(0x352)]=0x1b5a]=_0x3a7514(0x352),_0x12a533[_0x12a533['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x12a533[_0x12a533['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3a7514(0x23f),_0x12a533[_0x12a533[_0x3a7514(0x314)]=0x1b5d]=_0x3a7514(0x314),_0x12a533[_0x12a533[_0x3a7514(0x2e6)]=0x1f41]=_0x3a7514(0x2e6),_0x12a533[_0x12a533[_0x3a7514(0x205)]=0x2329]=_0x3a7514(0x205),_0x12a533[_0x12a533[_0x3a7514(0x20c)]=0x232a]=_0x3a7514(0x20c),_0x12a533[_0x12a533[_0x3a7514(0x38b)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x12a533[_0x12a533[_0x3a7514(0x33a)]=0x232c]=_0x3a7514(0x33a),_0x12a533[_0x12a533['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3a7514(0x24f),_0x12a533[_0x12a533['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x12a533[_0x12a533['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3a7514(0x3a4),_0x12a533[_0x12a533['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3a7514(0x3b5),_0x12a533[_0x12a533['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x3a7514(0x3d8),_0x12a533[_0x12a533[_0x3a7514(0x278)]=0x271a]=_0x3a7514(0x278),_0x12a533[_0x12a533[_0x3a7514(0x31b)]=0x271b]=_0x3a7514(0x31b),_0x12a533[_0x12a533[_0x3a7514(0x376)]=0x271c]=_0x3a7514(0x376),_0x12a533[_0x12a533[_0x3a7514(0x30e)]=0x271d]=_0x3a7514(0x30e),_0x12a533[_0x12a533['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x3a7514(0x361),_0x12a533[_0x12a533['YUUMI_AI_RUN_FAILED']=0x271f]=_0x3a7514(0x2ef),_0x12a533[_0x12a533[_0x3a7514(0x273)]=0x2720]=_0x3a7514(0x273),_0x12a533[_0x12a533[_0x3a7514(0x3d0)]=0x2af9]=_0x3a7514(0x3d0),_0x12a533[_0x12a533[_0x3a7514(0x341)]=0x2ee1]=_0x3a7514(0x341),_0x12a533[_0x12a533[_0x3a7514(0x1f8)]=0x2ee2]=_0x3a7514(0x1f8),_0x12a533[_0x12a533[_0x3a7514(0x2fd)]=0x2ee3]=_0x3a7514(0x2fd),_0x12a533[_0x12a533[_0x3a7514(0x29c)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x12a533[_0x12a533[_0x3a7514(0x22e)]=0x2ee5]=_0x3a7514(0x22e),_0x12a533[_0x12a533[_0x3a7514(0x2bf)]=0x32c9]=_0x3a7514(0x2bf),_0x12a533[_0x12a533[_0x3a7514(0x24e)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x12a533[_0x12a533['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x3a7514(0x25f),_0x12a533[_0x12a533['UNRECOGNIZED']=-0x1]=_0x3a7514(0x2cb),_0x12a533))(Mt||{}),pn=Object['getOwnPropertyDescriptor'],Cn=(_0x291a3b,_0x1da53b,_0x542d0f,_0x56b19)=>{const _0x32a20a=_0x3a7514;for(var _0x148ef9=_0x56b19>0x1?void 0x0:_0x56b19?pn(_0x1da53b,_0x542d0f):_0x1da53b,_0xb146f9=_0x291a3b[_0x32a20a(0x1fb)]-0x1,_0x33bd48;_0xb146f9>=0x0;_0xb146f9--)(_0x33bd48=_0x291a3b[_0xb146f9])&&(_0x148ef9=_0x33bd48(_0x148ef9)||_0x148ef9);return _0x148ef9;},be=(_0x23dda4,_0x2763bb)=>(_0x25c7d6,_0x5ca256)=>_0x2763bb(_0x25c7d6,_0x5ca256,_0x23dda4);let rt=class extends _0x31943f{constructor(_0x48fbf8,_0x39cc83,_0x236393){const _0x15b984=_0x3a7514;super(),this['_instanceService']=_0x48fbf8,this[_0x15b984(0x2b3)]=_0x39cc83,this[_0x15b984(0x28a)]=_0x236393;}async['runOnServer'](_0x5d9ae9,_0x4d6159,_0x2721b1,..._0x40474f){const _0x3f69a9=_0x3a7514;var _0x13cd58,_0x15d998,_0x16fe62,_0x24df3f;const _0x31f454=this[_0x3f69a9(0x318)]['getFocusedUnit']();if(!_0x31f454)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x300cbc=((_0x13cd58=this[_0x3f69a9(0x28a)]['getConfig'](_0xa36351))!=null?_0x13cd58:_0x31a5ec)+'/'+_0x5d9ae9+_0x3f69a9(0x310)+_0x4d6159,_0x4b9b02=new URL(window[_0x3f69a9(0x39d)][_0x3f69a9(0x3cc)]),_0x123ad8={'scriptId':_0x5d9ae9,'runId':(_0x15d998=_0x4b9b02[_0x3f69a9(0x3dc)][_0x3f69a9(0x357)](_0x3f69a9(0x2dd)))!=null?_0x15d998:'','function':_0x4d6159,'unitId':_0x31f454[_0x3f69a9(0x2fc)](),'argsOfFunction':JSON['stringify'](_0x40474f),'invokeId':(_0x16fe62=_0x2721b1[_0x3f69a9(0x3c4)])!=null?_0x16fe62:'','executionId':(_0x24df3f=_0x2721b1[_0x3f69a9(0x330)])!=null?_0x24df3f:''};try{const _0x2e862f=await this[_0x3f69a9(0x2b3)][_0x3f69a9(0x253)](_0x300cbc,{'body':_0x123ad8});return _0x2e862f[_0x3f69a9(0x255)][_0x3f69a9(0x331)]&&_0x2e862f[_0x3f69a9(0x255)]['error']['code']!==Mt['OK']?_0x3f69a9(0x304):_0x2e862f['body'][_0x3f69a9(0x28e)];}catch{return _0x3f69a9(0x304);}}};rt=Cn([be(0x0,_0x2470f9),be(0x1,_0x3730bb(_0x19ddc4)),be(0x2,_0x207b24)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Wi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
1
+ const _0x539489=_0x43b9;(function(_0x5df73e,_0xb64c12){const _0x30a0a2=_0x43b9,_0xd22692=_0x5df73e();while(!![]){try{const _0x49432f=parseInt(_0x30a0a2(0x257))/0x1*(parseInt(_0x30a0a2(0x270))/0x2)+-parseInt(_0x30a0a2(0x2df))/0x3*(parseInt(_0x30a0a2(0x1da))/0x4)+parseInt(_0x30a0a2(0x159))/0x5+-parseInt(_0x30a0a2(0x26d))/0x6*(parseInt(_0x30a0a2(0x23f))/0x7)+parseInt(_0x30a0a2(0x1a3))/0x8*(-parseInt(_0x30a0a2(0x258))/0x9)+-parseInt(_0x30a0a2(0x20e))/0xa*(-parseInt(_0x30a0a2(0x1ce))/0xb)+parseInt(_0x30a0a2(0x141))/0xc;if(_0x49432f===_0xb64c12)break;else _0xd22692['push'](_0xd22692['shift']());}catch(_0x444b11){_0xd22692['push'](_0xd22692['shift']());}}}(_0x1a96,0x72d2b));var $t=Object[_0x539489(0x167)],xt=(_0x34d903,_0x2522ca,_0x5f2b9f)=>_0x2522ca in _0x34d903?$t(_0x34d903,_0x2522ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f2b9f}):_0x34d903[_0x2522ca]=_0x5f2b9f,_=(_0x511c96,_0x54571e,_0x37e9bc)=>xt(_0x511c96,typeof _0x54571e!=_0x539489(0x102)?_0x54571e+'':_0x54571e,_0x37e9bc);import{MemberService as _0x3b5672,SessionStatus as _0x44d540,CollaborationSessionService as _0x36a3b7,CollaborationStatus as _0x3dcbc7,CollaborationController as _0x45c5a2,ILocalCacheService as _0xdadcec,CollaborationUIEventService as _0x1c2dfc,CollaborationUIEventId as _0xb3869,DataLoaderService as _0x4c774b,DocCollaborationEntity as _0x35c1b0,getLocalCacheKey as _0xef3755,LOCAL_CACHE_INTERVAL as _0x48bc61,LOCAL_CACHE_INTERVAL_KEY as _0x399f20,UniverCollaborationClientPlugin as _0x9d653a,CollaborationSocketService as _0x597962,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e3d70,DEFAULT_WS_SESSION_TICKET_URL as _0x4428cc,UnitStatus as _0x4ec984,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x392547,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x43b7ad}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x31cb63,Disposable as _0x31f0f7,DOC_RANGE_TYPE as _0x3e2cb0,Inject as _0x59cc1b,Injector as _0x3916b4,IUniverInstanceService as _0x15d220,ICommandService as _0xb1c3d2,debounce as _0x4c2ea0,Rectangle as _0x344f5c,DisposableCollection as _0xd09b58,toDisposable as _0x39683d,UniverInstanceType as _0x92e40,Tools as _0x1f28b5,COLORS as _0x464ea5,ColorKit as _0x425e6c,ThemeService as _0x2eb6ee,fromEventSubject as _0x382f7d,LocaleService as _0x372382,createIdentifier as _0x2757e0,ILogService as _0x48de10,Optional as _0x1a5be5,Workbook as _0x636a9f,CommandType as _0x2c1b06,IConfigService as _0x37b078,ILocalStorageService as _0x3d0aff,DependentOn as _0xa0e987,Plugin as _0x22d501,merge as _0x58e399,registerDependencies as _0x583ca0,mergeOverrideWithDependencies as _0x5207de,touchDependencies as _0x1a8049,generateRandomId as _0x485cd4}from'@univerjs/core';import{Shape as _0x2deb42,Rect as _0x569216,getColor as _0x109233,RegularPolygon as _0x2355a9,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1403a6,Vector2 as _0x331f32,SHEET_VIEWPORT_KEY as _0x1496db,IRenderManagerService as _0x5ea5b2}from'@univerjs/engine-render';import{ISocketService as _0x24ff09,WebSocketService as _0x4de0a1,HTTPService as _0x397b62}from'@univerjs/network';import{IDocClipboardService as _0x2cc71e,NodePositionConvertToCursor as _0xa22b7,NodePositionConvertToRectRange as _0x5c59a2,TEXT_RANGE_LAYER_INDEX as _0x2284d3,SetDocZoomRatioOperation as _0x24f7b8,DocIMEInputManagerService as _0x243f23,DocStateChangeManagerService as _0x1663ff}from'@univerjs/docs-ui';import{IImageIoService as _0x31024a}from'@univerjs/drawing';import{BehaviorSubject as _0x5ae23c,debounceTime as _0x213d92,takeUntil as _0x207bbb,Subject as _0x39134f,filter as _0x124671,switchMap as _0x12f195,merge as _0x1bb518,combineLatest as _0x294b69,of as _0x228a94,fromEvent as _0x592954,shareReplay as _0x4a2f25,mapTo as _0x2f9b22,distinctUntilChanged as _0x20545d}from'rxjs';import{ITransformService as _0x3a6923,CollaborationEvent as _0x3d94a5,isTransformMutationFailure as _0x5f580a,isTransformMutationsWithChangesetSuccess as _0x3f0206,RevisionService as _0x29566b,ISnapshotServerService as _0x58510c}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4e9b8e,RichTextEditingMutation as _0x4b2064,DocSelectionManagerService as _0xe486a6,DocSkeletonManagerService as _0x376632}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x123e28,serializeRangeWithSheet as _0x95a8b}from'@univerjs/engine-formula';import{RefRangeService as _0x257aca,SetSelectionsOperation as _0xb510d8,SheetsSelectionsService as _0x12f9e0,EffectRefRangId as _0x3e57f5,handleIRemoveRow as _0x5a3b8c,handleIRemoveCol as _0x74c188,handleMoveRange as _0x337154,handleInsertRow as _0x9ee46a,handleInsertRangeMoveRight as _0x24986e,handleInsertRangeMoveDown as _0x898337,handleInsertCol as _0x259b27,handleDeleteRangeMoveUp as _0xa0a76b,handleDeleteRangeMoveLeft as _0x262a45,runRefRangeMutations as _0x4c9e41,SetWorksheetActivateCommand as _0x384233}from'@univerjs/sheets';import{map as _0x18bc95,filter as _0x17c129,throttleTime as _0x172c1,takeUntil as _0x3ae316,switchMap as _0xee5a94}from'rxjs/operators';import{SheetSkeletonManagerService as _0x45b553,getCoordByCell as _0x2f0e65,getSheetObject as _0x190e63}from'@univerjs/sheets-ui';function _0x43b9(_0x33eeac,_0x1ce058){const _0x1a9648=_0x1a96();return _0x43b9=function(_0x43b993,_0xb6c776){_0x43b993=_0x43b993-0xff;let _0x42f6b0=_0x1a9648[_0x43b993];return _0x42f6b0;},_0x43b9(_0x33eeac,_0x1ce058);}import{jsx as _0x5edf3d,jsxs as _0x1e9110}from'react/jsx-runtime';import{useObservable as _0x56d175,useDependency as _0x5d8043,IUIPartsService as _0x5a28ae,BuiltInUIPart as _0x433118,connectInjector as _0x1a753a,IBeforeCloseService as _0x155316,IMessageService as _0x379090,INotificationService as _0x39bd0f}from'@univerjs/ui';import{Tooltip as _0x16db95,clsx as _0x4acf90,MessageType as _0x1de17e}from'@univerjs/design';import{forwardRef as _0x4b1ce3,useRef as _0x405e17,createElement as _0x2c83b0,useCallback as _0x119b65}from'react';import{IRemoteInstanceService as _0x5ac95b}from'@univerjs/rpc';var ci=Object[_0x539489(0x1c1)],li=(_0xb9de96,_0x43c74c,_0x1c4d3d,_0x289b03)=>{const _0x487945=_0x539489;for(var _0xd78eac=_0x289b03>0x1?void 0x0:_0x289b03?ci(_0x43c74c,_0x1c4d3d):_0x43c74c,_0x4c7c82=_0xb9de96[_0x487945(0x23d)]-0x1,_0x5e2cbf;_0x4c7c82>=0x0;_0x4c7c82--)(_0x5e2cbf=_0xb9de96[_0x4c7c82])&&(_0xd78eac=_0x5e2cbf(_0xd78eac)||_0xd78eac);return _0xd78eac;},Je=(_0x8b5ab5,_0x32b907)=>(_0x276604,_0x54561d)=>_0x32b907(_0x276604,_0x54561d,_0x8b5ab5);function _0x1a96(){const _0x2a2acc=['fillStyle','on-line-icon_clip0_910_349','_getSheetObject','Warning','_updateSubUnitFromURLParams','_themeService','_send','getSheetId','OTHER_CLIENTS_EDITING','setStateCache','beginPath','WECHAT_HAS_BEEN_BOUND','collabCursorState$','unsubscribe','redoState','cursorInfo$','url(#on-line-icon_clip0_910_349)','round','_initStatusComponent','_context','wsSessionTicketUrl','getUnhiddenWorksheets','moveTo','labelPosition','search','UniverIcon','displayName','YUUMI_CONNECTOR_URL_NOT_FOUND','[CollaborationDataLoaderController]','length','text','1435TNKaHd','setUndoRedoMutationParamsCache','getMergeData','setInterval','_range','focused$','whenReady','url(#$1','_commandService','body','enableLocalCache','APPLY_REVISION_CONFILICT','href','set','/run/','dispose','_setupBeforeClosingHandler','_docTransformIMECacheService','_transformService','LOGIN_FAILED','call','_handleEvent','univer-flex\x20univer-items-center','unload','16UuyuDu','7207236ECHIsW','urlChange$','entityInit$','addClipboardHook','path','_lastPointer','_syncEditingCollabCursorService','_sheetSkeletonManagerService','INVITE_CODE_HAS_BEEN_UES','_scheduleHeartbeat','setTimeout','_beforeCloseService','getColorFromTheme','setActiveRange','color','collabStatus.offline','CONFLICT','assign','getMemberID','Failed','_colorIndex','4584ZTFUzs','bottom','_scheduleClearOtherTimer','63372oJioKf','_cursorShapes','_init','event$','getUnitId','undoState','ONLINE','NO_OTHER_CLIENTS_EDITING','getTypeOfUnitAdded$','_scheduleSaving','registerBeforeClose','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','onPointerLeave$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','sessionTicket','_initCommandExecutedListener','_hovered','_getSessionTicket','entries','generateRandomId','sessionStatus$','code','children','_assignedColors','currentColor','triggerDblclick','UNAUTHENTICATED','show','toString','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','_unitOnClients','0\x200\x2016\x2016','subUnitId','fill','NOT_COLLAB','_session','SOCKET_FAILED','INTERNAL_ERROR','_revisionService','pluginName','LICENSE_IMPORT_SIZE_EXCEEDED','add','SYNCED','indexOf','saveTaskMap','column','find','_config','subscribeEvent','getVpScrollXYInfoByPosToVp','session.connection-failed','assignAColorForMemberID','m2Prime','className','collaboration-client-ui.config','defs','status$','stringify','_onCursorUpdate','m1Prime','unitID','collaboration.single-unit.warning','SUBMIT_CHANGESET_TIMEOUT','_unitStatus','_eventUnsubscribe','_docStateChangeManagerService','OnLineIcon','font','INVITE_CODE_REQUIRED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','params','onPointerEnter$','transformMutation','complete','transformSelections','getValue','executeCommand','UPDATE_CURSOR','_updateCollabCursors','fillRule','CONNECTOR_DATA_TOO_LARGE','FromArray','div','getCurrentUnitForType','UNRECOGNIZED','onCommandExecuted','push','asObservable','_labelPosition','fillText','_scene','translate(.97)','reconnect','_backgroundColor','popstate','values','_localStorageService','replaceState','APPLY_PERMISSION_DENIED','subunit','_handleJoinEvent','trim','_clearOtherTimers','searchParams','_initEntityListener','findNodePositionByCharIndex','_saveTaskMap','_online','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_docSyncEditingCollabCursorService','RemoveColCommandId','375eRMgZN','next','delete','COMPLETION_FINISHED','getMember','transformIMECache','getCurrent','evenodd','LICENSE_MAX_UNITS_EXCEEDED','lineTo','_name','EMAIL_VERIFY_CODE_MISMATCH','dispose$','_configService','_cachedData','clipPath','svg','with','_docClipboardService','subscribe','init','_memberService','_toggleOnline','onStarting','UNDEFINED','debug','InsertColCommandId','INVALID_INVITE_CODE','#FFF','_docSkeletonManagerService','InsertRangeMoveRightCommandId','getFocusedUnit','all','forEach','_collabCursorState$','MOBILE_HAS_BEEN_BOUND','getUndoRedoMutationParamsCache','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','red.300','location','requireSession','purple.300','_univerInstanceService','MoveRangeCommandId','saveImage','session.will-retry','_setupSubUnitSync','ENSURE_SNAPSHOT_EXECUTION','setShapeProps','_logService','toRgbString','ranges','on-line-icon','_entityInit$','_registerRenderDependencies','createSocket','yellow.400','newValue','icon','symbol','endRow','addHandlerCallback','YUUMI_RATE_OVER_LIMIT','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','from','drawWith','_collabSessionService','pipe','RemoveRowCommandId','http://www.w3.org/2000/svg','data','getRelativeToViewportCoord','idSuffix','_anchorDot','jiqing.500','_shapes','USER_NOT_INVITED_CODE','getAncestorScale','setParam','transformStateCache','_initEvent','HEADER_MENU','SOCKET_FAILED_RETRY','pushState','Error','url(#off-line-icon_clip0_910_343)','range','hide','UNIVER_SHEET','ALREADY_EXISTS','registerRefRange','1em','unitId','getParam','getViewport','_imageIoService','isEditing','textRanges','split','_handleLeaveEvent','mutations','_renderManagerService','disposeWithMe','M0\x200H16V16H0z','doc.mutation.rich-text-editing','send','currentSkeleton$','setAlpha','_textBubble','save','getStateCache','measureText','_roomMembers$','size','_selfUnitIDs','_drawAnchor','VIEW_MAIN','_refRangeService','_status$','type','_onCursorDelete','_color','3166320rnNAtV','YUUMI_SUBSCRIPTION_NOT_FOUND','clearTimeout','get','UNIVER_DOC','...','_localeService','0\x200\x2017\x2016','_dataLoaderService','_cursors','getRangePointData','_getScale','white','YUUMI_ASYNCIO_CANCELLED','storage','_getMergeRange','name','editingUnit','_cursorInfo$','attrs','MUTATION','_render','getCurrentSelections','exhaustSavingTask','2331435ZcSORg','addObject','width','_refreshCollabCursors','disposeUnit','InsertRangeMoveDownCommandId','INVALID_ARGUMENT','univer-mr-2\x20univer-flex\x20univer-text-xl','collabStatus.syncing','unit','blue.400','green.600','_docTransformStateCacheService','permission.title','defineProperty','_updateURLWithCurrentState','transformByState','history','then','origin','propertyIsEnumerable','LICENSE_DISTRO_REJECTED','APPLY_REJECT','_transformHistoryAndStateStack','_getSaveTimeout','map','collabStatus.conflict','registerComponent','collab-client.tooltip.reconnect','_anchor','_instanceService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','collaboration.closeRoom','_docTransformSelectionsService','_transformUndoRedoStack','MOBILE_VERIFY_CODE_MISMATCH','override','has','InsertRowCommandId','resize','skeleton','registerRenderModule','_toggleOffline','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','parse','defIds','permission.content','runId','off-line-icon_clip0_910_343','session.collaboration-timeout','NOT_FOUND','syncEditingCollabCursor','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','hovered','APPLY_NON_SEQUENTIAL_REVISION','saveOfflineData','colorChannel1','hasOwnProperty','row','_initResize','mask','collab-text-range-','PY_RUNTIME_SCRIPT_ERROR','getOffsetConfig','onLocalMutation','YUUMI_UNABLE_LOAD_URL','contains','_colorAssignService','_hideTimer','_removeCollabCursors','_disabled','_urlService','collab-text-anchor-','YUUMI_TABLE_NOT_FOUND_IN_UNIT','8DJJYkr','_transformPreviousActiveRange','_updateLocalCursor','function','EMAIL_HAS_BEEN_BOUND','getRenderById','height','uni.network.url-service','_heartbeatTimer','getTypeOfUnitDisposed$','INVITE_CODE_ALREADY_BOUND','SNAPSHOT_HAS_BEEN_REMOVED','_hover','removeParam','_saveCache','getOwnPropertySymbols','_httpService','collaboration-client.offline-data-not-saved','arc','createInstance','_startSheetCollabCursor','getCollabCursors$','cursorInfo','_notificationService','collabStatus.synced','getCollabEntity$','error','startColumn','CHANGESET_REVISION_CONFILICT','_drawRectRange','getOwnPropertyDescriptor','_initStatusListener','OFFLINE','replace','loadUnit','selection','includes','_doCreateSocket','transform','isArray','docStateChange$','LICENSE_EXPORT_SIZE_EXCEEDED','_docSkeleton','66803nwqtLC','PENDING','_entities','OffLineIcon','extend','_uiPartsService','_collabCursorController','string','updateOfflineData','SNAPSHOT_INVALID_SNAPSHOT','currentTheme$','YUUMI_NO_CUBOID_FOR_QUESTION','21496dEvSCv','getItem','_messageService','getActiveSheet','_injector','xlink:href','ticket','concat','_initDependencies','unshift','YUUMI_ALL_TABLES_IS_INVALID','AWAITING','PERMISSION_DENIED','activeSheet$','_removeClearOtherTimer','ACTIVE_UNIT_EVENT_CHANNEL','transformRemoteChangeset','_onRefRangeChange','TEXT','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','tag','FETCH_MISS','DeleteRangeMoveLeftCommandId','setItem','onMouseMove','off-line-icon','black','disableLocalCache','substring','engine','_startDocCollabCursor','RECT','makeDirty','univerjs-icon\x20univerjs-icon-','deepClone','getSkeleton','result','clearInterval','transformMutationsWithChangeset','top','getSheetBySheetId','JOIN_ROOM_FAILED','_ensureSubject','invokeId','_getAnchorBounding','eventID','onRendered','startsWith','_handleHeartbeatEvent','_registerDependencies','_cursor','getConfig','1420veHcIQ','_createSocketURL','prototype','backgroundColor','Unknown\x20user','roomMembers','current','sheetID','collab-rect-range-','_localCacheService','USERS_LEAVE','selections','_collaborationUIEventService','isActive','_id','YUUMI_AI_RUN_FAILED','_draw','rgba(255,\x20255,\x20255,\x200.01)'];_0x1a96=function(){return _0x2a2acc;};return _0x1a96();}let Ne=class extends _0x31cb63{constructor(_0x53c02a,_0x24d447){const _0x1ac871=_0x539489;super(),this['_docClipboardService']=_0x53c02a,this[_0x1ac871(0x126)]=_0x24d447,this['_init']();}[_0x539489(0x272)](){const _0x31731f=_0x539489,_0x312f44=this;this[_0x31731f(0x12d)](this[_0x31731f(0x2f1)][_0x31731f(0x25b)]({'onBeforePasteImage':async _0x52256b=>{const _0x1a3396=_0x31731f,_0x467f8d=await _0x312f44['_imageIoService'][_0x1a3396(0x30c)](_0x52256b);return _0x467f8d?{'source':_0x467f8d['source'],'imageSourceType':_0x467f8d['imageSourceType']}:null;}}));}};Ne=li([Je(0x0,_0x2cc71e),Je(0x1,_0x31024a)],Ne);const Ze=[_0x539489(0x309),_0x539489(0x111),_0x539489(0x164),_0x539489(0x306),_0x539489(0x163),_0x539489(0xff)];class ke extends _0x31f0f7{constructor(){const _0x2f3b97=_0x539489;super(...arguments),_(this,_0x2f3b97(0x287),new Map()),_(this,_0x2f3b97(0x26c),0x0);}[_0x539489(0x2a3)](_0x98840d){const _0x13e8db=_0x539489;if(this['_assignedColors'][_0x13e8db(0x17e)](_0x98840d))return this[_0x13e8db(0x287)][_0x13e8db(0x144)](_0x98840d);const _0x3da7bb=Ze[this['_colorIndex']];return this['_colorIndex']=(this[_0x13e8db(0x26c)]+0x1)%Ze['length'],this[_0x13e8db(0x287)][_0x13e8db(0x24c)](_0x98840d,_0x3da7bb),_0x3da7bb;}}function Tt(_0xde11b7){const _0x4dd8b6=_0x539489;let _0x2f8bb7='';for(const _0x5e76b7 of _0xde11b7){const {startOffset:_0x420598,endOffset:_0x276d08,isActive:_0x357516,rangeType:_0xa8935a,segmentId:_0x4bdb1b,segmentPage:_0x5d1eef}=_0x5e76b7;_0x2f8bb7[_0x4dd8b6(0x23d)]&&(_0x2f8bb7+=','),_0x2f8bb7+=_0x420598+':'+_0x276d08+':'+(_0x357516?'1':'0')+':'+_0xa8935a+':'+_0x4bdb1b+':'+_0x5d1eef;}return _0x2f8bb7;}function _i(_0x33ec9e){const _0x40614f=_0x539489,_0x18ff53=_0x33ec9e[_0x40614f(0x129)](','),_0x188fd0=[];for(const _0x10ba7b of _0x18ff53){const [_0x9c283f,_0x333cb0,_0x25fdfb,_0x2fcdc9,_0x4f8d72,_0x398783]=_0x10ba7b[_0x40614f(0x129)](':');_0x188fd0[_0x40614f(0x2c6)]({'startOffset':Number(_0x9c283f),'endOffset':Number(_0x333cb0),'collapsed':_0x9c283f===_0x333cb0,'isActive':_0x25fdfb==='1','rangeType':_0x2fcdc9===_0x3e2cb0[_0x40614f(0x1ec)]?_0x3e2cb0[_0x40614f(0x1ec)]:_0x3e2cb0[_0x40614f(0x1f9)],'segmentId':typeof _0x4f8d72=='string'?String(_0x4f8d72):'','segmentPage':Number(_0x398783!=null?_0x398783:-0x1)});}return _0x188fd0['some'](_0x409675=>_0x409675[_0x40614f(0x21b)])||(_0x188fd0[0x0][_0x40614f(0x21b)]=!0x0),_0x188fd0;}class He extends _0x31cb63{constructor(){const _0x7193b=_0x539489;super(...arguments),_(this,_0x7193b(0x301),new _0x5ae23c(null)),_(this,_0x7193b(0x22c),this['_collabCursorState$'][_0x7193b(0x2c7)]());}[_0x539489(0x18c)](_0x4d64bd){const _0x31d655=_0x539489,{unitID:_0x57a639,memberID:_0x50f881,textRanges:_0x4f697e}=_0x4d64bd,_0x347808=Tt(_0x4f697e);if(_0x347808==='')return;const _0x5183ce={'unitID':_0x57a639,'memberID':_0x50f881,'selection':_0x347808};this[_0x31d655(0x301)]['next'](_0x5183ce);}}var hi=Object[_0x539489(0x1c1)],ui=(_0x4cb3e9,_0x38a9e6,_0x1f2489,_0x2268d0)=>{const _0x9c3903=_0x539489;for(var _0x49f448=_0x2268d0>0x1?void 0x0:_0x2268d0?hi(_0x38a9e6,_0x1f2489):_0x38a9e6,_0x232fa9=_0x4cb3e9[_0x9c3903(0x23d)]-0x1,_0x7408a;_0x232fa9>=0x0;_0x232fa9--)(_0x7408a=_0x4cb3e9[_0x232fa9])&&(_0x49f448=_0x7408a(_0x49f448)||_0x49f448);return _0x49f448;},P=(_0x4683a0,_0x4c721c)=>(_0x23ca50,_0x2645f0)=>_0x4c721c(_0x23ca50,_0x2645f0,_0x4683a0);const di=0x12c,fi=0x64;let Ue=class extends _0x31cb63{constructor(_0x165409,_0x53d82d,_0x2397b9,_0x36cb6f,_0x10b7c5,_0x3dbc6a,_0x542b7a,_0x159151,_0x1eb4b4){const _0x533382=_0x539489;super(),_(this,_0x533382(0x2db),!0x1),_(this,_0x533382(0x272),!0x1),_(this,_0x533382(0x153),new _0x5ae23c(new Map())),_(this,_0x533382(0x22f),this['_cursorInfo$'][_0x533382(0x2c7)]()),_(this,'_roomMembers$',new _0x5ae23c([])),_(this,'roomMembers$',this[_0x533382(0x137)][_0x533382(0x10a)](_0x213d92(di))),_(this,_0x533382(0x1a5),_0x4c2ea0(_0x5d0f59=>{const _0x535647=_0x533382,_0x45dfa7={'eventID':_0x3d94a5[_0x535647(0x2bd)],'data':{'unitID':this[_0x535647(0x2ac)],'memberID':this[_0x535647(0x293)][_0x535647(0x26a)](),'selection':Tt(_0x5d0f59)}};this[_0x535647(0x293)]['send'](_0x45dfa7,this['unitID']);},fi)),(this['unitID']=_0x165409,this[_0x533382(0x293)]=_0x53d82d,this['_injector']=_0x2397b9,this[_0x533382(0x19c)]=_0x36cb6f,this['_memberService']=_0x10b7c5,this['_syncEditingCollabCursorService']=_0x3dbc6a,this[_0x533382(0x251)]=_0x542b7a,this[_0x533382(0x30a)]=_0x159151,this['_commandService']=_0x1eb4b4);}get['cursorInfo'](){const _0x5f092a=_0x539489;return this['_cursorInfo$'][_0x5f092a(0x2bb)]();}get[_0x539489(0x213)](){const _0x5577a4=_0x539489;return this['_roomMembers$'][_0x5577a4(0x2bb)]();}['dispose'](){const _0x4103e2=_0x539489;super[_0x4103e2(0x24e)](),this[_0x4103e2(0x153)][_0x4103e2(0x2e0)](new Map()),this[_0x4103e2(0x153)][_0x4103e2(0x2b9)](),this['_roomMembers$'][_0x4103e2(0x2e0)]([]),this['_roomMembers$'][_0x4103e2(0x2b9)]();}[_0x539489(0x2f3)](){const _0x2df98e=_0x539489;this[_0x2df98e(0x272)]||(this['_init']=!0x0,this[_0x2df98e(0x293)][_0x2df98e(0x284)][_0x2df98e(0x10a)](_0x207bbb(this[_0x2df98e(0x2eb)]))[_0x2df98e(0x2f2)](_0xbf214c=>{const _0x233181=_0x2df98e;_0xbf214c===_0x44d540['ONLINE']?this[_0x233181(0x2f5)]():this[_0x233181(0x183)]();}),this[_0x2df98e(0x293)][_0x2df98e(0x273)][_0x2df98e(0x10a)](_0x207bbb(this[_0x2df98e(0x2eb)]))[_0x2df98e(0x2f2)](_0x199957=>{const _0x2bcb16=_0x2df98e,_0x11293f=_0x199957[_0x2bcb16(0x207)];_0x11293f===_0x3d94a5['UPDATE_CURSOR']&&this[_0x2bcb16(0x2aa)](_0x199957),_0x11293f===_0x3d94a5[_0x2bcb16(0x218)]&&this[_0x2bcb16(0x13f)](_0x199957);}),this[_0x2df98e(0x12d)](this[_0x2df98e(0x247)][_0x2df98e(0x2c5)](_0x2869f7=>{const _0x33569d=_0x2df98e,_0x16d447=_0x2869f7[_0x33569d(0x2b6)];_0x16d447!=null&&this[_0x33569d(0x2db)]&&_0x2869f7['id']===_0x4e9b8e['id']&&_0x16d447[_0x33569d(0x123)]===this[_0x33569d(0x2ac)]&&_0x16d447[_0x33569d(0x127)]===!0x1&&_0x16d447[_0x33569d(0x313)][_0x33569d(0x23d)]>0x0&&this['_updateLocalCursor'](_0x16d447[_0x33569d(0x313)]);})),this[_0x2df98e(0x25e)]['collabCursorState$']['pipe'](_0x207bbb(this['dispose$']))[_0x2df98e(0x2f2)](_0x1d434d=>{const _0x240064=_0x2df98e;if((_0x1d434d==null?void 0x0:_0x1d434d[_0x240064(0x2ac)])!==this[_0x240064(0x2ac)])return;const _0x4ec1cc={'eventID':_0x3d94a5[_0x240064(0x2bd)],'data':_0x1d434d};this[_0x240064(0x2aa)](_0x4ec1cc);}),this['disposeWithMe'](this[_0x2df98e(0x247)][_0x2df98e(0x2c5)](_0xb0568d=>{const _0x2b3018=_0x2df98e;if(_0xb0568d[_0x2b3018(0x2b6)]==null)return;const _0x5e34e1=_0xb0568d[_0x2b3018(0x2b6)];if(_0xb0568d['id']!==_0x4b2064['id']||_0x5e34e1['unitId']!==this[_0x2b3018(0x2ac)])return;const _0x326b7b={'id':'doc.mutation.rich-text-editing','params':_0x5e34e1},_0x4b9417=this[_0x2b3018(0x1b9)];for(const [_0x5bbabb,_0x415f74]of _0x4b9417){const _0x47cca7={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2b3018(0x2ac)],'actions':null,'textRanges':_0x415f74[_0x2b3018(0x313)]}},_0x3659a9=this['_transformService']['transformMutation'](_0x326b7b,_0x47cca7,!0x1);if(_0x5f580a(_0x3659a9))throw _0x3659a9['error'];_0x4b9417[_0x2b3018(0x24c)](_0x5bbabb,{..._0x415f74,'ranges':_0x3659a9['m2Prime'][_0x2b3018(0x2b6)][_0x2b3018(0x128)]});}queueMicrotask(()=>{const _0x267066=_0x2b3018;this[_0x267066(0x153)][_0x267066(0x2e0)](_0x4b9417);});})));}[_0x539489(0x2aa)](_0x198a24){const _0x138526=_0x539489;var _0x1f0c43,_0x548ef8;const {memberID:_0x474b5f,selection:_0x2fdbfc}=_0x198a24[_0x138526(0x10d)],_0x458467=_i(_0x2fdbfc),_0x316ec9=(_0x548ef8=(_0x1f0c43=this[_0x138526(0x2f4)]['getMember'](this[_0x138526(0x2ac)],_0x474b5f))==null?void 0x0:_0x1f0c43[_0x138526(0x151)])!=null?_0x548ef8:_0x138526(0x212),_0x53c814={'color':this[_0x138526(0x19c)][_0x138526(0x2a3)](_0x474b5f),'name':_0x316ec9,'ranges':_0x458467},_0x20354b=this[_0x138526(0x1b9)];_0x20354b[_0x138526(0x24c)](_0x474b5f,_0x53c814),this[_0x138526(0x153)][_0x138526(0x2e0)](_0x20354b);}[_0x539489(0x13f)](_0xebc7bb){const _0x17ca54=_0x539489,{memberID:_0x50c187}=_0xebc7bb['data'],_0x1a366b=this[_0x17ca54(0x1b9)];_0x1a366b['delete'](_0x50c187),this[_0x17ca54(0x153)][_0x17ca54(0x2e0)](_0x1a366b);}['_toggleOnline'](){const _0xd4e4a9=_0x539489;var _0x5b07be;if(this[_0xd4e4a9(0x2db)]=!0x0,((_0x5b07be=this[_0xd4e4a9(0x30a)][_0xd4e4a9(0x2fe)]())==null?void 0x0:_0x5b07be['getUnitId']())!==this['unitID'])return;const _0x550146=this[_0xd4e4a9(0x1de)]['get'](_0xe486a6)['getDocRanges']();Array[_0xd4e4a9(0x1ca)](_0x550146)&&_0x550146[_0xd4e4a9(0x23d)]>0x0&&this[_0xd4e4a9(0x1a5)](_0x550146);}[_0x539489(0x183)](){this['_online']=!0x1;}};Ue=ui([P(0x2,_0x59cc1b(_0x3916b4)),P(0x3,_0x59cc1b(ke)),P(0x4,_0x59cc1b(_0x3b5672)),P(0x5,_0x59cc1b(He)),P(0x6,_0x3a6923),P(0x7,_0x15d220),P(0x8,_0xb1c3d2)],Ue);var Si=Object['getOwnPropertyDescriptor'],mi=(_0x99695,_0x37b2da,_0x4c55e5,_0x8766cf)=>{for(var _0x24322a=_0x8766cf>0x1?void 0x0:_0x8766cf?Si(_0x37b2da,_0x4c55e5):_0x37b2da,_0x2b49c4=_0x99695['length']-0x1,_0x28b2b5;_0x2b49c4>=0x0;_0x2b49c4--)(_0x28b2b5=_0x99695[_0x2b49c4])&&(_0x24322a=_0x28b2b5(_0x24322a)||_0x24322a);return _0x24322a;},x=(_0x49d4fe,_0x531001)=>(_0x31d00b,_0x537b70)=>_0x531001(_0x31d00b,_0x537b70,_0x49d4fe);const Ii=0x12c,gi=0x64,vi=()=>{let _0x470eca=[],_0x41926b=!0x1;return _0x4529ff=>{const _0x21ecec=_0x43b9;_0x470eca[_0x21ecec(0x2c6)](_0x4529ff),_0x41926b||(_0x41926b=!0x0,setTimeout(()=>{const _0x3fb7d6=_0x21ecec;_0x470eca[_0x3fb7d6(0x300)](_0xc84dc6=>_0xc84dc6()),_0x470eca=[],_0x41926b=!0x1;}));};};let Me=class extends _0x31cb63{constructor(_0x557bd9,_0x6dd01b,_0x2c91e3,_0x19859d,_0xbdb6e2,_0x37db67,_0x50a4ee,_0x5b2a84){const _0x390082=_0x539489;super(),_(this,_0x390082(0x2db),!0x1),_(this,_0x390082(0x272),!0x1),_(this,_0x390082(0x153),new _0x5ae23c(new Map())),_(this,_0x390082(0x22f),this[_0x390082(0x153)][_0x390082(0x2c7)]()),_(this,_0x390082(0x137),new _0x5ae23c([])),_(this,'roomMembers$',this[_0x390082(0x137)][_0x390082(0x10a)](_0x213d92(Ii))),_(this,_0x390082(0x1a5),_0x4c2ea0((_0x3991e2,_0x541075)=>{const _0x444621=_0x390082,_0x195a23={'eventID':_0x3d94a5[_0x444621(0x2bd)],'data':{'unitID':this[_0x444621(0x2ac)],'memberID':this[_0x444621(0x293)][_0x444621(0x26a)](),'selection':_0x95a8b(_0x3991e2,_0x541075[_0x444621(0x11d)])}};this[_0x444621(0x293)][_0x444621(0x130)](_0x195a23,this[_0x444621(0x2ac)]);},gi)),(this[_0x390082(0x2ac)]=_0x557bd9,this[_0x390082(0x293)]=_0x6dd01b,this[_0x390082(0x1de)]=_0x2c91e3,this[_0x390082(0x19c)]=_0x19859d,this[_0x390082(0x2f4)]=_0xbdb6e2,this['_univerInstanceService']=_0x37db67,this['_commandService']=_0x50a4ee,this[_0x390082(0x13c)]=_0x5b2a84);}get[_0x539489(0x1b9)](){const _0x100d3d=_0x539489;return this[_0x100d3d(0x153)]['getValue']();}get['roomMembers'](){const _0x35adcb=_0x539489;return this[_0x35adcb(0x137)][_0x35adcb(0x2bb)]();}[_0x539489(0x24e)](){const _0x5da7fe=_0x539489;super[_0x5da7fe(0x24e)](),this['_cursorInfo$'][_0x5da7fe(0x2e0)](new Map()),this['_cursorInfo$'][_0x5da7fe(0x2b9)](),this[_0x5da7fe(0x137)]['next']([]),this[_0x5da7fe(0x137)]['complete']();}[_0x539489(0x2f3)](){const _0x52c071=_0x539489;this[_0x52c071(0x272)]||(this[_0x52c071(0x272)]=!0x0,this[_0x52c071(0x293)]['sessionStatus$'][_0x52c071(0x10a)](_0x207bbb(this[_0x52c071(0x2eb)]))[_0x52c071(0x2f2)](_0x39bfe1=>{const _0x5a2554=_0x52c071;_0x39bfe1===_0x44d540[_0x5a2554(0x276)]?this[_0x5a2554(0x2f5)]():this[_0x5a2554(0x183)]();}),this[_0x52c071(0x293)]['event$'][_0x52c071(0x10a)](_0x207bbb(this[_0x52c071(0x2eb)]))[_0x52c071(0x2f2)](_0x1fd99a=>{const _0x27b406=_0x52c071,_0x51e9ab=_0x1fd99a[_0x27b406(0x207)];_0x51e9ab===_0x3d94a5[_0x27b406(0x2bd)]&&this[_0x27b406(0x2aa)](_0x1fd99a),_0x51e9ab===_0x3d94a5[_0x27b406(0x218)]&&this['_onCursorDelete'](_0x1fd99a);}),this[_0x52c071(0x1eb)](),this[_0x52c071(0x12d)](this[_0x52c071(0x247)][_0x52c071(0x2c5)](_0xe08644=>{const _0x382613=_0x52c071;if(this['_online']&&_0xe08644['id']===_0xb510d8['id']&&_0xe08644['params'][_0x382613(0x123)]===this['unitID']){const _0x2f7e3c=_0xe08644[_0x382613(0x2b6)];this[_0x382613(0x1a5)](_0x2f7e3c[_0x382613(0x290)],_0x2f7e3c[_0x382613(0x219)][0x0]);}})));}[_0x539489(0x2aa)](_0x47ee1b){const _0x11e87d=_0x539489;var _0x5e358c,_0xa7a3d5;const {memberID:_0x3cf0bf,selection:_0x3bf7b7}=_0x47ee1b['data'],{sheetName:_0x4f022c,range:_0x42bb3e}=_0x123e28(_0x3bf7b7),_0x589c85={'name':(_0xa7a3d5=(_0x5e358c=this[_0x11e87d(0x2f4)][_0x11e87d(0x2e3)](this[_0x11e87d(0x2ac)],_0x3cf0bf))==null?void 0x0:_0x5e358c[_0x11e87d(0x151)])!=null?_0xa7a3d5:'Unknown\x20user','range':this['_getMergeRange'](_0x4f022c,_0x42bb3e),'sheetID':_0x4f022c,'color':this[_0x11e87d(0x19c)][_0x11e87d(0x2a3)](_0x3cf0bf),'selection':_0x3bf7b7},_0x1efb05=this['cursorInfo'];_0x1efb05[_0x11e87d(0x24c)](_0x3cf0bf,_0x589c85),this[_0x11e87d(0x153)][_0x11e87d(0x2e0)](_0x1efb05);}[_0x539489(0x13f)](_0xf498c0){const _0x443649=_0x539489,{memberID:_0x1ede06}=_0xf498c0['data'],_0x3f7eb9=this['cursorInfo'];_0x3f7eb9['delete'](_0x1ede06),this[_0x443649(0x153)]['next'](_0x3f7eb9);}[_0x539489(0x150)](_0x5bbb01,_0x36369c){const _0x10931a=_0x539489;var _0x219bd4,_0x1d1d1a;const _0x2654bb=(_0x1d1d1a=(_0x219bd4=this[_0x10931a(0x30a)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x219bd4[_0x10931a(0x202)](_0x5bbb01))==null?void 0x0:_0x1d1d1a[_0x10931a(0x241)]();return(_0x2654bb==null?void 0x0:_0x2654bb[_0x10931a(0x29e)](_0x516a7c=>_0x344f5c[_0x10931a(0x19b)](_0x516a7c,_0x36369c)))||_0x36369c;}['_onRefRangeChange'](){const _0x27f19b=_0x539489,_0x2285ae=new _0xd09b58(),_0xd9f95d=vi(),_0x3bfe1a=()=>{const _0x3dcd22=_0x43b9;_0x2285ae[_0x3dcd22(0x24e)]();const _0x1ededa=(_0x21222e,_0x1ebc05,_0x1cc00f,_0x25a899)=>{const _0xda70d4=_0x3dcd22;let _0x464dba=[];switch(_0x21222e['id']){case _0x3e57f5[_0xda70d4(0x1f0)]:{_0x464dba=_0x262a45(_0x21222e,_0x25a899);break;}case _0x3e57f5['DeleteRangeMoveUpCommandId']:{_0x464dba=_0xa0a76b(_0x21222e,_0x25a899);break;}case _0x3e57f5[_0xda70d4(0x2f9)]:{_0x464dba=_0x259b27(_0x21222e,_0x25a899);break;}case _0x3e57f5[_0xda70d4(0x15e)]:{_0x464dba=_0x898337(_0x21222e,_0x25a899);break;}case _0x3e57f5[_0xda70d4(0x2fd)]:{_0x464dba=_0x24986e(_0x21222e,_0x25a899);break;}case _0x3e57f5[_0xda70d4(0x17f)]:{_0x464dba=_0x9ee46a(_0x21222e,_0x25a899);break;}case _0x3e57f5[_0xda70d4(0x30b)]:{_0x464dba=_0x337154(_0x21222e,_0x25a899);break;}case _0x3e57f5[_0xda70d4(0x2de)]:{_0x464dba=_0x74c188(_0x21222e,_0x25a899);break;}case _0x3e57f5[_0xda70d4(0x10b)]:{_0x464dba=_0x5a3b8c(_0x21222e,_0x25a899);break;}}const _0x3832a5=_0x4c9e41(_0x464dba,_0x25a899),_0x3ae905=this[_0xda70d4(0x1b9)][_0xda70d4(0x144)](_0x1ebc05);if(_0x3ae905&&_0x3832a5){const _0xd132a3={..._0x3ae905,'range':_0x3832a5};this['cursorInfo']['set'](_0x1ebc05,_0xd132a3),_0xd9f95d(()=>{const _0x71f53d=_0xda70d4,_0x20d1f7=this[_0x71f53d(0x13c)][_0x71f53d(0x121)](_0x3832a5,_0x3379e9=>(_0x20d1f7[_0x71f53d(0x24e)](),_0x1ededa(_0x3379e9,_0x1ebc05,_0x1cc00f,_0x3832a5)));_0x2285ae['add'](_0x20d1f7);});}return{'redos':[],'undos':[]};};this[_0x3dcd22(0x1b9)]['forEach']((_0x589e0d,_0x5df42a)=>{const _0x2ffdf3=_0x3dcd22,{range:_0x40fc44,sheetID:_0x4e27be}=_0x589e0d,_0x59525b=this['_refRangeService']['registerRefRange'](_0x40fc44,_0x3f1f8c=>(_0x59525b[_0x2ffdf3(0x24e)](),_0x1ededa(_0x3f1f8c,_0x5df42a,_0x4e27be,_0x40fc44)));_0x2285ae[_0x2ffdf3(0x299)](_0x59525b);});};this[_0x27f19b(0x12d)](_0x39683d(this[_0x27f19b(0x153)][_0x27f19b(0x2f2)](()=>{_0x3bfe1a();})));}['_toggleOnline'](){const _0x1aa14f=_0x539489;var _0x12b5e2,_0x3a8734;if(this[_0x1aa14f(0x2db)]=!0x0,((_0x12b5e2=this[_0x1aa14f(0x30a)]['getFocusedUnit']())==null?void 0x0:_0x12b5e2['getUnitId']())!==this[_0x1aa14f(0x2ac)])return;const _0x4bea91=(_0x3a8734=this[_0x1aa14f(0x1de)][_0x1aa14f(0x144)](_0x12f9e0)[_0x1aa14f(0x157)]())==null?void 0x0:_0x3a8734[0x0],_0x3da57c=this[_0x1aa14f(0x30a)][_0x1aa14f(0x2c3)](_0x92e40[_0x1aa14f(0x11f)])[_0x1aa14f(0x1dd)]();_0x4bea91&&_0x3da57c&&this[_0x1aa14f(0x1a5)](_0x3da57c[_0x1aa14f(0x227)](),_0x4bea91);}['_toggleOffline'](){const _0x41151f=_0x539489;this[_0x41151f(0x2db)]=!0x1;}};Me=mi([x(0x2,_0x59cc1b(_0x3916b4)),x(0x3,_0x59cc1b(ke)),x(0x4,_0x59cc1b(_0x3b5672)),x(0x5,_0x15d220),x(0x6,_0xb1c3d2),x(0x7,_0x59cc1b(_0x257aca))],Me);var pi=Object[_0x539489(0x1c1)],Ci=(_0x31e5c5,_0x34791a,_0x387d86,_0x28c62a)=>{const _0x455e1f=_0x539489;for(var _0x2db09c=_0x28c62a>0x1?void 0x0:_0x28c62a?pi(_0x34791a,_0x387d86):_0x34791a,_0x1ac727=_0x31e5c5[_0x455e1f(0x23d)]-0x1,_0x503eba;_0x1ac727>=0x0;_0x1ac727--)(_0x503eba=_0x31e5c5[_0x1ac727])&&(_0x2db09c=_0x503eba(_0x2db09c)||_0x2db09c);return _0x2db09c;},Se=(_0xf8f2d,_0x5c3099)=>(_0x1fb0b8,_0x5d4043)=>_0x5c3099(_0x1fb0b8,_0x5d4043,_0xf8f2d);let H=class extends _0x31cb63{constructor(_0x12e085,_0x87b50e,_0x5d0f14){const _0x4ba896=_0x539489;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new _0x39134f()),(this[_0x4ba896(0x30a)]=_0x12e085,this[_0x4ba896(0x1de)]=_0x87b50e,this[_0x4ba896(0x109)]=_0x5d0f14,this['_init']());}[_0x539489(0x24e)](){const _0x6a477a=_0x539489;super[_0x6a477a(0x24e)](),this[_0x6a477a(0x315)][_0x6a477a(0x2b9)](),this[_0x6a477a(0x1d0)][_0x6a477a(0x300)](_0x4692fd=>_0x4692fd[_0x6a477a(0x24e)]());}[_0x539489(0x1b8)](_0x5abc13){const _0x1e082e=_0x539489;return this['_entities'][_0x1e082e(0x17e)](_0x5abc13)?this[_0x1e082e(0x1d0)][_0x1e082e(0x144)](_0x5abc13)[_0x1e082e(0x22f)]:this[_0x1e082e(0x315)]['pipe'](_0x124671(_0x524d60=>_0x524d60[_0x1e082e(0x2ac)]===_0x5abc13),_0x12f195(_0x3d284f=>_0x3d284f[_0x1e082e(0x22f)]));}[_0x539489(0x272)](){const _0x43845d=_0x539489;this['_univerInstanceService'][_0x43845d(0x278)](_0x92e40[_0x43845d(0x11f)])[_0x43845d(0x10a)](_0x207bbb(this[_0x43845d(0x2eb)]))[_0x43845d(0x2f2)](async _0x3d6aca=>{const _0x2a2d9f=_0x43845d,_0xe251cc=_0x3d6aca[_0x2a2d9f(0x274)](),_0x50916d=await this['_startSheetCollabCursor'](_0xe251cc);this[_0x2a2d9f(0x315)]['next'](_0x50916d),this['_entities'][_0x2a2d9f(0x24c)](_0xe251cc,_0x50916d);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x92e40[_0x43845d(0x145)])[_0x43845d(0x10a)](_0x207bbb(this[_0x43845d(0x2eb)]))['pipe'](_0x124671(_0x213387=>!_0x213387[_0x43845d(0x274)]()[_0x43845d(0x209)]('__')))[_0x43845d(0x2f2)](async _0xecc8dc=>{const _0x252683=_0x43845d,_0x21ed30=_0xecc8dc['getUnitId'](),_0x3087dd=await this['_startDocCollabCursor'](_0x21ed30);this[_0x252683(0x315)][_0x252683(0x2e0)](_0x3087dd),this[_0x252683(0x1d0)]['set'](_0x21ed30,_0x3087dd);}),_0x1bb518(this[_0x43845d(0x30a)][_0x43845d(0x1ac)](_0x92e40['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x92e40[_0x43845d(0x11f)]))[_0x43845d(0x10a)](_0x207bbb(this[_0x43845d(0x2eb)]))['subscribe'](_0x1a90ac=>{const _0x54065b=_0x43845d,_0x33f5ad=_0x1a90ac[_0x54065b(0x274)](),_0x59809d=this['_entities'][_0x54065b(0x144)](_0x33f5ad);_0x59809d&&(_0x59809d[_0x54065b(0x24e)](),this['_entities'][_0x54065b(0x2e1)](_0x33f5ad));});}async[_0x539489(0x1b7)](_0x20798a){const _0x1dcb3e=_0x539489,_0x2c85da=await this['_collabSessionService'][_0x1dcb3e(0x308)](_0x20798a),_0x454e7e=this[_0x1dcb3e(0x1de)]['createInstance'](Me,_0x20798a,_0x2c85da);return _0x454e7e['init'](),_0x454e7e;}async[_0x539489(0x1f8)](_0x3aa6b8){const _0x224a98=_0x539489,_0xb33ff0=await this[_0x224a98(0x109)]['requireSession'](_0x3aa6b8),_0x405cf7=this[_0x224a98(0x1de)][_0x224a98(0x1b6)](Ue,_0x3aa6b8,_0xb33ff0);return _0x405cf7[_0x224a98(0x2f3)](),_0x405cf7;}};H=Ci([Se(0x0,_0x15d220),Se(0x1,_0x59cc1b(_0x3916b4)),Se(0x2,_0x59cc1b(_0x36a3b7))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x1cd0d8,_0x13f5b5){const _0x4ffde8=_0x539489;let {radius:_0x43257e,width:_0x5d771c,height:_0x1afc9c}=_0x13f5b5;_0x43257e=_0x43257e!=null?_0x43257e:0x0,_0x5d771c=_0x5d771c!=null?_0x5d771c:0x1e,_0x1afc9c=_0x1afc9c!=null?_0x1afc9c:0x1e;let _0x4a3d87=0x0,_0x280787=0x0,_0x5030fe=0x0;_0x4a3d87=_0x280787=_0x5030fe=Math['min'](_0x43257e,_0x5d771c/0x2,_0x1afc9c/0x2),_0x1cd0d8[_0x4ffde8(0x22a)](),_0x1cd0d8[_0x4ffde8(0x236)](_0x4a3d87,0x0),_0x1cd0d8[_0x4ffde8(0x2e8)](_0x5d771c-_0x280787,0x0),_0x1cd0d8[_0x4ffde8(0x1b5)](_0x5d771c-_0x280787,_0x280787,_0x280787,Math['PI']*0x3/0x2,0x0,!0x1),_0x1cd0d8[_0x4ffde8(0x2e8)](_0x5d771c,_0x1afc9c-_0x5030fe),_0x1cd0d8['arc'](_0x5d771c-_0x5030fe,_0x1afc9c-_0x5030fe,_0x5030fe,0x0,Math['PI']/0x2,!0x1),_0x1cd0d8[_0x4ffde8(0x2e8)](0x0,_0x1afc9c),_0x1cd0d8[_0x4ffde8(0x2e8)](0x0,_0x4a3d87),_0x1cd0d8[_0x4ffde8(0x1b5)](_0x4a3d87,_0x4a3d87,_0x4a3d87,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1cd0d8['closePath'](),_0x13f5b5[_0x4ffde8(0x291)]&&(_0x1cd0d8[_0x4ffde8(0x134)](),_0x1cd0d8['fillStyle']=_0x13f5b5[_0x4ffde8(0x291)],_0x13f5b5[_0x4ffde8(0x2bf)]===_0x4ffde8(0x2e6)?_0x1cd0d8[_0x4ffde8(0x291)](_0x4ffde8(0x2e6)):_0x1cd0d8[_0x4ffde8(0x291)](),_0x1cd0d8['restore']());}class he extends _0x2deb42{constructor(_0x4be669,_0x3a3db8){const _0x1f256e=_0x539489;super(_0x4be669,_0x3a3db8),_(this,_0x1f256e(0x266)),_(this,_0x1f256e(0x23e)),(this[_0x1f256e(0x266)]=_0x3a3db8==null?void 0x0:_0x3a3db8[_0x1f256e(0x266)],this[_0x1f256e(0x23e)]=_0x3a3db8==null?void 0x0:_0x3a3db8['text']);}static[_0x539489(0x108)](_0x733b09,_0x291a11){const _0x53cfd2=_0x539489,{text:_0xc54845,color:_0x28497a}=_0x291a11;_0x733b09[_0x53cfd2(0x134)](),_0x733b09[_0x53cfd2(0x2b3)]=_0x53cfd2(0x27b);const _0xd837e8=_0x733b09[_0x53cfd2(0x136)](_0xc54845)[_0x53cfd2(0x15b)],_0x4ef1c9=Math['min'](_0xd837e8+0x2*me,Qe);Oi(_0x733b09,{'height':ee,'radius':0x4,'width':_0x4ef1c9,'fill':_0x28497a}),_0x733b09[_0x53cfd2(0x220)]=_0x53cfd2(0x2fb);const _0x149fdb=me,_0x3cb724=ee-Ei,_0x1bf6e4=Qe-0x2*me;if(_0xd837e8>_0x1bf6e4){let _0xbfc95e='',_0x317009=0x0;for(const _0x2fda39 of _0xc54845){const _0x24ad09=_0x733b09[_0x53cfd2(0x136)](_0x2fda39)[_0x53cfd2(0x15b)];if(_0x317009+_0x24ad09<=_0x1bf6e4-_0x733b09[_0x53cfd2(0x136)](_0x53cfd2(0x146))[_0x53cfd2(0x15b)])_0xbfc95e+=_0x2fda39,_0x317009+=_0x24ad09;else{_0xbfc95e+=_0x53cfd2(0x146);break;}}_0x733b09[_0x53cfd2(0x2c9)](_0xbfc95e,_0x149fdb,_0x3cb724);}else _0x733b09['fillText'](_0xc54845,_0x149fdb,_0x3cb724);_0x733b09['restore']();}[_0x539489(0x21e)](_0x372167){const _0x1b2755=_0x539489;he[_0x1b2755(0x108)](_0x372167,this);}}const Ie=_0x539489(0x1a1),bi=_0x539489(0x196),Ti=_0x539489(0x216),X=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0x539489(0x21f);class qe{constructor(_0x21c9c5,_0x2bb553,_0xe025ed,_0xf1cbc4){const _0x7d48c0=_0x539489;_(this,_0x7d48c0(0x112),[]),_(this,'_anchor',null),_(this,_0x7d48c0(0x133),null),_(this,_0x7d48c0(0x110),null),_(this,'_hideTimer',null),_(this,_0x7d48c0(0x2b0),null),(this[_0x7d48c0(0x20c)]=_0x21c9c5,this[_0x7d48c0(0x2ca)]=_0x2bb553,this[_0x7d48c0(0x1cd)]=_0xe025ed,this['_document']=_0xf1cbc4,this['_render']());}set['_hover'](_0x17b4e8){const _0x420263=_0x539489;_0x17b4e8?(this['_anchorDot']&&this[_0x420263(0x110)][_0x420263(0x11e)](),this[_0x420263(0x133)]&&this[_0x420263(0x133)][_0x420263(0x28b)]()):(this[_0x420263(0x110)]&&this['_anchorDot']['show'](),this['_textBubble']&&this[_0x420263(0x133)][_0x420263(0x11e)]());}[_0x539489(0x24e)](){const _0x4091dc=_0x539489;for(const _0x5ee27f of this[_0x4091dc(0x112)])_0x5ee27f[_0x4091dc(0x24e)]();this[_0x4091dc(0x133)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x4091dc(0x24e)](),this['_anchor']&&this[_0x4091dc(0x176)][_0x4091dc(0x24e)](),this[_0x4091dc(0x2b0)]&&this[_0x4091dc(0x2b0)]();}[_0x539489(0x156)](){const _0x158365=_0x539489;var _0x1c9af9;const {_docSkeleton:_0x4d4139,_document:_0x56d869}=this,{color:_0x5d76d7,name:_0x2fdf91,ranges:_0x4d9b79}=this['_cursor'],_0x3973ab=_0x56d869[_0x158365(0x198)](),{docsLeft:_0x4648ad,docsTop:_0xd618f4}=_0x3973ab,_0x767a43=new _0xa22b7(_0x3973ab,_0x4d4139);for(const {startOffset:_0x2d8321,endOffset:_0x55f760,rangeType:_0x5a988c,segmentId:_0x5daf90,segmentPage:_0x587d95,collapsed:_0x3fdf9e,isActive:_0x531f06}of _0x4d9b79){const _0x103d5e=_0x4d4139[_0x158365(0x2d9)](_0x2d8321,!0x0,_0x5daf90,_0x587d95);let _0x34e9e8=_0x4d4139[_0x158365(0x2d9)](_0x55f760,!0x0,_0x5daf90,_0x587d95);if(_0x34e9e8==null&&(_0x34e9e8=_0x4d4139[_0x158365(0x2d9)](_0x55f760-0x1,!0x1,_0x5daf90,_0x587d95)),_0x531f06){const {contentBoxPointGroup:_0x368801}=_0x767a43[_0x158365(0x14b)](_0x34e9e8,_0x34e9e8);if(_0x368801[_0x158365(0x23d)]===0x0)continue;this[_0x158365(0x13a)](_0x5d76d7,_0x368801,_0x4648ad,_0xd618f4,_0x2fdf91),this[_0x158365(0x2b0)]=this['_handleHover']();}if(_0x103d5e&&_0x34e9e8){if(_0x5a988c===_0x3e2cb0[_0x158365(0x1f9)]){const _0x1b9358=new _0x5c59a2(_0x3973ab,_0x4d4139),{pointGroup:_0x3f9899}=(_0x1c9af9=_0x1b9358['getRangePointData'](_0x103d5e,_0x34e9e8))!=null?_0x1c9af9:{};if(_0x3f9899==null||_0x3f9899[_0x158365(0x23d)]===0x0)continue;this[_0x158365(0x1c0)](_0x5d76d7,_0x3f9899,_0x4648ad,_0xd618f4);}else{if(!_0x3fdf9e){const {borderBoxPointGroup:_0x263aed}=_0x767a43[_0x158365(0x14b)](_0x103d5e,_0x34e9e8);if(_0x263aed[_0x158365(0x23d)]===0x0)continue;this['_drawTextRange'](_0x5d76d7,_0x263aed,_0x4648ad,_0xd618f4);}}}}}['_drawAnchor'](_0x46a405,_0x57d57c,_0x52613b,_0x1ff02e,_0x2ed77a){const _0x2f9594=_0x539489,_0x2b55ec=this[_0x2f9594(0x206)](_0x57d57c),{left:_0x3c5038,top:_0xbdb45c,height:_0x319208}=_0x2b55ec,_0x46f3fb=this[_0x2f9594(0x14c)](),_0x393e92=Di/_0x46f3fb,_0x5399a6=new _0x569216(Ie+_0x1f28b5['generateRandomId'](X),{'left':_0x3c5038+_0x52613b-_0x393e92,'top':_0xbdb45c+_0x1ff02e,'height':_0x319208,'width':Ri,'fill':_0x46a405||_0x109233(_0x464ea5[_0x2f9594(0x1f4)],0x0),'strokeWidth':_0x393e92,'stroke':Ni,'evented':!0x0});this['_anchor']=_0x5399a6,this[_0x2f9594(0x2ca)][_0x2f9594(0x15a)](_0x5399a6,_0x2284d3);const _0x315ca5=new _0x569216(Ie+_0x1f28b5['generateRandomId'](X),{'left':_0x3c5038+_0x52613b-_0x393e92,'top':_0xbdb45c+_0x1ff02e-ge/0x2,'height':ge,'width':ge,'fill':_0x46a405||_0x109233(_0x464ea5[_0x2f9594(0x1f4)],0x0),'strokeWidth':0x0,'stroke':_0x46a405||_0x109233(_0x464ea5[_0x2f9594(0x1f4)],0x0),'evented':!0x1});this['_anchorDot']=_0x315ca5,this[_0x2f9594(0x2ca)][_0x2f9594(0x15a)](_0x315ca5,_0x2284d3);const _0x354646=new he(Ie+_0x1f28b5[_0x2f9594(0x283)](X),{'left':_0x3c5038+_0x52613b-_0x393e92,'top':_0xbdb45c+_0x1ff02e-ee,'text':_0x2ed77a,'color':_0x46a405});this[_0x2f9594(0x133)]=_0x354646,this[_0x2f9594(0x2ca)][_0x2f9594(0x15a)](_0x354646,_0x2284d3),this[_0x2f9594(0x1af)]=!0x1;}['_handleHover'](){const _0x2b6531=_0x539489,_0x509296=this['_anchor'][_0x2b6531(0x2b7)][_0x2b6531(0x2a0)](()=>{const _0x2714b2=_0x2b6531;this[_0x2714b2(0x1af)]=!0x0;}),_0x3fb7e7=this[_0x2b6531(0x176)][_0x2b6531(0x27c)][_0x2b6531(0x2a0)](()=>{const _0x77057b=_0x2b6531;this['_hideTimer']&&clearTimeout(this[_0x77057b(0x19d)]),this[_0x77057b(0x19d)]=setTimeout(()=>{const _0x16991a=_0x77057b;this[_0x16991a(0x1af)]=!0x1;},0x7d0);});return()=>{const _0x87a000=_0x2b6531;_0x509296['unsubscribe'](),_0x3fb7e7[_0x87a000(0x22d)]();};}['_drawTextRange'](_0x5660de,_0x28f875,_0xe876a3,_0x4d1910){const _0x4a78ac=_0x539489,_0xfa3acd=new _0x425e6c(_0x5660de)['setAlpha'](0.2)[_0x4a78ac(0x312)](),_0x34b548=new _0x2355a9(bi+_0x1f28b5['generateRandomId'](X),{'pointsGroup':_0x28f875,'fill':_0xfa3acd||_0x109233(_0x464ea5[_0x4a78ac(0x1f4)],0.2),'left':_0xe876a3,'top':_0x4d1910,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a78ac(0x112)]['push'](_0x34b548),this[_0x4a78ac(0x2ca)][_0x4a78ac(0x15a)](_0x34b548,_0x2284d3);}[_0x539489(0x1c0)](_0x24a590,_0x20b2be,_0x14a409,_0xa97327){const _0x4aafa4=_0x539489,_0x4837f9=new _0x425e6c(_0x24a590)[_0x4aafa4(0x132)](0.2)[_0x4aafa4(0x312)](),_0x18b5d6=new _0x2355a9(Ti+_0x1f28b5[_0x4aafa4(0x283)](X),{'pointsGroup':_0x20b2be,'fill':_0x4837f9||_0x109233(_0x464ea5['black'],0.2),'left':_0x14a409,'top':_0xa97327,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4aafa4(0x112)][_0x4aafa4(0x2c6)](_0x18b5d6),this[_0x4aafa4(0x2ca)][_0x4aafa4(0x15a)](_0x18b5d6,_0x2284d3);}[_0x539489(0x206)](_0x581098){const _0x10635d=_0x581098[0x0],_0x55a2dd=_0x10635d[0x0],_0x138bc7=_0x10635d[0x2],{x:_0x2781ab,y:_0x405ce6}=_0x55a2dd,{x:_0x750c92,y:_0x34ef89}=_0x138bc7;return{'left':_0x2781ab,'top':_0x405ce6,'width':_0x750c92-_0x2781ab,'height':_0x34ef89-_0x405ce6};}[_0x539489(0x14c)](){const _0x73a1cf=_0x539489,{scaleX:_0x22789f,scaleY:_0xfecb43}=this[_0x73a1cf(0x2ca)][_0x73a1cf(0x114)]();return Math['max'](_0x22789f,_0xfecb43);}}var Ui=Object[_0x539489(0x1c1)],Mi=(_0x156c74,_0x474e78,_0x1a053a,_0x5839b4)=>{for(var _0x183871=_0x5839b4>0x1?void 0x0:_0x5839b4?Ui(_0x474e78,_0x1a053a):_0x474e78,_0x2cde47=_0x156c74['length']-0x1,_0x4ee14d;_0x2cde47>=0x0;_0x2cde47--)(_0x4ee14d=_0x156c74[_0x2cde47])&&(_0x183871=_0x4ee14d(_0x183871)||_0x183871);return _0x183871;},Z=(_0x3b06a3,_0x4e6d1e)=>(_0x5e7464,_0x17fb18)=>_0x4e6d1e(_0x5e7464,_0x17fb18,_0x3b06a3);let Le=class extends _0x31cb63{constructor(_0x232e65,_0x3aedf5,_0x351982,_0x5efea3,_0x55e292){const _0x5e0016=_0x539489;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x5e0016(0x233)]=_0x232e65,this[_0x5e0016(0x2fc)]=_0x3aedf5,this[_0x5e0016(0x1d4)]=_0x351982,this[_0x5e0016(0x247)]=_0x5efea3,this[_0x5e0016(0x225)]=_0x55e292,this['_init']());}[_0x539489(0x272)](){const _0x48530f=_0x539489,_0x4073d5=this[_0x48530f(0x233)][_0x48530f(0x123)],_0x5a0a0b=this[_0x48530f(0x2fc)];this[_0x48530f(0x12d)](_0x294b69([this[_0x48530f(0x1d4)][_0x48530f(0x1b8)](_0x4073d5),this[_0x48530f(0x225)][_0x48530f(0x1d8)]])['pipe'](_0x18bc95(([_0x571435,_0x270f0b])=>({'skeleton':_0x5a0a0b[_0x48530f(0x1fd)](),'cursors':[..._0x571435[_0x48530f(0x2cf)]()]['flatMap'](_0x1aec8a=>({..._0x1aec8a,'color':this['_themeService']['getColorFromTheme'](_0x1aec8a[_0x48530f(0x266)])}))})))['subscribe'](_0x43b19e=>{const _0x31f64a=_0x48530f;if(this[_0x31f64a(0x19e)](),_0x43b19e){const {skeleton:_0x192752,cursors:_0x30ab5b}=_0x43b19e;this['_updateCollabCursors'](_0x192752,_0x30ab5b);}})),this[_0x48530f(0x194)](),this[_0x48530f(0x27f)]();}[_0x539489(0x2be)](_0x3d5467,_0x505f7a){const _0x5936ac=_0x539489,{scene:_0x5278fa,mainComponent:_0x770015}=this['_context'],_0x42708b=_0x505f7a[_0x5936ac(0x172)](_0x37c4e6=>new qe(_0x37c4e6,_0x5278fa,_0x3d5467,_0x770015));this['_cursorShapes']=_0x42708b,this[_0x5936ac(0x14a)]=_0x505f7a;}[_0x539489(0x15c)](){const _0x1ec55d=_0x539489;this[_0x1ec55d(0x19e)]();const {scene:_0x18e35b,mainComponent:_0x13f481}=this[_0x1ec55d(0x233)],_0x208577=this[_0x1ec55d(0x2fc)][_0x1ec55d(0x1fd)](),_0x252167=this['_cursors'][_0x1ec55d(0x172)](_0x7c9040=>new qe(_0x7c9040,_0x18e35b,_0x208577,_0x13f481));this[_0x1ec55d(0x271)]=_0x252167;}[_0x539489(0x19e)](){const _0x27a180=_0x539489;this[_0x27a180(0x271)][_0x27a180(0x300)](_0x6cb987=>_0x6cb987['dispose']()),this[_0x27a180(0x271)]=[];}[_0x539489(0x27f)](){const _0x5deedb=_0x539489,_0x5d9e23=[_0x24f7b8['id']];this[_0x5deedb(0x12d)](this[_0x5deedb(0x247)][_0x5deedb(0x2c5)](_0x4031be=>{const _0x578fdf=_0x5deedb;_0x5d9e23[_0x578fdf(0x1c7)](_0x4031be['id'])&&_0x4031be[_0x578fdf(0x2b6)][_0x578fdf(0x123)]===this[_0x578fdf(0x233)]['unitId']&&this[_0x578fdf(0x15c)]();}));}[_0x539489(0x194)](){const _0x19b928=_0x539489;this['disposeWithMe'](_0x382f7d(this['_context'][_0x19b928(0x1f7)]['onTransformChange$'])[_0x19b928(0x10a)](_0x17c129(_0x5affd5=>_0x5affd5[_0x19b928(0x13e)]===_0x1403a6[_0x19b928(0x180)]),_0x172c1(0x10))[_0x19b928(0x2f2)](()=>{const _0x9ff9c5=_0x19b928;this[_0x9ff9c5(0x15c)]();}));}};Le=Mi([Z(0x1,_0x59cc1b(_0x376632)),Z(0x2,_0x59cc1b(H)),Z(0x3,_0xb1c3d2),Z(0x4,_0x59cc1b(_0x2eb6ee))],Le);const Li=0x1,Pi=1.5;class wi extends _0x2deb42{constructor(_0x36763c,_0x125e79){const _0x50573f=_0x539489;super(_0x36763c,_0x125e79),_(this,_0x50573f(0x140)),_(this,_0x50573f(0x280),!0x1),_(this,'_range'),_(this,_0x50573f(0x2e9),''),_(this,_0x50573f(0x2c8),_0x50573f(0x201)),_(this,_0x50573f(0x2cd)),(_0x125e79&&this['setShapeProps'](_0x125e79),this['onPointerEnter$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x50573f(0x27c)][_0x50573f(0x2a0)](()=>this[_0x50573f(0x310)]({'hovered':!0x1})));}[_0x539489(0x310)](_0x26675f){const _0x2498f3=_0x539489;var _0x26eef1,_0x5f4948,_0xbfc1c9,_0x3410d5,_0x460ab7,_0xdedd24;this[_0x2498f3(0x140)]=(_0x26eef1=_0x26675f['color'])!=null?_0x26eef1:this['_color'],this[_0x2498f3(0x280)]=(_0x5f4948=_0x26675f[_0x2498f3(0x18e)])!=null?_0x5f4948:this['_hovered'],this['_range']=(_0xbfc1c9=_0x26675f[_0x2498f3(0x11d)])!=null?_0xbfc1c9:this['_range'],this[_0x2498f3(0x2e9)]=(_0x3410d5=_0x26675f['name'])!=null?_0x3410d5:this[_0x2498f3(0x2e9)],this['_labelPosition']=(_0x460ab7=_0x26675f[_0x2498f3(0x237)])!=null?_0x460ab7:this[_0x2498f3(0x2c8)],this['_backgroundColor']=(_0xdedd24=_0x26675f[_0x2498f3(0x211)])!=null?_0xdedd24:this[_0x2498f3(0x2cd)],this[_0x2498f3(0x169)]({'width':_0x26675f['width'],'height':_0x26675f[_0x2498f3(0x1a9)]});}[_0x539489(0x1f2)](_0x554608){const _0x334c78=_0x539489,{row:_0x1b482e,column:_0x13172c}=_0x554608;if(_0x1b482e>=this[_0x334c78(0x243)]['startRow']&&_0x1b482e<=this[_0x334c78(0x243)][_0x334c78(0x103)]&&_0x13172c>=this[_0x334c78(0x243)][_0x334c78(0x1be)]&&_0x13172c<=this[_0x334c78(0x243)]['endColumn']){this[_0x334c78(0x310)]({'hovered':!0x0});return;}this[_0x334c78(0x310)]({'hovered':!0x1});}[_0x539489(0x289)](_0x76aab8){return!0x1;}[_0x539489(0x21e)](_0x314087){const _0x2e9772=_0x539489;_0x569216[_0x2e9772(0x108)](_0x314087,{'width':this[_0x2e9772(0x15b)],'height':this[_0x2e9772(0x1a9)],'strokeWidth':Pi,'stroke':this[_0x2e9772(0x140)],'evented':!0x1,'fill':this[_0x2e9772(0x2cd)]}),this['_hovered']&&(_0x314087[_0x2e9772(0x134)](),_0x314087[_0x2e9772(0x1c9)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x2e9772(0x26e)?0x0:-0x14),he[_0x2e9772(0x108)](_0x314087,{'text':this[_0x2e9772(0x2e9)],'color':this['_color']}),_0x314087['restore']());}}var Ai=Object[_0x539489(0x1c1)],yi=(_0x2736a3,_0x54f273,_0x2cd0d0,_0x5b6d64)=>{const _0x38ff11=_0x539489;for(var _0x2447d8=_0x5b6d64>0x1?void 0x0:_0x5b6d64?Ai(_0x54f273,_0x2cd0d0):_0x54f273,_0x2d84ff=_0x2736a3[_0x38ff11(0x23d)]-0x1,_0x48dd68;_0x2d84ff>=0x0;_0x2d84ff--)(_0x48dd68=_0x2736a3[_0x2d84ff])&&(_0x2447d8=_0x48dd68(_0x2447d8)||_0x2447d8);return _0x2447d8;},ve=(_0xd6ed89,_0x1e7ee7)=>(_0x3934b3,_0x4fbdd0)=>_0x1e7ee7(_0x3934b3,_0x4fbdd0,_0xd6ed89);const $i=0x1389;let Pe=class extends _0x31cb63{constructor(_0x21a5e0,_0x1ba3c2,_0x168407,_0x51327f){const _0x29d60f=_0x539489;super(),_(this,_0x29d60f(0x14a),new Set()),_(this,_0x29d60f(0x25d),null),(this[_0x29d60f(0x233)]=_0x21a5e0,this[_0x29d60f(0x25f)]=_0x1ba3c2,this[_0x29d60f(0x1d4)]=_0x168407,this[_0x29d60f(0x225)]=_0x51327f,this[_0x29d60f(0x272)]());}[_0x539489(0x272)](){const _0x16af31=_0x539489;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x16af31(0x10a)](_0x3ae316(this[_0x16af31(0x2eb)]),_0xee5a94(_0x2dab86=>{const _0x3f234f=_0x16af31;if(_0x2dab86){const _0x4a0322=_0x2dab86['sheetId'];return _0x294b69(this['_collabCursorController'][_0x3f234f(0x1b8)](this[_0x3f234f(0x233)]['unitId']),this['_themeService'][_0x3f234f(0x1d8)])[_0x3f234f(0x10a)](_0x18bc95(([_0x59d2a3,_0x19857e])=>{const _0x398178=_0x3f234f,_0x1a0516=new Map();return _0x59d2a3[_0x398178(0x300)]((_0x1c0335,_0x4d09c2)=>{const _0x24541c=_0x398178;if(_0x1c0335[_0x24541c(0x215)]===_0x4a0322){const _0x377e35={..._0x1c0335};_0x377e35[_0x24541c(0x266)]=this[_0x24541c(0x225)][_0x24541c(0x264)](_0x1c0335[_0x24541c(0x266)]),_0x1a0516[_0x24541c(0x24c)](_0x4d09c2,_0x377e35);}}),{'skeleton':_0x2dab86,'cursors':_0x1a0516};}));}return _0x228a94({'skeleton':null,'cursors':new Map()});}))[_0x16af31(0x2f2)](({skeleton:_0x58af29,cursors:_0x1ccb2b})=>{const _0x262304=_0x16af31;this[_0x262304(0x19e)](),_0x58af29&&this[_0x262304(0x2be)](_0x58af29,_0x1ccb2b);}),this[_0x16af31(0x25f)][_0x16af31(0x131)][_0x16af31(0x2f2)](_0x479f3c=>{const _0x4d05b6=_0x16af31;if(_0x479f3c==null)return;const {skeleton:_0x252c96}=_0x479f3c,{scene:_0x11adee}=this['_context'];_0x11adee['onPointerMove$'][_0x4d05b6(0x2a0)](_0x4c2ea0(_0x116410=>{const _0x57bf38=_0x4d05b6;var _0x2eec60,_0x2eab0a;const {offsetX:_0x2fd304,offsetY:_0x1da6de}=_0x116410,{x:_0x26bf06,y:_0x28366a}=_0x11adee[_0x57bf38(0x10e)](_0x331f32[_0x57bf38(0x2c1)]([_0x2fd304,_0x1da6de])),{scaleX:_0x488d66,scaleY:_0x243f45}=_0x11adee[_0x57bf38(0x114)](),_0x33b6e1=_0x11adee[_0x57bf38(0x125)](_0x1496db[_0x57bf38(0x13b)]),_0x3dc349=_0x11adee[_0x57bf38(0x2a1)](_0x331f32['FromArray']([_0x26bf06,_0x28366a]),_0x33b6e1),_0x5a940c=_0x252c96['getCellPositionByOffset'](_0x2fd304,_0x1da6de,_0x488d66,_0x243f45,_0x3dc349);((_0x2eec60=this[_0x57bf38(0x25d)])==null?void 0x0:_0x2eec60[_0x57bf38(0x29d)])===_0x5a940c[_0x57bf38(0x29d)]&&((_0x2eab0a=this[_0x57bf38(0x25d)])==null?void 0x0:_0x2eab0a['row'])===_0x5a940c[_0x57bf38(0x193)]||this[_0x57bf38(0x14a)]['forEach'](_0x18fe9b=>{const _0x210791=_0x57bf38;_0x18fe9b[_0x210791(0x1f2)](_0x5a940c);});},0x64));});}['_updateCollabCursors'](_0x107f91,_0x30bde4){const _0x239961=_0x539489;var _0x1375db;const _0x510376=(_0x1375db=this[_0x239961(0x25f)][_0x239961(0x2e5)]())==null?void 0x0:_0x1375db[_0x239961(0x181)];if(!_0x510376)return;const _0x5e2304=this[_0x239961(0x222)]();if(!_0x5e2304)return;this['_cursors'][_0x239961(0x300)](_0x24c552=>{const _0x423310=_0x239961;_0x24c552[_0x423310(0x1fa)]();});const {scene:_0x224d9d}=_0x5e2304,_0x372b69=xi(Array['from'](_0x30bde4['values']()))[_0x239961(0x172)](_0x211123=>{const _0x5f5d55=_0x239961,{color:_0x1cbd43,range:_0x35b55a,name:_0x4cf465,selection:_0x22ffbc,sheetID:_0x37cd82}=_0x211123,{startColumn:_0x48fdca,startRow:_0x2d4cc1,endColumn:_0x3a74e3,endRow:_0x26b494}=_0x35b55a,_0xf61480=_0x2f0e65(_0x2d4cc1,_0x48fdca,_0x224d9d,_0x510376),_0x585748=_0x2f0e65(_0x26b494,_0x3a74e3,_0x224d9d,_0x510376),{columnHeaderHeightAndMarginTop:_0x392bc3}=_0x510376,{startX:_0x19aca6,startY:_0x27b81a}=_0xf61480,{endX:_0x379a0c,endY:_0x29fa17}=_0x585748,_0x3aaf95=_0x379a0c-_0x19aca6,_0x598219=_0x29fa17-_0x27b81a,_0x164fe3={'labelPosition':_0x27b81a-_0x392bc3>=ee?_0x5f5d55(0x201):'bottom','sheetID':_0x37cd82,'range':_0x35b55a,'color':_0x1cbd43,'name':_0x4cf465,'selection':_0x22ffbc,'left':_0x19aca6,'top':_0x27b81a,'width':_0x3aaf95,'height':_0x598219,'evented':!0x1,'zIndex':$i};return new wi(_0x4cf465,_0x164fe3);});_0x224d9d['addObjects'](_0x372b69,Li),this[_0x239961(0x14a)]=new Set(_0x372b69);}['_removeCollabCursors'](){const _0x3e28e5=_0x539489;var _0x304338;(_0x304338=this[_0x3e28e5(0x14a)])==null||_0x304338['forEach'](_0x398a10=>_0x398a10[_0x3e28e5(0x24e)]());}['_getSheetObject'](){const _0x50c662=_0x539489;return _0x190e63(this['_context']['unit'],this[_0x50c662(0x233)]);}};Pe=yi([ve(0x1,_0x59cc1b(_0x45b553)),ve(0x2,_0x59cc1b(H)),ve(0x3,_0x59cc1b(_0x2eb6ee))],Pe);function xi(_0x100b5a){const _0x24b477=_0x539489,_0x411af3=new Map();return _0x100b5a[_0x24b477(0x300)](_0x114b6e=>{const _0x1952e7=_0x24b477;if(_0x411af3[_0x1952e7(0x17e)](_0x114b6e[_0x1952e7(0x1c6)])){const _0x5cbf6f=_0x411af3[_0x1952e7(0x144)](_0x114b6e[_0x1952e7(0x1c6)]);_0x5cbf6f[_0x1952e7(0x151)]+=',\x20'+_0x114b6e['name'];}else _0x411af3[_0x1952e7(0x24c)](_0x114b6e['selection'],_0x114b6e);}),Array[_0x24b477(0x107)](_0x411af3[_0x24b477(0x2cf)]());}var v=function(){const _0x2acad1=_0x539489;return v=Object[_0x2acad1(0x269)]||function(_0x4cbeec){const _0x50dd62=_0x2acad1;for(var _0x26dbea,_0x2ed2ed=0x1,_0x22d83b=arguments[_0x50dd62(0x23d)];_0x2ed2ed<_0x22d83b;_0x2ed2ed++){_0x26dbea=arguments[_0x2ed2ed];for(var _0x42fc88 in _0x26dbea)Object[_0x50dd62(0x210)]['hasOwnProperty']['call'](_0x26dbea,_0x42fc88)&&(_0x4cbeec[_0x42fc88]=_0x26dbea[_0x42fc88]);}return _0x4cbeec;},v['apply'](this,arguments);},Bi=function(_0x6b6ba4,_0x1be66b){const _0x417876=_0x539489;var _0x4fc202={};for(var _0x7978eb in _0x6b6ba4)Object[_0x417876(0x210)][_0x417876(0x192)]['call'](_0x6b6ba4,_0x7978eb)&&_0x1be66b[_0x417876(0x29b)](_0x7978eb)<0x0&&(_0x4fc202[_0x7978eb]=_0x6b6ba4[_0x7978eb]);if(_0x6b6ba4!=null&&typeof Object[_0x417876(0x1b2)]==_0x417876(0x1a6)){for(var _0x1869e0=0x0,_0x7978eb=Object[_0x417876(0x1b2)](_0x6b6ba4);_0x1869e0<_0x7978eb[_0x417876(0x23d)];_0x1869e0++)_0x1be66b['indexOf'](_0x7978eb[_0x1869e0])<0x0&&Object[_0x417876(0x210)][_0x417876(0x16d)][_0x417876(0x253)](_0x6b6ba4,_0x7978eb[_0x1869e0])&&(_0x4fc202[_0x7978eb[_0x1869e0]]=_0x6b6ba4[_0x7978eb[_0x1869e0]]);}return _0x4fc202;},Fe=_0x4b1ce3(function(_0xee676d,_0x4ff28e){const _0x295464=_0x539489;var _0x237500=_0xee676d[_0x295464(0x101)],_0x3aeace=_0xee676d['id'],_0x418f19=_0xee676d[_0x295464(0x2a5)],_0x56567d=_0xee676d['extend'],_0x293e52=Bi(_0xee676d,[_0x295464(0x101),'id',_0x295464(0x2a5),_0x295464(0x1d2)]),_0x2b3fd1=_0x295464(0x1fb)[_0x295464(0x1e1)](_0x3aeace,'\x20')[_0x295464(0x1e1)](_0x418f19||'')[_0x295464(0x2d5)](),_0x22d6c0=_0x405e17('_'[_0x295464(0x1e1)](Fi()));return Rt(_0x237500,''[_0x295464(0x1e1)](_0x3aeace),{'defIds':_0x237500[_0x295464(0x186)],'idSuffix':_0x22d6c0[_0x295464(0x214)]},v({'ref':_0x4ff28e,'className':_0x2b3fd1},_0x293e52),_0x56567d);});function Rt(_0x5004c9,_0x8c33c,_0x54d469,_0x381a48,_0x558481){const _0x1fc913=_0x539489;return _0x2c83b0(_0x5004c9[_0x1fc913(0x1ee)],v(v({'key':_0x8c33c},ki(_0x5004c9,_0x54d469,_0x558481)),_0x381a48),(Hi(_0x5004c9,_0x54d469)[_0x1fc913(0x286)]||[])['map'](function(_0x2c346e,_0x14bfb1){const _0x58f4e1=_0x1fc913;return Rt(_0x2c346e,''[_0x58f4e1(0x1e1)](_0x8c33c,'-')[_0x58f4e1(0x1e1)](_0x5004c9[_0x58f4e1(0x1ee)],'-')[_0x58f4e1(0x1e1)](_0x14bfb1),_0x54d469,void 0x0,_0x558481);}));}function ki(_0x304e0e,_0x2ec5c8,_0x4681b3){const _0x56bc8a=_0x539489;var _0x4f0bf4=v({},_0x304e0e[_0x56bc8a(0x154)]);_0x4681b3!=null&&_0x4681b3[_0x56bc8a(0x191)]&&_0x4f0bf4['fill']==='colorChannel1'&&(_0x4f0bf4[_0x56bc8a(0x291)]=_0x4681b3[_0x56bc8a(0x191)]),_0x304e0e[_0x56bc8a(0x1ee)]===_0x56bc8a(0x195)&&_0x4f0bf4['id']&&(_0x4f0bf4['id']=_0x4f0bf4['id']+_0x2ec5c8[_0x56bc8a(0x10f)]),Object['entries'](_0x4f0bf4)[_0x56bc8a(0x300)](function(_0x397171){const _0x2fb687=_0x56bc8a;var _0x4c009c=_0x397171[0x0],_0x1526a6=_0x397171[0x1];_0x4c009c===_0x2fb687(0x195)&&typeof _0x1526a6==_0x2fb687(0x1d5)&&(_0x4f0bf4[_0x4c009c]=_0x1526a6[_0x2fb687(0x1c4)](/url\(#(.*)\)/,_0x2fb687(0x246)[_0x2fb687(0x1e1)](_0x2ec5c8[_0x2fb687(0x10f)],')')));});var _0xa1c104=_0x2ec5c8['defIds'];return!_0xa1c104||_0xa1c104[_0x56bc8a(0x23d)]===0x0||(_0x304e0e[_0x56bc8a(0x1ee)]==='use'&&_0x4f0bf4[_0x56bc8a(0x1df)]&&(_0x4f0bf4[_0x56bc8a(0x1df)]=_0x4f0bf4[_0x56bc8a(0x1df)]+_0x2ec5c8[_0x56bc8a(0x10f)]),Object[_0x56bc8a(0x282)](_0x4f0bf4)[_0x56bc8a(0x300)](function(_0x25dca8){const _0x385020=_0x56bc8a;var _0x7e5edf=_0x25dca8[0x0],_0x2e0bc0=_0x25dca8[0x1];typeof _0x2e0bc0==_0x385020(0x1d5)&&(_0x4f0bf4[_0x7e5edf]=_0x2e0bc0['replace'](/url\(#(.*)\)/,_0x385020(0x246)[_0x385020(0x1e1)](_0x2ec5c8[_0x385020(0x10f)],')')));})),_0x4f0bf4;}function Hi(_0x32ff73,_0x323c03){const _0x40ed95=_0x539489;var _0x3a7e21,_0x1d5c83=_0x323c03[_0x40ed95(0x186)];return!_0x1d5c83||_0x1d5c83[_0x40ed95(0x23d)]===0x0?_0x32ff73:_0x32ff73[_0x40ed95(0x1ee)]===_0x40ed95(0x2a7)&&(!((_0x3a7e21=_0x32ff73[_0x40ed95(0x286)])===null||_0x3a7e21===void 0x0)&&_0x3a7e21['length'])?v(v({},_0x32ff73),{'children':_0x32ff73[_0x40ed95(0x286)][_0x40ed95(0x172)](function(_0x3c4ded){const _0x47f36e=_0x40ed95;return typeof _0x3c4ded[_0x47f36e(0x154)]['id']=='string'&&_0x1d5c83&&_0x1d5c83[_0x47f36e(0x1c7)](_0x3c4ded[_0x47f36e(0x154)]['id'])?v(v({},_0x3c4ded),{'attrs':v(v({},_0x3c4ded['attrs']),{'id':_0x3c4ded[_0x47f36e(0x154)]['id']+_0x323c03[_0x47f36e(0x10f)]})}):_0x3c4ded;})}):_0x32ff73;}function Fi(){const _0x169e81=_0x539489;return Math['random']()[_0x169e81(0x28c)](0x24)[_0x169e81(0x1f6)](0x2,0x8);}Fe[_0x539489(0x23a)]=_0x539489(0x239);var Yi={'tag':_0x539489(0x2ef),'attrs':{'xmlns':_0x539489(0x10c),'fill':'none','viewBox':_0x539489(0x28f),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x539489(0x11c)},'children':[{'tag':_0x539489(0x25c),'attrs':{'stroke':'currentColor','d':_0x539489(0x28d),'strokeLinecap':_0x539489(0x231),'strokeLinejoin':_0x539489(0x231),'strokeWidth':1.2}}]},{'tag':_0x539489(0x2a7),'attrs':{},'children':[{'tag':_0x539489(0x2ee),'attrs':{'id':_0x539489(0x189)},'children':[{'tag':_0x539489(0x25c),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x539489(0x189)]},Dt=_0x4b1ce3(function(_0x2d5808,_0x4a465b){const _0x34ea80=_0x539489;return _0x2c83b0(Fe,Object['assign']({},_0x2d5808,{'id':_0x34ea80(0x1f3),'ref':_0x4a465b,'icon':Yi}));});Dt['displayName']=_0x539489(0x1d1);var ji={'tag':'svg','attrs':{'xmlns':_0x539489(0x10c),'fill':'none','viewBox':_0x539489(0x148),'width':_0x539489(0x122),'height':_0x539489(0x122)},'children':[{'tag':'g','attrs':{'clipPath':_0x539489(0x230)},'children':[{'tag':_0x539489(0x25c),'attrs':{'stroke':_0x539489(0x288),'d':_0x539489(0x106),'strokeLinecap':_0x539489(0x231),'strokeLinejoin':_0x539489(0x231),'strokeWidth':1.2}}]},{'tag':_0x539489(0x2a7),'attrs':{},'children':[{'tag':_0x539489(0x2ee),'attrs':{'id':_0x539489(0x221)},'children':[{'tag':_0x539489(0x25c),'attrs':{'fill':_0x539489(0x14d),'d':_0x539489(0x12e),'transform':_0x539489(0x2cb)}}]}]}],'defIds':[_0x539489(0x221)]},Nt=_0x4b1ce3(function(_0x237637,_0x119034){const _0xc624d2=_0x539489;return _0x2c83b0(Fe,Object[_0xc624d2(0x269)]({},_0x237637,{'id':_0xc624d2(0x314),'ref':_0x119034,'icon':ji}));});Nt[_0x539489(0x23a)]=_0x539489(0x2b2);function Vi(_0x3d9a16){const _0x491f38=_0x539489;switch(_0x3d9a16){case _0x3dcbc7[_0x491f38(0x1c3)]:return _0x491f38(0x267);case _0x3dcbc7[_0x491f38(0x268)]:return _0x491f38(0x173);case _0x3dcbc7[_0x491f38(0x1ef)]:return'collabStatus.fetchMiss';case _0x3dcbc7[_0x491f38(0x292)]:return'collabStatus.notCollab';case _0x3dcbc7[_0x491f38(0x1e5)]:case _0x3dcbc7['AWAITING_WITH_PENDING']:return _0x491f38(0x161);case _0x3dcbc7[_0x491f38(0x29a)]:case _0x3dcbc7[_0x491f38(0x1cf)]:return _0x491f38(0x1bb);}}function Wi(_0x18063b){const _0x45cd7f=_0x539489,{status$:_0x1df088}=_0x18063b,_0x200e90=_0x56d175(_0x1df088,_0x3dcbc7['NOT_COLLAB']),_0x27d0b1=_0x5d8043(_0x372382),_0x2726ef=_0x5d8043(_0x36a3b7),_0x59c752=_0x200e90!==_0x3dcbc7[_0x45cd7f(0x1c3)],_0x39e8b7=_0x27d0b1['t'](Vi(_0x200e90)),_0x5f0c96=_0x59c752?_0x5edf3d(Nt,{}):_0x5edf3d(Dt,{}),_0x32b3c7=_0x119b65(()=>{const _0x44d066=_0x45cd7f;_0x59c752||_0x2726ef[_0x44d066(0x2cc)]();},[_0x59c752,_0x2726ef]);function _0x48fb1f(){const _0x38d91c=_0x45cd7f;return _0x1e9110(_0x38d91c(0x2c2),{'className':_0x38d91c(0x255),'onClick':_0x32b3c7,'children':[_0x5edf3d('div',{'className':_0x4acf90(_0x38d91c(0x160),{'univer-text-green-500':_0x59c752,'univer-text-red-500':!_0x59c752}),'children':_0x5f0c96}),_0x5edf3d(_0x38d91c(0x2c2),{'className':_0x38d91c(0x304),'children':_0x39e8b7})]});}return _0x59c752?_0x48fb1f():_0x5edf3d(_0x16db95,{'title':_0x27d0b1['t'](_0x45cd7f(0x175)),'children':_0x48fb1f()});}var Xi=Object[_0x539489(0x1c1)],Gi=(_0x40ba7f,_0x580e34,_0x4453c1,_0x50f3e9)=>{const _0x1c3a24=_0x539489;for(var _0x28017d=_0x50f3e9>0x1?void 0x0:_0x50f3e9?Xi(_0x580e34,_0x4453c1):_0x580e34,_0x2fa9c2=_0x40ba7f[_0x1c3a24(0x23d)]-0x1,_0x576cee;_0x2fa9c2>=0x0;_0x2fa9c2--)(_0x576cee=_0x40ba7f[_0x2fa9c2])&&(_0x28017d=_0x576cee(_0x28017d)||_0x28017d);return _0x28017d;},Q=(_0x543992,_0x129fa7)=>(_0x2e0d50,_0x40ed2d)=>_0x129fa7(_0x2e0d50,_0x40ed2d,_0x543992);let te=class extends _0x31f0f7{constructor(_0x4ea990,_0x61e2c6,_0x3829c3,_0xcea8a){const _0x2a5b52=_0x539489;super(),_(this,_0x2a5b52(0x13d),new _0x5ae23c(_0x3dcbc7[_0x2a5b52(0x292)])),(this[_0x2a5b52(0x30a)]=_0x4ea990,this[_0x2a5b52(0x1de)]=_0x61e2c6,this['_collaborationController']=_0x3829c3,this[_0x2a5b52(0x1d3)]=_0xcea8a,this[_0x2a5b52(0x232)](),this['_initStatusListener']());}[_0x539489(0x1c2)](){const _0x4e220b=_0x539489;this[_0x4e220b(0x12d)](this[_0x4e220b(0x30a)][_0x4e220b(0x244)][_0x4e220b(0x10a)](_0x12f195(()=>{const _0x234efe=_0x4e220b,_0x38fd51=this[_0x234efe(0x30a)][_0x234efe(0x2fe)]();return _0x38fd51?this['_collaborationController'][_0x234efe(0x1bc)](_0x38fd51['getUnitId']()):_0x228a94(null);}),_0x12f195(_0x4c7799=>_0x4c7799?_0x4c7799[_0x4e220b(0x2a8)]:_0x228a94(_0x3dcbc7[_0x4e220b(0x292)])))[_0x4e220b(0x2f2)](_0x3a3bd9=>{const _0x24c54e=_0x4e220b;this[_0x24c54e(0x13d)][_0x24c54e(0x2e0)](_0x3a3bd9);}));}['_initStatusComponent'](){const _0x513d1d=_0x539489;this[_0x513d1d(0x12d)](this[_0x513d1d(0x1d3)][_0x513d1d(0x174)](_0x433118[_0x513d1d(0x118)],()=>_0x1a753a(Ki({'status$':this[_0x513d1d(0x13d)][_0x513d1d(0x2c7)]()}),this['_injector'])));}};te=Gi([Q(0x0,_0x15d220),Q(0x1,_0x59cc1b(_0x3916b4)),Q(0x2,_0x59cc1b(_0x45c5a2)),Q(0x3,_0x5a28ae)],te);function Ki(_0x112669){const {status$:_0x21073a}=_0x112669;return function(){return _0x5edf3d(Wi,{'status$':_0x21073a});};}var zi=Object['getOwnPropertyDescriptor'],Ji=(_0x570d9b,_0x3d80f7,_0x309a1a,_0x3f41b7)=>{for(var _0x4265ed=_0x3f41b7>0x1?void 0x0:_0x3f41b7?zi(_0x3d80f7,_0x309a1a):_0x3d80f7,_0x4e5f84=_0x570d9b['length']-0x1,_0x3930e1;_0x4e5f84>=0x0;_0x4e5f84--)(_0x3930e1=_0x570d9b[_0x4e5f84])&&(_0x4265ed=_0x3930e1(_0x4265ed)||_0x4265ed);return _0x4265ed;},B=(_0x573461,_0x5d1da6)=>(_0x23ad3f,_0x4b85bc)=>_0x5d1da6(_0x23ad3f,_0x4b85bc,_0x573461);let se=class extends _0x31f0f7{constructor(_0x5ccc5c,_0xa8e622,_0x4eb1d6,_0x14a707,_0x5b4b8b,_0x222b40){const _0x5adf6c=_0x539489;super(),this[_0x5adf6c(0x263)]=_0x5ccc5c,this['_localCacheService']=_0xa8e622,this[_0x5adf6c(0x21a)]=_0x4eb1d6,this[_0x5adf6c(0x1dc)]=_0x14a707,this[_0x5adf6c(0x1ba)]=_0x5b4b8b,this[_0x5adf6c(0x147)]=_0x222b40,this[_0x5adf6c(0x24f)](),this[_0x5adf6c(0x117)]();}['_setupBeforeClosingHandler'](){const _0x8ef478=_0x539489;this[_0x8ef478(0x12d)](this[_0x8ef478(0x263)][_0x8ef478(0x27a)](()=>{const _0x1ea673=_0x8ef478;if(this[_0x1ea673(0x217)][_0x1ea673(0x29c)][_0x1ea673(0x138)])return this[_0x1ea673(0x147)]['t'](_0x1ea673(0x1b4));}));}[_0x539489(0x117)](){const _0x5dc5d6=_0x539489;this[_0x5dc5d6(0x12d)](this[_0x5dc5d6(0x21a)][_0x5dc5d6(0x273)][_0x5dc5d6(0x2f2)](_0x4fd165=>{const _0x2df81c=_0x5dc5d6;_0x4fd165['id']===_0xb3869['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x2df81c(0x28b)]({'type':_0x1de17e['Warning'],'content':this[_0x2df81c(0x147)]['t'](_0x2df81c(0x2ad))}),_0x4fd165['id']===_0xb3869['CLOSE_ROOM']&&this[_0x2df81c(0x1dc)][_0x2df81c(0x28b)]({'type':_0x1de17e[_0x2df81c(0x223)],'content':this[_0x2df81c(0x147)]['t'](_0x2df81c(0x179))}),_0x4fd165['id']===_0xb3869['PERMISSION_DENIED']&&this[_0x2df81c(0x1ba)][_0x2df81c(0x28b)]({'title':this['_localeService']['t'](_0x2df81c(0x166)),'content':this[_0x2df81c(0x147)]['t'](_0x2df81c(0x187)),'type':_0x2df81c(0x1bd),'duration':0x0}),_0x4fd165['id']===_0xb3869[_0x2df81c(0x268)]&&this[_0x2df81c(0x1dc)]['show']({'type':_0x1de17e[_0x2df81c(0x11b)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x4fd165[_0x2df81c(0x10d)]+')'}),_0x4fd165['id']===_0xb3869[_0x2df81c(0x203)]&&this['_messageService'][_0x2df81c(0x28b)]({'type':_0x1de17e[_0x2df81c(0x223)],'content':this[_0x2df81c(0x147)]['t'](_0x4fd165[_0x2df81c(0x10d)]||'')}),_0x4fd165['id']===_0xb3869[_0x2df81c(0x119)]&&this['_messageService'][_0x2df81c(0x28b)]({'type':_0x1de17e[_0x2df81c(0x223)],'content':this[_0x2df81c(0x147)]['t'](_0x2df81c(0x30d))}),_0x4fd165['id']===_0xb3869[_0x2df81c(0x294)]&&this[_0x2df81c(0x1dc)][_0x2df81c(0x28b)]({'type':_0x1de17e[_0x2df81c(0x11b)],'content':this[_0x2df81c(0x147)]['t'](_0x2df81c(0x2a2))}),_0x4fd165['id']===_0xb3869[_0x2df81c(0x2ae)]&&this[_0x2df81c(0x1dc)][_0x2df81c(0x28b)]({'type':_0x1de17e['Error'],'content':this[_0x2df81c(0x147)]['t'](_0x2df81c(0x18a))});}));}};se=Ji([B(0x0,_0x155316),B(0x1,_0xdadcec),B(0x2,_0x59cc1b(_0x1c2dfc)),B(0x3,_0x379090),B(0x4,_0x39bd0f),B(0x5,_0x59cc1b(_0x372382))],se);const Zi=_0x539489(0x2a6),et={},Ut=_0x2757e0(_0x539489(0x1aa));var Qi=Object['getOwnPropertyDescriptor'],qi=(_0x12b412,_0x1d36d0,_0x201665,_0x4d96c5)=>{const _0x489f2f=_0x539489;for(var _0x4f453f=_0x4d96c5>0x1?void 0x0:_0x4d96c5?Qi(_0x1d36d0,_0x201665):_0x1d36d0,_0x438a60=_0x12b412[_0x489f2f(0x23d)]-0x1,_0x454c84;_0x438a60>=0x0;_0x438a60--)(_0x454c84=_0x12b412[_0x438a60])&&(_0x4f453f=_0x454c84(_0x4f453f)||_0x4f453f);return _0x4f453f;},G=(_0x15d5ba,_0xba8276)=>(_0x115ef8,_0x4da255)=>_0xba8276(_0x115ef8,_0x4da255,_0x15d5ba);let ie=class extends _0x31cb63{constructor(_0x639d68,_0x1867b7,_0x5b3ad6,_0x3ce553,_0x13c958){const _0x49adb7=_0x539489;super(),this['_urlService']=_0x639d68,this['_logService']=_0x1867b7,this[_0x49adb7(0x247)]=_0x5b3ad6,this[_0x49adb7(0x149)]=_0x3ce553,_0x13c958?_0x13c958==null||_0x13c958[_0x49adb7(0x245)]()['then'](()=>this['_init']()):(this['_logService'][_0x49adb7(0x2f8)]('[CollaborationDataLoaderController]',_0x49adb7(0x305)),this['_init']());}async[_0x539489(0x272)](){const _0x2d226a=_0x539489,_0x24f668=this[_0x2d226a(0x1a0)][_0x2d226a(0x124)](_0x2d226a(0x162)),_0x38907a=this[_0x2d226a(0x1a0)][_0x2d226a(0x124)](_0x2d226a(0x13e)),_0x382c1=this[_0x2d226a(0x1a0)][_0x2d226a(0x124)]('subunit');if(!_0x24f668||!_0x38907a){this[_0x2d226a(0x311)][_0x2d226a(0x2f8)](_0x2d226a(0x23c),_0x2d226a(0x184));return;}const _0x5737c8=await this[_0x2d226a(0x149)][_0x2d226a(0x1c5)](_0x24f668,Number(_0x38907a),_0x382c1);_0x5737c8&&_0x5737c8 instanceof _0x636a9f&&this[_0x2d226a(0x30e)](_0x5737c8);}async[_0x539489(0x30e)](_0x28991d){const _0x1e4b0c=_0x539489;await this[_0x1e4b0c(0x224)](_0x28991d),_0x28991d[_0x1e4b0c(0x1e7)][_0x1e4b0c(0x10a)](_0x207bbb(this[_0x1e4b0c(0x2eb)]))['subscribe'](_0x185332=>{const _0x8d1083=_0x1e4b0c;_0x185332&&this[_0x8d1083(0x168)](_0x185332);}),this[_0x1e4b0c(0x1a0)][_0x1e4b0c(0x259)][_0x1e4b0c(0x10a)](_0x207bbb(this[_0x1e4b0c(0x2eb)]))[_0x1e4b0c(0x2f2)](()=>this[_0x1e4b0c(0x224)](_0x28991d));}['_updateURLWithCurrentState'](_0x2e6b29,_0x29655e=!0x1){const _0x163669=_0x539489,_0x27418c=this[_0x163669(0x1a0)]['getParam'](_0x163669(0x2d3));_0x2e6b29['getSheetId']()!==_0x27418c&&this[_0x163669(0x1a0)][_0x163669(0x115)](_0x163669(0x2d3),_0x2e6b29[_0x163669(0x227)](),_0x29655e);}async['_updateSubUnitFromURLParams'](_0x30f89e){const _0xdab221=_0x539489;var _0x2bf354;const _0x194f77=this[_0xdab221(0x1a0)][_0xdab221(0x124)](_0xdab221(0x2d3));if(!_0x194f77||!_0x30f89e[_0xdab221(0x202)](_0x194f77)){const _0x5c3851=_0x30f89e[_0xdab221(0x235)]()[0x0],_0x56a8ae=_0x30f89e[_0xdab221(0x202)](_0x5c3851);if(!_0x56a8ae)return;this[_0xdab221(0x168)](_0x56a8ae,!0x0),await this[_0xdab221(0x247)][_0xdab221(0x2bc)](_0x384233['id'],{'unitId':_0x30f89e[_0xdab221(0x274)](),'subUnitId':_0x5c3851});return;}((_0x2bf354=_0x30f89e[_0xdab221(0x1dd)]())==null?void 0x0:_0x2bf354[_0xdab221(0x227)]())!==_0x194f77&&await this[_0xdab221(0x247)][_0xdab221(0x2bc)](_0x384233['id'],{'unitId':_0x30f89e[_0xdab221(0x274)](),'subUnitId':_0x194f77});}};ie=qi([G(0x0,Ut),G(0x1,_0x48de10),G(0x2,_0xb1c3d2),G(0x3,_0x59cc1b(_0x4c774b)),G(0x4,_0x1a5be5(_0x5ac95b))],ie);var en=Object['getOwnPropertyDescriptor'],tn=(_0x495f49,_0x1e76ae,_0x1eff2e,_0xed1504)=>{const _0x553853=_0x539489;for(var _0x1726ef=_0xed1504>0x1?void 0x0:_0xed1504?en(_0x1e76ae,_0x1eff2e):_0x1e76ae,_0x52a35f=_0x495f49[_0x553853(0x23d)]-0x1,_0x821ad7;_0x52a35f>=0x0;_0x52a35f--)(_0x821ad7=_0x495f49[_0x52a35f])&&(_0x1726ef=_0x821ad7(_0x1726ef)||_0x1726ef);return _0x1726ef;},pe=(_0x2b2418,_0x1a2456)=>(_0x2a56c4,_0x29e8c9)=>_0x1a2456(_0x2a56c4,_0x29e8c9,_0x2b2418);let ne=class{constructor(_0x586807,_0x8d33ee,_0x4d06b8){const _0x5847e1=_0x539489;this[_0x5847e1(0x1de)]=_0x586807,this['_transformService']=_0x8d33ee,this['_renderManagerService']=_0x4d06b8;}[_0x539489(0x2e4)](_0x3527bf){const _0xaf9f36=_0x539489;this[_0xaf9f36(0x17b)](_0x3527bf),this[_0xaf9f36(0x1a4)](_0x3527bf);}[_0x539489(0x1ea)](_0x48f973){const _0xa15525=_0x539489,{unitID:_0x42b9f8}=_0x48f973,_0x2fc4f9=this[_0xa15525(0x12c)][_0xa15525(0x1a8)](_0x42b9f8)['with'](_0x243f23),{redoCache:_0x3180f9}=_0x2fc4f9[_0xa15525(0x303)]();if(_0x3180f9[_0xa15525(0x23d)]===0x0)return _0x48f973;let _0x448df4=_0x1f28b5[_0xa15525(0x1fc)](_0x48f973['mutations'][0x0]);for(let _0x512250=0x0;_0x512250<_0x3180f9[_0xa15525(0x23d)];_0x512250++){const _0x1a6542={'id':_0xa15525(0x12f),'params':{..._0x3180f9[_0x512250]}},_0x29a52c=this[_0xa15525(0x251)][_0xa15525(0x2b8)](_0x448df4,_0x1a6542,!0x1);if(_0x5f580a(_0x29a52c))throw _0x29a52c['error'];_0x448df4=_0x29a52c[_0xa15525(0x2ab)];}return{..._0x1f28b5[_0xa15525(0x1fc)](_0x48f973),'mutations':[_0x448df4]};}[_0x539489(0x17b)](_0x215b6f){const _0x1e2910=_0x539489,{unitID:_0xfc2ea3}=_0x215b6f,_0x540ee9=this[_0x1e2910(0x12c)][_0x1e2910(0x1a8)](_0xfc2ea3)['with'](_0x243f23),{undoCache:_0x8960bc,redoCache:_0x282a22}=_0x540ee9[_0x1e2910(0x303)]();if(_0x8960bc[_0x1e2910(0x23d)]===0x0||_0x282a22[_0x1e2910(0x23d)]===0x0)return;const _0x1f3a80=[],_0x1e389f=[];let _0x1c5b18=_0x1f28b5[_0x1e2910(0x1fc)](_0x215b6f[_0x1e2910(0x12b)][0x0]),_0x5aa736=_0x1f28b5[_0x1e2910(0x1fc)](_0x215b6f[_0x1e2910(0x12b)][0x0]);for(let _0x1d54b7=_0x8960bc['length']-0x1;_0x1d54b7>=0x0;_0x1d54b7--){const _0xfa6299={'id':'doc.mutation.rich-text-editing','params':{..._0x8960bc[_0x1d54b7]}},_0x1d670f={'id':_0x1e2910(0x12f),'params':{..._0x282a22[_0x1d54b7]}},_0x4a439d=this[_0x1e2910(0x251)][_0x1e2910(0x2b8)](_0x1c5b18,_0xfa6299,!0x1),_0x17299e=this[_0x1e2910(0x251)][_0x1e2910(0x2b8)](_0x5aa736,_0x1d670f,!0x1);if(_0x5f580a(_0x4a439d))throw _0x4a439d[_0x1e2910(0x1bd)];if(_0x5f580a(_0x17299e))throw _0x17299e[_0x1e2910(0x1bd)];_0x1f3a80['unshift'](_0x4a439d['m2Prime'][_0x1e2910(0x2b6)]),_0x1e389f[_0x1e2910(0x1e3)](_0x17299e['m2Prime'][_0x1e2910(0x2b6)]),_0x1c5b18=_0x4a439d['m1Prime'],_0x5aa736=_0x17299e[_0x1e2910(0x2ab)];}_0x540ee9[_0x1e2910(0x240)]({'undoCache':_0x1f3a80,'redoCache':_0x1e389f});}[_0x539489(0x1a4)](_0x46518c){const _0x31abbf=_0x539489,{unitID:_0xbdc469}=_0x46518c,_0x59d458=this['_renderManagerService'][_0x31abbf(0x1a8)](_0xbdc469)[_0x31abbf(0x2f0)](_0x243f23),_0x577574=_0x59d458['getActiveRange']();if(_0x577574==null)return;const _0x56670a=[{'id':_0x31abbf(0x12f),'params':{'unitId':_0x46518c['unitID'],'actions':null,'textRanges':[_0x577574]}}],_0x428b32=this[_0x31abbf(0x251)]['transformMutationsWithChangeset'](_0x46518c,_0x56670a);if(!_0x3f0206(_0x428b32))throw _0x428b32[_0x31abbf(0x1bd)];const _0x2db388=_0x428b32[_0x31abbf(0x2a4)][0x0]['params']['textRanges'];Array[_0x31abbf(0x1ca)](_0x2db388)&&_0x2db388[_0x31abbf(0x23d)]&&_0x59d458[_0x31abbf(0x265)](_0x2db388[0x0]);}};ne=tn([pe(0x0,_0x59cc1b(_0x3916b4)),pe(0x1,_0x3a6923),pe(0x2,_0x5ea5b2)],ne);var sn=Object[_0x539489(0x1c1)],nn=(_0x217b29,_0x2d9d06,_0x34481d,_0x41d760)=>{for(var _0x206001=_0x41d760>0x1?void 0x0:_0x41d760?sn(_0x2d9d06,_0x34481d):_0x2d9d06,_0xc21d0c=_0x217b29['length']-0x1,_0x81872e;_0xc21d0c>=0x0;_0xc21d0c--)(_0x81872e=_0x217b29[_0xc21d0c])&&(_0x206001=_0x81872e(_0x206001)||_0x206001);return _0x206001;},Ce=(_0x4b984f,_0x39e274)=>(_0x5c35b3,_0x5031f3)=>_0x39e274(_0x5c35b3,_0x5031f3,_0x4b984f);let re=class{constructor(_0x1bca18,_0x5e617c,_0x24d246){const _0x22e8fc=_0x539489;this[_0x22e8fc(0x1de)]=_0x1bca18,this[_0x22e8fc(0x251)]=_0x5e617c,this[_0x22e8fc(0x2b1)]=_0x24d246;}[_0x539489(0x116)](_0x4f2e59){this['_transformHistoryAndStateStack'](_0x4f2e59);}['transformRemoteChangeset'](_0xb66132){const _0x35246f=_0x539489,{unitID:_0x451e72}=_0xb66132,{collaboration:_0x3e5ee2}=this['_docStateChangeManagerService'][_0x35246f(0x135)](_0x451e72);if(_0x3e5ee2[_0x35246f(0x23d)]===0x0)return _0xb66132;let _0x4d229f=_0x1f28b5[_0x35246f(0x1fc)](_0xb66132[_0x35246f(0x12b)][0x0]);for(let _0x4926cd=0x0;_0x4926cd<_0x3e5ee2[_0x35246f(0x23d)];_0x4926cd++){const _0x42ed3e={'id':_0x35246f(0x12f),'params':{'unitId':_0x3e5ee2[_0x4926cd][_0x35246f(0x123)],..._0x3e5ee2[_0x4926cd][_0x35246f(0x22e)]}},_0x314b10=this[_0x35246f(0x251)][_0x35246f(0x2b8)](_0x4d229f,_0x42ed3e,!0x1);if(_0x5f580a(_0x314b10))throw _0x314b10['error'];_0x4d229f=_0x314b10['m1Prime'];}return{..._0x1f28b5['deepClone'](_0xb66132),'mutations':[_0x4d229f]};}[_0x539489(0x170)](_0x50af2b){const _0x153842=_0x539489,{unitID:_0x43da3d}=_0x50af2b,{history:_0x4e0156,collaboration:_0xb78df7}=this[_0x153842(0x2b1)]['getStateCache'](_0x43da3d);if(_0x4e0156['length']===0x0&&_0xb78df7[_0x153842(0x23d)]===0x0)return;const _0x408c1c=[],_0x208225=[];let _0x22c1b9=_0x1f28b5[_0x153842(0x1fc)](_0x50af2b[_0x153842(0x12b)][0x0]),_0x2e422b=_0x1f28b5[_0x153842(0x1fc)](_0x50af2b[_0x153842(0x12b)][0x0]);for(let _0x293f70=_0x4e0156['length']-0x1;_0x293f70>=0x0;_0x293f70--){const _0x3fb6f1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4e0156[_0x293f70][_0x153842(0x123)],..._0x4e0156[_0x293f70][_0x153842(0x275)]}},_0x35f914={'id':_0x153842(0x12f),'params':{'unitId':_0x4e0156[_0x293f70][_0x153842(0x123)],..._0x4e0156[_0x293f70][_0x153842(0x22e)]}},_0x59cd19=this['_transformService'][_0x153842(0x2b8)](_0x22c1b9,_0x3fb6f1,!0x1),_0x355d45=this['_transformService']['transformMutation'](_0x2e422b,_0x35f914,!0x1);if(_0x5f580a(_0x59cd19))throw _0x59cd19[_0x153842(0x1bd)];if(_0x5f580a(_0x355d45))throw _0x355d45[_0x153842(0x1bd)];_0x408c1c[_0x153842(0x1e3)]({..._0x4e0156[_0x293f70],'undoState':_0x59cd19[_0x153842(0x2a4)][_0x153842(0x2b6)],'redoState':_0x355d45[_0x153842(0x2a4)]['params']}),_0x22c1b9=_0x59cd19[_0x153842(0x2ab)],_0x2e422b=_0x355d45[_0x153842(0x2ab)];}_0x22c1b9=_0x1f28b5[_0x153842(0x1fc)](_0x50af2b[_0x153842(0x12b)][0x0]),_0x2e422b=_0x1f28b5['deepClone'](_0x50af2b[_0x153842(0x12b)][0x0]);for(let _0x46ecc7=_0xb78df7['length']-0x1;_0x46ecc7>=0x0;_0x46ecc7--){const _0x98901b={'id':_0x153842(0x12f),'params':{'unitId':_0xb78df7[_0x46ecc7][_0x153842(0x123)],..._0xb78df7[_0x46ecc7][_0x153842(0x275)]}},_0x531f9a={'id':_0x153842(0x12f),'params':{'unitId':_0xb78df7[_0x46ecc7][_0x153842(0x123)],..._0xb78df7[_0x46ecc7]['redoState']}},_0x88ae5a=this['_transformService'][_0x153842(0x2b8)](_0x22c1b9,_0x98901b,!0x1),_0x139097=this['_transformService'][_0x153842(0x2b8)](_0x2e422b,_0x531f9a,!0x1);if(_0x5f580a(_0x88ae5a))throw _0x88ae5a[_0x153842(0x1bd)];if(_0x5f580a(_0x139097))throw _0x139097[_0x153842(0x1bd)];_0x208225[_0x153842(0x1e3)]({..._0xb78df7[_0x46ecc7],'undoState':_0x88ae5a[_0x153842(0x2a4)]['params'],'redoState':_0x139097['m2Prime']['params']}),_0x22c1b9=_0x88ae5a[_0x153842(0x2ab)],_0x2e422b=_0x139097[_0x153842(0x2ab)];}this[_0x153842(0x2b1)][_0x153842(0x229)](_0x43da3d,{'history':_0x408c1c,'collaboration':_0x208225});}};re=nn([Ce(0x0,_0x59cc1b(_0x3916b4)),Ce(0x1,_0x3a6923),Ce(0x2,_0x59cc1b(_0x1663ff))],re);var rn=Object[_0x539489(0x1c1)],on=(_0x3a436c,_0x1ead21,_0x1b520c,_0x4a5409)=>{const _0x3fdcc2=_0x539489;for(var _0x596502=_0x4a5409>0x1?void 0x0:_0x4a5409?rn(_0x1ead21,_0x1b520c):_0x1ead21,_0x1a4ebc=_0x3a436c[_0x3fdcc2(0x23d)]-0x1,_0x21bb86;_0x1a4ebc>=0x0;_0x1a4ebc--)(_0x21bb86=_0x3a436c[_0x1a4ebc])&&(_0x596502=_0x21bb86(_0x596502)||_0x596502);return _0x596502;},tt=(_0x69bd88,_0xbf5375)=>(_0x15af14,_0x5c98d0)=>_0xbf5375(_0x15af14,_0x5c98d0,_0x69bd88);let oe=class{constructor(_0x401afb,_0x24d270){const _0x33f6a1=_0x539489;this['_injector']=_0x401afb,this[_0x33f6a1(0x251)]=_0x24d270;}[_0x539489(0x2ba)](_0x442f56){const _0x4aad6c=_0x539489;var _0x2750b9;const _0x26af73=this[_0x4aad6c(0x1de)][_0x4aad6c(0x144)](_0xe486a6),_0xb059db=(_0x2750b9=_0x26af73['getDocRanges']())!=null?_0x2750b9:[];if(_0xb059db['length']===0x0)return;const _0x23e8c9=_0x442f56[_0x4aad6c(0x2ac)],_0x494df3=[{'id':_0x4aad6c(0x12f),'params':{'unitId':_0x23e8c9,'actions':null,'textRanges':_0xb059db}}],_0x1d475b=this[_0x4aad6c(0x251)][_0x4aad6c(0x200)](_0x442f56,_0x494df3);if(!_0x3f0206(_0x1d475b))throw _0x1d475b[_0x4aad6c(0x1bd)];const _0x20246e=_0x1d475b[_0x4aad6c(0x2a4)][0x0][_0x4aad6c(0x2b6)][_0x4aad6c(0x128)];Array['isArray'](_0x20246e)&&_0x20246e[_0x4aad6c(0x23d)]&&_0x26af73['replaceDocRanges'](_0x20246e,{'unitId':_0x23e8c9,'subUnitId':_0x23e8c9},!0x1);}};oe=on([tt(0x0,_0x59cc1b(_0x3916b4)),tt(0x1,_0x3a6923)],oe);var an=Object[_0x539489(0x1c1)],cn=(_0x16a36a,_0xcdede1,_0x146acd,_0x4a69a4)=>{const _0x1145c3=_0x539489;for(var _0x40c3b4=_0x4a69a4>0x1?void 0x0:_0x4a69a4?an(_0xcdede1,_0x146acd):_0xcdede1,_0x10a171=_0x16a36a[_0x1145c3(0x23d)]-0x1,_0x5331a3;_0x10a171>=0x0;_0x10a171--)(_0x5331a3=_0x16a36a[_0x10a171])&&(_0x40c3b4=_0x5331a3(_0x40c3b4)||_0x40c3b4);return _0x40c3b4;},U=(_0x5da396,_0x164720)=>(_0x10fe35,_0x1f7598)=>_0x164720(_0x10fe35,_0x1f7598,_0x5da396);let ae=class extends _0x31f0f7{constructor(_0x3eaf0b,_0x49ae25,_0x37c31d,_0x401af8,_0x5809e7,_0x2b82c0,_0x4c1974,_0x4d6108){const _0xa5544f=_0x539489;super(),_(this,_0xa5544f(0x13d),new _0x5ae23c(_0x3dcbc7[_0xa5544f(0x292)])),(this[_0xa5544f(0x2b1)]=_0x3eaf0b,this['_collaborationController']=_0x49ae25,this[_0xa5544f(0x250)]=_0x37c31d,this[_0xa5544f(0x165)]=_0x401af8,this[_0xa5544f(0x17a)]=_0x5809e7,this[_0xa5544f(0x2dd)]=_0x2b82c0,this[_0xa5544f(0x1dc)]=_0x4c1974,this[_0xa5544f(0x147)]=_0x4d6108,this[_0xa5544f(0x2d8)]());}['_initEntityListener'](){const _0x5b5be3=_0x539489;this[_0x5b5be3(0x12d)](this['_collaborationController'][_0x5b5be3(0x25a)][_0x5b5be3(0x2f2)](_0x2cc252=>{const _0x36d496=_0x5b5be3,_0x5a05e4=this[_0x36d496(0x2b1)][_0x36d496(0x1cb)][_0x36d496(0x2f2)](_0x262dc8=>{const _0x39c5d6=_0x36d496;if(_0x262dc8==null)return;const {unitId:_0xa22069,redoState:_0xf6990a,commandId:_0x12d5cd}=_0x262dc8;if(_0xa22069!==_0x2cc252[_0x39c5d6(0x2ac)])return;const _0x10b531={'id':_0x12d5cd,'type':_0x2c1b06[_0x39c5d6(0x155)],'params':{'unitId':_0xa22069,'actions':_0xf6990a['actions'],'textRanges':null}};_0x2cc252[_0x39c5d6(0x199)](_0x10b531);});if(_0x2cc252[_0x36d496(0x12d)](_0x5a05e4),_0x2cc252 instanceof _0x35c1b0){const _0x2bddda={'onTransformIME':_0x45d2b8=>this['_docTransformIMECacheService'][_0x36d496(0x2e4)](_0x45d2b8),'onTransformState':_0x13a7a1=>this[_0x36d496(0x165)][_0x36d496(0x116)](_0x13a7a1),'onTransformSelections':_0x2eaeff=>this[_0x36d496(0x17a)][_0x36d496(0x2ba)](_0x2eaeff),'onSyncEditingCollabCursor':_0x295735=>this[_0x36d496(0x2dd)][_0x36d496(0x18c)](_0x295735),'onTransformRemoteChangesetByIMECache':_0x38bed2=>this[_0x36d496(0x250)][_0x36d496(0x1ea)](_0x38bed2),'onTransformRemoteChangesetByStateCache':_0x281b55=>this['_docTransformStateCacheService'][_0x36d496(0x1ea)](_0x281b55)};_0x2cc252[_0x36d496(0x104)](_0x2bddda);}}));}};ae=cn([U(0x0,_0x59cc1b(_0x1663ff)),U(0x1,_0x59cc1b(_0x45c5a2)),U(0x2,_0x59cc1b(ne)),U(0x3,_0x59cc1b(re)),U(0x4,_0x59cc1b(oe)),U(0x5,_0x59cc1b(He)),U(0x6,_0x379090),U(0x7,_0x59cc1b(_0x372382))],ae);var ln=Object[_0x539489(0x1c1)],_n=(_0x49ad87,_0x550a87,_0x2f282b,_0x302956)=>{const _0x364f4d=_0x539489;for(var _0x988055=_0x302956>0x1?void 0x0:_0x302956?ln(_0x550a87,_0x2f282b):_0x550a87,_0x2cb28d=_0x49ad87[_0x364f4d(0x23d)]-0x1,_0x25c895;_0x2cb28d>=0x0;_0x2cb28d--)(_0x25c895=_0x49ad87[_0x2cb28d])&&(_0x988055=_0x25c895(_0x988055)||_0x988055);return _0x988055;},Ee=(_0x269a38,_0x9e632d)=>(_0x26dbcc,_0x5db430)=>_0x9e632d(_0x26dbcc,_0x5db430,_0x269a38);let we=class extends _0x31f0f7{constructor(_0xe967dc,_0xa18f11,_0x11cc14){const _0x41e0f3=_0x539489;super(),_(this,_0x41e0f3(0x2ed),new Map()),_(this,_0x41e0f3(0x2da),new Map()),_(this,_0x41e0f3(0x19f),!0x1),(this[_0x41e0f3(0x2ec)]=_0xe967dc,this[_0x41e0f3(0x2d0)]=_0xa18f11,this[_0x41e0f3(0x296)]=_0x11cc14);}[_0x539489(0x1f5)](){this['_disabled']=!0x0;}[_0x539489(0x249)](){const _0x20e23f=_0x539489;this[_0x20e23f(0x19f)]=!0x1;}get[_0x539489(0x29c)](){return this['_saveTaskMap'];}[_0x539489(0x24e)](){const _0x52fa1e=_0x539489;this[_0x52fa1e(0x158)]()[_0x52fa1e(0x16b)](()=>super['dispose']());}async['loadOfflineData'](_0x30ffbb){const _0x22f368=_0x539489;return this[_0x22f368(0x19f)]?null:this[_0x22f368(0x2d0)][_0x22f368(0x1db)](_0xef3755(_0x30ffbb));}async[_0x539489(0x190)](_0x3a3f15,_0x13aeeb){const _0x4b61d5=_0x539489;return!!this[_0x4b61d5(0x2d0)][_0x4b61d5(0x1f1)](_0x3a3f15,_0x13aeeb);}[_0x539489(0x1d6)](_0x3b2f92,_0x86b81c,_0x3f8837,_0x5b5930){const _0x4e258e=_0x539489,_0x37650d=this[_0x4e258e(0x296)]['getCurrentRevOfUnit'](_0x3b2f92);this[_0x4e258e(0x2ed)][_0x4e258e(0x24c)](_0x3b2f92,{'unitID':_0x3b2f92,'type':_0x86b81c,'awaitingChangeset':_0x3f8837,'mutations':_0x5b5930,'rev':_0x37650d}),this[_0x4e258e(0x2da)][_0x4e258e(0x17e)](_0x3b2f92)||this['_scheduleSaving'](_0x3b2f92);}[_0x539489(0x279)](_0x5a8086){const _0x5161d8=_0x539489,_0x5181b7=this[_0x5161d8(0x171)]();_0x5181b7===0x0?this[_0x5161d8(0x1b1)](_0x5a8086):this[_0x5161d8(0x2da)][_0x5161d8(0x24c)](_0x5a8086,setTimeout(()=>this['_saveCache'](_0x5a8086),_0x5181b7));}[_0x539489(0x171)](){const _0x40ac9e=_0x539489;var _0x24a2b0;return(_0x24a2b0=this[_0x40ac9e(0x2ec)][_0x40ac9e(0x20d)](_0x399f20))!=null?_0x24a2b0:_0x48bc61;}[_0x539489(0x1b1)](_0xa5f71d){const _0xee3ba1=_0x539489,_0x2a42d1=this['_saveTaskMap'][_0xee3ba1(0x144)](_0xa5f71d);return _0x2a42d1!==void 0x0&&window[_0xee3ba1(0x143)](_0x2a42d1),this['_localStorageService'][_0xee3ba1(0x1f1)](_0xef3755(_0xa5f71d),this[_0xee3ba1(0x2ed)][_0xee3ba1(0x144)](_0xa5f71d))[_0xee3ba1(0x16b)](()=>this[_0xee3ba1(0x2da)]['delete'](_0xa5f71d));}async[_0x539489(0x158)](){const _0x2b0c94=_0x539489,_0x4ec143=[];this['_saveTaskMap'][_0x2b0c94(0x300)]((_0x2edb6c,_0x5955ac)=>{const _0x2f209d=_0x2b0c94;window[_0x2f209d(0x143)](_0x2edb6c),_0x4ec143['push'](this[_0x2f209d(0x1b1)](_0x5955ac)['then'](()=>{const _0x1084ac=_0x2f209d;this['_saveTaskMap'][_0x1084ac(0x2e1)](_0x5955ac);}));}),await Promise[_0x2b0c94(0x2ff)](_0x4ec143);}};we=_n([Ee(0x0,_0x37b078),Ee(0x1,_0x3d0aff),Ee(0x2,_0x59cc1b(_0x29566b))],we);class hn extends _0x31cb63{constructor(){const _0x185285=_0x539489;super(),_(this,_0x185285(0x259)),this[_0x185285(0x259)]=_0x592954(window,_0x185285(0x2ce))[_0x185285(0x10a)](_0x207bbb(this['dispose$']),_0x4a2f25(0x1),_0x2f9b22(void 0x0));}[_0x539489(0x115)](_0x2decdc,_0x5be541,_0x37f0c9=!0x1){const _0x3e37c4=_0x539489,_0x416889=new URL(window[_0x3e37c4(0x307)][_0x3e37c4(0x24b)]);_0x416889[_0x3e37c4(0x2d7)][_0x3e37c4(0x24c)](_0x2decdc,_0x5be541),_0x37f0c9?window[_0x3e37c4(0x16a)][_0x3e37c4(0x2d1)]('','',_0x416889['toString']()):window['history']['pushState']('','',_0x416889['toString']());}[_0x539489(0x1b0)](_0x35e7d0,_0x846a09=!0x1){const _0x2a10c6=_0x539489,_0x487891=new URL(window['location'][_0x2a10c6(0x24b)]);_0x487891['searchParams'][_0x2a10c6(0x2e1)](_0x35e7d0),_0x846a09?window[_0x2a10c6(0x16a)][_0x2a10c6(0x2d1)]('','',_0x487891[_0x2a10c6(0x28c)]()):window[_0x2a10c6(0x16a)][_0x2a10c6(0x11a)]('','',_0x487891[_0x2a10c6(0x28c)]());}[_0x539489(0x124)](_0x2f93e2){const _0x50935a=_0x539489;var _0x1ff6e1;return(_0x1ff6e1=new URL(window[_0x50935a(0x307)]['href'])[_0x50935a(0x2d7)]['get'](_0x2f93e2))!=null?_0x1ff6e1:void 0x0;}}var un=Object[_0x539489(0x167)],dn=Object[_0x539489(0x1c1)],fn=(_0x1cd013,_0x4f3129,_0xd16681)=>_0x4f3129 in _0x1cd013?un(_0x1cd013,_0x4f3129,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd16681}):_0x1cd013[_0x4f3129]=_0xd16681,Sn=(_0x3c40e7,_0x177464,_0x4c5d5f,_0x46e824)=>{for(var _0x2eb3a0=_0x46e824>0x1?void 0x0:_0x46e824?dn(_0x177464,_0x4c5d5f):_0x177464,_0x4d6343=_0x3c40e7['length']-0x1,_0x553d3f;_0x4d6343>=0x0;_0x4d6343--)(_0x553d3f=_0x3c40e7[_0x4d6343])&&(_0x2eb3a0=_0x553d3f(_0x2eb3a0)||_0x2eb3a0);return _0x2eb3a0;},Oe=(_0x44ad02,_0x246082)=>(_0x204e7d,_0x58072a)=>_0x246082(_0x204e7d,_0x58072a,_0x44ad02),mn=(_0x5689d2,_0x29f8a9,_0x430552)=>fn(_0x5689d2,_0x29f8a9+'',_0x430552);const In=_0x539489(0x18d);let Ae=class extends _0x22d501{constructor(_0x10f369=et,_0x5a5ac8,_0x473e65,_0x550924){const _0x13e598=_0x539489;super(),this[_0x13e598(0x29f)]=_0x10f369,this[_0x13e598(0x12c)]=_0x5a5ac8,this[_0x13e598(0x1de)]=_0x473e65,this[_0x13e598(0x2ec)]=_0x550924;const {..._0xb46096}=_0x58e399({},et,this['_config']);this[_0x13e598(0x2ec)]['setConfig'](Zi,_0xb46096);}[_0x539489(0x2f6)](){const _0x144cdf=_0x539489;this[_0x144cdf(0x20b)](),this[_0x144cdf(0x1e2)]();}[_0x539489(0x208)](){const _0x5855b9=_0x539489;this[_0x5855b9(0x316)]();}[_0x539489(0x20b)](){const _0x589f01=_0x539489;var _0x137eff;const _0x33da3f=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x24ff09,{'useClass':_0x4de0a1}],[_0xdadcec,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x583ca0(this['_injector'],_0x5207de(_0x33da3f,(_0x137eff=this[_0x589f01(0x29f)])==null?void 0x0:_0x137eff[_0x589f01(0x17d)]));}[_0x539489(0x316)](){const _0x31e87d=_0x539489;this[_0x31e87d(0x12d)](this[_0x31e87d(0x12c)][_0x31e87d(0x182)](_0x92e40[_0x31e87d(0x145)],[Le])),this[_0x31e87d(0x12d)](this[_0x31e87d(0x12c)][_0x31e87d(0x182)](_0x92e40['UNIVER_SHEET'],[Pe]));}[_0x539489(0x1e2)](){const _0x3d3a60=_0x539489;_0x1a8049(this[_0x3d3a60(0x1de)],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x539489(0x297),In),Ae=Sn([_0xa0e987(_0x9d653a),Oe(0x1,_0x5ea5b2),Oe(0x2,_0x59cc1b(_0x3916b4)),Oe(0x3,_0x37b078)],Ae);var gn=Object[_0x539489(0x1c1)],vn=(_0xa92450,_0x1a76b1,_0x261683,_0x56273d)=>{const _0x3d4bde=_0x539489;for(var _0x2aa775=_0x56273d>0x1?void 0x0:_0x56273d?gn(_0x1a76b1,_0x261683):_0x1a76b1,_0x1eee3b=_0xa92450[_0x3d4bde(0x23d)]-0x1,_0x3d5f49;_0x1eee3b>=0x0;_0x1eee3b--)(_0x3d5f49=_0xa92450[_0x1eee3b])&&(_0x2aa775=_0x3d5f49(_0x2aa775)||_0x2aa775);return _0x2aa775;},K=(_0x549efe,_0x22a9a3)=>(_0x507e1f,_0x3da578)=>_0x22a9a3(_0x507e1f,_0x3da578,_0x549efe);let st=class extends _0x597962{constructor(_0x4a1886,_0x5a85dc,_0x2c8421,_0x56b502,_0xccf744){super(_0x4a1886,_0x5a85dc,_0x2c8421,_0x56b502,_0xccf744);}async[_0x539489(0x317)](_0x2dce0b){const _0x521b16=_0x539489,_0x46e4a5=await this[_0x521b16(0x281)](),_0x204977=this[_0x521b16(0x20f)](_0x2dce0b,_0x46e4a5);return this[_0x521b16(0x1c8)](_0x204977);}['_createSocketURL'](_0x3e976b,_0x17c50b){const _0x1fa271=_0x539489,_0xcd3421=typeof window>'u'?new URL(_0x3e976b):new URL(_0x3e976b,window[_0x1fa271(0x307)][_0x1fa271(0x16c)]);_0xcd3421[_0x1fa271(0x2d7)][_0x1fa271(0x24c)](_0x1fa271(0x27e),_0x17c50b);const _0x3462f4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1fa271(0x307)][_0x1fa271(0x238)]);return _0x3462f4[_0x1fa271(0x144)](_0x1fa271(0x188))&&_0xcd3421[_0x1fa271(0x2d7)][_0x1fa271(0x24c)](_0x1fa271(0x188),_0x3462f4[_0x1fa271(0x144)](_0x1fa271(0x188))),_0xcd3421['toString']();}async['_getSessionTicket'](){const _0x5d0282=_0x539489;var _0x402c5e,_0x449dfb,_0xf1e10;const _0x247914=this[_0x5d0282(0x2ec)][_0x5d0282(0x20d)](_0x5e3d70),_0x530ef5=(_0x402c5e=_0x247914==null?void 0x0:_0x247914[_0x5d0282(0x234)])!=null?_0x402c5e:_0x4428cc;return(_0xf1e10=(_0x449dfb=(await this[_0x5d0282(0x1b3)][_0x5d0282(0x144)](_0x530ef5,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x449dfb[_0x5d0282(0x1e0)])!=null?_0xf1e10:'';}};st=vn([K(0x0,_0x59cc1b(_0x3916b4)),K(0x1,_0x59cc1b(_0x397b62)),K(0x2,_0x37b078),K(0x3,_0x48de10),K(0x4,_0x58510c)],st);const it=0x7530,nt=_0x539489(0x1e9);class Fn extends _0x31f0f7{constructor(){const _0x687519=_0x539489;super(),_(this,'_id',_0x485cd4()),_(this,_0x687519(0x139),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x687519(0x1ab),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x687519(0x2af),new Map()),this['_init']();}[_0x539489(0x24e)](){const _0x262d15=_0x539489;super['dispose'](),this['_clearOtherTimers'][_0x262d15(0x300)]((_0x1c60bf,_0x5e44a8)=>this[_0x262d15(0x1e8)](_0x5e44a8)),this[_0x262d15(0x1ab)]&&window[_0x262d15(0x1ff)](this[_0x262d15(0x1ab)]);}['getUnitStatus$'](_0x5e3c14){return this['_ensureSubject'](_0x5e3c14)['pipe'](_0x20545d());}[_0x539489(0x152)](_0x4c58e7){const _0x32ad94=_0x539489;this[_0x32ad94(0x139)][_0x32ad94(0x138)]===0x0&&this['_scheduleHeartbeat'](),this[_0x32ad94(0x139)]['add'](_0x4c58e7),this[_0x32ad94(0x226)]({'type':0x0,'memberID':this[_0x32ad94(0x21c)],'unitIDs':[_0x4c58e7],'isForwarded':!0x1});}[_0x539489(0x15d)](_0x314511){const _0x2ec666=_0x539489;this[_0x2ec666(0x139)][_0x2ec666(0x2e1)](_0x314511),this[_0x2ec666(0x139)][_0x2ec666(0x138)]===0x0&&this[_0x2ec666(0x1ab)]&&window['clearInterval'](this[_0x2ec666(0x1ab)]);}[_0x539489(0x272)](){const _0x373bdd=_0x539489;this[_0x373bdd(0x12d)](_0x39683d(_0x592954(window,_0x373bdd(0x14f))[_0x373bdd(0x2f2)](_0x176f11=>{const _0x28e974=_0x373bdd;if(_0x176f11['key']!==nt||!_0x176f11[_0x28e974(0x100)])return;const _0x8b420=JSON[_0x28e974(0x185)](_0x176f11['newValue']);this[_0x28e974(0x254)](_0x8b420);}))),window['addEventListener'](_0x373bdd(0x256),()=>this[_0x373bdd(0x226)]({'type':0x1,'memberID':this[_0x373bdd(0x21c)],'unitIDs':Array[_0x373bdd(0x107)](this[_0x373bdd(0x139)])}));}[_0x539489(0x254)](_0x3d5464){const _0x2f306a=_0x539489;switch(_0x3d5464['type']){case 0x0:this[_0x2f306a(0x2d4)](_0x3d5464);break;case 0x1:this[_0x2f306a(0x12a)](_0x3d5464);break;case 0x2:this['_handleHeartbeatEvent'](_0x3d5464);break;}}[_0x539489(0x2d4)](_0x18eafb){const _0x1a86aa=_0x539489,{unitIDs:_0x31c5be,memberID:_0x114a81,isForwarded:_0xbfdde6}=_0x18eafb;_0x31c5be['forEach'](_0x5925f8=>{const _0x393d1e=_0x43b9;if(!_0xbfdde6&&this[_0x393d1e(0x28e)]['has'](_0x5925f8)&&this['_ensureSubject'](_0x5925f8)['next'](_0x4ec984[_0x393d1e(0x228)]),!this[_0x393d1e(0x28e)]['has'](_0x5925f8)||!this['_unitOnClients'][_0x393d1e(0x144)](_0x5925f8)[_0x393d1e(0x17e)](_0x114a81)){const _0x28b8e5=this[_0x393d1e(0x28e)][_0x393d1e(0x144)](_0x5925f8)||new Set();_0x28b8e5[_0x393d1e(0x299)](_0x114a81),this[_0x393d1e(0x28e)][_0x393d1e(0x24c)](_0x5925f8,_0x28b8e5),this[_0x393d1e(0x26f)](_0x114a81);}}),_0xbfdde6||this[_0x1a86aa(0x226)]({'type':0x0,'memberID':this[_0x1a86aa(0x21c)],'unitIDs':[...this[_0x1a86aa(0x139)]],'isForwarded':!0x0});}[_0x539489(0x26f)](_0x1655f7){const _0x5e6fbd=_0x539489;this['_removeClearOtherTimer'](_0x1655f7);const _0x166075=window[_0x5e6fbd(0x262)](()=>{const _0x1cb750=_0x5e6fbd;this[_0x1cb750(0x28e)][_0x1cb750(0x300)](_0x509aca=>{const _0x5b9a56=_0x1cb750;_0x509aca[_0x5b9a56(0x2e1)](_0x1655f7);});},it*0x2);this['_clearOtherTimers'][_0x5e6fbd(0x24c)](_0x1655f7,_0x166075);}[_0x539489(0x1e8)](_0x20b7f4){const _0x152185=_0x539489;if(this['_clearOtherTimers']['has'](_0x20b7f4)){const _0x57a25a=this[_0x152185(0x2d6)][_0x152185(0x144)](_0x20b7f4);_0x57a25a&&window[_0x152185(0x143)](_0x57a25a),this[_0x152185(0x2d6)][_0x152185(0x24c)](_0x20b7f4,null);}}[_0x539489(0x12a)](_0x3d975c){const _0x5f488c=_0x539489,{memberID:_0x43f270,unitIDs:_0x14d4f6}=_0x3d975c;_0x14d4f6[_0x5f488c(0x300)](_0x463edc=>{const _0x335b80=_0x5f488c;var _0x1c97ae;const _0x5b2599=this['_unitOnClients'][_0x335b80(0x144)](_0x463edc);_0x5b2599&&(_0x5b2599[_0x335b80(0x2e1)](_0x43f270),(_0x1c97ae=this[_0x335b80(0x204)](_0x463edc))==null||_0x1c97ae[_0x335b80(0x2e0)](_0x5b2599[_0x335b80(0x138)]===0x0?_0x4ec984[_0x335b80(0x277)]:_0x4ec984[_0x335b80(0x228)]));}),this['_removeClearOtherTimer'](_0x43f270);}[_0x539489(0x20a)](_0x292c1e){const _0x20ce25=_0x539489;this[_0x20ce25(0x26f)](_0x292c1e['memberID']);}[_0x539489(0x226)](_0x3b6074){const _0x202ef8=_0x539489;localStorage[_0x202ef8(0x1f1)](nt,JSON[_0x202ef8(0x2a9)](_0x3b6074));}[_0x539489(0x261)](){const _0x2a5ff3=_0x539489;this[_0x2a5ff3(0x1ab)]=window[_0x2a5ff3(0x242)](()=>{const _0x125038=_0x2a5ff3;this['_send']({'type':0x2,'memberID':this[_0x125038(0x21c)]});},it);}[_0x539489(0x204)](_0xbce3e6){const _0x59161a=_0x539489;return this[_0x59161a(0x2af)][_0x59161a(0x17e)](_0xbce3e6)||this[_0x59161a(0x2af)]['set'](_0xbce3e6,new _0x5ae23c(_0x4ec984[_0x59161a(0x277)])),this[_0x59161a(0x2af)][_0x59161a(0x144)](_0xbce3e6);}}var Mt=(_0x2ecc6a=>(_0x2ecc6a[_0x2ecc6a[_0x539489(0x2f7)]=0x0]=_0x539489(0x2f7),_0x2ecc6a[_0x2ecc6a['OK']=0x1]='OK',_0x2ecc6a[_0x2ecc6a[_0x539489(0x295)]=0x2]=_0x539489(0x295),_0x2ecc6a[_0x2ecc6a[_0x539489(0x1e6)]=0x3]=_0x539489(0x1e6),_0x2ecc6a[_0x2ecc6a[_0x539489(0x18b)]=0x4]='NOT_FOUND',_0x2ecc6a[_0x2ecc6a[_0x539489(0x28a)]=0x5]=_0x539489(0x28a),_0x2ecc6a[_0x2ecc6a[_0x539489(0x120)]=0x6]=_0x539489(0x120),_0x2ecc6a[_0x2ecc6a[_0x539489(0x15f)]=0x7]=_0x539489(0x15f),_0x2ecc6a[_0x2ecc6a['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x2ecc6a[_0x2ecc6a[_0x539489(0x2e2)]=0x9]='COMPLETION_FINISHED',_0x2ecc6a[_0x2ecc6a[_0x539489(0x252)]=0xa]='LOGIN_FAILED',_0x2ecc6a[_0x2ecc6a['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x539489(0x17c),_0x2ecc6a[_0x2ecc6a['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x539489(0x2b5),_0x2ecc6a[_0x2ecc6a[_0x539489(0x2ea)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x2ecc6a[_0x2ecc6a['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x539489(0x27d),_0x2ecc6a[_0x2ecc6a[_0x539489(0x1bf)]=0x1389]=_0x539489(0x1bf),_0x2ecc6a[_0x2ecc6a[_0x539489(0x1d7)]=0x1771]=_0x539489(0x1d7),_0x2ecc6a[_0x2ecc6a[_0x539489(0x1ae)]=0x1772]=_0x539489(0x1ae),_0x2ecc6a[_0x2ecc6a[_0x539489(0x30f)]=0x1773]=_0x539489(0x30f),_0x2ecc6a[_0x2ecc6a[_0x539489(0x16f)]=0x1b59]=_0x539489(0x16f),_0x2ecc6a[_0x2ecc6a[_0x539489(0x18f)]=0x1b5a]=_0x539489(0x18f),_0x2ecc6a[_0x2ecc6a[_0x539489(0x24a)]=0x1b5b]=_0x539489(0x24a),_0x2ecc6a[_0x2ecc6a[_0x539489(0x2d2)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2ecc6a[_0x2ecc6a['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2ecc6a[_0x2ecc6a[_0x539489(0x2c0)]=0x1f41]=_0x539489(0x2c0),_0x2ecc6a[_0x2ecc6a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x539489(0x2e7),_0x2ecc6a[_0x2ecc6a[_0x539489(0x2dc)]=0x232a]=_0x539489(0x2dc),_0x2ecc6a[_0x2ecc6a[_0x539489(0x298)]=0x232b]=_0x539489(0x298),_0x2ecc6a[_0x2ecc6a[_0x539489(0x1cc)]=0x232c]=_0x539489(0x1cc),_0x2ecc6a[_0x2ecc6a[_0x539489(0x16e)]=0x232d]=_0x539489(0x16e),_0x2ecc6a[_0x2ecc6a[_0x539489(0x19a)]=0x2711]=_0x539489(0x19a),_0x2ecc6a[_0x2ecc6a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2ecc6a[_0x2ecc6a[_0x539489(0x105)]=0x2713]=_0x539489(0x105),_0x2ecc6a[_0x2ecc6a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x539489(0x142),_0x2ecc6a[_0x2ecc6a[_0x539489(0x1d9)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x2ecc6a[_0x2ecc6a[_0x539489(0x14e)]=0x271b]=_0x539489(0x14e),_0x2ecc6a[_0x2ecc6a[_0x539489(0x1a2)]=0x271c]=_0x539489(0x1a2),_0x2ecc6a[_0x2ecc6a[_0x539489(0x1e4)]=0x271d]=_0x539489(0x1e4),_0x2ecc6a[_0x2ecc6a[_0x539489(0x1ed)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2ecc6a[_0x2ecc6a['YUUMI_AI_RUN_FAILED']=0x271f]=_0x539489(0x21d),_0x2ecc6a[_0x2ecc6a['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x539489(0x23b),_0x2ecc6a[_0x2ecc6a[_0x539489(0x197)]=0x2af9]=_0x539489(0x197),_0x2ecc6a[_0x2ecc6a[_0x539489(0x260)]=0x2ee1]=_0x539489(0x260),_0x2ecc6a[_0x2ecc6a[_0x539489(0x2fa)]=0x2ee2]=_0x539489(0x2fa),_0x2ecc6a[_0x2ecc6a[_0x539489(0x2b4)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2ecc6a[_0x2ecc6a[_0x539489(0x113)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x2ecc6a[_0x2ecc6a['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x539489(0x1ad),_0x2ecc6a[_0x2ecc6a[_0x539489(0x22b)]=0x32c9]=_0x539489(0x22b),_0x2ecc6a[_0x2ecc6a[_0x539489(0x302)]=0x32ca]=_0x539489(0x302),_0x2ecc6a[_0x2ecc6a['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x539489(0x1a7),_0x2ecc6a[_0x2ecc6a[_0x539489(0x2c4)]=-0x1]=_0x539489(0x2c4),_0x2ecc6a))(Mt||{}),pn=Object[_0x539489(0x1c1)],Cn=(_0x3311fd,_0x430594,_0x51de05,_0x26ca2b)=>{const _0x46ce05=_0x539489;for(var _0x5bcbc3=_0x26ca2b>0x1?void 0x0:_0x26ca2b?pn(_0x430594,_0x51de05):_0x430594,_0x3428b6=_0x3311fd[_0x46ce05(0x23d)]-0x1,_0x2a1e6d;_0x3428b6>=0x0;_0x3428b6--)(_0x2a1e6d=_0x3311fd[_0x3428b6])&&(_0x5bcbc3=_0x2a1e6d(_0x5bcbc3)||_0x5bcbc3);return _0x5bcbc3;},be=(_0x28bc3e,_0x4832ca)=>(_0x342b72,_0x9551a6)=>_0x4832ca(_0x342b72,_0x9551a6,_0x28bc3e);let rt=class extends _0x31f0f7{constructor(_0x3bc1ac,_0x1acf73,_0x5cc6d7){const _0x130fb2=_0x539489;super(),this[_0x130fb2(0x177)]=_0x3bc1ac,this[_0x130fb2(0x1b3)]=_0x1acf73,this[_0x130fb2(0x2ec)]=_0x5cc6d7;}async['runOnServer'](_0x4b6c0c,_0x3180ff,_0x463581,..._0xfde604){const _0x1a5ded=_0x539489;var _0x3b03ee,_0x38fdb7,_0x31ae8f,_0x1e26d7;const _0x2677bc=this[_0x1a5ded(0x177)][_0x1a5ded(0x2fe)]();if(!_0x2677bc)throw new Error(_0x1a5ded(0x178));const _0x95c070=((_0x3b03ee=this[_0x1a5ded(0x2ec)]['getConfig'](_0x392547))!=null?_0x3b03ee:_0x43b7ad)+'/'+_0x4b6c0c+_0x1a5ded(0x24d)+_0x3180ff,_0x285512=new URL(window[_0x1a5ded(0x307)][_0x1a5ded(0x24b)]),_0x3eaf6d={'scriptId':_0x4b6c0c,'runId':(_0x38fdb7=_0x285512['searchParams']['get'](_0x1a5ded(0x188)))!=null?_0x38fdb7:'','function':_0x3180ff,'unitId':_0x2677bc[_0x1a5ded(0x274)](),'argsOfFunction':JSON['stringify'](_0xfde604),'invokeId':(_0x31ae8f=_0x463581[_0x1a5ded(0x205)])!=null?_0x31ae8f:'','executionId':(_0x1e26d7=_0x463581['executionId'])!=null?_0x1e26d7:''};try{const _0x205793=await this[_0x1a5ded(0x1b3)]['post'](_0x95c070,{'body':_0x3eaf6d});return _0x205793[_0x1a5ded(0x248)][_0x1a5ded(0x1bd)]&&_0x205793[_0x1a5ded(0x248)][_0x1a5ded(0x1bd)][_0x1a5ded(0x285)]!==Mt['OK']?_0x1a5ded(0x26b):_0x205793[_0x1a5ded(0x248)][_0x1a5ded(0x1fe)];}catch{return _0x1a5ded(0x26b);}}};rt=Cn([be(0x0,_0x15d220),be(0x1,_0x59cc1b(_0x397b62)),be(0x2,_0x37b078)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Wi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
@@ -1 +1 @@
1
- const _0x1a9f0a=_0x28fa;function _0x28fa(_0xa5b6fd,_0x9b4133){const _0x469e86=_0x469e();return _0x28fa=function(_0x28fa69,_0x255d08){_0x28fa69=_0x28fa69-0x1b6;let _0x2cb9eb=_0x469e86[_0x28fa69];return _0x2cb9eb;},_0x28fa(_0xa5b6fd,_0x9b4133);}(function(_0x21f88a,_0x218beb){const _0xee92db=_0x28fa,_0x230fcd=_0x21f88a();while(!![]){try{const _0x3c2fba=parseInt(_0xee92db(0x1c0))/0x1*(-parseInt(_0xee92db(0x1c8))/0x2)+-parseInt(_0xee92db(0x1b9))/0x3*(parseInt(_0xee92db(0x1bd))/0x4)+-parseInt(_0xee92db(0x1cc))/0x5+parseInt(_0xee92db(0x1b6))/0x6*(-parseInt(_0xee92db(0x1ce))/0x7)+parseInt(_0xee92db(0x1c7))/0x8+-parseInt(_0xee92db(0x1c5))/0x9*(parseInt(_0xee92db(0x1c2))/0xa)+parseInt(_0xee92db(0x1ca))/0xb;if(_0x3c2fba===_0x218beb)break;else _0x230fcd['push'](_0x230fcd['shift']());}catch(_0x205b05){_0x230fcd['push'](_0x230fcd['shift']());}}}(_0x469e,0x1957b));const e={'collab-client':{'tooltip':{'reconnect':_0x1a9f0a(0x1b7)}},'collabStatus':{'fetchMiss':_0x1a9f0a(0x1ba),'conflict':_0x1a9f0a(0x1bc),'notCollab':'Local\x20file','synced':_0x1a9f0a(0x1c4),'syncing':_0x1a9f0a(0x1cd),'offline':_0x1a9f0a(0x1cb)},'session':{'connection-failed':_0x1a9f0a(0x1cf),'will-retry':_0x1a9f0a(0x1b8),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x1a9f0a(0x1be)},'conflict':{'title':_0x1a9f0a(0x1c3),'content':_0x1a9f0a(0x1bf)},'permission':{'title':_0x1a9f0a(0x1bb),'content':_0x1a9f0a(0x1c1)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x1a9f0a(0x1c6)},'auth':{'needGotoLoginAlert':_0x1a9f0a(0x1c9)}};function _0x469e(){const _0x52594b=['149346qpupAM','Click\x20to\x20Reconnect','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','1281EBiCXY','Syncing\x20server\x20data...','Authentication\x20Error','Edit\x20conflicts','732QdrXEd','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','1mqDtxG','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','12210kSCDFX','Collaboration\x20Conflict','Synced','549lnQoKT','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1352984fghEXx','316554IofKVv','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','5501419JUkEtd','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','401565BeSAfp','Syncing...','49SJJLKd','Connection\x20failed,\x20please\x20check\x20your\x20network.'];_0x469e=function(){return _0x52594b;};return _0x469e();}export{e as default};
1
+ const _0x22d42b=_0x3128;function _0x3128(_0x547975,_0x345593){const _0x5e5652=_0x5e56();return _0x3128=function(_0x312885,_0x357b81){_0x312885=_0x312885-0x83;let _0xfbd5f1=_0x5e5652[_0x312885];return _0xfbd5f1;},_0x3128(_0x547975,_0x345593);}(function(_0x5517c4,_0x1a2e5f){const _0x4dc8c8=_0x3128,_0x4e944c=_0x5517c4();while(!![]){try{const _0x2a89c4=-parseInt(_0x4dc8c8(0x9c))/0x1+parseInt(_0x4dc8c8(0x8b))/0x2*(-parseInt(_0x4dc8c8(0x98))/0x3)+-parseInt(_0x4dc8c8(0x92))/0x4+parseInt(_0x4dc8c8(0x90))/0x5*(parseInt(_0x4dc8c8(0x97))/0x6)+-parseInt(_0x4dc8c8(0x87))/0x7*(-parseInt(_0x4dc8c8(0x8f))/0x8)+parseInt(_0x4dc8c8(0x86))/0x9+-parseInt(_0x4dc8c8(0x99))/0xa;if(_0x2a89c4===_0x1a2e5f)break;else _0x4e944c['push'](_0x4e944c['shift']());}catch(_0x52dd74){_0x4e944c['push'](_0x4e944c['shift']());}}}(_0x5e56,0x50538));const e={'collab-client':{'tooltip':{'reconnect':_0x22d42b(0x88)}},'collabStatus':{'fetchMiss':_0x22d42b(0x96),'conflict':_0x22d42b(0x84),'notCollab':_0x22d42b(0x9b),'synced':_0x22d42b(0x9d),'syncing':_0x22d42b(0x91),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x22d42b(0x8d),'will-retry':_0x22d42b(0x85),'room-full':_0x22d42b(0x93),'collaboration-timeout':_0x22d42b(0x9a)},'conflict':{'title':_0x22d42b(0x89),'content':_0x22d42b(0x8e)},'permission':{'title':_0x22d42b(0x8c),'content':_0x22d42b(0x95)},'collaboration':{'single-unit':{'warning':_0x22d42b(0x94)},'closeRoom':_0x22d42b(0x83)},'auth':{'needGotoLoginAlert':_0x22d42b(0x8a)}};function _0x5e56(){const _0x5d6c4d=['4656528AcibUs','850mcKFqg','Syncing...','502772fAnqkg','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing\x20server\x20data...','22440zSqnod','3603fQFxup','10365550pKeYPf','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Local\x20file','181554zMEHHt','Synced','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Edit\x20conflicts','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','4116186EfMAJt','7KHRWie','Click\x20to\x20Reconnect','Collaboration\x20Conflict','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','4RflXgN','Authentication\x20Error','Connection\x20failed,\x20please\x20check\x20your\x20network.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'];_0x5e56=function(){return _0x5d6c4d;};return _0x5e56();}export{e as default};
@@ -1 +1 @@
1
- function _0x562a(_0x21c925,_0xd57759){const _0x28438f=_0x2843();return _0x562a=function(_0x562aae,_0x1bef6b){_0x562aae=_0x562aae-0x1b8;let _0x424068=_0x28438f[_0x562aae];return _0x424068;},_0x562a(_0x21c925,_0xd57759);}const _0x5b84da=_0x562a;(function(_0xeb14f4,_0x473907){const _0x408aba=_0x562a,_0x31c2cc=_0xeb14f4();while(!![]){try{const _0x54ccb5=-parseInt(_0x408aba(0x1c5))/0x1*(parseInt(_0x408aba(0x1bd))/0x2)+parseInt(_0x408aba(0x1b8))/0x3+-parseInt(_0x408aba(0x1ca))/0x4*(parseInt(_0x408aba(0x1be))/0x5)+-parseInt(_0x408aba(0x1bf))/0x6+-parseInt(_0x408aba(0x1ba))/0x7*(parseInt(_0x408aba(0x1c4))/0x8)+parseInt(_0x408aba(0x1bc))/0x9+parseInt(_0x408aba(0x1c7))/0xa;if(_0x54ccb5===_0x473907)break;else _0x31c2cc['push'](_0x31c2cc['shift']());}catch(_0x7d428d){_0x31c2cc['push'](_0x31c2cc['shift']());}}}(_0x2843,0x5120c));const o={'collab-client':{'tooltip':{'reconnect':_0x5b84da(0x1b9)}},'collabStatus':{'fetchMiss':'در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','conflict':'تداخل\x20ویرایش','notCollab':'پرونده\x20محلی','synced':_0x5b84da(0x1c1),'syncing':'در\x20حال\x20همگام\x20سازی...','offline':'آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند'},'session':{'connection-failed':_0x5b84da(0x1cb),'will-retry':'اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','room-full':_0x5b84da(0x1bb),'collaboration-timeout':_0x5b84da(0x1c8)},'conflict':{'title':_0x5b84da(0x1c0),'content':'یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'permission':{'title':_0x5b84da(0x1c2),'content':_0x5b84da(0x1c3)},'collaboration':{'single-unit':{'warning':_0x5b84da(0x1c9)},'closeRoom':_0x5b84da(0x1c6)},'auth':{'needGotoLoginAlert':'ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.'}};export{o as default};function _0x2843(){const _0x76594a=['اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','1291380ViHhCJ','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','125678DtGGBg','اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','4796802uHGfJw','26MrlXBw','210cLNSYj','3379992mMHZQB','تداخل\x20همکاری','همگام\x20سازی','خطای\x20اعتبارسنجی','اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','128GwMqrQ','13513azjFRL','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','4434270DZDHyc','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','4600XJOjpW'];_0x2843=function(){return _0x76594a;};return _0x2843();}
1
+ const _0x3b9ba8=_0x20ba;function _0x20ba(_0x42afdf,_0x519954){const _0x5e3823=_0x5e38();return _0x20ba=function(_0x20ba8a,_0x2d7148){_0x20ba8a=_0x20ba8a-0x14a;let _0x4533b2=_0x5e3823[_0x20ba8a];return _0x4533b2;},_0x20ba(_0x42afdf,_0x519954);}(function(_0x24e300,_0x549227){const _0xfae49b=_0x20ba,_0x4e5413=_0x24e300();while(!![]){try{const _0x349058=parseInt(_0xfae49b(0x162))/0x1*(parseInt(_0xfae49b(0x15b))/0x2)+-parseInt(_0xfae49b(0x15c))/0x3+parseInt(_0xfae49b(0x151))/0x4+parseInt(_0xfae49b(0x158))/0x5*(parseInt(_0xfae49b(0x15d))/0x6)+-parseInt(_0xfae49b(0x14e))/0x7+parseInt(_0xfae49b(0x159))/0x8+parseInt(_0xfae49b(0x14f))/0x9*(-parseInt(_0xfae49b(0x14b))/0xa);if(_0x349058===_0x549227)break;else _0x4e5413['push'](_0x4e5413['shift']());}catch(_0x10cb9e){_0x4e5413['push'](_0x4e5413['shift']());}}}(_0x5e38,0xd7cec));const o={'collab-client':{'tooltip':{'reconnect':_0x3b9ba8(0x160)}},'collabStatus':{'fetchMiss':_0x3b9ba8(0x156),'conflict':_0x3b9ba8(0x15e),'notCollab':_0x3b9ba8(0x15a),'synced':_0x3b9ba8(0x14d),'syncing':'در\x20حال\x20همگام\x20سازی...','offline':_0x3b9ba8(0x14c)},'session':{'connection-failed':_0x3b9ba8(0x155),'will-retry':_0x3b9ba8(0x153),'room-full':'اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','collaboration-timeout':_0x3b9ba8(0x152)},'conflict':{'title':_0x3b9ba8(0x14a),'content':_0x3b9ba8(0x150)},'permission':{'title':_0x3b9ba8(0x15f),'content':_0x3b9ba8(0x161)},'collaboration':{'single-unit':{'warning':_0x3b9ba8(0x157)},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x3b9ba8(0x154)}};function _0x5e38(){const _0xcb5270=['خطای\x20اعتبارسنجی','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','10825UyzUPh','تداخل\x20همکاری','2792850raEmNV','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','همگام\x20سازی','2457637DYLibv','9ZnwXdN','یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','1940416zwTEnt','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','2088545sgkDPS','4519592TGYRvu','پرونده\x20محلی','206QfLZeJ','3205239yZxKDp','6qpiIBd','تداخل\x20ویرایش'];_0x5e38=function(){return _0xcb5270;};return _0x5e38();}export{o as default};