@univerjs-pro/collaboration-client-ui 0.6.0 → 0.6.1-nightly.202502211606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x516cab=_0x23bb;function _0x23bb(_0x1e33c3,_0x44322f){const _0x1b0a2c=_0x1b0a();return _0x23bb=function(_0x23bb01,_0x12c280){_0x23bb01=_0x23bb01-0x114;let _0x27609e=_0x1b0a2c[_0x23bb01];return _0x27609e;},_0x23bb(_0x1e33c3,_0x44322f);}(function(_0x5a3624,_0x29f6c4){const _0x3dfd6a=_0x23bb,_0x14a714=_0x5a3624();while(!![]){try{const _0x2f9383=parseInt(_0x3dfd6a(0x126))/0x1*(parseInt(_0x3dfd6a(0x11d))/0x2)+-parseInt(_0x3dfd6a(0x11c))/0x3*(-parseInt(_0x3dfd6a(0x121))/0x4)+-parseInt(_0x3dfd6a(0x120))/0x5*(-parseInt(_0x3dfd6a(0x116))/0x6)+-parseInt(_0x3dfd6a(0x122))/0x7*(parseInt(_0x3dfd6a(0x119))/0x8)+parseInt(_0x3dfd6a(0x11e))/0x9*(parseInt(_0x3dfd6a(0x125))/0xa)+parseInt(_0x3dfd6a(0x115))/0xb*(parseInt(_0x3dfd6a(0x11a))/0xc)+-parseInt(_0x3dfd6a(0x118))/0xd*(parseInt(_0x3dfd6a(0x114))/0xe);if(_0x2f9383===_0x29f6c4)break;else _0x14a714['push'](_0x14a714['shift']());}catch(_0x2dde39){_0x14a714['push'](_0x14a714['shift']());}}}(_0x1b0a,0x7192b));function _0x1b0a(){const _0x381795=['66849rFixFS','1191274ujabLh','747BfxOch','_injector','923885AVxhHz','156zYOAYx','49eafFbG','RemoteUniscriptService','@univerjs/core/facade','4730Rbphco','1Btjbvb','FUniver','@univerjs-pro/collaboration-client-ui','168910ZdfgNZ','781gFnvij','18IgwMRe','get','1755JGQlNI','42040CpMswK','12252iLcPJR','runOnServer'];_0x1b0a=function(){return _0x381795;};return _0x1b0a();}const t=require(_0x516cab(0x128)),e=require(_0x516cab(0x124));class c extends e[_0x516cab(0x127)]{[_0x516cab(0x11b)](_0x247d72,_0x55be7b,..._0x11e78e){const _0x47d77c=_0x516cab;return this[_0x47d77c(0x11f)][_0x47d77c(0x117)](t[_0x47d77c(0x123)])[_0x47d77c(0x11b)](_0x247d72,_0x55be7b,{},..._0x11e78e);}}e[_0x516cab(0x127)]['extend'](c);
1
+ 'use strict';const _0x193718=_0x2726;(function(_0x22e2c6,_0x15e036){const _0x3fadf6=_0x2726,_0x2bb3b1=_0x22e2c6();while(!![]){try{const _0x23308c=-parseInt(_0x3fadf6(0x168))/0x1+-parseInt(_0x3fadf6(0x166))/0x2+parseInt(_0x3fadf6(0x16a))/0x3*(-parseInt(_0x3fadf6(0x16f))/0x4)+-parseInt(_0x3fadf6(0x173))/0x5*(-parseInt(_0x3fadf6(0x176))/0x6)+parseInt(_0x3fadf6(0x16e))/0x7*(parseInt(_0x3fadf6(0x169))/0x8)+parseInt(_0x3fadf6(0x167))/0x9*(parseInt(_0x3fadf6(0x16c))/0xa)+-parseInt(_0x3fadf6(0x16b))/0xb*(-parseInt(_0x3fadf6(0x177))/0xc);if(_0x23308c===_0x15e036)break;else _0x2bb3b1['push'](_0x2bb3b1['shift']());}catch(_0x55bc9c){_0x2bb3b1['push'](_0x2bb3b1['shift']());}}}(_0x3f12,0x311dd));function _0x2726(_0x21773c,_0x1c0c63){const _0x3f128a=_0x3f12();return _0x2726=function(_0x272603,_0x129e2b){_0x272603=_0x272603-0x165;let _0x2fdf41=_0x3f128a[_0x272603];return _0x2fdf41;},_0x2726(_0x21773c,_0x1c0c63);}const t=require(_0x193718(0x175)),e=require(_0x193718(0x16d));class c extends e[_0x193718(0x170)]{[_0x193718(0x174)](_0x47273b,_0x5bd759,..._0x259e2f){const _0x34370e=_0x193718;return this[_0x34370e(0x165)][_0x34370e(0x172)](t[_0x34370e(0x171)])[_0x34370e(0x174)](_0x47273b,_0x5bd759,{},..._0x259e2f);}}e['FUniver'][_0x193718(0x178)](c);function _0x3f12(){const _0x329205=['12gaBNNr','extend','_injector','520700CHwZoR','9esuARJ','141798eDNkNP','32mxTBPF','735YaJCmc','4060859GczDAf','1303370hXnCru','@univerjs/core/facade','268366zOqbxZ','3864skFlCi','FUniver','RemoteUniscriptService','get','5gLHXyp','runOnServer','@univerjs-pro/collaboration-client-ui','1122846AUiUBx'];_0x3f12=function(){return _0x329205;};return _0x3f12();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x565a(){const _0xffc0aa=['session.connection-failed','[RemoteUniscriptService]:\x20no\x20focused\x20unit','svg','_updateCollabCursors','blue400','saveTaskMap','send','row','getActiveSheet','ONLINE','toStringTag','UPDATE_CURSOR','_assignedColors','_labelPosition','filter','_textBubble','bottom','_ensureSubject','DesktopCollaborationStatusDisplayController','COMPLETION_FINISHED','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_range','_getAnchorBounding','EffectRefRangId','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','random','transformSelections','mergeOverrideWithDependencies','RemoveColCommandId','Optional','YUUMI_SUBSCRIPTION_NOT_FOUND','fill','forwardRef','_getScale','_shapes','_memberService','BrowserCollaborationSocketService','url(#on-line-single_clip0_910_349)','getValue','params','none','UNDEFINED','resize','univerjs-icon\x20univerjs-icon-','APPLY_REVISION_CONFILICT','_dataLoaderService','IUniverInstanceService','_draw','CHANGESET_REVISION_CONFILICT','asObservable','getTypeOfUnitDisposed$','univer-online-status-icon','function','on-line-single','_refRangeService','uni.network.url-service','Injector','selection','idSuffix','createSocket','IConfigService','translate(.97)','@univerjs/docs-ui','textRanges','DocCollaborationEntity','onlineStatusTitle','useObservable','mutations','setItem','_scheduleSaving','_docSyncEditingCollabCursorService','useDependency','ranges','_drawTextRange','getUnitId','_clearOtherTimers','requireSession','registerRefRange','NOT_FOUND','_createSocketURL','closePath','getAncestorScale','takeUntil','registerBeforeClose','setActiveRange','_imageIoService','min','override','imageSourceType','findNodePositionByCharIndex','handleIRemoveRow','unshift','ILocalCacheService','key','width','setParam','_send','application/json','disposeUnit','sessionStatus$','mapTo','getConfig','hide','actions','906hxhSUO','hovered','from','entityInit$','search','SHEET_VIEWPORT_KEY','doc.mutation.rich-text-editing','selections','univer-online-status','getCollabCursors$','startRow','Module','getFocusedUnit','black','@univerjs/design','fromEvent','_initCommandExecutedListener','_status$','RegularPolygon','redoState','ThemeService','ILogService','editingUnit','popstate','focused$','runRefRangeMutations','touchDependencies','switchMap','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','71051ypMzIA','onMouseMove','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','SYNCED','APPLY_PERMISSION_DENIED','ALREADY_EXISTS','univer-online-status-title','collaboration.single-unit.warning','_collaborationUIEventService','attrs','makeDirty','_cursorShapes','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','defIds','arc','complete','registerDependencies','_init','getViewport','5826712LCAYDG','APPLY_NON_SEQUENTIAL_REVISION','Unknown\x20user','RemoteUniscriptService','_collabCursorState$','removeParam','get','SetSelectionsOperation','_startSheetCollabCursor','Inject','restore','_sheetSkeletonManagerService','status$','IBeforeCloseService','OnLineSingle','currentSkeleton$','ENSURE_SNAPSHOT_EXECUTION','ticket','CONNECTOR_DATA_TOO_LARGE','UniverInstanceType','_id','registerComponent','getSkeleton','storage','HTTPService','m2Prime','SheetCollabCursorShape','ISocketService','substring','connectInjector','text','offline','getStateCache','_urlService','code','_hover','Plugin','size','_instanceService','_removeClearOtherTimer','transformByState','_context','_cursorInfo$','enableLocalCache','onPointerLeave$','values','path','CollaborationSocketService','_transformPreviousActiveRange','transform','PENDING','length','OTHER_CLIENTS_EDITING','whenReady','runId','clipPath','univer-flex\x20univer-items-center','YUUMI_UNABLE_LOAD_URL','debounceTime','_onRefRangeChange','_getMergeRange','#FFF','eventID','Subject','TOO_MANY_REQUESTS','runOnServer','cursorInfo','then','_docTransformIMECacheService','IMessageService','COLORS','_initResize','getUndoRedoMutationParamsCache','session.collaboration-timeout','memberID','debug','USERS_LEAVE','getSheetBySheetId','WebBrowserSingleActiveUnitService','_renderManagerService','RECT','UNIVER_DOC','createInstance','OTHER_CLIENT_EDITING','startColumn','...','7Wfhlph','all','next','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getMemberID','TEXT','PY_RUNTIME_SCRIPT_ERROR','_getSessionTicket','AWAITING','isEditing','_beforeCloseService','[CollaborationDataLoaderController]','getCollabEntity$','FromArray','CollaborationSessionService','_transformUndoRedoStack','_docSkeleton','sheetId','extend','data','getUnhiddenWorksheets','31060JFSMoA','_initStatusListener','hasOwnProperty','evenodd','getRenderById','isActive','ITransformService','SNAPSHOT_INVALID_SNAPSHOT','entries','_scene','assignAColorForMemberID','_localStorageService','collabStatus.fetchMiss','ColorKit','NodePositionConvertToRectRange','_selfUnitIDs','use','subscribe','_session','saveImage','type','call','registerRenderModule','TEXT_RANGE_LAYER_INDEX','_disabled','labelPosition','setUndoRedoMutationParamsCache','searchParams','getRangePointData','transformRemoteChangeset','height','SOCKET_FAILED_RETRY','UNAUTHENTICATED','split','_cursor','_themeService','symbol','getRelativeToViewportCoord','currentColor','measureText','CollaborationStatus','APPLY_DUPLICATED','_entityInit$','InsertColCommandId','getItem','6082876pyaYne','CommandType','UnitStatus','handleInsertRow','body','168msDXym','onlineStatusIcon','getCurrent','onCommandExecuted','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_cursors','_collaborationController','displayName','_heartbeatTimer','_docStateChangeManagerService','pluginName','transformIMECache','getLocalCacheKey','RevisionService','drawWith','transformMutation','handleDeleteRangeMoveUp','on-line-single_clip0_910_349','_notificationService','addHandlerCallback','rgba(255,\x20255,\x20255,\x200.01)','INVALID_ARGUMENT','_docClipboardService','combineLatest','SessionStatus','currentTheme$','some','_univerInstanceService','_roomMembers$','LICENSE_DISTRO_REJECTED','DOC_RANGE_TYPE','syncEditingCollabCursor','PERMISSION_DENIED','InsertRowCommandId','off-line-single_clip0_910_343','onPointerMove$','endRow','origin','RemoveRowCommandId','_handleEvent','pipe','propertyIsEnumerable','className','dispose$','transformMutationsWithChangeset','_document','m1Prime','column','assign','Rectangle','exhaustSavingTask','collaboration-client.offline-data-not-saved','LICENSE_MAX_UNITS_EXCEEDED','_logService','transformStateCache','disposeWithMe','round','unit','SUBMIT_CHANGESET_TIMEOUT','rxjs/operators','AWAITING_WITH_PENDING','subunit','10824948xrUlKA','show','SheetSkeletonManagerService','_registerRenderDependencies','_eventUnsubscribe','setShapeProps','startsWith','string','color','save','CONFLICT','result','onTransformChange$','_entities','location','collaboration.closeRoom','_lastPointer','_transformHistoryAndStateStack','concat','_scheduleHeartbeat','Error','_hideTimer','getParam','deepClone','add','react/jsx-runtime','OFFLINE','MemberService','12mgvKbo','UNRECOGNIZED','unitID','CollaborationDataLoaderController','_uiPartsService','setAlpha','WebSocketService','undoState','_httpService','InsertRangeMoveDownCommandId','roomMembers','_removeCollabCursors','collaboration-client-ui.config','updateOfflineData','dispose','getTypeOfUnitAdded$','_toggleOffline','engine','range','Disposable','children','ACTIVE_UNIT_EVENT_CHANNEL','urlChange$','DocSkeletonManagerService','_unitStatus','univer-offline','endColumn','setStateCache','url(#$1','@univerjs/docs','toDisposable','OffLineSingle','toRgbString','_hovered','jiqing500','_registerDependencies','clearTimeout','addObject','Warning','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getDocRanges','addEventListener','pushState','skeleton','Shape','_toggleOnline','roomMembers$','indexOf','NOT_COLLAB','replaceState','_updateSubUnitFromURLParams','createElement','_doCreateSocket','gold400','subscribeEvent','docStateChange$','SetTextSelectionsOperation','2255957AXFGIA','_setupBeforeClosingHandler','IRemoteInstanceService','executeCommand','lineTo','_saveCache','#fff','off-line-single','Vector2','toString','setConfig','_getSaveTimeout','getSheetId','prototype','collabStatus.syncing','CollaborationStatusDisplay','INotificationService','IImageIoService','DataLoaderService','parse','disableLocalCache','href','_collabCursorController','flatMap','SNAPSHOT_HAS_BEEN_REMOVED','_render','_onCursorDelete','generateRandomId','_anchor','map','saveOfflineData','max','DocSelectionManagerService','unload','getColor','name','shareReplay','YUUMI_URL_COL_OUT_OF_RANGE','@univerjs/engine-formula','RxDisposable','_initEvent','LOCAL_CACHE_INTERVAL','@univerjs/sheets','Rect','debounce','_anchorDot','collabStatus.offline','MUTATION','_name','delete','stringify','_startDocCollabCursor','CollaborationUIEventId','LICENSE_EXPORT_SIZE_EXCEEDED','_syncEditingCollabCursorService','sessionTicket','collab-text-range-','onlineStatus','_colorIndex','invokeId','_localCacheService','unitId','ICommandService','_drawRectRange','_online','_handleLeaveEvent','apply','collabCursorState$','getVpScrollXYInfoByPosToVp','_updateLocalCursor','InsertRangeMoveRightCommandId','addClipboardHook','@univerjs/engine-render','getActiveRange','IDocClipboardService','_initEntityListener','post','loadUnit','cursorInfo$','forEach','isArray','Tools','unsubscribe','SetWorksheetActivateCommand','getCurrentSelections','CollaborationEvent','error','M0\x200H16V16H0z','useRef','find','UniverIcon','_messageService','fillText','subUnitId','icon','_collabSessionService','_unitOnClients','_colorAssignService','defs','_handleHover','_injector','DisposableCollection','set','LocaleService','11000860TqlNOA','HEADER_MENU','isTransformMutationFailure','onLocalMutation','_commandService','handleMoveRange','IRenderManagerService','merge','IURLService','_onCursorUpdate','defineProperty','ILocalStorageService','handleDeleteRangeMoveLeft','getOwnPropertyDescriptor','@univerjs/network','collabStatus.conflict','_color','_transformService','_cachedData','with','_setupSubUnitSync','handleInsertRangeMoveRight','_localeService','_updateURLWithCurrentState','JOIN_ROOM_FAILED','jsx','WebURLService','getCellPositionByOffset','DependentOn','sheetID','_configService','top','3NEoADS','IUIPartsService','serializeRangeWithSheet','newValue','RefRangeService','collab-rect-range-','getMember','backgroundColor','1em','_initStatusComponent','push','isTransformMutationsWithChangesetSuccess','_docTransformStateCacheService','/run/','useCallback','_scheduleClearOtherTimer','BehaviorSubject','MessageType','UniverCollaborationClientUIPlugin','_backgroundColor','_getSheetObject','UniverCollaborationClientPlugin','div','has','@univerjs-pro/collaboration-client','tag','collabStatus.notCollab','event$','distinctUntilChanged','_docSkeletonManagerService','@univerjs/sheets-ui','_refreshCollabCursors','Failed','YUUMI_RATE_OVER_LIMIT','FETCH_MISS','history','init','getOffsetConfig','collab-client.tooltip.reconnect','getCoordByCell','_docTransformSelectionsService','getUnitStatus$','_saveTaskMap','LICENSE_IMPORT_SIZE_EXCEEDED','onPointerEnter$','INTERNAL_ERROR','_revisionService','xlink:href'];_0x565a=function(){return _0xffc0aa;};return _0x565a();}const _0x41f8c8=_0xee62;(function(_0x1d5c06,_0x377b40){const _0x4df670=_0xee62,_0x32d432=_0x1d5c06();while(!![]){try{const _0x45aa42=-parseInt(_0x4df670(0x30f))/0x1*(parseInt(_0x4df670(0x199))/0x2)+-parseInt(_0x4df670(0x25a))/0x3*(parseInt(_0x4df670(0x13a))/0x4)+parseInt(_0x4df670(0x10d))/0x5*(-parseInt(_0x4df670(0x2f2))/0x6)+parseInt(_0x4df670(0xf8))/0x7*(parseInt(_0x4df670(0x322))/0x8)+parseInt(_0x4df670(0x17d))/0x9+-parseInt(_0x4df670(0x23a))/0xa+-parseInt(_0x4df670(0x1d2))/0xb*(-parseInt(_0x4df670(0x13f))/0xc);if(_0x45aa42===_0x377b40)break;else _0x32d432['push'](_0x32d432['shift']());}catch(_0x4bb670){_0x32d432['push'](_0x32d432['shift']());}}}(_0x565a,0xc7836));var qe=Object[_0x41f8c8(0x244)],Ke=(_0x2184ca,_0x496911,_0x138611)=>_0x496911 in _0x2184ca?qe(_0x2184ca,_0x496911,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x138611}):_0x2184ca[_0x496911]=_0x138611,h=(_0x16c5f9,_0x313503,_0x227701)=>Ke(_0x16c5f9,typeof _0x313503!=_0x41f8c8(0x131)?_0x313503+'':_0x313503,_0x227701);Object[_0x41f8c8(0x244)](exports,Symbol[_0x41f8c8(0x294)],{'value':_0x41f8c8(0x2fd)});const u=require(_0x41f8c8(0x272)),a=require('@univerjs/core'),p=require(_0x41f8c8(0x21a)),q=require(_0x41f8c8(0x248)),b=require(_0x41f8c8(0x2c8)),ze=require('@univerjs/drawing'),d=require('rxjs'),Y=require(_0x41f8c8(0x1b6)),m=require('@univerjs-pro/collaboration'),Te=require(_0x41f8c8(0x1f8)),I=require(_0x41f8c8(0x1fc)),$=require(_0x41f8c8(0x17a)),G=require(_0x41f8c8(0x278)),w=require(_0x41f8c8(0x196)),T=require('@univerjs/ui'),M=require(_0x41f8c8(0x300)),P=require('react'),Je=require('@univerjs/rpc');var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x801cf0,_0x4150e7,_0x1e0c77,_0x499c6f)=>{const _0x5e08b3=_0x41f8c8;for(var _0x5891c9=_0x499c6f>0x1?void 0x0:_0x499c6f?Ze(_0x4150e7,_0x1e0c77):_0x4150e7,_0x5d5b76=_0x801cf0[_0x5e08b3(0xd5)]-0x1,_0x8bd5af;_0x5d5b76>=0x0;_0x5d5b76--)(_0x8bd5af=_0x801cf0[_0x5d5b76])&&(_0x5891c9=_0x8bd5af(_0x5891c9)||_0x5891c9);return _0x5891c9;},Re=(_0xf56164,_0x434457)=>(_0x33510c,_0x83c783)=>_0x434457(_0x33510c,_0x83c783,_0xf56164);let fe=class extends a[_0x41f8c8(0x1f9)]{constructor(_0xe4df55,_0x5d54d9){super(),this['_docClipboardService']=_0xe4df55,this['_imageIoService']=_0x5d54d9,this['_init']();}[_0x41f8c8(0x320)](){const _0x41ea83=_0x41f8c8,_0x5b8197=this;this[_0x41ea83(0x176)](this[_0x41ea83(0x155)][_0x41ea83(0x219)]({'onBeforePasteImage':async _0x2860f7=>{const _0x5ad4c5=_0x41ea83,_0x31a114=await _0x5b8197[_0x5ad4c5(0x2df)][_0x5ad4c5(0x120)](_0x2860f7);return _0x31a114?{'source':_0x31a114['source'],'imageSourceType':_0x31a114[_0x5ad4c5(0x2e2)]}:null;}}));}};fe=Qe([Re(0x0,b[_0x41f8c8(0x21c)]),Re(0x1,ze[_0x41f8c8(0x1e3)])],fe);const Oe=['purple300',_0x41f8c8(0x1bb),'verdancy600','red300',_0x41f8c8(0x28e),_0x41f8c8(0x1ce)];class Ce extends a[_0x41f8c8(0x1ac)]{constructor(){const _0x581f05=_0x41f8c8;super(...arguments),h(this,_0x581f05(0x296),new Map()),h(this,'_colorIndex',0x0);}[_0x41f8c8(0x117)](_0x36fb09){const _0x4293e1=_0x41f8c8;if(this[_0x4293e1(0x296)][_0x4293e1(0x271)](_0x36fb09))return this[_0x4293e1(0x296)]['get'](_0x36fb09);const _0x5915ed=Oe[this[_0x4293e1(0x20c)]];return this[_0x4293e1(0x20c)]=(this[_0x4293e1(0x20c)]+0x1)%Oe[_0x4293e1(0xd5)],this[_0x4293e1(0x296)][_0x4293e1(0x238)](_0x36fb09,_0x5915ed),_0x5915ed;}}function ye(_0x4c24ed){let _0x22f282='';for(const _0x3bda5c of _0x4c24ed){const {startOffset:_0xf192fc,endOffset:_0x104da3,isActive:_0x26c818,rangeType:_0x145f2c,segmentId:_0x25b48c,segmentPage:_0x57eb1c}=_0x3bda5c;_0x22f282['length']&&(_0x22f282+=','),_0x22f282+=_0xf192fc+':'+_0x104da3+':'+(_0x26c818?'1':'0')+':'+_0x145f2c+':'+_0x25b48c+':'+_0x57eb1c;}return _0x22f282;}function et(_0x2bc2ce){const _0x2e762d=_0x41f8c8,_0x42c0ef=_0x2bc2ce[_0x2e762d(0x12e)](','),_0x4ac6e5=[];for(const _0x17c765 of _0x42c0ef){const [_0x2776bc,_0x5b8c17,_0x5b88d4,_0x5cbd32,_0x2c13ec,_0x18d3a2]=_0x17c765[_0x2e762d(0x12e)](':');_0x4ac6e5[_0x2e762d(0x264)]({'startOffset':Number(_0x2776bc),'endOffset':Number(_0x5b8c17),'collapsed':_0x2776bc===_0x5b8c17,'isActive':_0x5b88d4==='1','rangeType':_0x5cbd32===a[_0x2e762d(0x15d)][_0x2e762d(0xfd)]?a[_0x2e762d(0x15d)][_0x2e762d(0xfd)]:a[_0x2e762d(0x15d)]['RECT'],'segmentId':typeof _0x2c13ec==_0x2e762d(0x184)?String(_0x2c13ec):'','segmentPage':Number(_0x18d3a2!=null?_0x18d3a2:-0x1)});}return _0x4ac6e5[_0x2e762d(0x159)](_0x2b8e15=>_0x2b8e15[_0x2e762d(0x112)])||(_0x4ac6e5[0x0]['isActive']=!0x0),_0x4ac6e5;}class pe extends a[_0x41f8c8(0x1f9)]{constructor(){const _0x27392e=_0x41f8c8;super(...arguments),h(this,_0x27392e(0x326),new d[(_0x27392e(0x26a))](null)),h(this,_0x27392e(0x215),this['_collabCursorState$'][_0x27392e(0x2bb)]());}[_0x41f8c8(0x15e)](_0x22d986){const _0x17ea89=_0x41f8c8,{unitID:_0x43683a,memberID:_0x2cdc70,textRanges:_0x521e25}=_0x22d986,_0x4ac233=ye(_0x521e25);if(_0x4ac233==='')return;const _0x4ab73c={'unitID':_0x43683a,'memberID':_0x2cdc70,'selection':_0x4ac233};this[_0x17ea89(0x326)][_0x17ea89(0xfa)](_0x4ab73c);}}var tt=Object['getOwnPropertyDescriptor'],st=(_0xa9a914,_0x3682bd,_0x47c274,_0x4b9683)=>{for(var _0x302ca5=_0x4b9683>0x1?void 0x0:_0x4b9683?tt(_0x3682bd,_0x47c274):_0x3682bd,_0x4b624c=_0xa9a914['length']-0x1,_0x42075b;_0x4b624c>=0x0;_0x4b624c--)(_0x42075b=_0xa9a914[_0x4b624c])&&(_0x302ca5=_0x42075b(_0x302ca5)||_0x302ca5);return _0x302ca5;},N=(_0x5861f9,_0x2c0ce7)=>(_0xfb5869,_0x5bd1b0)=>_0x2c0ce7(_0xfb5869,_0x5bd1b0,_0x5861f9);const nt=0x12c,it=0x64;let Se=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x4c5bd6,_0x4971ed,_0x2966ce,_0x13dec9,_0x7620de,_0x233f3b,_0x13840a,_0x507b08,_0x3eef04){const _0x327d8d=_0x41f8c8;super(),h(this,_0x327d8d(0x212),!0x1),h(this,'_init',!0x1),h(this,_0x327d8d(0xcc),new d[(_0x327d8d(0x26a))](new Map())),h(this,'cursorInfo$',this[_0x327d8d(0xcc)]['asObservable']()),h(this,_0x327d8d(0x15b),new d['BehaviorSubject']([])),h(this,'roomMembers$',this[_0x327d8d(0x15b)][_0x327d8d(0x167)](d[_0x327d8d(0xdc)](nt))),h(this,_0x327d8d(0x217),a[_0x327d8d(0x1fe)](_0x1991f8=>{const _0x568573=_0x327d8d,_0x15d83e={'eventID':m[_0x568573(0x227)][_0x568573(0x295)],'data':{'unitID':this[_0x568573(0x19b)],'memberID':this[_0x568573(0x11f)][_0x568573(0xfc)](),'selection':ye(_0x1991f8)}};this[_0x568573(0x11f)][_0x568573(0x290)](_0x15d83e,this[_0x568573(0x19b)]);},it)),(this[_0x327d8d(0x19b)]=_0x4c5bd6,this[_0x327d8d(0x11f)]=_0x4971ed,this[_0x327d8d(0x236)]=_0x2966ce,this[_0x327d8d(0x233)]=_0x13dec9,this['_memberService']=_0x7620de,this[_0x327d8d(0x208)]=_0x233f3b,this['_transformService']=_0x13840a,this[_0x327d8d(0x15a)]=_0x507b08,this[_0x327d8d(0x23e)]=_0x3eef04);}get[_0x41f8c8(0xe4)](){const _0xf17a90=_0x41f8c8;return this[_0xf17a90(0xcc)][_0xf17a90(0x2b0)]();}get[_0x41f8c8(0x1a3)](){const _0x436fd9=_0x41f8c8;return this[_0x436fd9(0x15b)][_0x436fd9(0x2b0)]();}['dispose'](){const _0x2967d8=_0x41f8c8;super[_0x2967d8(0x1a7)](),this[_0x2967d8(0xcc)][_0x2967d8(0xfa)](new Map()),this[_0x2967d8(0xcc)][_0x2967d8(0x31e)](),this[_0x2967d8(0x15b)][_0x2967d8(0xfa)]([]),this[_0x2967d8(0x15b)][_0x2967d8(0x31e)]();}[_0x41f8c8(0x27e)](){const _0x145710=_0x41f8c8;this[_0x145710(0x320)]||(this['_init']=!0x0,this[_0x145710(0x11f)]['sessionStatus$'][_0x145710(0x167)](d['takeUntil'](this[_0x145710(0x16a)]))[_0x145710(0x11e)](_0x1f7e13=>{const _0x4dffd4=_0x145710;_0x1f7e13===u[_0x4dffd4(0x157)][_0x4dffd4(0x293)]?this['_toggleOnline']():this[_0x4dffd4(0x1a9)]();}),this['_session'][_0x145710(0x275)][_0x145710(0x167)](d[_0x145710(0x2dc)](this[_0x145710(0x16a)]))[_0x145710(0x11e)](_0x33203a=>{const _0x1cda35=_0x145710,_0x1908b6=_0x33203a[_0x1cda35(0xe0)];_0x1908b6===m['CollaborationEvent'][_0x1cda35(0x295)]&&this[_0x1cda35(0x243)](_0x33203a),_0x1908b6===m[_0x1cda35(0x227)][_0x1cda35(0xee)]&&this[_0x1cda35(0x1ec)](_0x33203a);}),this['disposeWithMe'](this[_0x145710(0x23e)][_0x145710(0x142)](_0x2d89dd=>{const _0x495805=_0x145710,_0x894a1e=_0x2d89dd[_0x495805(0x2b1)];_0x894a1e!=null&&this[_0x495805(0x212)]&&_0x2d89dd['id']===Y[_0x495805(0x1d1)]['id']&&_0x894a1e['unitId']===this[_0x495805(0x19b)]&&_0x894a1e[_0x495805(0x101)]===!0x1&&_0x894a1e['ranges']['length']>0x0&&this[_0x495805(0x217)](_0x894a1e[_0x495805(0x2d2)]);})),this['_syncEditingCollabCursorService'][_0x145710(0x215)][_0x145710(0x167)](d[_0x145710(0x2dc)](this[_0x145710(0x16a)]))['subscribe'](_0x32ada1=>{const _0x1a21e8=_0x145710;if((_0x32ada1==null?void 0x0:_0x32ada1[_0x1a21e8(0x19b)])!==this[_0x1a21e8(0x19b)])return;const _0x2bbb82={'eventID':m[_0x1a21e8(0x227)][_0x1a21e8(0x295)],'data':_0x32ada1};this[_0x1a21e8(0x243)](_0x2bbb82);}),this[_0x145710(0x176)](this['_commandService']['onCommandExecuted'](_0x5a5c72=>{const _0x28a1ab=_0x145710;if(_0x5a5c72[_0x28a1ab(0x2b1)]==null)return;const _0x42915e=_0x5a5c72[_0x28a1ab(0x2b1)];if(_0x5a5c72['id']!==Y['RichTextEditingMutation']['id']||_0x42915e[_0x28a1ab(0x20f)]!==this[_0x28a1ab(0x19b)])return;const _0x5635c0={'id':_0x28a1ab(0x2f8),'params':_0x42915e},_0xd62c31=this[_0x28a1ab(0xe4)];for(const [_0x34bbe3,_0x1ca2dc]of _0xd62c31){const _0x59f80e={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x28a1ab(0x19b)],'actions':null,'textRanges':_0x1ca2dc[_0x28a1ab(0x2d2)]}},_0xede5c8=this[_0x28a1ab(0x24b)][_0x28a1ab(0x14e)](_0x5635c0,_0x59f80e,!0x1);if(m[_0x28a1ab(0x23c)](_0xede5c8))throw _0xede5c8['error'];_0xd62c31[_0x28a1ab(0x238)](_0x34bbe3,{..._0x1ca2dc,'ranges':_0xede5c8[_0x28a1ab(0x33b)][_0x28a1ab(0x2b1)][_0x28a1ab(0x2c9)]});}queueMicrotask(()=>{const _0x1158e0=_0x28a1ab;this[_0x1158e0(0xcc)]['next'](_0xd62c31);});})));}[_0x41f8c8(0x243)](_0x34d87f){const _0x26b75a=_0x41f8c8;var _0x1b0d7f,_0x16b42c;const {memberID:_0x5104b4,selection:_0x4ff72a}=_0x34d87f[_0x26b75a(0x10b)],_0x57d248=et(_0x4ff72a),_0x257960=(_0x16b42c=(_0x1b0d7f=this['_memberService']['getMember'](this['unitID'],_0x5104b4))==null?void 0x0:_0x1b0d7f[_0x26b75a(0x1f5)])!=null?_0x16b42c:_0x26b75a(0x324),_0x31f62a={'color':this[_0x26b75a(0x233)]['assignAColorForMemberID'](_0x5104b4),'name':_0x257960,'ranges':_0x57d248},_0x4c41d=this['cursorInfo'];_0x4c41d['set'](_0x5104b4,_0x31f62a),this[_0x26b75a(0xcc)][_0x26b75a(0xfa)](_0x4c41d);}[_0x41f8c8(0x1ec)](_0x3fa7c8){const _0x2f1960=_0x41f8c8,{memberID:_0x2f9dd0}=_0x3fa7c8[_0x2f1960(0x10b)],_0x2b0ae0=this[_0x2f1960(0xe4)];_0x2b0ae0[_0x2f1960(0x203)](_0x2f9dd0),this[_0x2f1960(0xcc)][_0x2f1960(0xfa)](_0x2b0ae0);}[_0x41f8c8(0x1c6)](){const _0x6e2525=_0x41f8c8;var _0x413db7;if(this[_0x6e2525(0x212)]=!0x0,((_0x413db7=this[_0x6e2525(0x15a)]['getFocusedUnit']())==null?void 0x0:_0x413db7[_0x6e2525(0x2d4)]())!==this[_0x6e2525(0x19b)])return;const _0x115f7c=this[_0x6e2525(0x236)][_0x6e2525(0x328)](Y[_0x6e2525(0x1f2)])[_0x6e2525(0x1c1)]();Array[_0x6e2525(0x222)](_0x115f7c)&&_0x115f7c['length']>0x0&&this[_0x6e2525(0x217)](_0x115f7c);}[_0x41f8c8(0x1a9)](){const _0x160e40=_0x41f8c8;this[_0x160e40(0x212)]=!0x1;}};Se=st([N(0x2,a['Inject'](a[_0x41f8c8(0x2c2)])),N(0x3,a['Inject'](Ce)),N(0x4,a['Inject'](u['MemberService'])),N(0x5,a[_0x41f8c8(0x32b)](pe)),N(0x6,m[_0x41f8c8(0x113)]),N(0x7,a[_0x41f8c8(0x2b8)]),N(0x8,a['ICommandService'])],Se);var rt=Object[_0x41f8c8(0x247)],ot=(_0x3244fd,_0x574c04,_0x2c20f8,_0x42ffd3)=>{const _0x5d2858=_0x41f8c8;for(var _0x49a3df=_0x42ffd3>0x1?void 0x0:_0x42ffd3?rt(_0x574c04,_0x2c20f8):_0x574c04,_0x2c1a45=_0x3244fd[_0x5d2858(0xd5)]-0x1,_0x558a36;_0x2c1a45>=0x0;_0x2c1a45--)(_0x558a36=_0x3244fd[_0x2c1a45])&&(_0x49a3df=_0x558a36(_0x49a3df)||_0x49a3df);return _0x49a3df;},y=(_0xf89470,_0x33e327)=>(_0x18901e,_0x20344b)=>_0x33e327(_0x18901e,_0x20344b,_0xf89470);const at=0x12c,ct=0x64,lt=()=>{let _0x38457c=[],_0x1d1303=!0x1;return _0x2d04ae=>{const _0x2c96b0=_0xee62;_0x38457c[_0x2c96b0(0x264)](_0x2d04ae),_0x1d1303||(_0x1d1303=!0x0,setTimeout(()=>{const _0x1f8dc1=_0x2c96b0;_0x38457c[_0x1f8dc1(0x221)](_0x48a11b=>_0x48a11b()),_0x38457c=[],_0x1d1303=!0x1;}));};};let ve=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x336086,_0x5f1d1b,_0x57ba54,_0x2b0936,_0x45bb19,_0x2066c8,_0xb5da90,_0x569b60){const _0x3ff435=_0x41f8c8;super(),h(this,_0x3ff435(0x212),!0x1),h(this,_0x3ff435(0x320),!0x1),h(this,_0x3ff435(0xcc),new d[(_0x3ff435(0x26a))](new Map())),h(this,_0x3ff435(0x220),this['_cursorInfo$'][_0x3ff435(0x2bb)]()),h(this,_0x3ff435(0x15b),new d[(_0x3ff435(0x26a))]([])),h(this,_0x3ff435(0x1c7),this[_0x3ff435(0x15b)][_0x3ff435(0x167)](d[_0x3ff435(0xdc)](at))),h(this,_0x3ff435(0x217),a['debounce']((_0x191230,_0x41ed10)=>{const _0x40934d=_0x3ff435,_0x2f2348={'eventID':m['CollaborationEvent'][_0x40934d(0x295)],'data':{'unitID':this[_0x40934d(0x19b)],'memberID':this[_0x40934d(0x11f)][_0x40934d(0xfc)](),'selection':Te[_0x40934d(0x25c)](_0x191230,_0x41ed10['range'])}};this[_0x40934d(0x11f)]['send'](_0x2f2348,this[_0x40934d(0x19b)]);},ct)),(this[_0x3ff435(0x19b)]=_0x336086,this['_session']=_0x5f1d1b,this[_0x3ff435(0x236)]=_0x57ba54,this[_0x3ff435(0x233)]=_0x2b0936,this['_memberService']=_0x45bb19,this[_0x3ff435(0x15a)]=_0x2066c8,this[_0x3ff435(0x23e)]=_0xb5da90,this[_0x3ff435(0x2c0)]=_0x569b60);}get[_0x41f8c8(0xe4)](){const _0x26e378=_0x41f8c8;return this[_0x26e378(0xcc)]['getValue']();}get['roomMembers'](){const _0x5cbe91=_0x41f8c8;return this[_0x5cbe91(0x15b)][_0x5cbe91(0x2b0)]();}[_0x41f8c8(0x1a7)](){const _0x4ed641=_0x41f8c8;super[_0x4ed641(0x1a7)](),this['_cursorInfo$']['next'](new Map()),this[_0x4ed641(0xcc)][_0x4ed641(0x31e)](),this['_roomMembers$']['next']([]),this[_0x4ed641(0x15b)][_0x4ed641(0x31e)]();}['init'](){const _0x4d18af=_0x41f8c8;this['_init']||(this[_0x4d18af(0x320)]=!0x0,this[_0x4d18af(0x11f)][_0x4d18af(0x2ed)]['pipe'](d[_0x4d18af(0x2dc)](this[_0x4d18af(0x16a)]))[_0x4d18af(0x11e)](_0x214b3f=>{const _0x1d2b17=_0x4d18af;_0x214b3f===u[_0x1d2b17(0x157)]['ONLINE']?this[_0x1d2b17(0x1c6)]():this[_0x1d2b17(0x1a9)]();}),this[_0x4d18af(0x11f)]['event$']['pipe'](d['takeUntil'](this[_0x4d18af(0x16a)]))[_0x4d18af(0x11e)](_0x16c254=>{const _0x2accff=_0x4d18af,_0x54fb67=_0x16c254['eventID'];_0x54fb67===m[_0x2accff(0x227)][_0x2accff(0x295)]&&this[_0x2accff(0x243)](_0x16c254),_0x54fb67===m[_0x2accff(0x227)][_0x2accff(0xee)]&&this[_0x2accff(0x1ec)](_0x16c254);}),this['_onRefRangeChange'](),this[_0x4d18af(0x176)](this[_0x4d18af(0x23e)]['onCommandExecuted'](_0x529d0f=>{const _0x2b1d14=_0x4d18af;if(this['_online']&&_0x529d0f['id']===I[_0x2b1d14(0x329)]['id']&&_0x529d0f[_0x2b1d14(0x2b1)][_0x2b1d14(0x20f)]===this[_0x2b1d14(0x19b)]){const _0x96d60e=_0x529d0f['params'];this[_0x2b1d14(0x217)](_0x96d60e[_0x2b1d14(0x22f)],_0x96d60e[_0x2b1d14(0x2f9)][0x0]);}})));}['_onCursorUpdate'](_0x3904c5){const _0x4bf269=_0x41f8c8;var _0x26e2e8,_0x422914;const {memberID:_0x2dc320,selection:_0x1eb684}=_0x3904c5[_0x4bf269(0x10b)],{sheetName:_0x4ee832,range:_0x2be2e5}=Te['deserializeRangeWithSheet'](_0x1eb684),_0x51d908={'name':(_0x422914=(_0x26e2e8=this[_0x4bf269(0x2ad)][_0x4bf269(0x260)](this[_0x4bf269(0x19b)],_0x2dc320))==null?void 0x0:_0x26e2e8[_0x4bf269(0x1f5)])!=null?_0x422914:_0x4bf269(0x324),'range':this[_0x4bf269(0xde)](_0x4ee832,_0x2be2e5),'sheetID':_0x4ee832,'color':this[_0x4bf269(0x233)]['assignAColorForMemberID'](_0x2dc320),'selection':_0x1eb684},_0x1f88d7=this['cursorInfo'];_0x1f88d7[_0x4bf269(0x238)](_0x2dc320,_0x51d908),this[_0x4bf269(0xcc)][_0x4bf269(0xfa)](_0x1f88d7);}['_onCursorDelete'](_0x36db54){const _0x10b956=_0x41f8c8,{memberID:_0x2f3470}=_0x36db54[_0x10b956(0x10b)],_0x5689f0=this[_0x10b956(0xe4)];_0x5689f0['delete'](_0x2f3470),this[_0x10b956(0xcc)][_0x10b956(0xfa)](_0x5689f0);}['_getMergeRange'](_0xcbfe4b,_0x38c8a1){const _0x7a1465=_0x41f8c8;var _0x347c68,_0x54dbe9;const _0x20cfc6=(_0x54dbe9=(_0x347c68=this['_univerInstanceService']['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x347c68['getSheetBySheetId'](_0xcbfe4b))==null?void 0x0:_0x54dbe9['getMergeData']();return(_0x20cfc6==null?void 0x0:_0x20cfc6[_0x7a1465(0x22b)](_0x49d9bd=>a[_0x7a1465(0x170)]['contains'](_0x49d9bd,_0x38c8a1)))||_0x38c8a1;}[_0x41f8c8(0xdd)](){const _0x202734=_0x41f8c8,_0x252768=new a[(_0x202734(0x237))](),_0x93a175=lt(),_0x37602a=()=>{const _0x21487f=_0x202734;_0x252768['dispose']();const _0x484a4c=(_0x3141e6,_0x27f727,_0xa6b754,_0xd32eda)=>{const _0xa940c5=_0xee62;let _0x16b8bc=[];switch(_0x3141e6['id']){case I['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x16b8bc=I[_0xa940c5(0x246)](_0x3141e6,_0xd32eda);break;}case I['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x16b8bc=I[_0xa940c5(0x14f)](_0x3141e6,_0xd32eda);break;}case I[_0xa940c5(0x2a1)][_0xa940c5(0x138)]:{_0x16b8bc=I['handleInsertCol'](_0x3141e6,_0xd32eda);break;}case I[_0xa940c5(0x2a1)][_0xa940c5(0x1a2)]:{_0x16b8bc=I['handleInsertRangeMoveDown'](_0x3141e6,_0xd32eda);break;}case I['EffectRefRangId'][_0xa940c5(0x218)]:{_0x16b8bc=I[_0xa940c5(0x24f)](_0x3141e6,_0xd32eda);break;}case I['EffectRefRangId'][_0xa940c5(0x160)]:{_0x16b8bc=I[_0xa940c5(0x13d)](_0x3141e6,_0xd32eda);break;}case I[_0xa940c5(0x2a1)]['MoveRangeCommandId']:{_0x16b8bc=I[_0xa940c5(0x23f)](_0x3141e6,_0xd32eda);break;}case I[_0xa940c5(0x2a1)][_0xa940c5(0x2a6)]:{_0x16b8bc=I['handleIRemoveCol'](_0x3141e6,_0xd32eda);break;}case I[_0xa940c5(0x2a1)][_0xa940c5(0x165)]:{_0x16b8bc=I[_0xa940c5(0x2e4)](_0x3141e6,_0xd32eda);break;}}const _0x59e2cd=I[_0xa940c5(0x30b)](_0x16b8bc,_0xd32eda),_0x54a8c5=this[_0xa940c5(0xe4)][_0xa940c5(0x328)](_0x27f727);if(_0x54a8c5&&_0x59e2cd){const _0x101891={..._0x54a8c5,'range':_0x59e2cd};this['cursorInfo'][_0xa940c5(0x238)](_0x27f727,_0x101891),_0x93a175(()=>{const _0x309145=_0xa940c5,_0x54c2e5=this[_0x309145(0x2c0)][_0x309145(0x2d7)](_0x59e2cd,_0x366f82=>(_0x54c2e5['dispose'](),_0x484a4c(_0x366f82,_0x27f727,_0xa6b754,_0x59e2cd)));_0x252768[_0x309145(0x195)](_0x54c2e5);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x21487f(0x221)]((_0xa9d25e,_0x1fd6c6)=>{const _0x1d71f7=_0x21487f,{range:_0xfc1443,sheetID:_0x53f619}=_0xa9d25e,_0x5e10a1=this[_0x1d71f7(0x2c0)]['registerRefRange'](_0xfc1443,_0x386cb7=>(_0x5e10a1[_0x1d71f7(0x1a7)](),_0x484a4c(_0x386cb7,_0x1fd6c6,_0x53f619,_0xfc1443)));_0x252768[_0x1d71f7(0x195)](_0x5e10a1);});};this['disposeWithMe'](a[_0x202734(0x1b7)](this[_0x202734(0xcc)][_0x202734(0x11e)](()=>{_0x37602a();})));}[_0x41f8c8(0x1c6)](){const _0x5ec82e=_0x41f8c8;var _0x55a8d8,_0x44cdb7;if(this[_0x5ec82e(0x212)]=!0x0,((_0x55a8d8=this[_0x5ec82e(0x15a)][_0x5ec82e(0x2fe)]())==null?void 0x0:_0x55a8d8['getUnitId']())!==this[_0x5ec82e(0x19b)])return;const _0x5915cf=(_0x44cdb7=this[_0x5ec82e(0x236)][_0x5ec82e(0x328)](I['SheetsSelectionsService'])[_0x5ec82e(0x226)]())==null?void 0x0:_0x44cdb7[0x0],_0x180a19=this['_univerInstanceService']['getCurrentUnitForType'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x5ec82e(0x292)]();_0x5915cf&&_0x180a19&&this[_0x5ec82e(0x217)](_0x180a19['getSheetId'](),_0x5915cf);}['_toggleOffline'](){const _0x181308=_0x41f8c8;this[_0x181308(0x212)]=!0x1;}};ve=ot([y(0x2,a['Inject'](a[_0x41f8c8(0x2c2)])),y(0x3,a[_0x41f8c8(0x32b)](Ce)),y(0x4,a[_0x41f8c8(0x32b)](u[_0x41f8c8(0x198)])),y(0x5,a[_0x41f8c8(0x2b8)]),y(0x6,a[_0x41f8c8(0x210)]),y(0x7,a[_0x41f8c8(0x32b)](I[_0x41f8c8(0x25e)]))],ve);var ht=Object['getOwnPropertyDescriptor'],_t=(_0x570588,_0x48a238,_0x1a7902,_0x17cc3d)=>{const _0x2b13a6=_0x41f8c8;for(var _0x625fc6=_0x17cc3d>0x1?void 0x0:_0x17cc3d?ht(_0x48a238,_0x1a7902):_0x48a238,_0x180e0b=_0x570588[_0x2b13a6(0xd5)]-0x1,_0x6a432e;_0x180e0b>=0x0;_0x180e0b--)(_0x6a432e=_0x570588[_0x180e0b])&&(_0x625fc6=_0x6a432e(_0x625fc6)||_0x625fc6);return _0x625fc6;},ie=(_0x5d6130,_0x3d2fa2)=>(_0x17e5ec,_0x16e0fa)=>_0x3d2fa2(_0x17e5ec,_0x16e0fa,_0x5d6130);let x=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x2212d3,_0x52f0a2,_0x2b1707){const _0x479818=_0x41f8c8;super(),h(this,_0x479818(0x18a),new Map()),h(this,_0x479818(0x137),new d[(_0x479818(0xe1))]()),(this[_0x479818(0x15a)]=_0x2212d3,this[_0x479818(0x236)]=_0x52f0a2,this[_0x479818(0x231)]=_0x2b1707,this[_0x479818(0x320)]());}[_0x41f8c8(0x1a7)](){const _0x3f835a=_0x41f8c8;super['dispose'](),this[_0x3f835a(0x137)][_0x3f835a(0x31e)](),this['_entities'][_0x3f835a(0x221)](_0x35d0ea=>_0x35d0ea['dispose']());}[_0x41f8c8(0x2fb)](_0x478f29){const _0x22a2b9=_0x41f8c8;return this['_entities'][_0x22a2b9(0x271)](_0x478f29)?this['_entities'][_0x22a2b9(0x328)](_0x478f29)[_0x22a2b9(0x220)]:this['_entityInit$'][_0x22a2b9(0x167)](d['filter'](_0x384055=>_0x384055['unitID']===_0x478f29),d['switchMap'](_0x37eeb8=>_0x37eeb8['cursorInfo$']));}[_0x41f8c8(0x320)](){const _0x23cbd2=_0x41f8c8;this[_0x23cbd2(0x15a)][_0x23cbd2(0x1a8)](a[_0x23cbd2(0x335)]['UNIVER_SHEET'])['pipe'](d[_0x23cbd2(0x2dc)](this['dispose$']))[_0x23cbd2(0x11e)](async _0x560df3=>{const _0x3d10d2=_0x23cbd2,_0x3c4b42=_0x560df3[_0x3d10d2(0x2d4)](),_0x4a6bf2=await this[_0x3d10d2(0x32a)](_0x3c4b42);this[_0x3d10d2(0x137)][_0x3d10d2(0xfa)](_0x4a6bf2),this['_entities']['set'](_0x3c4b42,_0x4a6bf2);}),this[_0x23cbd2(0x15a)][_0x23cbd2(0x1a8)](a[_0x23cbd2(0x335)][_0x23cbd2(0xf3)])[_0x23cbd2(0x167)](d[_0x23cbd2(0x2dc)](this[_0x23cbd2(0x16a)]))[_0x23cbd2(0x167)](d['filter'](_0x4dc373=>!_0x4dc373[_0x23cbd2(0x2d4)]()[_0x23cbd2(0x183)]('__')))[_0x23cbd2(0x11e)](async _0x5a6161=>{const _0x58d951=_0x23cbd2,_0x4a1c89=_0x5a6161[_0x58d951(0x2d4)](),_0xfac45b=await this[_0x58d951(0x205)](_0x4a1c89);this[_0x58d951(0x137)]['next'](_0xfac45b),this[_0x58d951(0x18a)][_0x58d951(0x238)](_0x4a1c89,_0xfac45b);}),d[_0x23cbd2(0x241)](this[_0x23cbd2(0x15a)][_0x23cbd2(0x2bc)](a[_0x23cbd2(0x335)]['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_SHEET']))[_0x23cbd2(0x167)](d[_0x23cbd2(0x2dc)](this[_0x23cbd2(0x16a)]))['subscribe'](_0x332c79=>{const _0x430899=_0x23cbd2,_0x349113=_0x332c79[_0x430899(0x2d4)](),_0x1e78bb=this[_0x430899(0x18a)][_0x430899(0x328)](_0x349113);_0x1e78bb&&(_0x1e78bb[_0x430899(0x1a7)](),this[_0x430899(0x18a)]['delete'](_0x349113));});}async['_startSheetCollabCursor'](_0x288271){const _0x1e6f38=_0x41f8c8,_0x4c3b7e=await this['_collabSessionService'][_0x1e6f38(0x2d6)](_0x288271),_0x136cc1=this[_0x1e6f38(0x236)][_0x1e6f38(0xf4)](ve,_0x288271,_0x4c3b7e);return _0x136cc1[_0x1e6f38(0x27e)](),_0x136cc1;}async[_0x41f8c8(0x205)](_0x4e424a){const _0x3ff77b=_0x41f8c8,_0x569514=await this[_0x3ff77b(0x231)]['requireSession'](_0x4e424a),_0x190afa=this[_0x3ff77b(0x236)][_0x3ff77b(0xf4)](Se,_0x4e424a,_0x569514);return _0x190afa['init'](),_0x190afa;}};x=_t([ie(0x0,a[_0x41f8c8(0x2b8)]),ie(0x1,a[_0x41f8c8(0x32b)](a[_0x41f8c8(0x2c2)])),ie(0x2,a[_0x41f8c8(0x32b)](u[_0x41f8c8(0x106)]))],x);const K=0x14,De=0xc8,re=0x4,ut=0x5;function dt(_0x3d2502,_0x3f5e7f){const _0x4e4e11=_0x41f8c8;let {radius:_0x2f0e63,width:_0x4d591e,height:_0x1e2e33}=_0x3f5e7f;_0x2f0e63=_0x2f0e63!=null?_0x2f0e63:0x0,_0x4d591e=_0x4d591e!=null?_0x4d591e:0x1e,_0x1e2e33=_0x1e2e33!=null?_0x1e2e33:0x1e;let _0x1558fb=0x0,_0x55bcbf=0x0,_0x3a27d1=0x0;_0x1558fb=_0x55bcbf=_0x3a27d1=Math[_0x4e4e11(0x2e0)](_0x2f0e63,_0x4d591e/0x2,_0x1e2e33/0x2),_0x3d2502['beginPath'](),_0x3d2502['moveTo'](_0x1558fb,0x0),_0x3d2502['lineTo'](_0x4d591e-_0x55bcbf,0x0),_0x3d2502[_0x4e4e11(0x31d)](_0x4d591e-_0x55bcbf,_0x55bcbf,_0x55bcbf,Math['PI']*0x3/0x2,0x0,!0x1),_0x3d2502[_0x4e4e11(0x1d6)](_0x4d591e,_0x1e2e33-_0x3a27d1),_0x3d2502[_0x4e4e11(0x31d)](_0x4d591e-_0x3a27d1,_0x1e2e33-_0x3a27d1,_0x3a27d1,0x0,Math['PI']/0x2,!0x1),_0x3d2502[_0x4e4e11(0x1d6)](0x0,_0x1e2e33),_0x3d2502[_0x4e4e11(0x1d6)](0x0,_0x1558fb),_0x3d2502[_0x4e4e11(0x31d)](_0x1558fb,_0x1558fb,_0x1558fb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3d2502[_0x4e4e11(0x2da)](),_0x3f5e7f['fill']&&(_0x3d2502[_0x4e4e11(0x186)](),_0x3d2502['fillStyle']=_0x3f5e7f[_0x4e4e11(0x2a9)],_0x3f5e7f['fillRule']===_0x4e4e11(0x110)?_0x3d2502[_0x4e4e11(0x2a9)](_0x4e4e11(0x110)):_0x3d2502['fill'](),_0x3d2502[_0x4e4e11(0x32c)]());}class te extends p[_0x41f8c8(0x1c5)]{constructor(_0x363ec5,_0x51a4d3){const _0x18604c=_0x41f8c8;super(_0x363ec5,_0x51a4d3),h(this,_0x18604c(0x185)),h(this,_0x18604c(0x340)),(this[_0x18604c(0x185)]=_0x51a4d3==null?void 0x0:_0x51a4d3['color'],this[_0x18604c(0x340)]=_0x51a4d3==null?void 0x0:_0x51a4d3[_0x18604c(0x340)]);}static['drawWith'](_0x353ac3,_0x45e694){const _0x457d78=_0x41f8c8,{text:_0xaf046a,color:_0x3c42fa}=_0x45e694;_0x353ac3[_0x457d78(0x186)](),_0x353ac3['font']=_0x457d78(0x1c0);const _0x4e70b1=_0x353ac3[_0x457d78(0x134)](_0xaf046a)[_0x457d78(0x2e8)],_0x530eed=Math[_0x457d78(0x2e0)](_0x4e70b1+0x2*re,De);dt(_0x353ac3,{'height':K,'radius':0x4,'width':_0x530eed,'fill':_0x3c42fa}),_0x353ac3['fillStyle']=_0x457d78(0xdf);const _0x3a258f=re,_0x2f36a4=K-ut,_0x5bfbeb=De-0x2*re;if(_0x4e70b1>_0x5bfbeb){let _0x1f277f='',_0x1d85fd=0x0;for(const _0x46fe58 of _0xaf046a){const _0x680dd6=_0x353ac3[_0x457d78(0x134)](_0x46fe58)[_0x457d78(0x2e8)];if(_0x1d85fd+_0x680dd6<=_0x5bfbeb-_0x353ac3[_0x457d78(0x134)]('...')[_0x457d78(0x2e8)])_0x1f277f+=_0x46fe58,_0x1d85fd+=_0x680dd6;else{_0x1f277f+=_0x457d78(0xf7);break;}}_0x353ac3[_0x457d78(0x22e)](_0x1f277f,_0x3a258f,_0x2f36a4);}else _0x353ac3[_0x457d78(0x22e)](_0xaf046a,_0x3a258f,_0x2f36a4);_0x353ac3[_0x457d78(0x32c)]();}[_0x41f8c8(0x2b9)](_0x3cef2b){const _0x2ff9a2=_0x41f8c8;te[_0x2ff9a2(0x14d)](_0x3cef2b,this);}}const oe='collab-text-anchor-',ft=_0x41f8c8(0x20a),St=_0x41f8c8(0x25f),B=0x6,vt=1.5,ae=0x4,gt=1.5,It=_0x41f8c8(0x153);class Ue{constructor(_0x3c5943,_0x49add5,_0x333272,_0x2495df){const _0x202f15=_0x41f8c8;h(this,'_shapes',[]),h(this,_0x202f15(0x1ee),null),h(this,'_textBubble',null),h(this,_0x202f15(0x1ff),null),h(this,_0x202f15(0x192),null),h(this,_0x202f15(0x181),null),(this[_0x202f15(0x12f)]=_0x3c5943,this['_scene']=_0x49add5,this[_0x202f15(0x108)]=_0x333272,this[_0x202f15(0x16c)]=_0x2495df,this['_render']());}set[_0x41f8c8(0xc5)](_0x19efec){const _0x1b1c00=_0x41f8c8;_0x19efec?(this[_0x1b1c00(0x1ff)]&&this['_anchorDot'][_0x1b1c00(0x2f0)](),this[_0x1b1c00(0x299)]&&this[_0x1b1c00(0x299)][_0x1b1c00(0x17e)]()):(this[_0x1b1c00(0x1ff)]&&this[_0x1b1c00(0x1ff)][_0x1b1c00(0x17e)](),this[_0x1b1c00(0x299)]&&this['_textBubble'][_0x1b1c00(0x2f0)]());}[_0x41f8c8(0x1a7)](){const _0x51bec3=_0x41f8c8;for(const _0x5612d5 of this[_0x51bec3(0x2ac)])_0x5612d5[_0x51bec3(0x1a7)]();this[_0x51bec3(0x299)]&&this[_0x51bec3(0x299)][_0x51bec3(0x1a7)](),this['_anchorDot']&&this[_0x51bec3(0x1ff)]['dispose'](),this[_0x51bec3(0x1ee)]&&this[_0x51bec3(0x1ee)]['dispose'](),this[_0x51bec3(0x181)]&&this[_0x51bec3(0x181)]();}[_0x41f8c8(0x1eb)](){const _0x5c40ea=_0x41f8c8;var _0x5b63e9;const {_docSkeleton:_0x99274a,_document:_0x2404af}=this,{color:_0x3201bd,name:_0x3edf9e,ranges:_0x74c4ce}=this[_0x5c40ea(0x12f)],_0x15e775=_0x2404af[_0x5c40ea(0x27f)](),{docsLeft:_0x264c54,docsTop:_0x3d04d6}=_0x15e775,_0x538399=new b['NodePositionConvertToCursor'](_0x15e775,_0x99274a);for(const {startOffset:_0x5cce10,endOffset:_0x444050,rangeType:_0x17db8d,segmentId:_0x200baa,segmentPage:_0x2fde96,collapsed:_0x4857fc,isActive:_0x3894dc}of _0x74c4ce){const _0x57bcb6=_0x99274a[_0x5c40ea(0x2e3)](_0x5cce10,!0x0,_0x200baa,_0x2fde96);let _0xcb4042=_0x99274a['findNodePositionByCharIndex'](_0x444050,!0x0,_0x200baa,_0x2fde96);if(_0xcb4042==null&&(_0xcb4042=_0x99274a[_0x5c40ea(0x2e3)](_0x444050-0x1,!0x1,_0x200baa,_0x2fde96)),_0x3894dc){const {contentBoxPointGroup:_0x51cda2}=_0x538399[_0x5c40ea(0x129)](_0xcb4042,_0xcb4042);if(_0x51cda2[_0x5c40ea(0xd5)]===0x0)continue;this['_drawAnchor'](_0x3201bd,_0x51cda2,_0x264c54,_0x3d04d6,_0x3edf9e),this[_0x5c40ea(0x181)]=this[_0x5c40ea(0x235)]();}if(_0x57bcb6&&_0xcb4042){if(_0x17db8d===a[_0x5c40ea(0x15d)][_0x5c40ea(0xf2)]){const _0x1954c9=new b[(_0x5c40ea(0x11b))](_0x15e775,_0x99274a),{pointGroup:_0x319420}=(_0x5b63e9=_0x1954c9['getRangePointData'](_0x57bcb6,_0xcb4042))!=null?_0x5b63e9:{};if(_0x319420==null||_0x319420['length']===0x0)continue;this[_0x5c40ea(0x211)](_0x3201bd,_0x319420,_0x264c54,_0x3d04d6);}else{if(!_0x4857fc){const {borderBoxPointGroup:_0xab3afe}=_0x538399[_0x5c40ea(0x129)](_0x57bcb6,_0xcb4042);if(_0xab3afe[_0x5c40ea(0xd5)]===0x0)continue;this[_0x5c40ea(0x2d3)](_0x3201bd,_0xab3afe,_0x264c54,_0x3d04d6);}}}}}['_drawAnchor'](_0x38c343,_0x538f50,_0x4b69d3,_0x1f799a,_0x3bc4ba){const _0x36e081=_0x41f8c8,_0x49a77d=this['_getAnchorBounding'](_0x538f50),{left:_0x4425a9,top:_0xc3be1f,height:_0x24650a}=_0x49a77d,_0x16b507=this[_0x36e081(0x2ab)](),_0x5afe4c=gt/_0x16b507,_0x4529a0=new p[(_0x36e081(0x1fd))](oe+a[_0x36e081(0x223)][_0x36e081(0x1ed)](B),{'left':_0x4425a9+_0x4b69d3-_0x5afe4c,'top':_0xc3be1f+_0x1f799a,'height':_0x24650a,'width':vt,'fill':_0x38c343||p[_0x36e081(0x1f4)](a[_0x36e081(0xe8)]['black'],0x0),'strokeWidth':_0x5afe4c,'stroke':It,'evented':!0x0});this[_0x36e081(0x1ee)]=_0x4529a0,this[_0x36e081(0x116)][_0x36e081(0x1be)](_0x4529a0,b[_0x36e081(0x124)]);const _0x648ea1=new p[(_0x36e081(0x1fd))](oe+a[_0x36e081(0x223)]['generateRandomId'](B),{'left':_0x4425a9+_0x4b69d3-_0x5afe4c,'top':_0xc3be1f+_0x1f799a-ae/0x2,'height':ae,'width':ae,'fill':_0x38c343||p['getColor'](a[_0x36e081(0xe8)][_0x36e081(0x2ff)],0x0),'strokeWidth':0x0,'stroke':_0x38c343||p[_0x36e081(0x1f4)](a[_0x36e081(0xe8)][_0x36e081(0x2ff)],0x0),'evented':!0x1});this[_0x36e081(0x1ff)]=_0x648ea1,this[_0x36e081(0x116)]['addObject'](_0x648ea1,b[_0x36e081(0x124)]);const _0x36587f=new te(oe+a[_0x36e081(0x223)]['generateRandomId'](B),{'left':_0x4425a9+_0x4b69d3-_0x5afe4c,'top':_0xc3be1f+_0x1f799a-K,'text':_0x3bc4ba,'color':_0x38c343});this[_0x36e081(0x299)]=_0x36587f,this['_scene'][_0x36e081(0x1be)](_0x36587f,b[_0x36e081(0x124)]),this['_hover']=!0x1;}[_0x41f8c8(0x235)](){const _0x5b9332=_0x41f8c8,_0x3ddc70=this['_anchor'][_0x5b9332(0x286)]['subscribeEvent'](()=>{const _0x1726af=_0x5b9332;this[_0x1726af(0xc5)]=!0x0;}),_0x5b322d=this[_0x5b9332(0x1ee)][_0x5b9332(0xce)][_0x5b9332(0x1cf)](()=>{const _0x23ae62=_0x5b9332;this[_0x23ae62(0x192)]&&clearTimeout(this[_0x23ae62(0x192)]),this[_0x23ae62(0x192)]=setTimeout(()=>{const _0x24a278=_0x23ae62;this[_0x24a278(0xc5)]=!0x1;},0x7d0);});return()=>{const _0x22f20e=_0x5b9332;_0x3ddc70[_0x22f20e(0x224)](),_0x5b322d[_0x22f20e(0x224)]();};}[_0x41f8c8(0x2d3)](_0x5b0a36,_0x4a4bfe,_0x47ab45,_0x55abcb){const _0x239d0a=_0x41f8c8,_0x4446ad=new a[(_0x239d0a(0x11a))](_0x5b0a36)['setAlpha'](0.2)[_0x239d0a(0x1b9)](),_0x2a9605=new p[(_0x239d0a(0x304))](ft+a[_0x239d0a(0x223)]['generateRandomId'](B),{'pointsGroup':_0x4a4bfe,'fill':_0x4446ad||p[_0x239d0a(0x1f4)](a['COLORS'][_0x239d0a(0x2ff)],0.2),'left':_0x47ab45,'top':_0x55abcb,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x2a9605),this['_scene'][_0x239d0a(0x1be)](_0x2a9605,b[_0x239d0a(0x124)]);}[_0x41f8c8(0x211)](_0x6eb4ea,_0x3b9d5f,_0x4f9758,_0x33c395){const _0x107866=_0x41f8c8,_0x3fc08d=new a[(_0x107866(0x11a))](_0x6eb4ea)[_0x107866(0x19e)](0.2)[_0x107866(0x1b9)](),_0x129db7=new p[(_0x107866(0x304))](St+a['Tools'][_0x107866(0x1ed)](B),{'pointsGroup':_0x3b9d5f,'fill':_0x3fc08d||p[_0x107866(0x1f4)](a[_0x107866(0xe8)][_0x107866(0x2ff)],0.2),'left':_0x4f9758,'top':_0x33c395,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x107866(0x264)](_0x129db7),this[_0x107866(0x116)][_0x107866(0x1be)](_0x129db7,b['TEXT_RANGE_LAYER_INDEX']);}[_0x41f8c8(0x2a0)](_0x5a9014){const _0x1af863=_0x5a9014[0x0],_0x17d0cf=_0x1af863[0x0],_0x55c3f8=_0x1af863[0x2],{x:_0x5d67e5,y:_0x1045d7}=_0x17d0cf,{x:_0x56e5f9,y:_0x32066f}=_0x55c3f8;return{'left':_0x5d67e5,'top':_0x1045d7,'width':_0x56e5f9-_0x5d67e5,'height':_0x32066f-_0x1045d7};}[_0x41f8c8(0x2ab)](){const _0x666ebc=_0x41f8c8,{scaleX:_0x2c19a4,scaleY:_0x38c83e}=this[_0x666ebc(0x116)][_0x666ebc(0x2db)]();return Math[_0x666ebc(0x1f1)](_0x2c19a4,_0x38c83e);}}var mt=Object['getOwnPropertyDescriptor'],Ct=(_0x361872,_0x2bd2d3,_0x21fbf7,_0x43fb4b)=>{for(var _0x5684ea=_0x43fb4b>0x1?void 0x0:_0x43fb4b?mt(_0x2bd2d3,_0x21fbf7):_0x2bd2d3,_0x1615c4=_0x361872['length']-0x1,_0x6079a0;_0x1615c4>=0x0;_0x1615c4--)(_0x6079a0=_0x361872[_0x1615c4])&&(_0x5684ea=_0x6079a0(_0x5684ea)||_0x5684ea);return _0x5684ea;},X=(_0x418a77,_0x4a2b73)=>(_0x1c4052,_0x40ca1e)=>_0x4a2b73(_0x1c4052,_0x40ca1e,_0x418a77);let ge=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x1799a5,_0x1f5041,_0xe742cc,_0x36baec,_0x11e467){const _0x29349f=_0x41f8c8;super(),h(this,'_cursorShapes',[]),h(this,_0x29349f(0x144),[]),(this['_context']=_0x1799a5,this[_0x29349f(0x277)]=_0x1f5041,this[_0x29349f(0x1e8)]=_0xe742cc,this[_0x29349f(0x23e)]=_0x36baec,this['_themeService']=_0x11e467,this[_0x29349f(0x320)]());}[_0x41f8c8(0x320)](){const _0x466960=_0x41f8c8,_0x5861e7=this[_0x466960(0xcb)][_0x466960(0x20f)],_0x4e4330=this[_0x466960(0x277)];this[_0x466960(0x176)](d[_0x466960(0x156)]([this[_0x466960(0x1e8)]['getCollabCursors$'](_0x5861e7),this[_0x466960(0x130)][_0x466960(0x158)]])[_0x466960(0x167)]($[_0x466960(0x1ef)](([_0x4e5bd8,_0x9654a9])=>({'skeleton':_0x4e4330['getSkeleton'](),'cursors':[..._0x4e5bd8[_0x466960(0xcf)]()][_0x466960(0x1e9)](_0x58b273=>({..._0x58b273,'color':_0x9654a9[_0x58b273[_0x466960(0x185)]]}))})))[_0x466960(0x11e)](_0xd54b97=>{if(this['_removeCollabCursors'](),_0xd54b97){const {skeleton:_0x1fac88,cursors:_0x32146c}=_0xd54b97;this['_updateCollabCursors'](_0x1fac88,_0x32146c);}})),this[_0x466960(0xe9)](),this[_0x466960(0x302)]();}[_0x41f8c8(0x28d)](_0x20dfd7,_0x2c2208){const _0x43d1bd=_0x41f8c8,{scene:_0x2023ae,mainComponent:_0xc5821c}=this[_0x43d1bd(0xcb)],_0x904ae6=_0x2c2208[_0x43d1bd(0x1ef)](_0x5d9fdf=>new Ue(_0x5d9fdf,_0x2023ae,_0x20dfd7,_0xc5821c));this[_0x43d1bd(0x31a)]=_0x904ae6,this[_0x43d1bd(0x144)]=_0x2c2208;}[_0x41f8c8(0x279)](){const _0x451987=_0x41f8c8;this[_0x451987(0x1a4)]();const {scene:_0x30ea81,mainComponent:_0x1ba769}=this['_context'],_0x6c7ab5=this['_docSkeletonManagerService'][_0x451987(0x338)](),_0x36482e=this[_0x451987(0x144)][_0x451987(0x1ef)](_0x571ebd=>new Ue(_0x571ebd,_0x30ea81,_0x6c7ab5,_0x1ba769));this[_0x451987(0x31a)]=_0x36482e;}['_removeCollabCursors'](){const _0xb59938=_0x41f8c8;this[_0xb59938(0x31a)]['forEach'](_0x4e56e3=>_0x4e56e3['dispose']()),this[_0xb59938(0x31a)]=[];}['_initCommandExecutedListener'](){const _0x4f1700=_0x41f8c8,_0x5dc063=[b['SetDocZoomRatioOperation']['id']];this[_0x4f1700(0x176)](this['_commandService'][_0x4f1700(0x142)](_0x10ee1d=>{const _0x35409c=_0x4f1700;_0x5dc063['includes'](_0x10ee1d['id'])&&_0x10ee1d[_0x35409c(0x2b1)][_0x35409c(0x20f)]===this['_context'][_0x35409c(0x20f)]&&this[_0x35409c(0x279)]();}));}[_0x41f8c8(0xe9)](){const _0x4b8b3d=_0x41f8c8;this[_0x4b8b3d(0x176)](a['fromEventSubject'](this[_0x4b8b3d(0xcb)][_0x4b8b3d(0x1aa)][_0x4b8b3d(0x189)])['pipe']($[_0x4b8b3d(0x298)](_0x14df6b=>_0x14df6b['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x4b8b3d(0x2b4)]),$['throttleTime'](0x10))[_0x4b8b3d(0x11e)](()=>{const _0x542392=_0x4b8b3d;this[_0x542392(0x279)]();}));}};ge=Ct([X(0x1,a[_0x41f8c8(0x32b)](Y[_0x41f8c8(0x1b0)])),X(0x2,a['Inject'](x)),X(0x3,a[_0x41f8c8(0x210)]),X(0x4,a['Inject'](a[_0x41f8c8(0x306)]))],ge);const pt=0x1,bt=1.5;class Ae extends p[_0x41f8c8(0x1c5)]{constructor(_0x463943,_0x464570){const _0x3cb5a5=_0x41f8c8;super(_0x463943,_0x464570),h(this,_0x3cb5a5(0x24a)),h(this,'_hovered',!0x1),h(this,_0x3cb5a5(0x29f)),h(this,'_name',''),h(this,_0x3cb5a5(0x297),'top'),h(this,_0x3cb5a5(0x26d)),(_0x464570&&this[_0x3cb5a5(0x182)](_0x464570),this[_0x3cb5a5(0x286)][_0x3cb5a5(0x1cf)](()=>this[_0x3cb5a5(0x182)]({'hovered':!0x0})),this[_0x3cb5a5(0xce)][_0x3cb5a5(0x1cf)](()=>this[_0x3cb5a5(0x182)]({'hovered':!0x1})));}['setShapeProps'](_0x3dde0e){const _0x164fa9=_0x41f8c8;var _0x39f9a9,_0x5d697c,_0x32dc3b,_0x583107,_0x163f7f,_0x50ae1f;this[_0x164fa9(0x24a)]=(_0x39f9a9=_0x3dde0e[_0x164fa9(0x185)])!=null?_0x39f9a9:this['_color'],this['_hovered']=(_0x5d697c=_0x3dde0e[_0x164fa9(0x2f3)])!=null?_0x5d697c:this[_0x164fa9(0x1ba)],this[_0x164fa9(0x29f)]=(_0x32dc3b=_0x3dde0e[_0x164fa9(0x1ab)])!=null?_0x32dc3b:this[_0x164fa9(0x29f)],this[_0x164fa9(0x202)]=(_0x583107=_0x3dde0e['name'])!=null?_0x583107:this[_0x164fa9(0x202)],this[_0x164fa9(0x297)]=(_0x163f7f=_0x3dde0e[_0x164fa9(0x126)])!=null?_0x163f7f:this[_0x164fa9(0x297)],this[_0x164fa9(0x26d)]=(_0x50ae1f=_0x3dde0e[_0x164fa9(0x261)])!=null?_0x50ae1f:this['_backgroundColor'],this[_0x164fa9(0xca)]({'width':_0x3dde0e[_0x164fa9(0x2e8)],'height':_0x3dde0e[_0x164fa9(0x12b)]});}[_0x41f8c8(0x310)](_0x1d2609){const _0x586340=_0x41f8c8,{row:_0x4fcfdf,column:_0x352686}=_0x1d2609;if(_0x4fcfdf>=this[_0x586340(0x29f)][_0x586340(0x2fc)]&&_0x4fcfdf<=this[_0x586340(0x29f)][_0x586340(0x163)]&&_0x352686>=this[_0x586340(0x29f)][_0x586340(0xf6)]&&_0x352686<=this[_0x586340(0x29f)][_0x586340(0x1b3)]){this[_0x586340(0x182)]({'hovered':!0x0});return;}this[_0x586340(0x182)]({'hovered':!0x1});}['triggerDblclick'](_0x102550){return!0x1;}['_draw'](_0x119253){const _0x3f5763=_0x41f8c8;p['Rect'][_0x3f5763(0x14d)](_0x119253,{'width':this[_0x3f5763(0x2e8)],'height':this[_0x3f5763(0x12b)],'strokeWidth':bt,'stroke':this[_0x3f5763(0x24a)],'evented':!0x1,'fill':this[_0x3f5763(0x26d)]}),this[_0x3f5763(0x1ba)]&&(_0x119253[_0x3f5763(0x186)](),_0x119253[_0x3f5763(0xd3)](0x1,0x0,0x0,0x1,this[_0x3f5763(0x2e8)],this[_0x3f5763(0x297)]==='bottom'?0x0:-0x14),te[_0x3f5763(0x14d)](_0x119253,{'text':this[_0x3f5763(0x202)],'color':this[_0x3f5763(0x24a)]}),_0x119253[_0x3f5763(0x32c)]());}}var Et=Object[_0x41f8c8(0x247)],Tt=(_0x4c2ab3,_0x2e457e,_0x14c673,_0x292b2d)=>{const _0x1152c1=_0x41f8c8;for(var _0x5e0ea7=_0x292b2d>0x1?void 0x0:_0x292b2d?Et(_0x2e457e,_0x14c673):_0x2e457e,_0x19edc4=_0x4c2ab3[_0x1152c1(0xd5)]-0x1,_0x5d338f;_0x19edc4>=0x0;_0x19edc4--)(_0x5d338f=_0x4c2ab3[_0x19edc4])&&(_0x5e0ea7=_0x5d338f(_0x5e0ea7)||_0x5e0ea7);return _0x5e0ea7;},ce=(_0x564294,_0x25dcfb)=>(_0x10ec9a,_0x404c4c)=>_0x25dcfb(_0x10ec9a,_0x404c4c,_0x564294);const Rt=0x1389;let Ie=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x3130b0,_0x5e1ae9,_0x580d0e,_0x546204){const _0x42ceb2=_0x41f8c8;super(),h(this,'_cursors',new Set()),h(this,'_lastPointer',null),(this[_0x42ceb2(0xcb)]=_0x3130b0,this[_0x42ceb2(0x32d)]=_0x5e1ae9,this[_0x42ceb2(0x1e8)]=_0x580d0e,this[_0x42ceb2(0x130)]=_0x546204,this[_0x42ceb2(0x320)]());}[_0x41f8c8(0x320)](){const _0x114e1c=_0x41f8c8;this[_0x114e1c(0x32d)][_0x114e1c(0x331)][_0x114e1c(0x167)]($[_0x114e1c(0x2dc)](this['dispose$']),$[_0x114e1c(0x30d)](_0x53a722=>{const _0xeeeaaa=_0x114e1c;if(_0x53a722){const _0x56dbdb=_0x53a722[_0xeeeaaa(0x109)];return d[_0xeeeaaa(0x156)](this['_collabCursorController'][_0xeeeaaa(0x2fb)](this[_0xeeeaaa(0xcb)][_0xeeeaaa(0x20f)]),this[_0xeeeaaa(0x130)][_0xeeeaaa(0x158)])[_0xeeeaaa(0x167)]($[_0xeeeaaa(0x1ef)](([_0x3a77e1,_0x244a7c])=>{const _0x5a74f6=new Map();return _0x3a77e1['forEach']((_0x217303,_0x599abc)=>{const _0x127db2=_0xee62;if(_0x217303[_0x127db2(0x257)]===_0x56dbdb){const _0x9aa3da={..._0x217303};_0x9aa3da[_0x127db2(0x185)]=_0x244a7c[_0x217303[_0x127db2(0x185)]],_0x5a74f6[_0x127db2(0x238)](_0x599abc,_0x9aa3da);}}),{'skeleton':_0x53a722,'cursors':_0x5a74f6};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x429775,cursors:_0x214caa})=>{const _0xc4d9cb=_0x114e1c;this[_0xc4d9cb(0x1a4)](),_0x429775&&this[_0xc4d9cb(0x28d)](_0x429775,_0x214caa);}),this['_sheetSkeletonManagerService'][_0x114e1c(0x331)]['subscribe'](_0x55126e=>{const _0x5d4945=_0x114e1c;if(_0x55126e==null)return;const {skeleton:_0x49db05}=_0x55126e,{scene:_0x3fccb3}=this[_0x5d4945(0xcb)];_0x3fccb3[_0x5d4945(0x162)][_0x5d4945(0x1cf)](a['debounce'](_0x14e400=>{const _0x51e987=_0x5d4945;var _0x270b43,_0x30fad4;const {offsetX:_0x7cf8d5,offsetY:_0x3fdf36}=_0x14e400,{x:_0x525b5b,y:_0x1578c6}=_0x3fccb3[_0x51e987(0x132)](p[_0x51e987(0x1da)][_0x51e987(0x105)]([_0x7cf8d5,_0x3fdf36])),{scaleX:_0x204077,scaleY:_0x2a09aa}=_0x3fccb3[_0x51e987(0x2db)](),_0xd88acd=_0x3fccb3[_0x51e987(0x321)](p[_0x51e987(0x2f7)]['VIEW_MAIN']),_0x2d9750=_0x3fccb3[_0x51e987(0x216)](p[_0x51e987(0x1da)]['FromArray']([_0x525b5b,_0x1578c6]),_0xd88acd),_0x199007=_0x49db05[_0x51e987(0x255)](_0x7cf8d5,_0x3fdf36,_0x204077,_0x2a09aa,_0x2d9750);((_0x270b43=this[_0x51e987(0x18d)])==null?void 0x0:_0x270b43[_0x51e987(0x16e)])===_0x199007[_0x51e987(0x16e)]&&((_0x30fad4=this['_lastPointer'])==null?void 0x0:_0x30fad4[_0x51e987(0x291)])===_0x199007[_0x51e987(0x291)]||this[_0x51e987(0x144)][_0x51e987(0x221)](_0x5c2427=>{const _0x5d1ba9=_0x51e987;_0x5c2427[_0x5d1ba9(0x310)](_0x199007);});},0x64));});}[_0x41f8c8(0x28d)](_0x5230ba,_0x5fc2b2){const _0x4bb593=_0x41f8c8;var _0x1b8cd5;const _0x11581d=(_0x1b8cd5=this[_0x4bb593(0x32d)][_0x4bb593(0x141)]())==null?void 0x0:_0x1b8cd5[_0x4bb593(0x1c4)];if(!_0x11581d)return;const _0x29f1d6=this[_0x4bb593(0x26e)]();if(!_0x29f1d6)return;this[_0x4bb593(0x144)][_0x4bb593(0x221)](_0x5953d4=>{const _0x152672=_0x4bb593;_0x5953d4[_0x152672(0x319)]();});const {scene:_0x58fe77}=_0x29f1d6,_0x3c40fb=Ot(Array[_0x4bb593(0x2f4)](_0x5fc2b2['values']()))[_0x4bb593(0x1ef)](_0x5b5da9=>{const _0x3d738b=_0x4bb593,{color:_0x1cdaa9,range:_0x4d4a3d,name:_0x223788,selection:_0x58d188,sheetID:_0x43e49c}=_0x5b5da9,{startColumn:_0xae472d,startRow:_0x16f3d5,endColumn:_0x2debe2,endRow:_0x583ae9}=_0x4d4a3d,_0x4628a9=G[_0x3d738b(0x281)](_0x16f3d5,_0xae472d,_0x58fe77,_0x11581d),_0x26636f=G['getCoordByCell'](_0x583ae9,_0x2debe2,_0x58fe77,_0x11581d),{columnHeaderHeightAndMarginTop:_0x324aab}=_0x11581d,{startX:_0x39231b,startY:_0x17078d}=_0x4628a9,{endX:_0x427f59,endY:_0x1142ba}=_0x26636f,_0x266447=_0x427f59-_0x39231b,_0x1984db=_0x1142ba-_0x17078d,_0x45be3c={'labelPosition':_0x17078d-_0x324aab>=K?_0x3d738b(0x259):_0x3d738b(0x29a),'sheetID':_0x43e49c,'range':_0x4d4a3d,'color':_0x1cdaa9,'name':_0x223788,'selection':_0x58d188,'left':_0x39231b,'top':_0x17078d,'width':_0x266447,'height':_0x1984db,'evented':!0x1,'zIndex':Rt};return new Ae(_0x223788,_0x45be3c);});_0x58fe77['addObjects'](_0x3c40fb,pt),this[_0x4bb593(0x144)]=new Set(_0x3c40fb);}[_0x41f8c8(0x1a4)](){const _0x2e1366=_0x41f8c8;var _0x15d4f7;(_0x15d4f7=this[_0x2e1366(0x144)])==null||_0x15d4f7[_0x2e1366(0x221)](_0x375300=>_0x375300[_0x2e1366(0x1a7)]());}[_0x41f8c8(0x26e)](){const _0x32a17a=_0x41f8c8;return G['getSheetObject'](this['_context']['unit'],this[_0x32a17a(0xcb)]);}};Ie=Tt([ce(0x1,a[_0x41f8c8(0x32b)](G[_0x41f8c8(0x17f)])),ce(0x2,a[_0x41f8c8(0x32b)](x)),ce(0x3,a[_0x41f8c8(0x32b)](a['ThemeService']))],Ie);function Ot(_0x702f95){const _0x3f5bc5=_0x41f8c8,_0x19fa55=new Map();return _0x702f95['forEach'](_0x42745d=>{const _0x12128c=_0xee62;if(_0x19fa55[_0x12128c(0x271)](_0x42745d[_0x12128c(0x2c3)])){const _0x26b6aa=_0x19fa55[_0x12128c(0x328)](_0x42745d[_0x12128c(0x2c3)]);_0x26b6aa[_0x12128c(0x1f5)]+=',\x20'+_0x42745d['name'];}else _0x19fa55[_0x12128c(0x238)](_0x42745d[_0x12128c(0x2c3)],_0x42745d);}),Array['from'](_0x19fa55[_0x3f5bc5(0xcf)]());}var E=function(){const _0x2933df=_0x41f8c8;return E=Object[_0x2933df(0x16f)]||function(_0x36c5e9){const _0xff3d69=_0x2933df;for(var _0x2c2c33,_0x50a69f=0x1,_0x8a49c1=arguments[_0xff3d69(0xd5)];_0x50a69f<_0x8a49c1;_0x50a69f++){_0x2c2c33=arguments[_0x50a69f];for(var _0x1857fc in _0x2c2c33)Object[_0xff3d69(0x1df)][_0xff3d69(0x10f)][_0xff3d69(0x122)](_0x2c2c33,_0x1857fc)&&(_0x36c5e9[_0x1857fc]=_0x2c2c33[_0x1857fc]);}return _0x36c5e9;},E[_0x2933df(0x214)](this,arguments);},Dt=function(_0x4355e9,_0x547891){const _0x41438a=_0x41f8c8;var _0x5057bf={};for(var _0x4f9332 in _0x4355e9)Object[_0x41438a(0x1df)][_0x41438a(0x10f)][_0x41438a(0x122)](_0x4355e9,_0x4f9332)&&_0x547891['indexOf'](_0x4f9332)<0x0&&(_0x5057bf[_0x4f9332]=_0x4355e9[_0x4f9332]);if(_0x4355e9!=null&&typeof Object['getOwnPropertySymbols']==_0x41438a(0x2be)){for(var _0x42aaf7=0x0,_0x4f9332=Object['getOwnPropertySymbols'](_0x4355e9);_0x42aaf7<_0x4f9332['length'];_0x42aaf7++)_0x547891['indexOf'](_0x4f9332[_0x42aaf7])<0x0&&Object[_0x41438a(0x1df)][_0x41438a(0x168)][_0x41438a(0x122)](_0x4355e9,_0x4f9332[_0x42aaf7])&&(_0x5057bf[_0x4f9332[_0x42aaf7]]=_0x4355e9[_0x4f9332[_0x42aaf7]]);}return _0x5057bf;},be=P[_0x41f8c8(0x2aa)](function(_0x798f46,_0x3d7d40){const _0x360471=_0x41f8c8;var _0x97df7d=_0x798f46[_0x360471(0x230)],_0x32025f=_0x798f46['id'],_0x21d6c7=_0x798f46['className'],_0x20e689=_0x798f46[_0x360471(0x10a)],_0x4d9c8e=Dt(_0x798f46,[_0x360471(0x230),'id',_0x360471(0x169),_0x360471(0x10a)]),_0x23164b=_0x360471(0x2b5)['concat'](_0x32025f,'\x20')[_0x360471(0x18f)](_0x21d6c7||'')['trim'](),_0x20cedb=P[_0x360471(0x22a)]('_'[_0x360471(0x18f)](Pt()));return $e(_0x97df7d,''['concat'](_0x32025f),{'defIds':_0x97df7d[_0x360471(0x31c)],'idSuffix':_0x20cedb['current']},E({'ref':_0x3d7d40,'className':_0x23164b},_0x4d9c8e),_0x20e689);});function _0xee62(_0x367d0a,_0xa887ed){const _0x565ad2=_0x565a();return _0xee62=function(_0xee62b9,_0x2e0de8){_0xee62b9=_0xee62b9-0xc4;let _0x1fd876=_0x565ad2[_0xee62b9];return _0x1fd876;},_0xee62(_0x367d0a,_0xa887ed);}function $e(_0x593e8c,_0x569446,_0x1268e4,_0xcb4aeb,_0x9c5f5){const _0x5b2df1=_0x41f8c8;return P[_0x5b2df1(0x1cc)](_0x593e8c[_0x5b2df1(0x273)],E(E({'key':_0x569446},Ut(_0x593e8c,_0x1268e4,_0x9c5f5)),_0xcb4aeb),(Mt(_0x593e8c,_0x1268e4)[_0x5b2df1(0x1ad)]||[])[_0x5b2df1(0x1ef)](function(_0x51986c,_0x359274){const _0x4fd9bb=_0x5b2df1;return $e(_0x51986c,''['concat'](_0x569446,'-')[_0x4fd9bb(0x18f)](_0x593e8c[_0x4fd9bb(0x273)],'-')[_0x4fd9bb(0x18f)](_0x359274),_0x1268e4,void 0x0,_0x9c5f5);}));}function Ut(_0x5e625a,_0xeb9124,_0x5356de){const _0x589229=_0x41f8c8;var _0x22da70=E({},_0x5e625a[_0x589229(0x318)]);_0x5356de!=null&&_0x5356de['colorChannel1']&&_0x22da70['fill']==='colorChannel1'&&(_0x22da70[_0x589229(0x2a9)]=_0x5356de['colorChannel1']);var _0x1cd1bb=_0xeb9124[_0x589229(0x31c)];return!_0x1cd1bb||_0x1cd1bb[_0x589229(0xd5)]===0x0||(_0x5e625a[_0x589229(0x273)]===_0x589229(0x11d)&&_0x22da70[_0x589229(0x289)]&&(_0x22da70[_0x589229(0x289)]=_0x22da70[_0x589229(0x289)]+_0xeb9124[_0x589229(0x2c4)]),Object[_0x589229(0x115)](_0x22da70)[_0x589229(0x221)](function(_0x556d11){const _0x459a42=_0x589229;var _0x32688e=_0x556d11[0x0],_0x1cf441=_0x556d11[0x1];typeof _0x1cf441==_0x459a42(0x184)&&(_0x22da70[_0x32688e]=_0x1cf441['replace'](/url\(#(.*)\)/,_0x459a42(0x1b5)['concat'](_0xeb9124['idSuffix'],')')));})),_0x22da70;}function Mt(_0x403604,_0x5bc343){const _0x130afc=_0x41f8c8;var _0x31fc74,_0x4ac883=_0x5bc343[_0x130afc(0x31c)];return!_0x4ac883||_0x4ac883['length']===0x0?_0x403604:_0x403604['tag']===_0x130afc(0x234)&&(!((_0x31fc74=_0x403604[_0x130afc(0x1ad)])===null||_0x31fc74===void 0x0)&&_0x31fc74['length'])?E(E({},_0x403604),{'children':_0x403604[_0x130afc(0x1ad)][_0x130afc(0x1ef)](function(_0x56b0f7){const _0x553f91=_0x130afc;return typeof _0x56b0f7['attrs']['id']==_0x553f91(0x184)&&_0x4ac883&&_0x4ac883[_0x553f91(0x1c8)](_0x56b0f7[_0x553f91(0x318)]['id'])>-0x1?E(E({},_0x56b0f7),{'attrs':E(E({},_0x56b0f7['attrs']),{'id':_0x56b0f7[_0x553f91(0x318)]['id']+_0x5bc343['idSuffix']})}):_0x56b0f7;})}):_0x403604;}function Pt(){const _0x556840=_0x41f8c8;return Math[_0x556840(0x2a3)]()[_0x556840(0x1db)](0x24)[_0x556840(0x33e)](0x2,0x8);}be[_0x41f8c8(0x146)]=_0x41f8c8(0x22c);var Nt={'tag':_0x41f8c8(0x28c),'attrs':{'fill':_0x41f8c8(0x2b2),'viewBox':'0\x200\x2016\x2016','width':_0x41f8c8(0x262),'height':_0x41f8c8(0x262)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x41f8c8(0xd0),'attrs':{'stroke':_0x41f8c8(0x133),'d':_0x41f8c8(0x2a2),'strokeLinecap':_0x41f8c8(0x177),'strokeLinejoin':_0x41f8c8(0x177),'strokeWidth':1.2}}]},{'tag':_0x41f8c8(0x234),'attrs':{},'children':[{'tag':_0x41f8c8(0xd9),'attrs':{'id':_0x41f8c8(0x161)},'children':[{'tag':_0x41f8c8(0xd0),'attrs':{'fill':_0x41f8c8(0x1d8),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},xe=P['forwardRef'](function(_0x322c3a,_0x39401a){const _0x465ec8=_0x41f8c8;return P['createElement'](be,Object['assign']({},_0x322c3a,{'id':_0x465ec8(0x1d9),'ref':_0x39401a,'icon':Nt}));});xe[_0x41f8c8(0x146)]=_0x41f8c8(0x1b8);var wt={'tag':'svg','attrs':{'fill':_0x41f8c8(0x2b2),'viewBox':'0\x200\x2017\x2016','width':_0x41f8c8(0x262),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x41f8c8(0x2af)},'children':[{'tag':'path','attrs':{'stroke':_0x41f8c8(0x133),'d':_0x41f8c8(0x30e),'strokeLinecap':_0x41f8c8(0x177),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x41f8c8(0x234),'attrs':{},'children':[{'tag':_0x41f8c8(0xd9),'attrs':{'id':_0x41f8c8(0x150)},'children':[{'tag':_0x41f8c8(0xd0),'attrs':{'fill':_0x41f8c8(0x1d8),'d':_0x41f8c8(0x229),'transform':_0x41f8c8(0x2c7)}}]}]}],'defIds':[_0x41f8c8(0x150)]},je=P['forwardRef'](function(_0x24d17a,_0x4dd015){const _0x523c49=_0x41f8c8;return P[_0x523c49(0x1cc)](be,Object[_0x523c49(0x16f)]({},_0x24d17a,{'id':_0x523c49(0x2bf),'ref':_0x4dd015,'icon':wt}));});je[_0x41f8c8(0x146)]=_0x41f8c8(0x330);function ke(_0x504e9c){const _0x15ddac=_0x41f8c8;var _0x41ba5f,_0x2e49e7,_0x2d08ce='';if(typeof _0x504e9c==_0x15ddac(0x184)||typeof _0x504e9c=='number')_0x2d08ce+=_0x504e9c;else{if(typeof _0x504e9c=='object'){if(Array[_0x15ddac(0x222)](_0x504e9c)){var _0x260fd6=_0x504e9c[_0x15ddac(0xd5)];for(_0x41ba5f=0x0;_0x41ba5f<_0x260fd6;_0x41ba5f++)_0x504e9c[_0x41ba5f]&&(_0x2e49e7=ke(_0x504e9c[_0x41ba5f]))&&(_0x2d08ce&&(_0x2d08ce+='\x20'),_0x2d08ce+=_0x2e49e7);}else{for(_0x2e49e7 in _0x504e9c)_0x504e9c[_0x2e49e7]&&(_0x2d08ce&&(_0x2d08ce+='\x20'),_0x2d08ce+=_0x2e49e7);}}}return _0x2d08ce;}function Me(){const _0x4b1274=_0x41f8c8;for(var _0x2a1a50,_0x3fb3c8,_0x5caeaa=0x0,_0x9ca919='',_0x1eaf79=arguments[_0x4b1274(0xd5)];_0x5caeaa<_0x1eaf79;_0x5caeaa++)(_0x2a1a50=arguments[_0x5caeaa])&&(_0x3fb3c8=ke(_0x2a1a50))&&(_0x9ca919&&(_0x9ca919+='\x20'),_0x9ca919+=_0x3fb3c8);return _0x9ca919;}const Lt=_0x41f8c8(0x2bd),yt=_0x41f8c8(0x315),At=_0x41f8c8(0x2fa),$t='univer-online',xt=_0x41f8c8(0x1b2),H={'onlineStatusIcon':Lt,'onlineStatusTitle':yt,'onlineStatus':At,'online':$t,'offline':xt};function jt(_0x4ad3cb){const _0x4230a6=_0x41f8c8;switch(_0x4ad3cb){case u[_0x4230a6(0x135)][_0x4230a6(0x197)]:return _0x4230a6(0x200);case u['CollaborationStatus'][_0x4230a6(0x187)]:return _0x4230a6(0x249);case u[_0x4230a6(0x135)][_0x4230a6(0x27c)]:return _0x4230a6(0x119);case u[_0x4230a6(0x135)]['NOT_COLLAB']:return _0x4230a6(0x274);case u['CollaborationStatus'][_0x4230a6(0x100)]:case u['CollaborationStatus'][_0x4230a6(0x17b)]:return _0x4230a6(0x1e0);case u['CollaborationStatus'][_0x4230a6(0x312)]:case u['CollaborationStatus'][_0x4230a6(0xd4)]:return'collabStatus.synced';}}function Be(_0x5fccd8){const _0x1b7494=_0x41f8c8,{status$:_0x4ab502}=_0x5fccd8,_0x7f5a21=T[_0x1b7494(0x2cc)](_0x4ab502,u['CollaborationStatus'][_0x1b7494(0x1c9)]),_0x571f18=T[_0x1b7494(0x2d1)](a[_0x1b7494(0x239)]),_0x521676=T[_0x1b7494(0x2d1)](u['CollaborationSessionService']),_0x80988e=_0x7f5a21!==u[_0x1b7494(0x135)]['OFFLINE'],_0x557f5e=_0x571f18['t'](jt(_0x7f5a21)),_0x57ac12=Me(H[_0x1b7494(0x20b)],{[H['online']]:_0x80988e,[H[_0x1b7494(0x341)]]:!_0x80988e}),_0x19085a=_0x80988e?w['jsx'](je,{}):w[_0x1b7494(0x253)](xe,{}),_0x5e3eec=P[_0x1b7494(0x268)](()=>{_0x80988e||_0x521676['reconnect']();},[_0x80988e,_0x521676]);function _0x180af9(){const _0x2c097c=_0x1b7494;return w['jsxs'](_0x2c097c(0x270),{'className':Me(_0x57ac12,_0x2c097c(0xda)),'onClick':_0x5e3eec,'children':[w['jsx']('div',{'className':H[_0x2c097c(0x140)],'children':_0x19085a}),w[_0x2c097c(0x253)](_0x2c097c(0x270),{'className':H[_0x2c097c(0x2cb)],'children':_0x557f5e})]});}return _0x80988e?_0x180af9():w[_0x1b7494(0x253)](M['Tooltip'],{'title':_0x571f18['t'](_0x1b7494(0x280)),'children':_0x180af9()});}var kt=Object[_0x41f8c8(0x247)],Bt=(_0x5f27a5,_0x3817a3,_0x5e9461,_0x2d653f)=>{for(var _0x454009=_0x2d653f>0x1?void 0x0:_0x2d653f?kt(_0x3817a3,_0x5e9461):_0x3817a3,_0x484bf1=_0x5f27a5['length']-0x1,_0x1223b2;_0x484bf1>=0x0;_0x484bf1--)(_0x1223b2=_0x5f27a5[_0x484bf1])&&(_0x454009=_0x1223b2(_0x454009)||_0x454009);return _0x454009;},V=(_0x15d608,_0x1c1ca5)=>(_0xf1b9de,_0x252cbb)=>_0x1c1ca5(_0xf1b9de,_0x252cbb,_0x15d608);exports[_0x41f8c8(0x29c)]=class extends a[_0x41f8c8(0x1ac)]{constructor(_0x89a86a,_0x2e9a93,_0x558954,_0x17418b){const _0x524aa1=_0x41f8c8;super(),h(this,_0x524aa1(0x303),new d[(_0x524aa1(0x26a))](u[_0x524aa1(0x135)][_0x524aa1(0x1c9)])),(this[_0x524aa1(0x15a)]=_0x89a86a,this['_injector']=_0x2e9a93,this[_0x524aa1(0x145)]=_0x558954,this['_uiPartsService']=_0x17418b,this[_0x524aa1(0x263)](),this[_0x524aa1(0x10e)]());}['_initStatusListener'](){const _0xbfe118=_0x41f8c8;this[_0xbfe118(0x176)](this[_0xbfe118(0x15a)][_0xbfe118(0x30a)][_0xbfe118(0x167)](d[_0xbfe118(0x30d)](()=>{const _0xe64ef2=_0xbfe118,_0x25dc7c=this[_0xe64ef2(0x15a)]['getFocusedUnit']();return _0x25dc7c?this[_0xe64ef2(0x145)][_0xe64ef2(0x104)](_0x25dc7c['getUnitId']()):d['of'](null);}),d[_0xbfe118(0x30d)](_0x5b3302=>_0x5b3302?_0x5b3302[_0xbfe118(0x32e)]:d['of'](u[_0xbfe118(0x135)][_0xbfe118(0x1c9)])))['subscribe'](_0x5b6334=>{const _0x1cc842=_0xbfe118;this[_0x1cc842(0x303)][_0x1cc842(0xfa)](_0x5b6334);}));}[_0x41f8c8(0x263)](){const _0x4ad92e=_0x41f8c8;this[_0x4ad92e(0x176)](this[_0x4ad92e(0x19d)][_0x4ad92e(0x337)](T['BuiltInUIPart'][_0x4ad92e(0x23b)],()=>T[_0x4ad92e(0x33f)](Ht({'status$':this['_status$']['asObservable']()}),this[_0x4ad92e(0x236)])));}},exports['DesktopCollaborationStatusDisplayController']=Bt([V(0x0,a[_0x41f8c8(0x2b8)]),V(0x1,a[_0x41f8c8(0x32b)](a[_0x41f8c8(0x2c2)])),V(0x2,a[_0x41f8c8(0x32b)](u['CollaborationController'])),V(0x3,T[_0x41f8c8(0x25b)])],exports[_0x41f8c8(0x29c)]);function Ht(_0x24ad68){const {status$:_0x418179}=_0x24ad68;return function(){const _0x2cf1b8=_0xee62;return w[_0x2cf1b8(0x253)](Be,{'status$':_0x418179});};}var Wt=Object[_0x41f8c8(0x247)],Ft=(_0x3378f9,_0x2478a9,_0x4c0e34,_0x4b4b61)=>{for(var _0x482129=_0x4b4b61>0x1?void 0x0:_0x4b4b61?Wt(_0x2478a9,_0x4c0e34):_0x2478a9,_0x206e50=_0x3378f9['length']-0x1,_0x5452fa;_0x206e50>=0x0;_0x206e50--)(_0x5452fa=_0x3378f9[_0x206e50])&&(_0x482129=_0x5452fa(_0x482129)||_0x482129);return _0x482129;},A=(_0x368931,_0x3ed219)=>(_0x4d78e3,_0x371429)=>_0x3ed219(_0x4d78e3,_0x371429,_0x368931);let z=class extends a[_0x41f8c8(0x1ac)]{constructor(_0x58af05,_0x15faf7,_0xa89d25,_0x4e2a8f,_0x32c9e9,_0x41fc9a){const _0x23ed50=_0x41f8c8;super(),this[_0x23ed50(0x102)]=_0x58af05,this[_0x23ed50(0x20e)]=_0x15faf7,this[_0x23ed50(0x317)]=_0xa89d25,this[_0x23ed50(0x22d)]=_0x4e2a8f,this[_0x23ed50(0x151)]=_0x32c9e9,this['_localeService']=_0x41fc9a,this[_0x23ed50(0x1d3)](),this['_initEvent']();}[_0x41f8c8(0x1d3)](){const _0x5c2627=_0x41f8c8;this[_0x5c2627(0x176)](this[_0x5c2627(0x102)][_0x5c2627(0x2dd)](()=>{const _0x2444e6=_0x5c2627;if(this[_0x2444e6(0x20e)][_0x2444e6(0x28f)][_0x2444e6(0xc7)])return this[_0x2444e6(0x250)]['t'](_0x2444e6(0x172));}));}[_0x41f8c8(0x1fa)](){const _0x4d7e45=_0x41f8c8;this[_0x4d7e45(0x176)](this['_collaborationUIEventService'][_0x4d7e45(0x275)][_0x4d7e45(0x11e)](_0x123b6c=>{const _0x25ab9a=_0x4d7e45;_0x123b6c['id']===u[_0x25ab9a(0x206)][_0x25ab9a(0xf5)]&&this[_0x25ab9a(0x22d)][_0x25ab9a(0x17e)]({'type':M[_0x25ab9a(0x26b)][_0x25ab9a(0x1bf)],'content':this[_0x25ab9a(0x250)]['t'](_0x25ab9a(0x316))}),_0x123b6c['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this['_messageService'][_0x25ab9a(0x17e)]({'type':M['MessageType'][_0x25ab9a(0x1bf)],'content':this['_localeService']['t'](_0x25ab9a(0x18c))}),_0x123b6c['id']===u[_0x25ab9a(0x206)][_0x25ab9a(0x15f)]&&this[_0x25ab9a(0x151)][_0x25ab9a(0x17e)]({'title':this[_0x25ab9a(0x250)]['t']('permission.title'),'content':this[_0x25ab9a(0x250)]['t']('permission.content'),'type':'error','duration':0x0}),_0x123b6c['id']===u[_0x25ab9a(0x206)][_0x25ab9a(0x187)]&&this[_0x25ab9a(0x22d)][_0x25ab9a(0x17e)]({'type':M['MessageType'][_0x25ab9a(0x191)],'content':this[_0x25ab9a(0x250)]['t']('collaboration.closeRoom')+'('+_0x123b6c[_0x25ab9a(0x10b)]+')'}),_0x123b6c['id']===u[_0x25ab9a(0x206)][_0x25ab9a(0x252)]&&this['_messageService']['show']({'type':M[_0x25ab9a(0x26b)]['Warning'],'content':this[_0x25ab9a(0x250)]['t'](_0x123b6c[_0x25ab9a(0x10b)]||'')}),_0x123b6c['id']===u[_0x25ab9a(0x206)][_0x25ab9a(0x12c)]&&this[_0x25ab9a(0x22d)][_0x25ab9a(0x17e)]({'type':M[_0x25ab9a(0x26b)][_0x25ab9a(0x1bf)],'content':this[_0x25ab9a(0x250)]['t']('session.will-retry')}),_0x123b6c['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x25ab9a(0x22d)][_0x25ab9a(0x17e)]({'type':M[_0x25ab9a(0x26b)][_0x25ab9a(0x191)],'content':this[_0x25ab9a(0x250)]['t'](_0x25ab9a(0x28a))}),_0x123b6c['id']===u['CollaborationUIEventId'][_0x25ab9a(0x179)]&&this[_0x25ab9a(0x22d)]['show']({'type':M[_0x25ab9a(0x26b)][_0x25ab9a(0x191)],'content':this[_0x25ab9a(0x250)]['t'](_0x25ab9a(0xeb))});}));}};z=Ft([A(0x0,T[_0x41f8c8(0x32f)]),A(0x1,u[_0x41f8c8(0x2e6)]),A(0x2,a[_0x41f8c8(0x32b)](u['CollaborationUIEventService'])),A(0x3,T['IMessageService']),A(0x4,T[_0x41f8c8(0x1e2)]),A(0x5,a[_0x41f8c8(0x32b)](a[_0x41f8c8(0x239)]))],z);const Yt=_0x41f8c8(0x1a5),Pe={},Ee=a['createIdentifier'](_0x41f8c8(0x2c1));var Xt=Object[_0x41f8c8(0x247)],Vt=(_0x2a0199,_0xfe168a,_0x5d5894,_0x30e0af)=>{const _0x41e0f6=_0x41f8c8;for(var _0x582731=_0x30e0af>0x1?void 0x0:_0x30e0af?Xt(_0xfe168a,_0x5d5894):_0xfe168a,_0x34daf6=_0x2a0199[_0x41e0f6(0xd5)]-0x1,_0x5e9029;_0x34daf6>=0x0;_0x34daf6--)(_0x5e9029=_0x2a0199[_0x34daf6])&&(_0x582731=_0x5e9029(_0x582731)||_0x582731);return _0x582731;},W=(_0x4c4ed6,_0x3f529a)=>(_0x2f4b42,_0x5a8338)=>_0x3f529a(_0x2f4b42,_0x5a8338,_0x4c4ed6);exports[_0x41f8c8(0x19c)]=class extends a[_0x41f8c8(0x1f9)]{constructor(_0x382068,_0xb9a3ae,_0x1c60ea,_0x5dda13,_0x473789){const _0x1e4ca2=_0x41f8c8;super(),this[_0x1e4ca2(0x343)]=_0x382068,this['_logService']=_0xb9a3ae,this[_0x1e4ca2(0x23e)]=_0x1c60ea,this[_0x1e4ca2(0x2b7)]=_0x5dda13,_0x473789?_0x473789==null||_0x473789[_0x1e4ca2(0xd7)]()[_0x1e4ca2(0xe5)](()=>this[_0x1e4ca2(0x320)]()):(this[_0x1e4ca2(0x174)][_0x1e4ca2(0xed)](_0x1e4ca2(0x103),_0x1e4ca2(0x311)),this[_0x1e4ca2(0x320)]());}async[_0x41f8c8(0x320)](){const _0x17cf11=_0x41f8c8,_0x4166fa=this[_0x17cf11(0x343)][_0x17cf11(0x193)](_0x17cf11(0x178)),_0x5424c5=this[_0x17cf11(0x343)][_0x17cf11(0x193)](_0x17cf11(0x121)),_0x43b40d=this[_0x17cf11(0x343)][_0x17cf11(0x193)](_0x17cf11(0x17c));if(!_0x4166fa||!_0x5424c5){this[_0x17cf11(0x174)][_0x17cf11(0xed)](_0x17cf11(0x103),_0x17cf11(0x143));return;}const _0xc56f4=await this[_0x17cf11(0x2b7)][_0x17cf11(0x21f)](_0x4166fa,Number(_0x5424c5),_0x43b40d);_0xc56f4&&_0xc56f4 instanceof a['Workbook']&&this[_0x17cf11(0x24e)](_0xc56f4);}async[_0x41f8c8(0x24e)](_0x40e54a){const _0x253924=_0x41f8c8;await this['_updateSubUnitFromURLParams'](_0x40e54a),_0x40e54a['activeSheet$'][_0x253924(0x167)](d[_0x253924(0x2dc)](this[_0x253924(0x16a)]))[_0x253924(0x11e)](_0x3426f9=>{const _0x598955=_0x253924;_0x3426f9&&this[_0x598955(0x251)](_0x3426f9);}),this[_0x253924(0x343)][_0x253924(0x1af)][_0x253924(0x167)](d[_0x253924(0x2dc)](this['dispose$']))['subscribe'](()=>this[_0x253924(0x1cb)](_0x40e54a));}[_0x41f8c8(0x251)](_0x59c0e5,_0x2f8056=!0x1){const _0x1d36c5=_0x41f8c8,_0x14537a=this[_0x1d36c5(0x343)][_0x1d36c5(0x193)](_0x1d36c5(0x17c));_0x59c0e5[_0x1d36c5(0x1de)]()!==_0x14537a&&this['_urlService'][_0x1d36c5(0x2e9)]('subunit',_0x59c0e5['getSheetId'](),_0x2f8056);}async[_0x41f8c8(0x1cb)](_0x2f9980){const _0x2d16d3=_0x41f8c8;var _0x5a49cc;const _0x1a41ea=this[_0x2d16d3(0x343)][_0x2d16d3(0x193)](_0x2d16d3(0x17c));if(!_0x1a41ea||!_0x2f9980['getSheetBySheetId'](_0x1a41ea)){const _0x7707b3=_0x2f9980[_0x2d16d3(0x10c)]()[0x0],_0x4c1dc9=_0x2f9980[_0x2d16d3(0xef)](_0x7707b3);if(!_0x4c1dc9)return;this['_updateURLWithCurrentState'](_0x4c1dc9,!0x0),await this['_commandService']['executeCommand'](I[_0x2d16d3(0x225)]['id'],{'unitId':_0x2f9980[_0x2d16d3(0x2d4)](),'subUnitId':_0x7707b3});return;}((_0x5a49cc=_0x2f9980[_0x2d16d3(0x292)]())==null?void 0x0:_0x5a49cc[_0x2d16d3(0x1de)]())!==_0x1a41ea&&await this[_0x2d16d3(0x23e)][_0x2d16d3(0x1d5)](I[_0x2d16d3(0x225)]['id'],{'unitId':_0x2f9980[_0x2d16d3(0x2d4)](),'subUnitId':_0x1a41ea});}},exports[_0x41f8c8(0x19c)]=Vt([W(0x0,Ee),W(0x1,a[_0x41f8c8(0x307)]),W(0x2,a[_0x41f8c8(0x210)]),W(0x3,a[_0x41f8c8(0x32b)](u[_0x41f8c8(0x1e4)])),W(0x4,a[_0x41f8c8(0x2a7)](Je[_0x41f8c8(0x1d4)]))],exports['CollaborationDataLoaderController']);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x4db40c,_0x353da2,_0x22997f,_0x279e95)=>{for(var _0x4b3389=_0x279e95>0x1?void 0x0:_0x279e95?Gt(_0x353da2,_0x22997f):_0x353da2,_0x3f31a6=_0x4db40c['length']-0x1,_0x2653c1;_0x3f31a6>=0x0;_0x3f31a6--)(_0x2653c1=_0x4db40c[_0x3f31a6])&&(_0x4b3389=_0x2653c1(_0x4b3389)||_0x4b3389);return _0x4b3389;},le=(_0x4cb4ce,_0x4b253f)=>(_0x499edf,_0x44bff1)=>_0x4b253f(_0x499edf,_0x44bff1,_0x4cb4ce);let J=class{constructor(_0x209743,_0x39ca63,_0x1d114f){const _0x138aa9=_0x41f8c8;this[_0x138aa9(0x236)]=_0x209743,this['_transformService']=_0x39ca63,this['_renderManagerService']=_0x1d114f;}[_0x41f8c8(0x14a)](_0x1e0c0a){const _0x23c972=_0x41f8c8;this[_0x23c972(0x107)](_0x1e0c0a),this[_0x23c972(0xd2)](_0x1e0c0a);}[_0x41f8c8(0x12a)](_0x5a80b4){const _0x3053ab=_0x41f8c8,{unitID:_0x49bd8f}=_0x5a80b4,_0x33bd6e=this['_renderManagerService'][_0x3053ab(0x111)](_0x49bd8f)[_0x3053ab(0x24d)](b['DocIMEInputManagerService']),{redoCache:_0x33bddf}=_0x33bd6e[_0x3053ab(0xea)]();if(_0x33bddf['length']===0x0)return _0x5a80b4;let _0x45713a=a[_0x3053ab(0x223)][_0x3053ab(0x194)](_0x5a80b4['mutations'][0x0]);for(let _0x4268bd=0x0;_0x4268bd<_0x33bddf[_0x3053ab(0xd5)];_0x4268bd++){const _0x5eb383={'id':_0x3053ab(0x2f8),'params':{..._0x33bddf[_0x4268bd]}},_0x5eefb2=this[_0x3053ab(0x24b)][_0x3053ab(0x14e)](_0x45713a,_0x5eb383,!0x1);if(m['isTransformMutationFailure'](_0x5eefb2))throw _0x5eefb2[_0x3053ab(0x228)];_0x45713a=_0x5eefb2[_0x3053ab(0x16d)];}return{...a['Tools']['deepClone'](_0x5a80b4),'mutations':[_0x45713a]};}[_0x41f8c8(0x107)](_0x37323e){const _0x79866b=_0x41f8c8,{unitID:_0x55a00a}=_0x37323e,_0x422d69=this[_0x79866b(0xf1)]['getRenderById'](_0x55a00a)[_0x79866b(0x24d)](b['DocIMEInputManagerService']),{undoCache:_0x720ea,redoCache:_0x5d5a77}=_0x422d69['getUndoRedoMutationParamsCache']();if(_0x720ea[_0x79866b(0xd5)]===0x0||_0x5d5a77[_0x79866b(0xd5)]===0x0)return;const _0x5d39e6=[],_0x207b8d=[];let _0xfdc716=a['Tools'][_0x79866b(0x194)](_0x37323e[_0x79866b(0x2cd)][0x0]),_0x447d07=a[_0x79866b(0x223)][_0x79866b(0x194)](_0x37323e['mutations'][0x0]);for(let _0x2bc4c6=_0x720ea['length']-0x1;_0x2bc4c6>=0x0;_0x2bc4c6--){const _0x343938={'id':_0x79866b(0x2f8),'params':{..._0x720ea[_0x2bc4c6]}},_0x5e4f92={'id':_0x79866b(0x2f8),'params':{..._0x5d5a77[_0x2bc4c6]}},_0xaaef32=this[_0x79866b(0x24b)][_0x79866b(0x14e)](_0xfdc716,_0x343938,!0x1),_0x1869a4=this['_transformService'][_0x79866b(0x14e)](_0x447d07,_0x5e4f92,!0x1);if(m[_0x79866b(0x23c)](_0xaaef32))throw _0xaaef32[_0x79866b(0x228)];if(m[_0x79866b(0x23c)](_0x1869a4))throw _0x1869a4['error'];_0x5d39e6[_0x79866b(0x2e5)](_0xaaef32['m2Prime'][_0x79866b(0x2b1)]),_0x207b8d[_0x79866b(0x2e5)](_0x1869a4[_0x79866b(0x33b)][_0x79866b(0x2b1)]),_0xfdc716=_0xaaef32[_0x79866b(0x16d)],_0x447d07=_0x1869a4[_0x79866b(0x16d)];}_0x422d69[_0x79866b(0x127)]({'undoCache':_0x5d39e6,'redoCache':_0x207b8d});}[_0x41f8c8(0xd2)](_0x29b2d8){const _0x3edc93=_0x41f8c8,{unitID:_0x11ed0b}=_0x29b2d8,_0x141219=this[_0x3edc93(0xf1)]['getRenderById'](_0x11ed0b)['with'](b['DocIMEInputManagerService']),_0xa17d1a=_0x141219[_0x3edc93(0x21b)]();if(_0xa17d1a==null)return;const _0x40cf88=[{'id':_0x3edc93(0x2f8),'params':{'unitId':_0x29b2d8['unitID'],'actions':null,'textRanges':[_0xa17d1a]}}],_0xb33d17=this['_transformService']['transformMutationsWithChangeset'](_0x29b2d8,_0x40cf88);if(!m[_0x3edc93(0x265)](_0xb33d17))throw _0xb33d17[_0x3edc93(0x228)];const _0x1ac67b=_0xb33d17[_0x3edc93(0x33b)][0x0][_0x3edc93(0x2b1)][_0x3edc93(0x2c9)];Array['isArray'](_0x1ac67b)&&_0x1ac67b[_0x3edc93(0xd5)]&&_0x141219[_0x3edc93(0x2de)](_0x1ac67b[0x0]);}};J=qt([le(0x0,a[_0x41f8c8(0x32b)](a['Injector'])),le(0x1,m[_0x41f8c8(0x113)]),le(0x2,p[_0x41f8c8(0x240)])],J);var Kt=Object['getOwnPropertyDescriptor'],zt=(_0x264edf,_0x17937b,_0x322879,_0x2b802d)=>{const _0xf9e372=_0x41f8c8;for(var _0x4a951c=_0x2b802d>0x1?void 0x0:_0x2b802d?Kt(_0x17937b,_0x322879):_0x17937b,_0x5d5cfd=_0x264edf[_0xf9e372(0xd5)]-0x1,_0x468c87;_0x5d5cfd>=0x0;_0x5d5cfd--)(_0x468c87=_0x264edf[_0x5d5cfd])&&(_0x4a951c=_0x468c87(_0x4a951c)||_0x4a951c);return _0x4a951c;},he=(_0x280870,_0x2720d9)=>(_0x3d2087,_0x4d17fc)=>_0x2720d9(_0x3d2087,_0x4d17fc,_0x280870);let Z=class{constructor(_0xcc63c7,_0x3574ea,_0x4e63b0){const _0x719fd3=_0x41f8c8;this[_0x719fd3(0x236)]=_0xcc63c7,this['_transformService']=_0x3574ea,this[_0x719fd3(0x148)]=_0x4e63b0;}[_0x41f8c8(0x175)](_0x3eacab){const _0x3901f0=_0x41f8c8;this[_0x3901f0(0x18e)](_0x3eacab);}[_0x41f8c8(0x12a)](_0x495ae){const _0x2686ac=_0x41f8c8,{unitID:_0xf278bf}=_0x495ae,{collaboration:_0x4ce6a3}=this[_0x2686ac(0x148)][_0x2686ac(0x342)](_0xf278bf);if(_0x4ce6a3['length']===0x0)return _0x495ae;let _0x24e72a=a[_0x2686ac(0x223)][_0x2686ac(0x194)](_0x495ae[_0x2686ac(0x2cd)][0x0]);for(let _0x4fe185=0x0;_0x4fe185<_0x4ce6a3[_0x2686ac(0xd5)];_0x4fe185++){const _0x27cbd7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ce6a3[_0x4fe185][_0x2686ac(0x20f)],..._0x4ce6a3[_0x4fe185][_0x2686ac(0x305)]}},_0x1da982=this[_0x2686ac(0x24b)][_0x2686ac(0x14e)](_0x24e72a,_0x27cbd7,!0x1);if(m[_0x2686ac(0x23c)](_0x1da982))throw _0x1da982['error'];_0x24e72a=_0x1da982['m1Prime'];}return{...a[_0x2686ac(0x223)][_0x2686ac(0x194)](_0x495ae),'mutations':[_0x24e72a]};}[_0x41f8c8(0x18e)](_0x273a86){const _0x1296d5=_0x41f8c8,{unitID:_0x4fe656}=_0x273a86,{history:_0x18a953,collaboration:_0x18797f}=this[_0x1296d5(0x148)][_0x1296d5(0x342)](_0x4fe656);if(_0x18a953[_0x1296d5(0xd5)]===0x0&&_0x18797f['length']===0x0)return;const _0x163476=[],_0x55af08=[];let _0x2041f3=a[_0x1296d5(0x223)]['deepClone'](_0x273a86['mutations'][0x0]),_0x8f6479=a['Tools'][_0x1296d5(0x194)](_0x273a86['mutations'][0x0]);for(let _0x363a05=_0x18a953[_0x1296d5(0xd5)]-0x1;_0x363a05>=0x0;_0x363a05--){const _0x362d10={'id':_0x1296d5(0x2f8),'params':{'unitId':_0x18a953[_0x363a05][_0x1296d5(0x20f)],..._0x18a953[_0x363a05][_0x1296d5(0x1a0)]}},_0x3a8f4c={'id':_0x1296d5(0x2f8),'params':{'unitId':_0x18a953[_0x363a05][_0x1296d5(0x20f)],..._0x18a953[_0x363a05][_0x1296d5(0x305)]}},_0x407fb5=this[_0x1296d5(0x24b)][_0x1296d5(0x14e)](_0x2041f3,_0x362d10,!0x1),_0x12dce0=this['_transformService'][_0x1296d5(0x14e)](_0x8f6479,_0x3a8f4c,!0x1);if(m[_0x1296d5(0x23c)](_0x407fb5))throw _0x407fb5[_0x1296d5(0x228)];if(m[_0x1296d5(0x23c)](_0x12dce0))throw _0x12dce0['error'];_0x163476[_0x1296d5(0x2e5)]({..._0x18a953[_0x363a05],'undoState':_0x407fb5[_0x1296d5(0x33b)][_0x1296d5(0x2b1)],'redoState':_0x12dce0[_0x1296d5(0x33b)][_0x1296d5(0x2b1)]}),_0x2041f3=_0x407fb5['m1Prime'],_0x8f6479=_0x12dce0[_0x1296d5(0x16d)];}_0x2041f3=a[_0x1296d5(0x223)][_0x1296d5(0x194)](_0x273a86[_0x1296d5(0x2cd)][0x0]),_0x8f6479=a[_0x1296d5(0x223)][_0x1296d5(0x194)](_0x273a86[_0x1296d5(0x2cd)][0x0]);for(let _0x19d25e=_0x18797f[_0x1296d5(0xd5)]-0x1;_0x19d25e>=0x0;_0x19d25e--){const _0x45b0ac={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x18797f[_0x19d25e][_0x1296d5(0x20f)],..._0x18797f[_0x19d25e]['undoState']}},_0x50c7ce={'id':_0x1296d5(0x2f8),'params':{'unitId':_0x18797f[_0x19d25e][_0x1296d5(0x20f)],..._0x18797f[_0x19d25e][_0x1296d5(0x305)]}},_0x3813b4=this['_transformService'][_0x1296d5(0x14e)](_0x2041f3,_0x45b0ac,!0x1),_0x1600d5=this[_0x1296d5(0x24b)][_0x1296d5(0x14e)](_0x8f6479,_0x50c7ce,!0x1);if(m[_0x1296d5(0x23c)](_0x3813b4))throw _0x3813b4[_0x1296d5(0x228)];if(m[_0x1296d5(0x23c)](_0x1600d5))throw _0x1600d5[_0x1296d5(0x228)];_0x55af08[_0x1296d5(0x2e5)]({..._0x18797f[_0x19d25e],'undoState':_0x3813b4[_0x1296d5(0x33b)]['params'],'redoState':_0x1600d5[_0x1296d5(0x33b)][_0x1296d5(0x2b1)]}),_0x2041f3=_0x3813b4['m1Prime'],_0x8f6479=_0x1600d5[_0x1296d5(0x16d)];}this[_0x1296d5(0x148)][_0x1296d5(0x1b4)](_0x4fe656,{'history':_0x163476,'collaboration':_0x55af08});}};Z=zt([he(0x0,a[_0x41f8c8(0x32b)](a[_0x41f8c8(0x2c2)])),he(0x1,m[_0x41f8c8(0x113)]),he(0x2,a[_0x41f8c8(0x32b)](b['DocStateChangeManagerService']))],Z);var Jt=Object['getOwnPropertyDescriptor'],Zt=(_0x509a12,_0x302c1d,_0x4caaa9,_0x46cfda)=>{const _0x4ff67a=_0x41f8c8;for(var _0x2f5361=_0x46cfda>0x1?void 0x0:_0x46cfda?Jt(_0x302c1d,_0x4caaa9):_0x302c1d,_0x5d4fbc=_0x509a12[_0x4ff67a(0xd5)]-0x1,_0x30fe6d;_0x5d4fbc>=0x0;_0x5d4fbc--)(_0x30fe6d=_0x509a12[_0x5d4fbc])&&(_0x2f5361=_0x30fe6d(_0x2f5361)||_0x2f5361);return _0x2f5361;},Ne=(_0x6b474e,_0x45c051)=>(_0x1bfc48,_0x12683a)=>_0x45c051(_0x1bfc48,_0x12683a,_0x6b474e);let Q=class{constructor(_0x5127e7,_0x3459ed){const _0x23da9e=_0x41f8c8;this['_injector']=_0x5127e7,this[_0x23da9e(0x24b)]=_0x3459ed;}[_0x41f8c8(0x2a4)](_0x2b114d){const _0x2fd42e=_0x41f8c8;var _0x2d4403;const _0x2d5ec5=this[_0x2fd42e(0x236)][_0x2fd42e(0x328)](Y[_0x2fd42e(0x1f2)]),_0xb28dad=(_0x2d4403=_0x2d5ec5['getDocRanges']())!=null?_0x2d4403:[];if(_0xb28dad[_0x2fd42e(0xd5)]===0x0)return;const _0x103922=_0x2b114d[_0x2fd42e(0x19b)],_0x32182b=[{'id':_0x2fd42e(0x2f8),'params':{'unitId':_0x103922,'actions':null,'textRanges':_0xb28dad}}],_0x3d737e=this[_0x2fd42e(0x24b)][_0x2fd42e(0x16b)](_0x2b114d,_0x32182b);if(!m['isTransformMutationsWithChangesetSuccess'](_0x3d737e))throw _0x3d737e[_0x2fd42e(0x228)];const _0x8e78c5=_0x3d737e[_0x2fd42e(0x33b)][0x0][_0x2fd42e(0x2b1)][_0x2fd42e(0x2c9)];Array[_0x2fd42e(0x222)](_0x8e78c5)&&_0x8e78c5[_0x2fd42e(0xd5)]&&_0x2d5ec5['replaceDocRanges'](_0x8e78c5,{'unitId':_0x103922,'subUnitId':_0x103922},!0x1);}};Q=Zt([Ne(0x0,a['Inject'](a['Injector'])),Ne(0x1,m[_0x41f8c8(0x113)])],Q);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x194f64,_0x543f48,_0x4f8a15,_0x42f8f6)=>{const _0x16ada8=_0x41f8c8;for(var _0x2afb8c=_0x42f8f6>0x1?void 0x0:_0x42f8f6?Qt(_0x543f48,_0x4f8a15):_0x543f48,_0x5504cd=_0x194f64[_0x16ada8(0xd5)]-0x1,_0x5ee75d;_0x5504cd>=0x0;_0x5504cd--)(_0x5ee75d=_0x194f64[_0x5504cd])&&(_0x2afb8c=_0x5ee75d(_0x2afb8c)||_0x2afb8c);return _0x2afb8c;},U=(_0x4aacb8,_0x5c1523)=>(_0x4eb319,_0x5b59bc)=>_0x5c1523(_0x4eb319,_0x5b59bc,_0x4aacb8);let ee=class extends a[_0x41f8c8(0x1ac)]{constructor(_0xd134f7,_0x1f7c62,_0x4feaaf,_0x5d4225,_0x4fee56,_0x290b46,_0x45e564,_0x4aa2a3){const _0x20930f=_0x41f8c8;super(),h(this,_0x20930f(0x303),new d[(_0x20930f(0x26a))](u[_0x20930f(0x135)][_0x20930f(0x1c9)])),(this[_0x20930f(0x148)]=_0xd134f7,this[_0x20930f(0x145)]=_0x1f7c62,this[_0x20930f(0xe6)]=_0x4feaaf,this[_0x20930f(0x266)]=_0x5d4225,this[_0x20930f(0x282)]=_0x4fee56,this[_0x20930f(0x2d0)]=_0x290b46,this[_0x20930f(0x22d)]=_0x45e564,this[_0x20930f(0x250)]=_0x4aa2a3,this[_0x20930f(0x21d)]());}[_0x41f8c8(0x21d)](){const _0x350c9f=_0x41f8c8;this['disposeWithMe'](this[_0x350c9f(0x145)][_0x350c9f(0x2f5)][_0x350c9f(0x11e)](_0x515af2=>{const _0x409ebe=_0x350c9f,_0x3042b9=this['_docStateChangeManagerService'][_0x409ebe(0x1d0)]['subscribe'](_0x4f53ab=>{const _0x271520=_0x409ebe;if(_0x4f53ab==null)return;const {unitId:_0x17e6ae,redoState:_0x706d96,commandId:_0x390cce}=_0x4f53ab;if(_0x17e6ae!==_0x515af2[_0x271520(0x19b)])return;const _0x11f3ee={'id':_0x390cce,'type':a[_0x271520(0x13b)][_0x271520(0x201)],'params':{'unitId':_0x17e6ae,'actions':_0x706d96[_0x271520(0x2f1)],'textRanges':null}};_0x515af2[_0x271520(0x23d)](_0x11f3ee);});if(_0x515af2['disposeWithMe'](_0x3042b9),_0x515af2 instanceof u[_0x409ebe(0x2ca)]){const _0x1376b1={'onTransformIME':_0x161534=>this[_0x409ebe(0xe6)][_0x409ebe(0x14a)](_0x161534),'onTransformState':_0x394e2f=>this[_0x409ebe(0x266)]['transformStateCache'](_0x394e2f),'onTransformSelections':_0x461017=>this[_0x409ebe(0x282)][_0x409ebe(0x2a4)](_0x461017),'onSyncEditingCollabCursor':_0x28676e=>this[_0x409ebe(0x2d0)]['syncEditingCollabCursor'](_0x28676e),'onTransformRemoteChangesetByIMECache':_0x3b1d62=>this[_0x409ebe(0xe6)]['transformRemoteChangeset'](_0x3b1d62),'onTransformRemoteChangesetByStateCache':_0x468693=>this[_0x409ebe(0x266)][_0x409ebe(0x12a)](_0x468693)};_0x515af2[_0x409ebe(0x152)](_0x1376b1);}}));}};ee=es([U(0x0,a[_0x41f8c8(0x32b)](b['DocStateChangeManagerService'])),U(0x1,a[_0x41f8c8(0x32b)](u['CollaborationController'])),U(0x2,a[_0x41f8c8(0x32b)](J)),U(0x3,a[_0x41f8c8(0x32b)](Z)),U(0x4,a[_0x41f8c8(0x32b)](Q)),U(0x5,a[_0x41f8c8(0x32b)](pe)),U(0x6,T[_0x41f8c8(0xe7)]),U(0x7,a[_0x41f8c8(0x32b)](a['LocaleService']))],ee);var ts=Object[_0x41f8c8(0x247)],ss=(_0xddd2e4,_0x387f6f,_0x1e4818,_0x494b9e)=>{const _0x79930f=_0x41f8c8;for(var _0x332690=_0x494b9e>0x1?void 0x0:_0x494b9e?ts(_0x387f6f,_0x1e4818):_0x387f6f,_0x56c9cd=_0xddd2e4[_0x79930f(0xd5)]-0x1,_0x569cc5;_0x56c9cd>=0x0;_0x56c9cd--)(_0x569cc5=_0xddd2e4[_0x56c9cd])&&(_0x332690=_0x569cc5(_0x332690)||_0x332690);return _0x332690;},_e=(_0x31326b,_0x5414ba)=>(_0x38994c,_0x515913)=>_0x5414ba(_0x38994c,_0x515913,_0x31326b);let me=class extends a[_0x41f8c8(0x1ac)]{constructor(_0x382157,_0x462ad5,_0x59923c){const _0x21bd2e=_0x41f8c8;super(),h(this,'_cachedData',new Map()),h(this,_0x21bd2e(0x284),new Map()),h(this,'_disabled',!0x1),(this['_configService']=_0x382157,this[_0x21bd2e(0x118)]=_0x462ad5,this['_revisionService']=_0x59923c);}[_0x41f8c8(0x1e6)](){const _0x57bf47=_0x41f8c8;this[_0x57bf47(0x125)]=!0x0;}[_0x41f8c8(0xcd)](){const _0x4c7039=_0x41f8c8;this[_0x4c7039(0x125)]=!0x1;}get[_0x41f8c8(0x28f)](){const _0x37c000=_0x41f8c8;return this[_0x37c000(0x284)];}[_0x41f8c8(0x1a7)](){const _0x2c21be=_0x41f8c8;this[_0x2c21be(0x171)]()['then'](()=>super[_0x2c21be(0x1a7)]());}async['loadOfflineData'](_0x46a75b){const _0xf89c0=_0x41f8c8;return this[_0xf89c0(0x125)]?null:this[_0xf89c0(0x118)][_0xf89c0(0x139)](u[_0xf89c0(0x14b)](_0x46a75b));}async[_0x41f8c8(0x1f0)](_0x3ab8f0,_0x2e5835){const _0x2b8ad5=_0x41f8c8;return!!this[_0x2b8ad5(0x118)]['setItem'](_0x3ab8f0,_0x2e5835);}[_0x41f8c8(0x1a6)](_0x2e6743,_0xc65d04,_0x151295,_0xb3dbce){const _0x2d194f=_0x41f8c8,_0x34e4a3=this[_0x2d194f(0x288)]['getCurrentRevOfUnit'](_0x2e6743);this[_0x2d194f(0x24c)][_0x2d194f(0x238)](_0x2e6743,{'unitID':_0x2e6743,'type':_0xc65d04,'awaitingChangeset':_0x151295,'mutations':_0xb3dbce,'rev':_0x34e4a3}),this[_0x2d194f(0x284)]['has'](_0x2e6743)||this[_0x2d194f(0x2cf)](_0x2e6743);}['_scheduleSaving'](_0x10624b){const _0x3cc1ac=_0x41f8c8,_0x2a8dc6=this[_0x3cc1ac(0x1dd)]();_0x2a8dc6===0x0?this[_0x3cc1ac(0x1d7)](_0x10624b):this[_0x3cc1ac(0x284)]['set'](_0x10624b,setTimeout(()=>this[_0x3cc1ac(0x1d7)](_0x10624b),_0x2a8dc6));}['_getSaveTimeout'](){const _0x25d4c3=_0x41f8c8;var _0x54e236;return(_0x54e236=this[_0x25d4c3(0x258)][_0x25d4c3(0x2ef)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x54e236:u[_0x25d4c3(0x1fb)];}['_saveCache'](_0x5084a3){const _0x839dc=_0x41f8c8,_0x799009=this[_0x839dc(0x284)][_0x839dc(0x328)](_0x5084a3);return _0x799009!==void 0x0&&window['clearTimeout'](_0x799009),this[_0x839dc(0x118)][_0x839dc(0x2ce)](u[_0x839dc(0x14b)](_0x5084a3),this[_0x839dc(0x24c)][_0x839dc(0x328)](_0x5084a3))['then'](()=>this[_0x839dc(0x284)][_0x839dc(0x203)](_0x5084a3));}async[_0x41f8c8(0x171)](){const _0xfcf7ab=_0x41f8c8,_0x4f6f9e=[];this[_0xfcf7ab(0x284)][_0xfcf7ab(0x221)]((_0x4c362b,_0x5f07d0)=>{const _0x298320=_0xfcf7ab;window[_0x298320(0x1bd)](_0x4c362b),_0x4f6f9e[_0x298320(0x264)](this[_0x298320(0x1d7)](_0x5f07d0)[_0x298320(0xe5)](()=>{this['_saveTaskMap']['delete'](_0x5f07d0);}));}),await Promise[_0xfcf7ab(0xf9)](_0x4f6f9e);}};me=ss([_e(0x0,a[_0x41f8c8(0x2c6)]),_e(0x1,a[_0x41f8c8(0x245)]),_e(0x2,a[_0x41f8c8(0x32b)](m[_0x41f8c8(0x14c)]))],me);class He extends a['RxDisposable']{constructor(){const _0x4d2f9e=_0x41f8c8;super(),h(this,_0x4d2f9e(0x1af)),this[_0x4d2f9e(0x1af)]=d['fromEvent'](window,_0x4d2f9e(0x309))['pipe'](d[_0x4d2f9e(0x2dc)](this[_0x4d2f9e(0x16a)]),d[_0x4d2f9e(0x1f6)](0x1),d[_0x4d2f9e(0x2ee)](void 0x0));}[_0x41f8c8(0x2e9)](_0x1743ea,_0x16daf5,_0x5a573b=!0x1){const _0x10e07a=_0x41f8c8,_0x454378=new URL(window[_0x10e07a(0x18b)]['href']);_0x454378['searchParams']['set'](_0x1743ea,_0x16daf5),_0x5a573b?window[_0x10e07a(0x27d)][_0x10e07a(0x1ca)]('','',_0x454378[_0x10e07a(0x1db)]()):window[_0x10e07a(0x27d)][_0x10e07a(0x1c3)]('','',_0x454378['toString']());}[_0x41f8c8(0x327)](_0x42f461,_0x46a793=!0x1){const _0x15e71f=_0x41f8c8,_0x3d0b2a=new URL(window[_0x15e71f(0x18b)][_0x15e71f(0x1e7)]);_0x3d0b2a[_0x15e71f(0x128)]['delete'](_0x42f461),_0x46a793?window[_0x15e71f(0x27d)]['replaceState']('','',_0x3d0b2a[_0x15e71f(0x1db)]()):window[_0x15e71f(0x27d)][_0x15e71f(0x1c3)]('','',_0x3d0b2a[_0x15e71f(0x1db)]());}[_0x41f8c8(0x193)](_0x2a8cd1){const _0x5278dc=_0x41f8c8;var _0x378ec3;return(_0x378ec3=new URL(window['location'][_0x5278dc(0x1e7)])['searchParams'][_0x5278dc(0x328)](_0x2a8cd1))!=null?_0x378ec3:void 0x0;}}var ns=Object[_0x41f8c8(0x244)],is=Object['getOwnPropertyDescriptor'],rs=(_0x35ad69,_0x55775c,_0x29e80a)=>_0x55775c in _0x35ad69?ns(_0x35ad69,_0x55775c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29e80a}):_0x35ad69[_0x55775c]=_0x29e80a,os=(_0xf6169f,_0x32ac1e,_0x274ca1,_0x506ee2)=>{const _0x2e33b3=_0x41f8c8;for(var _0x1cad45=_0x506ee2>0x1?void 0x0:_0x506ee2?is(_0x32ac1e,_0x274ca1):_0x32ac1e,_0x23c5d7=_0xf6169f[_0x2e33b3(0xd5)]-0x1,_0xf0fdbb;_0x23c5d7>=0x0;_0x23c5d7--)(_0xf0fdbb=_0xf6169f[_0x23c5d7])&&(_0x1cad45=_0xf0fdbb(_0x1cad45)||_0x1cad45);return _0x1cad45;},ue=(_0x14b022,_0x35653d)=>(_0x2fd38f,_0x15754c)=>_0x35653d(_0x2fd38f,_0x15754c,_0x14b022),as=(_0x9e0e57,_0x4326e3,_0x2328fa)=>rs(_0x9e0e57,_0x4326e3+'',_0x2328fa);const cs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x41f8c8(0x26c)]=class extends a[_0x41f8c8(0xc6)]{constructor(_0x2adb2f=Pe,_0xeaa64a,_0x326ade,_0xb6a428){const _0x534a8b=_0x41f8c8;super(),this['_config']=_0x2adb2f,this['_renderManagerService']=_0xeaa64a,this[_0x534a8b(0x236)]=_0x326ade,this[_0x534a8b(0x258)]=_0xb6a428;const {..._0x50f06b}=a[_0x534a8b(0x241)]({},Pe,this['_config']);this['_configService'][_0x534a8b(0x1dc)](Yt,_0x50f06b);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}[_0x41f8c8(0x1bc)](){const _0x276bbf=_0x41f8c8;var _0x1cca8f;const _0x4bc7bf=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':He}],[q[_0x276bbf(0x33d)],{'useClass':q[_0x276bbf(0x19f)]}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x276bbf(0x29c)]],[ee],[z],[x],[fe],[exports[_0x276bbf(0x19c)]]];a[_0x276bbf(0x31f)](this[_0x276bbf(0x236)],a[_0x276bbf(0x2a5)](_0x4bc7bf,(_0x1cca8f=this['_config'])==null?void 0x0:_0x1cca8f[_0x276bbf(0x2e1)]));}[_0x41f8c8(0x180)](){const _0x5460ee=_0x41f8c8;this[_0x5460ee(0x176)](this[_0x5460ee(0xf1)][_0x5460ee(0x123)](a['UniverInstanceType'][_0x5460ee(0xf3)],[ge])),this[_0x5460ee(0x176)](this[_0x5460ee(0xf1)][_0x5460ee(0x123)](a[_0x5460ee(0x335)]['UNIVER_SHEET'],[Ie]));}['_initDependencies'](){const _0x21d8b4=_0x41f8c8;a[_0x21d8b4(0x30c)](this[_0x21d8b4(0x236)],[[x],[exports[_0x21d8b4(0x29c)]],[ee],[z],[exports[_0x21d8b4(0x19c)]]]);}},as(exports[_0x41f8c8(0x26c)],_0x41f8c8(0x149),cs),exports[_0x41f8c8(0x26c)]=os([a[_0x41f8c8(0x256)](u[_0x41f8c8(0x26f)]),ue(0x1,p[_0x41f8c8(0x240)]),ue(0x2,a['Inject'](a['Injector'])),ue(0x3,a[_0x41f8c8(0x2c6)])],exports[_0x41f8c8(0x26c)]);var ls=Object['getOwnPropertyDescriptor'],hs=(_0x410863,_0x1305b2,_0x2fe54a,_0x5e68e2)=>{for(var _0x38cab5=_0x5e68e2>0x1?void 0x0:_0x5e68e2?ls(_0x1305b2,_0x2fe54a):_0x1305b2,_0x420cbe=_0x410863['length']-0x1,_0x30ac60;_0x420cbe>=0x0;_0x420cbe--)(_0x30ac60=_0x410863[_0x420cbe])&&(_0x38cab5=_0x30ac60(_0x38cab5)||_0x38cab5);return _0x38cab5;},F=(_0x272f8a,_0x553aca)=>(_0x3b3992,_0x3e80fa)=>_0x553aca(_0x3b3992,_0x3e80fa,_0x272f8a);exports[_0x41f8c8(0x2ae)]=class extends u[_0x41f8c8(0xd1)]{constructor(_0x3d9c71,_0x57e007,_0x210060,_0x412d3a,_0x572f04){super(_0x3d9c71,_0x57e007,_0x210060,_0x412d3a,_0x572f04);}async[_0x41f8c8(0x2c5)](_0x35c146){const _0x5e17c1=_0x41f8c8,_0x2361eb=await this[_0x5e17c1(0xff)](),_0x529fd8=this[_0x5e17c1(0x2d9)](_0x35c146,_0x2361eb);return this[_0x5e17c1(0x1cd)](_0x529fd8);}[_0x41f8c8(0x2d9)](_0x3bd114,_0x567715){const _0x4ccc97=_0x41f8c8,_0x3ad88b=typeof window>'u'?new URL(_0x3bd114):new URL(_0x3bd114,window[_0x4ccc97(0x18b)][_0x4ccc97(0x164)]);_0x3ad88b[_0x4ccc97(0x128)][_0x4ccc97(0x238)](_0x4ccc97(0x209),_0x567715);const _0x4e7198=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4ccc97(0x18b)][_0x4ccc97(0x2f6)]);return _0x4e7198['get'](_0x4ccc97(0xd8))&&_0x3ad88b[_0x4ccc97(0x128)]['set'](_0x4ccc97(0xd8),_0x4e7198[_0x4ccc97(0x328)](_0x4ccc97(0xd8))),_0x3ad88b[_0x4ccc97(0x1db)]();}async[_0x41f8c8(0xff)](){const _0x122db8=_0x41f8c8;var _0x3bfe16,_0x21296c,_0x5ac4f5;const _0x162be9=this[_0x122db8(0x258)][_0x122db8(0x2ef)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1ca246=(_0x3bfe16=_0x162be9==null?void 0x0:_0x162be9['wsSessionTicketUrl'])!=null?_0x3bfe16:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x5ac4f5=(_0x21296c=(await this[_0x122db8(0x1a1)][_0x122db8(0x328)](_0x1ca246,{'headers':{'Content-Type':_0x122db8(0x2eb)}}))['body'])==null?void 0x0:_0x21296c[_0x122db8(0x333)])!=null?_0x5ac4f5:'';}},exports['BrowserCollaborationSocketService']=hs([F(0x0,a['Inject'](a['Injector'])),F(0x1,a[_0x41f8c8(0x32b)](q[_0x41f8c8(0x33a)])),F(0x2,a[_0x41f8c8(0x2c6)]),F(0x3,a[_0x41f8c8(0x307)]),F(0x4,m['ISnapshotServerService'])],exports[_0x41f8c8(0x2ae)]);const we=0x7530,Le=_0x41f8c8(0x1ae);class _s extends a[_0x41f8c8(0x1ac)]{constructor(){const _0x38f320=_0x41f8c8;super(),h(this,_0x38f320(0x336),a[_0x38f320(0x223)]['generateRandomId']()),h(this,'_selfUnitIDs',new Set()),h(this,_0x38f320(0x232),new Map()),h(this,_0x38f320(0x147),null),h(this,_0x38f320(0x2d5),new Map()),h(this,_0x38f320(0x1b1),new Map()),this[_0x38f320(0x320)]();}[_0x41f8c8(0x1a7)](){const _0x168864=_0x41f8c8;super[_0x168864(0x1a7)](),this['_clearOtherTimers'][_0x168864(0x221)]((_0x524020,_0x3aa4b5)=>this['_removeClearOtherTimer'](_0x3aa4b5)),this[_0x168864(0x147)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x41f8c8(0x283)](_0x3f50ee){const _0x461491=_0x41f8c8;return this['_ensureSubject'](_0x3f50ee)[_0x461491(0x167)](d[_0x461491(0x276)]());}[_0x41f8c8(0x308)](_0x5c17fd){const _0x1a171e=_0x41f8c8;this[_0x1a171e(0x11c)]['size']===0x0&&this[_0x1a171e(0x190)](),this[_0x1a171e(0x11c)][_0x1a171e(0x195)](_0x5c17fd),this[_0x1a171e(0x2ea)]({'type':0x0,'memberID':this[_0x1a171e(0x336)],'unitIDs':[_0x5c17fd],'isForwarded':!0x1});}[_0x41f8c8(0x2ec)](_0x34a06f){const _0x3d2eaa=_0x41f8c8;this[_0x3d2eaa(0x11c)]['delete'](_0x34a06f),this['_selfUnitIDs'][_0x3d2eaa(0xc7)]===0x0&&this[_0x3d2eaa(0x147)]&&window['clearInterval'](this[_0x3d2eaa(0x147)]);}[_0x41f8c8(0x320)](){const _0x21a173=_0x41f8c8;this[_0x21a173(0x176)](a[_0x21a173(0x1b7)](d[_0x21a173(0x301)](window,_0x21a173(0x339))['subscribe'](_0x84878c=>{const _0x1c1edb=_0x21a173;if(_0x84878c[_0x1c1edb(0x2e7)]!==Le||!_0x84878c[_0x1c1edb(0x25d)])return;const _0x812a20=JSON[_0x1c1edb(0x1e5)](_0x84878c[_0x1c1edb(0x25d)]);this[_0x1c1edb(0x166)](_0x812a20);}))),window[_0x21a173(0x1c2)](_0x21a173(0x1f3),()=>this[_0x21a173(0x2ea)]({'type':0x1,'memberID':this[_0x21a173(0x336)],'unitIDs':Array[_0x21a173(0x2f4)](this[_0x21a173(0x11c)])}));}[_0x41f8c8(0x166)](_0x2591d9){const _0x4a9d51=_0x41f8c8;switch(_0x2591d9[_0x4a9d51(0x121)]){case 0x0:this['_handleJoinEvent'](_0x2591d9);break;case 0x1:this['_handleLeaveEvent'](_0x2591d9);break;case 0x2:this['_handleHeartbeatEvent'](_0x2591d9);break;}}['_handleJoinEvent'](_0x5bf538){const _0x2edac3=_0x41f8c8,{unitIDs:_0x475a65,memberID:_0x249642,isForwarded:_0x1ae0b6}=_0x5bf538;_0x475a65[_0x2edac3(0x221)](_0x1e625d=>{const _0x27a5e0=_0x2edac3;if(!_0x1ae0b6&&this['_unitOnClients'][_0x27a5e0(0x271)](_0x1e625d)&&this['_ensureSubject'](_0x1e625d)[_0x27a5e0(0xfa)](u[_0x27a5e0(0x13c)][_0x27a5e0(0xd6)]),!this[_0x27a5e0(0x232)]['has'](_0x1e625d)||!this[_0x27a5e0(0x232)][_0x27a5e0(0x328)](_0x1e625d)['has'](_0x249642)){const _0x37d4f0=this['_unitOnClients'][_0x27a5e0(0x328)](_0x1e625d)||new Set();_0x37d4f0['add'](_0x249642),this['_unitOnClients']['set'](_0x1e625d,_0x37d4f0),this[_0x27a5e0(0x269)](_0x249642);}}),_0x1ae0b6||this['_send']({'type':0x0,'memberID':this[_0x2edac3(0x336)],'unitIDs':[...this[_0x2edac3(0x11c)]],'isForwarded':!0x0});}[_0x41f8c8(0x269)](_0x1eaf90){const _0x31b4ea=_0x41f8c8;this[_0x31b4ea(0xc9)](_0x1eaf90);const _0x5cf20d=window['setTimeout'](()=>{const _0x59be08=_0x31b4ea;this[_0x59be08(0x232)][_0x59be08(0x221)](_0x500101=>{const _0x51f6ca=_0x59be08;_0x500101[_0x51f6ca(0x203)](_0x1eaf90);});},we*0x2);this[_0x31b4ea(0x2d5)][_0x31b4ea(0x238)](_0x1eaf90,_0x5cf20d);}['_removeClearOtherTimer'](_0xf4a9a4){const _0x3a8933=_0x41f8c8;if(this[_0x3a8933(0x2d5)][_0x3a8933(0x271)](_0xf4a9a4)){const _0x3dcab4=this[_0x3a8933(0x2d5)][_0x3a8933(0x328)](_0xf4a9a4);_0x3dcab4&&window[_0x3a8933(0x1bd)](_0x3dcab4),this[_0x3a8933(0x2d5)][_0x3a8933(0x238)](_0xf4a9a4,null);}}[_0x41f8c8(0x213)](_0x2626b8){const _0x189e8c=_0x41f8c8,{memberID:_0x4137e0,unitIDs:_0x5414ac}=_0x2626b8;_0x5414ac[_0x189e8c(0x221)](_0x10778f=>{const _0x17171a=_0x189e8c;var _0x136186;const _0x13a68d=this[_0x17171a(0x232)][_0x17171a(0x328)](_0x10778f);_0x13a68d&&(_0x13a68d[_0x17171a(0x203)](_0x4137e0),(_0x136186=this[_0x17171a(0x29b)](_0x10778f))==null||_0x136186['next'](_0x13a68d[_0x17171a(0xc7)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x17171a(0x13c)][_0x17171a(0xd6)]));}),this[_0x189e8c(0xc9)](_0x4137e0);}['_handleHeartbeatEvent'](_0x316921){const _0x372b76=_0x41f8c8;this[_0x372b76(0x269)](_0x316921[_0x372b76(0xec)]);}[_0x41f8c8(0x2ea)](_0x2e10b4){const _0x23d1c9=_0x41f8c8;localStorage['setItem'](Le,JSON[_0x23d1c9(0x204)](_0x2e10b4));}[_0x41f8c8(0x190)](){const _0x49af16=_0x41f8c8;this[_0x49af16(0x147)]=window['setInterval'](()=>{const _0x47f8cc=_0x49af16;this[_0x47f8cc(0x2ea)]({'type':0x2,'memberID':this['_id']});},we);}['_ensureSubject'](_0x4b810d){const _0x26310b=_0x41f8c8;return this[_0x26310b(0x1b1)][_0x26310b(0x271)](_0x4b810d)||this[_0x26310b(0x1b1)][_0x26310b(0x238)](_0x4b810d,new d[(_0x26310b(0x26a))](u[_0x26310b(0x13c)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x26310b(0x1b1)][_0x26310b(0x328)](_0x4b810d);}}var We=(_0x4c3e4e=>(_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x2b3)]=0x0]=_0x41f8c8(0x2b3),_0x4c3e4e[_0x4c3e4e['OK']=0x1]='OK',_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x287)]=0x2]=_0x41f8c8(0x287),_0x4c3e4e[_0x4c3e4e['PERMISSION_DENIED']=0x3]=_0x41f8c8(0x15f),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x2d8)]=0x4]=_0x41f8c8(0x2d8),_0x4c3e4e[_0x4c3e4e['UNAUTHENTICATED']=0x5]=_0x41f8c8(0x12d),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x314)]=0x6]=_0x41f8c8(0x314),_0x4c3e4e[_0x4c3e4e['INVALID_ARGUMENT']=0x7]=_0x41f8c8(0x154),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0xe2)]=0x8]=_0x41f8c8(0xe2),_0x4c3e4e[_0x4c3e4e['COMPLETION_FINISHED']=0x9]=_0x41f8c8(0x29d),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x2ba)]=0x1389]=_0x41f8c8(0x2ba),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x114)]=0x1771]=_0x41f8c8(0x114),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x1ea)]=0x1772]=_0x41f8c8(0x1ea),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x332)]=0x1773]=_0x41f8c8(0x332),_0x4c3e4e[_0x4c3e4e['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x323)]=0x1b5a]=_0x41f8c8(0x323),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x2b6)]=0x1b5b]=_0x41f8c8(0x2b6),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x313)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x136)]=0x1b5d]=_0x41f8c8(0x136),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x334)]=0x1f41]=_0x41f8c8(0x334),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x173)]=0x2329]=_0x41f8c8(0x173),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x31b)]=0x232a]=_0x41f8c8(0x31b),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x285)]=0x232b]=_0x41f8c8(0x285),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x207)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x15c)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0xdb)]=0x2711]=_0x41f8c8(0xdb),_0x4c3e4e[_0x4c3e4e['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x41f8c8(0x1f7),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x27b)]=0x2713]=_0x41f8c8(0x27b),_0x4c3e4e[_0x4c3e4e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x41f8c8(0x2a8),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0xfe)]=0x2af9]=_0x41f8c8(0xfe),_0x4c3e4e[_0x4c3e4e[_0x41f8c8(0x19a)]=-0x1]=_0x41f8c8(0x19a),_0x4c3e4e))(We||{}),us=Object[_0x41f8c8(0x247)],ds=(_0x4fa216,_0x500380,_0xc42333,_0x563a96)=>{for(var _0x16c608=_0x563a96>0x1?void 0x0:_0x563a96?us(_0x500380,_0xc42333):_0x500380,_0x3974d3=_0x4fa216['length']-0x1,_0x4d1b41;_0x3974d3>=0x0;_0x3974d3--)(_0x4d1b41=_0x4fa216[_0x3974d3])&&(_0x16c608=_0x4d1b41(_0x16c608)||_0x16c608);return _0x16c608;},de=(_0x39f10e,_0x31d73d)=>(_0x2871bb,_0x129418)=>_0x31d73d(_0x2871bb,_0x129418,_0x39f10e);exports['RemoteUniscriptService']=class extends a[_0x41f8c8(0x1ac)]{constructor(_0x430ca1,_0x29dcab,_0x21265e){const _0x1622ac=_0x41f8c8;super(),this[_0x1622ac(0xc8)]=_0x430ca1,this[_0x1622ac(0x1a1)]=_0x29dcab,this[_0x1622ac(0x258)]=_0x21265e;}async[_0x41f8c8(0xe3)](_0x15fc43,_0x3be7f4,_0x2cebeb,..._0x4eb22b){const _0x4331b0=_0x41f8c8;var _0x175ff5,_0x4a88f8,_0x51b924,_0x56a77a;const _0x4c0422=this['_instanceService'][_0x4331b0(0x2fe)]();if(!_0x4c0422)throw new Error(_0x4331b0(0x28b));const _0x372a6f=((_0x175ff5=this['_configService'][_0x4331b0(0x2ef)](u[_0x4331b0(0xfb)]))!=null?_0x175ff5:u[_0x4331b0(0x29e)])+'/'+_0x15fc43+_0x4331b0(0x267)+_0x3be7f4,_0x363cb9=new URL(window[_0x4331b0(0x18b)][_0x4331b0(0x1e7)]),_0x154729={'scriptId':_0x15fc43,'runId':(_0x4a88f8=_0x363cb9['searchParams'][_0x4331b0(0x328)](_0x4331b0(0xd8)))!=null?_0x4a88f8:'','function':_0x3be7f4,'unitId':_0x4c0422[_0x4331b0(0x2d4)](),'argsOfFunction':JSON[_0x4331b0(0x204)](_0x4eb22b),'invokeId':(_0x51b924=_0x2cebeb[_0x4331b0(0x20d)])!=null?_0x51b924:'','executionId':(_0x56a77a=_0x2cebeb['executionId'])!=null?_0x56a77a:''};try{const _0xdc74cc=await this[_0x4331b0(0x1a1)][_0x4331b0(0x21e)](_0x372a6f,{'body':_0x154729});return _0xdc74cc[_0x4331b0(0x13e)][_0x4331b0(0x228)]&&_0xdc74cc[_0x4331b0(0x13e)][_0x4331b0(0x228)][_0x4331b0(0xc4)]!==We['OK']?_0x4331b0(0x27a):_0xdc74cc[_0x4331b0(0x13e)][_0x4331b0(0x188)];}catch{return _0x4331b0(0x27a);}}},exports[_0x41f8c8(0x325)]=ds([de(0x0,a[_0x41f8c8(0x2b8)]),de(0x1,a[_0x41f8c8(0x32b)](q[_0x41f8c8(0x33a)])),de(0x2,a['IConfigService'])],exports[_0x41f8c8(0x325)]),exports[_0x41f8c8(0x1e1)]=Be,exports[_0x41f8c8(0x242)]=Ee,exports[_0x41f8c8(0x33c)]=Ae,exports[_0x41f8c8(0xf0)]=_s,exports[_0x41f8c8(0x254)]=He;
1
+ 'use strict';function _0x5cb2(){const _0xe560d=['getUnitId','M0\x200H16V16H0z','children','handleInsertRangeMoveDown','SUBMIT_CHANGESET_TIMEOUT','ALREADY_EXISTS','backgroundColor','getSheetObject','_configService','isActive','_revisionService','_send','_scheduleHeartbeat','Optional','toRgbString','getSkeleton','replaceDocRanges','ENSURE_SNAPSHOT_EXECUTION','handleInsertRangeMoveRight','runRefRangeMutations','_getSessionTicket','_cursors','FromArray','_injector','IConfigService','body','DesktopCollaborationStatusDisplayController','eventID','_uiPartsService','disableLocalCache','Rectangle','_collaborationUIEventService','getCurrentRevOfUnit','8421931aoOvhh','debug','useCallback','TOO_MANY_REQUESTS','createInstance','_docSkeletonManagerService','unsubscribe','getTypeOfUnitDisposed$','name','_collabCursorController','from','getConfig','saveImage','delete','unitID','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getOwnPropertyDescriptor','onlineStatusIcon','_cursorInfo$','Vector2','result','_initResize','restore','getItem','YUUMI_SUBSCRIPTION_NOT_FOUND','transformMutation','getCurrentUnitForType','_refRangeService','COLORS','setUndoRedoMutationParamsCache','Tooltip','RevisionService','LOCAL_CACHE_INTERVAL','BuiltInUIPart','_renderManagerService','onPointerEnter$','call','gold400','reconnect','assignAColorForMemberID','_assignedColors','transformIMECache','NOT_COLLAB','defIds','SYNCED','_initStatusListener','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','div','_colorIndex','find','collabStatus.syncing','DisposableCollection','throttleTime','application/json','_saveTaskMap','onRendered','disposeWithMe','data','className','univer-flex\x20univer-items-center','InsertRangeMoveDownCommandId','_backgroundColor','getRangePointData','getViewport','hide','redoState','_getMergeRange','getUnhiddenWorksheets','apply','RxDisposable','deserializeRangeWithSheet','deepClone','string','MessageType','CHANGESET_REVISION_CONFILICT','_labelPosition','onMouseMove','OTHER_CLIENTS_EDITING','getMember','getActiveSheet','stringify','event$','transformStateCache','_onCursorUpdate','_range','loadUnit','_startDocCollabCursor','_updateURLWithCurrentState','indexOf','getCollabCursors$','_docTransformStateCacheService','getAncestorScale','_cursor','CollaborationEvent','off-line-single_clip0_910_343','max','handleIRemoveCol','_commandService','trim','_themeService','makeDirty','init','_univerInstanceService','AWAITING','_removeClearOtherTimer','resize','_refreshCollabCursors','APPLY_REJECT','getColor','TEXT','LICENSE_DISTRO_REJECTED','combineLatest','collabStatus.fetchMiss','jiqing500','startColumn','APPLY_DUPLICATED','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','Shape','Failed','registerRenderModule','icon','1063852zDPvOh','collabStatus.offline','fromEvent','parse','_collaborationController','CLOSE_ROOM','getFocusedUnit','Error','executeCommand','updateOfflineData','enableLocalCache','_updateLocalCursor','@univerjs/sheets','LICENSE_MAX_UNITS_EXCEEDED','_instanceService','takeUntil','unload','[RemoteUniscriptService]:\x20no\x20focused\x20unit','whenReady','BrowserCollaborationSocketService','RemoteUniscriptService','exhaustSavingTask','uni.network.url-service','serializeRangeWithSheet','CommandType','INVALID_ARGUMENT','DocStateChangeManagerService','_drawRectRange','SNAPSHOT_INVALID_SNAPSHOT','IUniverInstanceService','_render','offline','propertyIsEnumerable','registerRefRange','_initCommandExecutedListener','ISocketService','YUUMI_UNABLE_LOAD_URL','_hideTimer','_scheduleClearOtherTimer','session.collaboration-timeout','WebSocketService','top','ILocalStorageService','function','add','_localCacheService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','debounce','displayName','_setupSubUnitSync','RichTextEditingMutation','online','#fff','IRenderManagerService','DocCollaborationEntity','forwardRef','_colorAssignService','requireSession','@univerjs-pro/collaboration-client','Tools','NodePositionConvertToRectRange','getStateCache','path','engine','xlink:href','805098ADtuUD','_hover','currentTheme$','_createSocketURL','clipPath','UniverCollaborationClientPlugin','WebBrowserSingleActiveUnitService','Plugin','Warning','createElement','DocIMEInputManagerService','fillStyle','defs','merge','push','useRef','_initStatusComponent','roomMembers$','href','MUTATION','NOT_FOUND','DataLoaderService','m1Prime','_init','concat','_clearOtherTimers','_scheduleSaving','loadOfflineData','m2Prime','_getAnchorBounding','key','TEXT_RANGE_LAYER_INDEX','_handleEvent','CollaborationController','ThemeService','SheetCollabCursorShape','transformMutationsWithChangeset','measureText','@univerjs/sheets-ui','IImageIoService','evenodd','_handleHover','cursorInfo$','hasOwnProperty','Injector','arc','_unitStatus','replaceState','INTERNAL_ERROR','SheetsSelectionsService','_logService','some','getSheetId','useObservable','ITransformService','mutations','_cursorShapes','permission.title','IMessageService','_getScale','saveTaskMap','entries','unitId','_drawTextRange','onCommandExecuted','transformByState','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','map','Unknown\x20user','toString','subscribe','_removeCollabCursors','setItem','text','color','pushState','replace','collaboration-client.offline-data-not-saved','drawWith','getOffsetConfig','_startSheetCollabCursor','substring','_updateCollabCursors','Workbook','_registerRenderDependencies','dispose$','mergeOverrideWithDependencies','current','_docTransformIMECacheService','APPLY_PERMISSION_DENIED','YUUMI_RATE_OVER_LIMIT','findNodePositionByCharIndex','univer-online-status','collaboration.closeRoom','CONFLICT','black','_anchorDot','complete','endRow','setParam','mask','addObject','idSuffix','getMemberID','getTypeOfUnitAdded$','none','show','url(#off-line-single_clip0_910_343)','LICENSE_IMPORT_SIZE_EXCEEDED','UNAUTHENTICATED','toStringTag','sheetID','univer-online-status-title','_anchor','_localeService','MemberService','2324982VDBcND','onPointerMove$','_handleHeartbeatEvent','_id','CollaborationUIEventId','_status$','forEach','EffectRefRangId','permission.content','_docClipboardService','_hovered','generateRandomId','object','runId','getLocalCacheKey','save','OTHER_CLIENT_EDITING','UniverIcon','lineTo','1qXyylC','touchDependencies','min','0\x200\x2017\x2016','onPointerLeave$','_initEvent','_handleJoinEvent','editingUnit','rxjs/operators','UniverCollaborationClientUIPlugin','_registerDependencies','ILogService','_shapes','DocSelectionManagerService','@univerjs/engine-render','FETCH_MISS','_initDependencies','error','syncEditingCollabCursor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_initEntityListener','getCollabEntity$','isTransformMutationsWithChangesetSuccess','_drawAnchor','OFFLINE','_httpService','clearInterval','_lastPointer','roomMembers','attrs','collaboration.single-unit.warning','SHEET_VIEWPORT_KEY','CollaborationStatus','includes','_transformPreviousActiveRange','_document','getUniverSheetInstance','mapTo','storage','_getSheetObject','SetSelectionsOperation','verdancy600','handleInsertRow','_memberService','getOwnPropertySymbols','_heartbeatTimer','IBeforeCloseService','transformSelections','history','_name','source','getActiveRange','SetDocZoomRatioOperation','tag','url(#on-line-single_clip0_910_349)','BehaviorSubject','UNIVER_DOC','@univerjs/design','range','InsertColCommandId','_color','sessionStatus$','LocaleService','_transformUndoRedoStack','round','subscribeEvent','SOCKET_FAILED','jsxs','transformRemoteChangeset','ISnapshotServerService','getRelativeToViewportCoord','_scene','_syncEditingCollabCursorService','DeleteRangeMoveUpCommandId','UPDATE_CURSOR','getVpScrollXYInfoByPosToVp','IURLService','UNIVER_SHEET','react','_saveCache','translate(.97)','ColorKit','ACTIVE_UNIT_EVENT_CHANNEL','setStateCache','univer-offline','_roomMembers$','_beforeCloseService','_online','_sheetSkeletonManagerService','_transformService','session.connection-failed','assign','_session','svg','setInterval','_docTransformSelectionsService','triggerDblclick','CollaborationUIEventService','height','WebURLService','YUUMI_URL_COL_OUT_OF_RANGE','onlineStatusTitle','CollaborationDataLoaderController','getCurrentSelections','startsWith','MoveRangeCommandId','getValue','clearTimeout','_setupBeforeClosingHandler','next','has','bottom','setActiveRange','InsertRangeMoveRightCommandId','Rect','send','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','0\x200\x2016\x2016','getUnitStatus$','_transformHistoryAndStateStack','ILocalCacheService','_onCursorDelete','collabStatus.synced','getCellPositionByOffset','UNRECOGNIZED','IDocClipboardService','SheetSkeletonManagerService','CollaborationSocketService','dispose','_entityInit$','switchMap','docStateChange$','labelPosition','status$','1em','CollaborationStatusDisplay','newValue','ICommandService','searchParams','UNDEFINED','DOC_RANGE_TYPE','selection','@univerjs/ui','override','filter','_urlService','fromEventSubject','registerComponent','SetWorksheetActivateCommand','_localStorageService','undoState','values','Disposable','unit','number','[CollaborationDataLoaderController]','setConfig','jsx','univer-online-status-icon','UnitStatus','toDisposable','type','_updateSubUnitFromURLParams','TRANSFORM_CHANGE_OBSERVABLE_TYPE','then','_toggleOnline','DeleteRangeMoveLeftCommandId','debounceTime','url(#$1','PERMISSION_DENIED','2560533fmAxyP','@univerjs/rpc','_disabled','distinctUntilChanged','SOCKET_FAILED_RETRY','_unitOnClients','_docSkeleton','_handleLeaveEvent','saveOfflineData','pipe','set','univerjs-icon\x20univerjs-icon-','SessionStatus','COMPLETION_FINISHED','transform','popstate','location','UniverInstanceType','SNAPSHOT_HAS_BEEN_REMOVED','onTransformChange$','memberID','LICENSE_EXPORT_SIZE_EXCEEDED','handleIRemoveRow','RECT','isEditing','CollaborationSessionService','getParam','moveTo','_imageIoService','split','size','react/jsx-runtime','OnLineSingle','urlChange$','wsSessionTicketUrl','PENDING','ONLINE','with','VIEW_MAIN','Inject','rxjs','doc.mutation.rich-text-editing','imageSourceType','isArray','subunit','invokeId','/run/','textRanges','setShapeProps','_collabSessionService','fillRule','removeParam','onLocalMutation','asObservable','SetTextSelectionsOperation','all','random','createIdentifier','on-line-single_clip0_910_349','get','row','prototype','defineProperty','addHandlerCallback','APPLY_NON_SEQUENTIAL_REVISION','sessionTicket','InsertRowCommandId','purple300','RemoveColCommandId','handleDeleteRangeMoveUp','handleInsertCol','addEventListener','_collabCursorState$','column','getRenderById','_ensureSubject','actions','currentSkeleton$','length','activeSheet$','blue400','PY_RUNTIME_SCRIPT_ERROR','setTimeout','currentColor','_cachedData','INotificationService','extend','OffLineSingle','_eventUnsubscribe','LOCAL_CACHE_INTERVAL_KEY','AWAITING_WITH_PENDING','_notificationService','_selfUnitIDs','Subject','_toggleOffline','getCoordByCell','@univerjs/network','search','isTransformMutationFailure','_dataLoaderService','getSheetBySheetId','_context','_messageService','USERS_LEAVE','getDocRanges','setAlpha','HEADER_MENU','_getSaveTimeout','on-line-single','width','code','17002032bZEJLh','fillText','_docSyncEditingCollabCursorService','cursorInfo','useDependency','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','collab-text-range-','ranges','params','post','_entities','_docStateChangeManagerService','_config','unshift','collabCursorState$','1990JImaNQ','fill','...','_textBubble','RegularPolygon','handleMoveRange','colorChannel1'];_0x5cb2=function(){return _0xe560d;};return _0x5cb2();}const _0x202b97=_0x353f;(function(_0x23b746,_0x3ace07){const _0x1ba35a=_0x353f,_0x1927a8=_0x23b746();while(!![]){try{const _0x1d09bc=parseInt(_0x1ba35a(0x3f7))/0x1*(-parseInt(_0x1ba35a(0x3e4))/0x2)+-parseInt(_0x1ba35a(0x210))/0x3+-parseInt(_0x1ba35a(0x32f))/0x4+parseInt(_0x1ba35a(0x28e))/0x5+-parseInt(_0x1ba35a(0x370))/0x6+parseInt(_0x1ba35a(0x2b6))/0x7+parseInt(_0x1ba35a(0x27f))/0x8;if(_0x1d09bc===_0x3ace07)break;else _0x1927a8['push'](_0x1927a8['shift']());}catch(_0x17b51c){_0x1927a8['push'](_0x1927a8['shift']());}}}(_0x5cb2,0xdecfd));var qe=Object[_0x202b97(0x24e)],Ke=(_0x36e59b,_0x5ed262,_0x416c13)=>_0x5ed262 in _0x36e59b?qe(_0x36e59b,_0x5ed262,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x416c13}):_0x36e59b[_0x5ed262]=_0x416c13,h=(_0x2e6b78,_0x22b9a9,_0x45f517)=>Ke(_0x2e6b78,typeof _0x22b9a9!='symbol'?_0x22b9a9+'':_0x22b9a9,_0x45f517);Object[_0x202b97(0x24e)](exports,Symbol[_0x202b97(0x3de)],{'value':'Module'});const _=require(_0x202b97(0x369)),a=require('@univerjs/core'),p=require(_0x202b97(0x405)),q=require(_0x202b97(0x270)),b=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),d=require(_0x202b97(0x238)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Te=require('@univerjs/engine-formula'),I=require(_0x202b97(0x33b)),$=require(_0x202b97(0x3ff)),G=require(_0x202b97(0x396)),w=require(_0x202b97(0x22f)),T=require(_0x202b97(0x1f4)),M=require(_0x202b97(0x430)),P=require(_0x202b97(0x1b4)),Je=require(_0x202b97(0x211));var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x19ef39,_0x48ba95,_0x37c9c9,_0x1fbd2b)=>{const _0x54ed05=_0x202b97;for(var _0x3e9d5c=_0x1fbd2b>0x1?void 0x0:_0x1fbd2b?Ze(_0x48ba95,_0x37c9c9):_0x48ba95,_0x5aced8=_0x19ef39[_0x54ed05(0x25e)]-0x1,_0x118307;_0x5aced8>=0x0;_0x5aced8--)(_0x118307=_0x19ef39[_0x5aced8])&&(_0x3e9d5c=_0x118307(_0x3e9d5c)||_0x3e9d5c);return _0x3e9d5c;},Re=(_0x1ac4c3,_0x37078c)=>(_0x4826dc,_0x1860c1)=>_0x37078c(_0x4826dc,_0x1860c1,_0x1ac4c3);let fe=class extends a[_0x202b97(0x2fb)]{constructor(_0x3d0ba4,_0x10d141){const _0x4b1321=_0x202b97;super(),this[_0x4b1321(0x3ed)]=_0x3d0ba4,this['_imageIoService']=_0x10d141,this[_0x4b1321(0x387)]();}['_init'](){const _0x12bb71=this;this['disposeWithMe'](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x3106f3=>{const _0x2c5e24=_0x353f,_0x60fb12=await _0x12bb71[_0x2c5e24(0x22c)][_0x2c5e24(0x2c2)](_0x3106f3);return _0x60fb12?{'source':_0x60fb12[_0x2c5e24(0x429)],'imageSourceType':_0x60fb12[_0x2c5e24(0x23a)]}:null;}}));}};fe=Qe([Re(0x0,b[_0x202b97(0x1e3)]),Re(0x1,ze[_0x202b97(0x397)])],fe);const Oe=[_0x202b97(0x253),_0x202b97(0x327),_0x202b97(0x420),'red300',_0x202b97(0x260),_0x202b97(0x2db)];class Ce extends a[_0x202b97(0x1fe)]{constructor(){const _0x11f5c4=_0x202b97;super(...arguments),h(this,_0x11f5c4(0x2de),new Map()),h(this,_0x11f5c4(0x2e6),0x0);}['assignAColorForMemberID'](_0x10307e){const _0x2f8be1=_0x202b97;if(this[_0x2f8be1(0x2de)]['has'](_0x10307e))return this[_0x2f8be1(0x2de)][_0x2f8be1(0x24b)](_0x10307e);const _0x592deb=Oe[this[_0x2f8be1(0x2e6)]];return this[_0x2f8be1(0x2e6)]=(this[_0x2f8be1(0x2e6)]+0x1)%Oe[_0x2f8be1(0x25e)],this[_0x2f8be1(0x2de)][_0x2f8be1(0x21a)](_0x10307e,_0x592deb),_0x592deb;}}function ye(_0x5fcd4c){let _0x114f15='';for(const _0x37cd69 of _0x5fcd4c){const {startOffset:_0x35e269,endOffset:_0x79a83b,isActive:_0x2a93bd,rangeType:_0x34af0a,segmentId:_0x4eeafc,segmentPage:_0x4f6906}=_0x37cd69;_0x114f15['length']&&(_0x114f15+=','),_0x114f15+=_0x35e269+':'+_0x79a83b+':'+(_0x2a93bd?'1':'0')+':'+_0x34af0a+':'+_0x4eeafc+':'+_0x4f6906;}return _0x114f15;}function et(_0x47a171){const _0x585863=_0x202b97,_0x328979=_0x47a171[_0x585863(0x22d)](','),_0x35d084=[];for(const _0x2d02cb of _0x328979){const [_0x53a5e6,_0x29b427,_0xf0e395,_0x397322,_0x4d365b,_0x9d9742]=_0x2d02cb[_0x585863(0x22d)](':');_0x35d084[_0x585863(0x37e)]({'startOffset':Number(_0x53a5e6),'endOffset':Number(_0x29b427),'collapsed':_0x53a5e6===_0x29b427,'isActive':_0xf0e395==='1','rangeType':_0x397322===a['DOC_RANGE_TYPE']['TEXT']?a[_0x585863(0x1f2)][_0x585863(0x323)]:a['DOC_RANGE_TYPE'][_0x585863(0x227)],'segmentId':typeof _0x4d365b==_0x585863(0x2fe)?String(_0x4d365b):'','segmentPage':Number(_0x9d9742!=null?_0x9d9742:-0x1)});}return _0x35d084[_0x585863(0x3a3)](_0x3b802f=>_0x3b802f['isActive'])||(_0x35d084[0x0][_0x585863(0x29e)]=!0x0),_0x35d084;}class pe extends a[_0x202b97(0x2fb)]{constructor(){const _0x156394=_0x202b97;super(...arguments),h(this,'_collabCursorState$',new d[(_0x156394(0x42e))](null)),h(this,_0x156394(0x28d),this[_0x156394(0x258)][_0x156394(0x245)]());}[_0x202b97(0x409)](_0x246878){const _0x28dd99=_0x202b97,{unitID:_0x158f8e,memberID:_0x5b7719,textRanges:_0x1aef60}=_0x246878,_0x353deb=ye(_0x1aef60);if(_0x353deb==='')return;const _0x19c94c={'unitID':_0x158f8e,'memberID':_0x5b7719,'selection':_0x353deb};this[_0x28dd99(0x258)][_0x28dd99(0x1d3)](_0x19c94c);}}var tt=Object[_0x202b97(0x2c6)],st=(_0x812d95,_0x57c0cc,_0x59e178,_0x2b6964)=>{const _0x13f8ba=_0x202b97;for(var _0x36658d=_0x2b6964>0x1?void 0x0:_0x2b6964?tt(_0x57c0cc,_0x59e178):_0x57c0cc,_0x1f67fb=_0x812d95[_0x13f8ba(0x25e)]-0x1,_0x3fe5e6;_0x1f67fb>=0x0;_0x1f67fb--)(_0x3fe5e6=_0x812d95[_0x1f67fb])&&(_0x36658d=_0x3fe5e6(_0x36658d)||_0x36658d);return _0x36658d;},N=(_0x461494,_0x2d8e97)=>(_0x3d7696,_0x370653)=>_0x2d8e97(_0x3d7696,_0x370653,_0x461494);const nt=0x12c,it=0x64;let Se=class extends a[_0x202b97(0x2fb)]{constructor(_0x5261b1,_0x325166,_0x3b1e0c,_0x136540,_0x2ee942,_0xbd1f0,_0x23c346,_0x30a403,_0x3b9bcf){const _0x122880=_0x202b97;super(),h(this,_0x122880(0x1bd),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d[(_0x122880(0x42e))](new Map())),h(this,_0x122880(0x39a),this[_0x122880(0x2c8)][_0x122880(0x245)]()),h(this,_0x122880(0x1bb),new d[(_0x122880(0x42e))]([])),h(this,_0x122880(0x381),this['_roomMembers$'][_0x122880(0x219)](d[_0x122880(0x20d)](nt))),h(this,_0x122880(0x33a),a[_0x122880(0x35e)](_0x3164aa=>{const _0x1c1b6f=_0x122880,_0x569b09={'eventID':m[_0x1c1b6f(0x313)][_0x1c1b6f(0x1b0)],'data':{'unitID':this['unitID'],'memberID':this[_0x1c1b6f(0x1c2)][_0x1c1b6f(0x3d7)](),'selection':ye(_0x3164aa)}};this[_0x1c1b6f(0x1c2)][_0x1c1b6f(0x1d9)](_0x569b09,this[_0x1c1b6f(0x2c4)]);},it)),(this[_0x122880(0x2c4)]=_0x5261b1,this['_session']=_0x325166,this[_0x122880(0x2ac)]=_0x3b1e0c,this[_0x122880(0x367)]=_0x136540,this[_0x122880(0x422)]=_0x2ee942,this[_0x122880(0x1ae)]=_0xbd1f0,this[_0x122880(0x1bf)]=_0x23c346,this['_univerInstanceService']=_0x30a403,this[_0x122880(0x317)]=_0x3b9bcf);}get[_0x202b97(0x282)](){const _0x411fda=_0x202b97;return this[_0x411fda(0x2c8)][_0x411fda(0x1d0)]();}get[_0x202b97(0x413)](){const _0x20d3ad=_0x202b97;return this['_roomMembers$'][_0x20d3ad(0x1d0)]();}['dispose'](){const _0x4e1c1b=_0x202b97;super[_0x4e1c1b(0x1e6)](),this[_0x4e1c1b(0x2c8)][_0x4e1c1b(0x1d3)](new Map()),this[_0x4e1c1b(0x2c8)][_0x4e1c1b(0x3d1)](),this[_0x4e1c1b(0x1bb)][_0x4e1c1b(0x1d3)]([]),this[_0x4e1c1b(0x1bb)][_0x4e1c1b(0x3d1)]();}[_0x202b97(0x31b)](){const _0xea1167=_0x202b97;this[_0xea1167(0x387)]||(this['_init']=!0x0,this[_0xea1167(0x1c2)][_0xea1167(0x434)][_0xea1167(0x219)](d[_0xea1167(0x33e)](this[_0xea1167(0x3c5)]))[_0xea1167(0x3b6)](_0x1e7f46=>{const _0x319087=_0xea1167;_0x1e7f46===_[_0x319087(0x21c)]['ONLINE']?this['_toggleOnline']():this[_0x319087(0x26e)]();}),this[_0xea1167(0x1c2)][_0xea1167(0x307)][_0xea1167(0x219)](d['takeUntil'](this[_0xea1167(0x3c5)]))['subscribe'](_0x3de105=>{const _0x556c6f=_0xea1167,_0x2aaa90=_0x3de105['eventID'];_0x2aaa90===m[_0x556c6f(0x313)][_0x556c6f(0x1b0)]&&this[_0x556c6f(0x309)](_0x3de105),_0x2aaa90===m[_0x556c6f(0x313)][_0x556c6f(0x277)]&&this[_0x556c6f(0x1df)](_0x3de105);}),this['disposeWithMe'](this[_0xea1167(0x317)][_0xea1167(0x3b0)](_0x381ade=>{const _0x337b1a=_0xea1167,_0xd8eb7b=_0x381ade['params'];_0xd8eb7b!=null&&this['_online']&&_0x381ade['id']===Y[_0x337b1a(0x246)]['id']&&_0xd8eb7b[_0x337b1a(0x3ae)]===this[_0x337b1a(0x2c4)]&&_0xd8eb7b[_0x337b1a(0x228)]===!0x1&&_0xd8eb7b['ranges'][_0x337b1a(0x25e)]>0x0&&this[_0x337b1a(0x33a)](_0xd8eb7b[_0x337b1a(0x286)]);})),this[_0xea1167(0x1ae)][_0xea1167(0x28d)][_0xea1167(0x219)](d[_0xea1167(0x33e)](this[_0xea1167(0x3c5)]))[_0xea1167(0x3b6)](_0x30e6f9=>{const _0x40544e=_0xea1167;if((_0x30e6f9==null?void 0x0:_0x30e6f9['unitID'])!==this[_0x40544e(0x2c4)])return;const _0x540122={'eventID':m[_0x40544e(0x313)]['UPDATE_CURSOR'],'data':_0x30e6f9};this[_0x40544e(0x309)](_0x540122);}),this[_0xea1167(0x2ee)](this[_0xea1167(0x317)][_0xea1167(0x3b0)](_0x23d27b=>{const _0x49635d=_0xea1167;if(_0x23d27b[_0x49635d(0x287)]==null)return;const _0x5a8497=_0x23d27b[_0x49635d(0x287)];if(_0x23d27b['id']!==Y[_0x49635d(0x361)]['id']||_0x5a8497['unitId']!==this['unitID'])return;const _0x222d62={'id':_0x49635d(0x239),'params':_0x5a8497},_0x4e736c=this[_0x49635d(0x282)];for(const [_0x3c2868,_0x52620a]of _0x4e736c){const _0x3d04ba={'id':_0x49635d(0x239),'params':{'unitId':this[_0x49635d(0x2c4)],'actions':null,'textRanges':_0x52620a[_0x49635d(0x286)]}},_0x128b81=this[_0x49635d(0x1bf)]['transformMutation'](_0x222d62,_0x3d04ba,!0x1);if(m['isTransformMutationFailure'](_0x128b81))throw _0x128b81['error'];_0x4e736c[_0x49635d(0x21a)](_0x3c2868,{..._0x52620a,'ranges':_0x128b81[_0x49635d(0x38c)]['params'][_0x49635d(0x23f)]});}queueMicrotask(()=>{const _0x40bedc=_0x49635d;this[_0x40bedc(0x2c8)][_0x40bedc(0x1d3)](_0x4e736c);});})));}[_0x202b97(0x309)](_0x29cbc1){const _0x414221=_0x202b97;var _0x2921f9,_0x566f80;const {memberID:_0x1fbc4d,selection:_0x52f81d}=_0x29cbc1[_0x414221(0x2ef)],_0xf54a15=et(_0x52f81d),_0x4468f2=(_0x566f80=(_0x2921f9=this[_0x414221(0x422)][_0x414221(0x304)](this[_0x414221(0x2c4)],_0x1fbc4d))==null?void 0x0:_0x2921f9[_0x414221(0x2be)])!=null?_0x566f80:_0x414221(0x3b4),_0x15f59f={'color':this[_0x414221(0x367)]['assignAColorForMemberID'](_0x1fbc4d),'name':_0x4468f2,'ranges':_0xf54a15},_0x314c52=this['cursorInfo'];_0x314c52[_0x414221(0x21a)](_0x1fbc4d,_0x15f59f),this['_cursorInfo$'][_0x414221(0x1d3)](_0x314c52);}[_0x202b97(0x1df)](_0x3b5bfa){const _0x42136f=_0x202b97,{memberID:_0x5f0e75}=_0x3b5bfa[_0x42136f(0x2ef)],_0x41cf45=this[_0x42136f(0x282)];_0x41cf45[_0x42136f(0x2c3)](_0x5f0e75),this['_cursorInfo$'][_0x42136f(0x1d3)](_0x41cf45);}[_0x202b97(0x20b)](){const _0x5d3005=_0x202b97;var _0x5e9d0d;if(this['_online']=!0x0,((_0x5e9d0d=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x5e9d0d[_0x5d3005(0x295)]())!==this[_0x5d3005(0x2c4)])return;const _0x2956dc=this[_0x5d3005(0x2ac)][_0x5d3005(0x24b)](Y[_0x5d3005(0x404)])['getDocRanges']();Array['isArray'](_0x2956dc)&&_0x2956dc[_0x5d3005(0x25e)]>0x0&&this[_0x5d3005(0x33a)](_0x2956dc);}[_0x202b97(0x26e)](){this['_online']=!0x1;}};Se=st([N(0x2,a['Inject'](a[_0x202b97(0x39c)])),N(0x3,a[_0x202b97(0x237)](Ce)),N(0x4,a[_0x202b97(0x237)](_[_0x202b97(0x3e3)])),N(0x5,a['Inject'](pe)),N(0x6,m[_0x202b97(0x3a6)]),N(0x7,a[_0x202b97(0x34c)]),N(0x8,a[_0x202b97(0x1ef)])],Se);var rt=Object[_0x202b97(0x2c6)],ot=(_0x43ca10,_0x5d874c,_0x2ce380,_0x40a786)=>{const _0x37d8c8=_0x202b97;for(var _0x18e7b9=_0x40a786>0x1?void 0x0:_0x40a786?rt(_0x5d874c,_0x2ce380):_0x5d874c,_0x2250b0=_0x43ca10[_0x37d8c8(0x25e)]-0x1,_0x130e15;_0x2250b0>=0x0;_0x2250b0--)(_0x130e15=_0x43ca10[_0x2250b0])&&(_0x18e7b9=_0x130e15(_0x18e7b9)||_0x18e7b9);return _0x18e7b9;},y=(_0x1fdab0,_0x28eb0e)=>(_0x5e3b17,_0x440150)=>_0x28eb0e(_0x5e3b17,_0x440150,_0x1fdab0);const at=0x12c,ct=0x64,lt=()=>{let _0x5c710a=[],_0x12192d=!0x1;return _0x4ac044=>{const _0x29baa1=_0x353f;_0x5c710a[_0x29baa1(0x37e)](_0x4ac044),_0x12192d||(_0x12192d=!0x0,setTimeout(()=>{const _0x19dcb7=_0x29baa1;_0x5c710a[_0x19dcb7(0x3ea)](_0x23f696=>_0x23f696()),_0x5c710a=[],_0x12192d=!0x1;}));};};let ve=class extends a[_0x202b97(0x2fb)]{constructor(_0xfa9a20,_0x45c85a,_0x4a85c1,_0x6027bc,_0x542eb7,_0x463c4f,_0x4981ea,_0x3d121c){const _0x3217aa=_0x202b97;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x3217aa(0x2c8),new d[(_0x3217aa(0x42e))](new Map())),h(this,_0x3217aa(0x39a),this[_0x3217aa(0x2c8)][_0x3217aa(0x245)]()),h(this,_0x3217aa(0x1bb),new d[(_0x3217aa(0x42e))]([])),h(this,_0x3217aa(0x381),this[_0x3217aa(0x1bb)][_0x3217aa(0x219)](d[_0x3217aa(0x20d)](at))),h(this,_0x3217aa(0x33a),a['debounce']((_0x166b8d,_0x337985)=>{const _0x427151=_0x3217aa,_0x2a3f15={'eventID':m[_0x427151(0x313)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x427151(0x2c4)],'memberID':this[_0x427151(0x1c2)][_0x427151(0x3d7)](),'selection':Te[_0x427151(0x346)](_0x166b8d,_0x337985['range'])}};this['_session']['send'](_0x2a3f15,this['unitID']);},ct)),(this[_0x3217aa(0x2c4)]=_0xfa9a20,this['_session']=_0x45c85a,this[_0x3217aa(0x2ac)]=_0x4a85c1,this[_0x3217aa(0x367)]=_0x6027bc,this[_0x3217aa(0x422)]=_0x542eb7,this['_univerInstanceService']=_0x463c4f,this[_0x3217aa(0x317)]=_0x4981ea,this[_0x3217aa(0x2d1)]=_0x3d121c);}get[_0x202b97(0x282)](){const _0x6d009b=_0x202b97;return this[_0x6d009b(0x2c8)][_0x6d009b(0x1d0)]();}get[_0x202b97(0x413)](){const _0x27d33f=_0x202b97;return this[_0x27d33f(0x1bb)][_0x27d33f(0x1d0)]();}[_0x202b97(0x1e6)](){const _0x36c47a=_0x202b97;super[_0x36c47a(0x1e6)](),this['_cursorInfo$'][_0x36c47a(0x1d3)](new Map()),this[_0x36c47a(0x2c8)][_0x36c47a(0x3d1)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x36c47a(0x3d1)]();}[_0x202b97(0x31b)](){const _0x12bd19=_0x202b97;this[_0x12bd19(0x387)]||(this['_init']=!0x0,this[_0x12bd19(0x1c2)][_0x12bd19(0x434)][_0x12bd19(0x219)](d[_0x12bd19(0x33e)](this[_0x12bd19(0x3c5)]))[_0x12bd19(0x3b6)](_0x28ed43=>{const _0x1fea50=_0x12bd19;_0x28ed43===_[_0x1fea50(0x21c)][_0x1fea50(0x234)]?this[_0x1fea50(0x20b)]():this[_0x1fea50(0x26e)]();}),this[_0x12bd19(0x1c2)][_0x12bd19(0x307)][_0x12bd19(0x219)](d[_0x12bd19(0x33e)](this[_0x12bd19(0x3c5)]))[_0x12bd19(0x3b6)](_0x129a65=>{const _0x169366=_0x12bd19,_0x2a7468=_0x129a65[_0x169366(0x2b0)];_0x2a7468===m['CollaborationEvent'][_0x169366(0x1b0)]&&this[_0x169366(0x309)](_0x129a65),_0x2a7468===m['CollaborationEvent'][_0x169366(0x277)]&&this[_0x169366(0x1df)](_0x129a65);}),this['_onRefRangeChange'](),this[_0x12bd19(0x2ee)](this[_0x12bd19(0x317)]['onCommandExecuted'](_0x499206=>{const _0x233be=_0x12bd19;if(this['_online']&&_0x499206['id']===I[_0x233be(0x41f)]['id']&&_0x499206[_0x233be(0x287)]['unitId']===this[_0x233be(0x2c4)]){const _0x232d5b=_0x499206[_0x233be(0x287)];this[_0x233be(0x33a)](_0x232d5b['subUnitId'],_0x232d5b['selections'][0x0]);}})));}[_0x202b97(0x309)](_0x19c087){const _0x58edbc=_0x202b97;var _0x20bf41,_0x54bf24;const {memberID:_0x5b9abe,selection:_0x60c879}=_0x19c087[_0x58edbc(0x2ef)],{sheetName:_0x261010,range:_0x57e4f3}=Te[_0x58edbc(0x2fc)](_0x60c879),_0x580ff0={'name':(_0x54bf24=(_0x20bf41=this[_0x58edbc(0x422)][_0x58edbc(0x304)](this[_0x58edbc(0x2c4)],_0x5b9abe))==null?void 0x0:_0x20bf41[_0x58edbc(0x2be)])!=null?_0x54bf24:'Unknown\x20user','range':this[_0x58edbc(0x2f8)](_0x261010,_0x57e4f3),'sheetID':_0x261010,'color':this[_0x58edbc(0x367)][_0x58edbc(0x2dd)](_0x5b9abe),'selection':_0x60c879},_0x540d88=this[_0x58edbc(0x282)];_0x540d88[_0x58edbc(0x21a)](_0x5b9abe,_0x580ff0),this[_0x58edbc(0x2c8)][_0x58edbc(0x1d3)](_0x540d88);}[_0x202b97(0x1df)](_0x5203ba){const _0x3f806a=_0x202b97,{memberID:_0x1ad9b7}=_0x5203ba[_0x3f806a(0x2ef)],_0x18d7c0=this[_0x3f806a(0x282)];_0x18d7c0[_0x3f806a(0x2c3)](_0x1ad9b7),this[_0x3f806a(0x2c8)][_0x3f806a(0x1d3)](_0x18d7c0);}[_0x202b97(0x2f8)](_0xb0e7cb,_0x2c6de8){const _0x4b9880=_0x202b97;var _0x540f42,_0x22fd0a;const _0x5d0b41=(_0x22fd0a=(_0x540f42=this[_0x4b9880(0x31c)][_0x4b9880(0x41b)](this[_0x4b9880(0x2c4)]))==null?void 0x0:_0x540f42['getSheetBySheetId'](_0xb0e7cb))==null?void 0x0:_0x22fd0a['getMergeData']();return(_0x5d0b41==null?void 0x0:_0x5d0b41[_0x4b9880(0x2e7)](_0x5a1cc0=>a[_0x4b9880(0x2b3)]['contains'](_0x5a1cc0,_0x2c6de8)))||_0x2c6de8;}['_onRefRangeChange'](){const _0x44d30d=_0x202b97,_0x2d606f=new a[(_0x44d30d(0x2e9))](),_0x173758=lt(),_0x4dea70=()=>{const _0x733ec=_0x44d30d;_0x2d606f[_0x733ec(0x1e6)]();const _0x4d0e90=(_0x2f4656,_0x10f0c5,_0x420210,_0x4f9deb)=>{const _0x37edd2=_0x733ec;let _0x4a8dc2=[];switch(_0x2f4656['id']){case I[_0x37edd2(0x3eb)][_0x37edd2(0x20c)]:{_0x4a8dc2=I['handleDeleteRangeMoveLeft'](_0x2f4656,_0x4f9deb);break;}case I[_0x37edd2(0x3eb)][_0x37edd2(0x1af)]:{_0x4a8dc2=I[_0x37edd2(0x255)](_0x2f4656,_0x4f9deb);break;}case I[_0x37edd2(0x3eb)][_0x37edd2(0x432)]:{_0x4a8dc2=I[_0x37edd2(0x256)](_0x2f4656,_0x4f9deb);break;}case I[_0x37edd2(0x3eb)][_0x37edd2(0x2f2)]:{_0x4a8dc2=I[_0x37edd2(0x298)](_0x2f4656,_0x4f9deb);break;}case I[_0x37edd2(0x3eb)][_0x37edd2(0x1d7)]:{_0x4a8dc2=I[_0x37edd2(0x2a7)](_0x2f4656,_0x4f9deb);break;}case I[_0x37edd2(0x3eb)][_0x37edd2(0x252)]:{_0x4a8dc2=I[_0x37edd2(0x421)](_0x2f4656,_0x4f9deb);break;}case I[_0x37edd2(0x3eb)][_0x37edd2(0x1cf)]:{_0x4a8dc2=I[_0x37edd2(0x293)](_0x2f4656,_0x4f9deb);break;}case I['EffectRefRangId'][_0x37edd2(0x254)]:{_0x4a8dc2=I[_0x37edd2(0x316)](_0x2f4656,_0x4f9deb);break;}case I['EffectRefRangId']['RemoveRowCommandId']:{_0x4a8dc2=I[_0x37edd2(0x226)](_0x2f4656,_0x4f9deb);break;}}const _0x1314b9=I[_0x37edd2(0x2a8)](_0x4a8dc2,_0x4f9deb),_0x3f41dc=this[_0x37edd2(0x282)][_0x37edd2(0x24b)](_0x10f0c5);if(_0x3f41dc&&_0x1314b9){const _0x176814={..._0x3f41dc,'range':_0x1314b9};this[_0x37edd2(0x282)][_0x37edd2(0x21a)](_0x10f0c5,_0x176814),_0x173758(()=>{const _0x5e817b=_0x37edd2,_0x5d3b07=this[_0x5e817b(0x2d1)][_0x5e817b(0x350)](_0x1314b9,_0x4f2c80=>(_0x5d3b07[_0x5e817b(0x1e6)](),_0x4d0e90(_0x4f2c80,_0x10f0c5,_0x420210,_0x1314b9)));_0x2d606f[_0x5e817b(0x35b)](_0x5d3b07);});}return{'redos':[],'undos':[]};};this[_0x733ec(0x282)][_0x733ec(0x3ea)]((_0x5abda7,_0x3a2831)=>{const _0x3d807b=_0x733ec,{range:_0x304bda,sheetID:_0x1ee654}=_0x5abda7,_0x39637e=this['_refRangeService'][_0x3d807b(0x350)](_0x304bda,_0x2d1cc4=>(_0x39637e['dispose'](),_0x4d0e90(_0x2d1cc4,_0x3a2831,_0x1ee654,_0x304bda)));_0x2d606f[_0x3d807b(0x35b)](_0x39637e);});};this['disposeWithMe'](a[_0x44d30d(0x206)](this[_0x44d30d(0x2c8)]['subscribe'](()=>{_0x4dea70();})));}[_0x202b97(0x20b)](){const _0x501d93=_0x202b97;var _0x34ee8d,_0x213342;if(this[_0x501d93(0x1bd)]=!0x0,((_0x34ee8d=this[_0x501d93(0x31c)][_0x501d93(0x335)]())==null?void 0x0:_0x34ee8d[_0x501d93(0x295)]())!==this[_0x501d93(0x2c4)])return;const _0x4d3d14=(_0x213342=this[_0x501d93(0x2ac)][_0x501d93(0x24b)](I[_0x501d93(0x3a1)])[_0x501d93(0x1cd)]())==null?void 0x0:_0x213342[0x0],_0x598623=this[_0x501d93(0x31c)][_0x501d93(0x2d0)](a['UniverInstanceType'][_0x501d93(0x1b3)])['getActiveSheet']();_0x4d3d14&&_0x598623&&this['_updateLocalCursor'](_0x598623[_0x501d93(0x3a4)](),_0x4d3d14);}[_0x202b97(0x26e)](){this['_online']=!0x1;}};ve=ot([y(0x2,a[_0x202b97(0x237)](a[_0x202b97(0x39c)])),y(0x3,a[_0x202b97(0x237)](Ce)),y(0x4,a[_0x202b97(0x237)](_[_0x202b97(0x3e3)])),y(0x5,a['IUniverInstanceService']),y(0x6,a[_0x202b97(0x1ef)]),y(0x7,a[_0x202b97(0x237)](I['RefRangeService']))],ve);var ht=Object[_0x202b97(0x2c6)],ut=(_0x14e4d6,_0x5c33d6,_0x556b2c,_0x5500a2)=>{const _0x22987a=_0x202b97;for(var _0x4841e8=_0x5500a2>0x1?void 0x0:_0x5500a2?ht(_0x5c33d6,_0x556b2c):_0x5c33d6,_0x46b885=_0x14e4d6[_0x22987a(0x25e)]-0x1,_0x23fed8;_0x46b885>=0x0;_0x46b885--)(_0x23fed8=_0x14e4d6[_0x46b885])&&(_0x4841e8=_0x23fed8(_0x4841e8)||_0x4841e8);return _0x4841e8;},ie=(_0x287003,_0x58348f)=>(_0x93c274,_0x4fe113)=>_0x58348f(_0x93c274,_0x4fe113,_0x287003);let x=class extends a[_0x202b97(0x2fb)]{constructor(_0x4bd77b,_0x54fa6d,_0x44a5fb){const _0x1e12aa=_0x202b97;super(),h(this,_0x1e12aa(0x289),new Map()),h(this,_0x1e12aa(0x1e7),new d[(_0x1e12aa(0x26d))]()),(this[_0x1e12aa(0x31c)]=_0x4bd77b,this['_injector']=_0x54fa6d,this[_0x1e12aa(0x241)]=_0x44a5fb,this[_0x1e12aa(0x387)]());}[_0x202b97(0x1e6)](){const _0x56e738=_0x202b97;super[_0x56e738(0x1e6)](),this['_entityInit$'][_0x56e738(0x3d1)](),this['_entities'][_0x56e738(0x3ea)](_0x457820=>_0x457820['dispose']());}[_0x202b97(0x30f)](_0x2bb84e){const _0x3d6fc5=_0x202b97;return this[_0x3d6fc5(0x289)]['has'](_0x2bb84e)?this[_0x3d6fc5(0x289)][_0x3d6fc5(0x24b)](_0x2bb84e)[_0x3d6fc5(0x39a)]:this[_0x3d6fc5(0x1e7)][_0x3d6fc5(0x219)](d[_0x3d6fc5(0x1f6)](_0x231b84=>_0x231b84[_0x3d6fc5(0x2c4)]===_0x2bb84e),d['switchMap'](_0x5cf2a2=>_0x5cf2a2[_0x3d6fc5(0x39a)]));}[_0x202b97(0x387)](){const _0x18234a=_0x202b97;this['_univerInstanceService'][_0x18234a(0x3d8)](a[_0x18234a(0x221)][_0x18234a(0x1b3)])[_0x18234a(0x219)](d[_0x18234a(0x33e)](this[_0x18234a(0x3c5)]))[_0x18234a(0x3b6)](async _0x31b6ee=>{const _0x12f21b=_0x18234a,_0x15a570=_0x31b6ee[_0x12f21b(0x295)](),_0x339382=await this[_0x12f21b(0x3c0)](_0x15a570);this[_0x12f21b(0x1e7)][_0x12f21b(0x1d3)](_0x339382),this['_entities']['set'](_0x15a570,_0x339382);}),this[_0x18234a(0x31c)][_0x18234a(0x3d8)](a[_0x18234a(0x221)]['UNIVER_DOC'])[_0x18234a(0x219)](d['takeUntil'](this[_0x18234a(0x3c5)]))[_0x18234a(0x219)](d[_0x18234a(0x1f6)](_0x23da8f=>!_0x23da8f[_0x18234a(0x295)]()[_0x18234a(0x1ce)]('__')))['subscribe'](async _0x12290b=>{const _0x112cd1=_0x18234a,_0x455cca=_0x12290b[_0x112cd1(0x295)](),_0x220087=await this[_0x112cd1(0x30c)](_0x455cca);this['_entityInit$'][_0x112cd1(0x1d3)](_0x220087),this[_0x112cd1(0x289)][_0x112cd1(0x21a)](_0x455cca,_0x220087);}),d[_0x18234a(0x37d)](this[_0x18234a(0x31c)]['getTypeOfUnitDisposed$'](a[_0x18234a(0x221)][_0x18234a(0x42f)]),this[_0x18234a(0x31c)][_0x18234a(0x2bd)](a[_0x18234a(0x221)][_0x18234a(0x1b3)]))[_0x18234a(0x219)](d['takeUntil'](this['dispose$']))[_0x18234a(0x3b6)](_0x13369f=>{const _0xeb1c09=_0x18234a,_0x42498a=_0x13369f[_0xeb1c09(0x295)](),_0x1ff56d=this[_0xeb1c09(0x289)][_0xeb1c09(0x24b)](_0x42498a);_0x1ff56d&&(_0x1ff56d['dispose'](),this['_entities'][_0xeb1c09(0x2c3)](_0x42498a));});}async[_0x202b97(0x3c0)](_0x28fa8e){const _0x121d9d=_0x202b97,_0x1720a9=await this[_0x121d9d(0x241)][_0x121d9d(0x368)](_0x28fa8e),_0x5a669c=this[_0x121d9d(0x2ac)]['createInstance'](ve,_0x28fa8e,_0x1720a9);return _0x5a669c[_0x121d9d(0x31b)](),_0x5a669c;}async[_0x202b97(0x30c)](_0x50351a){const _0x561943=_0x202b97,_0x4dcaed=await this[_0x561943(0x241)]['requireSession'](_0x50351a),_0x1aeabf=this[_0x561943(0x2ac)][_0x561943(0x2ba)](Se,_0x50351a,_0x4dcaed);return _0x1aeabf[_0x561943(0x31b)](),_0x1aeabf;}};x=ut([ie(0x0,a[_0x202b97(0x34c)]),ie(0x1,a['Inject'](a[_0x202b97(0x39c)])),ie(0x2,a[_0x202b97(0x237)](_[_0x202b97(0x229)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function dt(_0x2bc75d,_0x3c1bbc){const _0x1b6381=_0x202b97;let {radius:_0xd0e21d,width:_0x49ac2c,height:_0x4ab179}=_0x3c1bbc;_0xd0e21d=_0xd0e21d!=null?_0xd0e21d:0x0,_0x49ac2c=_0x49ac2c!=null?_0x49ac2c:0x1e,_0x4ab179=_0x4ab179!=null?_0x4ab179:0x1e;let _0x5f3bf8=0x0,_0x34e0b8=0x0,_0x15a453=0x0;_0x5f3bf8=_0x34e0b8=_0x15a453=Math[_0x1b6381(0x3f9)](_0xd0e21d,_0x49ac2c/0x2,_0x4ab179/0x2),_0x2bc75d['beginPath'](),_0x2bc75d[_0x1b6381(0x22b)](_0x5f3bf8,0x0),_0x2bc75d['lineTo'](_0x49ac2c-_0x34e0b8,0x0),_0x2bc75d[_0x1b6381(0x39d)](_0x49ac2c-_0x34e0b8,_0x34e0b8,_0x34e0b8,Math['PI']*0x3/0x2,0x0,!0x1),_0x2bc75d['lineTo'](_0x49ac2c,_0x4ab179-_0x15a453),_0x2bc75d[_0x1b6381(0x39d)](_0x49ac2c-_0x15a453,_0x4ab179-_0x15a453,_0x15a453,0x0,Math['PI']/0x2,!0x1),_0x2bc75d[_0x1b6381(0x3f6)](0x0,_0x4ab179),_0x2bc75d[_0x1b6381(0x3f6)](0x0,_0x5f3bf8),_0x2bc75d['arc'](_0x5f3bf8,_0x5f3bf8,_0x5f3bf8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2bc75d['closePath'](),_0x3c1bbc[_0x1b6381(0x28f)]&&(_0x2bc75d[_0x1b6381(0x3f3)](),_0x2bc75d['fillStyle']=_0x3c1bbc[_0x1b6381(0x28f)],_0x3c1bbc[_0x1b6381(0x242)]==='evenodd'?_0x2bc75d[_0x1b6381(0x28f)](_0x1b6381(0x398)):_0x2bc75d[_0x1b6381(0x28f)](),_0x2bc75d['restore']());}class te extends p[_0x202b97(0x32b)]{constructor(_0x241c56,_0x56f105){const _0x31a2f1=_0x202b97;super(_0x241c56,_0x56f105),h(this,_0x31a2f1(0x3ba)),h(this,_0x31a2f1(0x3b9)),(this[_0x31a2f1(0x3ba)]=_0x56f105==null?void 0x0:_0x56f105[_0x31a2f1(0x3ba)],this[_0x31a2f1(0x3b9)]=_0x56f105==null?void 0x0:_0x56f105[_0x31a2f1(0x3b9)]);}static['drawWith'](_0x3ec9ab,_0x177575){const _0x10b092=_0x202b97,{text:_0x297af3,color:_0x11a10a}=_0x177575;_0x3ec9ab[_0x10b092(0x3f3)](),_0x3ec9ab['font']=_0x10b092(0x40a);const _0x135e9b=_0x3ec9ab[_0x10b092(0x395)](_0x297af3)[_0x10b092(0x27d)],_0x4583ad=Math[_0x10b092(0x3f9)](_0x135e9b+0x2*re,De);dt(_0x3ec9ab,{'height':K,'radius':0x4,'width':_0x4583ad,'fill':_0x11a10a}),_0x3ec9ab[_0x10b092(0x37b)]='#FFF';const _0x10b01b=re,_0x5c9053=K-_t,_0x29ec8c=De-0x2*re;if(_0x135e9b>_0x29ec8c){let _0x3567c4='',_0x2b2251=0x0;for(const _0x379e31 of _0x297af3){const _0xa9cc89=_0x3ec9ab[_0x10b092(0x395)](_0x379e31)[_0x10b092(0x27d)];if(_0x2b2251+_0xa9cc89<=_0x29ec8c-_0x3ec9ab[_0x10b092(0x395)](_0x10b092(0x290))[_0x10b092(0x27d)])_0x3567c4+=_0x379e31,_0x2b2251+=_0xa9cc89;else{_0x3567c4+=_0x10b092(0x290);break;}}_0x3ec9ab[_0x10b092(0x280)](_0x3567c4,_0x10b01b,_0x5c9053);}else _0x3ec9ab[_0x10b092(0x280)](_0x297af3,_0x10b01b,_0x5c9053);_0x3ec9ab[_0x10b092(0x2cc)]();}['_draw'](_0x10f379){const _0x5d0fce=_0x202b97;te[_0x5d0fce(0x3be)](_0x10f379,this);}}const oe='collab-text-anchor-',ft=_0x202b97(0x285),St='collab-rect-range-',B=0x6,vt=1.5,ae=0x4,gt=1.5,It='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x3f8dad,_0x4535bd,_0x227f57,_0x55ef4b){const _0x137ee3=_0x202b97;h(this,_0x137ee3(0x403),[]),h(this,_0x137ee3(0x3e1),null),h(this,_0x137ee3(0x291),null),h(this,_0x137ee3(0x3d0),null),h(this,_0x137ee3(0x354),null),h(this,_0x137ee3(0x268),null),(this[_0x137ee3(0x312)]=_0x3f8dad,this[_0x137ee3(0x1ad)]=_0x4535bd,this[_0x137ee3(0x216)]=_0x227f57,this[_0x137ee3(0x41a)]=_0x55ef4b,this[_0x137ee3(0x34d)]());}set[_0x202b97(0x371)](_0x3d7f47){const _0x57cc75=_0x202b97;_0x3d7f47?(this[_0x57cc75(0x3d0)]&&this['_anchorDot'][_0x57cc75(0x2f6)](),this[_0x57cc75(0x291)]&&this[_0x57cc75(0x291)][_0x57cc75(0x3da)]()):(this[_0x57cc75(0x3d0)]&&this[_0x57cc75(0x3d0)][_0x57cc75(0x3da)](),this[_0x57cc75(0x291)]&&this[_0x57cc75(0x291)][_0x57cc75(0x2f6)]());}[_0x202b97(0x1e6)](){const _0x3e524b=_0x202b97;for(const _0x531cb5 of this[_0x3e524b(0x403)])_0x531cb5['dispose']();this[_0x3e524b(0x291)]&&this[_0x3e524b(0x291)]['dispose'](),this[_0x3e524b(0x3d0)]&&this[_0x3e524b(0x3d0)][_0x3e524b(0x1e6)](),this[_0x3e524b(0x3e1)]&&this[_0x3e524b(0x3e1)]['dispose'](),this[_0x3e524b(0x268)]&&this[_0x3e524b(0x268)]();}[_0x202b97(0x34d)](){const _0x39e184=_0x202b97;var _0x4b6ede;const {_docSkeleton:_0x2bc02c,_document:_0x2fcdee}=this,{color:_0x48358a,name:_0x351f8f,ranges:_0x353761}=this[_0x39e184(0x312)],_0x1652af=_0x2fcdee[_0x39e184(0x3bf)](),{docsLeft:_0x5c9094,docsTop:_0x2e5ae5}=_0x1652af,_0x2e7ac2=new b['NodePositionConvertToCursor'](_0x1652af,_0x2bc02c);for(const {startOffset:_0x4efde9,endOffset:_0x15fe74,rangeType:_0x5c7e60,segmentId:_0x58d465,segmentPage:_0x3f0658,collapsed:_0x289489,isActive:_0x5958c0}of _0x353761){const _0x1e2233=_0x2bc02c['findNodePositionByCharIndex'](_0x4efde9,!0x0,_0x58d465,_0x3f0658);let _0x151544=_0x2bc02c[_0x39e184(0x3cb)](_0x15fe74,!0x0,_0x58d465,_0x3f0658);if(_0x151544==null&&(_0x151544=_0x2bc02c[_0x39e184(0x3cb)](_0x15fe74-0x1,!0x1,_0x58d465,_0x3f0658)),_0x5958c0){const {contentBoxPointGroup:_0x1abc7a}=_0x2e7ac2[_0x39e184(0x2f4)](_0x151544,_0x151544);if(_0x1abc7a[_0x39e184(0x25e)]===0x0)continue;this[_0x39e184(0x40e)](_0x48358a,_0x1abc7a,_0x5c9094,_0x2e5ae5,_0x351f8f),this[_0x39e184(0x268)]=this[_0x39e184(0x399)]();}if(_0x1e2233&&_0x151544){if(_0x5c7e60===a[_0x39e184(0x1f2)]['RECT']){const _0x35d88d=new b[(_0x39e184(0x36b))](_0x1652af,_0x2bc02c),{pointGroup:_0x258955}=(_0x4b6ede=_0x35d88d['getRangePointData'](_0x1e2233,_0x151544))!=null?_0x4b6ede:{};if(_0x258955==null||_0x258955[_0x39e184(0x25e)]===0x0)continue;this['_drawRectRange'](_0x48358a,_0x258955,_0x5c9094,_0x2e5ae5);}else{if(!_0x289489){const {borderBoxPointGroup:_0x2b5b1c}=_0x2e7ac2['getRangePointData'](_0x1e2233,_0x151544);if(_0x2b5b1c[_0x39e184(0x25e)]===0x0)continue;this[_0x39e184(0x3af)](_0x48358a,_0x2b5b1c,_0x5c9094,_0x2e5ae5);}}}}}[_0x202b97(0x40e)](_0x317132,_0xa0b648,_0x3e02c1,_0x150aeb,_0x26594f){const _0x4bcf09=_0x202b97,_0x13f185=this[_0x4bcf09(0x38d)](_0xa0b648),{left:_0x12efde,top:_0x387f77,height:_0x462293}=_0x13f185,_0x410951=this[_0x4bcf09(0x3ab)](),_0x5a7fbf=gt/_0x410951,_0xf6ac26=new p[(_0x4bcf09(0x1d8))](oe+a[_0x4bcf09(0x36a)][_0x4bcf09(0x3ef)](B),{'left':_0x12efde+_0x3e02c1-_0x5a7fbf,'top':_0x387f77+_0x150aeb,'height':_0x462293,'width':vt,'fill':_0x317132||p[_0x4bcf09(0x322)](a['COLORS'][_0x4bcf09(0x3cf)],0x0),'strokeWidth':_0x5a7fbf,'stroke':It,'evented':!0x0});this[_0x4bcf09(0x3e1)]=_0xf6ac26,this[_0x4bcf09(0x1ad)][_0x4bcf09(0x3d5)](_0xf6ac26,b[_0x4bcf09(0x38f)]);const _0x43558e=new p[(_0x4bcf09(0x1d8))](oe+a[_0x4bcf09(0x36a)][_0x4bcf09(0x3ef)](B),{'left':_0x12efde+_0x3e02c1-_0x5a7fbf,'top':_0x387f77+_0x150aeb-ae/0x2,'height':ae,'width':ae,'fill':_0x317132||p['getColor'](a[_0x4bcf09(0x2d2)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x317132||p['getColor'](a[_0x4bcf09(0x2d2)][_0x4bcf09(0x3cf)],0x0),'evented':!0x1});this[_0x4bcf09(0x3d0)]=_0x43558e,this[_0x4bcf09(0x1ad)][_0x4bcf09(0x3d5)](_0x43558e,b[_0x4bcf09(0x38f)]);const _0x442542=new te(oe+a[_0x4bcf09(0x36a)][_0x4bcf09(0x3ef)](B),{'left':_0x12efde+_0x3e02c1-_0x5a7fbf,'top':_0x387f77+_0x150aeb-K,'text':_0x26594f,'color':_0x317132});this[_0x4bcf09(0x291)]=_0x442542,this[_0x4bcf09(0x1ad)][_0x4bcf09(0x3d5)](_0x442542,b[_0x4bcf09(0x38f)]),this[_0x4bcf09(0x371)]=!0x1;}['_handleHover'](){const _0x11ac03=_0x202b97,_0x552547=this[_0x11ac03(0x3e1)][_0x11ac03(0x2d9)][_0x11ac03(0x438)](()=>{const _0x3e8bab=_0x11ac03;this[_0x3e8bab(0x371)]=!0x0;}),_0x30d053=this[_0x11ac03(0x3e1)][_0x11ac03(0x3fb)]['subscribeEvent'](()=>{const _0x388a0f=_0x11ac03;this[_0x388a0f(0x354)]&&clearTimeout(this[_0x388a0f(0x354)]),this[_0x388a0f(0x354)]=setTimeout(()=>{const _0x13ca9e=_0x388a0f;this[_0x13ca9e(0x371)]=!0x1;},0x7d0);});return()=>{const _0x3d6f0e=_0x11ac03;_0x552547[_0x3d6f0e(0x2bc)](),_0x30d053[_0x3d6f0e(0x2bc)]();};}[_0x202b97(0x3af)](_0x25bd88,_0x37a67a,_0x5037fc,_0x5e83ad){const _0x2e72a5=_0x202b97,_0xc83d0d=new a[(_0x2e72a5(0x1b7))](_0x25bd88)[_0x2e72a5(0x279)](0.2)[_0x2e72a5(0x2a3)](),_0x116568=new p[(_0x2e72a5(0x292))](ft+a[_0x2e72a5(0x36a)]['generateRandomId'](B),{'pointsGroup':_0x37a67a,'fill':_0xc83d0d||p[_0x2e72a5(0x322)](a[_0x2e72a5(0x2d2)][_0x2e72a5(0x3cf)],0.2),'left':_0x5037fc,'top':_0x5e83ad,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2e72a5(0x403)][_0x2e72a5(0x37e)](_0x116568),this[_0x2e72a5(0x1ad)]['addObject'](_0x116568,b[_0x2e72a5(0x38f)]);}[_0x202b97(0x34a)](_0x704c2e,_0x2efde8,_0x428083,_0x35c113){const _0x464fce=_0x202b97,_0x13d644=new a[(_0x464fce(0x1b7))](_0x704c2e)[_0x464fce(0x279)](0.2)['toRgbString'](),_0xa266c8=new p[(_0x464fce(0x292))](St+a['Tools'][_0x464fce(0x3ef)](B),{'pointsGroup':_0x2efde8,'fill':_0x13d644||p[_0x464fce(0x322)](a[_0x464fce(0x2d2)][_0x464fce(0x3cf)],0.2),'left':_0x428083,'top':_0x35c113,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x464fce(0x37e)](_0xa266c8),this['_scene'][_0x464fce(0x3d5)](_0xa266c8,b[_0x464fce(0x38f)]);}[_0x202b97(0x38d)](_0x36a424){const _0x492726=_0x36a424[0x0],_0x107ec6=_0x492726[0x0],_0x20ff48=_0x492726[0x2],{x:_0x3686fe,y:_0x38ee80}=_0x107ec6,{x:_0x5ceb16,y:_0x40ce75}=_0x20ff48;return{'left':_0x3686fe,'top':_0x38ee80,'width':_0x5ceb16-_0x3686fe,'height':_0x40ce75-_0x38ee80};}[_0x202b97(0x3ab)](){const _0x1fba9f=_0x202b97,{scaleX:_0x391def,scaleY:_0x5d74dc}=this[_0x1fba9f(0x1ad)]['getAncestorScale']();return Math[_0x1fba9f(0x315)](_0x391def,_0x5d74dc);}}var mt=Object[_0x202b97(0x2c6)],Ct=(_0x20aff9,_0x14adff,_0x4add3,_0x799f03)=>{const _0x579323=_0x202b97;for(var _0x3e2a4d=_0x799f03>0x1?void 0x0:_0x799f03?mt(_0x14adff,_0x4add3):_0x14adff,_0x40f842=_0x20aff9[_0x579323(0x25e)]-0x1,_0x3787c1;_0x40f842>=0x0;_0x40f842--)(_0x3787c1=_0x20aff9[_0x40f842])&&(_0x3e2a4d=_0x3787c1(_0x3e2a4d)||_0x3e2a4d);return _0x3e2a4d;},X=(_0x2f4006,_0x1a0e4d)=>(_0x2cf0d3,_0x46b83d)=>_0x1a0e4d(_0x2cf0d3,_0x46b83d,_0x2f4006);let ge=class extends a[_0x202b97(0x2fb)]{constructor(_0x2fd3b0,_0x2473d0,_0x2ff729,_0x3107b4,_0x3a24fc){const _0x42b59e=_0x202b97;super(),h(this,_0x42b59e(0x3a8),[]),h(this,_0x42b59e(0x2aa),[]),(this[_0x42b59e(0x275)]=_0x2fd3b0,this['_docSkeletonManagerService']=_0x2473d0,this['_collabCursorController']=_0x2ff729,this[_0x42b59e(0x317)]=_0x3107b4,this[_0x42b59e(0x319)]=_0x3a24fc,this[_0x42b59e(0x387)]());}[_0x202b97(0x387)](){const _0x381a7b=_0x202b97,_0x3fe47e=this[_0x381a7b(0x275)][_0x381a7b(0x3ae)],_0x1c1476=this['_docSkeletonManagerService'];this[_0x381a7b(0x2ee)](d[_0x381a7b(0x325)]([this[_0x381a7b(0x2bf)][_0x381a7b(0x30f)](_0x3fe47e),this['_themeService'][_0x381a7b(0x372)]])[_0x381a7b(0x219)]($['map'](([_0x2562e5,_0x27fb80])=>({'skeleton':_0x1c1476['getSkeleton'](),'cursors':[..._0x2562e5[_0x381a7b(0x1fd)]()]['flatMap'](_0x2dfe29=>({..._0x2dfe29,'color':_0x27fb80[_0x2dfe29[_0x381a7b(0x3ba)]]}))})))['subscribe'](_0x4d85ad=>{const _0x480340=_0x381a7b;if(this[_0x480340(0x3b7)](),_0x4d85ad){const {skeleton:_0x1ef760,cursors:_0xe6d88}=_0x4d85ad;this[_0x480340(0x3c2)](_0x1ef760,_0xe6d88);}})),this['_initResize'](),this[_0x381a7b(0x351)]();}[_0x202b97(0x3c2)](_0x3a9231,_0xd40bec){const _0x36be1a=_0x202b97,{scene:_0xaf7ef4,mainComponent:_0x22fbc9}=this[_0x36be1a(0x275)],_0x547af4=_0xd40bec[_0x36be1a(0x3b3)](_0x1bb962=>new Ue(_0x1bb962,_0xaf7ef4,_0x3a9231,_0x22fbc9));this['_cursorShapes']=_0x547af4,this[_0x36be1a(0x2aa)]=_0xd40bec;}[_0x202b97(0x320)](){const _0x5ab540=_0x202b97;this[_0x5ab540(0x3b7)]();const {scene:_0x4e8afc,mainComponent:_0x2def1a}=this['_context'],_0x325a2e=this[_0x5ab540(0x2bb)][_0x5ab540(0x2a4)](),_0x284c92=this['_cursors']['map'](_0x911f90=>new Ue(_0x911f90,_0x4e8afc,_0x325a2e,_0x2def1a));this[_0x5ab540(0x3a8)]=_0x284c92;}[_0x202b97(0x3b7)](){const _0x7ffe2b=_0x202b97;this[_0x7ffe2b(0x3a8)]['forEach'](_0x2df5b0=>_0x2df5b0['dispose']()),this[_0x7ffe2b(0x3a8)]=[];}['_initCommandExecutedListener'](){const _0x5150bf=_0x202b97,_0xb84b7d=[b[_0x5150bf(0x42b)]['id']];this['disposeWithMe'](this[_0x5150bf(0x317)]['onCommandExecuted'](_0x51dd02=>{const _0x2cd96f=_0x5150bf;_0xb84b7d[_0x2cd96f(0x418)](_0x51dd02['id'])&&_0x51dd02[_0x2cd96f(0x287)][_0x2cd96f(0x3ae)]===this[_0x2cd96f(0x275)][_0x2cd96f(0x3ae)]&&this[_0x2cd96f(0x320)]();}));}[_0x202b97(0x2cb)](){const _0x185c22=_0x202b97;this['disposeWithMe'](a[_0x185c22(0x1f8)](this[_0x185c22(0x275)][_0x185c22(0x36e)][_0x185c22(0x223)])[_0x185c22(0x219)]($[_0x185c22(0x1f6)](_0x2758c4=>_0x2758c4[_0x185c22(0x207)]===p[_0x185c22(0x209)][_0x185c22(0x31f)]),$[_0x185c22(0x2ea)](0x10))[_0x185c22(0x3b6)](()=>{const _0x1efe6a=_0x185c22;this[_0x1efe6a(0x320)]();}));}};ge=Ct([X(0x1,a[_0x202b97(0x237)](Y['DocSkeletonManagerService'])),X(0x2,a[_0x202b97(0x237)](x)),X(0x3,a[_0x202b97(0x1ef)]),X(0x4,a[_0x202b97(0x237)](a[_0x202b97(0x392)]))],ge);const pt=0x1,bt=1.5;class Ae extends p['Shape']{constructor(_0x260a1b,_0xaf8e66){const _0x34133a=_0x202b97;super(_0x260a1b,_0xaf8e66),h(this,_0x34133a(0x433)),h(this,_0x34133a(0x3ee),!0x1),h(this,_0x34133a(0x30a)),h(this,'_name',''),h(this,'_labelPosition',_0x34133a(0x358)),h(this,'_backgroundColor'),(_0xaf8e66&&this[_0x34133a(0x240)](_0xaf8e66),this[_0x34133a(0x2d9)][_0x34133a(0x438)](()=>this[_0x34133a(0x240)]({'hovered':!0x0})),this[_0x34133a(0x3fb)]['subscribeEvent'](()=>this[_0x34133a(0x240)]({'hovered':!0x1})));}[_0x202b97(0x240)](_0x28106d){const _0x463087=_0x202b97;var _0x122d52,_0x3b8ac2,_0x29bb60,_0x3fc878,_0x51a64f,_0x1d6982;this[_0x463087(0x433)]=(_0x122d52=_0x28106d['color'])!=null?_0x122d52:this[_0x463087(0x433)],this[_0x463087(0x3ee)]=(_0x3b8ac2=_0x28106d['hovered'])!=null?_0x3b8ac2:this[_0x463087(0x3ee)],this[_0x463087(0x30a)]=(_0x29bb60=_0x28106d[_0x463087(0x431)])!=null?_0x29bb60:this[_0x463087(0x30a)],this[_0x463087(0x428)]=(_0x3fc878=_0x28106d[_0x463087(0x2be)])!=null?_0x3fc878:this[_0x463087(0x428)],this[_0x463087(0x301)]=(_0x51a64f=_0x28106d[_0x463087(0x1ea)])!=null?_0x51a64f:this[_0x463087(0x301)],this[_0x463087(0x2f3)]=(_0x1d6982=_0x28106d[_0x463087(0x29b)])!=null?_0x1d6982:this[_0x463087(0x2f3)],this[_0x463087(0x3b1)]({'width':_0x28106d[_0x463087(0x27d)],'height':_0x28106d[_0x463087(0x1c8)]});}[_0x202b97(0x302)](_0x2a6c42){const _0x5570ae=_0x202b97,{row:_0x2a83ad,column:_0x1dc38d}=_0x2a6c42;if(_0x2a83ad>=this['_range']['startRow']&&_0x2a83ad<=this[_0x5570ae(0x30a)][_0x5570ae(0x3d2)]&&_0x1dc38d>=this[_0x5570ae(0x30a)][_0x5570ae(0x328)]&&_0x1dc38d<=this[_0x5570ae(0x30a)]['endColumn']){this[_0x5570ae(0x240)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x202b97(0x1c6)](_0x1b659e){return!0x1;}['_draw'](_0x17975d){const _0x580b7d=_0x202b97;p[_0x580b7d(0x1d8)][_0x580b7d(0x3be)](_0x17975d,{'width':this[_0x580b7d(0x27d)],'height':this['height'],'strokeWidth':bt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x580b7d(0x2f3)]}),this[_0x580b7d(0x3ee)]&&(_0x17975d[_0x580b7d(0x3f3)](),_0x17975d[_0x580b7d(0x21e)](0x1,0x0,0x0,0x1,this[_0x580b7d(0x27d)],this['_labelPosition']===_0x580b7d(0x1d5)?0x0:-0x14),te['drawWith'](_0x17975d,{'text':this[_0x580b7d(0x428)],'color':this[_0x580b7d(0x433)]}),_0x17975d[_0x580b7d(0x2cc)]());}}var Et=Object[_0x202b97(0x2c6)],Tt=(_0x2cd9b0,_0x3c6acc,_0x9d4c55,_0x247527)=>{const _0x19ea73=_0x202b97;for(var _0x3de4df=_0x247527>0x1?void 0x0:_0x247527?Et(_0x3c6acc,_0x9d4c55):_0x3c6acc,_0x7705dc=_0x2cd9b0[_0x19ea73(0x25e)]-0x1,_0x52a92e;_0x7705dc>=0x0;_0x7705dc--)(_0x52a92e=_0x2cd9b0[_0x7705dc])&&(_0x3de4df=_0x52a92e(_0x3de4df)||_0x3de4df);return _0x3de4df;},ce=(_0x4c096c,_0x15cd4d)=>(_0x2d2da0,_0x5eb42a)=>_0x15cd4d(_0x2d2da0,_0x5eb42a,_0x4c096c);const Rt=0x1389;let Ie=class extends a[_0x202b97(0x2fb)]{constructor(_0x4033d6,_0x484db1,_0x194379,_0x236f9e){const _0x34f49f=_0x202b97;super(),h(this,_0x34f49f(0x2aa),new Set()),h(this,'_lastPointer',null),(this[_0x34f49f(0x275)]=_0x4033d6,this[_0x34f49f(0x1be)]=_0x484db1,this[_0x34f49f(0x2bf)]=_0x194379,this[_0x34f49f(0x319)]=_0x236f9e,this[_0x34f49f(0x387)]());}[_0x202b97(0x387)](){const _0x4bd81b=_0x202b97;this[_0x4bd81b(0x1be)][_0x4bd81b(0x25d)][_0x4bd81b(0x219)]($['takeUntil'](this[_0x4bd81b(0x3c5)]),$[_0x4bd81b(0x1e8)](_0x4e8c20=>{const _0x2a550b=_0x4bd81b;if(_0x4e8c20){const _0x346101=_0x4e8c20['sheetId'];return d[_0x2a550b(0x325)](this[_0x2a550b(0x2bf)][_0x2a550b(0x30f)](this[_0x2a550b(0x275)][_0x2a550b(0x3ae)]),this[_0x2a550b(0x319)]['currentTheme$'])[_0x2a550b(0x219)]($[_0x2a550b(0x3b3)](([_0x410ecf,_0x3aa109])=>{const _0x41b744=_0x2a550b,_0x863e1d=new Map();return _0x410ecf[_0x41b744(0x3ea)]((_0x51071c,_0x257428)=>{const _0x975a8c=_0x41b744;if(_0x51071c[_0x975a8c(0x3df)]===_0x346101){const _0x56e542={..._0x51071c};_0x56e542[_0x975a8c(0x3ba)]=_0x3aa109[_0x51071c[_0x975a8c(0x3ba)]],_0x863e1d[_0x975a8c(0x21a)](_0x257428,_0x56e542);}}),{'skeleton':_0x4e8c20,'cursors':_0x863e1d};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x58a702,cursors:_0x1d83b9})=>{const _0x420eb6=_0x4bd81b;this[_0x420eb6(0x3b7)](),_0x58a702&&this[_0x420eb6(0x3c2)](_0x58a702,_0x1d83b9);}),this[_0x4bd81b(0x1be)]['currentSkeleton$'][_0x4bd81b(0x3b6)](_0x41e4ae=>{const _0x5f32d7=_0x4bd81b;if(_0x41e4ae==null)return;const {skeleton:_0x1cc4d2}=_0x41e4ae,{scene:_0x40ff2c}=this[_0x5f32d7(0x275)];_0x40ff2c[_0x5f32d7(0x3e5)][_0x5f32d7(0x438)](a[_0x5f32d7(0x35e)](_0x28003b=>{const _0x192723=_0x5f32d7;var _0x27d3d5,_0x4b04c4;const {offsetX:_0x31ba3a,offsetY:_0x17818e}=_0x28003b,{x:_0x40ef02,y:_0x18cada}=_0x40ff2c[_0x192723(0x1ac)](p[_0x192723(0x2c9)][_0x192723(0x2ab)]([_0x31ba3a,_0x17818e])),{scaleX:_0x10b3ca,scaleY:_0x4578a9}=_0x40ff2c[_0x192723(0x311)](),_0x4d4467=_0x40ff2c[_0x192723(0x2f5)](p[_0x192723(0x416)][_0x192723(0x236)]),_0x3491e1=_0x40ff2c[_0x192723(0x1b1)](p[_0x192723(0x2c9)]['FromArray']([_0x40ef02,_0x18cada]),_0x4d4467),_0x2c9601=_0x1cc4d2[_0x192723(0x1e1)](_0x31ba3a,_0x17818e,_0x10b3ca,_0x4578a9,_0x3491e1);((_0x27d3d5=this['_lastPointer'])==null?void 0x0:_0x27d3d5[_0x192723(0x259)])===_0x2c9601[_0x192723(0x259)]&&((_0x4b04c4=this[_0x192723(0x412)])==null?void 0x0:_0x4b04c4[_0x192723(0x24c)])===_0x2c9601[_0x192723(0x24c)]||this['_cursors'][_0x192723(0x3ea)](_0x23c2aa=>{_0x23c2aa['onMouseMove'](_0x2c9601);});},0x64));});}[_0x202b97(0x3c2)](_0x34b44b,_0x36371c){const _0x223b1f=_0x202b97;var _0xa43292;const _0x3f35bc=(_0xa43292=this[_0x223b1f(0x1be)]['getCurrent']())==null?void 0x0:_0xa43292['skeleton'];if(!_0x3f35bc)return;const _0x7c9912=this['_getSheetObject']();if(!_0x7c9912)return;this[_0x223b1f(0x2aa)]['forEach'](_0x4c49fc=>{const _0x30eb43=_0x223b1f;_0x4c49fc[_0x30eb43(0x31a)]();});const {scene:_0x3c0340}=_0x7c9912,_0x469cb6=Ot(Array['from'](_0x36371c[_0x223b1f(0x1fd)]()))[_0x223b1f(0x3b3)](_0x44b838=>{const _0x21cc19=_0x223b1f,{color:_0x200b82,range:_0xf0a28d,name:_0x22d109,selection:_0x59463e,sheetID:_0x47958b}=_0x44b838,{startColumn:_0xc8c0c8,startRow:_0x1c9cae,endColumn:_0x305cdb,endRow:_0x20a511}=_0xf0a28d,_0x1176fc=G['getCoordByCell'](_0x1c9cae,_0xc8c0c8,_0x3c0340,_0x3f35bc),_0x43376b=G[_0x21cc19(0x26f)](_0x20a511,_0x305cdb,_0x3c0340,_0x3f35bc),{columnHeaderHeightAndMarginTop:_0x1996c8}=_0x3f35bc,{startX:_0xdd90f4,startY:_0x35abff}=_0x1176fc,{endX:_0x4ea156,endY:_0x157cea}=_0x43376b,_0xdcd660=_0x4ea156-_0xdd90f4,_0x4c5e58=_0x157cea-_0x35abff,_0x1d43e1={'labelPosition':_0x35abff-_0x1996c8>=K?_0x21cc19(0x358):'bottom','sheetID':_0x47958b,'range':_0xf0a28d,'color':_0x200b82,'name':_0x22d109,'selection':_0x59463e,'left':_0xdd90f4,'top':_0x35abff,'width':_0xdcd660,'height':_0x4c5e58,'evented':!0x1,'zIndex':Rt};return new Ae(_0x22d109,_0x1d43e1);});_0x3c0340['addObjects'](_0x469cb6,pt),this['_cursors']=new Set(_0x469cb6);}['_removeCollabCursors'](){const _0x2aafce=_0x202b97;var _0x57320a;(_0x57320a=this[_0x2aafce(0x2aa)])==null||_0x57320a[_0x2aafce(0x3ea)](_0x2f95fc=>_0x2f95fc[_0x2aafce(0x1e6)]());}[_0x202b97(0x41e)](){const _0x43b29f=_0x202b97;return G[_0x43b29f(0x29c)](this[_0x43b29f(0x275)][_0x43b29f(0x1ff)],this[_0x43b29f(0x275)]);}};Ie=Tt([ce(0x1,a['Inject'](G[_0x202b97(0x1e4)])),ce(0x2,a['Inject'](x)),ce(0x3,a['Inject'](a['ThemeService']))],Ie);function Ot(_0x472af1){const _0x303d9e=_0x202b97,_0x4c10f9=new Map();return _0x472af1[_0x303d9e(0x3ea)](_0x59d82b=>{const _0x382581=_0x303d9e;if(_0x4c10f9[_0x382581(0x1d4)](_0x59d82b[_0x382581(0x1f3)])){const _0x25685b=_0x4c10f9[_0x382581(0x24b)](_0x59d82b[_0x382581(0x1f3)]);_0x25685b[_0x382581(0x2be)]+=',\x20'+_0x59d82b['name'];}else _0x4c10f9[_0x382581(0x21a)](_0x59d82b['selection'],_0x59d82b);}),Array[_0x303d9e(0x2c0)](_0x4c10f9[_0x303d9e(0x1fd)]());}var E=function(){const _0x4abcf8=_0x202b97;return E=Object[_0x4abcf8(0x1c1)]||function(_0x40866b){const _0x1b3376=_0x4abcf8;for(var _0x4708cd,_0x34fa28=0x1,_0x2c0564=arguments['length'];_0x34fa28<_0x2c0564;_0x34fa28++){_0x4708cd=arguments[_0x34fa28];for(var _0x480b2c in _0x4708cd)Object[_0x1b3376(0x24d)][_0x1b3376(0x39b)][_0x1b3376(0x2da)](_0x4708cd,_0x480b2c)&&(_0x40866b[_0x480b2c]=_0x4708cd[_0x480b2c]);}return _0x40866b;},E[_0x4abcf8(0x2fa)](this,arguments);},Dt=function(_0x4bbb9b,_0x33a72a){const _0x9bcb7=_0x202b97;var _0x3ae2a3={};for(var _0xd28f0e in _0x4bbb9b)Object[_0x9bcb7(0x24d)][_0x9bcb7(0x39b)][_0x9bcb7(0x2da)](_0x4bbb9b,_0xd28f0e)&&_0x33a72a[_0x9bcb7(0x30e)](_0xd28f0e)<0x0&&(_0x3ae2a3[_0xd28f0e]=_0x4bbb9b[_0xd28f0e]);if(_0x4bbb9b!=null&&typeof Object[_0x9bcb7(0x423)]==_0x9bcb7(0x35a)){for(var _0x21acec=0x0,_0xd28f0e=Object[_0x9bcb7(0x423)](_0x4bbb9b);_0x21acec<_0xd28f0e[_0x9bcb7(0x25e)];_0x21acec++)_0x33a72a[_0x9bcb7(0x30e)](_0xd28f0e[_0x21acec])<0x0&&Object[_0x9bcb7(0x24d)][_0x9bcb7(0x34f)][_0x9bcb7(0x2da)](_0x4bbb9b,_0xd28f0e[_0x21acec])&&(_0x3ae2a3[_0xd28f0e[_0x21acec]]=_0x4bbb9b[_0xd28f0e[_0x21acec]]);}return _0x3ae2a3;},be=P[_0x202b97(0x366)](function(_0x3058a7,_0x3d4fb3){const _0x2b5d7c=_0x202b97;var _0x412ee1=_0x3058a7[_0x2b5d7c(0x32e)],_0x4268ff=_0x3058a7['id'],_0x488763=_0x3058a7[_0x2b5d7c(0x2f0)],_0x4f56f4=_0x3058a7[_0x2b5d7c(0x266)],_0x588bbc=Dt(_0x3058a7,[_0x2b5d7c(0x32e),'id',_0x2b5d7c(0x2f0),'extend']),_0x4f3e52=_0x2b5d7c(0x21b)[_0x2b5d7c(0x388)](_0x4268ff,'\x20')[_0x2b5d7c(0x388)](_0x488763||'')[_0x2b5d7c(0x318)](),_0x997b2b=P[_0x2b5d7c(0x37f)]('_'[_0x2b5d7c(0x388)](Pt()));return $e(_0x412ee1,''[_0x2b5d7c(0x388)](_0x4268ff),{'defIds':_0x412ee1[_0x2b5d7c(0x2e1)],'idSuffix':_0x997b2b[_0x2b5d7c(0x3c7)]},E({'ref':_0x3d4fb3,'className':_0x4f3e52},_0x588bbc),_0x4f56f4);});function $e(_0x2f4cdd,_0x555868,_0x2ba3b7,_0xed3811,_0x2344f8){const _0x217ca1=_0x202b97;return P[_0x217ca1(0x379)](_0x2f4cdd['tag'],E(E({'key':_0x555868},Ut(_0x2f4cdd,_0x2ba3b7,_0x2344f8)),_0xed3811),(Mt(_0x2f4cdd,_0x2ba3b7)[_0x217ca1(0x297)]||[])[_0x217ca1(0x3b3)](function(_0x371467,_0x1442e4){const _0x39c1aa=_0x217ca1;return $e(_0x371467,''['concat'](_0x555868,'-')[_0x39c1aa(0x388)](_0x2f4cdd[_0x39c1aa(0x42c)],'-')['concat'](_0x1442e4),_0x2ba3b7,void 0x0,_0x2344f8);}));}function Ut(_0x54e0ea,_0x7c2f55,_0x207aea){const _0x2441c2=_0x202b97;var _0x488129=E({},_0x54e0ea[_0x2441c2(0x414)]);_0x207aea!=null&&_0x207aea['colorChannel1']&&_0x488129[_0x2441c2(0x28f)]===_0x2441c2(0x294)&&(_0x488129[_0x2441c2(0x28f)]=_0x207aea[_0x2441c2(0x294)]),_0x54e0ea[_0x2441c2(0x42c)]===_0x2441c2(0x3d4)&&_0x488129['id']&&(_0x488129['id']=_0x488129['id']+_0x7c2f55[_0x2441c2(0x3d6)]),Object['entries'](_0x488129)[_0x2441c2(0x3ea)](function(_0x25ef64){const _0x4a8ba7=_0x2441c2;var _0x99cfcc=_0x25ef64[0x0],_0xef7c8f=_0x25ef64[0x1];_0x99cfcc===_0x4a8ba7(0x3d4)&&typeof _0xef7c8f=='string'&&(_0x488129[_0x99cfcc]=_0xef7c8f[_0x4a8ba7(0x3bc)](/url\(#(.*)\)/,'url(#$1'[_0x4a8ba7(0x388)](_0x7c2f55[_0x4a8ba7(0x3d6)],')')));});var _0x885a65=_0x7c2f55[_0x2441c2(0x2e1)];return!_0x885a65||_0x885a65[_0x2441c2(0x25e)]===0x0||(_0x54e0ea['tag']==='use'&&_0x488129[_0x2441c2(0x36f)]&&(_0x488129['xlink:href']=_0x488129[_0x2441c2(0x36f)]+_0x7c2f55[_0x2441c2(0x3d6)]),Object[_0x2441c2(0x3ad)](_0x488129)[_0x2441c2(0x3ea)](function(_0x2db06c){const _0x4cfaf1=_0x2441c2;var _0x1fe987=_0x2db06c[0x0],_0x15b014=_0x2db06c[0x1];typeof _0x15b014==_0x4cfaf1(0x2fe)&&(_0x488129[_0x1fe987]=_0x15b014[_0x4cfaf1(0x3bc)](/url\(#(.*)\)/,_0x4cfaf1(0x20e)[_0x4cfaf1(0x388)](_0x7c2f55['idSuffix'],')')));})),_0x488129;}function _0x353f(_0x300760,_0x4471dc){const _0x5cb22b=_0x5cb2();return _0x353f=function(_0x353f6f,_0x58e14d){_0x353f6f=_0x353f6f-0x1ac;let _0x10f531=_0x5cb22b[_0x353f6f];return _0x10f531;},_0x353f(_0x300760,_0x4471dc);}function Mt(_0x401f5f,_0x20ac58){const _0x22a30f=_0x202b97;var _0x396d63,_0x5969ec=_0x20ac58[_0x22a30f(0x2e1)];return!_0x5969ec||_0x5969ec[_0x22a30f(0x25e)]===0x0?_0x401f5f:_0x401f5f[_0x22a30f(0x42c)]===_0x22a30f(0x37c)&&(!((_0x396d63=_0x401f5f[_0x22a30f(0x297)])===null||_0x396d63===void 0x0)&&_0x396d63['length'])?E(E({},_0x401f5f),{'children':_0x401f5f['children'][_0x22a30f(0x3b3)](function(_0x3b763c){const _0x4d444c=_0x22a30f;return typeof _0x3b763c[_0x4d444c(0x414)]['id']==_0x4d444c(0x2fe)&&_0x5969ec&&_0x5969ec[_0x4d444c(0x30e)](_0x3b763c['attrs']['id'])>-0x1?E(E({},_0x3b763c),{'attrs':E(E({},_0x3b763c['attrs']),{'id':_0x3b763c['attrs']['id']+_0x20ac58[_0x4d444c(0x3d6)]})}):_0x3b763c;})}):_0x401f5f;}function Pt(){const _0x47c8b7=_0x202b97;return Math[_0x47c8b7(0x248)]()['toString'](0x24)[_0x47c8b7(0x3c1)](0x2,0x8);}be[_0x202b97(0x35f)]=_0x202b97(0x3f5);var Nt={'tag':_0x202b97(0x1c3),'attrs':{'fill':'none','viewBox':_0x202b97(0x1db),'width':_0x202b97(0x1ec),'height':_0x202b97(0x1ec)},'children':[{'tag':'g','attrs':{'clipPath':_0x202b97(0x3db)},'children':[{'tag':'path','attrs':{'stroke':_0x202b97(0x263),'d':_0x202b97(0x284),'strokeLinecap':_0x202b97(0x437),'strokeLinejoin':_0x202b97(0x437),'strokeWidth':1.2}}]},{'tag':_0x202b97(0x37c),'attrs':{},'children':[{'tag':_0x202b97(0x374),'attrs':{'id':_0x202b97(0x314)},'children':[{'tag':'path','attrs':{'fill':_0x202b97(0x363),'d':_0x202b97(0x296)}}]}]}],'defIds':[_0x202b97(0x314)]},xe=P[_0x202b97(0x366)](function(_0x24d1c0,_0x52e44a){const _0x5683ad=_0x202b97;return P['createElement'](be,Object[_0x5683ad(0x1c1)]({},_0x24d1c0,{'id':'off-line-single','ref':_0x52e44a,'icon':Nt}));});xe[_0x202b97(0x35f)]=_0x202b97(0x267);var wt={'tag':'svg','attrs':{'fill':_0x202b97(0x3d9),'viewBox':_0x202b97(0x3fa),'width':_0x202b97(0x1ec),'height':_0x202b97(0x1ec)},'children':[{'tag':'g','attrs':{'clipPath':_0x202b97(0x42d)},'children':[{'tag':_0x202b97(0x36d),'attrs':{'stroke':_0x202b97(0x263),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x202b97(0x437),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x202b97(0x37c),'attrs':{},'children':[{'tag':_0x202b97(0x374),'attrs':{'id':_0x202b97(0x24a)},'children':[{'tag':_0x202b97(0x36d),'attrs':{'fill':'#fff','d':_0x202b97(0x296),'transform':_0x202b97(0x1b6)}}]}]}],'defIds':[_0x202b97(0x24a)]},je=P[_0x202b97(0x366)](function(_0x2472d0,_0x2fe7b8){const _0x2b021a=_0x202b97;return P['createElement'](be,Object['assign']({},_0x2472d0,{'id':_0x2b021a(0x27c),'ref':_0x2fe7b8,'icon':wt}));});je[_0x202b97(0x35f)]=_0x202b97(0x230);function ke(_0x1c0ef8){const _0x4f5157=_0x202b97;var _0x3c95a7,_0x6477f1,_0x5cdf33='';if(typeof _0x1c0ef8=='string'||typeof _0x1c0ef8==_0x4f5157(0x200))_0x5cdf33+=_0x1c0ef8;else{if(typeof _0x1c0ef8==_0x4f5157(0x3f0)){if(Array['isArray'](_0x1c0ef8)){var _0x63e53=_0x1c0ef8[_0x4f5157(0x25e)];for(_0x3c95a7=0x0;_0x3c95a7<_0x63e53;_0x3c95a7++)_0x1c0ef8[_0x3c95a7]&&(_0x6477f1=ke(_0x1c0ef8[_0x3c95a7]))&&(_0x5cdf33&&(_0x5cdf33+='\x20'),_0x5cdf33+=_0x6477f1);}else{for(_0x6477f1 in _0x1c0ef8)_0x1c0ef8[_0x6477f1]&&(_0x5cdf33&&(_0x5cdf33+='\x20'),_0x5cdf33+=_0x6477f1);}}}return _0x5cdf33;}function Me(){for(var _0x3f6d02,_0x3da122,_0x532683=0x0,_0x33e730='',_0x575488=arguments['length'];_0x532683<_0x575488;_0x532683++)(_0x3f6d02=arguments[_0x532683])&&(_0x3da122=ke(_0x3f6d02))&&(_0x33e730&&(_0x33e730+='\x20'),_0x33e730+=_0x3da122);return _0x33e730;}const Lt=_0x202b97(0x204),yt=_0x202b97(0x3e0),At=_0x202b97(0x3cc),$t='univer-online',xt=_0x202b97(0x1ba),H={'onlineStatusIcon':Lt,'onlineStatusTitle':yt,'onlineStatus':At,'online':$t,'offline':xt};function jt(_0x52aaa3){const _0x46005d=_0x202b97;switch(_0x52aaa3){case _['CollaborationStatus'][_0x46005d(0x40f)]:return _0x46005d(0x330);case _['CollaborationStatus'][_0x46005d(0x3ce)]:return'collabStatus.conflict';case _['CollaborationStatus'][_0x46005d(0x406)]:return _0x46005d(0x326);case _['CollaborationStatus'][_0x46005d(0x2e0)]:return'collabStatus.notCollab';case _[_0x46005d(0x417)][_0x46005d(0x31d)]:case _['CollaborationStatus'][_0x46005d(0x26a)]:return _0x46005d(0x2e8);case _[_0x46005d(0x417)][_0x46005d(0x2e2)]:case _[_0x46005d(0x417)][_0x46005d(0x233)]:return _0x46005d(0x1e0);}}function Be(_0x59d24a){const _0x299acd=_0x202b97,{status$:_0x523de5}=_0x59d24a,_0x40d038=T[_0x299acd(0x3a5)](_0x523de5,_[_0x299acd(0x417)]['NOT_COLLAB']),_0xc0a245=T[_0x299acd(0x283)](a[_0x299acd(0x435)]),_0x29e6fb=T['useDependency'](_[_0x299acd(0x229)]),_0x48d165=_0x40d038!==_['CollaborationStatus'][_0x299acd(0x40f)],_0x5c07db=_0xc0a245['t'](jt(_0x40d038)),_0xfba40b=Me(H['onlineStatus'],{[H[_0x299acd(0x362)]]:_0x48d165,[H[_0x299acd(0x34e)]]:!_0x48d165}),_0x354491=_0x48d165?w[_0x299acd(0x203)](je,{}):w[_0x299acd(0x203)](xe,{}),_0x1f7839=P[_0x299acd(0x2b8)](()=>{const _0x17d511=_0x299acd;_0x48d165||_0x29e6fb[_0x17d511(0x2dc)]();},[_0x48d165,_0x29e6fb]);function _0x35065a(){const _0x141e12=_0x299acd;return w[_0x141e12(0x43a)](_0x141e12(0x2e5),{'className':Me(_0xfba40b,_0x141e12(0x2f1)),'onClick':_0x1f7839,'children':[w['jsx']('div',{'className':H[_0x141e12(0x2c7)],'children':_0x354491}),w[_0x141e12(0x203)](_0x141e12(0x2e5),{'className':H[_0x141e12(0x1cb)],'children':_0x5c07db})]});}return _0x48d165?_0x35065a():w[_0x299acd(0x203)](M[_0x299acd(0x2d4)],{'title':_0xc0a245['t']('collab-client.tooltip.reconnect'),'children':_0x35065a()});}var kt=Object['getOwnPropertyDescriptor'],Bt=(_0x3bcf8c,_0x3f392c,_0x17afba,_0x1a6a96)=>{for(var _0x5b2746=_0x1a6a96>0x1?void 0x0:_0x1a6a96?kt(_0x3f392c,_0x17afba):_0x3f392c,_0x12b235=_0x3bcf8c['length']-0x1,_0x14fe92;_0x12b235>=0x0;_0x12b235--)(_0x14fe92=_0x3bcf8c[_0x12b235])&&(_0x5b2746=_0x14fe92(_0x5b2746)||_0x5b2746);return _0x5b2746;},V=(_0x382f5d,_0x4a22ae)=>(_0xdca158,_0x455457)=>_0x4a22ae(_0xdca158,_0x455457,_0x382f5d);exports[_0x202b97(0x2af)]=class extends a[_0x202b97(0x1fe)]{constructor(_0x6ad532,_0x6307d9,_0x2e5175,_0x4dfe54){const _0x5cf039=_0x202b97;super(),h(this,_0x5cf039(0x3e9),new d[(_0x5cf039(0x42e))](_[_0x5cf039(0x417)][_0x5cf039(0x2e0)])),(this['_univerInstanceService']=_0x6ad532,this['_injector']=_0x6307d9,this[_0x5cf039(0x333)]=_0x2e5175,this['_uiPartsService']=_0x4dfe54,this[_0x5cf039(0x380)](),this[_0x5cf039(0x2e3)]());}['_initStatusListener'](){const _0x505d3b=_0x202b97;this[_0x505d3b(0x2ee)](this[_0x505d3b(0x31c)]['focused$']['pipe'](d[_0x505d3b(0x1e8)](()=>{const _0x397bd0=_0x505d3b,_0x276088=this['_univerInstanceService'][_0x397bd0(0x335)]();return _0x276088?this[_0x397bd0(0x333)][_0x397bd0(0x40c)](_0x276088[_0x397bd0(0x295)]()):d['of'](null);}),d['switchMap'](_0x147723=>_0x147723?_0x147723[_0x505d3b(0x1eb)]:d['of'](_[_0x505d3b(0x417)][_0x505d3b(0x2e0)])))[_0x505d3b(0x3b6)](_0x28396c=>{const _0x77307a=_0x505d3b;this[_0x77307a(0x3e9)]['next'](_0x28396c);}));}[_0x202b97(0x380)](){const _0xb21f8=_0x202b97;this[_0xb21f8(0x2ee)](this[_0xb21f8(0x2b1)][_0xb21f8(0x1f9)](T[_0xb21f8(0x2d7)][_0xb21f8(0x27a)],()=>T['connectInjector'](Ht({'status$':this[_0xb21f8(0x3e9)][_0xb21f8(0x245)]()}),this[_0xb21f8(0x2ac)])));}},exports[_0x202b97(0x2af)]=Bt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x202b97(0x39c)])),V(0x2,a[_0x202b97(0x237)](_[_0x202b97(0x391)])),V(0x3,T['IUIPartsService'])],exports[_0x202b97(0x2af)]);function Ht(_0x19b8ef){const {status$:_0x570620}=_0x19b8ef;return function(){return w['jsx'](Be,{'status$':_0x570620});};}var Wt=Object[_0x202b97(0x2c6)],Ft=(_0x3c0819,_0x2956fa,_0x4b2ec8,_0x1f649b)=>{const _0x18af2f=_0x202b97;for(var _0x2d61df=_0x1f649b>0x1?void 0x0:_0x1f649b?Wt(_0x2956fa,_0x4b2ec8):_0x2956fa,_0x46eab3=_0x3c0819[_0x18af2f(0x25e)]-0x1,_0x1a5193;_0x46eab3>=0x0;_0x46eab3--)(_0x1a5193=_0x3c0819[_0x46eab3])&&(_0x2d61df=_0x1a5193(_0x2d61df)||_0x2d61df);return _0x2d61df;},A=(_0x2eda65,_0x56f159)=>(_0x1404fb,_0x44fdd8)=>_0x56f159(_0x1404fb,_0x44fdd8,_0x2eda65);let z=class extends a[_0x202b97(0x1fe)]{constructor(_0xee1d0c,_0x1fe3c4,_0x1f808e,_0x227e3e,_0x21ecd1,_0x1ece05){const _0x51e6e8=_0x202b97;super(),this[_0x51e6e8(0x1bc)]=_0xee1d0c,this[_0x51e6e8(0x35c)]=_0x1fe3c4,this[_0x51e6e8(0x2b4)]=_0x1f808e,this[_0x51e6e8(0x276)]=_0x227e3e,this[_0x51e6e8(0x26b)]=_0x21ecd1,this[_0x51e6e8(0x3e2)]=_0x1ece05,this[_0x51e6e8(0x1d2)](),this[_0x51e6e8(0x3fc)]();}[_0x202b97(0x1d2)](){const _0xf05ca3=_0x202b97;this[_0xf05ca3(0x2ee)](this[_0xf05ca3(0x1bc)]['registerBeforeClose'](()=>{const _0x238bd8=_0xf05ca3;if(this[_0x238bd8(0x35c)][_0x238bd8(0x3ac)]['size'])return this['_localeService']['t'](_0x238bd8(0x3bd));}));}['_initEvent'](){const _0x56e779=_0x202b97;this[_0x56e779(0x2ee)](this[_0x56e779(0x2b4)][_0x56e779(0x307)][_0x56e779(0x3b6)](_0x2fe3c6=>{const _0x3d526b=_0x56e779;_0x2fe3c6['id']===_[_0x3d526b(0x3e8)][_0x3d526b(0x3f4)]&&this[_0x3d526b(0x276)][_0x3d526b(0x3da)]({'type':M[_0x3d526b(0x2ff)][_0x3d526b(0x378)],'content':this[_0x3d526b(0x3e2)]['t'](_0x3d526b(0x415))}),_0x2fe3c6['id']===_[_0x3d526b(0x3e8)][_0x3d526b(0x334)]&&this[_0x3d526b(0x276)][_0x3d526b(0x3da)]({'type':M[_0x3d526b(0x2ff)][_0x3d526b(0x378)],'content':this[_0x3d526b(0x3e2)]['t'](_0x3d526b(0x3cd))}),_0x2fe3c6['id']===_[_0x3d526b(0x3e8)][_0x3d526b(0x20f)]&&this['_notificationService'][_0x3d526b(0x3da)]({'title':this[_0x3d526b(0x3e2)]['t'](_0x3d526b(0x3a9)),'content':this[_0x3d526b(0x3e2)]['t'](_0x3d526b(0x3ec)),'type':_0x3d526b(0x408),'duration':0x0}),_0x2fe3c6['id']===_[_0x3d526b(0x3e8)][_0x3d526b(0x3ce)]&&this[_0x3d526b(0x276)][_0x3d526b(0x3da)]({'type':M[_0x3d526b(0x2ff)][_0x3d526b(0x336)],'content':this[_0x3d526b(0x3e2)]['t'](_0x3d526b(0x3cd))+'('+_0x2fe3c6[_0x3d526b(0x2ef)]+')'}),_0x2fe3c6['id']===_[_0x3d526b(0x3e8)]['JOIN_ROOM_FAILED']&&this[_0x3d526b(0x276)][_0x3d526b(0x3da)]({'type':M[_0x3d526b(0x2ff)]['Warning'],'content':this[_0x3d526b(0x3e2)]['t'](_0x2fe3c6[_0x3d526b(0x2ef)]||'')}),_0x2fe3c6['id']===_[_0x3d526b(0x3e8)][_0x3d526b(0x214)]&&this[_0x3d526b(0x276)][_0x3d526b(0x3da)]({'type':M[_0x3d526b(0x2ff)][_0x3d526b(0x378)],'content':this['_localeService']['t']('session.will-retry')}),_0x2fe3c6['id']===_[_0x3d526b(0x3e8)][_0x3d526b(0x439)]&&this['_messageService'][_0x3d526b(0x3da)]({'type':M['MessageType'][_0x3d526b(0x336)],'content':this['_localeService']['t'](_0x3d526b(0x1c0))}),_0x2fe3c6['id']===_[_0x3d526b(0x3e8)][_0x3d526b(0x299)]&&this[_0x3d526b(0x276)][_0x3d526b(0x3da)]({'type':M[_0x3d526b(0x2ff)][_0x3d526b(0x336)],'content':this[_0x3d526b(0x3e2)]['t'](_0x3d526b(0x356))});}));}};z=Ft([A(0x0,T[_0x202b97(0x425)]),A(0x1,_[_0x202b97(0x1de)]),A(0x2,a[_0x202b97(0x237)](_[_0x202b97(0x1c7)])),A(0x3,T[_0x202b97(0x3aa)]),A(0x4,T[_0x202b97(0x265)]),A(0x5,a[_0x202b97(0x237)](a[_0x202b97(0x435)]))],z);const Yt='collaboration-client-ui.config',Pe={},Ee=a[_0x202b97(0x249)](_0x202b97(0x345));var Xt=Object[_0x202b97(0x2c6)],Vt=(_0x589104,_0x50e0a8,_0x51efd4,_0x425159)=>{const _0x4497f3=_0x202b97;for(var _0x348db5=_0x425159>0x1?void 0x0:_0x425159?Xt(_0x50e0a8,_0x51efd4):_0x50e0a8,_0x2cbac0=_0x589104[_0x4497f3(0x25e)]-0x1,_0x24d56c;_0x2cbac0>=0x0;_0x2cbac0--)(_0x24d56c=_0x589104[_0x2cbac0])&&(_0x348db5=_0x24d56c(_0x348db5)||_0x348db5);return _0x348db5;},W=(_0x492246,_0x25e60c)=>(_0x4604da,_0x56cbde)=>_0x25e60c(_0x4604da,_0x56cbde,_0x492246);exports[_0x202b97(0x1cc)]=class extends a[_0x202b97(0x2fb)]{constructor(_0x1ef4a1,_0xa217ce,_0x2bfd2d,_0x226752,_0x130c67){const _0x217cd1=_0x202b97;super(),this[_0x217cd1(0x1f7)]=_0x1ef4a1,this[_0x217cd1(0x3a2)]=_0xa217ce,this[_0x217cd1(0x317)]=_0x2bfd2d,this[_0x217cd1(0x273)]=_0x226752,_0x130c67?_0x130c67==null||_0x130c67[_0x217cd1(0x341)]()[_0x217cd1(0x20a)](()=>this[_0x217cd1(0x387)]()):(this['_logService']['debug'](_0x217cd1(0x201),_0x217cd1(0x2c5)),this[_0x217cd1(0x387)]());}async[_0x202b97(0x387)](){const _0x2921e3=_0x202b97,_0x1d53a2=this[_0x2921e3(0x1f7)]['getParam'](_0x2921e3(0x1ff)),_0x16ad7a=this[_0x2921e3(0x1f7)]['getParam'](_0x2921e3(0x207)),_0x5e0751=this[_0x2921e3(0x1f7)][_0x2921e3(0x22a)](_0x2921e3(0x23c));if(!_0x1d53a2||!_0x16ad7a){this['_logService'][_0x2921e3(0x2b7)](_0x2921e3(0x201),_0x2921e3(0x2e4));return;}const _0x44829e=await this[_0x2921e3(0x273)][_0x2921e3(0x30b)](_0x1d53a2,Number(_0x16ad7a),_0x5e0751);_0x44829e&&_0x44829e instanceof a[_0x2921e3(0x3c3)]&&this[_0x2921e3(0x360)](_0x44829e);}async['_setupSubUnitSync'](_0x272e0d){const _0x2bf2f9=_0x202b97;await this[_0x2bf2f9(0x208)](_0x272e0d),_0x272e0d[_0x2bf2f9(0x25f)][_0x2bf2f9(0x219)](d[_0x2bf2f9(0x33e)](this[_0x2bf2f9(0x3c5)]))[_0x2bf2f9(0x3b6)](_0x1658e4=>{const _0xc526ef=_0x2bf2f9;_0x1658e4&&this[_0xc526ef(0x30d)](_0x1658e4);}),this[_0x2bf2f9(0x1f7)]['urlChange$'][_0x2bf2f9(0x219)](d['takeUntil'](this['dispose$']))[_0x2bf2f9(0x3b6)](()=>this[_0x2bf2f9(0x208)](_0x272e0d));}[_0x202b97(0x30d)](_0x25adb8,_0x55d437=!0x1){const _0x2625f7=_0x202b97,_0x211480=this['_urlService']['getParam'](_0x2625f7(0x23c));_0x25adb8[_0x2625f7(0x3a4)]()!==_0x211480&&this[_0x2625f7(0x1f7)]['setParam'](_0x2625f7(0x23c),_0x25adb8['getSheetId'](),_0x55d437);}async[_0x202b97(0x208)](_0x29b87f){const _0x5f35db=_0x202b97;var _0x19f4b1;const _0x340167=this[_0x5f35db(0x1f7)][_0x5f35db(0x22a)](_0x5f35db(0x23c));if(!_0x340167||!_0x29b87f[_0x5f35db(0x274)](_0x340167)){const _0x2c3077=_0x29b87f[_0x5f35db(0x2f9)]()[0x0],_0x1ec5ae=_0x29b87f[_0x5f35db(0x274)](_0x2c3077);if(!_0x1ec5ae)return;this[_0x5f35db(0x30d)](_0x1ec5ae,!0x0),await this[_0x5f35db(0x317)][_0x5f35db(0x337)](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x29b87f[_0x5f35db(0x295)](),'subUnitId':_0x2c3077});return;}((_0x19f4b1=_0x29b87f[_0x5f35db(0x305)]())==null?void 0x0:_0x19f4b1[_0x5f35db(0x3a4)]())!==_0x340167&&await this['_commandService']['executeCommand'](I[_0x5f35db(0x1fa)]['id'],{'unitId':_0x29b87f['getUnitId'](),'subUnitId':_0x340167});}},exports['CollaborationDataLoaderController']=Vt([W(0x0,Ee),W(0x1,a[_0x202b97(0x402)]),W(0x2,a['ICommandService']),W(0x3,a[_0x202b97(0x237)](_[_0x202b97(0x385)])),W(0x4,a[_0x202b97(0x2a2)](Je['IRemoteInstanceService']))],exports[_0x202b97(0x1cc)]);var Gt=Object[_0x202b97(0x2c6)],qt=(_0x2c91e6,_0x739dfa,_0x2f9b38,_0x5405da)=>{const _0xd19eb7=_0x202b97;for(var _0x3eb6a2=_0x5405da>0x1?void 0x0:_0x5405da?Gt(_0x739dfa,_0x2f9b38):_0x739dfa,_0x47930a=_0x2c91e6[_0xd19eb7(0x25e)]-0x1,_0x309e0a;_0x47930a>=0x0;_0x47930a--)(_0x309e0a=_0x2c91e6[_0x47930a])&&(_0x3eb6a2=_0x309e0a(_0x3eb6a2)||_0x3eb6a2);return _0x3eb6a2;},le=(_0x3173ac,_0x2bc240)=>(_0x5e15f5,_0x5f1ae9)=>_0x2bc240(_0x5e15f5,_0x5f1ae9,_0x3173ac);let J=class{constructor(_0x36a947,_0x52ba2a,_0xa131e){const _0x534642=_0x202b97;this[_0x534642(0x2ac)]=_0x36a947,this[_0x534642(0x1bf)]=_0x52ba2a,this[_0x534642(0x2d8)]=_0xa131e;}[_0x202b97(0x2df)](_0x115dbf){const _0x1218d1=_0x202b97;this[_0x1218d1(0x436)](_0x115dbf),this[_0x1218d1(0x419)](_0x115dbf);}[_0x202b97(0x43b)](_0x137784){const _0x2d2474=_0x202b97,{unitID:_0xa8e5e0}=_0x137784,_0xb035a5=this['_renderManagerService'][_0x2d2474(0x25a)](_0xa8e5e0)[_0x2d2474(0x235)](b[_0x2d2474(0x37a)]),{redoCache:_0x322c9b}=_0xb035a5['getUndoRedoMutationParamsCache']();if(_0x322c9b[_0x2d2474(0x25e)]===0x0)return _0x137784;let _0x28d8e4=a[_0x2d2474(0x36a)][_0x2d2474(0x2fd)](_0x137784[_0x2d2474(0x3a7)][0x0]);for(let _0x16d317=0x0;_0x16d317<_0x322c9b[_0x2d2474(0x25e)];_0x16d317++){const _0x57c89d={'id':_0x2d2474(0x239),'params':{..._0x322c9b[_0x16d317]}},_0x120055=this['_transformService']['transformMutation'](_0x28d8e4,_0x57c89d,!0x1);if(m[_0x2d2474(0x272)](_0x120055))throw _0x120055[_0x2d2474(0x408)];_0x28d8e4=_0x120055[_0x2d2474(0x386)];}return{...a[_0x2d2474(0x36a)]['deepClone'](_0x137784),'mutations':[_0x28d8e4]};}['_transformUndoRedoStack'](_0x5a04bb){const _0x165482=_0x202b97,{unitID:_0x1cf5ef}=_0x5a04bb,_0x16b87a=this[_0x165482(0x2d8)]['getRenderById'](_0x1cf5ef)['with'](b[_0x165482(0x37a)]),{undoCache:_0x3391a7,redoCache:_0x46ca44}=_0x16b87a['getUndoRedoMutationParamsCache']();if(_0x3391a7[_0x165482(0x25e)]===0x0||_0x46ca44[_0x165482(0x25e)]===0x0)return;const _0x3a5233=[],_0x1181c1=[];let _0x42bdba=a[_0x165482(0x36a)][_0x165482(0x2fd)](_0x5a04bb[_0x165482(0x3a7)][0x0]),_0x1fb777=a[_0x165482(0x36a)]['deepClone'](_0x5a04bb['mutations'][0x0]);for(let _0x405a82=_0x3391a7['length']-0x1;_0x405a82>=0x0;_0x405a82--){const _0x1bea77={'id':_0x165482(0x239),'params':{..._0x3391a7[_0x405a82]}},_0x26e5d1={'id':_0x165482(0x239),'params':{..._0x46ca44[_0x405a82]}},_0x2c40ce=this['_transformService'][_0x165482(0x2cf)](_0x42bdba,_0x1bea77,!0x1),_0x4fc89e=this[_0x165482(0x1bf)][_0x165482(0x2cf)](_0x1fb777,_0x26e5d1,!0x1);if(m[_0x165482(0x272)](_0x2c40ce))throw _0x2c40ce[_0x165482(0x408)];if(m['isTransformMutationFailure'](_0x4fc89e))throw _0x4fc89e[_0x165482(0x408)];_0x3a5233[_0x165482(0x28c)](_0x2c40ce[_0x165482(0x38c)]['params']),_0x1181c1[_0x165482(0x28c)](_0x4fc89e[_0x165482(0x38c)][_0x165482(0x287)]),_0x42bdba=_0x2c40ce[_0x165482(0x386)],_0x1fb777=_0x4fc89e[_0x165482(0x386)];}_0x16b87a[_0x165482(0x2d3)]({'undoCache':_0x3a5233,'redoCache':_0x1181c1});}[_0x202b97(0x419)](_0x465030){const _0x1b2073=_0x202b97,{unitID:_0x45406e}=_0x465030,_0x493d52=this[_0x1b2073(0x2d8)]['getRenderById'](_0x45406e)[_0x1b2073(0x235)](b[_0x1b2073(0x37a)]),_0x1d10bd=_0x493d52[_0x1b2073(0x42a)]();if(_0x1d10bd==null)return;const _0x307a70=[{'id':_0x1b2073(0x239),'params':{'unitId':_0x465030[_0x1b2073(0x2c4)],'actions':null,'textRanges':[_0x1d10bd]}}],_0x2a7065=this[_0x1b2073(0x1bf)][_0x1b2073(0x394)](_0x465030,_0x307a70);if(!m['isTransformMutationsWithChangesetSuccess'](_0x2a7065))throw _0x2a7065[_0x1b2073(0x408)];const _0x4cfbcc=_0x2a7065[_0x1b2073(0x38c)][0x0][_0x1b2073(0x287)][_0x1b2073(0x23f)];Array[_0x1b2073(0x23b)](_0x4cfbcc)&&_0x4cfbcc[_0x1b2073(0x25e)]&&_0x493d52[_0x1b2073(0x1d6)](_0x4cfbcc[0x0]);}};J=qt([le(0x0,a[_0x202b97(0x237)](a[_0x202b97(0x39c)])),le(0x1,m[_0x202b97(0x3a6)]),le(0x2,p[_0x202b97(0x364)])],J);var Kt=Object[_0x202b97(0x2c6)],zt=(_0x4a8796,_0x2a7b26,_0x431271,_0xeaaa6a)=>{const _0x34967d=_0x202b97;for(var _0x5b00c8=_0xeaaa6a>0x1?void 0x0:_0xeaaa6a?Kt(_0x2a7b26,_0x431271):_0x2a7b26,_0x5bd5ba=_0x4a8796[_0x34967d(0x25e)]-0x1,_0x2ad64b;_0x5bd5ba>=0x0;_0x5bd5ba--)(_0x2ad64b=_0x4a8796[_0x5bd5ba])&&(_0x5b00c8=_0x2ad64b(_0x5b00c8)||_0x5b00c8);return _0x5b00c8;},he=(_0x3add9d,_0x35e97b)=>(_0x328a8c,_0x42e1bc)=>_0x35e97b(_0x328a8c,_0x42e1bc,_0x3add9d);let Z=class{constructor(_0x883b6b,_0x4996fe,_0xc9562){const _0x1d47bd=_0x202b97;this[_0x1d47bd(0x2ac)]=_0x883b6b,this[_0x1d47bd(0x1bf)]=_0x4996fe,this[_0x1d47bd(0x28a)]=_0xc9562;}[_0x202b97(0x308)](_0x356940){const _0x256356=_0x202b97;this[_0x256356(0x1dd)](_0x356940);}[_0x202b97(0x43b)](_0x506e95){const _0x4778fc=_0x202b97,{unitID:_0x4ff3f4}=_0x506e95,{collaboration:_0x354502}=this[_0x4778fc(0x28a)][_0x4778fc(0x36c)](_0x4ff3f4);if(_0x354502['length']===0x0)return _0x506e95;let _0x309167=a[_0x4778fc(0x36a)]['deepClone'](_0x506e95['mutations'][0x0]);for(let _0x77e3e6=0x0;_0x77e3e6<_0x354502[_0x4778fc(0x25e)];_0x77e3e6++){const _0x5b6103={'id':_0x4778fc(0x239),'params':{'unitId':_0x354502[_0x77e3e6][_0x4778fc(0x3ae)],..._0x354502[_0x77e3e6][_0x4778fc(0x2f7)]}},_0x1908af=this[_0x4778fc(0x1bf)][_0x4778fc(0x2cf)](_0x309167,_0x5b6103,!0x1);if(m[_0x4778fc(0x272)](_0x1908af))throw _0x1908af['error'];_0x309167=_0x1908af[_0x4778fc(0x386)];}return{...a[_0x4778fc(0x36a)][_0x4778fc(0x2fd)](_0x506e95),'mutations':[_0x309167]};}[_0x202b97(0x1dd)](_0x7cf122){const _0x3fbe89=_0x202b97,{unitID:_0x4175a7}=_0x7cf122,{history:_0x57ba4f,collaboration:_0x53bde0}=this[_0x3fbe89(0x28a)][_0x3fbe89(0x36c)](_0x4175a7);if(_0x57ba4f[_0x3fbe89(0x25e)]===0x0&&_0x53bde0[_0x3fbe89(0x25e)]===0x0)return;const _0x2516f2=[],_0x42a31f=[];let _0x3bcb60=a[_0x3fbe89(0x36a)]['deepClone'](_0x7cf122['mutations'][0x0]),_0x1cb97c=a[_0x3fbe89(0x36a)][_0x3fbe89(0x2fd)](_0x7cf122[_0x3fbe89(0x3a7)][0x0]);for(let _0xc726d5=_0x57ba4f[_0x3fbe89(0x25e)]-0x1;_0xc726d5>=0x0;_0xc726d5--){const _0x167d40={'id':_0x3fbe89(0x239),'params':{'unitId':_0x57ba4f[_0xc726d5][_0x3fbe89(0x3ae)],..._0x57ba4f[_0xc726d5][_0x3fbe89(0x1fc)]}},_0x5bbcd1={'id':_0x3fbe89(0x239),'params':{'unitId':_0x57ba4f[_0xc726d5][_0x3fbe89(0x3ae)],..._0x57ba4f[_0xc726d5]['redoState']}},_0x3bb025=this['_transformService'][_0x3fbe89(0x2cf)](_0x3bcb60,_0x167d40,!0x1),_0x1d3f16=this[_0x3fbe89(0x1bf)]['transformMutation'](_0x1cb97c,_0x5bbcd1,!0x1);if(m[_0x3fbe89(0x272)](_0x3bb025))throw _0x3bb025[_0x3fbe89(0x408)];if(m[_0x3fbe89(0x272)](_0x1d3f16))throw _0x1d3f16[_0x3fbe89(0x408)];_0x2516f2[_0x3fbe89(0x28c)]({..._0x57ba4f[_0xc726d5],'undoState':_0x3bb025[_0x3fbe89(0x38c)]['params'],'redoState':_0x1d3f16['m2Prime'][_0x3fbe89(0x287)]}),_0x3bcb60=_0x3bb025[_0x3fbe89(0x386)],_0x1cb97c=_0x1d3f16[_0x3fbe89(0x386)];}_0x3bcb60=a['Tools'][_0x3fbe89(0x2fd)](_0x7cf122['mutations'][0x0]),_0x1cb97c=a[_0x3fbe89(0x36a)][_0x3fbe89(0x2fd)](_0x7cf122[_0x3fbe89(0x3a7)][0x0]);for(let _0x2b46f5=_0x53bde0['length']-0x1;_0x2b46f5>=0x0;_0x2b46f5--){const _0x1c1411={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x53bde0[_0x2b46f5][_0x3fbe89(0x3ae)],..._0x53bde0[_0x2b46f5]['undoState']}},_0x4f0d31={'id':_0x3fbe89(0x239),'params':{'unitId':_0x53bde0[_0x2b46f5][_0x3fbe89(0x3ae)],..._0x53bde0[_0x2b46f5]['redoState']}},_0x1720d2=this['_transformService'][_0x3fbe89(0x2cf)](_0x3bcb60,_0x1c1411,!0x1),_0x3aa021=this[_0x3fbe89(0x1bf)]['transformMutation'](_0x1cb97c,_0x4f0d31,!0x1);if(m['isTransformMutationFailure'](_0x1720d2))throw _0x1720d2['error'];if(m[_0x3fbe89(0x272)](_0x3aa021))throw _0x3aa021[_0x3fbe89(0x408)];_0x42a31f['unshift']({..._0x53bde0[_0x2b46f5],'undoState':_0x1720d2['m2Prime']['params'],'redoState':_0x3aa021[_0x3fbe89(0x38c)][_0x3fbe89(0x287)]}),_0x3bcb60=_0x1720d2[_0x3fbe89(0x386)],_0x1cb97c=_0x3aa021['m1Prime'];}this[_0x3fbe89(0x28a)][_0x3fbe89(0x1b9)](_0x4175a7,{'history':_0x2516f2,'collaboration':_0x42a31f});}};Z=zt([he(0x0,a['Inject'](a[_0x202b97(0x39c)])),he(0x1,m[_0x202b97(0x3a6)]),he(0x2,a[_0x202b97(0x237)](b[_0x202b97(0x349)]))],Z);var Jt=Object[_0x202b97(0x2c6)],Zt=(_0x532079,_0x30de78,_0x2edd8b,_0x12cb41)=>{const _0x542dea=_0x202b97;for(var _0x1e9543=_0x12cb41>0x1?void 0x0:_0x12cb41?Jt(_0x30de78,_0x2edd8b):_0x30de78,_0x518139=_0x532079[_0x542dea(0x25e)]-0x1,_0x54f50e;_0x518139>=0x0;_0x518139--)(_0x54f50e=_0x532079[_0x518139])&&(_0x1e9543=_0x54f50e(_0x1e9543)||_0x1e9543);return _0x1e9543;},Ne=(_0x14e24c,_0x4ae0f5)=>(_0x16d758,_0xd8bb5f)=>_0x4ae0f5(_0x16d758,_0xd8bb5f,_0x14e24c);let Q=class{constructor(_0x1333a8,_0x382f54){const _0x15fd64=_0x202b97;this[_0x15fd64(0x2ac)]=_0x1333a8,this[_0x15fd64(0x1bf)]=_0x382f54;}[_0x202b97(0x426)](_0x150a5e){const _0x85be72=_0x202b97;var _0x3a44a6;const _0x2898c8=this['_injector'][_0x85be72(0x24b)](Y['DocSelectionManagerService']),_0x124321=(_0x3a44a6=_0x2898c8[_0x85be72(0x278)]())!=null?_0x3a44a6:[];if(_0x124321[_0x85be72(0x25e)]===0x0)return;const _0x4e0d0e=_0x150a5e[_0x85be72(0x2c4)],_0x1a9c1a=[{'id':_0x85be72(0x239),'params':{'unitId':_0x4e0d0e,'actions':null,'textRanges':_0x124321}}],_0x39f08a=this['_transformService'][_0x85be72(0x394)](_0x150a5e,_0x1a9c1a);if(!m[_0x85be72(0x40d)](_0x39f08a))throw _0x39f08a[_0x85be72(0x408)];const _0x1e8991=_0x39f08a['m2Prime'][0x0][_0x85be72(0x287)][_0x85be72(0x23f)];Array['isArray'](_0x1e8991)&&_0x1e8991[_0x85be72(0x25e)]&&_0x2898c8[_0x85be72(0x2a5)](_0x1e8991,{'unitId':_0x4e0d0e,'subUnitId':_0x4e0d0e},!0x1);}};Q=Zt([Ne(0x0,a[_0x202b97(0x237)](a['Injector'])),Ne(0x1,m[_0x202b97(0x3a6)])],Q);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x264efd,_0x5bb9ba,_0x42a0f0,_0x1c4fb4)=>{const _0x505d6d=_0x202b97;for(var _0x340dab=_0x1c4fb4>0x1?void 0x0:_0x1c4fb4?Qt(_0x5bb9ba,_0x42a0f0):_0x5bb9ba,_0x40a15c=_0x264efd[_0x505d6d(0x25e)]-0x1,_0x213136;_0x40a15c>=0x0;_0x40a15c--)(_0x213136=_0x264efd[_0x40a15c])&&(_0x340dab=_0x213136(_0x340dab)||_0x340dab);return _0x340dab;},U=(_0x384ea1,_0x15a4d4)=>(_0xe5ba26,_0x1e1d52)=>_0x15a4d4(_0xe5ba26,_0x1e1d52,_0x384ea1);let ee=class extends a[_0x202b97(0x1fe)]{constructor(_0x55035c,_0x44f7c0,_0x33076a,_0x14b280,_0xbf290c,_0x5f1fa3,_0x4b4ac5,_0x24f8f1){const _0x1d7ac9=_0x202b97;super(),h(this,_0x1d7ac9(0x3e9),new d[(_0x1d7ac9(0x42e))](_[_0x1d7ac9(0x417)]['NOT_COLLAB'])),(this[_0x1d7ac9(0x28a)]=_0x55035c,this['_collaborationController']=_0x44f7c0,this['_docTransformIMECacheService']=_0x33076a,this[_0x1d7ac9(0x310)]=_0x14b280,this['_docTransformSelectionsService']=_0xbf290c,this[_0x1d7ac9(0x281)]=_0x5f1fa3,this[_0x1d7ac9(0x276)]=_0x4b4ac5,this[_0x1d7ac9(0x3e2)]=_0x24f8f1,this[_0x1d7ac9(0x40b)]());}[_0x202b97(0x40b)](){const _0x49ca39=_0x202b97;this['disposeWithMe'](this['_collaborationController']['entityInit$'][_0x49ca39(0x3b6)](_0x578c0c=>{const _0x4d136f=_0x49ca39,_0x557f5f=this[_0x4d136f(0x28a)][_0x4d136f(0x1e9)][_0x4d136f(0x3b6)](_0x2dc30f=>{const _0x37e553=_0x4d136f;if(_0x2dc30f==null)return;const {unitId:_0x3db8d7,redoState:_0x2b7310,commandId:_0x206b59}=_0x2dc30f;if(_0x3db8d7!==_0x578c0c['unitID'])return;const _0x108878={'id':_0x206b59,'type':a[_0x37e553(0x347)][_0x37e553(0x383)],'params':{'unitId':_0x3db8d7,'actions':_0x2b7310[_0x37e553(0x25c)],'textRanges':null}};_0x578c0c[_0x37e553(0x244)](_0x108878);});if(_0x578c0c['disposeWithMe'](_0x557f5f),_0x578c0c instanceof _[_0x4d136f(0x365)]){const _0x1e9a6b={'onTransformIME':_0x8f116=>this[_0x4d136f(0x3c8)][_0x4d136f(0x2df)](_0x8f116),'onTransformState':_0x91110c=>this[_0x4d136f(0x310)][_0x4d136f(0x308)](_0x91110c),'onTransformSelections':_0x1b3319=>this[_0x4d136f(0x1c5)]['transformSelections'](_0x1b3319),'onSyncEditingCollabCursor':_0x32bb24=>this[_0x4d136f(0x281)][_0x4d136f(0x409)](_0x32bb24),'onTransformRemoteChangesetByIMECache':_0x248878=>this[_0x4d136f(0x3c8)][_0x4d136f(0x43b)](_0x248878),'onTransformRemoteChangesetByStateCache':_0x24c2d1=>this[_0x4d136f(0x310)][_0x4d136f(0x43b)](_0x24c2d1)};_0x578c0c[_0x4d136f(0x24f)](_0x1e9a6b);}}));}};ee=es([U(0x0,a[_0x202b97(0x237)](b[_0x202b97(0x349)])),U(0x1,a[_0x202b97(0x237)](_[_0x202b97(0x391)])),U(0x2,a['Inject'](J)),U(0x3,a[_0x202b97(0x237)](Z)),U(0x4,a[_0x202b97(0x237)](Q)),U(0x5,a[_0x202b97(0x237)](pe)),U(0x6,T['IMessageService']),U(0x7,a[_0x202b97(0x237)](a[_0x202b97(0x435)]))],ee);var ts=Object[_0x202b97(0x2c6)],ss=(_0x192802,_0x5d0b67,_0x2d308a,_0x1e613d)=>{for(var _0x123e89=_0x1e613d>0x1?void 0x0:_0x1e613d?ts(_0x5d0b67,_0x2d308a):_0x5d0b67,_0x576827=_0x192802['length']-0x1,_0x1c9568;_0x576827>=0x0;_0x576827--)(_0x1c9568=_0x192802[_0x576827])&&(_0x123e89=_0x1c9568(_0x123e89)||_0x123e89);return _0x123e89;},ue=(_0x16ada6,_0x4304b5)=>(_0x3772b0,_0xe35c8f)=>_0x4304b5(_0x3772b0,_0xe35c8f,_0x16ada6);let me=class extends a[_0x202b97(0x1fe)]{constructor(_0x407837,_0x474368,_0x394546){const _0x24eb1b=_0x202b97;super(),h(this,_0x24eb1b(0x264),new Map()),h(this,_0x24eb1b(0x2ec),new Map()),h(this,_0x24eb1b(0x212),!0x1),(this[_0x24eb1b(0x29d)]=_0x407837,this[_0x24eb1b(0x1fb)]=_0x474368,this[_0x24eb1b(0x29f)]=_0x394546);}[_0x202b97(0x2b2)](){const _0x9f4d19=_0x202b97;this[_0x9f4d19(0x212)]=!0x0;}[_0x202b97(0x339)](){const _0x44e045=_0x202b97;this[_0x44e045(0x212)]=!0x1;}get[_0x202b97(0x3ac)](){return this['_saveTaskMap'];}['dispose'](){const _0x27a54e=_0x202b97;this[_0x27a54e(0x344)]()[_0x27a54e(0x20a)](()=>super[_0x27a54e(0x1e6)]());}async[_0x202b97(0x38b)](_0x10e8f9){const _0x3a44d3=_0x202b97;return this[_0x3a44d3(0x212)]?null:this[_0x3a44d3(0x1fb)][_0x3a44d3(0x2cd)](_[_0x3a44d3(0x3f2)](_0x10e8f9));}async[_0x202b97(0x218)](_0x3f6488,_0xc7da44){const _0x8325be=_0x202b97;return!!this['_localStorageService'][_0x8325be(0x3b8)](_0x3f6488,_0xc7da44);}[_0x202b97(0x338)](_0x26beb3,_0x163d47,_0xdae4e5,_0x43c746){const _0x197b1c=_0x202b97,_0x2286d2=this[_0x197b1c(0x29f)][_0x197b1c(0x2b5)](_0x26beb3);this[_0x197b1c(0x264)][_0x197b1c(0x21a)](_0x26beb3,{'unitID':_0x26beb3,'type':_0x163d47,'awaitingChangeset':_0xdae4e5,'mutations':_0x43c746,'rev':_0x2286d2}),this[_0x197b1c(0x2ec)][_0x197b1c(0x1d4)](_0x26beb3)||this[_0x197b1c(0x38a)](_0x26beb3);}[_0x202b97(0x38a)](_0x3a32c5){const _0x14d415=_0x202b97,_0x4b396e=this[_0x14d415(0x27b)]();_0x4b396e===0x0?this[_0x14d415(0x1b5)](_0x3a32c5):this['_saveTaskMap']['set'](_0x3a32c5,setTimeout(()=>this[_0x14d415(0x1b5)](_0x3a32c5),_0x4b396e));}[_0x202b97(0x27b)](){const _0x41e953=_0x202b97;var _0x13922a;return(_0x13922a=this[_0x41e953(0x29d)]['getConfig'](_[_0x41e953(0x269)]))!=null?_0x13922a:_[_0x41e953(0x2d6)];}['_saveCache'](_0x3648a5){const _0x2cf7bf=_0x202b97,_0x4fea89=this[_0x2cf7bf(0x2ec)]['get'](_0x3648a5);return _0x4fea89!==void 0x0&&window[_0x2cf7bf(0x1d1)](_0x4fea89),this[_0x2cf7bf(0x1fb)][_0x2cf7bf(0x3b8)](_[_0x2cf7bf(0x3f2)](_0x3648a5),this['_cachedData'][_0x2cf7bf(0x24b)](_0x3648a5))[_0x2cf7bf(0x20a)](()=>this[_0x2cf7bf(0x2ec)][_0x2cf7bf(0x2c3)](_0x3648a5));}async['exhaustSavingTask'](){const _0x3c5bf4=_0x202b97,_0x1db944=[];this[_0x3c5bf4(0x2ec)][_0x3c5bf4(0x3ea)]((_0x13811d,_0x56a89c)=>{const _0x1ab589=_0x3c5bf4;window[_0x1ab589(0x1d1)](_0x13811d),_0x1db944[_0x1ab589(0x37e)](this[_0x1ab589(0x1b5)](_0x56a89c)[_0x1ab589(0x20a)](()=>{const _0x4c8165=_0x1ab589;this[_0x4c8165(0x2ec)][_0x4c8165(0x2c3)](_0x56a89c);}));}),await Promise[_0x3c5bf4(0x247)](_0x1db944);}};me=ss([ue(0x0,a['IConfigService']),ue(0x1,a[_0x202b97(0x359)]),ue(0x2,a[_0x202b97(0x237)](m[_0x202b97(0x2d5)]))],me);class He extends a[_0x202b97(0x2fb)]{constructor(){const _0x385588=_0x202b97;super(),h(this,_0x385588(0x231)),this['urlChange$']=d[_0x385588(0x331)](window,_0x385588(0x21f))[_0x385588(0x219)](d[_0x385588(0x33e)](this[_0x385588(0x3c5)]),d['shareReplay'](0x1),d[_0x385588(0x41c)](void 0x0));}[_0x202b97(0x3d3)](_0x5735df,_0x3c3fc9,_0x273383=!0x1){const _0x12b4ed=_0x202b97,_0x47020f=new URL(window[_0x12b4ed(0x220)][_0x12b4ed(0x382)]);_0x47020f[_0x12b4ed(0x1f0)]['set'](_0x5735df,_0x3c3fc9),_0x273383?window[_0x12b4ed(0x427)][_0x12b4ed(0x39f)]('','',_0x47020f[_0x12b4ed(0x3b5)]()):window['history'][_0x12b4ed(0x3bb)]('','',_0x47020f['toString']());}[_0x202b97(0x243)](_0x5ad384,_0x29ac6d=!0x1){const _0x38ec28=_0x202b97,_0x567a32=new URL(window[_0x38ec28(0x220)][_0x38ec28(0x382)]);_0x567a32[_0x38ec28(0x1f0)][_0x38ec28(0x2c3)](_0x5ad384),_0x29ac6d?window[_0x38ec28(0x427)][_0x38ec28(0x39f)]('','',_0x567a32['toString']()):window[_0x38ec28(0x427)][_0x38ec28(0x3bb)]('','',_0x567a32['toString']());}[_0x202b97(0x22a)](_0x3530d3){const _0x1dd9b8=_0x202b97;var _0x59bdff;return(_0x59bdff=new URL(window[_0x1dd9b8(0x220)][_0x1dd9b8(0x382)])['searchParams'][_0x1dd9b8(0x24b)](_0x3530d3))!=null?_0x59bdff:void 0x0;}}var ns=Object[_0x202b97(0x24e)],is=Object[_0x202b97(0x2c6)],rs=(_0x4913e8,_0xcb4b0d,_0x57b160)=>_0xcb4b0d in _0x4913e8?ns(_0x4913e8,_0xcb4b0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57b160}):_0x4913e8[_0xcb4b0d]=_0x57b160,os=(_0x50c180,_0x384ae0,_0x22bed9,_0x430175)=>{for(var _0x10e486=_0x430175>0x1?void 0x0:_0x430175?is(_0x384ae0,_0x22bed9):_0x384ae0,_0x57c403=_0x50c180['length']-0x1,_0x1bc00f;_0x57c403>=0x0;_0x57c403--)(_0x1bc00f=_0x50c180[_0x57c403])&&(_0x10e486=_0x1bc00f(_0x10e486)||_0x10e486);return _0x10e486;},_e=(_0x13e36c,_0x1eebba)=>(_0x434f34,_0x2661b8)=>_0x1eebba(_0x434f34,_0x2661b8,_0x13e36c),as=(_0x11e829,_0x40f459,_0x30b957)=>rs(_0x11e829,_0x40f459+'',_0x30b957);const cs=_0x202b97(0x1da);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x202b97(0x377)]{constructor(_0x91a518=Pe,_0x50f8f3,_0x2fa925,_0x3079db){const _0x3d56bb=_0x202b97;super(),this[_0x3d56bb(0x28b)]=_0x91a518,this[_0x3d56bb(0x2d8)]=_0x50f8f3,this[_0x3d56bb(0x2ac)]=_0x2fa925,this[_0x3d56bb(0x29d)]=_0x3079db;const {..._0x3e479d}=a[_0x3d56bb(0x37d)]({},Pe,this[_0x3d56bb(0x28b)]);this[_0x3d56bb(0x29d)][_0x3d56bb(0x202)](Yt,_0x3e479d);}['onStarting'](){const _0x480a85=_0x202b97;this[_0x480a85(0x401)](),this['_initDependencies']();}[_0x202b97(0x2ed)](){const _0x3e28c4=_0x202b97;this[_0x3e28c4(0x3c4)]();}[_0x202b97(0x401)](){const _0x14c4aa=_0x202b97;var _0x38acef;const _0x5c772a=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':He}],[q[_0x14c4aa(0x352)],{'useClass':q[_0x14c4aa(0x357)]}],[_[_0x14c4aa(0x1de)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x14c4aa(0x1cc)]]];a['registerDependencies'](this[_0x14c4aa(0x2ac)],a[_0x14c4aa(0x3c6)](_0x5c772a,(_0x38acef=this['_config'])==null?void 0x0:_0x38acef[_0x14c4aa(0x1f5)]));}[_0x202b97(0x3c4)](){const _0x3fc6bf=_0x202b97;this[_0x3fc6bf(0x2ee)](this[_0x3fc6bf(0x2d8)][_0x3fc6bf(0x32d)](a[_0x3fc6bf(0x221)][_0x3fc6bf(0x42f)],[ge])),this[_0x3fc6bf(0x2ee)](this[_0x3fc6bf(0x2d8)]['registerRenderModule'](a['UniverInstanceType'][_0x3fc6bf(0x1b3)],[Ie]));}[_0x202b97(0x407)](){const _0x3c8f23=_0x202b97;a[_0x3c8f23(0x3f8)](this[_0x3c8f23(0x2ac)],[[x],[exports[_0x3c8f23(0x2af)]],[ee],[z],[exports[_0x3c8f23(0x1cc)]]]);}},as(exports[_0x202b97(0x400)],'pluginName',cs),exports[_0x202b97(0x400)]=os([a['DependentOn'](_[_0x202b97(0x375)]),_e(0x1,p[_0x202b97(0x364)]),_e(0x2,a[_0x202b97(0x237)](a[_0x202b97(0x39c)])),_e(0x3,a[_0x202b97(0x2ad)])],exports['UniverCollaborationClientUIPlugin']);var ls=Object[_0x202b97(0x2c6)],hs=(_0x12f68c,_0x11231c,_0x41d9df,_0x2f8fd3)=>{const _0x1554bd=_0x202b97;for(var _0x3a2fbb=_0x2f8fd3>0x1?void 0x0:_0x2f8fd3?ls(_0x11231c,_0x41d9df):_0x11231c,_0x4ab544=_0x12f68c[_0x1554bd(0x25e)]-0x1,_0xaa7a8d;_0x4ab544>=0x0;_0x4ab544--)(_0xaa7a8d=_0x12f68c[_0x4ab544])&&(_0x3a2fbb=_0xaa7a8d(_0x3a2fbb)||_0x3a2fbb);return _0x3a2fbb;},F=(_0xb7f87,_0x4b1a96)=>(_0x7a1ea3,_0x6a61ec)=>_0x4b1a96(_0x7a1ea3,_0x6a61ec,_0xb7f87);exports[_0x202b97(0x342)]=class extends _[_0x202b97(0x1e5)]{constructor(_0x2d32ce,_0x2d34e7,_0x3f20ea,_0x434e0e,_0x503040){super(_0x2d32ce,_0x2d34e7,_0x3f20ea,_0x434e0e,_0x503040);}async['createSocket'](_0x52980e){const _0x3fa95f=_0x202b97,_0x3f2e82=await this[_0x3fa95f(0x2a9)](),_0x558cbb=this[_0x3fa95f(0x373)](_0x52980e,_0x3f2e82);return this['_doCreateSocket'](_0x558cbb);}[_0x202b97(0x373)](_0x1bacb2,_0x28195d){const _0x306d70=_0x202b97,_0x55a024=typeof window>'u'?new URL(_0x1bacb2):new URL(_0x1bacb2,window['location']['origin']);_0x55a024[_0x306d70(0x1f0)][_0x306d70(0x21a)](_0x306d70(0x251),_0x28195d);const _0x12760f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x306d70(0x220)][_0x306d70(0x271)]);return _0x12760f[_0x306d70(0x24b)](_0x306d70(0x3f1))&&_0x55a024[_0x306d70(0x1f0)][_0x306d70(0x21a)](_0x306d70(0x3f1),_0x12760f[_0x306d70(0x24b)](_0x306d70(0x3f1))),_0x55a024[_0x306d70(0x3b5)]();}async[_0x202b97(0x2a9)](){const _0x540a59=_0x202b97;var _0x597fcb,_0x5674a8,_0x5bdb4e;const _0x283f3b=this['_configService'][_0x540a59(0x2c1)](_['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1486fb=(_0x597fcb=_0x283f3b==null?void 0x0:_0x283f3b[_0x540a59(0x232)])!=null?_0x597fcb:_['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x5bdb4e=(_0x5674a8=(await this[_0x540a59(0x410)]['get'](_0x1486fb,{'headers':{'Content-Type':_0x540a59(0x2eb)}}))[_0x540a59(0x2ae)])==null?void 0x0:_0x5674a8['ticket'])!=null?_0x5bdb4e:'';}},exports['BrowserCollaborationSocketService']=hs([F(0x0,a[_0x202b97(0x237)](a[_0x202b97(0x39c)])),F(0x1,a[_0x202b97(0x237)](q['HTTPService'])),F(0x2,a[_0x202b97(0x2ad)]),F(0x3,a['ILogService']),F(0x4,m[_0x202b97(0x43c)])],exports[_0x202b97(0x342)]);const we=0x7530,Le=_0x202b97(0x1b8);class us extends a[_0x202b97(0x1fe)]{constructor(){const _0x3ff735=_0x202b97;super(),h(this,'_id',a[_0x3ff735(0x3ef)]()),h(this,_0x3ff735(0x26c),new Set()),h(this,_0x3ff735(0x215),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x3ff735(0x389),new Map()),h(this,'_unitStatus',new Map()),this['_init']();}[_0x202b97(0x1e6)](){const _0x353861=_0x202b97;super[_0x353861(0x1e6)](),this[_0x353861(0x389)][_0x353861(0x3ea)]((_0xf6696,_0x59e4f3)=>this[_0x353861(0x31e)](_0x59e4f3)),this['_heartbeatTimer']&&window[_0x353861(0x411)](this[_0x353861(0x424)]);}[_0x202b97(0x1dc)](_0x1f133e){const _0x49094e=_0x202b97;return this[_0x49094e(0x25b)](_0x1f133e)[_0x49094e(0x219)](d[_0x49094e(0x213)]());}[_0x202b97(0x3fe)](_0x355fbb){const _0x4041cf=_0x202b97;this[_0x4041cf(0x26c)][_0x4041cf(0x22e)]===0x0&&this[_0x4041cf(0x2a1)](),this[_0x4041cf(0x26c)]['add'](_0x355fbb),this['_send']({'type':0x0,'memberID':this[_0x4041cf(0x3e7)],'unitIDs':[_0x355fbb],'isForwarded':!0x1});}['disposeUnit'](_0x1b8f64){const _0xd10ffc=_0x202b97;this[_0xd10ffc(0x26c)][_0xd10ffc(0x2c3)](_0x1b8f64),this[_0xd10ffc(0x26c)][_0xd10ffc(0x22e)]===0x0&&this[_0xd10ffc(0x424)]&&window[_0xd10ffc(0x411)](this[_0xd10ffc(0x424)]);}[_0x202b97(0x387)](){const _0x4fe8f3=_0x202b97;this[_0x4fe8f3(0x2ee)](a[_0x4fe8f3(0x206)](d[_0x4fe8f3(0x331)](window,_0x4fe8f3(0x41d))[_0x4fe8f3(0x3b6)](_0x4cc0af=>{const _0xe1c4d=_0x4fe8f3;if(_0x4cc0af[_0xe1c4d(0x38e)]!==Le||!_0x4cc0af[_0xe1c4d(0x1ee)])return;const _0x496238=JSON[_0xe1c4d(0x332)](_0x4cc0af['newValue']);this[_0xe1c4d(0x390)](_0x496238);}))),window[_0x4fe8f3(0x257)](_0x4fe8f3(0x33f),()=>this[_0x4fe8f3(0x2a0)]({'type':0x1,'memberID':this[_0x4fe8f3(0x3e7)],'unitIDs':Array[_0x4fe8f3(0x2c0)](this[_0x4fe8f3(0x26c)])}));}[_0x202b97(0x390)](_0x19b472){const _0x52db58=_0x202b97;switch(_0x19b472[_0x52db58(0x207)]){case 0x0:this[_0x52db58(0x3fd)](_0x19b472);break;case 0x1:this[_0x52db58(0x217)](_0x19b472);break;case 0x2:this[_0x52db58(0x3e6)](_0x19b472);break;}}['_handleJoinEvent'](_0x33973d){const _0x4435b3=_0x202b97,{unitIDs:_0x12e516,memberID:_0x727b64,isForwarded:_0x549279}=_0x33973d;_0x12e516[_0x4435b3(0x3ea)](_0x3646d1=>{const _0x35856e=_0x4435b3;if(!_0x549279&&this[_0x35856e(0x215)][_0x35856e(0x1d4)](_0x3646d1)&&this[_0x35856e(0x25b)](_0x3646d1)[_0x35856e(0x1d3)](_[_0x35856e(0x205)][_0x35856e(0x303)]),!this[_0x35856e(0x215)][_0x35856e(0x1d4)](_0x3646d1)||!this[_0x35856e(0x215)][_0x35856e(0x24b)](_0x3646d1)[_0x35856e(0x1d4)](_0x727b64)){const _0x54e5c9=this[_0x35856e(0x215)][_0x35856e(0x24b)](_0x3646d1)||new Set();_0x54e5c9[_0x35856e(0x35b)](_0x727b64),this[_0x35856e(0x215)]['set'](_0x3646d1,_0x54e5c9),this[_0x35856e(0x355)](_0x727b64);}}),_0x549279||this['_send']({'type':0x0,'memberID':this[_0x4435b3(0x3e7)],'unitIDs':[...this[_0x4435b3(0x26c)]],'isForwarded':!0x0});}[_0x202b97(0x355)](_0x3b4d3d){const _0x55ea57=_0x202b97;this[_0x55ea57(0x31e)](_0x3b4d3d);const _0x3ef8ba=window[_0x55ea57(0x262)](()=>{const _0x2f40d7=_0x55ea57;this[_0x2f40d7(0x215)][_0x2f40d7(0x3ea)](_0x42f7ac=>{const _0x3559d8=_0x2f40d7;_0x42f7ac[_0x3559d8(0x2c3)](_0x3b4d3d);});},we*0x2);this[_0x55ea57(0x389)]['set'](_0x3b4d3d,_0x3ef8ba);}[_0x202b97(0x31e)](_0x4ded45){const _0x89580b=_0x202b97;if(this[_0x89580b(0x389)][_0x89580b(0x1d4)](_0x4ded45)){const _0x3b31be=this['_clearOtherTimers']['get'](_0x4ded45);_0x3b31be&&window[_0x89580b(0x1d1)](_0x3b31be),this[_0x89580b(0x389)][_0x89580b(0x21a)](_0x4ded45,null);}}[_0x202b97(0x217)](_0x575cb6){const _0x2b10ef=_0x202b97,{memberID:_0x420358,unitIDs:_0x3cf769}=_0x575cb6;_0x3cf769[_0x2b10ef(0x3ea)](_0x23dda9=>{const _0x25c1a5=_0x2b10ef;var _0x8ece68;const _0x5ea078=this['_unitOnClients'][_0x25c1a5(0x24b)](_0x23dda9);_0x5ea078&&(_0x5ea078[_0x25c1a5(0x2c3)](_0x420358),(_0x8ece68=this[_0x25c1a5(0x25b)](_0x23dda9))==null||_0x8ece68[_0x25c1a5(0x1d3)](_0x5ea078[_0x25c1a5(0x22e)]===0x0?_[_0x25c1a5(0x205)]['NO_OTHER_CLIENTS_EDITING']:_[_0x25c1a5(0x205)][_0x25c1a5(0x303)]));}),this[_0x2b10ef(0x31e)](_0x420358);}[_0x202b97(0x3e6)](_0x289920){const _0x1c7abc=_0x202b97;this['_scheduleClearOtherTimer'](_0x289920[_0x1c7abc(0x224)]);}[_0x202b97(0x2a0)](_0x4fed59){const _0x29f036=_0x202b97;localStorage['setItem'](Le,JSON[_0x29f036(0x306)](_0x4fed59));}[_0x202b97(0x2a1)](){const _0x335be9=_0x202b97;this[_0x335be9(0x424)]=window[_0x335be9(0x1c4)](()=>{const _0x2d50b7=_0x335be9;this[_0x2d50b7(0x2a0)]({'type':0x2,'memberID':this[_0x2d50b7(0x3e7)]});},we);}[_0x202b97(0x25b)](_0x491aaa){const _0x20c13d=_0x202b97;return this[_0x20c13d(0x39e)][_0x20c13d(0x1d4)](_0x491aaa)||this['_unitStatus'][_0x20c13d(0x21a)](_0x491aaa,new d[(_0x20c13d(0x42e))](_[_0x20c13d(0x205)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x20c13d(0x39e)][_0x20c13d(0x24b)](_0x491aaa);}}var We=(_0x424f61=>(_0x424f61[_0x424f61[_0x202b97(0x1f1)]=0x0]='UNDEFINED',_0x424f61[_0x424f61['OK']=0x1]='OK',_0x424f61[_0x424f61[_0x202b97(0x3a0)]=0x2]='INTERNAL_ERROR',_0x424f61[_0x424f61[_0x202b97(0x20f)]=0x3]=_0x202b97(0x20f),_0x424f61[_0x424f61['NOT_FOUND']=0x4]=_0x202b97(0x384),_0x424f61[_0x424f61[_0x202b97(0x3dd)]=0x5]=_0x202b97(0x3dd),_0x424f61[_0x424f61[_0x202b97(0x29a)]=0x6]=_0x202b97(0x29a),_0x424f61[_0x424f61[_0x202b97(0x348)]=0x7]=_0x202b97(0x348),_0x424f61[_0x424f61[_0x202b97(0x2b9)]=0x8]='TOO_MANY_REQUESTS',_0x424f61[_0x424f61[_0x202b97(0x21d)]=0x9]=_0x202b97(0x21d),_0x424f61[_0x424f61[_0x202b97(0x300)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x424f61[_0x424f61[_0x202b97(0x34b)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x424f61[_0x424f61[_0x202b97(0x222)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x424f61[_0x424f61['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x202b97(0x2a6),_0x424f61[_0x424f61[_0x202b97(0x321)]=0x1b59]=_0x202b97(0x321),_0x424f61[_0x424f61[_0x202b97(0x250)]=0x1b5a]=_0x202b97(0x250),_0x424f61[_0x424f61['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x424f61[_0x424f61[_0x202b97(0x3c9)]=0x1b5c]=_0x202b97(0x3c9),_0x424f61[_0x424f61[_0x202b97(0x329)]=0x1b5d]=_0x202b97(0x329),_0x424f61[_0x424f61['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x424f61[_0x424f61[_0x202b97(0x33c)]=0x2329]=_0x202b97(0x33c),_0x424f61[_0x424f61[_0x202b97(0x3b2)]=0x232a]=_0x202b97(0x3b2),_0x424f61[_0x424f61[_0x202b97(0x3dc)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x424f61[_0x424f61['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x202b97(0x225),_0x424f61[_0x424f61[_0x202b97(0x324)]=0x232d]=_0x202b97(0x324),_0x424f61[_0x424f61[_0x202b97(0x353)]=0x2711]=_0x202b97(0x353),_0x424f61[_0x424f61[_0x202b97(0x1ca)]=0x2712]=_0x202b97(0x1ca),_0x424f61[_0x424f61['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x202b97(0x3ca),_0x424f61[_0x424f61['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x202b97(0x2ce),_0x424f61[_0x424f61[_0x202b97(0x261)]=0x2af9]=_0x202b97(0x261),_0x424f61[_0x424f61['UNRECOGNIZED']=-0x1]=_0x202b97(0x1e2),_0x424f61))(We||{}),_s=Object[_0x202b97(0x2c6)],ds=(_0x6aad4a,_0x590d78,_0x4c626e,_0x476aca)=>{const _0x3a1461=_0x202b97;for(var _0x42ae3e=_0x476aca>0x1?void 0x0:_0x476aca?_s(_0x590d78,_0x4c626e):_0x590d78,_0x338023=_0x6aad4a[_0x3a1461(0x25e)]-0x1,_0x26de41;_0x338023>=0x0;_0x338023--)(_0x26de41=_0x6aad4a[_0x338023])&&(_0x42ae3e=_0x26de41(_0x42ae3e)||_0x42ae3e);return _0x42ae3e;},de=(_0x8cc2fe,_0x572201)=>(_0x59e963,_0x47eb18)=>_0x572201(_0x59e963,_0x47eb18,_0x8cc2fe);exports[_0x202b97(0x343)]=class extends a[_0x202b97(0x1fe)]{constructor(_0x43707e,_0x99fe07,_0x524ce1){const _0x505b62=_0x202b97;super(),this['_instanceService']=_0x43707e,this['_httpService']=_0x99fe07,this[_0x505b62(0x29d)]=_0x524ce1;}async['runOnServer'](_0xd20f7c,_0x4cff9b,_0x2c17a1,..._0x257d7e){const _0x434458=_0x202b97;var _0x5df517,_0x26e9d2,_0xece3d8,_0x14baf2;const _0x470ccf=this[_0x434458(0x33d)]['getFocusedUnit']();if(!_0x470ccf)throw new Error(_0x434458(0x340));const _0xb7279f=((_0x5df517=this[_0x434458(0x29d)][_0x434458(0x2c1)](_[_0x434458(0x35d)]))!=null?_0x5df517:_[_0x434458(0x32a)])+'/'+_0xd20f7c+_0x434458(0x23e)+_0x4cff9b,_0x3a1502=new URL(window[_0x434458(0x220)][_0x434458(0x382)]),_0x2411cf={'scriptId':_0xd20f7c,'runId':(_0x26e9d2=_0x3a1502['searchParams'][_0x434458(0x24b)](_0x434458(0x3f1)))!=null?_0x26e9d2:'','function':_0x4cff9b,'unitId':_0x470ccf[_0x434458(0x295)](),'argsOfFunction':JSON[_0x434458(0x306)](_0x257d7e),'invokeId':(_0xece3d8=_0x2c17a1[_0x434458(0x23d)])!=null?_0xece3d8:'','executionId':(_0x14baf2=_0x2c17a1['executionId'])!=null?_0x14baf2:''};try{const _0x339cd3=await this[_0x434458(0x410)][_0x434458(0x288)](_0xb7279f,{'body':_0x2411cf});return _0x339cd3['body'][_0x434458(0x408)]&&_0x339cd3['body'][_0x434458(0x408)][_0x434458(0x27e)]!==We['OK']?_0x434458(0x32c):_0x339cd3[_0x434458(0x2ae)][_0x434458(0x2ca)];}catch{return _0x434458(0x32c);}}},exports['RemoteUniscriptService']=ds([de(0x0,a[_0x202b97(0x34c)]),de(0x1,a['Inject'](q['HTTPService'])),de(0x2,a['IConfigService'])],exports[_0x202b97(0x343)]),exports[_0x202b97(0x1ed)]=Be,exports[_0x202b97(0x1b2)]=Ee,exports[_0x202b97(0x393)]=Ae,exports[_0x202b97(0x376)]=us,exports[_0x202b97(0x1c9)]=He;
@@ -1 +1 @@
1
- 'use strict';const _0x2fb130=_0x113a;(function(_0x4316bc,_0x3eb7b4){const _0x19edd1=_0x113a,_0x35d808=_0x4316bc();while(!![]){try{const _0x1e14fc=-parseInt(_0x19edd1(0x1c6))/0x1+parseInt(_0x19edd1(0x1cf))/0x2+-parseInt(_0x19edd1(0x1c9))/0x3+parseInt(_0x19edd1(0x1c4))/0x4*(-parseInt(_0x19edd1(0x1ca))/0x5)+parseInt(_0x19edd1(0x1c8))/0x6*(parseInt(_0x19edd1(0x1cd))/0x7)+parseInt(_0x19edd1(0x1cb))/0x8+parseInt(_0x19edd1(0x1bf))/0x9;if(_0x1e14fc===_0x3eb7b4)break;else _0x35d808['push'](_0x35d808['shift']());}catch(_0x127cf3){_0x35d808['push'](_0x35d808['shift']());}}}(_0x1059,0x78e07));function _0x1059(){const _0x117d81=['3351960XXXfRI','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','49bPwYmd','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','1939416chephK','Local\x20file','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Click\x20to\x20Reconnect','exports','Synced','7128972NrZajH','Collaboration\x20Conflict','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Connection\x20failed,\x20please\x20check\x20your\x20network.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','24gtjhMK','Syncing\x20server\x20data...','661100kJQdXa','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','315498peAtoP','2658645VLyFEn','422055xrWjMA'];_0x1059=function(){return _0x117d81;};return _0x1059();}const e={'collab-client':{'tooltip':{'reconnect':_0x2fb130(0x1bc)}},'collabStatus':{'fetchMiss':_0x2fb130(0x1c5),'conflict':'Edit\x20conflicts','notCollab':_0x2fb130(0x1d0),'synced':_0x2fb130(0x1be),'syncing':'Syncing...','offline':_0x2fb130(0x1cc)},'session':{'connection-failed':_0x2fb130(0x1c2),'will-retry':_0x2fb130(0x1c1),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x2fb130(0x1c7)},'conflict':{'title':_0x2fb130(0x1c0),'content':_0x2fb130(0x1d1)},'permission':{'title':'Authentication\x20Error','content':_0x2fb130(0x1ce)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x2fb130(0x1c3)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x113a(_0x1c78fc,_0x519921){const _0x105927=_0x1059();return _0x113a=function(_0x113a79,_0x4711f5){_0x113a79=_0x113a79-0x1bc;let _0x5bb6c5=_0x105927[_0x113a79];return _0x5bb6c5;},_0x113a(_0x1c78fc,_0x519921);}module[_0x2fb130(0x1bd)]=e;
1
+ 'use strict';const _0x1b95f5=_0x5409;(function(_0x37b6b1,_0x308608){const _0x1efe60=_0x5409,_0x3677db=_0x37b6b1();while(!![]){try{const _0x1e79a1=-parseInt(_0x1efe60(0x10c))/0x1+-parseInt(_0x1efe60(0x10b))/0x2+parseInt(_0x1efe60(0x10a))/0x3+-parseInt(_0x1efe60(0x100))/0x4*(parseInt(_0x1efe60(0x115))/0x5)+parseInt(_0x1efe60(0xfe))/0x6+parseInt(_0x1efe60(0x105))/0x7+-parseInt(_0x1efe60(0x101))/0x8*(-parseInt(_0x1efe60(0x103))/0x9);if(_0x1e79a1===_0x308608)break;else _0x3677db['push'](_0x3677db['shift']());}catch(_0x25beb0){_0x3677db['push'](_0x3677db['shift']());}}}(_0x1159,0xf34eb));function _0x5409(_0x321e64,_0x284a08){const _0x11598d=_0x1159();return _0x5409=function(_0x540927,_0x3f10ff){_0x540927=_0x540927-0xfd;let _0x515dfe=_0x11598d[_0x540927];return _0x515dfe;},_0x5409(_0x321e64,_0x284a08);}function _0x1159(){const _0x1cd928=['36aLiQHv','Collaboration\x20Conflict','10588676werWrT','Syncing...','Syncing\x20server\x20data...','Synced','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','3686331MouNIu','2025404KpXadH','1603771cdQLKE','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Edit\x20conflicts','Authentication\x20Error','Click\x20to\x20Reconnect','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','exports','492455nMqTbI','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','10424070WeMEXf','Local\x20file','72CWKdTx','1814216HkiVPN','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.'];_0x1159=function(){return _0x1cd928;};return _0x1159();}const e={'collab-client':{'tooltip':{'reconnect':_0x1b95f5(0x110)}},'collabStatus':{'fetchMiss':_0x1b95f5(0x107),'conflict':_0x1b95f5(0x10e),'notCollab':_0x1b95f5(0xff),'synced':_0x1b95f5(0x108),'syncing':_0x1b95f5(0x106),'offline':_0x1b95f5(0x109)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x1b95f5(0x111),'room-full':_0x1b95f5(0xfd),'collaboration-timeout':_0x1b95f5(0x10d)},'conflict':{'title':_0x1b95f5(0x104),'content':_0x1b95f5(0x102)},'permission':{'title':_0x1b95f5(0x10f),'content':_0x1b95f5(0x113)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x1b95f5(0x112)}};module[_0x1b95f5(0x114)]=e;