@univerjs-pro/collaboration-client-ui 0.6.8 → 0.6.9-experimental.20250403-d914ddc

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';function _0x81c2(){const _0x3d2170=['2XlRrJZ','8701180zCpXId','1584575SABytc','@univerjs/core/facade','18qHLNwW','FUniver','3016951wxsKHw','8XoEgzw','17708RJQizA','39177699byqhQK','393TGWHoc','_injector','get','extend','runOnServer','10431621uZbqKt','651271pXNYQT','RemoteUniscriptService'];_0x81c2=function(){return _0x3d2170;};return _0x81c2();}const _0x55f055=_0x51a2;function _0x51a2(_0x1c7fc7,_0x25dd18){const _0x81c2a9=_0x81c2();return _0x51a2=function(_0x51a2be,_0x49ff84){_0x51a2be=_0x51a2be-0x106;let _0x54bf14=_0x81c2a9[_0x51a2be];return _0x54bf14;},_0x51a2(_0x1c7fc7,_0x25dd18);}(function(_0x31f286,_0x14ab41){const _0x407147=_0x51a2,_0x14b9f8=_0x31f286();while(!![]){try{const _0x825544=parseInt(_0x407147(0x113))/0x1*(parseInt(_0x407147(0x115))/0x2)+-parseInt(_0x407147(0x10d))/0x3*(-parseInt(_0x407147(0x10b))/0x4)+-parseInt(_0x407147(0x117))/0x5+parseInt(_0x407147(0x107))/0x6*(parseInt(_0x407147(0x109))/0x7)+-parseInt(_0x407147(0x10a))/0x8*(-parseInt(_0x407147(0x112))/0x9)+parseInt(_0x407147(0x116))/0xa+-parseInt(_0x407147(0x10c))/0xb;if(_0x825544===_0x14ab41)break;else _0x14b9f8['push'](_0x14b9f8['shift']());}catch(_0x1d0cca){_0x14b9f8['push'](_0x14b9f8['shift']());}}}(_0x81c2,0xa4c22));const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x55f055(0x106));class c extends e[_0x55f055(0x108)]{[_0x55f055(0x111)](_0x29d1fa,_0x48a663,..._0x4d8896){const _0x24e7f6=_0x55f055;return this[_0x24e7f6(0x10e)][_0x24e7f6(0x10f)](t[_0x24e7f6(0x114)])[_0x24e7f6(0x111)](_0x29d1fa,_0x48a663,{},..._0x4d8896);}}e[_0x55f055(0x108)][_0x55f055(0x110)](c);
1
+ 'use strict';function _0x27c5(_0x126cae,_0x4315f1){const _0x47afa5=_0x47af();return _0x27c5=function(_0x27c596,_0x203b47){_0x27c596=_0x27c596-0x104;let _0x49f7f6=_0x47afa5[_0x27c596];return _0x49f7f6;},_0x27c5(_0x126cae,_0x4315f1);}const _0x40a0e5=_0x27c5;(function(_0x5c2a2f,_0x4278d6){const _0x26dabc=_0x27c5,_0x28612f=_0x5c2a2f();while(!![]){try{const _0x132ab9=parseInt(_0x26dabc(0x10b))/0x1+parseInt(_0x26dabc(0x107))/0x2*(parseInt(_0x26dabc(0x114))/0x3)+-parseInt(_0x26dabc(0x105))/0x4*(parseInt(_0x26dabc(0x110))/0x5)+parseInt(_0x26dabc(0x111))/0x6*(parseInt(_0x26dabc(0x109))/0x7)+parseInt(_0x26dabc(0x112))/0x8*(parseInt(_0x26dabc(0x113))/0x9)+-parseInt(_0x26dabc(0x10d))/0xa*(-parseInt(_0x26dabc(0x10e))/0xb)+parseInt(_0x26dabc(0x115))/0xc*(-parseInt(_0x26dabc(0x104))/0xd);if(_0x132ab9===_0x4278d6)break;else _0x28612f['push'](_0x28612f['shift']());}catch(_0x546888){_0x28612f['push'](_0x28612f['shift']());}}}(_0x47af,0x76702));const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x40a0e5(0x106));class c extends e['FUniver']{[_0x40a0e5(0x10c)](_0x3af025,_0x44063f,..._0x40c6a5){const _0x306cac=_0x40a0e5;return this[_0x306cac(0x10f)]['get'](t[_0x306cac(0x108)])[_0x306cac(0x10c)](_0x3af025,_0x44063f,{},..._0x40c6a5);}}e['FUniver'][_0x40a0e5(0x10a)](c);function _0x47af(){const _0x7ef27c=['RemoteUniscriptService','427693gJzuhg','extend','582590nVBNgH','runOnServer','1193590avuTfa','33NzzTMj','_injector','185695xasDJT','48omMwij','7555352JUIJQv','9XnDQHj','2060043HNXaPw','26448564VqUIyZ','13KWfGyy','40CipmZQ','@univerjs/core/facade','2IuakxU'];_0x47af=function(){return _0x7ef27c;};return _0x47af();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1ff7a2=_0x5501;(function(_0x1d45ec,_0x4590e4){const _0x892c87=_0x5501,_0x329530=_0x1d45ec();while(!![]){try{const _0x1e7ee4=-parseInt(_0x892c87(0x151))/0x1*(-parseInt(_0x892c87(0x249))/0x2)+-parseInt(_0x892c87(0x132))/0x3+parseInt(_0x892c87(0x20e))/0x4+parseInt(_0x892c87(0x1df))/0x5+-parseInt(_0x892c87(0x257))/0x6+parseInt(_0x892c87(0x2c6))/0x7*(parseInt(_0x892c87(0x2cb))/0x8)+parseInt(_0x892c87(0x2eb))/0x9*(parseInt(_0x892c87(0x256))/0xa);if(_0x1e7ee4===_0x4590e4)break;else _0x329530['push'](_0x329530['shift']());}catch(_0x35bf9b){_0x329530['push'](_0x329530['shift']());}}}(_0x4042,0x241e4));var Xe=Object[_0x1ff7a2(0x350)],Ge=(_0x433058,_0x4afbb5,_0x21d602)=>_0x4afbb5 in _0x433058?Xe(_0x433058,_0x4afbb5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21d602}):_0x433058[_0x4afbb5]=_0x21d602,h=(_0x558ec1,_0x662ca5,_0x2faaf8)=>Ge(_0x558ec1,typeof _0x662ca5!=_0x1ff7a2(0x11b)?_0x662ca5+'':_0x662ca5,_0x2faaf8);Object['defineProperty'](exports,Symbol[_0x1ff7a2(0x2ec)],{'value':_0x1ff7a2(0x229)});const u=require(_0x1ff7a2(0xef)),a=require(_0x1ff7a2(0x1ab)),p=require(_0x1ff7a2(0x25e)),q=require(_0x1ff7a2(0x2f1)),b=require(_0x1ff7a2(0x1e1)),qe=require(_0x1ff7a2(0x22f)),d=require(_0x1ff7a2(0x26c)),Y=require(_0x1ff7a2(0x315)),m=require(_0x1ff7a2(0x278)),Te=require(_0x1ff7a2(0xfa)),g=require('@univerjs/sheets'),$=require(_0x1ff7a2(0x205)),G=require(_0x1ff7a2(0x19d)),w=require('react/jsx-runtime'),R=require(_0x1ff7a2(0x310)),T=require('@univerjs/design'),M=require(_0x1ff7a2(0x22a)),Ke=require('@univerjs/rpc');var ze=Object[_0x1ff7a2(0x167)],Je=(_0x3a40d3,_0x2451c8,_0x588680,_0x8f4304)=>{for(var _0x4dcdd6=_0x8f4304>0x1?void 0x0:_0x8f4304?ze(_0x2451c8,_0x588680):_0x2451c8,_0xaf8e94=_0x3a40d3['length']-0x1,_0x4cf2fb;_0xaf8e94>=0x0;_0xaf8e94--)(_0x4cf2fb=_0x3a40d3[_0xaf8e94])&&(_0x4dcdd6=_0x4cf2fb(_0x4dcdd6)||_0x4dcdd6);return _0x4dcdd6;},Re=(_0x542698,_0x6b2e4c)=>(_0x422d16,_0x56e8db)=>_0x6b2e4c(_0x422d16,_0x56e8db,_0x542698);let fe=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x4c6d3d,_0x20f5d9){const _0x3ff7d3=_0x1ff7a2;super(),this[_0x3ff7d3(0x313)]=_0x4c6d3d,this['_imageIoService']=_0x20f5d9,this['_init']();}['_init'](){const _0x1e2ab0=_0x1ff7a2,_0x207d03=this;this[_0x1e2ab0(0x2ce)](this[_0x1e2ab0(0x313)][_0x1e2ab0(0x28b)]({'onBeforePasteImage':async _0x147cd9=>{const _0x3dc6b6=_0x1e2ab0,_0x592923=await _0x207d03[_0x3dc6b6(0x353)][_0x3dc6b6(0x239)](_0x147cd9);return _0x592923?{'source':_0x592923[_0x3dc6b6(0x1d5)],'imageSourceType':_0x592923[_0x3dc6b6(0x355)]}:null;}}));}};fe=Je([Re(0x0,b[_0x1ff7a2(0x19e)]),Re(0x1,qe[_0x1ff7a2(0x135)])],fe);const Oe=[_0x1ff7a2(0x143),_0x1ff7a2(0x282),_0x1ff7a2(0x161),_0x1ff7a2(0x1c0),'blue400','gold400'];class Ce extends a[_0x1ff7a2(0x299)]{constructor(){const _0x28c4a3=_0x1ff7a2;super(...arguments),h(this,_0x28c4a3(0x100),new Map()),h(this,_0x28c4a3(0x1a3),0x0);}[_0x1ff7a2(0x34d)](_0x316b50){const _0x3d8112=_0x1ff7a2;if(this[_0x3d8112(0x100)][_0x3d8112(0x21d)](_0x316b50))return this['_assignedColors'][_0x3d8112(0x2fc)](_0x316b50);const _0xeba8be=Oe[this['_colorIndex']];return this[_0x3d8112(0x1a3)]=(this[_0x3d8112(0x1a3)]+0x1)%Oe[_0x3d8112(0x2a5)],this[_0x3d8112(0x100)][_0x3d8112(0x1ef)](_0x316b50,_0xeba8be),_0xeba8be;}}function Le(_0x5651ef){let _0x45c6b2='';for(const _0x56aac7 of _0x5651ef){const {startOffset:_0x15359f,endOffset:_0x181179,isActive:_0x5e9b27,rangeType:_0x143fd8,segmentId:_0x1483cf,segmentPage:_0x279f3b}=_0x56aac7;_0x45c6b2['length']&&(_0x45c6b2+=','),_0x45c6b2+=_0x15359f+':'+_0x181179+':'+(_0x5e9b27?'1':'0')+':'+_0x143fd8+':'+_0x1483cf+':'+_0x279f3b;}return _0x45c6b2;}function Ze(_0x272196){const _0x137711=_0x1ff7a2,_0xccfc6d=_0x272196['split'](','),_0x17884d=[];for(const _0x5c7b35 of _0xccfc6d){const [_0x1b4524,_0x1e2931,_0x176571,_0x30091d,_0x372acd,_0x28dbea]=_0x5c7b35[_0x137711(0x1cc)](':');_0x17884d[_0x137711(0x2ab)]({'startOffset':Number(_0x1b4524),'endOffset':Number(_0x1e2931),'collapsed':_0x1b4524===_0x1e2931,'isActive':_0x176571==='1','rangeType':_0x30091d===a['DOC_RANGE_TYPE'][_0x137711(0x25d)]?a[_0x137711(0x326)][_0x137711(0x25d)]:a[_0x137711(0x326)][_0x137711(0x2af)],'segmentId':typeof _0x372acd==_0x137711(0x184)?String(_0x372acd):'','segmentPage':Number(_0x28dbea!=null?_0x28dbea:-0x1)});}return _0x17884d['some'](_0x2ea842=>_0x2ea842['isActive'])||(_0x17884d[0x0][_0x137711(0x22e)]=!0x0),_0x17884d;}function _0x4042(){const _0x40e8a8=['_startDocCollabCursor','add','_clearOtherTimers','lineTo','wsSessionTicketUrl','@univerjs-pro/collaboration','getOffsetConfig','onPointerEnter$','SOCKET_FAILED_RETRY','_session','_handleHover','column','off-line-single_clip0_910_343','PERMISSION_DENIED','collaboration-client.offline-data-not-saved','jiqing500','hide','_entityInit$','fill','extend','Unknown\x20user','M0\x200H16V16H0z','onlineStatusIcon','_cursorShapes','addClipboardHook','_createSocketURL','univer-offline','delete','doc.mutation.rich-text-editing','handleDeleteRangeMoveUp','getSheetId','getCoordByCell','subunit','isTransformMutationFailure','body','random','SHEET_VIEWPORT_KEY','_draw','Disposable','SetWorksheetActivateCommand','ColorKit','replace','unshift','fillText','complete','LICENSE_DISTRO_REJECTED','Tooltip','pipe','send','getCurrent','length','_collabSessionService','replaceState','collabStatus.conflict','colorChannel1','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','push','SNAPSHOT_INVALID_SNAPSHOT','history','values','RECT','_cursor','post','_getSessionTicket','mask','subscribeEvent','_dataLoaderService','_beforeCloseService','_handleHeartbeatEvent','filter','onRendered','selection','getFocusedUnit','reconnect','#fff','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_context','newValue','bottom','PY_RUNTIME_SCRIPT_ERROR','_setupBeforeClosingHandler','RegularPolygon','RxDisposable','156422LLAWxi','YUUMI_URL_COL_OUT_OF_RANGE','onTransformChange$','clearTimeout','...','24TvytdY','_transformHistoryAndStateStack','isTransformMutationsWithChangesetSuccess','disposeWithMe','trim','combineLatest','setStateCache','BuiltInUIPart','OTHER_CLIENTS_EDITING','DEFAULT_WS_SESSION_TICKET_URL','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','APPLY_NON_SEQUENTIAL_REVISION','actions','_backgroundColor','measureText','entityInit$','IRemoteInstanceService','univer-flex\x20univer-items-center','type','eventID','getActiveSheet','UNIVER_SHEET','clearInterval','[CollaborationDataLoaderController]','searchParams','shareReplay','_renderManagerService','getSheetBySheetId','loadOfflineData','top','mapTo','_startSheetCollabCursor','226053vVTDjs','toStringTag','Rectangle','OnLineSingle','ICommandService','BehaviorSubject','@univerjs/network','SNAPSHOT_HAS_BEEN_REMOVED','asObservable','_toggleOffline','_commandService','data','defs','INTERNAL_ERROR','_unitOnClients','_textBubble','Error','get','Shape','requireSession','CollaborationUIEventId','row','transform','permission.content','sessionTicket','includes','currentTheme$','_notificationService','setConfig','getCurrentUnitForType','call','textRanges','_anchorDot','_hover','_labelPosition','ThemeService','_collaborationController','@univerjs/ui','_getMergeRange','size','_docClipboardService','Rect','@univerjs/docs','useRef','getLocalCacheKey','_send','COMPLETION_FINISHED','OFFLINE','svg','HEADER_MENU','_render','div','getMergeData','YUUMI_UNABLE_LOAD_URL','NO_OTHER_CLIENTS_EDITING','distinctUntilChanged','subUnitId','FromArray','createInstance','DOC_RANGE_TYPE','UPDATE_CURSOR','_hovered','ISocketService','jsxs','toString','CLOSE_ROOM','attrs','TEXT_RANGE_LAYER_INDEX','url(#$1','unit','deepClone','Subject','use','m1Prime','on-line-single','SetTextSelectionsOperation','_collaborationUIEventService','_docTransformIMECacheService','getOwnPropertySymbols','INVITE_CODE_HAS_BEEN_UES','error','permission.title','Tools','_updateURLWithCurrentState','toDisposable','getRelativeToViewportCoord','_uiPartsService','ITransformService','COLORS','_onCursorUpdate','_docSkeleton','MessageType','getSkeleton','undoState','_id','_name','jsx','addEventListener','assignAColorForMemberID','popstate','focused$','defineProperty','current','ONLINE','_imageIoService','UNAUTHENTICATED','imageSourceType','sheetID','INotificationService','getStateCache','_heartbeatTimer','_hideTimer','memberID','_init','evenodd','save','_httpService','APPLY_DUPLICATED','0\x200\x2017\x2016','USER_NOT_INVITED_CODE','uni.network.url-service','dispose$','SOCKET_FAILED','_color','1em','SYNCED','executeCommand','className','transformMutationsWithChangeset','_saveCache','beginPath','NOT_COLLAB','SetSelectionsOperation','SetDocZoomRatioOperation','_initCommandExecutedListener','propertyIsEnumerable','findNodePositionByCharIndex','roomMembers','saveOfflineData','switchMap','@univerjs-pro/collaboration-client','takeUntil','RemoteUniscriptService','getValue','INVITE_CODE_REQUIRED','_removeClearOtherTimer','HTTPService','session.will-retry','deserializeRangeWithSheet','DisposableCollection','_configService','@univerjs/engine-formula','_cursors','unload','startRow','updateOfflineData','RichTextEditingMutation','_assignedColors','collab-text-anchor-','_docTransformStateCacheService','_univerInstanceService','_revisionService','registerDependencies','substring','SUBMIT_CHANGESET_TIMEOUT','_handleEvent','_syncEditingCollabCursorService','transformStateCache','cursorInfo$','idSuffix','FETCH_MISS','function','show','collab-rect-range-','Injector','setUndoRedoMutationParamsCache','ALREADY_EXISTS','CollaborationSocketService','getUniverSheetInstance','IMessageService','addHandlerCallback','onCommandExecuted','_messageService','InsertRangeMoveRightCommandId','symbol','DocSkeletonManagerService','runRefRangeMutations','univer-online','find','Plugin','getUnitId','LICENSE_IMPORT_SIZE_EXCEEDED','univer-online-status-title','subscribe','onlineStatusTitle','USERS_LEAVE','syncEditingCollabCursor','getMemberID','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','useCallback','_unitStatus','LocaleService','_roomMembers$','setShapeProps','_colorAssignService','collaboration-client-ui.config','_doCreateSocket','262716AuuZfo','CollaborationStatusDisplay','flatMap','IImageIoService','Vector2','IBeforeCloseService','transformRemoteChangeset','disposeUnit','_removeCollabCursors','_disabled','RemoveRowCommandId','hovered','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','removeParam','DocCollaborationEntity','UniverIcon','IRenderManagerService','purple300','Failed','ticket','exhaustSavingTask','CollaborationEvent','univer-online-status','getTypeOfUnitAdded$','DependentOn','unsubscribe','addObject','onMouseMove','transformSelections','debounce','NOT_FOUND','1UDMTkx','triggerDblclick','offline','_range','_scheduleHeartbeat','_scene','LICENSE_EXPORT_SIZE_EXCEEDED','getUnitStatus$','path','UniverInstanceType','_instanceService','loadUnit','ILocalCacheService','children','unitID','_registerRenderDependencies','verdancy600','key','_localCacheService','_document','_injector','getConfig','getOwnPropertyDescriptor','DeleteRangeMoveLeftCommandId','_drawAnchor','getRangePointData','_config','createElement','APPLY_REVISION_CONFILICT','status$','setInterval','debug','APPLY_REJECT','with','setTimeout','min','getViewport','xlink:href','APPLY_PERMISSION_DENIED','_transformService','_scheduleSaving','_drawTextRange','DesktopCollaborationStatusDisplayController','_urlService','application/json','_getAnchorBounding','touchDependencies','round','whenReady','UnitStatus','disableLocalCache','string','labelPosition','_online','_initDependencies','UniverCollaborationClientUIPlugin','DocIMEInputManagerService','CHANGESET_REVISION_CONFILICT','setParam','event$','_selfUnitIDs','collabCursorState$','isArray','IConfigService','collabStatus.offline','from','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','invokeId','registerRefRange','restore','_shapes','_localeService','SessionStatus','_entities','registerBeforeClose','WebBrowserSingleActiveUnitService','@univerjs/sheets-ui','IDocClipboardService','_getScale','_eventUnsubscribe','getRenderById','getItem','_colorIndex','_logService','startColumn','unitId','urlChange$','dispose','getMember','RefRangeService','@univerjs/core','registerRenderModule','setAlpha','_anchor','next','BrowserCollaborationSocketService','univerjs-icon\x20univerjs-icon-','getActiveRange','height','entries','transformMutation','_initEvent','_updateCollabCursors','tag','_onCursorDelete','clipPath','UNIVER_DOC','_themeService','getCollabEntity$','code','InsertColCommandId','red300','location','getCollabCursors$','sessionStatus$','translate(.97)','executionId','_registerDependencies','INVALID_ARGUMENT','getAncestorScale','handleInsertRangeMoveRight','black','RevisionService','split','resize','_drawRectRange','LICENSE_MAX_UNITS_EXCEEDED','engine','indexOf','UNDEFINED','collabStatus.synced','_initStatusComponent','source','CollaborationDataLoaderController','defIds','_getSheetObject','color','_docSyncEditingCollabCursorService','_cachedData','_initResize','handleIRemoveRow','none','119195AMjKsc','getUnhiddenWorksheets','@univerjs/docs-ui','_memberService','ILogService','CollaborationSessionService','endRow','handleInsertRow','init','displayName','arc','forEach','debounceTime','mutations','SheetCollabCursorShape','fillStyle','set','redoState','generateRandomId','width','_cursorInfo$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_docStateChangeManagerService','useDependency','_transformPreviousActiveRange','EffectRefRangId','contains','Inject','then','NodePositionConvertToRectRange','_docTransformSelectionsService','fromEventSubject','ranges','_refRangeService','_docSkeletonManagerService','Optional','_ensureSubject','prototype','rxjs/operators','parse','apply','skeleton','_updateSubUnitFromURLParams','_handleJoinEvent','handleInsertRangeMoveDown','getVpScrollXYInfoByPosToVp','CONNECTOR_DATA_TOO_LARGE','1047656szAPlv','currentColor','text','pushState','_initStatusListener','DataLoaderService','_refreshCollabCursors','createSocket','_handleLeaveEvent','collab-client.tooltip.reconnect','DocStateChangeManagerService','cursorInfo','onlineStatus','TOO_MANY_REQUESTS','href','has','#FFF','IUniverInstanceService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_scheduleClearOtherTimer','concat','map','activeSheet$','YUUMI_RATE_OVER_LIMIT','_localStorageService','setItem','_setupSubUnitSync','Module','react','getColor','CollaborationStatus','merge','isActive','@univerjs/drawing','name','url(#on-line-single_clip0_910_349)','m2Prime','/run/','AWAITING','ENSURE_SNAPSHOT_EXECUTION','params','_collabCursorState$','DeleteRangeMoveUpCommandId','saveImage','currentSkeleton$','forwardRef','getParam','_initEntityListener','connectInjector','collaboration.closeRoom','mergeOverrideWithDependencies','Workbook','_toggleOnline','makeDirty','drawWith','runId','handleIRemoveCol','range','closePath','22172heZWnB','getTypeOfUnitDisposed$','_sheetSkeletonManagerService','0\x200\x2016\x2016','LOGIN_FAILED','on-line-single_clip0_910_349','transformIMECache','WebSocketService','NodePositionConvertToCursor','pluginName','override','_saveTaskMap','JOIN_ROOM_FAILED','30haHaza','1222296odNjsb','INVITE_CODE_ALREADY_BOUND','CONFLICT','saveTaskMap','YUUMI_SUBSCRIPTION_NOT_FOUND','_collabCursorController','TEXT','@univerjs/engine-render','MemberService','collabStatus.syncing','_lastPointer','icon','OTHER_CLIENT_EDITING','session.collaboration-timeout','_updateLocalCursor','CollaborationController','all','Warning','roomMembers$','_status$','off-line-single','rxjs','getCellPositionByOffset','_getSaveTimeout','DocSelectionManagerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ISnapshotServerService','editingUnit'];_0x4042=function(){return _0x40e8a8;};return _0x4042();}class pe extends a[_0x1ff7a2(0x2c5)]{constructor(){const _0x1834d8=_0x1ff7a2;super(...arguments),h(this,_0x1834d8(0x237),new d[(_0x1834d8(0x2f0))](null)),h(this,_0x1834d8(0x18e),this['_collabCursorState$'][_0x1834d8(0x2f3)]());}[_0x1ff7a2(0x127)](_0x3299c0){const _0x22b3f6=_0x1ff7a2,{unitID:_0x17e57f,memberID:_0x45f443,textRanges:_0x385477}=_0x3299c0,_0x106d97=Le(_0x385477);if(_0x106d97==='')return;const _0x5ec25f={'unitID':_0x17e57f,'memberID':_0x45f443,'selection':_0x106d97};this['_collabCursorState$'][_0x22b3f6(0x1af)](_0x5ec25f);}}var Qe=Object[_0x1ff7a2(0x167)],et=(_0x167616,_0x511d8c,_0x502cc9,_0x5608bc)=>{for(var _0x3a1f29=_0x5608bc>0x1?void 0x0:_0x5608bc?Qe(_0x511d8c,_0x502cc9):_0x511d8c,_0x1839b7=_0x167616['length']-0x1,_0xd7ee43;_0x1839b7>=0x0;_0x1839b7--)(_0xd7ee43=_0x167616[_0x1839b7])&&(_0x3a1f29=_0xd7ee43(_0x3a1f29)||_0x3a1f29);return _0x3a1f29;},P=(_0x3f668a,_0x2d9814)=>(_0x4a5dc7,_0x2bc497)=>_0x2d9814(_0x4a5dc7,_0x2bc497,_0x3f668a);const tt=0x12c,st=0x64;let Se=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x41a8b0,_0x527c93,_0x16e9f4,_0x5057f3,_0xd0c4d7,_0x2bcd32,_0x2bbe59,_0x1badae,_0x43f29f){const _0x4bd3fa=_0x1ff7a2;super(),h(this,_0x4bd3fa(0x186),!0x1),h(this,_0x4bd3fa(0xd4),!0x1),h(this,_0x4bd3fa(0x1f3),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x4bd3fa(0x1f3)][_0x4bd3fa(0x2f3)]()),h(this,'_roomMembers$',new d[(_0x4bd3fa(0x2f0))]([])),h(this,_0x4bd3fa(0x269),this['_roomMembers$'][_0x4bd3fa(0x2a2)](d[_0x4bd3fa(0x1eb)](tt))),h(this,_0x4bd3fa(0x265),a['debounce'](_0x2a9b79=>{const _0x450317=_0x4bd3fa,_0x1d1ea9={'eventID':m[_0x450317(0x147)][_0x450317(0x327)],'data':{'unitID':this[_0x450317(0x15f)],'memberID':this[_0x450317(0x27c)][_0x450317(0x128)](),'selection':Le(_0x2a9b79)}};this[_0x450317(0x27c)][_0x450317(0x2a3)](_0x1d1ea9,this[_0x450317(0x15f)]);},st)),(this['unitID']=_0x41a8b0,this['_session']=_0x527c93,this[_0x4bd3fa(0x165)]=_0x16e9f4,this[_0x4bd3fa(0x12f)]=_0x5057f3,this[_0x4bd3fa(0x1e2)]=_0xd0c4d7,this[_0x4bd3fa(0x109)]=_0x2bcd32,this[_0x4bd3fa(0x178)]=_0x2bbe59,this[_0x4bd3fa(0x103)]=_0x1badae,this[_0x4bd3fa(0x2f5)]=_0x43f29f);}get[_0x1ff7a2(0x219)](){const _0x70740a=_0x1ff7a2;return this['_cursorInfo$'][_0x70740a(0xf2)]();}get[_0x1ff7a2(0xec)](){const _0x353599=_0x1ff7a2;return this[_0x353599(0x12d)][_0x353599(0xf2)]();}['dispose'](){const _0x3bcf53=_0x1ff7a2;super[_0x3bcf53(0x1a8)](),this[_0x3bcf53(0x1f3)][_0x3bcf53(0x1af)](new Map()),this['_cursorInfo$'][_0x3bcf53(0x29f)](),this[_0x3bcf53(0x12d)][_0x3bcf53(0x1af)]([]),this['_roomMembers$'][_0x3bcf53(0x29f)]();}[_0x1ff7a2(0x1e7)](){const _0x30625a=_0x1ff7a2;this[_0x30625a(0xd4)]||(this[_0x30625a(0xd4)]=!0x0,this['_session'][_0x30625a(0x1c3)][_0x30625a(0x2a2)](d[_0x30625a(0xf0)](this[_0x30625a(0xdc)]))[_0x30625a(0x124)](_0x3b2280=>{const _0x2737f1=_0x30625a;_0x3b2280===u[_0x2737f1(0x199)][_0x2737f1(0x352)]?this[_0x2737f1(0x242)]():this[_0x2737f1(0x2f4)]();}),this[_0x30625a(0x27c)][_0x30625a(0x18c)][_0x30625a(0x2a2)](d[_0x30625a(0xf0)](this[_0x30625a(0xdc)]))[_0x30625a(0x124)](_0x580948=>{const _0x538700=_0x30625a,_0x328084=_0x580948['eventID'];_0x328084===m[_0x538700(0x147)][_0x538700(0x327)]&&this[_0x538700(0x344)](_0x580948),_0x328084===m[_0x538700(0x147)][_0x538700(0x126)]&&this[_0x538700(0x1b9)](_0x580948);}),this[_0x30625a(0x2ce)](this[_0x30625a(0x2f5)]['onCommandExecuted'](_0x555946=>{const _0x410db8=_0x30625a,_0x1dd1d7=_0x555946['params'];_0x1dd1d7!=null&&this[_0x410db8(0x186)]&&_0x555946['id']===Y[_0x410db8(0x336)]['id']&&_0x1dd1d7['unitId']===this['unitID']&&_0x1dd1d7['isEditing']===!0x1&&_0x1dd1d7[_0x410db8(0x1ff)][_0x410db8(0x2a5)]>0x0&&this[_0x410db8(0x265)](_0x1dd1d7[_0x410db8(0x1ff)]);})),this[_0x30625a(0x109)][_0x30625a(0x18e)][_0x30625a(0x2a2)](d[_0x30625a(0xf0)](this[_0x30625a(0xdc)]))[_0x30625a(0x124)](_0x56d3ed=>{const _0x56007b=_0x30625a;if((_0x56d3ed==null?void 0x0:_0x56d3ed[_0x56007b(0x15f)])!==this[_0x56007b(0x15f)])return;const _0x1ee02f={'eventID':m[_0x56007b(0x147)]['UPDATE_CURSOR'],'data':_0x56d3ed};this[_0x56007b(0x344)](_0x1ee02f);}),this['disposeWithMe'](this[_0x30625a(0x2f5)][_0x30625a(0x118)](_0x335a9a=>{const _0x4b3381=_0x30625a;if(_0x335a9a[_0x4b3381(0x236)]==null)return;const _0x359538=_0x335a9a['params'];if(_0x335a9a['id']!==Y[_0x4b3381(0xff)]['id']||_0x359538[_0x4b3381(0x1a6)]!==this[_0x4b3381(0x15f)])return;const _0x52f67e={'id':_0x4b3381(0x28f),'params':_0x359538},_0x3ae3e6=this[_0x4b3381(0x219)];for(const [_0x4c3de3,_0x136f28]of _0x3ae3e6){const _0x4e48d9={'id':_0x4b3381(0x28f),'params':{'unitId':this[_0x4b3381(0x15f)],'actions':null,'textRanges':_0x136f28[_0x4b3381(0x1ff)]}},_0xd3721b=this[_0x4b3381(0x178)][_0x4b3381(0x1b5)](_0x52f67e,_0x4e48d9,!0x1);if(m['isTransformMutationFailure'](_0xd3721b))throw _0xd3721b[_0x4b3381(0x33b)];_0x3ae3e6[_0x4b3381(0x1ef)](_0x4c3de3,{..._0x136f28,'ranges':_0xd3721b[_0x4b3381(0x232)][_0x4b3381(0x236)][_0x4b3381(0x30a)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x3ae3e6);});})));}[_0x1ff7a2(0x344)](_0x5b2c56){const _0x507e3c=_0x1ff7a2;var _0x1d6e67,_0x4ad616;const {memberID:_0x34abcf,selection:_0x5b9651}=_0x5b2c56['data'],_0x134119=Ze(_0x5b9651),_0x5424dd=(_0x4ad616=(_0x1d6e67=this[_0x507e3c(0x1e2)][_0x507e3c(0x1a9)](this[_0x507e3c(0x15f)],_0x34abcf))==null?void 0x0:_0x1d6e67['name'])!=null?_0x4ad616:_0x507e3c(0x287),_0x593ced={'color':this[_0x507e3c(0x12f)][_0x507e3c(0x34d)](_0x34abcf),'name':_0x5424dd,'ranges':_0x134119},_0x3e8d84=this[_0x507e3c(0x219)];_0x3e8d84[_0x507e3c(0x1ef)](_0x34abcf,_0x593ced),this[_0x507e3c(0x1f3)][_0x507e3c(0x1af)](_0x3e8d84);}[_0x1ff7a2(0x1b9)](_0x241fd3){const _0x90c767=_0x1ff7a2,{memberID:_0x3df69e}=_0x241fd3[_0x90c767(0x2f6)],_0x367ec0=this[_0x90c767(0x219)];_0x367ec0[_0x90c767(0x28e)](_0x3df69e),this['_cursorInfo$'][_0x90c767(0x1af)](_0x367ec0);}[_0x1ff7a2(0x242)](){const _0x381a3d=_0x1ff7a2;var _0xee1f3d;if(this[_0x381a3d(0x186)]=!0x0,((_0xee1f3d=this[_0x381a3d(0x103)][_0x381a3d(0x2bb)]())==null?void 0x0:_0xee1f3d[_0x381a3d(0x121)]())!==this['unitID'])return;const _0x224174=this[_0x381a3d(0x165)][_0x381a3d(0x2fc)](Y[_0x381a3d(0x26f)])['getDocRanges']();Array['isArray'](_0x224174)&&_0x224174[_0x381a3d(0x2a5)]>0x0&&this['_updateLocalCursor'](_0x224174);}[_0x1ff7a2(0x2f4)](){const _0x5446f7=_0x1ff7a2;this[_0x5446f7(0x186)]=!0x1;}};Se=et([P(0x2,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x111)])),P(0x3,a['Inject'](Ce)),P(0x4,a['Inject'](u[_0x1ff7a2(0x25f)])),P(0x5,a['Inject'](pe)),P(0x6,m['ITransformService']),P(0x7,a[_0x1ff7a2(0x21f)]),P(0x8,a['ICommandService'])],Se);var nt=Object[_0x1ff7a2(0x167)],it=(_0x12db39,_0x26668b,_0x3d21a4,_0x4a6b4c)=>{const _0x19e85b=_0x1ff7a2;for(var _0x124211=_0x4a6b4c>0x1?void 0x0:_0x4a6b4c?nt(_0x26668b,_0x3d21a4):_0x26668b,_0x5d2c0d=_0x12db39[_0x19e85b(0x2a5)]-0x1,_0x196ce1;_0x5d2c0d>=0x0;_0x5d2c0d--)(_0x196ce1=_0x12db39[_0x5d2c0d])&&(_0x124211=_0x196ce1(_0x124211)||_0x124211);return _0x124211;},A=(_0x43bcec,_0x413acd)=>(_0x31a9f7,_0x3d99e0)=>_0x413acd(_0x31a9f7,_0x3d99e0,_0x43bcec);const rt=0x12c,ot=0x64,at=()=>{let _0x3a3272=[],_0x21c7fe=!0x1;return _0xfba85c=>{const _0x4206a2=_0x5501;_0x3a3272[_0x4206a2(0x2ab)](_0xfba85c),_0x21c7fe||(_0x21c7fe=!0x0,setTimeout(()=>{const _0x5af168=_0x4206a2;_0x3a3272[_0x5af168(0x1ea)](_0x343fcd=>_0x343fcd()),_0x3a3272=[],_0x21c7fe=!0x1;}));};};let Ie=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x341f9c,_0x3f76e7,_0x1bf27d,_0xb5d38,_0x351d7b,_0x5d8b08,_0x1488b4,_0x2b611b){const _0x1a58dc=_0x1ff7a2;super(),h(this,'_online',!0x1),h(this,_0x1a58dc(0xd4),!0x1),h(this,_0x1a58dc(0x1f3),new d[(_0x1a58dc(0x2f0))](new Map())),h(this,'cursorInfo$',this[_0x1a58dc(0x1f3)][_0x1a58dc(0x2f3)]()),h(this,_0x1a58dc(0x12d),new d[(_0x1a58dc(0x2f0))]([])),h(this,_0x1a58dc(0x269),this[_0x1a58dc(0x12d)][_0x1a58dc(0x2a2)](d[_0x1a58dc(0x1eb)](rt))),h(this,'_updateLocalCursor',a[_0x1a58dc(0x14f)]((_0x137399,_0x2b427e)=>{const _0x2e0859=_0x1a58dc,_0x42276e={'eventID':m[_0x2e0859(0x147)][_0x2e0859(0x327)],'data':{'unitID':this[_0x2e0859(0x15f)],'memberID':this[_0x2e0859(0x27c)]['getMemberID'](),'selection':Te['serializeRangeWithSheet'](_0x137399,_0x2b427e['range'])}};this[_0x2e0859(0x27c)][_0x2e0859(0x2a3)](_0x42276e,this[_0x2e0859(0x15f)]);},ot)),(this[_0x1a58dc(0x15f)]=_0x341f9c,this[_0x1a58dc(0x27c)]=_0x3f76e7,this[_0x1a58dc(0x165)]=_0x1bf27d,this[_0x1a58dc(0x12f)]=_0xb5d38,this['_memberService']=_0x351d7b,this['_univerInstanceService']=_0x5d8b08,this[_0x1a58dc(0x2f5)]=_0x1488b4,this[_0x1a58dc(0x200)]=_0x2b611b);}get[_0x1ff7a2(0x219)](){const _0x2dc44e=_0x1ff7a2;return this[_0x2dc44e(0x1f3)][_0x2dc44e(0xf2)]();}get[_0x1ff7a2(0xec)](){const _0x38d924=_0x1ff7a2;return this[_0x38d924(0x12d)][_0x38d924(0xf2)]();}[_0x1ff7a2(0x1a8)](){const _0x47770d=_0x1ff7a2;super[_0x47770d(0x1a8)](),this[_0x47770d(0x1f3)][_0x47770d(0x1af)](new Map()),this[_0x47770d(0x1f3)][_0x47770d(0x29f)](),this[_0x47770d(0x12d)][_0x47770d(0x1af)]([]),this[_0x47770d(0x12d)][_0x47770d(0x29f)]();}[_0x1ff7a2(0x1e7)](){const _0x47ae0b=_0x1ff7a2;this['_init']||(this[_0x47ae0b(0xd4)]=!0x0,this['_session'][_0x47ae0b(0x1c3)][_0x47ae0b(0x2a2)](d[_0x47ae0b(0xf0)](this[_0x47ae0b(0xdc)]))['subscribe'](_0x3934e6=>{const _0x186ef2=_0x47ae0b;_0x3934e6===u['SessionStatus'][_0x186ef2(0x352)]?this[_0x186ef2(0x242)]():this[_0x186ef2(0x2f4)]();}),this['_session'][_0x47ae0b(0x18c)][_0x47ae0b(0x2a2)](d[_0x47ae0b(0xf0)](this[_0x47ae0b(0xdc)]))['subscribe'](_0x3af29b=>{const _0x2ff5a7=_0x47ae0b,_0x4c2cab=_0x3af29b[_0x2ff5a7(0x2de)];_0x4c2cab===m[_0x2ff5a7(0x147)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3af29b),_0x4c2cab===m[_0x2ff5a7(0x147)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x3af29b);}),this['_onRefRangeChange'](),this[_0x47ae0b(0x2ce)](this['_commandService'][_0x47ae0b(0x118)](_0x220249=>{const _0x3f21dc=_0x47ae0b;if(this[_0x3f21dc(0x186)]&&_0x220249['id']===g[_0x3f21dc(0xe7)]['id']&&_0x220249['params'][_0x3f21dc(0x1a6)]===this[_0x3f21dc(0x15f)]){const _0x1b554c=_0x220249[_0x3f21dc(0x236)];this['_updateLocalCursor'](_0x1b554c[_0x3f21dc(0x323)],_0x1b554c['selections'][0x0]);}})));}[_0x1ff7a2(0x344)](_0x43285a){const _0xbe09fe=_0x1ff7a2;var _0x189a66,_0x4b9ad7;const {memberID:_0x2f468d,selection:_0x2b4031}=_0x43285a[_0xbe09fe(0x2f6)],{sheetName:_0x3d764c,range:_0x5726c0}=Te[_0xbe09fe(0xf7)](_0x2b4031),_0x3067c7={'name':(_0x4b9ad7=(_0x189a66=this[_0xbe09fe(0x1e2)][_0xbe09fe(0x1a9)](this['unitID'],_0x2f468d))==null?void 0x0:_0x189a66[_0xbe09fe(0x230)])!=null?_0x4b9ad7:'Unknown\x20user','range':this['_getMergeRange'](_0x3d764c,_0x5726c0),'sheetID':_0x3d764c,'color':this['_colorAssignService'][_0xbe09fe(0x34d)](_0x2f468d),'selection':_0x2b4031},_0x3e1cc9=this[_0xbe09fe(0x219)];_0x3e1cc9[_0xbe09fe(0x1ef)](_0x2f468d,_0x3067c7),this[_0xbe09fe(0x1f3)][_0xbe09fe(0x1af)](_0x3e1cc9);}[_0x1ff7a2(0x1b9)](_0x56f06c){const _0xfea03d=_0x1ff7a2,{memberID:_0x32ad9f}=_0x56f06c['data'],_0x77fd22=this['cursorInfo'];_0x77fd22[_0xfea03d(0x28e)](_0x32ad9f),this[_0xfea03d(0x1f3)][_0xfea03d(0x1af)](_0x77fd22);}[_0x1ff7a2(0x311)](_0x13ae9a,_0xed61e9){const _0x484457=_0x1ff7a2;var _0x56cc27,_0xaa3462;const _0x1b15bd=(_0xaa3462=(_0x56cc27=this[_0x484457(0x103)][_0x484457(0x115)](this[_0x484457(0x15f)]))==null?void 0x0:_0x56cc27[_0x484457(0x2e6)](_0x13ae9a))==null?void 0x0:_0xaa3462[_0x484457(0x31f)]();return(_0x1b15bd==null?void 0x0:_0x1b15bd[_0x484457(0x11f)](_0x5a9159=>a[_0x484457(0x2ed)][_0x484457(0x1f9)](_0x5a9159,_0xed61e9)))||_0xed61e9;}['_onRefRangeChange'](){const _0x111acf=_0x1ff7a2,_0x3960ca=new a[(_0x111acf(0xf8))](),_0x17f0aa=at(),_0x34f67f=()=>{const _0x5ec111=_0x111acf;_0x3960ca[_0x5ec111(0x1a8)]();const _0x2b5a64=(_0x17c234,_0x3e6d85,_0x111990,_0x10ae7)=>{const _0x15a7e7=_0x5ec111;let _0x47863c=[];switch(_0x17c234['id']){case g[_0x15a7e7(0x1f8)][_0x15a7e7(0x168)]:{_0x47863c=g['handleDeleteRangeMoveLeft'](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)][_0x15a7e7(0x238)]:{_0x47863c=g[_0x15a7e7(0x290)](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)][_0x15a7e7(0x1bf)]:{_0x47863c=g['handleInsertCol'](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)]['InsertRangeMoveDownCommandId']:{_0x47863c=g[_0x15a7e7(0x20b)](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)][_0x15a7e7(0x11a)]:{_0x47863c=g[_0x15a7e7(0x1c9)](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)]['InsertRowCommandId']:{_0x47863c=g[_0x15a7e7(0x1e6)](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)]['MoveRangeCommandId']:{_0x47863c=g['handleMoveRange'](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)]['RemoveColCommandId']:{_0x47863c=g[_0x15a7e7(0x246)](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)][_0x15a7e7(0x13c)]:{_0x47863c=g[_0x15a7e7(0x1dd)](_0x17c234,_0x10ae7);break;}}const _0x1db3ad=g[_0x15a7e7(0x11d)](_0x47863c,_0x10ae7),_0x3a2d4b=this[_0x15a7e7(0x219)][_0x15a7e7(0x2fc)](_0x3e6d85);if(_0x3a2d4b&&_0x1db3ad){const _0x3da641={..._0x3a2d4b,'range':_0x1db3ad};this[_0x15a7e7(0x219)][_0x15a7e7(0x1ef)](_0x3e6d85,_0x3da641),_0x17f0aa(()=>{const _0xe57f20=_0x15a7e7,_0x5a081d=this[_0xe57f20(0x200)]['registerRefRange'](_0x1db3ad,_0x38522d=>(_0x5a081d[_0xe57f20(0x1a8)](),_0x2b5a64(_0x38522d,_0x3e6d85,_0x111990,_0x1db3ad)));_0x3960ca[_0xe57f20(0x274)](_0x5a081d);});}return{'redos':[],'undos':[]};};this[_0x5ec111(0x219)]['forEach']((_0x43517e,_0x1e7da0)=>{const _0x41aa84=_0x5ec111,{range:_0x36a8f2,sheetID:_0x1547ad}=_0x43517e,_0x29fd5a=this[_0x41aa84(0x200)][_0x41aa84(0x195)](_0x36a8f2,_0x4c0f68=>(_0x29fd5a['dispose'](),_0x2b5a64(_0x4c0f68,_0x1e7da0,_0x1547ad,_0x36a8f2)));_0x3960ca[_0x41aa84(0x274)](_0x29fd5a);});};this['disposeWithMe'](a[_0x111acf(0x33f)](this['_cursorInfo$'][_0x111acf(0x124)](()=>{_0x34f67f();})));}[_0x1ff7a2(0x242)](){const _0x3e2d08=_0x1ff7a2;var _0x47e508,_0x4a0d78;if(this[_0x3e2d08(0x186)]=!0x0,((_0x47e508=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x47e508[_0x3e2d08(0x121)]())!==this[_0x3e2d08(0x15f)])return;const _0x236fd5=(_0x4a0d78=this['_injector'][_0x3e2d08(0x2fc)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x4a0d78[0x0],_0x211959=this['_univerInstanceService'][_0x3e2d08(0x308)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3e2d08(0x2df)]();_0x236fd5&&_0x211959&&this[_0x3e2d08(0x265)](_0x211959[_0x3e2d08(0x291)](),_0x236fd5);}['_toggleOffline'](){const _0x5c3b21=_0x1ff7a2;this[_0x5c3b21(0x186)]=!0x1;}};Ie=it([A(0x2,a['Inject'](a['Injector'])),A(0x3,a[_0x1ff7a2(0x1fa)](Ce)),A(0x4,a[_0x1ff7a2(0x1fa)](u[_0x1ff7a2(0x25f)])),A(0x5,a[_0x1ff7a2(0x21f)]),A(0x6,a[_0x1ff7a2(0x2ef)]),A(0x7,a['Inject'](g[_0x1ff7a2(0x1aa)]))],Ie);var ct=Object[_0x1ff7a2(0x167)],lt=(_0x12b474,_0x3ebcc6,_0x1a54f1,_0x3d7097)=>{const _0x581e73=_0x1ff7a2;for(var _0x11c443=_0x3d7097>0x1?void 0x0:_0x3d7097?ct(_0x3ebcc6,_0x1a54f1):_0x3ebcc6,_0x5261e9=_0x12b474[_0x581e73(0x2a5)]-0x1,_0x10e268;_0x5261e9>=0x0;_0x5261e9--)(_0x10e268=_0x12b474[_0x5261e9])&&(_0x11c443=_0x10e268(_0x11c443)||_0x11c443);return _0x11c443;},ie=(_0x3f8211,_0x1bf429)=>(_0x3f6f4c,_0x505f7b)=>_0x1bf429(_0x3f6f4c,_0x505f7b,_0x3f8211);let x=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x19f300,_0x58a9c0,_0x28e04f){const _0x102133=_0x1ff7a2;super(),h(this,_0x102133(0x19a),new Map()),h(this,_0x102133(0x284),new d[(_0x102133(0x332))]()),(this[_0x102133(0x103)]=_0x19f300,this[_0x102133(0x165)]=_0x58a9c0,this[_0x102133(0x2a6)]=_0x28e04f,this[_0x102133(0xd4)]());}[_0x1ff7a2(0x1a8)](){const _0xad4faf=_0x1ff7a2;super[_0xad4faf(0x1a8)](),this[_0xad4faf(0x284)]['complete'](),this[_0xad4faf(0x19a)][_0xad4faf(0x1ea)](_0xaa65c6=>_0xaa65c6[_0xad4faf(0x1a8)]());}['getCollabCursors$'](_0x5ce031){const _0x1a72ba=_0x1ff7a2;return this[_0x1a72ba(0x19a)][_0x1a72ba(0x21d)](_0x5ce031)?this['_entities']['get'](_0x5ce031)[_0x1a72ba(0x10b)]:this['_entityInit$'][_0x1a72ba(0x2a2)](d[_0x1a72ba(0x2b8)](_0x5b2168=>_0x5b2168[_0x1a72ba(0x15f)]===_0x5ce031),d[_0x1a72ba(0xee)](_0x1f60d8=>_0x1f60d8[_0x1a72ba(0x10b)]));}[_0x1ff7a2(0xd4)](){const _0x7c1ec2=_0x1ff7a2;this[_0x7c1ec2(0x103)][_0x7c1ec2(0x149)](a[_0x7c1ec2(0x15a)]['UNIVER_SHEET'])['pipe'](d[_0x7c1ec2(0xf0)](this[_0x7c1ec2(0xdc)]))[_0x7c1ec2(0x124)](async _0x8c4618=>{const _0x40b6ad=_0x7c1ec2,_0x163e27=_0x8c4618['getUnitId'](),_0x38788a=await this[_0x40b6ad(0x2ea)](_0x163e27);this[_0x40b6ad(0x284)][_0x40b6ad(0x1af)](_0x38788a),this['_entities'][_0x40b6ad(0x1ef)](_0x163e27,_0x38788a);}),this[_0x7c1ec2(0x103)][_0x7c1ec2(0x149)](a[_0x7c1ec2(0x15a)][_0x7c1ec2(0x1bb)])[_0x7c1ec2(0x2a2)](d[_0x7c1ec2(0xf0)](this[_0x7c1ec2(0xdc)]))[_0x7c1ec2(0x2a2)](d['filter'](_0x34ad49=>!_0x34ad49[_0x7c1ec2(0x121)]()['startsWith']('__')))[_0x7c1ec2(0x124)](async _0x20f278=>{const _0x3a6d46=_0x7c1ec2,_0x1d6181=_0x20f278['getUnitId'](),_0x1bc101=await this[_0x3a6d46(0x273)](_0x1d6181);this[_0x3a6d46(0x284)]['next'](_0x1bc101),this[_0x3a6d46(0x19a)]['set'](_0x1d6181,_0x1bc101);}),d[_0x7c1ec2(0x22d)](this[_0x7c1ec2(0x103)][_0x7c1ec2(0x24a)](a['UniverInstanceType'][_0x7c1ec2(0x1bb)]),this[_0x7c1ec2(0x103)][_0x7c1ec2(0x24a)](a['UniverInstanceType'][_0x7c1ec2(0x2e0)]))[_0x7c1ec2(0x2a2)](d[_0x7c1ec2(0xf0)](this[_0x7c1ec2(0xdc)]))[_0x7c1ec2(0x124)](_0x591018=>{const _0x47be6a=_0x7c1ec2,_0x5d9f9d=_0x591018['getUnitId'](),_0x411a7b=this[_0x47be6a(0x19a)]['get'](_0x5d9f9d);_0x411a7b&&(_0x411a7b[_0x47be6a(0x1a8)](),this[_0x47be6a(0x19a)][_0x47be6a(0x28e)](_0x5d9f9d));});}async[_0x1ff7a2(0x2ea)](_0x10a7da){const _0x2b92d2=_0x1ff7a2,_0x153e76=await this[_0x2b92d2(0x2a6)][_0x2b92d2(0x2fe)](_0x10a7da),_0x42bd84=this[_0x2b92d2(0x165)][_0x2b92d2(0x325)](Ie,_0x10a7da,_0x153e76);return _0x42bd84[_0x2b92d2(0x1e7)](),_0x42bd84;}async[_0x1ff7a2(0x273)](_0x653ab6){const _0x10223e=_0x1ff7a2,_0x4f85bc=await this[_0x10223e(0x2a6)][_0x10223e(0x2fe)](_0x653ab6),_0x12ecb0=this[_0x10223e(0x165)]['createInstance'](Se,_0x653ab6,_0x4f85bc);return _0x12ecb0[_0x10223e(0x1e7)](),_0x12ecb0;}};x=lt([ie(0x0,a['IUniverInstanceService']),ie(0x1,a['Inject'](a[_0x1ff7a2(0x111)])),ie(0x2,a[_0x1ff7a2(0x1fa)](u[_0x1ff7a2(0x1e4)]))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x5bb1ca,_0x1a0372){const _0x50398e=_0x1ff7a2;let {radius:_0x1ed725,width:_0x3d4e13,height:_0x33e2b2}=_0x1a0372;_0x1ed725=_0x1ed725!=null?_0x1ed725:0x0,_0x3d4e13=_0x3d4e13!=null?_0x3d4e13:0x1e,_0x33e2b2=_0x33e2b2!=null?_0x33e2b2:0x1e;let _0x10606c=0x0,_0x361a17=0x0,_0x37f6ba=0x0;_0x10606c=_0x361a17=_0x37f6ba=Math[_0x50398e(0x174)](_0x1ed725,_0x3d4e13/0x2,_0x33e2b2/0x2),_0x5bb1ca[_0x50398e(0xe5)](),_0x5bb1ca['moveTo'](_0x10606c,0x0),_0x5bb1ca[_0x50398e(0x276)](_0x3d4e13-_0x361a17,0x0),_0x5bb1ca[_0x50398e(0x1e9)](_0x3d4e13-_0x361a17,_0x361a17,_0x361a17,Math['PI']*0x3/0x2,0x0,!0x1),_0x5bb1ca[_0x50398e(0x276)](_0x3d4e13,_0x33e2b2-_0x37f6ba),_0x5bb1ca[_0x50398e(0x1e9)](_0x3d4e13-_0x37f6ba,_0x33e2b2-_0x37f6ba,_0x37f6ba,0x0,Math['PI']/0x2,!0x1),_0x5bb1ca[_0x50398e(0x276)](0x0,_0x33e2b2),_0x5bb1ca['lineTo'](0x0,_0x10606c),_0x5bb1ca['arc'](_0x10606c,_0x10606c,_0x10606c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5bb1ca[_0x50398e(0x248)](),_0x1a0372[_0x50398e(0x285)]&&(_0x5bb1ca[_0x50398e(0xd6)](),_0x5bb1ca['fillStyle']=_0x1a0372[_0x50398e(0x285)],_0x1a0372['fillRule']===_0x50398e(0xd5)?_0x5bb1ca[_0x50398e(0x285)](_0x50398e(0xd5)):_0x5bb1ca['fill'](),_0x5bb1ca[_0x50398e(0x196)]());}class te extends p[_0x1ff7a2(0x2fd)]{constructor(_0x5c9f67,_0x3aa85b){const _0x1784a3=_0x1ff7a2;super(_0x5c9f67,_0x3aa85b),h(this,'color'),h(this,'text'),(this[_0x1784a3(0x1d9)]=_0x3aa85b==null?void 0x0:_0x3aa85b[_0x1784a3(0x1d9)],this[_0x1784a3(0x210)]=_0x3aa85b==null?void 0x0:_0x3aa85b[_0x1784a3(0x210)]);}static[_0x1ff7a2(0x244)](_0x42dfc0,_0x350c22){const _0x2af6a0=_0x1ff7a2,{text:_0xaff91a,color:_0x323f23}=_0x350c22;_0x42dfc0[_0x2af6a0(0xd6)](),_0x42dfc0['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x656324=_0x42dfc0[_0x2af6a0(0x2d9)](_0xaff91a)[_0x2af6a0(0x1f2)],_0x28eb50=Math[_0x2af6a0(0x174)](_0x656324+0x2*re,De);_t(_0x42dfc0,{'height':K,'radius':0x4,'width':_0x28eb50,'fill':_0x323f23}),_0x42dfc0[_0x2af6a0(0x1ee)]=_0x2af6a0(0x21e);const _0x4f7fa8=re,_0x4ed733=K-ht,_0x5a0f85=De-0x2*re;if(_0x656324>_0x5a0f85){let _0x10882b='',_0x51c274=0x0;for(const _0x3e4026 of _0xaff91a){const _0x350162=_0x42dfc0[_0x2af6a0(0x2d9)](_0x3e4026)['width'];if(_0x51c274+_0x350162<=_0x5a0f85-_0x42dfc0[_0x2af6a0(0x2d9)](_0x2af6a0(0x2ca))[_0x2af6a0(0x1f2)])_0x10882b+=_0x3e4026,_0x51c274+=_0x350162;else{_0x10882b+=_0x2af6a0(0x2ca);break;}}_0x42dfc0[_0x2af6a0(0x29e)](_0x10882b,_0x4f7fa8,_0x4ed733);}else _0x42dfc0[_0x2af6a0(0x29e)](_0xaff91a,_0x4f7fa8,_0x4ed733);_0x42dfc0['restore']();}[_0x1ff7a2(0x298)](_0x4de573){const _0x49d2c5=_0x1ff7a2;te[_0x49d2c5(0x244)](_0x4de573,this);}}const oe=_0x1ff7a2(0x101),ut='collab-text-range-',dt=_0x1ff7a2(0x110),B=0x6,ft=1.5,ae=0x4,St=1.5,It='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x5c3bef,_0x2d9959,_0x1605b8,_0x444bd5){const _0x16b416=_0x1ff7a2;h(this,_0x16b416(0x197),[]),h(this,_0x16b416(0x1ae),null),h(this,_0x16b416(0x2fa),null),h(this,_0x16b416(0x30b),null),h(this,_0x16b416(0xd2),null),h(this,_0x16b416(0x1a0),null),(this['_cursor']=_0x5c3bef,this['_scene']=_0x2d9959,this[_0x16b416(0x345)]=_0x1605b8,this[_0x16b416(0x164)]=_0x444bd5,this[_0x16b416(0x31d)]());}set[_0x1ff7a2(0x30c)](_0x1dc441){const _0x3dd576=_0x1ff7a2;_0x1dc441?(this['_anchorDot']&&this['_anchorDot']['hide'](),this[_0x3dd576(0x2fa)]&&this[_0x3dd576(0x2fa)]['show']()):(this[_0x3dd576(0x30b)]&&this[_0x3dd576(0x30b)][_0x3dd576(0x10f)](),this[_0x3dd576(0x2fa)]&&this[_0x3dd576(0x2fa)][_0x3dd576(0x283)]());}[_0x1ff7a2(0x1a8)](){const _0xc5197c=_0x1ff7a2;for(const _0x12d83f of this[_0xc5197c(0x197)])_0x12d83f[_0xc5197c(0x1a8)]();this[_0xc5197c(0x2fa)]&&this[_0xc5197c(0x2fa)][_0xc5197c(0x1a8)](),this[_0xc5197c(0x30b)]&&this[_0xc5197c(0x30b)][_0xc5197c(0x1a8)](),this[_0xc5197c(0x1ae)]&&this[_0xc5197c(0x1ae)][_0xc5197c(0x1a8)](),this[_0xc5197c(0x1a0)]&&this[_0xc5197c(0x1a0)]();}[_0x1ff7a2(0x31d)](){const _0x1f356a=_0x1ff7a2;var _0x51b03d;const {_docSkeleton:_0x400e6e,_document:_0x23df8a}=this,{color:_0x54c553,name:_0x2fb572,ranges:_0x21cd34}=this[_0x1f356a(0x2b0)],_0x5340ae=_0x23df8a[_0x1f356a(0x279)](),{docsLeft:_0x4ad913,docsTop:_0x47cce0}=_0x5340ae,_0x11564f=new b[(_0x1f356a(0x251))](_0x5340ae,_0x400e6e);for(const {startOffset:_0x571792,endOffset:_0x58d467,rangeType:_0x2dd63a,segmentId:_0x5b41cd,segmentPage:_0x37dea3,collapsed:_0x5a4a70,isActive:_0x3e7eee}of _0x21cd34){const _0x5c44ee=_0x400e6e[_0x1f356a(0xeb)](_0x571792,!0x0,_0x5b41cd,_0x37dea3);let _0x4d5a9e=_0x400e6e['findNodePositionByCharIndex'](_0x58d467,!0x0,_0x5b41cd,_0x37dea3);if(_0x4d5a9e==null&&(_0x4d5a9e=_0x400e6e[_0x1f356a(0xeb)](_0x58d467-0x1,!0x1,_0x5b41cd,_0x37dea3)),_0x3e7eee){const {contentBoxPointGroup:_0x353026}=_0x11564f['getRangePointData'](_0x4d5a9e,_0x4d5a9e);if(_0x353026[_0x1f356a(0x2a5)]===0x0)continue;this['_drawAnchor'](_0x54c553,_0x353026,_0x4ad913,_0x47cce0,_0x2fb572),this['_eventUnsubscribe']=this[_0x1f356a(0x27d)]();}if(_0x5c44ee&&_0x4d5a9e){if(_0x2dd63a===a[_0x1f356a(0x326)][_0x1f356a(0x2af)]){const _0x2e2b0c=new b[(_0x1f356a(0x1fc))](_0x5340ae,_0x400e6e),{pointGroup:_0x1a378c}=(_0x51b03d=_0x2e2b0c['getRangePointData'](_0x5c44ee,_0x4d5a9e))!=null?_0x51b03d:{};if(_0x1a378c==null||_0x1a378c[_0x1f356a(0x2a5)]===0x0)continue;this[_0x1f356a(0x1ce)](_0x54c553,_0x1a378c,_0x4ad913,_0x47cce0);}else{if(!_0x5a4a70){const {borderBoxPointGroup:_0x248bef}=_0x11564f[_0x1f356a(0x16a)](_0x5c44ee,_0x4d5a9e);if(_0x248bef[_0x1f356a(0x2a5)]===0x0)continue;this[_0x1f356a(0x17a)](_0x54c553,_0x248bef,_0x4ad913,_0x47cce0);}}}}}[_0x1ff7a2(0x169)](_0x544514,_0xc70b3e,_0x58f207,_0x5b5268,_0x53d1ed){const _0x4d7303=_0x1ff7a2,_0x182926=this[_0x4d7303(0x17e)](_0xc70b3e),{left:_0x22b7c9,top:_0x303ef2,height:_0x15f8be}=_0x182926,_0x1f1e0c=this[_0x4d7303(0x19f)](),_0x5bd383=St/_0x1f1e0c,_0x2f3f0f=new p[(_0x4d7303(0x314))](oe+a['Tools']['generateRandomId'](B),{'left':_0x22b7c9+_0x58f207-_0x5bd383,'top':_0x303ef2+_0x5b5268,'height':_0x15f8be,'width':ft,'fill':_0x544514||p[_0x4d7303(0x22b)](a[_0x4d7303(0x343)][_0x4d7303(0x1ca)],0x0),'strokeWidth':_0x5bd383,'stroke':It,'evented':!0x0});this[_0x4d7303(0x1ae)]=_0x2f3f0f,this[_0x4d7303(0x156)][_0x4d7303(0x14c)](_0x2f3f0f,b[_0x4d7303(0x32e)]);const _0x5dc15c=new p[(_0x4d7303(0x314))](oe+a['Tools'][_0x4d7303(0x1f1)](B),{'left':_0x22b7c9+_0x58f207-_0x5bd383,'top':_0x303ef2+_0x5b5268-ae/0x2,'height':ae,'width':ae,'fill':_0x544514||p[_0x4d7303(0x22b)](a[_0x4d7303(0x343)][_0x4d7303(0x1ca)],0x0),'strokeWidth':0x0,'stroke':_0x544514||p[_0x4d7303(0x22b)](a[_0x4d7303(0x343)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x5dc15c,this[_0x4d7303(0x156)][_0x4d7303(0x14c)](_0x5dc15c,b[_0x4d7303(0x32e)]);const _0x19c48b=new te(oe+a[_0x4d7303(0x33d)][_0x4d7303(0x1f1)](B),{'left':_0x22b7c9+_0x58f207-_0x5bd383,'top':_0x303ef2+_0x5b5268-K,'text':_0x53d1ed,'color':_0x544514});this[_0x4d7303(0x2fa)]=_0x19c48b,this[_0x4d7303(0x156)][_0x4d7303(0x14c)](_0x19c48b,b[_0x4d7303(0x32e)]),this[_0x4d7303(0x30c)]=!0x1;}[_0x1ff7a2(0x27d)](){const _0xc1bf5c=_0x1ff7a2,_0x1c1147=this['_anchor'][_0xc1bf5c(0x27a)][_0xc1bf5c(0x2b4)](()=>{const _0xa93c63=_0xc1bf5c;this[_0xa93c63(0x30c)]=!0x0;}),_0x3bb189=this[_0xc1bf5c(0x1ae)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x326cde=_0xc1bf5c;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x326cde(0xd2)]=setTimeout(()=>{const _0x4f5b2b=_0x326cde;this[_0x4f5b2b(0x30c)]=!0x1;},0x7d0);});return()=>{const _0x2d9158=_0xc1bf5c;_0x1c1147['unsubscribe'](),_0x3bb189[_0x2d9158(0x14b)]();};}[_0x1ff7a2(0x17a)](_0x284e50,_0x7ae0ff,_0x315d22,_0x3b7dd8){const _0x3b05d4=_0x1ff7a2,_0xddb65d=new a[(_0x3b05d4(0x29b))](_0x284e50)['setAlpha'](0.2)['toRgbString'](),_0x8a3567=new p[(_0x3b05d4(0x2c4))](ut+a['Tools'][_0x3b05d4(0x1f1)](B),{'pointsGroup':_0x7ae0ff,'fill':_0xddb65d||p['getColor'](a[_0x3b05d4(0x343)][_0x3b05d4(0x1ca)],0.2),'left':_0x315d22,'top':_0x3b7dd8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x8a3567),this[_0x3b05d4(0x156)]['addObject'](_0x8a3567,b[_0x3b05d4(0x32e)]);}['_drawRectRange'](_0xd5e912,_0x35e93f,_0x18b88c,_0x201bd2){const _0x580bb3=_0x1ff7a2,_0x2ce285=new a[(_0x580bb3(0x29b))](_0xd5e912)[_0x580bb3(0x1ad)](0.2)['toRgbString'](),_0x58d763=new p[(_0x580bb3(0x2c4))](dt+a['Tools'][_0x580bb3(0x1f1)](B),{'pointsGroup':_0x35e93f,'fill':_0x2ce285||p[_0x580bb3(0x22b)](a['COLORS'][_0x580bb3(0x1ca)],0.2),'left':_0x18b88c,'top':_0x201bd2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x580bb3(0x197)]['push'](_0x58d763),this[_0x580bb3(0x156)][_0x580bb3(0x14c)](_0x58d763,b[_0x580bb3(0x32e)]);}['_getAnchorBounding'](_0x962b43){const _0x599c1a=_0x962b43[0x0],_0xe4eb2f=_0x599c1a[0x0],_0xa4cf41=_0x599c1a[0x2],{x:_0x2e1064,y:_0x273ec7}=_0xe4eb2f,{x:_0x5dbd3e,y:_0x45599d}=_0xa4cf41;return{'left':_0x2e1064,'top':_0x273ec7,'width':_0x5dbd3e-_0x2e1064,'height':_0x45599d-_0x273ec7};}[_0x1ff7a2(0x19f)](){const _0x1a8cfa=_0x1ff7a2,{scaleX:_0xe91a3b,scaleY:_0x30ab17}=this[_0x1a8cfa(0x156)][_0x1a8cfa(0x1c8)]();return Math['max'](_0xe91a3b,_0x30ab17);}}var vt=Object[_0x1ff7a2(0x167)],gt=(_0xb3564,_0x1bcaf4,_0x380c74,_0x48d2a8)=>{const _0x3a42ff=_0x1ff7a2;for(var _0x5f221a=_0x48d2a8>0x1?void 0x0:_0x48d2a8?vt(_0x1bcaf4,_0x380c74):_0x1bcaf4,_0x4b27ef=_0xb3564[_0x3a42ff(0x2a5)]-0x1,_0x19c30a;_0x4b27ef>=0x0;_0x4b27ef--)(_0x19c30a=_0xb3564[_0x4b27ef])&&(_0x5f221a=_0x19c30a(_0x5f221a)||_0x5f221a);return _0x5f221a;},V=(_0x2da321,_0x2f27e4)=>(_0x2ff275,_0xf056b7)=>_0x2f27e4(_0x2ff275,_0xf056b7,_0x2da321);let ve=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x333baa,_0x586790,_0x2b4bf5,_0xe0263a,_0xec8e1a){const _0x2bbafa=_0x1ff7a2;super(),h(this,_0x2bbafa(0x28a),[]),h(this,_0x2bbafa(0xfb),[]),(this[_0x2bbafa(0x2bf)]=_0x333baa,this['_docSkeletonManagerService']=_0x586790,this[_0x2bbafa(0x25c)]=_0x2b4bf5,this[_0x2bbafa(0x2f5)]=_0xe0263a,this[_0x2bbafa(0x1bc)]=_0xec8e1a,this[_0x2bbafa(0xd4)]());}[_0x1ff7a2(0xd4)](){const _0x29b0b8=_0x1ff7a2,_0x23d155=this[_0x29b0b8(0x2bf)][_0x29b0b8(0x1a6)],_0x1e3305=this[_0x29b0b8(0x201)];this[_0x29b0b8(0x2ce)](d[_0x29b0b8(0x2d0)]([this[_0x29b0b8(0x25c)][_0x29b0b8(0x1c2)](_0x23d155),this['_themeService']['currentTheme$']])[_0x29b0b8(0x2a2)]($[_0x29b0b8(0x223)](([_0x4076f2,_0x4ca175])=>({'skeleton':_0x1e3305['getSkeleton'](),'cursors':[..._0x4076f2[_0x29b0b8(0x2ae)]()][_0x29b0b8(0x134)](_0x2a9789=>({..._0x2a9789,'color':_0x4ca175[_0x2a9789[_0x29b0b8(0x1d9)]]}))})))[_0x29b0b8(0x124)](_0x1e0239=>{if(this['_removeCollabCursors'](),_0x1e0239){const {skeleton:_0x5d49a5,cursors:_0x22804d}=_0x1e0239;this['_updateCollabCursors'](_0x5d49a5,_0x22804d);}})),this[_0x29b0b8(0x1dc)](),this['_initCommandExecutedListener']();}[_0x1ff7a2(0x1b7)](_0x1b9fcc,_0x257576){const _0x1b6ff3=_0x1ff7a2,{scene:_0x11fcb1,mainComponent:_0x2c111a}=this[_0x1b6ff3(0x2bf)],_0x1350ec=_0x257576[_0x1b6ff3(0x223)](_0x188257=>new Ue(_0x188257,_0x11fcb1,_0x1b9fcc,_0x2c111a));this['_cursorShapes']=_0x1350ec,this[_0x1b6ff3(0xfb)]=_0x257576;}[_0x1ff7a2(0x214)](){const _0xde4a19=_0x1ff7a2;this[_0xde4a19(0x13a)]();const {scene:_0x1e8a3f,mainComponent:_0x18d8b9}=this[_0xde4a19(0x2bf)],_0x3a738b=this[_0xde4a19(0x201)][_0xde4a19(0x347)](),_0x8bcb5a=this[_0xde4a19(0xfb)][_0xde4a19(0x223)](_0x4c1713=>new Ue(_0x4c1713,_0x1e8a3f,_0x3a738b,_0x18d8b9));this[_0xde4a19(0x28a)]=_0x8bcb5a;}[_0x1ff7a2(0x13a)](){const _0x44d1b1=_0x1ff7a2;this[_0x44d1b1(0x28a)]['forEach'](_0x8f3025=>_0x8f3025[_0x44d1b1(0x1a8)]()),this[_0x44d1b1(0x28a)]=[];}[_0x1ff7a2(0xe9)](){const _0x5283a7=_0x1ff7a2,_0x1d8658=[b[_0x5283a7(0xe8)]['id']];this[_0x5283a7(0x2ce)](this['_commandService'][_0x5283a7(0x118)](_0x167f9e=>{const _0x4b8f51=_0x5283a7;_0x1d8658[_0x4b8f51(0x304)](_0x167f9e['id'])&&_0x167f9e[_0x4b8f51(0x236)][_0x4b8f51(0x1a6)]===this['_context']['unitId']&&this['_refreshCollabCursors']();}));}[_0x1ff7a2(0x1dc)](){const _0x15e08c=_0x1ff7a2;this['disposeWithMe'](a[_0x15e08c(0x1fe)](this[_0x15e08c(0x2bf)][_0x15e08c(0x1d0)][_0x15e08c(0x2c8)])[_0x15e08c(0x2a2)]($['filter'](_0x577b54=>_0x577b54[_0x15e08c(0x2dd)]===p[_0x15e08c(0x270)][_0x15e08c(0x1cd)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a[_0x1ff7a2(0x1fa)](Y[_0x1ff7a2(0x11c)])),V(0x2,a[_0x1ff7a2(0x1fa)](x)),V(0x3,a[_0x1ff7a2(0x2ef)]),V(0x4,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x30e)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x1ff7a2(0x2fd)]{constructor(_0x50c85a,_0x22d056){const _0x5666e1=_0x1ff7a2;super(_0x50c85a,_0x22d056),h(this,_0x5666e1(0xde)),h(this,_0x5666e1(0x328),!0x1),h(this,_0x5666e1(0x154)),h(this,_0x5666e1(0x34a),''),h(this,_0x5666e1(0x30d),_0x5666e1(0x2e8)),h(this,'_backgroundColor'),(_0x22d056&&this['setShapeProps'](_0x22d056),this[_0x5666e1(0x27a)][_0x5666e1(0x2b4)](()=>this[_0x5666e1(0x12e)]({'hovered':!0x0})),this['onPointerLeave$'][_0x5666e1(0x2b4)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x1ff7a2(0x12e)](_0xd5182d){const _0x8541a=_0x1ff7a2;var _0x1d9f10,_0x1e8ec5,_0x1f3054,_0x3bf40c,_0x28fba6,_0x147a8d;this[_0x8541a(0xde)]=(_0x1d9f10=_0xd5182d[_0x8541a(0x1d9)])!=null?_0x1d9f10:this[_0x8541a(0xde)],this[_0x8541a(0x328)]=(_0x1e8ec5=_0xd5182d[_0x8541a(0x13d)])!=null?_0x1e8ec5:this[_0x8541a(0x328)],this[_0x8541a(0x154)]=(_0x1f3054=_0xd5182d[_0x8541a(0x247)])!=null?_0x1f3054:this[_0x8541a(0x154)],this['_name']=(_0x3bf40c=_0xd5182d[_0x8541a(0x230)])!=null?_0x3bf40c:this[_0x8541a(0x34a)],this[_0x8541a(0x30d)]=(_0x28fba6=_0xd5182d[_0x8541a(0x185)])!=null?_0x28fba6:this[_0x8541a(0x30d)],this[_0x8541a(0x2d8)]=(_0x147a8d=_0xd5182d['backgroundColor'])!=null?_0x147a8d:this['_backgroundColor'],this['transformByState']({'width':_0xd5182d[_0x8541a(0x1f2)],'height':_0xd5182d[_0x8541a(0x1b3)]});}['onMouseMove'](_0x574f2d){const _0x4bc8e5=_0x1ff7a2,{row:_0xad232a,column:_0x3cb4a2}=_0x574f2d;if(_0xad232a>=this[_0x4bc8e5(0x154)][_0x4bc8e5(0xfd)]&&_0xad232a<=this['_range'][_0x4bc8e5(0x1e5)]&&_0x3cb4a2>=this[_0x4bc8e5(0x154)][_0x4bc8e5(0x1a5)]&&_0x3cb4a2<=this[_0x4bc8e5(0x154)]['endColumn']){this[_0x4bc8e5(0x12e)]({'hovered':!0x0});return;}this[_0x4bc8e5(0x12e)]({'hovered':!0x1});}[_0x1ff7a2(0x152)](_0x1e27cf){return!0x1;}[_0x1ff7a2(0x298)](_0x459719){const _0x5db75d=_0x1ff7a2;p[_0x5db75d(0x314)][_0x5db75d(0x244)](_0x459719,{'width':this['width'],'height':this[_0x5db75d(0x1b3)],'strokeWidth':Ct,'stroke':this[_0x5db75d(0xde)],'evented':!0x1,'fill':this[_0x5db75d(0x2d8)]}),this[_0x5db75d(0x328)]&&(_0x459719[_0x5db75d(0xd6)](),_0x459719[_0x5db75d(0x301)](0x1,0x0,0x0,0x1,this[_0x5db75d(0x1f2)],this['_labelPosition']===_0x5db75d(0x2c1)?0x0:-0x14),te['drawWith'](_0x459719,{'text':this[_0x5db75d(0x34a)],'color':this[_0x5db75d(0xde)]}),_0x459719[_0x5db75d(0x196)]());}}var pt=Object[_0x1ff7a2(0x167)],bt=(_0x368ac4,_0x3b2407,_0x3b2c8a,_0x2991f3)=>{const _0xdd4b22=_0x1ff7a2;for(var _0x54c93b=_0x2991f3>0x1?void 0x0:_0x2991f3?pt(_0x3b2407,_0x3b2c8a):_0x3b2407,_0x5c1223=_0x368ac4[_0xdd4b22(0x2a5)]-0x1,_0x82d270;_0x5c1223>=0x0;_0x5c1223--)(_0x82d270=_0x368ac4[_0x5c1223])&&(_0x54c93b=_0x82d270(_0x54c93b)||_0x54c93b);return _0x54c93b;},ce=(_0x4ca741,_0x36b551)=>(_0x2bb841,_0x374ae3)=>_0x36b551(_0x2bb841,_0x374ae3,_0x4ca741);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x387d64,_0x3d39e3,_0x3b6ce4,_0x152722){const _0x3d1ab8=_0x1ff7a2;super(),h(this,_0x3d1ab8(0xfb),new Set()),h(this,_0x3d1ab8(0x261),null),(this[_0x3d1ab8(0x2bf)]=_0x387d64,this['_sheetSkeletonManagerService']=_0x3d39e3,this['_collabCursorController']=_0x3b6ce4,this['_themeService']=_0x152722,this['_init']());}[_0x1ff7a2(0xd4)](){const _0x3fbb92=_0x1ff7a2;this[_0x3fbb92(0x24b)][_0x3fbb92(0x23a)]['pipe']($['takeUntil'](this[_0x3fbb92(0xdc)]),$[_0x3fbb92(0xee)](_0x48dc16=>{const _0x31f606=_0x3fbb92;if(_0x48dc16){const _0x2b73bc=_0x48dc16['sheetId'];return d[_0x31f606(0x2d0)](this['_collabCursorController'][_0x31f606(0x1c2)](this['_context'][_0x31f606(0x1a6)]),this[_0x31f606(0x1bc)][_0x31f606(0x305)])[_0x31f606(0x2a2)]($['map'](([_0x4e9f35,_0x29e491])=>{const _0x275f78=_0x31f606,_0x217269=new Map();return _0x4e9f35[_0x275f78(0x1ea)]((_0x51dbc6,_0x5f46ec)=>{const _0x21d8a6=_0x275f78;if(_0x51dbc6[_0x21d8a6(0x356)]===_0x2b73bc){const _0x2cfb98={..._0x51dbc6};_0x2cfb98[_0x21d8a6(0x1d9)]=_0x29e491[_0x51dbc6[_0x21d8a6(0x1d9)]],_0x217269[_0x21d8a6(0x1ef)](_0x5f46ec,_0x2cfb98);}}),{'skeleton':_0x48dc16,'cursors':_0x217269};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3fbb92(0x124)](({skeleton:_0x5871e1,cursors:_0x2f6185})=>{const _0x1f48a9=_0x3fbb92;this[_0x1f48a9(0x13a)](),_0x5871e1&&this['_updateCollabCursors'](_0x5871e1,_0x2f6185);}),this[_0x3fbb92(0x24b)]['currentSkeleton$'][_0x3fbb92(0x124)](_0x39a726=>{const _0x3f658c=_0x3fbb92;if(_0x39a726==null)return;const {skeleton:_0x4c0c2d}=_0x39a726,{scene:_0x45078b}=this[_0x3f658c(0x2bf)];_0x45078b['onPointerMove$'][_0x3f658c(0x2b4)](a[_0x3f658c(0x14f)](_0x49781a=>{const _0x123d95=_0x3f658c;var _0x38034f,_0x315d16;const {offsetX:_0x3e7f31,offsetY:_0x4637d2}=_0x49781a,{x:_0x47ddfe,y:_0x3dd61c}=_0x45078b[_0x123d95(0x340)](p[_0x123d95(0x136)][_0x123d95(0x324)]([_0x3e7f31,_0x4637d2])),{scaleX:_0x30a9c5,scaleY:_0x4ad366}=_0x45078b[_0x123d95(0x1c8)](),_0x4d7542=_0x45078b[_0x123d95(0x175)](p[_0x123d95(0x297)]['VIEW_MAIN']),_0x501338=_0x45078b[_0x123d95(0x20c)](p[_0x123d95(0x136)][_0x123d95(0x324)]([_0x47ddfe,_0x3dd61c]),_0x4d7542),_0x5ddd82=_0x4c0c2d[_0x123d95(0x26d)](_0x3e7f31,_0x4637d2,_0x30a9c5,_0x4ad366,_0x501338);((_0x38034f=this[_0x123d95(0x261)])==null?void 0x0:_0x38034f['column'])===_0x5ddd82[_0x123d95(0x27e)]&&((_0x315d16=this[_0x123d95(0x261)])==null?void 0x0:_0x315d16[_0x123d95(0x300)])===_0x5ddd82[_0x123d95(0x300)]||this[_0x123d95(0xfb)]['forEach'](_0x236ce3=>{const _0x29456f=_0x123d95;_0x236ce3[_0x29456f(0x14d)](_0x5ddd82);});},0x64));});}['_updateCollabCursors'](_0x85ecad,_0x598989){const _0x58530f=_0x1ff7a2;var _0x8b3f76;const _0x1b23ce=(_0x8b3f76=this[_0x58530f(0x24b)][_0x58530f(0x2a4)]())==null?void 0x0:_0x8b3f76[_0x58530f(0x208)];if(!_0x1b23ce)return;const _0x463754=this['_getSheetObject']();if(!_0x463754)return;this['_cursors']['forEach'](_0x277f32=>{const _0x941816=_0x58530f;_0x277f32[_0x941816(0x243)]();});const {scene:_0x44b673}=_0x463754,_0x3a8ee5=Tt(Array[_0x58530f(0x192)](_0x598989[_0x58530f(0x2ae)]()))[_0x58530f(0x223)](_0x2c420e=>{const _0x53210f=_0x58530f,{color:_0x4afaf2,range:_0x3a5519,name:_0x1a9556,selection:_0x493cb0,sheetID:_0x30d33b}=_0x2c420e,{startColumn:_0x52adb7,startRow:_0x38c2aa,endColumn:_0x165b56,endRow:_0x345e14}=_0x3a5519,_0xabb2c1=G[_0x53210f(0x292)](_0x38c2aa,_0x52adb7,_0x44b673,_0x1b23ce),_0x190278=G[_0x53210f(0x292)](_0x345e14,_0x165b56,_0x44b673,_0x1b23ce),{columnHeaderHeightAndMarginTop:_0x56d2cb}=_0x1b23ce,{startX:_0x5a3e58,startY:_0x25df57}=_0xabb2c1,{endX:_0x21a2b0,endY:_0x12367c}=_0x190278,_0xba406c=_0x21a2b0-_0x5a3e58,_0x52d947=_0x12367c-_0x25df57,_0x100f78={'labelPosition':_0x25df57-_0x56d2cb>=K?_0x53210f(0x2e8):_0x53210f(0x2c1),'sheetID':_0x30d33b,'range':_0x3a5519,'color':_0x4afaf2,'name':_0x1a9556,'selection':_0x493cb0,'left':_0x5a3e58,'top':_0x25df57,'width':_0xba406c,'height':_0x52d947,'evented':!0x1,'zIndex':Et};return new Ae(_0x1a9556,_0x100f78);});_0x44b673['addObjects'](_0x3a8ee5,mt),this['_cursors']=new Set(_0x3a8ee5);}[_0x1ff7a2(0x13a)](){const _0x44bb2b=_0x1ff7a2;var _0x4ed07f;(_0x4ed07f=this[_0x44bb2b(0xfb)])==null||_0x4ed07f[_0x44bb2b(0x1ea)](_0x5864bc=>_0x5864bc[_0x44bb2b(0x1a8)]());}[_0x1ff7a2(0x1d8)](){const _0x13aca5=_0x1ff7a2;return G['getSheetObject'](this[_0x13aca5(0x2bf)][_0x13aca5(0x330)],this['_context']);}};ge=bt([ce(0x1,a[_0x1ff7a2(0x1fa)](G['SheetSkeletonManagerService'])),ce(0x2,a['Inject'](x)),ce(0x3,a[_0x1ff7a2(0x1fa)](a['ThemeService']))],ge);function Tt(_0x583f92){const _0x57ea0b=_0x1ff7a2,_0xa9c9b7=new Map();return _0x583f92[_0x57ea0b(0x1ea)](_0x4f09f4=>{const _0x5c6c93=_0x57ea0b;if(_0xa9c9b7[_0x5c6c93(0x21d)](_0x4f09f4[_0x5c6c93(0x2ba)])){const _0x4494d=_0xa9c9b7[_0x5c6c93(0x2fc)](_0x4f09f4[_0x5c6c93(0x2ba)]);_0x4494d[_0x5c6c93(0x230)]+=',\x20'+_0x4f09f4[_0x5c6c93(0x230)];}else _0xa9c9b7[_0x5c6c93(0x1ef)](_0x4f09f4[_0x5c6c93(0x2ba)],_0x4f09f4);}),Array[_0x57ea0b(0x192)](_0xa9c9b7[_0x57ea0b(0x2ae)]());}var E=function(){const _0x15da14=_0x1ff7a2;return E=Object['assign']||function(_0x43142f){const _0x261e68=_0x5501;for(var _0xed0bc7,_0x336c59=0x1,_0x1def63=arguments[_0x261e68(0x2a5)];_0x336c59<_0x1def63;_0x336c59++){_0xed0bc7=arguments[_0x336c59];for(var _0x4c7631 in _0xed0bc7)Object['prototype']['hasOwnProperty'][_0x261e68(0x309)](_0xed0bc7,_0x4c7631)&&(_0x43142f[_0x4c7631]=_0xed0bc7[_0x4c7631]);}return _0x43142f;},E[_0x15da14(0x207)](this,arguments);},Rt=function(_0x2fb48a,_0x4e087c){const _0x5aab3c=_0x1ff7a2;var _0x16be54={};for(var _0xee8cb in _0x2fb48a)Object[_0x5aab3c(0x204)]['hasOwnProperty'][_0x5aab3c(0x309)](_0x2fb48a,_0xee8cb)&&_0x4e087c[_0x5aab3c(0x1d1)](_0xee8cb)<0x0&&(_0x16be54[_0xee8cb]=_0x2fb48a[_0xee8cb]);if(_0x2fb48a!=null&&typeof Object[_0x5aab3c(0x339)]==_0x5aab3c(0x10e)){for(var _0x2c2980=0x0,_0xee8cb=Object[_0x5aab3c(0x339)](_0x2fb48a);_0x2c2980<_0xee8cb[_0x5aab3c(0x2a5)];_0x2c2980++)_0x4e087c[_0x5aab3c(0x1d1)](_0xee8cb[_0x2c2980])<0x0&&Object[_0x5aab3c(0x204)][_0x5aab3c(0xea)][_0x5aab3c(0x309)](_0x2fb48a,_0xee8cb[_0x2c2980])&&(_0x16be54[_0xee8cb[_0x2c2980]]=_0x2fb48a[_0xee8cb[_0x2c2980]]);}return _0x16be54;},be=M['forwardRef'](function(_0x1b0adf,_0x51e989){const _0x128310=_0x1ff7a2;var _0x14b229=_0x1b0adf[_0x128310(0x262)],_0x1d0240=_0x1b0adf['id'],_0xd336d4=_0x1b0adf[_0x128310(0xe2)],_0x8ed810=_0x1b0adf[_0x128310(0x286)],_0x5e1387=Rt(_0x1b0adf,[_0x128310(0x262),'id',_0x128310(0xe2),'extend']),_0x1e403a=_0x128310(0x1b1)['concat'](_0x1d0240,'\x20')[_0x128310(0x222)](_0xd336d4||'')[_0x128310(0x2cf)](),_0x5f96a6=M[_0x128310(0x316)]('_'[_0x128310(0x222)](Ut()));return ye(_0x14b229,''[_0x128310(0x222)](_0x1d0240),{'defIds':_0x14b229[_0x128310(0x1d7)],'idSuffix':_0x5f96a6[_0x128310(0x351)]},E({'ref':_0x51e989,'className':_0x1e403a},_0x5e1387),_0x8ed810);});function ye(_0x5cf4b5,_0x30fea2,_0x51107c,_0x2f173e,_0x39e066){const _0x91adb8=_0x1ff7a2;return M[_0x91adb8(0x16c)](_0x5cf4b5[_0x91adb8(0x1b8)],E(E({'key':_0x30fea2},Ot(_0x5cf4b5,_0x51107c,_0x39e066)),_0x2f173e),(Dt(_0x5cf4b5,_0x51107c)[_0x91adb8(0x15e)]||[])[_0x91adb8(0x223)](function(_0x1fbf2b,_0x2cccd8){const _0x114f6c=_0x91adb8;return ye(_0x1fbf2b,''[_0x114f6c(0x222)](_0x30fea2,'-')[_0x114f6c(0x222)](_0x5cf4b5[_0x114f6c(0x1b8)],'-')[_0x114f6c(0x222)](_0x2cccd8),_0x51107c,void 0x0,_0x39e066);}));}function Ot(_0x2b15da,_0xcecfe5,_0xdc54be){const _0x2cccac=_0x1ff7a2;var _0x2259c5=E({},_0x2b15da[_0x2cccac(0x32d)]);_0xdc54be!=null&&_0xdc54be[_0x2cccac(0x2a9)]&&_0x2259c5[_0x2cccac(0x285)]===_0x2cccac(0x2a9)&&(_0x2259c5['fill']=_0xdc54be[_0x2cccac(0x2a9)]),_0x2b15da[_0x2cccac(0x1b8)]===_0x2cccac(0x2b3)&&_0x2259c5['id']&&(_0x2259c5['id']=_0x2259c5['id']+_0xcecfe5[_0x2cccac(0x10c)]),Object[_0x2cccac(0x1b4)](_0x2259c5)[_0x2cccac(0x1ea)](function(_0x3b8178){const _0x4fcb54=_0x2cccac;var _0x268a45=_0x3b8178[0x0],_0xd807fc=_0x3b8178[0x1];_0x268a45===_0x4fcb54(0x2b3)&&typeof _0xd807fc==_0x4fcb54(0x184)&&(_0x2259c5[_0x268a45]=_0xd807fc[_0x4fcb54(0x29c)](/url\(#(.*)\)/,_0x4fcb54(0x32f)['concat'](_0xcecfe5[_0x4fcb54(0x10c)],')')));});var _0x9f8614=_0xcecfe5[_0x2cccac(0x1d7)];return!_0x9f8614||_0x9f8614[_0x2cccac(0x2a5)]===0x0||(_0x2b15da['tag']===_0x2cccac(0x333)&&_0x2259c5[_0x2cccac(0x176)]&&(_0x2259c5[_0x2cccac(0x176)]=_0x2259c5[_0x2cccac(0x176)]+_0xcecfe5[_0x2cccac(0x10c)]),Object[_0x2cccac(0x1b4)](_0x2259c5)[_0x2cccac(0x1ea)](function(_0x44ec14){const _0x6da337=_0x2cccac;var _0x16259e=_0x44ec14[0x0],_0x15269d=_0x44ec14[0x1];typeof _0x15269d==_0x6da337(0x184)&&(_0x2259c5[_0x16259e]=_0x15269d[_0x6da337(0x29c)](/url\(#(.*)\)/,'url(#$1'[_0x6da337(0x222)](_0xcecfe5[_0x6da337(0x10c)],')')));})),_0x2259c5;}function Dt(_0x35980e,_0x584044){const _0x267319=_0x1ff7a2;var _0x22ee6b,_0x50fa9b=_0x584044[_0x267319(0x1d7)];return!_0x50fa9b||_0x50fa9b[_0x267319(0x2a5)]===0x0?_0x35980e:_0x35980e[_0x267319(0x1b8)]===_0x267319(0x2f7)&&(!((_0x22ee6b=_0x35980e[_0x267319(0x15e)])===null||_0x22ee6b===void 0x0)&&_0x22ee6b[_0x267319(0x2a5)])?E(E({},_0x35980e),{'children':_0x35980e[_0x267319(0x15e)][_0x267319(0x223)](function(_0x1da1ba){const _0x1dd8ac=_0x267319;return typeof _0x1da1ba['attrs']['id']=='string'&&_0x50fa9b&&_0x50fa9b['indexOf'](_0x1da1ba[_0x1dd8ac(0x32d)]['id'])>-0x1?E(E({},_0x1da1ba),{'attrs':E(E({},_0x1da1ba[_0x1dd8ac(0x32d)]),{'id':_0x1da1ba['attrs']['id']+_0x584044[_0x1dd8ac(0x10c)]})}):_0x1da1ba;})}):_0x35980e;}function Ut(){const _0x2cfcdc=_0x1ff7a2;return Math[_0x2cfcdc(0x296)]()[_0x2cfcdc(0x32b)](0x24)[_0x2cfcdc(0x106)](0x2,0x8);}be['displayName']=_0x1ff7a2(0x141);var Nt={'tag':_0x1ff7a2(0x31b),'attrs':{'fill':'none','viewBox':_0x1ff7a2(0x24c),'width':_0x1ff7a2(0xdf),'height':_0x1ff7a2(0xdf)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x1ff7a2(0x159),'attrs':{'stroke':_0x1ff7a2(0x20f),'d':_0x1ff7a2(0x2aa),'strokeLinecap':_0x1ff7a2(0x180),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1ff7a2(0x2f7),'attrs':{},'children':[{'tag':_0x1ff7a2(0x1ba),'attrs':{'id':_0x1ff7a2(0x27f)},'children':[{'tag':_0x1ff7a2(0x159),'attrs':{'fill':_0x1ff7a2(0x2bd),'d':_0x1ff7a2(0x288)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=M[_0x1ff7a2(0x23b)](function(_0x11b199,_0x56aa4f){const _0x364013=_0x1ff7a2;return M[_0x364013(0x16c)](be,Object['assign']({},_0x11b199,{'id':_0x364013(0x26b),'ref':_0x56aa4f,'icon':Nt}));});$e['displayName']='OffLineSingle';var Mt={'tag':_0x1ff7a2(0x31b),'attrs':{'fill':_0x1ff7a2(0x1de),'viewBox':_0x1ff7a2(0xd9),'width':_0x1ff7a2(0xdf),'height':_0x1ff7a2(0xdf)},'children':[{'tag':'g','attrs':{'clipPath':_0x1ff7a2(0x231)},'children':[{'tag':_0x1ff7a2(0x159),'attrs':{'stroke':_0x1ff7a2(0x20f),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x1ff7a2(0x180),'strokeLinejoin':_0x1ff7a2(0x180),'strokeWidth':1.2}}]},{'tag':_0x1ff7a2(0x2f7),'attrs':{},'children':[{'tag':_0x1ff7a2(0x1ba),'attrs':{'id':_0x1ff7a2(0x24e)},'children':[{'tag':_0x1ff7a2(0x159),'attrs':{'fill':'#fff','d':_0x1ff7a2(0x288),'transform':_0x1ff7a2(0x1c4)}}]}]}],'defIds':[_0x1ff7a2(0x24e)]},xe=M[_0x1ff7a2(0x23b)](function(_0x596717,_0x1ade50){const _0x45ba4c=_0x1ff7a2;return M[_0x45ba4c(0x16c)](be,Object['assign']({},_0x596717,{'id':_0x45ba4c(0x335),'ref':_0x1ade50,'icon':Mt}));});xe[_0x1ff7a2(0x1e8)]=_0x1ff7a2(0x2ee);const Pt='univer-online-status-icon',wt=_0x1ff7a2(0x123),Lt=_0x1ff7a2(0x148),At=_0x1ff7a2(0x11e),yt=_0x1ff7a2(0x28d),H={'onlineStatusIcon':Pt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':At,'offline':yt};function $t(_0x5d0705){const _0x444930=_0x1ff7a2;switch(_0x5d0705){case u[_0x444930(0x22c)][_0x444930(0x31a)]:return _0x444930(0x191);case u[_0x444930(0x22c)]['CONFLICT']:return _0x444930(0x2a8);case u[_0x444930(0x22c)][_0x444930(0x10d)]:return'collabStatus.fetchMiss';case u[_0x444930(0x22c)]['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x444930(0x22c)][_0x444930(0x234)]:case u[_0x444930(0x22c)]['AWAITING_WITH_PENDING']:return _0x444930(0x260);case u[_0x444930(0x22c)][_0x444930(0xe0)]:case u[_0x444930(0x22c)]['PENDING']:return _0x444930(0x1d3);}}function je(_0x2e53ea){const _0x36d93c=_0x1ff7a2,{status$:_0xebf696}=_0x2e53ea,_0x405d05=R['useObservable'](_0xebf696,u[_0x36d93c(0x22c)][_0x36d93c(0xe6)]),_0x578b38=R[_0x36d93c(0x1f6)](a[_0x36d93c(0x12c)]),_0x568889=R[_0x36d93c(0x1f6)](u['CollaborationSessionService']),_0x4bd014=_0x405d05!==u[_0x36d93c(0x22c)][_0x36d93c(0x31a)],_0x54f278=_0x578b38['t']($t(_0x405d05)),_0x21da04=T['clsx'](H[_0x36d93c(0x21a)],{[H['online']]:_0x4bd014,[H[_0x36d93c(0x153)]]:!_0x4bd014}),_0x3f842a=_0x4bd014?w[_0x36d93c(0x34b)](xe,{}):w[_0x36d93c(0x34b)]($e,{}),_0x5c4162=M[_0x36d93c(0x12a)](()=>{const _0x449118=_0x36d93c;_0x4bd014||_0x568889[_0x449118(0x2bc)]();},[_0x4bd014,_0x568889]);function _0x1a5312(){const _0x251c3b=_0x36d93c;return w[_0x251c3b(0x32a)]('div',{'className':T['clsx'](_0x21da04,_0x251c3b(0x2dc)),'onClick':_0x5c4162,'children':[w['jsx'](_0x251c3b(0x31e),{'className':H[_0x251c3b(0x289)],'children':_0x3f842a}),w[_0x251c3b(0x34b)]('div',{'className':H[_0x251c3b(0x125)],'children':_0x54f278})]});}return _0x4bd014?_0x1a5312():w[_0x36d93c(0x34b)](T[_0x36d93c(0x2a1)],{'title':_0x578b38['t'](_0x36d93c(0x217)),'children':_0x1a5312()});}var xt=Object[_0x1ff7a2(0x167)],jt=(_0xbfdea1,_0x239ba0,_0x2dd857,_0x987af9)=>{const _0x2ae5ca=_0x1ff7a2;for(var _0x1150db=_0x987af9>0x1?void 0x0:_0x987af9?xt(_0x239ba0,_0x2dd857):_0x239ba0,_0x258e0e=_0xbfdea1[_0x2ae5ca(0x2a5)]-0x1,_0x53526d;_0x258e0e>=0x0;_0x258e0e--)(_0x53526d=_0xbfdea1[_0x258e0e])&&(_0x1150db=_0x53526d(_0x1150db)||_0x1150db);return _0x1150db;},X=(_0xd72f64,_0x123a14)=>(_0x3a39e3,_0x16a948)=>_0x123a14(_0x3a39e3,_0x16a948,_0xd72f64);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x149f3c,_0x4f5f75,_0x39b87c,_0x110537){const _0x912d16=_0x1ff7a2;super(),h(this,'_status$',new d[(_0x912d16(0x2f0))](u[_0x912d16(0x22c)][_0x912d16(0xe6)])),(this[_0x912d16(0x103)]=_0x149f3c,this[_0x912d16(0x165)]=_0x4f5f75,this[_0x912d16(0x30f)]=_0x39b87c,this[_0x912d16(0x341)]=_0x110537,this[_0x912d16(0x1d4)](),this[_0x912d16(0x212)]());}[_0x1ff7a2(0x212)](){const _0x23d330=_0x1ff7a2;this[_0x23d330(0x2ce)](this[_0x23d330(0x103)][_0x23d330(0x34f)]['pipe'](d[_0x23d330(0xee)](()=>{const _0x26e1d4=_0x23d330,_0x3b82ad=this[_0x26e1d4(0x103)]['getFocusedUnit']();return _0x3b82ad?this[_0x26e1d4(0x30f)][_0x26e1d4(0x1bd)](_0x3b82ad[_0x26e1d4(0x121)]()):d['of'](null);}),d[_0x23d330(0xee)](_0x5a1ab3=>_0x5a1ab3?_0x5a1ab3[_0x23d330(0x16e)]:d['of'](u['CollaborationStatus'][_0x23d330(0xe6)])))[_0x23d330(0x124)](_0x42ccd8=>{const _0x7cde6f=_0x23d330;this['_status$'][_0x7cde6f(0x1af)](_0x42ccd8);}));}[_0x1ff7a2(0x1d4)](){const _0x3928e9=_0x1ff7a2;this[_0x3928e9(0x2ce)](this[_0x3928e9(0x341)]['registerComponent'](R[_0x3928e9(0x2d2)][_0x3928e9(0x31c)],()=>R[_0x3928e9(0x23e)](kt({'status$':this[_0x3928e9(0x26a)][_0x3928e9(0x2f3)]()}),this[_0x3928e9(0x165)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x1ff7a2(0x21f)]),X(0x1,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x111)])),X(0x2,a[_0x1ff7a2(0x1fa)](u[_0x1ff7a2(0x266)])),X(0x3,R['IUIPartsService'])],exports[_0x1ff7a2(0x17b)]);function kt(_0x4764a8){const {status$:_0x19f4d5}=_0x4764a8;return function(){return w['jsx'](je,{'status$':_0x19f4d5});};}var Bt=Object[_0x1ff7a2(0x167)],Ht=(_0x2bb7c4,_0x1717b3,_0x334375,_0x1e5679)=>{for(var _0x465945=_0x1e5679>0x1?void 0x0:_0x1e5679?Bt(_0x1717b3,_0x334375):_0x1717b3,_0x35e35d=_0x2bb7c4['length']-0x1,_0x306f0c;_0x35e35d>=0x0;_0x35e35d--)(_0x306f0c=_0x2bb7c4[_0x35e35d])&&(_0x465945=_0x306f0c(_0x465945)||_0x465945);return _0x465945;},y=(_0x36002a,_0x3d38f1)=>(_0x354508,_0x2b50eb)=>_0x3d38f1(_0x354508,_0x2b50eb,_0x36002a);let z=class extends a[_0x1ff7a2(0x299)]{constructor(_0x17d987,_0x42afbe,_0x5fe850,_0x56a8aa,_0x229a9c,_0x26fc48){const _0x2c7851=_0x1ff7a2;super(),this['_beforeCloseService']=_0x17d987,this['_localCacheService']=_0x42afbe,this[_0x2c7851(0x337)]=_0x5fe850,this[_0x2c7851(0x119)]=_0x56a8aa,this[_0x2c7851(0x306)]=_0x229a9c,this[_0x2c7851(0x198)]=_0x26fc48,this[_0x2c7851(0x2c3)](),this[_0x2c7851(0x1b6)]();}['_setupBeforeClosingHandler'](){const _0x3b36c3=_0x1ff7a2;this['disposeWithMe'](this[_0x3b36c3(0x2b6)][_0x3b36c3(0x19b)](()=>{const _0x33d9ed=_0x3b36c3;if(this[_0x33d9ed(0x163)][_0x33d9ed(0x25a)][_0x33d9ed(0x312)])return this[_0x33d9ed(0x198)]['t'](_0x33d9ed(0x281));}));}[_0x1ff7a2(0x1b6)](){const _0x246f58=_0x1ff7a2;this[_0x246f58(0x2ce)](this[_0x246f58(0x337)][_0x246f58(0x18c)][_0x246f58(0x124)](_0x40bd7f=>{const _0x353a92=_0x246f58;_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0x263)]&&this[_0x353a92(0x119)][_0x353a92(0x10f)]({'type':T['MessageType'][_0x353a92(0x268)],'content':this[_0x353a92(0x198)]['t']('collaboration.single-unit.warning')}),_0x40bd7f['id']===u['CollaborationUIEventId'][_0x353a92(0x32c)]&&this[_0x353a92(0x119)][_0x353a92(0x10f)]({'type':T[_0x353a92(0x346)][_0x353a92(0x268)],'content':this[_0x353a92(0x198)]['t'](_0x353a92(0x23f))}),_0x40bd7f['id']===u[_0x353a92(0x2ff)]['PERMISSION_DENIED']&&this[_0x353a92(0x306)][_0x353a92(0x10f)]({'title':this[_0x353a92(0x198)]['t'](_0x353a92(0x33c)),'content':this['_localeService']['t'](_0x353a92(0x302)),'type':'error','duration':0x0}),_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0x259)]&&this[_0x353a92(0x119)][_0x353a92(0x10f)]({'type':T[_0x353a92(0x346)][_0x353a92(0x2fb)],'content':this[_0x353a92(0x198)]['t']('collaboration.closeRoom')+'('+_0x40bd7f[_0x353a92(0x2f6)]+')'}),_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0x255)]&&this[_0x353a92(0x119)][_0x353a92(0x10f)]({'type':T['MessageType'][_0x353a92(0x268)],'content':this[_0x353a92(0x198)]['t'](_0x40bd7f[_0x353a92(0x2f6)]||'')}),_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0x27b)]&&this['_messageService']['show']({'type':T[_0x353a92(0x346)][_0x353a92(0x268)],'content':this[_0x353a92(0x198)]['t'](_0x353a92(0xf6))}),_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0xdd)]&&this['_messageService']['show']({'type':T[_0x353a92(0x346)][_0x353a92(0x2fb)],'content':this[_0x353a92(0x198)]['t']('session.connection-failed')}),_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0x107)]&&this[_0x353a92(0x119)]['show']({'type':T[_0x353a92(0x346)][_0x353a92(0x2fb)],'content':this[_0x353a92(0x198)]['t'](_0x353a92(0x264))});}));}};z=Ht([y(0x0,R[_0x1ff7a2(0x137)]),y(0x1,u[_0x1ff7a2(0x15d)]),y(0x2,a[_0x1ff7a2(0x1fa)](u['CollaborationUIEventService'])),y(0x3,R[_0x1ff7a2(0x116)]),y(0x4,R[_0x1ff7a2(0x357)]),y(0x5,a['Inject'](a[_0x1ff7a2(0x12c)]))],z);const Ft=_0x1ff7a2(0x130),Ne={},Ee=a['createIdentifier'](_0x1ff7a2(0xdb));var Wt=Object[_0x1ff7a2(0x167)],Yt=(_0x16ffbc,_0x13320e,_0x4e103e,_0x24865d)=>{const _0x5e85fb=_0x1ff7a2;for(var _0x25899b=_0x24865d>0x1?void 0x0:_0x24865d?Wt(_0x13320e,_0x4e103e):_0x13320e,_0x18977d=_0x16ffbc[_0x5e85fb(0x2a5)]-0x1,_0x4c3497;_0x18977d>=0x0;_0x18977d--)(_0x4c3497=_0x16ffbc[_0x18977d])&&(_0x25899b=_0x4c3497(_0x25899b)||_0x25899b);return _0x25899b;},F=(_0x38b1e2,_0x15d70f)=>(_0x522681,_0x324a80)=>_0x15d70f(_0x522681,_0x324a80,_0x38b1e2);exports[_0x1ff7a2(0x1d6)]=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x2963f2,_0x131cb0,_0x2c690b,_0x3bde90,_0x2b8e25){const _0x2a4e80=_0x1ff7a2;super(),this[_0x2a4e80(0x17c)]=_0x2963f2,this[_0x2a4e80(0x1a4)]=_0x131cb0,this['_commandService']=_0x2c690b,this[_0x2a4e80(0x2b5)]=_0x3bde90,_0x2b8e25?_0x2b8e25==null||_0x2b8e25[_0x2a4e80(0x181)]()['then'](()=>this[_0x2a4e80(0xd4)]()):(this[_0x2a4e80(0x1a4)][_0x2a4e80(0x170)](_0x2a4e80(0x2e2),_0x2a4e80(0x13e)),this[_0x2a4e80(0xd4)]());}async[_0x1ff7a2(0xd4)](){const _0x3317c3=_0x1ff7a2,_0x20b090=this[_0x3317c3(0x17c)]['getParam'](_0x3317c3(0x330)),_0x68cb3b=this[_0x3317c3(0x17c)][_0x3317c3(0x23c)]('type'),_0xacd877=this[_0x3317c3(0x17c)]['getParam'](_0x3317c3(0x293));if(!_0x20b090||!_0x68cb3b){this[_0x3317c3(0x1a4)][_0x3317c3(0x170)](_0x3317c3(0x2e2),_0x3317c3(0x2be));return;}const _0x21359f=await this[_0x3317c3(0x2b5)][_0x3317c3(0x15c)](_0x20b090,Number(_0x68cb3b),_0xacd877);_0x21359f&&_0x21359f instanceof a[_0x3317c3(0x241)]&&this[_0x3317c3(0x228)](_0x21359f);}async[_0x1ff7a2(0x228)](_0x217108){const _0x49aba5=_0x1ff7a2;await this[_0x49aba5(0x209)](_0x217108),_0x217108[_0x49aba5(0x224)][_0x49aba5(0x2a2)](d['takeUntil'](this[_0x49aba5(0xdc)]))[_0x49aba5(0x124)](_0x4db90c=>{const _0x2211ad=_0x49aba5;_0x4db90c&&this[_0x2211ad(0x33e)](_0x4db90c);}),this['_urlService']['urlChange$'][_0x49aba5(0x2a2)](d[_0x49aba5(0xf0)](this[_0x49aba5(0xdc)]))[_0x49aba5(0x124)](()=>this[_0x49aba5(0x209)](_0x217108));}[_0x1ff7a2(0x33e)](_0x34c63c,_0x466295=!0x1){const _0x4668d4=_0x1ff7a2,_0xeb5e77=this['_urlService']['getParam']('subunit');_0x34c63c['getSheetId']()!==_0xeb5e77&&this['_urlService'][_0x4668d4(0x18b)](_0x4668d4(0x293),_0x34c63c[_0x4668d4(0x291)](),_0x466295);}async['_updateSubUnitFromURLParams'](_0x4b6d4b){const _0x5d45a2=_0x1ff7a2;var _0x5c659e;const _0x5b5c38=this[_0x5d45a2(0x17c)][_0x5d45a2(0x23c)](_0x5d45a2(0x293));if(!_0x5b5c38||!_0x4b6d4b[_0x5d45a2(0x2e6)](_0x5b5c38)){const _0x19ba2b=_0x4b6d4b[_0x5d45a2(0x1e0)]()[0x0],_0x3317cc=_0x4b6d4b[_0x5d45a2(0x2e6)](_0x19ba2b);if(!_0x3317cc)return;this[_0x5d45a2(0x33e)](_0x3317cc,!0x0),await this[_0x5d45a2(0x2f5)][_0x5d45a2(0xe1)](g[_0x5d45a2(0x29a)]['id'],{'unitId':_0x4b6d4b[_0x5d45a2(0x121)](),'subUnitId':_0x19ba2b});return;}((_0x5c659e=_0x4b6d4b[_0x5d45a2(0x2df)]())==null?void 0x0:_0x5c659e[_0x5d45a2(0x291)]())!==_0x5b5c38&&await this[_0x5d45a2(0x2f5)][_0x5d45a2(0xe1)](g[_0x5d45a2(0x29a)]['id'],{'unitId':_0x4b6d4b[_0x5d45a2(0x121)](),'subUnitId':_0x5b5c38});}},exports[_0x1ff7a2(0x1d6)]=Yt([F(0x0,Ee),F(0x1,a[_0x1ff7a2(0x1e3)]),F(0x2,a[_0x1ff7a2(0x2ef)]),F(0x3,a[_0x1ff7a2(0x1fa)](u[_0x1ff7a2(0x213)])),F(0x4,a[_0x1ff7a2(0x202)](Ke[_0x1ff7a2(0x2db)]))],exports[_0x1ff7a2(0x1d6)]);var Vt=Object[_0x1ff7a2(0x167)],Xt=(_0x31b717,_0x31e79c,_0x14743c,_0x511227)=>{for(var _0x1e0799=_0x511227>0x1?void 0x0:_0x511227?Vt(_0x31e79c,_0x14743c):_0x31e79c,_0x28a5bf=_0x31b717['length']-0x1,_0x10cc90;_0x28a5bf>=0x0;_0x28a5bf--)(_0x10cc90=_0x31b717[_0x28a5bf])&&(_0x1e0799=_0x10cc90(_0x1e0799)||_0x1e0799);return _0x1e0799;},le=(_0x49d9a5,_0x2ed8d4)=>(_0x118577,_0x34b676)=>_0x2ed8d4(_0x118577,_0x34b676,_0x49d9a5);let J=class{constructor(_0x3c6299,_0x280c3e,_0x2c2ded){const _0x1d4598=_0x1ff7a2;this[_0x1d4598(0x165)]=_0x3c6299,this[_0x1d4598(0x178)]=_0x280c3e,this[_0x1d4598(0x2e5)]=_0x2c2ded;}['transformIMECache'](_0x478103){this['_transformUndoRedoStack'](_0x478103),this['_transformPreviousActiveRange'](_0x478103);}[_0x1ff7a2(0x138)](_0x278c32){const _0x3627fb=_0x1ff7a2,{unitID:_0x372907}=_0x278c32,_0x3647af=this[_0x3627fb(0x2e5)][_0x3627fb(0x1a1)](_0x372907)['with'](b['DocIMEInputManagerService']),{redoCache:_0x278a54}=_0x3647af['getUndoRedoMutationParamsCache']();if(_0x278a54[_0x3627fb(0x2a5)]===0x0)return _0x278c32;let _0x496cc8=a['Tools']['deepClone'](_0x278c32[_0x3627fb(0x1ec)][0x0]);for(let _0x29e7f5=0x0;_0x29e7f5<_0x278a54[_0x3627fb(0x2a5)];_0x29e7f5++){const _0x4df9b7={'id':_0x3627fb(0x28f),'params':{..._0x278a54[_0x29e7f5]}},_0x545186=this[_0x3627fb(0x178)][_0x3627fb(0x1b5)](_0x496cc8,_0x4df9b7,!0x1);if(m['isTransformMutationFailure'](_0x545186))throw _0x545186['error'];_0x496cc8=_0x545186[_0x3627fb(0x334)];}return{...a['Tools'][_0x3627fb(0x331)](_0x278c32),'mutations':[_0x496cc8]};}['_transformUndoRedoStack'](_0x332e1f){const _0x5c5389=_0x1ff7a2,{unitID:_0x1787c4}=_0x332e1f,_0x5607d1=this[_0x5c5389(0x2e5)]['getRenderById'](_0x1787c4)[_0x5c5389(0x172)](b['DocIMEInputManagerService']),{undoCache:_0x11b0e3,redoCache:_0x27f91d}=_0x5607d1['getUndoRedoMutationParamsCache']();if(_0x11b0e3[_0x5c5389(0x2a5)]===0x0||_0x27f91d[_0x5c5389(0x2a5)]===0x0)return;const _0x3a9a65=[],_0x5cf943=[];let _0x1e4aaa=a['Tools'][_0x5c5389(0x331)](_0x332e1f[_0x5c5389(0x1ec)][0x0]),_0x190613=a['Tools'][_0x5c5389(0x331)](_0x332e1f[_0x5c5389(0x1ec)][0x0]);for(let _0x2135ba=_0x11b0e3[_0x5c5389(0x2a5)]-0x1;_0x2135ba>=0x0;_0x2135ba--){const _0x2094f6={'id':_0x5c5389(0x28f),'params':{..._0x11b0e3[_0x2135ba]}},_0x39703b={'id':_0x5c5389(0x28f),'params':{..._0x27f91d[_0x2135ba]}},_0x42d8e6=this[_0x5c5389(0x178)][_0x5c5389(0x1b5)](_0x1e4aaa,_0x2094f6,!0x1),_0x3ac7c8=this['_transformService'][_0x5c5389(0x1b5)](_0x190613,_0x39703b,!0x1);if(m[_0x5c5389(0x294)](_0x42d8e6))throw _0x42d8e6[_0x5c5389(0x33b)];if(m[_0x5c5389(0x294)](_0x3ac7c8))throw _0x3ac7c8['error'];_0x3a9a65[_0x5c5389(0x29d)](_0x42d8e6[_0x5c5389(0x232)][_0x5c5389(0x236)]),_0x5cf943[_0x5c5389(0x29d)](_0x3ac7c8[_0x5c5389(0x232)]['params']),_0x1e4aaa=_0x42d8e6[_0x5c5389(0x334)],_0x190613=_0x3ac7c8['m1Prime'];}_0x5607d1[_0x5c5389(0x112)]({'undoCache':_0x3a9a65,'redoCache':_0x5cf943});}[_0x1ff7a2(0x1f7)](_0x39fa12){const _0x32f108=_0x1ff7a2,{unitID:_0x397a5b}=_0x39fa12,_0x41f048=this[_0x32f108(0x2e5)][_0x32f108(0x1a1)](_0x397a5b)['with'](b[_0x32f108(0x189)]),_0x34708a=_0x41f048[_0x32f108(0x1b2)]();if(_0x34708a==null)return;const _0x280123=[{'id':_0x32f108(0x28f),'params':{'unitId':_0x39fa12['unitID'],'actions':null,'textRanges':[_0x34708a]}}],_0x4c30e7=this[_0x32f108(0x178)]['transformMutationsWithChangeset'](_0x39fa12,_0x280123);if(!m[_0x32f108(0x2cd)](_0x4c30e7))throw _0x4c30e7[_0x32f108(0x33b)];const _0x396e7f=_0x4c30e7['m2Prime'][0x0]['params'][_0x32f108(0x30a)];Array[_0x32f108(0x18f)](_0x396e7f)&&_0x396e7f[_0x32f108(0x2a5)]&&_0x41f048['setActiveRange'](_0x396e7f[0x0]);}};J=Xt([le(0x0,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x111)])),le(0x1,m[_0x1ff7a2(0x342)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object[_0x1ff7a2(0x167)],qt=(_0x376474,_0x1256cb,_0x4d9b60,_0x148e4a)=>{const _0x260f91=_0x1ff7a2;for(var _0x590992=_0x148e4a>0x1?void 0x0:_0x148e4a?Gt(_0x1256cb,_0x4d9b60):_0x1256cb,_0x350922=_0x376474[_0x260f91(0x2a5)]-0x1,_0x59c6a6;_0x350922>=0x0;_0x350922--)(_0x59c6a6=_0x376474[_0x350922])&&(_0x590992=_0x59c6a6(_0x590992)||_0x590992);return _0x590992;},he=(_0x1becef,_0x3021a2)=>(_0x59dc6a,_0x3a3c5b)=>_0x3021a2(_0x59dc6a,_0x3a3c5b,_0x1becef);let Z=class{constructor(_0x33db20,_0x45a2b7,_0x567bfa){const _0x9f79cb=_0x1ff7a2;this[_0x9f79cb(0x165)]=_0x33db20,this[_0x9f79cb(0x178)]=_0x45a2b7,this['_docStateChangeManagerService']=_0x567bfa;}[_0x1ff7a2(0x10a)](_0xa3f1b2){const _0x7909c9=_0x1ff7a2;this[_0x7909c9(0x2cc)](_0xa3f1b2);}[_0x1ff7a2(0x138)](_0x501114){const _0x3f104d=_0x1ff7a2,{unitID:_0x1f7b0c}=_0x501114,{collaboration:_0x36da29}=this['_docStateChangeManagerService'][_0x3f104d(0xd0)](_0x1f7b0c);if(_0x36da29[_0x3f104d(0x2a5)]===0x0)return _0x501114;let _0x27a8ae=a['Tools']['deepClone'](_0x501114[_0x3f104d(0x1ec)][0x0]);for(let _0x142ef4=0x0;_0x142ef4<_0x36da29['length'];_0x142ef4++){const _0x1329e1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x36da29[_0x142ef4][_0x3f104d(0x1a6)],..._0x36da29[_0x142ef4][_0x3f104d(0x1f0)]}},_0x305f4b=this[_0x3f104d(0x178)][_0x3f104d(0x1b5)](_0x27a8ae,_0x1329e1,!0x1);if(m[_0x3f104d(0x294)](_0x305f4b))throw _0x305f4b['error'];_0x27a8ae=_0x305f4b['m1Prime'];}return{...a['Tools'][_0x3f104d(0x331)](_0x501114),'mutations':[_0x27a8ae]};}[_0x1ff7a2(0x2cc)](_0x537235){const _0x4908eb=_0x1ff7a2,{unitID:_0x1dd3cd}=_0x537235,{history:_0x2d34f5,collaboration:_0x57181b}=this['_docStateChangeManagerService']['getStateCache'](_0x1dd3cd);if(_0x2d34f5['length']===0x0&&_0x57181b['length']===0x0)return;const _0x3e96c1=[],_0x513007=[];let _0x10e786=a['Tools'][_0x4908eb(0x331)](_0x537235['mutations'][0x0]),_0x53c009=a[_0x4908eb(0x33d)][_0x4908eb(0x331)](_0x537235[_0x4908eb(0x1ec)][0x0]);for(let _0x398d8e=_0x2d34f5[_0x4908eb(0x2a5)]-0x1;_0x398d8e>=0x0;_0x398d8e--){const _0x56c531={'id':_0x4908eb(0x28f),'params':{'unitId':_0x2d34f5[_0x398d8e]['unitId'],..._0x2d34f5[_0x398d8e][_0x4908eb(0x348)]}},_0x354b0e={'id':_0x4908eb(0x28f),'params':{'unitId':_0x2d34f5[_0x398d8e][_0x4908eb(0x1a6)],..._0x2d34f5[_0x398d8e][_0x4908eb(0x1f0)]}},_0x54bdf7=this['_transformService'][_0x4908eb(0x1b5)](_0x10e786,_0x56c531,!0x1),_0x41960e=this[_0x4908eb(0x178)]['transformMutation'](_0x53c009,_0x354b0e,!0x1);if(m[_0x4908eb(0x294)](_0x54bdf7))throw _0x54bdf7[_0x4908eb(0x33b)];if(m[_0x4908eb(0x294)](_0x41960e))throw _0x41960e[_0x4908eb(0x33b)];_0x3e96c1[_0x4908eb(0x29d)]({..._0x2d34f5[_0x398d8e],'undoState':_0x54bdf7[_0x4908eb(0x232)]['params'],'redoState':_0x41960e[_0x4908eb(0x232)]['params']}),_0x10e786=_0x54bdf7[_0x4908eb(0x334)],_0x53c009=_0x41960e[_0x4908eb(0x334)];}_0x10e786=a[_0x4908eb(0x33d)][_0x4908eb(0x331)](_0x537235[_0x4908eb(0x1ec)][0x0]),_0x53c009=a[_0x4908eb(0x33d)]['deepClone'](_0x537235[_0x4908eb(0x1ec)][0x0]);for(let _0x1876c9=_0x57181b[_0x4908eb(0x2a5)]-0x1;_0x1876c9>=0x0;_0x1876c9--){const _0x28658c={'id':_0x4908eb(0x28f),'params':{'unitId':_0x57181b[_0x1876c9][_0x4908eb(0x1a6)],..._0x57181b[_0x1876c9][_0x4908eb(0x348)]}},_0x5b7c52={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x57181b[_0x1876c9][_0x4908eb(0x1a6)],..._0x57181b[_0x1876c9]['redoState']}},_0x2c97c8=this['_transformService'][_0x4908eb(0x1b5)](_0x10e786,_0x28658c,!0x1),_0x50a13e=this[_0x4908eb(0x178)]['transformMutation'](_0x53c009,_0x5b7c52,!0x1);if(m[_0x4908eb(0x294)](_0x2c97c8))throw _0x2c97c8['error'];if(m['isTransformMutationFailure'](_0x50a13e))throw _0x50a13e['error'];_0x513007[_0x4908eb(0x29d)]({..._0x57181b[_0x1876c9],'undoState':_0x2c97c8[_0x4908eb(0x232)][_0x4908eb(0x236)],'redoState':_0x50a13e[_0x4908eb(0x232)][_0x4908eb(0x236)]}),_0x10e786=_0x2c97c8[_0x4908eb(0x334)],_0x53c009=_0x50a13e[_0x4908eb(0x334)];}this[_0x4908eb(0x1f5)][_0x4908eb(0x2d1)](_0x1dd3cd,{'history':_0x3e96c1,'collaboration':_0x513007});}};Z=qt([he(0x0,a[_0x1ff7a2(0x1fa)](a['Injector'])),he(0x1,m[_0x1ff7a2(0x342)]),he(0x2,a[_0x1ff7a2(0x1fa)](b[_0x1ff7a2(0x218)]))],Z);var Kt=Object[_0x1ff7a2(0x167)],zt=(_0x1b05f6,_0x1ad1f0,_0x5aa029,_0x346417)=>{const _0x45bde4=_0x1ff7a2;for(var _0x2ff1c9=_0x346417>0x1?void 0x0:_0x346417?Kt(_0x1ad1f0,_0x5aa029):_0x1ad1f0,_0x46b8a3=_0x1b05f6[_0x45bde4(0x2a5)]-0x1,_0x285aa6;_0x46b8a3>=0x0;_0x46b8a3--)(_0x285aa6=_0x1b05f6[_0x46b8a3])&&(_0x2ff1c9=_0x285aa6(_0x2ff1c9)||_0x2ff1c9);return _0x2ff1c9;},Me=(_0xbbf100,_0x59af0b)=>(_0x1ba158,_0x222ccd)=>_0x59af0b(_0x1ba158,_0x222ccd,_0xbbf100);let Q=class{constructor(_0x1b7abf,_0x4f6976){const _0x309f6e=_0x1ff7a2;this[_0x309f6e(0x165)]=_0x1b7abf,this[_0x309f6e(0x178)]=_0x4f6976;}['transformSelections'](_0x1283a3){const _0x1c4713=_0x1ff7a2;var _0x2fee4c;const _0x3a582a=this[_0x1c4713(0x165)]['get'](Y['DocSelectionManagerService']),_0x38719e=(_0x2fee4c=_0x3a582a['getDocRanges']())!=null?_0x2fee4c:[];if(_0x38719e['length']===0x0)return;const _0x352d12=_0x1283a3[_0x1c4713(0x15f)],_0x23f448=[{'id':_0x1c4713(0x28f),'params':{'unitId':_0x352d12,'actions':null,'textRanges':_0x38719e}}],_0x32b9f0=this[_0x1c4713(0x178)][_0x1c4713(0xe3)](_0x1283a3,_0x23f448);if(!m[_0x1c4713(0x2cd)](_0x32b9f0))throw _0x32b9f0[_0x1c4713(0x33b)];const _0xf9699b=_0x32b9f0[_0x1c4713(0x232)][0x0][_0x1c4713(0x236)]['textRanges'];Array[_0x1c4713(0x18f)](_0xf9699b)&&_0xf9699b[_0x1c4713(0x2a5)]&&_0x3a582a['replaceDocRanges'](_0xf9699b,{'unitId':_0x352d12,'subUnitId':_0x352d12},!0x1);}};Q=zt([Me(0x0,a['Inject'](a['Injector'])),Me(0x1,m[_0x1ff7a2(0x342)])],Q);var Jt=Object[_0x1ff7a2(0x167)],Zt=(_0x19c9ce,_0x264649,_0x2919f7,_0x4686c3)=>{const _0x41722e=_0x1ff7a2;for(var _0x4f0793=_0x4686c3>0x1?void 0x0:_0x4686c3?Jt(_0x264649,_0x2919f7):_0x264649,_0x477464=_0x19c9ce[_0x41722e(0x2a5)]-0x1,_0x41b8ce;_0x477464>=0x0;_0x477464--)(_0x41b8ce=_0x19c9ce[_0x477464])&&(_0x4f0793=_0x41b8ce(_0x4f0793)||_0x4f0793);return _0x4f0793;},N=(_0x35abbc,_0x2e3d27)=>(_0x355df1,_0x4701fa)=>_0x2e3d27(_0x355df1,_0x4701fa,_0x35abbc);let ee=class extends a['Disposable']{constructor(_0x1355a1,_0x29511b,_0x5e5298,_0x27f3fe,_0x487f03,_0x52c049,_0x6df59d,_0x160d81){const _0x13bad4=_0x1ff7a2;super(),h(this,_0x13bad4(0x26a),new d[(_0x13bad4(0x2f0))](u[_0x13bad4(0x22c)][_0x13bad4(0xe6)])),(this[_0x13bad4(0x1f5)]=_0x1355a1,this[_0x13bad4(0x30f)]=_0x29511b,this[_0x13bad4(0x338)]=_0x5e5298,this[_0x13bad4(0x102)]=_0x27f3fe,this[_0x13bad4(0x1fd)]=_0x487f03,this[_0x13bad4(0x1da)]=_0x52c049,this[_0x13bad4(0x119)]=_0x6df59d,this['_localeService']=_0x160d81,this[_0x13bad4(0x23d)]());}[_0x1ff7a2(0x23d)](){const _0x646f19=_0x1ff7a2;this['disposeWithMe'](this[_0x646f19(0x30f)][_0x646f19(0x2da)][_0x646f19(0x124)](_0xa29d40=>{const _0xc6454c=_0x646f19,_0x290ea0=this[_0xc6454c(0x1f5)]['docStateChange$'][_0xc6454c(0x124)](_0x58a828=>{const _0x30813b=_0xc6454c;if(_0x58a828==null)return;const {unitId:_0x562de7,redoState:_0x33e707,commandId:_0xb2f1d6}=_0x58a828;if(_0x562de7!==_0xa29d40[_0x30813b(0x15f)])return;const _0x329997={'id':_0xb2f1d6,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x562de7,'actions':_0x33e707[_0x30813b(0x2d7)],'textRanges':null}};_0xa29d40['onLocalMutation'](_0x329997);});if(_0xa29d40[_0xc6454c(0x2ce)](_0x290ea0),_0xa29d40 instanceof u[_0xc6454c(0x140)]){const _0x526119={'onTransformIME':_0x1bb291=>this['_docTransformIMECacheService'][_0xc6454c(0x24f)](_0x1bb291),'onTransformState':_0x2f671c=>this[_0xc6454c(0x102)]['transformStateCache'](_0x2f671c),'onTransformSelections':_0x5e2961=>this[_0xc6454c(0x1fd)][_0xc6454c(0x14e)](_0x5e2961),'onSyncEditingCollabCursor':_0x35c2e1=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x35c2e1),'onTransformRemoteChangesetByIMECache':_0x4ad309=>this[_0xc6454c(0x338)][_0xc6454c(0x138)](_0x4ad309),'onTransformRemoteChangesetByStateCache':_0x4d97b8=>this['_docTransformStateCacheService'][_0xc6454c(0x138)](_0x4d97b8)};_0xa29d40[_0xc6454c(0x117)](_0x526119);}}));}};ee=Zt([N(0x0,a[_0x1ff7a2(0x1fa)](b[_0x1ff7a2(0x218)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0x1ff7a2(0x1fa)](J)),N(0x3,a[_0x1ff7a2(0x1fa)](Z)),N(0x4,a['Inject'](Q)),N(0x5,a[_0x1ff7a2(0x1fa)](pe)),N(0x6,R[_0x1ff7a2(0x116)]),N(0x7,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x12c)]))],ee);var Qt=Object[_0x1ff7a2(0x167)],es=(_0x17fb0b,_0x1bc732,_0x213c95,_0x33bab9)=>{const _0x386a47=_0x1ff7a2;for(var _0x2bb12c=_0x33bab9>0x1?void 0x0:_0x33bab9?Qt(_0x1bc732,_0x213c95):_0x1bc732,_0x4ccf15=_0x17fb0b[_0x386a47(0x2a5)]-0x1,_0x5d6c20;_0x4ccf15>=0x0;_0x4ccf15--)(_0x5d6c20=_0x17fb0b[_0x4ccf15])&&(_0x2bb12c=_0x5d6c20(_0x2bb12c)||_0x2bb12c);return _0x2bb12c;},_e=(_0x2894de,_0xb06e65)=>(_0x55b971,_0x4f84f9)=>_0xb06e65(_0x55b971,_0x4f84f9,_0x2894de);let me=class extends a['Disposable']{constructor(_0x224e36,_0x3f3cd6,_0x5369a4){const _0x1e228b=_0x1ff7a2;super(),h(this,_0x1e228b(0x1db),new Map()),h(this,_0x1e228b(0x254),new Map()),h(this,_0x1e228b(0x13b),!0x1),(this[_0x1e228b(0xf9)]=_0x224e36,this['_localStorageService']=_0x3f3cd6,this['_revisionService']=_0x5369a4);}[_0x1ff7a2(0x183)](){const _0x4d0696=_0x1ff7a2;this[_0x4d0696(0x13b)]=!0x0;}['enableLocalCache'](){const _0x29a2e5=_0x1ff7a2;this[_0x29a2e5(0x13b)]=!0x1;}get[_0x1ff7a2(0x25a)](){return this['_saveTaskMap'];}[_0x1ff7a2(0x1a8)](){const _0x1aa7d1=_0x1ff7a2;this['exhaustSavingTask']()['then'](()=>super[_0x1aa7d1(0x1a8)]());}async[_0x1ff7a2(0x2e7)](_0x55f338){const _0x536310=_0x1ff7a2;return this[_0x536310(0x13b)]?null:this[_0x536310(0x226)][_0x536310(0x1a2)](u[_0x536310(0x317)](_0x55f338));}async[_0x1ff7a2(0xed)](_0x2a9410,_0x1b3fdf){const _0x1880f3=_0x1ff7a2;return!!this[_0x1880f3(0x226)]['setItem'](_0x2a9410,_0x1b3fdf);}[_0x1ff7a2(0xfe)](_0x437733,_0x1b9e93,_0x3f4715,_0x4891b1){const _0x4bf7d4=_0x1ff7a2,_0x58cb06=this[_0x4bf7d4(0x104)]['getCurrentRevOfUnit'](_0x437733);this['_cachedData'][_0x4bf7d4(0x1ef)](_0x437733,{'unitID':_0x437733,'type':_0x1b9e93,'awaitingChangeset':_0x3f4715,'mutations':_0x4891b1,'rev':_0x58cb06}),this[_0x4bf7d4(0x254)][_0x4bf7d4(0x21d)](_0x437733)||this[_0x4bf7d4(0x179)](_0x437733);}['_scheduleSaving'](_0x382c9b){const _0x1f6c6f=_0x1ff7a2,_0x38393f=this[_0x1f6c6f(0x26e)]();_0x38393f===0x0?this[_0x1f6c6f(0xe4)](_0x382c9b):this['_saveTaskMap']['set'](_0x382c9b,setTimeout(()=>this[_0x1f6c6f(0xe4)](_0x382c9b),_0x38393f));}[_0x1ff7a2(0x26e)](){const _0x10b059=_0x1ff7a2;var _0x1ff007;return(_0x1ff007=this[_0x10b059(0xf9)][_0x10b059(0x166)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x1ff007:u['LOCAL_CACHE_INTERVAL'];}[_0x1ff7a2(0xe4)](_0x491398){const _0x3be0dd=_0x1ff7a2,_0x5d9e9e=this[_0x3be0dd(0x254)]['get'](_0x491398);return _0x5d9e9e!==void 0x0&&window['clearTimeout'](_0x5d9e9e),this['_localStorageService']['setItem'](u[_0x3be0dd(0x317)](_0x491398),this[_0x3be0dd(0x1db)]['get'](_0x491398))['then'](()=>this[_0x3be0dd(0x254)][_0x3be0dd(0x28e)](_0x491398));}async[_0x1ff7a2(0x146)](){const _0xedf0c=_0x1ff7a2,_0x487404=[];this[_0xedf0c(0x254)][_0xedf0c(0x1ea)]((_0x4ecda7,_0x58f0c1)=>{const _0x5aee6e=_0xedf0c;window['clearTimeout'](_0x4ecda7),_0x487404['push'](this[_0x5aee6e(0xe4)](_0x58f0c1)[_0x5aee6e(0x1fb)](()=>{const _0x4dc733=_0x5aee6e;this[_0x4dc733(0x254)][_0x4dc733(0x28e)](_0x58f0c1);}));}),await Promise[_0xedf0c(0x267)](_0x487404);}};me=es([_e(0x0,a[_0x1ff7a2(0x190)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x1ff7a2(0x1fa)](m[_0x1ff7a2(0x1cb)]))],me);class ke extends a[_0x1ff7a2(0x2c5)]{constructor(){const _0x146ecb=_0x1ff7a2;super(),h(this,_0x146ecb(0x1a7)),this[_0x146ecb(0x1a7)]=d['fromEvent'](window,_0x146ecb(0x34e))[_0x146ecb(0x2a2)](d[_0x146ecb(0xf0)](this[_0x146ecb(0xdc)]),d[_0x146ecb(0x2e4)](0x1),d[_0x146ecb(0x2e9)](void 0x0));}['setParam'](_0x5c1d73,_0xe3a863,_0x285ecf=!0x1){const _0x2c38df=_0x1ff7a2,_0x5ef62f=new URL(window[_0x2c38df(0x1c1)]['href']);_0x5ef62f[_0x2c38df(0x2e3)]['set'](_0x5c1d73,_0xe3a863),_0x285ecf?window[_0x2c38df(0x2ad)][_0x2c38df(0x2a7)]('','',_0x5ef62f[_0x2c38df(0x32b)]()):window[_0x2c38df(0x2ad)]['pushState']('','',_0x5ef62f[_0x2c38df(0x32b)]());}[_0x1ff7a2(0x13f)](_0x23d108,_0x5bb5ce=!0x1){const _0x57d087=_0x1ff7a2,_0x344de8=new URL(window['location'][_0x57d087(0x21c)]);_0x344de8['searchParams'][_0x57d087(0x28e)](_0x23d108),_0x5bb5ce?window[_0x57d087(0x2ad)][_0x57d087(0x2a7)]('','',_0x344de8['toString']()):window[_0x57d087(0x2ad)][_0x57d087(0x211)]('','',_0x344de8[_0x57d087(0x32b)]());}[_0x1ff7a2(0x23c)](_0x2f211b){const _0x359eee=_0x1ff7a2;var _0x3feab8;return(_0x3feab8=new URL(window[_0x359eee(0x1c1)][_0x359eee(0x21c)])[_0x359eee(0x2e3)]['get'](_0x2f211b))!=null?_0x3feab8:void 0x0;}}var ts=Object[_0x1ff7a2(0x350)],ss=Object['getOwnPropertyDescriptor'],ns=(_0xfb63da,_0x5d80b8,_0x2516b6)=>_0x5d80b8 in _0xfb63da?ts(_0xfb63da,_0x5d80b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2516b6}):_0xfb63da[_0x5d80b8]=_0x2516b6,is=(_0x509392,_0x242ad3,_0x357c1d,_0x3fe0f2)=>{for(var _0x218cdd=_0x3fe0f2>0x1?void 0x0:_0x3fe0f2?ss(_0x242ad3,_0x357c1d):_0x242ad3,_0x44b8e8=_0x509392['length']-0x1,_0x2e68ce;_0x44b8e8>=0x0;_0x44b8e8--)(_0x2e68ce=_0x509392[_0x44b8e8])&&(_0x218cdd=_0x2e68ce(_0x218cdd)||_0x218cdd);return _0x218cdd;},ue=(_0x7d880d,_0x4d5ec5)=>(_0x46483b,_0x443032)=>_0x4d5ec5(_0x46483b,_0x443032,_0x7d880d),rs=(_0x44673a,_0x413869,_0xf9f573)=>ns(_0x44673a,_0x413869+'',_0xf9f573);function _0x5501(_0x15c0e7,_0x25e9b1){const _0x404255=_0x4042();return _0x5501=function(_0x55017e,_0x1b60f7){_0x55017e=_0x55017e-0xd0;let _0x3647b4=_0x404255[_0x55017e];return _0x3647b4;},_0x5501(_0x15c0e7,_0x25e9b1);}const os=_0x1ff7a2(0x129);exports[_0x1ff7a2(0x188)]=class extends a[_0x1ff7a2(0x120)]{constructor(_0xd982ad=Ne,_0x4e43cd,_0x17159f,_0x551da6){const _0x5ad445=_0x1ff7a2;super(),this[_0x5ad445(0x16b)]=_0xd982ad,this['_renderManagerService']=_0x4e43cd,this[_0x5ad445(0x165)]=_0x17159f,this['_configService']=_0x551da6;const {..._0x22a818}=a[_0x5ad445(0x22d)]({},Ne,this[_0x5ad445(0x16b)]);this['_configService'][_0x5ad445(0x307)](Ft,_0x22a818);}['onStarting'](){const _0x97d06a=_0x1ff7a2;this[_0x97d06a(0x1c6)](),this['_initDependencies']();}[_0x1ff7a2(0x2b9)](){this['_registerRenderDependencies']();}[_0x1ff7a2(0x1c6)](){const _0x4186ba=_0x1ff7a2;var _0x2bda14;const _0x3fc0cd=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x4186ba(0x329)],{'useClass':q[_0x4186ba(0x250)]}],[u[_0x4186ba(0x15d)],{'useClass':me}],[exports[_0x4186ba(0x17b)]],[ee],[z],[x],[fe],[exports['CollaborationDataLoaderController']]];a[_0x4186ba(0x105)](this['_injector'],a[_0x4186ba(0x240)](_0x3fc0cd,(_0x2bda14=this[_0x4186ba(0x16b)])==null?void 0x0:_0x2bda14[_0x4186ba(0x253)]));}[_0x1ff7a2(0x160)](){const _0x3461e8=_0x1ff7a2;this[_0x3461e8(0x2ce)](this[_0x3461e8(0x2e5)][_0x3461e8(0x1ac)](a['UniverInstanceType']['UNIVER_DOC'],[ve])),this['disposeWithMe'](this[_0x3461e8(0x2e5)][_0x3461e8(0x1ac)](a[_0x3461e8(0x15a)][_0x3461e8(0x2e0)],[ge]));}[_0x1ff7a2(0x187)](){const _0x789488=_0x1ff7a2;a[_0x789488(0x17f)](this[_0x789488(0x165)],[[x],[exports[_0x789488(0x17b)]],[ee],[z],[exports[_0x789488(0x1d6)]]]);}},rs(exports['UniverCollaborationClientUIPlugin'],_0x1ff7a2(0x252),os),exports['UniverCollaborationClientUIPlugin']=is([a[_0x1ff7a2(0x14a)](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x1ff7a2(0x142)]),ue(0x2,a[_0x1ff7a2(0x1fa)](a['Injector'])),ue(0x3,a[_0x1ff7a2(0x190)])],exports[_0x1ff7a2(0x188)]);var as=Object[_0x1ff7a2(0x167)],cs=(_0x50375,_0x56ec04,_0x280b0c,_0x389648)=>{const _0x3a3eff=_0x1ff7a2;for(var _0x5c0b2b=_0x389648>0x1?void 0x0:_0x389648?as(_0x56ec04,_0x280b0c):_0x56ec04,_0x295c6b=_0x50375[_0x3a3eff(0x2a5)]-0x1,_0x4f99fa;_0x295c6b>=0x0;_0x295c6b--)(_0x4f99fa=_0x50375[_0x295c6b])&&(_0x5c0b2b=_0x4f99fa(_0x5c0b2b)||_0x5c0b2b);return _0x5c0b2b;},W=(_0x4fb2bf,_0x38e0b2)=>(_0x1c40a4,_0x3fcd5d)=>_0x38e0b2(_0x1c40a4,_0x3fcd5d,_0x4fb2bf);exports[_0x1ff7a2(0x1b0)]=class extends u[_0x1ff7a2(0x114)]{constructor(_0x2e1741,_0x5d3f67,_0x114cd1,_0x3c82c1,_0x253b95){super(_0x2e1741,_0x5d3f67,_0x114cd1,_0x3c82c1,_0x253b95);}async[_0x1ff7a2(0x215)](_0x4ffcb2){const _0xa21cd3=_0x1ff7a2,_0x46b91f=await this[_0xa21cd3(0x2b2)](),_0x238850=this[_0xa21cd3(0x28c)](_0x4ffcb2,_0x46b91f);return this[_0xa21cd3(0x131)](_0x238850);}[_0x1ff7a2(0x28c)](_0x33763d,_0x5c629d){const _0x3cb039=_0x1ff7a2,_0x245cd8=typeof window>'u'?new URL(_0x33763d):new URL(_0x33763d,window['location']['origin']);_0x245cd8[_0x3cb039(0x2e3)][_0x3cb039(0x1ef)](_0x3cb039(0x303),_0x5c629d);const _0x420df0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x420df0[_0x3cb039(0x2fc)](_0x3cb039(0x245))&&_0x245cd8[_0x3cb039(0x2e3)][_0x3cb039(0x1ef)](_0x3cb039(0x245),_0x420df0[_0x3cb039(0x2fc)]('runId')),_0x245cd8[_0x3cb039(0x32b)]();}async['_getSessionTicket'](){const _0x5b28a7=_0x1ff7a2;var _0x55729a,_0x16759f,_0x14a51b;const _0x3a5439=this[_0x5b28a7(0xf9)][_0x5b28a7(0x166)](u[_0x5b28a7(0x193)]),_0x39c479=(_0x55729a=_0x3a5439==null?void 0x0:_0x3a5439[_0x5b28a7(0x277)])!=null?_0x55729a:u[_0x5b28a7(0x2d4)];return(_0x14a51b=(_0x16759f=(await this['_httpService'][_0x5b28a7(0x2fc)](_0x39c479,{'headers':{'Content-Type':_0x5b28a7(0x17d)}}))['body'])==null?void 0x0:_0x16759f[_0x5b28a7(0x145)])!=null?_0x14a51b:'';}},exports[_0x1ff7a2(0x1b0)]=cs([W(0x0,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x111)])),W(0x1,a['Inject'](q[_0x1ff7a2(0xf5)])),W(0x2,a['IConfigService']),W(0x3,a[_0x1ff7a2(0x1e3)]),W(0x4,m[_0x1ff7a2(0x271)])],exports[_0x1ff7a2(0x1b0)]);const Pe=0x7530,we='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a['Disposable']{constructor(){const _0x42498e=_0x1ff7a2;super(),h(this,'_id',a[_0x42498e(0x1f1)]()),h(this,_0x42498e(0x18d),new Set()),h(this,_0x42498e(0x2f9),new Map()),h(this,_0x42498e(0xd1),null),h(this,_0x42498e(0x275),new Map()),h(this,_0x42498e(0x12b),new Map()),this[_0x42498e(0xd4)]();}[_0x1ff7a2(0x1a8)](){const _0x651516=_0x1ff7a2;super[_0x651516(0x1a8)](),this[_0x651516(0x275)]['forEach']((_0x54f0db,_0x303c55)=>this[_0x651516(0xf4)](_0x303c55)),this[_0x651516(0xd1)]&&window[_0x651516(0x2e1)](this['_heartbeatTimer']);}[_0x1ff7a2(0x158)](_0x464adf){const _0x53801f=_0x1ff7a2;return this[_0x53801f(0x203)](_0x464adf)['pipe'](d[_0x53801f(0x322)]());}[_0x1ff7a2(0x272)](_0x60832f){const _0x46941d=_0x1ff7a2;this[_0x46941d(0x18d)][_0x46941d(0x312)]===0x0&&this['_scheduleHeartbeat'](),this[_0x46941d(0x18d)]['add'](_0x60832f),this[_0x46941d(0x318)]({'type':0x0,'memberID':this[_0x46941d(0x349)],'unitIDs':[_0x60832f],'isForwarded':!0x1});}[_0x1ff7a2(0x139)](_0x2a3b6e){const _0x4b024e=_0x1ff7a2;this[_0x4b024e(0x18d)][_0x4b024e(0x28e)](_0x2a3b6e),this[_0x4b024e(0x18d)]['size']===0x0&&this[_0x4b024e(0xd1)]&&window['clearInterval'](this[_0x4b024e(0xd1)]);}[_0x1ff7a2(0xd4)](){const _0x576ab6=_0x1ff7a2;this[_0x576ab6(0x2ce)](a[_0x576ab6(0x33f)](d['fromEvent'](window,'storage')[_0x576ab6(0x124)](_0x589223=>{const _0x235ea6=_0x576ab6;if(_0x589223[_0x235ea6(0x162)]!==we||!_0x589223[_0x235ea6(0x2c0)])return;const _0x591b14=JSON[_0x235ea6(0x206)](_0x589223[_0x235ea6(0x2c0)]);this[_0x235ea6(0x108)](_0x591b14);}))),window[_0x576ab6(0x34c)](_0x576ab6(0xfc),()=>this[_0x576ab6(0x318)]({'type':0x1,'memberID':this[_0x576ab6(0x349)],'unitIDs':Array[_0x576ab6(0x192)](this[_0x576ab6(0x18d)])}));}[_0x1ff7a2(0x108)](_0x2767df){const _0x17bb8b=_0x1ff7a2;switch(_0x2767df['type']){case 0x0:this[_0x17bb8b(0x20a)](_0x2767df);break;case 0x1:this[_0x17bb8b(0x216)](_0x2767df);break;case 0x2:this[_0x17bb8b(0x2b7)](_0x2767df);break;}}['_handleJoinEvent'](_0x5ec2a2){const _0x541a10=_0x1ff7a2,{unitIDs:_0x5445b5,memberID:_0x45e1c9,isForwarded:_0x4057d6}=_0x5ec2a2;_0x5445b5[_0x541a10(0x1ea)](_0x4e6be5=>{const _0x49d22a=_0x541a10;if(!_0x4057d6&&this['_unitOnClients'][_0x49d22a(0x21d)](_0x4e6be5)&&this[_0x49d22a(0x203)](_0x4e6be5)[_0x49d22a(0x1af)](u['UnitStatus'][_0x49d22a(0x2d3)]),!this['_unitOnClients'][_0x49d22a(0x21d)](_0x4e6be5)||!this[_0x49d22a(0x2f9)]['get'](_0x4e6be5)[_0x49d22a(0x21d)](_0x45e1c9)){const _0x553cb=this['_unitOnClients'][_0x49d22a(0x2fc)](_0x4e6be5)||new Set();_0x553cb[_0x49d22a(0x274)](_0x45e1c9),this[_0x49d22a(0x2f9)][_0x49d22a(0x1ef)](_0x4e6be5,_0x553cb),this[_0x49d22a(0x221)](_0x45e1c9);}}),_0x4057d6||this[_0x541a10(0x318)]({'type':0x0,'memberID':this[_0x541a10(0x349)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x1ff7a2(0x221)](_0x43ccdb){const _0x1ff09d=_0x1ff7a2;this[_0x1ff09d(0xf4)](_0x43ccdb);const _0x41d786=window[_0x1ff09d(0x173)](()=>{const _0x591c0c=_0x1ff09d;this['_unitOnClients'][_0x591c0c(0x1ea)](_0x296533=>{_0x296533['delete'](_0x43ccdb);});},Pe*0x2);this[_0x1ff09d(0x275)][_0x1ff09d(0x1ef)](_0x43ccdb,_0x41d786);}['_removeClearOtherTimer'](_0x1516a0){const _0x1802b2=_0x1ff7a2;if(this[_0x1802b2(0x275)][_0x1802b2(0x21d)](_0x1516a0)){const _0x25f38a=this[_0x1802b2(0x275)][_0x1802b2(0x2fc)](_0x1516a0);_0x25f38a&&window[_0x1802b2(0x2c9)](_0x25f38a),this[_0x1802b2(0x275)][_0x1802b2(0x1ef)](_0x1516a0,null);}}[_0x1ff7a2(0x216)](_0x4a6512){const _0x235e91=_0x1ff7a2,{memberID:_0x408bd3,unitIDs:_0xf1510a}=_0x4a6512;_0xf1510a[_0x235e91(0x1ea)](_0x579ea3=>{const _0x33105f=_0x235e91;var _0x32171b;const _0x13d3ce=this[_0x33105f(0x2f9)][_0x33105f(0x2fc)](_0x579ea3);_0x13d3ce&&(_0x13d3ce[_0x33105f(0x28e)](_0x408bd3),(_0x32171b=this[_0x33105f(0x203)](_0x579ea3))==null||_0x32171b['next'](_0x13d3ce[_0x33105f(0x312)]===0x0?u['UnitStatus'][_0x33105f(0x321)]:u[_0x33105f(0x182)]['OTHER_CLIENTS_EDITING']));}),this[_0x235e91(0xf4)](_0x408bd3);}[_0x1ff7a2(0x2b7)](_0x3bde08){const _0x1adad0=_0x1ff7a2;this['_scheduleClearOtherTimer'](_0x3bde08[_0x1adad0(0xd3)]);}[_0x1ff7a2(0x318)](_0x344ad0){const _0x258ec2=_0x1ff7a2;localStorage[_0x258ec2(0x227)](we,JSON['stringify'](_0x344ad0));}[_0x1ff7a2(0x155)](){const _0x4cf24a=_0x1ff7a2;this[_0x4cf24a(0xd1)]=window[_0x4cf24a(0x16f)](()=>{const _0x19b9cb=_0x4cf24a;this[_0x19b9cb(0x318)]({'type':0x2,'memberID':this['_id']});},Pe);}[_0x1ff7a2(0x203)](_0x148f97){const _0x4347e8=_0x1ff7a2;return this['_unitStatus'][_0x4347e8(0x21d)](_0x148f97)||this[_0x4347e8(0x12b)][_0x4347e8(0x1ef)](_0x148f97,new d[(_0x4347e8(0x2f0))](u[_0x4347e8(0x182)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x4347e8(0x12b)][_0x4347e8(0x2fc)](_0x148f97);}}var Be=(_0x2d2752=>(_0x2d2752[_0x2d2752[_0x1ff7a2(0x1d2)]=0x0]='UNDEFINED',_0x2d2752[_0x2d2752['OK']=0x1]='OK',_0x2d2752[_0x2d2752[_0x1ff7a2(0x2f8)]=0x2]=_0x1ff7a2(0x2f8),_0x2d2752[_0x2d2752[_0x1ff7a2(0x280)]=0x3]=_0x1ff7a2(0x280),_0x2d2752[_0x2d2752[_0x1ff7a2(0x150)]=0x4]=_0x1ff7a2(0x150),_0x2d2752[_0x2d2752['UNAUTHENTICATED']=0x5]=_0x1ff7a2(0x354),_0x2d2752[_0x2d2752['ALREADY_EXISTS']=0x6]=_0x1ff7a2(0x113),_0x2d2752[_0x2d2752[_0x1ff7a2(0x1c7)]=0x7]=_0x1ff7a2(0x1c7),_0x2d2752[_0x2d2752[_0x1ff7a2(0x21b)]=0x8]=_0x1ff7a2(0x21b),_0x2d2752[_0x2d2752[_0x1ff7a2(0x319)]=0x9]=_0x1ff7a2(0x319),_0x2d2752[_0x2d2752[_0x1ff7a2(0x24d)]=0xa]='LOGIN_FAILED',_0x2d2752[_0x2d2752[_0x1ff7a2(0x18a)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2d2752[_0x2d2752[_0x1ff7a2(0x2ac)]=0x1771]=_0x1ff7a2(0x2ac),_0x2d2752[_0x2d2752[_0x1ff7a2(0x2f2)]=0x1772]=_0x1ff7a2(0x2f2),_0x2d2752[_0x2d2752[_0x1ff7a2(0x235)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x2d2752[_0x2d2752[_0x1ff7a2(0x171)]=0x1b59]=_0x1ff7a2(0x171),_0x2d2752[_0x2d2752['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1ff7a2(0x2d6),_0x2d2752[_0x2d2752[_0x1ff7a2(0x16d)]=0x1b5b]=_0x1ff7a2(0x16d),_0x2d2752[_0x2d2752[_0x1ff7a2(0x177)]=0x1b5c]=_0x1ff7a2(0x177),_0x2d2752[_0x2d2752[_0x1ff7a2(0xd8)]=0x1b5d]=_0x1ff7a2(0xd8),_0x2d2752[_0x2d2752[_0x1ff7a2(0x20d)]=0x1f41]=_0x1ff7a2(0x20d),_0x2d2752[_0x2d2752[_0x1ff7a2(0x1cf)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2d2752[_0x2d2752[_0x1ff7a2(0x1f4)]=0x232a]=_0x1ff7a2(0x1f4),_0x2d2752[_0x2d2752[_0x1ff7a2(0x122)]=0x232b]=_0x1ff7a2(0x122),_0x2d2752[_0x2d2752[_0x1ff7a2(0x157)]=0x232c]=_0x1ff7a2(0x157),_0x2d2752[_0x2d2752[_0x1ff7a2(0x2a0)]=0x232d]=_0x1ff7a2(0x2a0),_0x2d2752[_0x2d2752[_0x1ff7a2(0x320)]=0x2711]=_0x1ff7a2(0x320),_0x2d2752[_0x2d2752[_0x1ff7a2(0x2c7)]=0x2712]=_0x1ff7a2(0x2c7),_0x2d2752[_0x2d2752[_0x1ff7a2(0x225)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2d2752[_0x2d2752[_0x1ff7a2(0x25b)]=0x2714]=_0x1ff7a2(0x25b),_0x2d2752[_0x2d2752[_0x1ff7a2(0x2c2)]=0x2af9]=_0x1ff7a2(0x2c2),_0x2d2752[_0x2d2752['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x1ff7a2(0x33a),_0x2d2752[_0x2d2752['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x2d2752[_0x2d2752[_0x1ff7a2(0xf3)]=0x2ee3]=_0x1ff7a2(0xf3),_0x2d2752[_0x2d2752[_0x1ff7a2(0xda)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x2d2752[_0x2d2752[_0x1ff7a2(0x258)]=0x2ee5]=_0x1ff7a2(0x258),_0x2d2752[_0x2d2752['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x2d2752))(Be||{}),hs=Object[_0x1ff7a2(0x167)],_s=(_0x10c667,_0x1219b9,_0xc21d18,_0x1d113e)=>{for(var _0x1cf741=_0x1d113e>0x1?void 0x0:_0x1d113e?hs(_0x1219b9,_0xc21d18):_0x1219b9,_0x319428=_0x10c667['length']-0x1,_0x231be5;_0x319428>=0x0;_0x319428--)(_0x231be5=_0x10c667[_0x319428])&&(_0x1cf741=_0x231be5(_0x1cf741)||_0x1cf741);return _0x1cf741;},de=(_0x895a63,_0x2a1ab2)=>(_0x1909d4,_0x4e6fcb)=>_0x2a1ab2(_0x1909d4,_0x4e6fcb,_0x895a63);exports[_0x1ff7a2(0xf1)]=class extends a['Disposable']{constructor(_0x2b9b6f,_0x136b8f,_0x33de99){const _0x2ef0c8=_0x1ff7a2;super(),this[_0x2ef0c8(0x15b)]=_0x2b9b6f,this[_0x2ef0c8(0xd7)]=_0x136b8f,this[_0x2ef0c8(0xf9)]=_0x33de99;}async['runOnServer'](_0x1cba70,_0x3a47d6,_0x5c8158,..._0x477ee5){const _0x1f04de=_0x1ff7a2;var _0x537f3b,_0x35ce0d,_0x4ab434,_0x5afb42;const _0x1f9605=this[_0x1f04de(0x15b)][_0x1f04de(0x2bb)]();if(!_0x1f9605)throw new Error(_0x1f04de(0x220));const _0x3bd01f=((_0x537f3b=this[_0x1f04de(0xf9)][_0x1f04de(0x166)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x537f3b:u[_0x1f04de(0x2d5)])+'/'+_0x1cba70+_0x1f04de(0x233)+_0x3a47d6,_0x4d66ee=new URL(window['location'][_0x1f04de(0x21c)]),_0x596f17={'scriptId':_0x1cba70,'runId':(_0x35ce0d=_0x4d66ee[_0x1f04de(0x2e3)][_0x1f04de(0x2fc)](_0x1f04de(0x245)))!=null?_0x35ce0d:'','function':_0x3a47d6,'unitId':_0x1f9605[_0x1f04de(0x121)](),'argsOfFunction':JSON['stringify'](_0x477ee5),'invokeId':(_0x4ab434=_0x5c8158[_0x1f04de(0x194)])!=null?_0x4ab434:'','executionId':(_0x5afb42=_0x5c8158[_0x1f04de(0x1c5)])!=null?_0x5afb42:''};try{const _0x192510=await this[_0x1f04de(0xd7)][_0x1f04de(0x2b1)](_0x3bd01f,{'body':_0x596f17});return _0x192510[_0x1f04de(0x295)]['error']&&_0x192510[_0x1f04de(0x295)]['error'][_0x1f04de(0x1be)]!==Be['OK']?_0x1f04de(0x144):_0x192510[_0x1f04de(0x295)]['result'];}catch{return _0x1f04de(0x144);}}},exports['RemoteUniscriptService']=_s([de(0x0,a[_0x1ff7a2(0x21f)]),de(0x1,a[_0x1ff7a2(0x1fa)](q['HTTPService'])),de(0x2,a[_0x1ff7a2(0x190)])],exports[_0x1ff7a2(0xf1)]),exports[_0x1ff7a2(0x133)]=je,exports['IURLService']=Ee,exports[_0x1ff7a2(0x1ed)]=Ae,exports[_0x1ff7a2(0x19c)]=ls,exports['WebURLService']=ke;
1
+ 'use strict';const _0x3d714e=_0x2f33;(function(_0xd01fd1,_0x52d1fd){const _0x364562=_0x2f33,_0x470e7b=_0xd01fd1();while(!![]){try{const _0x4a8769=parseInt(_0x364562(0x34c))/0x1+parseInt(_0x364562(0xcf))/0x2+-parseInt(_0x364562(0x13a))/0x3+-parseInt(_0x364562(0x13f))/0x4*(parseInt(_0x364562(0x16b))/0x5)+-parseInt(_0x364562(0x20d))/0x6+parseInt(_0x364562(0x187))/0x7+-parseInt(_0x364562(0x2cd))/0x8*(-parseInt(_0x364562(0x320))/0x9);if(_0x4a8769===_0x52d1fd)break;else _0x470e7b['push'](_0x470e7b['shift']());}catch(_0x572812){_0x470e7b['push'](_0x470e7b['shift']());}}}(_0x4e6b,0x2f73c));var Xe=Object['defineProperty'],Ge=(_0x114f70,_0x471423,_0x4f462b)=>_0x471423 in _0x114f70?Xe(_0x114f70,_0x471423,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f462b}):_0x114f70[_0x471423]=_0x4f462b,h=(_0x1eef65,_0x512b14,_0x18b76c)=>Ge(_0x1eef65,typeof _0x512b14!=_0x3d714e(0x348)?_0x512b14+'':_0x512b14,_0x18b76c);Object[_0x3d714e(0xe0)](exports,Symbol[_0x3d714e(0x1a5)],{'value':'Module'});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x3d714e(0x10f)),p=require('@univerjs/engine-render'),q=require(_0x3d714e(0x24d)),b=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),d=require(_0x3d714e(0x1e6)),Y=require(_0x3d714e(0x10b)),m=require(_0x3d714e(0x2ed)),Te=require(_0x3d714e(0x2b3)),g=require(_0x3d714e(0x2e2)),$=require(_0x3d714e(0x21d)),G=require(_0x3d714e(0x2bc)),w=require('react/jsx-runtime'),R=require(_0x3d714e(0x341)),T=require(_0x3d714e(0x1a0)),M=require(_0x3d714e(0x13e)),Ke=require(_0x3d714e(0x204));var ze=Object['getOwnPropertyDescriptor'],Je=(_0x22fa5c,_0x19a46d,_0x1b8b63,_0x1fd8b4)=>{for(var _0x1ea76d=_0x1fd8b4>0x1?void 0x0:_0x1fd8b4?ze(_0x19a46d,_0x1b8b63):_0x19a46d,_0xf25c84=_0x22fa5c['length']-0x1,_0x36999b;_0xf25c84>=0x0;_0xf25c84--)(_0x36999b=_0x22fa5c[_0xf25c84])&&(_0x1ea76d=_0x36999b(_0x1ea76d)||_0x1ea76d);return _0x1ea76d;},Re=(_0x27a6c5,_0x46b1be)=>(_0x59542f,_0x23f8b9)=>_0x46b1be(_0x59542f,_0x23f8b9,_0x27a6c5);let fe=class extends a[_0x3d714e(0x1f7)]{constructor(_0x32a4be,_0x1c75e8){const _0x58dc3c=_0x3d714e;super(),this[_0x58dc3c(0x2dd)]=_0x32a4be,this[_0x58dc3c(0x1d8)]=_0x1c75e8,this[_0x58dc3c(0x149)]();}[_0x3d714e(0x149)](){const _0x1b9f95=this;this['disposeWithMe'](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x235915=>{const _0x569c2d=_0x2f33,_0x53ad75=await _0x1b9f95[_0x569c2d(0x1d8)][_0x569c2d(0x273)](_0x235915);return _0x53ad75?{'source':_0x53ad75[_0x569c2d(0x2ad)],'imageSourceType':_0x53ad75[_0x569c2d(0x212)]}:null;}}));}};fe=Je([Re(0x0,b[_0x3d714e(0x28f)]),Re(0x1,qe['IImageIoService'])],fe);const Oe=[_0x3d714e(0x19e),_0x3d714e(0x30f),_0x3d714e(0x159),'red300',_0x3d714e(0x13d),_0x3d714e(0x19d)];class Ce extends a[_0x3d714e(0x321)]{constructor(){const _0x39e91f=_0x3d714e;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x39e91f(0x33e),0x0);}['assignAColorForMemberID'](_0x4e30ca){const _0x1060b9=_0x3d714e;if(this[_0x1060b9(0x33f)][_0x1060b9(0x310)](_0x4e30ca))return this[_0x1060b9(0x33f)][_0x1060b9(0xfe)](_0x4e30ca);const _0x582031=Oe[this[_0x1060b9(0x33e)]];return this[_0x1060b9(0x33e)]=(this['_colorIndex']+0x1)%Oe[_0x1060b9(0x2f1)],this[_0x1060b9(0x33f)]['set'](_0x4e30ca,_0x582031),_0x582031;}}function Le(_0x43a881){const _0x30f5d0=_0x3d714e;let _0x8556d1='';for(const _0x4c2b94 of _0x43a881){const {startOffset:_0x210b57,endOffset:_0x4ca829,isActive:_0x45ab84,rangeType:_0x5c1a90,segmentId:_0x387cb4,segmentPage:_0xe4b96f}=_0x4c2b94;_0x8556d1[_0x30f5d0(0x2f1)]&&(_0x8556d1+=','),_0x8556d1+=_0x210b57+':'+_0x4ca829+':'+(_0x45ab84?'1':'0')+':'+_0x5c1a90+':'+_0x387cb4+':'+_0xe4b96f;}return _0x8556d1;}function Ze(_0x9788bc){const _0xadaa6c=_0x3d714e,_0x12dea6=_0x9788bc['split'](','),_0x5397fd=[];for(const _0x18ad4b of _0x12dea6){const [_0xd36bed,_0x222fa9,_0x5ad6fb,_0x2d912f,_0x5a6518,_0x3a5932]=_0x18ad4b[_0xadaa6c(0x23b)](':');_0x5397fd[_0xadaa6c(0xe8)]({'startOffset':Number(_0xd36bed),'endOffset':Number(_0x222fa9),'collapsed':_0xd36bed===_0x222fa9,'isActive':_0x5ad6fb==='1','rangeType':_0x2d912f===a[_0xadaa6c(0x211)][_0xadaa6c(0x2df)]?a[_0xadaa6c(0x211)]['TEXT']:a[_0xadaa6c(0x211)][_0xadaa6c(0x25a)],'segmentId':typeof _0x5a6518=='string'?String(_0x5a6518):'','segmentPage':Number(_0x3a5932!=null?_0x3a5932:-0x1)});}return _0x5397fd[_0xadaa6c(0x2a6)](_0x52275f=>_0x52275f['isActive'])||(_0x5397fd[0x0]['isActive']=!0x0),_0x5397fd;}class pe extends a['RxDisposable']{constructor(){const _0x34a8dd=_0x3d714e;super(...arguments),h(this,_0x34a8dd(0x2f9),new d[(_0x34a8dd(0x153))](null)),h(this,_0x34a8dd(0x132),this[_0x34a8dd(0x2f9)][_0x34a8dd(0x15e)]());}['syncEditingCollabCursor'](_0x221a18){const _0x3614a9=_0x3d714e,{unitID:_0x2381ef,memberID:_0x374d61,textRanges:_0x33511d}=_0x221a18,_0x4e9b07=Le(_0x33511d);if(_0x4e9b07==='')return;const _0x1d02fe={'unitID':_0x2381ef,'memberID':_0x374d61,'selection':_0x4e9b07};this['_collabCursorState$'][_0x3614a9(0x2f0)](_0x1d02fe);}}var Qe=Object[_0x3d714e(0x294)],et=(_0x5c4db4,_0x51516c,_0x279d08,_0x5d98e4)=>{const _0x5bec18=_0x3d714e;for(var _0x3e4ea5=_0x5d98e4>0x1?void 0x0:_0x5d98e4?Qe(_0x51516c,_0x279d08):_0x51516c,_0x3fdc3c=_0x5c4db4[_0x5bec18(0x2f1)]-0x1,_0x507316;_0x3fdc3c>=0x0;_0x3fdc3c--)(_0x507316=_0x5c4db4[_0x3fdc3c])&&(_0x3e4ea5=_0x507316(_0x3e4ea5)||_0x3e4ea5);return _0x3e4ea5;},P=(_0xe7c53,_0x559dd2)=>(_0x536d0f,_0x18b47e)=>_0x559dd2(_0x536d0f,_0x18b47e,_0xe7c53);const tt=0x12c,st=0x64;let Se=class extends a['RxDisposable']{constructor(_0x576117,_0x5917c5,_0x2b4744,_0x32e631,_0x32c744,_0x181bd5,_0x213438,_0x20f502,_0x56c4c4){const _0x4c5138=_0x3d714e;super(),h(this,'_online',!0x1),h(this,_0x4c5138(0x149),!0x1),h(this,_0x4c5138(0x2d6),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x4c5138(0x2d6)]['asObservable']()),h(this,_0x4c5138(0x19f),new d[(_0x4c5138(0x153))]([])),h(this,_0x4c5138(0x171),this[_0x4c5138(0x19f)]['pipe'](d[_0x4c5138(0x1f1)](tt))),h(this,_0x4c5138(0x21f),a['debounce'](_0x16c393=>{const _0x431a18=_0x4c5138,_0xca3fbb={'eventID':m[_0x431a18(0x335)][_0x431a18(0x238)],'data':{'unitID':this[_0x431a18(0x19c)],'memberID':this[_0x431a18(0x1c0)][_0x431a18(0x1d5)](),'selection':Le(_0x16c393)}};this['_session'][_0x431a18(0x1e2)](_0xca3fbb,this['unitID']);},st)),(this[_0x4c5138(0x19c)]=_0x576117,this[_0x4c5138(0x1c0)]=_0x5917c5,this[_0x4c5138(0x279)]=_0x2b4744,this[_0x4c5138(0x13b)]=_0x32e631,this[_0x4c5138(0x122)]=_0x32c744,this[_0x4c5138(0x198)]=_0x181bd5,this[_0x4c5138(0x2fa)]=_0x213438,this['_univerInstanceService']=_0x20f502,this[_0x4c5138(0x1ee)]=_0x56c4c4);}get['cursorInfo'](){const _0x3b1f6c=_0x3d714e;return this[_0x3b1f6c(0x2d6)][_0x3b1f6c(0x32e)]();}get[_0x3d714e(0x264)](){const _0xcecba5=_0x3d714e;return this['_roomMembers$'][_0xcecba5(0x32e)]();}[_0x3d714e(0x237)](){const _0x1c2a94=_0x3d714e;super[_0x1c2a94(0x237)](),this[_0x1c2a94(0x2d6)][_0x1c2a94(0x2f0)](new Map()),this[_0x1c2a94(0x2d6)]['complete'](),this[_0x1c2a94(0x19f)][_0x1c2a94(0x2f0)]([]),this[_0x1c2a94(0x19f)][_0x1c2a94(0x270)]();}[_0x3d714e(0x1b2)](){const _0x1ce23c=_0x3d714e;this[_0x1ce23c(0x149)]||(this['_init']=!0x0,this[_0x1ce23c(0x1c0)][_0x1ce23c(0x16d)][_0x1ce23c(0x30a)](d[_0x1ce23c(0x143)](this[_0x1ce23c(0xeb)]))[_0x1ce23c(0x1ad)](_0x36f7cd=>{const _0x1fd21b=_0x1ce23c;_0x36f7cd===u[_0x1fd21b(0x15f)][_0x1fd21b(0xdd)]?this['_toggleOnline']():this[_0x1fd21b(0x102)]();}),this[_0x1ce23c(0x1c0)][_0x1ce23c(0x324)]['pipe'](d[_0x1ce23c(0x143)](this['dispose$']))[_0x1ce23c(0x1ad)](_0x5bb37b=>{const _0x42ffb5=_0x1ce23c,_0x22e3ac=_0x5bb37b[_0x42ffb5(0xc7)];_0x22e3ac===m[_0x42ffb5(0x335)]['UPDATE_CURSOR']&&this[_0x42ffb5(0x26b)](_0x5bb37b),_0x22e3ac===m[_0x42ffb5(0x335)]['USERS_LEAVE']&&this[_0x42ffb5(0x10a)](_0x5bb37b);}),this[_0x1ce23c(0x1de)](this[_0x1ce23c(0x1ee)][_0x1ce23c(0x300)](_0x5f30c1=>{const _0x1808e1=_0x1ce23c,_0x27ca7a=_0x5f30c1[_0x1808e1(0x2bf)];_0x27ca7a!=null&&this[_0x1808e1(0x1bd)]&&_0x5f30c1['id']===Y[_0x1808e1(0x260)]['id']&&_0x27ca7a[_0x1808e1(0x28c)]===this[_0x1808e1(0x19c)]&&_0x27ca7a[_0x1808e1(0x1b7)]===!0x1&&_0x27ca7a[_0x1808e1(0x2ce)][_0x1808e1(0x2f1)]>0x0&&this[_0x1808e1(0x21f)](_0x27ca7a['ranges']);})),this[_0x1ce23c(0x198)][_0x1ce23c(0x132)][_0x1ce23c(0x30a)](d[_0x1ce23c(0x143)](this[_0x1ce23c(0xeb)]))[_0x1ce23c(0x1ad)](_0x59fed8=>{const _0x23d7f4=_0x1ce23c;if((_0x59fed8==null?void 0x0:_0x59fed8['unitID'])!==this['unitID'])return;const _0x18061a={'eventID':m['CollaborationEvent'][_0x23d7f4(0x238)],'data':_0x59fed8};this[_0x23d7f4(0x26b)](_0x18061a);}),this[_0x1ce23c(0x1de)](this[_0x1ce23c(0x1ee)][_0x1ce23c(0x300)](_0xf32221=>{const _0xd3b6be=_0x1ce23c;if(_0xf32221[_0xd3b6be(0x2bf)]==null)return;const _0x163141=_0xf32221[_0xd3b6be(0x2bf)];if(_0xf32221['id']!==Y[_0xd3b6be(0x25c)]['id']||_0x163141[_0xd3b6be(0x28c)]!==this[_0xd3b6be(0x19c)])return;const _0x54c597={'id':_0xd3b6be(0x1c8),'params':_0x163141},_0x45eab5=this[_0xd3b6be(0x266)];for(const [_0x488838,_0x1482e8]of _0x45eab5){const _0x43fe3b={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0xd3b6be(0x19c)],'actions':null,'textRanges':_0x1482e8[_0xd3b6be(0x2ce)]}},_0x57100e=this[_0xd3b6be(0x2fa)][_0xd3b6be(0x1d6)](_0x54c597,_0x43fe3b,!0x1);if(m[_0xd3b6be(0x183)](_0x57100e))throw _0x57100e[_0xd3b6be(0x21e)];_0x45eab5[_0xd3b6be(0x203)](_0x488838,{..._0x1482e8,'ranges':_0x57100e['m2Prime']['params'][_0xd3b6be(0x209)]});}queueMicrotask(()=>{const _0x295d57=_0xd3b6be;this[_0x295d57(0x2d6)][_0x295d57(0x2f0)](_0x45eab5);});})));}[_0x3d714e(0x26b)](_0x10f8e8){const _0x15f5e0=_0x3d714e;var _0x1c5cfd,_0x7ed4c5;const {memberID:_0x508837,selection:_0x58092d}=_0x10f8e8[_0x15f5e0(0x28b)],_0x49571d=Ze(_0x58092d),_0x1ab5fc=(_0x7ed4c5=(_0x1c5cfd=this[_0x15f5e0(0x122)][_0x15f5e0(0x129)](this[_0x15f5e0(0x19c)],_0x508837))==null?void 0x0:_0x1c5cfd[_0x15f5e0(0x113)])!=null?_0x7ed4c5:_0x15f5e0(0x1bc),_0x406f65={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x508837),'name':_0x1ab5fc,'ranges':_0x49571d},_0x14bdb6=this[_0x15f5e0(0x266)];_0x14bdb6['set'](_0x508837,_0x406f65),this['_cursorInfo$']['next'](_0x14bdb6);}[_0x3d714e(0x10a)](_0x378af7){const _0x36fa1f=_0x3d714e,{memberID:_0x2f705d}=_0x378af7['data'],_0x1cb420=this[_0x36fa1f(0x266)];_0x1cb420[_0x36fa1f(0x147)](_0x2f705d),this[_0x36fa1f(0x2d6)][_0x36fa1f(0x2f0)](_0x1cb420);}[_0x3d714e(0x2d1)](){const _0x56aba6=_0x3d714e;var _0x396c02;if(this['_online']=!0x0,((_0x396c02=this['_univerInstanceService'][_0x56aba6(0x2d2)]())==null?void 0x0:_0x396c02[_0x56aba6(0x180)]())!==this[_0x56aba6(0x19c)])return;const _0x5d5c0b=this['_injector'][_0x56aba6(0xfe)](Y[_0x56aba6(0x231)])['getDocRanges']();Array[_0x56aba6(0x314)](_0x5d5c0b)&&_0x5d5c0b['length']>0x0&&this[_0x56aba6(0x21f)](_0x5d5c0b);}[_0x3d714e(0x102)](){const _0xd3ef50=_0x3d714e;this[_0xd3ef50(0x1bd)]=!0x1;}};Se=et([P(0x2,a[_0x3d714e(0x1eb)](a['Injector'])),P(0x3,a['Inject'](Ce)),P(0x4,a[_0x3d714e(0x1eb)](u['MemberService'])),P(0x5,a[_0x3d714e(0x1eb)](pe)),P(0x6,m[_0x3d714e(0x103)]),P(0x7,a[_0x3d714e(0x27e)]),P(0x8,a['ICommandService'])],Se);var nt=Object['getOwnPropertyDescriptor'],it=(_0x508470,_0x2172a8,_0x390c68,_0x3a5652)=>{const _0x3ddc57=_0x3d714e;for(var _0x563342=_0x3a5652>0x1?void 0x0:_0x3a5652?nt(_0x2172a8,_0x390c68):_0x2172a8,_0x502567=_0x508470[_0x3ddc57(0x2f1)]-0x1,_0x190c60;_0x502567>=0x0;_0x502567--)(_0x190c60=_0x508470[_0x502567])&&(_0x563342=_0x190c60(_0x563342)||_0x563342);return _0x563342;},A=(_0x2c1456,_0x21b63a)=>(_0x5818a0,_0xe9ea8c)=>_0x21b63a(_0x5818a0,_0xe9ea8c,_0x2c1456);const rt=0x12c,ot=0x64,at=()=>{let _0x525178=[],_0x577882=!0x1;return _0x2f20d7=>{const _0x1a7c0a=_0x2f33;_0x525178[_0x1a7c0a(0xe8)](_0x2f20d7),_0x577882||(_0x577882=!0x0,setTimeout(()=>{const _0x5ee463=_0x1a7c0a;_0x525178[_0x5ee463(0x202)](_0x30a461=>_0x30a461()),_0x525178=[],_0x577882=!0x1;}));};};let Ie=class extends a[_0x3d714e(0x1f7)]{constructor(_0x2d12d7,_0x55f07c,_0x5ec2ab,_0x1355ec,_0x7d6e4d,_0x6c9de8,_0x5d1c03,_0x26babe){const _0x5af0c2=_0x3d714e;super(),h(this,_0x5af0c2(0x1bd),!0x1),h(this,'_init',!0x1),h(this,_0x5af0c2(0x2d6),new d[(_0x5af0c2(0x153))](new Map())),h(this,_0x5af0c2(0x230),this[_0x5af0c2(0x2d6)][_0x5af0c2(0x15e)]()),h(this,'_roomMembers$',new d[(_0x5af0c2(0x153))]([])),h(this,_0x5af0c2(0x171),this[_0x5af0c2(0x19f)][_0x5af0c2(0x30a)](d[_0x5af0c2(0x1f1)](rt))),h(this,'_updateLocalCursor',a[_0x5af0c2(0x138)]((_0x16f36e,_0x757e50)=>{const _0xb3c484=_0x5af0c2,_0x356633={'eventID':m[_0xb3c484(0x335)][_0xb3c484(0x238)],'data':{'unitID':this[_0xb3c484(0x19c)],'memberID':this[_0xb3c484(0x1c0)][_0xb3c484(0x1d5)](),'selection':Te[_0xb3c484(0x327)](_0x16f36e,_0x757e50['range'])}};this['_session'][_0xb3c484(0x1e2)](_0x356633,this['unitID']);},ot)),(this[_0x5af0c2(0x19c)]=_0x2d12d7,this[_0x5af0c2(0x1c0)]=_0x55f07c,this['_injector']=_0x5ec2ab,this[_0x5af0c2(0x13b)]=_0x1355ec,this['_memberService']=_0x7d6e4d,this[_0x5af0c2(0x23c)]=_0x6c9de8,this[_0x5af0c2(0x1ee)]=_0x5d1c03,this['_refRangeService']=_0x26babe);}get[_0x3d714e(0x266)](){const _0x3f4634=_0x3d714e;return this[_0x3f4634(0x2d6)]['getValue']();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x23b803=_0x3d714e;super['dispose'](),this[_0x23b803(0x2d6)][_0x23b803(0x2f0)](new Map()),this[_0x23b803(0x2d6)]['complete'](),this[_0x23b803(0x19f)][_0x23b803(0x2f0)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x1ea695=_0x3d714e;this[_0x1ea695(0x149)]||(this['_init']=!0x0,this[_0x1ea695(0x1c0)][_0x1ea695(0x16d)][_0x1ea695(0x30a)](d[_0x1ea695(0x143)](this[_0x1ea695(0xeb)]))['subscribe'](_0x2c6539=>{const _0x575cf6=_0x1ea695;_0x2c6539===u['SessionStatus'][_0x575cf6(0xdd)]?this['_toggleOnline']():this[_0x575cf6(0x102)]();}),this[_0x1ea695(0x1c0)]['event$'][_0x1ea695(0x30a)](d[_0x1ea695(0x143)](this[_0x1ea695(0xeb)]))[_0x1ea695(0x1ad)](_0x508aa6=>{const _0x1e4a7e=_0x1ea695,_0x2d9dc7=_0x508aa6[_0x1e4a7e(0xc7)];_0x2d9dc7===m[_0x1e4a7e(0x335)][_0x1e4a7e(0x238)]&&this[_0x1e4a7e(0x26b)](_0x508aa6),_0x2d9dc7===m['CollaborationEvent'][_0x1e4a7e(0x223)]&&this[_0x1e4a7e(0x10a)](_0x508aa6);}),this[_0x1ea695(0x142)](),this[_0x1ea695(0x1de)](this[_0x1ea695(0x1ee)]['onCommandExecuted'](_0x444414=>{const _0x14bade=_0x1ea695;if(this[_0x14bade(0x1bd)]&&_0x444414['id']===g[_0x14bade(0x19a)]['id']&&_0x444414[_0x14bade(0x2bf)][_0x14bade(0x28c)]===this['unitID']){const _0x3e5ed6=_0x444414[_0x14bade(0x2bf)];this[_0x14bade(0x21f)](_0x3e5ed6[_0x14bade(0x170)],_0x3e5ed6[_0x14bade(0x1ff)][0x0]);}})));}[_0x3d714e(0x26b)](_0x38ed43){const _0x2de9a3=_0x3d714e;var _0x4ab25c,_0x8ef01c;const {memberID:_0x4a5a83,selection:_0x8aadd1}=_0x38ed43[_0x2de9a3(0x28b)],{sheetName:_0x156999,range:_0x2922ec}=Te['deserializeRangeWithSheet'](_0x8aadd1),_0x2de6dc={'name':(_0x8ef01c=(_0x4ab25c=this[_0x2de9a3(0x122)]['getMember'](this[_0x2de9a3(0x19c)],_0x4a5a83))==null?void 0x0:_0x4ab25c[_0x2de9a3(0x113)])!=null?_0x8ef01c:_0x2de9a3(0x1bc),'range':this[_0x2de9a3(0xe1)](_0x156999,_0x2922ec),'sheetID':_0x156999,'color':this['_colorAssignService'][_0x2de9a3(0x31c)](_0x4a5a83),'selection':_0x8aadd1},_0x5b0dd8=this[_0x2de9a3(0x266)];_0x5b0dd8[_0x2de9a3(0x203)](_0x4a5a83,_0x2de6dc),this[_0x2de9a3(0x2d6)][_0x2de9a3(0x2f0)](_0x5b0dd8);}[_0x3d714e(0x10a)](_0x1a6c82){const _0x42bd4f=_0x3d714e,{memberID:_0x435196}=_0x1a6c82[_0x42bd4f(0x28b)],_0x30dc53=this[_0x42bd4f(0x266)];_0x30dc53[_0x42bd4f(0x147)](_0x435196),this['_cursorInfo$'][_0x42bd4f(0x2f0)](_0x30dc53);}[_0x3d714e(0xe1)](_0x53791a,_0x72abc1){const _0x2f15cc=_0x3d714e;var _0x213e83,_0x2d523f;const _0x4e7e05=(_0x2d523f=(_0x213e83=this[_0x2f15cc(0x23c)][_0x2f15cc(0xf3)](this[_0x2f15cc(0x19c)]))==null?void 0x0:_0x213e83[_0x2f15cc(0x2a5)](_0x53791a))==null?void 0x0:_0x2d523f[_0x2f15cc(0x220)]();return(_0x4e7e05==null?void 0x0:_0x4e7e05[_0x2f15cc(0x322)](_0x9c6042=>a[_0x2f15cc(0x1fa)][_0x2f15cc(0x14b)](_0x9c6042,_0x72abc1)))||_0x72abc1;}[_0x3d714e(0x142)](){const _0x1270e5=_0x3d714e,_0x2f926c=new a[(_0x1270e5(0x2c9))](),_0x17d546=at(),_0xeb570e=()=>{const _0x5f4de2=_0x1270e5;_0x2f926c[_0x5f4de2(0x237)]();const _0x6e4a86=(_0x374d78,_0x44b747,_0x3afcca,_0x2177d1)=>{const _0x58b6df=_0x5f4de2;let _0x2b72fb=[];switch(_0x374d78['id']){case g[_0x58b6df(0x253)][_0x58b6df(0x2da)]:{_0x2b72fb=g[_0x58b6df(0x2cb)](_0x374d78,_0x2177d1);break;}case g['EffectRefRangId'][_0x58b6df(0x1e7)]:{_0x2b72fb=g[_0x58b6df(0x17d)](_0x374d78,_0x2177d1);break;}case g[_0x58b6df(0x253)][_0x58b6df(0x23f)]:{_0x2b72fb=g[_0x58b6df(0xfb)](_0x374d78,_0x2177d1);break;}case g['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x2b72fb=g[_0x58b6df(0x2fc)](_0x374d78,_0x2177d1);break;}case g[_0x58b6df(0x253)][_0x58b6df(0x29e)]:{_0x2b72fb=g[_0x58b6df(0x329)](_0x374d78,_0x2177d1);break;}case g[_0x58b6df(0x253)][_0x58b6df(0x1cf)]:{_0x2b72fb=g[_0x58b6df(0x18e)](_0x374d78,_0x2177d1);break;}case g[_0x58b6df(0x253)]['MoveRangeCommandId']:{_0x2b72fb=g[_0x58b6df(0x2aa)](_0x374d78,_0x2177d1);break;}case g[_0x58b6df(0x253)][_0x58b6df(0x134)]:{_0x2b72fb=g['handleIRemoveCol'](_0x374d78,_0x2177d1);break;}case g[_0x58b6df(0x253)]['RemoveRowCommandId']:{_0x2b72fb=g[_0x58b6df(0x205)](_0x374d78,_0x2177d1);break;}}const _0x5c6aba=g[_0x58b6df(0x2a7)](_0x2b72fb,_0x2177d1),_0x51e41e=this[_0x58b6df(0x266)][_0x58b6df(0xfe)](_0x44b747);if(_0x51e41e&&_0x5c6aba){const _0x2c7f16={..._0x51e41e,'range':_0x5c6aba};this['cursorInfo'][_0x58b6df(0x203)](_0x44b747,_0x2c7f16),_0x17d546(()=>{const _0x3b8b0d=_0x58b6df,_0x4296d2=this['_refRangeService'][_0x3b8b0d(0x1e1)](_0x5c6aba,_0xc71c24=>(_0x4296d2[_0x3b8b0d(0x237)](),_0x6e4a86(_0xc71c24,_0x44b747,_0x3afcca,_0x5c6aba)));_0x2f926c[_0x3b8b0d(0x196)](_0x4296d2);});}return{'redos':[],'undos':[]};};this[_0x5f4de2(0x266)][_0x5f4de2(0x202)]((_0x3b7f49,_0x4933e3)=>{const _0x20072d=_0x5f4de2,{range:_0xb4f1c7,sheetID:_0xac73b0}=_0x3b7f49,_0x4fb7cc=this[_0x20072d(0xc5)]['registerRefRange'](_0xb4f1c7,_0x5dc738=>(_0x4fb7cc[_0x20072d(0x237)](),_0x6e4a86(_0x5dc738,_0x4933e3,_0xac73b0,_0xb4f1c7)));_0x2f926c[_0x20072d(0x196)](_0x4fb7cc);});};this[_0x1270e5(0x1de)](a[_0x1270e5(0x239)](this[_0x1270e5(0x2d6)][_0x1270e5(0x1ad)](()=>{_0xeb570e();})));}[_0x3d714e(0x2d1)](){const _0x2198f4=_0x3d714e;var _0x1c45c4,_0x4793d7;if(this[_0x2198f4(0x1bd)]=!0x0,((_0x1c45c4=this['_univerInstanceService'][_0x2198f4(0x2d2)]())==null?void 0x0:_0x1c45c4['getUnitId']())!==this[_0x2198f4(0x19c)])return;const _0xc69165=(_0x4793d7=this[_0x2198f4(0x279)][_0x2198f4(0xfe)](g[_0x2198f4(0x2f3)])['getCurrentSelections']())==null?void 0x0:_0x4793d7[0x0],_0x2c5e4a=this[_0x2198f4(0x23c)][_0x2198f4(0x135)](a[_0x2198f4(0x112)][_0x2198f4(0xd7)])[_0x2198f4(0x330)]();_0xc69165&&_0x2c5e4a&&this[_0x2198f4(0x21f)](_0x2c5e4a[_0x2198f4(0x301)](),_0xc69165);}[_0x3d714e(0x102)](){this['_online']=!0x1;}};Ie=it([A(0x2,a[_0x3d714e(0x1eb)](a['Injector'])),A(0x3,a[_0x3d714e(0x1eb)](Ce)),A(0x4,a[_0x3d714e(0x1eb)](u[_0x3d714e(0x2a3)])),A(0x5,a[_0x3d714e(0x27e)]),A(0x6,a[_0x3d714e(0x1cc)]),A(0x7,a[_0x3d714e(0x1eb)](g[_0x3d714e(0x11a)]))],Ie);var ct=Object[_0x3d714e(0x294)],lt=(_0x47c8d3,_0x284519,_0x2b5d6b,_0x43b6c0)=>{const _0x3a022d=_0x3d714e;for(var _0x2742e4=_0x43b6c0>0x1?void 0x0:_0x43b6c0?ct(_0x284519,_0x2b5d6b):_0x284519,_0x3c9f9a=_0x47c8d3[_0x3a022d(0x2f1)]-0x1,_0x1dfcb4;_0x3c9f9a>=0x0;_0x3c9f9a--)(_0x1dfcb4=_0x47c8d3[_0x3c9f9a])&&(_0x2742e4=_0x1dfcb4(_0x2742e4)||_0x2742e4);return _0x2742e4;},ie=(_0x1f25e6,_0x2c2c78)=>(_0x1a1bc7,_0x189577)=>_0x2c2c78(_0x1a1bc7,_0x189577,_0x1f25e6);let x=class extends a[_0x3d714e(0x1f7)]{constructor(_0x2f2bfd,_0x2ef5e7,_0x2178a8){const _0x7d9b5d=_0x3d714e;super(),h(this,_0x7d9b5d(0x154),new Map()),h(this,_0x7d9b5d(0x177),new d['Subject']()),(this[_0x7d9b5d(0x23c)]=_0x2f2bfd,this[_0x7d9b5d(0x279)]=_0x2ef5e7,this[_0x7d9b5d(0x2ca)]=_0x2178a8,this[_0x7d9b5d(0x149)]());}['dispose'](){const _0x15b1fc=_0x3d714e;super[_0x15b1fc(0x237)](),this[_0x15b1fc(0x177)][_0x15b1fc(0x270)](),this[_0x15b1fc(0x154)][_0x15b1fc(0x202)](_0x18fc43=>_0x18fc43[_0x15b1fc(0x237)]());}[_0x3d714e(0x1f5)](_0x408497){const _0xbff0f2=_0x3d714e;return this['_entities'][_0xbff0f2(0x310)](_0x408497)?this[_0xbff0f2(0x154)][_0xbff0f2(0xfe)](_0x408497)[_0xbff0f2(0x230)]:this[_0xbff0f2(0x177)]['pipe'](d['filter'](_0x927842=>_0x927842[_0xbff0f2(0x19c)]===_0x408497),d[_0xbff0f2(0x298)](_0x5e739a=>_0x5e739a[_0xbff0f2(0x230)]));}[_0x3d714e(0x149)](){const _0x35db02=_0x3d714e;this[_0x35db02(0x23c)][_0x35db02(0x115)](a[_0x35db02(0x112)][_0x35db02(0xd7)])[_0x35db02(0x30a)](d[_0x35db02(0x143)](this[_0x35db02(0xeb)]))[_0x35db02(0x1ad)](async _0x56a81b=>{const _0x1a62c1=_0x35db02,_0x22c2d9=_0x56a81b['getUnitId'](),_0x1329be=await this[_0x1a62c1(0x2d0)](_0x22c2d9);this['_entityInit$'][_0x1a62c1(0x2f0)](_0x1329be),this['_entities']['set'](_0x22c2d9,_0x1329be);}),this[_0x35db02(0x23c)][_0x35db02(0x115)](a[_0x35db02(0x112)]['UNIVER_DOC'])[_0x35db02(0x30a)](d[_0x35db02(0x143)](this[_0x35db02(0xeb)]))['pipe'](d[_0x35db02(0x284)](_0x3e54d1=>!_0x3e54d1['getUnitId']()['startsWith']('__')))[_0x35db02(0x1ad)](async _0xc0724b=>{const _0x4768c5=_0x35db02,_0x58be2d=_0xc0724b[_0x4768c5(0x180)](),_0x54d4ac=await this[_0x4768c5(0x1b3)](_0x58be2d);this['_entityInit$'][_0x4768c5(0x2f0)](_0x54d4ac),this[_0x4768c5(0x154)][_0x4768c5(0x203)](_0x58be2d,_0x54d4ac);}),d[_0x35db02(0x228)](this[_0x35db02(0x23c)][_0x35db02(0x28a)](a['UniverInstanceType'][_0x35db02(0x17b)]),this[_0x35db02(0x23c)][_0x35db02(0x28a)](a[_0x35db02(0x112)][_0x35db02(0xd7)]))[_0x35db02(0x30a)](d[_0x35db02(0x143)](this['dispose$']))[_0x35db02(0x1ad)](_0x108dfd=>{const _0x33b513=_0x35db02,_0x5202f4=_0x108dfd[_0x33b513(0x180)](),_0x1e826a=this[_0x33b513(0x154)][_0x33b513(0xfe)](_0x5202f4);_0x1e826a&&(_0x1e826a[_0x33b513(0x237)](),this[_0x33b513(0x154)]['delete'](_0x5202f4));});}async['_startSheetCollabCursor'](_0x7945d6){const _0x3c5628=_0x3d714e,_0x58c96f=await this[_0x3c5628(0x2ca)][_0x3c5628(0x1d1)](_0x7945d6),_0x37b1e8=this['_injector']['createInstance'](Ie,_0x7945d6,_0x58c96f);return _0x37b1e8[_0x3c5628(0x1b2)](),_0x37b1e8;}async[_0x3d714e(0x1b3)](_0x3bce9f){const _0x1853ab=_0x3d714e,_0x315c8b=await this['_collabSessionService'][_0x1853ab(0x1d1)](_0x3bce9f),_0x8f9e54=this[_0x1853ab(0x279)][_0x1853ab(0xf1)](Se,_0x3bce9f,_0x315c8b);return _0x8f9e54['init'](),_0x8f9e54;}};x=lt([ie(0x0,a[_0x3d714e(0x27e)]),ie(0x1,a[_0x3d714e(0x1eb)](a[_0x3d714e(0x2d7)])),ie(0x2,a[_0x3d714e(0x1eb)](u[_0x3d714e(0x179)]))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x25414a,_0x9f73b7){const _0x29e78f=_0x3d714e;let {radius:_0x4fddc6,width:_0x29541c,height:_0x1ea845}=_0x9f73b7;_0x4fddc6=_0x4fddc6!=null?_0x4fddc6:0x0,_0x29541c=_0x29541c!=null?_0x29541c:0x1e,_0x1ea845=_0x1ea845!=null?_0x1ea845:0x1e;let _0x40138a=0x0,_0x1cd4bc=0x0,_0xfd6710=0x0;_0x40138a=_0x1cd4bc=_0xfd6710=Math['min'](_0x4fddc6,_0x29541c/0x2,_0x1ea845/0x2),_0x25414a[_0x29e78f(0x1e9)](),_0x25414a[_0x29e78f(0x288)](_0x40138a,0x0),_0x25414a['lineTo'](_0x29541c-_0x1cd4bc,0x0),_0x25414a[_0x29e78f(0xc9)](_0x29541c-_0x1cd4bc,_0x1cd4bc,_0x1cd4bc,Math['PI']*0x3/0x2,0x0,!0x1),_0x25414a[_0x29e78f(0x12f)](_0x29541c,_0x1ea845-_0xfd6710),_0x25414a[_0x29e78f(0xc9)](_0x29541c-_0xfd6710,_0x1ea845-_0xfd6710,_0xfd6710,0x0,Math['PI']/0x2,!0x1),_0x25414a['lineTo'](0x0,_0x1ea845),_0x25414a[_0x29e78f(0x12f)](0x0,_0x40138a),_0x25414a[_0x29e78f(0xc9)](_0x40138a,_0x40138a,_0x40138a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x25414a[_0x29e78f(0x2eb)](),_0x9f73b7[_0x29e78f(0x15b)]&&(_0x25414a['save'](),_0x25414a[_0x29e78f(0x2fe)]=_0x9f73b7[_0x29e78f(0x15b)],_0x9f73b7[_0x29e78f(0x2e6)]===_0x29e78f(0x245)?_0x25414a[_0x29e78f(0x15b)](_0x29e78f(0x245)):_0x25414a[_0x29e78f(0x15b)](),_0x25414a[_0x29e78f(0x2a8)]());}class te extends p['Shape']{constructor(_0x27a3b9,_0x3e485e){const _0x50394b=_0x3d714e;super(_0x27a3b9,_0x3e485e),h(this,'color'),h(this,_0x50394b(0x2d5)),(this[_0x50394b(0x11d)]=_0x3e485e==null?void 0x0:_0x3e485e[_0x50394b(0x11d)],this['text']=_0x3e485e==null?void 0x0:_0x3e485e[_0x50394b(0x2d5)]);}static['drawWith'](_0x2f530d,_0x16cf10){const _0x3ef5c=_0x3d714e,{text:_0x74242f,color:_0x5b9446}=_0x16cf10;_0x2f530d['save'](),_0x2f530d[_0x3ef5c(0x2ee)]=_0x3ef5c(0x111);const _0x54efac=_0x2f530d[_0x3ef5c(0xec)](_0x74242f)[_0x3ef5c(0x14f)],_0x148f79=Math['min'](_0x54efac+0x2*re,De);_t(_0x2f530d,{'height':K,'radius':0x4,'width':_0x148f79,'fill':_0x5b9446}),_0x2f530d[_0x3ef5c(0x2fe)]=_0x3ef5c(0x119);const _0x4e44f1=re,_0x251ec9=K-ht,_0x53cf4b=De-0x2*re;if(_0x54efac>_0x53cf4b){let _0x3f8678='',_0x2e11c4=0x0;for(const _0x1ec987 of _0x74242f){const _0x432e7d=_0x2f530d[_0x3ef5c(0xec)](_0x1ec987)[_0x3ef5c(0x14f)];if(_0x2e11c4+_0x432e7d<=_0x53cf4b-_0x2f530d[_0x3ef5c(0xec)](_0x3ef5c(0x1c2))['width'])_0x3f8678+=_0x1ec987,_0x2e11c4+=_0x432e7d;else{_0x3f8678+=_0x3ef5c(0x1c2);break;}}_0x2f530d[_0x3ef5c(0x141)](_0x3f8678,_0x4e44f1,_0x251ec9);}else _0x2f530d[_0x3ef5c(0x141)](_0x74242f,_0x4e44f1,_0x251ec9);_0x2f530d[_0x3ef5c(0x2a8)]();}['_draw'](_0x1426b1){const _0x3c4f72=_0x3d714e;te[_0x3c4f72(0x290)](_0x1426b1,this);}}const oe=_0x3d714e(0x10c),ut=_0x3d714e(0x14d),dt=_0x3d714e(0x146),B=0x6,ft=1.5,ae=0x4,St=1.5,It='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x19f188,_0x5959ca,_0x256b93,_0x4f2415){const _0x4b9c61=_0x3d714e;h(this,_0x4b9c61(0x316),[]),h(this,_0x4b9c61(0x1ec),null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,_0x4b9c61(0xf0),null),h(this,_0x4b9c61(0x28e),null),(this['_cursor']=_0x19f188,this[_0x4b9c61(0x1b1)]=_0x5959ca,this[_0x4b9c61(0x175)]=_0x256b93,this[_0x4b9c61(0x1b6)]=_0x4f2415,this[_0x4b9c61(0xef)]());}set[_0x3d714e(0x12d)](_0x6d29d){const _0xea7e17=_0x3d714e;_0x6d29d?(this[_0xea7e17(0x1f3)]&&this[_0xea7e17(0x1f3)][_0xea7e17(0x200)](),this[_0xea7e17(0x292)]&&this[_0xea7e17(0x292)][_0xea7e17(0x30c)]()):(this[_0xea7e17(0x1f3)]&&this[_0xea7e17(0x1f3)]['show'](),this[_0xea7e17(0x292)]&&this[_0xea7e17(0x292)][_0xea7e17(0x200)]());}[_0x3d714e(0x237)](){const _0x5237dd=_0x3d714e;for(const _0x2e514d of this[_0x5237dd(0x316)])_0x2e514d[_0x5237dd(0x237)]();this[_0x5237dd(0x292)]&&this[_0x5237dd(0x292)][_0x5237dd(0x237)](),this[_0x5237dd(0x1f3)]&&this[_0x5237dd(0x1f3)][_0x5237dd(0x237)](),this[_0x5237dd(0x1ec)]&&this['_anchor']['dispose'](),this[_0x5237dd(0x28e)]&&this[_0x5237dd(0x28e)]();}[_0x3d714e(0xef)](){const _0x32ffe1=_0x3d714e;var _0x174910;const {_docSkeleton:_0x1f8efc,_document:_0x2ee6b8}=this,{color:_0x3bb3ee,name:_0x31bc9c,ranges:_0x2c21c2}=this[_0x32ffe1(0x27c)],_0x518a45=_0x2ee6b8['getOffsetConfig'](),{docsLeft:_0x5a9f8e,docsTop:_0x4ed2b2}=_0x518a45,_0x472c4b=new b[(_0x32ffe1(0x1e4))](_0x518a45,_0x1f8efc);for(const {startOffset:_0x30718e,endOffset:_0x646ffa,rangeType:_0xf240e4,segmentId:_0x24fcd4,segmentPage:_0x381575,collapsed:_0x27a3e3,isActive:_0x29975a}of _0x2c21c2){const _0x67cb06=_0x1f8efc[_0x32ffe1(0x2e8)](_0x30718e,!0x0,_0x24fcd4,_0x381575);let _0x1f2424=_0x1f8efc[_0x32ffe1(0x2e8)](_0x646ffa,!0x0,_0x24fcd4,_0x381575);if(_0x1f2424==null&&(_0x1f2424=_0x1f8efc[_0x32ffe1(0x2e8)](_0x646ffa-0x1,!0x1,_0x24fcd4,_0x381575)),_0x29975a){const {contentBoxPointGroup:_0x6aefa1}=_0x472c4b['getRangePointData'](_0x1f2424,_0x1f2424);if(_0x6aefa1[_0x32ffe1(0x2f1)]===0x0)continue;this[_0x32ffe1(0x258)](_0x3bb3ee,_0x6aefa1,_0x5a9f8e,_0x4ed2b2,_0x31bc9c),this[_0x32ffe1(0x28e)]=this[_0x32ffe1(0x346)]();}if(_0x67cb06&&_0x1f2424){if(_0xf240e4===a[_0x32ffe1(0x211)][_0x32ffe1(0x25a)]){const _0x6c9e3=new b[(_0x32ffe1(0x22c))](_0x518a45,_0x1f8efc),{pointGroup:_0x443e94}=(_0x174910=_0x6c9e3['getRangePointData'](_0x67cb06,_0x1f2424))!=null?_0x174910:{};if(_0x443e94==null||_0x443e94[_0x32ffe1(0x2f1)]===0x0)continue;this[_0x32ffe1(0x23a)](_0x3bb3ee,_0x443e94,_0x5a9f8e,_0x4ed2b2);}else{if(!_0x27a3e3){const {borderBoxPointGroup:_0x16df85}=_0x472c4b[_0x32ffe1(0x218)](_0x67cb06,_0x1f2424);if(_0x16df85[_0x32ffe1(0x2f1)]===0x0)continue;this[_0x32ffe1(0x1c4)](_0x3bb3ee,_0x16df85,_0x5a9f8e,_0x4ed2b2);}}}}}[_0x3d714e(0x258)](_0xf73287,_0x340244,_0x315072,_0x22e62,_0x3be5b9){const _0x383945=_0x3d714e,_0x2ed8db=this['_getAnchorBounding'](_0x340244),{left:_0x4b433b,top:_0xea4af,height:_0x11a625}=_0x2ed8db,_0x522a66=this[_0x383945(0x120)](),_0x133139=St/_0x522a66,_0x392abe=new p[(_0x383945(0x2e9))](oe+a[_0x383945(0x267)][_0x383945(0x14e)](B),{'left':_0x4b433b+_0x315072-_0x133139,'top':_0xea4af+_0x22e62,'height':_0x11a625,'width':ft,'fill':_0xf73287||p[_0x383945(0x1bf)](a[_0x383945(0x33c)]['black'],0x0),'strokeWidth':_0x133139,'stroke':It,'evented':!0x0});this['_anchor']=_0x392abe,this[_0x383945(0x1b1)]['addObject'](_0x392abe,b[_0x383945(0x307)]);const _0x921d2a=new p[(_0x383945(0x2e9))](oe+a[_0x383945(0x267)][_0x383945(0x14e)](B),{'left':_0x4b433b+_0x315072-_0x133139,'top':_0xea4af+_0x22e62-ae/0x2,'height':ae,'width':ae,'fill':_0xf73287||p[_0x383945(0x1bf)](a[_0x383945(0x33c)][_0x383945(0x32b)],0x0),'strokeWidth':0x0,'stroke':_0xf73287||p['getColor'](a['COLORS'][_0x383945(0x32b)],0x0),'evented':!0x1});this[_0x383945(0x1f3)]=_0x921d2a,this[_0x383945(0x1b1)]['addObject'](_0x921d2a,b[_0x383945(0x307)]);const _0x5797d7=new te(oe+a[_0x383945(0x267)]['generateRandomId'](B),{'left':_0x4b433b+_0x315072-_0x133139,'top':_0xea4af+_0x22e62-K,'text':_0x3be5b9,'color':_0xf73287});this[_0x383945(0x292)]=_0x5797d7,this[_0x383945(0x1b1)][_0x383945(0x126)](_0x5797d7,b[_0x383945(0x307)]),this[_0x383945(0x12d)]=!0x1;}['_handleHover'](){const _0x508020=_0x3d714e,_0x503c02=this[_0x508020(0x1ec)][_0x508020(0x194)][_0x508020(0x241)](()=>{this['_hover']=!0x0;}),_0x4a5b43=this[_0x508020(0x1ec)][_0x508020(0x2b0)][_0x508020(0x241)](()=>{const _0x59d60e=_0x508020;this[_0x59d60e(0xf0)]&&clearTimeout(this[_0x59d60e(0xf0)]),this[_0x59d60e(0xf0)]=setTimeout(()=>{const _0x27c530=_0x59d60e;this[_0x27c530(0x12d)]=!0x1;},0x7d0);});return()=>{const _0x12cde1=_0x508020;_0x503c02[_0x12cde1(0x118)](),_0x4a5b43[_0x12cde1(0x118)]();};}[_0x3d714e(0x1c4)](_0x468847,_0x528d1a,_0x5b23ed,_0x5c37d1){const _0x2b7184=_0x3d714e,_0x144169=new a[(_0x2b7184(0x1c9))](_0x468847)[_0x2b7184(0x2ef)](0.2)['toRgbString'](),_0x835503=new p[(_0x2b7184(0x2c7))](ut+a['Tools']['generateRandomId'](B),{'pointsGroup':_0x528d1a,'fill':_0x144169||p[_0x2b7184(0x1bf)](a[_0x2b7184(0x33c)][_0x2b7184(0x32b)],0.2),'left':_0x5b23ed,'top':_0x5c37d1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x2b7184(0xe8)](_0x835503),this[_0x2b7184(0x1b1)][_0x2b7184(0x126)](_0x835503,b['TEXT_RANGE_LAYER_INDEX']);}[_0x3d714e(0x23a)](_0x5c9a18,_0x5ddab2,_0x1aeb5f,_0xccfb87){const _0x15234c=_0x3d714e,_0x1f90df=new a[(_0x15234c(0x1c9))](_0x5c9a18)[_0x15234c(0x2ef)](0.2)[_0x15234c(0x274)](),_0x2ee758=new p['RegularPolygon'](dt+a[_0x15234c(0x267)][_0x15234c(0x14e)](B),{'pointsGroup':_0x5ddab2,'fill':_0x1f90df||p['getColor'](a[_0x15234c(0x33c)][_0x15234c(0x32b)],0.2),'left':_0x1aeb5f,'top':_0xccfb87,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15234c(0x316)][_0x15234c(0xe8)](_0x2ee758),this[_0x15234c(0x1b1)][_0x15234c(0x126)](_0x2ee758,b[_0x15234c(0x307)]);}[_0x3d714e(0x1f9)](_0x51284d){const _0x46ea9e=_0x51284d[0x0],_0x1b4759=_0x46ea9e[0x0],_0x4619ab=_0x46ea9e[0x2],{x:_0x700fc1,y:_0x4c8b1e}=_0x1b4759,{x:_0x1e97ba,y:_0x1a2629}=_0x4619ab;return{'left':_0x700fc1,'top':_0x4c8b1e,'width':_0x1e97ba-_0x700fc1,'height':_0x1a2629-_0x4c8b1e};}[_0x3d714e(0x120)](){const _0x3df8a8=_0x3d714e,{scaleX:_0x7f94e,scaleY:_0x145311}=this['_scene'][_0x3df8a8(0x26c)]();return Math[_0x3df8a8(0x304)](_0x7f94e,_0x145311);}}var vt=Object[_0x3d714e(0x294)],gt=(_0x24fbf4,_0x14dc01,_0x52e68e,_0x5f5748)=>{const _0x3343d5=_0x3d714e;for(var _0x5564b6=_0x5f5748>0x1?void 0x0:_0x5f5748?vt(_0x14dc01,_0x52e68e):_0x14dc01,_0x3268ab=_0x24fbf4[_0x3343d5(0x2f1)]-0x1,_0x1bb14a;_0x3268ab>=0x0;_0x3268ab--)(_0x1bb14a=_0x24fbf4[_0x3268ab])&&(_0x5564b6=_0x1bb14a(_0x5564b6)||_0x5564b6);return _0x5564b6;},V=(_0x38108e,_0x4029e8)=>(_0x20bbd6,_0x3d3b65)=>_0x4029e8(_0x20bbd6,_0x3d3b65,_0x38108e);let ve=class extends a[_0x3d714e(0x1f7)]{constructor(_0x16ec50,_0x48a0f3,_0x1751e9,_0x41ff6f,_0x36195e){const _0x55daf6=_0x3d714e;super(),h(this,_0x55daf6(0x17a),[]),h(this,_0x55daf6(0x172),[]),(this[_0x55daf6(0x2c6)]=_0x16ec50,this['_docSkeletonManagerService']=_0x48a0f3,this['_collabCursorController']=_0x1751e9,this['_commandService']=_0x41ff6f,this['_themeService']=_0x36195e,this[_0x55daf6(0x149)]());}[_0x3d714e(0x149)](){const _0x3883f8=_0x3d714e,_0x3dbb45=this[_0x3883f8(0x2c6)]['unitId'],_0x11d8f7=this[_0x3883f8(0x280)];this[_0x3883f8(0x1de)](d[_0x3883f8(0x27b)]([this[_0x3883f8(0x338)]['getCollabCursors$'](_0x3dbb45),this[_0x3883f8(0x251)][_0x3883f8(0x164)]])['pipe']($[_0x3883f8(0x2c5)](([_0x32deb0,_0x24405d])=>({'skeleton':_0x11d8f7[_0x3883f8(0xf2)](),'cursors':[..._0x32deb0[_0x3883f8(0x2c3)]()][_0x3883f8(0x262)](_0x58e39a=>({..._0x58e39a,'color':_0x24405d[_0x58e39a[_0x3883f8(0x11d)]]}))})))[_0x3883f8(0x1ad)](_0x2197e7=>{const _0x21b2ab=_0x3883f8;if(this[_0x21b2ab(0x256)](),_0x2197e7){const {skeleton:_0x212201,cursors:_0x17ac45}=_0x2197e7;this[_0x21b2ab(0x192)](_0x212201,_0x17ac45);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x3d714e(0x192)](_0x3fe85c,_0x47fb82){const _0x35f717=_0x3d714e,{scene:_0x506a16,mainComponent:_0x36cf0b}=this[_0x35f717(0x2c6)],_0x2054ce=_0x47fb82[_0x35f717(0x2c5)](_0x30ee1d=>new Ue(_0x30ee1d,_0x506a16,_0x3fe85c,_0x36cf0b));this['_cursorShapes']=_0x2054ce,this['_cursors']=_0x47fb82;}[_0x3d714e(0x289)](){const _0x438e64=_0x3d714e;this[_0x438e64(0x256)]();const {scene:_0x1a4bb8,mainComponent:_0x445fcd}=this[_0x438e64(0x2c6)],_0x10b3fd=this[_0x438e64(0x280)][_0x438e64(0xf2)](),_0xdf4325=this[_0x438e64(0x172)][_0x438e64(0x2c5)](_0x3795f6=>new Ue(_0x3795f6,_0x1a4bb8,_0x10b3fd,_0x445fcd));this[_0x438e64(0x17a)]=_0xdf4325;}[_0x3d714e(0x256)](){const _0x35bf2c=_0x3d714e;this[_0x35bf2c(0x17a)][_0x35bf2c(0x202)](_0x6040c9=>_0x6040c9['dispose']()),this[_0x35bf2c(0x17a)]=[];}[_0x3d714e(0x328)](){const _0x3229e8=_0x3d714e,_0x33d3da=[b[_0x3229e8(0x185)]['id']];this[_0x3229e8(0x1de)](this[_0x3229e8(0x1ee)][_0x3229e8(0x300)](_0x33df88=>{const _0x194256=_0x3229e8;_0x33d3da[_0x194256(0x21b)](_0x33df88['id'])&&_0x33df88['params']['unitId']===this[_0x194256(0x2c6)][_0x194256(0x28c)]&&this['_refreshCollabCursors']();}));}[_0x3d714e(0x296)](){const _0x5af900=_0x3d714e;this['disposeWithMe'](a[_0x5af900(0x1c7)](this[_0x5af900(0x2c6)][_0x5af900(0x24a)][_0x5af900(0x272)])[_0x5af900(0x30a)]($['filter'](_0x17d010=>_0x17d010[_0x5af900(0x2b4)]===p[_0x5af900(0x10d)][_0x5af900(0x295)]),$[_0x5af900(0x234)](0x10))[_0x5af900(0x1ad)](()=>{const _0x4f8309=_0x5af900;this[_0x4f8309(0x289)]();}));}};ve=gt([V(0x1,a[_0x3d714e(0x1eb)](Y[_0x3d714e(0x12e)])),V(0x2,a[_0x3d714e(0x1eb)](x)),V(0x3,a[_0x3d714e(0x1cc)]),V(0x4,a[_0x3d714e(0x1eb)](a[_0x3d714e(0x25f)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p['Shape']{constructor(_0x43be9d,_0x1e81c4){const _0x4b85e2=_0x3d714e;super(_0x43be9d,_0x1e81c4),h(this,_0x4b85e2(0xe7)),h(this,_0x4b85e2(0x265),!0x1),h(this,_0x4b85e2(0x21c)),h(this,'_name',''),h(this,_0x4b85e2(0x2c2),_0x4b85e2(0x2ec)),h(this,_0x4b85e2(0x334)),(_0x1e81c4&&this['setShapeProps'](_0x1e81c4),this['onPointerEnter$'][_0x4b85e2(0x241)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x4b85e2(0x303)]({'hovered':!0x1})));}[_0x3d714e(0x303)](_0x21704f){const _0xd760ed=_0x3d714e;var _0x288dd3,_0x129481,_0x3f8ed6,_0x3760b2,_0x238157,_0x3bc6b7;this[_0xd760ed(0xe7)]=(_0x288dd3=_0x21704f[_0xd760ed(0x11d)])!=null?_0x288dd3:this[_0xd760ed(0xe7)],this[_0xd760ed(0x265)]=(_0x129481=_0x21704f['hovered'])!=null?_0x129481:this[_0xd760ed(0x265)],this['_range']=(_0x3f8ed6=_0x21704f['range'])!=null?_0x3f8ed6:this['_range'],this['_name']=(_0x3760b2=_0x21704f['name'])!=null?_0x3760b2:this[_0xd760ed(0x340)],this[_0xd760ed(0x2c2)]=(_0x238157=_0x21704f[_0xd760ed(0x1ef)])!=null?_0x238157:this[_0xd760ed(0x2c2)],this[_0xd760ed(0x334)]=(_0x3bc6b7=_0x21704f[_0xd760ed(0x1df)])!=null?_0x3bc6b7:this[_0xd760ed(0x334)],this[_0xd760ed(0x12b)]({'width':_0x21704f[_0xd760ed(0x14f)],'height':_0x21704f[_0xd760ed(0x2d9)]});}[_0x3d714e(0x1a8)](_0x1bbf0c){const _0x57fc40=_0x3d714e,{row:_0x4e27d3,column:_0x87a94f}=_0x1bbf0c;if(_0x4e27d3>=this[_0x57fc40(0x21c)][_0x57fc40(0x1fb)]&&_0x4e27d3<=this[_0x57fc40(0x21c)][_0x57fc40(0x22f)]&&_0x87a94f>=this[_0x57fc40(0x21c)][_0x57fc40(0x2b7)]&&_0x87a94f<=this['_range'][_0x57fc40(0x116)]){this[_0x57fc40(0x303)]({'hovered':!0x0});return;}this[_0x57fc40(0x303)]({'hovered':!0x1});}[_0x3d714e(0x1db)](_0x3434ea){return!0x1;}[_0x3d714e(0x32d)](_0x24a9f5){const _0x4bf09f=_0x3d714e;p['Rect'][_0x4bf09f(0x290)](_0x24a9f5,{'width':this[_0x4bf09f(0x14f)],'height':this[_0x4bf09f(0x2d9)],'strokeWidth':Ct,'stroke':this[_0x4bf09f(0xe7)],'evented':!0x1,'fill':this[_0x4bf09f(0x334)]}),this[_0x4bf09f(0x265)]&&(_0x24a9f5[_0x4bf09f(0x186)](),_0x24a9f5[_0x4bf09f(0x109)](0x1,0x0,0x0,0x1,this['width'],this[_0x4bf09f(0x2c2)]===_0x4bf09f(0x1cd)?0x0:-0x14),te[_0x4bf09f(0x290)](_0x24a9f5,{'text':this[_0x4bf09f(0x340)],'color':this[_0x4bf09f(0xe7)]}),_0x24a9f5['restore']());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x4ee6f6,_0x92f217,_0x52dab6,_0x2b8af5)=>{for(var _0x43e23c=_0x2b8af5>0x1?void 0x0:_0x2b8af5?pt(_0x92f217,_0x52dab6):_0x92f217,_0x96b725=_0x4ee6f6['length']-0x1,_0x3ab1ff;_0x96b725>=0x0;_0x96b725--)(_0x3ab1ff=_0x4ee6f6[_0x96b725])&&(_0x43e23c=_0x3ab1ff(_0x43e23c)||_0x43e23c);return _0x43e23c;},ce=(_0x8dec8b,_0x58086b)=>(_0x531945,_0x132580)=>_0x58086b(_0x531945,_0x132580,_0x8dec8b);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x5377b5,_0x464c6c,_0x5f09d7,_0x11f675){const _0x43f9d1=_0x3d714e;super(),h(this,_0x43f9d1(0x172),new Set()),h(this,'_lastPointer',null),(this[_0x43f9d1(0x2c6)]=_0x5377b5,this[_0x43f9d1(0xd1)]=_0x464c6c,this['_collabCursorController']=_0x5f09d7,this[_0x43f9d1(0x251)]=_0x11f675,this[_0x43f9d1(0x149)]());}[_0x3d714e(0x149)](){const _0x4841b6=_0x3d714e;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4841b6(0x30a)]($['takeUntil'](this[_0x4841b6(0xeb)]),$[_0x4841b6(0x298)](_0x5a8a08=>{const _0x5d717c=_0x4841b6;if(_0x5a8a08){const _0x34047e=_0x5a8a08[_0x5d717c(0x10e)];return d[_0x5d717c(0x27b)](this[_0x5d717c(0x338)][_0x5d717c(0x1f5)](this['_context'][_0x5d717c(0x28c)]),this[_0x5d717c(0x251)][_0x5d717c(0x164)])[_0x5d717c(0x30a)]($[_0x5d717c(0x2c5)](([_0x2e34fd,_0x40908d])=>{const _0x3c562b=new Map();return _0x2e34fd['forEach']((_0x2cf676,_0xfcd66e)=>{const _0x49610e=_0x2f33;if(_0x2cf676['sheetID']===_0x34047e){const _0x46294f={..._0x2cf676};_0x46294f[_0x49610e(0x11d)]=_0x40908d[_0x2cf676['color']],_0x3c562b[_0x49610e(0x203)](_0xfcd66e,_0x46294f);}}),{'skeleton':_0x5a8a08,'cursors':_0x3c562b};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x43878b,cursors:_0x1efece})=>{const _0x7da8fa=_0x4841b6;this[_0x7da8fa(0x256)](),_0x43878b&&this[_0x7da8fa(0x192)](_0x43878b,_0x1efece);}),this[_0x4841b6(0xd1)]['currentSkeleton$'][_0x4841b6(0x1ad)](_0x35cf8b=>{const _0x30d478=_0x4841b6;if(_0x35cf8b==null)return;const {skeleton:_0x45468b}=_0x35cf8b,{scene:_0x274fad}=this[_0x30d478(0x2c6)];_0x274fad['onPointerMove$'][_0x30d478(0x241)](a[_0x30d478(0x138)](_0x315cbb=>{const _0x41d31d=_0x30d478;var _0x580272,_0x1161ef;const {offsetX:_0x2ae71f,offsetY:_0x5861bb}=_0x315cbb,{x:_0x5ed1e8,y:_0x5f0835}=_0x274fad[_0x41d31d(0x1ea)](p[_0x41d31d(0x14c)][_0x41d31d(0x20c)]([_0x2ae71f,_0x5861bb])),{scaleX:_0x4432d2,scaleY:_0x2cad61}=_0x274fad[_0x41d31d(0x26c)](),_0x5199f8=_0x274fad[_0x41d31d(0x1ca)](p['SHEET_VIEWPORT_KEY'][_0x41d31d(0x2db)]),_0xca385=_0x274fad[_0x41d31d(0x18c)](p['Vector2'][_0x41d31d(0x20c)]([_0x5ed1e8,_0x5f0835]),_0x5199f8),_0x1e61f4=_0x45468b[_0x41d31d(0x319)](_0x2ae71f,_0x5861bb,_0x4432d2,_0x2cad61,_0xca385);((_0x580272=this[_0x41d31d(0x269)])==null?void 0x0:_0x580272['column'])===_0x1e61f4[_0x41d31d(0x249)]&&((_0x1161ef=this['_lastPointer'])==null?void 0x0:_0x1161ef['row'])===_0x1e61f4[_0x41d31d(0x345)]||this[_0x41d31d(0x172)][_0x41d31d(0x202)](_0x117333=>{const _0x188534=_0x41d31d;_0x117333[_0x188534(0x1a8)](_0x1e61f4);});},0x64));});}[_0x3d714e(0x192)](_0x456c9e,_0x4bc37f){const _0x3fad92=_0x3d714e;var _0x394879;const _0x1217d0=(_0x394879=this[_0x3fad92(0xd1)][_0x3fad92(0x2f5)]())==null?void 0x0:_0x394879['skeleton'];if(!_0x1217d0)return;const _0x3ec0ba=this[_0x3fad92(0xce)]();if(!_0x3ec0ba)return;this[_0x3fad92(0x172)][_0x3fad92(0x202)](_0x299021=>{const _0x5896f6=_0x3fad92;_0x299021[_0x5896f6(0x1ba)]();});const {scene:_0x17e572}=_0x3ec0ba,_0xf9888e=Tt(Array[_0x3fad92(0x25b)](_0x4bc37f[_0x3fad92(0x2c3)]()))[_0x3fad92(0x2c5)](_0x57d07f=>{const _0x284ff0=_0x3fad92,{color:_0x2f5a70,range:_0x4503d8,name:_0x23bd18,selection:_0x35f294,sheetID:_0x5354a2}=_0x57d07f,{startColumn:_0x27480a,startRow:_0x1b2f6a,endColumn:_0x315282,endRow:_0x1ff34c}=_0x4503d8,_0x49b8f6=G[_0x284ff0(0xe2)](_0x1b2f6a,_0x27480a,_0x17e572,_0x1217d0),_0xd73f5=G[_0x284ff0(0xe2)](_0x1ff34c,_0x315282,_0x17e572,_0x1217d0),{columnHeaderHeightAndMarginTop:_0x1fdf9a}=_0x1217d0,{startX:_0x1aa6d5,startY:_0x1b370e}=_0x49b8f6,{endX:_0x41d6f4,endY:_0x20b0e9}=_0xd73f5,_0x3cc1d3=_0x41d6f4-_0x1aa6d5,_0x584f3f=_0x20b0e9-_0x1b370e,_0x3646ea={'labelPosition':_0x1b370e-_0x1fdf9a>=K?'top':_0x284ff0(0x1cd),'sheetID':_0x5354a2,'range':_0x4503d8,'color':_0x2f5a70,'name':_0x23bd18,'selection':_0x35f294,'left':_0x1aa6d5,'top':_0x1b370e,'width':_0x3cc1d3,'height':_0x584f3f,'evented':!0x1,'zIndex':Et};return new Ae(_0x23bd18,_0x3646ea);});_0x17e572[_0x3fad92(0x16e)](_0xf9888e,mt),this[_0x3fad92(0x172)]=new Set(_0xf9888e);}[_0x3d714e(0x256)](){const _0x1f3e80=_0x3d714e;var _0x5e5ce8;(_0x5e5ce8=this[_0x1f3e80(0x172)])==null||_0x5e5ce8[_0x1f3e80(0x202)](_0x2f8143=>_0x2f8143[_0x1f3e80(0x237)]());}[_0x3d714e(0xce)](){const _0x4aef7f=_0x3d714e;return G[_0x4aef7f(0x214)](this[_0x4aef7f(0x2c6)][_0x4aef7f(0x2e5)],this[_0x4aef7f(0x2c6)]);}};ge=bt([ce(0x1,a[_0x3d714e(0x1eb)](G[_0x3d714e(0x276)])),ce(0x2,a[_0x3d714e(0x1eb)](x)),ce(0x3,a[_0x3d714e(0x1eb)](a[_0x3d714e(0x25f)]))],ge);function Tt(_0x3c15ca){const _0xd18490=_0x3d714e,_0x3dfb2b=new Map();return _0x3c15ca[_0xd18490(0x202)](_0x505c62=>{const _0x233dea=_0xd18490;if(_0x3dfb2b[_0x233dea(0x310)](_0x505c62['selection'])){const _0xef87ed=_0x3dfb2b['get'](_0x505c62['selection']);_0xef87ed[_0x233dea(0x113)]+=',\x20'+_0x505c62[_0x233dea(0x113)];}else _0x3dfb2b[_0x233dea(0x203)](_0x505c62[_0x233dea(0x2f7)],_0x505c62);}),Array[_0xd18490(0x25b)](_0x3dfb2b['values']());}var E=function(){const _0x79fa9=_0x3d714e;return E=Object[_0x79fa9(0x22b)]||function(_0x3c1822){const _0xab07d7=_0x79fa9;for(var _0x28de68,_0x388224=0x1,_0xea54b9=arguments[_0xab07d7(0x2f1)];_0x388224<_0xea54b9;_0x388224++){_0x28de68=arguments[_0x388224];for(var _0x3b7a32 in _0x28de68)Object['prototype'][_0xab07d7(0x1ac)][_0xab07d7(0x130)](_0x28de68,_0x3b7a32)&&(_0x3c1822[_0x3b7a32]=_0x28de68[_0x3b7a32]);}return _0x3c1822;},E['apply'](this,arguments);},Rt=function(_0x213673,_0x23d029){const _0x348431=_0x3d714e;var _0x377607={};for(var _0x400b07 in _0x213673)Object[_0x348431(0x2b2)][_0x348431(0x1ac)][_0x348431(0x130)](_0x213673,_0x400b07)&&_0x23d029['indexOf'](_0x400b07)<0x0&&(_0x377607[_0x400b07]=_0x213673[_0x400b07]);if(_0x213673!=null&&typeof Object[_0x348431(0x331)]==_0x348431(0xd2)){for(var _0x324133=0x0,_0x400b07=Object['getOwnPropertySymbols'](_0x213673);_0x324133<_0x400b07['length'];_0x324133++)_0x23d029[_0x348431(0x23d)](_0x400b07[_0x324133])<0x0&&Object[_0x348431(0x2b2)]['propertyIsEnumerable']['call'](_0x213673,_0x400b07[_0x324133])&&(_0x377607[_0x400b07[_0x324133]]=_0x213673[_0x400b07[_0x324133]]);}return _0x377607;},be=M['forwardRef'](function(_0x40cf67,_0x1b62a9){const _0x46685c=_0x3d714e;var _0x3e5e02=_0x40cf67['icon'],_0x54251c=_0x40cf67['id'],_0x36dd62=_0x40cf67[_0x46685c(0x1d0)],_0x323353=_0x40cf67['extend'],_0x317d1a=Rt(_0x40cf67,[_0x46685c(0xfc),'id',_0x46685c(0x1d0),_0x46685c(0x34b)]),_0x357c26=_0x46685c(0x2a2)['concat'](_0x54251c,'\x20')[_0x46685c(0x261)](_0x36dd62||'')[_0x46685c(0x191)](),_0x3d67e9=M['useRef']('_'[_0x46685c(0x261)](Ut()));return ye(_0x3e5e02,''[_0x46685c(0x261)](_0x54251c),{'defIds':_0x3e5e02[_0x46685c(0x1d3)],'idSuffix':_0x3d67e9['current']},E({'ref':_0x1b62a9,'className':_0x357c26},_0x317d1a),_0x323353);});function ye(_0x334b69,_0x3cc6e2,_0x43a224,_0xb03955,_0x5168b5){const _0x944ef0=_0x3d714e;return M[_0x944ef0(0x32c)](_0x334b69[_0x944ef0(0x243)],E(E({'key':_0x3cc6e2},Ot(_0x334b69,_0x43a224,_0x5168b5)),_0xb03955),(Dt(_0x334b69,_0x43a224)[_0x944ef0(0x145)]||[])['map'](function(_0x16e591,_0x5b8598){const _0x51f40a=_0x944ef0;return ye(_0x16e591,''[_0x51f40a(0x261)](_0x3cc6e2,'-')[_0x51f40a(0x261)](_0x334b69['tag'],'-')[_0x51f40a(0x261)](_0x5b8598),_0x43a224,void 0x0,_0x5168b5);}));}function Ot(_0x470e56,_0x1c3c17,_0x29e2ed){const _0x5af2c1=_0x3d714e;var _0x4f94f3=E({},_0x470e56['attrs']);_0x29e2ed!=null&&_0x29e2ed[_0x5af2c1(0x2fb)]&&_0x4f94f3['fill']===_0x5af2c1(0x2fb)&&(_0x4f94f3[_0x5af2c1(0x15b)]=_0x29e2ed[_0x5af2c1(0x2fb)]),_0x470e56[_0x5af2c1(0x243)]===_0x5af2c1(0x1d4)&&_0x4f94f3['id']&&(_0x4f94f3['id']=_0x4f94f3['id']+_0x1c3c17[_0x5af2c1(0xf8)]),Object['entries'](_0x4f94f3)['forEach'](function(_0x38fa6b){const _0x444d49=_0x5af2c1;var _0x2b7e14=_0x38fa6b[0x0],_0x1f98d9=_0x38fa6b[0x1];_0x2b7e14===_0x444d49(0x1d4)&&typeof _0x1f98d9=='string'&&(_0x4f94f3[_0x2b7e14]=_0x1f98d9['replace'](/url\(#(.*)\)/,_0x444d49(0x16f)[_0x444d49(0x261)](_0x1c3c17[_0x444d49(0xf8)],')')));});var _0x25b55=_0x1c3c17[_0x5af2c1(0x1d3)];return!_0x25b55||_0x25b55['length']===0x0||(_0x470e56[_0x5af2c1(0x243)]===_0x5af2c1(0x189)&&_0x4f94f3['xlink:href']&&(_0x4f94f3['xlink:href']=_0x4f94f3[_0x5af2c1(0xca)]+_0x1c3c17['idSuffix']),Object[_0x5af2c1(0x127)](_0x4f94f3)[_0x5af2c1(0x202)](function(_0x7b331f){const _0x198e01=_0x5af2c1;var _0x2e17e8=_0x7b331f[0x0],_0x30bb2b=_0x7b331f[0x1];typeof _0x30bb2b==_0x198e01(0x20a)&&(_0x4f94f3[_0x2e17e8]=_0x30bb2b[_0x198e01(0xf6)](/url\(#(.*)\)/,_0x198e01(0x16f)[_0x198e01(0x261)](_0x1c3c17['idSuffix'],')')));})),_0x4f94f3;}function Dt(_0x19048e,_0x16af2a){const _0x19097e=_0x3d714e;var _0x581e6a,_0x2ca5a2=_0x16af2a['defIds'];return!_0x2ca5a2||_0x2ca5a2['length']===0x0?_0x19048e:_0x19048e['tag']===_0x19097e(0x1fe)&&(!((_0x581e6a=_0x19048e[_0x19097e(0x145)])===null||_0x581e6a===void 0x0)&&_0x581e6a[_0x19097e(0x2f1)])?E(E({},_0x19048e),{'children':_0x19048e[_0x19097e(0x145)]['map'](function(_0x322585){const _0x29aef8=_0x19097e;return typeof _0x322585[_0x29aef8(0x1ce)]['id']==_0x29aef8(0x20a)&&_0x2ca5a2&&_0x2ca5a2['indexOf'](_0x322585[_0x29aef8(0x1ce)]['id'])>-0x1?E(E({},_0x322585),{'attrs':E(E({},_0x322585[_0x29aef8(0x1ce)]),{'id':_0x322585[_0x29aef8(0x1ce)]['id']+_0x16af2a['idSuffix']})}):_0x322585;})}):_0x19048e;}function Ut(){const _0x1a3800=_0x3d714e;return Math[_0x1a3800(0x285)]()[_0x1a3800(0x232)](0x24)[_0x1a3800(0x32a)](0x2,0x8);}be[_0x3d714e(0x26f)]=_0x3d714e(0x235);var Nt={'tag':_0x3d714e(0x121),'attrs':{'fill':_0x3d714e(0xdb),'viewBox':'0\x200\x2016\x2016','width':_0x3d714e(0x2f8),'height':_0x3d714e(0x2f8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x3d714e(0x2f2),'attrs':{'stroke':_0x3d714e(0x2e1),'d':_0x3d714e(0x193),'strokeLinecap':_0x3d714e(0x18a),'strokeLinejoin':_0x3d714e(0x18a),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3d714e(0x163),'attrs':{'id':_0x3d714e(0x12a)},'children':[{'tag':_0x3d714e(0x2f2),'attrs':{'fill':_0x3d714e(0x20b),'d':_0x3d714e(0x1ab)}}]}]}],'defIds':[_0x3d714e(0x12a)]},$e=M[_0x3d714e(0xd5)](function(_0x355a47,_0x21935f){const _0x26d358=_0x3d714e;return M[_0x26d358(0x32c)](be,Object['assign']({},_0x355a47,{'id':_0x26d358(0xe6),'ref':_0x21935f,'icon':Nt}));});$e[_0x3d714e(0x26f)]='OffLineSingle';var Mt={'tag':_0x3d714e(0x121),'attrs':{'fill':_0x3d714e(0xdb),'viewBox':'0\x200\x2017\x2016','width':_0x3d714e(0x2f8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3d714e(0x268)},'children':[{'tag':_0x3d714e(0x2f2),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x3d714e(0x18a),'strokeLinejoin':_0x3d714e(0x18a),'strokeWidth':1.2}}]},{'tag':_0x3d714e(0x1fe),'attrs':{},'children':[{'tag':_0x3d714e(0x163),'attrs':{'id':_0x3d714e(0x286)},'children':[{'tag':_0x3d714e(0x2f2),'attrs':{'fill':_0x3d714e(0x20b),'d':_0x3d714e(0x1ab),'transform':_0x3d714e(0xc8)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xe=M[_0x3d714e(0xd5)](function(_0x3ec8f9,_0x4f9a3c){const _0x469703=_0x3d714e;return M['createElement'](be,Object[_0x469703(0x22b)]({},_0x3ec8f9,{'id':_0x469703(0x210),'ref':_0x4f9a3c,'icon':Mt}));});xe['displayName']=_0x3d714e(0x32f);const Pt=_0x3d714e(0x2de),wt=_0x3d714e(0x2cf),Lt=_0x3d714e(0x2be),At='univer-online',yt=_0x3d714e(0x100),H={'onlineStatusIcon':Pt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':At,'offline':yt};function $t(_0x13112a){const _0x5d8ac4=_0x3d714e;switch(_0x13112a){case u[_0x5d8ac4(0x2a9)]['OFFLINE']:return'collabStatus.offline';case u['CollaborationStatus'][_0x5d8ac4(0x20f)]:return _0x5d8ac4(0x29c);case u[_0x5d8ac4(0x2a9)][_0x5d8ac4(0x1b9)]:return'collabStatus.fetchMiss';case u[_0x5d8ac4(0x2a9)][_0x5d8ac4(0x2a4)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x5d8ac4(0x317)]:case u[_0x5d8ac4(0x2a9)][_0x5d8ac4(0x349)]:return'collabStatus.syncing';case u[_0x5d8ac4(0x2a9)][_0x5d8ac4(0xd3)]:case u['CollaborationStatus'][_0x5d8ac4(0xd4)]:return _0x5d8ac4(0x1aa);}}function je(_0x41042f){const _0xda3d08=_0x3d714e,{status$:_0x5d3deb}=_0x41042f,_0x29ff4c=R['useObservable'](_0x5d3deb,u[_0xda3d08(0x2a9)][_0xda3d08(0x2a4)]),_0x53dcd9=R[_0xda3d08(0xcd)](a[_0xda3d08(0x29b)]),_0x7ebb63=R['useDependency'](u[_0xda3d08(0x179)]),_0x5b654c=_0x29ff4c!==u[_0xda3d08(0x2a9)][_0xda3d08(0x117)],_0x3fa113=_0x53dcd9['t']($t(_0x29ff4c)),_0xa46ab=T[_0xda3d08(0x1f0)](H[_0xda3d08(0x14a)],{[H[_0xda3d08(0x259)]]:_0x5b654c,[H['offline']]:!_0x5b654c}),_0x78740c=_0x5b654c?w[_0xda3d08(0xfa)](xe,{}):w[_0xda3d08(0xfa)]($e,{}),_0x3ab3f6=M[_0xda3d08(0x1e0)](()=>{const _0x45024c=_0xda3d08;_0x5b654c||_0x7ebb63[_0x45024c(0x1cb)]();},[_0x5b654c,_0x7ebb63]);function _0x1ac04b(){const _0xec60c9=_0xda3d08;return w[_0xec60c9(0x1c1)](_0xec60c9(0x318),{'className':T[_0xec60c9(0x1f0)](_0xa46ab,_0xec60c9(0x333)),'onClick':_0x3ab3f6,'children':[w[_0xec60c9(0xfa)]('div',{'className':H[_0xec60c9(0x1b5)],'children':_0x78740c}),w[_0xec60c9(0xfa)](_0xec60c9(0x318),{'className':H[_0xec60c9(0x105)],'children':_0x3fa113})]});}return _0x5b654c?_0x1ac04b():w[_0xda3d08(0xfa)](T[_0xda3d08(0x342)],{'title':_0x53dcd9['t'](_0xda3d08(0x26a)),'children':_0x1ac04b()});}var xt=Object[_0x3d714e(0x294)],jt=(_0x3d4894,_0x4e3498,_0x1474b2,_0x15a875)=>{const _0x585d97=_0x3d714e;for(var _0x299d3c=_0x15a875>0x1?void 0x0:_0x15a875?xt(_0x4e3498,_0x1474b2):_0x4e3498,_0x1488e6=_0x3d4894[_0x585d97(0x2f1)]-0x1,_0x3772db;_0x1488e6>=0x0;_0x1488e6--)(_0x3772db=_0x3d4894[_0x1488e6])&&(_0x299d3c=_0x3772db(_0x299d3c)||_0x299d3c);return _0x299d3c;},X=(_0x23abf3,_0xade507)=>(_0x1bdbba,_0x4797de)=>_0xade507(_0x1bdbba,_0x4797de,_0x23abf3);exports[_0x3d714e(0x106)]=class extends a[_0x3d714e(0x321)]{constructor(_0x1c3196,_0x298667,_0x1b3b1b,_0x463b19){const _0x281ae4=_0x3d714e;super(),h(this,'_status$',new d['BehaviorSubject'](u['CollaborationStatus'][_0x281ae4(0x2a4)])),(this[_0x281ae4(0x23c)]=_0x1c3196,this['_injector']=_0x298667,this['_collaborationController']=_0x1b3b1b,this[_0x281ae4(0x174)]=_0x463b19,this[_0x281ae4(0x124)](),this[_0x281ae4(0x114)]());}[_0x3d714e(0x114)](){const _0x518753=_0x3d714e;this[_0x518753(0x1de)](this[_0x518753(0x23c)]['focused$'][_0x518753(0x30a)](d[_0x518753(0x298)](()=>{const _0x5cf7e9=_0x518753,_0x1f7956=this[_0x5cf7e9(0x23c)][_0x5cf7e9(0x2d2)]();return _0x1f7956?this[_0x5cf7e9(0x347)]['getCollabEntity$'](_0x1f7956[_0x5cf7e9(0x180)]()):d['of'](null);}),d['switchMap'](_0x2b1856=>_0x2b1856?_0x2b1856[_0x518753(0x133)]:d['of'](u[_0x518753(0x2a9)]['NOT_COLLAB'])))[_0x518753(0x1ad)](_0xed84e0=>{const _0x2888f0=_0x518753;this['_status$'][_0x2888f0(0x2f0)](_0xed84e0);}));}[_0x3d714e(0x124)](){const _0x11c1a8=_0x3d714e;this[_0x11c1a8(0x1de)](this[_0x11c1a8(0x174)][_0x11c1a8(0x312)](R['BuiltInUIPart'][_0x11c1a8(0x308)],()=>R[_0x11c1a8(0x315)](kt({'status$':this[_0x11c1a8(0x225)][_0x11c1a8(0x15e)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x3d714e(0x27e)]),X(0x1,a[_0x3d714e(0x1eb)](a[_0x3d714e(0x2d7)])),X(0x2,a['Inject'](u['CollaborationController'])),X(0x3,R['IUIPartsService'])],exports[_0x3d714e(0x106)]);function kt(_0x2c5100){const {status$:_0x3ab99d}=_0x2c5100;return function(){const _0x404bf6=_0x2f33;return w[_0x404bf6(0xfa)](je,{'status$':_0x3ab99d});};}var Bt=Object['getOwnPropertyDescriptor'],Ht=(_0xc19176,_0x230885,_0x6e81e2,_0x292a42)=>{const _0x2fe66b=_0x3d714e;for(var _0x327d9c=_0x292a42>0x1?void 0x0:_0x292a42?Bt(_0x230885,_0x6e81e2):_0x230885,_0xb52d9d=_0xc19176[_0x2fe66b(0x2f1)]-0x1,_0x2d2578;_0xb52d9d>=0x0;_0xb52d9d--)(_0x2d2578=_0xc19176[_0xb52d9d])&&(_0x327d9c=_0x2d2578(_0x327d9c)||_0x327d9c);return _0x327d9c;},y=(_0xe31c6c,_0x147339)=>(_0x453fdc,_0x33cccc)=>_0x147339(_0x453fdc,_0x33cccc,_0xe31c6c);let z=class extends a[_0x3d714e(0x321)]{constructor(_0x5c1832,_0x4a72e1,_0x4cb238,_0x3fa760,_0x15edaf,_0x4b06d1){const _0x5a745d=_0x3d714e;super(),this[_0x5a745d(0x144)]=_0x5c1832,this[_0x5a745d(0x22e)]=_0x4a72e1,this[_0x5a745d(0x222)]=_0x4cb238,this[_0x5a745d(0x110)]=_0x3fa760,this['_notificationService']=_0x15edaf,this[_0x5a745d(0x247)]=_0x4b06d1,this['_setupBeforeClosingHandler'](),this[_0x5a745d(0x15c)]();}[_0x3d714e(0x2af)](){const _0x1a2430=_0x3d714e;this['disposeWithMe'](this['_beforeCloseService'][_0x1a2430(0x128)](()=>{const _0x4cfdfb=_0x1a2430;if(this[_0x4cfdfb(0x22e)][_0x4cfdfb(0x297)][_0x4cfdfb(0xf4)])return this['_localeService']['t'](_0x4cfdfb(0x190));}));}[_0x3d714e(0x15c)](){const _0x3bc4b7=_0x3d714e;this['disposeWithMe'](this[_0x3bc4b7(0x222)][_0x3bc4b7(0x324)][_0x3bc4b7(0x1ad)](_0x5a2217=>{const _0x36fa1e=_0x3bc4b7;_0x5a2217['id']===u[_0x36fa1e(0x139)][_0x36fa1e(0x2f6)]&&this[_0x36fa1e(0x110)][_0x36fa1e(0x30c)]({'type':T['MessageType'][_0x36fa1e(0x1ae)],'content':this['_localeService']['t'](_0x36fa1e(0x1f6))}),_0x5a2217['id']===u[_0x36fa1e(0x139)][_0x36fa1e(0x271)]&&this[_0x36fa1e(0x110)][_0x36fa1e(0x30c)]({'type':T['MessageType']['Warning'],'content':this[_0x36fa1e(0x247)]['t'](_0x36fa1e(0x18d))}),_0x5a2217['id']===u[_0x36fa1e(0x139)]['PERMISSION_DENIED']&&this[_0x36fa1e(0xf7)][_0x36fa1e(0x30c)]({'title':this[_0x36fa1e(0x247)]['t'](_0x36fa1e(0x157)),'content':this['_localeService']['t'](_0x36fa1e(0x33b)),'type':_0x36fa1e(0x21e),'duration':0x0}),_0x5a2217['id']===u[_0x36fa1e(0x139)][_0x36fa1e(0x20f)]&&this[_0x36fa1e(0x110)][_0x36fa1e(0x30c)]({'type':T[_0x36fa1e(0x20e)][_0x36fa1e(0x26e)],'content':this[_0x36fa1e(0x247)]['t'](_0x36fa1e(0x18d))+'('+_0x5a2217[_0x36fa1e(0x28b)]+')'}),_0x5a2217['id']===u[_0x36fa1e(0x139)][_0x36fa1e(0x306)]&&this['_messageService'][_0x36fa1e(0x30c)]({'type':T['MessageType']['Warning'],'content':this['_localeService']['t'](_0x5a2217['data']||'')}),_0x5a2217['id']===u[_0x36fa1e(0x139)]['SOCKET_FAILED_RETRY']&&this[_0x36fa1e(0x110)][_0x36fa1e(0x30c)]({'type':T[_0x36fa1e(0x20e)][_0x36fa1e(0x1ae)],'content':this[_0x36fa1e(0x247)]['t']('session.will-retry')}),_0x5a2217['id']===u['CollaborationUIEventId'][_0x36fa1e(0x1d7)]&&this[_0x36fa1e(0x110)][_0x36fa1e(0x30c)]({'type':T['MessageType'][_0x36fa1e(0x26e)],'content':this[_0x36fa1e(0x247)]['t'](_0x36fa1e(0x165))}),_0x5a2217['id']===u['CollaborationUIEventId'][_0x36fa1e(0x1a3)]&&this[_0x36fa1e(0x110)][_0x36fa1e(0x30c)]({'type':T[_0x36fa1e(0x20e)][_0x36fa1e(0x26e)],'content':this[_0x36fa1e(0x247)]['t'](_0x36fa1e(0x17c))});}));}};z=Ht([y(0x0,R[_0x3d714e(0x337)]),y(0x1,u[_0x3d714e(0x299)]),y(0x2,a[_0x3d714e(0x1eb)](u[_0x3d714e(0x199)])),y(0x3,R[_0x3d714e(0x30e)]),y(0x4,R['INotificationService']),y(0x5,a[_0x3d714e(0x1eb)](a[_0x3d714e(0x29b)]))],z);const Ft=_0x3d714e(0x2ff),Ne={},Ee=a[_0x3d714e(0x24c)]('uni.network.url-service');var Wt=Object[_0x3d714e(0x294)],Yt=(_0xd5ffec,_0xb45c7d,_0x565274,_0x2cf4ba)=>{const _0x4b865f=_0x3d714e;for(var _0x2209b1=_0x2cf4ba>0x1?void 0x0:_0x2cf4ba?Wt(_0xb45c7d,_0x565274):_0xb45c7d,_0x118b94=_0xd5ffec[_0x4b865f(0x2f1)]-0x1,_0x351805;_0x118b94>=0x0;_0x118b94--)(_0x351805=_0xd5ffec[_0x118b94])&&(_0x2209b1=_0x351805(_0x2209b1)||_0x2209b1);return _0x2209b1;},F=(_0x53fd87,_0x198a88)=>(_0x4409ea,_0x324015)=>_0x198a88(_0x4409ea,_0x324015,_0x53fd87);exports['CollaborationDataLoaderController']=class extends a['RxDisposable']{constructor(_0x5f2755,_0x5d354f,_0x5851ba,_0x5c563d,_0x49dd63){const _0x2a60b8=_0x3d714e;super(),this['_urlService']=_0x5f2755,this[_0x2a60b8(0xe9)]=_0x5d354f,this[_0x2a60b8(0x1ee)]=_0x5851ba,this['_dataLoaderService']=_0x5c563d,_0x49dd63?_0x49dd63==null||_0x49dd63['whenReady']()[_0x2a60b8(0xed)](()=>this[_0x2a60b8(0x149)]()):(this['_logService']['debug'](_0x2a60b8(0x242),_0x2a60b8(0x1f2)),this['_init']());}async[_0x3d714e(0x149)](){const _0x42ed81=_0x3d714e,_0x3eee5e=this['_urlService'][_0x42ed81(0x101)](_0x42ed81(0x2e5)),_0x1eb615=this[_0x42ed81(0x2e4)]['getParam']('type'),_0x76b29b=this[_0x42ed81(0x2e4)][_0x42ed81(0x101)](_0x42ed81(0x11f));if(!_0x3eee5e||!_0x1eb615){this['_logService']['debug']('[CollaborationDataLoaderController]',_0x42ed81(0x1e3));return;}const _0x57ec1a=await this[_0x42ed81(0xd0)][_0x42ed81(0x277)](_0x3eee5e,Number(_0x1eb615),_0x76b29b);_0x57ec1a&&_0x57ec1a instanceof a[_0x42ed81(0x233)]&&this[_0x42ed81(0x1af)](_0x57ec1a);}async[_0x3d714e(0x1af)](_0x557a32){const _0x6c1ed5=_0x3d714e;await this[_0x6c1ed5(0x24f)](_0x557a32),_0x557a32['activeSheet$'][_0x6c1ed5(0x30a)](d[_0x6c1ed5(0x143)](this[_0x6c1ed5(0xeb)]))[_0x6c1ed5(0x1ad)](_0x3e0973=>{const _0x338fc9=_0x6c1ed5;_0x3e0973&&this[_0x338fc9(0x30b)](_0x3e0973);}),this[_0x6c1ed5(0x2e4)][_0x6c1ed5(0xde)]['pipe'](d[_0x6c1ed5(0x143)](this[_0x6c1ed5(0xeb)]))[_0x6c1ed5(0x1ad)](()=>this[_0x6c1ed5(0x24f)](_0x557a32));}[_0x3d714e(0x30b)](_0x2ae760,_0x117c23=!0x1){const _0x38bd5b=_0x3d714e,_0x22cb96=this[_0x38bd5b(0x2e4)][_0x38bd5b(0x101)](_0x38bd5b(0x11f));_0x2ae760[_0x38bd5b(0x301)]()!==_0x22cb96&&this[_0x38bd5b(0x2e4)][_0x38bd5b(0x184)](_0x38bd5b(0x11f),_0x2ae760['getSheetId'](),_0x117c23);}async[_0x3d714e(0x24f)](_0x28e1f9){const _0x31881c=_0x3d714e;var _0x4ab86c;const _0x362b4a=this[_0x31881c(0x2e4)][_0x31881c(0x101)](_0x31881c(0x11f));if(!_0x362b4a||!_0x28e1f9[_0x31881c(0x2a5)](_0x362b4a)){const _0x45411b=_0x28e1f9[_0x31881c(0x22d)]()[0x0],_0x4efe0a=_0x28e1f9[_0x31881c(0x2a5)](_0x45411b);if(!_0x4efe0a)return;this[_0x31881c(0x30b)](_0x4efe0a,!0x0),await this[_0x31881c(0x1ee)][_0x31881c(0x302)](g[_0x31881c(0x282)]['id'],{'unitId':_0x28e1f9[_0x31881c(0x180)](),'subUnitId':_0x45411b});return;}((_0x4ab86c=_0x28e1f9[_0x31881c(0x330)]())==null?void 0x0:_0x4ab86c[_0x31881c(0x301)]())!==_0x362b4a&&await this[_0x31881c(0x1ee)]['executeCommand'](g[_0x31881c(0x282)]['id'],{'unitId':_0x28e1f9[_0x31881c(0x180)](),'subUnitId':_0x362b4a});}},exports[_0x3d714e(0x2e0)]=Yt([F(0x0,Ee),F(0x1,a[_0x3d714e(0x178)]),F(0x2,a['ICommandService']),F(0x3,a[_0x3d714e(0x1eb)](u[_0x3d714e(0x2e3)])),F(0x4,a['Optional'](Ke[_0x3d714e(0x2b1)]))],exports[_0x3d714e(0x2e0)]);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x2c083a,_0x179005,_0x3a86b4,_0x527d73)=>{const _0x100918=_0x3d714e;for(var _0x7f90a=_0x527d73>0x1?void 0x0:_0x527d73?Vt(_0x179005,_0x3a86b4):_0x179005,_0x3d0bb6=_0x2c083a[_0x100918(0x2f1)]-0x1,_0x1ee588;_0x3d0bb6>=0x0;_0x3d0bb6--)(_0x1ee588=_0x2c083a[_0x3d0bb6])&&(_0x7f90a=_0x1ee588(_0x7f90a)||_0x7f90a);return _0x7f90a;},le=(_0x27c7bd,_0x4f4d93)=>(_0x491902,_0x288045)=>_0x4f4d93(_0x491902,_0x288045,_0x27c7bd);let J=class{constructor(_0x4d5aed,_0x3b03fe,_0x47cbe8){const _0x41e307=_0x3d714e;this[_0x41e307(0x279)]=_0x4d5aed,this[_0x41e307(0x2fa)]=_0x3b03fe,this[_0x41e307(0x1dc)]=_0x47cbe8;}[_0x3d714e(0x1a1)](_0x1ba9ea){const _0x30862c=_0x3d714e;this[_0x30862c(0x2a0)](_0x1ba9ea),this[_0x30862c(0x291)](_0x1ba9ea);}[_0x3d714e(0x250)](_0xd341e){const _0x3ccef8=_0x3d714e,{unitID:_0x471568}=_0xd341e,_0x22f4cc=this['_renderManagerService'][_0x3ccef8(0x25e)](_0x471568)[_0x3ccef8(0x182)](b[_0x3ccef8(0x167)]),{redoCache:_0x45f436}=_0x22f4cc[_0x3ccef8(0x2ae)]();if(_0x45f436[_0x3ccef8(0x2f1)]===0x0)return _0xd341e;let _0x20bb0b=a[_0x3ccef8(0x267)][_0x3ccef8(0xc3)](_0xd341e[_0x3ccef8(0x188)][0x0]);for(let _0x57a323=0x0;_0x57a323<_0x45f436['length'];_0x57a323++){const _0xb5cecc={'id':_0x3ccef8(0x1c8),'params':{..._0x45f436[_0x57a323]}},_0x50ad5a=this[_0x3ccef8(0x2fa)][_0x3ccef8(0x1d6)](_0x20bb0b,_0xb5cecc,!0x1);if(m[_0x3ccef8(0x183)](_0x50ad5a))throw _0x50ad5a[_0x3ccef8(0x21e)];_0x20bb0b=_0x50ad5a[_0x3ccef8(0xc6)];}return{...a['Tools'][_0x3ccef8(0xc3)](_0xd341e),'mutations':[_0x20bb0b]};}[_0x3d714e(0x2a0)](_0x3290c6){const _0xd212e9=_0x3d714e,{unitID:_0xc7e671}=_0x3290c6,_0x1f39e8=this[_0xd212e9(0x1dc)][_0xd212e9(0x25e)](_0xc7e671)['with'](b['DocIMEInputManagerService']),{undoCache:_0x3c4981,redoCache:_0x16e582}=_0x1f39e8['getUndoRedoMutationParamsCache']();if(_0x3c4981[_0xd212e9(0x2f1)]===0x0||_0x16e582['length']===0x0)return;const _0x260eec=[],_0x148bd6=[];let _0x143d8b=a[_0xd212e9(0x267)][_0xd212e9(0xc3)](_0x3290c6['mutations'][0x0]),_0x12940d=a[_0xd212e9(0x267)][_0xd212e9(0xc3)](_0x3290c6['mutations'][0x0]);for(let _0x3fa526=_0x3c4981['length']-0x1;_0x3fa526>=0x0;_0x3fa526--){const _0x363b05={'id':_0xd212e9(0x1c8),'params':{..._0x3c4981[_0x3fa526]}},_0x467f88={'id':_0xd212e9(0x1c8),'params':{..._0x16e582[_0x3fa526]}},_0x546ccd=this['_transformService']['transformMutation'](_0x143d8b,_0x363b05,!0x1),_0x593a4d=this[_0xd212e9(0x2fa)][_0xd212e9(0x1d6)](_0x12940d,_0x467f88,!0x1);if(m['isTransformMutationFailure'](_0x546ccd))throw _0x546ccd['error'];if(m[_0xd212e9(0x183)](_0x593a4d))throw _0x593a4d[_0xd212e9(0x21e)];_0x260eec['unshift'](_0x546ccd['m2Prime']['params']),_0x148bd6['unshift'](_0x593a4d[_0xd212e9(0x1b4)]['params']),_0x143d8b=_0x546ccd[_0xd212e9(0xc6)],_0x12940d=_0x593a4d[_0xd212e9(0xc6)];}_0x1f39e8['setUndoRedoMutationParamsCache']({'undoCache':_0x260eec,'redoCache':_0x148bd6});}[_0x3d714e(0x291)](_0x3c0a60){const _0x420bbe=_0x3d714e,{unitID:_0xc0e210}=_0x3c0a60,_0x3c7e85=this[_0x420bbe(0x1dc)]['getRenderById'](_0xc0e210)[_0x420bbe(0x182)](b[_0x420bbe(0x167)]),_0x58a53f=_0x3c7e85[_0x420bbe(0x2c1)]();if(_0x58a53f==null)return;const _0x1ff891=[{'id':_0x420bbe(0x1c8),'params':{'unitId':_0x3c0a60['unitID'],'actions':null,'textRanges':[_0x58a53f]}}],_0x4fa2db=this[_0x420bbe(0x2fa)][_0x420bbe(0x150)](_0x3c0a60,_0x1ff891);if(!m['isTransformMutationsWithChangesetSuccess'](_0x4fa2db))throw _0x4fa2db[_0x420bbe(0x21e)];const _0x2acecd=_0x4fa2db[_0x420bbe(0x1b4)][0x0]['params'][_0x420bbe(0x209)];Array[_0x420bbe(0x314)](_0x2acecd)&&_0x2acecd[_0x420bbe(0x2f1)]&&_0x3c7e85[_0x420bbe(0x2cc)](_0x2acecd[0x0]);}};J=Xt([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x3d714e(0x103)]),le(0x2,p[_0x3d714e(0x19b)])],J);var Gt=Object[_0x3d714e(0x294)],qt=(_0x3b2c67,_0x106b14,_0x5c27b5,_0x1af472)=>{const _0x5660f1=_0x3d714e;for(var _0x53e3dc=_0x1af472>0x1?void 0x0:_0x1af472?Gt(_0x106b14,_0x5c27b5):_0x106b14,_0x3f1b94=_0x3b2c67[_0x5660f1(0x2f1)]-0x1,_0x81036e;_0x3f1b94>=0x0;_0x3f1b94--)(_0x81036e=_0x3b2c67[_0x3f1b94])&&(_0x53e3dc=_0x81036e(_0x53e3dc)||_0x53e3dc);return _0x53e3dc;},he=(_0x22e050,_0x5700cb)=>(_0xea6641,_0x26e82e)=>_0x5700cb(_0xea6641,_0x26e82e,_0x22e050);let Z=class{constructor(_0x3aa443,_0x384124,_0x345e47){const _0x4830db=_0x3d714e;this[_0x4830db(0x279)]=_0x3aa443,this[_0x4830db(0x2fa)]=_0x384124,this[_0x4830db(0x263)]=_0x345e47;}['transformStateCache'](_0x2ca0c2){const _0x503309=_0x3d714e;this[_0x503309(0x305)](_0x2ca0c2);}[_0x3d714e(0x250)](_0xb5c1d4){const _0x5ae74d=_0x3d714e,{unitID:_0x2d9f44}=_0xb5c1d4,{collaboration:_0x1c580c}=this[_0x5ae74d(0x263)][_0x5ae74d(0x2dc)](_0x2d9f44);if(_0x1c580c[_0x5ae74d(0x2f1)]===0x0)return _0xb5c1d4;let _0x2e3845=a[_0x5ae74d(0x267)][_0x5ae74d(0xc3)](_0xb5c1d4[_0x5ae74d(0x188)][0x0]);for(let _0x3f6f30=0x0;_0x3f6f30<_0x1c580c[_0x5ae74d(0x2f1)];_0x3f6f30++){const _0x2c85da={'id':_0x5ae74d(0x1c8),'params':{'unitId':_0x1c580c[_0x3f6f30][_0x5ae74d(0x28c)],..._0x1c580c[_0x3f6f30]['redoState']}},_0x2511da=this['_transformService']['transformMutation'](_0x2e3845,_0x2c85da,!0x1);if(m[_0x5ae74d(0x183)](_0x2511da))throw _0x2511da[_0x5ae74d(0x21e)];_0x2e3845=_0x2511da[_0x5ae74d(0xc6)];}return{...a[_0x5ae74d(0x267)][_0x5ae74d(0xc3)](_0xb5c1d4),'mutations':[_0x2e3845]};}['_transformHistoryAndStateStack'](_0x2e9ba3){const _0x2c9ce4=_0x3d714e,{unitID:_0x52c3e4}=_0x2e9ba3,{history:_0x3697de,collaboration:_0x5390fc}=this[_0x2c9ce4(0x263)][_0x2c9ce4(0x2dc)](_0x52c3e4);if(_0x3697de[_0x2c9ce4(0x2f1)]===0x0&&_0x5390fc[_0x2c9ce4(0x2f1)]===0x0)return;const _0x55f0a7=[],_0x147670=[];let _0x2c0069=a['Tools'][_0x2c9ce4(0xc3)](_0x2e9ba3[_0x2c9ce4(0x188)][0x0]),_0x4fafb7=a[_0x2c9ce4(0x267)][_0x2c9ce4(0xc3)](_0x2e9ba3[_0x2c9ce4(0x188)][0x0]);for(let _0x3a62dd=_0x3697de['length']-0x1;_0x3a62dd>=0x0;_0x3a62dd--){const _0x55b087={'id':_0x2c9ce4(0x1c8),'params':{'unitId':_0x3697de[_0x3a62dd][_0x2c9ce4(0x28c)],..._0x3697de[_0x3a62dd][_0x2c9ce4(0x255)]}},_0x367d04={'id':_0x2c9ce4(0x1c8),'params':{'unitId':_0x3697de[_0x3a62dd][_0x2c9ce4(0x28c)],..._0x3697de[_0x3a62dd][_0x2c9ce4(0x236)]}},_0x3aa70b=this['_transformService'][_0x2c9ce4(0x1d6)](_0x2c0069,_0x55b087,!0x1),_0x12abbc=this[_0x2c9ce4(0x2fa)][_0x2c9ce4(0x1d6)](_0x4fafb7,_0x367d04,!0x1);if(m[_0x2c9ce4(0x183)](_0x3aa70b))throw _0x3aa70b[_0x2c9ce4(0x21e)];if(m['isTransformMutationFailure'](_0x12abbc))throw _0x12abbc['error'];_0x55f0a7[_0x2c9ce4(0x309)]({..._0x3697de[_0x3a62dd],'undoState':_0x3aa70b[_0x2c9ce4(0x1b4)][_0x2c9ce4(0x2bf)],'redoState':_0x12abbc['m2Prime'][_0x2c9ce4(0x2bf)]}),_0x2c0069=_0x3aa70b[_0x2c9ce4(0xc6)],_0x4fafb7=_0x12abbc[_0x2c9ce4(0xc6)];}_0x2c0069=a['Tools'][_0x2c9ce4(0xc3)](_0x2e9ba3['mutations'][0x0]),_0x4fafb7=a['Tools']['deepClone'](_0x2e9ba3[_0x2c9ce4(0x188)][0x0]);for(let _0x2ebdf8=_0x5390fc[_0x2c9ce4(0x2f1)]-0x1;_0x2ebdf8>=0x0;_0x2ebdf8--){const _0x48e2dc={'id':_0x2c9ce4(0x1c8),'params':{'unitId':_0x5390fc[_0x2ebdf8][_0x2c9ce4(0x28c)],..._0x5390fc[_0x2ebdf8][_0x2c9ce4(0x255)]}},_0x559eb5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5390fc[_0x2ebdf8]['unitId'],..._0x5390fc[_0x2ebdf8][_0x2c9ce4(0x236)]}},_0x3122b7=this[_0x2c9ce4(0x2fa)]['transformMutation'](_0x2c0069,_0x48e2dc,!0x1),_0x55e6c8=this[_0x2c9ce4(0x2fa)][_0x2c9ce4(0x1d6)](_0x4fafb7,_0x559eb5,!0x1);if(m[_0x2c9ce4(0x183)](_0x3122b7))throw _0x3122b7['error'];if(m[_0x2c9ce4(0x183)](_0x55e6c8))throw _0x55e6c8[_0x2c9ce4(0x21e)];_0x147670[_0x2c9ce4(0x309)]({..._0x5390fc[_0x2ebdf8],'undoState':_0x3122b7['m2Prime'][_0x2c9ce4(0x2bf)],'redoState':_0x55e6c8[_0x2c9ce4(0x1b4)][_0x2c9ce4(0x2bf)]}),_0x2c0069=_0x3122b7['m1Prime'],_0x4fafb7=_0x55e6c8[_0x2c9ce4(0xc6)];}this['_docStateChangeManagerService'][_0x2c9ce4(0x1be)](_0x52c3e4,{'history':_0x55f0a7,'collaboration':_0x147670});}};Z=qt([he(0x0,a[_0x3d714e(0x1eb)](a['Injector'])),he(0x1,m[_0x3d714e(0x103)]),he(0x2,a[_0x3d714e(0x1eb)](b[_0x3d714e(0xff)]))],Z);var Kt=Object[_0x3d714e(0x294)],zt=(_0x84bbc7,_0x1e0995,_0x30b2a0,_0x23781b)=>{const _0x2ec5b6=_0x3d714e;for(var _0x15e964=_0x23781b>0x1?void 0x0:_0x23781b?Kt(_0x1e0995,_0x30b2a0):_0x1e0995,_0x4b6001=_0x84bbc7[_0x2ec5b6(0x2f1)]-0x1,_0x2901fc;_0x4b6001>=0x0;_0x4b6001--)(_0x2901fc=_0x84bbc7[_0x4b6001])&&(_0x15e964=_0x2901fc(_0x15e964)||_0x15e964);return _0x15e964;},Me=(_0x58a2ea,_0x397406)=>(_0x475b7a,_0x22b36a)=>_0x397406(_0x475b7a,_0x22b36a,_0x58a2ea);let Q=class{constructor(_0x4bc59d,_0x5bf256){const _0x45d584=_0x3d714e;this[_0x45d584(0x279)]=_0x4bc59d,this['_transformService']=_0x5bf256;}[_0x3d714e(0xcb)](_0x43e26d){const _0x42664e=_0x3d714e;var _0x70baae;const _0x8bb655=this['_injector'][_0x42664e(0xfe)](Y['DocSelectionManagerService']),_0x36a1b5=(_0x70baae=_0x8bb655['getDocRanges']())!=null?_0x70baae:[];if(_0x36a1b5[_0x42664e(0x2f1)]===0x0)return;const _0x1cf028=_0x43e26d[_0x42664e(0x19c)],_0x33d1e7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1cf028,'actions':null,'textRanges':_0x36a1b5}}],_0x54984f=this['_transformService'][_0x42664e(0x150)](_0x43e26d,_0x33d1e7);if(!m[_0x42664e(0x2c0)](_0x54984f))throw _0x54984f[_0x42664e(0x21e)];const _0x3dc09b=_0x54984f[_0x42664e(0x1b4)][0x0][_0x42664e(0x2bf)][_0x42664e(0x209)];Array[_0x42664e(0x314)](_0x3dc09b)&&_0x3dc09b[_0x42664e(0x2f1)]&&_0x8bb655[_0x42664e(0x168)](_0x3dc09b,{'unitId':_0x1cf028,'subUnitId':_0x1cf028},!0x1);}};Q=zt([Me(0x0,a[_0x3d714e(0x1eb)](a[_0x3d714e(0x2d7)])),Me(0x1,m[_0x3d714e(0x103)])],Q);var Jt=Object[_0x3d714e(0x294)],Zt=(_0x341845,_0x2ab4b8,_0x3c4b52,_0x668e1f)=>{for(var _0x20ab31=_0x668e1f>0x1?void 0x0:_0x668e1f?Jt(_0x2ab4b8,_0x3c4b52):_0x2ab4b8,_0x474274=_0x341845['length']-0x1,_0x150003;_0x474274>=0x0;_0x474274--)(_0x150003=_0x341845[_0x474274])&&(_0x20ab31=_0x150003(_0x20ab31)||_0x20ab31);return _0x20ab31;},N=(_0xa3c392,_0x1e63b0)=>(_0x27d555,_0x483601)=>_0x1e63b0(_0x27d555,_0x483601,_0xa3c392);let ee=class extends a['Disposable']{constructor(_0x43c4d2,_0x587e72,_0x101663,_0x35852a,_0x2b0d45,_0x4ada80,_0x127ed1,_0x4f0a86){const _0x30258a=_0x3d714e;super(),h(this,_0x30258a(0x225),new d[(_0x30258a(0x153))](u[_0x30258a(0x2a9)]['NOT_COLLAB'])),(this[_0x30258a(0x263)]=_0x43c4d2,this[_0x30258a(0x347)]=_0x587e72,this[_0x30258a(0x34a)]=_0x101663,this[_0x30258a(0x17f)]=_0x35852a,this[_0x30258a(0x323)]=_0x2b0d45,this[_0x30258a(0x2ba)]=_0x4ada80,this[_0x30258a(0x110)]=_0x127ed1,this['_localeService']=_0x4f0a86,this[_0x30258a(0xda)]());}[_0x3d714e(0xda)](){const _0x20fb34=_0x3d714e;this[_0x20fb34(0x1de)](this[_0x20fb34(0x347)][_0x20fb34(0x257)]['subscribe'](_0x38a327=>{const _0x327486=_0x20fb34,_0x1efdd3=this[_0x327486(0x263)]['docStateChange$'][_0x327486(0x1ad)](_0x10a597=>{const _0xbdfd25=_0x327486;if(_0x10a597==null)return;const {unitId:_0xebb4df,redoState:_0x42b623,commandId:_0x296e92}=_0x10a597;if(_0xebb4df!==_0x38a327[_0xbdfd25(0x19c)])return;const _0xa579e4={'id':_0x296e92,'type':a[_0xbdfd25(0x11b)][_0xbdfd25(0x1e5)],'params':{'unitId':_0xebb4df,'actions':_0x42b623['actions'],'textRanges':null}};_0x38a327['onLocalMutation'](_0xa579e4);});if(_0x38a327[_0x327486(0x1de)](_0x1efdd3),_0x38a327 instanceof u[_0x327486(0xfd)]){const _0x5e757d={'onTransformIME':_0x5ae300=>this['_docTransformIMECacheService'][_0x327486(0x1a1)](_0x5ae300),'onTransformState':_0xa7daca=>this['_docTransformStateCacheService'][_0x327486(0x2c8)](_0xa7daca),'onTransformSelections':_0x5958f9=>this['_docTransformSelectionsService']['transformSelections'](_0x5958f9),'onSyncEditingCollabCursor':_0x593f87=>this['_docSyncEditingCollabCursorService'][_0x327486(0x244)](_0x593f87),'onTransformRemoteChangesetByIMECache':_0x36a180=>this['_docTransformIMECacheService'][_0x327486(0x250)](_0x36a180),'onTransformRemoteChangesetByStateCache':_0x304588=>this[_0x327486(0x17f)][_0x327486(0x250)](_0x304588)};_0x38a327['addHandlerCallback'](_0x5e757d);}}));}};ee=Zt([N(0x0,a[_0x3d714e(0x1eb)](b[_0x3d714e(0xff)])),N(0x1,a[_0x3d714e(0x1eb)](u[_0x3d714e(0x161)])),N(0x2,a[_0x3d714e(0x1eb)](J)),N(0x3,a[_0x3d714e(0x1eb)](Z)),N(0x4,a[_0x3d714e(0x1eb)](Q)),N(0x5,a[_0x3d714e(0x1eb)](pe)),N(0x6,R['IMessageService']),N(0x7,a[_0x3d714e(0x1eb)](a['LocaleService']))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x1c6107,_0x37d805,_0x52d781,_0x478e81)=>{for(var _0x3ca8bd=_0x478e81>0x1?void 0x0:_0x478e81?Qt(_0x37d805,_0x52d781):_0x37d805,_0x2e969b=_0x1c6107['length']-0x1,_0x4f8918;_0x2e969b>=0x0;_0x2e969b--)(_0x4f8918=_0x1c6107[_0x2e969b])&&(_0x3ca8bd=_0x4f8918(_0x3ca8bd)||_0x3ca8bd);return _0x3ca8bd;},_e=(_0x302407,_0x56b7b5)=>(_0xc4dcb9,_0x10f869)=>_0x56b7b5(_0xc4dcb9,_0x10f869,_0x302407);let me=class extends a[_0x3d714e(0x321)]{constructor(_0x13e4a4,_0x5e4e93,_0x28d2cf){const _0x3dea86=_0x3d714e;super(),h(this,_0x3dea86(0xd8),new Map()),h(this,_0x3dea86(0x1a9),new Map()),h(this,'_disabled',!0x1),(this[_0x3dea86(0x283)]=_0x13e4a4,this[_0x3dea86(0x1fc)]=_0x5e4e93,this[_0x3dea86(0x16a)]=_0x28d2cf);}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x3d714e(0x297)](){const _0x2d0090=_0x3d714e;return this[_0x2d0090(0x1a9)];}['dispose'](){const _0x3f61b2=_0x3d714e;this[_0x3f61b2(0x281)]()[_0x3f61b2(0xed)](()=>super[_0x3f61b2(0x237)]());}async['loadOfflineData'](_0x21c578){const _0x232e5d=_0x3d714e;return this['_disabled']?null:this[_0x232e5d(0x1fc)][_0x232e5d(0x325)](u[_0x232e5d(0x2ac)](_0x21c578));}async['saveOfflineData'](_0x528bce,_0x359fb1){const _0x16c6f8=_0x3d714e;return!!this['_localStorageService'][_0x16c6f8(0x2fd)](_0x528bce,_0x359fb1);}[_0x3d714e(0x22a)](_0x171830,_0x292ef4,_0x185752,_0x79899e){const _0x879b0=_0x3d714e,_0x56f173=this['_revisionService'][_0x879b0(0x216)](_0x171830);this[_0x879b0(0xd8)][_0x879b0(0x203)](_0x171830,{'unitID':_0x171830,'type':_0x292ef4,'awaitingChangeset':_0x185752,'mutations':_0x79899e,'rev':_0x56f173}),this[_0x879b0(0x1a9)][_0x879b0(0x310)](_0x171830)||this[_0x879b0(0x1a6)](_0x171830);}['_scheduleSaving'](_0x12aa0d){const _0x2076b4=_0x3d714e,_0x1eafa7=this['_getSaveTimeout']();_0x1eafa7===0x0?this[_0x2076b4(0x25d)](_0x12aa0d):this[_0x2076b4(0x1a9)][_0x2076b4(0x203)](_0x12aa0d,setTimeout(()=>this[_0x2076b4(0x25d)](_0x12aa0d),_0x1eafa7));}[_0x3d714e(0x11c)](){const _0x4a68ea=_0x3d714e;var _0x3accc3;return(_0x3accc3=this[_0x4a68ea(0x283)][_0x4a68ea(0x2b8)](u[_0x4a68ea(0x34d)]))!=null?_0x3accc3:u[_0x4a68ea(0x29d)];}[_0x3d714e(0x25d)](_0x3b8747){const _0x247586=_0x3d714e,_0x32dea9=this[_0x247586(0x1a9)][_0x247586(0xfe)](_0x3b8747);return _0x32dea9!==void 0x0&&window[_0x247586(0x227)](_0x32dea9),this['_localStorageService'][_0x247586(0x2fd)](u[_0x247586(0x2ac)](_0x3b8747),this['_cachedData'][_0x247586(0xfe)](_0x3b8747))[_0x247586(0xed)](()=>this[_0x247586(0x1a9)][_0x247586(0x147)](_0x3b8747));}async[_0x3d714e(0x281)](){const _0x222246=_0x3d714e,_0x1493a4=[];this[_0x222246(0x1a9)]['forEach']((_0x21272e,_0x417a48)=>{const _0x157906=_0x222246;window['clearTimeout'](_0x21272e),_0x1493a4[_0x157906(0xe8)](this['_saveCache'](_0x417a48)['then'](()=>{const _0x59dbd1=_0x157906;this[_0x59dbd1(0x1a9)][_0x59dbd1(0x147)](_0x417a48);}));}),await Promise[_0x222246(0x2c4)](_0x1493a4);}};me=es([_e(0x0,a[_0x3d714e(0x131)]),_e(0x1,a[_0x3d714e(0x2ea)]),_e(0x2,a[_0x3d714e(0x1eb)](m[_0x3d714e(0x155)]))],me);class ke extends a['RxDisposable']{constructor(){const _0x5cac68=_0x3d714e;super(),h(this,'urlChange$'),this[_0x5cac68(0xde)]=d[_0x5cac68(0x215)](window,'popstate')['pipe'](d['takeUntil'](this[_0x5cac68(0xeb)]),d[_0x5cac68(0x31f)](0x1),d[_0x5cac68(0x248)](void 0x0));}[_0x3d714e(0x184)](_0x238582,_0x3877db,_0x55dfe0=!0x1){const _0x3579b1=_0x3d714e,_0x57694b=new URL(window[_0x3579b1(0x11e)]['href']);_0x57694b[_0x3579b1(0x2d3)][_0x3579b1(0x203)](_0x238582,_0x3877db),_0x55dfe0?window['history'][_0x3579b1(0x252)]('','',_0x57694b[_0x3579b1(0x232)]()):window[_0x3579b1(0x107)][_0x3579b1(0x2b5)]('','',_0x57694b[_0x3579b1(0x232)]());}[_0x3d714e(0x1d2)](_0x57da3c,_0x40448c=!0x1){const _0x4541f2=_0x3d714e,_0xf3dbea=new URL(window['location']['href']);_0xf3dbea[_0x4541f2(0x2d3)]['delete'](_0x57da3c),_0x40448c?window[_0x4541f2(0x107)]['replaceState']('','',_0xf3dbea[_0x4541f2(0x232)]()):window['history']['pushState']('','',_0xf3dbea['toString']());}['getParam'](_0x577980){const _0x1c13cf=_0x3d714e;var _0x467230;return(_0x467230=new URL(window['location']['href'])[_0x1c13cf(0x2d3)][_0x1c13cf(0xfe)](_0x577980))!=null?_0x467230:void 0x0;}}var ts=Object['defineProperty'],ss=Object[_0x3d714e(0x294)],ns=(_0x551c15,_0x2edaeb,_0x12a169)=>_0x2edaeb in _0x551c15?ts(_0x551c15,_0x2edaeb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12a169}):_0x551c15[_0x2edaeb]=_0x12a169,is=(_0x20a01c,_0x1e567f,_0x2a885a,_0x340b16)=>{const _0x29aba4=_0x3d714e;for(var _0x11ff24=_0x340b16>0x1?void 0x0:_0x340b16?ss(_0x1e567f,_0x2a885a):_0x1e567f,_0x4d645a=_0x20a01c[_0x29aba4(0x2f1)]-0x1,_0x131710;_0x4d645a>=0x0;_0x4d645a--)(_0x131710=_0x20a01c[_0x4d645a])&&(_0x11ff24=_0x131710(_0x11ff24)||_0x11ff24);return _0x11ff24;},ue=(_0x347a33,_0xaeff71)=>(_0x265f5f,_0x159747)=>_0xaeff71(_0x265f5f,_0x159747,_0x347a33),rs=(_0x5f3158,_0x33977a,_0xe7dfac)=>ns(_0x5f3158,_0x33977a+'',_0xe7dfac);const os=_0x3d714e(0x15d);exports[_0x3d714e(0xf5)]=class extends a[_0x3d714e(0x336)]{constructor(_0x3cac8a=Ne,_0x110f3a,_0x365695,_0x19ceb6){const _0x1d25b1=_0x3d714e;super(),this[_0x1d25b1(0x140)]=_0x3cac8a,this['_renderManagerService']=_0x110f3a,this['_injector']=_0x365695,this[_0x1d25b1(0x283)]=_0x19ceb6;const {..._0xf09b37}=a[_0x1d25b1(0x228)]({},Ne,this[_0x1d25b1(0x140)]);this[_0x1d25b1(0x283)][_0x1d25b1(0x221)](Ft,_0xf09b37);}['onStarting'](){const _0x118d85=_0x3d714e;this[_0x118d85(0x162)](),this[_0x118d85(0x213)]();}[_0x3d714e(0x18f)](){this['_registerRenderDependencies']();}[_0x3d714e(0x162)](){const _0x18ccc1=_0x3d714e;var _0x3565be;const _0x55af61=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x18ccc1(0xf9)],{'useClass':q[_0x18ccc1(0x24e)]}],[u[_0x18ccc1(0x299)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x18ccc1(0x2e0)]]];a[_0x18ccc1(0x27f)](this[_0x18ccc1(0x279)],a[_0x18ccc1(0x2d8)](_0x55af61,(_0x3565be=this[_0x18ccc1(0x140)])==null?void 0x0:_0x3565be[_0x18ccc1(0x1da)]));}[_0x3d714e(0x27a)](){const _0x33f447=_0x3d714e;this[_0x33f447(0x1de)](this[_0x33f447(0x1dc)][_0x33f447(0x26d)](a['UniverInstanceType']['UNIVER_DOC'],[ve])),this['disposeWithMe'](this[_0x33f447(0x1dc)][_0x33f447(0x26d)](a[_0x33f447(0x112)][_0x33f447(0xd7)],[ge]));}[_0x3d714e(0x213)](){const _0x15a886=_0x3d714e;a[_0x15a886(0x195)](this[_0x15a886(0x279)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x15a886(0x2e0)]]]);}},rs(exports[_0x3d714e(0xf5)],_0x3d714e(0x23e),os),exports[_0x3d714e(0xf5)]=is([a[_0x3d714e(0x332)](u[_0x3d714e(0x31a)]),ue(0x1,p[_0x3d714e(0x19b)]),ue(0x2,a[_0x3d714e(0x1eb)](a[_0x3d714e(0x2d7)])),ue(0x3,a[_0x3d714e(0x131)])],exports[_0x3d714e(0xf5)]);function _0x2f33(_0x392de3,_0x4e8fa3){const _0x4e6bfe=_0x4e6b();return _0x2f33=function(_0x2f338a,_0x596519){_0x2f338a=_0x2f338a-0xc3;let _0x1ae8a3=_0x4e6bfe[_0x2f338a];return _0x1ae8a3;},_0x2f33(_0x392de3,_0x4e8fa3);}var as=Object[_0x3d714e(0x294)],cs=(_0x1c7055,_0x500cb3,_0x211b99,_0x43383b)=>{const _0xce29ca=_0x3d714e;for(var _0xfa797b=_0x43383b>0x1?void 0x0:_0x43383b?as(_0x500cb3,_0x211b99):_0x500cb3,_0x2eb3d7=_0x1c7055[_0xce29ca(0x2f1)]-0x1,_0x1a268d;_0x2eb3d7>=0x0;_0x2eb3d7--)(_0x1a268d=_0x1c7055[_0x2eb3d7])&&(_0xfa797b=_0x1a268d(_0xfa797b)||_0xfa797b);return _0xfa797b;},W=(_0x4bfb69,_0x12bf0f)=>(_0x4080ca,_0x1bae8b)=>_0x12bf0f(_0x4080ca,_0x1bae8b,_0x4bfb69);exports[_0x3d714e(0x1b8)]=class extends u[_0x3d714e(0x169)]{constructor(_0x17b532,_0x2ccad5,_0x1ca0c2,_0x1358ec,_0x32dfcd){super(_0x17b532,_0x2ccad5,_0x1ca0c2,_0x1358ec,_0x32dfcd);}async[_0x3d714e(0x158)](_0x4c8772){const _0x2c8cf8=_0x3d714e,_0x54d7b0=await this[_0x2c8cf8(0x197)](),_0x5753ad=this[_0x2c8cf8(0x30d)](_0x4c8772,_0x54d7b0);return this[_0x2c8cf8(0x293)](_0x5753ad);}[_0x3d714e(0x30d)](_0xaa7055,_0xa0e724){const _0x44eec2=_0x3d714e,_0x4498f8=typeof window>'u'?new URL(_0xaa7055):new URL(_0xaa7055,window['location'][_0x44eec2(0x137)]);_0x4498f8[_0x44eec2(0x2d3)][_0x44eec2(0x203)](_0x44eec2(0x1c5),_0xa0e724);const _0x453354=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x44eec2(0x24b)]);return _0x453354[_0x44eec2(0xfe)](_0x44eec2(0x160))&&_0x4498f8[_0x44eec2(0x2d3)][_0x44eec2(0x203)](_0x44eec2(0x160),_0x453354['get'](_0x44eec2(0x160))),_0x4498f8['toString']();}async[_0x3d714e(0x197)](){const _0x31a6a3=_0x3d714e;var _0x3fac42,_0x288178,_0x5eedc4;const _0xde1b43=this['_configService'][_0x31a6a3(0x2b8)](u[_0x31a6a3(0xe5)]),_0x17ac9b=(_0x3fac42=_0xde1b43==null?void 0x0:_0xde1b43[_0x31a6a3(0x27d)])!=null?_0x3fac42:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x5eedc4=(_0x288178=(await this[_0x31a6a3(0xee)][_0x31a6a3(0xfe)](_0x17ac9b,{'headers':{'Content-Type':_0x31a6a3(0x339)}}))['body'])==null?void 0x0:_0x288178['ticket'])!=null?_0x5eedc4:'';}},exports[_0x3d714e(0x1b8)]=cs([W(0x0,a[_0x3d714e(0x1eb)](a['Injector'])),W(0x1,a[_0x3d714e(0x1eb)](q[_0x3d714e(0xdf)])),W(0x2,a[_0x3d714e(0x131)]),W(0x3,a[_0x3d714e(0x178)]),W(0x4,m[_0x3d714e(0xe4)])],exports['BrowserCollaborationSocketService']);const Pe=0x7530,we=_0x3d714e(0x1c3);class ls extends a[_0x3d714e(0x321)]{constructor(){const _0x48fa34=_0x3d714e;super(),h(this,'_id',a[_0x48fa34(0x14e)]()),h(this,_0x48fa34(0x1e8),new Set()),h(this,_0x48fa34(0x217),new Map()),h(this,_0x48fa34(0x2a1),null),h(this,_0x48fa34(0xea),new Map()),h(this,_0x48fa34(0x254),new Map()),this[_0x48fa34(0x149)]();}['dispose'](){const _0x4b710f=_0x3d714e;super[_0x4b710f(0x237)](),this[_0x4b710f(0xea)][_0x4b710f(0x202)]((_0x4900e6,_0x52d079)=>this[_0x4b710f(0x1f8)](_0x52d079)),this[_0x4b710f(0x2a1)]&&window['clearInterval'](this[_0x4b710f(0x2a1)]);}['getUnitStatus$'](_0x36d07a){const _0x1436fa=_0x3d714e;return this['_ensureSubject'](_0x36d07a)[_0x1436fa(0x30a)](d[_0x1436fa(0x246)]());}[_0x3d714e(0x104)](_0x51656c){const _0x343577=_0x3d714e;this[_0x343577(0x1e8)][_0x343577(0xf4)]===0x0&&this[_0x343577(0x343)](),this['_selfUnitIDs'][_0x343577(0x196)](_0x51656c),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x51656c],'isForwarded':!0x1});}[_0x3d714e(0x12c)](_0x2d671f){const _0x24afc2=_0x3d714e;this['_selfUnitIDs'][_0x24afc2(0x147)](_0x2d671f),this['_selfUnitIDs'][_0x24afc2(0xf4)]===0x0&&this[_0x24afc2(0x2a1)]&&window[_0x24afc2(0x287)](this[_0x24afc2(0x2a1)]);}[_0x3d714e(0x149)](){const _0x25f05b=_0x3d714e;this[_0x25f05b(0x1de)](a[_0x25f05b(0x239)](d['fromEvent'](window,_0x25f05b(0x31d))[_0x25f05b(0x1ad)](_0x1da9e5=>{const _0x267a27=_0x25f05b;if(_0x1da9e5['key']!==we||!_0x1da9e5['newValue'])return;const _0x3ea05c=JSON[_0x267a27(0x136)](_0x1da9e5['newValue']);this[_0x267a27(0x201)](_0x3ea05c);}))),window[_0x25f05b(0x13c)](_0x25f05b(0x313),()=>this['_send']({'type':0x1,'memberID':this[_0x25f05b(0x15a)],'unitIDs':Array['from'](this[_0x25f05b(0x1e8)])}));}['_handleEvent'](_0x55505e){const _0x2c8123=_0x3d714e;switch(_0x55505e[_0x2c8123(0x2b4)]){case 0x0:this[_0x2c8123(0x229)](_0x55505e);break;case 0x1:this[_0x2c8123(0x152)](_0x55505e);break;case 0x2:this[_0x2c8123(0x2b9)](_0x55505e);break;}}['_handleJoinEvent'](_0x1ad83b){const _0x420b25=_0x3d714e,{unitIDs:_0x5c664c,memberID:_0x31d92f,isForwarded:_0x18f281}=_0x1ad83b;_0x5c664c['forEach'](_0x2fa51e=>{const _0x7b1b5b=_0x2f33;if(!_0x18f281&&this[_0x7b1b5b(0x217)][_0x7b1b5b(0x310)](_0x2fa51e)&&this[_0x7b1b5b(0x29f)](_0x2fa51e)[_0x7b1b5b(0x2f0)](u[_0x7b1b5b(0x17e)][_0x7b1b5b(0x1a2)]),!this[_0x7b1b5b(0x217)][_0x7b1b5b(0x310)](_0x2fa51e)||!this[_0x7b1b5b(0x217)][_0x7b1b5b(0xfe)](_0x2fa51e)[_0x7b1b5b(0x310)](_0x31d92f)){const _0x466e6b=this[_0x7b1b5b(0x217)]['get'](_0x2fa51e)||new Set();_0x466e6b[_0x7b1b5b(0x196)](_0x31d92f),this['_unitOnClients']['set'](_0x2fa51e,_0x466e6b),this[_0x7b1b5b(0xc4)](_0x31d92f);}}),_0x18f281||this[_0x420b25(0x123)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x420b25(0x1e8)]],'isForwarded':!0x0});}[_0x3d714e(0xc4)](_0x55184a){const _0x46cacf=_0x3d714e;this[_0x46cacf(0x1f8)](_0x55184a);const _0xeab09f=window[_0x46cacf(0x208)](()=>{const _0x1c2cd8=_0x46cacf;this['_unitOnClients'][_0x1c2cd8(0x202)](_0x3b7092=>{const _0x23b2aa=_0x1c2cd8;_0x3b7092[_0x23b2aa(0x147)](_0x55184a);});},Pe*0x2);this[_0x46cacf(0xea)][_0x46cacf(0x203)](_0x55184a,_0xeab09f);}[_0x3d714e(0x1f8)](_0x28d605){const _0x2222a7=_0x3d714e;if(this['_clearOtherTimers'][_0x2222a7(0x310)](_0x28d605)){const _0x85ff4=this[_0x2222a7(0xea)][_0x2222a7(0xfe)](_0x28d605);_0x85ff4&&window[_0x2222a7(0x227)](_0x85ff4),this['_clearOtherTimers'][_0x2222a7(0x203)](_0x28d605,null);}}[_0x3d714e(0x152)](_0x1f5f03){const _0x2b3e2d=_0x3d714e,{memberID:_0x4948ad,unitIDs:_0x420ab1}=_0x1f5f03;_0x420ab1[_0x2b3e2d(0x202)](_0x381a27=>{const _0x37d9da=_0x2b3e2d;var _0x21cc6d;const _0x90b59d=this[_0x37d9da(0x217)]['get'](_0x381a27);_0x90b59d&&(_0x90b59d[_0x37d9da(0x147)](_0x4948ad),(_0x21cc6d=this[_0x37d9da(0x29f)](_0x381a27))==null||_0x21cc6d[_0x37d9da(0x2f0)](_0x90b59d[_0x37d9da(0xf4)]===0x0?u[_0x37d9da(0x17e)][_0x37d9da(0x2f4)]:u[_0x37d9da(0x17e)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x4948ad);}['_handleHeartbeatEvent'](_0x47cc3c){const _0x41a084=_0x3d714e;this[_0x41a084(0xc4)](_0x47cc3c['memberID']);}[_0x3d714e(0x123)](_0x234447){const _0x1f7ceb=_0x3d714e;localStorage[_0x1f7ceb(0x2fd)](we,JSON[_0x1f7ceb(0x278)](_0x234447));}['_scheduleHeartbeat'](){const _0x494c8d=_0x3d714e;this[_0x494c8d(0x2a1)]=window[_0x494c8d(0x275)](()=>{const _0x585c68=_0x494c8d;this[_0x585c68(0x123)]({'type':0x2,'memberID':this[_0x585c68(0x15a)]});},Pe);}[_0x3d714e(0x29f)](_0x478bf9){const _0x4b2149=_0x3d714e;return this[_0x4b2149(0x254)][_0x4b2149(0x310)](_0x478bf9)||this[_0x4b2149(0x254)][_0x4b2149(0x203)](_0x478bf9,new d[(_0x4b2149(0x153))](u[_0x4b2149(0x17e)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x4b2149(0xfe)](_0x478bf9);}}var Be=(_0x15ad3b=>(_0x15ad3b[_0x15ad3b[_0x3d714e(0x176)]=0x0]=_0x3d714e(0x176),_0x15ad3b[_0x15ad3b['OK']=0x1]='OK',_0x15ad3b[_0x15ad3b[_0x3d714e(0x173)]=0x2]=_0x3d714e(0x173),_0x15ad3b[_0x15ad3b[_0x3d714e(0x326)]=0x3]=_0x3d714e(0x326),_0x15ad3b[_0x15ad3b[_0x3d714e(0x21a)]=0x4]=_0x3d714e(0x21a),_0x15ad3b[_0x15ad3b[_0x3d714e(0x16c)]=0x5]=_0x3d714e(0x16c),_0x15ad3b[_0x15ad3b[_0x3d714e(0x166)]=0x6]=_0x3d714e(0x166),_0x15ad3b[_0x15ad3b[_0x3d714e(0x31e)]=0x7]=_0x3d714e(0x31e),_0x15ad3b[_0x15ad3b[_0x3d714e(0x2bb)]=0x8]=_0x3d714e(0x2bb),_0x15ad3b[_0x15ad3b['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x15ad3b[_0x15ad3b[_0x3d714e(0x33d)]=0xa]=_0x3d714e(0x33d),_0x15ad3b[_0x15ad3b[_0x3d714e(0x344)]=0x1389]=_0x3d714e(0x344),_0x15ad3b[_0x15ad3b[_0x3d714e(0x2bd)]=0x1771]=_0x3d714e(0x2bd),_0x15ad3b[_0x15ad3b[_0x3d714e(0x29a)]=0x1772]=_0x3d714e(0x29a),_0x15ad3b[_0x15ad3b[_0x3d714e(0x156)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x15ad3b[_0x15ad3b[_0x3d714e(0x151)]=0x1b59]=_0x3d714e(0x151),_0x15ad3b[_0x15ad3b[_0x3d714e(0x1ed)]=0x1b5a]=_0x3d714e(0x1ed),_0x15ad3b[_0x15ad3b[_0x3d714e(0x31b)]=0x1b5b]=_0x3d714e(0x31b),_0x15ad3b[_0x15ad3b[_0x3d714e(0xe3)]=0x1b5c]=_0x3d714e(0xe3),_0x15ad3b[_0x15ad3b[_0x3d714e(0x181)]=0x1b5d]=_0x3d714e(0x181),_0x15ad3b[_0x15ad3b[_0x3d714e(0x219)]=0x1f41]=_0x3d714e(0x219),_0x15ad3b[_0x15ad3b[_0x3d714e(0x148)]=0x2329]=_0x3d714e(0x148),_0x15ad3b[_0x15ad3b[_0x3d714e(0x34e)]=0x232a]=_0x3d714e(0x34e),_0x15ad3b[_0x15ad3b[_0x3d714e(0x207)]=0x232b]=_0x3d714e(0x207),_0x15ad3b[_0x15ad3b[_0x3d714e(0x1a7)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x15ad3b[_0x15ad3b[_0x3d714e(0x18b)]=0x232d]=_0x3d714e(0x18b),_0x15ad3b[_0x15ad3b[_0x3d714e(0x108)]=0x2711]=_0x3d714e(0x108),_0x15ad3b[_0x15ad3b[_0x3d714e(0x28d)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x15ad3b[_0x15ad3b[_0x3d714e(0x1d9)]=0x2713]=_0x3d714e(0x1d9),_0x15ad3b[_0x15ad3b[_0x3d714e(0x311)]=0x2714]=_0x3d714e(0x311),_0x15ad3b[_0x15ad3b[_0x3d714e(0x1a4)]=0x2af9]=_0x3d714e(0x1a4),_0x15ad3b[_0x15ad3b[_0x3d714e(0x1dd)]=0x2ee1]=_0x3d714e(0x1dd),_0x15ad3b[_0x15ad3b[_0x3d714e(0x2e7)]=0x2ee2]=_0x3d714e(0x2e7),_0x15ad3b[_0x15ad3b[_0x3d714e(0x240)]=0x2ee3]=_0x3d714e(0x240),_0x15ad3b[_0x15ad3b[_0x3d714e(0x1c6)]=0x2ee4]=_0x3d714e(0x1c6),_0x15ad3b[_0x15ad3b['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x3d714e(0xd9),_0x15ad3b[_0x15ad3b[_0x3d714e(0xcc)]=-0x1]=_0x3d714e(0xcc),_0x15ad3b))(Be||{}),hs=Object[_0x3d714e(0x294)],_s=(_0x539708,_0x540e64,_0x5d0db6,_0x3ce37c)=>{const _0x516b30=_0x3d714e;for(var _0xe706d9=_0x3ce37c>0x1?void 0x0:_0x3ce37c?hs(_0x540e64,_0x5d0db6):_0x540e64,_0x52ee6f=_0x539708[_0x516b30(0x2f1)]-0x1,_0x456172;_0x52ee6f>=0x0;_0x52ee6f--)(_0x456172=_0x539708[_0x52ee6f])&&(_0xe706d9=_0x456172(_0xe706d9)||_0xe706d9);return _0xe706d9;},de=(_0x56b807,_0x1a92a4)=>(_0x210ae0,_0x299582)=>_0x1a92a4(_0x210ae0,_0x299582,_0x56b807);exports['RemoteUniscriptService']=class extends a[_0x3d714e(0x321)]{constructor(_0x3bc81a,_0xbddf93,_0x322ede){const _0x4105ea=_0x3d714e;super(),this[_0x4105ea(0x206)]=_0x3bc81a,this['_httpService']=_0xbddf93,this['_configService']=_0x322ede;}async[_0x3d714e(0x1fd)](_0x15e4b8,_0x557602,_0x416684,..._0x5ac2e3){const _0x2fa6a2=_0x3d714e;var _0x1daa29,_0x19e745,_0x20c34a,_0x2f6182;const _0x221af2=this[_0x2fa6a2(0x206)][_0x2fa6a2(0x2d2)]();if(!_0x221af2)throw new Error(_0x2fa6a2(0x33a));const _0x1d40e7=((_0x1daa29=this['_configService'][_0x2fa6a2(0x2b8)](u[_0x2fa6a2(0x125)]))!=null?_0x1daa29:u[_0x2fa6a2(0x226)])+'/'+_0x15e4b8+'/run/'+_0x557602,_0x27fd4b=new URL(window[_0x2fa6a2(0x11e)]['href']),_0x515743={'scriptId':_0x15e4b8,'runId':(_0x19e745=_0x27fd4b[_0x2fa6a2(0x2d3)][_0x2fa6a2(0xfe)](_0x2fa6a2(0x160)))!=null?_0x19e745:'','function':_0x557602,'unitId':_0x221af2[_0x2fa6a2(0x180)](),'argsOfFunction':JSON['stringify'](_0x5ac2e3),'invokeId':(_0x20c34a=_0x416684['invokeId'])!=null?_0x20c34a:'','executionId':(_0x2f6182=_0x416684[_0x2fa6a2(0xdc)])!=null?_0x2f6182:''};try{const _0x4e0b27=await this['_httpService']['post'](_0x1d40e7,{'body':_0x515743});return _0x4e0b27[_0x2fa6a2(0x224)][_0x2fa6a2(0x21e)]&&_0x4e0b27[_0x2fa6a2(0x224)]['error'][_0x2fa6a2(0x1f4)]!==Be['OK']?_0x2fa6a2(0x1b0):_0x4e0b27[_0x2fa6a2(0x224)][_0x2fa6a2(0x2b6)];}catch{return _0x2fa6a2(0x1b0);}}},exports[_0x3d714e(0xd6)]=_s([de(0x0,a[_0x3d714e(0x27e)]),de(0x1,a[_0x3d714e(0x1eb)](q['HTTPService'])),de(0x2,a[_0x3d714e(0x131)])],exports[_0x3d714e(0xd6)]),exports['CollaborationStatusDisplay']=je,exports[_0x3d714e(0x2ab)]=Ee,exports['SheetCollabCursorShape']=Ae,exports[_0x3d714e(0x1bb)]=ls,exports[_0x3d714e(0x2d4)]=ke;function _0x4e6b(){const _0x28ac0f=['_handleEvent','forEach','set','@univerjs/rpc','handleIRemoveRow','_instanceService','LICENSE_IMPORT_SIZE_EXCEEDED','setTimeout','textRanges','string','#fff','FromArray','104052GTtubM','MessageType','CONFLICT','on-line-single','DOC_RANGE_TYPE','imageSourceType','_initDependencies','getSheetObject','fromEvent','getCurrentRevOfUnit','_unitOnClients','getRangePointData','CONNECTOR_DATA_TOO_LARGE','NOT_FOUND','includes','_range','rxjs/operators','error','_updateLocalCursor','getMergeData','setConfig','_collaborationUIEventService','USERS_LEAVE','body','_status$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','clearTimeout','merge','_handleJoinEvent','updateOfflineData','assign','NodePositionConvertToRectRange','getUnhiddenWorksheets','_localCacheService','endRow','cursorInfo$','DocSelectionManagerService','toString','Workbook','throttleTime','UniverIcon','redoState','dispose','UPDATE_CURSOR','toDisposable','_drawRectRange','split','_univerInstanceService','indexOf','pluginName','InsertColCommandId','INVITE_CODE_REQUIRED','subscribeEvent','[CollaborationDataLoaderController]','tag','syncEditingCollabCursor','evenodd','distinctUntilChanged','_localeService','mapTo','column','engine','search','createIdentifier','@univerjs/network','WebSocketService','_updateSubUnitFromURLParams','transformRemoteChangeset','_themeService','replaceState','EffectRefRangId','_unitStatus','undoState','_removeCollabCursors','entityInit$','_drawAnchor','online','RECT','from','RichTextEditingMutation','_saveCache','getRenderById','ThemeService','SetTextSelectionsOperation','concat','flatMap','_docStateChangeManagerService','roomMembers','_hovered','cursorInfo','Tools','url(#on-line-single_clip0_910_349)','_lastPointer','collab-client.tooltip.reconnect','_onCursorUpdate','getAncestorScale','registerRenderModule','Error','displayName','complete','CLOSE_ROOM','onTransformChange$','saveImage','toRgbString','setInterval','SheetSkeletonManagerService','loadUnit','stringify','_injector','_registerRenderDependencies','combineLatest','_cursor','wsSessionTicketUrl','IUniverInstanceService','registerDependencies','_docSkeletonManagerService','exhaustSavingTask','SetWorksheetActivateCommand','_configService','filter','random','on-line-single_clip0_910_349','clearInterval','moveTo','_refreshCollabCursors','getTypeOfUnitDisposed$','data','unitId','YUUMI_URL_COL_OUT_OF_RANGE','_eventUnsubscribe','IDocClipboardService','drawWith','_transformPreviousActiveRange','_textBubble','_doCreateSocket','getOwnPropertyDescriptor','resize','_initResize','saveTaskMap','switchMap','ILocalCacheService','SNAPSHOT_HAS_BEEN_REMOVED','LocaleService','collabStatus.conflict','LOCAL_CACHE_INTERVAL','InsertRangeMoveRightCommandId','_ensureSubject','_transformUndoRedoStack','_heartbeatTimer','univerjs-icon\x20univerjs-icon-','MemberService','NOT_COLLAB','getSheetBySheetId','some','runRefRangeMutations','restore','CollaborationStatus','handleMoveRange','IURLService','getLocalCacheKey','source','getUndoRedoMutationParamsCache','_setupBeforeClosingHandler','onPointerLeave$','IRemoteInstanceService','prototype','@univerjs/engine-formula','type','pushState','result','startColumn','getConfig','_handleHeartbeatEvent','_docSyncEditingCollabCursorService','TOO_MANY_REQUESTS','@univerjs/sheets-ui','SNAPSHOT_INVALID_SNAPSHOT','univer-online-status','params','isTransformMutationsWithChangesetSuccess','getActiveRange','_labelPosition','values','all','map','_context','RegularPolygon','transformStateCache','DisposableCollection','_collabSessionService','handleDeleteRangeMoveLeft','setActiveRange','8szdqRN','ranges','univer-online-status-title','_startSheetCollabCursor','_toggleOnline','getFocusedUnit','searchParams','WebURLService','text','_cursorInfo$','Injector','mergeOverrideWithDependencies','height','DeleteRangeMoveLeftCommandId','VIEW_MAIN','getStateCache','_docClipboardService','univer-online-status-icon','TEXT','CollaborationDataLoaderController','currentColor','@univerjs/sheets','DataLoaderService','_urlService','unit','fillRule','INVALID_INVITE_CODE','findNodePositionByCharIndex','Rect','ILocalStorageService','closePath','top','@univerjs-pro/collaboration','font','setAlpha','next','length','path','SheetsSelectionsService','NO_OTHER_CLIENTS_EDITING','getCurrent','OTHER_CLIENT_EDITING','selection','1em','_collabCursorState$','_transformService','colorChannel1','handleInsertRangeMoveDown','setItem','fillStyle','collaboration-client-ui.config','onCommandExecuted','getSheetId','executeCommand','setShapeProps','max','_transformHistoryAndStateStack','JOIN_ROOM_FAILED','TEXT_RANGE_LAYER_INDEX','HEADER_MENU','unshift','pipe','_updateURLWithCurrentState','show','_createSocketURL','IMessageService','jiqing500','has','YUUMI_SUBSCRIPTION_NOT_FOUND','registerComponent','unload','isArray','connectInjector','_shapes','AWAITING','div','getCellPositionByOffset','UniverCollaborationClientPlugin','APPLY_REVISION_CONFILICT','assignAColorForMemberID','storage','INVALID_ARGUMENT','shareReplay','945927NHSecA','Disposable','find','_docTransformSelectionsService','event$','getItem','PERMISSION_DENIED','serializeRangeWithSheet','_initCommandExecutedListener','handleInsertRangeMoveRight','substring','black','createElement','_draw','getValue','OnLineSingle','getActiveSheet','getOwnPropertySymbols','DependentOn','univer-flex\x20univer-items-center','_backgroundColor','CollaborationEvent','Plugin','IBeforeCloseService','_collabCursorController','application/json','[RemoteUniscriptService]:\x20no\x20focused\x20unit','permission.content','COLORS','LOGIN_FAILED','_colorIndex','_assignedColors','_name','@univerjs/ui','Tooltip','_scheduleHeartbeat','CHANGESET_REVISION_CONFILICT','row','_handleHover','_collaborationController','symbol','AWAITING_WITH_PENDING','_docTransformIMECacheService','extend','108729WdstPw','LOCAL_CACHE_INTERVAL_KEY','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','deepClone','_scheduleClearOtherTimer','_refRangeService','m1Prime','eventID','translate(.97)','arc','xlink:href','transformSelections','UNRECOGNIZED','useDependency','_getSheetObject','571800wAUrRf','_dataLoaderService','_sheetSkeletonManagerService','function','SYNCED','PENDING','forwardRef','RemoteUniscriptService','UNIVER_SHEET','_cachedData','INVITE_CODE_ALREADY_BOUND','_initEntityListener','none','executionId','ONLINE','urlChange$','HTTPService','defineProperty','_getMergeRange','getCoordByCell','APPLY_PERMISSION_DENIED','ISnapshotServerService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','off-line-single','_color','push','_logService','_clearOtherTimers','dispose$','measureText','then','_httpService','_render','_hideTimer','createInstance','getSkeleton','getUniverSheetInstance','size','UniverCollaborationClientUIPlugin','replace','_notificationService','idSuffix','ISocketService','jsx','handleInsertCol','icon','DocCollaborationEntity','get','DocStateChangeManagerService','univer-offline','getParam','_toggleOffline','ITransformService','editingUnit','onlineStatusTitle','DesktopCollaborationStatusDisplayController','history','YUUMI_UNABLE_LOAD_URL','transform','_onCursorDelete','@univerjs/docs','collab-text-anchor-','TRANSFORM_CHANGE_OBSERVABLE_TYPE','sheetId','@univerjs/core','_messageService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','UniverInstanceType','name','_initStatusListener','getTypeOfUnitAdded$','endColumn','OFFLINE','unsubscribe','#FFF','RefRangeService','CommandType','_getSaveTimeout','color','location','subunit','_getScale','svg','_memberService','_send','_initStatusComponent','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','addObject','entries','registerBeforeClose','getMember','off-line-single_clip0_910_343','transformByState','disposeUnit','_hover','DocSkeletonManagerService','lineTo','call','IConfigService','collabCursorState$','status$','RemoveColCommandId','getCurrentUnitForType','parse','origin','debounce','CollaborationUIEventId','787695YhptBn','_colorAssignService','addEventListener','blue400','react','4rRUfVp','_config','fillText','_onRefRangeChange','takeUntil','_beforeCloseService','children','collab-rect-range-','delete','LICENSE_MAX_UNITS_EXCEEDED','_init','onlineStatus','contains','Vector2','collab-text-range-','generateRandomId','width','transformMutationsWithChangeset','APPLY_REJECT','_handleLeaveEvent','BehaviorSubject','_entities','RevisionService','ENSURE_SNAPSHOT_EXECUTION','permission.title','createSocket','verdancy600','_id','fill','_initEvent','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','asObservable','SessionStatus','runId','CollaborationController','_registerDependencies','clipPath','currentTheme$','session.connection-failed','ALREADY_EXISTS','DocIMEInputManagerService','replaceDocRanges','CollaborationSocketService','_revisionService','188675uEIXOv','UNAUTHENTICATED','sessionStatus$','addObjects','url(#$1','subUnitId','roomMembers$','_cursors','INTERNAL_ERROR','_uiPartsService','_docSkeleton','UNDEFINED','_entityInit$','ILogService','CollaborationSessionService','_cursorShapes','UNIVER_DOC','session.collaboration-timeout','handleDeleteRangeMoveUp','UnitStatus','_docTransformStateCacheService','getUnitId','APPLY_DUPLICATED','with','isTransformMutationFailure','setParam','SetDocZoomRatioOperation','save','85918zDfyZs','mutations','use','round','LICENSE_DISTRO_REJECTED','getVpScrollXYInfoByPosToVp','collaboration.closeRoom','handleInsertRow','onRendered','collaboration-client.offline-data-not-saved','trim','_updateCollabCursors','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','onPointerEnter$','touchDependencies','add','_getSessionTicket','_syncEditingCollabCursorService','CollaborationUIEventService','SetSelectionsOperation','IRenderManagerService','unitID','gold400','purple300','_roomMembers$','@univerjs/design','transformIMECache','OTHER_CLIENTS_EDITING','SUBMIT_CHANGESET_TIMEOUT','PY_RUNTIME_SCRIPT_ERROR','toStringTag','_scheduleSaving','LICENSE_EXPORT_SIZE_EXCEEDED','onMouseMove','_saveTaskMap','collabStatus.synced','M0\x200H16V16H0z','hasOwnProperty','subscribe','Warning','_setupSubUnitSync','Failed','_scene','init','_startDocCollabCursor','m2Prime','onlineStatusIcon','_document','isEditing','BrowserCollaborationSocketService','FETCH_MISS','makeDirty','WebBrowserSingleActiveUnitService','Unknown\x20user','_online','setStateCache','getColor','_session','jsxs','...','ACTIVE_UNIT_EVENT_CHANNEL','_drawTextRange','sessionTicket','USER_NOT_INVITED_CODE','fromEventSubject','doc.mutation.rich-text-editing','ColorKit','getViewport','reconnect','ICommandService','bottom','attrs','InsertRowCommandId','className','requireSession','removeParam','defIds','mask','getMemberID','transformMutation','SOCKET_FAILED','_imageIoService','YUUMI_RATE_OVER_LIMIT','override','triggerDblclick','_renderManagerService','INVITE_CODE_HAS_BEEN_UES','disposeWithMe','backgroundColor','useCallback','registerRefRange','send','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','NodePositionConvertToCursor','MUTATION','rxjs','DeleteRangeMoveUpCommandId','_selfUnitIDs','beginPath','getRelativeToViewportCoord','Inject','_anchor','APPLY_NON_SEQUENTIAL_REVISION','_commandService','labelPosition','clsx','debounceTime','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_anchorDot','code','getCollabCursors$','collaboration.single-unit.warning','RxDisposable','_removeClearOtherTimer','_getAnchorBounding','Rectangle','startRow','_localStorageService','runOnServer','defs','selections','hide'];_0x4e6b=function(){return _0x28ac0f;};return _0x4e6b();}
@@ -1 +1 @@
1
- 'use strict';const _0x3764c9=_0x3dd8;(function(_0x4fe91c,_0x138fc8){const _0x171f85=_0x3dd8,_0xb071da=_0x4fe91c();while(!![]){try{const _0x116fc8=parseInt(_0x171f85(0x1a8))/0x1*(-parseInt(_0x171f85(0x198))/0x2)+parseInt(_0x171f85(0x1ac))/0x3+-parseInt(_0x171f85(0x19a))/0x4*(-parseInt(_0x171f85(0x1a0))/0x5)+-parseInt(_0x171f85(0x1ab))/0x6+-parseInt(_0x171f85(0x19b))/0x7+parseInt(_0x171f85(0x1a4))/0x8+parseInt(_0x171f85(0x1a2))/0x9;if(_0x116fc8===_0x138fc8)break;else _0xb071da['push'](_0xb071da['shift']());}catch(_0x2e5347){_0xb071da['push'](_0xb071da['shift']());}}}(_0x1942,0xe6a1f));function _0x1942(){const _0x53c982=['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.','2615708PZktIE','12043626IMTJcv','Syncing\x20server\x20data...','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Edit\x20conflicts','10OvKNWN','Authentication\x20Error','25204473uphobL','exports','12106392FpJHLD','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Click\x20to\x20Reconnect','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1823661mNLiCt','Collaboration\x20Conflict','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','7056366ImMJlQ','129783TWUwep','Syncing...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Synced','2KeJtyd'];_0x1942=function(){return _0x53c982;};return _0x1942();}function _0x3dd8(_0x2e9869,_0x56a1b1){const _0x194258=_0x1942();return _0x3dd8=function(_0x3dd8e5,_0x3e1184){_0x3dd8e5=_0x3dd8e5-0x198;let _0x5b428a=_0x194258[_0x3dd8e5];return _0x5b428a;},_0x3dd8(_0x2e9869,_0x56a1b1);}const e={'collab-client':{'tooltip':{'reconnect':_0x3764c9(0x1a6)}},'collabStatus':{'fetchMiss':_0x3764c9(0x19c),'conflict':_0x3764c9(0x19f),'notCollab':'Local\x20file','synced':_0x3764c9(0x1af),'syncing':_0x3764c9(0x1ad),'offline':_0x3764c9(0x1a5)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x3764c9(0x19d),'collaboration-timeout':_0x3764c9(0x19e)},'conflict':{'title':_0x3764c9(0x1a9),'content':_0x3764c9(0x199)},'permission':{'title':_0x3764c9(0x1a1),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x3764c9(0x1a7)},'closeRoom':_0x3764c9(0x1ae)},'auth':{'needGotoLoginAlert':_0x3764c9(0x1aa)}};module[_0x3764c9(0x1a3)]=e;
1
+ 'use strict';const _0x26621d=_0x1bc3;(function(_0x2e5448,_0x3da3b1){const _0x2eed33=_0x1bc3,_0x3b0dd8=_0x2e5448();while(!![]){try{const _0x49a81b=parseInt(_0x2eed33(0x147))/0x1*(parseInt(_0x2eed33(0x156))/0x2)+parseInt(_0x2eed33(0x15c))/0x3*(-parseInt(_0x2eed33(0x15d))/0x4)+parseInt(_0x2eed33(0x149))/0x5+-parseInt(_0x2eed33(0x157))/0x6*(-parseInt(_0x2eed33(0x154))/0x7)+parseInt(_0x2eed33(0x14a))/0x8+parseInt(_0x2eed33(0x14d))/0x9+parseInt(_0x2eed33(0x15a))/0xa*(-parseInt(_0x2eed33(0x14c))/0xb);if(_0x49a81b===_0x3da3b1)break;else _0x3b0dd8['push'](_0x3b0dd8['shift']());}catch(_0x572cad){_0x3b0dd8['push'](_0x3b0dd8['shift']());}}}(_0xb3d1,0x5ae32));function _0xb3d1(){const _0x124ed6=['Synced','7oPAQpE','Click\x20to\x20Reconnect','222ofgZpp','1607262OyyJOx','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','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.','2219150esYkHD','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','5295izsONG','1020CQiXKR','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Collaboration\x20Conflict','5101lRzgKd','Syncing...','3420085jcrfNK','1026320yrIePS','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','77PWFKww','6564231btOoSX','exports','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Connection\x20failed,\x20please\x20check\x20your\x20network.','Authentication\x20Error'];_0xb3d1=function(){return _0x124ed6;};return _0xb3d1();}const e={'collab-client':{'tooltip':{'reconnect':_0x26621d(0x155)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':_0x26621d(0x153),'syncing':_0x26621d(0x148),'offline':_0x26621d(0x14b)},'session':{'connection-failed':_0x26621d(0x151),'will-retry':_0x26621d(0x15b),'room-full':_0x26621d(0x144),'collaboration-timeout':_0x26621d(0x14f)},'conflict':{'title':_0x26621d(0x146),'content':_0x26621d(0x159)},'permission':{'title':_0x26621d(0x152),'content':_0x26621d(0x145)},'collaboration':{'single-unit':{'warning':_0x26621d(0x15e)},'closeRoom':_0x26621d(0x150)},'auth':{'needGotoLoginAlert':_0x26621d(0x158)}};function _0x1bc3(_0x26a797,_0x59cdd9){const _0xb3d1a5=_0xb3d1();return _0x1bc3=function(_0x1bc3bf,_0x3ff2f6){_0x1bc3bf=_0x1bc3bf-0x144;let _0xfabdf7=_0xb3d1a5[_0x1bc3bf];return _0xfabdf7;},_0x1bc3(_0x26a797,_0x59cdd9);}module[_0x26621d(0x14e)]=e;