@univerjs-pro/collaboration-client-ui 0.5.3 → 0.5.4-experimental.20250114-7c09c35
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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/types/facade/f-univer.d.ts +6 -2
- package/lib/types/services/remote-uniscript/remote-uniscript.service.d.ts +14 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +21 -20
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5103c7=_0x45df;(function(_0x38fb26,_0x5f1a75){const _0x139e49=_0x45df,_0x382965=_0x38fb26();while(!![]){try{const _0x4ac81b=-parseInt(_0x139e49(0x1d4))/0x1+-parseInt(_0x139e49(0x1dc))/0x2*(parseInt(_0x139e49(0x1e0))/0x3)+parseInt(_0x139e49(0x1de))/0x4+-parseInt(_0x139e49(0x1dd))/0x5*(-parseInt(_0x139e49(0x1d6))/0x6)+parseInt(_0x139e49(0x1d9))/0x7+parseInt(_0x139e49(0x1d1))/0x8*(-parseInt(_0x139e49(0x1df))/0x9)+parseInt(_0x139e49(0x1d7))/0xa*(parseInt(_0x139e49(0x1db))/0xb);if(_0x4ac81b===_0x5f1a75)break;else _0x382965['push'](_0x382965['shift']());}catch(_0x4f3091){_0x382965['push'](_0x382965['shift']());}}}(_0x4050,0x37047));function _0x4050(){const _0x50ca1e=['FUniver','286208EgUWWU','extend','30Nlcfmf','7230kNtojq','@univerjs/core','674807qALtWj','@univerjs-pro/collaboration-client-ui','10274UVZKKR','2UjfuVc','57295QYvwCt','206376ZpVHtr','72igHhRE','1028535imEiny','_injector','26168iUPUSv','runOnServer'];_0x4050=function(){return _0x50ca1e;};return _0x4050();}function _0x45df(_0x471dee,_0x187928){const _0x405043=_0x4050();return _0x45df=function(_0x45df7e,_0x504af7){_0x45df7e=_0x45df7e-0x1d1;let _0xe3a25c=_0x405043[_0x45df7e];return _0xe3a25c;},_0x45df(_0x471dee,_0x187928);}const t=require(_0x5103c7(0x1da)),e=require(_0x5103c7(0x1d8));class c extends e[_0x5103c7(0x1d3)]{['runOnServer'](_0x3900c6,_0x1cc7be,..._0x13c507){const _0x504fad=_0x5103c7;return this[_0x504fad(0x1e1)]['get'](t['RemoteUniscriptService'])[_0x504fad(0x1d2)](_0x3900c6,_0x1cc7be,{},..._0x13c507);}}e['FUniver'][_0x5103c7(0x1d5)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x500283=_0x433a;(function(_0x23cc95,_0x3bd006){const _0x5626d9=_0x433a,_0x52b624=_0x23cc95();while(!![]){try{const _0x355e9d=parseInt(_0x5626d9(0x276))/0x1*(parseInt(_0x5626d9(0x1c4))/0x2)+-parseInt(_0x5626d9(0x320))/0x3*(-parseInt(_0x5626d9(0x18f))/0x4)+parseInt(_0x5626d9(0x31b))/0x5+-parseInt(_0x5626d9(0xf8))/0x6+parseInt(_0x5626d9(0x115))/0x7*(parseInt(_0x5626d9(0x16a))/0x8)+parseInt(_0x5626d9(0x2ee))/0x9+parseInt(_0x5626d9(0x281))/0xa*(-parseInt(_0x5626d9(0xbf))/0xb);if(_0x355e9d===_0x3bd006)break;else _0x52b624['push'](_0x52b624['shift']());}catch(_0x222849){_0x52b624['push'](_0x52b624['shift']());}}}(_0x3a7b,0x44926));var Ze=Object[_0x500283(0xcc)],Qe=(_0xde9a9d,_0x12abd5,_0x3c5047)=>_0x12abd5 in _0xde9a9d?Ze(_0xde9a9d,_0x12abd5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c5047}):_0xde9a9d[_0x12abd5]=_0x3c5047,_=(_0x4c2d5b,_0x518478,_0x4c8490)=>Qe(_0x4c2d5b,typeof _0x518478!='symbol'?_0x518478+'':_0x518478,_0x4c8490);Object['defineProperty'](exports,Symbol[_0x500283(0x2d0)],{'value':'Module'});const u=require(_0x500283(0xbe)),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),fe=require('@univerjs/network'),b=require(_0x500283(0xdf)),et=require('@univerjs/drawing'),S=require('rxjs'),X=require(_0x500283(0x229)),g=require(_0x500283(0x31a)),Te=require(_0x500283(0x2f1)),I=require(_0x500283(0x1fb)),$=require(_0x500283(0x245)),q=require('@univerjs/sheets-ui'),O=require(_0x500283(0x265)),w=require(_0x500283(0x293)),M=require('@univerjs/design'),tt=require('@univerjs/rpc');var st=Object[_0x500283(0xcc)],nt=Object[_0x500283(0x324)],it=(_0x47c545,_0x492fa2,_0x5d2e35,_0x10dc7b)=>{const _0x14e3c4=_0x500283;for(var _0x1ce8f=_0x10dc7b>0x1?void 0x0:_0x10dc7b?nt(_0x492fa2,_0x5d2e35):_0x492fa2,_0x36f93f=_0x47c545[_0x14e3c4(0x1f4)]-0x1,_0x2d3614;_0x36f93f>=0x0;_0x36f93f--)(_0x2d3614=_0x47c545[_0x36f93f])&&(_0x1ce8f=(_0x10dc7b?_0x2d3614(_0x492fa2,_0x5d2e35,_0x1ce8f):_0x2d3614(_0x1ce8f))||_0x1ce8f);return _0x10dc7b&&_0x1ce8f&&st(_0x492fa2,_0x5d2e35,_0x1ce8f),_0x1ce8f;},Oe=(_0x1745e1,_0x4faabd)=>(_0x31ac97,_0xed9e6b)=>_0x4faabd(_0x31ac97,_0xed9e6b,_0x1745e1);let Se=class extends a['RxDisposable']{constructor(_0x4c29b8,_0x52fd26){const _0x10869c=_0x500283;super(),this[_0x10869c(0x2bd)]=_0x4c29b8,this[_0x10869c(0x206)]=_0x52fd26,this[_0x10869c(0x29a)]();}[_0x500283(0x29a)](){const _0x218ab0=_0x500283,_0x534fec=this;this['disposeWithMe'](this[_0x218ab0(0x2bd)][_0x218ab0(0x2dc)]({'onBeforePasteImage':async _0x3a978e=>{const _0x19446c=_0x218ab0,_0x60545d=await _0x534fec['_imageIoService'][_0x19446c(0x2b2)](_0x3a978e);return _0x60545d?{'source':_0x60545d['source'],'imageSourceType':_0x60545d[_0x19446c(0x172)]}:null;}}));}};Se=it([Oe(0x0,b['IDocClipboardService']),Oe(0x1,et['IImageIoService'])],Se);function _0x3a7b(){const _0x51d71d=['_labelPosition','NOT_COLLAB','_revisionService','SetWorksheetActivateCommand','startColumn','MoveRangeCommandId','replaceDocRanges','transformMutation','exhaustSavingTask','OFFLINE','getOffsetConfig','_docTransformStateCacheService','_renderManagerService','ENSURE_SNAPSHOT_EXECUTION','permission.content','RichTextEditingMutation','Shape','IMessageService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','onPointerMove$','svg','deepClone','LICENSE_MAX_UNITS_EXCEEDED','collab-text-anchor-','CollaborationEvent','_collabCursorController','all','getCollabCursors$','_cursorShapes','unshift','Rect','_localeService','getMemberID','focused$','requireSession','updateOfflineData','attrs','throttleTime','then','getUnitStatus$','enableLocalCache','collaboration.closeRoom','JOIN_ROOM_FAILED','Inject','VIEW_MAIN','ONLINE','_messageService','getUniverSheetInstance','281194JkRXiQ','onPointerEnter$','reconnect','xlink:href','RegularPolygon','with','concat','handleIRemoveRow','_docSkeleton','_dataLoaderService','USERS_LEAVE','ColorKit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getActiveRange','_render','onMouseMove','getParam','NodePositionConvertToRectRange','redoState','UNDEFINED','_anchor','map','_updateCollabCursors','complete','from','_cachedData','selections','univer-flex\x20univer-items-center','_colorAssignService','combineLatest','SheetSkeletonManagerService','memberID','includes','SOCKET_FAILED_RETRY','roomMembers','location','_docStateChangeManagerService','FETCH_MISS','_initEntityListener','transformIMECache','CollaborationUIEventService','_disabled','undoState','useObservable','backgroundColor','_startSheetCollabCursor','BuiltInUIPart','_unitStatus','length','CONFLICT','next','evenodd','getSheetBySheetId','0\x200\x2017\x2016','UPDATE_CURSOR','@univerjs/sheets','_shapes','LICENSE_IMPORT_SIZE_EXCEEDED','addObject','dispose','contains','1em','OnLineSingle','_config','_heartbeatTimer','_handleEvent','_imageIoService','stringify','_removeCollabCursors','SUBMIT_CHANGESET_TIMEOUT','_beforeCloseService','_ensureSubject','_urlService','CollaborationUIEventId','_draw','CommandType','getActiveSheet','removeParam','SetSelectionsOperation','TRANSFORM_CHANGE_OBSERVABLE_TYPE','InsertRowCommandId','_initResize','transformMutationsWithChangeset','getDocRanges','LICENSE_DISTRO_REJECTED','registerRefRange','INVALID_ARGUMENT','set','SYNCED','eventID','RxDisposable','_lastPointer','react.element','onTransformChange$','APPLY_REJECT','_roomMembers$','univer-online','color','startRow','UniverCollaborationClientUIPlugin','collabStatus.syncing','@univerjs/docs','_context','clearTimeout','send','_scheduleHeartbeat','range','YUUMI_SUBSCRIPTION_NOT_FOUND','_refRangeService','icon','RefRangeService','_saveTaskMap','[CollaborationDataLoaderController]','_drawTextRange','rgba(255,\x20255,\x20255,\x200.01)','ISocketService','INTERNAL_ERROR','_getSaveTimeout','RemoteUniscriptService','dispose$','SHEET_VIEWPORT_KEY','YUUMI_UNABLE_LOAD_URL','fillStyle','drawWith','offline','getSkeleton','runId','_scheduleClearOtherTimer','idSuffix','rxjs/operators','YUUMI_RATE_OVER_LIMIT','getAncestorScale','LICENSE_EXPORT_SIZE_EXCEEDED','_getScale','for','_entityInit$','_getSheetObject','handleDeleteRangeMoveUp','uni.network.url-service','editingUnit','deserializeRangeWithSheet','ThemeService','_handleHover','APPLY_NON_SEQUENTIAL_REVISION','red300','_id','ref','addHandlerCallback','getCoordByCell','ILocalStorageService','getOwnPropertySymbols','sheetId','exports','flatMap','unitId','unitID','getUndoRedoMutationParamsCache','Subject','_startDocCollabCursor','registerRenderModule','registerComponent','react','handleDeleteRangeMoveLeft','getRenderById','ICommandService','runRefRangeMutations','_backgroundColor','_drawRectRange','CollaborationDataLoaderController','unload','font','_document','IConfigService','_collaborationUIEventService','_color','subscribeEvent','filter','event$','1dTyCYm','get','SOCKET_FAILED','setAlpha','_clearOtherTimers','_localCacheService','debug','beginPath','UNIVER_SHEET','moveTo','_assignedColors','5678330GepMAE','findNodePositionByCharIndex','clearInterval','docStateChange$','collabStatus.synced','Unknown\x20user','onStarting','max','fillText','defIds','colorChannel1','react.fragment','UniverInstanceType','BehaviorSubject','sessionStatus$','_registerDependencies','UniverIcon','LocaleService','@univerjs/ui','doc.mutation.rich-text-editing','div','_scene','DocIMEInputManagerService','_getMergeRange','fromEventSubject','_init','_collabCursorState$','SNAPSHOT_INVALID_SNAPSHOT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','fillRule','NOT_FOUND','params','lineTo','collab-text-range-','setConfig','actions','_transformPreviousActiveRange','_cursorInfo$','_docSyncEditingCollabCursorService','on-line-single_clip0_910_349','transformRemoteChangeset','delete','getItem','override','call','code','post','push','ALREADY_EXISTS','saveImage','transform','className','ILogService','urlChange$','jsx','useDependency','ReactCurrentOwner','toDisposable','unsubscribe','AWAITING','_docClipboardService','current','_removeClearOtherTimer','_transformHistoryAndStateStack','debounce','useCallback','bottom','setItem','EffectRefRangId','isActive','pushState','toRgbString','connectInjector','_online','_session','disposeUnit','_instanceService','ILocalCacheService','useRef','toStringTag','jiqing500','_getAnchorBounding','LOCAL_CACHE_INTERVAL_KEY','M0\x200H16V16H0z','OTHER_CLIENT_EDITING','APPLY_REVISION_CONFILICT','propertyIsEnumerable','_name','_syncEditingCollabCursorService','syncEditingCollabCursor','CollaborationStatus','addClipboardHook','assign','session.will-retry','_toggleOffline','_onCursorDelete','collaboration-client.offline-data-not-saved','DocSkeletonManagerService','body','onlineStatusIcon','searchParams','path','generateRandomId','TEXT','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','#fff','isTransformMutationsWithChangesetSuccess','textRanges','IRemoteInstanceService','4298301mAguUH','forwardRef','...','@univerjs/engine-formula','subscribe','CollaborationController','handleInsertRangeMoveDown','_initEvent','_transformUndoRedoStack','MemberService','skeleton','_updateLocalCursor','handleInsertRangeMoveRight','_entities','transformStateCache','save','_httpService','whenReady','setUndoRedoMutationParamsCache','getCurrent','random','createIdentifier','off-line-single','hide','Workbook','UniverCollaborationClientPlugin','_eventUnsubscribe','collaboration-client-ui.config','onCommandExecuted','_scheduleSaving','m2Prime','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','Injector','getFocusedUnit','none','PENDING','DataLoaderService','RevisionService','toString','_drawAnchor','forEach','add','size','setShapeProps','@univerjs-pro/collaboration','413730nQoAEd','_updateURLWithCurrentState','sheetID','assignAColorForMemberID','_initStatusComponent','27021aJXjzK','online','getVpScrollXYInfoByPosToVp','indexOf','getOwnPropertyDescriptor','Disposable','disposeWithMe','COMPLETION_FINISHED','COLORS','column','_collaborationController','LOCAL_CACHE_INTERVAL','TOO_MANY_REQUESTS','#FFF','APPLY_DUPLICATED','Tools','find','_injector','m1Prime','@univerjs-pro/collaboration-client','11RjhdKu','handleInsertRow','_commandService','HTTPService','UNAUTHENTICATED','_memberService','tag','DeleteRangeMoveUpCommandId','DesktopCollaborationStatusDisplayController','getConfig','defaultProps','subunit','name','defineProperty','currentColor','debounceTime','translate(.97)','prototype','UNRECOGNIZED','_unitOnClients','SetTextSelectionsOperation','createElement','hovered','newValue','MessageType','SNAPSHOT_HAS_BEEN_REMOVED','displayName','getRangePointData','replace','InsertColCommandId','collabStatus.conflict','values','@univerjs/docs-ui','_textBubble','currentTheme$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','RECT','_initStatusListener','switchMap','_univerInstanceService','unit','setTimeout','loadOfflineData','setParam','data','serializeRangeWithSheet','_cursor','object','popstate','asObservable','round','use','onPointerLeave$','getRelativeToViewportCoord','number','pipe','has','2077722HJndHM','_collabSessionService','merge','transformByState','_hover','_registerRenderDependencies','distinctUntilChanged','_refreshCollabCursors','mergeOverrideWithDependencies','_configService','replaceState','ITransformService','addEventListener','history','_hovered','measureText','href','RemoveRowCommandId','univer-online-status-icon','WebURLService','mapTo','jsxs','some','IUniverInstanceService','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','_send','getCurrentRevOfUnit','collab-client.tooltip.reconnect','disableLocalCache','1211kFHhGm','SheetsSelectionsService','fromEvent','SetDocZoomRatioOperation','makeDirty','height','min','roomMembers$','createInstance','_docSkeletonManagerService','Error','getMember','Warning','pluginName','_sheetSkeletonManagerService','init','DocSelectionManagerService','_status$','_handleJoinEvent','SheetCollabCursorShape','restore','fill','session.collaboration-timeout','_selfUnitIDs','getCellPositionByOffset','session.connection-failed','onlineStatus','show','_updateSubUnitFromURLParams','setActiveRange','takeUntil','_saveCache','error','Optional','_colorIndex','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','width','FromArray','getColor','text','isArray','_handleLeaveEvent','IBeforeCloseService','_initDependencies','InsertRangeMoveRightCommandId','DisposableCollection','_docTransformIMECacheService','extend','_themeService','WebBrowserSingleActiveUnitService','clipPath','defs','_range','CONNECTOR_DATA_TOO_LARGE','_initCommandExecutedListener','_transformService','CHANGESET_REVISION_CONFILICT','labelPosition','getSheetId','YUUMI_URL_COL_OUT_OF_RANGE','_anchorDot','getCurrentUnitForType','isEditing','INotificationService','cursorInfo','isTransformMutationFailure','key','getUnitId','_logService','cursorInfo$','IRenderManagerService','CollaborationSessionService','hasOwnProperty','mutations','OTHER_CLIENTS_EDITING','ranges','TEXT_RANGE_LAYER_INDEX','NO_OTHER_CLIENTS_EDITING','storage','black','_docTransformSelectionsService','_toggleOnline','MUTATION','executeCommand','url(#off-line-single_clip0_910_343)','17432vvflbC','currentSkeleton$','UNIVER_DOC','_handleHeartbeatEvent','split','_notificationService','collab-rect-range-','getViewport','imageSourceType','purple300','_onCursorUpdate','type','APPLY_PERMISSION_DENIED','UnitStatus','_localStorageService','_cursors','onLocalMutation','_setupSubUnitSync','CLOSE_ROOM','subUnitId','trim','getTypeOfUnitDisposed$','getSheetObject','collabCursorState$','DependentOn','ACTIVE_UNIT_EVENT_CHANNEL','substring','_hideTimer','getTypeOfUnitAdded$','handleInsertCol','_setupBeforeClosingHandler','string','InsertRangeMoveDownCommandId','Vector2','selection','univerjs-icon\x20univerjs-icon-','entityInit$','52CgSqOP','DOC_RANGE_TYPE','arc','blue400','children'];_0x3a7b=function(){return _0x51d71d;};return _0x3a7b();}const De=[_0x500283(0x173),_0x500283(0x2d1),'verdancy600',_0x500283(0x254),_0x500283(0x192),'gold400'];class Ce extends a['Disposable']{constructor(){const _0x55e871=_0x500283;super(...arguments),_(this,_0x55e871(0x280),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xf1e740){const _0x72feaa=_0x500283;if(this['_assignedColors'][_0x72feaa(0xf7)](_0xf1e740))return this[_0x72feaa(0x280)][_0x72feaa(0x277)](_0xf1e740);const _0x531480=De[this[_0x72feaa(0x137)]];return this[_0x72feaa(0x137)]=(this['_colorIndex']+0x1)%De[_0x72feaa(0x1f4)],this['_assignedColors']['set'](_0xf1e740,_0x531480),_0x531480;}}function xe(_0x1815e5){const _0x4a240b=_0x500283;let _0x1be7b0='';for(const _0x16ad1b of _0x1815e5){const {startOffset:_0x4ad7d9,endOffset:_0x4a2d80,isActive:_0x240cc5,rangeType:_0x3c6bd3,segmentId:_0x183613,segmentPage:_0x2185bf}=_0x16ad1b;_0x1be7b0[_0x4a240b(0x1f4)]&&(_0x1be7b0+=','),_0x1be7b0+=_0x4ad7d9+':'+_0x4a2d80+':'+(_0x240cc5?'1':'0')+':'+_0x3c6bd3+':'+_0x183613+':'+_0x2185bf;}return _0x1be7b0;}function rt(_0x191803){const _0x149972=_0x500283,_0x3fb46e=_0x191803[_0x149972(0x16e)](','),_0x4dd16c=[];for(const _0x57c3b9 of _0x3fb46e){const [_0x5bed6e,_0x1e4e72,_0x248bbf,_0x562ecf,_0x493391,_0x495783]=_0x57c3b9[_0x149972(0x16e)](':');_0x4dd16c[_0x149972(0x2b0)]({'startOffset':Number(_0x5bed6e),'endOffset':Number(_0x1e4e72),'collapsed':_0x5bed6e===_0x1e4e72,'isActive':_0x248bbf==='1','rangeType':_0x562ecf===a[_0x149972(0x190)][_0x149972(0x2e8)]?a[_0x149972(0x190)]['TEXT']:a[_0x149972(0x190)][_0x149972(0xe3)],'segmentId':typeof _0x493391==_0x149972(0x189)?String(_0x493391):'','segmentPage':Number(_0x495783!=null?_0x495783:-0x1)});}return _0x4dd16c[_0x149972(0x10e)](_0x410e3b=>_0x410e3b[_0x149972(0x2c6)])||(_0x4dd16c[0x0][_0x149972(0x2c6)]=!0x0),_0x4dd16c;}class be extends a['RxDisposable']{constructor(){const _0x3ff1e6=_0x500283;super(...arguments),_(this,_0x3ff1e6(0x29b),new S['BehaviorSubject'](null)),_(this,_0x3ff1e6(0x181),this['_collabCursorState$'][_0x3ff1e6(0xf0)]());}[_0x500283(0x2da)](_0x410a28){const _0x12d59c=_0x500283,{unitID:_0x545870,memberID:_0x3289c9,textRanges:_0x6cfa9f}=_0x410a28,_0x2d8480=xe(_0x6cfa9f);if(_0x2d8480==='')return;const _0x297331={'unitID':_0x545870,'memberID':_0x3289c9,'selection':_0x2d8480};this[_0x12d59c(0x29b)][_0x12d59c(0x1f6)](_0x297331);}}var ot=Object[_0x500283(0xcc)],at=Object['getOwnPropertyDescriptor'],ct=(_0x4ea5d1,_0x3a3abb,_0x239ba8,_0x130941)=>{const _0x2e5f4c=_0x500283;for(var _0x33d305=_0x130941>0x1?void 0x0:_0x130941?at(_0x3a3abb,_0x239ba8):_0x3a3abb,_0x4b6f72=_0x4ea5d1[_0x2e5f4c(0x1f4)]-0x1,_0x154407;_0x4b6f72>=0x0;_0x4b6f72--)(_0x154407=_0x4ea5d1[_0x4b6f72])&&(_0x33d305=(_0x130941?_0x154407(_0x3a3abb,_0x239ba8,_0x33d305):_0x154407(_0x33d305))||_0x33d305);return _0x130941&&_0x33d305&&ot(_0x3a3abb,_0x239ba8,_0x33d305),_0x33d305;},U=(_0x515418,_0x126baf)=>(_0x3f784a,_0x1dabc2)=>_0x126baf(_0x3f784a,_0x1dabc2,_0x515418);const lt=0x12c,ht=0x64;let ve=class extends a['RxDisposable']{constructor(_0x5d8479,_0x41cb8b,_0x401d0d,_0x4850dd,_0x4617f7,_0x19d4d6,_0x31b72f,_0x2e1676,_0x276dab){const _0x46a966=_0x500283;super(),_(this,_0x46a966(0x2ca),!0x1),_(this,_0x46a966(0x29a),!0x1),_(this,_0x46a966(0x2a6),new S['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_(this,_0x46a966(0x223),new S[(_0x46a966(0x28e))]([])),_(this,_0x46a966(0x11c),this[_0x46a966(0x223)]['pipe'](S[_0x46a966(0xce)](lt))),_(this,_0x46a966(0x2f9),a['debounce'](_0x261e93=>{const _0x56377a=_0x46a966,_0x528e84={'eventID':g[_0x56377a(0x1ac)][_0x56377a(0x1fa)],'data':{'unitID':this[_0x56377a(0x25f)],'memberID':this[_0x56377a(0x2cb)][_0x56377a(0x1b4)](),'selection':xe(_0x261e93)}};this[_0x56377a(0x2cb)][_0x56377a(0x22c)](_0x528e84,this['unitID']);},ht)),(this['unitID']=_0x5d8479,this['_session']=_0x41cb8b,this['_injector']=_0x401d0d,this['_colorAssignService']=_0x4850dd,this[_0x46a966(0xc4)]=_0x4617f7,this[_0x46a966(0x2d9)]=_0x19d4d6,this[_0x46a966(0x14c)]=_0x31b72f,this[_0x46a966(0xe6)]=_0x2e1676,this[_0x46a966(0xc1)]=_0x276dab);}get[_0x500283(0x155)](){const _0x50e218=_0x500283;return this[_0x50e218(0x2a6)]['getValue']();}get[_0x500283(0x1e6)](){const _0x228169=_0x500283;return this[_0x228169(0x223)]['getValue']();}[_0x500283(0x1ff)](){const _0x30e50b=_0x500283;super[_0x30e50b(0x1ff)](),this['_cursorInfo$']['next'](new Map()),this[_0x30e50b(0x2a6)][_0x30e50b(0x1db)](),this[_0x30e50b(0x223)][_0x30e50b(0x1f6)]([]),this[_0x30e50b(0x223)]['complete']();}[_0x500283(0x124)](){const _0x191418=_0x500283;this[_0x191418(0x29a)]||(this[_0x191418(0x29a)]=!0x0,this[_0x191418(0x2cb)][_0x191418(0x28f)][_0x191418(0xf6)](S[_0x191418(0x133)](this[_0x191418(0x23b)]))['subscribe'](_0x5b006f=>{const _0x47441f=_0x191418;_0x5b006f===u['SessionStatus'][_0x47441f(0x1c1)]?this['_toggleOnline']():this[_0x47441f(0x2df)]();}),this[_0x191418(0x2cb)]['event$'][_0x191418(0xf6)](S['takeUntil'](this[_0x191418(0x23b)]))[_0x191418(0x2f2)](_0x5bc07d=>{const _0x43badd=_0x191418,_0x52f5ec=_0x5bc07d[_0x43badd(0x21d)];_0x52f5ec===g[_0x43badd(0x1ac)][_0x43badd(0x1fa)]&&this[_0x43badd(0x174)](_0x5bc07d),_0x52f5ec===g[_0x43badd(0x1ac)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x5bc07d);}),this[_0x191418(0x326)](this['_commandService']['onCommandExecuted'](_0xfafe0b=>{const _0x18e9a3=_0x191418,_0x463809=_0xfafe0b['params'];_0x463809!=null&&this['_online']&&_0xfafe0b['id']===X[_0x18e9a3(0xd3)]['id']&&_0x463809[_0x18e9a3(0x25e)]===this[_0x18e9a3(0x25f)]&&_0x463809[_0x18e9a3(0x153)]===!0x1&&_0x463809[_0x18e9a3(0x160)][_0x18e9a3(0x1f4)]>0x0&&this[_0x18e9a3(0x2f9)](_0x463809[_0x18e9a3(0x160)]);})),this['_syncEditingCollabCursorService'][_0x191418(0x181)][_0x191418(0xf6)](S[_0x191418(0x133)](this[_0x191418(0x23b)]))[_0x191418(0x2f2)](_0x2b6acf=>{const _0x5452ae=_0x191418;if((_0x2b6acf==null?void 0x0:_0x2b6acf[_0x5452ae(0x25f)])!==this[_0x5452ae(0x25f)])return;const _0x4d0748={'eventID':g[_0x5452ae(0x1ac)][_0x5452ae(0x1fa)],'data':_0x2b6acf};this[_0x5452ae(0x174)](_0x4d0748);}),this[_0x191418(0x326)](this[_0x191418(0xc1)][_0x191418(0x30a)](_0xcee09d=>{const _0x417d09=_0x191418;if(_0xcee09d['params']==null)return;const _0x19b698=_0xcee09d[_0x417d09(0x2a0)];if(_0xcee09d['id']!==X[_0x417d09(0x1a3)]['id']||_0x19b698[_0x417d09(0x25e)]!==this[_0x417d09(0x25f)])return;const _0x29cb75={'id':_0x417d09(0x294),'params':_0x19b698},_0x479b3=this[_0x417d09(0x155)];for(const [_0x59d88b,_0x45b68c]of _0x479b3){const _0x3159fa={'id':_0x417d09(0x294),'params':{'unitId':this[_0x417d09(0x25f)],'actions':null,'textRanges':_0x45b68c['ranges']}},_0x40ed4f=this[_0x417d09(0x14c)][_0x417d09(0x19b)](_0x29cb75,_0x3159fa,!0x1);if(g[_0x417d09(0x156)](_0x40ed4f))throw _0x40ed4f[_0x417d09(0x135)];_0x479b3[_0x417d09(0x21b)](_0x59d88b,{..._0x45b68c,'ranges':_0x40ed4f[_0x417d09(0x30c)]['params'][_0x417d09(0x2ec)]});}queueMicrotask(()=>{const _0x1e5af3=_0x417d09;this['_cursorInfo$'][_0x1e5af3(0x1f6)](_0x479b3);});})));}[_0x500283(0x174)](_0x562dee){const _0x3d731d=_0x500283;var _0xdc6d3e,_0xb2f26e;const {memberID:_0x1496ff,selection:_0x5832d4}=_0x562dee['data'],_0x295fa3=rt(_0x5832d4),_0x281eb5=(_0xb2f26e=(_0xdc6d3e=this[_0x3d731d(0xc4)][_0x3d731d(0x120)](this[_0x3d731d(0x25f)],_0x1496ff))==null?void 0x0:_0xdc6d3e[_0x3d731d(0xcb)])!=null?_0xb2f26e:_0x3d731d(0x286),_0x3de8f7={'color':this['_colorAssignService'][_0x3d731d(0x31e)](_0x1496ff),'name':_0x281eb5,'ranges':_0x295fa3},_0x4eeacc=this['cursorInfo'];_0x4eeacc[_0x3d731d(0x21b)](_0x1496ff,_0x3de8f7),this[_0x3d731d(0x2a6)]['next'](_0x4eeacc);}[_0x500283(0x2e0)](_0x15cad8){const _0x178a86=_0x500283,{memberID:_0x186855}=_0x15cad8['data'],_0x7b54f6=this['cursorInfo'];_0x7b54f6[_0x178a86(0x2aa)](_0x186855),this[_0x178a86(0x2a6)]['next'](_0x7b54f6);}['_toggleOnline'](){const _0x3b4755=_0x500283;var _0x3cd24e;if(this[_0x3b4755(0x2ca)]=!0x0,((_0x3cd24e=this[_0x3b4755(0xe6)][_0x3b4755(0x30f)]())==null?void 0x0:_0x3cd24e[_0x3b4755(0x158)]())!==this['unitID'])return;const _0x1db829=this[_0x3b4755(0xbc)][_0x3b4755(0x277)](X[_0x3b4755(0x125)])[_0x3b4755(0x217)]();Array[_0x3b4755(0x13d)](_0x1db829)&&_0x1db829['length']>0x0&&this[_0x3b4755(0x2f9)](_0x1db829);}['_toggleOffline'](){const _0x2198ff=_0x500283;this[_0x2198ff(0x2ca)]=!0x1;}};ve=ct([U(0x2,a[_0x500283(0x1bf)](a[_0x500283(0x30e)])),U(0x3,a[_0x500283(0x1bf)](Ce)),U(0x4,a[_0x500283(0x1bf)](u[_0x500283(0x2f7)])),U(0x5,a[_0x500283(0x1bf)](be)),U(0x6,g[_0x500283(0x103)]),U(0x7,a[_0x500283(0x10f)]),U(0x8,a[_0x500283(0x268)])],ve);var _t=Object[_0x500283(0xcc)],ut=Object['getOwnPropertyDescriptor'],dt=(_0x7d9c33,_0x20aa5f,_0x1128a0,_0x586470)=>{const _0x30c075=_0x500283;for(var _0x1a3b90=_0x586470>0x1?void 0x0:_0x586470?ut(_0x20aa5f,_0x1128a0):_0x20aa5f,_0x4954f6=_0x7d9c33[_0x30c075(0x1f4)]-0x1,_0x43eabc;_0x4954f6>=0x0;_0x4954f6--)(_0x43eabc=_0x7d9c33[_0x4954f6])&&(_0x1a3b90=(_0x586470?_0x43eabc(_0x20aa5f,_0x1128a0,_0x1a3b90):_0x43eabc(_0x1a3b90))||_0x1a3b90);return _0x586470&&_0x1a3b90&&_t(_0x20aa5f,_0x1128a0,_0x1a3b90),_0x1a3b90;},A=(_0xe8ef74,_0x1e5602)=>(_0x4c103f,_0x545b7b)=>_0x1e5602(_0x4c103f,_0x545b7b,_0xe8ef74);const ft=0x12c,St=0x64,vt=()=>{let _0x18dc20=[],_0x32e789=!0x1;return _0x3da6dc=>{const _0x358881=_0x433a;_0x18dc20[_0x358881(0x2b0)](_0x3da6dc),_0x32e789||(_0x32e789=!0x0,setTimeout(()=>{_0x18dc20['forEach'](_0x35fbeb=>_0x35fbeb()),_0x18dc20=[],_0x32e789=!0x1;}));};};let me=class extends a[_0x500283(0x21e)]{constructor(_0x58d087,_0x49232e,_0x5e3c0d,_0x3c7602,_0x3f4c91,_0x24ed86,_0x455f11,_0x2d0450){const _0x308ba2=_0x500283;super(),_(this,_0x308ba2(0x2ca),!0x1),_(this,'_init',!0x1),_(this,_0x308ba2(0x2a6),new S[(_0x308ba2(0x28e))](new Map())),_(this,'cursorInfo$',this[_0x308ba2(0x2a6)][_0x308ba2(0xf0)]()),_(this,_0x308ba2(0x223),new S[(_0x308ba2(0x28e))]([])),_(this,_0x308ba2(0x11c),this[_0x308ba2(0x223)][_0x308ba2(0xf6)](S[_0x308ba2(0xce)](ft))),_(this,_0x308ba2(0x2f9),a['debounce']((_0x378904,_0x502109)=>{const _0x24a7eb=_0x308ba2,_0x3ff3d5={'eventID':g[_0x24a7eb(0x1ac)][_0x24a7eb(0x1fa)],'data':{'unitID':this[_0x24a7eb(0x25f)],'memberID':this[_0x24a7eb(0x2cb)][_0x24a7eb(0x1b4)](),'selection':Te[_0x24a7eb(0xec)](_0x378904,_0x502109[_0x24a7eb(0x22e)])}};this['_session']['send'](_0x3ff3d5,this[_0x24a7eb(0x25f)]);},St)),(this[_0x308ba2(0x25f)]=_0x58d087,this[_0x308ba2(0x2cb)]=_0x49232e,this[_0x308ba2(0xbc)]=_0x5e3c0d,this[_0x308ba2(0x1e0)]=_0x3c7602,this[_0x308ba2(0xc4)]=_0x3f4c91,this[_0x308ba2(0xe6)]=_0x24ed86,this[_0x308ba2(0xc1)]=_0x455f11,this[_0x308ba2(0x230)]=_0x2d0450);}get[_0x500283(0x155)](){return this['_cursorInfo$']['getValue']();}get[_0x500283(0x1e6)](){const _0x4d467a=_0x500283;return this[_0x4d467a(0x223)]['getValue']();}[_0x500283(0x1ff)](){const _0x309564=_0x500283;super[_0x309564(0x1ff)](),this[_0x309564(0x2a6)]['next'](new Map()),this[_0x309564(0x2a6)][_0x309564(0x1db)](),this[_0x309564(0x223)][_0x309564(0x1f6)]([]),this['_roomMembers$'][_0x309564(0x1db)]();}[_0x500283(0x124)](){const _0x21fbbb=_0x500283;this['_init']||(this[_0x21fbbb(0x29a)]=!0x0,this[_0x21fbbb(0x2cb)][_0x21fbbb(0x28f)]['pipe'](S['takeUntil'](this[_0x21fbbb(0x23b)]))[_0x21fbbb(0x2f2)](_0x1acd1c=>{const _0x2b721a=_0x21fbbb;_0x1acd1c===u['SessionStatus'][_0x2b721a(0x1c1)]?this['_toggleOnline']():this[_0x2b721a(0x2df)]();}),this[_0x21fbbb(0x2cb)][_0x21fbbb(0x275)][_0x21fbbb(0xf6)](S[_0x21fbbb(0x133)](this[_0x21fbbb(0x23b)]))['subscribe'](_0x351a65=>{const _0x5d9e1a=_0x21fbbb,_0xe11812=_0x351a65[_0x5d9e1a(0x21d)];_0xe11812===g[_0x5d9e1a(0x1ac)][_0x5d9e1a(0x1fa)]&&this[_0x5d9e1a(0x174)](_0x351a65),_0xe11812===g[_0x5d9e1a(0x1ac)][_0x5d9e1a(0x1ce)]&&this[_0x5d9e1a(0x2e0)](_0x351a65);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService'][_0x21fbbb(0x30a)](_0x22bd14=>{const _0x59aaf2=_0x21fbbb;if(this[_0x59aaf2(0x2ca)]&&_0x22bd14['id']===I[_0x59aaf2(0x212)]['id']&&_0x22bd14[_0x59aaf2(0x2a0)]['unitId']===this['unitID']){const _0x1c0354=_0x22bd14[_0x59aaf2(0x2a0)];this[_0x59aaf2(0x2f9)](_0x1c0354[_0x59aaf2(0x17d)],_0x1c0354[_0x59aaf2(0x1de)][0x0]);}})));}[_0x500283(0x174)](_0x43c787){const _0x17f7fc=_0x500283;var _0x2597a2,_0x5036ce;const {memberID:_0xb651f0,selection:_0x1e153d}=_0x43c787[_0x17f7fc(0xeb)],{sheetName:_0x38f9b3,range:_0x32cae7}=Te[_0x17f7fc(0x250)](_0x1e153d),_0x238a72={'name':(_0x5036ce=(_0x2597a2=this[_0x17f7fc(0xc4)][_0x17f7fc(0x120)](this['unitID'],_0xb651f0))==null?void 0x0:_0x2597a2[_0x17f7fc(0xcb)])!=null?_0x5036ce:_0x17f7fc(0x286),'range':this[_0x17f7fc(0x298)](_0x38f9b3,_0x32cae7),'sheetID':_0x38f9b3,'color':this[_0x17f7fc(0x1e0)]['assignAColorForMemberID'](_0xb651f0),'selection':_0x1e153d},_0x1ecc1f=this['cursorInfo'];_0x1ecc1f[_0x17f7fc(0x21b)](_0xb651f0,_0x238a72),this[_0x17f7fc(0x2a6)][_0x17f7fc(0x1f6)](_0x1ecc1f);}[_0x500283(0x2e0)](_0x1bd907){const _0x3ba7fa=_0x500283,{memberID:_0x5e8614}=_0x1bd907[_0x3ba7fa(0xeb)],_0x584dd5=this[_0x3ba7fa(0x155)];_0x584dd5[_0x3ba7fa(0x2aa)](_0x5e8614),this[_0x3ba7fa(0x2a6)][_0x3ba7fa(0x1f6)](_0x584dd5);}['_getMergeRange'](_0x33c239,_0x1b629c){const _0x4b0a11=_0x500283;var _0x5dd347,_0xf2ff72;const _0xd71842=(_0xf2ff72=(_0x5dd347=this['_univerInstanceService'][_0x4b0a11(0x1c3)](this[_0x4b0a11(0x25f)]))==null?void 0x0:_0x5dd347[_0x4b0a11(0x1f8)](_0x33c239))==null?void 0x0:_0xf2ff72['getMergeData']();return(_0xd71842==null?void 0x0:_0xd71842[_0x4b0a11(0xbb)](_0x3856bb=>a['Rectangle'][_0x4b0a11(0x200)](_0x3856bb,_0x1b629c)))||_0x1b629c;}['_onRefRangeChange'](){const _0x40b206=_0x500283,_0x2d3bc1=new a[(_0x40b206(0x142))](),_0x4a076d=vt(),_0x38c1a2=()=>{const _0x2232c6=_0x40b206;_0x2d3bc1['dispose']();const _0x5ad59c=(_0x4f24b3,_0xb327af,_0x37a77f,_0x4e3d4d)=>{const _0x2006d2=_0x433a;let _0x2afcc4=[];switch(_0x4f24b3['id']){case I[_0x2006d2(0x2c5)]['DeleteRangeMoveLeftCommandId']:{_0x2afcc4=I[_0x2006d2(0x266)](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)][_0x2006d2(0xc6)]:{_0x2afcc4=I[_0x2006d2(0x24d)](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)][_0x2006d2(0xdc)]:{_0x2afcc4=I[_0x2006d2(0x187)](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)][_0x2006d2(0x18a)]:{_0x2afcc4=I[_0x2006d2(0x2f4)](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)][_0x2006d2(0x141)]:{_0x2afcc4=I[_0x2006d2(0x2fa)](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)][_0x2006d2(0x214)]:{_0x2afcc4=I[_0x2006d2(0xc0)](_0x4f24b3,_0x4e3d4d);break;}case I['EffectRefRangId'][_0x2006d2(0x199)]:{_0x2afcc4=I['handleMoveRange'](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)]['RemoveColCommandId']:{_0x2afcc4=I['handleIRemoveCol'](_0x4f24b3,_0x4e3d4d);break;}case I['EffectRefRangId'][_0x2006d2(0x109)]:{_0x2afcc4=I[_0x2006d2(0x1cb)](_0x4f24b3,_0x4e3d4d);break;}}const _0x2e0937=I[_0x2006d2(0x269)](_0x2afcc4,_0x4e3d4d),_0x26f899=this[_0x2006d2(0x155)][_0x2006d2(0x277)](_0xb327af);if(_0x26f899&&_0x2e0937){const _0x8e9e02={..._0x26f899,'range':_0x2e0937};this[_0x2006d2(0x155)]['set'](_0xb327af,_0x8e9e02),_0x4a076d(()=>{const _0x235f58=_0x2006d2,_0xc2bafa=this[_0x235f58(0x230)][_0x235f58(0x219)](_0x2e0937,_0x2aacbc=>(_0xc2bafa[_0x235f58(0x1ff)](),_0x5ad59c(_0x2aacbc,_0xb327af,_0x37a77f,_0x2e0937)));_0x2d3bc1[_0x235f58(0x317)](_0xc2bafa);});}return{'redos':[],'undos':[]};};this[_0x2232c6(0x155)][_0x2232c6(0x316)]((_0x42a78d,_0x17a341)=>{const _0xaf22da=_0x2232c6,{range:_0x128c83,sheetID:_0x48afff}=_0x42a78d,_0x17863c=this[_0xaf22da(0x230)]['registerRefRange'](_0x128c83,_0x1d72e6=>(_0x17863c[_0xaf22da(0x1ff)](),_0x5ad59c(_0x1d72e6,_0x17a341,_0x48afff,_0x128c83)));_0x2d3bc1[_0xaf22da(0x317)](_0x17863c);});};this[_0x40b206(0x326)](a[_0x40b206(0x2ba)](this[_0x40b206(0x2a6)]['subscribe'](()=>{_0x38c1a2();})));}[_0x500283(0x166)](){const _0x5e335a=_0x500283;var _0x30b5db,_0x161888;if(this[_0x5e335a(0x2ca)]=!0x0,((_0x30b5db=this[_0x5e335a(0xe6)][_0x5e335a(0x30f)]())==null?void 0x0:_0x30b5db['getUnitId']())!==this['unitID'])return;const _0x1b77e4=(_0x161888=this[_0x5e335a(0xbc)][_0x5e335a(0x277)](I[_0x5e335a(0x116)])['getCurrentSelections']())==null?void 0x0:_0x161888[0x0],_0x780e75=this[_0x5e335a(0xe6)][_0x5e335a(0x152)](a[_0x5e335a(0x28d)][_0x5e335a(0x27e)])[_0x5e335a(0x210)]();_0x1b77e4&&_0x780e75&&this['_updateLocalCursor'](_0x780e75[_0x5e335a(0x14f)](),_0x1b77e4);}['_toggleOffline'](){const _0x4ce49a=_0x500283;this[_0x4ce49a(0x2ca)]=!0x1;}};me=dt([A(0x2,a['Inject'](a[_0x500283(0x30e)])),A(0x3,a[_0x500283(0x1bf)](Ce)),A(0x4,a[_0x500283(0x1bf)](u[_0x500283(0x2f7)])),A(0x5,a[_0x500283(0x10f)]),A(0x6,a['ICommandService']),A(0x7,a[_0x500283(0x1bf)](I[_0x500283(0x232)]))],me);var mt=Object[_0x500283(0xcc)],It=Object[_0x500283(0x324)],gt=(_0x246e08,_0x493327,_0x1be0b0,_0xa1a907)=>{const _0x398cc3=_0x500283;for(var _0x261b6a=_0xa1a907>0x1?void 0x0:_0xa1a907?It(_0x493327,_0x1be0b0):_0x493327,_0xf8344f=_0x246e08[_0x398cc3(0x1f4)]-0x1,_0x3d17e4;_0xf8344f>=0x0;_0xf8344f--)(_0x3d17e4=_0x246e08[_0xf8344f])&&(_0x261b6a=(_0xa1a907?_0x3d17e4(_0x493327,_0x1be0b0,_0x261b6a):_0x3d17e4(_0x261b6a))||_0x261b6a);return _0xa1a907&&_0x261b6a&&mt(_0x493327,_0x1be0b0,_0x261b6a),_0x261b6a;},ne=(_0x2b6802,_0x394f52)=>(_0x6137d1,_0x37d6a1)=>_0x394f52(_0x6137d1,_0x37d6a1,_0x2b6802);let x=class extends a[_0x500283(0x21e)]{constructor(_0x5f3877,_0x13b9cb,_0x521819){const _0x572bbb=_0x500283;super(),_(this,_0x572bbb(0x2fb),new Map()),_(this,_0x572bbb(0x24b),new S[(_0x572bbb(0x261))]()),(this[_0x572bbb(0xe6)]=_0x5f3877,this[_0x572bbb(0xbc)]=_0x13b9cb,this[_0x572bbb(0xf9)]=_0x521819,this[_0x572bbb(0x29a)]());}[_0x500283(0x1ff)](){const _0x528fa7=_0x500283;super['dispose'](),this[_0x528fa7(0x24b)][_0x528fa7(0x1db)](),this[_0x528fa7(0x2fb)][_0x528fa7(0x316)](_0x2ffe9d=>_0x2ffe9d['dispose']());}[_0x500283(0x1af)](_0x3c34bc){const _0x236eee=_0x500283;return this[_0x236eee(0x2fb)][_0x236eee(0xf7)](_0x3c34bc)?this[_0x236eee(0x2fb)]['get'](_0x3c34bc)[_0x236eee(0x15a)]:this[_0x236eee(0x24b)][_0x236eee(0xf6)](S[_0x236eee(0x274)](_0x40316f=>_0x40316f['unitID']===_0x3c34bc),S[_0x236eee(0xe5)](_0x30e4e5=>_0x30e4e5[_0x236eee(0x15a)]));}[_0x500283(0x29a)](){const _0x14ef87=_0x500283;this[_0x14ef87(0xe6)]['getTypeOfUnitAdded$'](a[_0x14ef87(0x28d)][_0x14ef87(0x27e)])[_0x14ef87(0xf6)](S[_0x14ef87(0x133)](this[_0x14ef87(0x23b)]))[_0x14ef87(0x2f2)](async _0x1b5ca1=>{const _0x517e3a=_0x14ef87,_0x556c7d=_0x1b5ca1[_0x517e3a(0x158)](),_0x85df9f=await this[_0x517e3a(0x1f1)](_0x556c7d);this[_0x517e3a(0x24b)][_0x517e3a(0x1f6)](_0x85df9f),this['_entities'][_0x517e3a(0x21b)](_0x556c7d,_0x85df9f);}),this[_0x14ef87(0xe6)][_0x14ef87(0x186)](a[_0x14ef87(0x28d)][_0x14ef87(0x16c)])[_0x14ef87(0xf6)](S['takeUntil'](this[_0x14ef87(0x23b)]))[_0x14ef87(0xf6)](S[_0x14ef87(0x274)](_0x566590=>!_0x566590[_0x14ef87(0x158)]()['startsWith']('__')))[_0x14ef87(0x2f2)](async _0x119449=>{const _0x41946a=_0x14ef87,_0x3d5bfa=_0x119449[_0x41946a(0x158)](),_0x5b2155=await this[_0x41946a(0x262)](_0x3d5bfa);this[_0x41946a(0x24b)][_0x41946a(0x1f6)](_0x5b2155),this[_0x41946a(0x2fb)][_0x41946a(0x21b)](_0x3d5bfa,_0x5b2155);}),S[_0x14ef87(0xfa)](this[_0x14ef87(0xe6)][_0x14ef87(0x17f)](a[_0x14ef87(0x28d)]['UNIVER_DOC']),this[_0x14ef87(0xe6)][_0x14ef87(0x17f)](a[_0x14ef87(0x28d)][_0x14ef87(0x27e)]))[_0x14ef87(0xf6)](S[_0x14ef87(0x133)](this[_0x14ef87(0x23b)]))[_0x14ef87(0x2f2)](_0x4e83b4=>{const _0x9a5c9=_0x14ef87,_0x582328=_0x4e83b4[_0x9a5c9(0x158)](),_0x563662=this[_0x9a5c9(0x2fb)][_0x9a5c9(0x277)](_0x582328);_0x563662&&(_0x563662[_0x9a5c9(0x1ff)](),this[_0x9a5c9(0x2fb)][_0x9a5c9(0x2aa)](_0x582328));});}async[_0x500283(0x1f1)](_0x278ae3){const _0x535a14=_0x500283,_0x187194=await this[_0x535a14(0xf9)][_0x535a14(0x1b6)](_0x278ae3),_0x447d84=this[_0x535a14(0xbc)][_0x535a14(0x11d)](me,_0x278ae3,_0x187194);return _0x447d84[_0x535a14(0x124)](),_0x447d84;}async[_0x500283(0x262)](_0x201d08){const _0x242f88=_0x500283,_0x525a5a=await this[_0x242f88(0xf9)][_0x242f88(0x1b6)](_0x201d08),_0x5720bb=this[_0x242f88(0xbc)][_0x242f88(0x11d)](ve,_0x201d08,_0x525a5a);return _0x5720bb[_0x242f88(0x124)](),_0x5720bb;}};x=gt([ne(0x0,a['IUniverInstanceService']),ne(0x1,a['Inject'](a[_0x500283(0x30e)])),ne(0x2,a[_0x500283(0x1bf)](u[_0x500283(0x15c)]))],x);const V=0x14,Pe=0xc8,ie=0x4,pt=0x5;function Ct(_0x4a77b5,_0x2c494a){const _0x5719b3=_0x500283;let {radius:_0x5d4c53,width:_0x511cfc,height:_0xdb9f}=_0x2c494a;_0x5d4c53=_0x5d4c53!=null?_0x5d4c53:0x0,_0x511cfc=_0x511cfc!=null?_0x511cfc:0x1e,_0xdb9f=_0xdb9f!=null?_0xdb9f:0x1e;let _0x3d5f9c=0x0,_0x29cff7=0x0,_0x136d94=0x0;_0x3d5f9c=_0x29cff7=_0x136d94=Math[_0x5719b3(0x11b)](_0x5d4c53,_0x511cfc/0x2,_0xdb9f/0x2),_0x4a77b5[_0x5719b3(0x27d)](),_0x4a77b5[_0x5719b3(0x27f)](_0x3d5f9c,0x0),_0x4a77b5[_0x5719b3(0x2a1)](_0x511cfc-_0x29cff7,0x0),_0x4a77b5[_0x5719b3(0x191)](_0x511cfc-_0x29cff7,_0x29cff7,_0x29cff7,Math['PI']*0x3/0x2,0x0,!0x1),_0x4a77b5['lineTo'](_0x511cfc,_0xdb9f-_0x136d94),_0x4a77b5[_0x5719b3(0x191)](_0x511cfc-_0x136d94,_0xdb9f-_0x136d94,_0x136d94,0x0,Math['PI']/0x2,!0x1),_0x4a77b5[_0x5719b3(0x2a1)](0x0,_0xdb9f),_0x4a77b5[_0x5719b3(0x2a1)](0x0,_0x3d5f9c),_0x4a77b5[_0x5719b3(0x191)](_0x3d5f9c,_0x3d5f9c,_0x3d5f9c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4a77b5['closePath'](),_0x2c494a['fill']&&(_0x4a77b5[_0x5719b3(0x2fd)](),_0x4a77b5['fillStyle']=_0x2c494a[_0x5719b3(0x12a)],_0x2c494a[_0x5719b3(0x29e)]===_0x5719b3(0x1f7)?_0x4a77b5[_0x5719b3(0x12a)]('evenodd'):_0x4a77b5[_0x5719b3(0x12a)](),_0x4a77b5[_0x5719b3(0x129)]());}class ee extends p[_0x500283(0x1a4)]{constructor(_0x1d4a1d,_0x20ac49){const _0x49d938=_0x500283;super(_0x1d4a1d,_0x20ac49),_(this,_0x49d938(0x225)),_(this,_0x49d938(0x13c)),(this[_0x49d938(0x225)]=_0x20ac49==null?void 0x0:_0x20ac49[_0x49d938(0x225)],this['text']=_0x20ac49==null?void 0x0:_0x20ac49[_0x49d938(0x13c)]);}static[_0x500283(0x23f)](_0x84f85f,_0x223a3c){const _0x3ed06a=_0x500283,{text:_0x13ff4e,color:_0x5f53ac}=_0x223a3c;_0x84f85f[_0x3ed06a(0x2fd)](),_0x84f85f[_0x3ed06a(0x26e)]=_0x3ed06a(0x1d0);const _0x44db10=_0x84f85f['measureText'](_0x13ff4e)[_0x3ed06a(0x139)],_0x67dc1c=Math[_0x3ed06a(0x11b)](_0x44db10+0x2*ie,Pe);Ct(_0x84f85f,{'height':V,'radius':0x4,'width':_0x67dc1c,'fill':_0x5f53ac,'evented':!0x1}),_0x84f85f[_0x3ed06a(0x23e)]=_0x3ed06a(0xb8);const _0x1f9f8a=ie,_0x3f9bba=V-pt,_0x4b4a2a=Pe-0x2*ie;if(_0x44db10>_0x4b4a2a){let _0x53136d='',_0x450dcd=0x0;for(const _0x605035 of _0x13ff4e){const _0x51cda1=_0x84f85f[_0x3ed06a(0x107)](_0x605035)[_0x3ed06a(0x139)];if(_0x450dcd+_0x51cda1<=_0x4b4a2a-_0x84f85f['measureText']('...')['width'])_0x53136d+=_0x605035,_0x450dcd+=_0x51cda1;else{_0x53136d+=_0x3ed06a(0x2f0);break;}}_0x84f85f['fillText'](_0x53136d,_0x1f9f8a,_0x3f9bba);}else _0x84f85f[_0x3ed06a(0x289)](_0x13ff4e,_0x1f9f8a,_0x3f9bba);_0x84f85f['restore']();}[_0x500283(0x20e)](_0x418a80){const _0x2f5e3e=_0x500283;ee[_0x2f5e3e(0x23f)](_0x418a80,this);}}const re=_0x500283(0x1ab),bt=_0x500283(0x2a2),Et=_0x500283(0x170),H=0x6,Rt=1.5,oe=0x4,Tt=1.5,Ot=_0x500283(0x236);function _0x433a(_0x274750,_0x27c117){const _0x3a7bfb=_0x3a7b();return _0x433a=function(_0x433a95,_0x3e8ba8){_0x433a95=_0x433a95-0xb3;let _0x3f7a6f=_0x3a7bfb[_0x433a95];return _0x3f7a6f;},_0x433a(_0x274750,_0x27c117);}class Me{constructor(_0x51e002,_0x739f0f,_0x3e2ee1,_0xc9c9d){const _0x521488=_0x500283;_(this,_0x521488(0x1fc),[]),_(this,_0x521488(0x1d8),null),_(this,'_textBubble',null),_(this,'_anchorDot',null),_(this,_0x521488(0x185),null),_(this,_0x521488(0x308),null),(this[_0x521488(0xed)]=_0x51e002,this['_scene']=_0x739f0f,this[_0x521488(0x1cc)]=_0x3e2ee1,this[_0x521488(0x26f)]=_0xc9c9d,this[_0x521488(0x1d2)]());}set[_0x500283(0xfc)](_0x31caa5){const _0x4d8d66=_0x500283;_0x31caa5?(this['_anchorDot']&&this[_0x4d8d66(0x151)][_0x4d8d66(0x305)](),this[_0x4d8d66(0xe0)]&&this[_0x4d8d66(0xe0)][_0x4d8d66(0x130)]()):(this[_0x4d8d66(0x151)]&&this[_0x4d8d66(0x151)][_0x4d8d66(0x130)](),this[_0x4d8d66(0xe0)]&&this[_0x4d8d66(0xe0)][_0x4d8d66(0x305)]());}[_0x500283(0x1ff)](){const _0x5947cb=_0x500283;for(const _0x45426e of this[_0x5947cb(0x1fc)])_0x45426e[_0x5947cb(0x1ff)]();this[_0x5947cb(0xe0)]&&this[_0x5947cb(0xe0)][_0x5947cb(0x1ff)](),this['_anchorDot']&&this[_0x5947cb(0x151)][_0x5947cb(0x1ff)](),this[_0x5947cb(0x1d8)]&&this[_0x5947cb(0x1d8)][_0x5947cb(0x1ff)](),this[_0x5947cb(0x308)]&&this[_0x5947cb(0x308)]();}[_0x500283(0x1d2)](){const _0x34a864=_0x500283;var _0x5f0632;const {_docSkeleton:_0x5a31b2,_document:_0x4919d9}=this,{color:_0x3cdd37,name:_0x1ab53f,ranges:_0x5b7093}=this[_0x34a864(0xed)],_0x5d36db=_0x4919d9[_0x34a864(0x19e)](),{docsLeft:_0x3a2eb8,docsTop:_0x15b519}=_0x5d36db,_0x5d72b4=new b['NodePositionConvertToCursor'](_0x5d36db,_0x5a31b2);for(const {startOffset:_0x3bca47,endOffset:_0x53eac7,rangeType:_0x2f8ac0,segmentId:_0x5c0f5f,segmentPage:_0xa50fc6,collapsed:_0x205fe5,isActive:_0x5907c6}of _0x5b7093){const _0x8b9b91=_0x5a31b2[_0x34a864(0x282)](_0x3bca47,!0x0,_0x5c0f5f,_0xa50fc6);let _0x289dd7=_0x5a31b2[_0x34a864(0x282)](_0x53eac7,!0x0,_0x5c0f5f,_0xa50fc6);if(_0x289dd7==null&&(_0x289dd7=_0x5a31b2['findNodePositionByCharIndex'](_0x53eac7-0x1,!0x1,_0x5c0f5f,_0xa50fc6)),_0x5907c6){const {contentBoxPointGroup:_0x3440c2}=_0x5d72b4['getRangePointData'](_0x289dd7,_0x289dd7);if(_0x3440c2['length']===0x0)continue;this[_0x34a864(0x315)](_0x3cdd37,_0x3440c2,_0x3a2eb8,_0x15b519,_0x1ab53f),this[_0x34a864(0x308)]=this['_handleHover']();}if(_0x8b9b91&&_0x289dd7){if(_0x2f8ac0===a[_0x34a864(0x190)][_0x34a864(0xe3)]){const _0x13ffe9=new b[(_0x34a864(0x1d5))](_0x5d36db,_0x5a31b2),{pointGroup:_0x309d3e}=(_0x5f0632=_0x13ffe9['getRangePointData'](_0x8b9b91,_0x289dd7))!=null?_0x5f0632:{};if(_0x309d3e==null||_0x309d3e[_0x34a864(0x1f4)]===0x0)continue;this[_0x34a864(0x26b)](_0x3cdd37,_0x309d3e,_0x3a2eb8,_0x15b519);}else{if(!_0x205fe5){const {borderBoxPointGroup:_0x3de54b}=_0x5d72b4[_0x34a864(0xda)](_0x8b9b91,_0x289dd7);if(_0x3de54b['length']===0x0)continue;this[_0x34a864(0x235)](_0x3cdd37,_0x3de54b,_0x3a2eb8,_0x15b519);}}}}}[_0x500283(0x315)](_0x238f91,_0x3fe5cb,_0x56288a,_0x1b7a4d,_0x995df4){const _0x345fd2=_0x500283,_0x30f4dd=this[_0x345fd2(0x2d2)](_0x3fe5cb),{left:_0x434efa,top:_0x120b58,height:_0x53bd11}=_0x30f4dd,_0x51e141=this[_0x345fd2(0x249)](),_0x4dc5dc=Tt/_0x51e141,_0x3b5030=new p[(_0x345fd2(0x1b2))](re+a[_0x345fd2(0xba)][_0x345fd2(0x2e7)](H),{'left':_0x434efa+_0x56288a-_0x4dc5dc,'top':_0x120b58+_0x1b7a4d,'height':_0x53bd11,'width':Rt,'fill':_0x238f91||p[_0x345fd2(0x13b)](a['COLORS']['black'],0x0),'strokeWidth':_0x4dc5dc,'stroke':Ot,'evented':!0x0});this['_anchor']=_0x3b5030,this[_0x345fd2(0x296)][_0x345fd2(0x1fe)](_0x3b5030,b[_0x345fd2(0x161)]);const _0x4df476=new p[(_0x345fd2(0x1b2))](re+a[_0x345fd2(0xba)][_0x345fd2(0x2e7)](H),{'left':_0x434efa+_0x56288a-_0x4dc5dc,'top':_0x120b58+_0x1b7a4d-oe/0x2,'height':oe,'width':oe,'fill':_0x238f91||p[_0x345fd2(0x13b)](a[_0x345fd2(0xb3)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x238f91||p[_0x345fd2(0x13b)](a[_0x345fd2(0xb3)][_0x345fd2(0x164)],0x0),'evented':!0x1});this['_anchorDot']=_0x4df476,this['_scene'][_0x345fd2(0x1fe)](_0x4df476,b['TEXT_RANGE_LAYER_INDEX']);const _0x45807f=new ee(re+a['Tools'][_0x345fd2(0x2e7)](H),{'left':_0x434efa+_0x56288a-_0x4dc5dc,'top':_0x120b58+_0x1b7a4d-V,'text':_0x995df4,'color':_0x238f91});this['_textBubble']=_0x45807f,this[_0x345fd2(0x296)][_0x345fd2(0x1fe)](_0x45807f,b[_0x345fd2(0x161)]),this[_0x345fd2(0xfc)]=!0x1;}[_0x500283(0x252)](){const _0x5858a=_0x500283,_0x59f659=this['_anchor'][_0x5858a(0x1c5)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x27ab05=this[_0x5858a(0x1d8)][_0x5858a(0xf3)][_0x5858a(0x273)](()=>{const _0x593d04=_0x5858a;this[_0x593d04(0x185)]&&clearTimeout(this[_0x593d04(0x185)]),this['_hideTimer']=setTimeout(()=>{const _0x267297=_0x593d04;this[_0x267297(0xfc)]=!0x1;},0x7d0);});return()=>{const _0x327cff=_0x5858a;_0x59f659[_0x327cff(0x2bb)](),_0x27ab05[_0x327cff(0x2bb)]();};}[_0x500283(0x235)](_0x2812d5,_0x34e1b9,_0x3caa70,_0x24de3b){const _0x1cbb1c=_0x500283,_0x2f71ca=new a[(_0x1cbb1c(0x1cf))](_0x2812d5)[_0x1cbb1c(0x279)](0.2)[_0x1cbb1c(0x2c8)](),_0x4b15c3=new p['RegularPolygon'](bt+a['Tools'][_0x1cbb1c(0x2e7)](H),{'pointsGroup':_0x34e1b9,'fill':_0x2f71ca||p['getColor'](a[_0x1cbb1c(0xb3)]['black'],0.2),'left':_0x3caa70,'top':_0x24de3b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1cbb1c(0x1fc)][_0x1cbb1c(0x2b0)](_0x4b15c3),this[_0x1cbb1c(0x296)][_0x1cbb1c(0x1fe)](_0x4b15c3,b[_0x1cbb1c(0x161)]);}[_0x500283(0x26b)](_0xb72517,_0x29b2ca,_0x3a1f8d,_0x3f7f9e){const _0x32d988=_0x500283,_0x8bed4e=new a[(_0x32d988(0x1cf))](_0xb72517)[_0x32d988(0x279)](0.2)['toRgbString'](),_0x974f0=new p[(_0x32d988(0x1c8))](Et+a[_0x32d988(0xba)][_0x32d988(0x2e7)](H),{'pointsGroup':_0x29b2ca,'fill':_0x8bed4e||p['getColor'](a[_0x32d988(0xb3)]['black'],0.2),'left':_0x3a1f8d,'top':_0x3f7f9e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x32d988(0x1fc)][_0x32d988(0x2b0)](_0x974f0),this[_0x32d988(0x296)]['addObject'](_0x974f0,b[_0x32d988(0x161)]);}['_getAnchorBounding'](_0xf08390){const _0x24f951=_0xf08390[0x0],_0x4ec027=_0x24f951[0x0],_0x151adf=_0x24f951[0x2],{x:_0x5780fb,y:_0x5c00c8}=_0x4ec027,{x:_0x1628d5,y:_0xdf4638}=_0x151adf;return{'left':_0x5780fb,'top':_0x5c00c8,'width':_0x1628d5-_0x5780fb,'height':_0xdf4638-_0x5c00c8};}[_0x500283(0x249)](){const _0x21d5bf=_0x500283,{scaleX:_0x5ae2fe,scaleY:_0x4b74d9}=this[_0x21d5bf(0x296)][_0x21d5bf(0x247)]();return Math[_0x21d5bf(0x288)](_0x5ae2fe,_0x4b74d9);}}var Dt=Object[_0x500283(0xcc)],Pt=Object[_0x500283(0x324)],Mt=(_0x35b324,_0x1d98d6,_0x4abcce,_0x19c5eb)=>{const _0x5ca080=_0x500283;for(var _0x55efbb=_0x19c5eb>0x1?void 0x0:_0x19c5eb?Pt(_0x1d98d6,_0x4abcce):_0x1d98d6,_0x30aa3a=_0x35b324[_0x5ca080(0x1f4)]-0x1,_0x3bc0cf;_0x30aa3a>=0x0;_0x30aa3a--)(_0x3bc0cf=_0x35b324[_0x30aa3a])&&(_0x55efbb=(_0x19c5eb?_0x3bc0cf(_0x1d98d6,_0x4abcce,_0x55efbb):_0x3bc0cf(_0x55efbb))||_0x55efbb);return _0x19c5eb&&_0x55efbb&&Dt(_0x1d98d6,_0x4abcce,_0x55efbb),_0x55efbb;},G=(_0x46c4dc,_0x32f0f7)=>(_0x52dc87,_0x1e88a2)=>_0x32f0f7(_0x52dc87,_0x1e88a2,_0x46c4dc);let Ie=class extends a['RxDisposable']{constructor(_0x2284ec,_0x3afa96,_0x403a2d,_0x8fcad1,_0x33a92b){const _0x2e3a77=_0x500283;super(),_(this,_0x2e3a77(0x1b0),[]),_(this,_0x2e3a77(0x179),[]),(this[_0x2e3a77(0x22a)]=_0x2284ec,this['_docSkeletonManagerService']=_0x3afa96,this[_0x2e3a77(0x1ad)]=_0x403a2d,this['_commandService']=_0x8fcad1,this['_themeService']=_0x33a92b,this[_0x2e3a77(0x29a)]());}[_0x500283(0x29a)](){const _0x24c304=_0x500283,_0x59245e=this[_0x24c304(0x22a)][_0x24c304(0x25e)],_0x2b2ae5=this[_0x24c304(0x11e)];this['disposeWithMe'](S['combineLatest']([this['_collabCursorController'][_0x24c304(0x1af)](_0x59245e),this[_0x24c304(0x145)][_0x24c304(0xe1)]])[_0x24c304(0xf6)]($[_0x24c304(0x1d9)](([_0x1be0c9,_0x247aad])=>({'skeleton':_0x2b2ae5['getSkeleton'](),'cursors':[..._0x1be0c9[_0x24c304(0xde)]()][_0x24c304(0x25d)](_0x1b9725=>({..._0x1b9725,'color':_0x247aad[_0x1b9725['color']]}))})))[_0x24c304(0x2f2)](_0x5652c7=>{const _0x189fdd=_0x24c304;if(this[_0x189fdd(0x208)](),_0x5652c7){const {skeleton:_0x45b1a7,cursors:_0x21358f}=_0x5652c7;this[_0x189fdd(0x1da)](_0x45b1a7,_0x21358f);}})),this[_0x24c304(0x215)](),this['_initCommandExecutedListener']();}[_0x500283(0x1da)](_0x12448d,_0x3ceff0){const _0x1d26d9=_0x500283,{scene:_0xed63a7,mainComponent:_0xf1548d}=this[_0x1d26d9(0x22a)],_0x4e07a0=_0x3ceff0[_0x1d26d9(0x1d9)](_0xb8cd77=>new Me(_0xb8cd77,_0xed63a7,_0x12448d,_0xf1548d));this[_0x1d26d9(0x1b0)]=_0x4e07a0,this[_0x1d26d9(0x179)]=_0x3ceff0;}[_0x500283(0xff)](){const _0x250df1=_0x500283;this['_removeCollabCursors']();const {scene:_0x2fe7b3,mainComponent:_0xb44934}=this[_0x250df1(0x22a)],_0x4f9400=this[_0x250df1(0x11e)][_0x250df1(0x241)](),_0x171a7b=this[_0x250df1(0x179)][_0x250df1(0x1d9)](_0x547181=>new Me(_0x547181,_0x2fe7b3,_0x4f9400,_0xb44934));this[_0x250df1(0x1b0)]=_0x171a7b;}[_0x500283(0x208)](){const _0x167f06=_0x500283;this[_0x167f06(0x1b0)][_0x167f06(0x316)](_0x4eb66b=>_0x4eb66b[_0x167f06(0x1ff)]()),this['_cursorShapes']=[];}[_0x500283(0x14b)](){const _0x298443=_0x500283,_0x5cc0c4=[b[_0x298443(0x118)]['id']];this[_0x298443(0x326)](this[_0x298443(0xc1)]['onCommandExecuted'](_0x242c8d=>{const _0x8557fe=_0x298443;_0x5cc0c4[_0x8557fe(0x1e4)](_0x242c8d['id'])&&_0x242c8d[_0x8557fe(0x2a0)][_0x8557fe(0x25e)]===this[_0x8557fe(0x22a)][_0x8557fe(0x25e)]&&this['_refreshCollabCursors']();}));}[_0x500283(0x215)](){const _0x17d57d=_0x500283;this[_0x17d57d(0x326)](a[_0x17d57d(0x299)](this[_0x17d57d(0x22a)]['engine'][_0x17d57d(0x221)])[_0x17d57d(0xf6)]($['filter'](_0x22845f=>_0x22845f[_0x17d57d(0x175)]===p[_0x17d57d(0x213)]['resize']),$[_0x17d57d(0x1b9)](0x10))[_0x17d57d(0x2f2)](()=>{const _0xd57761=_0x17d57d;this[_0xd57761(0xff)]();}));}};Ie=Mt([G(0x1,a[_0x500283(0x1bf)](X[_0x500283(0x2e2)])),G(0x2,a[_0x500283(0x1bf)](x)),G(0x3,a['ICommandService']),G(0x4,a[_0x500283(0x1bf)](a['ThemeService']))],Ie);const Ut=0x1,Nt=1.5;class je extends p['Shape']{constructor(_0x206eaf,_0x7d1979){const _0x54c2c8=_0x500283;super(_0x206eaf,_0x7d1979),_(this,'_color'),_(this,_0x54c2c8(0x106),!0x1),_(this,_0x54c2c8(0x149)),_(this,'_name',''),_(this,_0x54c2c8(0x194),'top'),_(this,_0x54c2c8(0x26a)),(_0x7d1979&&this[_0x54c2c8(0x319)](_0x7d1979),this[_0x54c2c8(0x1c5)]['subscribeEvent'](()=>this[_0x54c2c8(0x319)]({'hovered':!0x0})),this[_0x54c2c8(0xf3)][_0x54c2c8(0x273)](()=>this[_0x54c2c8(0x319)]({'hovered':!0x1})));}[_0x500283(0x319)](_0x380ec9){const _0x4ae243=_0x500283;var _0x1452ae,_0x931107,_0x1c356e,_0x3bceeb,_0x553650,_0x3ee9bb;this['_color']=(_0x1452ae=_0x380ec9[_0x4ae243(0x225)])!=null?_0x1452ae:this['_color'],this[_0x4ae243(0x106)]=(_0x931107=_0x380ec9[_0x4ae243(0xd5)])!=null?_0x931107:this[_0x4ae243(0x106)],this['_range']=(_0x1c356e=_0x380ec9[_0x4ae243(0x22e)])!=null?_0x1c356e:this[_0x4ae243(0x149)],this['_name']=(_0x3bceeb=_0x380ec9[_0x4ae243(0xcb)])!=null?_0x3bceeb:this[_0x4ae243(0x2d8)],this[_0x4ae243(0x194)]=(_0x553650=_0x380ec9[_0x4ae243(0x14e)])!=null?_0x553650:this[_0x4ae243(0x194)],this[_0x4ae243(0x26a)]=(_0x3ee9bb=_0x380ec9[_0x4ae243(0x1f0)])!=null?_0x3ee9bb:this[_0x4ae243(0x26a)],this[_0x4ae243(0xfb)]({'width':_0x380ec9[_0x4ae243(0x139)],'height':_0x380ec9[_0x4ae243(0x11a)]});}[_0x500283(0x1d3)](_0x56d390){const _0x5f45ff=_0x500283,{row:_0x16ef65,column:_0x4555d1}=_0x56d390;if(_0x16ef65>=this[_0x5f45ff(0x149)][_0x5f45ff(0x226)]&&_0x16ef65<=this[_0x5f45ff(0x149)]['endRow']&&_0x4555d1>=this[_0x5f45ff(0x149)][_0x5f45ff(0x198)]&&_0x4555d1<=this[_0x5f45ff(0x149)]['endColumn']){this[_0x5f45ff(0x319)]({'hovered':!0x0});return;}this[_0x5f45ff(0x319)]({'hovered':!0x1});}['triggerDblclick'](_0x1ac212){return!0x1;}[_0x500283(0x20e)](_0x5e35e1){const _0x567d67=_0x500283;p[_0x567d67(0x1b2)]['drawWith'](_0x5e35e1,{'width':this[_0x567d67(0x139)],'height':this[_0x567d67(0x11a)],'strokeWidth':Nt,'stroke':this[_0x567d67(0x272)],'evented':!0x1,'fill':this[_0x567d67(0x26a)]}),this[_0x567d67(0x106)]&&(_0x5e35e1[_0x567d67(0x2fd)](),_0x5e35e1[_0x567d67(0x2b3)](0x1,0x0,0x0,0x1,this[_0x567d67(0x139)],this['_labelPosition']===_0x567d67(0x2c3)?0x0:-V),ee[_0x567d67(0x23f)](_0x5e35e1,{'text':this[_0x567d67(0x2d8)],'color':this[_0x567d67(0x272)]}),_0x5e35e1[_0x567d67(0x129)]());}}var wt=Object[_0x500283(0xcc)],Lt=Object['getOwnPropertyDescriptor'],At=(_0x52a9f8,_0x1101e6,_0x45871d,_0x169981)=>{const _0x1716f8=_0x500283;for(var _0x4b62ce=_0x169981>0x1?void 0x0:_0x169981?Lt(_0x1101e6,_0x45871d):_0x1101e6,_0x5b2bb9=_0x52a9f8[_0x1716f8(0x1f4)]-0x1,_0x489397;_0x5b2bb9>=0x0;_0x5b2bb9--)(_0x489397=_0x52a9f8[_0x5b2bb9])&&(_0x4b62ce=(_0x169981?_0x489397(_0x1101e6,_0x45871d,_0x4b62ce):_0x489397(_0x4b62ce))||_0x4b62ce);return _0x169981&&_0x4b62ce&&wt(_0x1101e6,_0x45871d,_0x4b62ce),_0x4b62ce;},ae=(_0x23f8c9,_0x8742f5)=>(_0x4a5dbc,_0x8d4379)=>_0x8742f5(_0x4a5dbc,_0x8d4379,_0x23f8c9);const yt=0x1389;let ge=class extends a[_0x500283(0x21e)]{constructor(_0x5ac0af,_0x56feae,_0x5ee5e1,_0x23ba4c){const _0x576c78=_0x500283;super(),_(this,_0x576c78(0x179),new Set()),_(this,_0x576c78(0x21f),null),(this['_context']=_0x5ac0af,this[_0x576c78(0x123)]=_0x56feae,this[_0x576c78(0x1ad)]=_0x5ee5e1,this[_0x576c78(0x145)]=_0x23ba4c,this[_0x576c78(0x29a)]());}[_0x500283(0x29a)](){const _0x58f5e4=_0x500283;this[_0x58f5e4(0x123)]['currentSkeleton$'][_0x58f5e4(0xf6)]($[_0x58f5e4(0x133)](this[_0x58f5e4(0x23b)]),$[_0x58f5e4(0xe5)](_0x33d174=>{const _0x378dc8=_0x58f5e4;if(_0x33d174){const _0x2c6f20=_0x33d174[_0x378dc8(0x25b)];return S[_0x378dc8(0x1e1)](this[_0x378dc8(0x1ad)][_0x378dc8(0x1af)](this[_0x378dc8(0x22a)][_0x378dc8(0x25e)]),this[_0x378dc8(0x145)][_0x378dc8(0xe1)])[_0x378dc8(0xf6)]($[_0x378dc8(0x1d9)](([_0x110c3f,_0x3db1be])=>{const _0xaceb72=new Map();return _0x110c3f['forEach']((_0x335fa6,_0x344c56)=>{const _0x4b352e=_0x433a;if(_0x335fa6[_0x4b352e(0x31d)]===_0x2c6f20){const _0x204379={..._0x335fa6};_0x204379[_0x4b352e(0x225)]=_0x3db1be[_0x335fa6[_0x4b352e(0x225)]],_0xaceb72[_0x4b352e(0x21b)](_0x344c56,_0x204379);}}),{'skeleton':_0x33d174,'cursors':_0xaceb72};}));}return S['of']({'skeleton':null,'cursors':new Map()});}))[_0x58f5e4(0x2f2)](({skeleton:_0x283ad4,cursors:_0x3f56dd})=>{const _0x2069d7=_0x58f5e4;this['_removeCollabCursors'](),_0x283ad4&&this[_0x2069d7(0x1da)](_0x283ad4,_0x3f56dd);}),this[_0x58f5e4(0x123)][_0x58f5e4(0x16b)][_0x58f5e4(0x2f2)](_0xa3c077=>{const _0x3b5992=_0x58f5e4;if(_0xa3c077==null)return;const {skeleton:_0x3eba4c}=_0xa3c077,{scene:_0x2f4a02}=this['_context'];_0x2f4a02[_0x3b5992(0x1a7)]['subscribeEvent'](a[_0x3b5992(0x2c1)](_0x24dd43=>{const _0x4898a7=_0x3b5992;var _0x4ac38c,_0x5bcf8d;const {offsetX:_0x21185b,offsetY:_0x44c9d7}=_0x24dd43,{x:_0x3c5c6a,y:_0x618eb}=_0x2f4a02[_0x4898a7(0xf4)](p[_0x4898a7(0x18b)][_0x4898a7(0x13a)]([_0x21185b,_0x44c9d7])),{scaleX:_0x1d188b,scaleY:_0x4f4c0a}=_0x2f4a02[_0x4898a7(0x247)](),_0xdf5eeb=_0x2f4a02[_0x4898a7(0x171)](p[_0x4898a7(0x23c)][_0x4898a7(0x1c0)]),_0x3634ab=_0x2f4a02[_0x4898a7(0x322)](p[_0x4898a7(0x18b)][_0x4898a7(0x13a)]([_0x3c5c6a,_0x618eb]),_0xdf5eeb),_0xdd636a=_0x3eba4c[_0x4898a7(0x12d)](_0x21185b,_0x44c9d7,_0x1d188b,_0x4f4c0a,_0x3634ab);((_0x4ac38c=this['_lastPointer'])==null?void 0x0:_0x4ac38c[_0x4898a7(0xb4)])===_0xdd636a['column']&&((_0x5bcf8d=this[_0x4898a7(0x21f)])==null?void 0x0:_0x5bcf8d['row'])===_0xdd636a['row']||this[_0x4898a7(0x179)][_0x4898a7(0x316)](_0x1ac3d8=>{_0x1ac3d8['onMouseMove'](_0xdd636a);});},0x64));});}['_updateCollabCursors'](_0x1ea6ea,_0x2c63db){const _0x279c33=_0x500283;var _0x49364d;const _0x315719=(_0x49364d=this[_0x279c33(0x123)][_0x279c33(0x301)]())==null?void 0x0:_0x49364d[_0x279c33(0x2f8)];if(!_0x315719)return;const _0x4433a0=this[_0x279c33(0x24c)]();if(!_0x4433a0)return;this[_0x279c33(0x179)][_0x279c33(0x316)](_0x588453=>{const _0x3ece51=_0x279c33;_0x588453[_0x3ece51(0x119)]();});const {scene:_0x411034}=_0x4433a0,_0x3344e0=$t(Array['from'](_0x2c63db[_0x279c33(0xde)]()))['map'](_0x1213b5=>{const _0x3bbf28=_0x279c33,{color:_0x4fe9a5,range:_0x1b8de9,name:_0x497fb3,selection:_0x1c90c5,sheetID:_0x2d95e4}=_0x1213b5,{startColumn:_0x1e5832,startRow:_0x221e4f,endColumn:_0x4143a4,endRow:_0x4c9215}=_0x1b8de9,_0x384597=q['getCoordByCell'](_0x221e4f,_0x1e5832,_0x411034,_0x315719),_0x2fd630=q[_0x3bbf28(0x258)](_0x4c9215,_0x4143a4,_0x411034,_0x315719),{columnHeaderHeightAndMarginTop:_0x553d3a}=_0x315719,{startX:_0x357db4,startY:_0x28edf0}=_0x384597,{endX:_0x260e7f,endY:_0x599900}=_0x2fd630,_0x1202dc=_0x260e7f-_0x357db4,_0x243a53=_0x599900-_0x28edf0,_0x19e84f={'labelPosition':_0x28edf0-_0x553d3a>=V?'top':'bottom','sheetID':_0x2d95e4,'range':_0x1b8de9,'color':_0x4fe9a5,'name':_0x497fb3,'selection':_0x1c90c5,'left':_0x357db4,'top':_0x28edf0,'width':_0x1202dc,'height':_0x243a53,'evented':!0x1,'zIndex':yt};return new je(_0x497fb3,_0x19e84f);});_0x411034['addObjects'](_0x3344e0,Ut),this[_0x279c33(0x179)]=new Set(_0x3344e0);}['_removeCollabCursors'](){const _0x1c706d=_0x500283;var _0x467976;(_0x467976=this['_cursors'])==null||_0x467976[_0x1c706d(0x316)](_0x581043=>_0x581043[_0x1c706d(0x1ff)]());}[_0x500283(0x24c)](){const _0x2eafaf=_0x500283;return q[_0x2eafaf(0x180)](this['_context'][_0x2eafaf(0xe7)],this[_0x2eafaf(0x22a)]);}};ge=At([ae(0x1,a[_0x500283(0x1bf)](q[_0x500283(0x1e2)])),ae(0x2,a[_0x500283(0x1bf)](x)),ae(0x3,a[_0x500283(0x1bf)](a[_0x500283(0x251)]))],ge);function $t(_0xf0fb5b){const _0x49ca7e=_0x500283,_0x3cae3f=new Map();return _0xf0fb5b['forEach'](_0x4bde9e=>{const _0x1ac656=_0x433a;if(_0x3cae3f[_0x1ac656(0xf7)](_0x4bde9e['selection'])){const _0x5e08df=_0x3cae3f[_0x1ac656(0x277)](_0x4bde9e[_0x1ac656(0x18c)]);_0x5e08df[_0x1ac656(0xcb)]+=',\x20'+_0x4bde9e[_0x1ac656(0xcb)];}else _0x3cae3f[_0x1ac656(0x21b)](_0x4bde9e[_0x1ac656(0x18c)],_0x4bde9e);}),Array[_0x49ca7e(0x1dc)](_0x3cae3f[_0x49ca7e(0xde)]());}var ce={'exports':{}},W={},Ue;function xt(){const _0x2a09c3=_0x500283;if(Ue)return W;Ue=0x1;var _0x318e68=O,_0x48efaf=Symbol[_0x2a09c3(0x24a)](_0x2a09c3(0x220)),_0x321aa4=Symbol[_0x2a09c3(0x24a)](_0x2a09c3(0x28c)),_0x827717=Object[_0x2a09c3(0xd0)][_0x2a09c3(0x15d)],_0x4abb89=_0x318e68[_0x2a09c3(0x30d)][_0x2a09c3(0x2b9)],_0x31a7e5={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function _0x4c518d(_0x2bc9c0,_0x279f86,_0x432527){const _0x1d37e9=_0x2a09c3;var _0x5c0d25,_0x171f35={},_0x358330=null,_0x180866=null;_0x432527!==void 0x0&&(_0x358330=''+_0x432527),_0x279f86[_0x1d37e9(0x157)]!==void 0x0&&(_0x358330=''+_0x279f86[_0x1d37e9(0x157)]),_0x279f86[_0x1d37e9(0x256)]!==void 0x0&&(_0x180866=_0x279f86[_0x1d37e9(0x256)]);for(_0x5c0d25 in _0x279f86)_0x827717['call'](_0x279f86,_0x5c0d25)&&!_0x31a7e5[_0x1d37e9(0x15d)](_0x5c0d25)&&(_0x171f35[_0x5c0d25]=_0x279f86[_0x5c0d25]);if(_0x2bc9c0&&_0x2bc9c0[_0x1d37e9(0xc9)]){for(_0x5c0d25 in(_0x279f86=_0x2bc9c0['defaultProps'],_0x279f86))_0x171f35[_0x5c0d25]===void 0x0&&(_0x171f35[_0x5c0d25]=_0x279f86[_0x5c0d25]);}return{'$$typeof':_0x48efaf,'type':_0x2bc9c0,'key':_0x358330,'ref':_0x180866,'props':_0x171f35,'_owner':_0x4abb89[_0x1d37e9(0x2be)]};}return W['Fragment']=_0x321aa4,W[_0x2a09c3(0x2b7)]=_0x4c518d,W[_0x2a09c3(0x10d)]=_0x4c518d,W;}var Ne;function jt(){const _0x3327a4=_0x500283;return Ne||(Ne=0x1,ce[_0x3327a4(0x25c)]=xt()),ce['exports'];}var N=jt(),E=function(){const _0x3745f8=_0x500283;return E=Object[_0x3745f8(0x2dd)]||function(_0x74a66a){const _0x3eb4ec=_0x3745f8;for(var _0x3c3f46,_0x13afe4=0x1,_0x15701a=arguments['length'];_0x13afe4<_0x15701a;_0x13afe4++){_0x3c3f46=arguments[_0x13afe4];for(var _0xf249f1 in _0x3c3f46)Object[_0x3eb4ec(0xd0)][_0x3eb4ec(0x15d)]['call'](_0x3c3f46,_0xf249f1)&&(_0x74a66a[_0xf249f1]=_0x3c3f46[_0xf249f1]);}return _0x74a66a;},E['apply'](this,arguments);},Bt=function(_0x509df3,_0x5c1015){const _0x43468e=_0x500283;var _0x565bf6={};for(var _0x2b2dc2 in _0x509df3)Object[_0x43468e(0xd0)][_0x43468e(0x15d)][_0x43468e(0x2ad)](_0x509df3,_0x2b2dc2)&&_0x5c1015[_0x43468e(0x323)](_0x2b2dc2)<0x0&&(_0x565bf6[_0x2b2dc2]=_0x509df3[_0x2b2dc2]);if(_0x509df3!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x3767bb=0x0,_0x2b2dc2=Object[_0x43468e(0x25a)](_0x509df3);_0x3767bb<_0x2b2dc2[_0x43468e(0x1f4)];_0x3767bb++)_0x5c1015['indexOf'](_0x2b2dc2[_0x3767bb])<0x0&&Object[_0x43468e(0xd0)][_0x43468e(0x2d7)][_0x43468e(0x2ad)](_0x509df3,_0x2b2dc2[_0x3767bb])&&(_0x565bf6[_0x2b2dc2[_0x3767bb]]=_0x509df3[_0x2b2dc2[_0x3767bb]]);}return _0x565bf6;},Ee=O[_0x500283(0x2ef)](function(_0xed9488,_0x3746df){const _0x5cade0=_0x500283;var _0x33d984=_0xed9488[_0x5cade0(0x231)],_0xf683d8=_0xed9488['id'],_0x439cdd=_0xed9488[_0x5cade0(0x2b4)],_0x5827cd=_0xed9488[_0x5cade0(0x144)],_0x32191d=Bt(_0xed9488,[_0x5cade0(0x231),'id',_0x5cade0(0x2b4),_0x5cade0(0x144)]),_0x4ea06f=_0x5cade0(0x18d)['concat'](_0xf683d8,'\x20')['concat'](_0x439cdd||'')[_0x5cade0(0x17e)](),_0x2a2639=O[_0x5cade0(0x2cf)]('_'['concat'](Ft()));return Be(_0x33d984,''[_0x5cade0(0x1ca)](_0xf683d8),{'defIds':_0x33d984[_0x5cade0(0x28a)],'idSuffix':_0x2a2639[_0x5cade0(0x2be)]},E({'ref':_0x3746df,'className':_0x4ea06f},_0x32191d),_0x5827cd);});function Be(_0x4f787f,_0x1898e7,_0x1e31f2,_0x4103c7,_0x829052){const _0x26ed10=_0x500283;return O[_0x26ed10(0xd4)](_0x4f787f['tag'],E(E({'key':_0x1898e7},Ht(_0x4f787f,_0x1e31f2,_0x829052)),_0x4103c7),(Wt(_0x4f787f,_0x1e31f2)[_0x26ed10(0x193)]||[])[_0x26ed10(0x1d9)](function(_0x414ede,_0x4b3f03){const _0x46881e=_0x26ed10;return Be(_0x414ede,''[_0x46881e(0x1ca)](_0x1898e7,'-')['concat'](_0x4f787f['tag'],'-')[_0x46881e(0x1ca)](_0x4b3f03),_0x1e31f2,void 0x0,_0x829052);}));}function Ht(_0x427f98,_0x141a7a,_0x142354){const _0x433ae7=_0x500283;var _0x35b4fe=E({},_0x427f98['attrs']);_0x142354!=null&&_0x142354[_0x433ae7(0x28b)]&&_0x35b4fe[_0x433ae7(0x12a)]==='colorChannel1'&&(_0x35b4fe[_0x433ae7(0x12a)]=_0x142354[_0x433ae7(0x28b)]);var _0x229cac=_0x141a7a['defIds'];return!_0x229cac||_0x229cac[_0x433ae7(0x1f4)]===0x0||(_0x427f98[_0x433ae7(0xc5)]===_0x433ae7(0xf2)&&_0x35b4fe[_0x433ae7(0x1c7)]&&(_0x35b4fe['xlink:href']=_0x35b4fe['xlink:href']+_0x141a7a[_0x433ae7(0x244)]),Object['entries'](_0x35b4fe)[_0x433ae7(0x316)](function(_0x349760){const _0x3edefe=_0x433ae7;var _0x2bd6d8=_0x349760[0x0],_0x2b2ccd=_0x349760[0x1];typeof _0x2b2ccd=='string'&&(_0x35b4fe[_0x2bd6d8]=_0x2b2ccd[_0x3edefe(0xdb)](/url\(#(.*)\)/,'url(#$1'[_0x3edefe(0x1ca)](_0x141a7a['idSuffix'],')')));})),_0x35b4fe;}function Wt(_0x1ff8ed,_0x4f3bc2){const _0x54fb28=_0x500283;var _0xaa36ca,_0x500fb5=_0x4f3bc2[_0x54fb28(0x28a)];return!_0x500fb5||_0x500fb5[_0x54fb28(0x1f4)]===0x0?_0x1ff8ed:_0x1ff8ed[_0x54fb28(0xc5)]===_0x54fb28(0x148)&&(!((_0xaa36ca=_0x1ff8ed[_0x54fb28(0x193)])===null||_0xaa36ca===void 0x0)&&_0xaa36ca[_0x54fb28(0x1f4)])?E(E({},_0x1ff8ed),{'children':_0x1ff8ed[_0x54fb28(0x193)]['map'](function(_0x5a500f){const _0x9e87fa=_0x54fb28;return typeof _0x5a500f[_0x9e87fa(0x1b8)]['id']==_0x9e87fa(0x189)&&_0x500fb5&&_0x500fb5['indexOf'](_0x5a500f[_0x9e87fa(0x1b8)]['id'])>-0x1?E(E({},_0x5a500f),{'attrs':E(E({},_0x5a500f['attrs']),{'id':_0x5a500f[_0x9e87fa(0x1b8)]['id']+_0x4f3bc2[_0x9e87fa(0x244)]})}):_0x5a500f;})}):_0x1ff8ed;}function Ft(){const _0x2aa79b=_0x500283;return Math[_0x2aa79b(0x302)]()[_0x2aa79b(0x314)](0x24)[_0x2aa79b(0x184)](0x2,0x8);}Ee[_0x500283(0xd9)]=_0x500283(0x291);var Yt={'tag':_0x500283(0x1a8),'attrs':{'fill':_0x500283(0x310),'viewBox':'0\x200\x2016\x2016','width':_0x500283(0x201),'height':_0x500283(0x201)},'children':[{'tag':'g','attrs':{'clipPath':_0x500283(0x169)},'children':[{'tag':'path','attrs':{'stroke':_0x500283(0xcd),'d':_0x500283(0x110),'strokeLinecap':_0x500283(0xf1),'strokeLinejoin':_0x500283(0xf1),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x500283(0x147),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x500283(0x2ea),'d':_0x500283(0x2d4)}}]}]}],'defIds':['off-line-single_clip0_910_343']},He=O['forwardRef'](function(_0x2ba7c5,_0x2e4d3d){const _0x5ba5ea=_0x500283;return O['createElement'](Ee,Object[_0x5ba5ea(0x2dd)]({},_0x2ba7c5,{'id':_0x5ba5ea(0x304),'ref':_0x2e4d3d,'icon':Yt}));});He[_0x500283(0xd9)]='OffLineSingle';var Xt={'tag':_0x500283(0x1a8),'attrs':{'fill':_0x500283(0x310),'viewBox':_0x500283(0x1f9),'width':_0x500283(0x201),'height':_0x500283(0x201)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x500283(0xcd),'d':_0x500283(0x2e9),'strokeLinecap':_0x500283(0xf1),'strokeLinejoin':_0x500283(0xf1),'strokeWidth':1.2}}]},{'tag':_0x500283(0x148),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x500283(0x2e6),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x500283(0xcf)}}]}]}],'defIds':[_0x500283(0x2a8)]},We=O['forwardRef'](function(_0x4c8f13,_0x4ccaf4){const _0x301808=_0x500283;return O[_0x301808(0xd4)](Ee,Object[_0x301808(0x2dd)]({},_0x4c8f13,{'id':'on-line-single','ref':_0x4ccaf4,'icon':Xt}));});We[_0x500283(0xd9)]=_0x500283(0x202);function Fe(_0x598f62){const _0x36958a=_0x500283;var _0x57170b,_0x5a470a,_0x12fa61='';if(typeof _0x598f62==_0x36958a(0x189)||typeof _0x598f62==_0x36958a(0xf5))_0x12fa61+=_0x598f62;else{if(typeof _0x598f62==_0x36958a(0xee)){if(Array[_0x36958a(0x13d)](_0x598f62)){var _0x14ae98=_0x598f62[_0x36958a(0x1f4)];for(_0x57170b=0x0;_0x57170b<_0x14ae98;_0x57170b++)_0x598f62[_0x57170b]&&(_0x5a470a=Fe(_0x598f62[_0x57170b]))&&(_0x12fa61&&(_0x12fa61+='\x20'),_0x12fa61+=_0x5a470a);}else{for(_0x5a470a in _0x598f62)_0x598f62[_0x5a470a]&&(_0x12fa61&&(_0x12fa61+='\x20'),_0x12fa61+=_0x5a470a);}}}return _0x12fa61;}function we(){const _0x1db0e3=_0x500283;for(var _0x2c047d,_0x3d7248,_0x2235a6=0x0,_0x104cfa='',_0x55a422=arguments[_0x1db0e3(0x1f4)];_0x2235a6<_0x55a422;_0x2235a6++)(_0x2c047d=arguments[_0x2235a6])&&(_0x3d7248=Fe(_0x2c047d))&&(_0x104cfa&&(_0x104cfa+='\x20'),_0x104cfa+=_0x3d7248);return _0x104cfa;}const Vt=_0x500283(0x10a),Gt='univer-online-status-title',kt='univer-online-status',qt=_0x500283(0x224),Kt='univer-offline',F={'onlineStatusIcon':Vt,'onlineStatusTitle':Gt,'onlineStatus':kt,'online':qt,'offline':Kt};function zt(_0x30e2c6){const _0x20dd33=_0x500283;switch(_0x30e2c6){case u[_0x20dd33(0x2db)][_0x20dd33(0x19d)]:return'collabStatus.offline';case u[_0x20dd33(0x2db)][_0x20dd33(0x1f5)]:return _0x20dd33(0xdd);case u[_0x20dd33(0x2db)][_0x20dd33(0x1e9)]:return'collabStatus.fetchMiss';case u[_0x20dd33(0x2db)][_0x20dd33(0x195)]:return'collabStatus.notCollab';case u[_0x20dd33(0x2db)][_0x20dd33(0x2bc)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x20dd33(0x228);case u[_0x20dd33(0x2db)][_0x20dd33(0x21c)]:case u[_0x20dd33(0x2db)][_0x20dd33(0x311)]:return _0x20dd33(0x285);}}function Ye(_0x2313b9){const _0x224943=_0x500283,{status$:_0x455404}=_0x2313b9,_0x3aac0f=w[_0x224943(0x1ef)](_0x455404,u[_0x224943(0x2db)][_0x224943(0x195)]),_0x3a147e=a[_0x224943(0x2b8)](a[_0x224943(0x292)]),_0xe9ffc0=a[_0x224943(0x2b8)](u[_0x224943(0x15c)]),_0x4dfc64=_0x3aac0f!==u['CollaborationStatus']['OFFLINE'],_0x191512=_0x3a147e['t'](zt(_0x3aac0f)),_0xed838=we(F[_0x224943(0x12f)],{[F[_0x224943(0x321)]]:_0x4dfc64,[F[_0x224943(0x240)]]:!_0x4dfc64}),_0x4c92de=_0x4dfc64?N['jsx'](We,{}):N[_0x224943(0x2b7)](He,{}),_0x256038=O[_0x224943(0x2c2)](()=>{const _0x54f90a=_0x224943;_0x4dfc64||_0xe9ffc0[_0x54f90a(0x1c6)]();},[_0x4dfc64,_0xe9ffc0]);function _0x15f5c5(){const _0x4688f0=_0x224943;return N[_0x4688f0(0x10d)](_0x4688f0(0x295),{'className':we(_0xed838,_0x4688f0(0x1df)),'onClick':_0x256038,'children':[N[_0x4688f0(0x2b7)](_0x4688f0(0x295),{'className':F[_0x4688f0(0x2e4)],'children':_0x4c92de}),N[_0x4688f0(0x2b7)]('div',{'className':F['onlineStatusTitle'],'children':_0x191512})]});}return _0x4dfc64?_0x15f5c5():N[_0x224943(0x2b7)](M['Tooltip'],{'title':_0x3a147e['t'](_0x224943(0x113)),'children':_0x15f5c5()});}var Jt=Object['defineProperty'],Zt=Object[_0x500283(0x324)],Qt=(_0x14fb01,_0x3108ec,_0xff2328,_0x746f75)=>{const _0x205f48=_0x500283;for(var _0x37937a=_0x746f75>0x1?void 0x0:_0x746f75?Zt(_0x3108ec,_0xff2328):_0x3108ec,_0x594bb1=_0x14fb01[_0x205f48(0x1f4)]-0x1,_0x351319;_0x594bb1>=0x0;_0x594bb1--)(_0x351319=_0x14fb01[_0x594bb1])&&(_0x37937a=(_0x746f75?_0x351319(_0x3108ec,_0xff2328,_0x37937a):_0x351319(_0x37937a))||_0x37937a);return _0x746f75&&_0x37937a&&Jt(_0x3108ec,_0xff2328,_0x37937a),_0x37937a;},k=(_0x40b237,_0x4a3af6)=>(_0x182d46,_0x4f8781)=>_0x4a3af6(_0x182d46,_0x4f8781,_0x40b237);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x500283(0x325)]{constructor(_0x534e89,_0x4eef8c,_0x5156e3,_0x8eb829){const _0x2e133f=_0x500283;super(),_(this,_0x2e133f(0x126),new S[(_0x2e133f(0x28e))](u[_0x2e133f(0x2db)][_0x2e133f(0x195)])),(this[_0x2e133f(0xe6)]=_0x534e89,this[_0x2e133f(0xbc)]=_0x4eef8c,this['_collaborationController']=_0x5156e3,this['_uiPartsService']=_0x8eb829,this[_0x2e133f(0x31f)](),this['_initStatusListener']());}[_0x500283(0xe4)](){const _0x549ef7=_0x500283;this[_0x549ef7(0x326)](this[_0x549ef7(0xe6)][_0x549ef7(0x1b5)][_0x549ef7(0xf6)](S[_0x549ef7(0xe5)](()=>{const _0x2f5ef6=_0x549ef7,_0x13bb77=this[_0x2f5ef6(0xe6)][_0x2f5ef6(0x30f)]();return _0x13bb77?this['_collaborationController']['getCollabEntity$'](_0x13bb77[_0x2f5ef6(0x158)]()):S['of'](null);}),S[_0x549ef7(0xe5)](_0x3be79f=>_0x3be79f?_0x3be79f['status$']:S['of'](u['CollaborationStatus'][_0x549ef7(0x195)])))[_0x549ef7(0x2f2)](_0x5b5dc2=>{const _0x389913=_0x549ef7;this[_0x389913(0x126)][_0x389913(0x1f6)](_0x5b5dc2);}));}[_0x500283(0x31f)](){const _0x50fd7e=_0x500283;this[_0x50fd7e(0x326)](this['_uiPartsService'][_0x50fd7e(0x264)](w[_0x50fd7e(0x1f2)]['HEADER_MENU'],()=>a[_0x50fd7e(0x2c9)](es({'status$':this[_0x50fd7e(0x126)][_0x50fd7e(0xf0)]()}),this[_0x50fd7e(0xbc)])));}},exports[_0x500283(0xc7)]=Qt([k(0x0,a['IUniverInstanceService']),k(0x1,a[_0x500283(0x1bf)](a[_0x500283(0x30e)])),k(0x2,a[_0x500283(0x1bf)](u['CollaborationController'])),k(0x3,w['IUIPartsService'])],exports[_0x500283(0xc7)]);function es(_0x2f8a75){const {status$:_0x51e167}=_0x2f8a75;return function(){const _0x1b4855=_0x433a;return N[_0x1b4855(0x2b7)](Ye,{'status$':_0x51e167});};}var ts=Object[_0x500283(0xcc)],ss=Object[_0x500283(0x324)],ns=(_0x4e9656,_0x36bbde,_0x226e07,_0x4421de)=>{const _0x1b1f0f=_0x500283;for(var _0x45ae60=_0x4421de>0x1?void 0x0:_0x4421de?ss(_0x36bbde,_0x226e07):_0x36bbde,_0x5efb58=_0x4e9656[_0x1b1f0f(0x1f4)]-0x1,_0x580db2;_0x5efb58>=0x0;_0x5efb58--)(_0x580db2=_0x4e9656[_0x5efb58])&&(_0x45ae60=(_0x4421de?_0x580db2(_0x36bbde,_0x226e07,_0x45ae60):_0x580db2(_0x45ae60))||_0x45ae60);return _0x4421de&&_0x45ae60&&ts(_0x36bbde,_0x226e07,_0x45ae60),_0x45ae60;},y=(_0x1e92ad,_0x49adb4)=>(_0x4394d6,_0x4c1c86)=>_0x49adb4(_0x4394d6,_0x4c1c86,_0x1e92ad);let K=class extends a[_0x500283(0x325)]{constructor(_0xaa6dd1,_0x3d99a8,_0x89315a,_0xd82b50,_0x235aed,_0x2112e5){const _0x193c20=_0x500283;super(),this[_0x193c20(0x20a)]=_0xaa6dd1,this[_0x193c20(0x27b)]=_0x3d99a8,this[_0x193c20(0x271)]=_0x89315a,this[_0x193c20(0x1c2)]=_0xd82b50,this[_0x193c20(0x16f)]=_0x235aed,this[_0x193c20(0x1b3)]=_0x2112e5,this[_0x193c20(0x188)](),this[_0x193c20(0x2f5)]();}['_setupBeforeClosingHandler'](){const _0x4e57b7=_0x500283;this[_0x4e57b7(0x326)](this[_0x4e57b7(0x20a)]['registerBeforeClose'](()=>{const _0x43059e=_0x4e57b7;if(this[_0x43059e(0x27b)]['saveTaskMap'][_0x43059e(0x318)])return this['_localeService']['t'](_0x43059e(0x2e1));}));}[_0x500283(0x2f5)](){const _0x59af80=_0x500283;this[_0x59af80(0x326)](this['_collaborationUIEventService']['event$'][_0x59af80(0x2f2)](_0x229824=>{const _0x292e6e=_0x59af80;_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x2d5)]&&this['_messageService'][_0x292e6e(0x130)]({'type':M[_0x292e6e(0xd7)]['Warning'],'content':this[_0x292e6e(0x1b3)]['t']('collaboration.single-unit.warning')}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x17c)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M['MessageType']['Warning'],'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x1bd))}),_0x229824['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x292e6e(0x16f)][_0x292e6e(0x130)]({'title':this[_0x292e6e(0x1b3)]['t']('permission.title'),'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x1a2)),'type':_0x292e6e(0x135),'duration':0x0}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x1f5)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M[_0x292e6e(0xd7)]['Error'],'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x1bd))+'('+_0x229824[_0x292e6e(0xeb)]+')'}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x1be)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M[_0x292e6e(0xd7)][_0x292e6e(0x121)],'content':this[_0x292e6e(0x1b3)]['t'](_0x229824[_0x292e6e(0xeb)]||'')}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x1e5)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M[_0x292e6e(0xd7)][_0x292e6e(0x121)],'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x2de))}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x278)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M['MessageType'][_0x292e6e(0x11f)],'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x12e))}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x209)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M[_0x292e6e(0xd7)][_0x292e6e(0x11f)],'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x12b))});}));}};K=ns([y(0x0,w[_0x500283(0x13f)]),y(0x1,u[_0x500283(0x2ce)]),y(0x2,a['Inject'](u[_0x500283(0x1ec)])),y(0x3,w[_0x500283(0x1a5)]),y(0x4,w[_0x500283(0x154)]),y(0x5,a[_0x500283(0x1bf)](a['LocaleService']))],K);const is=_0x500283(0x309),Le={},Re=a[_0x500283(0x303)](_0x500283(0x24e));var rs=Object[_0x500283(0xcc)],os=Object['getOwnPropertyDescriptor'],as=(_0x38bd53,_0x1309b1,_0x133415,_0x44c33a)=>{const _0x17a0cf=_0x500283;for(var _0x2520f4=_0x44c33a>0x1?void 0x0:_0x44c33a?os(_0x1309b1,_0x133415):_0x1309b1,_0xa7ce39=_0x38bd53[_0x17a0cf(0x1f4)]-0x1,_0x5f43fc;_0xa7ce39>=0x0;_0xa7ce39--)(_0x5f43fc=_0x38bd53[_0xa7ce39])&&(_0x2520f4=(_0x44c33a?_0x5f43fc(_0x1309b1,_0x133415,_0x2520f4):_0x5f43fc(_0x2520f4))||_0x2520f4);return _0x44c33a&&_0x2520f4&&rs(_0x1309b1,_0x133415,_0x2520f4),_0x2520f4;},Y=(_0x270999,_0x268f37)=>(_0x4f8839,_0x5e8cf0)=>_0x268f37(_0x4f8839,_0x5e8cf0,_0x270999);exports['CollaborationDataLoaderController']=class extends a['RxDisposable']{constructor(_0x45f07a,_0xce9059,_0x2ec7ca,_0x1512be,_0x458ef4){const _0x47513d=_0x500283;super(),this[_0x47513d(0x20c)]=_0x45f07a,this[_0x47513d(0x159)]=_0xce9059,this[_0x47513d(0xc1)]=_0x2ec7ca,this[_0x47513d(0x1cd)]=_0x1512be,_0x458ef4?_0x458ef4==null||_0x458ef4[_0x47513d(0x2ff)]()['then'](()=>this['_init']()):(this[_0x47513d(0x159)][_0x47513d(0x27c)](_0x47513d(0x234),_0x47513d(0x138)),this[_0x47513d(0x29a)]());}async[_0x500283(0x29a)](){const _0x260ed6=_0x500283,_0x2be98d=this[_0x260ed6(0x20c)][_0x260ed6(0x1d4)](_0x260ed6(0xe7)),_0x39f755=this[_0x260ed6(0x20c)]['getParam'](_0x260ed6(0x175)),_0x37b4a2=this[_0x260ed6(0x20c)]['getParam'](_0x260ed6(0xca));if(!_0x2be98d||!_0x39f755){this[_0x260ed6(0x159)][_0x260ed6(0x27c)]('[CollaborationDataLoaderController]',_0x260ed6(0xe2));return;}const _0x57271f=await this[_0x260ed6(0x1cd)]['loadUnit'](_0x2be98d,Number(_0x39f755),_0x37b4a2);_0x57271f&&_0x57271f instanceof a[_0x260ed6(0x306)]&&this[_0x260ed6(0x17b)](_0x57271f);}async[_0x500283(0x17b)](_0x5acaee){const _0xdce3b4=_0x500283;await this[_0xdce3b4(0x131)](_0x5acaee),_0x5acaee['activeSheet$']['pipe'](S[_0xdce3b4(0x133)](this[_0xdce3b4(0x23b)]))['subscribe'](_0xa9e222=>{const _0xb80929=_0xdce3b4;_0xa9e222&&this[_0xb80929(0x31c)](_0xa9e222);}),this[_0xdce3b4(0x20c)][_0xdce3b4(0x2b6)]['pipe'](S[_0xdce3b4(0x133)](this[_0xdce3b4(0x23b)]))[_0xdce3b4(0x2f2)](()=>this[_0xdce3b4(0x131)](_0x5acaee));}[_0x500283(0x31c)](_0x1bf159,_0x4993e4=!0x1){const _0x3a7aea=_0x500283,_0x1d9037=this['_urlService'][_0x3a7aea(0x1d4)](_0x3a7aea(0xca));_0x1bf159[_0x3a7aea(0x14f)]()!==_0x1d9037&&this['_urlService']['setParam'](_0x3a7aea(0xca),_0x1bf159[_0x3a7aea(0x14f)](),_0x4993e4);}async['_updateSubUnitFromURLParams'](_0x5b7fd5){const _0x58c381=_0x500283;var _0x3fd70d;const _0x1995ce=this[_0x58c381(0x20c)][_0x58c381(0x1d4)](_0x58c381(0xca));if(!_0x1995ce||!_0x5b7fd5[_0x58c381(0x1f8)](_0x1995ce)){const _0x3b7f01=_0x5b7fd5['getUnhiddenWorksheets']()[0x0],_0x5f3697=_0x5b7fd5[_0x58c381(0x1f8)](_0x3b7f01);if(!_0x5f3697)return;this['_updateURLWithCurrentState'](_0x5f3697,!0x0),await this[_0x58c381(0xc1)]['executeCommand'](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x5b7fd5[_0x58c381(0x158)](),'subUnitId':_0x3b7f01});return;}((_0x3fd70d=_0x5b7fd5[_0x58c381(0x210)]())==null?void 0x0:_0x3fd70d[_0x58c381(0x14f)]())!==_0x1995ce&&await this[_0x58c381(0xc1)][_0x58c381(0x168)](I[_0x58c381(0x197)]['id'],{'unitId':_0x5b7fd5[_0x58c381(0x158)](),'subUnitId':_0x1995ce});}},exports['CollaborationDataLoaderController']=as([Y(0x0,Re),Y(0x1,a[_0x500283(0x2b5)]),Y(0x2,a[_0x500283(0x268)]),Y(0x3,a['Inject'](u[_0x500283(0x312)])),Y(0x4,a[_0x500283(0x136)](tt[_0x500283(0x2ed)]))],exports[_0x500283(0x26c)]);var cs=Object[_0x500283(0xcc)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x553b16,_0x36376c,_0x322945,_0x390a7c)=>{const _0x280711=_0x500283;for(var _0x37511f=_0x390a7c>0x1?void 0x0:_0x390a7c?ls(_0x36376c,_0x322945):_0x36376c,_0x3d0f14=_0x553b16[_0x280711(0x1f4)]-0x1,_0x3323dd;_0x3d0f14>=0x0;_0x3d0f14--)(_0x3323dd=_0x553b16[_0x3d0f14])&&(_0x37511f=(_0x390a7c?_0x3323dd(_0x36376c,_0x322945,_0x37511f):_0x3323dd(_0x37511f))||_0x37511f);return _0x390a7c&&_0x37511f&&cs(_0x36376c,_0x322945,_0x37511f),_0x37511f;},le=(_0x341297,_0x4a0a51)=>(_0x3091ad,_0x2da64a)=>_0x4a0a51(_0x3091ad,_0x2da64a,_0x341297);let z=class{constructor(_0x162d5a,_0x37dc8a,_0x23c6ca){const _0xae7e3f=_0x500283;this['_injector']=_0x162d5a,this[_0xae7e3f(0x14c)]=_0x37dc8a,this[_0xae7e3f(0x1a0)]=_0x23c6ca;}[_0x500283(0x1eb)](_0x970617){const _0x3ce59c=_0x500283;this[_0x3ce59c(0x2f6)](_0x970617),this[_0x3ce59c(0x2a5)](_0x970617);}[_0x500283(0x2a9)](_0x2e4f57){const _0x6d530d=_0x500283,{unitID:_0x9deb64}=_0x2e4f57,_0x4900b5=this[_0x6d530d(0x1a0)][_0x6d530d(0x267)](_0x9deb64)['with'](b[_0x6d530d(0x297)]),{redoCache:_0x24f62e}=_0x4900b5[_0x6d530d(0x260)]();if(_0x24f62e[_0x6d530d(0x1f4)]===0x0)return _0x2e4f57;let _0xdc6c0e=a[_0x6d530d(0xba)][_0x6d530d(0x1a9)](_0x2e4f57[_0x6d530d(0x15e)][0x0]);for(let _0x19efa7=0x0;_0x19efa7<_0x24f62e[_0x6d530d(0x1f4)];_0x19efa7++){const _0x9e6a17={'id':'doc.mutation.rich-text-editing','params':{..._0x24f62e[_0x19efa7]}},_0x5e7388=this[_0x6d530d(0x14c)][_0x6d530d(0x19b)](_0xdc6c0e,_0x9e6a17,!0x1);if(g[_0x6d530d(0x156)](_0x5e7388))throw _0x5e7388[_0x6d530d(0x135)];_0xdc6c0e=_0x5e7388['m1Prime'];}return{...a[_0x6d530d(0xba)]['deepClone'](_0x2e4f57),'mutations':[_0xdc6c0e]};}['_transformUndoRedoStack'](_0x21ad82){const _0x2715f0=_0x500283,{unitID:_0x44ff2e}=_0x21ad82,_0x3c58db=this[_0x2715f0(0x1a0)][_0x2715f0(0x267)](_0x44ff2e)[_0x2715f0(0x1c9)](b[_0x2715f0(0x297)]),{undoCache:_0x257e71,redoCache:_0x216b02}=_0x3c58db[_0x2715f0(0x260)]();if(_0x257e71['length']===0x0||_0x216b02[_0x2715f0(0x1f4)]===0x0)return;const _0xacf1e6=[],_0x5760d6=[];let _0x42f84e=a[_0x2715f0(0xba)][_0x2715f0(0x1a9)](_0x21ad82['mutations'][0x0]),_0x380cf2=a['Tools']['deepClone'](_0x21ad82[_0x2715f0(0x15e)][0x0]);for(let _0x3854bd=_0x257e71[_0x2715f0(0x1f4)]-0x1;_0x3854bd>=0x0;_0x3854bd--){const _0x1c4d86={'id':'doc.mutation.rich-text-editing','params':{..._0x257e71[_0x3854bd]}},_0x5cef59={'id':_0x2715f0(0x294),'params':{..._0x216b02[_0x3854bd]}},_0x5eb779=this[_0x2715f0(0x14c)][_0x2715f0(0x19b)](_0x42f84e,_0x1c4d86,!0x1),_0xf72e33=this[_0x2715f0(0x14c)][_0x2715f0(0x19b)](_0x380cf2,_0x5cef59,!0x1);if(g['isTransformMutationFailure'](_0x5eb779))throw _0x5eb779[_0x2715f0(0x135)];if(g[_0x2715f0(0x156)](_0xf72e33))throw _0xf72e33[_0x2715f0(0x135)];_0xacf1e6[_0x2715f0(0x1b1)](_0x5eb779['m2Prime'][_0x2715f0(0x2a0)]),_0x5760d6[_0x2715f0(0x1b1)](_0xf72e33[_0x2715f0(0x30c)]['params']),_0x42f84e=_0x5eb779[_0x2715f0(0xbd)],_0x380cf2=_0xf72e33['m1Prime'];}_0x3c58db[_0x2715f0(0x300)]({'undoCache':_0xacf1e6,'redoCache':_0x5760d6});}[_0x500283(0x2a5)](_0x21931f){const _0xe8249b=_0x500283,{unitID:_0x8001ce}=_0x21931f,_0x50ec5d=this['_renderManagerService'][_0xe8249b(0x267)](_0x8001ce)['with'](b[_0xe8249b(0x297)]),_0x24e6e4=_0x50ec5d[_0xe8249b(0x1d1)]();if(_0x24e6e4==null)return;const _0x467c04=[{'id':_0xe8249b(0x294),'params':{'unitId':_0x21931f[_0xe8249b(0x25f)],'actions':null,'textRanges':[_0x24e6e4]}}],_0xbfac4a=this[_0xe8249b(0x14c)][_0xe8249b(0x216)](_0x21931f,_0x467c04);if(!g[_0xe8249b(0x2eb)](_0xbfac4a))throw _0xbfac4a[_0xe8249b(0x135)];const _0x16f05d=_0xbfac4a[_0xe8249b(0x30c)][0x0][_0xe8249b(0x2a0)]['textRanges'];Array['isArray'](_0x16f05d)&&_0x16f05d[_0xe8249b(0x1f4)]&&_0x50ec5d[_0xe8249b(0x132)](_0x16f05d[0x0]);}};z=hs([le(0x0,a['Inject'](a[_0x500283(0x30e)])),le(0x1,g[_0x500283(0x103)]),le(0x2,p[_0x500283(0x15b)])],z);var _s=Object[_0x500283(0xcc)],us=Object[_0x500283(0x324)],ds=(_0x509ab4,_0x60bfb6,_0x450bc1,_0x132f50)=>{for(var _0x2ea8a7=_0x132f50>0x1?void 0x0:_0x132f50?us(_0x60bfb6,_0x450bc1):_0x60bfb6,_0x34f2ff=_0x509ab4['length']-0x1,_0x2a0f66;_0x34f2ff>=0x0;_0x34f2ff--)(_0x2a0f66=_0x509ab4[_0x34f2ff])&&(_0x2ea8a7=(_0x132f50?_0x2a0f66(_0x60bfb6,_0x450bc1,_0x2ea8a7):_0x2a0f66(_0x2ea8a7))||_0x2ea8a7);return _0x132f50&&_0x2ea8a7&&_s(_0x60bfb6,_0x450bc1,_0x2ea8a7),_0x2ea8a7;},he=(_0x47e9a7,_0x1e62c6)=>(_0x3f9146,_0x203116)=>_0x1e62c6(_0x3f9146,_0x203116,_0x47e9a7);let J=class{constructor(_0x501033,_0x6428b8,_0x9f1cea){const _0x49c4d0=_0x500283;this[_0x49c4d0(0xbc)]=_0x501033,this[_0x49c4d0(0x14c)]=_0x6428b8,this[_0x49c4d0(0x1e8)]=_0x9f1cea;}['transformStateCache'](_0x367fc9){this['_transformHistoryAndStateStack'](_0x367fc9);}[_0x500283(0x2a9)](_0x3492ad){const _0x2428e7=_0x500283,{unitID:_0x57c7b4}=_0x3492ad,{collaboration:_0x19ed25}=this['_docStateChangeManagerService']['getStateCache'](_0x57c7b4);if(_0x19ed25[_0x2428e7(0x1f4)]===0x0)return _0x3492ad;let _0x1fa954=a[_0x2428e7(0xba)][_0x2428e7(0x1a9)](_0x3492ad['mutations'][0x0]);for(let _0x1fce8d=0x0;_0x1fce8d<_0x19ed25[_0x2428e7(0x1f4)];_0x1fce8d++){const _0x575736={'id':_0x2428e7(0x294),'params':{'unitId':_0x19ed25[_0x1fce8d][_0x2428e7(0x25e)],..._0x19ed25[_0x1fce8d][_0x2428e7(0x1d6)]}},_0x32821f=this[_0x2428e7(0x14c)]['transformMutation'](_0x1fa954,_0x575736,!0x1);if(g[_0x2428e7(0x156)](_0x32821f))throw _0x32821f[_0x2428e7(0x135)];_0x1fa954=_0x32821f[_0x2428e7(0xbd)];}return{...a[_0x2428e7(0xba)][_0x2428e7(0x1a9)](_0x3492ad),'mutations':[_0x1fa954]};}[_0x500283(0x2c0)](_0x4d122e){const _0x1d0a10=_0x500283,{unitID:_0x2c469d}=_0x4d122e,{history:_0x4cfe9c,collaboration:_0x13b51d}=this[_0x1d0a10(0x1e8)]['getStateCache'](_0x2c469d);if(_0x4cfe9c['length']===0x0&&_0x13b51d[_0x1d0a10(0x1f4)]===0x0)return;const _0x53df69=[],_0x1849c6=[];let _0x24ead5=a[_0x1d0a10(0xba)][_0x1d0a10(0x1a9)](_0x4d122e[_0x1d0a10(0x15e)][0x0]),_0xf57b26=a['Tools']['deepClone'](_0x4d122e[_0x1d0a10(0x15e)][0x0]);for(let _0x4b235b=_0x4cfe9c[_0x1d0a10(0x1f4)]-0x1;_0x4b235b>=0x0;_0x4b235b--){const _0x2f7eec={'id':_0x1d0a10(0x294),'params':{'unitId':_0x4cfe9c[_0x4b235b][_0x1d0a10(0x25e)],..._0x4cfe9c[_0x4b235b]['undoState']}},_0x13fc55={'id':_0x1d0a10(0x294),'params':{'unitId':_0x4cfe9c[_0x4b235b][_0x1d0a10(0x25e)],..._0x4cfe9c[_0x4b235b][_0x1d0a10(0x1d6)]}},_0x23e2f1=this[_0x1d0a10(0x14c)][_0x1d0a10(0x19b)](_0x24ead5,_0x2f7eec,!0x1),_0x4388a9=this[_0x1d0a10(0x14c)]['transformMutation'](_0xf57b26,_0x13fc55,!0x1);if(g[_0x1d0a10(0x156)](_0x23e2f1))throw _0x23e2f1['error'];if(g[_0x1d0a10(0x156)](_0x4388a9))throw _0x4388a9[_0x1d0a10(0x135)];_0x53df69[_0x1d0a10(0x1b1)]({..._0x4cfe9c[_0x4b235b],'undoState':_0x23e2f1[_0x1d0a10(0x30c)][_0x1d0a10(0x2a0)],'redoState':_0x4388a9[_0x1d0a10(0x30c)][_0x1d0a10(0x2a0)]}),_0x24ead5=_0x23e2f1[_0x1d0a10(0xbd)],_0xf57b26=_0x4388a9[_0x1d0a10(0xbd)];}_0x24ead5=a[_0x1d0a10(0xba)][_0x1d0a10(0x1a9)](_0x4d122e[_0x1d0a10(0x15e)][0x0]),_0xf57b26=a['Tools'][_0x1d0a10(0x1a9)](_0x4d122e[_0x1d0a10(0x15e)][0x0]);for(let _0x53c153=_0x13b51d['length']-0x1;_0x53c153>=0x0;_0x53c153--){const _0x19e851={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x13b51d[_0x53c153][_0x1d0a10(0x25e)],..._0x13b51d[_0x53c153][_0x1d0a10(0x1ee)]}},_0x215164={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x13b51d[_0x53c153][_0x1d0a10(0x25e)],..._0x13b51d[_0x53c153]['redoState']}},_0x1e9425=this[_0x1d0a10(0x14c)]['transformMutation'](_0x24ead5,_0x19e851,!0x1),_0x1a9ed9=this[_0x1d0a10(0x14c)][_0x1d0a10(0x19b)](_0xf57b26,_0x215164,!0x1);if(g[_0x1d0a10(0x156)](_0x1e9425))throw _0x1e9425[_0x1d0a10(0x135)];if(g[_0x1d0a10(0x156)](_0x1a9ed9))throw _0x1a9ed9['error'];_0x1849c6[_0x1d0a10(0x1b1)]({..._0x13b51d[_0x53c153],'undoState':_0x1e9425[_0x1d0a10(0x30c)]['params'],'redoState':_0x1a9ed9[_0x1d0a10(0x30c)][_0x1d0a10(0x2a0)]}),_0x24ead5=_0x1e9425[_0x1d0a10(0xbd)],_0xf57b26=_0x1a9ed9[_0x1d0a10(0xbd)];}this['_docStateChangeManagerService']['setStateCache'](_0x2c469d,{'history':_0x53df69,'collaboration':_0x1849c6});}};J=ds([he(0x0,a['Inject'](a['Injector'])),he(0x1,g['ITransformService']),he(0x2,a[_0x500283(0x1bf)](b['DocStateChangeManagerService']))],J);var fs=Object[_0x500283(0xcc)],Ss=Object[_0x500283(0x324)],vs=(_0x5bb432,_0x1d4100,_0x50b5d1,_0x2cd208)=>{const _0x2ab28e=_0x500283;for(var _0x41bb39=_0x2cd208>0x1?void 0x0:_0x2cd208?Ss(_0x1d4100,_0x50b5d1):_0x1d4100,_0x256857=_0x5bb432[_0x2ab28e(0x1f4)]-0x1,_0x42fa9b;_0x256857>=0x0;_0x256857--)(_0x42fa9b=_0x5bb432[_0x256857])&&(_0x41bb39=(_0x2cd208?_0x42fa9b(_0x1d4100,_0x50b5d1,_0x41bb39):_0x42fa9b(_0x41bb39))||_0x41bb39);return _0x2cd208&&_0x41bb39&&fs(_0x1d4100,_0x50b5d1,_0x41bb39),_0x41bb39;},Ae=(_0x4ddfcd,_0x34e732)=>(_0x286965,_0x416a37)=>_0x34e732(_0x286965,_0x416a37,_0x4ddfcd);let Z=class{constructor(_0x546190,_0x50604b){const _0x164577=_0x500283;this[_0x164577(0xbc)]=_0x546190,this[_0x164577(0x14c)]=_0x50604b;}['transformSelections'](_0x341649){const _0x48f118=_0x500283;var _0xbe6f02;const _0x5d9d74=this[_0x48f118(0xbc)][_0x48f118(0x277)](X[_0x48f118(0x125)]),_0xde96a5=(_0xbe6f02=_0x5d9d74[_0x48f118(0x217)]())!=null?_0xbe6f02:[];if(_0xde96a5[_0x48f118(0x1f4)]===0x0)return;const _0x28ac45=_0x341649[_0x48f118(0x25f)],_0x24dffa=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x28ac45,'actions':null,'textRanges':_0xde96a5}}],_0x2a623a=this['_transformService'][_0x48f118(0x216)](_0x341649,_0x24dffa);if(!g[_0x48f118(0x2eb)](_0x2a623a))throw _0x2a623a[_0x48f118(0x135)];const _0x2b0b81=_0x2a623a[_0x48f118(0x30c)][0x0][_0x48f118(0x2a0)][_0x48f118(0x2ec)];Array[_0x48f118(0x13d)](_0x2b0b81)&&_0x2b0b81['length']&&_0x5d9d74[_0x48f118(0x19a)](_0x2b0b81,{'unitId':_0x28ac45,'subUnitId':_0x28ac45},!0x1);}};Z=vs([Ae(0x0,a[_0x500283(0x1bf)](a['Injector'])),Ae(0x1,g[_0x500283(0x103)])],Z);var ms=Object['defineProperty'],Is=Object[_0x500283(0x324)],gs=(_0x480456,_0x171b33,_0x1c2d76,_0x4ffd91)=>{for(var _0x11b3c1=_0x4ffd91>0x1?void 0x0:_0x4ffd91?Is(_0x171b33,_0x1c2d76):_0x171b33,_0x5c7630=_0x480456['length']-0x1,_0x21b7d8;_0x5c7630>=0x0;_0x5c7630--)(_0x21b7d8=_0x480456[_0x5c7630])&&(_0x11b3c1=(_0x4ffd91?_0x21b7d8(_0x171b33,_0x1c2d76,_0x11b3c1):_0x21b7d8(_0x11b3c1))||_0x11b3c1);return _0x4ffd91&&_0x11b3c1&&ms(_0x171b33,_0x1c2d76,_0x11b3c1),_0x11b3c1;},P=(_0x2f9efd,_0x543f6f)=>(_0x145a43,_0x5ceeaa)=>_0x543f6f(_0x145a43,_0x5ceeaa,_0x2f9efd);let Q=class extends a[_0x500283(0x325)]{constructor(_0x5cf573,_0x209959,_0x1ef017,_0x39fcee,_0x4e5818,_0x18f450,_0x5e3a80,_0x3d3e51){const _0x559151=_0x500283;super(),_(this,'_status$',new S[(_0x559151(0x28e))](u[_0x559151(0x2db)]['NOT_COLLAB'])),(this[_0x559151(0x1e8)]=_0x5cf573,this[_0x559151(0xb5)]=_0x209959,this['_docTransformIMECacheService']=_0x1ef017,this[_0x559151(0x19f)]=_0x39fcee,this[_0x559151(0x165)]=_0x4e5818,this[_0x559151(0x2a7)]=_0x18f450,this['_messageService']=_0x5e3a80,this[_0x559151(0x1b3)]=_0x3d3e51,this['_initEntityListener']());}[_0x500283(0x1ea)](){const _0x2bd8c5=_0x500283;this[_0x2bd8c5(0x326)](this[_0x2bd8c5(0xb5)][_0x2bd8c5(0x18e)]['subscribe'](_0x9c3cb6=>{const _0x369c59=_0x2bd8c5,_0x307f99=this[_0x369c59(0x1e8)][_0x369c59(0x284)][_0x369c59(0x2f2)](_0x31a031=>{const _0x4bc029=_0x369c59;if(_0x31a031==null)return;const {unitId:_0x2c210c,redoState:_0x319d26,commandId:_0x1003b3}=_0x31a031;if(_0x2c210c!==_0x9c3cb6[_0x4bc029(0x25f)])return;const _0x323166={'id':_0x1003b3,'type':a[_0x4bc029(0x20f)][_0x4bc029(0x167)],'params':{'unitId':_0x2c210c,'actions':_0x319d26[_0x4bc029(0x2a4)],'textRanges':null}};_0x9c3cb6[_0x4bc029(0x17a)](_0x323166);});if(_0x9c3cb6['disposeWithMe'](_0x307f99),_0x9c3cb6 instanceof u['DocCollaborationEntity']){const _0x2a2603={'onTransformIME':_0xa86751=>this[_0x369c59(0x143)][_0x369c59(0x1eb)](_0xa86751),'onTransformState':_0xb0c348=>this[_0x369c59(0x19f)][_0x369c59(0x2fc)](_0xb0c348),'onTransformSelections':_0x58eb0f=>this[_0x369c59(0x165)]['transformSelections'](_0x58eb0f),'onSyncEditingCollabCursor':_0x43987a=>this[_0x369c59(0x2a7)]['syncEditingCollabCursor'](_0x43987a),'onTransformRemoteChangesetByIMECache':_0xd643d7=>this['_docTransformIMECacheService'][_0x369c59(0x2a9)](_0xd643d7),'onTransformRemoteChangesetByStateCache':_0xb5d894=>this[_0x369c59(0x19f)]['transformRemoteChangeset'](_0xb5d894)};_0x9c3cb6[_0x369c59(0x257)](_0x2a2603);}}));}};Q=gs([P(0x0,a['Inject'](b['DocStateChangeManagerService'])),P(0x1,a[_0x500283(0x1bf)](u[_0x500283(0x2f3)])),P(0x2,a[_0x500283(0x1bf)](z)),P(0x3,a[_0x500283(0x1bf)](J)),P(0x4,a[_0x500283(0x1bf)](Z)),P(0x5,a[_0x500283(0x1bf)](be)),P(0x6,w[_0x500283(0x1a5)]),P(0x7,a[_0x500283(0x1bf)](a[_0x500283(0x292)]))],Q);var ps=Object[_0x500283(0xcc)],Cs=Object[_0x500283(0x324)],bs=(_0x1ccd9d,_0x5e0300,_0x2959f0,_0x299a82)=>{const _0x1b6f1f=_0x500283;for(var _0x4f49f3=_0x299a82>0x1?void 0x0:_0x299a82?Cs(_0x5e0300,_0x2959f0):_0x5e0300,_0xd986c4=_0x1ccd9d[_0x1b6f1f(0x1f4)]-0x1,_0x565922;_0xd986c4>=0x0;_0xd986c4--)(_0x565922=_0x1ccd9d[_0xd986c4])&&(_0x4f49f3=(_0x299a82?_0x565922(_0x5e0300,_0x2959f0,_0x4f49f3):_0x565922(_0x4f49f3))||_0x4f49f3);return _0x299a82&&_0x4f49f3&&ps(_0x5e0300,_0x2959f0,_0x4f49f3),_0x4f49f3;},_e=(_0x28caba,_0x4f6a25)=>(_0x3854d7,_0x314ea4)=>_0x4f6a25(_0x3854d7,_0x314ea4,_0x28caba);let pe=class extends a[_0x500283(0x325)]{constructor(_0xc6d1f,_0x32cf0a,_0x5d4b87){const _0x38f446=_0x500283;super(),_(this,_0x38f446(0x1dd),new Map()),_(this,_0x38f446(0x233),new Map()),_(this,_0x38f446(0x1ed),!0x1),(this[_0x38f446(0x101)]=_0xc6d1f,this['_localStorageService']=_0x32cf0a,this[_0x38f446(0x196)]=_0x5d4b87);}[_0x500283(0x114)](){this['_disabled']=!0x0;}[_0x500283(0x1bc)](){const _0x4f2db9=_0x500283;this[_0x4f2db9(0x1ed)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x500283(0x1ff)](){const _0x4c1bce=_0x500283;this[_0x4c1bce(0x19c)]()['then'](()=>super['dispose']());}async[_0x500283(0xe9)](_0x33ce36){const _0x50d9ff=_0x500283;return this[_0x50d9ff(0x1ed)]?null:this['_localStorageService'][_0x50d9ff(0x2ab)](u['getLocalCacheKey'](_0x33ce36));}async['saveOfflineData'](_0x3f049e,_0x4e7bfa){const _0x50d25e=_0x500283;return!!this[_0x50d25e(0x178)][_0x50d25e(0x2c4)](_0x3f049e,_0x4e7bfa);}[_0x500283(0x1b7)](_0x4f8487,_0x2524dd,_0x22a66f,_0x1f3dea){const _0x2fb9c2=_0x500283,_0x173b29=this[_0x2fb9c2(0x196)][_0x2fb9c2(0x112)](_0x4f8487);this['_cachedData'][_0x2fb9c2(0x21b)](_0x4f8487,{'unitID':_0x4f8487,'type':_0x2524dd,'awaitingChangeset':_0x22a66f,'mutations':_0x1f3dea,'rev':_0x173b29}),this['_saveTaskMap'][_0x2fb9c2(0xf7)](_0x4f8487)||this[_0x2fb9c2(0x30b)](_0x4f8487);}[_0x500283(0x30b)](_0x260c47){const _0x120169=_0x500283,_0x309482=this['_getSaveTimeout']();_0x309482===0x0?this[_0x120169(0x134)](_0x260c47):this[_0x120169(0x233)]['set'](_0x260c47,setTimeout(()=>this['_saveCache'](_0x260c47),_0x309482));}[_0x500283(0x239)](){const _0x6f8700=_0x500283;var _0x17611d;return(_0x17611d=this[_0x6f8700(0x101)][_0x6f8700(0xc8)](u[_0x6f8700(0x2d3)]))!=null?_0x17611d:u[_0x6f8700(0xb6)];}[_0x500283(0x134)](_0x57b9d0){const _0x445026=_0x500283,_0x126980=this['_saveTaskMap']['get'](_0x57b9d0);return _0x126980!==void 0x0&&window[_0x445026(0x22b)](_0x126980),this['_localStorageService'][_0x445026(0x2c4)](u['getLocalCacheKey'](_0x57b9d0),this[_0x445026(0x1dd)]['get'](_0x57b9d0))[_0x445026(0x1ba)](()=>this[_0x445026(0x233)][_0x445026(0x2aa)](_0x57b9d0));}async['exhaustSavingTask'](){const _0x413273=_0x500283,_0x268ce1=[];this['_saveTaskMap']['forEach']((_0x8d6889,_0x3e4cf7)=>{const _0x9259e3=_0x433a;window[_0x9259e3(0x22b)](_0x8d6889),_0x268ce1['push'](this[_0x9259e3(0x134)](_0x3e4cf7)['then'](()=>{const _0x2ee03a=_0x9259e3;this[_0x2ee03a(0x233)]['delete'](_0x3e4cf7);}));}),await Promise[_0x413273(0x1ae)](_0x268ce1);}};pe=bs([_e(0x0,a[_0x500283(0x270)]),_e(0x1,a[_0x500283(0x259)]),_e(0x2,a[_0x500283(0x1bf)](g[_0x500283(0x313)]))],pe);class Xe extends a['RxDisposable']{constructor(){const _0x3253bb=_0x500283;super(),_(this,_0x3253bb(0x2b6)),this[_0x3253bb(0x2b6)]=S[_0x3253bb(0x117)](window,_0x3253bb(0xef))['pipe'](S['takeUntil'](this[_0x3253bb(0x23b)]),S['shareReplay'](0x1),S[_0x3253bb(0x10c)](void 0x0));}[_0x500283(0xea)](_0x1e6172,_0x175e6c,_0x18e869=!0x1){const _0xa8074d=_0x500283,_0x1566de=new URL(window[_0xa8074d(0x1e7)][_0xa8074d(0x108)]);_0x1566de['searchParams'][_0xa8074d(0x21b)](_0x1e6172,_0x175e6c),_0x18e869?window[_0xa8074d(0x105)][_0xa8074d(0x102)]('','',_0x1566de[_0xa8074d(0x314)]()):window[_0xa8074d(0x105)][_0xa8074d(0x2c7)]('','',_0x1566de[_0xa8074d(0x314)]());}[_0x500283(0x211)](_0x579857,_0x16e7ef=!0x1){const _0x5200bc=_0x500283,_0xf8146f=new URL(window[_0x5200bc(0x1e7)]['href']);_0xf8146f['searchParams'][_0x5200bc(0x2aa)](_0x579857),_0x16e7ef?window['history'][_0x5200bc(0x102)]('','',_0xf8146f[_0x5200bc(0x314)]()):window[_0x5200bc(0x105)][_0x5200bc(0x2c7)]('','',_0xf8146f[_0x5200bc(0x314)]());}[_0x500283(0x1d4)](_0x356377){const _0x1ec471=_0x500283;var _0x5eb709;return(_0x5eb709=new URL(window[_0x1ec471(0x1e7)]['href'])[_0x1ec471(0x2e5)][_0x1ec471(0x277)](_0x356377))!=null?_0x5eb709:void 0x0;}}var Ve=Object[_0x500283(0xcc)],Es=Object[_0x500283(0x324)],Rs=(_0x38a48d,_0x2b9142,_0x457cf8)=>_0x2b9142 in _0x38a48d?Ve(_0x38a48d,_0x2b9142,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x457cf8}):_0x38a48d[_0x2b9142]=_0x457cf8,Ts=(_0x1e624a,_0x22b542,_0x1a0037,_0x3153e9)=>{for(var _0x5adad0=_0x3153e9>0x1?void 0x0:_0x3153e9?Es(_0x22b542,_0x1a0037):_0x22b542,_0x210820=_0x1e624a['length']-0x1,_0x24b195;_0x210820>=0x0;_0x210820--)(_0x24b195=_0x1e624a[_0x210820])&&(_0x5adad0=(_0x3153e9?_0x24b195(_0x22b542,_0x1a0037,_0x5adad0):_0x24b195(_0x5adad0))||_0x5adad0);return _0x3153e9&&_0x5adad0&&Ve(_0x22b542,_0x1a0037,_0x5adad0),_0x5adad0;},ue=(_0xffcbb2,_0x31173b)=>(_0x4969a6,_0x484bc2)=>_0x31173b(_0x4969a6,_0x484bc2,_0xffcbb2),Os=(_0x240ad2,_0x563d75,_0x508dbb)=>Rs(_0x240ad2,_0x563d75+'',_0x508dbb);const Ds='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x500283(0x227)]=class extends a['Plugin']{constructor(_0x393253=Le,_0x31e26d,_0x2d73bc,_0x167859){const _0x5c76db=_0x500283;super(),this[_0x5c76db(0x203)]=_0x393253,this[_0x5c76db(0x1a0)]=_0x31e26d,this[_0x5c76db(0xbc)]=_0x2d73bc,this[_0x5c76db(0x101)]=_0x167859;const {..._0x26ddf9}=a[_0x5c76db(0xfa)]({},Le,this[_0x5c76db(0x203)]);this[_0x5c76db(0x101)][_0x5c76db(0x2a3)](is,_0x26ddf9);}[_0x500283(0x287)](){const _0x234725=_0x500283;this['_registerDependencies'](),this[_0x234725(0x140)]();}['onRendered'](){const _0x4578a0=_0x500283;this[_0x4578a0(0xfd)]();}[_0x500283(0x290)](){const _0x7947a2=_0x500283;var _0x5d3c7f;const _0x3e0327=[[Ce],[Z],[z],[J],[be],[Re,{'useClass':Xe}],[fe[_0x7947a2(0x237)],{'useClass':fe['WebSocketService']}],[u[_0x7947a2(0x2ce)],{'useClass':pe}],[exports[_0x7947a2(0xc7)]],[Q],[K],[x],[Se],[exports[_0x7947a2(0x26c)]]];a['registerDependencies'](this[_0x7947a2(0xbc)],a[_0x7947a2(0x100)](_0x3e0327,(_0x5d3c7f=this[_0x7947a2(0x203)])==null?void 0x0:_0x5d3c7f[_0x7947a2(0x2ac)]));}[_0x500283(0xfd)](){const _0x4eb6f6=_0x500283;this[_0x4eb6f6(0x326)](this['_renderManagerService']['registerRenderModule'](a[_0x4eb6f6(0x28d)][_0x4eb6f6(0x16c)],[Ie])),this[_0x4eb6f6(0x326)](this[_0x4eb6f6(0x1a0)][_0x4eb6f6(0x263)](a[_0x4eb6f6(0x28d)][_0x4eb6f6(0x27e)],[ge]));}[_0x500283(0x140)](){const _0x3c2528=_0x500283;a['touchDependencies'](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[K],[exports[_0x3c2528(0x26c)]]]);}},Os(exports[_0x500283(0x227)],_0x500283(0x122),Ds),exports[_0x500283(0x227)]=Ts([a[_0x500283(0x182)](u[_0x500283(0x307)]),ue(0x1,p[_0x500283(0x15b)]),ue(0x2,a[_0x500283(0x1bf)](a[_0x500283(0x30e)])),ue(0x3,a['IConfigService'])],exports[_0x500283(0x227)]);const ye=0x7530,$e=_0x500283(0x183);class Ps extends a[_0x500283(0x325)]{constructor(){const _0x479ca9=_0x500283;super(),_(this,_0x479ca9(0x255),a[_0x479ca9(0xba)][_0x479ca9(0x2e7)]()),_(this,_0x479ca9(0x12c),new Set()),_(this,_0x479ca9(0xd2),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x479ca9(0x27a),new Map()),_(this,_0x479ca9(0x1f3),new Map()),this[_0x479ca9(0x29a)]();}[_0x500283(0x1ff)](){const _0x57bdd6=_0x500283;super[_0x57bdd6(0x1ff)](),this['_clearOtherTimers'][_0x57bdd6(0x316)]((_0x5c286a,_0x10919a)=>this[_0x57bdd6(0x2bf)](_0x10919a)),this[_0x57bdd6(0x204)]&&window[_0x57bdd6(0x283)](this[_0x57bdd6(0x204)]);}[_0x500283(0x1bb)](_0x19a574){const _0x32b7aa=_0x500283;return this['_ensureSubject'](_0x19a574)[_0x32b7aa(0xf6)](S[_0x32b7aa(0xfe)]());}[_0x500283(0x24f)](_0x65be93){const _0x2a349d=_0x500283;this[_0x2a349d(0x12c)][_0x2a349d(0x318)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x2a349d(0x317)](_0x65be93),this['_send']({'type':0x0,'memberID':this[_0x2a349d(0x255)],'unitIDs':[_0x65be93],'isForwarded':!0x1});}[_0x500283(0x2cc)](_0x5e8ae9){const _0x2966a8=_0x500283;this[_0x2966a8(0x12c)][_0x2966a8(0x2aa)](_0x5e8ae9),this['_selfUnitIDs'][_0x2966a8(0x318)]===0x0&&this[_0x2966a8(0x204)]&&window[_0x2966a8(0x283)](this[_0x2966a8(0x204)]);}['_init'](){const _0x162ffc=_0x500283;this['disposeWithMe'](a[_0x162ffc(0x2ba)](S['fromEvent'](window,_0x162ffc(0x163))[_0x162ffc(0x2f2)](_0x129fd2=>{const _0x31d7b6=_0x162ffc;if(_0x129fd2[_0x31d7b6(0x157)]!==$e||!_0x129fd2['newValue'])return;const _0x4b5dd7=JSON['parse'](_0x129fd2[_0x31d7b6(0xd6)]);this['_handleEvent'](_0x4b5dd7);}))),window[_0x162ffc(0x104)](_0x162ffc(0x26d),()=>this['_send']({'type':0x1,'memberID':this[_0x162ffc(0x255)],'unitIDs':Array[_0x162ffc(0x1dc)](this[_0x162ffc(0x12c)])}));}[_0x500283(0x205)](_0x3e2e3f){const _0x5092b1=_0x500283;switch(_0x3e2e3f[_0x5092b1(0x175)]){case 0x0:this['_handleJoinEvent'](_0x3e2e3f);break;case 0x1:this[_0x5092b1(0x13e)](_0x3e2e3f);break;case 0x2:this[_0x5092b1(0x16d)](_0x3e2e3f);break;}}[_0x500283(0x127)](_0x372b84){const _0x230629=_0x500283,{unitIDs:_0x191d48,memberID:_0xc0514a,isForwarded:_0x15f85c}=_0x372b84;_0x191d48['forEach'](_0x35766f=>{const _0x21c3a6=_0x433a;if(!_0x15f85c&&this[_0x21c3a6(0xd2)][_0x21c3a6(0xf7)](_0x35766f)&&this['_ensureSubject'](_0x35766f)[_0x21c3a6(0x1f6)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x21c3a6(0xd2)]['has'](_0x35766f)||!this['_unitOnClients'][_0x21c3a6(0x277)](_0x35766f)[_0x21c3a6(0xf7)](_0xc0514a)){const _0x49970a=this[_0x21c3a6(0xd2)][_0x21c3a6(0x277)](_0x35766f)||new Set();_0x49970a[_0x21c3a6(0x317)](_0xc0514a),this[_0x21c3a6(0xd2)][_0x21c3a6(0x21b)](_0x35766f,_0x49970a),this[_0x21c3a6(0x243)](_0xc0514a);}}),_0x15f85c||this[_0x230629(0x111)]({'type':0x0,'memberID':this[_0x230629(0x255)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4eb82b){const _0x31c3af=_0x500283;this[_0x31c3af(0x2bf)](_0x4eb82b);const _0x4dfb3d=window[_0x31c3af(0xe8)](()=>{const _0x3446aa=_0x31c3af;this['_unitOnClients'][_0x3446aa(0x316)](_0x12cc0f=>{const _0x3ecbdd=_0x3446aa;_0x12cc0f[_0x3ecbdd(0x2aa)](_0x4eb82b);});},ye*0x2);this[_0x31c3af(0x27a)][_0x31c3af(0x21b)](_0x4eb82b,_0x4dfb3d);}[_0x500283(0x2bf)](_0x151181){const _0xdfa074=_0x500283;if(this[_0xdfa074(0x27a)][_0xdfa074(0xf7)](_0x151181)){const _0x924205=this[_0xdfa074(0x27a)][_0xdfa074(0x277)](_0x151181);_0x924205&&window[_0xdfa074(0x22b)](_0x924205),this[_0xdfa074(0x27a)][_0xdfa074(0x21b)](_0x151181,null);}}[_0x500283(0x13e)](_0x6870db){const _0x2a50ed=_0x500283,{memberID:_0x3e74dd,unitIDs:_0xf6afda}=_0x6870db;_0xf6afda[_0x2a50ed(0x316)](_0x30eb24=>{const _0x14b8eb=_0x2a50ed;var _0x370fa0;const _0x2daf11=this[_0x14b8eb(0xd2)][_0x14b8eb(0x277)](_0x30eb24);_0x2daf11&&(_0x2daf11['delete'](_0x3e74dd),(_0x370fa0=this['_ensureSubject'](_0x30eb24))==null||_0x370fa0['next'](_0x2daf11[_0x14b8eb(0x318)]===0x0?u[_0x14b8eb(0x177)][_0x14b8eb(0x162)]:u[_0x14b8eb(0x177)][_0x14b8eb(0x15f)]));}),this['_removeClearOtherTimer'](_0x3e74dd);}[_0x500283(0x16d)](_0xa80631){const _0x2e9048=_0x500283;this['_scheduleClearOtherTimer'](_0xa80631[_0x2e9048(0x1e3)]);}[_0x500283(0x111)](_0x52462f){const _0x3810e4=_0x500283;localStorage['setItem']($e,JSON[_0x3810e4(0x207)](_0x52462f));}[_0x500283(0x22d)](){const _0x25e471=_0x500283;this[_0x25e471(0x204)]=window['setInterval'](()=>{const _0x27de95=_0x25e471;this['_send']({'type':0x2,'memberID':this[_0x27de95(0x255)]});},ye);}[_0x500283(0x20b)](_0x353819){const _0xf64a36=_0x500283;return this[_0xf64a36(0x1f3)][_0xf64a36(0xf7)](_0x353819)||this[_0xf64a36(0x1f3)]['set'](_0x353819,new S[(_0xf64a36(0x28e))](u[_0xf64a36(0x177)][_0xf64a36(0x162)])),this[_0xf64a36(0x1f3)][_0xf64a36(0x277)](_0x353819);}}var Ge=(_0x58da60=>(_0x58da60[_0x58da60[_0x500283(0x1d7)]=0x0]='UNDEFINED',_0x58da60[_0x58da60['OK']=0x1]='OK',_0x58da60[_0x58da60['INTERNAL_ERROR']=0x2]=_0x500283(0x238),_0x58da60[_0x58da60['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x58da60[_0x58da60[_0x500283(0x29f)]=0x4]=_0x500283(0x29f),_0x58da60[_0x58da60['UNAUTHENTICATED']=0x5]=_0x500283(0xc3),_0x58da60[_0x58da60[_0x500283(0x2b1)]=0x6]='ALREADY_EXISTS',_0x58da60[_0x58da60[_0x500283(0x21a)]=0x7]=_0x500283(0x21a),_0x58da60[_0x58da60[_0x500283(0xb7)]=0x8]=_0x500283(0xb7),_0x58da60[_0x58da60['COMPLETION_FINISHED']=0x9]=_0x500283(0x327),_0x58da60[_0x58da60[_0x500283(0x14d)]=0x1389]=_0x500283(0x14d),_0x58da60[_0x58da60[_0x500283(0x29c)]=0x1771]=_0x500283(0x29c),_0x58da60[_0x58da60[_0x500283(0xd8)]=0x1772]=_0x500283(0xd8),_0x58da60[_0x58da60[_0x500283(0x1a1)]=0x1773]=_0x500283(0x1a1),_0x58da60[_0x58da60[_0x500283(0x222)]=0x1b59]=_0x500283(0x222),_0x58da60[_0x58da60[_0x500283(0x253)]=0x1b5a]=_0x500283(0x253),_0x58da60[_0x58da60[_0x500283(0x2d6)]=0x1b5b]=_0x500283(0x2d6),_0x58da60[_0x58da60[_0x500283(0x176)]=0x1b5c]=_0x500283(0x176),_0x58da60[_0x58da60[_0x500283(0xb9)]=0x1b5d]=_0x500283(0xb9),_0x58da60[_0x58da60[_0x500283(0x14a)]=0x1f41]=_0x500283(0x14a),_0x58da60[_0x58da60[_0x500283(0x1aa)]=0x2329]=_0x500283(0x1aa),_0x58da60[_0x58da60[_0x500283(0x29d)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x58da60[_0x58da60[_0x500283(0x1fd)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x58da60[_0x58da60['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x500283(0x248),_0x58da60[_0x58da60[_0x500283(0x218)]=0x232d]=_0x500283(0x218),_0x58da60[_0x58da60[_0x500283(0x23d)]=0x2711]=_0x500283(0x23d),_0x58da60[_0x58da60[_0x500283(0x150)]=0x2712]=_0x500283(0x150),_0x58da60[_0x58da60[_0x500283(0x246)]=0x2713]=_0x500283(0x246),_0x58da60[_0x58da60[_0x500283(0x22f)]=0x2714]=_0x500283(0x22f),_0x58da60[_0x58da60[_0x500283(0xd1)]=-0x1]='UNRECOGNIZED',_0x58da60))(Ge||{}),Ms=Object[_0x500283(0xcc)],Us=Object[_0x500283(0x324)],Ns=(_0x2da6aa,_0x363aca,_0x196bd9,_0x10ef06)=>{const _0x40518c=_0x500283;for(var _0x9460a3=_0x10ef06>0x1?void 0x0:_0x10ef06?Us(_0x363aca,_0x196bd9):_0x363aca,_0x4f2442=_0x2da6aa[_0x40518c(0x1f4)]-0x1,_0x37c9f3;_0x4f2442>=0x0;_0x4f2442--)(_0x37c9f3=_0x2da6aa[_0x4f2442])&&(_0x9460a3=(_0x10ef06?_0x37c9f3(_0x363aca,_0x196bd9,_0x9460a3):_0x37c9f3(_0x9460a3))||_0x9460a3);return _0x10ef06&&_0x9460a3&&Ms(_0x363aca,_0x196bd9,_0x9460a3),_0x9460a3;},de=(_0x46ef02,_0x4ccdf4)=>(_0x2830e6,_0x2f1344)=>_0x4ccdf4(_0x2830e6,_0x2f1344,_0x46ef02);exports[_0x500283(0x23a)]=class extends a[_0x500283(0x325)]{constructor(_0x191ed3,_0x1b9176,_0x2531dc){const _0x343038=_0x500283;super(),this[_0x343038(0x2cd)]=_0x191ed3,this[_0x343038(0x2fe)]=_0x1b9176,this[_0x343038(0x101)]=_0x2531dc;}async['runOnServer'](_0x2d7d33,_0x44c308,..._0xd950b5){const _0x2157a0=_0x500283;var _0x32dbaa,_0xb2b2db;const _0x254b89=this[_0x2157a0(0x2cd)][_0x2157a0(0x30f)]();if(!_0x254b89)throw new Error(_0x2157a0(0x1a6));const _0x272467=((_0x32dbaa=this[_0x2157a0(0x101)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x32dbaa:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x2d7d33+'/run/'+_0x44c308,_0x58a84f=new URL(window[_0x2157a0(0x1e7)][_0x2157a0(0x108)]),_0x920bd5={'scriptId':_0x2d7d33,'runId':(_0xb2b2db=_0x58a84f['searchParams'][_0x2157a0(0x277)](_0x2157a0(0x242)))!=null?_0xb2b2db:'','function':_0x44c308,'unitId':_0x254b89[_0x2157a0(0x158)](),'argsOfFunction':JSON[_0x2157a0(0x207)](_0xd950b5)};try{const _0xa0ccde=await this[_0x2157a0(0x2fe)][_0x2157a0(0x2af)](_0x272467,{'body':_0x920bd5});return!(_0xa0ccde[_0x2157a0(0x2e3)][_0x2157a0(0x135)]&&_0xa0ccde[_0x2157a0(0x2e3)][_0x2157a0(0x135)][_0x2157a0(0x2ae)]!==Ge['OK']);}catch{return!0x1;}}},exports[_0x500283(0x23a)]=Ns([de(0x0,a['IUniverInstanceService']),de(0x1,a[_0x500283(0x1bf)](fe[_0x500283(0xc2)])),de(0x2,a['IConfigService'])],exports['RemoteUniscriptService']),exports['CollaborationStatusDisplay']=Ye,exports['IURLService']=Re,exports[_0x500283(0x128)]=je,exports[_0x500283(0x146)]=Ps,exports[_0x500283(0x10b)]=Xe;
|
|
1
|
+
'use strict';const _0x38127d=_0x59a9;(function(_0xa09ce,_0x2dba42){const _0xb82c2a=_0x59a9,_0x253eb0=_0xa09ce();while(!![]){try{const _0x26a9eb=parseInt(_0xb82c2a(0x137))/0x1*(parseInt(_0xb82c2a(0x14f))/0x2)+parseInt(_0xb82c2a(0x1e4))/0x3+parseInt(_0xb82c2a(0x393))/0x4+-parseInt(_0xb82c2a(0x298))/0x5*(parseInt(_0xb82c2a(0x183))/0x6)+-parseInt(_0xb82c2a(0x1ec))/0x7*(-parseInt(_0xb82c2a(0x283))/0x8)+parseInt(_0xb82c2a(0x2ef))/0x9*(parseInt(_0xb82c2a(0x2f5))/0xa)+-parseInt(_0xb82c2a(0x254))/0xb*(parseInt(_0xb82c2a(0x2ea))/0xc);if(_0x26a9eb===_0x2dba42)break;else _0x253eb0['push'](_0x253eb0['shift']());}catch(_0x48f122){_0x253eb0['push'](_0x253eb0['shift']());}}}(_0x357a,0x60e25));var Ze=Object['defineProperty'],Qe=(_0x5b2659,_0x28d0f7,_0x4b2cd0)=>_0x28d0f7 in _0x5b2659?Ze(_0x5b2659,_0x28d0f7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b2cd0}):_0x5b2659[_0x28d0f7]=_0x4b2cd0,h=(_0x1902b4,_0x4630ca,_0xc7d872)=>Qe(_0x1902b4,typeof _0x4630ca!=_0x38127d(0x2a0)?_0x4630ca+'':_0x4630ca,_0xc7d872);Object[_0x38127d(0x12e)](exports,Symbol[_0x38127d(0x139)],{'value':_0x38127d(0x2e3)});const _=require('@univerjs-pro/collaboration-client'),a=require(_0x38127d(0x329)),C=require(_0x38127d(0x373)),fe=require(_0x38127d(0x330)),b=require(_0x38127d(0x23a)),et=require(_0x38127d(0x311)),S=require(_0x38127d(0x130)),X=require(_0x38127d(0x28e)),g=require(_0x38127d(0x216)),Te=require(_0x38127d(0x194)),I=require('@univerjs/sheets'),$=require(_0x38127d(0x1c4)),k=require(_0x38127d(0x1da)),O=require(_0x38127d(0x158)),w=require(_0x38127d(0x2db)),M=require('@univerjs/design'),tt=require('@univerjs/rpc');var st=Object[_0x38127d(0x12e)],nt=Object[_0x38127d(0x145)],it=(_0xe94364,_0x2b56a2,_0xf577d1,_0x39412a)=>{const _0x2c4eb5=_0x38127d;for(var _0x1cfee2=_0x39412a>0x1?void 0x0:_0x39412a?nt(_0x2b56a2,_0xf577d1):_0x2b56a2,_0x43acb8=_0xe94364[_0x2c4eb5(0x2ed)]-0x1,_0x2a9e8b;_0x43acb8>=0x0;_0x43acb8--)(_0x2a9e8b=_0xe94364[_0x43acb8])&&(_0x1cfee2=(_0x39412a?_0x2a9e8b(_0x2b56a2,_0xf577d1,_0x1cfee2):_0x2a9e8b(_0x1cfee2))||_0x1cfee2);return _0x39412a&&_0x1cfee2&&st(_0x2b56a2,_0xf577d1,_0x1cfee2),_0x1cfee2;},Oe=(_0x4caae6,_0x38f36e)=>(_0x451aee,_0x16fe8f)=>_0x38f36e(_0x451aee,_0x16fe8f,_0x4caae6);let Se=class extends a[_0x38127d(0x36c)]{constructor(_0x449978,_0x1a0d3e){const _0x1af357=_0x38127d;super(),this['_docClipboardService']=_0x449978,this[_0x1af357(0x37b)]=_0x1a0d3e,this[_0x1af357(0x36a)]();}[_0x38127d(0x36a)](){const _0xa8e6eb=_0x38127d,_0x104229=this;this[_0xa8e6eb(0x2e7)](this[_0xa8e6eb(0x367)][_0xa8e6eb(0x16e)]({'onBeforePasteImage':async _0x570a1a=>{const _0x52ed2e=_0xa8e6eb,_0x13db45=await _0x104229[_0x52ed2e(0x37b)]['saveImage'](_0x570a1a);return _0x13db45?{'source':_0x13db45[_0x52ed2e(0x1d8)],'imageSourceType':_0x13db45[_0x52ed2e(0x15b)]}:null;}}));}};Se=it([Oe(0x0,b[_0x38127d(0x392)]),Oe(0x1,et[_0x38127d(0x359)])],Se);const De=[_0x38127d(0x152),_0x38127d(0x231),_0x38127d(0x224),_0x38127d(0x341),_0x38127d(0x326),_0x38127d(0x37d)];class Ce extends a[_0x38127d(0x1bd)]{constructor(){const _0x40ceb5=_0x38127d;super(...arguments),h(this,_0x40ceb5(0x265),new Map()),h(this,_0x40ceb5(0x374),0x0);}[_0x38127d(0x2fc)](_0x4966cb){const _0x317824=_0x38127d;if(this[_0x317824(0x265)][_0x317824(0x177)](_0x4966cb))return this[_0x317824(0x265)][_0x317824(0x35f)](_0x4966cb);const _0x1ad2f1=De[this['_colorIndex']];return this[_0x317824(0x374)]=(this[_0x317824(0x374)]+0x1)%De['length'],this[_0x317824(0x265)]['set'](_0x4966cb,_0x1ad2f1),_0x1ad2f1;}}function xe(_0x382f84){const _0x23a442=_0x38127d;let _0x271da7='';for(const _0xb179fd of _0x382f84){const {startOffset:_0x12f506,endOffset:_0x4b4388,isActive:_0x5af687,rangeType:_0x3237e7,segmentId:_0x3d0ed3,segmentPage:_0x46cc44}=_0xb179fd;_0x271da7[_0x23a442(0x2ed)]&&(_0x271da7+=','),_0x271da7+=_0x12f506+':'+_0x4b4388+':'+(_0x5af687?'1':'0')+':'+_0x3237e7+':'+_0x3d0ed3+':'+_0x46cc44;}return _0x271da7;}function rt(_0x173eae){const _0x85a86e=_0x38127d,_0x1854bb=_0x173eae[_0x85a86e(0x1f1)](','),_0x5d524e=[];for(const _0x13e7e1 of _0x1854bb){const [_0x3e03de,_0x3af7fc,_0x162d47,_0x4b999d,_0x54da27,_0x2e3993]=_0x13e7e1['split'](':');_0x5d524e[_0x85a86e(0x344)]({'startOffset':Number(_0x3e03de),'endOffset':Number(_0x3af7fc),'collapsed':_0x3e03de===_0x3af7fc,'isActive':_0x162d47==='1','rangeType':_0x4b999d===a['DOC_RANGE_TYPE']['TEXT']?a['DOC_RANGE_TYPE'][_0x85a86e(0x22d)]:a[_0x85a86e(0x17f)][_0x85a86e(0x38a)],'segmentId':typeof _0x54da27==_0x85a86e(0x371)?String(_0x54da27):'','segmentPage':Number(_0x2e3993!=null?_0x2e3993:-0x1)});}return _0x5d524e[_0x85a86e(0x308)](_0x31531e=>_0x31531e[_0x85a86e(0x243)])||(_0x5d524e[0x0]['isActive']=!0x0),_0x5d524e;}class be extends a[_0x38127d(0x36c)]{constructor(){const _0x903f8b=_0x38127d;super(...arguments),h(this,_0x903f8b(0x35b),new S[(_0x903f8b(0x39a))](null)),h(this,'collabCursorState$',this[_0x903f8b(0x35b)][_0x903f8b(0x1a8)]());}[_0x38127d(0x201)](_0x14b91){const _0x52892d=_0x38127d,{unitID:_0x12a97c,memberID:_0x4db0c1,textRanges:_0x549f84}=_0x14b91,_0x1eb1ca=xe(_0x549f84);if(_0x1eb1ca==='')return;const _0x45263a={'unitID':_0x12a97c,'memberID':_0x4db0c1,'selection':_0x1eb1ca};this[_0x52892d(0x35b)]['next'](_0x45263a);}}var ot=Object[_0x38127d(0x12e)],at=Object[_0x38127d(0x145)],ct=(_0x56fbd8,_0x3b843c,_0x231551,_0x285be1)=>{const _0x4636dc=_0x38127d;for(var _0x598c58=_0x285be1>0x1?void 0x0:_0x285be1?at(_0x3b843c,_0x231551):_0x3b843c,_0x548fb3=_0x56fbd8[_0x4636dc(0x2ed)]-0x1,_0x2ed585;_0x548fb3>=0x0;_0x548fb3--)(_0x2ed585=_0x56fbd8[_0x548fb3])&&(_0x598c58=(_0x285be1?_0x2ed585(_0x3b843c,_0x231551,_0x598c58):_0x2ed585(_0x598c58))||_0x598c58);return _0x285be1&&_0x598c58&&ot(_0x3b843c,_0x231551,_0x598c58),_0x598c58;},U=(_0x4f5cea,_0x51f87d)=>(_0x157103,_0xe13994)=>_0x51f87d(_0x157103,_0xe13994,_0x4f5cea);const lt=0x12c,ut=0x64;let ve=class extends a[_0x38127d(0x36c)]{constructor(_0x1b6e7f,_0x2adc15,_0x3ea403,_0x31b208,_0x3a7e0d,_0x4e731d,_0x51b41c,_0x25a09b,_0x416ad1){const _0xe9947=_0x38127d;super(),h(this,_0xe9947(0x2fe),!0x1),h(this,_0xe9947(0x36a),!0x1),h(this,_0xe9947(0x1c6),new S['BehaviorSubject'](new Map())),h(this,_0xe9947(0x233),this['_cursorInfo$'][_0xe9947(0x1a8)]()),h(this,_0xe9947(0x2ee),new S['BehaviorSubject']([])),h(this,'roomMembers$',this['_roomMembers$']['pipe'](S['debounceTime'](lt))),h(this,_0xe9947(0x18b),a[_0xe9947(0x25e)](_0x582bd8=>{const _0x25164f=_0xe9947,_0x2e5ba0={'eventID':g[_0x25164f(0x186)][_0x25164f(0x1c0)],'data':{'unitID':this[_0x25164f(0x200)],'memberID':this[_0x25164f(0x1a2)][_0x25164f(0x1ad)](),'selection':xe(_0x582bd8)}};this[_0x25164f(0x1a2)]['send'](_0x2e5ba0,this['unitID']);},ut)),(this[_0xe9947(0x200)]=_0x1b6e7f,this[_0xe9947(0x1a2)]=_0x2adc15,this[_0xe9947(0x159)]=_0x3ea403,this[_0xe9947(0x14b)]=_0x31b208,this[_0xe9947(0x218)]=_0x3a7e0d,this['_syncEditingCollabCursorService']=_0x4e731d,this[_0xe9947(0x361)]=_0x51b41c,this['_univerInstanceService']=_0x25a09b,this[_0xe9947(0x1ac)]=_0x416ad1);}get[_0x38127d(0x387)](){const _0x31ce46=_0x38127d;return this[_0x31ce46(0x1c6)][_0x31ce46(0x378)]();}get[_0x38127d(0x248)](){const _0x587473=_0x38127d;return this[_0x587473(0x2ee)][_0x587473(0x378)]();}[_0x38127d(0x368)](){const _0x1a25a4=_0x38127d;super[_0x1a25a4(0x368)](),this['_cursorInfo$'][_0x1a25a4(0x12f)](new Map()),this[_0x1a25a4(0x1c6)][_0x1a25a4(0x3a7)](),this[_0x1a25a4(0x2ee)]['next']([]),this[_0x1a25a4(0x2ee)][_0x1a25a4(0x3a7)]();}['init'](){const _0x55f0a7=_0x38127d;this[_0x55f0a7(0x36a)]||(this[_0x55f0a7(0x36a)]=!0x0,this[_0x55f0a7(0x1a2)][_0x55f0a7(0x309)]['pipe'](S[_0x55f0a7(0x219)](this[_0x55f0a7(0x34e)]))['subscribe'](_0x2c1ab5=>{const _0x1e9554=_0x55f0a7;_0x2c1ab5===_['SessionStatus'][_0x1e9554(0x22c)]?this[_0x1e9554(0x1b4)]():this[_0x1e9554(0x2c0)]();}),this[_0x55f0a7(0x1a2)][_0x55f0a7(0x2cb)][_0x55f0a7(0x37c)](S[_0x55f0a7(0x219)](this[_0x55f0a7(0x34e)]))['subscribe'](_0x56a6ae=>{const _0x462aaa=_0x55f0a7,_0x46c9eb=_0x56a6ae[_0x462aaa(0x13b)];_0x46c9eb===g[_0x462aaa(0x186)]['UPDATE_CURSOR']&&this[_0x462aaa(0x1e6)](_0x56a6ae),_0x46c9eb===g[_0x462aaa(0x186)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x56a6ae);}),this[_0x55f0a7(0x2e7)](this[_0x55f0a7(0x1ac)][_0x55f0a7(0x18d)](_0x4b4f01=>{const _0x4a5d85=_0x55f0a7,_0x18f8b1=_0x4b4f01[_0x4a5d85(0x34b)];_0x18f8b1!=null&&this[_0x4a5d85(0x2fe)]&&_0x4b4f01['id']===X[_0x4a5d85(0x2a6)]['id']&&_0x18f8b1['unitId']===this[_0x4a5d85(0x200)]&&_0x18f8b1[_0x4a5d85(0x30e)]===!0x1&&_0x18f8b1[_0x4a5d85(0x2e4)][_0x4a5d85(0x2ed)]>0x0&&this[_0x4a5d85(0x18b)](_0x18f8b1[_0x4a5d85(0x2e4)]);})),this[_0x55f0a7(0x314)][_0x55f0a7(0x292)][_0x55f0a7(0x37c)](S[_0x55f0a7(0x219)](this['dispose$']))[_0x55f0a7(0x13f)](_0x187ff8=>{const _0x4a5fa9=_0x55f0a7;if((_0x187ff8==null?void 0x0:_0x187ff8[_0x4a5fa9(0x200)])!==this[_0x4a5fa9(0x200)])return;const _0x215d1e={'eventID':g['CollaborationEvent'][_0x4a5fa9(0x1c0)],'data':_0x187ff8};this['_onCursorUpdate'](_0x215d1e);}),this[_0x55f0a7(0x2e7)](this['_commandService'][_0x55f0a7(0x18d)](_0x5b25c5=>{const _0x22fb3a=_0x55f0a7;if(_0x5b25c5['params']==null)return;const _0x9090e0=_0x5b25c5['params'];if(_0x5b25c5['id']!==X[_0x22fb3a(0x305)]['id']||_0x9090e0[_0x22fb3a(0x38c)]!==this['unitID'])return;const _0x395abd={'id':_0x22fb3a(0x20d),'params':_0x9090e0},_0x3bb008=this[_0x22fb3a(0x387)];for(const [_0xb0bac6,_0x5d849e]of _0x3bb008){const _0x2de1e1={'id':_0x22fb3a(0x20d),'params':{'unitId':this[_0x22fb3a(0x200)],'actions':null,'textRanges':_0x5d849e['ranges']}},_0x136da3=this[_0x22fb3a(0x361)][_0x22fb3a(0x2e2)](_0x395abd,_0x2de1e1,!0x1);if(g[_0x22fb3a(0x154)](_0x136da3))throw _0x136da3[_0x22fb3a(0x299)];_0x3bb008['set'](_0xb0bac6,{..._0x5d849e,'ranges':_0x136da3[_0x22fb3a(0x16f)][_0x22fb3a(0x34b)][_0x22fb3a(0x35a)]});}queueMicrotask(()=>{const _0x4450aa=_0x22fb3a;this[_0x4450aa(0x1c6)][_0x4450aa(0x12f)](_0x3bb008);});})));}[_0x38127d(0x1e6)](_0x125267){const _0x3a4247=_0x38127d;var _0x4b6bb0,_0x3b6656;const {memberID:_0x15b78e,selection:_0x55d48c}=_0x125267[_0x3a4247(0x274)],_0x3ccf51=rt(_0x55d48c),_0x32a20f=(_0x3b6656=(_0x4b6bb0=this[_0x3a4247(0x218)][_0x3a4247(0x381)](this[_0x3a4247(0x200)],_0x15b78e))==null?void 0x0:_0x4b6bb0['name'])!=null?_0x3b6656:_0x3a4247(0x16d),_0x4f4502={'color':this['_colorAssignService'][_0x3a4247(0x2fc)](_0x15b78e),'name':_0x32a20f,'ranges':_0x3ccf51},_0x9c5ae7=this[_0x3a4247(0x387)];_0x9c5ae7[_0x3a4247(0x193)](_0x15b78e,_0x4f4502),this[_0x3a4247(0x1c6)][_0x3a4247(0x12f)](_0x9c5ae7);}[_0x38127d(0x256)](_0x1ac0fd){const _0x9f3fdc=_0x38127d,{memberID:_0x3936d2}=_0x1ac0fd['data'],_0x24930e=this[_0x9f3fdc(0x387)];_0x24930e[_0x9f3fdc(0x3a9)](_0x3936d2),this[_0x9f3fdc(0x1c6)][_0x9f3fdc(0x12f)](_0x24930e);}[_0x38127d(0x1b4)](){const _0x5097f8=_0x38127d;var _0x1623d2;if(this[_0x5097f8(0x2fe)]=!0x0,((_0x1623d2=this[_0x5097f8(0x249)][_0x5097f8(0x15e)]())==null?void 0x0:_0x1623d2[_0x5097f8(0x270)]())!==this[_0x5097f8(0x200)])return;const _0x1e98ee=this['_injector']['get'](X[_0x5097f8(0x2cf)])['getDocRanges']();Array['isArray'](_0x1e98ee)&&_0x1e98ee[_0x5097f8(0x2ed)]>0x0&&this[_0x5097f8(0x18b)](_0x1e98ee);}[_0x38127d(0x2c0)](){const _0x48b026=_0x38127d;this[_0x48b026(0x2fe)]=!0x1;}};ve=ct([U(0x2,a[_0x38127d(0x2b3)](a[_0x38127d(0x26c)])),U(0x3,a['Inject'](Ce)),U(0x4,a['Inject'](_[_0x38127d(0x37e)])),U(0x5,a['Inject'](be)),U(0x6,g[_0x38127d(0x142)]),U(0x7,a[_0x38127d(0x30d)]),U(0x8,a[_0x38127d(0x2c3)])],ve);var ht=Object['defineProperty'],_t=Object[_0x38127d(0x145)],dt=(_0x4489b3,_0x5a25db,_0x5cf4ec,_0xcff04a)=>{const _0x3980c0=_0x38127d;for(var _0x24544e=_0xcff04a>0x1?void 0x0:_0xcff04a?_t(_0x5a25db,_0x5cf4ec):_0x5a25db,_0x5cb4f9=_0x4489b3[_0x3980c0(0x2ed)]-0x1,_0x2a4c3b;_0x5cb4f9>=0x0;_0x5cb4f9--)(_0x2a4c3b=_0x4489b3[_0x5cb4f9])&&(_0x24544e=(_0xcff04a?_0x2a4c3b(_0x5a25db,_0x5cf4ec,_0x24544e):_0x2a4c3b(_0x24544e))||_0x24544e);return _0xcff04a&&_0x24544e&&ht(_0x5a25db,_0x5cf4ec,_0x24544e),_0x24544e;},A=(_0x5304d8,_0x3e1281)=>(_0x2bd182,_0x371777)=>_0x3e1281(_0x2bd182,_0x371777,_0x5304d8);const ft=0x12c,St=0x64,vt=()=>{let _0x5cec6a=[],_0x43d992=!0x1;return _0x1def65=>{_0x5cec6a['push'](_0x1def65),_0x43d992||(_0x43d992=!0x0,setTimeout(()=>{_0x5cec6a['forEach'](_0x36cc10=>_0x36cc10()),_0x5cec6a=[],_0x43d992=!0x1;}));};};let me=class extends a['RxDisposable']{constructor(_0x1aaecb,_0x5d2cf4,_0x3e92cd,_0x548b06,_0x5f5bcb,_0x42dc80,_0x25d2aa,_0x297296){const _0x1f3953=_0x38127d;super(),h(this,'_online',!0x1),h(this,_0x1f3953(0x36a),!0x1),h(this,_0x1f3953(0x1c6),new S[(_0x1f3953(0x39a))](new Map())),h(this,_0x1f3953(0x233),this[_0x1f3953(0x1c6)]['asObservable']()),h(this,'_roomMembers$',new S['BehaviorSubject']([])),h(this,_0x1f3953(0x384),this[_0x1f3953(0x2ee)][_0x1f3953(0x37c)](S['debounceTime'](ft))),h(this,_0x1f3953(0x18b),a[_0x1f3953(0x25e)]((_0x561957,_0x3d1ac2)=>{const _0x47fabb=_0x1f3953,_0x12e767={'eventID':g[_0x47fabb(0x186)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x47fabb(0x200)],'memberID':this[_0x47fabb(0x1a2)]['getMemberID'](),'selection':Te[_0x47fabb(0x286)](_0x561957,_0x3d1ac2[_0x47fabb(0x38f)])}};this[_0x47fabb(0x1a2)][_0x47fabb(0x39c)](_0x12e767,this[_0x47fabb(0x200)]);},St)),(this[_0x1f3953(0x200)]=_0x1aaecb,this[_0x1f3953(0x1a2)]=_0x5d2cf4,this['_injector']=_0x3e92cd,this[_0x1f3953(0x14b)]=_0x548b06,this[_0x1f3953(0x218)]=_0x5f5bcb,this['_univerInstanceService']=_0x42dc80,this[_0x1f3953(0x1ac)]=_0x25d2aa,this['_refRangeService']=_0x297296);}get[_0x38127d(0x387)](){const _0x4849a2=_0x38127d;return this[_0x4849a2(0x1c6)][_0x4849a2(0x378)]();}get[_0x38127d(0x248)](){const _0x29a024=_0x38127d;return this[_0x29a024(0x2ee)][_0x29a024(0x378)]();}[_0x38127d(0x368)](){const _0x3e47e2=_0x38127d;super[_0x3e47e2(0x368)](),this[_0x3e47e2(0x1c6)][_0x3e47e2(0x12f)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0x3e47e2(0x12f)]([]),this[_0x3e47e2(0x2ee)][_0x3e47e2(0x3a7)]();}['init'](){const _0x1f9624=_0x38127d;this['_init']||(this['_init']=!0x0,this['_session'][_0x1f9624(0x309)][_0x1f9624(0x37c)](S[_0x1f9624(0x219)](this['dispose$']))[_0x1f9624(0x13f)](_0x2a38a9=>{const _0x1d5f25=_0x1f9624;_0x2a38a9===_[_0x1d5f25(0x204)][_0x1d5f25(0x22c)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session'][_0x1f9624(0x2cb)][_0x1f9624(0x37c)](S[_0x1f9624(0x219)](this[_0x1f9624(0x34e)]))['subscribe'](_0x56ee77=>{const _0x1b5f38=_0x1f9624,_0x923494=_0x56ee77[_0x1b5f38(0x13b)];_0x923494===g['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x56ee77),_0x923494===g[_0x1b5f38(0x186)][_0x1b5f38(0x336)]&&this[_0x1b5f38(0x256)](_0x56ee77);}),this[_0x1f9624(0x388)](),this[_0x1f9624(0x2e7)](this[_0x1f9624(0x1ac)][_0x1f9624(0x18d)](_0x4d371c=>{const _0x4689c2=_0x1f9624;if(this[_0x4689c2(0x2fe)]&&_0x4d371c['id']===I[_0x4689c2(0x25c)]['id']&&_0x4d371c[_0x4689c2(0x34b)][_0x4689c2(0x38c)]===this[_0x4689c2(0x200)]){const _0xcebb05=_0x4d371c[_0x4689c2(0x34b)];this[_0x4689c2(0x18b)](_0xcebb05[_0x4689c2(0x23b)],_0xcebb05['selections'][0x0]);}})));}[_0x38127d(0x1e6)](_0x472838){const _0x3f4b26=_0x38127d;var _0x4ec90b,_0x551b28;const {memberID:_0x1986a2,selection:_0x1f4b1d}=_0x472838[_0x3f4b26(0x274)],{sheetName:_0x3131f5,range:_0x2fa2dd}=Te['deserializeRangeWithSheet'](_0x1f4b1d),_0x247650={'name':(_0x551b28=(_0x4ec90b=this[_0x3f4b26(0x218)][_0x3f4b26(0x381)](this['unitID'],_0x1986a2))==null?void 0x0:_0x4ec90b[_0x3f4b26(0x285)])!=null?_0x551b28:_0x3f4b26(0x16d),'range':this[_0x3f4b26(0x176)](_0x3131f5,_0x2fa2dd),'sheetID':_0x3131f5,'color':this[_0x3f4b26(0x14b)]['assignAColorForMemberID'](_0x1986a2),'selection':_0x1f4b1d},_0x4c3760=this[_0x3f4b26(0x387)];_0x4c3760[_0x3f4b26(0x193)](_0x1986a2,_0x247650),this[_0x3f4b26(0x1c6)][_0x3f4b26(0x12f)](_0x4c3760);}[_0x38127d(0x256)](_0x58111c){const _0x372f03=_0x38127d,{memberID:_0x4e2d3e}=_0x58111c[_0x372f03(0x274)],_0xe6b40a=this[_0x372f03(0x387)];_0xe6b40a[_0x372f03(0x3a9)](_0x4e2d3e),this[_0x372f03(0x1c6)][_0x372f03(0x12f)](_0xe6b40a);}[_0x38127d(0x176)](_0x56240d,_0x48eba5){const _0x6d3952=_0x38127d;var _0x1ad467,_0x19a3d2;const _0xe16615=(_0x19a3d2=(_0x1ad467=this[_0x6d3952(0x249)][_0x6d3952(0x315)](this[_0x6d3952(0x200)]))==null?void 0x0:_0x1ad467['getSheetBySheetId'](_0x56240d))==null?void 0x0:_0x19a3d2['getMergeData']();return(_0xe16615==null?void 0x0:_0xe16615[_0x6d3952(0x1a7)](_0x37f083=>a[_0x6d3952(0x375)][_0x6d3952(0x155)](_0x37f083,_0x48eba5)))||_0x48eba5;}[_0x38127d(0x388)](){const _0x3643ef=_0x38127d,_0x5c1e42=new a[(_0x3643ef(0x161))](),_0x36f11a=vt(),_0x6cdcbe=()=>{const _0x169ca1=_0x3643ef;_0x5c1e42[_0x169ca1(0x368)]();const _0x37b9c8=(_0x1f2c18,_0x17cb16,_0x26ae21,_0x3f1748)=>{const _0x24380f=_0x169ca1;let _0x4e2b37=[];switch(_0x1f2c18['id']){case I[_0x24380f(0x203)][_0x24380f(0x280)]:{_0x4e2b37=I[_0x24380f(0x1ab)](_0x1f2c18,_0x3f1748);break;}case I[_0x24380f(0x203)]['DeleteRangeMoveUpCommandId']:{_0x4e2b37=I[_0x24380f(0x262)](_0x1f2c18,_0x3f1748);break;}case I[_0x24380f(0x203)]['InsertColCommandId']:{_0x4e2b37=I[_0x24380f(0x17e)](_0x1f2c18,_0x3f1748);break;}case I[_0x24380f(0x203)][_0x24380f(0x1aa)]:{_0x4e2b37=I[_0x24380f(0x35e)](_0x1f2c18,_0x3f1748);break;}case I['EffectRefRangId'][_0x24380f(0x288)]:{_0x4e2b37=I[_0x24380f(0x153)](_0x1f2c18,_0x3f1748);break;}case I[_0x24380f(0x203)][_0x24380f(0x187)]:{_0x4e2b37=I[_0x24380f(0x28b)](_0x1f2c18,_0x3f1748);break;}case I[_0x24380f(0x203)]['MoveRangeCommandId']:{_0x4e2b37=I[_0x24380f(0x28f)](_0x1f2c18,_0x3f1748);break;}case I[_0x24380f(0x203)][_0x24380f(0x2eb)]:{_0x4e2b37=I['handleIRemoveCol'](_0x1f2c18,_0x3f1748);break;}case I['EffectRefRangId'][_0x24380f(0x237)]:{_0x4e2b37=I[_0x24380f(0x36f)](_0x1f2c18,_0x3f1748);break;}}const _0xa8dbed=I[_0x24380f(0x252)](_0x4e2b37,_0x3f1748),_0x1510d8=this[_0x24380f(0x387)][_0x24380f(0x35f)](_0x17cb16);if(_0x1510d8&&_0xa8dbed){const _0x5bb3b0={..._0x1510d8,'range':_0xa8dbed};this[_0x24380f(0x387)]['set'](_0x17cb16,_0x5bb3b0),_0x36f11a(()=>{const _0x541815=_0x24380f,_0x52a177=this[_0x541815(0x2d7)][_0x541815(0x266)](_0xa8dbed,_0x48b6c7=>(_0x52a177['dispose'](),_0x37b9c8(_0x48b6c7,_0x17cb16,_0x26ae21,_0xa8dbed)));_0x5c1e42[_0x541815(0x2bc)](_0x52a177);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x169ca1(0x291)]((_0x35a657,_0xd34f47)=>{const _0x1f1a20=_0x169ca1,{range:_0x5e322d,sheetID:_0xac451a}=_0x35a657,_0x2bab23=this['_refRangeService']['registerRefRange'](_0x5e322d,_0x10ee7d=>(_0x2bab23['dispose'](),_0x37b9c8(_0x10ee7d,_0xd34f47,_0xac451a,_0x5e322d)));_0x5c1e42[_0x1f1a20(0x2bc)](_0x2bab23);});};this[_0x3643ef(0x2e7)](a['toDisposable'](this[_0x3643ef(0x1c6)]['subscribe'](()=>{_0x6cdcbe();})));}[_0x38127d(0x1b4)](){const _0x310391=_0x38127d;var _0x504bd1,_0x54918f;if(this[_0x310391(0x2fe)]=!0x0,((_0x504bd1=this['_univerInstanceService'][_0x310391(0x15e)]())==null?void 0x0:_0x504bd1[_0x310391(0x270)]())!==this[_0x310391(0x200)])return;const _0x4e2788=(_0x54918f=this[_0x310391(0x159)][_0x310391(0x35f)](I[_0x310391(0x199)])[_0x310391(0x132)]())==null?void 0x0:_0x54918f[0x0],_0x14924d=this[_0x310391(0x249)][_0x310391(0x184)](a[_0x310391(0x1b9)][_0x310391(0x319)])['getActiveSheet']();_0x4e2788&&_0x14924d&&this[_0x310391(0x18b)](_0x14924d[_0x310391(0x1cd)](),_0x4e2788);}[_0x38127d(0x2c0)](){this['_online']=!0x1;}};me=dt([A(0x2,a[_0x38127d(0x2b3)](a[_0x38127d(0x26c)])),A(0x3,a[_0x38127d(0x2b3)](Ce)),A(0x4,a[_0x38127d(0x2b3)](_[_0x38127d(0x37e)])),A(0x5,a[_0x38127d(0x30d)]),A(0x6,a['ICommandService']),A(0x7,a[_0x38127d(0x2b3)](I[_0x38127d(0x261)]))],me);var mt=Object[_0x38127d(0x12e)],It=Object[_0x38127d(0x145)],gt=(_0x34af11,_0x2e8fb7,_0x7bf2e9,_0xb7882c)=>{const _0xf111bd=_0x38127d;for(var _0x4c73fd=_0xb7882c>0x1?void 0x0:_0xb7882c?It(_0x2e8fb7,_0x7bf2e9):_0x2e8fb7,_0x22faf9=_0x34af11[_0xf111bd(0x2ed)]-0x1,_0x3de9c2;_0x22faf9>=0x0;_0x22faf9--)(_0x3de9c2=_0x34af11[_0x22faf9])&&(_0x4c73fd=(_0xb7882c?_0x3de9c2(_0x2e8fb7,_0x7bf2e9,_0x4c73fd):_0x3de9c2(_0x4c73fd))||_0x4c73fd);return _0xb7882c&&_0x4c73fd&&mt(_0x2e8fb7,_0x7bf2e9,_0x4c73fd),_0x4c73fd;},ne=(_0x4ea2fc,_0x35baf3)=>(_0x5269a7,_0x23daad)=>_0x35baf3(_0x5269a7,_0x23daad,_0x4ea2fc);let x=class extends a[_0x38127d(0x36c)]{constructor(_0x15a7f8,_0x437f70,_0x1b4137){const _0x11028f=_0x38127d;super(),h(this,_0x11028f(0x19f),new Map()),h(this,'_entityInit$',new S[(_0x11028f(0x2c8))]()),(this[_0x11028f(0x249)]=_0x15a7f8,this[_0x11028f(0x159)]=_0x437f70,this[_0x11028f(0x1a6)]=_0x1b4137,this[_0x11028f(0x36a)]());}[_0x38127d(0x368)](){const _0x54aca8=_0x38127d;super[_0x54aca8(0x368)](),this['_entityInit$']['complete'](),this['_entities'][_0x54aca8(0x291)](_0x3d945d=>_0x3d945d[_0x54aca8(0x368)]());}[_0x38127d(0x138)](_0x48cf59){const _0x4b62de=_0x38127d;return this['_entities'][_0x4b62de(0x177)](_0x48cf59)?this['_entities'][_0x4b62de(0x35f)](_0x48cf59)[_0x4b62de(0x233)]:this[_0x4b62de(0x2ba)]['pipe'](S['filter'](_0x5d3e89=>_0x5d3e89[_0x4b62de(0x200)]===_0x48cf59),S[_0x4b62de(0x222)](_0x8feefd=>_0x8feefd[_0x4b62de(0x233)]));}[_0x38127d(0x36a)](){const _0x3491e6=_0x38127d;this[_0x3491e6(0x249)][_0x3491e6(0x2d3)](a[_0x3491e6(0x1b9)][_0x3491e6(0x319)])[_0x3491e6(0x37c)](S['takeUntil'](this[_0x3491e6(0x34e)]))['subscribe'](async _0x5b7297=>{const _0x55ebfe=_0x3491e6,_0x546a99=_0x5b7297[_0x55ebfe(0x270)](),_0x3a96a1=await this[_0x55ebfe(0x1d6)](_0x546a99);this[_0x55ebfe(0x2ba)][_0x55ebfe(0x12f)](_0x3a96a1),this[_0x55ebfe(0x19f)]['set'](_0x546a99,_0x3a96a1);}),this[_0x3491e6(0x249)][_0x3491e6(0x2d3)](a[_0x3491e6(0x1b9)][_0x3491e6(0x3b3)])[_0x3491e6(0x37c)](S[_0x3491e6(0x219)](this['dispose$']))[_0x3491e6(0x37c)](S[_0x3491e6(0x19c)](_0x3c99d4=>!_0x3c99d4[_0x3491e6(0x270)]()[_0x3491e6(0x21e)]('__')))[_0x3491e6(0x13f)](async _0x49b9dc=>{const _0x386279=_0x3491e6,_0x2e68cb=_0x49b9dc[_0x386279(0x270)](),_0x33c772=await this[_0x386279(0x323)](_0x2e68cb);this[_0x386279(0x2ba)][_0x386279(0x12f)](_0x33c772),this[_0x386279(0x19f)][_0x386279(0x193)](_0x2e68cb,_0x33c772);}),S[_0x3491e6(0x2b5)](this[_0x3491e6(0x249)][_0x3491e6(0x1c8)](a[_0x3491e6(0x1b9)][_0x3491e6(0x3b3)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x3491e6(0x1b9)][_0x3491e6(0x319)]))[_0x3491e6(0x37c)](S[_0x3491e6(0x219)](this[_0x3491e6(0x34e)]))[_0x3491e6(0x13f)](_0x19a2ae=>{const _0x14dabf=_0x3491e6,_0x4dd767=_0x19a2ae[_0x14dabf(0x270)](),_0x177a04=this[_0x14dabf(0x19f)][_0x14dabf(0x35f)](_0x4dd767);_0x177a04&&(_0x177a04[_0x14dabf(0x368)](),this[_0x14dabf(0x19f)]['delete'](_0x4dd767));});}async[_0x38127d(0x1d6)](_0x3acee9){const _0x519fc4=_0x38127d,_0x51e4f2=await this[_0x519fc4(0x1a6)][_0x519fc4(0x2d8)](_0x3acee9),_0x2aa77e=this[_0x519fc4(0x159)][_0x519fc4(0x180)](me,_0x3acee9,_0x51e4f2);return _0x2aa77e[_0x519fc4(0x190)](),_0x2aa77e;}async[_0x38127d(0x323)](_0x2eb636){const _0x33ab01=_0x38127d,_0x5099cd=await this[_0x33ab01(0x1a6)][_0x33ab01(0x2d8)](_0x2eb636),_0x134d10=this[_0x33ab01(0x159)][_0x33ab01(0x180)](ve,_0x2eb636,_0x5099cd);return _0x134d10[_0x33ab01(0x190)](),_0x134d10;}};x=gt([ne(0x0,a[_0x38127d(0x30d)]),ne(0x1,a['Inject'](a[_0x38127d(0x26c)])),ne(0x2,a[_0x38127d(0x2b3)](_[_0x38127d(0x377)]))],x);const q=0x14,Pe=0xc8,ie=0x4,pt=0x5;function _0x357a(){const _0x392dd8=['registerDependencies','cursorInfo$','onStarting','Tooltip','sheetID','RemoveRowCommandId','getOwnPropertySymbols','Error','@univerjs/docs-ui','subUnitId','onLocalMutation','_ensureSubject','SNAPSHOT_HAS_BEEN_REMOVED','_localCacheService','exhaustSavingTask','Optional','endRow','isActive','_hovered','CollaborationDataLoaderController','APPLY_REVISION_CONFILICT','addObject','roomMembers','_univerInstanceService','_backgroundColor','fillText','assign','hide','fill','substring','getCurrent','transformIMECache','runRefRangeMutations','hasOwnProperty','361537TKwfbd','getLocalCacheKey','_onCursorDelete','type','saveTaskMap','url(#on-line-single_clip0_910_349)','_collaborationController','_logService','SetSelectionsOperation','storage','debounce','idSuffix','getParam','RefRangeService','handleDeleteRangeMoveUp','ref','SheetCollabCursorShape','_assignedColors','registerRefRange','UNDEFINED','_range','LICENSE_MAX_UNITS_EXCEEDED','Rect','onPointerEnter$','Injector','ACTIVE_UNIT_EVENT_CHANNEL','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','APPLY_DUPLICATED','getUnitId','div','focused$','getSkeleton','data','INTERNAL_ERROR','ALREADY_EXISTS','selection','fromEventSubject','evenodd','CONFLICT','for','univer-online-status-icon','_initEntityListener','_saveTaskMap','RemoteUniscriptService','DeleteRangeMoveLeftCommandId','getItem','endColumn','334472jDjySP','column','name','serializeRangeWithSheet','defaultProps','InsertRangeMoveRightCommandId','NO_OTHER_CLIENTS_EDITING','transformStateCache','handleInsertRow','call','flatMap','@univerjs/docs','handleMoveRange','status$','forEach','collabCursorState$','NodePositionConvertToRectRange','undoState','CLOSE_ROOM','width','SNAPSHOT_INVALID_SNAPSHOT','1030yEAVOh','error','_labelPosition','RevisionService','MUTATION','getConfig','collab-text-range-','DocIMEInputManagerService','symbol','_scheduleSaving','IUIPartsService','onlineStatusIcon','getOffsetConfig','generateRandomId','SetTextSelectionsOperation','_hover','height','_messageService','OTHER_CLIENT_EDITING','icon','apply','CollaborationUIEventService','text','_disabled','createIdentifier','_cursor','COMPLETION_FINISHED','Inject','_uiPartsService','merge','_docSkeletonManagerService','concat','collaboration-client-ui.config','connectInjector','_entityInit$','actions','add','translate(.97)','RegularPolygon','univer-offline','_toggleOffline','m1Prime','_updateURLWithCurrentState','ICommandService','_config','propertyIsEnumerable','off-line-single_clip0_910_343','pluginName','Subject','addObjects','getViewport','event$','_name','min','CollaborationStatus','DocSelectionManagerService','resize','svg','ThemeService','getTypeOfUnitAdded$','random','NOT_FOUND','onMouseMove','_refRangeService','requireSession','isTransformMutationsWithChangesetSuccess','_status$','@univerjs/ui','OnLineSingle','triggerDblclick','unload','prototype','_localStorageService','colorChannel1','transformMutation','Module','ranges','url(#off-line-single_clip0_910_343)','getActiveSheet','disposeWithMe','subscribeEvent','setAlpha','744OwHRBW','RemoveColCommandId','_configService','length','_roomMembers$','9jksVCs','loadOfflineData','setShapeProps','max','currentSkeleton$','off-line-single','5767270pYpaax','BuiltInUIPart','_cachedData','setParam','children','includes','jsx','assignAColorForMemberID','univer-flex\x20univer-items-center','_online','_unitOnClients','permission.title','NOT_COLLAB','transformMutationsWithChangeset','top','useCallback','RichTextEditingMutation','_render','DesktopCollaborationStatusDisplayController','some','sessionStatus$','_hideTimer','_handleHover','onTransformChange$','IUniverInstanceService','isEditing','_registerRenderDependencies','_clearOtherTimers','@univerjs/drawing','whenReady','_initCommandExecutedListener','_syncEditingCollabCursorService','getUniverSheetInstance','body','exports','collabStatus.offline','UNIVER_SHEET','_drawRectRange','fillStyle','with','ENSURE_SNAPSHOT_EXECUTION','useObservable','_scheduleClearOtherTimer','xlink:href','override','UniverCollaborationClientUIPlugin','_startDocCollabCursor','clipPath','OTHER_CLIENTS_EDITING','blue400','redoState','_beforeCloseService','@univerjs/core','isArray','_cursors','_anchorDot','react.fragment','stringify','transformSelections','@univerjs/network','clearTimeout','_docSkeleton','setStateCache','_getSaveTimeout','key','USERS_LEAVE','_themeService','CollaborationUIEventId','registerComponent','fromEvent','_sheetSkeletonManagerService','_saveCache','TOO_MANY_REQUESTS','APPLY_NON_SEQUENTIAL_REVISION','CONNECTOR_DATA_TOO_LARGE','jsxs','red300','forwardRef','IMessageService','push','ILocalStorageService','_send','_docTransformSelectionsService','activeSheet$','href','1em','params','history','getVpScrollXYInfoByPosToVp','dispose$','_removeCollabCursors','collaboration-client.offline-data-not-saved','_handleHeartbeatEvent','/run/','getUnhiddenWorksheets','CollaborationController','_updateCollabCursors','_initDependencies','TEXT_RANGE_LAYER_INDEX','_docSyncEditingCollabCursorService','IImageIoService','textRanges','_collabCursorState$','univerjs-icon\x20univerjs-icon-','OFFLINE','handleInsertRangeMoveDown','get','SOCKET_FAILED_RETRY','_transformService','transform','setInterval','univer-online','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Failed','_docClipboardService','dispose','distinctUntilChanged','_init','PY_RUNTIME_SCRIPT_ERROR','RxDisposable','_registerDependencies','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','handleIRemoveRow','_notificationService','string','beginPath','@univerjs/engine-render','_colorIndex','Rectangle','on-line-single','CollaborationSessionService','getValue','backgroundColor','LICENSE_DISTRO_REJECTED','_imageIoService','pipe','gold400','MemberService','_heartbeatTimer','...','getMember','CollaborationStatusDisplay','replace','roomMembers$','getActiveRange','ISocketService','cursorInfo','_onRefRangeChange','_unitStatus','RECT','_scene','unitId','getSheetObject','_textBubble','range','Tools','PERMISSION_DENIED','IDocClipboardService','2140572HlseeZ','location','LOCAL_CACHE_INTERVAL_KEY','_color','_initStatusListener','pushState','SHEET_VIEWPORT_KEY','BehaviorSubject','SOCKET_FAILED','send','CommandType','_docStateChangeManagerService','removeParam','YUUMI_SUBSCRIPTION_NOT_FOUND','registerBeforeClose','setItem','startRow','_collaborationUIEventService','defIds','sheetId','complete','combineLatest','delete','collab-text-anchor-','0\x200\x2016\x2016','current','restore','replaceDocRanges','_context','subunit','_initResize','UNRECOGNIZED','UNIVER_DOC','transformRemoteChangeset','searchParams','_httpService','COLORS','defineProperty','next','rxjs','getCoordByCell','getCurrentSelections','function','session.will-retry','UNAUTHENTICATED','_eventUnsubscribe','28ptUKvR','getCollabCursors$','toStringTag','_renderManagerService','eventID','replaceState','arc','_draw','subscribe','getRangePointData','black','ITransformService','AWAITING','currentColor','getOwnPropertyDescriptor','bottom','toDisposable','engine','_initStatusComponent','popstate','_colorAssignService','hovered','Warning','_drawTextRange','41284iXZbyl','#fff','offline','purple300','handleInsertRangeMoveRight','isTransformMutationFailure','contains','LocaleService','path','react','_injector','_docTransformStateCacheService','imageSourceType','_shapes','DocCollaborationEntity','getFocusedUnit','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','drawWith','DisposableCollection','entityInit$','_urlService','getAncestorScale','APPLY_PERMISSION_DENIED','disableLocalCache','0\x200\x2017\x2016','all','className','setActiveRange','newValue','AWAITING_WITH_PENDING','Unknown\x20user','addClipboardHook','m2Prime','toRgbString','defs','getCellPositionByOffset','LICENSE_EXPORT_SIZE_EXCEEDED','skeleton','WebURLService','_getMergeRange','has','ReactCurrentOwner','PENDING','tag','IURLService','url(#$1','getUnitStatus$','handleInsertCol','DOC_RANGE_TYPE','createInstance','getColor','on-line-single_clip0_910_349','1710XbqYmp','getCurrentUnitForType','getRenderById','CollaborationEvent','InsertRowCommandId','unit','_updateSubUnitFromURLParams','univer-online-status','_updateLocalCursor','_lastPointer','onCommandExecuted','YUUMI_RATE_OVER_LIMIT','displayName','init','session.collaboration-timeout','runId','set','@univerjs/engine-formula','collaboration.single-unit.warning','DocStateChangeManagerService','number','_handleEvent','SheetsSelectionsService','DocSkeletonManagerService','disposeUnit','filter','size','save','_entities','getCurrentRevOfUnit','_removeClearOtherTimer','_session','getStateCache','_anchor','onlineStatusTitle','_collabSessionService','find','asObservable','executionId','InsertRangeMoveDownCommandId','handleDeleteRangeMoveLeft','_commandService','getMemberID','Workbook','reconnect','onPointerMove$','color','collaboration.closeRoom','throttleTime','_toggleOnline','ColorKit','_handleLeaveEvent','_id','setUndoRedoMutationParamsCache','UniverInstanceType','currentTheme$','_handleJoinEvent','_scheduleHeartbeat','Disposable','_collabCursorController','permission.content','UPDATE_CURSOR','mergeOverrideWithDependencies','SetWorksheetActivateCommand','memberID','rxjs/operators','SYNCED','_cursorInfo$','ILogService','getTypeOfUnitDisposed$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','useDependency','_getSheetObject','useRef','getSheetId','getUndoRedoMutationParamsCache','MessageType','UniverIcon','IRenderManagerService','CHANGESET_REVISION_CONFILICT','extend','deepClone','getRelativeToViewportCoord','_startSheetCollabCursor','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','source','rgba(255,\x20255,\x20255,\x200.01)','@univerjs/sheets-ui','VIEW_MAIN','shareReplay','_refreshCollabCursors','docStateChange$','mutations','FromArray','executeCommand','toString','row','2034084bMmhzb','session.connection-failed','_onCursorUpdate','_initEvent','getCollabEntity$','YUUMI_UNABLE_LOAD_URL','SUBMIT_CHANGESET_TIMEOUT','collabStatus.fetchMiss','21BDLNeI','IBeforeCloseService','attrs','react.element','_transformPreviousActiveRange','split','registerRenderModule','IConfigService','YUUMI_URL_COL_OUT_OF_RANGE','urlChange$','measureText','result','show','round','transformByState','_setupBeforeClosingHandler','APPLY_REJECT','_transformHistoryAndStateStack','UnitStatus','unshift','unitID','syncEditingCollabCursor','clearInterval','EffectRefRangId','SessionStatus','code','map','Shape','DataLoaderService','_selfUnitIDs','values','labelPosition','ILocalCacheService','doc.mutation.rich-text-editing','SetDocZoomRatioOperation','_transformUndoRedoStack','collab-client.tooltip.reconnect','post','findNodePositionByCharIndex','_revisionService','from','M0\x200H16V16H0z','@univerjs-pro/collaboration','moveTo','_memberService','takeUntil','then','lineTo','_dataLoaderService','createElement','startsWith','_cursorShapes','_getAnchorBounding','editingUnit','switchMap','font','verdancy600','getSheetBySheetId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','DependentOn','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','setTimeout','touchDependencies','saveOfflineData','ONLINE','TEXT','[CollaborationDataLoaderController]','LICENSE_IMPORT_SIZE_EXCEEDED','_localeService','jiqing500'];_0x357a=function(){return _0x392dd8;};return _0x357a();}function Ct(_0x53cdd3,_0x354cd8){const _0x583a90=_0x38127d;let {radius:_0x589e31,width:_0x54ad08,height:_0x595212}=_0x354cd8;_0x589e31=_0x589e31!=null?_0x589e31:0x0,_0x54ad08=_0x54ad08!=null?_0x54ad08:0x1e,_0x595212=_0x595212!=null?_0x595212:0x1e;let _0x23b776=0x0,_0x34f675=0x0,_0x504cae=0x0;_0x23b776=_0x34f675=_0x504cae=Math['min'](_0x589e31,_0x54ad08/0x2,_0x595212/0x2),_0x53cdd3[_0x583a90(0x372)](),_0x53cdd3[_0x583a90(0x217)](_0x23b776,0x0),_0x53cdd3[_0x583a90(0x21b)](_0x54ad08-_0x34f675,0x0),_0x53cdd3[_0x583a90(0x13d)](_0x54ad08-_0x34f675,_0x34f675,_0x34f675,Math['PI']*0x3/0x2,0x0,!0x1),_0x53cdd3['lineTo'](_0x54ad08,_0x595212-_0x504cae),_0x53cdd3[_0x583a90(0x13d)](_0x54ad08-_0x504cae,_0x595212-_0x504cae,_0x504cae,0x0,Math['PI']/0x2,!0x1),_0x53cdd3[_0x583a90(0x21b)](0x0,_0x595212),_0x53cdd3[_0x583a90(0x21b)](0x0,_0x23b776),_0x53cdd3[_0x583a90(0x13d)](_0x23b776,_0x23b776,_0x23b776,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x53cdd3['closePath'](),_0x354cd8['fill']&&(_0x53cdd3['save'](),_0x53cdd3['fillStyle']=_0x354cd8[_0x583a90(0x24e)],_0x354cd8['fillRule']===_0x583a90(0x279)?_0x53cdd3[_0x583a90(0x24e)](_0x583a90(0x279)):_0x53cdd3[_0x583a90(0x24e)](),_0x53cdd3[_0x583a90(0x3ad)]());}class ee extends C[_0x38127d(0x207)]{constructor(_0x1f2afc,_0x4af32e){const _0x525adb=_0x38127d;super(_0x1f2afc,_0x4af32e),h(this,_0x525adb(0x1b1)),h(this,_0x525adb(0x2ae)),(this[_0x525adb(0x1b1)]=_0x4af32e==null?void 0x0:_0x4af32e[_0x525adb(0x1b1)],this[_0x525adb(0x2ae)]=_0x4af32e==null?void 0x0:_0x4af32e[_0x525adb(0x2ae)]);}static['drawWith'](_0x157405,_0x99e6fc){const _0x3561fe=_0x38127d,{text:_0xd4794e,color:_0x34fdcc}=_0x99e6fc;_0x157405[_0x3561fe(0x19e)](),_0x157405[_0x3561fe(0x223)]=_0x3561fe(0x228);const _0x24b04e=_0x157405[_0x3561fe(0x1f6)](_0xd4794e)[_0x3561fe(0x296)],_0x18e56e=Math[_0x3561fe(0x2cd)](_0x24b04e+0x2*ie,Pe);Ct(_0x157405,{'height':q,'radius':0x4,'width':_0x18e56e,'fill':_0x34fdcc,'evented':!0x1}),_0x157405[_0x3561fe(0x31b)]='#FFF';const _0x2ca8b4=ie,_0x1393a9=q-pt,_0x335ccf=Pe-0x2*ie;if(_0x24b04e>_0x335ccf){let _0x1ff0fd='',_0x13028b=0x0;for(const _0x3d1d75 of _0xd4794e){const _0xbe1292=_0x157405[_0x3561fe(0x1f6)](_0x3d1d75)[_0x3561fe(0x296)];if(_0x13028b+_0xbe1292<=_0x335ccf-_0x157405[_0x3561fe(0x1f6)](_0x3561fe(0x380))[_0x3561fe(0x296)])_0x1ff0fd+=_0x3d1d75,_0x13028b+=_0xbe1292;else{_0x1ff0fd+=_0x3561fe(0x380);break;}}_0x157405['fillText'](_0x1ff0fd,_0x2ca8b4,_0x1393a9);}else _0x157405[_0x3561fe(0x24b)](_0xd4794e,_0x2ca8b4,_0x1393a9);_0x157405[_0x3561fe(0x3ad)]();}[_0x38127d(0x13e)](_0x1ed7cd){const _0x2d6b68=_0x38127d;ee[_0x2d6b68(0x160)](_0x1ed7cd,this);}}const re=_0x38127d(0x3aa),bt=_0x38127d(0x29e),Et='collab-rect-range-',H=0x6,Rt=1.5,oe=0x4,Tt=1.5,Ot=_0x38127d(0x1d9);class Me{constructor(_0x13ddf4,_0x8e28e7,_0x541e48,_0x3363ae){const _0xdf6706=_0x38127d;h(this,'_shapes',[]),h(this,_0xdf6706(0x1a4),null),h(this,_0xdf6706(0x38e),null),h(this,'_anchorDot',null),h(this,_0xdf6706(0x30a),null),h(this,_0xdf6706(0x136),null),(this['_cursor']=_0x13ddf4,this[_0xdf6706(0x38b)]=_0x8e28e7,this[_0xdf6706(0x332)]=_0x541e48,this['_document']=_0x3363ae,this[_0xdf6706(0x306)]());}set[_0x38127d(0x2a7)](_0x307ef6){const _0x25d495=_0x38127d;_0x307ef6?(this['_anchorDot']&&this['_anchorDot'][_0x25d495(0x24d)](),this[_0x25d495(0x38e)]&&this['_textBubble']['show']()):(this[_0x25d495(0x32c)]&&this[_0x25d495(0x32c)][_0x25d495(0x1f8)](),this[_0x25d495(0x38e)]&&this[_0x25d495(0x38e)][_0x25d495(0x24d)]());}[_0x38127d(0x368)](){const _0x3bbafa=_0x38127d;for(const _0x340786 of this[_0x3bbafa(0x15c)])_0x340786[_0x3bbafa(0x368)]();this[_0x3bbafa(0x38e)]&&this[_0x3bbafa(0x38e)][_0x3bbafa(0x368)](),this[_0x3bbafa(0x32c)]&&this[_0x3bbafa(0x32c)]['dispose'](),this[_0x3bbafa(0x1a4)]&&this[_0x3bbafa(0x1a4)]['dispose'](),this[_0x3bbafa(0x136)]&&this[_0x3bbafa(0x136)]();}[_0x38127d(0x306)](){const _0x1172ce=_0x38127d;var _0x3bb772;const {_docSkeleton:_0x2aa1b9,_document:_0x5dae1e}=this,{color:_0x1f3507,name:_0x346e07,ranges:_0x21d0a9}=this[_0x1172ce(0x2b1)],_0x420fed=_0x5dae1e[_0x1172ce(0x2a4)](),{docsLeft:_0x14f5b8,docsTop:_0x550c18}=_0x420fed,_0x232627=new b['NodePositionConvertToCursor'](_0x420fed,_0x2aa1b9);for(const {startOffset:_0x5bb2a5,endOffset:_0x2ff0b2,rangeType:_0x350e80,segmentId:_0x46e0ea,segmentPage:_0x5e9311,collapsed:_0x15696a,isActive:_0x3c0f91}of _0x21d0a9){const _0x4273d3=_0x2aa1b9[_0x1172ce(0x212)](_0x5bb2a5,!0x0,_0x46e0ea,_0x5e9311);let _0xfb7334=_0x2aa1b9[_0x1172ce(0x212)](_0x2ff0b2,!0x0,_0x46e0ea,_0x5e9311);if(_0xfb7334==null&&(_0xfb7334=_0x2aa1b9['findNodePositionByCharIndex'](_0x2ff0b2-0x1,!0x1,_0x46e0ea,_0x5e9311)),_0x3c0f91){const {contentBoxPointGroup:_0x4f18cd}=_0x232627['getRangePointData'](_0xfb7334,_0xfb7334);if(_0x4f18cd[_0x1172ce(0x2ed)]===0x0)continue;this['_drawAnchor'](_0x1f3507,_0x4f18cd,_0x14f5b8,_0x550c18,_0x346e07),this[_0x1172ce(0x136)]=this[_0x1172ce(0x30b)]();}if(_0x4273d3&&_0xfb7334){if(_0x350e80===a[_0x1172ce(0x17f)]['RECT']){const _0x48ea6b=new b[(_0x1172ce(0x293))](_0x420fed,_0x2aa1b9),{pointGroup:_0x5d84b6}=(_0x3bb772=_0x48ea6b['getRangePointData'](_0x4273d3,_0xfb7334))!=null?_0x3bb772:{};if(_0x5d84b6==null||_0x5d84b6['length']===0x0)continue;this[_0x1172ce(0x31a)](_0x1f3507,_0x5d84b6,_0x14f5b8,_0x550c18);}else{if(!_0x15696a){const {borderBoxPointGroup:_0xa2e6be}=_0x232627[_0x1172ce(0x140)](_0x4273d3,_0xfb7334);if(_0xa2e6be[_0x1172ce(0x2ed)]===0x0)continue;this[_0x1172ce(0x14e)](_0x1f3507,_0xa2e6be,_0x14f5b8,_0x550c18);}}}}}['_drawAnchor'](_0xf35b8a,_0x5b06c7,_0x2446e5,_0x29381e,_0x1a191e){const _0x523b51=_0x38127d,_0x5b1166=this[_0x523b51(0x220)](_0x5b06c7),{left:_0x49023a,top:_0xecaeb9,height:_0x49dd31}=_0x5b1166,_0x2e695e=this['_getScale'](),_0x5712f0=Tt/_0x2e695e,_0x3475f=new C[(_0x523b51(0x26a))](re+a[_0x523b51(0x390)][_0x523b51(0x2a5)](H),{'left':_0x49023a+_0x2446e5-_0x5712f0,'top':_0xecaeb9+_0x29381e,'height':_0x49dd31,'width':Rt,'fill':_0xf35b8a||C[_0x523b51(0x181)](a[_0x523b51(0x12d)][_0x523b51(0x141)],0x0),'strokeWidth':_0x5712f0,'stroke':Ot,'evented':!0x0});this[_0x523b51(0x1a4)]=_0x3475f,this[_0x523b51(0x38b)][_0x523b51(0x247)](_0x3475f,b[_0x523b51(0x357)]);const _0x2c533e=new C[(_0x523b51(0x26a))](re+a[_0x523b51(0x390)][_0x523b51(0x2a5)](H),{'left':_0x49023a+_0x2446e5-_0x5712f0,'top':_0xecaeb9+_0x29381e-oe/0x2,'height':oe,'width':oe,'fill':_0xf35b8a||C[_0x523b51(0x181)](a[_0x523b51(0x12d)][_0x523b51(0x141)],0x0),'strokeWidth':0x0,'stroke':_0xf35b8a||C['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x523b51(0x32c)]=_0x2c533e,this[_0x523b51(0x38b)][_0x523b51(0x247)](_0x2c533e,b[_0x523b51(0x357)]);const _0x2fa4ce=new ee(re+a[_0x523b51(0x390)][_0x523b51(0x2a5)](H),{'left':_0x49023a+_0x2446e5-_0x5712f0,'top':_0xecaeb9+_0x29381e-q,'text':_0x1a191e,'color':_0xf35b8a});this[_0x523b51(0x38e)]=_0x2fa4ce,this[_0x523b51(0x38b)][_0x523b51(0x247)](_0x2fa4ce,b[_0x523b51(0x357)]),this[_0x523b51(0x2a7)]=!0x1;}['_handleHover'](){const _0x48a920=_0x38127d,_0x582008=this[_0x48a920(0x1a4)][_0x48a920(0x26b)][_0x48a920(0x2e8)](()=>{const _0xb7417e=_0x48a920;this[_0xb7417e(0x2a7)]=!0x0;}),_0x2882f5=this['_anchor']['onPointerLeave$']['subscribeEvent'](()=>{const _0x33ff8d=_0x48a920;this[_0x33ff8d(0x30a)]&&clearTimeout(this[_0x33ff8d(0x30a)]),this['_hideTimer']=setTimeout(()=>{const _0x2c4a05=_0x33ff8d;this[_0x2c4a05(0x2a7)]=!0x1;},0x7d0);});return()=>{_0x582008['unsubscribe'](),_0x2882f5['unsubscribe']();};}[_0x38127d(0x14e)](_0x4bd084,_0x29bc58,_0x58a73d,_0x374054){const _0x5ce49c=_0x38127d,_0x1d6aa5=new a[(_0x5ce49c(0x1b5))](_0x4bd084)[_0x5ce49c(0x2e9)](0.2)[_0x5ce49c(0x170)](),_0x53b4d2=new C[(_0x5ce49c(0x2be))](bt+a[_0x5ce49c(0x390)][_0x5ce49c(0x2a5)](H),{'pointsGroup':_0x29bc58,'fill':_0x1d6aa5||C['getColor'](a[_0x5ce49c(0x12d)][_0x5ce49c(0x141)],0.2),'left':_0x58a73d,'top':_0x374054,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5ce49c(0x15c)]['push'](_0x53b4d2),this[_0x5ce49c(0x38b)][_0x5ce49c(0x247)](_0x53b4d2,b[_0x5ce49c(0x357)]);}['_drawRectRange'](_0x4745c7,_0x1742f5,_0x10c21e,_0x534367){const _0x193310=_0x38127d,_0x51072d=new a[(_0x193310(0x1b5))](_0x4745c7)[_0x193310(0x2e9)](0.2)[_0x193310(0x170)](),_0x25332b=new C['RegularPolygon'](Et+a['Tools'][_0x193310(0x2a5)](H),{'pointsGroup':_0x1742f5,'fill':_0x51072d||C[_0x193310(0x181)](a['COLORS'][_0x193310(0x141)],0.2),'left':_0x10c21e,'top':_0x534367,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x193310(0x15c)][_0x193310(0x344)](_0x25332b),this[_0x193310(0x38b)][_0x193310(0x247)](_0x25332b,b[_0x193310(0x357)]);}['_getAnchorBounding'](_0x24db4a){const _0x104feb=_0x24db4a[0x0],_0x297879=_0x104feb[0x0],_0x593f8d=_0x104feb[0x2],{x:_0x24ba21,y:_0x3edc09}=_0x297879,{x:_0x8b29ff,y:_0x44a5cc}=_0x593f8d;return{'left':_0x24ba21,'top':_0x3edc09,'width':_0x8b29ff-_0x24ba21,'height':_0x44a5cc-_0x3edc09};}['_getScale'](){const _0x1f1081=_0x38127d,{scaleX:_0x247c70,scaleY:_0x293ec5}=this[_0x1f1081(0x38b)]['getAncestorScale']();return Math[_0x1f1081(0x2f2)](_0x247c70,_0x293ec5);}}var Dt=Object['defineProperty'],Pt=Object['getOwnPropertyDescriptor'],Mt=(_0x430146,_0x21a29b,_0x4f0883,_0x1ad71d)=>{const _0x30cc22=_0x38127d;for(var _0x5c16d5=_0x1ad71d>0x1?void 0x0:_0x1ad71d?Pt(_0x21a29b,_0x4f0883):_0x21a29b,_0x2389c4=_0x430146[_0x30cc22(0x2ed)]-0x1,_0xaca9b4;_0x2389c4>=0x0;_0x2389c4--)(_0xaca9b4=_0x430146[_0x2389c4])&&(_0x5c16d5=(_0x1ad71d?_0xaca9b4(_0x21a29b,_0x4f0883,_0x5c16d5):_0xaca9b4(_0x5c16d5))||_0x5c16d5);return _0x1ad71d&&_0x5c16d5&&Dt(_0x21a29b,_0x4f0883,_0x5c16d5),_0x5c16d5;},V=(_0x4c8d90,_0x185c1d)=>(_0x19edce,_0x1b7b71)=>_0x185c1d(_0x19edce,_0x1b7b71,_0x4c8d90);let Ie=class extends a[_0x38127d(0x36c)]{constructor(_0x4ae83d,_0x120526,_0x1c34ec,_0x15ffd8,_0x446719){const _0x50c398=_0x38127d;super(),h(this,_0x50c398(0x21f),[]),h(this,_0x50c398(0x32b),[]),(this[_0x50c398(0x3af)]=_0x4ae83d,this[_0x50c398(0x2b6)]=_0x120526,this[_0x50c398(0x1be)]=_0x1c34ec,this[_0x50c398(0x1ac)]=_0x15ffd8,this[_0x50c398(0x337)]=_0x446719,this[_0x50c398(0x36a)]());}[_0x38127d(0x36a)](){const _0x2f7c57=_0x38127d,_0xa673eb=this[_0x2f7c57(0x3af)][_0x2f7c57(0x38c)],_0x16b0eb=this[_0x2f7c57(0x2b6)];this[_0x2f7c57(0x2e7)](S[_0x2f7c57(0x3a8)]([this[_0x2f7c57(0x1be)][_0x2f7c57(0x138)](_0xa673eb),this['_themeService'][_0x2f7c57(0x1ba)]])['pipe']($['map'](([_0x26efc5,_0xffa681])=>({'skeleton':_0x16b0eb[_0x2f7c57(0x273)](),'cursors':[..._0x26efc5[_0x2f7c57(0x20a)]()][_0x2f7c57(0x28d)](_0x2a8a7c=>({..._0x2a8a7c,'color':_0xffa681[_0x2a8a7c[_0x2f7c57(0x1b1)]]}))})))['subscribe'](_0x1df531=>{const _0x4603f5=_0x2f7c57;if(this[_0x4603f5(0x34f)](),_0x1df531){const {skeleton:_0xffc842,cursors:_0x2cd756}=_0x1df531;this[_0x4603f5(0x355)](_0xffc842,_0x2cd756);}})),this[_0x2f7c57(0x3b1)](),this['_initCommandExecutedListener']();}[_0x38127d(0x355)](_0x46966b,_0xb5b679){const _0x19cbca=_0x38127d,{scene:_0x433f40,mainComponent:_0x511c18}=this[_0x19cbca(0x3af)],_0x26de58=_0xb5b679[_0x19cbca(0x206)](_0x4c6df8=>new Me(_0x4c6df8,_0x433f40,_0x46966b,_0x511c18));this[_0x19cbca(0x21f)]=_0x26de58,this[_0x19cbca(0x32b)]=_0xb5b679;}[_0x38127d(0x1dd)](){const _0x1e5a0c=_0x38127d;this[_0x1e5a0c(0x34f)]();const {scene:_0x5b6142,mainComponent:_0x405105}=this['_context'],_0x3ddab4=this[_0x1e5a0c(0x2b6)][_0x1e5a0c(0x273)](),_0x330e74=this['_cursors'][_0x1e5a0c(0x206)](_0x286109=>new Me(_0x286109,_0x5b6142,_0x3ddab4,_0x405105));this[_0x1e5a0c(0x21f)]=_0x330e74;}[_0x38127d(0x34f)](){const _0x309e15=_0x38127d;this['_cursorShapes'][_0x309e15(0x291)](_0x5138eb=>_0x5138eb['dispose']()),this['_cursorShapes']=[];}[_0x38127d(0x313)](){const _0x324877=_0x38127d,_0x45b4f5=[b[_0x324877(0x20e)]['id']];this[_0x324877(0x2e7)](this[_0x324877(0x1ac)][_0x324877(0x18d)](_0x3a51a7=>{const _0x96e54c=_0x324877;_0x45b4f5[_0x96e54c(0x2fa)](_0x3a51a7['id'])&&_0x3a51a7[_0x96e54c(0x34b)][_0x96e54c(0x38c)]===this[_0x96e54c(0x3af)][_0x96e54c(0x38c)]&&this[_0x96e54c(0x1dd)]();}));}[_0x38127d(0x3b1)](){const _0x17f291=_0x38127d;this[_0x17f291(0x2e7)](a[_0x17f291(0x278)](this[_0x17f291(0x3af)][_0x17f291(0x148)][_0x17f291(0x30c)])[_0x17f291(0x37c)]($[_0x17f291(0x19c)](_0x50bff3=>_0x50bff3[_0x17f291(0x257)]===C[_0x17f291(0x365)][_0x17f291(0x2d0)]),$[_0x17f291(0x1b3)](0x10))[_0x17f291(0x13f)](()=>{const _0x3a8d2e=_0x17f291;this[_0x3a8d2e(0x1dd)]();}));}};Ie=Mt([V(0x1,a[_0x38127d(0x2b3)](X[_0x38127d(0x19a)])),V(0x2,a[_0x38127d(0x2b3)](x)),V(0x3,a[_0x38127d(0x2c3)]),V(0x4,a['Inject'](a[_0x38127d(0x2d2)]))],Ie);const Ut=0x1,Nt=1.5;function _0x59a9(_0x2d17d1,_0x257e43){const _0x357a6a=_0x357a();return _0x59a9=function(_0x59a9fc,_0x1cca08){_0x59a9fc=_0x59a9fc-0x12a;let _0x39309a=_0x357a6a[_0x59a9fc];return _0x39309a;},_0x59a9(_0x2d17d1,_0x257e43);}class je extends C['Shape']{constructor(_0x1a0f47,_0x281aef){const _0xb6b57=_0x38127d;super(_0x1a0f47,_0x281aef),h(this,'_color'),h(this,_0xb6b57(0x244),!0x1),h(this,_0xb6b57(0x268)),h(this,_0xb6b57(0x2cc),''),h(this,_0xb6b57(0x29a),_0xb6b57(0x303)),h(this,_0xb6b57(0x24a)),(_0x281aef&&this[_0xb6b57(0x2f1)](_0x281aef),this[_0xb6b57(0x26b)]['subscribeEvent'](()=>this[_0xb6b57(0x2f1)]({'hovered':!0x0})),this['onPointerLeave$'][_0xb6b57(0x2e8)](()=>this[_0xb6b57(0x2f1)]({'hovered':!0x1})));}[_0x38127d(0x2f1)](_0xbe8dda){const _0x5e5b20=_0x38127d;var _0x2b405d,_0x30caa0,_0x4be467,_0x6b5d1,_0x4c4a4b,_0x463429;this['_color']=(_0x2b405d=_0xbe8dda[_0x5e5b20(0x1b1)])!=null?_0x2b405d:this['_color'],this[_0x5e5b20(0x244)]=(_0x30caa0=_0xbe8dda[_0x5e5b20(0x14c)])!=null?_0x30caa0:this['_hovered'],this[_0x5e5b20(0x268)]=(_0x4be467=_0xbe8dda[_0x5e5b20(0x38f)])!=null?_0x4be467:this['_range'],this[_0x5e5b20(0x2cc)]=(_0x6b5d1=_0xbe8dda['name'])!=null?_0x6b5d1:this[_0x5e5b20(0x2cc)],this[_0x5e5b20(0x29a)]=(_0x4c4a4b=_0xbe8dda[_0x5e5b20(0x20b)])!=null?_0x4c4a4b:this[_0x5e5b20(0x29a)],this[_0x5e5b20(0x24a)]=(_0x463429=_0xbe8dda[_0x5e5b20(0x379)])!=null?_0x463429:this[_0x5e5b20(0x24a)],this[_0x5e5b20(0x1fa)]({'width':_0xbe8dda[_0x5e5b20(0x296)],'height':_0xbe8dda[_0x5e5b20(0x2a8)]});}[_0x38127d(0x2d6)](_0x2153de){const _0x5a71b4=_0x38127d,{row:_0x218d86,column:_0x1cbec3}=_0x2153de;if(_0x218d86>=this[_0x5a71b4(0x268)][_0x5a71b4(0x3a3)]&&_0x218d86<=this[_0x5a71b4(0x268)][_0x5a71b4(0x242)]&&_0x1cbec3>=this['_range']['startColumn']&&_0x1cbec3<=this[_0x5a71b4(0x268)][_0x5a71b4(0x282)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x5a71b4(0x2f1)]({'hovered':!0x1});}[_0x38127d(0x2dd)](_0x5907bc){return!0x1;}[_0x38127d(0x13e)](_0x579783){const _0x318529=_0x38127d;C[_0x318529(0x26a)][_0x318529(0x160)](_0x579783,{'width':this['width'],'height':this[_0x318529(0x2a8)],'strokeWidth':Nt,'stroke':this[_0x318529(0x396)],'evented':!0x1,'fill':this[_0x318529(0x24a)]}),this[_0x318529(0x244)]&&(_0x579783[_0x318529(0x19e)](),_0x579783[_0x318529(0x362)](0x1,0x0,0x0,0x1,this[_0x318529(0x296)],this[_0x318529(0x29a)]==='bottom'?0x0:-0x14),ee['drawWith'](_0x579783,{'text':this['_name'],'color':this[_0x318529(0x396)]}),_0x579783[_0x318529(0x3ad)]());}}var wt=Object[_0x38127d(0x12e)],Lt=Object[_0x38127d(0x145)],At=(_0x16ca50,_0x4259a5,_0xa13d7a,_0x2ddfc3)=>{const _0x5b112c=_0x38127d;for(var _0x150888=_0x2ddfc3>0x1?void 0x0:_0x2ddfc3?Lt(_0x4259a5,_0xa13d7a):_0x4259a5,_0x3705b4=_0x16ca50[_0x5b112c(0x2ed)]-0x1,_0x5b149;_0x3705b4>=0x0;_0x3705b4--)(_0x5b149=_0x16ca50[_0x3705b4])&&(_0x150888=(_0x2ddfc3?_0x5b149(_0x4259a5,_0xa13d7a,_0x150888):_0x5b149(_0x150888))||_0x150888);return _0x2ddfc3&&_0x150888&&wt(_0x4259a5,_0xa13d7a,_0x150888),_0x150888;},ae=(_0xc0b2e8,_0x39c64e)=>(_0x45eb5e,_0x2aa71c)=>_0x39c64e(_0x45eb5e,_0x2aa71c,_0xc0b2e8);const yt=0x1389;let ge=class extends a[_0x38127d(0x36c)]{constructor(_0x5a2897,_0x1e6c20,_0x430714,_0x364309){const _0x307dbf=_0x38127d;super(),h(this,'_cursors',new Set()),h(this,_0x307dbf(0x18c),null),(this['_context']=_0x5a2897,this[_0x307dbf(0x33b)]=_0x1e6c20,this['_collabCursorController']=_0x430714,this[_0x307dbf(0x337)]=_0x364309,this[_0x307dbf(0x36a)]());}[_0x38127d(0x36a)](){const _0x572a9f=_0x38127d;this[_0x572a9f(0x33b)][_0x572a9f(0x2f3)][_0x572a9f(0x37c)]($['takeUntil'](this[_0x572a9f(0x34e)]),$[_0x572a9f(0x222)](_0x352fcb=>{const _0x342f0a=_0x572a9f;if(_0x352fcb){const _0x3c57db=_0x352fcb[_0x342f0a(0x3a6)];return S[_0x342f0a(0x3a8)](this[_0x342f0a(0x1be)]['getCollabCursors$'](this[_0x342f0a(0x3af)][_0x342f0a(0x38c)]),this[_0x342f0a(0x337)]['currentTheme$'])[_0x342f0a(0x37c)]($['map'](([_0x3a3ec1,_0x1888a3])=>{const _0x516577=_0x342f0a,_0x7ca917=new Map();return _0x3a3ec1[_0x516577(0x291)]((_0x1ec7a3,_0x431247)=>{const _0x5a5d7d=_0x516577;if(_0x1ec7a3[_0x5a5d7d(0x236)]===_0x3c57db){const _0x4f5cf0={..._0x1ec7a3};_0x4f5cf0[_0x5a5d7d(0x1b1)]=_0x1888a3[_0x1ec7a3[_0x5a5d7d(0x1b1)]],_0x7ca917[_0x5a5d7d(0x193)](_0x431247,_0x4f5cf0);}}),{'skeleton':_0x352fcb,'cursors':_0x7ca917};}));}return S['of']({'skeleton':null,'cursors':new Map()});}))[_0x572a9f(0x13f)](({skeleton:_0x26a1ba,cursors:_0x14c30c})=>{const _0x29e442=_0x572a9f;this[_0x29e442(0x34f)](),_0x26a1ba&&this[_0x29e442(0x355)](_0x26a1ba,_0x14c30c);}),this[_0x572a9f(0x33b)]['currentSkeleton$'][_0x572a9f(0x13f)](_0x28a3bb=>{const _0x2f4198=_0x572a9f;if(_0x28a3bb==null)return;const {skeleton:_0x3c5ef4}=_0x28a3bb,{scene:_0x49fba6}=this[_0x2f4198(0x3af)];_0x49fba6[_0x2f4198(0x1b0)][_0x2f4198(0x2e8)](a['debounce'](_0xb2651a=>{const _0x4d6297=_0x2f4198;var _0x16f7ab,_0x573cab;const {offsetX:_0x409c2e,offsetY:_0x62726b}=_0xb2651a,{x:_0x4056e3,y:_0x3224a3}=_0x49fba6[_0x4d6297(0x1d5)](C['Vector2'][_0x4d6297(0x1e0)]([_0x409c2e,_0x62726b])),{scaleX:_0x367396,scaleY:_0x2e57dc}=_0x49fba6[_0x4d6297(0x164)](),_0x380599=_0x49fba6[_0x4d6297(0x2ca)](C[_0x4d6297(0x399)][_0x4d6297(0x1db)]),_0x40b407=_0x49fba6[_0x4d6297(0x34d)](C['Vector2'][_0x4d6297(0x1e0)]([_0x4056e3,_0x3224a3]),_0x380599),_0x2dccc5=_0x3c5ef4[_0x4d6297(0x172)](_0x409c2e,_0x62726b,_0x367396,_0x2e57dc,_0x40b407);((_0x16f7ab=this['_lastPointer'])==null?void 0x0:_0x16f7ab['column'])===_0x2dccc5[_0x4d6297(0x284)]&&((_0x573cab=this[_0x4d6297(0x18c)])==null?void 0x0:_0x573cab[_0x4d6297(0x1e3)])===_0x2dccc5['row']||this[_0x4d6297(0x32b)]['forEach'](_0x47b65c=>{const _0x466e56=_0x4d6297;_0x47b65c[_0x466e56(0x2d6)](_0x2dccc5);});},0x64));});}[_0x38127d(0x355)](_0x5a5b9b,_0x34b66b){const _0x26d4cf=_0x38127d;var _0x4a8f09;const _0x4c297c=(_0x4a8f09=this[_0x26d4cf(0x33b)][_0x26d4cf(0x250)]())==null?void 0x0:_0x4a8f09[_0x26d4cf(0x174)];if(!_0x4c297c)return;const _0x54f181=this['_getSheetObject']();if(!_0x54f181)return;this[_0x26d4cf(0x32b)][_0x26d4cf(0x291)](_0x2f3fde=>{_0x2f3fde['makeDirty']();});const {scene:_0x58946f}=_0x54f181,_0x15b045=$t(Array['from'](_0x34b66b[_0x26d4cf(0x20a)]()))['map'](_0x1c376c=>{const _0x538b2f=_0x26d4cf,{color:_0x36f91b,range:_0x260e14,name:_0x5809d5,selection:_0x599b9e,sheetID:_0x316a97}=_0x1c376c,{startColumn:_0x414a3c,startRow:_0x36ef1a,endColumn:_0x430f9e,endRow:_0x2ce990}=_0x260e14,_0xb13924=k['getCoordByCell'](_0x36ef1a,_0x414a3c,_0x58946f,_0x4c297c),_0x10c071=k[_0x538b2f(0x131)](_0x2ce990,_0x430f9e,_0x58946f,_0x4c297c),{columnHeaderHeightAndMarginTop:_0x208fac}=_0x4c297c,{startX:_0x59a8b7,startY:_0x55ee92}=_0xb13924,{endX:_0x4686c6,endY:_0x74fcff}=_0x10c071,_0x443808=_0x4686c6-_0x59a8b7,_0x6bae8f=_0x74fcff-_0x55ee92,_0x2b49ec={'labelPosition':_0x55ee92-_0x208fac>=q?_0x538b2f(0x303):_0x538b2f(0x146),'sheetID':_0x316a97,'range':_0x260e14,'color':_0x36f91b,'name':_0x5809d5,'selection':_0x599b9e,'left':_0x59a8b7,'top':_0x55ee92,'width':_0x443808,'height':_0x6bae8f,'evented':!0x1,'zIndex':yt};return new je(_0x5809d5,_0x2b49ec);});_0x58946f[_0x26d4cf(0x2c9)](_0x15b045,Ut),this[_0x26d4cf(0x32b)]=new Set(_0x15b045);}[_0x38127d(0x34f)](){const _0xf2c4ee=_0x38127d;var _0x29370e;(_0x29370e=this[_0xf2c4ee(0x32b)])==null||_0x29370e['forEach'](_0x4bbcc4=>_0x4bbcc4[_0xf2c4ee(0x368)]());}[_0x38127d(0x1cb)](){const _0x4a3d0e=_0x38127d;return k[_0x4a3d0e(0x38d)](this[_0x4a3d0e(0x3af)][_0x4a3d0e(0x188)],this[_0x4a3d0e(0x3af)]);}};ge=At([ae(0x1,a['Inject'](k['SheetSkeletonManagerService'])),ae(0x2,a[_0x38127d(0x2b3)](x)),ae(0x3,a[_0x38127d(0x2b3)](a['ThemeService']))],ge);function $t(_0x3dd911){const _0x9fe218=_0x38127d,_0x1da72b=new Map();return _0x3dd911[_0x9fe218(0x291)](_0x3be9df=>{const _0x134c0f=_0x9fe218;if(_0x1da72b[_0x134c0f(0x177)](_0x3be9df['selection'])){const _0x417152=_0x1da72b[_0x134c0f(0x35f)](_0x3be9df[_0x134c0f(0x277)]);_0x417152['name']+=',\x20'+_0x3be9df[_0x134c0f(0x285)];}else _0x1da72b[_0x134c0f(0x193)](_0x3be9df[_0x134c0f(0x277)],_0x3be9df);}),Array[_0x9fe218(0x214)](_0x1da72b[_0x9fe218(0x20a)]());}var ce={'exports':{}},W={},Ue;function xt(){const _0x19872f=_0x38127d;if(Ue)return W;Ue=0x1;var _0x2bd54f=O,_0x5012b5=Symbol['for'](_0x19872f(0x1ef)),_0x563e2d=Symbol[_0x19872f(0x27b)](_0x19872f(0x32d)),_0x147dd1=Object[_0x19872f(0x2df)][_0x19872f(0x253)],_0x2d42a3=_0x2bd54f[_0x19872f(0x15f)][_0x19872f(0x178)],_0xf2aa79={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function _0x435e55(_0x50f6d2,_0xcf0602,_0x284758){const _0xde1d2=_0x19872f;var _0x56c721,_0x161105={},_0x2fc0ac=null,_0x741b8e=null;_0x284758!==void 0x0&&(_0x2fc0ac=''+_0x284758),_0xcf0602['key']!==void 0x0&&(_0x2fc0ac=''+_0xcf0602[_0xde1d2(0x335)]),_0xcf0602[_0xde1d2(0x263)]!==void 0x0&&(_0x741b8e=_0xcf0602[_0xde1d2(0x263)]);for(_0x56c721 in _0xcf0602)_0x147dd1['call'](_0xcf0602,_0x56c721)&&!_0xf2aa79[_0xde1d2(0x253)](_0x56c721)&&(_0x161105[_0x56c721]=_0xcf0602[_0x56c721]);if(_0x50f6d2&&_0x50f6d2[_0xde1d2(0x287)]){for(_0x56c721 in(_0xcf0602=_0x50f6d2[_0xde1d2(0x287)],_0xcf0602))_0x161105[_0x56c721]===void 0x0&&(_0x161105[_0x56c721]=_0xcf0602[_0x56c721]);}return{'$$typeof':_0x5012b5,'type':_0x50f6d2,'key':_0x2fc0ac,'ref':_0x741b8e,'props':_0x161105,'_owner':_0x2d42a3[_0xde1d2(0x3ac)]};}return W['Fragment']=_0x563e2d,W[_0x19872f(0x2fb)]=_0x435e55,W[_0x19872f(0x340)]=_0x435e55,W;}var Ne;function jt(){const _0x2d0462=_0x38127d;return Ne||(Ne=0x1,ce[_0x2d0462(0x317)]=xt()),ce[_0x2d0462(0x317)];}var N=jt(),E=function(){const _0x1a3602=_0x38127d;return E=Object['assign']||function(_0x3d1ef9){const _0x49971b=_0x59a9;for(var _0x3c51a1,_0xccfd0f=0x1,_0x306bbc=arguments[_0x49971b(0x2ed)];_0xccfd0f<_0x306bbc;_0xccfd0f++){_0x3c51a1=arguments[_0xccfd0f];for(var _0x44a48f in _0x3c51a1)Object[_0x49971b(0x2df)][_0x49971b(0x253)][_0x49971b(0x28c)](_0x3c51a1,_0x44a48f)&&(_0x3d1ef9[_0x44a48f]=_0x3c51a1[_0x44a48f]);}return _0x3d1ef9;},E[_0x1a3602(0x2ac)](this,arguments);},Bt=function(_0x2f7da3,_0x13d9d2){const _0x4ab9f7=_0x38127d;var _0x39fbcb={};for(var _0x310713 in _0x2f7da3)Object[_0x4ab9f7(0x2df)]['hasOwnProperty']['call'](_0x2f7da3,_0x310713)&&_0x13d9d2['indexOf'](_0x310713)<0x0&&(_0x39fbcb[_0x310713]=_0x2f7da3[_0x310713]);if(_0x2f7da3!=null&&typeof Object[_0x4ab9f7(0x238)]==_0x4ab9f7(0x133)){for(var _0x5bd418=0x0,_0x310713=Object[_0x4ab9f7(0x238)](_0x2f7da3);_0x5bd418<_0x310713[_0x4ab9f7(0x2ed)];_0x5bd418++)_0x13d9d2['indexOf'](_0x310713[_0x5bd418])<0x0&&Object['prototype'][_0x4ab9f7(0x2c5)][_0x4ab9f7(0x28c)](_0x2f7da3,_0x310713[_0x5bd418])&&(_0x39fbcb[_0x310713[_0x5bd418]]=_0x2f7da3[_0x310713[_0x5bd418]]);}return _0x39fbcb;},Ee=O[_0x38127d(0x342)](function(_0x4ceabd,_0x44f80f){const _0x1626c4=_0x38127d;var _0x2af557=_0x4ceabd[_0x1626c4(0x2ab)],_0x973c11=_0x4ceabd['id'],_0x4bf2b0=_0x4ceabd[_0x1626c4(0x169)],_0x4d5661=_0x4ceabd[_0x1626c4(0x1d3)],_0x2ea847=Bt(_0x4ceabd,['icon','id','className','extend']),_0x177bf8=_0x1626c4(0x35c)[_0x1626c4(0x2b7)](_0x973c11,'\x20')['concat'](_0x4bf2b0||'')['trim'](),_0x37264b=O[_0x1626c4(0x1cc)]('_'[_0x1626c4(0x2b7)](Ft()));return Be(_0x2af557,''[_0x1626c4(0x2b7)](_0x973c11),{'defIds':_0x2af557[_0x1626c4(0x3a5)],'idSuffix':_0x37264b[_0x1626c4(0x3ac)]},E({'ref':_0x44f80f,'className':_0x177bf8},_0x2ea847),_0x4d5661);});function Be(_0x4c50fd,_0x1f34a9,_0x5f52d3,_0x27941d,_0x4aee05){const _0x5c76e8=_0x38127d;return O[_0x5c76e8(0x21d)](_0x4c50fd[_0x5c76e8(0x17a)],E(E({'key':_0x1f34a9},Ht(_0x4c50fd,_0x5f52d3,_0x4aee05)),_0x27941d),(Wt(_0x4c50fd,_0x5f52d3)['children']||[])['map'](function(_0x36fb4f,_0x17ca6d){const _0x4afd6a=_0x5c76e8;return Be(_0x36fb4f,''[_0x4afd6a(0x2b7)](_0x1f34a9,'-')['concat'](_0x4c50fd[_0x4afd6a(0x17a)],'-')['concat'](_0x17ca6d),_0x5f52d3,void 0x0,_0x4aee05);}));}function Ht(_0x5c4e16,_0x1ba528,_0x27d2b7){const _0x48d03c=_0x38127d;var _0x232169=E({},_0x5c4e16[_0x48d03c(0x1ee)]);_0x27d2b7!=null&&_0x27d2b7[_0x48d03c(0x2e1)]&&_0x232169[_0x48d03c(0x24e)]==='colorChannel1'&&(_0x232169[_0x48d03c(0x24e)]=_0x27d2b7[_0x48d03c(0x2e1)]);var _0x467c0a=_0x1ba528[_0x48d03c(0x3a5)];return!_0x467c0a||_0x467c0a[_0x48d03c(0x2ed)]===0x0||(_0x5c4e16[_0x48d03c(0x17a)]==='use'&&_0x232169[_0x48d03c(0x320)]&&(_0x232169[_0x48d03c(0x320)]=_0x232169[_0x48d03c(0x320)]+_0x1ba528[_0x48d03c(0x25f)]),Object['entries'](_0x232169)[_0x48d03c(0x291)](function(_0x10b0d1){const _0x5e1bfe=_0x48d03c;var _0x339b7a=_0x10b0d1[0x0],_0x48c728=_0x10b0d1[0x1];typeof _0x48c728==_0x5e1bfe(0x371)&&(_0x232169[_0x339b7a]=_0x48c728[_0x5e1bfe(0x383)](/url\(#(.*)\)/,_0x5e1bfe(0x17c)[_0x5e1bfe(0x2b7)](_0x1ba528[_0x5e1bfe(0x25f)],')')));})),_0x232169;}function Wt(_0x32a7fe,_0x4e8240){const _0x1877a5=_0x38127d;var _0x2b9166,_0x18a26f=_0x4e8240['defIds'];return!_0x18a26f||_0x18a26f[_0x1877a5(0x2ed)]===0x0?_0x32a7fe:_0x32a7fe[_0x1877a5(0x17a)]===_0x1877a5(0x171)&&(!((_0x2b9166=_0x32a7fe[_0x1877a5(0x2f9)])===null||_0x2b9166===void 0x0)&&_0x2b9166[_0x1877a5(0x2ed)])?E(E({},_0x32a7fe),{'children':_0x32a7fe[_0x1877a5(0x2f9)]['map'](function(_0x4c31f3){const _0x4e84e0=_0x1877a5;return typeof _0x4c31f3[_0x4e84e0(0x1ee)]['id']==_0x4e84e0(0x371)&&_0x18a26f&&_0x18a26f['indexOf'](_0x4c31f3[_0x4e84e0(0x1ee)]['id'])>-0x1?E(E({},_0x4c31f3),{'attrs':E(E({},_0x4c31f3[_0x4e84e0(0x1ee)]),{'id':_0x4c31f3[_0x4e84e0(0x1ee)]['id']+_0x4e8240[_0x4e84e0(0x25f)]})}):_0x4c31f3;})}):_0x32a7fe;}function Ft(){const _0xa3ecf5=_0x38127d;return Math[_0xa3ecf5(0x2d4)]()['toString'](0x24)[_0xa3ecf5(0x24f)](0x2,0x8);}Ee['displayName']=_0x38127d(0x1d0);var Yt={'tag':'svg','attrs':{'fill':'none','viewBox':_0x38127d(0x3ab),'width':_0x38127d(0x34a),'height':_0x38127d(0x34a)},'children':[{'tag':'g','attrs':{'clipPath':_0x38127d(0x2e5)},'children':[{'tag':_0x38127d(0x157),'attrs':{'stroke':'currentColor','d':_0x38127d(0x26e),'strokeLinecap':'round','strokeLinejoin':_0x38127d(0x1f9),'strokeWidth':1.2}}]},{'tag':_0x38127d(0x171),'attrs':{},'children':[{'tag':_0x38127d(0x324),'attrs':{'id':_0x38127d(0x2c6)},'children':[{'tag':_0x38127d(0x157),'attrs':{'fill':_0x38127d(0x150),'d':_0x38127d(0x215)}}]}]}],'defIds':[_0x38127d(0x2c6)]},He=O[_0x38127d(0x342)](function(_0x1afb51,_0x1241c0){const _0x1f1e93=_0x38127d;return O[_0x1f1e93(0x21d)](Ee,Object[_0x1f1e93(0x24c)]({},_0x1afb51,{'id':_0x1f1e93(0x2f4),'ref':_0x1241c0,'icon':Yt}));});He[_0x38127d(0x18f)]='OffLineSingle';var Xt={'tag':_0x38127d(0x2d1),'attrs':{'fill':'none','viewBox':_0x38127d(0x167),'width':_0x38127d(0x34a),'height':_0x38127d(0x34a)},'children':[{'tag':'g','attrs':{'clipPath':_0x38127d(0x259)},'children':[{'tag':_0x38127d(0x157),'attrs':{'stroke':_0x38127d(0x144),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x38127d(0x1f9),'strokeLinejoin':_0x38127d(0x1f9),'strokeWidth':1.2}}]},{'tag':_0x38127d(0x171),'attrs':{},'children':[{'tag':_0x38127d(0x324),'attrs':{'id':_0x38127d(0x182)},'children':[{'tag':_0x38127d(0x157),'attrs':{'fill':_0x38127d(0x150),'d':_0x38127d(0x215),'transform':_0x38127d(0x2bd)}}]}]}],'defIds':[_0x38127d(0x182)]},We=O[_0x38127d(0x342)](function(_0x30b8bc,_0xee2c4a){const _0x2c8f33=_0x38127d;return O[_0x2c8f33(0x21d)](Ee,Object['assign']({},_0x30b8bc,{'id':_0x2c8f33(0x376),'ref':_0xee2c4a,'icon':Xt}));});We[_0x38127d(0x18f)]=_0x38127d(0x2dc);function Fe(_0x105067){const _0x28fc49=_0x38127d;var _0x353dbc,_0x177e98,_0x1b04cd='';if(typeof _0x105067==_0x28fc49(0x371)||typeof _0x105067==_0x28fc49(0x197))_0x1b04cd+=_0x105067;else{if(typeof _0x105067=='object'){if(Array[_0x28fc49(0x32a)](_0x105067)){var _0x586353=_0x105067[_0x28fc49(0x2ed)];for(_0x353dbc=0x0;_0x353dbc<_0x586353;_0x353dbc++)_0x105067[_0x353dbc]&&(_0x177e98=Fe(_0x105067[_0x353dbc]))&&(_0x1b04cd&&(_0x1b04cd+='\x20'),_0x1b04cd+=_0x177e98);}else{for(_0x177e98 in _0x105067)_0x105067[_0x177e98]&&(_0x1b04cd&&(_0x1b04cd+='\x20'),_0x1b04cd+=_0x177e98);}}}return _0x1b04cd;}function we(){const _0x16f85e=_0x38127d;for(var _0xf8818e,_0x4e0e31,_0x1e3076=0x0,_0x553063='',_0x42b084=arguments[_0x16f85e(0x2ed)];_0x1e3076<_0x42b084;_0x1e3076++)(_0xf8818e=arguments[_0x1e3076])&&(_0x4e0e31=Fe(_0xf8818e))&&(_0x553063&&(_0x553063+='\x20'),_0x553063+=_0x4e0e31);return _0x553063;}const Vt=_0x38127d(0x27c),Gt='univer-online-status-title',kt=_0x38127d(0x18a),qt=_0x38127d(0x364),Kt=_0x38127d(0x2bf),F={'onlineStatusIcon':Vt,'onlineStatusTitle':Gt,'onlineStatus':kt,'online':qt,'offline':Kt};function zt(_0x2f8c47){const _0x3f310c=_0x38127d;switch(_0x2f8c47){case _[_0x3f310c(0x2ce)][_0x3f310c(0x35d)]:return _0x3f310c(0x318);case _['CollaborationStatus'][_0x3f310c(0x27a)]:return'collabStatus.conflict';case _[_0x3f310c(0x2ce)]['FETCH_MISS']:return _0x3f310c(0x1eb);case _['CollaborationStatus'][_0x3f310c(0x301)]:return'collabStatus.notCollab';case _['CollaborationStatus'][_0x3f310c(0x143)]:case _[_0x3f310c(0x2ce)][_0x3f310c(0x16c)]:return'collabStatus.syncing';case _[_0x3f310c(0x2ce)][_0x3f310c(0x1c5)]:case _[_0x3f310c(0x2ce)][_0x3f310c(0x179)]:return'collabStatus.synced';}}function Ye(_0x387ecc){const _0xac9068=_0x38127d,{status$:_0x3ec86c}=_0x387ecc,_0x3b6ef6=w[_0xac9068(0x31e)](_0x3ec86c,_[_0xac9068(0x2ce)][_0xac9068(0x301)]),_0x3eecf2=a['useDependency'](a[_0xac9068(0x156)]),_0xd8e770=a[_0xac9068(0x1ca)](_[_0xac9068(0x377)]),_0x5e8ba6=_0x3b6ef6!==_[_0xac9068(0x2ce)]['OFFLINE'],_0x2e008d=_0x3eecf2['t'](zt(_0x3b6ef6)),_0x2f9a26=we(F['onlineStatus'],{[F['online']]:_0x5e8ba6,[F[_0xac9068(0x151)]]:!_0x5e8ba6}),_0x226e41=_0x5e8ba6?N[_0xac9068(0x2fb)](We,{}):N[_0xac9068(0x2fb)](He,{}),_0x5d2914=O[_0xac9068(0x304)](()=>{const _0x2bd34f=_0xac9068;_0x5e8ba6||_0xd8e770[_0x2bd34f(0x1af)]();},[_0x5e8ba6,_0xd8e770]);function _0x54833b(){const _0x2fbce8=_0xac9068;return N['jsxs'](_0x2fbce8(0x271),{'className':we(_0x2f9a26,_0x2fbce8(0x2fd)),'onClick':_0x5d2914,'children':[N[_0x2fbce8(0x2fb)](_0x2fbce8(0x271),{'className':F[_0x2fbce8(0x2a3)],'children':_0x226e41}),N[_0x2fbce8(0x2fb)](_0x2fbce8(0x271),{'className':F[_0x2fbce8(0x1a5)],'children':_0x2e008d})]});}return _0x5e8ba6?_0x54833b():N[_0xac9068(0x2fb)](M[_0xac9068(0x235)],{'title':_0x3eecf2['t'](_0xac9068(0x210)),'children':_0x54833b()});}var Jt=Object[_0x38127d(0x12e)],Zt=Object[_0x38127d(0x145)],Qt=(_0x5c7d7f,_0x3aad4e,_0x308e96,_0x2c3afb)=>{const _0x55cd4a=_0x38127d;for(var _0x105bed=_0x2c3afb>0x1?void 0x0:_0x2c3afb?Zt(_0x3aad4e,_0x308e96):_0x3aad4e,_0x3a9c18=_0x5c7d7f[_0x55cd4a(0x2ed)]-0x1,_0x54e042;_0x3a9c18>=0x0;_0x3a9c18--)(_0x54e042=_0x5c7d7f[_0x3a9c18])&&(_0x105bed=(_0x2c3afb?_0x54e042(_0x3aad4e,_0x308e96,_0x105bed):_0x54e042(_0x105bed))||_0x105bed);return _0x2c3afb&&_0x105bed&&Jt(_0x3aad4e,_0x308e96,_0x105bed),_0x105bed;},G=(_0x323bdd,_0x4e91d5)=>(_0x112dc0,_0x27c2f7)=>_0x4e91d5(_0x112dc0,_0x27c2f7,_0x323bdd);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x38127d(0x1bd)]{constructor(_0x49713b,_0x271853,_0x889ca2,_0x490546){const _0x12464b=_0x38127d;super(),h(this,_0x12464b(0x2da),new S[(_0x12464b(0x39a))](_[_0x12464b(0x2ce)][_0x12464b(0x301)])),(this['_univerInstanceService']=_0x49713b,this[_0x12464b(0x159)]=_0x271853,this[_0x12464b(0x25a)]=_0x889ca2,this[_0x12464b(0x2b4)]=_0x490546,this[_0x12464b(0x149)](),this[_0x12464b(0x397)]());}[_0x38127d(0x397)](){const _0x521171=_0x38127d;this[_0x521171(0x2e7)](this[_0x521171(0x249)][_0x521171(0x272)]['pipe'](S[_0x521171(0x222)](()=>{const _0x42417f=_0x521171,_0xcfea5=this[_0x42417f(0x249)][_0x42417f(0x15e)]();return _0xcfea5?this[_0x42417f(0x25a)][_0x42417f(0x1e8)](_0xcfea5[_0x42417f(0x270)]()):S['of'](null);}),S[_0x521171(0x222)](_0x4902e5=>_0x4902e5?_0x4902e5[_0x521171(0x290)]:S['of'](_[_0x521171(0x2ce)][_0x521171(0x301)])))[_0x521171(0x13f)](_0x538296=>{const _0x28c4ef=_0x521171;this[_0x28c4ef(0x2da)][_0x28c4ef(0x12f)](_0x538296);}));}['_initStatusComponent'](){const _0xa68b39=_0x38127d;this[_0xa68b39(0x2e7)](this[_0xa68b39(0x2b4)][_0xa68b39(0x339)](w[_0xa68b39(0x2f6)]['HEADER_MENU'],()=>a[_0xa68b39(0x2b9)](es({'status$':this[_0xa68b39(0x2da)][_0xa68b39(0x1a8)]()}),this['_injector'])));}},exports[_0x38127d(0x307)]=Qt([G(0x0,a[_0x38127d(0x30d)]),G(0x1,a[_0x38127d(0x2b3)](a['Injector'])),G(0x2,a['Inject'](_[_0x38127d(0x354)])),G(0x3,w[_0x38127d(0x2a2)])],exports[_0x38127d(0x307)]);function es(_0x433c97){const {status$:_0x1268ce}=_0x433c97;return function(){return N['jsx'](Ye,{'status$':_0x1268ce});};}var ts=Object[_0x38127d(0x12e)],ss=Object[_0x38127d(0x145)],ns=(_0x39b415,_0x2af27b,_0x4914be,_0x5bc73c)=>{const _0x103bf7=_0x38127d;for(var _0x16280c=_0x5bc73c>0x1?void 0x0:_0x5bc73c?ss(_0x2af27b,_0x4914be):_0x2af27b,_0x2c41e8=_0x39b415[_0x103bf7(0x2ed)]-0x1,_0x1f723b;_0x2c41e8>=0x0;_0x2c41e8--)(_0x1f723b=_0x39b415[_0x2c41e8])&&(_0x16280c=(_0x5bc73c?_0x1f723b(_0x2af27b,_0x4914be,_0x16280c):_0x1f723b(_0x16280c))||_0x16280c);return _0x5bc73c&&_0x16280c&&ts(_0x2af27b,_0x4914be,_0x16280c),_0x16280c;},y=(_0x304305,_0xa8441)=>(_0x3c988d,_0x4b4f55)=>_0xa8441(_0x3c988d,_0x4b4f55,_0x304305);let K=class extends a[_0x38127d(0x1bd)]{constructor(_0x1706c0,_0x54beb9,_0x2426cc,_0x1e6b7f,_0x3a266e,_0x68ff78){const _0xb6029=_0x38127d;super(),this[_0xb6029(0x328)]=_0x1706c0,this[_0xb6029(0x23f)]=_0x54beb9,this[_0xb6029(0x3a4)]=_0x2426cc,this['_messageService']=_0x1e6b7f,this[_0xb6029(0x370)]=_0x3a266e,this['_localeService']=_0x68ff78,this[_0xb6029(0x1fb)](),this[_0xb6029(0x1e7)]();}[_0x38127d(0x1fb)](){const _0x1c2ffb=_0x38127d;this[_0x1c2ffb(0x2e7)](this[_0x1c2ffb(0x328)][_0x1c2ffb(0x3a1)](()=>{const _0xca0dcf=_0x1c2ffb;if(this['_localCacheService']['saveTaskMap'][_0xca0dcf(0x19d)])return this['_localeService']['t'](_0xca0dcf(0x350));}));}[_0x38127d(0x1e7)](){const _0x2ce040=_0x38127d;this['disposeWithMe'](this[_0x2ce040(0x3a4)][_0x2ce040(0x2cb)][_0x2ce040(0x13f)](_0xc6a889=>{const _0x14cad8=_0x2ce040;_0xc6a889['id']===_[_0x14cad8(0x338)][_0x14cad8(0x2aa)]&&this[_0x14cad8(0x2a9)][_0x14cad8(0x1f8)]({'type':M[_0x14cad8(0x1cf)][_0x14cad8(0x14d)],'content':this['_localeService']['t'](_0x14cad8(0x195))}),_0xc6a889['id']===_[_0x14cad8(0x338)][_0x14cad8(0x295)]&&this[_0x14cad8(0x2a9)][_0x14cad8(0x1f8)]({'type':M[_0x14cad8(0x1cf)][_0x14cad8(0x14d)],'content':this['_localeService']['t'](_0x14cad8(0x1b2))}),_0xc6a889['id']===_[_0x14cad8(0x338)]['PERMISSION_DENIED']&&this[_0x14cad8(0x370)][_0x14cad8(0x1f8)]({'title':this[_0x14cad8(0x230)]['t'](_0x14cad8(0x300)),'content':this[_0x14cad8(0x230)]['t'](_0x14cad8(0x1bf)),'type':_0x14cad8(0x299),'duration':0x0}),_0xc6a889['id']===_['CollaborationUIEventId'][_0x14cad8(0x27a)]&&this[_0x14cad8(0x2a9)][_0x14cad8(0x1f8)]({'type':M[_0x14cad8(0x1cf)][_0x14cad8(0x239)],'content':this[_0x14cad8(0x230)]['t'](_0x14cad8(0x1b2))+'('+_0xc6a889[_0x14cad8(0x274)]+')'}),_0xc6a889['id']===_[_0x14cad8(0x338)]['JOIN_ROOM_FAILED']&&this[_0x14cad8(0x2a9)][_0x14cad8(0x1f8)]({'type':M[_0x14cad8(0x1cf)][_0x14cad8(0x14d)],'content':this['_localeService']['t'](_0xc6a889['data']||'')}),_0xc6a889['id']===_['CollaborationUIEventId'][_0x14cad8(0x360)]&&this[_0x14cad8(0x2a9)][_0x14cad8(0x1f8)]({'type':M[_0x14cad8(0x1cf)][_0x14cad8(0x14d)],'content':this[_0x14cad8(0x230)]['t'](_0x14cad8(0x134))}),_0xc6a889['id']===_['CollaborationUIEventId'][_0x14cad8(0x39b)]&&this[_0x14cad8(0x2a9)][_0x14cad8(0x1f8)]({'type':M[_0x14cad8(0x1cf)]['Error'],'content':this[_0x14cad8(0x230)]['t'](_0x14cad8(0x1e5))}),_0xc6a889['id']===_[_0x14cad8(0x338)][_0x14cad8(0x1ea)]&&this[_0x14cad8(0x2a9)][_0x14cad8(0x1f8)]({'type':M[_0x14cad8(0x1cf)]['Error'],'content':this[_0x14cad8(0x230)]['t'](_0x14cad8(0x191))});}));}};K=ns([y(0x0,w[_0x38127d(0x1ed)]),y(0x1,_[_0x38127d(0x20c)]),y(0x2,a['Inject'](_[_0x38127d(0x2ad)])),y(0x3,w[_0x38127d(0x343)]),y(0x4,w['INotificationService']),y(0x5,a[_0x38127d(0x2b3)](a['LocaleService']))],K);const is=_0x38127d(0x2b8),Le={},Re=a[_0x38127d(0x2b0)]('uni.network.url-service');var rs=Object[_0x38127d(0x12e)],os=Object[_0x38127d(0x145)],as=(_0x37857b,_0x547d54,_0x663d53,_0x2ff093)=>{const _0xc426eb=_0x38127d;for(var _0x4cef93=_0x2ff093>0x1?void 0x0:_0x2ff093?os(_0x547d54,_0x663d53):_0x547d54,_0x72d6e2=_0x37857b[_0xc426eb(0x2ed)]-0x1,_0x42307d;_0x72d6e2>=0x0;_0x72d6e2--)(_0x42307d=_0x37857b[_0x72d6e2])&&(_0x4cef93=(_0x2ff093?_0x42307d(_0x547d54,_0x663d53,_0x4cef93):_0x42307d(_0x4cef93))||_0x4cef93);return _0x2ff093&&_0x4cef93&&rs(_0x547d54,_0x663d53,_0x4cef93),_0x4cef93;},Y=(_0x56ab6b,_0xb7c685)=>(_0x37d142,_0x7d5118)=>_0xb7c685(_0x37d142,_0x7d5118,_0x56ab6b);exports[_0x38127d(0x245)]=class extends a[_0x38127d(0x36c)]{constructor(_0x2af693,_0x2630e5,_0x26850e,_0xa04d5a,_0x244306){const _0x47c2fc=_0x38127d;super(),this['_urlService']=_0x2af693,this[_0x47c2fc(0x25b)]=_0x2630e5,this[_0x47c2fc(0x1ac)]=_0x26850e,this[_0x47c2fc(0x21c)]=_0xa04d5a,_0x244306?_0x244306==null||_0x244306[_0x47c2fc(0x312)]()[_0x47c2fc(0x21a)](()=>this[_0x47c2fc(0x36a)]()):(this[_0x47c2fc(0x25b)]['debug'](_0x47c2fc(0x22e),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x38127d(0x36a)](){const _0x272954=_0x38127d,_0x5946bc=this[_0x272954(0x163)][_0x272954(0x260)](_0x272954(0x188)),_0x16bdda=this[_0x272954(0x163)][_0x272954(0x260)](_0x272954(0x257)),_0x558132=this[_0x272954(0x163)]['getParam'](_0x272954(0x3b0));if(!_0x5946bc||!_0x16bdda){this['_logService']['debug'](_0x272954(0x22e),_0x272954(0x1d7));return;}const _0x3e54ef=await this[_0x272954(0x21c)]['loadUnit'](_0x5946bc,Number(_0x16bdda),_0x558132);_0x3e54ef&&_0x3e54ef instanceof a[_0x272954(0x1ae)]&&this['_setupSubUnitSync'](_0x3e54ef);}async['_setupSubUnitSync'](_0x55a98e){const _0x1c0a23=_0x38127d;await this[_0x1c0a23(0x189)](_0x55a98e),_0x55a98e[_0x1c0a23(0x348)][_0x1c0a23(0x37c)](S[_0x1c0a23(0x219)](this[_0x1c0a23(0x34e)]))['subscribe'](_0x1ebd27=>{const _0x1ac492=_0x1c0a23;_0x1ebd27&&this[_0x1ac492(0x2c2)](_0x1ebd27);}),this[_0x1c0a23(0x163)][_0x1c0a23(0x1f5)][_0x1c0a23(0x37c)](S['takeUntil'](this['dispose$']))[_0x1c0a23(0x13f)](()=>this[_0x1c0a23(0x189)](_0x55a98e));}[_0x38127d(0x2c2)](_0x5866d7,_0x11e1a9=!0x1){const _0x278343=_0x38127d,_0x5a53d7=this[_0x278343(0x163)][_0x278343(0x260)](_0x278343(0x3b0));_0x5866d7['getSheetId']()!==_0x5a53d7&&this[_0x278343(0x163)][_0x278343(0x2f8)](_0x278343(0x3b0),_0x5866d7[_0x278343(0x1cd)](),_0x11e1a9);}async['_updateSubUnitFromURLParams'](_0x25e531){const _0x31f4d9=_0x38127d;var _0x50f112;const _0x5321f6=this[_0x31f4d9(0x163)]['getParam']('subunit');if(!_0x5321f6||!_0x25e531[_0x31f4d9(0x225)](_0x5321f6)){const _0x194a05=_0x25e531[_0x31f4d9(0x353)]()[0x0],_0x1e5672=_0x25e531[_0x31f4d9(0x225)](_0x194a05);if(!_0x1e5672)return;this['_updateURLWithCurrentState'](_0x1e5672,!0x0),await this[_0x31f4d9(0x1ac)]['executeCommand'](I[_0x31f4d9(0x1c2)]['id'],{'unitId':_0x25e531[_0x31f4d9(0x270)](),'subUnitId':_0x194a05});return;}((_0x50f112=_0x25e531[_0x31f4d9(0x2e6)]())==null?void 0x0:_0x50f112[_0x31f4d9(0x1cd)]())!==_0x5321f6&&await this['_commandService'][_0x31f4d9(0x1e1)](I[_0x31f4d9(0x1c2)]['id'],{'unitId':_0x25e531[_0x31f4d9(0x270)](),'subUnitId':_0x5321f6});}},exports[_0x38127d(0x245)]=as([Y(0x0,Re),Y(0x1,a[_0x38127d(0x1c7)]),Y(0x2,a[_0x38127d(0x2c3)]),Y(0x3,a['Inject'](_[_0x38127d(0x208)])),Y(0x4,a[_0x38127d(0x241)](tt['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var cs=Object['defineProperty'],ls=Object[_0x38127d(0x145)],us=(_0x6f4739,_0x390458,_0x277ead,_0x1e1d92)=>{const _0x29c579=_0x38127d;for(var _0xd91704=_0x1e1d92>0x1?void 0x0:_0x1e1d92?ls(_0x390458,_0x277ead):_0x390458,_0x826602=_0x6f4739[_0x29c579(0x2ed)]-0x1,_0x1e7f6e;_0x826602>=0x0;_0x826602--)(_0x1e7f6e=_0x6f4739[_0x826602])&&(_0xd91704=(_0x1e1d92?_0x1e7f6e(_0x390458,_0x277ead,_0xd91704):_0x1e7f6e(_0xd91704))||_0xd91704);return _0x1e1d92&&_0xd91704&&cs(_0x390458,_0x277ead,_0xd91704),_0xd91704;},le=(_0x2af783,_0x57bb8b)=>(_0x334e11,_0x455789)=>_0x57bb8b(_0x334e11,_0x455789,_0x2af783);let z=class{constructor(_0x581569,_0x698cf0,_0x467695){const _0x1379f7=_0x38127d;this[_0x1379f7(0x159)]=_0x581569,this[_0x1379f7(0x361)]=_0x698cf0,this[_0x1379f7(0x13a)]=_0x467695;}[_0x38127d(0x251)](_0x23ad25){const _0x390b01=_0x38127d;this[_0x390b01(0x20f)](_0x23ad25),this[_0x390b01(0x1f0)](_0x23ad25);}[_0x38127d(0x12a)](_0x57f7dd){const _0x5d73b7=_0x38127d,{unitID:_0xb3d6e1}=_0x57f7dd,_0x515f6a=this['_renderManagerService'][_0x5d73b7(0x185)](_0xb3d6e1)[_0x5d73b7(0x31c)](b[_0x5d73b7(0x29f)]),{redoCache:_0x18c947}=_0x515f6a[_0x5d73b7(0x1ce)]();if(_0x18c947[_0x5d73b7(0x2ed)]===0x0)return _0x57f7dd;let _0x35f5ae=a['Tools']['deepClone'](_0x57f7dd[_0x5d73b7(0x1df)][0x0]);for(let _0x327b2e=0x0;_0x327b2e<_0x18c947[_0x5d73b7(0x2ed)];_0x327b2e++){const _0x2b2ccf={'id':_0x5d73b7(0x20d),'params':{..._0x18c947[_0x327b2e]}},_0x443b29=this[_0x5d73b7(0x361)][_0x5d73b7(0x2e2)](_0x35f5ae,_0x2b2ccf,!0x1);if(g['isTransformMutationFailure'](_0x443b29))throw _0x443b29['error'];_0x35f5ae=_0x443b29[_0x5d73b7(0x2c1)];}return{...a['Tools']['deepClone'](_0x57f7dd),'mutations':[_0x35f5ae]};}[_0x38127d(0x20f)](_0x298607){const _0x392451=_0x38127d,{unitID:_0xe964fe}=_0x298607,_0x45178f=this[_0x392451(0x13a)][_0x392451(0x185)](_0xe964fe)[_0x392451(0x31c)](b[_0x392451(0x29f)]),{undoCache:_0x183163,redoCache:_0x40850a}=_0x45178f[_0x392451(0x1ce)]();if(_0x183163[_0x392451(0x2ed)]===0x0||_0x40850a['length']===0x0)return;const _0x4761ec=[],_0x13cb61=[];let _0x54da08=a[_0x392451(0x390)]['deepClone'](_0x298607[_0x392451(0x1df)][0x0]),_0x6a6769=a[_0x392451(0x390)][_0x392451(0x1d4)](_0x298607[_0x392451(0x1df)][0x0]);for(let _0x2eb18c=_0x183163[_0x392451(0x2ed)]-0x1;_0x2eb18c>=0x0;_0x2eb18c--){const _0x326394={'id':_0x392451(0x20d),'params':{..._0x183163[_0x2eb18c]}},_0x578769={'id':_0x392451(0x20d),'params':{..._0x40850a[_0x2eb18c]}},_0x290bbe=this[_0x392451(0x361)]['transformMutation'](_0x54da08,_0x326394,!0x1),_0x856bcc=this[_0x392451(0x361)]['transformMutation'](_0x6a6769,_0x578769,!0x1);if(g[_0x392451(0x154)](_0x290bbe))throw _0x290bbe[_0x392451(0x299)];if(g[_0x392451(0x154)](_0x856bcc))throw _0x856bcc[_0x392451(0x299)];_0x4761ec[_0x392451(0x1ff)](_0x290bbe[_0x392451(0x16f)]['params']),_0x13cb61['unshift'](_0x856bcc[_0x392451(0x16f)][_0x392451(0x34b)]),_0x54da08=_0x290bbe[_0x392451(0x2c1)],_0x6a6769=_0x856bcc[_0x392451(0x2c1)];}_0x45178f[_0x392451(0x1b8)]({'undoCache':_0x4761ec,'redoCache':_0x13cb61});}['_transformPreviousActiveRange'](_0x5ef1f0){const _0x245b64=_0x38127d,{unitID:_0x382330}=_0x5ef1f0,_0x713b09=this[_0x245b64(0x13a)][_0x245b64(0x185)](_0x382330)[_0x245b64(0x31c)](b[_0x245b64(0x29f)]),_0x56015e=_0x713b09[_0x245b64(0x385)]();if(_0x56015e==null)return;const _0x1f6073=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5ef1f0[_0x245b64(0x200)],'actions':null,'textRanges':[_0x56015e]}}],_0x125d64=this[_0x245b64(0x361)][_0x245b64(0x302)](_0x5ef1f0,_0x1f6073);if(!g[_0x245b64(0x2d9)](_0x125d64))throw _0x125d64[_0x245b64(0x299)];const _0x5a99b7=_0x125d64['m2Prime'][0x0][_0x245b64(0x34b)][_0x245b64(0x35a)];Array[_0x245b64(0x32a)](_0x5a99b7)&&_0x5a99b7['length']&&_0x713b09[_0x245b64(0x16a)](_0x5a99b7[0x0]);}};z=us([le(0x0,a[_0x38127d(0x2b3)](a['Injector'])),le(0x1,g['ITransformService']),le(0x2,C[_0x38127d(0x1d1)])],z);var hs=Object[_0x38127d(0x12e)],_s=Object['getOwnPropertyDescriptor'],ds=(_0x3dd50c,_0x10d1bb,_0x23b2fc,_0x73768b)=>{const _0x3b782f=_0x38127d;for(var _0x44b47f=_0x73768b>0x1?void 0x0:_0x73768b?_s(_0x10d1bb,_0x23b2fc):_0x10d1bb,_0x434ee7=_0x3dd50c[_0x3b782f(0x2ed)]-0x1,_0x364de3;_0x434ee7>=0x0;_0x434ee7--)(_0x364de3=_0x3dd50c[_0x434ee7])&&(_0x44b47f=(_0x73768b?_0x364de3(_0x10d1bb,_0x23b2fc,_0x44b47f):_0x364de3(_0x44b47f))||_0x44b47f);return _0x73768b&&_0x44b47f&&hs(_0x10d1bb,_0x23b2fc,_0x44b47f),_0x44b47f;},ue=(_0x522295,_0x257154)=>(_0x43ac7f,_0x54e099)=>_0x257154(_0x43ac7f,_0x54e099,_0x522295);let J=class{constructor(_0x9c992e,_0x2bde3f,_0x274565){const _0x3ffce9=_0x38127d;this[_0x3ffce9(0x159)]=_0x9c992e,this['_transformService']=_0x2bde3f,this[_0x3ffce9(0x39e)]=_0x274565;}[_0x38127d(0x28a)](_0x56771b){this['_transformHistoryAndStateStack'](_0x56771b);}[_0x38127d(0x12a)](_0x1a2611){const _0x397762=_0x38127d,{unitID:_0x32dcf3}=_0x1a2611,{collaboration:_0x3a4b12}=this[_0x397762(0x39e)][_0x397762(0x1a3)](_0x32dcf3);if(_0x3a4b12['length']===0x0)return _0x1a2611;let _0x309f06=a[_0x397762(0x390)][_0x397762(0x1d4)](_0x1a2611['mutations'][0x0]);for(let _0x2ad1d7=0x0;_0x2ad1d7<_0x3a4b12[_0x397762(0x2ed)];_0x2ad1d7++){const _0x2e9e91={'id':_0x397762(0x20d),'params':{'unitId':_0x3a4b12[_0x2ad1d7][_0x397762(0x38c)],..._0x3a4b12[_0x2ad1d7][_0x397762(0x327)]}},_0xebf3e3=this[_0x397762(0x361)][_0x397762(0x2e2)](_0x309f06,_0x2e9e91,!0x1);if(g[_0x397762(0x154)](_0xebf3e3))throw _0xebf3e3[_0x397762(0x299)];_0x309f06=_0xebf3e3[_0x397762(0x2c1)];}return{...a[_0x397762(0x390)]['deepClone'](_0x1a2611),'mutations':[_0x309f06]};}[_0x38127d(0x1fd)](_0x24b477){const _0x1f0b3d=_0x38127d,{unitID:_0x3aeb3b}=_0x24b477,{history:_0x235012,collaboration:_0x49832f}=this['_docStateChangeManagerService'][_0x1f0b3d(0x1a3)](_0x3aeb3b);if(_0x235012[_0x1f0b3d(0x2ed)]===0x0&&_0x49832f['length']===0x0)return;const _0x59d980=[],_0xae5e29=[];let _0x2a01e5=a[_0x1f0b3d(0x390)][_0x1f0b3d(0x1d4)](_0x24b477['mutations'][0x0]),_0x3bd560=a[_0x1f0b3d(0x390)][_0x1f0b3d(0x1d4)](_0x24b477[_0x1f0b3d(0x1df)][0x0]);for(let _0x511e43=_0x235012[_0x1f0b3d(0x2ed)]-0x1;_0x511e43>=0x0;_0x511e43--){const _0x3e808f={'id':_0x1f0b3d(0x20d),'params':{'unitId':_0x235012[_0x511e43][_0x1f0b3d(0x38c)],..._0x235012[_0x511e43]['undoState']}},_0x1d7f5a={'id':_0x1f0b3d(0x20d),'params':{'unitId':_0x235012[_0x511e43][_0x1f0b3d(0x38c)],..._0x235012[_0x511e43][_0x1f0b3d(0x327)]}},_0x40f134=this['_transformService'][_0x1f0b3d(0x2e2)](_0x2a01e5,_0x3e808f,!0x1),_0x4fadc6=this[_0x1f0b3d(0x361)][_0x1f0b3d(0x2e2)](_0x3bd560,_0x1d7f5a,!0x1);if(g[_0x1f0b3d(0x154)](_0x40f134))throw _0x40f134[_0x1f0b3d(0x299)];if(g[_0x1f0b3d(0x154)](_0x4fadc6))throw _0x4fadc6['error'];_0x59d980[_0x1f0b3d(0x1ff)]({..._0x235012[_0x511e43],'undoState':_0x40f134[_0x1f0b3d(0x16f)]['params'],'redoState':_0x4fadc6[_0x1f0b3d(0x16f)][_0x1f0b3d(0x34b)]}),_0x2a01e5=_0x40f134[_0x1f0b3d(0x2c1)],_0x3bd560=_0x4fadc6['m1Prime'];}_0x2a01e5=a[_0x1f0b3d(0x390)]['deepClone'](_0x24b477[_0x1f0b3d(0x1df)][0x0]),_0x3bd560=a[_0x1f0b3d(0x390)][_0x1f0b3d(0x1d4)](_0x24b477[_0x1f0b3d(0x1df)][0x0]);for(let _0x2271c4=_0x49832f[_0x1f0b3d(0x2ed)]-0x1;_0x2271c4>=0x0;_0x2271c4--){const _0x27b54f={'id':_0x1f0b3d(0x20d),'params':{'unitId':_0x49832f[_0x2271c4][_0x1f0b3d(0x38c)],..._0x49832f[_0x2271c4][_0x1f0b3d(0x294)]}},_0xd66de3={'id':_0x1f0b3d(0x20d),'params':{'unitId':_0x49832f[_0x2271c4]['unitId'],..._0x49832f[_0x2271c4][_0x1f0b3d(0x327)]}},_0x48b10c=this[_0x1f0b3d(0x361)][_0x1f0b3d(0x2e2)](_0x2a01e5,_0x27b54f,!0x1),_0x40276a=this['_transformService'][_0x1f0b3d(0x2e2)](_0x3bd560,_0xd66de3,!0x1);if(g[_0x1f0b3d(0x154)](_0x48b10c))throw _0x48b10c[_0x1f0b3d(0x299)];if(g[_0x1f0b3d(0x154)](_0x40276a))throw _0x40276a[_0x1f0b3d(0x299)];_0xae5e29[_0x1f0b3d(0x1ff)]({..._0x49832f[_0x2271c4],'undoState':_0x48b10c['m2Prime']['params'],'redoState':_0x40276a[_0x1f0b3d(0x16f)][_0x1f0b3d(0x34b)]}),_0x2a01e5=_0x48b10c[_0x1f0b3d(0x2c1)],_0x3bd560=_0x40276a['m1Prime'];}this[_0x1f0b3d(0x39e)][_0x1f0b3d(0x333)](_0x3aeb3b,{'history':_0x59d980,'collaboration':_0xae5e29});}};J=ds([ue(0x0,a['Inject'](a[_0x38127d(0x26c)])),ue(0x1,g['ITransformService']),ue(0x2,a['Inject'](b[_0x38127d(0x196)]))],J);var fs=Object['defineProperty'],Ss=Object[_0x38127d(0x145)],vs=(_0x3bc36e,_0xf42025,_0x16e933,_0x134984)=>{const _0x46be8d=_0x38127d;for(var _0x184582=_0x134984>0x1?void 0x0:_0x134984?Ss(_0xf42025,_0x16e933):_0xf42025,_0x342e5f=_0x3bc36e[_0x46be8d(0x2ed)]-0x1,_0x54aadc;_0x342e5f>=0x0;_0x342e5f--)(_0x54aadc=_0x3bc36e[_0x342e5f])&&(_0x184582=(_0x134984?_0x54aadc(_0xf42025,_0x16e933,_0x184582):_0x54aadc(_0x184582))||_0x184582);return _0x134984&&_0x184582&&fs(_0xf42025,_0x16e933,_0x184582),_0x184582;},Ae=(_0x1bcf2d,_0x2198ce)=>(_0x5279d0,_0x15ec38)=>_0x2198ce(_0x5279d0,_0x15ec38,_0x1bcf2d);let Z=class{constructor(_0x5c1947,_0x252f7d){const _0x186109=_0x38127d;this[_0x186109(0x159)]=_0x5c1947,this['_transformService']=_0x252f7d;}[_0x38127d(0x32f)](_0x39e1a7){const _0xa21b59=_0x38127d;var _0xa3828;const _0x7cbe79=this[_0xa21b59(0x159)][_0xa21b59(0x35f)](X[_0xa21b59(0x2cf)]),_0x5f155b=(_0xa3828=_0x7cbe79['getDocRanges']())!=null?_0xa3828:[];if(_0x5f155b[_0xa21b59(0x2ed)]===0x0)return;const _0x2fd45d=_0x39e1a7[_0xa21b59(0x200)],_0x18dce4=[{'id':_0xa21b59(0x20d),'params':{'unitId':_0x2fd45d,'actions':null,'textRanges':_0x5f155b}}],_0x19032c=this['_transformService'][_0xa21b59(0x302)](_0x39e1a7,_0x18dce4);if(!g[_0xa21b59(0x2d9)](_0x19032c))throw _0x19032c['error'];const _0x270888=_0x19032c['m2Prime'][0x0][_0xa21b59(0x34b)]['textRanges'];Array[_0xa21b59(0x32a)](_0x270888)&&_0x270888['length']&&_0x7cbe79[_0xa21b59(0x3ae)](_0x270888,{'unitId':_0x2fd45d,'subUnitId':_0x2fd45d},!0x1);}};Z=vs([Ae(0x0,a[_0x38127d(0x2b3)](a['Injector'])),Ae(0x1,g[_0x38127d(0x142)])],Z);var ms=Object['defineProperty'],Is=Object['getOwnPropertyDescriptor'],gs=(_0xf84f22,_0x34bb12,_0x46bd6a,_0xfde267)=>{const _0x43d21c=_0x38127d;for(var _0x10d6e6=_0xfde267>0x1?void 0x0:_0xfde267?Is(_0x34bb12,_0x46bd6a):_0x34bb12,_0x2c0a6d=_0xf84f22[_0x43d21c(0x2ed)]-0x1,_0x21b695;_0x2c0a6d>=0x0;_0x2c0a6d--)(_0x21b695=_0xf84f22[_0x2c0a6d])&&(_0x10d6e6=(_0xfde267?_0x21b695(_0x34bb12,_0x46bd6a,_0x10d6e6):_0x21b695(_0x10d6e6))||_0x10d6e6);return _0xfde267&&_0x10d6e6&&ms(_0x34bb12,_0x46bd6a,_0x10d6e6),_0x10d6e6;},P=(_0x4ac4da,_0x20b839)=>(_0x2ae91d,_0x190be2)=>_0x20b839(_0x2ae91d,_0x190be2,_0x4ac4da);let Q=class extends a[_0x38127d(0x1bd)]{constructor(_0x36ac2e,_0x157b7,_0x2d601b,_0xb4c963,_0x9fc71b,_0x38891a,_0x4c062c,_0x220b69){const _0x5d5228=_0x38127d;super(),h(this,_0x5d5228(0x2da),new S[(_0x5d5228(0x39a))](_[_0x5d5228(0x2ce)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x36ac2e,this[_0x5d5228(0x25a)]=_0x157b7,this['_docTransformIMECacheService']=_0x2d601b,this['_docTransformStateCacheService']=_0xb4c963,this[_0x5d5228(0x347)]=_0x9fc71b,this['_docSyncEditingCollabCursorService']=_0x38891a,this[_0x5d5228(0x2a9)]=_0x4c062c,this[_0x5d5228(0x230)]=_0x220b69,this[_0x5d5228(0x27d)]());}[_0x38127d(0x27d)](){const _0x1cf95b=_0x38127d;this[_0x1cf95b(0x2e7)](this['_collaborationController'][_0x1cf95b(0x162)][_0x1cf95b(0x13f)](_0xabc609=>{const _0x135c20=_0x1cf95b,_0x443a5d=this['_docStateChangeManagerService'][_0x135c20(0x1de)]['subscribe'](_0x2fae52=>{const _0x5457bd=_0x135c20;if(_0x2fae52==null)return;const {unitId:_0x133ea7,redoState:_0x206130,commandId:_0x26b6b5}=_0x2fae52;if(_0x133ea7!==_0xabc609[_0x5457bd(0x200)])return;const _0x44f26d={'id':_0x26b6b5,'type':a[_0x5457bd(0x39d)][_0x5457bd(0x29c)],'params':{'unitId':_0x133ea7,'actions':_0x206130[_0x5457bd(0x2bb)],'textRanges':null}};_0xabc609[_0x5457bd(0x23c)](_0x44f26d);});if(_0xabc609[_0x135c20(0x2e7)](_0x443a5d),_0xabc609 instanceof _[_0x135c20(0x15d)]){const _0x19e33d={'onTransformIME':_0x49965e=>this['_docTransformIMECacheService'][_0x135c20(0x251)](_0x49965e),'onTransformState':_0xa8f306=>this['_docTransformStateCacheService']['transformStateCache'](_0xa8f306),'onTransformSelections':_0xeb5ca4=>this[_0x135c20(0x347)][_0x135c20(0x32f)](_0xeb5ca4),'onSyncEditingCollabCursor':_0x227c0e=>this[_0x135c20(0x358)]['syncEditingCollabCursor'](_0x227c0e),'onTransformRemoteChangesetByIMECache':_0x3b905d=>this['_docTransformIMECacheService'][_0x135c20(0x12a)](_0x3b905d),'onTransformRemoteChangesetByStateCache':_0x1b46f7=>this[_0x135c20(0x15a)][_0x135c20(0x12a)](_0x1b46f7)};_0xabc609['addHandlerCallback'](_0x19e33d);}}));}};Q=gs([P(0x0,a['Inject'](b['DocStateChangeManagerService'])),P(0x1,a[_0x38127d(0x2b3)](_[_0x38127d(0x354)])),P(0x2,a[_0x38127d(0x2b3)](z)),P(0x3,a[_0x38127d(0x2b3)](J)),P(0x4,a['Inject'](Z)),P(0x5,a['Inject'](be)),P(0x6,w[_0x38127d(0x343)]),P(0x7,a[_0x38127d(0x2b3)](a[_0x38127d(0x156)]))],Q);var ps=Object[_0x38127d(0x12e)],Cs=Object[_0x38127d(0x145)],bs=(_0x1e7c43,_0x5e014b,_0x284906,_0x38573f)=>{const _0x561fa1=_0x38127d;for(var _0xa8ad60=_0x38573f>0x1?void 0x0:_0x38573f?Cs(_0x5e014b,_0x284906):_0x5e014b,_0x478218=_0x1e7c43[_0x561fa1(0x2ed)]-0x1,_0x55339d;_0x478218>=0x0;_0x478218--)(_0x55339d=_0x1e7c43[_0x478218])&&(_0xa8ad60=(_0x38573f?_0x55339d(_0x5e014b,_0x284906,_0xa8ad60):_0x55339d(_0xa8ad60))||_0xa8ad60);return _0x38573f&&_0xa8ad60&&ps(_0x5e014b,_0x284906,_0xa8ad60),_0xa8ad60;},he=(_0x142d15,_0x2bbdba)=>(_0x25240d,_0x3c5589)=>_0x2bbdba(_0x25240d,_0x3c5589,_0x142d15);let pe=class extends a[_0x38127d(0x1bd)]{constructor(_0x5857a8,_0x348aa1,_0x43a4b6){const _0x18f862=_0x38127d;super(),h(this,_0x18f862(0x2f7),new Map()),h(this,_0x18f862(0x27e),new Map()),h(this,_0x18f862(0x2af),!0x1),(this['_configService']=_0x5857a8,this[_0x18f862(0x2e0)]=_0x348aa1,this[_0x18f862(0x213)]=_0x43a4b6);}[_0x38127d(0x166)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0xa84a60=_0x38127d;this[_0xa84a60(0x2af)]=!0x1;}get[_0x38127d(0x258)](){const _0x1db442=_0x38127d;return this[_0x1db442(0x27e)];}[_0x38127d(0x368)](){const _0x59cb9e=_0x38127d;this[_0x59cb9e(0x240)]()[_0x59cb9e(0x21a)](()=>super[_0x59cb9e(0x368)]());}async[_0x38127d(0x2f0)](_0xa2d07a){const _0x4b13c2=_0x38127d;return this[_0x4b13c2(0x2af)]?null:this[_0x4b13c2(0x2e0)][_0x4b13c2(0x281)](_[_0x4b13c2(0x255)](_0xa2d07a));}async[_0x38127d(0x22b)](_0x999f87,_0x1a67d7){return!!this['_localStorageService']['setItem'](_0x999f87,_0x1a67d7);}['updateOfflineData'](_0x583c56,_0xcf91c0,_0x681c77,_0xc17f6c){const _0x1ef1b1=_0x38127d,_0x4fd50c=this[_0x1ef1b1(0x213)][_0x1ef1b1(0x1a0)](_0x583c56);this[_0x1ef1b1(0x2f7)][_0x1ef1b1(0x193)](_0x583c56,{'unitID':_0x583c56,'type':_0xcf91c0,'awaitingChangeset':_0x681c77,'mutations':_0xc17f6c,'rev':_0x4fd50c}),this[_0x1ef1b1(0x27e)]['has'](_0x583c56)||this['_scheduleSaving'](_0x583c56);}[_0x38127d(0x2a1)](_0x106448){const _0x3d227d=_0x38127d,_0x3cf66c=this['_getSaveTimeout']();_0x3cf66c===0x0?this[_0x3d227d(0x33c)](_0x106448):this['_saveTaskMap'][_0x3d227d(0x193)](_0x106448,setTimeout(()=>this[_0x3d227d(0x33c)](_0x106448),_0x3cf66c));}[_0x38127d(0x334)](){const _0x5387b1=_0x38127d;var _0x10113f;return(_0x10113f=this[_0x5387b1(0x2ec)][_0x5387b1(0x29d)](_[_0x5387b1(0x395)]))!=null?_0x10113f:_['LOCAL_CACHE_INTERVAL'];}[_0x38127d(0x33c)](_0x26ffd6){const _0x19e565=_0x38127d,_0x15bccc=this[_0x19e565(0x27e)][_0x19e565(0x35f)](_0x26ffd6);return _0x15bccc!==void 0x0&&window[_0x19e565(0x331)](_0x15bccc),this[_0x19e565(0x2e0)][_0x19e565(0x3a2)](_[_0x19e565(0x255)](_0x26ffd6),this['_cachedData']['get'](_0x26ffd6))['then'](()=>this[_0x19e565(0x27e)][_0x19e565(0x3a9)](_0x26ffd6));}async['exhaustSavingTask'](){const _0x1f9fc4=_0x38127d,_0x1f5a37=[];this[_0x1f9fc4(0x27e)]['forEach']((_0x39b536,_0x1b7ced)=>{const _0x14113f=_0x1f9fc4;window[_0x14113f(0x331)](_0x39b536),_0x1f5a37['push'](this[_0x14113f(0x33c)](_0x1b7ced)['then'](()=>{const _0xf94740=_0x14113f;this[_0xf94740(0x27e)]['delete'](_0x1b7ced);}));}),await Promise[_0x1f9fc4(0x168)](_0x1f5a37);}};pe=bs([he(0x0,a[_0x38127d(0x1f3)]),he(0x1,a[_0x38127d(0x345)]),he(0x2,a[_0x38127d(0x2b3)](g[_0x38127d(0x29b)]))],pe);class Xe extends a[_0x38127d(0x36c)]{constructor(){const _0x27021b=_0x38127d;super(),h(this,'urlChange$'),this['urlChange$']=S[_0x27021b(0x33a)](window,_0x27021b(0x14a))[_0x27021b(0x37c)](S['takeUntil'](this['dispose$']),S[_0x27021b(0x1dc)](0x1),S['mapTo'](void 0x0));}[_0x38127d(0x2f8)](_0x18623d,_0x5bd6d2,_0x2db6fb=!0x1){const _0x5cee32=_0x38127d,_0x2200c1=new URL(window[_0x5cee32(0x394)]['href']);_0x2200c1['searchParams'][_0x5cee32(0x193)](_0x18623d,_0x5bd6d2),_0x2db6fb?window[_0x5cee32(0x34c)][_0x5cee32(0x13c)]('','',_0x2200c1[_0x5cee32(0x1e2)]()):window[_0x5cee32(0x34c)][_0x5cee32(0x398)]('','',_0x2200c1['toString']());}[_0x38127d(0x39f)](_0x29efce,_0xa3277c=!0x1){const _0xf37341=_0x38127d,_0x42c4de=new URL(window['location'][_0xf37341(0x349)]);_0x42c4de[_0xf37341(0x12b)]['delete'](_0x29efce),_0xa3277c?window[_0xf37341(0x34c)][_0xf37341(0x13c)]('','',_0x42c4de[_0xf37341(0x1e2)]()):window[_0xf37341(0x34c)][_0xf37341(0x398)]('','',_0x42c4de[_0xf37341(0x1e2)]());}[_0x38127d(0x260)](_0x2a46f6){const _0x2d6c8a=_0x38127d;var _0x4989d5;return(_0x4989d5=new URL(window[_0x2d6c8a(0x394)][_0x2d6c8a(0x349)])[_0x2d6c8a(0x12b)][_0x2d6c8a(0x35f)](_0x2a46f6))!=null?_0x4989d5:void 0x0;}}var Ve=Object[_0x38127d(0x12e)],Es=Object[_0x38127d(0x145)],Rs=(_0x1d33b6,_0x150206,_0x3b653f)=>_0x150206 in _0x1d33b6?Ve(_0x1d33b6,_0x150206,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b653f}):_0x1d33b6[_0x150206]=_0x3b653f,Ts=(_0x396af2,_0xf14c46,_0x293781,_0x522ef1)=>{const _0xf6c28d=_0x38127d;for(var _0x142cfe=_0x522ef1>0x1?void 0x0:_0x522ef1?Es(_0xf14c46,_0x293781):_0xf14c46,_0x58b1bd=_0x396af2[_0xf6c28d(0x2ed)]-0x1,_0x663397;_0x58b1bd>=0x0;_0x58b1bd--)(_0x663397=_0x396af2[_0x58b1bd])&&(_0x142cfe=(_0x522ef1?_0x663397(_0xf14c46,_0x293781,_0x142cfe):_0x663397(_0x142cfe))||_0x142cfe);return _0x522ef1&&_0x142cfe&&Ve(_0xf14c46,_0x293781,_0x142cfe),_0x142cfe;},_e=(_0x2b0018,_0x523c57)=>(_0x599870,_0x55c4eb)=>_0x523c57(_0x599870,_0x55c4eb,_0x2b0018),Os=(_0xd5a5f2,_0xc43cce,_0x38cff1)=>Rs(_0xd5a5f2,_0xc43cce+'',_0x38cff1);const Ds=_0x38127d(0x226);exports[_0x38127d(0x322)]=class extends a['Plugin']{constructor(_0x5abc27=Le,_0x4f6186,_0x1c6058,_0x6223){const _0x1ab3df=_0x38127d;super(),this[_0x1ab3df(0x2c4)]=_0x5abc27,this['_renderManagerService']=_0x4f6186,this[_0x1ab3df(0x159)]=_0x1c6058,this[_0x1ab3df(0x2ec)]=_0x6223;const {..._0x507022}=a[_0x1ab3df(0x2b5)]({},Le,this['_config']);this[_0x1ab3df(0x2ec)]['setConfig'](is,_0x507022);}[_0x38127d(0x234)](){const _0x137fb6=_0x38127d;this[_0x137fb6(0x36d)](),this[_0x137fb6(0x356)]();}['onRendered'](){const _0x26e129=_0x38127d;this[_0x26e129(0x30f)]();}[_0x38127d(0x36d)](){const _0x336d7e=_0x38127d;var _0x107652;const _0x4548ce=[[Ce],[Z],[z],[J],[be],[Re,{'useClass':Xe}],[fe[_0x336d7e(0x386)],{'useClass':fe['WebSocketService']}],[_[_0x336d7e(0x20c)],{'useClass':pe}],[exports[_0x336d7e(0x307)]],[Q],[K],[x],[Se],[exports['CollaborationDataLoaderController']]];a[_0x336d7e(0x232)](this['_injector'],a[_0x336d7e(0x1c1)](_0x4548ce,(_0x107652=this[_0x336d7e(0x2c4)])==null?void 0x0:_0x107652[_0x336d7e(0x321)]));}[_0x38127d(0x30f)](){const _0x3f7261=_0x38127d;this[_0x3f7261(0x2e7)](this[_0x3f7261(0x13a)][_0x3f7261(0x1f2)](a['UniverInstanceType'][_0x3f7261(0x3b3)],[Ie])),this[_0x3f7261(0x2e7)](this['_renderManagerService'][_0x3f7261(0x1f2)](a[_0x3f7261(0x1b9)][_0x3f7261(0x319)],[ge]));}[_0x38127d(0x356)](){const _0x18e470=_0x38127d;a[_0x18e470(0x22a)](this[_0x18e470(0x159)],[[x],[exports[_0x18e470(0x307)]],[Q],[K],[exports[_0x18e470(0x245)]]]);}},Os(exports[_0x38127d(0x322)],_0x38127d(0x2c7),Ds),exports[_0x38127d(0x322)]=Ts([a[_0x38127d(0x227)](_['UniverCollaborationClientPlugin']),_e(0x1,C[_0x38127d(0x1d1)]),_e(0x2,a[_0x38127d(0x2b3)](a['Injector'])),_e(0x3,a['IConfigService'])],exports[_0x38127d(0x322)]);const ye=0x7530,$e=_0x38127d(0x26d);class Ps extends a[_0x38127d(0x1bd)]{constructor(){const _0x417a92=_0x38127d;super(),h(this,_0x417a92(0x1b7),a['Tools'][_0x417a92(0x2a5)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x417a92(0x2ff),new Map()),h(this,_0x417a92(0x37f),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x417a92(0x36a)]();}[_0x38127d(0x368)](){const _0x5eb7bc=_0x38127d;super['dispose'](),this[_0x5eb7bc(0x310)][_0x5eb7bc(0x291)]((_0x46ba59,_0x2d7e7b)=>this[_0x5eb7bc(0x1a1)](_0x2d7e7b)),this['_heartbeatTimer']&&window[_0x5eb7bc(0x202)](this[_0x5eb7bc(0x37f)]);}[_0x38127d(0x17d)](_0x4ec647){const _0x1632e8=_0x38127d;return this[_0x1632e8(0x23d)](_0x4ec647)[_0x1632e8(0x37c)](S[_0x1632e8(0x369)]());}[_0x38127d(0x221)](_0x3a050b){const _0x155fa5=_0x38127d;this[_0x155fa5(0x209)][_0x155fa5(0x19d)]===0x0&&this['_scheduleHeartbeat'](),this[_0x155fa5(0x209)][_0x155fa5(0x2bc)](_0x3a050b),this[_0x155fa5(0x346)]({'type':0x0,'memberID':this[_0x155fa5(0x1b7)],'unitIDs':[_0x3a050b],'isForwarded':!0x1});}[_0x38127d(0x19b)](_0x2f3b29){const _0x31cc3b=_0x38127d;this['_selfUnitIDs']['delete'](_0x2f3b29),this[_0x31cc3b(0x209)]['size']===0x0&&this[_0x31cc3b(0x37f)]&&window[_0x31cc3b(0x202)](this[_0x31cc3b(0x37f)]);}[_0x38127d(0x36a)](){const _0x2bba32=_0x38127d;this[_0x2bba32(0x2e7)](a[_0x2bba32(0x147)](S[_0x2bba32(0x33a)](window,_0x2bba32(0x25d))[_0x2bba32(0x13f)](_0x1c2244=>{const _0x517744=_0x2bba32;if(_0x1c2244[_0x517744(0x335)]!==$e||!_0x1c2244['newValue'])return;const _0x78c293=JSON['parse'](_0x1c2244[_0x517744(0x16b)]);this[_0x517744(0x198)](_0x78c293);}))),window['addEventListener'](_0x2bba32(0x2de),()=>this['_send']({'type':0x1,'memberID':this[_0x2bba32(0x1b7)],'unitIDs':Array[_0x2bba32(0x214)](this[_0x2bba32(0x209)])}));}[_0x38127d(0x198)](_0x35b063){const _0x48cb3d=_0x38127d;switch(_0x35b063[_0x48cb3d(0x257)]){case 0x0:this[_0x48cb3d(0x1bb)](_0x35b063);break;case 0x1:this[_0x48cb3d(0x1b6)](_0x35b063);break;case 0x2:this[_0x48cb3d(0x351)](_0x35b063);break;}}[_0x38127d(0x1bb)](_0x365fcc){const _0x2682d3=_0x38127d,{unitIDs:_0x40e794,memberID:_0x11967f,isForwarded:_0x43bf4b}=_0x365fcc;_0x40e794[_0x2682d3(0x291)](_0x46f3e6=>{const _0x59c231=_0x2682d3;if(!_0x43bf4b&&this[_0x59c231(0x2ff)][_0x59c231(0x177)](_0x46f3e6)&&this['_ensureSubject'](_0x46f3e6)[_0x59c231(0x12f)](_[_0x59c231(0x1fe)][_0x59c231(0x325)]),!this['_unitOnClients'][_0x59c231(0x177)](_0x46f3e6)||!this['_unitOnClients'][_0x59c231(0x35f)](_0x46f3e6)[_0x59c231(0x177)](_0x11967f)){const _0x2f4147=this['_unitOnClients'][_0x59c231(0x35f)](_0x46f3e6)||new Set();_0x2f4147[_0x59c231(0x2bc)](_0x11967f),this[_0x59c231(0x2ff)]['set'](_0x46f3e6,_0x2f4147),this[_0x59c231(0x31f)](_0x11967f);}}),_0x43bf4b||this[_0x2682d3(0x346)]({'type':0x0,'memberID':this[_0x2682d3(0x1b7)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x38127d(0x31f)](_0x2ee6cf){const _0x47b029=_0x38127d;this[_0x47b029(0x1a1)](_0x2ee6cf);const _0x36fe0b=window[_0x47b029(0x229)](()=>{const _0x4dcb39=_0x47b029;this[_0x4dcb39(0x2ff)]['forEach'](_0x40d7dd=>{const _0x5cbbd2=_0x4dcb39;_0x40d7dd[_0x5cbbd2(0x3a9)](_0x2ee6cf);});},ye*0x2);this[_0x47b029(0x310)][_0x47b029(0x193)](_0x2ee6cf,_0x36fe0b);}[_0x38127d(0x1a1)](_0x5a586d){const _0x2b3f54=_0x38127d;if(this[_0x2b3f54(0x310)]['has'](_0x5a586d)){const _0x5181ba=this['_clearOtherTimers'][_0x2b3f54(0x35f)](_0x5a586d);_0x5181ba&&window[_0x2b3f54(0x331)](_0x5181ba),this[_0x2b3f54(0x310)][_0x2b3f54(0x193)](_0x5a586d,null);}}['_handleLeaveEvent'](_0x38d600){const _0xa5441=_0x38127d,{memberID:_0x5c98d6,unitIDs:_0x547631}=_0x38d600;_0x547631[_0xa5441(0x291)](_0x4b5b12=>{const _0x20fdf3=_0xa5441;var _0x10e0bc;const _0x58ebb4=this[_0x20fdf3(0x2ff)][_0x20fdf3(0x35f)](_0x4b5b12);_0x58ebb4&&(_0x58ebb4['delete'](_0x5c98d6),(_0x10e0bc=this[_0x20fdf3(0x23d)](_0x4b5b12))==null||_0x10e0bc['next'](_0x58ebb4[_0x20fdf3(0x19d)]===0x0?_[_0x20fdf3(0x1fe)][_0x20fdf3(0x289)]:_['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0xa5441(0x1a1)](_0x5c98d6);}[_0x38127d(0x351)](_0x334e1e){const _0x2c4af8=_0x38127d;this[_0x2c4af8(0x31f)](_0x334e1e[_0x2c4af8(0x1c3)]);}[_0x38127d(0x346)](_0x34e618){const _0x2422da=_0x38127d;localStorage[_0x2422da(0x3a2)]($e,JSON[_0x2422da(0x32e)](_0x34e618));}[_0x38127d(0x1bc)](){const _0x3de8a5=_0x38127d;this[_0x3de8a5(0x37f)]=window[_0x3de8a5(0x363)](()=>{const _0x39e347=_0x3de8a5;this[_0x39e347(0x346)]({'type':0x2,'memberID':this['_id']});},ye);}[_0x38127d(0x23d)](_0xc02c1e){const _0x24ea72=_0x38127d;return this[_0x24ea72(0x389)][_0x24ea72(0x177)](_0xc02c1e)||this[_0x24ea72(0x389)][_0x24ea72(0x193)](_0xc02c1e,new S['BehaviorSubject'](_[_0x24ea72(0x1fe)][_0x24ea72(0x289)])),this['_unitStatus'][_0x24ea72(0x35f)](_0xc02c1e);}}var Ge=(_0x33f261=>(_0x33f261[_0x33f261['UNDEFINED']=0x0]=_0x38127d(0x267),_0x33f261[_0x33f261['OK']=0x1]='OK',_0x33f261[_0x33f261[_0x38127d(0x275)]=0x2]=_0x38127d(0x275),_0x33f261[_0x33f261[_0x38127d(0x391)]=0x3]=_0x38127d(0x391),_0x33f261[_0x33f261[_0x38127d(0x2d5)]=0x4]=_0x38127d(0x2d5),_0x33f261[_0x33f261[_0x38127d(0x135)]=0x5]=_0x38127d(0x135),_0x33f261[_0x33f261[_0x38127d(0x276)]=0x6]=_0x38127d(0x276),_0x33f261[_0x33f261['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x33f261[_0x33f261[_0x38127d(0x33d)]=0x8]=_0x38127d(0x33d),_0x33f261[_0x33f261[_0x38127d(0x2b2)]=0x9]='COMPLETION_FINISHED',_0x33f261[_0x33f261['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x38127d(0x1d2),_0x33f261[_0x33f261[_0x38127d(0x297)]=0x1771]=_0x38127d(0x297),_0x33f261[_0x33f261[_0x38127d(0x23e)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x33f261[_0x33f261[_0x38127d(0x31d)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x33f261[_0x33f261[_0x38127d(0x1fc)]=0x1b59]=_0x38127d(0x1fc),_0x33f261[_0x33f261['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x38127d(0x33e),_0x33f261[_0x33f261[_0x38127d(0x246)]=0x1b5b]=_0x38127d(0x246),_0x33f261[_0x33f261[_0x38127d(0x165)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x33f261[_0x33f261[_0x38127d(0x26f)]=0x1b5d]='APPLY_DUPLICATED',_0x33f261[_0x33f261[_0x38127d(0x33f)]=0x1f41]=_0x38127d(0x33f),_0x33f261[_0x33f261[_0x38127d(0x269)]=0x2329]=_0x38127d(0x269),_0x33f261[_0x33f261['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x33f261[_0x33f261[_0x38127d(0x22f)]=0x232b]=_0x38127d(0x22f),_0x33f261[_0x33f261['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x38127d(0x173),_0x33f261[_0x33f261[_0x38127d(0x37a)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x33f261[_0x33f261[_0x38127d(0x1e9)]=0x2711]=_0x38127d(0x1e9),_0x33f261[_0x33f261[_0x38127d(0x1f4)]=0x2712]=_0x38127d(0x1f4),_0x33f261[_0x33f261[_0x38127d(0x18e)]=0x2713]=_0x38127d(0x18e),_0x33f261[_0x33f261[_0x38127d(0x3a0)]=0x2714]=_0x38127d(0x3a0),_0x33f261[_0x33f261[_0x38127d(0x36b)]=0x2af9]=_0x38127d(0x36b),_0x33f261[_0x33f261[_0x38127d(0x3b2)]=-0x1]=_0x38127d(0x3b2),_0x33f261))(Ge||{}),Ms=Object[_0x38127d(0x12e)],Us=Object[_0x38127d(0x145)],Ns=(_0x552d6c,_0xeeedb1,_0x34a539,_0x43e74d)=>{const _0x37666b=_0x38127d;for(var _0x5e675c=_0x43e74d>0x1?void 0x0:_0x43e74d?Us(_0xeeedb1,_0x34a539):_0xeeedb1,_0x59929c=_0x552d6c[_0x37666b(0x2ed)]-0x1,_0xca3ece;_0x59929c>=0x0;_0x59929c--)(_0xca3ece=_0x552d6c[_0x59929c])&&(_0x5e675c=(_0x43e74d?_0xca3ece(_0xeeedb1,_0x34a539,_0x5e675c):_0xca3ece(_0x5e675c))||_0x5e675c);return _0x43e74d&&_0x5e675c&&Ms(_0xeeedb1,_0x34a539,_0x5e675c),_0x5e675c;},de=(_0x94f6c2,_0x47cb91)=>(_0x3374fa,_0x2e17fa)=>_0x47cb91(_0x3374fa,_0x2e17fa,_0x94f6c2);exports[_0x38127d(0x27f)]=class extends a[_0x38127d(0x1bd)]{constructor(_0xd1fff7,_0x1a4dee,_0x4135b4){const _0x53b0c4=_0x38127d;super(),this['_instanceService']=_0xd1fff7,this[_0x53b0c4(0x12c)]=_0x1a4dee,this[_0x53b0c4(0x2ec)]=_0x4135b4;}async['runOnServer'](_0x4fcd3f,_0x42d395,_0x3f44c9,..._0x235f17){const _0xb42832=_0x38127d;var _0x743428,_0x376351,_0x27521b,_0x479a7d;const _0x279bd1=this['_instanceService'][_0xb42832(0x15e)]();if(!_0x279bd1)throw new Error(_0xb42832(0x1c9));const _0x20a875=((_0x743428=this['_configService'][_0xb42832(0x29d)](_[_0xb42832(0x36e)]))!=null?_0x743428:_['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x4fcd3f+_0xb42832(0x352)+_0x42d395,_0x2c3f13=new URL(window[_0xb42832(0x394)][_0xb42832(0x349)]),_0x172af4={'scriptId':_0x4fcd3f,'runId':(_0x376351=_0x2c3f13[_0xb42832(0x12b)]['get'](_0xb42832(0x192)))!=null?_0x376351:'','function':_0x42d395,'unitId':_0x279bd1['getUnitId'](),'argsOfFunction':JSON[_0xb42832(0x32e)](_0x235f17),'invokeId':(_0x27521b=_0x3f44c9['invokeId'])!=null?_0x27521b:'','executionId':(_0x479a7d=_0x3f44c9[_0xb42832(0x1a9)])!=null?_0x479a7d:''};try{const _0x4a1dd9=await this[_0xb42832(0x12c)][_0xb42832(0x211)](_0x20a875,{'body':_0x172af4});return _0x4a1dd9[_0xb42832(0x316)][_0xb42832(0x299)]&&_0x4a1dd9[_0xb42832(0x316)][_0xb42832(0x299)][_0xb42832(0x205)]!==Ge['OK']?{'result':_0xb42832(0x366)}:{'result':_0x4a1dd9[_0xb42832(0x316)][_0xb42832(0x1f7)]};}catch{return{'result':_0xb42832(0x366)};}}},exports[_0x38127d(0x27f)]=Ns([de(0x0,a[_0x38127d(0x30d)]),de(0x1,a[_0x38127d(0x2b3)](fe['HTTPService'])),de(0x2,a[_0x38127d(0x1f3)])],exports[_0x38127d(0x27f)]),exports[_0x38127d(0x382)]=Ye,exports[_0x38127d(0x17b)]=Re,exports[_0x38127d(0x264)]=je,exports['WebBrowserSingleActiveUnitService']=Ps,exports[_0x38127d(0x175)]=Xe;
|