@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202506111607 → 0.8.1-nightly.202506121607

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 _0x936d(){const _0x50f2d4=['@univerjs-pro/collaboration-client-ui','348986QhaETU','13218898xizNqT','runOnServer','RemoteUniscriptService','50572KKPzdd','205186ZOAqDg','1886624NpmfSA','extend','981diuTTb','6kgpzSK','FUniver','@univerjs/core/facade','54AAijGL','_injector','30910diBwfR','85rLNYcA','44338lpqFSV'];_0x936d=function(){return _0x50f2d4;};return _0x936d();}const _0x167ac7=_0x2167;(function(_0x2f65f6,_0x58cb34){const _0x5a8000=_0x2167,_0xe6a5ce=_0x2f65f6();while(!![]){try{const _0x5f9e78=parseInt(_0x5a8000(0x14e))/0x1+-parseInt(_0x5a8000(0x153))/0x2*(-parseInt(_0x5a8000(0x145))/0x3)+-parseInt(_0x5a8000(0x152))/0x4*(-parseInt(_0x5a8000(0x14b))/0x5)+parseInt(_0x5a8000(0x148))/0x6*(parseInt(_0x5a8000(0x14c))/0x7)+parseInt(_0x5a8000(0x154))/0x8+-parseInt(_0x5a8000(0x144))/0x9*(-parseInt(_0x5a8000(0x14a))/0xa)+-parseInt(_0x5a8000(0x14f))/0xb;if(_0x5f9e78===_0x58cb34)break;else _0xe6a5ce['push'](_0xe6a5ce['shift']());}catch(_0x219941){_0xe6a5ce['push'](_0xe6a5ce['shift']());}}}(_0x936d,0x30212));function _0x2167(_0x290f1d,_0x3dfab0){const _0x936d31=_0x936d();return _0x2167=function(_0x2167ba,_0xa3e3e3){_0x2167ba=_0x2167ba-0x143;let _0x20c5e7=_0x936d31[_0x2167ba];return _0x20c5e7;},_0x2167(_0x290f1d,_0x3dfab0);}const t=require(_0x167ac7(0x14d)),e=require(_0x167ac7(0x147));class c extends e[_0x167ac7(0x146)]{[_0x167ac7(0x150)](_0x469e6f,_0x315505,..._0x3a7133){const _0x1403b1=_0x167ac7;return this[_0x1403b1(0x149)]['get'](t[_0x1403b1(0x151)])[_0x1403b1(0x150)](_0x469e6f,_0x315505,{},..._0x3a7133);}}e[_0x167ac7(0x146)][_0x167ac7(0x143)](c);
1
+ 'use strict';const _0x38a09e=_0x34b5;(function(_0x2f4c51,_0x1880c2){const _0x1b4d15=_0x34b5,_0x552055=_0x2f4c51();while(!![]){try{const _0x5adbf3=-parseInt(_0x1b4d15(0x1ec))/0x1+-parseInt(_0x1b4d15(0x1e1))/0x2+parseInt(_0x1b4d15(0x1ed))/0x3+-parseInt(_0x1b4d15(0x1dd))/0x4*(parseInt(_0x1b4d15(0x1e7))/0x5)+parseInt(_0x1b4d15(0x1eb))/0x6*(-parseInt(_0x1b4d15(0x1e4))/0x7)+-parseInt(_0x1b4d15(0x1e8))/0x8*(-parseInt(_0x1b4d15(0x1e2))/0x9)+parseInt(_0x1b4d15(0x1e6))/0xa;if(_0x5adbf3===_0x1880c2)break;else _0x552055['push'](_0x552055['shift']());}catch(_0x34731e){_0x552055['push'](_0x552055['shift']());}}}(_0x50ac,0x63a29));const t=require(_0x38a09e(0x1e5)),e=require(_0x38a09e(0x1e3));class c extends e[_0x38a09e(0x1e9)]{[_0x38a09e(0x1df)](_0x2ae5ad,_0x4b7d15,..._0x18eac7){const _0x527c79=_0x38a09e;return this['_injector'][_0x527c79(0x1de)](t[_0x527c79(0x1ea)])[_0x527c79(0x1df)](_0x2ae5ad,_0x4b7d15,{},..._0x18eac7);}}function _0x34b5(_0x101575,_0x2a2d7e){const _0x50ac03=_0x50ac();return _0x34b5=function(_0x34b5fe,_0x192720){_0x34b5fe=_0x34b5fe-0x1dd;let _0x3da038=_0x50ac03[_0x34b5fe];return _0x3da038;},_0x34b5(_0x101575,_0x2a2d7e);}e[_0x38a09e(0x1e9)][_0x38a09e(0x1e0)](c);function _0x50ac(){const _0x4ef735=['extend','1195722QqHUvJ','3794166VnLpkd','@univerjs/core/facade','126924bfuOvN','@univerjs-pro/collaboration-client-ui','20620190esmJxJ','785RXSlFf','8frwmNw','FUniver','RemoteUniscriptService','114hOBhJX','615264uLSzJs','208446pKrqEM','14964UfNFnW','get','runOnServer'];_0x50ac=function(){return _0x4ef735;};return _0x50ac();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4b86e5=_0x5371;(function(_0x703b37,_0x82b89c){const _0x4d0689=_0x5371,_0x363912=_0x703b37();while(!![]){try{const _0x993935=parseInt(_0x4d0689(0x273))/0x1+-parseInt(_0x4d0689(0x168))/0x2*(parseInt(_0x4d0689(0x2c1))/0x3)+parseInt(_0x4d0689(0xbc))/0x4*(parseInt(_0x4d0689(0x10d))/0x5)+parseInt(_0x4d0689(0x100))/0x6+parseInt(_0x4d0689(0x211))/0x7+parseInt(_0x4d0689(0x18f))/0x8*(parseInt(_0x4d0689(0x2fb))/0x9)+-parseInt(_0x4d0689(0x2d5))/0xa*(parseInt(_0x4d0689(0x21e))/0xb);if(_0x993935===_0x82b89c)break;else _0x363912['push'](_0x363912['shift']());}catch(_0x3e78c6){_0x363912['push'](_0x363912['shift']());}}}(_0x1f41,0xe90b9));var Ve=Object[_0x4b86e5(0x2e4)],Xe=(_0x300a9e,_0x33c577,_0x2cb23e)=>_0x33c577 in _0x300a9e?Ve(_0x300a9e,_0x33c577,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cb23e}):_0x300a9e[_0x33c577]=_0x2cb23e,h=(_0x2bf611,_0xbabd41,_0x49bf98)=>Xe(_0x2bf611,typeof _0xbabd41!=_0x4b86e5(0x145)?_0xbabd41+'':_0xbabd41,_0x49bf98);Object[_0x4b86e5(0x2e4)](exports,Symbol[_0x4b86e5(0x132)],{'value':_0x4b86e5(0x329)});const u=require(_0x4b86e5(0x291)),a=require(_0x4b86e5(0x1e8)),p=require(_0x4b86e5(0xb2)),G=require(_0x4b86e5(0x1a1)),b=require('@univerjs/docs-ui'),Ge=require(_0x4b86e5(0x2b2)),d=require(_0x4b86e5(0x1ad)),Y=require('@univerjs/docs'),m=require(_0x4b86e5(0x285)),Ee=require(_0x4b86e5(0x2f5)),g=require('@univerjs/sheets'),$=require(_0x4b86e5(0x2e7)),X=require(_0x4b86e5(0xee)),w=require(_0x4b86e5(0x1f2)),T=require(_0x4b86e5(0x22a)),D=require(_0x4b86e5(0x215)),M=require(_0x4b86e5(0x259)),Ke=require(_0x4b86e5(0x317));var qe=Object[_0x4b86e5(0x220)],ze=(_0x3e59a5,_0x24b05e,_0x1f864a,_0x3e464d)=>{const _0x4e5fbc=_0x4b86e5;for(var _0x6779e1=_0x3e464d>0x1?void 0x0:_0x3e464d?qe(_0x24b05e,_0x1f864a):_0x24b05e,_0x544b4c=_0x3e59a5[_0x4e5fbc(0x214)]-0x1,_0x4112dd;_0x544b4c>=0x0;_0x544b4c--)(_0x4112dd=_0x3e59a5[_0x544b4c])&&(_0x6779e1=_0x4112dd(_0x6779e1)||_0x6779e1);return _0x6779e1;},Te=(_0x71a96,_0x6fc8a2)=>(_0x30af8c,_0x38d4d6)=>_0x6fc8a2(_0x30af8c,_0x38d4d6,_0x71a96);let de=class extends a['RxDisposable']{constructor(_0x4fb669,_0x3f565a){const _0x55b8b1=_0x4b86e5;super(),this['_docClipboardService']=_0x4fb669,this['_imageIoService']=_0x3f565a,this[_0x55b8b1(0x1f3)]();}[_0x4b86e5(0x1f3)](){const _0x5d7120=_0x4b86e5,_0x28b36c=this;this[_0x5d7120(0x240)](this[_0x5d7120(0x103)][_0x5d7120(0x17e)]({'onBeforePasteImage':async _0xe24697=>{const _0x4c837f=_0x5d7120,_0x1c355b=await _0x28b36c[_0x4c837f(0x2ba)][_0x4c837f(0xec)](_0xe24697);return _0x1c355b?{'source':_0x1c355b[_0x4c837f(0x2a2)],'imageSourceType':_0x1c355b['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b['IDocClipboardService']),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x4b86e5(0xfb),_0x4b86e5(0x190),_0x4b86e5(0x304),_0x4b86e5(0x233),_0x4b86e5(0x203),'yellow.400'];class me extends a[_0x4b86e5(0x1b8)]{constructor(){const _0x319ed1=_0x4b86e5;super(...arguments),h(this,_0x319ed1(0x32a),new Map()),h(this,_0x319ed1(0x169),0x0);}[_0x4b86e5(0xb9)](_0x4cd665){const _0x4b18a=_0x4b86e5;if(this[_0x4b18a(0x32a)][_0x4b18a(0x135)](_0x4cd665))return this[_0x4b18a(0x32a)][_0x4b18a(0x2e2)](_0x4cd665);const _0x7b4fe0=Oe[this['_colorIndex']];return this[_0x4b18a(0x169)]=(this[_0x4b18a(0x169)]+0x1)%Oe[_0x4b18a(0x214)],this[_0x4b18a(0x32a)]['set'](_0x4cd665,_0x7b4fe0),_0x7b4fe0;}}function _0x1f41(){const _0x7021a1=['fromEvent','UPDATE_CURSOR','source','throttleTime','call','dispose$','_commandService','getValue','isArray','EffectRefRangId','registerRefRange','Warning','fillRule','name','updateOfflineData','Shape','enableLocalCache','_registerDependencies','@univerjs/drawing','params','getUniverSheetInstance','ENSURE_SNAPSHOT_EXECUTION','RemoteUniscriptService','#FFF','runId','LICENSE_DISTRO_REJECTED','_imageIoService','transformStateCache','event$','_startDocCollabCursor','undoState','none','icon','426879ryEuRH','serializeRangeWithSheet','_localeService','currentTheme$','getLocalCacheKey','ICommandService','_localCacheService','_clearOtherTimers','createSocket','univer-flex\x20univer-items-center','div','getTypeOfUnitAdded$','getColor','_shapes','lineTo','M0\x200H16V16H0z','top','UniverIcon','getOffsetConfig','save','10Zbenqh','with','onPointerEnter$','_transformUndoRedoStack','searchParams','_draw','_drawRectRange','handleInsertRangeMoveRight','defs','getActiveSheet','PENDING','_initResize','unitId','get','map','defineProperty','on-line-icon','IConfigService','rxjs/operators','APPLY_REJECT','column','post','_refreshCollabCursors','getVpScrollXYInfoByPosToVp','_logService','href','UNAUTHENTICATED','_revisionService','_startSheetCollabCursor','mask','_initStatusComponent','next','@univerjs/engine-formula','_config','merge','getSkeleton','MoveRangeCommandId','SetWorksheetActivateCommand','17054154xpMDLk','toRgbString','requireSession','COLORS','getStateCache','_initEvent','IUIPartsService','getSheetBySheetId','RxDisposable','green.600','_docSkeleton','UniverInstanceType','handleIRemoveRow','_collaborationController','_getAnchorBounding','disableLocalCache','getUnitStatus$','INVALID_ARGUMENT','PY_RUNTIME_SCRIPT_ERROR','setParam','NOT_COLLAB','white','RemoveColCommandId','INVITE_CODE_REQUIRED','measureText','_drawAnchor','YUUMI_ALL_TABLES_IS_INVALID','_collaborationUIEventService','@univerjs/rpc','setShapeProps','Error','jsxs','_status$','LICENSE_MAX_UNITS_EXCEEDED','_configService','0\x200\x2016\x2016','forEach','_getMergeRange','isActive','ticket','storage','RefRangeService','SYNCED','_saveTaskMap','text','_removeCollabCursors','Module','_assignedColors','filter','getTypeOfUnitDisposed$','_transformPreviousActiveRange','_messageService','cursorInfo$','YUUMI_NO_CUBOID_FOR_QUESTION','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_disabled','onRendered','getUnitId','collab-text-anchor-','fromEventSubject','_getScale','error','USER_NOT_INVITED_CODE','_cursors','_scene','off-line-icon','combineLatest','_memberService','getMember','NodePositionConvertToCursor','_document','_context','JOIN_ROOM_FAILED','ONLINE','_collabSessionService','hovered','round','complete','INTERNAL_ERROR','FromArray','_scheduleSaving','@univerjs/engine-render','LICENSE_EXPORT_SIZE_EXCEEDED','YUUMI_URL_COL_OUT_OF_RANGE','indexOf','transformIMECache','UnitStatus','_collabCursorState$','assignAColorForMemberID','getCurrentUnitForType','code','1073944arwHPe','YUUMI_RATE_OVER_LIMIT','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','on-line-icon_clip0_910_349','_anchor','findNodePositionByCharIndex','TEXT_RANGE_LAYER_INDEX','subunit','ISnapshotServerService','EMAIL_HAS_BEEN_BOUND','UNDEFINED','size','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','Optional','_handleEvent','transformByState','_toggleOffline','black','useDependency','1em','_unitStatus','MOBILE_HAS_BEEN_BOUND','_id','restore','HTTPService','DeleteRangeMoveUpCommandId','xlink:href','isTransformMutationsWithChangesetSuccess','then','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collabStatus.conflict','getUnhiddenWorksheets','handleMoveRange','parse','_injector','distinctUntilChanged','from','concat','debug','_onCursorUpdate','origin','RemoveRowCommandId','_setupSubUnitSync','some','APPLY_NON_SEQUENTIAL_REVISION','setUndoRedoMutationParamsCache','_univerInstanceService','MessageType','saveImage','drawWith','@univerjs/sheets-ui','handleInsertCol','onMouseMove','unit','_name','disposeUnit','_refRangeService','SNAPSHOT_INVALID_SNAPSHOT','wsSessionTicketUrl','useObservable','collaboration-client.offline-data-not-saved','_localStorageService','_saveCache','purple.300','all','newValue','type','pipe','5846286eKZyWo','max','fillStyle','_docClipboardService','ThemeService','url(#off-line-icon_clip0_910_343)','eventID','override','children','apply','toString','CollaborationStatus','subUnitId','10HuiipV','getUndoRedoMutationParamsCache','colorChannel1','addEventListener','fillText','SheetsSelectionsService','_toggleOnline','IUniverInstanceService','beginPath','UNRECOGNIZED','entityInit$','useCallback','evenodd','switchMap','body','_transformHistoryAndStateStack','_urlService','off-line-icon_clip0_910_343','NodePositionConvertToRectRange','flatMap','_docSkeletonManagerService','CLOSE_ROOM','mapTo','translate(.97)','_updateURLWithCurrentState','_online','SOCKET_FAILED_RETRY','setStateCache','engine','replaceDocRanges','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','clearInterval','getParam','CommandType','collab-client.tooltip.reconnect','min','...','toStringTag','displayName','SheetSkeletonManagerService','has','ACTIVE_UNIT_EVENT_CHANNEL','_docStateChangeManagerService','_updateSubUnitFromURLParams','ILogService','UniverCollaborationClientUIPlugin','currentSkeleton$','WebURLService','ITransformService','current','Unknown\x20user','_hovered','debounceTime','cursorInfo','addObjects','_anchorDot','symbol','unitID','_removeClearOtherTimer','SUBMIT_CHANGESET_TIMEOUT','_doCreateSocket','substring','ILocalStorageService','_docTransformStateCacheService','urlChange$','_send','_entityInit$','registerRenderModule','subscribeEvent','textRanges','CollaborationDataLoaderController','rgba(255,\x20255,\x20255,\x200.01)','InsertRangeMoveRightCommandId','transformRemoteChangeset','InsertRangeMoveDownCommandId','VIEW_MAIN','DOC_RANGE_TYPE','setActiveRange','Inject','unsubscribe','/run/','subscribe','pluginName','generateRandomId','dispose','_initDependencies','clipPath','find','USERS_LEAVE','loadOfflineData','Failed','22oKuEZK','_colorIndex','mutations','FETCH_MISS','CollaborationSessionService','_collabCursorController','_selfUnitIDs','_handleHeartbeatEvent','_themeService','_scheduleClearOtherTimer','focused$','COMPLETION_FINISHED','_entities','collaboration-client-ui.config','Plugin','roomMembers','onCommandExecuted','prototype','OTHER_CLIENTS_EDITING','LOGIN_FAILED','transformSelections','_heartbeatTimer','addClipboardHook','getFocusedUnit','Rect','replace','Vector2','Injector','PERMISSION_DENIED','_backgroundColor','univer-mr-2\x20univer-flex\x20univer-text-xl','string','CollaborationUIEventId','clsx','[CollaborationDataLoaderController]','ISocketService','debounce','_handleJoinEvent','width','8MJMqFe','jiqing.500','_getSessionTicket','deserializeRangeWithSheet','_render','APPLY_PERMISSION_DENIED','deepClone','_setupBeforeClosingHandler','DocSkeletonManagerService','CollaborationEvent','tag','Rectangle','getCurrentRevOfUnit','removeParam','jsx','transformMutation','path','makeDirty','@univerjs/network','sheetID','collabCursorState$','url(#on-line-icon_clip0_910_349)','_docTransformIMECacheService','BuiltInUIPart','toDisposable','UNIVER_DOC','getDocRanges','LICENSE_IMPORT_SIZE_EXCEEDED','backgroundColor','init','rxjs','closePath','getMergeData','className','_getSheetObject','handleIRemoveCol','show','univerjs-icon\x20univerjs-icon-','delete','triggerDblclick','_session','Disposable','_handleHover','touchDependencies','entries','IURLService','0\x200\x2017\x2016','height','invokeId','_docTransformSelectionsService','IRenderManagerService','_ensureSubject','WebSocketService','SetDocZoomRatioOperation','docStateChange$','session.collaboration-timeout','add','url(#$1','editingUnit','CONNECTOR_DATA_TOO_LARGE','_color','values','fill','connectInjector','data','session.will-retry','InsertColCommandId','forwardRef','SNAPSHOT_HAS_BEEN_REMOVED','saveTaskMap','handleDeleteRangeMoveUp','handleInsertRow','getCellPositionByOffset','attrs','CHANGESET_REVISION_CONFILICT','getCoordByCell','location','_syncEditingCollabCursorService','Subject','unshift','executeCommand','_updateCollabCursors','YUUMI_UNABLE_LOAD_URL','selection','NOT_FOUND','collaboration.closeRoom','getConfig','onLocalMutation','transformMutationsWithChangeset','@univerjs/core','HEADER_MENU','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_httpService','send','InsertRowCommandId','collabStatus.notCollab','Tools','handleInsertRangeMoveDown','unload','react/jsx-runtime','_init','_scheduleHeartbeat','ALREADY_EXISTS','key','CollaborationStatusDisplay','stringify','_lastPointer','includes','function','OffLineIcon','ILocalCacheService','shareReplay','collabStatus.syncing','currentColor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','labelPosition','blue.400','_initEntityListener','_colorAssignService','SheetCollabCursorShape','UNIVER_SHEET','RegularPolygon','_cursor','onPointerLeave$','MUTATION','INVITE_CODE_HAS_BEEN_UES','_initCommandExecutedListener','sessionStatus$','_initStatusListener','_registerRenderDependencies','5178152YQsBRR','onTransformChange$','isTransformMutationFailure','length','@univerjs/design','setInterval','onPointerMove$','getItem','loadUnit','CollaborationController','extend','RECT','collabStatus.fetchMiss','22570141nSeHfU','_drawTextRange','getOwnPropertyDescriptor','m2Prime','AWAITING_WITH_PENDING','_cursorInfo$','INVALID_INVITE_CODE','SessionStatus','DocIMEInputManagerService','getCurrentSelections','collabStatus.offline','saveOfflineData','@univerjs/ui','_cachedData','createElement','popstate','_labelPosition','getMemberID','setTimeout','IMessageService','addHandlerCallback','red.300','_createSocketURL','getSheetId','_hover','getOwnPropertySymbols','reconnect','asObservable','session.connection-failed','BehaviorSubject','createInstance','_docSyncEditingCollabCursorService','setConfig','TOO_MANY_REQUESTS','disposeWithMe','_getSaveTimeout','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_onCursorDelete','_updateLocalCursor','use','uni.network.url-service','ColorKit','redoState','clearTimeout','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','takeUntil','_notificationService','_eventUnsubscribe','m1Prime','bottom','LocaleService','_instanceService','Workbook','row','_unitOnClients','addObject','_cursorShapes','_beforeCloseService','transform','react','getColorFromTheme','startRow','pushState','TEXT','_range','moveTo','DocStateChangeManagerService','_uiPartsService','sheetId','getActiveRange','assign','_roomMembers$','skeleton','defIds','IRemoteInstanceService','OnLineIcon','CONFLICT','getCollabEntity$','status$','_sheetSkeletonManagerService','arc','DocCollaborationEntity','MemberService','YUUMI_ASYNCIO_CANCELLED','getAncestorScale','425612jFTXga','DesktopCollaborationStatusDisplayController','APPLY_REVISION_CONFILICT','set','DataLoaderService','roomMembers$','memberID','_onRefRangeChange','svg','getCollabCursors$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Tooltip','_textBubble','_hideTimer','DocSelectionManagerService','_transformService','ranges','hasOwnProperty','@univerjs-pro/collaboration','setAlpha','WECHAT_HAS_BEEN_BOUND','propertyIsEnumerable','getRangePointData','YUUMI_TABLE_NOT_FOUND_IN_UNIT','setItem','OFFLINE','getRelativeToViewportCoord','color','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','history','@univerjs-pro/collaboration-client','sessionTicket','doc.mutation.rich-text-editing','OTHER_CLIENT_EDITING','BrowserCollaborationSocketService','http://www.w3.org/2000/svg','_renderManagerService','collabStatus.synced','getRenderById','range','push','split','replaceState','startsWith','idSuffix'];_0x1f41=function(){return _0x7021a1;};return _0x1f41();}function we(_0x5c4322){const _0x139d93=_0x4b86e5;let _0x2ff377='';for(const _0x4788a7 of _0x5c4322){const {startOffset:_0x407f02,endOffset:_0x306e93,isActive:_0x312275,rangeType:_0x505a9f,segmentId:_0xa7a140,segmentPage:_0x18b06e}=_0x4788a7;_0x2ff377[_0x139d93(0x214)]&&(_0x2ff377+=','),_0x2ff377+=_0x407f02+':'+_0x306e93+':'+(_0x312275?'1':'0')+':'+_0x505a9f+':'+_0xa7a140+':'+_0x18b06e;}return _0x2ff377;}function Je(_0x7eb4f9){const _0x54e711=_0x4b86e5,_0x30753f=_0x7eb4f9[_0x54e711(0x29c)](','),_0x3e5da6=[];for(const _0x2d5edb of _0x30753f){const [_0x35e7ae,_0x15050e,_0x5d3d7c,_0x2d7bd6,_0x1027d1,_0x547212]=_0x2d5edb[_0x54e711(0x29c)](':');_0x3e5da6[_0x54e711(0x29b)]({'startOffset':Number(_0x35e7ae),'endOffset':Number(_0x15050e),'collapsed':_0x35e7ae===_0x15050e,'isActive':_0x5d3d7c==='1','rangeType':_0x2d7bd6===a['DOC_RANGE_TYPE'][_0x54e711(0x25d)]?a[_0x54e711(0x159)][_0x54e711(0x25d)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x1027d1==_0x54e711(0x187)?String(_0x1027d1):'','segmentPage':Number(_0x547212!=null?_0x547212:-0x1)});}return _0x3e5da6[_0x54e711(0xe7)](_0x60af15=>_0x60af15[_0x54e711(0x321)])||(_0x3e5da6[0x0][_0x54e711(0x321)]=!0x0),_0x3e5da6;}class Ce extends a[_0x4b86e5(0x303)]{constructor(){const _0x223279=_0x4b86e5;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,_0x223279(0x1a3),this[_0x223279(0xb8)][_0x223279(0x239)]());}['syncEditingCollabCursor'](_0x1dbbd4){const _0x55adab=_0x4b86e5,{unitID:_0x4b71d0,memberID:_0x12d00c,textRanges:_0x2756d2}=_0x1dbbd4,_0x1fd1ec=we(_0x2756d2);if(_0x1fd1ec==='')return;const _0x14cdd7={'unitID':_0x4b71d0,'memberID':_0x12d00c,'selection':_0x1fd1ec};this[_0x55adab(0xb8)]['next'](_0x14cdd7);}}var Ze=Object[_0x4b86e5(0x220)],Qe=(_0x2f85b9,_0x5c943b,_0x86ac5c,_0x2ac56b)=>{const _0x3d776e=_0x4b86e5;for(var _0x3ad622=_0x2ac56b>0x1?void 0x0:_0x2ac56b?Ze(_0x5c943b,_0x86ac5c):_0x5c943b,_0x4aa6fb=_0x2f85b9[_0x3d776e(0x214)]-0x1,_0x4135db;_0x4aa6fb>=0x0;_0x4aa6fb--)(_0x4135db=_0x2f85b9[_0x4aa6fb])&&(_0x3ad622=_0x4135db(_0x3ad622)||_0x3ad622);return _0x3ad622;},L=(_0x2b8b96,_0x3e57ad)=>(_0x127c90,_0x23b9d0)=>_0x3e57ad(_0x127c90,_0x23b9d0,_0x2b8b96);const et=0x12c,tt=0x64;let fe=class extends a[_0x4b86e5(0x303)]{constructor(_0x146d16,_0x9240ab,_0x8b935e,_0x22baea,_0x2db7ee,_0x3b6916,_0x5d3888,_0x49a4ca,_0x410fd7){const _0x2b5da9=_0x4b86e5;super(),h(this,'_online',!0x1),h(this,_0x2b5da9(0x1f3),!0x1),h(this,_0x2b5da9(0x223),new d[(_0x2b5da9(0x23b))](new Map())),h(this,_0x2b5da9(0x32f),this[_0x2b5da9(0x223)][_0x2b5da9(0x239)]()),h(this,'_roomMembers$',new d[(_0x2b5da9(0x23b))]([])),h(this,_0x2b5da9(0x278),this['_roomMembers$']['pipe'](d[_0x2b5da9(0x141)](et))),h(this,'_updateLocalCursor',a[_0x2b5da9(0x18c)](_0x4da490=>{const _0x168843=_0x2b5da9,_0x2d4a0a={'eventID':m[_0x168843(0x198)][_0x168843(0x2a1)],'data':{'unitID':this['unitID'],'memberID':this[_0x168843(0x1b7)][_0x168843(0x22f)](),'selection':we(_0x4da490)}};this[_0x168843(0x1b7)]['send'](_0x2d4a0a,this['unitID']);},tt)),(this[_0x2b5da9(0x146)]=_0x146d16,this[_0x2b5da9(0x1b7)]=_0x9240ab,this[_0x2b5da9(0xde)]=_0x8b935e,this['_colorAssignService']=_0x22baea,this[_0x2b5da9(0x33e)]=_0x2db7ee,this['_syncEditingCollabCursorService']=_0x3b6916,this['_transformService']=_0x5d3888,this[_0x2b5da9(0xea)]=_0x49a4ca,this[_0x2b5da9(0x2a6)]=_0x410fd7);}get[_0x4b86e5(0x142)](){const _0x1f6e4e=_0x4b86e5;return this['_cursorInfo$'][_0x1f6e4e(0x2a7)]();}get[_0x4b86e5(0x177)](){const _0x2296b4=_0x4b86e5;return this[_0x2296b4(0x265)][_0x2296b4(0x2a7)]();}[_0x4b86e5(0x161)](){const _0x51d653=_0x4b86e5;super[_0x51d653(0x161)](),this[_0x51d653(0x223)][_0x51d653(0x2f4)](new Map()),this[_0x51d653(0x223)][_0x51d653(0x348)](),this[_0x51d653(0x265)][_0x51d653(0x2f4)]([]),this[_0x51d653(0x265)]['complete']();}[_0x4b86e5(0x1ac)](){const _0x19f23b=_0x4b86e5;this[_0x19f23b(0x1f3)]||(this['_init']=!0x0,this['_session'][_0x19f23b(0x20e)]['pipe'](d[_0x19f23b(0x24b)](this[_0x19f23b(0x2a5)]))[_0x19f23b(0x15e)](_0x1b2ad5=>{const _0x4f61d8=_0x19f23b;_0x1b2ad5===u[_0x4f61d8(0x225)][_0x4f61d8(0x344)]?this[_0x4f61d8(0x113)]():this[_0x4f61d8(0xcc)]();}),this[_0x19f23b(0x1b7)]['event$']['pipe'](d[_0x19f23b(0x24b)](this['dispose$']))[_0x19f23b(0x15e)](_0x341575=>{const _0x3795f8=_0x19f23b,_0x108c20=_0x341575[_0x3795f8(0x106)];_0x108c20===m[_0x3795f8(0x198)][_0x3795f8(0x2a1)]&&this[_0x3795f8(0xe3)](_0x341575),_0x108c20===m[_0x3795f8(0x198)][_0x3795f8(0x165)]&&this[_0x3795f8(0x243)](_0x341575);}),this[_0x19f23b(0x240)](this[_0x19f23b(0x2a6)]['onCommandExecuted'](_0x13fc99=>{const _0x4f331d=_0x19f23b,_0x5d93a9=_0x13fc99['params'];_0x5d93a9!=null&&this['_online']&&_0x13fc99['id']===Y['SetTextSelectionsOperation']['id']&&_0x5d93a9[_0x4f331d(0x2e1)]===this[_0x4f331d(0x146)]&&_0x5d93a9['isEditing']===!0x1&&_0x5d93a9['ranges'][_0x4f331d(0x214)]>0x0&&this[_0x4f331d(0x244)](_0x5d93a9[_0x4f331d(0x283)]);})),this[_0x19f23b(0x1dc)][_0x19f23b(0x1a3)][_0x19f23b(0xff)](d[_0x19f23b(0x24b)](this[_0x19f23b(0x2a5)]))[_0x19f23b(0x15e)](_0x4c05fd=>{const _0x41fa03=_0x19f23b;if((_0x4c05fd==null?void 0x0:_0x4c05fd['unitID'])!==this[_0x41fa03(0x146)])return;const _0x3b800b={'eventID':m[_0x41fa03(0x198)]['UPDATE_CURSOR'],'data':_0x4c05fd};this['_onCursorUpdate'](_0x3b800b);}),this[_0x19f23b(0x240)](this[_0x19f23b(0x2a6)][_0x19f23b(0x178)](_0x15c3fb=>{const _0x3aa376=_0x19f23b;if(_0x15c3fb[_0x3aa376(0x2b3)]==null)return;const _0x32b640=_0x15c3fb[_0x3aa376(0x2b3)];if(_0x15c3fb['id']!==Y['RichTextEditingMutation']['id']||_0x32b640['unitId']!==this[_0x3aa376(0x146)])return;const _0x671655={'id':'doc.mutation.rich-text-editing','params':_0x32b640},_0x3842c3=this[_0x3aa376(0x142)];for(const [_0x4a210d,_0x43e36d]of _0x3842c3){const _0x452798={'id':_0x3aa376(0x293),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x43e36d[_0x3aa376(0x283)]}},_0x244cf7=this['_transformService']['transformMutation'](_0x671655,_0x452798,!0x1);if(m[_0x3aa376(0x213)](_0x244cf7))throw _0x244cf7[_0x3aa376(0x338)];_0x3842c3[_0x3aa376(0x276)](_0x4a210d,{..._0x43e36d,'ranges':_0x244cf7[_0x3aa376(0x221)][_0x3aa376(0x2b3)][_0x3aa376(0x152)]});}queueMicrotask(()=>{const _0x12ee24=_0x3aa376;this[_0x12ee24(0x223)][_0x12ee24(0x2f4)](_0x3842c3);});})));}['_onCursorUpdate'](_0xbf6e26){const _0x11657b=_0x4b86e5;var _0x108e55,_0xfe3476;const {memberID:_0x4905b4,selection:_0x3fceba}=_0xbf6e26['data'],_0x49bb43=Je(_0x3fceba),_0xb7933d=(_0xfe3476=(_0x108e55=this[_0x11657b(0x33e)][_0x11657b(0x33f)](this[_0x11657b(0x146)],_0x4905b4))==null?void 0x0:_0x108e55['name'])!=null?_0xfe3476:_0x11657b(0x13f),_0x21c332={'color':this[_0x11657b(0x205)][_0x11657b(0xb9)](_0x4905b4),'name':_0xb7933d,'ranges':_0x49bb43},_0x3567b1=this[_0x11657b(0x142)];_0x3567b1[_0x11657b(0x276)](_0x4905b4,_0x21c332),this[_0x11657b(0x223)][_0x11657b(0x2f4)](_0x3567b1);}['_onCursorDelete'](_0x231595){const _0x359746=_0x4b86e5,{memberID:_0x53774e}=_0x231595[_0x359746(0x1cf)],_0x3a29e5=this[_0x359746(0x142)];_0x3a29e5[_0x359746(0x1b5)](_0x53774e),this[_0x359746(0x223)]['next'](_0x3a29e5);}['_toggleOnline'](){const _0x15340a=_0x4b86e5;var _0x418e5d;if(this['_online']=!0x0,((_0x418e5d=this[_0x15340a(0xea)][_0x15340a(0x17f)]())==null?void 0x0:_0x418e5d[_0x15340a(0x334)]())!==this[_0x15340a(0x146)])return;const _0x41bbe8=this[_0x15340a(0xde)][_0x15340a(0x2e2)](Y[_0x15340a(0x281)])[_0x15340a(0x1a9)]();Array[_0x15340a(0x2a8)](_0x41bbe8)&&_0x41bbe8[_0x15340a(0x214)]>0x0&&this['_updateLocalCursor'](_0x41bbe8);}[_0x4b86e5(0xcc)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x4b86e5(0x15b)](a['Injector'])),L(0x3,a['Inject'](me)),L(0x4,a['Inject'](u[_0x4b86e5(0x270)])),L(0x5,a[_0x4b86e5(0x15b)](Ce)),L(0x6,m[_0x4b86e5(0x13d)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x4b86e5(0x2c6)])],fe);var st=Object[_0x4b86e5(0x220)],it=(_0x41da0d,_0x1d65d2,_0x198ae2,_0x4396cc)=>{const _0x1b46d1=_0x4b86e5;for(var _0x9fe157=_0x4396cc>0x1?void 0x0:_0x4396cc?st(_0x1d65d2,_0x198ae2):_0x1d65d2,_0x48f7a4=_0x41da0d[_0x1b46d1(0x214)]-0x1,_0x1a2e33;_0x48f7a4>=0x0;_0x48f7a4--)(_0x1a2e33=_0x41da0d[_0x48f7a4])&&(_0x9fe157=_0x1a2e33(_0x9fe157)||_0x9fe157);return _0x9fe157;},A=(_0x5437d2,_0x22d3cb)=>(_0x3f8f5b,_0x42bbab)=>_0x22d3cb(_0x3f8f5b,_0x42bbab,_0x5437d2);const nt=0x12c,rt=0x64,ot=()=>{let _0x362211=[],_0x15d9dd=!0x1;return _0x3e4b7c=>{const _0x2f9821=_0x5371;_0x362211[_0x2f9821(0x29b)](_0x3e4b7c),_0x15d9dd||(_0x15d9dd=!0x0,setTimeout(()=>{_0x362211['forEach'](_0x4b0fee=>_0x4b0fee()),_0x362211=[],_0x15d9dd=!0x1;}));};};let Se=class extends a[_0x4b86e5(0x303)]{constructor(_0x33e2a8,_0x1bb532,_0x5acdf2,_0x55b31f,_0x671262,_0x4ba1d7,_0x2387e2,_0x5e446f){const _0x4e37a2=_0x4b86e5;super(),h(this,_0x4e37a2(0x126),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,_0x4e37a2(0x32f),this[_0x4e37a2(0x223)][_0x4e37a2(0x239)]()),h(this,_0x4e37a2(0x265),new d['BehaviorSubject']([])),h(this,'roomMembers$',this[_0x4e37a2(0x265)]['pipe'](d[_0x4e37a2(0x141)](nt))),h(this,_0x4e37a2(0x244),a['debounce']((_0x45a034,_0x171b96)=>{const _0x5aca33=_0x4e37a2,_0x49ce7a={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x5aca33(0x146)],'memberID':this[_0x5aca33(0x1b7)][_0x5aca33(0x22f)](),'selection':Ee[_0x5aca33(0x2c2)](_0x45a034,_0x171b96[_0x5aca33(0x29a)])}};this[_0x5aca33(0x1b7)][_0x5aca33(0x1ec)](_0x49ce7a,this[_0x5aca33(0x146)]);},rt)),(this['unitID']=_0x33e2a8,this['_session']=_0x1bb532,this[_0x4e37a2(0xde)]=_0x5acdf2,this[_0x4e37a2(0x205)]=_0x55b31f,this[_0x4e37a2(0x33e)]=_0x671262,this[_0x4e37a2(0xea)]=_0x4ba1d7,this[_0x4e37a2(0x2a6)]=_0x2387e2,this['_refRangeService']=_0x5e446f);}get[_0x4b86e5(0x142)](){const _0x57d275=_0x4b86e5;return this[_0x57d275(0x223)]['getValue']();}get[_0x4b86e5(0x177)](){const _0x107db3=_0x4b86e5;return this['_roomMembers$'][_0x107db3(0x2a7)]();}['dispose'](){const _0x5b8acd=_0x4b86e5;super['dispose'](),this[_0x5b8acd(0x223)][_0x5b8acd(0x2f4)](new Map()),this[_0x5b8acd(0x223)][_0x5b8acd(0x348)](),this[_0x5b8acd(0x265)]['next']([]),this['_roomMembers$']['complete']();}[_0x4b86e5(0x1ac)](){const _0x612286=_0x4b86e5;this[_0x612286(0x1f3)]||(this[_0x612286(0x1f3)]=!0x0,this[_0x612286(0x1b7)][_0x612286(0x20e)][_0x612286(0xff)](d['takeUntil'](this['dispose$']))[_0x612286(0x15e)](_0x3967ca=>{const _0x3b398c=_0x612286;_0x3967ca===u[_0x3b398c(0x225)][_0x3b398c(0x344)]?this[_0x3b398c(0x113)]():this[_0x3b398c(0xcc)]();}),this[_0x612286(0x1b7)][_0x612286(0x2bc)]['pipe'](d['takeUntil'](this[_0x612286(0x2a5)]))[_0x612286(0x15e)](_0x5baa10=>{const _0x42cb94=_0x612286,_0x2230a8=_0x5baa10[_0x42cb94(0x106)];_0x2230a8===m['CollaborationEvent'][_0x42cb94(0x2a1)]&&this[_0x42cb94(0xe3)](_0x5baa10),_0x2230a8===m[_0x42cb94(0x198)][_0x42cb94(0x165)]&&this['_onCursorDelete'](_0x5baa10);}),this[_0x612286(0x27a)](),this[_0x612286(0x240)](this[_0x612286(0x2a6)][_0x612286(0x178)](_0x3f54e2=>{const _0x567696=_0x612286;if(this[_0x567696(0x126)]&&_0x3f54e2['id']===g['SetSelectionsOperation']['id']&&_0x3f54e2[_0x567696(0x2b3)]['unitId']===this['unitID']){const _0x1f08e9=_0x3f54e2[_0x567696(0x2b3)];this[_0x567696(0x244)](_0x1f08e9[_0x567696(0x10c)],_0x1f08e9['selections'][0x0]);}})));}[_0x4b86e5(0xe3)](_0x4e6296){const _0x5471c3=_0x4b86e5;var _0x52aadf,_0x729e01;const {memberID:_0x1dc997,selection:_0x2ba5e9}=_0x4e6296[_0x5471c3(0x1cf)],{sheetName:_0x3e2fa4,range:_0x12f319}=Ee[_0x5471c3(0x192)](_0x2ba5e9),_0xd6907f={'name':(_0x729e01=(_0x52aadf=this[_0x5471c3(0x33e)][_0x5471c3(0x33f)](this[_0x5471c3(0x146)],_0x1dc997))==null?void 0x0:_0x52aadf[_0x5471c3(0x2ad)])!=null?_0x729e01:_0x5471c3(0x13f),'range':this[_0x5471c3(0x320)](_0x3e2fa4,_0x12f319),'sheetID':_0x3e2fa4,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1dc997),'selection':_0x2ba5e9},_0x18bf66=this['cursorInfo'];_0x18bf66[_0x5471c3(0x276)](_0x1dc997,_0xd6907f),this[_0x5471c3(0x223)]['next'](_0x18bf66);}[_0x4b86e5(0x243)](_0x3041ef){const _0x35699e=_0x4b86e5,{memberID:_0x362f98}=_0x3041ef[_0x35699e(0x1cf)],_0x6f304=this[_0x35699e(0x142)];_0x6f304[_0x35699e(0x1b5)](_0x362f98),this[_0x35699e(0x223)][_0x35699e(0x2f4)](_0x6f304);}[_0x4b86e5(0x320)](_0x405b50,_0x4c6a43){const _0x551d75=_0x4b86e5;var _0x524f67,_0x25d2aa;const _0x29e0a4=(_0x25d2aa=(_0x524f67=this[_0x551d75(0xea)][_0x551d75(0x2b4)](this[_0x551d75(0x146)]))==null?void 0x0:_0x524f67['getSheetBySheetId'](_0x405b50))==null?void 0x0:_0x25d2aa[_0x551d75(0x1af)]();return(_0x29e0a4==null?void 0x0:_0x29e0a4[_0x551d75(0x164)](_0x2b2ff2=>a[_0x551d75(0x19a)]['contains'](_0x2b2ff2,_0x4c6a43)))||_0x4c6a43;}[_0x4b86e5(0x27a)](){const _0x1e7acb=_0x4b86e5,_0x43b294=new a['DisposableCollection'](),_0x51bd8f=ot(),_0x5d0b65=()=>{const _0x287329=_0x5371;_0x43b294['dispose']();const _0x5b4b84=(_0x1c71a2,_0x318ca2,_0x414bcb,_0x53bef2)=>{const _0x40129c=_0x5371;let _0x291729=[];switch(_0x1c71a2['id']){case g[_0x40129c(0x2a9)]['DeleteRangeMoveLeftCommandId']:{_0x291729=g['handleDeleteRangeMoveLeft'](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0xd5)]:{_0x291729=g[_0x40129c(0x1d5)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0x1d1)]:{_0x291729=g[_0x40129c(0xef)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0x157)]:{_0x291729=g[_0x40129c(0x1f0)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0x155)]:{_0x291729=g[_0x40129c(0x2dc)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0x1ed)]:{_0x291729=g[_0x40129c(0x1d6)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0x2f9)]:{_0x291729=g[_0x40129c(0xdc)](_0x1c71a2,_0x53bef2);break;}case g['EffectRefRangId'][_0x40129c(0x311)]:{_0x291729=g[_0x40129c(0x1b2)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0xe5)]:{_0x291729=g[_0x40129c(0x307)](_0x1c71a2,_0x53bef2);break;}}const _0x2b159a=g['runRefRangeMutations'](_0x291729,_0x53bef2),_0x2c9e18=this['cursorInfo']['get'](_0x318ca2);if(_0x2c9e18&&_0x2b159a){const _0x59617e={..._0x2c9e18,'range':_0x2b159a};this['cursorInfo'][_0x40129c(0x276)](_0x318ca2,_0x59617e),_0x51bd8f(()=>{const _0x5367ec=_0x40129c,_0x3b1086=this[_0x5367ec(0xf4)][_0x5367ec(0x2aa)](_0x2b159a,_0x16b762=>(_0x3b1086[_0x5367ec(0x161)](),_0x5b4b84(_0x16b762,_0x318ca2,_0x414bcb,_0x2b159a)));_0x43b294[_0x5367ec(0x1c7)](_0x3b1086);});}return{'redos':[],'undos':[]};};this[_0x287329(0x142)][_0x287329(0x31f)]((_0x1f5679,_0x5bf13c)=>{const _0x33540f=_0x287329,{range:_0x205b55,sheetID:_0xc078e9}=_0x1f5679,_0xa5a905=this['_refRangeService']['registerRefRange'](_0x205b55,_0x5ba54a=>(_0xa5a905[_0x33540f(0x161)](),_0x5b4b84(_0x5ba54a,_0x5bf13c,_0xc078e9,_0x205b55)));_0x43b294[_0x33540f(0x1c7)](_0xa5a905);});};this[_0x1e7acb(0x240)](a[_0x1e7acb(0x1a7)](this[_0x1e7acb(0x223)][_0x1e7acb(0x15e)](()=>{_0x5d0b65();})));}[_0x4b86e5(0x113)](){const _0x43223c=_0x4b86e5;var _0x1904c0,_0x2eb53e;if(this[_0x43223c(0x126)]=!0x0,((_0x1904c0=this['_univerInstanceService'][_0x43223c(0x17f)]())==null?void 0x0:_0x1904c0[_0x43223c(0x334)]())!==this[_0x43223c(0x146)])return;const _0x466d70=(_0x2eb53e=this['_injector'][_0x43223c(0x2e2)](g[_0x43223c(0x112)])[_0x43223c(0x227)]())==null?void 0x0:_0x2eb53e[0x0],_0x36549c=this[_0x43223c(0xea)][_0x43223c(0xba)](a[_0x43223c(0x306)]['UNIVER_SHEET'])[_0x43223c(0x2de)]();_0x466d70&&_0x36549c&&this['_updateLocalCursor'](_0x36549c['getSheetId'](),_0x466d70);}[_0x4b86e5(0xcc)](){const _0x6ca717=_0x4b86e5;this[_0x6ca717(0x126)]=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0x4b86e5(0x183)])),A(0x3,a[_0x4b86e5(0x15b)](me)),A(0x4,a['Inject'](u[_0x4b86e5(0x270)])),A(0x5,a[_0x4b86e5(0x114)]),A(0x6,a[_0x4b86e5(0x2c6)]),A(0x7,a[_0x4b86e5(0x15b)](g[_0x4b86e5(0x324)]))],Se);var at=Object[_0x4b86e5(0x220)],ct=(_0x1d59d4,_0x24408e,_0x32522b,_0x411e04)=>{for(var _0x2b154d=_0x411e04>0x1?void 0x0:_0x411e04?at(_0x24408e,_0x32522b):_0x24408e,_0x41e784=_0x1d59d4['length']-0x1,_0x517f66;_0x41e784>=0x0;_0x41e784--)(_0x517f66=_0x1d59d4[_0x41e784])&&(_0x2b154d=_0x517f66(_0x2b154d)||_0x2b154d);return _0x2b154d;},ie=(_0x8bc932,_0x3faf91)=>(_0x569c1b,_0x51738f)=>_0x3faf91(_0x569c1b,_0x51738f,_0x8bc932);let x=class extends a[_0x4b86e5(0x303)]{constructor(_0x389b82,_0x515ce4,_0x56ea96){const _0x13b4a9=_0x4b86e5;super(),h(this,_0x13b4a9(0x174),new Map()),h(this,_0x13b4a9(0x14f),new d[(_0x13b4a9(0x1dd))]()),(this[_0x13b4a9(0xea)]=_0x389b82,this['_injector']=_0x515ce4,this[_0x13b4a9(0x345)]=_0x56ea96,this[_0x13b4a9(0x1f3)]());}[_0x4b86e5(0x161)](){const _0x2da54a=_0x4b86e5;super['dispose'](),this['_entityInit$'][_0x2da54a(0x348)](),this[_0x2da54a(0x174)]['forEach'](_0x1efe0e=>_0x1efe0e[_0x2da54a(0x161)]());}[_0x4b86e5(0x27c)](_0x5c95dc){const _0x18c2a1=_0x4b86e5;return this[_0x18c2a1(0x174)][_0x18c2a1(0x135)](_0x5c95dc)?this[_0x18c2a1(0x174)][_0x18c2a1(0x2e2)](_0x5c95dc)['cursorInfo$']:this['_entityInit$'][_0x18c2a1(0xff)](d[_0x18c2a1(0x32b)](_0x161862=>_0x161862[_0x18c2a1(0x146)]===_0x5c95dc),d[_0x18c2a1(0x11a)](_0x421677=>_0x421677[_0x18c2a1(0x32f)]));}[_0x4b86e5(0x1f3)](){const _0x4429e0=_0x4b86e5;this[_0x4429e0(0xea)][_0x4429e0(0x2cc)](a[_0x4429e0(0x306)]['UNIVER_SHEET'])[_0x4429e0(0xff)](d['takeUntil'](this[_0x4429e0(0x2a5)]))['subscribe'](async _0x724270=>{const _0x53515e=_0x4429e0,_0x10304e=_0x724270[_0x53515e(0x334)](),_0x1da657=await this[_0x53515e(0x2f1)](_0x10304e);this['_entityInit$']['next'](_0x1da657),this[_0x53515e(0x174)][_0x53515e(0x276)](_0x10304e,_0x1da657);}),this[_0x4429e0(0xea)][_0x4429e0(0x2cc)](a['UniverInstanceType'][_0x4429e0(0x1a8)])[_0x4429e0(0xff)](d[_0x4429e0(0x24b)](this[_0x4429e0(0x2a5)]))[_0x4429e0(0xff)](d['filter'](_0x3cb15b=>!_0x3cb15b[_0x4429e0(0x334)]()[_0x4429e0(0x29e)]('__')))[_0x4429e0(0x15e)](async _0x2e8fa6=>{const _0x2c2f51=_0x4429e0,_0x36330c=_0x2e8fa6[_0x2c2f51(0x334)](),_0x56e391=await this[_0x2c2f51(0x2bd)](_0x36330c);this[_0x2c2f51(0x14f)][_0x2c2f51(0x2f4)](_0x56e391),this['_entities'][_0x2c2f51(0x276)](_0x36330c,_0x56e391);}),d[_0x4429e0(0x2f7)](this['_univerInstanceService'][_0x4429e0(0x32c)](a[_0x4429e0(0x306)][_0x4429e0(0x1a8)]),this[_0x4429e0(0xea)][_0x4429e0(0x32c)](a[_0x4429e0(0x306)][_0x4429e0(0x207)]))[_0x4429e0(0xff)](d[_0x4429e0(0x24b)](this['dispose$']))['subscribe'](_0x366270=>{const _0xa06c58=_0x4429e0,_0x3102f9=_0x366270[_0xa06c58(0x334)](),_0x1172e5=this[_0xa06c58(0x174)][_0xa06c58(0x2e2)](_0x3102f9);_0x1172e5&&(_0x1172e5[_0xa06c58(0x161)](),this[_0xa06c58(0x174)][_0xa06c58(0x1b5)](_0x3102f9));});}async[_0x4b86e5(0x2f1)](_0x4d9256){const _0xa9a24e=_0x4b86e5,_0x592621=await this[_0xa9a24e(0x345)][_0xa9a24e(0x2fd)](_0x4d9256),_0x43268c=this[_0xa9a24e(0xde)][_0xa9a24e(0x23c)](Se,_0x4d9256,_0x592621);return _0x43268c['init'](),_0x43268c;}async[_0x4b86e5(0x2bd)](_0x20fd6b){const _0x16f908=_0x4b86e5,_0x182a0c=await this[_0x16f908(0x345)][_0x16f908(0x2fd)](_0x20fd6b),_0x296437=this[_0x16f908(0xde)]['createInstance'](fe,_0x20fd6b,_0x182a0c);return _0x296437['init'](),_0x296437;}};x=ct([ie(0x0,a[_0x4b86e5(0x114)]),ie(0x1,a['Inject'](a[_0x4b86e5(0x183)])),ie(0x2,a['Inject'](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4088a4,_0xf37a2e){const _0x4e31c9=_0x4b86e5;let {radius:_0x36ba7a,width:_0x39154b,height:_0x21e0f6}=_0xf37a2e;_0x36ba7a=_0x36ba7a!=null?_0x36ba7a:0x0,_0x39154b=_0x39154b!=null?_0x39154b:0x1e,_0x21e0f6=_0x21e0f6!=null?_0x21e0f6:0x1e;let _0x31c1b8=0x0,_0x1b658d=0x0,_0x3d648a=0x0;_0x31c1b8=_0x1b658d=_0x3d648a=Math[_0x4e31c9(0x130)](_0x36ba7a,_0x39154b/0x2,_0x21e0f6/0x2),_0x4088a4[_0x4e31c9(0x115)](),_0x4088a4[_0x4e31c9(0x25f)](_0x31c1b8,0x0),_0x4088a4['lineTo'](_0x39154b-_0x1b658d,0x0),_0x4088a4[_0x4e31c9(0x26e)](_0x39154b-_0x1b658d,_0x1b658d,_0x1b658d,Math['PI']*0x3/0x2,0x0,!0x1),_0x4088a4[_0x4e31c9(0x2cf)](_0x39154b,_0x21e0f6-_0x3d648a),_0x4088a4[_0x4e31c9(0x26e)](_0x39154b-_0x3d648a,_0x21e0f6-_0x3d648a,_0x3d648a,0x0,Math['PI']/0x2,!0x1),_0x4088a4[_0x4e31c9(0x2cf)](0x0,_0x21e0f6),_0x4088a4['lineTo'](0x0,_0x31c1b8),_0x4088a4[_0x4e31c9(0x26e)](_0x31c1b8,_0x31c1b8,_0x31c1b8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4088a4[_0x4e31c9(0x1ae)](),_0xf37a2e[_0x4e31c9(0x1cd)]&&(_0x4088a4[_0x4e31c9(0x2d4)](),_0x4088a4[_0x4e31c9(0x102)]=_0xf37a2e[_0x4e31c9(0x1cd)],_0xf37a2e[_0x4e31c9(0x2ac)]===_0x4e31c9(0x119)?_0x4088a4[_0x4e31c9(0x1cd)](_0x4e31c9(0x119)):_0x4088a4[_0x4e31c9(0x1cd)](),_0x4088a4[_0x4e31c9(0xd3)]());}class ee extends p[_0x4b86e5(0x2af)]{constructor(_0x460cbb,_0x4d14f8){const _0x98e215=_0x4b86e5;super(_0x460cbb,_0x4d14f8),h(this,_0x98e215(0x28e)),h(this,_0x98e215(0x327)),(this[_0x98e215(0x28e)]=_0x4d14f8==null?void 0x0:_0x4d14f8[_0x98e215(0x28e)],this['text']=_0x4d14f8==null?void 0x0:_0x4d14f8[_0x98e215(0x327)]);}static[_0x4b86e5(0xed)](_0x3989bd,_0x411557){const _0x3fcbe5=_0x4b86e5,{text:_0x44d01e,color:_0x2c3ebf}=_0x411557;_0x3989bd[_0x3fcbe5(0x2d4)](),_0x3989bd['font']=_0x3fcbe5(0xbe);const _0x1f88b1=_0x3989bd['measureText'](_0x44d01e)[_0x3fcbe5(0x18e)],_0x14d3ff=Math[_0x3fcbe5(0x130)](_0x1f88b1+0x2*ne,Re);_t(_0x3989bd,{'height':K,'radius':0x4,'width':_0x14d3ff,'fill':_0x2c3ebf}),_0x3989bd[_0x3fcbe5(0x102)]=_0x3fcbe5(0x2b7);const _0x225791=ne,_0x4adb11=K-lt,_0x7259b=Re-0x2*ne;if(_0x1f88b1>_0x7259b){let _0x5bd2e1='',_0x12d6d3=0x0;for(const _0x596f64 of _0x44d01e){const _0x2b9847=_0x3989bd[_0x3fcbe5(0x313)](_0x596f64)[_0x3fcbe5(0x18e)];if(_0x12d6d3+_0x2b9847<=_0x7259b-_0x3989bd['measureText'](_0x3fcbe5(0x131))[_0x3fcbe5(0x18e)])_0x5bd2e1+=_0x596f64,_0x12d6d3+=_0x2b9847;else{_0x5bd2e1+=_0x3fcbe5(0x131);break;}}_0x3989bd[_0x3fcbe5(0x111)](_0x5bd2e1,_0x225791,_0x4adb11);}else _0x3989bd[_0x3fcbe5(0x111)](_0x44d01e,_0x225791,_0x4adb11);_0x3989bd[_0x3fcbe5(0xd3)]();}[_0x4b86e5(0x2da)](_0x396d54){ee['drawWith'](_0x396d54,this);}}const re=_0x4b86e5(0x335),ht='collab-text-range-',ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x4b86e5(0x154);class De{constructor(_0x11cbae,_0x2d93ad,_0x68d3,_0x555f12){const _0x5a45b6=_0x4b86e5;h(this,_0x5a45b6(0x2ce),[]),h(this,_0x5a45b6(0xc0),null),h(this,_0x5a45b6(0x27f),null),h(this,_0x5a45b6(0x144),null),h(this,_0x5a45b6(0x280),null),h(this,'_eventUnsubscribe',null),(this[_0x5a45b6(0x209)]=_0x11cbae,this['_scene']=_0x2d93ad,this[_0x5a45b6(0x305)]=_0x68d3,this[_0x5a45b6(0x341)]=_0x555f12,this['_render']());}set[_0x4b86e5(0x236)](_0x550da7){const _0x3370d1=_0x4b86e5;_0x550da7?(this[_0x3370d1(0x144)]&&this[_0x3370d1(0x144)]['hide'](),this[_0x3370d1(0x27f)]&&this[_0x3370d1(0x27f)][_0x3370d1(0x1b3)]()):(this[_0x3370d1(0x144)]&&this[_0x3370d1(0x144)][_0x3370d1(0x1b3)](),this[_0x3370d1(0x27f)]&&this[_0x3370d1(0x27f)]['hide']());}[_0x4b86e5(0x161)](){const _0x4decbf=_0x4b86e5;for(const _0x236420 of this['_shapes'])_0x236420['dispose']();this[_0x4decbf(0x27f)]&&this[_0x4decbf(0x27f)][_0x4decbf(0x161)](),this[_0x4decbf(0x144)]&&this[_0x4decbf(0x144)][_0x4decbf(0x161)](),this[_0x4decbf(0xc0)]&&this['_anchor'][_0x4decbf(0x161)](),this[_0x4decbf(0x24d)]&&this[_0x4decbf(0x24d)]();}[_0x4b86e5(0x193)](){const _0x543409=_0x4b86e5;var _0x5f10e9;const {_docSkeleton:_0x184947,_document:_0x39d846}=this,{color:_0xbb4ca7,name:_0xcf8683,ranges:_0x81c691}=this[_0x543409(0x209)],_0x59a577=_0x39d846[_0x543409(0x2d3)](),{docsLeft:_0x2d41db,docsTop:_0x5f0295}=_0x59a577,_0x37bd36=new b[(_0x543409(0x340))](_0x59a577,_0x184947);for(const {startOffset:_0x5a6285,endOffset:_0x46e5aa,rangeType:_0x4425ae,segmentId:_0x2086a2,segmentPage:_0x3e3fa0,collapsed:_0x4db3d6,isActive:_0x1df7bc}of _0x81c691){const _0xb11645=_0x184947['findNodePositionByCharIndex'](_0x5a6285,!0x0,_0x2086a2,_0x3e3fa0);let _0x2dce5d=_0x184947[_0x543409(0xc1)](_0x46e5aa,!0x0,_0x2086a2,_0x3e3fa0);if(_0x2dce5d==null&&(_0x2dce5d=_0x184947[_0x543409(0xc1)](_0x46e5aa-0x1,!0x1,_0x2086a2,_0x3e3fa0)),_0x1df7bc){const {contentBoxPointGroup:_0x933058}=_0x37bd36[_0x543409(0x289)](_0x2dce5d,_0x2dce5d);if(_0x933058[_0x543409(0x214)]===0x0)continue;this[_0x543409(0x314)](_0xbb4ca7,_0x933058,_0x2d41db,_0x5f0295,_0xcf8683),this[_0x543409(0x24d)]=this[_0x543409(0x1b9)]();}if(_0xb11645&&_0x2dce5d){if(_0x4425ae===a[_0x543409(0x159)][_0x543409(0x21c)]){const _0x5189c4=new b[(_0x543409(0x11f))](_0x59a577,_0x184947),{pointGroup:_0x1c8163}=(_0x5f10e9=_0x5189c4['getRangePointData'](_0xb11645,_0x2dce5d))!=null?_0x5f10e9:{};if(_0x1c8163==null||_0x1c8163[_0x543409(0x214)]===0x0)continue;this['_drawRectRange'](_0xbb4ca7,_0x1c8163,_0x2d41db,_0x5f0295);}else{if(!_0x4db3d6){const {borderBoxPointGroup:_0xbca9b5}=_0x37bd36['getRangePointData'](_0xb11645,_0x2dce5d);if(_0xbca9b5['length']===0x0)continue;this[_0x543409(0x21f)](_0xbb4ca7,_0xbca9b5,_0x2d41db,_0x5f0295);}}}}}[_0x4b86e5(0x314)](_0xde8d57,_0x212591,_0x56c8c5,_0x2ade18,_0x5dc8ad){const _0x22d94e=_0x4b86e5,_0x45ef74=this[_0x22d94e(0x309)](_0x212591),{left:_0x5d6971,top:_0x33497c,height:_0x596439}=_0x45ef74,_0x4886ce=this[_0x22d94e(0x337)](),_0x36fb05=ft/_0x4886ce,_0x20c3b5=new p[(_0x22d94e(0x180))](re+a[_0x22d94e(0x1ef)][_0x22d94e(0x160)](k),{'left':_0x5d6971+_0x56c8c5-_0x36fb05,'top':_0x33497c+_0x2ade18,'height':_0x596439,'width':dt,'fill':_0xde8d57||p[_0x22d94e(0x2cd)](a[_0x22d94e(0x2fe)][_0x22d94e(0xcd)],0x0),'strokeWidth':_0x36fb05,'stroke':St,'evented':!0x0});this[_0x22d94e(0xc0)]=_0x20c3b5,this[_0x22d94e(0x33b)][_0x22d94e(0x255)](_0x20c3b5,b[_0x22d94e(0xc2)]);const _0x3b2ac3=new p[(_0x22d94e(0x180))](re+a[_0x22d94e(0x1ef)][_0x22d94e(0x160)](k),{'left':_0x5d6971+_0x56c8c5-_0x36fb05,'top':_0x33497c+_0x2ade18-oe/0x2,'height':oe,'width':oe,'fill':_0xde8d57||p[_0x22d94e(0x2cd)](a[_0x22d94e(0x2fe)][_0x22d94e(0xcd)],0x0),'strokeWidth':0x0,'stroke':_0xde8d57||p[_0x22d94e(0x2cd)](a['COLORS']['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x3b2ac3,this[_0x22d94e(0x33b)]['addObject'](_0x3b2ac3,b['TEXT_RANGE_LAYER_INDEX']);const _0x4eca89=new ee(re+a[_0x22d94e(0x1ef)][_0x22d94e(0x160)](k),{'left':_0x5d6971+_0x56c8c5-_0x36fb05,'top':_0x33497c+_0x2ade18-K,'text':_0x5dc8ad,'color':_0xde8d57});this['_textBubble']=_0x4eca89,this['_scene'][_0x22d94e(0x255)](_0x4eca89,b['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x4b86e5(0x1b9)](){const _0x3f2773=_0x4b86e5,_0x318a36=this['_anchor'][_0x3f2773(0x2d7)][_0x3f2773(0x151)](()=>{const _0x3d8f4a=_0x3f2773;this[_0x3d8f4a(0x236)]=!0x0;}),_0x22332d=this[_0x3f2773(0xc0)][_0x3f2773(0x20a)][_0x3f2773(0x151)](()=>{const _0x31582b=_0x3f2773;this[_0x31582b(0x280)]&&clearTimeout(this[_0x31582b(0x280)]),this['_hideTimer']=setTimeout(()=>{const _0x3378fa=_0x31582b;this[_0x3378fa(0x236)]=!0x1;},0x7d0);});return()=>{const _0x1d7fe6=_0x3f2773;_0x318a36[_0x1d7fe6(0x15c)](),_0x22332d[_0x1d7fe6(0x15c)]();};}[_0x4b86e5(0x21f)](_0x4bca12,_0x887524,_0xca0259,_0x4716a2){const _0x2a568f=_0x4b86e5,_0x1007c2=new a[(_0x2a568f(0x247))](_0x4bca12)[_0x2a568f(0x286)](0.2)['toRgbString'](),_0x2bfc7b=new p[(_0x2a568f(0x208))](ht+a[_0x2a568f(0x1ef)]['generateRandomId'](k),{'pointsGroup':_0x887524,'fill':_0x1007c2||p[_0x2a568f(0x2cd)](a[_0x2a568f(0x2fe)][_0x2a568f(0xcd)],0.2),'left':_0xca0259,'top':_0x4716a2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2a568f(0x2ce)][_0x2a568f(0x29b)](_0x2bfc7b),this[_0x2a568f(0x33b)][_0x2a568f(0x255)](_0x2bfc7b,b['TEXT_RANGE_LAYER_INDEX']);}[_0x4b86e5(0x2db)](_0xf2311c,_0x447f8f,_0x8ca172,_0x532e5b){const _0x25a269=_0x4b86e5,_0x408228=new a['ColorKit'](_0xf2311c)[_0x25a269(0x286)](0.2)[_0x25a269(0x2fc)](),_0x2178a8=new p[(_0x25a269(0x208))](ut+a[_0x25a269(0x1ef)][_0x25a269(0x160)](k),{'pointsGroup':_0x447f8f,'fill':_0x408228||p[_0x25a269(0x2cd)](a[_0x25a269(0x2fe)][_0x25a269(0xcd)],0.2),'left':_0x8ca172,'top':_0x532e5b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x25a269(0x2ce)][_0x25a269(0x29b)](_0x2178a8),this[_0x25a269(0x33b)][_0x25a269(0x255)](_0x2178a8,b['TEXT_RANGE_LAYER_INDEX']);}[_0x4b86e5(0x309)](_0x22b843){const _0x229459=_0x22b843[0x0],_0x38b5d4=_0x229459[0x0],_0x2c8366=_0x229459[0x2],{x:_0x1f68a3,y:_0xf880}=_0x38b5d4,{x:_0x33dd32,y:_0x3ab005}=_0x2c8366;return{'left':_0x1f68a3,'top':_0xf880,'width':_0x33dd32-_0x1f68a3,'height':_0x3ab005-_0xf880};}[_0x4b86e5(0x337)](){const _0x1e478f=_0x4b86e5,{scaleX:_0x4d1405,scaleY:_0xcf0f85}=this[_0x1e478f(0x33b)][_0x1e478f(0x272)]();return Math[_0x1e478f(0x101)](_0x4d1405,_0xcf0f85);}}var It=Object[_0x4b86e5(0x220)],vt=(_0x3090ae,_0x3d1e04,_0x3b3be0,_0x443bdb)=>{for(var _0x1ebee4=_0x443bdb>0x1?void 0x0:_0x443bdb?It(_0x3d1e04,_0x3b3be0):_0x3d1e04,_0x1811f0=_0x3090ae['length']-0x1,_0x3345e3;_0x1811f0>=0x0;_0x1811f0--)(_0x3345e3=_0x3090ae[_0x1811f0])&&(_0x1ebee4=_0x3345e3(_0x1ebee4)||_0x1ebee4);return _0x1ebee4;},W=(_0x488f5b,_0x5291a1)=>(_0x32d0d4,_0x54871f)=>_0x5291a1(_0x32d0d4,_0x54871f,_0x488f5b);let Ie=class extends a[_0x4b86e5(0x303)]{constructor(_0x1f3baf,_0x14882b,_0x445494,_0x348b1c,_0x3025a6){const _0x1606bf=_0x4b86e5;super(),h(this,_0x1606bf(0x256),[]),h(this,'_cursors',[]),(this[_0x1606bf(0x342)]=_0x1f3baf,this[_0x1606bf(0x121)]=_0x14882b,this['_collabCursorController']=_0x445494,this[_0x1606bf(0x2a6)]=_0x348b1c,this[_0x1606bf(0x170)]=_0x3025a6,this[_0x1606bf(0x1f3)]());}[_0x4b86e5(0x1f3)](){const _0x1264d2=_0x4b86e5,_0x18609b=this[_0x1264d2(0x342)]['unitId'],_0xee3db6=this[_0x1264d2(0x121)];this[_0x1264d2(0x240)](d[_0x1264d2(0x33d)]([this['_collabCursorController']['getCollabCursors$'](_0x18609b),this[_0x1264d2(0x170)][_0x1264d2(0x2c4)]])[_0x1264d2(0xff)]($['map'](([_0xa07496,_0x66391b])=>({'skeleton':_0xee3db6['getSkeleton'](),'cursors':[..._0xa07496[_0x1264d2(0x1cc)]()][_0x1264d2(0x120)](_0x10c93c=>({..._0x10c93c,'color':this[_0x1264d2(0x170)][_0x1264d2(0x25a)](_0x10c93c[_0x1264d2(0x28e)])}))})))['subscribe'](_0x1b8dca=>{const _0x3ae881=_0x1264d2;if(this[_0x3ae881(0x328)](),_0x1b8dca){const {skeleton:_0x5dc9c4,cursors:_0x5bb297}=_0x1b8dca;this[_0x3ae881(0x1e0)](_0x5dc9c4,_0x5bb297);}})),this[_0x1264d2(0x2e0)](),this[_0x1264d2(0x20d)]();}['_updateCollabCursors'](_0x53e271,_0x2c17bb){const _0x136137=_0x4b86e5,{scene:_0x11e0c0,mainComponent:_0x53bfc2}=this[_0x136137(0x342)],_0x483d1a=_0x2c17bb['map'](_0x45cd1a=>new De(_0x45cd1a,_0x11e0c0,_0x53e271,_0x53bfc2));this[_0x136137(0x256)]=_0x483d1a,this[_0x136137(0x33a)]=_0x2c17bb;}[_0x4b86e5(0x2eb)](){const _0x27d0e6=_0x4b86e5;this['_removeCollabCursors']();const {scene:_0x15d4b9,mainComponent:_0x8dc81c}=this[_0x27d0e6(0x342)],_0x2d74ba=this['_docSkeletonManagerService'][_0x27d0e6(0x2f8)](),_0x5964ce=this[_0x27d0e6(0x33a)][_0x27d0e6(0x2e3)](_0x5a10ac=>new De(_0x5a10ac,_0x15d4b9,_0x2d74ba,_0x8dc81c));this[_0x27d0e6(0x256)]=_0x5964ce;}[_0x4b86e5(0x328)](){const _0x4be7d8=_0x4b86e5;this[_0x4be7d8(0x256)][_0x4be7d8(0x31f)](_0x56fc4d=>_0x56fc4d[_0x4be7d8(0x161)]()),this[_0x4be7d8(0x256)]=[];}[_0x4b86e5(0x20d)](){const _0xaa6405=_0x4b86e5,_0x1c7700=[b[_0xaa6405(0x1c4)]['id']];this[_0xaa6405(0x240)](this[_0xaa6405(0x2a6)][_0xaa6405(0x178)](_0x5cee13=>{const _0x559f5a=_0xaa6405;_0x1c7700[_0x559f5a(0x1fa)](_0x5cee13['id'])&&_0x5cee13[_0x559f5a(0x2b3)]['unitId']===this[_0x559f5a(0x342)][_0x559f5a(0x2e1)]&&this[_0x559f5a(0x2eb)]();}));}[_0x4b86e5(0x2e0)](){const _0x116a95=_0x4b86e5;this[_0x116a95(0x240)](a[_0x116a95(0x336)](this[_0x116a95(0x342)][_0x116a95(0x129)][_0x116a95(0x212)])[_0x116a95(0xff)]($[_0x116a95(0x32b)](_0x2fb1f5=>_0x2fb1f5[_0x116a95(0xfe)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$[_0x116a95(0x2a3)](0x10))[_0x116a95(0x15e)](()=>{const _0x5f85fc=_0x116a95;this[_0x5f85fc(0x2eb)]();}));}};Ie=vt([W(0x1,a[_0x4b86e5(0x15b)](Y[_0x4b86e5(0x197)])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x104)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x4b86e5(0x2af)]{constructor(_0x2bde4e,_0x9166a){const _0x7aa41d=_0x4b86e5;super(_0x2bde4e,_0x9166a),h(this,_0x7aa41d(0x1cb)),h(this,_0x7aa41d(0x140),!0x1),h(this,_0x7aa41d(0x25e)),h(this,_0x7aa41d(0xf2),''),h(this,_0x7aa41d(0x22e),_0x7aa41d(0x2d1)),h(this,_0x7aa41d(0x185)),(_0x9166a&&this[_0x7aa41d(0x318)](_0x9166a),this[_0x7aa41d(0x2d7)][_0x7aa41d(0x151)](()=>this[_0x7aa41d(0x318)]({'hovered':!0x0})),this[_0x7aa41d(0x20a)][_0x7aa41d(0x151)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4b86e5(0x318)](_0x39b456){const _0x2c7fd5=_0x4b86e5;var _0x3b62cc,_0x29e696,_0x5d9d36,_0x59687d,_0x2293be,_0x5efbcb;this[_0x2c7fd5(0x1cb)]=(_0x3b62cc=_0x39b456[_0x2c7fd5(0x28e)])!=null?_0x3b62cc:this[_0x2c7fd5(0x1cb)],this[_0x2c7fd5(0x140)]=(_0x29e696=_0x39b456[_0x2c7fd5(0x346)])!=null?_0x29e696:this[_0x2c7fd5(0x140)],this['_range']=(_0x5d9d36=_0x39b456[_0x2c7fd5(0x29a)])!=null?_0x5d9d36:this[_0x2c7fd5(0x25e)],this['_name']=(_0x59687d=_0x39b456[_0x2c7fd5(0x2ad)])!=null?_0x59687d:this[_0x2c7fd5(0xf2)],this[_0x2c7fd5(0x22e)]=(_0x2293be=_0x39b456[_0x2c7fd5(0x202)])!=null?_0x2293be:this[_0x2c7fd5(0x22e)],this[_0x2c7fd5(0x185)]=(_0x5efbcb=_0x39b456[_0x2c7fd5(0x1ab)])!=null?_0x5efbcb:this[_0x2c7fd5(0x185)],this[_0x2c7fd5(0xcb)]({'width':_0x39b456['width'],'height':_0x39b456['height']});}[_0x4b86e5(0xf0)](_0x1bfa9f){const _0x266a0c=_0x4b86e5,{row:_0x917cbb,column:_0xe58269}=_0x1bfa9f;if(_0x917cbb>=this[_0x266a0c(0x25e)][_0x266a0c(0x25b)]&&_0x917cbb<=this[_0x266a0c(0x25e)]['endRow']&&_0xe58269>=this['_range']['startColumn']&&_0xe58269<=this['_range']['endColumn']){this[_0x266a0c(0x318)]({'hovered':!0x0});return;}this[_0x266a0c(0x318)]({'hovered':!0x1});}[_0x4b86e5(0x1b6)](_0x354936){return!0x1;}[_0x4b86e5(0x2da)](_0x14227b){const _0x116b39=_0x4b86e5;p['Rect']['drawWith'](_0x14227b,{'width':this[_0x116b39(0x18e)],'height':this[_0x116b39(0x1be)],'strokeWidth':mt,'stroke':this[_0x116b39(0x1cb)],'evented':!0x1,'fill':this[_0x116b39(0x185)]}),this[_0x116b39(0x140)]&&(_0x14227b[_0x116b39(0x2d4)](),_0x14227b[_0x116b39(0x258)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x116b39(0x24f)?0x0:-0x14),ee[_0x116b39(0xed)](_0x14227b,{'text':this[_0x116b39(0xf2)],'color':this[_0x116b39(0x1cb)]}),_0x14227b[_0x116b39(0xd3)]());}}var Ct=Object[_0x4b86e5(0x220)],pt=(_0x292f25,_0xe6fda2,_0x5bb260,_0x4e5c57)=>{const _0x59097c=_0x4b86e5;for(var _0x145cc8=_0x4e5c57>0x1?void 0x0:_0x4e5c57?Ct(_0xe6fda2,_0x5bb260):_0xe6fda2,_0x4f327a=_0x292f25[_0x59097c(0x214)]-0x1,_0x6a412c;_0x4f327a>=0x0;_0x4f327a--)(_0x6a412c=_0x292f25[_0x4f327a])&&(_0x145cc8=_0x6a412c(_0x145cc8)||_0x145cc8);return _0x145cc8;},ae=(_0x461f43,_0x12edcd)=>(_0x12d654,_0x35d3b2)=>_0x12edcd(_0x12d654,_0x35d3b2,_0x461f43);const bt=0x1389;let ve=class extends a[_0x4b86e5(0x303)]{constructor(_0x191181,_0x36d145,_0x4a1416,_0x3234c6){const _0x2386c6=_0x4b86e5;super(),h(this,'_cursors',new Set()),h(this,_0x2386c6(0x1f9),null),(this[_0x2386c6(0x342)]=_0x191181,this[_0x2386c6(0x26d)]=_0x36d145,this[_0x2386c6(0x16d)]=_0x4a1416,this[_0x2386c6(0x170)]=_0x3234c6,this[_0x2386c6(0x1f3)]());}[_0x4b86e5(0x1f3)](){const _0x4792a6=_0x4b86e5;this[_0x4792a6(0x26d)][_0x4792a6(0x13b)][_0x4792a6(0xff)]($['takeUntil'](this[_0x4792a6(0x2a5)]),$[_0x4792a6(0x11a)](_0x69c658=>{const _0x2e6127=_0x4792a6;if(_0x69c658){const _0x1e5401=_0x69c658[_0x2e6127(0x262)];return d[_0x2e6127(0x33d)](this['_collabCursorController'][_0x2e6127(0x27c)](this[_0x2e6127(0x342)][_0x2e6127(0x2e1)]),this[_0x2e6127(0x170)][_0x2e6127(0x2c4)])[_0x2e6127(0xff)]($[_0x2e6127(0x2e3)](([_0x22e0e6,_0x5d0dab])=>{const _0x91e28b=_0x2e6127,_0x46aafb=new Map();return _0x22e0e6[_0x91e28b(0x31f)]((_0x18d44b,_0x351a6b)=>{const _0x220542=_0x91e28b;if(_0x18d44b[_0x220542(0x1a2)]===_0x1e5401){const _0x5959a5={..._0x18d44b};_0x5959a5['color']=this[_0x220542(0x170)]['getColorFromTheme'](_0x18d44b[_0x220542(0x28e)]),_0x46aafb[_0x220542(0x276)](_0x351a6b,_0x5959a5);}}),{'skeleton':_0x69c658,'cursors':_0x46aafb};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x4792a6(0x15e)](({skeleton:_0x23c32f,cursors:_0x33ab1c})=>{const _0x53638e=_0x4792a6;this['_removeCollabCursors'](),_0x23c32f&&this[_0x53638e(0x1e0)](_0x23c32f,_0x33ab1c);}),this[_0x4792a6(0x26d)][_0x4792a6(0x13b)]['subscribe'](_0x28cd1b=>{const _0x4bca60=_0x4792a6;if(_0x28cd1b==null)return;const {skeleton:_0x115e03}=_0x28cd1b,{scene:_0x131155}=this[_0x4bca60(0x342)];_0x131155[_0x4bca60(0x217)][_0x4bca60(0x151)](a[_0x4bca60(0x18c)](_0x40acea=>{const _0x59454b=_0x4bca60;var _0x570eee,_0x4462ca;const {offsetX:_0x566305,offsetY:_0x107ab9}=_0x40acea,{x:_0x271d10,y:_0x298990}=_0x131155[_0x59454b(0x28d)](p[_0x59454b(0x182)][_0x59454b(0x34a)]([_0x566305,_0x107ab9])),{scaleX:_0x12ffec,scaleY:_0x552d72}=_0x131155['getAncestorScale'](),_0x11d345=_0x131155['getViewport'](p['SHEET_VIEWPORT_KEY'][_0x59454b(0x158)]),_0x5ece2d=_0x131155[_0x59454b(0x2ec)](p[_0x59454b(0x182)][_0x59454b(0x34a)]([_0x271d10,_0x298990]),_0x11d345),_0x847033=_0x115e03[_0x59454b(0x1d7)](_0x566305,_0x107ab9,_0x12ffec,_0x552d72,_0x5ece2d);((_0x570eee=this[_0x59454b(0x1f9)])==null?void 0x0:_0x570eee[_0x59454b(0x2e9)])===_0x847033[_0x59454b(0x2e9)]&&((_0x4462ca=this['_lastPointer'])==null?void 0x0:_0x4462ca[_0x59454b(0x253)])===_0x847033[_0x59454b(0x253)]||this[_0x59454b(0x33a)]['forEach'](_0xc46a0f=>{const _0x223c58=_0x59454b;_0xc46a0f[_0x223c58(0xf0)](_0x847033);});},0x64));});}[_0x4b86e5(0x1e0)](_0xc4f9b8,_0x2920bf){const _0x586ce6=_0x4b86e5;var _0x1a6038;const _0x2f045d=(_0x1a6038=this[_0x586ce6(0x26d)]['getCurrent']())==null?void 0x0:_0x1a6038[_0x586ce6(0x266)];if(!_0x2f045d)return;const _0x292d3d=this[_0x586ce6(0x1b1)]();if(!_0x292d3d)return;this[_0x586ce6(0x33a)][_0x586ce6(0x31f)](_0x3ce7ed=>{const _0x43ed25=_0x586ce6;_0x3ce7ed[_0x43ed25(0x1a0)]();});const {scene:_0x2905d1}=_0x292d3d,_0x2fd677=Et(Array[_0x586ce6(0xe0)](_0x2920bf[_0x586ce6(0x1cc)]()))[_0x586ce6(0x2e3)](_0x3f86f3=>{const _0x3928fd=_0x586ce6,{color:_0x4d682e,range:_0x17a862,name:_0x18181f,selection:_0x453f88,sheetID:_0x198de5}=_0x3f86f3,{startColumn:_0x1ee5c1,startRow:_0x50fb13,endColumn:_0x4df1ca,endRow:_0x47fe85}=_0x17a862,_0x2b83a4=X[_0x3928fd(0x1da)](_0x50fb13,_0x1ee5c1,_0x2905d1,_0x2f045d),_0x4e4c4e=X['getCoordByCell'](_0x47fe85,_0x4df1ca,_0x2905d1,_0x2f045d),{columnHeaderHeightAndMarginTop:_0x459e94}=_0x2f045d,{startX:_0x35b87c,startY:_0xf2c92e}=_0x2b83a4,{endX:_0x1f6662,endY:_0x15efb0}=_0x4e4c4e,_0x425022=_0x1f6662-_0x35b87c,_0x5e0906=_0x15efb0-_0xf2c92e,_0x2a474c={'labelPosition':_0xf2c92e-_0x459e94>=K?_0x3928fd(0x2d1):'bottom','sheetID':_0x198de5,'range':_0x17a862,'color':_0x4d682e,'name':_0x18181f,'selection':_0x453f88,'left':_0x35b87c,'top':_0xf2c92e,'width':_0x425022,'height':_0x5e0906,'evented':!0x1,'zIndex':bt};return new Pe(_0x18181f,_0x2a474c);});_0x2905d1[_0x586ce6(0x143)](_0x2fd677,gt),this['_cursors']=new Set(_0x2fd677);}[_0x4b86e5(0x328)](){const _0x33af1f=_0x4b86e5;var _0x11f732;(_0x11f732=this[_0x33af1f(0x33a)])==null||_0x11f732[_0x33af1f(0x31f)](_0x35fdc7=>_0x35fdc7['dispose']());}[_0x4b86e5(0x1b1)](){const _0x103139=_0x4b86e5;return X['getSheetObject'](this['_context'][_0x103139(0xf1)],this['_context']);}};ve=pt([ae(0x1,a['Inject'](X[_0x4b86e5(0x134)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x104)]))],ve);function Et(_0x4aed5a){const _0x1d95fd=_0x4b86e5,_0x9f4aa6=new Map();return _0x4aed5a['forEach'](_0x1c0ba8=>{const _0x2a4291=_0x5371;if(_0x9f4aa6[_0x2a4291(0x135)](_0x1c0ba8[_0x2a4291(0x1e2)])){const _0x423617=_0x9f4aa6[_0x2a4291(0x2e2)](_0x1c0ba8[_0x2a4291(0x1e2)]);_0x423617['name']+=',\x20'+_0x1c0ba8['name'];}else _0x9f4aa6['set'](_0x1c0ba8[_0x2a4291(0x1e2)],_0x1c0ba8);}),Array[_0x1d95fd(0xe0)](_0x9f4aa6[_0x1d95fd(0x1cc)]());}var E=function(){const _0x1dd0f9=_0x4b86e5;return E=Object[_0x1dd0f9(0x264)]||function(_0x48cf48){const _0x187268=_0x1dd0f9;for(var _0x17568c,_0x24caed=0x1,_0x3410ff=arguments['length'];_0x24caed<_0x3410ff;_0x24caed++){_0x17568c=arguments[_0x24caed];for(var _0x56eaef in _0x17568c)Object['prototype'][_0x187268(0x284)][_0x187268(0x2a4)](_0x17568c,_0x56eaef)&&(_0x48cf48[_0x56eaef]=_0x17568c[_0x56eaef]);}return _0x48cf48;},E[_0x1dd0f9(0x109)](this,arguments);},Tt=function(_0x1ff499,_0x57ba18){const _0x3c484d=_0x4b86e5;var _0x1338c3={};for(var _0x2ffded in _0x1ff499)Object[_0x3c484d(0x179)][_0x3c484d(0x284)][_0x3c484d(0x2a4)](_0x1ff499,_0x2ffded)&&_0x57ba18['indexOf'](_0x2ffded)<0x0&&(_0x1338c3[_0x2ffded]=_0x1ff499[_0x2ffded]);if(_0x1ff499!=null&&typeof Object[_0x3c484d(0x237)]==_0x3c484d(0x1fb)){for(var _0x1202da=0x0,_0x2ffded=Object[_0x3c484d(0x237)](_0x1ff499);_0x1202da<_0x2ffded[_0x3c484d(0x214)];_0x1202da++)_0x57ba18[_0x3c484d(0xb5)](_0x2ffded[_0x1202da])<0x0&&Object[_0x3c484d(0x179)][_0x3c484d(0x288)]['call'](_0x1ff499,_0x2ffded[_0x1202da])&&(_0x1338c3[_0x2ffded[_0x1202da]]=_0x1ff499[_0x2ffded[_0x1202da]]);}return _0x1338c3;},pe=M['forwardRef'](function(_0x4e5a28,_0x29ef40){const _0x4e4575=_0x4b86e5;var _0x2a9768=_0x4e5a28['icon'],_0x16a621=_0x4e5a28['id'],_0x192c68=_0x4e5a28[_0x4e4575(0x1b0)],_0x21a50a=_0x4e5a28[_0x4e4575(0x21b)],_0x18ba20=Tt(_0x4e5a28,[_0x4e4575(0x2c0),'id',_0x4e4575(0x1b0),'extend']),_0x313506=_0x4e4575(0x1b4)[_0x4e4575(0xe1)](_0x16a621,'\x20')[_0x4e4575(0xe1)](_0x192c68||'')['trim'](),_0xb8445d=M['useRef']('_'[_0x4e4575(0xe1)](Dt()));return Ae(_0x2a9768,''[_0x4e4575(0xe1)](_0x16a621),{'defIds':_0x2a9768[_0x4e4575(0x267)],'idSuffix':_0xb8445d[_0x4e4575(0x13e)]},E({'ref':_0x29ef40,'className':_0x313506},_0x18ba20),_0x21a50a);});function Ae(_0x3f3721,_0x52f7c0,_0x36add0,_0x3e1500,_0x36b368){const _0x604590=_0x4b86e5;return M['createElement'](_0x3f3721[_0x604590(0x199)],E(E({'key':_0x52f7c0},Ot(_0x3f3721,_0x36add0,_0x36b368)),_0x3e1500),(Rt(_0x3f3721,_0x36add0)[_0x604590(0x108)]||[])[_0x604590(0x2e3)](function(_0x117844,_0x4cbe4f){const _0x108055=_0x604590;return Ae(_0x117844,''[_0x108055(0xe1)](_0x52f7c0,'-')['concat'](_0x3f3721[_0x108055(0x199)],'-')['concat'](_0x4cbe4f),_0x36add0,void 0x0,_0x36b368);}));}function Ot(_0xe0d9f,_0x51ec05,_0xedd396){const _0x35414c=_0x4b86e5;var _0x1dc502=E({},_0xe0d9f['attrs']);_0xedd396!=null&&_0xedd396[_0x35414c(0x10f)]&&_0x1dc502[_0x35414c(0x1cd)]===_0x35414c(0x10f)&&(_0x1dc502['fill']=_0xedd396['colorChannel1']),_0xe0d9f[_0x35414c(0x199)]===_0x35414c(0x2f2)&&_0x1dc502['id']&&(_0x1dc502['id']=_0x1dc502['id']+_0x51ec05[_0x35414c(0x29f)]),Object[_0x35414c(0x1bb)](_0x1dc502)[_0x35414c(0x31f)](function(_0x4222a5){const _0x3c9f31=_0x35414c;var _0xef8543=_0x4222a5[0x0],_0xd8ec6c=_0x4222a5[0x1];_0xef8543==='mask'&&typeof _0xd8ec6c==_0x3c9f31(0x187)&&(_0x1dc502[_0xef8543]=_0xd8ec6c[_0x3c9f31(0x181)](/url\(#(.*)\)/,_0x3c9f31(0x1c8)[_0x3c9f31(0xe1)](_0x51ec05[_0x3c9f31(0x29f)],')')));});var _0x481616=_0x51ec05[_0x35414c(0x267)];return!_0x481616||_0x481616[_0x35414c(0x214)]===0x0||(_0xe0d9f[_0x35414c(0x199)]===_0x35414c(0x245)&&_0x1dc502[_0x35414c(0xd6)]&&(_0x1dc502[_0x35414c(0xd6)]=_0x1dc502[_0x35414c(0xd6)]+_0x51ec05['idSuffix']),Object[_0x35414c(0x1bb)](_0x1dc502)[_0x35414c(0x31f)](function(_0x1ae46a){const _0x5f7711=_0x35414c;var _0x1a7302=_0x1ae46a[0x0],_0x5dc862=_0x1ae46a[0x1];typeof _0x5dc862=='string'&&(_0x1dc502[_0x1a7302]=_0x5dc862[_0x5f7711(0x181)](/url\(#(.*)\)/,'url(#$1'[_0x5f7711(0xe1)](_0x51ec05['idSuffix'],')')));})),_0x1dc502;}function Rt(_0x1aed16,_0x30c171){const _0x557307=_0x4b86e5;var _0x529075,_0x106d70=_0x30c171[_0x557307(0x267)];return!_0x106d70||_0x106d70[_0x557307(0x214)]===0x0?_0x1aed16:_0x1aed16['tag']===_0x557307(0x2dd)&&(!((_0x529075=_0x1aed16[_0x557307(0x108)])===null||_0x529075===void 0x0)&&_0x529075[_0x557307(0x214)])?E(E({},_0x1aed16),{'children':_0x1aed16[_0x557307(0x108)]['map'](function(_0x4be0bc){const _0x50b72f=_0x557307;return typeof _0x4be0bc[_0x50b72f(0x1d8)]['id']==_0x50b72f(0x187)&&_0x106d70&&_0x106d70[_0x50b72f(0x1fa)](_0x4be0bc['attrs']['id'])?E(E({},_0x4be0bc),{'attrs':E(E({},_0x4be0bc[_0x50b72f(0x1d8)]),{'id':_0x4be0bc[_0x50b72f(0x1d8)]['id']+_0x30c171[_0x50b72f(0x29f)]})}):_0x4be0bc;})}):_0x1aed16;}function Dt(){const _0x6892b7=_0x4b86e5;return Math['random']()[_0x6892b7(0x10a)](0x24)[_0x6892b7(0x14a)](0x2,0x8);}pe['displayName']=_0x4b86e5(0x2d2);var Ut={'tag':_0x4b86e5(0x27b),'attrs':{'xmlns':_0x4b86e5(0x296),'fill':'none','viewBox':_0x4b86e5(0x31e),'width':_0x4b86e5(0xcf),'height':_0x4b86e5(0xcf)},'children':[{'tag':'g','attrs':{'clipPath':_0x4b86e5(0x105)},'children':[{'tag':_0x4b86e5(0x19f),'attrs':{'stroke':_0x4b86e5(0x200),'d':_0x4b86e5(0x12b),'strokeLinecap':_0x4b86e5(0x347),'strokeLinejoin':_0x4b86e5(0x347),'strokeWidth':1.2}}]},{'tag':_0x4b86e5(0x2dd),'attrs':{},'children':[{'tag':_0x4b86e5(0x163),'attrs':{'id':_0x4b86e5(0x11e)},'children':[{'tag':_0x4b86e5(0x19f),'attrs':{'fill':_0x4b86e5(0x310),'d':_0x4b86e5(0x2d0)}}]}]}],'defIds':[_0x4b86e5(0x11e)]},ye=M[_0x4b86e5(0x1d2)](function(_0x162c99,_0x5de429){const _0x35cfb6=_0x4b86e5;return M[_0x35cfb6(0x22c)](pe,Object[_0x35cfb6(0x264)]({},_0x162c99,{'id':_0x35cfb6(0x33c),'ref':_0x5de429,'icon':Ut}));});ye['displayName']=_0x4b86e5(0x1fc);var Nt={'tag':_0x4b86e5(0x27b),'attrs':{'xmlns':_0x4b86e5(0x296),'fill':_0x4b86e5(0x2bf),'viewBox':_0x4b86e5(0x1bd),'width':_0x4b86e5(0xcf),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4b86e5(0x1a4)},'children':[{'tag':'path','attrs':{'stroke':_0x4b86e5(0x200),'d':_0x4b86e5(0xc8),'strokeLinecap':'round','strokeLinejoin':_0x4b86e5(0x347),'strokeWidth':1.2}}]},{'tag':_0x4b86e5(0x2dd),'attrs':{},'children':[{'tag':_0x4b86e5(0x163),'attrs':{'id':_0x4b86e5(0xbf)},'children':[{'tag':_0x4b86e5(0x19f),'attrs':{'fill':_0x4b86e5(0x310),'d':_0x4b86e5(0x2d0),'transform':_0x4b86e5(0x124)}}]}]}],'defIds':[_0x4b86e5(0xbf)]},$e=M[_0x4b86e5(0x1d2)](function(_0x3326c5,_0x134d24){const _0x9803bc=_0x4b86e5;return M[_0x9803bc(0x22c)](pe,Object[_0x9803bc(0x264)]({},_0x3326c5,{'id':_0x9803bc(0x2e5),'ref':_0x134d24,'icon':Nt}));});$e[_0x4b86e5(0x133)]=_0x4b86e5(0x269);function Mt(_0x284101){const _0x434969=_0x4b86e5;switch(_0x284101){case u['CollaborationStatus'][_0x434969(0x28c)]:return _0x434969(0x228);case u[_0x434969(0x10b)][_0x434969(0x26a)]:return _0x434969(0xda);case u[_0x434969(0x10b)][_0x434969(0x16b)]:return _0x434969(0x21d);case u[_0x434969(0x10b)][_0x434969(0x30f)]:return _0x434969(0x1ee);case u['CollaborationStatus']['AWAITING']:case u['CollaborationStatus'][_0x434969(0x222)]:return _0x434969(0x1ff);case u[_0x434969(0x10b)][_0x434969(0x325)]:case u['CollaborationStatus'][_0x434969(0x2df)]:return _0x434969(0x298);}}function xe(_0xc9cba6){const _0x1b927a=_0x4b86e5,{status$:_0x25cc46}=_0xc9cba6,_0x31fcef=T[_0x1b927a(0xf7)](_0x25cc46,u[_0x1b927a(0x10b)][_0x1b927a(0x30f)]),_0x545dbc=T[_0x1b927a(0xce)](a[_0x1b927a(0x250)]),_0x1ebad2=T[_0x1b927a(0xce)](u[_0x1b927a(0x16c)]),_0x40b55b=_0x31fcef!==u[_0x1b927a(0x10b)][_0x1b927a(0x28c)],_0x4723e9=_0x545dbc['t'](Mt(_0x31fcef)),_0x108b8e=_0x40b55b?w['jsx']($e,{}):w[_0x1b927a(0x19d)](ye,{}),_0x1e2954=M[_0x1b927a(0x118)](()=>{const _0x528b7d=_0x1b927a;_0x40b55b||_0x1ebad2[_0x528b7d(0x238)]();},[_0x40b55b,_0x1ebad2]);function _0x8a2683(){const _0x2eed82=_0x1b927a;return w[_0x2eed82(0x31a)](_0x2eed82(0x2cb),{'className':_0x2eed82(0x2ca),'onClick':_0x1e2954,'children':[w[_0x2eed82(0x19d)](_0x2eed82(0x2cb),{'className':D[_0x2eed82(0x189)](_0x2eed82(0x186),{'univer-text-green-500':_0x40b55b,'univer-text-red-500':!_0x40b55b}),'children':_0x108b8e}),w[_0x2eed82(0x19d)](_0x2eed82(0x2cb),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4723e9})]});}return _0x40b55b?_0x8a2683():w['jsx'](D[_0x1b927a(0x27e)],{'title':_0x545dbc['t'](_0x1b927a(0x12f)),'children':_0x8a2683()});}var Lt=Object[_0x4b86e5(0x220)],wt=(_0x4c7189,_0x5a81d5,_0x38b6cb,_0x3cb6ca)=>{const _0x347fe8=_0x4b86e5;for(var _0x54c941=_0x3cb6ca>0x1?void 0x0:_0x3cb6ca?Lt(_0x5a81d5,_0x38b6cb):_0x5a81d5,_0x347d4f=_0x4c7189[_0x347fe8(0x214)]-0x1,_0x4ce622;_0x347d4f>=0x0;_0x347d4f--)(_0x4ce622=_0x4c7189[_0x347d4f])&&(_0x54c941=_0x4ce622(_0x54c941)||_0x54c941);return _0x54c941;},V=(_0x506eca,_0x3b203d)=>(_0x8a5ae0,_0x55bf0f)=>_0x3b203d(_0x8a5ae0,_0x55bf0f,_0x506eca);exports[_0x4b86e5(0x274)]=class extends a[_0x4b86e5(0x1b8)]{constructor(_0x374c68,_0x6074a7,_0xbf71f5,_0x3fda41){const _0xdbef59=_0x4b86e5;super(),h(this,_0xdbef59(0x31b),new d['BehaviorSubject'](u['CollaborationStatus'][_0xdbef59(0x30f)])),(this['_univerInstanceService']=_0x374c68,this['_injector']=_0x6074a7,this['_collaborationController']=_0xbf71f5,this[_0xdbef59(0x261)]=_0x3fda41,this[_0xdbef59(0x2f3)](),this['_initStatusListener']());}[_0x4b86e5(0x20f)](){const _0x3d1887=_0x4b86e5;this[_0x3d1887(0x240)](this[_0x3d1887(0xea)][_0x3d1887(0x172)][_0x3d1887(0xff)](d[_0x3d1887(0x11a)](()=>{const _0x1f6334=_0x3d1887,_0x341a22=this[_0x1f6334(0xea)][_0x1f6334(0x17f)]();return _0x341a22?this['_collaborationController'][_0x1f6334(0x26b)](_0x341a22[_0x1f6334(0x334)]()):d['of'](null);}),d[_0x3d1887(0x11a)](_0x2ac8d3=>_0x2ac8d3?_0x2ac8d3[_0x3d1887(0x26c)]:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x8e8379=>{const _0x5dc5a9=_0x3d1887;this[_0x5dc5a9(0x31b)]['next'](_0x8e8379);}));}[_0x4b86e5(0x2f3)](){const _0x5b45ba=_0x4b86e5;this[_0x5b45ba(0x240)](this[_0x5b45ba(0x261)]['registerComponent'](T[_0x5b45ba(0x1a6)][_0x5b45ba(0x1e9)],()=>T[_0x5b45ba(0x1ce)](Pt({'status$':this[_0x5b45ba(0x31b)]['asObservable']()}),this[_0x5b45ba(0xde)])));}},exports[_0x4b86e5(0x274)]=wt([V(0x0,a[_0x4b86e5(0x114)]),V(0x1,a[_0x4b86e5(0x15b)](a['Injector'])),V(0x2,a[_0x4b86e5(0x15b)](u[_0x4b86e5(0x21a)])),V(0x3,T[_0x4b86e5(0x301)])],exports[_0x4b86e5(0x274)]);function Pt(_0xda7e8d){const {status$:_0x31cb70}=_0xda7e8d;return function(){return w['jsx'](xe,{'status$':_0x31cb70});};}function _0x5371(_0x13d9f4,_0x3510c1){const _0x1f41c8=_0x1f41();return _0x5371=function(_0x5371e3,_0x44a0cc){_0x5371e3=_0x5371e3-0xb2;let _0x2fdf26=_0x1f41c8[_0x5371e3];return _0x2fdf26;},_0x5371(_0x13d9f4,_0x3510c1);}var At=Object[_0x4b86e5(0x220)],yt=(_0x10069f,_0x5c5cc8,_0x2e6ed7,_0x14348b)=>{const _0x282ee5=_0x4b86e5;for(var _0x4959a5=_0x14348b>0x1?void 0x0:_0x14348b?At(_0x5c5cc8,_0x2e6ed7):_0x5c5cc8,_0x26374c=_0x10069f[_0x282ee5(0x214)]-0x1,_0x38860b;_0x26374c>=0x0;_0x26374c--)(_0x38860b=_0x10069f[_0x26374c])&&(_0x4959a5=_0x38860b(_0x4959a5)||_0x4959a5);return _0x4959a5;},y=(_0x321f5c,_0x5a3ad0)=>(_0xb0462d,_0x35b684)=>_0x5a3ad0(_0xb0462d,_0x35b684,_0x321f5c);let q=class extends a['Disposable']{constructor(_0x2d7a03,_0x42841f,_0x3e057f,_0x1e1290,_0x2969c7,_0x277e78){const _0x26aef9=_0x4b86e5;super(),this[_0x26aef9(0x257)]=_0x2d7a03,this[_0x26aef9(0x2c7)]=_0x42841f,this['_collaborationUIEventService']=_0x3e057f,this[_0x26aef9(0x32e)]=_0x1e1290,this[_0x26aef9(0x24c)]=_0x2969c7,this[_0x26aef9(0x2c3)]=_0x277e78,this[_0x26aef9(0x196)](),this['_initEvent']();}[_0x4b86e5(0x196)](){const _0x475864=_0x4b86e5;this[_0x475864(0x240)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x35a308=_0x475864;if(this[_0x35a308(0x2c7)][_0x35a308(0x1d4)]['size'])return this['_localeService']['t'](_0x35a308(0xf8));}));}[_0x4b86e5(0x300)](){const _0x365cc4=_0x4b86e5;this[_0x365cc4(0x240)](this[_0x365cc4(0x316)][_0x365cc4(0x2bc)][_0x365cc4(0x15e)](_0x51f885=>{const _0x4d2be9=_0x365cc4;_0x51f885['id']===u[_0x4d2be9(0x188)][_0x4d2be9(0x294)]&&this['_messageService']['show']({'type':D['MessageType'][_0x4d2be9(0x2ab)],'content':this[_0x4d2be9(0x2c3)]['t']('collaboration.single-unit.warning')}),_0x51f885['id']===u['CollaborationUIEventId'][_0x4d2be9(0x122)]&&this[_0x4d2be9(0x32e)][_0x4d2be9(0x1b3)]({'type':D[_0x4d2be9(0xeb)][_0x4d2be9(0x2ab)],'content':this[_0x4d2be9(0x2c3)]['t'](_0x4d2be9(0x1e4))}),_0x51f885['id']===u['CollaborationUIEventId'][_0x4d2be9(0x184)]&&this[_0x4d2be9(0x24c)][_0x4d2be9(0x1b3)]({'title':this[_0x4d2be9(0x2c3)]['t']('permission.title'),'content':this[_0x4d2be9(0x2c3)]['t']('permission.content'),'type':_0x4d2be9(0x338),'duration':0x0}),_0x51f885['id']===u['CollaborationUIEventId'][_0x4d2be9(0x26a)]&&this['_messageService'][_0x4d2be9(0x1b3)]({'type':D[_0x4d2be9(0xeb)][_0x4d2be9(0x319)],'content':this[_0x4d2be9(0x2c3)]['t'](_0x4d2be9(0x1e4))+'('+_0x51f885[_0x4d2be9(0x1cf)]+')'}),_0x51f885['id']===u[_0x4d2be9(0x188)][_0x4d2be9(0x343)]&&this['_messageService'][_0x4d2be9(0x1b3)]({'type':D['MessageType'][_0x4d2be9(0x2ab)],'content':this[_0x4d2be9(0x2c3)]['t'](_0x51f885[_0x4d2be9(0x1cf)]||'')}),_0x51f885['id']===u[_0x4d2be9(0x188)][_0x4d2be9(0x127)]&&this[_0x4d2be9(0x32e)][_0x4d2be9(0x1b3)]({'type':D['MessageType'][_0x4d2be9(0x2ab)],'content':this['_localeService']['t'](_0x4d2be9(0x1d0))}),_0x51f885['id']===u[_0x4d2be9(0x188)]['SOCKET_FAILED']&&this['_messageService'][_0x4d2be9(0x1b3)]({'type':D[_0x4d2be9(0xeb)][_0x4d2be9(0x319)],'content':this[_0x4d2be9(0x2c3)]['t'](_0x4d2be9(0x23a))}),_0x51f885['id']===u[_0x4d2be9(0x188)][_0x4d2be9(0x148)]&&this[_0x4d2be9(0x32e)]['show']({'type':D[_0x4d2be9(0xeb)][_0x4d2be9(0x319)],'content':this['_localeService']['t'](_0x4d2be9(0x1c6))});}));}};q=yt([y(0x0,T['IBeforeCloseService']),y(0x1,u[_0x4b86e5(0x1fd)]),y(0x2,a[_0x4b86e5(0x15b)](u['CollaborationUIEventService'])),y(0x3,T['IMessageService']),y(0x4,T['INotificationService']),y(0x5,a['Inject'](a[_0x4b86e5(0x250)]))],q);const $t=_0x4b86e5(0x175),Ue={},be=a['createIdentifier'](_0x4b86e5(0x246));var xt=Object['getOwnPropertyDescriptor'],jt=(_0x4e2e41,_0x16e890,_0x475389,_0xd1fb46)=>{for(var _0x4fd64e=_0xd1fb46>0x1?void 0x0:_0xd1fb46?xt(_0x16e890,_0x475389):_0x16e890,_0x483a2e=_0x4e2e41['length']-0x1,_0x5b310c;_0x483a2e>=0x0;_0x483a2e--)(_0x5b310c=_0x4e2e41[_0x483a2e])&&(_0x4fd64e=_0x5b310c(_0x4fd64e)||_0x4fd64e);return _0x4fd64e;},H=(_0x4b5bc7,_0x849af5)=>(_0x73186d,_0x43dac4)=>_0x849af5(_0x73186d,_0x43dac4,_0x4b5bc7);exports[_0x4b86e5(0x153)]=class extends a['RxDisposable']{constructor(_0x2e9e8c,_0x4faa60,_0x3cc0d1,_0x41333f,_0xc2b6d8){const _0x488e9f=_0x4b86e5;super(),this[_0x488e9f(0x11d)]=_0x2e9e8c,this[_0x488e9f(0x2ed)]=_0x4faa60,this[_0x488e9f(0x2a6)]=_0x3cc0d1,this['_dataLoaderService']=_0x41333f,_0xc2b6d8?_0xc2b6d8==null||_0xc2b6d8['whenReady']()['then'](()=>this['_init']()):(this[_0x488e9f(0x2ed)][_0x488e9f(0xe2)](_0x488e9f(0x18a),_0x488e9f(0x1ea)),this[_0x488e9f(0x1f3)]());}async[_0x4b86e5(0x1f3)](){const _0x4ce6fc=_0x4b86e5,_0x13f45b=this['_urlService']['getParam']('unit'),_0x1d0cc4=this[_0x4ce6fc(0x11d)]['getParam'](_0x4ce6fc(0xfe)),_0x51752d=this[_0x4ce6fc(0x11d)][_0x4ce6fc(0x12d)](_0x4ce6fc(0xc3));if(!_0x13f45b||!_0x1d0cc4){this['_logService'][_0x4ce6fc(0xe2)](_0x4ce6fc(0x18a),_0x4ce6fc(0x242));return;}const _0x468289=await this['_dataLoaderService'][_0x4ce6fc(0x219)](_0x13f45b,Number(_0x1d0cc4),_0x51752d);_0x468289&&_0x468289 instanceof a[_0x4ce6fc(0x252)]&&this[_0x4ce6fc(0xe6)](_0x468289);}async['_setupSubUnitSync'](_0x402593){const _0x3cf787=_0x4b86e5;await this[_0x3cf787(0x138)](_0x402593),_0x402593['activeSheet$']['pipe'](d['takeUntil'](this[_0x3cf787(0x2a5)]))[_0x3cf787(0x15e)](_0x56243b=>{const _0x51cb83=_0x3cf787;_0x56243b&&this[_0x51cb83(0x125)](_0x56243b);}),this[_0x3cf787(0x11d)][_0x3cf787(0x14d)]['pipe'](d[_0x3cf787(0x24b)](this['dispose$']))[_0x3cf787(0x15e)](()=>this['_updateSubUnitFromURLParams'](_0x402593));}[_0x4b86e5(0x125)](_0x362780,_0x175f1a=!0x1){const _0x1c35f7=_0x4b86e5,_0x1f8c64=this['_urlService']['getParam'](_0x1c35f7(0xc3));_0x362780[_0x1c35f7(0x235)]()!==_0x1f8c64&&this[_0x1c35f7(0x11d)][_0x1c35f7(0x30e)](_0x1c35f7(0xc3),_0x362780[_0x1c35f7(0x235)](),_0x175f1a);}async[_0x4b86e5(0x138)](_0x47c55c){const _0x155f14=_0x4b86e5;var _0x39744a;const _0x2c5f78=this[_0x155f14(0x11d)][_0x155f14(0x12d)](_0x155f14(0xc3));if(!_0x2c5f78||!_0x47c55c['getSheetBySheetId'](_0x2c5f78)){const _0x12dddb=_0x47c55c[_0x155f14(0xdb)]()[0x0],_0x59740a=_0x47c55c[_0x155f14(0x302)](_0x12dddb);if(!_0x59740a)return;this['_updateURLWithCurrentState'](_0x59740a,!0x0),await this['_commandService'][_0x155f14(0x1df)](g[_0x155f14(0x2fa)]['id'],{'unitId':_0x47c55c[_0x155f14(0x334)](),'subUnitId':_0x12dddb});return;}((_0x39744a=_0x47c55c['getActiveSheet']())==null?void 0x0:_0x39744a[_0x155f14(0x235)]())!==_0x2c5f78&&await this[_0x155f14(0x2a6)][_0x155f14(0x1df)](g[_0x155f14(0x2fa)]['id'],{'unitId':_0x47c55c[_0x155f14(0x334)](),'subUnitId':_0x2c5f78});}},exports[_0x4b86e5(0x153)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x4b86e5(0x2c6)]),H(0x3,a[_0x4b86e5(0x15b)](u[_0x4b86e5(0x277)])),H(0x4,a[_0x4b86e5(0xc9)](Ke[_0x4b86e5(0x268)]))],exports[_0x4b86e5(0x153)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x18b570,_0x2a863b,_0x25a564,_0x5dc42b)=>{for(var _0x2aa407=_0x5dc42b>0x1?void 0x0:_0x5dc42b?Bt(_0x2a863b,_0x25a564):_0x2a863b,_0x2a5809=_0x18b570['length']-0x1,_0x46dabc;_0x2a5809>=0x0;_0x2a5809--)(_0x46dabc=_0x18b570[_0x2a5809])&&(_0x2aa407=_0x46dabc(_0x2aa407)||_0x2aa407);return _0x2aa407;},ce=(_0xca3ed7,_0x3144dd)=>(_0x25b81e,_0x4107c3)=>_0x3144dd(_0x25b81e,_0x4107c3,_0xca3ed7);let z=class{constructor(_0x4e1bfd,_0x27ee49,_0x254c64){const _0x5a4655=_0x4b86e5;this[_0x5a4655(0xde)]=_0x4e1bfd,this[_0x5a4655(0x282)]=_0x27ee49,this[_0x5a4655(0x297)]=_0x254c64;}['transformIMECache'](_0x40d830){const _0x273fe9=_0x4b86e5;this['_transformUndoRedoStack'](_0x40d830),this[_0x273fe9(0x32d)](_0x40d830);}[_0x4b86e5(0x156)](_0x467f49){const _0x53808c=_0x4b86e5,{unitID:_0x48a8d5}=_0x467f49,_0x292d5d=this[_0x53808c(0x297)][_0x53808c(0x299)](_0x48a8d5)[_0x53808c(0x2d6)](b[_0x53808c(0x226)]),{redoCache:_0x3afc95}=_0x292d5d[_0x53808c(0x10e)]();if(_0x3afc95[_0x53808c(0x214)]===0x0)return _0x467f49;let _0xc3071c=a['Tools'][_0x53808c(0x195)](_0x467f49[_0x53808c(0x16a)][0x0]);for(let _0x21d687=0x0;_0x21d687<_0x3afc95[_0x53808c(0x214)];_0x21d687++){const _0x2b58e6={'id':_0x53808c(0x293),'params':{..._0x3afc95[_0x21d687]}},_0x599308=this[_0x53808c(0x282)][_0x53808c(0x19e)](_0xc3071c,_0x2b58e6,!0x1);if(m['isTransformMutationFailure'](_0x599308))throw _0x599308[_0x53808c(0x338)];_0xc3071c=_0x599308[_0x53808c(0x24e)];}return{...a[_0x53808c(0x1ef)][_0x53808c(0x195)](_0x467f49),'mutations':[_0xc3071c]};}[_0x4b86e5(0x2d8)](_0x31f6e7){const _0x5af268=_0x4b86e5,{unitID:_0x8b5e40}=_0x31f6e7,_0x21ca45=this[_0x5af268(0x297)]['getRenderById'](_0x8b5e40)[_0x5af268(0x2d6)](b[_0x5af268(0x226)]),{undoCache:_0x1a7ff1,redoCache:_0x235963}=_0x21ca45[_0x5af268(0x10e)]();if(_0x1a7ff1['length']===0x0||_0x235963['length']===0x0)return;const _0x148c23=[],_0x56f47a=[];let _0x18b5cc=a[_0x5af268(0x1ef)][_0x5af268(0x195)](_0x31f6e7[_0x5af268(0x16a)][0x0]),_0x30c01b=a[_0x5af268(0x1ef)][_0x5af268(0x195)](_0x31f6e7['mutations'][0x0]);for(let _0x5f2133=_0x1a7ff1['length']-0x1;_0x5f2133>=0x0;_0x5f2133--){const _0x487ed6={'id':'doc.mutation.rich-text-editing','params':{..._0x1a7ff1[_0x5f2133]}},_0x18ce96={'id':_0x5af268(0x293),'params':{..._0x235963[_0x5f2133]}},_0x8dcc5d=this[_0x5af268(0x282)][_0x5af268(0x19e)](_0x18b5cc,_0x487ed6,!0x1),_0x2770ce=this['_transformService'][_0x5af268(0x19e)](_0x30c01b,_0x18ce96,!0x1);if(m[_0x5af268(0x213)](_0x8dcc5d))throw _0x8dcc5d[_0x5af268(0x338)];if(m['isTransformMutationFailure'](_0x2770ce))throw _0x2770ce[_0x5af268(0x338)];_0x148c23[_0x5af268(0x1de)](_0x8dcc5d[_0x5af268(0x221)]['params']),_0x56f47a[_0x5af268(0x1de)](_0x2770ce[_0x5af268(0x221)][_0x5af268(0x2b3)]),_0x18b5cc=_0x8dcc5d[_0x5af268(0x24e)],_0x30c01b=_0x2770ce[_0x5af268(0x24e)];}_0x21ca45[_0x5af268(0xe9)]({'undoCache':_0x148c23,'redoCache':_0x56f47a});}[_0x4b86e5(0x32d)](_0x1d95e1){const _0x17459a=_0x4b86e5,{unitID:_0x30c036}=_0x1d95e1,_0xf43b78=this[_0x17459a(0x297)][_0x17459a(0x299)](_0x30c036)[_0x17459a(0x2d6)](b[_0x17459a(0x226)]),_0x408786=_0xf43b78[_0x17459a(0x263)]();if(_0x408786==null)return;const _0x230440=[{'id':_0x17459a(0x293),'params':{'unitId':_0x1d95e1['unitID'],'actions':null,'textRanges':[_0x408786]}}],_0x258160=this[_0x17459a(0x282)][_0x17459a(0x1e7)](_0x1d95e1,_0x230440);if(!m['isTransformMutationsWithChangesetSuccess'](_0x258160))throw _0x258160['error'];const _0x1f8cbb=_0x258160[_0x17459a(0x221)][0x0]['params']['textRanges'];Array[_0x17459a(0x2a8)](_0x1f8cbb)&&_0x1f8cbb[_0x17459a(0x214)]&&_0xf43b78[_0x17459a(0x15a)](_0x1f8cbb[0x0]);}};z=kt([ce(0x0,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x183)])),ce(0x1,m[_0x4b86e5(0x13d)]),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x184f1e,_0x2e8396,_0x89a55c,_0xaecf92)=>{const _0x31d0d4=_0x4b86e5;for(var _0x489cda=_0xaecf92>0x1?void 0x0:_0xaecf92?Ht(_0x2e8396,_0x89a55c):_0x2e8396,_0x26db36=_0x184f1e[_0x31d0d4(0x214)]-0x1,_0x1d7716;_0x26db36>=0x0;_0x26db36--)(_0x1d7716=_0x184f1e[_0x26db36])&&(_0x489cda=_0x1d7716(_0x489cda)||_0x489cda);return _0x489cda;},le=(_0x4ab120,_0x3763f9)=>(_0x5e3f2a,_0x2d8f77)=>_0x3763f9(_0x5e3f2a,_0x2d8f77,_0x4ab120);let J=class{constructor(_0x2ac4f3,_0x4e6dce,_0x252b0d){const _0x5f1b4a=_0x4b86e5;this[_0x5f1b4a(0xde)]=_0x2ac4f3,this[_0x5f1b4a(0x282)]=_0x4e6dce,this[_0x5f1b4a(0x137)]=_0x252b0d;}[_0x4b86e5(0x2bb)](_0x17010d){const _0x354e00=_0x4b86e5;this[_0x354e00(0x11c)](_0x17010d);}[_0x4b86e5(0x156)](_0x101c9b){const _0x3e022c=_0x4b86e5,{unitID:_0x2282eb}=_0x101c9b,{collaboration:_0x24deaf}=this[_0x3e022c(0x137)][_0x3e022c(0x2ff)](_0x2282eb);if(_0x24deaf[_0x3e022c(0x214)]===0x0)return _0x101c9b;let _0x4b152b=a[_0x3e022c(0x1ef)][_0x3e022c(0x195)](_0x101c9b['mutations'][0x0]);for(let _0x1bda41=0x0;_0x1bda41<_0x24deaf[_0x3e022c(0x214)];_0x1bda41++){const _0x420b2f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x24deaf[_0x1bda41][_0x3e022c(0x2e1)],..._0x24deaf[_0x1bda41][_0x3e022c(0x248)]}},_0x57cccc=this[_0x3e022c(0x282)][_0x3e022c(0x19e)](_0x4b152b,_0x420b2f,!0x1);if(m[_0x3e022c(0x213)](_0x57cccc))throw _0x57cccc[_0x3e022c(0x338)];_0x4b152b=_0x57cccc[_0x3e022c(0x24e)];}return{...a[_0x3e022c(0x1ef)]['deepClone'](_0x101c9b),'mutations':[_0x4b152b]};}[_0x4b86e5(0x11c)](_0x2b8394){const _0x16084a=_0x4b86e5,{unitID:_0x3df45e}=_0x2b8394,{history:_0x24e089,collaboration:_0x17aef6}=this[_0x16084a(0x137)][_0x16084a(0x2ff)](_0x3df45e);if(_0x24e089[_0x16084a(0x214)]===0x0&&_0x17aef6[_0x16084a(0x214)]===0x0)return;const _0x9322d5=[],_0x168be5=[];let _0x4678f7=a[_0x16084a(0x1ef)][_0x16084a(0x195)](_0x2b8394['mutations'][0x0]),_0x24970a=a[_0x16084a(0x1ef)][_0x16084a(0x195)](_0x2b8394['mutations'][0x0]);for(let _0x2c10f7=_0x24e089[_0x16084a(0x214)]-0x1;_0x2c10f7>=0x0;_0x2c10f7--){const _0x3050f8={'id':_0x16084a(0x293),'params':{'unitId':_0x24e089[_0x2c10f7][_0x16084a(0x2e1)],..._0x24e089[_0x2c10f7][_0x16084a(0x2be)]}},_0x59712a={'id':_0x16084a(0x293),'params':{'unitId':_0x24e089[_0x2c10f7][_0x16084a(0x2e1)],..._0x24e089[_0x2c10f7][_0x16084a(0x248)]}},_0x213fca=this[_0x16084a(0x282)][_0x16084a(0x19e)](_0x4678f7,_0x3050f8,!0x1),_0x2e5bba=this[_0x16084a(0x282)][_0x16084a(0x19e)](_0x24970a,_0x59712a,!0x1);if(m['isTransformMutationFailure'](_0x213fca))throw _0x213fca['error'];if(m[_0x16084a(0x213)](_0x2e5bba))throw _0x2e5bba['error'];_0x9322d5[_0x16084a(0x1de)]({..._0x24e089[_0x2c10f7],'undoState':_0x213fca[_0x16084a(0x221)]['params'],'redoState':_0x2e5bba['m2Prime'][_0x16084a(0x2b3)]}),_0x4678f7=_0x213fca[_0x16084a(0x24e)],_0x24970a=_0x2e5bba[_0x16084a(0x24e)];}_0x4678f7=a['Tools']['deepClone'](_0x2b8394['mutations'][0x0]),_0x24970a=a[_0x16084a(0x1ef)][_0x16084a(0x195)](_0x2b8394[_0x16084a(0x16a)][0x0]);for(let _0x1c0328=_0x17aef6[_0x16084a(0x214)]-0x1;_0x1c0328>=0x0;_0x1c0328--){const _0x388c3b={'id':_0x16084a(0x293),'params':{'unitId':_0x17aef6[_0x1c0328]['unitId'],..._0x17aef6[_0x1c0328][_0x16084a(0x2be)]}},_0x4df963={'id':_0x16084a(0x293),'params':{'unitId':_0x17aef6[_0x1c0328][_0x16084a(0x2e1)],..._0x17aef6[_0x1c0328][_0x16084a(0x248)]}},_0x2f0fe4=this[_0x16084a(0x282)][_0x16084a(0x19e)](_0x4678f7,_0x388c3b,!0x1),_0x78108b=this['_transformService']['transformMutation'](_0x24970a,_0x4df963,!0x1);if(m[_0x16084a(0x213)](_0x2f0fe4))throw _0x2f0fe4['error'];if(m[_0x16084a(0x213)](_0x78108b))throw _0x78108b[_0x16084a(0x338)];_0x168be5[_0x16084a(0x1de)]({..._0x17aef6[_0x1c0328],'undoState':_0x2f0fe4[_0x16084a(0x221)][_0x16084a(0x2b3)],'redoState':_0x78108b[_0x16084a(0x221)][_0x16084a(0x2b3)]}),_0x4678f7=_0x2f0fe4[_0x16084a(0x24e)],_0x24970a=_0x78108b['m1Prime'];}this[_0x16084a(0x137)][_0x16084a(0x128)](_0x3df45e,{'history':_0x9322d5,'collaboration':_0x168be5});}};J=Ft([le(0x0,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x183)])),le(0x1,m[_0x4b86e5(0x13d)]),le(0x2,a[_0x4b86e5(0x15b)](b[_0x4b86e5(0x260)]))],J);var Yt=Object[_0x4b86e5(0x220)],Wt=(_0x4b3330,_0x99795b,_0xc7d297,_0x384508)=>{const _0x16382a=_0x4b86e5;for(var _0xd0a68c=_0x384508>0x1?void 0x0:_0x384508?Yt(_0x99795b,_0xc7d297):_0x99795b,_0x5428f7=_0x4b3330[_0x16382a(0x214)]-0x1,_0x2283e0;_0x5428f7>=0x0;_0x5428f7--)(_0x2283e0=_0x4b3330[_0x5428f7])&&(_0xd0a68c=_0x2283e0(_0xd0a68c)||_0xd0a68c);return _0xd0a68c;},Ne=(_0x31bd88,_0x399d62)=>(_0x17177c,_0x28cd63)=>_0x399d62(_0x17177c,_0x28cd63,_0x31bd88);let Z=class{constructor(_0x1af360,_0x48bd03){const _0x2d1934=_0x4b86e5;this[_0x2d1934(0xde)]=_0x1af360,this[_0x2d1934(0x282)]=_0x48bd03;}['transformSelections'](_0x466bb2){const _0x56392b=_0x4b86e5;var _0x135a7e;const _0x3f899f=this[_0x56392b(0xde)][_0x56392b(0x2e2)](Y['DocSelectionManagerService']),_0x34139b=(_0x135a7e=_0x3f899f[_0x56392b(0x1a9)]())!=null?_0x135a7e:[];if(_0x34139b['length']===0x0)return;const _0x4ed0b2=_0x466bb2[_0x56392b(0x146)],_0x4e358b=[{'id':_0x56392b(0x293),'params':{'unitId':_0x4ed0b2,'actions':null,'textRanges':_0x34139b}}],_0x59c2e4=this[_0x56392b(0x282)]['transformMutationsWithChangeset'](_0x466bb2,_0x4e358b);if(!m[_0x56392b(0xd7)](_0x59c2e4))throw _0x59c2e4[_0x56392b(0x338)];const _0x3c8e46=_0x59c2e4[_0x56392b(0x221)][0x0][_0x56392b(0x2b3)]['textRanges'];Array['isArray'](_0x3c8e46)&&_0x3c8e46['length']&&_0x3f899f[_0x56392b(0x12a)](_0x3c8e46,{'unitId':_0x4ed0b2,'subUnitId':_0x4ed0b2},!0x1);}};Z=Wt([Ne(0x0,a[_0x4b86e5(0x15b)](a['Injector'])),Ne(0x1,m[_0x4b86e5(0x13d)])],Z);var Vt=Object[_0x4b86e5(0x220)],Xt=(_0x13618d,_0x3dae1d,_0x2b9704,_0x5a5412)=>{for(var _0x5de021=_0x5a5412>0x1?void 0x0:_0x5a5412?Vt(_0x3dae1d,_0x2b9704):_0x3dae1d,_0x349b30=_0x13618d['length']-0x1,_0x5df80d;_0x349b30>=0x0;_0x349b30--)(_0x5df80d=_0x13618d[_0x349b30])&&(_0x5de021=_0x5df80d(_0x5de021)||_0x5de021);return _0x5de021;},N=(_0x5da6be,_0x1c23b8)=>(_0x4ab9c9,_0x1301d8)=>_0x1c23b8(_0x4ab9c9,_0x1301d8,_0x5da6be);let Q=class extends a[_0x4b86e5(0x1b8)]{constructor(_0x49464b,_0x31afa6,_0x1789ed,_0x295c1d,_0xa92e0e,_0x4146c5,_0x2f85e8,_0x2b9aba){const _0x556c8e=_0x4b86e5;super(),h(this,_0x556c8e(0x31b),new d[(_0x556c8e(0x23b))](u['CollaborationStatus'][_0x556c8e(0x30f)])),(this[_0x556c8e(0x137)]=_0x49464b,this['_collaborationController']=_0x31afa6,this['_docTransformIMECacheService']=_0x1789ed,this[_0x556c8e(0x14c)]=_0x295c1d,this[_0x556c8e(0x1c0)]=_0xa92e0e,this[_0x556c8e(0x23d)]=_0x4146c5,this[_0x556c8e(0x32e)]=_0x2f85e8,this[_0x556c8e(0x2c3)]=_0x2b9aba,this[_0x556c8e(0x204)]());}[_0x4b86e5(0x204)](){const _0x1a3c91=_0x4b86e5;this['disposeWithMe'](this[_0x1a3c91(0x308)][_0x1a3c91(0x117)]['subscribe'](_0x4c14e3=>{const _0x2f5837=_0x1a3c91,_0x35ed8c=this[_0x2f5837(0x137)][_0x2f5837(0x1c5)][_0x2f5837(0x15e)](_0x4f45d7=>{const _0x516030=_0x2f5837;if(_0x4f45d7==null)return;const {unitId:_0x5e94bf,redoState:_0x58647d,commandId:_0x3a906d}=_0x4f45d7;if(_0x5e94bf!==_0x4c14e3[_0x516030(0x146)])return;const _0x219592={'id':_0x3a906d,'type':a[_0x516030(0x12e)][_0x516030(0x20b)],'params':{'unitId':_0x5e94bf,'actions':_0x58647d['actions'],'textRanges':null}};_0x4c14e3[_0x516030(0x1e6)](_0x219592);});if(_0x4c14e3['disposeWithMe'](_0x35ed8c),_0x4c14e3 instanceof u[_0x2f5837(0x26f)]){const _0xa9999={'onTransformIME':_0x1a135a=>this[_0x2f5837(0x1a5)][_0x2f5837(0xb6)](_0x1a135a),'onTransformState':_0x342d24=>this[_0x2f5837(0x14c)][_0x2f5837(0x2bb)](_0x342d24),'onTransformSelections':_0x929bb0=>this[_0x2f5837(0x1c0)][_0x2f5837(0x17c)](_0x929bb0),'onSyncEditingCollabCursor':_0x5d326f=>this[_0x2f5837(0x23d)]['syncEditingCollabCursor'](_0x5d326f),'onTransformRemoteChangesetByIMECache':_0x19066e=>this[_0x2f5837(0x1a5)][_0x2f5837(0x156)](_0x19066e),'onTransformRemoteChangesetByStateCache':_0x3c2f20=>this[_0x2f5837(0x14c)][_0x2f5837(0x156)](_0x3c2f20)};_0x4c14e3[_0x2f5837(0x232)](_0xa9999);}}));}};Q=Xt([N(0x0,a[_0x4b86e5(0x15b)](b[_0x4b86e5(0x260)])),N(0x1,a[_0x4b86e5(0x15b)](u[_0x4b86e5(0x21a)])),N(0x2,a[_0x4b86e5(0x15b)](z)),N(0x3,a['Inject'](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x4b86e5(0x15b)](Ce)),N(0x6,T[_0x4b86e5(0x231)]),N(0x7,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x250)]))],Q);var Gt=Object[_0x4b86e5(0x220)],Kt=(_0x37ff36,_0x52a73f,_0x26fdde,_0xf16764)=>{const _0x169744=_0x4b86e5;for(var _0x474577=_0xf16764>0x1?void 0x0:_0xf16764?Gt(_0x52a73f,_0x26fdde):_0x52a73f,_0x5253fb=_0x37ff36[_0x169744(0x214)]-0x1,_0xdf448e;_0x5253fb>=0x0;_0x5253fb--)(_0xdf448e=_0x37ff36[_0x5253fb])&&(_0x474577=_0xdf448e(_0x474577)||_0x474577);return _0x474577;},_e=(_0x2a7f0b,_0x429d82)=>(_0x230a42,_0x25eca4)=>_0x429d82(_0x230a42,_0x25eca4,_0x2a7f0b);let ge=class extends a[_0x4b86e5(0x1b8)]{constructor(_0x2f71e9,_0x3ff8a0,_0x31c795){const _0x4ed067=_0x4b86e5;super(),h(this,_0x4ed067(0x22b),new Map()),h(this,_0x4ed067(0x326),new Map()),h(this,_0x4ed067(0x332),!0x1),(this[_0x4ed067(0x31d)]=_0x2f71e9,this[_0x4ed067(0xf9)]=_0x3ff8a0,this[_0x4ed067(0x2f0)]=_0x31c795);}[_0x4b86e5(0x30a)](){this['_disabled']=!0x0;}[_0x4b86e5(0x2b0)](){const _0x5a0214=_0x4b86e5;this[_0x5a0214(0x332)]=!0x1;}get[_0x4b86e5(0x1d4)](){const _0xbc5fb2=_0x4b86e5;return this[_0xbc5fb2(0x326)];}[_0x4b86e5(0x161)](){const _0x4842bd=_0x4b86e5;this['exhaustSavingTask']()[_0x4842bd(0xd8)](()=>super['dispose']());}async[_0x4b86e5(0x166)](_0x23c3fd){const _0x54295f=_0x4b86e5;return this[_0x54295f(0x332)]?null:this[_0x54295f(0xf9)][_0x54295f(0x218)](u[_0x54295f(0x2c5)](_0x23c3fd));}async[_0x4b86e5(0x229)](_0x331127,_0x399430){const _0x32ad64=_0x4b86e5;return!!this[_0x32ad64(0xf9)][_0x32ad64(0x28b)](_0x331127,_0x399430);}[_0x4b86e5(0x2ae)](_0x54134b,_0x3353f6,_0x332b8c,_0x11603f){const _0x3bffba=_0x4b86e5,_0x5a313d=this['_revisionService'][_0x3bffba(0x19b)](_0x54134b);this[_0x3bffba(0x22b)][_0x3bffba(0x276)](_0x54134b,{'unitID':_0x54134b,'type':_0x3353f6,'awaitingChangeset':_0x332b8c,'mutations':_0x11603f,'rev':_0x5a313d}),this[_0x3bffba(0x326)]['has'](_0x54134b)||this[_0x3bffba(0x34b)](_0x54134b);}[_0x4b86e5(0x34b)](_0x218d2c){const _0x3c8eaf=_0x4b86e5,_0x49d965=this[_0x3c8eaf(0x241)]();_0x49d965===0x0?this['_saveCache'](_0x218d2c):this[_0x3c8eaf(0x326)][_0x3c8eaf(0x276)](_0x218d2c,setTimeout(()=>this[_0x3c8eaf(0xfa)](_0x218d2c),_0x49d965));}[_0x4b86e5(0x241)](){const _0x27862d=_0x4b86e5;var _0x126d82;return(_0x126d82=this[_0x27862d(0x31d)][_0x27862d(0x1e5)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x126d82:u['LOCAL_CACHE_INTERVAL'];}[_0x4b86e5(0xfa)](_0x2bd02e){const _0x3cff28=_0x4b86e5,_0x6e8301=this['_saveTaskMap']['get'](_0x2bd02e);return _0x6e8301!==void 0x0&&window['clearTimeout'](_0x6e8301),this[_0x3cff28(0xf9)][_0x3cff28(0x28b)](u['getLocalCacheKey'](_0x2bd02e),this[_0x3cff28(0x22b)][_0x3cff28(0x2e2)](_0x2bd02e))['then'](()=>this[_0x3cff28(0x326)][_0x3cff28(0x1b5)](_0x2bd02e));}async['exhaustSavingTask'](){const _0x4aad4b=_0x4b86e5,_0x525197=[];this['_saveTaskMap'][_0x4aad4b(0x31f)]((_0x57ae19,_0x35f61f)=>{const _0x252c47=_0x4aad4b;window[_0x252c47(0x249)](_0x57ae19),_0x525197[_0x252c47(0x29b)](this[_0x252c47(0xfa)](_0x35f61f)['then'](()=>{const _0x39203d=_0x252c47;this['_saveTaskMap'][_0x39203d(0x1b5)](_0x35f61f);}));}),await Promise[_0x4aad4b(0xfc)](_0x525197);}};ge=Kt([_e(0x0,a[_0x4b86e5(0x2e6)]),_e(0x1,a[_0x4b86e5(0x14b)]),_e(0x2,a[_0x4b86e5(0x15b)](m['RevisionService']))],ge);class je extends a[_0x4b86e5(0x303)]{constructor(){const _0x5cf313=_0x4b86e5;super(),h(this,_0x5cf313(0x14d)),this['urlChange$']=d['fromEvent'](window,_0x5cf313(0x22d))[_0x5cf313(0xff)](d[_0x5cf313(0x24b)](this[_0x5cf313(0x2a5)]),d[_0x5cf313(0x1fe)](0x1),d[_0x5cf313(0x123)](void 0x0));}[_0x4b86e5(0x30e)](_0x2aa3b8,_0x32a28c,_0x344d62=!0x1){const _0x5c2543=_0x4b86e5,_0x1c0cbe=new URL(window[_0x5c2543(0x1db)][_0x5c2543(0x2ee)]);_0x1c0cbe['searchParams'][_0x5c2543(0x276)](_0x2aa3b8,_0x32a28c),_0x344d62?window[_0x5c2543(0x290)]['replaceState']('','',_0x1c0cbe[_0x5c2543(0x10a)]()):window[_0x5c2543(0x290)][_0x5c2543(0x25c)]('','',_0x1c0cbe[_0x5c2543(0x10a)]());}[_0x4b86e5(0x19c)](_0x142eb6,_0x1abb3e=!0x1){const _0x179637=_0x4b86e5,_0x2fcbce=new URL(window[_0x179637(0x1db)]['href']);_0x2fcbce[_0x179637(0x2d9)][_0x179637(0x1b5)](_0x142eb6),_0x1abb3e?window[_0x179637(0x290)][_0x179637(0x29d)]('','',_0x2fcbce[_0x179637(0x10a)]()):window[_0x179637(0x290)]['pushState']('','',_0x2fcbce['toString']());}[_0x4b86e5(0x12d)](_0x1c5d16){const _0x55a0d0=_0x4b86e5;var _0x2e78c5;return(_0x2e78c5=new URL(window[_0x55a0d0(0x1db)][_0x55a0d0(0x2ee)])[_0x55a0d0(0x2d9)]['get'](_0x1c5d16))!=null?_0x2e78c5:void 0x0;}}var qt=Object[_0x4b86e5(0x2e4)],zt=Object[_0x4b86e5(0x220)],Jt=(_0x22fa5d,_0x5f4b1f,_0xa02900)=>_0x5f4b1f in _0x22fa5d?qt(_0x22fa5d,_0x5f4b1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa02900}):_0x22fa5d[_0x5f4b1f]=_0xa02900,Zt=(_0x17f1c7,_0x1a3c21,_0x486b39,_0x224197)=>{const _0x49941=_0x4b86e5;for(var _0x395c52=_0x224197>0x1?void 0x0:_0x224197?zt(_0x1a3c21,_0x486b39):_0x1a3c21,_0x7d0249=_0x17f1c7[_0x49941(0x214)]-0x1,_0x85a40b;_0x7d0249>=0x0;_0x7d0249--)(_0x85a40b=_0x17f1c7[_0x7d0249])&&(_0x395c52=_0x85a40b(_0x395c52)||_0x395c52);return _0x395c52;},he=(_0x5cd9a6,_0x459b22)=>(_0x5df3fa,_0x22b75f)=>_0x459b22(_0x5df3fa,_0x22b75f,_0x5cd9a6),Qt=(_0x1c4034,_0x51312c,_0xbdc7c8)=>Jt(_0x1c4034,_0x51312c+'',_0xbdc7c8);const es=_0x4b86e5(0x28f);exports[_0x4b86e5(0x13a)]=class extends a[_0x4b86e5(0x176)]{constructor(_0x17c586=Ue,_0x21710e,_0x21b5be,_0x5185b4){const _0x1abcfc=_0x4b86e5;super(),this[_0x1abcfc(0x2f6)]=_0x17c586,this[_0x1abcfc(0x297)]=_0x21710e,this[_0x1abcfc(0xde)]=_0x21b5be,this[_0x1abcfc(0x31d)]=_0x5185b4;const {..._0x39dc20}=a['merge']({},Ue,this[_0x1abcfc(0x2f6)]);this['_configService'][_0x1abcfc(0x23e)]($t,_0x39dc20);}['onStarting'](){const _0xde1a94=_0x4b86e5;this[_0xde1a94(0x2b1)](),this[_0xde1a94(0x162)]();}[_0x4b86e5(0x333)](){const _0x5dcde9=_0x4b86e5;this[_0x5dcde9(0x210)]();}[_0x4b86e5(0x2b1)](){const _0x25f08f=_0x4b86e5;var _0x5d556e;const _0x12fbec=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x25f08f(0x18b)],{'useClass':G[_0x25f08f(0x1c3)]}],[u[_0x25f08f(0x1fd)],{'useClass':ge}],[exports[_0x25f08f(0x274)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this['_injector'],a['mergeOverrideWithDependencies'](_0x12fbec,(_0x5d556e=this[_0x25f08f(0x2f6)])==null?void 0x0:_0x5d556e[_0x25f08f(0x107)]));}[_0x4b86e5(0x210)](){const _0x3eed99=_0x4b86e5;this[_0x3eed99(0x240)](this[_0x3eed99(0x297)][_0x3eed99(0x150)](a[_0x3eed99(0x306)]['UNIVER_DOC'],[Ie])),this['disposeWithMe'](this[_0x3eed99(0x297)][_0x3eed99(0x150)](a[_0x3eed99(0x306)][_0x3eed99(0x207)],[ve]));}[_0x4b86e5(0x162)](){const _0x5be4b3=_0x4b86e5;a[_0x5be4b3(0x1ba)](this[_0x5be4b3(0xde)],[[x],[exports[_0x5be4b3(0x274)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x4b86e5(0x13a)],_0x4b86e5(0x15f),es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x4b86e5(0x1c1)]),he(0x2,a[_0x4b86e5(0x15b)](a['Injector'])),he(0x3,a[_0x4b86e5(0x2e6)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x2446b2,_0x8eb785,_0x501584,_0xd2c85e)=>{const _0x4b48af=_0x4b86e5;for(var _0x18524f=_0xd2c85e>0x1?void 0x0:_0xd2c85e?ts(_0x8eb785,_0x501584):_0x8eb785,_0x2c6f7d=_0x2446b2[_0x4b48af(0x214)]-0x1,_0x2c555a;_0x2c6f7d>=0x0;_0x2c6f7d--)(_0x2c555a=_0x2446b2[_0x2c6f7d])&&(_0x18524f=_0x2c555a(_0x18524f)||_0x18524f);return _0x18524f;},F=(_0x1366cf,_0x1e0c27)=>(_0x1b311c,_0x49915b)=>_0x1e0c27(_0x1b311c,_0x49915b,_0x1366cf);exports[_0x4b86e5(0x295)]=class extends u['CollaborationSocketService']{constructor(_0x15d368,_0x163254,_0x3b8f99,_0x969118,_0x213cac){super(_0x15d368,_0x163254,_0x3b8f99,_0x969118,_0x213cac);}async[_0x4b86e5(0x2c9)](_0x389383){const _0x2c2fe1=_0x4b86e5,_0x3cff92=await this[_0x2c2fe1(0x191)](),_0x39171a=this['_createSocketURL'](_0x389383,_0x3cff92);return this[_0x2c2fe1(0x149)](_0x39171a);}[_0x4b86e5(0x234)](_0x21e01f,_0x20050e){const _0x5e31ca=_0x4b86e5,_0x45ec89=typeof window>'u'?new URL(_0x21e01f):new URL(_0x21e01f,window[_0x5e31ca(0x1db)][_0x5e31ca(0xe4)]);_0x45ec89['searchParams'][_0x5e31ca(0x276)](_0x5e31ca(0x292),_0x20050e);const _0x1f3661=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5e31ca(0x1db)]['search']);return _0x1f3661[_0x5e31ca(0x2e2)](_0x5e31ca(0x2b8))&&_0x45ec89[_0x5e31ca(0x2d9)][_0x5e31ca(0x276)]('runId',_0x1f3661[_0x5e31ca(0x2e2)](_0x5e31ca(0x2b8))),_0x45ec89[_0x5e31ca(0x10a)]();}async[_0x4b86e5(0x191)](){const _0x2c2c31=_0x4b86e5;var _0x3107b0,_0x22d171,_0x3f73b2;const _0x268209=this[_0x2c2c31(0x31d)][_0x2c2c31(0x1e5)](u[_0x2c2c31(0x27d)]),_0x493510=(_0x3107b0=_0x268209==null?void 0x0:_0x268209[_0x2c2c31(0xf6)])!=null?_0x3107b0:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x3f73b2=(_0x22d171=(await this[_0x2c2c31(0x1eb)][_0x2c2c31(0x2e2)](_0x493510,{'headers':{'Content-Type':'application/json'}}))[_0x2c2c31(0x11b)])==null?void 0x0:_0x22d171[_0x2c2c31(0x322)])!=null?_0x3f73b2:'';}},exports[_0x4b86e5(0x295)]=ss([F(0x0,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x183)])),F(0x1,a[_0x4b86e5(0x15b)](G[_0x4b86e5(0xd4)])),F(0x2,a['IConfigService']),F(0x3,a[_0x4b86e5(0x139)]),F(0x4,m[_0x4b86e5(0xc4)])],exports[_0x4b86e5(0x295)]);const Me=0x7530,Le=_0x4b86e5(0x136);class is extends a[_0x4b86e5(0x1b8)]{constructor(){const _0x49775c=_0x4b86e5;super(),h(this,_0x49775c(0xd2),a[_0x49775c(0x160)]()),h(this,_0x49775c(0x16e),new Set()),h(this,_0x49775c(0x254),new Map()),h(this,_0x49775c(0x17d),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x49775c(0xd0),new Map()),this[_0x49775c(0x1f3)]();}[_0x4b86e5(0x161)](){const _0x1575da=_0x4b86e5;super[_0x1575da(0x161)](),this['_clearOtherTimers'][_0x1575da(0x31f)]((_0x1a8db4,_0x41b7ac)=>this[_0x1575da(0x147)](_0x41b7ac)),this[_0x1575da(0x17d)]&&window[_0x1575da(0x12c)](this[_0x1575da(0x17d)]);}[_0x4b86e5(0x30b)](_0x4fb1b2){const _0x3aff98=_0x4b86e5;return this[_0x3aff98(0x1c2)](_0x4fb1b2)[_0x3aff98(0xff)](d[_0x3aff98(0xdf)]());}[_0x4b86e5(0x1c9)](_0x39fc5d){const _0x3a5b00=_0x4b86e5;this[_0x3a5b00(0x16e)][_0x3a5b00(0xc7)]===0x0&&this[_0x3a5b00(0x1f4)](),this[_0x3a5b00(0x16e)][_0x3a5b00(0x1c7)](_0x39fc5d),this[_0x3a5b00(0x14e)]({'type':0x0,'memberID':this[_0x3a5b00(0xd2)],'unitIDs':[_0x39fc5d],'isForwarded':!0x1});}[_0x4b86e5(0xf3)](_0x1fe442){const _0x29e8ae=_0x4b86e5;this[_0x29e8ae(0x16e)][_0x29e8ae(0x1b5)](_0x1fe442),this['_selfUnitIDs']['size']===0x0&&this[_0x29e8ae(0x17d)]&&window[_0x29e8ae(0x12c)](this[_0x29e8ae(0x17d)]);}['_init'](){const _0x3e24eb=_0x4b86e5;this[_0x3e24eb(0x240)](a['toDisposable'](d[_0x3e24eb(0x2a0)](window,_0x3e24eb(0x323))['subscribe'](_0x1e1bd7=>{const _0x499eea=_0x3e24eb;if(_0x1e1bd7[_0x499eea(0x1f6)]!==Le||!_0x1e1bd7[_0x499eea(0xfd)])return;const _0x5d6b53=JSON[_0x499eea(0xdd)](_0x1e1bd7[_0x499eea(0xfd)]);this[_0x499eea(0xca)](_0x5d6b53);}))),window[_0x3e24eb(0x110)](_0x3e24eb(0x1f1),()=>this[_0x3e24eb(0x14e)]({'type':0x1,'memberID':this[_0x3e24eb(0xd2)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x4b86e5(0xca)](_0x50798f){const _0x4afddd=_0x4b86e5;switch(_0x50798f[_0x4afddd(0xfe)]){case 0x0:this[_0x4afddd(0x18d)](_0x50798f);break;case 0x1:this['_handleLeaveEvent'](_0x50798f);break;case 0x2:this['_handleHeartbeatEvent'](_0x50798f);break;}}[_0x4b86e5(0x18d)](_0x55f29f){const _0x30dc34=_0x4b86e5,{unitIDs:_0x3d1573,memberID:_0x234185,isForwarded:_0x40f238}=_0x55f29f;_0x3d1573[_0x30dc34(0x31f)](_0x41be8f=>{const _0x14db56=_0x30dc34;if(!_0x40f238&&this[_0x14db56(0x254)][_0x14db56(0x135)](_0x41be8f)&&this[_0x14db56(0x1c2)](_0x41be8f)[_0x14db56(0x2f4)](u['UnitStatus'][_0x14db56(0x17a)]),!this['_unitOnClients'][_0x14db56(0x135)](_0x41be8f)||!this['_unitOnClients'][_0x14db56(0x2e2)](_0x41be8f)[_0x14db56(0x135)](_0x234185)){const _0x6b0f7b=this[_0x14db56(0x254)]['get'](_0x41be8f)||new Set();_0x6b0f7b['add'](_0x234185),this[_0x14db56(0x254)][_0x14db56(0x276)](_0x41be8f,_0x6b0f7b),this[_0x14db56(0x171)](_0x234185);}}),_0x40f238||this[_0x30dc34(0x14e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x30dc34(0x16e)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x299d4d){const _0x3f6d0a=_0x4b86e5;this['_removeClearOtherTimer'](_0x299d4d);const _0x402e96=window[_0x3f6d0a(0x230)](()=>{this['_unitOnClients']['forEach'](_0x3252d6=>{_0x3252d6['delete'](_0x299d4d);});},Me*0x2);this[_0x3f6d0a(0x2c8)]['set'](_0x299d4d,_0x402e96);}[_0x4b86e5(0x147)](_0x4c03cb){const _0x5e7faa=_0x4b86e5;if(this[_0x5e7faa(0x2c8)]['has'](_0x4c03cb)){const _0x178516=this[_0x5e7faa(0x2c8)]['get'](_0x4c03cb);_0x178516&&window['clearTimeout'](_0x178516),this[_0x5e7faa(0x2c8)][_0x5e7faa(0x276)](_0x4c03cb,null);}}['_handleLeaveEvent'](_0x2ed61e){const _0x2226ec=_0x4b86e5,{memberID:_0x2a00f8,unitIDs:_0x5f3998}=_0x2ed61e;_0x5f3998[_0x2226ec(0x31f)](_0x2cd490=>{const _0x424b9a=_0x2226ec;var _0xe4871a;const _0x328c76=this[_0x424b9a(0x254)][_0x424b9a(0x2e2)](_0x2cd490);_0x328c76&&(_0x328c76['delete'](_0x2a00f8),(_0xe4871a=this[_0x424b9a(0x1c2)](_0x2cd490))==null||_0xe4871a['next'](_0x328c76[_0x424b9a(0xc7)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x424b9a(0xb7)][_0x424b9a(0x17a)]));}),this[_0x2226ec(0x147)](_0x2a00f8);}[_0x4b86e5(0x16f)](_0x3aded5){const _0xa135f3=_0x4b86e5;this[_0xa135f3(0x171)](_0x3aded5[_0xa135f3(0x279)]);}[_0x4b86e5(0x14e)](_0x2964b8){const _0x505aca=_0x4b86e5;localStorage['setItem'](Le,JSON[_0x505aca(0x1f8)](_0x2964b8));}[_0x4b86e5(0x1f4)](){const _0x361d32=_0x4b86e5;this[_0x361d32(0x17d)]=window[_0x361d32(0x216)](()=>{const _0xbc23fa=_0x361d32;this[_0xbc23fa(0x14e)]({'type':0x2,'memberID':this[_0xbc23fa(0xd2)]});},Me);}[_0x4b86e5(0x1c2)](_0x5a0b5c){const _0x9e41cf=_0x4b86e5;return this[_0x9e41cf(0xd0)][_0x9e41cf(0x135)](_0x5a0b5c)||this[_0x9e41cf(0xd0)][_0x9e41cf(0x276)](_0x5a0b5c,new d[(_0x9e41cf(0x23b))](u['UnitStatus']['NO_OTHER_CLIENTS_EDITING'])),this[_0x9e41cf(0xd0)][_0x9e41cf(0x2e2)](_0x5a0b5c);}}var Be=(_0x17ea03=>(_0x17ea03[_0x17ea03[_0x4b86e5(0xc6)]=0x0]=_0x4b86e5(0xc6),_0x17ea03[_0x17ea03['OK']=0x1]='OK',_0x17ea03[_0x17ea03['INTERNAL_ERROR']=0x2]=_0x4b86e5(0x349),_0x17ea03[_0x17ea03[_0x4b86e5(0x184)]=0x3]=_0x4b86e5(0x184),_0x17ea03[_0x17ea03[_0x4b86e5(0x1e3)]=0x4]=_0x4b86e5(0x1e3),_0x17ea03[_0x17ea03[_0x4b86e5(0x2ef)]=0x5]=_0x4b86e5(0x2ef),_0x17ea03[_0x17ea03[_0x4b86e5(0x1f5)]=0x6]=_0x4b86e5(0x1f5),_0x17ea03[_0x17ea03[_0x4b86e5(0x30c)]=0x7]=_0x4b86e5(0x30c),_0x17ea03[_0x17ea03[_0x4b86e5(0x23f)]=0x8]=_0x4b86e5(0x23f),_0x17ea03[_0x17ea03[_0x4b86e5(0x173)]=0x9]=_0x4b86e5(0x173),_0x17ea03[_0x17ea03[_0x4b86e5(0x17b)]=0xa]=_0x4b86e5(0x17b),_0x17ea03[_0x17ea03['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4b86e5(0x1d9),_0x17ea03[_0x17ea03['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x4b86e5(0xf5),_0x17ea03[_0x17ea03['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4b86e5(0x1d3),_0x17ea03[_0x17ea03[_0x4b86e5(0x2b5)]=0x1773]=_0x4b86e5(0x2b5),_0x17ea03[_0x17ea03[_0x4b86e5(0x2e8)]=0x1b59]=_0x4b86e5(0x2e8),_0x17ea03[_0x17ea03[_0x4b86e5(0xe8)]=0x1b5a]=_0x4b86e5(0xe8),_0x17ea03[_0x17ea03[_0x4b86e5(0x275)]=0x1b5b]=_0x4b86e5(0x275),_0x17ea03[_0x17ea03[_0x4b86e5(0x194)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x17ea03[_0x17ea03['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x17ea03[_0x17ea03[_0x4b86e5(0x1ca)]=0x1f41]=_0x4b86e5(0x1ca),_0x17ea03[_0x17ea03['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4b86e5(0x31c),_0x17ea03[_0x17ea03[_0x4b86e5(0x201)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x17ea03[_0x17ea03[_0x4b86e5(0x1aa)]=0x232b]=_0x4b86e5(0x1aa),_0x17ea03[_0x17ea03[_0x4b86e5(0xb3)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x17ea03[_0x17ea03[_0x4b86e5(0x2b9)]=0x232d]=_0x4b86e5(0x2b9),_0x17ea03[_0x17ea03[_0x4b86e5(0x1e1)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x17ea03[_0x17ea03[_0x4b86e5(0xb4)]=0x2712]=_0x4b86e5(0xb4),_0x17ea03[_0x17ea03[_0x4b86e5(0xbd)]=0x2713]=_0x4b86e5(0xbd),_0x17ea03[_0x17ea03['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x17ea03[_0x17ea03[_0x4b86e5(0x330)]=0x271a]=_0x4b86e5(0x330),_0x17ea03[_0x17ea03['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x4b86e5(0x271),_0x17ea03[_0x17ea03['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x4b86e5(0x28a),_0x17ea03[_0x17ea03[_0x4b86e5(0x315)]=0x271d]=_0x4b86e5(0x315),_0x17ea03[_0x17ea03[_0x4b86e5(0xd9)]=0x271e]=_0x4b86e5(0xd9),_0x17ea03[_0x17ea03['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x17ea03[_0x17ea03[_0x4b86e5(0x30d)]=0x2af9]=_0x4b86e5(0x30d),_0x17ea03[_0x17ea03['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x4b86e5(0x20c),_0x17ea03[_0x17ea03[_0x4b86e5(0x224)]=0x2ee2]=_0x4b86e5(0x224),_0x17ea03[_0x17ea03[_0x4b86e5(0x312)]=0x2ee3]=_0x4b86e5(0x312),_0x17ea03[_0x17ea03[_0x4b86e5(0x339)]=0x2ee4]=_0x4b86e5(0x339),_0x17ea03[_0x17ea03['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x17ea03[_0x17ea03[_0x4b86e5(0x287)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x17ea03[_0x17ea03[_0x4b86e5(0xd1)]=0x32ca]=_0x4b86e5(0xd1),_0x17ea03[_0x17ea03['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x4b86e5(0xc5),_0x17ea03[_0x17ea03[_0x4b86e5(0x116)]=-0x1]=_0x4b86e5(0x116),_0x17ea03))(Be||{}),ns=Object[_0x4b86e5(0x220)],rs=(_0x2b44da,_0x5a1f23,_0x26d79d,_0x435205)=>{const _0x5a8477=_0x4b86e5;for(var _0x273ea7=_0x435205>0x1?void 0x0:_0x435205?ns(_0x5a1f23,_0x26d79d):_0x5a1f23,_0x1abe98=_0x2b44da[_0x5a8477(0x214)]-0x1,_0x5ae722;_0x1abe98>=0x0;_0x1abe98--)(_0x5ae722=_0x2b44da[_0x1abe98])&&(_0x273ea7=_0x5ae722(_0x273ea7)||_0x273ea7);return _0x273ea7;},ue=(_0x4daffa,_0x3366d7)=>(_0x361182,_0x4a2a77)=>_0x3366d7(_0x361182,_0x4a2a77,_0x4daffa);exports[_0x4b86e5(0x2b6)]=class extends a[_0x4b86e5(0x1b8)]{constructor(_0x3dbed9,_0x749b14,_0x9ac66a){const _0x7c12b4=_0x4b86e5;super(),this[_0x7c12b4(0x251)]=_0x3dbed9,this[_0x7c12b4(0x1eb)]=_0x749b14,this[_0x7c12b4(0x31d)]=_0x9ac66a;}async['runOnServer'](_0x283dc8,_0x5abc9e,_0x2a2297,..._0x1b5be8){const _0x158edc=_0x4b86e5;var _0x3f3f2a,_0x367df2,_0x1e3d85,_0x1d1db7;const _0x4b8a69=this[_0x158edc(0x251)]['getFocusedUnit']();if(!_0x4b8a69)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2b73af=((_0x3f3f2a=this['_configService'][_0x158edc(0x1e5)](u[_0x158edc(0x331)]))!=null?_0x3f3f2a:u[_0x158edc(0x24a)])+'/'+_0x283dc8+_0x158edc(0x15d)+_0x5abc9e,_0x58c895=new URL(window[_0x158edc(0x1db)][_0x158edc(0x2ee)]),_0x4477f5={'scriptId':_0x283dc8,'runId':(_0x367df2=_0x58c895[_0x158edc(0x2d9)][_0x158edc(0x2e2)](_0x158edc(0x2b8)))!=null?_0x367df2:'','function':_0x5abc9e,'unitId':_0x4b8a69[_0x158edc(0x334)](),'argsOfFunction':JSON[_0x158edc(0x1f8)](_0x1b5be8),'invokeId':(_0x1e3d85=_0x2a2297[_0x158edc(0x1bf)])!=null?_0x1e3d85:'','executionId':(_0x1d1db7=_0x2a2297['executionId'])!=null?_0x1d1db7:''};try{const _0x2e4e22=await this[_0x158edc(0x1eb)][_0x158edc(0x2ea)](_0x2b73af,{'body':_0x4477f5});return _0x2e4e22[_0x158edc(0x11b)][_0x158edc(0x338)]&&_0x2e4e22[_0x158edc(0x11b)][_0x158edc(0x338)][_0x158edc(0xbb)]!==Be['OK']?_0x158edc(0x167):_0x2e4e22[_0x158edc(0x11b)]['result'];}catch{return'Failed';}}},exports[_0x4b86e5(0x2b6)]=rs([ue(0x0,a[_0x4b86e5(0x114)]),ue(0x1,a[_0x4b86e5(0x15b)](G[_0x4b86e5(0xd4)])),ue(0x2,a[_0x4b86e5(0x2e6)])],exports[_0x4b86e5(0x2b6)]),exports[_0x4b86e5(0x1f7)]=xe,exports[_0x4b86e5(0x1bc)]=be,exports[_0x4b86e5(0x206)]=Pe,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x4b86e5(0x13c)]=je;
1
+ 'use strict';const _0x25b3be=_0x4727;(function(_0x5857f1,_0x4cbbdc){const _0x21e084=_0x4727,_0x5bf233=_0x5857f1();while(!![]){try{const _0x23101b=parseInt(_0x21e084(0x1fc))/0x1*(parseInt(_0x21e084(0x304))/0x2)+-parseInt(_0x21e084(0x449))/0x3+parseInt(_0x21e084(0x3da))/0x4*(parseInt(_0x21e084(0x386))/0x5)+parseInt(_0x21e084(0x3ee))/0x6*(parseInt(_0x21e084(0x335))/0x7)+-parseInt(_0x21e084(0x3c1))/0x8+-parseInt(_0x21e084(0x3fd))/0x9+-parseInt(_0x21e084(0x36f))/0xa;if(_0x23101b===_0x4cbbdc)break;else _0x5bf233['push'](_0x5bf233['shift']());}catch(_0x388a91){_0x5bf233['push'](_0x5bf233['shift']());}}}(_0x1963,0xbe018));var Ve=Object['defineProperty'],Xe=(_0x4b9ef8,_0x186cbe,_0x220db6)=>_0x186cbe in _0x4b9ef8?Ve(_0x4b9ef8,_0x186cbe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x220db6}):_0x4b9ef8[_0x186cbe]=_0x220db6,h=(_0xb5178c,_0x47d09c,_0x5a843c)=>Xe(_0xb5178c,typeof _0x47d09c!='symbol'?_0x47d09c+'':_0x47d09c,_0x5a843c);Object[_0x25b3be(0x381)](exports,Symbol[_0x25b3be(0x44a)],{'value':_0x25b3be(0x359)});const u=require(_0x25b3be(0x3ba)),a=require(_0x25b3be(0x2ce)),p=require(_0x25b3be(0x395)),G=require(_0x25b3be(0x24f)),b=require(_0x25b3be(0x463)),Ge=require('@univerjs/drawing'),d=require(_0x25b3be(0x31f)),Y=require(_0x25b3be(0x344)),m=require(_0x25b3be(0x385)),Ee=require(_0x25b3be(0x311)),g=require('@univerjs/sheets'),$=require(_0x25b3be(0x223)),X=require(_0x25b3be(0x2fc)),w=require('react/jsx-runtime'),T=require('@univerjs/ui'),D=require('@univerjs/design'),M=require(_0x25b3be(0x453)),Ke=require(_0x25b3be(0x28f));var qe=Object[_0x25b3be(0x3d6)],ze=(_0x5ef069,_0x29bdb4,_0x4a5aac,_0x50f0f4)=>{const _0x2e35ef=_0x25b3be;for(var _0x1fe383=_0x50f0f4>0x1?void 0x0:_0x50f0f4?qe(_0x29bdb4,_0x4a5aac):_0x29bdb4,_0x21969d=_0x5ef069[_0x2e35ef(0x3f9)]-0x1,_0x3ab9c7;_0x21969d>=0x0;_0x21969d--)(_0x3ab9c7=_0x5ef069[_0x21969d])&&(_0x1fe383=_0x3ab9c7(_0x1fe383)||_0x1fe383);return _0x1fe383;},Te=(_0x54e100,_0x1e01e4)=>(_0x27b96f,_0x4b9506)=>_0x1e01e4(_0x27b96f,_0x4b9506,_0x54e100);let de=class extends a[_0x25b3be(0x2ab)]{constructor(_0x27be67,_0x55e450){const _0x432d69=_0x25b3be;super(),this[_0x432d69(0x358)]=_0x27be67,this[_0x432d69(0x2a3)]=_0x55e450,this[_0x432d69(0x3cf)]();}['_init'](){const _0x445ec0=_0x25b3be,_0x388b97=this;this[_0x445ec0(0x415)](this[_0x445ec0(0x358)][_0x445ec0(0x46d)]({'onBeforePasteImage':async _0x124300=>{const _0x2e826a=_0x445ec0,_0x2bf2fb=await _0x388b97['_imageIoService'][_0x2e826a(0x2d4)](_0x124300);return _0x2bf2fb?{'source':_0x2bf2fb[_0x2e826a(0x204)],'imageSourceType':_0x2bf2fb[_0x2e826a(0x3cb)]}:null;}}));}};de=ze([Te(0x0,b[_0x25b3be(0x41a)]),Te(0x1,Ge[_0x25b3be(0x3c6)])],de);const Oe=[_0x25b3be(0x213),_0x25b3be(0x427),'green.600',_0x25b3be(0x33f),_0x25b3be(0x301),_0x25b3be(0x3b1)];class me extends a[_0x25b3be(0x42f)]{constructor(){const _0x2b4bb0=_0x25b3be;super(...arguments),h(this,_0x2b4bb0(0x2c5),new Map()),h(this,_0x2b4bb0(0x321),0x0);}[_0x25b3be(0x34f)](_0x5c4487){const _0x242a99=_0x25b3be;if(this[_0x242a99(0x2c5)]['has'](_0x5c4487))return this['_assignedColors'][_0x242a99(0x33e)](_0x5c4487);const _0x431cd9=Oe[this['_colorIndex']];return this[_0x242a99(0x321)]=(this['_colorIndex']+0x1)%Oe[_0x242a99(0x3f9)],this['_assignedColors'][_0x242a99(0x320)](_0x5c4487,_0x431cd9),_0x431cd9;}}function we(_0xe88ac4){const _0x57242f=_0x25b3be;let _0x30d5a1='';for(const _0x1d10df of _0xe88ac4){const {startOffset:_0x27efa9,endOffset:_0x598467,isActive:_0x46591b,rangeType:_0x4674c6,segmentId:_0x1989f5,segmentPage:_0x3910a5}=_0x1d10df;_0x30d5a1[_0x57242f(0x3f9)]&&(_0x30d5a1+=','),_0x30d5a1+=_0x27efa9+':'+_0x598467+':'+(_0x46591b?'1':'0')+':'+_0x4674c6+':'+_0x1989f5+':'+_0x3910a5;}return _0x30d5a1;}function Je(_0xcb2471){const _0x36b58f=_0x25b3be,_0x3cc161=_0xcb2471[_0x36b58f(0x27b)](','),_0x5885c9=[];for(const _0x19229e of _0x3cc161){const [_0x435193,_0x27eaee,_0x36829c,_0x1c6460,_0x74e340,_0x4580f2]=_0x19229e[_0x36b58f(0x27b)](':');_0x5885c9[_0x36b58f(0x398)]({'startOffset':Number(_0x435193),'endOffset':Number(_0x27eaee),'collapsed':_0x435193===_0x27eaee,'isActive':_0x36829c==='1','rangeType':_0x1c6460===a[_0x36b58f(0x455)][_0x36b58f(0x284)]?a[_0x36b58f(0x455)][_0x36b58f(0x284)]:a[_0x36b58f(0x455)]['RECT'],'segmentId':typeof _0x74e340==_0x36b58f(0x31a)?String(_0x74e340):'','segmentPage':Number(_0x4580f2!=null?_0x4580f2:-0x1)});}return _0x5885c9[_0x36b58f(0x34e)](_0x33c9f1=>_0x33c9f1['isActive'])||(_0x5885c9[0x0][_0x36b58f(0x436)]=!0x0),_0x5885c9;}class Ce extends a[_0x25b3be(0x2ab)]{constructor(){const _0x353277=_0x25b3be;super(...arguments),h(this,_0x353277(0x471),new d[(_0x353277(0x438))](null)),h(this,'collabCursorState$',this[_0x353277(0x471)][_0x353277(0x1f3)]());}['syncEditingCollabCursor'](_0x390324){const _0x44a573=_0x25b3be,{unitID:_0x5e4a6d,memberID:_0x536774,textRanges:_0x110e3a}=_0x390324,_0x3c7fc9=we(_0x110e3a);if(_0x3c7fc9==='')return;const _0x3e7fd2={'unitID':_0x5e4a6d,'memberID':_0x536774,'selection':_0x3c7fc9};this[_0x44a573(0x471)][_0x44a573(0x227)](_0x3e7fd2);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x48fb58,_0x3a93de,_0x427010,_0x3d0305)=>{const _0x133815=_0x25b3be;for(var _0x349ea5=_0x3d0305>0x1?void 0x0:_0x3d0305?Ze(_0x3a93de,_0x427010):_0x3a93de,_0x209582=_0x48fb58[_0x133815(0x3f9)]-0x1,_0x5ee9c8;_0x209582>=0x0;_0x209582--)(_0x5ee9c8=_0x48fb58[_0x209582])&&(_0x349ea5=_0x5ee9c8(_0x349ea5)||_0x349ea5);return _0x349ea5;},L=(_0x23b908,_0xeb856e)=>(_0x17889b,_0x4ac14e)=>_0xeb856e(_0x17889b,_0x4ac14e,_0x23b908);const et=0x12c,tt=0x64;let fe=class extends a[_0x25b3be(0x2ab)]{constructor(_0x11f368,_0x1af1c8,_0x8eba68,_0x10e6a8,_0x9eecc3,_0x46492e,_0x45b487,_0x7f78ee,_0x7da776){const _0x3ebfd7=_0x25b3be;super(),h(this,_0x3ebfd7(0x256),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,_0x3ebfd7(0x2c3),this[_0x3ebfd7(0x1f0)][_0x3ebfd7(0x1f3)]()),h(this,_0x3ebfd7(0x34d),new d[(_0x3ebfd7(0x438))]([])),h(this,_0x3ebfd7(0x3b3),this['_roomMembers$'][_0x3ebfd7(0x3b0)](d[_0x3ebfd7(0x37d)](et))),h(this,_0x3ebfd7(0x435),a[_0x3ebfd7(0x308)](_0x3c778b=>{const _0x1247fa=_0x3ebfd7,_0x2e292a={'eventID':m['CollaborationEvent'][_0x1247fa(0x1fd)],'data':{'unitID':this['unitID'],'memberID':this[_0x1247fa(0x219)][_0x1247fa(0x401)](),'selection':we(_0x3c778b)}};this['_session'][_0x1247fa(0x29c)](_0x2e292a,this[_0x1247fa(0x232)]);},tt)),(this[_0x3ebfd7(0x232)]=_0x11f368,this['_session']=_0x1af1c8,this[_0x3ebfd7(0x39a)]=_0x8eba68,this[_0x3ebfd7(0x465)]=_0x10e6a8,this[_0x3ebfd7(0x295)]=_0x9eecc3,this[_0x3ebfd7(0x290)]=_0x46492e,this[_0x3ebfd7(0x35c)]=_0x45b487,this[_0x3ebfd7(0x271)]=_0x7f78ee,this['_commandService']=_0x7da776);}get['cursorInfo'](){const _0x420336=_0x25b3be;return this[_0x420336(0x1f0)]['getValue']();}get['roomMembers'](){const _0x3ad92b=_0x25b3be;return this['_roomMembers$'][_0x3ad92b(0x3b8)]();}[_0x25b3be(0x318)](){const _0x4845f1=_0x25b3be;super[_0x4845f1(0x318)](),this[_0x4845f1(0x1f0)][_0x4845f1(0x227)](new Map()),this[_0x4845f1(0x1f0)][_0x4845f1(0x26d)](),this[_0x4845f1(0x34d)][_0x4845f1(0x227)]([]),this[_0x4845f1(0x34d)]['complete']();}[_0x25b3be(0x1f1)](){const _0x2b7216=_0x25b3be;this[_0x2b7216(0x3cf)]||(this[_0x2b7216(0x3cf)]=!0x0,this[_0x2b7216(0x219)][_0x2b7216(0x2a0)][_0x2b7216(0x3b0)](d[_0x2b7216(0x408)](this['dispose$']))['subscribe'](_0x49ae4f=>{const _0x101534=_0x2b7216;_0x49ae4f===u[_0x101534(0x323)][_0x101534(0x361)]?this[_0x101534(0x342)]():this[_0x101534(0x27f)]();}),this[_0x2b7216(0x219)][_0x2b7216(0x30c)]['pipe'](d[_0x2b7216(0x408)](this['dispose$']))[_0x2b7216(0x22c)](_0x550b41=>{const _0x84f688=_0x2b7216,_0x1d54fa=_0x550b41[_0x84f688(0x3a4)];_0x1d54fa===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x84f688(0x274)](_0x550b41),_0x1d54fa===m[_0x84f688(0x32e)][_0x84f688(0x2ff)]&&this[_0x84f688(0x3a0)](_0x550b41);}),this[_0x2b7216(0x415)](this[_0x2b7216(0x309)][_0x2b7216(0x328)](_0x153d40=>{const _0x33cd66=_0x2b7216,_0x1f601d=_0x153d40[_0x33cd66(0x24a)];_0x1f601d!=null&&this[_0x33cd66(0x256)]&&_0x153d40['id']===Y[_0x33cd66(0x1f4)]['id']&&_0x1f601d[_0x33cd66(0x375)]===this[_0x33cd66(0x232)]&&_0x1f601d[_0x33cd66(0x350)]===!0x1&&_0x1f601d[_0x33cd66(0x2b8)]['length']>0x0&&this[_0x33cd66(0x435)](_0x1f601d[_0x33cd66(0x2b8)]);})),this[_0x2b7216(0x290)]['collabCursorState$']['pipe'](d[_0x2b7216(0x408)](this[_0x2b7216(0x420)]))[_0x2b7216(0x22c)](_0x376462=>{const _0x80c90d=_0x2b7216;if((_0x376462==null?void 0x0:_0x376462[_0x80c90d(0x232)])!==this[_0x80c90d(0x232)])return;const _0x316399={'eventID':m[_0x80c90d(0x32e)][_0x80c90d(0x1fd)],'data':_0x376462};this['_onCursorUpdate'](_0x316399);}),this[_0x2b7216(0x415)](this[_0x2b7216(0x309)][_0x2b7216(0x328)](_0x49e37b=>{const _0x2e5652=_0x2b7216;if(_0x49e37b[_0x2e5652(0x24a)]==null)return;const _0xc6169d=_0x49e37b[_0x2e5652(0x24a)];if(_0x49e37b['id']!==Y[_0x2e5652(0x38e)]['id']||_0xc6169d[_0x2e5652(0x375)]!==this[_0x2e5652(0x232)])return;const _0x38fdce={'id':'doc.mutation.rich-text-editing','params':_0xc6169d},_0x562476=this['cursorInfo'];for(const [_0x3218f3,_0xf07a0f]of _0x562476){const _0xdce1cb={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xf07a0f[_0x2e5652(0x2b8)]}},_0x13bb9e=this[_0x2e5652(0x35c)]['transformMutation'](_0x38fdce,_0xdce1cb,!0x1);if(m[_0x2e5652(0x41b)](_0x13bb9e))throw _0x13bb9e[_0x2e5652(0x267)];_0x562476['set'](_0x3218f3,{..._0xf07a0f,'ranges':_0x13bb9e[_0x2e5652(0x20d)]['params'][_0x2e5652(0x2e3)]});}queueMicrotask(()=>{const _0x23857c=_0x2e5652;this[_0x23857c(0x1f0)][_0x23857c(0x227)](_0x562476);});})));}[_0x25b3be(0x274)](_0x556654){const _0x5a69a3=_0x25b3be;var _0x3caf73,_0x2a4e20;const {memberID:_0x2a2a84,selection:_0x54b6a9}=_0x556654['data'],_0x27bdd8=Je(_0x54b6a9),_0x554083=(_0x2a4e20=(_0x3caf73=this[_0x5a69a3(0x295)][_0x5a69a3(0x2d6)](this[_0x5a69a3(0x232)],_0x2a2a84))==null?void 0x0:_0x3caf73[_0x5a69a3(0x33c)])!=null?_0x2a4e20:_0x5a69a3(0x39b),_0xcd4ff1={'color':this[_0x5a69a3(0x465)][_0x5a69a3(0x34f)](_0x2a2a84),'name':_0x554083,'ranges':_0x27bdd8},_0x1f1ca9=this[_0x5a69a3(0x393)];_0x1f1ca9[_0x5a69a3(0x320)](_0x2a2a84,_0xcd4ff1),this[_0x5a69a3(0x1f0)]['next'](_0x1f1ca9);}['_onCursorDelete'](_0x5d641d){const _0x228b42=_0x25b3be,{memberID:_0x572a91}=_0x5d641d[_0x228b42(0x1f6)],_0xa7b92=this[_0x228b42(0x393)];_0xa7b92['delete'](_0x572a91),this['_cursorInfo$'][_0x228b42(0x227)](_0xa7b92);}[_0x25b3be(0x342)](){const _0x792ad4=_0x25b3be;var _0x3bfb5c;if(this['_online']=!0x0,((_0x3bfb5c=this['_univerInstanceService'][_0x792ad4(0x380)]())==null?void 0x0:_0x3bfb5c[_0x792ad4(0x3bc)]())!==this[_0x792ad4(0x232)])return;const _0x35de7d=this['_injector'][_0x792ad4(0x33e)](Y[_0x792ad4(0x2e9)])[_0x792ad4(0x264)]();Array[_0x792ad4(0x23e)](_0x35de7d)&&_0x35de7d[_0x792ad4(0x3f9)]>0x0&&this[_0x792ad4(0x435)](_0x35de7d);}['_toggleOffline'](){const _0x493684=_0x25b3be;this[_0x493684(0x256)]=!0x1;}};fe=Qe([L(0x2,a[_0x25b3be(0x23f)](a[_0x25b3be(0x2cc)])),L(0x3,a[_0x25b3be(0x23f)](me)),L(0x4,a[_0x25b3be(0x23f)](u[_0x25b3be(0x452)])),L(0x5,a[_0x25b3be(0x23f)](Ce)),L(0x6,m[_0x25b3be(0x255)]),L(0x7,a[_0x25b3be(0x3a2)]),L(0x8,a[_0x25b3be(0x233)])],fe);var st=Object[_0x25b3be(0x3d6)],it=(_0x46c3e0,_0x2518c2,_0x44dd67,_0x123df7)=>{const _0x130167=_0x25b3be;for(var _0x5a0c88=_0x123df7>0x1?void 0x0:_0x123df7?st(_0x2518c2,_0x44dd67):_0x2518c2,_0x205a60=_0x46c3e0[_0x130167(0x3f9)]-0x1,_0x32c8d2;_0x205a60>=0x0;_0x205a60--)(_0x32c8d2=_0x46c3e0[_0x205a60])&&(_0x5a0c88=_0x32c8d2(_0x5a0c88)||_0x5a0c88);return _0x5a0c88;},A=(_0x13841b,_0x30de19)=>(_0xa8457e,_0x4aeb34)=>_0x30de19(_0xa8457e,_0x4aeb34,_0x13841b);const nt=0x12c,rt=0x64,ot=()=>{let _0x5212fb=[],_0x17c5de=!0x1;return _0x29756b=>{_0x5212fb['push'](_0x29756b),_0x17c5de||(_0x17c5de=!0x0,setTimeout(()=>{_0x5212fb['forEach'](_0x500205=>_0x500205()),_0x5212fb=[],_0x17c5de=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x625ac,_0x46842d,_0x182b00,_0x108191,_0x41ac6d,_0xd7cdd0,_0x3859fe,_0x21beb7){const _0x2bd542=_0x25b3be;super(),h(this,'_online',!0x1),h(this,_0x2bd542(0x3cf),!0x1),h(this,_0x2bd542(0x1f0),new d[(_0x2bd542(0x438))](new Map())),h(this,'cursorInfo$',this[_0x2bd542(0x1f0)][_0x2bd542(0x1f3)]()),h(this,_0x2bd542(0x34d),new d[(_0x2bd542(0x438))]([])),h(this,_0x2bd542(0x3b3),this['_roomMembers$'][_0x2bd542(0x3b0)](d[_0x2bd542(0x37d)](nt))),h(this,'_updateLocalCursor',a[_0x2bd542(0x308)]((_0x226043,_0x5b85c2)=>{const _0x15e19a=_0x2bd542,_0x2467b3={'eventID':m[_0x15e19a(0x32e)][_0x15e19a(0x1fd)],'data':{'unitID':this[_0x15e19a(0x232)],'memberID':this[_0x15e19a(0x219)][_0x15e19a(0x401)](),'selection':Ee[_0x15e19a(0x337)](_0x226043,_0x5b85c2[_0x15e19a(0x426)])}};this[_0x15e19a(0x219)][_0x15e19a(0x29c)](_0x2467b3,this[_0x15e19a(0x232)]);},rt)),(this[_0x2bd542(0x232)]=_0x625ac,this['_session']=_0x46842d,this[_0x2bd542(0x39a)]=_0x182b00,this['_colorAssignService']=_0x108191,this[_0x2bd542(0x295)]=_0x41ac6d,this[_0x2bd542(0x271)]=_0xd7cdd0,this[_0x2bd542(0x309)]=_0x3859fe,this[_0x2bd542(0x470)]=_0x21beb7);}get['cursorInfo'](){const _0x2056ee=_0x25b3be;return this[_0x2056ee(0x1f0)][_0x2056ee(0x3b8)]();}get[_0x25b3be(0x29e)](){const _0x2b88c5=_0x25b3be;return this[_0x2b88c5(0x34d)]['getValue']();}[_0x25b3be(0x318)](){const _0x1dc31d=_0x25b3be;super[_0x1dc31d(0x318)](),this[_0x1dc31d(0x1f0)]['next'](new Map()),this[_0x1dc31d(0x1f0)][_0x1dc31d(0x26d)](),this['_roomMembers$']['next']([]),this[_0x1dc31d(0x34d)][_0x1dc31d(0x26d)]();}['init'](){const _0x47b866=_0x25b3be;this[_0x47b866(0x3cf)]||(this[_0x47b866(0x3cf)]=!0x0,this[_0x47b866(0x219)][_0x47b866(0x2a0)][_0x47b866(0x3b0)](d[_0x47b866(0x408)](this['dispose$']))['subscribe'](_0x39e8c7=>{const _0x17a816=_0x47b866;_0x39e8c7===u[_0x17a816(0x323)]['ONLINE']?this[_0x17a816(0x342)]():this[_0x17a816(0x27f)]();}),this[_0x47b866(0x219)]['event$'][_0x47b866(0x3b0)](d['takeUntil'](this[_0x47b866(0x420)]))['subscribe'](_0x59fea3=>{const _0x3cc739=_0x47b866,_0x169dbb=_0x59fea3[_0x3cc739(0x3a4)];_0x169dbb===m[_0x3cc739(0x32e)][_0x3cc739(0x1fd)]&&this[_0x3cc739(0x274)](_0x59fea3),_0x169dbb===m[_0x3cc739(0x32e)]['USERS_LEAVE']&&this[_0x3cc739(0x3a0)](_0x59fea3);}),this['_onRefRangeChange'](),this[_0x47b866(0x415)](this[_0x47b866(0x309)][_0x47b866(0x328)](_0x53e352=>{const _0x2487c8=_0x47b866;if(this[_0x2487c8(0x256)]&&_0x53e352['id']===g[_0x2487c8(0x44e)]['id']&&_0x53e352[_0x2487c8(0x24a)][_0x2487c8(0x375)]===this[_0x2487c8(0x232)]){const _0x661326=_0x53e352[_0x2487c8(0x24a)];this[_0x2487c8(0x435)](_0x661326[_0x2487c8(0x413)],_0x661326[_0x2487c8(0x2f9)][0x0]);}})));}[_0x25b3be(0x274)](_0x5d7ffe){const _0x1de0b3=_0x25b3be;var _0x29087a,_0x56f78c;const {memberID:_0x2da21b,selection:_0x2ad869}=_0x5d7ffe['data'],{sheetName:_0x556ce5,range:_0x3dd754}=Ee['deserializeRangeWithSheet'](_0x2ad869),_0x3ea5c0={'name':(_0x56f78c=(_0x29087a=this[_0x1de0b3(0x295)][_0x1de0b3(0x2d6)](this[_0x1de0b3(0x232)],_0x2da21b))==null?void 0x0:_0x29087a[_0x1de0b3(0x33c)])!=null?_0x56f78c:_0x1de0b3(0x39b),'range':this[_0x1de0b3(0x478)](_0x556ce5,_0x3dd754),'sheetID':_0x556ce5,'color':this['_colorAssignService'][_0x1de0b3(0x34f)](_0x2da21b),'selection':_0x2ad869},_0x2ec9de=this[_0x1de0b3(0x393)];_0x2ec9de[_0x1de0b3(0x320)](_0x2da21b,_0x3ea5c0),this['_cursorInfo$']['next'](_0x2ec9de);}['_onCursorDelete'](_0x15b9e5){const _0x1f839f=_0x25b3be,{memberID:_0x2fc96c}=_0x15b9e5[_0x1f839f(0x1f6)],_0x520bc1=this[_0x1f839f(0x393)];_0x520bc1['delete'](_0x2fc96c),this['_cursorInfo$'][_0x1f839f(0x227)](_0x520bc1);}[_0x25b3be(0x478)](_0x2dc852,_0x38ea44){const _0x5e0cc6=_0x25b3be;var _0x4b6ea2,_0x26f3ea;const _0x21f8a5=(_0x26f3ea=(_0x4b6ea2=this['_univerInstanceService'][_0x5e0cc6(0x340)](this[_0x5e0cc6(0x232)]))==null?void 0x0:_0x4b6ea2['getSheetBySheetId'](_0x2dc852))==null?void 0x0:_0x26f3ea[_0x5e0cc6(0x43d)]();return(_0x21f8a5==null?void 0x0:_0x21f8a5[_0x5e0cc6(0x3c2)](_0x2489d6=>a[_0x5e0cc6(0x44b)]['contains'](_0x2489d6,_0x38ea44)))||_0x38ea44;}[_0x25b3be(0x45a)](){const _0x1837a9=_0x25b3be,_0x1ba837=new a[(_0x1837a9(0x235))](),_0x140703=ot(),_0x11eb74=()=>{const _0x158e66=_0x1837a9;_0x1ba837['dispose']();const _0x423b33=(_0x840a0a,_0x3a9486,_0x31dea1,_0xcead26)=>{const _0x2fef39=_0x4727;let _0x20973c=[];switch(_0x840a0a['id']){case g[_0x2fef39(0x39d)][_0x2fef39(0x334)]:{_0x20973c=g[_0x2fef39(0x2e8)](_0x840a0a,_0xcead26);break;}case g[_0x2fef39(0x39d)]['DeleteRangeMoveUpCommandId']:{_0x20973c=g[_0x2fef39(0x3d8)](_0x840a0a,_0xcead26);break;}case g[_0x2fef39(0x39d)]['InsertColCommandId']:{_0x20973c=g[_0x2fef39(0x3e6)](_0x840a0a,_0xcead26);break;}case g['EffectRefRangId'][_0x2fef39(0x314)]:{_0x20973c=g['handleInsertRangeMoveDown'](_0x840a0a,_0xcead26);break;}case g[_0x2fef39(0x39d)][_0x2fef39(0x208)]:{_0x20973c=g[_0x2fef39(0x2a6)](_0x840a0a,_0xcead26);break;}case g[_0x2fef39(0x39d)][_0x2fef39(0x41d)]:{_0x20973c=g[_0x2fef39(0x273)](_0x840a0a,_0xcead26);break;}case g[_0x2fef39(0x39d)][_0x2fef39(0x384)]:{_0x20973c=g['handleMoveRange'](_0x840a0a,_0xcead26);break;}case g['EffectRefRangId'][_0x2fef39(0x25d)]:{_0x20973c=g[_0x2fef39(0x211)](_0x840a0a,_0xcead26);break;}case g[_0x2fef39(0x39d)][_0x2fef39(0x35b)]:{_0x20973c=g['handleIRemoveRow'](_0x840a0a,_0xcead26);break;}}const _0x9e4326=g[_0x2fef39(0x473)](_0x20973c,_0xcead26),_0x3e53fe=this[_0x2fef39(0x393)]['get'](_0x3a9486);if(_0x3e53fe&&_0x9e4326){const _0x4ed8d1={..._0x3e53fe,'range':_0x9e4326};this[_0x2fef39(0x393)][_0x2fef39(0x320)](_0x3a9486,_0x4ed8d1),_0x140703(()=>{const _0x29a71c=_0x2fef39,_0x3f91bc=this[_0x29a71c(0x470)][_0x29a71c(0x297)](_0x9e4326,_0x35a19b=>(_0x3f91bc[_0x29a71c(0x318)](),_0x423b33(_0x35a19b,_0x3a9486,_0x31dea1,_0x9e4326)));_0x1ba837[_0x29a71c(0x33a)](_0x3f91bc);});}return{'redos':[],'undos':[]};};this[_0x158e66(0x393)][_0x158e66(0x45b)]((_0x5d3728,_0x57d4bb)=>{const _0x4f62c3=_0x158e66,{range:_0x1a20ce,sheetID:_0x1cfaee}=_0x5d3728,_0x1e7966=this[_0x4f62c3(0x470)][_0x4f62c3(0x297)](_0x1a20ce,_0x4cbf00=>(_0x1e7966[_0x4f62c3(0x318)](),_0x423b33(_0x4cbf00,_0x57d4bb,_0x1cfaee,_0x1a20ce)));_0x1ba837[_0x4f62c3(0x33a)](_0x1e7966);});};this['disposeWithMe'](a[_0x1837a9(0x36e)](this['_cursorInfo$'][_0x1837a9(0x22c)](()=>{_0x11eb74();})));}[_0x25b3be(0x342)](){const _0x797bee=_0x25b3be;var _0xa26f69,_0xe37457;if(this[_0x797bee(0x256)]=!0x0,((_0xa26f69=this[_0x797bee(0x271)][_0x797bee(0x380)]())==null?void 0x0:_0xa26f69['getUnitId']())!==this['unitID'])return;const _0x2e3342=(_0xe37457=this[_0x797bee(0x39a)][_0x797bee(0x33e)](g['SheetsSelectionsService'])[_0x797bee(0x454)]())==null?void 0x0:_0xe37457[0x0],_0x3eafb5=this[_0x797bee(0x271)][_0x797bee(0x428)](a['UniverInstanceType'][_0x797bee(0x254)])['getActiveSheet']();_0x2e3342&&_0x3eafb5&&this[_0x797bee(0x435)](_0x3eafb5[_0x797bee(0x2e4)](),_0x2e3342);}['_toggleOffline'](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x25b3be(0x23f)](a['Injector'])),A(0x3,a[_0x25b3be(0x23f)](me)),A(0x4,a['Inject'](u[_0x25b3be(0x452)])),A(0x5,a[_0x25b3be(0x3a2)]),A(0x6,a[_0x25b3be(0x233)]),A(0x7,a[_0x25b3be(0x23f)](g['RefRangeService']))],Se);var at=Object[_0x25b3be(0x3d6)],ct=(_0x53247f,_0x1d4623,_0x432bcd,_0x504a85)=>{const _0x35dc7e=_0x25b3be;for(var _0x4041f5=_0x504a85>0x1?void 0x0:_0x504a85?at(_0x1d4623,_0x432bcd):_0x1d4623,_0x57853e=_0x53247f[_0x35dc7e(0x3f9)]-0x1,_0x2ebd08;_0x57853e>=0x0;_0x57853e--)(_0x2ebd08=_0x53247f[_0x57853e])&&(_0x4041f5=_0x2ebd08(_0x4041f5)||_0x4041f5);return _0x4041f5;},ie=(_0x5d1c1b,_0x1f7ba0)=>(_0x1474df,_0x378b22)=>_0x1f7ba0(_0x1474df,_0x378b22,_0x5d1c1b);let x=class extends a[_0x25b3be(0x2ab)]{constructor(_0x48b30e,_0x2281ab,_0x5b1540){const _0x1cb79e=_0x25b3be;super(),h(this,'_entities',new Map()),h(this,_0x1cb79e(0x402),new d[(_0x1cb79e(0x217))]()),(this['_univerInstanceService']=_0x48b30e,this[_0x1cb79e(0x39a)]=_0x2281ab,this[_0x1cb79e(0x258)]=_0x5b1540,this['_init']());}[_0x25b3be(0x318)](){const _0x2de17b=_0x25b3be;super[_0x2de17b(0x318)](),this[_0x2de17b(0x402)][_0x2de17b(0x26d)](),this['_entities'][_0x2de17b(0x45b)](_0xca4acd=>_0xca4acd[_0x2de17b(0x318)]());}[_0x25b3be(0x2f1)](_0xc3ed82){const _0x5f003b=_0x25b3be;return this[_0x5f003b(0x35f)][_0x5f003b(0x2c0)](_0xc3ed82)?this[_0x5f003b(0x35f)]['get'](_0xc3ed82)[_0x5f003b(0x2c3)]:this[_0x5f003b(0x402)][_0x5f003b(0x3b0)](d['filter'](_0x21aec3=>_0x21aec3[_0x5f003b(0x232)]===_0xc3ed82),d[_0x5f003b(0x2d3)](_0x3098a5=>_0x3098a5['cursorInfo$']));}[_0x25b3be(0x3cf)](){const _0x8aefe3=_0x25b3be;this[_0x8aefe3(0x271)][_0x8aefe3(0x2ec)](a['UniverInstanceType'][_0x8aefe3(0x254)])['pipe'](d[_0x8aefe3(0x408)](this[_0x8aefe3(0x420)]))['subscribe'](async _0x376375=>{const _0x471867=_0x8aefe3,_0xd59722=_0x376375[_0x471867(0x3bc)](),_0x3302cf=await this['_startSheetCollabCursor'](_0xd59722);this[_0x471867(0x402)][_0x471867(0x227)](_0x3302cf),this[_0x471867(0x35f)][_0x471867(0x320)](_0xd59722,_0x3302cf);}),this[_0x8aefe3(0x271)][_0x8aefe3(0x2ec)](a[_0x8aefe3(0x270)][_0x8aefe3(0x34a)])[_0x8aefe3(0x3b0)](d[_0x8aefe3(0x408)](this[_0x8aefe3(0x420)]))['pipe'](d[_0x8aefe3(0x259)](_0x3444ac=>!_0x3444ac[_0x8aefe3(0x3bc)]()['startsWith']('__')))[_0x8aefe3(0x22c)](async _0x164b06=>{const _0x5a51a8=_0x8aefe3,_0x2e4278=_0x164b06[_0x5a51a8(0x3bc)](),_0x629ea2=await this[_0x5a51a8(0x3e0)](_0x2e4278);this[_0x5a51a8(0x402)][_0x5a51a8(0x227)](_0x629ea2),this['_entities'][_0x5a51a8(0x320)](_0x2e4278,_0x629ea2);}),d['merge'](this['_univerInstanceService'][_0x8aefe3(0x293)](a[_0x8aefe3(0x270)]['UNIVER_DOC']),this[_0x8aefe3(0x271)]['getTypeOfUnitDisposed$'](a[_0x8aefe3(0x270)]['UNIVER_SHEET']))[_0x8aefe3(0x3b0)](d[_0x8aefe3(0x408)](this[_0x8aefe3(0x420)]))['subscribe'](_0x4d465f=>{const _0x582355=_0x8aefe3,_0x13e076=_0x4d465f[_0x582355(0x3bc)](),_0x364401=this['_entities'][_0x582355(0x33e)](_0x13e076);_0x364401&&(_0x364401[_0x582355(0x318)](),this[_0x582355(0x35f)][_0x582355(0x2a2)](_0x13e076));});}async[_0x25b3be(0x3c8)](_0x437193){const _0x3ce636=_0x25b3be,_0x4d24c4=await this[_0x3ce636(0x258)][_0x3ce636(0x27e)](_0x437193),_0x3d4127=this[_0x3ce636(0x39a)][_0x3ce636(0x458)](Se,_0x437193,_0x4d24c4);return _0x3d4127[_0x3ce636(0x1f1)](),_0x3d4127;}async[_0x25b3be(0x3e0)](_0x4f4478){const _0x5eff49=_0x25b3be,_0x2352bf=await this[_0x5eff49(0x258)][_0x5eff49(0x27e)](_0x4f4478),_0x28c129=this['_injector']['createInstance'](fe,_0x4f4478,_0x2352bf);return _0x28c129[_0x5eff49(0x1f1)](),_0x28c129;}};x=ct([ie(0x0,a[_0x25b3be(0x3a2)]),ie(0x1,a[_0x25b3be(0x23f)](a[_0x25b3be(0x2cc)])),ie(0x2,a[_0x25b3be(0x23f)](u[_0x25b3be(0x42e)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x2b633c,_0x1660bf){const _0x5c3edd=_0x25b3be;let {radius:_0x8d6d09,width:_0x517a5f,height:_0x3a2cf3}=_0x1660bf;_0x8d6d09=_0x8d6d09!=null?_0x8d6d09:0x0,_0x517a5f=_0x517a5f!=null?_0x517a5f:0x1e,_0x3a2cf3=_0x3a2cf3!=null?_0x3a2cf3:0x1e;let _0xf1f67a=0x0,_0x2f6cfc=0x0,_0x3bba54=0x0;_0xf1f67a=_0x2f6cfc=_0x3bba54=Math[_0x5c3edd(0x228)](_0x8d6d09,_0x517a5f/0x2,_0x3a2cf3/0x2),_0x2b633c['beginPath'](),_0x2b633c[_0x5c3edd(0x416)](_0xf1f67a,0x0),_0x2b633c[_0x5c3edd(0x2e5)](_0x517a5f-_0x2f6cfc,0x0),_0x2b633c[_0x5c3edd(0x2f5)](_0x517a5f-_0x2f6cfc,_0x2f6cfc,_0x2f6cfc,Math['PI']*0x3/0x2,0x0,!0x1),_0x2b633c[_0x5c3edd(0x2e5)](_0x517a5f,_0x3a2cf3-_0x3bba54),_0x2b633c[_0x5c3edd(0x2f5)](_0x517a5f-_0x3bba54,_0x3a2cf3-_0x3bba54,_0x3bba54,0x0,Math['PI']/0x2,!0x1),_0x2b633c[_0x5c3edd(0x2e5)](0x0,_0x3a2cf3),_0x2b633c[_0x5c3edd(0x2e5)](0x0,_0xf1f67a),_0x2b633c[_0x5c3edd(0x2f5)](_0xf1f67a,_0xf1f67a,_0xf1f67a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2b633c[_0x5c3edd(0x3a6)](),_0x1660bf['fill']&&(_0x2b633c[_0x5c3edd(0x205)](),_0x2b633c[_0x5c3edd(0x39f)]=_0x1660bf[_0x5c3edd(0x3e5)],_0x1660bf['fillRule']===_0x5c3edd(0x3d3)?_0x2b633c[_0x5c3edd(0x3e5)](_0x5c3edd(0x3d3)):_0x2b633c[_0x5c3edd(0x3e5)](),_0x2b633c[_0x5c3edd(0x1f9)]());}class ee extends p[_0x25b3be(0x3d7)]{constructor(_0x2d4bb0,_0x1e4958){const _0x5687d9=_0x25b3be;super(_0x2d4bb0,_0x1e4958),h(this,'color'),h(this,'text'),(this['color']=_0x1e4958==null?void 0x0:_0x1e4958[_0x5687d9(0x2bc)],this[_0x5687d9(0x38c)]=_0x1e4958==null?void 0x0:_0x1e4958['text']);}static[_0x25b3be(0x324)](_0xac0323,_0x356454){const _0x2d1329=_0x25b3be,{text:_0x10c4c6,color:_0x3baa8e}=_0x356454;_0xac0323[_0x2d1329(0x205)](),_0xac0323['font']=_0x2d1329(0x2da);const _0x2d6df5=_0xac0323[_0x2d1329(0x2ac)](_0x10c4c6)[_0x2d1329(0x281)],_0x547aeb=Math[_0x2d1329(0x228)](_0x2d6df5+0x2*ne,Re);_t(_0xac0323,{'height':K,'radius':0x4,'width':_0x547aeb,'fill':_0x3baa8e}),_0xac0323[_0x2d1329(0x39f)]=_0x2d1329(0x2fa);const _0x4f2cb5=ne,_0x582dd0=K-lt,_0xc30c3e=Re-0x2*ne;if(_0x2d6df5>_0xc30c3e){let _0x380a6c='',_0x34f224=0x0;for(const _0x907ed8 of _0x10c4c6){const _0x4e79d8=_0xac0323[_0x2d1329(0x2ac)](_0x907ed8)[_0x2d1329(0x281)];if(_0x34f224+_0x4e79d8<=_0xc30c3e-_0xac0323[_0x2d1329(0x2ac)]('...')[_0x2d1329(0x281)])_0x380a6c+=_0x907ed8,_0x34f224+=_0x4e79d8;else{_0x380a6c+=_0x2d1329(0x234);break;}}_0xac0323[_0x2d1329(0x2fb)](_0x380a6c,_0x4f2cb5,_0x582dd0);}else _0xac0323[_0x2d1329(0x2fb)](_0x10c4c6,_0x4f2cb5,_0x582dd0);_0xac0323[_0x2d1329(0x1f9)]();}['_draw'](_0x5ac4f5){ee['drawWith'](_0x5ac4f5,this);}}function _0x4727(_0x4bf1cb,_0x429cde){const _0x196375=_0x1963();return _0x4727=function(_0x472794,_0x1e18d9){_0x472794=_0x472794-0x1f0;let _0x40b981=_0x196375[_0x472794];return _0x40b981;},_0x4727(_0x4bf1cb,_0x429cde);}const re=_0x25b3be(0x349),ht=_0x25b3be(0x43a),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x25b3be(0x3d4);class De{constructor(_0x2b0f01,_0x38aef4,_0x3424a3,_0x4a3ea2){const _0xf79330=_0x25b3be;h(this,_0xf79330(0x332),[]),h(this,_0xf79330(0x229),null),h(this,_0xf79330(0x40f),null),h(this,_0xf79330(0x441),null),h(this,_0xf79330(0x362),null),h(this,_0xf79330(0x43f),null),(this['_cursor']=_0x2b0f01,this[_0xf79330(0x20c)]=_0x38aef4,this['_docSkeleton']=_0x3424a3,this[_0xf79330(0x2c4)]=_0x4a3ea2,this[_0xf79330(0x34c)]());}set[_0x25b3be(0x2fd)](_0x5616e6){const _0x3a279f=_0x25b3be;_0x5616e6?(this[_0x3a279f(0x441)]&&this['_anchorDot'][_0x3a279f(0x2ba)](),this[_0x3a279f(0x40f)]&&this[_0x3a279f(0x40f)][_0x3a279f(0x262)]()):(this[_0x3a279f(0x441)]&&this[_0x3a279f(0x441)]['show'](),this[_0x3a279f(0x40f)]&&this[_0x3a279f(0x40f)][_0x3a279f(0x2ba)]());}['dispose'](){const _0x5cb7b7=_0x25b3be;for(const _0x42c56d of this['_shapes'])_0x42c56d[_0x5cb7b7(0x318)]();this[_0x5cb7b7(0x40f)]&&this['_textBubble'][_0x5cb7b7(0x318)](),this['_anchorDot']&&this[_0x5cb7b7(0x441)][_0x5cb7b7(0x318)](),this[_0x5cb7b7(0x229)]&&this[_0x5cb7b7(0x229)]['dispose'](),this[_0x5cb7b7(0x43f)]&&this[_0x5cb7b7(0x43f)]();}[_0x25b3be(0x34c)](){const _0x3e853c=_0x25b3be;var _0x2bf776;const {_docSkeleton:_0x3e85d4,_document:_0x28564d}=this,{color:_0x399fe7,name:_0xac6806,ranges:_0x3f468f}=this['_cursor'],_0x3a9eb6=_0x28564d[_0x3e853c(0x369)](),{docsLeft:_0x48859a,docsTop:_0x469a75}=_0x3a9eb6,_0x2679fb=new b[(_0x3e853c(0x46e))](_0x3a9eb6,_0x3e85d4);for(const {startOffset:_0x37fc47,endOffset:_0x2dce16,rangeType:_0x106c00,segmentId:_0x357572,segmentPage:_0x442ec4,collapsed:_0x1d9630,isActive:_0xa51c7a}of _0x3f468f){const _0x3e97bb=_0x3e85d4['findNodePositionByCharIndex'](_0x37fc47,!0x0,_0x357572,_0x442ec4);let _0x282927=_0x3e85d4[_0x3e853c(0x434)](_0x2dce16,!0x0,_0x357572,_0x442ec4);if(_0x282927==null&&(_0x282927=_0x3e85d4[_0x3e853c(0x434)](_0x2dce16-0x1,!0x1,_0x357572,_0x442ec4)),_0xa51c7a){const {contentBoxPointGroup:_0x202e86}=_0x2679fb['getRangePointData'](_0x282927,_0x282927);if(_0x202e86['length']===0x0)continue;this['_drawAnchor'](_0x399fe7,_0x202e86,_0x48859a,_0x469a75,_0xac6806),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x3e97bb&&_0x282927){if(_0x106c00===a[_0x3e853c(0x455)][_0x3e853c(0x383)]){const _0xd0ba39=new b[(_0x3e853c(0x32f))](_0x3a9eb6,_0x3e85d4),{pointGroup:_0x362674}=(_0x2bf776=_0xd0ba39[_0x3e853c(0x373)](_0x3e97bb,_0x282927))!=null?_0x2bf776:{};if(_0x362674==null||_0x362674[_0x3e853c(0x3f9)]===0x0)continue;this[_0x3e853c(0x3de)](_0x399fe7,_0x362674,_0x48859a,_0x469a75);}else{if(!_0x1d9630){const {borderBoxPointGroup:_0x2a4e4c}=_0x2679fb[_0x3e853c(0x373)](_0x3e97bb,_0x282927);if(_0x2a4e4c[_0x3e853c(0x3f9)]===0x0)continue;this[_0x3e853c(0x35d)](_0x399fe7,_0x2a4e4c,_0x48859a,_0x469a75);}}}}}[_0x25b3be(0x392)](_0x2edb7f,_0x241492,_0x2ee57e,_0x29363e,_0x39634d){const _0x4c660c=_0x25b3be,_0x4cb526=this[_0x4c660c(0x279)](_0x241492),{left:_0x542cd2,top:_0x38ec20,height:_0x18bc41}=_0x4cb526,_0x193224=this[_0x4c660c(0x1fb)](),_0x1a7a94=ft/_0x193224,_0x5a762c=new p[(_0x4c660c(0x44f))](re+a[_0x4c660c(0x42d)][_0x4c660c(0x2f3)](k),{'left':_0x542cd2+_0x2ee57e-_0x1a7a94,'top':_0x38ec20+_0x29363e,'height':_0x18bc41,'width':dt,'fill':_0x2edb7f||p['getColor'](a[_0x4c660c(0x3e8)]['black'],0x0),'strokeWidth':_0x1a7a94,'stroke':St,'evented':!0x0});this[_0x4c660c(0x229)]=_0x5a762c,this[_0x4c660c(0x20c)][_0x4c660c(0x2c7)](_0x5a762c,b[_0x4c660c(0x43e)]);const _0x45743d=new p['Rect'](re+a['Tools'][_0x4c660c(0x2f3)](k),{'left':_0x542cd2+_0x2ee57e-_0x1a7a94,'top':_0x38ec20+_0x29363e-oe/0x2,'height':oe,'width':oe,'fill':_0x2edb7f||p['getColor'](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x2edb7f||p[_0x4c660c(0x1f7)](a[_0x4c660c(0x3e8)][_0x4c660c(0x243)],0x0),'evented':!0x1});this[_0x4c660c(0x441)]=_0x45743d,this[_0x4c660c(0x20c)]['addObject'](_0x45743d,b['TEXT_RANGE_LAYER_INDEX']);const _0x2932c3=new ee(re+a['Tools'][_0x4c660c(0x2f3)](k),{'left':_0x542cd2+_0x2ee57e-_0x1a7a94,'top':_0x38ec20+_0x29363e-K,'text':_0x39634d,'color':_0x2edb7f});this[_0x4c660c(0x40f)]=_0x2932c3,this['_scene'][_0x4c660c(0x2c7)](_0x2932c3,b['TEXT_RANGE_LAYER_INDEX']),this[_0x4c660c(0x2fd)]=!0x1;}['_handleHover'](){const _0x7efe01=_0x25b3be,_0x56f91e=this[_0x7efe01(0x229)][_0x7efe01(0x206)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x4f8b69=this[_0x7efe01(0x229)][_0x7efe01(0x2e1)]['subscribeEvent'](()=>{const _0x34c027=_0x7efe01;this[_0x34c027(0x362)]&&clearTimeout(this['_hideTimer']),this[_0x34c027(0x362)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{_0x56f91e['unsubscribe'](),_0x4f8b69['unsubscribe']();};}[_0x25b3be(0x35d)](_0x344558,_0xb1b2bd,_0x433524,_0xc947f7){const _0x311c25=_0x25b3be,_0x356501=new a[(_0x311c25(0x37a))](_0x344558)[_0x311c25(0x3f8)](0.2)[_0x311c25(0x351)](),_0x3d1784=new p[(_0x311c25(0x30d))](ht+a['Tools']['generateRandomId'](k),{'pointsGroup':_0xb1b2bd,'fill':_0x356501||p[_0x311c25(0x1f7)](a[_0x311c25(0x3e8)]['black'],0.2),'left':_0x433524,'top':_0xc947f7,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x311c25(0x398)](_0x3d1784),this[_0x311c25(0x20c)]['addObject'](_0x3d1784,b[_0x311c25(0x43e)]);}['_drawRectRange'](_0x103e22,_0x75bf4c,_0x3efda2,_0x436d80){const _0x147d4a=_0x25b3be,_0x30c640=new a[(_0x147d4a(0x37a))](_0x103e22)[_0x147d4a(0x3f8)](0.2)[_0x147d4a(0x351)](),_0x54f327=new p['RegularPolygon'](ut+a[_0x147d4a(0x42d)][_0x147d4a(0x2f3)](k),{'pointsGroup':_0x75bf4c,'fill':_0x30c640||p[_0x147d4a(0x1f7)](a['COLORS']['black'],0.2),'left':_0x3efda2,'top':_0x436d80,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x147d4a(0x332)][_0x147d4a(0x398)](_0x54f327),this['_scene'][_0x147d4a(0x2c7)](_0x54f327,b['TEXT_RANGE_LAYER_INDEX']);}[_0x25b3be(0x279)](_0x2ace53){const _0x3ddd64=_0x2ace53[0x0],_0x2a624d=_0x3ddd64[0x0],_0x13f445=_0x3ddd64[0x2],{x:_0x353ed6,y:_0x2354dd}=_0x2a624d,{x:_0x1b4d1b,y:_0x247608}=_0x13f445;return{'left':_0x353ed6,'top':_0x2354dd,'width':_0x1b4d1b-_0x353ed6,'height':_0x247608-_0x2354dd};}[_0x25b3be(0x1fb)](){const _0x561fe0=_0x25b3be,{scaleX:_0xa73266,scaleY:_0xfa190a}=this[_0x561fe0(0x20c)][_0x561fe0(0x2c8)]();return Math[_0x561fe0(0x407)](_0xa73266,_0xfa190a);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x1b13cc,_0x16b5b5,_0x8f7346,_0x457ea6)=>{const _0x3124f1=_0x25b3be;for(var _0x59d009=_0x457ea6>0x1?void 0x0:_0x457ea6?It(_0x16b5b5,_0x8f7346):_0x16b5b5,_0x59cbb0=_0x1b13cc[_0x3124f1(0x3f9)]-0x1,_0x39aa38;_0x59cbb0>=0x0;_0x59cbb0--)(_0x39aa38=_0x1b13cc[_0x59cbb0])&&(_0x59d009=_0x39aa38(_0x59d009)||_0x59d009);return _0x59d009;},W=(_0x15fb6e,_0x3c53a7)=>(_0x584074,_0x404b53)=>_0x3c53a7(_0x584074,_0x404b53,_0x15fb6e);let Ie=class extends a[_0x25b3be(0x2ab)]{constructor(_0x2a3014,_0x4b1e1d,_0x3d96cf,_0x1292d9,_0x4257ef){const _0x19f940=_0x25b3be;super(),h(this,_0x19f940(0x3c3),[]),h(this,'_cursors',[]),(this[_0x19f940(0x3fb)]=_0x2a3014,this['_docSkeletonManagerService']=_0x4b1e1d,this['_collabCursorController']=_0x3d96cf,this[_0x19f940(0x309)]=_0x1292d9,this[_0x19f940(0x419)]=_0x4257ef,this[_0x19f940(0x3cf)]());}[_0x25b3be(0x3cf)](){const _0x4f9309=_0x25b3be,_0x4aa0c4=this[_0x4f9309(0x3fb)][_0x4f9309(0x375)],_0x2d1466=this['_docSkeletonManagerService'];this[_0x4f9309(0x415)](d[_0x4f9309(0x2b3)]([this[_0x4f9309(0x32a)][_0x4f9309(0x2f1)](_0x4aa0c4),this[_0x4f9309(0x419)][_0x4f9309(0x294)]])[_0x4f9309(0x3b0)]($['map'](([_0x253b1f,_0x28f29f])=>({'skeleton':_0x2d1466['getSkeleton'](),'cursors':[..._0x253b1f[_0x4f9309(0x356)]()][_0x4f9309(0x410)](_0x39f946=>({..._0x39f946,'color':this['_themeService'][_0x4f9309(0x288)](_0x39f946[_0x4f9309(0x2bc)])}))})))[_0x4f9309(0x22c)](_0x12db54=>{if(this['_removeCollabCursors'](),_0x12db54){const {skeleton:_0x538a13,cursors:_0x23fa52}=_0x12db54;this['_updateCollabCursors'](_0x538a13,_0x23fa52);}})),this[_0x4f9309(0x2d5)](),this[_0x4f9309(0x448)]();}['_updateCollabCursors'](_0x5f2e49,_0x67ebf7){const _0x3c6807=_0x25b3be,{scene:_0x2a28af,mainComponent:_0x4bec23}=this[_0x3c6807(0x3fb)],_0x1d79e4=_0x67ebf7[_0x3c6807(0x287)](_0x4af909=>new De(_0x4af909,_0x2a28af,_0x5f2e49,_0x4bec23));this[_0x3c6807(0x3c3)]=_0x1d79e4,this['_cursors']=_0x67ebf7;}[_0x25b3be(0x371)](){const _0x6e0828=_0x25b3be;this[_0x6e0828(0x354)]();const {scene:_0x43658b,mainComponent:_0x5c31fd}=this[_0x6e0828(0x3fb)],_0x1e8fb3=this['_docSkeletonManagerService'][_0x6e0828(0x3d2)](),_0x516837=this[_0x6e0828(0x331)][_0x6e0828(0x287)](_0x5234fd=>new De(_0x5234fd,_0x43658b,_0x1e8fb3,_0x5c31fd));this[_0x6e0828(0x3c3)]=_0x516837;}[_0x25b3be(0x354)](){const _0x22e5d6=_0x25b3be;this[_0x22e5d6(0x3c3)][_0x22e5d6(0x45b)](_0xe914d3=>_0xe914d3[_0x22e5d6(0x318)]()),this[_0x22e5d6(0x3c3)]=[];}[_0x25b3be(0x448)](){const _0x322236=_0x25b3be,_0x3fa5ad=[b[_0x322236(0x3e9)]['id']];this['disposeWithMe'](this[_0x322236(0x309)][_0x322236(0x328)](_0x245f41=>{const _0x5d39a4=_0x322236;_0x3fa5ad[_0x5d39a4(0x25b)](_0x245f41['id'])&&_0x245f41[_0x5d39a4(0x24a)][_0x5d39a4(0x375)]===this[_0x5d39a4(0x3fb)]['unitId']&&this[_0x5d39a4(0x371)]();}));}['_initResize'](){const _0x456437=_0x25b3be;this[_0x456437(0x415)](a['fromEventSubject'](this[_0x456437(0x3fb)][_0x456437(0x412)][_0x456437(0x46c)])[_0x456437(0x3b0)]($[_0x456437(0x259)](_0x207c8d=>_0x207c8d[_0x456437(0x201)]===p[_0x456437(0x343)][_0x456437(0x423)]),$[_0x456437(0x276)](0x10))['subscribe'](()=>{const _0x518926=_0x456437;this[_0x518926(0x371)]();}));}};Ie=vt([W(0x1,a[_0x25b3be(0x23f)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x25b3be(0x23f)](x)),W(0x3,a[_0x25b3be(0x233)]),W(0x4,a['Inject'](a['ThemeService']))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x25b3be(0x3d7)]{constructor(_0x2217cb,_0x479233){const _0x581787=_0x25b3be;super(_0x2217cb,_0x479233),h(this,_0x581787(0x425)),h(this,'_hovered',!0x1),h(this,_0x581787(0x46b)),h(this,_0x581787(0x31c),''),h(this,'_labelPosition',_0x581787(0x3e2)),h(this,_0x581787(0x2de)),(_0x479233&&this['setShapeProps'](_0x479233),this['onPointerEnter$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x581787(0x38d)]({'hovered':!0x1})));}[_0x25b3be(0x38d)](_0x2d6bd7){const _0x36c877=_0x25b3be;var _0x324fd7,_0x2e771,_0x4a2741,_0x5208bb,_0x27c3cc,_0x36727a;this[_0x36c877(0x425)]=(_0x324fd7=_0x2d6bd7[_0x36c877(0x2bc)])!=null?_0x324fd7:this['_color'],this[_0x36c877(0x352)]=(_0x2e771=_0x2d6bd7['hovered'])!=null?_0x2e771:this[_0x36c877(0x352)],this[_0x36c877(0x46b)]=(_0x4a2741=_0x2d6bd7['range'])!=null?_0x4a2741:this[_0x36c877(0x46b)],this[_0x36c877(0x31c)]=(_0x5208bb=_0x2d6bd7[_0x36c877(0x33c)])!=null?_0x5208bb:this[_0x36c877(0x31c)],this[_0x36c877(0x3ff)]=(_0x27c3cc=_0x2d6bd7['labelPosition'])!=null?_0x27c3cc:this['_labelPosition'],this['_backgroundColor']=(_0x36727a=_0x2d6bd7[_0x36c877(0x26b)])!=null?_0x36727a:this[_0x36c877(0x2de)],this['transformByState']({'width':_0x2d6bd7['width'],'height':_0x2d6bd7['height']});}['onMouseMove'](_0x558053){const _0x2ded9b=_0x25b3be,{row:_0x3000b5,column:_0x3052b8}=_0x558053;if(_0x3000b5>=this[_0x2ded9b(0x46b)]['startRow']&&_0x3000b5<=this[_0x2ded9b(0x46b)]['endRow']&&_0x3052b8>=this[_0x2ded9b(0x46b)][_0x2ded9b(0x446)]&&_0x3052b8<=this[_0x2ded9b(0x46b)]['endColumn']){this[_0x2ded9b(0x38d)]({'hovered':!0x0});return;}this[_0x2ded9b(0x38d)]({'hovered':!0x1});}[_0x25b3be(0x3bb)](_0x46434b){return!0x1;}[_0x25b3be(0x409)](_0x35cc4d){const _0x318835=_0x25b3be;p['Rect'][_0x318835(0x324)](_0x35cc4d,{'width':this[_0x318835(0x281)],'height':this[_0x318835(0x3db)],'strokeWidth':mt,'stroke':this[_0x318835(0x425)],'evented':!0x1,'fill':this[_0x318835(0x2de)]}),this[_0x318835(0x352)]&&(_0x35cc4d[_0x318835(0x205)](),_0x35cc4d[_0x318835(0x388)](0x1,0x0,0x0,0x1,this[_0x318835(0x281)],this['_labelPosition']===_0x318835(0x285)?0x0:-0x14),ee[_0x318835(0x324)](_0x35cc4d,{'text':this[_0x318835(0x31c)],'color':this[_0x318835(0x425)]}),_0x35cc4d[_0x318835(0x1f9)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0xec01ed,_0x2bda07,_0x443416,_0x1f96ba)=>{const _0x2bf2f7=_0x25b3be;for(var _0x2df6d1=_0x1f96ba>0x1?void 0x0:_0x1f96ba?Ct(_0x2bda07,_0x443416):_0x2bda07,_0x457d33=_0xec01ed[_0x2bf2f7(0x3f9)]-0x1,_0x4b0f68;_0x457d33>=0x0;_0x457d33--)(_0x4b0f68=_0xec01ed[_0x457d33])&&(_0x2df6d1=_0x4b0f68(_0x2df6d1)||_0x2df6d1);return _0x2df6d1;},ae=(_0x8cfe94,_0x12db8c)=>(_0x2a0a1b,_0x21efbd)=>_0x12db8c(_0x2a0a1b,_0x21efbd,_0x8cfe94);const bt=0x1389;let ve=class extends a[_0x25b3be(0x2ab)]{constructor(_0x52f4a0,_0x140da9,_0x276e74,_0x2702af){const _0x1352f1=_0x25b3be;super(),h(this,'_cursors',new Set()),h(this,_0x1352f1(0x28b),null),(this[_0x1352f1(0x3fb)]=_0x52f4a0,this[_0x1352f1(0x23a)]=_0x140da9,this['_collabCursorController']=_0x276e74,this[_0x1352f1(0x419)]=_0x2702af,this[_0x1352f1(0x3cf)]());}['_init'](){const _0x5cfa4e=_0x25b3be;this[_0x5cfa4e(0x23a)][_0x5cfa4e(0x444)]['pipe']($[_0x5cfa4e(0x408)](this[_0x5cfa4e(0x420)]),$['switchMap'](_0x2df5bd=>{const _0x1a63c7=_0x5cfa4e;if(_0x2df5bd){const _0x25b4ef=_0x2df5bd[_0x1a63c7(0x329)];return d[_0x1a63c7(0x2b3)](this[_0x1a63c7(0x32a)][_0x1a63c7(0x2f1)](this[_0x1a63c7(0x3fb)][_0x1a63c7(0x375)]),this[_0x1a63c7(0x419)][_0x1a63c7(0x294)])['pipe']($[_0x1a63c7(0x287)](([_0x1ff916,_0xe6d564])=>{const _0x23ad51=_0x1a63c7,_0x3a228a=new Map();return _0x1ff916[_0x23ad51(0x45b)]((_0x3a787e,_0x2656d0)=>{const _0x20e177=_0x23ad51;if(_0x3a787e[_0x20e177(0x372)]===_0x25b4ef){const _0x2f6843={..._0x3a787e};_0x2f6843[_0x20e177(0x2bc)]=this[_0x20e177(0x419)]['getColorFromTheme'](_0x3a787e['color']),_0x3a228a['set'](_0x2656d0,_0x2f6843);}}),{'skeleton':_0x2df5bd,'cursors':_0x3a228a};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x5cfa4e(0x22c)](({skeleton:_0x35a1b6,cursors:_0x1ef941})=>{const _0x2b95b6=_0x5cfa4e;this[_0x2b95b6(0x354)](),_0x35a1b6&&this[_0x2b95b6(0x26a)](_0x35a1b6,_0x1ef941);}),this[_0x5cfa4e(0x23a)][_0x5cfa4e(0x444)][_0x5cfa4e(0x22c)](_0x144878=>{const _0x2029ae=_0x5cfa4e;if(_0x144878==null)return;const {skeleton:_0x1d7416}=_0x144878,{scene:_0x245bb7}=this[_0x2029ae(0x3fb)];_0x245bb7['onPointerMove$']['subscribeEvent'](a['debounce'](_0x3fbd8a=>{const _0x420945=_0x2029ae;var _0x27a065,_0x4a3372;const {offsetX:_0x58c000,offsetY:_0xa158c0}=_0x3fbd8a,{x:_0x270f78,y:_0x42164d}=_0x245bb7[_0x420945(0x348)](p[_0x420945(0x38f)][_0x420945(0x41c)]([_0x58c000,_0xa158c0])),{scaleX:_0x3b4412,scaleY:_0x4d27fb}=_0x245bb7['getAncestorScale'](),_0x58542d=_0x245bb7[_0x420945(0x433)](p['SHEET_VIEWPORT_KEY'][_0x420945(0x429)]),_0x392a8f=_0x245bb7[_0x420945(0x282)](p[_0x420945(0x38f)][_0x420945(0x41c)]([_0x270f78,_0x42164d]),_0x58542d),_0x1d28b8=_0x1d7416['getCellPositionByOffset'](_0x58c000,_0xa158c0,_0x3b4412,_0x4d27fb,_0x392a8f);((_0x27a065=this['_lastPointer'])==null?void 0x0:_0x27a065[_0x420945(0x221)])===_0x1d28b8[_0x420945(0x221)]&&((_0x4a3372=this[_0x420945(0x28b)])==null?void 0x0:_0x4a3372[_0x420945(0x28a)])===_0x1d28b8[_0x420945(0x28a)]||this['_cursors'][_0x420945(0x45b)](_0x5014e0=>{_0x5014e0['onMouseMove'](_0x1d28b8);});},0x64));});}['_updateCollabCursors'](_0x27c641,_0x4cbdcc){const _0x332fae=_0x25b3be;var _0x4db448;const _0x5b2c9e=(_0x4db448=this[_0x332fae(0x23a)][_0x332fae(0x2a9)]())==null?void 0x0:_0x4db448[_0x332fae(0x242)];if(!_0x5b2c9e)return;const _0x43e49d=this[_0x332fae(0x22a)]();if(!_0x43e49d)return;this[_0x332fae(0x331)][_0x332fae(0x45b)](_0x259ad2=>{_0x259ad2['makeDirty']();});const {scene:_0x3fae1b}=_0x43e49d,_0x58e570=Et(Array['from'](_0x4cbdcc[_0x332fae(0x356)]()))[_0x332fae(0x287)](_0x1494d2=>{const _0x361ced=_0x332fae,{color:_0x549f87,range:_0x4c973a,name:_0x270885,selection:_0x232670,sheetID:_0x4d52d5}=_0x1494d2,{startColumn:_0x4d799a,startRow:_0x36a0ad,endColumn:_0xaecf1f,endRow:_0x5f291f}=_0x4c973a,_0x3f2d00=X[_0x361ced(0x40c)](_0x36a0ad,_0x4d799a,_0x3fae1b,_0x5b2c9e),_0x44b983=X['getCoordByCell'](_0x5f291f,_0xaecf1f,_0x3fae1b,_0x5b2c9e),{columnHeaderHeightAndMarginTop:_0x55d76e}=_0x5b2c9e,{startX:_0x53efdf,startY:_0x178260}=_0x3f2d00,{endX:_0x10949d,endY:_0x46ade1}=_0x44b983,_0x38d77b=_0x10949d-_0x53efdf,_0x421420=_0x46ade1-_0x178260,_0x49fede={'labelPosition':_0x178260-_0x55d76e>=K?_0x361ced(0x3e2):_0x361ced(0x285),'sheetID':_0x4d52d5,'range':_0x4c973a,'color':_0x549f87,'name':_0x270885,'selection':_0x232670,'left':_0x53efdf,'top':_0x178260,'width':_0x38d77b,'height':_0x421420,'evented':!0x1,'zIndex':bt};return new Pe(_0x270885,_0x49fede);});_0x3fae1b[_0x332fae(0x251)](_0x58e570,gt),this[_0x332fae(0x331)]=new Set(_0x58e570);}['_removeCollabCursors'](){const _0x1cac56=_0x25b3be;var _0x1540e3;(_0x1540e3=this[_0x1cac56(0x331)])==null||_0x1540e3[_0x1cac56(0x45b)](_0x12b504=>_0x12b504[_0x1cac56(0x318)]());}['_getSheetObject'](){const _0x1b8329=_0x25b3be;return X[_0x1b8329(0x3a9)](this[_0x1b8329(0x3fb)][_0x1b8329(0x3f4)],this[_0x1b8329(0x3fb)]);}};ve=pt([ae(0x1,a[_0x25b3be(0x23f)](X[_0x25b3be(0x464)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x25b3be(0x23f)](a['ThemeService']))],ve);function Et(_0x48fa23){const _0x186234=_0x25b3be,_0x25100e=new Map();return _0x48fa23['forEach'](_0x574d80=>{const _0x2ed13f=_0x4727;if(_0x25100e['has'](_0x574d80[_0x2ed13f(0x461)])){const _0x52a47f=_0x25100e[_0x2ed13f(0x33e)](_0x574d80['selection']);_0x52a47f[_0x2ed13f(0x33c)]+=',\x20'+_0x574d80[_0x2ed13f(0x33c)];}else _0x25100e[_0x2ed13f(0x320)](_0x574d80[_0x2ed13f(0x461)],_0x574d80);}),Array[_0x186234(0x3ea)](_0x25100e[_0x186234(0x356)]());}var E=function(){const _0x54bcd8=_0x25b3be;return E=Object[_0x54bcd8(0x32c)]||function(_0x185702){const _0x28a751=_0x54bcd8;for(var _0x10264a,_0x3f14ae=0x1,_0x55a350=arguments['length'];_0x3f14ae<_0x55a350;_0x3f14ae++){_0x10264a=arguments[_0x3f14ae];for(var _0x3fbefa in _0x10264a)Object[_0x28a751(0x269)][_0x28a751(0x439)][_0x28a751(0x277)](_0x10264a,_0x3fbefa)&&(_0x185702[_0x3fbefa]=_0x10264a[_0x3fbefa]);}return _0x185702;},E['apply'](this,arguments);},Tt=function(_0x5c969e,_0x4271b1){const _0x2fe064=_0x25b3be;var _0x42da71={};for(var _0x424995 in _0x5c969e)Object[_0x2fe064(0x269)][_0x2fe064(0x439)][_0x2fe064(0x277)](_0x5c969e,_0x424995)&&_0x4271b1['indexOf'](_0x424995)<0x0&&(_0x42da71[_0x424995]=_0x5c969e[_0x424995]);if(_0x5c969e!=null&&typeof Object[_0x2fe064(0x466)]==_0x2fe064(0x2cb)){for(var _0x164636=0x0,_0x424995=Object[_0x2fe064(0x466)](_0x5c969e);_0x164636<_0x424995[_0x2fe064(0x3f9)];_0x164636++)_0x4271b1[_0x2fe064(0x2cf)](_0x424995[_0x164636])<0x0&&Object[_0x2fe064(0x269)][_0x2fe064(0x310)][_0x2fe064(0x277)](_0x5c969e,_0x424995[_0x164636])&&(_0x42da71[_0x424995[_0x164636]]=_0x5c969e[_0x424995[_0x164636]]);}return _0x42da71;},pe=M['forwardRef'](function(_0x477ee8,_0x16b423){const _0x339035=_0x25b3be;var _0x40d6ac=_0x477ee8[_0x339035(0x2f4)],_0x303587=_0x477ee8['id'],_0x218738=_0x477ee8[_0x339035(0x366)],_0x3a8163=_0x477ee8[_0x339035(0x313)],_0x5c6dbb=Tt(_0x477ee8,[_0x339035(0x2f4),'id',_0x339035(0x366),_0x339035(0x313)]),_0x54e111=_0x339035(0x38a)[_0x339035(0x306)](_0x303587,'\x20')[_0x339035(0x306)](_0x218738||'')[_0x339035(0x37b)](),_0x135061=M[_0x339035(0x296)]('_'['concat'](Dt()));return Ae(_0x40d6ac,''[_0x339035(0x306)](_0x303587),{'defIds':_0x40d6ac['defIds'],'idSuffix':_0x135061[_0x339035(0x2ed)]},E({'ref':_0x16b423,'className':_0x54e111},_0x5c6dbb),_0x3a8163);});function Ae(_0x185d15,_0x80ad3b,_0x3d2e06,_0x405072,_0x46f0fe){const _0x4adbe5=_0x25b3be;return M[_0x4adbe5(0x36b)](_0x185d15[_0x4adbe5(0x338)],E(E({'key':_0x80ad3b},Ot(_0x185d15,_0x3d2e06,_0x46f0fe)),_0x405072),(Rt(_0x185d15,_0x3d2e06)[_0x4adbe5(0x40d)]||[])[_0x4adbe5(0x287)](function(_0x84d866,_0x3335dc){const _0x421f0b=_0x4adbe5;return Ae(_0x84d866,''[_0x421f0b(0x306)](_0x80ad3b,'-')[_0x421f0b(0x306)](_0x185d15[_0x421f0b(0x338)],'-')[_0x421f0b(0x306)](_0x3335dc),_0x3d2e06,void 0x0,_0x46f0fe);}));}function Ot(_0x59ae56,_0x414ad6,_0xc50854){const _0x217269=_0x25b3be;var _0x469f66=E({},_0x59ae56[_0x217269(0x2b6)]);_0xc50854!=null&&_0xc50854[_0x217269(0x216)]&&_0x469f66[_0x217269(0x3e5)]===_0x217269(0x216)&&(_0x469f66[_0x217269(0x3e5)]=_0xc50854['colorChannel1']),_0x59ae56['tag']===_0x217269(0x376)&&_0x469f66['id']&&(_0x469f66['id']=_0x469f66['id']+_0x414ad6[_0x217269(0x3e1)]),Object[_0x217269(0x21b)](_0x469f66)[_0x217269(0x45b)](function(_0x5791fc){const _0x37ad54=_0x217269;var _0x53fca4=_0x5791fc[0x0],_0xebcc90=_0x5791fc[0x1];_0x53fca4==='mask'&&typeof _0xebcc90==_0x37ad54(0x31a)&&(_0x469f66[_0x53fca4]=_0xebcc90['replace'](/url\(#(.*)\)/,_0x37ad54(0x46a)[_0x37ad54(0x306)](_0x414ad6[_0x37ad54(0x3e1)],')')));});var _0x1800e3=_0x414ad6['defIds'];return!_0x1800e3||_0x1800e3[_0x217269(0x3f9)]===0x0||(_0x59ae56[_0x217269(0x338)]==='use'&&_0x469f66['xlink:href']&&(_0x469f66[_0x217269(0x312)]=_0x469f66[_0x217269(0x312)]+_0x414ad6[_0x217269(0x3e1)]),Object[_0x217269(0x21b)](_0x469f66)[_0x217269(0x45b)](function(_0x2cc48d){const _0x179fa1=_0x217269;var _0x3713e6=_0x2cc48d[0x0],_0x1128ec=_0x2cc48d[0x1];typeof _0x1128ec==_0x179fa1(0x31a)&&(_0x469f66[_0x3713e6]=_0x1128ec[_0x179fa1(0x34b)](/url\(#(.*)\)/,_0x179fa1(0x46a)[_0x179fa1(0x306)](_0x414ad6['idSuffix'],')')));})),_0x469f66;}function Rt(_0x1a9cdf,_0x18c11d){const _0x14755e=_0x25b3be;var _0x25a1fc,_0x3cf13f=_0x18c11d[_0x14755e(0x396)];return!_0x3cf13f||_0x3cf13f[_0x14755e(0x3f9)]===0x0?_0x1a9cdf:_0x1a9cdf[_0x14755e(0x338)]==='defs'&&(!((_0x25a1fc=_0x1a9cdf[_0x14755e(0x40d)])===null||_0x25a1fc===void 0x0)&&_0x25a1fc[_0x14755e(0x3f9)])?E(E({},_0x1a9cdf),{'children':_0x1a9cdf[_0x14755e(0x40d)][_0x14755e(0x287)](function(_0x31da15){const _0x14c295=_0x14755e;return typeof _0x31da15[_0x14c295(0x2b6)]['id']==_0x14c295(0x31a)&&_0x3cf13f&&_0x3cf13f['includes'](_0x31da15[_0x14c295(0x2b6)]['id'])?E(E({},_0x31da15),{'attrs':E(E({},_0x31da15[_0x14c295(0x2b6)]),{'id':_0x31da15[_0x14c295(0x2b6)]['id']+_0x18c11d[_0x14c295(0x3e1)]})}):_0x31da15;})}):_0x1a9cdf;}function Dt(){const _0x32e377=_0x25b3be;return Math[_0x32e377(0x2e2)]()[_0x32e377(0x41e)](0x24)['substring'](0x2,0x8);}pe[_0x25b3be(0x443)]=_0x25b3be(0x29a);var Ut={'tag':'svg','attrs':{'xmlns':_0x25b3be(0x202),'fill':_0x25b3be(0x3ae),'viewBox':_0x25b3be(0x421),'width':_0x25b3be(0x28c),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x25b3be(0x224)},'children':[{'tag':_0x25b3be(0x406),'attrs':{'stroke':_0x25b3be(0x38b),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x25b3be(0x2f6),'strokeLinejoin':_0x25b3be(0x2f6),'strokeWidth':1.2}}]},{'tag':_0x25b3be(0x29d),'attrs':{},'children':[{'tag':_0x25b3be(0x364),'attrs':{'id':_0x25b3be(0x31b)},'children':[{'tag':'path','attrs':{'fill':_0x25b3be(0x20f),'d':_0x25b3be(0x272)}}]}]}],'defIds':[_0x25b3be(0x31b)]},ye=M[_0x25b3be(0x39e)](function(_0x2df531,_0x5cf4ee){const _0x49bc37=_0x25b3be;return M['createElement'](pe,Object[_0x49bc37(0x32c)]({},_0x2df531,{'id':'off-line-icon','ref':_0x5cf4ee,'icon':Ut}));});ye[_0x25b3be(0x443)]=_0x25b3be(0x24c);var Nt={'tag':_0x25b3be(0x240),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x25b3be(0x3ae),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x25b3be(0x28c)},'children':[{'tag':'g','attrs':{'clipPath':_0x25b3be(0x261)},'children':[{'tag':_0x25b3be(0x406),'attrs':{'stroke':'currentColor','d':_0x25b3be(0x280),'strokeLinecap':_0x25b3be(0x2f6),'strokeLinejoin':_0x25b3be(0x2f6),'strokeWidth':1.2}}]},{'tag':_0x25b3be(0x29d),'attrs':{},'children':[{'tag':_0x25b3be(0x364),'attrs':{'id':_0x25b3be(0x459)},'children':[{'tag':_0x25b3be(0x406),'attrs':{'fill':_0x25b3be(0x20f),'d':_0x25b3be(0x272),'transform':_0x25b3be(0x36a)}}]}]}],'defIds':[_0x25b3be(0x459)]},$e=M['forwardRef'](function(_0x1323fd,_0x4f86ca){const _0xf2bffc=_0x25b3be;return M[_0xf2bffc(0x36b)](pe,Object[_0xf2bffc(0x32c)]({},_0x1323fd,{'id':'on-line-icon','ref':_0x4f86ca,'icon':Nt}));});$e[_0x25b3be(0x443)]=_0x25b3be(0x2b1);function Mt(_0x34cf6e){const _0xc9903d=_0x25b3be;switch(_0x34cf6e){case u[_0xc9903d(0x368)][_0xc9903d(0x37f)]:return _0xc9903d(0x341);case u['CollaborationStatus'][_0xc9903d(0x2bd)]:return _0xc9903d(0x327);case u[_0xc9903d(0x368)]['FETCH_MISS']:return _0xc9903d(0x477);case u[_0xc9903d(0x368)]['NOT_COLLAB']:return _0xc9903d(0x209);case u[_0xc9903d(0x368)][_0xc9903d(0x3dc)]:case u[_0xc9903d(0x368)][_0xc9903d(0x377)]:return'collabStatus.syncing';case u[_0xc9903d(0x368)][_0xc9903d(0x440)]:case u[_0xc9903d(0x368)][_0xc9903d(0x25a)]:return _0xc9903d(0x2b7);}}function xe(_0x110c3b){const _0x11f746=_0x25b3be,{status$:_0x40b340}=_0x110c3b,_0x3408a9=T[_0x11f746(0x3ed)](_0x40b340,u[_0x11f746(0x368)]['NOT_COLLAB']),_0x2589c2=T['useDependency'](a[_0x11f746(0x411)]),_0x344ac0=T['useDependency'](u[_0x11f746(0x42e)]),_0x184b80=_0x3408a9!==u[_0x11f746(0x368)][_0x11f746(0x37f)],_0x23245a=_0x2589c2['t'](Mt(_0x3408a9)),_0x22a50c=_0x184b80?w['jsx']($e,{}):w['jsx'](ye,{}),_0x5031d0=M[_0x11f746(0x336)](()=>{const _0x374083=_0x11f746;_0x184b80||_0x344ac0[_0x374083(0x2c2)]();},[_0x184b80,_0x344ac0]);function _0x5e2702(){const _0x2e31d4=_0x11f746;return w[_0x2e31d4(0x476)]('div',{'className':_0x2e31d4(0x3c4),'onClick':_0x5031d0,'children':[w['jsx'](_0x2e31d4(0x289),{'className':D['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x184b80,'univer-text-red-500':!_0x184b80}),'children':_0x22a50c}),w[_0x2e31d4(0x307)]('div',{'className':_0x2e31d4(0x200),'children':_0x23245a})]});}return _0x184b80?_0x5e2702():w[_0x11f746(0x307)](D['Tooltip'],{'title':_0x2589c2['t'](_0x11f746(0x30f)),'children':_0x5e2702()});}var Lt=Object['getOwnPropertyDescriptor'],wt=(_0x4dc312,_0x138ed3,_0x106d2e,_0x20d948)=>{const _0x386606=_0x25b3be;for(var _0x19a605=_0x20d948>0x1?void 0x0:_0x20d948?Lt(_0x138ed3,_0x106d2e):_0x138ed3,_0x2b0db4=_0x4dc312[_0x386606(0x3f9)]-0x1,_0x48a253;_0x2b0db4>=0x0;_0x2b0db4--)(_0x48a253=_0x4dc312[_0x2b0db4])&&(_0x19a605=_0x48a253(_0x19a605)||_0x19a605);return _0x19a605;},V=(_0x5a68c1,_0x3bb30e)=>(_0x43a083,_0x30f285)=>_0x3bb30e(_0x43a083,_0x30f285,_0x5a68c1);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x25b3be(0x42f)]{constructor(_0x276a03,_0x363bfb,_0x5e26e5,_0x5c09a3){const _0x2bf286=_0x25b3be;super(),h(this,'_status$',new d[(_0x2bf286(0x438))](u[_0x2bf286(0x368)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x276a03,this[_0x2bf286(0x39a)]=_0x363bfb,this[_0x2bf286(0x363)]=_0x5e26e5,this['_uiPartsService']=_0x5c09a3,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x25b3be(0x355)](){const _0x14845a=_0x25b3be;this[_0x14845a(0x415)](this[_0x14845a(0x271)][_0x14845a(0x21a)]['pipe'](d[_0x14845a(0x2d3)](()=>{const _0x3f581b=_0x14845a,_0x4a6a21=this['_univerInstanceService'][_0x3f581b(0x380)]();return _0x4a6a21?this[_0x3f581b(0x363)][_0x3f581b(0x36c)](_0x4a6a21['getUnitId']()):d['of'](null);}),d['switchMap'](_0x43a382=>_0x43a382?_0x43a382[_0x14845a(0x3fe)]:d['of'](u[_0x14845a(0x368)]['NOT_COLLAB'])))[_0x14845a(0x22c)](_0xd88d6=>{const _0x52f8b4=_0x14845a;this[_0x52f8b4(0x3a8)]['next'](_0xd88d6);}));}[_0x25b3be(0x244)](){const _0x2932e3=_0x25b3be;this['disposeWithMe'](this[_0x2932e3(0x2dd)][_0x2932e3(0x3f1)](T[_0x2932e3(0x20b)][_0x2932e3(0x322)],()=>T[_0x2932e3(0x303)](Pt({'status$':this['_status$'][_0x2932e3(0x1f3)]()}),this['_injector'])));}},exports[_0x25b3be(0x2bb)]=wt([V(0x0,a[_0x25b3be(0x3a2)]),V(0x1,a['Inject'](a['Injector'])),V(0x2,a[_0x25b3be(0x23f)](u[_0x25b3be(0x1ff)])),V(0x3,T['IUIPartsService'])],exports[_0x25b3be(0x2bb)]);function Pt(_0x2d088b){const {status$:_0xe4498e}=_0x2d088b;return function(){const _0x2e85bd=_0x4727;return w[_0x2e85bd(0x307)](xe,{'status$':_0xe4498e});};}var At=Object[_0x25b3be(0x3d6)],yt=(_0x72e7b3,_0x1135a2,_0x4153a1,_0x23a30e)=>{const _0x26e72f=_0x25b3be;for(var _0x160c36=_0x23a30e>0x1?void 0x0:_0x23a30e?At(_0x1135a2,_0x4153a1):_0x1135a2,_0x124e2f=_0x72e7b3[_0x26e72f(0x3f9)]-0x1,_0x148072;_0x124e2f>=0x0;_0x124e2f--)(_0x148072=_0x72e7b3[_0x124e2f])&&(_0x160c36=_0x148072(_0x160c36)||_0x160c36);return _0x160c36;},y=(_0x5e0077,_0x2d4897)=>(_0x205a1e,_0x1bf713)=>_0x2d4897(_0x205a1e,_0x1bf713,_0x5e0077);let q=class extends a['Disposable']{constructor(_0x1dece3,_0x3cd2f2,_0x10fcb4,_0x1dad4e,_0x4ffa79,_0x2baa88){const _0x5d0446=_0x25b3be;super(),this[_0x5d0446(0x2f8)]=_0x1dece3,this[_0x5d0446(0x2df)]=_0x3cd2f2,this['_collaborationUIEventService']=_0x10fcb4,this['_messageService']=_0x1dad4e,this[_0x5d0446(0x20a)]=_0x4ffa79,this['_localeService']=_0x2baa88,this[_0x5d0446(0x2b2)](),this[_0x5d0446(0x3ca)]();}[_0x25b3be(0x2b2)](){const _0x2d37cc=_0x25b3be;this[_0x2d37cc(0x415)](this[_0x2d37cc(0x2f8)][_0x2d37cc(0x238)](()=>{const _0x823721=_0x2d37cc;if(this[_0x823721(0x2df)]['saveTaskMap'][_0x823721(0x2dc)])return this[_0x823721(0x43c)]['t'](_0x823721(0x230));}));}[_0x25b3be(0x3ca)](){const _0xc36204=_0x25b3be;this[_0xc36204(0x415)](this[_0xc36204(0x24b)][_0xc36204(0x30c)][_0xc36204(0x22c)](_0x64df9a=>{const _0x370195=_0xc36204;_0x64df9a['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x370195(0x3ad)]['show']({'type':D['MessageType'][_0x370195(0x239)],'content':this[_0x370195(0x43c)]['t'](_0x370195(0x2bf))}),_0x64df9a['id']===u[_0x370195(0x467)][_0x370195(0x2eb)]&&this['_messageService'][_0x370195(0x262)]({'type':D[_0x370195(0x24e)][_0x370195(0x239)],'content':this[_0x370195(0x43c)]['t']('collaboration.closeRoom')}),_0x64df9a['id']===u[_0x370195(0x467)][_0x370195(0x246)]&&this[_0x370195(0x20a)][_0x370195(0x262)]({'title':this[_0x370195(0x43c)]['t'](_0x370195(0x326)),'content':this[_0x370195(0x43c)]['t'](_0x370195(0x275)),'type':_0x370195(0x267),'duration':0x0}),_0x64df9a['id']===u[_0x370195(0x467)][_0x370195(0x2bd)]&&this[_0x370195(0x3ad)][_0x370195(0x262)]({'type':D['MessageType'][_0x370195(0x265)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x64df9a[_0x370195(0x1f6)]+')'}),_0x64df9a['id']===u['CollaborationUIEventId'][_0x370195(0x3b4)]&&this[_0x370195(0x3ad)][_0x370195(0x262)]({'type':D['MessageType'][_0x370195(0x239)],'content':this[_0x370195(0x43c)]['t'](_0x64df9a['data']||'')}),_0x64df9a['id']===u['CollaborationUIEventId'][_0x370195(0x2d8)]&&this[_0x370195(0x3ad)][_0x370195(0x262)]({'type':D[_0x370195(0x24e)]['Warning'],'content':this[_0x370195(0x43c)]['t'](_0x370195(0x22f))}),_0x64df9a['id']===u[_0x370195(0x467)][_0x370195(0x3bd)]&&this[_0x370195(0x3ad)][_0x370195(0x262)]({'type':D[_0x370195(0x24e)][_0x370195(0x265)],'content':this['_localeService']['t'](_0x370195(0x203))}),_0x64df9a['id']===u['CollaborationUIEventId'][_0x370195(0x417)]&&this['_messageService'][_0x370195(0x262)]({'type':D['MessageType'][_0x370195(0x265)],'content':this[_0x370195(0x43c)]['t'](_0x370195(0x315))});}));}};q=yt([y(0x0,T[_0x25b3be(0x399)]),y(0x1,u[_0x25b3be(0x44c)]),y(0x2,a[_0x25b3be(0x23f)](u[_0x25b3be(0x394)])),y(0x3,T[_0x25b3be(0x347)]),y(0x4,T[_0x25b3be(0x2f7)]),y(0x5,a[_0x25b3be(0x23f)](a['LocaleService']))],q);const $t=_0x25b3be(0x3cc),Ue={},be=a[_0x25b3be(0x1f2)](_0x25b3be(0x2f2));var xt=Object[_0x25b3be(0x3d6)],jt=(_0x3c6371,_0x15ef32,_0x5a65c3,_0x19db8e)=>{const _0x240f98=_0x25b3be;for(var _0x31bc32=_0x19db8e>0x1?void 0x0:_0x19db8e?xt(_0x15ef32,_0x5a65c3):_0x15ef32,_0x38b201=_0x3c6371[_0x240f98(0x3f9)]-0x1,_0x327237;_0x38b201>=0x0;_0x38b201--)(_0x327237=_0x3c6371[_0x38b201])&&(_0x31bc32=_0x327237(_0x31bc32)||_0x31bc32);return _0x31bc32;},H=(_0x1f2be7,_0x522755)=>(_0x3f7ebd,_0x1bb807)=>_0x522755(_0x3f7ebd,_0x1bb807,_0x1f2be7);exports[_0x25b3be(0x253)]=class extends a['RxDisposable']{constructor(_0x54155e,_0x1a52c9,_0x19ca89,_0x15199c,_0x5047fb){const _0x3857ab=_0x25b3be;super(),this[_0x3857ab(0x45d)]=_0x54155e,this[_0x3857ab(0x3b5)]=_0x1a52c9,this[_0x3857ab(0x309)]=_0x19ca89,this['_dataLoaderService']=_0x15199c,_0x5047fb?_0x5047fb==null||_0x5047fb[_0x3857ab(0x2c1)]()['then'](()=>this['_init']()):(this[_0x3857ab(0x3b5)][_0x3857ab(0x403)](_0x3857ab(0x3f7),_0x3857ab(0x3ac)),this[_0x3857ab(0x3cf)]());}async[_0x25b3be(0x3cf)](){const _0x4c9ab6=_0x25b3be,_0x35e791=this[_0x4c9ab6(0x45d)]['getParam'](_0x4c9ab6(0x3f4)),_0x18c447=this[_0x4c9ab6(0x45d)]['getParam']('type'),_0x247132=this[_0x4c9ab6(0x45d)][_0x4c9ab6(0x2d0)](_0x4c9ab6(0x3aa));if(!_0x35e791||!_0x18c447){this[_0x4c9ab6(0x3b5)][_0x4c9ab6(0x403)](_0x4c9ab6(0x3f7),_0x4c9ab6(0x220));return;}const _0x1e86b0=await this['_dataLoaderService'][_0x4c9ab6(0x286)](_0x35e791,Number(_0x18c447),_0x247132);_0x1e86b0&&_0x1e86b0 instanceof a[_0x4c9ab6(0x3d9)]&&this[_0x4c9ab6(0x3c5)](_0x1e86b0);}async['_setupSubUnitSync'](_0x501f8b){const _0x20ac8a=_0x25b3be;await this[_0x20ac8a(0x360)](_0x501f8b),_0x501f8b[_0x20ac8a(0x21e)]['pipe'](d[_0x20ac8a(0x408)](this[_0x20ac8a(0x420)]))[_0x20ac8a(0x22c)](_0x555a87=>{const _0x39f719=_0x20ac8a;_0x555a87&&this[_0x39f719(0x250)](_0x555a87);}),this[_0x20ac8a(0x45d)]['urlChange$'][_0x20ac8a(0x3b0)](d[_0x20ac8a(0x408)](this[_0x20ac8a(0x420)]))[_0x20ac8a(0x22c)](()=>this[_0x20ac8a(0x360)](_0x501f8b));}[_0x25b3be(0x250)](_0x233a44,_0x3d25cf=!0x1){const _0x12dd49=_0x25b3be,_0x21b22f=this[_0x12dd49(0x45d)][_0x12dd49(0x2d0)](_0x12dd49(0x3aa));_0x233a44[_0x12dd49(0x2e4)]()!==_0x21b22f&&this[_0x12dd49(0x45d)][_0x12dd49(0x28d)](_0x12dd49(0x3aa),_0x233a44['getSheetId'](),_0x3d25cf);}async['_updateSubUnitFromURLParams'](_0x205c6b){const _0x2150a0=_0x25b3be;var _0xfcd998;const _0x1572f4=this[_0x2150a0(0x45d)][_0x2150a0(0x2d0)]('subunit');if(!_0x1572f4||!_0x205c6b[_0x2150a0(0x207)](_0x1572f4)){const _0x3d571b=_0x205c6b[_0x2150a0(0x3a1)]()[0x0],_0x34bf79=_0x205c6b[_0x2150a0(0x207)](_0x3d571b);if(!_0x34bf79)return;this['_updateURLWithCurrentState'](_0x34bf79,!0x0),await this['_commandService']['executeCommand'](g[_0x2150a0(0x378)]['id'],{'unitId':_0x205c6b[_0x2150a0(0x3bc)](),'subUnitId':_0x3d571b});return;}((_0xfcd998=_0x205c6b[_0x2150a0(0x3e4)]())==null?void 0x0:_0xfcd998[_0x2150a0(0x2e4)]())!==_0x1572f4&&await this[_0x2150a0(0x309)]['executeCommand'](g[_0x2150a0(0x378)]['id'],{'unitId':_0x205c6b['getUnitId'](),'subUnitId':_0x1572f4});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x25b3be(0x233)]),H(0x3,a[_0x25b3be(0x23f)](u[_0x25b3be(0x214)])),H(0x4,a['Optional'](Ke[_0x25b3be(0x2a8)]))],exports[_0x25b3be(0x253)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x3d26c2,_0x3c6e66,_0x50169c,_0x3e0177)=>{for(var _0xcb3ae4=_0x3e0177>0x1?void 0x0:_0x3e0177?Bt(_0x3c6e66,_0x50169c):_0x3c6e66,_0x575b10=_0x3d26c2['length']-0x1,_0x188ef3;_0x575b10>=0x0;_0x575b10--)(_0x188ef3=_0x3d26c2[_0x575b10])&&(_0xcb3ae4=_0x188ef3(_0xcb3ae4)||_0xcb3ae4);return _0xcb3ae4;},ce=(_0x221935,_0x37d99d)=>(_0x2eb9d9,_0x59cba5)=>_0x37d99d(_0x2eb9d9,_0x59cba5,_0x221935);let z=class{constructor(_0x25a406,_0x463138,_0xd7e590){const _0x3147e9=_0x25b3be;this[_0x3147e9(0x39a)]=_0x25a406,this[_0x3147e9(0x35c)]=_0x463138,this['_renderManagerService']=_0xd7e590;}['transformIMECache'](_0x4a375d){const _0x304673=_0x25b3be;this[_0x304673(0x2fe)](_0x4a375d),this[_0x304673(0x2c9)](_0x4a375d);}['transformRemoteChangeset'](_0x47a4a2){const _0x3fcbd4=_0x25b3be,{unitID:_0x3e040b}=_0x47a4a2,_0x50f536=this[_0x3fcbd4(0x330)][_0x3fcbd4(0x252)](_0x3e040b)[_0x3fcbd4(0x3c9)](b[_0x3fcbd4(0x414)]),{redoCache:_0x584609}=_0x50f536[_0x3fcbd4(0x3d5)]();if(_0x584609[_0x3fcbd4(0x3f9)]===0x0)return _0x47a4a2;let _0x146dd7=a[_0x3fcbd4(0x42d)][_0x3fcbd4(0x319)](_0x47a4a2['mutations'][0x0]);for(let _0x8593d3=0x0;_0x8593d3<_0x584609[_0x3fcbd4(0x3f9)];_0x8593d3++){const _0x20b6a5={'id':'doc.mutation.rich-text-editing','params':{..._0x584609[_0x8593d3]}},_0x1d01b7=this['_transformService'][_0x3fcbd4(0x291)](_0x146dd7,_0x20b6a5,!0x1);if(m[_0x3fcbd4(0x41b)](_0x1d01b7))throw _0x1d01b7[_0x3fcbd4(0x267)];_0x146dd7=_0x1d01b7[_0x3fcbd4(0x20e)];}return{...a['Tools']['deepClone'](_0x47a4a2),'mutations':[_0x146dd7]};}['_transformUndoRedoStack'](_0x25a921){const _0xbe21f0=_0x25b3be,{unitID:_0x2f3d63}=_0x25a921,_0x1a994d=this[_0xbe21f0(0x330)]['getRenderById'](_0x2f3d63)[_0xbe21f0(0x3c9)](b[_0xbe21f0(0x414)]),{undoCache:_0x3abacd,redoCache:_0x52c7be}=_0x1a994d[_0xbe21f0(0x3d5)]();if(_0x3abacd['length']===0x0||_0x52c7be[_0xbe21f0(0x3f9)]===0x0)return;const _0x2036e1=[],_0x401b23=[];let _0x49c26c=a[_0xbe21f0(0x42d)][_0xbe21f0(0x319)](_0x25a921[_0xbe21f0(0x28e)][0x0]),_0x4ae8db=a[_0xbe21f0(0x42d)][_0xbe21f0(0x319)](_0x25a921[_0xbe21f0(0x28e)][0x0]);for(let _0xc922a1=_0x3abacd[_0xbe21f0(0x3f9)]-0x1;_0xc922a1>=0x0;_0xc922a1--){const _0xd655ee={'id':_0xbe21f0(0x390),'params':{..._0x3abacd[_0xc922a1]}},_0x26807a={'id':_0xbe21f0(0x390),'params':{..._0x52c7be[_0xc922a1]}},_0x1b8a3c=this[_0xbe21f0(0x35c)][_0xbe21f0(0x291)](_0x49c26c,_0xd655ee,!0x1),_0x45efa2=this['_transformService'][_0xbe21f0(0x291)](_0x4ae8db,_0x26807a,!0x1);if(m['isTransformMutationFailure'](_0x1b8a3c))throw _0x1b8a3c[_0xbe21f0(0x267)];if(m[_0xbe21f0(0x41b)](_0x45efa2))throw _0x45efa2[_0xbe21f0(0x267)];_0x2036e1[_0xbe21f0(0x2ef)](_0x1b8a3c['m2Prime'][_0xbe21f0(0x24a)]),_0x401b23['unshift'](_0x45efa2[_0xbe21f0(0x20d)][_0xbe21f0(0x24a)]),_0x49c26c=_0x1b8a3c[_0xbe21f0(0x20e)],_0x4ae8db=_0x45efa2[_0xbe21f0(0x20e)];}_0x1a994d['setUndoRedoMutationParamsCache']({'undoCache':_0x2036e1,'redoCache':_0x401b23});}[_0x25b3be(0x2c9)](_0x4e27e7){const _0x538dd0=_0x25b3be,{unitID:_0x46f2dd}=_0x4e27e7,_0x4b2308=this['_renderManagerService']['getRenderById'](_0x46f2dd)[_0x538dd0(0x3c9)](b[_0x538dd0(0x414)]),_0x5bf4c4=_0x4b2308[_0x538dd0(0x46f)]();if(_0x5bf4c4==null)return;const _0xdd1b30=[{'id':_0x538dd0(0x390),'params':{'unitId':_0x4e27e7[_0x538dd0(0x232)],'actions':null,'textRanges':[_0x5bf4c4]}}],_0xbd759d=this[_0x538dd0(0x35c)][_0x538dd0(0x245)](_0x4e27e7,_0xdd1b30);if(!m[_0x538dd0(0x3b9)](_0xbd759d))throw _0xbd759d[_0x538dd0(0x267)];const _0x1410d6=_0xbd759d['m2Prime'][0x0][_0x538dd0(0x24a)][_0x538dd0(0x2e3)];Array[_0x538dd0(0x23e)](_0x1410d6)&&_0x1410d6[_0x538dd0(0x3f9)]&&_0x4b2308[_0x538dd0(0x2be)](_0x1410d6[0x0]);}};z=kt([ce(0x0,a[_0x25b3be(0x23f)](a[_0x25b3be(0x2cc)])),ce(0x1,m[_0x25b3be(0x255)]),ce(0x2,p[_0x25b3be(0x31d)])],z);var Ht=Object[_0x25b3be(0x3d6)],Ft=(_0x87536a,_0x39aac1,_0x184b61,_0x105d8d)=>{const _0x37a766=_0x25b3be;for(var _0x454d00=_0x105d8d>0x1?void 0x0:_0x105d8d?Ht(_0x39aac1,_0x184b61):_0x39aac1,_0x16ede7=_0x87536a[_0x37a766(0x3f9)]-0x1,_0x364382;_0x16ede7>=0x0;_0x16ede7--)(_0x364382=_0x87536a[_0x16ede7])&&(_0x454d00=_0x364382(_0x454d00)||_0x454d00);return _0x454d00;},le=(_0x3351e4,_0x23e8f6)=>(_0x57c26e,_0xf105dc)=>_0x23e8f6(_0x57c26e,_0xf105dc,_0x3351e4);let J=class{constructor(_0x436c3f,_0x1e43ba,_0x22e62c){const _0x2b77c7=_0x25b3be;this[_0x2b77c7(0x39a)]=_0x436c3f,this['_transformService']=_0x1e43ba,this['_docStateChangeManagerService']=_0x22e62c;}['transformStateCache'](_0x175417){this['_transformHistoryAndStateStack'](_0x175417);}[_0x25b3be(0x382)](_0x124fc3){const _0x304d68=_0x25b3be,{unitID:_0x51893e}=_0x124fc3,{collaboration:_0x39ec4b}=this[_0x304d68(0x35e)][_0x304d68(0x1f5)](_0x51893e);if(_0x39ec4b[_0x304d68(0x3f9)]===0x0)return _0x124fc3;let _0x1a07d1=a['Tools'][_0x304d68(0x319)](_0x124fc3[_0x304d68(0x28e)][0x0]);for(let _0x15f119=0x0;_0x15f119<_0x39ec4b[_0x304d68(0x3f9)];_0x15f119++){const _0x39414e={'id':_0x304d68(0x390),'params':{'unitId':_0x39ec4b[_0x15f119][_0x304d68(0x375)],..._0x39ec4b[_0x15f119][_0x304d68(0x23c)]}},_0x444bbc=this[_0x304d68(0x35c)]['transformMutation'](_0x1a07d1,_0x39414e,!0x1);if(m['isTransformMutationFailure'](_0x444bbc))throw _0x444bbc[_0x304d68(0x267)];_0x1a07d1=_0x444bbc[_0x304d68(0x20e)];}return{...a[_0x304d68(0x42d)][_0x304d68(0x319)](_0x124fc3),'mutations':[_0x1a07d1]};}[_0x25b3be(0x25c)](_0x34a792){const _0x30c74b=_0x25b3be,{unitID:_0x50db71}=_0x34a792,{history:_0x6b9867,collaboration:_0x2ca260}=this['_docStateChangeManagerService'][_0x30c74b(0x1f5)](_0x50db71);if(_0x6b9867[_0x30c74b(0x3f9)]===0x0&&_0x2ca260['length']===0x0)return;const _0xec1b57=[],_0x4e98f8=[];let _0x7b50fa=a[_0x30c74b(0x42d)]['deepClone'](_0x34a792['mutations'][0x0]),_0x5a1572=a[_0x30c74b(0x42d)]['deepClone'](_0x34a792[_0x30c74b(0x28e)][0x0]);for(let _0x5bce77=_0x6b9867[_0x30c74b(0x3f9)]-0x1;_0x5bce77>=0x0;_0x5bce77--){const _0x3cb308={'id':_0x30c74b(0x390),'params':{'unitId':_0x6b9867[_0x5bce77][_0x30c74b(0x375)],..._0x6b9867[_0x5bce77][_0x30c74b(0x2a1)]}},_0x4dd32a={'id':_0x30c74b(0x390),'params':{'unitId':_0x6b9867[_0x5bce77][_0x30c74b(0x375)],..._0x6b9867[_0x5bce77][_0x30c74b(0x23c)]}},_0x2cf617=this[_0x30c74b(0x35c)][_0x30c74b(0x291)](_0x7b50fa,_0x3cb308,!0x1),_0x5a57d0=this[_0x30c74b(0x35c)][_0x30c74b(0x291)](_0x5a1572,_0x4dd32a,!0x1);if(m['isTransformMutationFailure'](_0x2cf617))throw _0x2cf617[_0x30c74b(0x267)];if(m[_0x30c74b(0x41b)](_0x5a57d0))throw _0x5a57d0[_0x30c74b(0x267)];_0xec1b57['unshift']({..._0x6b9867[_0x5bce77],'undoState':_0x2cf617['m2Prime'][_0x30c74b(0x24a)],'redoState':_0x5a57d0['m2Prime'][_0x30c74b(0x24a)]}),_0x7b50fa=_0x2cf617[_0x30c74b(0x20e)],_0x5a1572=_0x5a57d0['m1Prime'];}_0x7b50fa=a['Tools']['deepClone'](_0x34a792[_0x30c74b(0x28e)][0x0]),_0x5a1572=a[_0x30c74b(0x42d)][_0x30c74b(0x319)](_0x34a792['mutations'][0x0]);for(let _0x4c74fd=_0x2ca260[_0x30c74b(0x3f9)]-0x1;_0x4c74fd>=0x0;_0x4c74fd--){const _0x298990={'id':_0x30c74b(0x390),'params':{'unitId':_0x2ca260[_0x4c74fd][_0x30c74b(0x375)],..._0x2ca260[_0x4c74fd][_0x30c74b(0x2a1)]}},_0x113562={'id':_0x30c74b(0x390),'params':{'unitId':_0x2ca260[_0x4c74fd][_0x30c74b(0x375)],..._0x2ca260[_0x4c74fd][_0x30c74b(0x23c)]}},_0x4ab1aa=this[_0x30c74b(0x35c)][_0x30c74b(0x291)](_0x7b50fa,_0x298990,!0x1),_0xcfc78a=this[_0x30c74b(0x35c)][_0x30c74b(0x291)](_0x5a1572,_0x113562,!0x1);if(m[_0x30c74b(0x41b)](_0x4ab1aa))throw _0x4ab1aa['error'];if(m[_0x30c74b(0x41b)](_0xcfc78a))throw _0xcfc78a[_0x30c74b(0x267)];_0x4e98f8[_0x30c74b(0x2ef)]({..._0x2ca260[_0x4c74fd],'undoState':_0x4ab1aa[_0x30c74b(0x20d)][_0x30c74b(0x24a)],'redoState':_0xcfc78a[_0x30c74b(0x20d)]['params']}),_0x7b50fa=_0x4ab1aa[_0x30c74b(0x20e)],_0x5a1572=_0xcfc78a[_0x30c74b(0x20e)];}this[_0x30c74b(0x35e)]['setStateCache'](_0x50db71,{'history':_0xec1b57,'collaboration':_0x4e98f8});}};J=Ft([le(0x0,a[_0x25b3be(0x23f)](a[_0x25b3be(0x2cc)])),le(0x1,m[_0x25b3be(0x255)]),le(0x2,a[_0x25b3be(0x23f)](b[_0x25b3be(0x237)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x1a649b,_0x5980e3,_0x35d30a,_0x18039f)=>{const _0x3f27af=_0x25b3be;for(var _0xe294b5=_0x18039f>0x1?void 0x0:_0x18039f?Yt(_0x5980e3,_0x35d30a):_0x5980e3,_0x6787e7=_0x1a649b[_0x3f27af(0x3f9)]-0x1,_0x40e029;_0x6787e7>=0x0;_0x6787e7--)(_0x40e029=_0x1a649b[_0x6787e7])&&(_0xe294b5=_0x40e029(_0xe294b5)||_0xe294b5);return _0xe294b5;},Ne=(_0x31e91a,_0x33ee81)=>(_0x2b9133,_0x366301)=>_0x33ee81(_0x2b9133,_0x366301,_0x31e91a);function _0x1963(){const _0x3f6f51=['_cursorShapes','univer-flex\x20univer-items-center','_setupSubUnitSync','IImageIoService','_handleLeaveEvent','_startSheetCollabCursor','with','_initEvent','imageSourceType','collaboration-client-ui.config','NO_OTHER_CLIENTS_EDITING','RemoteUniscriptService','_init','CommandType','_saveTaskMap','getSkeleton','evenodd','rgba(255,\x20255,\x20255,\x200.01)','getUndoRedoMutationParamsCache','getOwnPropertyDescriptor','Shape','handleDeleteRangeMoveUp','Workbook','37128oUDKNS','height','AWAITING','SNAPSHOT_HAS_BEEN_REMOVED','_drawRectRange','transformStateCache','_startDocCollabCursor','idSuffix','top','UnitStatus','getActiveSheet','fill','handleInsertCol','_docTransformIMECacheService','COLORS','SetDocZoomRatioOperation','from','stringify','LICENSE_IMPORT_SIZE_EXCEEDED','useObservable','48NuORCd','_selfUnitIDs','_getSaveTimeout','registerComponent','LOGIN_FAILED','mapTo','unit','getUnitStatus$','mergeOverrideWithDependencies','[CollaborationDataLoaderController]','setAlpha','length','addHandlerCallback','_context','clearTimeout','3682080qVJGdg','status$','_labelPosition','USER_NOT_INVITED_CODE','getMemberID','_entityInit$','debug','DEFAULT_WS_SESSION_TICKET_URL','merge','path','max','takeUntil','_draw','TOO_MANY_REQUESTS','_instanceService','getCoordByCell','children','INVITE_CODE_ALREADY_BOUND','_textBubble','flatMap','LocaleService','engine','subUnitId','DocIMEInputManagerService','disposeWithMe','moveTo','SUBMIT_CHANGESET_TIMEOUT','LOCAL_CACHE_INTERVAL','_themeService','IDocClipboardService','isTransformMutationFailure','FromArray','InsertRowCommandId','toString','result','dispose$','0\x200\x2016\x2016','history','resize','saveOfflineData','_color','range','jiqing.500','getCurrentUnitForType','VIEW_MAIN','_revisionService','ISocketService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','Tools','CollaborationSessionService','Disposable','_id','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_cachedData','getViewport','findNodePositionByCharIndex','_updateLocalCursor','isActive','_initEntityListener','BehaviorSubject','hasOwnProperty','collab-text-range-','pushState','_localeService','getMergeData','TEXT_RANGE_LAYER_INDEX','_eventUnsubscribe','SYNCED','_anchorDot','NOT_FOUND','displayName','currentSkeleton$','COMPLETION_FINISHED','startColumn','runId','_initCommandExecutedListener','1054233BAjRhf','toStringTag','Rectangle','ILocalCacheService','replaceState','SetSelectionsOperation','Rect','YUUMI_RATE_OVER_LIMIT','YUUMI_NO_CUBOID_FOR_QUESTION','MemberService','react','getCurrentSelections','DOC_RANGE_TYPE','APPLY_NON_SEQUENTIAL_REVISION','_initDependencies','createInstance','on-line-icon_clip0_910_349','_onRefRangeChange','forEach','_localStorageService','_urlService','_handleHeartbeatEvent','YUUMI_URL_COL_OUT_OF_RANGE','CONNECTOR_DATA_TOO_LARGE','selection','clearInterval','@univerjs/docs-ui','SheetSkeletonManagerService','_colorAssignService','getOwnPropertySymbols','CollaborationUIEventId','search','removeParam','url(#$1','_range','onTransformChange$','addClipboardHook','NodePositionConvertToCursor','getActiveRange','_refRangeService','_collabCursorState$','_registerRenderDependencies','runRefRangeMutations','CHANGESET_REVISION_CONFILICT','location','jsxs','collabStatus.fetchMiss','_getMergeRange','INVITE_CODE_HAS_BEEN_UES','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_cursorInfo$','init','createIdentifier','asObservable','SetTextSelectionsOperation','getStateCache','data','getColor','fromEvent','restore','_scheduleSaving','_getScale','513PKMiLB','UPDATE_CURSOR','unload','CollaborationController','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','type','http://www.w3.org/2000/svg','session.connection-failed','source','save','onPointerEnter$','getSheetBySheetId','InsertRangeMoveRightCommandId','collabStatus.notCollab','_notificationService','BuiltInUIPart','_scene','m2Prime','m1Prime','white','INVITE_CODE_REQUIRED','handleIRemoveCol','_config','purple.300','DataLoaderService','setItem','colorChannel1','Subject','ISnapshotServerService','_session','focused$','entries','YUUMI_ASYNCIO_CANCELLED','searchParams','activeSheet$','_docSyncEditingCollabCursorService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','column','_createSocketURL','rxjs/operators','url(#off-line-icon_clip0_910_343)','updateOfflineData','WebSocketService','next','min','_anchor','_getSheetObject','getItem','subscribe','INTERNAL_ERROR','MOBILE_HAS_BEEN_BOUND','session.will-retry','collaboration-client.offline-data-not-saved','exhaustSavingTask','unitID','ICommandService','...','DisposableCollection','_ensureSubject','DocStateChangeManagerService','registerBeforeClose','Warning','_sheetSkeletonManagerService','SNAPSHOT_INVALID_SNAPSHOT','redoState','_unitStatus','isArray','Inject','svg','IConfigService','skeleton','black','_initStatusComponent','transformMutationsWithChangeset','PERMISSION_DENIED','entityInit$','Failed','_handleEvent','params','_collaborationUIEventService','OffLineIcon','saveTaskMap','MessageType','@univerjs/network','_updateURLWithCurrentState','addObjects','getRenderById','CollaborationDataLoaderController','UNIVER_SHEET','ITransformService','_online','_saveCache','_collabSessionService','filter','PENDING','includes','_transformHistoryAndStateStack','RemoveColCommandId','_unitOnClients','addEventListener','CollaborationStatusDisplay','url(#on-line-icon_clip0_910_349)','show','_scheduleHeartbeat','getDocRanges','Error','transformIMECache','error','getLocalCacheKey','prototype','_updateCollabCursors','backgroundColor','syncEditingCollabCursor','complete','parse','memberID','UniverInstanceType','_univerInstanceService','M0\x200H16V16H0z','handleInsertRow','_onCursorUpdate','permission.content','throttleTime','call','APPLY_PERMISSION_DENIED','_getAnchorBounding','DocCollaborationEntity','split','YUUMI_SUBSCRIPTION_NOT_FOUND','runOnServer','requireSession','_toggleOffline','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','width','getVpScrollXYInfoByPosToVp','ENSURE_SNAPSHOT_EXECUTION','TEXT','bottom','loadUnit','map','getColorFromTheme','div','row','_lastPointer','1em','setParam','mutations','@univerjs/rpc','_syncEditingCollabCursorService','transformMutation','_disabled','getTypeOfUnitDisposed$','currentTheme$','_memberService','useRef','registerRefRange','_registerDependencies','YUUMI_ALL_TABLES_IS_INVALID','UniverIcon','key','send','defs','roomMembers','invokeId','sessionStatus$','undoState','delete','_imageIoService','APPLY_REVISION_CONFILICT','_configService','handleInsertRangeMoveRight','replaceDocRanges','IRemoteInstanceService','getCurrent','setTimeout','RxDisposable','measureText','_docTransformStateCacheService','UniverCollaborationClientUIPlugin','NOT_COLLAB','MUTATION','OnLineIcon','_setupBeforeClosingHandler','combineLatest','YUUMI_AI_RUN_FAILED','sessionTicket','attrs','collabStatus.synced','ranges','disposeUnit','hide','DesktopCollaborationStatusDisplayController','color','CONFLICT','setActiveRange','collaboration.single-unit.warning','has','whenReady','reconnect','cursorInfo$','_document','_assignedColors','YUUMI_TABLE_NOT_FOUND_IN_UNIT','addObject','getAncestorScale','_transformPreviousActiveRange','pluginName','function','Injector','CollaborationSocketService','@univerjs/core','indexOf','getParam','WebBrowserSingleActiveUnitService','LICENSE_MAX_UNITS_EXCEEDED','switchMap','saveImage','_initResize','getMember','LICENSE_EXPORT_SIZE_EXCEEDED','SOCKET_FAILED_RETRY','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ALREADY_EXISTS','size','_uiPartsService','_backgroundColor','_localCacheService','HTTPService','onPointerLeave$','random','textRanges','getSheetId','lineTo','YUUMI_UNABLE_LOAD_URL','UniverCollaborationClientPlugin','handleDeleteRangeMoveLeft','DocSelectionManagerService','BrowserCollaborationSocketService','CLOSE_ROOM','getTypeOfUnitAdded$','current','_docTransformSelectionsService','unshift','_heartbeatTimer','getCollabCursors$','uni.network.url-service','generateRandomId','icon','arc','round','INotificationService','_beforeCloseService','selections','#FFF','fillText','@univerjs/sheets-ui','_hover','_transformUndoRedoStack','USERS_LEAVE','WECHAT_HAS_BEEN_BOUND','blue.400','ACTIVE_UNIT_EVENT_CHANNEL','connectInjector','3590diSkSy','_scheduleClearOtherTimer','concat','jsx','debounce','_commandService','onStarting','override','event$','RegularPolygon','LICENSE_DISTRO_REJECTED','collab-client.tooltip.reconnect','propertyIsEnumerable','@univerjs/engine-formula','xlink:href','extend','InsertRangeMoveDownCommandId','session.collaboration-timeout','_removeClearOtherTimer','urlChange$','dispose','deepClone','string','off-line-icon_clip0_910_343','_name','IRenderManagerService','EMAIL_HAS_BEEN_BOUND','rxjs','set','_colorIndex','HEADER_MENU','SessionStatus','drawWith','touchDependencies','permission.title','collabStatus.conflict','onCommandExecuted','sheetId','_collabCursorController','post','assign','distinctUntilChanged','CollaborationEvent','NodePositionConvertToRectRange','_renderManagerService','_cursors','_shapes','newValue','DeleteRangeMoveLeftCommandId','683102neRqLa','useCallback','serializeRangeWithSheet','tag','origin','add','ILogService','name','executionId','get','red.300','getUniverSheetInstance','collabStatus.offline','_toggleOnline','TRANSFORM_CHANGE_OBSERVABLE_TYPE','@univerjs/docs','OTHER_CLIENTS_EDITING','PY_RUNTIME_SCRIPT_ERROR','IMessageService','getRelativeToViewportCoord','collab-text-anchor-','UNIVER_DOC','replace','_render','_roomMembers$','some','assignAColorForMemberID','isEditing','toRgbString','_hovered','all','_removeCollabCursors','_initStatusListener','values','INVALID_INVITE_CODE','_docClipboardService','Module','actions','RemoveRowCommandId','_transformService','_drawTextRange','_docStateChangeManagerService','_entities','_updateSubUnitFromURLParams','ONLINE','_hideTimer','_collaborationController','clipPath','_httpService','className','Plugin','CollaborationStatus','getOffsetConfig','translate(.97)','createElement','getCollabEntity$','href','toDisposable','401360VhdHrR','_getSessionTicket','_refreshCollabCursors','sheetID','getRangePointData','disableLocalCache','unitId','mask','AWAITING_WITH_PENDING','SetWorksheetActivateCommand','LOCAL_CACHE_INTERVAL_KEY','ColorKit','trim','IURLService','debounceTime','registerRenderModule','OFFLINE','getFocusedUnit','defineProperty','transformRemoteChangeset','RECT','MoveRangeCommandId','@univerjs-pro/collaboration','645AhytVA','_clearOtherTimers','transform','getConfig','univerjs-icon\x20univerjs-icon-','currentColor','text','setShapeProps','RichTextEditingMutation','Vector2','doc.mutation.rich-text-editing','APPLY_REJECT','_drawAnchor','cursorInfo','CollaborationUIEventService','@univerjs/engine-render','defIds','_send','push','IBeforeCloseService','_injector','Unknown\x20user','_handleJoinEvent','EffectRefRangId','forwardRef','fillStyle','_onCursorDelete','getUnhiddenWorksheets','IUniverInstanceService','RevisionService','eventID','APPLY_DUPLICATED','closePath','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_status$','getSheetObject','subunit','WebURLService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_messageService','none','INVALID_ARGUMENT','pipe','yellow.400','UNRECOGNIZED','roomMembers$','JOIN_ROOM_FAILED','_logService','UNDEFINED','body','getValue','isTransformMutationsWithChangesetSuccess','@univerjs-pro/collaboration-client','triggerDblclick','getUnitId','SOCKET_FAILED','transformSelections','then','UNAUTHENTICATED','10559760YZtNbO','find'];_0x1963=function(){return _0x3f6f51;};return _0x1963();}let Z=class{constructor(_0x51c370,_0x1bdddd){const _0x5e62cb=_0x25b3be;this[_0x5e62cb(0x39a)]=_0x51c370,this[_0x5e62cb(0x35c)]=_0x1bdddd;}[_0x25b3be(0x3be)](_0x15c628){const _0x5a1be0=_0x25b3be;var _0x4175c1;const _0x4e9214=this[_0x5a1be0(0x39a)][_0x5a1be0(0x33e)](Y[_0x5a1be0(0x2e9)]),_0x10c06c=(_0x4175c1=_0x4e9214['getDocRanges']())!=null?_0x4175c1:[];if(_0x10c06c[_0x5a1be0(0x3f9)]===0x0)return;const _0x254e84=_0x15c628[_0x5a1be0(0x232)],_0x50ef96=[{'id':_0x5a1be0(0x390),'params':{'unitId':_0x254e84,'actions':null,'textRanges':_0x10c06c}}],_0x425c45=this[_0x5a1be0(0x35c)][_0x5a1be0(0x245)](_0x15c628,_0x50ef96);if(!m[_0x5a1be0(0x3b9)](_0x425c45))throw _0x425c45[_0x5a1be0(0x267)];const _0x1a532c=_0x425c45['m2Prime'][0x0][_0x5a1be0(0x24a)][_0x5a1be0(0x2e3)];Array[_0x5a1be0(0x23e)](_0x1a532c)&&_0x1a532c[_0x5a1be0(0x3f9)]&&_0x4e9214[_0x5a1be0(0x2a7)](_0x1a532c,{'unitId':_0x254e84,'subUnitId':_0x254e84},!0x1);}};Z=Wt([Ne(0x0,a[_0x25b3be(0x23f)](a[_0x25b3be(0x2cc)])),Ne(0x1,m[_0x25b3be(0x255)])],Z);var Vt=Object[_0x25b3be(0x3d6)],Xt=(_0x4e9b01,_0x45d0c5,_0x4024d1,_0x5eca0d)=>{for(var _0x510a96=_0x5eca0d>0x1?void 0x0:_0x5eca0d?Vt(_0x45d0c5,_0x4024d1):_0x45d0c5,_0x176b98=_0x4e9b01['length']-0x1,_0x150811;_0x176b98>=0x0;_0x176b98--)(_0x150811=_0x4e9b01[_0x176b98])&&(_0x510a96=_0x150811(_0x510a96)||_0x510a96);return _0x510a96;},N=(_0x2cf022,_0x4fc783)=>(_0x5015fc,_0x3b1e77)=>_0x4fc783(_0x5015fc,_0x3b1e77,_0x2cf022);let Q=class extends a[_0x25b3be(0x42f)]{constructor(_0x3fc862,_0x336a77,_0x4fc1fc,_0x3c811a,_0xab4ea3,_0xc37471,_0x3dcb58,_0x5e5197){const _0x558a6c=_0x25b3be;super(),h(this,_0x558a6c(0x3a8),new d['BehaviorSubject'](u[_0x558a6c(0x368)][_0x558a6c(0x2af)])),(this[_0x558a6c(0x35e)]=_0x3fc862,this['_collaborationController']=_0x336a77,this[_0x558a6c(0x3e7)]=_0x4fc1fc,this[_0x558a6c(0x2ad)]=_0x3c811a,this[_0x558a6c(0x2ee)]=_0xab4ea3,this['_docSyncEditingCollabCursorService']=_0xc37471,this['_messageService']=_0x3dcb58,this[_0x558a6c(0x43c)]=_0x5e5197,this['_initEntityListener']());}[_0x25b3be(0x437)](){const _0x5d83b0=_0x25b3be;this[_0x5d83b0(0x415)](this[_0x5d83b0(0x363)][_0x5d83b0(0x247)]['subscribe'](_0x1b03e8=>{const _0x121891=_0x5d83b0,_0x277d7d=this[_0x121891(0x35e)]['docStateChange$'][_0x121891(0x22c)](_0x4fd51d=>{const _0x5ee878=_0x121891;if(_0x4fd51d==null)return;const {unitId:_0xcd695a,redoState:_0xc9e6d1,commandId:_0x548096}=_0x4fd51d;if(_0xcd695a!==_0x1b03e8['unitID'])return;const _0x382610={'id':_0x548096,'type':a[_0x5ee878(0x3d0)][_0x5ee878(0x2b0)],'params':{'unitId':_0xcd695a,'actions':_0xc9e6d1[_0x5ee878(0x35a)],'textRanges':null}};_0x1b03e8['onLocalMutation'](_0x382610);});if(_0x1b03e8[_0x121891(0x415)](_0x277d7d),_0x1b03e8 instanceof u[_0x121891(0x27a)]){const _0x3d9597={'onTransformIME':_0x1ecb99=>this[_0x121891(0x3e7)][_0x121891(0x266)](_0x1ecb99),'onTransformState':_0x4b66fe=>this['_docTransformStateCacheService'][_0x121891(0x3df)](_0x4b66fe),'onTransformSelections':_0x1e6a3f=>this[_0x121891(0x2ee)][_0x121891(0x3be)](_0x1e6a3f),'onSyncEditingCollabCursor':_0x940202=>this[_0x121891(0x21f)][_0x121891(0x26c)](_0x940202),'onTransformRemoteChangesetByIMECache':_0x21ec42=>this['_docTransformIMECacheService'][_0x121891(0x382)](_0x21ec42),'onTransformRemoteChangesetByStateCache':_0x18f169=>this[_0x121891(0x2ad)][_0x121891(0x382)](_0x18f169)};_0x1b03e8[_0x121891(0x3fa)](_0x3d9597);}}));}};Q=Xt([N(0x0,a[_0x25b3be(0x23f)](b[_0x25b3be(0x237)])),N(0x1,a[_0x25b3be(0x23f)](u[_0x25b3be(0x1ff)])),N(0x2,a[_0x25b3be(0x23f)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x25b3be(0x23f)](Z)),N(0x5,a[_0x25b3be(0x23f)](Ce)),N(0x6,T[_0x25b3be(0x347)]),N(0x7,a[_0x25b3be(0x23f)](a['LocaleService']))],Q);var Gt=Object[_0x25b3be(0x3d6)],Kt=(_0x45afff,_0x1b059b,_0x2bdd78,_0x65410b)=>{for(var _0x58e673=_0x65410b>0x1?void 0x0:_0x65410b?Gt(_0x1b059b,_0x2bdd78):_0x1b059b,_0x3d1d39=_0x45afff['length']-0x1,_0x1032c7;_0x3d1d39>=0x0;_0x3d1d39--)(_0x1032c7=_0x45afff[_0x3d1d39])&&(_0x58e673=_0x1032c7(_0x58e673)||_0x58e673);return _0x58e673;},_e=(_0x5d0449,_0x289243)=>(_0x4a87e1,_0x482dce)=>_0x289243(_0x4a87e1,_0x482dce,_0x5d0449);let ge=class extends a[_0x25b3be(0x42f)]{constructor(_0x11c75c,_0x2ed03a,_0x52e089){const _0x184e29=_0x25b3be;super(),h(this,_0x184e29(0x432),new Map()),h(this,_0x184e29(0x3d1),new Map()),h(this,_0x184e29(0x292),!0x1),(this['_configService']=_0x11c75c,this[_0x184e29(0x45c)]=_0x2ed03a,this['_revisionService']=_0x52e089);}[_0x25b3be(0x374)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x3b4fe3=_0x25b3be;this[_0x3b4fe3(0x292)]=!0x1;}get[_0x25b3be(0x24d)](){const _0x3610f6=_0x25b3be;return this[_0x3610f6(0x3d1)];}[_0x25b3be(0x318)](){const _0x201329=_0x25b3be;this[_0x201329(0x231)]()[_0x201329(0x3bf)](()=>super[_0x201329(0x318)]());}async['loadOfflineData'](_0x2780a8){const _0x3e2df8=_0x25b3be;return this['_disabled']?null:this['_localStorageService'][_0x3e2df8(0x22b)](u[_0x3e2df8(0x268)](_0x2780a8));}async[_0x25b3be(0x424)](_0x3a817a,_0x2fe355){const _0x110ad5=_0x25b3be;return!!this[_0x110ad5(0x45c)][_0x110ad5(0x215)](_0x3a817a,_0x2fe355);}[_0x25b3be(0x225)](_0xebb90a,_0x3593ef,_0x437f65,_0xe567f0){const _0x1373c9=_0x25b3be,_0x4a43e8=this[_0x1373c9(0x42a)]['getCurrentRevOfUnit'](_0xebb90a);this[_0x1373c9(0x432)]['set'](_0xebb90a,{'unitID':_0xebb90a,'type':_0x3593ef,'awaitingChangeset':_0x437f65,'mutations':_0xe567f0,'rev':_0x4a43e8}),this[_0x1373c9(0x3d1)][_0x1373c9(0x2c0)](_0xebb90a)||this[_0x1373c9(0x1fa)](_0xebb90a);}[_0x25b3be(0x1fa)](_0x2d91a7){const _0x52a3ea=_0x25b3be,_0x1d7a5f=this['_getSaveTimeout']();_0x1d7a5f===0x0?this['_saveCache'](_0x2d91a7):this[_0x52a3ea(0x3d1)][_0x52a3ea(0x320)](_0x2d91a7,setTimeout(()=>this['_saveCache'](_0x2d91a7),_0x1d7a5f));}[_0x25b3be(0x3f0)](){const _0x128247=_0x25b3be;var _0x987bd3;return(_0x987bd3=this[_0x128247(0x2a5)][_0x128247(0x389)](u[_0x128247(0x379)]))!=null?_0x987bd3:u[_0x128247(0x418)];}[_0x25b3be(0x257)](_0x363a30){const _0x289d6c=_0x25b3be,_0x2a0836=this[_0x289d6c(0x3d1)][_0x289d6c(0x33e)](_0x363a30);return _0x2a0836!==void 0x0&&window['clearTimeout'](_0x2a0836),this[_0x289d6c(0x45c)][_0x289d6c(0x215)](u['getLocalCacheKey'](_0x363a30),this['_cachedData']['get'](_0x363a30))[_0x289d6c(0x3bf)](()=>this['_saveTaskMap'][_0x289d6c(0x2a2)](_0x363a30));}async[_0x25b3be(0x231)](){const _0x4f61a2=_0x25b3be,_0x5d3f75=[];this[_0x4f61a2(0x3d1)][_0x4f61a2(0x45b)]((_0x466b6f,_0xd9d803)=>{const _0x17509b=_0x4f61a2;window[_0x17509b(0x3fc)](_0x466b6f),_0x5d3f75[_0x17509b(0x398)](this[_0x17509b(0x257)](_0xd9d803)['then'](()=>{const _0x461341=_0x17509b;this[_0x461341(0x3d1)][_0x461341(0x2a2)](_0xd9d803);}));}),await Promise[_0x4f61a2(0x353)](_0x5d3f75);}};ge=Kt([_e(0x0,a[_0x25b3be(0x241)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x25b3be(0x23f)](m[_0x25b3be(0x3a3)]))],ge);class je extends a[_0x25b3be(0x2ab)]{constructor(){const _0x151644=_0x25b3be;super(),h(this,_0x151644(0x317)),this[_0x151644(0x317)]=d[_0x151644(0x1f8)](window,'popstate')[_0x151644(0x3b0)](d[_0x151644(0x408)](this[_0x151644(0x420)]),d['shareReplay'](0x1),d[_0x151644(0x3f3)](void 0x0));}['setParam'](_0x5b39f2,_0x5159cf,_0x343594=!0x1){const _0x4563f7=_0x25b3be,_0x24e117=new URL(window[_0x4563f7(0x475)][_0x4563f7(0x36d)]);_0x24e117['searchParams']['set'](_0x5b39f2,_0x5159cf),_0x343594?window[_0x4563f7(0x422)][_0x4563f7(0x44d)]('','',_0x24e117[_0x4563f7(0x41e)]()):window[_0x4563f7(0x422)][_0x4563f7(0x43b)]('','',_0x24e117[_0x4563f7(0x41e)]());}[_0x25b3be(0x469)](_0x2e1e34,_0x1859e3=!0x1){const _0x114275=_0x25b3be,_0x3826fd=new URL(window[_0x114275(0x475)][_0x114275(0x36d)]);_0x3826fd['searchParams'][_0x114275(0x2a2)](_0x2e1e34),_0x1859e3?window[_0x114275(0x422)][_0x114275(0x44d)]('','',_0x3826fd[_0x114275(0x41e)]()):window[_0x114275(0x422)][_0x114275(0x43b)]('','',_0x3826fd[_0x114275(0x41e)]());}[_0x25b3be(0x2d0)](_0x5746b6){const _0x1d1dd6=_0x25b3be;var _0x34a361;return(_0x34a361=new URL(window[_0x1d1dd6(0x475)][_0x1d1dd6(0x36d)])['searchParams'][_0x1d1dd6(0x33e)](_0x5746b6))!=null?_0x34a361:void 0x0;}}var qt=Object[_0x25b3be(0x381)],zt=Object[_0x25b3be(0x3d6)],Jt=(_0x1643cc,_0x13b1ae,_0x2238ba)=>_0x13b1ae in _0x1643cc?qt(_0x1643cc,_0x13b1ae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2238ba}):_0x1643cc[_0x13b1ae]=_0x2238ba,Zt=(_0x5f28e9,_0x3fdc4b,_0xcc6ee5,_0x7fac41)=>{for(var _0x4ebd4b=_0x7fac41>0x1?void 0x0:_0x7fac41?zt(_0x3fdc4b,_0xcc6ee5):_0x3fdc4b,_0x5db226=_0x5f28e9['length']-0x1,_0x563aed;_0x5db226>=0x0;_0x5db226--)(_0x563aed=_0x5f28e9[_0x5db226])&&(_0x4ebd4b=_0x563aed(_0x4ebd4b)||_0x4ebd4b);return _0x4ebd4b;},he=(_0x46040f,_0x18be1a)=>(_0x35ee41,_0x525f04)=>_0x18be1a(_0x35ee41,_0x525f04,_0x46040f),Qt=(_0x435bad,_0x45dea9,_0x87f00c)=>Jt(_0x435bad,_0x45dea9+'',_0x87f00c);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x25b3be(0x2ae)]=class extends a[_0x25b3be(0x367)]{constructor(_0x4bdc18=Ue,_0x24b1e8,_0x110c18,_0x508810){const _0x2e9b9f=_0x25b3be;super(),this[_0x2e9b9f(0x212)]=_0x4bdc18,this['_renderManagerService']=_0x24b1e8,this[_0x2e9b9f(0x39a)]=_0x110c18,this[_0x2e9b9f(0x2a5)]=_0x508810;const {..._0x352870}=a[_0x2e9b9f(0x405)]({},Ue,this[_0x2e9b9f(0x212)]);this[_0x2e9b9f(0x2a5)]['setConfig']($t,_0x352870);}[_0x25b3be(0x30a)](){const _0x48dfaa=_0x25b3be;this[_0x48dfaa(0x298)](),this['_initDependencies']();}['onRendered'](){const _0x2ebf3e=_0x25b3be;this[_0x2ebf3e(0x472)]();}['_registerDependencies'](){const _0x36e009=_0x25b3be;var _0x51df2d;const _0x57ac78=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x36e009(0x42b)],{'useClass':G[_0x36e009(0x226)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x36e009(0x2bb)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this[_0x36e009(0x39a)],a[_0x36e009(0x3f6)](_0x57ac78,(_0x51df2d=this[_0x36e009(0x212)])==null?void 0x0:_0x51df2d[_0x36e009(0x30b)]));}['_registerRenderDependencies'](){const _0x17f435=_0x25b3be;this[_0x17f435(0x415)](this[_0x17f435(0x330)][_0x17f435(0x37e)](a[_0x17f435(0x270)][_0x17f435(0x34a)],[Ie])),this[_0x17f435(0x415)](this[_0x17f435(0x330)][_0x17f435(0x37e)](a[_0x17f435(0x270)][_0x17f435(0x254)],[ve]));}[_0x25b3be(0x457)](){const _0x1437c1=_0x25b3be;a[_0x1437c1(0x325)](this[_0x1437c1(0x39a)],[[x],[exports[_0x1437c1(0x2bb)]],[Q],[q],[exports[_0x1437c1(0x253)]]]);}},Qt(exports[_0x25b3be(0x2ae)],_0x25b3be(0x2ca),es),exports[_0x25b3be(0x2ae)]=Zt([a['DependentOn'](u[_0x25b3be(0x2e7)]),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x25b3be(0x2cc)])),he(0x3,a[_0x25b3be(0x241)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0x25b3be(0x3d6)],ss=(_0x33634a,_0x135157,_0x29d6aa,_0x2adcf4)=>{const _0x41ef60=_0x25b3be;for(var _0x2b1e98=_0x2adcf4>0x1?void 0x0:_0x2adcf4?ts(_0x135157,_0x29d6aa):_0x135157,_0x3cc385=_0x33634a[_0x41ef60(0x3f9)]-0x1,_0xd1019a;_0x3cc385>=0x0;_0x3cc385--)(_0xd1019a=_0x33634a[_0x3cc385])&&(_0x2b1e98=_0xd1019a(_0x2b1e98)||_0x2b1e98);return _0x2b1e98;},F=(_0x574b88,_0x243676)=>(_0x140c17,_0x13c2e9)=>_0x243676(_0x140c17,_0x13c2e9,_0x574b88);exports[_0x25b3be(0x2ea)]=class extends u[_0x25b3be(0x2cd)]{constructor(_0x3a4715,_0x55d098,_0x202da2,_0xac4a71,_0x342bf3){super(_0x3a4715,_0x55d098,_0x202da2,_0xac4a71,_0x342bf3);}async['createSocket'](_0x374396){const _0x3bd237=_0x25b3be,_0x369de2=await this[_0x3bd237(0x370)](),_0x8fd78=this[_0x3bd237(0x222)](_0x374396,_0x369de2);return this['_doCreateSocket'](_0x8fd78);}[_0x25b3be(0x222)](_0x94bc27,_0x1798c8){const _0xe2e06d=_0x25b3be,_0x5e3ca9=typeof window>'u'?new URL(_0x94bc27):new URL(_0x94bc27,window['location'][_0xe2e06d(0x339)]);_0x5e3ca9[_0xe2e06d(0x21d)][_0xe2e06d(0x320)](_0xe2e06d(0x2b5),_0x1798c8);const _0x3fbbe8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0xe2e06d(0x468)]);return _0x3fbbe8[_0xe2e06d(0x33e)]('runId')&&_0x5e3ca9['searchParams'][_0xe2e06d(0x320)](_0xe2e06d(0x447),_0x3fbbe8[_0xe2e06d(0x33e)](_0xe2e06d(0x447))),_0x5e3ca9[_0xe2e06d(0x41e)]();}async['_getSessionTicket'](){const _0x10124d=_0x25b3be;var _0x182ca1,_0x1acc7a,_0x10b4b2;const _0x22a833=this[_0x10124d(0x2a5)][_0x10124d(0x389)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x5d1992=(_0x182ca1=_0x22a833==null?void 0x0:_0x22a833['wsSessionTicketUrl'])!=null?_0x182ca1:u[_0x10124d(0x404)];return(_0x10b4b2=(_0x1acc7a=(await this['_httpService'][_0x10124d(0x33e)](_0x5d1992,{'headers':{'Content-Type':'application/json'}}))[_0x10124d(0x3b7)])==null?void 0x0:_0x1acc7a['ticket'])!=null?_0x10b4b2:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x25b3be(0x23f)](a[_0x25b3be(0x2cc)])),F(0x1,a[_0x25b3be(0x23f)](G[_0x25b3be(0x2e0)])),F(0x2,a['IConfigService']),F(0x3,a[_0x25b3be(0x33b)]),F(0x4,m[_0x25b3be(0x218)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x25b3be(0x302);class is extends a[_0x25b3be(0x42f)]{constructor(){const _0x49a33d=_0x25b3be;super(),h(this,'_id',a[_0x49a33d(0x2f3)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x49a33d(0x25e),new Map()),h(this,_0x49a33d(0x2f0),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x49a33d(0x23d),new Map()),this[_0x49a33d(0x3cf)]();}['dispose'](){const _0x13376f=_0x25b3be;super[_0x13376f(0x318)](),this[_0x13376f(0x387)]['forEach']((_0x315387,_0x5ef271)=>this[_0x13376f(0x316)](_0x5ef271)),this[_0x13376f(0x2f0)]&&window[_0x13376f(0x462)](this[_0x13376f(0x2f0)]);}[_0x25b3be(0x3f5)](_0x382de3){const _0x258bff=_0x25b3be;return this[_0x258bff(0x236)](_0x382de3)[_0x258bff(0x3b0)](d[_0x258bff(0x32d)]());}['editingUnit'](_0x4b48f9){const _0x28d886=_0x25b3be;this[_0x28d886(0x3ef)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x28d886(0x3ef)][_0x28d886(0x33a)](_0x4b48f9),this[_0x28d886(0x397)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x4b48f9],'isForwarded':!0x1});}[_0x25b3be(0x2b9)](_0x3d8349){const _0x3177ef=_0x25b3be;this[_0x3177ef(0x3ef)][_0x3177ef(0x2a2)](_0x3d8349),this[_0x3177ef(0x3ef)][_0x3177ef(0x2dc)]===0x0&&this[_0x3177ef(0x2f0)]&&window[_0x3177ef(0x462)](this['_heartbeatTimer']);}[_0x25b3be(0x3cf)](){const _0x21af14=_0x25b3be;this[_0x21af14(0x415)](a[_0x21af14(0x36e)](d['fromEvent'](window,'storage')[_0x21af14(0x22c)](_0x1229d5=>{const _0x590337=_0x21af14;if(_0x1229d5[_0x590337(0x29b)]!==Le||!_0x1229d5[_0x590337(0x333)])return;const _0x174af1=JSON[_0x590337(0x26e)](_0x1229d5[_0x590337(0x333)]);this[_0x590337(0x249)](_0x174af1);}))),window[_0x21af14(0x25f)](_0x21af14(0x1fe),()=>this[_0x21af14(0x397)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x21af14(0x3ea)](this[_0x21af14(0x3ef)])}));}['_handleEvent'](_0x247d1d){const _0x470780=_0x25b3be;switch(_0x247d1d[_0x470780(0x201)]){case 0x0:this[_0x470780(0x39c)](_0x247d1d);break;case 0x1:this['_handleLeaveEvent'](_0x247d1d);break;case 0x2:this[_0x470780(0x45e)](_0x247d1d);break;}}[_0x25b3be(0x39c)](_0x6cd0c2){const _0x396446=_0x25b3be,{unitIDs:_0x373434,memberID:_0x448af7,isForwarded:_0x4dcd3a}=_0x6cd0c2;_0x373434['forEach'](_0xf422f6=>{const _0x56c8a0=_0x4727;if(!_0x4dcd3a&&this[_0x56c8a0(0x25e)][_0x56c8a0(0x2c0)](_0xf422f6)&&this[_0x56c8a0(0x236)](_0xf422f6)[_0x56c8a0(0x227)](u[_0x56c8a0(0x3e3)]['OTHER_CLIENTS_EDITING']),!this[_0x56c8a0(0x25e)][_0x56c8a0(0x2c0)](_0xf422f6)||!this[_0x56c8a0(0x25e)][_0x56c8a0(0x33e)](_0xf422f6)[_0x56c8a0(0x2c0)](_0x448af7)){const _0x9cc214=this[_0x56c8a0(0x25e)][_0x56c8a0(0x33e)](_0xf422f6)||new Set();_0x9cc214[_0x56c8a0(0x33a)](_0x448af7),this[_0x56c8a0(0x25e)]['set'](_0xf422f6,_0x9cc214),this[_0x56c8a0(0x305)](_0x448af7);}}),_0x4dcd3a||this['_send']({'type':0x0,'memberID':this[_0x396446(0x430)],'unitIDs':[...this[_0x396446(0x3ef)]],'isForwarded':!0x0});}[_0x25b3be(0x305)](_0x479165){const _0x279a18=_0x25b3be;this[_0x279a18(0x316)](_0x479165);const _0x3b6eb9=window[_0x279a18(0x2aa)](()=>{const _0x3bb97e=_0x279a18;this[_0x3bb97e(0x25e)][_0x3bb97e(0x45b)](_0x4af2f1=>{const _0x12967f=_0x3bb97e;_0x4af2f1[_0x12967f(0x2a2)](_0x479165);});},Me*0x2);this[_0x279a18(0x387)][_0x279a18(0x320)](_0x479165,_0x3b6eb9);}['_removeClearOtherTimer'](_0x3af330){const _0x5093ac=_0x25b3be;if(this[_0x5093ac(0x387)]['has'](_0x3af330)){const _0x3f288b=this[_0x5093ac(0x387)][_0x5093ac(0x33e)](_0x3af330);_0x3f288b&&window['clearTimeout'](_0x3f288b),this[_0x5093ac(0x387)][_0x5093ac(0x320)](_0x3af330,null);}}[_0x25b3be(0x3c7)](_0x228601){const _0x555913=_0x25b3be,{memberID:_0x2447f9,unitIDs:_0x3db3d8}=_0x228601;_0x3db3d8[_0x555913(0x45b)](_0x255f0d=>{const _0x3266b0=_0x555913;var _0x4cac38;const _0x563820=this['_unitOnClients'][_0x3266b0(0x33e)](_0x255f0d);_0x563820&&(_0x563820[_0x3266b0(0x2a2)](_0x2447f9),(_0x4cac38=this[_0x3266b0(0x236)](_0x255f0d))==null||_0x4cac38['next'](_0x563820['size']===0x0?u[_0x3266b0(0x3e3)][_0x3266b0(0x3cd)]:u[_0x3266b0(0x3e3)][_0x3266b0(0x345)]));}),this[_0x555913(0x316)](_0x2447f9);}[_0x25b3be(0x45e)](_0x2cab34){const _0x4097eb=_0x25b3be;this['_scheduleClearOtherTimer'](_0x2cab34[_0x4097eb(0x26f)]);}[_0x25b3be(0x397)](_0x6b194e){const _0x5460df=_0x25b3be;localStorage[_0x5460df(0x215)](Le,JSON['stringify'](_0x6b194e));}[_0x25b3be(0x263)](){const _0x37450b=_0x25b3be;this[_0x37450b(0x2f0)]=window['setInterval'](()=>{const _0x7bb665=_0x37450b;this[_0x7bb665(0x397)]({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x1da3e8){const _0x1f00ce=_0x25b3be;return this['_unitStatus'][_0x1f00ce(0x2c0)](_0x1da3e8)||this['_unitStatus'][_0x1f00ce(0x320)](_0x1da3e8,new d[(_0x1f00ce(0x438))](u[_0x1f00ce(0x3e3)][_0x1f00ce(0x3cd)])),this[_0x1f00ce(0x23d)][_0x1f00ce(0x33e)](_0x1da3e8);}}var Be=(_0x579842=>(_0x579842[_0x579842['UNDEFINED']=0x0]=_0x25b3be(0x3b6),_0x579842[_0x579842['OK']=0x1]='OK',_0x579842[_0x579842[_0x25b3be(0x22d)]=0x2]=_0x25b3be(0x22d),_0x579842[_0x579842[_0x25b3be(0x246)]=0x3]=_0x25b3be(0x246),_0x579842[_0x579842[_0x25b3be(0x442)]=0x4]='NOT_FOUND',_0x579842[_0x579842[_0x25b3be(0x3c0)]=0x5]=_0x25b3be(0x3c0),_0x579842[_0x579842[_0x25b3be(0x2db)]=0x6]=_0x25b3be(0x2db),_0x579842[_0x579842[_0x25b3be(0x3af)]=0x7]=_0x25b3be(0x3af),_0x579842[_0x579842[_0x25b3be(0x40a)]=0x8]=_0x25b3be(0x40a),_0x579842[_0x579842[_0x25b3be(0x445)]=0x9]=_0x25b3be(0x445),_0x579842[_0x579842[_0x25b3be(0x3f2)]=0xa]=_0x25b3be(0x3f2),_0x579842[_0x579842[_0x25b3be(0x474)]=0x1389]=_0x25b3be(0x474),_0x579842[_0x579842[_0x25b3be(0x23b)]=0x1771]=_0x25b3be(0x23b),_0x579842[_0x579842['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x25b3be(0x3dd),_0x579842[_0x579842[_0x25b3be(0x283)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x579842[_0x579842[_0x25b3be(0x391)]=0x1b59]=_0x25b3be(0x391),_0x579842[_0x579842['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x25b3be(0x456),_0x579842[_0x579842[_0x25b3be(0x2a4)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x579842[_0x579842[_0x25b3be(0x278)]=0x1b5c]=_0x25b3be(0x278),_0x579842[_0x579842[_0x25b3be(0x3a5)]=0x1b5d]=_0x25b3be(0x3a5),_0x579842[_0x579842[_0x25b3be(0x460)]=0x1f41]=_0x25b3be(0x460),_0x579842[_0x579842[_0x25b3be(0x2d2)]=0x2329]=_0x25b3be(0x2d2),_0x579842[_0x579842['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x25b3be(0x3a7),_0x579842[_0x579842[_0x25b3be(0x3ec)]=0x232b]=_0x25b3be(0x3ec),_0x579842[_0x579842[_0x25b3be(0x2d7)]=0x232c]=_0x25b3be(0x2d7),_0x579842[_0x579842[_0x25b3be(0x30e)]=0x232d]=_0x25b3be(0x30e),_0x579842[_0x579842[_0x25b3be(0x2e6)]=0x2711]=_0x25b3be(0x2e6),_0x579842[_0x579842['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x25b3be(0x45f),_0x579842[_0x579842[_0x25b3be(0x450)]=0x2713]=_0x25b3be(0x450),_0x579842[_0x579842['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x25b3be(0x27c),_0x579842[_0x579842[_0x25b3be(0x451)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x579842[_0x579842[_0x25b3be(0x21c)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x579842[_0x579842[_0x25b3be(0x2c6)]=0x271c]=_0x25b3be(0x2c6),_0x579842[_0x579842[_0x25b3be(0x299)]=0x271d]=_0x25b3be(0x299),_0x579842[_0x579842[_0x25b3be(0x2d9)]=0x271e]=_0x25b3be(0x2d9),_0x579842[_0x579842[_0x25b3be(0x2b4)]=0x271f]=_0x25b3be(0x2b4),_0x579842[_0x579842[_0x25b3be(0x346)]=0x2af9]=_0x25b3be(0x346),_0x579842[_0x579842[_0x25b3be(0x479)]=0x2ee1]=_0x25b3be(0x479),_0x579842[_0x579842[_0x25b3be(0x357)]=0x2ee2]='INVALID_INVITE_CODE',_0x579842[_0x579842[_0x25b3be(0x210)]=0x2ee3]=_0x25b3be(0x210),_0x579842[_0x579842['USER_NOT_INVITED_CODE']=0x2ee4]=_0x25b3be(0x400),_0x579842[_0x579842[_0x25b3be(0x40e)]=0x2ee5]=_0x25b3be(0x40e),_0x579842[_0x579842[_0x25b3be(0x300)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x579842[_0x579842[_0x25b3be(0x22e)]=0x32ca]=_0x25b3be(0x22e),_0x579842[_0x579842['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x25b3be(0x31e),_0x579842[_0x579842[_0x25b3be(0x3b2)]=-0x1]=_0x25b3be(0x3b2),_0x579842))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x293800,_0x2e63dc,_0xdcc23,_0x58f33f)=>{const _0x6945d9=_0x25b3be;for(var _0x36baab=_0x58f33f>0x1?void 0x0:_0x58f33f?ns(_0x2e63dc,_0xdcc23):_0x2e63dc,_0x3e4baa=_0x293800[_0x6945d9(0x3f9)]-0x1,_0x3143;_0x3e4baa>=0x0;_0x3e4baa--)(_0x3143=_0x293800[_0x3e4baa])&&(_0x36baab=_0x3143(_0x36baab)||_0x36baab);return _0x36baab;},ue=(_0x26d876,_0x367a33)=>(_0x482bd6,_0x4ccccf)=>_0x367a33(_0x482bd6,_0x4ccccf,_0x26d876);exports['RemoteUniscriptService']=class extends a[_0x25b3be(0x42f)]{constructor(_0x3e7da9,_0x482e46,_0x30d33c){const _0xf42649=_0x25b3be;super(),this[_0xf42649(0x40b)]=_0x3e7da9,this[_0xf42649(0x365)]=_0x482e46,this['_configService']=_0x30d33c;}async[_0x25b3be(0x27d)](_0x18b8a1,_0x3b4c53,_0x298783,..._0xa4ac19){const _0x1b5d74=_0x25b3be;var _0x28a43b,_0xa88700,_0xc51297,_0x763f3a;const _0x2b3614=this[_0x1b5d74(0x40b)][_0x1b5d74(0x380)]();if(!_0x2b3614)throw new Error(_0x1b5d74(0x431));const _0x5c6108=((_0x28a43b=this[_0x1b5d74(0x2a5)][_0x1b5d74(0x389)](u[_0x1b5d74(0x47a)]))!=null?_0x28a43b:u[_0x1b5d74(0x42c)])+'/'+_0x18b8a1+'/run/'+_0x3b4c53,_0x230e47=new URL(window['location'][_0x1b5d74(0x36d)]),_0x3e82ea={'scriptId':_0x18b8a1,'runId':(_0xa88700=_0x230e47[_0x1b5d74(0x21d)][_0x1b5d74(0x33e)](_0x1b5d74(0x447)))!=null?_0xa88700:'','function':_0x3b4c53,'unitId':_0x2b3614[_0x1b5d74(0x3bc)](),'argsOfFunction':JSON[_0x1b5d74(0x3eb)](_0xa4ac19),'invokeId':(_0xc51297=_0x298783[_0x1b5d74(0x29f)])!=null?_0xc51297:'','executionId':(_0x763f3a=_0x298783[_0x1b5d74(0x33d)])!=null?_0x763f3a:''};try{const _0x269580=await this[_0x1b5d74(0x365)][_0x1b5d74(0x32b)](_0x5c6108,{'body':_0x3e82ea});return _0x269580['body'][_0x1b5d74(0x267)]&&_0x269580[_0x1b5d74(0x3b7)][_0x1b5d74(0x267)]['code']!==Be['OK']?_0x1b5d74(0x248):_0x269580[_0x1b5d74(0x3b7)][_0x1b5d74(0x41f)];}catch{return'Failed';}}},exports[_0x25b3be(0x3ce)]=rs([ue(0x0,a[_0x25b3be(0x3a2)]),ue(0x1,a[_0x25b3be(0x23f)](G[_0x25b3be(0x2e0)])),ue(0x2,a[_0x25b3be(0x241)])],exports[_0x25b3be(0x3ce)]),exports[_0x25b3be(0x260)]=xe,exports[_0x25b3be(0x37c)]=be,exports['SheetCollabCursorShape']=Pe,exports[_0x25b3be(0x2d1)]=is,exports[_0x25b3be(0x3ab)]=je;
@@ -1 +1 @@
1
- 'use strict';function _0x58bb(){const _0x370fd0=['426362DgiNAY','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','9RWzojo','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1457853BqHJKs','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','exports','Syncing\x20server\x20data...','Authentication\x20Error','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','23257760xzlmxY','5954255zzOKrY','232oMldDH','1068608yjruOe','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Click\x20to\x20Reconnect','5LsUgKe','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Edit\x20conflicts','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.','1663290NVERvN','Local\x20file','305011DItYqm','Collaboration\x20Conflict'];_0x58bb=function(){return _0x370fd0;};return _0x58bb();}const _0xbb893c=_0x3e59;(function(_0x51fffe,_0x585a13){const _0xca7be4=_0x3e59,_0x5d84b9=_0x51fffe();while(!![]){try{const _0x3e0b69=-parseInt(_0xca7be4(0x158))/0x1*(parseInt(_0xca7be4(0x148))/0x2)+-parseInt(_0xca7be4(0x14c))/0x3+parseInt(_0xca7be4(0x155))/0x4+-parseInt(_0xca7be4(0x153))/0x5+-parseInt(_0xca7be4(0x144))/0x6+-parseInt(_0xca7be4(0x146))/0x7*(-parseInt(_0xca7be4(0x154))/0x8)+parseInt(_0xca7be4(0x14a))/0x9*(parseInt(_0xca7be4(0x152))/0xa);if(_0x3e0b69===_0x585a13)break;else _0x5d84b9['push'](_0x5d84b9['shift']());}catch(_0x4a8007){_0x5d84b9['push'](_0x5d84b9['shift']());}}}(_0x58bb,0xcc40f));function _0x3e59(_0x1ca4b7,_0x5c16b5){const _0x58bbd5=_0x58bb();return _0x3e59=function(_0x3e59e8,_0x1c9264){_0x3e59e8=_0x3e59e8-0x144;let _0x5eddf0=_0x58bbd5[_0x3e59e8];return _0x5eddf0;},_0x3e59(_0x1ca4b7,_0x5c16b5);}const e={'collab-client':{'tooltip':{'reconnect':_0xbb893c(0x157)}},'collabStatus':{'fetchMiss':_0xbb893c(0x14f),'conflict':_0xbb893c(0x15a),'notCollab':_0xbb893c(0x145),'synced':'Synced','syncing':'Syncing...','offline':_0xbb893c(0x14b)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0xbb893c(0x159),'room-full':_0xbb893c(0x15b),'collaboration-timeout':_0xbb893c(0x14d)},'conflict':{'title':_0xbb893c(0x147),'content':'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.'},'permission':{'title':_0xbb893c(0x150),'content':_0xbb893c(0x15c)},'collaboration':{'single-unit':{'warning':_0xbb893c(0x156)},'closeRoom':_0xbb893c(0x149)},'auth':{'needGotoLoginAlert':_0xbb893c(0x151)}};module[_0xbb893c(0x14e)]=e;
1
+ 'use strict';const _0x183bd0=_0x17b2;function _0x21de(){const _0x2f2ea1=['Syncing...','Collaboration\x20Conflict','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','2450SsvjkS','22168xDfSjN','1239464NGrpSA','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','299330ObYHFd','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Connection\x20failed,\x20please\x20check\x20your\x20network.','3262tktdyp','2097214fWnLuf','21447jizAaz','18prTDyQ','Syncing\x20server\x20data...','4XAntqs','208323SXJlUa','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'];_0x21de=function(){return _0x2f2ea1;};return _0x21de();}(function(_0x16a46,_0x26f4e2){const _0x302109=_0x17b2,_0x593cfd=_0x16a46();while(!![]){try{const _0xfc9fcb=-parseInt(_0x302109(0x19f))/0x1+-parseInt(_0x302109(0x196))/0x2+parseInt(_0x302109(0x1a5))/0x3*(-parseInt(_0x302109(0x1a4))/0x4)+-parseInt(_0x302109(0x19a))/0x5*(parseInt(_0x302109(0x1a2))/0x6)+-parseInt(_0x302109(0x1a0))/0x7+parseInt(_0x302109(0x197))/0x8+parseInt(_0x302109(0x1a1))/0x9*(parseInt(_0x302109(0x195))/0xa);if(_0xfc9fcb===_0x26f4e2)break;else _0x593cfd['push'](_0x593cfd['shift']());}catch(_0x372b6a){_0x593cfd['push'](_0x593cfd['shift']());}}}(_0x21de,0x2aea5));function _0x17b2(_0x26e3aa,_0x581842){const _0x21de3f=_0x21de();return _0x17b2=function(_0x17b237,_0x332b03){_0x17b237=_0x17b237-0x193;let _0x332105=_0x21de3f[_0x17b237];return _0x332105;},_0x17b2(_0x26e3aa,_0x581842);}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x183bd0(0x1a3),'conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':'Synced','syncing':_0x183bd0(0x1a7),'offline':_0x183bd0(0x194)},'session':{'connection-failed':_0x183bd0(0x19e),'will-retry':_0x183bd0(0x19c),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x183bd0(0x1a6)},'conflict':{'title':_0x183bd0(0x193),'content':'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.'},'permission':{'title':'Authentication\x20Error','content':_0x183bd0(0x199)},'collaboration':{'single-unit':{'warning':_0x183bd0(0x19b)},'closeRoom':_0x183bd0(0x198)},'auth':{'needGotoLoginAlert':_0x183bd0(0x19d)}};module['exports']=e;