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

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';function _0x585a(){const _0x24b699=['1579560HcJuNZ','10qBfDmF','4173337VUtrNL','FUniver','@univerjs/core/facade','4927698LEZNqj','29ktBWjY','get','@univerjs-pro/collaboration-client-ui','949832qCfNDZ','5egYiKJ','_injector','5113816IaRgWw','959028oTffWH','runOnServer','8006QDyZmm'];_0x585a=function(){return _0x24b699;};return _0x585a();}function _0x3fe5(_0x12573f,_0xfba02e){const _0x585a67=_0x585a();return _0x3fe5=function(_0x3fe5cc,_0x28f2d4){_0x3fe5cc=_0x3fe5cc-0x1a6;let _0x3d5181=_0x585a67[_0x3fe5cc];return _0x3d5181;},_0x3fe5(_0x12573f,_0xfba02e);}const _0x3d0bc7=_0x3fe5;(function(_0x3bfbc5,_0x7c8853){const _0x4e6eff=_0x3fe5,_0x585647=_0x3bfbc5();while(!![]){try{const _0x226147=parseInt(_0x4e6eff(0x1ad))/0x1*(parseInt(_0x4e6eff(0x1a6))/0x2)+-parseInt(_0x4e6eff(0x1b4))/0x3+-parseInt(_0x4e6eff(0x1b0))/0x4*(-parseInt(_0x4e6eff(0x1b1))/0x5)+-parseInt(_0x4e6eff(0x1a7))/0x6+parseInt(_0x4e6eff(0x1a9))/0x7+parseInt(_0x4e6eff(0x1b3))/0x8+-parseInt(_0x4e6eff(0x1ac))/0x9*(parseInt(_0x4e6eff(0x1a8))/0xa);if(_0x226147===_0x7c8853)break;else _0x585647['push'](_0x585647['shift']());}catch(_0x98e3e6){_0x585647['push'](_0x585647['shift']());}}}(_0x585a,0x6ff09));const t=require(_0x3d0bc7(0x1af)),e=require(_0x3d0bc7(0x1ab));class c extends e[_0x3d0bc7(0x1aa)]{[_0x3d0bc7(0x1b5)](_0x258f03,_0x1222f4,..._0x1d5497){const _0x37e673=_0x3d0bc7;return this[_0x37e673(0x1b2)][_0x37e673(0x1ae)](t['RemoteUniscriptService'])[_0x37e673(0x1b5)](_0x258f03,_0x1222f4,{},..._0x1d5497);}}e[_0x3d0bc7(0x1aa)]['extend'](c);
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';const _0x3564dd=_0x1bdc;function _0x3dd1(){const _0x4ae9d8=['restore','BehaviorSubject','Optional','connectInjector','_initEntityListener','SheetCollabCursorShape','_backgroundColor','386276PopEip','exhaustSavingTask','3nfjHcX','setUndoRedoMutationParamsCache','_startDocCollabCursor','PERMISSION_DENIED','then','eventID','substring','_eventUnsubscribe','fromEvent','APPLY_NON_SEQUENTIAL_REVISION','_logService','LICENSE_IMPORT_SIZE_EXCEEDED','beginPath','SYNCED','RemoveRowCommandId','addObject','type','stringify','whenReady','textRanges','DocCollaborationEntity','Rectangle','getValue','_httpService','add','sessionTicket','transformMutationsWithChangeset','RemoteUniscriptService','APPLY_REJECT','useRef','univer-online-status','addClipboardHook','4565370AOtupZ','fillText','UniverIcon','className','save','isTransformMutationFailure','RxDisposable','IRemoteInstanceService','UnitStatus','getMemberID','setInterval','5layHSw','_createSocketURL','subunit','closePath','COMPLETION_FINISHED','labelPosition','onPointerLeave$','_cursorInfo$','session.collaboration-timeout','bottom','_transformHistoryAndStateStack','runOnServer','filter','handleInsertRow','getLocalCacheKey','OnLineSingle','_collaborationController','mapTo','CONFLICT','_registerRenderDependencies','black','engine','_lastPointer','getSheetObject','_injector','_renderManagerService','collabStatus.conflict','APPLY_DUPLICATED','_scheduleClearOtherTimer','onLocalMutation','ILogService','@univerjs/engine-render','useCallback','lineTo','_docTransformIMECacheService','_assignedColors','_onCursorUpdate','_handleJoinEvent','blue400','_getSaveTimeout','CollaborationController','saveImage','apply','number','set','SetTextSelectionsOperation','IUniverInstanceService','_docSkeletonManagerService','_textBubble','ALREADY_EXISTS','DependentOn','SheetsSelectionsService','Vector2','_univerInstanceService','_init','offline','OTHER_CLIENTS_EDITING','_docClipboardService','InsertRangeMoveDownCommandId','deepClone','skeleton','complete','urlChange$','result','_clearOtherTimers','react','split','top','_cursor','cursorInfo$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','AWAITING','collaboration-client-ui.config','Rect','_drawRectRange','LOCAL_CACHE_INTERVAL_KEY','SheetSkeletonManagerService','collab-client.tooltip.reconnect','_online','idSuffix','roomMembers','focused$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','defs','_collabCursorState$','@univerjs/ui','_entityInit$','_hideTimer','jsxs','_colorAssignService','1em','trim','_memberService','DEFAULT_WS_SESSION_TICKET_URL','@univerjs/docs-ui','font','unitID','LICENSE_MAX_UNITS_EXCEEDED','_anchorDot','invokeId','_handleEvent','endColumn','IDocClipboardService','Warning','Disposable','_themeService','values','collab-text-anchor-','getCurrentUnitForType','YUUMI_SUBSCRIPTION_NOT_FOUND','RefRangeService','startsWith','DeleteRangeMoveUpCommandId','currentColor','NO_OTHER_CLIENTS_EDITING','_updateLocalCursor','getStateCache','_urlService','Injector','onMouseMove','COLORS','_initStatusListener','clearInterval','color','_localCacheService','body','_unitStatus','getMergeData','onlineStatus','prototype','random','findNodePositionByCharIndex','DOC_RANGE_TYPE','SNAPSHOT_INVALID_SNAPSHOT','IRenderManagerService','_cursors','on-line-single','size','Failed','univer-online-status-icon','_getSheetObject','@univerjs-pro/collaboration-client','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','popstate','ONLINE','_unitOnClients','executionId','red300','5506012ryngZH','handleMoveRange','YUUMI_URL_COL_OUT_OF_RANGE','m1Prime','createIdentifier','UPDATE_CURSOR','DocSkeletonManagerService','UNDEFINED','ENSURE_SNAPSHOT_EXECUTION','_transformUndoRedoStack','round','setItem','IBeforeCloseService','selections','all','defineProperty','JOIN_ROOM_FAILED','getCoordByCell','APPLY_REVISION_CONFILICT','requireSession','DocIMEInputManagerService','setParam','WebURLService','_getMergeRange','takeUntil','InsertRangeMoveRightCommandId','Shape','@univerjs/sheets-ui','useObservable','RECT','_initEvent','push','setActiveRange','with','CONNECTOR_DATA_TOO_LARGE','actions','InsertRowCommandId','APPLY_PERMISSION_DENIED','_imageIoService','CollaborationDataLoaderController','getRangePointData','attrs','INVALID_ARGUMENT','ICommandService','dispose$','0\x200\x2017\x2016','RemoveColCommandId','IConfigService','createInstance','activeSheet$','NodePositionConvertToRectRange','_handleLeaveEvent','_status$','debug','_initDependencies','transformStateCache','OFFLINE','evenodd','getMember','UNRECOGNIZED','NOT_COLLAB','icon','redoState','_collabSessionService','contains','_handleHeartbeatEvent','getRenderById','_selfUnitIDs','_syncEditingCollabCursorService','init','getColor','path','CollaborationStatusDisplay','storage','asObservable','_doCreateSocket','DeleteRangeMoveLeftCommandId','forwardRef','purple300','@univerjs/engine-formula','executeCommand','_docTransformStateCacheService','_dataLoaderService','displayName','triggerDblclick','hide','registerDependencies','translate(.97)','key','_scheduleSaving','_drawTextRange','_localStorageService','_removeClearOtherTimer','YUUMI_UNABLE_LOAD_URL','0\x200\x2016\x2016','DisposableCollection','_uiPartsService','_beforeCloseService','_saveTaskMap','isTransformMutationsWithChangesetSuccess','propertyIsEnumerable','addObjects','entries','rgba(255,\x20255,\x20255,\x200.01)','merge','getTypeOfUnitAdded$','_color','LocaleService','generateRandomId','_ensureSubject','rxjs/operators','getAncestorScale','loadUnit','newValue','delete','_docSyncEditingCollabCursorService','_cachedData','IURLService','cursorInfo','replaceDocRanges','subscribeEvent','_roomMembers$','IMessageService','permission.content','getViewport','OffLineSingle','SHEET_VIEWPORT_KEY','_id','CLOSE_ROOM','isEditing','extend','handleDeleteRangeMoveLeft','univer-flex\x20univer-items-center','pushState','uni.network.url-service','_config','currentTheme$','_labelPosition','_sheetSkeletonManagerService','moveTo','_revisionService','_commandService','symbol','@univerjs/docs','_range','startRow','some','debounce','pluginName','LICENSE_EXPORT_SIZE_EXCEEDED','getSkeleton','map','data','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Plugin','onlineStatusIcon','runId','6188220iMVCIQ','params','text','LICENSE_DISTRO_REJECTED','override','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_context','concat','_docStateChangeManagerService','_updateSubUnitFromURLParams','_instanceService','_localeService','_hover','currentSkeleton$','_getSessionTicket','CollaborationUIEventService','_drawAnchor','@univerjs/rpc','26616850AvbTyj','getActiveRange','onCommandExecuted','ThemeService','toString','resize','clearTimeout','shareReplay','m2Prime','DesktopCollaborationStatusDisplayController','getSheetId','_refRangeService','DataLoaderService','isActive','RegularPolygon','...','dispose','EffectRefRangId','getActiveSheet','_shapes','debounceTime','find','_initCommandExecutedListener','combineLatest','next','_updateURLWithCurrentState','doc.mutation.rich-text-editing','PENDING','getSheetBySheetId','code','SetDocZoomRatioOperation','_scheduleHeartbeat','serializeRangeWithSheet','entityInit$','show','makeDirty','onPointerMove$','RichTextEditingMutation','USERS_LEAVE','jsx','getCurrentRevOfUnit','children','saveTaskMap','_saveCache','unitId','CollaborationUIEventId','status$','svg','BrowserCollaborationSocketService','transformRemoteChangeset','unit','_setupSubUnitSync','OTHER_CLIENT_EDITING','_onCursorDelete','getOwnPropertySymbols','_docSkeleton','_anchor','getParam','getFocusedUnit','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','drawWith','replace','UniverInstanceType','DocSelectionManagerService','_transformService','44016JPeaNX','_cursorShapes','transformByState','_session','application/json','collaboration.single-unit.warning','disableLocalCache','assign','flatMap','[RemoteUniscriptService]:\x20no\x20focused\x20unit','off-line-single_clip0_910_343','collaboration.closeRoom','getConfig','700TSqLnj','assignAColorForMemberID','Tooltip','MessageType','toDisposable','MemberService','_send','endRow','range','CHANGESET_REVISION_CONFILICT','off-line-single','ITransformService','from','handleIRemoveCol','isArray','M0\x200H16V16H0z','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_handleHover','Unknown\x20user','_configService','UniverCollaborationClientUIPlugin','ColorKit','univerjs-icon\x20univerjs-icon-','runRefRangeMutations','height','rxjs','has','searchParams','_toggleOnline','@univerjs/drawing','DocStateChangeManagerService','setStateCache','on-line-single_clip0_910_349','_setupBeforeClosingHandler','fillStyle','sheetID','tag','setShapeProps','toStringTag','sessionStatus$','transform','_hovered','name','unsubscribe','saveOfflineData','#fff','Inject','Subject','width','pipe','max','LOCAL_CACHE_INTERVAL','gold400','onPointerEnter$','getCollabCursors$','xlink:href','distinctUntilChanged','SetWorksheetActivateCommand','clipPath','post','startColumn','Tools','_updateCollabCursors','@univerjs/network','_refreshCollabCursors','arc','_entities','_disabled','getItem','_render','subUnitId','getRelativeToViewportCoord','div','mask','setAlpha','hovered','AWAITING_WITH_PENDING','SetSelectionsOperation','YUUMI_RATE_OVER_LIMIT','ticket','roomMembers$','_registerDependencies','history','INotificationService','univer-online-status-title','HEADER_MENU','NOT_FOUND','TOO_MANY_REQUESTS','MUTATION','fill','handleInsertRangeMoveRight','PY_RUNTIME_SCRIPT_ERROR','getCollabEntity$','string','reconnect','_collaborationUIEventService','_getScale','_messageService','collabCursorState$','loadOfflineData','getOwnPropertyDescriptor','TEXT_RANGE_LAYER_INDEX','UNIVER_SHEET','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-rect-range-','handleInsertRangeMoveDown','url(#off-line-single_clip0_910_343)','none','1734711noGFak','disposeWithMe','UNIVER_DOC','length','ISnapshotServerService','row','_initStatusComponent','transformSelections','switchMap','location','indexOf','registerRefRange','_initResize','sheetId','createElement','CollaborationStatus','transformMutation','syncEditingCollabCursor','call','_docTransformSelectionsService','subscribe','_toggleOffline','selection','touchDependencies','unshift','@univerjs-pro/collaboration','transformIMECache','unload','getDocRanges','_name','onTransformChange$','_colorIndex','column','measureText','_heartbeatTimer','updateOfflineData','enableLocalCache','forEach','CollaborationSessionService','replaceState','href','mutations','event$','_getAnchorBounding','getUnitId','setConfig','ILocalCacheService','get','undoState','CollaborationEvent','collab-text-range-','SNAPSHOT_HAS_BEEN_REMOVED','FromArray','_removeCollabCursors','url(#$1','memberID','@univerjs/design','_collabCursorController','collabStatus.fetchMiss','_transformPreviousActiveRange','UNAUTHENTICATED','getUndoRedoMutationParamsCache','current','editingUnit','error','collabStatus.synced','CommandType','HTTPService','defIds','colorChannel1','ranges','_scene'];_0x3dd1=function(){return _0x4ae9d8;};return _0x3dd1();}(function(_0x93de2b,_0x3a04b8){const _0x2c2185=_0x1bdc,_0x243674=_0x93de2b();while(!![]){try{const _0x24184e=parseInt(_0x2c2185(0x2f4))/0x1*(-parseInt(_0x2c2185(0x2f2))/0x2)+parseInt(_0x2c2185(0x2a3))/0x3+parseInt(_0x2c2185(0x13a))/0x4*(parseInt(_0x2c2185(0x31f))/0x5)+parseInt(_0x2c2185(0x314))/0x6+-parseInt(_0x2c2185(0x237))/0x7*(-parseInt(_0x2c2185(0x22a))/0x8)+parseInt(_0x2c2185(0x1d7))/0x9+-parseInt(_0x2c2185(0x1e9))/0xa;if(_0x24184e===_0x3a04b8)break;else _0x243674['push'](_0x243674['shift']());}catch(_0x324f1d){_0x243674['push'](_0x243674['shift']());}}}(_0x3dd1,0xade7c));var qe=Object['defineProperty'],Ke=(_0x2f42f0,_0x5c3260,_0x240d6c)=>_0x5c3260 in _0x2f42f0?qe(_0x2f42f0,_0x5c3260,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240d6c}):_0x2f42f0[_0x5c3260]=_0x240d6c,h=(_0x5a83e5,_0x1ebe90,_0x176dc9)=>Ke(_0x5a83e5,typeof _0x1ebe90!=_0x3564dd(0x1c8)?_0x1ebe90+'':_0x1ebe90,_0x176dc9);Object['defineProperty'](exports,Symbol[_0x3564dd(0x25d)],{'value':'Module'});const _=require(_0x3564dd(0x133)),a=require('@univerjs/core'),p=require(_0x3564dd(0x33e)),q=require(_0x3564dd(0x276)),b=require(_0x3564dd(0x37d)),ze=require(_0x3564dd(0x254)),d=require(_0x3564dd(0x250)),Y=require(_0x3564dd(0x1c9)),m=require(_0x3564dd(0x2bc)),Te=require(_0x3564dd(0x189)),I=require('@univerjs/sheets'),$=require(_0x3564dd(0x1a8)),G=require(_0x3564dd(0x155)),w=require('react/jsx-runtime'),T=require(_0x3564dd(0x374)),M=require(_0x3564dd(0x2db)),P=require(_0x3564dd(0x360)),Je=require(_0x3564dd(0x1e8));var Ze=Object[_0x3564dd(0x29b)],Qe=(_0x54bd0b,_0x479b76,_0x1e2b61,_0x491307)=>{const _0x3900e6=_0x3564dd;for(var _0x37d541=_0x491307>0x1?void 0x0:_0x491307?Ze(_0x479b76,_0x1e2b61):_0x479b76,_0x23f3f8=_0x54bd0b[_0x3900e6(0x2a6)]-0x1,_0x4f57a6;_0x23f3f8>=0x0;_0x23f3f8--)(_0x4f57a6=_0x54bd0b[_0x23f3f8])&&(_0x37d541=_0x4f57a6(_0x37d541)||_0x37d541);return _0x37d541;},Re=(_0x1a5aed,_0x178487)=>(_0x1516cc,_0x2d10e8)=>_0x178487(_0x1516cc,_0x2d10e8,_0x1a5aed);let fe=class extends a[_0x3564dd(0x31a)]{constructor(_0xdbc0a0,_0x15b38a){const _0x75bf47=_0x3564dd;super(),this[_0x75bf47(0x358)]=_0xdbc0a0,this[_0x75bf47(0x160)]=_0x15b38a,this[_0x75bf47(0x355)]();}[_0x3564dd(0x355)](){const _0x368232=_0x3564dd,_0x2e80af=this;this['disposeWithMe'](this['_docClipboardService'][_0x368232(0x313)]({'onBeforePasteImage':async _0xd3e5c2=>{const _0x389e46=_0x368232,_0x4c3570=await _0x2e80af[_0x389e46(0x160)][_0x389e46(0x348)](_0xd3e5c2);return _0x4c3570?{'source':_0x4c3570['source'],'imageSourceType':_0x4c3570['imageSourceType']}:null;}}));}};fe=Qe([Re(0x0,b[_0x3564dd(0x385)]),Re(0x1,ze['IImageIoService'])],fe);const Oe=[_0x3564dd(0x188),'jiqing500','verdancy600',_0x3564dd(0x139),_0x3564dd(0x345),_0x3564dd(0x26b)];class Ce extends a[_0x3564dd(0x387)]{constructor(){const _0x459549=_0x3564dd;super(...arguments),h(this,_0x459549(0x342),new Map()),h(this,_0x459549(0x2c2),0x0);}['assignAColorForMemberID'](_0x10b614){const _0x2b3d8e=_0x3564dd;if(this['_assignedColors'][_0x2b3d8e(0x251)](_0x10b614))return this['_assignedColors'][_0x2b3d8e(0x2d2)](_0x10b614);const _0x352aa6=Oe[this[_0x2b3d8e(0x2c2)]];return this[_0x2b3d8e(0x2c2)]=(this[_0x2b3d8e(0x2c2)]+0x1)%Oe[_0x2b3d8e(0x2a6)],this['_assignedColors'][_0x2b3d8e(0x34b)](_0x10b614,_0x352aa6),_0x352aa6;}}function ye(_0x37ab89){const _0x173092=_0x3564dd;let _0x27063e='';for(const _0x32f5a9 of _0x37ab89){const {startOffset:_0x399e36,endOffset:_0xa2d981,isActive:_0x3f7407,rangeType:_0x2e1054,segmentId:_0x541ccb,segmentPage:_0x4e299e}=_0x32f5a9;_0x27063e[_0x173092(0x2a6)]&&(_0x27063e+=','),_0x27063e+=_0x399e36+':'+_0xa2d981+':'+(_0x3f7407?'1':'0')+':'+_0x2e1054+':'+_0x541ccb+':'+_0x4e299e;}return _0x27063e;}function et(_0x3bc245){const _0x276fa6=_0x3564dd,_0x6cb76c=_0x3bc245[_0x276fa6(0x361)](','),_0x1d5414=[];for(const _0x52a9d7 of _0x6cb76c){const [_0xc3e4fc,_0x356156,_0x19a47d,_0x44aa38,_0x420128,_0x231da1]=_0x52a9d7[_0x276fa6(0x361)](':');_0x1d5414[_0x276fa6(0x159)]({'startOffset':Number(_0xc3e4fc),'endOffset':Number(_0x356156),'collapsed':_0xc3e4fc===_0x356156,'isActive':_0x19a47d==='1','rangeType':_0x44aa38===a[_0x276fa6(0x12a)]['TEXT']?a['DOC_RANGE_TYPE']['TEXT']:a[_0x276fa6(0x12a)]['RECT'],'segmentId':typeof _0x420128=='string'?String(_0x420128):'','segmentPage':Number(_0x231da1!=null?_0x231da1:-0x1)});}return _0x1d5414[_0x276fa6(0x1cc)](_0x5bf951=>_0x5bf951['isActive'])||(_0x1d5414[0x0][_0x276fa6(0x1f6)]=!0x0),_0x1d5414;}class pe extends a['RxDisposable']{constructor(){const _0x34ef93=_0x3564dd;super(...arguments),h(this,_0x34ef93(0x373),new d[(_0x34ef93(0x2ec))](null)),h(this,_0x34ef93(0x299),this[_0x34ef93(0x373)][_0x34ef93(0x184)]());}[_0x3564dd(0x2b4)](_0x579b18){const _0x1a7181=_0x3564dd,{unitID:_0x4123d2,memberID:_0x8bfda5,textRanges:_0x5c942d}=_0x579b18,_0x5ced6d=ye(_0x5c942d);if(_0x5ced6d==='')return;const _0x2dba23={'unitID':_0x4123d2,'memberID':_0x8bfda5,'selection':_0x5ced6d};this[_0x1a7181(0x373)]['next'](_0x2dba23);}}var tt=Object[_0x3564dd(0x29b)],st=(_0x471a5f,_0x1bde80,_0x2be760,_0x96a185)=>{for(var _0x465522=_0x96a185>0x1?void 0x0:_0x96a185?tt(_0x1bde80,_0x2be760):_0x1bde80,_0x45f1ec=_0x471a5f['length']-0x1,_0x30f353;_0x45f1ec>=0x0;_0x45f1ec--)(_0x30f353=_0x471a5f[_0x45f1ec])&&(_0x465522=_0x30f353(_0x465522)||_0x465522);return _0x465522;},N=(_0x275562,_0x3d6a2b)=>(_0x49b243,_0x599461)=>_0x3d6a2b(_0x49b243,_0x599461,_0x275562);const nt=0x12c,it=0x64;let Se=class extends a[_0x3564dd(0x31a)]{constructor(_0x30d67a,_0x347d57,_0x10d05f,_0x4b9395,_0x2f0db8,_0x310425,_0xb3497f,_0x5e0d14,_0x5c9cc4){const _0x19a560=_0x3564dd;super(),h(this,'_online',!0x1),h(this,_0x19a560(0x355),!0x1),h(this,_0x19a560(0x326),new d[(_0x19a560(0x2ec))](new Map())),h(this,'cursorInfo$',this[_0x19a560(0x326)][_0x19a560(0x184)]()),h(this,_0x19a560(0x1b3),new d[(_0x19a560(0x2ec))]([])),h(this,_0x19a560(0x287),this['_roomMembers$'][_0x19a560(0x268)](d[_0x19a560(0x1fd)](nt))),h(this,_0x19a560(0x119),a[_0x19a560(0x1cd)](_0x703b51=>{const _0x420292=_0x19a560,_0xa71b29={'eventID':m[_0x420292(0x2d4)][_0x420292(0x13f)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x420292(0x31d)](),'selection':ye(_0x703b51)}};this['_session']['send'](_0xa71b29,this[_0x420292(0x37f)]);},it)),(this[_0x19a560(0x37f)]=_0x30d67a,this['_session']=_0x347d57,this[_0x19a560(0x337)]=_0x10d05f,this[_0x19a560(0x378)]=_0x4b9395,this['_memberService']=_0x2f0db8,this['_syncEditingCollabCursorService']=_0x310425,this[_0x19a560(0x229)]=_0xb3497f,this[_0x19a560(0x354)]=_0x5e0d14,this[_0x19a560(0x1c7)]=_0x5c9cc4);}get[_0x3564dd(0x1b0)](){const _0x13acb9=_0x3564dd;return this[_0x13acb9(0x326)][_0x13acb9(0x30a)]();}get[_0x3564dd(0x36f)](){const _0x3afc61=_0x3564dd;return this[_0x3afc61(0x1b3)][_0x3afc61(0x30a)]();}[_0x3564dd(0x1f9)](){const _0xfa4d0c=_0x3564dd;super[_0xfa4d0c(0x1f9)](),this[_0xfa4d0c(0x326)]['next'](new Map()),this[_0xfa4d0c(0x326)][_0xfa4d0c(0x35c)](),this[_0xfa4d0c(0x1b3)][_0xfa4d0c(0x201)]([]),this[_0xfa4d0c(0x1b3)][_0xfa4d0c(0x35c)]();}[_0x3564dd(0x17f)](){const _0x52aa80=_0x3564dd;this['_init']||(this[_0x52aa80(0x355)]=!0x0,this[_0x52aa80(0x22d)][_0x52aa80(0x25e)]['pipe'](d[_0x52aa80(0x152)](this[_0x52aa80(0x166)]))[_0x52aa80(0x2b7)](_0x2a3d43=>{const _0x2d093b=_0x52aa80;_0x2a3d43===_['SessionStatus'][_0x2d093b(0x136)]?this[_0x2d093b(0x253)]():this[_0x2d093b(0x2b8)]();}),this['_session'][_0x52aa80(0x2cd)][_0x52aa80(0x268)](d['takeUntil'](this['dispose$']))['subscribe'](_0x5c957a=>{const _0x328e97=_0x52aa80,_0x1b01ff=_0x5c957a[_0x328e97(0x2f9)];_0x1b01ff===m[_0x328e97(0x2d4)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x5c957a),_0x1b01ff===m[_0x328e97(0x2d4)][_0x328e97(0x20f)]&&this['_onCursorDelete'](_0x5c957a);}),this['disposeWithMe'](this['_commandService'][_0x52aa80(0x1eb)](_0x2d3361=>{const _0x176187=_0x52aa80,_0x144346=_0x2d3361[_0x176187(0x1d8)];_0x144346!=null&&this[_0x176187(0x36d)]&&_0x2d3361['id']===Y[_0x176187(0x34c)]['id']&&_0x144346['unitId']===this[_0x176187(0x37f)]&&_0x144346[_0x176187(0x1bb)]===!0x1&&_0x144346['ranges'][_0x176187(0x2a6)]>0x0&&this[_0x176187(0x119)](_0x144346[_0x176187(0x2e9)]);})),this[_0x52aa80(0x17e)][_0x52aa80(0x299)][_0x52aa80(0x268)](d['takeUntil'](this[_0x52aa80(0x166)]))['subscribe'](_0x2fac2f=>{const _0x18498c=_0x52aa80;if((_0x2fac2f==null?void 0x0:_0x2fac2f[_0x18498c(0x37f)])!==this[_0x18498c(0x37f)])return;const _0x541bec={'eventID':m['CollaborationEvent'][_0x18498c(0x13f)],'data':_0x2fac2f};this[_0x18498c(0x343)](_0x541bec);}),this[_0x52aa80(0x2a4)](this[_0x52aa80(0x1c7)]['onCommandExecuted'](_0x311830=>{const _0xfe2031=_0x52aa80;if(_0x311830[_0xfe2031(0x1d8)]==null)return;const _0x24ac28=_0x311830['params'];if(_0x311830['id']!==Y[_0xfe2031(0x20e)]['id']||_0x24ac28[_0xfe2031(0x215)]!==this[_0xfe2031(0x37f)])return;const _0x51eb2d={'id':_0xfe2031(0x203),'params':_0x24ac28},_0x1855ff=this[_0xfe2031(0x1b0)];for(const [_0x423811,_0x1de19f]of _0x1855ff){const _0x46c7d2={'id':_0xfe2031(0x203),'params':{'unitId':this[_0xfe2031(0x37f)],'actions':null,'textRanges':_0x1de19f[_0xfe2031(0x2e9)]}},_0x550646=this['_transformService'][_0xfe2031(0x2b3)](_0x51eb2d,_0x46c7d2,!0x1);if(m['isTransformMutationFailure'](_0x550646))throw _0x550646['error'];_0x1855ff['set'](_0x423811,{..._0x1de19f,'ranges':_0x550646[_0xfe2031(0x1f1)]['params'][_0xfe2031(0x307)]});}queueMicrotask(()=>{const _0x191d9e=_0xfe2031;this[_0x191d9e(0x326)][_0x191d9e(0x201)](_0x1855ff);});})));}[_0x3564dd(0x343)](_0xdea7a1){const _0x42c2b3=_0x3564dd;var _0x40f927,_0x51641b;const {memberID:_0x13d5df,selection:_0x20efb6}=_0xdea7a1[_0x42c2b3(0x1d2)],_0xc6be3b=et(_0x20efb6),_0x52253d=(_0x51641b=(_0x40f927=this[_0x42c2b3(0x37b)][_0x42c2b3(0x174)](this[_0x42c2b3(0x37f)],_0x13d5df))==null?void 0x0:_0x40f927[_0x42c2b3(0x261)])!=null?_0x51641b:_0x42c2b3(0x249),_0x3d2107={'color':this[_0x42c2b3(0x378)][_0x42c2b3(0x238)](_0x13d5df),'name':_0x52253d,'ranges':_0xc6be3b},_0x990806=this[_0x42c2b3(0x1b0)];_0x990806[_0x42c2b3(0x34b)](_0x13d5df,_0x3d2107),this[_0x42c2b3(0x326)][_0x42c2b3(0x201)](_0x990806);}['_onCursorDelete'](_0x5bfecc){const _0x2761d4=_0x3564dd,{memberID:_0xa87943}=_0x5bfecc['data'],_0x1b9dc7=this[_0x2761d4(0x1b0)];_0x1b9dc7[_0x2761d4(0x1ac)](_0xa87943),this[_0x2761d4(0x326)][_0x2761d4(0x201)](_0x1b9dc7);}[_0x3564dd(0x253)](){const _0x263169=_0x3564dd;var _0x4e13f2;if(this[_0x263169(0x36d)]=!0x0,((_0x4e13f2=this['_univerInstanceService'][_0x263169(0x223)]())==null?void 0x0:_0x4e13f2[_0x263169(0x2cf)]())!==this[_0x263169(0x37f)])return;const _0x3e8000=this[_0x263169(0x337)][_0x263169(0x2d2)](Y['DocSelectionManagerService'])[_0x263169(0x2bf)]();Array[_0x263169(0x245)](_0x3e8000)&&_0x3e8000[_0x263169(0x2a6)]>0x0&&this[_0x263169(0x119)](_0x3e8000);}[_0x3564dd(0x2b8)](){const _0x18cc42=_0x3564dd;this[_0x18cc42(0x36d)]=!0x1;}};Se=st([N(0x2,a[_0x3564dd(0x265)](a[_0x3564dd(0x11c)])),N(0x3,a[_0x3564dd(0x265)](Ce)),N(0x4,a[_0x3564dd(0x265)](_[_0x3564dd(0x23c)])),N(0x5,a['Inject'](pe)),N(0x6,m['ITransformService']),N(0x7,a[_0x3564dd(0x34d)]),N(0x8,a[_0x3564dd(0x165)])],Se);var rt=Object['getOwnPropertyDescriptor'],ot=(_0x2d4346,_0x19d54d,_0x38efcf,_0x59a2e2)=>{const _0x46bd1f=_0x3564dd;for(var _0x2b97e7=_0x59a2e2>0x1?void 0x0:_0x59a2e2?rt(_0x19d54d,_0x38efcf):_0x19d54d,_0xd86af9=_0x2d4346[_0x46bd1f(0x2a6)]-0x1,_0x1cc3de;_0xd86af9>=0x0;_0xd86af9--)(_0x1cc3de=_0x2d4346[_0xd86af9])&&(_0x2b97e7=_0x1cc3de(_0x2b97e7)||_0x2b97e7);return _0x2b97e7;},y=(_0x551b13,_0x2a7122)=>(_0x2035f9,_0x59b445)=>_0x2a7122(_0x2035f9,_0x59b445,_0x551b13);const at=0x12c,ct=0x64,lt=()=>{let _0x3a579a=[],_0x2f2d04=!0x1;return _0x2eb1c3=>{_0x3a579a['push'](_0x2eb1c3),_0x2f2d04||(_0x2f2d04=!0x0,setTimeout(()=>{const _0x3b3428=_0x1bdc;_0x3a579a[_0x3b3428(0x2c8)](_0x39d6ee=>_0x39d6ee()),_0x3a579a=[],_0x2f2d04=!0x1;}));};};let ve=class extends a[_0x3564dd(0x31a)]{constructor(_0x8ac0a8,_0x34b82f,_0x1dcc80,_0x4ae582,_0x11bb5f,_0x311157,_0x18e5b5,_0x55fde0){const _0x50ad1d=_0x3564dd;super(),h(this,_0x50ad1d(0x36d),!0x1),h(this,_0x50ad1d(0x355),!0x1),h(this,'_cursorInfo$',new d[(_0x50ad1d(0x2ec))](new Map())),h(this,_0x50ad1d(0x364),this[_0x50ad1d(0x326)][_0x50ad1d(0x184)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,_0x50ad1d(0x287),this['_roomMembers$'][_0x50ad1d(0x268)](d['debounceTime'](at))),h(this,_0x50ad1d(0x119),a['debounce']((_0x24ab0b,_0xb89ab2)=>{const _0x5645c0=_0x50ad1d,_0x1ea9fc={'eventID':m[_0x5645c0(0x2d4)][_0x5645c0(0x13f)],'data':{'unitID':this[_0x5645c0(0x37f)],'memberID':this[_0x5645c0(0x22d)][_0x5645c0(0x31d)](),'selection':Te[_0x5645c0(0x209)](_0x24ab0b,_0xb89ab2['range'])}};this[_0x5645c0(0x22d)]['send'](_0x1ea9fc,this[_0x5645c0(0x37f)]);},ct)),(this[_0x50ad1d(0x37f)]=_0x8ac0a8,this['_session']=_0x34b82f,this[_0x50ad1d(0x337)]=_0x1dcc80,this[_0x50ad1d(0x378)]=_0x4ae582,this['_memberService']=_0x11bb5f,this['_univerInstanceService']=_0x311157,this['_commandService']=_0x18e5b5,this[_0x50ad1d(0x1f4)]=_0x55fde0);}get[_0x3564dd(0x1b0)](){const _0x18db04=_0x3564dd;return this[_0x18db04(0x326)][_0x18db04(0x30a)]();}get[_0x3564dd(0x36f)](){const _0xd05a43=_0x3564dd;return this['_roomMembers$'][_0xd05a43(0x30a)]();}[_0x3564dd(0x1f9)](){const _0x5862b1=_0x3564dd;super['dispose'](),this[_0x5862b1(0x326)][_0x5862b1(0x201)](new Map()),this[_0x5862b1(0x326)]['complete'](),this['_roomMembers$'][_0x5862b1(0x201)]([]),this[_0x5862b1(0x1b3)][_0x5862b1(0x35c)]();}['init'](){const _0x18cace=_0x3564dd;this[_0x18cace(0x355)]||(this['_init']=!0x0,this[_0x18cace(0x22d)][_0x18cace(0x25e)][_0x18cace(0x268)](d[_0x18cace(0x152)](this[_0x18cace(0x166)]))[_0x18cace(0x2b7)](_0x584d4=>{const _0x3a200c=_0x18cace;_0x584d4===_['SessionStatus'][_0x3a200c(0x136)]?this[_0x3a200c(0x253)]():this[_0x3a200c(0x2b8)]();}),this[_0x18cace(0x22d)][_0x18cace(0x2cd)][_0x18cace(0x268)](d['takeUntil'](this[_0x18cace(0x166)]))[_0x18cace(0x2b7)](_0x7fb65c=>{const _0x5721c=_0x18cace,_0x2b2180=_0x7fb65c[_0x5721c(0x2f9)];_0x2b2180===m[_0x5721c(0x2d4)][_0x5721c(0x13f)]&&this['_onCursorUpdate'](_0x7fb65c),_0x2b2180===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x5721c(0x21e)](_0x7fb65c);}),this['_onRefRangeChange'](),this[_0x18cace(0x2a4)](this[_0x18cace(0x1c7)][_0x18cace(0x1eb)](_0x4f746f=>{const _0x26d7ce=_0x18cace;if(this['_online']&&_0x4f746f['id']===I[_0x26d7ce(0x284)]['id']&&_0x4f746f[_0x26d7ce(0x1d8)][_0x26d7ce(0x215)]===this[_0x26d7ce(0x37f)]){const _0xaa3f89=_0x4f746f[_0x26d7ce(0x1d8)];this[_0x26d7ce(0x119)](_0xaa3f89[_0x26d7ce(0x27d)],_0xaa3f89[_0x26d7ce(0x147)][0x0]);}})));}[_0x3564dd(0x343)](_0x2d698d){const _0x5a561d=_0x3564dd;var _0x20b024,_0x4ca34d;const {memberID:_0xece28,selection:_0x2e6d71}=_0x2d698d['data'],{sheetName:_0x213e9e,range:_0x5adedc}=Te['deserializeRangeWithSheet'](_0x2e6d71),_0x39baac={'name':(_0x4ca34d=(_0x20b024=this['_memberService']['getMember'](this['unitID'],_0xece28))==null?void 0x0:_0x20b024[_0x5a561d(0x261)])!=null?_0x4ca34d:_0x5a561d(0x249),'range':this[_0x5a561d(0x151)](_0x213e9e,_0x5adedc),'sheetID':_0x213e9e,'color':this['_colorAssignService']['assignAColorForMemberID'](_0xece28),'selection':_0x2e6d71},_0x3709bf=this[_0x5a561d(0x1b0)];_0x3709bf['set'](_0xece28,_0x39baac),this[_0x5a561d(0x326)][_0x5a561d(0x201)](_0x3709bf);}['_onCursorDelete'](_0x17f33b){const _0x3cf715=_0x3564dd,{memberID:_0x4d512c}=_0x17f33b[_0x3cf715(0x1d2)],_0x3d8285=this[_0x3cf715(0x1b0)];_0x3d8285[_0x3cf715(0x1ac)](_0x4d512c),this[_0x3cf715(0x326)][_0x3cf715(0x201)](_0x3d8285);}[_0x3564dd(0x151)](_0x14e5c4,_0x24dce5){const _0x1e4193=_0x3564dd;var _0x55a32e,_0x29bc64;const _0x388c55=(_0x29bc64=(_0x55a32e=this[_0x1e4193(0x354)]['getUniverSheetInstance'](this[_0x1e4193(0x37f)]))==null?void 0x0:_0x55a32e[_0x1e4193(0x205)](_0x14e5c4))==null?void 0x0:_0x29bc64[_0x1e4193(0x125)]();return(_0x388c55==null?void 0x0:_0x388c55[_0x1e4193(0x1fe)](_0x565e4d=>a[_0x1e4193(0x309)][_0x1e4193(0x17a)](_0x565e4d,_0x24dce5)))||_0x24dce5;}['_onRefRangeChange'](){const _0x1743e5=_0x3564dd,_0x19aaeb=new a[(_0x1743e5(0x199))](),_0x40c70a=lt(),_0x528482=()=>{const _0x1ad5f3=_0x1743e5;_0x19aaeb[_0x1ad5f3(0x1f9)]();const _0x1c09e3=(_0x21cd91,_0x18d303,_0x1f1c47,_0x3c170c)=>{const _0x33deb9=_0x1ad5f3;let _0x141651=[];switch(_0x21cd91['id']){case I[_0x33deb9(0x1fa)][_0x33deb9(0x186)]:{_0x141651=I[_0x33deb9(0x1bd)](_0x21cd91,_0x3c170c);break;}case I['EffectRefRangId'][_0x33deb9(0x116)]:{_0x141651=I['handleDeleteRangeMoveUp'](_0x21cd91,_0x3c170c);break;}case I[_0x33deb9(0x1fa)]['InsertColCommandId']:{_0x141651=I['handleInsertCol'](_0x21cd91,_0x3c170c);break;}case I[_0x33deb9(0x1fa)][_0x33deb9(0x359)]:{_0x141651=I[_0x33deb9(0x2a0)](_0x21cd91,_0x3c170c);break;}case I[_0x33deb9(0x1fa)][_0x33deb9(0x153)]:{_0x141651=I[_0x33deb9(0x291)](_0x21cd91,_0x3c170c);break;}case I['EffectRefRangId'][_0x33deb9(0x15e)]:{_0x141651=I[_0x33deb9(0x32c)](_0x21cd91,_0x3c170c);break;}case I[_0x33deb9(0x1fa)]['MoveRangeCommandId']:{_0x141651=I[_0x33deb9(0x13b)](_0x21cd91,_0x3c170c);break;}case I[_0x33deb9(0x1fa)][_0x33deb9(0x168)]:{_0x141651=I[_0x33deb9(0x244)](_0x21cd91,_0x3c170c);break;}case I[_0x33deb9(0x1fa)][_0x33deb9(0x302)]:{_0x141651=I['handleIRemoveRow'](_0x21cd91,_0x3c170c);break;}}const _0x4c7d8e=I[_0x33deb9(0x24e)](_0x141651,_0x3c170c),_0x1d6b1e=this['cursorInfo'][_0x33deb9(0x2d2)](_0x18d303);if(_0x1d6b1e&&_0x4c7d8e){const _0x57b1ce={..._0x1d6b1e,'range':_0x4c7d8e};this[_0x33deb9(0x1b0)]['set'](_0x18d303,_0x57b1ce),_0x40c70a(()=>{const _0xbbf9ff=_0x33deb9,_0x2180a6=this['_refRangeService'][_0xbbf9ff(0x2ae)](_0x4c7d8e,_0x1b6b4c=>(_0x2180a6['dispose'](),_0x1c09e3(_0x1b6b4c,_0x18d303,_0x1f1c47,_0x4c7d8e)));_0x19aaeb['add'](_0x2180a6);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x1ad5f3(0x2c8)]((_0x192b33,_0x8c92e)=>{const _0x2c0913=_0x1ad5f3,{range:_0x5bba7f,sheetID:_0x59f276}=_0x192b33,_0x1d9b0a=this[_0x2c0913(0x1f4)][_0x2c0913(0x2ae)](_0x5bba7f,_0x3cbc00=>(_0x1d9b0a[_0x2c0913(0x1f9)](),_0x1c09e3(_0x3cbc00,_0x8c92e,_0x59f276,_0x5bba7f)));_0x19aaeb[_0x2c0913(0x30c)](_0x1d9b0a);});};this[_0x1743e5(0x2a4)](a[_0x1743e5(0x23b)](this[_0x1743e5(0x326)]['subscribe'](()=>{_0x528482();})));}[_0x3564dd(0x253)](){const _0x36820b=_0x3564dd;var _0x2376d7,_0x20867a;if(this[_0x36820b(0x36d)]=!0x0,((_0x2376d7=this[_0x36820b(0x354)][_0x36820b(0x223)]())==null?void 0x0:_0x2376d7['getUnitId']())!==this[_0x36820b(0x37f)])return;const _0x12212c=(_0x20867a=this[_0x36820b(0x337)][_0x36820b(0x2d2)](I[_0x36820b(0x352)])['getCurrentSelections']())==null?void 0x0:_0x20867a[0x0],_0x50cb89=this[_0x36820b(0x354)][_0x36820b(0x38b)](a[_0x36820b(0x227)][_0x36820b(0x29d)])['getActiveSheet']();_0x12212c&&_0x50cb89&&this[_0x36820b(0x119)](_0x50cb89['getSheetId'](),_0x12212c);}[_0x3564dd(0x2b8)](){const _0xdaf2c4=_0x3564dd;this[_0xdaf2c4(0x36d)]=!0x1;}};ve=ot([y(0x2,a[_0x3564dd(0x265)](a['Injector'])),y(0x3,a[_0x3564dd(0x265)](Ce)),y(0x4,a[_0x3564dd(0x265)](_[_0x3564dd(0x23c)])),y(0x5,a[_0x3564dd(0x34d)]),y(0x6,a[_0x3564dd(0x165)]),y(0x7,a[_0x3564dd(0x265)](I[_0x3564dd(0x38d)]))],ve);var ht=Object[_0x3564dd(0x29b)],ut=(_0x3e204d,_0x1cfff7,_0x16d773,_0x312fff)=>{const _0x3fb733=_0x3564dd;for(var _0x43efb7=_0x312fff>0x1?void 0x0:_0x312fff?ht(_0x1cfff7,_0x16d773):_0x1cfff7,_0x893a01=_0x3e204d[_0x3fb733(0x2a6)]-0x1,_0x29b85d;_0x893a01>=0x0;_0x893a01--)(_0x29b85d=_0x3e204d[_0x893a01])&&(_0x43efb7=_0x29b85d(_0x43efb7)||_0x43efb7);return _0x43efb7;},ie=(_0x100968,_0x3b9ff3)=>(_0x5e49fe,_0x4875c0)=>_0x3b9ff3(_0x5e49fe,_0x4875c0,_0x100968);let x=class extends a[_0x3564dd(0x31a)]{constructor(_0x3fa9a2,_0x284473,_0x5ba1fd){const _0x221f58=_0x3564dd;super(),h(this,_0x221f58(0x279),new Map()),h(this,_0x221f58(0x375),new d[(_0x221f58(0x266))]()),(this['_univerInstanceService']=_0x3fa9a2,this[_0x221f58(0x337)]=_0x284473,this['_collabSessionService']=_0x5ba1fd,this['_init']());}[_0x3564dd(0x1f9)](){const _0x170c46=_0x3564dd;super[_0x170c46(0x1f9)](),this[_0x170c46(0x375)]['complete'](),this[_0x170c46(0x279)]['forEach'](_0x3943de=>_0x3943de['dispose']());}[_0x3564dd(0x26d)](_0xc3b3d6){const _0x56d30e=_0x3564dd;return this['_entities'][_0x56d30e(0x251)](_0xc3b3d6)?this[_0x56d30e(0x279)]['get'](_0xc3b3d6)['cursorInfo$']:this[_0x56d30e(0x375)][_0x56d30e(0x268)](d[_0x56d30e(0x32b)](_0x55994e=>_0x55994e[_0x56d30e(0x37f)]===_0xc3b3d6),d[_0x56d30e(0x2ab)](_0x2d8fb1=>_0x2d8fb1[_0x56d30e(0x364)]));}[_0x3564dd(0x355)](){const _0x163861=_0x3564dd;this[_0x163861(0x354)]['getTypeOfUnitAdded$'](a[_0x163861(0x227)][_0x163861(0x29d)])[_0x163861(0x268)](d['takeUntil'](this[_0x163861(0x166)]))[_0x163861(0x2b7)](async _0x4adbaf=>{const _0x29682b=_0x163861,_0x2ebece=_0x4adbaf['getUnitId'](),_0x119f10=await this['_startSheetCollabCursor'](_0x2ebece);this['_entityInit$'][_0x29682b(0x201)](_0x119f10),this[_0x29682b(0x279)][_0x29682b(0x34b)](_0x2ebece,_0x119f10);}),this[_0x163861(0x354)][_0x163861(0x1a3)](a[_0x163861(0x227)][_0x163861(0x2a5)])[_0x163861(0x268)](d[_0x163861(0x152)](this[_0x163861(0x166)]))[_0x163861(0x268)](d[_0x163861(0x32b)](_0x25301d=>!_0x25301d[_0x163861(0x2cf)]()[_0x163861(0x115)]('__')))[_0x163861(0x2b7)](async _0x4515b8=>{const _0xfe60dd=_0x163861,_0x113973=_0x4515b8[_0xfe60dd(0x2cf)](),_0x2e6560=await this[_0xfe60dd(0x2f6)](_0x113973);this['_entityInit$']['next'](_0x2e6560),this['_entities'][_0xfe60dd(0x34b)](_0x113973,_0x2e6560);}),d[_0x163861(0x1a2)](this[_0x163861(0x354)]['getTypeOfUnitDisposed$'](a[_0x163861(0x227)][_0x163861(0x2a5)]),this[_0x163861(0x354)]['getTypeOfUnitDisposed$'](a[_0x163861(0x227)][_0x163861(0x29d)]))[_0x163861(0x268)](d['takeUntil'](this[_0x163861(0x166)]))[_0x163861(0x2b7)](_0x5de7d3=>{const _0x3e506f=_0x163861,_0x513c21=_0x5de7d3[_0x3e506f(0x2cf)](),_0x46292e=this[_0x3e506f(0x279)][_0x3e506f(0x2d2)](_0x513c21);_0x46292e&&(_0x46292e[_0x3e506f(0x1f9)](),this[_0x3e506f(0x279)][_0x3e506f(0x1ac)](_0x513c21));});}async['_startSheetCollabCursor'](_0x4c5fc6){const _0x29ff6c=_0x3564dd,_0x4ee162=await this[_0x29ff6c(0x179)][_0x29ff6c(0x14d)](_0x4c5fc6),_0x390f4a=this[_0x29ff6c(0x337)][_0x29ff6c(0x16a)](ve,_0x4c5fc6,_0x4ee162);return _0x390f4a[_0x29ff6c(0x17f)](),_0x390f4a;}async[_0x3564dd(0x2f6)](_0x1de52c){const _0x4d8a6a=_0x3564dd,_0x2b075c=await this[_0x4d8a6a(0x179)][_0x4d8a6a(0x14d)](_0x1de52c),_0x14c510=this['_injector']['createInstance'](Se,_0x1de52c,_0x2b075c);return _0x14c510[_0x4d8a6a(0x17f)](),_0x14c510;}};x=ut([ie(0x0,a[_0x3564dd(0x34d)]),ie(0x1,a[_0x3564dd(0x265)](a[_0x3564dd(0x11c)])),ie(0x2,a[_0x3564dd(0x265)](_[_0x3564dd(0x2c9)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function dt(_0x54e92e,_0x3ecbf4){const _0x2da0c0=_0x3564dd;let {radius:_0x47474e,width:_0xf74213,height:_0x14e503}=_0x3ecbf4;_0x47474e=_0x47474e!=null?_0x47474e:0x0,_0xf74213=_0xf74213!=null?_0xf74213:0x1e,_0x14e503=_0x14e503!=null?_0x14e503:0x1e;let _0x3e5618=0x0,_0x561374=0x0,_0x2450ae=0x0;_0x3e5618=_0x561374=_0x2450ae=Math['min'](_0x47474e,_0xf74213/0x2,_0x14e503/0x2),_0x54e92e[_0x2da0c0(0x300)](),_0x54e92e[_0x2da0c0(0x1c5)](_0x3e5618,0x0),_0x54e92e[_0x2da0c0(0x340)](_0xf74213-_0x561374,0x0),_0x54e92e[_0x2da0c0(0x278)](_0xf74213-_0x561374,_0x561374,_0x561374,Math['PI']*0x3/0x2,0x0,!0x1),_0x54e92e[_0x2da0c0(0x340)](_0xf74213,_0x14e503-_0x2450ae),_0x54e92e[_0x2da0c0(0x278)](_0xf74213-_0x2450ae,_0x14e503-_0x2450ae,_0x2450ae,0x0,Math['PI']/0x2,!0x1),_0x54e92e[_0x2da0c0(0x340)](0x0,_0x14e503),_0x54e92e['lineTo'](0x0,_0x3e5618),_0x54e92e[_0x2da0c0(0x278)](_0x3e5618,_0x3e5618,_0x3e5618,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x54e92e[_0x2da0c0(0x322)](),_0x3ecbf4['fill']&&(_0x54e92e['save'](),_0x54e92e[_0x2da0c0(0x259)]=_0x3ecbf4[_0x2da0c0(0x290)],_0x3ecbf4['fillRule']==='evenodd'?_0x54e92e[_0x2da0c0(0x290)](_0x2da0c0(0x173)):_0x54e92e['fill'](),_0x54e92e[_0x2da0c0(0x2eb)]());}class te extends p[_0x3564dd(0x154)]{constructor(_0x3da889,_0x883d4){const _0x28ed74=_0x3564dd;super(_0x3da889,_0x883d4),h(this,'color'),h(this,_0x28ed74(0x1d9)),(this['color']=_0x883d4==null?void 0x0:_0x883d4['color'],this[_0x28ed74(0x1d9)]=_0x883d4==null?void 0x0:_0x883d4[_0x28ed74(0x1d9)]);}static[_0x3564dd(0x225)](_0x109853,_0x10a6fc){const _0x5c31fc=_0x3564dd,{text:_0x30310c,color:_0x527d95}=_0x10a6fc;_0x109853[_0x5c31fc(0x318)](),_0x109853[_0x5c31fc(0x37e)]=_0x5c31fc(0x1d3);const _0x5b8d7d=_0x109853['measureText'](_0x30310c)[_0x5c31fc(0x267)],_0xa118c3=Math['min'](_0x5b8d7d+0x2*re,De);dt(_0x109853,{'height':K,'radius':0x4,'width':_0xa118c3,'fill':_0x527d95}),_0x109853[_0x5c31fc(0x259)]='#FFF';const _0x2f8bca=re,_0x4ffb85=K-_t,_0x5afa63=De-0x2*re;if(_0x5b8d7d>_0x5afa63){let _0x3e1850='',_0x3b8b78=0x0;for(const _0x26a679 of _0x30310c){const _0x5f7ef1=_0x109853[_0x5c31fc(0x2c4)](_0x26a679)[_0x5c31fc(0x267)];if(_0x3b8b78+_0x5f7ef1<=_0x5afa63-_0x109853['measureText'](_0x5c31fc(0x1f8))[_0x5c31fc(0x267)])_0x3e1850+=_0x26a679,_0x3b8b78+=_0x5f7ef1;else{_0x3e1850+=_0x5c31fc(0x1f8);break;}}_0x109853[_0x5c31fc(0x315)](_0x3e1850,_0x2f8bca,_0x4ffb85);}else _0x109853[_0x5c31fc(0x315)](_0x30310c,_0x2f8bca,_0x4ffb85);_0x109853[_0x5c31fc(0x2eb)]();}['_draw'](_0x4a97d6){const _0xe78141=_0x3564dd;te[_0xe78141(0x225)](_0x4a97d6,this);}}const oe=_0x3564dd(0x38a),ft=_0x3564dd(0x2d5),St=_0x3564dd(0x29f),B=0x6,vt=1.5,ae=0x4,gt=1.5,It=_0x3564dd(0x1a1);class Ue{constructor(_0x312f3a,_0x46c100,_0x104fe6,_0x5c9b49){const _0x2b5972=_0x3564dd;h(this,'_shapes',[]),h(this,_0x2b5972(0x221),null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,_0x2b5972(0x2fb),null),(this['_cursor']=_0x312f3a,this[_0x2b5972(0x2ea)]=_0x46c100,this[_0x2b5972(0x220)]=_0x104fe6,this['_document']=_0x5c9b49,this[_0x2b5972(0x27c)]());}set[_0x3564dd(0x1e3)](_0x9f6af8){const _0x2f31f3=_0x3564dd;_0x9f6af8?(this[_0x2f31f3(0x381)]&&this[_0x2f31f3(0x381)]['hide'](),this['_textBubble']&&this[_0x2f31f3(0x34f)][_0x2f31f3(0x20b)]()):(this[_0x2f31f3(0x381)]&&this[_0x2f31f3(0x381)][_0x2f31f3(0x20b)](),this[_0x2f31f3(0x34f)]&&this[_0x2f31f3(0x34f)][_0x2f31f3(0x18f)]());}[_0x3564dd(0x1f9)](){const _0x1bd35e=_0x3564dd;for(const _0x3ee437 of this['_shapes'])_0x3ee437[_0x1bd35e(0x1f9)]();this['_textBubble']&&this[_0x1bd35e(0x34f)]['dispose'](),this[_0x1bd35e(0x381)]&&this[_0x1bd35e(0x381)][_0x1bd35e(0x1f9)](),this[_0x1bd35e(0x221)]&&this[_0x1bd35e(0x221)]['dispose'](),this[_0x1bd35e(0x2fb)]&&this[_0x1bd35e(0x2fb)]();}['_render'](){const _0x4b31f8=_0x3564dd;var _0x4757fc;const {_docSkeleton:_0x52f5b7,_document:_0x4bb978}=this,{color:_0x951d42,name:_0x2eee09,ranges:_0x3f278f}=this[_0x4b31f8(0x363)],_0x10e17b=_0x4bb978['getOffsetConfig'](),{docsLeft:_0x423029,docsTop:_0x4be53a}=_0x10e17b,_0x1b356d=new b['NodePositionConvertToCursor'](_0x10e17b,_0x52f5b7);for(const {startOffset:_0x33ca9e,endOffset:_0x2b8cf6,rangeType:_0x5bde8a,segmentId:_0x29f6b2,segmentPage:_0x485831,collapsed:_0x60d955,isActive:_0x4eadf6}of _0x3f278f){const _0x2e36c8=_0x52f5b7[_0x4b31f8(0x129)](_0x33ca9e,!0x0,_0x29f6b2,_0x485831);let _0x2ebb42=_0x52f5b7[_0x4b31f8(0x129)](_0x2b8cf6,!0x0,_0x29f6b2,_0x485831);if(_0x2ebb42==null&&(_0x2ebb42=_0x52f5b7[_0x4b31f8(0x129)](_0x2b8cf6-0x1,!0x1,_0x29f6b2,_0x485831)),_0x4eadf6){const {contentBoxPointGroup:_0x3a8f85}=_0x1b356d[_0x4b31f8(0x162)](_0x2ebb42,_0x2ebb42);if(_0x3a8f85['length']===0x0)continue;this['_drawAnchor'](_0x951d42,_0x3a8f85,_0x423029,_0x4be53a,_0x2eee09),this[_0x4b31f8(0x2fb)]=this[_0x4b31f8(0x248)]();}if(_0x2e36c8&&_0x2ebb42){if(_0x5bde8a===a[_0x4b31f8(0x12a)][_0x4b31f8(0x157)]){const _0x48e84c=new b[(_0x4b31f8(0x16c))](_0x10e17b,_0x52f5b7),{pointGroup:_0x59bbee}=(_0x4757fc=_0x48e84c[_0x4b31f8(0x162)](_0x2e36c8,_0x2ebb42))!=null?_0x4757fc:{};if(_0x59bbee==null||_0x59bbee[_0x4b31f8(0x2a6)]===0x0)continue;this['_drawRectRange'](_0x951d42,_0x59bbee,_0x423029,_0x4be53a);}else{if(!_0x60d955){const {borderBoxPointGroup:_0x2826dd}=_0x1b356d['getRangePointData'](_0x2e36c8,_0x2ebb42);if(_0x2826dd[_0x4b31f8(0x2a6)]===0x0)continue;this[_0x4b31f8(0x194)](_0x951d42,_0x2826dd,_0x423029,_0x4be53a);}}}}}[_0x3564dd(0x1e7)](_0x86230a,_0x4412be,_0x25e67d,_0x537a82,_0x59534b){const _0x4e1fdb=_0x3564dd,_0x35b3c4=this[_0x4e1fdb(0x2ce)](_0x4412be),{left:_0x1c8d8f,top:_0x5949bd,height:_0x33204}=_0x35b3c4,_0x4e001e=this[_0x4e1fdb(0x297)](),_0x294a24=gt/_0x4e001e,_0x3a6553=new p[(_0x4e1fdb(0x368))](oe+a[_0x4e1fdb(0x274)][_0x4e1fdb(0x1a6)](B),{'left':_0x1c8d8f+_0x25e67d-_0x294a24,'top':_0x5949bd+_0x537a82,'height':_0x33204,'width':vt,'fill':_0x86230a||p[_0x4e1fdb(0x180)](a['COLORS']['black'],0x0),'strokeWidth':_0x294a24,'stroke':It,'evented':!0x0});this[_0x4e1fdb(0x221)]=_0x3a6553,this[_0x4e1fdb(0x2ea)]['addObject'](_0x3a6553,b[_0x4e1fdb(0x29c)]);const _0x96b824=new p['Rect'](oe+a[_0x4e1fdb(0x274)][_0x4e1fdb(0x1a6)](B),{'left':_0x1c8d8f+_0x25e67d-_0x294a24,'top':_0x5949bd+_0x537a82-ae/0x2,'height':ae,'width':ae,'fill':_0x86230a||p[_0x4e1fdb(0x180)](a['COLORS'][_0x4e1fdb(0x333)],0x0),'strokeWidth':0x0,'stroke':_0x86230a||p[_0x4e1fdb(0x180)](a[_0x4e1fdb(0x11e)]['black'],0x0),'evented':!0x1});this[_0x4e1fdb(0x381)]=_0x96b824,this[_0x4e1fdb(0x2ea)]['addObject'](_0x96b824,b[_0x4e1fdb(0x29c)]);const _0xe213ad=new te(oe+a['Tools'][_0x4e1fdb(0x1a6)](B),{'left':_0x1c8d8f+_0x25e67d-_0x294a24,'top':_0x5949bd+_0x537a82-K,'text':_0x59534b,'color':_0x86230a});this['_textBubble']=_0xe213ad,this['_scene'][_0x4e1fdb(0x303)](_0xe213ad,b[_0x4e1fdb(0x29c)]),this[_0x4e1fdb(0x1e3)]=!0x1;}[_0x3564dd(0x248)](){const _0x12c228=_0x3564dd,_0x516d39=this[_0x12c228(0x221)][_0x12c228(0x26c)][_0x12c228(0x1b2)](()=>{const _0xa6c335=_0x12c228;this[_0xa6c335(0x1e3)]=!0x0;}),_0x4688b9=this[_0x12c228(0x221)][_0x12c228(0x325)]['subscribeEvent'](()=>{const _0x4aec43=_0x12c228;this[_0x4aec43(0x376)]&&clearTimeout(this[_0x4aec43(0x376)]),this[_0x4aec43(0x376)]=setTimeout(()=>{const _0xa7d8e8=_0x4aec43;this[_0xa7d8e8(0x1e3)]=!0x1;},0x7d0);});return()=>{const _0x3199b6=_0x12c228;_0x516d39[_0x3199b6(0x262)](),_0x4688b9[_0x3199b6(0x262)]();};}[_0x3564dd(0x194)](_0x1a4c08,_0x1cf8ad,_0x2f57b7,_0x45304b){const _0x16ac44=_0x3564dd,_0x266b89=new a[(_0x16ac44(0x24c))](_0x1a4c08)[_0x16ac44(0x281)](0.2)['toRgbString'](),_0x4a566b=new p[(_0x16ac44(0x1f7))](ft+a['Tools'][_0x16ac44(0x1a6)](B),{'pointsGroup':_0x1cf8ad,'fill':_0x266b89||p[_0x16ac44(0x180)](a[_0x16ac44(0x11e)][_0x16ac44(0x333)],0.2),'left':_0x2f57b7,'top':_0x45304b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x16ac44(0x1fc)]['push'](_0x4a566b),this[_0x16ac44(0x2ea)][_0x16ac44(0x303)](_0x4a566b,b[_0x16ac44(0x29c)]);}[_0x3564dd(0x369)](_0x4138c8,_0xcd1d01,_0x23405d,_0x4475d1){const _0x156fe5=_0x3564dd,_0xe64def=new a['ColorKit'](_0x4138c8)[_0x156fe5(0x281)](0.2)['toRgbString'](),_0x10707e=new p[(_0x156fe5(0x1f7))](St+a[_0x156fe5(0x274)]['generateRandomId'](B),{'pointsGroup':_0xcd1d01,'fill':_0xe64def||p[_0x156fe5(0x180)](a[_0x156fe5(0x11e)]['black'],0.2),'left':_0x23405d,'top':_0x4475d1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x156fe5(0x159)](_0x10707e),this[_0x156fe5(0x2ea)][_0x156fe5(0x303)](_0x10707e,b[_0x156fe5(0x29c)]);}['_getAnchorBounding'](_0x1096ad){const _0x341688=_0x1096ad[0x0],_0x2e8a41=_0x341688[0x0],_0x5d08c7=_0x341688[0x2],{x:_0x507115,y:_0x12032e}=_0x2e8a41,{x:_0x44c6af,y:_0x46f229}=_0x5d08c7;return{'left':_0x507115,'top':_0x12032e,'width':_0x44c6af-_0x507115,'height':_0x46f229-_0x12032e};}[_0x3564dd(0x297)](){const _0x50f0da=_0x3564dd,{scaleX:_0x3dee3a,scaleY:_0x1f7b2c}=this[_0x50f0da(0x2ea)]['getAncestorScale']();return Math[_0x50f0da(0x269)](_0x3dee3a,_0x1f7b2c);}}var mt=Object[_0x3564dd(0x29b)],Ct=(_0x2c8437,_0x5babe6,_0x1f910d,_0x4ed925)=>{const _0x5afb06=_0x3564dd;for(var _0x42ec06=_0x4ed925>0x1?void 0x0:_0x4ed925?mt(_0x5babe6,_0x1f910d):_0x5babe6,_0x280ffb=_0x2c8437[_0x5afb06(0x2a6)]-0x1,_0x370280;_0x280ffb>=0x0;_0x280ffb--)(_0x370280=_0x2c8437[_0x280ffb])&&(_0x42ec06=_0x370280(_0x42ec06)||_0x42ec06);return _0x42ec06;},X=(_0x50e6e0,_0x4a4743)=>(_0x477e35,_0x75ed3c)=>_0x4a4743(_0x477e35,_0x75ed3c,_0x50e6e0);let ge=class extends a[_0x3564dd(0x31a)]{constructor(_0x4fe565,_0x1464ee,_0x9110bd,_0x5ea072,_0x56a6b6){const _0x495a4f=_0x3564dd;super(),h(this,_0x495a4f(0x22b),[]),h(this,_0x495a4f(0x12d),[]),(this[_0x495a4f(0x1dd)]=_0x4fe565,this[_0x495a4f(0x34e)]=_0x1464ee,this['_collabCursorController']=_0x9110bd,this['_commandService']=_0x5ea072,this[_0x495a4f(0x388)]=_0x56a6b6,this[_0x495a4f(0x355)]());}[_0x3564dd(0x355)](){const _0x8d11d=_0x3564dd,_0x5689e5=this[_0x8d11d(0x1dd)]['unitId'],_0x314a1e=this['_docSkeletonManagerService'];this[_0x8d11d(0x2a4)](d[_0x8d11d(0x200)]([this[_0x8d11d(0x2dc)]['getCollabCursors$'](_0x5689e5),this[_0x8d11d(0x388)]['currentTheme$']])[_0x8d11d(0x268)]($[_0x8d11d(0x1d1)](([_0x48ccf6,_0x54a1a8])=>({'skeleton':_0x314a1e[_0x8d11d(0x1d0)](),'cursors':[..._0x48ccf6[_0x8d11d(0x389)]()][_0x8d11d(0x232)](_0x3e83e4=>({..._0x3e83e4,'color':_0x54a1a8[_0x3e83e4[_0x8d11d(0x121)]]}))})))[_0x8d11d(0x2b7)](_0x277f72=>{const _0x9f144e=_0x8d11d;if(this[_0x9f144e(0x2d8)](),_0x277f72){const {skeleton:_0x211d53,cursors:_0x854695}=_0x277f72;this['_updateCollabCursors'](_0x211d53,_0x854695);}})),this[_0x8d11d(0x2af)](),this[_0x8d11d(0x1ff)]();}[_0x3564dd(0x275)](_0x32cb60,_0x501001){const _0x136b1b=_0x3564dd,{scene:_0x50db88,mainComponent:_0x1f3cb4}=this[_0x136b1b(0x1dd)],_0x4f19f4=_0x501001['map'](_0x2d8a13=>new Ue(_0x2d8a13,_0x50db88,_0x32cb60,_0x1f3cb4));this[_0x136b1b(0x22b)]=_0x4f19f4,this[_0x136b1b(0x12d)]=_0x501001;}[_0x3564dd(0x277)](){const _0x3a705e=_0x3564dd;this[_0x3a705e(0x2d8)]();const {scene:_0x8fdb4,mainComponent:_0xd271eb}=this[_0x3a705e(0x1dd)],_0x3016ce=this[_0x3a705e(0x34e)][_0x3a705e(0x1d0)](),_0x3f32ee=this['_cursors'][_0x3a705e(0x1d1)](_0x2d5344=>new Ue(_0x2d5344,_0x8fdb4,_0x3016ce,_0xd271eb));this['_cursorShapes']=_0x3f32ee;}[_0x3564dd(0x2d8)](){const _0x140cbb=_0x3564dd;this['_cursorShapes']['forEach'](_0x40014a=>_0x40014a[_0x140cbb(0x1f9)]()),this[_0x140cbb(0x22b)]=[];}[_0x3564dd(0x1ff)](){const _0x514590=_0x3564dd,_0x9f622e=[b[_0x514590(0x207)]['id']];this[_0x514590(0x2a4)](this[_0x514590(0x1c7)][_0x514590(0x1eb)](_0x32b10f=>{const _0x292442=_0x514590;_0x9f622e['includes'](_0x32b10f['id'])&&_0x32b10f['params'][_0x292442(0x215)]===this['_context']['unitId']&&this['_refreshCollabCursors']();}));}[_0x3564dd(0x2af)](){const _0xf6147=_0x3564dd;this[_0xf6147(0x2a4)](a['fromEventSubject'](this[_0xf6147(0x1dd)][_0xf6147(0x334)][_0xf6147(0x2c1)])['pipe']($[_0xf6147(0x32b)](_0x284340=>_0x284340['type']===p[_0xf6147(0x371)][_0xf6147(0x1ee)]),$['throttleTime'](0x10))[_0xf6147(0x2b7)](()=>{this['_refreshCollabCursors']();}));}};ge=Ct([X(0x1,a[_0x3564dd(0x265)](Y[_0x3564dd(0x140)])),X(0x2,a[_0x3564dd(0x265)](x)),X(0x3,a[_0x3564dd(0x165)]),X(0x4,a[_0x3564dd(0x265)](a[_0x3564dd(0x1ec)]))],ge);const pt=0x1,bt=1.5;class Ae extends p[_0x3564dd(0x154)]{constructor(_0x4d0a2f,_0x3bd344){const _0x41dd20=_0x3564dd;super(_0x4d0a2f,_0x3bd344),h(this,'_color'),h(this,'_hovered',!0x1),h(this,'_range'),h(this,_0x41dd20(0x2c0),''),h(this,'_labelPosition',_0x41dd20(0x362)),h(this,'_backgroundColor'),(_0x3bd344&&this['setShapeProps'](_0x3bd344),this[_0x41dd20(0x26c)][_0x41dd20(0x1b2)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3564dd(0x25c)](_0x256070){const _0x1f50fc=_0x3564dd;var _0x48c424,_0xbffb2f,_0x5571cb,_0x17a191,_0x5de116,_0x57169e;this[_0x1f50fc(0x1a4)]=(_0x48c424=_0x256070[_0x1f50fc(0x121)])!=null?_0x48c424:this[_0x1f50fc(0x1a4)],this[_0x1f50fc(0x260)]=(_0xbffb2f=_0x256070[_0x1f50fc(0x282)])!=null?_0xbffb2f:this['_hovered'],this[_0x1f50fc(0x1ca)]=(_0x5571cb=_0x256070[_0x1f50fc(0x23f)])!=null?_0x5571cb:this[_0x1f50fc(0x1ca)],this[_0x1f50fc(0x2c0)]=(_0x17a191=_0x256070['name'])!=null?_0x17a191:this[_0x1f50fc(0x2c0)],this[_0x1f50fc(0x1c3)]=(_0x5de116=_0x256070[_0x1f50fc(0x324)])!=null?_0x5de116:this[_0x1f50fc(0x1c3)],this[_0x1f50fc(0x2f1)]=(_0x57169e=_0x256070['backgroundColor'])!=null?_0x57169e:this['_backgroundColor'],this[_0x1f50fc(0x22c)]({'width':_0x256070[_0x1f50fc(0x267)],'height':_0x256070[_0x1f50fc(0x24f)]});}[_0x3564dd(0x11d)](_0x3653be){const _0x1b54bc=_0x3564dd,{row:_0x4ca1d8,column:_0x96ee5e}=_0x3653be;if(_0x4ca1d8>=this[_0x1b54bc(0x1ca)][_0x1b54bc(0x1cb)]&&_0x4ca1d8<=this[_0x1b54bc(0x1ca)][_0x1b54bc(0x23e)]&&_0x96ee5e>=this['_range'][_0x1b54bc(0x273)]&&_0x96ee5e<=this[_0x1b54bc(0x1ca)][_0x1b54bc(0x384)]){this[_0x1b54bc(0x25c)]({'hovered':!0x0});return;}this[_0x1b54bc(0x25c)]({'hovered':!0x1});}[_0x3564dd(0x18e)](_0x533dc9){return!0x1;}['_draw'](_0xdc71e1){const _0x4bf108=_0x3564dd;p[_0x4bf108(0x368)][_0x4bf108(0x225)](_0xdc71e1,{'width':this[_0x4bf108(0x267)],'height':this['height'],'strokeWidth':bt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4bf108(0x2f1)]}),this[_0x4bf108(0x260)]&&(_0xdc71e1[_0x4bf108(0x318)](),_0xdc71e1[_0x4bf108(0x25f)](0x1,0x0,0x0,0x1,this[_0x4bf108(0x267)],this[_0x4bf108(0x1c3)]===_0x4bf108(0x328)?0x0:-0x14),te[_0x4bf108(0x225)](_0xdc71e1,{'text':this[_0x4bf108(0x2c0)],'color':this[_0x4bf108(0x1a4)]}),_0xdc71e1[_0x4bf108(0x2eb)]());}}var Et=Object['getOwnPropertyDescriptor'],Tt=(_0x13f242,_0x33b1d7,_0x3d8c5b,_0xb3ca92)=>{const _0x2a866e=_0x3564dd;for(var _0x5cc38f=_0xb3ca92>0x1?void 0x0:_0xb3ca92?Et(_0x33b1d7,_0x3d8c5b):_0x33b1d7,_0x519cd5=_0x13f242[_0x2a866e(0x2a6)]-0x1,_0x2d2839;_0x519cd5>=0x0;_0x519cd5--)(_0x2d2839=_0x13f242[_0x519cd5])&&(_0x5cc38f=_0x2d2839(_0x5cc38f)||_0x5cc38f);return _0x5cc38f;},ce=(_0x365e03,_0x89ed00)=>(_0x4bc843,_0x1a4d0c)=>_0x89ed00(_0x4bc843,_0x1a4d0c,_0x365e03);const Rt=0x1389;let Ie=class extends a[_0x3564dd(0x31a)]{constructor(_0x503aa0,_0x4907b7,_0x7ce514,_0x51bfc1){const _0x4bbc6b=_0x3564dd;super(),h(this,_0x4bbc6b(0x12d),new Set()),h(this,_0x4bbc6b(0x335),null),(this['_context']=_0x503aa0,this[_0x4bbc6b(0x1c4)]=_0x4907b7,this[_0x4bbc6b(0x2dc)]=_0x7ce514,this[_0x4bbc6b(0x388)]=_0x51bfc1,this[_0x4bbc6b(0x355)]());}['_init'](){const _0x196522=_0x3564dd;this[_0x196522(0x1c4)][_0x196522(0x1e4)][_0x196522(0x268)]($[_0x196522(0x152)](this[_0x196522(0x166)]),$[_0x196522(0x2ab)](_0x17057e=>{const _0x307308=_0x196522;if(_0x17057e){const _0x37c5aa=_0x17057e[_0x307308(0x2b0)];return d['combineLatest'](this['_collabCursorController'][_0x307308(0x26d)](this[_0x307308(0x1dd)]['unitId']),this[_0x307308(0x388)][_0x307308(0x1c2)])['pipe']($[_0x307308(0x1d1)](([_0xa3be14,_0x110478])=>{const _0x2c647e=_0x307308,_0x179bba=new Map();return _0xa3be14[_0x2c647e(0x2c8)]((_0x425fa1,_0x5d49e1)=>{const _0x1a5b2a=_0x2c647e;if(_0x425fa1[_0x1a5b2a(0x25a)]===_0x37c5aa){const _0x3748be={..._0x425fa1};_0x3748be[_0x1a5b2a(0x121)]=_0x110478[_0x425fa1['color']],_0x179bba[_0x1a5b2a(0x34b)](_0x5d49e1,_0x3748be);}}),{'skeleton':_0x17057e,'cursors':_0x179bba};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x196522(0x2b7)](({skeleton:_0x16deaf,cursors:_0xbedd94})=>{const _0x19e440=_0x196522;this[_0x19e440(0x2d8)](),_0x16deaf&&this[_0x19e440(0x275)](_0x16deaf,_0xbedd94);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x1b0cf2=>{const _0x5eafe4=_0x196522;if(_0x1b0cf2==null)return;const {skeleton:_0x4a5ef8}=_0x1b0cf2,{scene:_0x2210ad}=this['_context'];_0x2210ad[_0x5eafe4(0x20d)]['subscribeEvent'](a[_0x5eafe4(0x1cd)](_0x3b7b32=>{const _0xda4de0=_0x5eafe4;var _0x317fb1,_0x988cc4;const {offsetX:_0x165377,offsetY:_0x5c7b2c}=_0x3b7b32,{x:_0x133e5a,y:_0x290e8e}=_0x2210ad[_0xda4de0(0x27e)](p[_0xda4de0(0x353)][_0xda4de0(0x2d7)]([_0x165377,_0x5c7b2c])),{scaleX:_0x63450c,scaleY:_0xc13d88}=_0x2210ad[_0xda4de0(0x1a9)](),_0x312296=_0x2210ad[_0xda4de0(0x1b6)](p[_0xda4de0(0x1b8)]['VIEW_MAIN']),_0x21e1e6=_0x2210ad['getVpScrollXYInfoByPosToVp'](p[_0xda4de0(0x353)][_0xda4de0(0x2d7)]([_0x133e5a,_0x290e8e]),_0x312296),_0x4af587=_0x4a5ef8['getCellPositionByOffset'](_0x165377,_0x5c7b2c,_0x63450c,_0xc13d88,_0x21e1e6);((_0x317fb1=this[_0xda4de0(0x335)])==null?void 0x0:_0x317fb1[_0xda4de0(0x2c3)])===_0x4af587['column']&&((_0x988cc4=this[_0xda4de0(0x335)])==null?void 0x0:_0x988cc4['row'])===_0x4af587[_0xda4de0(0x2a8)]||this[_0xda4de0(0x12d)][_0xda4de0(0x2c8)](_0x396919=>{const _0x35d0bb=_0xda4de0;_0x396919[_0x35d0bb(0x11d)](_0x4af587);});},0x64));});}[_0x3564dd(0x275)](_0x54f1b7,_0x3e5a62){const _0x57cf5b=_0x3564dd;var _0x579023;const _0x4c39b2=(_0x579023=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x579023[_0x57cf5b(0x35b)];if(!_0x4c39b2)return;const _0x1b7d98=this[_0x57cf5b(0x132)]();if(!_0x1b7d98)return;this['_cursors'][_0x57cf5b(0x2c8)](_0x403858=>{const _0x53f03b=_0x57cf5b;_0x403858[_0x53f03b(0x20c)]();});const {scene:_0x1b2006}=_0x1b7d98,_0xad44c0=Ot(Array[_0x57cf5b(0x243)](_0x3e5a62[_0x57cf5b(0x389)]()))[_0x57cf5b(0x1d1)](_0x440063=>{const _0x23d331=_0x57cf5b,{color:_0x3eb274,range:_0x10db1d,name:_0x43a3f1,selection:_0x32789d,sheetID:_0x1d39ac}=_0x440063,{startColumn:_0x2bc4a5,startRow:_0x5a113c,endColumn:_0x58c3fb,endRow:_0x474d72}=_0x10db1d,_0x433d37=G[_0x23d331(0x14b)](_0x5a113c,_0x2bc4a5,_0x1b2006,_0x4c39b2),_0x16414e=G[_0x23d331(0x14b)](_0x474d72,_0x58c3fb,_0x1b2006,_0x4c39b2),{columnHeaderHeightAndMarginTop:_0x1736f5}=_0x4c39b2,{startX:_0x37f6d4,startY:_0x1cdc0c}=_0x433d37,{endX:_0x477540,endY:_0x590439}=_0x16414e,_0x35c5cf=_0x477540-_0x37f6d4,_0x6d3219=_0x590439-_0x1cdc0c,_0x5ac80e={'labelPosition':_0x1cdc0c-_0x1736f5>=K?_0x23d331(0x362):_0x23d331(0x328),'sheetID':_0x1d39ac,'range':_0x10db1d,'color':_0x3eb274,'name':_0x43a3f1,'selection':_0x32789d,'left':_0x37f6d4,'top':_0x1cdc0c,'width':_0x35c5cf,'height':_0x6d3219,'evented':!0x1,'zIndex':Rt};return new Ae(_0x43a3f1,_0x5ac80e);});_0x1b2006[_0x57cf5b(0x19f)](_0xad44c0,pt),this[_0x57cf5b(0x12d)]=new Set(_0xad44c0);}[_0x3564dd(0x2d8)](){const _0x2e01d9=_0x3564dd;var _0x23fd58;(_0x23fd58=this['_cursors'])==null||_0x23fd58[_0x2e01d9(0x2c8)](_0x39fd33=>_0x39fd33[_0x2e01d9(0x1f9)]());}[_0x3564dd(0x132)](){const _0x40bb6f=_0x3564dd;return G[_0x40bb6f(0x336)](this[_0x40bb6f(0x1dd)]['unit'],this[_0x40bb6f(0x1dd)]);}};Ie=Tt([ce(0x1,a[_0x3564dd(0x265)](G[_0x3564dd(0x36b)])),ce(0x2,a['Inject'](x)),ce(0x3,a[_0x3564dd(0x265)](a[_0x3564dd(0x1ec)]))],Ie);function Ot(_0x19503c){const _0x13fba3=_0x3564dd,_0x402bd9=new Map();return _0x19503c[_0x13fba3(0x2c8)](_0x457c36=>{const _0x2ac619=_0x13fba3;if(_0x402bd9[_0x2ac619(0x251)](_0x457c36['selection'])){const _0x529cb5=_0x402bd9['get'](_0x457c36[_0x2ac619(0x2b9)]);_0x529cb5[_0x2ac619(0x261)]+=',\x20'+_0x457c36[_0x2ac619(0x261)];}else _0x402bd9[_0x2ac619(0x34b)](_0x457c36['selection'],_0x457c36);}),Array[_0x13fba3(0x243)](_0x402bd9[_0x13fba3(0x389)]());}var E=function(){const _0x9ef2e=_0x3564dd;return E=Object[_0x9ef2e(0x231)]||function(_0x12aac9){const _0x219440=_0x9ef2e;for(var _0x2185c7,_0x12b3a0=0x1,_0xe21934=arguments[_0x219440(0x2a6)];_0x12b3a0<_0xe21934;_0x12b3a0++){_0x2185c7=arguments[_0x12b3a0];for(var _0x5c9186 in _0x2185c7)Object[_0x219440(0x127)]['hasOwnProperty']['call'](_0x2185c7,_0x5c9186)&&(_0x12aac9[_0x5c9186]=_0x2185c7[_0x5c9186]);}return _0x12aac9;},E[_0x9ef2e(0x349)](this,arguments);},Dt=function(_0x876389,_0x111a9c){const _0x221d54=_0x3564dd;var _0x240a8c={};for(var _0x3207df in _0x876389)Object[_0x221d54(0x127)]['hasOwnProperty'][_0x221d54(0x2b5)](_0x876389,_0x3207df)&&_0x111a9c[_0x221d54(0x2ad)](_0x3207df)<0x0&&(_0x240a8c[_0x3207df]=_0x876389[_0x3207df]);if(_0x876389!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x2e61e8=0x0,_0x3207df=Object[_0x221d54(0x21f)](_0x876389);_0x2e61e8<_0x3207df[_0x221d54(0x2a6)];_0x2e61e8++)_0x111a9c[_0x221d54(0x2ad)](_0x3207df[_0x2e61e8])<0x0&&Object[_0x221d54(0x127)][_0x221d54(0x19e)]['call'](_0x876389,_0x3207df[_0x2e61e8])&&(_0x240a8c[_0x3207df[_0x2e61e8]]=_0x876389[_0x3207df[_0x2e61e8]]);}return _0x240a8c;},be=P['forwardRef'](function(_0x557c02,_0x3e3b41){const _0x168f9c=_0x3564dd;var _0x22a7a9=_0x557c02[_0x168f9c(0x177)],_0xd1e674=_0x557c02['id'],_0x407eeb=_0x557c02[_0x168f9c(0x317)],_0x15f268=_0x557c02[_0x168f9c(0x1bc)],_0x42b1a1=Dt(_0x557c02,[_0x168f9c(0x177),'id','className',_0x168f9c(0x1bc)]),_0x4b1bfb=_0x168f9c(0x24d)[_0x168f9c(0x1de)](_0xd1e674,'\x20')[_0x168f9c(0x1de)](_0x407eeb||'')[_0x168f9c(0x37a)](),_0xe7b6e0=P[_0x168f9c(0x311)]('_'[_0x168f9c(0x1de)](Pt()));return $e(_0x22a7a9,''[_0x168f9c(0x1de)](_0xd1e674),{'defIds':_0x22a7a9[_0x168f9c(0x2e7)],'idSuffix':_0xe7b6e0[_0x168f9c(0x2e1)]},E({'ref':_0x3e3b41,'className':_0x4b1bfb},_0x42b1a1),_0x15f268);});function $e(_0x4f1c45,_0x2acd5f,_0x105a85,_0x1e973f,_0x45dc81){const _0x352434=_0x3564dd;return P['createElement'](_0x4f1c45[_0x352434(0x25b)],E(E({'key':_0x2acd5f},Ut(_0x4f1c45,_0x105a85,_0x45dc81)),_0x1e973f),(Mt(_0x4f1c45,_0x105a85)[_0x352434(0x212)]||[])['map'](function(_0x1e5539,_0x488448){const _0x26280a=_0x352434;return $e(_0x1e5539,''['concat'](_0x2acd5f,'-')[_0x26280a(0x1de)](_0x4f1c45['tag'],'-')[_0x26280a(0x1de)](_0x488448),_0x105a85,void 0x0,_0x45dc81);}));}function Ut(_0x2438f2,_0x344b50,_0xa411d9){const _0x10c1ba=_0x3564dd;var _0x25ac2f=E({},_0x2438f2['attrs']);_0xa411d9!=null&&_0xa411d9[_0x10c1ba(0x2e8)]&&_0x25ac2f[_0x10c1ba(0x290)]===_0x10c1ba(0x2e8)&&(_0x25ac2f[_0x10c1ba(0x290)]=_0xa411d9['colorChannel1']),_0x2438f2[_0x10c1ba(0x25b)]==='mask'&&_0x25ac2f['id']&&(_0x25ac2f['id']=_0x25ac2f['id']+_0x344b50[_0x10c1ba(0x36e)]),Object['entries'](_0x25ac2f)['forEach'](function(_0x20252e){const _0x463ec8=_0x10c1ba;var _0x37ec36=_0x20252e[0x0],_0x86f97e=_0x20252e[0x1];_0x37ec36===_0x463ec8(0x280)&&typeof _0x86f97e==_0x463ec8(0x294)&&(_0x25ac2f[_0x37ec36]=_0x86f97e[_0x463ec8(0x226)](/url\(#(.*)\)/,_0x463ec8(0x2d9)['concat'](_0x344b50[_0x463ec8(0x36e)],')')));});var _0x104822=_0x344b50['defIds'];return!_0x104822||_0x104822[_0x10c1ba(0x2a6)]===0x0||(_0x2438f2[_0x10c1ba(0x25b)]==='use'&&_0x25ac2f[_0x10c1ba(0x26e)]&&(_0x25ac2f[_0x10c1ba(0x26e)]=_0x25ac2f[_0x10c1ba(0x26e)]+_0x344b50[_0x10c1ba(0x36e)]),Object[_0x10c1ba(0x1a0)](_0x25ac2f)['forEach'](function(_0x5e7629){const _0xea2efc=_0x10c1ba;var _0x3c36b0=_0x5e7629[0x0],_0x33e30b=_0x5e7629[0x1];typeof _0x33e30b==_0xea2efc(0x294)&&(_0x25ac2f[_0x3c36b0]=_0x33e30b[_0xea2efc(0x226)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x344b50['idSuffix'],')')));})),_0x25ac2f;}function Mt(_0x4c866f,_0x125676){const _0x489af7=_0x3564dd;var _0x5830e5,_0x54166d=_0x125676[_0x489af7(0x2e7)];return!_0x54166d||_0x54166d['length']===0x0?_0x4c866f:_0x4c866f[_0x489af7(0x25b)]==='defs'&&(!((_0x5830e5=_0x4c866f[_0x489af7(0x212)])===null||_0x5830e5===void 0x0)&&_0x5830e5[_0x489af7(0x2a6)])?E(E({},_0x4c866f),{'children':_0x4c866f[_0x489af7(0x212)][_0x489af7(0x1d1)](function(_0x319fae){const _0x196718=_0x489af7;return typeof _0x319fae[_0x196718(0x163)]['id']==_0x196718(0x294)&&_0x54166d&&_0x54166d['indexOf'](_0x319fae[_0x196718(0x163)]['id'])>-0x1?E(E({},_0x319fae),{'attrs':E(E({},_0x319fae['attrs']),{'id':_0x319fae[_0x196718(0x163)]['id']+_0x125676[_0x196718(0x36e)]})}):_0x319fae;})}):_0x4c866f;}function Pt(){const _0x421ab8=_0x3564dd;return Math[_0x421ab8(0x128)]()['toString'](0x24)[_0x421ab8(0x2fa)](0x2,0x8);}be[_0x3564dd(0x18d)]=_0x3564dd(0x316);var Nt={'tag':'svg','attrs':{'fill':_0x3564dd(0x2a2),'viewBox':_0x3564dd(0x198),'width':_0x3564dd(0x379),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3564dd(0x2a1)},'children':[{'tag':_0x3564dd(0x181),'attrs':{'stroke':_0x3564dd(0x117),'d':_0x3564dd(0x29e),'strokeLinecap':_0x3564dd(0x144),'strokeLinejoin':_0x3564dd(0x144),'strokeWidth':1.2}}]},{'tag':_0x3564dd(0x372),'attrs':{},'children':[{'tag':_0x3564dd(0x271),'attrs':{'id':_0x3564dd(0x234)},'children':[{'tag':'path','attrs':{'fill':_0x3564dd(0x264),'d':_0x3564dd(0x246)}}]}]}],'defIds':[_0x3564dd(0x234)]},xe=P[_0x3564dd(0x187)](function(_0x211caa,_0x1bcbf1){const _0x3b8183=_0x3564dd;return P[_0x3b8183(0x2b1)](be,Object[_0x3b8183(0x231)]({},_0x211caa,{'id':_0x3b8183(0x241),'ref':_0x1bcbf1,'icon':Nt}));});xe[_0x3564dd(0x18d)]=_0x3564dd(0x1b7);var wt={'tag':_0x3564dd(0x218),'attrs':{'fill':_0x3564dd(0x2a2),'viewBox':_0x3564dd(0x167),'width':_0x3564dd(0x379),'height':_0x3564dd(0x379)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x3564dd(0x181),'attrs':{'stroke':_0x3564dd(0x117),'d':_0x3564dd(0x134),'strokeLinecap':'round','strokeLinejoin':_0x3564dd(0x144),'strokeWidth':1.2}}]},{'tag':_0x3564dd(0x372),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x3564dd(0x181),'attrs':{'fill':_0x3564dd(0x264),'d':_0x3564dd(0x246),'transform':_0x3564dd(0x191)}}]}]}],'defIds':[_0x3564dd(0x257)]},je=P[_0x3564dd(0x187)](function(_0x372162,_0x5ce7b6){const _0x4b0e2e=_0x3564dd;return P[_0x4b0e2e(0x2b1)](be,Object['assign']({},_0x372162,{'id':_0x4b0e2e(0x12e),'ref':_0x5ce7b6,'icon':wt}));});je['displayName']=_0x3564dd(0x32e);function ke(_0x328c18){const _0x25e324=_0x3564dd;var _0x4327f2,_0x3eb93b,_0x28151a='';if(typeof _0x328c18==_0x25e324(0x294)||typeof _0x328c18==_0x25e324(0x34a))_0x28151a+=_0x328c18;else{if(typeof _0x328c18=='object'){if(Array['isArray'](_0x328c18)){var _0x2e6625=_0x328c18[_0x25e324(0x2a6)];for(_0x4327f2=0x0;_0x4327f2<_0x2e6625;_0x4327f2++)_0x328c18[_0x4327f2]&&(_0x3eb93b=ke(_0x328c18[_0x4327f2]))&&(_0x28151a&&(_0x28151a+='\x20'),_0x28151a+=_0x3eb93b);}else{for(_0x3eb93b in _0x328c18)_0x328c18[_0x3eb93b]&&(_0x28151a&&(_0x28151a+='\x20'),_0x28151a+=_0x3eb93b);}}}return _0x28151a;}function Me(){for(var _0x2e3674,_0x2b13d0,_0x1a5e13=0x0,_0x5efacd='',_0x1f912e=arguments['length'];_0x1a5e13<_0x1f912e;_0x1a5e13++)(_0x2e3674=arguments[_0x1a5e13])&&(_0x2b13d0=ke(_0x2e3674))&&(_0x5efacd&&(_0x5efacd+='\x20'),_0x5efacd+=_0x2b13d0);return _0x5efacd;}const Lt=_0x3564dd(0x131),yt=_0x3564dd(0x28b),At=_0x3564dd(0x312),$t='univer-online',xt='univer-offline',H={'onlineStatusIcon':Lt,'onlineStatusTitle':yt,'onlineStatus':At,'online':$t,'offline':xt};function _0x1bdc(_0x4d0dd2,_0x19ce06){const _0x3dd1a4=_0x3dd1();return _0x1bdc=function(_0x1bdc8c,_0x4cddf2){_0x1bdc8c=_0x1bdc8c-0x115;let _0x381854=_0x3dd1a4[_0x1bdc8c];return _0x381854;},_0x1bdc(_0x4d0dd2,_0x19ce06);}function jt(_0x3c5ec0){const _0x55d617=_0x3564dd;switch(_0x3c5ec0){case _[_0x55d617(0x2b2)][_0x55d617(0x172)]:return'collabStatus.offline';case _[_0x55d617(0x2b2)][_0x55d617(0x331)]:return _0x55d617(0x339);case _[_0x55d617(0x2b2)]['FETCH_MISS']:return _0x55d617(0x2dd);case _['CollaborationStatus'][_0x55d617(0x176)]:return'collabStatus.notCollab';case _[_0x55d617(0x2b2)][_0x55d617(0x366)]:case _[_0x55d617(0x2b2)][_0x55d617(0x283)]:return'collabStatus.syncing';case _[_0x55d617(0x2b2)][_0x55d617(0x301)]:case _[_0x55d617(0x2b2)][_0x55d617(0x204)]:return _0x55d617(0x2e4);}}function Be(_0x187fc8){const _0x28621b=_0x3564dd,{status$:_0x1b0536}=_0x187fc8,_0x2fe19c=T[_0x28621b(0x156)](_0x1b0536,_[_0x28621b(0x2b2)][_0x28621b(0x176)]),_0x4160ab=T['useDependency'](a[_0x28621b(0x1a5)]),_0xbb6401=T['useDependency'](_[_0x28621b(0x2c9)]),_0x58af1d=_0x2fe19c!==_[_0x28621b(0x2b2)][_0x28621b(0x172)],_0xd5ed5d=_0x4160ab['t'](jt(_0x2fe19c)),_0x162cc4=Me(H[_0x28621b(0x126)],{[H['online']]:_0x58af1d,[H[_0x28621b(0x356)]]:!_0x58af1d}),_0xff9fec=_0x58af1d?w[_0x28621b(0x210)](je,{}):w[_0x28621b(0x210)](xe,{}),_0x1e6517=P[_0x28621b(0x33f)](()=>{const _0x34df07=_0x28621b;_0x58af1d||_0xbb6401[_0x34df07(0x295)]();},[_0x58af1d,_0xbb6401]);function _0x3bfe08(){const _0x2834d7=_0x28621b;return w[_0x2834d7(0x377)](_0x2834d7(0x27f),{'className':Me(_0x162cc4,_0x2834d7(0x1be)),'onClick':_0x1e6517,'children':[w['jsx'](_0x2834d7(0x27f),{'className':H[_0x2834d7(0x1d5)],'children':_0xff9fec}),w[_0x2834d7(0x210)]('div',{'className':H['onlineStatusTitle'],'children':_0xd5ed5d})]});}return _0x58af1d?_0x3bfe08():w['jsx'](M[_0x28621b(0x239)],{'title':_0x4160ab['t'](_0x28621b(0x36c)),'children':_0x3bfe08()});}var kt=Object['getOwnPropertyDescriptor'],Bt=(_0x5356f4,_0x299b2e,_0x2c255d,_0xe899ef)=>{const _0x41b45d=_0x3564dd;for(var _0x36abfb=_0xe899ef>0x1?void 0x0:_0xe899ef?kt(_0x299b2e,_0x2c255d):_0x299b2e,_0xcda3c0=_0x5356f4[_0x41b45d(0x2a6)]-0x1,_0x4147d7;_0xcda3c0>=0x0;_0xcda3c0--)(_0x4147d7=_0x5356f4[_0xcda3c0])&&(_0x36abfb=_0x4147d7(_0x36abfb)||_0x36abfb);return _0x36abfb;},V=(_0x52e67b,_0x132718)=>(_0x2a7f14,_0x344fb5)=>_0x132718(_0x2a7f14,_0x344fb5,_0x52e67b);exports[_0x3564dd(0x1f2)]=class extends a[_0x3564dd(0x387)]{constructor(_0x1bd5f3,_0x1658a5,_0x6a859e,_0x535a21){const _0x4439de=_0x3564dd;super(),h(this,_0x4439de(0x16e),new d['BehaviorSubject'](_[_0x4439de(0x2b2)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x1bd5f3,this[_0x4439de(0x337)]=_0x1658a5,this[_0x4439de(0x32f)]=_0x6a859e,this['_uiPartsService']=_0x535a21,this[_0x4439de(0x2a9)](),this['_initStatusListener']());}[_0x3564dd(0x11f)](){const _0x8a4682=_0x3564dd;this[_0x8a4682(0x2a4)](this[_0x8a4682(0x354)][_0x8a4682(0x370)][_0x8a4682(0x268)](d[_0x8a4682(0x2ab)](()=>{const _0x8dae1d=_0x8a4682,_0x3e092e=this[_0x8dae1d(0x354)]['getFocusedUnit']();return _0x3e092e?this[_0x8dae1d(0x32f)][_0x8dae1d(0x293)](_0x3e092e[_0x8dae1d(0x2cf)]()):d['of'](null);}),d[_0x8a4682(0x2ab)](_0x194403=>_0x194403?_0x194403[_0x8a4682(0x217)]:d['of'](_[_0x8a4682(0x2b2)][_0x8a4682(0x176)])))[_0x8a4682(0x2b7)](_0x5e5ab5=>{const _0x3612eb=_0x8a4682;this[_0x3612eb(0x16e)]['next'](_0x5e5ab5);}));}['_initStatusComponent'](){const _0x51d246=_0x3564dd;this[_0x51d246(0x2a4)](this[_0x51d246(0x19a)]['registerComponent'](T['BuiltInUIPart'][_0x51d246(0x28c)],()=>T[_0x51d246(0x2ee)](Ht({'status$':this['_status$'][_0x51d246(0x184)]()}),this[_0x51d246(0x337)])));}},exports[_0x3564dd(0x1f2)]=Bt([V(0x0,a[_0x3564dd(0x34d)]),V(0x1,a[_0x3564dd(0x265)](a[_0x3564dd(0x11c)])),V(0x2,a[_0x3564dd(0x265)](_[_0x3564dd(0x347)])),V(0x3,T['IUIPartsService'])],exports['DesktopCollaborationStatusDisplayController']);function Ht(_0x3a22e3){const {status$:_0x510bcb}=_0x3a22e3;return function(){const _0x3c53f3=_0x1bdc;return w[_0x3c53f3(0x210)](Be,{'status$':_0x510bcb});};}var Wt=Object['getOwnPropertyDescriptor'],Ft=(_0x4c8578,_0x6f1a6,_0xc79a8,_0x32f946)=>{for(var _0x5aa43d=_0x32f946>0x1?void 0x0:_0x32f946?Wt(_0x6f1a6,_0xc79a8):_0x6f1a6,_0x6bec2d=_0x4c8578['length']-0x1,_0x527bd8;_0x6bec2d>=0x0;_0x6bec2d--)(_0x527bd8=_0x4c8578[_0x6bec2d])&&(_0x5aa43d=_0x527bd8(_0x5aa43d)||_0x5aa43d);return _0x5aa43d;},A=(_0x5d1ef3,_0x419b14)=>(_0x436dc4,_0xd436e)=>_0x419b14(_0x436dc4,_0xd436e,_0x5d1ef3);let z=class extends a['Disposable']{constructor(_0x2367b7,_0x544c11,_0x326c72,_0x317697,_0x5f3ccb,_0x4489a7){const _0x41c607=_0x3564dd;super(),this[_0x41c607(0x19b)]=_0x2367b7,this[_0x41c607(0x122)]=_0x544c11,this[_0x41c607(0x296)]=_0x326c72,this[_0x41c607(0x298)]=_0x317697,this['_notificationService']=_0x5f3ccb,this[_0x41c607(0x1e2)]=_0x4489a7,this[_0x41c607(0x258)](),this['_initEvent']();}[_0x3564dd(0x258)](){const _0x44c013=_0x3564dd;this[_0x44c013(0x2a4)](this[_0x44c013(0x19b)]['registerBeforeClose'](()=>{const _0x35510d=_0x44c013;if(this[_0x35510d(0x122)]['saveTaskMap']['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x3564dd(0x158)](){const _0x29910e=_0x3564dd;this[_0x29910e(0x2a4)](this[_0x29910e(0x296)]['event$'][_0x29910e(0x2b7)](_0x35fe5d=>{const _0x281edc=_0x29910e;_0x35fe5d['id']===_[_0x281edc(0x216)][_0x281edc(0x21d)]&&this[_0x281edc(0x298)]['show']({'type':M[_0x281edc(0x23a)][_0x281edc(0x386)],'content':this['_localeService']['t'](_0x281edc(0x22f))}),_0x35fe5d['id']===_['CollaborationUIEventId'][_0x281edc(0x1ba)]&&this[_0x281edc(0x298)][_0x281edc(0x20b)]({'type':M[_0x281edc(0x23a)][_0x281edc(0x386)],'content':this[_0x281edc(0x1e2)]['t']('collaboration.closeRoom')}),_0x35fe5d['id']===_[_0x281edc(0x216)][_0x281edc(0x2f7)]&&this['_notificationService'][_0x281edc(0x20b)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x281edc(0x1e2)]['t'](_0x281edc(0x1b5)),'type':_0x281edc(0x2e3),'duration':0x0}),_0x35fe5d['id']===_['CollaborationUIEventId'][_0x281edc(0x331)]&&this['_messageService'][_0x281edc(0x20b)]({'type':M[_0x281edc(0x23a)]['Error'],'content':this[_0x281edc(0x1e2)]['t'](_0x281edc(0x235))+'('+_0x35fe5d[_0x281edc(0x1d2)]+')'}),_0x35fe5d['id']===_[_0x281edc(0x216)][_0x281edc(0x14a)]&&this['_messageService'][_0x281edc(0x20b)]({'type':M[_0x281edc(0x23a)]['Warning'],'content':this[_0x281edc(0x1e2)]['t'](_0x35fe5d[_0x281edc(0x1d2)]||'')}),_0x35fe5d['id']===_[_0x281edc(0x216)]['SOCKET_FAILED_RETRY']&&this[_0x281edc(0x298)]['show']({'type':M[_0x281edc(0x23a)][_0x281edc(0x386)],'content':this[_0x281edc(0x1e2)]['t']('session.will-retry')}),_0x35fe5d['id']===_['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x281edc(0x298)][_0x281edc(0x20b)]({'type':M[_0x281edc(0x23a)]['Error'],'content':this['_localeService']['t']('session.connection-failed')}),_0x35fe5d['id']===_[_0x281edc(0x216)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x281edc(0x298)][_0x281edc(0x20b)]({'type':M[_0x281edc(0x23a)]['Error'],'content':this[_0x281edc(0x1e2)]['t'](_0x281edc(0x327))});}));}};z=Ft([A(0x0,T[_0x3564dd(0x146)]),A(0x1,_[_0x3564dd(0x2d1)]),A(0x2,a[_0x3564dd(0x265)](_[_0x3564dd(0x1e6)])),A(0x3,T[_0x3564dd(0x1b4)]),A(0x4,T[_0x3564dd(0x28a)]),A(0x5,a['Inject'](a[_0x3564dd(0x1a5)]))],z);const Yt=_0x3564dd(0x367),Pe={},Ee=a[_0x3564dd(0x13e)](_0x3564dd(0x1c0));var Xt=Object[_0x3564dd(0x29b)],Vt=(_0x127fa4,_0x1bfd8d,_0x4a10c0,_0x6670b4)=>{const _0x2cdc69=_0x3564dd;for(var _0x1b019b=_0x6670b4>0x1?void 0x0:_0x6670b4?Xt(_0x1bfd8d,_0x4a10c0):_0x1bfd8d,_0xcd4952=_0x127fa4[_0x2cdc69(0x2a6)]-0x1,_0x5d259a;_0xcd4952>=0x0;_0xcd4952--)(_0x5d259a=_0x127fa4[_0xcd4952])&&(_0x1b019b=_0x5d259a(_0x1b019b)||_0x1b019b);return _0x1b019b;},W=(_0x56bcc8,_0x1d4b8e)=>(_0x4acc0d,_0x4bc28b)=>_0x1d4b8e(_0x4acc0d,_0x4bc28b,_0x56bcc8);exports[_0x3564dd(0x161)]=class extends a[_0x3564dd(0x31a)]{constructor(_0x49960c,_0x3c1881,_0x1097c0,_0x45f9a2,_0x470237){const _0xe9445b=_0x3564dd;super(),this[_0xe9445b(0x11b)]=_0x49960c,this[_0xe9445b(0x2fe)]=_0x3c1881,this[_0xe9445b(0x1c7)]=_0x1097c0,this['_dataLoaderService']=_0x45f9a2,_0x470237?_0x470237==null||_0x470237[_0xe9445b(0x306)]()[_0xe9445b(0x2f8)](()=>this[_0xe9445b(0x355)]()):(this[_0xe9445b(0x2fe)]['debug']('[CollaborationDataLoaderController]',_0xe9445b(0x247)),this[_0xe9445b(0x355)]());}async[_0x3564dd(0x355)](){const _0x6050f4=_0x3564dd,_0x5ccca3=this[_0x6050f4(0x11b)][_0x6050f4(0x222)](_0x6050f4(0x21b)),_0x4837eb=this['_urlService'][_0x6050f4(0x222)]('type'),_0x20fb6c=this[_0x6050f4(0x11b)][_0x6050f4(0x222)](_0x6050f4(0x321));if(!_0x5ccca3||!_0x4837eb){this['_logService'][_0x6050f4(0x16f)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1397fc=await this[_0x6050f4(0x18c)][_0x6050f4(0x1aa)](_0x5ccca3,Number(_0x4837eb),_0x20fb6c);_0x1397fc&&_0x1397fc instanceof a['Workbook']&&this[_0x6050f4(0x21c)](_0x1397fc);}async[_0x3564dd(0x21c)](_0x1d4289){const _0xa1b0ff=_0x3564dd;await this[_0xa1b0ff(0x1e0)](_0x1d4289),_0x1d4289[_0xa1b0ff(0x16b)][_0xa1b0ff(0x268)](d[_0xa1b0ff(0x152)](this[_0xa1b0ff(0x166)]))['subscribe'](_0x3ef7f5=>{const _0x3697ba=_0xa1b0ff;_0x3ef7f5&&this[_0x3697ba(0x202)](_0x3ef7f5);}),this[_0xa1b0ff(0x11b)][_0xa1b0ff(0x35d)][_0xa1b0ff(0x268)](d[_0xa1b0ff(0x152)](this[_0xa1b0ff(0x166)]))[_0xa1b0ff(0x2b7)](()=>this[_0xa1b0ff(0x1e0)](_0x1d4289));}[_0x3564dd(0x202)](_0x26ee15,_0x4449f6=!0x1){const _0x50a54d=_0x3564dd,_0x51a6f5=this[_0x50a54d(0x11b)][_0x50a54d(0x222)](_0x50a54d(0x321));_0x26ee15[_0x50a54d(0x1f3)]()!==_0x51a6f5&&this[_0x50a54d(0x11b)][_0x50a54d(0x14f)]('subunit',_0x26ee15[_0x50a54d(0x1f3)](),_0x4449f6);}async[_0x3564dd(0x1e0)](_0x52db7a){const _0x1c04b0=_0x3564dd;var _0x23573c;const _0x57e795=this[_0x1c04b0(0x11b)][_0x1c04b0(0x222)](_0x1c04b0(0x321));if(!_0x57e795||!_0x52db7a[_0x1c04b0(0x205)](_0x57e795)){const _0x56dbb7=_0x52db7a['getUnhiddenWorksheets']()[0x0],_0x4965e6=_0x52db7a[_0x1c04b0(0x205)](_0x56dbb7);if(!_0x4965e6)return;this['_updateURLWithCurrentState'](_0x4965e6,!0x0),await this['_commandService'][_0x1c04b0(0x18a)](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x52db7a[_0x1c04b0(0x2cf)](),'subUnitId':_0x56dbb7});return;}((_0x23573c=_0x52db7a[_0x1c04b0(0x1fb)]())==null?void 0x0:_0x23573c['getSheetId']())!==_0x57e795&&await this['_commandService']['executeCommand'](I[_0x1c04b0(0x270)]['id'],{'unitId':_0x52db7a[_0x1c04b0(0x2cf)](),'subUnitId':_0x57e795});}},exports[_0x3564dd(0x161)]=Vt([W(0x0,Ee),W(0x1,a[_0x3564dd(0x33d)]),W(0x2,a[_0x3564dd(0x165)]),W(0x3,a[_0x3564dd(0x265)](_[_0x3564dd(0x1f5)])),W(0x4,a[_0x3564dd(0x2ed)](Je[_0x3564dd(0x31b)]))],exports[_0x3564dd(0x161)]);var Gt=Object[_0x3564dd(0x29b)],qt=(_0x922da1,_0x4e2a3f,_0x1b7992,_0x41b717)=>{const _0x41b82e=_0x3564dd;for(var _0x57816b=_0x41b717>0x1?void 0x0:_0x41b717?Gt(_0x4e2a3f,_0x1b7992):_0x4e2a3f,_0x34608a=_0x922da1[_0x41b82e(0x2a6)]-0x1,_0x37142c;_0x34608a>=0x0;_0x34608a--)(_0x37142c=_0x922da1[_0x34608a])&&(_0x57816b=_0x37142c(_0x57816b)||_0x57816b);return _0x57816b;},le=(_0x7bfb67,_0x254058)=>(_0x3c504d,_0x286bee)=>_0x254058(_0x3c504d,_0x286bee,_0x7bfb67);let J=class{constructor(_0x2960d8,_0x12b37a,_0x4719ec){const _0x3ab0d3=_0x3564dd;this[_0x3ab0d3(0x337)]=_0x2960d8,this[_0x3ab0d3(0x229)]=_0x12b37a,this['_renderManagerService']=_0x4719ec;}['transformIMECache'](_0x1c4fca){const _0x2ca33a=_0x3564dd;this[_0x2ca33a(0x143)](_0x1c4fca),this[_0x2ca33a(0x2de)](_0x1c4fca);}[_0x3564dd(0x21a)](_0x953c85){const _0x291e74=_0x3564dd,{unitID:_0x29e849}=_0x953c85,_0x27b2c2=this['_renderManagerService']['getRenderById'](_0x29e849)[_0x291e74(0x15b)](b[_0x291e74(0x14e)]),{redoCache:_0x357018}=_0x27b2c2[_0x291e74(0x2e0)]();if(_0x357018[_0x291e74(0x2a6)]===0x0)return _0x953c85;let _0x4f2901=a[_0x291e74(0x274)][_0x291e74(0x35a)](_0x953c85[_0x291e74(0x2cc)][0x0]);for(let _0x247fc7=0x0;_0x247fc7<_0x357018[_0x291e74(0x2a6)];_0x247fc7++){const _0x4b0320={'id':_0x291e74(0x203),'params':{..._0x357018[_0x247fc7]}},_0x1fcb27=this['_transformService']['transformMutation'](_0x4f2901,_0x4b0320,!0x1);if(m[_0x291e74(0x319)](_0x1fcb27))throw _0x1fcb27[_0x291e74(0x2e3)];_0x4f2901=_0x1fcb27[_0x291e74(0x13d)];}return{...a[_0x291e74(0x274)]['deepClone'](_0x953c85),'mutations':[_0x4f2901]};}[_0x3564dd(0x143)](_0x20da5c){const _0x508924=_0x3564dd,{unitID:_0x41b587}=_0x20da5c,_0x1030e1=this[_0x508924(0x338)][_0x508924(0x17c)](_0x41b587)[_0x508924(0x15b)](b[_0x508924(0x14e)]),{undoCache:_0x59339d,redoCache:_0x284992}=_0x1030e1[_0x508924(0x2e0)]();if(_0x59339d['length']===0x0||_0x284992[_0x508924(0x2a6)]===0x0)return;const _0x10408a=[],_0x45483b=[];let _0x3cc206=a[_0x508924(0x274)]['deepClone'](_0x20da5c['mutations'][0x0]),_0x925819=a[_0x508924(0x274)][_0x508924(0x35a)](_0x20da5c[_0x508924(0x2cc)][0x0]);for(let _0x4615a5=_0x59339d['length']-0x1;_0x4615a5>=0x0;_0x4615a5--){const _0x153bb9={'id':_0x508924(0x203),'params':{..._0x59339d[_0x4615a5]}},_0xe86c9b={'id':_0x508924(0x203),'params':{..._0x284992[_0x4615a5]}},_0x4049b1=this[_0x508924(0x229)][_0x508924(0x2b3)](_0x3cc206,_0x153bb9,!0x1),_0x1ff02e=this[_0x508924(0x229)]['transformMutation'](_0x925819,_0xe86c9b,!0x1);if(m[_0x508924(0x319)](_0x4049b1))throw _0x4049b1[_0x508924(0x2e3)];if(m[_0x508924(0x319)](_0x1ff02e))throw _0x1ff02e['error'];_0x10408a[_0x508924(0x2bb)](_0x4049b1[_0x508924(0x1f1)][_0x508924(0x1d8)]),_0x45483b['unshift'](_0x1ff02e['m2Prime'][_0x508924(0x1d8)]),_0x3cc206=_0x4049b1[_0x508924(0x13d)],_0x925819=_0x1ff02e[_0x508924(0x13d)];}_0x1030e1[_0x508924(0x2f5)]({'undoCache':_0x10408a,'redoCache':_0x45483b});}[_0x3564dd(0x2de)](_0x1ed46e){const _0x1373db=_0x3564dd,{unitID:_0x37334d}=_0x1ed46e,_0x1d196a=this[_0x1373db(0x338)]['getRenderById'](_0x37334d)[_0x1373db(0x15b)](b[_0x1373db(0x14e)]),_0x40b3d4=_0x1d196a[_0x1373db(0x1ea)]();if(_0x40b3d4==null)return;const _0x498597=[{'id':_0x1373db(0x203),'params':{'unitId':_0x1ed46e[_0x1373db(0x37f)],'actions':null,'textRanges':[_0x40b3d4]}}],_0x326f2b=this['_transformService']['transformMutationsWithChangeset'](_0x1ed46e,_0x498597);if(!m[_0x1373db(0x19d)](_0x326f2b))throw _0x326f2b[_0x1373db(0x2e3)];const _0x323b29=_0x326f2b[_0x1373db(0x1f1)][0x0]['params'][_0x1373db(0x307)];Array[_0x1373db(0x245)](_0x323b29)&&_0x323b29[_0x1373db(0x2a6)]&&_0x1d196a[_0x1373db(0x15a)](_0x323b29[0x0]);}};J=qt([le(0x0,a[_0x3564dd(0x265)](a[_0x3564dd(0x11c)])),le(0x1,m[_0x3564dd(0x242)]),le(0x2,p[_0x3564dd(0x12c)])],J);var Kt=Object[_0x3564dd(0x29b)],zt=(_0x170ff8,_0x562433,_0x453384,_0x2635ff)=>{const _0x52a52f=_0x3564dd;for(var _0x2111b1=_0x2635ff>0x1?void 0x0:_0x2635ff?Kt(_0x562433,_0x453384):_0x562433,_0x2e1da3=_0x170ff8[_0x52a52f(0x2a6)]-0x1,_0x21e75b;_0x2e1da3>=0x0;_0x2e1da3--)(_0x21e75b=_0x170ff8[_0x2e1da3])&&(_0x2111b1=_0x21e75b(_0x2111b1)||_0x2111b1);return _0x2111b1;},he=(_0x5879af,_0x470874)=>(_0xb97203,_0x15ab99)=>_0x470874(_0xb97203,_0x15ab99,_0x5879af);let Z=class{constructor(_0x112be2,_0x1f268c,_0x2d9ada){const _0x4570d7=_0x3564dd;this[_0x4570d7(0x337)]=_0x112be2,this[_0x4570d7(0x229)]=_0x1f268c,this[_0x4570d7(0x1df)]=_0x2d9ada;}['transformStateCache'](_0x335a9d){const _0x284ae4=_0x3564dd;this[_0x284ae4(0x329)](_0x335a9d);}[_0x3564dd(0x21a)](_0x2e9c5e){const _0x192312=_0x3564dd,{unitID:_0x564ab0}=_0x2e9c5e,{collaboration:_0xa1933c}=this[_0x192312(0x1df)][_0x192312(0x11a)](_0x564ab0);if(_0xa1933c['length']===0x0)return _0x2e9c5e;let _0xa6977f=a['Tools']['deepClone'](_0x2e9c5e['mutations'][0x0]);for(let _0x51d1ef=0x0;_0x51d1ef<_0xa1933c[_0x192312(0x2a6)];_0x51d1ef++){const _0xb816d8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xa1933c[_0x51d1ef][_0x192312(0x215)],..._0xa1933c[_0x51d1ef][_0x192312(0x178)]}},_0x2c0e1a=this[_0x192312(0x229)][_0x192312(0x2b3)](_0xa6977f,_0xb816d8,!0x1);if(m[_0x192312(0x319)](_0x2c0e1a))throw _0x2c0e1a['error'];_0xa6977f=_0x2c0e1a[_0x192312(0x13d)];}return{...a['Tools']['deepClone'](_0x2e9c5e),'mutations':[_0xa6977f]};}['_transformHistoryAndStateStack'](_0x43c957){const _0x247463=_0x3564dd,{unitID:_0x19fea7}=_0x43c957,{history:_0x430351,collaboration:_0x270265}=this[_0x247463(0x1df)][_0x247463(0x11a)](_0x19fea7);if(_0x430351[_0x247463(0x2a6)]===0x0&&_0x270265[_0x247463(0x2a6)]===0x0)return;const _0xaec0b1=[],_0x448d1d=[];let _0x419d76=a['Tools'][_0x247463(0x35a)](_0x43c957['mutations'][0x0]),_0x2c1364=a[_0x247463(0x274)][_0x247463(0x35a)](_0x43c957['mutations'][0x0]);for(let _0x397b33=_0x430351[_0x247463(0x2a6)]-0x1;_0x397b33>=0x0;_0x397b33--){const _0x2403bf={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x430351[_0x397b33][_0x247463(0x215)],..._0x430351[_0x397b33][_0x247463(0x2d3)]}},_0x420e0d={'id':_0x247463(0x203),'params':{'unitId':_0x430351[_0x397b33][_0x247463(0x215)],..._0x430351[_0x397b33]['redoState']}},_0x5dfd03=this[_0x247463(0x229)]['transformMutation'](_0x419d76,_0x2403bf,!0x1),_0x3c196f=this[_0x247463(0x229)][_0x247463(0x2b3)](_0x2c1364,_0x420e0d,!0x1);if(m[_0x247463(0x319)](_0x5dfd03))throw _0x5dfd03[_0x247463(0x2e3)];if(m['isTransformMutationFailure'](_0x3c196f))throw _0x3c196f[_0x247463(0x2e3)];_0xaec0b1['unshift']({..._0x430351[_0x397b33],'undoState':_0x5dfd03[_0x247463(0x1f1)][_0x247463(0x1d8)],'redoState':_0x3c196f[_0x247463(0x1f1)][_0x247463(0x1d8)]}),_0x419d76=_0x5dfd03['m1Prime'],_0x2c1364=_0x3c196f[_0x247463(0x13d)];}_0x419d76=a[_0x247463(0x274)][_0x247463(0x35a)](_0x43c957[_0x247463(0x2cc)][0x0]),_0x2c1364=a[_0x247463(0x274)][_0x247463(0x35a)](_0x43c957['mutations'][0x0]);for(let _0x302a28=_0x270265[_0x247463(0x2a6)]-0x1;_0x302a28>=0x0;_0x302a28--){const _0x435f74={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x270265[_0x302a28][_0x247463(0x215)],..._0x270265[_0x302a28][_0x247463(0x2d3)]}},_0x5e0fc7={'id':_0x247463(0x203),'params':{'unitId':_0x270265[_0x302a28][_0x247463(0x215)],..._0x270265[_0x302a28][_0x247463(0x178)]}},_0x3d96e5=this[_0x247463(0x229)][_0x247463(0x2b3)](_0x419d76,_0x435f74,!0x1),_0x273371=this['_transformService'][_0x247463(0x2b3)](_0x2c1364,_0x5e0fc7,!0x1);if(m[_0x247463(0x319)](_0x3d96e5))throw _0x3d96e5['error'];if(m[_0x247463(0x319)](_0x273371))throw _0x273371[_0x247463(0x2e3)];_0x448d1d[_0x247463(0x2bb)]({..._0x270265[_0x302a28],'undoState':_0x3d96e5[_0x247463(0x1f1)][_0x247463(0x1d8)],'redoState':_0x273371[_0x247463(0x1f1)][_0x247463(0x1d8)]}),_0x419d76=_0x3d96e5[_0x247463(0x13d)],_0x2c1364=_0x273371[_0x247463(0x13d)];}this[_0x247463(0x1df)][_0x247463(0x256)](_0x19fea7,{'history':_0xaec0b1,'collaboration':_0x448d1d});}};Z=zt([he(0x0,a[_0x3564dd(0x265)](a[_0x3564dd(0x11c)])),he(0x1,m[_0x3564dd(0x242)]),he(0x2,a[_0x3564dd(0x265)](b[_0x3564dd(0x255)]))],Z);var Jt=Object[_0x3564dd(0x29b)],Zt=(_0x50928f,_0x25997d,_0x25b6c3,_0x3f51f0)=>{for(var _0x29cf44=_0x3f51f0>0x1?void 0x0:_0x3f51f0?Jt(_0x25997d,_0x25b6c3):_0x25997d,_0x1c086a=_0x50928f['length']-0x1,_0xb9be9;_0x1c086a>=0x0;_0x1c086a--)(_0xb9be9=_0x50928f[_0x1c086a])&&(_0x29cf44=_0xb9be9(_0x29cf44)||_0x29cf44);return _0x29cf44;},Ne=(_0x2b5217,_0x18ba1b)=>(_0x258cf5,_0x102022)=>_0x18ba1b(_0x258cf5,_0x102022,_0x2b5217);let Q=class{constructor(_0x134a74,_0x26bd06){const _0x3899af=_0x3564dd;this[_0x3899af(0x337)]=_0x134a74,this[_0x3899af(0x229)]=_0x26bd06;}[_0x3564dd(0x2aa)](_0x13edb7){const _0xc3dc64=_0x3564dd;var _0x4a3680;const _0x341ae5=this[_0xc3dc64(0x337)][_0xc3dc64(0x2d2)](Y[_0xc3dc64(0x228)]),_0x156bce=(_0x4a3680=_0x341ae5[_0xc3dc64(0x2bf)]())!=null?_0x4a3680:[];if(_0x156bce[_0xc3dc64(0x2a6)]===0x0)return;const _0x168e6b=_0x13edb7[_0xc3dc64(0x37f)],_0x34172c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x168e6b,'actions':null,'textRanges':_0x156bce}}],_0x8ebaba=this['_transformService'][_0xc3dc64(0x30e)](_0x13edb7,_0x34172c);if(!m[_0xc3dc64(0x19d)](_0x8ebaba))throw _0x8ebaba[_0xc3dc64(0x2e3)];const _0x541255=_0x8ebaba[_0xc3dc64(0x1f1)][0x0][_0xc3dc64(0x1d8)][_0xc3dc64(0x307)];Array['isArray'](_0x541255)&&_0x541255[_0xc3dc64(0x2a6)]&&_0x341ae5[_0xc3dc64(0x1b1)](_0x541255,{'unitId':_0x168e6b,'subUnitId':_0x168e6b},!0x1);}};Q=Zt([Ne(0x0,a[_0x3564dd(0x265)](a[_0x3564dd(0x11c)])),Ne(0x1,m[_0x3564dd(0x242)])],Q);var Qt=Object[_0x3564dd(0x29b)],es=(_0x180d40,_0x2d048d,_0x50af41,_0x52e2d7)=>{for(var _0x2ea927=_0x52e2d7>0x1?void 0x0:_0x52e2d7?Qt(_0x2d048d,_0x50af41):_0x2d048d,_0x4b8b89=_0x180d40['length']-0x1,_0x48491c;_0x4b8b89>=0x0;_0x4b8b89--)(_0x48491c=_0x180d40[_0x4b8b89])&&(_0x2ea927=_0x48491c(_0x2ea927)||_0x2ea927);return _0x2ea927;},U=(_0x3f8ac6,_0x4f668f)=>(_0x3c2863,_0x405796)=>_0x4f668f(_0x3c2863,_0x405796,_0x3f8ac6);let ee=class extends a[_0x3564dd(0x387)]{constructor(_0x476f2a,_0x5f5847,_0x41a227,_0x3786f2,_0x11a547,_0x27703b,_0x1afa87,_0x1b65b4){const _0x36832b=_0x3564dd;super(),h(this,'_status$',new d[(_0x36832b(0x2ec))](_[_0x36832b(0x2b2)][_0x36832b(0x176)])),(this[_0x36832b(0x1df)]=_0x476f2a,this[_0x36832b(0x32f)]=_0x5f5847,this[_0x36832b(0x341)]=_0x41a227,this[_0x36832b(0x18b)]=_0x3786f2,this[_0x36832b(0x2b6)]=_0x11a547,this[_0x36832b(0x1ad)]=_0x27703b,this[_0x36832b(0x298)]=_0x1afa87,this[_0x36832b(0x1e2)]=_0x1b65b4,this[_0x36832b(0x2ef)]());}[_0x3564dd(0x2ef)](){const _0x4bfd1e=_0x3564dd;this[_0x4bfd1e(0x2a4)](this[_0x4bfd1e(0x32f)][_0x4bfd1e(0x20a)][_0x4bfd1e(0x2b7)](_0x8a36ea=>{const _0x9e8533=_0x4bfd1e,_0x1a3afd=this[_0x9e8533(0x1df)]['docStateChange$']['subscribe'](_0x50aac5=>{const _0x4b35c3=_0x9e8533;if(_0x50aac5==null)return;const {unitId:_0x51d398,redoState:_0x544dc7,commandId:_0x395d06}=_0x50aac5;if(_0x51d398!==_0x8a36ea[_0x4b35c3(0x37f)])return;const _0x20af89={'id':_0x395d06,'type':a[_0x4b35c3(0x2e5)][_0x4b35c3(0x28f)],'params':{'unitId':_0x51d398,'actions':_0x544dc7[_0x4b35c3(0x15d)],'textRanges':null}};_0x8a36ea[_0x4b35c3(0x33c)](_0x20af89);});if(_0x8a36ea[_0x9e8533(0x2a4)](_0x1a3afd),_0x8a36ea instanceof _[_0x9e8533(0x308)]){const _0x582898={'onTransformIME':_0xe497e6=>this[_0x9e8533(0x341)][_0x9e8533(0x2bd)](_0xe497e6),'onTransformState':_0x56a8cd=>this['_docTransformStateCacheService'][_0x9e8533(0x171)](_0x56a8cd),'onTransformSelections':_0x4d19b4=>this[_0x9e8533(0x2b6)][_0x9e8533(0x2aa)](_0x4d19b4),'onSyncEditingCollabCursor':_0x37b806=>this[_0x9e8533(0x1ad)][_0x9e8533(0x2b4)](_0x37b806),'onTransformRemoteChangesetByIMECache':_0x37ca03=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x37ca03),'onTransformRemoteChangesetByStateCache':_0x35f957=>this[_0x9e8533(0x18b)][_0x9e8533(0x21a)](_0x35f957)};_0x8a36ea['addHandlerCallback'](_0x582898);}}));}};ee=es([U(0x0,a['Inject'](b[_0x3564dd(0x255)])),U(0x1,a[_0x3564dd(0x265)](_[_0x3564dd(0x347)])),U(0x2,a[_0x3564dd(0x265)](J)),U(0x3,a[_0x3564dd(0x265)](Z)),U(0x4,a['Inject'](Q)),U(0x5,a['Inject'](pe)),U(0x6,T[_0x3564dd(0x1b4)]),U(0x7,a['Inject'](a[_0x3564dd(0x1a5)]))],ee);var ts=Object[_0x3564dd(0x29b)],ss=(_0x4dfd16,_0x3bccb8,_0x2bcf53,_0x4c276f)=>{const _0x4ecc45=_0x3564dd;for(var _0x2d0477=_0x4c276f>0x1?void 0x0:_0x4c276f?ts(_0x3bccb8,_0x2bcf53):_0x3bccb8,_0x554b12=_0x4dfd16[_0x4ecc45(0x2a6)]-0x1,_0x5dffc4;_0x554b12>=0x0;_0x554b12--)(_0x5dffc4=_0x4dfd16[_0x554b12])&&(_0x2d0477=_0x5dffc4(_0x2d0477)||_0x2d0477);return _0x2d0477;},ue=(_0x1cdba2,_0x4047ae)=>(_0x26e467,_0x584b11)=>_0x4047ae(_0x26e467,_0x584b11,_0x1cdba2);let me=class extends a[_0x3564dd(0x387)]{constructor(_0x7d032c,_0x1c72f5,_0x28600c){const _0x497de2=_0x3564dd;super(),h(this,'_cachedData',new Map()),h(this,_0x497de2(0x19c),new Map()),h(this,'_disabled',!0x1),(this[_0x497de2(0x24a)]=_0x7d032c,this[_0x497de2(0x195)]=_0x1c72f5,this[_0x497de2(0x1c6)]=_0x28600c);}[_0x3564dd(0x230)](){this['_disabled']=!0x0;}[_0x3564dd(0x2c7)](){const _0x5a9e7c=_0x3564dd;this[_0x5a9e7c(0x27a)]=!0x1;}get[_0x3564dd(0x213)](){const _0x1b2d7e=_0x3564dd;return this[_0x1b2d7e(0x19c)];}[_0x3564dd(0x1f9)](){const _0xfdf9df=_0x3564dd;this[_0xfdf9df(0x2f3)]()[_0xfdf9df(0x2f8)](()=>super[_0xfdf9df(0x1f9)]());}async[_0x3564dd(0x29a)](_0x176bf4){const _0x269d9d=_0x3564dd;return this[_0x269d9d(0x27a)]?null:this['_localStorageService'][_0x269d9d(0x27b)](_[_0x269d9d(0x32d)](_0x176bf4));}async[_0x3564dd(0x263)](_0x46773f,_0x576c3d){const _0x57b973=_0x3564dd;return!!this['_localStorageService'][_0x57b973(0x145)](_0x46773f,_0x576c3d);}[_0x3564dd(0x2c6)](_0x4c489c,_0x4152ca,_0x51b503,_0x3df480){const _0x141d5f=_0x3564dd,_0x46c24d=this[_0x141d5f(0x1c6)][_0x141d5f(0x211)](_0x4c489c);this['_cachedData']['set'](_0x4c489c,{'unitID':_0x4c489c,'type':_0x4152ca,'awaitingChangeset':_0x51b503,'mutations':_0x3df480,'rev':_0x46c24d}),this['_saveTaskMap'][_0x141d5f(0x251)](_0x4c489c)||this['_scheduleSaving'](_0x4c489c);}[_0x3564dd(0x193)](_0x578741){const _0x511dcd=_0x3564dd,_0x5c511b=this['_getSaveTimeout']();_0x5c511b===0x0?this[_0x511dcd(0x214)](_0x578741):this[_0x511dcd(0x19c)][_0x511dcd(0x34b)](_0x578741,setTimeout(()=>this[_0x511dcd(0x214)](_0x578741),_0x5c511b));}[_0x3564dd(0x346)](){const _0x5148a2=_0x3564dd;var _0x2551e4;return(_0x2551e4=this[_0x5148a2(0x24a)]['getConfig'](_[_0x5148a2(0x36a)]))!=null?_0x2551e4:_[_0x5148a2(0x26a)];}[_0x3564dd(0x214)](_0x4ecbd1){const _0x418252=_0x3564dd,_0x19fd08=this[_0x418252(0x19c)][_0x418252(0x2d2)](_0x4ecbd1);return _0x19fd08!==void 0x0&&window[_0x418252(0x1ef)](_0x19fd08),this['_localStorageService']['setItem'](_[_0x418252(0x32d)](_0x4ecbd1),this[_0x418252(0x1ae)][_0x418252(0x2d2)](_0x4ecbd1))['then'](()=>this[_0x418252(0x19c)]['delete'](_0x4ecbd1));}async[_0x3564dd(0x2f3)](){const _0x2dd59c=_0x3564dd,_0x44b274=[];this[_0x2dd59c(0x19c)][_0x2dd59c(0x2c8)]((_0x51e556,_0x32d7d8)=>{const _0x570eed=_0x2dd59c;window[_0x570eed(0x1ef)](_0x51e556),_0x44b274[_0x570eed(0x159)](this[_0x570eed(0x214)](_0x32d7d8)[_0x570eed(0x2f8)](()=>{const _0x1e6045=_0x570eed;this[_0x1e6045(0x19c)][_0x1e6045(0x1ac)](_0x32d7d8);}));}),await Promise[_0x2dd59c(0x148)](_0x44b274);}};me=ss([ue(0x0,a[_0x3564dd(0x169)]),ue(0x1,a['ILocalStorageService']),ue(0x2,a['Inject'](m['RevisionService']))],me);class He extends a[_0x3564dd(0x31a)]{constructor(){const _0x14e269=_0x3564dd;super(),h(this,_0x14e269(0x35d)),this[_0x14e269(0x35d)]=d[_0x14e269(0x2fc)](window,_0x14e269(0x135))[_0x14e269(0x268)](d[_0x14e269(0x152)](this[_0x14e269(0x166)]),d[_0x14e269(0x1f0)](0x1),d[_0x14e269(0x330)](void 0x0));}[_0x3564dd(0x14f)](_0x1731ec,_0x3b1288,_0x5f9466=!0x1){const _0x367d7f=_0x3564dd,_0xf8672=new URL(window[_0x367d7f(0x2ac)]['href']);_0xf8672[_0x367d7f(0x252)][_0x367d7f(0x34b)](_0x1731ec,_0x3b1288),_0x5f9466?window[_0x367d7f(0x289)][_0x367d7f(0x2ca)]('','',_0xf8672[_0x367d7f(0x1ed)]()):window[_0x367d7f(0x289)][_0x367d7f(0x1bf)]('','',_0xf8672[_0x367d7f(0x1ed)]());}['removeParam'](_0x586cdd,_0x4a7d52=!0x1){const _0x5ddce6=_0x3564dd,_0x3f889b=new URL(window[_0x5ddce6(0x2ac)]['href']);_0x3f889b[_0x5ddce6(0x252)][_0x5ddce6(0x1ac)](_0x586cdd),_0x4a7d52?window[_0x5ddce6(0x289)][_0x5ddce6(0x2ca)]('','',_0x3f889b['toString']()):window[_0x5ddce6(0x289)][_0x5ddce6(0x1bf)]('','',_0x3f889b['toString']());}[_0x3564dd(0x222)](_0x34b707){const _0x107fef=_0x3564dd;var _0x282cc5;return(_0x282cc5=new URL(window['location']['href'])[_0x107fef(0x252)]['get'](_0x34b707))!=null?_0x282cc5:void 0x0;}}var ns=Object[_0x3564dd(0x149)],is=Object[_0x3564dd(0x29b)],rs=(_0x385fbd,_0x520eb1,_0x8e9293)=>_0x520eb1 in _0x385fbd?ns(_0x385fbd,_0x520eb1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8e9293}):_0x385fbd[_0x520eb1]=_0x8e9293,os=(_0x1a77f9,_0x1d08f9,_0x4901d4,_0x13106c)=>{const _0x328c26=_0x3564dd;for(var _0x27f0f7=_0x13106c>0x1?void 0x0:_0x13106c?is(_0x1d08f9,_0x4901d4):_0x1d08f9,_0x2d6dfb=_0x1a77f9[_0x328c26(0x2a6)]-0x1,_0x2121a4;_0x2d6dfb>=0x0;_0x2d6dfb--)(_0x2121a4=_0x1a77f9[_0x2d6dfb])&&(_0x27f0f7=_0x2121a4(_0x27f0f7)||_0x27f0f7);return _0x27f0f7;},_e=(_0x34fe2a,_0x550355)=>(_0x4a0c52,_0x2a146d)=>_0x550355(_0x4a0c52,_0x2a146d,_0x34fe2a),as=(_0x50ead8,_0x97d52d,_0x1712cd)=>rs(_0x50ead8,_0x97d52d+'',_0x1712cd);const cs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x3564dd(0x1d4)]{constructor(_0x36022a=Pe,_0x554465,_0xb0c0b6,_0x3702f8){const _0x114491=_0x3564dd;super(),this[_0x114491(0x1c1)]=_0x36022a,this[_0x114491(0x338)]=_0x554465,this[_0x114491(0x337)]=_0xb0c0b6,this[_0x114491(0x24a)]=_0x3702f8;const {..._0x1f55d2}=a[_0x114491(0x1a2)]({},Pe,this[_0x114491(0x1c1)]);this[_0x114491(0x24a)][_0x114491(0x2d0)](Yt,_0x1f55d2);}['onStarting'](){const _0x5efecc=_0x3564dd;this[_0x5efecc(0x288)](),this[_0x5efecc(0x170)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x3564dd(0x288)](){const _0x70d035=_0x3564dd;var _0x4338ae;const _0x3c762b=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':He}],[q['ISocketService'],{'useClass':q['WebSocketService']}],[_[_0x70d035(0x2d1)],{'useClass':me}],[exports[_0x70d035(0x1f2)]],[ee],[z],[x],[fe],[exports[_0x70d035(0x161)]]];a[_0x70d035(0x190)](this[_0x70d035(0x337)],a['mergeOverrideWithDependencies'](_0x3c762b,(_0x4338ae=this['_config'])==null?void 0x0:_0x4338ae[_0x70d035(0x1db)]));}[_0x3564dd(0x332)](){const _0x213400=_0x3564dd;this[_0x213400(0x2a4)](this[_0x213400(0x338)]['registerRenderModule'](a[_0x213400(0x227)][_0x213400(0x2a5)],[ge])),this[_0x213400(0x2a4)](this[_0x213400(0x338)]['registerRenderModule'](a[_0x213400(0x227)][_0x213400(0x29d)],[Ie]));}[_0x3564dd(0x170)](){const _0x38f70e=_0x3564dd;a[_0x38f70e(0x2ba)](this[_0x38f70e(0x337)],[[x],[exports[_0x38f70e(0x1f2)]],[ee],[z],[exports[_0x38f70e(0x161)]]]);}},as(exports[_0x3564dd(0x24b)],_0x3564dd(0x1ce),cs),exports[_0x3564dd(0x24b)]=os([a[_0x3564dd(0x351)](_['UniverCollaborationClientPlugin']),_e(0x1,p[_0x3564dd(0x12c)]),_e(0x2,a[_0x3564dd(0x265)](a[_0x3564dd(0x11c)])),_e(0x3,a[_0x3564dd(0x169)])],exports[_0x3564dd(0x24b)]);var ls=Object[_0x3564dd(0x29b)],hs=(_0x2736f9,_0x1e9ade,_0x402ed0,_0x219b06)=>{const _0x40d43d=_0x3564dd;for(var _0x2e8df5=_0x219b06>0x1?void 0x0:_0x219b06?ls(_0x1e9ade,_0x402ed0):_0x1e9ade,_0x3ad8e4=_0x2736f9[_0x40d43d(0x2a6)]-0x1,_0x5de071;_0x3ad8e4>=0x0;_0x3ad8e4--)(_0x5de071=_0x2736f9[_0x3ad8e4])&&(_0x2e8df5=_0x5de071(_0x2e8df5)||_0x2e8df5);return _0x2e8df5;},F=(_0x4afa3e,_0x5afc1c)=>(_0x3da5f9,_0x3f245e)=>_0x5afc1c(_0x3da5f9,_0x3f245e,_0x4afa3e);exports[_0x3564dd(0x219)]=class extends _['CollaborationSocketService']{constructor(_0x10ff7c,_0x4cb5a6,_0x4254db,_0x1cd4a8,_0x2d8f93){super(_0x10ff7c,_0x4cb5a6,_0x4254db,_0x1cd4a8,_0x2d8f93);}async['createSocket'](_0x3eebf7){const _0x3e8f41=_0x3564dd,_0x34eede=await this[_0x3e8f41(0x1e5)](),_0xd8a18e=this[_0x3e8f41(0x320)](_0x3eebf7,_0x34eede);return this[_0x3e8f41(0x185)](_0xd8a18e);}['_createSocketURL'](_0x33547d,_0x25416d){const _0x217fc7=_0x3564dd,_0x33edd6=typeof window>'u'?new URL(_0x33547d):new URL(_0x33547d,window['location']['origin']);_0x33edd6[_0x217fc7(0x252)][_0x217fc7(0x34b)](_0x217fc7(0x30d),_0x25416d);const _0x58eb13=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x217fc7(0x2ac)]['search']);return _0x58eb13[_0x217fc7(0x2d2)](_0x217fc7(0x1d6))&&_0x33edd6['searchParams']['set'](_0x217fc7(0x1d6),_0x58eb13[_0x217fc7(0x2d2)](_0x217fc7(0x1d6))),_0x33edd6[_0x217fc7(0x1ed)]();}async['_getSessionTicket'](){const _0x515a8f=_0x3564dd;var _0x1a59e8,_0x4aa584,_0x3e562b;const _0x836814=this[_0x515a8f(0x24a)]['getConfig'](_[_0x515a8f(0x365)]),_0x1f814d=(_0x1a59e8=_0x836814==null?void 0x0:_0x836814['wsSessionTicketUrl'])!=null?_0x1a59e8:_[_0x515a8f(0x37c)];return(_0x3e562b=(_0x4aa584=(await this[_0x515a8f(0x30b)][_0x515a8f(0x2d2)](_0x1f814d,{'headers':{'Content-Type':_0x515a8f(0x22e)}}))[_0x515a8f(0x123)])==null?void 0x0:_0x4aa584[_0x515a8f(0x286)])!=null?_0x3e562b:'';}},exports[_0x3564dd(0x219)]=hs([F(0x0,a['Inject'](a[_0x3564dd(0x11c)])),F(0x1,a[_0x3564dd(0x265)](q[_0x3564dd(0x2e6)])),F(0x2,a[_0x3564dd(0x169)]),F(0x3,a[_0x3564dd(0x33d)]),F(0x4,m[_0x3564dd(0x2a7)])],exports['BrowserCollaborationSocketService']);const we=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class us extends a[_0x3564dd(0x387)]{constructor(){const _0x4061d6=_0x3564dd;super(),h(this,_0x4061d6(0x1b9),a[_0x4061d6(0x1a6)]()),h(this,_0x4061d6(0x17d),new Set()),h(this,_0x4061d6(0x137),new Map()),h(this,_0x4061d6(0x2c5),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x4061d6(0x124),new Map()),this[_0x4061d6(0x355)]();}[_0x3564dd(0x1f9)](){const _0x2cc94a=_0x3564dd;super[_0x2cc94a(0x1f9)](),this[_0x2cc94a(0x35f)][_0x2cc94a(0x2c8)]((_0x3a1f7d,_0x5aa67d)=>this['_removeClearOtherTimer'](_0x5aa67d)),this[_0x2cc94a(0x2c5)]&&window[_0x2cc94a(0x120)](this[_0x2cc94a(0x2c5)]);}['getUnitStatus$'](_0x374b59){const _0x363b7a=_0x3564dd;return this[_0x363b7a(0x1a7)](_0x374b59)[_0x363b7a(0x268)](d[_0x363b7a(0x26f)]());}[_0x3564dd(0x2e2)](_0x26fbe5){const _0x316655=_0x3564dd;this[_0x316655(0x17d)][_0x316655(0x12f)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x316655(0x30c)](_0x26fbe5),this['_send']({'type':0x0,'memberID':this[_0x316655(0x1b9)],'unitIDs':[_0x26fbe5],'isForwarded':!0x1});}['disposeUnit'](_0x5e74fd){const _0x2c907e=_0x3564dd;this[_0x2c907e(0x17d)][_0x2c907e(0x1ac)](_0x5e74fd),this['_selfUnitIDs'][_0x2c907e(0x12f)]===0x0&&this[_0x2c907e(0x2c5)]&&window[_0x2c907e(0x120)](this['_heartbeatTimer']);}[_0x3564dd(0x355)](){const _0x5f2369=_0x3564dd;this['disposeWithMe'](a[_0x5f2369(0x23b)](d['fromEvent'](window,_0x5f2369(0x183))[_0x5f2369(0x2b7)](_0x2ecf07=>{const _0x122cd5=_0x5f2369;if(_0x2ecf07[_0x122cd5(0x192)]!==Le||!_0x2ecf07[_0x122cd5(0x1ab)])return;const _0x5bd44f=JSON['parse'](_0x2ecf07[_0x122cd5(0x1ab)]);this[_0x122cd5(0x383)](_0x5bd44f);}))),window['addEventListener'](_0x5f2369(0x2be),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5f2369(0x243)](this[_0x5f2369(0x17d)])}));}[_0x3564dd(0x383)](_0x2d35fb){const _0x3fbe3d=_0x3564dd;switch(_0x2d35fb[_0x3fbe3d(0x304)]){case 0x0:this[_0x3fbe3d(0x344)](_0x2d35fb);break;case 0x1:this['_handleLeaveEvent'](_0x2d35fb);break;case 0x2:this[_0x3fbe3d(0x17b)](_0x2d35fb);break;}}[_0x3564dd(0x344)](_0x3f3a58){const _0x5847b2=_0x3564dd,{unitIDs:_0x586f48,memberID:_0x3ae008,isForwarded:_0x323b73}=_0x3f3a58;_0x586f48['forEach'](_0x20475f=>{const _0x36c079=_0x1bdc;if(!_0x323b73&&this[_0x36c079(0x137)][_0x36c079(0x251)](_0x20475f)&&this[_0x36c079(0x1a7)](_0x20475f)[_0x36c079(0x201)](_[_0x36c079(0x31c)][_0x36c079(0x357)]),!this[_0x36c079(0x137)][_0x36c079(0x251)](_0x20475f)||!this[_0x36c079(0x137)]['get'](_0x20475f)[_0x36c079(0x251)](_0x3ae008)){const _0x106bba=this[_0x36c079(0x137)]['get'](_0x20475f)||new Set();_0x106bba['add'](_0x3ae008),this[_0x36c079(0x137)][_0x36c079(0x34b)](_0x20475f,_0x106bba),this['_scheduleClearOtherTimer'](_0x3ae008);}}),_0x323b73||this[_0x5847b2(0x23d)]({'type':0x0,'memberID':this[_0x5847b2(0x1b9)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x3564dd(0x33b)](_0x38bb7a){const _0x5ea85a=_0x3564dd;this[_0x5ea85a(0x196)](_0x38bb7a);const _0x4ff130=window['setTimeout'](()=>{const _0x1e0aab=_0x5ea85a;this[_0x1e0aab(0x137)]['forEach'](_0x38c48d=>{const _0x4a8aed=_0x1e0aab;_0x38c48d[_0x4a8aed(0x1ac)](_0x38bb7a);});},we*0x2);this[_0x5ea85a(0x35f)][_0x5ea85a(0x34b)](_0x38bb7a,_0x4ff130);}[_0x3564dd(0x196)](_0x17905f){const _0x3880c0=_0x3564dd;if(this[_0x3880c0(0x35f)][_0x3880c0(0x251)](_0x17905f)){const _0x1a62e2=this[_0x3880c0(0x35f)][_0x3880c0(0x2d2)](_0x17905f);_0x1a62e2&&window['clearTimeout'](_0x1a62e2),this[_0x3880c0(0x35f)][_0x3880c0(0x34b)](_0x17905f,null);}}[_0x3564dd(0x16d)](_0x21d6f8){const _0x4f1563=_0x3564dd,{memberID:_0x301672,unitIDs:_0xdbf060}=_0x21d6f8;_0xdbf060[_0x4f1563(0x2c8)](_0x2e6bb6=>{const _0xef154f=_0x4f1563;var _0x28e0c8;const _0x5cd756=this[_0xef154f(0x137)][_0xef154f(0x2d2)](_0x2e6bb6);_0x5cd756&&(_0x5cd756[_0xef154f(0x1ac)](_0x301672),(_0x28e0c8=this[_0xef154f(0x1a7)](_0x2e6bb6))==null||_0x28e0c8[_0xef154f(0x201)](_0x5cd756[_0xef154f(0x12f)]===0x0?_[_0xef154f(0x31c)][_0xef154f(0x118)]:_[_0xef154f(0x31c)]['OTHER_CLIENTS_EDITING']));}),this[_0x4f1563(0x196)](_0x301672);}[_0x3564dd(0x17b)](_0x3cdc87){const _0xea71c0=_0x3564dd;this[_0xea71c0(0x33b)](_0x3cdc87[_0xea71c0(0x2da)]);}[_0x3564dd(0x23d)](_0x4628e2){const _0x24accd=_0x3564dd;localStorage[_0x24accd(0x145)](Le,JSON[_0x24accd(0x305)](_0x4628e2));}[_0x3564dd(0x208)](){const _0x5b0abd=_0x3564dd;this[_0x5b0abd(0x2c5)]=window[_0x5b0abd(0x31e)](()=>{const _0x28ddf4=_0x5b0abd;this[_0x28ddf4(0x23d)]({'type':0x2,'memberID':this[_0x28ddf4(0x1b9)]});},we);}[_0x3564dd(0x1a7)](_0x16b9f4){const _0x3d3026=_0x3564dd;return this[_0x3d3026(0x124)]['has'](_0x16b9f4)||this[_0x3d3026(0x124)][_0x3d3026(0x34b)](_0x16b9f4,new d[(_0x3d3026(0x2ec))](_['UnitStatus'][_0x3d3026(0x118)])),this[_0x3d3026(0x124)][_0x3d3026(0x2d2)](_0x16b9f4);}}var We=(_0x3329f2=>(_0x3329f2[_0x3329f2[_0x3564dd(0x141)]=0x0]=_0x3564dd(0x141),_0x3329f2[_0x3329f2['OK']=0x1]='OK',_0x3329f2[_0x3329f2['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x3329f2[_0x3329f2['PERMISSION_DENIED']=0x3]=_0x3564dd(0x2f7),_0x3329f2[_0x3329f2['NOT_FOUND']=0x4]=_0x3564dd(0x28d),_0x3329f2[_0x3329f2[_0x3564dd(0x2df)]=0x5]='UNAUTHENTICATED',_0x3329f2[_0x3329f2['ALREADY_EXISTS']=0x6]=_0x3564dd(0x350),_0x3329f2[_0x3329f2[_0x3564dd(0x164)]=0x7]=_0x3564dd(0x164),_0x3329f2[_0x3329f2[_0x3564dd(0x28e)]=0x8]=_0x3564dd(0x28e),_0x3329f2[_0x3329f2[_0x3564dd(0x323)]=0x9]='COMPLETION_FINISHED',_0x3329f2[_0x3329f2['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3564dd(0x240),_0x3329f2[_0x3329f2[_0x3564dd(0x12b)]=0x1771]=_0x3564dd(0x12b),_0x3329f2[_0x3329f2[_0x3564dd(0x2d6)]=0x1772]=_0x3564dd(0x2d6),_0x3329f2[_0x3329f2[_0x3564dd(0x142)]=0x1773]=_0x3564dd(0x142),_0x3329f2[_0x3329f2['APPLY_REJECT']=0x1b59]=_0x3564dd(0x310),_0x3329f2[_0x3329f2[_0x3564dd(0x2fd)]=0x1b5a]=_0x3564dd(0x2fd),_0x3329f2[_0x3329f2[_0x3564dd(0x14c)]=0x1b5b]=_0x3564dd(0x14c),_0x3329f2[_0x3329f2[_0x3564dd(0x15f)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3329f2[_0x3329f2[_0x3564dd(0x33a)]=0x1b5d]=_0x3564dd(0x33a),_0x3329f2[_0x3329f2[_0x3564dd(0x15c)]=0x1f41]=_0x3564dd(0x15c),_0x3329f2[_0x3329f2[_0x3564dd(0x380)]=0x2329]=_0x3564dd(0x380),_0x3329f2[_0x3329f2[_0x3564dd(0x1dc)]=0x232a]=_0x3564dd(0x1dc),_0x3329f2[_0x3329f2['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3564dd(0x2ff),_0x3329f2[_0x3329f2[_0x3564dd(0x1cf)]=0x232c]=_0x3564dd(0x1cf),_0x3329f2[_0x3329f2[_0x3564dd(0x1da)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3329f2[_0x3329f2[_0x3564dd(0x197)]=0x2711]=_0x3564dd(0x197),_0x3329f2[_0x3329f2[_0x3564dd(0x13c)]=0x2712]=_0x3564dd(0x13c),_0x3329f2[_0x3329f2[_0x3564dd(0x285)]=0x2713]=_0x3564dd(0x285),_0x3329f2[_0x3329f2[_0x3564dd(0x38c)]=0x2714]=_0x3564dd(0x38c),_0x3329f2[_0x3329f2[_0x3564dd(0x292)]=0x2af9]=_0x3564dd(0x292),_0x3329f2[_0x3329f2['UNRECOGNIZED']=-0x1]=_0x3564dd(0x175),_0x3329f2))(We||{}),_s=Object[_0x3564dd(0x29b)],ds=(_0x20ce6c,_0x2062a8,_0x5f31d2,_0x259ad2)=>{const _0x120f98=_0x3564dd;for(var _0x3d6ed7=_0x259ad2>0x1?void 0x0:_0x259ad2?_s(_0x2062a8,_0x5f31d2):_0x2062a8,_0x33b8bc=_0x20ce6c[_0x120f98(0x2a6)]-0x1,_0x48ef87;_0x33b8bc>=0x0;_0x33b8bc--)(_0x48ef87=_0x20ce6c[_0x33b8bc])&&(_0x3d6ed7=_0x48ef87(_0x3d6ed7)||_0x3d6ed7);return _0x3d6ed7;},de=(_0x152a27,_0x3404bb)=>(_0x17be1d,_0x9cb917)=>_0x3404bb(_0x17be1d,_0x9cb917,_0x152a27);exports[_0x3564dd(0x30f)]=class extends a[_0x3564dd(0x387)]{constructor(_0x29dd44,_0x56cb9f,_0x1c491b){const _0x1fe872=_0x3564dd;super(),this[_0x1fe872(0x1e1)]=_0x29dd44,this[_0x1fe872(0x30b)]=_0x56cb9f,this[_0x1fe872(0x24a)]=_0x1c491b;}async[_0x3564dd(0x32a)](_0x3392cc,_0x30f7ce,_0x139cd0,..._0x334c10){const _0x22cddc=_0x3564dd;var _0x2d4e15,_0xb8bbed,_0x1e4c6b,_0x211a2e;const _0x20ba96=this['_instanceService'][_0x22cddc(0x223)]();if(!_0x20ba96)throw new Error(_0x22cddc(0x233));const _0x3eaec4=((_0x2d4e15=this['_configService'][_0x22cddc(0x236)](_['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x2d4e15:_[_0x22cddc(0x224)])+'/'+_0x3392cc+'/run/'+_0x30f7ce,_0x4e6f65=new URL(window[_0x22cddc(0x2ac)][_0x22cddc(0x2cb)]),_0x3a84f1={'scriptId':_0x3392cc,'runId':(_0xb8bbed=_0x4e6f65['searchParams'][_0x22cddc(0x2d2)](_0x22cddc(0x1d6)))!=null?_0xb8bbed:'','function':_0x30f7ce,'unitId':_0x20ba96[_0x22cddc(0x2cf)](),'argsOfFunction':JSON[_0x22cddc(0x305)](_0x334c10),'invokeId':(_0x1e4c6b=_0x139cd0[_0x22cddc(0x382)])!=null?_0x1e4c6b:'','executionId':(_0x211a2e=_0x139cd0[_0x22cddc(0x138)])!=null?_0x211a2e:''};try{const _0x3e7f0d=await this['_httpService'][_0x22cddc(0x272)](_0x3eaec4,{'body':_0x3a84f1});return _0x3e7f0d[_0x22cddc(0x123)]['error']&&_0x3e7f0d[_0x22cddc(0x123)][_0x22cddc(0x2e3)][_0x22cddc(0x206)]!==We['OK']?_0x22cddc(0x130):_0x3e7f0d[_0x22cddc(0x123)][_0x22cddc(0x35e)];}catch{return _0x22cddc(0x130);}}},exports['RemoteUniscriptService']=ds([de(0x0,a['IUniverInstanceService']),de(0x1,a[_0x3564dd(0x265)](q['HTTPService'])),de(0x2,a[_0x3564dd(0x169)])],exports[_0x3564dd(0x30f)]),exports[_0x3564dd(0x182)]=Be,exports[_0x3564dd(0x1af)]=Ee,exports[_0x3564dd(0x2f0)]=Ae,exports['WebBrowserSingleActiveUnitService']=us,exports[_0x3564dd(0x150)]=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';function _0x21b3(_0x294869,_0x3901d8){const _0x5da42e=_0x5da4();return _0x21b3=function(_0x21b395,_0x2459d7){_0x21b395=_0x21b395-0xd7;let _0x581d4e=_0x5da42e[_0x21b395];return _0x581d4e;},_0x21b3(_0x294869,_0x3901d8);}function _0x5da4(){const _0xc1b751=['Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Edit\x20conflicts','Connection\x20failed,\x20please\x20check\x20your\x20network.','11ZaYITB','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.','Synced','7376630ZeOCQL','1643523msSAEF','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Syncing...','Authentication\x20Error','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','8kTmRRT','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing\x20server\x20data...','7734897rjADUD','22PoCsGp','70aKqrvB','82394PbngWJ','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','exports','Local\x20file','33359112jdaNDA','42IPJAWN','3615186QRoQbA','46040oxBJZO','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.'];_0x5da4=function(){return _0xc1b751;};return _0x5da4();}const _0x38c878=_0x21b3;(function(_0x328ac9,_0x20a747){const _0x43f9ae=_0x21b3,_0x5b9ce4=_0x328ac9();while(!![]){try{const _0xc0bd73=-parseInt(_0x43f9ae(0xda))/0x1*(parseInt(_0x43f9ae(0xdc))/0x2)+parseInt(_0x43f9ae(0xe2))/0x3+parseInt(_0x43f9ae(0xe3))/0x4*(parseInt(_0x43f9ae(0xdb))/0x5)+-parseInt(_0x43f9ae(0xe1))/0x6*(-parseInt(_0x43f9ae(0xec))/0x7)+parseInt(_0x43f9ae(0xf1))/0x8*(parseInt(_0x43f9ae(0xd9))/0x9)+parseInt(_0x43f9ae(0xeb))/0xa+parseInt(_0x43f9ae(0xe8))/0xb*(-parseInt(_0x43f9ae(0xe0))/0xc);if(_0xc0bd73===_0x20a747)break;else _0x5b9ce4['push'](_0x5b9ce4['shift']());}catch(_0x199424){_0x5b9ce4['push'](_0x5b9ce4['shift']());}}}(_0x5da4,0xe0bf1));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x38c878(0xd8),'conflict':_0x38c878(0xe6),'notCollab':_0x38c878(0xdf),'synced':_0x38c878(0xea),'syncing':_0x38c878(0xee),'offline':_0x38c878(0xed)},'session':{'connection-failed':_0x38c878(0xe7),'will-retry':_0x38c878(0xe4),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x38c878(0xdd)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x38c878(0xe9)},'permission':{'title':_0x38c878(0xef),'content':_0x38c878(0xd7)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x38c878(0xe5)},'auth':{'needGotoLoginAlert':_0x38c878(0xf0)}};module[_0x38c878(0xde)]=e;