@univerjs-pro/collaboration-client-ui 0.8.1-nightly.202506181607 → 0.8.1-nightly.202506191607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x50ff00=_0x50ef;(function(_0x382aae,_0x2e51ed){const _0x445118=_0x50ef,_0x3a9c15=_0x382aae();while(!![]){try{const _0x263022=-parseInt(_0x445118(0x16b))/0x1+-parseInt(_0x445118(0x172))/0x2*(parseInt(_0x445118(0x179))/0x3)+parseInt(_0x445118(0x173))/0x4*(-parseInt(_0x445118(0x175))/0x5)+parseInt(_0x445118(0x16e))/0x6*(-parseInt(_0x445118(0x16d))/0x7)+parseInt(_0x445118(0x177))/0x8+parseInt(_0x445118(0x16c))/0x9*(-parseInt(_0x445118(0x16a))/0xa)+parseInt(_0x445118(0x17a))/0xb*(parseInt(_0x445118(0x171))/0xc);if(_0x263022===_0x2e51ed)break;else _0x3a9c15['push'](_0x3a9c15['shift']());}catch(_0x198b2d){_0x3a9c15['push'](_0x3a9c15['shift']());}}}(_0x426f,0xe559c));const t=require(_0x50ff00(0x16f)),e=require(_0x50ff00(0x169));function _0x50ef(_0x80f852,_0x2b176e){const _0x426f6c=_0x426f();return _0x50ef=function(_0x50ef59,_0x35d561){_0x50ef59=_0x50ef59-0x168;let _0x4faa45=_0x426f6c[_0x50ef59];return _0x4faa45;},_0x50ef(_0x80f852,_0x2b176e);}class c extends e[_0x50ff00(0x176)]{[_0x50ff00(0x174)](_0x582654,_0x348540,..._0x43927a){const _0x41df25=_0x50ff00;return this['_injector'][_0x41df25(0x178)](t[_0x41df25(0x168)])[_0x41df25(0x174)](_0x582654,_0x348540,{},..._0x43927a);}}function _0x426f(){const _0x323a13=['@univerjs-pro/collaboration-client-ui','extend','12IvVcUY','6ITtoqV','4zSBwJr','runOnServer','5101355AegFrY','FUniver','5604936iIOBMo','get','190251NgjcLx','51545747EuLvyZ','RemoteUniscriptService','@univerjs/core/facade','133240Ewjpcg','1617632SSxFkV','738iEzSzA','307097DDRBRB','72ccTLOI'];_0x426f=function(){return _0x323a13;};return _0x426f();}e[_0x50ff00(0x176)][_0x50ff00(0x170)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4bef21=_0x4804;(function(_0x5917a6,_0xfc7cd5){const _0x532c37=_0x4804,_0x2fc5be=_0x5917a6();while(!![]){try{const _0x5c32ae=parseInt(_0x532c37(0x3e9))/0x1*(parseInt(_0x532c37(0x278))/0x2)+parseInt(_0x532c37(0x231))/0x3+-parseInt(_0x532c37(0x327))/0x4*(-parseInt(_0x532c37(0x3ef))/0x5)+-parseInt(_0x532c37(0x274))/0x6*(parseInt(_0x532c37(0x3f0))/0x7)+parseInt(_0x532c37(0x2c7))/0x8+parseInt(_0x532c37(0x356))/0x9+-parseInt(_0x532c37(0x329))/0xa;if(_0x5c32ae===_0xfc7cd5)break;else _0x2fc5be['push'](_0x2fc5be['shift']());}catch(_0x516935){_0x2fc5be['push'](_0x2fc5be['shift']());}}}(_0x196b,0x73a48));var Ve=Object[_0x4bef21(0x20c)],Xe=(_0x1adc25,_0x43b4af,_0x2c6593)=>_0x43b4af in _0x1adc25?Ve(_0x1adc25,_0x43b4af,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c6593}):_0x1adc25[_0x43b4af]=_0x2c6593,h=(_0x1c775b,_0x54af83,_0x2de2bc)=>Xe(_0x1c775b,typeof _0x54af83!=_0x4bef21(0x247)?_0x54af83+'':_0x54af83,_0x2de2bc);Object[_0x4bef21(0x20c)](exports,Symbol[_0x4bef21(0x2be)],{'value':_0x4bef21(0x236)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x4bef21(0x467)),p=require('@univerjs/engine-render'),G=require(_0x4bef21(0x46c)),b=require(_0x4bef21(0x221)),Ge=require(_0x4bef21(0x45c)),d=require(_0x4bef21(0x43a)),Y=require(_0x4bef21(0x37f)),m=require(_0x4bef21(0x246)),Ee=require(_0x4bef21(0x37e)),g=require(_0x4bef21(0x387)),$=require(_0x4bef21(0x420)),X=require(_0x4bef21(0x235)),w=require(_0x4bef21(0x272)),T=require('@univerjs/ui'),D=require(_0x4bef21(0x33c)),M=require(_0x4bef21(0x41e)),Ke=require(_0x4bef21(0x2b3));var qe=Object[_0x4bef21(0x469)],ze=(_0x462ac9,_0xd6980f,_0xaf6560,_0x12eb41)=>{for(var _0x3ed4e4=_0x12eb41>0x1?void 0x0:_0x12eb41?qe(_0xd6980f,_0xaf6560):_0xd6980f,_0x5862b6=_0x462ac9['length']-0x1,_0x19c126;_0x5862b6>=0x0;_0x5862b6--)(_0x19c126=_0x462ac9[_0x5862b6])&&(_0x3ed4e4=_0x19c126(_0x3ed4e4)||_0x3ed4e4);return _0x3ed4e4;},Te=(_0x3fc4c5,_0x66df50)=>(_0x5b9b69,_0x319c7b)=>_0x66df50(_0x5b9b69,_0x319c7b,_0x3fc4c5);let de=class extends a['RxDisposable']{constructor(_0x15788,_0x238d30){const _0x24ca1b=_0x4bef21;super(),this[_0x24ca1b(0x39f)]=_0x15788,this[_0x24ca1b(0x3f6)]=_0x238d30,this[_0x24ca1b(0x2c4)]();}[_0x4bef21(0x2c4)](){const _0x3c4de9=_0x4bef21,_0x40f1e7=this;this[_0x3c4de9(0x291)](this[_0x3c4de9(0x39f)]['addClipboardHook']({'onBeforePasteImage':async _0x2197f5=>{const _0x188cb8=_0x3c4de9,_0xb35ef1=await _0x40f1e7['_imageIoService'][_0x188cb8(0x294)](_0x2197f5);return _0xb35ef1?{'source':_0xb35ef1[_0x188cb8(0x1f5)],'imageSourceType':_0xb35ef1[_0x188cb8(0x2bc)]}:null;}}));}};de=ze([Te(0x0,b[_0x4bef21(0x3e8)]),Te(0x1,Ge[_0x4bef21(0x284)])],de);const Oe=[_0x4bef21(0x2ff),_0x4bef21(0x216),_0x4bef21(0x1db),_0x4bef21(0x43c),_0x4bef21(0x30c),_0x4bef21(0x3b9)];class me extends a[_0x4bef21(0x2f3)]{constructor(){const _0x36d9be=_0x4bef21;super(...arguments),h(this,_0x36d9be(0x353),new Map()),h(this,_0x36d9be(0x337),0x0);}['assignAColorForMemberID'](_0xaff081){const _0x3b416e=_0x4bef21;if(this[_0x3b416e(0x353)][_0x3b416e(0x2ca)](_0xaff081))return this[_0x3b416e(0x353)][_0x3b416e(0x2d6)](_0xaff081);const _0x58a4db=Oe[this[_0x3b416e(0x337)]];return this[_0x3b416e(0x337)]=(this[_0x3b416e(0x337)]+0x1)%Oe[_0x3b416e(0x2a3)],this['_assignedColors'][_0x3b416e(0x323)](_0xaff081,_0x58a4db),_0x58a4db;}}function we(_0x3687b2){const _0x1b8658=_0x4bef21;let _0x160441='';for(const _0x33deb7 of _0x3687b2){const {startOffset:_0x1d7230,endOffset:_0x16eba5,isActive:_0x4520d1,rangeType:_0x489681,segmentId:_0x3299b6,segmentPage:_0x2b755c}=_0x33deb7;_0x160441[_0x1b8658(0x2a3)]&&(_0x160441+=','),_0x160441+=_0x1d7230+':'+_0x16eba5+':'+(_0x4520d1?'1':'0')+':'+_0x489681+':'+_0x3299b6+':'+_0x2b755c;}return _0x160441;}function Je(_0x5f1c61){const _0x1ae113=_0x4bef21,_0x157151=_0x5f1c61[_0x1ae113(0x256)](','),_0x36d740=[];for(const _0x2e9436 of _0x157151){const [_0x180e11,_0x3c3a8c,_0x226be7,_0x5380c4,_0x464fcd,_0x47e18d]=_0x2e9436[_0x1ae113(0x256)](':');_0x36d740[_0x1ae113(0x38b)]({'startOffset':Number(_0x180e11),'endOffset':Number(_0x3c3a8c),'collapsed':_0x180e11===_0x3c3a8c,'isActive':_0x226be7==='1','rangeType':_0x5380c4===a[_0x1ae113(0x408)][_0x1ae113(0x3de)]?a[_0x1ae113(0x408)][_0x1ae113(0x3de)]:a[_0x1ae113(0x408)][_0x1ae113(0x2e8)],'segmentId':typeof _0x464fcd==_0x1ae113(0x33a)?String(_0x464fcd):'','segmentPage':Number(_0x47e18d!=null?_0x47e18d:-0x1)});}return _0x36d740['some'](_0x39cbed=>_0x39cbed['isActive'])||(_0x36d740[0x0][_0x1ae113(0x25a)]=!0x0),_0x36d740;}class Ce extends a[_0x4bef21(0x418)]{constructor(){const _0x453291=_0x4bef21;super(...arguments),h(this,'_collabCursorState$',new d[(_0x453291(0x385))](null)),h(this,_0x453291(0x212),this[_0x453291(0x2cc)]['asObservable']());}[_0x4bef21(0x3d5)](_0x3099b1){const _0x1b8cd5=_0x4bef21,{unitID:_0x28331c,memberID:_0x2d4528,textRanges:_0x49323c}=_0x3099b1,_0x4b72e5=we(_0x49323c);if(_0x4b72e5==='')return;const _0x5d711a={'unitID':_0x28331c,'memberID':_0x2d4528,'selection':_0x4b72e5};this['_collabCursorState$'][_0x1b8cd5(0x394)](_0x5d711a);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x284b85,_0xd12814,_0x3dc25c,_0x5dcc58)=>{for(var _0xe877cc=_0x5dcc58>0x1?void 0x0:_0x5dcc58?Ze(_0xd12814,_0x3dc25c):_0xd12814,_0x2c7c23=_0x284b85['length']-0x1,_0x2b204a;_0x2c7c23>=0x0;_0x2c7c23--)(_0x2b204a=_0x284b85[_0x2c7c23])&&(_0xe877cc=_0x2b204a(_0xe877cc)||_0xe877cc);return _0xe877cc;},L=(_0x270078,_0xcbbd75)=>(_0x4ab702,_0xbf3bda)=>_0xcbbd75(_0x4ab702,_0xbf3bda,_0x270078);function _0x196b(){const _0x65d88a=['BehaviorSubject','collab-text-anchor-','@univerjs/sheets','_eventUnsubscribe','LOGIN_FAILED','_entityInit$','push','onPointerLeave$','collab-text-range-','APPLY_PERMISSION_DENIED','createSocket','INotificationService','ICommandService','ISnapshotServerService','_collaborationController','next','then','_sheetSkeletonManagerService','_instanceService','LOCAL_CACHE_INTERVAL_KEY','_drawTextRange','subscribeEvent','_messageService','IBeforeCloseService','attrs','none','_docClipboardService','extend','getItem','currentTheme$','svg','_saveCache','debounceTime','_id','NOT_COLLAB','onCommandExecuted','_hideTimer','transformSelections','Rectangle','_cursorInfo$','OTHER_CLIENT_EDITING','colorChannel1','isEditing','CollaborationSocketService','OffLineIcon','NodePositionConvertToCursor','ITransformService','translate(.97)','getLocalCacheKey','handleMoveRange','ONLINE','ThemeService','yellow.400','black','collabStatus.offline','_initCommandExecutedListener','IUniverInstanceService','round','registerDependencies','handleInsertRangeMoveRight','MOBILE_HAS_BEEN_BOUND','unit','_anchor','cursorInfo$','setActiveRange','deepClone','_removeCollabCursors','fillRule','DeleteRangeMoveUpCommandId','selection','m2Prime','transformStateCache','_onCursorUpdate','_docTransformSelectionsService','entityInit$','saveOfflineData','getMember','unitID','SYNCED','TRANSFORM_CHANGE_OBSERVABLE_TYPE','syncEditingCollabCursor','CollaborationController','FETCH_MISS','AWAITING','_transformService','replaceState','getCurrentSelections','getUnitStatus$','ENSURE_SNAPSHOT_EXECUTION','TEXT','_createSocketURL','createInstance','CollaborationStatus','onLocalMutation','hasOwnProperty','permission.title','_handleEvent','fromEvent','fillStyle','IDocClipboardService','841UlGfBU','setStateCache','WebSocketService','cursorInfo','_getAnchorBounding','_onRefRangeChange','5qNWWDq','189zKaEJS','_collabSessionService','subscribe','_updateSubUnitFromURLParams','params','restore','_imageIoService','className','collaboration.single-unit.warning','fillText','_anchorDot','arc','mask','_drawRectRange','ticket','_getSaveTimeout','idSuffix','size','MessageType','_renderManagerService','FromArray','ILocalCacheService','Tools','UniverIcon','DOC_RANGE_TYPE','univerjs-icon\x20univerjs-icon-','getParam','_getMergeRange','m1Prime','removeParam','_removeClearOtherTimer','_univerInstanceService','_initStatusListener','UniverInstanceType','with','endColumn','concat','searchParams','UnitStatus','current','RxDisposable','getColor','focused$','exhaustSavingTask','HTTPService','_localCacheService','react','EMAIL_HAS_BEEN_BOUND','rxjs/operators','DocCollaborationEntity','COLORS','handleIRemoveRow','assign','PENDING','getRangePointData','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','width','_commandService','SheetsSelectionsService','handleDeleteRangeMoveUp','collabStatus.conflict','LICENSE_EXPORT_SIZE_EXCEEDED','collaboration-client-ui.config','onMouseMove','getVpScrollXYInfoByPosToVp','getSheetObject','_clearOtherTimers','href','_backgroundColor','CLOSE_ROOM','LICENSE_IMPORT_SIZE_EXCEEDED','apply','_color','clearTimeout','rxjs','generateRandomId','red.300','registerRenderModule','_initEntityListener','ranges','moveTo','unitId','error','handleInsertRangeMoveDown','labelPosition','MoveRangeCommandId','_colorAssignService','save','getTypeOfUnitDisposed$','_registerDependencies','transformRemoteChangeset','_docTransformStateCacheService','_toggleOffline','Warning','_cachedData','entries','isTransformMutationsWithChangesetSuccess','pushState','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','collabStatus.notCollab','getUndoRedoMutationParamsCache','DocIMEInputManagerService','INVITE_CODE_ALREADY_BOUND','InsertRangeMoveRightCommandId','COMPLETION_FINISHED','onPointerMove$','add','YUUMI_SUBSCRIPTION_NOT_FOUND','@univerjs/drawing','_ensureSubject','SetDocZoomRatioOperation','handleInsertCol','DocSelectionManagerService','displayName','UniverCollaborationClientPlugin','_draw','CHANGESET_REVISION_CONFILICT','requireSession','_context','@univerjs/core','div','getOwnPropertyDescriptor','WECHAT_HAS_BEEN_BOUND','executionId','@univerjs/network','getMemberID','deserializeRangeWithSheet','_document','children','reconnect','green.600','Failed','SNAPSHOT_HAS_BEEN_REMOVED','flatMap','contains','HEADER_MENU','getUnitId','name','IRenderManagerService','_notificationService','getCurrentUnitForType','debug','setTimeout','clearInterval','_docSkeleton','_labelPosition','APPLY_REJECT','getTypeOfUnitAdded$','_initDependencies','setAlpha','_initEvent','handleIRemoveCol','IMessageService','selections','_updateURLWithCurrentState','getCollabCursors$','source','tag','_getSessionTicket','getRenderById','CommandType','getSheetId','getCoordByCell','SessionStatus','urlChange$','_docSkeletonManagerService','engine','_initStatusComponent','disableLocalCache','doc.mutation.rich-text-editing','_render','url(#off-line-icon_clip0_910_343)','collab-rect-range-','IRemoteInstanceService','getStateCache','LICENSE_DISTRO_REJECTED','_startSheetCollabCursor','endRow','_handleLeaveEvent','defineProperty','_refRangeService','text','http://www.w3.org/2000/svg','uni.network.url-service','session.collaboration-timeout','collabCursorState$','useDependency','delete','init','jiqing.500','APPLY_REVISION_CONFILICT','DocStateChangeManagerService','_disabled','_send','OFFLINE','_cursorShapes','beginPath','CONFLICT','_cursors','key','@univerjs/docs-ui','YUUMI_UNABLE_LOAD_URL','call','Tooltip','_session','BrowserCollaborationSocketService','_getSheetObject','_online','setShapeProps','LocaleService','ColorKit','send','setParam','code','toDisposable','collaboration.closeRoom','2490297hLUQLz','INVITE_CODE_REQUIRED','_unitOnClients','_heartbeatTimer','@univerjs/sheets-ui','Module','transformMutation','_textBubble','setConfig','_injector','storage','toString','INTERNAL_ERROR','collaboration-client.offline-data-not-saved','distinctUntilChanged','session.connection-failed','SOCKET_FAILED','WebURLService','addObject','subunit','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','@univerjs-pro/collaboration','symbol','Inject','redoState','SetWorksheetActivateCommand','collabStatus.syncing','APPLY_NON_SEQUENTIAL_REVISION','defs','0\x200\x2016\x2016','find','Injector','USER_NOT_INVITED_CODE','trim','_docSyncEditingCollabCursorService','switchMap','InsertColCommandId','split','[CollaborationDataLoaderController]','loadUnit','_unitStatus','isActive','merge','isArray','_docStateChangeManagerService','findNodePositionByCharIndex','invokeId','_beforeCloseService','RemoteUniscriptService','_hovered','setItem','map','hide','jsx','getDocRanges','APPLY_DUPLICATED','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','onStarting','substring','pipe','measureText','YUUMI_URL_COL_OUT_OF_RANGE','_transformPreviousActiveRange','min','_handleJoinEvent','react/jsx-runtime','currentColor','123042TUpjhm','_roomMembers$','sheetId','registerBeforeClose','518GlERZU','drawWith','combineLatest','OnLineIcon','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','newValue','unload','loadOfflineData','_getScale','NOT_FOUND','getValue','transformMutationsWithChangeset','IImageIoService','getCurrentRevOfUnit','1em','getActiveRange','addEventListener','INVALID_ARGUMENT','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','sheetID','YUUMI_ALL_TABLES_IS_INVALID','DEFAULT_WS_SESSION_TICKET_URL','_startDocCollabCursor','debounce','_collabCursorController','disposeWithMe','_entities','RemoveColCommandId','saveImage','CollaborationSessionService','hovered','RevisionService','xlink:href','DeleteRangeMoveLeftCommandId','_toggleOnline','getViewport','path','roomMembers$','INVITE_CODE_HAS_BEEN_UES','dispose$','_updateCollabCursors','PY_RUNTIME_SCRIPT_ERROR','handleDeleteRangeMoveLeft','length','CollaborationUIEventId','_status$','getCellPositionByOffset','mergeOverrideWithDependencies','takeUntil','jsxs','backgroundColor','post','unsubscribe','white','actions','bottom','unshift','show','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','@univerjs/rpc','dispose','CollaborationEvent','CONNECTOR_DATA_TOO_LARGE','SheetCollabCursorShape','complete','Unknown\x20user','editingUnit','addHandlerCallback','imageSourceType','TEXT_RANGE_LAYER_INDEX','toStringTag','MemberService','stringify','Error','type','lineTo','_init','LOCAL_CACHE_INTERVAL','Subject','6559784wBmlvI','_scene','makeDirty','has','_dataLoaderService','_collabCursorState$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_refreshCollabCursors','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','off-line-icon','Workbook','_memberService','_uiPartsService','row','InsertRangeMoveDownCommandId','get','values','onPointerEnter$','_localStorageService','_handleHover','clsx','eventID','_cursor','YUUMI_AI_RUN_FAILED','_lastPointer','column','YUUMI_NO_CUBOID_FOR_QUESTION','univer-mr-2\x20univer-flex\x20univer-text-xl','memberID','range','isTransformMutationFailure','forEach','_httpService','RECT','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UniverCollaborationClientUIPlugin','skeleton','roomMembers','on-line-icon_clip0_910_349','sessionStatus$','YUUMI_RATE_OVER_LIMIT','_themeService','SHEET_VIEWPORT_KEY','RefRangeService','Disposable','shareReplay','on-line-icon','_revisionService','IUIPartsService','_scheduleClearOtherTimer','INVALID_INVITE_CODE','_selfUnitIDs','transformByState','_registerRenderDependencies','_hover','USERS_LEAVE','purple.300','url(#$1','SOCKET_FAILED_RETRY','_configService','UNRECOGNIZED','max','_range','getRelativeToViewportCoord','createElement','_transformUndoRedoStack','fill','startColumn','CollaborationDataLoaderController','blue.400','currentSkeleton$','sessionTicket','body','Shape','all','getCollabEntity$','SetTextSelectionsOperation','SheetSkeletonManagerService','createIdentifier','_saveTaskMap','color','indexOf','_collaborationUIEventService','status$','UNAUTHENTICATED','override','ILogService','event$','toRgbString','getActiveSheet','saveTaskMap','touchDependencies','set','M0\x200H16V16H0z','ACTIVE_UNIT_EVENT_CHANNEL','PERMISSION_DENIED','1887036uNFamZ','location','19261070ioaswe','_docTransformIMECacheService','_updateLocalCursor','SetSelectionsOperation','...','ALREADY_EXISTS','history','filter','executeCommand','_initResize','OTHER_CLIENTS_EDITING','runOnServer','asObservable','AWAITING_WITH_PENDING','_colorIndex','assignAColorForMemberID','Rect','string','replaceDocRanges','@univerjs/design','IConfigService','defIds','getCurrent','_logService','prototype','textRanges','SNAPSHOT_INVALID_SNAPSHOT','updateOfflineData','getColorFromTheme','_drawAnchor','UNIVER_SHEET','wsSessionTicketUrl','resize','getConfig','getFocusedUnit','fromEventSubject','ISocketService','useCallback','_scheduleHeartbeat','subUnitId','InsertRowCommandId','IURLService','_assignedColors','UPDATE_CURSOR','CollaborationStatusDisplay','5524362MKtJqk','_config','from','forwardRef','clipPath','onRendered','DesktopCollaborationStatusDisplayController','_onCursorDelete','evenodd','session.will-retry','_syncEditingCollabCursorService','_handleHeartbeatEvent','getOwnPropertySymbols','top','_urlService','height','_setupBeforeClosingHandler','_name','CollaborationUIEventService','ILocalStorageService','EffectRefRangId','collabStatus.synced','data','getUnhiddenWorksheets','getSheetBySheetId','UNIVER_DOC','RegularPolygon','_transformHistoryAndStateStack','undoState','whenReady','runId','startRow','UNDEFINED','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','TOO_MANY_REQUESTS','transformIMECache','off-line-icon_clip0_910_343','_localeService','LICENSE_MAX_UNITS_EXCEEDED','includes','@univerjs/engine-formula','@univerjs/docs','parse','_shapes','NO_OTHER_CLIENTS_EDITING','WebBrowserSingleActiveUnitService','mutations'];_0x196b=function(){return _0x65d88a;};return _0x196b();}const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x5bb9da,_0x4854d4,_0x27a44b,_0x218119,_0x400fc4,_0x1c66b1,_0xc03e8c,_0x17f4b1,_0x39639e){const _0x455397=_0x4bef21;super(),h(this,_0x455397(0x228),!0x1),h(this,'_init',!0x1),h(this,_0x455397(0x3ac),new d[(_0x455397(0x385))](new Map())),h(this,_0x455397(0x3c4),this[_0x455397(0x3ac)][_0x455397(0x335)]()),h(this,_0x455397(0x275),new d[(_0x455397(0x385))]([])),h(this,_0x455397(0x29d),this[_0x455397(0x275)][_0x455397(0x26c)](d[_0x455397(0x3a5)](et))),h(this,_0x455397(0x32b),a[_0x455397(0x28f)](_0x221b08=>{const _0x5349ef=_0x455397,_0x4b3086={'eventID':m[_0x5349ef(0x2b5)][_0x5349ef(0x354)],'data':{'unitID':this[_0x5349ef(0x3d2)],'memberID':this[_0x5349ef(0x225)][_0x5349ef(0x46d)](),'selection':we(_0x221b08)}};this[_0x5349ef(0x225)][_0x5349ef(0x22c)](_0x4b3086,this['unitID']);},tt)),(this[_0x455397(0x3d2)]=_0x5bb9da,this[_0x455397(0x225)]=_0x4854d4,this[_0x455397(0x23a)]=_0x27a44b,this[_0x455397(0x446)]=_0x218119,this['_memberService']=_0x400fc4,this[_0x455397(0x360)]=_0x1c66b1,this['_transformService']=_0xc03e8c,this[_0x455397(0x40f)]=_0x17f4b1,this[_0x455397(0x429)]=_0x39639e);}get[_0x4bef21(0x3ec)](){const _0x302bc8=_0x4bef21;return this[_0x302bc8(0x3ac)][_0x302bc8(0x282)]();}get[_0x4bef21(0x2ec)](){const _0x3cce4d=_0x4bef21;return this[_0x3cce4d(0x275)]['getValue']();}[_0x4bef21(0x2b4)](){const _0x523761=_0x4bef21;super[_0x523761(0x2b4)](),this[_0x523761(0x3ac)][_0x523761(0x394)](new Map()),this[_0x523761(0x3ac)]['complete'](),this[_0x523761(0x275)][_0x523761(0x394)]([]),this[_0x523761(0x275)][_0x523761(0x2b8)]();}[_0x4bef21(0x215)](){const _0x90fb1f=_0x4bef21;this['_init']||(this[_0x90fb1f(0x2c4)]=!0x0,this[_0x90fb1f(0x225)][_0x90fb1f(0x2ee)]['pipe'](d['takeUntil'](this[_0x90fb1f(0x29f)]))[_0x90fb1f(0x3f2)](_0x34cdee=>{const _0x4ecba6=_0x90fb1f;_0x34cdee===u['SessionStatus'][_0x4ecba6(0x3b7)]?this['_toggleOnline']():this[_0x4ecba6(0x44c)]();}),this[_0x90fb1f(0x225)]['event$']['pipe'](d[_0x90fb1f(0x2a8)](this[_0x90fb1f(0x29f)]))[_0x90fb1f(0x3f2)](_0x301e51=>{const _0x3dbcfa=_0x90fb1f,_0x275085=_0x301e51[_0x3dbcfa(0x2dc)];_0x275085===m[_0x3dbcfa(0x2b5)][_0x3dbcfa(0x354)]&&this[_0x3dbcfa(0x3cd)](_0x301e51),_0x275085===m[_0x3dbcfa(0x2b5)]['USERS_LEAVE']&&this[_0x3dbcfa(0x35d)](_0x301e51);}),this['disposeWithMe'](this[_0x90fb1f(0x429)][_0x90fb1f(0x3a8)](_0x2016ca=>{const _0x227a3=_0x90fb1f,_0x3e495a=_0x2016ca[_0x227a3(0x3f4)];_0x3e495a!=null&&this[_0x227a3(0x228)]&&_0x2016ca['id']===Y[_0x227a3(0x313)]['id']&&_0x3e495a[_0x227a3(0x441)]===this[_0x227a3(0x3d2)]&&_0x3e495a[_0x227a3(0x3af)]===!0x1&&_0x3e495a[_0x227a3(0x43f)][_0x227a3(0x2a3)]>0x0&&this[_0x227a3(0x32b)](_0x3e495a[_0x227a3(0x43f)]);})),this[_0x90fb1f(0x360)][_0x90fb1f(0x212)]['pipe'](d[_0x90fb1f(0x2a8)](this[_0x90fb1f(0x29f)]))[_0x90fb1f(0x3f2)](_0x24f777=>{const _0x1e6fd7=_0x90fb1f;if((_0x24f777==null?void 0x0:_0x24f777[_0x1e6fd7(0x3d2)])!==this[_0x1e6fd7(0x3d2)])return;const _0x2dc649={'eventID':m[_0x1e6fd7(0x2b5)]['UPDATE_CURSOR'],'data':_0x24f777};this['_onCursorUpdate'](_0x2dc649);}),this[_0x90fb1f(0x291)](this['_commandService'][_0x90fb1f(0x3a8)](_0xa10b6a=>{const _0xfd9066=_0x90fb1f;if(_0xa10b6a[_0xfd9066(0x3f4)]==null)return;const _0x230bc1=_0xa10b6a[_0xfd9066(0x3f4)];if(_0xa10b6a['id']!==Y['RichTextEditingMutation']['id']||_0x230bc1[_0xfd9066(0x441)]!==this[_0xfd9066(0x3d2)])return;const _0x5ecf0e={'id':_0xfd9066(0x202),'params':_0x230bc1},_0x12b0ca=this[_0xfd9066(0x3ec)];for(const [_0x1995da,_0x6bf4b9]of _0x12b0ca){const _0x19d0f0={'id':_0xfd9066(0x202),'params':{'unitId':this[_0xfd9066(0x3d2)],'actions':null,'textRanges':_0x6bf4b9[_0xfd9066(0x43f)]}},_0x3a44eb=this['_transformService'][_0xfd9066(0x237)](_0x5ecf0e,_0x19d0f0,!0x1);if(m[_0xfd9066(0x2e5)](_0x3a44eb))throw _0x3a44eb[_0xfd9066(0x442)];_0x12b0ca[_0xfd9066(0x323)](_0x1995da,{..._0x6bf4b9,'ranges':_0x3a44eb[_0xfd9066(0x3cb)]['params']['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x12b0ca);});})));}[_0x4bef21(0x3cd)](_0x50496f){const _0x42b429=_0x4bef21;var _0x15d524,_0x1389c8;const {memberID:_0x5644d5,selection:_0x4b7a27}=_0x50496f[_0x42b429(0x36c)],_0x5c3161=Je(_0x4b7a27),_0x5837c7=(_0x1389c8=(_0x15d524=this[_0x42b429(0x2d2)][_0x42b429(0x3d1)](this['unitID'],_0x5644d5))==null?void 0x0:_0x15d524[_0x42b429(0x1e2)])!=null?_0x1389c8:_0x42b429(0x2b9),_0x2f9c39={'color':this[_0x42b429(0x446)][_0x42b429(0x338)](_0x5644d5),'name':_0x5837c7,'ranges':_0x5c3161},_0x23c526=this[_0x42b429(0x3ec)];_0x23c526[_0x42b429(0x323)](_0x5644d5,_0x2f9c39),this['_cursorInfo$'][_0x42b429(0x394)](_0x23c526);}[_0x4bef21(0x35d)](_0x5b5730){const _0x35f9f0=_0x4bef21,{memberID:_0x1234d5}=_0x5b5730[_0x35f9f0(0x36c)],_0x43654b=this[_0x35f9f0(0x3ec)];_0x43654b[_0x35f9f0(0x214)](_0x1234d5),this[_0x35f9f0(0x3ac)][_0x35f9f0(0x394)](_0x43654b);}[_0x4bef21(0x29a)](){const _0x2fdde2=_0x4bef21;var _0x54c358;if(this['_online']=!0x0,((_0x54c358=this['_univerInstanceService'][_0x2fdde2(0x34b)]())==null?void 0x0:_0x54c358[_0x2fdde2(0x1e1)]())!==this[_0x2fdde2(0x3d2)])return;const _0x9d5f25=this[_0x2fdde2(0x23a)][_0x2fdde2(0x2d6)](Y[_0x2fdde2(0x460)])[_0x2fdde2(0x267)]();Array[_0x2fdde2(0x25c)](_0x9d5f25)&&_0x9d5f25[_0x2fdde2(0x2a3)]>0x0&&this[_0x2fdde2(0x32b)](_0x9d5f25);}[_0x4bef21(0x44c)](){const _0x2ed470=_0x4bef21;this[_0x2ed470(0x228)]=!0x1;}};fe=Qe([L(0x2,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),L(0x3,a['Inject'](me)),L(0x4,a['Inject'](u['MemberService'])),L(0x5,a[_0x4bef21(0x248)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x4bef21(0x3bd)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x4bef21(0x469)],it=(_0x2a41f3,_0x27bbee,_0x5ba1b2,_0x2ee1ba)=>{for(var _0x470cbc=_0x2ee1ba>0x1?void 0x0:_0x2ee1ba?st(_0x27bbee,_0x5ba1b2):_0x27bbee,_0x1c1d01=_0x2a41f3['length']-0x1,_0x45bc91;_0x1c1d01>=0x0;_0x1c1d01--)(_0x45bc91=_0x2a41f3[_0x1c1d01])&&(_0x470cbc=_0x45bc91(_0x470cbc)||_0x470cbc);return _0x470cbc;},A=(_0x114dae,_0xcb8c3)=>(_0x618d3b,_0x5a713e)=>_0xcb8c3(_0x618d3b,_0x5a713e,_0x114dae);const nt=0x12c,rt=0x64,ot=()=>{let _0x18a4e8=[],_0x329e1f=!0x1;return _0x473605=>{_0x18a4e8['push'](_0x473605),_0x329e1f||(_0x329e1f=!0x0,setTimeout(()=>{const _0x16c05c=_0x4804;_0x18a4e8[_0x16c05c(0x2e6)](_0x402609=>_0x402609()),_0x18a4e8=[],_0x329e1f=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x45e2aa,_0x5d4751,_0x4f1854,_0x58267f,_0x529d29,_0x2ec915,_0x6f488a,_0x38f1a5){const _0x5c603c=_0x4bef21;super(),h(this,_0x5c603c(0x228),!0x1),h(this,_0x5c603c(0x2c4),!0x1),h(this,_0x5c603c(0x3ac),new d[(_0x5c603c(0x385))](new Map())),h(this,_0x5c603c(0x3c4),this['_cursorInfo$'][_0x5c603c(0x335)]()),h(this,_0x5c603c(0x275),new d[(_0x5c603c(0x385))]([])),h(this,_0x5c603c(0x29d),this[_0x5c603c(0x275)][_0x5c603c(0x26c)](d['debounceTime'](nt))),h(this,_0x5c603c(0x32b),a['debounce']((_0x5ae98b,_0x5a4ac3)=>{const _0x553320=_0x5c603c,_0x3a14b4={'eventID':m[_0x553320(0x2b5)][_0x553320(0x354)],'data':{'unitID':this[_0x553320(0x3d2)],'memberID':this['_session'][_0x553320(0x46d)](),'selection':Ee['serializeRangeWithSheet'](_0x5ae98b,_0x5a4ac3[_0x553320(0x2e4)])}};this[_0x553320(0x225)]['send'](_0x3a14b4,this[_0x553320(0x3d2)]);},rt)),(this[_0x5c603c(0x3d2)]=_0x45e2aa,this[_0x5c603c(0x225)]=_0x5d4751,this[_0x5c603c(0x23a)]=_0x4f1854,this[_0x5c603c(0x446)]=_0x58267f,this[_0x5c603c(0x2d2)]=_0x529d29,this[_0x5c603c(0x40f)]=_0x2ec915,this[_0x5c603c(0x429)]=_0x6f488a,this['_refRangeService']=_0x38f1a5);}get[_0x4bef21(0x3ec)](){const _0x4605c7=_0x4bef21;return this[_0x4605c7(0x3ac)]['getValue']();}get['roomMembers'](){const _0x3c6692=_0x4bef21;return this[_0x3c6692(0x275)]['getValue']();}['dispose'](){const _0x27c811=_0x4bef21;super[_0x27c811(0x2b4)](),this[_0x27c811(0x3ac)][_0x27c811(0x394)](new Map()),this[_0x27c811(0x3ac)]['complete'](),this['_roomMembers$']['next']([]),this[_0x27c811(0x275)][_0x27c811(0x2b8)]();}[_0x4bef21(0x215)](){const _0x5a8990=_0x4bef21;this[_0x5a8990(0x2c4)]||(this[_0x5a8990(0x2c4)]=!0x0,this[_0x5a8990(0x225)]['sessionStatus$']['pipe'](d[_0x5a8990(0x2a8)](this[_0x5a8990(0x29f)]))[_0x5a8990(0x3f2)](_0x594751=>{const _0x38ab85=_0x5a8990;_0x594751===u[_0x38ab85(0x1fc)][_0x38ab85(0x3b7)]?this[_0x38ab85(0x29a)]():this[_0x38ab85(0x44c)]();}),this[_0x5a8990(0x225)]['event$'][_0x5a8990(0x26c)](d['takeUntil'](this[_0x5a8990(0x29f)]))[_0x5a8990(0x3f2)](_0x4ea543=>{const _0xddb9ac=_0x5a8990,_0x344496=_0x4ea543['eventID'];_0x344496===m[_0xddb9ac(0x2b5)][_0xddb9ac(0x354)]&&this[_0xddb9ac(0x3cd)](_0x4ea543),_0x344496===m[_0xddb9ac(0x2b5)][_0xddb9ac(0x2fe)]&&this[_0xddb9ac(0x35d)](_0x4ea543);}),this[_0x5a8990(0x3ee)](),this[_0x5a8990(0x291)](this[_0x5a8990(0x429)][_0x5a8990(0x3a8)](_0x567c83=>{const _0x323b82=_0x5a8990;if(this[_0x323b82(0x228)]&&_0x567c83['id']===g[_0x323b82(0x32c)]['id']&&_0x567c83['params'][_0x323b82(0x441)]===this['unitID']){const _0x4a7f4b=_0x567c83[_0x323b82(0x3f4)];this['_updateLocalCursor'](_0x4a7f4b[_0x323b82(0x350)],_0x4a7f4b[_0x323b82(0x1f2)][0x0]);}})));}['_onCursorUpdate'](_0x565da5){const _0x4965a9=_0x4bef21;var _0x6ee44b,_0x4204c8;const {memberID:_0x34103e,selection:_0x3ee26b}=_0x565da5[_0x4965a9(0x36c)],{sheetName:_0x1650ab,range:_0x267706}=Ee[_0x4965a9(0x46e)](_0x3ee26b),_0x35a1f8={'name':(_0x4204c8=(_0x6ee44b=this['_memberService'][_0x4965a9(0x3d1)](this[_0x4965a9(0x3d2)],_0x34103e))==null?void 0x0:_0x6ee44b[_0x4965a9(0x1e2)])!=null?_0x4204c8:_0x4965a9(0x2b9),'range':this[_0x4965a9(0x40b)](_0x1650ab,_0x267706),'sheetID':_0x1650ab,'color':this[_0x4965a9(0x446)][_0x4965a9(0x338)](_0x34103e),'selection':_0x3ee26b},_0x1800ae=this['cursorInfo'];_0x1800ae['set'](_0x34103e,_0x35a1f8),this['_cursorInfo$']['next'](_0x1800ae);}['_onCursorDelete'](_0x55381a){const _0x4df2ab=_0x4bef21,{memberID:_0x26323a}=_0x55381a['data'],_0x4bf856=this[_0x4df2ab(0x3ec)];_0x4bf856[_0x4df2ab(0x214)](_0x26323a),this[_0x4df2ab(0x3ac)]['next'](_0x4bf856);}[_0x4bef21(0x40b)](_0x8204b1,_0x512491){const _0x2fb5c7=_0x4bef21;var _0x52884e,_0x5c6236;const _0x5ecf08=(_0x5c6236=(_0x52884e=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x2fb5c7(0x3d2)]))==null?void 0x0:_0x52884e[_0x2fb5c7(0x36e)](_0x8204b1))==null?void 0x0:_0x5c6236['getMergeData']();return(_0x5ecf08==null?void 0x0:_0x5ecf08[_0x2fb5c7(0x24f)](_0x530747=>a[_0x2fb5c7(0x3ab)][_0x2fb5c7(0x1df)](_0x530747,_0x512491)))||_0x512491;}[_0x4bef21(0x3ee)](){const _0x2b480a=_0x4bef21,_0xfce66=new a['DisposableCollection'](),_0x4ac51c=ot(),_0x6029e1=()=>{const _0x5440da=_0x4804;_0xfce66[_0x5440da(0x2b4)]();const _0x2ef1e3=(_0x392138,_0x1a5bc1,_0xa6b0ea,_0x1ade5a)=>{const _0x2d2e4c=_0x5440da;let _0x36e2e4=[];switch(_0x392138['id']){case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x299)]:{_0x36e2e4=g[_0x2d2e4c(0x2a2)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x3c9)]:{_0x36e2e4=g[_0x2d2e4c(0x42b)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x255)]:{_0x36e2e4=g[_0x2d2e4c(0x45f)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x2d5)]:{_0x36e2e4=g[_0x2d2e4c(0x443)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x457)]:{_0x36e2e4=g[_0x2d2e4c(0x3c0)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x351)]:{_0x36e2e4=g['handleInsertRow'](_0x392138,_0x1ade5a);break;}case g['EffectRefRangId'][_0x2d2e4c(0x445)]:{_0x36e2e4=g[_0x2d2e4c(0x3b6)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x293)]:{_0x36e2e4=g[_0x2d2e4c(0x1f0)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)]['RemoveRowCommandId']:{_0x36e2e4=g[_0x2d2e4c(0x423)](_0x392138,_0x1ade5a);break;}}const _0x386e40=g['runRefRangeMutations'](_0x36e2e4,_0x1ade5a),_0x14dc9a=this[_0x2d2e4c(0x3ec)][_0x2d2e4c(0x2d6)](_0x1a5bc1);if(_0x14dc9a&&_0x386e40){const _0x5511ae={..._0x14dc9a,'range':_0x386e40};this[_0x2d2e4c(0x3ec)][_0x2d2e4c(0x323)](_0x1a5bc1,_0x5511ae),_0x4ac51c(()=>{const _0x495b8f=_0x2d2e4c,_0x47634f=this[_0x495b8f(0x20d)]['registerRefRange'](_0x386e40,_0x318d70=>(_0x47634f[_0x495b8f(0x2b4)](),_0x2ef1e3(_0x318d70,_0x1a5bc1,_0xa6b0ea,_0x386e40)));_0xfce66['add'](_0x47634f);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x3d68d0,_0x20b689)=>{const _0x252d47=_0x5440da,{range:_0x8ccf3c,sheetID:_0x4c32fe}=_0x3d68d0,_0x40a3f8=this['_refRangeService']['registerRefRange'](_0x8ccf3c,_0x52ce87=>(_0x40a3f8[_0x252d47(0x2b4)](),_0x2ef1e3(_0x52ce87,_0x20b689,_0x4c32fe,_0x8ccf3c)));_0xfce66['add'](_0x40a3f8);});};this['disposeWithMe'](a[_0x2b480a(0x22f)](this[_0x2b480a(0x3ac)][_0x2b480a(0x3f2)](()=>{_0x6029e1();})));}[_0x4bef21(0x29a)](){const _0x585111=_0x4bef21;var _0x1d1d96,_0x5824c3;if(this[_0x585111(0x228)]=!0x0,((_0x1d1d96=this[_0x585111(0x40f)][_0x585111(0x34b)]())==null?void 0x0:_0x1d1d96['getUnitId']())!==this[_0x585111(0x3d2)])return;const _0x2a6b50=(_0x5824c3=this[_0x585111(0x23a)][_0x585111(0x2d6)](g[_0x585111(0x42a)])[_0x585111(0x3db)]())==null?void 0x0:_0x5824c3[0x0],_0x33d87c=this[_0x585111(0x40f)][_0x585111(0x1e5)](a[_0x585111(0x411)][_0x585111(0x347)])[_0x585111(0x320)]();_0x2a6b50&&_0x33d87c&&this[_0x585111(0x32b)](_0x33d87c[_0x585111(0x1fa)](),_0x2a6b50);}['_toggleOffline'](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),A(0x3,a['Inject'](me)),A(0x4,a['Inject'](u[_0x4bef21(0x2bf)])),A(0x5,a[_0x4bef21(0x3bd)]),A(0x6,a['ICommandService']),A(0x7,a[_0x4bef21(0x248)](g[_0x4bef21(0x2f2)]))],Se);var at=Object[_0x4bef21(0x469)],ct=(_0x5117e3,_0x34612e,_0x4abb98,_0x5c9e03)=>{const _0x35c6a2=_0x4bef21;for(var _0x74bde3=_0x5c9e03>0x1?void 0x0:_0x5c9e03?at(_0x34612e,_0x4abb98):_0x34612e,_0x230dcd=_0x5117e3[_0x35c6a2(0x2a3)]-0x1,_0x101c3c;_0x230dcd>=0x0;_0x230dcd--)(_0x101c3c=_0x5117e3[_0x230dcd])&&(_0x74bde3=_0x101c3c(_0x74bde3)||_0x74bde3);return _0x74bde3;},ie=(_0x163f74,_0x16da7c)=>(_0x55fa35,_0x4d51f8)=>_0x16da7c(_0x55fa35,_0x4d51f8,_0x163f74);let x=class extends a[_0x4bef21(0x418)]{constructor(_0x3c624d,_0x30cbfa,_0x553394){const _0x44ff25=_0x4bef21;super(),h(this,_0x44ff25(0x292),new Map()),h(this,_0x44ff25(0x38a),new d[(_0x44ff25(0x2c6))]()),(this[_0x44ff25(0x40f)]=_0x3c624d,this[_0x44ff25(0x23a)]=_0x30cbfa,this[_0x44ff25(0x3f1)]=_0x553394,this[_0x44ff25(0x2c4)]());}[_0x4bef21(0x2b4)](){const _0x1b2059=_0x4bef21;super['dispose'](),this['_entityInit$'][_0x1b2059(0x2b8)](),this[_0x1b2059(0x292)][_0x1b2059(0x2e6)](_0x49b373=>_0x49b373[_0x1b2059(0x2b4)]());}[_0x4bef21(0x1f4)](_0x544c28){const _0x253ba4=_0x4bef21;return this[_0x253ba4(0x292)][_0x253ba4(0x2ca)](_0x544c28)?this['_entities'][_0x253ba4(0x2d6)](_0x544c28)[_0x253ba4(0x3c4)]:this[_0x253ba4(0x38a)]['pipe'](d['filter'](_0x148f88=>_0x148f88[_0x253ba4(0x3d2)]===_0x544c28),d[_0x253ba4(0x254)](_0x3121e9=>_0x3121e9[_0x253ba4(0x3c4)]));}['_init'](){const _0x5387f0=_0x4bef21;this[_0x5387f0(0x40f)]['getTypeOfUnitAdded$'](a[_0x5387f0(0x411)][_0x5387f0(0x347)])[_0x5387f0(0x26c)](d[_0x5387f0(0x2a8)](this[_0x5387f0(0x29f)]))['subscribe'](async _0x314a42=>{const _0xc05565=_0x5387f0,_0x3afd62=_0x314a42[_0xc05565(0x1e1)](),_0x5961d4=await this['_startSheetCollabCursor'](_0x3afd62);this[_0xc05565(0x38a)][_0xc05565(0x394)](_0x5961d4),this[_0xc05565(0x292)][_0xc05565(0x323)](_0x3afd62,_0x5961d4);}),this[_0x5387f0(0x40f)][_0x5387f0(0x1ec)](a[_0x5387f0(0x411)][_0x5387f0(0x36f)])['pipe'](d[_0x5387f0(0x2a8)](this['dispose$']))[_0x5387f0(0x26c)](d[_0x5387f0(0x330)](_0x5bfa21=>!_0x5bfa21[_0x5387f0(0x1e1)]()['startsWith']('__')))[_0x5387f0(0x3f2)](async _0x26040a=>{const _0x1287ec=_0x5387f0,_0x32b1b2=_0x26040a[_0x1287ec(0x1e1)](),_0x250063=await this[_0x1287ec(0x28e)](_0x32b1b2);this[_0x1287ec(0x38a)][_0x1287ec(0x394)](_0x250063),this[_0x1287ec(0x292)]['set'](_0x32b1b2,_0x250063);}),d['merge'](this['_univerInstanceService'][_0x5387f0(0x448)](a['UniverInstanceType']['UNIVER_DOC']),this[_0x5387f0(0x40f)][_0x5387f0(0x448)](a[_0x5387f0(0x411)][_0x5387f0(0x347)]))[_0x5387f0(0x26c)](d[_0x5387f0(0x2a8)](this['dispose$']))[_0x5387f0(0x3f2)](_0x322a85=>{const _0x4373fa=_0x5387f0,_0x120d9f=_0x322a85[_0x4373fa(0x1e1)](),_0x16ccc8=this[_0x4373fa(0x292)][_0x4373fa(0x2d6)](_0x120d9f);_0x16ccc8&&(_0x16ccc8[_0x4373fa(0x2b4)](),this[_0x4373fa(0x292)][_0x4373fa(0x214)](_0x120d9f));});}async[_0x4bef21(0x209)](_0x5ca857){const _0x266e00=_0x4bef21,_0x17cdd6=await this[_0x266e00(0x3f1)][_0x266e00(0x465)](_0x5ca857),_0x16cf57=this['_injector'][_0x266e00(0x3e0)](Se,_0x5ca857,_0x17cdd6);return _0x16cf57[_0x266e00(0x215)](),_0x16cf57;}async[_0x4bef21(0x28e)](_0x3ed77b){const _0xf9eed1=_0x4bef21,_0x1dbe12=await this[_0xf9eed1(0x3f1)][_0xf9eed1(0x465)](_0x3ed77b),_0x2e8141=this[_0xf9eed1(0x23a)][_0xf9eed1(0x3e0)](fe,_0x3ed77b,_0x1dbe12);return _0x2e8141['init'](),_0x2e8141;}};x=ct([ie(0x0,a[_0x4bef21(0x3bd)]),ie(0x1,a['Inject'](a[_0x4bef21(0x250)])),ie(0x2,a[_0x4bef21(0x248)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x3053ae,_0x2d2e13){const _0xcb5d75=_0x4bef21;let {radius:_0x40be6c,width:_0x5cf6e0,height:_0x327b14}=_0x2d2e13;_0x40be6c=_0x40be6c!=null?_0x40be6c:0x0,_0x5cf6e0=_0x5cf6e0!=null?_0x5cf6e0:0x1e,_0x327b14=_0x327b14!=null?_0x327b14:0x1e;let _0x3cb0ef=0x0,_0x21add1=0x0,_0x35e5e5=0x0;_0x3cb0ef=_0x21add1=_0x35e5e5=Math[_0xcb5d75(0x270)](_0x40be6c,_0x5cf6e0/0x2,_0x327b14/0x2),_0x3053ae[_0xcb5d75(0x21d)](),_0x3053ae[_0xcb5d75(0x440)](_0x3cb0ef,0x0),_0x3053ae[_0xcb5d75(0x2c3)](_0x5cf6e0-_0x21add1,0x0),_0x3053ae[_0xcb5d75(0x3fb)](_0x5cf6e0-_0x21add1,_0x21add1,_0x21add1,Math['PI']*0x3/0x2,0x0,!0x1),_0x3053ae['lineTo'](_0x5cf6e0,_0x327b14-_0x35e5e5),_0x3053ae[_0xcb5d75(0x3fb)](_0x5cf6e0-_0x35e5e5,_0x327b14-_0x35e5e5,_0x35e5e5,0x0,Math['PI']/0x2,!0x1),_0x3053ae[_0xcb5d75(0x2c3)](0x0,_0x327b14),_0x3053ae['lineTo'](0x0,_0x3cb0ef),_0x3053ae[_0xcb5d75(0x3fb)](_0x3cb0ef,_0x3cb0ef,_0x3cb0ef,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3053ae['closePath'](),_0x2d2e13[_0xcb5d75(0x309)]&&(_0x3053ae[_0xcb5d75(0x447)](),_0x3053ae[_0xcb5d75(0x3e7)]=_0x2d2e13[_0xcb5d75(0x309)],_0x2d2e13[_0xcb5d75(0x3c8)]==='evenodd'?_0x3053ae[_0xcb5d75(0x309)](_0xcb5d75(0x35e)):_0x3053ae[_0xcb5d75(0x309)](),_0x3053ae[_0xcb5d75(0x3f5)]());}class ee extends p[_0x4bef21(0x310)]{constructor(_0x2b90e9,_0x18ce6e){const _0x3b5d52=_0x4bef21;super(_0x2b90e9,_0x18ce6e),h(this,'color'),h(this,_0x3b5d52(0x20e)),(this[_0x3b5d52(0x317)]=_0x18ce6e==null?void 0x0:_0x18ce6e[_0x3b5d52(0x317)],this['text']=_0x18ce6e==null?void 0x0:_0x18ce6e['text']);}static[_0x4bef21(0x279)](_0x25987a,_0x4237b2){const _0x5f5a4c=_0x4bef21,{text:_0x3d01cc,color:_0x5c9c9c}=_0x4237b2;_0x25987a['save'](),_0x25987a['font']=_0x5f5a4c(0x452);const _0x414056=_0x25987a['measureText'](_0x3d01cc)[_0x5f5a4c(0x428)],_0x4ee92e=Math['min'](_0x414056+0x2*ne,Re);_t(_0x25987a,{'height':K,'radius':0x4,'width':_0x4ee92e,'fill':_0x5c9c9c}),_0x25987a[_0x5f5a4c(0x3e7)]='#FFF';const _0x1a3cc2=ne,_0x30a9ec=K-lt,_0x4a2c3d=Re-0x2*ne;if(_0x414056>_0x4a2c3d){let _0xc9ede0='',_0x4671c0=0x0;for(const _0xc57ddd of _0x3d01cc){const _0x5a5e8f=_0x25987a[_0x5f5a4c(0x26d)](_0xc57ddd)[_0x5f5a4c(0x428)];if(_0x4671c0+_0x5a5e8f<=_0x4a2c3d-_0x25987a[_0x5f5a4c(0x26d)](_0x5f5a4c(0x32d))['width'])_0xc9ede0+=_0xc57ddd,_0x4671c0+=_0x5a5e8f;else{_0xc9ede0+='...';break;}}_0x25987a[_0x5f5a4c(0x3f9)](_0xc9ede0,_0x1a3cc2,_0x30a9ec);}else _0x25987a[_0x5f5a4c(0x3f9)](_0x3d01cc,_0x1a3cc2,_0x30a9ec);_0x25987a[_0x5f5a4c(0x3f5)]();}[_0x4bef21(0x463)](_0x51e5f5){const _0x4c71a6=_0x4bef21;ee[_0x4c71a6(0x279)](_0x51e5f5,this);}}const re=_0x4bef21(0x386),ht=_0x4bef21(0x38d),ut=_0x4bef21(0x205),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x81eb01,_0x449cf9,_0x1de974,_0x239df9){const _0x2b3990=_0x4bef21;h(this,_0x2b3990(0x381),[]),h(this,_0x2b3990(0x3c3),null),h(this,'_textBubble',null),h(this,_0x2b3990(0x3fa),null),h(this,'_hideTimer',null),h(this,_0x2b3990(0x388),null),(this[_0x2b3990(0x2dd)]=_0x81eb01,this[_0x2b3990(0x2c8)]=_0x449cf9,this[_0x2b3990(0x1e9)]=_0x1de974,this[_0x2b3990(0x1d8)]=_0x239df9,this['_render']());}set[_0x4bef21(0x2fd)](_0x22142c){const _0x1b82e5=_0x4bef21;_0x22142c?(this[_0x1b82e5(0x3fa)]&&this[_0x1b82e5(0x3fa)][_0x1b82e5(0x265)](),this[_0x1b82e5(0x238)]&&this[_0x1b82e5(0x238)][_0x1b82e5(0x2b1)]()):(this['_anchorDot']&&this[_0x1b82e5(0x3fa)][_0x1b82e5(0x2b1)](),this[_0x1b82e5(0x238)]&&this[_0x1b82e5(0x238)][_0x1b82e5(0x265)]());}[_0x4bef21(0x2b4)](){const _0x403f33=_0x4bef21;for(const _0x36aa5c of this[_0x403f33(0x381)])_0x36aa5c['dispose']();this[_0x403f33(0x238)]&&this[_0x403f33(0x238)][_0x403f33(0x2b4)](),this['_anchorDot']&&this[_0x403f33(0x3fa)]['dispose'](),this['_anchor']&&this[_0x403f33(0x3c3)][_0x403f33(0x2b4)](),this[_0x403f33(0x388)]&&this[_0x403f33(0x388)]();}[_0x4bef21(0x203)](){const _0x22bc98=_0x4bef21;var _0x55103c;const {_docSkeleton:_0x1368b9,_document:_0x207e36}=this,{color:_0x31ce48,name:_0x120229,ranges:_0x3a40e9}=this[_0x22bc98(0x2dd)],_0x51c0ab=_0x207e36['getOffsetConfig'](),{docsLeft:_0x5c58a9,docsTop:_0x34d221}=_0x51c0ab,_0x4bfa82=new b[(_0x22bc98(0x3b2))](_0x51c0ab,_0x1368b9);for(const {startOffset:_0x104340,endOffset:_0x20292a,rangeType:_0x102bf4,segmentId:_0x186299,segmentPage:_0x401b12,collapsed:_0x30321f,isActive:_0x167df4}of _0x3a40e9){const _0x2eb867=_0x1368b9[_0x22bc98(0x25e)](_0x104340,!0x0,_0x186299,_0x401b12);let _0xfd9c5f=_0x1368b9[_0x22bc98(0x25e)](_0x20292a,!0x0,_0x186299,_0x401b12);if(_0xfd9c5f==null&&(_0xfd9c5f=_0x1368b9[_0x22bc98(0x25e)](_0x20292a-0x1,!0x1,_0x186299,_0x401b12)),_0x167df4){const {contentBoxPointGroup:_0x1d6762}=_0x4bfa82[_0x22bc98(0x426)](_0xfd9c5f,_0xfd9c5f);if(_0x1d6762[_0x22bc98(0x2a3)]===0x0)continue;this[_0x22bc98(0x346)](_0x31ce48,_0x1d6762,_0x5c58a9,_0x34d221,_0x120229),this[_0x22bc98(0x388)]=this[_0x22bc98(0x2da)]();}if(_0x2eb867&&_0xfd9c5f){if(_0x102bf4===a[_0x22bc98(0x408)]['RECT']){const _0x345f29=new b['NodePositionConvertToRectRange'](_0x51c0ab,_0x1368b9),{pointGroup:_0x17cde1}=(_0x55103c=_0x345f29['getRangePointData'](_0x2eb867,_0xfd9c5f))!=null?_0x55103c:{};if(_0x17cde1==null||_0x17cde1[_0x22bc98(0x2a3)]===0x0)continue;this[_0x22bc98(0x3fd)](_0x31ce48,_0x17cde1,_0x5c58a9,_0x34d221);}else{if(!_0x30321f){const {borderBoxPointGroup:_0x1295d6}=_0x4bfa82['getRangePointData'](_0x2eb867,_0xfd9c5f);if(_0x1295d6[_0x22bc98(0x2a3)]===0x0)continue;this[_0x22bc98(0x399)](_0x31ce48,_0x1295d6,_0x5c58a9,_0x34d221);}}}}}[_0x4bef21(0x346)](_0x246cdf,_0x20a9b9,_0x4611f4,_0x532e93,_0x15eccc){const _0x25ddf6=_0x4bef21,_0x5307ea=this[_0x25ddf6(0x3ed)](_0x20a9b9),{left:_0x34cc08,top:_0x588817,height:_0x5aa011}=_0x5307ea,_0x23e59a=this[_0x25ddf6(0x280)](),_0x467bf6=ft/_0x23e59a,_0x186a14=new p['Rect'](re+a['Tools'][_0x25ddf6(0x43b)](k),{'left':_0x34cc08+_0x4611f4-_0x467bf6,'top':_0x588817+_0x532e93,'height':_0x5aa011,'width':dt,'fill':_0x246cdf||p[_0x25ddf6(0x419)](a[_0x25ddf6(0x422)][_0x25ddf6(0x3ba)],0x0),'strokeWidth':_0x467bf6,'stroke':St,'evented':!0x0});this[_0x25ddf6(0x3c3)]=_0x186a14,this['_scene'][_0x25ddf6(0x243)](_0x186a14,b[_0x25ddf6(0x2bd)]);const _0x1a6ca1=new p[(_0x25ddf6(0x339))](re+a[_0x25ddf6(0x406)][_0x25ddf6(0x43b)](k),{'left':_0x34cc08+_0x4611f4-_0x467bf6,'top':_0x588817+_0x532e93-oe/0x2,'height':oe,'width':oe,'fill':_0x246cdf||p['getColor'](a[_0x25ddf6(0x422)][_0x25ddf6(0x3ba)],0x0),'strokeWidth':0x0,'stroke':_0x246cdf||p[_0x25ddf6(0x419)](a[_0x25ddf6(0x422)][_0x25ddf6(0x3ba)],0x0),'evented':!0x1});this[_0x25ddf6(0x3fa)]=_0x1a6ca1,this[_0x25ddf6(0x2c8)][_0x25ddf6(0x243)](_0x1a6ca1,b[_0x25ddf6(0x2bd)]);const _0x41ed3c=new ee(re+a['Tools'][_0x25ddf6(0x43b)](k),{'left':_0x34cc08+_0x4611f4-_0x467bf6,'top':_0x588817+_0x532e93-K,'text':_0x15eccc,'color':_0x246cdf});this[_0x25ddf6(0x238)]=_0x41ed3c,this[_0x25ddf6(0x2c8)]['addObject'](_0x41ed3c,b['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x4bef21(0x2da)](){const _0x3adea9=_0x4bef21,_0x2e9bac=this['_anchor']['onPointerEnter$'][_0x3adea9(0x39a)](()=>{this['_hover']=!0x0;}),_0x3f8bde=this[_0x3adea9(0x3c3)]['onPointerLeave$'][_0x3adea9(0x39a)](()=>{const _0xe168dc=_0x3adea9;this[_0xe168dc(0x3a9)]&&clearTimeout(this[_0xe168dc(0x3a9)]),this['_hideTimer']=setTimeout(()=>{const _0x40c953=_0xe168dc;this[_0x40c953(0x2fd)]=!0x1;},0x7d0);});return()=>{const _0x345449=_0x3adea9;_0x2e9bac[_0x345449(0x2ac)](),_0x3f8bde[_0x345449(0x2ac)]();};}[_0x4bef21(0x399)](_0x4870f7,_0xd03acd,_0x3c5b56,_0x3c8925){const _0x3999a=_0x4bef21,_0x31b61f=new a[(_0x3999a(0x22b))](_0x4870f7)[_0x3999a(0x1ee)](0.2)[_0x3999a(0x31f)](),_0xd6f81f=new p[(_0x3999a(0x370))](ht+a[_0x3999a(0x406)][_0x3999a(0x43b)](k),{'pointsGroup':_0xd03acd,'fill':_0x31b61f||p[_0x3999a(0x419)](a['COLORS']['black'],0.2),'left':_0x3c5b56,'top':_0x3c8925,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3999a(0x38b)](_0xd6f81f),this[_0x3999a(0x2c8)][_0x3999a(0x243)](_0xd6f81f,b[_0x3999a(0x2bd)]);}['_drawRectRange'](_0x31f4b,_0x53fc2c,_0x520559,_0x3a5fa6){const _0x3a1d5f=_0x4bef21,_0x50ee01=new a['ColorKit'](_0x31f4b)['setAlpha'](0.2)['toRgbString'](),_0x9d60d7=new p[(_0x3a1d5f(0x370))](ut+a[_0x3a1d5f(0x406)][_0x3a1d5f(0x43b)](k),{'pointsGroup':_0x53fc2c,'fill':_0x50ee01||p[_0x3a1d5f(0x419)](a['COLORS'][_0x3a1d5f(0x3ba)],0.2),'left':_0x520559,'top':_0x3a5fa6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a1d5f(0x381)][_0x3a1d5f(0x38b)](_0x9d60d7),this[_0x3a1d5f(0x2c8)][_0x3a1d5f(0x243)](_0x9d60d7,b[_0x3a1d5f(0x2bd)]);}['_getAnchorBounding'](_0x500b72){const _0x36d4f1=_0x500b72[0x0],_0x256443=_0x36d4f1[0x0],_0x3b71aa=_0x36d4f1[0x2],{x:_0xbad1f0,y:_0x5c5160}=_0x256443,{x:_0x403e69,y:_0x45e0d9}=_0x3b71aa;return{'left':_0xbad1f0,'top':_0x5c5160,'width':_0x403e69-_0xbad1f0,'height':_0x45e0d9-_0x5c5160};}[_0x4bef21(0x280)](){const _0x836efb=_0x4bef21,{scaleX:_0x2ac174,scaleY:_0x2e352d}=this[_0x836efb(0x2c8)]['getAncestorScale']();return Math[_0x836efb(0x304)](_0x2ac174,_0x2e352d);}}var It=Object[_0x4bef21(0x469)],vt=(_0x438366,_0x3f2612,_0x3871d0,_0x1a0ac6)=>{const _0xbbd2f3=_0x4bef21;for(var _0xb6f703=_0x1a0ac6>0x1?void 0x0:_0x1a0ac6?It(_0x3f2612,_0x3871d0):_0x3f2612,_0x5487af=_0x438366[_0xbbd2f3(0x2a3)]-0x1,_0x336e9a;_0x5487af>=0x0;_0x5487af--)(_0x336e9a=_0x438366[_0x5487af])&&(_0xb6f703=_0x336e9a(_0xb6f703)||_0xb6f703);return _0xb6f703;},W=(_0x48e9cd,_0x37de74)=>(_0x1927c0,_0x4a9e85)=>_0x37de74(_0x1927c0,_0x4a9e85,_0x48e9cd);let Ie=class extends a[_0x4bef21(0x418)]{constructor(_0x34d10e,_0x4ed96f,_0x22677f,_0x2b6a7d,_0x31a99b){const _0x5b2b64=_0x4bef21;super(),h(this,_0x5b2b64(0x21c),[]),h(this,_0x5b2b64(0x21f),[]),(this[_0x5b2b64(0x466)]=_0x34d10e,this[_0x5b2b64(0x1fe)]=_0x4ed96f,this[_0x5b2b64(0x290)]=_0x22677f,this[_0x5b2b64(0x429)]=_0x2b6a7d,this[_0x5b2b64(0x2f0)]=_0x31a99b,this['_init']());}[_0x4bef21(0x2c4)](){const _0x14a12f=_0x4bef21,_0x594941=this[_0x14a12f(0x466)][_0x14a12f(0x441)],_0x3db949=this[_0x14a12f(0x1fe)];this[_0x14a12f(0x291)](d[_0x14a12f(0x27a)]([this['_collabCursorController'][_0x14a12f(0x1f4)](_0x594941),this[_0x14a12f(0x2f0)][_0x14a12f(0x3a2)]])[_0x14a12f(0x26c)]($[_0x14a12f(0x264)](([_0x3e2039,_0x4f89cb])=>({'skeleton':_0x3db949['getSkeleton'](),'cursors':[..._0x3e2039[_0x14a12f(0x2d7)]()][_0x14a12f(0x1de)](_0x4a55d2=>({..._0x4a55d2,'color':this[_0x14a12f(0x2f0)]['getColorFromTheme'](_0x4a55d2[_0x14a12f(0x317)])}))})))[_0x14a12f(0x3f2)](_0x2ad067=>{const _0x225e41=_0x14a12f;if(this[_0x225e41(0x3c7)](),_0x2ad067){const {skeleton:_0x45942c,cursors:_0x3adabb}=_0x2ad067;this[_0x225e41(0x2a0)](_0x45942c,_0x3adabb);}})),this[_0x14a12f(0x332)](),this[_0x14a12f(0x3bc)]();}[_0x4bef21(0x2a0)](_0x599e4d,_0x388106){const _0x11b34c=_0x4bef21,{scene:_0x4b320a,mainComponent:_0x58ad70}=this[_0x11b34c(0x466)],_0x372c2f=_0x388106[_0x11b34c(0x264)](_0x10aff3=>new De(_0x10aff3,_0x4b320a,_0x599e4d,_0x58ad70));this[_0x11b34c(0x21c)]=_0x372c2f,this[_0x11b34c(0x21f)]=_0x388106;}[_0x4bef21(0x2ce)](){const _0xcff72b=_0x4bef21;this[_0xcff72b(0x3c7)]();const {scene:_0x5779ea,mainComponent:_0x1d951a}=this[_0xcff72b(0x466)],_0x1ba7f9=this[_0xcff72b(0x1fe)]['getSkeleton'](),_0x31c2f3=this[_0xcff72b(0x21f)][_0xcff72b(0x264)](_0x9f0b68=>new De(_0x9f0b68,_0x5779ea,_0x1ba7f9,_0x1d951a));this[_0xcff72b(0x21c)]=_0x31c2f3;}[_0x4bef21(0x3c7)](){const _0x28a073=_0x4bef21;this[_0x28a073(0x21c)][_0x28a073(0x2e6)](_0x279ba7=>_0x279ba7[_0x28a073(0x2b4)]()),this[_0x28a073(0x21c)]=[];}[_0x4bef21(0x3bc)](){const _0xa11354=_0x4bef21,_0x304784=[b[_0xa11354(0x45e)]['id']];this['disposeWithMe'](this[_0xa11354(0x429)][_0xa11354(0x3a8)](_0xcdf57d=>{const _0xa2ec07=_0xa11354;_0x304784[_0xa2ec07(0x37d)](_0xcdf57d['id'])&&_0xcdf57d[_0xa2ec07(0x3f4)][_0xa2ec07(0x441)]===this[_0xa2ec07(0x466)]['unitId']&&this[_0xa2ec07(0x2ce)]();}));}[_0x4bef21(0x332)](){const _0xd49581=_0x4bef21;this[_0xd49581(0x291)](a[_0xd49581(0x34c)](this[_0xd49581(0x466)][_0xd49581(0x1ff)]['onTransformChange$'])['pipe']($['filter'](_0x3a28ff=>_0x3a28ff[_0xd49581(0x2c2)]===p[_0xd49581(0x3d4)][_0xd49581(0x349)]),$['throttleTime'](0x10))[_0xd49581(0x3f2)](()=>{const _0x1eddb7=_0xd49581;this[_0x1eddb7(0x2ce)]();}));}};Ie=vt([W(0x1,a[_0x4bef21(0x248)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x4bef21(0x248)](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x4bef21(0x248)](a[_0x4bef21(0x3b8)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p['Shape']{constructor(_0x164bd7,_0x3842f7){const _0xdc2d50=_0x4bef21;super(_0x164bd7,_0x3842f7),h(this,'_color'),h(this,_0xdc2d50(0x262),!0x1),h(this,_0xdc2d50(0x305)),h(this,_0xdc2d50(0x367),''),h(this,_0xdc2d50(0x1ea),_0xdc2d50(0x363)),h(this,_0xdc2d50(0x434)),(_0x3842f7&&this['setShapeProps'](_0x3842f7),this[_0xdc2d50(0x2d8)][_0xdc2d50(0x39a)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0xdc2d50(0x38c)][_0xdc2d50(0x39a)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4bef21(0x229)](_0x56e584){const _0x5c0438=_0x4bef21;var _0x3a1837,_0x590ced,_0x4fb054,_0x354708,_0x15cd52,_0x358c95;this[_0x5c0438(0x438)]=(_0x3a1837=_0x56e584['color'])!=null?_0x3a1837:this['_color'],this[_0x5c0438(0x262)]=(_0x590ced=_0x56e584[_0x5c0438(0x296)])!=null?_0x590ced:this[_0x5c0438(0x262)],this[_0x5c0438(0x305)]=(_0x4fb054=_0x56e584[_0x5c0438(0x2e4)])!=null?_0x4fb054:this['_range'],this[_0x5c0438(0x367)]=(_0x354708=_0x56e584['name'])!=null?_0x354708:this['_name'],this[_0x5c0438(0x1ea)]=(_0x15cd52=_0x56e584[_0x5c0438(0x444)])!=null?_0x15cd52:this[_0x5c0438(0x1ea)],this['_backgroundColor']=(_0x358c95=_0x56e584[_0x5c0438(0x2aa)])!=null?_0x358c95:this[_0x5c0438(0x434)],this[_0x5c0438(0x2fb)]({'width':_0x56e584['width'],'height':_0x56e584[_0x5c0438(0x365)]});}[_0x4bef21(0x42f)](_0x8f1346){const _0x28584a=_0x4bef21,{row:_0x44645d,column:_0x563150}=_0x8f1346;if(_0x44645d>=this[_0x28584a(0x305)][_0x28584a(0x375)]&&_0x44645d<=this[_0x28584a(0x305)][_0x28584a(0x20a)]&&_0x563150>=this[_0x28584a(0x305)][_0x28584a(0x30a)]&&_0x563150<=this[_0x28584a(0x305)][_0x28584a(0x413)]){this[_0x28584a(0x229)]({'hovered':!0x0});return;}this[_0x28584a(0x229)]({'hovered':!0x1});}['triggerDblclick'](_0x240285){return!0x1;}[_0x4bef21(0x463)](_0x461368){const _0x2beee0=_0x4bef21;p[_0x2beee0(0x339)][_0x2beee0(0x279)](_0x461368,{'width':this[_0x2beee0(0x428)],'height':this[_0x2beee0(0x365)],'strokeWidth':mt,'stroke':this[_0x2beee0(0x438)],'evented':!0x1,'fill':this[_0x2beee0(0x434)]}),this[_0x2beee0(0x262)]&&(_0x461368[_0x2beee0(0x447)](),_0x461368['transform'](0x1,0x0,0x0,0x1,this[_0x2beee0(0x428)],this[_0x2beee0(0x1ea)]===_0x2beee0(0x2af)?0x0:-0x14),ee[_0x2beee0(0x279)](_0x461368,{'text':this[_0x2beee0(0x367)],'color':this[_0x2beee0(0x438)]}),_0x461368['restore']());}}var Ct=Object[_0x4bef21(0x469)],pt=(_0x289cf0,_0x27ccf6,_0x14b793,_0x3fbee8)=>{const _0x3a15e6=_0x4bef21;for(var _0x3b8d21=_0x3fbee8>0x1?void 0x0:_0x3fbee8?Ct(_0x27ccf6,_0x14b793):_0x27ccf6,_0x35c829=_0x289cf0[_0x3a15e6(0x2a3)]-0x1,_0x1327ff;_0x35c829>=0x0;_0x35c829--)(_0x1327ff=_0x289cf0[_0x35c829])&&(_0x3b8d21=_0x1327ff(_0x3b8d21)||_0x3b8d21);return _0x3b8d21;},ae=(_0x5a8c2a,_0x42b1f7)=>(_0xfb2ec3,_0x253fc5)=>_0x42b1f7(_0xfb2ec3,_0x253fc5,_0x5a8c2a);const bt=0x1389;let ve=class extends a[_0x4bef21(0x418)]{constructor(_0x4b26af,_0x15489b,_0x2132e6,_0x4793e1){const _0x506983=_0x4bef21;super(),h(this,_0x506983(0x21f),new Set()),h(this,'_lastPointer',null),(this[_0x506983(0x466)]=_0x4b26af,this['_sheetSkeletonManagerService']=_0x15489b,this[_0x506983(0x290)]=_0x2132e6,this['_themeService']=_0x4793e1,this['_init']());}[_0x4bef21(0x2c4)](){const _0x47d6d0=_0x4bef21;this[_0x47d6d0(0x396)][_0x47d6d0(0x30d)][_0x47d6d0(0x26c)]($[_0x47d6d0(0x2a8)](this[_0x47d6d0(0x29f)]),$[_0x47d6d0(0x254)](_0x7116c8=>{const _0x319a66=_0x47d6d0;if(_0x7116c8){const _0x38f9bd=_0x7116c8[_0x319a66(0x276)];return d[_0x319a66(0x27a)](this[_0x319a66(0x290)][_0x319a66(0x1f4)](this[_0x319a66(0x466)]['unitId']),this[_0x319a66(0x2f0)][_0x319a66(0x3a2)])[_0x319a66(0x26c)]($['map'](([_0x180157,_0x2a6b92])=>{const _0x534138=_0x319a66,_0x11f769=new Map();return _0x180157[_0x534138(0x2e6)]((_0x26d6fb,_0x1744f5)=>{const _0xd7331e=_0x534138;if(_0x26d6fb[_0xd7331e(0x28b)]===_0x38f9bd){const _0x35764f={..._0x26d6fb};_0x35764f['color']=this[_0xd7331e(0x2f0)][_0xd7331e(0x345)](_0x26d6fb[_0xd7331e(0x317)]),_0x11f769[_0xd7331e(0x323)](_0x1744f5,_0x35764f);}}),{'skeleton':_0x7116c8,'cursors':_0x11f769};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x47d6d0(0x3f2)](({skeleton:_0x5e0527,cursors:_0x335049})=>{const _0x526592=_0x47d6d0;this[_0x526592(0x3c7)](),_0x5e0527&&this[_0x526592(0x2a0)](_0x5e0527,_0x335049);}),this[_0x47d6d0(0x396)]['currentSkeleton$']['subscribe'](_0x393ffe=>{const _0x4c4631=_0x47d6d0;if(_0x393ffe==null)return;const {skeleton:_0x2c13e8}=_0x393ffe,{scene:_0x143682}=this[_0x4c4631(0x466)];_0x143682[_0x4c4631(0x459)][_0x4c4631(0x39a)](a[_0x4c4631(0x28f)](_0xac27f2=>{const _0x530e8e=_0x4c4631;var _0x553c59,_0x3e39fb;const {offsetX:_0x9eb0d7,offsetY:_0x50d448}=_0xac27f2,{x:_0x429433,y:_0x4760b4}=_0x143682[_0x530e8e(0x306)](p['Vector2'][_0x530e8e(0x404)]([_0x9eb0d7,_0x50d448])),{scaleX:_0x33a830,scaleY:_0x5d0d6d}=_0x143682['getAncestorScale'](),_0x2f3b47=_0x143682[_0x530e8e(0x29b)](p[_0x530e8e(0x2f1)]['VIEW_MAIN']),_0x445679=_0x143682[_0x530e8e(0x430)](p['Vector2'][_0x530e8e(0x404)]([_0x429433,_0x4760b4]),_0x2f3b47),_0x23b077=_0x2c13e8[_0x530e8e(0x2a6)](_0x9eb0d7,_0x50d448,_0x33a830,_0x5d0d6d,_0x445679);((_0x553c59=this[_0x530e8e(0x2df)])==null?void 0x0:_0x553c59[_0x530e8e(0x2e0)])===_0x23b077['column']&&((_0x3e39fb=this[_0x530e8e(0x2df)])==null?void 0x0:_0x3e39fb[_0x530e8e(0x2d4)])===_0x23b077[_0x530e8e(0x2d4)]||this[_0x530e8e(0x21f)][_0x530e8e(0x2e6)](_0xfb61b2=>{const _0x2c7a2e=_0x530e8e;_0xfb61b2[_0x2c7a2e(0x42f)](_0x23b077);});},0x64));});}[_0x4bef21(0x2a0)](_0x3d1417,_0xb709f4){const _0x248580=_0x4bef21;var _0x408719;const _0x4e61de=(_0x408719=this[_0x248580(0x396)][_0x248580(0x33f)]())==null?void 0x0:_0x408719[_0x248580(0x2eb)];if(!_0x4e61de)return;const _0x5dd88a=this['_getSheetObject']();if(!_0x5dd88a)return;this[_0x248580(0x21f)][_0x248580(0x2e6)](_0x33779a=>{const _0x5b4ce5=_0x248580;_0x33779a[_0x5b4ce5(0x2c9)]();});const {scene:_0x4c6cbb}=_0x5dd88a,_0x4e9b9e=Et(Array[_0x248580(0x358)](_0xb709f4[_0x248580(0x2d7)]()))['map'](_0x1420a6=>{const _0x542454=_0x248580,{color:_0x2088be,range:_0x5d1cbf,name:_0x2cc22c,selection:_0x5132cb,sheetID:_0x5ad985}=_0x1420a6,{startColumn:_0x113e13,startRow:_0x5264bc,endColumn:_0x5d8826,endRow:_0x1536b5}=_0x5d1cbf,_0x2a404e=X[_0x542454(0x1fb)](_0x5264bc,_0x113e13,_0x4c6cbb,_0x4e61de),_0x339664=X[_0x542454(0x1fb)](_0x1536b5,_0x5d8826,_0x4c6cbb,_0x4e61de),{columnHeaderHeightAndMarginTop:_0x23680b}=_0x4e61de,{startX:_0x4d8222,startY:_0x4a461a}=_0x2a404e,{endX:_0x39d994,endY:_0x1e2f42}=_0x339664,_0x718600=_0x39d994-_0x4d8222,_0x19a051=_0x1e2f42-_0x4a461a,_0x2dd91a={'labelPosition':_0x4a461a-_0x23680b>=K?'top':'bottom','sheetID':_0x5ad985,'range':_0x5d1cbf,'color':_0x2088be,'name':_0x2cc22c,'selection':_0x5132cb,'left':_0x4d8222,'top':_0x4a461a,'width':_0x718600,'height':_0x19a051,'evented':!0x1,'zIndex':bt};return new Pe(_0x2cc22c,_0x2dd91a);});_0x4c6cbb['addObjects'](_0x4e9b9e,gt),this['_cursors']=new Set(_0x4e9b9e);}[_0x4bef21(0x3c7)](){const _0x370fb8=_0x4bef21;var _0x19c548;(_0x19c548=this[_0x370fb8(0x21f)])==null||_0x19c548[_0x370fb8(0x2e6)](_0x58f639=>_0x58f639[_0x370fb8(0x2b4)]());}[_0x4bef21(0x227)](){const _0x3ce462=_0x4bef21;return X[_0x3ce462(0x431)](this[_0x3ce462(0x466)]['unit'],this[_0x3ce462(0x466)]);}};ve=pt([ae(0x1,a[_0x4bef21(0x248)](X[_0x4bef21(0x314)])),ae(0x2,a[_0x4bef21(0x248)](x)),ae(0x3,a[_0x4bef21(0x248)](a['ThemeService']))],ve);function _0x4804(_0x20a67a,_0x12bf59){const _0x196b33=_0x196b();return _0x4804=function(_0x4804e8,_0x40214b){_0x4804e8=_0x4804e8-0x1d8;let _0x50b9a7=_0x196b33[_0x4804e8];return _0x50b9a7;},_0x4804(_0x20a67a,_0x12bf59);}function Et(_0x19d66e){const _0x3dd822=_0x4bef21,_0x7934db=new Map();return _0x19d66e['forEach'](_0x328557=>{const _0x1d5000=_0x4804;if(_0x7934db[_0x1d5000(0x2ca)](_0x328557[_0x1d5000(0x3ca)])){const _0x3067ba=_0x7934db['get'](_0x328557[_0x1d5000(0x3ca)]);_0x3067ba['name']+=',\x20'+_0x328557[_0x1d5000(0x1e2)];}else _0x7934db['set'](_0x328557[_0x1d5000(0x3ca)],_0x328557);}),Array[_0x3dd822(0x358)](_0x7934db[_0x3dd822(0x2d7)]());}var E=function(){const _0x509ee0=_0x4bef21;return E=Object['assign']||function(_0x228e97){const _0x9c5007=_0x4804;for(var _0x1a6316,_0x55ec7b=0x1,_0x13760b=arguments[_0x9c5007(0x2a3)];_0x55ec7b<_0x13760b;_0x55ec7b++){_0x1a6316=arguments[_0x55ec7b];for(var _0x213d2d in _0x1a6316)Object['prototype'][_0x9c5007(0x3e3)][_0x9c5007(0x223)](_0x1a6316,_0x213d2d)&&(_0x228e97[_0x213d2d]=_0x1a6316[_0x213d2d]);}return _0x228e97;},E[_0x509ee0(0x437)](this,arguments);},Tt=function(_0x3548e4,_0x4ceca8){const _0x33ec70=_0x4bef21;var _0x2653aa={};for(var _0x196e6a in _0x3548e4)Object[_0x33ec70(0x341)]['hasOwnProperty'][_0x33ec70(0x223)](_0x3548e4,_0x196e6a)&&_0x4ceca8[_0x33ec70(0x318)](_0x196e6a)<0x0&&(_0x2653aa[_0x196e6a]=_0x3548e4[_0x196e6a]);if(_0x3548e4!=null&&typeof Object[_0x33ec70(0x362)]=='function'){for(var _0x5113f7=0x0,_0x196e6a=Object['getOwnPropertySymbols'](_0x3548e4);_0x5113f7<_0x196e6a[_0x33ec70(0x2a3)];_0x5113f7++)_0x4ceca8['indexOf'](_0x196e6a[_0x5113f7])<0x0&&Object[_0x33ec70(0x341)]['propertyIsEnumerable'][_0x33ec70(0x223)](_0x3548e4,_0x196e6a[_0x5113f7])&&(_0x2653aa[_0x196e6a[_0x5113f7]]=_0x3548e4[_0x196e6a[_0x5113f7]]);}return _0x2653aa;},pe=M[_0x4bef21(0x359)](function(_0x334a3e,_0x3f58e7){const _0x561816=_0x4bef21;var _0x2d8015=_0x334a3e['icon'],_0x1019f1=_0x334a3e['id'],_0x51cd3e=_0x334a3e[_0x561816(0x3f7)],_0x39fae2=_0x334a3e[_0x561816(0x3a0)],_0x3b7f0f=Tt(_0x334a3e,['icon','id','className',_0x561816(0x3a0)]),_0x25abb6=_0x561816(0x409)[_0x561816(0x414)](_0x1019f1,'\x20')[_0x561816(0x414)](_0x51cd3e||'')[_0x561816(0x252)](),_0x584cb9=M['useRef']('_'[_0x561816(0x414)](Dt()));return Ae(_0x2d8015,''[_0x561816(0x414)](_0x1019f1),{'defIds':_0x2d8015[_0x561816(0x33e)],'idSuffix':_0x584cb9[_0x561816(0x417)]},E({'ref':_0x3f58e7,'className':_0x25abb6},_0x3b7f0f),_0x39fae2);});function Ae(_0x506591,_0x1789ff,_0x3b817c,_0x4fd05a,_0x43cd8c){const _0x2ea56e=_0x4bef21;return M[_0x2ea56e(0x307)](_0x506591[_0x2ea56e(0x1f6)],E(E({'key':_0x1789ff},Ot(_0x506591,_0x3b817c,_0x43cd8c)),_0x4fd05a),(Rt(_0x506591,_0x3b817c)[_0x2ea56e(0x1d9)]||[])['map'](function(_0x126297,_0x3ef2fc){const _0x5e3d8a=_0x2ea56e;return Ae(_0x126297,''[_0x5e3d8a(0x414)](_0x1789ff,'-')[_0x5e3d8a(0x414)](_0x506591['tag'],'-')[_0x5e3d8a(0x414)](_0x3ef2fc),_0x3b817c,void 0x0,_0x43cd8c);}));}function Ot(_0x35e1ed,_0x5a0455,_0x12b22e){const _0x59aadd=_0x4bef21;var _0x1f4b95=E({},_0x35e1ed[_0x59aadd(0x39d)]);_0x12b22e!=null&&_0x12b22e[_0x59aadd(0x3ae)]&&_0x1f4b95[_0x59aadd(0x309)]===_0x59aadd(0x3ae)&&(_0x1f4b95['fill']=_0x12b22e[_0x59aadd(0x3ae)]),_0x35e1ed[_0x59aadd(0x1f6)]===_0x59aadd(0x3fc)&&_0x1f4b95['id']&&(_0x1f4b95['id']=_0x1f4b95['id']+_0x5a0455[_0x59aadd(0x400)]),Object[_0x59aadd(0x44f)](_0x1f4b95)[_0x59aadd(0x2e6)](function(_0x2004b2){const _0x5ec881=_0x59aadd;var _0x3e921b=_0x2004b2[0x0],_0xcccc4f=_0x2004b2[0x1];_0x3e921b===_0x5ec881(0x3fc)&&typeof _0xcccc4f==_0x5ec881(0x33a)&&(_0x1f4b95[_0x3e921b]=_0xcccc4f['replace'](/url\(#(.*)\)/,_0x5ec881(0x300)[_0x5ec881(0x414)](_0x5a0455[_0x5ec881(0x400)],')')));});var _0x32fd5b=_0x5a0455[_0x59aadd(0x33e)];return!_0x32fd5b||_0x32fd5b[_0x59aadd(0x2a3)]===0x0||(_0x35e1ed[_0x59aadd(0x1f6)]==='use'&&_0x1f4b95[_0x59aadd(0x298)]&&(_0x1f4b95[_0x59aadd(0x298)]=_0x1f4b95['xlink:href']+_0x5a0455['idSuffix']),Object['entries'](_0x1f4b95)[_0x59aadd(0x2e6)](function(_0x486b0f){const _0x5722e8=_0x59aadd;var _0x1df10b=_0x486b0f[0x0],_0x34de87=_0x486b0f[0x1];typeof _0x34de87==_0x5722e8(0x33a)&&(_0x1f4b95[_0x1df10b]=_0x34de87['replace'](/url\(#(.*)\)/,_0x5722e8(0x300)[_0x5722e8(0x414)](_0x5a0455['idSuffix'],')')));})),_0x1f4b95;}function Rt(_0x21964a,_0x260806){const _0x29bd91=_0x4bef21;var _0x24ed99,_0x56be76=_0x260806['defIds'];return!_0x56be76||_0x56be76['length']===0x0?_0x21964a:_0x21964a[_0x29bd91(0x1f6)]===_0x29bd91(0x24d)&&(!((_0x24ed99=_0x21964a['children'])===null||_0x24ed99===void 0x0)&&_0x24ed99['length'])?E(E({},_0x21964a),{'children':_0x21964a['children']['map'](function(_0x3679e7){const _0x5acfe1=_0x29bd91;return typeof _0x3679e7[_0x5acfe1(0x39d)]['id']=='string'&&_0x56be76&&_0x56be76[_0x5acfe1(0x37d)](_0x3679e7[_0x5acfe1(0x39d)]['id'])?E(E({},_0x3679e7),{'attrs':E(E({},_0x3679e7[_0x5acfe1(0x39d)]),{'id':_0x3679e7[_0x5acfe1(0x39d)]['id']+_0x260806['idSuffix']})}):_0x3679e7;})}):_0x21964a;}function Dt(){const _0x430a8e=_0x4bef21;return Math['random']()[_0x430a8e(0x23c)](0x24)[_0x430a8e(0x26b)](0x2,0x8);}pe[_0x4bef21(0x461)]=_0x4bef21(0x407);var Ut={'tag':_0x4bef21(0x3a3),'attrs':{'xmlns':_0x4bef21(0x20f),'fill':'none','viewBox':_0x4bef21(0x24e),'width':_0x4bef21(0x286),'height':_0x4bef21(0x286)},'children':[{'tag':'g','attrs':{'clipPath':_0x4bef21(0x204)},'children':[{'tag':'path','attrs':{'stroke':_0x4bef21(0x273),'d':_0x4bef21(0x28a),'strokeLinecap':_0x4bef21(0x3be),'strokeLinejoin':_0x4bef21(0x3be),'strokeWidth':1.2}}]},{'tag':_0x4bef21(0x24d),'attrs':{},'children':[{'tag':_0x4bef21(0x35a),'attrs':{'id':_0x4bef21(0x37a)},'children':[{'tag':_0x4bef21(0x29c),'attrs':{'fill':'white','d':_0x4bef21(0x324)}}]}]}],'defIds':[_0x4bef21(0x37a)]},ye=M[_0x4bef21(0x359)](function(_0x2a5e29,_0x3383f9){const _0x80aace=_0x4bef21;return M[_0x80aace(0x307)](pe,Object['assign']({},_0x2a5e29,{'id':_0x80aace(0x2d0),'ref':_0x3383f9,'icon':Ut}));});ye[_0x4bef21(0x461)]=_0x4bef21(0x3b1);var Nt={'tag':_0x4bef21(0x3a3),'attrs':{'xmlns':_0x4bef21(0x20f),'fill':_0x4bef21(0x39e),'viewBox':'0\x200\x2017\x2016','width':_0x4bef21(0x286),'height':_0x4bef21(0x286)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x4bef21(0x29c),'attrs':{'stroke':_0x4bef21(0x273),'d':_0x4bef21(0x2b2),'strokeLinecap':'round','strokeLinejoin':_0x4bef21(0x3be),'strokeWidth':1.2}}]},{'tag':_0x4bef21(0x24d),'attrs':{},'children':[{'tag':_0x4bef21(0x35a),'attrs':{'id':_0x4bef21(0x2ed)},'children':[{'tag':'path','attrs':{'fill':_0x4bef21(0x2ad),'d':'M0\x200H16V16H0z','transform':_0x4bef21(0x3b4)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x4bef21(0x359)](function(_0x35ef6f,_0x54c195){const _0x2a30d8=_0x4bef21;return M[_0x2a30d8(0x307)](pe,Object[_0x2a30d8(0x424)]({},_0x35ef6f,{'id':_0x2a30d8(0x2f5),'ref':_0x54c195,'icon':Nt}));});$e[_0x4bef21(0x461)]=_0x4bef21(0x27b);function Mt(_0x72736e){const _0x416f2c=_0x4bef21;switch(_0x72736e){case u['CollaborationStatus'][_0x416f2c(0x21b)]:return _0x416f2c(0x3bb);case u[_0x416f2c(0x3e1)][_0x416f2c(0x21e)]:return _0x416f2c(0x42c);case u['CollaborationStatus'][_0x416f2c(0x3d7)]:return'collabStatus.fetchMiss';case u[_0x416f2c(0x3e1)][_0x416f2c(0x3a7)]:return _0x416f2c(0x453);case u[_0x416f2c(0x3e1)][_0x416f2c(0x3d8)]:case u[_0x416f2c(0x3e1)][_0x416f2c(0x336)]:return _0x416f2c(0x24b);case u['CollaborationStatus'][_0x416f2c(0x3d3)]:case u[_0x416f2c(0x3e1)][_0x416f2c(0x425)]:return _0x416f2c(0x36b);}}function xe(_0xdc3d53){const _0x3fccfc=_0x4bef21,{status$:_0x110305}=_0xdc3d53,_0x323130=T['useObservable'](_0x110305,u[_0x3fccfc(0x3e1)][_0x3fccfc(0x3a7)]),_0x253736=T['useDependency'](a[_0x3fccfc(0x22a)]),_0x12fd8c=T[_0x3fccfc(0x213)](u[_0x3fccfc(0x295)]),_0x1f4cc7=_0x323130!==u['CollaborationStatus'][_0x3fccfc(0x21b)],_0xf3fd2d=_0x253736['t'](Mt(_0x323130)),_0x40627b=_0x1f4cc7?w[_0x3fccfc(0x266)]($e,{}):w['jsx'](ye,{}),_0x15ae8b=M[_0x3fccfc(0x34e)](()=>{const _0xa01132=_0x3fccfc;_0x1f4cc7||_0x12fd8c[_0xa01132(0x1da)]();},[_0x1f4cc7,_0x12fd8c]);function _0x3a2569(){const _0x5e30ed=_0x3fccfc;return w[_0x5e30ed(0x2a9)](_0x5e30ed(0x468),{'className':'univer-flex\x20univer-items-center','onClick':_0x15ae8b,'children':[w[_0x5e30ed(0x266)](_0x5e30ed(0x468),{'className':D[_0x5e30ed(0x2db)](_0x5e30ed(0x2e2),{'univer-text-green-500':_0x1f4cc7,'univer-text-red-500':!_0x1f4cc7}),'children':_0x40627b}),w[_0x5e30ed(0x266)](_0x5e30ed(0x468),{'className':_0x5e30ed(0x427),'children':_0xf3fd2d})]});}return _0x1f4cc7?_0x3a2569():w[_0x3fccfc(0x266)](D[_0x3fccfc(0x224)],{'title':_0x253736['t']('collab-client.tooltip.reconnect'),'children':_0x3a2569()});}var Lt=Object['getOwnPropertyDescriptor'],wt=(_0x3ea386,_0x38c3a2,_0x2da2de,_0x120e53)=>{const _0x531e96=_0x4bef21;for(var _0x407e71=_0x120e53>0x1?void 0x0:_0x120e53?Lt(_0x38c3a2,_0x2da2de):_0x38c3a2,_0x395ac3=_0x3ea386[_0x531e96(0x2a3)]-0x1,_0x361374;_0x395ac3>=0x0;_0x395ac3--)(_0x361374=_0x3ea386[_0x395ac3])&&(_0x407e71=_0x361374(_0x407e71)||_0x407e71);return _0x407e71;},V=(_0xc89cd9,_0x113001)=>(_0x169940,_0xd49c73)=>_0x113001(_0x169940,_0xd49c73,_0xc89cd9);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x4bef21(0x2f3)]{constructor(_0x434b73,_0x3b981b,_0x2cb740,_0x508b4e){const _0x10177e=_0x4bef21;super(),h(this,_0x10177e(0x2a5),new d[(_0x10177e(0x385))](u[_0x10177e(0x3e1)][_0x10177e(0x3a7)])),(this['_univerInstanceService']=_0x434b73,this[_0x10177e(0x23a)]=_0x3b981b,this['_collaborationController']=_0x2cb740,this[_0x10177e(0x2d3)]=_0x508b4e,this[_0x10177e(0x200)](),this[_0x10177e(0x410)]());}['_initStatusListener'](){const _0xd78b2e=_0x4bef21;this[_0xd78b2e(0x291)](this[_0xd78b2e(0x40f)][_0xd78b2e(0x41a)][_0xd78b2e(0x26c)](d['switchMap'](()=>{const _0x284a2f=_0xd78b2e,_0x1b9ee8=this[_0x284a2f(0x40f)]['getFocusedUnit']();return _0x1b9ee8?this['_collaborationController'][_0x284a2f(0x312)](_0x1b9ee8['getUnitId']()):d['of'](null);}),d[_0xd78b2e(0x254)](_0x45018b=>_0x45018b?_0x45018b[_0xd78b2e(0x31a)]:d['of'](u[_0xd78b2e(0x3e1)][_0xd78b2e(0x3a7)])))[_0xd78b2e(0x3f2)](_0x17962a=>{const _0x374468=_0xd78b2e;this[_0x374468(0x2a5)]['next'](_0x17962a);}));}[_0x4bef21(0x200)](){const _0x4882a0=_0x4bef21;this['disposeWithMe'](this[_0x4882a0(0x2d3)]['registerComponent'](T['BuiltInUIPart'][_0x4882a0(0x1e0)],()=>T['connectInjector'](Pt({'status$':this['_status$'][_0x4882a0(0x335)]()}),this[_0x4882a0(0x23a)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a[_0x4bef21(0x3bd)]),V(0x1,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),V(0x2,a[_0x4bef21(0x248)](u['CollaborationController'])),V(0x3,T[_0x4bef21(0x2f7)])],exports[_0x4bef21(0x35c)]);function Pt(_0x149c70){const {status$:_0x4b92b6}=_0x149c70;return function(){const _0x5be761=_0x4804;return w[_0x5be761(0x266)](xe,{'status$':_0x4b92b6});};}var At=Object[_0x4bef21(0x469)],yt=(_0x36f7f0,_0x40939d,_0x15f3af,_0x2a6d96)=>{for(var _0x1f939b=_0x2a6d96>0x1?void 0x0:_0x2a6d96?At(_0x40939d,_0x15f3af):_0x40939d,_0x1f4295=_0x36f7f0['length']-0x1,_0x43a758;_0x1f4295>=0x0;_0x1f4295--)(_0x43a758=_0x36f7f0[_0x1f4295])&&(_0x1f939b=_0x43a758(_0x1f939b)||_0x1f939b);return _0x1f939b;},y=(_0x2ab0f8,_0x220de3)=>(_0x5738c2,_0x465c36)=>_0x220de3(_0x5738c2,_0x465c36,_0x2ab0f8);let q=class extends a[_0x4bef21(0x2f3)]{constructor(_0x5946e7,_0x4674e1,_0x200e6b,_0x4f4e38,_0x3ebd0e,_0x29ecce){const _0x2b99ef=_0x4bef21;super(),this[_0x2b99ef(0x260)]=_0x5946e7,this['_localCacheService']=_0x4674e1,this[_0x2b99ef(0x319)]=_0x200e6b,this[_0x2b99ef(0x39b)]=_0x4f4e38,this['_notificationService']=_0x3ebd0e,this[_0x2b99ef(0x37b)]=_0x29ecce,this[_0x2b99ef(0x366)](),this[_0x2b99ef(0x1ef)]();}[_0x4bef21(0x366)](){const _0x4c1aa6=_0x4bef21;this[_0x4c1aa6(0x291)](this['_beforeCloseService'][_0x4c1aa6(0x277)](()=>{const _0x3f88dd=_0x4c1aa6;if(this[_0x3f88dd(0x41d)][_0x3f88dd(0x321)][_0x3f88dd(0x401)])return this[_0x3f88dd(0x37b)]['t'](_0x3f88dd(0x23e));}));}[_0x4bef21(0x1ef)](){const _0x33d993=_0x4bef21;this[_0x33d993(0x291)](this[_0x33d993(0x319)][_0x33d993(0x31e)][_0x33d993(0x3f2)](_0x225eef=>{const _0x11dc0c=_0x33d993;_0x225eef['id']===u[_0x11dc0c(0x2a4)][_0x11dc0c(0x3ad)]&&this[_0x11dc0c(0x39b)][_0x11dc0c(0x2b1)]({'type':D[_0x11dc0c(0x402)]['Warning'],'content':this['_localeService']['t'](_0x11dc0c(0x3f8))}),_0x225eef['id']===u['CollaborationUIEventId'][_0x11dc0c(0x435)]&&this[_0x11dc0c(0x39b)][_0x11dc0c(0x2b1)]({'type':D[_0x11dc0c(0x402)][_0x11dc0c(0x44d)],'content':this[_0x11dc0c(0x37b)]['t'](_0x11dc0c(0x230))}),_0x225eef['id']===u[_0x11dc0c(0x2a4)][_0x11dc0c(0x326)]&&this[_0x11dc0c(0x1e4)][_0x11dc0c(0x2b1)]({'title':this['_localeService']['t'](_0x11dc0c(0x3e4)),'content':this['_localeService']['t']('permission.content'),'type':_0x11dc0c(0x442),'duration':0x0}),_0x225eef['id']===u['CollaborationUIEventId'][_0x11dc0c(0x21e)]&&this[_0x11dc0c(0x39b)][_0x11dc0c(0x2b1)]({'type':D['MessageType'][_0x11dc0c(0x2c1)],'content':this['_localeService']['t'](_0x11dc0c(0x230))+'('+_0x225eef[_0x11dc0c(0x36c)]+')'}),_0x225eef['id']===u[_0x11dc0c(0x2a4)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x11dc0c(0x2b1)]({'type':D['MessageType'][_0x11dc0c(0x44d)],'content':this[_0x11dc0c(0x37b)]['t'](_0x225eef[_0x11dc0c(0x36c)]||'')}),_0x225eef['id']===u['CollaborationUIEventId'][_0x11dc0c(0x301)]&&this[_0x11dc0c(0x39b)]['show']({'type':D[_0x11dc0c(0x402)]['Warning'],'content':this['_localeService']['t'](_0x11dc0c(0x35f))}),_0x225eef['id']===u[_0x11dc0c(0x2a4)][_0x11dc0c(0x241)]&&this['_messageService'][_0x11dc0c(0x2b1)]({'type':D[_0x11dc0c(0x402)][_0x11dc0c(0x2c1)],'content':this[_0x11dc0c(0x37b)]['t'](_0x11dc0c(0x240))}),_0x225eef['id']===u[_0x11dc0c(0x2a4)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x11dc0c(0x39b)]['show']({'type':D[_0x11dc0c(0x402)][_0x11dc0c(0x2c1)],'content':this[_0x11dc0c(0x37b)]['t'](_0x11dc0c(0x211))});}));}};q=yt([y(0x0,T[_0x4bef21(0x39c)]),y(0x1,u[_0x4bef21(0x405)]),y(0x2,a[_0x4bef21(0x248)](u[_0x4bef21(0x368)])),y(0x3,T[_0x4bef21(0x1f1)]),y(0x4,T[_0x4bef21(0x390)]),y(0x5,a[_0x4bef21(0x248)](a[_0x4bef21(0x22a)]))],q);const $t=_0x4bef21(0x42e),Ue={},be=a[_0x4bef21(0x315)](_0x4bef21(0x210));var xt=Object[_0x4bef21(0x469)],jt=(_0x543115,_0x4280e0,_0xb4ecc5,_0x3be78c)=>{const _0xb5c8c6=_0x4bef21;for(var _0x50bba8=_0x3be78c>0x1?void 0x0:_0x3be78c?xt(_0x4280e0,_0xb4ecc5):_0x4280e0,_0x250ef8=_0x543115[_0xb5c8c6(0x2a3)]-0x1,_0x1c01d4;_0x250ef8>=0x0;_0x250ef8--)(_0x1c01d4=_0x543115[_0x250ef8])&&(_0x50bba8=_0x1c01d4(_0x50bba8)||_0x50bba8);return _0x50bba8;},H=(_0x2d83ee,_0xb4565e)=>(_0x3106a3,_0x5de618)=>_0xb4565e(_0x3106a3,_0x5de618,_0x2d83ee);exports[_0x4bef21(0x30b)]=class extends a[_0x4bef21(0x418)]{constructor(_0x2b0b67,_0x1c212b,_0x380dfe,_0x41787a,_0x536f2c){const _0x919979=_0x4bef21;super(),this[_0x919979(0x364)]=_0x2b0b67,this[_0x919979(0x340)]=_0x1c212b,this[_0x919979(0x429)]=_0x380dfe,this[_0x919979(0x2cb)]=_0x41787a,_0x536f2c?_0x536f2c==null||_0x536f2c[_0x919979(0x373)]()[_0x919979(0x395)](()=>this['_init']()):(this[_0x919979(0x340)][_0x919979(0x1e6)](_0x919979(0x257),_0x919979(0x27c)),this[_0x919979(0x2c4)]());}async['_init'](){const _0x30ebba=_0x4bef21,_0x47c08b=this[_0x30ebba(0x364)]['getParam'](_0x30ebba(0x3c2)),_0x34b1d5=this[_0x30ebba(0x364)][_0x30ebba(0x40a)](_0x30ebba(0x2c2)),_0x16ac5f=this[_0x30ebba(0x364)][_0x30ebba(0x40a)](_0x30ebba(0x244));if(!_0x47c08b||!_0x34b1d5){this[_0x30ebba(0x340)][_0x30ebba(0x1e6)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x20d576=await this['_dataLoaderService'][_0x30ebba(0x258)](_0x47c08b,Number(_0x34b1d5),_0x16ac5f);_0x20d576&&_0x20d576 instanceof a[_0x30ebba(0x2d1)]&&this['_setupSubUnitSync'](_0x20d576);}async['_setupSubUnitSync'](_0x5c99f5){const _0xbb21e7=_0x4bef21;await this[_0xbb21e7(0x3f3)](_0x5c99f5),_0x5c99f5['activeSheet$'][_0xbb21e7(0x26c)](d[_0xbb21e7(0x2a8)](this['dispose$']))[_0xbb21e7(0x3f2)](_0xae349=>{_0xae349&&this['_updateURLWithCurrentState'](_0xae349);}),this[_0xbb21e7(0x364)][_0xbb21e7(0x1fd)][_0xbb21e7(0x26c)](d[_0xbb21e7(0x2a8)](this[_0xbb21e7(0x29f)]))[_0xbb21e7(0x3f2)](()=>this[_0xbb21e7(0x3f3)](_0x5c99f5));}[_0x4bef21(0x1f3)](_0x1cf903,_0x2e1c84=!0x1){const _0x84604f=_0x4bef21,_0x495053=this[_0x84604f(0x364)][_0x84604f(0x40a)]('subunit');_0x1cf903[_0x84604f(0x1fa)]()!==_0x495053&&this[_0x84604f(0x364)]['setParam'](_0x84604f(0x244),_0x1cf903[_0x84604f(0x1fa)](),_0x2e1c84);}async[_0x4bef21(0x3f3)](_0x52b1d6){const _0x2beaea=_0x4bef21;var _0x43f19b;const _0x1fc013=this[_0x2beaea(0x364)][_0x2beaea(0x40a)]('subunit');if(!_0x1fc013||!_0x52b1d6['getSheetBySheetId'](_0x1fc013)){const _0x42e172=_0x52b1d6[_0x2beaea(0x36d)]()[0x0],_0x462a1b=_0x52b1d6[_0x2beaea(0x36e)](_0x42e172);if(!_0x462a1b)return;this[_0x2beaea(0x1f3)](_0x462a1b,!0x0),await this['_commandService'][_0x2beaea(0x331)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x52b1d6['getUnitId'](),'subUnitId':_0x42e172});return;}((_0x43f19b=_0x52b1d6[_0x2beaea(0x320)]())==null?void 0x0:_0x43f19b['getSheetId']())!==_0x1fc013&&await this[_0x2beaea(0x429)]['executeCommand'](g[_0x2beaea(0x24a)]['id'],{'unitId':_0x52b1d6[_0x2beaea(0x1e1)](),'subUnitId':_0x1fc013});}},exports[_0x4bef21(0x30b)]=jt([H(0x0,be),H(0x1,a[_0x4bef21(0x31d)]),H(0x2,a[_0x4bef21(0x391)]),H(0x3,a[_0x4bef21(0x248)](u['DataLoaderService'])),H(0x4,a['Optional'](Ke[_0x4bef21(0x206)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0x4bef21(0x469)],kt=(_0x24a857,_0x13d7c3,_0x1021cb,_0x2da731)=>{const _0x52fd3a=_0x4bef21;for(var _0x58b891=_0x2da731>0x1?void 0x0:_0x2da731?Bt(_0x13d7c3,_0x1021cb):_0x13d7c3,_0x51a5fc=_0x24a857[_0x52fd3a(0x2a3)]-0x1,_0x2430bc;_0x51a5fc>=0x0;_0x51a5fc--)(_0x2430bc=_0x24a857[_0x51a5fc])&&(_0x58b891=_0x2430bc(_0x58b891)||_0x58b891);return _0x58b891;},ce=(_0x16d8f8,_0x2d5501)=>(_0x561201,_0x67052b)=>_0x2d5501(_0x561201,_0x67052b,_0x16d8f8);let z=class{constructor(_0x446d1d,_0xa45016,_0x5eccab){const _0x47c18c=_0x4bef21;this[_0x47c18c(0x23a)]=_0x446d1d,this[_0x47c18c(0x3d9)]=_0xa45016,this[_0x47c18c(0x403)]=_0x5eccab;}[_0x4bef21(0x379)](_0x11b0a3){const _0x5ee384=_0x4bef21;this[_0x5ee384(0x308)](_0x11b0a3),this['_transformPreviousActiveRange'](_0x11b0a3);}[_0x4bef21(0x44a)](_0x6af746){const _0x5d3de8=_0x4bef21,{unitID:_0x5543e5}=_0x6af746,_0x425ad6=this[_0x5d3de8(0x403)][_0x5d3de8(0x1f8)](_0x5543e5)[_0x5d3de8(0x412)](b[_0x5d3de8(0x455)]),{redoCache:_0x243260}=_0x425ad6[_0x5d3de8(0x454)]();if(_0x243260[_0x5d3de8(0x2a3)]===0x0)return _0x6af746;let _0x2b01eb=a[_0x5d3de8(0x406)]['deepClone'](_0x6af746['mutations'][0x0]);for(let _0x41577c=0x0;_0x41577c<_0x243260[_0x5d3de8(0x2a3)];_0x41577c++){const _0xd521f8={'id':'doc.mutation.rich-text-editing','params':{..._0x243260[_0x41577c]}},_0xb5162a=this[_0x5d3de8(0x3d9)]['transformMutation'](_0x2b01eb,_0xd521f8,!0x1);if(m[_0x5d3de8(0x2e5)](_0xb5162a))throw _0xb5162a[_0x5d3de8(0x442)];_0x2b01eb=_0xb5162a[_0x5d3de8(0x40c)];}return{...a[_0x5d3de8(0x406)][_0x5d3de8(0x3c6)](_0x6af746),'mutations':[_0x2b01eb]};}[_0x4bef21(0x308)](_0x2a60bd){const _0xe5d5e=_0x4bef21,{unitID:_0xec0632}=_0x2a60bd,_0x3df1e1=this[_0xe5d5e(0x403)]['getRenderById'](_0xec0632)[_0xe5d5e(0x412)](b[_0xe5d5e(0x455)]),{undoCache:_0x12e40a,redoCache:_0x2a9f13}=_0x3df1e1['getUndoRedoMutationParamsCache']();if(_0x12e40a[_0xe5d5e(0x2a3)]===0x0||_0x2a9f13[_0xe5d5e(0x2a3)]===0x0)return;const _0x13d7ae=[],_0x80a1f6=[];let _0xd6e91d=a[_0xe5d5e(0x406)][_0xe5d5e(0x3c6)](_0x2a60bd[_0xe5d5e(0x384)][0x0]),_0x3f5c20=a[_0xe5d5e(0x406)][_0xe5d5e(0x3c6)](_0x2a60bd[_0xe5d5e(0x384)][0x0]);for(let _0x2221ba=_0x12e40a['length']-0x1;_0x2221ba>=0x0;_0x2221ba--){const _0x43a094={'id':_0xe5d5e(0x202),'params':{..._0x12e40a[_0x2221ba]}},_0x4fd0fa={'id':_0xe5d5e(0x202),'params':{..._0x2a9f13[_0x2221ba]}},_0x404bed=this[_0xe5d5e(0x3d9)][_0xe5d5e(0x237)](_0xd6e91d,_0x43a094,!0x1),_0x47ebdd=this[_0xe5d5e(0x3d9)][_0xe5d5e(0x237)](_0x3f5c20,_0x4fd0fa,!0x1);if(m[_0xe5d5e(0x2e5)](_0x404bed))throw _0x404bed['error'];if(m[_0xe5d5e(0x2e5)](_0x47ebdd))throw _0x47ebdd[_0xe5d5e(0x442)];_0x13d7ae[_0xe5d5e(0x2b0)](_0x404bed[_0xe5d5e(0x3cb)][_0xe5d5e(0x3f4)]),_0x80a1f6[_0xe5d5e(0x2b0)](_0x47ebdd[_0xe5d5e(0x3cb)][_0xe5d5e(0x3f4)]),_0xd6e91d=_0x404bed[_0xe5d5e(0x40c)],_0x3f5c20=_0x47ebdd[_0xe5d5e(0x40c)];}_0x3df1e1['setUndoRedoMutationParamsCache']({'undoCache':_0x13d7ae,'redoCache':_0x80a1f6});}[_0x4bef21(0x26f)](_0x6dea08){const _0x743582=_0x4bef21,{unitID:_0x27c6a4}=_0x6dea08,_0x4432ce=this['_renderManagerService'][_0x743582(0x1f8)](_0x27c6a4)[_0x743582(0x412)](b[_0x743582(0x455)]),_0x474c8a=_0x4432ce[_0x743582(0x287)]();if(_0x474c8a==null)return;const _0x4f98ea=[{'id':_0x743582(0x202),'params':{'unitId':_0x6dea08[_0x743582(0x3d2)],'actions':null,'textRanges':[_0x474c8a]}}],_0x33746f=this[_0x743582(0x3d9)]['transformMutationsWithChangeset'](_0x6dea08,_0x4f98ea);if(!m[_0x743582(0x450)](_0x33746f))throw _0x33746f[_0x743582(0x442)];const _0x26a6e7=_0x33746f[_0x743582(0x3cb)][0x0][_0x743582(0x3f4)][_0x743582(0x342)];Array['isArray'](_0x26a6e7)&&_0x26a6e7[_0x743582(0x2a3)]&&_0x4432ce[_0x743582(0x3c5)](_0x26a6e7[0x0]);}};z=kt([ce(0x0,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),ce(0x1,m[_0x4bef21(0x3b3)]),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0xc74dad,_0x16c9b9,_0x2157de,_0x207e23)=>{for(var _0x2e197e=_0x207e23>0x1?void 0x0:_0x207e23?Ht(_0x16c9b9,_0x2157de):_0x16c9b9,_0x37f05f=_0xc74dad['length']-0x1,_0x531cb7;_0x37f05f>=0x0;_0x37f05f--)(_0x531cb7=_0xc74dad[_0x37f05f])&&(_0x2e197e=_0x531cb7(_0x2e197e)||_0x2e197e);return _0x2e197e;},le=(_0x499a13,_0x5a3fbd)=>(_0x30280b,_0xa1d0b6)=>_0x5a3fbd(_0x30280b,_0xa1d0b6,_0x499a13);let J=class{constructor(_0x2b0e51,_0x4c7a43,_0x3f6851){this['_injector']=_0x2b0e51,this['_transformService']=_0x4c7a43,this['_docStateChangeManagerService']=_0x3f6851;}['transformStateCache'](_0x20bf2c){this['_transformHistoryAndStateStack'](_0x20bf2c);}[_0x4bef21(0x44a)](_0x79d363){const _0x3303ce=_0x4bef21,{unitID:_0x4cc44e}=_0x79d363,{collaboration:_0x472ab7}=this[_0x3303ce(0x25d)]['getStateCache'](_0x4cc44e);if(_0x472ab7['length']===0x0)return _0x79d363;let _0x48d261=a[_0x3303ce(0x406)][_0x3303ce(0x3c6)](_0x79d363[_0x3303ce(0x384)][0x0]);for(let _0x462299=0x0;_0x462299<_0x472ab7['length'];_0x462299++){const _0x56ee29={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x472ab7[_0x462299]['unitId'],..._0x472ab7[_0x462299][_0x3303ce(0x249)]}},_0x39c33e=this[_0x3303ce(0x3d9)][_0x3303ce(0x237)](_0x48d261,_0x56ee29,!0x1);if(m[_0x3303ce(0x2e5)](_0x39c33e))throw _0x39c33e[_0x3303ce(0x442)];_0x48d261=_0x39c33e[_0x3303ce(0x40c)];}return{...a[_0x3303ce(0x406)][_0x3303ce(0x3c6)](_0x79d363),'mutations':[_0x48d261]};}[_0x4bef21(0x371)](_0x5f351e){const _0x410c62=_0x4bef21,{unitID:_0x48ad5c}=_0x5f351e,{history:_0x1b7e60,collaboration:_0xc9da75}=this['_docStateChangeManagerService'][_0x410c62(0x207)](_0x48ad5c);if(_0x1b7e60[_0x410c62(0x2a3)]===0x0&&_0xc9da75[_0x410c62(0x2a3)]===0x0)return;const _0x16450d=[],_0x258b84=[];let _0x256fa5=a[_0x410c62(0x406)]['deepClone'](_0x5f351e['mutations'][0x0]),_0x30b260=a[_0x410c62(0x406)][_0x410c62(0x3c6)](_0x5f351e[_0x410c62(0x384)][0x0]);for(let _0x768674=_0x1b7e60[_0x410c62(0x2a3)]-0x1;_0x768674>=0x0;_0x768674--){const _0x24899d={'id':_0x410c62(0x202),'params':{'unitId':_0x1b7e60[_0x768674][_0x410c62(0x441)],..._0x1b7e60[_0x768674][_0x410c62(0x372)]}},_0x2321c0={'id':_0x410c62(0x202),'params':{'unitId':_0x1b7e60[_0x768674]['unitId'],..._0x1b7e60[_0x768674][_0x410c62(0x249)]}},_0x4a3b7c=this['_transformService'][_0x410c62(0x237)](_0x256fa5,_0x24899d,!0x1),_0x39b171=this[_0x410c62(0x3d9)][_0x410c62(0x237)](_0x30b260,_0x2321c0,!0x1);if(m[_0x410c62(0x2e5)](_0x4a3b7c))throw _0x4a3b7c['error'];if(m[_0x410c62(0x2e5)](_0x39b171))throw _0x39b171[_0x410c62(0x442)];_0x16450d[_0x410c62(0x2b0)]({..._0x1b7e60[_0x768674],'undoState':_0x4a3b7c[_0x410c62(0x3cb)]['params'],'redoState':_0x39b171[_0x410c62(0x3cb)]['params']}),_0x256fa5=_0x4a3b7c[_0x410c62(0x40c)],_0x30b260=_0x39b171[_0x410c62(0x40c)];}_0x256fa5=a[_0x410c62(0x406)][_0x410c62(0x3c6)](_0x5f351e[_0x410c62(0x384)][0x0]),_0x30b260=a[_0x410c62(0x406)][_0x410c62(0x3c6)](_0x5f351e[_0x410c62(0x384)][0x0]);for(let _0x245ab8=_0xc9da75[_0x410c62(0x2a3)]-0x1;_0x245ab8>=0x0;_0x245ab8--){const _0x1fc40b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xc9da75[_0x245ab8][_0x410c62(0x441)],..._0xc9da75[_0x245ab8][_0x410c62(0x372)]}},_0x29c000={'id':_0x410c62(0x202),'params':{'unitId':_0xc9da75[_0x245ab8][_0x410c62(0x441)],..._0xc9da75[_0x245ab8][_0x410c62(0x249)]}},_0x11fda0=this[_0x410c62(0x3d9)][_0x410c62(0x237)](_0x256fa5,_0x1fc40b,!0x1),_0x515fee=this[_0x410c62(0x3d9)]['transformMutation'](_0x30b260,_0x29c000,!0x1);if(m['isTransformMutationFailure'](_0x11fda0))throw _0x11fda0[_0x410c62(0x442)];if(m['isTransformMutationFailure'](_0x515fee))throw _0x515fee[_0x410c62(0x442)];_0x258b84[_0x410c62(0x2b0)]({..._0xc9da75[_0x245ab8],'undoState':_0x11fda0[_0x410c62(0x3cb)][_0x410c62(0x3f4)],'redoState':_0x515fee[_0x410c62(0x3cb)][_0x410c62(0x3f4)]}),_0x256fa5=_0x11fda0['m1Prime'],_0x30b260=_0x515fee[_0x410c62(0x40c)];}this[_0x410c62(0x25d)][_0x410c62(0x3ea)](_0x48ad5c,{'history':_0x16450d,'collaboration':_0x258b84});}};J=Ft([le(0x0,a[_0x4bef21(0x248)](a['Injector'])),le(0x1,m[_0x4bef21(0x3b3)]),le(0x2,a[_0x4bef21(0x248)](b[_0x4bef21(0x218)]))],J);var Yt=Object[_0x4bef21(0x469)],Wt=(_0x2c76c9,_0x4943f9,_0x1e0538,_0x50ba17)=>{const _0x1da38d=_0x4bef21;for(var _0xabf36d=_0x50ba17>0x1?void 0x0:_0x50ba17?Yt(_0x4943f9,_0x1e0538):_0x4943f9,_0x427533=_0x2c76c9[_0x1da38d(0x2a3)]-0x1,_0x4ed915;_0x427533>=0x0;_0x427533--)(_0x4ed915=_0x2c76c9[_0x427533])&&(_0xabf36d=_0x4ed915(_0xabf36d)||_0xabf36d);return _0xabf36d;},Ne=(_0x2b1db4,_0x324de0)=>(_0x1a7024,_0x46bc72)=>_0x324de0(_0x1a7024,_0x46bc72,_0x2b1db4);let Z=class{constructor(_0x21283f,_0x1f1287){const _0xad190f=_0x4bef21;this[_0xad190f(0x23a)]=_0x21283f,this[_0xad190f(0x3d9)]=_0x1f1287;}['transformSelections'](_0x319845){const _0x25906d=_0x4bef21;var _0x24f874;const _0x32bec9=this[_0x25906d(0x23a)]['get'](Y[_0x25906d(0x460)]),_0x38bb91=(_0x24f874=_0x32bec9[_0x25906d(0x267)]())!=null?_0x24f874:[];if(_0x38bb91[_0x25906d(0x2a3)]===0x0)return;const _0x119aa9=_0x319845[_0x25906d(0x3d2)],_0x4d563c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x119aa9,'actions':null,'textRanges':_0x38bb91}}],_0x56c91f=this[_0x25906d(0x3d9)][_0x25906d(0x283)](_0x319845,_0x4d563c);if(!m[_0x25906d(0x450)](_0x56c91f))throw _0x56c91f[_0x25906d(0x442)];const _0x15d523=_0x56c91f[_0x25906d(0x3cb)][0x0][_0x25906d(0x3f4)]['textRanges'];Array['isArray'](_0x15d523)&&_0x15d523[_0x25906d(0x2a3)]&&_0x32bec9[_0x25906d(0x33b)](_0x15d523,{'unitId':_0x119aa9,'subUnitId':_0x119aa9},!0x1);}};Z=Wt([Ne(0x0,a[_0x4bef21(0x248)](a['Injector'])),Ne(0x1,m[_0x4bef21(0x3b3)])],Z);var Vt=Object[_0x4bef21(0x469)],Xt=(_0x2e89e8,_0x2a3c0f,_0x1bc591,_0x2ba3a3)=>{const _0x2b77ac=_0x4bef21;for(var _0xe55d13=_0x2ba3a3>0x1?void 0x0:_0x2ba3a3?Vt(_0x2a3c0f,_0x1bc591):_0x2a3c0f,_0x1eb99a=_0x2e89e8[_0x2b77ac(0x2a3)]-0x1,_0x2fe387;_0x1eb99a>=0x0;_0x1eb99a--)(_0x2fe387=_0x2e89e8[_0x1eb99a])&&(_0xe55d13=_0x2fe387(_0xe55d13)||_0xe55d13);return _0xe55d13;},N=(_0xcdf117,_0x10ecba)=>(_0x2421d5,_0x30aa52)=>_0x10ecba(_0x2421d5,_0x30aa52,_0xcdf117);let Q=class extends a[_0x4bef21(0x2f3)]{constructor(_0x3df02d,_0x41404a,_0xdd9bb8,_0x1ec8e6,_0x55ead1,_0x2712b3,_0x79232a,_0x13c9d2){const _0x4703fa=_0x4bef21;super(),h(this,'_status$',new d[(_0x4703fa(0x385))](u[_0x4703fa(0x3e1)]['NOT_COLLAB'])),(this[_0x4703fa(0x25d)]=_0x3df02d,this[_0x4703fa(0x393)]=_0x41404a,this[_0x4703fa(0x32a)]=_0xdd9bb8,this[_0x4703fa(0x44b)]=_0x1ec8e6,this[_0x4703fa(0x3ce)]=_0x55ead1,this[_0x4703fa(0x253)]=_0x2712b3,this[_0x4703fa(0x39b)]=_0x79232a,this['_localeService']=_0x13c9d2,this[_0x4703fa(0x43e)]());}[_0x4bef21(0x43e)](){const _0x573e8f=_0x4bef21;this[_0x573e8f(0x291)](this[_0x573e8f(0x393)][_0x573e8f(0x3cf)][_0x573e8f(0x3f2)](_0x197e23=>{const _0x797576=_0x573e8f,_0x3ec9a2=this[_0x797576(0x25d)]['docStateChange$']['subscribe'](_0x4ed82c=>{const _0x45c02b=_0x797576;if(_0x4ed82c==null)return;const {unitId:_0x5172a9,redoState:_0x2fcbcb,commandId:_0x577271}=_0x4ed82c;if(_0x5172a9!==_0x197e23[_0x45c02b(0x3d2)])return;const _0x59f72d={'id':_0x577271,'type':a[_0x45c02b(0x1f9)]['MUTATION'],'params':{'unitId':_0x5172a9,'actions':_0x2fcbcb[_0x45c02b(0x2ae)],'textRanges':null}};_0x197e23[_0x45c02b(0x3e2)](_0x59f72d);});if(_0x197e23[_0x797576(0x291)](_0x3ec9a2),_0x197e23 instanceof u[_0x797576(0x421)]){const _0x434289={'onTransformIME':_0x5ba38a=>this[_0x797576(0x32a)][_0x797576(0x379)](_0x5ba38a),'onTransformState':_0x3a3b8f=>this[_0x797576(0x44b)][_0x797576(0x3cc)](_0x3a3b8f),'onTransformSelections':_0x198c07=>this['_docTransformSelectionsService'][_0x797576(0x3aa)](_0x198c07),'onSyncEditingCollabCursor':_0x2a5843=>this[_0x797576(0x253)][_0x797576(0x3d5)](_0x2a5843),'onTransformRemoteChangesetByIMECache':_0x439b71=>this[_0x797576(0x32a)][_0x797576(0x44a)](_0x439b71),'onTransformRemoteChangesetByStateCache':_0xe9e2bd=>this[_0x797576(0x44b)]['transformRemoteChangeset'](_0xe9e2bd)};_0x197e23[_0x797576(0x2bb)](_0x434289);}}));}};Q=Xt([N(0x0,a[_0x4bef21(0x248)](b['DocStateChangeManagerService'])),N(0x1,a[_0x4bef21(0x248)](u[_0x4bef21(0x3d6)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x4bef21(0x248)](J)),N(0x4,a[_0x4bef21(0x248)](Z)),N(0x5,a[_0x4bef21(0x248)](Ce)),N(0x6,T[_0x4bef21(0x1f1)]),N(0x7,a['Inject'](a[_0x4bef21(0x22a)]))],Q);var Gt=Object[_0x4bef21(0x469)],Kt=(_0x7e8c62,_0x406690,_0x219174,_0x33bd27)=>{const _0x415d56=_0x4bef21;for(var _0x30b96d=_0x33bd27>0x1?void 0x0:_0x33bd27?Gt(_0x406690,_0x219174):_0x406690,_0x122504=_0x7e8c62[_0x415d56(0x2a3)]-0x1,_0x30ae8d;_0x122504>=0x0;_0x122504--)(_0x30ae8d=_0x7e8c62[_0x122504])&&(_0x30b96d=_0x30ae8d(_0x30b96d)||_0x30b96d);return _0x30b96d;},_e=(_0x15c447,_0x45b385)=>(_0x1cedb5,_0x2fec92)=>_0x45b385(_0x1cedb5,_0x2fec92,_0x15c447);let ge=class extends a[_0x4bef21(0x2f3)]{constructor(_0x156f9d,_0x51b5ea,_0xd91084){const _0x1fb67b=_0x4bef21;super(),h(this,'_cachedData',new Map()),h(this,_0x1fb67b(0x316),new Map()),h(this,'_disabled',!0x1),(this[_0x1fb67b(0x302)]=_0x156f9d,this[_0x1fb67b(0x2d9)]=_0x51b5ea,this[_0x1fb67b(0x2f6)]=_0xd91084);}[_0x4bef21(0x201)](){const _0x226838=_0x4bef21;this[_0x226838(0x219)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x4bef21(0x321)](){const _0x1c7f71=_0x4bef21;return this[_0x1c7f71(0x316)];}[_0x4bef21(0x2b4)](){const _0x379d5a=_0x4bef21;this['exhaustSavingTask']()[_0x379d5a(0x395)](()=>super[_0x379d5a(0x2b4)]());}async[_0x4bef21(0x27f)](_0x171737){const _0x22e3f6=_0x4bef21;return this[_0x22e3f6(0x219)]?null:this[_0x22e3f6(0x2d9)][_0x22e3f6(0x3a1)](u['getLocalCacheKey'](_0x171737));}async[_0x4bef21(0x3d0)](_0x1701b4,_0x35ce5d){const _0x37b5e4=_0x4bef21;return!!this[_0x37b5e4(0x2d9)]['setItem'](_0x1701b4,_0x35ce5d);}[_0x4bef21(0x344)](_0x3ff241,_0x12e3e7,_0x5311d5,_0x47c3f2){const _0x27985c=_0x4bef21,_0x523158=this[_0x27985c(0x2f6)][_0x27985c(0x285)](_0x3ff241);this[_0x27985c(0x44e)][_0x27985c(0x323)](_0x3ff241,{'unitID':_0x3ff241,'type':_0x12e3e7,'awaitingChangeset':_0x5311d5,'mutations':_0x47c3f2,'rev':_0x523158}),this[_0x27985c(0x316)][_0x27985c(0x2ca)](_0x3ff241)||this['_scheduleSaving'](_0x3ff241);}['_scheduleSaving'](_0x2c172){const _0x1453bd=_0x4bef21,_0x2456c5=this[_0x1453bd(0x3ff)]();_0x2456c5===0x0?this[_0x1453bd(0x3a4)](_0x2c172):this['_saveTaskMap'][_0x1453bd(0x323)](_0x2c172,setTimeout(()=>this[_0x1453bd(0x3a4)](_0x2c172),_0x2456c5));}[_0x4bef21(0x3ff)](){const _0x4c36e9=_0x4bef21;var _0x3a19a4;return(_0x3a19a4=this['_configService'][_0x4c36e9(0x34a)](u[_0x4c36e9(0x398)]))!=null?_0x3a19a4:u[_0x4c36e9(0x2c5)];}[_0x4bef21(0x3a4)](_0x15ee83){const _0x424e7f=_0x4bef21,_0x10a4f6=this['_saveTaskMap']['get'](_0x15ee83);return _0x10a4f6!==void 0x0&&window[_0x424e7f(0x439)](_0x10a4f6),this[_0x424e7f(0x2d9)][_0x424e7f(0x263)](u[_0x424e7f(0x3b5)](_0x15ee83),this[_0x424e7f(0x44e)][_0x424e7f(0x2d6)](_0x15ee83))[_0x424e7f(0x395)](()=>this[_0x424e7f(0x316)][_0x424e7f(0x214)](_0x15ee83));}async[_0x4bef21(0x41b)](){const _0x2174f3=_0x4bef21,_0x4d5913=[];this['_saveTaskMap'][_0x2174f3(0x2e6)]((_0x1a4878,_0x38920d)=>{const _0x532f2a=_0x2174f3;window[_0x532f2a(0x439)](_0x1a4878),_0x4d5913['push'](this[_0x532f2a(0x3a4)](_0x38920d)[_0x532f2a(0x395)](()=>{const _0x2e8370=_0x532f2a;this[_0x2e8370(0x316)][_0x2e8370(0x214)](_0x38920d);}));}),await Promise[_0x2174f3(0x311)](_0x4d5913);}};ge=Kt([_e(0x0,a[_0x4bef21(0x33d)]),_e(0x1,a[_0x4bef21(0x369)]),_e(0x2,a[_0x4bef21(0x248)](m[_0x4bef21(0x297)]))],ge);class je extends a[_0x4bef21(0x418)]{constructor(){const _0x520d39=_0x4bef21;super(),h(this,_0x520d39(0x1fd)),this['urlChange$']=d['fromEvent'](window,'popstate')[_0x520d39(0x26c)](d[_0x520d39(0x2a8)](this[_0x520d39(0x29f)]),d[_0x520d39(0x2f4)](0x1),d['mapTo'](void 0x0));}[_0x4bef21(0x22d)](_0x18d1f9,_0x992ae6,_0x45cd55=!0x1){const _0x2a61b1=_0x4bef21,_0x46c99d=new URL(window[_0x2a61b1(0x328)][_0x2a61b1(0x433)]);_0x46c99d[_0x2a61b1(0x415)][_0x2a61b1(0x323)](_0x18d1f9,_0x992ae6),_0x45cd55?window[_0x2a61b1(0x32f)][_0x2a61b1(0x3da)]('','',_0x46c99d[_0x2a61b1(0x23c)]()):window['history'][_0x2a61b1(0x451)]('','',_0x46c99d[_0x2a61b1(0x23c)]());}[_0x4bef21(0x40d)](_0x3233f7,_0x166196=!0x1){const _0x23532f=_0x4bef21,_0x7ea0be=new URL(window['location']['href']);_0x7ea0be[_0x23532f(0x415)][_0x23532f(0x214)](_0x3233f7),_0x166196?window['history'][_0x23532f(0x3da)]('','',_0x7ea0be['toString']()):window['history'][_0x23532f(0x451)]('','',_0x7ea0be['toString']());}['getParam'](_0x236b43){const _0x5070c0=_0x4bef21;var _0x4e108d;return(_0x4e108d=new URL(window[_0x5070c0(0x328)][_0x5070c0(0x433)])['searchParams'][_0x5070c0(0x2d6)](_0x236b43))!=null?_0x4e108d:void 0x0;}}var qt=Object[_0x4bef21(0x20c)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0xb57535,_0x3647ec,_0x3188da)=>_0x3647ec in _0xb57535?qt(_0xb57535,_0x3647ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3188da}):_0xb57535[_0x3647ec]=_0x3188da,Zt=(_0x31777d,_0x55257c,_0x561106,_0x2fd43e)=>{const _0x471b4a=_0x4bef21;for(var _0x52624b=_0x2fd43e>0x1?void 0x0:_0x2fd43e?zt(_0x55257c,_0x561106):_0x55257c,_0x581cec=_0x31777d[_0x471b4a(0x2a3)]-0x1,_0x39743a;_0x581cec>=0x0;_0x581cec--)(_0x39743a=_0x31777d[_0x581cec])&&(_0x52624b=_0x39743a(_0x52624b)||_0x52624b);return _0x52624b;},he=(_0x12e561,_0x5b3234)=>(_0x2dc932,_0xb41c29)=>_0x5b3234(_0x2dc932,_0xb41c29,_0x12e561),Qt=(_0x175c45,_0x408370,_0x340c18)=>Jt(_0x175c45,_0x408370+'',_0x340c18);const es=_0x4bef21(0x377);exports[_0x4bef21(0x2ea)]=class extends a['Plugin']{constructor(_0x421087=Ue,_0x4889c3,_0xc10fef,_0x296f45){const _0x523532=_0x4bef21;super(),this['_config']=_0x421087,this[_0x523532(0x403)]=_0x4889c3,this[_0x523532(0x23a)]=_0xc10fef,this[_0x523532(0x302)]=_0x296f45;const {..._0x183b44}=a[_0x523532(0x25b)]({},Ue,this['_config']);this['_configService'][_0x523532(0x239)]($t,_0x183b44);}[_0x4bef21(0x26a)](){const _0xcc0bb3=_0x4bef21;this[_0xcc0bb3(0x449)](),this[_0xcc0bb3(0x1ed)]();}[_0x4bef21(0x35b)](){this['_registerRenderDependencies']();}[_0x4bef21(0x449)](){const _0x262df4=_0x4bef21;var _0x39f1e6;const _0x3e8782=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x262df4(0x34d)],{'useClass':G[_0x262df4(0x3eb)]}],[u[_0x262df4(0x405)],{'useClass':ge}],[exports[_0x262df4(0x35c)]],[Q],[q],[x],[de],[exports[_0x262df4(0x30b)]]];a[_0x262df4(0x3bf)](this['_injector'],a[_0x262df4(0x2a7)](_0x3e8782,(_0x39f1e6=this[_0x262df4(0x357)])==null?void 0x0:_0x39f1e6[_0x262df4(0x31c)]));}[_0x4bef21(0x2fc)](){const _0x456edf=_0x4bef21;this[_0x456edf(0x291)](this[_0x456edf(0x403)][_0x456edf(0x43d)](a[_0x456edf(0x411)][_0x456edf(0x36f)],[Ie])),this[_0x456edf(0x291)](this[_0x456edf(0x403)][_0x456edf(0x43d)](a[_0x456edf(0x411)]['UNIVER_SHEET'],[ve]));}[_0x4bef21(0x1ed)](){const _0x2c9835=_0x4bef21;a[_0x2c9835(0x322)](this[_0x2c9835(0x23a)],[[x],[exports[_0x2c9835(0x35c)]],[Q],[q],[exports[_0x2c9835(0x30b)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0x4bef21(0x462)]),he(0x1,p[_0x4bef21(0x1e3)]),he(0x2,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),he(0x3,a[_0x4bef21(0x33d)])],exports[_0x4bef21(0x2ea)]);var ts=Object[_0x4bef21(0x469)],ss=(_0x345046,_0x3b79d1,_0x58c40d,_0x1e2807)=>{for(var _0x5cdce1=_0x1e2807>0x1?void 0x0:_0x1e2807?ts(_0x3b79d1,_0x58c40d):_0x3b79d1,_0x50d43b=_0x345046['length']-0x1,_0x16460f;_0x50d43b>=0x0;_0x50d43b--)(_0x16460f=_0x345046[_0x50d43b])&&(_0x5cdce1=_0x16460f(_0x5cdce1)||_0x5cdce1);return _0x5cdce1;},F=(_0x4c9be0,_0x3090c5)=>(_0xf5773,_0xc95c83)=>_0x3090c5(_0xf5773,_0xc95c83,_0x4c9be0);exports[_0x4bef21(0x226)]=class extends u[_0x4bef21(0x3b0)]{constructor(_0x48ca52,_0x2e86a3,_0x1cedf5,_0x2f88c3,_0x2696eb){super(_0x48ca52,_0x2e86a3,_0x1cedf5,_0x2f88c3,_0x2696eb);}async[_0x4bef21(0x38f)](_0x8ce53e){const _0x1636da=_0x4bef21,_0x44c672=await this[_0x1636da(0x1f7)](),_0x55f48b=this[_0x1636da(0x3df)](_0x8ce53e,_0x44c672);return this['_doCreateSocket'](_0x55f48b);}[_0x4bef21(0x3df)](_0x30f8d2,_0x2359e5){const _0x172e6d=_0x4bef21,_0x430e9b=typeof window>'u'?new URL(_0x30f8d2):new URL(_0x30f8d2,window[_0x172e6d(0x328)]['origin']);_0x430e9b['searchParams'][_0x172e6d(0x323)](_0x172e6d(0x30e),_0x2359e5);const _0x45fba8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x45fba8[_0x172e6d(0x2d6)](_0x172e6d(0x374))&&_0x430e9b[_0x172e6d(0x415)]['set'](_0x172e6d(0x374),_0x45fba8['get']('runId')),_0x430e9b[_0x172e6d(0x23c)]();}async['_getSessionTicket'](){const _0x12f338=_0x4bef21;var _0x13c664,_0xf7a096,_0x1d4219;const _0x216856=this[_0x12f338(0x302)][_0x12f338(0x34a)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x33ee43=(_0x13c664=_0x216856==null?void 0x0:_0x216856[_0x12f338(0x348)])!=null?_0x13c664:u[_0x12f338(0x28d)];return(_0x1d4219=(_0xf7a096=(await this[_0x12f338(0x2e7)]['get'](_0x33ee43,{'headers':{'Content-Type':'application/json'}}))[_0x12f338(0x30f)])==null?void 0x0:_0xf7a096[_0x12f338(0x3fe)])!=null?_0x1d4219:'';}},exports[_0x4bef21(0x226)]=ss([F(0x0,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),F(0x1,a[_0x4bef21(0x248)](G[_0x4bef21(0x41c)])),F(0x2,a[_0x4bef21(0x33d)]),F(0x3,a[_0x4bef21(0x31d)]),F(0x4,m[_0x4bef21(0x392)])],exports[_0x4bef21(0x226)]);const Me=0x7530,Le=_0x4bef21(0x325);class is extends a[_0x4bef21(0x2f3)]{constructor(){const _0x127c8b=_0x4bef21;super(),h(this,_0x127c8b(0x3a6),a[_0x127c8b(0x43b)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x127c8b(0x233),new Map()),h(this,_0x127c8b(0x234),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x127c8b(0x259),new Map()),this['_init']();}[_0x4bef21(0x2b4)](){const _0x3103ab=_0x4bef21;super[_0x3103ab(0x2b4)](),this[_0x3103ab(0x432)][_0x3103ab(0x2e6)]((_0x7646e0,_0x2f6f82)=>this[_0x3103ab(0x40e)](_0x2f6f82)),this['_heartbeatTimer']&&window[_0x3103ab(0x1e8)](this[_0x3103ab(0x234)]);}[_0x4bef21(0x3dc)](_0x1eb259){const _0x196c1c=_0x4bef21;return this[_0x196c1c(0x45d)](_0x1eb259)['pipe'](d[_0x196c1c(0x23f)]());}[_0x4bef21(0x2ba)](_0x27a751){const _0x2f9123=_0x4bef21;this[_0x2f9123(0x2fa)]['size']===0x0&&this[_0x2f9123(0x34f)](),this[_0x2f9123(0x2fa)][_0x2f9123(0x45a)](_0x27a751),this[_0x2f9123(0x21a)]({'type':0x0,'memberID':this[_0x2f9123(0x3a6)],'unitIDs':[_0x27a751],'isForwarded':!0x1});}['disposeUnit'](_0x298b82){const _0x408890=_0x4bef21;this[_0x408890(0x2fa)][_0x408890(0x214)](_0x298b82),this['_selfUnitIDs'][_0x408890(0x401)]===0x0&&this[_0x408890(0x234)]&&window[_0x408890(0x1e8)](this[_0x408890(0x234)]);}[_0x4bef21(0x2c4)](){const _0x48e280=_0x4bef21;this[_0x48e280(0x291)](a[_0x48e280(0x22f)](d[_0x48e280(0x3e6)](window,_0x48e280(0x23b))[_0x48e280(0x3f2)](_0x59cfb1=>{const _0x177fe0=_0x48e280;if(_0x59cfb1[_0x177fe0(0x220)]!==Le||!_0x59cfb1['newValue'])return;const _0x57aa6f=JSON[_0x177fe0(0x380)](_0x59cfb1[_0x177fe0(0x27d)]);this['_handleEvent'](_0x57aa6f);}))),window[_0x48e280(0x288)](_0x48e280(0x27e),()=>this[_0x48e280(0x21a)]({'type':0x1,'memberID':this[_0x48e280(0x3a6)],'unitIDs':Array['from'](this[_0x48e280(0x2fa)])}));}[_0x4bef21(0x3e5)](_0x283cd8){const _0x12f60a=_0x4bef21;switch(_0x283cd8['type']){case 0x0:this['_handleJoinEvent'](_0x283cd8);break;case 0x1:this[_0x12f60a(0x20b)](_0x283cd8);break;case 0x2:this[_0x12f60a(0x361)](_0x283cd8);break;}}[_0x4bef21(0x271)](_0x4c7cf2){const _0x14d509=_0x4bef21,{unitIDs:_0x51d9e9,memberID:_0x369263,isForwarded:_0x44be94}=_0x4c7cf2;_0x51d9e9[_0x14d509(0x2e6)](_0x3bc106=>{const _0x360204=_0x14d509;if(!_0x44be94&&this[_0x360204(0x233)]['has'](_0x3bc106)&&this['_ensureSubject'](_0x3bc106)['next'](u[_0x360204(0x416)][_0x360204(0x333)]),!this[_0x360204(0x233)][_0x360204(0x2ca)](_0x3bc106)||!this['_unitOnClients'][_0x360204(0x2d6)](_0x3bc106)[_0x360204(0x2ca)](_0x369263)){const _0x375809=this['_unitOnClients'][_0x360204(0x2d6)](_0x3bc106)||new Set();_0x375809[_0x360204(0x45a)](_0x369263),this[_0x360204(0x233)][_0x360204(0x323)](_0x3bc106,_0x375809),this[_0x360204(0x2f8)](_0x369263);}}),_0x44be94||this[_0x14d509(0x21a)]({'type':0x0,'memberID':this[_0x14d509(0x3a6)],'unitIDs':[...this[_0x14d509(0x2fa)]],'isForwarded':!0x0});}[_0x4bef21(0x2f8)](_0x5ad5cf){const _0x35be2a=_0x4bef21;this[_0x35be2a(0x40e)](_0x5ad5cf);const _0x23c748=window[_0x35be2a(0x1e7)](()=>{const _0x53fa01=_0x35be2a;this[_0x53fa01(0x233)]['forEach'](_0x510fa3=>{const _0x1fdc9b=_0x53fa01;_0x510fa3[_0x1fdc9b(0x214)](_0x5ad5cf);});},Me*0x2);this[_0x35be2a(0x432)]['set'](_0x5ad5cf,_0x23c748);}[_0x4bef21(0x40e)](_0x52ef2a){const _0x2cf492=_0x4bef21;if(this[_0x2cf492(0x432)][_0x2cf492(0x2ca)](_0x52ef2a)){const _0xf6ed98=this[_0x2cf492(0x432)]['get'](_0x52ef2a);_0xf6ed98&&window[_0x2cf492(0x439)](_0xf6ed98),this[_0x2cf492(0x432)][_0x2cf492(0x323)](_0x52ef2a,null);}}[_0x4bef21(0x20b)](_0x2f593a){const _0x23dbda=_0x4bef21,{memberID:_0x23b9d5,unitIDs:_0x183a88}=_0x2f593a;_0x183a88[_0x23dbda(0x2e6)](_0x1c5521=>{const _0x41b90c=_0x23dbda;var _0x3ba697;const _0x5b1522=this[_0x41b90c(0x233)]['get'](_0x1c5521);_0x5b1522&&(_0x5b1522['delete'](_0x23b9d5),(_0x3ba697=this[_0x41b90c(0x45d)](_0x1c5521))==null||_0x3ba697[_0x41b90c(0x394)](_0x5b1522[_0x41b90c(0x401)]===0x0?u[_0x41b90c(0x416)][_0x41b90c(0x382)]:u['UnitStatus'][_0x41b90c(0x333)]));}),this[_0x23dbda(0x40e)](_0x23b9d5);}[_0x4bef21(0x361)](_0x201a2a){const _0x261615=_0x4bef21;this['_scheduleClearOtherTimer'](_0x201a2a[_0x261615(0x2e3)]);}['_send'](_0xf8200e){const _0x1b1d05=_0x4bef21;localStorage[_0x1b1d05(0x263)](Le,JSON[_0x1b1d05(0x2c0)](_0xf8200e));}[_0x4bef21(0x34f)](){const _0x56d18a=_0x4bef21;this[_0x56d18a(0x234)]=window['setInterval'](()=>{const _0x2e7e7e=_0x56d18a;this[_0x2e7e7e(0x21a)]({'type':0x2,'memberID':this['_id']});},Me);}[_0x4bef21(0x45d)](_0x18a9c4){const _0x220295=_0x4bef21;return this[_0x220295(0x259)]['has'](_0x18a9c4)||this[_0x220295(0x259)][_0x220295(0x323)](_0x18a9c4,new d[(_0x220295(0x385))](u[_0x220295(0x416)][_0x220295(0x382)])),this[_0x220295(0x259)][_0x220295(0x2d6)](_0x18a9c4);}}var Be=(_0x3e6aed=>(_0x3e6aed[_0x3e6aed[_0x4bef21(0x376)]=0x0]=_0x4bef21(0x376),_0x3e6aed[_0x3e6aed['OK']=0x1]='OK',_0x3e6aed[_0x3e6aed[_0x4bef21(0x23d)]=0x2]=_0x4bef21(0x23d),_0x3e6aed[_0x3e6aed[_0x4bef21(0x326)]=0x3]=_0x4bef21(0x326),_0x3e6aed[_0x3e6aed[_0x4bef21(0x281)]=0x4]=_0x4bef21(0x281),_0x3e6aed[_0x3e6aed['UNAUTHENTICATED']=0x5]=_0x4bef21(0x31b),_0x3e6aed[_0x3e6aed['ALREADY_EXISTS']=0x6]=_0x4bef21(0x32e),_0x3e6aed[_0x3e6aed['INVALID_ARGUMENT']=0x7]=_0x4bef21(0x289),_0x3e6aed[_0x3e6aed[_0x4bef21(0x378)]=0x8]=_0x4bef21(0x378),_0x3e6aed[_0x3e6aed[_0x4bef21(0x458)]=0x9]=_0x4bef21(0x458),_0x3e6aed[_0x3e6aed[_0x4bef21(0x389)]=0xa]=_0x4bef21(0x389),_0x3e6aed[_0x3e6aed[_0x4bef21(0x464)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3e6aed[_0x3e6aed[_0x4bef21(0x343)]=0x1771]=_0x4bef21(0x343),_0x3e6aed[_0x3e6aed[_0x4bef21(0x1dd)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3e6aed[_0x3e6aed[_0x4bef21(0x3dd)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3e6aed[_0x3e6aed['APPLY_REJECT']=0x1b59]=_0x4bef21(0x1eb),_0x3e6aed[_0x3e6aed[_0x4bef21(0x24c)]=0x1b5a]=_0x4bef21(0x24c),_0x3e6aed[_0x3e6aed[_0x4bef21(0x217)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3e6aed[_0x3e6aed[_0x4bef21(0x38e)]=0x1b5c]=_0x4bef21(0x38e),_0x3e6aed[_0x3e6aed[_0x4bef21(0x268)]=0x1b5d]=_0x4bef21(0x268),_0x3e6aed[_0x3e6aed['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x4bef21(0x2b6),_0x3e6aed[_0x3e6aed[_0x4bef21(0x37c)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3e6aed[_0x3e6aed[_0x4bef21(0x2cf)]=0x232a]=_0x4bef21(0x2cf),_0x3e6aed[_0x3e6aed[_0x4bef21(0x436)]=0x232b]=_0x4bef21(0x436),_0x3e6aed[_0x3e6aed[_0x4bef21(0x42d)]=0x232c]=_0x4bef21(0x42d),_0x3e6aed[_0x3e6aed['LICENSE_DISTRO_REJECTED']=0x232d]=_0x4bef21(0x208),_0x3e6aed[_0x3e6aed['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4bef21(0x222),_0x3e6aed[_0x3e6aed[_0x4bef21(0x26e)]=0x2712]=_0x4bef21(0x26e),_0x3e6aed[_0x3e6aed[_0x4bef21(0x2ef)]=0x2713]=_0x4bef21(0x2ef),_0x3e6aed[_0x3e6aed[_0x4bef21(0x45b)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3e6aed[_0x3e6aed['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x4bef21(0x2e1),_0x3e6aed[_0x3e6aed['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x3e6aed[_0x3e6aed['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x3e6aed[_0x3e6aed[_0x4bef21(0x28c)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x3e6aed[_0x3e6aed[_0x4bef21(0x2cd)]=0x271e]=_0x4bef21(0x2cd),_0x3e6aed[_0x3e6aed[_0x4bef21(0x2de)]=0x271f]=_0x4bef21(0x2de),_0x3e6aed[_0x3e6aed['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4bef21(0x2a1),_0x3e6aed[_0x3e6aed[_0x4bef21(0x29e)]=0x2ee1]=_0x4bef21(0x29e),_0x3e6aed[_0x3e6aed['INVALID_INVITE_CODE']=0x2ee2]=_0x4bef21(0x2f9),_0x3e6aed[_0x3e6aed[_0x4bef21(0x232)]=0x2ee3]=_0x4bef21(0x232),_0x3e6aed[_0x3e6aed[_0x4bef21(0x251)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x3e6aed[_0x3e6aed[_0x4bef21(0x456)]=0x2ee5]=_0x4bef21(0x456),_0x3e6aed[_0x3e6aed[_0x4bef21(0x46a)]=0x32c9]=_0x4bef21(0x46a),_0x3e6aed[_0x3e6aed[_0x4bef21(0x3c1)]=0x32ca]=_0x4bef21(0x3c1),_0x3e6aed[_0x3e6aed[_0x4bef21(0x41f)]=0x32cb]=_0x4bef21(0x41f),_0x3e6aed[_0x3e6aed[_0x4bef21(0x303)]=-0x1]=_0x4bef21(0x303),_0x3e6aed))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x2fcd9a,_0x449a96,_0x5c24f3,_0x59413b)=>{const _0x3a8a5d=_0x4bef21;for(var _0x5e20e8=_0x59413b>0x1?void 0x0:_0x59413b?ns(_0x449a96,_0x5c24f3):_0x449a96,_0x958637=_0x2fcd9a[_0x3a8a5d(0x2a3)]-0x1,_0x230f2f;_0x958637>=0x0;_0x958637--)(_0x230f2f=_0x2fcd9a[_0x958637])&&(_0x5e20e8=_0x230f2f(_0x5e20e8)||_0x5e20e8);return _0x5e20e8;},ue=(_0x3531e2,_0x37f40c)=>(_0x2102f8,_0x1cf4d3)=>_0x37f40c(_0x2102f8,_0x1cf4d3,_0x3531e2);exports[_0x4bef21(0x261)]=class extends a[_0x4bef21(0x2f3)]{constructor(_0x2d536c,_0xa6ae01,_0x23b098){const _0x11e66d=_0x4bef21;super(),this[_0x11e66d(0x397)]=_0x2d536c,this[_0x11e66d(0x2e7)]=_0xa6ae01,this[_0x11e66d(0x302)]=_0x23b098;}async[_0x4bef21(0x334)](_0x497223,_0x3f559d,_0xc80cf,..._0x22aecf){const _0x514f0b=_0x4bef21;var _0x48dc1e,_0x2ba781,_0x260007,_0x474e3b;const _0x4a4b4e=this[_0x514f0b(0x397)][_0x514f0b(0x34b)]();if(!_0x4a4b4e)throw new Error(_0x514f0b(0x2e9));const _0x43e870=((_0x48dc1e=this[_0x514f0b(0x302)][_0x514f0b(0x34a)](u[_0x514f0b(0x245)]))!=null?_0x48dc1e:u[_0x514f0b(0x269)])+'/'+_0x497223+'/run/'+_0x3f559d,_0xe63ba5=new URL(window[_0x514f0b(0x328)]['href']),_0x4f87e8={'scriptId':_0x497223,'runId':(_0x2ba781=_0xe63ba5[_0x514f0b(0x415)][_0x514f0b(0x2d6)]('runId'))!=null?_0x2ba781:'','function':_0x3f559d,'unitId':_0x4a4b4e[_0x514f0b(0x1e1)](),'argsOfFunction':JSON['stringify'](_0x22aecf),'invokeId':(_0x260007=_0xc80cf[_0x514f0b(0x25f)])!=null?_0x260007:'','executionId':(_0x474e3b=_0xc80cf[_0x514f0b(0x46b)])!=null?_0x474e3b:''};try{const _0x582be7=await this['_httpService'][_0x514f0b(0x2ab)](_0x43e870,{'body':_0x4f87e8});return _0x582be7['body']['error']&&_0x582be7[_0x514f0b(0x30f)][_0x514f0b(0x442)][_0x514f0b(0x22e)]!==Be['OK']?_0x514f0b(0x1dc):_0x582be7['body']['result'];}catch{return _0x514f0b(0x1dc);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G[_0x4bef21(0x41c)])),ue(0x2,a['IConfigService'])],exports[_0x4bef21(0x261)]),exports[_0x4bef21(0x355)]=xe,exports[_0x4bef21(0x352)]=be,exports[_0x4bef21(0x2b7)]=Pe,exports[_0x4bef21(0x383)]=is,exports[_0x4bef21(0x242)]=je;
|
|
1
|
+
'use strict';const _0x41752f=_0x1202;(function(_0x327a23,_0x3e6eb2){const _0x2bf9aa=_0x1202,_0x3b2c38=_0x327a23();while(!![]){try{const _0x20d4f1=parseInt(_0x2bf9aa(0x2a2))/0x1+-parseInt(_0x2bf9aa(0x1e9))/0x2+parseInt(_0x2bf9aa(0x3ca))/0x3+parseInt(_0x2bf9aa(0x444))/0x4*(-parseInt(_0x2bf9aa(0x42d))/0x5)+parseInt(_0x2bf9aa(0x3d6))/0x6*(parseInt(_0x2bf9aa(0x2a8))/0x7)+-parseInt(_0x2bf9aa(0x3ab))/0x8*(-parseInt(_0x2bf9aa(0x43a))/0x9)+parseInt(_0x2bf9aa(0x212))/0xa;if(_0x20d4f1===_0x3e6eb2)break;else _0x3b2c38['push'](_0x3b2c38['shift']());}catch(_0x122413){_0x3b2c38['push'](_0x3b2c38['shift']());}}}(_0x5f08,0x5ff51));var Ve=Object[_0x41752f(0x3b8)],Xe=(_0x23186f,_0x63ae75,_0x27a9b8)=>_0x63ae75 in _0x23186f?Ve(_0x23186f,_0x63ae75,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27a9b8}):_0x23186f[_0x63ae75]=_0x27a9b8,h=(_0x434980,_0x34e825,_0x48327d)=>Xe(_0x434980,typeof _0x34e825!=_0x41752f(0x1d3)?_0x34e825+'':_0x34e825,_0x48327d);Object['defineProperty'](exports,Symbol[_0x41752f(0x417)],{'value':_0x41752f(0x361)});const u=require(_0x41752f(0x385)),a=require(_0x41752f(0x3f4)),p=require(_0x41752f(0x22c)),G=require('@univerjs/network'),E=require(_0x41752f(0x36c)),Ge=require(_0x41752f(0x275)),d=require(_0x41752f(0x291)),Y=require(_0x41752f(0x267)),m=require('@univerjs-pro/collaboration'),be=require(_0x41752f(0x430)),g=require(_0x41752f(0x299)),$=require(_0x41752f(0x407)),X=require(_0x41752f(0x2f9)),P=require(_0x41752f(0x2f2)),O=require(_0x41752f(0x32d)),D=require(_0x41752f(0x1cd)),M=require(_0x41752f(0x34c)),Ke=require(_0x41752f(0x431));var qe=Object[_0x41752f(0x35e)],ze=(_0x15b56a,_0x3a9072,_0x30a030,_0x50dea8)=>{const _0x54a28d=_0x41752f;for(var _0x311341=_0x50dea8>0x1?void 0x0:_0x50dea8?qe(_0x3a9072,_0x30a030):_0x3a9072,_0x54a19b=_0x15b56a[_0x54a28d(0x27e)]-0x1,_0x21e0af;_0x54a19b>=0x0;_0x54a19b--)(_0x21e0af=_0x15b56a[_0x54a19b])&&(_0x311341=_0x21e0af(_0x311341)||_0x311341);return _0x311341;},Oe=(_0x55ca18,_0x403847)=>(_0xe06abd,_0x1d75bc)=>_0x403847(_0xe06abd,_0x1d75bc,_0x55ca18);let de=class extends a[_0x41752f(0x26e)]{constructor(_0x2d5569,_0x5a906e){const _0x167112=_0x41752f;super(),this[_0x167112(0x39c)]=_0x2d5569,this['_imageIoService']=_0x5a906e,this[_0x167112(0x201)]();}['_init'](){const _0x5407d8=_0x41752f,_0x1d6815=this;this[_0x5407d8(0x1ec)](this[_0x5407d8(0x39c)][_0x5407d8(0x329)]({'onBeforePasteImage':async _0x4b568b=>{const _0x553fc9=_0x5407d8,_0x28f9d5=await _0x1d6815['_imageIoService'][_0x553fc9(0x2ea)](_0x4b568b);return _0x28f9d5?{'source':_0x28f9d5['source'],'imageSourceType':_0x28f9d5[_0x553fc9(0x3f9)]}:null;}}));}};de=ze([Oe(0x0,E[_0x41752f(0x416)]),Oe(0x1,Ge[_0x41752f(0x404)])],de);const Te=[_0x41752f(0x323),_0x41752f(0x25d),_0x41752f(0x3cb),_0x41752f(0x1c8),'blue.400',_0x41752f(0x35c)];class me extends a[_0x41752f(0x2ed)]{constructor(){const _0x3257c0=_0x41752f;super(...arguments),h(this,_0x3257c0(0x3d1),new Map()),h(this,_0x3257c0(0x394),0x0);}[_0x41752f(0x205)](_0x4cfcf6){const _0x25c7e8=_0x41752f;if(this[_0x25c7e8(0x3d1)]['has'](_0x4cfcf6))return this[_0x25c7e8(0x3d1)]['get'](_0x4cfcf6);const _0xbcc0a2=Te[this[_0x25c7e8(0x394)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%Te[_0x25c7e8(0x27e)],this[_0x25c7e8(0x3d1)]['set'](_0x4cfcf6,_0xbcc0a2),_0xbcc0a2;}}function Pe(_0x506b19){let _0xfc916a='';for(const _0x4a22b5 of _0x506b19){const {startOffset:_0x511ed0,endOffset:_0x2bb7cf,isActive:_0x4e74c0,rangeType:_0x346bca,segmentId:_0x3aaed3,segmentPage:_0x3f51b6}=_0x4a22b5;_0xfc916a['length']&&(_0xfc916a+=','),_0xfc916a+=_0x511ed0+':'+_0x2bb7cf+':'+(_0x4e74c0?'1':'0')+':'+_0x346bca+':'+_0x3aaed3+':'+_0x3f51b6;}return _0xfc916a;}function Je(_0x58ea64){const _0x12a202=_0x41752f,_0x1f0665=_0x58ea64[_0x12a202(0x370)](','),_0x141243=[];for(const _0x250c07 of _0x1f0665){const [_0x3da96e,_0x4905bc,_0x389de9,_0x2d2685,_0x4e8950,_0x3f89d0]=_0x250c07[_0x12a202(0x370)](':');_0x141243[_0x12a202(0x3e2)]({'startOffset':Number(_0x3da96e),'endOffset':Number(_0x4905bc),'collapsed':_0x3da96e===_0x4905bc,'isActive':_0x389de9==='1','rangeType':_0x2d2685===a['DOC_RANGE_TYPE'][_0x12a202(0x405)]?a[_0x12a202(0x1d0)][_0x12a202(0x405)]:a[_0x12a202(0x1d0)][_0x12a202(0x328)],'segmentId':typeof _0x4e8950==_0x12a202(0x30b)?String(_0x4e8950):'','segmentPage':Number(_0x3f89d0!=null?_0x3f89d0:-0x1)});}return _0x141243['some'](_0x1422a7=>_0x1422a7[_0x12a202(0x1d6)])||(_0x141243[0x0]['isActive']=!0x0),_0x141243;}class Ce extends a[_0x41752f(0x26e)]{constructor(){const _0x5b2a1d=_0x41752f;super(...arguments),h(this,'_collabCursorState$',new d[(_0x5b2a1d(0x33f))](null)),h(this,_0x5b2a1d(0x3d9),this[_0x5b2a1d(0x3f3)][_0x5b2a1d(0x3f7)]());}[_0x41752f(0x43c)](_0x13c9e0){const _0x1b7645=_0x41752f,{unitID:_0x2d4bb0,memberID:_0x589a6e,textRanges:_0x1ab462}=_0x13c9e0,_0x442788=Pe(_0x1ab462);if(_0x442788==='')return;const _0x21bedb={'unitID':_0x2d4bb0,'memberID':_0x589a6e,'selection':_0x442788};this['_collabCursorState$'][_0x1b7645(0x3e1)](_0x21bedb);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x5da66a,_0x9fe47a,_0x433634,_0x34d841)=>{const _0x368973=_0x41752f;for(var _0xb3ad48=_0x34d841>0x1?void 0x0:_0x34d841?Ze(_0x9fe47a,_0x433634):_0x9fe47a,_0x469736=_0x5da66a[_0x368973(0x27e)]-0x1,_0x1877fb;_0x469736>=0x0;_0x469736--)(_0x1877fb=_0x5da66a[_0x469736])&&(_0xb3ad48=_0x1877fb(_0xb3ad48)||_0xb3ad48);return _0xb3ad48;},L=(_0x38309a,_0x233c9f)=>(_0xde16da,_0x1f5896)=>_0x233c9f(_0xde16da,_0x1f5896,_0x38309a);function _0x5f08(){const _0x490d5b=['DocSelectionManagerService','children','LOCAL_CACHE_INTERVAL_KEY','DisposableCollection','redoState','flatMap','newValue','SheetsSelectionsService','sessionStatus$','wsSessionTicketUrl','_startDocCollabCursor','currentSkeleton$','INTERNAL_ERROR','Error','random','sheetID','transformStateCache','handleInsertRow','collabStatus.offline','@univerjs-pro/collaboration-client','jsxs','clearInterval','executeCommand','PERMISSION_DENIED','OnLineIcon','http://www.w3.org/2000/svg','prototype','get','CollaborationSocketService','extend','_docStateChangeManagerService','searchParams','_ensureSubject','event$','_colorIndex','_backgroundColor','UniverInstanceType','merge','SHEET_VIEWPORT_KEY','concat','COLORS','MOBILE_VERIFY_CODE_MISMATCH','_docClipboardService','OTHER_CLIENT_EDITING','location','_disabled','WECHAT_HAS_BEEN_BOUND','_cursors','cursorInfo','CONFLICT','getCurrentRevOfUnit','getColorFromTheme','_name','_saveTaskMap','onStarting','_scene','_entityInit$','104XIZbHz','on-line-icon','VIEW_MAIN','_context','COMPLETION_FINISHED','SNAPSHOT_INVALID_SNAPSHOT','_initStatusListener','_cachedData','addObjects','createIdentifier','InsertRangeMoveDownCommandId','lineTo','transform','defineProperty','focused$','IRenderManagerService','isArray','propertyIsEnumerable','_labelPosition','generateRandomId','Inject','getViewport','mapTo','_eventUnsubscribe','0\x200\x2016\x2016','_docSyncEditingCollabCursorService','_config','SOCKET_FAILED_RETRY','_status$','IURLService','exhaustSavingTask','415728rlXiBk','green.600','SetDocZoomRatioOperation','contains','collaboration.single-unit.warning','_registerRenderDependencies','onPointerEnter$','_assignedColors','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','with','ILogService','InsertRowCommandId','6NSQohM','ONLINE','subUnitId','collabCursorState$','_hideTimer','setInterval','_startSheetCollabCursor','_transformHistoryAndStateStack','mask','_entities','getAncestorScale','next','push','textRanges','post','jsx','TEXT_RANGE_LAYER_INDEX','SOCKET_FAILED','_instanceService','map','_range','Tooltip','ITransformService','SetWorksheetActivateCommand','min','IBeforeCloseService','transformRemoteChangeset','_initDependencies','RichTextEditingMutation','_collabCursorState$','@univerjs/core','_getMergeRange','entityInit$','asObservable','session.connection-failed','imageSourceType','getSkeleton','tag','then','subscribeEvent','CHANGESET_REVISION_CONFILICT','NO_OTHER_CLIENTS_EDITING','getCurrent','all','row','_updateLocalCursor','IImageIoService','TEXT','APPLY_NON_SEQUENTIAL_REVISION','rxjs/operators','getFocusedUnit','set','getSheetId','_initStatusComponent','onLocalMutation','unshift','UPDATE_CURSOR','handleDeleteRangeMoveLeft','isEditing','registerRefRange','ILocalCacheService','toRgbString','FromArray','Warning','IDocClipboardService','toStringTag','session.will-retry','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_docTransformIMECacheService','_transformPreviousActiveRange','useRef','_saveCache','MessageType','CollaborationUIEventService','entries','_initCommandExecutedListener','arc','filter','ranges','NodePositionConvertToCursor','FETCH_MISS','collabStatus.conflict','onMouseMove','_getSaveTimeout','YUUMI_ALL_TABLES_IS_INVALID','hovered','loadOfflineData','515SPneHw','text','pipe','@univerjs/engine-formula','@univerjs/rpc','icon','collaboration.closeRoom','m2Prime','getTypeOfUnitDisposed$','NOT_FOUND','closePath','dispose','connectInjector','119736oURkEJ','transformSelections','syncEditingCollabCursor','getParam','m1Prime','EMAIL_HAS_BEEN_BOUND','Workbook','subunit','runId','MOBILE_HAS_BEEN_BOUND','5908CPDlKS','path','fromEventSubject','transformMutation','getRenderById','getColor','fillStyle','idSuffix','_notificationService','IMessageService','_drawTextRange','DocCollaborationEntity','INVITE_CODE_HAS_BEEN_UES','urlChange$','red.300','pushState','selection','none','ticket','@univerjs/design','_lastPointer','RevisionService','DOC_RANGE_TYPE','switchMap','send','symbol','getSheetBySheetId','addObject','isActive','_docTransformSelectionsService','EMAIL_VERIFY_CODE_MISMATCH','triggerDblclick','includes','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_toggleOnline','Rectangle','YUUMI_RATE_OVER_LIMIT','distinctUntilChanged','Rect','invokeId','APPLY_REJECT','key','find','M0\x200H16V16H0z','delete','IRemoteInstanceService','_handleHeartbeatEvent','1127286QlwHUN','getMemberID','debug','disposeWithMe','_refRangeService','params','_unitStatus','_docSkeleton','forwardRef','EffectRefRangId','clsx','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collabStatus.syncing','_beforeCloseService','_docTransformStateCacheService','Failed','_scheduleHeartbeat','handleMoveRange','YUUMI_SUBSCRIPTION_NOT_FOUND','range','CollaborationStatus','getOwnPropertySymbols','registerRenderModule','Shape','_init','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_dataLoaderService','_hover','assignAColorForMemberID','IUniverInstanceService','getOffsetConfig','_handleEvent','_scheduleClearOtherTimer','pluginName','NodePositionConvertToRectRange','restore','CollaborationStatusDisplay','permission.title','black','_render','apply','6143340ylUBTC','LICENSE_IMPORT_SIZE_EXCEEDED','popstate','useObservable','updateOfflineData','_uiPartsService','CommandType','ILocalStorageService','createSocket','INVALID_INVITE_CODE','runOnServer','xlink:href','_getSheetObject','[CollaborationDataLoaderController]','collabStatus.fetchMiss','replaceState','YUUMI_AI_RUN_FAILED','assign','RegularPolygon','mutations','SetSelectionsOperation','url(#$1','CollaborationDataLoaderController','collab-text-range-','attrs','_handleLeaveEvent','@univerjs/engine-render','OTHER_CLIENTS_EDITING','round','currentColor','subscribe','SYNCED','_updateSubUnitFromURLParams','requireSession','_handleJoinEvent','_initEntityListener','_memberService','YUUMI_NO_CUBOID_FOR_QUESTION','_selfUnitIDs','UNIVER_SHEET','unitID','takeUntil','_collabCursorController','findNodePositionByCharIndex','_onRefRangeChange','_drawRectRange','NOT_COLLAB','setShapeProps','eventID','collab-client.tooltip.reconnect','call','_session','disableLocalCache','dispose$','_collaborationUIEventService','_anchorDot','_localeService','UniverCollaborationClientPlugin','APPLY_REVISION_CONFILICT','_setupSubUnitSync','isTransformMutationsWithChangesetSuccess','sessionTicket','color','_univerInstanceService','getMember','getValue','SessionStatus','ENSURE_SNAPSHOT_EXECUTION','_renderManagerService','_onCursorDelete','_toggleOffline','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','hasOwnProperty','off-line-icon','displayName','jiqing.500','_docSkeletonManagerService','_initEvent','Plugin','uni.network.url-service','_registerDependencies','_transformService','setParam','memberID','INVALID_ARGUMENT','@univerjs/docs','measureText','addHandlerCallback','_refreshCollabCursors','saveTaskMap','undoState','fillText','RxDisposable','_revisionService','WebBrowserSingleActiveUnitService','_logService','override','univerjs-icon\x20univerjs-icon-','getLocalCacheKey','@univerjs/drawing','collaboration-client-ui.config','LocaleService','_collaborationController','_scheduleSaving','div','ALREADY_EXISTS','width','CLOSE_ROOM','length','UNDEFINED','top','hide','result','Tools','BuiltInUIPart','PENDING','mergeOverrideWithDependencies','ICommandService','SheetSkeletonManagerService','UNAUTHENTICATED','substring','disposeUnit','activeSheet$','_localCacheService','createInstance','isTransformMutationFailure','_localStorageService','rxjs','colorChannel1','resize','href','ACTIVE_UNIT_EVENT_CHANNEL','_httpService','_themeService','YUUMI_URL_COL_OUT_OF_RANGE','@univerjs/sheets','RemoteUniscriptService','USER_NOT_INVITED_CODE','replace','setItem','CONNECTOR_DATA_TOO_LARGE','_messageService','_removeCollabCursors','_textBubble','8339RDlWWW','CollaborationSessionService','complete','setAlpha','selections','defIds','1222298ClybpU','_cursorShapes','JOIN_ROOM_FAILED','/run/','from','stringify','CollaborationUIEventId','createElement','_cursor','RemoveRowCommandId','onRendered','registerDependencies','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','transformByState','Unknown\x20user','_draw','deepClone','Optional','_clearOtherTimers','off-line-icon_clip0_910_343','UniverIcon','HEADER_MENU','forEach','...','executionId','getCurrentSelections','has','makeDirty','getRangePointData','collabStatus.synced','error','roomMembers','column','size','_sheetSkeletonManagerService','data','INVITE_CODE_REQUIRED','MemberService','setConfig','_heartbeatTimer','clearTimeout','LICENSE_EXPORT_SIZE_EXCEEDED','UNRECOGNIZED','#FFF','permission.content','history','application/json','HTTPService','on-line-icon_clip0_910_349','font','addEventListener','LICENSE_DISTRO_REJECTED','_colorAssignService','_shapes','LOGIN_FAILED','Injector','useDependency','collaboration-client.offline-data-not-saved','getRelativeToViewportCoord','getStateCache','handleIRemoveCol','getActiveRange','SheetCollabCursorShape','status$','UniverCollaborationClientUIPlugin','unsubscribe','saveImage','fillRule','transformMutationsWithChangeset','Disposable','IConfigService','_drawAnchor','backgroundColor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','react/jsx-runtime','_updateURLWithCurrentState','add','indexOf','unload','getCoordByCell','onTransformChange$','@univerjs/sheets-ui','getUndoRedoMutationParamsCache','_hovered','onPointerLeave$','defs','CollaborationEvent','DocIMEInputManagerService','_commandService','toDisposable','getCollabCursors$','collab-text-anchor-','values','debounceTime','name','INVITE_CODE_ALREADY_BOUND','sheetId','unit','_anchor','string','_getAnchorBounding','Vector2','function','onCommandExecuted','startsWith','OffLineIcon','_setupBeforeClosingHandler','_initResize','handleInsertRangeMoveDown','_roomMembers$','_removeClearOtherTimer','_configService','TOO_MANY_REQUESTS','handleInsertRangeMoveRight','save','_injector','unitId','BrowserCollaborationSocketService','UnitStatus','WebURLService','setUndoRedoMutationParamsCache','0\x200\x2017\x2016','fill','purple.300','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','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getConfig','univer-flex\x20univer-items-center','RECT','addClipboardHook','_updateCollabCursors','parse','debounce','@univerjs/ui','DocSkeletonManagerService','DesktopCollaborationStatusDisplayController','_getSessionTicket','getCollabEntity$','ThemeService','CollaborationController','IUIPartsService','getUnitId','_collabSessionService','cursorInfo$','storage','fromEvent','1em','LICENSE_MAX_UNITS_EXCEEDED','DocStateChangeManagerService','_unitOnClients','_id','BehaviorSubject','bottom','_syncEditingCollabCursorService','white','YUUMI_CONNECTOR_URL_NOT_FOUND','setActiveRange','getDocRanges','_handleHover','getUnhiddenWorksheets','svg','combineLatest','USERS_LEAVE','max','react','transformIMECache','OFFLINE','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','toString','_color','getUniverSheetInstance','_send','UNIVER_DOC','_cursorInfo$','drawWith','YUUMI_ASYNCIO_CANCELLED','evenodd','init','_online','_onCursorUpdate','yellow.400','_urlService','getOwnPropertyDescriptor','roomMembers$','_getScale','Module','getSheetObject','className','InsertColCommandId','ColorKit','type','YUUMI_UNABLE_LOAD_URL','LOCAL_CACHE_INTERVAL','doc.mutation.rich-text-editing','PY_RUNTIME_SCRIPT_ERROR','show','@univerjs/docs-ui','getItem','body','currentTheme$','split','handleIRemoveRow'];_0x5f08=function(){return _0x490d5b;};return _0x5f08();}const et=0x12c,tt=0x64;let Ie=class extends a[_0x41752f(0x26e)]{constructor(_0x3cf5a8,_0x5132d8,_0x4bef2f,_0x5f47c5,_0x1cb954,_0x22d23e,_0x3f9c75,_0x39a6c4,_0x18b059){const _0x1583eb=_0x41752f;super(),h(this,_0x1583eb(0x35a),!0x1),h(this,_0x1583eb(0x201),!0x1),h(this,_0x1583eb(0x355),new d[(_0x1583eb(0x33f))](new Map())),h(this,_0x1583eb(0x337),this[_0x1583eb(0x355)][_0x1583eb(0x3f7)]()),h(this,_0x1583eb(0x315),new d[(_0x1583eb(0x33f))]([])),h(this,_0x1583eb(0x35f),this[_0x1583eb(0x315)][_0x1583eb(0x42f)](d['debounceTime'](et))),h(this,_0x1583eb(0x403),a[_0x1583eb(0x32c)](_0x597b2e=>{const _0x4de3fd=_0x1583eb,_0x2cd5a7={'eventID':m[_0x4de3fd(0x2fe)][_0x4de3fd(0x40e)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x4de3fd(0x1ea)](),'selection':Pe(_0x597b2e)}};this[_0x4de3fd(0x245)][_0x4de3fd(0x1d2)](_0x2cd5a7,this[_0x4de3fd(0x23a)]);},tt)),(this[_0x1583eb(0x23a)]=_0x3cf5a8,this[_0x1583eb(0x245)]=_0x5132d8,this['_injector']=_0x4bef2f,this[_0x1583eb(0x2dc)]=_0x5f47c5,this[_0x1583eb(0x236)]=_0x1cb954,this['_syncEditingCollabCursorService']=_0x22d23e,this[_0x1583eb(0x263)]=_0x3f9c75,this[_0x1583eb(0x251)]=_0x39a6c4,this[_0x1583eb(0x300)]=_0x18b059);}get[_0x41752f(0x3a2)](){const _0x59006e=_0x41752f;return this[_0x59006e(0x355)][_0x59006e(0x253)]();}get[_0x41752f(0x2c7)](){const _0x5bfaa2=_0x41752f;return this[_0x5bfaa2(0x315)][_0x5bfaa2(0x253)]();}[_0x41752f(0x438)](){const _0x31b015=_0x41752f;super[_0x31b015(0x438)](),this[_0x31b015(0x355)][_0x31b015(0x3e1)](new Map()),this[_0x31b015(0x355)][_0x31b015(0x2a4)](),this[_0x31b015(0x315)]['next']([]),this[_0x31b015(0x315)][_0x31b015(0x2a4)]();}[_0x41752f(0x359)](){const _0x5013e7=_0x41752f;this[_0x5013e7(0x201)]||(this[_0x5013e7(0x201)]=!0x0,this[_0x5013e7(0x245)]['sessionStatus$'][_0x5013e7(0x42f)](d[_0x5013e7(0x23b)](this[_0x5013e7(0x247)]))[_0x5013e7(0x230)](_0xb681a1=>{const _0x9bf3d8=_0x5013e7;_0xb681a1===u[_0x9bf3d8(0x254)]['ONLINE']?this[_0x9bf3d8(0x1dc)]():this[_0x9bf3d8(0x258)]();}),this['_session'][_0x5013e7(0x393)][_0x5013e7(0x42f)](d[_0x5013e7(0x23b)](this['dispose$']))[_0x5013e7(0x230)](_0x1b168a=>{const _0x115aae=_0x5013e7,_0xa59e8e=_0x1b168a[_0x115aae(0x242)];_0xa59e8e===m[_0x115aae(0x2fe)]['UPDATE_CURSOR']&&this[_0x115aae(0x35b)](_0x1b168a),_0xa59e8e===m['CollaborationEvent'][_0x115aae(0x34a)]&&this[_0x115aae(0x257)](_0x1b168a);}),this[_0x5013e7(0x1ec)](this[_0x5013e7(0x300)][_0x5013e7(0x30f)](_0xd04de7=>{const _0x26d62a=_0x5013e7,_0xe27e32=_0xd04de7[_0x26d62a(0x1ee)];_0xe27e32!=null&&this[_0x26d62a(0x35a)]&&_0xd04de7['id']===Y['SetTextSelectionsOperation']['id']&&_0xe27e32[_0x26d62a(0x31c)]===this[_0x26d62a(0x23a)]&&_0xe27e32[_0x26d62a(0x410)]===!0x1&&_0xe27e32[_0x26d62a(0x424)]['length']>0x0&&this['_updateLocalCursor'](_0xe27e32[_0x26d62a(0x424)]);})),this[_0x5013e7(0x341)][_0x5013e7(0x3d9)][_0x5013e7(0x42f)](d['takeUntil'](this[_0x5013e7(0x247)]))[_0x5013e7(0x230)](_0x1a6f78=>{const _0x3c5732=_0x5013e7;if((_0x1a6f78==null?void 0x0:_0x1a6f78[_0x3c5732(0x23a)])!==this[_0x3c5732(0x23a)])return;const _0x1d469a={'eventID':m[_0x3c5732(0x2fe)][_0x3c5732(0x40e)],'data':_0x1a6f78};this[_0x3c5732(0x35b)](_0x1d469a);}),this[_0x5013e7(0x1ec)](this[_0x5013e7(0x300)][_0x5013e7(0x30f)](_0x15d360=>{const _0x599bf1=_0x5013e7;if(_0x15d360[_0x599bf1(0x1ee)]==null)return;const _0x12f1c3=_0x15d360['params'];if(_0x15d360['id']!==Y[_0x599bf1(0x3f2)]['id']||_0x12f1c3[_0x599bf1(0x31c)]!==this[_0x599bf1(0x23a)])return;const _0x147fb4={'id':'doc.mutation.rich-text-editing','params':_0x12f1c3},_0x3f1a39=this[_0x599bf1(0x3a2)];for(const [_0x432219,_0x18fa9d]of _0x3f1a39){const _0x4110eb={'id':_0x599bf1(0x369),'params':{'unitId':this[_0x599bf1(0x23a)],'actions':null,'textRanges':_0x18fa9d[_0x599bf1(0x424)]}},_0x57dff1=this[_0x599bf1(0x263)]['transformMutation'](_0x147fb4,_0x4110eb,!0x1);if(m[_0x599bf1(0x28f)](_0x57dff1))throw _0x57dff1[_0x599bf1(0x2c6)];_0x3f1a39[_0x599bf1(0x409)](_0x432219,{..._0x18fa9d,'ranges':_0x57dff1[_0x599bf1(0x434)][_0x599bf1(0x1ee)][_0x599bf1(0x3e3)]});}queueMicrotask(()=>{const _0x4d8dd9=_0x599bf1;this[_0x4d8dd9(0x355)][_0x4d8dd9(0x3e1)](_0x3f1a39);});})));}[_0x41752f(0x35b)](_0x40bb31){const _0x5dd113=_0x41752f;var _0x585b13,_0x16230c;const {memberID:_0x345e4f,selection:_0x56c384}=_0x40bb31['data'],_0x5a3bde=Je(_0x56c384),_0x36cc87=(_0x16230c=(_0x585b13=this[_0x5dd113(0x236)][_0x5dd113(0x252)](this['unitID'],_0x345e4f))==null?void 0x0:_0x585b13['name'])!=null?_0x16230c:'Unknown\x20user',_0x3044f1={'color':this[_0x5dd113(0x2dc)][_0x5dd113(0x205)](_0x345e4f),'name':_0x36cc87,'ranges':_0x5a3bde},_0x3af87e=this[_0x5dd113(0x3a2)];_0x3af87e['set'](_0x345e4f,_0x3044f1),this[_0x5dd113(0x355)][_0x5dd113(0x3e1)](_0x3af87e);}[_0x41752f(0x257)](_0x5b778e){const _0x1a414e=_0x41752f,{memberID:_0x22d338}=_0x5b778e['data'],_0x12448a=this[_0x1a414e(0x3a2)];_0x12448a['delete'](_0x22d338),this[_0x1a414e(0x355)][_0x1a414e(0x3e1)](_0x12448a);}[_0x41752f(0x1dc)](){const _0x111dc0=_0x41752f;var _0x4a80ba;if(this[_0x111dc0(0x35a)]=!0x0,((_0x4a80ba=this[_0x111dc0(0x251)]['getFocusedUnit']())==null?void 0x0:_0x4a80ba[_0x111dc0(0x335)]())!==this[_0x111dc0(0x23a)])return;const _0x5d4492=this[_0x111dc0(0x31b)]['get'](Y[_0x111dc0(0x372)])['getDocRanges']();Array[_0x111dc0(0x3bb)](_0x5d4492)&&_0x5d4492[_0x111dc0(0x27e)]>0x0&&this[_0x111dc0(0x403)](_0x5d4492);}['_toggleOffline'](){const _0x91d7e7=_0x41752f;this[_0x91d7e7(0x35a)]=!0x1;}};Ie=Qe([L(0x2,a[_0x41752f(0x3bf)](a[_0x41752f(0x2df)])),L(0x3,a[_0x41752f(0x3bf)](me)),L(0x4,a['Inject'](u[_0x41752f(0x2cd)])),L(0x5,a[_0x41752f(0x3bf)](Ce)),L(0x6,m[_0x41752f(0x3ec)]),L(0x7,a[_0x41752f(0x206)]),L(0x8,a[_0x41752f(0x287)])],Ie);var st=Object[_0x41752f(0x35e)],it=(_0xe2b579,_0x58b97c,_0x1a004c,_0x1c3b02)=>{const _0x6478df=_0x41752f;for(var _0x87ea94=_0x1c3b02>0x1?void 0x0:_0x1c3b02?st(_0x58b97c,_0x1a004c):_0x58b97c,_0x79445e=_0xe2b579[_0x6478df(0x27e)]-0x1,_0x1adb9e;_0x79445e>=0x0;_0x79445e--)(_0x1adb9e=_0xe2b579[_0x79445e])&&(_0x87ea94=_0x1adb9e(_0x87ea94)||_0x87ea94);return _0x87ea94;},A=(_0x1b889b,_0x23d25f)=>(_0x44f18c,_0x3e11f0)=>_0x23d25f(_0x44f18c,_0x3e11f0,_0x1b889b);const nt=0x12c,rt=0x64,ot=()=>{let _0x3d61e3=[],_0x99ec88=!0x1;return _0x26b274=>{_0x3d61e3['push'](_0x26b274),_0x99ec88||(_0x99ec88=!0x0,setTimeout(()=>{const _0x16b428=_0x1202;_0x3d61e3[_0x16b428(0x2be)](_0x2ea9fc=>_0x2ea9fc()),_0x3d61e3=[],_0x99ec88=!0x1;}));};};let Se=class extends a[_0x41752f(0x26e)]{constructor(_0x59ab73,_0xed3867,_0x30d433,_0xe473bc,_0x5a5c1c,_0x11930f,_0x1d8b3b,_0x52a5cd){const _0x4bccba=_0x41752f;super(),h(this,_0x4bccba(0x35a),!0x1),h(this,_0x4bccba(0x201),!0x1),h(this,_0x4bccba(0x355),new d[(_0x4bccba(0x33f))](new Map())),h(this,_0x4bccba(0x337),this[_0x4bccba(0x355)][_0x4bccba(0x3f7)]()),h(this,_0x4bccba(0x315),new d['BehaviorSubject']([])),h(this,_0x4bccba(0x35f),this[_0x4bccba(0x315)][_0x4bccba(0x42f)](d[_0x4bccba(0x305)](nt))),h(this,_0x4bccba(0x403),a[_0x4bccba(0x32c)]((_0x1138e5,_0x2163c0)=>{const _0x2e8651=_0x4bccba,_0x598410={'eventID':m[_0x2e8651(0x2fe)][_0x2e8651(0x40e)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x2e8651(0x1ea)](),'selection':be['serializeRangeWithSheet'](_0x1138e5,_0x2163c0[_0x2e8651(0x1fc)])}};this[_0x2e8651(0x245)][_0x2e8651(0x1d2)](_0x598410,this['unitID']);},rt)),(this[_0x4bccba(0x23a)]=_0x59ab73,this[_0x4bccba(0x245)]=_0xed3867,this[_0x4bccba(0x31b)]=_0x30d433,this[_0x4bccba(0x2dc)]=_0xe473bc,this[_0x4bccba(0x236)]=_0x5a5c1c,this[_0x4bccba(0x251)]=_0x11930f,this[_0x4bccba(0x300)]=_0x1d8b3b,this[_0x4bccba(0x1ed)]=_0x52a5cd);}get[_0x41752f(0x3a2)](){return this['_cursorInfo$']['getValue']();}get[_0x41752f(0x2c7)](){const _0x39607f=_0x41752f;return this[_0x39607f(0x315)][_0x39607f(0x253)]();}[_0x41752f(0x438)](){const _0x5532e9=_0x41752f;super[_0x5532e9(0x438)](),this[_0x5532e9(0x355)][_0x5532e9(0x3e1)](new Map()),this['_cursorInfo$'][_0x5532e9(0x2a4)](),this[_0x5532e9(0x315)]['next']([]),this[_0x5532e9(0x315)][_0x5532e9(0x2a4)]();}[_0x41752f(0x359)](){const _0x1933ba=_0x41752f;this[_0x1933ba(0x201)]||(this[_0x1933ba(0x201)]=!0x0,this[_0x1933ba(0x245)][_0x1933ba(0x37a)][_0x1933ba(0x42f)](d[_0x1933ba(0x23b)](this[_0x1933ba(0x247)]))[_0x1933ba(0x230)](_0x3e212f=>{const _0xb7ea30=_0x1933ba;_0x3e212f===u['SessionStatus'][_0xb7ea30(0x3d7)]?this['_toggleOnline']():this[_0xb7ea30(0x258)]();}),this['_session'][_0x1933ba(0x393)]['pipe'](d['takeUntil'](this['dispose$']))[_0x1933ba(0x230)](_0x3147cd=>{const _0x2b437e=_0x1933ba,_0x550aa1=_0x3147cd[_0x2b437e(0x242)];_0x550aa1===m[_0x2b437e(0x2fe)][_0x2b437e(0x40e)]&&this[_0x2b437e(0x35b)](_0x3147cd),_0x550aa1===m[_0x2b437e(0x2fe)][_0x2b437e(0x34a)]&&this['_onCursorDelete'](_0x3147cd);}),this['_onRefRangeChange'](),this[_0x1933ba(0x1ec)](this[_0x1933ba(0x300)][_0x1933ba(0x30f)](_0x4ec478=>{const _0x58da98=_0x1933ba;if(this['_online']&&_0x4ec478['id']===g[_0x58da98(0x226)]['id']&&_0x4ec478[_0x58da98(0x1ee)][_0x58da98(0x31c)]===this[_0x58da98(0x23a)]){const _0x19ee3d=_0x4ec478[_0x58da98(0x1ee)];this['_updateLocalCursor'](_0x19ee3d[_0x58da98(0x3d8)],_0x19ee3d[_0x58da98(0x2a6)][0x0]);}})));}['_onCursorUpdate'](_0x28dc8c){const _0x117e93=_0x41752f;var _0x3b6aac,_0x2515f5;const {memberID:_0x16fd9c,selection:_0x14676b}=_0x28dc8c[_0x117e93(0x2cb)],{sheetName:_0x1bb518,range:_0x26c736}=be['deserializeRangeWithSheet'](_0x14676b),_0x101905={'name':(_0x2515f5=(_0x3b6aac=this[_0x117e93(0x236)]['getMember'](this[_0x117e93(0x23a)],_0x16fd9c))==null?void 0x0:_0x3b6aac[_0x117e93(0x306)])!=null?_0x2515f5:_0x117e93(0x2b6),'range':this[_0x117e93(0x3f5)](_0x1bb518,_0x26c736),'sheetID':_0x1bb518,'color':this[_0x117e93(0x2dc)][_0x117e93(0x205)](_0x16fd9c),'selection':_0x14676b},_0x2c6a47=this[_0x117e93(0x3a2)];_0x2c6a47[_0x117e93(0x409)](_0x16fd9c,_0x101905),this['_cursorInfo$'][_0x117e93(0x3e1)](_0x2c6a47);}['_onCursorDelete'](_0x2e8092){const _0x2f79d1=_0x41752f,{memberID:_0x1f0acd}=_0x2e8092[_0x2f79d1(0x2cb)],_0x42cd09=this[_0x2f79d1(0x3a2)];_0x42cd09['delete'](_0x1f0acd),this[_0x2f79d1(0x355)][_0x2f79d1(0x3e1)](_0x42cd09);}[_0x41752f(0x3f5)](_0x85b9b5,_0x4049ad){const _0x242735=_0x41752f;var _0x3333bc,_0x18b385;const _0x2dac7b=(_0x18b385=(_0x3333bc=this[_0x242735(0x251)][_0x242735(0x352)](this[_0x242735(0x23a)]))==null?void 0x0:_0x3333bc[_0x242735(0x1d4)](_0x85b9b5))==null?void 0x0:_0x18b385['getMergeData']();return(_0x2dac7b==null?void 0x0:_0x2dac7b[_0x242735(0x1e4)](_0x42a4f3=>a[_0x242735(0x1dd)][_0x242735(0x3cd)](_0x42a4f3,_0x4049ad)))||_0x4049ad;}[_0x41752f(0x23e)](){const _0x3bb5c4=_0x41752f,_0x1eafff=new a[(_0x3bb5c4(0x375))](),_0x467281=ot(),_0x2cc3e9=()=>{const _0x2f39b6=_0x3bb5c4;_0x1eafff[_0x2f39b6(0x438)]();const _0x71eccc=(_0x534ef,_0x258981,_0x288ce5,_0x2b55e2)=>{const _0x5083b7=_0x2f39b6;let _0x232dd0=[];switch(_0x534ef['id']){case g['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x232dd0=g[_0x5083b7(0x40f)](_0x534ef,_0x2b55e2);break;}case g[_0x5083b7(0x1f2)]['DeleteRangeMoveUpCommandId']:{_0x232dd0=g['handleDeleteRangeMoveUp'](_0x534ef,_0x2b55e2);break;}case g[_0x5083b7(0x1f2)][_0x5083b7(0x364)]:{_0x232dd0=g['handleInsertCol'](_0x534ef,_0x2b55e2);break;}case g[_0x5083b7(0x1f2)][_0x5083b7(0x3b5)]:{_0x232dd0=g[_0x5083b7(0x314)](_0x534ef,_0x2b55e2);break;}case g[_0x5083b7(0x1f2)]['InsertRangeMoveRightCommandId']:{_0x232dd0=g[_0x5083b7(0x319)](_0x534ef,_0x2b55e2);break;}case g[_0x5083b7(0x1f2)][_0x5083b7(0x3d5)]:{_0x232dd0=g[_0x5083b7(0x383)](_0x534ef,_0x2b55e2);break;}case g[_0x5083b7(0x1f2)]['MoveRangeCommandId']:{_0x232dd0=g[_0x5083b7(0x1fa)](_0x534ef,_0x2b55e2);break;}case g[_0x5083b7(0x1f2)]['RemoveColCommandId']:{_0x232dd0=g[_0x5083b7(0x2e4)](_0x534ef,_0x2b55e2);break;}case g[_0x5083b7(0x1f2)][_0x5083b7(0x2b1)]:{_0x232dd0=g[_0x5083b7(0x371)](_0x534ef,_0x2b55e2);break;}}const _0x309a87=g['runRefRangeMutations'](_0x232dd0,_0x2b55e2),_0x35ff47=this[_0x5083b7(0x3a2)][_0x5083b7(0x38d)](_0x258981);if(_0x35ff47&&_0x309a87){const _0x25918a={..._0x35ff47,'range':_0x309a87};this[_0x5083b7(0x3a2)][_0x5083b7(0x409)](_0x258981,_0x25918a),_0x467281(()=>{const _0x5b80d2=_0x5083b7,_0x5d87c9=this[_0x5b80d2(0x1ed)][_0x5b80d2(0x411)](_0x309a87,_0x11c2a9=>(_0x5d87c9[_0x5b80d2(0x438)](),_0x71eccc(_0x11c2a9,_0x258981,_0x288ce5,_0x309a87)));_0x1eafff[_0x5b80d2(0x2f4)](_0x5d87c9);});}return{'redos':[],'undos':[]};};this[_0x2f39b6(0x3a2)][_0x2f39b6(0x2be)]((_0x149b18,_0x3d2d54)=>{const _0x1cd448=_0x2f39b6,{range:_0x3152de,sheetID:_0x160a9e}=_0x149b18,_0x2a4794=this['_refRangeService'][_0x1cd448(0x411)](_0x3152de,_0x4a3f9a=>(_0x2a4794[_0x1cd448(0x438)](),_0x71eccc(_0x4a3f9a,_0x3d2d54,_0x160a9e,_0x3152de)));_0x1eafff[_0x1cd448(0x2f4)](_0x2a4794);});};this[_0x3bb5c4(0x1ec)](a['toDisposable'](this['_cursorInfo$'][_0x3bb5c4(0x230)](()=>{_0x2cc3e9();})));}[_0x41752f(0x1dc)](){const _0x5ee69c=_0x41752f;var _0x5d642c,_0x533828;if(this[_0x5ee69c(0x35a)]=!0x0,((_0x5d642c=this[_0x5ee69c(0x251)][_0x5ee69c(0x408)]())==null?void 0x0:_0x5d642c['getUnitId']())!==this[_0x5ee69c(0x23a)])return;const _0x4c13f1=(_0x533828=this[_0x5ee69c(0x31b)]['get'](g[_0x5ee69c(0x379)])[_0x5ee69c(0x2c1)]())==null?void 0x0:_0x533828[0x0],_0x14e4d8=this[_0x5ee69c(0x251)]['getCurrentUnitForType'](a[_0x5ee69c(0x396)]['UNIVER_SHEET'])['getActiveSheet']();_0x4c13f1&&_0x14e4d8&&this['_updateLocalCursor'](_0x14e4d8[_0x5ee69c(0x40a)](),_0x4c13f1);}[_0x41752f(0x258)](){this['_online']=!0x1;}};Se=it([A(0x2,a['Inject'](a['Injector'])),A(0x3,a[_0x41752f(0x3bf)](me)),A(0x4,a[_0x41752f(0x3bf)](u[_0x41752f(0x2cd)])),A(0x5,a[_0x41752f(0x206)]),A(0x6,a['ICommandService']),A(0x7,a[_0x41752f(0x3bf)](g['RefRangeService']))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x4d48c4,_0x49ff08,_0x42edc2,_0x382f14)=>{const _0x1765e6=_0x41752f;for(var _0x34670c=_0x382f14>0x1?void 0x0:_0x382f14?at(_0x49ff08,_0x42edc2):_0x49ff08,_0x3f379e=_0x4d48c4[_0x1765e6(0x27e)]-0x1,_0x5de32f;_0x3f379e>=0x0;_0x3f379e--)(_0x5de32f=_0x4d48c4[_0x3f379e])&&(_0x34670c=_0x5de32f(_0x34670c)||_0x34670c);return _0x34670c;},ie=(_0x365519,_0x2003c1)=>(_0x2c7ef8,_0x3a315b)=>_0x2003c1(_0x2c7ef8,_0x3a315b,_0x365519);let x=class extends a[_0x41752f(0x26e)]{constructor(_0x2d41c3,_0x251816,_0x13af8f){const _0x39e69f=_0x41752f;super(),h(this,'_entities',new Map()),h(this,_0x39e69f(0x3aa),new d['Subject']()),(this[_0x39e69f(0x251)]=_0x2d41c3,this['_injector']=_0x251816,this[_0x39e69f(0x336)]=_0x13af8f,this[_0x39e69f(0x201)]());}[_0x41752f(0x438)](){const _0x5a9c59=_0x41752f;super[_0x5a9c59(0x438)](),this[_0x5a9c59(0x3aa)][_0x5a9c59(0x2a4)](),this[_0x5a9c59(0x3df)][_0x5a9c59(0x2be)](_0x4f7cfb=>_0x4f7cfb[_0x5a9c59(0x438)]());}[_0x41752f(0x302)](_0x383acb){const _0x437391=_0x41752f;return this[_0x437391(0x3df)]['has'](_0x383acb)?this[_0x437391(0x3df)][_0x437391(0x38d)](_0x383acb)[_0x437391(0x337)]:this[_0x437391(0x3aa)]['pipe'](d[_0x437391(0x423)](_0x18fa7e=>_0x18fa7e['unitID']===_0x383acb),d[_0x437391(0x1d1)](_0x3c3a5c=>_0x3c3a5c['cursorInfo$']));}[_0x41752f(0x201)](){const _0x526a81=_0x41752f;this[_0x526a81(0x251)]['getTypeOfUnitAdded$'](a[_0x526a81(0x396)][_0x526a81(0x239)])[_0x526a81(0x42f)](d[_0x526a81(0x23b)](this['dispose$']))[_0x526a81(0x230)](async _0x2f83a4=>{const _0x3fd252=_0x526a81,_0x45c36a=_0x2f83a4[_0x3fd252(0x335)](),_0x3f1abe=await this[_0x3fd252(0x3dc)](_0x45c36a);this['_entityInit$'][_0x3fd252(0x3e1)](_0x3f1abe),this['_entities'][_0x3fd252(0x409)](_0x45c36a,_0x3f1abe);}),this[_0x526a81(0x251)]['getTypeOfUnitAdded$'](a[_0x526a81(0x396)][_0x526a81(0x354)])[_0x526a81(0x42f)](d[_0x526a81(0x23b)](this['dispose$']))[_0x526a81(0x42f)](d[_0x526a81(0x423)](_0x53cac4=>!_0x53cac4[_0x526a81(0x335)]()[_0x526a81(0x310)]('__')))[_0x526a81(0x230)](async _0x46f06a=>{const _0x5bb775=_0x526a81,_0x4e516c=_0x46f06a[_0x5bb775(0x335)](),_0x5a415e=await this['_startDocCollabCursor'](_0x4e516c);this[_0x5bb775(0x3aa)][_0x5bb775(0x3e1)](_0x5a415e),this[_0x5bb775(0x3df)][_0x5bb775(0x409)](_0x4e516c,_0x5a415e);}),d['merge'](this[_0x526a81(0x251)][_0x526a81(0x435)](a['UniverInstanceType'][_0x526a81(0x354)]),this[_0x526a81(0x251)]['getTypeOfUnitDisposed$'](a[_0x526a81(0x396)][_0x526a81(0x239)]))[_0x526a81(0x42f)](d[_0x526a81(0x23b)](this[_0x526a81(0x247)]))[_0x526a81(0x230)](_0x122258=>{const _0x4dfb6c=_0x526a81,_0x1a6bb2=_0x122258[_0x4dfb6c(0x335)](),_0xc939c0=this[_0x4dfb6c(0x3df)][_0x4dfb6c(0x38d)](_0x1a6bb2);_0xc939c0&&(_0xc939c0['dispose'](),this[_0x4dfb6c(0x3df)][_0x4dfb6c(0x1e6)](_0x1a6bb2));});}async[_0x41752f(0x3dc)](_0x1023a9){const _0x18baad=_0x41752f,_0x13a754=await this['_collabSessionService'][_0x18baad(0x233)](_0x1023a9),_0x2f791a=this[_0x18baad(0x31b)][_0x18baad(0x28e)](Se,_0x1023a9,_0x13a754);return _0x2f791a[_0x18baad(0x359)](),_0x2f791a;}async[_0x41752f(0x37c)](_0x29002a){const _0x23f6dc=_0x41752f,_0x573fa8=await this[_0x23f6dc(0x336)][_0x23f6dc(0x233)](_0x29002a),_0x1016ce=this['_injector']['createInstance'](Ie,_0x29002a,_0x573fa8);return _0x1016ce[_0x23f6dc(0x359)](),_0x1016ce;}};x=ct([ie(0x0,a[_0x41752f(0x206)]),ie(0x1,a[_0x41752f(0x3bf)](a[_0x41752f(0x2df)])),ie(0x2,a[_0x41752f(0x3bf)](u[_0x41752f(0x2a3)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x3d136c,_0x417129){const _0x1cb396=_0x41752f;let {radius:_0x1116b5,width:_0x3ffbd6,height:_0x446d8c}=_0x417129;_0x1116b5=_0x1116b5!=null?_0x1116b5:0x0,_0x3ffbd6=_0x3ffbd6!=null?_0x3ffbd6:0x1e,_0x446d8c=_0x446d8c!=null?_0x446d8c:0x1e;let _0xe3bfac=0x0,_0x3e595d=0x0,_0x409111=0x0;_0xe3bfac=_0x3e595d=_0x409111=Math[_0x1cb396(0x3ee)](_0x1116b5,_0x3ffbd6/0x2,_0x446d8c/0x2),_0x3d136c['beginPath'](),_0x3d136c['moveTo'](_0xe3bfac,0x0),_0x3d136c[_0x1cb396(0x3b6)](_0x3ffbd6-_0x3e595d,0x0),_0x3d136c[_0x1cb396(0x422)](_0x3ffbd6-_0x3e595d,_0x3e595d,_0x3e595d,Math['PI']*0x3/0x2,0x0,!0x1),_0x3d136c[_0x1cb396(0x3b6)](_0x3ffbd6,_0x446d8c-_0x409111),_0x3d136c[_0x1cb396(0x422)](_0x3ffbd6-_0x409111,_0x446d8c-_0x409111,_0x409111,0x0,Math['PI']/0x2,!0x1),_0x3d136c['lineTo'](0x0,_0x446d8c),_0x3d136c[_0x1cb396(0x3b6)](0x0,_0xe3bfac),_0x3d136c[_0x1cb396(0x422)](_0xe3bfac,_0xe3bfac,_0xe3bfac,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3d136c[_0x1cb396(0x437)](),_0x417129['fill']&&(_0x3d136c[_0x1cb396(0x31a)](),_0x3d136c['fillStyle']=_0x417129[_0x1cb396(0x322)],_0x417129[_0x1cb396(0x2eb)]===_0x1cb396(0x358)?_0x3d136c[_0x1cb396(0x322)](_0x1cb396(0x358)):_0x3d136c['fill'](),_0x3d136c[_0x1cb396(0x20c)]());}class ee extends p['Shape']{constructor(_0x5ad2a4,_0x586a6){const _0x3894ab=_0x41752f;super(_0x5ad2a4,_0x586a6),h(this,_0x3894ab(0x250)),h(this,_0x3894ab(0x42e)),(this[_0x3894ab(0x250)]=_0x586a6==null?void 0x0:_0x586a6[_0x3894ab(0x250)],this[_0x3894ab(0x42e)]=_0x586a6==null?void 0x0:_0x586a6[_0x3894ab(0x42e)]);}static[_0x41752f(0x356)](_0x11ad92,_0x26f846){const _0x20167e=_0x41752f,{text:_0x3428d3,color:_0x1d5cc6}=_0x26f846;_0x11ad92['save'](),_0x11ad92[_0x20167e(0x2d9)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x38e8d5=_0x11ad92[_0x20167e(0x268)](_0x3428d3)[_0x20167e(0x27c)],_0x30e6db=Math[_0x20167e(0x3ee)](_0x38e8d5+0x2*ne,Re);_t(_0x11ad92,{'height':K,'radius':0x4,'width':_0x30e6db,'fill':_0x1d5cc6}),_0x11ad92[_0x20167e(0x44a)]=_0x20167e(0x2d3);const _0x3aae79=ne,_0x14f0dc=K-lt,_0x1690b3=Re-0x2*ne;if(_0x38e8d5>_0x1690b3){let _0x1a6643='',_0x2f5af3=0x0;for(const _0x1d515d of _0x3428d3){const _0x85618c=_0x11ad92[_0x20167e(0x268)](_0x1d515d)['width'];if(_0x2f5af3+_0x85618c<=_0x1690b3-_0x11ad92[_0x20167e(0x268)](_0x20167e(0x2bf))['width'])_0x1a6643+=_0x1d515d,_0x2f5af3+=_0x85618c;else{_0x1a6643+=_0x20167e(0x2bf);break;}}_0x11ad92[_0x20167e(0x26d)](_0x1a6643,_0x3aae79,_0x14f0dc);}else _0x11ad92['fillText'](_0x3428d3,_0x3aae79,_0x14f0dc);_0x11ad92[_0x20167e(0x20c)]();}[_0x41752f(0x2b7)](_0x2dcc67){const _0x35796f=_0x41752f;ee[_0x35796f(0x356)](_0x2dcc67,this);}}const re=_0x41752f(0x303),ht=_0x41752f(0x229),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,It=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x4e0fce,_0x332eea,_0x512bcd,_0x1142b7){const _0x8b2122=_0x41752f;h(this,_0x8b2122(0x2dd),[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,_0x8b2122(0x249),null),h(this,_0x8b2122(0x3da),null),h(this,_0x8b2122(0x3c2),null),(this[_0x8b2122(0x2b0)]=_0x4e0fce,this[_0x8b2122(0x3a9)]=_0x332eea,this[_0x8b2122(0x1f0)]=_0x512bcd,this['_document']=_0x1142b7,this[_0x8b2122(0x210)]());}set['_hover'](_0x3f0af1){const _0xc25c3e=_0x41752f;_0x3f0af1?(this['_anchorDot']&&this[_0xc25c3e(0x249)][_0xc25c3e(0x281)](),this['_textBubble']&&this['_textBubble'][_0xc25c3e(0x36b)]()):(this[_0xc25c3e(0x249)]&&this['_anchorDot']['show'](),this[_0xc25c3e(0x2a1)]&&this[_0xc25c3e(0x2a1)][_0xc25c3e(0x281)]());}[_0x41752f(0x438)](){const _0x27174d=_0x41752f;for(const _0x276a91 of this[_0x27174d(0x2dd)])_0x276a91[_0x27174d(0x438)]();this[_0x27174d(0x2a1)]&&this[_0x27174d(0x2a1)][_0x27174d(0x438)](),this[_0x27174d(0x249)]&&this[_0x27174d(0x249)][_0x27174d(0x438)](),this[_0x27174d(0x30a)]&&this[_0x27174d(0x30a)][_0x27174d(0x438)](),this[_0x27174d(0x3c2)]&&this[_0x27174d(0x3c2)]();}[_0x41752f(0x210)](){const _0x382df4=_0x41752f;var _0x3deb49;const {_docSkeleton:_0x4ade98,_document:_0x1295c8}=this,{color:_0x43fea7,name:_0x5e1098,ranges:_0x219769}=this[_0x382df4(0x2b0)],_0x3a17ab=_0x1295c8[_0x382df4(0x207)](),{docsLeft:_0x27c6b3,docsTop:_0xc21931}=_0x3a17ab,_0x1fdba0=new E[(_0x382df4(0x425))](_0x3a17ab,_0x4ade98);for(const {startOffset:_0x3dbce6,endOffset:_0x449fc8,rangeType:_0x49beec,segmentId:_0x17472e,segmentPage:_0x12baf5,collapsed:_0x474cac,isActive:_0x429b5c}of _0x219769){const _0x4e0053=_0x4ade98[_0x382df4(0x23d)](_0x3dbce6,!0x0,_0x17472e,_0x12baf5);let _0x56a0b1=_0x4ade98[_0x382df4(0x23d)](_0x449fc8,!0x0,_0x17472e,_0x12baf5);if(_0x56a0b1==null&&(_0x56a0b1=_0x4ade98[_0x382df4(0x23d)](_0x449fc8-0x1,!0x1,_0x17472e,_0x12baf5)),_0x429b5c){const {contentBoxPointGroup:_0x31424d}=_0x1fdba0[_0x382df4(0x2c4)](_0x56a0b1,_0x56a0b1);if(_0x31424d[_0x382df4(0x27e)]===0x0)continue;this[_0x382df4(0x2ef)](_0x43fea7,_0x31424d,_0x27c6b3,_0xc21931,_0x5e1098),this[_0x382df4(0x3c2)]=this[_0x382df4(0x346)]();}if(_0x4e0053&&_0x56a0b1){if(_0x49beec===a[_0x382df4(0x1d0)]['RECT']){const _0x2569e4=new E[(_0x382df4(0x20b))](_0x3a17ab,_0x4ade98),{pointGroup:_0x238b80}=(_0x3deb49=_0x2569e4[_0x382df4(0x2c4)](_0x4e0053,_0x56a0b1))!=null?_0x3deb49:{};if(_0x238b80==null||_0x238b80[_0x382df4(0x27e)]===0x0)continue;this[_0x382df4(0x23f)](_0x43fea7,_0x238b80,_0x27c6b3,_0xc21931);}else{if(!_0x474cac){const {borderBoxPointGroup:_0x529584}=_0x1fdba0[_0x382df4(0x2c4)](_0x4e0053,_0x56a0b1);if(_0x529584[_0x382df4(0x27e)]===0x0)continue;this[_0x382df4(0x1c4)](_0x43fea7,_0x529584,_0x27c6b3,_0xc21931);}}}}}[_0x41752f(0x2ef)](_0x2e2ec3,_0x44b422,_0x48c523,_0x45e137,_0x426899){const _0x54e5df=_0x41752f,_0x471b49=this[_0x54e5df(0x30c)](_0x44b422),{left:_0x2d1a7f,top:_0x63223f,height:_0x3324c1}=_0x471b49,_0x49f557=this[_0x54e5df(0x360)](),_0x155203=It/_0x49f557,_0x557c1a=new p[(_0x54e5df(0x1e0))](re+a[_0x54e5df(0x283)][_0x54e5df(0x3be)](k),{'left':_0x2d1a7f+_0x48c523-_0x155203,'top':_0x63223f+_0x45e137,'height':_0x3324c1,'width':dt,'fill':_0x2e2ec3||p[_0x54e5df(0x449)](a[_0x54e5df(0x39a)]['black'],0x0),'strokeWidth':_0x155203,'stroke':St,'evented':!0x0});this['_anchor']=_0x557c1a,this['_scene'][_0x54e5df(0x1d5)](_0x557c1a,E['TEXT_RANGE_LAYER_INDEX']);const _0x117a98=new p[(_0x54e5df(0x1e0))](re+a[_0x54e5df(0x283)][_0x54e5df(0x3be)](k),{'left':_0x2d1a7f+_0x48c523-_0x155203,'top':_0x63223f+_0x45e137-oe/0x2,'height':oe,'width':oe,'fill':_0x2e2ec3||p['getColor'](a[_0x54e5df(0x39a)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x2e2ec3||p['getColor'](a[_0x54e5df(0x39a)][_0x54e5df(0x20f)],0x0),'evented':!0x1});this[_0x54e5df(0x249)]=_0x117a98,this[_0x54e5df(0x3a9)]['addObject'](_0x117a98,E['TEXT_RANGE_LAYER_INDEX']);const _0x115a72=new ee(re+a[_0x54e5df(0x283)][_0x54e5df(0x3be)](k),{'left':_0x2d1a7f+_0x48c523-_0x155203,'top':_0x63223f+_0x45e137-K,'text':_0x426899,'color':_0x2e2ec3});this[_0x54e5df(0x2a1)]=_0x115a72,this[_0x54e5df(0x3a9)]['addObject'](_0x115a72,E[_0x54e5df(0x3e6)]),this['_hover']=!0x1;}[_0x41752f(0x346)](){const _0x2e297c=_0x41752f,_0x449b33=this['_anchor'][_0x2e297c(0x3d0)][_0x2e297c(0x3fd)](()=>{const _0x180763=_0x2e297c;this[_0x180763(0x204)]=!0x0;}),_0x548d88=this['_anchor'][_0x2e297c(0x2fc)][_0x2e297c(0x3fd)](()=>{const _0x223c90=_0x2e297c;this[_0x223c90(0x3da)]&&clearTimeout(this[_0x223c90(0x3da)]),this['_hideTimer']=setTimeout(()=>{const _0x4be9cb=_0x223c90;this[_0x4be9cb(0x204)]=!0x1;},0x7d0);});return()=>{const _0x34d8a3=_0x2e297c;_0x449b33[_0x34d8a3(0x2e9)](),_0x548d88[_0x34d8a3(0x2e9)]();};}[_0x41752f(0x1c4)](_0x589cc3,_0x14e692,_0x4d2140,_0x29c703){const _0x25e352=_0x41752f,_0x12c4e0=new a[(_0x25e352(0x365))](_0x589cc3)['setAlpha'](0.2)['toRgbString'](),_0x211812=new p[(_0x25e352(0x224))](ht+a[_0x25e352(0x283)]['generateRandomId'](k),{'pointsGroup':_0x14e692,'fill':_0x12c4e0||p[_0x25e352(0x449)](a[_0x25e352(0x39a)][_0x25e352(0x20f)],0.2),'left':_0x4d2140,'top':_0x29c703,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x25e352(0x2dd)][_0x25e352(0x3e2)](_0x211812),this['_scene'][_0x25e352(0x1d5)](_0x211812,E[_0x25e352(0x3e6)]);}['_drawRectRange'](_0x4069fc,_0x39f1e6,_0x22dd3b,_0x802e54){const _0x4815de=_0x41752f,_0x1d9992=new a['ColorKit'](_0x4069fc)[_0x4815de(0x2a5)](0.2)[_0x4815de(0x413)](),_0x3ea2d2=new p[(_0x4815de(0x224))](ut+a[_0x4815de(0x283)][_0x4815de(0x3be)](k),{'pointsGroup':_0x39f1e6,'fill':_0x1d9992||p[_0x4815de(0x449)](a[_0x4815de(0x39a)][_0x4815de(0x20f)],0.2),'left':_0x22dd3b,'top':_0x802e54,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4815de(0x2dd)][_0x4815de(0x3e2)](_0x3ea2d2),this['_scene'][_0x4815de(0x1d5)](_0x3ea2d2,E[_0x4815de(0x3e6)]);}[_0x41752f(0x30c)](_0x147757){const _0x41f2c5=_0x147757[0x0],_0x78d5f8=_0x41f2c5[0x0],_0x535c52=_0x41f2c5[0x2],{x:_0x45b3c1,y:_0x5e8665}=_0x78d5f8,{x:_0x1fcd29,y:_0x11c907}=_0x535c52;return{'left':_0x45b3c1,'top':_0x5e8665,'width':_0x1fcd29-_0x45b3c1,'height':_0x11c907-_0x5e8665};}[_0x41752f(0x360)](){const _0x51168a=_0x41752f,{scaleX:_0x5d8bfc,scaleY:_0x3edbc8}=this[_0x51168a(0x3a9)][_0x51168a(0x3e0)]();return Math[_0x51168a(0x34b)](_0x5d8bfc,_0x3edbc8);}}var ft=Object[_0x41752f(0x35e)],vt=(_0x531ded,_0x562780,_0x2c3ac8,_0x132801)=>{const _0x2b4e8f=_0x41752f;for(var _0x4677f4=_0x132801>0x1?void 0x0:_0x132801?ft(_0x562780,_0x2c3ac8):_0x562780,_0x3c4319=_0x531ded[_0x2b4e8f(0x27e)]-0x1,_0x3f1dc7;_0x3c4319>=0x0;_0x3c4319--)(_0x3f1dc7=_0x531ded[_0x3c4319])&&(_0x4677f4=_0x3f1dc7(_0x4677f4)||_0x4677f4);return _0x4677f4;},W=(_0x5f3e03,_0x5d01e8)=>(_0x47a738,_0x4297fa)=>_0x5d01e8(_0x47a738,_0x4297fa,_0x5f3e03);let fe=class extends a['RxDisposable']{constructor(_0x5b735e,_0x4f459a,_0x480c6d,_0x3fc1dc,_0xcfa5c6){const _0x5221be=_0x41752f;super(),h(this,_0x5221be(0x2a9),[]),h(this,_0x5221be(0x3a1),[]),(this[_0x5221be(0x3ae)]=_0x5b735e,this['_docSkeletonManagerService']=_0x4f459a,this['_collabCursorController']=_0x480c6d,this[_0x5221be(0x300)]=_0x3fc1dc,this['_themeService']=_0xcfa5c6,this[_0x5221be(0x201)]());}['_init'](){const _0x399a27=_0x41752f,_0x252e5a=this[_0x399a27(0x3ae)]['unitId'],_0x162afa=this[_0x399a27(0x25e)];this[_0x399a27(0x1ec)](d[_0x399a27(0x349)]([this['_collabCursorController'][_0x399a27(0x302)](_0x252e5a),this[_0x399a27(0x297)][_0x399a27(0x36f)]])['pipe']($['map'](([_0x104f18,_0x2e0646])=>({'skeleton':_0x162afa[_0x399a27(0x3fa)](),'cursors':[..._0x104f18[_0x399a27(0x304)]()][_0x399a27(0x377)](_0xecaa1e=>({..._0xecaa1e,'color':this[_0x399a27(0x297)][_0x399a27(0x3a5)](_0xecaa1e['color'])}))})))[_0x399a27(0x230)](_0x3ff90e=>{const _0x3a1134=_0x399a27;if(this[_0x3a1134(0x2a0)](),_0x3ff90e){const {skeleton:_0x85f454,cursors:_0x261336}=_0x3ff90e;this[_0x3a1134(0x32a)](_0x85f454,_0x261336);}})),this[_0x399a27(0x313)](),this[_0x399a27(0x421)]();}[_0x41752f(0x32a)](_0x3b6983,_0x5a48d2){const _0x10fe75=_0x41752f,{scene:_0x1ae3b5,mainComponent:_0x2be4e2}=this[_0x10fe75(0x3ae)],_0x3449f7=_0x5a48d2[_0x10fe75(0x3e9)](_0xed0039=>new De(_0xed0039,_0x1ae3b5,_0x3b6983,_0x2be4e2));this[_0x10fe75(0x2a9)]=_0x3449f7,this[_0x10fe75(0x3a1)]=_0x5a48d2;}[_0x41752f(0x26a)](){const _0x41618a=_0x41752f;this[_0x41618a(0x2a0)]();const {scene:_0x6905a3,mainComponent:_0x4dccbe}=this['_context'],_0xe6f0fe=this[_0x41618a(0x25e)][_0x41618a(0x3fa)](),_0x27c09c=this['_cursors']['map'](_0x33b8af=>new De(_0x33b8af,_0x6905a3,_0xe6f0fe,_0x4dccbe));this[_0x41618a(0x2a9)]=_0x27c09c;}[_0x41752f(0x2a0)](){const _0x132553=_0x41752f;this[_0x132553(0x2a9)][_0x132553(0x2be)](_0x333441=>_0x333441[_0x132553(0x438)]()),this['_cursorShapes']=[];}[_0x41752f(0x421)](){const _0x5a16d0=_0x41752f,_0x4a49b3=[E[_0x5a16d0(0x3cc)]['id']];this['disposeWithMe'](this['_commandService'][_0x5a16d0(0x30f)](_0x1b6f8a=>{const _0x75a3e9=_0x5a16d0;_0x4a49b3[_0x75a3e9(0x1da)](_0x1b6f8a['id'])&&_0x1b6f8a[_0x75a3e9(0x1ee)][_0x75a3e9(0x31c)]===this[_0x75a3e9(0x3ae)][_0x75a3e9(0x31c)]&&this['_refreshCollabCursors']();}));}[_0x41752f(0x313)](){const _0x27efe3=_0x41752f;this['disposeWithMe'](a[_0x27efe3(0x446)](this[_0x27efe3(0x3ae)]['engine'][_0x27efe3(0x2f8)])[_0x27efe3(0x42f)]($['filter'](_0x45913=>_0x45913[_0x27efe3(0x366)]===p[_0x27efe3(0x325)][_0x27efe3(0x293)]),$['throttleTime'](0x10))['subscribe'](()=>{const _0x270808=_0x27efe3;this[_0x270808(0x26a)]();}));}};fe=vt([W(0x1,a[_0x41752f(0x3bf)](Y[_0x41752f(0x32e)])),W(0x2,a[_0x41752f(0x3bf)](x)),W(0x3,a[_0x41752f(0x287)]),W(0x4,a[_0x41752f(0x3bf)](a[_0x41752f(0x332)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0x41752f(0x200)]{constructor(_0x3ca26c,_0x5a9aae){const _0x16a6de=_0x41752f;super(_0x3ca26c,_0x5a9aae),h(this,'_color'),h(this,'_hovered',!0x1),h(this,_0x16a6de(0x3ea)),h(this,_0x16a6de(0x3a6),''),h(this,_0x16a6de(0x3bd),_0x16a6de(0x280)),h(this,_0x16a6de(0x395)),(_0x5a9aae&&this[_0x16a6de(0x241)](_0x5a9aae),this['onPointerEnter$'][_0x16a6de(0x3fd)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x16a6de(0x2fc)][_0x16a6de(0x3fd)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x41752f(0x241)](_0x3ad26c){const _0x23d7ed=_0x41752f;var _0x3b17ac,_0x1ffeda,_0x1d65de,_0x59b9f2,_0x3392d6,_0x3e2afe;this[_0x23d7ed(0x351)]=(_0x3b17ac=_0x3ad26c[_0x23d7ed(0x250)])!=null?_0x3b17ac:this['_color'],this[_0x23d7ed(0x2fb)]=(_0x1ffeda=_0x3ad26c[_0x23d7ed(0x42b)])!=null?_0x1ffeda:this[_0x23d7ed(0x2fb)],this['_range']=(_0x1d65de=_0x3ad26c['range'])!=null?_0x1d65de:this[_0x23d7ed(0x3ea)],this[_0x23d7ed(0x3a6)]=(_0x59b9f2=_0x3ad26c[_0x23d7ed(0x306)])!=null?_0x59b9f2:this[_0x23d7ed(0x3a6)],this[_0x23d7ed(0x3bd)]=(_0x3392d6=_0x3ad26c['labelPosition'])!=null?_0x3392d6:this[_0x23d7ed(0x3bd)],this[_0x23d7ed(0x395)]=(_0x3e2afe=_0x3ad26c[_0x23d7ed(0x2f0)])!=null?_0x3e2afe:this['_backgroundColor'],this[_0x23d7ed(0x2b5)]({'width':_0x3ad26c[_0x23d7ed(0x27c)],'height':_0x3ad26c['height']});}[_0x41752f(0x428)](_0x39c79f){const _0x2a6fe3=_0x41752f,{row:_0x1510d4,column:_0x4513b0}=_0x39c79f;if(_0x1510d4>=this[_0x2a6fe3(0x3ea)]['startRow']&&_0x1510d4<=this[_0x2a6fe3(0x3ea)]['endRow']&&_0x4513b0>=this[_0x2a6fe3(0x3ea)]['startColumn']&&_0x4513b0<=this[_0x2a6fe3(0x3ea)]['endColumn']){this[_0x2a6fe3(0x241)]({'hovered':!0x0});return;}this[_0x2a6fe3(0x241)]({'hovered':!0x1});}[_0x41752f(0x1d9)](_0x52cc44){return!0x1;}[_0x41752f(0x2b7)](_0x537b2e){const _0x4077e8=_0x41752f;p['Rect'][_0x4077e8(0x356)](_0x537b2e,{'width':this[_0x4077e8(0x27c)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x4077e8(0x351)],'evented':!0x1,'fill':this[_0x4077e8(0x395)]}),this[_0x4077e8(0x2fb)]&&(_0x537b2e['save'](),_0x537b2e[_0x4077e8(0x3b7)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x4077e8(0x340)?0x0:-0x14),ee[_0x4077e8(0x356)](_0x537b2e,{'text':this[_0x4077e8(0x3a6)],'color':this[_0x4077e8(0x351)]}),_0x537b2e['restore']());}}var Ct=Object[_0x41752f(0x35e)],pt=(_0x31b950,_0x5b8c71,_0x305297,_0x4c8aa8)=>{const _0x2fb3f4=_0x41752f;for(var _0x54b7b0=_0x4c8aa8>0x1?void 0x0:_0x4c8aa8?Ct(_0x5b8c71,_0x305297):_0x5b8c71,_0x2c6837=_0x31b950[_0x2fb3f4(0x27e)]-0x1,_0x116892;_0x2c6837>=0x0;_0x2c6837--)(_0x116892=_0x31b950[_0x2c6837])&&(_0x54b7b0=_0x116892(_0x54b7b0)||_0x54b7b0);return _0x54b7b0;},ae=(_0x19834a,_0x1d98a1)=>(_0x331f2f,_0x4ca4fa)=>_0x1d98a1(_0x331f2f,_0x4ca4fa,_0x19834a);const Et=0x1389;let ve=class extends a[_0x41752f(0x26e)]{constructor(_0x2076e1,_0x38e60e,_0x38dc98,_0x3031f9){const _0x32ebd2=_0x41752f;super(),h(this,_0x32ebd2(0x3a1),new Set()),h(this,_0x32ebd2(0x1ce),null),(this[_0x32ebd2(0x3ae)]=_0x2076e1,this[_0x32ebd2(0x2ca)]=_0x38e60e,this[_0x32ebd2(0x23c)]=_0x38dc98,this[_0x32ebd2(0x297)]=_0x3031f9,this[_0x32ebd2(0x201)]());}[_0x41752f(0x201)](){const _0x366669=_0x41752f;this[_0x366669(0x2ca)][_0x366669(0x37d)][_0x366669(0x42f)]($[_0x366669(0x23b)](this[_0x366669(0x247)]),$[_0x366669(0x1d1)](_0x5063c7=>{const _0x27e88a=_0x366669;if(_0x5063c7){const _0x3e4b0d=_0x5063c7[_0x27e88a(0x308)];return d['combineLatest'](this[_0x27e88a(0x23c)][_0x27e88a(0x302)](this['_context'][_0x27e88a(0x31c)]),this['_themeService']['currentTheme$'])[_0x27e88a(0x42f)]($['map'](([_0xd9f268,_0x36ea04])=>{const _0x537048=_0x27e88a,_0xe02cd2=new Map();return _0xd9f268[_0x537048(0x2be)]((_0x7d384b,_0x5243de)=>{const _0x718c19=_0x537048;if(_0x7d384b[_0x718c19(0x381)]===_0x3e4b0d){const _0x4e5ad4={..._0x7d384b};_0x4e5ad4[_0x718c19(0x250)]=this[_0x718c19(0x297)][_0x718c19(0x3a5)](_0x7d384b['color']),_0xe02cd2[_0x718c19(0x409)](_0x5243de,_0x4e5ad4);}}),{'skeleton':_0x5063c7,'cursors':_0xe02cd2};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x366669(0x230)](({skeleton:_0x596eb0,cursors:_0x1f811a})=>{const _0x5d2f9d=_0x366669;this[_0x5d2f9d(0x2a0)](),_0x596eb0&&this['_updateCollabCursors'](_0x596eb0,_0x1f811a);}),this['_sheetSkeletonManagerService'][_0x366669(0x37d)][_0x366669(0x230)](_0x3e7fef=>{if(_0x3e7fef==null)return;const {skeleton:_0x4193b7}=_0x3e7fef,{scene:_0x2da166}=this['_context'];_0x2da166['onPointerMove$']['subscribeEvent'](a['debounce'](_0x14a3a7=>{const _0x4c82d0=_0x1202;var _0x563589,_0x3c175c;const {offsetX:_0x4f671d,offsetY:_0x548faf}=_0x14a3a7,{x:_0x472226,y:_0x126b36}=_0x2da166[_0x4c82d0(0x2e2)](p[_0x4c82d0(0x30d)]['FromArray']([_0x4f671d,_0x548faf])),{scaleX:_0x294e92,scaleY:_0x563a91}=_0x2da166['getAncestorScale'](),_0x46e370=_0x2da166[_0x4c82d0(0x3c0)](p[_0x4c82d0(0x398)][_0x4c82d0(0x3ad)]),_0x33c5b0=_0x2da166['getVpScrollXYInfoByPosToVp'](p[_0x4c82d0(0x30d)][_0x4c82d0(0x414)]([_0x472226,_0x126b36]),_0x46e370),_0x37d868=_0x4193b7['getCellPositionByOffset'](_0x4f671d,_0x548faf,_0x294e92,_0x563a91,_0x33c5b0);((_0x563589=this[_0x4c82d0(0x1ce)])==null?void 0x0:_0x563589[_0x4c82d0(0x2c8)])===_0x37d868[_0x4c82d0(0x2c8)]&&((_0x3c175c=this['_lastPointer'])==null?void 0x0:_0x3c175c[_0x4c82d0(0x402)])===_0x37d868[_0x4c82d0(0x402)]||this[_0x4c82d0(0x3a1)][_0x4c82d0(0x2be)](_0xedb1c4=>{const _0x50a30e=_0x4c82d0;_0xedb1c4[_0x50a30e(0x428)](_0x37d868);});},0x64));});}[_0x41752f(0x32a)](_0x275f2c,_0x2508e5){const _0x40d537=_0x41752f;var _0x2c7cba;const _0xe3cb09=(_0x2c7cba=this[_0x40d537(0x2ca)][_0x40d537(0x400)]())==null?void 0x0:_0x2c7cba['skeleton'];if(!_0xe3cb09)return;const _0xd96c9a=this[_0x40d537(0x21e)]();if(!_0xd96c9a)return;this[_0x40d537(0x3a1)]['forEach'](_0x461364=>{const _0x4fe9e5=_0x40d537;_0x461364[_0x4fe9e5(0x2c3)]();});const {scene:_0x107575}=_0xd96c9a,_0x35fc5b=bt(Array['from'](_0x2508e5[_0x40d537(0x304)]()))[_0x40d537(0x3e9)](_0x377785=>{const _0x425b02=_0x40d537,{color:_0x1225e3,range:_0x13d3cc,name:_0x5f087c,selection:_0x94e0ef,sheetID:_0x58a30c}=_0x377785,{startColumn:_0x280cd0,startRow:_0x9ca746,endColumn:_0x1b8e98,endRow:_0x18591d}=_0x13d3cc,_0x4493c6=X[_0x425b02(0x2f7)](_0x9ca746,_0x280cd0,_0x107575,_0xe3cb09),_0x1c67f1=X[_0x425b02(0x2f7)](_0x18591d,_0x1b8e98,_0x107575,_0xe3cb09),{columnHeaderHeightAndMarginTop:_0x3c3c01}=_0xe3cb09,{startX:_0x1fb100,startY:_0x251bfc}=_0x4493c6,{endX:_0x31f57c,endY:_0x574db8}=_0x1c67f1,_0x4302af=_0x31f57c-_0x1fb100,_0x2bcbb3=_0x574db8-_0x251bfc,_0x3ef3ba={'labelPosition':_0x251bfc-_0x3c3c01>=K?_0x425b02(0x280):'bottom','sheetID':_0x58a30c,'range':_0x13d3cc,'color':_0x1225e3,'name':_0x5f087c,'selection':_0x94e0ef,'left':_0x1fb100,'top':_0x251bfc,'width':_0x4302af,'height':_0x2bcbb3,'evented':!0x1,'zIndex':Et};return new we(_0x5f087c,_0x3ef3ba);});_0x107575[_0x40d537(0x3b3)](_0x35fc5b,gt),this[_0x40d537(0x3a1)]=new Set(_0x35fc5b);}[_0x41752f(0x2a0)](){const _0x4c42c9=_0x41752f;var _0x3316c5;(_0x3316c5=this['_cursors'])==null||_0x3316c5['forEach'](_0x1dec34=>_0x1dec34[_0x4c42c9(0x438)]());}[_0x41752f(0x21e)](){const _0x20e68a=_0x41752f;return X[_0x20e68a(0x362)](this[_0x20e68a(0x3ae)][_0x20e68a(0x309)],this[_0x20e68a(0x3ae)]);}};ve=pt([ae(0x1,a[_0x41752f(0x3bf)](X[_0x41752f(0x288)])),ae(0x2,a[_0x41752f(0x3bf)](x)),ae(0x3,a[_0x41752f(0x3bf)](a[_0x41752f(0x332)]))],ve);function bt(_0x4db08e){const _0xf6b27c=_0x41752f,_0x36d4b2=new Map();return _0x4db08e[_0xf6b27c(0x2be)](_0x5d958a=>{const _0x1f162d=_0xf6b27c;if(_0x36d4b2[_0x1f162d(0x2c2)](_0x5d958a[_0x1f162d(0x1ca)])){const _0x5891b8=_0x36d4b2[_0x1f162d(0x38d)](_0x5d958a[_0x1f162d(0x1ca)]);_0x5891b8['name']+=',\x20'+_0x5d958a['name'];}else _0x36d4b2[_0x1f162d(0x409)](_0x5d958a['selection'],_0x5d958a);}),Array[_0xf6b27c(0x2ac)](_0x36d4b2['values']());}var b=function(){const _0x100303=_0x41752f;return b=Object[_0x100303(0x223)]||function(_0x4c2410){const _0x341035=_0x100303;for(var _0x448753,_0x2089f6=0x1,_0x1fc7e5=arguments[_0x341035(0x27e)];_0x2089f6<_0x1fc7e5;_0x2089f6++){_0x448753=arguments[_0x2089f6];for(var _0x23bf0c in _0x448753)Object[_0x341035(0x38c)][_0x341035(0x25a)][_0x341035(0x244)](_0x448753,_0x23bf0c)&&(_0x4c2410[_0x23bf0c]=_0x448753[_0x23bf0c]);}return _0x4c2410;},b[_0x100303(0x211)](this,arguments);},Ot=function(_0x27a126,_0x31749c){const _0x339c6e=_0x41752f;var _0x151c72={};for(var _0x56e11c in _0x27a126)Object[_0x339c6e(0x38c)][_0x339c6e(0x25a)][_0x339c6e(0x244)](_0x27a126,_0x56e11c)&&_0x31749c['indexOf'](_0x56e11c)<0x0&&(_0x151c72[_0x56e11c]=_0x27a126[_0x56e11c]);if(_0x27a126!=null&&typeof Object[_0x339c6e(0x1fe)]==_0x339c6e(0x30e)){for(var _0x380aad=0x0,_0x56e11c=Object[_0x339c6e(0x1fe)](_0x27a126);_0x380aad<_0x56e11c['length'];_0x380aad++)_0x31749c[_0x339c6e(0x2f5)](_0x56e11c[_0x380aad])<0x0&&Object['prototype'][_0x339c6e(0x3bc)][_0x339c6e(0x244)](_0x27a126,_0x56e11c[_0x380aad])&&(_0x151c72[_0x56e11c[_0x380aad]]=_0x27a126[_0x56e11c[_0x380aad]]);}return _0x151c72;},pe=M[_0x41752f(0x1f1)](function(_0x5f3942,_0x162d1e){const _0xc2fdbb=_0x41752f;var _0x27746e=_0x5f3942[_0xc2fdbb(0x432)],_0x5b4fa1=_0x5f3942['id'],_0x55393c=_0x5f3942[_0xc2fdbb(0x363)],_0x46f53f=_0x5f3942[_0xc2fdbb(0x38f)],_0x393f87=Ot(_0x5f3942,[_0xc2fdbb(0x432),'id',_0xc2fdbb(0x363),_0xc2fdbb(0x38f)]),_0x75eafe=_0xc2fdbb(0x273)[_0xc2fdbb(0x399)](_0x5b4fa1,'\x20')[_0xc2fdbb(0x399)](_0x55393c||'')['trim'](),_0x48f48a=M[_0xc2fdbb(0x41c)]('_'['concat'](Dt()));return Ae(_0x27746e,''['concat'](_0x5b4fa1),{'defIds':_0x27746e['defIds'],'idSuffix':_0x48f48a['current']},b({'ref':_0x162d1e,'className':_0x75eafe},_0x393f87),_0x46f53f);});function Ae(_0x44a049,_0x5e9806,_0x349d2f,_0x50f8b0,_0x4f2a0f){const _0x205239=_0x41752f;return M[_0x205239(0x2af)](_0x44a049[_0x205239(0x3fb)],b(b({'key':_0x5e9806},Tt(_0x44a049,_0x349d2f,_0x4f2a0f)),_0x50f8b0),(Rt(_0x44a049,_0x349d2f)[_0x205239(0x373)]||[])[_0x205239(0x3e9)](function(_0x13cc3d,_0x3af629){const _0x210c02=_0x205239;return Ae(_0x13cc3d,''['concat'](_0x5e9806,'-')[_0x210c02(0x399)](_0x44a049[_0x210c02(0x3fb)],'-')['concat'](_0x3af629),_0x349d2f,void 0x0,_0x4f2a0f);}));}function Tt(_0xd670a5,_0x48addc,_0x216bab){const _0x5e9377=_0x41752f;var _0x249c26=b({},_0xd670a5[_0x5e9377(0x22a)]);_0x216bab!=null&&_0x216bab[_0x5e9377(0x292)]&&_0x249c26[_0x5e9377(0x322)]==='colorChannel1'&&(_0x249c26[_0x5e9377(0x322)]=_0x216bab[_0x5e9377(0x292)]),_0xd670a5['tag']===_0x5e9377(0x3de)&&_0x249c26['id']&&(_0x249c26['id']=_0x249c26['id']+_0x48addc[_0x5e9377(0x1c1)]),Object['entries'](_0x249c26)[_0x5e9377(0x2be)](function(_0x4c46bf){const _0x1a171b=_0x5e9377;var _0x2f9775=_0x4c46bf[0x0],_0x1f819f=_0x4c46bf[0x1];_0x2f9775==='mask'&&typeof _0x1f819f==_0x1a171b(0x30b)&&(_0x249c26[_0x2f9775]=_0x1f819f[_0x1a171b(0x29c)](/url\(#(.*)\)/,_0x1a171b(0x227)[_0x1a171b(0x399)](_0x48addc['idSuffix'],')')));});var _0x446877=_0x48addc[_0x5e9377(0x2a7)];return!_0x446877||_0x446877[_0x5e9377(0x27e)]===0x0||(_0xd670a5[_0x5e9377(0x3fb)]==='use'&&_0x249c26['xlink:href']&&(_0x249c26[_0x5e9377(0x21d)]=_0x249c26[_0x5e9377(0x21d)]+_0x48addc['idSuffix']),Object[_0x5e9377(0x420)](_0x249c26)['forEach'](function(_0x32d6f6){const _0x2de995=_0x5e9377;var _0x6fcfb4=_0x32d6f6[0x0],_0x40c374=_0x32d6f6[0x1];typeof _0x40c374==_0x2de995(0x30b)&&(_0x249c26[_0x6fcfb4]=_0x40c374[_0x2de995(0x29c)](/url\(#(.*)\)/,_0x2de995(0x227)['concat'](_0x48addc[_0x2de995(0x1c1)],')')));})),_0x249c26;}function Rt(_0x18ed10,_0x226c68){const _0x421c39=_0x41752f;var _0x547291,_0xd87e0e=_0x226c68[_0x421c39(0x2a7)];return!_0xd87e0e||_0xd87e0e[_0x421c39(0x27e)]===0x0?_0x18ed10:_0x18ed10[_0x421c39(0x3fb)]===_0x421c39(0x2fd)&&(!((_0x547291=_0x18ed10[_0x421c39(0x373)])===null||_0x547291===void 0x0)&&_0x547291[_0x421c39(0x27e)])?b(b({},_0x18ed10),{'children':_0x18ed10[_0x421c39(0x373)]['map'](function(_0x3ea097){const _0x13ed55=_0x421c39;return typeof _0x3ea097[_0x13ed55(0x22a)]['id']==_0x13ed55(0x30b)&&_0xd87e0e&&_0xd87e0e[_0x13ed55(0x1da)](_0x3ea097[_0x13ed55(0x22a)]['id'])?b(b({},_0x3ea097),{'attrs':b(b({},_0x3ea097['attrs']),{'id':_0x3ea097[_0x13ed55(0x22a)]['id']+_0x226c68[_0x13ed55(0x1c1)]})}):_0x3ea097;})}):_0x18ed10;}function Dt(){const _0x5884cf=_0x41752f;return Math[_0x5884cf(0x380)]()[_0x5884cf(0x350)](0x24)[_0x5884cf(0x28a)](0x2,0x8);}pe['displayName']=_0x41752f(0x2bc);var Ut={'tag':_0x41752f(0x348),'attrs':{'xmlns':_0x41752f(0x38b),'fill':_0x41752f(0x1cb),'viewBox':_0x41752f(0x3c3),'width':_0x41752f(0x33a),'height':_0x41752f(0x33a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x41752f(0x445),'attrs':{'stroke':_0x41752f(0x22f),'d':_0x41752f(0x324),'strokeLinecap':_0x41752f(0x22e),'strokeLinejoin':_0x41752f(0x22e),'strokeWidth':1.2}}]},{'tag':_0x41752f(0x2fd),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x41752f(0x2bb)},'children':[{'tag':_0x41752f(0x445),'attrs':{'fill':_0x41752f(0x342),'d':_0x41752f(0x1e5)}}]}]}],'defIds':[_0x41752f(0x2bb)]},ye=M[_0x41752f(0x1f1)](function(_0x1ddf29,_0x440fc2){const _0x51d242=_0x41752f;return M[_0x51d242(0x2af)](pe,Object[_0x51d242(0x223)]({},_0x1ddf29,{'id':_0x51d242(0x25b),'ref':_0x440fc2,'icon':Ut}));});ye[_0x41752f(0x25c)]=_0x41752f(0x311);var Nt={'tag':_0x41752f(0x348),'attrs':{'xmlns':_0x41752f(0x38b),'fill':_0x41752f(0x1cb),'viewBox':_0x41752f(0x321),'width':_0x41752f(0x33a),'height':_0x41752f(0x33a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x41752f(0x22f),'d':_0x41752f(0x2b4),'strokeLinecap':'round','strokeLinejoin':_0x41752f(0x22e),'strokeWidth':1.2}}]},{'tag':_0x41752f(0x2fd),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x41752f(0x2d8)},'children':[{'tag':_0x41752f(0x445),'attrs':{'fill':_0x41752f(0x342),'d':_0x41752f(0x1e5),'transform':'translate(.97)'}}]}]}],'defIds':[_0x41752f(0x2d8)]},$e=M[_0x41752f(0x1f1)](function(_0x441655,_0x24163c){const _0x1b4421=_0x41752f;return M['createElement'](pe,Object[_0x1b4421(0x223)]({},_0x441655,{'id':_0x1b4421(0x3ac),'ref':_0x24163c,'icon':Nt}));});$e[_0x41752f(0x25c)]=_0x41752f(0x38a);function Mt(_0x488339){const _0xca0be8=_0x41752f;switch(_0x488339){case u['CollaborationStatus'][_0xca0be8(0x34e)]:return _0xca0be8(0x384);case u[_0xca0be8(0x1fd)][_0xca0be8(0x3a3)]:return _0xca0be8(0x427);case u[_0xca0be8(0x1fd)][_0xca0be8(0x426)]:return _0xca0be8(0x220);case u[_0xca0be8(0x1fd)][_0xca0be8(0x240)]:return'collabStatus.notCollab';case u['CollaborationStatus']['AWAITING']:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0xca0be8(0x1f5);case u[_0xca0be8(0x1fd)][_0xca0be8(0x231)]:case u[_0xca0be8(0x1fd)][_0xca0be8(0x285)]:return _0xca0be8(0x2c5);}}function xe(_0xe8eda1){const _0x272a48=_0x41752f,{status$:_0x4bb1e1}=_0xe8eda1,_0x5a57f5=O[_0x272a48(0x215)](_0x4bb1e1,u[_0x272a48(0x1fd)][_0x272a48(0x240)]),_0x14bbf8=O[_0x272a48(0x2e0)](a[_0x272a48(0x277)]),_0x21fbf6=O[_0x272a48(0x2e0)](u[_0x272a48(0x2a3)]),_0x53f25d=_0x5a57f5!==u['CollaborationStatus']['OFFLINE'],_0x4b971e=_0x14bbf8['t'](Mt(_0x5a57f5)),_0x569ec8=_0x53f25d?P[_0x272a48(0x3e5)]($e,{}):P[_0x272a48(0x3e5)](ye,{}),_0x4f93c0=M['useCallback'](()=>{_0x53f25d||_0x21fbf6['reconnect']();},[_0x53f25d,_0x21fbf6]);function _0x192e15(){const _0x62a490=_0x272a48;return P[_0x62a490(0x386)](_0x62a490(0x27a),{'className':_0x62a490(0x327),'onClick':_0x4f93c0,'children':[P[_0x62a490(0x3e5)]('div',{'className':D[_0x62a490(0x1f3)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x53f25d,'univer-text-red-500':!_0x53f25d}),'children':_0x569ec8}),P['jsx'](_0x62a490(0x27a),{'className':_0x62a490(0x2f1),'children':_0x4b971e})]});}return _0x53f25d?_0x192e15():P[_0x272a48(0x3e5)](D[_0x272a48(0x3eb)],{'title':_0x14bbf8['t'](_0x272a48(0x243)),'children':_0x192e15()});}var Lt=Object[_0x41752f(0x35e)],Pt=(_0x4d7726,_0x5e1097,_0x132088,_0x2152d1)=>{const _0x3f4545=_0x41752f;for(var _0x50e0ba=_0x2152d1>0x1?void 0x0:_0x2152d1?Lt(_0x5e1097,_0x132088):_0x5e1097,_0x5e91aa=_0x4d7726[_0x3f4545(0x27e)]-0x1,_0x2eda88;_0x5e91aa>=0x0;_0x5e91aa--)(_0x2eda88=_0x4d7726[_0x5e91aa])&&(_0x50e0ba=_0x2eda88(_0x50e0ba)||_0x50e0ba);return _0x50e0ba;},V=(_0x5021c9,_0x119d1c)=>(_0x546546,_0x5c0b08)=>_0x119d1c(_0x546546,_0x5c0b08,_0x5021c9);exports[_0x41752f(0x32f)]=class extends a['Disposable']{constructor(_0x588012,_0x210a23,_0x58d29e,_0x36410d){const _0x5db5b=_0x41752f;super(),h(this,_0x5db5b(0x3c7),new d['BehaviorSubject'](u['CollaborationStatus'][_0x5db5b(0x240)])),(this['_univerInstanceService']=_0x588012,this[_0x5db5b(0x31b)]=_0x210a23,this[_0x5db5b(0x278)]=_0x58d29e,this[_0x5db5b(0x217)]=_0x36410d,this[_0x5db5b(0x40b)](),this[_0x5db5b(0x3b1)]());}[_0x41752f(0x3b1)](){const _0x147f00=_0x41752f;this['disposeWithMe'](this[_0x147f00(0x251)][_0x147f00(0x3b9)][_0x147f00(0x42f)](d[_0x147f00(0x1d1)](()=>{const _0x829255=_0x147f00,_0x48c2d0=this[_0x829255(0x251)][_0x829255(0x408)]();return _0x48c2d0?this[_0x829255(0x278)][_0x829255(0x331)](_0x48c2d0['getUnitId']()):d['of'](null);}),d['switchMap'](_0x2b0ee9=>_0x2b0ee9?_0x2b0ee9[_0x147f00(0x2e7)]:d['of'](u['CollaborationStatus'][_0x147f00(0x240)])))[_0x147f00(0x230)](_0x30508b=>{const _0x4e19a2=_0x147f00;this[_0x4e19a2(0x3c7)][_0x4e19a2(0x3e1)](_0x30508b);}));}[_0x41752f(0x40b)](){const _0x56e7ce=_0x41752f;this[_0x56e7ce(0x1ec)](this[_0x56e7ce(0x217)]['registerComponent'](O[_0x56e7ce(0x284)][_0x56e7ce(0x2bd)],()=>O[_0x56e7ce(0x439)](wt({'status$':this['_status$'][_0x56e7ce(0x3f7)]()}),this['_injector'])));}},exports[_0x41752f(0x32f)]=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x41752f(0x2df)])),V(0x2,a[_0x41752f(0x3bf)](u[_0x41752f(0x333)])),V(0x3,O[_0x41752f(0x334)])],exports['DesktopCollaborationStatusDisplayController']);function wt(_0x45ae17){const {status$:_0x4dd73f}=_0x45ae17;return function(){return P['jsx'](xe,{'status$':_0x4dd73f});};}var At=Object[_0x41752f(0x35e)],yt=(_0x3f577b,_0x3db894,_0x5be054,_0x56283e)=>{const _0x173596=_0x41752f;for(var _0x321f3a=_0x56283e>0x1?void 0x0:_0x56283e?At(_0x3db894,_0x5be054):_0x3db894,_0x4d36ca=_0x3f577b[_0x173596(0x27e)]-0x1,_0x1c4c90;_0x4d36ca>=0x0;_0x4d36ca--)(_0x1c4c90=_0x3f577b[_0x4d36ca])&&(_0x321f3a=_0x1c4c90(_0x321f3a)||_0x321f3a);return _0x321f3a;},y=(_0xc127c6,_0xb7c85f)=>(_0x253ff8,_0x2ea016)=>_0xb7c85f(_0x253ff8,_0x2ea016,_0xc127c6);let q=class extends a[_0x41752f(0x2ed)]{constructor(_0x59b3cc,_0x343a20,_0x1943d4,_0x41a5e6,_0x39014d,_0x51c2f2){const _0x121211=_0x41752f;super(),this[_0x121211(0x1f6)]=_0x59b3cc,this[_0x121211(0x28d)]=_0x343a20,this['_collaborationUIEventService']=_0x1943d4,this[_0x121211(0x29f)]=_0x41a5e6,this[_0x121211(0x1c2)]=_0x39014d,this['_localeService']=_0x51c2f2,this[_0x121211(0x312)](),this[_0x121211(0x25f)]();}[_0x41752f(0x312)](){const _0x2c94c8=_0x41752f;this[_0x2c94c8(0x1ec)](this[_0x2c94c8(0x1f6)]['registerBeforeClose'](()=>{const _0x1f28f8=_0x2c94c8;if(this['_localCacheService'][_0x1f28f8(0x26b)]['size'])return this[_0x1f28f8(0x24a)]['t'](_0x1f28f8(0x2e1));}));}[_0x41752f(0x25f)](){const _0xa21ee0=_0x41752f;this[_0xa21ee0(0x1ec)](this[_0xa21ee0(0x248)][_0xa21ee0(0x393)][_0xa21ee0(0x230)](_0x1bbba3=>{const _0x5876a9=_0xa21ee0;_0x1bbba3['id']===u[_0x5876a9(0x2ae)][_0x5876a9(0x39d)]&&this[_0x5876a9(0x29f)][_0x5876a9(0x36b)]({'type':D[_0x5876a9(0x41e)][_0x5876a9(0x415)],'content':this['_localeService']['t'](_0x5876a9(0x3ce))}),_0x1bbba3['id']===u[_0x5876a9(0x2ae)][_0x5876a9(0x27d)]&&this['_messageService'][_0x5876a9(0x36b)]({'type':D[_0x5876a9(0x41e)]['Warning'],'content':this['_localeService']['t'](_0x5876a9(0x433))}),_0x1bbba3['id']===u[_0x5876a9(0x2ae)]['PERMISSION_DENIED']&&this[_0x5876a9(0x1c2)][_0x5876a9(0x36b)]({'title':this[_0x5876a9(0x24a)]['t'](_0x5876a9(0x20e)),'content':this[_0x5876a9(0x24a)]['t'](_0x5876a9(0x2d4)),'type':_0x5876a9(0x2c6),'duration':0x0}),_0x1bbba3['id']===u[_0x5876a9(0x2ae)][_0x5876a9(0x3a3)]&&this[_0x5876a9(0x29f)][_0x5876a9(0x36b)]({'type':D[_0x5876a9(0x41e)][_0x5876a9(0x37f)],'content':this[_0x5876a9(0x24a)]['t'](_0x5876a9(0x433))+'('+_0x1bbba3['data']+')'}),_0x1bbba3['id']===u['CollaborationUIEventId'][_0x5876a9(0x2aa)]&&this[_0x5876a9(0x29f)][_0x5876a9(0x36b)]({'type':D[_0x5876a9(0x41e)][_0x5876a9(0x415)],'content':this[_0x5876a9(0x24a)]['t'](_0x1bbba3[_0x5876a9(0x2cb)]||'')}),_0x1bbba3['id']===u[_0x5876a9(0x2ae)][_0x5876a9(0x3c6)]&&this['_messageService'][_0x5876a9(0x36b)]({'type':D[_0x5876a9(0x41e)][_0x5876a9(0x415)],'content':this[_0x5876a9(0x24a)]['t'](_0x5876a9(0x418))}),_0x1bbba3['id']===u['CollaborationUIEventId'][_0x5876a9(0x3e7)]&&this[_0x5876a9(0x29f)]['show']({'type':D[_0x5876a9(0x41e)][_0x5876a9(0x37f)],'content':this[_0x5876a9(0x24a)]['t'](_0x5876a9(0x3f8))}),_0x1bbba3['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5876a9(0x29f)][_0x5876a9(0x36b)]({'type':D['MessageType']['Error'],'content':this[_0x5876a9(0x24a)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,O[_0x41752f(0x3ef)]),y(0x1,u[_0x41752f(0x412)]),y(0x2,a[_0x41752f(0x3bf)](u[_0x41752f(0x41f)])),y(0x3,O[_0x41752f(0x1c3)]),y(0x4,O['INotificationService']),y(0x5,a[_0x41752f(0x3bf)](a[_0x41752f(0x277)]))],q);const $t=_0x41752f(0x276),Ue={},Ee=a[_0x41752f(0x3b4)](_0x41752f(0x261));var xt=Object[_0x41752f(0x35e)],Bt=(_0x2a20f0,_0x3c2f54,_0xd22408,_0x3a19ce)=>{const _0x1fe498=_0x41752f;for(var _0x432323=_0x3a19ce>0x1?void 0x0:_0x3a19ce?xt(_0x3c2f54,_0xd22408):_0x3c2f54,_0x9762cf=_0x2a20f0[_0x1fe498(0x27e)]-0x1,_0x1b1696;_0x9762cf>=0x0;_0x9762cf--)(_0x1b1696=_0x2a20f0[_0x9762cf])&&(_0x432323=_0x1b1696(_0x432323)||_0x432323);return _0x432323;},F=(_0x4d2773,_0xf49853)=>(_0x87493a,_0x3287cf)=>_0xf49853(_0x87493a,_0x3287cf,_0x4d2773);exports[_0x41752f(0x228)]=class extends a[_0x41752f(0x26e)]{constructor(_0x5c3ee4,_0x35048f,_0x4ace78,_0x40c9f2,_0x24c7f6){const _0x2409d3=_0x41752f;super(),this[_0x2409d3(0x35d)]=_0x5c3ee4,this[_0x2409d3(0x271)]=_0x35048f,this[_0x2409d3(0x300)]=_0x4ace78,this[_0x2409d3(0x203)]=_0x40c9f2,_0x24c7f6?_0x24c7f6==null||_0x24c7f6['whenReady']()[_0x2409d3(0x3fc)](()=>this[_0x2409d3(0x201)]()):(this['_logService'][_0x2409d3(0x1eb)](_0x2409d3(0x21f),_0x2409d3(0x419)),this[_0x2409d3(0x201)]());}async[_0x41752f(0x201)](){const _0x38cb28=_0x41752f,_0x4047ed=this[_0x38cb28(0x35d)][_0x38cb28(0x43d)](_0x38cb28(0x309)),_0x44a94b=this[_0x38cb28(0x35d)]['getParam']('type'),_0x7dbb52=this[_0x38cb28(0x35d)][_0x38cb28(0x43d)](_0x38cb28(0x441));if(!_0x4047ed||!_0x44a94b){this['_logService'][_0x38cb28(0x1eb)](_0x38cb28(0x21f),_0x38cb28(0x1f4));return;}const _0x1abd18=await this[_0x38cb28(0x203)]['loadUnit'](_0x4047ed,Number(_0x44a94b),_0x7dbb52);_0x1abd18&&_0x1abd18 instanceof a[_0x38cb28(0x440)]&&this[_0x38cb28(0x24d)](_0x1abd18);}async[_0x41752f(0x24d)](_0x531e70){const _0x227b44=_0x41752f;await this[_0x227b44(0x232)](_0x531e70),_0x531e70[_0x227b44(0x28c)][_0x227b44(0x42f)](d[_0x227b44(0x23b)](this[_0x227b44(0x247)]))['subscribe'](_0x567122=>{const _0x175a40=_0x227b44;_0x567122&&this[_0x175a40(0x2f3)](_0x567122);}),this[_0x227b44(0x35d)]['urlChange$'][_0x227b44(0x42f)](d[_0x227b44(0x23b)](this[_0x227b44(0x247)]))[_0x227b44(0x230)](()=>this[_0x227b44(0x232)](_0x531e70));}[_0x41752f(0x2f3)](_0x4c569a,_0x4b4a71=!0x1){const _0x1e8ff5=_0x41752f,_0x5da639=this[_0x1e8ff5(0x35d)][_0x1e8ff5(0x43d)](_0x1e8ff5(0x441));_0x4c569a['getSheetId']()!==_0x5da639&&this[_0x1e8ff5(0x35d)][_0x1e8ff5(0x264)](_0x1e8ff5(0x441),_0x4c569a['getSheetId'](),_0x4b4a71);}async[_0x41752f(0x232)](_0xcb982d){const _0x56c5b2=_0x41752f;var _0x5cd76d;const _0x4866ac=this[_0x56c5b2(0x35d)][_0x56c5b2(0x43d)]('subunit');if(!_0x4866ac||!_0xcb982d['getSheetBySheetId'](_0x4866ac)){const _0x4867c2=_0xcb982d[_0x56c5b2(0x347)]()[0x0],_0x4c391e=_0xcb982d[_0x56c5b2(0x1d4)](_0x4867c2);if(!_0x4c391e)return;this[_0x56c5b2(0x2f3)](_0x4c391e,!0x0),await this[_0x56c5b2(0x300)][_0x56c5b2(0x388)](g[_0x56c5b2(0x3ed)]['id'],{'unitId':_0xcb982d[_0x56c5b2(0x335)](),'subUnitId':_0x4867c2});return;}((_0x5cd76d=_0xcb982d['getActiveSheet']())==null?void 0x0:_0x5cd76d[_0x56c5b2(0x40a)]())!==_0x4866ac&&await this[_0x56c5b2(0x300)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0xcb982d[_0x56c5b2(0x335)](),'subUnitId':_0x4866ac});}},exports['CollaborationDataLoaderController']=Bt([F(0x0,Ee),F(0x1,a[_0x41752f(0x3d4)]),F(0x2,a[_0x41752f(0x287)]),F(0x3,a[_0x41752f(0x3bf)](u['DataLoaderService'])),F(0x4,a[_0x41752f(0x2b9)](Ke[_0x41752f(0x1e7)]))],exports['CollaborationDataLoaderController']);var jt=Object[_0x41752f(0x35e)],kt=(_0x2a5465,_0x4b6857,_0x1c6476,_0xdce0ab)=>{for(var _0x5ebbaa=_0xdce0ab>0x1?void 0x0:_0xdce0ab?jt(_0x4b6857,_0x1c6476):_0x4b6857,_0x13e902=_0x2a5465['length']-0x1,_0xa21ec;_0x13e902>=0x0;_0x13e902--)(_0xa21ec=_0x2a5465[_0x13e902])&&(_0x5ebbaa=_0xa21ec(_0x5ebbaa)||_0x5ebbaa);return _0x5ebbaa;},ce=(_0x3cafdf,_0x2c8f09)=>(_0x4e72f8,_0xe48f11)=>_0x2c8f09(_0x4e72f8,_0xe48f11,_0x3cafdf);function _0x1202(_0x4b9944,_0x311e8f){const _0x5f08cd=_0x5f08();return _0x1202=function(_0x1202d2,_0x2ae717){_0x1202d2=_0x1202d2-0x1c1;let _0x278c02=_0x5f08cd[_0x1202d2];return _0x278c02;},_0x1202(_0x4b9944,_0x311e8f);}let z=class{constructor(_0x5051fd,_0x21d826,_0xdca390){const _0x2e13eb=_0x41752f;this['_injector']=_0x5051fd,this[_0x2e13eb(0x263)]=_0x21d826,this['_renderManagerService']=_0xdca390;}[_0x41752f(0x34d)](_0x3790ce){const _0x501ead=_0x41752f;this['_transformUndoRedoStack'](_0x3790ce),this[_0x501ead(0x41b)](_0x3790ce);}[_0x41752f(0x3f0)](_0x4f630c){const _0x38350f=_0x41752f,{unitID:_0x5c2e21}=_0x4f630c,_0x2169f1=this['_renderManagerService'][_0x38350f(0x448)](_0x5c2e21)[_0x38350f(0x3d3)](E[_0x38350f(0x2ff)]),{redoCache:_0x268097}=_0x2169f1[_0x38350f(0x2fa)]();if(_0x268097['length']===0x0)return _0x4f630c;let _0x40ca91=a[_0x38350f(0x283)][_0x38350f(0x2b8)](_0x4f630c[_0x38350f(0x225)][0x0]);for(let _0x2c6fbc=0x0;_0x2c6fbc<_0x268097[_0x38350f(0x27e)];_0x2c6fbc++){const _0x18d1d4={'id':_0x38350f(0x369),'params':{..._0x268097[_0x2c6fbc]}},_0x198b04=this[_0x38350f(0x263)]['transformMutation'](_0x40ca91,_0x18d1d4,!0x1);if(m[_0x38350f(0x28f)](_0x198b04))throw _0x198b04[_0x38350f(0x2c6)];_0x40ca91=_0x198b04[_0x38350f(0x43e)];}return{...a['Tools'][_0x38350f(0x2b8)](_0x4f630c),'mutations':[_0x40ca91]};}['_transformUndoRedoStack'](_0x4583ce){const _0x274695=_0x41752f,{unitID:_0x506c74}=_0x4583ce,_0x484ac2=this[_0x274695(0x256)]['getRenderById'](_0x506c74)[_0x274695(0x3d3)](E[_0x274695(0x2ff)]),{undoCache:_0x590129,redoCache:_0x2cd35d}=_0x484ac2[_0x274695(0x2fa)]();if(_0x590129[_0x274695(0x27e)]===0x0||_0x2cd35d[_0x274695(0x27e)]===0x0)return;const _0x1a9ca4=[],_0x255247=[];let _0x5dd4bf=a[_0x274695(0x283)][_0x274695(0x2b8)](_0x4583ce[_0x274695(0x225)][0x0]),_0x316335=a[_0x274695(0x283)][_0x274695(0x2b8)](_0x4583ce['mutations'][0x0]);for(let _0x2cebca=_0x590129['length']-0x1;_0x2cebca>=0x0;_0x2cebca--){const _0x15fb67={'id':'doc.mutation.rich-text-editing','params':{..._0x590129[_0x2cebca]}},_0x3c2443={'id':'doc.mutation.rich-text-editing','params':{..._0x2cd35d[_0x2cebca]}},_0xc7b368=this[_0x274695(0x263)][_0x274695(0x447)](_0x5dd4bf,_0x15fb67,!0x1),_0x18752d=this[_0x274695(0x263)][_0x274695(0x447)](_0x316335,_0x3c2443,!0x1);if(m['isTransformMutationFailure'](_0xc7b368))throw _0xc7b368[_0x274695(0x2c6)];if(m[_0x274695(0x28f)](_0x18752d))throw _0x18752d[_0x274695(0x2c6)];_0x1a9ca4[_0x274695(0x40d)](_0xc7b368[_0x274695(0x434)][_0x274695(0x1ee)]),_0x255247[_0x274695(0x40d)](_0x18752d[_0x274695(0x434)]['params']),_0x5dd4bf=_0xc7b368['m1Prime'],_0x316335=_0x18752d[_0x274695(0x43e)];}_0x484ac2[_0x274695(0x320)]({'undoCache':_0x1a9ca4,'redoCache':_0x255247});}[_0x41752f(0x41b)](_0x173a95){const _0x321cc4=_0x41752f,{unitID:_0x3e1ac1}=_0x173a95,_0x2b4dca=this[_0x321cc4(0x256)][_0x321cc4(0x448)](_0x3e1ac1)[_0x321cc4(0x3d3)](E[_0x321cc4(0x2ff)]),_0x304547=_0x2b4dca[_0x321cc4(0x2e5)]();if(_0x304547==null)return;const _0x2affef=[{'id':_0x321cc4(0x369),'params':{'unitId':_0x173a95[_0x321cc4(0x23a)],'actions':null,'textRanges':[_0x304547]}}],_0x42230d=this[_0x321cc4(0x263)][_0x321cc4(0x2ec)](_0x173a95,_0x2affef);if(!m[_0x321cc4(0x24e)](_0x42230d))throw _0x42230d['error'];const _0x266de2=_0x42230d[_0x321cc4(0x434)][0x0][_0x321cc4(0x1ee)][_0x321cc4(0x3e3)];Array[_0x321cc4(0x3bb)](_0x266de2)&&_0x266de2[_0x321cc4(0x27e)]&&_0x2b4dca[_0x321cc4(0x344)](_0x266de2[0x0]);}};z=kt([ce(0x0,a[_0x41752f(0x3bf)](a[_0x41752f(0x2df)])),ce(0x1,m[_0x41752f(0x3ec)]),ce(0x2,p['IRenderManagerService'])],z);var Ft=Object[_0x41752f(0x35e)],Ht=(_0x79027,_0x5dfa2f,_0xa6f81a,_0x5d42a9)=>{const _0x2529bd=_0x41752f;for(var _0x1da9c6=_0x5d42a9>0x1?void 0x0:_0x5d42a9?Ft(_0x5dfa2f,_0xa6f81a):_0x5dfa2f,_0x44b43b=_0x79027[_0x2529bd(0x27e)]-0x1,_0x23d962;_0x44b43b>=0x0;_0x44b43b--)(_0x23d962=_0x79027[_0x44b43b])&&(_0x1da9c6=_0x23d962(_0x1da9c6)||_0x1da9c6);return _0x1da9c6;},le=(_0x1be423,_0x4bc85e)=>(_0x161a53,_0x232800)=>_0x4bc85e(_0x161a53,_0x232800,_0x1be423);let J=class{constructor(_0x33ff14,_0xf11b92,_0x3cbd47){const _0x2bbb9e=_0x41752f;this[_0x2bbb9e(0x31b)]=_0x33ff14,this[_0x2bbb9e(0x263)]=_0xf11b92,this['_docStateChangeManagerService']=_0x3cbd47;}[_0x41752f(0x382)](_0x52bb81){this['_transformHistoryAndStateStack'](_0x52bb81);}[_0x41752f(0x3f0)](_0x3f1add){const _0x2bc348=_0x41752f,{unitID:_0x421b9f}=_0x3f1add,{collaboration:_0x5b44c9}=this['_docStateChangeManagerService'][_0x2bc348(0x2e3)](_0x421b9f);if(_0x5b44c9[_0x2bc348(0x27e)]===0x0)return _0x3f1add;let _0x54d2d1=a[_0x2bc348(0x283)]['deepClone'](_0x3f1add[_0x2bc348(0x225)][0x0]);for(let _0x1061bc=0x0;_0x1061bc<_0x5b44c9['length'];_0x1061bc++){const _0xd2e77d={'id':_0x2bc348(0x369),'params':{'unitId':_0x5b44c9[_0x1061bc][_0x2bc348(0x31c)],..._0x5b44c9[_0x1061bc][_0x2bc348(0x376)]}},_0x497b0c=this['_transformService'][_0x2bc348(0x447)](_0x54d2d1,_0xd2e77d,!0x1);if(m[_0x2bc348(0x28f)](_0x497b0c))throw _0x497b0c[_0x2bc348(0x2c6)];_0x54d2d1=_0x497b0c['m1Prime'];}return{...a['Tools'][_0x2bc348(0x2b8)](_0x3f1add),'mutations':[_0x54d2d1]};}[_0x41752f(0x3dd)](_0x467b7f){const _0x42495f=_0x41752f,{unitID:_0x5c8c9f}=_0x467b7f,{history:_0x8d228,collaboration:_0x330c84}=this[_0x42495f(0x390)][_0x42495f(0x2e3)](_0x5c8c9f);if(_0x8d228['length']===0x0&&_0x330c84[_0x42495f(0x27e)]===0x0)return;const _0x3751c3=[],_0x3b6708=[];let _0x1bd738=a[_0x42495f(0x283)][_0x42495f(0x2b8)](_0x467b7f['mutations'][0x0]),_0xcc2d3a=a['Tools'][_0x42495f(0x2b8)](_0x467b7f['mutations'][0x0]);for(let _0x3d4f2f=_0x8d228[_0x42495f(0x27e)]-0x1;_0x3d4f2f>=0x0;_0x3d4f2f--){const _0x44eba1={'id':_0x42495f(0x369),'params':{'unitId':_0x8d228[_0x3d4f2f]['unitId'],..._0x8d228[_0x3d4f2f][_0x42495f(0x26c)]}},_0x50ec80={'id':_0x42495f(0x369),'params':{'unitId':_0x8d228[_0x3d4f2f][_0x42495f(0x31c)],..._0x8d228[_0x3d4f2f][_0x42495f(0x376)]}},_0x240a3c=this[_0x42495f(0x263)][_0x42495f(0x447)](_0x1bd738,_0x44eba1,!0x1),_0x367be=this['_transformService'][_0x42495f(0x447)](_0xcc2d3a,_0x50ec80,!0x1);if(m[_0x42495f(0x28f)](_0x240a3c))throw _0x240a3c[_0x42495f(0x2c6)];if(m[_0x42495f(0x28f)](_0x367be))throw _0x367be[_0x42495f(0x2c6)];_0x3751c3[_0x42495f(0x40d)]({..._0x8d228[_0x3d4f2f],'undoState':_0x240a3c[_0x42495f(0x434)][_0x42495f(0x1ee)],'redoState':_0x367be['m2Prime'][_0x42495f(0x1ee)]}),_0x1bd738=_0x240a3c[_0x42495f(0x43e)],_0xcc2d3a=_0x367be[_0x42495f(0x43e)];}_0x1bd738=a['Tools'][_0x42495f(0x2b8)](_0x467b7f[_0x42495f(0x225)][0x0]),_0xcc2d3a=a[_0x42495f(0x283)][_0x42495f(0x2b8)](_0x467b7f['mutations'][0x0]);for(let _0x123e6e=_0x330c84['length']-0x1;_0x123e6e>=0x0;_0x123e6e--){const _0x5397f1={'id':_0x42495f(0x369),'params':{'unitId':_0x330c84[_0x123e6e]['unitId'],..._0x330c84[_0x123e6e][_0x42495f(0x26c)]}},_0x563531={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x330c84[_0x123e6e][_0x42495f(0x31c)],..._0x330c84[_0x123e6e][_0x42495f(0x376)]}},_0x373685=this['_transformService'][_0x42495f(0x447)](_0x1bd738,_0x5397f1,!0x1),_0x3679a0=this[_0x42495f(0x263)][_0x42495f(0x447)](_0xcc2d3a,_0x563531,!0x1);if(m[_0x42495f(0x28f)](_0x373685))throw _0x373685[_0x42495f(0x2c6)];if(m[_0x42495f(0x28f)](_0x3679a0))throw _0x3679a0['error'];_0x3b6708['unshift']({..._0x330c84[_0x123e6e],'undoState':_0x373685[_0x42495f(0x434)][_0x42495f(0x1ee)],'redoState':_0x3679a0[_0x42495f(0x434)][_0x42495f(0x1ee)]}),_0x1bd738=_0x373685[_0x42495f(0x43e)],_0xcc2d3a=_0x3679a0['m1Prime'];}this[_0x42495f(0x390)]['setStateCache'](_0x5c8c9f,{'history':_0x3751c3,'collaboration':_0x3b6708});}};J=Ht([le(0x0,a[_0x41752f(0x3bf)](a['Injector'])),le(0x1,m[_0x41752f(0x3ec)]),le(0x2,a[_0x41752f(0x3bf)](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x41752f(0x35e)],Wt=(_0x3d1ca8,_0x36772c,_0x292c1d,_0x30ea58)=>{for(var _0x1f4d0=_0x30ea58>0x1?void 0x0:_0x30ea58?Yt(_0x36772c,_0x292c1d):_0x36772c,_0x2137bf=_0x3d1ca8['length']-0x1,_0x4cb015;_0x2137bf>=0x0;_0x2137bf--)(_0x4cb015=_0x3d1ca8[_0x2137bf])&&(_0x1f4d0=_0x4cb015(_0x1f4d0)||_0x1f4d0);return _0x1f4d0;},Ne=(_0xb1e978,_0x482634)=>(_0x454b57,_0x3a5aee)=>_0x482634(_0x454b57,_0x3a5aee,_0xb1e978);let Z=class{constructor(_0x367c95,_0x180efc){const _0xdd5843=_0x41752f;this[_0xdd5843(0x31b)]=_0x367c95,this[_0xdd5843(0x263)]=_0x180efc;}[_0x41752f(0x43b)](_0x470301){const _0x14e73f=_0x41752f;var _0x586c19;const _0x194ab1=this['_injector'][_0x14e73f(0x38d)](Y['DocSelectionManagerService']),_0xb12458=(_0x586c19=_0x194ab1[_0x14e73f(0x345)]())!=null?_0x586c19:[];if(_0xb12458[_0x14e73f(0x27e)]===0x0)return;const _0x13c489=_0x470301[_0x14e73f(0x23a)],_0x3b06aa=[{'id':_0x14e73f(0x369),'params':{'unitId':_0x13c489,'actions':null,'textRanges':_0xb12458}}],_0x33fc35=this['_transformService'][_0x14e73f(0x2ec)](_0x470301,_0x3b06aa);if(!m['isTransformMutationsWithChangesetSuccess'](_0x33fc35))throw _0x33fc35[_0x14e73f(0x2c6)];const _0x3026ea=_0x33fc35[_0x14e73f(0x434)][0x0][_0x14e73f(0x1ee)][_0x14e73f(0x3e3)];Array['isArray'](_0x3026ea)&&_0x3026ea[_0x14e73f(0x27e)]&&_0x194ab1['replaceDocRanges'](_0x3026ea,{'unitId':_0x13c489,'subUnitId':_0x13c489},!0x1);}};Z=Wt([Ne(0x0,a[_0x41752f(0x3bf)](a[_0x41752f(0x2df)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x41752f(0x35e)],Xt=(_0x2c528a,_0xf3fc6,_0x1d0946,_0x356843)=>{const _0x3a6b16=_0x41752f;for(var _0x509fef=_0x356843>0x1?void 0x0:_0x356843?Vt(_0xf3fc6,_0x1d0946):_0xf3fc6,_0x2600c1=_0x2c528a[_0x3a6b16(0x27e)]-0x1,_0x5202bc;_0x2600c1>=0x0;_0x2600c1--)(_0x5202bc=_0x2c528a[_0x2600c1])&&(_0x509fef=_0x5202bc(_0x509fef)||_0x509fef);return _0x509fef;},N=(_0x366a9f,_0x5da295)=>(_0x40505a,_0x40eeb8)=>_0x5da295(_0x40505a,_0x40eeb8,_0x366a9f);let Q=class extends a[_0x41752f(0x2ed)]{constructor(_0x4beed7,_0x516965,_0x413bba,_0x5f29f7,_0x1978ac,_0xce8d4a,_0x22534c,_0x7d2d40){const _0x6100c4=_0x41752f;super(),h(this,'_status$',new d[(_0x6100c4(0x33f))](u[_0x6100c4(0x1fd)]['NOT_COLLAB'])),(this[_0x6100c4(0x390)]=_0x4beed7,this[_0x6100c4(0x278)]=_0x516965,this[_0x6100c4(0x41a)]=_0x413bba,this[_0x6100c4(0x1f7)]=_0x5f29f7,this[_0x6100c4(0x1d7)]=_0x1978ac,this[_0x6100c4(0x3c4)]=_0xce8d4a,this[_0x6100c4(0x29f)]=_0x22534c,this[_0x6100c4(0x24a)]=_0x7d2d40,this[_0x6100c4(0x235)]());}[_0x41752f(0x235)](){const _0x16e2ea=_0x41752f;this['disposeWithMe'](this[_0x16e2ea(0x278)][_0x16e2ea(0x3f6)][_0x16e2ea(0x230)](_0x12ed95=>{const _0x291894=_0x16e2ea,_0x2d4d79=this[_0x291894(0x390)]['docStateChange$']['subscribe'](_0x48c151=>{const _0x1e19c6=_0x291894;if(_0x48c151==null)return;const {unitId:_0x46d688,redoState:_0x599750,commandId:_0x4c2026}=_0x48c151;if(_0x46d688!==_0x12ed95[_0x1e19c6(0x23a)])return;const _0x4fd58a={'id':_0x4c2026,'type':a[_0x1e19c6(0x218)]['MUTATION'],'params':{'unitId':_0x46d688,'actions':_0x599750['actions'],'textRanges':null}};_0x12ed95[_0x1e19c6(0x40c)](_0x4fd58a);});if(_0x12ed95[_0x291894(0x1ec)](_0x2d4d79),_0x12ed95 instanceof u[_0x291894(0x1c5)]){const _0x15babe={'onTransformIME':_0x300911=>this[_0x291894(0x41a)][_0x291894(0x34d)](_0x300911),'onTransformState':_0x1c2d97=>this[_0x291894(0x1f7)][_0x291894(0x382)](_0x1c2d97),'onTransformSelections':_0x18ab33=>this[_0x291894(0x1d7)]['transformSelections'](_0x18ab33),'onSyncEditingCollabCursor':_0x560c4f=>this[_0x291894(0x3c4)][_0x291894(0x43c)](_0x560c4f),'onTransformRemoteChangesetByIMECache':_0x14b8e8=>this[_0x291894(0x41a)][_0x291894(0x3f0)](_0x14b8e8),'onTransformRemoteChangesetByStateCache':_0x21525b=>this['_docTransformStateCacheService'][_0x291894(0x3f0)](_0x21525b)};_0x12ed95[_0x291894(0x269)](_0x15babe);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x41752f(0x33c)])),N(0x1,a[_0x41752f(0x3bf)](u[_0x41752f(0x333)])),N(0x2,a[_0x41752f(0x3bf)](z)),N(0x3,a[_0x41752f(0x3bf)](J)),N(0x4,a[_0x41752f(0x3bf)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,O[_0x41752f(0x1c3)]),N(0x7,a[_0x41752f(0x3bf)](a[_0x41752f(0x277)]))],Q);var Gt=Object[_0x41752f(0x35e)],Kt=(_0x198363,_0x125ff8,_0x50aadc,_0x5b8514)=>{const _0x2a930a=_0x41752f;for(var _0x5d2054=_0x5b8514>0x1?void 0x0:_0x5b8514?Gt(_0x125ff8,_0x50aadc):_0x125ff8,_0x1be9d2=_0x198363[_0x2a930a(0x27e)]-0x1,_0x423497;_0x1be9d2>=0x0;_0x1be9d2--)(_0x423497=_0x198363[_0x1be9d2])&&(_0x5d2054=_0x423497(_0x5d2054)||_0x5d2054);return _0x5d2054;},_e=(_0xd6a3d4,_0x3ebc00)=>(_0x5b914e,_0x3c90f6)=>_0x3ebc00(_0x5b914e,_0x3c90f6,_0xd6a3d4);let ge=class extends a[_0x41752f(0x2ed)]{constructor(_0x19411b,_0x3434ed,_0x349a92){const _0x1c67b7=_0x41752f;super(),h(this,_0x1c67b7(0x3b2),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x1c67b7(0x39f),!0x1),(this[_0x1c67b7(0x317)]=_0x19411b,this[_0x1c67b7(0x290)]=_0x3434ed,this['_revisionService']=_0x349a92);}[_0x41752f(0x246)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x970101=_0x41752f;this[_0x970101(0x39f)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x41752f(0x438)](){const _0x251a93=_0x41752f;this[_0x251a93(0x3c9)]()[_0x251a93(0x3fc)](()=>super['dispose']());}async[_0x41752f(0x42c)](_0x41ff8e){const _0x298b53=_0x41752f;return this[_0x298b53(0x39f)]?null:this[_0x298b53(0x290)][_0x298b53(0x36d)](u[_0x298b53(0x274)](_0x41ff8e));}async['saveOfflineData'](_0x18d05b,_0x5cbe1d){const _0x4b63b1=_0x41752f;return!!this[_0x4b63b1(0x290)][_0x4b63b1(0x29d)](_0x18d05b,_0x5cbe1d);}[_0x41752f(0x216)](_0x3b6e05,_0x464595,_0x542a7f,_0x254879){const _0x340da9=_0x41752f,_0x597bc3=this[_0x340da9(0x26f)][_0x340da9(0x3a4)](_0x3b6e05);this[_0x340da9(0x3b2)][_0x340da9(0x409)](_0x3b6e05,{'unitID':_0x3b6e05,'type':_0x464595,'awaitingChangeset':_0x542a7f,'mutations':_0x254879,'rev':_0x597bc3}),this[_0x340da9(0x3a7)][_0x340da9(0x2c2)](_0x3b6e05)||this['_scheduleSaving'](_0x3b6e05);}[_0x41752f(0x279)](_0x172c17){const _0x2f14b9=_0x41752f,_0x5e284d=this[_0x2f14b9(0x429)]();_0x5e284d===0x0?this[_0x2f14b9(0x41d)](_0x172c17):this[_0x2f14b9(0x3a7)][_0x2f14b9(0x409)](_0x172c17,setTimeout(()=>this[_0x2f14b9(0x41d)](_0x172c17),_0x5e284d));}[_0x41752f(0x429)](){const _0x1a0df1=_0x41752f;var _0x16880f;return(_0x16880f=this['_configService'][_0x1a0df1(0x326)](u[_0x1a0df1(0x374)]))!=null?_0x16880f:u[_0x1a0df1(0x368)];}[_0x41752f(0x41d)](_0x1616dc){const _0x141693=_0x41752f,_0x20d9f2=this[_0x141693(0x3a7)]['get'](_0x1616dc);return _0x20d9f2!==void 0x0&&window[_0x141693(0x2d0)](_0x20d9f2),this[_0x141693(0x290)]['setItem'](u[_0x141693(0x274)](_0x1616dc),this['_cachedData'][_0x141693(0x38d)](_0x1616dc))[_0x141693(0x3fc)](()=>this[_0x141693(0x3a7)][_0x141693(0x1e6)](_0x1616dc));}async[_0x41752f(0x3c9)](){const _0x428339=_0x41752f,_0x46f6a4=[];this['_saveTaskMap'][_0x428339(0x2be)]((_0x4dbf4a,_0x3480b1)=>{const _0x4c0f6a=_0x428339;window['clearTimeout'](_0x4dbf4a),_0x46f6a4[_0x4c0f6a(0x3e2)](this[_0x4c0f6a(0x41d)](_0x3480b1)[_0x4c0f6a(0x3fc)](()=>{const _0x333911=_0x4c0f6a;this['_saveTaskMap'][_0x333911(0x1e6)](_0x3480b1);}));}),await Promise[_0x428339(0x401)](_0x46f6a4);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x41752f(0x219)]),_e(0x2,a[_0x41752f(0x3bf)](m[_0x41752f(0x1cf)]))],ge);class Be extends a[_0x41752f(0x26e)]{constructor(){const _0x5a79e4=_0x41752f;super(),h(this,_0x5a79e4(0x1c7)),this[_0x5a79e4(0x1c7)]=d[_0x5a79e4(0x339)](window,_0x5a79e4(0x214))[_0x5a79e4(0x42f)](d[_0x5a79e4(0x23b)](this[_0x5a79e4(0x247)]),d['shareReplay'](0x1),d[_0x5a79e4(0x3c1)](void 0x0));}[_0x41752f(0x264)](_0xd179b6,_0x24ef88,_0xc31947=!0x1){const _0x383dbc=_0x41752f,_0x2b0270=new URL(window[_0x383dbc(0x39e)][_0x383dbc(0x294)]);_0x2b0270[_0x383dbc(0x391)]['set'](_0xd179b6,_0x24ef88),_0xc31947?window[_0x383dbc(0x2d5)][_0x383dbc(0x221)]('','',_0x2b0270['toString']()):window['history'][_0x383dbc(0x1c9)]('','',_0x2b0270[_0x383dbc(0x350)]());}['removeParam'](_0x4eedfc,_0x5830d2=!0x1){const _0x33a11c=_0x41752f,_0x348fb3=new URL(window[_0x33a11c(0x39e)][_0x33a11c(0x294)]);_0x348fb3[_0x33a11c(0x391)][_0x33a11c(0x1e6)](_0x4eedfc),_0x5830d2?window[_0x33a11c(0x2d5)]['replaceState']('','',_0x348fb3[_0x33a11c(0x350)]()):window[_0x33a11c(0x2d5)][_0x33a11c(0x1c9)]('','',_0x348fb3[_0x33a11c(0x350)]());}['getParam'](_0x1692ad){const _0x4a2648=_0x41752f;var _0x5dcff6;return(_0x5dcff6=new URL(window[_0x4a2648(0x39e)][_0x4a2648(0x294)])[_0x4a2648(0x391)][_0x4a2648(0x38d)](_0x1692ad))!=null?_0x5dcff6:void 0x0;}}var qt=Object[_0x41752f(0x3b8)],zt=Object[_0x41752f(0x35e)],Jt=(_0x5aa5db,_0x342c5c,_0x12af69)=>_0x342c5c in _0x5aa5db?qt(_0x5aa5db,_0x342c5c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12af69}):_0x5aa5db[_0x342c5c]=_0x12af69,Zt=(_0x332ac5,_0x546d1b,_0x254797,_0x1e5574)=>{for(var _0x14fc9d=_0x1e5574>0x1?void 0x0:_0x1e5574?zt(_0x546d1b,_0x254797):_0x546d1b,_0xb29205=_0x332ac5['length']-0x1,_0x5304f9;_0xb29205>=0x0;_0xb29205--)(_0x5304f9=_0x332ac5[_0xb29205])&&(_0x14fc9d=_0x5304f9(_0x14fc9d)||_0x14fc9d);return _0x14fc9d;},he=(_0x491762,_0x2dcee1)=>(_0x398ecb,_0x19c742)=>_0x2dcee1(_0x398ecb,_0x19c742,_0x491762),Qt=(_0x1690d4,_0x11bde1,_0x10a126)=>Jt(_0x1690d4,_0x11bde1+'',_0x10a126);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x41752f(0x260)]{constructor(_0x17b9d8=Ue,_0x353e2e,_0x5d499f,_0x6b48fe){const _0x25eaf3=_0x41752f;super(),this[_0x25eaf3(0x3c5)]=_0x17b9d8,this[_0x25eaf3(0x256)]=_0x353e2e,this[_0x25eaf3(0x31b)]=_0x5d499f,this[_0x25eaf3(0x317)]=_0x6b48fe;const {..._0x3a43da}=a[_0x25eaf3(0x397)]({},Ue,this['_config']);this[_0x25eaf3(0x317)][_0x25eaf3(0x2ce)]($t,_0x3a43da);}[_0x41752f(0x3a8)](){const _0x168d3f=_0x41752f;this[_0x168d3f(0x262)](),this[_0x168d3f(0x3f1)]();}[_0x41752f(0x2b2)](){const _0x32c343=_0x41752f;this[_0x32c343(0x3cf)]();}[_0x41752f(0x262)](){const _0x300777=_0x41752f;var _0x402fb4;const _0xf05a31=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G['ISocketService'],{'useClass':G['WebSocketService']}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x300777(0x32f)]],[Q],[q],[x],[de],[exports[_0x300777(0x228)]]];a[_0x300777(0x2b3)](this[_0x300777(0x31b)],a[_0x300777(0x286)](_0xf05a31,(_0x402fb4=this[_0x300777(0x3c5)])==null?void 0x0:_0x402fb4[_0x300777(0x272)]));}['_registerRenderDependencies'](){const _0x2dcdd8=_0x41752f;this[_0x2dcdd8(0x1ec)](this[_0x2dcdd8(0x256)][_0x2dcdd8(0x1ff)](a[_0x2dcdd8(0x396)][_0x2dcdd8(0x354)],[fe])),this[_0x2dcdd8(0x1ec)](this[_0x2dcdd8(0x256)]['registerRenderModule'](a['UniverInstanceType'][_0x2dcdd8(0x239)],[ve]));}['_initDependencies'](){const _0x18fba5=_0x41752f;a['touchDependencies'](this[_0x18fba5(0x31b)],[[x],[exports[_0x18fba5(0x32f)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x41752f(0x2e8)],_0x41752f(0x20a),es),exports[_0x41752f(0x2e8)]=Zt([a['DependentOn'](u[_0x41752f(0x24b)]),he(0x1,p[_0x41752f(0x3ba)]),he(0x2,a[_0x41752f(0x3bf)](a['Injector'])),he(0x3,a[_0x41752f(0x2ee)])],exports[_0x41752f(0x2e8)]);var ts=Object[_0x41752f(0x35e)],ss=(_0x36a59c,_0x30bd6d,_0x299d88,_0x2298d4)=>{const _0x3bc8fb=_0x41752f;for(var _0x5a5e2f=_0x2298d4>0x1?void 0x0:_0x2298d4?ts(_0x30bd6d,_0x299d88):_0x30bd6d,_0x24c738=_0x36a59c[_0x3bc8fb(0x27e)]-0x1,_0x5e8927;_0x24c738>=0x0;_0x24c738--)(_0x5e8927=_0x36a59c[_0x24c738])&&(_0x5a5e2f=_0x5e8927(_0x5a5e2f)||_0x5a5e2f);return _0x5a5e2f;},H=(_0x296431,_0x33bf39)=>(_0x1a4fee,_0x1d9170)=>_0x33bf39(_0x1a4fee,_0x1d9170,_0x296431);exports[_0x41752f(0x31d)]=class extends u[_0x41752f(0x38e)]{constructor(_0x26a1da,_0x429bba,_0x4937e0,_0x508a31,_0x37b736){super(_0x26a1da,_0x429bba,_0x4937e0,_0x508a31,_0x37b736);}async[_0x41752f(0x21a)](_0x1b50be){const _0x6516e3=_0x41752f,_0x1c9469=await this[_0x6516e3(0x330)](),_0x54d730=this['_createSocketURL'](_0x1b50be,_0x1c9469);return this['_doCreateSocket'](_0x54d730);}['_createSocketURL'](_0xfb37e,_0x192030){const _0x4d7179=_0x41752f,_0x4903fe=typeof window>'u'?new URL(_0xfb37e):new URL(_0xfb37e,window['location']['origin']);_0x4903fe[_0x4d7179(0x391)][_0x4d7179(0x409)](_0x4d7179(0x24f),_0x192030);const _0x381ba8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4d7179(0x39e)]['search']);return _0x381ba8[_0x4d7179(0x38d)](_0x4d7179(0x442))&&_0x4903fe[_0x4d7179(0x391)][_0x4d7179(0x409)](_0x4d7179(0x442),_0x381ba8[_0x4d7179(0x38d)](_0x4d7179(0x442))),_0x4903fe['toString']();}async[_0x41752f(0x330)](){const _0x31da37=_0x41752f;var _0x42e79f,_0x42a30a,_0x30d758;const _0x2bcbc8=this[_0x31da37(0x317)]['getConfig'](u[_0x31da37(0x202)]),_0x18cf18=(_0x42e79f=_0x2bcbc8==null?void 0x0:_0x2bcbc8[_0x31da37(0x37b)])!=null?_0x42e79f:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x30d758=(_0x42a30a=(await this['_httpService'][_0x31da37(0x38d)](_0x18cf18,{'headers':{'Content-Type':_0x31da37(0x2d6)}}))[_0x31da37(0x36e)])==null?void 0x0:_0x42a30a[_0x31da37(0x1cc)])!=null?_0x30d758:'';}},exports[_0x41752f(0x31d)]=ss([H(0x0,a[_0x41752f(0x3bf)](a[_0x41752f(0x2df)])),H(0x1,a[_0x41752f(0x3bf)](G[_0x41752f(0x2d7)])),H(0x2,a[_0x41752f(0x2ee)]),H(0x3,a['ILogService']),H(0x4,m['ISnapshotServerService'])],exports[_0x41752f(0x31d)]);const Me=0x7530,Le=_0x41752f(0x295);class is extends a['Disposable']{constructor(){const _0x4a986c=_0x41752f;super(),h(this,_0x4a986c(0x33e),a[_0x4a986c(0x3be)]()),h(this,_0x4a986c(0x238),new Set()),h(this,_0x4a986c(0x33d),new Map()),h(this,_0x4a986c(0x2cf),null),h(this,_0x4a986c(0x2ba),new Map()),h(this,'_unitStatus',new Map()),this[_0x4a986c(0x201)]();}[_0x41752f(0x438)](){const _0x44f9d3=_0x41752f;super[_0x44f9d3(0x438)](),this['_clearOtherTimers'][_0x44f9d3(0x2be)]((_0x4baa1,_0x9650d7)=>this[_0x44f9d3(0x316)](_0x9650d7)),this[_0x44f9d3(0x2cf)]&&window[_0x44f9d3(0x387)](this[_0x44f9d3(0x2cf)]);}['getUnitStatus$'](_0x3ca584){const _0x5d86bc=_0x41752f;return this[_0x5d86bc(0x392)](_0x3ca584)['pipe'](d[_0x5d86bc(0x1df)]());}['editingUnit'](_0x5775be){const _0xb364f9=_0x41752f;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0xb364f9(0x238)]['add'](_0x5775be),this['_send']({'type':0x0,'memberID':this[_0xb364f9(0x33e)],'unitIDs':[_0x5775be],'isForwarded':!0x1});}[_0x41752f(0x28b)](_0x4c9580){const _0x48135b=_0x41752f;this[_0x48135b(0x238)][_0x48135b(0x1e6)](_0x4c9580),this[_0x48135b(0x238)][_0x48135b(0x2c9)]===0x0&&this['_heartbeatTimer']&&window[_0x48135b(0x387)](this[_0x48135b(0x2cf)]);}[_0x41752f(0x201)](){const _0x388a07=_0x41752f;this[_0x388a07(0x1ec)](a[_0x388a07(0x301)](d[_0x388a07(0x339)](window,_0x388a07(0x338))[_0x388a07(0x230)](_0x359abc=>{const _0x4b78c2=_0x388a07;if(_0x359abc[_0x4b78c2(0x1e3)]!==Le||!_0x359abc[_0x4b78c2(0x378)])return;const _0x2c5288=JSON[_0x4b78c2(0x32b)](_0x359abc[_0x4b78c2(0x378)]);this[_0x4b78c2(0x208)](_0x2c5288);}))),window[_0x388a07(0x2da)](_0x388a07(0x2f6),()=>this[_0x388a07(0x353)]({'type':0x1,'memberID':this[_0x388a07(0x33e)],'unitIDs':Array['from'](this[_0x388a07(0x238)])}));}[_0x41752f(0x208)](_0x4d2594){const _0x2284cc=_0x41752f;switch(_0x4d2594[_0x2284cc(0x366)]){case 0x0:this['_handleJoinEvent'](_0x4d2594);break;case 0x1:this[_0x2284cc(0x22b)](_0x4d2594);break;case 0x2:this[_0x2284cc(0x1e8)](_0x4d2594);break;}}[_0x41752f(0x234)](_0x5d3d00){const _0xe34009=_0x41752f,{unitIDs:_0x1b34cb,memberID:_0xc0d125,isForwarded:_0x3584ba}=_0x5d3d00;_0x1b34cb[_0xe34009(0x2be)](_0x349f71=>{const _0x5e1556=_0xe34009;if(!_0x3584ba&&this[_0x5e1556(0x33d)][_0x5e1556(0x2c2)](_0x349f71)&&this[_0x5e1556(0x392)](_0x349f71)[_0x5e1556(0x3e1)](u['UnitStatus'][_0x5e1556(0x22d)]),!this['_unitOnClients'][_0x5e1556(0x2c2)](_0x349f71)||!this[_0x5e1556(0x33d)][_0x5e1556(0x38d)](_0x349f71)[_0x5e1556(0x2c2)](_0xc0d125)){const _0x17174e=this[_0x5e1556(0x33d)][_0x5e1556(0x38d)](_0x349f71)||new Set();_0x17174e['add'](_0xc0d125),this['_unitOnClients'][_0x5e1556(0x409)](_0x349f71,_0x17174e),this[_0x5e1556(0x209)](_0xc0d125);}}),_0x3584ba||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xe34009(0x238)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x501085){const _0x29a519=_0x41752f;this['_removeClearOtherTimer'](_0x501085);const _0x38da37=window['setTimeout'](()=>{const _0x2b3a68=_0x1202;this['_unitOnClients'][_0x2b3a68(0x2be)](_0x395bb1=>{_0x395bb1['delete'](_0x501085);});},Me*0x2);this['_clearOtherTimers'][_0x29a519(0x409)](_0x501085,_0x38da37);}['_removeClearOtherTimer'](_0xefeb52){const _0x455f51=_0x41752f;if(this[_0x455f51(0x2ba)][_0x455f51(0x2c2)](_0xefeb52)){const _0x4c5544=this[_0x455f51(0x2ba)][_0x455f51(0x38d)](_0xefeb52);_0x4c5544&&window[_0x455f51(0x2d0)](_0x4c5544),this[_0x455f51(0x2ba)]['set'](_0xefeb52,null);}}[_0x41752f(0x22b)](_0x1ef1c1){const {memberID:_0x49c9f2,unitIDs:_0x37234a}=_0x1ef1c1;_0x37234a['forEach'](_0x38a93e=>{const _0x4b8713=_0x1202;var _0x4c7eec;const _0x453d6b=this[_0x4b8713(0x33d)]['get'](_0x38a93e);_0x453d6b&&(_0x453d6b[_0x4b8713(0x1e6)](_0x49c9f2),(_0x4c7eec=this[_0x4b8713(0x392)](_0x38a93e))==null||_0x4c7eec[_0x4b8713(0x3e1)](_0x453d6b[_0x4b8713(0x2c9)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus'][_0x4b8713(0x22d)]));}),this['_removeClearOtherTimer'](_0x49c9f2);}[_0x41752f(0x1e8)](_0x3c6859){const _0x2e2cb3=_0x41752f;this[_0x2e2cb3(0x209)](_0x3c6859[_0x2e2cb3(0x265)]);}[_0x41752f(0x353)](_0x5ec899){const _0x416858=_0x41752f;localStorage[_0x416858(0x29d)](Le,JSON[_0x416858(0x2ad)](_0x5ec899));}[_0x41752f(0x1f9)](){const _0x35f798=_0x41752f;this[_0x35f798(0x2cf)]=window[_0x35f798(0x3db)](()=>{const _0x5d7793=_0x35f798;this[_0x5d7793(0x353)]({'type':0x2,'memberID':this['_id']});},Me);}[_0x41752f(0x392)](_0x1d1355){const _0x523f25=_0x41752f;return this[_0x523f25(0x1ef)][_0x523f25(0x2c2)](_0x1d1355)||this[_0x523f25(0x1ef)][_0x523f25(0x409)](_0x1d1355,new d[(_0x523f25(0x33f))](u[_0x523f25(0x31e)][_0x523f25(0x3ff)])),this['_unitStatus'][_0x523f25(0x38d)](_0x1d1355);}}var je=(_0x350557=>(_0x350557[_0x350557[_0x41752f(0x27f)]=0x0]='UNDEFINED',_0x350557[_0x350557['OK']=0x1]='OK',_0x350557[_0x350557[_0x41752f(0x37e)]=0x2]=_0x41752f(0x37e),_0x350557[_0x350557[_0x41752f(0x389)]=0x3]=_0x41752f(0x389),_0x350557[_0x350557[_0x41752f(0x436)]=0x4]=_0x41752f(0x436),_0x350557[_0x350557[_0x41752f(0x289)]=0x5]=_0x41752f(0x289),_0x350557[_0x350557[_0x41752f(0x27b)]=0x6]='ALREADY_EXISTS',_0x350557[_0x350557[_0x41752f(0x266)]=0x7]=_0x41752f(0x266),_0x350557[_0x350557[_0x41752f(0x318)]=0x8]=_0x41752f(0x318),_0x350557[_0x350557['COMPLETION_FINISHED']=0x9]=_0x41752f(0x3af),_0x350557[_0x350557[_0x41752f(0x2de)]=0xa]=_0x41752f(0x2de),_0x350557[_0x350557['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x41752f(0x39b),_0x350557[_0x350557[_0x41752f(0x1db)]=0xc]=_0x41752f(0x1db),_0x350557[_0x350557[_0x41752f(0x1d8)]=0xd]=_0x41752f(0x1d8),_0x350557[_0x350557[_0x41752f(0x259)]=0xe]=_0x41752f(0x259),_0x350557[_0x350557[_0x41752f(0x3fe)]=0x1389]=_0x41752f(0x3fe),_0x350557[_0x350557[_0x41752f(0x3b0)]=0x1771]=_0x41752f(0x3b0),_0x350557[_0x350557['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x350557[_0x350557[_0x41752f(0x255)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x350557[_0x350557['APPLY_REJECT']=0x1b59]=_0x41752f(0x1e2),_0x350557[_0x350557[_0x41752f(0x406)]=0x1b5a]=_0x41752f(0x406),_0x350557[_0x350557[_0x41752f(0x24c)]=0x1b5b]=_0x41752f(0x24c),_0x350557[_0x350557['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x350557[_0x350557['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x350557[_0x350557[_0x41752f(0x29e)]=0x1f41]=_0x41752f(0x29e),_0x350557[_0x350557['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x41752f(0x33b),_0x350557[_0x350557[_0x41752f(0x34f)]=0x232a]=_0x41752f(0x34f),_0x350557[_0x350557[_0x41752f(0x213)]=0x232b]=_0x41752f(0x213),_0x350557[_0x350557[_0x41752f(0x2d1)]=0x232c]=_0x41752f(0x2d1),_0x350557[_0x350557[_0x41752f(0x2db)]=0x232d]=_0x41752f(0x2db),_0x350557[_0x350557['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x41752f(0x367),_0x350557[_0x350557[_0x41752f(0x298)]=0x2712]=_0x41752f(0x298),_0x350557[_0x350557['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x41752f(0x1de),_0x350557[_0x350557[_0x41752f(0x1fb)]=0x2714]=_0x41752f(0x1fb),_0x350557[_0x350557[_0x41752f(0x237)]=0x271a]=_0x41752f(0x237),_0x350557[_0x350557['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x41752f(0x357),_0x350557[_0x350557['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x350557[_0x350557['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x41752f(0x42a),_0x350557[_0x350557[_0x41752f(0x3d2)]=0x271e]=_0x41752f(0x3d2),_0x350557[_0x350557['YUUMI_AI_RUN_FAILED']=0x271f]=_0x41752f(0x222),_0x350557[_0x350557[_0x41752f(0x343)]=0x2720]=_0x41752f(0x343),_0x350557[_0x350557[_0x41752f(0x36a)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x350557[_0x350557[_0x41752f(0x1c6)]=0x2ee1]=_0x41752f(0x1c6),_0x350557[_0x350557[_0x41752f(0x21b)]=0x2ee2]=_0x41752f(0x21b),_0x350557[_0x350557[_0x41752f(0x2cc)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x350557[_0x350557[_0x41752f(0x29b)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x350557[_0x350557[_0x41752f(0x307)]=0x2ee5]=_0x41752f(0x307),_0x350557[_0x350557[_0x41752f(0x3a0)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x350557[_0x350557['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x41752f(0x443),_0x350557[_0x350557[_0x41752f(0x43f)]=0x32cb]=_0x41752f(0x43f),_0x350557[_0x350557[_0x41752f(0x2d2)]=-0x1]=_0x41752f(0x2d2),_0x350557))(je||{}),ns=Object[_0x41752f(0x35e)],rs=(_0x9142af,_0x5c12fd,_0x283560,_0x5e7a78)=>{const _0x4fb1f1=_0x41752f;for(var _0x2eec82=_0x5e7a78>0x1?void 0x0:_0x5e7a78?ns(_0x5c12fd,_0x283560):_0x5c12fd,_0x174295=_0x9142af[_0x4fb1f1(0x27e)]-0x1,_0x2d9421;_0x174295>=0x0;_0x174295--)(_0x2d9421=_0x9142af[_0x174295])&&(_0x2eec82=_0x2d9421(_0x2eec82)||_0x2eec82);return _0x2eec82;},ue=(_0x2ab23,_0x5d10d6)=>(_0x15162a,_0x5cd891)=>_0x5d10d6(_0x15162a,_0x5cd891,_0x2ab23);exports[_0x41752f(0x29a)]=class extends a['Disposable']{constructor(_0x487de9,_0x5febc9,_0x557b27){const _0x1d8a9b=_0x41752f;super(),this[_0x1d8a9b(0x3e8)]=_0x487de9,this['_httpService']=_0x5febc9,this[_0x1d8a9b(0x317)]=_0x557b27;}async[_0x41752f(0x21c)](_0x1a2b79,_0x2f175f,_0x171103,..._0x4e4e93){const _0x4afba7=_0x41752f;var _0x1b0a90,_0x94b478,_0x189989,_0x4d8d32;const _0x1f61e=this[_0x4afba7(0x3e8)][_0x4afba7(0x408)]();if(!_0x1f61e)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x301c6d=((_0x1b0a90=this[_0x4afba7(0x317)][_0x4afba7(0x326)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x1b0a90:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1a2b79+_0x4afba7(0x2ab)+_0x2f175f,_0x378552=new URL(window[_0x4afba7(0x39e)][_0x4afba7(0x294)]),_0x458418={'scriptId':_0x1a2b79,'runId':(_0x94b478=_0x378552[_0x4afba7(0x391)]['get'](_0x4afba7(0x442)))!=null?_0x94b478:'','function':_0x2f175f,'unitId':_0x1f61e[_0x4afba7(0x335)](),'argsOfFunction':JSON[_0x4afba7(0x2ad)](_0x4e4e93),'invokeId':(_0x189989=_0x171103[_0x4afba7(0x1e1)])!=null?_0x189989:'','executionId':(_0x4d8d32=_0x171103[_0x4afba7(0x2c0)])!=null?_0x4d8d32:''};try{const _0x26e19e=await this[_0x4afba7(0x296)][_0x4afba7(0x3e4)](_0x301c6d,{'body':_0x458418});return _0x26e19e[_0x4afba7(0x36e)][_0x4afba7(0x2c6)]&&_0x26e19e[_0x4afba7(0x36e)]['error']['code']!==je['OK']?'Failed':_0x26e19e['body'][_0x4afba7(0x282)];}catch{return _0x4afba7(0x1f8);}}},exports[_0x41752f(0x29a)]=rs([ue(0x0,a[_0x41752f(0x206)]),ue(0x1,a[_0x41752f(0x3bf)](G[_0x41752f(0x2d7)])),ue(0x2,a[_0x41752f(0x2ee)])],exports[_0x41752f(0x29a)]),exports[_0x41752f(0x20d)]=xe,exports[_0x41752f(0x3c8)]=Ee,exports[_0x41752f(0x2e6)]=we,exports[_0x41752f(0x270)]=is,exports[_0x41752f(0x31f)]=Be;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x2b7456=_0x570a;(function(_0x2c157d,_0x128ccc){const _0x5dd330=_0x570a,_0x191877=_0x2c157d();while(!![]){try{const _0x93ea1=-parseInt(_0x5dd330(0x106))/0x1*(parseInt(_0x5dd330(0x118))/0x2)+-parseInt(_0x5dd330(0x10a))/0x3*(parseInt(_0x5dd330(0x10d))/0x4)+-parseInt(_0x5dd330(0x10e))/0x5*(-parseInt(_0x5dd330(0x107))/0x6)+-parseInt(_0x5dd330(0x111))/0x7+parseInt(_0x5dd330(0x11b))/0x8*(-parseInt(_0x5dd330(0x104))/0x9)+-parseInt(_0x5dd330(0x105))/0xa*(parseInt(_0x5dd330(0x103))/0xb)+parseInt(_0x5dd330(0x114))/0xc;if(_0x93ea1===_0x128ccc)break;else _0x191877['push'](_0x191877['shift']());}catch(_0x528c9d){_0x191877['push'](_0x191877['shift']());}}}(_0x55bd,0x4298f));function _0x55bd(){const _0x2dbcd3=['Collaboration\x20Conflict','898154sncEQo','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.','3808jBkFNJ','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Authentication\x20Error','43241kyPnpS','558hwPKrW','330hbRyBT','1HjabRY','2363454ZVxnIL','Connection\x20failed,\x20please\x20check\x20your\x20network.','Click\x20to\x20Reconnect','3fvpktl','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Local\x20file','1956852ENAUAE','5oBmsjA','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Edit\x20conflicts','1847566ADfRXe','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','14884044MaDoET','Syncing\x20server\x20data...','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.'];_0x55bd=function(){return _0x2dbcd3;};return _0x55bd();}const e={'collab-client':{'tooltip':{'reconnect':_0x2b7456(0x109)}},'collabStatus':{'fetchMiss':_0x2b7456(0x115),'conflict':_0x2b7456(0x110),'notCollab':_0x2b7456(0x10c),'synced':'Synced','syncing':_0x2b7456(0x119),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x2b7456(0x108),'will-retry':_0x2b7456(0x116),'room-full':_0x2b7456(0x10b),'collaboration-timeout':_0x2b7456(0x10f)},'conflict':{'title':_0x2b7456(0x117),'content':_0x2b7456(0x11a)},'permission':{'title':_0x2b7456(0x102),'content':_0x2b7456(0x101)},'collaboration':{'single-unit':{'warning':_0x2b7456(0x113)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x2b7456(0x112)}};function _0x570a(_0x72494a,_0xd5b9dd){const _0x55bdcb=_0x55bd();return _0x570a=function(_0x570a94,_0x245f1e){_0x570a94=_0x570a94-0x101;let _0x1053dd=_0x55bdcb[_0x570a94];return _0x1053dd;},_0x570a(_0x72494a,_0xd5b9dd);}module['exports']=e;
|