@univerjs-pro/collaboration-client-ui 0.9.1-nightly.202507041607 → 0.9.1-nightly.202507051607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x261bc8=_0x16b7;(function(_0x2995e5,_0x2e68a1){const _0x372719=_0x16b7,_0xacf37d=_0x2995e5();while(!![]){try{const _0x9c5fdb=parseInt(_0x372719(0xdb))/0x1*(parseInt(_0x372719(0xe2))/0x2)+parseInt(_0x372719(0xda))/0x3+parseInt(_0x372719(0xdc))/0x4*(-parseInt(_0x372719(0xe0))/0x5)+parseInt(_0x372719(0xe1))/0x6*(parseInt(_0x372719(0xd7))/0x7)+-parseInt(_0x372719(0xde))/0x8+parseInt(_0x372719(0xdd))/0x9+parseInt(_0x372719(0xd8))/0xa*(parseInt(_0x372719(0xd6))/0xb);if(_0x9c5fdb===_0x2e68a1)break;else _0xacf37d['push'](_0xacf37d['shift']());}catch(_0xcde5ff){_0xacf37d['push'](_0xacf37d['shift']());}}}(_0x22af,0x2b552));function _0x22af(){const _0x29d423=['runOnServer','1337765ExkGVH','851862ZYpjhb','3470lpOhee','FUniver','get','7799ixeRoG','7CtBgRZ','750bpIwyA','_injector','67788bKRXjf','71HjtXPI','4tIPZkn','1002240VVGyof','58000RrdvxH'];_0x22af=function(){return _0x29d423;};return _0x22af();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');function _0x16b7(_0x4d995e,_0x5e7d56){const _0x22af80=_0x22af();return _0x16b7=function(_0x16b77e,_0x1a2ede){_0x16b77e=_0x16b77e-0xd6;let _0x5ad794=_0x22af80[_0x16b77e];return _0x5ad794;},_0x16b7(_0x4d995e,_0x5e7d56);}class c extends e['FUniver']{['runOnServer'](_0x32fe66,_0x2dba7c,..._0x220d43){const _0x669805=_0x16b7;return this[_0x669805(0xd9)][_0x669805(0xe4)](t['RemoteUniscriptService'])[_0x669805(0xdf)](_0x32fe66,_0x2dba7c,{},..._0x220d43);}}e[_0x261bc8(0xe3)]['extend'](c);
1
+ 'use strict';const _0x59b62d=_0x59b7;(function(_0x51b025,_0x1fe978){const _0x3fc006=_0x59b7,_0x25fdf6=_0x51b025();while(!![]){try{const _0x224fa0=parseInt(_0x3fc006(0x172))/0x1*(parseInt(_0x3fc006(0x17e))/0x2)+parseInt(_0x3fc006(0x17c))/0x3*(parseInt(_0x3fc006(0x178))/0x4)+parseInt(_0x3fc006(0x17f))/0x5*(parseInt(_0x3fc006(0x175))/0x6)+-parseInt(_0x3fc006(0x17d))/0x7+parseInt(_0x3fc006(0x17b))/0x8*(-parseInt(_0x3fc006(0x181))/0x9)+-parseInt(_0x3fc006(0x173))/0xa+-parseInt(_0x3fc006(0x182))/0xb*(-parseInt(_0x3fc006(0x177))/0xc);if(_0x224fa0===_0x1fe978)break;else _0x25fdf6['push'](_0x25fdf6['shift']());}catch(_0x3b9012){_0x25fdf6['push'](_0x25fdf6['shift']());}}}(_0x2ff9,0x4c705));const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x59b62d(0x180)]{[_0x59b62d(0x174)](_0x48d3c2,_0x623fdb,..._0x47bf3c){const _0x16707d=_0x59b62d;return this[_0x16707d(0x176)][_0x16707d(0x179)](t['RemoteUniscriptService'])['runOnServer'](_0x48d3c2,_0x623fdb,{},..._0x47bf3c);}}function _0x59b7(_0x5a0638,_0x75709f){const _0x2ff9e3=_0x2ff9();return _0x59b7=function(_0x59b793,_0x180499){_0x59b793=_0x59b793-0x172;let _0x571794=_0x2ff9e3[_0x59b793];return _0x571794;},_0x59b7(_0x5a0638,_0x75709f);}e[_0x59b62d(0x180)][_0x59b62d(0x17a)](c);function _0x2ff9(){const _0x5e0fc5=['4048093GzFwMK','2yYvsmh','970IQZGAE','FUniver','2542599hxiGyR','22FXXJNe','484167bXdMcb','4490540lgsjBF','runOnServer','15588FEFoIF','_injector','5389908uCMjEB','244PwicFq','get','extend','16mDIiBJ','933OimQSA'];_0x2ff9=function(){return _0x5e0fc5;};return _0x2ff9();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x14c41a=_0x4f22;(function(_0x1de45d,_0x3703c5){const _0x3b7d3f=_0x4f22,_0x35b314=_0x1de45d();while(!![]){try{const _0x3a6e5c=-parseInt(_0x3b7d3f(0x3fa))/0x1*(-parseInt(_0x3b7d3f(0x36f))/0x2)+parseInt(_0x3b7d3f(0x441))/0x3+parseInt(_0x3b7d3f(0x332))/0x4*(-parseInt(_0x3b7d3f(0x3ec))/0x5)+parseInt(_0x3b7d3f(0x22c))/0x6+-parseInt(_0x3b7d3f(0x32e))/0x7*(-parseInt(_0x3b7d3f(0x2ee))/0x8)+-parseInt(_0x3b7d3f(0x417))/0x9+-parseInt(_0x3b7d3f(0x385))/0xa*(-parseInt(_0x3b7d3f(0x2c6))/0xb);if(_0x3a6e5c===_0x3703c5)break;else _0x35b314['push'](_0x35b314['shift']());}catch(_0x599839){_0x35b314['push'](_0x35b314['shift']());}}}(_0xbc37,0x538be));var Ve=Object[_0x14c41a(0x21e)],Xe=(_0x40cfb1,_0x2f0391,_0x4a1482)=>_0x2f0391 in _0x40cfb1?Ve(_0x40cfb1,_0x2f0391,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a1482}):_0x40cfb1[_0x2f0391]=_0x4a1482,h=(_0x23de1f,_0x45c37a,_0x49a3dc)=>Xe(_0x23de1f,typeof _0x45c37a!=_0x14c41a(0x39c)?_0x45c37a+'':_0x45c37a,_0x49a3dc);Object[_0x14c41a(0x21e)](exports,Symbol[_0x14c41a(0x218)],{'value':_0x14c41a(0x214)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x14c41a(0x204)],ze=(_0x4a55c6,_0x4df008,_0x3aaa61,_0x3088cb)=>{for(var _0x33fe3e=_0x3088cb>0x1?void 0x0:_0x3088cb?qe(_0x4df008,_0x3aaa61):_0x4df008,_0x1b817f=_0x4a55c6['length']-0x1,_0xb9b16c;_0x1b817f>=0x0;_0x1b817f--)(_0xb9b16c=_0x4a55c6[_0x1b817f])&&(_0x33fe3e=_0xb9b16c(_0x33fe3e)||_0x33fe3e);return _0x33fe3e;},Oe=(_0xeac995,_0x47870e)=>(_0x20ac88,_0x5efbf3)=>_0x47870e(_0x20ac88,_0x5efbf3,_0xeac995);let de=class extends a[_0x14c41a(0x3b5)]{constructor(_0x56ad71,_0x3d09c7){const _0x1b9e2a=_0x14c41a;super(),this[_0x1b9e2a(0x322)]=_0x56ad71,this[_0x1b9e2a(0x43e)]=_0x3d09c7,this[_0x1b9e2a(0x1e9)]();}['_init'](){const _0x5292e7=_0x14c41a,_0x3d5a85=this;this['disposeWithMe'](this[_0x5292e7(0x322)][_0x5292e7(0x2d5)]({'onBeforePasteImage':async _0x2b5777=>{const _0x149712=_0x5292e7,_0x591572=await _0x3d5a85[_0x149712(0x43e)][_0x149712(0x36b)](_0x2b5777);return _0x591572?{'source':_0x591572['source'],'imageSourceType':_0x591572['imageSourceType']}:null;}}));}};de=ze([Oe(0x0,E[_0x14c41a(0x45b)]),Oe(0x1,Ge[_0x14c41a(0x28c)])],de);const Te=[_0x14c41a(0x32a),_0x14c41a(0x430),'green.600',_0x14c41a(0x3f9),_0x14c41a(0x28e),_0x14c41a(0x3b1)];class me extends a['Disposable']{constructor(){const _0x30cced=_0x14c41a;super(...arguments),h(this,_0x30cced(0x320),new Map()),h(this,_0x30cced(0x263),0x0);}['assignAColorForMemberID'](_0x506c9f){const _0x82b52=_0x14c41a;if(this['_assignedColors'][_0x82b52(0x291)](_0x506c9f))return this[_0x82b52(0x320)][_0x82b52(0x340)](_0x506c9f);const _0x418fba=Te[this[_0x82b52(0x263)]];return this[_0x82b52(0x263)]=(this[_0x82b52(0x263)]+0x1)%Te[_0x82b52(0x2a7)],this[_0x82b52(0x320)][_0x82b52(0x1e6)](_0x506c9f,_0x418fba),_0x418fba;}}function Pe(_0x40e0c4){const _0x256ab9=_0x14c41a;let _0x259ec1='';for(const _0x49af9e of _0x40e0c4){const {startOffset:_0x54b612,endOffset:_0x58fd3e,isActive:_0x3fbb99,rangeType:_0x1acff0,segmentId:_0x5f01d5,segmentPage:_0x52cb71}=_0x49af9e;_0x259ec1[_0x256ab9(0x2a7)]&&(_0x259ec1+=','),_0x259ec1+=_0x54b612+':'+_0x58fd3e+':'+(_0x3fbb99?'1':'0')+':'+_0x1acff0+':'+_0x5f01d5+':'+_0x52cb71;}return _0x259ec1;}function Je(_0x6ee8e5){const _0x4a0de1=_0x14c41a,_0xea329a=_0x6ee8e5['split'](','),_0x381e5c=[];for(const _0x12b2a9 of _0xea329a){const [_0x5b6a8b,_0x1f4320,_0x5f2457,_0x4b556e,_0xeec534,_0x5e23e9]=_0x12b2a9[_0x4a0de1(0x372)](':');_0x381e5c[_0x4a0de1(0x2ff)]({'startOffset':Number(_0x5b6a8b),'endOffset':Number(_0x1f4320),'collapsed':_0x5b6a8b===_0x1f4320,'isActive':_0x5f2457==='1','rangeType':_0x4b556e===a[_0x4a0de1(0x397)][_0x4a0de1(0x24f)]?a[_0x4a0de1(0x397)]['TEXT']:a[_0x4a0de1(0x397)][_0x4a0de1(0x39d)],'segmentId':typeof _0xeec534==_0x4a0de1(0x43d)?String(_0xeec534):'','segmentPage':Number(_0x5e23e9!=null?_0x5e23e9:-0x1)});}return _0x381e5c['some'](_0x1573b7=>_0x1573b7[_0x4a0de1(0x33b)])||(_0x381e5c[0x0][_0x4a0de1(0x33b)]=!0x0),_0x381e5c;}class Ce extends a[_0x14c41a(0x3b5)]{constructor(){const _0xb7ecd0=_0x14c41a;super(...arguments),h(this,_0xb7ecd0(0x221),new d[(_0xb7ecd0(0x425))](null)),h(this,_0xb7ecd0(0x2fb),this[_0xb7ecd0(0x221)]['asObservable']());}[_0x14c41a(0x3cb)](_0x51fbcb){const _0x50ab44=_0x14c41a,{unitID:_0x5a5767,memberID:_0x14b0e7,textRanges:_0x4f6d7b}=_0x51fbcb,_0x406eca=Pe(_0x4f6d7b);if(_0x406eca==='')return;const _0x58279c={'unitID':_0x5a5767,'memberID':_0x14b0e7,'selection':_0x406eca};this[_0x50ab44(0x221)][_0x50ab44(0x1fe)](_0x58279c);}}function _0xbc37(){const _0x18fdf2=['INotificationService','selection','_registerRenderDependencies','Error','_shapes','_collabCursorController','NOT_COLLAB','_hovered','switchMap','collaboration-client-ui.config','extend','values','url(#on-line-icon_clip0_910_349)','_draw','_config','forEach','_range','transformRemoteChangeset','getValue','728JcvKoI','then','width','dispose$','BrowserCollaborationSocketService','toRgbString','UniverCollaborationClientUIPlugin','INVALID_ARGUMENT','registerRenderModule','getUnitStatus$','filter','WebSocketService','_setupBeforeClosingHandler','collabCursorState$','m1Prime','ticket','_docStateChangeManagerService','push','setTimeout','onStarting','ICommandService','_status$','_textBubble','RichTextEditingMutation','_getAnchorBounding','subunit','MUTATION','_startSheetCollabCursor','makeDirty','IRenderManagerService','stringify','_cursors','_docTransformSelectionsService','_session','contains','onPointerEnter$','_backgroundColor','body','getConfig','YUUMI_SUBSCRIPTION_NOT_FOUND','init','0\x200\x2017\x2016','OFFLINE','DocSkeletonManagerService','replace','INVITE_CODE_HAS_BEEN_UES','save','parse','_themeService','SNAPSHOT_HAS_BEEN_REMOVED','_assignedColors','map','_docClipboardService','RemoteUniscriptService','idSuffix','fillText','_startDocCollabCursor','ILocalCacheService','deepClone','DataLoaderService','purple.300','eventID','status$','_refreshCollabCursors','20293TvQSqG','_onCursorDelete','UNIVER_DOC','_doCreateSocket','12vAXvMz','YUUMI_ASYNCIO_CANCELLED','takeUntil','CONFLICT','isArray','handleInsertRow','getColor','IURLService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','isActive','useCallback','sheetID','DesktopCollaborationStatusDisplayController','_collabSessionService','get','addObject','M0\x200H16V16H0z','UniverInstanceType','NOT_FOUND','useObservable','RemoveRowCommandId','YUUMI_NO_CUBOID_FOR_QUESTION','add','APPLY_REVISION_CONFILICT','urlChange$','current','getStateCache','LOGIN_FAILED','USER_NOT_INVITED_CODE','textRanges','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getCoordByCell','INTERNAL_ERROR','triggerDblclick','deserializeRangeWithSheet','location','getDocRanges','_scheduleSaving','session.collaboration-timeout','_onRefRangeChange','IRemoteInstanceService','post','_onCursorUpdate','_heartbeatTimer','_cursorShapes','unit','_getScale','clearTimeout','onPointerLeave$','getSkeleton','top','TEXT_RANGE_LAYER_INDEX','assignAColorForMemberID','session.will-retry','UnitStatus','onCommandExecuted','exhaustSavingTask','saveImage','_removeClearOtherTimer','EMAIL_HAS_BEEN_BOUND','executionId','140QhEHrI','_labelPosition','entityInit$','split','SHEET_VIEWPORT_KEY','origin','CollaborationUIEventId','IConfigService','disposeUnit','DocStateChangeManagerService','IUIPartsService','_localCacheService','_initDependencies','delete','key','_logService','event$','unitId','SetWorksheetActivateCommand','UniverCollaborationClientPlugin','transformIMECache','endColumn','31910dmBeMY','HTTPService','_scheduleClearOtherTimer','dispose','result','_docSkeleton','_removeCollabCursors','CollaborationStatusDisplay','saveTaskMap','getCollabCursors$','undoState','getMergeData','findNodePositionByCharIndex','_updateURLWithCurrentState','ENSURE_SNAPSHOT_EXECUTION','memberID','getViewport','NO_OTHER_CLIENTS_EDITING','DOC_RANGE_TYPE','path','_injector','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','newValue','symbol','RECT','currentSkeleton$','pushState','replaceState','univer-mr-2\x20univer-flex\x20univer-text-xl','getMemberID','_ensureSubject','IMessageService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','handleDeleteRangeMoveUp','Rectangle','getOwnPropertySymbols','requireSession','onTransformChange$','UPDATE_CURSOR','MessageType','addEventListener','LICENSE_IMPORT_SIZE_EXCEEDED','SheetsSelectionsService','assign','yellow.400','EffectRefRangId','_saveTaskMap','sheetId','RxDisposable','isTransformMutationsWithChangesetSuccess','shareReplay','mapTo','getSheetId','getAncestorScale','COLORS','0\x200\x2016\x2016','_httpService','univerjs-icon\x20univerjs-icon-','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SheetSkeletonManagerService','_drawAnchor','DocCollaborationEntity','YUUMI_UNABLE_LOAD_URL','Shape','_transformUndoRedoStack','getRelativeToViewportCoord','collaboration-client.offline-data-not-saved','_unitOnClients','includes','getCurrent','syncEditingCollabCursor','registerComponent','loadUnit','Disposable','IBeforeCloseService','Unknown\x20user','hide','SetDocZoomRatioOperation','updateOfflineData','_revisionService','_instanceService','runId','backgroundColor','_docTransformIMECacheService','engine','InsertRangeMoveRightCommandId','ILocalStorageService','setStateCache','UNAUTHENTICATED','AWAITING_WITH_PENDING','_anchorDot','handleMoveRange','onLocalMutation','LocaleService','rgba(255,\x20255,\x20255,\x200.01)','with','_name','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_initStatusComponent','invokeId','defIds','unshift','LICENSE_DISTRO_REJECTED','191095MkRYay','redoState','FromArray','collabStatus.syncing','_transformPreviousActiveRange','_toggleOnline','CONNECTOR_DATA_TOO_LARGE','bottom','loadOfflineData','_render','text','getFocusedUnit','_notificationService','red.300','4083QLQWLL','PERMISSION_DENIED','svg','session.connection-failed','subscribe','WebURLService','disableLocalCache','cursorInfo','_handleJoinEvent','IUniverInstanceService','OTHER_CLIENTS_EDITING','handleInsertRangeMoveDown','MOBILE_HAS_BEEN_BOUND','beginPath','SetSelectionsOperation','href','doc.mutation.rich-text-editing','CollaborationSessionService','roomMembers$','off-line-icon_clip0_910_343','_clearOtherTimers','useDependency','icon','forwardRef','DEFAULT_WS_SESSION_TICKET_URL','CollaborationUIEventService','enableLocalCache','NodePositionConvertToRectRange','RevisionService','3063492ySKKab','indexOf','collabStatus.offline','AWAITING','_cursor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_getSheetObject','black','_registerDependencies','_drawTextRange','replaceDocRanges','CommandType','transformMutationsWithChangeset','random','BehaviorSubject','_transformService','runRefRangeMutations','collaboration.single-unit.warning','fillRule','arc','_eventUnsubscribe','_localeService','_collaborationUIEventService','_univerInstanceService','collabStatus.conflict','jiqing.500','ThemeService','pipe','translate(.97)','combineLatest','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','getUnitId','_docSyncEditingCollabCursorService','_online','_disabled','hovered','toDisposable','getCollabEntity$','string','_imageIoService','_docTransformStateCacheService','permission.title','611319ayMvfv','override','fillStyle','removeParam','selections','restore','height','_cursorInfo$','getRenderById','history','wsSessionTicketUrl','max','storage','send','registerRefRange','_initCommandExecutedListener','handleInsertRangeMoveRight','MemberService','all','getColorFromTheme','/run/','NodePositionConvertToCursor','CollaborationSocketService','range','collabStatus.notCollab','YUUMI_CONNECTOR_URL_NOT_FOUND','IDocClipboardService','collabStatus.synced','min','MOBILE_VERIFY_CODE_MISMATCH','WECHAT_HAS_BEEN_BOUND','tag','transform','Tools','Inject','_configService','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','YUUMI_ALL_TABLES_IS_INVALID','startsWith','permission.content','UNRECOGNIZED','merge','Rect','INVITE_CODE_ALREADY_BOUND','params','getVpScrollXYInfoByPosToVp','isTransformMutationFailure','APPLY_REJECT','function','_lastPointer','_scheduleHeartbeat','USERS_LEAVE','PY_RUNTIME_SCRIPT_ERROR','ALREADY_EXISTS','[CollaborationDataLoaderController]','UniverIcon','set','DeleteRangeMoveUpCommandId','className','_init','jsx','whenReady','substring','getOffsetConfig','_transformHistoryAndStateStack','_selfUnitIDs','VIEW_MAIN','startColumn','_hideTimer','getLocalCacheKey','_createSocketURL','debounceTime','fill','InsertRangeMoveDownCommandId','_handleLeaveEvent','_drawRectRange','_getSaveTimeout','currentColor','lineTo','LICENSE_EXPORT_SIZE_EXCEEDED','next','throttleTime','serializeRangeWithSheet','[RemoteUniscriptService]:\x20no\x20focused\x20unit','call','_colorAssignService','getOwnPropertyDescriptor','_memberService','endRow','EMAIL_VERIFY_CODE_MISMATCH','disposeWithMe','round','_initEvent','LOCAL_CACHE_INTERVAL_KEY','clsx','_entities','RemoveColCommandId','univer-flex\x20univer-items-center','transformSelections','ONLINE','setInterval','getRangePointData','Module','onPointerMove$','CollaborationStatus','currentTheme$','toStringTag','_uiPartsService','INVITE_CODE_REQUIRED','getItem','onRendered','prototype','defineProperty','entries','ISocketService','_collabCursorState$','attrs','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_collaborationController','name','getCurrentRevOfUnit','_messageService','toString','TOO_MANY_REQUESTS','LICENSE_MAX_UNITS_EXCEEDED','Warning','224862tYiHMR','RefRangeService','mask','_initEntityListener','InsertColCommandId','ranges','color','debounce','executeCommand','UNIVER_SHEET','HEADER_MENU','code','getParam','http://www.w3.org/2000/svg','error','APPLY_NON_SEQUENTIAL_REVISION','distinctUntilChanged','column','createElement','none','SheetCollabCursorShape','INVALID_INVITE_CODE','LOCAL_CACHE_INTERVAL','_handleHeartbeatEvent','CollaborationController','application/json','transformByState','_getMergeRange','_saveCache','_syncEditingCollabCursorService','_renderManagerService','_localStorageService','_color','collab-rect-range-','on-line-icon','TEXT','url(#off-line-icon_clip0_910_343)','sessionStatus$','actions','concat','COMPLETION_FINISHED','DocSelectionManagerService','transformStateCache','on-line-icon_clip0_910_349','Optional','InsertRowCommandId','_initResize','createInstance','_anchor','show','OTHER_CLIENT_EDITING','_hover','_updateLocalCursor','_updateCollabCursors','SOCKET_FAILED','_colorIndex','setParam','_docSkeletonManagerService','editingUnit','clearInterval','_context','SetTextSelectionsOperation','type','unitID','white','transformMutation','CHANGESET_REVISION_CONFILICT','_entityInit$','hasOwnProperty','setItem','complete','SNAPSHOT_INVALID_SNAPSHOT','_sheetSkeletonManagerService','getActiveSheet','jsxs','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','div','getSheetBySheetId','_getSessionTicket','_roomMembers$','PENDING','collaboration.closeRoom','ITransformService','saveOfflineData','trim','mutations','font','subscribeEvent','_cachedData','searchParams','unsubscribe','YUUMI_AI_RUN_FAILED','_handleHover','children','getCellPositionByOffset','getMember','IImageIoService','collab-text-range-','blue.400','debug','measureText','has','YUUMI_URL_COL_OUT_OF_RANGE','drawWith','getTypeOfUnitDisposed$','BuiltInUIPart','collab-client.tooltip.reconnect','use','xlink:href','SessionStatus','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','roomMembers','...','_dataLoaderService','SYNCED','docStateChange$','_setupSubUnitSync','colorChannel1','unload','search','_urlService','DisposableCollection','APPLY_DUPLICATED','length','asObservable','ILogService','_scene','url(#$1','registerDependencies','_commandService','_initStatusListener','APPLY_PERMISSION_DENIED','Vector2','size','getUndoRedoMutationParamsCache','setShapeProps','FETCH_MISS','_refRangeService','1em','find','ACTIVE_UNIT_EVENT_CHANNEL','UNDEFINED','_updateSubUnitFromURLParams','clipPath','CollaborationDataLoaderController','Injector','_unitStatus','_id','getSheetObject','handleIRemoveCol','DocIMEInputManagerService','touchDependencies','_handleEvent','addHandlerCallback','22Sapkbf','setConfig','cursorInfo$','row','createSocket','generateRandomId','m2Prime','data','popstate','RegularPolygon','Failed','onMouseMove','OffLineIcon','CollaborationEvent','defs','addClipboardHook','isEditing','activeSheet$','_toggleOffline','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_send'];_0xbc37=function(){return _0x18fdf2;};return _0xbc37();}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x5dab07,_0x287f27,_0x28133e,_0xb61908)=>{const _0x545a87=_0x14c41a;for(var _0x3992e6=_0xb61908>0x1?void 0x0:_0xb61908?Ze(_0x287f27,_0x28133e):_0x287f27,_0x942d68=_0x5dab07[_0x545a87(0x2a7)]-0x1,_0x329d3f;_0x942d68>=0x0;_0x942d68--)(_0x329d3f=_0x5dab07[_0x942d68])&&(_0x3992e6=_0x329d3f(_0x3992e6)||_0x3992e6);return _0x3992e6;},L=(_0x21d07e,_0x10c446)=>(_0x5ee0f0,_0x56a120)=>_0x10c446(_0x5ee0f0,_0x56a120,_0x21d07e);const et=0x12c,tt=0x64;let Ie=class extends a[_0x14c41a(0x3b5)]{constructor(_0x1928cb,_0x338b3b,_0x504b6d,_0x26bf3e,_0x40c535,_0x2bf0f9,_0x58a6f3,_0x53cbf6,_0xf2b045){const _0x360583=_0x14c41a;super(),h(this,_0x360583(0x438),!0x1),h(this,_0x360583(0x1e9),!0x1),h(this,_0x360583(0x448),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x360583(0x448)][_0x360583(0x2a8)]()),h(this,_0x360583(0x27b),new d['BehaviorSubject']([])),h(this,_0x360583(0x40c),this['_roomMembers$'][_0x360583(0x432)](d[_0x360583(0x1f5)](et))),h(this,_0x360583(0x260),a['debounce'](_0x46858a=>{const _0x1a2d03=_0x360583,_0x5213b3={'eventID':m[_0x1a2d03(0x2d3)][_0x1a2d03(0x3ab)],'data':{'unitID':this['unitID'],'memberID':this[_0x1a2d03(0x30f)][_0x1a2d03(0x3a2)](),'selection':Pe(_0x46858a)}};this[_0x1a2d03(0x30f)][_0x1a2d03(0x44e)](_0x5213b3,this[_0x1a2d03(0x26b)]);},tt)),(this['unitID']=_0x1928cb,this[_0x360583(0x30f)]=_0x338b3b,this[_0x360583(0x399)]=_0x504b6d,this[_0x360583(0x203)]=_0x26bf3e,this['_memberService']=_0x40c535,this[_0x360583(0x249)]=_0x2bf0f9,this[_0x360583(0x426)]=_0x58a6f3,this[_0x360583(0x42e)]=_0x53cbf6,this[_0x360583(0x2ad)]=_0xf2b045);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x787fb5=_0x14c41a;return this['_roomMembers$'][_0x787fb5(0x2ed)]();}['dispose'](){const _0x1e3c35=_0x14c41a;super[_0x1e3c35(0x388)](),this[_0x1e3c35(0x448)][_0x1e3c35(0x1fe)](new Map()),this[_0x1e3c35(0x448)]['complete'](),this[_0x1e3c35(0x27b)][_0x1e3c35(0x1fe)]([]),this[_0x1e3c35(0x27b)][_0x1e3c35(0x272)]();}[_0x14c41a(0x316)](){const _0x358827=_0x14c41a;this[_0x358827(0x1e9)]||(this['_init']=!0x0,this['_session'][_0x358827(0x251)][_0x358827(0x432)](d[_0x358827(0x334)](this[_0x358827(0x2f1)]))['subscribe'](_0x58c211=>{const _0x1b7a81=_0x358827;_0x58c211===u[_0x1b7a81(0x299)][_0x1b7a81(0x211)]?this[_0x1b7a81(0x3f1)]():this[_0x1b7a81(0x2d8)]();}),this['_session'][_0x358827(0x37f)][_0x358827(0x432)](d[_0x358827(0x334)](this[_0x358827(0x2f1)]))[_0x358827(0x3fe)](_0x551c36=>{const _0x119fdf=_0x358827,_0x23509e=_0x551c36[_0x119fdf(0x32b)];_0x23509e===m[_0x119fdf(0x2d3)][_0x119fdf(0x3ab)]&&this[_0x119fdf(0x35c)](_0x551c36),_0x23509e===m[_0x119fdf(0x2d3)][_0x119fdf(0x1e1)]&&this[_0x119fdf(0x32f)](_0x551c36);}),this['disposeWithMe'](this[_0x358827(0x2ad)]['onCommandExecuted'](_0x2a304d=>{const _0x330d62=_0x358827,_0x3af1f0=_0x2a304d[_0x330d62(0x46d)];_0x3af1f0!=null&&this['_online']&&_0x2a304d['id']===Y[_0x330d62(0x269)]['id']&&_0x3af1f0[_0x330d62(0x380)]===this[_0x330d62(0x26b)]&&_0x3af1f0[_0x330d62(0x2d6)]===!0x1&&_0x3af1f0[_0x330d62(0x231)][_0x330d62(0x2a7)]>0x0&&this['_updateLocalCursor'](_0x3af1f0[_0x330d62(0x231)]);})),this[_0x358827(0x249)][_0x358827(0x2fb)]['pipe'](d[_0x358827(0x334)](this['dispose$']))[_0x358827(0x3fe)](_0x906e2c=>{const _0x412adc=_0x358827;if((_0x906e2c==null?void 0x0:_0x906e2c[_0x412adc(0x26b)])!==this['unitID'])return;const _0xa2ef46={'eventID':m[_0x412adc(0x2d3)]['UPDATE_CURSOR'],'data':_0x906e2c};this[_0x412adc(0x35c)](_0xa2ef46);}),this[_0x358827(0x208)](this[_0x358827(0x2ad)][_0x358827(0x369)](_0x58a9bc=>{const _0x1b18cf=_0x358827;if(_0x58a9bc['params']==null)return;const _0x5d4f00=_0x58a9bc['params'];if(_0x58a9bc['id']!==Y[_0x1b18cf(0x305)]['id']||_0x5d4f00[_0x1b18cf(0x380)]!==this[_0x1b18cf(0x26b)])return;const _0x490c7d={'id':_0x1b18cf(0x40a),'params':_0x5d4f00},_0x55e9d5=this[_0x1b18cf(0x401)];for(const [_0x1bcbe0,_0x15c5d5]of _0x55e9d5){const _0x43f31e={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x15c5d5[_0x1b18cf(0x231)]}},_0x426640=this['_transformService']['transformMutation'](_0x490c7d,_0x43f31e,!0x1);if(m['isTransformMutationFailure'](_0x426640))throw _0x426640['error'];_0x55e9d5[_0x1b18cf(0x1e6)](_0x1bcbe0,{..._0x15c5d5,'ranges':_0x426640[_0x1b18cf(0x2cc)][_0x1b18cf(0x46d)][_0x1b18cf(0x34f)]});}queueMicrotask(()=>{const _0x37abd3=_0x1b18cf;this[_0x37abd3(0x448)][_0x37abd3(0x1fe)](_0x55e9d5);});})));}[_0x14c41a(0x35c)](_0x5a64a1){const _0x3ad98a=_0x14c41a;var _0x41b30c,_0x3a5958;const {memberID:_0x590312,selection:_0x3cbec3}=_0x5a64a1[_0x3ad98a(0x2cd)],_0x8bce82=Je(_0x3cbec3),_0x2c039e=(_0x3a5958=(_0x41b30c=this[_0x3ad98a(0x205)][_0x3ad98a(0x28b)](this[_0x3ad98a(0x26b)],_0x590312))==null?void 0x0:_0x41b30c['name'])!=null?_0x3a5958:'Unknown\x20user',_0x2313b6={'color':this[_0x3ad98a(0x203)]['assignAColorForMemberID'](_0x590312),'name':_0x2c039e,'ranges':_0x8bce82},_0x1462a5=this[_0x3ad98a(0x401)];_0x1462a5[_0x3ad98a(0x1e6)](_0x590312,_0x2313b6),this[_0x3ad98a(0x448)][_0x3ad98a(0x1fe)](_0x1462a5);}[_0x14c41a(0x32f)](_0x14227b){const _0x4fd31d=_0x14c41a,{memberID:_0x9935fe}=_0x14227b[_0x4fd31d(0x2cd)],_0x2dacf6=this[_0x4fd31d(0x401)];_0x2dacf6[_0x4fd31d(0x37c)](_0x9935fe),this['_cursorInfo$'][_0x4fd31d(0x1fe)](_0x2dacf6);}['_toggleOnline'](){const _0x3fea15=_0x14c41a;var _0x28e28a;if(this[_0x3fea15(0x438)]=!0x0,((_0x28e28a=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x28e28a[_0x3fea15(0x436)]())!==this['unitID'])return;const _0x11da0f=this[_0x3fea15(0x399)]['get'](Y[_0x3fea15(0x255)])[_0x3fea15(0x356)]();Array[_0x3fea15(0x336)](_0x11da0f)&&_0x11da0f[_0x3fea15(0x2a7)]>0x0&&this[_0x3fea15(0x260)](_0x11da0f);}[_0x14c41a(0x2d8)](){const _0x3fe428=_0x14c41a;this[_0x3fe428(0x438)]=!0x1;}};Ie=Qe([L(0x2,a[_0x14c41a(0x463)](a['Injector'])),L(0x3,a[_0x14c41a(0x463)](me)),L(0x4,a[_0x14c41a(0x463)](u[_0x14c41a(0x452)])),L(0x5,a['Inject'](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x14c41a(0x403)]),L(0x8,a[_0x14c41a(0x302)])],Ie);var st=Object['getOwnPropertyDescriptor'],it=(_0x4a4ca2,_0x169ba6,_0x4034c9,_0x456fde)=>{const _0x207c59=_0x14c41a;for(var _0x2c97fb=_0x456fde>0x1?void 0x0:_0x456fde?st(_0x169ba6,_0x4034c9):_0x169ba6,_0x5b3fd0=_0x4a4ca2[_0x207c59(0x2a7)]-0x1,_0x4ee1ac;_0x5b3fd0>=0x0;_0x5b3fd0--)(_0x4ee1ac=_0x4a4ca2[_0x5b3fd0])&&(_0x2c97fb=_0x4ee1ac(_0x2c97fb)||_0x2c97fb);return _0x2c97fb;},A=(_0x1ce096,_0x366694)=>(_0x4f4655,_0x4fb025)=>_0x366694(_0x4f4655,_0x4fb025,_0x1ce096);const nt=0x12c,rt=0x64,ot=()=>{let _0x2a0938=[],_0xc036ed=!0x1;return _0x43ea75=>{const _0x136a2f=_0x4f22;_0x2a0938[_0x136a2f(0x2ff)](_0x43ea75),_0xc036ed||(_0xc036ed=!0x0,setTimeout(()=>{const _0x14cd35=_0x136a2f;_0x2a0938[_0x14cd35(0x2ea)](_0x1fc8f6=>_0x1fc8f6()),_0x2a0938=[],_0xc036ed=!0x1;}));};};let Se=class extends a[_0x14c41a(0x3b5)]{constructor(_0xe73949,_0x44663b,_0x30e74a,_0x30fee6,_0x534fce,_0x27029c,_0x35946f,_0x41ac35){const _0x11bb81=_0x14c41a;super(),h(this,_0x11bb81(0x438),!0x1),h(this,_0x11bb81(0x1e9),!0x1),h(this,_0x11bb81(0x448),new d[(_0x11bb81(0x425))](new Map())),h(this,'cursorInfo$',this[_0x11bb81(0x448)][_0x11bb81(0x2a8)]()),h(this,'_roomMembers$',new d[(_0x11bb81(0x425))]([])),h(this,_0x11bb81(0x40c),this[_0x11bb81(0x27b)][_0x11bb81(0x432)](d['debounceTime'](nt))),h(this,_0x11bb81(0x260),a['debounce']((_0x53df89,_0x5f08e1)=>{const _0x480c4c=_0x11bb81,_0x319481={'eventID':m[_0x480c4c(0x2d3)][_0x480c4c(0x3ab)],'data':{'unitID':this['unitID'],'memberID':this[_0x480c4c(0x30f)][_0x480c4c(0x3a2)](),'selection':be[_0x480c4c(0x200)](_0x53df89,_0x5f08e1[_0x480c4c(0x458)])}};this['_session'][_0x480c4c(0x44e)](_0x319481,this[_0x480c4c(0x26b)]);},rt)),(this[_0x11bb81(0x26b)]=_0xe73949,this[_0x11bb81(0x30f)]=_0x44663b,this['_injector']=_0x30e74a,this[_0x11bb81(0x203)]=_0x30fee6,this['_memberService']=_0x534fce,this[_0x11bb81(0x42e)]=_0x27029c,this['_commandService']=_0x35946f,this['_refRangeService']=_0x41ac35);}get[_0x14c41a(0x401)](){const _0x327e7c=_0x14c41a;return this[_0x327e7c(0x448)]['getValue']();}get[_0x14c41a(0x29b)](){const _0x2fdeea=_0x14c41a;return this[_0x2fdeea(0x27b)][_0x2fdeea(0x2ed)]();}[_0x14c41a(0x388)](){const _0x924130=_0x14c41a;super['dispose'](),this['_cursorInfo$'][_0x924130(0x1fe)](new Map()),this['_cursorInfo$'][_0x924130(0x272)](),this['_roomMembers$'][_0x924130(0x1fe)]([]),this['_roomMembers$'][_0x924130(0x272)]();}['init'](){const _0x42425e=_0x14c41a;this[_0x42425e(0x1e9)]||(this[_0x42425e(0x1e9)]=!0x0,this[_0x42425e(0x30f)]['sessionStatus$'][_0x42425e(0x432)](d['takeUntil'](this[_0x42425e(0x2f1)]))[_0x42425e(0x3fe)](_0x17e063=>{const _0x4aae88=_0x42425e;_0x17e063===u[_0x4aae88(0x299)][_0x4aae88(0x211)]?this['_toggleOnline']():this[_0x4aae88(0x2d8)]();}),this[_0x42425e(0x30f)]['event$'][_0x42425e(0x432)](d[_0x42425e(0x334)](this[_0x42425e(0x2f1)]))['subscribe'](_0x4dead2=>{const _0x330ed2=_0x42425e,_0x28da3a=_0x4dead2['eventID'];_0x28da3a===m['CollaborationEvent'][_0x330ed2(0x3ab)]&&this['_onCursorUpdate'](_0x4dead2),_0x28da3a===m['CollaborationEvent'][_0x330ed2(0x1e1)]&&this[_0x330ed2(0x32f)](_0x4dead2);}),this['_onRefRangeChange'](),this[_0x42425e(0x208)](this[_0x42425e(0x2ad)][_0x42425e(0x369)](_0x412f2c=>{const _0x4d58b0=_0x42425e;if(this['_online']&&_0x412f2c['id']===g[_0x4d58b0(0x408)]['id']&&_0x412f2c[_0x4d58b0(0x46d)]['unitId']===this[_0x4d58b0(0x26b)]){const _0x45cd07=_0x412f2c[_0x4d58b0(0x46d)];this[_0x4d58b0(0x260)](_0x45cd07['subUnitId'],_0x45cd07[_0x4d58b0(0x445)][0x0]);}})));}[_0x14c41a(0x35c)](_0x1fb2b0){const _0x155618=_0x14c41a;var _0x3e1fbe,_0x16ab8c;const {memberID:_0x3ce171,selection:_0x501500}=_0x1fb2b0['data'],{sheetName:_0x20daac,range:_0x381678}=be[_0x155618(0x354)](_0x501500),_0x34094c={'name':(_0x16ab8c=(_0x3e1fbe=this[_0x155618(0x205)]['getMember'](this[_0x155618(0x26b)],_0x3ce171))==null?void 0x0:_0x3e1fbe['name'])!=null?_0x16ab8c:_0x155618(0x3d0),'range':this['_getMergeRange'](_0x20daac,_0x381678),'sheetID':_0x20daac,'color':this[_0x155618(0x203)][_0x155618(0x366)](_0x3ce171),'selection':_0x501500},_0x107e21=this['cursorInfo'];_0x107e21[_0x155618(0x1e6)](_0x3ce171,_0x34094c),this[_0x155618(0x448)]['next'](_0x107e21);}['_onCursorDelete'](_0x4800c2){const _0x382d3a=_0x14c41a,{memberID:_0x3ccd53}=_0x4800c2[_0x382d3a(0x2cd)],_0x10728b=this['cursorInfo'];_0x10728b[_0x382d3a(0x37c)](_0x3ccd53),this[_0x382d3a(0x448)][_0x382d3a(0x1fe)](_0x10728b);}[_0x14c41a(0x247)](_0x27cf67,_0xed3313){const _0x5d4fea=_0x14c41a;var _0x3e3174,_0x136e6d;const _0x57cf3c=(_0x136e6d=(_0x3e3174=this[_0x5d4fea(0x42e)]['getUniverSheetInstance'](this[_0x5d4fea(0x26b)]))==null?void 0x0:_0x3e3174[_0x5d4fea(0x279)](_0x27cf67))==null?void 0x0:_0x136e6d[_0x5d4fea(0x390)]();return(_0x57cf3c==null?void 0x0:_0x57cf3c[_0x5d4fea(0x2b7)](_0x2c4176=>a[_0x5d4fea(0x3a7)][_0x5d4fea(0x310)](_0x2c4176,_0xed3313)))||_0xed3313;}[_0x14c41a(0x359)](){const _0x1921cd=_0x14c41a,_0xb5eb2b=new a[(_0x1921cd(0x2a5))](),_0x192414=ot(),_0x54e621=()=>{const _0x25483f=_0x1921cd;_0xb5eb2b[_0x25483f(0x388)]();const _0xa3fec3=(_0x37a694,_0x49170d,_0x28d06e,_0x50032c)=>{const _0x17a52d=_0x25483f;let _0x334634=[];switch(_0x37a694['id']){case g[_0x17a52d(0x3b2)]['DeleteRangeMoveLeftCommandId']:{_0x334634=g['handleDeleteRangeMoveLeft'](_0x37a694,_0x50032c);break;}case g[_0x17a52d(0x3b2)][_0x17a52d(0x1e7)]:{_0x334634=g[_0x17a52d(0x3a6)](_0x37a694,_0x50032c);break;}case g[_0x17a52d(0x3b2)][_0x17a52d(0x230)]:{_0x334634=g['handleInsertCol'](_0x37a694,_0x50032c);break;}case g[_0x17a52d(0x3b2)][_0x17a52d(0x1f7)]:{_0x334634=g[_0x17a52d(0x405)](_0x37a694,_0x50032c);break;}case g[_0x17a52d(0x3b2)][_0x17a52d(0x3da)]:{_0x334634=g[_0x17a52d(0x451)](_0x37a694,_0x50032c);break;}case g[_0x17a52d(0x3b2)][_0x17a52d(0x259)]:{_0x334634=g[_0x17a52d(0x337)](_0x37a694,_0x50032c);break;}case g[_0x17a52d(0x3b2)]['MoveRangeCommandId']:{_0x334634=g[_0x17a52d(0x3e0)](_0x37a694,_0x50032c);break;}case g[_0x17a52d(0x3b2)][_0x17a52d(0x20e)]:{_0x334634=g[_0x17a52d(0x2c1)](_0x37a694,_0x50032c);break;}case g[_0x17a52d(0x3b2)][_0x17a52d(0x346)]:{_0x334634=g['handleIRemoveRow'](_0x37a694,_0x50032c);break;}}const _0x4f30bf=g[_0x17a52d(0x427)](_0x334634,_0x50032c),_0x9b63a0=this[_0x17a52d(0x401)][_0x17a52d(0x340)](_0x49170d);if(_0x9b63a0&&_0x4f30bf){const _0x1bd991={..._0x9b63a0,'range':_0x4f30bf};this['cursorInfo'][_0x17a52d(0x1e6)](_0x49170d,_0x1bd991),_0x192414(()=>{const _0x439fb8=_0x17a52d,_0x487fa9=this[_0x439fb8(0x2b5)][_0x439fb8(0x44f)](_0x4f30bf,_0x3ad521=>(_0x487fa9[_0x439fb8(0x388)](),_0xa3fec3(_0x3ad521,_0x49170d,_0x28d06e,_0x4f30bf)));_0xb5eb2b[_0x439fb8(0x348)](_0x487fa9);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x25483f(0x2ea)]((_0x536d25,_0x58888d)=>{const _0x42f560=_0x25483f,{range:_0x124e60,sheetID:_0x5468cf}=_0x536d25,_0x4d495c=this[_0x42f560(0x2b5)][_0x42f560(0x44f)](_0x124e60,_0x30db3d=>(_0x4d495c[_0x42f560(0x388)](),_0xa3fec3(_0x30db3d,_0x58888d,_0x5468cf,_0x124e60)));_0xb5eb2b['add'](_0x4d495c);});};this[_0x1921cd(0x208)](a[_0x1921cd(0x43b)](this['_cursorInfo$'][_0x1921cd(0x3fe)](()=>{_0x54e621();})));}[_0x14c41a(0x3f1)](){const _0x2caf07=_0x14c41a;var _0x56fda6,_0x1efb57;if(this[_0x2caf07(0x438)]=!0x0,((_0x56fda6=this[_0x2caf07(0x42e)][_0x2caf07(0x3f7)]())==null?void 0x0:_0x56fda6[_0x2caf07(0x436)]())!==this['unitID'])return;const _0x59aa5d=(_0x1efb57=this[_0x2caf07(0x399)][_0x2caf07(0x340)](g[_0x2caf07(0x3af)])['getCurrentSelections']())==null?void 0x0:_0x1efb57[0x0],_0x4565c2=this[_0x2caf07(0x42e)]['getCurrentUnitForType'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x2caf07(0x275)]();_0x59aa5d&&_0x4565c2&&this['_updateLocalCursor'](_0x4565c2[_0x2caf07(0x3b9)](),_0x59aa5d);}[_0x14c41a(0x2d8)](){const _0x2aec96=_0x14c41a;this[_0x2aec96(0x438)]=!0x1;}};Se=it([A(0x2,a[_0x14c41a(0x463)](a[_0x14c41a(0x2bd)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x14c41a(0x463)](u[_0x14c41a(0x452)])),A(0x5,a[_0x14c41a(0x403)]),A(0x6,a[_0x14c41a(0x302)]),A(0x7,a[_0x14c41a(0x463)](g[_0x14c41a(0x22d)]))],Se);var at=Object[_0x14c41a(0x204)],ct=(_0x4ab364,_0x1fcb21,_0x336892,_0x3698bf)=>{const _0x77328e=_0x14c41a;for(var _0x41d275=_0x3698bf>0x1?void 0x0:_0x3698bf?at(_0x1fcb21,_0x336892):_0x1fcb21,_0x29938e=_0x4ab364[_0x77328e(0x2a7)]-0x1,_0xb962ad;_0x29938e>=0x0;_0x29938e--)(_0xb962ad=_0x4ab364[_0x29938e])&&(_0x41d275=_0xb962ad(_0x41d275)||_0x41d275);return _0x41d275;},ie=(_0x899547,_0x23a214)=>(_0x3412f8,_0x1623cb)=>_0x23a214(_0x3412f8,_0x1623cb,_0x899547);let x=class extends a['RxDisposable']{constructor(_0x17bedd,_0x2c5b63,_0x1ab0ea){const _0x2bd901=_0x14c41a;super(),h(this,_0x2bd901(0x20d),new Map()),h(this,'_entityInit$',new d['Subject']()),(this['_univerInstanceService']=_0x17bedd,this[_0x2bd901(0x399)]=_0x2c5b63,this[_0x2bd901(0x33f)]=_0x1ab0ea,this[_0x2bd901(0x1e9)]());}[_0x14c41a(0x388)](){const _0x5d3c50=_0x14c41a;super[_0x5d3c50(0x388)](),this[_0x5d3c50(0x26f)][_0x5d3c50(0x272)](),this[_0x5d3c50(0x20d)]['forEach'](_0x1ae6fb=>_0x1ae6fb[_0x5d3c50(0x388)]());}[_0x14c41a(0x38e)](_0x21cb58){const _0x181616=_0x14c41a;return this[_0x181616(0x20d)][_0x181616(0x291)](_0x21cb58)?this['_entities'][_0x181616(0x340)](_0x21cb58)['cursorInfo$']:this['_entityInit$'][_0x181616(0x432)](d[_0x181616(0x2f8)](_0x41ef09=>_0x41ef09[_0x181616(0x26b)]===_0x21cb58),d[_0x181616(0x2e3)](_0x427ac9=>_0x427ac9[_0x181616(0x2c8)]));}[_0x14c41a(0x1e9)](){const _0xdb8f87=_0x14c41a;this[_0xdb8f87(0x42e)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0xdb8f87(0x235)])[_0xdb8f87(0x432)](d[_0xdb8f87(0x334)](this[_0xdb8f87(0x2f1)]))['subscribe'](async _0x4e9059=>{const _0xe1300e=_0xdb8f87,_0x16b9db=_0x4e9059['getUnitId'](),_0x3edf2a=await this['_startSheetCollabCursor'](_0x16b9db);this['_entityInit$'][_0xe1300e(0x1fe)](_0x3edf2a),this[_0xe1300e(0x20d)][_0xe1300e(0x1e6)](_0x16b9db,_0x3edf2a);}),this[_0xdb8f87(0x42e)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC'])[_0xdb8f87(0x432)](d[_0xdb8f87(0x334)](this[_0xdb8f87(0x2f1)]))[_0xdb8f87(0x432)](d['filter'](_0x531cb6=>!_0x531cb6[_0xdb8f87(0x436)]()[_0xdb8f87(0x467)]('__')))['subscribe'](async _0x3a2274=>{const _0x1936da=_0xdb8f87,_0x36d853=_0x3a2274[_0x1936da(0x436)](),_0x1f92d5=await this['_startDocCollabCursor'](_0x36d853);this[_0x1936da(0x26f)]['next'](_0x1f92d5),this[_0x1936da(0x20d)][_0x1936da(0x1e6)](_0x36d853,_0x1f92d5);}),d['merge'](this[_0xdb8f87(0x42e)][_0xdb8f87(0x294)](a[_0xdb8f87(0x343)][_0xdb8f87(0x330)]),this[_0xdb8f87(0x42e)][_0xdb8f87(0x294)](a['UniverInstanceType'][_0xdb8f87(0x235)]))[_0xdb8f87(0x432)](d[_0xdb8f87(0x334)](this[_0xdb8f87(0x2f1)]))['subscribe'](_0x248fd8=>{const _0xc07282=_0xdb8f87,_0x225524=_0x248fd8[_0xc07282(0x436)](),_0x573908=this[_0xc07282(0x20d)][_0xc07282(0x340)](_0x225524);_0x573908&&(_0x573908[_0xc07282(0x388)](),this[_0xc07282(0x20d)][_0xc07282(0x37c)](_0x225524));});}async[_0x14c41a(0x309)](_0x244a5c){const _0x53df6c=_0x14c41a,_0x2f892f=await this[_0x53df6c(0x33f)]['requireSession'](_0x244a5c),_0x5d6ddf=this[_0x53df6c(0x399)][_0x53df6c(0x25b)](Se,_0x244a5c,_0x2f892f);return _0x5d6ddf['init'](),_0x5d6ddf;}async[_0x14c41a(0x326)](_0x46a11e){const _0x2e44f9=_0x14c41a,_0x32a84f=await this[_0x2e44f9(0x33f)][_0x2e44f9(0x3a9)](_0x46a11e),_0x51c4d9=this[_0x2e44f9(0x399)]['createInstance'](Ie,_0x46a11e,_0x32a84f);return _0x51c4d9['init'](),_0x51c4d9;}};x=ct([ie(0x0,a[_0x14c41a(0x403)]),ie(0x1,a[_0x14c41a(0x463)](a['Injector'])),ie(0x2,a[_0x14c41a(0x463)](u[_0x14c41a(0x40b)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x2b4b41,_0x43a10c){const _0x43e9a8=_0x14c41a;let {radius:_0x484a44,width:_0xdad689,height:_0x1b3dc2}=_0x43a10c;_0x484a44=_0x484a44!=null?_0x484a44:0x0,_0xdad689=_0xdad689!=null?_0xdad689:0x1e,_0x1b3dc2=_0x1b3dc2!=null?_0x1b3dc2:0x1e;let _0xb76d28=0x0,_0x1d6139=0x0,_0x2b763f=0x0;_0xb76d28=_0x1d6139=_0x2b763f=Math[_0x43e9a8(0x45d)](_0x484a44,_0xdad689/0x2,_0x1b3dc2/0x2),_0x2b4b41[_0x43e9a8(0x407)](),_0x2b4b41['moveTo'](_0xb76d28,0x0),_0x2b4b41['lineTo'](_0xdad689-_0x1d6139,0x0),_0x2b4b41[_0x43e9a8(0x42a)](_0xdad689-_0x1d6139,_0x1d6139,_0x1d6139,Math['PI']*0x3/0x2,0x0,!0x1),_0x2b4b41[_0x43e9a8(0x1fc)](_0xdad689,_0x1b3dc2-_0x2b763f),_0x2b4b41['arc'](_0xdad689-_0x2b763f,_0x1b3dc2-_0x2b763f,_0x2b763f,0x0,Math['PI']/0x2,!0x1),_0x2b4b41[_0x43e9a8(0x1fc)](0x0,_0x1b3dc2),_0x2b4b41['lineTo'](0x0,_0xb76d28),_0x2b4b41['arc'](_0xb76d28,_0xb76d28,_0xb76d28,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2b4b41['closePath'](),_0x43a10c[_0x43e9a8(0x1f6)]&&(_0x2b4b41[_0x43e9a8(0x31c)](),_0x2b4b41[_0x43e9a8(0x443)]=_0x43a10c[_0x43e9a8(0x1f6)],_0x43a10c[_0x43e9a8(0x429)]==='evenodd'?_0x2b4b41[_0x43e9a8(0x1f6)]('evenodd'):_0x2b4b41[_0x43e9a8(0x1f6)](),_0x2b4b41[_0x43e9a8(0x446)]());}class ee extends p[_0x14c41a(0x3c4)]{constructor(_0x45c804,_0xab7b64){const _0x56a1f6=_0x14c41a;super(_0x45c804,_0xab7b64),h(this,_0x56a1f6(0x232)),h(this,'text'),(this['color']=_0xab7b64==null?void 0x0:_0xab7b64['color'],this[_0x56a1f6(0x3f6)]=_0xab7b64==null?void 0x0:_0xab7b64[_0x56a1f6(0x3f6)]);}static[_0x14c41a(0x293)](_0x1e673d,_0xb752d0){const _0x452f32=_0x14c41a,{text:_0x556e71,color:_0x31fa84}=_0xb752d0;_0x1e673d[_0x452f32(0x31c)](),_0x1e673d[_0x452f32(0x282)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5ccc39=_0x1e673d[_0x452f32(0x290)](_0x556e71)[_0x452f32(0x2f0)],_0x5ec99a=Math[_0x452f32(0x45d)](_0x5ccc39+0x2*ne,Re);_t(_0x1e673d,{'height':K,'radius':0x4,'width':_0x5ec99a,'fill':_0x31fa84}),_0x1e673d[_0x452f32(0x443)]='#FFF';const _0x241770=ne,_0x2153e2=K-lt,_0x72bf36=Re-0x2*ne;if(_0x5ccc39>_0x72bf36){let _0x474692='',_0x57f723=0x0;for(const _0x20bc67 of _0x556e71){const _0x8fe1c5=_0x1e673d['measureText'](_0x20bc67)[_0x452f32(0x2f0)];if(_0x57f723+_0x8fe1c5<=_0x72bf36-_0x1e673d[_0x452f32(0x290)](_0x452f32(0x29c))[_0x452f32(0x2f0)])_0x474692+=_0x20bc67,_0x57f723+=_0x8fe1c5;else{_0x474692+=_0x452f32(0x29c);break;}}_0x1e673d[_0x452f32(0x325)](_0x474692,_0x241770,_0x2153e2);}else _0x1e673d['fillText'](_0x556e71,_0x241770,_0x2153e2);_0x1e673d[_0x452f32(0x446)]();}['_draw'](_0x51a118){ee['drawWith'](_0x51a118,this);}}const re='collab-text-anchor-',ht=_0x14c41a(0x28d),ut=_0x14c41a(0x24d),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x14c41a(0x3e3);class De{constructor(_0x39eb91,_0xaf168f,_0x249a72,_0x24b7d3){const _0x4a42ec=_0x14c41a;h(this,'_shapes',[]),h(this,_0x4a42ec(0x25c),null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,_0x4a42ec(0x1f2),null),h(this,_0x4a42ec(0x42b),null),(this['_cursor']=_0x39eb91,this['_scene']=_0xaf168f,this[_0x4a42ec(0x38a)]=_0x249a72,this['_document']=_0x24b7d3,this[_0x4a42ec(0x3f5)]());}set[_0x14c41a(0x25f)](_0x514b01){const _0x37bafe=_0x14c41a;_0x514b01?(this[_0x37bafe(0x3df)]&&this[_0x37bafe(0x3df)][_0x37bafe(0x3d1)](),this[_0x37bafe(0x304)]&&this[_0x37bafe(0x304)]['show']()):(this[_0x37bafe(0x3df)]&&this[_0x37bafe(0x3df)][_0x37bafe(0x25d)](),this[_0x37bafe(0x304)]&&this[_0x37bafe(0x304)][_0x37bafe(0x3d1)]());}[_0x14c41a(0x388)](){const _0x5acbd5=_0x14c41a;for(const _0x460c70 of this[_0x5acbd5(0x2df)])_0x460c70[_0x5acbd5(0x388)]();this[_0x5acbd5(0x304)]&&this[_0x5acbd5(0x304)][_0x5acbd5(0x388)](),this[_0x5acbd5(0x3df)]&&this['_anchorDot'][_0x5acbd5(0x388)](),this[_0x5acbd5(0x25c)]&&this[_0x5acbd5(0x25c)][_0x5acbd5(0x388)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x14c41a(0x3f5)](){const _0x47115d=_0x14c41a;var _0x3e7ba1;const {_docSkeleton:_0x22f85f,_document:_0x3e3a9e}=this,{color:_0x2d7f0e,name:_0x179276,ranges:_0x59dd1c}=this[_0x47115d(0x41b)],_0x536d90=_0x3e3a9e[_0x47115d(0x1ed)](),{docsLeft:_0x12d276,docsTop:_0x19670c}=_0x536d90,_0xc22b18=new E[(_0x47115d(0x456))](_0x536d90,_0x22f85f);for(const {startOffset:_0x51fd9f,endOffset:_0x2e825c,rangeType:_0x1c0ab5,segmentId:_0xf63d93,segmentPage:_0x17e819,collapsed:_0x4b6821,isActive:_0x5b956e}of _0x59dd1c){const _0x3a7e88=_0x22f85f[_0x47115d(0x391)](_0x51fd9f,!0x0,_0xf63d93,_0x17e819);let _0x417b54=_0x22f85f[_0x47115d(0x391)](_0x2e825c,!0x0,_0xf63d93,_0x17e819);if(_0x417b54==null&&(_0x417b54=_0x22f85f['findNodePositionByCharIndex'](_0x2e825c-0x1,!0x1,_0xf63d93,_0x17e819)),_0x5b956e){const {contentBoxPointGroup:_0x83dc3b}=_0xc22b18[_0x47115d(0x213)](_0x417b54,_0x417b54);if(_0x83dc3b[_0x47115d(0x2a7)]===0x0)continue;this[_0x47115d(0x3c1)](_0x2d7f0e,_0x83dc3b,_0x12d276,_0x19670c,_0x179276),this['_eventUnsubscribe']=this[_0x47115d(0x288)]();}if(_0x3a7e88&&_0x417b54){if(_0x1c0ab5===a[_0x47115d(0x397)][_0x47115d(0x39d)]){const _0x14a2b2=new E[(_0x47115d(0x415))](_0x536d90,_0x22f85f),{pointGroup:_0x4b26ed}=(_0x3e7ba1=_0x14a2b2[_0x47115d(0x213)](_0x3a7e88,_0x417b54))!=null?_0x3e7ba1:{};if(_0x4b26ed==null||_0x4b26ed[_0x47115d(0x2a7)]===0x0)continue;this[_0x47115d(0x1f9)](_0x2d7f0e,_0x4b26ed,_0x12d276,_0x19670c);}else{if(!_0x4b6821){const {borderBoxPointGroup:_0x239356}=_0xc22b18[_0x47115d(0x213)](_0x3a7e88,_0x417b54);if(_0x239356[_0x47115d(0x2a7)]===0x0)continue;this[_0x47115d(0x420)](_0x2d7f0e,_0x239356,_0x12d276,_0x19670c);}}}}}[_0x14c41a(0x3c1)](_0x489041,_0x3d5c2d,_0x3d626f,_0x28a626,_0x486264){const _0x5c14a2=_0x14c41a,_0x24b112=this[_0x5c14a2(0x306)](_0x3d5c2d),{left:_0x12061d,top:_0x53f148,height:_0x5a65e2}=_0x24b112,_0x37828b=this['_getScale'](),_0x3e1cb7=It/_0x37828b,_0x21b9c2=new p[(_0x5c14a2(0x46b))](re+a[_0x5c14a2(0x462)][_0x5c14a2(0x2cb)](k),{'left':_0x12061d+_0x3d626f-_0x3e1cb7,'top':_0x53f148+_0x28a626,'height':_0x5a65e2,'width':dt,'fill':_0x489041||p[_0x5c14a2(0x338)](a[_0x5c14a2(0x3bb)][_0x5c14a2(0x41e)],0x0),'strokeWidth':_0x3e1cb7,'stroke':St,'evented':!0x0});this[_0x5c14a2(0x25c)]=_0x21b9c2,this['_scene'][_0x5c14a2(0x341)](_0x21b9c2,E[_0x5c14a2(0x365)]);const _0x2d63c5=new p[(_0x5c14a2(0x46b))](re+a[_0x5c14a2(0x462)]['generateRandomId'](k),{'left':_0x12061d+_0x3d626f-_0x3e1cb7,'top':_0x53f148+_0x28a626-oe/0x2,'height':oe,'width':oe,'fill':_0x489041||p[_0x5c14a2(0x338)](a[_0x5c14a2(0x3bb)][_0x5c14a2(0x41e)],0x0),'strokeWidth':0x0,'stroke':_0x489041||p[_0x5c14a2(0x338)](a[_0x5c14a2(0x3bb)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x2d63c5,this[_0x5c14a2(0x2aa)][_0x5c14a2(0x341)](_0x2d63c5,E[_0x5c14a2(0x365)]);const _0x2c2021=new ee(re+a[_0x5c14a2(0x462)]['generateRandomId'](k),{'left':_0x12061d+_0x3d626f-_0x3e1cb7,'top':_0x53f148+_0x28a626-K,'text':_0x486264,'color':_0x489041});this[_0x5c14a2(0x304)]=_0x2c2021,this[_0x5c14a2(0x2aa)][_0x5c14a2(0x341)](_0x2c2021,E[_0x5c14a2(0x365)]),this['_hover']=!0x1;}['_handleHover'](){const _0x50dbb8=_0x14c41a,_0x473000=this[_0x50dbb8(0x25c)][_0x50dbb8(0x311)][_0x50dbb8(0x283)](()=>{const _0xece4d4=_0x50dbb8;this[_0xece4d4(0x25f)]=!0x0;}),_0x2d5e7d=this[_0x50dbb8(0x25c)][_0x50dbb8(0x362)][_0x50dbb8(0x283)](()=>{const _0x1497be=_0x50dbb8;this['_hideTimer']&&clearTimeout(this[_0x1497be(0x1f2)]),this[_0x1497be(0x1f2)]=setTimeout(()=>{const _0x361dd3=_0x1497be;this[_0x361dd3(0x25f)]=!0x1;},0x7d0);});return()=>{const _0x4d81a3=_0x50dbb8;_0x473000[_0x4d81a3(0x286)](),_0x2d5e7d[_0x4d81a3(0x286)]();};}[_0x14c41a(0x420)](_0x46eef8,_0x2c2bd0,_0x138af0,_0x14920c){const _0x222ace=_0x14c41a,_0x4db049=new a['ColorKit'](_0x46eef8)['setAlpha'](0.2)[_0x222ace(0x2f3)](),_0x1a2c46=new p[(_0x222ace(0x2cf))](ht+a[_0x222ace(0x462)]['generateRandomId'](k),{'pointsGroup':_0x2c2bd0,'fill':_0x4db049||p[_0x222ace(0x338)](a['COLORS'][_0x222ace(0x41e)],0.2),'left':_0x138af0,'top':_0x14920c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x222ace(0x2df)][_0x222ace(0x2ff)](_0x1a2c46),this['_scene'][_0x222ace(0x341)](_0x1a2c46,E['TEXT_RANGE_LAYER_INDEX']);}[_0x14c41a(0x1f9)](_0x265bc0,_0x3aeb67,_0x3ff089,_0x45e34f){const _0x12ca7c=_0x14c41a,_0x4724a3=new a['ColorKit'](_0x265bc0)['setAlpha'](0.2)[_0x12ca7c(0x2f3)](),_0x26a256=new p[(_0x12ca7c(0x2cf))](ut+a['Tools'][_0x12ca7c(0x2cb)](k),{'pointsGroup':_0x3aeb67,'fill':_0x4724a3||p['getColor'](a[_0x12ca7c(0x3bb)][_0x12ca7c(0x41e)],0.2),'left':_0x3ff089,'top':_0x45e34f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x12ca7c(0x2df)][_0x12ca7c(0x2ff)](_0x26a256),this[_0x12ca7c(0x2aa)][_0x12ca7c(0x341)](_0x26a256,E[_0x12ca7c(0x365)]);}[_0x14c41a(0x306)](_0x5ab465){const _0x49dcb7=_0x5ab465[0x0],_0x941843=_0x49dcb7[0x0],_0x45203f=_0x49dcb7[0x2],{x:_0x3abdbf,y:_0x3b49e2}=_0x941843,{x:_0x5ea2da,y:_0x5aff98}=_0x45203f;return{'left':_0x3abdbf,'top':_0x3b49e2,'width':_0x5ea2da-_0x3abdbf,'height':_0x5aff98-_0x3b49e2};}[_0x14c41a(0x360)](){const _0x1e1aa7=_0x14c41a,{scaleX:_0x4dd60a,scaleY:_0x25a3c4}=this[_0x1e1aa7(0x2aa)][_0x1e1aa7(0x3ba)]();return Math[_0x1e1aa7(0x44c)](_0x4dd60a,_0x25a3c4);}}var ft=Object[_0x14c41a(0x204)],vt=(_0x29735b,_0xb3a73f,_0x47410c,_0x56979b)=>{const _0x5d441b=_0x14c41a;for(var _0x25c1d7=_0x56979b>0x1?void 0x0:_0x56979b?ft(_0xb3a73f,_0x47410c):_0xb3a73f,_0x46e680=_0x29735b[_0x5d441b(0x2a7)]-0x1,_0x321894;_0x46e680>=0x0;_0x46e680--)(_0x321894=_0x29735b[_0x46e680])&&(_0x25c1d7=_0x321894(_0x25c1d7)||_0x25c1d7);return _0x25c1d7;},W=(_0x1c17fb,_0x8d4a5)=>(_0x2a66a0,_0xef36ea)=>_0x8d4a5(_0x2a66a0,_0xef36ea,_0x1c17fb);let fe=class extends a[_0x14c41a(0x3b5)]{constructor(_0x553d85,_0x196a5e,_0x572c31,_0x23ab04,_0x4deebf){const _0x1d8560=_0x14c41a;super(),h(this,_0x1d8560(0x35e),[]),h(this,'_cursors',[]),(this[_0x1d8560(0x268)]=_0x553d85,this[_0x1d8560(0x265)]=_0x196a5e,this[_0x1d8560(0x2e0)]=_0x572c31,this[_0x1d8560(0x2ad)]=_0x23ab04,this[_0x1d8560(0x31e)]=_0x4deebf,this['_init']());}[_0x14c41a(0x1e9)](){const _0x4160c1=_0x14c41a,_0x3c1b26=this[_0x4160c1(0x268)][_0x4160c1(0x380)],_0x34bd23=this['_docSkeletonManagerService'];this[_0x4160c1(0x208)](d[_0x4160c1(0x434)]([this[_0x4160c1(0x2e0)]['getCollabCursors$'](_0x3c1b26),this[_0x4160c1(0x31e)]['currentTheme$']])[_0x4160c1(0x432)]($['map'](([_0xab7d60,_0x3d13b5])=>({'skeleton':_0x34bd23['getSkeleton'](),'cursors':[..._0xab7d60[_0x4160c1(0x2e6)]()]['flatMap'](_0x23b412=>({..._0x23b412,'color':this[_0x4160c1(0x31e)]['getColorFromTheme'](_0x23b412[_0x4160c1(0x232)])}))})))['subscribe'](_0x168c8e=>{const _0x4674b2=_0x4160c1;if(this[_0x4674b2(0x38b)](),_0x168c8e){const {skeleton:_0x242af1,cursors:_0x4b2af9}=_0x168c8e;this[_0x4674b2(0x261)](_0x242af1,_0x4b2af9);}})),this[_0x4160c1(0x25a)](),this[_0x4160c1(0x450)]();}['_updateCollabCursors'](_0x395ace,_0x477bc9){const _0x4748f2=_0x14c41a,{scene:_0x29e783,mainComponent:_0x40543b}=this[_0x4748f2(0x268)],_0xe9f49b=_0x477bc9[_0x4748f2(0x321)](_0x46f753=>new De(_0x46f753,_0x29e783,_0x395ace,_0x40543b));this[_0x4748f2(0x35e)]=_0xe9f49b,this[_0x4748f2(0x30d)]=_0x477bc9;}['_refreshCollabCursors'](){const _0x1f8793=_0x14c41a;this['_removeCollabCursors']();const {scene:_0x242c04,mainComponent:_0x5350bd}=this[_0x1f8793(0x268)],_0x73323=this[_0x1f8793(0x265)][_0x1f8793(0x363)](),_0x1546ee=this[_0x1f8793(0x30d)][_0x1f8793(0x321)](_0x19430f=>new De(_0x19430f,_0x242c04,_0x73323,_0x5350bd));this[_0x1f8793(0x35e)]=_0x1546ee;}['_removeCollabCursors'](){const _0xd66acc=_0x14c41a;this['_cursorShapes'][_0xd66acc(0x2ea)](_0x202d23=>_0x202d23[_0xd66acc(0x388)]()),this['_cursorShapes']=[];}[_0x14c41a(0x450)](){const _0x4ac61f=_0x14c41a,_0x51127a=[E[_0x4ac61f(0x3d2)]['id']];this['disposeWithMe'](this[_0x4ac61f(0x2ad)]['onCommandExecuted'](_0x1927aa=>{const _0x217f5a=_0x4ac61f;_0x51127a[_0x217f5a(0x3c9)](_0x1927aa['id'])&&_0x1927aa[_0x217f5a(0x46d)][_0x217f5a(0x380)]===this[_0x217f5a(0x268)][_0x217f5a(0x380)]&&this[_0x217f5a(0x32d)]();}));}[_0x14c41a(0x25a)](){const _0x17e15c=_0x14c41a;this[_0x17e15c(0x208)](a['fromEventSubject'](this['_context'][_0x17e15c(0x3d9)][_0x17e15c(0x3aa)])[_0x17e15c(0x432)]($['filter'](_0x5ccf3a=>_0x5ccf3a[_0x17e15c(0x26a)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$[_0x17e15c(0x1ff)](0x10))['subscribe'](()=>{const _0x22d372=_0x17e15c;this[_0x22d372(0x32d)]();}));}};fe=vt([W(0x1,a[_0x14c41a(0x463)](Y[_0x14c41a(0x319)])),W(0x2,a[_0x14c41a(0x463)](x)),W(0x3,a[_0x14c41a(0x302)]),W(0x4,a[_0x14c41a(0x463)](a['ThemeService']))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x1f5f24,_0x27f323){const _0x1c9e64=_0x14c41a;super(_0x1f5f24,_0x27f323),h(this,_0x1c9e64(0x24c)),h(this,_0x1c9e64(0x2e2),!0x1),h(this,_0x1c9e64(0x2eb)),h(this,_0x1c9e64(0x3e5),''),h(this,_0x1c9e64(0x370),_0x1c9e64(0x364)),h(this,_0x1c9e64(0x312)),(_0x27f323&&this[_0x1c9e64(0x2b3)](_0x27f323),this[_0x1c9e64(0x311)][_0x1c9e64(0x283)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x1c9e64(0x362)]['subscribeEvent'](()=>this[_0x1c9e64(0x2b3)]({'hovered':!0x1})));}[_0x14c41a(0x2b3)](_0x572c2f){const _0x1dca72=_0x14c41a;var _0x3c0d27,_0x1054a8,_0xfe1d11,_0x1bf5bb,_0xacd8d,_0x2b4084;this[_0x1dca72(0x24c)]=(_0x3c0d27=_0x572c2f['color'])!=null?_0x3c0d27:this[_0x1dca72(0x24c)],this[_0x1dca72(0x2e2)]=(_0x1054a8=_0x572c2f[_0x1dca72(0x43a)])!=null?_0x1054a8:this[_0x1dca72(0x2e2)],this['_range']=(_0xfe1d11=_0x572c2f['range'])!=null?_0xfe1d11:this[_0x1dca72(0x2eb)],this[_0x1dca72(0x3e5)]=(_0x1bf5bb=_0x572c2f[_0x1dca72(0x225)])!=null?_0x1bf5bb:this[_0x1dca72(0x3e5)],this['_labelPosition']=(_0xacd8d=_0x572c2f['labelPosition'])!=null?_0xacd8d:this[_0x1dca72(0x370)],this['_backgroundColor']=(_0x2b4084=_0x572c2f[_0x1dca72(0x3d7)])!=null?_0x2b4084:this['_backgroundColor'],this[_0x1dca72(0x246)]({'width':_0x572c2f[_0x1dca72(0x2f0)],'height':_0x572c2f[_0x1dca72(0x447)]});}[_0x14c41a(0x2d1)](_0x2698f8){const _0x251d63=_0x14c41a,{row:_0xc0016d,column:_0x205055}=_0x2698f8;if(_0xc0016d>=this[_0x251d63(0x2eb)]['startRow']&&_0xc0016d<=this[_0x251d63(0x2eb)][_0x251d63(0x206)]&&_0x205055>=this['_range'][_0x251d63(0x1f1)]&&_0x205055<=this['_range'][_0x251d63(0x384)]){this[_0x251d63(0x2b3)]({'hovered':!0x0});return;}this[_0x251d63(0x2b3)]({'hovered':!0x1});}[_0x14c41a(0x353)](_0x39ada6){return!0x1;}[_0x14c41a(0x2e8)](_0x39923b){const _0x2c924d=_0x14c41a;p[_0x2c924d(0x46b)][_0x2c924d(0x293)](_0x39923b,{'width':this[_0x2c924d(0x2f0)],'height':this[_0x2c924d(0x447)],'strokeWidth':mt,'stroke':this[_0x2c924d(0x24c)],'evented':!0x1,'fill':this[_0x2c924d(0x312)]}),this[_0x2c924d(0x2e2)]&&(_0x39923b[_0x2c924d(0x31c)](),_0x39923b[_0x2c924d(0x461)](0x1,0x0,0x0,0x1,this[_0x2c924d(0x2f0)],this['_labelPosition']===_0x2c924d(0x3f3)?0x0:-0x14),ee[_0x2c924d(0x293)](_0x39923b,{'text':this['_name'],'color':this['_color']}),_0x39923b[_0x2c924d(0x446)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x56503f,_0x125a86,_0x5a8f71,_0x58465b)=>{for(var _0x24bc4f=_0x58465b>0x1?void 0x0:_0x58465b?Ct(_0x125a86,_0x5a8f71):_0x125a86,_0x26b4ec=_0x56503f['length']-0x1,_0x565016;_0x26b4ec>=0x0;_0x26b4ec--)(_0x565016=_0x56503f[_0x26b4ec])&&(_0x24bc4f=_0x565016(_0x24bc4f)||_0x24bc4f);return _0x24bc4f;},ae=(_0x2ea8ab,_0x539142)=>(_0x279928,_0x37648f)=>_0x539142(_0x279928,_0x37648f,_0x2ea8ab);const Et=0x1389;let ve=class extends a[_0x14c41a(0x3b5)]{constructor(_0x153905,_0x547790,_0x5454b4,_0x4c5e17){const _0x3d1a14=_0x14c41a;super(),h(this,_0x3d1a14(0x30d),new Set()),h(this,_0x3d1a14(0x1df),null),(this[_0x3d1a14(0x268)]=_0x153905,this[_0x3d1a14(0x274)]=_0x547790,this[_0x3d1a14(0x2e0)]=_0x5454b4,this[_0x3d1a14(0x31e)]=_0x4c5e17,this[_0x3d1a14(0x1e9)]());}['_init'](){const _0x275035=_0x14c41a;this[_0x275035(0x274)][_0x275035(0x39e)][_0x275035(0x432)]($[_0x275035(0x334)](this[_0x275035(0x2f1)]),$[_0x275035(0x2e3)](_0x3d7d0c=>{const _0x2d0e42=_0x275035;if(_0x3d7d0c){const _0x9aa908=_0x3d7d0c[_0x2d0e42(0x3b4)];return d[_0x2d0e42(0x434)](this[_0x2d0e42(0x2e0)][_0x2d0e42(0x38e)](this[_0x2d0e42(0x268)][_0x2d0e42(0x380)]),this[_0x2d0e42(0x31e)][_0x2d0e42(0x217)])[_0x2d0e42(0x432)]($[_0x2d0e42(0x321)](([_0x2a9f8c,_0x498aab])=>{const _0x41ede6=_0x2d0e42,_0x4a9ab8=new Map();return _0x2a9f8c[_0x41ede6(0x2ea)]((_0x463059,_0x340a7c)=>{const _0x5ad903=_0x41ede6;if(_0x463059[_0x5ad903(0x33d)]===_0x9aa908){const _0x317925={..._0x463059};_0x317925[_0x5ad903(0x232)]=this[_0x5ad903(0x31e)][_0x5ad903(0x454)](_0x463059[_0x5ad903(0x232)]),_0x4a9ab8[_0x5ad903(0x1e6)](_0x340a7c,_0x317925);}}),{'skeleton':_0x3d7d0c,'cursors':_0x4a9ab8};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x275035(0x3fe)](({skeleton:_0x52369e,cursors:_0x5304be})=>{const _0x14b71e=_0x275035;this['_removeCollabCursors'](),_0x52369e&&this[_0x14b71e(0x261)](_0x52369e,_0x5304be);}),this[_0x275035(0x274)][_0x275035(0x39e)]['subscribe'](_0x428ece=>{const _0x106ecc=_0x275035;if(_0x428ece==null)return;const {skeleton:_0x4bebfd}=_0x428ece,{scene:_0x5722c0}=this[_0x106ecc(0x268)];_0x5722c0[_0x106ecc(0x215)][_0x106ecc(0x283)](a[_0x106ecc(0x233)](_0x2d539c=>{const _0x2fd938=_0x106ecc;var _0x58f6ce,_0x295818;const {offsetX:_0x9d0e95,offsetY:_0x51001f}=_0x2d539c,{x:_0x511567,y:_0x157d89}=_0x5722c0[_0x2fd938(0x3c6)](p[_0x2fd938(0x2b0)][_0x2fd938(0x3ee)]([_0x9d0e95,_0x51001f])),{scaleX:_0xeb5530,scaleY:_0x413975}=_0x5722c0[_0x2fd938(0x3ba)](),_0x355f7d=_0x5722c0[_0x2fd938(0x395)](p[_0x2fd938(0x373)][_0x2fd938(0x1f0)]),_0x54030f=_0x5722c0[_0x2fd938(0x46e)](p[_0x2fd938(0x2b0)][_0x2fd938(0x3ee)]([_0x511567,_0x157d89]),_0x355f7d),_0x38e170=_0x4bebfd[_0x2fd938(0x28a)](_0x9d0e95,_0x51001f,_0xeb5530,_0x413975,_0x54030f);((_0x58f6ce=this['_lastPointer'])==null?void 0x0:_0x58f6ce[_0x2fd938(0x23d)])===_0x38e170[_0x2fd938(0x23d)]&&((_0x295818=this['_lastPointer'])==null?void 0x0:_0x295818[_0x2fd938(0x2c9)])===_0x38e170[_0x2fd938(0x2c9)]||this[_0x2fd938(0x30d)][_0x2fd938(0x2ea)](_0x302344=>{const _0x2e43ff=_0x2fd938;_0x302344[_0x2e43ff(0x2d1)](_0x38e170);});},0x64));});}[_0x14c41a(0x261)](_0x51d999,_0x321151){const _0x4e33d7=_0x14c41a;var _0x365fbd;const _0x11a2e6=(_0x365fbd=this[_0x4e33d7(0x274)][_0x4e33d7(0x3ca)]())==null?void 0x0:_0x365fbd['skeleton'];if(!_0x11a2e6)return;const _0x3497d9=this[_0x4e33d7(0x41d)]();if(!_0x3497d9)return;this['_cursors'][_0x4e33d7(0x2ea)](_0x45c852=>{const _0x174897=_0x4e33d7;_0x45c852[_0x174897(0x30a)]();});const {scene:_0x31dbcf}=_0x3497d9,_0xdeee4c=bt(Array['from'](_0x321151[_0x4e33d7(0x2e6)]()))[_0x4e33d7(0x321)](_0x4b2617=>{const _0x150716=_0x4e33d7,{color:_0x300bcb,range:_0x3e83c3,name:_0x1ca76d,selection:_0x522a6f,sheetID:_0x2a58fe}=_0x4b2617,{startColumn:_0x1274c2,startRow:_0x3dfd10,endColumn:_0x337879,endRow:_0x41ad92}=_0x3e83c3,_0x1d10cc=X[_0x150716(0x351)](_0x3dfd10,_0x1274c2,_0x31dbcf,_0x11a2e6),_0x427eba=X[_0x150716(0x351)](_0x41ad92,_0x337879,_0x31dbcf,_0x11a2e6),{columnHeaderHeightAndMarginTop:_0x5351ae}=_0x11a2e6,{startX:_0x52f231,startY:_0x25970d}=_0x1d10cc,{endX:_0x1ca95a,endY:_0x286005}=_0x427eba,_0x277291=_0x1ca95a-_0x52f231,_0x20d00f=_0x286005-_0x25970d,_0x3407b3={'labelPosition':_0x25970d-_0x5351ae>=K?'top':_0x150716(0x3f3),'sheetID':_0x2a58fe,'range':_0x3e83c3,'color':_0x300bcb,'name':_0x1ca76d,'selection':_0x522a6f,'left':_0x52f231,'top':_0x25970d,'width':_0x277291,'height':_0x20d00f,'evented':!0x1,'zIndex':Et};return new we(_0x1ca76d,_0x3407b3);});_0x31dbcf['addObjects'](_0xdeee4c,gt),this['_cursors']=new Set(_0xdeee4c);}[_0x14c41a(0x38b)](){const _0x4c91ab=_0x14c41a;var _0x6b718;(_0x6b718=this[_0x4c91ab(0x30d)])==null||_0x6b718[_0x4c91ab(0x2ea)](_0x210ed5=>_0x210ed5[_0x4c91ab(0x388)]());}[_0x14c41a(0x41d)](){const _0x5afb60=_0x14c41a;return X[_0x5afb60(0x2c0)](this['_context'][_0x5afb60(0x35f)],this[_0x5afb60(0x268)]);}};ve=pt([ae(0x1,a[_0x14c41a(0x463)](X[_0x14c41a(0x3c0)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x14c41a(0x463)](a[_0x14c41a(0x431)]))],ve);function bt(_0x298272){const _0x350e30=_0x14c41a,_0x53d517=new Map();return _0x298272[_0x350e30(0x2ea)](_0x8c272e=>{const _0x230375=_0x350e30;if(_0x53d517[_0x230375(0x291)](_0x8c272e[_0x230375(0x2dc)])){const _0x851d09=_0x53d517[_0x230375(0x340)](_0x8c272e['selection']);_0x851d09[_0x230375(0x225)]+=',\x20'+_0x8c272e[_0x230375(0x225)];}else _0x53d517[_0x230375(0x1e6)](_0x8c272e[_0x230375(0x2dc)],_0x8c272e);}),Array['from'](_0x53d517[_0x350e30(0x2e6)]());}var b=function(){const _0x3ede60=_0x14c41a;return b=Object[_0x3ede60(0x3b0)]||function(_0x11de72){const _0xe374f3=_0x3ede60;for(var _0x18f34b,_0x2ea79a=0x1,_0x199348=arguments[_0xe374f3(0x2a7)];_0x2ea79a<_0x199348;_0x2ea79a++){_0x18f34b=arguments[_0x2ea79a];for(var _0x343334 in _0x18f34b)Object[_0xe374f3(0x21d)][_0xe374f3(0x270)][_0xe374f3(0x202)](_0x18f34b,_0x343334)&&(_0x11de72[_0x343334]=_0x18f34b[_0x343334]);}return _0x11de72;},b['apply'](this,arguments);},Ot=function(_0x4d0c85,_0x435b56){const _0x435ed5=_0x14c41a;var _0x162422={};for(var _0x3de0b2 in _0x4d0c85)Object[_0x435ed5(0x21d)][_0x435ed5(0x270)][_0x435ed5(0x202)](_0x4d0c85,_0x3de0b2)&&_0x435b56['indexOf'](_0x3de0b2)<0x0&&(_0x162422[_0x3de0b2]=_0x4d0c85[_0x3de0b2]);if(_0x4d0c85!=null&&typeof Object[_0x435ed5(0x3a8)]==_0x435ed5(0x471)){for(var _0x5aea8a=0x0,_0x3de0b2=Object['getOwnPropertySymbols'](_0x4d0c85);_0x5aea8a<_0x3de0b2[_0x435ed5(0x2a7)];_0x5aea8a++)_0x435b56[_0x435ed5(0x418)](_0x3de0b2[_0x5aea8a])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x435ed5(0x202)](_0x4d0c85,_0x3de0b2[_0x5aea8a])&&(_0x162422[_0x3de0b2[_0x5aea8a]]=_0x4d0c85[_0x3de0b2[_0x5aea8a]]);}return _0x162422;},pe=M[_0x14c41a(0x411)](function(_0x3d063a,_0x3cd4e5){const _0x23da58=_0x14c41a;var _0x2412e9=_0x3d063a[_0x23da58(0x410)],_0x5ebe11=_0x3d063a['id'],_0x1ecf1e=_0x3d063a[_0x23da58(0x1e8)],_0x5da7bb=_0x3d063a[_0x23da58(0x2e5)],_0x1ac8f6=Ot(_0x3d063a,['icon','id',_0x23da58(0x1e8),_0x23da58(0x2e5)]),_0x278bc5=_0x23da58(0x3be)[_0x23da58(0x253)](_0x5ebe11,'\x20')['concat'](_0x1ecf1e||'')[_0x23da58(0x280)](),_0x105f0a=M['useRef']('_'[_0x23da58(0x253)](Dt()));return Ae(_0x2412e9,''[_0x23da58(0x253)](_0x5ebe11),{'defIds':_0x2412e9[_0x23da58(0x3e9)],'idSuffix':_0x105f0a[_0x23da58(0x34b)]},b({'ref':_0x3cd4e5,'className':_0x278bc5},_0x1ac8f6),_0x5da7bb);});function Ae(_0x2ca79e,_0x62ee10,_0x45d0e2,_0x30b4cf,_0x44a407){const _0x5c1add=_0x14c41a;return M[_0x5c1add(0x23e)](_0x2ca79e[_0x5c1add(0x460)],b(b({'key':_0x62ee10},Tt(_0x2ca79e,_0x45d0e2,_0x44a407)),_0x30b4cf),(Rt(_0x2ca79e,_0x45d0e2)['children']||[])[_0x5c1add(0x321)](function(_0x103b0e,_0x3dd647){const _0x43e4e3=_0x5c1add;return Ae(_0x103b0e,''[_0x43e4e3(0x253)](_0x62ee10,'-')[_0x43e4e3(0x253)](_0x2ca79e[_0x43e4e3(0x460)],'-')[_0x43e4e3(0x253)](_0x3dd647),_0x45d0e2,void 0x0,_0x44a407);}));}function Tt(_0x3b35a9,_0x13266f,_0x3750c8){const _0x34bd15=_0x14c41a;var _0x1ea314=b({},_0x3b35a9[_0x34bd15(0x222)]);_0x3750c8!=null&&_0x3750c8['colorChannel1']&&_0x1ea314[_0x34bd15(0x1f6)]===_0x34bd15(0x2a1)&&(_0x1ea314[_0x34bd15(0x1f6)]=_0x3750c8['colorChannel1']),_0x3b35a9['tag']==='mask'&&_0x1ea314['id']&&(_0x1ea314['id']=_0x1ea314['id']+_0x13266f['idSuffix']),Object[_0x34bd15(0x21f)](_0x1ea314)[_0x34bd15(0x2ea)](function(_0x1f77af){const _0xc8ccab=_0x34bd15;var _0x1beb2f=_0x1f77af[0x0],_0x26b4ce=_0x1f77af[0x1];_0x1beb2f===_0xc8ccab(0x22e)&&typeof _0x26b4ce==_0xc8ccab(0x43d)&&(_0x1ea314[_0x1beb2f]=_0x26b4ce[_0xc8ccab(0x31a)](/url\(#(.*)\)/,_0xc8ccab(0x2ab)[_0xc8ccab(0x253)](_0x13266f[_0xc8ccab(0x324)],')')));});var _0x4445af=_0x13266f[_0x34bd15(0x3e9)];return!_0x4445af||_0x4445af['length']===0x0||(_0x3b35a9[_0x34bd15(0x460)]===_0x34bd15(0x297)&&_0x1ea314['xlink:href']&&(_0x1ea314[_0x34bd15(0x298)]=_0x1ea314[_0x34bd15(0x298)]+_0x13266f[_0x34bd15(0x324)]),Object[_0x34bd15(0x21f)](_0x1ea314)[_0x34bd15(0x2ea)](function(_0x4a3bab){const _0x508611=_0x34bd15;var _0x353d25=_0x4a3bab[0x0],_0xd492c2=_0x4a3bab[0x1];typeof _0xd492c2==_0x508611(0x43d)&&(_0x1ea314[_0x353d25]=_0xd492c2[_0x508611(0x31a)](/url\(#(.*)\)/,'url(#$1'[_0x508611(0x253)](_0x13266f[_0x508611(0x324)],')')));})),_0x1ea314;}function Rt(_0x2cf801,_0x2aa5e8){const _0x4f307f=_0x14c41a;var _0x4e1c4d,_0x400962=_0x2aa5e8[_0x4f307f(0x3e9)];return!_0x400962||_0x400962[_0x4f307f(0x2a7)]===0x0?_0x2cf801:_0x2cf801[_0x4f307f(0x460)]==='defs'&&(!((_0x4e1c4d=_0x2cf801[_0x4f307f(0x289)])===null||_0x4e1c4d===void 0x0)&&_0x4e1c4d[_0x4f307f(0x2a7)])?b(b({},_0x2cf801),{'children':_0x2cf801[_0x4f307f(0x289)]['map'](function(_0x5e37f6){const _0x1e7711=_0x4f307f;return typeof _0x5e37f6['attrs']['id']==_0x1e7711(0x43d)&&_0x400962&&_0x400962[_0x1e7711(0x3c9)](_0x5e37f6[_0x1e7711(0x222)]['id'])?b(b({},_0x5e37f6),{'attrs':b(b({},_0x5e37f6[_0x1e7711(0x222)]),{'id':_0x5e37f6['attrs']['id']+_0x2aa5e8[_0x1e7711(0x324)]})}):_0x5e37f6;})}):_0x2cf801;}function _0x4f22(_0xec5022,_0x4d4a9c){const _0xbc373c=_0xbc37();return _0x4f22=function(_0x4f226d,_0x16d6a4){_0x4f226d=_0x4f226d-0x1df;let _0x48ded7=_0xbc373c[_0x4f226d];return _0x48ded7;},_0x4f22(_0xec5022,_0x4d4a9c);}function Dt(){const _0x5eaf36=_0x14c41a;return Math[_0x5eaf36(0x424)]()[_0x5eaf36(0x228)](0x24)[_0x5eaf36(0x1ec)](0x2,0x8);}pe['displayName']=_0x14c41a(0x1e5);var Ut={'tag':_0x14c41a(0x3fc),'attrs':{'xmlns':_0x14c41a(0x239),'fill':_0x14c41a(0x23f),'viewBox':_0x14c41a(0x3bc),'width':_0x14c41a(0x2b6),'height':_0x14c41a(0x2b6)},'children':[{'tag':'g','attrs':{'clipPath':_0x14c41a(0x250)},'children':[{'tag':'path','attrs':{'stroke':_0x14c41a(0x1fb),'d':_0x14c41a(0x435),'strokeLinecap':_0x14c41a(0x209),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x14c41a(0x2d4),'attrs':{},'children':[{'tag':_0x14c41a(0x2bb),'attrs':{'id':_0x14c41a(0x40d)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x14c41a(0x342)}}]}]}],'defIds':[_0x14c41a(0x40d)]},ye=M[_0x14c41a(0x411)](function(_0x3fdbdb,_0x3686aa){const _0x14e9da=_0x14c41a;return M[_0x14e9da(0x23e)](pe,Object[_0x14e9da(0x3b0)]({},_0x3fdbdb,{'id':'off-line-icon','ref':_0x3686aa,'icon':Ut}));});ye['displayName']=_0x14c41a(0x2d2);var Nt={'tag':_0x14c41a(0x3fc),'attrs':{'xmlns':_0x14c41a(0x239),'fill':'none','viewBox':_0x14c41a(0x317),'width':_0x14c41a(0x2b6),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x14c41a(0x2e7)},'children':[{'tag':'path','attrs':{'stroke':_0x14c41a(0x1fb),'d':_0x14c41a(0x465),'strokeLinecap':_0x14c41a(0x209),'strokeLinejoin':_0x14c41a(0x209),'strokeWidth':1.2}}]},{'tag':_0x14c41a(0x2d4),'attrs':{},'children':[{'tag':_0x14c41a(0x2bb),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x14c41a(0x398),'attrs':{'fill':_0x14c41a(0x26c),'d':'M0\x200H16V16H0z','transform':_0x14c41a(0x433)}}]}]}],'defIds':[_0x14c41a(0x257)]},$e=M[_0x14c41a(0x411)](function(_0x4bebb2,_0x125b04){const _0xe1a665=_0x14c41a;return M[_0xe1a665(0x23e)](pe,Object[_0xe1a665(0x3b0)]({},_0x4bebb2,{'id':_0xe1a665(0x24e),'ref':_0x125b04,'icon':Nt}));});$e['displayName']='OnLineIcon';function Mt(_0x4d0dd7){const _0x1a2a25=_0x14c41a;switch(_0x4d0dd7){case u[_0x1a2a25(0x216)][_0x1a2a25(0x318)]:return _0x1a2a25(0x419);case u[_0x1a2a25(0x216)][_0x1a2a25(0x335)]:return _0x1a2a25(0x42f);case u[_0x1a2a25(0x216)][_0x1a2a25(0x2b4)]:return'collabStatus.fetchMiss';case u[_0x1a2a25(0x216)][_0x1a2a25(0x2e1)]:return _0x1a2a25(0x459);case u['CollaborationStatus'][_0x1a2a25(0x41a)]:case u[_0x1a2a25(0x216)][_0x1a2a25(0x3de)]:return _0x1a2a25(0x3ef);case u[_0x1a2a25(0x216)][_0x1a2a25(0x29e)]:case u[_0x1a2a25(0x216)][_0x1a2a25(0x27c)]:return _0x1a2a25(0x45c);}}function xe(_0x27b02a){const _0x14e81b=_0x14c41a,{status$:_0x3a2242}=_0x27b02a,_0x55e218=O[_0x14e81b(0x345)](_0x3a2242,u[_0x14e81b(0x216)][_0x14e81b(0x2e1)]),_0x345ad6=O[_0x14e81b(0x40f)](a[_0x14e81b(0x3e2)]),_0x235e5f=O['useDependency'](u[_0x14e81b(0x40b)]),_0x1fb98f=_0x55e218!==u[_0x14e81b(0x216)][_0x14e81b(0x318)],_0x2a51c1=_0x345ad6['t'](Mt(_0x55e218)),_0x326a28=_0x1fb98f?P[_0x14e81b(0x1ea)]($e,{}):P['jsx'](ye,{}),_0x5f5a48=M[_0x14e81b(0x33c)](()=>{_0x1fb98f||_0x235e5f['reconnect']();},[_0x1fb98f,_0x235e5f]);function _0x159c06(){const _0x25cabe=_0x14e81b;return P[_0x25cabe(0x276)](_0x25cabe(0x278),{'className':_0x25cabe(0x20f),'onClick':_0x5f5a48,'children':[P['jsx'](_0x25cabe(0x278),{'className':D[_0x25cabe(0x20c)](_0x25cabe(0x3a1),{'univer-text-green-500':_0x1fb98f,'univer-text-red-500':!_0x1fb98f}),'children':_0x326a28}),P[_0x25cabe(0x1ea)](_0x25cabe(0x278),{'className':_0x25cabe(0x29a),'children':_0x2a51c1})]});}return _0x1fb98f?_0x159c06():P[_0x14e81b(0x1ea)](D['Tooltip'],{'title':_0x345ad6['t'](_0x14e81b(0x296)),'children':_0x159c06()});}var Lt=Object[_0x14c41a(0x204)],Pt=(_0x48f786,_0x1ea099,_0x394fbb,_0x2b5e31)=>{const _0x3dc0f3=_0x14c41a;for(var _0x5f38cc=_0x2b5e31>0x1?void 0x0:_0x2b5e31?Lt(_0x1ea099,_0x394fbb):_0x1ea099,_0x59a2a2=_0x48f786[_0x3dc0f3(0x2a7)]-0x1,_0x11e5ee;_0x59a2a2>=0x0;_0x59a2a2--)(_0x11e5ee=_0x48f786[_0x59a2a2])&&(_0x5f38cc=_0x11e5ee(_0x5f38cc)||_0x5f38cc);return _0x5f38cc;},V=(_0x4d36a0,_0x59c9bc)=>(_0xfb1511,_0x3c7d5d)=>_0x59c9bc(_0xfb1511,_0x3c7d5d,_0x4d36a0);exports[_0x14c41a(0x33e)]=class extends a[_0x14c41a(0x3ce)]{constructor(_0x559c0d,_0x4aa1ae,_0x54de91,_0x387354){const _0x1d867a=_0x14c41a;super(),h(this,_0x1d867a(0x303),new d[(_0x1d867a(0x425))](u[_0x1d867a(0x216)][_0x1d867a(0x2e1)])),(this['_univerInstanceService']=_0x559c0d,this[_0x1d867a(0x399)]=_0x4aa1ae,this[_0x1d867a(0x224)]=_0x54de91,this[_0x1d867a(0x219)]=_0x387354,this['_initStatusComponent'](),this[_0x1d867a(0x2ae)]());}['_initStatusListener'](){const _0x20177a=_0x14c41a;this[_0x20177a(0x208)](this[_0x20177a(0x42e)]['focused$'][_0x20177a(0x432)](d['switchMap'](()=>{const _0xf8eeb8=_0x20177a,_0xf97068=this['_univerInstanceService'][_0xf8eeb8(0x3f7)]();return _0xf97068?this[_0xf8eeb8(0x224)][_0xf8eeb8(0x43c)](_0xf97068[_0xf8eeb8(0x436)]()):d['of'](null);}),d[_0x20177a(0x2e3)](_0xa69136=>_0xa69136?_0xa69136[_0x20177a(0x32c)]:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x20177a(0x3fe)](_0x48fe55=>{const _0x192227=_0x20177a;this[_0x192227(0x303)][_0x192227(0x1fe)](_0x48fe55);}));}[_0x14c41a(0x3e7)](){const _0x3c5bfe=_0x14c41a;this[_0x3c5bfe(0x208)](this[_0x3c5bfe(0x219)][_0x3c5bfe(0x3cc)](O[_0x3c5bfe(0x295)][_0x3c5bfe(0x236)],()=>O['connectInjector'](wt({'status$':this[_0x3c5bfe(0x303)]['asObservable']()}),this[_0x3c5bfe(0x399)])));}},exports[_0x14c41a(0x33e)]=Pt([V(0x0,a[_0x14c41a(0x403)]),V(0x1,a[_0x14c41a(0x463)](a[_0x14c41a(0x2bd)])),V(0x2,a[_0x14c41a(0x463)](u[_0x14c41a(0x244)])),V(0x3,O[_0x14c41a(0x379)])],exports['DesktopCollaborationStatusDisplayController']);function wt(_0x5e0f36){const {status$:_0x6f2965}=_0x5e0f36;return function(){const _0x539342=_0x4f22;return P[_0x539342(0x1ea)](xe,{'status$':_0x6f2965});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x5f20b3,_0x1cd685,_0x41aefe,_0x20c9d2)=>{const _0x1727b9=_0x14c41a;for(var _0x189c49=_0x20c9d2>0x1?void 0x0:_0x20c9d2?At(_0x1cd685,_0x41aefe):_0x1cd685,_0x153ed9=_0x5f20b3[_0x1727b9(0x2a7)]-0x1,_0x24270f;_0x153ed9>=0x0;_0x153ed9--)(_0x24270f=_0x5f20b3[_0x153ed9])&&(_0x189c49=_0x24270f(_0x189c49)||_0x189c49);return _0x189c49;},y=(_0x21fd5c,_0xd62fae)=>(_0x41a25d,_0x4b7bbd)=>_0xd62fae(_0x41a25d,_0x4b7bbd,_0x21fd5c);let q=class extends a[_0x14c41a(0x3ce)]{constructor(_0x325585,_0x532e61,_0x25f3eb,_0x51a4a6,_0x2c5d65,_0x50fed9){const _0x405416=_0x14c41a;super(),this['_beforeCloseService']=_0x325585,this[_0x405416(0x37a)]=_0x532e61,this[_0x405416(0x42d)]=_0x25f3eb,this[_0x405416(0x227)]=_0x51a4a6,this[_0x405416(0x3f8)]=_0x2c5d65,this[_0x405416(0x42c)]=_0x50fed9,this[_0x405416(0x2fa)](),this[_0x405416(0x20a)]();}[_0x14c41a(0x2fa)](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x5c626c=_0x4f22;if(this[_0x5c626c(0x37a)][_0x5c626c(0x38d)][_0x5c626c(0x2b1)])return this[_0x5c626c(0x42c)]['t'](_0x5c626c(0x3c7));}));}['_initEvent'](){const _0x24fa0f=_0x14c41a;this[_0x24fa0f(0x208)](this[_0x24fa0f(0x42d)][_0x24fa0f(0x37f)][_0x24fa0f(0x3fe)](_0x2c5d4a=>{const _0x58c9e7=_0x24fa0f;_0x2c5d4a['id']===u[_0x58c9e7(0x375)][_0x58c9e7(0x25e)]&&this[_0x58c9e7(0x227)][_0x58c9e7(0x25d)]({'type':D['MessageType'][_0x58c9e7(0x22b)],'content':this['_localeService']['t'](_0x58c9e7(0x428))}),_0x2c5d4a['id']===u[_0x58c9e7(0x375)]['CLOSE_ROOM']&&this[_0x58c9e7(0x227)][_0x58c9e7(0x25d)]({'type':D[_0x58c9e7(0x3ac)][_0x58c9e7(0x22b)],'content':this[_0x58c9e7(0x42c)]['t'](_0x58c9e7(0x27d))}),_0x2c5d4a['id']===u[_0x58c9e7(0x375)]['PERMISSION_DENIED']&&this['_notificationService'][_0x58c9e7(0x25d)]({'title':this[_0x58c9e7(0x42c)]['t'](_0x58c9e7(0x440)),'content':this['_localeService']['t'](_0x58c9e7(0x468)),'type':_0x58c9e7(0x23a),'duration':0x0}),_0x2c5d4a['id']===u[_0x58c9e7(0x375)]['CONFLICT']&&this['_messageService']['show']({'type':D[_0x58c9e7(0x3ac)][_0x58c9e7(0x2de)],'content':this['_localeService']['t'](_0x58c9e7(0x27d))+'('+_0x2c5d4a['data']+')'}),_0x2c5d4a['id']===u[_0x58c9e7(0x375)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x58c9e7(0x25d)]({'type':D['MessageType']['Warning'],'content':this[_0x58c9e7(0x42c)]['t'](_0x2c5d4a['data']||'')}),_0x2c5d4a['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x58c9e7(0x227)][_0x58c9e7(0x25d)]({'type':D[_0x58c9e7(0x3ac)][_0x58c9e7(0x22b)],'content':this['_localeService']['t'](_0x58c9e7(0x367))}),_0x2c5d4a['id']===u[_0x58c9e7(0x375)][_0x58c9e7(0x262)]&&this[_0x58c9e7(0x227)][_0x58c9e7(0x25d)]({'type':D[_0x58c9e7(0x3ac)][_0x58c9e7(0x2de)],'content':this[_0x58c9e7(0x42c)]['t'](_0x58c9e7(0x3fd))}),_0x2c5d4a['id']===u[_0x58c9e7(0x375)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x58c9e7(0x227)][_0x58c9e7(0x25d)]({'type':D[_0x58c9e7(0x3ac)][_0x58c9e7(0x2de)],'content':this[_0x58c9e7(0x42c)]['t'](_0x58c9e7(0x358))});}));}};q=yt([y(0x0,O[_0x14c41a(0x3cf)]),y(0x1,u[_0x14c41a(0x327)]),y(0x2,a[_0x14c41a(0x463)](u[_0x14c41a(0x413)])),y(0x3,O['IMessageService']),y(0x4,O[_0x14c41a(0x2db)]),y(0x5,a[_0x14c41a(0x463)](a[_0x14c41a(0x3e2)]))],q);const $t=_0x14c41a(0x2e4),Ue={},Ee=a['createIdentifier']('uni.network.url-service');var xt=Object[_0x14c41a(0x204)],Bt=(_0x3de56a,_0x7d570b,_0x13e964,_0x245c42)=>{for(var _0x30cf7c=_0x245c42>0x1?void 0x0:_0x245c42?xt(_0x7d570b,_0x13e964):_0x7d570b,_0xf3b19a=_0x3de56a['length']-0x1,_0x50ef5d;_0xf3b19a>=0x0;_0xf3b19a--)(_0x50ef5d=_0x3de56a[_0xf3b19a])&&(_0x30cf7c=_0x50ef5d(_0x30cf7c)||_0x30cf7c);return _0x30cf7c;},F=(_0x2f65a0,_0x588658)=>(_0xf575c,_0x7c5e54)=>_0x588658(_0xf575c,_0x7c5e54,_0x2f65a0);exports[_0x14c41a(0x2bc)]=class extends a[_0x14c41a(0x3b5)]{constructor(_0xbaa9ba,_0x45d961,_0x237400,_0x53a438,_0x22f546){const _0x5cd43e=_0x14c41a;super(),this[_0x5cd43e(0x2a4)]=_0xbaa9ba,this['_logService']=_0x45d961,this[_0x5cd43e(0x2ad)]=_0x237400,this[_0x5cd43e(0x29d)]=_0x53a438,_0x22f546?_0x22f546==null||_0x22f546[_0x5cd43e(0x1eb)]()[_0x5cd43e(0x2ef)](()=>this[_0x5cd43e(0x1e9)]()):(this[_0x5cd43e(0x37e)]['debug'](_0x5cd43e(0x1e4),_0x5cd43e(0x3e6)),this[_0x5cd43e(0x1e9)]());}async[_0x14c41a(0x1e9)](){const _0x49e80a=_0x14c41a,_0x27b21f=this[_0x49e80a(0x2a4)][_0x49e80a(0x238)](_0x49e80a(0x35f)),_0x153eba=this[_0x49e80a(0x2a4)]['getParam'](_0x49e80a(0x26a)),_0x3091b3=this[_0x49e80a(0x2a4)]['getParam']('subunit');if(!_0x27b21f||!_0x153eba){this['_logService'][_0x49e80a(0x28f)]('[CollaborationDataLoaderController]',_0x49e80a(0x223));return;}const _0x22be94=await this[_0x49e80a(0x29d)][_0x49e80a(0x3cd)](_0x27b21f,Number(_0x153eba),_0x3091b3);_0x22be94&&_0x22be94 instanceof a['Workbook']&&this[_0x49e80a(0x2a0)](_0x22be94);}async[_0x14c41a(0x2a0)](_0x1b2437){const _0x86a938=_0x14c41a;await this[_0x86a938(0x2ba)](_0x1b2437),_0x1b2437[_0x86a938(0x2d7)][_0x86a938(0x432)](d[_0x86a938(0x334)](this[_0x86a938(0x2f1)]))['subscribe'](_0x4c119e=>{_0x4c119e&&this['_updateURLWithCurrentState'](_0x4c119e);}),this[_0x86a938(0x2a4)][_0x86a938(0x34a)][_0x86a938(0x432)](d[_0x86a938(0x334)](this[_0x86a938(0x2f1)]))[_0x86a938(0x3fe)](()=>this[_0x86a938(0x2ba)](_0x1b2437));}[_0x14c41a(0x392)](_0x3873a7,_0x589bbc=!0x1){const _0x3247d5=_0x14c41a,_0x2a0678=this[_0x3247d5(0x2a4)][_0x3247d5(0x238)](_0x3247d5(0x307));_0x3873a7[_0x3247d5(0x3b9)]()!==_0x2a0678&&this[_0x3247d5(0x2a4)]['setParam']('subunit',_0x3873a7[_0x3247d5(0x3b9)](),_0x589bbc);}async['_updateSubUnitFromURLParams'](_0x228eeb){const _0x2d4420=_0x14c41a;var _0x44cf69;const _0x155e52=this[_0x2d4420(0x2a4)]['getParam']('subunit');if(!_0x155e52||!_0x228eeb[_0x2d4420(0x279)](_0x155e52)){const _0xacdcf6=_0x228eeb['getUnhiddenWorksheets']()[0x0],_0x971111=_0x228eeb[_0x2d4420(0x279)](_0xacdcf6);if(!_0x971111)return;this[_0x2d4420(0x392)](_0x971111,!0x0),await this['_commandService'][_0x2d4420(0x234)](g[_0x2d4420(0x381)]['id'],{'unitId':_0x228eeb[_0x2d4420(0x436)](),'subUnitId':_0xacdcf6});return;}((_0x44cf69=_0x228eeb['getActiveSheet']())==null?void 0x0:_0x44cf69[_0x2d4420(0x3b9)]())!==_0x155e52&&await this[_0x2d4420(0x2ad)][_0x2d4420(0x234)](g[_0x2d4420(0x381)]['id'],{'unitId':_0x228eeb[_0x2d4420(0x436)](),'subUnitId':_0x155e52});}},exports[_0x14c41a(0x2bc)]=Bt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a[_0x14c41a(0x302)]),F(0x3,a[_0x14c41a(0x463)](u[_0x14c41a(0x329)])),F(0x4,a[_0x14c41a(0x258)](Ke[_0x14c41a(0x35a)]))],exports[_0x14c41a(0x2bc)]);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x9a55d2,_0x50bef5,_0x2564ec,_0x215fb7)=>{const _0x583f29=_0x14c41a;for(var _0x511931=_0x215fb7>0x1?void 0x0:_0x215fb7?jt(_0x50bef5,_0x2564ec):_0x50bef5,_0x2f5802=_0x9a55d2[_0x583f29(0x2a7)]-0x1,_0x237e09;_0x2f5802>=0x0;_0x2f5802--)(_0x237e09=_0x9a55d2[_0x2f5802])&&(_0x511931=_0x237e09(_0x511931)||_0x511931);return _0x511931;},ce=(_0x3d319e,_0x155188)=>(_0xda64b0,_0x435323)=>_0x155188(_0xda64b0,_0x435323,_0x3d319e);let z=class{constructor(_0x307056,_0x4df8ac,_0x42c705){const _0x4d5485=_0x14c41a;this[_0x4d5485(0x399)]=_0x307056,this[_0x4d5485(0x426)]=_0x4df8ac,this[_0x4d5485(0x24a)]=_0x42c705;}[_0x14c41a(0x383)](_0x4d3423){const _0x70dabd=_0x14c41a;this[_0x70dabd(0x3c5)](_0x4d3423),this[_0x70dabd(0x3f0)](_0x4d3423);}[_0x14c41a(0x2ec)](_0x3b2269){const _0x28bb71=_0x14c41a,{unitID:_0x816452}=_0x3b2269,_0x4d36a6=this['_renderManagerService'][_0x28bb71(0x449)](_0x816452)[_0x28bb71(0x3e4)](E[_0x28bb71(0x2c2)]),{redoCache:_0x32ac2c}=_0x4d36a6[_0x28bb71(0x2b2)]();if(_0x32ac2c[_0x28bb71(0x2a7)]===0x0)return _0x3b2269;let _0x15042b=a['Tools'][_0x28bb71(0x328)](_0x3b2269[_0x28bb71(0x281)][0x0]);for(let _0xb43352=0x0;_0xb43352<_0x32ac2c[_0x28bb71(0x2a7)];_0xb43352++){const _0x93dcca={'id':_0x28bb71(0x40a),'params':{..._0x32ac2c[_0xb43352]}},_0xd937d9=this[_0x28bb71(0x426)][_0x28bb71(0x26d)](_0x15042b,_0x93dcca,!0x1);if(m[_0x28bb71(0x46f)](_0xd937d9))throw _0xd937d9['error'];_0x15042b=_0xd937d9[_0x28bb71(0x2fc)];}return{...a[_0x28bb71(0x462)]['deepClone'](_0x3b2269),'mutations':[_0x15042b]};}[_0x14c41a(0x3c5)](_0x430eda){const _0x2acfb5=_0x14c41a,{unitID:_0x13abef}=_0x430eda,_0x57b56d=this[_0x2acfb5(0x24a)][_0x2acfb5(0x449)](_0x13abef)[_0x2acfb5(0x3e4)](E[_0x2acfb5(0x2c2)]),{undoCache:_0x408747,redoCache:_0x3cf820}=_0x57b56d[_0x2acfb5(0x2b2)]();if(_0x408747[_0x2acfb5(0x2a7)]===0x0||_0x3cf820['length']===0x0)return;const _0x419c0c=[],_0x1d9c3d=[];let _0xd16591=a[_0x2acfb5(0x462)][_0x2acfb5(0x328)](_0x430eda['mutations'][0x0]),_0x20d39c=a[_0x2acfb5(0x462)]['deepClone'](_0x430eda['mutations'][0x0]);for(let _0x5c3f7c=_0x408747[_0x2acfb5(0x2a7)]-0x1;_0x5c3f7c>=0x0;_0x5c3f7c--){const _0x54a24c={'id':'doc.mutation.rich-text-editing','params':{..._0x408747[_0x5c3f7c]}},_0x53b258={'id':_0x2acfb5(0x40a),'params':{..._0x3cf820[_0x5c3f7c]}},_0x1a40f2=this[_0x2acfb5(0x426)]['transformMutation'](_0xd16591,_0x54a24c,!0x1),_0x3d602d=this[_0x2acfb5(0x426)][_0x2acfb5(0x26d)](_0x20d39c,_0x53b258,!0x1);if(m[_0x2acfb5(0x46f)](_0x1a40f2))throw _0x1a40f2[_0x2acfb5(0x23a)];if(m[_0x2acfb5(0x46f)](_0x3d602d))throw _0x3d602d['error'];_0x419c0c[_0x2acfb5(0x3ea)](_0x1a40f2[_0x2acfb5(0x2cc)]['params']),_0x1d9c3d[_0x2acfb5(0x3ea)](_0x3d602d[_0x2acfb5(0x2cc)][_0x2acfb5(0x46d)]),_0xd16591=_0x1a40f2['m1Prime'],_0x20d39c=_0x3d602d['m1Prime'];}_0x57b56d['setUndoRedoMutationParamsCache']({'undoCache':_0x419c0c,'redoCache':_0x1d9c3d});}['_transformPreviousActiveRange'](_0x3b9c0a){const _0x30dd40=_0x14c41a,{unitID:_0x232af3}=_0x3b9c0a,_0x385c98=this[_0x30dd40(0x24a)][_0x30dd40(0x449)](_0x232af3)[_0x30dd40(0x3e4)](E[_0x30dd40(0x2c2)]),_0x13c448=_0x385c98['getActiveRange']();if(_0x13c448==null)return;const _0x56778f=[{'id':_0x30dd40(0x40a),'params':{'unitId':_0x3b9c0a[_0x30dd40(0x26b)],'actions':null,'textRanges':[_0x13c448]}}],_0x3e2c8b=this[_0x30dd40(0x426)][_0x30dd40(0x423)](_0x3b9c0a,_0x56778f);if(!m[_0x30dd40(0x3b6)](_0x3e2c8b))throw _0x3e2c8b[_0x30dd40(0x23a)];const _0x57d53f=_0x3e2c8b[_0x30dd40(0x2cc)][0x0][_0x30dd40(0x46d)][_0x30dd40(0x34f)];Array[_0x30dd40(0x336)](_0x57d53f)&&_0x57d53f['length']&&_0x385c98['setActiveRange'](_0x57d53f[0x0]);}};z=kt([ce(0x0,a[_0x14c41a(0x463)](a[_0x14c41a(0x2bd)])),ce(0x1,m['ITransformService']),ce(0x2,p['IRenderManagerService'])],z);var Ft=Object[_0x14c41a(0x204)],Ht=(_0xddf2ea,_0xa87f4c,_0x5e8f5a,_0x4e99e7)=>{const _0x204997=_0x14c41a;for(var _0x451b76=_0x4e99e7>0x1?void 0x0:_0x4e99e7?Ft(_0xa87f4c,_0x5e8f5a):_0xa87f4c,_0x44f4e0=_0xddf2ea[_0x204997(0x2a7)]-0x1,_0x302fb3;_0x44f4e0>=0x0;_0x44f4e0--)(_0x302fb3=_0xddf2ea[_0x44f4e0])&&(_0x451b76=_0x302fb3(_0x451b76)||_0x451b76);return _0x451b76;},le=(_0x536807,_0x2beb76)=>(_0x4d5584,_0x4902ca)=>_0x2beb76(_0x4d5584,_0x4902ca,_0x536807);let J=class{constructor(_0x572846,_0x5de175,_0x58c32d){const _0x1594a4=_0x14c41a;this[_0x1594a4(0x399)]=_0x572846,this[_0x1594a4(0x426)]=_0x5de175,this[_0x1594a4(0x2fe)]=_0x58c32d;}[_0x14c41a(0x256)](_0x166b78){const _0x322574=_0x14c41a;this[_0x322574(0x1ee)](_0x166b78);}[_0x14c41a(0x2ec)](_0x5c8c62){const _0x7d02c7=_0x14c41a,{unitID:_0x1b876b}=_0x5c8c62,{collaboration:_0x5aa1f7}=this['_docStateChangeManagerService']['getStateCache'](_0x1b876b);if(_0x5aa1f7[_0x7d02c7(0x2a7)]===0x0)return _0x5c8c62;let _0x168f63=a[_0x7d02c7(0x462)][_0x7d02c7(0x328)](_0x5c8c62[_0x7d02c7(0x281)][0x0]);for(let _0x120d48=0x0;_0x120d48<_0x5aa1f7[_0x7d02c7(0x2a7)];_0x120d48++){const _0x93e666={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5aa1f7[_0x120d48][_0x7d02c7(0x380)],..._0x5aa1f7[_0x120d48][_0x7d02c7(0x3ed)]}},_0x215c87=this[_0x7d02c7(0x426)][_0x7d02c7(0x26d)](_0x168f63,_0x93e666,!0x1);if(m[_0x7d02c7(0x46f)](_0x215c87))throw _0x215c87[_0x7d02c7(0x23a)];_0x168f63=_0x215c87[_0x7d02c7(0x2fc)];}return{...a[_0x7d02c7(0x462)][_0x7d02c7(0x328)](_0x5c8c62),'mutations':[_0x168f63]};}[_0x14c41a(0x1ee)](_0x2d8693){const _0x3a849f=_0x14c41a,{unitID:_0x46f733}=_0x2d8693,{history:_0x30947d,collaboration:_0x5548e9}=this[_0x3a849f(0x2fe)][_0x3a849f(0x34c)](_0x46f733);if(_0x30947d[_0x3a849f(0x2a7)]===0x0&&_0x5548e9['length']===0x0)return;const _0x28798a=[],_0x3c919e=[];let _0x16b740=a[_0x3a849f(0x462)]['deepClone'](_0x2d8693[_0x3a849f(0x281)][0x0]),_0x2c0558=a[_0x3a849f(0x462)][_0x3a849f(0x328)](_0x2d8693['mutations'][0x0]);for(let _0x5f193a=_0x30947d[_0x3a849f(0x2a7)]-0x1;_0x5f193a>=0x0;_0x5f193a--){const _0x7b8560={'id':_0x3a849f(0x40a),'params':{'unitId':_0x30947d[_0x5f193a][_0x3a849f(0x380)],..._0x30947d[_0x5f193a][_0x3a849f(0x38f)]}},_0x47f820={'id':_0x3a849f(0x40a),'params':{'unitId':_0x30947d[_0x5f193a][_0x3a849f(0x380)],..._0x30947d[_0x5f193a][_0x3a849f(0x3ed)]}},_0x5f949c=this[_0x3a849f(0x426)]['transformMutation'](_0x16b740,_0x7b8560,!0x1),_0x516c5d=this[_0x3a849f(0x426)][_0x3a849f(0x26d)](_0x2c0558,_0x47f820,!0x1);if(m[_0x3a849f(0x46f)](_0x5f949c))throw _0x5f949c[_0x3a849f(0x23a)];if(m['isTransformMutationFailure'](_0x516c5d))throw _0x516c5d[_0x3a849f(0x23a)];_0x28798a[_0x3a849f(0x3ea)]({..._0x30947d[_0x5f193a],'undoState':_0x5f949c['m2Prime'][_0x3a849f(0x46d)],'redoState':_0x516c5d[_0x3a849f(0x2cc)][_0x3a849f(0x46d)]}),_0x16b740=_0x5f949c[_0x3a849f(0x2fc)],_0x2c0558=_0x516c5d[_0x3a849f(0x2fc)];}_0x16b740=a['Tools']['deepClone'](_0x2d8693[_0x3a849f(0x281)][0x0]),_0x2c0558=a['Tools'][_0x3a849f(0x328)](_0x2d8693[_0x3a849f(0x281)][0x0]);for(let _0x391a5f=_0x5548e9[_0x3a849f(0x2a7)]-0x1;_0x391a5f>=0x0;_0x391a5f--){const _0x579b67={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5548e9[_0x391a5f][_0x3a849f(0x380)],..._0x5548e9[_0x391a5f]['undoState']}},_0x3bdbe6={'id':_0x3a849f(0x40a),'params':{'unitId':_0x5548e9[_0x391a5f]['unitId'],..._0x5548e9[_0x391a5f]['redoState']}},_0x41afc2=this[_0x3a849f(0x426)]['transformMutation'](_0x16b740,_0x579b67,!0x1),_0x1a410a=this[_0x3a849f(0x426)]['transformMutation'](_0x2c0558,_0x3bdbe6,!0x1);if(m[_0x3a849f(0x46f)](_0x41afc2))throw _0x41afc2[_0x3a849f(0x23a)];if(m['isTransformMutationFailure'](_0x1a410a))throw _0x1a410a['error'];_0x3c919e[_0x3a849f(0x3ea)]({..._0x5548e9[_0x391a5f],'undoState':_0x41afc2[_0x3a849f(0x2cc)][_0x3a849f(0x46d)],'redoState':_0x1a410a[_0x3a849f(0x2cc)][_0x3a849f(0x46d)]}),_0x16b740=_0x41afc2[_0x3a849f(0x2fc)],_0x2c0558=_0x1a410a['m1Prime'];}this[_0x3a849f(0x2fe)][_0x3a849f(0x3dc)](_0x46f733,{'history':_0x28798a,'collaboration':_0x3c919e});}};J=Ht([le(0x0,a['Inject'](a[_0x14c41a(0x2bd)])),le(0x1,m[_0x14c41a(0x27e)]),le(0x2,a[_0x14c41a(0x463)](E[_0x14c41a(0x378)]))],J);var Yt=Object[_0x14c41a(0x204)],Wt=(_0x2572dd,_0x411ba5,_0x1d3cd0,_0x4f8860)=>{const _0x13581c=_0x14c41a;for(var _0x336598=_0x4f8860>0x1?void 0x0:_0x4f8860?Yt(_0x411ba5,_0x1d3cd0):_0x411ba5,_0x208130=_0x2572dd[_0x13581c(0x2a7)]-0x1,_0x3788bd;_0x208130>=0x0;_0x208130--)(_0x3788bd=_0x2572dd[_0x208130])&&(_0x336598=_0x3788bd(_0x336598)||_0x336598);return _0x336598;},Ne=(_0x369835,_0x291319)=>(_0xc2363,_0x22e62f)=>_0x291319(_0xc2363,_0x22e62f,_0x369835);let Z=class{constructor(_0x4ff033,_0x229842){const _0x1783f7=_0x14c41a;this['_injector']=_0x4ff033,this[_0x1783f7(0x426)]=_0x229842;}[_0x14c41a(0x210)](_0x2d5e86){const _0x512ee7=_0x14c41a;var _0x30043b;const _0x2b4eae=this['_injector']['get'](Y[_0x512ee7(0x255)]),_0x445b65=(_0x30043b=_0x2b4eae[_0x512ee7(0x356)]())!=null?_0x30043b:[];if(_0x445b65[_0x512ee7(0x2a7)]===0x0)return;const _0x378c5a=_0x2d5e86[_0x512ee7(0x26b)],_0x3571e0=[{'id':_0x512ee7(0x40a),'params':{'unitId':_0x378c5a,'actions':null,'textRanges':_0x445b65}}],_0x5ae2bb=this['_transformService'][_0x512ee7(0x423)](_0x2d5e86,_0x3571e0);if(!m['isTransformMutationsWithChangesetSuccess'](_0x5ae2bb))throw _0x5ae2bb['error'];const _0x1b9fc1=_0x5ae2bb['m2Prime'][0x0][_0x512ee7(0x46d)]['textRanges'];Array[_0x512ee7(0x336)](_0x1b9fc1)&&_0x1b9fc1['length']&&_0x2b4eae[_0x512ee7(0x421)](_0x1b9fc1,{'unitId':_0x378c5a,'subUnitId':_0x378c5a},!0x1);}};Z=Wt([Ne(0x0,a[_0x14c41a(0x463)](a[_0x14c41a(0x2bd)])),Ne(0x1,m[_0x14c41a(0x27e)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x1c369c,_0x3fc568,_0xf1dc67,_0x3a393e)=>{for(var _0x4f953a=_0x3a393e>0x1?void 0x0:_0x3a393e?Vt(_0x3fc568,_0xf1dc67):_0x3fc568,_0x40de9e=_0x1c369c['length']-0x1,_0x15d94a;_0x40de9e>=0x0;_0x40de9e--)(_0x15d94a=_0x1c369c[_0x40de9e])&&(_0x4f953a=_0x15d94a(_0x4f953a)||_0x4f953a);return _0x4f953a;},N=(_0x1cde18,_0x48679a)=>(_0x1ac857,_0x55d570)=>_0x48679a(_0x1ac857,_0x55d570,_0x1cde18);let Q=class extends a[_0x14c41a(0x3ce)]{constructor(_0x349155,_0x1c0458,_0x10c0d6,_0x3b2744,_0x30aebc,_0x245b93,_0x9052e9,_0x2ca39e){const _0x4fd123=_0x14c41a;super(),h(this,_0x4fd123(0x303),new d[(_0x4fd123(0x425))](u[_0x4fd123(0x216)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x349155,this['_collaborationController']=_0x1c0458,this[_0x4fd123(0x3d8)]=_0x10c0d6,this[_0x4fd123(0x43f)]=_0x3b2744,this[_0x4fd123(0x30e)]=_0x30aebc,this[_0x4fd123(0x437)]=_0x245b93,this[_0x4fd123(0x227)]=_0x9052e9,this[_0x4fd123(0x42c)]=_0x2ca39e,this['_initEntityListener']());}[_0x14c41a(0x22f)](){const _0x2a494f=_0x14c41a;this[_0x2a494f(0x208)](this[_0x2a494f(0x224)][_0x2a494f(0x371)][_0x2a494f(0x3fe)](_0x15d806=>{const _0x302baa=_0x2a494f,_0x3f101b=this[_0x302baa(0x2fe)][_0x302baa(0x29f)][_0x302baa(0x3fe)](_0x59172a=>{const _0x40af70=_0x302baa;if(_0x59172a==null)return;const {unitId:_0x421f65,redoState:_0x427258,commandId:_0x707b78}=_0x59172a;if(_0x421f65!==_0x15d806[_0x40af70(0x26b)])return;const _0x453050={'id':_0x707b78,'type':a[_0x40af70(0x422)][_0x40af70(0x308)],'params':{'unitId':_0x421f65,'actions':_0x427258[_0x40af70(0x252)],'textRanges':null}};_0x15d806[_0x40af70(0x3e1)](_0x453050);});if(_0x15d806[_0x302baa(0x208)](_0x3f101b),_0x15d806 instanceof u[_0x302baa(0x3c2)]){const _0x58d76a={'onTransformIME':_0x193d85=>this[_0x302baa(0x3d8)][_0x302baa(0x383)](_0x193d85),'onTransformState':_0x1345ca=>this['_docTransformStateCacheService'][_0x302baa(0x256)](_0x1345ca),'onTransformSelections':_0x3a80a7=>this[_0x302baa(0x30e)][_0x302baa(0x210)](_0x3a80a7),'onSyncEditingCollabCursor':_0x1e482c=>this[_0x302baa(0x437)][_0x302baa(0x3cb)](_0x1e482c),'onTransformRemoteChangesetByIMECache':_0x348217=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x348217),'onTransformRemoteChangesetByStateCache':_0x2c5448=>this[_0x302baa(0x43f)][_0x302baa(0x2ec)](_0x2c5448)};_0x15d806[_0x302baa(0x2c5)](_0x58d76a);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x14c41a(0x378)])),N(0x1,a[_0x14c41a(0x463)](u['CollaborationController'])),N(0x2,a['Inject'](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x14c41a(0x463)](Z)),N(0x5,a[_0x14c41a(0x463)](Ce)),N(0x6,O[_0x14c41a(0x3a4)]),N(0x7,a['Inject'](a[_0x14c41a(0x3e2)]))],Q);var Gt=Object[_0x14c41a(0x204)],Kt=(_0xbd8244,_0x454a3c,_0x5dd739,_0x1842b9)=>{const _0x56732f=_0x14c41a;for(var _0x4f6d63=_0x1842b9>0x1?void 0x0:_0x1842b9?Gt(_0x454a3c,_0x5dd739):_0x454a3c,_0x6f2b4f=_0xbd8244[_0x56732f(0x2a7)]-0x1,_0x60b604;_0x6f2b4f>=0x0;_0x6f2b4f--)(_0x60b604=_0xbd8244[_0x6f2b4f])&&(_0x4f6d63=_0x60b604(_0x4f6d63)||_0x4f6d63);return _0x4f6d63;},_e=(_0x2a0016,_0x30b6ea)=>(_0x22bb57,_0x56637a)=>_0x30b6ea(_0x22bb57,_0x56637a,_0x2a0016);let ge=class extends a[_0x14c41a(0x3ce)]{constructor(_0x5c76d5,_0x30b06a,_0x4a2413){const _0x3e90ef=_0x14c41a;super(),h(this,_0x3e90ef(0x284),new Map()),h(this,_0x3e90ef(0x3b3),new Map()),h(this,_0x3e90ef(0x439),!0x1),(this['_configService']=_0x5c76d5,this[_0x3e90ef(0x24b)]=_0x30b06a,this[_0x3e90ef(0x3d4)]=_0x4a2413);}[_0x14c41a(0x400)](){this['_disabled']=!0x0;}[_0x14c41a(0x414)](){const _0x135b3d=_0x14c41a;this[_0x135b3d(0x439)]=!0x1;}get['saveTaskMap'](){const _0x321043=_0x14c41a;return this[_0x321043(0x3b3)];}[_0x14c41a(0x388)](){const _0x7176e4=_0x14c41a;this[_0x7176e4(0x36a)]()[_0x7176e4(0x2ef)](()=>super[_0x7176e4(0x388)]());}async[_0x14c41a(0x3f4)](_0x262754){const _0x29b688=_0x14c41a;return this[_0x29b688(0x439)]?null:this[_0x29b688(0x24b)][_0x29b688(0x21b)](u[_0x29b688(0x1f3)](_0x262754));}async[_0x14c41a(0x27f)](_0x1ddd41,_0x2bd22e){const _0x573518=_0x14c41a;return!!this[_0x573518(0x24b)]['setItem'](_0x1ddd41,_0x2bd22e);}[_0x14c41a(0x3d3)](_0x55d3fb,_0x33f4c4,_0x25024b,_0x3175c1){const _0x48feb6=_0x14c41a,_0x34a12d=this[_0x48feb6(0x3d4)][_0x48feb6(0x226)](_0x55d3fb);this[_0x48feb6(0x284)][_0x48feb6(0x1e6)](_0x55d3fb,{'unitID':_0x55d3fb,'type':_0x33f4c4,'awaitingChangeset':_0x25024b,'mutations':_0x3175c1,'rev':_0x34a12d}),this[_0x48feb6(0x3b3)][_0x48feb6(0x291)](_0x55d3fb)||this[_0x48feb6(0x357)](_0x55d3fb);}['_scheduleSaving'](_0x542bd7){const _0x51f0e0=_0x14c41a,_0x109c85=this[_0x51f0e0(0x1fa)]();_0x109c85===0x0?this[_0x51f0e0(0x248)](_0x542bd7):this[_0x51f0e0(0x3b3)][_0x51f0e0(0x1e6)](_0x542bd7,setTimeout(()=>this[_0x51f0e0(0x248)](_0x542bd7),_0x109c85));}[_0x14c41a(0x1fa)](){const _0x5b5843=_0x14c41a;var _0x23a255;return(_0x23a255=this['_configService'][_0x5b5843(0x314)](u[_0x5b5843(0x20b)]))!=null?_0x23a255:u[_0x5b5843(0x242)];}[_0x14c41a(0x248)](_0x5d290d){const _0x494345=_0x14c41a,_0x1e023c=this[_0x494345(0x3b3)]['get'](_0x5d290d);return _0x1e023c!==void 0x0&&window[_0x494345(0x361)](_0x1e023c),this[_0x494345(0x24b)][_0x494345(0x271)](u[_0x494345(0x1f3)](_0x5d290d),this[_0x494345(0x284)]['get'](_0x5d290d))[_0x494345(0x2ef)](()=>this[_0x494345(0x3b3)]['delete'](_0x5d290d));}async[_0x14c41a(0x36a)](){const _0x1167ba=_0x14c41a,_0x49e434=[];this[_0x1167ba(0x3b3)][_0x1167ba(0x2ea)]((_0x353a90,_0x28ba61)=>{const _0x491d81=_0x1167ba;window[_0x491d81(0x361)](_0x353a90),_0x49e434[_0x491d81(0x2ff)](this[_0x491d81(0x248)](_0x28ba61)[_0x491d81(0x2ef)](()=>{const _0x4aeff0=_0x491d81;this[_0x4aeff0(0x3b3)][_0x4aeff0(0x37c)](_0x28ba61);}));}),await Promise[_0x1167ba(0x453)](_0x49e434);}};ge=Kt([_e(0x0,a[_0x14c41a(0x376)]),_e(0x1,a[_0x14c41a(0x3db)]),_e(0x2,a['Inject'](m[_0x14c41a(0x416)]))],ge);class Be extends a['RxDisposable']{constructor(){const _0x1f6548=_0x14c41a;super(),h(this,'urlChange$'),this[_0x1f6548(0x34a)]=d['fromEvent'](window,_0x1f6548(0x2ce))[_0x1f6548(0x432)](d[_0x1f6548(0x334)](this[_0x1f6548(0x2f1)]),d[_0x1f6548(0x3b7)](0x1),d[_0x1f6548(0x3b8)](void 0x0));}[_0x14c41a(0x264)](_0x18e80d,_0x209f26,_0x3b8166=!0x1){const _0x9dc00=_0x14c41a,_0x51ce22=new URL(window[_0x9dc00(0x355)][_0x9dc00(0x409)]);_0x51ce22[_0x9dc00(0x285)][_0x9dc00(0x1e6)](_0x18e80d,_0x209f26),_0x3b8166?window[_0x9dc00(0x44a)][_0x9dc00(0x3a0)]('','',_0x51ce22[_0x9dc00(0x228)]()):window[_0x9dc00(0x44a)][_0x9dc00(0x39f)]('','',_0x51ce22[_0x9dc00(0x228)]());}[_0x14c41a(0x444)](_0x1d8102,_0x3e353a=!0x1){const _0x48a987=_0x14c41a,_0x2d0327=new URL(window[_0x48a987(0x355)][_0x48a987(0x409)]);_0x2d0327[_0x48a987(0x285)]['delete'](_0x1d8102),_0x3e353a?window[_0x48a987(0x44a)][_0x48a987(0x3a0)]('','',_0x2d0327['toString']()):window['history'][_0x48a987(0x39f)]('','',_0x2d0327[_0x48a987(0x228)]());}[_0x14c41a(0x238)](_0x345b87){const _0x3aca09=_0x14c41a;var _0x394f42;return(_0x394f42=new URL(window[_0x3aca09(0x355)][_0x3aca09(0x409)])['searchParams']['get'](_0x345b87))!=null?_0x394f42:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x14c41a(0x204)],Jt=(_0x31eaa9,_0x354657,_0x5e5947)=>_0x354657 in _0x31eaa9?qt(_0x31eaa9,_0x354657,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e5947}):_0x31eaa9[_0x354657]=_0x5e5947,Zt=(_0x16077e,_0x25f48b,_0x55ad47,_0x4bd950)=>{const _0x324383=_0x14c41a;for(var _0x942f68=_0x4bd950>0x1?void 0x0:_0x4bd950?zt(_0x25f48b,_0x55ad47):_0x25f48b,_0x3818d9=_0x16077e[_0x324383(0x2a7)]-0x1,_0x4defb3;_0x3818d9>=0x0;_0x3818d9--)(_0x4defb3=_0x16077e[_0x3818d9])&&(_0x942f68=_0x4defb3(_0x942f68)||_0x942f68);return _0x942f68;},he=(_0x3a69a9,_0x3b4bbd)=>(_0x4eb2fb,_0x37ea08)=>_0x3b4bbd(_0x4eb2fb,_0x37ea08,_0x3a69a9),Qt=(_0x2f8928,_0x2f79b7,_0x2e9725)=>Jt(_0x2f8928,_0x2f79b7+'',_0x2e9725);const es=_0x14c41a(0x33a);exports[_0x14c41a(0x2f4)]=class extends a['Plugin']{constructor(_0x301f37=Ue,_0x3c52b7,_0xf805e0,_0x60e59e){const _0x49672c=_0x14c41a;super(),this[_0x49672c(0x2e9)]=_0x301f37,this['_renderManagerService']=_0x3c52b7,this[_0x49672c(0x399)]=_0xf805e0,this['_configService']=_0x60e59e;const {..._0x4fde99}=a[_0x49672c(0x46a)]({},Ue,this[_0x49672c(0x2e9)]);this[_0x49672c(0x464)][_0x49672c(0x2c7)]($t,_0x4fde99);}[_0x14c41a(0x301)](){const _0x371a58=_0x14c41a;this[_0x371a58(0x41f)](),this[_0x371a58(0x37b)]();}[_0x14c41a(0x21c)](){const _0x406588=_0x14c41a;this[_0x406588(0x2dd)]();}[_0x14c41a(0x41f)](){const _0x176a8a=_0x14c41a;var _0x478865;const _0x4434c6=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x176a8a(0x220)],{'useClass':G[_0x176a8a(0x2f9)]}],[u[_0x176a8a(0x327)],{'useClass':ge}],[exports[_0x176a8a(0x33e)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x176a8a(0x2ac)](this[_0x176a8a(0x399)],a['mergeOverrideWithDependencies'](_0x4434c6,(_0x478865=this['_config'])==null?void 0x0:_0x478865[_0x176a8a(0x442)]));}[_0x14c41a(0x2dd)](){const _0x33758a=_0x14c41a;this[_0x33758a(0x208)](this['_renderManagerService'][_0x33758a(0x2f6)](a[_0x33758a(0x343)][_0x33758a(0x330)],[fe])),this['disposeWithMe'](this['_renderManagerService'][_0x33758a(0x2f6)](a[_0x33758a(0x343)][_0x33758a(0x235)],[ve]));}[_0x14c41a(0x37b)](){const _0x3f53a6=_0x14c41a;a[_0x3f53a6(0x2c3)](this[_0x3f53a6(0x399)],[[x],[exports[_0x3f53a6(0x33e)]],[Q],[q],[exports[_0x3f53a6(0x2bc)]]]);}},Qt(exports[_0x14c41a(0x2f4)],'pluginName',es),exports[_0x14c41a(0x2f4)]=Zt([a['DependentOn'](u[_0x14c41a(0x382)]),he(0x1,p[_0x14c41a(0x30b)]),he(0x2,a[_0x14c41a(0x463)](a[_0x14c41a(0x2bd)])),he(0x3,a['IConfigService'])],exports[_0x14c41a(0x2f4)]);var ts=Object[_0x14c41a(0x204)],ss=(_0xeb1628,_0x5c6604,_0x582d79,_0x2dcfee)=>{const _0x5c053c=_0x14c41a;for(var _0x4e930b=_0x2dcfee>0x1?void 0x0:_0x2dcfee?ts(_0x5c6604,_0x582d79):_0x5c6604,_0x55290f=_0xeb1628[_0x5c053c(0x2a7)]-0x1,_0x2fea6c;_0x55290f>=0x0;_0x55290f--)(_0x2fea6c=_0xeb1628[_0x55290f])&&(_0x4e930b=_0x2fea6c(_0x4e930b)||_0x4e930b);return _0x4e930b;},H=(_0x54b4d2,_0x1dd804)=>(_0x133d82,_0x9b010c)=>_0x1dd804(_0x133d82,_0x9b010c,_0x54b4d2);exports[_0x14c41a(0x2f2)]=class extends u[_0x14c41a(0x457)]{constructor(_0x43d8e9,_0x31eca3,_0x78d576,_0x221dba,_0x5c992d){super(_0x43d8e9,_0x31eca3,_0x78d576,_0x221dba,_0x5c992d);}async[_0x14c41a(0x2ca)](_0x4c88f7){const _0x2a7dc7=_0x14c41a,_0x134e64=await this['_getSessionTicket'](),_0x40ad63=this[_0x2a7dc7(0x1f4)](_0x4c88f7,_0x134e64);return this[_0x2a7dc7(0x331)](_0x40ad63);}[_0x14c41a(0x1f4)](_0x3f7320,_0x46b104){const _0x388288=_0x14c41a,_0x35e11a=typeof window>'u'?new URL(_0x3f7320):new URL(_0x3f7320,window[_0x388288(0x355)][_0x388288(0x374)]);_0x35e11a[_0x388288(0x285)][_0x388288(0x1e6)]('sessionTicket',_0x46b104);const _0x3d3915=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x388288(0x355)][_0x388288(0x2a3)]);return _0x3d3915[_0x388288(0x340)]('runId')&&_0x35e11a['searchParams'][_0x388288(0x1e6)](_0x388288(0x3d6),_0x3d3915[_0x388288(0x340)](_0x388288(0x3d6))),_0x35e11a[_0x388288(0x228)]();}async[_0x14c41a(0x27a)](){const _0x571f63=_0x14c41a;var _0x45485f,_0x55abf0,_0x183cbd;const _0x58c7a3=this[_0x571f63(0x464)][_0x571f63(0x314)](u[_0x571f63(0x41c)]),_0x55331c=(_0x45485f=_0x58c7a3==null?void 0x0:_0x58c7a3[_0x571f63(0x44b)])!=null?_0x45485f:u[_0x571f63(0x412)];return(_0x183cbd=(_0x55abf0=(await this[_0x571f63(0x3bd)][_0x571f63(0x340)](_0x55331c,{'headers':{'Content-Type':_0x571f63(0x245)}}))[_0x571f63(0x313)])==null?void 0x0:_0x55abf0[_0x571f63(0x2fd)])!=null?_0x183cbd:'';}},exports[_0x14c41a(0x2f2)]=ss([H(0x0,a[_0x14c41a(0x463)](a[_0x14c41a(0x2bd)])),H(0x1,a[_0x14c41a(0x463)](G['HTTPService'])),H(0x2,a[_0x14c41a(0x376)]),H(0x3,a[_0x14c41a(0x2a9)]),H(0x4,m['ISnapshotServerService'])],exports[_0x14c41a(0x2f2)]);const Me=0x7530,Le=_0x14c41a(0x2b8);class is extends a['Disposable']{constructor(){const _0x171382=_0x14c41a;super(),h(this,_0x171382(0x2bf),a[_0x171382(0x2cb)]()),h(this,_0x171382(0x1ef),new Set()),h(this,_0x171382(0x3c8),new Map()),h(this,_0x171382(0x35d),null),h(this,_0x171382(0x40e),new Map()),h(this,_0x171382(0x2be),new Map()),this['_init']();}[_0x14c41a(0x388)](){const _0x3f3b28=_0x14c41a;super[_0x3f3b28(0x388)](),this[_0x3f3b28(0x40e)][_0x3f3b28(0x2ea)]((_0x45eabf,_0x44960f)=>this[_0x3f3b28(0x36c)](_0x44960f)),this[_0x3f3b28(0x35d)]&&window[_0x3f3b28(0x267)](this[_0x3f3b28(0x35d)]);}[_0x14c41a(0x2f7)](_0x53e885){const _0x9a95c6=_0x14c41a;return this[_0x9a95c6(0x3a3)](_0x53e885)['pipe'](d[_0x9a95c6(0x23c)]());}[_0x14c41a(0x266)](_0x425f53){const _0x4e9e0d=_0x14c41a;this[_0x4e9e0d(0x1ef)]['size']===0x0&&this[_0x4e9e0d(0x1e0)](),this[_0x4e9e0d(0x1ef)][_0x4e9e0d(0x348)](_0x425f53),this['_send']({'type':0x0,'memberID':this[_0x4e9e0d(0x2bf)],'unitIDs':[_0x425f53],'isForwarded':!0x1});}[_0x14c41a(0x377)](_0x3cd1a3){const _0x435c31=_0x14c41a;this[_0x435c31(0x1ef)][_0x435c31(0x37c)](_0x3cd1a3),this[_0x435c31(0x1ef)][_0x435c31(0x2b1)]===0x0&&this[_0x435c31(0x35d)]&&window[_0x435c31(0x267)](this[_0x435c31(0x35d)]);}[_0x14c41a(0x1e9)](){const _0x33307b=_0x14c41a;this['disposeWithMe'](a[_0x33307b(0x43b)](d['fromEvent'](window,_0x33307b(0x44d))[_0x33307b(0x3fe)](_0x2a028a=>{const _0x23a2b0=_0x33307b;if(_0x2a028a[_0x23a2b0(0x37d)]!==Le||!_0x2a028a[_0x23a2b0(0x39b)])return;const _0x51d101=JSON[_0x23a2b0(0x31d)](_0x2a028a['newValue']);this['_handleEvent'](_0x51d101);}))),window[_0x33307b(0x3ad)](_0x33307b(0x2a2),()=>this[_0x33307b(0x2da)]({'type':0x1,'memberID':this[_0x33307b(0x2bf)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x14c41a(0x2c4)](_0x1e020b){const _0x25f778=_0x14c41a;switch(_0x1e020b[_0x25f778(0x26a)]){case 0x0:this[_0x25f778(0x402)](_0x1e020b);break;case 0x1:this[_0x25f778(0x1f8)](_0x1e020b);break;case 0x2:this[_0x25f778(0x243)](_0x1e020b);break;}}['_handleJoinEvent'](_0x5e6cfa){const _0x3518fd=_0x14c41a,{unitIDs:_0x1d36ee,memberID:_0x4a36f2,isForwarded:_0x3afdcb}=_0x5e6cfa;_0x1d36ee[_0x3518fd(0x2ea)](_0x33e784=>{const _0x2bbb13=_0x3518fd;if(!_0x3afdcb&&this[_0x2bbb13(0x3c8)][_0x2bbb13(0x291)](_0x33e784)&&this[_0x2bbb13(0x3a3)](_0x33e784)[_0x2bbb13(0x1fe)](u[_0x2bbb13(0x368)][_0x2bbb13(0x404)]),!this[_0x2bbb13(0x3c8)][_0x2bbb13(0x291)](_0x33e784)||!this[_0x2bbb13(0x3c8)]['get'](_0x33e784)[_0x2bbb13(0x291)](_0x4a36f2)){const _0x2250e3=this[_0x2bbb13(0x3c8)][_0x2bbb13(0x340)](_0x33e784)||new Set();_0x2250e3[_0x2bbb13(0x348)](_0x4a36f2),this['_unitOnClients'][_0x2bbb13(0x1e6)](_0x33e784,_0x2250e3),this[_0x2bbb13(0x387)](_0x4a36f2);}}),_0x3afdcb||this[_0x3518fd(0x2da)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3518fd(0x1ef)]],'isForwarded':!0x0});}[_0x14c41a(0x387)](_0x1c2b17){const _0x2e7eab=_0x14c41a;this['_removeClearOtherTimer'](_0x1c2b17);const _0x4fcfd8=window[_0x2e7eab(0x300)](()=>{const _0xaef012=_0x2e7eab;this[_0xaef012(0x3c8)]['forEach'](_0x44951e=>{const _0x51c12f=_0xaef012;_0x44951e[_0x51c12f(0x37c)](_0x1c2b17);});},Me*0x2);this['_clearOtherTimers'][_0x2e7eab(0x1e6)](_0x1c2b17,_0x4fcfd8);}[_0x14c41a(0x36c)](_0x34ec69){const _0x547ded=_0x14c41a;if(this['_clearOtherTimers']['has'](_0x34ec69)){const _0x2ff5bf=this[_0x547ded(0x40e)][_0x547ded(0x340)](_0x34ec69);_0x2ff5bf&&window[_0x547ded(0x361)](_0x2ff5bf),this[_0x547ded(0x40e)][_0x547ded(0x1e6)](_0x34ec69,null);}}[_0x14c41a(0x1f8)](_0x2bc3a9){const _0x29ca33=_0x14c41a,{memberID:_0x558f4e,unitIDs:_0x4bf177}=_0x2bc3a9;_0x4bf177[_0x29ca33(0x2ea)](_0x2a66db=>{const _0xcc1f5f=_0x29ca33;var _0x3f1d57;const _0x4b297a=this[_0xcc1f5f(0x3c8)][_0xcc1f5f(0x340)](_0x2a66db);_0x4b297a&&(_0x4b297a[_0xcc1f5f(0x37c)](_0x558f4e),(_0x3f1d57=this[_0xcc1f5f(0x3a3)](_0x2a66db))==null||_0x3f1d57[_0xcc1f5f(0x1fe)](_0x4b297a[_0xcc1f5f(0x2b1)]===0x0?u[_0xcc1f5f(0x368)][_0xcc1f5f(0x396)]:u[_0xcc1f5f(0x368)][_0xcc1f5f(0x404)]));}),this[_0x29ca33(0x36c)](_0x558f4e);}[_0x14c41a(0x243)](_0x1b5251){const _0x2496f5=_0x14c41a;this[_0x2496f5(0x387)](_0x1b5251[_0x2496f5(0x394)]);}[_0x14c41a(0x2da)](_0x352e8f){const _0x2803c6=_0x14c41a;localStorage[_0x2803c6(0x271)](Le,JSON[_0x2803c6(0x30c)](_0x352e8f));}['_scheduleHeartbeat'](){const _0xfb151e=_0x14c41a;this[_0xfb151e(0x35d)]=window[_0xfb151e(0x212)](()=>{const _0x3a7d5a=_0xfb151e;this[_0x3a7d5a(0x2da)]({'type':0x2,'memberID':this[_0x3a7d5a(0x2bf)]});},Me);}[_0x14c41a(0x3a3)](_0x1c1dfe){const _0xdb2552=_0x14c41a;return this[_0xdb2552(0x2be)][_0xdb2552(0x291)](_0x1c1dfe)||this[_0xdb2552(0x2be)][_0xdb2552(0x1e6)](_0x1c1dfe,new d['BehaviorSubject'](u[_0xdb2552(0x368)][_0xdb2552(0x396)])),this[_0xdb2552(0x2be)][_0xdb2552(0x340)](_0x1c1dfe);}}var je=(_0x539468=>(_0x539468[_0x539468[_0x14c41a(0x2b9)]=0x0]=_0x14c41a(0x2b9),_0x539468[_0x539468['OK']=0x1]='OK',_0x539468[_0x539468[_0x14c41a(0x352)]=0x2]=_0x14c41a(0x352),_0x539468[_0x539468[_0x14c41a(0x3fb)]=0x3]=_0x14c41a(0x3fb),_0x539468[_0x539468[_0x14c41a(0x344)]=0x4]=_0x14c41a(0x344),_0x539468[_0x539468['UNAUTHENTICATED']=0x5]=_0x14c41a(0x3dd),_0x539468[_0x539468[_0x14c41a(0x1e3)]=0x6]='ALREADY_EXISTS',_0x539468[_0x539468[_0x14c41a(0x2f5)]=0x7]='INVALID_ARGUMENT',_0x539468[_0x539468[_0x14c41a(0x229)]=0x8]=_0x14c41a(0x229),_0x539468[_0x539468['COMPLETION_FINISHED']=0x9]=_0x14c41a(0x254),_0x539468[_0x539468[_0x14c41a(0x34d)]=0xa]=_0x14c41a(0x34d),_0x539468[_0x539468[_0x14c41a(0x45e)]=0xb]=_0x14c41a(0x45e),_0x539468[_0x539468[_0x14c41a(0x277)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x539468[_0x539468['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x14c41a(0x207),_0x539468[_0x539468[_0x14c41a(0x39a)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x539468[_0x539468['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x14c41a(0x26e),_0x539468[_0x539468[_0x14c41a(0x273)]=0x1771]=_0x14c41a(0x273),_0x539468[_0x539468['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x14c41a(0x31f),_0x539468[_0x539468[_0x14c41a(0x393)]=0x1773]=_0x14c41a(0x393),_0x539468[_0x539468[_0x14c41a(0x470)]=0x1b59]=_0x14c41a(0x470),_0x539468[_0x539468[_0x14c41a(0x23b)]=0x1b5a]=_0x14c41a(0x23b),_0x539468[_0x539468[_0x14c41a(0x349)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x539468[_0x539468[_0x14c41a(0x2af)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x539468[_0x539468[_0x14c41a(0x2a6)]=0x1b5d]=_0x14c41a(0x2a6),_0x539468[_0x539468[_0x14c41a(0x3f2)]=0x1f41]=_0x14c41a(0x3f2),_0x539468[_0x539468[_0x14c41a(0x22a)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x539468[_0x539468[_0x14c41a(0x2d9)]=0x232a]=_0x14c41a(0x2d9),_0x539468[_0x539468[_0x14c41a(0x3ae)]=0x232b]=_0x14c41a(0x3ae),_0x539468[_0x539468[_0x14c41a(0x1fd)]=0x232c]=_0x14c41a(0x1fd),_0x539468[_0x539468['LICENSE_DISTRO_REJECTED']=0x232d]=_0x14c41a(0x3eb),_0x539468[_0x539468[_0x14c41a(0x3c3)]=0x2711]=_0x14c41a(0x3c3),_0x539468[_0x539468[_0x14c41a(0x292)]=0x2712]=_0x14c41a(0x292),_0x539468[_0x539468['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x539468[_0x539468['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x14c41a(0x315),_0x539468[_0x539468[_0x14c41a(0x347)]=0x271a]=_0x14c41a(0x347),_0x539468[_0x539468['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x14c41a(0x333),_0x539468[_0x539468['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x14c41a(0x3bf),_0x539468[_0x539468['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x14c41a(0x466),_0x539468[_0x539468[_0x14c41a(0x3a5)]=0x271e]=_0x14c41a(0x3a5),_0x539468[_0x539468[_0x14c41a(0x287)]=0x271f]=_0x14c41a(0x287),_0x539468[_0x539468[_0x14c41a(0x45a)]=0x2720]=_0x14c41a(0x45a),_0x539468[_0x539468['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x14c41a(0x1e2),_0x539468[_0x539468[_0x14c41a(0x31b)]=0x2ee1]=_0x14c41a(0x31b),_0x539468[_0x539468[_0x14c41a(0x241)]=0x2ee2]=_0x14c41a(0x241),_0x539468[_0x539468[_0x14c41a(0x21a)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x539468[_0x539468['USER_NOT_INVITED_CODE']=0x2ee4]=_0x14c41a(0x34e),_0x539468[_0x539468[_0x14c41a(0x46c)]=0x2ee5]=_0x14c41a(0x46c),_0x539468[_0x539468['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x14c41a(0x45f),_0x539468[_0x539468[_0x14c41a(0x406)]=0x32ca]=_0x14c41a(0x406),_0x539468[_0x539468[_0x14c41a(0x36d)]=0x32cb]=_0x14c41a(0x36d),_0x539468[_0x539468['UNRECOGNIZED']=-0x1]=_0x14c41a(0x469),_0x539468))(je||{}),ns=Object[_0x14c41a(0x204)],rs=(_0x55642a,_0x26f1ec,_0x34a578,_0xb3814c)=>{const _0x29dce5=_0x14c41a;for(var _0x214dcf=_0xb3814c>0x1?void 0x0:_0xb3814c?ns(_0x26f1ec,_0x34a578):_0x26f1ec,_0x2ce164=_0x55642a[_0x29dce5(0x2a7)]-0x1,_0x5c435c;_0x2ce164>=0x0;_0x2ce164--)(_0x5c435c=_0x55642a[_0x2ce164])&&(_0x214dcf=_0x5c435c(_0x214dcf)||_0x214dcf);return _0x214dcf;},ue=(_0x51e807,_0x255829)=>(_0x1ab877,_0x5ca204)=>_0x255829(_0x1ab877,_0x5ca204,_0x51e807);exports[_0x14c41a(0x323)]=class extends a[_0x14c41a(0x3ce)]{constructor(_0x297941,_0x2c8c19,_0x292356){const _0x2e18f7=_0x14c41a;super(),this[_0x2e18f7(0x3d5)]=_0x297941,this['_httpService']=_0x2c8c19,this[_0x2e18f7(0x464)]=_0x292356;}async['runOnServer'](_0x29a9d2,_0x33896f,_0x440624,..._0x58c640){const _0x376bca=_0x14c41a;var _0x39b309,_0x2ceb2f,_0x3b3f7a,_0x59e9b7;const _0x4b3bdd=this['_instanceService'][_0x376bca(0x3f7)]();if(!_0x4b3bdd)throw new Error(_0x376bca(0x201));const _0x969f39=((_0x39b309=this[_0x376bca(0x464)]['getConfig'](u[_0x376bca(0x350)]))!=null?_0x39b309:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x29a9d2+_0x376bca(0x455)+_0x33896f,_0x5b10c3=new URL(window[_0x376bca(0x355)][_0x376bca(0x409)]),_0x1ab616={'scriptId':_0x29a9d2,'runId':(_0x2ceb2f=_0x5b10c3['searchParams']['get'](_0x376bca(0x3d6)))!=null?_0x2ceb2f:'','function':_0x33896f,'unitId':_0x4b3bdd[_0x376bca(0x436)](),'argsOfFunction':JSON[_0x376bca(0x30c)](_0x58c640),'invokeId':(_0x3b3f7a=_0x440624[_0x376bca(0x3e8)])!=null?_0x3b3f7a:'','executionId':(_0x59e9b7=_0x440624[_0x376bca(0x36e)])!=null?_0x59e9b7:''};try{const _0x17b266=await this[_0x376bca(0x3bd)][_0x376bca(0x35b)](_0x969f39,{'body':_0x1ab616});return _0x17b266[_0x376bca(0x313)]['error']&&_0x17b266['body'][_0x376bca(0x23a)][_0x376bca(0x237)]!==je['OK']?_0x376bca(0x2d0):_0x17b266['body'][_0x376bca(0x389)];}catch{return'Failed';}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x14c41a(0x403)]),ue(0x1,a[_0x14c41a(0x463)](G[_0x14c41a(0x386)])),ue(0x2,a[_0x14c41a(0x376)])],exports[_0x14c41a(0x323)]),exports[_0x14c41a(0x38c)]=xe,exports[_0x14c41a(0x339)]=Ee,exports[_0x14c41a(0x240)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x14c41a(0x3ff)]=Be;
1
+ 'use strict';const _0x26dd52=_0x178e;(function(_0x555b56,_0x490694){const _0x1a931f=_0x178e,_0x128ce4=_0x555b56();while(!![]){try{const _0x5eddc0=-parseInt(_0x1a931f(0x24a))/0x1+parseInt(_0x1a931f(0x1bf))/0x2+-parseInt(_0x1a931f(0x319))/0x3+parseInt(_0x1a931f(0x15f))/0x4*(parseInt(_0x1a931f(0x31d))/0x5)+parseInt(_0x1a931f(0x250))/0x6+parseInt(_0x1a931f(0x263))/0x7*(parseInt(_0x1a931f(0x2da))/0x8)+-parseInt(_0x1a931f(0xb6))/0x9*(parseInt(_0x1a931f(0x100))/0xa);if(_0x5eddc0===_0x490694)break;else _0x128ce4['push'](_0x128ce4['shift']());}catch(_0x1ff154){_0x128ce4['push'](_0x128ce4['shift']());}}}(_0x4ae1,0x88674));var Ve=Object['defineProperty'],Xe=(_0x31a2b1,_0x268802,_0x1276e5)=>_0x268802 in _0x31a2b1?Ve(_0x31a2b1,_0x268802,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1276e5}):_0x31a2b1[_0x268802]=_0x1276e5,h=(_0x50c0a4,_0x46fac2,_0x3b3a3b)=>Xe(_0x50c0a4,typeof _0x46fac2!=_0x26dd52(0xba)?_0x46fac2+'':_0x46fac2,_0x3b3a3b);function _0x178e(_0xcb76fe,_0x341434){const _0x4ae1c9=_0x4ae1();return _0x178e=function(_0x178ed8,_0x1340ad){_0x178ed8=_0x178ed8-0xaa;let _0x56af04=_0x4ae1c9[_0x178ed8];return _0x56af04;},_0x178e(_0xcb76fe,_0x341434);}Object[_0x26dd52(0x2e5)](exports,Symbol[_0x26dd52(0x32c)],{'value':_0x26dd52(0x164)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object['getOwnPropertyDescriptor'],ze=(_0x4bb5aa,_0x1c5a8b,_0x9f7453,_0x47a5ca)=>{for(var _0x4896ad=_0x47a5ca>0x1?void 0x0:_0x47a5ca?qe(_0x1c5a8b,_0x9f7453):_0x1c5a8b,_0x4906e3=_0x4bb5aa['length']-0x1,_0x11ed7a;_0x4906e3>=0x0;_0x4906e3--)(_0x11ed7a=_0x4bb5aa[_0x4906e3])&&(_0x4896ad=_0x11ed7a(_0x4896ad)||_0x4896ad);return _0x4896ad;},Oe=(_0x299cf6,_0x408027)=>(_0xcdc6dc,_0x186fa4)=>_0x408027(_0xcdc6dc,_0x186fa4,_0x299cf6);let de=class extends a['RxDisposable']{constructor(_0x30879f,_0x250783){const _0x4c22e5=_0x26dd52;super(),this['_docClipboardService']=_0x30879f,this[_0x4c22e5(0x2d9)]=_0x250783,this['_init']();}[_0x26dd52(0x145)](){const _0x1d1b1f=_0x26dd52,_0x1e8486=this;this[_0x1d1b1f(0x146)](this[_0x1d1b1f(0xd5)][_0x1d1b1f(0x2b2)]({'onBeforePasteImage':async _0x2aaf65=>{const _0x1bfc0b=_0x1d1b1f,_0x47bdbc=await _0x1e8486[_0x1bfc0b(0x2d9)]['saveImage'](_0x2aaf65);return _0x47bdbc?{'source':_0x47bdbc[_0x1bfc0b(0x254)],'imageSourceType':_0x47bdbc[_0x1bfc0b(0x277)]}:null;}}));}};de=ze([Oe(0x0,E[_0x26dd52(0x170)]),Oe(0x1,Ge[_0x26dd52(0xfd)])],de);const Te=['purple.300',_0x26dd52(0x24f),_0x26dd52(0x306),'red.300',_0x26dd52(0xb2),_0x26dd52(0x16a)];class me extends a['Disposable']{constructor(){const _0xa58c32=_0x26dd52;super(...arguments),h(this,_0xa58c32(0xd9),new Map()),h(this,'_colorIndex',0x0);}[_0x26dd52(0x1c4)](_0x7fc839){const _0x5e062e=_0x26dd52;if(this[_0x5e062e(0xd9)][_0x5e062e(0x220)](_0x7fc839))return this['_assignedColors'][_0x5e062e(0x21b)](_0x7fc839);const _0xf26313=Te[this[_0x5e062e(0x2d6)]];return this[_0x5e062e(0x2d6)]=(this['_colorIndex']+0x1)%Te[_0x5e062e(0x1d5)],this[_0x5e062e(0xd9)]['set'](_0x7fc839,_0xf26313),_0xf26313;}}function Pe(_0x4d528b){const _0x15e3c8=_0x26dd52;let _0xf45919='';for(const _0x582d2f of _0x4d528b){const {startOffset:_0x189d79,endOffset:_0x26076e,isActive:_0x33ad06,rangeType:_0x3fc597,segmentId:_0x539fc5,segmentPage:_0x94190f}=_0x582d2f;_0xf45919[_0x15e3c8(0x1d5)]&&(_0xf45919+=','),_0xf45919+=_0x189d79+':'+_0x26076e+':'+(_0x33ad06?'1':'0')+':'+_0x3fc597+':'+_0x539fc5+':'+_0x94190f;}return _0xf45919;}function Je(_0x3e97d4){const _0x289d6b=_0x26dd52,_0x4afec6=_0x3e97d4['split'](','),_0x5d291e=[];for(const _0x48905f of _0x4afec6){const [_0x255ae6,_0x5df680,_0x2a4db3,_0x37d4e8,_0x436db,_0x218693]=_0x48905f['split'](':');_0x5d291e[_0x289d6b(0x213)]({'startOffset':Number(_0x255ae6),'endOffset':Number(_0x5df680),'collapsed':_0x255ae6===_0x5df680,'isActive':_0x2a4db3==='1','rangeType':_0x37d4e8===a[_0x289d6b(0x29d)][_0x289d6b(0xd8)]?a[_0x289d6b(0x29d)]['TEXT']:a[_0x289d6b(0x29d)][_0x289d6b(0x2e3)],'segmentId':typeof _0x436db==_0x289d6b(0x22d)?String(_0x436db):'','segmentPage':Number(_0x218693!=null?_0x218693:-0x1)});}return _0x5d291e['some'](_0x2ec02c=>_0x2ec02c[_0x289d6b(0x223)])||(_0x5d291e[0x0][_0x289d6b(0x223)]=!0x0),_0x5d291e;}class Ce extends a['RxDisposable']{constructor(){const _0x3ee6cf=_0x26dd52;super(...arguments),h(this,_0x3ee6cf(0x19d),new d[(_0x3ee6cf(0x302))](null)),h(this,_0x3ee6cf(0xc7),this[_0x3ee6cf(0x19d)][_0x3ee6cf(0x271)]());}[_0x26dd52(0x28c)](_0x4cb904){const _0xb812f=_0x26dd52,{unitID:_0x139226,memberID:_0x21b6b5,textRanges:_0x485a8f}=_0x4cb904,_0x52f84f=Pe(_0x485a8f);if(_0x52f84f==='')return;const _0x40ad76={'unitID':_0x139226,'memberID':_0x21b6b5,'selection':_0x52f84f};this[_0xb812f(0x19d)][_0xb812f(0x184)](_0x40ad76);}}var Ze=Object[_0x26dd52(0xf0)],Qe=(_0x136d56,_0x290aeb,_0x35f752,_0x525f1c)=>{const _0x186c9d=_0x26dd52;for(var _0x5db360=_0x525f1c>0x1?void 0x0:_0x525f1c?Ze(_0x290aeb,_0x35f752):_0x290aeb,_0x5289b4=_0x136d56[_0x186c9d(0x1d5)]-0x1,_0x452720;_0x5289b4>=0x0;_0x5289b4--)(_0x452720=_0x136d56[_0x5289b4])&&(_0x5db360=_0x452720(_0x5db360)||_0x5db360);return _0x5db360;},L=(_0x28905a,_0x15b639)=>(_0xcea192,_0x4fc0fc)=>_0x15b639(_0xcea192,_0x4fc0fc,_0x28905a);const et=0x12c,tt=0x64;let Ie=class extends a[_0x26dd52(0x129)]{constructor(_0x72fdb0,_0x550d87,_0x57c854,_0x5c4529,_0x2e52cf,_0x2c4a46,_0x261683,_0x29380b,_0x5b88de){const _0x2d2ba3=_0x26dd52;super(),h(this,_0x2d2ba3(0x280),!0x1),h(this,_0x2d2ba3(0x145),!0x1),h(this,_0x2d2ba3(0x139),new d['BehaviorSubject'](new Map())),h(this,_0x2d2ba3(0x1ca),this[_0x2d2ba3(0x139)][_0x2d2ba3(0x271)]()),h(this,_0x2d2ba3(0x30e),new d[(_0x2d2ba3(0x302))]([])),h(this,_0x2d2ba3(0x212),this['_roomMembers$'][_0x2d2ba3(0x291)](d[_0x2d2ba3(0xf4)](et))),h(this,_0x2d2ba3(0x15c),a[_0x2d2ba3(0x257)](_0x17a867=>{const _0x233791=_0x2d2ba3,_0x56b2ec={'eventID':m['CollaborationEvent'][_0x233791(0x15e)],'data':{'unitID':this[_0x233791(0x2d7)],'memberID':this[_0x233791(0x1c0)]['getMemberID'](),'selection':Pe(_0x17a867)}};this[_0x233791(0x1c0)]['send'](_0x56b2ec,this[_0x233791(0x2d7)]);},tt)),(this[_0x2d2ba3(0x2d7)]=_0x72fdb0,this[_0x2d2ba3(0x1c0)]=_0x550d87,this[_0x2d2ba3(0x14d)]=_0x57c854,this[_0x2d2ba3(0xe0)]=_0x5c4529,this[_0x2d2ba3(0x1ae)]=_0x2e52cf,this[_0x2d2ba3(0x2c1)]=_0x2c4a46,this[_0x2d2ba3(0x318)]=_0x261683,this[_0x2d2ba3(0x2b5)]=_0x29380b,this[_0x2d2ba3(0x1e7)]=_0x5b88de);}get[_0x26dd52(0x20d)](){const _0x3d0979=_0x26dd52;return this[_0x3d0979(0x139)][_0x3d0979(0xaa)]();}get[_0x26dd52(0x1a4)](){const _0x16d1c4=_0x26dd52;return this[_0x16d1c4(0x30e)][_0x16d1c4(0xaa)]();}[_0x26dd52(0x1e2)](){const _0x3f35d3=_0x26dd52;super[_0x3f35d3(0x1e2)](),this[_0x3f35d3(0x139)][_0x3f35d3(0x184)](new Map()),this[_0x3f35d3(0x139)]['complete'](),this[_0x3f35d3(0x30e)][_0x3f35d3(0x184)]([]),this[_0x3f35d3(0x30e)][_0x3f35d3(0x2a3)]();}['init'](){const _0x5dec02=_0x26dd52;this[_0x5dec02(0x145)]||(this['_init']=!0x0,this[_0x5dec02(0x1c0)][_0x5dec02(0x229)][_0x5dec02(0x291)](d[_0x5dec02(0x251)](this[_0x5dec02(0x322)]))[_0x5dec02(0x301)](_0x297489=>{const _0x28d6d8=_0x5dec02;_0x297489===u[_0x28d6d8(0x228)][_0x28d6d8(0x304)]?this[_0x28d6d8(0x2c7)]():this[_0x28d6d8(0x231)]();}),this['_session'][_0x5dec02(0x242)][_0x5dec02(0x291)](d['takeUntil'](this[_0x5dec02(0x322)]))[_0x5dec02(0x301)](_0x4c2b86=>{const _0x3497c6=_0x5dec02,_0x3c8d3e=_0x4c2b86[_0x3497c6(0x16d)];_0x3c8d3e===m[_0x3497c6(0xc0)][_0x3497c6(0x15e)]&&this[_0x3497c6(0x18a)](_0x4c2b86),_0x3c8d3e===m[_0x3497c6(0xc0)]['USERS_LEAVE']&&this[_0x3497c6(0x2b1)](_0x4c2b86);}),this[_0x5dec02(0x146)](this[_0x5dec02(0x1e7)][_0x5dec02(0x295)](_0x494a8e=>{const _0x4cbd86=_0x5dec02,_0x35cc3f=_0x494a8e[_0x4cbd86(0x195)];_0x35cc3f!=null&&this['_online']&&_0x494a8e['id']===Y[_0x4cbd86(0x2f5)]['id']&&_0x35cc3f['unitId']===this[_0x4cbd86(0x2d7)]&&_0x35cc3f[_0x4cbd86(0xaf)]===!0x1&&_0x35cc3f[_0x4cbd86(0xae)][_0x4cbd86(0x1d5)]>0x0&&this[_0x4cbd86(0x15c)](_0x35cc3f['ranges']);})),this[_0x5dec02(0x2c1)][_0x5dec02(0xc7)]['pipe'](d[_0x5dec02(0x251)](this[_0x5dec02(0x322)]))[_0x5dec02(0x301)](_0x34c9a7=>{const _0x5783dd=_0x5dec02;if((_0x34c9a7==null?void 0x0:_0x34c9a7[_0x5783dd(0x2d7)])!==this[_0x5783dd(0x2d7)])return;const _0x5d5d54={'eventID':m[_0x5783dd(0xc0)][_0x5783dd(0x15e)],'data':_0x34c9a7};this[_0x5783dd(0x18a)](_0x5d5d54);}),this[_0x5dec02(0x146)](this[_0x5dec02(0x1e7)][_0x5dec02(0x295)](_0x1c6b47=>{const _0xce2491=_0x5dec02;if(_0x1c6b47[_0xce2491(0x195)]==null)return;const _0x5d4c79=_0x1c6b47[_0xce2491(0x195)];if(_0x1c6b47['id']!==Y['RichTextEditingMutation']['id']||_0x5d4c79[_0xce2491(0x12f)]!==this['unitID'])return;const _0x31b8c2={'id':'doc.mutation.rich-text-editing','params':_0x5d4c79},_0x4d03f=this[_0xce2491(0x20d)];for(const [_0x4056b6,_0x1c7ad5]of _0x4d03f){const _0x4c6096={'id':_0xce2491(0x226),'params':{'unitId':this[_0xce2491(0x2d7)],'actions':null,'textRanges':_0x1c7ad5[_0xce2491(0xae)]}},_0x3e4974=this['_transformService'][_0xce2491(0x292)](_0x31b8c2,_0x4c6096,!0x1);if(m[_0xce2491(0x2ef)](_0x3e4974))throw _0x3e4974[_0xce2491(0x12c)];_0x4d03f[_0xce2491(0xf9)](_0x4056b6,{..._0x1c7ad5,'ranges':_0x3e4974[_0xce2491(0x1fb)]['params'][_0xce2491(0x243)]});}queueMicrotask(()=>{const _0x23754d=_0xce2491;this['_cursorInfo$'][_0x23754d(0x184)](_0x4d03f);});})));}['_onCursorUpdate'](_0x48b235){const _0x2a61f4=_0x26dd52;var _0x430be9,_0x2e12aa;const {memberID:_0x4b4d53,selection:_0x3b2457}=_0x48b235[_0x2a61f4(0x101)],_0x13a325=Je(_0x3b2457),_0x47d7ba=(_0x2e12aa=(_0x430be9=this[_0x2a61f4(0x1ae)]['getMember'](this[_0x2a61f4(0x2d7)],_0x4b4d53))==null?void 0x0:_0x430be9[_0x2a61f4(0x289)])!=null?_0x2e12aa:'Unknown\x20user',_0x2cdd63={'color':this['_colorAssignService'][_0x2a61f4(0x1c4)](_0x4b4d53),'name':_0x47d7ba,'ranges':_0x13a325},_0x359267=this[_0x2a61f4(0x20d)];_0x359267[_0x2a61f4(0xf9)](_0x4b4d53,_0x2cdd63),this[_0x2a61f4(0x139)][_0x2a61f4(0x184)](_0x359267);}['_onCursorDelete'](_0xdb3702){const _0x2e1123=_0x26dd52,{memberID:_0x3a9ed8}=_0xdb3702[_0x2e1123(0x101)],_0x14645e=this[_0x2e1123(0x20d)];_0x14645e[_0x2e1123(0x12b)](_0x3a9ed8),this[_0x2e1123(0x139)][_0x2e1123(0x184)](_0x14645e);}[_0x26dd52(0x2c7)](){const _0x305d12=_0x26dd52;var _0xde739e;if(this[_0x305d12(0x280)]=!0x0,((_0xde739e=this['_univerInstanceService'][_0x305d12(0x111)]())==null?void 0x0:_0xde739e[_0x305d12(0xee)]())!==this['unitID'])return;const _0x26a942=this['_injector'][_0x305d12(0x21b)](Y[_0x305d12(0x264)])[_0x305d12(0x2f8)]();Array[_0x305d12(0x125)](_0x26a942)&&_0x26a942['length']>0x0&&this[_0x305d12(0x15c)](_0x26a942);}['_toggleOffline'](){const _0x57031b=_0x26dd52;this[_0x57031b(0x280)]=!0x1;}};Ie=Qe([L(0x2,a[_0x26dd52(0x2bf)](a[_0x26dd52(0x18b)])),L(0x3,a[_0x26dd52(0x2bf)](me)),L(0x4,a[_0x26dd52(0x2bf)](u['MemberService'])),L(0x5,a[_0x26dd52(0x2bf)](Ce)),L(0x6,m[_0x26dd52(0x26a)]),L(0x7,a[_0x26dd52(0x121)]),L(0x8,a[_0x26dd52(0x2f9)])],Ie);var st=Object[_0x26dd52(0xf0)],it=(_0x4e33da,_0x4fce73,_0x371efc,_0x27dad3)=>{const _0x57cb60=_0x26dd52;for(var _0x26490d=_0x27dad3>0x1?void 0x0:_0x27dad3?st(_0x4fce73,_0x371efc):_0x4fce73,_0x5552e2=_0x4e33da[_0x57cb60(0x1d5)]-0x1,_0x8ff6ff;_0x5552e2>=0x0;_0x5552e2--)(_0x8ff6ff=_0x4e33da[_0x5552e2])&&(_0x26490d=_0x8ff6ff(_0x26490d)||_0x26490d);return _0x26490d;},A=(_0x168ac3,_0x1d69bf)=>(_0x32eaf9,_0x1c43e6)=>_0x1d69bf(_0x32eaf9,_0x1c43e6,_0x168ac3);const nt=0x12c,rt=0x64,ot=()=>{let _0x1a6cd0=[],_0x20582a=!0x1;return _0x2c5348=>{const _0x28698c=_0x178e;_0x1a6cd0[_0x28698c(0x213)](_0x2c5348),_0x20582a||(_0x20582a=!0x0,setTimeout(()=>{_0x1a6cd0['forEach'](_0x32ceca=>_0x32ceca()),_0x1a6cd0=[],_0x20582a=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x50f9bb,_0x3b3d5b,_0x112baf,_0x626e8b,_0x26b450,_0x5a920b,_0x4ebd45,_0xd8ce25){const _0x5c5484=_0x26dd52;super(),h(this,_0x5c5484(0x280),!0x1),h(this,_0x5c5484(0x145),!0x1),h(this,_0x5c5484(0x139),new d[(_0x5c5484(0x302))](new Map())),h(this,_0x5c5484(0x1ca),this['_cursorInfo$'][_0x5c5484(0x271)]()),h(this,'_roomMembers$',new d[(_0x5c5484(0x302))]([])),h(this,_0x5c5484(0x212),this[_0x5c5484(0x30e)][_0x5c5484(0x291)](d[_0x5c5484(0xf4)](nt))),h(this,_0x5c5484(0x15c),a[_0x5c5484(0x257)]((_0x5ac7f0,_0x2fa4ee)=>{const _0x1e5ea8=_0x5c5484,_0x1bd9e6={'eventID':m[_0x1e5ea8(0xc0)][_0x1e5ea8(0x15e)],'data':{'unitID':this[_0x1e5ea8(0x2d7)],'memberID':this[_0x1e5ea8(0x1c0)][_0x1e5ea8(0x112)](),'selection':be[_0x1e5ea8(0x241)](_0x5ac7f0,_0x2fa4ee['range'])}};this[_0x1e5ea8(0x1c0)][_0x1e5ea8(0x1db)](_0x1bd9e6,this[_0x1e5ea8(0x2d7)]);},rt)),(this[_0x5c5484(0x2d7)]=_0x50f9bb,this[_0x5c5484(0x1c0)]=_0x3b3d5b,this['_injector']=_0x112baf,this[_0x5c5484(0xe0)]=_0x626e8b,this[_0x5c5484(0x1ae)]=_0x26b450,this[_0x5c5484(0x2b5)]=_0x5a920b,this['_commandService']=_0x4ebd45,this['_refRangeService']=_0xd8ce25);}get[_0x26dd52(0x20d)](){const _0x4599a6=_0x26dd52;return this[_0x4599a6(0x139)][_0x4599a6(0xaa)]();}get[_0x26dd52(0x1a4)](){const _0x15288f=_0x26dd52;return this[_0x15288f(0x30e)]['getValue']();}[_0x26dd52(0x1e2)](){const _0x4001dd=_0x26dd52;super[_0x4001dd(0x1e2)](),this[_0x4001dd(0x139)][_0x4001dd(0x184)](new Map()),this[_0x4001dd(0x139)][_0x4001dd(0x2a3)](),this['_roomMembers$'][_0x4001dd(0x184)]([]),this[_0x4001dd(0x30e)]['complete']();}[_0x26dd52(0x240)](){const _0x3476ba=_0x26dd52;this[_0x3476ba(0x145)]||(this[_0x3476ba(0x145)]=!0x0,this['_session'][_0x3476ba(0x229)][_0x3476ba(0x291)](d[_0x3476ba(0x251)](this[_0x3476ba(0x322)]))['subscribe'](_0x2a8b90=>{const _0x514c5e=_0x3476ba;_0x2a8b90===u[_0x514c5e(0x228)][_0x514c5e(0x304)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x3476ba(0x1c0)][_0x3476ba(0x242)][_0x3476ba(0x291)](d['takeUntil'](this[_0x3476ba(0x322)]))[_0x3476ba(0x301)](_0x629788=>{const _0x26bf7a=_0x3476ba,_0x38b7a9=_0x629788[_0x26bf7a(0x16d)];_0x38b7a9===m[_0x26bf7a(0xc0)][_0x26bf7a(0x15e)]&&this[_0x26bf7a(0x18a)](_0x629788),_0x38b7a9===m[_0x26bf7a(0xc0)]['USERS_LEAVE']&&this[_0x26bf7a(0x2b1)](_0x629788);}),this[_0x3476ba(0x27a)](),this['disposeWithMe'](this['_commandService'][_0x3476ba(0x295)](_0x15d24f=>{const _0x3b86f9=_0x3476ba;if(this['_online']&&_0x15d24f['id']===g['SetSelectionsOperation']['id']&&_0x15d24f[_0x3b86f9(0x195)]['unitId']===this[_0x3b86f9(0x2d7)]){const _0xbb0b22=_0x15d24f[_0x3b86f9(0x195)];this['_updateLocalCursor'](_0xbb0b22['subUnitId'],_0xbb0b22['selections'][0x0]);}})));}['_onCursorUpdate'](_0x259d2f){const _0x25302c=_0x26dd52;var _0x19fb58,_0x5cc4a1;const {memberID:_0x4ff32a,selection:_0x24a1f3}=_0x259d2f['data'],{sheetName:_0x3e322b,range:_0x1c1586}=be[_0x25302c(0x2f3)](_0x24a1f3),_0x47daeb={'name':(_0x5cc4a1=(_0x19fb58=this[_0x25302c(0x1ae)][_0x25302c(0x1d3)](this[_0x25302c(0x2d7)],_0x4ff32a))==null?void 0x0:_0x19fb58[_0x25302c(0x289)])!=null?_0x5cc4a1:_0x25302c(0x31b),'range':this[_0x25302c(0x11c)](_0x3e322b,_0x1c1586),'sheetID':_0x3e322b,'color':this['_colorAssignService'][_0x25302c(0x1c4)](_0x4ff32a),'selection':_0x24a1f3},_0x3a3304=this['cursorInfo'];_0x3a3304['set'](_0x4ff32a,_0x47daeb),this[_0x25302c(0x139)]['next'](_0x3a3304);}[_0x26dd52(0x2b1)](_0x3cce90){const _0x3543b6=_0x26dd52,{memberID:_0xaf183c}=_0x3cce90[_0x3543b6(0x101)],_0x545f58=this['cursorInfo'];_0x545f58[_0x3543b6(0x12b)](_0xaf183c),this[_0x3543b6(0x139)]['next'](_0x545f58);}['_getMergeRange'](_0x57a442,_0x46ce49){const _0x75a855=_0x26dd52;var _0x478c01,_0x520f42;const _0x3c6e57=(_0x520f42=(_0x478c01=this[_0x75a855(0x2b5)][_0x75a855(0x2a5)](this[_0x75a855(0x2d7)]))==null?void 0x0:_0x478c01[_0x75a855(0xc5)](_0x57a442))==null?void 0x0:_0x520f42[_0x75a855(0x1a6)]();return(_0x3c6e57==null?void 0x0:_0x3c6e57[_0x75a855(0x27e)](_0x2c2191=>a[_0x75a855(0x1ec)]['contains'](_0x2c2191,_0x46ce49)))||_0x46ce49;}[_0x26dd52(0x27a)](){const _0x2a11dd=_0x26dd52,_0x3fe864=new a[(_0x2a11dd(0x1c7))](),_0x55a273=ot(),_0x1682f9=()=>{const _0x17dc9a=_0x2a11dd;_0x3fe864[_0x17dc9a(0x1e2)]();const _0x54e744=(_0x3e19f2,_0x344684,_0x59e7d5,_0x3ede81)=>{const _0x183be3=_0x17dc9a;let _0x4e9cb6=[];switch(_0x3e19f2['id']){case g[_0x183be3(0xcd)]['DeleteRangeMoveLeftCommandId']:{_0x4e9cb6=g[_0x183be3(0x245)](_0x3e19f2,_0x3ede81);break;}case g['EffectRefRangId'][_0x183be3(0x290)]:{_0x4e9cb6=g['handleDeleteRangeMoveUp'](_0x3e19f2,_0x3ede81);break;}case g[_0x183be3(0xcd)][_0x183be3(0x12e)]:{_0x4e9cb6=g['handleInsertCol'](_0x3e19f2,_0x3ede81);break;}case g[_0x183be3(0xcd)][_0x183be3(0x2e0)]:{_0x4e9cb6=g[_0x183be3(0x1e0)](_0x3e19f2,_0x3ede81);break;}case g[_0x183be3(0xcd)][_0x183be3(0x1f7)]:{_0x4e9cb6=g[_0x183be3(0x1f8)](_0x3e19f2,_0x3ede81);break;}case g['EffectRefRangId'][_0x183be3(0x298)]:{_0x4e9cb6=g[_0x183be3(0x2ca)](_0x3e19f2,_0x3ede81);break;}case g[_0x183be3(0xcd)]['MoveRangeCommandId']:{_0x4e9cb6=g[_0x183be3(0x300)](_0x3e19f2,_0x3ede81);break;}case g[_0x183be3(0xcd)][_0x183be3(0x169)]:{_0x4e9cb6=g[_0x183be3(0x141)](_0x3e19f2,_0x3ede81);break;}case g[_0x183be3(0xcd)][_0x183be3(0x256)]:{_0x4e9cb6=g[_0x183be3(0x2c6)](_0x3e19f2,_0x3ede81);break;}}const _0x37e224=g['runRefRangeMutations'](_0x4e9cb6,_0x3ede81),_0x1df342=this[_0x183be3(0x20d)][_0x183be3(0x21b)](_0x344684);if(_0x1df342&&_0x37e224){const _0x5e3dad={..._0x1df342,'range':_0x37e224};this[_0x183be3(0x20d)][_0x183be3(0xf9)](_0x344684,_0x5e3dad),_0x55a273(()=>{const _0x4b5fb6=_0x183be3,_0x51e46c=this[_0x4b5fb6(0x232)]['registerRefRange'](_0x37e224,_0x33b30c=>(_0x51e46c['dispose'](),_0x54e744(_0x33b30c,_0x344684,_0x59e7d5,_0x37e224)));_0x3fe864[_0x4b5fb6(0x217)](_0x51e46c);});}return{'redos':[],'undos':[]};};this[_0x17dc9a(0x20d)]['forEach']((_0x5b9e96,_0x584226)=>{const _0x2562af=_0x17dc9a,{range:_0x190823,sheetID:_0x5f4da0}=_0x5b9e96,_0x36bd4d=this[_0x2562af(0x232)][_0x2562af(0x113)](_0x190823,_0x47f409=>(_0x36bd4d[_0x2562af(0x1e2)](),_0x54e744(_0x47f409,_0x584226,_0x5f4da0,_0x190823)));_0x3fe864['add'](_0x36bd4d);});};this[_0x2a11dd(0x146)](a[_0x2a11dd(0xc9)](this[_0x2a11dd(0x139)]['subscribe'](()=>{_0x1682f9();})));}[_0x26dd52(0x2c7)](){const _0x3e19b6=_0x26dd52;var _0x5701b0,_0x3c1b31;if(this[_0x3e19b6(0x280)]=!0x0,((_0x5701b0=this['_univerInstanceService'][_0x3e19b6(0x111)]())==null?void 0x0:_0x5701b0[_0x3e19b6(0xee)]())!==this[_0x3e19b6(0x2d7)])return;const _0x3a424c=(_0x3c1b31=this[_0x3e19b6(0x14d)][_0x3e19b6(0x21b)](g['SheetsSelectionsService'])[_0x3e19b6(0x15b)]())==null?void 0x0:_0x3c1b31[0x0],_0x5c6c4b=this[_0x3e19b6(0x2b5)][_0x3e19b6(0x285)](a[_0x3e19b6(0x2ae)][_0x3e19b6(0x27d)])[_0x3e19b6(0xbe)]();_0x3a424c&&_0x5c6c4b&&this[_0x3e19b6(0x15c)](_0x5c6c4b[_0x3e19b6(0x1f5)](),_0x3a424c);}[_0x26dd52(0x231)](){const _0x26c4bf=_0x26dd52;this[_0x26c4bf(0x280)]=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0x26dd52(0x18b)])),A(0x3,a[_0x26dd52(0x2bf)](me)),A(0x4,a[_0x26dd52(0x2bf)](u['MemberService'])),A(0x5,a[_0x26dd52(0x121)]),A(0x6,a['ICommandService']),A(0x7,a[_0x26dd52(0x2bf)](g[_0x26dd52(0x1ff)]))],Se);var at=Object[_0x26dd52(0xf0)],ct=(_0x486992,_0x1c43e5,_0x59c22b,_0x4ff637)=>{for(var _0x2694a5=_0x4ff637>0x1?void 0x0:_0x4ff637?at(_0x1c43e5,_0x59c22b):_0x1c43e5,_0x1e671c=_0x486992['length']-0x1,_0x2b86ff;_0x1e671c>=0x0;_0x1e671c--)(_0x2b86ff=_0x486992[_0x1e671c])&&(_0x2694a5=_0x2b86ff(_0x2694a5)||_0x2694a5);return _0x2694a5;},ie=(_0x22c5d4,_0x179ac9)=>(_0x5c5320,_0x45719b)=>_0x179ac9(_0x5c5320,_0x45719b,_0x22c5d4);let x=class extends a[_0x26dd52(0x129)]{constructor(_0x4c571f,_0x4a8ab4,_0x185083){const _0x33703f=_0x26dd52;super(),h(this,_0x33703f(0x13e),new Map()),h(this,_0x33703f(0x1d7),new d[(_0x33703f(0xed))]()),(this[_0x33703f(0x2b5)]=_0x4c571f,this[_0x33703f(0x14d)]=_0x4a8ab4,this['_collabSessionService']=_0x185083,this[_0x33703f(0x145)]());}[_0x26dd52(0x1e2)](){const _0x1ab27a=_0x26dd52;super[_0x1ab27a(0x1e2)](),this[_0x1ab27a(0x1d7)][_0x1ab27a(0x2a3)](),this['_entities'][_0x1ab27a(0x214)](_0x5896c9=>_0x5896c9[_0x1ab27a(0x1e2)]());}[_0x26dd52(0xd4)](_0x59d173){const _0x253de1=_0x26dd52;return this[_0x253de1(0x13e)][_0x253de1(0x220)](_0x59d173)?this['_entities'][_0x253de1(0x21b)](_0x59d173)['cursorInfo$']:this['_entityInit$'][_0x253de1(0x291)](d[_0x253de1(0x1ac)](_0x400962=>_0x400962[_0x253de1(0x2d7)]===_0x59d173),d[_0x253de1(0x17c)](_0x3b9cf7=>_0x3b9cf7['cursorInfo$']));}['_init'](){const _0x1e177f=_0x26dd52;this[_0x1e177f(0x2b5)]['getTypeOfUnitAdded$'](a[_0x1e177f(0x2ae)][_0x1e177f(0x27d)])[_0x1e177f(0x291)](d[_0x1e177f(0x251)](this[_0x1e177f(0x322)]))['subscribe'](async _0x29fdda=>{const _0x33b2cc=_0x1e177f,_0x517bcb=_0x29fdda['getUnitId'](),_0x16b096=await this[_0x33b2cc(0x2b4)](_0x517bcb);this[_0x33b2cc(0x1d7)][_0x33b2cc(0x184)](_0x16b096),this[_0x33b2cc(0x13e)][_0x33b2cc(0xf9)](_0x517bcb,_0x16b096);}),this['_univerInstanceService'][_0x1e177f(0x236)](a['UniverInstanceType'][_0x1e177f(0x1de)])[_0x1e177f(0x291)](d[_0x1e177f(0x251)](this[_0x1e177f(0x322)]))['pipe'](d['filter'](_0x287433=>!_0x287433['getUnitId']()[_0x1e177f(0x133)]('__')))[_0x1e177f(0x301)](async _0x1b1fe5=>{const _0x39d548=_0x1e177f,_0x21d5b1=_0x1b1fe5['getUnitId'](),_0x581925=await this[_0x39d548(0x1d6)](_0x21d5b1);this['_entityInit$'][_0x39d548(0x184)](_0x581925),this[_0x39d548(0x13e)]['set'](_0x21d5b1,_0x581925);}),d[_0x1e177f(0x1cf)](this[_0x1e177f(0x2b5)][_0x1e177f(0xb7)](a['UniverInstanceType'][_0x1e177f(0x1de)]),this[_0x1e177f(0x2b5)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x1e177f(0x27d)]))[_0x1e177f(0x291)](d[_0x1e177f(0x251)](this[_0x1e177f(0x322)]))[_0x1e177f(0x301)](_0x3fe4b0=>{const _0x27328a=_0x1e177f,_0x52ae94=_0x3fe4b0['getUnitId'](),_0x222e96=this[_0x27328a(0x13e)][_0x27328a(0x21b)](_0x52ae94);_0x222e96&&(_0x222e96[_0x27328a(0x1e2)](),this[_0x27328a(0x13e)][_0x27328a(0x12b)](_0x52ae94));});}async[_0x26dd52(0x2b4)](_0x58d3d1){const _0x53ff90=_0x26dd52,_0x2269f6=await this['_collabSessionService'][_0x53ff90(0x185)](_0x58d3d1),_0x5cb7a7=this[_0x53ff90(0x14d)][_0x53ff90(0x1ed)](Se,_0x58d3d1,_0x2269f6);return _0x5cb7a7['init'](),_0x5cb7a7;}async[_0x26dd52(0x1d6)](_0x4a1f08){const _0x2931ba=_0x26dd52,_0x271e88=await this[_0x2931ba(0x320)][_0x2931ba(0x185)](_0x4a1f08),_0x26c0cb=this[_0x2931ba(0x14d)][_0x2931ba(0x1ed)](Ie,_0x4a1f08,_0x271e88);return _0x26c0cb['init'](),_0x26c0cb;}};x=ct([ie(0x0,a[_0x26dd52(0x121)]),ie(0x1,a[_0x26dd52(0x2bf)](a[_0x26dd52(0x18b)])),ie(0x2,a[_0x26dd52(0x2bf)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x1c3057,_0x26daf6){const _0x2d8f4b=_0x26dd52;let {radius:_0x1dd29c,width:_0x3c835d,height:_0x1a0c2b}=_0x26daf6;_0x1dd29c=_0x1dd29c!=null?_0x1dd29c:0x0,_0x3c835d=_0x3c835d!=null?_0x3c835d:0x1e,_0x1a0c2b=_0x1a0c2b!=null?_0x1a0c2b:0x1e;let _0x15ef10=0x0,_0x3000dd=0x0,_0x532d4c=0x0;_0x15ef10=_0x3000dd=_0x532d4c=Math[_0x2d8f4b(0x216)](_0x1dd29c,_0x3c835d/0x2,_0x1a0c2b/0x2),_0x1c3057[_0x2d8f4b(0x27b)](),_0x1c3057[_0x2d8f4b(0x116)](_0x15ef10,0x0),_0x1c3057[_0x2d8f4b(0x175)](_0x3c835d-_0x3000dd,0x0),_0x1c3057[_0x2d8f4b(0x258)](_0x3c835d-_0x3000dd,_0x3000dd,_0x3000dd,Math['PI']*0x3/0x2,0x0,!0x1),_0x1c3057[_0x2d8f4b(0x175)](_0x3c835d,_0x1a0c2b-_0x532d4c),_0x1c3057[_0x2d8f4b(0x258)](_0x3c835d-_0x532d4c,_0x1a0c2b-_0x532d4c,_0x532d4c,0x0,Math['PI']/0x2,!0x1),_0x1c3057[_0x2d8f4b(0x175)](0x0,_0x1a0c2b),_0x1c3057['lineTo'](0x0,_0x15ef10),_0x1c3057['arc'](_0x15ef10,_0x15ef10,_0x15ef10,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1c3057[_0x2d8f4b(0x2c8)](),_0x26daf6[_0x2d8f4b(0x189)]&&(_0x1c3057[_0x2d8f4b(0x1ef)](),_0x1c3057[_0x2d8f4b(0xf2)]=_0x26daf6[_0x2d8f4b(0x189)],_0x26daf6['fillRule']==='evenodd'?_0x1c3057[_0x2d8f4b(0x189)](_0x2d8f4b(0xb4)):_0x1c3057[_0x2d8f4b(0x189)](),_0x1c3057[_0x2d8f4b(0x316)]());}class ee extends p[_0x26dd52(0x16f)]{constructor(_0x55fef1,_0x2f58a3){const _0x338158=_0x26dd52;super(_0x55fef1,_0x2f58a3),h(this,'color'),h(this,_0x338158(0x14f)),(this[_0x338158(0xe2)]=_0x2f58a3==null?void 0x0:_0x2f58a3[_0x338158(0xe2)],this[_0x338158(0x14f)]=_0x2f58a3==null?void 0x0:_0x2f58a3[_0x338158(0x14f)]);}static[_0x26dd52(0xe9)](_0x705348,_0x2b3e5c){const _0x361c70=_0x26dd52,{text:_0x1a6565,color:_0x6b1c08}=_0x2b3e5c;_0x705348[_0x361c70(0x1ef)](),_0x705348[_0x361c70(0x2ec)]=_0x361c70(0x148);const _0x4f6658=_0x705348[_0x361c70(0x255)](_0x1a6565)[_0x361c70(0x2ea)],_0x564877=Math['min'](_0x4f6658+0x2*ne,Re);_t(_0x705348,{'height':K,'radius':0x4,'width':_0x564877,'fill':_0x6b1c08}),_0x705348[_0x361c70(0xf2)]=_0x361c70(0x1c1);const _0x363eb6=ne,_0x359586=K-lt,_0x4b69bc=Re-0x2*ne;if(_0x4f6658>_0x4b69bc){let _0x5e9911='',_0x5c625a=0x0;for(const _0x48f1bb of _0x1a6565){const _0x494d29=_0x705348['measureText'](_0x48f1bb)['width'];if(_0x5c625a+_0x494d29<=_0x4b69bc-_0x705348[_0x361c70(0x255)]('...')[_0x361c70(0x2ea)])_0x5e9911+=_0x48f1bb,_0x5c625a+=_0x494d29;else{_0x5e9911+=_0x361c70(0x2a6);break;}}_0x705348[_0x361c70(0x123)](_0x5e9911,_0x363eb6,_0x359586);}else _0x705348['fillText'](_0x1a6565,_0x363eb6,_0x359586);_0x705348[_0x361c70(0x316)]();}[_0x26dd52(0x28a)](_0x1e0abd){ee['drawWith'](_0x1e0abd,this);}}const re=_0x26dd52(0x1f1),ht=_0x26dd52(0x207),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x26dd52(0x28e);class De{constructor(_0x1eadd2,_0x2a8afd,_0x24f5d8,_0x8d9f09){const _0x506bc7=_0x26dd52;h(this,_0x506bc7(0x105),[]),h(this,_0x506bc7(0x266),null),h(this,_0x506bc7(0x165),null),h(this,_0x506bc7(0xc1),null),h(this,'_hideTimer',null),h(this,_0x506bc7(0x328),null),(this[_0x506bc7(0xab)]=_0x1eadd2,this[_0x506bc7(0xb5)]=_0x2a8afd,this['_docSkeleton']=_0x24f5d8,this[_0x506bc7(0x14c)]=_0x8d9f09,this[_0x506bc7(0x1f9)]());}set[_0x26dd52(0x186)](_0x489bc8){const _0x86da56=_0x26dd52;_0x489bc8?(this[_0x86da56(0xc1)]&&this[_0x86da56(0xc1)][_0x86da56(0xb1)](),this[_0x86da56(0x165)]&&this[_0x86da56(0x165)][_0x86da56(0xca)]()):(this[_0x86da56(0xc1)]&&this[_0x86da56(0xc1)][_0x86da56(0xca)](),this[_0x86da56(0x165)]&&this['_textBubble'][_0x86da56(0xb1)]());}['dispose'](){const _0x13f608=_0x26dd52;for(const _0x1a4b28 of this[_0x13f608(0x105)])_0x1a4b28[_0x13f608(0x1e2)]();this[_0x13f608(0x165)]&&this[_0x13f608(0x165)][_0x13f608(0x1e2)](),this[_0x13f608(0xc1)]&&this[_0x13f608(0xc1)][_0x13f608(0x1e2)](),this[_0x13f608(0x266)]&&this[_0x13f608(0x266)][_0x13f608(0x1e2)](),this[_0x13f608(0x328)]&&this[_0x13f608(0x328)]();}[_0x26dd52(0x1f9)](){const _0x315e26=_0x26dd52;var _0x1ff7b4;const {_docSkeleton:_0x1d19e5,_document:_0x463475}=this,{color:_0x52f0af,name:_0x537f69,ranges:_0x13fadc}=this[_0x315e26(0xab)],_0x37be19=_0x463475['getOffsetConfig'](),{docsLeft:_0x519608,docsTop:_0x2d1c27}=_0x37be19,_0x31f258=new E[(_0x315e26(0x287))](_0x37be19,_0x1d19e5);for(const {startOffset:_0x5c14cc,endOffset:_0x22f342,rangeType:_0x2ac6ec,segmentId:_0x43235c,segmentPage:_0x241243,collapsed:_0x5b6407,isActive:_0x12efd4}of _0x13fadc){const _0x2d0122=_0x1d19e5[_0x315e26(0xb9)](_0x5c14cc,!0x0,_0x43235c,_0x241243);let _0x5a8375=_0x1d19e5['findNodePositionByCharIndex'](_0x22f342,!0x0,_0x43235c,_0x241243);if(_0x5a8375==null&&(_0x5a8375=_0x1d19e5[_0x315e26(0xb9)](_0x22f342-0x1,!0x1,_0x43235c,_0x241243)),_0x12efd4){const {contentBoxPointGroup:_0x5d0459}=_0x31f258[_0x315e26(0x23c)](_0x5a8375,_0x5a8375);if(_0x5d0459['length']===0x0)continue;this[_0x315e26(0x233)](_0x52f0af,_0x5d0459,_0x519608,_0x2d1c27,_0x537f69),this[_0x315e26(0x328)]=this['_handleHover']();}if(_0x2d0122&&_0x5a8375){if(_0x2ac6ec===a[_0x315e26(0x29d)][_0x315e26(0x2e3)]){const _0x173e70=new E[(_0x315e26(0x22b))](_0x37be19,_0x1d19e5),{pointGroup:_0x71c5dc}=(_0x1ff7b4=_0x173e70[_0x315e26(0x23c)](_0x2d0122,_0x5a8375))!=null?_0x1ff7b4:{};if(_0x71c5dc==null||_0x71c5dc[_0x315e26(0x1d5)]===0x0)continue;this[_0x315e26(0x2a4)](_0x52f0af,_0x71c5dc,_0x519608,_0x2d1c27);}else{if(!_0x5b6407){const {borderBoxPointGroup:_0x2e5066}=_0x31f258[_0x315e26(0x23c)](_0x2d0122,_0x5a8375);if(_0x2e5066[_0x315e26(0x1d5)]===0x0)continue;this[_0x315e26(0x13f)](_0x52f0af,_0x2e5066,_0x519608,_0x2d1c27);}}}}}['_drawAnchor'](_0x4b1726,_0x49bf13,_0x559490,_0x2d6bba,_0x2e8677){const _0x7ea761=_0x26dd52,_0x360573=this[_0x7ea761(0x30d)](_0x49bf13),{left:_0x5148e7,top:_0x117b7d,height:_0x3c567e}=_0x360573,_0x2057e6=this[_0x7ea761(0x131)](),_0x3d7c2d=It/_0x2057e6,_0x3d2b29=new p['Rect'](re+a['Tools']['generateRandomId'](k),{'left':_0x5148e7+_0x559490-_0x3d7c2d,'top':_0x117b7d+_0x2d6bba,'height':_0x3c567e,'width':dt,'fill':_0x4b1726||p[_0x7ea761(0x18f)](a[_0x7ea761(0x183)][_0x7ea761(0x19f)],0x0),'strokeWidth':_0x3d7c2d,'stroke':St,'evented':!0x0});this[_0x7ea761(0x266)]=_0x3d2b29,this[_0x7ea761(0xb5)][_0x7ea761(0x20a)](_0x3d2b29,E['TEXT_RANGE_LAYER_INDEX']);const _0x5096e6=new p[(_0x7ea761(0x219))](re+a['Tools'][_0x7ea761(0x2af)](k),{'left':_0x5148e7+_0x559490-_0x3d7c2d,'top':_0x117b7d+_0x2d6bba-oe/0x2,'height':oe,'width':oe,'fill':_0x4b1726||p[_0x7ea761(0x18f)](a[_0x7ea761(0x183)][_0x7ea761(0x19f)],0x0),'strokeWidth':0x0,'stroke':_0x4b1726||p[_0x7ea761(0x18f)](a[_0x7ea761(0x183)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x5096e6,this['_scene'][_0x7ea761(0x20a)](_0x5096e6,E[_0x7ea761(0xeb)]);const _0x2bfbff=new ee(re+a[_0x7ea761(0x2c4)][_0x7ea761(0x2af)](k),{'left':_0x5148e7+_0x559490-_0x3d7c2d,'top':_0x117b7d+_0x2d6bba-K,'text':_0x2e8677,'color':_0x4b1726});this['_textBubble']=_0x2bfbff,this[_0x7ea761(0xb5)]['addObject'](_0x2bfbff,E[_0x7ea761(0xeb)]),this[_0x7ea761(0x186)]=!0x1;}['_handleHover'](){const _0x24bb7a=_0x26dd52,_0x4beb26=this[_0x24bb7a(0x266)]['onPointerEnter$'][_0x24bb7a(0x1fa)](()=>{const _0x3dbd2d=_0x24bb7a;this[_0x3dbd2d(0x186)]=!0x0;}),_0x3f11c5=this[_0x24bb7a(0x266)]['onPointerLeave$'][_0x24bb7a(0x1fa)](()=>{const _0x1ba788=_0x24bb7a;this[_0x1ba788(0x11f)]&&clearTimeout(this[_0x1ba788(0x11f)]),this[_0x1ba788(0x11f)]=setTimeout(()=>{const _0x1c3e55=_0x1ba788;this[_0x1c3e55(0x186)]=!0x1;},0x7d0);});return()=>{const _0x46f4b8=_0x24bb7a;_0x4beb26[_0x46f4b8(0x20f)](),_0x3f11c5['unsubscribe']();};}[_0x26dd52(0x13f)](_0x1ca9d1,_0xd7a65f,_0x143ce2,_0x338160){const _0x33a20b=_0x26dd52,_0x465ade=new a[(_0x33a20b(0x1df))](_0x1ca9d1)['setAlpha'](0.2)[_0x33a20b(0x23e)](),_0xd748d5=new p[(_0x33a20b(0x1dc))](ht+a[_0x33a20b(0x2c4)][_0x33a20b(0x2af)](k),{'pointsGroup':_0xd7a65f,'fill':_0x465ade||p[_0x33a20b(0x18f)](a['COLORS']['black'],0.2),'left':_0x143ce2,'top':_0x338160,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x33a20b(0x105)][_0x33a20b(0x213)](_0xd748d5),this[_0x33a20b(0xb5)]['addObject'](_0xd748d5,E[_0x33a20b(0xeb)]);}['_drawRectRange'](_0x22adc7,_0x2db6b5,_0x397ec9,_0x578a32){const _0x25a307=_0x26dd52,_0x458d5d=new a['ColorKit'](_0x22adc7)['setAlpha'](0.2)[_0x25a307(0x23e)](),_0x246f5c=new p[(_0x25a307(0x1dc))](ut+a[_0x25a307(0x2c4)][_0x25a307(0x2af)](k),{'pointsGroup':_0x2db6b5,'fill':_0x458d5d||p[_0x25a307(0x18f)](a[_0x25a307(0x183)][_0x25a307(0x19f)],0.2),'left':_0x397ec9,'top':_0x578a32,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x25a307(0x213)](_0x246f5c),this[_0x25a307(0xb5)]['addObject'](_0x246f5c,E[_0x25a307(0xeb)]);}['_getAnchorBounding'](_0x368a55){const _0x19c714=_0x368a55[0x0],_0x18c1a0=_0x19c714[0x0],_0x5e2881=_0x19c714[0x2],{x:_0x3a1185,y:_0xfc6fa0}=_0x18c1a0,{x:_0x21c1f3,y:_0x24c5cb}=_0x5e2881;return{'left':_0x3a1185,'top':_0xfc6fa0,'width':_0x21c1f3-_0x3a1185,'height':_0x24c5cb-_0xfc6fa0};}[_0x26dd52(0x131)](){const _0x356158=_0x26dd52,{scaleX:_0x5fd149,scaleY:_0x37ab69}=this[_0x356158(0xb5)][_0x356158(0x28d)]();return Math[_0x356158(0x25e)](_0x5fd149,_0x37ab69);}}var ft=Object[_0x26dd52(0xf0)],vt=(_0x2cd624,_0x1c7659,_0x48629a,_0x54e62d)=>{const _0x5a9216=_0x26dd52;for(var _0x19572d=_0x54e62d>0x1?void 0x0:_0x54e62d?ft(_0x1c7659,_0x48629a):_0x1c7659,_0xdf91c5=_0x2cd624[_0x5a9216(0x1d5)]-0x1,_0x1d03cc;_0xdf91c5>=0x0;_0xdf91c5--)(_0x1d03cc=_0x2cd624[_0xdf91c5])&&(_0x19572d=_0x1d03cc(_0x19572d)||_0x19572d);return _0x19572d;},W=(_0x2b2c1e,_0x2ca4ed)=>(_0x31ad5b,_0x625dbe)=>_0x2ca4ed(_0x31ad5b,_0x625dbe,_0x2b2c1e);let fe=class extends a[_0x26dd52(0x129)]{constructor(_0x3652d2,_0x1cfeca,_0x1d60ef,_0x332868,_0x310ab3){const _0x52e51c=_0x26dd52;super(),h(this,_0x52e51c(0x151),[]),h(this,_0x52e51c(0x2fc),[]),(this[_0x52e51c(0x2c5)]=_0x3652d2,this['_docSkeletonManagerService']=_0x1cfeca,this[_0x52e51c(0x260)]=_0x1d60ef,this[_0x52e51c(0x1e7)]=_0x332868,this[_0x52e51c(0x2cc)]=_0x310ab3,this[_0x52e51c(0x145)]());}[_0x26dd52(0x145)](){const _0x1a2589=_0x26dd52,_0x1406d9=this[_0x1a2589(0x2c5)][_0x1a2589(0x12f)],_0x3c3c79=this['_docSkeletonManagerService'];this[_0x1a2589(0x146)](d[_0x1a2589(0x2ac)]([this[_0x1a2589(0x260)][_0x1a2589(0xd4)](_0x1406d9),this[_0x1a2589(0x2cc)]['currentTheme$']])[_0x1a2589(0x291)]($['map'](([_0x2a04,_0x3b569])=>({'skeleton':_0x3c3c79[_0x1a2589(0x2a2)](),'cursors':[..._0x2a04[_0x1a2589(0x25b)]()]['flatMap'](_0x5d6eb3=>({..._0x5d6eb3,'color':this['_themeService'][_0x1a2589(0x180)](_0x5d6eb3[_0x1a2589(0xe2)])}))})))[_0x1a2589(0x301)](_0x2f1bd5=>{const _0x236b39=_0x1a2589;if(this[_0x236b39(0x115)](),_0x2f1bd5){const {skeleton:_0x3ed468,cursors:_0x4eb8b2}=_0x2f1bd5;this[_0x236b39(0x201)](_0x3ed468,_0x4eb8b2);}})),this[_0x1a2589(0x1a5)](),this[_0x1a2589(0x2e4)]();}['_updateCollabCursors'](_0x477250,_0x43b35b){const _0x4dc4a4=_0x26dd52,{scene:_0xbdb2d1,mainComponent:_0x2fa4ff}=this[_0x4dc4a4(0x2c5)],_0x1473bf=_0x43b35b['map'](_0x1309a6=>new De(_0x1309a6,_0xbdb2d1,_0x477250,_0x2fa4ff));this[_0x4dc4a4(0x151)]=_0x1473bf,this['_cursors']=_0x43b35b;}[_0x26dd52(0x13b)](){const _0x2a2719=_0x26dd52;this[_0x2a2719(0x115)]();const {scene:_0x45b795,mainComponent:_0x5c3281}=this['_context'],_0x1bf441=this[_0x2a2719(0x132)]['getSkeleton'](),_0x38a2a8=this[_0x2a2719(0x2fc)]['map'](_0x4d1583=>new De(_0x4d1583,_0x45b795,_0x1bf441,_0x5c3281));this[_0x2a2719(0x151)]=_0x38a2a8;}[_0x26dd52(0x115)](){const _0x1f659e=_0x26dd52;this[_0x1f659e(0x151)][_0x1f659e(0x214)](_0x4e97ce=>_0x4e97ce['dispose']()),this[_0x1f659e(0x151)]=[];}[_0x26dd52(0x2e4)](){const _0x3e3501=_0x26dd52,_0x58a0d6=[E[_0x3e3501(0x1d9)]['id']];this['disposeWithMe'](this[_0x3e3501(0x1e7)][_0x3e3501(0x295)](_0x24e269=>{const _0x499736=_0x3e3501;_0x58a0d6[_0x499736(0x142)](_0x24e269['id'])&&_0x24e269[_0x499736(0x195)][_0x499736(0x12f)]===this['_context']['unitId']&&this[_0x499736(0x13b)]();}));}[_0x26dd52(0x1a5)](){const _0x2fdf0c=_0x26dd52;this[_0x2fdf0c(0x146)](a[_0x2fdf0c(0x2b9)](this[_0x2fdf0c(0x2c5)][_0x2fdf0c(0x2dd)][_0x2fdf0c(0x210)])[_0x2fdf0c(0x291)]($['filter'](_0x15f4bc=>_0x15f4bc[_0x2fdf0c(0xdc)]===p[_0x2fdf0c(0x190)][_0x2fdf0c(0xe8)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};fe=vt([W(0x1,a[_0x26dd52(0x2bf)](Y['DocSkeletonManagerService'])),W(0x2,a['Inject'](x)),W(0x3,a[_0x26dd52(0x2f9)]),W(0x4,a[_0x26dd52(0x2bf)](a[_0x26dd52(0x317)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0x26dd52(0x16f)]{constructor(_0x322e0d,_0xf14473){const _0x30f8e3=_0x26dd52;super(_0x322e0d,_0xf14473),h(this,'_color'),h(this,_0x30f8e3(0x1ce),!0x1),h(this,_0x30f8e3(0x1eb)),h(this,_0x30f8e3(0x12a),''),h(this,_0x30f8e3(0x1ea),'top'),h(this,'_backgroundColor'),(_0xf14473&&this[_0x30f8e3(0x138)](_0xf14473),this[_0x30f8e3(0x153)]['subscribeEvent'](()=>this[_0x30f8e3(0x138)]({'hovered':!0x0})),this[_0x30f8e3(0x17b)][_0x30f8e3(0x1fa)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x26dd52(0x138)](_0x383f9b){const _0x4e0b03=_0x26dd52;var _0x2187a1,_0xfd0374,_0x5bc9d2,_0x5de6e4,_0x5ac10c,_0x315c73;this['_color']=(_0x2187a1=_0x383f9b[_0x4e0b03(0xe2)])!=null?_0x2187a1:this['_color'],this['_hovered']=(_0xfd0374=_0x383f9b[_0x4e0b03(0x1e3)])!=null?_0xfd0374:this['_hovered'],this[_0x4e0b03(0x1eb)]=(_0x5bc9d2=_0x383f9b[_0x4e0b03(0x252)])!=null?_0x5bc9d2:this[_0x4e0b03(0x1eb)],this[_0x4e0b03(0x12a)]=(_0x5de6e4=_0x383f9b['name'])!=null?_0x5de6e4:this['_name'],this[_0x4e0b03(0x1ea)]=(_0x5ac10c=_0x383f9b[_0x4e0b03(0x239)])!=null?_0x5ac10c:this[_0x4e0b03(0x1ea)],this['_backgroundColor']=(_0x315c73=_0x383f9b['backgroundColor'])!=null?_0x315c73:this[_0x4e0b03(0x31e)],this['transformByState']({'width':_0x383f9b[_0x4e0b03(0x2ea)],'height':_0x383f9b[_0x4e0b03(0x109)]});}[_0x26dd52(0x1a8)](_0x3b4def){const _0x3a9e3a=_0x26dd52,{row:_0x22d74f,column:_0x248d9c}=_0x3b4def;if(_0x22d74f>=this[_0x3a9e3a(0x1eb)][_0x3a9e3a(0x21f)]&&_0x22d74f<=this[_0x3a9e3a(0x1eb)]['endRow']&&_0x248d9c>=this[_0x3a9e3a(0x1eb)][_0x3a9e3a(0x22f)]&&_0x248d9c<=this[_0x3a9e3a(0x1eb)][_0x3a9e3a(0x157)]){this[_0x3a9e3a(0x138)]({'hovered':!0x0});return;}this[_0x3a9e3a(0x138)]({'hovered':!0x1});}[_0x26dd52(0xbb)](_0x27f25c){return!0x1;}[_0x26dd52(0x28a)](_0xa58673){const _0x249cf6=_0x26dd52;p[_0x249cf6(0x219)]['drawWith'](_0xa58673,{'width':this[_0x249cf6(0x2ea)],'height':this['height'],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x249cf6(0x31e)]}),this[_0x249cf6(0x1ce)]&&(_0xa58673[_0x249cf6(0x1ef)](),_0xa58673[_0x249cf6(0xf5)](0x1,0x0,0x0,0x1,this[_0x249cf6(0x2ea)],this[_0x249cf6(0x1ea)]==='bottom'?0x0:-0x14),ee[_0x249cf6(0xe9)](_0xa58673,{'text':this[_0x249cf6(0x12a)],'color':this[_0x249cf6(0x1e5)]}),_0xa58673[_0x249cf6(0x316)]());}}var Ct=Object[_0x26dd52(0xf0)],pt=(_0x2f0600,_0x50a7e5,_0x272e1e,_0x49a001)=>{const _0x58c4bd=_0x26dd52;for(var _0x995543=_0x49a001>0x1?void 0x0:_0x49a001?Ct(_0x50a7e5,_0x272e1e):_0x50a7e5,_0x2fb321=_0x2f0600[_0x58c4bd(0x1d5)]-0x1,_0x267b55;_0x2fb321>=0x0;_0x2fb321--)(_0x267b55=_0x2f0600[_0x2fb321])&&(_0x995543=_0x267b55(_0x995543)||_0x995543);return _0x995543;},ae=(_0x27cc12,_0x375279)=>(_0x15c7a0,_0x4a8e76)=>_0x375279(_0x15c7a0,_0x4a8e76,_0x27cc12);const Et=0x1389;let ve=class extends a[_0x26dd52(0x129)]{constructor(_0x491559,_0x34f9b8,_0x474de9,_0x2dae25){const _0x1bc665=_0x26dd52;super(),h(this,'_cursors',new Set()),h(this,_0x1bc665(0x2f7),null),(this['_context']=_0x491559,this[_0x1bc665(0x29b)]=_0x34f9b8,this['_collabCursorController']=_0x474de9,this['_themeService']=_0x2dae25,this[_0x1bc665(0x145)]());}[_0x26dd52(0x145)](){const _0x1047da=_0x26dd52;this[_0x1047da(0x29b)][_0x1047da(0x1f3)]['pipe']($['takeUntil'](this['dispose$']),$[_0x1047da(0x17c)](_0x181bcc=>{const _0x2216ab=_0x1047da;if(_0x181bcc){const _0x35707e=_0x181bcc[_0x2216ab(0x197)];return d[_0x2216ab(0x2ac)](this[_0x2216ab(0x260)][_0x2216ab(0xd4)](this['_context']['unitId']),this['_themeService'][_0x2216ab(0x31c)])[_0x2216ab(0x291)]($[_0x2216ab(0x31f)](([_0x37ba6a,_0x47ec5e])=>{const _0x299a8a=_0x2216ab,_0x400ae9=new Map();return _0x37ba6a[_0x299a8a(0x214)]((_0x434f15,_0x4f310d)=>{const _0x410cbe=_0x299a8a;if(_0x434f15['sheetID']===_0x35707e){const _0x355cd1={..._0x434f15};_0x355cd1[_0x410cbe(0xe2)]=this[_0x410cbe(0x2cc)]['getColorFromTheme'](_0x434f15[_0x410cbe(0xe2)]),_0x400ae9[_0x410cbe(0xf9)](_0x4f310d,_0x355cd1);}}),{'skeleton':_0x181bcc,'cursors':_0x400ae9};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x1047da(0x301)](({skeleton:_0xefa540,cursors:_0x271377})=>{const _0x28d57c=_0x1047da;this[_0x28d57c(0x115)](),_0xefa540&&this[_0x28d57c(0x201)](_0xefa540,_0x271377);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x1047da(0x301)](_0x5cd2ee=>{const _0x53e071=_0x1047da;if(_0x5cd2ee==null)return;const {skeleton:_0x3220a5}=_0x5cd2ee,{scene:_0x1f7f62}=this[_0x53e071(0x2c5)];_0x1f7f62[_0x53e071(0x13c)]['subscribeEvent'](a['debounce'](_0x2649b1=>{const _0x2f264d=_0x53e071;var _0x3bd661,_0x1ae6af;const {offsetX:_0x4cb72c,offsetY:_0x1bcf30}=_0x2649b1,{x:_0x358d25,y:_0x53a46b}=_0x1f7f62[_0x2f264d(0x1f0)](p['Vector2'][_0x2f264d(0x2f4)]([_0x4cb72c,_0x1bcf30])),{scaleX:_0x568e24,scaleY:_0x11f3da}=_0x1f7f62[_0x2f264d(0x28d)](),_0x2249f3=_0x1f7f62[_0x2f264d(0x2de)](p[_0x2f264d(0x108)][_0x2f264d(0x20b)]),_0x55cfaa=_0x1f7f62[_0x2f264d(0x327)](p['Vector2']['FromArray']([_0x358d25,_0x53a46b]),_0x2249f3),_0xe0c652=_0x3220a5[_0x2f264d(0x1b9)](_0x4cb72c,_0x1bcf30,_0x568e24,_0x11f3da,_0x55cfaa);((_0x3bd661=this['_lastPointer'])==null?void 0x0:_0x3bd661[_0x2f264d(0xef)])===_0xe0c652['column']&&((_0x1ae6af=this[_0x2f264d(0x2f7)])==null?void 0x0:_0x1ae6af[_0x2f264d(0xb0)])===_0xe0c652['row']||this[_0x2f264d(0x2fc)][_0x2f264d(0x214)](_0x4d6e9d=>{const _0x4a8575=_0x2f264d;_0x4d6e9d[_0x4a8575(0x1a8)](_0xe0c652);});},0x64));});}['_updateCollabCursors'](_0x23a35b,_0x2f8409){const _0x18faa0=_0x26dd52;var _0x574825;const _0x1c501f=(_0x574825=this[_0x18faa0(0x29b)][_0x18faa0(0x191)]())==null?void 0x0:_0x574825[_0x18faa0(0x10a)];if(!_0x1c501f)return;const _0x3f7df0=this[_0x18faa0(0x2a1)]();if(!_0x3f7df0)return;this[_0x18faa0(0x2fc)][_0x18faa0(0x214)](_0x3accf4=>{const _0x50f759=_0x18faa0;_0x3accf4[_0x50f759(0x140)]();});const {scene:_0xaac108}=_0x3f7df0,_0x2a88ee=bt(Array[_0x18faa0(0x11e)](_0x2f8409[_0x18faa0(0x25b)]()))[_0x18faa0(0x31f)](_0x2c8e09=>{const _0x3b0557=_0x18faa0,{color:_0x4f60bd,range:_0x578cb1,name:_0x4d9dfc,selection:_0x47b9c0,sheetID:_0x9bebb8}=_0x2c8e09,{startColumn:_0x515136,startRow:_0x9937f8,endColumn:_0x64396e,endRow:_0x31a562}=_0x578cb1,_0x2c753b=X[_0x3b0557(0xf8)](_0x9937f8,_0x515136,_0xaac108,_0x1c501f),_0x8f80f=X[_0x3b0557(0xf8)](_0x31a562,_0x64396e,_0xaac108,_0x1c501f),{columnHeaderHeightAndMarginTop:_0x34b744}=_0x1c501f,{startX:_0x2d414d,startY:_0x4d70ba}=_0x2c753b,{endX:_0x37f5ae,endY:_0xbf722}=_0x8f80f,_0x3d6a85=_0x37f5ae-_0x2d414d,_0x2ef9cb=_0xbf722-_0x4d70ba,_0x104a79={'labelPosition':_0x4d70ba-_0x34b744>=K?_0x3b0557(0x182):_0x3b0557(0x2b3),'sheetID':_0x9bebb8,'range':_0x578cb1,'color':_0x4f60bd,'name':_0x4d9dfc,'selection':_0x47b9c0,'left':_0x2d414d,'top':_0x4d70ba,'width':_0x3d6a85,'height':_0x2ef9cb,'evented':!0x1,'zIndex':Et};return new we(_0x4d9dfc,_0x104a79);});_0xaac108['addObjects'](_0x2a88ee,gt),this['_cursors']=new Set(_0x2a88ee);}['_removeCollabCursors'](){const _0x13e69d=_0x26dd52;var _0x42db5c;(_0x42db5c=this['_cursors'])==null||_0x42db5c[_0x13e69d(0x214)](_0x5b6d9f=>_0x5b6d9f[_0x13e69d(0x1e2)]());}[_0x26dd52(0x2a1)](){return X['getSheetObject'](this['_context']['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x26dd52(0x2bf)](X[_0x26dd52(0x2a7)])),ae(0x2,a[_0x26dd52(0x2bf)](x)),ae(0x3,a[_0x26dd52(0x2bf)](a[_0x26dd52(0x317)]))],ve);function bt(_0x5af1a6){const _0x25140c=_0x26dd52,_0x566b6c=new Map();return _0x5af1a6[_0x25140c(0x214)](_0x4356fc=>{const _0x4f0a4a=_0x25140c;if(_0x566b6c[_0x4f0a4a(0x220)](_0x4356fc[_0x4f0a4a(0x2b0)])){const _0x5d0e93=_0x566b6c[_0x4f0a4a(0x21b)](_0x4356fc[_0x4f0a4a(0x2b0)]);_0x5d0e93[_0x4f0a4a(0x289)]+=',\x20'+_0x4356fc[_0x4f0a4a(0x289)];}else _0x566b6c['set'](_0x4356fc[_0x4f0a4a(0x2b0)],_0x4356fc);}),Array[_0x25140c(0x11e)](_0x566b6c['values']());}var b=function(){const _0x1624db=_0x26dd52;return b=Object[_0x1624db(0x23f)]||function(_0x397713){const _0x3cf552=_0x1624db;for(var _0x314d22,_0x363b5f=0x1,_0xa10298=arguments[_0x3cf552(0x1d5)];_0x363b5f<_0xa10298;_0x363b5f++){_0x314d22=arguments[_0x363b5f];for(var _0x35491c in _0x314d22)Object[_0x3cf552(0x2ce)][_0x3cf552(0x1f2)][_0x3cf552(0xce)](_0x314d22,_0x35491c)&&(_0x397713[_0x35491c]=_0x314d22[_0x35491c]);}return _0x397713;},b[_0x1624db(0x209)](this,arguments);},Ot=function(_0x17a67f,_0x26bb63){const _0x3afd2c=_0x26dd52;var _0x2ce959={};for(var _0x2aa829 in _0x17a67f)Object['prototype'][_0x3afd2c(0x1f2)][_0x3afd2c(0xce)](_0x17a67f,_0x2aa829)&&_0x26bb63[_0x3afd2c(0x198)](_0x2aa829)<0x0&&(_0x2ce959[_0x2aa829]=_0x17a67f[_0x2aa829]);if(_0x17a67f!=null&&typeof Object[_0x3afd2c(0x25d)]=='function'){for(var _0x479fcc=0x0,_0x2aa829=Object[_0x3afd2c(0x25d)](_0x17a67f);_0x479fcc<_0x2aa829[_0x3afd2c(0x1d5)];_0x479fcc++)_0x26bb63[_0x3afd2c(0x198)](_0x2aa829[_0x479fcc])<0x0&&Object[_0x3afd2c(0x2ce)][_0x3afd2c(0x269)][_0x3afd2c(0xce)](_0x17a67f,_0x2aa829[_0x479fcc])&&(_0x2ce959[_0x2aa829[_0x479fcc]]=_0x17a67f[_0x2aa829[_0x479fcc]]);}return _0x2ce959;},pe=M['forwardRef'](function(_0x141518,_0x3dd9ff){const _0xb5a031=_0x26dd52;var _0x7f3807=_0x141518[_0xb5a031(0x154)],_0x558c1e=_0x141518['id'],_0x93ba5e=_0x141518[_0xb5a031(0x249)],_0x1feea8=_0x141518['extend'],_0x2d1f6a=Ot(_0x141518,[_0xb5a031(0x154),'id',_0xb5a031(0x249),_0xb5a031(0x24d)]),_0x1abcf5=_0xb5a031(0x2f0)['concat'](_0x558c1e,'\x20')['concat'](_0x93ba5e||'')[_0xb5a031(0x10e)](),_0x9facb6=M[_0xb5a031(0x2a0)]('_'[_0xb5a031(0x2e9)](Dt()));return Ae(_0x7f3807,''[_0xb5a031(0x2e9)](_0x558c1e),{'defIds':_0x7f3807[_0xb5a031(0x23b)],'idSuffix':_0x9facb6['current']},b({'ref':_0x3dd9ff,'className':_0x1abcf5},_0x2d1f6a),_0x1feea8);});function Ae(_0x5a87d7,_0x5106d8,_0x1e332d,_0x4b2b43,_0x2a48f1){const _0x4359c1=_0x26dd52;return M['createElement'](_0x5a87d7['tag'],b(b({'key':_0x5106d8},Tt(_0x5a87d7,_0x1e332d,_0x2a48f1)),_0x4b2b43),(Rt(_0x5a87d7,_0x1e332d)['children']||[])[_0x4359c1(0x31f)](function(_0x407590,_0x248397){const _0x50b6bb=_0x4359c1;return Ae(_0x407590,''[_0x50b6bb(0x2e9)](_0x5106d8,'-')[_0x50b6bb(0x2e9)](_0x5a87d7[_0x50b6bb(0x2fa)],'-')[_0x50b6bb(0x2e9)](_0x248397),_0x1e332d,void 0x0,_0x2a48f1);}));}function Tt(_0x4a5a63,_0x4838da,_0x40bff8){const _0x107cfb=_0x26dd52;var _0x584696=b({},_0x4a5a63[_0x107cfb(0x329)]);_0x40bff8!=null&&_0x40bff8['colorChannel1']&&_0x584696[_0x107cfb(0x189)]===_0x107cfb(0x2ba)&&(_0x584696['fill']=_0x40bff8[_0x107cfb(0x2ba)]),_0x4a5a63[_0x107cfb(0x2fa)]===_0x107cfb(0x2d3)&&_0x584696['id']&&(_0x584696['id']=_0x584696['id']+_0x4838da[_0x107cfb(0x200)]),Object[_0x107cfb(0x176)](_0x584696)['forEach'](function(_0x10d418){const _0x1b9c7e=_0x107cfb;var _0x4548a4=_0x10d418[0x0],_0x9104d6=_0x10d418[0x1];_0x4548a4===_0x1b9c7e(0x2d3)&&typeof _0x9104d6==_0x1b9c7e(0x22d)&&(_0x584696[_0x4548a4]=_0x9104d6[_0x1b9c7e(0x215)](/url\(#(.*)\)/,_0x1b9c7e(0x313)[_0x1b9c7e(0x2e9)](_0x4838da[_0x1b9c7e(0x200)],')')));});var _0x218bb5=_0x4838da[_0x107cfb(0x23b)];return!_0x218bb5||_0x218bb5[_0x107cfb(0x1d5)]===0x0||(_0x4a5a63[_0x107cfb(0x2fa)]===_0x107cfb(0x1fc)&&_0x584696['xlink:href']&&(_0x584696['xlink:href']=_0x584696[_0x107cfb(0x114)]+_0x4838da[_0x107cfb(0x200)]),Object['entries'](_0x584696)[_0x107cfb(0x214)](function(_0x3e9a85){const _0x5ef3a4=_0x107cfb;var _0x54ca96=_0x3e9a85[0x0],_0x39ee20=_0x3e9a85[0x1];typeof _0x39ee20==_0x5ef3a4(0x22d)&&(_0x584696[_0x54ca96]=_0x39ee20[_0x5ef3a4(0x215)](/url\(#(.*)\)/,_0x5ef3a4(0x313)[_0x5ef3a4(0x2e9)](_0x4838da[_0x5ef3a4(0x200)],')')));})),_0x584696;}function Rt(_0x34b80d,_0x1602bb){const _0x944219=_0x26dd52;var _0x466218,_0x58e147=_0x1602bb['defIds'];return!_0x58e147||_0x58e147[_0x944219(0x1d5)]===0x0?_0x34b80d:_0x34b80d[_0x944219(0x2fa)]==='defs'&&(!((_0x466218=_0x34b80d['children'])===null||_0x466218===void 0x0)&&_0x466218[_0x944219(0x1d5)])?b(b({},_0x34b80d),{'children':_0x34b80d[_0x944219(0x307)][_0x944219(0x31f)](function(_0x26038a){const _0xd5dc43=_0x944219;return typeof _0x26038a[_0xd5dc43(0x329)]['id']==_0xd5dc43(0x22d)&&_0x58e147&&_0x58e147[_0xd5dc43(0x142)](_0x26038a[_0xd5dc43(0x329)]['id'])?b(b({},_0x26038a),{'attrs':b(b({},_0x26038a[_0xd5dc43(0x329)]),{'id':_0x26038a[_0xd5dc43(0x329)]['id']+_0x1602bb[_0xd5dc43(0x200)]})}):_0x26038a;})}):_0x34b80d;}function Dt(){const _0x227e33=_0x26dd52;return Math[_0x227e33(0x27c)]()[_0x227e33(0x1c8)](0x24)[_0x227e33(0x29e)](0x2,0x8);}pe[_0x26dd52(0x13d)]=_0x26dd52(0x19b);var Ut={'tag':_0x26dd52(0x1e9),'attrs':{'xmlns':_0x26dd52(0x1ee),'fill':_0x26dd52(0x265),'viewBox':_0x26dd52(0x276),'width':_0x26dd52(0x211),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x26dd52(0x262)},'children':[{'tag':_0x26dd52(0xbc),'attrs':{'stroke':_0x26dd52(0x16b),'d':_0x26dd52(0xb8),'strokeLinecap':'round','strokeLinejoin':_0x26dd52(0x162),'strokeWidth':1.2}}]},{'tag':_0x26dd52(0x17f),'attrs':{},'children':[{'tag':_0x26dd52(0x1da),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x26dd52(0xbc),'attrs':{'fill':_0x26dd52(0x11d),'d':_0x26dd52(0x11b)}}]}]}],'defIds':[_0x26dd52(0x224)]},ye=M['forwardRef'](function(_0x4a2d28,_0x50b703){const _0x253cbc=_0x26dd52;return M[_0x253cbc(0x1af)](pe,Object['assign']({},_0x4a2d28,{'id':_0x253cbc(0x136),'ref':_0x50b703,'icon':Ut}));});ye[_0x26dd52(0x13d)]=_0x26dd52(0x205);var Nt={'tag':_0x26dd52(0x1e9),'attrs':{'xmlns':_0x26dd52(0x1ee),'fill':'none','viewBox':_0x26dd52(0x234),'width':_0x26dd52(0x211),'height':_0x26dd52(0x211)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x26dd52(0x16b),'d':_0x26dd52(0x1e4),'strokeLinecap':_0x26dd52(0x162),'strokeLinejoin':_0x26dd52(0x162),'strokeWidth':1.2}}]},{'tag':_0x26dd52(0x17f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x26dd52(0xfa)},'children':[{'tag':'path','attrs':{'fill':_0x26dd52(0x11d),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x26dd52(0xfa)]},$e=M['forwardRef'](function(_0x28c4c5,_0x3c40bc){const _0x493ccb=_0x26dd52;return M[_0x493ccb(0x1af)](pe,Object[_0x493ccb(0x23f)]({},_0x28c4c5,{'id':_0x493ccb(0x18e),'ref':_0x3c40bc,'icon':Nt}));});$e[_0x26dd52(0x13d)]=_0x26dd52(0x26b);function Mt(_0x27952d){const _0x4d9a55=_0x26dd52;switch(_0x27952d){case u[_0x4d9a55(0x310)]['OFFLINE']:return _0x4d9a55(0x18d);case u[_0x4d9a55(0x310)]['CONFLICT']:return _0x4d9a55(0xd3);case u[_0x4d9a55(0x310)][_0x4d9a55(0x1c3)]:return _0x4d9a55(0x17d);case u[_0x4d9a55(0x310)][_0x4d9a55(0x2e1)]:return _0x4d9a55(0x118);case u[_0x4d9a55(0x310)][_0x4d9a55(0x1d2)]:case u[_0x4d9a55(0x310)][_0x4d9a55(0x163)]:return'collabStatus.syncing';case u['CollaborationStatus'][_0x4d9a55(0x225)]:case u[_0x4d9a55(0x310)][_0x4d9a55(0x1c6)]:return'collabStatus.synced';}}function xe(_0x3a3083){const _0x34c630=_0x26dd52,{status$:_0x21cc82}=_0x3a3083,_0x1690c3=O[_0x34c630(0x27f)](_0x21cc82,u[_0x34c630(0x310)][_0x34c630(0x2e1)]),_0x5931fd=O[_0x34c630(0x1bd)](a[_0x34c630(0x273)]),_0x53b191=O[_0x34c630(0x1bd)](u[_0x34c630(0x19c)]),_0x103191=_0x1690c3!==u[_0x34c630(0x310)][_0x34c630(0x279)],_0x5a2591=_0x5931fd['t'](Mt(_0x1690c3)),_0x141f6e=_0x103191?P['jsx']($e,{}):P['jsx'](ye,{}),_0x11ff7c=M[_0x34c630(0x11a)](()=>{const _0x479126=_0x34c630;_0x103191||_0x53b191[_0x479126(0x2fe)]();},[_0x103191,_0x53b191]);function _0x2c5b39(){const _0x4b8db4=_0x34c630;return P['jsxs'](_0x4b8db4(0x152),{'className':_0x4b8db4(0x1b6),'onClick':_0x11ff7c,'children':[P[_0x4b8db4(0xc2)](_0x4b8db4(0x152),{'className':D[_0x4b8db4(0x297)](_0x4b8db4(0x2c2),{'univer-text-green-500':_0x103191,'univer-text-red-500':!_0x103191}),'children':_0x141f6e}),P[_0x4b8db4(0xc2)](_0x4b8db4(0x152),{'className':_0x4b8db4(0x110),'children':_0x5a2591})]});}return _0x103191?_0x2c5b39():P['jsx'](D[_0x34c630(0x10c)],{'title':_0x5931fd['t'](_0x34c630(0xea)),'children':_0x2c5b39()});}var Lt=Object[_0x26dd52(0xf0)],Pt=(_0x2f8b79,_0x1a8f3d,_0x438d8c,_0x298013)=>{const _0x45eb30=_0x26dd52;for(var _0x564fc0=_0x298013>0x1?void 0x0:_0x298013?Lt(_0x1a8f3d,_0x438d8c):_0x1a8f3d,_0x19cf68=_0x2f8b79[_0x45eb30(0x1d5)]-0x1,_0x1b1897;_0x19cf68>=0x0;_0x19cf68--)(_0x1b1897=_0x2f8b79[_0x19cf68])&&(_0x564fc0=_0x1b1897(_0x564fc0)||_0x564fc0);return _0x564fc0;},V=(_0x18786b,_0x27bb70)=>(_0x2c6964,_0x144edb)=>_0x27bb70(_0x2c6964,_0x144edb,_0x18786b);function _0x4ae1(){const _0x2a7bce=['_initStatusComponent','_collaborationUIEventService','0\x200\x2016\x2016','imageSourceType','UNDEFINED','OFFLINE','_onRefRangeChange','beginPath','random','UNIVER_SHEET','find','useObservable','_online','executeCommand','touchDependencies','override','setParam','getCurrentUnitForType','APPLY_PERMISSION_DENIED','NodePositionConvertToCursor','wsSessionTicketUrl','name','_draw','connectInjector','syncEditingCollabCursor','getAncestorScale','rgba(255,\x20255,\x20255,\x200.01)','executionId','DeleteRangeMoveUpCommandId','pipe','transformMutation','_urlService','deepClone','onCommandExecuted','CollaborationUIEventService','clsx','InsertRowCommandId','IBeforeCloseService','_httpService','_sheetSkeletonManagerService','_clearOtherTimers','DOC_RANGE_TYPE','substring','DocIMEInputManagerService','useRef','_getSheetObject','getSkeleton','complete','_drawRectRange','getUniverSheetInstance','...','SheetSkeletonManagerService','_handleLeaveEvent','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LICENSE_MAX_UNITS_EXCEEDED','BrowserCollaborationSocketService','combineLatest','YUUMI_TABLE_NOT_FOUND_IN_UNIT','UniverInstanceType','generateRandomId','selection','_onCursorDelete','addClipboardHook','bottom','_startSheetCollabCursor','_univerInstanceService','Warning','APPLY_NON_SEQUENTIAL_REVISION','WECHAT_HAS_BEEN_BOUND','fromEventSubject','colorChannel1','WebBrowserSingleActiveUnitService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','MOBILE_HAS_BEEN_BOUND','sessionTicket','Inject','[CollaborationDataLoaderController]','_syncEditingCollabCursorService','univer-mr-2\x20univer-flex\x20univer-text-xl','JOIN_ROOM_FAILED','Tools','_context','handleIRemoveRow','_toggleOnline','closePath','getConfig','handleInsertRow','LOCAL_CACHE_INTERVAL','_themeService','SNAPSHOT_HAS_BEEN_REMOVED','prototype','UniverCollaborationClientPlugin','permission.title','undoState','transformIMECache','mask','_docTransformIMECacheService','then','_colorIndex','unitID','_scheduleSaving','_imageIoService','992kwUAuI','/run/','newValue','engine','getViewport','_handleHeartbeatEvent','InsertRangeMoveDownCommandId','NOT_COLLAB','_collaborationController','RECT','_initCommandExecutedListener','defineProperty','search','getActiveRange','getStateCache','concat','width','_localStorageService','font','removeParam','registerBeforeClose','isTransformMutationFailure','univerjs-icon\x20univerjs-icon-','INTERNAL_ERROR','disableLocalCache','deserializeRangeWithSheet','FromArray','SetTextSelectionsOperation','stringify','_lastPointer','getDocRanges','ICommandService','tag','MUTATION','_cursors','unit','reconnect','_registerDependencies','handleMoveRange','subscribe','BehaviorSubject','CollaborationDataLoaderController','ONLINE','disposeUnit','green.600','children','UNRECOGNIZED','_docTransformSelectionsService','ACTIVE_UNIT_EVENT_CHANNEL','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','transformRemoteChangeset','_getAnchorBounding','_roomMembers$','clearTimeout','CollaborationStatus','loadUnit','TOO_MANY_REQUESTS','url(#$1','_send','PERMISSION_DENIED','restore','ThemeService','_transformService','2677680BbPzRE','_scheduleHeartbeat','Unknown\x20user','currentTheme$','125890bkFUSv','_backgroundColor','map','_collabSessionService','_unitOnClients','dispose$','unload','INVALID_ARGUMENT','OTHER_CLIENT_EDITING','NOT_FOUND','getVpScrollXYInfoByPosToVp','_eventUnsubscribe','attrs','_initStatusListener','YUUMI_SUBSCRIPTION_NOT_FOUND','toStringTag','ENSURE_SNAPSHOT_EXECUTION','getValue','_cursor','_removeClearOtherTimer','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','ranges','isEditing','row','hide','blue.400','CollaborationUIEventId','evenodd','_scene','147294HfjwCb','getTypeOfUnitDisposed$','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','findNodePositionByCharIndex','symbol','triggerDblclick','path','body','getActiveSheet','getUnitStatus$','CollaborationEvent','_anchorDot','jsx','getCollabEntity$','ILocalCacheService','getSheetBySheetId','USER_NOT_INVITED_CODE','collabCursorState$','RemoteUniscriptService','toDisposable','show','_id','_ensureSubject','EffectRefRangId','call','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','actions','_dataLoaderService','activeSheet$','collabStatus.conflict','getCollabCursors$','_docClipboardService','saveTaskMap','m1Prime','TEXT','_assignedColors','INVITE_CODE_HAS_BEEN_UES','_status$','type','_instanceService','replaceDocRanges','LOCAL_CACHE_INTERVAL_KEY','_colorAssignService','COMPLETION_FINISHED','color','createSocket','isTransformMutationsWithChangesetSuccess','pushState','origin','INotificationService','resize','drawWith','collab-client.tooltip.reconnect','TEXT_RANGE_LAYER_INDEX','_scheduleClearOtherTimer','Subject','getUnitId','column','getOwnPropertyDescriptor','IRenderManagerService','fillStyle','YUUMI_ALL_TABLES_IS_INVALID','debounceTime','transform','key','CHANGESET_REVISION_CONFILICT','getCoordByCell','set','on-line-icon_clip0_910_349','setItem','SUBMIT_CHANGESET_TIMEOUT','IImageIoService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','YUUMI_URL_COL_OUT_OF_RANGE','870cHcSfB','data','popstate','EMAIL_HAS_BEEN_BOUND','entityInit$','_shapes','ALREADY_EXISTS','CONNECTOR_DATA_TOO_LARGE','SHEET_VIEWPORT_KEY','height','skeleton','IURLService','Tooltip','WebURLService','trim','IUIPartsService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getFocusedUnit','getMemberID','registerRefRange','xlink:href','_removeCollabCursors','moveTo','setStateCache','collabStatus.notCollab','_initDependencies','useCallback','M0\x200H16V16H0z','_getMergeRange','white','from','_hideTimer','MessageType','IUniverInstanceService','exhaustSavingTask','fillText','session.will-retry','isArray','href','_initEvent','runOnServer','RxDisposable','_name','delete','error','getUndoRedoMutationParamsCache','InsertColCommandId','unitId','_uiPartsService','_getScale','_docSkeletonManagerService','startsWith','_logService','pluginName','off-line-icon','unshift','setShapeProps','_cursorInfo$','invokeId','_refreshCollabCursors','onPointerMove$','displayName','_entities','_drawTextRange','makeDirty','handleIRemoveCol','includes','_disabled','LICENSE_DISTRO_REJECTED','_init','disposeWithMe','INVITE_CODE_REQUIRED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_updateURLWithCurrentState','_saveTaskMap','mutations','_document','_injector','_localCacheService','text','ILogService','_cursorShapes','div','onPointerEnter$','icon','memberID','YUUMI_NO_CUBOID_FOR_QUESTION','endColumn','_updateSubUnitFromURLParams','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','shareReplay','getCurrentSelections','_updateLocalCursor','_transformHistoryAndStateStack','UPDATE_CURSOR','156wqyOIp','session.collaboration-timeout','subunit','round','AWAITING_WITH_PENDING','Module','_textBubble','redoState','_getSessionTicket','_messageService','RemoveColCommandId','yellow.400','currentColor','distinctUntilChanged','eventID','YUUMI_AI_RUN_FAILED','Shape','IDocClipboardService','application/json','HTTPService','DocCollaborationEntity','_configService','lineTo','entries','_notificationService','INVITE_CODE_ALREADY_BOUND','_transformUndoRedoStack','enableLocalCache','onPointerLeave$','switchMap','collabStatus.fetchMiss','BuiltInUIPart','defs','getColorFromTheme','_getSaveTimeout','top','COLORS','next','requireSession','_hover','parse','ISnapshotServerService','fill','_onCursorUpdate','Injector','APPLY_REVISION_CONFILICT','collabStatus.offline','on-line-icon','getColor','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getCurrent','_saveCache','mergeOverrideWithDependencies','setInterval','params','docStateChange$','sheetId','indexOf','YUUMI_ASYNCIO_CANCELLED','_handleEvent','UniverIcon','CollaborationSessionService','_collabCursorState$','setUndoRedoMutationParamsCache','black','collaboration.closeRoom','Plugin','_docStateChangeManagerService','DocStateChangeManagerService','roomMembers','_initResize','getMergeData','getRenderById','onMouseMove','_docSyncEditingCollabCursorService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','addEventListener','filter','_selfUnitIDs','_memberService','createElement','debug','_handleJoinEvent','_heartbeatTimer','ticket','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','APPLY_REJECT','univer-flex\x20univer-items-center','size','searchParams','getCellPositionByOffset','YUUMI_CONNECTOR_URL_NOT_FOUND','_setupSubUnitSync','_initEntityListener','useDependency','IConfigService','1355522rpaCIW','_session','#FFF','YUUMI_RATE_OVER_LIMIT','FETCH_MISS','assignAColorForMemberID','runId','PENDING','DisposableCollection','toString','EMAIL_VERIFY_CODE_MISMATCH','cursorInfo$','Disposable','_registerRenderDependencies','whenReady','_hovered','merge','getItem','UniverCollaborationClientUIPlugin','AWAITING','getMember','getCurrentRevOfUnit','length','_startDocCollabCursor','_entityInit$','LICENSE_IMPORT_SIZE_EXCEEDED','SetDocZoomRatioOperation','clipPath','send','RegularPolygon','_docTransformStateCacheService','UNIVER_DOC','ColorKit','handleInsertRangeMoveDown','transformMutationsWithChangeset','dispose','hovered','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','_color','collaboration.single-unit.warning','_commandService','_renderManagerService','svg','_labelPosition','_range','Rectangle','createInstance','http://www.w3.org/2000/svg','save','getRelativeToViewportCoord','collab-text-anchor-','hasOwnProperty','currentSkeleton$','ILocalStorageService','getSheetId','registerRenderModule','InsertRangeMoveRightCommandId','handleInsertRangeMoveRight','_render','subscribeEvent','m2Prime','use','PY_RUNTIME_SCRIPT_ERROR','getParam','RefRangeService','idSuffix','_updateCollabCursors','session.connection-failed','_localeService','_setupBeforeClosingHandler','OffLineIcon','_transformPreviousActiveRange','collab-text-range-','UnitStatus','apply','addObject','VIEW_MAIN','replaceState','cursorInfo','getLocalCacheKey','unsubscribe','onTransformChange$','1em','roomMembers$','push','forEach','replace','min','add','clearInterval','Rect','UNAUTHENTICATED','get','IMessageService','APPLY_DUPLICATED','history','startRow','has','transformStateCache','status$','isActive','off-line-icon_clip0_910_343','SYNCED','doc.mutation.rich-text-editing','YUUMI_UNABLE_LOAD_URL','SessionStatus','sessionStatus$','focused$','NodePositionConvertToRectRange','Failed','string','_revisionService','startColumn','Workbook','_toggleOffline','_refRangeService','_drawAnchor','0\x200\x2017\x2016','_createSocketURL','getTypeOfUnitAdded$','LOGIN_FAILED','Error','labelPosition','loadOfflineData','defIds','getRangePointData','CONFLICT','toRgbString','assign','init','serializeRangeWithSheet','event$','textRanges','_config','handleDeleteRangeMoveLeft','SOCKET_FAILED_RETRY','onStarting','collaboration-client.offline-data-not-saved','className','129029iIdnGR','DEFAULT_WS_SESSION_TICKET_URL','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','extend','setTimeout','jiqing.500','6679056keTMtd','takeUntil','range','DataLoaderService','source','measureText','RemoveRowCommandId','debounce','arc','storage','_unitStatus','values','_cachedData','getOwnPropertySymbols','max','CollaborationController','_collabCursorController','urlChange$','url(#off-line-icon_clip0_910_343)','13055CcTzal','DocSelectionManagerService','none','_anchor','SheetCollabCursorShape','all','propertyIsEnumerable','ITransformService','OnLineIcon','DesktopCollaborationStatusDisplayController','registerDependencies','MOBILE_VERIFY_CODE_MISMATCH','createIdentifier','location','asObservable','SNAPSHOT_INVALID_SNAPSHOT','LocaleService'];_0x4ae1=function(){return _0x2a7bce;};return _0x4ae1();}exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x5feb29,_0x54547b,_0x2d9cb8,_0x4967ab){const _0x215ea2=_0x26dd52;super(),h(this,'_status$',new d['BehaviorSubject'](u[_0x215ea2(0x310)]['NOT_COLLAB'])),(this[_0x215ea2(0x2b5)]=_0x5feb29,this[_0x215ea2(0x14d)]=_0x54547b,this[_0x215ea2(0x2e2)]=_0x2d9cb8,this[_0x215ea2(0x130)]=_0x4967ab,this[_0x215ea2(0x274)](),this[_0x215ea2(0x32a)]());}['_initStatusListener'](){const _0x154029=_0x26dd52;this[_0x154029(0x146)](this[_0x154029(0x2b5)][_0x154029(0x22a)][_0x154029(0x291)](d[_0x154029(0x17c)](()=>{const _0x11c356=_0x154029,_0x24f4d5=this['_univerInstanceService'][_0x11c356(0x111)]();return _0x24f4d5?this['_collaborationController'][_0x11c356(0xc3)](_0x24f4d5[_0x11c356(0xee)]()):d['of'](null);}),d['switchMap'](_0x592d39=>_0x592d39?_0x592d39[_0x154029(0x222)]:d['of'](u[_0x154029(0x310)]['NOT_COLLAB'])))[_0x154029(0x301)](_0x4903d9=>{const _0x32f7ef=_0x154029;this['_status$'][_0x32f7ef(0x184)](_0x4903d9);}));}[_0x26dd52(0x274)](){const _0x27ba5a=_0x26dd52;this['disposeWithMe'](this[_0x27ba5a(0x130)]['registerComponent'](O[_0x27ba5a(0x17e)]['HEADER_MENU'],()=>O[_0x27ba5a(0x28b)](wt({'status$':this[_0x27ba5a(0xdb)][_0x27ba5a(0x271)]()}),this[_0x27ba5a(0x14d)])));}},exports[_0x26dd52(0x26c)]=Pt([V(0x0,a[_0x26dd52(0x121)]),V(0x1,a[_0x26dd52(0x2bf)](a[_0x26dd52(0x18b)])),V(0x2,a[_0x26dd52(0x2bf)](u[_0x26dd52(0x25f)])),V(0x3,O[_0x26dd52(0x10f)])],exports[_0x26dd52(0x26c)]);function wt(_0x3a8bd8){const {status$:_0x4c35bc}=_0x3a8bd8;return function(){return P['jsx'](xe,{'status$':_0x4c35bc});};}var At=Object[_0x26dd52(0xf0)],yt=(_0x1fdc14,_0x43c089,_0x96de1e,_0xf73159)=>{const _0x3705d8=_0x26dd52;for(var _0x391545=_0xf73159>0x1?void 0x0:_0xf73159?At(_0x43c089,_0x96de1e):_0x43c089,_0x28caac=_0x1fdc14[_0x3705d8(0x1d5)]-0x1,_0x41e483;_0x28caac>=0x0;_0x28caac--)(_0x41e483=_0x1fdc14[_0x28caac])&&(_0x391545=_0x41e483(_0x391545)||_0x391545);return _0x391545;},y=(_0x6b1477,_0x127ae9)=>(_0x3cf3dc,_0x1c45ab)=>_0x127ae9(_0x3cf3dc,_0x1c45ab,_0x6b1477);let q=class extends a[_0x26dd52(0x1cb)]{constructor(_0x339471,_0x4232f8,_0x1e994d,_0x5258c2,_0x5e186a,_0x1cdfe7){const _0x462d77=_0x26dd52;super(),this['_beforeCloseService']=_0x339471,this[_0x462d77(0x14e)]=_0x4232f8,this[_0x462d77(0x275)]=_0x1e994d,this['_messageService']=_0x5258c2,this[_0x462d77(0x177)]=_0x5e186a,this[_0x462d77(0x203)]=_0x1cdfe7,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x26dd52(0x204)](){const _0x4996e5=_0x26dd52;this[_0x4996e5(0x146)](this['_beforeCloseService'][_0x4996e5(0x2ee)](()=>{const _0xb22a16=_0x4996e5;if(this[_0xb22a16(0x14e)][_0xb22a16(0xd6)][_0xb22a16(0x1b7)])return this[_0xb22a16(0x203)]['t'](_0xb22a16(0x248));}));}[_0x26dd52(0x127)](){const _0x5a14b4=_0x26dd52;this[_0x5a14b4(0x146)](this[_0x5a14b4(0x275)][_0x5a14b4(0x242)][_0x5a14b4(0x301)](_0x10d14c=>{const _0x439e7b=_0x5a14b4;_0x10d14c['id']===u[_0x439e7b(0xb3)][_0x439e7b(0x325)]&&this[_0x439e7b(0x168)][_0x439e7b(0xca)]({'type':D[_0x439e7b(0x120)]['Warning'],'content':this[_0x439e7b(0x203)]['t'](_0x439e7b(0x1e6))}),_0x10d14c['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x439e7b(0x168)][_0x439e7b(0xca)]({'type':D[_0x439e7b(0x120)][_0x439e7b(0x2b6)],'content':this[_0x439e7b(0x203)]['t'](_0x439e7b(0x1a0))}),_0x10d14c['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x439e7b(0x177)]['show']({'title':this['_localeService']['t'](_0x439e7b(0x2d0)),'content':this[_0x439e7b(0x203)]['t']('permission.content'),'type':'error','duration':0x0}),_0x10d14c['id']===u[_0x439e7b(0xb3)][_0x439e7b(0x23d)]&&this[_0x439e7b(0x168)][_0x439e7b(0xca)]({'type':D[_0x439e7b(0x120)][_0x439e7b(0x238)],'content':this[_0x439e7b(0x203)]['t']('collaboration.closeRoom')+'('+_0x10d14c['data']+')'}),_0x10d14c['id']===u[_0x439e7b(0xb3)][_0x439e7b(0x2c3)]&&this['_messageService']['show']({'type':D[_0x439e7b(0x120)][_0x439e7b(0x2b6)],'content':this[_0x439e7b(0x203)]['t'](_0x10d14c[_0x439e7b(0x101)]||'')}),_0x10d14c['id']===u['CollaborationUIEventId'][_0x439e7b(0x246)]&&this[_0x439e7b(0x168)]['show']({'type':D[_0x439e7b(0x120)][_0x439e7b(0x2b6)],'content':this[_0x439e7b(0x203)]['t'](_0x439e7b(0x124))}),_0x10d14c['id']===u[_0x439e7b(0xb3)]['SOCKET_FAILED']&&this[_0x439e7b(0x168)][_0x439e7b(0xca)]({'type':D[_0x439e7b(0x120)][_0x439e7b(0x238)],'content':this[_0x439e7b(0x203)]['t'](_0x439e7b(0x202))}),_0x10d14c['id']===u[_0x439e7b(0xb3)][_0x439e7b(0xfc)]&&this[_0x439e7b(0x168)]['show']({'type':D[_0x439e7b(0x120)]['Error'],'content':this[_0x439e7b(0x203)]['t'](_0x439e7b(0x160))});}));}};q=yt([y(0x0,O[_0x26dd52(0x299)]),y(0x1,u[_0x26dd52(0xc4)]),y(0x2,a['Inject'](u[_0x26dd52(0x296)])),y(0x3,O[_0x26dd52(0x21c)]),y(0x4,O[_0x26dd52(0xe7)]),y(0x5,a['Inject'](a[_0x26dd52(0x273)]))],q);const $t='collaboration-client-ui.config',Ue={},Ee=a[_0x26dd52(0x26f)]('uni.network.url-service');var xt=Object[_0x26dd52(0xf0)],Bt=(_0x3df7e8,_0x370bed,_0xe4e36c,_0x4dc988)=>{const _0x1227b1=_0x26dd52;for(var _0x4aacdd=_0x4dc988>0x1?void 0x0:_0x4dc988?xt(_0x370bed,_0xe4e36c):_0x370bed,_0x187a1a=_0x3df7e8[_0x1227b1(0x1d5)]-0x1,_0x2c3e19;_0x187a1a>=0x0;_0x187a1a--)(_0x2c3e19=_0x3df7e8[_0x187a1a])&&(_0x4aacdd=_0x2c3e19(_0x4aacdd)||_0x4aacdd);return _0x4aacdd;},F=(_0x30ea5d,_0x11ea8b)=>(_0xe4339d,_0x2da5ea)=>_0x11ea8b(_0xe4339d,_0x2da5ea,_0x30ea5d);exports[_0x26dd52(0x303)]=class extends a[_0x26dd52(0x129)]{constructor(_0x45f919,_0x2ce34d,_0x320e44,_0xe72e78,_0x22d34e){const _0x3e5690=_0x26dd52;super(),this[_0x3e5690(0x293)]=_0x45f919,this['_logService']=_0x2ce34d,this['_commandService']=_0x320e44,this[_0x3e5690(0xd1)]=_0xe72e78,_0x22d34e?_0x22d34e==null||_0x22d34e[_0x3e5690(0x1cd)]()[_0x3e5690(0x2d5)](()=>this['_init']()):(this[_0x3e5690(0x134)][_0x3e5690(0x1b0)]('[CollaborationDataLoaderController]',_0x3e5690(0x2bc)),this[_0x3e5690(0x145)]());}async[_0x26dd52(0x145)](){const _0x4ec75d=_0x26dd52,_0x149541=this['_urlService']['getParam'](_0x4ec75d(0x2fd)),_0x5c7457=this[_0x4ec75d(0x293)][_0x4ec75d(0x1fe)]('type'),_0x46688c=this[_0x4ec75d(0x293)][_0x4ec75d(0x1fe)](_0x4ec75d(0x161));if(!_0x149541||!_0x5c7457){this['_logService'][_0x4ec75d(0x1b0)](_0x4ec75d(0x2c0),_0x4ec75d(0x1aa));return;}const _0x1d6557=await this[_0x4ec75d(0xd1)][_0x4ec75d(0x311)](_0x149541,Number(_0x5c7457),_0x46688c);_0x1d6557&&_0x1d6557 instanceof a[_0x4ec75d(0x230)]&&this[_0x4ec75d(0x1bb)](_0x1d6557);}async[_0x26dd52(0x1bb)](_0x4c1858){const _0x900ff6=_0x26dd52;await this[_0x900ff6(0x158)](_0x4c1858),_0x4c1858[_0x900ff6(0xd2)][_0x900ff6(0x291)](d[_0x900ff6(0x251)](this['dispose$']))['subscribe'](_0xc9400d=>{const _0x466592=_0x900ff6;_0xc9400d&&this[_0x466592(0x149)](_0xc9400d);}),this[_0x900ff6(0x293)][_0x900ff6(0x261)][_0x900ff6(0x291)](d[_0x900ff6(0x251)](this['dispose$']))[_0x900ff6(0x301)](()=>this['_updateSubUnitFromURLParams'](_0x4c1858));}[_0x26dd52(0x149)](_0x2cfdf1,_0x51060f=!0x1){const _0xcc6d47=_0x26dd52,_0x22813d=this[_0xcc6d47(0x293)][_0xcc6d47(0x1fe)](_0xcc6d47(0x161));_0x2cfdf1[_0xcc6d47(0x1f5)]()!==_0x22813d&&this[_0xcc6d47(0x293)]['setParam'](_0xcc6d47(0x161),_0x2cfdf1[_0xcc6d47(0x1f5)](),_0x51060f);}async[_0x26dd52(0x158)](_0x3ce67f){const _0x2665d3=_0x26dd52;var _0x376695;const _0x492840=this[_0x2665d3(0x293)][_0x2665d3(0x1fe)](_0x2665d3(0x161));if(!_0x492840||!_0x3ce67f['getSheetBySheetId'](_0x492840)){const _0x2a9fca=_0x3ce67f['getUnhiddenWorksheets']()[0x0],_0x5f0475=_0x3ce67f[_0x2665d3(0xc5)](_0x2a9fca);if(!_0x5f0475)return;this[_0x2665d3(0x149)](_0x5f0475,!0x0),await this['_commandService'][_0x2665d3(0x281)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x3ce67f['getUnitId'](),'subUnitId':_0x2a9fca});return;}((_0x376695=_0x3ce67f['getActiveSheet']())==null?void 0x0:_0x376695['getSheetId']())!==_0x492840&&await this[_0x2665d3(0x1e7)][_0x2665d3(0x281)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x3ce67f[_0x2665d3(0xee)](),'subUnitId':_0x492840});}},exports[_0x26dd52(0x303)]=Bt([F(0x0,Ee),F(0x1,a[_0x26dd52(0x150)]),F(0x2,a[_0x26dd52(0x2f9)]),F(0x3,a['Inject'](u[_0x26dd52(0x253)])),F(0x4,a['Optional'](Ke['IRemoteInstanceService']))],exports[_0x26dd52(0x303)]);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x4eeec7,_0x2cccdc,_0x2ac586,_0x3627ba)=>{const _0x4b56ef=_0x26dd52;for(var _0x4f5e1d=_0x3627ba>0x1?void 0x0:_0x3627ba?jt(_0x2cccdc,_0x2ac586):_0x2cccdc,_0x5af23a=_0x4eeec7[_0x4b56ef(0x1d5)]-0x1,_0x3915eb;_0x5af23a>=0x0;_0x5af23a--)(_0x3915eb=_0x4eeec7[_0x5af23a])&&(_0x4f5e1d=_0x3915eb(_0x4f5e1d)||_0x4f5e1d);return _0x4f5e1d;},ce=(_0x2ef9f7,_0x264ead)=>(_0x13f905,_0x1681b1)=>_0x264ead(_0x13f905,_0x1681b1,_0x2ef9f7);let z=class{constructor(_0x4dd7b1,_0x20f4bc,_0x2d7552){const _0x27a30f=_0x26dd52;this[_0x27a30f(0x14d)]=_0x4dd7b1,this['_transformService']=_0x20f4bc,this[_0x27a30f(0x1e8)]=_0x2d7552;}[_0x26dd52(0x2d2)](_0x246e24){const _0x24f09c=_0x26dd52;this[_0x24f09c(0x179)](_0x246e24),this[_0x24f09c(0x206)](_0x246e24);}['transformRemoteChangeset'](_0x4430e7){const _0x5abdc0=_0x26dd52,{unitID:_0x3dec1a}=_0x4430e7,_0x22f3b5=this['_renderManagerService']['getRenderById'](_0x3dec1a)['with'](E[_0x5abdc0(0x29f)]),{redoCache:_0x174754}=_0x22f3b5['getUndoRedoMutationParamsCache']();if(_0x174754[_0x5abdc0(0x1d5)]===0x0)return _0x4430e7;let _0x35c828=a[_0x5abdc0(0x2c4)][_0x5abdc0(0x294)](_0x4430e7[_0x5abdc0(0x14b)][0x0]);for(let _0xcec382=0x0;_0xcec382<_0x174754[_0x5abdc0(0x1d5)];_0xcec382++){const _0x141063={'id':_0x5abdc0(0x226),'params':{..._0x174754[_0xcec382]}},_0x2565e1=this[_0x5abdc0(0x318)][_0x5abdc0(0x292)](_0x35c828,_0x141063,!0x1);if(m[_0x5abdc0(0x2ef)](_0x2565e1))throw _0x2565e1[_0x5abdc0(0x12c)];_0x35c828=_0x2565e1[_0x5abdc0(0xd7)];}return{...a[_0x5abdc0(0x2c4)]['deepClone'](_0x4430e7),'mutations':[_0x35c828]};}[_0x26dd52(0x179)](_0x4471de){const _0x35b779=_0x26dd52,{unitID:_0xf721d0}=_0x4471de,_0x302c7e=this[_0x35b779(0x1e8)][_0x35b779(0x1a7)](_0xf721d0)['with'](E[_0x35b779(0x29f)]),{undoCache:_0x2dbc11,redoCache:_0x2e70e9}=_0x302c7e[_0x35b779(0x12d)]();if(_0x2dbc11['length']===0x0||_0x2e70e9['length']===0x0)return;const _0x5615ba=[],_0x18727f=[];let _0x190163=a['Tools']['deepClone'](_0x4471de[_0x35b779(0x14b)][0x0]),_0x4544b7=a[_0x35b779(0x2c4)][_0x35b779(0x294)](_0x4471de[_0x35b779(0x14b)][0x0]);for(let _0x2b0444=_0x2dbc11[_0x35b779(0x1d5)]-0x1;_0x2b0444>=0x0;_0x2b0444--){const _0x44177e={'id':'doc.mutation.rich-text-editing','params':{..._0x2dbc11[_0x2b0444]}},_0x1b2583={'id':'doc.mutation.rich-text-editing','params':{..._0x2e70e9[_0x2b0444]}},_0x172a93=this[_0x35b779(0x318)][_0x35b779(0x292)](_0x190163,_0x44177e,!0x1),_0x6d55f9=this['_transformService'][_0x35b779(0x292)](_0x4544b7,_0x1b2583,!0x1);if(m[_0x35b779(0x2ef)](_0x172a93))throw _0x172a93[_0x35b779(0x12c)];if(m[_0x35b779(0x2ef)](_0x6d55f9))throw _0x6d55f9['error'];_0x5615ba[_0x35b779(0x137)](_0x172a93[_0x35b779(0x1fb)][_0x35b779(0x195)]),_0x18727f['unshift'](_0x6d55f9['m2Prime'][_0x35b779(0x195)]),_0x190163=_0x172a93[_0x35b779(0xd7)],_0x4544b7=_0x6d55f9[_0x35b779(0xd7)];}_0x302c7e[_0x35b779(0x19e)]({'undoCache':_0x5615ba,'redoCache':_0x18727f});}[_0x26dd52(0x206)](_0x23f07d){const _0x4b031b=_0x26dd52,{unitID:_0x5485e0}=_0x23f07d,_0x2ad8a0=this['_renderManagerService'][_0x4b031b(0x1a7)](_0x5485e0)['with'](E[_0x4b031b(0x29f)]),_0x54f9c3=_0x2ad8a0[_0x4b031b(0x2e7)]();if(_0x54f9c3==null)return;const _0x226a2e=[{'id':_0x4b031b(0x226),'params':{'unitId':_0x23f07d[_0x4b031b(0x2d7)],'actions':null,'textRanges':[_0x54f9c3]}}],_0x18e30d=this[_0x4b031b(0x318)][_0x4b031b(0x1e1)](_0x23f07d,_0x226a2e);if(!m[_0x4b031b(0xe4)](_0x18e30d))throw _0x18e30d[_0x4b031b(0x12c)];const _0x18e50a=_0x18e30d['m2Prime'][0x0][_0x4b031b(0x195)][_0x4b031b(0x243)];Array[_0x4b031b(0x125)](_0x18e50a)&&_0x18e50a[_0x4b031b(0x1d5)]&&_0x2ad8a0['setActiveRange'](_0x18e50a[0x0]);}};z=kt([ce(0x0,a[_0x26dd52(0x2bf)](a[_0x26dd52(0x18b)])),ce(0x1,m[_0x26dd52(0x26a)]),ce(0x2,p[_0x26dd52(0xf1)])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x4fe795,_0x44ed21,_0x29bac4,_0x592c13)=>{const _0x5a06c5=_0x26dd52;for(var _0x2a2b0c=_0x592c13>0x1?void 0x0:_0x592c13?Ft(_0x44ed21,_0x29bac4):_0x44ed21,_0x151756=_0x4fe795[_0x5a06c5(0x1d5)]-0x1,_0x3b3ba2;_0x151756>=0x0;_0x151756--)(_0x3b3ba2=_0x4fe795[_0x151756])&&(_0x2a2b0c=_0x3b3ba2(_0x2a2b0c)||_0x2a2b0c);return _0x2a2b0c;},le=(_0x3e6c40,_0x55dd97)=>(_0xf72ab0,_0x14ab4b)=>_0x55dd97(_0xf72ab0,_0x14ab4b,_0x3e6c40);let J=class{constructor(_0x9b3a96,_0x2a99dd,_0x3824e3){const _0x22ddc0=_0x26dd52;this['_injector']=_0x9b3a96,this[_0x22ddc0(0x318)]=_0x2a99dd,this['_docStateChangeManagerService']=_0x3824e3;}[_0x26dd52(0x221)](_0x13ad08){const _0x231dd1=_0x26dd52;this[_0x231dd1(0x15d)](_0x13ad08);}[_0x26dd52(0x30c)](_0x3b359e){const _0x4085a0=_0x26dd52,{unitID:_0x197511}=_0x3b359e,{collaboration:_0x323109}=this[_0x4085a0(0x1a2)][_0x4085a0(0x2e8)](_0x197511);if(_0x323109[_0x4085a0(0x1d5)]===0x0)return _0x3b359e;let _0x39afca=a[_0x4085a0(0x2c4)]['deepClone'](_0x3b359e[_0x4085a0(0x14b)][0x0]);for(let _0x5d1f0e=0x0;_0x5d1f0e<_0x323109[_0x4085a0(0x1d5)];_0x5d1f0e++){const _0x5da9ad={'id':_0x4085a0(0x226),'params':{'unitId':_0x323109[_0x5d1f0e][_0x4085a0(0x12f)],..._0x323109[_0x5d1f0e][_0x4085a0(0x166)]}},_0x285f86=this[_0x4085a0(0x318)][_0x4085a0(0x292)](_0x39afca,_0x5da9ad,!0x1);if(m[_0x4085a0(0x2ef)](_0x285f86))throw _0x285f86['error'];_0x39afca=_0x285f86[_0x4085a0(0xd7)];}return{...a[_0x4085a0(0x2c4)][_0x4085a0(0x294)](_0x3b359e),'mutations':[_0x39afca]};}['_transformHistoryAndStateStack'](_0x3b6e55){const _0x3285d6=_0x26dd52,{unitID:_0xa90af}=_0x3b6e55,{history:_0x1e1de7,collaboration:_0xe0458c}=this[_0x3285d6(0x1a2)]['getStateCache'](_0xa90af);if(_0x1e1de7[_0x3285d6(0x1d5)]===0x0&&_0xe0458c[_0x3285d6(0x1d5)]===0x0)return;const _0x1e9021=[],_0x5c234=[];let _0x3a9fac=a[_0x3285d6(0x2c4)][_0x3285d6(0x294)](_0x3b6e55[_0x3285d6(0x14b)][0x0]),_0x1660ed=a['Tools'][_0x3285d6(0x294)](_0x3b6e55['mutations'][0x0]);for(let _0x231cf0=_0x1e1de7[_0x3285d6(0x1d5)]-0x1;_0x231cf0>=0x0;_0x231cf0--){const _0x5af38d={'id':_0x3285d6(0x226),'params':{'unitId':_0x1e1de7[_0x231cf0][_0x3285d6(0x12f)],..._0x1e1de7[_0x231cf0][_0x3285d6(0x2d1)]}},_0x1a09d3={'id':_0x3285d6(0x226),'params':{'unitId':_0x1e1de7[_0x231cf0][_0x3285d6(0x12f)],..._0x1e1de7[_0x231cf0][_0x3285d6(0x166)]}},_0xdd0249=this[_0x3285d6(0x318)][_0x3285d6(0x292)](_0x3a9fac,_0x5af38d,!0x1),_0x59c190=this['_transformService'][_0x3285d6(0x292)](_0x1660ed,_0x1a09d3,!0x1);if(m[_0x3285d6(0x2ef)](_0xdd0249))throw _0xdd0249[_0x3285d6(0x12c)];if(m[_0x3285d6(0x2ef)](_0x59c190))throw _0x59c190['error'];_0x1e9021['unshift']({..._0x1e1de7[_0x231cf0],'undoState':_0xdd0249[_0x3285d6(0x1fb)][_0x3285d6(0x195)],'redoState':_0x59c190['m2Prime'][_0x3285d6(0x195)]}),_0x3a9fac=_0xdd0249[_0x3285d6(0xd7)],_0x1660ed=_0x59c190[_0x3285d6(0xd7)];}_0x3a9fac=a[_0x3285d6(0x2c4)][_0x3285d6(0x294)](_0x3b6e55[_0x3285d6(0x14b)][0x0]),_0x1660ed=a['Tools'][_0x3285d6(0x294)](_0x3b6e55[_0x3285d6(0x14b)][0x0]);for(let _0x547c7f=_0xe0458c[_0x3285d6(0x1d5)]-0x1;_0x547c7f>=0x0;_0x547c7f--){const _0x55b388={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe0458c[_0x547c7f][_0x3285d6(0x12f)],..._0xe0458c[_0x547c7f][_0x3285d6(0x2d1)]}},_0x5ed628={'id':_0x3285d6(0x226),'params':{'unitId':_0xe0458c[_0x547c7f][_0x3285d6(0x12f)],..._0xe0458c[_0x547c7f][_0x3285d6(0x166)]}},_0x3d5ec6=this[_0x3285d6(0x318)][_0x3285d6(0x292)](_0x3a9fac,_0x55b388,!0x1),_0x510800=this[_0x3285d6(0x318)][_0x3285d6(0x292)](_0x1660ed,_0x5ed628,!0x1);if(m['isTransformMutationFailure'](_0x3d5ec6))throw _0x3d5ec6[_0x3285d6(0x12c)];if(m[_0x3285d6(0x2ef)](_0x510800))throw _0x510800['error'];_0x5c234[_0x3285d6(0x137)]({..._0xe0458c[_0x547c7f],'undoState':_0x3d5ec6[_0x3285d6(0x1fb)][_0x3285d6(0x195)],'redoState':_0x510800['m2Prime'][_0x3285d6(0x195)]}),_0x3a9fac=_0x3d5ec6['m1Prime'],_0x1660ed=_0x510800[_0x3285d6(0xd7)];}this['_docStateChangeManagerService'][_0x3285d6(0x117)](_0xa90af,{'history':_0x1e9021,'collaboration':_0x5c234});}};J=Ht([le(0x0,a[_0x26dd52(0x2bf)](a['Injector'])),le(0x1,m[_0x26dd52(0x26a)]),le(0x2,a['Inject'](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x26dd52(0xf0)],Wt=(_0xb858d6,_0x9c23ac,_0x53882f,_0x543bc4)=>{const _0x23ba6f=_0x26dd52;for(var _0xd622ff=_0x543bc4>0x1?void 0x0:_0x543bc4?Yt(_0x9c23ac,_0x53882f):_0x9c23ac,_0x439791=_0xb858d6[_0x23ba6f(0x1d5)]-0x1,_0x50994a;_0x439791>=0x0;_0x439791--)(_0x50994a=_0xb858d6[_0x439791])&&(_0xd622ff=_0x50994a(_0xd622ff)||_0xd622ff);return _0xd622ff;},Ne=(_0x5609e4,_0x2bab81)=>(_0x3bebe7,_0x29ce63)=>_0x2bab81(_0x3bebe7,_0x29ce63,_0x5609e4);let Z=class{constructor(_0x851034,_0x2ed7b1){const _0x31f772=_0x26dd52;this[_0x31f772(0x14d)]=_0x851034,this[_0x31f772(0x318)]=_0x2ed7b1;}['transformSelections'](_0x3026db){const _0x12e180=_0x26dd52;var _0x202ccf;const _0x576919=this[_0x12e180(0x14d)][_0x12e180(0x21b)](Y[_0x12e180(0x264)]),_0x347c90=(_0x202ccf=_0x576919['getDocRanges']())!=null?_0x202ccf:[];if(_0x347c90[_0x12e180(0x1d5)]===0x0)return;const _0x311cf5=_0x3026db[_0x12e180(0x2d7)],_0x3ae873=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x311cf5,'actions':null,'textRanges':_0x347c90}}],_0x30c0fe=this[_0x12e180(0x318)][_0x12e180(0x1e1)](_0x3026db,_0x3ae873);if(!m[_0x12e180(0xe4)](_0x30c0fe))throw _0x30c0fe[_0x12e180(0x12c)];const _0x6f9f50=_0x30c0fe[_0x12e180(0x1fb)][0x0][_0x12e180(0x195)][_0x12e180(0x243)];Array[_0x12e180(0x125)](_0x6f9f50)&&_0x6f9f50[_0x12e180(0x1d5)]&&_0x576919[_0x12e180(0xde)](_0x6f9f50,{'unitId':_0x311cf5,'subUnitId':_0x311cf5},!0x1);}};Z=Wt([Ne(0x0,a[_0x26dd52(0x2bf)](a['Injector'])),Ne(0x1,m[_0x26dd52(0x26a)])],Z);var Vt=Object[_0x26dd52(0xf0)],Xt=(_0x4de1c3,_0x2fc3fb,_0x4d5e41,_0x1c0edb)=>{const _0x225838=_0x26dd52;for(var _0x8a151e=_0x1c0edb>0x1?void 0x0:_0x1c0edb?Vt(_0x2fc3fb,_0x4d5e41):_0x2fc3fb,_0x5387d7=_0x4de1c3[_0x225838(0x1d5)]-0x1,_0x52c6d9;_0x5387d7>=0x0;_0x5387d7--)(_0x52c6d9=_0x4de1c3[_0x5387d7])&&(_0x8a151e=_0x52c6d9(_0x8a151e)||_0x8a151e);return _0x8a151e;},N=(_0x34aa68,_0x2bd5f2)=>(_0x13c1bf,_0xa637b8)=>_0x2bd5f2(_0x13c1bf,_0xa637b8,_0x34aa68);let Q=class extends a[_0x26dd52(0x1cb)]{constructor(_0x24debb,_0x39a4a1,_0x11bbce,_0x4c2697,_0x273504,_0x1311ec,_0x99042f,_0x4c2702){const _0x3b6c65=_0x26dd52;super(),h(this,_0x3b6c65(0xdb),new d[(_0x3b6c65(0x302))](u[_0x3b6c65(0x310)][_0x3b6c65(0x2e1)])),(this[_0x3b6c65(0x1a2)]=_0x24debb,this['_collaborationController']=_0x39a4a1,this[_0x3b6c65(0x2d4)]=_0x11bbce,this['_docTransformStateCacheService']=_0x4c2697,this[_0x3b6c65(0x309)]=_0x273504,this[_0x3b6c65(0x1a9)]=_0x1311ec,this['_messageService']=_0x99042f,this[_0x3b6c65(0x203)]=_0x4c2702,this[_0x3b6c65(0x1bc)]());}[_0x26dd52(0x1bc)](){const _0x3d198c=_0x26dd52;this[_0x3d198c(0x146)](this[_0x3d198c(0x2e2)][_0x3d198c(0x104)][_0x3d198c(0x301)](_0x537ba5=>{const _0x4108fa=_0x3d198c,_0x4710aa=this[_0x4108fa(0x1a2)][_0x4108fa(0x196)]['subscribe'](_0x374462=>{const _0x5ada8f=_0x4108fa;if(_0x374462==null)return;const {unitId:_0x2a4094,redoState:_0xa9d337,commandId:_0x54665a}=_0x374462;if(_0x2a4094!==_0x537ba5[_0x5ada8f(0x2d7)])return;const _0x4ae3f7={'id':_0x54665a,'type':a['CommandType'][_0x5ada8f(0x2fb)],'params':{'unitId':_0x2a4094,'actions':_0xa9d337[_0x5ada8f(0xd0)],'textRanges':null}};_0x537ba5['onLocalMutation'](_0x4ae3f7);});if(_0x537ba5[_0x4108fa(0x146)](_0x4710aa),_0x537ba5 instanceof u[_0x4108fa(0x173)]){const _0x5e91a1={'onTransformIME':_0x34eaf7=>this['_docTransformIMECacheService']['transformIMECache'](_0x34eaf7),'onTransformState':_0x47a525=>this[_0x4108fa(0x1dd)][_0x4108fa(0x221)](_0x47a525),'onTransformSelections':_0x46fba2=>this['_docTransformSelectionsService']['transformSelections'](_0x46fba2),'onSyncEditingCollabCursor':_0x1ce219=>this[_0x4108fa(0x1a9)][_0x4108fa(0x28c)](_0x1ce219),'onTransformRemoteChangesetByIMECache':_0x408962=>this['_docTransformIMECacheService'][_0x4108fa(0x30c)](_0x408962),'onTransformRemoteChangesetByStateCache':_0x53f5eb=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x53f5eb)};_0x537ba5['addHandlerCallback'](_0x5e91a1);}}));}};Q=Xt([N(0x0,a[_0x26dd52(0x2bf)](E[_0x26dd52(0x1a3)])),N(0x1,a[_0x26dd52(0x2bf)](u[_0x26dd52(0x25f)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x26dd52(0x2bf)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x26dd52(0x2bf)](Ce)),N(0x6,O[_0x26dd52(0x21c)]),N(0x7,a[_0x26dd52(0x2bf)](a['LocaleService']))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x1793d3,_0x4f99b6,_0x3b45fd,_0x2150db)=>{const _0xad5143=_0x26dd52;for(var _0x98c719=_0x2150db>0x1?void 0x0:_0x2150db?Gt(_0x4f99b6,_0x3b45fd):_0x4f99b6,_0x46b736=_0x1793d3[_0xad5143(0x1d5)]-0x1,_0x28b966;_0x46b736>=0x0;_0x46b736--)(_0x28b966=_0x1793d3[_0x46b736])&&(_0x98c719=_0x28b966(_0x98c719)||_0x98c719);return _0x98c719;},_e=(_0x3fe6be,_0x2662f8)=>(_0x44be2b,_0x5ac21c)=>_0x2662f8(_0x44be2b,_0x5ac21c,_0x3fe6be);let ge=class extends a['Disposable']{constructor(_0x50f00d,_0x2d3571,_0x5635dc){const _0x1265fc=_0x26dd52;super(),h(this,'_cachedData',new Map()),h(this,_0x1265fc(0x14a),new Map()),h(this,_0x1265fc(0x143),!0x1),(this[_0x1265fc(0x174)]=_0x50f00d,this[_0x1265fc(0x2eb)]=_0x2d3571,this[_0x1265fc(0x22e)]=_0x5635dc);}[_0x26dd52(0x2f2)](){const _0x5b8ffd=_0x26dd52;this[_0x5b8ffd(0x143)]=!0x0;}[_0x26dd52(0x17a)](){const _0x1f79ad=_0x26dd52;this[_0x1f79ad(0x143)]=!0x1;}get['saveTaskMap'](){const _0x210adc=_0x26dd52;return this[_0x210adc(0x14a)];}[_0x26dd52(0x1e2)](){const _0x40c279=_0x26dd52;this['exhaustSavingTask']()['then'](()=>super[_0x40c279(0x1e2)]());}async[_0x26dd52(0x23a)](_0x4ef2d4){const _0x3585e7=_0x26dd52;return this[_0x3585e7(0x143)]?null:this['_localStorageService'][_0x3585e7(0x1d0)](u[_0x3585e7(0x20e)](_0x4ef2d4));}async['saveOfflineData'](_0x15ef85,_0x2225fd){const _0x4de330=_0x26dd52;return!!this['_localStorageService'][_0x4de330(0xfb)](_0x15ef85,_0x2225fd);}['updateOfflineData'](_0x45ec7f,_0x318592,_0x54fc67,_0x2e37f5){const _0x2825a3=_0x26dd52,_0x3a8a5c=this[_0x2825a3(0x22e)][_0x2825a3(0x1d4)](_0x45ec7f);this['_cachedData'][_0x2825a3(0xf9)](_0x45ec7f,{'unitID':_0x45ec7f,'type':_0x318592,'awaitingChangeset':_0x54fc67,'mutations':_0x2e37f5,'rev':_0x3a8a5c}),this[_0x2825a3(0x14a)]['has'](_0x45ec7f)||this[_0x2825a3(0x2d8)](_0x45ec7f);}[_0x26dd52(0x2d8)](_0x492e99){const _0x176345=_0x26dd52,_0x2ee8fe=this[_0x176345(0x181)]();_0x2ee8fe===0x0?this[_0x176345(0x192)](_0x492e99):this[_0x176345(0x14a)][_0x176345(0xf9)](_0x492e99,setTimeout(()=>this[_0x176345(0x192)](_0x492e99),_0x2ee8fe));}[_0x26dd52(0x181)](){const _0xaf0ef7=_0x26dd52;var _0x2b0f5e;return(_0x2b0f5e=this[_0xaf0ef7(0x174)]['getConfig'](u[_0xaf0ef7(0xdf)]))!=null?_0x2b0f5e:u[_0xaf0ef7(0x2cb)];}[_0x26dd52(0x192)](_0x1d64d9){const _0x4319cf=_0x26dd52,_0x16c315=this[_0x4319cf(0x14a)][_0x4319cf(0x21b)](_0x1d64d9);return _0x16c315!==void 0x0&&window[_0x4319cf(0x30f)](_0x16c315),this[_0x4319cf(0x2eb)]['setItem'](u[_0x4319cf(0x20e)](_0x1d64d9),this[_0x4319cf(0x25c)][_0x4319cf(0x21b)](_0x1d64d9))[_0x4319cf(0x2d5)](()=>this[_0x4319cf(0x14a)][_0x4319cf(0x12b)](_0x1d64d9));}async[_0x26dd52(0x122)](){const _0x2bd163=_0x26dd52,_0x45bc2d=[];this[_0x2bd163(0x14a)][_0x2bd163(0x214)]((_0x4c337d,_0x45bdf8)=>{const _0x320939=_0x2bd163;window[_0x320939(0x30f)](_0x4c337d),_0x45bc2d['push'](this[_0x320939(0x192)](_0x45bdf8)['then'](()=>{const _0x226924=_0x320939;this[_0x226924(0x14a)][_0x226924(0x12b)](_0x45bdf8);}));}),await Promise[_0x2bd163(0x268)](_0x45bc2d);}};ge=Kt([_e(0x0,a[_0x26dd52(0x1be)]),_e(0x1,a[_0x26dd52(0x1f4)]),_e(0x2,a[_0x26dd52(0x2bf)](m['RevisionService']))],ge);class Be extends a[_0x26dd52(0x129)]{constructor(){const _0x743b9e=_0x26dd52;super(),h(this,_0x743b9e(0x261)),this[_0x743b9e(0x261)]=d['fromEvent'](window,_0x743b9e(0x102))[_0x743b9e(0x291)](d[_0x743b9e(0x251)](this['dispose$']),d[_0x743b9e(0x15a)](0x1),d['mapTo'](void 0x0));}[_0x26dd52(0x284)](_0x4d5630,_0x10507d,_0x47eed5=!0x1){const _0x46c923=_0x26dd52,_0x94e5bd=new URL(window[_0x46c923(0x270)]['href']);_0x94e5bd[_0x46c923(0x1b8)][_0x46c923(0xf9)](_0x4d5630,_0x10507d),_0x47eed5?window[_0x46c923(0x21e)][_0x46c923(0x20c)]('','',_0x94e5bd[_0x46c923(0x1c8)]()):window[_0x46c923(0x21e)][_0x46c923(0xe5)]('','',_0x94e5bd[_0x46c923(0x1c8)]());}[_0x26dd52(0x2ed)](_0x390f49,_0x5c600b=!0x1){const _0x265057=_0x26dd52,_0x2f1e7e=new URL(window[_0x265057(0x270)]['href']);_0x2f1e7e[_0x265057(0x1b8)][_0x265057(0x12b)](_0x390f49),_0x5c600b?window[_0x265057(0x21e)][_0x265057(0x20c)]('','',_0x2f1e7e[_0x265057(0x1c8)]()):window[_0x265057(0x21e)][_0x265057(0xe5)]('','',_0x2f1e7e[_0x265057(0x1c8)]());}[_0x26dd52(0x1fe)](_0x3e53f2){const _0x471c31=_0x26dd52;var _0x42fec7;return(_0x42fec7=new URL(window['location'][_0x471c31(0x126)])[_0x471c31(0x1b8)]['get'](_0x3e53f2))!=null?_0x42fec7:void 0x0;}}var qt=Object[_0x26dd52(0x2e5)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x4e4630,_0x47dbcc,_0x56b559)=>_0x47dbcc in _0x4e4630?qt(_0x4e4630,_0x47dbcc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56b559}):_0x4e4630[_0x47dbcc]=_0x56b559,Zt=(_0xfe29f1,_0xc805ca,_0x2b9290,_0x4850ce)=>{const _0x448b32=_0x26dd52;for(var _0x145c2b=_0x4850ce>0x1?void 0x0:_0x4850ce?zt(_0xc805ca,_0x2b9290):_0xc805ca,_0x16364e=_0xfe29f1[_0x448b32(0x1d5)]-0x1,_0x375263;_0x16364e>=0x0;_0x16364e--)(_0x375263=_0xfe29f1[_0x16364e])&&(_0x145c2b=_0x375263(_0x145c2b)||_0x145c2b);return _0x145c2b;},he=(_0x51da5b,_0x3efbe8)=>(_0x2c56a2,_0x15b312)=>_0x3efbe8(_0x2c56a2,_0x15b312,_0x51da5b),Qt=(_0x591368,_0x152e84,_0x37b4b1)=>Jt(_0x591368,_0x152e84+'',_0x37b4b1);const es=_0x26dd52(0xfe);exports[_0x26dd52(0x1d1)]=class extends a[_0x26dd52(0x1a1)]{constructor(_0x273fc5=Ue,_0x6a8568,_0x551b82,_0x4d25a2){const _0x2988ae=_0x26dd52;super(),this[_0x2988ae(0x244)]=_0x273fc5,this[_0x2988ae(0x1e8)]=_0x6a8568,this[_0x2988ae(0x14d)]=_0x551b82,this[_0x2988ae(0x174)]=_0x4d25a2;const {..._0x317d14}=a[_0x2988ae(0x1cf)]({},Ue,this[_0x2988ae(0x244)]);this['_configService']['setConfig']($t,_0x317d14);}[_0x26dd52(0x247)](){const _0x500eeb=_0x26dd52;this['_registerDependencies'](),this[_0x500eeb(0x119)]();}['onRendered'](){const _0x641cbd=_0x26dd52;this[_0x641cbd(0x1cc)]();}[_0x26dd52(0x2ff)](){const _0x4f4c82=_0x26dd52;var _0x2dfc11;const _0x573ba9=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G['ISocketService'],{'useClass':G['WebSocketService']}],[u[_0x4f4c82(0xc4)],{'useClass':ge}],[exports[_0x4f4c82(0x26c)]],[Q],[q],[x],[de],[exports[_0x4f4c82(0x303)]]];a[_0x4f4c82(0x26d)](this['_injector'],a[_0x4f4c82(0x193)](_0x573ba9,(_0x2dfc11=this[_0x4f4c82(0x244)])==null?void 0x0:_0x2dfc11[_0x4f4c82(0x283)]));}[_0x26dd52(0x1cc)](){const _0x5e7a4e=_0x26dd52;this[_0x5e7a4e(0x146)](this['_renderManagerService'][_0x5e7a4e(0x1f6)](a[_0x5e7a4e(0x2ae)]['UNIVER_DOC'],[fe])),this[_0x5e7a4e(0x146)](this[_0x5e7a4e(0x1e8)][_0x5e7a4e(0x1f6)](a[_0x5e7a4e(0x2ae)][_0x5e7a4e(0x27d)],[ve]));}[_0x26dd52(0x119)](){const _0xeb80=_0x26dd52;a[_0xeb80(0x282)](this[_0xeb80(0x14d)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0xeb80(0x303)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x26dd52(0x135),es),exports[_0x26dd52(0x1d1)]=Zt([a['DependentOn'](u[_0x26dd52(0x2cf)]),he(0x1,p[_0x26dd52(0xf1)]),he(0x2,a[_0x26dd52(0x2bf)](a[_0x26dd52(0x18b)])),he(0x3,a[_0x26dd52(0x1be)])],exports[_0x26dd52(0x1d1)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x85a4bc,_0x18abb8,_0x1ebccf,_0xa6fb45)=>{const _0x298277=_0x26dd52;for(var _0x4f45af=_0xa6fb45>0x1?void 0x0:_0xa6fb45?ts(_0x18abb8,_0x1ebccf):_0x18abb8,_0x4d59e1=_0x85a4bc[_0x298277(0x1d5)]-0x1,_0x4da3f3;_0x4d59e1>=0x0;_0x4d59e1--)(_0x4da3f3=_0x85a4bc[_0x4d59e1])&&(_0x4f45af=_0x4da3f3(_0x4f45af)||_0x4f45af);return _0x4f45af;},H=(_0x4ddd04,_0x2e399f)=>(_0x38b7e1,_0x5e3b70)=>_0x2e399f(_0x38b7e1,_0x5e3b70,_0x4ddd04);exports[_0x26dd52(0x2ab)]=class extends u['CollaborationSocketService']{constructor(_0x57c21f,_0x2f3544,_0x558078,_0x551d4a,_0x424cd4){super(_0x57c21f,_0x2f3544,_0x558078,_0x551d4a,_0x424cd4);}async[_0x26dd52(0xe3)](_0x12ede4){const _0x38e7f3=_0x26dd52,_0x48cbf6=await this['_getSessionTicket'](),_0x41ff47=this[_0x38e7f3(0x235)](_0x12ede4,_0x48cbf6);return this['_doCreateSocket'](_0x41ff47);}['_createSocketURL'](_0x1b35ed,_0x15f65f){const _0x4c626f=_0x26dd52,_0x44018b=typeof window>'u'?new URL(_0x1b35ed):new URL(_0x1b35ed,window[_0x4c626f(0x270)][_0x4c626f(0xe6)]);_0x44018b[_0x4c626f(0x1b8)][_0x4c626f(0xf9)](_0x4c626f(0x2be),_0x15f65f);const _0x31cd80=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4c626f(0x270)][_0x4c626f(0x2e6)]);return _0x31cd80[_0x4c626f(0x21b)](_0x4c626f(0x1c5))&&_0x44018b[_0x4c626f(0x1b8)][_0x4c626f(0xf9)](_0x4c626f(0x1c5),_0x31cd80[_0x4c626f(0x21b)](_0x4c626f(0x1c5))),_0x44018b['toString']();}async[_0x26dd52(0x167)](){const _0x188f12=_0x26dd52;var _0x29ddef,_0x1fe40f,_0x5b6cc5;const _0x25b47b=this['_configService'][_0x188f12(0x2c9)](u[_0x188f12(0x24c)]),_0x2193be=(_0x29ddef=_0x25b47b==null?void 0x0:_0x25b47b[_0x188f12(0x288)])!=null?_0x29ddef:u[_0x188f12(0x24b)];return(_0x5b6cc5=(_0x1fe40f=(await this[_0x188f12(0x29a)][_0x188f12(0x21b)](_0x2193be,{'headers':{'Content-Type':_0x188f12(0x171)}}))[_0x188f12(0xbd)])==null?void 0x0:_0x1fe40f[_0x188f12(0x1b3)])!=null?_0x5b6cc5:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a['Inject'](a[_0x26dd52(0x18b)])),H(0x1,a[_0x26dd52(0x2bf)](G[_0x26dd52(0x172)])),H(0x2,a[_0x26dd52(0x1be)]),H(0x3,a[_0x26dd52(0x150)]),H(0x4,m[_0x26dd52(0x188)])],exports[_0x26dd52(0x2ab)]);const Me=0x7530,Le=_0x26dd52(0x30a);class is extends a[_0x26dd52(0x1cb)]{constructor(){const _0x1343d2=_0x26dd52;super(),h(this,'_id',a[_0x1343d2(0x2af)]()),h(this,_0x1343d2(0x1ad),new Set()),h(this,_0x1343d2(0x321),new Map()),h(this,_0x1343d2(0x1b2),null),h(this,_0x1343d2(0x29c),new Map()),h(this,_0x1343d2(0x25a),new Map()),this[_0x1343d2(0x145)]();}[_0x26dd52(0x1e2)](){const _0x26f0ff=_0x26dd52;super[_0x26f0ff(0x1e2)](),this[_0x26f0ff(0x29c)]['forEach']((_0x1b876d,_0x12010d)=>this[_0x26f0ff(0xac)](_0x12010d)),this[_0x26f0ff(0x1b2)]&&window[_0x26f0ff(0x218)](this['_heartbeatTimer']);}[_0x26dd52(0xbf)](_0x1e19df){const _0x2f6825=_0x26dd52;return this[_0x2f6825(0xcc)](_0x1e19df)[_0x2f6825(0x291)](d[_0x2f6825(0x16c)]());}['editingUnit'](_0x4aba4e){const _0x1c2975=_0x26dd52;this['_selfUnitIDs'][_0x1c2975(0x1b7)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x1c2975(0x217)](_0x4aba4e),this['_send']({'type':0x0,'memberID':this[_0x1c2975(0xcb)],'unitIDs':[_0x4aba4e],'isForwarded':!0x1});}[_0x26dd52(0x305)](_0x261b54){const _0x4c3001=_0x26dd52;this[_0x4c3001(0x1ad)]['delete'](_0x261b54),this[_0x4c3001(0x1ad)]['size']===0x0&&this[_0x4c3001(0x1b2)]&&window[_0x4c3001(0x218)](this[_0x4c3001(0x1b2)]);}[_0x26dd52(0x145)](){const _0x5821e2=_0x26dd52;this[_0x5821e2(0x146)](a[_0x5821e2(0xc9)](d['fromEvent'](window,_0x5821e2(0x259))['subscribe'](_0x392cbd=>{const _0x47078b=_0x5821e2;if(_0x392cbd[_0x47078b(0xf6)]!==Le||!_0x392cbd[_0x47078b(0x2dc)])return;const _0x3b3c01=JSON[_0x47078b(0x187)](_0x392cbd['newValue']);this[_0x47078b(0x19a)](_0x3b3c01);}))),window[_0x5821e2(0x1ab)](_0x5821e2(0x323),()=>this['_send']({'type':0x1,'memberID':this[_0x5821e2(0xcb)],'unitIDs':Array[_0x5821e2(0x11e)](this[_0x5821e2(0x1ad)])}));}['_handleEvent'](_0x30e9d5){const _0x518c19=_0x26dd52;switch(_0x30e9d5[_0x518c19(0xdc)]){case 0x0:this[_0x518c19(0x1b1)](_0x30e9d5);break;case 0x1:this['_handleLeaveEvent'](_0x30e9d5);break;case 0x2:this['_handleHeartbeatEvent'](_0x30e9d5);break;}}[_0x26dd52(0x1b1)](_0x180e40){const _0x162673=_0x26dd52,{unitIDs:_0x409100,memberID:_0x25a4ba,isForwarded:_0x327625}=_0x180e40;_0x409100['forEach'](_0x11157b=>{const _0x2220fc=_0x178e;if(!_0x327625&&this[_0x2220fc(0x321)][_0x2220fc(0x220)](_0x11157b)&&this[_0x2220fc(0xcc)](_0x11157b)[_0x2220fc(0x184)](u[_0x2220fc(0x208)]['OTHER_CLIENTS_EDITING']),!this[_0x2220fc(0x321)]['has'](_0x11157b)||!this['_unitOnClients'][_0x2220fc(0x21b)](_0x11157b)[_0x2220fc(0x220)](_0x25a4ba)){const _0x3ad21f=this[_0x2220fc(0x321)][_0x2220fc(0x21b)](_0x11157b)||new Set();_0x3ad21f[_0x2220fc(0x217)](_0x25a4ba),this[_0x2220fc(0x321)][_0x2220fc(0xf9)](_0x11157b,_0x3ad21f),this[_0x2220fc(0xec)](_0x25a4ba);}}),_0x327625||this[_0x162673(0x314)]({'type':0x0,'memberID':this[_0x162673(0xcb)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x26dd52(0xec)](_0x24a572){const _0xe2e35b=_0x26dd52;this['_removeClearOtherTimer'](_0x24a572);const _0x1d0d51=window[_0xe2e35b(0x24e)](()=>{const _0x3c4374=_0xe2e35b;this['_unitOnClients'][_0x3c4374(0x214)](_0x1870e0=>{const _0x3c5c4c=_0x3c4374;_0x1870e0[_0x3c5c4c(0x12b)](_0x24a572);});},Me*0x2);this[_0xe2e35b(0x29c)]['set'](_0x24a572,_0x1d0d51);}[_0x26dd52(0xac)](_0x236543){const _0x39a00d=_0x26dd52;if(this[_0x39a00d(0x29c)][_0x39a00d(0x220)](_0x236543)){const _0xe3988b=this[_0x39a00d(0x29c)][_0x39a00d(0x21b)](_0x236543);_0xe3988b&&window[_0x39a00d(0x30f)](_0xe3988b),this[_0x39a00d(0x29c)]['set'](_0x236543,null);}}[_0x26dd52(0x2a8)](_0x103475){const _0x1a0afb=_0x26dd52,{memberID:_0x55d702,unitIDs:_0x58c25a}=_0x103475;_0x58c25a[_0x1a0afb(0x214)](_0x258683=>{const _0x6bcfc2=_0x1a0afb;var _0x26d684;const _0x3c0171=this['_unitOnClients'][_0x6bcfc2(0x21b)](_0x258683);_0x3c0171&&(_0x3c0171[_0x6bcfc2(0x12b)](_0x55d702),(_0x26d684=this['_ensureSubject'](_0x258683))==null||_0x26d684[_0x6bcfc2(0x184)](_0x3c0171[_0x6bcfc2(0x1b7)]===0x0?u[_0x6bcfc2(0x208)]['NO_OTHER_CLIENTS_EDITING']:u[_0x6bcfc2(0x208)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x55d702);}[_0x26dd52(0x2df)](_0x5d81da){const _0x1bec23=_0x26dd52;this['_scheduleClearOtherTimer'](_0x5d81da[_0x1bec23(0x155)]);}['_send'](_0x3bd2a9){const _0x3fabbd=_0x26dd52;localStorage[_0x3fabbd(0xfb)](Le,JSON[_0x3fabbd(0x2f6)](_0x3bd2a9));}[_0x26dd52(0x31a)](){const _0x5854d9=_0x26dd52;this['_heartbeatTimer']=window[_0x5854d9(0x194)](()=>{const _0x594cdd=_0x5854d9;this[_0x594cdd(0x314)]({'type':0x2,'memberID':this[_0x594cdd(0xcb)]});},Me);}[_0x26dd52(0xcc)](_0x136062){const _0x4917f4=_0x26dd52;return this[_0x4917f4(0x25a)][_0x4917f4(0x220)](_0x136062)||this['_unitStatus']['set'](_0x136062,new d[(_0x4917f4(0x302))](u[_0x4917f4(0x208)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x4917f4(0x21b)](_0x136062);}}var je=(_0x435b5a=>(_0x435b5a[_0x435b5a['UNDEFINED']=0x0]=_0x26dd52(0x278),_0x435b5a[_0x435b5a['OK']=0x1]='OK',_0x435b5a[_0x435b5a[_0x26dd52(0x2f1)]=0x2]=_0x26dd52(0x2f1),_0x435b5a[_0x435b5a['PERMISSION_DENIED']=0x3]=_0x26dd52(0x315),_0x435b5a[_0x435b5a['NOT_FOUND']=0x4]=_0x26dd52(0x326),_0x435b5a[_0x435b5a['UNAUTHENTICATED']=0x5]=_0x26dd52(0x21a),_0x435b5a[_0x435b5a['ALREADY_EXISTS']=0x6]=_0x26dd52(0x106),_0x435b5a[_0x435b5a[_0x26dd52(0x324)]=0x7]='INVALID_ARGUMENT',_0x435b5a[_0x435b5a[_0x26dd52(0x312)]=0x8]=_0x26dd52(0x312),_0x435b5a[_0x435b5a[_0x26dd52(0xe1)]=0x9]=_0x26dd52(0xe1),_0x435b5a[_0x435b5a[_0x26dd52(0x237)]=0xa]=_0x26dd52(0x237),_0x435b5a[_0x435b5a[_0x26dd52(0x26e)]=0xb]=_0x26dd52(0x26e),_0x435b5a[_0x435b5a[_0x26dd52(0xcf)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x435b5a[_0x435b5a[_0x26dd52(0x1c9)]=0xd]=_0x26dd52(0x1c9),_0x435b5a[_0x435b5a[_0x26dd52(0x159)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x435b5a[_0x435b5a[_0x26dd52(0xf7)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x435b5a[_0x435b5a['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x26dd52(0x272),_0x435b5a[_0x435b5a['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x26dd52(0x2cd),_0x435b5a[_0x435b5a[_0x26dd52(0x32d)]=0x1773]=_0x26dd52(0x32d),_0x435b5a[_0x435b5a[_0x26dd52(0x1b5)]=0x1b59]=_0x26dd52(0x1b5),_0x435b5a[_0x435b5a['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x26dd52(0x2b7),_0x435b5a[_0x435b5a[_0x26dd52(0x18c)]=0x1b5b]=_0x26dd52(0x18c),_0x435b5a[_0x435b5a[_0x26dd52(0x286)]=0x1b5c]=_0x26dd52(0x286),_0x435b5a[_0x435b5a[_0x26dd52(0x21d)]=0x1b5d]='APPLY_DUPLICATED',_0x435b5a[_0x435b5a[_0x26dd52(0x107)]=0x1f41]=_0x26dd52(0x107),_0x435b5a[_0x435b5a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x26dd52(0x2aa),_0x435b5a[_0x435b5a[_0x26dd52(0x1b4)]=0x232a]=_0x26dd52(0x1b4),_0x435b5a[_0x435b5a[_0x26dd52(0x1d8)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x435b5a[_0x435b5a['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x435b5a[_0x435b5a[_0x26dd52(0x144)]=0x232d]=_0x26dd52(0x144),_0x435b5a[_0x435b5a['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x26dd52(0x227),_0x435b5a[_0x435b5a[_0x26dd52(0xff)]=0x2712]=_0x26dd52(0xff),_0x435b5a[_0x435b5a[_0x26dd52(0x1c2)]=0x2713]=_0x26dd52(0x1c2),_0x435b5a[_0x435b5a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x26dd52(0x32b),_0x435b5a[_0x435b5a[_0x26dd52(0x156)]=0x271a]=_0x26dd52(0x156),_0x435b5a[_0x435b5a['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x26dd52(0x199),_0x435b5a[_0x435b5a[_0x26dd52(0x2ad)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x435b5a[_0x435b5a[_0x26dd52(0xf3)]=0x271d]=_0x26dd52(0xf3),_0x435b5a[_0x435b5a[_0x26dd52(0x30b)]=0x271e]=_0x26dd52(0x30b),_0x435b5a[_0x435b5a[_0x26dd52(0x16e)]=0x271f]=_0x26dd52(0x16e),_0x435b5a[_0x435b5a['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x26dd52(0x1ba),_0x435b5a[_0x435b5a[_0x26dd52(0x1fd)]=0x2af9]=_0x26dd52(0x1fd),_0x435b5a[_0x435b5a[_0x26dd52(0xda)]=0x2ee1]=_0x26dd52(0xda),_0x435b5a[_0x435b5a['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x435b5a[_0x435b5a[_0x26dd52(0x147)]=0x2ee3]=_0x26dd52(0x147),_0x435b5a[_0x435b5a[_0x26dd52(0xc6)]=0x2ee4]=_0x26dd52(0xc6),_0x435b5a[_0x435b5a[_0x26dd52(0x178)]=0x2ee5]=_0x26dd52(0x178),_0x435b5a[_0x435b5a[_0x26dd52(0x2b8)]=0x32c9]=_0x26dd52(0x2b8),_0x435b5a[_0x435b5a[_0x26dd52(0x2bd)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x435b5a[_0x435b5a[_0x26dd52(0x103)]=0x32cb]=_0x26dd52(0x103),_0x435b5a[_0x435b5a['UNRECOGNIZED']=-0x1]=_0x26dd52(0x308),_0x435b5a))(je||{}),ns=Object[_0x26dd52(0xf0)],rs=(_0x5e36f5,_0x16dab3,_0x5823e5,_0x2343bb)=>{for(var _0xc38848=_0x2343bb>0x1?void 0x0:_0x2343bb?ns(_0x16dab3,_0x5823e5):_0x16dab3,_0xff239=_0x5e36f5['length']-0x1,_0x43dbeb;_0xff239>=0x0;_0xff239--)(_0x43dbeb=_0x5e36f5[_0xff239])&&(_0xc38848=_0x43dbeb(_0xc38848)||_0xc38848);return _0xc38848;},ue=(_0x2c5aa8,_0x1a856d)=>(_0x837ba4,_0x4561fe)=>_0x1a856d(_0x837ba4,_0x4561fe,_0x2c5aa8);exports[_0x26dd52(0xc8)]=class extends a['Disposable']{constructor(_0x11454f,_0x371f73,_0x521713){super(),this['_instanceService']=_0x11454f,this['_httpService']=_0x371f73,this['_configService']=_0x521713;}async[_0x26dd52(0x128)](_0x4292e5,_0x3b3bd6,_0x549b91,..._0x32bbd7){const _0x1a7b45=_0x26dd52;var _0x413616,_0x2b0a76,_0x319d07,_0x11d89f;const _0x23a87e=this[_0x1a7b45(0xdd)][_0x1a7b45(0x111)]();if(!_0x23a87e)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x1079b0=((_0x413616=this['_configService'][_0x1a7b45(0x2c9)](u[_0x1a7b45(0xad)]))!=null?_0x413616:u[_0x1a7b45(0x2a9)])+'/'+_0x4292e5+_0x1a7b45(0x2db)+_0x3b3bd6,_0x147042=new URL(window['location'][_0x1a7b45(0x126)]),_0x1e24ed={'scriptId':_0x4292e5,'runId':(_0x2b0a76=_0x147042[_0x1a7b45(0x1b8)][_0x1a7b45(0x21b)](_0x1a7b45(0x1c5)))!=null?_0x2b0a76:'','function':_0x3b3bd6,'unitId':_0x23a87e[_0x1a7b45(0xee)](),'argsOfFunction':JSON[_0x1a7b45(0x2f6)](_0x32bbd7),'invokeId':(_0x319d07=_0x549b91[_0x1a7b45(0x13a)])!=null?_0x319d07:'','executionId':(_0x11d89f=_0x549b91[_0x1a7b45(0x28f)])!=null?_0x11d89f:''};try{const _0x440b7b=await this[_0x1a7b45(0x29a)]['post'](_0x1079b0,{'body':_0x1e24ed});return _0x440b7b['body'][_0x1a7b45(0x12c)]&&_0x440b7b[_0x1a7b45(0xbd)][_0x1a7b45(0x12c)]['code']!==je['OK']?_0x1a7b45(0x22c):_0x440b7b[_0x1a7b45(0xbd)]['result'];}catch{return _0x1a7b45(0x22c);}}},exports[_0x26dd52(0xc8)]=rs([ue(0x0,a[_0x26dd52(0x121)]),ue(0x1,a[_0x26dd52(0x2bf)](G[_0x26dd52(0x172)])),ue(0x2,a[_0x26dd52(0x1be)])],exports['RemoteUniscriptService']),exports['CollaborationStatusDisplay']=xe,exports[_0x26dd52(0x10b)]=Ee,exports[_0x26dd52(0x267)]=we,exports[_0x26dd52(0x2bb)]=is,exports[_0x26dd52(0x10d)]=Be;
@@ -1 +1 @@
1
- 'use strict';const _0x41e584=_0x29d6;(function(_0x5743a8,_0x3f33b4){const _0x288151=_0x29d6,_0x43775e=_0x5743a8();while(!![]){try{const _0x21bcaf=parseInt(_0x288151(0xdc))/0x1*(parseInt(_0x288151(0xce))/0x2)+-parseInt(_0x288151(0xd7))/0x3+-parseInt(_0x288151(0xcb))/0x4+-parseInt(_0x288151(0xcf))/0x5*(-parseInt(_0x288151(0xd4))/0x6)+-parseInt(_0x288151(0xd1))/0x7+-parseInt(_0x288151(0xd8))/0x8+parseInt(_0x288151(0xcc))/0x9;if(_0x21bcaf===_0x3f33b4)break;else _0x43775e['push'](_0x43775e['shift']());}catch(_0x520f52){_0x43775e['push'](_0x43775e['shift']());}}}(_0x4bc4,0x8dc2e));function _0x29d6(_0x2c7590,_0x1c0d27){const _0x4bc49f=_0x4bc4();return _0x29d6=function(_0x29d68d,_0x42ece6){_0x29d68d=_0x29d68d-0xcb;let _0x43536c=_0x4bc49f[_0x29d68d];return _0x43536c;},_0x29d6(_0x2c7590,_0x1c0d27);}function _0x4bc4(){const _0x2e832e=['9029RRCXIm','exports','Connection\x20failed,\x20please\x20check\x20your\x20network.','Syncing...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Syncing\x20server\x20data...','1008012ZNzKKP','14956479ICAvXS','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','164SvcsTt','775zJQVMH','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','7470771kNixsb','Local\x20file','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','10866fIcVPO','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','702720YMjDRL','4390112PuxYOg','Authentication\x20Error','Click\x20to\x20Reconnect','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'];_0x4bc4=function(){return _0x2e832e;};return _0x4bc4();}const e={'collab-client':{'tooltip':{'reconnect':_0x41e584(0xda)}},'collabStatus':{'fetchMiss':_0x41e584(0xe1),'conflict':'Edit\x20conflicts','notCollab':_0x41e584(0xd2),'synced':'Synced','syncing':_0x41e584(0xdf),'offline':_0x41e584(0xd0)},'session':{'connection-failed':_0x41e584(0xde),'will-retry':_0x41e584(0xd5),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x41e584(0xdb)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x41e584(0xd6)},'permission':{'title':_0x41e584(0xd9),'content':_0x41e584(0xd3)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x41e584(0xe0)},'auth':{'needGotoLoginAlert':_0x41e584(0xcd)}};module[_0x41e584(0xdd)]=e;
1
+ 'use strict';const _0xf7737f=_0x502b;function _0x1ac8(){const _0x24d723=['Syncing\x20server\x20data...','618svuqcP','16WgEMdg','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Authentication\x20Error','Collaboration\x20Conflict','8428fSTKQS','Click\x20to\x20Reconnect','Connection\x20failed,\x20please\x20check\x20your\x20network.','297023IQGdOa','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Synced','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Edit\x20conflicts','exports','1013215gDmOXQ','Syncing...','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','2590026NzseWb','2655865XgpTft','Local\x20file','4846338LcpiiL','607726FEnrBs'];_0x1ac8=function(){return _0x24d723;};return _0x1ac8();}(function(_0x28847d,_0x4289bf){const _0x460cab=_0x502b,_0x2335b7=_0x28847d();while(!![]){try{const _0x3bafe8=parseInt(_0x460cab(0x19e))/0x1+parseInt(_0x460cab(0x1ac))/0x2+parseInt(_0x460cab(0x195))/0x3*(-parseInt(_0x460cab(0x19b))/0x4)+parseInt(_0x460cab(0x1a9))/0x5+parseInt(_0x460cab(0x1a8))/0x6+-parseInt(_0x460cab(0x1a4))/0x7*(parseInt(_0x460cab(0x196))/0x8)+-parseInt(_0x460cab(0x1ab))/0x9;if(_0x3bafe8===_0x4289bf)break;else _0x2335b7['push'](_0x2335b7['shift']());}catch(_0x346adb){_0x2335b7['push'](_0x2335b7['shift']());}}}(_0x1ac8,0x49a94));function _0x502b(_0x5eea2a,_0x4ed49a){const _0x1ac833=_0x1ac8();return _0x502b=function(_0x502b3b,_0x45b7ca){_0x502b3b=_0x502b3b-0x194;let _0x8bfd4d=_0x1ac833[_0x502b3b];return _0x8bfd4d;},_0x502b(_0x5eea2a,_0x4ed49a);}const e={'collab-client':{'tooltip':{'reconnect':_0xf7737f(0x19c)}},'collabStatus':{'fetchMiss':_0xf7737f(0x194),'conflict':_0xf7737f(0x1a2),'notCollab':_0xf7737f(0x1aa),'synced':_0xf7737f(0x1a0),'syncing':_0xf7737f(0x1a5),'offline':_0xf7737f(0x198)},'session':{'connection-failed':_0xf7737f(0x19d),'will-retry':_0xf7737f(0x19f),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0xf7737f(0x19a),'content':_0xf7737f(0x1a6)},'permission':{'title':_0xf7737f(0x199),'content':_0xf7737f(0x1a1)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0xf7737f(0x1a7)},'auth':{'needGotoLoginAlert':_0xf7737f(0x197)}};module[_0xf7737f(0x1a3)]=e;