@univerjs-pro/collaboration-client-ui 1.0.4 → 1.1.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.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 +7 -0
- package/lib/types/services/collaboration-socket/collaboration-socket.service.d.ts +1 -0
- package/lib/types/services/local-cache/web-local-cache.service.d.ts +11 -7
- 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 +20 -20
- package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +0 -32
- package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +0 -35
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +0 -38
- package/lib/types/services/formula-calculation-guard/util.d.ts +0 -11
- package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +0 -15
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x87a36c=_0x3abf;(function(_0x3b3096,_0x34c36f){const _0x5abc23=_0x3abf,_0x179cc4=_0x3b3096();while(!![]){try{const _0x61375e=-parseInt(_0x5abc23(0x2ec))/0x1*(parseInt(_0x5abc23(0x1e6))/0x2)+-parseInt(_0x5abc23(0x1f5))/0x3*(parseInt(_0x5abc23(0x1a6))/0x4)+parseInt(_0x5abc23(0x15f))/0x5*(-parseInt(_0x5abc23(0x2b3))/0x6)+-parseInt(_0x5abc23(0x19a))/0x7*(-parseInt(_0x5abc23(0x23b))/0x8)+parseInt(_0x5abc23(0x27a))/0x9*(-parseInt(_0x5abc23(0x363))/0xa)+parseInt(_0x5abc23(0x259))/0xb*(parseInt(_0x5abc23(0x3c4))/0xc)+parseInt(_0x5abc23(0x37f))/0xd*(parseInt(_0x5abc23(0x2c4))/0xe);if(_0x61375e===_0x34c36f)break;else _0x179cc4['push'](_0x179cc4['shift']());}catch(_0x22a374){_0x179cc4['push'](_0x179cc4['shift']());}}}(_0x3528,0x93911));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1d37d6,CollaborationController as _0x371568,CollaborationSessionService as _0x538451,CollaborationSocketService as _0x25b19d,CollaborationStatus as _0x38d232,CollaborationUIEventId as _0x401512,CollaborationUIEventService as _0x36f4e2,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x50ff59,DEFAULT_WS_SESSION_TICKET_URL as _0x12f021,DataLoaderService as _0x25c527,DocCollaborationEntity as _0x3ca928,ILocalCacheService as _0xd043a9,LOCAL_CACHE_INTERVAL as _0x201675,LOCAL_CACHE_INTERVAL_KEY as _0x12dffe,MemberService as _0x207680,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1ab0d2,SessionStatus as _0x3e1a2e,UnitStatus as _0x4fd19e,UniverCollaborationClientPlugin as _0x273b5d,getLocalCacheKey as _0x35b96f}from'@univerjs-pro/collaboration-client';import{COLORS as _0x316398,ColorKit as _0xa89cfc,CommandType as _0x238d83,DOC_RANGE_TYPE as _0x24d643,DependentOn as _0x4cbe11,Disposable as _0x2e1ec0,DisposableCollection as _0x2a6524,ICommandService as _0x204dc2,IConfigService as _0x1b95f3,IImageIoService as _0x2234ec,ILocalStorageService as _0x2bdb10,ILogService as _0x31aa30,IUniverInstanceService as _0x5b5bb5,Inject as _0x27756b,Injector as _0x25c197,LocaleService as _0x19f7e2,Plugin as _0x8bb285,Rectangle as _0x150667,RxDisposable as _0x172cd9,ThemeService as _0x1b3092,Tools as _0x3690a5,UniverInstanceType as _0x5efd3b,Workbook as _0x3af08a,createIdentifier as _0x1fdd4b,debounce as _0x29a649,fromEventSubject as _0x101fb9,generateRandomId as _0x5692c3,isInternalEditorID as _0x510849,merge as _0x2a1758,mergeOverrideWithDependencies as _0x224fc9,registerDependencies as _0x180690,toDisposable as _0x32283a,touchDependencies as _0x23c5a9}from'@univerjs/core';import{BuiltInUIPart as _0x3be819,IBeforeCloseService as _0x3cca16,IMessageService as _0x1ffcd0,INotificationService as _0x3b3c46,IUIPartsService as _0xf04e95,IUnitPresenceUIAdapterRegistry as _0x29e494,connectInjector as _0x5a61f2,useDependency as _0x2a3511,useObservable as _0xb500c9}from'@univerjs/ui';import{BehaviorSubject as _0x400c7b,Subject as _0x2e6913,combineLatest as _0xaca8c8,debounceTime as _0x428eca,distinctUntilChanged as _0x4f92af,filter as _0x2cbae3,fromEvent as _0x3bd2b7,mapTo as _0x27c19b,merge as _0x5acddf,of as _0x4ee3c4,shareReplay as _0x2d9815,switchMap as _0x145491,takeUntil as _0xefeb1b,throttle as _0x10cb6c,timer as _0x3d8b9a}from'rxjs';import{distinctUntilChanged as _0x48f1f2,filter as _0x1b2d75,map as _0x53ab17,switchMap as _0x32f945,takeUntil as _0x3cebbf,throttleTime as _0x3a2db6}from'rxjs/operators';import{Button as _0x382e18,MessageType as _0x106a5c,Tooltip as _0x168639,clsx as _0xd70463}from'@univerjs/design';import{LoadingMultiIcon as _0x50d91a,OffLineIcon as _0x2b58f0,OnLineIcon as _0x1f64b4,WarningIcon as _0x158935}from'@univerjs/icons';import{createElement as _0x52bd92,useCallback as _0x2655dd,useMemo as _0x343f08}from'react';import{jsx as _0x51b6a5,jsxs as _0x1a1d5a}from'react/jsx-runtime';import{CollaborationEvent as _0x13a1ec,ISnapshotServerService as _0x407610,ITransformService as _0x366b2a,RevisionService as _0x4edc47,SnapshotLoadStage as _0x5e9641,SnapshotLoadingService as _0x11bb00,UniverCollaborationPlugin as _0x4447fd,isTransformMutationFailure as _0x474f1b,isTransformMutationsWithChangesetSuccess as _0x1fe03b}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x3f124e}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x275ee4,DocSkeletonManagerService as _0x4322ff,DocStateChangeManagerService as _0x41ba99,RichTextEditingMutation as _0x1297ac,SetTextSelectionsOperation as _0x1534b1,UniverDocsPlugin as _0x42f7f9}from'@univerjs/docs';import{DocIMEInputManagerService as _0x195603,IDocClipboardService as _0x2c3127,NodePositionConvertToCursor as _0x4a6d90,NodePositionConvertToRectRange as _0x44ac00,SetDocZoomRatioOperation as _0x276a72,TEXT_RANGE_LAYER_INDEX as _0x27bcf9,UniverDocsUIPlugin as _0x8d1833}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x2f929c,IRenderManagerService as _0xc67b4e,Rect as _0x420f50,RegularPolygon as _0x46a4f9,SHEET_VIEWPORT_KEY as _0x23960d,Shape as _0x3a8676,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0xebf1f6,UniverRenderEnginePlugin as _0xb81a5b,Vector2 as _0x43f019,getColor as _0x31c3dd,getDocumentSkeletonColumnPagePathInfo as _0x24e369}from'@univerjs/engine-render';import{HTTPService as _0x88c090,ISocketService as _0x2a939f,UniverNetworkPlugin as _0xadda08,WebSocketService as _0x36ccf0}from'@univerjs/network';import{deserializeRangeWithSheet as _0x209ded,serializeRangeWithSheet as _0x509b5d}from'@univerjs/engine-formula';import{EffectRefRangId as _0x128c29,RefRangeService as _0x421726,SetSelectionsOperation as _0x50434e,SetWorksheetActivateCommand as _0x5b26c0,SheetsSelectionsService as _0x4fa6ca,handleDeleteRangeMoveLeft as _0x39c1ad,handleDeleteRangeMoveUp as _0x2655d3,handleIRemoveCol as _0x179292,handleIRemoveRow as _0x5760a7,handleInsertCol as _0x5b0786,handleInsertRangeMoveDown as _0xb7c7fb,handleInsertRangeMoveRight as _0x15a794,handleInsertRow as _0x374e31,handleMoveRange as _0x41b139,runRefRangeMutations as _0x1f9050}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x51769a,getCoordByCell as _0x5e5b67,getSheetObject as _0x71dc0e}from'@univerjs/sheets-ui';import{ErrorCode as _0x4c32fa}from'@univerjs/protocol';function nn(_0x20771b){const _0x5290b5=_0x3abf;switch(_0x20771b){case _0x38d232['OFFLINE']:return{'icon':_0x51b6a5(_0x2b58f0,{}),'colorClass':'univer-text-red-500','i18nKey':_0x5290b5(0x395),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x5290b5(0x350)};case _0x38d232[_0x5290b5(0x162)]:return{'icon':_0x51b6a5(_0x2b58f0,{}),'colorClass':'univer-text-orange-500','i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':'static'};case _0x38d232[_0x5290b5(0x26b)]:return{'icon':_0x51b6a5(_0x50d91a,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x5290b5(0x2ce),'clickable':!0x1,'indicator':_0x5290b5(0x165)};case _0x38d232[_0x5290b5(0x28a)]:return{'icon':_0x51b6a5(_0x1f64b4,{}),'colorClass':_0x5290b5(0x2a2),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x5290b5(0x350)};case _0x38d232['AWAITING']:case _0x38d232[_0x5290b5(0x35a)]:return{'icon':_0x51b6a5(_0x50d91a,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x5290b5(0x16f),'clickable':!0x1,'indicator':_0x5290b5(0x165)};case _0x38d232['PENDING']:return{'icon':_0x51b6a5(_0x50d91a,{}),'colorClass':_0x5290b5(0x237),'i18nKey':_0x5290b5(0x16f),'clickable':!0x1,'indicator':'spin'};case _0x38d232[_0x5290b5(0x1c2)]:return{'icon':_0x51b6a5(_0x1f64b4,{}),'colorClass':_0x5290b5(0x35b),'i18nKey':_0x5290b5(0x211),'clickable':!0x1,'indicator':'static'};}}function rn(_0x16f751){const _0x2050c0=_0x3abf;let {status$:_0x33578a}=_0x16f751,_0x135286=_0xb500c9(_0x33578a,_0x38d232[_0x2050c0(0x28a)]),_0x26bcd4=_0x2a3511(_0x19f7e2),_0x3c8fee=_0x2a3511(_0x538451),_0x4533f3=_0x343f08(()=>nn(_0x135286),[_0x135286]),_0x252b70=_0x135286!==_0x38d232[_0x2050c0(0x1ef)],_0x2936ea=_0x26bcd4['t'](_0x4533f3[_0x2050c0(0x24c)]),_0x562032=_0x4533f3[_0x2050c0(0x399)]?_0x26bcd4['t'](_0x4533f3[_0x2050c0(0x399)]):_0x2936ea,_0x8ed0ec=_0x2655dd(()=>{const _0x2107d4=_0x2050c0;_0x252b70||_0x3c8fee[_0x2107d4(0x1fb)]();},[_0x252b70,_0x3c8fee]),_0x2472ea=_0x2655dd(_0x22acdb=>{const _0x156435=_0x2050c0;!_0x252b70&&(_0x22acdb[_0x156435(0x2c9)]===_0x156435(0x321)||_0x22acdb['key']==='\x20')&&(_0x22acdb[_0x156435(0x32c)](),_0x3c8fee[_0x156435(0x1fb)]());},[_0x252b70,_0x3c8fee]),_0x3e4ff9=_0x51b6a5(_0x2050c0(0x352),{'className':_0xd70463(_0x2050c0(0x3cf),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x4533f3[_0x2050c0(0x17e)],{'univer-animate-spin':_0x4533f3[_0x2050c0(0x29f)]==='spin','univer-animate-pulse':_0x4533f3['indicator']==='pulse'}),'aria-hidden':_0x2050c0(0x34a),'children':_0x4533f3[_0x2050c0(0x33b)]}),_0xaf3be8=_0x51b6a5('span',{'className':_0xd70463(_0x2050c0(0x3cf),_0x2050c0(0x187),_0x2050c0(0x23d),_0x2050c0(0x224),_0x2050c0(0x3bf),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x4533f3[_0x2050c0(0x1ec)],'univer-cursor-default':!_0x4533f3[_0x2050c0(0x1ec)]}),'children':_0x3e4ff9});return _0x4533f3['clickable']?_0x51b6a5(_0x168639,{'title':_0x562032,'placement':_0x2050c0(0x388),'children':_0x51b6a5(_0x2050c0(0x34d),{'type':_0x2050c0(0x34d),'onClick':_0x8ed0ec,'onKeyDown':_0x2472ea,'className':_0xd70463('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x2050c0(0x2c7),_0x2050c0(0x378),_0x2050c0(0x1ed)),'aria-label':_0x2936ea+_0x2050c0(0x3a1)+_0x562032,'role':_0x2050c0(0x2a1),'aria-live':_0x2050c0(0x277),'aria-atomic':_0x2050c0(0x34a),'children':_0xaf3be8})}):_0x51b6a5(_0x168639,{'title':_0x562032,'placement':_0x2050c0(0x388),'children':_0x51b6a5(_0x2050c0(0x308),{'className':_0xd70463(_0x2050c0(0x2e0),'univer-border-none\x20univer-bg-transparent',_0x2050c0(0x378)),'aria-label':_0x2936ea,'role':_0x2050c0(0x2a1),'aria-live':_0x2050c0(0x277),'aria-atomic':_0x2050c0(0x34a),'children':_0xaf3be8})});}function G(_0x5ae65c){'@babel/helpers - typeof';const _0x2e5716=_0x3abf;return G=typeof Symbol==_0x2e5716(0x3c2)&&typeof Symbol['iterator']==_0x2e5716(0x19d)?function(_0x5bf163){return typeof _0x5bf163;}:function(_0x169ae6){const _0x55c4fc=_0x2e5716;return _0x169ae6&&typeof Symbol==_0x55c4fc(0x3c2)&&_0x169ae6['constructor']===Symbol&&_0x169ae6!==Symbol[_0x55c4fc(0x3c7)]?'symbol':typeof _0x169ae6;},G(_0x5ae65c);}function an(_0x3a13a0,_0x4b07b3){const _0x317fce=_0x3abf;if(G(_0x3a13a0)!='object'||!_0x3a13a0)return _0x3a13a0;var _0x2a6425=_0x3a13a0[Symbol[_0x317fce(0x385)]];if(_0x2a6425!==void 0x0){var _0x1df5f7=_0x2a6425[_0x317fce(0x3cd)](_0x3a13a0,_0x4b07b3||_0x317fce(0x2fc));if(G(_0x1df5f7)!=_0x317fce(0x37e))return _0x1df5f7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4b07b3===_0x317fce(0x1fe)?String:Number)(_0x3a13a0);}function on(_0x1eacc8){const _0x119174=_0x3abf;var _0x31aeb4=an(_0x1eacc8,'string');return G(_0x31aeb4)==_0x119174(0x19d)?_0x31aeb4:_0x31aeb4+'';}function K(_0x52e201,_0xb4cae,_0x16e307){return(_0xb4cae=on(_0xb4cae))in _0x52e201?Object['defineProperty'](_0x52e201,_0xb4cae,{'value':_0x16e307,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52e201[_0xb4cae]=_0x16e307,_0x52e201;}function q(_0x1b3f4f,_0xcd146b){return function(_0x25d9f5,_0x214608){_0xcd146b(_0x25d9f5,_0x214608,_0x1b3f4f);};}function J(_0x398210,_0x3d7f6a,_0x159ce1,_0x4e7cea){const _0x5d004a=_0x3abf;var _0x4aac74=arguments[_0x5d004a(0x2f5)],_0x15848b=_0x4aac74<0x3?_0x3d7f6a:_0x4e7cea===null?_0x4e7cea=Object['getOwnPropertyDescriptor'](_0x3d7f6a,_0x159ce1):_0x4e7cea,_0xc08a56;if(typeof Reflect==_0x5d004a(0x37e)&&typeof Reflect[_0x5d004a(0x396)]==_0x5d004a(0x3c2))_0x15848b=Reflect[_0x5d004a(0x396)](_0x398210,_0x3d7f6a,_0x159ce1,_0x4e7cea);else{for(var _0x49a3ab=_0x398210[_0x5d004a(0x2f5)]-0x1;_0x49a3ab>=0x0;_0x49a3ab--)(_0xc08a56=_0x398210[_0x49a3ab])&&(_0x15848b=(_0x4aac74<0x3?_0xc08a56(_0x15848b):_0x4aac74>0x3?_0xc08a56(_0x3d7f6a,_0x159ce1,_0x15848b):_0xc08a56(_0x3d7f6a,_0x159ce1))||_0x15848b);}return _0x4aac74>0x3&&_0x15848b&&Object[_0x5d004a(0x1b2)](_0x3d7f6a,_0x159ce1,_0x15848b),_0x15848b;}let Y=class extends _0x2e1ec0{constructor(_0x580866,_0x5a5f13,_0x2fadbe,_0x4e7c23,_0x20a965){const _0x1fb0ab=_0x3abf;super(),this[_0x1fb0ab(0x369)]=_0x580866,this[_0x1fb0ab(0x31d)]=_0x5a5f13,this['_collaborationController']=_0x2fadbe,this[_0x1fb0ab(0x2a9)]=_0x4e7c23,this[_0x1fb0ab(0x31b)]=_0x20a965,K(this,_0x1fb0ab(0x38d),new _0x400c7b(_0x38d232[_0x1fb0ab(0x28a)])),K(this,_0x1fb0ab(0x275),new Map()),this['_initStatusComponent'](),this['_initStatusListener'](),this['_initPresenceStatusComponents']();}[_0x87a36c(0x1b1)](){const _0x208205=_0x87a36c;this[_0x208205(0x275)][_0x208205(0x1e2)](_0x10cd05=>_0x10cd05[_0x208205(0x1b1)]()),this[_0x208205(0x275)]['clear'](),this[_0x208205(0x38d)]['complete'](),super[_0x208205(0x1b1)]();}[_0x87a36c(0x248)](){const _0x3b868f=_0x87a36c;this[_0x3b868f(0x35d)](_0x5acddf(this[_0x3b868f(0x369)][_0x3b868f(0x306)],this[_0x3b868f(0x369)][_0x3b868f(0x20a)](_0x5efd3b['UNIVER_DOC']),this[_0x3b868f(0x369)][_0x3b868f(0x20a)](_0x5efd3b['UNIVER_SHEET']))[_0x3b868f(0x1a8)](_0x53ab17(()=>sn(this[_0x3b868f(0x369)])),_0x48f1f2(),_0x145491(_0x55e6bd=>_0x55e6bd?this[_0x3b868f(0x273)]['getCollabEntity$'](_0x55e6bd):_0x4ee3c4(null)),_0x145491(_0x1ed158=>_0x1ed158?_0x1ed158[_0x3b868f(0x29c)]:_0x4ee3c4(_0x38d232['NOT_COLLAB'])))[_0x3b868f(0x310)](_0x1494a1=>{const _0x2b43cc=_0x3b868f;this[_0x2b43cc(0x38d)][_0x2b43cc(0x1b3)](_0x1494a1);}));}[_0x87a36c(0x27c)](){const _0xf24ef5=_0x87a36c;this['disposeWithMe'](this[_0xf24ef5(0x2a9)]['registerComponent'](_0x3be819[_0xf24ef5(0x1e9)],()=>_0x5a61f2(cn({'status$':this[_0xf24ef5(0x38d)]['asObservable']()}),this['_injector'])));}['_initPresenceStatusComponents'](){const _0x5db53c=_0x87a36c;let _0x2b8735=this[_0x5db53c(0x31b)][_0x5db53c(0x184)][_0x5db53c(0x310)](_0x386b01=>{this['_syncPresenceStatusComponents'](_0x386b01);});this['disposeWithMe'](_0x32283a(()=>_0x2b8735['unsubscribe']()));}[_0x87a36c(0x23c)](_0x3d43fa){const _0x23a692=_0x87a36c;let _0x1da5bc=new Map(_0x3d43fa[_0x23a692(0x26a)](_0x23466d=>_0x23466d['statusUIPart']!=null)[_0x23a692(0x284)](_0x5f39c2=>[_0x5f39c2['unitType'],_0x5f39c2]));this[_0x23a692(0x275)]['forEach']((_0x5cb17b,_0x237d30)=>{const _0x4e0eec=_0x23a692;_0x1da5bc[_0x4e0eec(0x364)](_0x237d30)||(_0x5cb17b[_0x4e0eec(0x1b1)](),this[_0x4e0eec(0x275)][_0x4e0eec(0x2d8)](_0x237d30));}),_0x1da5bc[_0x23a692(0x1e2)]((_0x4ffee3,_0x4efa97)=>{const _0x5c46c7=_0x23a692;this[_0x5c46c7(0x275)][_0x5c46c7(0x364)](_0x4efa97)||this[_0x5c46c7(0x32e)](_0x4ffee3);});}[_0x87a36c(0x32e)](_0x32fe3f){const _0x5bedd0=_0x87a36c;let _0x541aa5=_0x32fe3f[_0x5bedd0(0x31c)];if(!_0x541aa5)return;let _0x1fc796=new _0x2a6524(),_0x1db9f0=new _0x400c7b(_0x38d232[_0x5bedd0(0x28a)]);_0x1fc796[_0x5bedd0(0x38c)](_0x32283a(()=>_0x1db9f0[_0x5bedd0(0x29b)]())),_0x1fc796['add'](this['_uiPartsService']['registerComponent'](_0x541aa5,()=>_0x5a61f2(cn({'status$':_0x1db9f0[_0x5bedd0(0x1d9)]()}),this[_0x5bedd0(0x31d)])));let _0x1bd6e6=this[_0x5bedd0(0x369)][_0x5bedd0(0x20a)](_0x32fe3f[_0x5bedd0(0x340)])[_0x5bedd0(0x1a8)](_0x53ab17(_0x4e563b=>(_0x4e563b==null?void 0x0:_0x4e563b[_0x5bedd0(0x181)]())??null),_0x48f1f2(),_0x145491(_0x148891=>_0x148891?this[_0x5bedd0(0x273)][_0x5bedd0(0x3aa)](_0x148891):_0x4ee3c4(null)),_0x145491(_0x15ce88=>(_0x15ce88==null?void 0x0:_0x15ce88[_0x5bedd0(0x29c)])??_0x4ee3c4(_0x38d232['NOT_COLLAB'])))[_0x5bedd0(0x310)](_0x37aaa0=>_0x1db9f0[_0x5bedd0(0x1b3)](_0x37aaa0));_0x1fc796[_0x5bedd0(0x38c)](_0x32283a(()=>_0x1bd6e6[_0x5bedd0(0x1cf)]())),this['_presenceStatusRegistrations']['set'](_0x32fe3f[_0x5bedd0(0x340)],_0x1fc796);}};Y=J([q(0x0,_0x5b5bb5),q(0x1,_0x27756b(_0x25c197)),q(0x2,_0x27756b(_0x371568)),q(0x3,_0xf04e95),q(0x4,_0x27756b(_0x29e494))],Y);function sn(_0x537311){const _0x339139=_0x87a36c;let _0x5b0bae=_0x537311[_0x339139(0x35e)](),_0x8446cd=_0x5b0bae==null?void 0x0:_0x5b0bae[_0x339139(0x181)]();if(_0x8446cd&&!_0x510849(_0x8446cd))return _0x8446cd;let _0x45a2f7=_0x537311['getCurrentUnitOfType'](_0x5efd3b[_0x339139(0x398)]),_0x6680fa=_0x45a2f7==null?void 0x0:_0x45a2f7['getUnitId']();if(_0x6680fa&&!_0x510849(_0x6680fa))return _0x6680fa;let _0x508b23=_0x537311[_0x339139(0x21b)](_0x5efd3b[_0x339139(0x163)]);if(_0x508b23)return _0x508b23[_0x339139(0x181)]();let _0xc76a14=_0x537311[_0x339139(0x3ae)](_0x5efd3b[_0x339139(0x398)])['find'](_0x2ff75d=>!_0x510849(_0x2ff75d[_0x339139(0x181)]()));return _0xc76a14?_0xc76a14['getUnitId']():null;}function cn(_0x15ae3f){let {status$:_0x4947a7}=_0x15ae3f;return function(){return _0x51b6a5(rn,{'status$':_0x4947a7});};}var ln=_0x87a36c(0x307),un='1.0.4';const X={'id':_0x87a36c(0x295),'type':_0x238d83[_0x87a36c(0x2e3)],'handler':(_0x596709,_0x583e25)=>{const _0x4c52c0=_0x87a36c;let _0x4d2049=_0x596709['get'](_0x29e494)[_0x4c52c0(0x20c)](_0x583e25[_0x4c52c0(0x340)]);if(!_0x4d2049)return!0x1;switch(_0x583e25['update'][_0x4c52c0(0x2c2)]){case'set':return _0x4d2049[_0x4c52c0(0x281)](_0x583e25[_0x4c52c0(0x241)][_0x4c52c0(0x2ad)]),!0x0;case _0x4c52c0(0x355):return _0x4d2049[_0x4c52c0(0x286)](_0x583e25['update'][_0x4c52c0(0x25f)],_0x583e25[_0x4c52c0(0x241)]['memberId']),!0x0;case'clear':return _0x4d2049[_0x4c52c0(0x317)](_0x583e25[_0x4c52c0(0x241)][_0x4c52c0(0x25f)]),!0x0;default:return!0x1;}}},dn={};let fn=class extends _0x172cd9{constructor(_0x30db86,_0x459b45){const _0x3cf77d=_0x87a36c;super(),this[_0x3cf77d(0x1d1)]=_0x30db86,this[_0x3cf77d(0x1f1)]=_0x459b45,this['_init']();}[_0x87a36c(0x25d)](){const _0x1db7ad=_0x87a36c;let _0x2bcd7a=this;this[_0x1db7ad(0x35d)](this[_0x1db7ad(0x1d1)][_0x1db7ad(0x159)]({'onBeforePasteImage':async _0x3aca77=>{const _0x3e6d07=_0x1db7ad;let _0x10e7c1=await _0x2bcd7a[_0x3e6d07(0x1f1)][_0x3e6d07(0x28b)](_0x3aca77);return _0x10e7c1?{'source':_0x10e7c1['source'],'imageSourceType':_0x10e7c1[_0x3e6d07(0x3b1)]}:null;}}));}};fn=J([q(0x0,_0x2c3127),q(0x1,_0x2234ec)],fn);const pn=[_0x87a36c(0x26d),'jiqing.500',_0x87a36c(0x343),'red.300',_0x87a36c(0x251),_0x87a36c(0x2fe)];var mn=class extends _0x2e1ec0{constructor(..._0x26e339){const _0x1e4180=_0x87a36c;super(..._0x26e339),K(this,_0x1e4180(0x239),new Map()),K(this,_0x1e4180(0x257),0x0);}[_0x87a36c(0x205)](_0xfce708){const _0x3abd57=_0x87a36c;if(this[_0x3abd57(0x239)]['has'](_0xfce708))return this[_0x3abd57(0x239)][_0x3abd57(0x20c)](_0xfce708);let _0x3d759c=pn[this[_0x3abd57(0x257)]];return this[_0x3abd57(0x257)]=(this['_colorIndex']+0x1)%pn['length'],this['_assignedColors'][_0x3abd57(0x19c)](_0xfce708,_0x3d759c),_0x3d759c;}};function hn(_0x3e4f72){const _0x3959fb=_0x87a36c;let _0x58eee4='';for(let _0x150fbd of _0x3e4f72){let {startOffset:_0x2aaa19,endOffset:_0x3c8605,isActive:_0x16156b,rangeType:_0x462c69,segmentId:_0x328fa1,segmentPage:_0x17471f}=_0x150fbd;_0x58eee4[_0x3959fb(0x2f5)]&&(_0x58eee4+=','),_0x58eee4+=_0x2aaa19+':'+_0x3c8605+':'+(_0x16156b?'1':'0')+':'+_0x462c69+':'+_0x328fa1+':'+_0x17471f;}return _0x58eee4;}function gn(_0x1ccaf0){const _0x31a5ce=_0x87a36c;let _0x340695=_0x1ccaf0[_0x31a5ce(0x1c8)](','),_0x539960=[];for(let _0x221950 of _0x340695){let [_0x277fbb,_0x1862a1,_0x4fd64c,_0x480e1a,_0x13cc3a,_0x64a76d]=_0x221950[_0x31a5ce(0x1c8)](':');_0x539960[_0x31a5ce(0x21d)]({'startOffset':Number(_0x277fbb),'endOffset':Number(_0x1862a1),'collapsed':_0x277fbb===_0x1862a1,'isActive':_0x4fd64c==='1','rangeType':_0x480e1a===_0x24d643[_0x31a5ce(0x2ab)]?_0x24d643[_0x31a5ce(0x2ab)]:_0x24d643[_0x31a5ce(0x2a4)],'segmentId':typeof _0x13cc3a==_0x31a5ce(0x1fe)?String(_0x13cc3a):'','segmentPage':Number(_0x64a76d??-0x1)});}return _0x539960[_0x31a5ce(0x19f)](_0x234f8f=>_0x234f8f[_0x31a5ce(0x2a0)])||(_0x539960[0x0][_0x31a5ce(0x2a0)]=!0x0),_0x539960;}var _n=class extends _0x172cd9{constructor(..._0x3b6d10){const _0x3ea1db=_0x87a36c;super(..._0x3b6d10),K(this,'_collabCursorState$',new _0x400c7b(null)),K(this,_0x3ea1db(0x276),this[_0x3ea1db(0x283)][_0x3ea1db(0x1d9)]());}['syncEditingCollabCursor'](_0x5ea8c1){let {unitID:_0x50ea78,memberID:_0x52d938,textRanges:_0x55c397}=_0x5ea8c1,_0x5195e4=hn(_0x55c397);if(_0x5195e4==='')return;let _0x5011af={'unitID':_0x50ea78,'memberID':_0x52d938,'selection':_0x5195e4};this['_collabCursorState$']['next'](_0x5011af);}};let vn=class extends _0x172cd9{get['cursorInfo'](){const _0x45d916=_0x87a36c;return this[_0x45d916(0x2d3)][_0x45d916(0x2ee)]();}get[_0x87a36c(0x36a)](){const _0x665aa4=_0x87a36c;return this[_0x665aa4(0x15d)]['getValue']();}constructor(_0x4841ee,_0x5eebdf,_0x3b1d93,_0x3c95ea,_0x231940,_0x1c3a1e,_0x4e5a84,_0xad43dc,_0x2f3f86){const _0x456d38=_0x87a36c;super(),this[_0x456d38(0x2f3)]=_0x4841ee,this[_0x456d38(0x3b5)]=_0x5eebdf,this['_injector']=_0x3b1d93,this[_0x456d38(0x1d4)]=_0x3c95ea,this[_0x456d38(0x1a4)]=_0x231940,this[_0x456d38(0x2ca)]=_0x1c3a1e,this[_0x456d38(0x203)]=_0x4e5a84,this[_0x456d38(0x369)]=_0xad43dc,this[_0x456d38(0x30e)]=_0x2f3f86,K(this,_0x456d38(0x348),!0x1),K(this,_0x456d38(0x25d),!0x1),K(this,_0x456d38(0x2d3),new _0x400c7b(new Map())),K(this,_0x456d38(0x386),this[_0x456d38(0x2d3)][_0x456d38(0x1d9)]()),K(this,_0x456d38(0x15d),new _0x400c7b([])),K(this,'roomMembers$',this[_0x456d38(0x15d)][_0x456d38(0x1a8)](_0x428eca(0x12c))),K(this,_0x456d38(0x318),_0x29a649(_0x2c0720=>{const _0x1ae961=_0x456d38;let _0x1dca13={'eventID':_0x13a1ec[_0x1ae961(0x3b6)],'data':{'unitID':this[_0x1ae961(0x2f3)],'memberID':this[_0x1ae961(0x3b5)][_0x1ae961(0x172)](),'selection':hn(_0x2c0720)}};this['_session'][_0x1ae961(0x2e9)](_0x1dca13,this['unitID']);},0x64));}[_0x87a36c(0x1b1)](){const _0xb0f55c=_0x87a36c;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0xb0f55c(0x2d3)][_0xb0f55c(0x29b)](),this[_0xb0f55c(0x15d)][_0xb0f55c(0x1b3)]([]),this[_0xb0f55c(0x15d)]['complete']();}['init'](){const _0x3b3540=_0x87a36c;this['_init']||(this[_0x3b3540(0x25d)]=!0x0,this[_0x3b3540(0x3b5)][_0x3b3540(0x359)]['pipe'](_0xefeb1b(this['dispose$']))[_0x3b3540(0x310)](_0x102657=>{const _0x13c192=_0x3b3540;_0x102657===_0x3e1a2e[_0x13c192(0x208)]?this['_toggleOnline']():this[_0x13c192(0x389)]();}),this[_0x3b3540(0x3b5)][_0x3b3540(0x24f)][_0x3b3540(0x1a8)](_0xefeb1b(this['dispose$']))[_0x3b3540(0x310)](_0x688bc7=>{const _0xca6b3b=_0x3b3540;let _0xe3d25c=_0x688bc7[_0xca6b3b(0x39c)];_0xe3d25c===_0x13a1ec[_0xca6b3b(0x3b6)]&&this[_0xca6b3b(0x210)](_0x688bc7),_0xe3d25c===_0x13a1ec['USERS_LEAVE']&&this['_onCursorDelete'](_0x688bc7);}),this[_0x3b3540(0x35d)](this['_commandService'][_0x3b3540(0x1c4)](_0x467f13=>{const _0x2e7ab4=_0x3b3540;let _0x8d8c78=_0x467f13[_0x2e7ab4(0x1e0)];_0x8d8c78!=null&&this['_online']&&_0x467f13['id']===_0x1534b1['id']&&_0x8d8c78['unitId']===this['unitID']&&_0x8d8c78['isEditing']===!0x1&&_0x8d8c78['ranges'][_0x2e7ab4(0x2f5)]>0x0&&this['_updateLocalCursor'](_0x8d8c78[_0x2e7ab4(0x188)]);})),this['_syncEditingCollabCursorService'][_0x3b3540(0x276)]['pipe'](_0xefeb1b(this[_0x3b3540(0x198)]))[_0x3b3540(0x310)](_0x2f2538=>{const _0x742964=_0x3b3540;if((_0x2f2538==null?void 0x0:_0x2f2538[_0x742964(0x2f3)])!==this[_0x742964(0x2f3)])return;let _0x569bfa={'eventID':_0x13a1ec[_0x742964(0x3b6)],'data':_0x2f2538};this['_onCursorUpdate'](_0x569bfa);}),this[_0x3b3540(0x35d)](this[_0x3b3540(0x30e)][_0x3b3540(0x1c4)](_0x203aff=>{const _0x242681=_0x3b3540;if(_0x203aff[_0x242681(0x1e0)]==null)return;let _0x2fa134=_0x203aff[_0x242681(0x1e0)];if(_0x203aff['id']!==_0x1297ac['id']||_0x2fa134[_0x242681(0x25f)]!==this[_0x242681(0x2f3)])return;let _0x2351d0={'id':_0x242681(0x279),'params':_0x2fa134},_0x34b118=this[_0x242681(0x285)];for(let [_0x21b667,_0x21dacc]of _0x34b118){let _0x2cef88={'id':_0x242681(0x279),'params':{'unitId':this[_0x242681(0x2f3)],'actions':null,'textRanges':_0x21dacc[_0x242681(0x188)]}},_0x5e2704=this['_transformService'][_0x242681(0x238)](_0x2351d0,_0x2cef88,!0x1);if(_0x474f1b(_0x5e2704))throw _0x5e2704[_0x242681(0x2ba)];_0x34b118[_0x242681(0x19c)](_0x21b667,{..._0x21dacc,'ranges':_0x5e2704[_0x242681(0x30d)][_0x242681(0x1e0)][_0x242681(0x2fd)]});}queueMicrotask(()=>{const _0x4f41f6=_0x242681;this[_0x4f41f6(0x2d3)][_0x4f41f6(0x1b3)](_0x34b118);});})));}[_0x87a36c(0x210)](_0x33f51c){const _0x3b535d=_0x87a36c;var _0x37ed6b;let {memberID:_0x99e836,selection:_0x484b0c}=_0x33f51c[_0x3b535d(0x25e)],_0x434617=gn(_0x484b0c),_0x3269ec=((_0x37ed6b=this['_memberService'][_0x3b535d(0x342)](this[_0x3b535d(0x2f3)],_0x99e836))==null?void 0x0:_0x37ed6b['name'])??_0x3b535d(0x1b5),_0x693e6f={'color':this[_0x3b535d(0x1d4)][_0x3b535d(0x205)](_0x99e836),'name':_0x3269ec,'ranges':_0x434617},_0x577663=this[_0x3b535d(0x285)];_0x577663[_0x3b535d(0x19c)](_0x99e836,_0x693e6f),this[_0x3b535d(0x2d3)][_0x3b535d(0x1b3)](_0x577663);}[_0x87a36c(0x384)](_0x4390df){const _0x5ed4be=_0x87a36c;let {memberID:_0x29db57}=_0x4390df[_0x5ed4be(0x25e)],_0x56132f=this[_0x5ed4be(0x285)];_0x56132f[_0x5ed4be(0x2d8)](_0x29db57),this[_0x5ed4be(0x2d3)][_0x5ed4be(0x1b3)](_0x56132f);}[_0x87a36c(0x1ce)](){const _0x6f5f9a=_0x87a36c;var _0x55131c;if(this[_0x6f5f9a(0x348)]=!0x0,((_0x55131c=this['_univerInstanceService'][_0x6f5f9a(0x35e)]())==null?void 0x0:_0x55131c[_0x6f5f9a(0x181)]())!==this[_0x6f5f9a(0x2f3)])return;let _0x358f3e=this[_0x6f5f9a(0x31d)]['get'](_0x275ee4)[_0x6f5f9a(0x247)]();Array[_0x6f5f9a(0x3ce)](_0x358f3e)&&_0x358f3e[_0x6f5f9a(0x2f5)]>0x0&&this[_0x6f5f9a(0x318)](_0x358f3e);}[_0x87a36c(0x389)](){const _0x1866fc=_0x87a36c;this[_0x1866fc(0x348)]=!0x1;}};vn=J([q(0x2,_0x27756b(_0x25c197)),q(0x3,_0x27756b(mn)),q(0x4,_0x27756b(_0x207680)),q(0x5,_0x27756b(_n)),q(0x6,_0x366b2a),q(0x7,_0x5b5bb5),q(0x8,_0x204dc2)],vn);const yn=()=>{let _0x272593=[],_0x4b0a99=!0x1;return _0x70286b=>{const _0x401571=_0x3abf;_0x272593[_0x401571(0x21d)](_0x70286b),_0x4b0a99||(_0x4b0a99=!0x0,setTimeout(()=>{const _0x41552f=_0x401571;_0x272593[_0x41552f(0x1e2)](_0x200dc8=>_0x200dc8()),_0x272593=[],_0x4b0a99=!0x1;}));};};let bn=class extends _0x172cd9{get[_0x87a36c(0x285)](){const _0x596306=_0x87a36c;return this[_0x596306(0x2d3)][_0x596306(0x2ee)]();}get[_0x87a36c(0x36a)](){const _0x4dcf97=_0x87a36c;return this['_roomMembers$'][_0x4dcf97(0x2ee)]();}constructor(_0x4238b5,_0x48feb4,_0x204c63,_0x356e6f,_0x492cdc,_0x3eaee1,_0x1b8ef2,_0x458fa1){const _0x21e762=_0x87a36c;super(),this[_0x21e762(0x2f3)]=_0x4238b5,this['_session']=_0x48feb4,this[_0x21e762(0x31d)]=_0x204c63,this['_colorAssignService']=_0x356e6f,this[_0x21e762(0x1a4)]=_0x492cdc,this['_univerInstanceService']=_0x3eaee1,this[_0x21e762(0x30e)]=_0x1b8ef2,this[_0x21e762(0x38b)]=_0x458fa1,K(this,'_online',!0x1),K(this,_0x21e762(0x25d),!0x1),K(this,_0x21e762(0x2d3),new _0x400c7b(new Map())),K(this,_0x21e762(0x386),this[_0x21e762(0x2d3)][_0x21e762(0x1d9)]()),K(this,'_roomMembers$',new _0x400c7b([])),K(this,_0x21e762(0x3c6),this[_0x21e762(0x15d)][_0x21e762(0x1a8)](_0x428eca(0x12c))),K(this,_0x21e762(0x318),_0x29a649((_0x12ee90,_0x3a5b90)=>{const _0x4118b2=_0x21e762;let _0x29c608={'eventID':_0x13a1ec[_0x4118b2(0x3b6)],'data':{'unitID':this[_0x4118b2(0x2f3)],'memberID':this[_0x4118b2(0x3b5)]['getMemberID'](),'selection':_0x509b5d(_0x12ee90,_0x3a5b90['range'])}};this['_session'][_0x4118b2(0x2e9)](_0x29c608,this[_0x4118b2(0x2f3)]);},0x64));}['dispose'](){const _0x2ef2df=_0x87a36c;super[_0x2ef2df(0x1b1)](),this[_0x2ef2df(0x2d3)][_0x2ef2df(0x1b3)](new Map()),this[_0x2ef2df(0x2d3)]['complete'](),this[_0x2ef2df(0x15d)][_0x2ef2df(0x1b3)]([]),this[_0x2ef2df(0x15d)][_0x2ef2df(0x29b)]();}['init'](){const _0x4ff875=_0x87a36c;this['_init']||(this[_0x4ff875(0x25d)]=!0x0,this[_0x4ff875(0x3b5)][_0x4ff875(0x359)][_0x4ff875(0x1a8)](_0xefeb1b(this[_0x4ff875(0x198)]))['subscribe'](_0x9d93f9=>{const _0x5a131d=_0x4ff875;_0x9d93f9===_0x3e1a2e[_0x5a131d(0x208)]?this[_0x5a131d(0x1ce)]():this[_0x5a131d(0x389)]();}),this['_session'][_0x4ff875(0x24f)]['pipe'](_0xefeb1b(this[_0x4ff875(0x198)]))[_0x4ff875(0x310)](_0x1a713b=>{const _0x240135=_0x4ff875;let _0x688c6e=_0x1a713b['eventID'];_0x688c6e===_0x13a1ec[_0x240135(0x3b6)]&&this[_0x240135(0x210)](_0x1a713b),_0x688c6e===_0x13a1ec[_0x240135(0x212)]&&this[_0x240135(0x384)](_0x1a713b);}),this[_0x4ff875(0x1c1)](),this[_0x4ff875(0x35d)](this[_0x4ff875(0x30e)]['onCommandExecuted'](_0x41c901=>{const _0x194d5c=_0x4ff875;if(this[_0x194d5c(0x348)]&&_0x41c901['id']===_0x50434e['id']&&_0x41c901['params'][_0x194d5c(0x25f)]===this[_0x194d5c(0x2f3)]){let _0x27d39e=_0x41c901[_0x194d5c(0x1e0)];this['_updateLocalCursor'](_0x27d39e[_0x194d5c(0x20f)],_0x27d39e[_0x194d5c(0x2d6)][0x0]);}})));}['_onCursorUpdate'](_0x225613){const _0x12fd80=_0x87a36c;var _0x16868c;let {memberID:_0x142ffc,selection:_0x2ca42e}=_0x225613[_0x12fd80(0x25e)],{sheetName:_0x26bb4c,range:_0x983883}=_0x209ded(_0x2ca42e),_0x9b3182={'name':((_0x16868c=this[_0x12fd80(0x1a4)][_0x12fd80(0x342)](this[_0x12fd80(0x2f3)],_0x142ffc))==null?void 0x0:_0x16868c['name'])??_0x12fd80(0x1b5),'range':this[_0x12fd80(0x3d1)](_0x26bb4c,_0x983883),'sheetID':_0x26bb4c,'color':this['_colorAssignService'][_0x12fd80(0x205)](_0x142ffc),'selection':_0x2ca42e},_0x3f2f76=this['cursorInfo'];_0x3f2f76[_0x12fd80(0x19c)](_0x142ffc,_0x9b3182),this['_cursorInfo$']['next'](_0x3f2f76);}['_onCursorDelete'](_0x5d15a4){const _0x757407=_0x87a36c;let {memberID:_0x14ede4}=_0x5d15a4['data'],_0x303340=this['cursorInfo'];_0x303340['delete'](_0x14ede4),this[_0x757407(0x2d3)][_0x757407(0x1b3)](_0x303340);}[_0x87a36c(0x3d1)](_0x5d0746,_0x44db9c){const _0x57d9d0=_0x87a36c;var _0x40537f;let _0x3d2fc0=(_0x40537f=this['_univerInstanceService'][_0x57d9d0(0x2ac)](this[_0x57d9d0(0x2f3)],_0x5efd3b[_0x57d9d0(0x163)]))==null||(_0x40537f=_0x40537f[_0x57d9d0(0x2df)](_0x5d0746))==null?void 0x0:_0x40537f[_0x57d9d0(0x1ba)]();return(_0x3d2fc0==null?void 0x0:_0x3d2fc0[_0x57d9d0(0x1d6)](_0x368f99=>_0x150667[_0x57d9d0(0x25a)](_0x368f99,_0x44db9c)))||_0x44db9c;}[_0x87a36c(0x1c1)](){const _0x22e86d=_0x87a36c;let _0x2275a1=new _0x2a6524(),_0x37eea4=yn(),_0x57e327=()=>{const _0x23603d=_0x3abf;_0x2275a1[_0x23603d(0x1b1)]();let _0x3b730f=(_0x410779,_0x50002b,_0x237b68,_0x194fa8)=>{const _0x52504d=_0x23603d;let _0xd702d=[];switch(_0x410779['id']){case _0x128c29['DeleteRangeMoveLeftCommandId']:_0xd702d=_0x39c1ad(_0x410779,_0x194fa8);break;case _0x128c29[_0x52504d(0x1f2)]:_0xd702d=_0x2655d3(_0x410779,_0x194fa8);break;case _0x128c29[_0x52504d(0x1d8)]:_0xd702d=_0x5b0786(_0x410779,_0x194fa8);break;case _0x128c29['InsertRangeMoveDownCommandId']:_0xd702d=_0xb7c7fb(_0x410779,_0x194fa8);break;case _0x128c29['InsertRangeMoveRightCommandId']:_0xd702d=_0x15a794(_0x410779,_0x194fa8);break;case _0x128c29['InsertRowCommandId']:_0xd702d=_0x374e31(_0x410779,_0x194fa8);break;case _0x128c29['MoveRangeCommandId']:_0xd702d=_0x41b139(_0x410779,_0x194fa8);break;case _0x128c29['RemoveColCommandId']:_0xd702d=_0x179292(_0x410779,_0x194fa8);break;case _0x128c29[_0x52504d(0x2e2)]:_0xd702d=_0x5760a7(_0x410779,_0x194fa8);}let _0x2c0d8e=_0x1f9050(_0xd702d,_0x194fa8),_0x377d22=this[_0x52504d(0x285)][_0x52504d(0x20c)](_0x50002b);if(_0x377d22&&_0x2c0d8e){let _0x18bffe={..._0x377d22,'range':_0x2c0d8e};this[_0x52504d(0x285)][_0x52504d(0x19c)](_0x50002b,_0x18bffe),_0x37eea4(()=>{const _0x390b8e=_0x52504d;let _0x45da3c=this[_0x390b8e(0x38b)][_0x390b8e(0x37b)](_0x2c0d8e,_0x372eaa=>(_0x45da3c[_0x390b8e(0x1b1)](),_0x3b730f(_0x372eaa,_0x50002b,_0x237b68,_0x2c0d8e)));_0x2275a1[_0x390b8e(0x38c)](_0x45da3c);});}return{'redos':[],'undos':[]};};this[_0x23603d(0x285)]['forEach']((_0x547a16,_0x4255c7)=>{const _0x4c4392=_0x23603d;let {range:_0x25c62a,sheetID:_0x182afe}=_0x547a16,_0x531477=this[_0x4c4392(0x38b)][_0x4c4392(0x37b)](_0x25c62a,_0x18a3c2=>(_0x531477[_0x4c4392(0x1b1)](),_0x3b730f(_0x18a3c2,_0x4255c7,_0x182afe,_0x25c62a)));_0x2275a1[_0x4c4392(0x38c)](_0x531477);});};this[_0x22e86d(0x35d)](_0x32283a(this[_0x22e86d(0x2d3)][_0x22e86d(0x310)](()=>{_0x57e327();})));}[_0x87a36c(0x1ce)](){const _0x435962=_0x87a36c;var _0x109170,_0x49aa5c;if(this[_0x435962(0x348)]=!0x0,((_0x109170=this[_0x435962(0x369)][_0x435962(0x35e)]())==null?void 0x0:_0x109170[_0x435962(0x181)]())!==this[_0x435962(0x2f3)])return;let _0x482c56=(_0x49aa5c=this[_0x435962(0x31d)]['get'](_0x4fa6ca)[_0x435962(0x2de)]())==null?void 0x0:_0x49aa5c[0x0],_0x252f08=this[_0x435962(0x369)]['getCurrentUnitOfType'](_0x5efd3b[_0x435962(0x163)])[_0x435962(0x362)]();_0x482c56&&_0x252f08&&this[_0x435962(0x318)](_0x252f08[_0x435962(0x30c)](),_0x482c56);}[_0x87a36c(0x389)](){this['_online']=!0x1;}};bn=J([q(0x2,_0x27756b(_0x25c197)),q(0x3,_0x27756b(mn)),q(0x4,_0x27756b(_0x207680)),q(0x5,_0x5b5bb5),q(0x6,_0x204dc2),q(0x7,_0x27756b(_0x421726))],bn);let Z=class extends _0x172cd9{constructor(_0xb051e,_0x182af8,_0x3ad659){const _0x65c060=_0x87a36c;super(),this[_0x65c060(0x369)]=_0xb051e,this[_0x65c060(0x31d)]=_0x182af8,this['_collabSessionService']=_0x3ad659,K(this,_0x65c060(0x1e4),new Map()),K(this,'_entityInit$',new _0x2e6913()),this[_0x65c060(0x25d)]();}['dispose'](){const _0x137021=_0x87a36c;super[_0x137021(0x1b1)](),this[_0x137021(0x201)][_0x137021(0x29b)](),this[_0x137021(0x1e4)][_0x137021(0x1e2)](_0x521563=>_0x521563[_0x137021(0x1b1)]());}['getCollabCursors$'](_0x4cb0d1){const _0x48632d=_0x87a36c;let _0x4c5cfd=this['_entities'][_0x48632d(0x20c)](_0x4cb0d1);return _0x4c5cfd?_0x4c5cfd[_0x48632d(0x386)]:this[_0x48632d(0x201)][_0x48632d(0x1a8)](_0x2cbae3(_0x252900=>_0x252900['unitID']===_0x4cb0d1),_0x145491(_0x12ba88=>_0x12ba88['cursorInfo$']));}[_0x87a36c(0x25d)](){const _0x5dd8f1=_0x87a36c;this[_0x5dd8f1(0x369)][_0x5dd8f1(0x1e1)](_0x5efd3b[_0x5dd8f1(0x163)])[_0x5dd8f1(0x1a8)](_0xefeb1b(this[_0x5dd8f1(0x198)]))[_0x5dd8f1(0x310)](async _0x2c3cde=>{const _0x425c04=_0x5dd8f1;let _0x4a82a9=_0x2c3cde[_0x425c04(0x1fc)][_0x425c04(0x181)](),_0x50dd1e=await this['_startSheetCollabCursor'](_0x4a82a9);this[_0x425c04(0x201)]['next'](_0x50dd1e),this[_0x425c04(0x1e4)][_0x425c04(0x19c)](_0x4a82a9,_0x50dd1e);}),this['_univerInstanceService'][_0x5dd8f1(0x1e1)](_0x5efd3b[_0x5dd8f1(0x398)])[_0x5dd8f1(0x1a8)](_0xefeb1b(this[_0x5dd8f1(0x198)]))['pipe'](_0x2cbae3(_0x4d2b0f=>!_0x4d2b0f[_0x5dd8f1(0x1fc)][_0x5dd8f1(0x181)]()[_0x5dd8f1(0x336)]('__')))['subscribe'](async _0x597ef2=>{const _0x207aa9=_0x5dd8f1;let {unit:_0x460d7c}=_0x597ef2,_0x305dce=_0x460d7c[_0x207aa9(0x181)](),_0x237c4e=await this['_startDocCollabCursor'](_0x305dce);this[_0x207aa9(0x201)][_0x207aa9(0x1b3)](_0x237c4e),this[_0x207aa9(0x1e4)][_0x207aa9(0x19c)](_0x305dce,_0x237c4e);}),_0x5acddf(this[_0x5dd8f1(0x369)][_0x5dd8f1(0x290)](_0x5efd3b[_0x5dd8f1(0x398)]),this['_univerInstanceService'][_0x5dd8f1(0x290)](_0x5efd3b[_0x5dd8f1(0x163)]))[_0x5dd8f1(0x1a8)](_0xefeb1b(this[_0x5dd8f1(0x198)]))[_0x5dd8f1(0x310)](_0x8c0bc6=>{const _0x3fd3d2=_0x5dd8f1;let _0x310313=_0x8c0bc6['getUnitId'](),_0x2cd2d4=this[_0x3fd3d2(0x1e4)][_0x3fd3d2(0x20c)](_0x310313);_0x2cd2d4&&(_0x2cd2d4[_0x3fd3d2(0x1b1)](),this[_0x3fd3d2(0x1e4)][_0x3fd3d2(0x2d8)](_0x310313));});}async[_0x87a36c(0x38a)](_0x56919b){const _0x1d3688=_0x87a36c;let _0x635be3=await this[_0x1d3688(0x334)][_0x1d3688(0x346)](_0x56919b),_0xccbf36=this['_injector'][_0x1d3688(0x34c)](bn,_0x56919b,_0x635be3);return _0xccbf36[_0x1d3688(0x1c5)](),_0xccbf36;}async[_0x87a36c(0x3a6)](_0x4b8c7d){const _0x5ec321=_0x87a36c;let _0x5e3eff=await this[_0x5ec321(0x334)][_0x5ec321(0x346)](_0x4b8c7d),_0x18fcc5=this[_0x5ec321(0x31d)][_0x5ec321(0x34c)](vn,_0x4b8c7d,_0x5e3eff);return _0x18fcc5['init'](),_0x18fcc5;}};Z=J([q(0x0,_0x5b5bb5),q(0x1,_0x27756b(_0x25c197)),q(0x2,_0x27756b(_0x538451))],Z);function xn(_0x31c8c2,_0x264ea1){const _0x3689c5=_0x87a36c;_0x31c8c2[_0x3689c5(0x17c)](),_0x31c8c2[_0x3689c5(0x2f7)]=_0x3689c5(0x3d0);let _0x527a09=_0x31c8c2['measureText'](_0x264ea1)[_0x3689c5(0x217)];return _0x31c8c2[_0x3689c5(0x18a)](),Math['min'](_0x527a09+0x8,0xc8);}function Sn(_0x25cab1,_0x5ed035){const _0x3b73ff=_0x87a36c;let {radius:_0x4867e6,width:_0x2887cb,height:_0x2d13c6}=_0x5ed035;_0x4867e6??=0x0,_0x2887cb??=0x1e,_0x2d13c6??=0x1e;let _0x3cf45b=0x0,_0x5d745f=0x0,_0x1081f2=0x0;_0x3cf45b=_0x5d745f=_0x1081f2=Math[_0x3b73ff(0x366)](_0x4867e6,_0x2887cb/0x2,_0x2d13c6/0x2),_0x25cab1[_0x3b73ff(0x1e7)](),_0x25cab1[_0x3b73ff(0x326)](_0x3cf45b,0x0),_0x25cab1[_0x3b73ff(0x1b7)](_0x2887cb-_0x5d745f,0x0),_0x25cab1[_0x3b73ff(0x21a)](_0x2887cb-_0x5d745f,_0x5d745f,_0x5d745f,Math['PI']*0x3/0x2,0x0,!0x1),_0x25cab1['lineTo'](_0x2887cb,_0x2d13c6-_0x1081f2),_0x25cab1[_0x3b73ff(0x21a)](_0x2887cb-_0x1081f2,_0x2d13c6-_0x1081f2,_0x1081f2,0x0,Math['PI']/0x2,!0x1),_0x25cab1[_0x3b73ff(0x1b7)](0x0,_0x2d13c6),_0x25cab1[_0x3b73ff(0x1b7)](0x0,_0x3cf45b),_0x25cab1[_0x3b73ff(0x21a)](_0x3cf45b,_0x3cf45b,_0x3cf45b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x25cab1['closePath'](),_0x5ed035[_0x3b73ff(0x323)]&&(_0x25cab1[_0x3b73ff(0x17c)](),_0x25cab1[_0x3b73ff(0x1c7)]=_0x5ed035[_0x3b73ff(0x323)],_0x5ed035['fillRule']===_0x3b73ff(0x353)?_0x25cab1[_0x3b73ff(0x323)](_0x3b73ff(0x353)):_0x25cab1[_0x3b73ff(0x323)](),_0x25cab1[_0x3b73ff(0x18a)]());}var Cn=class e extends _0x3a8676{constructor(_0x1f3b38,_0x6dba3f){const _0x435975=_0x87a36c;super(_0x1f3b38,_0x6dba3f),K(this,'color',void 0x0),K(this,_0x435975(0x206),void 0x0),this['color']=_0x6dba3f==null?void 0x0:_0x6dba3f[_0x435975(0x2d2)],this[_0x435975(0x206)]=_0x6dba3f==null?void 0x0:_0x6dba3f[_0x435975(0x206)];}static[_0x87a36c(0x39b)](_0x2d2e79,_0x5a0995){const _0x327f47=_0x87a36c;let {text:_0x4b9758,color:_0x1b2ad6}=_0x5a0995;_0x2d2e79[_0x327f47(0x17c)](),_0x2d2e79['font']=_0x327f47(0x2e5);let _0x261618=_0x2d2e79[_0x327f47(0x339)](_0x4b9758)['width'];if(Sn(_0x2d2e79,{'height':0x14,'radius':0x4,'width':xn(_0x2d2e79,_0x4b9758),'fill':_0x1b2ad6,'evented':!0x1}),_0x2d2e79[_0x327f47(0x1c7)]=_0x327f47(0x322),_0x261618>0xc0){let _0x4251fa='',_0x37ad32=0x0;for(let _0xac94ab of _0x4b9758){let _0x4b8d72=_0x2d2e79[_0x327f47(0x339)](_0xac94ab)[_0x327f47(0x217)];if(_0x37ad32+_0x4b8d72<=0xc0-_0x2d2e79['measureText'](_0x327f47(0x296))[_0x327f47(0x217)])_0x4251fa+=_0xac94ab,_0x37ad32+=_0x4b8d72;else{_0x4251fa+=_0x327f47(0x296);break;}}_0x2d2e79[_0x327f47(0x15e)](_0x4251fa,0x4,0xf);}else _0x2d2e79[_0x327f47(0x15e)](_0x4b9758,0x4,0xf);_0x2d2e79['restore']();}['_draw'](_0x5498d3){const _0x58c555=_0x87a36c;e[_0x58c555(0x39b)](_0x5498d3,this);}};const wn=_0x87a36c(0x2af);var Tn=class{constructor(_0x1c237c,_0x418ebf,_0x4dff5c,_0x38b9e3){const _0x530860=_0x87a36c;this[_0x530860(0x215)]=_0x1c237c,this[_0x530860(0x195)]=_0x418ebf,this[_0x530860(0x2a3)]=_0x4dff5c,this[_0x530860(0x392)]=_0x38b9e3,K(this,_0x530860(0x391),[]),K(this,_0x530860(0x35c),null),K(this,_0x530860(0x3b0),null),K(this,_0x530860(0x311),null),K(this,_0x530860(0x250),null),K(this,_0x530860(0x2bb),null),this[_0x530860(0x1bc)]();}set[_0x87a36c(0x28c)](_0x37853a){const _0x7225e0=_0x87a36c;_0x37853a?(this[_0x7225e0(0x311)]&&this[_0x7225e0(0x311)]['hide'](),this['_textBubble']&&this[_0x7225e0(0x3b0)][_0x7225e0(0x345)]()):(this[_0x7225e0(0x311)]&&this[_0x7225e0(0x311)]['show'](),this['_textBubble']&&this[_0x7225e0(0x3b0)][_0x7225e0(0x3ba)]());}[_0x87a36c(0x1b1)](){const _0x4329d1=_0x87a36c;for(let _0x15ff91 of this[_0x4329d1(0x391)])_0x15ff91[_0x4329d1(0x1b1)]();this[_0x4329d1(0x3b0)]&&this['_textBubble']['dispose'](),this[_0x4329d1(0x311)]&&this[_0x4329d1(0x311)][_0x4329d1(0x1b1)](),this['_anchor']&&this[_0x4329d1(0x35c)][_0x4329d1(0x1b1)](),this[_0x4329d1(0x2bb)]&&this['_eventUnsubscribe']();}[_0x87a36c(0x1bc)](){const _0x2eeea9=_0x87a36c;let {_docSkeleton:_0x22d876,_document:_0x4f8dee}=this,{color:_0x1a0b3a,name:_0x4a7ddd,ranges:_0x15a6ed}=this[_0x2eeea9(0x215)],_0x47982d=_0x4f8dee['getOffsetConfig'](),{docsLeft:_0x4e05f7,docsTop:_0x5c8dc9}=_0x47982d,_0x4855e3=new _0x4a6d90(_0x47982d,_0x22d876);for(let {startOffset:_0x42e01b,endOffset:_0x2cc403,rangeType:_0x45a61e,segmentId:_0x23c3fc,segmentPage:_0x22f965,collapsed:_0x5796af,isActive:_0x321352}of _0x15a6ed){let _0x42ba32=_0x22d876[_0x2eeea9(0x16a)](_0x42e01b,!0x0,_0x23c3fc,_0x22f965),_0x415418=_0x22d876[_0x2eeea9(0x16a)](_0x2cc403,!0x0,_0x23c3fc,_0x22f965);_0x415418??=_0x22d876[_0x2eeea9(0x16a)](_0x2cc403-0x1,!0x1,_0x23c3fc,_0x22f965);let _0x506c90=En(_0x42ba32,_0x415418);if(_0x321352&&_0x506c90[_0x2eeea9(0x3a4)]){let {contentBoxPointGroup:_0x22fa09}=_0x4855e3[_0x2eeea9(0x313)](_0x415418,_0x415418);if(_0x22fa09[_0x2eeea9(0x2f5)]===0x0)continue;this[_0x2eeea9(0x305)](_0x1a0b3a,_0x22fa09,_0x4e05f7,_0x5c8dc9,_0x4a7ddd),this[_0x2eeea9(0x2bb)]=this[_0x2eeea9(0x2f8)]();}if(_0x42ba32&&_0x415418){if(_0x45a61e===_0x24d643[_0x2eeea9(0x2a4)]){let {pointGroup:_0x100971}=new _0x44ac00(_0x47982d,_0x22d876)[_0x2eeea9(0x313)](_0x42ba32,_0x415418)??{};if(_0x100971==null||_0x100971[_0x2eeea9(0x2f5)]===0x0)continue;this[_0x2eeea9(0x1bd)](_0x1a0b3a,_0x100971,_0x4e05f7,_0x5c8dc9);}else{if(!_0x5796af&&_0x506c90['canRenderSelection']){let {borderBoxPointGroup:_0xdf4c1b}=_0x4855e3['getRangePointData'](_0x42ba32,_0x415418);if(_0xdf4c1b[_0x2eeea9(0x2f5)]===0x0)continue;this[_0x2eeea9(0x2f6)](_0x1a0b3a,_0xdf4c1b,_0x4e05f7,_0x5c8dc9);}}}}}[_0x87a36c(0x305)](_0x24fb34,_0x4efbf5,_0x5d2830,_0xe54c31,_0x57aad5){const _0x22b009=_0x87a36c;let {left:_0x2f3cb8,top:_0x173838,height:_0xdf1617}=this['_getAnchorBounding'](_0x4efbf5),_0x171786=1.5/this[_0x22b009(0x397)](),_0x4c2178=new _0x420f50(wn+_0x5692c3(0x6),{'left':_0x2f3cb8+_0x5d2830-_0x171786,'top':_0x173838+_0xe54c31,'height':_0xdf1617,'width':1.5,'fill':_0x24fb34||_0x31c3dd(_0x316398[_0x22b009(0x267)],0x0),'strokeWidth':_0x171786,'stroke':_0x22b009(0x316),'evented':!0x0});this[_0x22b009(0x35c)]=_0x4c2178,this[_0x22b009(0x195)]['addObject'](_0x4c2178,_0x27bcf9);let _0x22d6b8=new _0x420f50(wn+_0x5692c3(0x6),{'left':_0x2f3cb8+_0x5d2830-_0x171786,'top':_0x173838+_0xe54c31-0x2,'height':0x4,'width':0x4,'fill':_0x24fb34||_0x31c3dd(_0x316398[_0x22b009(0x267)],0x0),'strokeWidth':0x0,'stroke':_0x24fb34||_0x31c3dd(_0x316398[_0x22b009(0x267)],0x0),'evented':!0x1});this[_0x22b009(0x311)]=_0x22d6b8,this[_0x22b009(0x195)]['addObject'](_0x22d6b8,_0x27bcf9);let _0x53d87c=new Cn(wn+_0x5692c3(0x6),{'left':_0x2f3cb8+_0x5d2830-_0x171786,'top':_0x173838+_0xe54c31-0x14,'text':_0x57aad5,'color':_0x24fb34});this[_0x22b009(0x3b0)]=_0x53d87c,this[_0x22b009(0x195)][_0x22b009(0x223)](_0x53d87c,_0x27bcf9),this[_0x22b009(0x28c)]=!0x1;}[_0x87a36c(0x2f8)](){const _0x355eb5=_0x87a36c;let _0x3a7c31=this[_0x355eb5(0x35c)][_0x355eb5(0x3b8)][_0x355eb5(0x32f)](()=>{const _0x549e88=_0x355eb5;this[_0x549e88(0x28c)]=!0x0;}),_0x4d170e=this[_0x355eb5(0x35c)][_0x355eb5(0x175)]['subscribeEvent'](()=>{const _0xb7ee0e=_0x355eb5;this[_0xb7ee0e(0x250)]&&clearTimeout(this[_0xb7ee0e(0x250)]),this[_0xb7ee0e(0x250)]=setTimeout(()=>{const _0x4d27af=_0xb7ee0e;this[_0x4d27af(0x28c)]=!0x1;},0x7d0);});return()=>{const _0x3c48cd=_0x355eb5;_0x3a7c31['unsubscribe'](),_0x4d170e[_0x3c48cd(0x1cf)]();};}[_0x87a36c(0x2f6)](_0x3eedab,_0x6f6697,_0x20106b,_0xc616d3){const _0x5fc01a=_0x87a36c;let _0x5ef823=0.2,_0x7d5c86=new _0xa89cfc(_0x3eedab)[_0x5fc01a(0x337)](_0x5ef823)[_0x5fc01a(0x192)](),_0x33dcb0=new _0x46a4f9(_0x5fc01a(0x178)+_0x5692c3(0x6),{'pointsGroup':_0x6f6697,'fill':_0x7d5c86||_0x31c3dd(_0x316398[_0x5fc01a(0x267)],_0x5ef823),'left':_0x20106b,'top':_0xc616d3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5fc01a(0x391)][_0x5fc01a(0x21d)](_0x33dcb0),this[_0x5fc01a(0x195)][_0x5fc01a(0x223)](_0x33dcb0,_0x27bcf9);}[_0x87a36c(0x1bd)](_0x19d102,_0x40d699,_0x417f3e,_0x59ebcf){const _0x3c629c=_0x87a36c;let _0x591df2=0.2,_0x2cc578=new _0xa89cfc(_0x19d102)[_0x3c629c(0x337)](_0x591df2)['toRgbString'](),_0x1c27e0=new _0x46a4f9(_0x3c629c(0x22c)+_0x5692c3(0x6),{'pointsGroup':_0x40d699,'fill':_0x2cc578||_0x31c3dd(_0x316398['black'],_0x591df2),'left':_0x417f3e,'top':_0x59ebcf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3c629c(0x391)][_0x3c629c(0x21d)](_0x1c27e0),this['_scene']['addObject'](_0x1c27e0,_0x27bcf9);}[_0x87a36c(0x2c3)](_0x3e6d20){let _0x77afd1=_0x3e6d20[0x0],_0x3e5a3a=_0x77afd1[0x0],_0x9c0d1b=_0x77afd1[0x2],{x:_0x3b89d6,y:_0x4e8ae9}=_0x3e5a3a,{x:_0x5854c1,y:_0x3128d3}=_0x9c0d1b;return{'left':_0x3b89d6,'top':_0x4e8ae9,'width':_0x5854c1-_0x3b89d6,'height':_0x3128d3-_0x4e8ae9};}[_0x87a36c(0x397)](){const _0x466091=_0x87a36c;let {scaleX:_0xff23a,scaleY:_0x322867}=this['_scene'][_0x466091(0x240)]();return Math[_0x466091(0x26e)](_0xff23a,_0x322867);}};function En(_0x17ebf4,_0x5816c5){const _0x153a23=_0x87a36c;if(!_0x5816c5)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x17ebf4||_0x17ebf4[_0x153a23(0x233)]!==_0x5816c5[_0x153a23(0x233)]||(_0x17ebf4[_0x153a23(0x233)]===_0x2f929c[_0x153a23(0x280)]||_0x17ebf4[_0x153a23(0x233)]===_0x2f929c[_0x153a23(0x1ff)])&&_0x17ebf4[_0x153a23(0x2e6)]!==_0x5816c5[_0x153a23(0x2e6)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x185ad6=_0x24e369(_0x17ebf4),_0x4ac828=_0x24e369(_0x5816c5);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x185ad6==null||_0x4ac828==null?_0x185ad6==null&&_0x4ac828==null:_0x185ad6[_0x153a23(0x252)]===_0x4ac828[_0x153a23(0x252)]&&_0x185ad6[_0x153a23(0x22d)]===_0x4ac828[_0x153a23(0x22d)]&&_0x185ad6[_0x153a23(0x194)]===_0x4ac828[_0x153a23(0x194)]};}let Dn=class extends _0x172cd9{constructor(_0x43fe6d,_0x3afa68,_0x4ed523,_0x46ff58,_0x11d5b5){const _0x33482e=_0x87a36c;super(),this[_0x33482e(0x2f1)]=_0x43fe6d,this['_docSkeletonManagerService']=_0x3afa68,this[_0x33482e(0x1dd)]=_0x4ed523,this[_0x33482e(0x30e)]=_0x46ff58,this['_themeService']=_0x11d5b5,K(this,_0x33482e(0x235),[]),K(this,_0x33482e(0x3ca),[]),this['_init']();}['_init'](){const _0x1c306c=_0x87a36c;let _0x108fd0=this[_0x1c306c(0x2f1)][_0x1c306c(0x25f)],_0x458378=this[_0x1c306c(0x18d)];this[_0x1c306c(0x35d)](_0xaca8c8([this[_0x1c306c(0x1dd)][_0x1c306c(0x376)](_0x108fd0),this[_0x1c306c(0x3a0)][_0x1c306c(0x1f3)]])[_0x1c306c(0x1a8)](_0x53ab17(([_0x3da8b0,_0xbd8e82])=>({'skeleton':_0x458378[_0x1c306c(0x183)](),'cursors':[..._0x3da8b0[_0x1c306c(0x209)]()][_0x1c306c(0x3b9)](_0x26ed13=>({..._0x26ed13,'color':this[_0x1c306c(0x3a0)]['getColorFromTheme'](_0x26ed13[_0x1c306c(0x2d2)])}))})))[_0x1c306c(0x310)](_0x463425=>{const _0x59aa80=_0x1c306c;if(this[_0x59aa80(0x2bf)](),_0x463425){let {skeleton:_0x2b165f,cursors:_0x344f53}=_0x463425;this[_0x59aa80(0x266)](_0x2b165f,_0x344f53);}})),this['_initResize'](),this[_0x1c306c(0x174)]();}['_updateCollabCursors'](_0x56a30a,_0x2e9780){const _0x15a328=_0x87a36c;let {scene:_0x2ff362,mainComponent:_0x294298}=this['_context'],_0x10becd=_0x2e9780[_0x15a328(0x284)](_0x414d5d=>new Tn(_0x414d5d,_0x2ff362,_0x56a30a,_0x294298));this['_cursorShapes']=_0x10becd,this[_0x15a328(0x3ca)]=_0x2e9780;}[_0x87a36c(0x236)](){const _0x24aa43=_0x87a36c;this[_0x24aa43(0x2bf)]();let {scene:_0x3e1b5c,mainComponent:_0x4ec0c7}=this[_0x24aa43(0x2f1)],_0x5f4eed=this[_0x24aa43(0x18d)][_0x24aa43(0x183)](),_0x6ae608=this[_0x24aa43(0x3ca)]['map'](_0x3a0253=>new Tn(_0x3a0253,_0x3e1b5c,_0x5f4eed,_0x4ec0c7));this[_0x24aa43(0x235)]=_0x6ae608;}[_0x87a36c(0x2bf)](){const _0x11ef25=_0x87a36c;this[_0x11ef25(0x235)][_0x11ef25(0x1e2)](_0x45c57a=>_0x45c57a[_0x11ef25(0x1b1)]()),this[_0x11ef25(0x235)]=[];}[_0x87a36c(0x174)](){const _0x359472=_0x87a36c;let _0x2e52c9=[_0x276a72['id']];this[_0x359472(0x35d)](this[_0x359472(0x30e)][_0x359472(0x1c4)](_0x5b2d59=>{const _0x39ff2c=_0x359472;_0x2e52c9[_0x39ff2c(0x38e)](_0x5b2d59['id'])&&_0x5b2d59['params']['unitId']===this[_0x39ff2c(0x2f1)][_0x39ff2c(0x25f)]&&this[_0x39ff2c(0x236)]();}));}[_0x87a36c(0x179)](){const _0x23aae8=_0x87a36c;this[_0x23aae8(0x35d)](_0x101fb9(this[_0x23aae8(0x2f1)][_0x23aae8(0x3a8)][_0x23aae8(0x1d7)])[_0x23aae8(0x1a8)](_0x1b2d75(_0x378694=>_0x378694[_0x23aae8(0x2c2)]===_0xebf1f6[_0x23aae8(0x16c)]),_0x3a2db6(0x10))['subscribe'](()=>{const _0x193cc6=_0x23aae8;this[_0x193cc6(0x236)]();}));}};Dn=J([q(0x1,_0x27756b(_0x4322ff)),q(0x2,_0x27756b(Z)),q(0x3,_0x204dc2),q(0x4,_0x27756b(_0x1b3092))],Dn);var On=class extends _0x3a8676{constructor(_0x3f51f2,_0x1c9266){const _0x224ce3=_0x87a36c;super(_0x3f51f2,_0x1c9266),K(this,_0x224ce3(0x1ee),void 0x0),K(this,_0x224ce3(0x1bb),!0x1),K(this,'_range',void 0x0),K(this,'_name',''),K(this,_0x224ce3(0x2d1),_0x224ce3(0x2b4)),K(this,_0x224ce3(0x2c0),void 0x0),K(this,_0x224ce3(0x249),void 0x0),K(this,_0x224ce3(0x1f8),void 0x0),K(this,_0x224ce3(0x222),0x4),K(this,_0x224ce3(0x1de),void 0x0),K(this,'_blinkIntervalTimer',void 0x0),K(this,_0x224ce3(0x2a7),!0x0),K(this,_0x224ce3(0x242),0x0),K(this,'_labelHorizontalPosition','right'),_0x1c9266&&(this['setShapeProps'](_0x1c9266),_0x1c9266[_0x224ce3(0x1ca)]&&(_0x1c9266['highlightSecond']??this[_0x224ce3(0x222)])&&this[_0x224ce3(0x1eb)](_0x1c9266[_0x224ce3(0x3bb)]??this[_0x224ce3(0x222)])),this['onPointerEnter$'][_0x224ce3(0x32f)](()=>this[_0x224ce3(0x2f0)]({'hovered':!0x0})),this['onPointerLeave$'][_0x224ce3(0x32f)](()=>this[_0x224ce3(0x2f0)]({'hovered':!0x1}));}[_0x87a36c(0x157)](_0xad800){const _0x34882c=_0x87a36c;this[_0x34882c(0x242)]=_0xad800;}['setShapeProps'](_0x53ab9f){const _0x1350e2=_0x87a36c;this[_0x1350e2(0x1ee)]=_0x53ab9f[_0x1350e2(0x2d2)]??this[_0x1350e2(0x1ee)],this['_hovered']=_0x53ab9f[_0x1350e2(0x168)]??this[_0x1350e2(0x1bb)],this[_0x1350e2(0x1d3)]=_0x53ab9f['range']??this[_0x1350e2(0x1d3)],this[_0x1350e2(0x25c)]=_0x53ab9f[_0x1350e2(0x33e)]??this[_0x1350e2(0x25c)],this['_labelPosition']=_0x53ab9f[_0x1350e2(0x22e)]??this[_0x1350e2(0x2d1)],this['_backgroundColor']=_0x53ab9f[_0x1350e2(0x1d5)]??this[_0x1350e2(0x2c0)],this[_0x1350e2(0x249)]=_0x53ab9f[_0x1350e2(0x29d)]??this['_showText'],this[_0x1350e2(0x30f)]=_0x53ab9f['labelHorizontalPosition']??this[_0x1350e2(0x30f)],_0x53ab9f[_0x1350e2(0x3bb)]!==void 0x0&&(this[_0x1350e2(0x222)]=_0x53ab9f[_0x1350e2(0x3bb)]),_0x53ab9f[_0x1350e2(0x1ca)]!==void 0x0&&(this['_highlight']=_0x53ab9f[_0x1350e2(0x1ca)]),_0x53ab9f[_0x1350e2(0x1a5)]!==void 0x0&&(this['_offsetY']=_0x53ab9f['offsetY']),this[_0x1350e2(0x34b)]({'width':_0x53ab9f[_0x1350e2(0x217)],'height':_0x53ab9f[_0x1350e2(0x33f)]});}[_0x87a36c(0x16e)](_0x599e51){const _0x587ad3=_0x87a36c;let {row:_0x562168,column:_0x4cb3f0}=_0x599e51;if(_0x562168>=this[_0x587ad3(0x1d3)][_0x587ad3(0x357)]&&_0x562168<=this[_0x587ad3(0x1d3)][_0x587ad3(0x36f)]&&_0x4cb3f0>=this[_0x587ad3(0x1d3)][_0x587ad3(0x331)]&&_0x4cb3f0<=this['_range'][_0x587ad3(0x23e)]){this[_0x587ad3(0x2f0)]({'hovered':!0x0});return;}this[_0x587ad3(0x2f0)]({'hovered':!0x1});}[_0x87a36c(0x1eb)](_0x4ff8d6){const _0x495925=_0x87a36c;this['_stopBlinking'](),this[_0x495925(0x2a7)]=!0x0,this[_0x495925(0x1b8)]=window[_0x495925(0x3b2)](()=>{const _0x56ccab=_0x495925;this[_0x56ccab(0x2a7)]=!this[_0x56ccab(0x2a7)],this[_0x56ccab(0x2dd)](!0x0);},0x1f4),this[_0x495925(0x1de)]=window[_0x495925(0x1f4)](()=>{const _0x29e851=_0x495925;this['_stopBlinking'](),this['_isBlinkVisible']=!0x0,this[_0x29e851(0x2dd)](!0x0);},_0x4ff8d6*0x3e8);}[_0x87a36c(0x1c6)](){const _0xfd62b1=_0x87a36c;this['_blinkIntervalTimer']&&=(window['clearInterval'](this[_0xfd62b1(0x1b8)]),void 0x0),this[_0xfd62b1(0x1de)]&&=(window['clearTimeout'](this['_blinkTimer']),void 0x0);}[_0x87a36c(0x1db)](_0x2f3453){return!0x1;}[_0x87a36c(0x1b1)](){const _0x5d9e98=_0x87a36c;this[_0x5d9e98(0x1c6)](),super[_0x5d9e98(0x1b1)]();}[_0x87a36c(0x27b)](_0x80df97){const _0x4b52d=_0x87a36c;let _0x523c13=this[_0x4b52d(0x1ee)],_0x8fde2c=this[_0x4b52d(0x2c0)];if(this[_0x4b52d(0x1f8)]&&!this[_0x4b52d(0x2a7)]&&(_0x523c13=this[_0x4b52d(0x164)](this[_0x4b52d(0x1ee)]),_0x8fde2c=this[_0x4b52d(0x2c0)]?this[_0x4b52d(0x164)](this[_0x4b52d(0x2c0)]):void 0x0),_0x420f50[_0x4b52d(0x39b)](_0x80df97,{'width':this[_0x4b52d(0x217)],'height':this[_0x4b52d(0x33f)],'strokeWidth':this[_0x4b52d(0x29e)]||1.5,'stroke':_0x523c13,'evented':!0x1,'fill':_0x8fde2c}),this[_0x4b52d(0x1bb)]||this['_showText']){_0x80df97[_0x4b52d(0x17c)]();let _0x1c1319=this[_0x4b52d(0x30f)]==='left'?-xn(_0x80df97,this[_0x4b52d(0x25c)]):this[_0x4b52d(0x217)];_0x80df97['transform'](0x1,0x0,0x0,0x1,_0x1c1319,(this[_0x4b52d(0x2d1)]===_0x4b52d(0x388)?0x0:-0x14)+(this[_0x4b52d(0x242)]??0x0)),Cn[_0x4b52d(0x39b)](_0x80df97,{'text':this['_name'],'color':_0x523c13}),_0x80df97[_0x4b52d(0x18a)]();}}['_getLighterColor'](_0x3ba77e){const _0x107816=_0x87a36c;return _0x3ba77e[_0x107816(0x336)]('#')?_0x107816(0x226)+Number[_0x107816(0x1b9)](_0x3ba77e[_0x107816(0x2f9)](0x1,0x3),0x10)+',\x20'+Number[_0x107816(0x1b9)](_0x3ba77e[_0x107816(0x2f9)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x3ba77e['slice'](0x5,0x7),0x10)+_0x107816(0x2b8):_0x3ba77e[_0x107816(0x336)]('rgba')?_0x3ba77e['replace'](/[\d.]+\)$/g,_0x107816(0x361)):_0x3ba77e[_0x107816(0x336)]('rgb')?_0x3ba77e['replace'](_0x107816(0x379),_0x107816(0x312))['replace'](')',_0x107816(0x2b8)):_0x3ba77e;}};let kn=class extends _0x172cd9{constructor(_0x7f14f9,_0x1f535a,_0x2f51c2,_0x253cd6){const _0x58f615=_0x87a36c;super(),this[_0x58f615(0x2f1)]=_0x7f14f9,this[_0x58f615(0x1c3)]=_0x1f535a,this[_0x58f615(0x1dd)]=_0x2f51c2,this[_0x58f615(0x3a0)]=_0x253cd6,K(this,'_cursors',new Set()),K(this,_0x58f615(0x1a0),null),K(this,_0x58f615(0x3a7),null),this[_0x58f615(0x25d)]();}[_0x87a36c(0x25d)](){const _0x222d04=_0x87a36c;this[_0x222d04(0x1c3)][_0x222d04(0x2cf)]['pipe'](_0x3cebbf(this[_0x222d04(0x198)]),_0x32f945(_0x30aa27=>{const _0x39f3bb=_0x222d04;if(_0x30aa27){let _0x445a01=_0x30aa27[_0x39f3bb(0x218)];return _0xaca8c8(this['_collabCursorController'][_0x39f3bb(0x376)](this[_0x39f3bb(0x2f1)][_0x39f3bb(0x25f)]),this[_0x39f3bb(0x3a0)][_0x39f3bb(0x1f3)])[_0x39f3bb(0x1a8)](_0x53ab17(([_0xa4541,_0x4bf719])=>{const _0x2108d1=_0x39f3bb;let _0x182b2c=new Map();return _0xa4541[_0x2108d1(0x1e2)]((_0x55dcfd,_0xb955b)=>{const _0x2d0655=_0x2108d1;if(_0x55dcfd['sheetID']===_0x445a01){let _0x35a82a={..._0x55dcfd};_0x35a82a[_0x2d0655(0x2d2)]=this[_0x2d0655(0x3a0)][_0x2d0655(0x37a)](_0x55dcfd[_0x2d0655(0x2d2)]),_0x182b2c[_0x2d0655(0x19c)](_0xb955b,_0x35a82a);}}),{'skeleton':_0x30aa27,'cursors':_0x182b2c};}));}return _0x4ee3c4({'skeleton':null,'cursors':new Map()});}))[_0x222d04(0x310)](({skeleton:_0x91da67,cursors:_0x742e1e})=>{const _0x205181=_0x222d04;this['_removeCollabCursors'](),_0x91da67&&this[_0x205181(0x266)](_0x91da67,_0x742e1e);}),this['disposeWithMe'](this[_0x222d04(0x1c3)]['currentSkeleton$']['pipe'](_0x3cebbf(this[_0x222d04(0x198)]))[_0x222d04(0x310)](_0x1056d6=>{const _0x115da1=_0x222d04;var _0x1375bf;if(_0x1056d6==null)return;(_0x1375bf=this['_pointerMoveDisposable'])==null||_0x1375bf[_0x115da1(0x1cf)](),this['_pointerMoveDisposable']=null;let {skeleton:_0x2e3078}=_0x1056d6,{scene:_0x271df7}=this['_context'];this['_pointerMoveDisposable']=_0x271df7[_0x115da1(0x2d9)][_0x115da1(0x32f)](_0x29a649(_0x4b6f3f=>{const _0x5398d9=_0x115da1;var _0x5a3d56,_0x3b589e;let {offsetX:_0xf186a6,offsetY:_0x36212d}=_0x4b6f3f,{x:_0x20d9f2,y:_0xede29c}=_0x271df7[_0x5398d9(0x282)](_0x43f019[_0x5398d9(0x230)]([_0xf186a6,_0x36212d])),{scaleX:_0x2b220c,scaleY:_0x25228f}=_0x271df7['getAncestorScale'](),_0x130fce=_0x271df7['getViewport'](_0x23960d['VIEW_MAIN']),_0x144468=_0x271df7[_0x5398d9(0x180)](_0x43f019[_0x5398d9(0x230)]([_0x20d9f2,_0xede29c]),_0x130fce),_0x1db9d5=_0x2e3078[_0x5398d9(0x31a)](_0xf186a6,_0x36212d,_0x2b220c,_0x25228f,_0x144468);(((_0x5a3d56=this[_0x5398d9(0x1a0)])==null?void 0x0:_0x5a3d56[_0x5398d9(0x2ea)])!==_0x1db9d5['column']||((_0x3b589e=this[_0x5398d9(0x1a0)])==null?void 0x0:_0x3b589e[_0x5398d9(0x25b)])!==_0x1db9d5[_0x5398d9(0x25b)])&&this[_0x5398d9(0x3ca)][_0x5398d9(0x1e2)](_0x381792=>{const _0x260e7e=_0x5398d9;_0x381792[_0x260e7e(0x16e)](_0x1db9d5);});},0x64));})),this[_0x222d04(0x35d)](_0x32283a(()=>{const _0xc94dd0=_0x222d04;var _0xb36eaf;(_0xb36eaf=this['_pointerMoveDisposable'])==null||_0xb36eaf['unsubscribe'](),this[_0xc94dd0(0x3a7)]=null;}));}['_updateCollabCursors'](_0x328733,_0x99c087){const _0x5e07aa=_0x87a36c;let _0x4069cb=this['_sheetSkeletonManagerService'][_0x5e07aa(0x169)]();if(!_0x4069cb)return;let _0x4533c1=this[_0x5e07aa(0x3af)]();if(!_0x4533c1)return;this[_0x5e07aa(0x3ca)]['forEach'](_0x873f42=>{const _0x57d94a=_0x5e07aa;_0x873f42[_0x57d94a(0x2dd)]();});let {scene:_0x11ae43}=_0x4533c1,_0x59e643=An(Array[_0x5e07aa(0x20e)](_0x99c087[_0x5e07aa(0x209)]()))[_0x5e07aa(0x284)](_0x524753=>{let {color:_0x304134,range:_0x524bf4,name:_0x53760d,selection:_0x38d634,sheetID:_0x1dd1cb}=_0x524753,{startColumn:_0x2f7aaf,startRow:_0x12a93b,endColumn:_0x16ce42,endRow:_0x2733a1}=_0x524bf4,_0x508afa=_0x5e5b67(_0x12a93b,_0x2f7aaf,_0x11ae43,_0x4069cb),_0x2fb141=_0x5e5b67(_0x2733a1,_0x16ce42,_0x11ae43,_0x4069cb),{columnHeaderHeightAndMarginTop:_0x55ba44}=_0x4069cb,{startX:_0x15ad56,startY:_0x2d3e54}=_0x508afa,{endX:_0x34840c,endY:_0xe6c314}=_0x2fb141,_0x434ea8=_0x34840c-_0x15ad56,_0x24d85d=_0xe6c314-_0x2d3e54;return new On(_0x53760d,{'labelPosition':_0x2d3e54-_0x55ba44>=0x14?'top':'bottom','sheetID':_0x1dd1cb,'range':_0x524bf4,'color':_0x304134,'name':_0x53760d,'selection':_0x38d634,'left':_0x15ad56,'top':_0x2d3e54,'width':_0x434ea8,'height':_0x24d85d,'evented':!0x1,'zIndex':0x1389});});_0x11ae43[_0x5e07aa(0x1cd)](_0x59e643,0x1),this[_0x5e07aa(0x3ca)]=new Set(_0x59e643);}[_0x87a36c(0x2bf)](){const _0x3b2719=_0x87a36c;var _0x53864b;(_0x53864b=this[_0x3b2719(0x3ca)])==null||_0x53864b['forEach'](_0x33c1d1=>_0x33c1d1[_0x3b2719(0x1b1)]());}[_0x87a36c(0x3af)](){const _0x1dc90c=_0x87a36c;return _0x71dc0e(this['_context'][_0x1dc90c(0x1fc)],this[_0x1dc90c(0x2f1)]);}};kn=J([q(0x1,_0x27756b(_0x51769a)),q(0x2,_0x27756b(Z)),q(0x3,_0x27756b(_0x1b3092))],kn);function An(_0x5e2915){const _0x2a39a0=_0x87a36c;let _0x1f54d3=new Map();return _0x5e2915[_0x2a39a0(0x1e2)](_0x43fee1=>{const _0x171ba9=_0x2a39a0;if(_0x1f54d3[_0x171ba9(0x364)](_0x43fee1[_0x171ba9(0x2d0)])){let _0x2619b5=_0x1f54d3[_0x171ba9(0x20c)](_0x43fee1['selection']);_0x2619b5[_0x171ba9(0x33e)]+=',\x20'+_0x43fee1[_0x171ba9(0x33e)];}else _0x1f54d3['set'](_0x43fee1[_0x171ba9(0x2d0)],_0x43fee1);}),Array['from'](_0x1f54d3[_0x2a39a0(0x209)]());}function jn(_0x3646a9){const _0x226b10=_0x87a36c;return typeof _0x3646a9==_0x226b10(0x37e)&&!!_0x3646a9;}function Mn(_0x4616ee){const _0xbe0099=_0x87a36c;return _0x4616ee[_0xbe0099(0x39c)]===_0x13a1ec['UPDATE_CURSOR']&&'data'in _0x4616ee&&jn(_0x4616ee[_0xbe0099(0x25e)])&&typeof _0x4616ee[_0xbe0099(0x25e)][_0xbe0099(0x158)]==_0xbe0099(0x1fe)&&typeof _0x4616ee['data'][_0xbe0099(0x2d0)]=='string';}function Nn(_0x4308f5){const _0x218806=_0x87a36c;return _0x4308f5[_0x218806(0x39c)]===_0x13a1ec[_0x218806(0x212)]&&_0x218806(0x25e)in _0x4308f5&&jn(_0x4308f5[_0x218806(0x25e)])&&typeof _0x4308f5[_0x218806(0x25e)][_0x218806(0x158)]==_0x218806(0x1fe);}function _0x3abf(_0x226c53,_0x458b9c){_0x226c53=_0x226c53-0x157;const _0x352807=_0x3528();let _0x3abf8d=_0x352807[_0x226c53];return _0x3abf8d;}function Pn(_0x5d7a04,_0x13dc1b){const _0x46aaa2=_0x87a36c;let _0x1ee28d;try{_0x1ee28d=JSON['parse'](_0x5d7a04);}catch{return null;}if(!jn(_0x1ee28d)||typeof _0x1ee28d[_0x46aaa2(0x1ab)]!='string'||typeof _0x1ee28d[_0x46aaa2(0x25f)]!=_0x46aaa2(0x1fe)||typeof _0x1ee28d[_0x46aaa2(0x20f)]!=_0x46aaa2(0x1fe))return null;let _0x4d591b=typeof _0x1ee28d['unitType']==_0x46aaa2(0x393)?_0x1ee28d['unitType']:_0x13dc1b;if(_0x4d591b==null)return null;let _0x190827=jn(_0x1ee28d[_0x46aaa2(0x173)])&&typeof _0x1ee28d[_0x46aaa2(0x173)]['x']==_0x46aaa2(0x393)&&Number[_0x46aaa2(0x246)](_0x1ee28d[_0x46aaa2(0x173)]['x'])&&typeof _0x1ee28d[_0x46aaa2(0x173)]['y']==_0x46aaa2(0x393)&&Number[_0x46aaa2(0x246)](_0x1ee28d[_0x46aaa2(0x173)]['y'])?{'x':_0x1ee28d[_0x46aaa2(0x173)]['x'],'y':_0x1ee28d[_0x46aaa2(0x173)]['y']}:null;return{'kind':_0x1ee28d[_0x46aaa2(0x1ab)],'unitType':_0x4d591b,'unitId':_0x1ee28d[_0x46aaa2(0x25f)],'subUnitId':_0x1ee28d[_0x46aaa2(0x20f)],'selectedIds':Array['isArray'](_0x1ee28d[_0x46aaa2(0x287)])?_0x1ee28d[_0x46aaa2(0x287)]['filter'](_0xdda233=>typeof _0xdda233==_0x46aaa2(0x1fe)):[],'focusedId':typeof _0x1ee28d[_0x46aaa2(0x193)]=='string'?_0x1ee28d['focusedId']:null,'pointer':_0x190827};}function Fn(_0x393978,_0x4ddbd5,_0x643924){const _0x107f6a=_0x87a36c;return{'kind':_0x4ddbd5,'unitType':_0x393978,'unitId':_0x643924[_0x107f6a(0x25f)],'subUnitId':_0x643924[_0x107f6a(0x20f)],'selectedIds':Array[_0x107f6a(0x20e)](_0x643924['selectedIds']),'focusedId':_0x643924[_0x107f6a(0x193)],'pointer':_0x643924[_0x107f6a(0x173)]?{..._0x643924['pointer']}:null};}let In=class extends _0x172cd9{constructor(_0xa6e0db,_0x20116f,_0x107e75,_0x3855d7,_0x21655a,_0x17f3e1){const _0x245b46=_0x87a36c;super(),this[_0x245b46(0x25f)]=_0xa6e0db,this['_session']=_0x20116f,this[_0x245b46(0x38f)]=_0x107e75,this[_0x245b46(0x1d4)]=_0x3855d7,this[_0x245b46(0x1a4)]=_0x21655a,this[_0x245b46(0x30e)]=_0x17f3e1,K(this,'_online',!0x1),K(this,_0x245b46(0x330),!0x1);}get[_0x87a36c(0x340)](){return this['_adapter']['unitType'];}[_0x87a36c(0x1b1)](){const _0x3e2532=_0x87a36c;this[_0x3e2532(0x1bf)](),super[_0x3e2532(0x1b1)]();}[_0x87a36c(0x1c5)](){const _0x3e32b7=_0x87a36c;this[_0x3e32b7(0x330)]||(this['_initialized']=!0x0,this['_session'][_0x3e32b7(0x359)]['pipe'](_0xefeb1b(this[_0x3e32b7(0x198)]))[_0x3e32b7(0x310)](_0x5f43e9=>{const _0x17db07=_0x3e32b7;if(_0x5f43e9===_0x3e1a2e[_0x17db07(0x208)]){this[_0x17db07(0x348)]=!0x0;let _0x555dc9=this[_0x17db07(0x38f)]['getLocalPresence'](this[_0x17db07(0x25f)]);_0x555dc9&&this['_sendLocalPresence'](_0x555dc9);return;}this[_0x17db07(0x348)]=!0x1,this[_0x17db07(0x1bf)]();}),this[_0x3e32b7(0x3b5)][_0x3e32b7(0x24f)][_0x3e32b7(0x1a8)](_0xefeb1b(this[_0x3e32b7(0x198)]))[_0x3e32b7(0x310)](_0x21fca5=>{const _0x2a7238=_0x3e32b7;Mn(_0x21fca5)?this[_0x2a7238(0x380)](_0x21fca5):Nn(_0x21fca5)&&this[_0x2a7238(0x17b)](_0x21fca5['data'][_0x2a7238(0x158)]);}),this[_0x3e32b7(0x38f)][_0x3e32b7(0x3c0)][_0x3e32b7(0x1a8)](_0x2cbae3(_0x36a666=>this[_0x3e32b7(0x348)]&&_0x36a666['unitId']===this['unitId']),_0x10cb6c(_0x758915=>_0x3d8b9a(_0x758915[_0x3e32b7(0x3c8)]),{'leading':!0x0,'trailing':!0x0}),_0xefeb1b(this[_0x3e32b7(0x198)]))[_0x3e32b7(0x310)](_0x1b91b3=>this['_sendLocalPresence'](_0x1b91b3)));}[_0x87a36c(0x18c)](_0x5a1c2e){const _0x359167=_0x87a36c;let _0x203d23=this['_session']['getMemberID']();if(!_0x203d23||!this['_online'])return;let _0x2ce220={'eventID':_0x13a1ec[_0x359167(0x3b6)],'data':{'unitID':this[_0x359167(0x25f)],'memberID':_0x203d23,'selection':JSON[_0x359167(0x261)](Fn(this['unitType'],this[_0x359167(0x38f)][_0x359167(0x377)],_0x5a1c2e))}};this['_session'][_0x359167(0x2e9)](_0x2ce220,this['unitId'])['catch'](()=>void 0x0);}[_0x87a36c(0x380)](_0x342f84){const _0x58267d=_0x87a36c;let {memberID:_0x2fe38f,selection:_0x4094bb}=_0x342f84[_0x58267d(0x25e)];if(_0x2fe38f===this[_0x58267d(0x3b5)][_0x58267d(0x172)]())return;let _0x76b8f0=Pn(_0x4094bb,this[_0x58267d(0x340)]);if(!_0x76b8f0||_0x76b8f0[_0x58267d(0x1ab)]!==this['_adapter'][_0x58267d(0x377)]||_0x76b8f0[_0x58267d(0x340)]!==this[_0x58267d(0x340)]||_0x76b8f0[_0x58267d(0x25f)]!==this[_0x58267d(0x25f)])return;let _0x4b8826=this[_0x58267d(0x1a4)]['getMember'](this[_0x58267d(0x25f)],_0x2fe38f),_0x7de319={'unitId':_0x76b8f0[_0x58267d(0x25f)],'subUnitId':_0x76b8f0['subUnitId'],'selectedIds':_0x76b8f0[_0x58267d(0x287)],'focusedId':_0x76b8f0[_0x58267d(0x193)],'pointer':_0x76b8f0[_0x58267d(0x173)],'memberId':_0x2fe38f,'color':this[_0x58267d(0x1d4)]['assignAColorForMemberID'](_0x2fe38f),'name':(_0x4b8826==null?void 0x0:_0x4b8826['name'])??_0x2fe38f};this[_0x58267d(0x30e)][_0x58267d(0x166)](X['id'],{'unitType':this[_0x58267d(0x340)],'update':{'type':'set','state':_0x7de319}})['catch'](()=>void 0x0);}['_removeRemotePresence'](_0x4f9c05){const _0x12ddc6=_0x87a36c;this[_0x12ddc6(0x30e)]['executeCommand'](X['id'],{'unitType':this['unitType'],'update':{'type':_0x12ddc6(0x355),'unitId':this['unitId'],'memberId':_0x4f9c05}})[_0x12ddc6(0x2ed)](()=>void 0x0);}['_clearRemotePresences'](){const _0x9dbd65=_0x87a36c;this[_0x9dbd65(0x30e)][_0x9dbd65(0x166)](X['id'],{'unitType':this[_0x9dbd65(0x340)],'update':{'type':_0x9dbd65(0x2eb),'unitId':this[_0x9dbd65(0x25f)]}})[_0x9dbd65(0x2ed)](()=>void 0x0);}};In=J([q(0x3,_0x27756b(mn)),q(0x4,_0x27756b(_0x207680)),q(0x5,_0x27756b(_0x204dc2))],In);let Ln=class extends _0x172cd9{constructor(_0x330405,_0x27f3c5,_0x315355,_0x94619){const _0xcba327=_0x87a36c;super(),this[_0xcba327(0x369)]=_0x330405,this['_injector']=_0x27f3c5,this[_0xcba327(0x334)]=_0x315355,this['_adapterRegistry']=_0x94619,K(this,_0xcba327(0x229),!0x1),K(this,_0xcba327(0x1e4),new Map()),K(this,_0xcba327(0x167),new Map()),K(this,_0xcba327(0x2d7),new Map()),this[_0xcba327(0x25d)]();}[_0x87a36c(0x1b1)](){const _0x474558=_0x87a36c;this['_isDisposed']=!0x0,this[_0x474558(0x2d7)][_0x474558(0x1e2)](_0x5bd889=>_0x5bd889['dispose']()),this[_0x474558(0x2d7)]['clear'](),this['_entities'][_0x474558(0x1e2)](_0x7c749c=>_0x7c749c[_0x474558(0x1b1)]()),this[_0x474558(0x1e4)]['clear'](),this[_0x474558(0x167)][_0x474558(0x2eb)](),super[_0x474558(0x1b1)]();}[_0x87a36c(0x25d)](){const _0xaa088e=_0x87a36c;this[_0xaa088e(0x27e)][_0xaa088e(0x184)][_0xaa088e(0x1a8)](_0xefeb1b(this[_0xaa088e(0x198)]))[_0xaa088e(0x310)](_0x3bec45=>this[_0xaa088e(0x2b0)](_0x3bec45));}['_syncAdapters'](_0x2c0f42){const _0x115dc8=_0x87a36c;let _0x4ca028=new Set(_0x2c0f42[_0x115dc8(0x284)](_0x31d0f6=>_0x31d0f6[_0x115dc8(0x340)]));this[_0x115dc8(0x2d7)][_0x115dc8(0x1e2)]((_0x355c32,_0x35b76b)=>{const _0x7be539=_0x115dc8;_0x4ca028[_0x7be539(0x364)](_0x35b76b)||(_0x355c32[_0x7be539(0x1b1)](),this['_adapterDisposables']['delete'](_0x35b76b),this[_0x7be539(0x2db)](_0x35b76b));}),_0x2c0f42[_0x115dc8(0x1e2)](_0xeaebee=>{const _0x10b762=_0x115dc8;this[_0x10b762(0x2d7)][_0x10b762(0x364)](_0xeaebee[_0x10b762(0x340)])||this[_0x10b762(0x28d)](_0xeaebee);});}['_bindAdapter'](_0x36e18f){const _0x1028ce=_0x87a36c;let _0x531e1b=new _0x2a6524();this[_0x1028ce(0x2d7)][_0x1028ce(0x19c)](_0x36e18f[_0x1028ce(0x340)],_0x531e1b),_0x531e1b[_0x1028ce(0x38c)](_0x36e18f[_0x1028ce(0x213)]()),this[_0x1028ce(0x369)][_0x1028ce(0x3ae)](_0x36e18f[_0x1028ce(0x340)])[_0x1028ce(0x1e2)](_0x1b10af=>this['_startEntity'](_0x1b10af[_0x1028ce(0x181)](),_0x36e18f)[_0x1028ce(0x2ed)](()=>void 0x0));let _0x4528f4=this['_univerInstanceService'][_0x1028ce(0x1e1)](_0x36e18f[_0x1028ce(0x340)])[_0x1028ce(0x310)](({unit:_0x5149cc})=>this[_0x1028ce(0x262)](_0x5149cc[_0x1028ce(0x181)](),_0x36e18f)[_0x1028ce(0x2ed)](()=>void 0x0));_0x531e1b[_0x1028ce(0x38c)](_0x32283a(()=>_0x4528f4[_0x1028ce(0x1cf)]()));let _0x44d288=this[_0x1028ce(0x369)][_0x1028ce(0x290)](_0x36e18f[_0x1028ce(0x340)])[_0x1028ce(0x310)](_0x49300d=>this[_0x1028ce(0x22a)](_0x49300d[_0x1028ce(0x181)]()));_0x531e1b['add'](_0x32283a(()=>_0x44d288[_0x1028ce(0x1cf)]()));}async[_0x87a36c(0x262)](_0x22258f,_0x2488a2){const _0x5fcfad=_0x87a36c;if(this[_0x5fcfad(0x1e4)][_0x5fcfad(0x364)](_0x22258f)||this['_pendingEntities'][_0x5fcfad(0x364)](_0x22258f))return;let _0xd50742={};this[_0x5fcfad(0x167)]['set'](_0x22258f,_0xd50742);let _0x1f1a6a=await this[_0x5fcfad(0x334)][_0x5fcfad(0x346)](_0x22258f)[_0x5fcfad(0x2ed)](_0x3b5cf5=>{const _0x107d14=_0x5fcfad;throw this['_pendingEntities'][_0x107d14(0x20c)](_0x22258f)===_0xd50742&&this[_0x107d14(0x167)][_0x107d14(0x2d8)](_0x22258f),_0x3b5cf5;});if(this['_isDisposed']||this[_0x5fcfad(0x167)][_0x5fcfad(0x20c)](_0x22258f)!==_0xd50742||this['_adapterRegistry'][_0x5fcfad(0x20c)](_0x2488a2['unitType'])!==_0x2488a2){this['_pendingEntities'][_0x5fcfad(0x20c)](_0x22258f)===_0xd50742&&this[_0x5fcfad(0x167)]['delete'](_0x22258f);return;}let _0x35a0d3=this[_0x5fcfad(0x31d)][_0x5fcfad(0x34c)](In,_0x22258f,_0x1f1a6a,_0x2488a2);_0x35a0d3['init'](),this[_0x5fcfad(0x167)]['delete'](_0x22258f),this[_0x5fcfad(0x1e4)][_0x5fcfad(0x19c)](_0x22258f,_0x35a0d3);}[_0x87a36c(0x22a)](_0x189838){const _0x5091fc=_0x87a36c;this[_0x5091fc(0x167)][_0x5091fc(0x2d8)](_0x189838);let _0x1263f9=this[_0x5091fc(0x1e4)][_0x5091fc(0x20c)](_0x189838);_0x1263f9&&(_0x1263f9[_0x5091fc(0x1b1)](),this[_0x5091fc(0x1e4)][_0x5091fc(0x2d8)](_0x189838));}[_0x87a36c(0x2db)](_0xaa53bf){const _0x241e33=_0x87a36c;this[_0x241e33(0x369)][_0x241e33(0x3ae)](_0xaa53bf)['forEach'](_0x269a2f=>this['_pendingEntities'][_0x241e33(0x2d8)](_0x269a2f[_0x241e33(0x181)]())),Array[_0x241e33(0x20e)](this[_0x241e33(0x1e4)]['entries']())[_0x241e33(0x1e2)](([_0x4c063a,_0x4cad61])=>{const _0x5c497c=_0x241e33;_0x4cad61[_0x5c497c(0x340)]===_0xaa53bf&&this[_0x5c497c(0x22a)](_0x4c063a);});}};Ln=J([q(0x0,_0x5b5bb5),q(0x1,_0x27756b(_0x25c197)),q(0x2,_0x27756b(_0x538451)),q(0x3,_0x27756b(_0x29e494))],Ln);const Rn={'toast':_0x87a36c(0x3d2),'actionButton':_0x87a36c(0x2b2)};let zn=class extends _0x2e1ec0{constructor(_0x39f25d,_0x3ae959,_0x3e7d9a,_0x537545,_0x31d37e,_0x4d0d4d){const _0x314c2e=_0x87a36c;super(),this[_0x314c2e(0x199)]=_0x39f25d,this[_0x314c2e(0x347)]=_0x3ae959,this[_0x314c2e(0x351)]=_0x3e7d9a,this['_messageService']=_0x537545,this[_0x314c2e(0x383)]=_0x31d37e,this[_0x314c2e(0x3bc)]=_0x4d0d4d,K(this,'_conflictNotification',null),K(this,_0x314c2e(0x1cc),new Set()),this[_0x314c2e(0x1e3)](),this[_0x314c2e(0x289)]();}[_0x87a36c(0x1b1)](){const _0x220453=_0x87a36c;var _0x33d42c;(_0x33d42c=this['_conflictNotification'])==null||_0x33d42c[_0x220453(0x1b1)](),this[_0x220453(0x329)]=null,super[_0x220453(0x1b1)]();}['_setupBeforeClosingHandler'](){const _0x13e18a=_0x87a36c;this[_0x13e18a(0x35d)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x14b55f=_0x13e18a;if(this[_0x14b55f(0x347)][_0x14b55f(0x2c8)]['size'])return this[_0x14b55f(0x3bc)]['t'](_0x14b55f(0x367));}));}[_0x87a36c(0x289)](){const _0x172b1c=_0x87a36c;this['disposeWithMe'](this[_0x172b1c(0x351)]['event$'][_0x172b1c(0x310)](_0x18a5cd=>{const _0x46755c=_0x172b1c;_0x18a5cd['id']===_0x401512[_0x46755c(0x314)]&&this[_0x46755c(0x309)]['show']({'type':_0x106a5c[_0x46755c(0x2c1)],'content':this[_0x46755c(0x3bc)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x18a5cd['id']===_0x401512['CLOSE_ROOM']&&this[_0x46755c(0x309)][_0x46755c(0x345)]({'type':_0x106a5c[_0x46755c(0x2c1)],'content':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x190))}),_0x18a5cd['id']===_0x401512[_0x46755c(0x232)]&&this['_replaceConflictNotification']({'title':this[_0x46755c(0x3bc)]['t']('collaboration-client-ui.permission.title'),'content':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x207)),'type':_0x46755c(0x2ba),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x33d)),'onClick':_0x2b191=>{const _0x5487b1=_0x46755c;_0x2b191[_0x5487b1(0x32c)](),window['location'][_0x5487b1(0x34e)]();}}}),_0x18a5cd['id']===_0x401512[_0x46755c(0x332)]&&this[_0x46755c(0x3ab)](),_0x18a5cd['id']===_0x401512[_0x46755c(0x2d4)]&&_0x18a5cd[_0x46755c(0x2f3)]&&this[_0x46755c(0x3c5)](_0x18a5cd['unitID']),_0x18a5cd['id']===_0x401512[_0x46755c(0x162)]&&this['_replaceConflictNotification']({'title':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x36d)),'content':this[_0x46755c(0x3bc)]['t']('collaboration-client-ui.conflict.content'),'type':_0x46755c(0x2ba),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this['_localeService']['t'](_0x46755c(0x33d)),'onClick':_0x526679=>{const _0x22d6fd=_0x46755c;_0x526679[_0x22d6fd(0x32c)](),window[_0x22d6fd(0x2a8)][_0x22d6fd(0x34e)]();}}}),_0x18a5cd['id']===_0x401512[_0x46755c(0x1a7)]&&this[_0x46755c(0x309)][_0x46755c(0x345)]({'type':_0x106a5c[_0x46755c(0x2c1)],'content':this[_0x46755c(0x3bc)]['t'](_0x18a5cd['data']||'')}),_0x18a5cd['id']===_0x401512[_0x46755c(0x23a)]&&this[_0x46755c(0x309)][_0x46755c(0x345)]({'type':_0x106a5c[_0x46755c(0x2c1)],'content':this['_localeService']['t'](_0x46755c(0x2cd))}),_0x18a5cd['id']===_0x401512[_0x46755c(0x161)]&&this[_0x46755c(0x309)]['show']({'type':_0x106a5c[_0x46755c(0x196)],'content':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x227))}),_0x18a5cd['id']===_0x401512[_0x46755c(0x32a)]&&this[_0x46755c(0x309)][_0x46755c(0x345)]({'type':_0x106a5c[_0x46755c(0x196)],'content':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x2cb))});}));}[_0x87a36c(0x3ab)](){const _0x3a5060=_0x87a36c;this[_0x3a5060(0x2b9)]({'title':this[_0x3a5060(0x3bc)]['t'](_0x3a5060(0x36d)),'content':this['_localeService']['t'](_0x3a5060(0x291)),'type':_0x3a5060(0x21e),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x87a36c(0x3c5)](_0x4a4da1){const _0x3d8cf7=_0x87a36c;this[_0x3d8cf7(0x2b9)]({'title':this['_localeService']['t'](_0x3d8cf7(0x36d)),'content':this['_localeService']['t'](_0x3d8cf7(0x373)),'type':_0x3d8cf7(0x2ba),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this['_localeService']['t'](_0x3d8cf7(0x244)),'onClick':_0x28739e=>{const _0x9f4e85=_0x3d8cf7;_0x28739e[_0x9f4e85(0x32c)](),this['_retryConflictCacheClear'](_0x4a4da1);}}});}['_retryConflictCacheClear'](_0x4c6420){const _0x4da6a8=_0x87a36c;this[_0x4da6a8(0x1cc)][_0x4da6a8(0x364)](_0x4c6420)||(this[_0x4da6a8(0x1cc)][_0x4da6a8(0x38c)](_0x4c6420),this[_0x4da6a8(0x3ab)](),this[_0x4da6a8(0x347)]['clearOfflineData'](_0x4c6420)[_0x4da6a8(0x30a)](()=>window[_0x4da6a8(0x2a8)][_0x4da6a8(0x34e)]())[_0x4da6a8(0x2ed)](()=>this[_0x4da6a8(0x3c5)](_0x4c6420))[_0x4da6a8(0x1f9)](()=>this[_0x4da6a8(0x1cc)][_0x4da6a8(0x2d8)](_0x4c6420)));}[_0x87a36c(0x2b9)](_0x5d94a2){const _0x18810b=_0x87a36c;var _0x2e8314;(_0x2e8314=this['_conflictNotification'])==null||_0x2e8314['dispose'](),this[_0x18810b(0x329)]=this['_notificationService'][_0x18810b(0x345)](_0x5d94a2);}};zn=J([q(0x0,_0x3cca16),q(0x1,_0xd043a9),q(0x2,_0x27756b(_0x36f4e2)),q(0x3,_0x1ffcd0),q(0x4,_0x3b3c46),q(0x5,_0x27756b(_0x19f7e2))],zn);const Q=_0x1fdd4b(_0x87a36c(0x3c3));let Bn=class extends _0x172cd9{constructor(_0x574df9,_0x2800e1,_0x377b38,_0x505ad5){const _0x56633b=_0x87a36c;super(),this[_0x56633b(0x214)]=_0x574df9,this[_0x56633b(0x1ac)]=_0x2800e1,this['_commandService']=_0x377b38,this[_0x56633b(0x20d)]=_0x505ad5,this[_0x56633b(0x25d)]()['catch'](_0x2a793e=>this['_logService'][_0x56633b(0x2ba)](_0x56633b(0x19e),_0x2a793e));}async['_init'](){const _0x4721d0=_0x87a36c;let _0x4ebf5f=this[_0x4721d0(0x214)][_0x4721d0(0x390)]('unit'),_0x846466=this[_0x4721d0(0x214)][_0x4721d0(0x390)](_0x4721d0(0x2c2)),_0x4d0d10=this['_urlService'][_0x4721d0(0x390)]('subunit');if(!_0x4ebf5f||!_0x846466){this['_logService'][_0x4721d0(0x260)](_0x4721d0(0x19e),_0x4721d0(0x2b5));return;}let _0x1a8f87=await this[_0x4721d0(0x20d)][_0x4721d0(0x2b7)](_0x4ebf5f,Number(_0x846466),_0x4d0d10);this[_0x4721d0(0x31f)]||_0x1a8f87&&_0x1a8f87 instanceof _0x3af08a&&await this[_0x4721d0(0x263)](_0x1a8f87);}async[_0x87a36c(0x263)](_0x50af29){const _0x1c7bf8=_0x87a36c;await this['_updateSubUnitFromURLParams'](_0x50af29,!0x0),!this['_disposed']&&(_0x50af29[_0x1c7bf8(0x182)][_0x1c7bf8(0x1a8)](_0xefeb1b(this['dispose$']))[_0x1c7bf8(0x310)](_0x3c84cd=>{_0x3c84cd&&this['_updateURLWithCurrentState'](_0x3c84cd);}),this[_0x1c7bf8(0x214)][_0x1c7bf8(0x30b)][_0x1c7bf8(0x1a8)](_0xefeb1b(this[_0x1c7bf8(0x198)]))[_0x1c7bf8(0x310)](()=>{const _0x1c3b8c=_0x1c7bf8;this[_0x1c3b8c(0x327)](_0x50af29)['catch'](_0x22c292=>this[_0x1c3b8c(0x1ac)]['error'](_0x1c3b8c(0x19e),_0x22c292));}));}[_0x87a36c(0x28f)](_0x7ad82f,_0x21df9b=!0x1){const _0x1cbda7=_0x87a36c;let _0x20a40d=this[_0x1cbda7(0x214)][_0x1cbda7(0x390)](_0x1cbda7(0x1f7));_0x7ad82f[_0x1cbda7(0x30c)]()!==_0x20a40d&&this[_0x1cbda7(0x214)][_0x1cbda7(0x320)]('subunit',_0x7ad82f['getSheetId'](),_0x21df9b);}async[_0x87a36c(0x327)](_0x31863b,_0x2116cf=!0x1){const _0x5706d2=_0x87a36c;var _0x905cc1;let _0x3e123e=this['_urlService']['getParam'](_0x5706d2(0x1f7));if(!_0x3e123e||!_0x31863b[_0x5706d2(0x2df)](_0x3e123e)){let _0x595278=_0x31863b[_0x5706d2(0x278)]()[0x0],_0x1121e1=_0x31863b['getSheetBySheetId'](_0x595278);if(!_0x1121e1||(this[_0x5706d2(0x28f)](_0x1121e1,!0x0),this[_0x5706d2(0x31f)]))return;await this[_0x5706d2(0x30e)][_0x5706d2(0x166)](_0x5b26c0['id'],{'unitId':_0x31863b[_0x5706d2(0x181)](),'subUnitId':_0x595278});return;}(_0x2116cf||((_0x905cc1=_0x31863b[_0x5706d2(0x362)]())==null?void 0x0:_0x905cc1['getSheetId']())!==_0x3e123e)&&await this[_0x5706d2(0x30e)]['executeCommand'](_0x5b26c0['id'],{'unitId':_0x31863b[_0x5706d2(0x181)](),'subUnitId':_0x3e123e});}};Bn=J([q(0x0,Q),q(0x1,_0x31aa30),q(0x2,_0x204dc2),q(0x3,_0x27756b(_0x25c527))],Bn);let Vn=class{constructor(_0x19ec46,_0x463ddf){const _0xe75825=_0x87a36c;this[_0xe75825(0x203)]=_0x19ec46,this[_0xe75825(0x221)]=_0x463ddf;}[_0x87a36c(0x2ff)](_0x4d2d20){const _0x485a3c=_0x87a36c;this[_0x485a3c(0x1dc)](_0x4d2d20),this[_0x485a3c(0x258)](_0x4d2d20);}['transformRemoteChangeset'](_0x4efba9){const _0xe3feeb=_0x87a36c;let {unitID:_0xf78925}=_0x4efba9,{redoCache:_0x51e862}=this[_0xe3feeb(0x221)]['getRenderUnitById'](_0xf78925)[_0xe3feeb(0x2cc)](_0x195603)['getUndoRedoMutationParamsCache']();if(_0x51e862[_0xe3feeb(0x2f5)]===0x0)return _0x4efba9;let _0x40ffda=_0x3690a5['deepClone'](_0x4efba9[_0xe3feeb(0x341)][0x0]);for(let _0x4dbe0d=0x0;_0x4dbe0d<_0x51e862[_0xe3feeb(0x2f5)];_0x4dbe0d++){let _0x287e06={'id':_0xe3feeb(0x279),'params':{..._0x51e862[_0x4dbe0d]}},_0x462710=this['_transformService']['transformMutation'](_0x40ffda,_0x287e06,!0x1);if(_0x474f1b(_0x462710))throw _0x462710['error'];_0x40ffda=_0x462710['m1Prime'];}return{..._0x3690a5[_0xe3feeb(0x32d)](_0x4efba9),'mutations':[_0x40ffda]};}['_transformUndoRedoStack'](_0x3b39df){const _0x270c88=_0x87a36c;let {unitID:_0x21e245}=_0x3b39df,_0x412b9e=this[_0x270c88(0x221)][_0x270c88(0x3be)](_0x21e245)[_0x270c88(0x2cc)](_0x195603),{undoCache:_0x28dfdd,redoCache:_0x3e637d}=_0x412b9e[_0x270c88(0x1f6)]();if(_0x28dfdd[_0x270c88(0x2f5)]===0x0||_0x3e637d[_0x270c88(0x2f5)]===0x0)return;let _0x5016e6=[],_0x493802=[],_0xe43a6c=_0x3690a5['deepClone'](_0x3b39df[_0x270c88(0x341)][0x0]),_0x6a0496=_0x3690a5['deepClone'](_0x3b39df['mutations'][0x0]);for(let _0x3c74e6=_0x28dfdd['length']-0x1;_0x3c74e6>=0x0;_0x3c74e6--){let _0xe606d1={'id':_0x270c88(0x279),'params':{..._0x28dfdd[_0x3c74e6]}},_0x3cae55={'id':_0x270c88(0x279),'params':{..._0x3e637d[_0x3c74e6]}},_0x35226d=this[_0x270c88(0x203)][_0x270c88(0x238)](_0xe43a6c,_0xe606d1,!0x1),_0x610a3e=this[_0x270c88(0x203)]['transformMutation'](_0x6a0496,_0x3cae55,!0x1);if(_0x474f1b(_0x35226d))throw _0x35226d[_0x270c88(0x2ba)];if(_0x474f1b(_0x610a3e))throw _0x610a3e['error'];_0x5016e6[_0x270c88(0x354)](_0x35226d[_0x270c88(0x30d)][_0x270c88(0x1e0)]),_0x493802[_0x270c88(0x354)](_0x610a3e[_0x270c88(0x30d)][_0x270c88(0x1e0)]),_0xe43a6c=_0x35226d['m1Prime'],_0x6a0496=_0x610a3e[_0x270c88(0x254)];}_0x412b9e['setUndoRedoMutationParamsCache']({'undoCache':_0x5016e6,'redoCache':_0x493802});}[_0x87a36c(0x258)](_0x2c7494){const _0x3494f8=_0x87a36c;let {unitID:_0x308782}=_0x2c7494,_0x443bf8=this[_0x3494f8(0x221)][_0x3494f8(0x3be)](_0x308782)[_0x3494f8(0x2cc)](_0x195603),_0xcfc617=_0x443bf8[_0x3494f8(0x358)]();if(_0xcfc617==null)return;let _0xc647c0=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2c7494[_0x3494f8(0x2f3)],'actions':null,'textRanges':[_0xcfc617]}}],_0x3d6706=this['_transformService'][_0x3494f8(0x303)](_0x2c7494,_0xc647c0);if(!_0x1fe03b(_0x3d6706))throw _0x3d6706['error'];let _0x5e8908=_0x3d6706[_0x3494f8(0x30d)][0x0][_0x3494f8(0x1e0)]['textRanges'];Array[_0x3494f8(0x3ce)](_0x5e8908)&&_0x5e8908['length']&&_0x443bf8['setActiveRange'](_0x5e8908[0x0]);}};Vn=J([q(0x0,_0x366b2a),q(0x1,_0xc67b4e)],Vn);let Hn=class{constructor(_0x225c5a,_0x4796a7,_0x55e2b5){const _0x22c43e=_0x87a36c;this[_0x22c43e(0x31d)]=_0x225c5a,this[_0x22c43e(0x203)]=_0x4796a7,this[_0x22c43e(0x170)]=_0x55e2b5;}[_0x87a36c(0x292)](_0x3eb9a2){this['_transformHistoryAndStateStack'](_0x3eb9a2);}[_0x87a36c(0x3b3)](_0x3b6d71){const _0x864cc9=_0x87a36c;let {unitID:_0x1fda69}=_0x3b6d71,{collaboration:_0x2a6fb1}=this['_docStateChangeManagerService']['getStateCache'](_0x1fda69);if(_0x2a6fb1[_0x864cc9(0x2f5)]===0x0)return _0x3b6d71;let _0x27f334=_0x3690a5[_0x864cc9(0x32d)](_0x3b6d71[_0x864cc9(0x341)][0x0]);for(let _0x2259eb=0x0;_0x2259eb<_0x2a6fb1[_0x864cc9(0x2f5)];_0x2259eb++){let _0x10f30b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2a6fb1[_0x2259eb][_0x864cc9(0x25f)],..._0x2a6fb1[_0x2259eb][_0x864cc9(0x15a)]}},_0x52e132=this[_0x864cc9(0x203)][_0x864cc9(0x238)](_0x27f334,_0x10f30b,!0x1);if(_0x474f1b(_0x52e132))throw _0x52e132[_0x864cc9(0x2ba)];_0x27f334=_0x52e132[_0x864cc9(0x254)];}return{..._0x3690a5['deepClone'](_0x3b6d71),'mutations':[_0x27f334]};}['_transformHistoryAndStateStack'](_0xe81dcf){const _0x3b75ba=_0x87a36c;let {unitID:_0x340aa7}=_0xe81dcf,{history:_0x3bc613,collaboration:_0x559d4d}=this[_0x3b75ba(0x170)][_0x3b75ba(0x344)](_0x340aa7);if(_0x3bc613[_0x3b75ba(0x2f5)]===0x0&&_0x559d4d[_0x3b75ba(0x2f5)]===0x0)return;let _0x2128cd=[],_0x3de3e6=[],_0x4f7469=_0x3690a5['deepClone'](_0xe81dcf[_0x3b75ba(0x341)][0x0]),_0x28d63e=_0x3690a5[_0x3b75ba(0x32d)](_0xe81dcf[_0x3b75ba(0x341)][0x0]);for(let _0xab3694=_0x3bc613[_0x3b75ba(0x2f5)]-0x1;_0xab3694>=0x0;_0xab3694--){let _0x5ee2b9={'id':_0x3b75ba(0x279),'params':{'unitId':_0x3bc613[_0xab3694]['unitId'],..._0x3bc613[_0xab3694][_0x3b75ba(0x1e5)]}},_0x521d08={'id':_0x3b75ba(0x279),'params':{'unitId':_0x3bc613[_0xab3694][_0x3b75ba(0x25f)],..._0x3bc613[_0xab3694][_0x3b75ba(0x15a)]}},_0x118915=this[_0x3b75ba(0x203)][_0x3b75ba(0x238)](_0x4f7469,_0x5ee2b9,!0x1),_0x527aab=this['_transformService'][_0x3b75ba(0x238)](_0x28d63e,_0x521d08,!0x1);if(_0x474f1b(_0x118915))throw _0x118915[_0x3b75ba(0x2ba)];if(_0x474f1b(_0x527aab))throw _0x527aab[_0x3b75ba(0x2ba)];_0x2128cd[_0x3b75ba(0x354)]({..._0x3bc613[_0xab3694],'undoState':_0x118915[_0x3b75ba(0x30d)][_0x3b75ba(0x1e0)],'redoState':_0x527aab[_0x3b75ba(0x30d)][_0x3b75ba(0x1e0)]}),_0x4f7469=_0x118915[_0x3b75ba(0x254)],_0x28d63e=_0x527aab[_0x3b75ba(0x254)];}_0x4f7469=_0x3690a5[_0x3b75ba(0x32d)](_0xe81dcf[_0x3b75ba(0x341)][0x0]),_0x28d63e=_0x3690a5[_0x3b75ba(0x32d)](_0xe81dcf[_0x3b75ba(0x341)][0x0]);for(let _0x3178ad=_0x559d4d['length']-0x1;_0x3178ad>=0x0;_0x3178ad--){let _0x411f21={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x559d4d[_0x3178ad][_0x3b75ba(0x25f)],..._0x559d4d[_0x3178ad][_0x3b75ba(0x1e5)]}},_0x35494a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x559d4d[_0x3178ad]['unitId'],..._0x559d4d[_0x3178ad][_0x3b75ba(0x15a)]}},_0x3396f1=this[_0x3b75ba(0x203)][_0x3b75ba(0x238)](_0x4f7469,_0x411f21,!0x1),_0x266457=this[_0x3b75ba(0x203)][_0x3b75ba(0x238)](_0x28d63e,_0x35494a,!0x1);if(_0x474f1b(_0x3396f1))throw _0x3396f1[_0x3b75ba(0x2ba)];if(_0x474f1b(_0x266457))throw _0x266457[_0x3b75ba(0x2ba)];_0x3de3e6[_0x3b75ba(0x354)]({..._0x559d4d[_0x3178ad],'undoState':_0x3396f1[_0x3b75ba(0x30d)]['params'],'redoState':_0x266457[_0x3b75ba(0x30d)][_0x3b75ba(0x1e0)]}),_0x4f7469=_0x3396f1['m1Prime'],_0x28d63e=_0x266457[_0x3b75ba(0x254)];}this['_docStateChangeManagerService'][_0x3b75ba(0x264)](_0x340aa7,{'history':_0x2128cd,'collaboration':_0x3de3e6});}};Hn=J([q(0x0,_0x27756b(_0x25c197)),q(0x1,_0x366b2a),q(0x2,_0x27756b(_0x41ba99))],Hn);let Un=class{constructor(_0x23e9e9,_0x15d9fe){const _0x331351=_0x87a36c;this[_0x331351(0x333)]=_0x23e9e9,this[_0x331351(0x203)]=_0x15d9fe;}['prepareTransformSelections'](_0x438144){const _0x5dbf8a=_0x87a36c;var _0x2066bc;let _0x378041=this[_0x5dbf8a(0x333)][_0x5dbf8a(0x247)]()??[],_0xc29cfc=this[_0x5dbf8a(0x333)][_0x5dbf8a(0x360)]();if(_0x378041[_0x5dbf8a(0x2f5)]===0x0||_0xc29cfc==null)return null;let _0x27022a=_0x438144[_0x5dbf8a(0x2f3)],_0x1b5b55=[{'id':_0x5dbf8a(0x279),'params':{'unitId':_0x27022a,'actions':null,'textRanges':_0x378041}}],_0x44169b=this[_0x5dbf8a(0x203)][_0x5dbf8a(0x303)](_0x438144,_0x1b5b55);if(!_0x1fe03b(_0x44169b))throw _0x44169b[_0x5dbf8a(0x2ba)];let _0x23ce6b=(_0x2066bc=_0x44169b[_0x5dbf8a(0x30d)][0x0])==null?void 0x0:_0x2066bc['params'],_0x25b028=_0x23ce6b&&typeof _0x23ce6b==_0x5dbf8a(0x37e)&&_0x5dbf8a(0x2fd)in _0x23ce6b?_0x23ce6b[_0x5dbf8a(0x2fd)]:null;if(!Kn(_0x25b028))return null;let _0x45741e=Wn(_0x438144[_0x5dbf8a(0x341)]['some'](_0x136fde=>qn(_0x136fde[_0x5dbf8a(0x1e0)]))?_0x25b028['filter'](_0x5f18ca=>!('tableId'in _0x5f18ca)):_0x25b028,{..._0xc29cfc,'options':_0xc29cfc['options']?{..._0xc29cfc['options'],'wholeDocument':!0x1}:void 0x0}),_0x301815={'unitId':_0x27022a,'subUnitId':_0x27022a};this[_0x5dbf8a(0x333)][_0x5dbf8a(0x3ac)](_0x45741e,_0x301815);let _0x385e71=!0x0;return{'commit':()=>{_0x385e71=!0x1;},'rollback':()=>{_0x385e71&&(_0x385e71=!0x1,this['_docSelectionManagerService']['replaceSelectionInfoWithoutRefresh'](_0xc29cfc,_0x301815));}};}};Un=J([q(0x0,_0x27756b(_0x275ee4)),q(0x1,_0x366b2a)],Un);function Wn(_0x169de0,_0x1489c2){const _0x58427a=_0x87a36c;let _0x449444=[],_0x5ade7c=[];for(let _0x307c9a of _0x169de0)Gn(_0x307c9a)?_0x5ade7c['push'](_0x307c9a):_0x449444[_0x58427a(0x21d)](_0x307c9a);return{..._0x1489c2,'textRanges':_0x449444,'rectRanges':_0x5ade7c};}function Gn(_0x5050f5){return'tableId'in _0x5050f5;}function Kn(_0x25c74d){const _0x7793f0=_0x87a36c;return Array[_0x7793f0(0x3ce)](_0x25c74d)&&_0x25c74d['every'](_0xd9a388=>typeof _0xd9a388=='object'&&!!_0xd9a388&&_0x7793f0(0x204)in _0xd9a388&&_0x7793f0(0x1b6)in _0xd9a388);}function qn(_0x20b414){const _0x366cd6=_0x87a36c;return _0x20b414===_0x366cd6(0x271)?!0x0:Array[_0x366cd6(0x3ce)](_0x20b414)?_0x20b414[_0x366cd6(0x19f)](_0xb40662=>qn(_0xb40662)):!_0x20b414||typeof _0x20b414!=_0x366cd6(0x37e)?!0x1:Object['values'](_0x20b414)[_0x366cd6(0x19f)](_0x502633=>qn(_0x502633));}let Jn=class extends _0x2e1ec0{constructor(_0x290c67,_0x1d01f0,_0x27a95e,_0x1ff5f3,_0x2106a1,_0x179eed,_0x3bce5f){const _0x49b48e=_0x87a36c;super(),this[_0x49b48e(0x273)]=_0x290c67,this['_docTransformIMECacheService']=_0x1d01f0,this['_docTransformStateCacheService']=_0x27a95e,this['_docTransformSelectionsService']=_0x1ff5f3,this[_0x49b48e(0x39d)]=_0x2106a1,this[_0x49b48e(0x309)]=_0x179eed,this['_localeService']=_0x3bce5f,K(this,_0x49b48e(0x38d),new _0x400c7b(_0x38d232[_0x49b48e(0x28a)])),this['_initEntityListener']();}[_0x87a36c(0x1c0)](){const _0x54e1a6=_0x87a36c;this['disposeWithMe'](this[_0x54e1a6(0x273)][_0x54e1a6(0x1c9)][_0x54e1a6(0x310)](_0x1cee3b=>{const _0x5cfa51=_0x54e1a6;_0x1cee3b instanceof _0x3ca928&&_0x1cee3b[_0x5cfa51(0x177)]({'onTransformIME':_0x176787=>this['_docTransformIMECacheService'][_0x5cfa51(0x2ff)](_0x176787),'onTransformState':_0x5970f0=>this[_0x5cfa51(0x2fb)][_0x5cfa51(0x292)](_0x5970f0),'onPrepareTransformSelections':_0x5070fc=>this[_0x5cfa51(0x394)][_0x5cfa51(0x365)](_0x5070fc),'onSyncEditingCollabCursor':_0x46cfb5=>this[_0x5cfa51(0x39d)][_0x5cfa51(0x2da)](_0x46cfb5),'onTransformRemoteChangesetByIMECache':_0x484e4a=>this[_0x5cfa51(0x37d)][_0x5cfa51(0x3b3)](_0x484e4a),'onTransformRemoteChangesetByStateCache':_0x12e117=>this[_0x5cfa51(0x2fb)][_0x5cfa51(0x3b3)](_0x12e117)});}));}};Jn=J([q(0x0,_0x27756b(_0x371568)),q(0x1,_0x27756b(Vn)),q(0x2,_0x27756b(Hn)),q(0x3,_0x27756b(Un)),q(0x4,_0x27756b(_n)),q(0x5,_0x1ffcd0),q(0x6,_0x27756b(_0x19f7e2))],Jn);let Yn=class extends _0x2e1ec0{constructor(_0x2e1d92,_0x3f0acd,_0x30127d,_0x4a6a41){const _0x2fd115=_0x87a36c;super(),this['_injector']=_0x2e1d92,this['_httpService']=_0x3f0acd,this['_logService']=_0x30127d,this[_0x2fd115(0x288)]=_0x4a6a41,K(this,_0x2fd115(0x1d2),void 0x0),this['_init']();}[_0x87a36c(0x25d)](){const _0x507f3f=_0x87a36c;this[_0x507f3f(0x16d)](),this[_0x507f3f(0x2a5)](),this['_monkeyPatchLogService'](),this['_initUserListener']();}[_0x87a36c(0x36b)](){const _0x3bd717=_0x87a36c;this['disposeWithMe'](this[_0x3bd717(0x288)][_0x3bd717(0x1a3)][_0x3bd717(0x310)](_0x2a861a=>{const _0x51e641=_0x3bd717;this['_memberID']=_0x2a861a==null?void 0x0:_0x2a861a[_0x51e641(0x158)];}));}[_0x87a36c(0x16d)](){const _0x1ce16f=_0x87a36c;let _0x3b79bc=_0x239b3f=>{const _0x4fd91d=_0x3abf;var _0x44fd0d;this['_uploadLog']('error',_0x4fd91d(0x171)+_0x239b3f[_0x4fd91d(0x387)]+_0x4fd91d(0x28e)+_0x239b3f['filename']+':'+_0x239b3f[_0x4fd91d(0x1f0)]+':'+_0x239b3f['colno']+'\x0a'+(((_0x44fd0d=_0x239b3f[_0x4fd91d(0x2ba)])==null?void 0x0:_0x44fd0d[_0x4fd91d(0x299)])||''));};window['addEventListener'](_0x1ce16f(0x2ba),_0x3b79bc),this[_0x1ce16f(0x35d)](()=>{const _0x372afb=_0x1ce16f;window[_0x372afb(0x20b)](_0x372afb(0x2ba),_0x3b79bc);});}['_initUnhandledRejectionListener'](){const _0x274ffe=_0x87a36c;let _0x1df0c5=_0x2c9893=>{const _0xe11c12=_0x3abf;this[_0xe11c12(0x2f2)](_0xe11c12(0x2ba),'[Unhandled\x20Rejection]:\x20'+_0x2c9893['reason']);};window[_0x274ffe(0x3ad)](_0x274ffe(0x375),_0x1df0c5),this[_0x274ffe(0x35d)](()=>{const _0x1623ff=_0x274ffe;window[_0x1623ff(0x20b)](_0x1623ff(0x375),_0x1df0c5);});}[_0x87a36c(0x3c9)](){const _0x1d282a=_0x87a36c;let _0x30825f=this[_0x1d282a(0x1ac)][_0x1d282a(0x2ba)][_0x1d282a(0x3a3)](this[_0x1d282a(0x1ac)]);this[_0x1d282a(0x1ac)][_0x1d282a(0x2ba)]=(..._0x240997)=>{const _0x1ee6dc=_0x1d282a;let _0x14c44c=_0x240997[_0x1ee6dc(0x284)](_0x5d41f2=>_0x5d41f2 instanceof Error?_0x5d41f2[_0x1ee6dc(0x387)]+'\x0a'+_0x5d41f2['stack']:String(_0x5d41f2))[_0x1ee6dc(0x24b)]('\x20');this[_0x1ee6dc(0x2f2)]('error',_0x1ee6dc(0x2d5)+_0x14c44c),_0x30825f(..._0x240997);},this['disposeWithMe'](()=>{const _0x52f35c=_0x1d282a;this['_logService'][_0x52f35c(0x2ba)]=_0x30825f;});}[_0x87a36c(0x2f2)](_0x232d54,_0x1f6752){const _0x1cbe24=_0x87a36c;try{let _0x31a4d1={'userId':this[_0x1cbe24(0x1d2)],'logLabel':_0x232d54,'content':_0x1f6752};this[_0x1cbe24(0x1cb)][_0x1cbe24(0x37c)](_0x1cbe24(0x243),{'body':_0x31a4d1})[_0x1cbe24(0x2ed)](()=>{});}catch{}}};Yn=J([q(0x0,_0x27756b(_0x25c197)),q(0x1,_0x27756b(_0x88c090)),q(0x2,_0x31aa30),q(0x3,_0x27756b(_0x538451))],Yn);function Xn({state$:_0x15e839}){const _0x209b45=_0x87a36c;let _0x133edd=_0xb500c9(_0x15e839,null,!0x0);return _0x133edd?_0x1a1d5a(_0x209b45(0x308),{'data-u-comp':_0x209b45(0x39e),'role':_0x209b45(0x293),'className':_0x209b45(0x234),'children':[_0x51b6a5(_0x158935,{'className':_0x209b45(0x2a6)}),_0x51b6a5(_0x209b45(0x352),{'children':_0x133edd[_0x209b45(0x2bd)]}),_0x51b6a5(_0x382e18,{'size':_0x209b45(0x27f),'variant':_0x209b45(0x1df),'onClick':()=>window[_0x209b45(0x2a8)]['reload'](),'children':_0x133edd[_0x209b45(0x2ae)]})]}):null;}const Zn=_0x87a36c(0x2e8);let Qn=class extends _0x2e1ec0{constructor(_0x1ec924,_0x407ca9,_0x2db069,_0x4ccd8d,_0x1c9b58,_0x390ec3){const _0x2468b0=_0x87a36c;super(),this[_0x2468b0(0x19b)]=_0x1ec924,this['_messageService']=_0x407ca9,this[_0x2468b0(0x3bc)]=_0x2db069,this['_injector']=_0x4ccd8d,this[_0x2468b0(0x214)]=_0x390ec3,K(this,'_timeoutState$',new _0x400c7b(null)),K(this,_0x2468b0(0x17a),new Set()),K(this,_0x2468b0(0x3cc),new Map()),K(this,_0x2468b0(0x368),new Map()),K(this,'timeoutState$',this[_0x2468b0(0x3c1)]['asObservable']());let _0x170b75=()=>_0x52bd92(Xn,{'state$':this[_0x2468b0(0x36c)]});this['disposeWithMe'](_0x1c9b58[_0x2468b0(0x3bd)](_0x3be819[_0x2468b0(0x245)],()=>_0x5a61f2(_0x170b75,this[_0x2468b0(0x31d)]))),this[_0x2468b0(0x35d)](this[_0x2468b0(0x19b)][_0x2468b0(0x202)]['subscribe'](_0x443fce=>{const _0x2db1db=_0x2468b0;this[_0x2db1db(0x368)]=_0x443fce,_0x443fce['forEach'](_0x3cc54b=>this['_updateMessage'](_0x3cc54b));})),this[_0x2468b0(0x35d)](this[_0x2468b0(0x214)][_0x2468b0(0x30b)][_0x2468b0(0x310)](()=>{const _0x2e1d7a=_0x2468b0;this[_0x2e1d7a(0x368)][_0x2e1d7a(0x1e2)](_0x2b7107=>this[_0x2e1d7a(0x21c)](_0x2b7107));}));}[_0x87a36c(0x1b1)](){const _0x2a3eb5=_0x87a36c;this[_0x2a3eb5(0x17a)][_0x2a3eb5(0x1e2)](_0x29f0cb=>this[_0x2a3eb5(0x309)][_0x2a3eb5(0x355)](_0x29f0cb)),this['_messageIds'][_0x2a3eb5(0x2eb)](),this[_0x2a3eb5(0x3cc)][_0x2a3eb5(0x1e2)](({timeoutId:_0x3d935d})=>clearTimeout(_0x3d935d)),this[_0x2a3eb5(0x3cc)][_0x2a3eb5(0x2eb)](),this['_timeoutState$']['complete'](),super[_0x2a3eb5(0x1b1)]();}[_0x87a36c(0x21c)](_0x5c7107){const _0x435708=_0x87a36c;let _0x24153a=''+Zn+_0x5c7107['unitId'];if(_0x5c7107[_0x435708(0x1b4)]===_0x5e9641[_0x435708(0x3a5)]){this[_0x435708(0x21f)](_0x5c7107['unitId']),this[_0x435708(0x2bc)](_0x5c7107[_0x435708(0x25f)]),this[_0x435708(0x309)][_0x435708(0x355)](_0x24153a),this['_messageIds'][_0x435708(0x2d8)](_0x24153a);return;}if(!this[_0x435708(0x16b)](_0x5c7107[_0x435708(0x25f)])){this[_0x435708(0x21f)](_0x5c7107[_0x435708(0x25f)]),this['_clearTimeoutState'](_0x5c7107['unitId']),this[_0x435708(0x309)][_0x435708(0x355)](_0x24153a),this['_messageIds'][_0x435708(0x2d8)](_0x24153a);return;}if(_0x5c7107['stage']===_0x5e9641[_0x435708(0x3b7)]){this[_0x435708(0x21f)](_0x5c7107[_0x435708(0x25f)]),this[_0x435708(0x2bc)](_0x5c7107[_0x435708(0x25f)]),this[_0x435708(0x309)][_0x435708(0x345)]({'id':_0x24153a,'type':_0x106a5c[_0x435708(0x196)],'content':this[_0x435708(0x3bc)]['t']('collaboration-client-ui.session.connection-failed')}),this[_0x435708(0x17a)]['delete'](_0x24153a);return;}if(_0x5c7107[_0x435708(0x1b4)]!==_0x5e9641[_0x435708(0x18b)]||_0x5c7107[_0x435708(0x18f)]<=0xa){this[_0x435708(0x21f)](_0x5c7107[_0x435708(0x25f)]),this[_0x435708(0x309)][_0x435708(0x355)](_0x24153a),this[_0x435708(0x17a)]['delete'](_0x24153a);return;}this[_0x435708(0x26c)](_0x5c7107)||(this[_0x435708(0x309)][_0x435708(0x345)]({'id':_0x24153a,'type':_0x106a5c[_0x435708(0x189)],'duration':0x1/0x0,'content':this[_0x435708(0x3bc)]['t'](_0x435708(0x2ce))+'\x20'+_0x5c7107[_0x435708(0x1fd)]+'/'+_0x5c7107[_0x435708(0x18f)]}),this['_messageIds'][_0x435708(0x38c)](_0x24153a));}[_0x87a36c(0x26c)](_0x17996d){const _0x177525=_0x87a36c;let _0x19d70b=this[_0x177525(0x3cc)][_0x177525(0x20c)](_0x17996d[_0x177525(0x25f)]);if((_0x19d70b==null?void 0x0:_0x19d70b['loadedBlocks'])===_0x17996d[_0x177525(0x1fd)])return _0x19d70b[_0x177525(0x1a2)];this[_0x177525(0x21f)](_0x17996d[_0x177525(0x25f)]);let _0x24fba6=setTimeout(()=>{const _0x31d0c=_0x177525;let _0x147870=this[_0x31d0c(0x3cc)][_0x31d0c(0x20c)](_0x17996d['unitId']);if(!_0x147870||_0x147870[_0x31d0c(0x1a1)]!==_0x24fba6)return;_0x147870[_0x31d0c(0x1a2)]=!0x0;let _0x3516a7=''+Zn+_0x17996d['unitId'];this[_0x31d0c(0x309)]['remove'](_0x3516a7),this[_0x31d0c(0x17a)][_0x31d0c(0x2d8)](_0x3516a7),this[_0x31d0c(0x3c1)][_0x31d0c(0x1b3)]({'unitId':_0x17996d[_0x31d0c(0x25f)],'content':this[_0x31d0c(0x3bc)]['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x17996d['loadedBlocks']),String(_0x17996d[_0x31d0c(0x18f)])),'refreshLabel':this[_0x31d0c(0x3bc)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this[_0x177525(0x3cc)]['set'](_0x17996d['unitId'],{'loadedBlocks':_0x17996d['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x24fba6}),!0x1;}['_clearBlockProgressWatch'](_0x12672a){const _0xff2dd2=_0x87a36c;let _0x309ae5=this['_blockProgressWatches']['get'](_0x12672a);_0x309ae5&&(clearTimeout(_0x309ae5[_0xff2dd2(0x1a1)]),this[_0xff2dd2(0x3cc)]['delete'](_0x12672a),this['_clearTimeoutState'](_0x12672a));}[_0x87a36c(0x2bc)](_0x3d1b52){const _0x19854f=_0x87a36c;var _0x3a18d2;((_0x3a18d2=this[_0x19854f(0x3c1)][_0x19854f(0x3a2)])==null?void 0x0:_0x3a18d2[_0x19854f(0x25f)])===_0x3d1b52&&this['_timeoutState$'][_0x19854f(0x1b3)](null);}[_0x87a36c(0x16b)](_0x4d76e8){const _0x245f99=_0x87a36c;let _0x1a8fc1=this[_0x245f99(0x214)]['getParam'](_0x245f99(0x1fc));return!_0x1a8fc1||_0x1a8fc1===_0x4d76e8;}};Qn=J([q(0x0,_0x27756b(_0x11bb00)),q(0x1,_0x1ffcd0),q(0x2,_0x27756b(_0x19f7e2)),q(0x3,_0x27756b(_0x25c197)),q(0x4,_0xf04e95),q(0x5,Q)],Qn);let $n=class extends _0x2e1ec0{constructor(_0x2b6d63,_0x4e43be,_0xf85501){const _0x56d0d5=_0x87a36c;var _0x5f3f7b;super(),this['_configService']=_0x2b6d63,this[_0x56d0d5(0x2b6)]=_0x4e43be,this[_0x56d0d5(0x39f)]=_0xf85501,K(this,_0x56d0d5(0x1da),new Map()),K(this,_0x56d0d5(0x2f4),new Map()),K(this,'_activeSaveTaskMap',new Map()),K(this,_0x56d0d5(0x2fa),!0x1),this[_0x56d0d5(0x2fa)]=!((_0x5f3f7b=this['_configService'][_0x56d0d5(0x2c6)](_0x1d37d6))!=null&&_0x5f3f7b[_0x56d0d5(0x1af)]);}[_0x87a36c(0x1ae)](){this['_disabled']=!0x0;}[_0x87a36c(0x219)](){const _0x2755bc=_0x87a36c;this[_0x2755bc(0x2fa)]=!0x1;}get['saveTaskMap'](){const _0x1f5f8d=_0x87a36c;return this[_0x1f5f8d(0x2f4)];}['dispose'](){const _0x145332=_0x87a36c;this[_0x145332(0x2ef)]()[_0x145332(0x30a)](()=>super['dispose']());}async[_0x87a36c(0x228)](_0x4386c1){const _0x670ee5=_0x87a36c;return this[_0x670ee5(0x2fa)]?null:this[_0x670ee5(0x2b6)]['getItem'](_0x35b96f(_0x4386c1));}async[_0x87a36c(0x294)](_0x30a021,_0x36e7ba){const _0x4e66b8=_0x87a36c;let _0x323ec1=this[_0x4e66b8(0x2b6)][_0x4e66b8(0x22b)](_0x35b96f(_0x30a021),_0x36e7ba);return this[_0x4e66b8(0x17d)](_0x30a021,_0x323ec1),!!await _0x323ec1;}async[_0x87a36c(0x186)](_0x3eb896,_0x892d){const _0x54cd69=_0x87a36c;let _0x15a2fb=this['_cachedData'][_0x54cd69(0x20c)](_0x3eb896)??await this['_localStorageService'][_0x54cd69(0x26f)](_0x35b96f(_0x3eb896));if(!_0x15a2fb)return;let _0x1cbd91=Date[_0x54cd69(0x2e1)](),_0x42ba73=new Date(_0x1cbd91)[_0x54cd69(0x24d)]();await this[_0x54cd69(0x2b6)][_0x54cd69(0x22b)](_0x35b96f(_0x3eb896)+_0x54cd69(0x2c5)+_0x1cbd91,{'reason':_0x892d,'createdAt':_0x42ba73,'data':_0x15a2fb});}async['clearOfflineData'](_0x1dc43f){const _0x3afdc4=_0x87a36c;let _0x2e0781=this['_saveTaskMap'][_0x3afdc4(0x20c)](_0x1dc43f);_0x2e0781!==void 0x0&&(window[_0x3afdc4(0x2e7)](_0x2e0781),this[_0x3afdc4(0x2f4)][_0x3afdc4(0x2d8)](_0x1dc43f));let _0x295b5a=this[_0x3afdc4(0x32b)]['get'](_0x1dc43f);_0x295b5a&&await Promise[_0x3afdc4(0x31e)](_0x295b5a),this[_0x3afdc4(0x1da)][_0x3afdc4(0x2d8)](_0x1dc43f),await this[_0x3afdc4(0x2b6)][_0x3afdc4(0x15b)](_0x35b96f(_0x1dc43f));}[_0x87a36c(0x23f)](_0x3e9701,_0x3b71b1,_0x1104cf,_0x2fc57a){const _0x462815=_0x87a36c;let _0x527909=this[_0x462815(0x39f)][_0x462815(0x1b0)](_0x3e9701);this['_cachedData']['set'](_0x3e9701,{'unitID':_0x3e9701,'type':_0x3b71b1,'awaitingChangeset':_0x1104cf,'mutations':_0x2fc57a,'rev':_0x527909}),this['_saveTaskMap'][_0x462815(0x364)](_0x3e9701)||this[_0x462815(0x1be)](_0x3e9701);}[_0x87a36c(0x1be)](_0x2a6397){const _0x436185=_0x87a36c;let _0x5236f0=this[_0x436185(0x231)]();_0x5236f0===0x0?this['_saveCache'](_0x2a6397):this[_0x436185(0x2f4)][_0x436185(0x19c)](_0x2a6397,window[_0x436185(0x1f4)](()=>this[_0x436185(0x328)](_0x2a6397),_0x5236f0));}[_0x87a36c(0x231)](){const _0x2692a8=_0x87a36c;return this[_0x2692a8(0x272)]['getConfig'](_0x12dffe)??_0x201675;}['_saveCache'](_0x47bd9c){const _0x13d8c2=_0x87a36c;let _0x3f44ad=this[_0x13d8c2(0x2f4)][_0x13d8c2(0x20c)](_0x47bd9c);_0x3f44ad!==void 0x0&&window[_0x13d8c2(0x2e7)](_0x3f44ad);let _0x6c7f4b=this[_0x13d8c2(0x2b6)]['setItem'](_0x35b96f(_0x47bd9c),this[_0x13d8c2(0x1da)]['get'](_0x47bd9c))[_0x13d8c2(0x30a)](()=>this[_0x13d8c2(0x2f4)]['delete'](_0x47bd9c));return this['_trackActiveSaveTask'](_0x47bd9c,_0x6c7f4b),_0x6c7f4b;}[_0x87a36c(0x17d)](_0x270d0d,_0x45dead){const _0x34977d=_0x87a36c;let _0x463458=this[_0x34977d(0x32b)]['get'](_0x270d0d);_0x463458||(_0x463458=new Set(),this[_0x34977d(0x32b)][_0x34977d(0x19c)](_0x270d0d,_0x463458)),_0x463458['add'](_0x45dead);let _0x2dca77=()=>{const _0x41fa2f=_0x34977d;_0x463458['delete'](_0x45dead),_0x463458[_0x41fa2f(0x270)]===0x0&&this['_activeSaveTaskMap']['delete'](_0x270d0d);};_0x45dead['then'](_0x2dca77,_0x2dca77);}async[_0x87a36c(0x2ef)](){const _0x5573e0=_0x87a36c;let _0x5b8d48=[];this[_0x5573e0(0x2f4)][_0x5573e0(0x1e2)]((_0x355994,_0xeeabb2)=>{const _0x3ce070=_0x5573e0;window[_0x3ce070(0x2e7)](_0x355994),_0x5b8d48[_0x3ce070(0x21d)](this[_0x3ce070(0x328)](_0xeeabb2)[_0x3ce070(0x30a)](()=>{const _0x1b4639=_0x3ce070;this[_0x1b4639(0x2f4)][_0x1b4639(0x2d8)](_0xeeabb2);}));}),await Promise[_0x5573e0(0x1a9)](_0x5b8d48);}};$n=J([q(0x0,_0x1b95f3),q(0x1,_0x2bdb10),q(0x2,_0x27756b(_0x4edc47))],$n);var er=class extends _0x172cd9{constructor(){const _0x508883=_0x87a36c;super(),K(this,_0x508883(0x30b),void 0x0),this[_0x508883(0x30b)]=_0x3bd2b7(window,_0x508883(0x371))[_0x508883(0x1a8)](_0xefeb1b(this[_0x508883(0x198)]),_0x2d9815({'bufferSize':0x1,'refCount':!0x0}),_0x27c19b(void 0x0));}[_0x87a36c(0x320)](_0x4d0cd7,_0x19e00f,_0x41304c=!0x1){const _0x5416bf=_0x87a36c;let _0xe1bee8=new URL(window['location'][_0x5416bf(0x200)]);_0xe1bee8[_0x5416bf(0x29a)][_0x5416bf(0x19c)](_0x4d0cd7,_0x19e00f),_0x41304c?window[_0x5416bf(0x302)][_0x5416bf(0x256)]('','',_0xe1bee8['toString']()):window[_0x5416bf(0x302)][_0x5416bf(0x216)]('','',_0xe1bee8[_0x5416bf(0x24e)]());}['removeParam'](_0x4d6f84,_0x58693f=!0x1){const _0x15a8ea=_0x87a36c;let _0x312358=new URL(window[_0x15a8ea(0x2a8)][_0x15a8ea(0x200)]);_0x312358[_0x15a8ea(0x29a)]['delete'](_0x4d6f84),_0x58693f?window['history'][_0x15a8ea(0x256)]('','',_0x312358[_0x15a8ea(0x24e)]()):window['history']['pushState']('','',_0x312358[_0x15a8ea(0x24e)]());}['getParam'](_0x1709d4){const _0x1cfd7b=_0x87a36c;return new URL(window[_0x1cfd7b(0x2a8)][_0x1cfd7b(0x200)])[_0x1cfd7b(0x29a)][_0x1cfd7b(0x20c)](_0x1709d4)??void 0x0;}};let $=class extends _0x8bb285{constructor(_0x5c044a=dn,_0x1df231,_0x7348d7,_0x53ed91,_0x5a19cf){const _0x566fea=_0x87a36c;super(),this[_0x566fea(0x39a)]=_0x5c044a,this['_renderManagerService']=_0x1df231,this['_injector']=_0x7348d7,this[_0x566fea(0x272)]=_0x53ed91,this['_commandService']=_0x5a19cf;let {..._0x29eb16}=_0x2a1758({},dn,this[_0x566fea(0x39a)]);this['_configService'][_0x566fea(0x1fa)](_0x566fea(0x370),_0x29eb16);}[_0x87a36c(0x253)](){const _0x2ebf84=_0x87a36c;this['_registerDependencies'](),this[_0x2ebf84(0x35d)](this['_commandService'][_0x2ebf84(0x2b1)](X)),this[_0x2ebf84(0x324)]();}[_0x87a36c(0x3b4)](){const _0x5cabf4=_0x87a36c;this[_0x5cabf4(0x1aa)]();}[_0x87a36c(0x33a)](){const _0x42078c=_0x87a36c;var _0x1a6919;let _0x2e9ed0=[[mn],[Q,{'useClass':er}],[_0x2a939f,{'useClass':_0x36ccf0}],[_0xd043a9,{'useClass':$n}],[Y],[zn],[Z],[Ln],[Bn],[Qn]];this[_0x42078c(0x39a)][_0x42078c(0x356)]!==!0x1&&_0x2e9ed0['push']([Un],[Vn],[Hn],[_n],[Jn],[fn]),this[_0x42078c(0x39a)]['enableFrontendLog']&&_0x2e9ed0[_0x42078c(0x21d)]([Yn]),_0x180690(this[_0x42078c(0x31d)],_0x224fc9(_0x2e9ed0,(_0x1a6919=this[_0x42078c(0x39a)])==null?void 0x0:_0x1a6919[_0x42078c(0x298)]));}['_registerRenderDependencies'](){const _0x10c9d8=_0x87a36c;this[_0x10c9d8(0x39a)]['enableDocumentCollaborationUI']!==!0x1&&this['disposeWithMe'](this['_renderManagerService'][_0x10c9d8(0x255)](_0x5efd3b[_0x10c9d8(0x398)],[Dn])),this[_0x10c9d8(0x35d)](this['_renderManagerService'][_0x10c9d8(0x255)](_0x5efd3b['UNIVER_SHEET'],[kn]));}[_0x87a36c(0x324)](){const _0x5728f6=_0x87a36c;_0x23c5a9(this[_0x5728f6(0x31d)],[[Z],[Ln],[Y],[zn],[Bn],[Qn]]),this[_0x5728f6(0x39a)][_0x5728f6(0x356)]!==!0x1&&_0x23c5a9(this['_injector'],[[Jn],[fn]]),this[_0x5728f6(0x39a)]['enableFrontendLog']&&_0x23c5a9(this['_injector'],[[Yn]]);}};K($,'pluginName',_0x87a36c(0x33c)),K($,'packageName',ln),K($,_0x87a36c(0x35f),un),$=J([_0x4cbe11(_0x3f124e,_0x42f7f9,_0xb81a5b,_0xadda08,_0x4447fd,_0x8d1833,_0x273b5d),q(0x1,_0xc67b4e),q(0x2,_0x27756b(_0x25c197)),q(0x3,_0x1b95f3),q(0x4,_0x204dc2)],$);let tr=class extends _0x25b19d{constructor(_0x3b9ec7,_0x1df9cb,_0x375e78,_0x14a768,_0x29a32e){super(_0x3b9ec7,_0x1df9cb,_0x375e78,_0x14a768,_0x29a32e);}async[_0x87a36c(0x36e)](_0x99830e){const _0x2f46d7=_0x87a36c;let _0x3200bd=await this[_0x2f46d7(0x24a)](),_0x41df34=this['_createSocketURL'](_0x99830e,_0x3200bd);return this[_0x2f46d7(0x15c)](_0x41df34);}[_0x87a36c(0x220)](_0x13a48b,_0x543b51){const _0x3797c6=_0x87a36c;let _0x3de5de=typeof window>'u'?new URL(_0x13a48b):new URL(_0x13a48b,window[_0x3797c6(0x2a8)][_0x3797c6(0x191)]);_0x3de5de['searchParams'][_0x3797c6(0x19c)](_0x3797c6(0x269),_0x543b51);let _0x49bdaa=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x3797c6(0x304)]);return _0x49bdaa[_0x3797c6(0x20c)]('runId')&&_0x3de5de[_0x3797c6(0x29a)][_0x3797c6(0x19c)](_0x3797c6(0x382),_0x49bdaa[_0x3797c6(0x20c)]('runId')),_0x3de5de[_0x3797c6(0x24e)]();}async['_getSessionTicket'](){const _0x2796da=_0x87a36c;var _0x4e0a25;let _0x371cff=this[_0x2796da(0x272)][_0x2796da(0x2c6)](_0x1d37d6),_0x5e711b=(_0x371cff==null?void 0x0:_0x371cff[_0x2796da(0x2dc)])??_0x12f021;return((_0x4e0a25=(await this[_0x2796da(0x1cb)]['get'](_0x5e711b,{'headers':{'Content-Type':_0x2796da(0x374)}}))[_0x2796da(0x300)])==null?void 0x0:_0x4e0a25[_0x2796da(0x381)])??'';}};tr=J([q(0x0,_0x27756b(_0x25c197)),q(0x1,_0x27756b(_0x88c090)),q(0x2,_0x1b95f3),q(0x3,_0x31aa30),q(0x4,_0x407610)],tr);let nr=class extends _0x2e1ec0{constructor(_0x4adba4,_0x542bc6,_0x4528cb){const _0x4384ff=_0x87a36c;super(),this[_0x4384ff(0x349)]=_0x4adba4,this[_0x4384ff(0x1cb)]=_0x542bc6,this['_configService']=_0x4528cb;}async[_0x87a36c(0x274)](_0x217f5c,_0x5bbd2d,_0x1a6df7,..._0x1fac5f){const _0x1e0aa4=_0x87a36c;let _0x5a92f2=this['_instanceService']['getFocusedUnit']();if(!_0x5a92f2)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x135d8b=(this[_0x1e0aa4(0x272)][_0x1e0aa4(0x2c6)](_0x1ab0d2)??_0x50ff59)+'/'+_0x217f5c+_0x1e0aa4(0x185)+_0x5bbd2d,_0x4e114d={'scriptId':_0x217f5c,'runId':new URL(window[_0x1e0aa4(0x2a8)][_0x1e0aa4(0x200)])[_0x1e0aa4(0x29a)]['get'](_0x1e0aa4(0x382))??'','function':_0x5bbd2d,'unitId':_0x5a92f2[_0x1e0aa4(0x181)](),'argsOfFunction':JSON['stringify'](_0x1fac5f),'invokeId':_0x1a6df7[_0x1e0aa4(0x319)]??'','executionId':_0x1a6df7[_0x1e0aa4(0x197)]??''};try{let _0x35fe15=await this[_0x1e0aa4(0x1cb)]['post'](_0x135d8b,{'body':_0x4e114d});return _0x35fe15['body']['error']&&_0x35fe15[_0x1e0aa4(0x300)][_0x1e0aa4(0x2ba)][_0x1e0aa4(0x3a9)]!==_0x4c32fa['OK']?'Failed':_0x35fe15[_0x1e0aa4(0x300)][_0x1e0aa4(0x27d)];}catch{return _0x1e0aa4(0x268);}}};nr=J([q(0x0,_0x5b5bb5),q(0x1,_0x27756b(_0x88c090)),q(0x2,_0x1b95f3)],nr);const rr=0x7530,ir=_0x87a36c(0x2aa);function _0x3528(){const _0x25e128=['assignAColorForMemberID','text','collaboration-client-ui.permission.content','ONLINE','values','getCurrentTypeOfUnit$','removeEventListener','get','_dataLoaderService','from','subUnitId','_onCursorUpdate','collaboration-client-ui.collabStatus.synced','USERS_LEAVE','activate','_urlService','_cursor','pushState','width','sheetId','enableLocalCache','arc','getCurrentUnitOfType','_updateMessage','push','loading','_clearBlockProgressWatch','_createSocketURL','_renderManagerService','_highlightSecond','addObject','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_heartbeatTimer','rgba(','collaboration-client-ui.session.connection-failed','loadOfflineData','_isDisposed','_disposeEntity','setItem','collab-rect-range-','columnGroupId','labelPosition','_handleJoinEvent','FromArray','_getSaveTimeout','PERMISSION_DENIED','pageType','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','_cursorShapes','_refreshCollabCursors','univer-text-blue-500','transformMutation','_assignedColors','SOCKET_FAILED_RETRY','848Pbwhjm','_syncPresenceStatusComponents','univer-transition-all\x20univer-duration-200','endColumn','updateOfflineData','getAncestorScale','update','_offsetY','/universer-api/frontend/logs','collaboration-client-ui.conflict.retry','GLOBAL','isFinite','getDocRanges','_initStatusListener','_showText','_getSessionTicket','join','i18nKey','toISOString','toString','event$','_hideTimer','blue.400','pageIndex','onStarting','m1Prime','registerRenderModule','replaceState','_colorIndex','_transformPreviousActiveRange','351527sflIGt','contains','row','_name','_init','data','unitId','debug','stringify','_startEntity','_setupSubUnitSync','setStateCache','_removeClearOtherTimer','_updateCollabCursors','black','Failed','sessionTicket','filter','FETCH_MISS','_watchBlockProgress','purple.300','max','getItem','size','tableSource','_configService','_collaborationController','runOnServer','_presenceStatusRegistrations','collabCursorState$','polite','getUnhiddenWorksheets','doc.mutation.rich-text-editing','9GxyPyT','_draw','_initStatusComponent','result','_adapterRegistry','small','HEADER','setRemotePresence','getCoordRelativeToViewport','_collabCursorState$','map','cursorInfo','removeRemotePresence','selectedIds','_collaborationSessionService','_initEvent','NOT_COLLAB','saveImage','_hover','_bindAdapter','\x20at\x20','_updateURLWithCurrentState','getTypeOfUnitDisposed$','collaboration-client-ui.conflict.processing','transformStateCache','alert','saveOfflineData','collaboration-client-ui.operation.update-remote-unit-presence','...','_selfUnitIDs','override','stack','searchParams','complete','status$','showText','strokeWidth','indicator','isActive','status','univer-text-gray-400','_docSkeleton','RECT','_initUnhandledRejectionListener','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','_isBlinkVisible','location','_uiPartsService','ACTIVE_UNIT_EVENT_CHANNEL','TEXT','getUnit','state','refreshLabel','collab-text-anchor-','_syncAdapters','registerCommand','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','77490kDmxkn','top','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_localStorageService','loadUnit',',\x200.2)','_replaceConflictNotification','error','_eventUnsubscribe','_clearTimeoutState','content','OTHER_CLIENTS_EDITING','_removeCollabCursors','_backgroundColor','Warning','type','_getAnchorBounding','14rMvxog',':backup:','getConfig','univer-border-none\x20univer-bg-transparent','saveTaskMap','key','_syncEditingCollabCursorService','collaboration-client-ui.session.collaboration-timeout','with','collaboration-client-ui.session.will-retry','collaboration-client-ui.collabStatus.fetchMiss','currentSkeleton$','selection','_labelPosition','color','_cursorInfo$','CONFLICT_CACHE_CLEAR_FAILED','[LogService\x20Error]:\x20','selections','_adapterDisposables','delete','onPointerMove$','syncEditingCollabCursor','_disposeEntitiesForType','wsSessionTicketUrl','makeDirty','getCurrentSelections','getSheetBySheetId','univer-inline-flex\x20univer-items-center\x20univer-justify-center','now','RemoveRowCommandId','OPERATION','clearInterval','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','segmentPage','clearTimeout','snapshot-loading-','send','column','clear','513728DzSsGf','catch','getValue','exhaustSavingTask','setShapeProps','_context','_uploadLog','unitID','_saveTaskMap','length','_drawTextRange','font','_handleHover','slice','_disabled','_docTransformStateCacheService','default','textRanges','yellow.400','transformIMECache','body','_handleLeaveEvent','history','transformMutationsWithChangeset','search','_drawAnchor','focused$','@univerjs-pro/collaboration-client-ui','div','_messageService','then','urlChange$','getSheetId','m2Prime','_commandService','_labelHorizontalPosition','subscribe','_anchorDot','rgba','getRangePointData','OTHER_CLIENT_EDITING','_unitStatus','rgba(255,\x20255,\x20255,\x200.01)','clearRemotePresences','_updateLocalCursor','invokeId','getCellIndexByOffset','_presenceAdapterRegistry','statusUIPart','_injector','allSettled','_disposed','setParam','Enter','#FFF','fill','_initDependencies','disposeUnit','moveTo','_updateSubUnitFromURLParams','_saveCache','_conflictNotification','SUBMIT_CHANGESET_TIMEOUT','_activeSaveTaskMap','preventDefault','deepClone','_registerPresenceStatusComponent','subscribeEvent','_initialized','startColumn','CONFLICT_PROCESSING','_docSelectionManagerService','_collabSessionService','editingUnit','startsWith','setAlpha','NO_OTHER_CLIENTS_EDITING','measureText','_registerDependencies','icon','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collaboration-client-ui.snapshotLoading.refresh','name','height','unitType','mutations','getMember','green.600','getStateCache','show','requireSession','_localCacheService','_online','_instanceService','true','transformByState','createInstance','button','reload','_scheduleClearOtherTimer','static','_collaborationUIEventService','span','evenodd','unshift','remove','enableDocumentCollaborationUI','startRow','getActiveRange','sessionStatus$','AWAITING_WITH_PENDING','univer-text-green-500','_anchor','disposeWithMe','getFocusedUnit','version','getSelectionInfo','0.2)','getActiveSheet','10982140HUxPft','has','prepareTransformSelections','min','collaboration-client-ui.collaboration.offline-data-not-saved','_latestStates','_univerInstanceService','roomMembers','_initUserListener','timeoutState$','collaboration-client-ui.conflict.title','createSocket','endRow','collaboration-client-ui.config','popstate','storage','collaboration-client-ui.conflict.clearFailed','application/json','unhandledrejection','getCollabCursors$','presenceKind','univer-m-0\x20univer-p-0','rgb','getColorFromTheme','registerRefRange','post','_docTransformIMECacheService','object','35182069KhFIcE','_handleCursorUpdate','ticket','runId','_notificationService','_onCursorDelete','toPrimitive','cursorInfo$','message','bottom','_toggleOffline','_startSheetCollabCursor','_refRangeService','add','_status$','includes','_adapter','getParam','_shapes','_document','number','_docTransformSelectionsService','collaboration-client-ui.collabStatus.offline','decorate','_getScale','UNIVER_DOC','tooltipKey','_config','drawWith','eventID','_docSyncEditingCollabCursorService','snapshot-loading-timeout','_revisionService','_themeService','\x20-\x20','value','bind','canRenderAnchor','COMPLETE','_startDocCollabCursor','_pointerMoveDisposable','engine','code','getCollabEntity$','_showConflictProcessingNotification','replaceSelectionInfoWithoutRefresh','addEventListener','getAllUnitsForType','_getSheetObject','_textBubble','imageSourceType','setInterval','transformRemoteChangeset','onRendered','_session','UPDATE_CURSOR','ERROR','onPointerEnter$','flatMap','hide','highlightSecond','_localeService','registerComponent','getRenderUnitById','dark:focus:!univer-ring-offset-gray-800','localPresence$','_timeoutState$','function','uni.network.url-service','240Ljpzyn','_showConflictCacheClearFailedNotification','roomMembers$','prototype','shareInterval','_monkeyPatchLogService','_cursors','_handleEvent','_blockProgressWatches','call','isArray','univer-flex\x20univer-items-center\x20univer-justify-center','bold\x2013px\x20Arial,\x20sans-serif','_getMergeRange','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','setOffsetY','memberID','addClipboardHook','redoState','removeItem','_doCreateSocket','_roomMembers$','fillText','60lNxDuz','_scheduleHeartbeat','SOCKET_FAILED','CONFLICT','UNIVER_SHEET','_getLighterColor','spin','executeCommand','_pendingEntities','hovered','getCurrentSkeleton','findNodePositionByCharIndex','_isVisibleUnit','resize','_initWindowErrorListener','onMouseMove','collaboration-client-ui.collabStatus.syncing','_docStateChangeManagerService','[Window\x20Error]:\x20','getMemberID','pointer','_initCommandExecutedListener','onPointerLeave$','_id','addHandlerCallback','collab-text-range-','_initResize','_messageIds','_removeRemotePresence','save','_trackActiveSaveTask','colorClass','_handleHeartbeatEvent','getScrollXYInfoByViewport','getUnitId','activeSheet$','getSkeleton','adapters$','/run/','backupOfflineData','univer-h-8\x20univer-w-8\x20univer-rounded-lg','ranges','Loading','restore','LOADING_BLOCKS','_sendLocalPresence','_docSkeletonManagerService','_ensureSubject','totalBlocks','collaboration-client-ui.collaboration.closeRoom','origin','toRgbString','focusedId','columnIndex','_scene','Error','executionId','dispose$','_beforeCloseService','5971qIhpzi','_snapshotLoadingService','set','symbol','[CollaborationDataLoaderController]','some','_lastPointer','timeoutId','timedOut','socket$','_memberService','offsetY','4WBxsFT','JOIN_ROOM_FAILED','pipe','all','_registerRenderDependencies','kind','_logService','_unitOnClients','disableLocalCache','enableOfflineEditing','getCurrentRevOfUnit','dispose','defineProperty','next','stage','Unknown\x20user','endOffset','lineTo','_blinkIntervalTimer','parseInt','getMergeData','_hovered','_render','_drawRectRange','_scheduleSaving','_clearRemotePresences','_initEntityListener','_onRefRangeChange','SYNCED','_sheetSkeletonManagerService','onCommandExecuted','init','_stopBlinking','fillStyle','split','entityInit$','highlight','_httpService','_retryingConflictCacheUnitIDs','addObjects','_toggleOnline','unsubscribe','_send','_docClipboardService','_memberID','_range','_colorAssignService','backgroundColor','find','onTransformChange$','InsertColCommandId','asObservable','_cachedData','triggerDblclick','_transformUndoRedoStack','_collabCursorController','_blinkTimer','primary','params','getTypeOfUnitAdded$','forEach','_setupBeforeClosingHandler','_entities','undoState','2QOtyiq','beginPath','_clearOtherTimers','HEADER_MENU','newValue','_startBlinking','clickable','univer-appearance-none','_color','OFFLINE','lineno','_imageIoService','DeleteRangeMoveUpCommandId','currentTheme$','setTimeout','3193548JyAPVe','getUndoRedoMutationParamsCache','subunit','_highlight','finally','setConfig','reconnect','unit','loadedBlocks','string','FOOTER','href','_entityInit$','state$','_transformService','startOffset'];_0x3528=function(){return _0x25e128;};return _0x3528();}var ar=class extends _0x2e1ec0{constructor(){const _0x3e79a7=_0x87a36c;super(),K(this,_0x3e79a7(0x176),_0x5692c3()),K(this,_0x3e79a7(0x297),new Set()),K(this,_0x3e79a7(0x1ad),new Map()),K(this,_0x3e79a7(0x225),null),K(this,'_clearOtherTimers',new Map()),K(this,_0x3e79a7(0x315),new Map()),this[_0x3e79a7(0x25d)]();}[_0x87a36c(0x1b1)](){const _0x3ec5cc=_0x87a36c;super[_0x3ec5cc(0x1b1)](),this['_clearOtherTimers'][_0x3ec5cc(0x1e2)]((_0x258b80,_0x1ab057)=>this['_removeClearOtherTimer'](_0x1ab057)),this[_0x3ec5cc(0x225)]&&window[_0x3ec5cc(0x2e4)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x5894e3){const _0x1ea48d=_0x87a36c;return this[_0x1ea48d(0x18e)](_0x5894e3)[_0x1ea48d(0x1a8)](_0x4f92af());}[_0x87a36c(0x335)](_0x1a3d26){const _0x4bf489=_0x87a36c;this[_0x4bf489(0x297)][_0x4bf489(0x270)]===0x0&&this[_0x4bf489(0x160)](),this[_0x4bf489(0x297)][_0x4bf489(0x38c)](_0x1a3d26),this[_0x4bf489(0x1d0)]({'type':0x0,'memberID':this[_0x4bf489(0x176)],'unitIDs':[_0x1a3d26],'isForwarded':!0x1});}[_0x87a36c(0x325)](_0x5bf64a){const _0x12e874=_0x87a36c;this[_0x12e874(0x297)][_0x12e874(0x2d8)](_0x5bf64a),this[_0x12e874(0x297)][_0x12e874(0x270)]===0x0&&this[_0x12e874(0x225)]&&window[_0x12e874(0x2e4)](this[_0x12e874(0x225)]);}[_0x87a36c(0x25d)](){const _0x8e56ad=_0x87a36c;this['disposeWithMe'](_0x32283a(_0x3bd2b7(window,_0x8e56ad(0x372))[_0x8e56ad(0x310)](_0x8301be=>{const _0x3eea73=_0x8e56ad;if(_0x8301be[_0x3eea73(0x2c9)]!==ir||!_0x8301be['newValue'])return;let _0xb3c6fe=JSON['parse'](_0x8301be[_0x3eea73(0x1ea)]);this[_0x3eea73(0x3cb)](_0xb3c6fe);}))),window[_0x8e56ad(0x3ad)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x8e56ad(0x20e)](this[_0x8e56ad(0x297)])}));}[_0x87a36c(0x3cb)](_0x1155f6){const _0x4a2273=_0x87a36c;switch(_0x1155f6[_0x4a2273(0x2c2)]){case 0x0:this[_0x4a2273(0x22f)](_0x1155f6);break;case 0x1:this[_0x4a2273(0x301)](_0x1155f6);break;case 0x2:this[_0x4a2273(0x17f)](_0x1155f6);}}[_0x87a36c(0x22f)](_0x56130d){let {unitIDs:_0x326cf9,memberID:_0x2ed856,isForwarded:_0x17e995}=_0x56130d;_0x326cf9['forEach'](_0x5cd4f9=>{const _0x50b72b=_0x3abf;if(!_0x17e995&&this['_unitOnClients'][_0x50b72b(0x364)](_0x5cd4f9)&&this[_0x50b72b(0x18e)](_0x5cd4f9)[_0x50b72b(0x1b3)](_0x4fd19e[_0x50b72b(0x2be)]),!this[_0x50b72b(0x1ad)]['has'](_0x5cd4f9)||!this[_0x50b72b(0x1ad)]['get'](_0x5cd4f9)[_0x50b72b(0x364)](_0x2ed856)){let _0x9d7747=this[_0x50b72b(0x1ad)][_0x50b72b(0x20c)](_0x5cd4f9)||new Set();_0x9d7747[_0x50b72b(0x38c)](_0x2ed856),this[_0x50b72b(0x1ad)][_0x50b72b(0x19c)](_0x5cd4f9,_0x9d7747),this[_0x50b72b(0x34f)](_0x2ed856);}}),_0x17e995||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x87a36c(0x34f)](_0x23b166){const _0x29400e=_0x87a36c;this[_0x29400e(0x265)](_0x23b166);let _0x41e1c1=window[_0x29400e(0x1f4)](()=>{const _0x8468e2=_0x29400e;this['_unitOnClients'][_0x8468e2(0x1e2)](_0x19e321=>{const _0x48c2f7=_0x8468e2;_0x19e321[_0x48c2f7(0x2d8)](_0x23b166);});},rr*0x2);this[_0x29400e(0x1e8)]['set'](_0x23b166,_0x41e1c1);}[_0x87a36c(0x265)](_0x168a5c){const _0xca928f=_0x87a36c;if(this[_0xca928f(0x1e8)][_0xca928f(0x364)](_0x168a5c)){let _0x4a7833=this[_0xca928f(0x1e8)]['get'](_0x168a5c);_0x4a7833&&window[_0xca928f(0x2e7)](_0x4a7833),this['_clearOtherTimers'][_0xca928f(0x19c)](_0x168a5c,null);}}[_0x87a36c(0x301)](_0x27f0c8){const _0x39830f=_0x87a36c;let {memberID:_0x3b794f,unitIDs:_0x6c059c}=_0x27f0c8;_0x6c059c[_0x39830f(0x1e2)](_0x274f84=>{const _0x1d4475=_0x39830f;var _0x3db582;let _0x588fee=this[_0x1d4475(0x1ad)][_0x1d4475(0x20c)](_0x274f84);_0x588fee&&(_0x588fee[_0x1d4475(0x2d8)](_0x3b794f),(_0x3db582=this[_0x1d4475(0x18e)](_0x274f84))==null||_0x3db582[_0x1d4475(0x1b3)](_0x588fee['size']===0x0?_0x4fd19e[_0x1d4475(0x338)]:_0x4fd19e['OTHER_CLIENTS_EDITING']));}),this[_0x39830f(0x265)](_0x3b794f);}['_handleHeartbeatEvent'](_0x37f617){const _0x341978=_0x87a36c;this[_0x341978(0x34f)](_0x37f617[_0x341978(0x158)]);}[_0x87a36c(0x1d0)](_0x5341cf){const _0x1b5f08=_0x87a36c;localStorage[_0x1b5f08(0x22b)](ir,JSON['stringify'](_0x5341cf));}[_0x87a36c(0x160)](){const _0x265cc6=_0x87a36c;this[_0x265cc6(0x225)]=window[_0x265cc6(0x3b2)](()=>{const _0x42ad5a=_0x265cc6;this[_0x42ad5a(0x1d0)]({'type':0x2,'memberID':this[_0x42ad5a(0x176)]});},rr);}[_0x87a36c(0x18e)](_0x3ee0d2){const _0x35d363=_0x87a36c;return this[_0x35d363(0x315)][_0x35d363(0x364)](_0x3ee0d2)||this[_0x35d363(0x315)][_0x35d363(0x19c)](_0x3ee0d2,new _0x400c7b(_0x4fd19e[_0x35d363(0x338)])),this['_unitStatus']['get'](_0x3ee0d2);}};export{tr as BrowserCollaborationSocketService,Y as DesktopCollaborationStatusDisplayController,Q as IURLService,nr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ar as WebBrowserSingleActiveUnitService};
|
|
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};
|