@univerjs-pro/collaboration-client-ui 1.1.0 → 1.3.0
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +4 -0
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/config/config.d.ts +3 -3
- package/lib/types/controllers/collaboration-client-ui.controller.d.ts +29 -3
- package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +2 -6
- package/lib/types/index.d.ts +0 -1
- package/lib/types/locale/en-US.d.ts +10 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -18
- package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -17
- package/lib/types/services/url/url.service.d.ts +0 -12
- package/lib/types/services/url/web-url.service.d.ts +0 -10
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x9941cc=_0x54b3;(function(_0x3d1387,_0x2f1f1a){const _0x1a5a7e=_0x54b3,_0x2d0d20=_0x3d1387();while(!![]){try{const _0x351b71=-parseInt(_0x1a5a7e(0x28a))/0x1*(parseInt(_0x1a5a7e(0x32f))/0x2)+parseInt(_0x1a5a7e(0x35c))/0x3+parseInt(_0x1a5a7e(0x3d6))/0x4+parseInt(_0x1a5a7e(0x2e9))/0x5+parseInt(_0x1a5a7e(0x218))/0x6+-parseInt(_0x1a5a7e(0x394))/0x7*(-parseInt(_0x1a5a7e(0x3d9))/0x8)+-parseInt(_0x1a5a7e(0x22e))/0x9;if(_0x351b71===_0x2f1f1a)break;else _0x2d0d20['push'](_0x2d0d20['shift']());}catch(_0x4fd9b5){_0x2d0d20['push'](_0x2d0d20['shift']());}}}(_0x5de4,0x56a0c));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x323108,CollaborationController as _0xa6a463,CollaborationSessionService as _0x48e021,CollaborationSocketService as _0xff2dd6,CollaborationStatus as _0x12e22e,CollaborationUIEventId as _0x46cfde,CollaborationUIEventService as _0x5e9140,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x425445,DEFAULT_WS_SESSION_TICKET_URL as _0x59be2d,DataLoaderService as _0x3e7d68,DocCollaborationEntity as _0x2406af,ILocalCacheService as _0x4acd2b,INetworkConditionService as _0x33aa34,LOCAL_CACHE_INTERVAL as _0x3650b9,LOCAL_CACHE_INTERVAL_KEY as _0x3901f1,MemberService as _0x25c118,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x3ffe51,SessionStatus as _0x15dfc3,UnitStatus as _0x4c50b0,UniverCollaborationClientPlugin as _0x5ac656,getLocalCacheKey as _0x5c47ad}from'@univerjs-pro/collaboration-client';import{COLORS as _0x5f41ef,ColorKit as _0xf4eb88,CommandType as _0x2b7b9b,DOC_RANGE_TYPE as _0x13669b,DependentOn as _0x5920de,Disposable as _0x4ade65,DisposableCollection as _0x2593d8,ICommandService as _0x309b58,IConfigService as _0x3116f3,IImageIoService as _0x138ac6,ILocalStorageService as _0x2d6fa6,ILogService as _0x54abc2,IUniverInstanceService as _0x479ada,Inject as _0x5e7a64,Injector as _0x3a52d9,LocaleService as _0x100652,Plugin as _0x158ecc,Rectangle as _0x256130,RxDisposable as _0x26adc4,ThemeService as _0x5cb64c,Tools as _0x3bef57,UniverInstanceType as _0x3a9ab9,UserManagerService as _0x57bb22,Workbook as _0x569249,createIdentifier as _0x59bc43,debounce as _0x3580a2,fromEventSubject as _0x312909,generateRandomId as _0x514bf7,isInternalEditorID as _0x125e48,merge as _0x468132,mergeOverrideWithDependencies as _0x1b4625,registerDependencies as _0x176aa9,toDisposable as _0x43c8f,touchDependencies as _0x266c62}from'@univerjs/core';import{BuiltInUIPart as _0x3e468e,IBeforeCloseService as _0x4664b0,IMessageService as _0x3ba635,INotificationService as _0x23d9be,IUIPartsService as _0x3b6d8f,IUnitPresenceUIAdapterRegistry as _0x2ca04e,connectInjector as _0x1685d6,useDependency as _0x269985,useObservable as _0x5d8c77}from'@univerjs/ui';import{BehaviorSubject as _0x4693d8,Subject as _0x49cf9c,combineLatest as _0xd37b62,debounceTime as _0x2d0b95,distinctUntilChanged as _0x5b52ab,filter as _0x27d01f,firstValueFrom as _0x41d36,fromEvent as _0x252f84,map as _0x2ae595,mapTo as _0x1c52fe,merge as _0x5c9537,of as _0x52386d,shareReplay as _0x3e947a,switchMap as _0x5aa3c8,takeUntil as _0x4c8245,throttle as _0x1d35cc,timeout as _0x500b61,timer as _0xcf4317}from'rxjs';import{distinctUntilChanged as _0x49a99f,filter as _0x5d66f3,map as _0x56b22d,switchMap as _0x42c983,takeUntil as _0xf925e5,throttleTime as _0xd66e0f}from'rxjs/operators';import{Button as _0x352c6,MessageType as _0x475928,Tooltip as _0x59042c,clsx as _0x5a89c9}from'@univerjs/design';import{LoadingMultiIcon as _0x913ace,OffLineIcon as _0x27a2ee,OnLineIcon as _0x4d7bac,WarningIcon as _0x4eadf0}from'@univerjs/icons';import{createElement as _0x5eb423,useCallback as _0xefea27,useMemo as _0x5d2946}from'react';import{jsx as _0xc268f7,jsxs as _0x233448}from'react/jsx-runtime';import{CollaborationEvent as _0x4d0259,ISnapshotServerService as _0x55255b,ITransformService as _0x1a08d7,RevisionService as _0x363588,SnapshotLoadStage as _0x4bc669,SnapshotLoadingService as _0x311f12,UniverCollaborationPlugin as _0x4aa696,isTransformMutationFailure as _0x1cec04,isTransformMutationsWithChangesetSuccess as _0x302eb5}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x1dc124}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x5eb373,DocSkeletonManagerService as _0xe6affc,DocStateChangeManagerService as _0x6f388c,RichTextEditingMutation as _0x5e3f06,SetTextSelectionsOperation as _0x1bd45a,UniverDocsPlugin as _0x42b8ea}from'@univerjs/docs';import{DocIMEInputManagerService as _0x274379,IDocClipboardService as _0x336070,NodePositionConvertToCursor as _0x3d3232,NodePositionConvertToRectRange as _0x3920b7,SetDocZoomRatioOperation as _0x1d35c7,TEXT_RANGE_LAYER_INDEX as _0x3dbc00,UniverDocsUIPlugin as _0x496886}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x51c0a9,IRenderManagerService as _0x20ed56,Rect as _0xe88d74,RegularPolygon as _0x29394e,SHEET_VIEWPORT_KEY as _0x571217,Shape as _0x5f64c4,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4ff85e,UniverRenderEnginePlugin as _0x24783a,Vector2 as _0x51b3dc,getColor as _0x12c0bd,getDocumentSkeletonColumnPagePathInfo as _0x5200ed}from'@univerjs/engine-render';import{HTTPEventType as _0x4d1c71,HTTPService as _0x2f3aec,ISocketService as _0x15f85b,UniverNetworkPlugin as _0x317ac1,WebSocketService as _0x2b2855}from'@univerjs/network';import{deserializeRangeWithSheet as _0x4a0b6c,serializeRangeWithSheet as _0x2f180d}from'@univerjs/engine-formula';import{EffectRefRangId as _0x1f3c8d,RefRangeService as _0x485be6,SetSelectionsOperation as _0x1a27b4,SetWorksheetActivateCommand as _0x4c5c95,SheetsSelectionsService as _0x475b01,handleDeleteRangeMoveLeft as _0x1f11a9,handleDeleteRangeMoveUp as _0x24c592,handleIRemoveCol as _0x3dc868,handleIRemoveRow as _0x3b7c9d,handleInsertCol as _0x454271,handleInsertRangeMoveDown as _0x2fa32d,handleInsertRangeMoveRight as _0x53b7ce,handleInsertRow as _0x59f1f6,handleMoveRange as _0x348df5,runRefRangeMutations as _0x47ab26}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x196587,getCoordByCell as _0x42bc2d,getSheetObject as _0x25c785}from'@univerjs/sheets-ui';import{ErrorCode as _0x56aba6}from'@univerjs/protocol';function cn(_0x147b40){const _0x25702f=_0x54b3;switch(_0x147b40){case _0x12e22e[_0x25702f(0x44b)]:return{'icon':_0xc268f7(_0x27a2ee,{}),'colorClass':_0x25702f(0x287),'i18nKey':_0x25702f(0x29f),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':'static'};case _0x12e22e[_0x25702f(0x20a)]:return{'icon':_0xc268f7(_0x27a2ee,{}),'colorClass':_0x25702f(0x2fb),'i18nKey':_0x25702f(0x2de),'clickable':!0x1,'indicator':_0x25702f(0x264)};case _0x12e22e['FETCH_MISS']:return{'icon':_0xc268f7(_0x913ace,{}),'colorClass':_0x25702f(0x443),'i18nKey':_0x25702f(0x367),'clickable':!0x1,'indicator':_0x25702f(0x289)};case _0x12e22e['NOT_COLLAB']:return{'icon':_0xc268f7(_0x4d7bac,{}),'colorClass':_0x25702f(0x297),'i18nKey':_0x25702f(0x21a),'clickable':!0x1,'indicator':_0x25702f(0x264)};case _0x12e22e['AWAITING']:case _0x12e22e[_0x25702f(0x429)]:return{'icon':_0xc268f7(_0x913ace,{}),'colorClass':_0x25702f(0x443),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case _0x12e22e[_0x25702f(0x3fc)]:return{'icon':_0xc268f7(_0x913ace,{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x25702f(0x289)};case _0x12e22e['SYNCED']:return{'icon':_0xc268f7(_0x4d7bac,{}),'colorClass':_0x25702f(0x245),'i18nKey':_0x25702f(0x3cb),'clickable':!0x1,'indicator':_0x25702f(0x264)};}}function ln(_0x11b2df){const _0x74675e=_0x54b3;let {status$:_0x526a5b}=_0x11b2df,_0x329728=_0x5d8c77(_0x526a5b,_0x12e22e[_0x74675e(0x279)]),_0x50d0a0=_0x269985(_0x100652),_0x56e3c2=_0x269985(_0x48e021),_0x52edcb=_0x5d2946(()=>cn(_0x329728),[_0x329728]),_0x5a42b6=_0x329728!==_0x12e22e['OFFLINE'],_0x1d8447=_0x50d0a0['t'](_0x52edcb[_0x74675e(0x369)]),_0x48abe8=_0x52edcb[_0x74675e(0x440)]?_0x50d0a0['t'](_0x52edcb[_0x74675e(0x440)]):_0x1d8447,_0x31811d=_0xefea27(()=>{const _0x5be10f=_0x74675e;_0x5a42b6||_0x56e3c2[_0x5be10f(0x220)]();},[_0x5a42b6,_0x56e3c2]),_0xfc98ff=_0xefea27(_0x30dd74=>{const _0x47fae0=_0x74675e;!_0x5a42b6&&(_0x30dd74['key']==='Enter'||_0x30dd74[_0x47fae0(0x33e)]==='\x20')&&(_0x30dd74[_0x47fae0(0x2f3)](),_0x56e3c2[_0x47fae0(0x220)]());},[_0x5a42b6,_0x56e3c2]),_0x1f5ccb=_0xc268f7('span',{'className':_0x5a89c9(_0x74675e(0x34d),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x52edcb['colorClass'],{'univer-animate-spin':_0x52edcb[_0x74675e(0x1e0)]===_0x74675e(0x289),'univer-animate-pulse':_0x52edcb[_0x74675e(0x1e0)]==='pulse'}),'aria-hidden':_0x74675e(0x43f),'children':_0x52edcb[_0x74675e(0x260)]}),_0x4fe10d=_0xc268f7(_0x74675e(0x250),{'className':_0x5a89c9('univer-flex\x20univer-items-center\x20univer-justify-center',_0x74675e(0x36e),_0x74675e(0x421),_0x74675e(0x40d),_0x74675e(0x434),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x52edcb[_0x74675e(0x3c7)],'univer-cursor-default':!_0x52edcb['clickable']}),'children':_0x1f5ccb});return _0x52edcb[_0x74675e(0x3c7)]?_0xc268f7(_0x59042c,{'title':_0x48abe8,'placement':_0x74675e(0x2d3),'children':_0xc268f7('button',{'type':_0x74675e(0x3d1),'onClick':_0x31811d,'onKeyDown':_0xfc98ff,'className':_0x5a89c9(_0x74675e(0x424),_0x74675e(0x45b),_0x74675e(0x278),_0x74675e(0x200)),'aria-label':_0x1d8447+'\x20-\x20'+_0x48abe8,'role':'status','aria-live':_0x74675e(0x316),'aria-atomic':'true','children':_0x4fe10d})}):_0xc268f7(_0x59042c,{'title':_0x48abe8,'placement':'bottom','children':_0xc268f7(_0x74675e(0x3ad),{'className':_0x5a89c9(_0x74675e(0x424),_0x74675e(0x45b),_0x74675e(0x278)),'aria-label':_0x1d8447,'role':_0x74675e(0x3f7),'aria-live':_0x74675e(0x316),'aria-atomic':_0x74675e(0x43f),'children':_0x4fe10d})});}function K(_0x23dd03){'@babel/helpers - typeof';const _0x429bb9=_0x54b3;return K=typeof Symbol==_0x429bb9(0x24e)&&typeof Symbol[_0x429bb9(0x42b)]=='symbol'?function(_0x25822a){return typeof _0x25822a;}:function(_0x351533){const _0x2bf5c4=_0x429bb9;return _0x351533&&typeof Symbol==_0x2bf5c4(0x24e)&&_0x351533[_0x2bf5c4(0x25b)]===Symbol&&_0x351533!==Symbol['prototype']?_0x2bf5c4(0x239):typeof _0x351533;},K(_0x23dd03);}function un(_0x5a4b0a,_0x1212fc){const _0x1adc33=_0x54b3;if(K(_0x5a4b0a)!=_0x1adc33(0x3c9)||!_0x5a4b0a)return _0x5a4b0a;var _0x4710c6=_0x5a4b0a[Symbol[_0x1adc33(0x3fe)]];if(_0x4710c6!==void 0x0){var _0x4048b1=_0x4710c6[_0x1adc33(0x238)](_0x5a4b0a,_0x1212fc||_0x1adc33(0x32d));if(K(_0x4048b1)!='object')return _0x4048b1;throw TypeError(_0x1adc33(0x3e6));}return(_0x1212fc===_0x1adc33(0x2ef)?String:Number)(_0x5a4b0a);}function dn(_0xeabab){const _0x4513ef=_0x54b3;var _0x1032a3=un(_0xeabab,_0x4513ef(0x2ef));return K(_0x1032a3)=='symbol'?_0x1032a3:_0x1032a3+'';}function q(_0x4f5f93,_0x39959f,_0x2818d0){const _0x19213c=_0x54b3;return(_0x39959f=dn(_0x39959f))in _0x4f5f93?Object[_0x19213c(0x3d5)](_0x4f5f93,_0x39959f,{'value':_0x2818d0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f5f93[_0x39959f]=_0x2818d0,_0x4f5f93;}function J(_0x44d696,_0x58930d){return function(_0x5e62d9,_0x4313b4){_0x58930d(_0x5e62d9,_0x4313b4,_0x44d696);};}function Y(_0x4d4fa9,_0x3828eb,_0x291fc0,_0x44a847){const _0x4694b1=_0x54b3;var _0x172e65=arguments[_0x4694b1(0x269)],_0xdd2850=_0x172e65<0x3?_0x3828eb:_0x44a847===null?_0x44a847=Object[_0x4694b1(0x44a)](_0x3828eb,_0x291fc0):_0x44a847,_0x442db9;if(typeof Reflect=='object'&&typeof Reflect[_0x4694b1(0x274)]==_0x4694b1(0x24e))_0xdd2850=Reflect[_0x4694b1(0x274)](_0x4d4fa9,_0x3828eb,_0x291fc0,_0x44a847);else{for(var _0x9cb3cd=_0x4d4fa9[_0x4694b1(0x269)]-0x1;_0x9cb3cd>=0x0;_0x9cb3cd--)(_0x442db9=_0x4d4fa9[_0x9cb3cd])&&(_0xdd2850=(_0x172e65<0x3?_0x442db9(_0xdd2850):_0x172e65>0x3?_0x442db9(_0x3828eb,_0x291fc0,_0xdd2850):_0x442db9(_0x3828eb,_0x291fc0))||_0xdd2850);}return _0x172e65>0x3&&_0xdd2850&&Object['defineProperty'](_0x3828eb,_0x291fc0,_0xdd2850),_0xdd2850;}let X=class extends _0x4ade65{constructor(_0x56d465,_0x2a74de,_0x457d33,_0x414b35,_0x237ece){const _0x4f81be=_0x54b3;super(),this['_univerInstanceService']=_0x56d465,this[_0x4f81be(0x2f6)]=_0x2a74de,this['_collaborationController']=_0x457d33,this[_0x4f81be(0x3e2)]=_0x414b35,this['_presenceAdapterRegistry']=_0x237ece,q(this,_0x4f81be(0x254),new _0x4693d8(_0x12e22e[_0x4f81be(0x279)])),q(this,_0x4f81be(0x3c1),new Map()),this[_0x4f81be(0x37d)](),this[_0x4f81be(0x2bb)](),this[_0x4f81be(0x40a)]();}[_0x9941cc(0x1f9)](){const _0xee59cc=_0x9941cc;this[_0xee59cc(0x3c1)]['forEach'](_0x2c5c4c=>_0x2c5c4c[_0xee59cc(0x1f9)]()),this[_0xee59cc(0x3c1)][_0xee59cc(0x26d)](),this['_status$'][_0xee59cc(0x303)](),super[_0xee59cc(0x1f9)]();}[_0x9941cc(0x2bb)](){const _0x5d031b=_0x9941cc;this[_0x5d031b(0x366)](_0x5c9537(this['_univerInstanceService']['focused$'],this[_0x5d031b(0x2ff)][_0x5d031b(0x349)](_0x3a9ab9[_0x5d031b(0x31e)]),this['_univerInstanceService'][_0x5d031b(0x349)](_0x3a9ab9[_0x5d031b(0x38a)]))[_0x5d031b(0x1e3)](_0x56b22d(()=>fn(this[_0x5d031b(0x2ff)])),_0x49a99f(),_0x5aa3c8(_0xe3f961=>_0xe3f961?this[_0x5d031b(0x249)][_0x5d031b(0x341)](_0xe3f961):_0x52386d(null)),_0x5aa3c8(_0x23cc7c=>_0x23cc7c?_0x23cc7c[_0x5d031b(0x3cf)]:_0x52386d(_0x12e22e[_0x5d031b(0x279)])))[_0x5d031b(0x44c)](_0x2e84e1=>{const _0x28cc2e=_0x5d031b;this[_0x28cc2e(0x254)][_0x28cc2e(0x31a)](_0x2e84e1);}));}[_0x9941cc(0x37d)](){const _0x3f5914=_0x9941cc;this[_0x3f5914(0x366)](this[_0x3f5914(0x3e2)][_0x3f5914(0x29a)](_0x3e468e[_0x3f5914(0x39f)],()=>_0x1685d6(pn({'status$':this['_status$'][_0x3f5914(0x221)]()}),this[_0x3f5914(0x2f6)])));}[_0x9941cc(0x40a)](){const _0x267856=_0x9941cc;let _0x43ad16=this[_0x267856(0x351)][_0x267856(0x214)][_0x267856(0x44c)](_0x14d16e=>{const _0xa05935=_0x267856;this[_0xa05935(0x3cc)](_0x14d16e);});this[_0x267856(0x366)](_0x43c8f(()=>_0x43ad16['unsubscribe']()));}[_0x9941cc(0x3cc)](_0x56f71b){const _0x210a79=_0x9941cc;let _0x49757c=new Map(_0x56f71b['filter'](_0x5574e9=>_0x5574e9[_0x210a79(0x35f)]!=null)[_0x210a79(0x2a1)](_0x4cc90d=>[_0x4cc90d[_0x210a79(0x1ed)],_0x4cc90d]));this[_0x210a79(0x3c1)][_0x210a79(0x285)]((_0x8f42c9,_0x135a63)=>{const _0x384e73=_0x210a79;_0x49757c[_0x384e73(0x2bf)](_0x135a63)||(_0x8f42c9[_0x384e73(0x1f9)](),this['_presenceStatusRegistrations'][_0x384e73(0x3c0)](_0x135a63));}),_0x49757c['forEach']((_0x4cc1e4,_0xf9668a)=>{const _0x44ee48=_0x210a79;this[_0x44ee48(0x3c1)][_0x44ee48(0x2bf)](_0xf9668a)||this[_0x44ee48(0x293)](_0x4cc1e4);});}[_0x9941cc(0x293)](_0x1f5b24){const _0x4ff3e5=_0x9941cc;let _0x27ed93=_0x1f5b24[_0x4ff3e5(0x35f)];if(!_0x27ed93)return;let _0x31747c=new _0x2593d8(),_0x36ed0d=new _0x4693d8(_0x12e22e[_0x4ff3e5(0x279)]);_0x31747c[_0x4ff3e5(0x1f1)](_0x43c8f(()=>_0x36ed0d[_0x4ff3e5(0x303)]())),_0x31747c[_0x4ff3e5(0x1f1)](this[_0x4ff3e5(0x3e2)][_0x4ff3e5(0x29a)](_0x27ed93,()=>_0x1685d6(pn({'status$':_0x36ed0d[_0x4ff3e5(0x221)]()}),this[_0x4ff3e5(0x2f6)])));let _0x1ad0d1=this[_0x4ff3e5(0x2ff)][_0x4ff3e5(0x349)](_0x1f5b24[_0x4ff3e5(0x1ed)])[_0x4ff3e5(0x1e3)](_0x56b22d(_0x405941=>(_0x405941==null?void 0x0:_0x405941[_0x4ff3e5(0x29c)]())??null),_0x49a99f(),_0x5aa3c8(_0x48fa16=>_0x48fa16?this['_collaborationController']['getCollabEntity$'](_0x48fa16):_0x52386d(null)),_0x5aa3c8(_0x77e32a=>(_0x77e32a==null?void 0x0:_0x77e32a[_0x4ff3e5(0x3cf)])??_0x52386d(_0x12e22e[_0x4ff3e5(0x279)])))['subscribe'](_0x4842e9=>_0x36ed0d[_0x4ff3e5(0x31a)](_0x4842e9));_0x31747c[_0x4ff3e5(0x1f1)](_0x43c8f(()=>_0x1ad0d1[_0x4ff3e5(0x324)]())),this['_presenceStatusRegistrations']['set'](_0x1f5b24[_0x4ff3e5(0x1ed)],_0x31747c);}};X=Y([J(0x0,_0x479ada),J(0x1,_0x5e7a64(_0x3a52d9)),J(0x2,_0x5e7a64(_0xa6a463)),J(0x3,_0x3b6d8f),J(0x4,_0x5e7a64(_0x2ca04e))],X);function fn(_0x5375f9){const _0x3cabd8=_0x9941cc;let _0x42767f=_0x5375f9[_0x3cabd8(0x336)](),_0x11a6e9=_0x42767f==null?void 0x0:_0x42767f['getUnitId']();if(_0x11a6e9&&!_0x125e48(_0x11a6e9))return _0x11a6e9;let _0x335931=_0x5375f9[_0x3cabd8(0x445)](_0x3a9ab9[_0x3cabd8(0x31e)]),_0x757abe=_0x335931==null?void 0x0:_0x335931[_0x3cabd8(0x29c)]();if(_0x757abe&&!_0x125e48(_0x757abe))return _0x757abe;let _0xd5b82=_0x5375f9[_0x3cabd8(0x445)](_0x3a9ab9[_0x3cabd8(0x38a)]);if(_0xd5b82)return _0xd5b82[_0x3cabd8(0x29c)]();let _0x83b41c=_0x5375f9[_0x3cabd8(0x393)](_0x3a9ab9[_0x3cabd8(0x31e)])['find'](_0xdf16ac=>!_0x125e48(_0xdf16ac[_0x3cabd8(0x29c)]()));return _0x83b41c?_0x83b41c['getUnitId']():null;}function _0x5de4(){const _0x3e11bd=['SOCKET_FAILED','object','values','collaboration-client-ui.collabStatus.synced','_syncPresenceStatusComponents','state$','urlChange$','status$','_toggleOffline','button','_color','_getScale','set','defineProperty','2320724vDuIGU','ranges','_docTransformSelectionsService','192bMasNq','pointer','sheetId','_colorAssignService','setParam','_messageIds','getRangePointData','setOffsetY','size','_uiPartsService','deepClone','_collaborationUIEventService','removeRemotePresence','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_imageIoService','0.2)','_themeService','CONFLICT_PROCESSING','OTHER_CLIENT_EDITING','labelHorizontalPosition','_entityInit$','_listenToOnlineEvent','findNodePositionByCharIndex','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','black','USERS_LEAVE','getConfig','setAlpha','newValue','_handleLeaveEvent','status','collaboration-client-ui.conflict.clearFailed','drawWith','exhaustSavingTask','_session','PENDING','allSettled','toPrimitive','selection','Error','startsWith','addHandlerCallback','getStateCache','parse','options','online','_assignedColors','_adapter','_registerDependencies','_initPresenceStatusComponents','memberId','_docTransformStateCacheService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','collaboration-client-ui.config','SUBMIT_CHANGESET_TIMEOUT','focusedId','_transformHistoryAndStateStack','collab-text-range-','_clearOtherTimers','currentSkeleton$','roomMembers$','syncEditingCollabCursor','clearRemotePresences','getSheetBySheetId','TEXT','_collabCursorController','setInterval','loadOfflineData','_drawAnchor','_setupBeforeClosingHandler','reason','executionId','univer-transition-all\x20univer-duration-200','runId','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_scheduleSaving','eventID','timedOut','keys','AWAITING_WITH_PENDING','_cursorShapes','iterator','_activeSaveTaskMap','top','_refRangeService','ticket','event$','startOffset','_stopBlinking','_latestStates','dark:focus:!univer-ring-offset-gray-800','params','rgba(255,\x20255,\x20255,\x200.01)','small','clearTimeout','InsertRangeMoveRightCommandId','entityInit$','tableSource','_handleHover','entries','unitId','true','tooltipKey','filename','getParam','univer-text-blue-500','ONLINE','getCurrentUnitOfType','disableLocalCache','assignAColorForMemberID','loading','_updateMessage','getOwnPropertyDescriptor','OFFLINE','subscribe','_messageService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','addEventListener','href','_refreshCollabCursors','collaboration-client-ui.permission.content','getMergeData','right','init','_blinkIntervalTimer','GLOBAL','resolve','_replaceConflictNotification','with','univer-border-none\x20univer-bg-transparent','_lastPointer','_dataLoaderService','_syncAdapters','indicator','saveOfflineData','_uploadLog','pipe','body','_createSocketURL','pluginName','hovered','COMPLETE','_setupSubUnitSync','red.300','_docTransformIMECacheService','source','unitType','_hover','memberID','_userManagerService','add','max','dispose$','_monkeyPatchLogService','_updateURLWithCurrentState','stream','selectedIds','getCollabCursors$','dispose','range','_removeRemotePresence','_id','pageIndex','data','selections','univer-appearance-none','createInstance','_listenToOfflineEvent','executeCommand','_docSkeletonManagerService','getUnitStatus$','transformStateCache','subUnitId','update','_drawTextRange','CONFLICT','getMemberID','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','contains','state','_initEvent','startRow','find','addClipboardHook','collaboration-client-ui.operation.update-remote-unit-presence','adapters$','getUnit','override','JOIN_ROOM_FAILED','3735408OZNNrL','_backgroundColor','collaboration-client-ui.collabStatus.notCollab','getTypeOfUnitAdded$','cursorInfo','getCurrentSelections','_scene','_conflictNotification','reconnect','asObservable','MoveRangeCommandId','_saveTaskMap','version','Warning','_blockProgressWatches','_range','enableFrontendLog','_getMergeRange','DeleteRangeMoveLeftCommandId','timeoutState$','_scheduleClearOtherTimer','searchParams','19196838mUQODm','some','sessionStatus$','unitID','_isBlinkVisible','_retryConflictCacheClear','_beforeCloseService','_localStorageService','_transformPreviousActiveRange','_onCursorDelete','call','symbol','collaboration-client-ui.snapshotLoading.timeout','all','onTransformChange$','PERMISSION_DENIED','_context','_getUserId','getUndoRedoMutationParamsCache','userId','m1Prime','getDocRanges','textRanges','univer-text-green-500','unit','_getSheetObject','stringify','_collaborationController','_cachedData','getTypeOfUnitDisposed$','restore','RemoveRowCommandId','function','loadUnit','span','registerRefRange','_startEntity','canRenderAnchor','_status$','collab-text-anchor-','loadedBlocks','FromArray','addObject','strokeWidth','transformMutationsWithChangeset','constructor','redoState','getScrollXYInfoByViewport','_blinkTimer','_name','icon','location','_onRefRangeChange','_scheduleHeartbeat','static','tableId','_memberService','join','saveTaskMap','length','highlightSecond','value','_localCacheService','clear','jiqing.500','catch','offline','_startBlinking','_online$','labelPosition','decorate','reload','transformIMECache','_updateLocalCursor','univer-m-0\x20univer-p-0','NOT_COLLAB','focus','collab-rect-range-','onLine','_retryingConflictCacheUnitIDs','showText','_collabSessionService','_localeService','_doCreateSocket','transform','setItem','setStateCache','forEach','_getLighterColor','univer-text-red-500','sessionTicket','spin','8657tVKvVf','roomMembers','_initEntityListener','debug','getActiveSheet','_getSaveTimeout','rgb','content','removeParam','_registerPresenceStatusComponent','enableUrlUnitLoader','setRemotePresence','_getSessionTicket','univer-text-gray-400','_highlightSecond','registerBeforeClose','registerComponent','isActive','getUnitId','fill','timeoutId','collaboration-client-ui.collabStatus.offline','unshift','map','_eventUnsubscribe','hide','collaboration-client-ui.session.connection-failed','canRenderSelection','bind','getColorFromTheme','_anchor','arc','transformRemoteChangeset','every','_removeClearOtherTimer','isArray','_notificationService',':backup:','popstate','_renderManagerService','_getAnchorBounding','replaceState','column','_handleJoinEvent','online$','...','width','getRenderUnitById','closePath','_initStatusListener','search','resize','snapshot-loading-','has','InsertRowCommandId','_disposeEntitiesForType','onPointerLeave$','_commandService','\x20at\x20','disposeUnit','doc.mutation.rich-text-editing','addObjects','getSkeleton','wsSessionTicketUrl','_isDisposed','toString','replace','_hovered','VIEW_MAIN','shareInterval','collaboration-client-ui.conflict.content','setTimeout','offsetY','bottom','push','_disposeEntity','_heartbeatTimer','_httpService','transformByState','_handleEvent','_clearRemotePresences','_timeoutState$','CLOSE_ROOM','highlight','collaboration-client-ui.collabStatus.conflict','setConfig','origin','[Unhandled\x20Rejection]:\x20','removeEventListener','setActiveRange','_showConflictProcessingNotification','collaboration-client-ui.conflict.processing','mutations','number','createSocket','3022225UBRIfe','pageType','InsertColCommandId','_docSelectionManagerService','setShapeProps','prepareTransformSelections','string','_config','remove','invokeId','preventDefault','storage','_registerRenderDependencies','_injector','finally','_initUnhandledRejectionListener','save','fillStyle','univer-text-orange-500','columnGroupId','name','setUndoRedoMutationParamsCache','_univerInstanceService','rgba(','@univerjs-pro/collaboration-client-ui','_logService','complete','transformMutation','history','getMember','_labelHorizontalPosition','onRendered','post','_init','visible','_ensureSubject','subunit','font','split','yellow.400','backupOfflineData','/run/','endColumn','registerRenderModule','fillText','polite','_docStateChangeManagerService','OPERATION','_initCommandExecutedListener','next','NO_OTHER_CLIENTS_EDITING','_disabled','color','UNIVER_DOC','startColumn','onCommandExecuted','unhandledrejection','_docSyncEditingCollabCursorService','m2Prime','unsubscribe','[RemoteUniscriptService]:\x20no\x20focused\x20unit','OTHER_CLIENTS_EDITING','_normalizeUserId','_initialized','toISOString','stack','pushState','collaboration-client-ui.conflict.title','default','includes','4ffiyqR','onPointerMove$','_urlService','_transformUndoRedoStack','/universer-api/frontend/logs','parseInt','slice','getFocusedUnit','_offsetY','toRgbString','[CollaborationDataLoaderController]','_startDocCollabCursor','_updateSubUnitFromURLParams','text','cursorInfo$','key','_initWindowErrorListener','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','getCollabEntity$','_unitOnClients','rgba','_saveCache','backgroundColor','getAncestorScale','isFinite','_memberID','getCurrentTypeOfUnit$','InsertRangeMoveDownCommandId','beginPath','_cursor','univer-flex\x20univer-items-center\x20univer-justify-center','_shapes','_online','onMouseMove','_presenceAdapterRegistry','enableDocumentCollaborationUI','runOnServer','from','result','_colorIndex','localPresence$','sheetID','collaboration-client-ui.snapshotLoading.refresh','_sendLocalPresence','_instanceService','886998SbOgeR','presenceKind','_send','statusUIPart','_disposed','show','clearInterval','_clearBlockProgressWatch','_trackActiveSaveTask','Unknown\x20user','disposeWithMe','collaboration-client-ui.collabStatus.fetchMiss','type','i18nKey','Failed','_updateCollabCursors','measureText','_configService','univer-h-8\x20univer-w-8\x20univer-rounded-lg','kind','_render','saveImage','message','_clearTimeoutState','clearOfflineData','then','undoState','filter',',\x200.2)','colno','evenodd','lineTo','_cursorInfo$','_initStatusComponent','_highlight','fillRule','green.600','visibilitychange','getSheetId','replaceSelectionInfoWithoutRefresh','_removeCollabCursors','_roomMembers$','_adapterDisposables','enableOfflineEditing','collaboration-client-ui.conflict.retry','[Window\x20Error]:\x20','UNIVER_SHEET','_syncEditingCollabCursorService','_draw','ACTIVE_UNIT_EVENT_CHANNEL','_hideTimer','DeleteRangeMoveUpCommandId','_adapterRegistry','_selfUnitIDs','_initResize','getAllUnitsForType','117327UlLDir','totalBlocks','_showConflictCacheClearFailedNotification','currentTheme$','_pendingEntities','_toggleOnline','visibilityState','editingUnit','UPDATE_CURSOR','makeDirty','_initUserListener','HEADER_MENU','send','_cursors','get','collabCursorState$','min','refreshLabel','_pointerMoveDisposable','getUnhiddenWorksheets','_unitStatus','1.1.0','_sheetSkeletonManagerService','_collaborationSessionService','_snapshotLoadingService','div','getCurrentUser','stage','getValue','_onCursorUpdate','flatMap','columnIndex','_handleCursorUpdate','onPointerEnter$','_dispose$','onStarting','subscribeEvent','snapshot-loading-timeout','_handleHeartbeatEvent','requireSession','_entities','_showText','left','error','delete','_presenceStatusRegistrations','_textBubble','_transformService','getCurrentRevOfUnit','_anchorDot','_labelPosition','clickable'];_0x5de4=function(){return _0x3e11bd;};return _0x5de4();}function pn(_0x3cd07d){let {status$:_0x1193a7}=_0x3cd07d;return function(){return _0xc268f7(ln,{'status$':_0x1193a7});};}var mn=_0x9941cc(0x301),hn=_0x9941cc(0x3a9);const gn={'id':_0x9941cc(0x213),'type':_0x2b7b9b[_0x9941cc(0x318)],'handler':(_0x446715,_0x2b66ec)=>{const _0x2e38c3=_0x9941cc;let _0x5641ba=_0x446715[_0x2e38c3(0x3a2)](_0x2ca04e)[_0x2e38c3(0x3a2)](_0x2b66ec[_0x2e38c3(0x1ed)]);if(!_0x5641ba)return!0x1;switch(_0x2b66ec['update'][_0x2e38c3(0x368)]){case _0x2e38c3(0x3d4):return _0x5641ba[_0x2e38c3(0x295)](_0x2b66ec['update'][_0x2e38c3(0x20e)]),!0x0;case _0x2e38c3(0x2f1):return _0x5641ba[_0x2e38c3(0x3e5)](_0x2b66ec[_0x2e38c3(0x208)]['unitId'],_0x2b66ec[_0x2e38c3(0x208)][_0x2e38c3(0x40b)]),!0x0;case _0x2e38c3(0x26d):return _0x5641ba[_0x2e38c3(0x417)](_0x2b66ec[_0x2e38c3(0x208)]['unitId']),!0x0;default:return!0x1;}}},_n={};let vn=class extends _0x26adc4{constructor(_0x4eeea7,_0x983ac1){const _0x4c7358=_0x9941cc;super(),this['_docClipboardService']=_0x4eeea7,this[_0x4c7358(0x3e7)]=_0x983ac1,this[_0x4c7358(0x30a)]();}[_0x9941cc(0x30a)](){const _0x4dcc72=_0x9941cc;let _0x2de8ca=this;this[_0x4dcc72(0x366)](this['_docClipboardService'][_0x4dcc72(0x212)]({'onBeforePasteImage':async _0x2f2a35=>{const _0x2f8e46=_0x4dcc72;let _0x274064=await _0x2de8ca[_0x2f8e46(0x3e7)][_0x2f8e46(0x371)](_0x2f2a35);return _0x274064?{'source':_0x274064[_0x2f8e46(0x1ec)],'imageSourceType':_0x274064['imageSourceType']}:null;}}));}};vn=Y([J(0x0,_0x336070),J(0x1,_0x138ac6)],vn);const yn=['purple.300',_0x9941cc(0x26e),_0x9941cc(0x380),_0x9941cc(0x1ea),'blue.400',_0x9941cc(0x310)];var bn=class extends _0x4ade65{constructor(..._0x2bfce3){const _0x103a5a=_0x9941cc;super(..._0x2bfce3),q(this,_0x103a5a(0x407),new Map()),q(this,_0x103a5a(0x356),0x0);}[_0x9941cc(0x447)](_0x3ac2d4){const _0xdfa827=_0x9941cc;if(this[_0xdfa827(0x407)][_0xdfa827(0x2bf)](_0x3ac2d4))return this[_0xdfa827(0x407)][_0xdfa827(0x3a2)](_0x3ac2d4);let _0x581890=yn[this[_0xdfa827(0x356)]];return this[_0xdfa827(0x356)]=(this[_0xdfa827(0x356)]+0x1)%yn['length'],this[_0xdfa827(0x407)]['set'](_0x3ac2d4,_0x581890),_0x581890;}};function xn(_0x2aeee9){const _0x118351=_0x9941cc;let _0x33a8e8='';for(let _0x53f1c9 of _0x2aeee9){let {startOffset:_0x387ecb,endOffset:_0x325682,isActive:_0x242d29,rangeType:_0x2a14ef,segmentId:_0x33090a,segmentPage:_0x249492}=_0x53f1c9;_0x33a8e8[_0x118351(0x269)]&&(_0x33a8e8+=','),_0x33a8e8+=_0x387ecb+':'+_0x325682+':'+(_0x242d29?'1':'0')+':'+_0x2a14ef+':'+_0x33090a+':'+_0x249492;}return _0x33a8e8;}function Sn(_0x49230e){const _0xeac2fa=_0x9941cc;let _0x3416c1=_0x49230e[_0xeac2fa(0x30f)](','),_0x125b45=[];for(let _0x4bc022 of _0x3416c1){let [_0x2ae0ee,_0x34277d,_0x3fe14b,_0x307ae5,_0x595181,_0x2645fd]=_0x4bc022['split'](':');_0x125b45[_0xeac2fa(0x2d4)]({'startOffset':Number(_0x2ae0ee),'endOffset':Number(_0x34277d),'collapsed':_0x2ae0ee===_0x34277d,'isActive':_0x3fe14b==='1','rangeType':_0x307ae5===_0x13669b[_0xeac2fa(0x419)]?_0x13669b[_0xeac2fa(0x419)]:_0x13669b['RECT'],'segmentId':typeof _0x595181==_0xeac2fa(0x2ef)?String(_0x595181):'','segmentPage':Number(_0x2645fd??-0x1)});}return _0x125b45['some'](_0x53e25b=>_0x53e25b[_0xeac2fa(0x29b)])||(_0x125b45[0x0][_0xeac2fa(0x29b)]=!0x0),_0x125b45;}var Cn=class extends _0x26adc4{constructor(..._0x56588c){const _0x3137e2=_0x9941cc;super(..._0x56588c),q(this,'_collabCursorState$',new _0x4693d8(null)),q(this,_0x3137e2(0x3a3),this['_collabCursorState$'][_0x3137e2(0x221)]());}[_0x9941cc(0x416)](_0xb24f4){const _0x20dec9=_0x9941cc;let {unitID:_0x32099d,memberID:_0x4ef42f,textRanges:_0x244d52}=_0xb24f4,_0x40beea=xn(_0x244d52);if(_0x40beea==='')return;let _0x3d18ac={'unitID':_0x32099d,'memberID':_0x4ef42f,'selection':_0x40beea};this['_collabCursorState$'][_0x20dec9(0x31a)](_0x3d18ac);}};let wn=class extends _0x26adc4{get['cursorInfo'](){const _0x2a4da5=_0x9941cc;return this['_cursorInfo$'][_0x2a4da5(0x3b0)]();}get['roomMembers'](){const _0x5b7b99=_0x9941cc;return this[_0x5b7b99(0x385)]['getValue']();}constructor(_0x3a63a8,_0x3e95e3,_0x286116,_0x3d2bb3,_0x217f0e,_0x3fa9ad,_0x5b8c5e,_0xde8375,_0x52f313){const _0x24084e=_0x9941cc;super(),this[_0x24084e(0x231)]=_0x3a63a8,this['_session']=_0x3e95e3,this['_injector']=_0x286116,this[_0x24084e(0x3dc)]=_0x3d2bb3,this[_0x24084e(0x266)]=_0x217f0e,this[_0x24084e(0x38b)]=_0x3fa9ad,this[_0x24084e(0x3c3)]=_0x5b8c5e,this[_0x24084e(0x2ff)]=_0xde8375,this[_0x24084e(0x2c3)]=_0x52f313,q(this,'_online',!0x1),q(this,_0x24084e(0x30a),!0x1),q(this,_0x24084e(0x37c),new _0x4693d8(new Map())),q(this,'cursorInfo$',this[_0x24084e(0x37c)][_0x24084e(0x221)]()),q(this,_0x24084e(0x385),new _0x4693d8([])),q(this,_0x24084e(0x415),this[_0x24084e(0x385)][_0x24084e(0x1e3)](_0x2d0b95(0x12c))),q(this,'_updateLocalCursor',_0x3580a2(_0x343b0d=>{const _0x11b098=_0x24084e;let _0x4e02ab={'eventID':_0x4d0259[_0x11b098(0x39c)],'data':{'unitID':this[_0x11b098(0x231)],'memberID':this[_0x11b098(0x3fb)]['getMemberID'](),'selection':xn(_0x343b0d)}};this[_0x11b098(0x3fb)]['send'](_0x4e02ab,this['unitID']);},0x64));}[_0x9941cc(0x1f9)](){const _0x54e7e2=_0x9941cc;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x54e7e2(0x37c)][_0x54e7e2(0x303)](),this['_roomMembers$'][_0x54e7e2(0x31a)]([]),this[_0x54e7e2(0x385)][_0x54e7e2(0x303)]();}['init'](){const _0x5dbdf3=_0x9941cc;this['_init']||(this[_0x5dbdf3(0x30a)]=!0x0,this[_0x5dbdf3(0x3fb)][_0x5dbdf3(0x230)][_0x5dbdf3(0x1e3)](_0x4c8245(this[_0x5dbdf3(0x1f3)]))[_0x5dbdf3(0x44c)](_0x332821=>{const _0x47d30f=_0x5dbdf3;_0x332821===_0x15dfc3['ONLINE']?this[_0x47d30f(0x399)]():this[_0x47d30f(0x3d0)]();}),this[_0x5dbdf3(0x3fb)]['event$'][_0x5dbdf3(0x1e3)](_0x4c8245(this[_0x5dbdf3(0x1f3)]))[_0x5dbdf3(0x44c)](_0x1aeb1b=>{const _0x1f8715=_0x5dbdf3;let _0x3f1d5a=_0x1aeb1b[_0x1f8715(0x426)];_0x3f1d5a===_0x4d0259[_0x1f8715(0x39c)]&&this['_onCursorUpdate'](_0x1aeb1b),_0x3f1d5a===_0x4d0259[_0x1f8715(0x3f2)]&&this[_0x1f8715(0x237)](_0x1aeb1b);}),this[_0x5dbdf3(0x366)](this[_0x5dbdf3(0x2c3)][_0x5dbdf3(0x320)](_0x58871b=>{const _0x4a05c9=_0x5dbdf3;let _0x321dd6=_0x58871b[_0x4a05c9(0x435)];_0x321dd6!=null&&this['_online']&&_0x58871b['id']===_0x1bd45a['id']&&_0x321dd6['unitId']===this[_0x4a05c9(0x231)]&&_0x321dd6['isEditing']===!0x1&&_0x321dd6['ranges']['length']>0x0&&this['_updateLocalCursor'](_0x321dd6[_0x4a05c9(0x3d7)]);})),this[_0x5dbdf3(0x38b)][_0x5dbdf3(0x3a3)][_0x5dbdf3(0x1e3)](_0x4c8245(this['dispose$']))[_0x5dbdf3(0x44c)](_0x4822df=>{const _0x58fe01=_0x5dbdf3;if((_0x4822df==null?void 0x0:_0x4822df['unitID'])!==this['unitID'])return;let _0x1ca866={'eventID':_0x4d0259['UPDATE_CURSOR'],'data':_0x4822df};this[_0x58fe01(0x3b1)](_0x1ca866);}),this[_0x5dbdf3(0x366)](this[_0x5dbdf3(0x2c3)][_0x5dbdf3(0x320)](_0x6c3706=>{const _0x5b7652=_0x5dbdf3;if(_0x6c3706[_0x5b7652(0x435)]==null)return;let _0x42e953=_0x6c3706[_0x5b7652(0x435)];if(_0x6c3706['id']!==_0x5e3f06['id']||_0x42e953[_0x5b7652(0x43e)]!==this[_0x5b7652(0x231)])return;let _0x23a8eb={'id':'doc.mutation.rich-text-editing','params':_0x42e953},_0x196cfd=this[_0x5b7652(0x21c)];for(let [_0x54384f,_0x1ce3d3]of _0x196cfd){let _0x31c48a={'id':_0x5b7652(0x2c6),'params':{'unitId':this[_0x5b7652(0x231)],'actions':null,'textRanges':_0x1ce3d3['ranges']}},_0x1d546e=this[_0x5b7652(0x3c3)][_0x5b7652(0x304)](_0x23a8eb,_0x31c48a,!0x1);if(_0x1cec04(_0x1d546e))throw _0x1d546e[_0x5b7652(0x3bf)];_0x196cfd[_0x5b7652(0x3d4)](_0x54384f,{..._0x1ce3d3,'ranges':_0x1d546e['m2Prime']['params'][_0x5b7652(0x244)]});}queueMicrotask(()=>{const _0x4c4919=_0x5b7652;this[_0x4c4919(0x37c)][_0x4c4919(0x31a)](_0x196cfd);});})));}[_0x9941cc(0x3b1)](_0x3c0d7e){const _0x11286b=_0x9941cc;var _0x18f14a;let {memberID:_0x2bab35,selection:_0x24adf7}=_0x3c0d7e[_0x11286b(0x1fe)],_0x5241c4=Sn(_0x24adf7),_0x51154f=((_0x18f14a=this[_0x11286b(0x266)]['getMember'](this['unitID'],_0x2bab35))==null?void 0x0:_0x18f14a[_0x11286b(0x2fd)])??_0x11286b(0x365),_0x2f1b84={'color':this[_0x11286b(0x3dc)]['assignAColorForMemberID'](_0x2bab35),'name':_0x51154f,'ranges':_0x5241c4},_0x1d592e=this['cursorInfo'];_0x1d592e[_0x11286b(0x3d4)](_0x2bab35,_0x2f1b84),this[_0x11286b(0x37c)][_0x11286b(0x31a)](_0x1d592e);}[_0x9941cc(0x237)](_0x33b3a0){const _0xdbcfe9=_0x9941cc;let {memberID:_0x51162f}=_0x33b3a0['data'],_0x598ac5=this['cursorInfo'];_0x598ac5['delete'](_0x51162f),this[_0xdbcfe9(0x37c)][_0xdbcfe9(0x31a)](_0x598ac5);}[_0x9941cc(0x399)](){const _0x4fe59c=_0x9941cc;var _0x5513a4;if(this[_0x4fe59c(0x34f)]=!0x0,((_0x5513a4=this['_univerInstanceService'][_0x4fe59c(0x336)]())==null?void 0x0:_0x5513a4[_0x4fe59c(0x29c)]())!==this['unitID'])return;let _0x5c7652=this[_0x4fe59c(0x2f6)][_0x4fe59c(0x3a2)](_0x5eb373)['getDocRanges']();Array['isArray'](_0x5c7652)&&_0x5c7652[_0x4fe59c(0x269)]>0x0&&this['_updateLocalCursor'](_0x5c7652);}['_toggleOffline'](){const _0x4f3e0e=_0x9941cc;this[_0x4f3e0e(0x34f)]=!0x1;}};wn=Y([J(0x2,_0x5e7a64(_0x3a52d9)),J(0x3,_0x5e7a64(bn)),J(0x4,_0x5e7a64(_0x25c118)),J(0x5,_0x5e7a64(Cn)),J(0x6,_0x1a08d7),J(0x7,_0x479ada),J(0x8,_0x309b58)],wn);const Tn=()=>{let _0x173765=[],_0x39a74b=!0x1;return _0x101be5=>{_0x173765['push'](_0x101be5),_0x39a74b||(_0x39a74b=!0x0,setTimeout(()=>{const _0x1d574d=_0x54b3;_0x173765[_0x1d574d(0x285)](_0x3ba8da=>_0x3ba8da()),_0x173765=[],_0x39a74b=!0x1;}));};};let En=class extends _0x26adc4{get[_0x9941cc(0x21c)](){const _0xa37de=_0x9941cc;return this[_0xa37de(0x37c)][_0xa37de(0x3b0)]();}get[_0x9941cc(0x28b)](){const _0x3b05f1=_0x9941cc;return this[_0x3b05f1(0x385)][_0x3b05f1(0x3b0)]();}constructor(_0x5a95d1,_0x504da2,_0x36ef40,_0x39d7a3,_0xb35fbd,_0x2954e8,_0x480e8e,_0x360f46){const _0x45be2f=_0x9941cc;super(),this[_0x45be2f(0x231)]=_0x5a95d1,this[_0x45be2f(0x3fb)]=_0x504da2,this['_injector']=_0x36ef40,this[_0x45be2f(0x3dc)]=_0x39d7a3,this[_0x45be2f(0x266)]=_0xb35fbd,this[_0x45be2f(0x2ff)]=_0x2954e8,this[_0x45be2f(0x2c3)]=_0x480e8e,this[_0x45be2f(0x42e)]=_0x360f46,q(this,_0x45be2f(0x34f),!0x1),q(this,_0x45be2f(0x30a),!0x1),q(this,'_cursorInfo$',new _0x4693d8(new Map())),q(this,_0x45be2f(0x33d),this['_cursorInfo$']['asObservable']()),q(this,_0x45be2f(0x385),new _0x4693d8([])),q(this,_0x45be2f(0x415),this[_0x45be2f(0x385)][_0x45be2f(0x1e3)](_0x2d0b95(0x12c))),q(this,_0x45be2f(0x277),_0x3580a2((_0xd37ffb,_0x57c7d7)=>{const _0x5318bf=_0x45be2f;let _0x1276e6={'eventID':_0x4d0259[_0x5318bf(0x39c)],'data':{'unitID':this[_0x5318bf(0x231)],'memberID':this[_0x5318bf(0x3fb)][_0x5318bf(0x20b)](),'selection':_0x2f180d(_0xd37ffb,_0x57c7d7[_0x5318bf(0x1fa)])}};this[_0x5318bf(0x3fb)][_0x5318bf(0x3a0)](_0x1276e6,this[_0x5318bf(0x231)]);},0x64));}[_0x9941cc(0x1f9)](){const _0x42939c=_0x9941cc;super[_0x42939c(0x1f9)](),this[_0x42939c(0x37c)]['next'](new Map()),this[_0x42939c(0x37c)][_0x42939c(0x303)](),this[_0x42939c(0x385)]['next']([]),this[_0x42939c(0x385)][_0x42939c(0x303)]();}['init'](){const _0x5f2d2d=_0x9941cc;this['_init']||(this[_0x5f2d2d(0x30a)]=!0x0,this[_0x5f2d2d(0x3fb)][_0x5f2d2d(0x230)]['pipe'](_0x4c8245(this['dispose$']))[_0x5f2d2d(0x44c)](_0x15319e=>{const _0xee12f0=_0x5f2d2d;_0x15319e===_0x15dfc3[_0xee12f0(0x444)]?this['_toggleOnline']():this[_0xee12f0(0x3d0)]();}),this[_0x5f2d2d(0x3fb)]['event$'][_0x5f2d2d(0x1e3)](_0x4c8245(this[_0x5f2d2d(0x1f3)]))[_0x5f2d2d(0x44c)](_0x3adbda=>{const _0x46146d=_0x5f2d2d;let _0xad0227=_0x3adbda[_0x46146d(0x426)];_0xad0227===_0x4d0259['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3adbda),_0xad0227===_0x4d0259[_0x46146d(0x3f2)]&&this['_onCursorDelete'](_0x3adbda);}),this['_onRefRangeChange'](),this[_0x5f2d2d(0x366)](this[_0x5f2d2d(0x2c3)][_0x5f2d2d(0x320)](_0x45a5f4=>{const _0x315b49=_0x5f2d2d;if(this[_0x315b49(0x34f)]&&_0x45a5f4['id']===_0x1a27b4['id']&&_0x45a5f4[_0x315b49(0x435)][_0x315b49(0x43e)]===this['unitID']){let _0x38f7ad=_0x45a5f4[_0x315b49(0x435)];this[_0x315b49(0x277)](_0x38f7ad[_0x315b49(0x207)],_0x38f7ad[_0x315b49(0x1ff)][0x0]);}})));}[_0x9941cc(0x3b1)](_0x1ce9a8){const _0x392dc8=_0x9941cc;var _0xddedae;let {memberID:_0x374dc6,selection:_0x4929fb}=_0x1ce9a8[_0x392dc8(0x1fe)],{sheetName:_0x9331d8,range:_0x3340fc}=_0x4a0b6c(_0x4929fb),_0x4cb13b={'name':((_0xddedae=this[_0x392dc8(0x266)][_0x392dc8(0x306)](this[_0x392dc8(0x231)],_0x374dc6))==null?void 0x0:_0xddedae[_0x392dc8(0x2fd)])??'Unknown\x20user','range':this[_0x392dc8(0x229)](_0x9331d8,_0x3340fc),'sheetID':_0x9331d8,'color':this[_0x392dc8(0x3dc)][_0x392dc8(0x447)](_0x374dc6),'selection':_0x4929fb},_0x27ce1a=this[_0x392dc8(0x21c)];_0x27ce1a[_0x392dc8(0x3d4)](_0x374dc6,_0x4cb13b),this[_0x392dc8(0x37c)][_0x392dc8(0x31a)](_0x27ce1a);}[_0x9941cc(0x237)](_0x550b80){const _0x4a9104=_0x9941cc;let {memberID:_0x566722}=_0x550b80[_0x4a9104(0x1fe)],_0x1211da=this[_0x4a9104(0x21c)];_0x1211da[_0x4a9104(0x3c0)](_0x566722),this[_0x4a9104(0x37c)]['next'](_0x1211da);}['_getMergeRange'](_0x46af9e,_0x44dd3d){const _0x3c6c88=_0x9941cc;var _0x3d76b9;let _0x579a54=(_0x3d76b9=this[_0x3c6c88(0x2ff)][_0x3c6c88(0x215)](this[_0x3c6c88(0x231)],_0x3a9ab9[_0x3c6c88(0x38a)]))==null||(_0x3d76b9=_0x3d76b9['getSheetBySheetId'](_0x46af9e))==null?void 0x0:_0x3d76b9[_0x3c6c88(0x453)]();return(_0x579a54==null?void 0x0:_0x579a54[_0x3c6c88(0x211)](_0x39f835=>_0x256130[_0x3c6c88(0x20d)](_0x39f835,_0x44dd3d)))||_0x44dd3d;}[_0x9941cc(0x262)](){const _0x5bc076=_0x9941cc;let _0x57135b=new _0x2593d8(),_0x403d98=Tn(),_0x1336c4=()=>{const _0x1c8069=_0x54b3;_0x57135b[_0x1c8069(0x1f9)]();let _0x5f1737=(_0x59c587,_0x57ea75,_0x27e825,_0xb95977)=>{const _0x42009f=_0x1c8069;let _0x2ae3f6=[];switch(_0x59c587['id']){case _0x1f3c8d[_0x42009f(0x22a)]:_0x2ae3f6=_0x1f11a9(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x38f)]:_0x2ae3f6=_0x24c592(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x2eb)]:_0x2ae3f6=_0x454271(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x34a)]:_0x2ae3f6=_0x2fa32d(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x439)]:_0x2ae3f6=_0x53b7ce(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x2c0)]:_0x2ae3f6=_0x59f1f6(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x222)]:_0x2ae3f6=_0x348df5(_0x59c587,_0xb95977);break;case _0x1f3c8d['RemoveColCommandId']:_0x2ae3f6=_0x3dc868(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x24d)]:_0x2ae3f6=_0x3b7c9d(_0x59c587,_0xb95977);}let _0x580540=_0x47ab26(_0x2ae3f6,_0xb95977),_0x8dcbe6=this[_0x42009f(0x21c)][_0x42009f(0x3a2)](_0x57ea75);if(_0x8dcbe6&&_0x580540){let _0x4d79aa={..._0x8dcbe6,'range':_0x580540};this['cursorInfo']['set'](_0x57ea75,_0x4d79aa),_0x403d98(()=>{const _0x29faf4=_0x42009f;let _0x52a283=this[_0x29faf4(0x42e)][_0x29faf4(0x251)](_0x580540,_0x32dee4=>(_0x52a283[_0x29faf4(0x1f9)](),_0x5f1737(_0x32dee4,_0x57ea75,_0x27e825,_0x580540)));_0x57135b[_0x29faf4(0x1f1)](_0x52a283);});}return{'redos':[],'undos':[]};};this[_0x1c8069(0x21c)][_0x1c8069(0x285)]((_0x158afd,_0x6c8ae6)=>{const _0x590e39=_0x1c8069;let {range:_0x151c6f,sheetID:_0x508e34}=_0x158afd,_0x4f9334=this[_0x590e39(0x42e)][_0x590e39(0x251)](_0x151c6f,_0x570366=>(_0x4f9334[_0x590e39(0x1f9)](),_0x5f1737(_0x570366,_0x6c8ae6,_0x508e34,_0x151c6f)));_0x57135b[_0x590e39(0x1f1)](_0x4f9334);});};this['disposeWithMe'](_0x43c8f(this[_0x5bc076(0x37c)][_0x5bc076(0x44c)](()=>{_0x1336c4();})));}[_0x9941cc(0x399)](){const _0xa81a61=_0x9941cc;var _0x2171f6,_0x27ed07;if(this['_online']=!0x0,((_0x2171f6=this[_0xa81a61(0x2ff)][_0xa81a61(0x336)]())==null?void 0x0:_0x2171f6[_0xa81a61(0x29c)]())!==this[_0xa81a61(0x231)])return;let _0x2e7188=(_0x27ed07=this[_0xa81a61(0x2f6)][_0xa81a61(0x3a2)](_0x475b01)[_0xa81a61(0x21d)]())==null?void 0x0:_0x27ed07[0x0],_0x24cbeb=this['_univerInstanceService'][_0xa81a61(0x445)](_0x3a9ab9[_0xa81a61(0x38a)])[_0xa81a61(0x28e)]();_0x2e7188&&_0x24cbeb&&this[_0xa81a61(0x277)](_0x24cbeb[_0xa81a61(0x382)](),_0x2e7188);}[_0x9941cc(0x3d0)](){const _0x4611ad=_0x9941cc;this[_0x4611ad(0x34f)]=!0x1;}};En=Y([J(0x2,_0x5e7a64(_0x3a52d9)),J(0x3,_0x5e7a64(bn)),J(0x4,_0x5e7a64(_0x25c118)),J(0x5,_0x479ada),J(0x6,_0x309b58),J(0x7,_0x5e7a64(_0x485be6))],En);let Z=class extends _0x26adc4{constructor(_0x2ce28f,_0x328de1,_0x1687b2){const _0x162814=_0x9941cc;super(),this[_0x162814(0x2ff)]=_0x2ce28f,this['_injector']=_0x328de1,this['_collabSessionService']=_0x1687b2,q(this,_0x162814(0x3bc),new Map()),q(this,_0x162814(0x3ed),new _0x49cf9c()),this[_0x162814(0x30a)]();}[_0x9941cc(0x1f9)](){const _0x2244e9=_0x9941cc;super[_0x2244e9(0x1f9)](),this[_0x2244e9(0x3ed)]['complete'](),this[_0x2244e9(0x3bc)][_0x2244e9(0x285)](_0x41eff0=>_0x41eff0[_0x2244e9(0x1f9)]());}[_0x9941cc(0x1f8)](_0x449654){const _0x3f02b0=_0x9941cc;let _0x4f659f=this[_0x3f02b0(0x3bc)][_0x3f02b0(0x3a2)](_0x449654);return _0x4f659f?_0x4f659f[_0x3f02b0(0x33d)]:this[_0x3f02b0(0x3ed)]['pipe'](_0x27d01f(_0x2070d2=>_0x2070d2[_0x3f02b0(0x231)]===_0x449654),_0x5aa3c8(_0x18c36f=>_0x18c36f[_0x3f02b0(0x33d)]));}[_0x9941cc(0x30a)](){const _0x4f9004=_0x9941cc;this[_0x4f9004(0x2ff)][_0x4f9004(0x21b)](_0x3a9ab9[_0x4f9004(0x38a)])[_0x4f9004(0x1e3)](_0x4c8245(this[_0x4f9004(0x1f3)]))[_0x4f9004(0x44c)](async _0x47d9d=>{const _0x536388=_0x4f9004;let _0x47f7c9=_0x47d9d[_0x536388(0x246)]['getUnitId'](),_0x4f1697=await this['_startSheetCollabCursor'](_0x47f7c9);this[_0x536388(0x3ed)]['next'](_0x4f1697),this['_entities']['set'](_0x47f7c9,_0x4f1697);}),this['_univerInstanceService'][_0x4f9004(0x21b)](_0x3a9ab9['UNIVER_DOC'])[_0x4f9004(0x1e3)](_0x4c8245(this[_0x4f9004(0x1f3)]))['pipe'](_0x27d01f(_0x340b82=>!_0x340b82[_0x4f9004(0x246)]['getUnitId']()[_0x4f9004(0x401)]('__')))[_0x4f9004(0x44c)](async _0x3c20ad=>{const _0x3ee847=_0x4f9004;let {unit:_0x5097c9}=_0x3c20ad,_0x5f3952=_0x5097c9[_0x3ee847(0x29c)](),_0x1a9930=await this[_0x3ee847(0x33a)](_0x5f3952);this['_entityInit$'][_0x3ee847(0x31a)](_0x1a9930),this['_entities'][_0x3ee847(0x3d4)](_0x5f3952,_0x1a9930);}),_0x5c9537(this[_0x4f9004(0x2ff)][_0x4f9004(0x24b)](_0x3a9ab9['UNIVER_DOC']),this[_0x4f9004(0x2ff)][_0x4f9004(0x24b)](_0x3a9ab9['UNIVER_SHEET']))[_0x4f9004(0x1e3)](_0x4c8245(this[_0x4f9004(0x1f3)]))[_0x4f9004(0x44c)](_0x370d93=>{const _0x39acf0=_0x4f9004;let _0x50b6b7=_0x370d93['getUnitId'](),_0x50efdd=this[_0x39acf0(0x3bc)][_0x39acf0(0x3a2)](_0x50b6b7);_0x50efdd&&(_0x50efdd[_0x39acf0(0x1f9)](),this[_0x39acf0(0x3bc)][_0x39acf0(0x3c0)](_0x50b6b7));});}async['_startSheetCollabCursor'](_0x5201ba){const _0x113648=_0x9941cc;let _0x482343=await this[_0x113648(0x27f)][_0x113648(0x3bb)](_0x5201ba),_0x43a531=this[_0x113648(0x2f6)][_0x113648(0x201)](En,_0x5201ba,_0x482343);return _0x43a531[_0x113648(0x455)](),_0x43a531;}async['_startDocCollabCursor'](_0x117390){const _0x217ef8=_0x9941cc;let _0x595f59=await this[_0x217ef8(0x27f)]['requireSession'](_0x117390),_0x7236d4=this[_0x217ef8(0x2f6)]['createInstance'](wn,_0x117390,_0x595f59);return _0x7236d4[_0x217ef8(0x455)](),_0x7236d4;}};Z=Y([J(0x0,_0x479ada),J(0x1,_0x5e7a64(_0x3a52d9)),J(0x2,_0x5e7a64(_0x48e021))],Z);function Dn(_0x503732,_0x32f45b){const _0x596f31=_0x9941cc;_0x503732[_0x596f31(0x2f9)](),_0x503732[_0x596f31(0x30e)]='bold\x2013px\x20Arial,\x20sans-serif';let _0x3725fa=_0x503732[_0x596f31(0x36c)](_0x32f45b)[_0x596f31(0x2b8)];return _0x503732[_0x596f31(0x24c)](),Math[_0x596f31(0x3a4)](_0x3725fa+0x8,0xc8);}function On(_0x593e66,_0x4da8ff){const _0x27b23c=_0x9941cc;let {radius:_0x2b1ec1,width:_0x290048,height:_0x434be7}=_0x4da8ff;_0x2b1ec1??=0x0,_0x290048??=0x1e,_0x434be7??=0x1e;let _0x4ff3b1=0x0,_0x11d6dd=0x0,_0x3f7777=0x0;_0x4ff3b1=_0x11d6dd=_0x3f7777=Math[_0x27b23c(0x3a4)](_0x2b1ec1,_0x290048/0x2,_0x434be7/0x2),_0x593e66[_0x27b23c(0x34b)](),_0x593e66['moveTo'](_0x4ff3b1,0x0),_0x593e66[_0x27b23c(0x37b)](_0x290048-_0x11d6dd,0x0),_0x593e66[_0x27b23c(0x2a9)](_0x290048-_0x11d6dd,_0x11d6dd,_0x11d6dd,Math['PI']*0x3/0x2,0x0,!0x1),_0x593e66['lineTo'](_0x290048,_0x434be7-_0x3f7777),_0x593e66[_0x27b23c(0x2a9)](_0x290048-_0x3f7777,_0x434be7-_0x3f7777,_0x3f7777,0x0,Math['PI']/0x2,!0x1),_0x593e66['lineTo'](0x0,_0x434be7),_0x593e66[_0x27b23c(0x37b)](0x0,_0x4ff3b1),_0x593e66['arc'](_0x4ff3b1,_0x4ff3b1,_0x4ff3b1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x593e66[_0x27b23c(0x2ba)](),_0x4da8ff[_0x27b23c(0x29d)]&&(_0x593e66['save'](),_0x593e66['fillStyle']=_0x4da8ff[_0x27b23c(0x29d)],_0x4da8ff[_0x27b23c(0x37f)]==='evenodd'?_0x593e66[_0x27b23c(0x29d)](_0x27b23c(0x37a)):_0x593e66['fill'](),_0x593e66[_0x27b23c(0x24c)]());}var kn=class e extends _0x5f64c4{constructor(_0x286a32,_0x2fd753){const _0x489fc7=_0x9941cc;super(_0x286a32,_0x2fd753),q(this,_0x489fc7(0x31d),void 0x0),q(this,_0x489fc7(0x33c),void 0x0),this['color']=_0x2fd753==null?void 0x0:_0x2fd753[_0x489fc7(0x31d)],this[_0x489fc7(0x33c)]=_0x2fd753==null?void 0x0:_0x2fd753[_0x489fc7(0x33c)];}static[_0x9941cc(0x3f9)](_0x777ad5,_0x15e69d){const _0x1eb8c9=_0x9941cc;let {text:_0x198a8d,color:_0x5b7b20}=_0x15e69d;_0x777ad5[_0x1eb8c9(0x2f9)](),_0x777ad5[_0x1eb8c9(0x30e)]=_0x1eb8c9(0x20c);let _0x2a05ed=_0x777ad5[_0x1eb8c9(0x36c)](_0x198a8d)[_0x1eb8c9(0x2b8)];if(On(_0x777ad5,{'height':0x14,'radius':0x4,'width':Dn(_0x777ad5,_0x198a8d),'fill':_0x5b7b20,'evented':!0x1}),_0x777ad5[_0x1eb8c9(0x2fa)]='#FFF',_0x2a05ed>0xc0){let _0x5af5ce='',_0x409170=0x0;for(let _0x507b8b of _0x198a8d){let _0x4f3ac5=_0x777ad5['measureText'](_0x507b8b)[_0x1eb8c9(0x2b8)];if(_0x409170+_0x4f3ac5<=0xc0-_0x777ad5[_0x1eb8c9(0x36c)](_0x1eb8c9(0x2b7))['width'])_0x5af5ce+=_0x507b8b,_0x409170+=_0x4f3ac5;else{_0x5af5ce+=_0x1eb8c9(0x2b7);break;}}_0x777ad5[_0x1eb8c9(0x315)](_0x5af5ce,0x4,0xf);}else _0x777ad5[_0x1eb8c9(0x315)](_0x198a8d,0x4,0xf);_0x777ad5[_0x1eb8c9(0x24c)]();}['_draw'](_0x5a26dc){const _0x3bc120=_0x9941cc;e[_0x3bc120(0x3f9)](_0x5a26dc,this);}};const An=_0x9941cc(0x255);var jn=class{constructor(_0x4f86fe,_0x1ce608,_0x57c7c6,_0x2d4156){const _0x3fe35d=_0x9941cc;this[_0x3fe35d(0x34c)]=_0x4f86fe,this[_0x3fe35d(0x21e)]=_0x1ce608,this['_docSkeleton']=_0x57c7c6,this['_document']=_0x2d4156,q(this,_0x3fe35d(0x34e),[]),q(this,_0x3fe35d(0x2a8),null),q(this,_0x3fe35d(0x3c2),null),q(this,'_anchorDot',null),q(this,_0x3fe35d(0x38e),null),q(this,_0x3fe35d(0x2a2),null),this[_0x3fe35d(0x370)]();}set[_0x9941cc(0x1ee)](_0x157dac){const _0x547bcb=_0x9941cc;_0x157dac?(this['_anchorDot']&&this[_0x547bcb(0x3c5)]['hide'](),this[_0x547bcb(0x3c2)]&&this[_0x547bcb(0x3c2)][_0x547bcb(0x361)]()):(this[_0x547bcb(0x3c5)]&&this[_0x547bcb(0x3c5)][_0x547bcb(0x361)](),this[_0x547bcb(0x3c2)]&&this['_textBubble'][_0x547bcb(0x2a3)]());}[_0x9941cc(0x1f9)](){const _0x53211d=_0x9941cc;for(let _0x18ce73 of this[_0x53211d(0x34e)])_0x18ce73['dispose']();this['_textBubble']&&this[_0x53211d(0x3c2)][_0x53211d(0x1f9)](),this[_0x53211d(0x3c5)]&&this['_anchorDot'][_0x53211d(0x1f9)](),this[_0x53211d(0x2a8)]&&this[_0x53211d(0x2a8)]['dispose'](),this[_0x53211d(0x2a2)]&&this[_0x53211d(0x2a2)]();}['_render'](){const _0x912d19=_0x9941cc;let {_docSkeleton:_0x4d2d2c,_document:_0x529cb6}=this,{color:_0x1421b0,name:_0x31dfcf,ranges:_0x49067c}=this[_0x912d19(0x34c)],_0x37ddac=_0x529cb6['getOffsetConfig'](),{docsLeft:_0x28aa40,docsTop:_0x1dba19}=_0x37ddac,_0x2e66a6=new _0x3d3232(_0x37ddac,_0x4d2d2c);for(let {startOffset:_0x72b017,endOffset:_0x238a26,rangeType:_0x2ba0ba,segmentId:_0x2dc7d1,segmentPage:_0x4d0cce,collapsed:_0x3dbd49,isActive:_0x2c4aee}of _0x49067c){let _0x352954=_0x4d2d2c[_0x912d19(0x3ef)](_0x72b017,!0x0,_0x2dc7d1,_0x4d0cce),_0x13433d=_0x4d2d2c[_0x912d19(0x3ef)](_0x238a26,!0x0,_0x2dc7d1,_0x4d0cce);_0x13433d??=_0x4d2d2c[_0x912d19(0x3ef)](_0x238a26-0x1,!0x1,_0x2dc7d1,_0x4d0cce);let _0x1152b3=Mn(_0x352954,_0x13433d);if(_0x2c4aee&&_0x1152b3[_0x912d19(0x253)]){let {contentBoxPointGroup:_0x277360}=_0x2e66a6[_0x912d19(0x3df)](_0x13433d,_0x13433d);if(_0x277360['length']===0x0)continue;this[_0x912d19(0x41d)](_0x1421b0,_0x277360,_0x28aa40,_0x1dba19,_0x31dfcf),this['_eventUnsubscribe']=this[_0x912d19(0x43c)]();}if(_0x352954&&_0x13433d){if(_0x2ba0ba===_0x13669b['RECT']){let {pointGroup:_0x5913b9}=new _0x3920b7(_0x37ddac,_0x4d2d2c)[_0x912d19(0x3df)](_0x352954,_0x13433d)??{};if(_0x5913b9==null||_0x5913b9['length']===0x0)continue;this['_drawRectRange'](_0x1421b0,_0x5913b9,_0x28aa40,_0x1dba19);}else{if(!_0x3dbd49&&_0x1152b3[_0x912d19(0x2a5)]){let {borderBoxPointGroup:_0x520a56}=_0x2e66a6[_0x912d19(0x3df)](_0x352954,_0x13433d);if(_0x520a56['length']===0x0)continue;this['_drawTextRange'](_0x1421b0,_0x520a56,_0x28aa40,_0x1dba19);}}}}}[_0x9941cc(0x41d)](_0x3c7768,_0x48078a,_0x377c79,_0xca6ec4,_0x3c11d0){const _0x3591cf=_0x9941cc;let {left:_0xed0496,top:_0x2e8017,height:_0x15bbae}=this[_0x3591cf(0x2b2)](_0x48078a),_0x3a77e9=1.5/this[_0x3591cf(0x3d3)](),_0x3b778c=new _0xe88d74(An+_0x514bf7(0x6),{'left':_0xed0496+_0x377c79-_0x3a77e9,'top':_0x2e8017+_0xca6ec4,'height':_0x15bbae,'width':1.5,'fill':_0x3c7768||_0x12c0bd(_0x5f41ef[_0x3591cf(0x3f1)],0x0),'strokeWidth':_0x3a77e9,'stroke':_0x3591cf(0x436),'evented':!0x0});this[_0x3591cf(0x2a8)]=_0x3b778c,this[_0x3591cf(0x21e)][_0x3591cf(0x258)](_0x3b778c,_0x3dbc00);let _0x31a057=new _0xe88d74(An+_0x514bf7(0x6),{'left':_0xed0496+_0x377c79-_0x3a77e9,'top':_0x2e8017+_0xca6ec4-0x2,'height':0x4,'width':0x4,'fill':_0x3c7768||_0x12c0bd(_0x5f41ef[_0x3591cf(0x3f1)],0x0),'strokeWidth':0x0,'stroke':_0x3c7768||_0x12c0bd(_0x5f41ef[_0x3591cf(0x3f1)],0x0),'evented':!0x1});this[_0x3591cf(0x3c5)]=_0x31a057,this[_0x3591cf(0x21e)][_0x3591cf(0x258)](_0x31a057,_0x3dbc00);let _0x496866=new kn(An+_0x514bf7(0x6),{'left':_0xed0496+_0x377c79-_0x3a77e9,'top':_0x2e8017+_0xca6ec4-0x14,'text':_0x3c11d0,'color':_0x3c7768});this[_0x3591cf(0x3c2)]=_0x496866,this['_scene'][_0x3591cf(0x258)](_0x496866,_0x3dbc00),this[_0x3591cf(0x1ee)]=!0x1;}[_0x9941cc(0x43c)](){const _0x4fd8ba=_0x9941cc;let _0x5d1e55=this['_anchor'][_0x4fd8ba(0x3b5)]['subscribeEvent'](()=>{const _0x3ceb9d=_0x4fd8ba;this[_0x3ceb9d(0x1ee)]=!0x0;}),_0xe531c3=this[_0x4fd8ba(0x2a8)][_0x4fd8ba(0x2c2)][_0x4fd8ba(0x3b8)](()=>{const _0x22b670=_0x4fd8ba;this[_0x22b670(0x38e)]&&clearTimeout(this[_0x22b670(0x38e)]),this[_0x22b670(0x38e)]=setTimeout(()=>{const _0x4c6cff=_0x22b670;this[_0x4c6cff(0x1ee)]=!0x1;},0x7d0);});return()=>{_0x5d1e55['unsubscribe'](),_0xe531c3['unsubscribe']();};}[_0x9941cc(0x209)](_0x4b85da,_0x33f060,_0x5474c1,_0xbaa2c0){const _0x3a0d95=_0x9941cc;let _0x394b02=0.2,_0xed5fa2=new _0xf4eb88(_0x4b85da)[_0x3a0d95(0x3f4)](_0x394b02)['toRgbString'](),_0x18e362=new _0x29394e(_0x3a0d95(0x412)+_0x514bf7(0x6),{'pointsGroup':_0x33f060,'fill':_0xed5fa2||_0x12c0bd(_0x5f41ef[_0x3a0d95(0x3f1)],_0x394b02),'left':_0x5474c1,'top':_0xbaa2c0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a0d95(0x34e)][_0x3a0d95(0x2d4)](_0x18e362),this['_scene'][_0x3a0d95(0x258)](_0x18e362,_0x3dbc00);}['_drawRectRange'](_0x3b30ec,_0x32cc2a,_0x20b8b4,_0x4eeeeb){const _0x1ec9bb=_0x9941cc;let _0x5a9aa5=0.2,_0x27453a=new _0xf4eb88(_0x3b30ec)[_0x1ec9bb(0x3f4)](_0x5a9aa5)[_0x1ec9bb(0x338)](),_0x123e0c=new _0x29394e(_0x1ec9bb(0x27b)+_0x514bf7(0x6),{'pointsGroup':_0x32cc2a,'fill':_0x27453a||_0x12c0bd(_0x5f41ef['black'],_0x5a9aa5),'left':_0x20b8b4,'top':_0x4eeeeb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ec9bb(0x34e)][_0x1ec9bb(0x2d4)](_0x123e0c),this[_0x1ec9bb(0x21e)]['addObject'](_0x123e0c,_0x3dbc00);}['_getAnchorBounding'](_0x163990){let _0x4b2753=_0x163990[0x0],_0x53a23c=_0x4b2753[0x0],_0x597d2e=_0x4b2753[0x2],{x:_0x298c7f,y:_0x17c996}=_0x53a23c,{x:_0x463306,y:_0x2e1dd5}=_0x597d2e;return{'left':_0x298c7f,'top':_0x17c996,'width':_0x463306-_0x298c7f,'height':_0x2e1dd5-_0x17c996};}[_0x9941cc(0x3d3)](){const _0x3e4602=_0x9941cc;let {scaleX:_0x234124,scaleY:_0x570b38}=this[_0x3e4602(0x21e)][_0x3e4602(0x346)]();return Math[_0x3e4602(0x1f2)](_0x234124,_0x570b38);}};function Mn(_0x1be1d9,_0x204789){const _0x311b7a=_0x9941cc;if(!_0x204789)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x1be1d9||_0x1be1d9[_0x311b7a(0x2ea)]!==_0x204789[_0x311b7a(0x2ea)]||(_0x1be1d9['pageType']===_0x51c0a9['HEADER']||_0x1be1d9[_0x311b7a(0x2ea)]===_0x51c0a9['FOOTER'])&&_0x1be1d9['segmentPage']!==_0x204789['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0xc95100=_0x5200ed(_0x1be1d9),_0x39f82d=_0x5200ed(_0x204789);return{'canRenderAnchor':!0x0,'canRenderSelection':_0xc95100==null||_0x39f82d==null?_0xc95100==null&&_0x39f82d==null:_0xc95100['pageIndex']===_0x39f82d[_0x311b7a(0x1fd)]&&_0xc95100[_0x311b7a(0x2fc)]===_0x39f82d[_0x311b7a(0x2fc)]&&_0xc95100[_0x311b7a(0x3b3)]===_0x39f82d['columnIndex']};}let Nn=class extends _0x26adc4{constructor(_0x171364,_0x5ee261,_0x280dbb,_0x445935,_0xfa09e3){const _0x314fde=_0x9941cc;super(),this[_0x314fde(0x23e)]=_0x171364,this['_docSkeletonManagerService']=_0x5ee261,this[_0x314fde(0x41a)]=_0x280dbb,this[_0x314fde(0x2c3)]=_0x445935,this[_0x314fde(0x3e9)]=_0xfa09e3,q(this,_0x314fde(0x42a),[]),q(this,_0x314fde(0x3a1),[]),this[_0x314fde(0x30a)]();}[_0x9941cc(0x30a)](){const _0x535bad=_0x9941cc;let _0xf618dc=this['_context']['unitId'],_0x79f181=this[_0x535bad(0x204)];this[_0x535bad(0x366)](_0xd37b62([this[_0x535bad(0x41a)][_0x535bad(0x1f8)](_0xf618dc),this[_0x535bad(0x3e9)][_0x535bad(0x397)]])[_0x535bad(0x1e3)](_0x56b22d(([_0x24b18e,_0x4b4c21])=>({'skeleton':_0x79f181[_0x535bad(0x2c8)](),'cursors':[..._0x24b18e[_0x535bad(0x3ca)]()][_0x535bad(0x3b2)](_0x5c2307=>({..._0x5c2307,'color':this[_0x535bad(0x3e9)]['getColorFromTheme'](_0x5c2307[_0x535bad(0x31d)])}))})))['subscribe'](_0x5466ee=>{const _0x1aa026=_0x535bad;if(this[_0x1aa026(0x384)](),_0x5466ee){let {skeleton:_0xac2702,cursors:_0x19c55d}=_0x5466ee;this['_updateCollabCursors'](_0xac2702,_0x19c55d);}})),this[_0x535bad(0x392)](),this[_0x535bad(0x319)]();}['_updateCollabCursors'](_0x499fa5,_0x4bd270){const _0x3798a8=_0x9941cc;let {scene:_0x3e9a60,mainComponent:_0x410417}=this[_0x3798a8(0x23e)],_0x2c8d2b=_0x4bd270['map'](_0x46392a=>new jn(_0x46392a,_0x3e9a60,_0x499fa5,_0x410417));this['_cursorShapes']=_0x2c8d2b,this['_cursors']=_0x4bd270;}['_refreshCollabCursors'](){const _0x28d1a6=_0x9941cc;this[_0x28d1a6(0x384)]();let {scene:_0x570da3,mainComponent:_0x276b0e}=this[_0x28d1a6(0x23e)],_0x2399d6=this['_docSkeletonManagerService'][_0x28d1a6(0x2c8)](),_0x5f2f06=this[_0x28d1a6(0x3a1)][_0x28d1a6(0x2a1)](_0x5a571d=>new jn(_0x5a571d,_0x570da3,_0x2399d6,_0x276b0e));this['_cursorShapes']=_0x5f2f06;}[_0x9941cc(0x384)](){const _0x5130a5=_0x9941cc;this['_cursorShapes'][_0x5130a5(0x285)](_0xf429e=>_0xf429e[_0x5130a5(0x1f9)]()),this[_0x5130a5(0x42a)]=[];}['_initCommandExecutedListener'](){const _0x4b085b=_0x9941cc;let _0x36390a=[_0x1d35c7['id']];this[_0x4b085b(0x366)](this['_commandService'][_0x4b085b(0x320)](_0x4e7906=>{const _0xc99d79=_0x4b085b;_0x36390a[_0xc99d79(0x32e)](_0x4e7906['id'])&&_0x4e7906['params'][_0xc99d79(0x43e)]===this['_context'][_0xc99d79(0x43e)]&&this[_0xc99d79(0x451)]();}));}['_initResize'](){const _0x211910=_0x9941cc;this[_0x211910(0x366)](_0x312909(this['_context']['engine'][_0x211910(0x23c)])[_0x211910(0x1e3)](_0x5d66f3(_0xd09ced=>_0xd09ced[_0x211910(0x368)]===_0x4ff85e[_0x211910(0x2bd)]),_0xd66e0f(0x10))[_0x211910(0x44c)](()=>{this['_refreshCollabCursors']();}));}};Nn=Y([J(0x1,_0x5e7a64(_0xe6affc)),J(0x2,_0x5e7a64(Z)),J(0x3,_0x309b58),J(0x4,_0x5e7a64(_0x5cb64c))],Nn);var Pn=class extends _0x5f64c4{constructor(_0x15d535,_0x264efb){const _0x4cf064=_0x9941cc;super(_0x15d535,_0x264efb),q(this,_0x4cf064(0x3d2),void 0x0),q(this,_0x4cf064(0x2cd),!0x1),q(this,_0x4cf064(0x227),void 0x0),q(this,_0x4cf064(0x25f),''),q(this,_0x4cf064(0x3c6),'top'),q(this,_0x4cf064(0x219),void 0x0),q(this,_0x4cf064(0x3bd),void 0x0),q(this,'_highlight',void 0x0),q(this,_0x4cf064(0x298),0x4),q(this,_0x4cf064(0x25e),void 0x0),q(this,_0x4cf064(0x456),void 0x0),q(this,_0x4cf064(0x232),!0x0),q(this,'_offsetY',0x0),q(this,'_labelHorizontalPosition',_0x4cf064(0x454)),_0x264efb&&(this['setShapeProps'](_0x264efb),_0x264efb['highlight']&&(_0x264efb['highlightSecond']??this[_0x4cf064(0x298)])&&this['_startBlinking'](_0x264efb[_0x4cf064(0x26a)]??this[_0x4cf064(0x298)])),this['onPointerEnter$'][_0x4cf064(0x3b8)](()=>this[_0x4cf064(0x2ed)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4cf064(0x3b8)](()=>this[_0x4cf064(0x2ed)]({'hovered':!0x1}));}[_0x9941cc(0x3e0)](_0x1fac36){const _0xd4b76e=_0x9941cc;this[_0xd4b76e(0x337)]=_0x1fac36;}[_0x9941cc(0x2ed)](_0x40cd16){const _0x2f27d7=_0x9941cc;this['_color']=_0x40cd16[_0x2f27d7(0x31d)]??this['_color'],this[_0x2f27d7(0x2cd)]=_0x40cd16[_0x2f27d7(0x1e7)]??this['_hovered'],this[_0x2f27d7(0x227)]=_0x40cd16['range']??this[_0x2f27d7(0x227)],this[_0x2f27d7(0x25f)]=_0x40cd16[_0x2f27d7(0x2fd)]??this[_0x2f27d7(0x25f)],this[_0x2f27d7(0x3c6)]=_0x40cd16[_0x2f27d7(0x273)]??this['_labelPosition'],this['_backgroundColor']=_0x40cd16[_0x2f27d7(0x345)]??this['_backgroundColor'],this[_0x2f27d7(0x3bd)]=_0x40cd16[_0x2f27d7(0x27e)]??this['_showText'],this[_0x2f27d7(0x307)]=_0x40cd16[_0x2f27d7(0x3ec)]??this[_0x2f27d7(0x307)],_0x40cd16[_0x2f27d7(0x26a)]!==void 0x0&&(this[_0x2f27d7(0x298)]=_0x40cd16[_0x2f27d7(0x26a)]),_0x40cd16[_0x2f27d7(0x2dd)]!==void 0x0&&(this[_0x2f27d7(0x37e)]=_0x40cd16[_0x2f27d7(0x2dd)]),_0x40cd16['offsetY']!==void 0x0&&(this[_0x2f27d7(0x337)]=_0x40cd16[_0x2f27d7(0x2d2)]),this[_0x2f27d7(0x2d8)]({'width':_0x40cd16[_0x2f27d7(0x2b8)],'height':_0x40cd16['height']});}['onMouseMove'](_0x3d6171){const _0x108df1=_0x9941cc;let {row:_0x5ca461,column:_0x516bdf}=_0x3d6171;_0x5ca461>=this['_range'][_0x108df1(0x210)]&&_0x5ca461<=this['_range']['endRow']&&_0x516bdf>=this[_0x108df1(0x227)][_0x108df1(0x31f)]&&_0x516bdf<=this[_0x108df1(0x227)][_0x108df1(0x313)]?this[_0x108df1(0x2ed)]({'hovered':!0x0}):this[_0x108df1(0x2ed)]({'hovered':!0x1});}[_0x9941cc(0x271)](_0x5a474d){const _0x2c27af=_0x9941cc;this[_0x2c27af(0x432)](),this[_0x2c27af(0x232)]=!0x0,this[_0x2c27af(0x456)]=window['setInterval'](()=>{const _0x51dabc=_0x2c27af;this[_0x51dabc(0x232)]=!this[_0x51dabc(0x232)],this[_0x51dabc(0x39d)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x2c27af(0x2d1)](()=>{const _0x48a4bf=_0x2c27af;this[_0x48a4bf(0x432)](),this[_0x48a4bf(0x232)]=!0x0,this[_0x48a4bf(0x39d)](!0x0);},_0x5a474d*0x3e8);}[_0x9941cc(0x432)](){const _0x3922c3=_0x9941cc;this[_0x3922c3(0x456)]&&=(window['clearInterval'](this['_blinkIntervalTimer']),void 0x0),this[_0x3922c3(0x25e)]&&=(window[_0x3922c3(0x438)](this[_0x3922c3(0x25e)]),void 0x0);}['triggerDblclick'](_0x5f3558){return!0x1;}[_0x9941cc(0x1f9)](){const _0x5d6b77=_0x9941cc;this[_0x5d6b77(0x432)](),super[_0x5d6b77(0x1f9)]();}[_0x9941cc(0x38c)](_0x439d68){const _0x1f863a=_0x9941cc;let _0x5b1345=this['_color'],_0x3dadd3=this[_0x1f863a(0x219)];if(this[_0x1f863a(0x37e)]&&!this['_isBlinkVisible']&&(_0x5b1345=this['_getLighterColor'](this['_color']),_0x3dadd3=this[_0x1f863a(0x219)]?this[_0x1f863a(0x286)](this[_0x1f863a(0x219)]):void 0x0),_0xe88d74[_0x1f863a(0x3f9)](_0x439d68,{'width':this[_0x1f863a(0x2b8)],'height':this['height'],'strokeWidth':this[_0x1f863a(0x259)]||1.5,'stroke':_0x5b1345,'evented':!0x1,'fill':_0x3dadd3}),this[_0x1f863a(0x2cd)]||this[_0x1f863a(0x3bd)]){_0x439d68[_0x1f863a(0x2f9)]();let _0x1c9b90=this[_0x1f863a(0x307)]===_0x1f863a(0x3be)?-Dn(_0x439d68,this[_0x1f863a(0x25f)]):this[_0x1f863a(0x2b8)];_0x439d68[_0x1f863a(0x282)](0x1,0x0,0x0,0x1,_0x1c9b90,(this[_0x1f863a(0x3c6)]==='bottom'?0x0:-0x14)+(this[_0x1f863a(0x337)]??0x0)),kn[_0x1f863a(0x3f9)](_0x439d68,{'text':this[_0x1f863a(0x25f)],'color':_0x5b1345}),_0x439d68['restore']();}}[_0x9941cc(0x286)](_0x4b4da0){const _0x438678=_0x9941cc;return _0x4b4da0['startsWith']('#')?_0x438678(0x300)+Number[_0x438678(0x334)](_0x4b4da0[_0x438678(0x335)](0x1,0x3),0x10)+',\x20'+Number[_0x438678(0x334)](_0x4b4da0[_0x438678(0x335)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x4b4da0[_0x438678(0x335)](0x5,0x7),0x10)+_0x438678(0x378):_0x4b4da0['startsWith'](_0x438678(0x343))?_0x4b4da0[_0x438678(0x2cc)](/[\d.]+\)$/g,_0x438678(0x3e8)):_0x4b4da0[_0x438678(0x401)](_0x438678(0x290))?_0x4b4da0['replace']('rgb',_0x438678(0x343))[_0x438678(0x2cc)](')',_0x438678(0x378)):_0x4b4da0;}};let Fn=class extends _0x26adc4{constructor(_0x4f044e,_0x277b59,_0x129a41,_0x262f14){const _0x870b4b=_0x9941cc;super(),this[_0x870b4b(0x23e)]=_0x4f044e,this[_0x870b4b(0x3aa)]=_0x277b59,this['_collabCursorController']=_0x129a41,this[_0x870b4b(0x3e9)]=_0x262f14,q(this,'_cursors',new Set()),q(this,_0x870b4b(0x45c),null),q(this,_0x870b4b(0x3a6),null),this[_0x870b4b(0x30a)]();}[_0x9941cc(0x30a)](){const _0x566e28=_0x9941cc;this['_sheetSkeletonManagerService'][_0x566e28(0x414)][_0x566e28(0x1e3)](_0xf925e5(this[_0x566e28(0x1f3)]),_0x42c983(_0x4077e3=>{const _0x1314ad=_0x566e28;if(_0x4077e3){let _0x2ce9f4=_0x4077e3[_0x1314ad(0x3db)];return _0xd37b62(this['_collabCursorController'][_0x1314ad(0x1f8)](this[_0x1314ad(0x23e)][_0x1314ad(0x43e)]),this[_0x1314ad(0x3e9)][_0x1314ad(0x397)])[_0x1314ad(0x1e3)](_0x56b22d(([_0x138818,_0x4ff453])=>{let _0x293615=new Map();return _0x138818['forEach']((_0x481256,_0x153c03)=>{const _0x17c6e4=_0x54b3;if(_0x481256[_0x17c6e4(0x358)]===_0x2ce9f4){let _0x3ef864={..._0x481256};_0x3ef864['color']=this[_0x17c6e4(0x3e9)][_0x17c6e4(0x2a7)](_0x481256[_0x17c6e4(0x31d)]),_0x293615[_0x17c6e4(0x3d4)](_0x153c03,_0x3ef864);}}),{'skeleton':_0x4077e3,'cursors':_0x293615};}));}return _0x52386d({'skeleton':null,'cursors':new Map()});}))[_0x566e28(0x44c)](({skeleton:_0x31584f,cursors:_0x380479})=>{const _0x3116d7=_0x566e28;this[_0x3116d7(0x384)](),_0x31584f&&this[_0x3116d7(0x36b)](_0x31584f,_0x380479);}),this[_0x566e28(0x366)](this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x566e28(0x1e3)](_0xf925e5(this['dispose$']))['subscribe'](_0x8a019e=>{const _0x53b335=_0x566e28;var _0x1bd5f1;if(_0x8a019e==null)return;(_0x1bd5f1=this[_0x53b335(0x3a6)])==null||_0x1bd5f1[_0x53b335(0x324)](),this[_0x53b335(0x3a6)]=null;let {skeleton:_0x51e043}=_0x8a019e,{scene:_0x49c2e8}=this[_0x53b335(0x23e)];this[_0x53b335(0x3a6)]=_0x49c2e8[_0x53b335(0x330)][_0x53b335(0x3b8)](_0x3580a2(_0xae01b1=>{const _0x55164c=_0x53b335;var _0x2b50d0,_0x3fdbc7;let {offsetX:_0x54e006,offsetY:_0x23b73e}=_0xae01b1,{x:_0x3129ce,y:_0x286099}=_0x49c2e8['getCoordRelativeToViewport'](_0x51b3dc[_0x55164c(0x257)]([_0x54e006,_0x23b73e])),{scaleX:_0x1ac636,scaleY:_0x2dae14}=_0x49c2e8[_0x55164c(0x346)](),_0x4fe8aa=_0x49c2e8['getViewport'](_0x571217[_0x55164c(0x2ce)]),_0x5a26e8=_0x49c2e8[_0x55164c(0x25d)](_0x51b3dc[_0x55164c(0x257)]([_0x3129ce,_0x286099]),_0x4fe8aa),_0x206f83=_0x51e043['getCellIndexByOffset'](_0x54e006,_0x23b73e,_0x1ac636,_0x2dae14,_0x5a26e8);(((_0x2b50d0=this[_0x55164c(0x45c)])==null?void 0x0:_0x2b50d0[_0x55164c(0x2b4)])!==_0x206f83[_0x55164c(0x2b4)]||((_0x3fdbc7=this[_0x55164c(0x45c)])==null?void 0x0:_0x3fdbc7['row'])!==_0x206f83['row'])&&this['_cursors']['forEach'](_0x367bc0=>{const _0x201f9c=_0x55164c;_0x367bc0[_0x201f9c(0x350)](_0x206f83);});},0x64));})),this[_0x566e28(0x366)](_0x43c8f(()=>{const _0x353d16=_0x566e28;var _0x357421;(_0x357421=this[_0x353d16(0x3a6)])==null||_0x357421['unsubscribe'](),this[_0x353d16(0x3a6)]=null;}));}['_updateCollabCursors'](_0x1bde02,_0x4c8c4f){const _0xb0081d=_0x9941cc;let _0x45d4b5=this[_0xb0081d(0x3aa)]['getCurrentSkeleton']();if(!_0x45d4b5)return;let _0x419d1e=this[_0xb0081d(0x247)]();if(!_0x419d1e)return;this[_0xb0081d(0x3a1)][_0xb0081d(0x285)](_0x2adf26=>{const _0x37e3d4=_0xb0081d;_0x2adf26[_0x37e3d4(0x39d)]();});let {scene:_0x1825ef}=_0x419d1e,_0x990474=In(Array[_0xb0081d(0x354)](_0x4c8c4f[_0xb0081d(0x3ca)]()))[_0xb0081d(0x2a1)](_0xa3ad52=>{const _0x43373d=_0xb0081d;let {color:_0x2d2420,range:_0x90c017,name:_0x1d7d6e,selection:_0x2092aa,sheetID:_0x282ab4}=_0xa3ad52,{startColumn:_0x39af63,startRow:_0x42cf4f,endColumn:_0x3830dd,endRow:_0x5401ab}=_0x90c017,_0x4b8323=_0x42bc2d(_0x42cf4f,_0x39af63,_0x1825ef,_0x45d4b5),_0x3de6a1=_0x42bc2d(_0x5401ab,_0x3830dd,_0x1825ef,_0x45d4b5),{columnHeaderHeightAndMarginTop:_0x486e29}=_0x45d4b5,{startX:_0x2016c8,startY:_0x100508}=_0x4b8323,{endX:_0x10a0d7,endY:_0xe4b8f4}=_0x3de6a1,_0x4cc2fc=_0x10a0d7-_0x2016c8,_0x2cf143=_0xe4b8f4-_0x100508;return new Pn(_0x1d7d6e,{'labelPosition':_0x100508-_0x486e29>=0x14?_0x43373d(0x42d):_0x43373d(0x2d3),'sheetID':_0x282ab4,'range':_0x90c017,'color':_0x2d2420,'name':_0x1d7d6e,'selection':_0x2092aa,'left':_0x2016c8,'top':_0x100508,'width':_0x4cc2fc,'height':_0x2cf143,'evented':!0x1,'zIndex':0x1389});});_0x1825ef[_0xb0081d(0x2c7)](_0x990474,0x1),this[_0xb0081d(0x3a1)]=new Set(_0x990474);}[_0x9941cc(0x384)](){const _0x2e2912=_0x9941cc;var _0x56442d;(_0x56442d=this[_0x2e2912(0x3a1)])==null||_0x56442d[_0x2e2912(0x285)](_0x2c65f9=>_0x2c65f9['dispose']());}[_0x9941cc(0x247)](){const _0x22813c=_0x9941cc;return _0x25c785(this[_0x22813c(0x23e)][_0x22813c(0x246)],this[_0x22813c(0x23e)]);}};Fn=Y([J(0x1,_0x5e7a64(_0x196587)),J(0x2,_0x5e7a64(Z)),J(0x3,_0x5e7a64(_0x5cb64c))],Fn);function _0x54b3(_0x244280,_0xa8dc3f){_0x244280=_0x244280-0x1de;const _0x5de499=_0x5de4();let _0x54b3e6=_0x5de499[_0x244280];return _0x54b3e6;}function In(_0x2cc6b2){const _0x58f3c8=_0x9941cc;let _0x5b443b=new Map();return _0x2cc6b2['forEach'](_0x442185=>{const _0x2f8449=_0x54b3;if(_0x5b443b['has'](_0x442185[_0x2f8449(0x3ff)])){let _0x5561e2=_0x5b443b['get'](_0x442185[_0x2f8449(0x3ff)]);_0x5561e2[_0x2f8449(0x2fd)]+=',\x20'+_0x442185['name'];}else _0x5b443b['set'](_0x442185[_0x2f8449(0x3ff)],_0x442185);}),Array[_0x58f3c8(0x354)](_0x5b443b[_0x58f3c8(0x3ca)]());}function Q(_0x31d3be){const _0x3c9c56=_0x9941cc;return typeof _0x31d3be==_0x3c9c56(0x3c9)&&!!_0x31d3be;}function Ln(_0x397425){const _0xe9d8ed=_0x9941cc;return _0x397425[_0xe9d8ed(0x426)]===_0x4d0259[_0xe9d8ed(0x39c)]&&_0xe9d8ed(0x1fe)in _0x397425&&Q(_0x397425[_0xe9d8ed(0x1fe)])&&typeof _0x397425[_0xe9d8ed(0x1fe)]['memberID']==_0xe9d8ed(0x2ef)&&typeof _0x397425['data'][_0xe9d8ed(0x3ff)]=='string';}function Rn(_0x36cc8f){const _0x2e17f6=_0x9941cc;return _0x36cc8f['eventID']===_0x4d0259[_0x2e17f6(0x3f2)]&&'data'in _0x36cc8f&&Q(_0x36cc8f['data'])&&typeof _0x36cc8f['data'][_0x2e17f6(0x1ef)]==_0x2e17f6(0x2ef);}function zn(_0x2aa6ff,_0x5af3e3){const _0x4b4a24=_0x9941cc;let _0x3cc812;try{_0x3cc812=JSON['parse'](_0x2aa6ff);}catch{return null;}if(!Q(_0x3cc812)||typeof _0x3cc812[_0x4b4a24(0x36f)]!=_0x4b4a24(0x2ef)||typeof _0x3cc812[_0x4b4a24(0x43e)]!='string'||typeof _0x3cc812[_0x4b4a24(0x207)]!=_0x4b4a24(0x2ef))return null;let _0x3c036c=typeof _0x3cc812[_0x4b4a24(0x1ed)]==_0x4b4a24(0x2e7)?_0x3cc812[_0x4b4a24(0x1ed)]:_0x5af3e3;if(_0x3c036c==null)return null;let _0x4a0548=Q(_0x3cc812['pointer'])&&typeof _0x3cc812['pointer']['x']==_0x4b4a24(0x2e7)&&Number[_0x4b4a24(0x347)](_0x3cc812[_0x4b4a24(0x3da)]['x'])&&typeof _0x3cc812['pointer']['y']=='number'&&Number[_0x4b4a24(0x347)](_0x3cc812[_0x4b4a24(0x3da)]['y'])?{'x':_0x3cc812['pointer']['x'],'y':_0x3cc812[_0x4b4a24(0x3da)]['y']}:null;return{'kind':_0x3cc812['kind'],'unitType':_0x3c036c,'unitId':_0x3cc812[_0x4b4a24(0x43e)],'subUnitId':_0x3cc812[_0x4b4a24(0x207)],'selectedIds':Array[_0x4b4a24(0x2ad)](_0x3cc812[_0x4b4a24(0x1f7)])?_0x3cc812[_0x4b4a24(0x1f7)][_0x4b4a24(0x377)](_0x3e1fca=>typeof _0x3e1fca=='string'):[],'focusedId':typeof _0x3cc812[_0x4b4a24(0x410)]==_0x4b4a24(0x2ef)?_0x3cc812['focusedId']:null,'pointer':_0x4a0548};}function Bn(_0x2034c0,_0x59ff08,_0x27ec43){const _0x38b83e=_0x9941cc;return{'kind':_0x59ff08,'unitType':_0x2034c0,'unitId':_0x27ec43['unitId'],'subUnitId':_0x27ec43[_0x38b83e(0x207)],'selectedIds':Array[_0x38b83e(0x354)](_0x27ec43['selectedIds']),'focusedId':_0x27ec43[_0x38b83e(0x410)],'pointer':_0x27ec43[_0x38b83e(0x3da)]?{..._0x27ec43[_0x38b83e(0x3da)]}:null};}let Vn=class extends _0x26adc4{constructor(_0x1fa450,_0x436edc,_0x222784,_0x5ba89d,_0x5a59da,_0x19d017){const _0x5443b2=_0x9941cc;super(),this[_0x5443b2(0x43e)]=_0x1fa450,this[_0x5443b2(0x3fb)]=_0x436edc,this[_0x5443b2(0x408)]=_0x222784,this[_0x5443b2(0x3dc)]=_0x5ba89d,this[_0x5443b2(0x266)]=_0x5a59da,this['_commandService']=_0x19d017,q(this,_0x5443b2(0x34f),!0x1),q(this,_0x5443b2(0x328),!0x1);}get['unitType'](){const _0x16896d=_0x9941cc;return this['_adapter'][_0x16896d(0x1ed)];}[_0x9941cc(0x1f9)](){const _0x575a4b=_0x9941cc;this[_0x575a4b(0x2da)](),super[_0x575a4b(0x1f9)]();}['init'](){const _0x4f0bf1=_0x9941cc;this[_0x4f0bf1(0x328)]||(this[_0x4f0bf1(0x328)]=!0x0,this['_session'][_0x4f0bf1(0x230)]['pipe'](_0x4c8245(this['dispose$']))[_0x4f0bf1(0x44c)](_0x1b318d=>{const _0x44d886=_0x4f0bf1;if(_0x1b318d===_0x15dfc3[_0x44d886(0x444)]){this['_online']=!0x0;let _0x1c2465=this[_0x44d886(0x408)]['getLocalPresence'](this[_0x44d886(0x43e)]);_0x1c2465&&this[_0x44d886(0x35a)](_0x1c2465);}else this[_0x44d886(0x34f)]=!0x1,this[_0x44d886(0x2da)]();}),this[_0x4f0bf1(0x3fb)][_0x4f0bf1(0x430)][_0x4f0bf1(0x1e3)](_0x4c8245(this[_0x4f0bf1(0x1f3)]))[_0x4f0bf1(0x44c)](_0x1904d9=>{const _0x25d6e8=_0x4f0bf1;Ln(_0x1904d9)?this[_0x25d6e8(0x3b4)](_0x1904d9):Rn(_0x1904d9)&&this[_0x25d6e8(0x1fb)](_0x1904d9[_0x25d6e8(0x1fe)][_0x25d6e8(0x1ef)]);}),this[_0x4f0bf1(0x408)][_0x4f0bf1(0x357)][_0x4f0bf1(0x1e3)](_0x27d01f(_0xbc8baf=>this[_0x4f0bf1(0x34f)]&&_0xbc8baf[_0x4f0bf1(0x43e)]===this['unitId']),_0x1d35cc(_0x387acb=>_0xcf4317(_0x387acb[_0x4f0bf1(0x2cf)]),{'leading':!0x0,'trailing':!0x0}),_0x4c8245(this[_0x4f0bf1(0x1f3)]))[_0x4f0bf1(0x44c)](_0x58568c=>this[_0x4f0bf1(0x35a)](_0x58568c)));}[_0x9941cc(0x35a)](_0x316767){const _0x12251e=_0x9941cc;let _0x628903=this[_0x12251e(0x3fb)][_0x12251e(0x20b)]();if(!_0x628903||!this['_online'])return;let _0x45728b={'eventID':_0x4d0259[_0x12251e(0x39c)],'data':{'unitID':this[_0x12251e(0x43e)],'memberID':_0x628903,'selection':JSON[_0x12251e(0x248)](Bn(this[_0x12251e(0x1ed)],this['_adapter']['presenceKind'],_0x316767))}};this[_0x12251e(0x3fb)][_0x12251e(0x3a0)](_0x45728b,this['unitId'])[_0x12251e(0x26f)](()=>void 0x0);}[_0x9941cc(0x3b4)](_0x53e94b){const _0xf13b11=_0x9941cc;let {memberID:_0x33bdb1,selection:_0x107347}=_0x53e94b['data'];if(_0x33bdb1===this[_0xf13b11(0x3fb)][_0xf13b11(0x20b)]())return;let _0x542edf=zn(_0x107347,this['unitType']);if(!_0x542edf||_0x542edf[_0xf13b11(0x36f)]!==this[_0xf13b11(0x408)][_0xf13b11(0x35d)]||_0x542edf['unitType']!==this['unitType']||_0x542edf['unitId']!==this[_0xf13b11(0x43e)])return;let _0x3e4e40=this[_0xf13b11(0x266)][_0xf13b11(0x306)](this[_0xf13b11(0x43e)],_0x33bdb1),_0x655583={'unitId':_0x542edf[_0xf13b11(0x43e)],'subUnitId':_0x542edf[_0xf13b11(0x207)],'selectedIds':_0x542edf[_0xf13b11(0x1f7)],'focusedId':_0x542edf[_0xf13b11(0x410)],'pointer':_0x542edf['pointer'],'memberId':_0x33bdb1,'color':this[_0xf13b11(0x3dc)][_0xf13b11(0x447)](_0x33bdb1),'name':(_0x3e4e40==null?void 0x0:_0x3e4e40[_0xf13b11(0x2fd)])??_0x33bdb1};this['_commandService']['executeCommand'](gn['id'],{'unitType':this['unitType'],'update':{'type':_0xf13b11(0x3d4),'state':_0x655583}})[_0xf13b11(0x26f)](()=>void 0x0);}[_0x9941cc(0x1fb)](_0x5e0785){const _0x52c9df=_0x9941cc;this[_0x52c9df(0x2c3)][_0x52c9df(0x203)](gn['id'],{'unitType':this[_0x52c9df(0x1ed)],'update':{'type':_0x52c9df(0x2f1),'unitId':this[_0x52c9df(0x43e)],'memberId':_0x5e0785}})['catch'](()=>void 0x0);}[_0x9941cc(0x2da)](){const _0x2fa132=_0x9941cc;this['_commandService'][_0x2fa132(0x203)](gn['id'],{'unitType':this[_0x2fa132(0x1ed)],'update':{'type':_0x2fa132(0x26d),'unitId':this[_0x2fa132(0x43e)]}})['catch'](()=>void 0x0);}};Vn=Y([J(0x3,_0x5e7a64(bn)),J(0x4,_0x5e7a64(_0x25c118)),J(0x5,_0x5e7a64(_0x309b58))],Vn);let Hn=class extends _0x26adc4{constructor(_0x392247,_0x341e32,_0x256cff,_0x3c7a7d){const _0x37e648=_0x9941cc;super(),this[_0x37e648(0x2ff)]=_0x392247,this['_injector']=_0x341e32,this[_0x37e648(0x27f)]=_0x256cff,this[_0x37e648(0x390)]=_0x3c7a7d,q(this,_0x37e648(0x2ca),!0x1),q(this,'_entities',new Map()),q(this,_0x37e648(0x398),new Map()),q(this,_0x37e648(0x386),new Map()),this[_0x37e648(0x30a)]();}[_0x9941cc(0x1f9)](){const _0x3f907b=_0x9941cc;this[_0x3f907b(0x2ca)]=!0x0,this[_0x3f907b(0x386)][_0x3f907b(0x285)](_0x61f14=>_0x61f14['dispose']()),this['_adapterDisposables'][_0x3f907b(0x26d)](),this[_0x3f907b(0x3bc)][_0x3f907b(0x285)](_0x5ef1bf=>_0x5ef1bf[_0x3f907b(0x1f9)]()),this[_0x3f907b(0x3bc)]['clear'](),this[_0x3f907b(0x398)][_0x3f907b(0x26d)](),super[_0x3f907b(0x1f9)]();}['_init'](){const _0x630855=_0x9941cc;this[_0x630855(0x390)][_0x630855(0x214)][_0x630855(0x1e3)](_0x4c8245(this[_0x630855(0x1f3)]))[_0x630855(0x44c)](_0x411e81=>this['_syncAdapters'](_0x411e81));}[_0x9941cc(0x1df)](_0x46fd8b){const _0x27b5eb=_0x9941cc;let _0x23286c=new Set(_0x46fd8b['map'](_0x410a98=>_0x410a98[_0x27b5eb(0x1ed)]));this[_0x27b5eb(0x386)][_0x27b5eb(0x285)]((_0x1e82e8,_0x556097)=>{const _0x9d3c57=_0x27b5eb;_0x23286c[_0x9d3c57(0x2bf)](_0x556097)||(_0x1e82e8[_0x9d3c57(0x1f9)](),this[_0x9d3c57(0x386)][_0x9d3c57(0x3c0)](_0x556097),this['_disposeEntitiesForType'](_0x556097));}),_0x46fd8b['forEach'](_0x266f4c=>{const _0x3c1ad3=_0x27b5eb;this[_0x3c1ad3(0x386)]['has'](_0x266f4c[_0x3c1ad3(0x1ed)])||this['_bindAdapter'](_0x266f4c);});}['_bindAdapter'](_0x58f8f8){const _0x1c9df3=_0x9941cc;let _0x192d39=new _0x2593d8();this['_adapterDisposables']['set'](_0x58f8f8[_0x1c9df3(0x1ed)],_0x192d39),_0x192d39['add'](_0x58f8f8['activate']()),this[_0x1c9df3(0x2ff)][_0x1c9df3(0x393)](_0x58f8f8[_0x1c9df3(0x1ed)])['forEach'](_0x4f670b=>this[_0x1c9df3(0x252)](_0x4f670b[_0x1c9df3(0x29c)](),_0x58f8f8)['catch'](()=>void 0x0));let _0x22c2d6=this[_0x1c9df3(0x2ff)][_0x1c9df3(0x21b)](_0x58f8f8[_0x1c9df3(0x1ed)])['subscribe'](({unit:_0x3563ab})=>this[_0x1c9df3(0x252)](_0x3563ab[_0x1c9df3(0x29c)](),_0x58f8f8)[_0x1c9df3(0x26f)](()=>void 0x0));_0x192d39[_0x1c9df3(0x1f1)](_0x43c8f(()=>_0x22c2d6[_0x1c9df3(0x324)]()));let _0x500815=this['_univerInstanceService'][_0x1c9df3(0x24b)](_0x58f8f8[_0x1c9df3(0x1ed)])[_0x1c9df3(0x44c)](_0x341ebb=>this['_disposeEntity'](_0x341ebb[_0x1c9df3(0x29c)]()));_0x192d39[_0x1c9df3(0x1f1)](_0x43c8f(()=>_0x500815['unsubscribe']()));}async[_0x9941cc(0x252)](_0x3d19b5,_0x2a43f5){const _0x3aabab=_0x9941cc;if(this[_0x3aabab(0x3bc)][_0x3aabab(0x2bf)](_0x3d19b5)||this[_0x3aabab(0x398)][_0x3aabab(0x2bf)](_0x3d19b5))return;let _0x491f09={};this[_0x3aabab(0x398)][_0x3aabab(0x3d4)](_0x3d19b5,_0x491f09);let _0x4a90fb=await this[_0x3aabab(0x27f)]['requireSession'](_0x3d19b5)[_0x3aabab(0x26f)](_0x2e980a=>{const _0x52abe6=_0x3aabab;throw this[_0x52abe6(0x398)][_0x52abe6(0x3a2)](_0x3d19b5)===_0x491f09&&this[_0x52abe6(0x398)][_0x52abe6(0x3c0)](_0x3d19b5),_0x2e980a;});if(this[_0x3aabab(0x2ca)]||this[_0x3aabab(0x398)][_0x3aabab(0x3a2)](_0x3d19b5)!==_0x491f09||this[_0x3aabab(0x390)][_0x3aabab(0x3a2)](_0x2a43f5['unitType'])!==_0x2a43f5){this[_0x3aabab(0x398)][_0x3aabab(0x3a2)](_0x3d19b5)===_0x491f09&&this[_0x3aabab(0x398)][_0x3aabab(0x3c0)](_0x3d19b5);return;}let _0x1ec86d=this[_0x3aabab(0x2f6)]['createInstance'](Vn,_0x3d19b5,_0x4a90fb,_0x2a43f5);_0x1ec86d[_0x3aabab(0x455)](),this[_0x3aabab(0x398)]['delete'](_0x3d19b5),this[_0x3aabab(0x3bc)][_0x3aabab(0x3d4)](_0x3d19b5,_0x1ec86d);}[_0x9941cc(0x2d5)](_0x549357){const _0x11825c=_0x9941cc;this[_0x11825c(0x398)]['delete'](_0x549357);let _0x13a3ab=this[_0x11825c(0x3bc)][_0x11825c(0x3a2)](_0x549357);_0x13a3ab&&(_0x13a3ab['dispose'](),this['_entities'][_0x11825c(0x3c0)](_0x549357));}[_0x9941cc(0x2c1)](_0x49be20){const _0x526b5e=_0x9941cc;this[_0x526b5e(0x2ff)]['getAllUnitsForType'](_0x49be20)[_0x526b5e(0x285)](_0x473e60=>this[_0x526b5e(0x398)]['delete'](_0x473e60[_0x526b5e(0x29c)]())),Array[_0x526b5e(0x354)](this[_0x526b5e(0x3bc)][_0x526b5e(0x43d)]())[_0x526b5e(0x285)](([_0x52af56,_0x1c5036])=>{const _0x3a4601=_0x526b5e;_0x1c5036[_0x3a4601(0x1ed)]===_0x49be20&&this['_disposeEntity'](_0x52af56);});}};Hn=Y([J(0x0,_0x479ada),J(0x1,_0x5e7a64(_0x3a52d9)),J(0x2,_0x5e7a64(_0x48e021)),J(0x3,_0x5e7a64(_0x2ca04e))],Hn);const Un={'toast':_0x9941cc(0x3f0),'actionButton':'!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end'};let Wn=class extends _0x4ade65{constructor(_0x57ac3f,_0x45b438,_0x5c833a,_0xf56438,_0x45f3fd,_0x404b3f){const _0x88e72d=_0x9941cc;super(),this[_0x88e72d(0x234)]=_0x57ac3f,this['_localCacheService']=_0x45b438,this[_0x88e72d(0x3e4)]=_0x5c833a,this[_0x88e72d(0x44d)]=_0xf56438,this[_0x88e72d(0x2ae)]=_0x45f3fd,this[_0x88e72d(0x280)]=_0x404b3f,q(this,'_conflictNotification',null),q(this,'_retryingConflictCacheUnitIDs',new Set()),this[_0x88e72d(0x41e)](),this[_0x88e72d(0x20f)]();}['dispose'](){const _0x362885=_0x9941cc;var _0x1ad6a0;(_0x1ad6a0=this[_0x362885(0x21f)])==null||_0x1ad6a0['dispose'](),this[_0x362885(0x21f)]=null,super[_0x362885(0x1f9)]();}[_0x9941cc(0x41e)](){const _0x560a15=_0x9941cc;this[_0x560a15(0x366)](this[_0x560a15(0x234)][_0x560a15(0x299)](()=>{const _0x3e4700=_0x560a15;if(this[_0x3e4700(0x26c)][_0x3e4700(0x268)][_0x3e4700(0x3e1)])return this[_0x3e4700(0x280)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x1673a9=_0x9941cc;this[_0x1673a9(0x366)](this[_0x1673a9(0x3e4)]['event$'][_0x1673a9(0x44c)](_0x1acecf=>{const _0x5e7fd5=_0x1673a9;_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x3eb)]&&this['_messageService'][_0x5e7fd5(0x361)]({'type':_0x475928[_0x5e7fd5(0x225)],'content':this[_0x5e7fd5(0x280)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x2dc)]&&this[_0x5e7fd5(0x44d)][_0x5e7fd5(0x361)]({'type':_0x475928[_0x5e7fd5(0x225)],'content':this[_0x5e7fd5(0x280)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x23d)]&&this[_0x5e7fd5(0x459)]({'title':this['_localeService']['t']('collaboration-client-ui.permission.title'),'content':this[_0x5e7fd5(0x280)]['t'](_0x5e7fd5(0x452)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Un,'action':{'label':this[_0x5e7fd5(0x280)]['t'](_0x5e7fd5(0x359)),'onClick':_0x338bb9=>{const _0x9cbed6=_0x5e7fd5;_0x338bb9[_0x9cbed6(0x2f3)](),window['location'][_0x9cbed6(0x275)]();}}}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x3ea)]&&this['_showConflictProcessingNotification'](),_0x1acecf['id']===_0x46cfde['CONFLICT_CACHE_CLEAR_FAILED']&&_0x1acecf[_0x5e7fd5(0x231)]&&this['_showConflictCacheClearFailedNotification'](_0x1acecf['unitID'],_0x1acecf[_0x5e7fd5(0x241)]??''),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x20a)]&&this[_0x5e7fd5(0x459)]({'title':this[_0x5e7fd5(0x280)]['t'](_0x5e7fd5(0x32c)),'content':this[_0x5e7fd5(0x280)]['t'](_0x5e7fd5(0x2d0)),'type':_0x5e7fd5(0x3bf),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Un,'action':{'label':this['_localeService']['t'](_0x5e7fd5(0x359)),'onClick':_0x4dce89=>{const _0x2e8e8d=_0x5e7fd5;_0x4dce89[_0x2e8e8d(0x2f3)](),window[_0x2e8e8d(0x261)]['reload']();}}}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x217)]&&this['_messageService'][_0x5e7fd5(0x361)]({'type':_0x475928[_0x5e7fd5(0x225)],'content':this[_0x5e7fd5(0x280)]['t'](_0x1acecf[_0x5e7fd5(0x1fe)]||'')}),_0x1acecf['id']===_0x46cfde['SOCKET_FAILED_RETRY']&&this[_0x5e7fd5(0x44d)][_0x5e7fd5(0x361)]({'type':_0x475928['Warning'],'content':this[_0x5e7fd5(0x280)]['t']('collaboration-client-ui.session.will-retry')}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x3c8)]&&this[_0x5e7fd5(0x44d)][_0x5e7fd5(0x361)]({'type':_0x475928[_0x5e7fd5(0x400)],'content':this[_0x5e7fd5(0x280)]['t'](_0x5e7fd5(0x2a4))}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x40f)]&&this[_0x5e7fd5(0x44d)][_0x5e7fd5(0x361)]({'type':_0x475928[_0x5e7fd5(0x400)],'content':this['_localeService']['t']('collaboration-client-ui.session.collaboration-timeout')});}));}[_0x9941cc(0x2e4)](){const _0x12d4f8=_0x9941cc;this[_0x12d4f8(0x459)]({'title':this[_0x12d4f8(0x280)]['t'](_0x12d4f8(0x32c)),'content':this[_0x12d4f8(0x280)]['t'](_0x12d4f8(0x2e5)),'type':_0x12d4f8(0x448),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x38c167,_0x486210){const _0x525cb3=_0x9941cc;this['_replaceConflictNotification']({'title':this[_0x525cb3(0x280)]['t'](_0x525cb3(0x32c)),'content':this[_0x525cb3(0x280)]['t'](_0x525cb3(0x3f8)),'type':_0x525cb3(0x3bf),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Un,'action':{'label':this[_0x525cb3(0x280)]['t'](_0x525cb3(0x388)),'onClick':_0x515802=>{const _0x4adc49=_0x525cb3;_0x515802[_0x4adc49(0x2f3)](),this['_retryConflictCacheClear'](_0x38c167,_0x486210);}}});}[_0x9941cc(0x233)](_0x2d0122,_0x44e572){const _0x2efbaa=_0x9941cc;let _0x1f9abc=_0x2d0122+':'+(_0x44e572??'');this[_0x2efbaa(0x27d)]['has'](_0x1f9abc)||(this[_0x2efbaa(0x27d)][_0x2efbaa(0x1f1)](_0x1f9abc),this[_0x2efbaa(0x2e4)](),this['_localCacheService']['clearOfflineData'](_0x2d0122,_0x44e572)[_0x2efbaa(0x375)](()=>window[_0x2efbaa(0x261)]['reload']())[_0x2efbaa(0x26f)](()=>this[_0x2efbaa(0x396)](_0x2d0122,_0x44e572))[_0x2efbaa(0x2f7)](()=>this[_0x2efbaa(0x27d)][_0x2efbaa(0x3c0)](_0x1f9abc)));}[_0x9941cc(0x459)](_0x409864){const _0x521a1e=_0x9941cc;var _0x385168;(_0x385168=this['_conflictNotification'])==null||_0x385168[_0x521a1e(0x1f9)](),this['_conflictNotification']=this[_0x521a1e(0x2ae)][_0x521a1e(0x361)](_0x409864);}};Wn=Y([J(0x0,_0x4664b0),J(0x1,_0x4acd2b),J(0x2,_0x5e7a64(_0x5e9140)),J(0x3,_0x3ba635),J(0x4,_0x23d9be),J(0x5,_0x5e7a64(_0x100652))],Wn);const Gn=_0x59bc43('uni.network.url-service');let Kn=class extends _0x26adc4{constructor(_0x143090,_0x1e3db2,_0x33d317,_0x31d00d){const _0x13d856=_0x9941cc;super(),this['_urlService']=_0x143090,this[_0x13d856(0x302)]=_0x1e3db2,this[_0x13d856(0x2c3)]=_0x33d317,this[_0x13d856(0x1de)]=_0x31d00d,this[_0x13d856(0x30a)]()[_0x13d856(0x26f)](_0x10cfc4=>this[_0x13d856(0x302)][_0x13d856(0x3bf)](_0x13d856(0x339),_0x10cfc4));}async[_0x9941cc(0x30a)](){const _0xf2055a=_0x9941cc;let _0xf822fa=this[_0xf2055a(0x331)][_0xf2055a(0x442)](_0xf2055a(0x246)),_0x4f658b=this[_0xf2055a(0x331)][_0xf2055a(0x442)]('type'),_0x305c34=this[_0xf2055a(0x331)][_0xf2055a(0x442)](_0xf2055a(0x30d));if(!_0xf822fa||!_0x4f658b){this[_0xf2055a(0x302)][_0xf2055a(0x28d)]('[CollaborationDataLoaderController]',_0xf2055a(0x423));return;}let _0x16dffb=await this[_0xf2055a(0x1de)][_0xf2055a(0x24f)](_0xf822fa,Number(_0x4f658b),_0x305c34);this[_0xf2055a(0x360)]||_0x16dffb&&_0x16dffb instanceof _0x569249&&await this[_0xf2055a(0x1e9)](_0x16dffb);}async[_0x9941cc(0x1e9)](_0xd9d1a5){const _0x71e995=_0x9941cc;await this[_0x71e995(0x33b)](_0xd9d1a5,!0x0),!this[_0x71e995(0x360)]&&(_0xd9d1a5['activeSheet$'][_0x71e995(0x1e3)](_0x4c8245(this[_0x71e995(0x1f3)]))[_0x71e995(0x44c)](_0x1850c6=>{const _0x273730=_0x71e995;_0x1850c6&&this[_0x273730(0x1f5)](_0x1850c6);}),this['_urlService'][_0x71e995(0x3ce)][_0x71e995(0x1e3)](_0x4c8245(this[_0x71e995(0x1f3)]))[_0x71e995(0x44c)](()=>{const _0x577f62=_0x71e995;this['_updateSubUnitFromURLParams'](_0xd9d1a5)[_0x577f62(0x26f)](_0x39cb2b=>this[_0x577f62(0x302)]['error'](_0x577f62(0x339),_0x39cb2b));}));}[_0x9941cc(0x1f5)](_0x3d31e4,_0x240636=!0x1){const _0x1a401a=_0x9941cc;let _0x1a88b0=this[_0x1a401a(0x331)][_0x1a401a(0x442)](_0x1a401a(0x30d));_0x3d31e4[_0x1a401a(0x382)]()!==_0x1a88b0&&this[_0x1a401a(0x331)][_0x1a401a(0x3dd)]('subunit',_0x3d31e4[_0x1a401a(0x382)](),_0x240636);}async['_updateSubUnitFromURLParams'](_0x91be19,_0x400054=!0x1){const _0x428115=_0x9941cc;var _0xd5dec;let _0x1de031=this[_0x428115(0x331)][_0x428115(0x442)](_0x428115(0x30d));if(!_0x1de031||!_0x91be19['getSheetBySheetId'](_0x1de031)){let _0x132a83=_0x91be19[_0x428115(0x3a7)]()[0x0],_0x1d3830=_0x91be19[_0x428115(0x418)](_0x132a83);if(!_0x1d3830||(this['_updateURLWithCurrentState'](_0x1d3830,!0x0),this[_0x428115(0x360)]))return;await this['_commandService'][_0x428115(0x203)](_0x4c5c95['id'],{'unitId':_0x91be19[_0x428115(0x29c)](),'subUnitId':_0x132a83});}else(_0x400054||((_0xd5dec=_0x91be19[_0x428115(0x28e)]())==null?void 0x0:_0xd5dec[_0x428115(0x382)]())!==_0x1de031)&&await this['_commandService'][_0x428115(0x203)](_0x4c5c95['id'],{'unitId':_0x91be19[_0x428115(0x29c)](),'subUnitId':_0x1de031});}};Kn=Y([J(0x0,Gn),J(0x1,_0x54abc2),J(0x2,_0x309b58),J(0x3,_0x5e7a64(_0x3e7d68))],Kn);let qn=class{constructor(_0xdd3236,_0x408ab6){const _0x3dce87=_0x9941cc;this[_0x3dce87(0x3c3)]=_0xdd3236,this['_renderManagerService']=_0x408ab6;}[_0x9941cc(0x276)](_0x3b82ea){const _0x3b2d9a=_0x9941cc;this[_0x3b2d9a(0x332)](_0x3b82ea),this[_0x3b2d9a(0x236)](_0x3b82ea);}['transformRemoteChangeset'](_0x50db1f){const _0x189571=_0x9941cc;let {unitID:_0x41418b}=_0x50db1f,{redoCache:_0x390fe0}=this['_renderManagerService'][_0x189571(0x2b9)](_0x41418b)[_0x189571(0x45a)](_0x274379)[_0x189571(0x240)]();if(_0x390fe0[_0x189571(0x269)]===0x0)return _0x50db1f;let _0x5be243=_0x3bef57[_0x189571(0x3e3)](_0x50db1f[_0x189571(0x2e6)][0x0]);for(let _0x44c51f=0x0;_0x44c51f<_0x390fe0[_0x189571(0x269)];_0x44c51f++){let _0x37deb0={'id':_0x189571(0x2c6),'params':{..._0x390fe0[_0x44c51f]}},_0x4cb749=this['_transformService'][_0x189571(0x304)](_0x5be243,_0x37deb0,!0x1);if(_0x1cec04(_0x4cb749))throw _0x4cb749[_0x189571(0x3bf)];_0x5be243=_0x4cb749[_0x189571(0x242)];}return{..._0x3bef57['deepClone'](_0x50db1f),'mutations':[_0x5be243]};}[_0x9941cc(0x332)](_0x5e6424){const _0x4b19aa=_0x9941cc;let {unitID:_0x400ede}=_0x5e6424,_0x4b1538=this[_0x4b19aa(0x2b1)][_0x4b19aa(0x2b9)](_0x400ede)[_0x4b19aa(0x45a)](_0x274379),{undoCache:_0x4cbbbe,redoCache:_0x7ce25f}=_0x4b1538[_0x4b19aa(0x240)]();if(_0x4cbbbe['length']===0x0||_0x7ce25f[_0x4b19aa(0x269)]===0x0)return;let _0x475bdf=[],_0x288108=[],_0x77518e=_0x3bef57[_0x4b19aa(0x3e3)](_0x5e6424['mutations'][0x0]),_0x560c8b=_0x3bef57[_0x4b19aa(0x3e3)](_0x5e6424[_0x4b19aa(0x2e6)][0x0]);for(let _0x1fbe10=_0x4cbbbe[_0x4b19aa(0x269)]-0x1;_0x1fbe10>=0x0;_0x1fbe10--){let _0x1b377d={'id':'doc.mutation.rich-text-editing','params':{..._0x4cbbbe[_0x1fbe10]}},_0x17bf53={'id':_0x4b19aa(0x2c6),'params':{..._0x7ce25f[_0x1fbe10]}},_0x55b41a=this[_0x4b19aa(0x3c3)]['transformMutation'](_0x77518e,_0x1b377d,!0x1),_0x26cec6=this[_0x4b19aa(0x3c3)]['transformMutation'](_0x560c8b,_0x17bf53,!0x1);if(_0x1cec04(_0x55b41a))throw _0x55b41a[_0x4b19aa(0x3bf)];if(_0x1cec04(_0x26cec6))throw _0x26cec6[_0x4b19aa(0x3bf)];_0x475bdf[_0x4b19aa(0x2a0)](_0x55b41a[_0x4b19aa(0x323)][_0x4b19aa(0x435)]),_0x288108[_0x4b19aa(0x2a0)](_0x26cec6[_0x4b19aa(0x323)]['params']),_0x77518e=_0x55b41a[_0x4b19aa(0x242)],_0x560c8b=_0x26cec6['m1Prime'];}_0x4b1538[_0x4b19aa(0x2fe)]({'undoCache':_0x475bdf,'redoCache':_0x288108});}[_0x9941cc(0x236)](_0x3b67c4){const _0x1f5fc5=_0x9941cc;let {unitID:_0x6844b0}=_0x3b67c4,_0x860337=this[_0x1f5fc5(0x2b1)][_0x1f5fc5(0x2b9)](_0x6844b0)['with'](_0x274379),_0x4a4b9d=_0x860337['getActiveRange']();if(_0x4a4b9d==null)return;let _0x34bf2a=[{'id':_0x1f5fc5(0x2c6),'params':{'unitId':_0x3b67c4[_0x1f5fc5(0x231)],'actions':null,'textRanges':[_0x4a4b9d]}}],_0x4a5808=this[_0x1f5fc5(0x3c3)][_0x1f5fc5(0x25a)](_0x3b67c4,_0x34bf2a);if(!_0x302eb5(_0x4a5808))throw _0x4a5808[_0x1f5fc5(0x3bf)];let _0x55b47f=_0x4a5808[_0x1f5fc5(0x323)][0x0][_0x1f5fc5(0x435)]['textRanges'];Array[_0x1f5fc5(0x2ad)](_0x55b47f)&&_0x55b47f[_0x1f5fc5(0x269)]&&_0x860337[_0x1f5fc5(0x2e3)](_0x55b47f[0x0]);}};qn=Y([J(0x0,_0x1a08d7),J(0x1,_0x20ed56)],qn);let Jn=class{constructor(_0x43696e,_0x45b99f,_0x3aaf9a){const _0x2fe1aa=_0x9941cc;this[_0x2fe1aa(0x2f6)]=_0x43696e,this[_0x2fe1aa(0x3c3)]=_0x45b99f,this['_docStateChangeManagerService']=_0x3aaf9a;}[_0x9941cc(0x206)](_0x4f7b5f){const _0x20bc5f=_0x9941cc;this[_0x20bc5f(0x411)](_0x4f7b5f);}[_0x9941cc(0x2aa)](_0x5a1d4f){const _0x312182=_0x9941cc;let {unitID:_0x2150a6}=_0x5a1d4f,{collaboration:_0x4cb5f2}=this[_0x312182(0x317)][_0x312182(0x403)](_0x2150a6);if(_0x4cb5f2['length']===0x0)return _0x5a1d4f;let _0x26ef0c=_0x3bef57[_0x312182(0x3e3)](_0x5a1d4f[_0x312182(0x2e6)][0x0]);for(let _0x619d96=0x0;_0x619d96<_0x4cb5f2[_0x312182(0x269)];_0x619d96++){let _0x412f07={'id':_0x312182(0x2c6),'params':{'unitId':_0x4cb5f2[_0x619d96][_0x312182(0x43e)],..._0x4cb5f2[_0x619d96][_0x312182(0x25c)]}},_0x5a52ac=this[_0x312182(0x3c3)][_0x312182(0x304)](_0x26ef0c,_0x412f07,!0x1);if(_0x1cec04(_0x5a52ac))throw _0x5a52ac[_0x312182(0x3bf)];_0x26ef0c=_0x5a52ac[_0x312182(0x242)];}return{..._0x3bef57['deepClone'](_0x5a1d4f),'mutations':[_0x26ef0c]};}[_0x9941cc(0x411)](_0x2eaab1){const _0x2635a0=_0x9941cc;let {unitID:_0x18b5f1}=_0x2eaab1,{history:_0x36a7de,collaboration:_0x28d900}=this[_0x2635a0(0x317)]['getStateCache'](_0x18b5f1);if(_0x36a7de[_0x2635a0(0x269)]===0x0&&_0x28d900[_0x2635a0(0x269)]===0x0)return;let _0x920eee=[],_0x19e0d6=[],_0x4d5221=_0x3bef57[_0x2635a0(0x3e3)](_0x2eaab1[_0x2635a0(0x2e6)][0x0]),_0x28422c=_0x3bef57[_0x2635a0(0x3e3)](_0x2eaab1[_0x2635a0(0x2e6)][0x0]);for(let _0x2efc8a=_0x36a7de[_0x2635a0(0x269)]-0x1;_0x2efc8a>=0x0;_0x2efc8a--){let _0x2b78f9={'id':_0x2635a0(0x2c6),'params':{'unitId':_0x36a7de[_0x2efc8a][_0x2635a0(0x43e)],..._0x36a7de[_0x2efc8a]['undoState']}},_0x32a055={'id':_0x2635a0(0x2c6),'params':{'unitId':_0x36a7de[_0x2efc8a]['unitId'],..._0x36a7de[_0x2efc8a][_0x2635a0(0x25c)]}},_0x12ec2d=this[_0x2635a0(0x3c3)][_0x2635a0(0x304)](_0x4d5221,_0x2b78f9,!0x1),_0x54d324=this[_0x2635a0(0x3c3)]['transformMutation'](_0x28422c,_0x32a055,!0x1);if(_0x1cec04(_0x12ec2d))throw _0x12ec2d[_0x2635a0(0x3bf)];if(_0x1cec04(_0x54d324))throw _0x54d324[_0x2635a0(0x3bf)];_0x920eee['unshift']({..._0x36a7de[_0x2efc8a],'undoState':_0x12ec2d[_0x2635a0(0x323)][_0x2635a0(0x435)],'redoState':_0x54d324[_0x2635a0(0x323)]['params']}),_0x4d5221=_0x12ec2d['m1Prime'],_0x28422c=_0x54d324[_0x2635a0(0x242)];}_0x4d5221=_0x3bef57[_0x2635a0(0x3e3)](_0x2eaab1['mutations'][0x0]),_0x28422c=_0x3bef57['deepClone'](_0x2eaab1[_0x2635a0(0x2e6)][0x0]);for(let _0x5da586=_0x28d900[_0x2635a0(0x269)]-0x1;_0x5da586>=0x0;_0x5da586--){let _0x4ca9be={'id':_0x2635a0(0x2c6),'params':{'unitId':_0x28d900[_0x5da586][_0x2635a0(0x43e)],..._0x28d900[_0x5da586][_0x2635a0(0x376)]}},_0x7afa7b={'id':_0x2635a0(0x2c6),'params':{'unitId':_0x28d900[_0x5da586][_0x2635a0(0x43e)],..._0x28d900[_0x5da586]['redoState']}},_0x346544=this[_0x2635a0(0x3c3)][_0x2635a0(0x304)](_0x4d5221,_0x4ca9be,!0x1),_0x273262=this[_0x2635a0(0x3c3)][_0x2635a0(0x304)](_0x28422c,_0x7afa7b,!0x1);if(_0x1cec04(_0x346544))throw _0x346544['error'];if(_0x1cec04(_0x273262))throw _0x273262['error'];_0x19e0d6[_0x2635a0(0x2a0)]({..._0x28d900[_0x5da586],'undoState':_0x346544[_0x2635a0(0x323)][_0x2635a0(0x435)],'redoState':_0x273262['m2Prime'][_0x2635a0(0x435)]}),_0x4d5221=_0x346544[_0x2635a0(0x242)],_0x28422c=_0x273262[_0x2635a0(0x242)];}this[_0x2635a0(0x317)][_0x2635a0(0x284)](_0x18b5f1,{'history':_0x920eee,'collaboration':_0x19e0d6});}};Jn=Y([J(0x0,_0x5e7a64(_0x3a52d9)),J(0x1,_0x1a08d7),J(0x2,_0x5e7a64(_0x6f388c))],Jn);let Yn=class{constructor(_0x380871,_0x5d7214){const _0x2b4318=_0x9941cc;this[_0x2b4318(0x2ec)]=_0x380871,this[_0x2b4318(0x3c3)]=_0x5d7214;}[_0x9941cc(0x2ee)](_0x5542b5){const _0x5275b5=_0x9941cc;var _0x4d8b62;let _0xf30c54=this[_0x5275b5(0x2ec)][_0x5275b5(0x243)]()??[],_0x1ce34f=this[_0x5275b5(0x2ec)]['getSelectionInfo']();if(_0xf30c54[_0x5275b5(0x269)]===0x0||_0x1ce34f==null)return null;let _0x3a815f=_0x5542b5[_0x5275b5(0x231)],_0x1a3a19=[{'id':_0x5275b5(0x2c6),'params':{'unitId':_0x3a815f,'actions':null,'textRanges':_0xf30c54}}],_0x1756c7=this[_0x5275b5(0x3c3)][_0x5275b5(0x25a)](_0x5542b5,_0x1a3a19);if(!_0x302eb5(_0x1756c7))throw _0x1756c7[_0x5275b5(0x3bf)];let _0x489d49=(_0x4d8b62=_0x1756c7['m2Prime'][0x0])==null?void 0x0:_0x4d8b62[_0x5275b5(0x435)],_0x4c6d73=_0x489d49&&typeof _0x489d49==_0x5275b5(0x3c9)&&_0x5275b5(0x244)in _0x489d49?_0x489d49[_0x5275b5(0x244)]:null;if(!Qn(_0x4c6d73))return null;let _0x3e68d9=Xn(_0x5542b5['mutations'][_0x5275b5(0x22f)](_0xd8b939=>$n(_0xd8b939[_0x5275b5(0x435)]))?_0x4c6d73[_0x5275b5(0x377)](_0x395f20=>!(_0x5275b5(0x265)in _0x395f20)):_0x4c6d73,{..._0x1ce34f,'options':_0x1ce34f[_0x5275b5(0x405)]?{..._0x1ce34f[_0x5275b5(0x405)],'wholeDocument':!0x1}:void 0x0}),_0x66068d={'unitId':_0x3a815f,'subUnitId':_0x3a815f};this[_0x5275b5(0x2ec)][_0x5275b5(0x383)](_0x3e68d9,_0x66068d);let _0x4b0ac5=!0x0;return{'commit':()=>{_0x4b0ac5=!0x1;},'rollback':()=>{const _0x1835a4=_0x5275b5;_0x4b0ac5&&(_0x4b0ac5=!0x1,this[_0x1835a4(0x2ec)][_0x1835a4(0x383)](_0x1ce34f,_0x66068d));}};}};Yn=Y([J(0x0,_0x5e7a64(_0x5eb373)),J(0x1,_0x1a08d7)],Yn);function Xn(_0x50ff88,_0x420170){const _0x1f6633=_0x9941cc;let _0x168b1d=[],_0x345edb=[];for(let _0x2a8c77 of _0x50ff88)Zn(_0x2a8c77)?_0x345edb['push'](_0x2a8c77):_0x168b1d[_0x1f6633(0x2d4)](_0x2a8c77);return{..._0x420170,'textRanges':_0x168b1d,'rectRanges':_0x345edb};}function Zn(_0x26d80e){return'tableId'in _0x26d80e;}function Qn(_0x37192d){const _0x5487d7=_0x9941cc;return Array['isArray'](_0x37192d)&&_0x37192d[_0x5487d7(0x2ab)](_0x3ac848=>typeof _0x3ac848==_0x5487d7(0x3c9)&&!!_0x3ac848&&_0x5487d7(0x431)in _0x3ac848&&'endOffset'in _0x3ac848);}function $n(_0x41fe0e){const _0xc8d173=_0x9941cc;return _0x41fe0e===_0xc8d173(0x43b)?!0x0:Array[_0xc8d173(0x2ad)](_0x41fe0e)?_0x41fe0e['some'](_0x1e8256=>$n(_0x1e8256)):!_0x41fe0e||typeof _0x41fe0e!=_0xc8d173(0x3c9)?!0x1:Object[_0xc8d173(0x3ca)](_0x41fe0e)[_0xc8d173(0x22f)](_0xad0927=>$n(_0xad0927));}let er=class extends _0x4ade65{constructor(_0x314bb8,_0x44751e,_0x45e057,_0x4c21db,_0x375ae3,_0x5008df,_0x50d79b){const _0x18edef=_0x9941cc;super(),this[_0x18edef(0x249)]=_0x314bb8,this['_docTransformIMECacheService']=_0x44751e,this[_0x18edef(0x40c)]=_0x45e057,this[_0x18edef(0x3d8)]=_0x4c21db,this[_0x18edef(0x322)]=_0x375ae3,this[_0x18edef(0x44d)]=_0x5008df,this['_localeService']=_0x50d79b,q(this,_0x18edef(0x254),new _0x4693d8(_0x12e22e[_0x18edef(0x279)])),this[_0x18edef(0x28c)]();}['_initEntityListener'](){const _0x49e767=_0x9941cc;this[_0x49e767(0x366)](this[_0x49e767(0x249)][_0x49e767(0x43a)]['subscribe'](_0x4c2c11=>{const _0x51ca5a=_0x49e767;_0x4c2c11 instanceof _0x2406af&&_0x4c2c11[_0x51ca5a(0x402)]({'onTransformIME':_0x516852=>this[_0x51ca5a(0x1eb)][_0x51ca5a(0x276)](_0x516852),'onTransformState':_0x692e4f=>this[_0x51ca5a(0x40c)][_0x51ca5a(0x206)](_0x692e4f),'onPrepareTransformSelections':_0x9609bc=>this[_0x51ca5a(0x3d8)][_0x51ca5a(0x2ee)](_0x9609bc),'onSyncEditingCollabCursor':_0x5aad9e=>this['_docSyncEditingCollabCursorService'][_0x51ca5a(0x416)](_0x5aad9e),'onTransformRemoteChangesetByIMECache':_0x335298=>this[_0x51ca5a(0x1eb)][_0x51ca5a(0x2aa)](_0x335298),'onTransformRemoteChangesetByStateCache':_0x262bd3=>this[_0x51ca5a(0x40c)][_0x51ca5a(0x2aa)](_0x262bd3)});}));}};er=Y([J(0x0,_0x5e7a64(_0xa6a463)),J(0x1,_0x5e7a64(qn)),J(0x2,_0x5e7a64(Jn)),J(0x3,_0x5e7a64(Yn)),J(0x4,_0x5e7a64(Cn)),J(0x5,_0x3ba635),J(0x6,_0x5e7a64(_0x100652))],er);let tr=class extends _0x4ade65{constructor(_0x1527c6,_0x5c3b93,_0x3398a7,_0x25e938){const _0x4d5216=_0x9941cc;super(),this['_injector']=_0x1527c6,this[_0x4d5216(0x2d7)]=_0x5c3b93,this['_logService']=_0x3398a7,this[_0x4d5216(0x3ab)]=_0x25e938,q(this,'_memberID',void 0x0),this[_0x4d5216(0x30a)]();}['_init'](){const _0x2788e9=_0x9941cc;this['_initWindowErrorListener'](),this[_0x2788e9(0x2f8)](),this[_0x2788e9(0x1f4)](),this[_0x2788e9(0x39e)]();}[_0x9941cc(0x39e)](){const _0xb7f2e9=_0x9941cc;this['disposeWithMe'](this[_0xb7f2e9(0x3ab)]['socket$'][_0xb7f2e9(0x44c)](_0xc8dce1=>{const _0x54b7c0=_0xb7f2e9;this[_0x54b7c0(0x348)]=_0xc8dce1==null?void 0x0:_0xc8dce1[_0x54b7c0(0x1ef)];}));}[_0x9941cc(0x33f)](){const _0x57f324=_0x9941cc;let _0x96d7ec=_0x223e97=>{const _0x1641c6=_0x54b3;var _0x2288b1;this[_0x1641c6(0x1e2)](_0x1641c6(0x3bf),_0x1641c6(0x389)+_0x223e97[_0x1641c6(0x372)]+_0x1641c6(0x2c4)+_0x223e97[_0x1641c6(0x441)]+':'+_0x223e97['lineno']+':'+_0x223e97[_0x1641c6(0x379)]+'\x0a'+(((_0x2288b1=_0x223e97['error'])==null?void 0x0:_0x2288b1['stack'])||''));};window[_0x57f324(0x44f)](_0x57f324(0x3bf),_0x96d7ec),this['disposeWithMe'](()=>{const _0x377bad=_0x57f324;window[_0x377bad(0x2e2)](_0x377bad(0x3bf),_0x96d7ec);});}[_0x9941cc(0x2f8)](){const _0x1681a8=_0x9941cc;let _0x680c73=_0x567359=>{const _0x35d3dd=_0x54b3;this[_0x35d3dd(0x1e2)]('error',_0x35d3dd(0x2e1)+_0x567359[_0x35d3dd(0x41f)]);};window[_0x1681a8(0x44f)]('unhandledrejection',_0x680c73),this[_0x1681a8(0x366)](()=>{const _0x7e4226=_0x1681a8;window[_0x7e4226(0x2e2)](_0x7e4226(0x321),_0x680c73);});}[_0x9941cc(0x1f4)](){const _0x2edbb4=_0x9941cc;let _0x17fd6f=this[_0x2edbb4(0x302)][_0x2edbb4(0x3bf)][_0x2edbb4(0x2a6)](this[_0x2edbb4(0x302)]);this[_0x2edbb4(0x302)][_0x2edbb4(0x3bf)]=(..._0x41a854)=>{const _0x563784=_0x2edbb4;let _0x2c8854=_0x41a854['map'](_0xd4851b=>_0xd4851b instanceof Error?_0xd4851b[_0x563784(0x372)]+'\x0a'+_0xd4851b[_0x563784(0x32a)]:String(_0xd4851b))[_0x563784(0x267)]('\x20');this[_0x563784(0x1e2)]('error','[LogService\x20Error]:\x20'+_0x2c8854),_0x17fd6f(..._0x41a854);},this[_0x2edbb4(0x366)](()=>{const _0x4b9a0b=_0x2edbb4;this[_0x4b9a0b(0x302)][_0x4b9a0b(0x3bf)]=_0x17fd6f;});}[_0x9941cc(0x1e2)](_0x19d417,_0x5c2303){const _0x1c8040=_0x9941cc;try{let _0x292574={'userId':this['_memberID'],'logLabel':_0x19d417,'content':_0x5c2303};this[_0x1c8040(0x2d7)]['post'](_0x1c8040(0x333),{'body':_0x292574})[_0x1c8040(0x26f)](()=>{});}catch{}}};tr=Y([J(0x0,_0x5e7a64(_0x3a52d9)),J(0x1,_0x5e7a64(_0x2f3aec)),J(0x2,_0x54abc2),J(0x3,_0x5e7a64(_0x48e021))],tr);function nr({state$:_0x564518}){const _0x518ffb=_0x9941cc;let _0x523e2f=_0x5d8c77(_0x564518,null,!0x0);return _0x523e2f?_0x233448('div',{'data-u-comp':_0x518ffb(0x3b9),'role':'alert','className':'univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','children':[_0xc268f7(_0x4eadf0,{'className':_0x518ffb(0x340)}),_0xc268f7(_0x518ffb(0x250),{'children':_0x523e2f[_0x518ffb(0x291)]}),_0xc268f7(_0x352c6,{'size':_0x518ffb(0x437),'variant':'primary','onClick':()=>window[_0x518ffb(0x261)][_0x518ffb(0x275)](),'children':_0x523e2f[_0x518ffb(0x3a5)]})]}):null;}const rr=_0x9941cc(0x2be);let ir=class extends _0x4ade65{constructor(_0xd8684b,_0x34f1bd,_0x41144f,_0x5e039d,_0x27123c,_0xbcb3d0){const _0x3a6252=_0x9941cc;super(),this[_0x3a6252(0x3ac)]=_0xd8684b,this[_0x3a6252(0x44d)]=_0x34f1bd,this['_localeService']=_0x41144f,this[_0x3a6252(0x2f6)]=_0x5e039d,this['_urlService']=_0xbcb3d0,q(this,_0x3a6252(0x2db),new _0x4693d8(null)),q(this,_0x3a6252(0x3de),new Set()),q(this,_0x3a6252(0x226),new Map()),q(this,_0x3a6252(0x433),new Map()),q(this,_0x3a6252(0x22b),this[_0x3a6252(0x2db)][_0x3a6252(0x221)]());let _0x3b29f6=()=>_0x5eb423(nr,{'state$':this[_0x3a6252(0x22b)]});this[_0x3a6252(0x366)](_0x27123c[_0x3a6252(0x29a)](_0x3e468e[_0x3a6252(0x457)],()=>_0x1685d6(_0x3b29f6,this[_0x3a6252(0x2f6)]))),this[_0x3a6252(0x366)](this[_0x3a6252(0x3ac)][_0x3a6252(0x3cd)][_0x3a6252(0x44c)](_0x102df2=>{const _0x427afb=_0x3a6252;this[_0x427afb(0x433)]=_0x102df2,_0x102df2[_0x427afb(0x285)](_0x50e886=>this['_updateMessage'](_0x50e886));})),this[_0x3a6252(0x366)](this[_0x3a6252(0x331)]['urlChange$'][_0x3a6252(0x44c)](()=>{const _0x137187=_0x3a6252;this[_0x137187(0x433)][_0x137187(0x285)](_0x27f776=>this[_0x137187(0x449)](_0x27f776));}));}[_0x9941cc(0x1f9)](){const _0x10f99c=_0x9941cc;this[_0x10f99c(0x3de)][_0x10f99c(0x285)](_0x4c7fd3=>this[_0x10f99c(0x44d)][_0x10f99c(0x2f1)](_0x4c7fd3)),this[_0x10f99c(0x3de)][_0x10f99c(0x26d)](),this[_0x10f99c(0x226)][_0x10f99c(0x285)](({timeoutId:_0x52ec2f})=>clearTimeout(_0x52ec2f)),this[_0x10f99c(0x226)][_0x10f99c(0x26d)](),this[_0x10f99c(0x2db)][_0x10f99c(0x303)](),super[_0x10f99c(0x1f9)]();}[_0x9941cc(0x449)](_0x21a253){const _0x4b1ac8=_0x9941cc;let _0x3b66e4=''+rr+_0x21a253[_0x4b1ac8(0x43e)];_0x21a253[_0x4b1ac8(0x3af)]===_0x4bc669[_0x4b1ac8(0x1e8)]?(this[_0x4b1ac8(0x363)](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x373)](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x44d)][_0x4b1ac8(0x2f1)](_0x3b66e4),this[_0x4b1ac8(0x3de)][_0x4b1ac8(0x3c0)](_0x3b66e4)):this['_isVisibleUnit'](_0x21a253[_0x4b1ac8(0x43e)])?_0x21a253[_0x4b1ac8(0x3af)]===_0x4bc669['ERROR']?(this[_0x4b1ac8(0x363)](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x373)](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x44d)][_0x4b1ac8(0x361)]({'id':_0x3b66e4,'type':_0x475928[_0x4b1ac8(0x400)],'content':this[_0x4b1ac8(0x280)]['t']('collaboration-client-ui.session.connection-failed')}),this[_0x4b1ac8(0x3de)][_0x4b1ac8(0x3c0)](_0x3b66e4)):_0x21a253[_0x4b1ac8(0x3af)]!==_0x4bc669['LOADING_BLOCKS']||_0x21a253[_0x4b1ac8(0x395)]<=0xa?(this['_clearBlockProgressWatch'](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x44d)][_0x4b1ac8(0x2f1)](_0x3b66e4),this[_0x4b1ac8(0x3de)][_0x4b1ac8(0x3c0)](_0x3b66e4)):this['_watchBlockProgress'](_0x21a253)||(this[_0x4b1ac8(0x44d)][_0x4b1ac8(0x361)]({'id':_0x3b66e4,'type':_0x475928['Loading'],'duration':0x1/0x0,'content':this[_0x4b1ac8(0x280)]['t'](_0x4b1ac8(0x367))+'\x20'+_0x21a253[_0x4b1ac8(0x256)]+'/'+_0x21a253[_0x4b1ac8(0x395)]}),this[_0x4b1ac8(0x3de)][_0x4b1ac8(0x1f1)](_0x3b66e4)):(this[_0x4b1ac8(0x363)](_0x21a253[_0x4b1ac8(0x43e)]),this['_clearTimeoutState'](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x44d)][_0x4b1ac8(0x2f1)](_0x3b66e4),this[_0x4b1ac8(0x3de)][_0x4b1ac8(0x3c0)](_0x3b66e4));}['_watchBlockProgress'](_0x227bba){const _0x5ad7a8=_0x9941cc;let _0xc6aeb0=this[_0x5ad7a8(0x226)]['get'](_0x227bba['unitId']);if((_0xc6aeb0==null?void 0x0:_0xc6aeb0[_0x5ad7a8(0x256)])===_0x227bba[_0x5ad7a8(0x256)])return _0xc6aeb0[_0x5ad7a8(0x427)];this['_clearBlockProgressWatch'](_0x227bba[_0x5ad7a8(0x43e)]);let _0x37f34d=setTimeout(()=>{const _0x402812=_0x5ad7a8;let _0x3124b3=this[_0x402812(0x226)]['get'](_0x227bba[_0x402812(0x43e)]);if(!_0x3124b3||_0x3124b3[_0x402812(0x29e)]!==_0x37f34d)return;_0x3124b3[_0x402812(0x427)]=!0x0;let _0x5cd927=''+rr+_0x227bba[_0x402812(0x43e)];this['_messageService'][_0x402812(0x2f1)](_0x5cd927),this[_0x402812(0x3de)]['delete'](_0x5cd927),this['_timeoutState$'][_0x402812(0x31a)]({'unitId':_0x227bba[_0x402812(0x43e)],'content':this[_0x402812(0x280)]['t'](_0x402812(0x23a),String(_0x227bba['loadedBlocks']),String(_0x227bba[_0x402812(0x395)])),'refreshLabel':this['_localeService']['t'](_0x402812(0x359))});},0xea60);return this[_0x5ad7a8(0x226)][_0x5ad7a8(0x3d4)](_0x227bba[_0x5ad7a8(0x43e)],{'loadedBlocks':_0x227bba[_0x5ad7a8(0x256)],'timedOut':!0x1,'timeoutId':_0x37f34d}),!0x1;}[_0x9941cc(0x363)](_0x182b52){const _0x5b2c63=_0x9941cc;let _0x3555c0=this[_0x5b2c63(0x226)][_0x5b2c63(0x3a2)](_0x182b52);_0x3555c0&&(clearTimeout(_0x3555c0[_0x5b2c63(0x29e)]),this[_0x5b2c63(0x226)][_0x5b2c63(0x3c0)](_0x182b52),this[_0x5b2c63(0x373)](_0x182b52));}['_clearTimeoutState'](_0x51f65d){const _0x4e1c97=_0x9941cc;var _0xa6ac0f;((_0xa6ac0f=this[_0x4e1c97(0x2db)][_0x4e1c97(0x26b)])==null?void 0x0:_0xa6ac0f[_0x4e1c97(0x43e)])===_0x51f65d&&this[_0x4e1c97(0x2db)]['next'](null);}['_isVisibleUnit'](_0x438e43){const _0x3901cf=_0x9941cc;let _0x244ebc=this[_0x3901cf(0x331)][_0x3901cf(0x442)](_0x3901cf(0x246));return!_0x244ebc||_0x244ebc===_0x438e43;}};ir=Y([J(0x0,_0x5e7a64(_0x311f12)),J(0x1,_0x3ba635),J(0x2,_0x5e7a64(_0x100652)),J(0x3,_0x5e7a64(_0x3a52d9)),J(0x4,_0x3b6d8f),J(0x5,Gn)],ir);let ar=class extends _0x4ade65{constructor(_0x4fc825,_0x241cd0,_0x26527e,_0x3ba0e1,_0x2758d2){const _0x3925e0=_0x9941cc;var _0x229b68;super(),this[_0x3925e0(0x36d)]=_0x4fc825,this['_localStorageService']=_0x241cd0,this['_revisionService']=_0x26527e,this[_0x3925e0(0x302)]=_0x3ba0e1,this[_0x3925e0(0x1f0)]=_0x2758d2,q(this,_0x3925e0(0x24a),new Map()),q(this,_0x3925e0(0x223),new Map()),q(this,'_activeSaveTaskMap',new Map()),q(this,'_disabled',!0x1),this[_0x3925e0(0x31c)]=!((_0x229b68=this['_configService'][_0x3925e0(0x3f3)](_0x323108))!=null&&_0x229b68[_0x3925e0(0x387)]);}[_0x9941cc(0x446)](){const _0x5b821b=_0x9941cc;this[_0x5b821b(0x31c)]=!0x0;}['enableLocalCache'](){const _0x2958d6=_0x9941cc;this[_0x2958d6(0x31c)]=!0x1;}get[_0x9941cc(0x268)](){const _0x3a0868=_0x9941cc;let _0x47a58d=new Map(this[_0x3a0868(0x223)]);return this[_0x3a0868(0x42c)][_0x3a0868(0x285)]((_0x12e2f4,_0x1dbf06)=>{const _0x55b2b6=_0x3a0868;_0x47a58d[_0x55b2b6(0x2bf)](_0x1dbf06)||_0x47a58d[_0x55b2b6(0x3d4)](_0x1dbf06,0x0);}),_0x47a58d;}[_0x9941cc(0x1f9)](){const _0x4b275f=_0x9941cc;this[_0x4b275f(0x360)]||(super[_0x4b275f(0x1f9)](),this[_0x4b275f(0x31c)]=!0x0,this[_0x4b275f(0x3fa)]()[_0x4b275f(0x26f)](_0xa1e442=>this[_0x4b275f(0x302)][_0x4b275f(0x3bf)](_0xa1e442)));}async[_0x9941cc(0x41c)](_0x39840e,_0x2c2b6a){const _0x28e50c=_0x9941cc;if(this[_0x28e50c(0x31c)])return null;let _0x4fb42f=this[_0x28e50c(0x23f)](_0x2c2b6a),_0x278d5a=await this[_0x28e50c(0x235)]['getItem'](_0x5c47ad(_0x39840e,_0x4fb42f));return(_0x278d5a==null?void 0x0:_0x278d5a[_0x28e50c(0x231)])===_0x39840e&&this[_0x28e50c(0x327)](_0x278d5a[_0x28e50c(0x241)])===_0x4fb42f?_0x278d5a:null;}async[_0x9941cc(0x1e1)](_0x28fd69,_0x1b8b9d,_0x318b77){const _0x223ec4=_0x9941cc;let _0x363f31=this[_0x223ec4(0x23f)](_0x318b77),_0x37a4b2=_0x5c47ad(_0x28fd69,_0x363f31),_0xb9e427=this[_0x223ec4(0x235)][_0x223ec4(0x283)](_0x37a4b2,{..._0x1b8b9d,'unitID':_0x28fd69,'userId':_0x363f31});return this[_0x223ec4(0x364)](_0x37a4b2,_0xb9e427),!!await _0xb9e427;}async[_0x9941cc(0x311)](_0x27f14f,_0x5e7062,_0x57e564){const _0x4f53f8=_0x9941cc;let _0x45989d=this[_0x4f53f8(0x23f)](_0x57e564),_0x825b61=_0x5c47ad(_0x27f14f,_0x45989d),_0x1673bf=this['_cachedData']['get'](_0x825b61)??await this[_0x4f53f8(0x235)]['getItem'](_0x825b61);if(!_0x1673bf||this[_0x4f53f8(0x327)](_0x1673bf[_0x4f53f8(0x241)])!==_0x45989d||_0x1673bf[_0x4f53f8(0x231)]!==_0x27f14f)return;let _0x22772d=Date['now'](),_0x14ffae=new Date(_0x22772d)[_0x4f53f8(0x329)]();await this['_localStorageService']['setItem'](_0x825b61+_0x4f53f8(0x2af)+_0x22772d,{'reason':_0x5e7062,'createdAt':_0x14ffae,'data':_0x1673bf});}async[_0x9941cc(0x374)](_0x2c2c3c,_0x32b969){const _0x31d882=_0x9941cc;let _0x369df5=this[_0x31d882(0x23f)](_0x32b969),_0x3c4441=_0x5c47ad(_0x2c2c3c,_0x369df5),_0x384e94=this[_0x31d882(0x223)][_0x31d882(0x3a2)](_0x3c4441);_0x384e94!==void 0x0&&(window[_0x31d882(0x438)](_0x384e94),this[_0x31d882(0x223)][_0x31d882(0x3c0)](_0x3c4441));let _0x4b773c=this['_activeSaveTaskMap']['get'](_0x3c4441);_0x4b773c&&await Promise[_0x31d882(0x3fd)](_0x4b773c),this[_0x31d882(0x24a)][_0x31d882(0x3c0)](_0x3c4441),await this['_localStorageService']['removeItem'](_0x3c4441);}['updateOfflineData'](_0x5467a1,_0x255c46,_0xf38a61,_0x34c32d,_0x22d29d){const _0x1b92d0=_0x9941cc;if(this[_0x1b92d0(0x360)])return;let _0x421660=this[_0x1b92d0(0x23f)](_0x22d29d),_0x429db0=_0x5c47ad(_0x5467a1,_0x421660),_0x1cdcd0=this['_revisionService'][_0x1b92d0(0x3c4)](_0x5467a1);this[_0x1b92d0(0x24a)][_0x1b92d0(0x3d4)](_0x429db0,{'unitID':_0x5467a1,'userId':_0x421660,'type':_0x255c46,'awaitingChangeset':_0xf38a61,'mutations':_0x34c32d,'rev':_0x1cdcd0}),this[_0x1b92d0(0x223)][_0x1b92d0(0x2bf)](_0x429db0)||this[_0x1b92d0(0x425)](_0x429db0);}[_0x9941cc(0x23f)](_0xd209ab=((()=>{const _0x4cb515=_0x9941cc;var _0x59a739;return(_0x59a739=this['_userManagerService'][_0x4cb515(0x3ae)]())==null?void 0x0:_0x59a739['userID'];})())){const _0x2bb357=_0x9941cc;return this[_0x2bb357(0x327)](_0xd209ab);}['_normalizeUserId'](_0x381707){return _0x381707===''||_0x381707==null?void 0x0:_0x381707;}['_scheduleSaving'](_0x5232de){const _0x38c998=_0x9941cc;let _0x1c4409=this[_0x38c998(0x28f)]();_0x1c4409===0x0?this[_0x38c998(0x344)](_0x5232de)[_0x38c998(0x26f)](_0x4be6db=>this[_0x38c998(0x302)]['error'](_0x4be6db)):this[_0x38c998(0x223)][_0x38c998(0x3d4)](_0x5232de,window[_0x38c998(0x2d1)](()=>{const _0x4c78fe=_0x38c998;this[_0x4c78fe(0x344)](_0x5232de)['catch'](_0x28445c=>this[_0x4c78fe(0x302)][_0x4c78fe(0x3bf)](_0x28445c));},_0x1c4409));}[_0x9941cc(0x28f)](){const _0xc3a80e=_0x9941cc;return this[_0xc3a80e(0x36d)][_0xc3a80e(0x3f3)](_0x3901f1)??_0x3650b9;}[_0x9941cc(0x344)](_0x55825a){const _0x53e974=_0x9941cc;let _0xc87901=this[_0x53e974(0x223)][_0x53e974(0x3a2)](_0x55825a);_0xc87901!==void 0x0&&window['clearTimeout'](_0xc87901);let _0x513463=this[_0x53e974(0x24a)][_0x53e974(0x3a2)](_0x55825a);if(!_0x513463)return Promise[_0x53e974(0x458)]();let _0x39942b=this['_activeSaveTaskMap'][_0x53e974(0x3a2)](_0x55825a),_0x51b9d6=Promise[_0x53e974(0x3fd)](_0x39942b?[..._0x39942b]:[])[_0x53e974(0x375)](()=>this['_localStorageService'][_0x53e974(0x283)](_0x55825a,_0x513463))[_0x53e974(0x375)](()=>{const _0x39dbf8=_0x53e974;_0xc87901!==void 0x0&&this[_0x39dbf8(0x223)][_0x39dbf8(0x3a2)](_0x55825a)===_0xc87901&&(this['_saveTaskMap'][_0x39dbf8(0x3c0)](_0x55825a),!this[_0x39dbf8(0x360)]&&this['_cachedData']['get'](_0x55825a)!==_0x513463&&this['_scheduleSaving'](_0x55825a));});return this[_0x53e974(0x364)](_0x55825a,_0x51b9d6),_0x51b9d6;}[_0x9941cc(0x364)](_0x36fa2c,_0x13cec1){const _0x13097e=_0x9941cc;let _0x1adec8=this['_activeSaveTaskMap']['get'](_0x36fa2c);_0x1adec8||(_0x1adec8=new Set(),this[_0x13097e(0x42c)][_0x13097e(0x3d4)](_0x36fa2c,_0x1adec8)),_0x1adec8[_0x13097e(0x1f1)](_0x13cec1);let _0xdf242c=()=>{const _0x305040=_0x13097e;_0x1adec8[_0x305040(0x3c0)](_0x13cec1),_0x1adec8['size']===0x0&&this[_0x305040(0x42c)][_0x305040(0x3c0)](_0x36fa2c);};_0x13cec1['then'](_0xdf242c,_0xdf242c);}async[_0x9941cc(0x3fa)](){const _0x51d04e=_0x9941cc;let _0x394670=[...this[_0x51d04e(0x223)][_0x51d04e(0x428)]()][_0x51d04e(0x2a1)](_0x3ac60e=>this['_saveCache'](_0x3ac60e));for(let _0x36d893 of this[_0x51d04e(0x42c)][_0x51d04e(0x3ca)]())_0x394670[_0x51d04e(0x2d4)](...[..._0x36d893]['map'](_0x49eaa7=>_0x49eaa7['then'](()=>void 0x0)));await Promise[_0x51d04e(0x23b)](_0x394670);}};ar=Y([J(0x0,_0x3116f3),J(0x1,_0x2d6fa6),J(0x2,_0x5e7a64(_0x363588)),J(0x3,_0x54abc2),J(0x4,_0x5e7a64(_0x57bb22))],ar);var or=class extends _0x4ade65{get[_0x9941cc(0x406)](){const _0x4c3ac1=_0x9941cc;return this[_0x4c3ac1(0x272)][_0x4c3ac1(0x3b0)]();}constructor(){const _0x440635=_0x9941cc;super(),q(this,_0x440635(0x272),new _0x4693d8(navigator[_0x440635(0x27c)])),q(this,_0x440635(0x2b6),this[_0x440635(0x272)][_0x440635(0x221)]()),this[_0x440635(0x202)](),this[_0x440635(0x3ee)]();}['dispose'](){const _0x41f5cd=_0x9941cc;super[_0x41f5cd(0x1f9)](),this[_0x41f5cd(0x272)][_0x41f5cd(0x303)]();}[_0x9941cc(0x3ee)](){const _0x17f3d1=_0x9941cc;this['disposeWithMe'](_0x5c9537(_0x252f84(window,'online'),_0x252f84(window,_0x17f3d1(0x27a)),_0x252f84(document,_0x17f3d1(0x381))['pipe'](_0x2ae595(()=>document[_0x17f3d1(0x39a)]===_0x17f3d1(0x30b)),_0x27d01f(_0x1348bf=>_0x1348bf)))['pipe'](_0x27d01f(()=>navigator[_0x17f3d1(0x27c)]))[_0x17f3d1(0x44c)](()=>this[_0x17f3d1(0x272)]['next'](!0x0)));}[_0x9941cc(0x202)](){const _0x2e4149=_0x9941cc;this['disposeWithMe'](_0x252f84(window,_0x2e4149(0x270))[_0x2e4149(0x44c)](()=>this[_0x2e4149(0x272)][_0x2e4149(0x31a)](!0x1)));}},sr=class extends _0x26adc4{constructor(){const _0x1e2595=_0x9941cc;super(),q(this,_0x1e2595(0x3ce),void 0x0),this[_0x1e2595(0x3ce)]=_0x252f84(window,_0x1e2595(0x2b0))[_0x1e2595(0x1e3)](_0x4c8245(this[_0x1e2595(0x1f3)]),_0x3e947a({'bufferSize':0x1,'refCount':!0x0}),_0x1c52fe(void 0x0));}[_0x9941cc(0x3dd)](_0x5c27e0,_0x4e64cb,_0x1f84b9=!0x1){const _0x2350c8=_0x9941cc;let _0x383edc=new URL(window[_0x2350c8(0x261)][_0x2350c8(0x450)]);_0x383edc['searchParams']['set'](_0x5c27e0,_0x4e64cb),_0x1f84b9?window['history'][_0x2350c8(0x2b3)]('','',_0x383edc['toString']()):window[_0x2350c8(0x305)][_0x2350c8(0x32b)]('','',_0x383edc['toString']());}[_0x9941cc(0x292)](_0x4cf506,_0x2bc6e0=!0x1){const _0x550400=_0x9941cc;let _0xa66620=new URL(window[_0x550400(0x261)][_0x550400(0x450)]);_0xa66620['searchParams'][_0x550400(0x3c0)](_0x4cf506),_0x2bc6e0?window[_0x550400(0x305)][_0x550400(0x2b3)]('','',_0xa66620[_0x550400(0x2cb)]()):window[_0x550400(0x305)][_0x550400(0x32b)]('','',_0xa66620[_0x550400(0x2cb)]());}[_0x9941cc(0x442)](_0x1a746d){const _0x536a02=_0x9941cc;return new URL(window['location'][_0x536a02(0x450)])['searchParams'][_0x536a02(0x3a2)](_0x1a746d)??void 0x0;}};let $=class extends _0x158ecc{constructor(_0x3111ce=_n,_0x13d9a2,_0x26a308,_0x57fcbc,_0x111fbe){const _0xcf46a5=_0x9941cc;super(),this[_0xcf46a5(0x2f0)]=_0x3111ce,this[_0xcf46a5(0x2b1)]=_0x13d9a2,this['_injector']=_0x26a308,this['_configService']=_0x57fcbc,this['_commandService']=_0x111fbe;let {..._0x2284de}=_0x468132({},_n,this[_0xcf46a5(0x2f0)]);this[_0xcf46a5(0x36d)][_0xcf46a5(0x2df)](_0xcf46a5(0x40e),_0x2284de);}[_0x9941cc(0x3b7)](){const _0x1dc6d1=_0x9941cc;this[_0x1dc6d1(0x409)](),this[_0x1dc6d1(0x366)](this[_0x1dc6d1(0x2c3)]['registerCommand'](gn)),this['_initDependencies']();}[_0x9941cc(0x308)](){const _0x53a542=_0x9941cc;this[_0x53a542(0x2f5)]();}['_registerDependencies'](){const _0x3b2d7c=_0x9941cc;var _0x31c5c1;let _0x3b6368=[[bn],[Gn,{'useClass':sr}],[_0x15f85b,{'useClass':_0x2b2855}],[_0x4acd2b,{'useClass':ar}],[_0x33aa34,{'useClass':or}],[X],[Wn],[Z],[Hn],[ir]];this[_0x3b2d7c(0x2f0)][_0x3b2d7c(0x294)]!==!0x1&&_0x3b6368['push']([Kn]),this['_config'][_0x3b2d7c(0x352)]!==!0x1&&_0x3b6368[_0x3b2d7c(0x2d4)]([Yn],[qn],[Jn],[Cn],[er],[vn]),this['_config'][_0x3b2d7c(0x228)]&&_0x3b6368[_0x3b2d7c(0x2d4)]([tr]),_0x176aa9(this[_0x3b2d7c(0x2f6)],_0x1b4625(_0x3b6368,(_0x31c5c1=this[_0x3b2d7c(0x2f0)])==null?void 0x0:_0x31c5c1[_0x3b2d7c(0x216)]));}[_0x9941cc(0x2f5)](){const _0x1f1c1c=_0x9941cc;this[_0x1f1c1c(0x2f0)]['enableDocumentCollaborationUI']!==!0x1&&this['disposeWithMe'](this['_renderManagerService'][_0x1f1c1c(0x314)](_0x3a9ab9[_0x1f1c1c(0x31e)],[Nn])),this[_0x1f1c1c(0x366)](this[_0x1f1c1c(0x2b1)][_0x1f1c1c(0x314)](_0x3a9ab9[_0x1f1c1c(0x38a)],[Fn]));}['_initDependencies'](){const _0x3655ea=_0x9941cc;_0x266c62(this[_0x3655ea(0x2f6)],[[Z],[Hn],[X],[Wn],[ir]]),this[_0x3655ea(0x2f0)]['enableUrlUnitLoader']!==!0x1&&_0x266c62(this['_injector'],[[Kn]]),this[_0x3655ea(0x2f0)][_0x3655ea(0x352)]!==!0x1&&_0x266c62(this[_0x3655ea(0x2f6)],[[er],[vn]]),this[_0x3655ea(0x2f0)]['enableFrontendLog']&&_0x266c62(this[_0x3655ea(0x2f6)],[[tr]]);}};q($,_0x9941cc(0x1e6),_0x9941cc(0x44e)),q($,'packageName',mn),q($,_0x9941cc(0x224),hn),$=Y([_0x5920de(_0x1dc124,_0x42b8ea,_0x24783a,_0x317ac1,_0x4aa696,_0x496886,_0x5ac656),J(0x1,_0x20ed56),J(0x2,_0x5e7a64(_0x3a52d9)),J(0x3,_0x3116f3),J(0x4,_0x309b58)],$);let cr=class extends _0xff2dd6{constructor(_0x5bc19c,_0x493552,_0x1a27d0,_0x11c27f,_0x3daaca){const _0x11aa4e=_0x9941cc;super(_0x5bc19c,_0x493552,_0x1a27d0,_0x11c27f,_0x3daaca),q(this,'_dispose$',new _0x49cf9c()),this[_0x11aa4e(0x366)](()=>{const _0x5582d3=_0x11aa4e;this[_0x5582d3(0x3b6)][_0x5582d3(0x31a)](),this['_dispose$'][_0x5582d3(0x303)]();});}async[_0x9941cc(0x2e8)](_0x193b91){const _0x29dbe8=_0x9941cc;let _0x25b77b=await this[_0x29dbe8(0x296)](),_0x2b4018=this[_0x29dbe8(0x1e5)](_0x193b91,_0x25b77b);return this[_0x29dbe8(0x281)](_0x2b4018);}[_0x9941cc(0x1e5)](_0x191f73,_0xdcba){const _0x19ef11=_0x9941cc;let _0x4707d2=typeof window>'u'?new URL(_0x191f73):new URL(_0x191f73,window['location'][_0x19ef11(0x2e0)]);_0x4707d2[_0x19ef11(0x22d)]['set'](_0x19ef11(0x288),_0xdcba);let _0x533be6=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x19ef11(0x261)][_0x19ef11(0x2bc)]);return _0x533be6[_0x19ef11(0x3a2)](_0x19ef11(0x422))&&_0x4707d2['searchParams'][_0x19ef11(0x3d4)](_0x19ef11(0x422),_0x533be6[_0x19ef11(0x3a2)]('runId')),_0x4707d2[_0x19ef11(0x2cb)]();}async[_0x9941cc(0x296)](){const _0x44b0d1=_0x9941cc;var _0x5c6b39;let _0x2eaad5=this['_configService'][_0x44b0d1(0x3f3)](_0x323108),_0x182851=(_0x2eaad5==null?void 0x0:_0x2eaad5[_0x44b0d1(0x2c9)])??_0x59be2d;return((_0x5c6b39=(await _0x41d36(this[_0x44b0d1(0x2d7)][_0x44b0d1(0x1f6)]('GET',_0x182851,{'headers':{'Content-Type':'application/json'}})[_0x44b0d1(0x1e3)](_0x27d01f(_0x541fec=>_0x541fec['type']===_0x4d1c71['Response']),_0x500b61(0x4e20),_0x4c8245(this['_dispose$']))))[_0x44b0d1(0x1e4)])==null?void 0x0:_0x5c6b39[_0x44b0d1(0x42f)])??'';}};cr=Y([J(0x0,_0x5e7a64(_0x3a52d9)),J(0x1,_0x5e7a64(_0x2f3aec)),J(0x2,_0x3116f3),J(0x3,_0x54abc2),J(0x4,_0x55255b)],cr);let lr=class extends _0x4ade65{constructor(_0x52a652,_0x57ae4b,_0x2c09fb){const _0x40ada6=_0x9941cc;super(),this[_0x40ada6(0x35b)]=_0x52a652,this[_0x40ada6(0x2d7)]=_0x57ae4b,this[_0x40ada6(0x36d)]=_0x2c09fb;}async[_0x9941cc(0x353)](_0x4789b2,_0x1b8eef,_0x4f5f60,..._0xa4d9ca){const _0x4f7e2f=_0x9941cc;let _0x55d3c0=this['_instanceService'][_0x4f7e2f(0x336)]();if(!_0x55d3c0)throw Error(_0x4f7e2f(0x325));let _0xc1bb8f=(this[_0x4f7e2f(0x36d)][_0x4f7e2f(0x3f3)](_0x3ffe51)??_0x425445)+'/'+_0x4789b2+_0x4f7e2f(0x312)+_0x1b8eef,_0x20a244={'scriptId':_0x4789b2,'runId':new URL(window[_0x4f7e2f(0x261)][_0x4f7e2f(0x450)])[_0x4f7e2f(0x22d)][_0x4f7e2f(0x3a2)](_0x4f7e2f(0x422))??'','function':_0x1b8eef,'unitId':_0x55d3c0[_0x4f7e2f(0x29c)](),'argsOfFunction':JSON[_0x4f7e2f(0x248)](_0xa4d9ca),'invokeId':_0x4f5f60[_0x4f7e2f(0x2f2)]??'','executionId':_0x4f5f60[_0x4f7e2f(0x420)]??''};try{let _0x415479=await this[_0x4f7e2f(0x2d7)][_0x4f7e2f(0x309)](_0xc1bb8f,{'body':_0x20a244});return _0x415479['body'][_0x4f7e2f(0x3bf)]&&_0x415479[_0x4f7e2f(0x1e4)][_0x4f7e2f(0x3bf)]['code']!==_0x56aba6['OK']?_0x4f7e2f(0x36a):_0x415479[_0x4f7e2f(0x1e4)][_0x4f7e2f(0x355)];}catch{return _0x4f7e2f(0x36a);}}};lr=Y([J(0x0,_0x479ada),J(0x1,_0x5e7a64(_0x2f3aec)),J(0x2,_0x3116f3)],lr);const ur=0x7530,dr=_0x9941cc(0x38d);var fr=class extends _0x4ade65{constructor(){const _0x12c8cf=_0x9941cc;super(),q(this,_0x12c8cf(0x1fc),_0x514bf7()),q(this,'_selfUnitIDs',new Set()),q(this,'_unitOnClients',new Map()),q(this,_0x12c8cf(0x2d6),null),q(this,_0x12c8cf(0x413),new Map()),q(this,_0x12c8cf(0x3a8),new Map()),this[_0x12c8cf(0x30a)]();}[_0x9941cc(0x1f9)](){const _0x3d0fcc=_0x9941cc;super[_0x3d0fcc(0x1f9)](),this['_clearOtherTimers'][_0x3d0fcc(0x285)]((_0x49d260,_0x379f1c)=>this['_removeClearOtherTimer'](_0x379f1c)),this[_0x3d0fcc(0x2d6)]&&window[_0x3d0fcc(0x362)](this[_0x3d0fcc(0x2d6)]);}[_0x9941cc(0x205)](_0x30d234){const _0x184d53=_0x9941cc;return this[_0x184d53(0x30c)](_0x30d234)[_0x184d53(0x1e3)](_0x5b52ab());}[_0x9941cc(0x39b)](_0x27864b){const _0x83b38c=_0x9941cc;this['_selfUnitIDs'][_0x83b38c(0x3e1)]===0x0&&this[_0x83b38c(0x263)](),this[_0x83b38c(0x391)][_0x83b38c(0x1f1)](_0x27864b),this[_0x83b38c(0x35e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x27864b],'isForwarded':!0x1});}[_0x9941cc(0x2c5)](_0xea831a){const _0x2ea82f=_0x9941cc;this[_0x2ea82f(0x391)]['delete'](_0xea831a),this['_selfUnitIDs'][_0x2ea82f(0x3e1)]===0x0&&this[_0x2ea82f(0x2d6)]&&window[_0x2ea82f(0x362)](this['_heartbeatTimer']);}['_init'](){const _0x23ece3=_0x9941cc;this[_0x23ece3(0x366)](_0x43c8f(_0x252f84(window,_0x23ece3(0x2f4))[_0x23ece3(0x44c)](_0x1ff99a=>{const _0x4eea62=_0x23ece3;if(_0x1ff99a[_0x4eea62(0x33e)]!==dr||!_0x1ff99a[_0x4eea62(0x3f5)])return;let _0x29ab24=JSON[_0x4eea62(0x404)](_0x1ff99a['newValue']);this[_0x4eea62(0x2d9)](_0x29ab24);}))),window[_0x23ece3(0x44f)]('unload',()=>this[_0x23ece3(0x35e)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x23ece3(0x354)](this[_0x23ece3(0x391)])}));}[_0x9941cc(0x2d9)](_0x214ac4){const _0x2729de=_0x9941cc;switch(_0x214ac4['type']){case 0x0:this[_0x2729de(0x2b5)](_0x214ac4);break;case 0x1:this[_0x2729de(0x3f6)](_0x214ac4);break;case 0x2:this[_0x2729de(0x3ba)](_0x214ac4);}}[_0x9941cc(0x2b5)](_0xff0fd4){let {unitIDs:_0x1cef03,memberID:_0x104e88,isForwarded:_0x22fcd4}=_0xff0fd4;_0x1cef03['forEach'](_0x493aac=>{const _0x295450=_0x54b3;if(!_0x22fcd4&&this[_0x295450(0x342)][_0x295450(0x2bf)](_0x493aac)&&this['_ensureSubject'](_0x493aac)[_0x295450(0x31a)](_0x4c50b0[_0x295450(0x326)]),!this[_0x295450(0x342)][_0x295450(0x2bf)](_0x493aac)||!this[_0x295450(0x342)]['get'](_0x493aac)[_0x295450(0x2bf)](_0x104e88)){let _0x5b8389=this[_0x295450(0x342)][_0x295450(0x3a2)](_0x493aac)||new Set();_0x5b8389['add'](_0x104e88),this['_unitOnClients']['set'](_0x493aac,_0x5b8389),this[_0x295450(0x22c)](_0x104e88);}}),_0x22fcd4||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x9941cc(0x22c)](_0x1917a2){const _0x16749b=_0x9941cc;this[_0x16749b(0x2ac)](_0x1917a2);let _0x736a48=window['setTimeout'](()=>{const _0x108398=_0x16749b;this[_0x108398(0x342)][_0x108398(0x285)](_0x596790=>{const _0x302721=_0x108398;_0x596790[_0x302721(0x3c0)](_0x1917a2);});},ur*0x2);this[_0x16749b(0x413)][_0x16749b(0x3d4)](_0x1917a2,_0x736a48);}[_0x9941cc(0x2ac)](_0x62df0){const _0x2bbd7f=_0x9941cc;if(this[_0x2bbd7f(0x413)][_0x2bbd7f(0x2bf)](_0x62df0)){let _0x164a7f=this[_0x2bbd7f(0x413)][_0x2bbd7f(0x3a2)](_0x62df0);_0x164a7f&&window[_0x2bbd7f(0x438)](_0x164a7f),this[_0x2bbd7f(0x413)][_0x2bbd7f(0x3d4)](_0x62df0,null);}}[_0x9941cc(0x3f6)](_0x539a2e){const _0x55f9f9=_0x9941cc;let {memberID:_0x4d60fd,unitIDs:_0x35df47}=_0x539a2e;_0x35df47[_0x55f9f9(0x285)](_0x1c131b=>{const _0xcaf2c2=_0x55f9f9;var _0x4a731b;let _0x27a101=this[_0xcaf2c2(0x342)][_0xcaf2c2(0x3a2)](_0x1c131b);_0x27a101&&(_0x27a101[_0xcaf2c2(0x3c0)](_0x4d60fd),(_0x4a731b=this['_ensureSubject'](_0x1c131b))==null||_0x4a731b[_0xcaf2c2(0x31a)](_0x27a101['size']===0x0?_0x4c50b0[_0xcaf2c2(0x31b)]:_0x4c50b0[_0xcaf2c2(0x326)]));}),this[_0x55f9f9(0x2ac)](_0x4d60fd);}[_0x9941cc(0x3ba)](_0x5517f0){const _0x3a1637=_0x9941cc;this[_0x3a1637(0x22c)](_0x5517f0[_0x3a1637(0x1ef)]);}[_0x9941cc(0x35e)](_0x29fbd3){const _0x44c522=_0x9941cc;localStorage['setItem'](dr,JSON[_0x44c522(0x248)](_0x29fbd3));}[_0x9941cc(0x263)](){const _0x37742b=_0x9941cc;this['_heartbeatTimer']=window[_0x37742b(0x41b)](()=>{const _0x4999c1=_0x37742b;this[_0x4999c1(0x35e)]({'type':0x2,'memberID':this['_id']});},ur);}[_0x9941cc(0x30c)](_0x55c119){const _0x4aa10e=_0x9941cc;return this[_0x4aa10e(0x3a8)][_0x4aa10e(0x2bf)](_0x55c119)||this[_0x4aa10e(0x3a8)][_0x4aa10e(0x3d4)](_0x55c119,new _0x4693d8(_0x4c50b0[_0x4aa10e(0x31b)])),this['_unitStatus'][_0x4aa10e(0x3a2)](_0x55c119);}};export{cr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,Gn as IURLService,lr as RemoteUniscriptService,Pn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,fr as WebBrowserSingleActiveUnitService};
|
|
1
|
+
const _0x51ce3e=_0x5409;(function(_0x1b6a20,_0x3411c0){const _0x41932a=_0x5409,_0xbc2d30=_0x1b6a20();while(!![]){try{const _0x399a2b=parseInt(_0x41932a(0x85))/0x1*(parseInt(_0x41932a(0x23c))/0x2)+-parseInt(_0x41932a(0xd7))/0x3*(parseInt(_0x41932a(0x1cb))/0x4)+-parseInt(_0x41932a(0x1ef))/0x5+parseInt(_0x41932a(0xa4))/0x6+parseInt(_0x41932a(0x1a6))/0x7+parseInt(_0x41932a(0x2a2))/0x8+-parseInt(_0x41932a(0x2ed))/0x9*(parseInt(_0x41932a(0x268))/0xa);if(_0x399a2b===_0x3411c0)break;else _0xbc2d30['push'](_0xbc2d30['shift']());}catch(_0x52836e){_0xbc2d30['push'](_0xbc2d30['shift']());}}}(_0x4c77,0x9273a));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3b647d,CollaborationController as _0x425d0b,CollaborationSessionService as _0x52adf7,CollaborationSocketService as _0x150cad,CollaborationStatus as _0x4c0e18,CollaborationUIEventId as _0x4575d2,CollaborationUIEventService as _0x1baddd,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5ece8c,DEFAULT_WS_SESSION_TICKET_URL as _0x2490bb,DocCollaborationEntity as _0x700325,ILocalCacheService as _0x5561a0,INetworkConditionService as _0x1be8c6,LOCAL_CACHE_INTERVAL as _0x48e5c8,LOCAL_CACHE_INTERVAL_KEY as _0x5147da,MemberService as _0x1140c4,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4c7939,SessionStatus as _0x5a103a,UnitStatus as _0x54a43b,UniverCollaborationClientPlugin as _0x48f236,getLocalCacheKey as _0x1776e1}from'@univerjs-pro/collaboration-client';import{COLORS as _0x51e04d,ColorKit as _0x14b4fd,CommandType as _0x212ed0,DOC_RANGE_TYPE as _0x453bb8,DependentOn as _0x3bfcd6,Disposable as _0x487fff,DisposableCollection as _0x399827,ICommandService as _0xa707b2,IConfigService as _0x358956,IImageIoService as _0x54a5ef,ILocalStorageService as _0x1f0179,ILogService as _0x49c433,IUniverInstanceService as _0x2d0e88,Inject as _0x34f379,Injector as _0x5e88d7,LocaleService as _0x34d8fb,Plugin as _0x318506,Rectangle as _0x3ba903,RxDisposable as _0xec433e,ThemeService as _0x1477dd,Tools as _0x55bd20,UniverInstanceType as _0x638df4,UserManagerService as _0x3f6f1d,debounce as _0x38a934,fromEventSubject as _0x575566,generateRandomId as _0x4efbbb,isInternalEditorID as _0x490384,merge as _0x4eb5a5,mergeOverrideWithDependencies as _0x193349,registerDependencies as _0x5981d6,toDisposable as _0x2dde77,touchDependencies as _0x34a99e}from'@univerjs/core';import{BuiltInUIPart as _0x452cfb,IBeforeCloseService as _0x556454,IMessageService as _0x518151,INotificationService as _0x481bc3,IUIPartsService as _0x5099ce,IUnitPresenceUIAdapterRegistry as _0x3bf6ba,connectInjector as _0x28ef2e,useDependency as _0x288eb8,useObservable as _0x1b4a12}from'@univerjs/ui';import{BehaviorSubject as _0x207222,Subject as _0x1674f4,combineLatest as _0x54fdcf,debounceTime as _0x136cb0,distinctUntilChanged as _0x4b8a08,filter as _0x1ad818,firstValueFrom as _0x5bd556,fromEvent as _0x5aae38,map as _0x55fadf,merge as _0x2a8ee4,of as _0x450ab3,switchMap as _0x2cc410,takeUntil as _0x8ba39e,throttle as _0x240576,timeout as _0x1616a1,timer as _0x3accd4}from'rxjs';import{distinctUntilChanged as _0x5d5af3,filter as _0xe50f8e,map as _0x44be09,switchMap as _0x26ef76,takeUntil as _0x395d25,throttleTime as _0x32b513}from'rxjs/operators';import{Button as _0x2fdc51,MessageType as _0x4c541a,Tooltip as _0x2e1ab9,clsx as _0x2578e5}from'@univerjs/design';import{LoadingMultiIcon as _0x30495b,OffLineIcon as _0x17c33c,OnLineIcon as _0x2ad19c,WarningIcon as _0x1a1a37}from'@univerjs/icons';import{createElement as _0x732822,useCallback as _0x2d5e11,useMemo as _0x5a4182}from'react';import{jsx as _0x51ebc4,jsxs as _0x204b00}from'react/jsx-runtime';import{CollaborationEvent as _0x33d081,ISnapshotServerService as _0x2769c2,ITransformService as _0x14ff3a,RevisionService as _0x14a041,SnapshotLoadStage as _0x931e57,SnapshotLoadingService as _0x2088fb,UniverCollaborationPlugin as _0x4cc586,isTransformMutationFailure as _0x29e3e7,isTransformMutationsWithChangesetSuccess as _0x4bdf18}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x456b0a}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x383684,DocSkeletonManagerService as _0x3d83ec,DocStateChangeManagerService as _0x4a7f74,RichTextEditingMutation as _0x431200,SetTextSelectionsOperation as _0x1f3a4f,UniverDocsPlugin as _0x4a7635}from'@univerjs/docs';import{DocIMEInputManagerService as _0x368e73,IDocClipboardService as _0xdfd46b,NodePositionConvertToCursor as _0x4df32d,NodePositionConvertToRectRange as _0x49cab4,SetDocZoomRatioOperation as _0x508dd8,TEXT_RANGE_LAYER_INDEX as _0x1f3fdc,UniverDocsUIPlugin as _0x4f615e}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x50d566,IRenderManagerService as _0x465bcd,Rect as _0x2f083c,RegularPolygon as _0x39df3e,SHEET_VIEWPORT_KEY as _0xcd96bb,Shape as _0x5f518d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1555ad,UniverRenderEnginePlugin as _0x2d0c14,Vector2 as _0x1ba6df,getColor as _0x5d2b44,getDocumentSkeletonColumnPagePathInfo as _0x335bc8}from'@univerjs/engine-render';import{HTTPEventType as _0x538b06,HTTPService as _0x14792e,ISocketService as _0x4acc61,UniverNetworkPlugin as _0x13bacb,WebSocketService as _0x12c4d7}from'@univerjs/network';import{deserializeRangeWithSheet as _0x319f9a,serializeRangeWithSheet as _0xe13572}from'@univerjs/engine-formula';import{EffectRefRangId as _0x4ef3b7,RefRangeService as _0x140c2b,SetSelectionsOperation as _0x5df989,SheetsSelectionsService as _0x2ffe22,handleDeleteRangeMoveLeft as _0x506b40,handleDeleteRangeMoveUp as _0x22a138,handleIRemoveCol as _0x87c43c,handleIRemoveRow as _0x48df53,handleInsertCol as _0x5e615e,handleInsertRangeMoveDown as _0x2aa96e,handleInsertRangeMoveRight as _0x125766,handleInsertRow as _0x784687,handleMoveRange as _0x249a5a,runRefRangeMutations as _0x161963}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x2d0fbe,getCoordByCell as _0xc235cf,getSheetObject as _0x298c29}from'@univerjs/sheets-ui';import{ErrorCode as _0x31bc95}from'@univerjs/protocol';function tn(_0x56abd7){const _0x1bae0c=_0x5409;switch(_0x56abd7){case _0x4c0e18[_0x1bae0c(0x14e)]:return{'icon':_0x51ebc4(_0x17c33c,{}),'colorClass':'univer-text-red-500','i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x1bae0c(0xf2)};case _0x4c0e18[_0x1bae0c(0x18f)]:return{'icon':_0x51ebc4(_0x17c33c,{}),'colorClass':_0x1bae0c(0x2c5),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':'static'};case _0x4c0e18[_0x1bae0c(0x121)]:return{'icon':_0x51ebc4(_0x30495b,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x1bae0c(0x1ee),'clickable':!0x1,'indicator':_0x1bae0c(0xf1)};case _0x4c0e18[_0x1bae0c(0x25b)]:return{'icon':_0x51ebc4(_0x2ad19c,{}),'colorClass':_0x1bae0c(0x99),'i18nKey':_0x1bae0c(0x26b),'clickable':!0x1,'indicator':_0x1bae0c(0xf2)};case _0x4c0e18[_0x1bae0c(0x2e6)]:case _0x4c0e18[_0x1bae0c(0x2e1)]:return{'icon':_0x51ebc4(_0x30495b,{}),'colorClass':_0x1bae0c(0xc4),'i18nKey':_0x1bae0c(0x260),'clickable':!0x1,'indicator':'spin'};case _0x4c0e18[_0x1bae0c(0x2b5)]:return{'icon':_0x51ebc4(_0x30495b,{}),'colorClass':_0x1bae0c(0xc4),'i18nKey':_0x1bae0c(0x260),'clickable':!0x1,'indicator':_0x1bae0c(0xf1)};case _0x4c0e18[_0x1bae0c(0x2c8)]:return{'icon':_0x51ebc4(_0x2ad19c,{}),'colorClass':_0x1bae0c(0x22a),'i18nKey':_0x1bae0c(0x2ea),'clickable':!0x1,'indicator':_0x1bae0c(0xf2)};}}function nn(_0x3f32f9){const _0x4aea96=_0x5409;let {status$:_0x63b650}=_0x3f32f9,_0x28d9ec=_0x1b4a12(_0x63b650,_0x4c0e18['NOT_COLLAB']),_0x2c6f42=_0x288eb8(_0x34d8fb),_0x4d5a14=_0x288eb8(_0x52adf7),_0x34dd81=_0x5a4182(()=>tn(_0x28d9ec),[_0x28d9ec]),_0x17dee1=_0x28d9ec!==_0x4c0e18[_0x4aea96(0x14e)],_0x1ac704=_0x2c6f42['t'](_0x34dd81[_0x4aea96(0x11e)]),_0x4ef40c=_0x34dd81[_0x4aea96(0xc5)]?_0x2c6f42['t'](_0x34dd81[_0x4aea96(0xc5)]):_0x1ac704,_0x273aba=_0x2d5e11(()=>{const _0x2cebd8=_0x4aea96;_0x17dee1||_0x4d5a14[_0x2cebd8(0x19c)]();},[_0x17dee1,_0x4d5a14]),_0xb20b10=_0x2d5e11(_0x45fcb5=>{const _0x2ba09e=_0x4aea96;!_0x17dee1&&(_0x45fcb5[_0x2ba09e(0x1c5)]===_0x2ba09e(0x20d)||_0x45fcb5[_0x2ba09e(0x1c5)]==='\x20')&&(_0x45fcb5[_0x2ba09e(0x194)](),_0x4d5a14['reconnect']());},[_0x17dee1,_0x4d5a14]),_0x5dd134=_0x51ebc4(_0x4aea96(0x254),{'className':_0x2578e5(_0x4aea96(0x10d),_0x4aea96(0x2ec),_0x34dd81['colorClass'],{'univer-animate-spin':_0x34dd81[_0x4aea96(0xd4)]===_0x4aea96(0xf1),'univer-animate-pulse':_0x34dd81[_0x4aea96(0xd4)]==='pulse'}),'aria-hidden':_0x4aea96(0x1c2),'children':_0x34dd81[_0x4aea96(0xd1)]}),_0x394eac=_0x51ebc4(_0x4aea96(0x254),{'className':_0x2578e5(_0x4aea96(0x10d),_0x4aea96(0x29f),_0x4aea96(0x18c),_0x4aea96(0x134),'dark:focus:!univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x34dd81[_0x4aea96(0x111)],'univer-cursor-default':!_0x34dd81[_0x4aea96(0x111)]}),'children':_0x5dd134});return _0x34dd81[_0x4aea96(0x111)]?_0x51ebc4(_0x2e1ab9,{'title':_0x4ef40c,'placement':_0x4aea96(0x290),'children':_0x51ebc4(_0x4aea96(0x2f2),{'type':_0x4aea96(0x2f2),'onClick':_0x273aba,'onKeyDown':_0xb20b10,'className':_0x2578e5(_0x4aea96(0xb9),'univer-border-none\x20univer-bg-transparent',_0x4aea96(0x224),_0x4aea96(0x1d8)),'aria-label':_0x1ac704+'\x20-\x20'+_0x4ef40c,'role':'status','aria-live':_0x4aea96(0xe2),'aria-atomic':_0x4aea96(0x1c2),'children':_0x394eac})}):_0x51ebc4(_0x2e1ab9,{'title':_0x4ef40c,'placement':_0x4aea96(0x290),'children':_0x51ebc4(_0x4aea96(0x165),{'className':_0x2578e5(_0x4aea96(0xb9),_0x4aea96(0x285),_0x4aea96(0x224)),'aria-label':_0x1ac704,'role':_0x4aea96(0x154),'aria-live':_0x4aea96(0xe2),'aria-atomic':_0x4aea96(0x1c2),'children':_0x394eac})});}function K(_0x578735){'@babel/helpers - typeof';const _0x128048=_0x5409;return K=typeof Symbol==_0x128048(0x14d)&&typeof Symbol['iterator']==_0x128048(0x112)?function(_0x1d4196){return typeof _0x1d4196;}:function(_0x2b01de){const _0xc4edb4=_0x128048;return _0x2b01de&&typeof Symbol==_0xc4edb4(0x14d)&&_0x2b01de[_0xc4edb4(0x244)]===Symbol&&_0x2b01de!==Symbol['prototype']?_0xc4edb4(0x112):typeof _0x2b01de;},K(_0x578735);}function rn(_0x4dabd9,_0x232cd5){const _0x2af84c=_0x5409;if(K(_0x4dabd9)!=_0x2af84c(0xba)||!_0x4dabd9)return _0x4dabd9;var _0x1a2a4d=_0x4dabd9[Symbol[_0x2af84c(0x292)]];if(_0x1a2a4d!==void 0x0){var _0x11f567=_0x1a2a4d['call'](_0x4dabd9,_0x232cd5||_0x2af84c(0x298));if(K(_0x11f567)!=_0x2af84c(0xba))return _0x11f567;throw TypeError(_0x2af84c(0x18a));}return(_0x232cd5==='string'?String:Number)(_0x4dabd9);}function an(_0x595ca9){const _0x427df9=_0x5409;var _0x1f4127=rn(_0x595ca9,_0x427df9(0x273));return K(_0x1f4127)=='symbol'?_0x1f4127:_0x1f4127+'';}function q(_0x31f698,_0x36f058,_0x43a862){return(_0x36f058=an(_0x36f058))in _0x31f698?Object['defineProperty'](_0x31f698,_0x36f058,{'value':_0x43a862,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x31f698[_0x36f058]=_0x43a862,_0x31f698;}function J(_0x47b5d5,_0x1bf0ba){return function(_0x112156,_0x4c89c4){_0x1bf0ba(_0x112156,_0x4c89c4,_0x47b5d5);};}function Y(_0x237c10,_0x3a0499,_0xb44cf2,_0x4ec5e5){const _0x28cf32=_0x5409;var _0x328aba=arguments[_0x28cf32(0x26f)],_0x34ae24=_0x328aba<0x3?_0x3a0499:_0x4ec5e5===null?_0x4ec5e5=Object[_0x28cf32(0xbb)](_0x3a0499,_0xb44cf2):_0x4ec5e5,_0xadc0ac;if(typeof Reflect=='object'&&typeof Reflect[_0x28cf32(0x2be)]==_0x28cf32(0x14d))_0x34ae24=Reflect['decorate'](_0x237c10,_0x3a0499,_0xb44cf2,_0x4ec5e5);else{for(var _0x32b363=_0x237c10[_0x28cf32(0x26f)]-0x1;_0x32b363>=0x0;_0x32b363--)(_0xadc0ac=_0x237c10[_0x32b363])&&(_0x34ae24=(_0x328aba<0x3?_0xadc0ac(_0x34ae24):_0x328aba>0x3?_0xadc0ac(_0x3a0499,_0xb44cf2,_0x34ae24):_0xadc0ac(_0x3a0499,_0xb44cf2))||_0x34ae24);}return _0x328aba>0x3&&_0x34ae24&&Object[_0x28cf32(0x150)](_0x3a0499,_0xb44cf2,_0x34ae24),_0x34ae24;}let X=class extends _0x487fff{constructor(_0x390103,_0x2719b8,_0x114f5d,_0x52d1e8,_0x5de03d){const _0x2674e0=_0x5409;super(),this[_0x2674e0(0x25c)]=_0x390103,this[_0x2674e0(0x2b2)]=_0x2719b8,this[_0x2674e0(0x84)]=_0x114f5d,this['_uiPartsService']=_0x52d1e8,this[_0x2674e0(0x288)]=_0x5de03d,q(this,_0x2674e0(0xcd),new _0x207222(_0x4c0e18['NOT_COLLAB'])),q(this,'_presenceStatusRegistrations',new Map()),this['_initStatusComponent'](),this[_0x2674e0(0xe7)](),this[_0x2674e0(0x1b1)]();}[_0x51ce3e(0x101)](){const _0x35e96b=_0x51ce3e;this[_0x35e96b(0x1d5)][_0x35e96b(0x1c0)](_0x415587=>_0x415587['dispose']()),this[_0x35e96b(0x1d5)]['clear'](),this[_0x35e96b(0xcd)]['complete'](),super[_0x35e96b(0x101)]();}['_initStatusListener'](){const _0x1ba832=_0x51ce3e;this['disposeWithMe'](_0x2a8ee4(this[_0x1ba832(0x25c)][_0x1ba832(0x140)],this['_univerInstanceService'][_0x1ba832(0xc2)](_0x638df4[_0x1ba832(0x2df)]),this[_0x1ba832(0x25c)][_0x1ba832(0xc2)](_0x638df4[_0x1ba832(0x153)]))['pipe'](_0x44be09(()=>on(this[_0x1ba832(0x25c)])),_0x5d5af3(),_0x2cc410(_0x35f7d9=>_0x35f7d9?this[_0x1ba832(0x84)]['getCollabEntity$'](_0x35f7d9):_0x450ab3(null)),_0x2cc410(_0x344629=>_0x344629?_0x344629[_0x1ba832(0x2d2)]:_0x450ab3(_0x4c0e18[_0x1ba832(0x25b)])))[_0x1ba832(0xd5)](_0x1d8860=>{const _0x4e0bb8=_0x1ba832;this[_0x4e0bb8(0xcd)][_0x4e0bb8(0x212)](_0x1d8860);}));}[_0x51ce3e(0x129)](){const _0x2493fd=_0x51ce3e;this[_0x2493fd(0x156)](this['_uiPartsService']['registerComponent'](_0x452cfb[_0x2493fd(0x25a)],()=>_0x28ef2e(sn({'status$':this['_status$'][_0x2493fd(0x14a)]()}),this[_0x2493fd(0x2b2)])));}[_0x51ce3e(0x1b1)](){const _0x519576=_0x51ce3e;let _0x74d494=this[_0x519576(0x288)][_0x519576(0x1f9)][_0x519576(0xd5)](_0x2514a1=>{const _0x1c4db1=_0x519576;this[_0x1c4db1(0x12f)](_0x2514a1);});this['disposeWithMe'](_0x2dde77(()=>_0x74d494['unsubscribe']()));}[_0x51ce3e(0x12f)](_0x5565e1){const _0x6e45fe=_0x51ce3e;let _0x36ab35=new Map(_0x5565e1['filter'](_0x386814=>_0x386814[_0x6e45fe(0xa3)]!=null)[_0x6e45fe(0xa0)](_0x2e759a=>[_0x2e759a[_0x6e45fe(0x197)],_0x2e759a]));this[_0x6e45fe(0x1d5)][_0x6e45fe(0x1c0)]((_0x381f3b,_0x101725)=>{const _0x13fc2f=_0x6e45fe;_0x36ab35[_0x13fc2f(0x213)](_0x101725)||(_0x381f3b['dispose'](),this[_0x13fc2f(0x1d5)][_0x13fc2f(0x1dc)](_0x101725));}),_0x36ab35[_0x6e45fe(0x1c0)]((_0x29035a,_0x46e5e9)=>{const _0x292ea4=_0x6e45fe;this[_0x292ea4(0x1d5)][_0x292ea4(0x213)](_0x46e5e9)||this[_0x292ea4(0x27d)](_0x29035a);});}[_0x51ce3e(0x27d)](_0x3600f4){const _0xcd7cb8=_0x51ce3e;let _0x311b37=_0x3600f4['statusUIPart'];if(!_0x311b37)return;let _0x5f0377=new _0x399827(),_0x364d4=new _0x207222(_0x4c0e18[_0xcd7cb8(0x25b)]);_0x5f0377[_0xcd7cb8(0xbe)](_0x2dde77(()=>_0x364d4[_0xcd7cb8(0x217)]())),_0x5f0377[_0xcd7cb8(0xbe)](this['_uiPartsService'][_0xcd7cb8(0xae)](_0x311b37,()=>_0x28ef2e(sn({'status$':_0x364d4['asObservable']()}),this[_0xcd7cb8(0x2b2)])));let _0x3bfe5e=this[_0xcd7cb8(0x25c)][_0xcd7cb8(0xc2)](_0x3600f4[_0xcd7cb8(0x197)])[_0xcd7cb8(0xf3)](_0x44be09(_0x2c008b=>(_0x2c008b==null?void 0x0:_0x2c008b[_0xcd7cb8(0x27f)]())??null),_0x5d5af3(),_0x2cc410(_0x43cc6d=>_0x43cc6d?this[_0xcd7cb8(0x84)][_0xcd7cb8(0x14c)](_0x43cc6d):_0x450ab3(null)),_0x2cc410(_0x30511e=>(_0x30511e==null?void 0x0:_0x30511e[_0xcd7cb8(0x2d2)])??_0x450ab3(_0x4c0e18['NOT_COLLAB'])))[_0xcd7cb8(0xd5)](_0x319034=>_0x364d4[_0xcd7cb8(0x212)](_0x319034));_0x5f0377[_0xcd7cb8(0xbe)](_0x2dde77(()=>_0x3bfe5e[_0xcd7cb8(0x29c)]())),this[_0xcd7cb8(0x1d5)][_0xcd7cb8(0xde)](_0x3600f4[_0xcd7cb8(0x197)],_0x5f0377);}};X=Y([J(0x0,_0x2d0e88),J(0x1,_0x34f379(_0x5e88d7)),J(0x2,_0x34f379(_0x425d0b)),J(0x3,_0x5099ce),J(0x4,_0x34f379(_0x3bf6ba))],X);function on(_0x348bd4){const _0x372434=_0x51ce3e;let _0x551adb=_0x348bd4[_0x372434(0x2ad)](),_0x347448=_0x551adb==null?void 0x0:_0x551adb[_0x372434(0x27f)]();if(_0x347448&&!_0x490384(_0x347448))return _0x347448;let _0x2d85b2=_0x348bd4[_0x372434(0x2b9)](_0x638df4['UNIVER_DOC']),_0x45dc41=_0x2d85b2==null?void 0x0:_0x2d85b2[_0x372434(0x27f)]();if(_0x45dc41&&!_0x490384(_0x45dc41))return _0x45dc41;let _0xffeb51=_0x348bd4[_0x372434(0x2b9)](_0x638df4[_0x372434(0x153)]);if(_0xffeb51)return _0xffeb51[_0x372434(0x27f)]();let _0x5d1986=_0x348bd4['getAllUnitsForType'](_0x638df4[_0x372434(0x2df)])[_0x372434(0x187)](_0x1aad0c=>!_0x490384(_0x1aad0c[_0x372434(0x27f)]()));return _0x5d1986?_0x5d1986[_0x372434(0x27f)]():null;}function sn(_0x8f7a74){let {status$:_0x1ce093}=_0x8f7a74;return function(){return _0x51ebc4(nn,{'status$':_0x1ce093});};}var cn='@univerjs-pro/collaboration-client-ui',ln='1.3.0';const un={'id':_0x51ce3e(0xdd),'type':_0x212ed0[_0x51ce3e(0x158)],'handler':(_0x4b23df,_0x48edc4)=>{const _0x3ea2f6=_0x51ce3e;let _0x19be51=_0x4b23df[_0x3ea2f6(0x21a)](_0x3bf6ba)[_0x3ea2f6(0x21a)](_0x48edc4[_0x3ea2f6(0x197)]);if(!_0x19be51)return!0x1;switch(_0x48edc4['update'][_0x3ea2f6(0x2bb)]){case _0x3ea2f6(0xde):return _0x19be51[_0x3ea2f6(0x2f5)](_0x48edc4[_0x3ea2f6(0x1b0)][_0x3ea2f6(0x1d7)]),!0x0;case'remove':return _0x19be51[_0x3ea2f6(0x176)](_0x48edc4[_0x3ea2f6(0x1b0)][_0x3ea2f6(0xe5)],_0x48edc4[_0x3ea2f6(0x1b0)][_0x3ea2f6(0x269)]),!0x0;case _0x3ea2f6(0x2ee):return _0x19be51[_0x3ea2f6(0x27c)](_0x48edc4[_0x3ea2f6(0x1b0)][_0x3ea2f6(0xe5)]),!0x0;default:return!0x1;}}},dn={};let fn=class extends _0xec433e{constructor(_0x51daa2,_0x1e589b){const _0x172796=_0x51ce3e;super(),this['_docClipboardService']=_0x51daa2,this[_0x172796(0x15d)]=_0x1e589b,this[_0x172796(0x23a)]();}['_init'](){const _0x2ede08=_0x51ce3e;let _0x127f9a=this;this[_0x2ede08(0x156)](this[_0x2ede08(0x219)][_0x2ede08(0x2fd)]({'onBeforePasteImage':async _0x370877=>{const _0x2f48df=_0x2ede08;let _0x9025ed=await _0x127f9a[_0x2f48df(0x15d)][_0x2f48df(0x159)](_0x370877);return _0x9025ed?{'source':_0x9025ed[_0x2f48df(0x1ac)],'imageSourceType':_0x9025ed['imageSourceType']}:null;}}));}};function _0x5409(_0xbd1b7d,_0x3c49bb){_0xbd1b7d=_0xbd1b7d-0x76;const _0x4c77af=_0x4c77();let _0x54096f=_0x4c77af[_0xbd1b7d];return _0x54096f;}fn=Y([J(0x0,_0xdfd46b),J(0x1,_0x54a5ef)],fn);const pn=['purple.300',_0x51ce3e(0x2d5),_0x51ce3e(0x1c8),_0x51ce3e(0x1fd),_0x51ce3e(0x8d),_0x51ce3e(0x107)];var mn=class extends _0x487fff{constructor(..._0xf46540){const _0x1b693e=_0x51ce3e;super(..._0xf46540),q(this,_0x1b693e(0x29e),new Map()),q(this,_0x1b693e(0x174),0x0);}[_0x51ce3e(0x23d)](_0x44c58b){const _0x43f3fe=_0x51ce3e;if(this[_0x43f3fe(0x29e)][_0x43f3fe(0x213)](_0x44c58b))return this[_0x43f3fe(0x29e)][_0x43f3fe(0x21a)](_0x44c58b);let _0x5e1f8a=pn[this[_0x43f3fe(0x174)]];return this[_0x43f3fe(0x174)]=(this['_colorIndex']+0x1)%pn[_0x43f3fe(0x26f)],this[_0x43f3fe(0x29e)][_0x43f3fe(0xde)](_0x44c58b,_0x5e1f8a),_0x5e1f8a;}};function hn(_0x41e8f1){const _0x235ca8=_0x51ce3e;let _0x1363e8='';for(let _0x3fc2e5 of _0x41e8f1){let {startOffset:_0x5009d6,endOffset:_0x3e969b,isActive:_0x49a39d,rangeType:_0x4a51a1,segmentId:_0x3fb48c,segmentPage:_0x3b9e36}=_0x3fc2e5;_0x1363e8[_0x235ca8(0x26f)]&&(_0x1363e8+=','),_0x1363e8+=_0x5009d6+':'+_0x3e969b+':'+(_0x49a39d?'1':'0')+':'+_0x4a51a1+':'+_0x3fb48c+':'+_0x3b9e36;}return _0x1363e8;}function gn(_0x34ff3c){const _0x5c5083=_0x51ce3e;let _0x2e4904=_0x34ff3c[_0x5c5083(0x144)](','),_0x57e652=[];for(let _0x1fb370 of _0x2e4904){let [_0x308e6c,_0x23e40e,_0x4c59b0,_0x31c260,_0x7e583,_0x24a944]=_0x1fb370[_0x5c5083(0x144)](':');_0x57e652['push']({'startOffset':Number(_0x308e6c),'endOffset':Number(_0x23e40e),'collapsed':_0x308e6c===_0x23e40e,'isActive':_0x4c59b0==='1','rangeType':_0x31c260===_0x453bb8['TEXT']?_0x453bb8[_0x5c5083(0x259)]:_0x453bb8[_0x5c5083(0x2a6)],'segmentId':typeof _0x7e583==_0x5c5083(0x273)?String(_0x7e583):'','segmentPage':Number(_0x24a944??-0x1)});}return _0x57e652[_0x5c5083(0x24d)](_0x5e17cf=>_0x5e17cf[_0x5c5083(0x128)])||(_0x57e652[0x0][_0x5c5083(0x128)]=!0x0),_0x57e652;}var _n=class extends _0xec433e{constructor(..._0x8bc1ee){const _0x20e450=_0x51ce3e;super(..._0x8bc1ee),q(this,_0x20e450(0x2b1),new _0x207222(null)),q(this,_0x20e450(0x230),this[_0x20e450(0x2b1)][_0x20e450(0x14a)]());}[_0x51ce3e(0x19e)](_0x4bb56c){const _0x29668f=_0x51ce3e;let {unitID:_0x300c9d,memberID:_0x40a220,textRanges:_0x362690}=_0x4bb56c,_0x518db2=hn(_0x362690);if(_0x518db2==='')return;let _0x53bcdd={'unitID':_0x300c9d,'memberID':_0x40a220,'selection':_0x518db2};this[_0x29668f(0x2b1)]['next'](_0x53bcdd);}};let vn=class extends _0xec433e{get[_0x51ce3e(0x12a)](){const _0x4d92f9=_0x51ce3e;return this[_0x4d92f9(0xed)]['getValue']();}get['roomMembers'](){const _0x497e52=_0x51ce3e;return this['_roomMembers$'][_0x497e52(0x8f)]();}constructor(_0x4fa2b1,_0xe8f92d,_0x372d92,_0x5f13e8,_0x2456b1,_0x42048b,_0x2570a9,_0x2218c5,_0x244419){const _0x42999f=_0x51ce3e;super(),this['unitID']=_0x4fa2b1,this[_0x42999f(0x148)]=_0xe8f92d,this[_0x42999f(0x2b2)]=_0x372d92,this['_colorAssignService']=_0x5f13e8,this['_memberService']=_0x2456b1,this['_syncEditingCollabCursorService']=_0x42048b,this[_0x42999f(0xca)]=_0x2570a9,this[_0x42999f(0x25c)]=_0x2218c5,this[_0x42999f(0x2f9)]=_0x244419,q(this,_0x42999f(0x92),!0x1),q(this,_0x42999f(0x23a),!0x1),q(this,'_cursorInfo$',new _0x207222(new Map())),q(this,_0x42999f(0x284),this[_0x42999f(0xed)][_0x42999f(0x14a)]()),q(this,_0x42999f(0x27e),new _0x207222([])),q(this,'roomMembers$',this[_0x42999f(0x27e)][_0x42999f(0xf3)](_0x136cb0(0x12c))),q(this,'_updateLocalCursor',_0x38a934(_0x2f5e92=>{const _0x144885=_0x42999f;let _0xccad7e={'eventID':_0x33d081[_0x144885(0x91)],'data':{'unitID':this[_0x144885(0x2a5)],'memberID':this[_0x144885(0x148)][_0x144885(0x1e1)](),'selection':hn(_0x2f5e92)}};this[_0x144885(0x148)][_0x144885(0x2f4)](_0xccad7e,this[_0x144885(0x2a5)]);},0x64));}['dispose'](){const _0x5b69bd=_0x51ce3e;super[_0x5b69bd(0x101)](),this[_0x5b69bd(0xed)][_0x5b69bd(0x212)](new Map()),this[_0x5b69bd(0xed)][_0x5b69bd(0x217)](),this[_0x5b69bd(0x27e)]['next']([]),this[_0x5b69bd(0x27e)][_0x5b69bd(0x217)]();}[_0x51ce3e(0x19a)](){const _0x1c23b1=_0x51ce3e;this['_init']||(this['_init']=!0x0,this[_0x1c23b1(0x148)][_0x1c23b1(0x13f)][_0x1c23b1(0xf3)](_0x8ba39e(this['dispose$']))[_0x1c23b1(0xd5)](_0x112bae=>{const _0x5c2af6=_0x1c23b1;_0x112bae===_0x5a103a[_0x5c2af6(0xe4)]?this[_0x5c2af6(0x18e)]():this['_toggleOffline']();}),this['_session'][_0x1c23b1(0x102)][_0x1c23b1(0xf3)](_0x8ba39e(this[_0x1c23b1(0x253)]))['subscribe'](_0x5d6e1b=>{const _0x27c17e=_0x1c23b1;let _0x1a57b3=_0x5d6e1b[_0x27c17e(0x2ce)];_0x1a57b3===_0x33d081[_0x27c17e(0x91)]&&this['_onCursorUpdate'](_0x5d6e1b),_0x1a57b3===_0x33d081[_0x27c17e(0x1d2)]&&this[_0x27c17e(0xa5)](_0x5d6e1b);}),this['disposeWithMe'](this[_0x1c23b1(0x2f9)]['onCommandExecuted'](_0x2883fb=>{const _0x3d8be0=_0x1c23b1;let _0x284335=_0x2883fb[_0x3d8be0(0x184)];_0x284335!=null&&this['_online']&&_0x2883fb['id']===_0x1f3a4f['id']&&_0x284335[_0x3d8be0(0xe5)]===this[_0x3d8be0(0x2a5)]&&_0x284335[_0x3d8be0(0x264)]===!0x1&&_0x284335[_0x3d8be0(0x2e2)][_0x3d8be0(0x26f)]>0x0&&this[_0x3d8be0(0x20f)](_0x284335['ranges']);})),this[_0x1c23b1(0xb7)]['collabCursorState$'][_0x1c23b1(0xf3)](_0x8ba39e(this[_0x1c23b1(0x253)]))['subscribe'](_0x493f75=>{const _0x4ade4d=_0x1c23b1;if((_0x493f75==null?void 0x0:_0x493f75[_0x4ade4d(0x2a5)])!==this[_0x4ade4d(0x2a5)])return;let _0x8a78c2={'eventID':_0x33d081['UPDATE_CURSOR'],'data':_0x493f75};this[_0x4ade4d(0x2dd)](_0x8a78c2);}),this[_0x1c23b1(0x156)](this[_0x1c23b1(0x2f9)][_0x1c23b1(0xeb)](_0x56df32=>{const _0x1a38f0=_0x1c23b1;if(_0x56df32[_0x1a38f0(0x184)]==null)return;let _0x33f58e=_0x56df32[_0x1a38f0(0x184)];if(_0x56df32['id']!==_0x431200['id']||_0x33f58e[_0x1a38f0(0xe5)]!==this[_0x1a38f0(0x2a5)])return;let _0x62d36b={'id':_0x1a38f0(0x15a),'params':_0x33f58e},_0x9374eb=this[_0x1a38f0(0x12a)];for(let [_0x309c68,_0x562cbe]of _0x9374eb){let _0x36c256={'id':_0x1a38f0(0x15a),'params':{'unitId':this[_0x1a38f0(0x2a5)],'actions':null,'textRanges':_0x562cbe[_0x1a38f0(0x2e2)]}},_0x6801b=this['_transformService']['transformMutation'](_0x62d36b,_0x36c256,!0x1);if(_0x29e3e7(_0x6801b))throw _0x6801b[_0x1a38f0(0x20a)];_0x9374eb[_0x1a38f0(0xde)](_0x309c68,{..._0x562cbe,'ranges':_0x6801b['m2Prime'][_0x1a38f0(0x184)]['textRanges']});}queueMicrotask(()=>{const _0x519b19=_0x1a38f0;this['_cursorInfo$'][_0x519b19(0x212)](_0x9374eb);});})));}[_0x51ce3e(0x2dd)](_0x34da14){const _0x387559=_0x51ce3e;var _0x4c2bdd;let {memberID:_0x5080c9,selection:_0x520fdd}=_0x34da14[_0x387559(0x266)],_0x161cfb=gn(_0x520fdd),_0x2fc994=((_0x4c2bdd=this[_0x387559(0x89)]['getMember'](this['unitID'],_0x5080c9))==null?void 0x0:_0x4c2bdd['name'])??_0x387559(0x82),_0x3552db={'color':this[_0x387559(0x10b)][_0x387559(0x23d)](_0x5080c9),'name':_0x2fc994,'ranges':_0x161cfb},_0xe504f5=this[_0x387559(0x12a)];_0xe504f5[_0x387559(0xde)](_0x5080c9,_0x3552db),this[_0x387559(0xed)][_0x387559(0x212)](_0xe504f5);}[_0x51ce3e(0xa5)](_0x482121){const _0x28433e=_0x51ce3e;let {memberID:_0x5873b0}=_0x482121[_0x28433e(0x266)],_0x24c935=this[_0x28433e(0x12a)];_0x24c935[_0x28433e(0x1dc)](_0x5873b0),this[_0x28433e(0xed)][_0x28433e(0x212)](_0x24c935);}[_0x51ce3e(0x18e)](){const _0x7436c4=_0x51ce3e;var _0x45f718;if(this['_online']=!0x0,((_0x45f718=this[_0x7436c4(0x25c)]['getFocusedUnit']())==null?void 0x0:_0x45f718[_0x7436c4(0x27f)]())!==this[_0x7436c4(0x2a5)])return;let _0x42c341=this[_0x7436c4(0x2b2)]['get'](_0x383684)['getDocRanges']();Array[_0x7436c4(0x2ba)](_0x42c341)&&_0x42c341[_0x7436c4(0x26f)]>0x0&&this[_0x7436c4(0x20f)](_0x42c341);}[_0x51ce3e(0x270)](){const _0x59d1f1=_0x51ce3e;this[_0x59d1f1(0x92)]=!0x1;}};vn=Y([J(0x2,_0x34f379(_0x5e88d7)),J(0x3,_0x34f379(mn)),J(0x4,_0x34f379(_0x1140c4)),J(0x5,_0x34f379(_n)),J(0x6,_0x14ff3a),J(0x7,_0x2d0e88),J(0x8,_0xa707b2)],vn);const yn=()=>{let _0x2a44f2=[],_0x3a3042=!0x1;return _0x1b4076=>{const _0x198ead=_0x5409;_0x2a44f2[_0x198ead(0xbf)](_0x1b4076),_0x3a3042||(_0x3a3042=!0x0,setTimeout(()=>{_0x2a44f2['forEach'](_0x5d7634=>_0x5d7634()),_0x2a44f2=[],_0x3a3042=!0x1;}));};};let bn=class extends _0xec433e{get['cursorInfo'](){const _0x5c345a=_0x51ce3e;return this[_0x5c345a(0xed)][_0x5c345a(0x8f)]();}get['roomMembers'](){const _0x574616=_0x51ce3e;return this[_0x574616(0x27e)][_0x574616(0x8f)]();}constructor(_0x1f225a,_0x196bfb,_0xa6ec5e,_0x39cc49,_0xe246f4,_0x522fe7,_0x88fe4f,_0x132245){const _0x502623=_0x51ce3e;super(),this['unitID']=_0x1f225a,this['_session']=_0x196bfb,this[_0x502623(0x2b2)]=_0xa6ec5e,this[_0x502623(0x10b)]=_0x39cc49,this['_memberService']=_0xe246f4,this['_univerInstanceService']=_0x522fe7,this[_0x502623(0x2f9)]=_0x88fe4f,this['_refRangeService']=_0x132245,q(this,_0x502623(0x92),!0x1),q(this,_0x502623(0x23a),!0x1),q(this,_0x502623(0xed),new _0x207222(new Map())),q(this,_0x502623(0x284),this[_0x502623(0xed)][_0x502623(0x14a)]()),q(this,'_roomMembers$',new _0x207222([])),q(this,_0x502623(0x162),this[_0x502623(0x27e)][_0x502623(0xf3)](_0x136cb0(0x12c))),q(this,_0x502623(0x20f),_0x38a934((_0x55c827,_0x10161e)=>{const _0x74ebaa=_0x502623;let _0x4d257a={'eventID':_0x33d081['UPDATE_CURSOR'],'data':{'unitID':this[_0x74ebaa(0x2a5)],'memberID':this[_0x74ebaa(0x148)]['getMemberID'](),'selection':_0xe13572(_0x55c827,_0x10161e['range'])}};this[_0x74ebaa(0x148)][_0x74ebaa(0x2f4)](_0x4d257a,this['unitID']);},0x64));}[_0x51ce3e(0x101)](){const _0x1492b7=_0x51ce3e;super[_0x1492b7(0x101)](),this['_cursorInfo$'][_0x1492b7(0x212)](new Map()),this[_0x1492b7(0xed)][_0x1492b7(0x217)](),this[_0x1492b7(0x27e)][_0x1492b7(0x212)]([]),this[_0x1492b7(0x27e)][_0x1492b7(0x217)]();}[_0x51ce3e(0x19a)](){const _0x1a25bc=_0x51ce3e;this[_0x1a25bc(0x23a)]||(this[_0x1a25bc(0x23a)]=!0x0,this[_0x1a25bc(0x148)][_0x1a25bc(0x13f)]['pipe'](_0x8ba39e(this[_0x1a25bc(0x253)]))[_0x1a25bc(0xd5)](_0x310a91=>{const _0x510365=_0x1a25bc;_0x310a91===_0x5a103a[_0x510365(0xe4)]?this[_0x510365(0x18e)]():this['_toggleOffline']();}),this[_0x1a25bc(0x148)][_0x1a25bc(0x102)][_0x1a25bc(0xf3)](_0x8ba39e(this['dispose$']))[_0x1a25bc(0xd5)](_0x1db5ae=>{const _0x66c030=_0x1a25bc;let _0xafcaf0=_0x1db5ae[_0x66c030(0x2ce)];_0xafcaf0===_0x33d081[_0x66c030(0x91)]&&this[_0x66c030(0x2dd)](_0x1db5ae),_0xafcaf0===_0x33d081[_0x66c030(0x1d2)]&&this[_0x66c030(0xa5)](_0x1db5ae);}),this[_0x1a25bc(0x9d)](),this['disposeWithMe'](this[_0x1a25bc(0x2f9)]['onCommandExecuted'](_0x4a720e=>{const _0x4a5a42=_0x1a25bc;if(this[_0x4a5a42(0x92)]&&_0x4a720e['id']===_0x5df989['id']&&_0x4a720e['params']['unitId']===this[_0x4a5a42(0x2a5)]){let _0x408e53=_0x4a720e[_0x4a5a42(0x184)];this[_0x4a5a42(0x20f)](_0x408e53['subUnitId'],_0x408e53['selections'][0x0]);}})));}[_0x51ce3e(0x2dd)](_0x589984){const _0x21292d=_0x51ce3e;var _0x3ce171;let {memberID:_0x19ae61,selection:_0x3237a0}=_0x589984['data'],{sheetName:_0x482bd5,range:_0x188157}=_0x319f9a(_0x3237a0),_0xc966e8={'name':((_0x3ce171=this[_0x21292d(0x89)][_0x21292d(0x2eb)](this[_0x21292d(0x2a5)],_0x19ae61))==null?void 0x0:_0x3ce171[_0x21292d(0x133)])??_0x21292d(0x82),'range':this['_getMergeRange'](_0x482bd5,_0x188157),'sheetID':_0x482bd5,'color':this[_0x21292d(0x10b)][_0x21292d(0x23d)](_0x19ae61),'selection':_0x3237a0},_0x169114=this[_0x21292d(0x12a)];_0x169114[_0x21292d(0xde)](_0x19ae61,_0xc966e8),this[_0x21292d(0xed)][_0x21292d(0x212)](_0x169114);}['_onCursorDelete'](_0x533412){const _0x2d9b2c=_0x51ce3e;let {memberID:_0x135eee}=_0x533412['data'],_0x3ae501=this[_0x2d9b2c(0x12a)];_0x3ae501[_0x2d9b2c(0x1dc)](_0x135eee),this[_0x2d9b2c(0xed)]['next'](_0x3ae501);}[_0x51ce3e(0x236)](_0xedb90,_0x2c532e){const _0x2cf678=_0x51ce3e;var _0xab41dd;let _0x36b872=(_0xab41dd=this[_0x2cf678(0x25c)][_0x2cf678(0x10e)](this[_0x2cf678(0x2a5)],_0x638df4[_0x2cf678(0x153)]))==null||(_0xab41dd=_0xab41dd['getSheetBySheetId'](_0xedb90))==null?void 0x0:_0xab41dd['getMergeData']();return(_0x36b872==null?void 0x0:_0x36b872['find'](_0x1f31bf=>_0x3ba903[_0x2cf678(0x104)](_0x1f31bf,_0x2c532e)))||_0x2c532e;}['_onRefRangeChange'](){const _0x1157d9=_0x51ce3e;let _0x15bf57=new _0x399827(),_0x5b060b=yn(),_0x47b9da=()=>{const _0x17f1b6=_0x5409;_0x15bf57['dispose']();let _0x1c7dec=(_0x32969a,_0x33f983,_0x24bdd1,_0x20412b)=>{const _0x11d9ae=_0x5409;let _0x1a16fa=[];switch(_0x32969a['id']){case _0x4ef3b7[_0x11d9ae(0x27a)]:_0x1a16fa=_0x506b40(_0x32969a,_0x20412b);break;case _0x4ef3b7[_0x11d9ae(0x20b)]:_0x1a16fa=_0x22a138(_0x32969a,_0x20412b);break;case _0x4ef3b7[_0x11d9ae(0x2d7)]:_0x1a16fa=_0x5e615e(_0x32969a,_0x20412b);break;case _0x4ef3b7[_0x11d9ae(0x248)]:_0x1a16fa=_0x2aa96e(_0x32969a,_0x20412b);break;case _0x4ef3b7[_0x11d9ae(0xa2)]:_0x1a16fa=_0x125766(_0x32969a,_0x20412b);break;case _0x4ef3b7[_0x11d9ae(0x21f)]:_0x1a16fa=_0x784687(_0x32969a,_0x20412b);break;case _0x4ef3b7[_0x11d9ae(0x1a4)]:_0x1a16fa=_0x249a5a(_0x32969a,_0x20412b);break;case _0x4ef3b7[_0x11d9ae(0x247)]:_0x1a16fa=_0x87c43c(_0x32969a,_0x20412b);break;case _0x4ef3b7[_0x11d9ae(0x183)]:_0x1a16fa=_0x48df53(_0x32969a,_0x20412b);}let _0x50eb2a=_0x161963(_0x1a16fa,_0x20412b),_0x173925=this['cursorInfo'][_0x11d9ae(0x21a)](_0x33f983);if(_0x173925&&_0x50eb2a){let _0x5bf45b={..._0x173925,'range':_0x50eb2a};this[_0x11d9ae(0x12a)][_0x11d9ae(0xde)](_0x33f983,_0x5bf45b),_0x5b060b(()=>{const _0xbc5a0a=_0x11d9ae;let _0x228e14=this[_0xbc5a0a(0x26e)][_0xbc5a0a(0xad)](_0x50eb2a,_0x3aabc1=>(_0x228e14[_0xbc5a0a(0x101)](),_0x1c7dec(_0x3aabc1,_0x33f983,_0x24bdd1,_0x50eb2a)));_0x15bf57[_0xbc5a0a(0xbe)](_0x228e14);});}return{'redos':[],'undos':[]};};this[_0x17f1b6(0x12a)]['forEach']((_0x11c403,_0x27c887)=>{const _0x31d510=_0x17f1b6;let {range:_0x14835a,sheetID:_0x5f136e}=_0x11c403,_0x1f7188=this[_0x31d510(0x26e)]['registerRefRange'](_0x14835a,_0x269e9a=>(_0x1f7188['dispose'](),_0x1c7dec(_0x269e9a,_0x27c887,_0x5f136e,_0x14835a)));_0x15bf57['add'](_0x1f7188);});};this['disposeWithMe'](_0x2dde77(this[_0x1157d9(0xed)][_0x1157d9(0xd5)](()=>{_0x47b9da();})));}[_0x51ce3e(0x18e)](){const _0x4ede23=_0x51ce3e;var _0x45608f,_0x5f3326;if(this[_0x4ede23(0x92)]=!0x0,((_0x45608f=this[_0x4ede23(0x25c)][_0x4ede23(0x2ad)]())==null?void 0x0:_0x45608f[_0x4ede23(0x27f)]())!==this[_0x4ede23(0x2a5)])return;let _0x4b2e49=(_0x5f3326=this[_0x4ede23(0x2b2)][_0x4ede23(0x21a)](_0x2ffe22)['getCurrentSelections']())==null?void 0x0:_0x5f3326[0x0],_0x399929=this[_0x4ede23(0x25c)][_0x4ede23(0x2b9)](_0x638df4[_0x4ede23(0x153)])[_0x4ede23(0x145)]();_0x4b2e49&&_0x399929&&this[_0x4ede23(0x20f)](_0x399929[_0x4ede23(0x263)](),_0x4b2e49);}[_0x51ce3e(0x270)](){const _0x482e2a=_0x51ce3e;this[_0x482e2a(0x92)]=!0x1;}};bn=Y([J(0x2,_0x34f379(_0x5e88d7)),J(0x3,_0x34f379(mn)),J(0x4,_0x34f379(_0x1140c4)),J(0x5,_0x2d0e88),J(0x6,_0xa707b2),J(0x7,_0x34f379(_0x140c2b))],bn);let Z=class extends _0xec433e{constructor(_0x225c68,_0x119010,_0x4f079c){const _0x5a1775=_0x51ce3e;super(),this[_0x5a1775(0x25c)]=_0x225c68,this[_0x5a1775(0x2b2)]=_0x119010,this[_0x5a1775(0x2c7)]=_0x4f079c,q(this,_0x5a1775(0x21b),new Map()),q(this,_0x5a1775(0xee),new _0x1674f4()),this[_0x5a1775(0x23a)]();}[_0x51ce3e(0x101)](){const _0x4bc0da=_0x51ce3e;super[_0x4bc0da(0x101)](),this[_0x4bc0da(0xee)][_0x4bc0da(0x217)](),this[_0x4bc0da(0x21b)][_0x4bc0da(0x1c0)](_0x42b06c=>_0x42b06c['dispose']());}[_0x51ce3e(0x97)](_0x3d7a37){const _0x4d2fdd=_0x51ce3e;let _0x17ef2c=this['_entities'][_0x4d2fdd(0x21a)](_0x3d7a37);return _0x17ef2c?_0x17ef2c['cursorInfo$']:this[_0x4d2fdd(0xee)]['pipe'](_0x1ad818(_0x5838d8=>_0x5838d8[_0x4d2fdd(0x2a5)]===_0x3d7a37),_0x2cc410(_0x193069=>_0x193069['cursorInfo$']));}[_0x51ce3e(0x23a)](){const _0x5fd0e3=_0x51ce3e;this[_0x5fd0e3(0x25c)][_0x5fd0e3(0x16f)](_0x638df4[_0x5fd0e3(0x153)])[_0x5fd0e3(0xf3)](_0x8ba39e(this['dispose$']))[_0x5fd0e3(0xd5)](async _0x45633d=>{const _0x2d3bb7=_0x5fd0e3;let _0x45f7c4=_0x45633d[_0x2d3bb7(0x180)][_0x2d3bb7(0x27f)](),_0x2e663f=await this[_0x2d3bb7(0x24c)](_0x45f7c4);this[_0x2d3bb7(0xee)][_0x2d3bb7(0x212)](_0x2e663f),this[_0x2d3bb7(0x21b)][_0x2d3bb7(0xde)](_0x45f7c4,_0x2e663f);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x638df4[_0x5fd0e3(0x2df)])[_0x5fd0e3(0xf3)](_0x8ba39e(this['dispose$']))[_0x5fd0e3(0xf3)](_0x1ad818(_0x205a47=>!_0x205a47[_0x5fd0e3(0x180)][_0x5fd0e3(0x27f)]()[_0x5fd0e3(0x22c)]('__')))[_0x5fd0e3(0xd5)](async _0x58c6b5=>{const _0x5ab542=_0x5fd0e3;let {unit:_0x589570}=_0x58c6b5,_0x426cfd=_0x589570[_0x5ab542(0x27f)](),_0x558adf=await this[_0x5ab542(0x11b)](_0x426cfd);this[_0x5ab542(0xee)][_0x5ab542(0x212)](_0x558adf),this['_entities'][_0x5ab542(0xde)](_0x426cfd,_0x558adf);}),_0x2a8ee4(this[_0x5fd0e3(0x25c)][_0x5fd0e3(0x139)](_0x638df4[_0x5fd0e3(0x2df)]),this[_0x5fd0e3(0x25c)][_0x5fd0e3(0x139)](_0x638df4[_0x5fd0e3(0x153)]))[_0x5fd0e3(0xf3)](_0x8ba39e(this[_0x5fd0e3(0x253)]))[_0x5fd0e3(0xd5)](_0x43fcdf=>{const _0x5aa62a=_0x5fd0e3;let _0x1147c2=_0x43fcdf[_0x5aa62a(0x27f)](),_0x12dec9=this[_0x5aa62a(0x21b)][_0x5aa62a(0x21a)](_0x1147c2);_0x12dec9&&(_0x12dec9['dispose'](),this[_0x5aa62a(0x21b)][_0x5aa62a(0x1dc)](_0x1147c2));});}async[_0x51ce3e(0x24c)](_0x5915c4){const _0xb158c4=_0x51ce3e;let _0x25c079=await this[_0xb158c4(0x2c7)]['requireSession'](_0x5915c4),_0x3fb537=this[_0xb158c4(0x2b2)][_0xb158c4(0xdb)](bn,_0x5915c4,_0x25c079);return _0x3fb537[_0xb158c4(0x19a)](),_0x3fb537;}async[_0x51ce3e(0x11b)](_0x498073){const _0x54b772=_0x51ce3e;let _0x1fa40c=await this[_0x54b772(0x2c7)]['requireSession'](_0x498073),_0x58cded=this[_0x54b772(0x2b2)][_0x54b772(0xdb)](vn,_0x498073,_0x1fa40c);return _0x58cded['init'](),_0x58cded;}};Z=Y([J(0x0,_0x2d0e88),J(0x1,_0x34f379(_0x5e88d7)),J(0x2,_0x34f379(_0x52adf7))],Z);function xn(_0x15c7a0,_0x532727){const _0x31fd24=_0x51ce3e;_0x15c7a0[_0x31fd24(0x2a4)](),_0x15c7a0[_0x31fd24(0x2f0)]=_0x31fd24(0x143);let _0x5448a0=_0x15c7a0['measureText'](_0x532727)['width'];return _0x15c7a0['restore'](),Math[_0x31fd24(0x2c2)](_0x5448a0+0x8,0xc8);}function Sn(_0x1e86c6,_0x361c1f){const _0x201b02=_0x51ce3e;let {radius:_0x1ad10a,width:_0x291394,height:_0x503737}=_0x361c1f;_0x1ad10a??=0x0,_0x291394??=0x1e,_0x503737??=0x1e;let _0x245de2=0x0,_0x27ee2c=0x0,_0xb808b4=0x0;_0x245de2=_0x27ee2c=_0xb808b4=Math[_0x201b02(0x2c2)](_0x1ad10a,_0x291394/0x2,_0x503737/0x2),_0x1e86c6[_0x201b02(0x271)](),_0x1e86c6['moveTo'](_0x245de2,0x0),_0x1e86c6['lineTo'](_0x291394-_0x27ee2c,0x0),_0x1e86c6[_0x201b02(0x2c0)](_0x291394-_0x27ee2c,_0x27ee2c,_0x27ee2c,Math['PI']*0x3/0x2,0x0,!0x1),_0x1e86c6[_0x201b02(0x1a3)](_0x291394,_0x503737-_0xb808b4),_0x1e86c6[_0x201b02(0x2c0)](_0x291394-_0xb808b4,_0x503737-_0xb808b4,_0xb808b4,0x0,Math['PI']/0x2,!0x1),_0x1e86c6[_0x201b02(0x1a3)](0x0,_0x503737),_0x1e86c6[_0x201b02(0x1a3)](0x0,_0x245de2),_0x1e86c6[_0x201b02(0x2c0)](_0x245de2,_0x245de2,_0x245de2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1e86c6[_0x201b02(0x2fc)](),_0x361c1f[_0x201b02(0x26a)]&&(_0x1e86c6[_0x201b02(0x2a4)](),_0x1e86c6[_0x201b02(0x286)]=_0x361c1f[_0x201b02(0x26a)],_0x361c1f[_0x201b02(0xac)]===_0x201b02(0x13b)?_0x1e86c6['fill'](_0x201b02(0x13b)):_0x1e86c6[_0x201b02(0x26a)](),_0x1e86c6[_0x201b02(0x8e)]());}var Cn=class e extends _0x5f518d{constructor(_0x5273f0,_0x715e37){const _0x155083=_0x51ce3e;super(_0x5273f0,_0x715e37),q(this,_0x155083(0x2b4),void 0x0),q(this,'text',void 0x0),this['color']=_0x715e37==null?void 0x0:_0x715e37[_0x155083(0x2b4)],this[_0x155083(0x257)]=_0x715e37==null?void 0x0:_0x715e37[_0x155083(0x257)];}static[_0x51ce3e(0x2d9)](_0x5dc3ed,_0x378a58){const _0x307189=_0x51ce3e;let {text:_0x49ea1b,color:_0x1776fa}=_0x378a58;_0x5dc3ed[_0x307189(0x2a4)](),_0x5dc3ed[_0x307189(0x2f0)]=_0x307189(0x16e);let _0x7264ef=_0x5dc3ed[_0x307189(0xb4)](_0x49ea1b)[_0x307189(0x2cf)];if(Sn(_0x5dc3ed,{'height':0x14,'radius':0x4,'width':xn(_0x5dc3ed,_0x49ea1b),'fill':_0x1776fa,'evented':!0x1}),_0x5dc3ed[_0x307189(0x286)]=_0x307189(0xfd),_0x7264ef>0xc0){let _0x2b697a='',_0x32fd50=0x0;for(let _0x3fdf98 of _0x49ea1b){let _0x5d795c=_0x5dc3ed[_0x307189(0xb4)](_0x3fdf98)[_0x307189(0x2cf)];if(_0x32fd50+_0x5d795c<=0xc0-_0x5dc3ed[_0x307189(0xb4)](_0x307189(0x1e7))[_0x307189(0x2cf)])_0x2b697a+=_0x3fdf98,_0x32fd50+=_0x5d795c;else{_0x2b697a+=_0x307189(0x1e7);break;}}_0x5dc3ed[_0x307189(0x19d)](_0x2b697a,0x4,0xf);}else _0x5dc3ed['fillText'](_0x49ea1b,0x4,0xf);_0x5dc3ed[_0x307189(0x8e)]();}[_0x51ce3e(0xf6)](_0x3e353a){const _0x3b4503=_0x51ce3e;e[_0x3b4503(0x2d9)](_0x3e353a,this);}};const wn='collab-text-anchor-';var Tn=class{constructor(_0x460ca6,_0x52827d,_0x189b4b,_0x28480c){const _0x9230bd=_0x51ce3e;this[_0x9230bd(0x2cc)]=_0x460ca6,this[_0x9230bd(0x22b)]=_0x52827d,this[_0x9230bd(0x2e3)]=_0x189b4b,this[_0x9230bd(0x29d)]=_0x28480c,q(this,'_shapes',[]),q(this,_0x9230bd(0x255),null),q(this,_0x9230bd(0xf7),null),q(this,_0x9230bd(0x13d),null),q(this,_0x9230bd(0x23b),null),q(this,'_eventUnsubscribe',null),this['_render']();}set[_0x51ce3e(0x252)](_0x489cb9){const _0xf348d7=_0x51ce3e;_0x489cb9?(this['_anchorDot']&&this[_0xf348d7(0x13d)]['hide'](),this['_textBubble']&&this[_0xf348d7(0xf7)][_0xf348d7(0x256)]()):(this[_0xf348d7(0x13d)]&&this['_anchorDot'][_0xf348d7(0x256)](),this['_textBubble']&&this[_0xf348d7(0xf7)][_0xf348d7(0x95)]());}[_0x51ce3e(0x101)](){const _0x1f8974=_0x51ce3e;for(let _0x5d59ed of this['_shapes'])_0x5d59ed[_0x1f8974(0x101)]();this[_0x1f8974(0xf7)]&&this[_0x1f8974(0xf7)]['dispose'](),this[_0x1f8974(0x13d)]&&this[_0x1f8974(0x13d)][_0x1f8974(0x101)](),this[_0x1f8974(0x255)]&&this[_0x1f8974(0x255)]['dispose'](),this[_0x1f8974(0x1f0)]&&this['_eventUnsubscribe']();}[_0x51ce3e(0x2fa)](){const _0x2e13bf=_0x51ce3e;let {_docSkeleton:_0x49948b,_document:_0x5d8b6c}=this,{color:_0xe67143,name:_0x1f9185,ranges:_0x1c2e87}=this[_0x2e13bf(0x2cc)],_0x3be4c2=_0x5d8b6c[_0x2e13bf(0x2e8)](),{docsLeft:_0x5a03e4,docsTop:_0x3bb21f}=_0x3be4c2,_0x3abded=new _0x4df32d(_0x3be4c2,_0x49948b);for(let {startOffset:_0x40a36d,endOffset:_0x3037c9,rangeType:_0x167d59,segmentId:_0x3c4431,segmentPage:_0x5c7c08,collapsed:_0x116854,isActive:_0x45d210}of _0x1c2e87){let _0x44944d=_0x49948b[_0x2e13bf(0x13a)](_0x40a36d,!0x0,_0x3c4431,_0x5c7c08),_0x492043=_0x49948b['findNodePositionByCharIndex'](_0x3037c9,!0x0,_0x3c4431,_0x5c7c08);_0x492043??=_0x49948b[_0x2e13bf(0x13a)](_0x3037c9-0x1,!0x1,_0x3c4431,_0x5c7c08);let _0x3f37ca=En(_0x44944d,_0x492043);if(_0x45d210&&_0x3f37ca[_0x2e13bf(0x116)]){let {contentBoxPointGroup:_0x199e08}=_0x3abded[_0x2e13bf(0x8a)](_0x492043,_0x492043);if(_0x199e08[_0x2e13bf(0x26f)]===0x0)continue;this[_0x2e13bf(0x1ea)](_0xe67143,_0x199e08,_0x5a03e4,_0x3bb21f,_0x1f9185),this[_0x2e13bf(0x1f0)]=this[_0x2e13bf(0xe3)]();}if(_0x44944d&&_0x492043){if(_0x167d59===_0x453bb8[_0x2e13bf(0x2a6)]){let {pointGroup:_0x48cc56}=new _0x49cab4(_0x3be4c2,_0x49948b)[_0x2e13bf(0x8a)](_0x44944d,_0x492043)??{};if(_0x48cc56==null||_0x48cc56[_0x2e13bf(0x26f)]===0x0)continue;this[_0x2e13bf(0x214)](_0xe67143,_0x48cc56,_0x5a03e4,_0x3bb21f);}else{if(!_0x116854&&_0x3f37ca[_0x2e13bf(0x175)]){let {borderBoxPointGroup:_0x2dd835}=_0x3abded['getRangePointData'](_0x44944d,_0x492043);if(_0x2dd835['length']===0x0)continue;this[_0x2e13bf(0x24a)](_0xe67143,_0x2dd835,_0x5a03e4,_0x3bb21f);}}}}}['_drawAnchor'](_0x1950d7,_0x49a791,_0xe085e5,_0x2fa076,_0x1e252e){const _0x5cc100=_0x51ce3e;let {left:_0x535331,top:_0xee7943,height:_0x501581}=this[_0x5cc100(0x90)](_0x49a791),_0xd6fe4b=1.5/this[_0x5cc100(0x231)](),_0x3fbb08=new _0x2f083c(wn+_0x4efbbb(0x6),{'left':_0x535331+_0xe085e5-_0xd6fe4b,'top':_0xee7943+_0x2fa076,'height':_0x501581,'width':1.5,'fill':_0x1950d7||_0x5d2b44(_0x51e04d[_0x5cc100(0x28b)],0x0),'strokeWidth':_0xd6fe4b,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this['_anchor']=_0x3fbb08,this[_0x5cc100(0x22b)][_0x5cc100(0x1a2)](_0x3fbb08,_0x1f3fdc);let _0x48b0dd=new _0x2f083c(wn+_0x4efbbb(0x6),{'left':_0x535331+_0xe085e5-_0xd6fe4b,'top':_0xee7943+_0x2fa076-0x2,'height':0x4,'width':0x4,'fill':_0x1950d7||_0x5d2b44(_0x51e04d[_0x5cc100(0x28b)],0x0),'strokeWidth':0x0,'stroke':_0x1950d7||_0x5d2b44(_0x51e04d[_0x5cc100(0x28b)],0x0),'evented':!0x1});this[_0x5cc100(0x13d)]=_0x48b0dd,this[_0x5cc100(0x22b)]['addObject'](_0x48b0dd,_0x1f3fdc);let _0xd8f89a=new Cn(wn+_0x4efbbb(0x6),{'left':_0x535331+_0xe085e5-_0xd6fe4b,'top':_0xee7943+_0x2fa076-0x14,'text':_0x1e252e,'color':_0x1950d7});this[_0x5cc100(0xf7)]=_0xd8f89a,this[_0x5cc100(0x22b)][_0x5cc100(0x1a2)](_0xd8f89a,_0x1f3fdc),this['_hover']=!0x1;}[_0x51ce3e(0xe3)](){const _0x27d2c9=_0x51ce3e;let _0x6b46cc=this[_0x27d2c9(0x255)][_0x27d2c9(0xda)][_0x27d2c9(0x125)](()=>{this['_hover']=!0x0;}),_0x381774=this[_0x27d2c9(0x255)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x362e51=_0x27d2c9;this[_0x362e51(0x23b)]&&clearTimeout(this[_0x362e51(0x23b)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{_0x6b46cc['unsubscribe'](),_0x381774['unsubscribe']();};}[_0x51ce3e(0x24a)](_0x4f5daa,_0x121cea,_0x11b482,_0x51a1be){const _0x1307c8=_0x51ce3e;let _0x5e3d2e=0.2,_0x2679ea=new _0x14b4fd(_0x4f5daa)['setAlpha'](_0x5e3d2e)['toRgbString'](),_0x341d68=new _0x39df3e(_0x1307c8(0x2cd)+_0x4efbbb(0x6),{'pointsGroup':_0x121cea,'fill':_0x2679ea||_0x5d2b44(_0x51e04d['black'],_0x5e3d2e),'left':_0x11b482,'top':_0x51a1be,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1307c8(0x1f4)][_0x1307c8(0xbf)](_0x341d68),this['_scene'][_0x1307c8(0x1a2)](_0x341d68,_0x1f3fdc);}['_drawRectRange'](_0x383c16,_0x3cb0bb,_0x2035d0,_0x508ff1){const _0x2c0f37=_0x51ce3e;let _0x251394=0.2,_0x594b11=new _0x14b4fd(_0x383c16)[_0x2c0f37(0x7a)](_0x251394)['toRgbString'](),_0x42233c=new _0x39df3e(_0x2c0f37(0x1b7)+_0x4efbbb(0x6),{'pointsGroup':_0x3cb0bb,'fill':_0x594b11||_0x5d2b44(_0x51e04d[_0x2c0f37(0x28b)],_0x251394),'left':_0x2035d0,'top':_0x508ff1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x2c0f37(0xbf)](_0x42233c),this[_0x2c0f37(0x22b)]['addObject'](_0x42233c,_0x1f3fdc);}['_getAnchorBounding'](_0x83a006){let _0x18d5ee=_0x83a006[0x0],_0x10f82f=_0x18d5ee[0x0],_0x2946d6=_0x18d5ee[0x2],{x:_0xd30561,y:_0x3579a0}=_0x10f82f,{x:_0x57eb70,y:_0x4be59b}=_0x2946d6;return{'left':_0xd30561,'top':_0x3579a0,'width':_0x57eb70-_0xd30561,'height':_0x4be59b-_0x3579a0};}['_getScale'](){const _0x505466=_0x51ce3e;let {scaleX:_0xe19e3c,scaleY:_0x3d7a2d}=this[_0x505466(0x22b)][_0x505466(0x1c9)]();return Math[_0x505466(0x1d6)](_0xe19e3c,_0x3d7a2d);}};function En(_0x38c768,_0x453d3b){const _0x70ce4=_0x51ce3e;if(!_0x453d3b)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x38c768||_0x38c768['pageType']!==_0x453d3b[_0x70ce4(0x200)]||(_0x38c768[_0x70ce4(0x200)]===_0x50d566[_0x70ce4(0x2e5)]||_0x38c768[_0x70ce4(0x200)]===_0x50d566[_0x70ce4(0x220)])&&_0x38c768[_0x70ce4(0x1af)]!==_0x453d3b[_0x70ce4(0x1af)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x48d893=_0x335bc8(_0x38c768),_0x40716e=_0x335bc8(_0x453d3b);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x48d893==null||_0x40716e==null?_0x48d893==null&&_0x40716e==null:_0x48d893['pageIndex']===_0x40716e[_0x70ce4(0xf4)]&&_0x48d893[_0x70ce4(0x17f)]===_0x40716e[_0x70ce4(0x17f)]&&_0x48d893[_0x70ce4(0x2c3)]===_0x40716e['columnIndex']};}let Dn=class extends _0xec433e{constructor(_0x94df52,_0xffb0f0,_0x2b7d51,_0x542db2,_0x5e571c){const _0x41260e=_0x51ce3e;super(),this['_context']=_0x94df52,this['_docSkeletonManagerService']=_0xffb0f0,this[_0x41260e(0x2b3)]=_0x2b7d51,this[_0x41260e(0x2f9)]=_0x542db2,this[_0x41260e(0x1a9)]=_0x5e571c,q(this,_0x41260e(0xcc),[]),q(this,_0x41260e(0x1c3),[]),this[_0x41260e(0x23a)]();}[_0x51ce3e(0x23a)](){const _0xa42bef=_0x51ce3e;let _0x4ccfc2=this['_context'][_0xa42bef(0xe5)],_0x41be41=this[_0xa42bef(0x210)];this['disposeWithMe'](_0x54fdcf([this['_collabCursorController']['getCollabCursors$'](_0x4ccfc2),this['_themeService'][_0xa42bef(0xf8)]])['pipe'](_0x44be09(([_0x10e29f,_0x582d13])=>({'skeleton':_0x41be41[_0xa42bef(0x1a8)](),'cursors':[..._0x10e29f[_0xa42bef(0x225)]()][_0xa42bef(0x227)](_0x1232b0=>({..._0x1232b0,'color':this[_0xa42bef(0x1a9)][_0xa42bef(0x267)](_0x1232b0[_0xa42bef(0x2b4)])}))})))[_0xa42bef(0xd5)](_0x385be3=>{const _0x38e2b4=_0xa42bef;if(this[_0x38e2b4(0x100)](),_0x385be3){let {skeleton:_0x6ad5bc,cursors:_0x1b823c}=_0x385be3;this[_0x38e2b4(0x11d)](_0x6ad5bc,_0x1b823c);}})),this[_0xa42bef(0x2ef)](),this[_0xa42bef(0x1b5)]();}[_0x51ce3e(0x11d)](_0x338c71,_0x421d32){const _0x47efd7=_0x51ce3e;let {scene:_0x779eed,mainComponent:_0x57aca0}=this[_0x47efd7(0xc9)],_0x29e4bb=_0x421d32['map'](_0x259002=>new Tn(_0x259002,_0x779eed,_0x338c71,_0x57aca0));this[_0x47efd7(0xcc)]=_0x29e4bb,this[_0x47efd7(0x1c3)]=_0x421d32;}[_0x51ce3e(0x188)](){const _0x49d6d7=_0x51ce3e;this[_0x49d6d7(0x100)]();let {scene:_0x4d6b19,mainComponent:_0x4661f8}=this['_context'],_0xf4f4f4=this[_0x49d6d7(0x210)][_0x49d6d7(0x1a8)](),_0x274a67=this[_0x49d6d7(0x1c3)][_0x49d6d7(0xa0)](_0x3cde50=>new Tn(_0x3cde50,_0x4d6b19,_0xf4f4f4,_0x4661f8));this[_0x49d6d7(0xcc)]=_0x274a67;}[_0x51ce3e(0x100)](){const _0x5ccb06=_0x51ce3e;this['_cursorShapes'][_0x5ccb06(0x1c0)](_0x54d3bf=>_0x54d3bf['dispose']()),this[_0x5ccb06(0xcc)]=[];}['_initCommandExecutedListener'](){const _0x27ca93=_0x51ce3e;let _0x5edb5e=[_0x508dd8['id']];this[_0x27ca93(0x156)](this[_0x27ca93(0x2f9)][_0x27ca93(0xeb)](_0x2098b0=>{const _0x109ab2=_0x27ca93;_0x5edb5e[_0x109ab2(0x258)](_0x2098b0['id'])&&_0x2098b0[_0x109ab2(0x184)]['unitId']===this[_0x109ab2(0xc9)][_0x109ab2(0xe5)]&&this[_0x109ab2(0x188)]();}));}[_0x51ce3e(0x2ef)](){const _0x45ca37=_0x51ce3e;this[_0x45ca37(0x156)](_0x575566(this[_0x45ca37(0xc9)][_0x45ca37(0x11c)][_0x45ca37(0x17b)])[_0x45ca37(0xf3)](_0xe50f8e(_0x493dc5=>_0x493dc5[_0x45ca37(0x2bb)]===_0x1555ad[_0x45ca37(0x15e)]),_0x32b513(0x10))['subscribe'](()=>{const _0x22e975=_0x45ca37;this[_0x22e975(0x188)]();}));}};Dn=Y([J(0x1,_0x34f379(_0x3d83ec)),J(0x2,_0x34f379(Z)),J(0x3,_0xa707b2),J(0x4,_0x34f379(_0x1477dd))],Dn);var On=class extends _0x5f518d{constructor(_0x4549db,_0x3ea869){const _0xa00005=_0x51ce3e;super(_0x4549db,_0x3ea869),q(this,_0xa00005(0x135),void 0x0),q(this,_0xa00005(0x167),!0x1),q(this,_0xa00005(0x132),void 0x0),q(this,_0xa00005(0x8c),''),q(this,_0xa00005(0x1a1),_0xa00005(0x2e4)),q(this,_0xa00005(0xaa),void 0x0),q(this,'_showText',void 0x0),q(this,'_highlight',void 0x0),q(this,_0xa00005(0x119),0x4),q(this,_0xa00005(0x87),void 0x0),q(this,'_blinkIntervalTimer',void 0x0),q(this,'_isBlinkVisible',!0x0),q(this,'_offsetY',0x0),q(this,_0xa00005(0xef),_0xa00005(0xb6)),_0x3ea869&&(this['setShapeProps'](_0x3ea869),_0x3ea869[_0xa00005(0x1fc)]&&(_0x3ea869[_0xa00005(0x1e5)]??this[_0xa00005(0x119)])&&this['_startBlinking'](_0x3ea869['highlightSecond']??this[_0xa00005(0x119)])),this['onPointerEnter$'][_0xa00005(0x125)](()=>this[_0xa00005(0x7e)]({'hovered':!0x0})),this[_0xa00005(0x177)][_0xa00005(0x125)](()=>this[_0xa00005(0x7e)]({'hovered':!0x1}));}[_0x51ce3e(0x2d4)](_0xa5c2a2){const _0x495b8d=_0x51ce3e;this[_0x495b8d(0x168)]=_0xa5c2a2;}[_0x51ce3e(0x7e)](_0x29b64c){const _0x12e01b=_0x51ce3e;this[_0x12e01b(0x135)]=_0x29b64c[_0x12e01b(0x2b4)]??this[_0x12e01b(0x135)],this[_0x12e01b(0x167)]=_0x29b64c[_0x12e01b(0x24e)]??this[_0x12e01b(0x167)],this[_0x12e01b(0x132)]=_0x29b64c[_0x12e01b(0x131)]??this[_0x12e01b(0x132)],this[_0x12e01b(0x8c)]=_0x29b64c['name']??this['_name'],this[_0x12e01b(0x1a1)]=_0x29b64c['labelPosition']??this[_0x12e01b(0x1a1)],this[_0x12e01b(0xaa)]=_0x29b64c['backgroundColor']??this[_0x12e01b(0xaa)],this[_0x12e01b(0x1ab)]=_0x29b64c['showText']??this[_0x12e01b(0x1ab)],this[_0x12e01b(0xef)]=_0x29b64c[_0x12e01b(0x106)]??this[_0x12e01b(0xef)],_0x29b64c[_0x12e01b(0x1e5)]!==void 0x0&&(this['_highlightSecond']=_0x29b64c[_0x12e01b(0x1e5)]),_0x29b64c[_0x12e01b(0x1fc)]!==void 0x0&&(this[_0x12e01b(0xdc)]=_0x29b64c['highlight']),_0x29b64c[_0x12e01b(0x166)]!==void 0x0&&(this[_0x12e01b(0x168)]=_0x29b64c[_0x12e01b(0x166)]),this[_0x12e01b(0xfa)]({'width':_0x29b64c[_0x12e01b(0x2cf)],'height':_0x29b64c[_0x12e01b(0xc7)]});}[_0x51ce3e(0x209)](_0x658ee5){const _0x284dae=_0x51ce3e;let {row:_0x22e4eb,column:_0x15e69}=_0x658ee5;_0x22e4eb>=this['_range'][_0x284dae(0x151)]&&_0x22e4eb<=this[_0x284dae(0x132)][_0x284dae(0x80)]&&_0x15e69>=this['_range']['startColumn']&&_0x15e69<=this['_range']['endColumn']?this['setShapeProps']({'hovered':!0x0}):this[_0x284dae(0x7e)]({'hovered':!0x1});}[_0x51ce3e(0x114)](_0x355c11){const _0x58618a=_0x51ce3e;this[_0x58618a(0x1bc)](),this[_0x58618a(0x2d1)]=!0x0,this[_0x58618a(0x2b6)]=window[_0x58618a(0x9b)](()=>{const _0x19920b=_0x58618a;this[_0x19920b(0x2d1)]=!this[_0x19920b(0x2d1)],this[_0x19920b(0x245)](!0x0);},0x1f4),this[_0x58618a(0x87)]=window['setTimeout'](()=>{const _0x3f6877=_0x58618a;this[_0x3f6877(0x1bc)](),this['_isBlinkVisible']=!0x0,this[_0x3f6877(0x245)](!0x0);},_0x355c11*0x3e8);}[_0x51ce3e(0x1bc)](){const _0x2e9bd8=_0x51ce3e;this['_blinkIntervalTimer']&&=(window[_0x2e9bd8(0x1ce)](this['_blinkIntervalTimer']),void 0x0),this[_0x2e9bd8(0x87)]&&=(window[_0x2e9bd8(0xc1)](this[_0x2e9bd8(0x87)]),void 0x0);}['triggerDblclick'](_0x587c75){return!0x1;}[_0x51ce3e(0x101)](){const _0x21135a=_0x51ce3e;this['_stopBlinking'](),super[_0x21135a(0x101)]();}[_0x51ce3e(0xf6)](_0x1f78dc){const _0x5cb74f=_0x51ce3e;let _0x32ae51=this[_0x5cb74f(0x135)],_0x26ca14=this[_0x5cb74f(0xaa)];if(this['_highlight']&&!this['_isBlinkVisible']&&(_0x32ae51=this['_getLighterColor'](this[_0x5cb74f(0x135)]),_0x26ca14=this['_backgroundColor']?this[_0x5cb74f(0x2ab)](this[_0x5cb74f(0xaa)]):void 0x0),_0x2f083c[_0x5cb74f(0x2d9)](_0x1f78dc,{'width':this['width'],'height':this[_0x5cb74f(0xc7)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x32ae51,'evented':!0x1,'fill':_0x26ca14}),this['_hovered']||this[_0x5cb74f(0x1ab)]){_0x1f78dc[_0x5cb74f(0x2a4)]();let _0x2a054a=this[_0x5cb74f(0xef)]===_0x5cb74f(0xf0)?-xn(_0x1f78dc,this[_0x5cb74f(0x8c)]):this['width'];_0x1f78dc[_0x5cb74f(0x1ca)](0x1,0x0,0x0,0x1,_0x2a054a,(this[_0x5cb74f(0x1a1)]==='bottom'?0x0:-0x14)+(this['_offsetY']??0x0)),Cn['drawWith'](_0x1f78dc,{'text':this[_0x5cb74f(0x8c)],'color':_0x32ae51}),_0x1f78dc[_0x5cb74f(0x8e)]();}}[_0x51ce3e(0x2ab)](_0x243d43){const _0x31b0b8=_0x51ce3e;return _0x243d43[_0x31b0b8(0x22c)]('#')?_0x31b0b8(0xd8)+Number[_0x31b0b8(0xa6)](_0x243d43[_0x31b0b8(0x238)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x243d43['slice'](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x243d43['slice'](0x5,0x7),0x10)+_0x31b0b8(0x293):_0x243d43[_0x31b0b8(0x22c)](_0x31b0b8(0x2b8))?_0x243d43[_0x31b0b8(0x138)](/[\d.]+\)$/g,'0.2)'):_0x243d43[_0x31b0b8(0x22c)](_0x31b0b8(0xd9))?_0x243d43[_0x31b0b8(0x138)]('rgb',_0x31b0b8(0x2b8))[_0x31b0b8(0x138)](')',_0x31b0b8(0x293)):_0x243d43;}};let kn=class extends _0xec433e{constructor(_0xbf7c98,_0x48fc50,_0x40720e,_0xaec246){const _0x566f25=_0x51ce3e;super(),this['_context']=_0xbf7c98,this[_0x566f25(0x2a7)]=_0x48fc50,this[_0x566f25(0x2b3)]=_0x40720e,this[_0x566f25(0x1a9)]=_0xaec246,q(this,_0x566f25(0x1c3),new Set()),q(this,_0x566f25(0x110),null),q(this,'_pointerMoveDisposable',null),this['_init']();}[_0x51ce3e(0x23a)](){const _0x32c785=_0x51ce3e;this[_0x32c785(0x2a7)]['currentSkeleton$'][_0x32c785(0xf3)](_0x395d25(this[_0x32c785(0x253)]),_0x26ef76(_0x22632b=>{const _0x477f29=_0x32c785;if(_0x22632b){let _0x469545=_0x22632b[_0x477f29(0x147)];return _0x54fdcf(this['_collabCursorController'][_0x477f29(0x97)](this[_0x477f29(0xc9)]['unitId']),this['_themeService'][_0x477f29(0xf8)])[_0x477f29(0xf3)](_0x44be09(([_0x39d94f,_0x17cfd0])=>{let _0x3f9cdf=new Map();return _0x39d94f['forEach']((_0x18006d,_0x3188ad)=>{const _0x2c80ba=_0x5409;if(_0x18006d[_0x2c80ba(0x205)]===_0x469545){let _0x3bff5e={..._0x18006d};_0x3bff5e['color']=this[_0x2c80ba(0x1a9)][_0x2c80ba(0x267)](_0x18006d['color']),_0x3f9cdf[_0x2c80ba(0xde)](_0x3188ad,_0x3bff5e);}}),{'skeleton':_0x22632b,'cursors':_0x3f9cdf};}));}return _0x450ab3({'skeleton':null,'cursors':new Map()});}))[_0x32c785(0xd5)](({skeleton:_0x47ac4b,cursors:_0x3b494c})=>{const _0x3cad4d=_0x32c785;this['_removeCollabCursors'](),_0x47ac4b&&this[_0x3cad4d(0x11d)](_0x47ac4b,_0x3b494c);}),this[_0x32c785(0x156)](this[_0x32c785(0x2a7)][_0x32c785(0x191)][_0x32c785(0xf3)](_0x395d25(this[_0x32c785(0x253)]))['subscribe'](_0x1e5036=>{const _0x37dcc0=_0x32c785;var _0x45ccd8;if(_0x1e5036==null)return;(_0x45ccd8=this['_pointerMoveDisposable'])==null||_0x45ccd8[_0x37dcc0(0x29c)](),this[_0x37dcc0(0x7c)]=null;let {skeleton:_0x450d5d}=_0x1e5036,{scene:_0xdbcba1}=this['_context'];this[_0x37dcc0(0x7c)]=_0xdbcba1[_0x37dcc0(0x77)][_0x37dcc0(0x125)](_0x38a934(_0x3d49d8=>{const _0x3f5cd1=_0x37dcc0;var _0x112feb,_0x2df2f5;let {offsetX:_0x1c3f2a,offsetY:_0x3f499a}=_0x3d49d8,{x:_0x32b24e,y:_0x364a86}=_0xdbcba1['getCoordRelativeToViewport'](_0x1ba6df[_0x3f5cd1(0xab)]([_0x1c3f2a,_0x3f499a])),{scaleX:_0x40e452,scaleY:_0x2b8e60}=_0xdbcba1['getAncestorScale'](),_0x5885c9=_0xdbcba1[_0x3f5cd1(0x196)](_0xcd96bb[_0x3f5cd1(0x222)]),_0x3d8efe=_0xdbcba1[_0x3f5cd1(0x29b)](_0x1ba6df[_0x3f5cd1(0xab)]([_0x32b24e,_0x364a86]),_0x5885c9),_0x11336a=_0x450d5d[_0x3f5cd1(0x2e0)](_0x1c3f2a,_0x3f499a,_0x40e452,_0x2b8e60,_0x3d8efe);(((_0x112feb=this[_0x3f5cd1(0x110)])==null?void 0x0:_0x112feb[_0x3f5cd1(0x229)])!==_0x11336a['column']||((_0x2df2f5=this[_0x3f5cd1(0x110)])==null?void 0x0:_0x2df2f5[_0x3f5cd1(0x10a)])!==_0x11336a[_0x3f5cd1(0x10a)])&&this[_0x3f5cd1(0x1c3)][_0x3f5cd1(0x1c0)](_0x53e43e=>{const _0x21dd51=_0x3f5cd1;_0x53e43e[_0x21dd51(0x209)](_0x11336a);});},0x64));})),this[_0x32c785(0x156)](_0x2dde77(()=>{const _0x2386b1=_0x32c785;var _0x356134;(_0x356134=this[_0x2386b1(0x7c)])==null||_0x356134['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}[_0x51ce3e(0x11d)](_0x17e850,_0x4c1106){const _0x1996dc=_0x51ce3e;let _0x1959c6=this['_sheetSkeletonManagerService'][_0x1996dc(0x1f3)]();if(!_0x1959c6)return;let _0x27c1c8=this[_0x1996dc(0x9c)]();if(!_0x27c1c8)return;this[_0x1996dc(0x1c3)][_0x1996dc(0x1c0)](_0xf8a92f=>{const _0x50fa1e=_0x1996dc;_0xf8a92f[_0x50fa1e(0x245)]();});let {scene:_0x5117b5}=_0x27c1c8,_0xa9b40d=An(Array[_0x1996dc(0x1bb)](_0x4c1106[_0x1996dc(0x225)]()))[_0x1996dc(0xa0)](_0x5e19b4=>{const _0x333b52=_0x1996dc;let {color:_0x264dcf,range:_0x1fa011,name:_0x54660f,selection:_0x3bfad8,sheetID:_0x179e7f}=_0x5e19b4,{startColumn:_0x29777f,startRow:_0x2a2d21,endColumn:_0xf231b1,endRow:_0x395219}=_0x1fa011,_0x1b3a1a=_0xc235cf(_0x2a2d21,_0x29777f,_0x5117b5,_0x1959c6),_0x4527cd=_0xc235cf(_0x395219,_0xf231b1,_0x5117b5,_0x1959c6),{columnHeaderHeightAndMarginTop:_0x44a139}=_0x1959c6,{startX:_0x2e5cc3,startY:_0xf18d6a}=_0x1b3a1a,{endX:_0x4eaef1,endY:_0x236f6f}=_0x4527cd,_0x186b13=_0x4eaef1-_0x2e5cc3,_0x402424=_0x236f6f-_0xf18d6a;return new On(_0x54660f,{'labelPosition':_0xf18d6a-_0x44a139>=0x14?_0x333b52(0x2e4):_0x333b52(0x290),'sheetID':_0x179e7f,'range':_0x1fa011,'color':_0x264dcf,'name':_0x54660f,'selection':_0x3bfad8,'left':_0x2e5cc3,'top':_0xf18d6a,'width':_0x186b13,'height':_0x402424,'evented':!0x1,'zIndex':0x1389});});_0x5117b5[_0x1996dc(0xe1)](_0xa9b40d,0x1),this[_0x1996dc(0x1c3)]=new Set(_0xa9b40d);}[_0x51ce3e(0x100)](){const _0x567639=_0x51ce3e;var _0x5adbfa;(_0x5adbfa=this[_0x567639(0x1c3)])==null||_0x5adbfa[_0x567639(0x1c0)](_0xb6b3a7=>_0xb6b3a7[_0x567639(0x101)]());}[_0x51ce3e(0x9c)](){const _0x5f0685=_0x51ce3e;return _0x298c29(this[_0x5f0685(0xc9)][_0x5f0685(0x180)],this[_0x5f0685(0xc9)]);}};function _0x4c77(){const _0x1e54ed=['getCurrentSkeleton','_shapes','_snapshotLoadingService','collaboration-client-ui.license.title','collaboration-client-ui.session.collaboration-timeout','onStarting','adapters$','entityInit$','collaboration-client-ui.conflict.retry','highlight','red.300','saveTaskMap','_saveCache','pageType','collaboration-client-ui.session.will-retry','m2Prime','addEventListener','enableFrontendLog','sheetID','ERROR','_configService','getStateCache','onMouseMove','error','DeleteRangeMoveUpCommandId','Error','Enter','NO_OTHER_CLIENTS_EDITING','_updateLocalCursor','_docSkeletonManagerService','unshift','next','has','_drawRectRange','_initEntityListener','executionId','complete','createSocket','_docClipboardService','get','_entities','catch','version','unhandledrejection','InsertRowCommandId','FOOTER','_showAwaitingNotice','VIEW_MAIN','_startEntity','univer-m-0\x20univer-p-0','values','visibilityState','flatMap','_uploadLog','column','univer-text-green-500','_scene','startsWith','bind','disposeUnit','collaboration-client-ui.conflict.processing','collabCursorState$','_getScale','filter','Warning','runId','focusedId','_getMergeRange','onRendered','slice','collaboration-client-ui.remoteRevert.content','_init','_hideTimer','1912mdPDuq','assignAColorForMemberID','online$','_getSessionTicket','deepClone','removeEventListener','reload','_unitOnClients','constructor','makeDirty','tableSource','RemoveColCommandId','InsertRangeMoveDownCommandId','_config','_drawTextRange','remove','_startSheetCollabCursor','some','hovered','timeoutId','localPresence$','stream','_hover','dispose$','span','_anchor','show','text','includes','TEXT','HEADER_MENU','NOT_COLLAB','_univerInstanceService','collaboration-client-ui.license.domain-rejected','_saveTaskMap','_transformHistoryAndStateStack','collaboration-client-ui.collabStatus.syncing','isFinite','_collaborationSessionService','getSheetId','isEditing','_dispose$','data','getColorFromTheme','10ImsXnS','memberId','fill','collaboration-client-ui.collabStatus.notCollab','reason','executeCommand','_refRangeService','length','_toggleOffline','beginPath','OTHER_CLIENT_EDITING','string','_localeService','_registerDependencies','_onConflict','_retryConflictCacheClear','_listenToOfflineEvent','loadedBlocks','DeleteRangeMoveLeftCommandId','m1Prime','clearRemotePresences','_registerPresenceStatusComponent','_roomMembers$','getUnitId','CONFLICT_CACHE_CLEAR_FAILED','state$','_adapterRegistry',':backup:','cursorInfo$','univer-border-none\x20univer-bg-transparent','fillStyle','getCollabEntities','_presenceAdapterRegistry','GET','storage','black','_httpService','_showConflictProcessingNotification','post','_scheduleSaving','bottom','Failed','toPrimitive',',\x200.2)','size','_beforeCloseService','clearOfflineData','_removeClearOtherTimer','default','_clearBlockProgressWatch','_bindAdapter','getScrollXYInfoByViewport','unsubscribe','_document','_assignedColors','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_normalizeUserId','with','1183144BnFXIb','online','save','unitID','RECT','_sheetSkeletonManagerService','location','every','registerBeforeClose','_getLighterColor','_initialized','getFocusedUnit','cacheCleared','_docSelectionManagerService','presenceKind','_collabCursorState$','_injector','_collabCursorController','color','PENDING','_blinkIntervalTimer','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','rgba','getCurrentUnitOfType','isArray','type','updateOfflineData','memberID','decorate','_clearOtherTimers','arc','value','min','columnIndex','GLOBAL','univer-text-orange-500','LICENSE_DOMAIN_REJECTED','_collabSessionService','SYNCED','exhaustSavingTask','primary','invokeId','_cursor','collab-text-range-','eventID','width','textRanges','_isBlinkVisible','status$','wsSessionTicketUrl','setOffsetY','jiqing.500','_getUserId','InsertColCommandId','_unitStatus','drawWith','_watchBlockProgress','finally','_retryingConflictCacheUnitIDs','_onCursorUpdate','ticket','UNIVER_DOC','getCellIndexByOffset','AWAITING_WITH_PENDING','ranges','_docSkeleton','top','HEADER','AWAITING','enableLocalCache','getOffsetConfig','setItem','collaboration-client-ui.collabStatus.synced','getMember','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','3125511xWaXAS','clear','_initResize','font','onLine','button','getItem','send','setRemotePresence','_messageIds','_reloadPage','focus','_commandService','_render','options','closePath','addClipboardHook','_collaborationUIEventService','onPointerMove$','collaboration-client-ui.session.connection-failed','_blockProgressWatches','setAlpha','_localStorageService','_pointerMoveDisposable','_cachedData','setShapeProps','loading','endRow','_handleCursorUpdate','Unknown\x20user','warning','_collaborationController','857bDmaGV','setTimeout','_blinkTimer','_transformUndoRedoStack','_memberService','getRangePointData','setConfig','_name','blue.400','restore','getValue','_getAnchorBounding','UPDATE_CURSOR','_online','_setupBeforeClosingHandler','_syncAdapters','hide','/run/','getCollabCursors$','collaboration-client-ui.license.editing-connections-exceeded','univer-text-gray-400','content','setInterval','_getSheetObject','_onRefRangeChange','getUnitStatus$','_send','map','unload','InsertRangeMoveRightCommandId','statusUIPart','6281046vlzOKU','_onCursorDelete','parseInt','getAllUnitsForType','title','search','_backgroundColor','FromArray','fillRule','registerRefRange','registerComponent','subUnitId','parse','_memberID','enableDocumentCollaborationUI','timedOut','measureText','_heartbeatTimer','right','_syncEditingCollabCursorService','alert','univer-inline-flex\x20univer-items-center\x20univer-justify-center','object','getOwnPropertyDescriptor','[Unhandled\x20Rejection]:\x20','entries','add','push','_docTransformStateCacheService','clearTimeout','getCurrentTypeOfUnit$','now','univer-text-blue-500','tooltipKey','_initUnhandledRejectionListener','height','collaboration-client-ui.conflict.title','_context','_transformService','endOffset','_cursorShapes','_status$','_docTransformSelectionsService','_docSyncEditingCollabCursorService','collaboration-client-ui.remoteRevert.title','icon','registerCommand','replaceSelectionInfoWithoutRefresh','indicator','subscribe','transformMutation','9UWpuuh','rgba(','rgb','onPointerEnter$','createInstance','_highlight','collaboration-client-ui.operation.update-remote-unit-presence','set','getCurrentRevOfUnit','LOADING_BLOCKS','addObjects','polite','_handleHover','ONLINE','unitId','shareInterval','_initStatusListener','_userManagerService','getDocRanges','_clearTimeoutState','onCommandExecuted','startOffset','_cursorInfo$','_entityInit$','_labelHorizontalPosition','left','spin','static','pipe','pageIndex','conflict$','_draw','_textBubble','currentTheme$','_updateMessage','transformByState','_transformPreviousActiveRange','body','#FFF','_revisionService','resolve','_removeCollabCursors','dispose','event$','elapsedMs','contains','_getSaveTimeout','labelHorizontalPosition','yellow.400','CLOSE_ROOM','_pendingEntities','row','_colorAssignService','_disabled','univer-flex\x20univer-items-center\x20univer-justify-center','getUnit','_registerRenderDependencies','_lastPointer','clickable','symbol','_trackActiveSaveTask','_startBlinking','snapshot-loading-','canRenderAnchor','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','number','_highlightSecond','_scheduleClearOtherTimer','_startDocCollabCursor','engine','_updateCollabCursors','i18nKey','_online$','getLocalPresence','FETCH_MISS','undoState','mutations','_instanceService','subscribeEvent','_renderManagerService','_activeSaveTaskMap','isActive','_initStatusComponent','cursorInfo','kind','_conflictNotification','socket$','setUndoRedoMutationParamsCache','_syncPresenceStatusComponents','_handleEvent','range','_range','name','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_color','_selfUnitIDs','_editingConnectionsExceededNotices','replace','getTypeOfUnitDisposed$','findNodePositionByCharIndex','evenodd','SOCKET_FAILED','_anchorDot','pointer','sessionStatus$','focused$','collaboration-client-ui.snapshotLoading.refresh','_ensureSubject','bold\x2013px\x20Arial,\x20sans-serif','split','getActiveSheet','selection','sheetId','_session','newValue','asObservable','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','getCollabEntity$','function','OFFLINE','transformStateCache','defineProperty','startRow','_disposeEntity','UNIVER_SHEET','status','_saveTimedOutNotices','disposeWithMe','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','OPERATION','saveImage','doc.mutation.rich-text-editing','JOIN_ROOM_FAILED','code','_imageIoService','resize','saveOfflineData','getUndoRedoMutationParamsCache','_showConflictCacheClearFailedNotification','roomMembers$','_listenToOnlineEvent','tableId','div','offsetY','_hovered','_offsetY','toString','redoState','searchParams','getSelectionInfo','visible','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getTypeOfUnitAdded$','COMPLETE','_clearRemotePresences','_disposed','_handleHeartbeatEvent','_colorIndex','canRenderSelection','removeRemotePresence','onPointerLeave$','[LogService\x20Error]:\x20','_docStateChangeManagerService','enableDefaultConflictUI','onTransformChange$','selectedIds','_messageService','userId','columnGroupId','unit','allSettled','stringify','RemoveRowCommandId','params','collaboration-client-ui.collaboration.closeRoom','getConfig','find','_refreshCollabCursors','removeItem','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','registerRenderModule','univer-transition-all\x20univer-duration-200','collaboration-client-ui.collaboration.single-unit.warning','_toggleOnline','CONFLICT','CONFLICT_PROCESSING','currentSkeleton$','_initAwaitingNotices','prepareTransformSelections','preventDefault','collaboration-client-ui.snapshotLoading.timeout','getViewport','unitType','OTHER_CLIENTS_EDITING','_disposeEntitiesForType','init','backupOfflineData','reconnect','fillText','syncEditingCollabCursor','_initEvent','then','_labelPosition','addObject','lineTo','MoveRangeCommandId','_handleLeaveEvent','1888712gAFYQT','setActiveRange','getSkeleton','_themeService','_scheduleHeartbeat','_showText','source','transformIMECache','_logService','segmentPage','update','_initPresenceStatusComponents','getRenderUnitById','SOCKET_FAILED_RETRY','editingUnit','_initCommandExecutedListener','_adapterDisposables','collab-rect-range-','_initUserListener','collaboration-client-ui.conflict.content','/universer-api/frontend/logs','from','_stopBlinking','href','timeoutState$','stack','forEach','packageName','true','_cursors','_timeoutState$','key','_sendLocalPresence','disableLocalCache','green.600','getAncestorScale','transform','1468156bZZwdj','addHandlerCallback','origin','clearInterval','runOnServer','_handleJoinEvent','_monkeyPatchLogService','USERS_LEAVE','transformRemoteChangeset','transformMutationsWithChangeset','_presenceStatusRegistrations','max','state','univer-appearance-none','stage','_localCacheService','totalBlocks','delete','_id','_removeRemotePresence','_docTransformIMECacheService','message','getMemberID','join','collaboration-client-ui.config','setStateCache','highlightSecond','_removeAwaitingNotices','...','_initDependencies','sessionTicket','_drawAnchor','Loading','collaboration-client-ui.license.unit-type-rejected','_initConflictHandling','collaboration-client-ui.collabStatus.fetchMiss','1177900WxsDTa','_eventUnsubscribe','visibilitychange','_adapter'];_0x4c77=function(){return _0x1e54ed;};return _0x4c77();}kn=Y([J(0x1,_0x34f379(_0x2d0fbe)),J(0x2,_0x34f379(Z)),J(0x3,_0x34f379(_0x1477dd))],kn);function An(_0x21f011){const _0x36f0ac=_0x51ce3e;let _0x25a0c3=new Map();return _0x21f011['forEach'](_0x5df45e=>{const _0xb0e948=_0x5409;if(_0x25a0c3['has'](_0x5df45e[_0xb0e948(0x146)])){let _0x3b683a=_0x25a0c3['get'](_0x5df45e[_0xb0e948(0x146)]);_0x3b683a['name']+=',\x20'+_0x5df45e[_0xb0e948(0x133)];}else _0x25a0c3[_0xb0e948(0xde)](_0x5df45e[_0xb0e948(0x146)],_0x5df45e);}),Array[_0x36f0ac(0x1bb)](_0x25a0c3[_0x36f0ac(0x225)]());}function jn(_0xeab7db){const _0x1a3533=_0x51ce3e;return typeof _0xeab7db==_0x1a3533(0xba)&&!!_0xeab7db;}function Mn(_0x338ef1){const _0x1b7bf3=_0x51ce3e;return _0x338ef1[_0x1b7bf3(0x2ce)]===_0x33d081[_0x1b7bf3(0x91)]&&_0x1b7bf3(0x266)in _0x338ef1&&jn(_0x338ef1[_0x1b7bf3(0x266)])&&typeof _0x338ef1['data']['memberID']==_0x1b7bf3(0x273)&&typeof _0x338ef1[_0x1b7bf3(0x266)][_0x1b7bf3(0x146)]=='string';}function Nn(_0x248fc4){const _0x13198b=_0x51ce3e;return _0x248fc4[_0x13198b(0x2ce)]===_0x33d081[_0x13198b(0x1d2)]&&'data'in _0x248fc4&&jn(_0x248fc4[_0x13198b(0x266)])&&typeof _0x248fc4[_0x13198b(0x266)]['memberID']=='string';}function Pn(_0x55c6e1,_0x2d7611){const _0x3d8a90=_0x51ce3e;let _0x3a157e;try{_0x3a157e=JSON[_0x3d8a90(0xb0)](_0x55c6e1);}catch{return null;}if(!jn(_0x3a157e)||typeof _0x3a157e['kind']!=_0x3d8a90(0x273)||typeof _0x3a157e['unitId']!=_0x3d8a90(0x273)||typeof _0x3a157e[_0x3d8a90(0xaf)]!=_0x3d8a90(0x273))return null;let _0x40d512=typeof _0x3a157e[_0x3d8a90(0x197)]==_0x3d8a90(0x118)?_0x3a157e['unitType']:_0x2d7611;if(_0x40d512==null)return null;let _0x5169e5=jn(_0x3a157e[_0x3d8a90(0x13e)])&&typeof _0x3a157e[_0x3d8a90(0x13e)]['x']=='number'&&Number[_0x3d8a90(0x261)](_0x3a157e['pointer']['x'])&&typeof _0x3a157e[_0x3d8a90(0x13e)]['y']==_0x3d8a90(0x118)&&Number[_0x3d8a90(0x261)](_0x3a157e[_0x3d8a90(0x13e)]['y'])?{'x':_0x3a157e[_0x3d8a90(0x13e)]['x'],'y':_0x3a157e['pointer']['y']}:null;return{'kind':_0x3a157e[_0x3d8a90(0x12b)],'unitType':_0x40d512,'unitId':_0x3a157e[_0x3d8a90(0xe5)],'subUnitId':_0x3a157e[_0x3d8a90(0xaf)],'selectedIds':Array[_0x3d8a90(0x2ba)](_0x3a157e[_0x3d8a90(0x17c)])?_0x3a157e[_0x3d8a90(0x17c)][_0x3d8a90(0x232)](_0x3e03a2=>typeof _0x3e03a2==_0x3d8a90(0x273)):[],'focusedId':typeof _0x3a157e[_0x3d8a90(0x235)]==_0x3d8a90(0x273)?_0x3a157e[_0x3d8a90(0x235)]:null,'pointer':_0x5169e5};}function Fn(_0x2bc6ca,_0x23ab15,_0x3e3a7e){const _0x1aafdf=_0x51ce3e;return{'kind':_0x23ab15,'unitType':_0x2bc6ca,'unitId':_0x3e3a7e[_0x1aafdf(0xe5)],'subUnitId':_0x3e3a7e[_0x1aafdf(0xaf)],'selectedIds':Array[_0x1aafdf(0x1bb)](_0x3e3a7e[_0x1aafdf(0x17c)]),'focusedId':_0x3e3a7e[_0x1aafdf(0x235)],'pointer':_0x3e3a7e[_0x1aafdf(0x13e)]?{..._0x3e3a7e[_0x1aafdf(0x13e)]}:null};}let In=class extends _0xec433e{constructor(_0x10c3d8,_0x54605d,_0x113761,_0x367d76,_0x1c65b4,_0x1d21ef){const _0x1f7887=_0x51ce3e;super(),this[_0x1f7887(0xe5)]=_0x10c3d8,this['_session']=_0x54605d,this['_adapter']=_0x113761,this['_colorAssignService']=_0x367d76,this[_0x1f7887(0x89)]=_0x1c65b4,this[_0x1f7887(0x2f9)]=_0x1d21ef,q(this,_0x1f7887(0x92),!0x1),q(this,_0x1f7887(0x2ac),!0x1);}get['unitType'](){const _0x6f5d08=_0x51ce3e;return this[_0x6f5d08(0x1f2)][_0x6f5d08(0x197)];}[_0x51ce3e(0x101)](){this['_clearRemotePresences'](),super['dispose']();}[_0x51ce3e(0x19a)](){const _0x181f40=_0x51ce3e;this[_0x181f40(0x2ac)]||(this[_0x181f40(0x2ac)]=!0x0,this[_0x181f40(0x148)][_0x181f40(0x13f)][_0x181f40(0xf3)](_0x8ba39e(this[_0x181f40(0x253)]))[_0x181f40(0xd5)](_0x5c383d=>{const _0x58b184=_0x181f40;if(_0x5c383d===_0x5a103a['ONLINE']){this[_0x58b184(0x92)]=!0x0;let _0x5827d2=this[_0x58b184(0x1f2)][_0x58b184(0x120)](this[_0x58b184(0xe5)]);_0x5827d2&&this[_0x58b184(0x1c6)](_0x5827d2);}else this[_0x58b184(0x92)]=!0x1,this[_0x58b184(0x171)]();}),this[_0x181f40(0x148)][_0x181f40(0x102)][_0x181f40(0xf3)](_0x8ba39e(this[_0x181f40(0x253)]))['subscribe'](_0x31eec2=>{const _0x4185a8=_0x181f40;Mn(_0x31eec2)?this['_handleCursorUpdate'](_0x31eec2):Nn(_0x31eec2)&&this[_0x4185a8(0x1de)](_0x31eec2['data'][_0x4185a8(0x2bd)]);}),this[_0x181f40(0x1f2)][_0x181f40(0x250)][_0x181f40(0xf3)](_0x1ad818(_0x2e58f8=>this[_0x181f40(0x92)]&&_0x2e58f8[_0x181f40(0xe5)]===this[_0x181f40(0xe5)]),_0x240576(_0x2b4a20=>_0x3accd4(_0x2b4a20[_0x181f40(0xe6)]),{'leading':!0x0,'trailing':!0x0}),_0x8ba39e(this['dispose$']))['subscribe'](_0x5e7068=>this[_0x181f40(0x1c6)](_0x5e7068)));}['_sendLocalPresence'](_0x4c1c12){const _0x572281=_0x51ce3e;let _0x56ac74=this[_0x572281(0x148)]['getMemberID']();if(!_0x56ac74||!this[_0x572281(0x92)])return;let _0x41acff={'eventID':_0x33d081[_0x572281(0x91)],'data':{'unitID':this['unitId'],'memberID':_0x56ac74,'selection':JSON[_0x572281(0x182)](Fn(this[_0x572281(0x197)],this[_0x572281(0x1f2)][_0x572281(0x2b0)],_0x4c1c12))}};this['_session']['send'](_0x41acff,this[_0x572281(0xe5)])[_0x572281(0x21c)](()=>void 0x0);}[_0x51ce3e(0x81)](_0x21ad69){const _0x45e6de=_0x51ce3e;let {memberID:_0x3e0916,selection:_0x5a6ef2}=_0x21ad69['data'];if(_0x3e0916===this[_0x45e6de(0x148)][_0x45e6de(0x1e1)]())return;let _0x50cd4a=Pn(_0x5a6ef2,this['unitType']);if(!_0x50cd4a||_0x50cd4a[_0x45e6de(0x12b)]!==this[_0x45e6de(0x1f2)][_0x45e6de(0x2b0)]||_0x50cd4a[_0x45e6de(0x197)]!==this[_0x45e6de(0x197)]||_0x50cd4a[_0x45e6de(0xe5)]!==this[_0x45e6de(0xe5)])return;let _0x1c6c33=this['_memberService'][_0x45e6de(0x2eb)](this[_0x45e6de(0xe5)],_0x3e0916),_0x5c6216={'unitId':_0x50cd4a[_0x45e6de(0xe5)],'subUnitId':_0x50cd4a[_0x45e6de(0xaf)],'selectedIds':_0x50cd4a[_0x45e6de(0x17c)],'focusedId':_0x50cd4a['focusedId'],'pointer':_0x50cd4a[_0x45e6de(0x13e)],'memberId':_0x3e0916,'color':this[_0x45e6de(0x10b)][_0x45e6de(0x23d)](_0x3e0916),'name':(_0x1c6c33==null?void 0x0:_0x1c6c33[_0x45e6de(0x133)])??_0x3e0916};this[_0x45e6de(0x2f9)][_0x45e6de(0x26d)](un['id'],{'unitType':this[_0x45e6de(0x197)],'update':{'type':_0x45e6de(0xde),'state':_0x5c6216}})[_0x45e6de(0x21c)](()=>void 0x0);}['_removeRemotePresence'](_0x226100){const _0x1be237=_0x51ce3e;this['_commandService'][_0x1be237(0x26d)](un['id'],{'unitType':this[_0x1be237(0x197)],'update':{'type':_0x1be237(0x24b),'unitId':this[_0x1be237(0xe5)],'memberId':_0x226100}})[_0x1be237(0x21c)](()=>void 0x0);}[_0x51ce3e(0x171)](){const _0x53592c=_0x51ce3e;this[_0x53592c(0x2f9)][_0x53592c(0x26d)](un['id'],{'unitType':this[_0x53592c(0x197)],'update':{'type':_0x53592c(0x2ee),'unitId':this['unitId']}})['catch'](()=>void 0x0);}};In=Y([J(0x3,_0x34f379(mn)),J(0x4,_0x34f379(_0x1140c4)),J(0x5,_0x34f379(_0xa707b2))],In);let Ln=class extends _0xec433e{constructor(_0x105214,_0x339c59,_0x37aca0,_0x1e3c2e){const _0x4cd674=_0x51ce3e;super(),this[_0x4cd674(0x25c)]=_0x105214,this['_injector']=_0x339c59,this[_0x4cd674(0x2c7)]=_0x37aca0,this[_0x4cd674(0x282)]=_0x1e3c2e,q(this,'_isDisposed',!0x1),q(this,_0x4cd674(0x21b),new Map()),q(this,_0x4cd674(0x109),new Map()),q(this,'_adapterDisposables',new Map()),this[_0x4cd674(0x23a)]();}['dispose'](){const _0x27c0bd=_0x51ce3e;this['_isDisposed']=!0x0,this['_adapterDisposables']['forEach'](_0x39697f=>_0x39697f[_0x27c0bd(0x101)]()),this[_0x27c0bd(0x1b6)][_0x27c0bd(0x2ee)](),this[_0x27c0bd(0x21b)][_0x27c0bd(0x1c0)](_0x36c158=>_0x36c158['dispose']()),this[_0x27c0bd(0x21b)][_0x27c0bd(0x2ee)](),this[_0x27c0bd(0x109)][_0x27c0bd(0x2ee)](),super[_0x27c0bd(0x101)]();}[_0x51ce3e(0x23a)](){const _0x3729bc=_0x51ce3e;this[_0x3729bc(0x282)][_0x3729bc(0x1f9)][_0x3729bc(0xf3)](_0x8ba39e(this[_0x3729bc(0x253)]))[_0x3729bc(0xd5)](_0x497879=>this['_syncAdapters'](_0x497879));}[_0x51ce3e(0x94)](_0x2b1d25){const _0x2152a2=_0x51ce3e;let _0x25cb09=new Set(_0x2b1d25['map'](_0x16abb2=>_0x16abb2[_0x2152a2(0x197)]));this[_0x2152a2(0x1b6)]['forEach']((_0x3164fa,_0x172ebd)=>{const _0x3b4ea2=_0x2152a2;_0x25cb09[_0x3b4ea2(0x213)](_0x172ebd)||(_0x3164fa['dispose'](),this[_0x3b4ea2(0x1b6)]['delete'](_0x172ebd),this[_0x3b4ea2(0x199)](_0x172ebd));}),_0x2b1d25['forEach'](_0x55ac1e=>{const _0x3115dc=_0x2152a2;this[_0x3115dc(0x1b6)][_0x3115dc(0x213)](_0x55ac1e[_0x3115dc(0x197)])||this[_0x3115dc(0x29a)](_0x55ac1e);});}['_bindAdapter'](_0x55133f){const _0x516f40=_0x51ce3e;let _0x18da37=new _0x399827();this[_0x516f40(0x1b6)]['set'](_0x55133f[_0x516f40(0x197)],_0x18da37),_0x18da37[_0x516f40(0xbe)](_0x55133f['activate']()),this[_0x516f40(0x25c)][_0x516f40(0xa7)](_0x55133f['unitType'])[_0x516f40(0x1c0)](_0x79afab=>this['_startEntity'](_0x79afab[_0x516f40(0x27f)](),_0x55133f)['catch'](()=>void 0x0));let _0x5d528f=this[_0x516f40(0x25c)][_0x516f40(0x16f)](_0x55133f[_0x516f40(0x197)])[_0x516f40(0xd5)](({unit:_0x54ad11})=>this[_0x516f40(0x223)](_0x54ad11[_0x516f40(0x27f)](),_0x55133f)[_0x516f40(0x21c)](()=>void 0x0));_0x18da37['add'](_0x2dde77(()=>_0x5d528f[_0x516f40(0x29c)]()));let _0x2c0c86=this[_0x516f40(0x25c)][_0x516f40(0x139)](_0x55133f[_0x516f40(0x197)])[_0x516f40(0xd5)](_0x140441=>this[_0x516f40(0x152)](_0x140441['getUnitId']()));_0x18da37[_0x516f40(0xbe)](_0x2dde77(()=>_0x2c0c86[_0x516f40(0x29c)]()));}async[_0x51ce3e(0x223)](_0x26a669,_0x5f296f){const _0xae28c2=_0x51ce3e;if(this[_0xae28c2(0x21b)][_0xae28c2(0x213)](_0x26a669)||this[_0xae28c2(0x109)][_0xae28c2(0x213)](_0x26a669))return;let _0x3a7dee={};this[_0xae28c2(0x109)][_0xae28c2(0xde)](_0x26a669,_0x3a7dee);let _0x164301=await this['_collabSessionService']['requireSession'](_0x26a669)['catch'](_0x248c4a=>{const _0x4879d6=_0xae28c2;throw this[_0x4879d6(0x109)][_0x4879d6(0x21a)](_0x26a669)===_0x3a7dee&&this[_0x4879d6(0x109)][_0x4879d6(0x1dc)](_0x26a669),_0x248c4a;});if(this['_isDisposed']||this[_0xae28c2(0x109)][_0xae28c2(0x21a)](_0x26a669)!==_0x3a7dee||this[_0xae28c2(0x282)][_0xae28c2(0x21a)](_0x5f296f[_0xae28c2(0x197)])!==_0x5f296f){this[_0xae28c2(0x109)][_0xae28c2(0x21a)](_0x26a669)===_0x3a7dee&&this[_0xae28c2(0x109)][_0xae28c2(0x1dc)](_0x26a669);return;}let _0x4834c6=this[_0xae28c2(0x2b2)][_0xae28c2(0xdb)](In,_0x26a669,_0x164301,_0x5f296f);_0x4834c6[_0xae28c2(0x19a)](),this[_0xae28c2(0x109)]['delete'](_0x26a669),this['_entities'][_0xae28c2(0xde)](_0x26a669,_0x4834c6);}[_0x51ce3e(0x152)](_0x47e717){const _0x35668f=_0x51ce3e;this[_0x35668f(0x109)]['delete'](_0x47e717);let _0x3b6303=this[_0x35668f(0x21b)][_0x35668f(0x21a)](_0x47e717);_0x3b6303&&(_0x3b6303[_0x35668f(0x101)](),this[_0x35668f(0x21b)]['delete'](_0x47e717));}[_0x51ce3e(0x199)](_0x7fa7c4){const _0x1b931b=_0x51ce3e;this[_0x1b931b(0x25c)]['getAllUnitsForType'](_0x7fa7c4)[_0x1b931b(0x1c0)](_0x996cfb=>this[_0x1b931b(0x109)]['delete'](_0x996cfb[_0x1b931b(0x27f)]())),Array[_0x1b931b(0x1bb)](this[_0x1b931b(0x21b)][_0x1b931b(0xbd)]())[_0x1b931b(0x1c0)](([_0xfdeaa4,_0x16d2ce])=>{const _0xb4bdc9=_0x1b931b;_0x16d2ce[_0xb4bdc9(0x197)]===_0x7fa7c4&&this['_disposeEntity'](_0xfdeaa4);});}};Ln=Y([J(0x0,_0x2d0e88),J(0x1,_0x34f379(_0x5e88d7)),J(0x2,_0x34f379(_0x52adf7)),J(0x3,_0x34f379(_0x3bf6ba))],Ln);const Rn={'toast':_0x51ce3e(0x117),'actionButton':_0x51ce3e(0x2b7)},zn={'title':_0x51ce3e(0xc8),'content':_0x51ce3e(0x1b9),'type':_0x51ce3e(0x20a)},Bn={'permission_rejected':{'title':'collaboration-client-ui.permission.title','content':'collaboration-client-ui.permission.content','type':_0x51ce3e(0x20a)},'license_unit_type_rejected':{'title':_0x51ce3e(0x1f6),'content':_0x51ce3e(0x1ec),'type':_0x51ce3e(0x20a)},'remote_revert':{'title':_0x51ce3e(0xd0),'content':_0x51ce3e(0x239),'type':_0x51ce3e(0x83)}};let Vn=class extends _0x487fff{constructor(_0xfda625,_0x66c9e2,_0x366689,_0x53fe30,_0x1d695b,_0x1ce1ff,_0x492bf0,_0x4a6ba9){const _0x56fb5c=_0x51ce3e;var _0x1be2d1;super(),this[_0x56fb5c(0x295)]=_0xfda625,this[_0x56fb5c(0x1da)]=_0x66c9e2,this[_0x56fb5c(0x76)]=_0x366689,this[_0x56fb5c(0x17d)]=_0x53fe30,this['_notificationService']=_0x1d695b,this['_localeService']=_0x1ce1ff,this['_collaborationController']=_0x492bf0,this[_0x56fb5c(0x207)]=_0x4a6ba9,q(this,_0x56fb5c(0x12c),null),q(this,_0x56fb5c(0x2dc),new Set()),q(this,_0x56fb5c(0x155),new Map()),q(this,_0x56fb5c(0x137),new Map()),this[_0x56fb5c(0x93)](),this['_initEvent'](),this[_0x56fb5c(0x192)](),((_0x1be2d1=this[_0x56fb5c(0x207)][_0x56fb5c(0x186)](_0x56fb5c(0x1e3)))==null?void 0x0:_0x1be2d1[_0x56fb5c(0x17a)])!==!0x1&&this[_0x56fb5c(0x1ed)]();}[_0x51ce3e(0x101)](){const _0x54d1c4=_0x51ce3e;var _0xa183ee;(_0xa183ee=this[_0x54d1c4(0x12c)])==null||_0xa183ee[_0x54d1c4(0x101)](),this[_0x54d1c4(0x12c)]=null;for(let _0xd2e00 of[this[_0x54d1c4(0x155)],this[_0x54d1c4(0x137)]])_0xd2e00[_0x54d1c4(0x1c0)](_0x97e80f=>_0x97e80f[_0x54d1c4(0x101)]()),_0xd2e00[_0x54d1c4(0x2ee)]();super[_0x54d1c4(0x101)]();}[_0x51ce3e(0x192)](){const _0x26280d=_0x51ce3e;let _0x5de51f=_0x2938f7=>{const _0x30d3f7=_0x5409;let _0x2defa0=new _0x399827();_0x2defa0[_0x30d3f7(0xbe)](_0x2dde77(_0x2938f7['changesetResend$']['subscribe']({'next':_0x236e09=>{const _0x46d938=_0x30d3f7;_0x236e09[_0x46d938(0x103)]>=0x4e20&&this[_0x46d938(0x221)](this['_saveTimedOutNotices'],_0x2938f7['unitID'],_0x46d938(0x1f7)),_0x236e09[_0x46d938(0x26c)]==='license_editing_connections_exceeded'&&this[_0x46d938(0x221)](this[_0x46d938(0x137)],_0x2938f7['unitID'],_0x46d938(0x98));},'complete':()=>{const _0x372fb3=_0x30d3f7;this['_removeAwaitingNotices'](_0x2938f7[_0x372fb3(0x2a5)]),_0x2defa0[_0x372fb3(0x101)]();}}))),_0x2defa0[_0x30d3f7(0xbe)](_0x2dde77(_0x2938f7['status$'][_0x30d3f7(0xd5)](_0x4224fe=>{const _0x45ea53=_0x30d3f7;_0x4224fe!==_0x4c0e18[_0x45ea53(0x2e6)]&&_0x4224fe!==_0x4c0e18[_0x45ea53(0x2e1)]&&this[_0x45ea53(0x1e6)](_0x2938f7[_0x45ea53(0x2a5)]);}))),this[_0x30d3f7(0x156)](_0x2defa0);};this[_0x26280d(0x84)]['getCollabEntities']()['forEach'](_0x5de51f),this['disposeWithMe'](_0x2dde77(this[_0x26280d(0x84)]['entityInit$'][_0x26280d(0xd5)](_0x5de51f)));}[_0x51ce3e(0x221)](_0xcb8f1b,_0x2b8fc5,_0x3b7172){const _0x460e62=_0x51ce3e;_0xcb8f1b[_0x460e62(0x213)](_0x2b8fc5)||_0xcb8f1b[_0x460e62(0xde)](_0x2b8fc5,this['_notificationService'][_0x460e62(0x256)]({'title':this[_0x460e62(0x274)]['t'](_0x3b7172),'type':'warning','duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}[_0x51ce3e(0x1e6)](_0x1e889e){const _0x4ca43e=_0x51ce3e;for(let _0x5eb870 of[this[_0x4ca43e(0x155)],this[_0x4ca43e(0x137)]]){var _0x1f9a9c;(_0x1f9a9c=_0x5eb870[_0x4ca43e(0x21a)](_0x1e889e))==null||_0x1f9a9c[_0x4ca43e(0x101)](),_0x5eb870[_0x4ca43e(0x1dc)](_0x1e889e);}}['_setupBeforeClosingHandler'](){const _0x1b99db=_0x51ce3e;this[_0x1b99db(0x156)](this[_0x1b99db(0x295)][_0x1b99db(0x2aa)](()=>{const _0x24fe66=_0x1b99db;if(this[_0x24fe66(0x1da)][_0x24fe66(0x1fe)][_0x24fe66(0x294)])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x51ce3e(0x1ed)](){const _0x2d6400=_0x51ce3e;let _0x86eb49=_0x7bc14b=>{const _0x2a2a2e=_0x5409;this[_0x2a2a2e(0x156)](_0x2dde77(_0x7bc14b[_0x2a2a2e(0xf5)][_0x2a2a2e(0xd5)](_0x543ea=>this[_0x2a2a2e(0x276)](_0x543ea))));};this[_0x2d6400(0x84)][_0x2d6400(0x287)]()[_0x2d6400(0x1c0)](_0x86eb49),this[_0x2d6400(0x156)](_0x2dde77(this[_0x2d6400(0x84)][_0x2d6400(0x1fa)][_0x2d6400(0xd5)](_0x86eb49)));}['_onConflict'](_0x561995){const _0xf2b801=_0x51ce3e;if(!_0x561995[_0xf2b801(0x2ae)])return;let _0x365163=Bn[_0x561995[_0xf2b801(0x26c)]]??zn;this['_replaceConflictNotification']({'title':this[_0xf2b801(0x274)]['t'](_0x365163[_0xf2b801(0xa8)]),'content':this['_localeService']['t'](_0x365163[_0xf2b801(0x9a)]),'type':_0x365163[_0xf2b801(0x2bb)],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this[_0xf2b801(0x274)]['t'](_0xf2b801(0x141)),'onClick':_0x3e790c=>{const _0x12e442=_0xf2b801;_0x3e790c[_0x12e442(0x194)](),this[_0x12e442(0x2f7)]();}}});}['_reloadPage'](){const _0x2efd5f=_0x51ce3e;window[_0x2efd5f(0x2a8)][_0x2efd5f(0x242)]();}[_0x51ce3e(0x19f)](){const _0x34c94a=_0x51ce3e;this[_0x34c94a(0x156)](this[_0x34c94a(0x76)]['event$'][_0x34c94a(0xd5)](_0x3260f4=>{const _0x580879=_0x34c94a;_0x3260f4['id']===_0x4575d2[_0x580879(0x272)]&&this[_0x580879(0x17d)][_0x580879(0x256)]({'type':_0x4c541a[_0x580879(0x233)],'content':this[_0x580879(0x274)]['t'](_0x580879(0x18d))}),_0x3260f4['id']===_0x4575d2[_0x580879(0x108)]&&this[_0x580879(0x17d)]['show']({'type':_0x4c541a[_0x580879(0x233)],'content':this['_localeService']['t'](_0x580879(0x185))}),_0x3260f4['id']===_0x4575d2[_0x580879(0x190)]&&this[_0x580879(0x28d)](),_0x3260f4['id']===_0x4575d2[_0x580879(0x280)]&&_0x3260f4[_0x580879(0x2a5)]&&this[_0x580879(0x161)](_0x3260f4[_0x580879(0x2a5)],_0x3260f4[_0x580879(0x17e)]??''),_0x3260f4['id']===_0x4575d2[_0x580879(0x15b)]&&this[_0x580879(0x17d)][_0x580879(0x256)]({'type':_0x4c541a[_0x580879(0x233)],'content':this[_0x580879(0x274)]['t'](_0x3260f4[_0x580879(0x266)]||'')}),_0x3260f4['id']===_0x4575d2[_0x580879(0x1b3)]&&this[_0x580879(0x17d)]['show']({'type':_0x4c541a[_0x580879(0x233)],'content':this[_0x580879(0x274)]['t'](_0x580879(0x201))}),_0x3260f4['id']===_0x4575d2[_0x580879(0x13c)]&&this[_0x580879(0x17d)][_0x580879(0x256)]({'type':_0x4c541a['Error'],'content':this[_0x580879(0x274)]['t'](_0x580879(0x78))}),_0x3260f4['id']===_0x4575d2[_0x580879(0x2c6)]&&this[_0x580879(0x17d)]['show']({'type':_0x4c541a[_0x580879(0x20c)],'content':this[_0x580879(0x274)]['t'](_0x580879(0x25d))});}));}[_0x51ce3e(0x28d)](){const _0x16cdf9=_0x51ce3e;this['_replaceConflictNotification']({'title':this[_0x16cdf9(0x274)]['t'](_0x16cdf9(0xc8)),'content':this['_localeService']['t'](_0x16cdf9(0x22f)),'type':_0x16cdf9(0x7f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x3f3725,_0x2c78e6){const _0x1d323b=_0x51ce3e;this['_replaceConflictNotification']({'title':this[_0x1d323b(0x274)]['t'](_0x1d323b(0xc8)),'content':this['_localeService']['t']('collaboration-client-ui.conflict.clearFailed'),'type':_0x1d323b(0x20a),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this[_0x1d323b(0x274)]['t'](_0x1d323b(0x1fb)),'onClick':_0x56a0a6=>{const _0x3b6ddc=_0x1d323b;_0x56a0a6[_0x3b6ddc(0x194)](),this[_0x3b6ddc(0x277)](_0x3f3725,_0x2c78e6);}}});}['_retryConflictCacheClear'](_0x4a8846,_0x208ae8){const _0x48ae83=_0x51ce3e;let _0x7bfd1f=_0x4a8846+':'+(_0x208ae8??'');this[_0x48ae83(0x2dc)][_0x48ae83(0x213)](_0x7bfd1f)||(this[_0x48ae83(0x2dc)]['add'](_0x7bfd1f),this[_0x48ae83(0x28d)](),this[_0x48ae83(0x1da)][_0x48ae83(0x296)](_0x4a8846,_0x208ae8)[_0x48ae83(0x1a0)](()=>this[_0x48ae83(0x2f7)]())[_0x48ae83(0x21c)](()=>this[_0x48ae83(0x161)](_0x4a8846,_0x208ae8))[_0x48ae83(0x2db)](()=>this[_0x48ae83(0x2dc)][_0x48ae83(0x1dc)](_0x7bfd1f)));}['_replaceConflictNotification'](_0x32d3bd){const _0x28bc9b=_0x51ce3e;var _0x353af4;(_0x353af4=this[_0x28bc9b(0x12c)])==null||_0x353af4[_0x28bc9b(0x101)](),this[_0x28bc9b(0x12c)]=this['_notificationService'][_0x28bc9b(0x256)](_0x32d3bd);}};Vn=Y([J(0x0,_0x556454),J(0x1,_0x5561a0),J(0x2,_0x34f379(_0x1baddd)),J(0x3,_0x518151),J(0x4,_0x481bc3),J(0x5,_0x34f379(_0x34d8fb)),J(0x6,_0x34f379(_0x425d0b)),J(0x7,_0x358956)],Vn);let Hn=class{constructor(_0x6746f2,_0x19f9b3){const _0x188fd8=_0x51ce3e;this[_0x188fd8(0xca)]=_0x6746f2,this[_0x188fd8(0x126)]=_0x19f9b3;}[_0x51ce3e(0x1ad)](_0x1768d8){const _0x3dbfa0=_0x51ce3e;this[_0x3dbfa0(0x88)](_0x1768d8),this[_0x3dbfa0(0xfb)](_0x1768d8);}[_0x51ce3e(0x1d3)](_0xbb4b88){const _0x1f0cb8=_0x51ce3e;let {unitID:_0x1317e7}=_0xbb4b88,{redoCache:_0x3778d9}=this[_0x1f0cb8(0x126)][_0x1f0cb8(0x1b2)](_0x1317e7)[_0x1f0cb8(0x2a1)](_0x368e73)[_0x1f0cb8(0x160)]();if(_0x3778d9[_0x1f0cb8(0x26f)]===0x0)return _0xbb4b88;let _0x4875aa=_0x55bd20[_0x1f0cb8(0x240)](_0xbb4b88['mutations'][0x0]);for(let _0x2205b3=0x0;_0x2205b3<_0x3778d9[_0x1f0cb8(0x26f)];_0x2205b3++){let _0xcc1174={'id':_0x1f0cb8(0x15a),'params':{..._0x3778d9[_0x2205b3]}},_0x259aaf=this[_0x1f0cb8(0xca)][_0x1f0cb8(0xd6)](_0x4875aa,_0xcc1174,!0x1);if(_0x29e3e7(_0x259aaf))throw _0x259aaf[_0x1f0cb8(0x20a)];_0x4875aa=_0x259aaf[_0x1f0cb8(0x27b)];}return{..._0x55bd20['deepClone'](_0xbb4b88),'mutations':[_0x4875aa]};}[_0x51ce3e(0x88)](_0x99c0e7){const _0x73aa29=_0x51ce3e;let {unitID:_0x3476d1}=_0x99c0e7,_0x25bd73=this[_0x73aa29(0x126)]['getRenderUnitById'](_0x3476d1)[_0x73aa29(0x2a1)](_0x368e73),{undoCache:_0x5f5216,redoCache:_0x188961}=_0x25bd73[_0x73aa29(0x160)]();if(_0x5f5216[_0x73aa29(0x26f)]===0x0||_0x188961['length']===0x0)return;let _0x5b32a8=[],_0x1060f1=[],_0xdf9b15=_0x55bd20['deepClone'](_0x99c0e7[_0x73aa29(0x123)][0x0]),_0x35ca7b=_0x55bd20['deepClone'](_0x99c0e7[_0x73aa29(0x123)][0x0]);for(let _0x437836=_0x5f5216[_0x73aa29(0x26f)]-0x1;_0x437836>=0x0;_0x437836--){let _0x127f7b={'id':_0x73aa29(0x15a),'params':{..._0x5f5216[_0x437836]}},_0x23c0e6={'id':_0x73aa29(0x15a),'params':{..._0x188961[_0x437836]}},_0x1d70c5=this[_0x73aa29(0xca)][_0x73aa29(0xd6)](_0xdf9b15,_0x127f7b,!0x1),_0x5e24ed=this[_0x73aa29(0xca)][_0x73aa29(0xd6)](_0x35ca7b,_0x23c0e6,!0x1);if(_0x29e3e7(_0x1d70c5))throw _0x1d70c5['error'];if(_0x29e3e7(_0x5e24ed))throw _0x5e24ed[_0x73aa29(0x20a)];_0x5b32a8[_0x73aa29(0x211)](_0x1d70c5[_0x73aa29(0x202)][_0x73aa29(0x184)]),_0x1060f1[_0x73aa29(0x211)](_0x5e24ed[_0x73aa29(0x202)]['params']),_0xdf9b15=_0x1d70c5[_0x73aa29(0x27b)],_0x35ca7b=_0x5e24ed['m1Prime'];}_0x25bd73[_0x73aa29(0x12e)]({'undoCache':_0x5b32a8,'redoCache':_0x1060f1});}[_0x51ce3e(0xfb)](_0x1f7178){const _0x1db3b9=_0x51ce3e;let {unitID:_0x260385}=_0x1f7178,_0x5afd78=this[_0x1db3b9(0x126)]['getRenderUnitById'](_0x260385)[_0x1db3b9(0x2a1)](_0x368e73),_0x243b14=_0x5afd78['getActiveRange']();if(_0x243b14==null)return;let _0x278722=[{'id':_0x1db3b9(0x15a),'params':{'unitId':_0x1f7178['unitID'],'actions':null,'textRanges':[_0x243b14]}}],_0x192c10=this[_0x1db3b9(0xca)][_0x1db3b9(0x1d4)](_0x1f7178,_0x278722);if(!_0x4bdf18(_0x192c10))throw _0x192c10[_0x1db3b9(0x20a)];let _0x4038b7=_0x192c10['m2Prime'][0x0]['params']['textRanges'];Array[_0x1db3b9(0x2ba)](_0x4038b7)&&_0x4038b7[_0x1db3b9(0x26f)]&&_0x5afd78[_0x1db3b9(0x1a7)](_0x4038b7[0x0]);}};Hn=Y([J(0x0,_0x14ff3a),J(0x1,_0x465bcd)],Hn);let Un=class{constructor(_0x5d4189,_0x313b35,_0x281d7d){const _0x1d8333=_0x51ce3e;this[_0x1d8333(0x2b2)]=_0x5d4189,this[_0x1d8333(0xca)]=_0x313b35,this['_docStateChangeManagerService']=_0x281d7d;}[_0x51ce3e(0x14f)](_0x1f0700){const _0x223c72=_0x51ce3e;this[_0x223c72(0x25f)](_0x1f0700);}[_0x51ce3e(0x1d3)](_0x177c58){const _0x205f71=_0x51ce3e;let {unitID:_0x498e79}=_0x177c58,{collaboration:_0x184a2c}=this['_docStateChangeManagerService'][_0x205f71(0x208)](_0x498e79);if(_0x184a2c[_0x205f71(0x26f)]===0x0)return _0x177c58;let _0x324d54=_0x55bd20['deepClone'](_0x177c58[_0x205f71(0x123)][0x0]);for(let _0x27da0d=0x0;_0x27da0d<_0x184a2c['length'];_0x27da0d++){let _0x18ce10={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x184a2c[_0x27da0d]['unitId'],..._0x184a2c[_0x27da0d]['redoState']}},_0x443557=this[_0x205f71(0xca)]['transformMutation'](_0x324d54,_0x18ce10,!0x1);if(_0x29e3e7(_0x443557))throw _0x443557[_0x205f71(0x20a)];_0x324d54=_0x443557[_0x205f71(0x27b)];}return{..._0x55bd20[_0x205f71(0x240)](_0x177c58),'mutations':[_0x324d54]};}[_0x51ce3e(0x25f)](_0x57d57a){const _0x4ce26d=_0x51ce3e;let {unitID:_0x3cb745}=_0x57d57a,{history:_0x16198d,collaboration:_0x4ebe18}=this[_0x4ce26d(0x179)][_0x4ce26d(0x208)](_0x3cb745);if(_0x16198d[_0x4ce26d(0x26f)]===0x0&&_0x4ebe18['length']===0x0)return;let _0x2bb637=[],_0x5d9fe9=[],_0x21ad3a=_0x55bd20[_0x4ce26d(0x240)](_0x57d57a[_0x4ce26d(0x123)][0x0]),_0x135e7f=_0x55bd20['deepClone'](_0x57d57a[_0x4ce26d(0x123)][0x0]);for(let _0x70c101=_0x16198d['length']-0x1;_0x70c101>=0x0;_0x70c101--){let _0x1a7d5a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x16198d[_0x70c101][_0x4ce26d(0xe5)],..._0x16198d[_0x70c101]['undoState']}},_0x155dcd={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x16198d[_0x70c101][_0x4ce26d(0xe5)],..._0x16198d[_0x70c101][_0x4ce26d(0x16a)]}},_0x318666=this[_0x4ce26d(0xca)][_0x4ce26d(0xd6)](_0x21ad3a,_0x1a7d5a,!0x1),_0x23ac04=this[_0x4ce26d(0xca)][_0x4ce26d(0xd6)](_0x135e7f,_0x155dcd,!0x1);if(_0x29e3e7(_0x318666))throw _0x318666[_0x4ce26d(0x20a)];if(_0x29e3e7(_0x23ac04))throw _0x23ac04['error'];_0x2bb637[_0x4ce26d(0x211)]({..._0x16198d[_0x70c101],'undoState':_0x318666[_0x4ce26d(0x202)][_0x4ce26d(0x184)],'redoState':_0x23ac04[_0x4ce26d(0x202)]['params']}),_0x21ad3a=_0x318666[_0x4ce26d(0x27b)],_0x135e7f=_0x23ac04[_0x4ce26d(0x27b)];}_0x21ad3a=_0x55bd20[_0x4ce26d(0x240)](_0x57d57a['mutations'][0x0]),_0x135e7f=_0x55bd20[_0x4ce26d(0x240)](_0x57d57a[_0x4ce26d(0x123)][0x0]);for(let _0x201284=_0x4ebe18[_0x4ce26d(0x26f)]-0x1;_0x201284>=0x0;_0x201284--){let _0x34561f={'id':_0x4ce26d(0x15a),'params':{'unitId':_0x4ebe18[_0x201284][_0x4ce26d(0xe5)],..._0x4ebe18[_0x201284][_0x4ce26d(0x122)]}},_0x24b6dc={'id':_0x4ce26d(0x15a),'params':{'unitId':_0x4ebe18[_0x201284][_0x4ce26d(0xe5)],..._0x4ebe18[_0x201284][_0x4ce26d(0x16a)]}},_0x5ecceb=this[_0x4ce26d(0xca)][_0x4ce26d(0xd6)](_0x21ad3a,_0x34561f,!0x1),_0x5ea54a=this[_0x4ce26d(0xca)]['transformMutation'](_0x135e7f,_0x24b6dc,!0x1);if(_0x29e3e7(_0x5ecceb))throw _0x5ecceb[_0x4ce26d(0x20a)];if(_0x29e3e7(_0x5ea54a))throw _0x5ea54a[_0x4ce26d(0x20a)];_0x5d9fe9[_0x4ce26d(0x211)]({..._0x4ebe18[_0x201284],'undoState':_0x5ecceb[_0x4ce26d(0x202)][_0x4ce26d(0x184)],'redoState':_0x5ea54a[_0x4ce26d(0x202)][_0x4ce26d(0x184)]}),_0x21ad3a=_0x5ecceb[_0x4ce26d(0x27b)],_0x135e7f=_0x5ea54a['m1Prime'];}this[_0x4ce26d(0x179)][_0x4ce26d(0x1e4)](_0x3cb745,{'history':_0x2bb637,'collaboration':_0x5d9fe9});}};Un=Y([J(0x0,_0x34f379(_0x5e88d7)),J(0x1,_0x14ff3a),J(0x2,_0x34f379(_0x4a7f74))],Un);let Q=class{constructor(_0x24e83a,_0x3b5d8b){const _0x2c2524=_0x51ce3e;this[_0x2c2524(0x2af)]=_0x24e83a,this[_0x2c2524(0xca)]=_0x3b5d8b;}[_0x51ce3e(0x193)](_0x1508e9){const _0x29e82c=_0x51ce3e;var _0x47ec72;let _0x1d4e7d=this[_0x29e82c(0x2af)][_0x29e82c(0xe9)]()??[],_0x2e4e0c=this['_docSelectionManagerService'][_0x29e82c(0x16c)]();if(_0x1d4e7d['length']===0x0||_0x2e4e0c==null)return null;let _0x4bd83b=_0x1508e9[_0x29e82c(0x2a5)],_0x237e77=[{'id':_0x29e82c(0x15a),'params':{'unitId':_0x4bd83b,'actions':null,'textRanges':_0x1d4e7d}}],_0x3c8975=this[_0x29e82c(0xca)][_0x29e82c(0x1d4)](_0x1508e9,_0x237e77);if(!_0x4bdf18(_0x3c8975))throw _0x3c8975[_0x29e82c(0x20a)];let _0x289ad8=(_0x47ec72=_0x3c8975[_0x29e82c(0x202)][0x0])==null?void 0x0:_0x47ec72[_0x29e82c(0x184)],_0x4d47a4=_0x289ad8&&typeof _0x289ad8==_0x29e82c(0xba)&&_0x29e82c(0x2d0)in _0x289ad8?_0x289ad8['textRanges']:null;if(!Kn(_0x4d47a4))return null;let _0x33fac8=Wn(_0x1508e9[_0x29e82c(0x123)][_0x29e82c(0x24d)](_0x1b5322=>qn(_0x1b5322[_0x29e82c(0x184)]))?_0x4d47a4['filter'](_0x57b208=>!(_0x29e82c(0x164)in _0x57b208)):_0x4d47a4,{..._0x2e4e0c,'options':_0x2e4e0c[_0x29e82c(0x2fb)]?{..._0x2e4e0c['options'],'wholeDocument':!0x1}:void 0x0}),_0x5c1b79={'unitId':_0x4bd83b,'subUnitId':_0x4bd83b};this['_docSelectionManagerService'][_0x29e82c(0xd3)](_0x33fac8,_0x5c1b79);let _0x22edf0=!0x0;return{'commit':()=>{_0x22edf0=!0x1;},'rollback':()=>{const _0x1ef489=_0x29e82c;_0x22edf0&&(_0x22edf0=!0x1,this[_0x1ef489(0x2af)][_0x1ef489(0xd3)](_0x2e4e0c,_0x5c1b79));}};}};Q=Y([J(0x0,_0x34f379(_0x383684)),J(0x1,_0x14ff3a)],Q);function Wn(_0x16a403,_0x8bf27c){const _0x17e71c=_0x51ce3e;let _0x35eccc=[],_0x4d8481=[];for(let _0x443a14 of _0x16a403)Gn(_0x443a14)?_0x4d8481[_0x17e71c(0xbf)](_0x443a14):_0x35eccc['push'](_0x443a14);return{..._0x8bf27c,'textRanges':_0x35eccc,'rectRanges':_0x4d8481};}function Gn(_0x4bef02){const _0x2145a5=_0x51ce3e;return _0x2145a5(0x164)in _0x4bef02;}function Kn(_0x5c7170){const _0x56ff62=_0x51ce3e;return Array[_0x56ff62(0x2ba)](_0x5c7170)&&_0x5c7170[_0x56ff62(0x2a9)](_0x381687=>typeof _0x381687=='object'&&!!_0x381687&&_0x56ff62(0xec)in _0x381687&&_0x56ff62(0xcb)in _0x381687);}function qn(_0x5f4259){const _0x1678d7=_0x51ce3e;return _0x5f4259===_0x1678d7(0x246)?!0x0:Array[_0x1678d7(0x2ba)](_0x5f4259)?_0x5f4259[_0x1678d7(0x24d)](_0x21104f=>qn(_0x21104f)):!_0x5f4259||typeof _0x5f4259!=_0x1678d7(0xba)?!0x1:Object[_0x1678d7(0x225)](_0x5f4259)[_0x1678d7(0x24d)](_0x4b969a=>qn(_0x4b969a));}let Jn=class extends _0x487fff{constructor(_0x320e71,_0x13e740,_0x6bbb04,_0x6a865e,_0x1faab5,_0x353dea,_0x6c32f0){const _0x1669d6=_0x51ce3e;super(),this['_collaborationController']=_0x320e71,this['_docTransformIMECacheService']=_0x13e740,this[_0x1669d6(0xc0)]=_0x6bbb04,this[_0x1669d6(0xce)]=_0x6a865e,this[_0x1669d6(0xcf)]=_0x1faab5,this[_0x1669d6(0x17d)]=_0x353dea,this['_localeService']=_0x6c32f0,q(this,'_status$',new _0x207222(_0x4c0e18[_0x1669d6(0x25b)])),this[_0x1669d6(0x215)]();}[_0x51ce3e(0x215)](){const _0x229e03=_0x51ce3e;this[_0x229e03(0x156)](this['_collaborationController'][_0x229e03(0x1fa)][_0x229e03(0xd5)](_0x23e4c2=>{const _0x5d1b2b=_0x229e03;_0x23e4c2 instanceof _0x700325&&_0x23e4c2[_0x5d1b2b(0x1cc)]({'onTransformIME':_0x2cbe35=>this[_0x5d1b2b(0x1df)]['transformIMECache'](_0x2cbe35),'onTransformState':_0x106861=>this[_0x5d1b2b(0xc0)]['transformStateCache'](_0x106861),'onPrepareTransformSelections':_0xe66cc8=>this['_docTransformSelectionsService'][_0x5d1b2b(0x193)](_0xe66cc8),'onSyncEditingCollabCursor':_0x57fa01=>this[_0x5d1b2b(0xcf)][_0x5d1b2b(0x19e)](_0x57fa01),'onTransformRemoteChangesetByIMECache':_0x5d0cf0=>this['_docTransformIMECacheService'][_0x5d1b2b(0x1d3)](_0x5d0cf0),'onTransformRemoteChangesetByStateCache':_0x3f3e14=>this[_0x5d1b2b(0xc0)][_0x5d1b2b(0x1d3)](_0x3f3e14)});}));}};Jn=Y([J(0x0,_0x34f379(_0x425d0b)),J(0x1,_0x34f379(Hn)),J(0x2,_0x34f379(Un)),J(0x3,_0x34f379(Q)),J(0x4,_0x34f379(_n)),J(0x5,_0x518151),J(0x6,_0x34f379(_0x34d8fb))],Jn);let Yn=class extends _0x487fff{constructor(_0x3d3752,_0x567e82,_0x397ab5,_0x33a5b9){const _0x176fd9=_0x51ce3e;super(),this[_0x176fd9(0x2b2)]=_0x3d3752,this[_0x176fd9(0x28c)]=_0x567e82,this[_0x176fd9(0x1ae)]=_0x397ab5,this[_0x176fd9(0x262)]=_0x33a5b9,q(this,'_memberID',void 0x0),this[_0x176fd9(0x23a)]();}[_0x51ce3e(0x23a)](){const _0x450984=_0x51ce3e;this['_initWindowErrorListener'](),this[_0x450984(0xc6)](),this[_0x450984(0x1d1)](),this[_0x450984(0x1b8)]();}[_0x51ce3e(0x1b8)](){const _0x307017=_0x51ce3e;this[_0x307017(0x156)](this[_0x307017(0x262)][_0x307017(0x12d)][_0x307017(0xd5)](_0x42c266=>{const _0x15616e=_0x307017;this[_0x15616e(0xb1)]=_0x42c266==null?void 0x0:_0x42c266[_0x15616e(0x2bd)];}));}['_initWindowErrorListener'](){const _0x27fa29=_0x51ce3e;let _0x662c3e=_0x22d98f=>{const _0xb63a13=_0x5409;var _0x2a22e4;this[_0xb63a13(0x228)](_0xb63a13(0x20a),'[Window\x20Error]:\x20'+_0x22d98f[_0xb63a13(0x1e0)]+'\x20at\x20'+_0x22d98f['filename']+':'+_0x22d98f['lineno']+':'+_0x22d98f['colno']+'\x0a'+(((_0x2a22e4=_0x22d98f[_0xb63a13(0x20a)])==null?void 0x0:_0x2a22e4['stack'])||''));};window[_0x27fa29(0x203)](_0x27fa29(0x20a),_0x662c3e),this[_0x27fa29(0x156)](()=>{const _0x542255=_0x27fa29;window[_0x542255(0x241)](_0x542255(0x20a),_0x662c3e);});}[_0x51ce3e(0xc6)](){const _0x2b4b5e=_0x51ce3e;let _0x26de21=_0x4415a8=>{const _0x43f21f=_0x5409;this[_0x43f21f(0x228)](_0x43f21f(0x20a),_0x43f21f(0xbc)+_0x4415a8[_0x43f21f(0x26c)]);};window['addEventListener'](_0x2b4b5e(0x21e),_0x26de21),this[_0x2b4b5e(0x156)](()=>{const _0x408caa=_0x2b4b5e;window['removeEventListener'](_0x408caa(0x21e),_0x26de21);});}[_0x51ce3e(0x1d1)](){const _0x28fbc4=_0x51ce3e;let _0x35d407=this[_0x28fbc4(0x1ae)][_0x28fbc4(0x20a)][_0x28fbc4(0x22d)](this[_0x28fbc4(0x1ae)]);this[_0x28fbc4(0x1ae)][_0x28fbc4(0x20a)]=(..._0x266c48)=>{const _0x40f9c6=_0x28fbc4;let _0x18550a=_0x266c48['map'](_0x24c012=>_0x24c012 instanceof Error?_0x24c012[_0x40f9c6(0x1e0)]+'\x0a'+_0x24c012[_0x40f9c6(0x1bf)]:String(_0x24c012))[_0x40f9c6(0x1e2)]('\x20');this[_0x40f9c6(0x228)]('error',_0x40f9c6(0x178)+_0x18550a),_0x35d407(..._0x266c48);},this['disposeWithMe'](()=>{const _0x56d826=_0x28fbc4;this[_0x56d826(0x1ae)]['error']=_0x35d407;});}[_0x51ce3e(0x228)](_0x534080,_0x324077){const _0x4487b8=_0x51ce3e;try{let _0x279d15={'userId':this[_0x4487b8(0xb1)],'logLabel':_0x534080,'content':_0x324077};this[_0x4487b8(0x28c)]['post'](_0x4487b8(0x1ba),{'body':_0x279d15})[_0x4487b8(0x21c)](()=>{});}catch{}}};Yn=Y([J(0x0,_0x34f379(_0x5e88d7)),J(0x1,_0x34f379(_0x14792e)),J(0x2,_0x49c433),J(0x3,_0x34f379(_0x52adf7))],Yn);function Xn({state$:_0x3d5af8}){const _0x2530ce=_0x51ce3e;let _0x34108d=_0x1b4a12(_0x3d5af8,null,!0x0);return _0x34108d?_0x204b00(_0x2530ce(0x165),{'data-u-comp':'snapshot-loading-timeout','role':_0x2530ce(0xb8),'className':_0x2530ce(0x14b),'children':[_0x51ebc4(_0x1a1a37,{'className':_0x2530ce(0x157)}),_0x51ebc4('span',{'children':_0x34108d[_0x2530ce(0x9a)]}),_0x51ebc4(_0x2fdc51,{'size':'small','variant':_0x2530ce(0x2ca),'onClick':()=>window[_0x2530ce(0x2a8)]['reload'](),'children':_0x34108d['refreshLabel']})]}):null;}const Zn=_0x51ce3e(0x115);let Qn=class extends _0x487fff{constructor(_0x58623e,_0x39221d,_0x256921,_0x296b16,_0x574510){const _0x3294a8=_0x51ce3e;super(),this[_0x3294a8(0x1f5)]=_0x58623e,this[_0x3294a8(0x17d)]=_0x39221d,this[_0x3294a8(0x274)]=_0x256921,this[_0x3294a8(0x2b2)]=_0x296b16,q(this,_0x3294a8(0x1c4),new _0x207222(null)),q(this,_0x3294a8(0x2f6),new Set()),q(this,_0x3294a8(0x79),new Map()),q(this,_0x3294a8(0x1be),this['_timeoutState$'][_0x3294a8(0x14a)]());let _0x18efca=()=>_0x732822(Xn,{'state$':this[_0x3294a8(0x1be)]});this[_0x3294a8(0x156)](_0x574510[_0x3294a8(0xae)](_0x452cfb[_0x3294a8(0x2c4)],()=>_0x28ef2e(_0x18efca,this['_injector']))),this[_0x3294a8(0x156)](this[_0x3294a8(0x1f5)][_0x3294a8(0x281)][_0x3294a8(0xd5)](_0x213175=>{const _0x5c71c7=_0x3294a8;_0x213175[_0x5c71c7(0x1c0)](_0x890a66=>this[_0x5c71c7(0xf9)](_0x890a66));}));}['dispose'](){const _0x4fff71=_0x51ce3e;this[_0x4fff71(0x2f6)][_0x4fff71(0x1c0)](_0xd7580=>this['_messageService']['remove'](_0xd7580)),this['_messageIds'][_0x4fff71(0x2ee)](),this[_0x4fff71(0x79)]['forEach'](({timeoutId:_0x2607db})=>clearTimeout(_0x2607db)),this[_0x4fff71(0x79)]['clear'](),this[_0x4fff71(0x1c4)][_0x4fff71(0x217)](),super[_0x4fff71(0x101)]();}[_0x51ce3e(0xf9)](_0x3ac0de){const _0x35fcbf=_0x51ce3e;let _0x14cda6=''+Zn+_0x3ac0de[_0x35fcbf(0xe5)];_0x3ac0de[_0x35fcbf(0x1d9)]===_0x931e57[_0x35fcbf(0x170)]?(this[_0x35fcbf(0x299)](_0x3ac0de['unitId']),this[_0x35fcbf(0xea)](_0x3ac0de[_0x35fcbf(0xe5)]),this[_0x35fcbf(0x17d)]['remove'](_0x14cda6),this[_0x35fcbf(0x2f6)][_0x35fcbf(0x1dc)](_0x14cda6)):_0x3ac0de[_0x35fcbf(0x1d9)]===_0x931e57[_0x35fcbf(0x206)]?(this[_0x35fcbf(0x299)](_0x3ac0de['unitId']),this['_clearTimeoutState'](_0x3ac0de[_0x35fcbf(0xe5)]),this[_0x35fcbf(0x17d)][_0x35fcbf(0x256)]({'id':_0x14cda6,'type':_0x4c541a[_0x35fcbf(0x20c)],'content':this['_localeService']['t'](_0x35fcbf(0x78))}),this['_messageIds'][_0x35fcbf(0x1dc)](_0x14cda6)):_0x3ac0de['stage']!==_0x931e57[_0x35fcbf(0xe0)]||_0x3ac0de[_0x35fcbf(0x1db)]<=0xa?(this['_clearBlockProgressWatch'](_0x3ac0de[_0x35fcbf(0xe5)]),this[_0x35fcbf(0x17d)]['remove'](_0x14cda6),this[_0x35fcbf(0x2f6)][_0x35fcbf(0x1dc)](_0x14cda6)):this[_0x35fcbf(0x2da)](_0x3ac0de)||(this[_0x35fcbf(0x17d)]['show']({'id':_0x14cda6,'type':_0x4c541a[_0x35fcbf(0x1eb)],'duration':0x1/0x0,'content':this[_0x35fcbf(0x274)]['t'](_0x35fcbf(0x1ee))+'\x20'+_0x3ac0de[_0x35fcbf(0x279)]+'/'+_0x3ac0de[_0x35fcbf(0x1db)]}),this[_0x35fcbf(0x2f6)]['add'](_0x14cda6));}[_0x51ce3e(0x2da)](_0x5070b8){const _0x3217cd=_0x51ce3e;let _0x3a503b=this[_0x3217cd(0x79)][_0x3217cd(0x21a)](_0x5070b8[_0x3217cd(0xe5)]);if((_0x3a503b==null?void 0x0:_0x3a503b[_0x3217cd(0x279)])===_0x5070b8[_0x3217cd(0x279)])return _0x3a503b[_0x3217cd(0xb3)];this[_0x3217cd(0x299)](_0x5070b8[_0x3217cd(0xe5)]);let _0x31b535=setTimeout(()=>{const _0x26d10f=_0x3217cd;let _0x74092e=this[_0x26d10f(0x79)]['get'](_0x5070b8['unitId']);if(!_0x74092e||_0x74092e[_0x26d10f(0x24f)]!==_0x31b535)return;_0x74092e[_0x26d10f(0xb3)]=!0x0;let _0x1f78aa=''+Zn+_0x5070b8[_0x26d10f(0xe5)];this['_messageService'][_0x26d10f(0x24b)](_0x1f78aa),this[_0x26d10f(0x2f6)]['delete'](_0x1f78aa),this[_0x26d10f(0x1c4)]['next']({'unitId':_0x5070b8['unitId'],'content':this[_0x26d10f(0x274)]['t'](_0x26d10f(0x195),String(_0x5070b8[_0x26d10f(0x279)]),String(_0x5070b8[_0x26d10f(0x1db)])),'refreshLabel':this[_0x26d10f(0x274)]['t'](_0x26d10f(0x141))});},0xea60);return this[_0x3217cd(0x79)]['set'](_0x5070b8[_0x3217cd(0xe5)],{'loadedBlocks':_0x5070b8['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x31b535}),!0x1;}[_0x51ce3e(0x299)](_0x5f09da){const _0x703d1c=_0x51ce3e;let _0x134380=this[_0x703d1c(0x79)][_0x703d1c(0x21a)](_0x5f09da);_0x134380&&(clearTimeout(_0x134380['timeoutId']),this[_0x703d1c(0x79)][_0x703d1c(0x1dc)](_0x5f09da),this[_0x703d1c(0xea)](_0x5f09da));}[_0x51ce3e(0xea)](_0x46b0bd){const _0x325ae7=_0x51ce3e;var _0x3054b8;((_0x3054b8=this[_0x325ae7(0x1c4)][_0x325ae7(0x2c1)])==null?void 0x0:_0x3054b8[_0x325ae7(0xe5)])===_0x46b0bd&&this['_timeoutState$']['next'](null);}};Qn=Y([J(0x0,_0x34f379(_0x2088fb)),J(0x1,_0x518151),J(0x2,_0x34f379(_0x34d8fb)),J(0x3,_0x34f379(_0x5e88d7)),J(0x4,_0x5099ce)],Qn);let $n=class extends _0x487fff{constructor(_0x10beee,_0x2384d4,_0x134e3b,_0x4233d8,_0x462f01){const _0x292911=_0x51ce3e;var _0x12b717;super(),this['_configService']=_0x10beee,this[_0x292911(0x7b)]=_0x2384d4,this[_0x292911(0xfe)]=_0x134e3b,this[_0x292911(0x1ae)]=_0x4233d8,this[_0x292911(0xe8)]=_0x462f01,q(this,_0x292911(0x7d),new Map()),q(this,'_saveTaskMap',new Map()),q(this,'_activeSaveTaskMap',new Map()),q(this,_0x292911(0x10c),!0x1),this[_0x292911(0x10c)]=!((_0x12b717=this[_0x292911(0x207)][_0x292911(0x186)](_0x3b647d))!=null&&_0x12b717['enableOfflineEditing']);}[_0x51ce3e(0x1c7)](){const _0xe37eb9=_0x51ce3e;this[_0xe37eb9(0x10c)]=!0x0;}[_0x51ce3e(0x2e7)](){const _0x271ea1=_0x51ce3e;this[_0x271ea1(0x10c)]=!0x1;}get['saveTaskMap'](){const _0x23dbb9=_0x51ce3e;let _0x4a1b21=new Map(this[_0x23dbb9(0x25e)]);return this[_0x23dbb9(0x127)][_0x23dbb9(0x1c0)]((_0x137f37,_0x549f11)=>{const _0x22eabb=_0x23dbb9;_0x4a1b21['has'](_0x549f11)||_0x4a1b21[_0x22eabb(0xde)](_0x549f11,0x0);}),_0x4a1b21;}['dispose'](){const _0x445667=_0x51ce3e;this[_0x445667(0x172)]||(super[_0x445667(0x101)](),this[_0x445667(0x10c)]=!0x0,this['exhaustSavingTask']()[_0x445667(0x21c)](_0x1ccae3=>this['_logService']['error'](_0x1ccae3)));}async['loadOfflineData'](_0x1aaed3,_0x2588cc){const _0x13b37f=_0x51ce3e;if(this['_disabled'])return null;let _0xc7cd9a=this[_0x13b37f(0x2d6)](_0x2588cc),_0x3d8c5a=await this[_0x13b37f(0x7b)][_0x13b37f(0x2f3)](_0x1776e1(_0x1aaed3,_0xc7cd9a));return(_0x3d8c5a==null?void 0x0:_0x3d8c5a[_0x13b37f(0x2a5)])===_0x1aaed3&&this['_normalizeUserId'](_0x3d8c5a[_0x13b37f(0x17e)])===_0xc7cd9a?_0x3d8c5a:null;}async[_0x51ce3e(0x15f)](_0x1c678e,_0x4da102,_0x3ef152){const _0x378e7f=_0x51ce3e;let _0x59f4ef=this[_0x378e7f(0x2d6)](_0x3ef152),_0x24b574=_0x1776e1(_0x1c678e,_0x59f4ef),_0x53fd62=this['_localStorageService'][_0x378e7f(0x2e9)](_0x24b574,{..._0x4da102,'unitID':_0x1c678e,'userId':_0x59f4ef});return this['_trackActiveSaveTask'](_0x24b574,_0x53fd62),!!await _0x53fd62;}async[_0x51ce3e(0x19b)](_0x5dec52,_0x5a9e1c,_0x4e6c5e){const _0x8181c8=_0x51ce3e;let _0x528f3a=this[_0x8181c8(0x2d6)](_0x4e6c5e),_0x10d6aa=_0x1776e1(_0x5dec52,_0x528f3a),_0x5c362e=this[_0x8181c8(0x7d)][_0x8181c8(0x21a)](_0x10d6aa)??await this[_0x8181c8(0x7b)]['getItem'](_0x10d6aa);if(!_0x5c362e||this[_0x8181c8(0x2a0)](_0x5c362e['userId'])!==_0x528f3a||_0x5c362e['unitID']!==_0x5dec52)return;let _0x25c873=Date[_0x8181c8(0xc3)](),_0x36a4da=new Date(_0x25c873)['toISOString']();await this['_localStorageService'][_0x8181c8(0x2e9)](_0x10d6aa+_0x8181c8(0x283)+_0x25c873,{'reason':_0x5a9e1c,'createdAt':_0x36a4da,'data':_0x5c362e});}async[_0x51ce3e(0x296)](_0x54f34c,_0x3b9920){const _0x596ab8=_0x51ce3e;let _0x1b9595=this[_0x596ab8(0x2d6)](_0x3b9920),_0x2c428d=_0x1776e1(_0x54f34c,_0x1b9595),_0x501fc0=this[_0x596ab8(0x25e)]['get'](_0x2c428d);_0x501fc0!==void 0x0&&(window[_0x596ab8(0xc1)](_0x501fc0),this[_0x596ab8(0x25e)][_0x596ab8(0x1dc)](_0x2c428d));let _0x2e2196=this['_activeSaveTaskMap'][_0x596ab8(0x21a)](_0x2c428d);_0x2e2196&&await Promise[_0x596ab8(0x181)](_0x2e2196),this['_cachedData'][_0x596ab8(0x1dc)](_0x2c428d),await this[_0x596ab8(0x7b)][_0x596ab8(0x189)](_0x2c428d);}[_0x51ce3e(0x2bc)](_0x1f1517,_0x77b9b7,_0x41d82b,_0x34d053,_0x2f66b0){const _0x2dfd5c=_0x51ce3e;if(this[_0x2dfd5c(0x172)])return;let _0x2cb569=this[_0x2dfd5c(0x2d6)](_0x2f66b0),_0x30deb8=_0x1776e1(_0x1f1517,_0x2cb569),_0x5d402c=this[_0x2dfd5c(0xfe)][_0x2dfd5c(0xdf)](_0x1f1517);this['_cachedData'][_0x2dfd5c(0xde)](_0x30deb8,{'unitID':_0x1f1517,'userId':_0x2cb569,'type':_0x77b9b7,'awaitingChangeset':_0x41d82b,'mutations':_0x34d053,'rev':_0x5d402c}),this[_0x2dfd5c(0x25e)][_0x2dfd5c(0x213)](_0x30deb8)||this['_scheduleSaving'](_0x30deb8);}[_0x51ce3e(0x2d6)](_0x3e8c28=((()=>{const _0x56b3d3=_0x51ce3e;var _0xc94606;return(_0xc94606=this[_0x56b3d3(0xe8)]['getCurrentUser']())==null?void 0x0:_0xc94606['userID'];})())){const _0xbe9dc2=_0x51ce3e;return this[_0xbe9dc2(0x2a0)](_0x3e8c28);}[_0x51ce3e(0x2a0)](_0x4b7cf6){return _0x4b7cf6===''||_0x4b7cf6==null?void 0x0:_0x4b7cf6;}[_0x51ce3e(0x28f)](_0x4d2e41){const _0x105786=_0x51ce3e;let _0x364660=this['_getSaveTimeout']();_0x364660===0x0?this[_0x105786(0x1ff)](_0x4d2e41)[_0x105786(0x21c)](_0x1005ae=>this[_0x105786(0x1ae)]['error'](_0x1005ae)):this[_0x105786(0x25e)]['set'](_0x4d2e41,window[_0x105786(0x86)](()=>{const _0x485c0d=_0x105786;this[_0x485c0d(0x1ff)](_0x4d2e41)[_0x485c0d(0x21c)](_0x191f80=>this[_0x485c0d(0x1ae)]['error'](_0x191f80));},_0x364660));}[_0x51ce3e(0x105)](){return this['_configService']['getConfig'](_0x5147da)??_0x48e5c8;}[_0x51ce3e(0x1ff)](_0x3ef2f3){const _0x48eb0a=_0x51ce3e;let _0x23330e=this[_0x48eb0a(0x25e)]['get'](_0x3ef2f3);_0x23330e!==void 0x0&&window['clearTimeout'](_0x23330e);let _0x1f5940=this[_0x48eb0a(0x7d)]['get'](_0x3ef2f3);if(!_0x1f5940)return Promise[_0x48eb0a(0xff)]();let _0x58d900=this[_0x48eb0a(0x127)][_0x48eb0a(0x21a)](_0x3ef2f3),_0x590576=Promise[_0x48eb0a(0x181)](_0x58d900?[..._0x58d900]:[])[_0x48eb0a(0x1a0)](()=>this[_0x48eb0a(0x7b)][_0x48eb0a(0x2e9)](_0x3ef2f3,_0x1f5940))[_0x48eb0a(0x1a0)](()=>{const _0xc6475f=_0x48eb0a;_0x23330e!==void 0x0&&this[_0xc6475f(0x25e)][_0xc6475f(0x21a)](_0x3ef2f3)===_0x23330e&&(this[_0xc6475f(0x25e)][_0xc6475f(0x1dc)](_0x3ef2f3),!this[_0xc6475f(0x172)]&&this['_cachedData']['get'](_0x3ef2f3)!==_0x1f5940&&this[_0xc6475f(0x28f)](_0x3ef2f3));});return this[_0x48eb0a(0x113)](_0x3ef2f3,_0x590576),_0x590576;}[_0x51ce3e(0x113)](_0x1ae31e,_0x451377){const _0x9742=_0x51ce3e;let _0x4def5a=this['_activeSaveTaskMap'][_0x9742(0x21a)](_0x1ae31e);_0x4def5a||(_0x4def5a=new Set(),this[_0x9742(0x127)][_0x9742(0xde)](_0x1ae31e,_0x4def5a)),_0x4def5a[_0x9742(0xbe)](_0x451377);let _0x5d40fb=()=>{const _0x28ebd5=_0x9742;_0x4def5a[_0x28ebd5(0x1dc)](_0x451377),_0x4def5a[_0x28ebd5(0x294)]===0x0&&this[_0x28ebd5(0x127)][_0x28ebd5(0x1dc)](_0x1ae31e);};_0x451377[_0x9742(0x1a0)](_0x5d40fb,_0x5d40fb);}async[_0x51ce3e(0x2c9)](){const _0x1b8126=_0x51ce3e;let _0xae92da=[...this['_saveTaskMap']['keys']()][_0x1b8126(0xa0)](_0x144cb9=>this[_0x1b8126(0x1ff)](_0x144cb9));for(let _0x1f3445 of this[_0x1b8126(0x127)][_0x1b8126(0x225)]())_0xae92da[_0x1b8126(0xbf)](...[..._0x1f3445][_0x1b8126(0xa0)](_0x30c875=>_0x30c875[_0x1b8126(0x1a0)](()=>void 0x0)));await Promise['all'](_0xae92da);}};$n=Y([J(0x0,_0x358956),J(0x1,_0x1f0179),J(0x2,_0x34f379(_0x14a041)),J(0x3,_0x49c433),J(0x4,_0x34f379(_0x3f6f1d))],$n);var er=class extends _0x487fff{get[_0x51ce3e(0x2a3)](){const _0x251e5c=_0x51ce3e;return this[_0x251e5c(0x11f)][_0x251e5c(0x8f)]();}constructor(){const _0x295854=_0x51ce3e;super(),q(this,'_online$',new _0x207222(navigator[_0x295854(0x2f1)])),q(this,_0x295854(0x23e),this['_online$']['asObservable']()),this[_0x295854(0x278)](),this['_listenToOnlineEvent']();}[_0x51ce3e(0x101)](){const _0x5bc151=_0x51ce3e;super['dispose'](),this[_0x5bc151(0x11f)]['complete']();}[_0x51ce3e(0x163)](){const _0xaa5a35=_0x51ce3e;this['disposeWithMe'](_0x2a8ee4(_0x5aae38(window,_0xaa5a35(0x2a3)),_0x5aae38(window,_0xaa5a35(0x2f8)),_0x5aae38(document,_0xaa5a35(0x1f1))['pipe'](_0x55fadf(()=>document[_0xaa5a35(0x226)]===_0xaa5a35(0x16d)),_0x1ad818(_0x3cc8e5=>_0x3cc8e5)))[_0xaa5a35(0xf3)](_0x1ad818(()=>navigator[_0xaa5a35(0x2f1)]))[_0xaa5a35(0xd5)](()=>this[_0xaa5a35(0x11f)][_0xaa5a35(0x212)](!0x0)));}[_0x51ce3e(0x278)](){const _0x160c44=_0x51ce3e;this[_0x160c44(0x156)](_0x5aae38(window,'offline')['subscribe'](()=>this[_0x160c44(0x11f)]['next'](!0x1)));}};let $=class extends _0x318506{constructor(_0x26252d=dn,_0x4df78c,_0x32f267,_0x4f33d5,_0x1835f2){const _0x5b8215=_0x51ce3e;super(),this[_0x5b8215(0x249)]=_0x26252d,this[_0x5b8215(0x126)]=_0x4df78c,this[_0x5b8215(0x2b2)]=_0x32f267,this[_0x5b8215(0x207)]=_0x4f33d5,this[_0x5b8215(0x2f9)]=_0x1835f2;let {..._0x10a81d}=_0x4eb5a5({},dn,this[_0x5b8215(0x249)]);this['_configService'][_0x5b8215(0x8b)](_0x5b8215(0x1e3),_0x10a81d);}[_0x51ce3e(0x1f8)](){const _0x48f893=_0x51ce3e;this[_0x48f893(0x275)](),this[_0x48f893(0x156)](this[_0x48f893(0x2f9)][_0x48f893(0xd2)](un)),this[_0x48f893(0x1e8)]();}[_0x51ce3e(0x237)](){const _0x3b2ca8=_0x51ce3e;this[_0x3b2ca8(0x10f)]();}[_0x51ce3e(0x275)](){const _0x4b1215=_0x51ce3e;var _0x20d269;let _0x3ae735=[[mn],[_0x4acc61,{'useClass':_0x12c4d7}],[_0x5561a0,{'useClass':$n}],[_0x1be8c6,{'useClass':er}],[X],[Vn],[Z],[Ln],[Qn]];this['_config'][_0x4b1215(0xb2)]!==!0x1&&_0x3ae735['push']([Q],[Hn],[Un],[_n],[Jn],[fn]),this[_0x4b1215(0x249)][_0x4b1215(0x204)]&&_0x3ae735['push']([Yn]),_0x5981d6(this[_0x4b1215(0x2b2)],_0x193349(_0x3ae735,(_0x20d269=this[_0x4b1215(0x249)])==null?void 0x0:_0x20d269['override']));}[_0x51ce3e(0x10f)](){const _0x38d73f=_0x51ce3e;this[_0x38d73f(0x249)][_0x38d73f(0xb2)]!==!0x1&&this[_0x38d73f(0x156)](this[_0x38d73f(0x126)][_0x38d73f(0x18b)](_0x638df4[_0x38d73f(0x2df)],[Dn])),this[_0x38d73f(0x156)](this['_renderManagerService'][_0x38d73f(0x18b)](_0x638df4[_0x38d73f(0x153)],[kn]));}[_0x51ce3e(0x1e8)](){const _0x244006=_0x51ce3e;_0x34a99e(this['_injector'],[[Z],[Ln],[X],[Vn],[Qn]]),this['_config'][_0x244006(0xb2)]!==!0x1&&_0x34a99e(this[_0x244006(0x2b2)],[[Jn],[fn]]),this[_0x244006(0x249)][_0x244006(0x204)]&&_0x34a99e(this[_0x244006(0x2b2)],[[Yn]]);}};q($,'pluginName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),q($,_0x51ce3e(0x1c1),cn),q($,_0x51ce3e(0x21d),ln),$=Y([_0x3bfcd6(_0x456b0a,_0x4a7635,_0x2d0c14,_0x13bacb,_0x4cc586,_0x4f615e,_0x48f236),J(0x1,_0x465bcd),J(0x2,_0x34f379(_0x5e88d7)),J(0x3,_0x358956),J(0x4,_0xa707b2)],$);let tr=class extends _0x150cad{constructor(_0x8b09a9,_0x4f13de,_0x3edd36,_0x33e523,_0x5bcfcc){super(_0x8b09a9,_0x4f13de,_0x3edd36,_0x33e523,_0x5bcfcc),q(this,'_dispose$',new _0x1674f4()),this['disposeWithMe'](()=>{const _0x32239c=_0x5409;this['_dispose$'][_0x32239c(0x212)](),this[_0x32239c(0x265)]['complete']();});}async[_0x51ce3e(0x218)](_0x47c6b8){const _0x2a3b66=_0x51ce3e;let _0x4a0dd2=await this[_0x2a3b66(0x23f)](),_0x5814ec=this['_createSocketURL'](_0x47c6b8,_0x4a0dd2);return this['_doCreateSocket'](_0x5814ec);}['_createSocketURL'](_0x212ee0,_0x1e7050){const _0x29d623=_0x51ce3e;let _0x572860=typeof window>'u'?new URL(_0x212ee0):new URL(_0x212ee0,window['location'][_0x29d623(0x1cd)]);_0x572860[_0x29d623(0x16b)][_0x29d623(0xde)](_0x29d623(0x1e9),_0x1e7050);let _0x5b82c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x29d623(0x2a8)][_0x29d623(0xa9)]);return _0x5b82c['get']('runId')&&_0x572860[_0x29d623(0x16b)][_0x29d623(0xde)]('runId',_0x5b82c[_0x29d623(0x21a)]('runId')),_0x572860[_0x29d623(0x169)]();}async[_0x51ce3e(0x23f)](){const _0x4822ba=_0x51ce3e;var _0x3ecd0e;let _0xaef2f0=this[_0x4822ba(0x207)][_0x4822ba(0x186)](_0x3b647d),_0x1f0b24=(_0xaef2f0==null?void 0x0:_0xaef2f0[_0x4822ba(0x2d3)])??_0x2490bb;return((_0x3ecd0e=(await _0x5bd556(this[_0x4822ba(0x28c)][_0x4822ba(0x251)](_0x4822ba(0x289),_0x1f0b24,{'headers':{'Content-Type':'application/json'}})[_0x4822ba(0xf3)](_0x1ad818(_0x26bd7b=>_0x26bd7b[_0x4822ba(0x2bb)]===_0x538b06['Response']),_0x1616a1(0x4e20),_0x8ba39e(this[_0x4822ba(0x265)]))))['body'])==null?void 0x0:_0x3ecd0e[_0x4822ba(0x2de)])??'';}};tr=Y([J(0x0,_0x34f379(_0x5e88d7)),J(0x1,_0x34f379(_0x14792e)),J(0x2,_0x358956),J(0x3,_0x49c433),J(0x4,_0x2769c2)],tr);let nr=class extends _0x487fff{constructor(_0x2e36b9,_0x288c7c,_0x102780){const _0x2a70b0=_0x51ce3e;super(),this[_0x2a70b0(0x124)]=_0x2e36b9,this['_httpService']=_0x288c7c,this[_0x2a70b0(0x207)]=_0x102780;}async[_0x51ce3e(0x1cf)](_0x49d060,_0x23ac9c,_0x3a7759,..._0x2d3162){const _0x40948c=_0x51ce3e;let _0x759883=this[_0x40948c(0x124)][_0x40948c(0x2ad)]();if(!_0x759883)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x464c7f=(this['_configService']['getConfig'](_0x4c7939)??_0x5ece8c)+'/'+_0x49d060+_0x40948c(0x96)+_0x23ac9c,_0x82afb1={'scriptId':_0x49d060,'runId':new URL(window['location'][_0x40948c(0x1bd)])['searchParams'][_0x40948c(0x21a)](_0x40948c(0x234))??'','function':_0x23ac9c,'unitId':_0x759883[_0x40948c(0x27f)](),'argsOfFunction':JSON['stringify'](_0x2d3162),'invokeId':_0x3a7759[_0x40948c(0x2cb)]??'','executionId':_0x3a7759[_0x40948c(0x216)]??''};try{let _0x4b9478=await this['_httpService'][_0x40948c(0x28e)](_0x464c7f,{'body':_0x82afb1});return _0x4b9478[_0x40948c(0xfc)][_0x40948c(0x20a)]&&_0x4b9478['body'][_0x40948c(0x20a)][_0x40948c(0x15c)]!==_0x31bc95['OK']?_0x40948c(0x291):_0x4b9478[_0x40948c(0xfc)]['result'];}catch{return'Failed';}}};nr=Y([J(0x0,_0x2d0e88),J(0x1,_0x34f379(_0x14792e)),J(0x2,_0x358956)],nr);const rr=0x7530,ir='ACTIVE_UNIT_EVENT_CHANNEL';var ar=class extends _0x487fff{constructor(){const _0x5556ed=_0x51ce3e;super(),q(this,'_id',_0x4efbbb()),q(this,_0x5556ed(0x136),new Set()),q(this,'_unitOnClients',new Map()),q(this,_0x5556ed(0xb5),null),q(this,_0x5556ed(0x2bf),new Map()),q(this,'_unitStatus',new Map()),this['_init']();}[_0x51ce3e(0x101)](){const _0x9ab359=_0x51ce3e;super[_0x9ab359(0x101)](),this['_clearOtherTimers']['forEach']((_0x205b54,_0x4b3509)=>this[_0x9ab359(0x297)](_0x4b3509)),this[_0x9ab359(0xb5)]&&window[_0x9ab359(0x1ce)](this['_heartbeatTimer']);}[_0x51ce3e(0x9e)](_0x2d47ea){const _0x5785eb=_0x51ce3e;return this[_0x5785eb(0x142)](_0x2d47ea)[_0x5785eb(0xf3)](_0x4b8a08());}[_0x51ce3e(0x1b4)](_0x4cffa6){const _0x621524=_0x51ce3e;this[_0x621524(0x136)][_0x621524(0x294)]===0x0&&this[_0x621524(0x1aa)](),this['_selfUnitIDs'][_0x621524(0xbe)](_0x4cffa6),this[_0x621524(0x9f)]({'type':0x0,'memberID':this[_0x621524(0x1dd)],'unitIDs':[_0x4cffa6],'isForwarded':!0x1});}[_0x51ce3e(0x22e)](_0x4a2b2f){const _0x125c20=_0x51ce3e;this['_selfUnitIDs'][_0x125c20(0x1dc)](_0x4a2b2f),this['_selfUnitIDs'][_0x125c20(0x294)]===0x0&&this[_0x125c20(0xb5)]&&window[_0x125c20(0x1ce)](this[_0x125c20(0xb5)]);}['_init'](){const _0x317ea4=_0x51ce3e;this['disposeWithMe'](_0x2dde77(_0x5aae38(window,_0x317ea4(0x28a))[_0x317ea4(0xd5)](_0x512332=>{const _0x450438=_0x317ea4;if(_0x512332[_0x450438(0x1c5)]!==ir||!_0x512332[_0x450438(0x149)])return;let _0x1c5313=JSON['parse'](_0x512332[_0x450438(0x149)]);this[_0x450438(0x130)](_0x1c5313);}))),window[_0x317ea4(0x203)](_0x317ea4(0xa1),()=>this[_0x317ea4(0x9f)]({'type':0x1,'memberID':this[_0x317ea4(0x1dd)],'unitIDs':Array['from'](this[_0x317ea4(0x136)])}));}[_0x51ce3e(0x130)](_0x48eed8){const _0x2bdfa1=_0x51ce3e;switch(_0x48eed8[_0x2bdfa1(0x2bb)]){case 0x0:this[_0x2bdfa1(0x1d0)](_0x48eed8);break;case 0x1:this['_handleLeaveEvent'](_0x48eed8);break;case 0x2:this[_0x2bdfa1(0x173)](_0x48eed8);}}[_0x51ce3e(0x1d0)](_0x4f2aa4){const _0x2cde50=_0x51ce3e;let {unitIDs:_0x501cf2,memberID:_0x29e1fc,isForwarded:_0x424af4}=_0x4f2aa4;_0x501cf2[_0x2cde50(0x1c0)](_0xe80faa=>{const _0x36d45a=_0x2cde50;if(!_0x424af4&&this[_0x36d45a(0x243)][_0x36d45a(0x213)](_0xe80faa)&&this[_0x36d45a(0x142)](_0xe80faa)[_0x36d45a(0x212)](_0x54a43b[_0x36d45a(0x198)]),!this['_unitOnClients'][_0x36d45a(0x213)](_0xe80faa)||!this[_0x36d45a(0x243)][_0x36d45a(0x21a)](_0xe80faa)[_0x36d45a(0x213)](_0x29e1fc)){let _0x86b504=this[_0x36d45a(0x243)][_0x36d45a(0x21a)](_0xe80faa)||new Set();_0x86b504['add'](_0x29e1fc),this[_0x36d45a(0x243)][_0x36d45a(0xde)](_0xe80faa,_0x86b504),this[_0x36d45a(0x11a)](_0x29e1fc);}}),_0x424af4||this[_0x2cde50(0x9f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2cde50(0x136)]],'isForwarded':!0x0});}[_0x51ce3e(0x11a)](_0x5a7c73){const _0x59e3f4=_0x51ce3e;this['_removeClearOtherTimer'](_0x5a7c73);let _0x4d8ad3=window[_0x59e3f4(0x86)](()=>{const _0x3facc8=_0x59e3f4;this[_0x3facc8(0x243)][_0x3facc8(0x1c0)](_0x206d7f=>{const _0x40d552=_0x3facc8;_0x206d7f[_0x40d552(0x1dc)](_0x5a7c73);});},rr*0x2);this[_0x59e3f4(0x2bf)][_0x59e3f4(0xde)](_0x5a7c73,_0x4d8ad3);}[_0x51ce3e(0x297)](_0x9b92fc){const _0xa2ebd3=_0x51ce3e;if(this[_0xa2ebd3(0x2bf)][_0xa2ebd3(0x213)](_0x9b92fc)){let _0x496290=this[_0xa2ebd3(0x2bf)][_0xa2ebd3(0x21a)](_0x9b92fc);_0x496290&&window[_0xa2ebd3(0xc1)](_0x496290),this[_0xa2ebd3(0x2bf)]['set'](_0x9b92fc,null);}}[_0x51ce3e(0x1a5)](_0x122807){const _0x44a3e4=_0x51ce3e;let {memberID:_0x5b48fe,unitIDs:_0x58cc00}=_0x122807;_0x58cc00[_0x44a3e4(0x1c0)](_0x24725b=>{const _0x1a232f=_0x44a3e4;var _0x2f9a50;let _0x4cb8b8=this[_0x1a232f(0x243)][_0x1a232f(0x21a)](_0x24725b);_0x4cb8b8&&(_0x4cb8b8['delete'](_0x5b48fe),(_0x2f9a50=this[_0x1a232f(0x142)](_0x24725b))==null||_0x2f9a50[_0x1a232f(0x212)](_0x4cb8b8[_0x1a232f(0x294)]===0x0?_0x54a43b[_0x1a232f(0x20e)]:_0x54a43b[_0x1a232f(0x198)]));}),this[_0x44a3e4(0x297)](_0x5b48fe);}[_0x51ce3e(0x173)](_0x31c44f){const _0x382847=_0x51ce3e;this[_0x382847(0x11a)](_0x31c44f['memberID']);}['_send'](_0x4ad916){const _0x5bc993=_0x51ce3e;localStorage['setItem'](ir,JSON[_0x5bc993(0x182)](_0x4ad916));}[_0x51ce3e(0x1aa)](){const _0x4d3636=_0x51ce3e;this['_heartbeatTimer']=window[_0x4d3636(0x9b)](()=>{const _0x221e72=_0x4d3636;this[_0x221e72(0x9f)]({'type':0x2,'memberID':this['_id']});},rr);}[_0x51ce3e(0x142)](_0x537db3){const _0x105026=_0x51ce3e;return this['_unitStatus'][_0x105026(0x213)](_0x537db3)||this['_unitStatus'][_0x105026(0xde)](_0x537db3,new _0x207222(_0x54a43b[_0x105026(0x20e)])),this[_0x105026(0x2d8)][_0x105026(0x21a)](_0x537db3);}};export{tr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,nr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ar as WebBrowserSingleActiveUnitService};
|