@univerjs-pro/collaboration-client-ui 1.0.0 → 1.0.1
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/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
- package/lib/types/controllers/config.schema.d.ts +0 -15
- 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/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x497e61=_0x1250;(function(_0x2d71c9,_0x3ca859){const _0x1f75ff=_0x1250,_0x21aabb=_0x2d71c9();while(!![]){try{const _0x584c7c=-parseInt(_0x1f75ff(0x333))/0x1*(parseInt(_0x1f75ff(0x2ad))/0x2)+-parseInt(_0x1f75ff(0x140))/0x3*(-parseInt(_0x1f75ff(0x357))/0x4)+-parseInt(_0x1f75ff(0x13e))/0x5+parseInt(_0x1f75ff(0x149))/0x6*(parseInt(_0x1f75ff(0x203))/0x7)+parseInt(_0x1f75ff(0x329))/0x8*(-parseInt(_0x1f75ff(0x29a))/0x9)+-parseInt(_0x1f75ff(0x1f7))/0xa+parseInt(_0x1f75ff(0x25f))/0xb*(parseInt(_0x1f75ff(0x26b))/0xc);if(_0x584c7c===_0x3ca859)break;else _0x21aabb['push'](_0x21aabb['shift']());}catch(_0x12cec3){_0x21aabb['push'](_0x21aabb['shift']());}}}(_0x48b8,0x1a096));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x39b318,CollaborationController as _0x2db83e,CollaborationSessionService as _0x1f87ca,CollaborationSocketService as _0x120dd7,CollaborationStatus as _0x52ef7e,CollaborationUIEventId as _0x1ceacf,CollaborationUIEventService as _0x3ac887,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x94ed93,DEFAULT_WS_SESSION_TICKET_URL as _0x2a7571,DataLoaderService as _0x18448c,DocCollaborationEntity as _0x4fcb18,ILocalCacheService as _0x137b82,LOCAL_CACHE_INTERVAL as _0xa5e54f,LOCAL_CACHE_INTERVAL_KEY as _0xc4dbea,MemberService as _0x1d0690,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4959d3,SessionStatus as _0x4af289,UnitStatus as _0x385abd,UniverCollaborationClientPlugin as _0x15e476,getLocalCacheKey as _0x163373}from'@univerjs-pro/collaboration-client';import{COLORS as _0x310412,ColorKit as _0x5acc2d,CommandType as _0x38ddad,DOC_RANGE_TYPE as _0x1da835,DependentOn as _0x2ceeb4,Disposable as _0x26d1e6,DisposableCollection as _0x1f8f55,ICommandService as _0x137b25,IConfigService as _0x105ef2,IImageIoService as _0x27dbba,ILocalStorageService as _0x1c3442,ILogService as _0x141c38,IUniverInstanceService as _0x3a4483,Inject as _0x3d3024,Injector as _0x2351e1,LocaleService as _0x6b982d,Plugin as _0x36b188,Rectangle as _0x4de5df,RxDisposable as _0xe6d4b,ThemeService as _0x2d83e2,Tools as _0x1c1492,UniverInstanceType as _0x159b05,Workbook as _0x5163e7,createIdentifier as _0x386799,debounce as _0x43170b,fromEventSubject as _0x2935c6,generateRandomId as _0x5b81d9,isInternalEditorID as _0x189e98,merge as _0x4ee085,mergeOverrideWithDependencies as _0xc1bdde,registerDependencies as _0x3fff4e,toDisposable as _0x2b7065,touchDependencies as _0x24a3dd}from'@univerjs/core';import{BuiltInUIPart as _0x4c7d13,IBeforeCloseService as _0x5aa2f1,IMessageService as _0x50bfcc,INotificationService as _0x542b4d,IUIPartsService as _0x1d4041,IUnitPresenceUIAdapterRegistry as _0x3eb804,connectInjector as _0x42b10d,useDependency as _0x4ac807,useObservable as _0xc78634}from'@univerjs/ui';import{BehaviorSubject as _0x52e8e8,Subject as _0x336cf5,combineLatest as _0x3f9c97,debounceTime as _0x518394,distinctUntilChanged as _0x5d30e5,filter as _0xeb3cf0,fromEvent as _0x10d9b8,mapTo as _0x1445c8,merge as _0xa40193,of as _0x1eef53,shareReplay as _0x4d84b0,switchMap as _0x4cf5f5,takeUntil as _0x4eb845,throttle as _0x28c002,timer as _0x363ac4}from'rxjs';import{distinctUntilChanged as _0x4fd6fd,filter as _0x2877e3,map as _0x2de342,switchMap as _0x3f4083,takeUntil as _0x447a2c,throttleTime as _0x4a1286}from'rxjs/operators';import{Button as _0xfb512b,MessageType as _0x4d40c3,Tooltip as _0x3c52e1,clsx as _0x5c57d6}from'@univerjs/design';import{LoadingMultiIcon as _0x332951,OffLineIcon as _0x243cbb,OnLineIcon as _0x2e29c3,WarningIcon as _0x535da3}from'@univerjs/icons';import{createElement as _0x24ae67,useCallback as _0x11fc9c,useMemo as _0x405a3d}from'react';import{jsx as _0x242b5a,jsxs as _0x3fe01f}from'react/jsx-runtime';import{CollaborationEvent as _0x32fcce,ISnapshotServerService as _0xa5d101,ITransformService as _0x23eea6,RevisionService as _0x4a3125,SnapshotLoadStage as _0x3aa3b4,SnapshotLoadingService as _0xd32281,UniverCollaborationPlugin as _0x50773,isTransformMutationFailure as _0x1b03b5,isTransformMutationsWithChangesetSuccess as _0x5311f0}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x5112e4}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x404c28,DocSkeletonManagerService as _0x13ce1c,DocStateChangeManagerService as _0x56ea32,RichTextEditingMutation as _0x2d00c3,SetTextSelectionsOperation as _0x59a131,UniverDocsPlugin as _0x6e0440}from'@univerjs/docs';import{DocIMEInputManagerService as _0x56d8d9,IDocClipboardService as _0x22f7e7,NodePositionConvertToCursor as _0x46e2d6,NodePositionConvertToRectRange as _0xb7adf9,SetDocZoomRatioOperation as _0x4bfa4a,TEXT_RANGE_LAYER_INDEX as _0x3e6fbc,UniverDocsUIPlugin as _0x27ffaf}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x488f5b,IRenderManagerService as _0x32ed6c,Rect as _0x283f11,RegularPolygon as _0x2cb3ad,SHEET_VIEWPORT_KEY as _0x1b53d2,Shape as _0x281907,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x18e772,UniverRenderEnginePlugin as _0x11f527,Vector2 as _0x1ff5ca,getColor as _0x2eaea6,getDocumentSkeletonColumnPagePathInfo as _0x860ed}from'@univerjs/engine-render';import{HTTPService as _0x32be63,ISocketService as _0x502944,UniverNetworkPlugin as _0x138e0b,WebSocketService as _0x53a61e}from'@univerjs/network';import{deserializeRangeWithSheet as _0x140571,serializeRangeWithSheet as _0x5e0b7e}from'@univerjs/engine-formula';import{EffectRefRangId as _0x2cb63b,RefRangeService as _0x2df9c7,SetSelectionsOperation as _0x1274dc,SetWorksheetActivateCommand as _0x5d4888,SheetsSelectionsService as _0x1a1a7e,handleDeleteRangeMoveLeft as _0x3f88b3,handleDeleteRangeMoveUp as _0x4148e4,handleIRemoveCol as _0xee6ac6,handleIRemoveRow as _0x4e9fab,handleInsertCol as _0x428dbb,handleInsertRangeMoveDown as _0x120244,handleInsertRangeMoveRight as _0x530674,handleInsertRow as _0x5252b5,handleMoveRange as _0x3c74fd,runRefRangeMutations as _0x304ab3}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x5cd311,getCoordByCell as _0x4b477e,getSheetObject as _0x35f9d2}from'@univerjs/sheets-ui';import{ErrorCode as _0x342cd0}from'@univerjs/protocol';function rn(_0x190263){const _0x5f146c=_0x1250;switch(_0x190263){case _0x52ef7e[_0x5f146c(0x375)]:return{'icon':_0x242b5a(_0x243cbb,{}),'colorClass':'univer-text-red-500','i18nKey':_0x5f146c(0x216),'tooltipKey':_0x5f146c(0x299),'clickable':!0x0,'indicator':_0x5f146c(0x251)};case _0x52ef7e['CONFLICT']:return{'icon':_0x242b5a(_0x243cbb,{}),'colorClass':_0x5f146c(0x354),'i18nKey':_0x5f146c(0x230),'clickable':!0x1,'indicator':_0x5f146c(0x251)};case _0x52ef7e[_0x5f146c(0x13f)]:return{'icon':_0x242b5a(_0x332951,{}),'colorClass':_0x5f146c(0x25b),'i18nKey':_0x5f146c(0x1a7),'clickable':!0x1,'indicator':_0x5f146c(0x205)};case _0x52ef7e[_0x5f146c(0x22e)]:return{'icon':_0x242b5a(_0x2e29c3,{}),'colorClass':_0x5f146c(0x1e4),'i18nKey':_0x5f146c(0x1c0),'clickable':!0x1,'indicator':_0x5f146c(0x251)};case _0x52ef7e[_0x5f146c(0x314)]:case _0x52ef7e['AWAITING_WITH_PENDING']:return{'icon':_0x242b5a(_0x332951,{}),'colorClass':_0x5f146c(0x25b),'i18nKey':_0x5f146c(0x2d4),'clickable':!0x1,'indicator':_0x5f146c(0x205)};case _0x52ef7e['PENDING']:return{'icon':_0x242b5a(_0x332951,{}),'colorClass':_0x5f146c(0x25b),'i18nKey':_0x5f146c(0x2d4),'clickable':!0x1,'indicator':_0x5f146c(0x205)};case _0x52ef7e[_0x5f146c(0x1e8)]:return{'icon':_0x242b5a(_0x2e29c3,{}),'colorClass':_0x5f146c(0x240),'i18nKey':_0x5f146c(0x332),'clickable':!0x1,'indicator':_0x5f146c(0x251)};}}function an(_0xa12bdf){const _0x4fc8fb=_0x1250;let {status$:_0x388d37}=_0xa12bdf,_0x5e7c7c=_0xc78634(_0x388d37,_0x52ef7e['NOT_COLLAB']),_0x133b8e=_0x4ac807(_0x6b982d),_0x20b435=_0x4ac807(_0x1f87ca),_0x53af97=_0x405a3d(()=>rn(_0x5e7c7c),[_0x5e7c7c]),_0x380db4=_0x5e7c7c!==_0x52ef7e[_0x4fc8fb(0x375)],_0x420ce1=_0x133b8e['t'](_0x53af97[_0x4fc8fb(0x2cb)]),_0x97aecb=_0x53af97[_0x4fc8fb(0x2d3)]?_0x133b8e['t'](_0x53af97[_0x4fc8fb(0x2d3)]):_0x420ce1,_0x4a118c=_0x11fc9c(()=>{const _0x4e0d54=_0x4fc8fb;_0x380db4||_0x20b435[_0x4e0d54(0x1b0)]();},[_0x380db4,_0x20b435]),_0x5f2c8f=_0x11fc9c(_0x517321=>{const _0x117266=_0x4fc8fb;!_0x380db4&&(_0x517321[_0x117266(0x112)]===_0x117266(0x254)||_0x517321['key']==='\x20')&&(_0x517321[_0x117266(0x1f8)](),_0x20b435['reconnect']());},[_0x380db4,_0x20b435]),_0x3449ca=_0x242b5a('span',{'className':_0x5c57d6(_0x4fc8fb(0x239),_0x4fc8fb(0x128),_0x53af97[_0x4fc8fb(0x162)],{'univer-animate-spin':_0x53af97['indicator']===_0x4fc8fb(0x205),'univer-animate-pulse':_0x53af97[_0x4fc8fb(0x2e0)]===_0x4fc8fb(0x31d)}),'aria-hidden':_0x4fc8fb(0x1b8),'children':_0x53af97['icon']}),_0x3f98a8=_0x242b5a('span',{'className':_0x5c57d6(_0x4fc8fb(0x239),_0x4fc8fb(0x14a),_0x4fc8fb(0x2dc),_0x4fc8fb(0x246),_0x4fc8fb(0x221),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x53af97[_0x4fc8fb(0x151)],'univer-cursor-default':!_0x53af97['clickable']}),'children':_0x3449ca});return _0x53af97[_0x4fc8fb(0x151)]?_0x242b5a(_0x3c52e1,{'title':_0x97aecb,'placement':_0x4fc8fb(0x261),'children':_0x242b5a(_0x4fc8fb(0x1ce),{'type':_0x4fc8fb(0x1ce),'onClick':_0x4a118c,'onKeyDown':_0x5f2c8f,'className':_0x5c57d6(_0x4fc8fb(0x187),'univer-border-none\x20univer-bg-transparent',_0x4fc8fb(0x29e),_0x4fc8fb(0x1dc)),'aria-label':_0x420ce1+_0x4fc8fb(0x33e)+_0x97aecb,'role':_0x4fc8fb(0x2b0),'aria-live':_0x4fc8fb(0x157),'aria-atomic':_0x4fc8fb(0x1b8),'children':_0x3f98a8})}):_0x242b5a(_0x3c52e1,{'title':_0x97aecb,'placement':_0x4fc8fb(0x261),'children':_0x242b5a(_0x4fc8fb(0x1b2),{'className':_0x5c57d6(_0x4fc8fb(0x187),'univer-border-none\x20univer-bg-transparent',_0x4fc8fb(0x29e)),'aria-label':_0x420ce1,'role':_0x4fc8fb(0x2b0),'aria-live':_0x4fc8fb(0x157),'aria-atomic':_0x4fc8fb(0x1b8),'children':_0x3f98a8})});}function W(_0x37b694){'@babel/helpers - typeof';const _0x12b2ef=_0x1250;return W=typeof Symbol=='function'&&typeof Symbol[_0x12b2ef(0x17c)]=='symbol'?function(_0x1fa03d){return typeof _0x1fa03d;}:function(_0x1fae69){const _0x2278e3=_0x12b2ef;return _0x1fae69&&typeof Symbol==_0x2278e3(0x23f)&&_0x1fae69[_0x2278e3(0x1d8)]===Symbol&&_0x1fae69!==Symbol[_0x2278e3(0x1c7)]?_0x2278e3(0x12b):typeof _0x1fae69;},W(_0x37b694);}function on(_0x2cc456,_0x3161f5){const _0x4c719d=_0x1250;if(W(_0x2cc456)!=_0x4c719d(0x146)||!_0x2cc456)return _0x2cc456;var _0x14fc96=_0x2cc456[Symbol[_0x4c719d(0x22a)]];if(_0x14fc96!==void 0x0){var _0x4b2c26=_0x14fc96[_0x4c719d(0x2a9)](_0x2cc456,_0x3161f5||_0x4c719d(0x2ca));if(W(_0x4b2c26)!=_0x4c719d(0x146))return _0x4b2c26;throw TypeError(_0x4c719d(0x111));}return(_0x3161f5===_0x4c719d(0x2ac)?String:Number)(_0x2cc456);}function sn(_0x16af52){const _0x3a33d3=_0x1250;var _0x3ac9fe=on(_0x16af52,_0x3a33d3(0x2ac));return W(_0x3ac9fe)=='symbol'?_0x3ac9fe:_0x3ac9fe+'';}function G(_0x18e101,_0x473714,_0x231107){const _0x250236=_0x1250;return(_0x473714=sn(_0x473714))in _0x18e101?Object[_0x250236(0x30b)](_0x18e101,_0x473714,{'value':_0x231107,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18e101[_0x473714]=_0x231107,_0x18e101;}function K(_0x3bcfc4,_0x43dad0){return function(_0x363af5,_0x162ac4){_0x43dad0(_0x363af5,_0x162ac4,_0x3bcfc4);};}function q(_0x15a8ef,_0x4663e3,_0x4669,_0x5f3584){const _0x183d22=_0x1250;var _0x5a00dd=arguments[_0x183d22(0x346)],_0x1efd9e=_0x5a00dd<0x3?_0x4663e3:_0x5f3584===null?_0x5f3584=Object[_0x183d22(0x228)](_0x4663e3,_0x4669):_0x5f3584,_0x25d75a;if(typeof Reflect==_0x183d22(0x146)&&typeof Reflect['decorate']==_0x183d22(0x23f))_0x1efd9e=Reflect[_0x183d22(0x343)](_0x15a8ef,_0x4663e3,_0x4669,_0x5f3584);else{for(var _0x18b805=_0x15a8ef['length']-0x1;_0x18b805>=0x0;_0x18b805--)(_0x25d75a=_0x15a8ef[_0x18b805])&&(_0x1efd9e=(_0x5a00dd<0x3?_0x25d75a(_0x1efd9e):_0x5a00dd>0x3?_0x25d75a(_0x4663e3,_0x4669,_0x1efd9e):_0x25d75a(_0x4663e3,_0x4669))||_0x1efd9e);}return _0x5a00dd>0x3&&_0x1efd9e&&Object[_0x183d22(0x30b)](_0x4663e3,_0x4669,_0x1efd9e),_0x1efd9e;}let J=class extends _0x26d1e6{constructor(_0xe95e86,_0x4d569a,_0x1ecff0,_0x2b8d8e,_0x522e29){const _0x352e0a=_0x1250;super(),this['_univerInstanceService']=_0xe95e86,this[_0x352e0a(0x2ec)]=_0x4d569a,this['_collaborationController']=_0x1ecff0,this[_0x352e0a(0x2db)]=_0x2b8d8e,this[_0x352e0a(0x21f)]=_0x522e29,G(this,_0x352e0a(0x2e4),new _0x52e8e8(_0x52ef7e[_0x352e0a(0x22e)])),G(this,_0x352e0a(0x2b3),new Map()),this[_0x352e0a(0x2f8)](),this[_0x352e0a(0x21b)](),this[_0x352e0a(0x193)]();}[_0x497e61(0x242)](){const _0x1a02b3=_0x497e61;this['_presenceStatusRegistrations'][_0x1a02b3(0x176)](_0x61e25e=>_0x61e25e[_0x1a02b3(0x242)]()),this['_presenceStatusRegistrations'][_0x1a02b3(0x374)](),this[_0x1a02b3(0x2e4)][_0x1a02b3(0x223)](),super[_0x1a02b3(0x242)]();}[_0x497e61(0x21b)](){const _0x1c4480=_0x497e61;this['disposeWithMe'](_0xa40193(this[_0x1c4480(0x1a2)][_0x1c4480(0x244)],this[_0x1c4480(0x1a2)][_0x1c4480(0x321)](_0x159b05[_0x1c4480(0x29c)]),this[_0x1c4480(0x1a2)][_0x1c4480(0x321)](_0x159b05[_0x1c4480(0x25a)]))[_0x1c4480(0x27a)](_0x2de342(()=>cn(this['_univerInstanceService'])),_0x4fd6fd(),_0x4cf5f5(_0x18cf2b=>_0x18cf2b?this[_0x1c4480(0x241)]['getCollabEntity$'](_0x18cf2b):_0x1eef53(null)),_0x4cf5f5(_0x4a11f0=>_0x4a11f0?_0x4a11f0[_0x1c4480(0x179)]:_0x1eef53(_0x52ef7e[_0x1c4480(0x22e)])))[_0x1c4480(0x189)](_0x1b1389=>{const _0x3170fb=_0x1c4480;this[_0x3170fb(0x2e4)]['next'](_0x1b1389);}));}[_0x497e61(0x2f8)](){const _0x2abdcc=_0x497e61;this[_0x2abdcc(0x177)](this['_uiPartsService'][_0x2abdcc(0x263)](_0x4c7d13[_0x2abdcc(0x1a6)],()=>_0x42b10d(ln({'status$':this['_status$'][_0x2abdcc(0x30e)]()}),this[_0x2abdcc(0x2ec)])));}[_0x497e61(0x193)](){const _0x37994f=_0x497e61;let _0x411663=this[_0x37994f(0x21f)][_0x37994f(0x295)][_0x37994f(0x189)](_0x5ebd0f=>{this['_syncPresenceStatusComponents'](_0x5ebd0f);});this[_0x37994f(0x177)](_0x2b7065(()=>_0x411663[_0x37994f(0x1ab)]()));}[_0x497e61(0x1d6)](_0x16220c){const _0x5b4591=_0x497e61;let _0xa2ed02=new Map(_0x16220c[_0x5b4591(0x10d)](_0x260d2e=>_0x260d2e[_0x5b4591(0x35c)]!=null)[_0x5b4591(0x27d)](_0x39888a=>[_0x39888a[_0x5b4591(0x284)],_0x39888a]));this[_0x5b4591(0x2b3)][_0x5b4591(0x176)]((_0x2f6e8b,_0x25bec8)=>{const _0x39021d=_0x5b4591;_0xa2ed02[_0x39021d(0x1c9)](_0x25bec8)||(_0x2f6e8b[_0x39021d(0x242)](),this['_presenceStatusRegistrations']['delete'](_0x25bec8));}),_0xa2ed02['forEach']((_0x5e8a2b,_0x53e648)=>{const _0x175762=_0x5b4591;this[_0x175762(0x2b3)]['has'](_0x53e648)||this['_registerPresenceStatusComponent'](_0x5e8a2b);});}[_0x497e61(0x20c)](_0x22c2d6){const _0x4cb69f=_0x497e61;let _0x13b57f=_0x22c2d6[_0x4cb69f(0x35c)];if(!_0x13b57f)return;let _0x16afb1=new _0x1f8f55(),_0x17c1ec=new _0x52e8e8(_0x52ef7e['NOT_COLLAB']);_0x16afb1['add'](_0x2b7065(()=>_0x17c1ec[_0x4cb69f(0x223)]())),_0x16afb1['add'](this[_0x4cb69f(0x2db)][_0x4cb69f(0x263)](_0x13b57f,()=>_0x42b10d(ln({'status$':_0x17c1ec[_0x4cb69f(0x30e)]()}),this['_injector'])));let _0x5d23a8=this[_0x4cb69f(0x1a2)][_0x4cb69f(0x321)](_0x22c2d6['unitType'])[_0x4cb69f(0x27a)](_0x2de342(_0x37d126=>(_0x37d126==null?void 0x0:_0x37d126[_0x4cb69f(0x15c)]())??null),_0x4fd6fd(),_0x4cf5f5(_0x1fb377=>_0x1fb377?this[_0x4cb69f(0x241)][_0x4cb69f(0x12a)](_0x1fb377):_0x1eef53(null)),_0x4cf5f5(_0x51dd48=>(_0x51dd48==null?void 0x0:_0x51dd48[_0x4cb69f(0x179)])??_0x1eef53(_0x52ef7e[_0x4cb69f(0x22e)])))[_0x4cb69f(0x189)](_0x3c11ca=>_0x17c1ec[_0x4cb69f(0x238)](_0x3c11ca));_0x16afb1[_0x4cb69f(0x17a)](_0x2b7065(()=>_0x5d23a8[_0x4cb69f(0x1ab)]())),this[_0x4cb69f(0x2b3)][_0x4cb69f(0x21d)](_0x22c2d6[_0x4cb69f(0x284)],_0x16afb1);}};J=q([K(0x0,_0x3a4483),K(0x1,_0x3d3024(_0x2351e1)),K(0x2,_0x3d3024(_0x2db83e)),K(0x3,_0x1d4041),K(0x4,_0x3d3024(_0x3eb804))],J);function cn(_0x2541b9){const _0xf31075=_0x497e61;let _0x3956c9=_0x2541b9[_0xf31075(0x214)](),_0x41432b=_0x3956c9==null?void 0x0:_0x3956c9[_0xf31075(0x15c)]();if(_0x41432b&&!_0x189e98(_0x41432b))return _0x41432b;let _0x3f3d25=_0x2541b9[_0xf31075(0x165)](_0x159b05[_0xf31075(0x29c)]),_0xed57be=_0x3f3d25==null?void 0x0:_0x3f3d25[_0xf31075(0x15c)]();if(_0xed57be&&!_0x189e98(_0xed57be))return _0xed57be;let _0x3a8f47=_0x2541b9[_0xf31075(0x165)](_0x159b05[_0xf31075(0x25a)]);if(_0x3a8f47)return _0x3a8f47[_0xf31075(0x15c)]();let _0x28f4ff=_0x2541b9['getAllUnitsForType'](_0x159b05[_0xf31075(0x29c)])[_0xf31075(0x2a0)](_0x3355b6=>!_0x189e98(_0x3355b6['getUnitId']()));return _0x28f4ff?_0x28f4ff['getUnitId']():null;}function ln(_0x3d9c4d){let {status$:_0xd51737}=_0x3d9c4d;return function(){return _0x242b5a(an,{'status$':_0xd51737});};}var un='@univerjs-pro/collaboration-client-ui',dn=_0x497e61(0x201);const Y={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':_0x38ddad['OPERATION'],'handler':(_0x230f27,_0x22235a)=>{const _0xdc29ac=_0x497e61;let _0x485072=_0x230f27[_0xdc29ac(0x1b9)](_0x3eb804)[_0xdc29ac(0x1b9)](_0x22235a[_0xdc29ac(0x284)]);if(!_0x485072)return!0x1;switch(_0x22235a[_0xdc29ac(0x204)][_0xdc29ac(0x2a5)]){case _0xdc29ac(0x21d):return _0x485072[_0xdc29ac(0x2d5)](_0x22235a[_0xdc29ac(0x204)]['state']),!0x0;case _0xdc29ac(0x2c6):return _0x485072[_0xdc29ac(0x2f3)](_0x22235a['update']['unitId'],_0x22235a[_0xdc29ac(0x204)][_0xdc29ac(0x272)]),!0x0;case _0xdc29ac(0x374):return _0x485072['clearRemotePresences'](_0x22235a[_0xdc29ac(0x204)]['unitId']),!0x0;default:return!0x1;}}},fn={};let X=class extends _0xe6d4b{constructor(_0x4659cf,_0x133d3f){const _0x4d31d3=_0x497e61;super(),this['_docClipboardService']=_0x4659cf,this[_0x4d31d3(0x14e)]=_0x133d3f,this[_0x4d31d3(0x1a4)]();}['_init'](){const _0x196d2d=_0x497e61;let _0x4554f3=this;this[_0x196d2d(0x177)](this[_0x196d2d(0x2c8)][_0x196d2d(0x257)]({'onBeforePasteImage':async _0x5922ff=>{const _0x5c341a=_0x196d2d;let _0x48cfe7=await _0x4554f3[_0x5c341a(0x14e)][_0x5c341a(0x36b)](_0x5922ff);return _0x48cfe7?{'source':_0x48cfe7[_0x5c341a(0x367)],'imageSourceType':_0x48cfe7[_0x5c341a(0x305)]}:null;}}));}};X=q([K(0x0,_0x22f7e7),K(0x1,_0x27dbba)],X);const pn=[_0x497e61(0x291),'jiqing.500',_0x497e61(0x2f2),_0x497e61(0x21e),_0x497e61(0x17f),_0x497e61(0x232)];var mn=class extends _0x26d1e6{constructor(..._0x33ba4e){super(..._0x33ba4e),G(this,'_assignedColors',new Map()),G(this,'_colorIndex',0x0);}[_0x497e61(0x153)](_0x2f5efe){const _0x35ad09=_0x497e61;if(this[_0x35ad09(0x32e)]['has'](_0x2f5efe))return this[_0x35ad09(0x32e)]['get'](_0x2f5efe);let _0x3c261f=pn[this['_colorIndex']];return this[_0x35ad09(0x23c)]=(this[_0x35ad09(0x23c)]+0x1)%pn[_0x35ad09(0x346)],this[_0x35ad09(0x32e)]['set'](_0x2f5efe,_0x3c261f),_0x3c261f;}};function hn(_0x3adf93){const _0x4de237=_0x497e61;let _0xafea11='';for(let _0x884c5 of _0x3adf93){let {startOffset:_0x6db516,endOffset:_0x15d13b,isActive:_0x1b4e6a,rangeType:_0x13a256,segmentId:_0x5bec07,segmentPage:_0x396d8b}=_0x884c5;_0xafea11[_0x4de237(0x346)]&&(_0xafea11+=','),_0xafea11+=_0x6db516+':'+_0x15d13b+':'+(_0x1b4e6a?'1':'0')+':'+_0x13a256+':'+_0x5bec07+':'+_0x396d8b;}return _0xafea11;}function gn(_0x34262d){const _0x44e043=_0x497e61;let _0x28eb4c=_0x34262d[_0x44e043(0x1d1)](','),_0xf90732=[];for(let _0x1aadcf of _0x28eb4c){let [_0x5f37ce,_0x45e005,_0x552c86,_0x3435c0,_0x5c5ccf,_0x32436e]=_0x1aadcf[_0x44e043(0x1d1)](':');_0xf90732[_0x44e043(0x24b)]({'startOffset':Number(_0x5f37ce),'endOffset':Number(_0x45e005),'collapsed':_0x5f37ce===_0x45e005,'isActive':_0x552c86==='1','rangeType':_0x3435c0===_0x1da835[_0x44e043(0x15f)]?_0x1da835[_0x44e043(0x15f)]:_0x1da835[_0x44e043(0x227)],'segmentId':typeof _0x5c5ccf==_0x44e043(0x2ac)?String(_0x5c5ccf):'','segmentPage':Number(_0x32436e??-0x1)});}return _0xf90732[_0x44e043(0x1e3)](_0x116849=>_0x116849['isActive'])||(_0xf90732[0x0][_0x44e043(0x13c)]=!0x0),_0xf90732;}var _n=class extends _0xe6d4b{constructor(..._0x5bc346){const _0x4b5c4a=_0x497e61;super(..._0x5bc346),G(this,_0x4b5c4a(0x327),new _0x52e8e8(null)),G(this,'collabCursorState$',this[_0x4b5c4a(0x327)][_0x4b5c4a(0x30e)]());}[_0x497e61(0x1c2)](_0xa64732){const _0x5db2a7=_0x497e61;let {unitID:_0x25a95e,memberID:_0x40bbab,textRanges:_0x2fe597}=_0xa64732,_0x46cf19=hn(_0x2fe597);if(_0x46cf19==='')return;let _0x47778b={'unitID':_0x25a95e,'memberID':_0x40bbab,'selection':_0x46cf19};this[_0x5db2a7(0x327)]['next'](_0x47778b);}};let vn=class extends _0xe6d4b{get[_0x497e61(0x372)](){const _0x18ba2a=_0x497e61;return this[_0x18ba2a(0x113)][_0x18ba2a(0x18e)]();}get[_0x497e61(0x1f5)](){const _0x35dd3f=_0x497e61;return this[_0x35dd3f(0x19e)][_0x35dd3f(0x18e)]();}constructor(_0x44731c,_0x174e41,_0x50758b,_0x5dd32e,_0x189e95,_0xd012ff,_0x193485,_0x3f8578,_0x3a0154){const _0x105092=_0x497e61;super(),this[_0x105092(0x2c4)]=_0x44731c,this['_session']=_0x174e41,this[_0x105092(0x2ec)]=_0x50758b,this[_0x105092(0x171)]=_0x5dd32e,this[_0x105092(0x31c)]=_0x189e95,this[_0x105092(0x331)]=_0xd012ff,this[_0x105092(0x356)]=_0x193485,this[_0x105092(0x1a2)]=_0x3f8578,this[_0x105092(0x28b)]=_0x3a0154,G(this,_0x105092(0x32a),!0x1),G(this,_0x105092(0x1a4),!0x1),G(this,_0x105092(0x113),new _0x52e8e8(new Map())),G(this,_0x105092(0x308),this[_0x105092(0x113)][_0x105092(0x30e)]()),G(this,_0x105092(0x19e),new _0x52e8e8([])),G(this,'roomMembers$',this['_roomMembers$'][_0x105092(0x27a)](_0x518394(0x12c))),G(this,'_updateLocalCursor',_0x43170b(_0xa2eac4=>{const _0x363c4a=_0x105092;let _0x1a3ec7={'eventID':_0x32fcce[_0x363c4a(0x277)],'data':{'unitID':this[_0x363c4a(0x2c4)],'memberID':this[_0x363c4a(0x2f5)]['getMemberID'](),'selection':hn(_0xa2eac4)}};this[_0x363c4a(0x2f5)]['send'](_0x1a3ec7,this[_0x363c4a(0x2c4)]);},0x64));}[_0x497e61(0x242)](){const _0x2dbc7a=_0x497e61;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x2dbc7a(0x113)][_0x2dbc7a(0x223)](),this[_0x2dbc7a(0x19e)][_0x2dbc7a(0x238)]([]),this[_0x2dbc7a(0x19e)][_0x2dbc7a(0x223)]();}['init'](){const _0x47d181=_0x497e61;this[_0x47d181(0x1a4)]||(this[_0x47d181(0x1a4)]=!0x0,this[_0x47d181(0x2f5)][_0x47d181(0x170)][_0x47d181(0x27a)](_0x4eb845(this[_0x47d181(0x1f0)]))[_0x47d181(0x189)](_0x5b9f63=>{const _0x10f1a1=_0x47d181;_0x5b9f63===_0x4af289[_0x10f1a1(0x169)]?this[_0x10f1a1(0x2ea)]():this[_0x10f1a1(0x1b1)]();}),this[_0x47d181(0x2f5)]['event$']['pipe'](_0x4eb845(this[_0x47d181(0x1f0)]))[_0x47d181(0x189)](_0x52e8ea=>{const _0x296f5a=_0x47d181;let _0x5ac62e=_0x52e8ea['eventID'];_0x5ac62e===_0x32fcce[_0x296f5a(0x277)]&&this[_0x296f5a(0x2a3)](_0x52e8ea),_0x5ac62e===_0x32fcce[_0x296f5a(0x25d)]&&this[_0x296f5a(0x1ae)](_0x52e8ea);}),this['disposeWithMe'](this[_0x47d181(0x28b)][_0x47d181(0x22c)](_0x5a824c=>{const _0x38115e=_0x47d181;let _0x15475d=_0x5a824c[_0x38115e(0x300)];_0x15475d!=null&&this[_0x38115e(0x32a)]&&_0x5a824c['id']===_0x59a131['id']&&_0x15475d['unitId']===this[_0x38115e(0x2c4)]&&_0x15475d[_0x38115e(0x137)]===!0x1&&_0x15475d[_0x38115e(0x191)][_0x38115e(0x346)]>0x0&&this[_0x38115e(0x281)](_0x15475d['ranges']);})),this[_0x47d181(0x331)][_0x47d181(0x133)]['pipe'](_0x4eb845(this[_0x47d181(0x1f0)]))[_0x47d181(0x189)](_0x351e41=>{const _0x4876fc=_0x47d181;if((_0x351e41==null?void 0x0:_0x351e41['unitID'])!==this[_0x4876fc(0x2c4)])return;let _0x5956b8={'eventID':_0x32fcce[_0x4876fc(0x277)],'data':_0x351e41};this['_onCursorUpdate'](_0x5956b8);}),this['disposeWithMe'](this[_0x47d181(0x28b)][_0x47d181(0x22c)](_0x5bf799=>{const _0x326206=_0x47d181;if(_0x5bf799[_0x326206(0x300)]==null)return;let _0x1478a9=_0x5bf799[_0x326206(0x300)];if(_0x5bf799['id']!==_0x2d00c3['id']||_0x1478a9[_0x326206(0x276)]!==this[_0x326206(0x2c4)])return;let _0x45f934={'id':_0x326206(0x361),'params':_0x1478a9},_0x11b481=this[_0x326206(0x372)];for(let [_0xafcb9,_0x309377]of _0x11b481){let _0xff88a8={'id':_0x326206(0x361),'params':{'unitId':this[_0x326206(0x2c4)],'actions':null,'textRanges':_0x309377[_0x326206(0x191)]}},_0x3beb8b=this[_0x326206(0x356)][_0x326206(0x1a8)](_0x45f934,_0xff88a8,!0x1);if(_0x1b03b5(_0x3beb8b))throw _0x3beb8b[_0x326206(0x264)];_0x11b481[_0x326206(0x21d)](_0xafcb9,{..._0x309377,'ranges':_0x3beb8b[_0x326206(0x2df)][_0x326206(0x300)][_0x326206(0x152)]});}queueMicrotask(()=>{const _0x1f5cd6=_0x326206;this[_0x1f5cd6(0x113)][_0x1f5cd6(0x238)](_0x11b481);});})));}[_0x497e61(0x2a3)](_0x19f6b4){const _0x3f6aac=_0x497e61;var _0x3c34e5;let {memberID:_0x4e3bce,selection:_0x352fde}=_0x19f6b4[_0x3f6aac(0x296)],_0x31c751=gn(_0x352fde),_0x538879=((_0x3c34e5=this[_0x3f6aac(0x31c)][_0x3f6aac(0x1e6)](this[_0x3f6aac(0x2c4)],_0x4e3bce))==null?void 0x0:_0x3c34e5[_0x3f6aac(0x196)])??_0x3f6aac(0x142),_0x249b08={'color':this[_0x3f6aac(0x171)][_0x3f6aac(0x153)](_0x4e3bce),'name':_0x538879,'ranges':_0x31c751},_0x265b34=this['cursorInfo'];_0x265b34['set'](_0x4e3bce,_0x249b08),this[_0x3f6aac(0x113)][_0x3f6aac(0x238)](_0x265b34);}[_0x497e61(0x1ae)](_0x33b0a8){const _0x34f419=_0x497e61;let {memberID:_0x38aa3a}=_0x33b0a8['data'],_0x20bd84=this[_0x34f419(0x372)];_0x20bd84['delete'](_0x38aa3a),this[_0x34f419(0x113)][_0x34f419(0x238)](_0x20bd84);}[_0x497e61(0x2ea)](){const _0x559ad9=_0x497e61;var _0x1a7916;if(this[_0x559ad9(0x32a)]=!0x0,((_0x1a7916=this[_0x559ad9(0x1a2)][_0x559ad9(0x214)]())==null?void 0x0:_0x1a7916[_0x559ad9(0x15c)]())!==this[_0x559ad9(0x2c4)])return;let _0xfdb1c2=this[_0x559ad9(0x2ec)][_0x559ad9(0x1b9)](_0x404c28)[_0x559ad9(0x1c3)]();Array[_0x559ad9(0x115)](_0xfdb1c2)&&_0xfdb1c2['length']>0x0&&this[_0x559ad9(0x281)](_0xfdb1c2);}[_0x497e61(0x1b1)](){this['_online']=!0x1;}};vn=q([K(0x2,_0x3d3024(_0x2351e1)),K(0x3,_0x3d3024(mn)),K(0x4,_0x3d3024(_0x1d0690)),K(0x5,_0x3d3024(_n)),K(0x6,_0x23eea6),K(0x7,_0x3a4483),K(0x8,_0x137b25)],vn);const yn=()=>{let _0xdd56a1=[],_0x55d467=!0x1;return _0x20243f=>{const _0x3fad4d=_0x1250;_0xdd56a1[_0x3fad4d(0x24b)](_0x20243f),_0x55d467||(_0x55d467=!0x0,setTimeout(()=>{const _0x2a0eaf=_0x3fad4d;_0xdd56a1[_0x2a0eaf(0x176)](_0x596748=>_0x596748()),_0xdd56a1=[],_0x55d467=!0x1;}));};};let bn=class extends _0xe6d4b{get[_0x497e61(0x372)](){const _0x124aa3=_0x497e61;return this[_0x124aa3(0x113)]['getValue']();}get[_0x497e61(0x1f5)](){const _0x92dd76=_0x497e61;return this[_0x92dd76(0x19e)][_0x92dd76(0x18e)]();}constructor(_0x3ae721,_0x71bca0,_0x548363,_0x232c97,_0x3c7872,_0x45388b,_0x36c1ec,_0x52d0f9){const _0x2fac94=_0x497e61;super(),this['unitID']=_0x3ae721,this[_0x2fac94(0x2f5)]=_0x71bca0,this['_injector']=_0x548363,this[_0x2fac94(0x171)]=_0x232c97,this[_0x2fac94(0x31c)]=_0x3c7872,this[_0x2fac94(0x1a2)]=_0x45388b,this[_0x2fac94(0x28b)]=_0x36c1ec,this['_refRangeService']=_0x52d0f9,G(this,_0x2fac94(0x32a),!0x1),G(this,_0x2fac94(0x1a4),!0x1),G(this,'_cursorInfo$',new _0x52e8e8(new Map())),G(this,'cursorInfo$',this[_0x2fac94(0x113)][_0x2fac94(0x30e)]()),G(this,_0x2fac94(0x19e),new _0x52e8e8([])),G(this,'roomMembers$',this[_0x2fac94(0x19e)][_0x2fac94(0x27a)](_0x518394(0x12c))),G(this,_0x2fac94(0x281),_0x43170b((_0x3b9389,_0x3fe322)=>{const _0x3d3072=_0x2fac94;let _0xf98f75={'eventID':_0x32fcce['UPDATE_CURSOR'],'data':{'unitID':this[_0x3d3072(0x2c4)],'memberID':this[_0x3d3072(0x2f5)][_0x3d3072(0x2aa)](),'selection':_0x5e0b7e(_0x3b9389,_0x3fe322[_0x3d3072(0x1ec)])}};this['_session'][_0x3d3072(0x2da)](_0xf98f75,this[_0x3d3072(0x2c4)]);},0x64));}['dispose'](){const _0x2075e3=_0x497e61;super[_0x2075e3(0x242)](),this['_cursorInfo$']['next'](new Map()),this[_0x2075e3(0x113)][_0x2075e3(0x223)](),this[_0x2075e3(0x19e)]['next']([]),this['_roomMembers$']['complete']();}['init'](){const _0x3aab19=_0x497e61;this[_0x3aab19(0x1a4)]||(this[_0x3aab19(0x1a4)]=!0x0,this[_0x3aab19(0x2f5)][_0x3aab19(0x170)][_0x3aab19(0x27a)](_0x4eb845(this['dispose$']))['subscribe'](_0x505e01=>{const _0x413709=_0x3aab19;_0x505e01===_0x4af289[_0x413709(0x169)]?this[_0x413709(0x2ea)]():this[_0x413709(0x1b1)]();}),this['_session']['event$']['pipe'](_0x4eb845(this[_0x3aab19(0x1f0)]))[_0x3aab19(0x189)](_0xe35b65=>{const _0x4da415=_0x3aab19;let _0x563a92=_0xe35b65[_0x4da415(0x335)];_0x563a92===_0x32fcce[_0x4da415(0x277)]&&this[_0x4da415(0x2a3)](_0xe35b65),_0x563a92===_0x32fcce[_0x4da415(0x25d)]&&this[_0x4da415(0x1ae)](_0xe35b65);}),this[_0x3aab19(0x18d)](),this['disposeWithMe'](this[_0x3aab19(0x28b)][_0x3aab19(0x22c)](_0x4a3238=>{const _0x5458f3=_0x3aab19;if(this[_0x5458f3(0x32a)]&&_0x4a3238['id']===_0x1274dc['id']&&_0x4a3238['params'][_0x5458f3(0x276)]===this['unitID']){let _0x48c4e7=_0x4a3238[_0x5458f3(0x300)];this[_0x5458f3(0x281)](_0x48c4e7[_0x5458f3(0x1da)],_0x48c4e7[_0x5458f3(0x11d)][0x0]);}})));}['_onCursorUpdate'](_0x3f1fc2){const _0x5c7648=_0x497e61;var _0x33eca4;let {memberID:_0x2a03d7,selection:_0x41b910}=_0x3f1fc2[_0x5c7648(0x296)],{sheetName:_0xc5f743,range:_0x2bf0c8}=_0x140571(_0x41b910),_0x39cc73={'name':((_0x33eca4=this[_0x5c7648(0x31c)][_0x5c7648(0x1e6)](this['unitID'],_0x2a03d7))==null?void 0x0:_0x33eca4[_0x5c7648(0x196)])??_0x5c7648(0x142),'range':this['_getMergeRange'](_0xc5f743,_0x2bf0c8),'sheetID':_0xc5f743,'color':this['_colorAssignService'][_0x5c7648(0x153)](_0x2a03d7),'selection':_0x41b910},_0x5d035e=this[_0x5c7648(0x372)];_0x5d035e['set'](_0x2a03d7,_0x39cc73),this[_0x5c7648(0x113)][_0x5c7648(0x238)](_0x5d035e);}['_onCursorDelete'](_0x565742){const _0x291774=_0x497e61;let {memberID:_0x5162ec}=_0x565742[_0x291774(0x296)],_0x2fe2c2=this[_0x291774(0x372)];_0x2fe2c2[_0x291774(0x23e)](_0x5162ec),this[_0x291774(0x113)][_0x291774(0x238)](_0x2fe2c2);}[_0x497e61(0x2de)](_0x374b96,_0x3b0c9c){const _0x314e39=_0x497e61;var _0x3e3ab4;let _0x27a13c=(_0x3e3ab4=this[_0x314e39(0x1a2)][_0x314e39(0x2ce)](this['unitID'],_0x159b05[_0x314e39(0x25a)]))==null||(_0x3e3ab4=_0x3e3ab4[_0x314e39(0x2d0)](_0x374b96))==null?void 0x0:_0x3e3ab4[_0x314e39(0x2b9)]();return(_0x27a13c==null?void 0x0:_0x27a13c['find'](_0x5d7238=>_0x4de5df['contains'](_0x5d7238,_0x3b0c9c)))||_0x3b0c9c;}[_0x497e61(0x18d)](){const _0x2ed1db=_0x497e61;let _0x32ad25=new _0x1f8f55(),_0x4a0ccd=yn(),_0x14aaba=()=>{const _0x58fa47=_0x1250;_0x32ad25[_0x58fa47(0x242)]();let _0x5b6a52=(_0x25ab67,_0x3ec766,_0x164103,_0x47c886)=>{const _0x22e5b5=_0x58fa47;let _0x36adaf=[];switch(_0x25ab67['id']){case _0x2cb63b[_0x22e5b5(0x2fe)]:_0x36adaf=_0x3f88b3(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x2c7)]:_0x36adaf=_0x4148e4(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x26c)]:_0x36adaf=_0x428dbb(_0x25ab67,_0x47c886);break;case _0x2cb63b['InsertRangeMoveDownCommandId']:_0x36adaf=_0x120244(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x298)]:_0x36adaf=_0x530674(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x16f)]:_0x36adaf=_0x5252b5(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x267)]:_0x36adaf=_0x3c74fd(_0x25ab67,_0x47c886);break;case _0x2cb63b['RemoveColCommandId']:_0x36adaf=_0xee6ac6(_0x25ab67,_0x47c886);break;case _0x2cb63b[_0x22e5b5(0x344)]:_0x36adaf=_0x4e9fab(_0x25ab67,_0x47c886);}let _0x49f022=_0x304ab3(_0x36adaf,_0x47c886),_0xda7a46=this[_0x22e5b5(0x372)]['get'](_0x3ec766);if(_0xda7a46&&_0x49f022){let _0x1f9e37={..._0xda7a46,'range':_0x49f022};this[_0x22e5b5(0x372)]['set'](_0x3ec766,_0x1f9e37),_0x4a0ccd(()=>{const _0x5a6291=_0x22e5b5;let _0x1dfb30=this[_0x5a6291(0x368)][_0x5a6291(0x1a5)](_0x49f022,_0xf2340b=>(_0x1dfb30['dispose'](),_0x5b6a52(_0xf2340b,_0x3ec766,_0x164103,_0x49f022)));_0x32ad25['add'](_0x1dfb30);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x58fa47(0x176)]((_0x3c01fa,_0x272358)=>{const _0x239ff5=_0x58fa47;let {range:_0xc064d1,sheetID:_0x488b0e}=_0x3c01fa,_0x5a4589=this[_0x239ff5(0x368)][_0x239ff5(0x1a5)](_0xc064d1,_0x5eb46c=>(_0x5a4589['dispose'](),_0x5b6a52(_0x5eb46c,_0x272358,_0x488b0e,_0xc064d1)));_0x32ad25[_0x239ff5(0x17a)](_0x5a4589);});};this[_0x2ed1db(0x177)](_0x2b7065(this[_0x2ed1db(0x113)][_0x2ed1db(0x189)](()=>{_0x14aaba();})));}[_0x497e61(0x2ea)](){const _0xcbeeee=_0x497e61;var _0x30169d,_0x24ea68;if(this['_online']=!0x0,((_0x30169d=this['_univerInstanceService'][_0xcbeeee(0x214)]())==null?void 0x0:_0x30169d[_0xcbeeee(0x15c)]())!==this['unitID'])return;let _0x1b2dc6=(_0x24ea68=this['_injector'][_0xcbeeee(0x1b9)](_0x1a1a7e)[_0xcbeeee(0x158)]())==null?void 0x0:_0x24ea68[0x0],_0x302c4c=this[_0xcbeeee(0x1a2)][_0xcbeeee(0x165)](_0x159b05[_0xcbeeee(0x25a)])[_0xcbeeee(0x24c)]();_0x1b2dc6&&_0x302c4c&&this[_0xcbeeee(0x281)](_0x302c4c[_0xcbeeee(0x378)](),_0x1b2dc6);}['_toggleOffline'](){const _0x1b4d1c=_0x497e61;this[_0x1b4d1c(0x32a)]=!0x1;}};bn=q([K(0x2,_0x3d3024(_0x2351e1)),K(0x3,_0x3d3024(mn)),K(0x4,_0x3d3024(_0x1d0690)),K(0x5,_0x3a4483),K(0x6,_0x137b25),K(0x7,_0x3d3024(_0x2df9c7))],bn);let Z=class extends _0xe6d4b{constructor(_0x1b31e4,_0x39cb52,_0x2383ff){const _0x526ef8=_0x497e61;super(),this[_0x526ef8(0x1a2)]=_0x1b31e4,this[_0x526ef8(0x2ec)]=_0x39cb52,this[_0x526ef8(0x2b8)]=_0x2383ff,G(this,_0x526ef8(0x119),new Map()),G(this,'_entityInit$',new _0x336cf5()),this[_0x526ef8(0x1a4)]();}['dispose'](){const _0x52e50c=_0x497e61;super[_0x52e50c(0x242)](),this[_0x52e50c(0x225)][_0x52e50c(0x223)](),this[_0x52e50c(0x119)][_0x52e50c(0x176)](_0x5a2fc1=>_0x5a2fc1[_0x52e50c(0x242)]());}['getCollabCursors$'](_0x1bda4e){const _0x3130f8=_0x497e61;let _0x20a6cf=this[_0x3130f8(0x119)][_0x3130f8(0x1b9)](_0x1bda4e);return _0x20a6cf?_0x20a6cf[_0x3130f8(0x308)]:this[_0x3130f8(0x225)][_0x3130f8(0x27a)](_0xeb3cf0(_0x8fcf59=>_0x8fcf59['unitID']===_0x1bda4e),_0x4cf5f5(_0x115d29=>_0x115d29[_0x3130f8(0x308)]));}[_0x497e61(0x1a4)](){const _0x1bbc7a=_0x497e61;this[_0x1bbc7a(0x1a2)][_0x1bbc7a(0x30c)](_0x159b05[_0x1bbc7a(0x25a)])[_0x1bbc7a(0x27a)](_0x4eb845(this['dispose$']))[_0x1bbc7a(0x189)](async _0x47e1ab=>{const _0x3af952=_0x1bbc7a;let _0x5be242=_0x47e1ab['unit']['getUnitId'](),_0x3d1b07=await this['_startSheetCollabCursor'](_0x5be242);this['_entityInit$'][_0x3af952(0x238)](_0x3d1b07),this[_0x3af952(0x119)][_0x3af952(0x21d)](_0x5be242,_0x3d1b07);}),this[_0x1bbc7a(0x1a2)][_0x1bbc7a(0x30c)](_0x159b05[_0x1bbc7a(0x29c)])[_0x1bbc7a(0x27a)](_0x4eb845(this[_0x1bbc7a(0x1f0)]))['pipe'](_0xeb3cf0(_0x38286e=>!_0x38286e[_0x1bbc7a(0x2f9)]['getUnitId']()[_0x1bbc7a(0x32c)]('__')))[_0x1bbc7a(0x189)](async _0x17415d=>{const _0x3a18bc=_0x1bbc7a;let {unit:_0x361bcb}=_0x17415d,_0x787183=_0x361bcb[_0x3a18bc(0x15c)](),_0x395bed=await this[_0x3a18bc(0x117)](_0x787183);this[_0x3a18bc(0x225)]['next'](_0x395bed),this[_0x3a18bc(0x119)][_0x3a18bc(0x21d)](_0x787183,_0x395bed);}),_0xa40193(this['_univerInstanceService'][_0x1bbc7a(0x148)](_0x159b05[_0x1bbc7a(0x29c)]),this[_0x1bbc7a(0x1a2)]['getTypeOfUnitDisposed$'](_0x159b05['UNIVER_SHEET']))[_0x1bbc7a(0x27a)](_0x4eb845(this[_0x1bbc7a(0x1f0)]))['subscribe'](_0x42d8a6=>{const _0x52aef5=_0x1bbc7a;let _0x34c5ed=_0x42d8a6[_0x52aef5(0x15c)](),_0x1cacf3=this['_entities']['get'](_0x34c5ed);_0x1cacf3&&(_0x1cacf3[_0x52aef5(0x242)](),this[_0x52aef5(0x119)]['delete'](_0x34c5ed));});}async[_0x497e61(0x16c)](_0x14d9f5){const _0x223e05=_0x497e61;let _0x58a328=await this[_0x223e05(0x2b8)][_0x223e05(0x2bc)](_0x14d9f5),_0x27793d=this[_0x223e05(0x2ec)]['createInstance'](bn,_0x14d9f5,_0x58a328);return _0x27793d['init'](),_0x27793d;}async[_0x497e61(0x117)](_0x182b05){const _0x43d5b1=_0x497e61;let _0xcb54eb=await this[_0x43d5b1(0x2b8)][_0x43d5b1(0x2bc)](_0x182b05),_0x1b7fe4=this[_0x43d5b1(0x2ec)][_0x43d5b1(0x268)](vn,_0x182b05,_0xcb54eb);return _0x1b7fe4['init'](),_0x1b7fe4;}};Z=q([K(0x0,_0x3a4483),K(0x1,_0x3d3024(_0x2351e1)),K(0x2,_0x3d3024(_0x1f87ca))],Z);function xn(_0xe690e5,_0x16ab68){const _0x1a0ea9=_0x497e61;_0xe690e5['save'](),_0xe690e5['font']=_0x1a0ea9(0x16a);let _0x372ace=_0xe690e5['measureText'](_0x16ab68)[_0x1a0ea9(0x1f3)];return _0xe690e5['restore'](),Math[_0x1a0ea9(0x28f)](_0x372ace+0x8,0xc8);}function Sn(_0x1e6fdc,_0x22466e){const _0x5e38b0=_0x497e61;let {radius:_0x278439,width:_0xe805f,height:_0x451f8f}=_0x22466e;_0x278439??=0x0,_0xe805f??=0x1e,_0x451f8f??=0x1e;let _0x458f83=0x0,_0x2c7f28=0x0,_0x214bd7=0x0;_0x458f83=_0x2c7f28=_0x214bd7=Math[_0x5e38b0(0x28f)](_0x278439,_0xe805f/0x2,_0x451f8f/0x2),_0x1e6fdc[_0x5e38b0(0x34c)](),_0x1e6fdc[_0x5e38b0(0x14c)](_0x458f83,0x0),_0x1e6fdc['lineTo'](_0xe805f-_0x2c7f28,0x0),_0x1e6fdc[_0x5e38b0(0x1bf)](_0xe805f-_0x2c7f28,_0x2c7f28,_0x2c7f28,Math['PI']*0x3/0x2,0x0,!0x1),_0x1e6fdc[_0x5e38b0(0x35f)](_0xe805f,_0x451f8f-_0x214bd7),_0x1e6fdc['arc'](_0xe805f-_0x214bd7,_0x451f8f-_0x214bd7,_0x214bd7,0x0,Math['PI']/0x2,!0x1),_0x1e6fdc[_0x5e38b0(0x35f)](0x0,_0x451f8f),_0x1e6fdc[_0x5e38b0(0x35f)](0x0,_0x458f83),_0x1e6fdc['arc'](_0x458f83,_0x458f83,_0x458f83,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1e6fdc[_0x5e38b0(0x1cf)](),_0x22466e[_0x5e38b0(0x1c8)]&&(_0x1e6fdc[_0x5e38b0(0x37a)](),_0x1e6fdc[_0x5e38b0(0x23b)]=_0x22466e[_0x5e38b0(0x1c8)],_0x22466e['fillRule']===_0x5e38b0(0x11f)?_0x1e6fdc[_0x5e38b0(0x1c8)](_0x5e38b0(0x11f)):_0x1e6fdc[_0x5e38b0(0x1c8)](),_0x1e6fdc[_0x5e38b0(0x1c4)]());}var Cn=class e extends _0x281907{constructor(_0x2fad17,_0xe32dc4){const _0x4e6e96=_0x497e61;super(_0x2fad17,_0xe32dc4),G(this,_0x4e6e96(0x25c),void 0x0),G(this,_0x4e6e96(0x24f),void 0x0),this['color']=_0xe32dc4==null?void 0x0:_0xe32dc4[_0x4e6e96(0x25c)],this[_0x4e6e96(0x24f)]=_0xe32dc4==null?void 0x0:_0xe32dc4['text'];}static[_0x497e61(0x1cb)](_0x5c0f96,_0x3fb553){const _0x4494ef=_0x497e61;let {text:_0x2d5344,color:_0xbd595d}=_0x3fb553;_0x5c0f96[_0x4494ef(0x37a)](),_0x5c0f96['font']=_0x4494ef(0x222);let _0x3d38f2=_0x5c0f96[_0x4494ef(0x339)](_0x2d5344)['width'];if(Sn(_0x5c0f96,{'height':0x14,'radius':0x4,'width':xn(_0x5c0f96,_0x2d5344),'fill':_0xbd595d,'evented':!0x1}),_0x5c0f96[_0x4494ef(0x23b)]=_0x4494ef(0x16b),_0x3d38f2>0xc0){let _0x5bdea9='',_0x127fe5=0x0;for(let _0x43b2e8 of _0x2d5344){let _0x289efd=_0x5c0f96[_0x4494ef(0x339)](_0x43b2e8)[_0x4494ef(0x1f3)];if(_0x127fe5+_0x289efd<=0xc0-_0x5c0f96[_0x4494ef(0x339)](_0x4494ef(0x1af))[_0x4494ef(0x1f3)])_0x5bdea9+=_0x43b2e8,_0x127fe5+=_0x289efd;else{_0x5bdea9+=_0x4494ef(0x1af);break;}}_0x5c0f96[_0x4494ef(0x215)](_0x5bdea9,0x4,0xf);}else _0x5c0f96['fillText'](_0x2d5344,0x4,0xf);_0x5c0f96[_0x4494ef(0x1c4)]();}[_0x497e61(0x1d5)](_0x420289){const _0x306f08=_0x497e61;e[_0x306f08(0x1cb)](_0x420289,this);}};const wn=_0x497e61(0x30f);var Tn=class{constructor(_0x40395a,_0x3250eb,_0x18b546,_0x70aca0){const _0x2d043c=_0x497e61;this[_0x2d043c(0x220)]=_0x40395a,this[_0x2d043c(0x1f1)]=_0x3250eb,this[_0x2d043c(0x183)]=_0x18b546,this['_document']=_0x70aca0,G(this,_0x2d043c(0x366),[]),G(this,_0x2d043c(0x369),null),G(this,'_textBubble',null),G(this,_0x2d043c(0x37b),null),G(this,_0x2d043c(0x150),null),G(this,'_eventUnsubscribe',null),this[_0x2d043c(0x184)]();}set[_0x497e61(0x341)](_0x1ca9c6){const _0xb0d8a=_0x497e61;_0x1ca9c6?(this['_anchorDot']&&this[_0xb0d8a(0x37b)][_0xb0d8a(0x258)](),this[_0xb0d8a(0x19a)]&&this[_0xb0d8a(0x19a)]['show']()):(this[_0xb0d8a(0x37b)]&&this[_0xb0d8a(0x37b)][_0xb0d8a(0x2f6)](),this[_0xb0d8a(0x19a)]&&this[_0xb0d8a(0x19a)]['hide']());}['dispose'](){const _0x1bc437=_0x497e61;for(let _0x24b589 of this['_shapes'])_0x24b589[_0x1bc437(0x242)]();this[_0x1bc437(0x19a)]&&this[_0x1bc437(0x19a)][_0x1bc437(0x242)](),this['_anchorDot']&&this[_0x1bc437(0x37b)][_0x1bc437(0x242)](),this[_0x1bc437(0x369)]&&this[_0x1bc437(0x369)][_0x1bc437(0x242)](),this[_0x1bc437(0x2e9)]&&this[_0x1bc437(0x2e9)]();}['_render'](){const _0x49a3bd=_0x497e61;let {_docSkeleton:_0x241334,_document:_0x5ce70e}=this,{color:_0x5b2f7a,name:_0x8c8531,ranges:_0x3800e7}=this[_0x49a3bd(0x220)],_0x51eb61=_0x5ce70e[_0x49a3bd(0x253)](),{docsLeft:_0xfe228a,docsTop:_0x1531a5}=_0x51eb61,_0x302e06=new _0x46e2d6(_0x51eb61,_0x241334);for(let {startOffset:_0x4383cb,endOffset:_0x64b86,rangeType:_0x23dc30,segmentId:_0x40db63,segmentPage:_0x240698,collapsed:_0x14699b,isActive:_0x128254}of _0x3800e7){let _0x419fc5=_0x241334[_0x49a3bd(0x12c)](_0x4383cb,!0x0,_0x40db63,_0x240698),_0x5f36e6=_0x241334[_0x49a3bd(0x12c)](_0x64b86,!0x0,_0x40db63,_0x240698);_0x5f36e6??=_0x241334['findNodePositionByCharIndex'](_0x64b86-0x1,!0x1,_0x40db63,_0x240698);let _0x3f87bd=En(_0x419fc5,_0x5f36e6);if(_0x128254&&_0x3f87bd[_0x49a3bd(0x11b)]){let {contentBoxPointGroup:_0x19c6f3}=_0x302e06[_0x49a3bd(0x19d)](_0x5f36e6,_0x5f36e6);if(_0x19c6f3[_0x49a3bd(0x346)]===0x0)continue;this[_0x49a3bd(0x33d)](_0x5b2f7a,_0x19c6f3,_0xfe228a,_0x1531a5,_0x8c8531),this[_0x49a3bd(0x2e9)]=this[_0x49a3bd(0x1a3)]();}if(_0x419fc5&&_0x5f36e6){if(_0x23dc30===_0x1da835[_0x49a3bd(0x227)]){let {pointGroup:_0x37c833}=new _0xb7adf9(_0x51eb61,_0x241334)[_0x49a3bd(0x19d)](_0x419fc5,_0x5f36e6)??{};if(_0x37c833==null||_0x37c833[_0x49a3bd(0x346)]===0x0)continue;this[_0x49a3bd(0x1fd)](_0x5b2f7a,_0x37c833,_0xfe228a,_0x1531a5);}else{if(!_0x14699b&&_0x3f87bd[_0x49a3bd(0x274)]){let {borderBoxPointGroup:_0x1d7058}=_0x302e06[_0x49a3bd(0x19d)](_0x419fc5,_0x5f36e6);if(_0x1d7058[_0x49a3bd(0x346)]===0x0)continue;this[_0x49a3bd(0x159)](_0x5b2f7a,_0x1d7058,_0xfe228a,_0x1531a5);}}}}}[_0x497e61(0x33d)](_0x18f6db,_0x3785fd,_0xfad557,_0x532591,_0x40223c){const _0x3085a1=_0x497e61;let {left:_0x501dff,top:_0x8fbad1,height:_0x1a17a9}=this[_0x3085a1(0x1a1)](_0x3785fd),_0x3593c9=1.5/this[_0x3085a1(0x35e)](),_0x48e473=new _0x283f11(wn+_0x5b81d9(0x6),{'left':_0x501dff+_0xfad557-_0x3593c9,'top':_0x8fbad1+_0x532591,'height':_0x1a17a9,'width':1.5,'fill':_0x18f6db||_0x2eaea6(_0x310412[_0x3085a1(0x340)],0x0),'strokeWidth':_0x3593c9,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this['_anchor']=_0x48e473,this[_0x3085a1(0x1f1)]['addObject'](_0x48e473,_0x3e6fbc);let _0x157fd4=new _0x283f11(wn+_0x5b81d9(0x6),{'left':_0x501dff+_0xfad557-_0x3593c9,'top':_0x8fbad1+_0x532591-0x2,'height':0x4,'width':0x4,'fill':_0x18f6db||_0x2eaea6(_0x310412[_0x3085a1(0x340)],0x0),'strokeWidth':0x0,'stroke':_0x18f6db||_0x2eaea6(_0x310412[_0x3085a1(0x340)],0x0),'evented':!0x1});this[_0x3085a1(0x37b)]=_0x157fd4,this[_0x3085a1(0x1f1)][_0x3085a1(0x160)](_0x157fd4,_0x3e6fbc);let _0x219def=new Cn(wn+_0x5b81d9(0x6),{'left':_0x501dff+_0xfad557-_0x3593c9,'top':_0x8fbad1+_0x532591-0x14,'text':_0x40223c,'color':_0x18f6db});this[_0x3085a1(0x19a)]=_0x219def,this[_0x3085a1(0x1f1)]['addObject'](_0x219def,_0x3e6fbc),this[_0x3085a1(0x341)]=!0x1;}[_0x497e61(0x1a3)](){const _0x4b2d1d=_0x497e61;let _0x17a810=this['_anchor']['onPointerEnter$'][_0x4b2d1d(0x11c)](()=>{const _0x61a550=_0x4b2d1d;this[_0x61a550(0x341)]=!0x0;}),_0x4364a4=this[_0x4b2d1d(0x369)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x2a5112=_0x4b2d1d;this[_0x2a5112(0x150)]&&clearTimeout(this[_0x2a5112(0x150)]),this[_0x2a5112(0x150)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5257fd=_0x4b2d1d;_0x17a810['unsubscribe'](),_0x4364a4[_0x5257fd(0x1ab)]();};}[_0x497e61(0x159)](_0x3136df,_0x1b9124,_0x4ccfb4,_0x3e4f9b){const _0x301ada=_0x497e61;let _0x3b4b8a=0.2,_0x293657=new _0x5acc2d(_0x3136df)[_0x301ada(0x377)](_0x3b4b8a)[_0x301ada(0x290)](),_0x1f49af=new _0x2cb3ad(_0x301ada(0x2c1)+_0x5b81d9(0x6),{'pointsGroup':_0x1b9124,'fill':_0x293657||_0x2eaea6(_0x310412[_0x301ada(0x340)],_0x3b4b8a),'left':_0x4ccfb4,'top':_0x3e4f9b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x301ada(0x24b)](_0x1f49af),this[_0x301ada(0x1f1)][_0x301ada(0x160)](_0x1f49af,_0x3e6fbc);}[_0x497e61(0x1fd)](_0x119869,_0x301abe,_0x3494eb,_0x2e00ed){const _0x269319=_0x497e61;let _0x1accac=0.2,_0x55df6d=new _0x5acc2d(_0x119869)[_0x269319(0x377)](_0x1accac)[_0x269319(0x290)](),_0x19c9eb=new _0x2cb3ad(_0x269319(0x2e2)+_0x5b81d9(0x6),{'pointsGroup':_0x301abe,'fill':_0x55df6d||_0x2eaea6(_0x310412[_0x269319(0x340)],_0x1accac),'left':_0x3494eb,'top':_0x2e00ed,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x269319(0x366)][_0x269319(0x24b)](_0x19c9eb),this['_scene'][_0x269319(0x160)](_0x19c9eb,_0x3e6fbc);}['_getAnchorBounding'](_0x8422b6){let _0xa1c7bd=_0x8422b6[0x0],_0x5382dc=_0xa1c7bd[0x0],_0x30caa1=_0xa1c7bd[0x2],{x:_0x5bea5f,y:_0x465cf4}=_0x5382dc,{x:_0x52c869,y:_0x5380e0}=_0x30caa1;return{'left':_0x5bea5f,'top':_0x465cf4,'width':_0x52c869-_0x5bea5f,'height':_0x5380e0-_0x465cf4};}[_0x497e61(0x35e)](){const _0x55a5f0=_0x497e61;let {scaleX:_0x41e84a,scaleY:_0x1c176d}=this[_0x55a5f0(0x1f1)]['getAncestorScale']();return Math[_0x55a5f0(0x33b)](_0x41e84a,_0x1c176d);}};function En(_0x506ac9,_0x407655){const _0x2c5229=_0x497e61;if(!_0x407655)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x506ac9||_0x506ac9[_0x2c5229(0x348)]!==_0x407655[_0x2c5229(0x348)]||(_0x506ac9[_0x2c5229(0x348)]===_0x488f5b['HEADER']||_0x506ac9[_0x2c5229(0x348)]===_0x488f5b[_0x2c5229(0x116)])&&_0x506ac9[_0x2c5229(0x195)]!==_0x407655[_0x2c5229(0x195)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x508407=_0x860ed(_0x506ac9),_0x3b64bf=_0x860ed(_0x407655);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x508407==null||_0x3b64bf==null?_0x508407==null&&_0x3b64bf==null:_0x508407['pageIndex']===_0x3b64bf[_0x2c5229(0x30a)]&&_0x508407[_0x2c5229(0x32b)]===_0x3b64bf[_0x2c5229(0x32b)]&&_0x508407[_0x2c5229(0x31b)]===_0x3b64bf[_0x2c5229(0x31b)]};}let Dn=class extends _0xe6d4b{constructor(_0x422d76,_0xcc6939,_0x508ee1,_0x3948d3,_0x31a228){const _0x601d8=_0x497e61;super(),this[_0x601d8(0x351)]=_0x422d76,this[_0x601d8(0x2c5)]=_0xcc6939,this[_0x601d8(0x2f7)]=_0x508ee1,this['_commandService']=_0x3948d3,this[_0x601d8(0x2d8)]=_0x31a228,G(this,_0x601d8(0x1d9),[]),G(this,_0x601d8(0x2e6),[]),this['_init']();}[_0x497e61(0x1a4)](){const _0x289d94=_0x497e61;let _0x49d4d5=this['_context'][_0x289d94(0x276)],_0xe0e97b=this[_0x289d94(0x2c5)];this['disposeWithMe'](_0x3f9c97([this[_0x289d94(0x2f7)]['getCollabCursors$'](_0x49d4d5),this[_0x289d94(0x2d8)]['currentTheme$']])[_0x289d94(0x27a)](_0x2de342(([_0x18458a,_0x538e1a])=>({'skeleton':_0xe0e97b[_0x289d94(0x336)](),'cursors':[..._0x18458a[_0x289d94(0x1dd)]()]['flatMap'](_0xc8ced6=>({..._0xc8ced6,'color':this['_themeService'][_0x289d94(0x2e3)](_0xc8ced6['color'])}))})))[_0x289d94(0x189)](_0x1d367e=>{const _0x3427e9=_0x289d94;if(this['_removeCollabCursors'](),_0x1d367e){let {skeleton:_0x3e5b1b,cursors:_0x1130da}=_0x1d367e;this[_0x3427e9(0x2a4)](_0x3e5b1b,_0x1130da);}})),this[_0x289d94(0x36f)](),this[_0x289d94(0x248)]();}[_0x497e61(0x2a4)](_0x5ba2e6,_0x101a06){const _0x15ea9f=_0x497e61;let {scene:_0x571f06,mainComponent:_0x42f98f}=this['_context'],_0x4ccdc7=_0x101a06[_0x15ea9f(0x27d)](_0x183249=>new Tn(_0x183249,_0x571f06,_0x5ba2e6,_0x42f98f));this[_0x15ea9f(0x1d9)]=_0x4ccdc7,this[_0x15ea9f(0x2e6)]=_0x101a06;}[_0x497e61(0x124)](){const _0x227395=_0x497e61;this['_removeCollabCursors']();let {scene:_0x56a191,mainComponent:_0x52308f}=this[_0x227395(0x351)],_0x30f995=this[_0x227395(0x2c5)]['getSkeleton'](),_0x47df99=this['_cursors'][_0x227395(0x27d)](_0x326c68=>new Tn(_0x326c68,_0x56a191,_0x30f995,_0x52308f));this['_cursorShapes']=_0x47df99;}['_removeCollabCursors'](){const _0x1da7dc=_0x497e61;this['_cursorShapes'][_0x1da7dc(0x176)](_0x19b7d7=>_0x19b7d7['dispose']()),this['_cursorShapes']=[];}[_0x497e61(0x248)](){const _0x327c1f=_0x497e61;let _0x508365=[_0x4bfa4a['id']];this['disposeWithMe'](this[_0x327c1f(0x28b)][_0x327c1f(0x22c)](_0x44aa9f=>{const _0x9ba60d=_0x327c1f;_0x508365[_0x9ba60d(0x11e)](_0x44aa9f['id'])&&_0x44aa9f[_0x9ba60d(0x300)][_0x9ba60d(0x276)]===this[_0x9ba60d(0x351)][_0x9ba60d(0x276)]&&this[_0x9ba60d(0x124)]();}));}[_0x497e61(0x36f)](){const _0x4df50b=_0x497e61;this['disposeWithMe'](_0x2935c6(this[_0x4df50b(0x351)][_0x4df50b(0x161)][_0x4df50b(0x2a2)])[_0x4df50b(0x27a)](_0x2877e3(_0x5ddf5a=>_0x5ddf5a[_0x4df50b(0x2a5)]===_0x18e772[_0x4df50b(0x13a)]),_0x4a1286(0x10))[_0x4df50b(0x189)](()=>{this['_refreshCollabCursors']();}));}};Dn=q([K(0x1,_0x3d3024(_0x13ce1c)),K(0x2,_0x3d3024(Z)),K(0x3,_0x137b25),K(0x4,_0x3d3024(_0x2d83e2))],Dn);var On=class extends _0x281907{constructor(_0x5dbc01,_0x58739f){const _0x583182=_0x497e61;super(_0x5dbc01,_0x58739f),G(this,_0x583182(0x29f),void 0x0),G(this,_0x583182(0x32d),!0x1),G(this,_0x583182(0x2eb),void 0x0),G(this,'_name',''),G(this,'_labelPosition',_0x583182(0x20b)),G(this,_0x583182(0x245),void 0x0),G(this,'_showText',void 0x0),G(this,_0x583182(0x207),void 0x0),G(this,'_highlightSecond',0x4),G(this,_0x583182(0x173),void 0x0),G(this,_0x583182(0x256),void 0x0),G(this,_0x583182(0x211),!0x0),G(this,'_offsetY',0x0),G(this,_0x583182(0x23d),_0x583182(0x123)),_0x58739f&&(this[_0x583182(0x278)](_0x58739f),_0x58739f[_0x583182(0x271)]&&(_0x58739f[_0x583182(0x28e)]??this[_0x583182(0x10f)])&&this[_0x583182(0x364)](_0x58739f[_0x583182(0x28e)]??this[_0x583182(0x10f)])),this[_0x583182(0x210)][_0x583182(0x11c)](()=>this[_0x583182(0x278)]({'hovered':!0x0})),this[_0x583182(0x247)]['subscribeEvent'](()=>this[_0x583182(0x278)]({'hovered':!0x1}));}['setOffsetY'](_0x147eb7){this['_offsetY']=_0x147eb7;}[_0x497e61(0x278)](_0xf2df6e){const _0x5a2efa=_0x497e61;this[_0x5a2efa(0x29f)]=_0xf2df6e[_0x5a2efa(0x25c)]??this[_0x5a2efa(0x29f)],this['_hovered']=_0xf2df6e[_0x5a2efa(0x1c1)]??this[_0x5a2efa(0x32d)],this[_0x5a2efa(0x2eb)]=_0xf2df6e[_0x5a2efa(0x1ec)]??this['_range'],this[_0x5a2efa(0x2d2)]=_0xf2df6e[_0x5a2efa(0x196)]??this[_0x5a2efa(0x2d2)],this[_0x5a2efa(0x326)]=_0xf2df6e[_0x5a2efa(0x166)]??this[_0x5a2efa(0x326)],this['_backgroundColor']=_0xf2df6e[_0x5a2efa(0x168)]??this['_backgroundColor'],this[_0x5a2efa(0x33f)]=_0xf2df6e[_0x5a2efa(0x1fc)]??this['_showText'],this[_0x5a2efa(0x23d)]=_0xf2df6e[_0x5a2efa(0x2bf)]??this['_labelHorizontalPosition'],_0xf2df6e[_0x5a2efa(0x28e)]!==void 0x0&&(this[_0x5a2efa(0x10f)]=_0xf2df6e['highlightSecond']),_0xf2df6e['highlight']!==void 0x0&&(this[_0x5a2efa(0x207)]=_0xf2df6e[_0x5a2efa(0x271)]),_0xf2df6e[_0x5a2efa(0x26e)]!==void 0x0&&(this['_offsetY']=_0xf2df6e[_0x5a2efa(0x26e)]),this['transformByState']({'width':_0xf2df6e[_0x5a2efa(0x1f3)],'height':_0xf2df6e[_0x5a2efa(0x37c)]});}[_0x497e61(0x2a1)](_0x580e6a){const _0x51a7d9=_0x497e61;let {row:_0x1a3469,column:_0x20f20d}=_0x580e6a;if(_0x1a3469>=this[_0x51a7d9(0x2eb)][_0x51a7d9(0x114)]&&_0x1a3469<=this[_0x51a7d9(0x2eb)][_0x51a7d9(0x14b)]&&_0x20f20d>=this['_range'][_0x51a7d9(0x317)]&&_0x20f20d<=this[_0x51a7d9(0x2eb)][_0x51a7d9(0x1b7)]){this[_0x51a7d9(0x278)]({'hovered':!0x0});return;}this[_0x51a7d9(0x278)]({'hovered':!0x1});}[_0x497e61(0x364)](_0x7494cb){const _0x123337=_0x497e61;this[_0x123337(0x363)](),this[_0x123337(0x211)]=!0x0,this[_0x123337(0x256)]=window[_0x123337(0x15d)](()=>{const _0x46f806=_0x123337;this['_isBlinkVisible']=!this[_0x46f806(0x211)],this[_0x46f806(0x16e)](!0x0);},0x1f4),this[_0x123337(0x173)]=window['setTimeout'](()=>{const _0x54c7c6=_0x123337;this[_0x54c7c6(0x363)](),this['_isBlinkVisible']=!0x0,this[_0x54c7c6(0x16e)](!0x0);},_0x7494cb*0x3e8);}[_0x497e61(0x363)](){const _0x26ca84=_0x497e61;this['_blinkIntervalTimer']&&=(window['clearInterval'](this[_0x26ca84(0x256)]),void 0x0),this[_0x26ca84(0x173)]&&=(window['clearTimeout'](this[_0x26ca84(0x173)]),void 0x0);}[_0x497e61(0x2fd)](_0x4001e1){return!0x1;}[_0x497e61(0x242)](){const _0x4c9afc=_0x497e61;this[_0x4c9afc(0x363)](),super[_0x4c9afc(0x242)]();}[_0x497e61(0x1d5)](_0x51de7b){const _0x21adba=_0x497e61;let _0x4d208f=this[_0x21adba(0x29f)],_0x372b7a=this[_0x21adba(0x245)];if(this[_0x21adba(0x207)]&&!this['_isBlinkVisible']&&(_0x4d208f=this[_0x21adba(0x27b)](this['_color']),_0x372b7a=this[_0x21adba(0x245)]?this[_0x21adba(0x27b)](this[_0x21adba(0x245)]):void 0x0),_0x283f11[_0x21adba(0x1cb)](_0x51de7b,{'width':this[_0x21adba(0x1f3)],'height':this[_0x21adba(0x37c)],'strokeWidth':this[_0x21adba(0x376)]||1.5,'stroke':_0x4d208f,'evented':!0x1,'fill':_0x372b7a}),this[_0x21adba(0x32d)]||this[_0x21adba(0x33f)]){_0x51de7b[_0x21adba(0x37a)]();let _0x353e35=this[_0x21adba(0x23d)]===_0x21adba(0x262)?-xn(_0x51de7b,this[_0x21adba(0x2d2)]):this[_0x21adba(0x1f3)];_0x51de7b['transform'](0x1,0x0,0x0,0x1,_0x353e35,(this[_0x21adba(0x326)]===_0x21adba(0x261)?0x0:-0x14)+(this['_offsetY']??0x0)),Cn['drawWith'](_0x51de7b,{'text':this[_0x21adba(0x2d2)],'color':_0x4d208f}),_0x51de7b['restore']();}}[_0x497e61(0x27b)](_0x45c6e5){const _0x1b0710=_0x497e61;return _0x45c6e5[_0x1b0710(0x32c)]('#')?'rgba('+Number[_0x1b0710(0x279)](_0x45c6e5[_0x1b0710(0x129)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x45c6e5[_0x1b0710(0x129)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x45c6e5['slice'](0x5,0x7),0x10)+_0x1b0710(0x35d):_0x45c6e5[_0x1b0710(0x32c)](_0x1b0710(0x12f))?_0x45c6e5[_0x1b0710(0x316)](/[\d.]+\)$/g,_0x1b0710(0x286)):_0x45c6e5[_0x1b0710(0x32c)](_0x1b0710(0x349))?_0x45c6e5[_0x1b0710(0x316)]('rgb',_0x1b0710(0x12f))[_0x1b0710(0x316)](')',_0x1b0710(0x35d)):_0x45c6e5;}};let kn=class extends _0xe6d4b{constructor(_0x2a0f89,_0x1c6fb0,_0x4d071f,_0x529280){const _0x54b9ae=_0x497e61;super(),this[_0x54b9ae(0x351)]=_0x2a0f89,this[_0x54b9ae(0x186)]=_0x1c6fb0,this[_0x54b9ae(0x2f7)]=_0x4d071f,this['_themeService']=_0x529280,G(this,_0x54b9ae(0x2e6),new Set()),G(this,_0x54b9ae(0x20d),null),G(this,'_pointerMoveDisposable',null),this[_0x54b9ae(0x1a4)]();}['_init'](){const _0x1d3a6e=_0x497e61;this[_0x1d3a6e(0x186)][_0x1d3a6e(0x2bb)][_0x1d3a6e(0x27a)](_0x447a2c(this[_0x1d3a6e(0x1f0)]),_0x3f4083(_0x196b86=>{const _0xebe0a8=_0x1d3a6e;if(_0x196b86){let _0xcb55ad=_0x196b86[_0xebe0a8(0x27c)];return _0x3f9c97(this[_0xebe0a8(0x2f7)][_0xebe0a8(0x266)](this[_0xebe0a8(0x351)][_0xebe0a8(0x276)]),this[_0xebe0a8(0x2d8)]['currentTheme$'])['pipe'](_0x2de342(([_0x2991ee,_0x56dde4])=>{const _0x220f25=_0xebe0a8;let _0x335e2f=new Map();return _0x2991ee[_0x220f25(0x176)]((_0x337bbd,_0x50a408)=>{const _0x57347a=_0x220f25;if(_0x337bbd['sheetID']===_0xcb55ad){let _0x40daf6={..._0x337bbd};_0x40daf6['color']=this['_themeService'][_0x57347a(0x2e3)](_0x337bbd[_0x57347a(0x25c)]),_0x335e2f[_0x57347a(0x21d)](_0x50a408,_0x40daf6);}}),{'skeleton':_0x196b86,'cursors':_0x335e2f};}));}return _0x1eef53({'skeleton':null,'cursors':new Map()});}))[_0x1d3a6e(0x189)](({skeleton:_0x221c61,cursors:_0x461391})=>{const _0x1b4301=_0x1d3a6e;this[_0x1b4301(0x125)](),_0x221c61&&this[_0x1b4301(0x2a4)](_0x221c61,_0x461391);}),this[_0x1d3a6e(0x177)](this[_0x1d3a6e(0x186)]['currentSkeleton$'][_0x1d3a6e(0x27a)](_0x447a2c(this[_0x1d3a6e(0x1f0)]))[_0x1d3a6e(0x189)](_0xbc656a=>{const _0x24e5b8=_0x1d3a6e;var _0x1cd77c;if(_0xbc656a==null)return;(_0x1cd77c=this[_0x24e5b8(0x334)])==null||_0x1cd77c['unsubscribe'](),this[_0x24e5b8(0x334)]=null;let {skeleton:_0x10791f}=_0xbc656a,{scene:_0x1fc1e5}=this['_context'];this[_0x24e5b8(0x334)]=_0x1fc1e5[_0x24e5b8(0x192)][_0x24e5b8(0x11c)](_0x43170b(_0x5a31bc=>{const _0x5376c4=_0x24e5b8;var _0x32465e,_0x259b01;let {offsetX:_0x3e839b,offsetY:_0x2c053e}=_0x5a31bc,{x:_0x48aa39,y:_0xdf4285}=_0x1fc1e5[_0x5376c4(0x130)](_0x1ff5ca['FromArray']([_0x3e839b,_0x2c053e])),{scaleX:_0x1edc35,scaleY:_0x1d26b2}=_0x1fc1e5['getAncestorScale'](),_0x4aa8e4=_0x1fc1e5[_0x5376c4(0x322)](_0x1b53d2[_0x5376c4(0x1b5)]),_0x459ff5=_0x1fc1e5['getScrollXYInfoByViewport'](_0x1ff5ca[_0x5376c4(0x323)]([_0x48aa39,_0xdf4285]),_0x4aa8e4),_0x3f973d=_0x10791f[_0x5376c4(0x365)](_0x3e839b,_0x2c053e,_0x1edc35,_0x1d26b2,_0x459ff5);(((_0x32465e=this['_lastPointer'])==null?void 0x0:_0x32465e[_0x5376c4(0x1e0)])!==_0x3f973d[_0x5376c4(0x1e0)]||((_0x259b01=this['_lastPointer'])==null?void 0x0:_0x259b01[_0x5376c4(0x198)])!==_0x3f973d['row'])&&this['_cursors'][_0x5376c4(0x176)](_0xbe565b=>{const _0x55edc3=_0x5376c4;_0xbe565b[_0x55edc3(0x2a1)](_0x3f973d);});},0x64));})),this[_0x1d3a6e(0x177)](_0x2b7065(()=>{const _0x41740a=_0x1d3a6e;var _0x5d93e0;(_0x5d93e0=this['_pointerMoveDisposable'])==null||_0x5d93e0[_0x41740a(0x1ab)](),this[_0x41740a(0x334)]=null;}));}[_0x497e61(0x2a4)](_0x369e3f,_0x9adcb5){const _0x2bfecb=_0x497e61;let _0x41b56b=this[_0x2bfecb(0x186)][_0x2bfecb(0x2b2)]();if(!_0x41b56b)return;let _0x3854fe=this['_getSheetObject']();if(!_0x3854fe)return;this['_cursors']['forEach'](_0x3a9b6c=>{const _0x3f17d5=_0x2bfecb;_0x3a9b6c[_0x3f17d5(0x16e)]();});let {scene:_0x2b77cb}=_0x3854fe,_0x446d7f=An(Array[_0x2bfecb(0x1f6)](_0x9adcb5[_0x2bfecb(0x1dd)]()))['map'](_0x3a5fd9=>{let {color:_0xc51fc3,range:_0x6665d6,name:_0x1b30e3,selection:_0x2104bf,sheetID:_0x4b24aa}=_0x3a5fd9,{startColumn:_0x58994c,startRow:_0x20525b,endColumn:_0x4672eb,endRow:_0x4bbef1}=_0x6665d6,_0x4010ef=_0x4b477e(_0x20525b,_0x58994c,_0x2b77cb,_0x41b56b),_0x46e72a=_0x4b477e(_0x4bbef1,_0x4672eb,_0x2b77cb,_0x41b56b),{columnHeaderHeightAndMarginTop:_0x276c7d}=_0x41b56b,{startX:_0x39f07a,startY:_0x4505e2}=_0x4010ef,{endX:_0x129953,endY:_0x539341}=_0x46e72a,_0x39f3db=_0x129953-_0x39f07a,_0x39b338=_0x539341-_0x4505e2;return new On(_0x1b30e3,{'labelPosition':_0x4505e2-_0x276c7d>=0x14?'top':'bottom','sheetID':_0x4b24aa,'range':_0x6665d6,'color':_0xc51fc3,'name':_0x1b30e3,'selection':_0x2104bf,'left':_0x39f07a,'top':_0x4505e2,'width':_0x39f3db,'height':_0x39b338,'evented':!0x1,'zIndex':0x1389});});_0x2b77cb[_0x2bfecb(0x259)](_0x446d7f,0x1),this['_cursors']=new Set(_0x446d7f);}[_0x497e61(0x125)](){const _0x34ece7=_0x497e61;var _0x21dd26;(_0x21dd26=this[_0x34ece7(0x2e6)])==null||_0x21dd26[_0x34ece7(0x176)](_0x373386=>_0x373386[_0x34ece7(0x242)]());}[_0x497e61(0x36c)](){const _0x2105d6=_0x497e61;return _0x35f9d2(this[_0x2105d6(0x351)][_0x2105d6(0x2f9)],this[_0x2105d6(0x351)]);}};kn=q([K(0x1,_0x3d3024(_0x5cd311)),K(0x2,_0x3d3024(Z)),K(0x3,_0x3d3024(_0x2d83e2))],kn);function An(_0x2f48a5){const _0x37d216=_0x497e61;let _0x432f21=new Map();return _0x2f48a5[_0x37d216(0x176)](_0xe4d34f=>{const _0x14f8ec=_0x37d216;if(_0x432f21[_0x14f8ec(0x1c9)](_0xe4d34f['selection'])){let _0x103d85=_0x432f21['get'](_0xe4d34f[_0x14f8ec(0x26a)]);_0x103d85[_0x14f8ec(0x196)]+=',\x20'+_0xe4d34f[_0x14f8ec(0x196)];}else _0x432f21['set'](_0xe4d34f[_0x14f8ec(0x26a)],_0xe4d34f);}),Array[_0x37d216(0x1f6)](_0x432f21[_0x37d216(0x1dd)]());}function jn(_0x258000){const _0x2fc45a=_0x497e61;return typeof _0x258000==_0x2fc45a(0x146)&&!!_0x258000;}function Mn(_0x2eb611){const _0x2ba289=_0x497e61;return _0x2eb611['eventID']===_0x32fcce[_0x2ba289(0x277)]&&'data'in _0x2eb611&&jn(_0x2eb611['data'])&&typeof _0x2eb611[_0x2ba289(0x296)][_0x2ba289(0x155)]==_0x2ba289(0x2ac)&&typeof _0x2eb611['data'][_0x2ba289(0x26a)]==_0x2ba289(0x2ac);}function Nn(_0x1bda4d){const _0x5512e0=_0x497e61;return _0x1bda4d[_0x5512e0(0x335)]===_0x32fcce['USERS_LEAVE']&&'data'in _0x1bda4d&&jn(_0x1bda4d[_0x5512e0(0x296)])&&typeof _0x1bda4d[_0x5512e0(0x296)][_0x5512e0(0x155)]==_0x5512e0(0x2ac);}function Pn(_0x2709f8,_0xcd2e1b){const _0x52b862=_0x497e61;let _0xa3c6e4;try{_0xa3c6e4=JSON['parse'](_0x2709f8);}catch{return null;}if(!jn(_0xa3c6e4)||typeof _0xa3c6e4[_0x52b862(0x237)]!=_0x52b862(0x2ac)||typeof _0xa3c6e4['unitId']!=_0x52b862(0x2ac)||typeof _0xa3c6e4['subUnitId']!=_0x52b862(0x2ac))return null;let _0x5e4019=typeof _0xa3c6e4[_0x52b862(0x284)]==_0x52b862(0x213)?_0xa3c6e4[_0x52b862(0x284)]:_0xcd2e1b;if(_0x5e4019==null)return null;let _0x5e8584=jn(_0xa3c6e4[_0x52b862(0x28d)])&&typeof _0xa3c6e4[_0x52b862(0x28d)]['x']==_0x52b862(0x213)&&Number[_0x52b862(0x145)](_0xa3c6e4[_0x52b862(0x28d)]['x'])&&typeof _0xa3c6e4['pointer']['y']==_0x52b862(0x213)&&Number['isFinite'](_0xa3c6e4[_0x52b862(0x28d)]['y'])?{'x':_0xa3c6e4[_0x52b862(0x28d)]['x'],'y':_0xa3c6e4[_0x52b862(0x28d)]['y']}:null;return{'kind':_0xa3c6e4['kind'],'unitType':_0x5e4019,'unitId':_0xa3c6e4[_0x52b862(0x276)],'subUnitId':_0xa3c6e4[_0x52b862(0x1da)],'selectedIds':Array[_0x52b862(0x115)](_0xa3c6e4[_0x52b862(0x131)])?_0xa3c6e4[_0x52b862(0x131)][_0x52b862(0x10d)](_0x5a2942=>typeof _0x5a2942==_0x52b862(0x2ac)):[],'focusedId':typeof _0xa3c6e4[_0x52b862(0x283)]==_0x52b862(0x2ac)?_0xa3c6e4[_0x52b862(0x283)]:null,'pointer':_0x5e8584};}function Fn(_0x2df50d,_0x103ff9,_0x5baec6){const _0x5ca869=_0x497e61;return{'kind':_0x103ff9,'unitType':_0x2df50d,'unitId':_0x5baec6[_0x5ca869(0x276)],'subUnitId':_0x5baec6[_0x5ca869(0x1da)],'selectedIds':Array[_0x5ca869(0x1f6)](_0x5baec6[_0x5ca869(0x131)]),'focusedId':_0x5baec6[_0x5ca869(0x283)],'pointer':_0x5baec6[_0x5ca869(0x28d)]?{..._0x5baec6[_0x5ca869(0x28d)]}:null};}let In=class extends _0xe6d4b{constructor(_0x3393a4,_0x1cb3fc,_0x55c87b,_0x65969a,_0x30a7b5,_0x306478){const _0x3dea7d=_0x497e61;super(),this[_0x3dea7d(0x276)]=_0x3393a4,this[_0x3dea7d(0x2f5)]=_0x1cb3fc,this[_0x3dea7d(0x1ea)]=_0x55c87b,this['_colorAssignService']=_0x65969a,this[_0x3dea7d(0x31c)]=_0x30a7b5,this[_0x3dea7d(0x28b)]=_0x306478,G(this,_0x3dea7d(0x32a),!0x1),G(this,_0x3dea7d(0x1e1),!0x1);}get[_0x497e61(0x284)](){const _0xd50be6=_0x497e61;return this['_adapter'][_0xd50be6(0x284)];}[_0x497e61(0x242)](){const _0x5973cf=_0x497e61;this[_0x5973cf(0x14d)](),super['dispose']();}[_0x497e61(0x1bc)](){const _0x453925=_0x497e61;this['_initialized']||(this[_0x453925(0x1e1)]=!0x0,this[_0x453925(0x2f5)][_0x453925(0x170)][_0x453925(0x27a)](_0x4eb845(this[_0x453925(0x1f0)]))[_0x453925(0x189)](_0x1394a6=>{const _0x3bd49e=_0x453925;if(_0x1394a6===_0x4af289[_0x3bd49e(0x169)]){this[_0x3bd49e(0x32a)]=!0x0;let _0x2c1b8d=this[_0x3bd49e(0x1ea)][_0x3bd49e(0x226)](this[_0x3bd49e(0x276)]);_0x2c1b8d&&this[_0x3bd49e(0x118)](_0x2c1b8d);return;}this[_0x3bd49e(0x32a)]=!0x1,this[_0x3bd49e(0x14d)]();}),this['_session'][_0x453925(0x21a)][_0x453925(0x27a)](_0x4eb845(this[_0x453925(0x1f0)]))['subscribe'](_0x2e8ddf=>{const _0x1136ad=_0x453925;Mn(_0x2e8ddf)?this[_0x1136ad(0x2ab)](_0x2e8ddf):Nn(_0x2e8ddf)&&this[_0x1136ad(0x25e)](_0x2e8ddf[_0x1136ad(0x296)][_0x1136ad(0x155)]);}),this[_0x453925(0x1ea)][_0x453925(0x121)][_0x453925(0x27a)](_0xeb3cf0(_0x58de91=>this[_0x453925(0x32a)]&&_0x58de91[_0x453925(0x276)]===this[_0x453925(0x276)]),_0x28c002(_0x1a4f55=>_0x363ac4(_0x1a4f55[_0x453925(0x229)]),{'leading':!0x0,'trailing':!0x0}),_0x4eb845(this[_0x453925(0x1f0)]))[_0x453925(0x189)](_0x136af6=>this[_0x453925(0x118)](_0x136af6)));}[_0x497e61(0x118)](_0x4061fc){const _0x2b42f4=_0x497e61;let _0x1ed78e=this[_0x2b42f4(0x2f5)]['getMemberID']();if(!_0x1ed78e||!this[_0x2b42f4(0x32a)])return;let _0x47f6d9={'eventID':_0x32fcce[_0x2b42f4(0x277)],'data':{'unitID':this[_0x2b42f4(0x276)],'memberID':_0x1ed78e,'selection':JSON[_0x2b42f4(0x209)](Fn(this[_0x2b42f4(0x284)],this[_0x2b42f4(0x1ea)][_0x2b42f4(0x31a)],_0x4061fc))}};this[_0x2b42f4(0x2f5)][_0x2b42f4(0x2da)](_0x47f6d9,this[_0x2b42f4(0x276)])['catch'](()=>void 0x0);}[_0x497e61(0x2ab)](_0x23a98b){const _0x1ce904=_0x497e61;let {memberID:_0x285dcf,selection:_0x3843b0}=_0x23a98b[_0x1ce904(0x296)];if(_0x285dcf===this[_0x1ce904(0x2f5)][_0x1ce904(0x2aa)]())return;let _0x11c4ba=Pn(_0x3843b0,this[_0x1ce904(0x284)]);if(!_0x11c4ba||_0x11c4ba[_0x1ce904(0x237)]!==this[_0x1ce904(0x1ea)]['presenceKind']||_0x11c4ba[_0x1ce904(0x284)]!==this[_0x1ce904(0x284)]||_0x11c4ba[_0x1ce904(0x276)]!==this['unitId'])return;let _0x171af2=this['_memberService'][_0x1ce904(0x1e6)](this[_0x1ce904(0x276)],_0x285dcf),_0x483f93={'unitId':_0x11c4ba['unitId'],'subUnitId':_0x11c4ba['subUnitId'],'selectedIds':_0x11c4ba[_0x1ce904(0x131)],'focusedId':_0x11c4ba['focusedId'],'pointer':_0x11c4ba['pointer'],'memberId':_0x285dcf,'color':this['_colorAssignService'][_0x1ce904(0x153)](_0x285dcf),'name':(_0x171af2==null?void 0x0:_0x171af2[_0x1ce904(0x196)])??_0x285dcf};this[_0x1ce904(0x28b)][_0x1ce904(0x181)](Y['id'],{'unitType':this[_0x1ce904(0x284)],'update':{'type':_0x1ce904(0x21d),'state':_0x483f93}})[_0x1ce904(0x347)](()=>void 0x0);}['_removeRemotePresence'](_0x3b5270){const _0x1ddbe9=_0x497e61;this[_0x1ddbe9(0x28b)][_0x1ddbe9(0x181)](Y['id'],{'unitType':this[_0x1ddbe9(0x284)],'update':{'type':_0x1ddbe9(0x2c6),'unitId':this[_0x1ddbe9(0x276)],'memberId':_0x3b5270}})[_0x1ddbe9(0x347)](()=>void 0x0);}[_0x497e61(0x14d)](){const _0x57e073=_0x497e61;this['_commandService'][_0x57e073(0x181)](Y['id'],{'unitType':this[_0x57e073(0x284)],'update':{'type':_0x57e073(0x374),'unitId':this[_0x57e073(0x276)]}})[_0x57e073(0x347)](()=>void 0x0);}};In=q([K(0x3,_0x3d3024(mn)),K(0x4,_0x3d3024(_0x1d0690)),K(0x5,_0x3d3024(_0x137b25))],In);let Q=class extends _0xe6d4b{constructor(_0x3d6c7b,_0x73d746,_0x5deee6,_0x4f7e04){const _0x407706=_0x497e61;super(),this['_univerInstanceService']=_0x3d6c7b,this[_0x407706(0x2ec)]=_0x73d746,this[_0x407706(0x2b8)]=_0x5deee6,this[_0x407706(0x24d)]=_0x4f7e04,G(this,_0x407706(0x19b),!0x1),G(this,_0x407706(0x119),new Map()),G(this,_0x407706(0x2b7),new Map()),G(this,'_adapterDisposables',new Map()),this['_init']();}[_0x497e61(0x242)](){const _0x396dad=_0x497e61;this[_0x396dad(0x19b)]=!0x0,this[_0x396dad(0x265)]['forEach'](_0x4974fa=>_0x4974fa['dispose']()),this[_0x396dad(0x265)][_0x396dad(0x374)](),this[_0x396dad(0x119)][_0x396dad(0x176)](_0x34b4ec=>_0x34b4ec[_0x396dad(0x242)]()),this[_0x396dad(0x119)][_0x396dad(0x374)](),this[_0x396dad(0x2b7)][_0x396dad(0x374)](),super[_0x396dad(0x242)]();}[_0x497e61(0x1a4)](){const _0x1e45c7=_0x497e61;this[_0x1e45c7(0x24d)][_0x1e45c7(0x295)]['pipe'](_0x4eb845(this['dispose$']))[_0x1e45c7(0x189)](_0x49e920=>this[_0x1e45c7(0x1d2)](_0x49e920));}['_syncAdapters'](_0x56f729){const _0xbfa930=_0x497e61;let _0x5b82ea=new Set(_0x56f729[_0xbfa930(0x27d)](_0x538f13=>_0x538f13[_0xbfa930(0x284)]));this[_0xbfa930(0x265)]['forEach']((_0x10b822,_0x3ff565)=>{const _0x3fc961=_0xbfa930;_0x5b82ea[_0x3fc961(0x1c9)](_0x3ff565)||(_0x10b822[_0x3fc961(0x242)](),this[_0x3fc961(0x265)][_0x3fc961(0x23e)](_0x3ff565),this[_0x3fc961(0x28a)](_0x3ff565));}),_0x56f729[_0xbfa930(0x176)](_0x3e6b78=>{const _0x59f382=_0xbfa930;this[_0x59f382(0x265)]['has'](_0x3e6b78[_0x59f382(0x284)])||this[_0x59f382(0x2fa)](_0x3e6b78);});}[_0x497e61(0x2fa)](_0x4ffaf8){const _0x4ed4c4=_0x497e61;let _0x59050c=new _0x1f8f55();this[_0x4ed4c4(0x265)]['set'](_0x4ffaf8[_0x4ed4c4(0x284)],_0x59050c),_0x59050c[_0x4ed4c4(0x17a)](_0x4ffaf8[_0x4ed4c4(0x14f)]()),this['_univerInstanceService'][_0x4ed4c4(0x34f)](_0x4ffaf8[_0x4ed4c4(0x284)])[_0x4ed4c4(0x176)](_0x4f9800=>this[_0x4ed4c4(0x154)](_0x4f9800[_0x4ed4c4(0x15c)](),_0x4ffaf8)[_0x4ed4c4(0x347)](()=>void 0x0));let _0x3fb204=this[_0x4ed4c4(0x1a2)][_0x4ed4c4(0x30c)](_0x4ffaf8[_0x4ed4c4(0x284)])['subscribe'](({unit:_0x1eb485})=>this[_0x4ed4c4(0x154)](_0x1eb485['getUnitId'](),_0x4ffaf8)[_0x4ed4c4(0x347)](()=>void 0x0));_0x59050c[_0x4ed4c4(0x17a)](_0x2b7065(()=>_0x3fb204['unsubscribe']()));let _0x366aaa=this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4ffaf8[_0x4ed4c4(0x284)])['subscribe'](_0x6bb236=>this[_0x4ed4c4(0x122)](_0x6bb236['getUnitId']()));_0x59050c[_0x4ed4c4(0x17a)](_0x2b7065(()=>_0x366aaa[_0x4ed4c4(0x1ab)]()));}async[_0x497e61(0x154)](_0x5b729f,_0x159d1b){const _0x2aeee3=_0x497e61;if(this['_entities'][_0x2aeee3(0x1c9)](_0x5b729f)||this[_0x2aeee3(0x2b7)][_0x2aeee3(0x1c9)](_0x5b729f))return;let _0x4a4cbc={};this[_0x2aeee3(0x2b7)][_0x2aeee3(0x21d)](_0x5b729f,_0x4a4cbc);let _0x395ffa=await this[_0x2aeee3(0x2b8)][_0x2aeee3(0x2bc)](_0x5b729f)[_0x2aeee3(0x347)](_0x2509f2=>{const _0x279ff2=_0x2aeee3;throw this[_0x279ff2(0x2b7)]['get'](_0x5b729f)===_0x4a4cbc&&this[_0x279ff2(0x2b7)][_0x279ff2(0x23e)](_0x5b729f),_0x2509f2;});if(this['_isDisposed']||this[_0x2aeee3(0x2b7)][_0x2aeee3(0x1b9)](_0x5b729f)!==_0x4a4cbc||this[_0x2aeee3(0x24d)][_0x2aeee3(0x1b9)](_0x159d1b[_0x2aeee3(0x284)])!==_0x159d1b){this[_0x2aeee3(0x2b7)][_0x2aeee3(0x1b9)](_0x5b729f)===_0x4a4cbc&&this[_0x2aeee3(0x2b7)][_0x2aeee3(0x23e)](_0x5b729f);return;}let _0x261159=this[_0x2aeee3(0x2ec)]['createInstance'](In,_0x5b729f,_0x395ffa,_0x159d1b);_0x261159[_0x2aeee3(0x1bc)](),this['_pendingEntities'][_0x2aeee3(0x23e)](_0x5b729f),this['_entities'][_0x2aeee3(0x21d)](_0x5b729f,_0x261159);}[_0x497e61(0x122)](_0x54a0a1){const _0x4287d0=_0x497e61;this[_0x4287d0(0x2b7)][_0x4287d0(0x23e)](_0x54a0a1);let _0x486bbb=this[_0x4287d0(0x119)][_0x4287d0(0x1b9)](_0x54a0a1);_0x486bbb&&(_0x486bbb['dispose'](),this[_0x4287d0(0x119)][_0x4287d0(0x23e)](_0x54a0a1));}[_0x497e61(0x28a)](_0x2cf99f){const _0x2419b0=_0x497e61;this[_0x2419b0(0x1a2)][_0x2419b0(0x34f)](_0x2cf99f)[_0x2419b0(0x176)](_0xa4424b=>this[_0x2419b0(0x2b7)][_0x2419b0(0x23e)](_0xa4424b[_0x2419b0(0x15c)]())),Array[_0x2419b0(0x1f6)](this[_0x2419b0(0x119)][_0x2419b0(0x1b6)]())['forEach'](([_0x40d64b,_0x541996])=>{const _0x5a148e=_0x2419b0;_0x541996[_0x5a148e(0x284)]===_0x2cf99f&&this['_disposeEntity'](_0x40d64b);});}};Q=q([K(0x0,_0x3a4483),K(0x1,_0x3d3024(_0x2351e1)),K(0x2,_0x3d3024(_0x1f87ca)),K(0x3,_0x3d3024(_0x3eb804))],Q);let Ln=class extends _0x26d1e6{constructor(_0x25c2e5,_0x1a9e91,_0x421a43,_0x57fcfb,_0x41d446,_0x679544){const _0x3bfbab=_0x497e61;super(),this[_0x3bfbab(0x362)]=_0x25c2e5,this[_0x3bfbab(0x22b)]=_0x1a9e91,this[_0x3bfbab(0x13b)]=_0x421a43,this[_0x3bfbab(0x208)]=_0x57fcfb,this[_0x3bfbab(0x330)]=_0x41d446,this[_0x3bfbab(0x17e)]=_0x679544,G(this,_0x3bfbab(0x269),null),G(this,_0x3bfbab(0x2cd),new Set()),this[_0x3bfbab(0x250)](),this[_0x3bfbab(0x1df)]();}[_0x497e61(0x242)](){const _0x58e65e=_0x497e61;var _0x42cb22;(_0x42cb22=this[_0x58e65e(0x269)])==null||_0x42cb22['dispose'](),this[_0x58e65e(0x269)]=null,super[_0x58e65e(0x242)]();}[_0x497e61(0x250)](){const _0x44c421=_0x497e61;this[_0x44c421(0x177)](this['_beforeCloseService'][_0x44c421(0x2af)](()=>{const _0x3ad0ed=_0x44c421;if(this[_0x3ad0ed(0x22b)][_0x3ad0ed(0x110)][_0x3ad0ed(0x337)])return this[_0x3ad0ed(0x17e)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x3556fc=_0x497e61;this[_0x3556fc(0x177)](this[_0x3556fc(0x13b)][_0x3556fc(0x21a)][_0x3556fc(0x189)](_0x5b4e3d=>{const _0x10b01a=_0x3556fc;_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x182)]&&this[_0x10b01a(0x208)][_0x10b01a(0x2f6)]({'type':_0x4d40c3[_0x10b01a(0x1be)],'content':this[_0x10b01a(0x17e)]['t'](_0x10b01a(0x307))}),_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x2d7)]&&this['_messageService'][_0x10b01a(0x2f6)]({'type':_0x4d40c3['Warning'],'content':this[_0x10b01a(0x17e)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x5b4e3d['id']===_0x1ceacf['PERMISSION_DENIED']&&this[_0x10b01a(0x34e)]({'title':this[_0x10b01a(0x17e)]['t'](_0x10b01a(0x138)),'content':this['_localeService']['t'](_0x10b01a(0x143)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x10b01a(0x17e)]['t'](_0x10b01a(0x1f9)),'onClick':_0x2105a4=>{const _0x3c453d=_0x10b01a;_0x2105a4[_0x3c453d(0x1f8)](),window[_0x3c453d(0x234)]['reload']();}}}),_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x273)]&&this[_0x10b01a(0x185)](),_0x5b4e3d['id']===_0x1ceacf['CONFLICT_CACHE_CLEAR_FAILED']&&_0x5b4e3d[_0x10b01a(0x2c4)]&&this[_0x10b01a(0x309)](_0x5b4e3d[_0x10b01a(0x2c4)]),_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x2ae)]&&this[_0x10b01a(0x34e)]({'title':this[_0x10b01a(0x17e)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x10b01a(0x17e)]['t']('collaboration-client-ui.conflict.content'),'type':_0x10b01a(0x264),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x375671=>{const _0xe632fb=_0x10b01a;_0x375671[_0xe632fb(0x1f8)](),window[_0xe632fb(0x234)][_0xe632fb(0x217)]();}}}),_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x18b)]&&this[_0x10b01a(0x208)]['show']({'type':_0x4d40c3[_0x10b01a(0x1be)],'content':this['_localeService']['t'](_0x5b4e3d['data']||'')}),_0x5b4e3d['id']===_0x1ceacf['SOCKET_FAILED_RETRY']&&this[_0x10b01a(0x208)][_0x10b01a(0x2f6)]({'type':_0x4d40c3[_0x10b01a(0x1be)],'content':this['_localeService']['t']('collaboration-client-ui.session.will-retry')}),_0x5b4e3d['id']===_0x1ceacf[_0x10b01a(0x2b5)]&&this[_0x10b01a(0x208)][_0x10b01a(0x2f6)]({'type':_0x4d40c3[_0x10b01a(0x289)],'content':this[_0x10b01a(0x17e)]['t'](_0x10b01a(0x1ad))}),_0x5b4e3d['id']===_0x1ceacf['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':_0x4d40c3[_0x10b01a(0x289)],'content':this[_0x10b01a(0x17e)]['t'](_0x10b01a(0x287))});}));}[_0x497e61(0x185)](){const _0x42895a=_0x497e61;this['_replaceConflictNotification']({'title':this[_0x42895a(0x17e)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x42895a(0x17e)]['t'](_0x42895a(0x37d)),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x497e61(0x309)](_0x5d0d12){const _0x4d5b32=_0x497e61;this[_0x4d5b32(0x34e)]({'title':this[_0x4d5b32(0x17e)]['t'](_0x4d5b32(0x163)),'content':this[_0x4d5b32(0x17e)]['t'](_0x4d5b32(0x312)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x4d5b32(0x17e)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x5687f7=>{const _0x3f8094=_0x4d5b32;_0x5687f7[_0x3f8094(0x1f8)](),this[_0x3f8094(0x2ef)](_0x5d0d12);}}});}[_0x497e61(0x2ef)](_0x178994){const _0x95ae13=_0x497e61;this['_retryingConflictCacheUnitIDs'][_0x95ae13(0x1c9)](_0x178994)||(this['_retryingConflictCacheUnitIDs']['add'](_0x178994),this['_showConflictProcessingNotification'](),this[_0x95ae13(0x22b)][_0x95ae13(0x359)](_0x178994)['then'](()=>window[_0x95ae13(0x234)][_0x95ae13(0x217)]())[_0x95ae13(0x347)](()=>this[_0x95ae13(0x309)](_0x178994))[_0x95ae13(0x379)](()=>this[_0x95ae13(0x2cd)][_0x95ae13(0x23e)](_0x178994)));}[_0x497e61(0x34e)](_0x42c8aa){const _0x38545c=_0x497e61;var _0x3cdf8e;(_0x3cdf8e=this['_conflictNotification'])==null||_0x3cdf8e[_0x38545c(0x242)](),this[_0x38545c(0x269)]=this[_0x38545c(0x330)][_0x38545c(0x2f6)](_0x42c8aa);}};Ln=q([K(0x0,_0x5aa2f1),K(0x1,_0x137b82),K(0x2,_0x3d3024(_0x3ac887)),K(0x3,_0x50bfcc),K(0x4,_0x542b4d),K(0x5,_0x3d3024(_0x6b982d))],Ln);const Rn=_0x386799(_0x497e61(0x313));let zn=class extends _0xe6d4b{constructor(_0x26faee,_0x2f7a2b,_0x5128af,_0x50680d){const _0x3fae12=_0x497e61;super(),this[_0x3fae12(0x2c3)]=_0x26faee,this[_0x3fae12(0x319)]=_0x2f7a2b,this[_0x3fae12(0x28b)]=_0x5128af,this[_0x3fae12(0x27e)]=_0x50680d,this['_init']()['catch'](_0x2e0753=>this[_0x3fae12(0x319)][_0x3fae12(0x264)](_0x3fae12(0x16d),_0x2e0753));}async['_init'](){const _0x2912de=_0x497e61;let _0x5ac780=this['_urlService'][_0x2912de(0x26d)](_0x2912de(0x2f9)),_0x496483=this['_urlService'][_0x2912de(0x26d)](_0x2912de(0x2a5)),_0x529046=this['_urlService'][_0x2912de(0x26d)]('subunit');if(!_0x5ac780||!_0x496483){this[_0x2912de(0x319)][_0x2912de(0x36d)](_0x2912de(0x16d),_0x2912de(0x15e));return;}let _0x34af2e=await this['_dataLoaderService'][_0x2912de(0x2c9)](_0x5ac780,Number(_0x496483),_0x529046);this[_0x2912de(0x1ee)]||_0x34af2e&&_0x34af2e instanceof _0x5163e7&&await this[_0x2912de(0x139)](_0x34af2e);}async[_0x497e61(0x139)](_0x2051d8){const _0x18839b=_0x497e61;await this[_0x18839b(0x141)](_0x2051d8,!0x0),!this['_disposed']&&(_0x2051d8[_0x18839b(0x21c)][_0x18839b(0x27a)](_0x4eb845(this[_0x18839b(0x1f0)]))['subscribe'](_0x373cae=>{const _0x41902c=_0x18839b;_0x373cae&&this[_0x41902c(0x2ff)](_0x373cae);}),this[_0x18839b(0x2c3)][_0x18839b(0x219)][_0x18839b(0x27a)](_0x4eb845(this[_0x18839b(0x1f0)]))['subscribe'](()=>{const _0x32a1b3=_0x18839b;this[_0x32a1b3(0x141)](_0x2051d8)[_0x32a1b3(0x347)](_0x46d4d6=>this['_logService'][_0x32a1b3(0x264)](_0x32a1b3(0x16d),_0x46d4d6));}));}[_0x497e61(0x2ff)](_0x37c226,_0x1c6898=!0x1){const _0x5ef40d=_0x497e61;let _0x1cd30b=this['_urlService']['getParam'](_0x5ef40d(0x1b4));_0x37c226[_0x5ef40d(0x378)]()!==_0x1cd30b&&this[_0x5ef40d(0x2c3)][_0x5ef40d(0x371)](_0x5ef40d(0x1b4),_0x37c226[_0x5ef40d(0x378)](),_0x1c6898);}async['_updateSubUnitFromURLParams'](_0x358e7e,_0x17506b=!0x1){const _0x1c5b4f=_0x497e61;var _0x24e375;let _0x388c58=this[_0x1c5b4f(0x2c3)][_0x1c5b4f(0x26d)](_0x1c5b4f(0x1b4));if(!_0x388c58||!_0x358e7e[_0x1c5b4f(0x2d0)](_0x388c58)){let _0x466234=_0x358e7e['getUnhiddenWorksheets']()[0x0],_0x2064b8=_0x358e7e[_0x1c5b4f(0x2d0)](_0x466234);if(!_0x2064b8||(this[_0x1c5b4f(0x2ff)](_0x2064b8,!0x0),this[_0x1c5b4f(0x1ee)]))return;await this['_commandService'][_0x1c5b4f(0x181)](_0x5d4888['id'],{'unitId':_0x358e7e[_0x1c5b4f(0x15c)](),'subUnitId':_0x466234});return;}(_0x17506b||((_0x24e375=_0x358e7e[_0x1c5b4f(0x24c)]())==null?void 0x0:_0x24e375[_0x1c5b4f(0x378)]())!==_0x388c58)&&await this[_0x1c5b4f(0x28b)][_0x1c5b4f(0x181)](_0x5d4888['id'],{'unitId':_0x358e7e[_0x1c5b4f(0x15c)](),'subUnitId':_0x388c58});}};zn=q([K(0x0,Rn),K(0x1,_0x141c38),K(0x2,_0x137b25),K(0x3,_0x3d3024(_0x18448c))],zn);let Bn=class{constructor(_0x17eb8d,_0x372ffd){const _0x2ecc53=_0x497e61;this['_transformService']=_0x17eb8d,this[_0x2ecc53(0x1f4)]=_0x372ffd;}[_0x497e61(0x1b3)](_0x322b68){const _0x23ec3c=_0x497e61;this[_0x23ec3c(0x19f)](_0x322b68),this['_transformPreviousActiveRange'](_0x322b68);}[_0x497e61(0x231)](_0x49562b){const _0x11e2a9=_0x497e61;let {unitID:_0x3d36de}=_0x49562b,{redoCache:_0x1e5191}=this[_0x11e2a9(0x1f4)]['getRenderUnitById'](_0x3d36de)['with'](_0x56d8d9)[_0x11e2a9(0x175)]();if(_0x1e5191[_0x11e2a9(0x346)]===0x0)return _0x49562b;let _0x5188a1=_0x1c1492[_0x11e2a9(0x27f)](_0x49562b[_0x11e2a9(0x126)][0x0]);for(let _0x220256=0x0;_0x220256<_0x1e5191[_0x11e2a9(0x346)];_0x220256++){let _0x1b2968={'id':_0x11e2a9(0x361),'params':{..._0x1e5191[_0x220256]}},_0x146159=this[_0x11e2a9(0x356)]['transformMutation'](_0x5188a1,_0x1b2968,!0x1);if(_0x1b03b5(_0x146159))throw _0x146159['error'];_0x5188a1=_0x146159[_0x11e2a9(0x275)];}return{..._0x1c1492[_0x11e2a9(0x27f)](_0x49562b),'mutations':[_0x5188a1]};}[_0x497e61(0x19f)](_0x5ec320){const _0x5d18a7=_0x497e61;let {unitID:_0x5e1af3}=_0x5ec320,_0x1ddec5=this[_0x5d18a7(0x1f4)][_0x5d18a7(0x32f)](_0x5e1af3)[_0x5d18a7(0x270)](_0x56d8d9),{undoCache:_0x2e3eda,redoCache:_0x60d4ee}=_0x1ddec5[_0x5d18a7(0x175)]();if(_0x2e3eda[_0x5d18a7(0x346)]===0x0||_0x60d4ee[_0x5d18a7(0x346)]===0x0)return;let _0x3a8ce2=[],_0x257eb1=[],_0x36fab9=_0x1c1492[_0x5d18a7(0x27f)](_0x5ec320[_0x5d18a7(0x126)][0x0]),_0x1d47d3=_0x1c1492[_0x5d18a7(0x27f)](_0x5ec320[_0x5d18a7(0x126)][0x0]);for(let _0x146728=_0x2e3eda[_0x5d18a7(0x346)]-0x1;_0x146728>=0x0;_0x146728--){let _0x174e7d={'id':_0x5d18a7(0x361),'params':{..._0x2e3eda[_0x146728]}},_0x3009f7={'id':_0x5d18a7(0x361),'params':{..._0x60d4ee[_0x146728]}},_0x3c519f=this[_0x5d18a7(0x356)]['transformMutation'](_0x36fab9,_0x174e7d,!0x1),_0x29a0b6=this['_transformService'][_0x5d18a7(0x1a8)](_0x1d47d3,_0x3009f7,!0x1);if(_0x1b03b5(_0x3c519f))throw _0x3c519f[_0x5d18a7(0x264)];if(_0x1b03b5(_0x29a0b6))throw _0x29a0b6[_0x5d18a7(0x264)];_0x3a8ce2[_0x5d18a7(0x19c)](_0x3c519f[_0x5d18a7(0x2df)]['params']),_0x257eb1[_0x5d18a7(0x19c)](_0x29a0b6[_0x5d18a7(0x2df)][_0x5d18a7(0x300)]),_0x36fab9=_0x3c519f[_0x5d18a7(0x275)],_0x1d47d3=_0x29a0b6['m1Prime'];}_0x1ddec5['setUndoRedoMutationParamsCache']({'undoCache':_0x3a8ce2,'redoCache':_0x257eb1});}[_0x497e61(0x315)](_0x268b4b){const _0x46e75f=_0x497e61;let {unitID:_0x628371}=_0x268b4b,_0x464eff=this['_renderManagerService'][_0x46e75f(0x32f)](_0x628371)['with'](_0x56d8d9),_0x480255=_0x464eff[_0x46e75f(0x197)]();if(_0x480255==null)return;let _0x134c7a=[{'id':_0x46e75f(0x361),'params':{'unitId':_0x268b4b['unitID'],'actions':null,'textRanges':[_0x480255]}}],_0x2795a1=this[_0x46e75f(0x356)][_0x46e75f(0x36a)](_0x268b4b,_0x134c7a);if(!_0x5311f0(_0x2795a1))throw _0x2795a1['error'];let _0x2f39ee=_0x2795a1[_0x46e75f(0x2df)][0x0]['params'][_0x46e75f(0x152)];Array['isArray'](_0x2f39ee)&&_0x2f39ee[_0x46e75f(0x346)]&&_0x464eff['setActiveRange'](_0x2f39ee[0x0]);}};Bn=q([K(0x0,_0x23eea6),K(0x1,_0x32ed6c)],Bn);let Vn=class{constructor(_0x18bdce,_0x276300,_0x15375a){const _0x1fd529=_0x497e61;this[_0x1fd529(0x2ec)]=_0x18bdce,this[_0x1fd529(0x356)]=_0x276300,this['_docStateChangeManagerService']=_0x15375a;}[_0x497e61(0x22f)](_0xc1b9a4){this['_transformHistoryAndStateStack'](_0xc1b9a4);}[_0x497e61(0x231)](_0x236936){const _0x2a8a1e=_0x497e61;let {unitID:_0x4cc5e8}=_0x236936,{collaboration:_0x30a026}=this[_0x2a8a1e(0x249)][_0x2a8a1e(0x2f0)](_0x4cc5e8);if(_0x30a026[_0x2a8a1e(0x346)]===0x0)return _0x236936;let _0x2749a3=_0x1c1492[_0x2a8a1e(0x27f)](_0x236936[_0x2a8a1e(0x126)][0x0]);for(let _0xe16be2=0x0;_0xe16be2<_0x30a026[_0x2a8a1e(0x346)];_0xe16be2++){let _0xee9667={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x30a026[_0xe16be2][_0x2a8a1e(0x276)],..._0x30a026[_0xe16be2]['redoState']}},_0x55627a=this[_0x2a8a1e(0x356)][_0x2a8a1e(0x1a8)](_0x2749a3,_0xee9667,!0x1);if(_0x1b03b5(_0x55627a))throw _0x55627a[_0x2a8a1e(0x264)];_0x2749a3=_0x55627a[_0x2a8a1e(0x275)];}return{..._0x1c1492[_0x2a8a1e(0x27f)](_0x236936),'mutations':[_0x2749a3]};}['_transformHistoryAndStateStack'](_0xc70ba9){const _0x24362a=_0x497e61;let {unitID:_0x360dce}=_0xc70ba9,{history:_0x115f5e,collaboration:_0x46883e}=this[_0x24362a(0x249)]['getStateCache'](_0x360dce);if(_0x115f5e['length']===0x0&&_0x46883e[_0x24362a(0x346)]===0x0)return;let _0x4ce115=[],_0x4e43a4=[],_0x475523=_0x1c1492[_0x24362a(0x27f)](_0xc70ba9[_0x24362a(0x126)][0x0]),_0x2d0ab2=_0x1c1492[_0x24362a(0x27f)](_0xc70ba9[_0x24362a(0x126)][0x0]);for(let _0x47796b=_0x115f5e[_0x24362a(0x346)]-0x1;_0x47796b>=0x0;_0x47796b--){let _0x468589={'id':_0x24362a(0x361),'params':{'unitId':_0x115f5e[_0x47796b][_0x24362a(0x276)],..._0x115f5e[_0x47796b][_0x24362a(0x324)]}},_0x54cb8a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x115f5e[_0x47796b][_0x24362a(0x276)],..._0x115f5e[_0x47796b]['redoState']}},_0x33b10b=this['_transformService'][_0x24362a(0x1a8)](_0x475523,_0x468589,!0x1),_0x90233f=this[_0x24362a(0x356)][_0x24362a(0x1a8)](_0x2d0ab2,_0x54cb8a,!0x1);if(_0x1b03b5(_0x33b10b))throw _0x33b10b[_0x24362a(0x264)];if(_0x1b03b5(_0x90233f))throw _0x90233f['error'];_0x4ce115[_0x24362a(0x19c)]({..._0x115f5e[_0x47796b],'undoState':_0x33b10b[_0x24362a(0x2df)]['params'],'redoState':_0x90233f['m2Prime'][_0x24362a(0x300)]}),_0x475523=_0x33b10b['m1Prime'],_0x2d0ab2=_0x90233f[_0x24362a(0x275)];}_0x475523=_0x1c1492['deepClone'](_0xc70ba9[_0x24362a(0x126)][0x0]),_0x2d0ab2=_0x1c1492[_0x24362a(0x27f)](_0xc70ba9[_0x24362a(0x126)][0x0]);for(let _0x3f5cec=_0x46883e[_0x24362a(0x346)]-0x1;_0x3f5cec>=0x0;_0x3f5cec--){let _0x5d63a9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x46883e[_0x3f5cec][_0x24362a(0x276)],..._0x46883e[_0x3f5cec][_0x24362a(0x324)]}},_0x4f6cb5={'id':_0x24362a(0x361),'params':{'unitId':_0x46883e[_0x3f5cec]['unitId'],..._0x46883e[_0x3f5cec][_0x24362a(0x17b)]}},_0x4dfee2=this['_transformService'][_0x24362a(0x1a8)](_0x475523,_0x5d63a9,!0x1),_0x106fce=this[_0x24362a(0x356)]['transformMutation'](_0x2d0ab2,_0x4f6cb5,!0x1);if(_0x1b03b5(_0x4dfee2))throw _0x4dfee2[_0x24362a(0x264)];if(_0x1b03b5(_0x106fce))throw _0x106fce[_0x24362a(0x264)];_0x4e43a4[_0x24362a(0x19c)]({..._0x46883e[_0x3f5cec],'undoState':_0x4dfee2[_0x24362a(0x2df)][_0x24362a(0x300)],'redoState':_0x106fce['m2Prime'][_0x24362a(0x300)]}),_0x475523=_0x4dfee2[_0x24362a(0x275)],_0x2d0ab2=_0x106fce['m1Prime'];}this[_0x24362a(0x249)]['setStateCache'](_0x360dce,{'history':_0x4ce115,'collaboration':_0x4e43a4});}};Vn=q([K(0x0,_0x3d3024(_0x2351e1)),K(0x1,_0x23eea6),K(0x2,_0x3d3024(_0x56ea32))],Vn);let Hn=class{constructor(_0xba3a6b,_0x131825){const _0x95b5ee=_0x497e61;this['_docSelectionManagerService']=_0xba3a6b,this[_0x95b5ee(0x356)]=_0x131825;}[_0x497e61(0x18a)](_0xd2ee64){const _0x528277=_0x497e61;var _0x3c6de3;let _0x451e4b=this[_0x528277(0x30d)]['getDocRanges']()??[],_0x279b0a=this['_docSelectionManagerService'][_0x528277(0x2d9)]();if(_0x451e4b[_0x528277(0x346)]===0x0||_0x279b0a==null)return null;let _0x3169fd=_0xd2ee64[_0x528277(0x2c4)],_0x39d470=[{'id':_0x528277(0x361),'params':{'unitId':_0x3169fd,'actions':null,'textRanges':_0x451e4b}}],_0x20d95b=this['_transformService']['transformMutationsWithChangeset'](_0xd2ee64,_0x39d470);if(!_0x5311f0(_0x20d95b))throw _0x20d95b[_0x528277(0x264)];let _0x5bd866=(_0x3c6de3=_0x20d95b[_0x528277(0x2df)][0x0])==null?void 0x0:_0x3c6de3[_0x528277(0x300)],_0x34a38c=_0x5bd866&&typeof _0x5bd866==_0x528277(0x146)&&_0x528277(0x152)in _0x5bd866?_0x5bd866[_0x528277(0x152)]:null;if(!Gn(_0x34a38c))return null;let _0x16821e=Un(_0xd2ee64['mutations'][_0x528277(0x1e3)](_0x39ced4=>Kn(_0x39ced4[_0x528277(0x300)]))?_0x34a38c[_0x528277(0x10d)](_0x3c1f70=>!(_0x528277(0x23a)in _0x3c1f70)):_0x34a38c,{..._0x279b0a,'options':_0x279b0a[_0x528277(0x2b1)]?{..._0x279b0a['options'],'wholeDocument':!0x1}:void 0x0}),_0x54d5ad={'unitId':_0x3169fd,'subUnitId':_0x3169fd};this[_0x528277(0x30d)]['replaceSelectionInfoWithoutRefresh'](_0x16821e,_0x54d5ad);let _0x31146a=!0x0;return{'commit':()=>{_0x31146a=!0x1;},'rollback':()=>{const _0x4d09c5=_0x528277;_0x31146a&&(_0x31146a=!0x1,this[_0x4d09c5(0x30d)][_0x4d09c5(0x36e)](_0x279b0a,_0x54d5ad));}};}};Hn=q([K(0x0,_0x3d3024(_0x404c28)),K(0x1,_0x23eea6)],Hn);function Un(_0x2dad00,_0x38b1dd){const _0x61b71f=_0x497e61;let _0xc83dd9=[],_0x12ca55=[];for(let _0x117387 of _0x2dad00)Wn(_0x117387)?_0x12ca55[_0x61b71f(0x24b)](_0x117387):_0xc83dd9[_0x61b71f(0x24b)](_0x117387);return{..._0x38b1dd,'textRanges':_0xc83dd9,'rectRanges':_0x12ca55};}function Wn(_0x5d90b5){const _0x346353=_0x497e61;return _0x346353(0x23a)in _0x5d90b5;}function Gn(_0x5b2b0f){const _0x3048fb=_0x497e61;return Array[_0x3048fb(0x115)](_0x5b2b0f)&&_0x5b2b0f[_0x3048fb(0x18f)](_0x5dcf68=>typeof _0x5dcf68==_0x3048fb(0x146)&&!!_0x5dcf68&&_0x3048fb(0x144)in _0x5dcf68&&_0x3048fb(0x20e)in _0x5dcf68);}function Kn(_0xc4b717){const _0x130607=_0x497e61;return _0xc4b717===_0x130607(0x29d)?!0x0:Array['isArray'](_0xc4b717)?_0xc4b717['some'](_0x539298=>Kn(_0x539298)):!_0xc4b717||typeof _0xc4b717!=_0x130607(0x146)?!0x1:Object['values'](_0xc4b717)['some'](_0x58f1c7=>Kn(_0x58f1c7));}let qn=class extends _0x26d1e6{constructor(_0xb3ee39,_0x1192d5,_0x57c78a,_0x439451,_0xd1bbda,_0x24b902,_0x22b05f){const _0x50a13f=_0x497e61;super(),this[_0x50a13f(0x241)]=_0xb3ee39,this[_0x50a13f(0x1ca)]=_0x1192d5,this[_0x50a13f(0x15a)]=_0x57c78a,this[_0x50a13f(0x17d)]=_0x439451,this['_docSyncEditingCollabCursorService']=_0xd1bbda,this[_0x50a13f(0x208)]=_0x24b902,this['_localeService']=_0x22b05f,G(this,'_status$',new _0x52e8e8(_0x52ef7e['NOT_COLLAB'])),this[_0x50a13f(0x174)]();}[_0x497e61(0x174)](){const _0x3389cc=_0x497e61;this[_0x3389cc(0x177)](this[_0x3389cc(0x241)][_0x3389cc(0x1eb)]['subscribe'](_0x317454=>{const _0x38345d=_0x3389cc;_0x317454 instanceof _0x4fcb18&&_0x317454['addHandlerCallback']({'onTransformIME':_0x316e7b=>this[_0x38345d(0x1ca)][_0x38345d(0x1b3)](_0x316e7b),'onTransformState':_0x5a0930=>this[_0x38345d(0x15a)][_0x38345d(0x22f)](_0x5a0930),'onPrepareTransformSelections':_0x5c3285=>this[_0x38345d(0x17d)][_0x38345d(0x18a)](_0x5c3285),'onSyncEditingCollabCursor':_0x1e5127=>this[_0x38345d(0x218)][_0x38345d(0x1c2)](_0x1e5127),'onTransformRemoteChangesetByIMECache':_0x577663=>this[_0x38345d(0x1ca)][_0x38345d(0x231)](_0x577663),'onTransformRemoteChangesetByStateCache':_0x324ac5=>this[_0x38345d(0x15a)][_0x38345d(0x231)](_0x324ac5)});}));}};qn=q([K(0x0,_0x3d3024(_0x2db83e)),K(0x1,_0x3d3024(Bn)),K(0x2,_0x3d3024(Vn)),K(0x3,_0x3d3024(Hn)),K(0x4,_0x3d3024(_n)),K(0x5,_0x50bfcc),K(0x6,_0x3d3024(_0x6b982d))],qn);let Jn=class extends _0x26d1e6{constructor(_0x165d5a,_0x5b9fb4,_0x582521,_0x2b88d1){const _0x63d79a=_0x497e61;super(),this[_0x63d79a(0x2ec)]=_0x165d5a,this[_0x63d79a(0x301)]=_0x5b9fb4,this[_0x63d79a(0x319)]=_0x582521,this['_collaborationSessionService']=_0x2b88d1,G(this,'_memberID',void 0x0),this['_init']();}[_0x497e61(0x1a4)](){const _0x44ffd6=_0x497e61;this[_0x44ffd6(0x282)](),this[_0x44ffd6(0x2ed)](),this[_0x44ffd6(0x304)](),this[_0x44ffd6(0x127)]();}[_0x497e61(0x127)](){const _0x561ed1=_0x497e61;this[_0x561ed1(0x177)](this[_0x561ed1(0x1cd)][_0x561ed1(0x1c5)][_0x561ed1(0x189)](_0x4babcf=>{const _0x53b530=_0x561ed1;this['_memberID']=_0x4babcf==null?void 0x0:_0x4babcf[_0x53b530(0x155)];}));}[_0x497e61(0x282)](){const _0x34a95b=_0x497e61;let _0x52ec90=_0x38334a=>{const _0x339fe5=_0x1250;var _0xe051fe;this[_0x339fe5(0x2e7)](_0x339fe5(0x264),'[Window\x20Error]:\x20'+_0x38334a[_0x339fe5(0x11a)]+'\x20at\x20'+_0x38334a['filename']+':'+_0x38334a['lineno']+':'+_0x38334a[_0x339fe5(0x358)]+'\x0a'+(((_0xe051fe=_0x38334a[_0x339fe5(0x264)])==null?void 0x0:_0xe051fe[_0x339fe5(0x350)])||''));};window[_0x34a95b(0x2be)](_0x34a95b(0x264),_0x52ec90),this['disposeWithMe'](()=>{const _0x18add0=_0x34a95b;window['removeEventListener'](_0x18add0(0x264),_0x52ec90);});}[_0x497e61(0x2ed)](){const _0x3e4650=_0x497e61;let _0x21693a=_0xfadde1=>{const _0x4af01e=_0x1250;this[_0x4af01e(0x2e7)](_0x4af01e(0x264),_0x4af01e(0x34b)+_0xfadde1[_0x4af01e(0x260)]);};window[_0x3e4650(0x2be)](_0x3e4650(0x1fe),_0x21693a),this[_0x3e4650(0x177)](()=>{const _0x374091=_0x3e4650;window[_0x374091(0x147)]('unhandledrejection',_0x21693a);});}[_0x497e61(0x304)](){const _0x2a61b5=_0x497e61;let _0x59bad8=this[_0x2a61b5(0x319)][_0x2a61b5(0x264)]['bind'](this[_0x2a61b5(0x319)]);this[_0x2a61b5(0x319)]['error']=(..._0x2d53f6)=>{const _0x1e94f9=_0x2a61b5;let _0x531ff9=_0x2d53f6[_0x1e94f9(0x27d)](_0x51d0f9=>_0x51d0f9 instanceof Error?_0x51d0f9[_0x1e94f9(0x11a)]+'\x0a'+_0x51d0f9[_0x1e94f9(0x350)]:String(_0x51d0f9))[_0x1e94f9(0x294)]('\x20');this[_0x1e94f9(0x2e7)](_0x1e94f9(0x264),'[LogService\x20Error]:\x20'+_0x531ff9),_0x59bad8(..._0x2d53f6);},this['disposeWithMe'](()=>{const _0x1a382e=_0x2a61b5;this['_logService'][_0x1a382e(0x264)]=_0x59bad8;});}[_0x497e61(0x2e7)](_0x3271f7,_0x3c7e93){const _0x173802=_0x497e61;try{let _0x15a56d={'userId':this[_0x173802(0x206)],'logLabel':_0x3271f7,'content':_0x3c7e93};this['_httpService'][_0x173802(0x2e5)](_0x173802(0x1c6),{'body':_0x15a56d})[_0x173802(0x347)](()=>{});}catch{}}};Jn=q([K(0x0,_0x3d3024(_0x2351e1)),K(0x1,_0x3d3024(_0x32be63)),K(0x2,_0x141c38),K(0x3,_0x3d3024(_0x1f87ca))],Jn);function Yn({state$:_0x37f6d1}){const _0x10e04b=_0x497e61;let _0x5046da=_0xc78634(_0x37f6d1,null,!0x0);return _0x5046da?_0x3fe01f(_0x10e04b(0x1b2),{'data-u-comp':_0x10e04b(0x1fb),'role':_0x10e04b(0x13d),'className':_0x10e04b(0x15b),'children':[_0x242b5a(_0x535da3,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x242b5a('span',{'children':_0x5046da[_0x10e04b(0x12d)]}),_0x242b5a(_0xfb512b,{'size':_0x10e04b(0x2f1),'variant':'primary','onClick':()=>window[_0x10e04b(0x234)][_0x10e04b(0x217)](),'children':_0x5046da[_0x10e04b(0x212)]})]}):null;}const Xn=_0x497e61(0x1ff);let Zn=class extends _0x26d1e6{constructor(_0x5e0c73,_0x117585,_0x33c63c,_0x2048fc,_0x4b8026,_0x3b1f59){const _0x94c65=_0x497e61;super(),this[_0x94c65(0x24a)]=_0x5e0c73,this[_0x94c65(0x208)]=_0x117585,this[_0x94c65(0x17e)]=_0x33c63c,this[_0x94c65(0x2ec)]=_0x2048fc,this['_urlService']=_0x3b1f59,G(this,'_timeoutState$',new _0x52e8e8(null)),G(this,'_messageIds',new Set()),G(this,_0x94c65(0x1e2),new Map()),G(this,_0x94c65(0x178),new Map()),G(this,_0x94c65(0x28c),this['_timeoutState$'][_0x94c65(0x30e)]());let _0x48a78d=()=>_0x24ae67(Yn,{'state$':this['timeoutState$']});this['disposeWithMe'](_0x4b8026[_0x94c65(0x263)](_0x4c7d13[_0x94c65(0x1a9)],()=>_0x42b10d(_0x48a78d,this[_0x94c65(0x2ec)]))),this[_0x94c65(0x177)](this['_snapshotLoadingService']['state$'][_0x94c65(0x189)](_0x3c0089=>{const _0x157357=_0x94c65;this[_0x157357(0x178)]=_0x3c0089,_0x3c0089[_0x157357(0x176)](_0x283a4a=>this[_0x157357(0x194)](_0x283a4a));})),this[_0x94c65(0x177)](this[_0x94c65(0x2c3)][_0x94c65(0x219)]['subscribe'](()=>{const _0x4d81ba=_0x94c65;this[_0x4d81ba(0x178)]['forEach'](_0xc2d050=>this['_updateMessage'](_0xc2d050));}));}[_0x497e61(0x242)](){const _0x43548b=_0x497e61;this[_0x43548b(0x20a)]['forEach'](_0x410769=>this[_0x43548b(0x208)][_0x43548b(0x2c6)](_0x410769)),this[_0x43548b(0x20a)]['clear'](),this[_0x43548b(0x1e2)][_0x43548b(0x176)](({timeoutId:_0x196d1e})=>clearTimeout(_0x196d1e)),this[_0x43548b(0x1e2)][_0x43548b(0x374)](),this[_0x43548b(0x202)]['complete'](),super[_0x43548b(0x242)]();}[_0x497e61(0x194)](_0x2d2d67){const _0xc7da18=_0x497e61;let _0x886ead=''+Xn+_0x2d2d67[_0xc7da18(0x276)];if(_0x2d2d67[_0xc7da18(0x373)]===_0x3aa3b4[_0xc7da18(0x167)]){this[_0xc7da18(0x2c0)](_0x2d2d67[_0xc7da18(0x276)]),this['_clearTimeoutState'](_0x2d2d67[_0xc7da18(0x276)]),this['_messageService'][_0xc7da18(0x2c6)](_0x886ead),this[_0xc7da18(0x20a)][_0xc7da18(0x23e)](_0x886ead);return;}if(!this['_isVisibleUnit'](_0x2d2d67['unitId'])){this[_0xc7da18(0x2c0)](_0x2d2d67[_0xc7da18(0x276)]),this['_clearTimeoutState'](_0x2d2d67['unitId']),this[_0xc7da18(0x208)][_0xc7da18(0x2c6)](_0x886ead),this[_0xc7da18(0x20a)]['delete'](_0x886ead);return;}if(_0x2d2d67['stage']===_0x3aa3b4['ERROR']){this['_clearBlockProgressWatch'](_0x2d2d67[_0xc7da18(0x276)]),this[_0xc7da18(0x12e)](_0x2d2d67[_0xc7da18(0x276)]),this[_0xc7da18(0x208)][_0xc7da18(0x2f6)]({'id':_0x886ead,'type':_0x4d40c3[_0xc7da18(0x289)],'content':this[_0xc7da18(0x17e)]['t'](_0xc7da18(0x1ad))}),this[_0xc7da18(0x20a)][_0xc7da18(0x23e)](_0x886ead);return;}if(_0x2d2d67['stage']!==_0x3aa3b4[_0xc7da18(0x2d6)]||_0x2d2d67[_0xc7da18(0x33a)]<=0xa){this[_0xc7da18(0x2c0)](_0x2d2d67[_0xc7da18(0x276)]),this[_0xc7da18(0x208)][_0xc7da18(0x2c6)](_0x886ead),this[_0xc7da18(0x20a)][_0xc7da18(0x23e)](_0x886ead);return;}this['_watchBlockProgress'](_0x2d2d67)||(this[_0xc7da18(0x208)][_0xc7da18(0x2f6)]({'id':_0x886ead,'type':_0x4d40c3[_0xc7da18(0x200)],'duration':0x1/0x0,'content':this[_0xc7da18(0x17e)]['t'](_0xc7da18(0x1a7))+'\x20'+_0x2d2d67['loadedBlocks']+'/'+_0x2d2d67['totalBlocks']}),this[_0xc7da18(0x20a)]['add'](_0x886ead));}['_watchBlockProgress'](_0x521393){const _0xe5e81e=_0x497e61;let _0x34e090=this['_blockProgressWatches']['get'](_0x521393[_0xe5e81e(0x276)]);if((_0x34e090==null?void 0x0:_0x34e090[_0xe5e81e(0x2e1)])===_0x521393['loadedBlocks'])return _0x34e090[_0xe5e81e(0x1d0)];this['_clearBlockProgressWatch'](_0x521393[_0xe5e81e(0x276)]);let _0x594c3c=setTimeout(()=>{const _0x3a2021=_0xe5e81e;let _0x4a5ed=this[_0x3a2021(0x1e2)][_0x3a2021(0x1b9)](_0x521393[_0x3a2021(0x276)]);if(!_0x4a5ed||_0x4a5ed[_0x3a2021(0x224)]!==_0x594c3c)return;_0x4a5ed[_0x3a2021(0x1d0)]=!0x0;let _0x3ec963=''+Xn+_0x521393[_0x3a2021(0x276)];this[_0x3a2021(0x208)][_0x3a2021(0x2c6)](_0x3ec963),this['_messageIds'][_0x3a2021(0x23e)](_0x3ec963),this[_0x3a2021(0x202)][_0x3a2021(0x238)]({'unitId':_0x521393[_0x3a2021(0x276)],'content':this['_localeService']['t'](_0x3a2021(0x18c),String(_0x521393[_0x3a2021(0x2e1)]),String(_0x521393[_0x3a2021(0x33a)])),'refreshLabel':this[_0x3a2021(0x17e)]['t'](_0x3a2021(0x1f9))});},0xea60);return this[_0xe5e81e(0x1e2)]['set'](_0x521393['unitId'],{'loadedBlocks':_0x521393[_0xe5e81e(0x2e1)],'timedOut':!0x1,'timeoutId':_0x594c3c}),!0x1;}[_0x497e61(0x2c0)](_0x1a02e5){const _0x277de7=_0x497e61;let _0x30d5a1=this[_0x277de7(0x1e2)][_0x277de7(0x1b9)](_0x1a02e5);_0x30d5a1&&(clearTimeout(_0x30d5a1[_0x277de7(0x224)]),this['_blockProgressWatches']['delete'](_0x1a02e5),this['_clearTimeoutState'](_0x1a02e5));}['_clearTimeoutState'](_0xe85a4b){const _0x4a820d=_0x497e61;var _0xe1a80a;((_0xe1a80a=this[_0x4a820d(0x202)][_0x4a820d(0x156)])==null?void 0x0:_0xe1a80a[_0x4a820d(0x276)])===_0xe85a4b&&this[_0x4a820d(0x202)][_0x4a820d(0x238)](null);}[_0x497e61(0x318)](_0x1ec91a){const _0x133e52=_0x497e61;let _0x3e3d9b=this['_urlService'][_0x133e52(0x26d)](_0x133e52(0x2f9));return!_0x3e3d9b||_0x3e3d9b===_0x1ec91a;}};Zn=q([K(0x0,_0x3d3024(_0xd32281)),K(0x1,_0x50bfcc),K(0x2,_0x3d3024(_0x6b982d)),K(0x3,_0x3d3024(_0x2351e1)),K(0x4,_0x1d4041),K(0x5,Rn)],Zn);let Qn=class extends _0x26d1e6{constructor(_0x9d170,_0x46346f,_0x472700){const _0x42b5a5=_0x497e61;super(),this[_0x42b5a5(0x2a7)]=_0x9d170,this[_0x42b5a5(0x2cf)]=_0x46346f,this[_0x42b5a5(0x1ba)]=_0x472700,G(this,_0x42b5a5(0x233),new Map()),G(this,_0x42b5a5(0x252),new Map()),G(this,'_activeSaveTaskMap',new Map()),G(this,_0x42b5a5(0x29b),!0x1);}[_0x497e61(0x288)](){const _0x95890e=_0x497e61;this[_0x95890e(0x29b)]=!0x0;}[_0x497e61(0x33c)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x1c794b=_0x497e61;return this[_0x1c794b(0x252)];}[_0x497e61(0x242)](){const _0x5c9e06=_0x497e61;this[_0x5c9e06(0x135)]()[_0x5c9e06(0x1ac)](()=>super[_0x5c9e06(0x242)]());}async['loadOfflineData'](_0x1bff10){const _0x10c4c5=_0x497e61;return this[_0x10c4c5(0x29b)]?null:this['_localStorageService'][_0x10c4c5(0x34d)](_0x163373(_0x1bff10));}async[_0x497e61(0x172)](_0x10313b,_0xa5fb5a){const _0x520df7=_0x497e61;let _0x2ee056=this['_localStorageService'][_0x520df7(0x20f)](_0x163373(_0x10313b),_0xa5fb5a);return this[_0x520df7(0x255)](_0x10313b,_0x2ee056),!!await _0x2ee056;}async[_0x497e61(0x120)](_0x2fd6b0,_0x34fce3){const _0x39979f=_0x497e61;let _0x133972=this['_cachedData'][_0x39979f(0x1b9)](_0x2fd6b0)??await this[_0x39979f(0x2cf)]['getItem'](_0x163373(_0x2fd6b0));if(!_0x133972)return;let _0x18ca4f=Date['now'](),_0x16ae5d=new Date(_0x18ca4f)['toISOString']();await this[_0x39979f(0x2cf)][_0x39979f(0x20f)](_0x163373(_0x2fd6b0)+':backup:'+_0x18ca4f,{'reason':_0x34fce3,'createdAt':_0x16ae5d,'data':_0x133972});}async[_0x497e61(0x359)](_0x103da9){const _0x551b1b=_0x497e61;let _0x3a0869=this['_saveTaskMap'][_0x551b1b(0x1b9)](_0x103da9);_0x3a0869!==void 0x0&&(window[_0x551b1b(0x1e7)](_0x3a0869),this[_0x551b1b(0x252)][_0x551b1b(0x23e)](_0x103da9));let _0x1881b0=this[_0x551b1b(0x2f4)]['get'](_0x103da9);_0x1881b0&&await Promise[_0x551b1b(0x297)](_0x1881b0),this[_0x551b1b(0x233)][_0x551b1b(0x23e)](_0x103da9),await this['_localStorageService'][_0x551b1b(0x136)](_0x163373(_0x103da9));}[_0x497e61(0x342)](_0x26e626,_0x485b10,_0x14feba,_0x13641a){const _0x366b9f=_0x497e61;let _0x1a71b4=this[_0x366b9f(0x1ba)]['getCurrentRevOfUnit'](_0x26e626);this[_0x366b9f(0x233)]['set'](_0x26e626,{'unitID':_0x26e626,'type':_0x485b10,'awaitingChangeset':_0x14feba,'mutations':_0x13641a,'rev':_0x1a71b4}),this[_0x366b9f(0x252)]['has'](_0x26e626)||this[_0x366b9f(0x293)](_0x26e626);}['_scheduleSaving'](_0x5e8c2d){const _0x7e19e8=_0x497e61;let _0x25b719=this[_0x7e19e8(0x310)]();_0x25b719===0x0?this[_0x7e19e8(0x1bb)](_0x5e8c2d):this[_0x7e19e8(0x252)][_0x7e19e8(0x21d)](_0x5e8c2d,window[_0x7e19e8(0x235)](()=>this[_0x7e19e8(0x1bb)](_0x5e8c2d),_0x25b719));}['_getSaveTimeout'](){const _0x3e219d=_0x497e61;return this[_0x3e219d(0x2a7)][_0x3e219d(0x24e)](_0xc4dbea)??_0xa5e54f;}['_saveCache'](_0x4a1b68){const _0x1f1b2e=_0x497e61;let _0x44537a=this[_0x1f1b2e(0x252)][_0x1f1b2e(0x1b9)](_0x4a1b68);_0x44537a!==void 0x0&&window[_0x1f1b2e(0x1e7)](_0x44537a);let _0x54bc09=this[_0x1f1b2e(0x2cf)][_0x1f1b2e(0x20f)](_0x163373(_0x4a1b68),this[_0x1f1b2e(0x233)][_0x1f1b2e(0x1b9)](_0x4a1b68))[_0x1f1b2e(0x1ac)](()=>this[_0x1f1b2e(0x252)][_0x1f1b2e(0x23e)](_0x4a1b68));return this['_trackActiveSaveTask'](_0x4a1b68,_0x54bc09),_0x54bc09;}[_0x497e61(0x255)](_0x4a9cc1,_0x3fd33e){const _0x43042d=_0x497e61;let _0x284c9d=this[_0x43042d(0x2f4)][_0x43042d(0x1b9)](_0x4a9cc1);_0x284c9d||(_0x284c9d=new Set(),this[_0x43042d(0x2f4)][_0x43042d(0x21d)](_0x4a9cc1,_0x284c9d)),_0x284c9d[_0x43042d(0x17a)](_0x3fd33e);let _0x1a2b19=()=>{const _0x4dff7e=_0x43042d;_0x284c9d[_0x4dff7e(0x23e)](_0x3fd33e),_0x284c9d['size']===0x0&&this[_0x4dff7e(0x2f4)][_0x4dff7e(0x23e)](_0x4a9cc1);};_0x3fd33e['then'](_0x1a2b19,_0x1a2b19);}async[_0x497e61(0x135)](){const _0xbdd53=_0x497e61;let _0x428462=[];this['_saveTaskMap'][_0xbdd53(0x176)]((_0x18b832,_0x57fbf8)=>{const _0x276ce7=_0xbdd53;window[_0x276ce7(0x1e7)](_0x18b832),_0x428462['push'](this['_saveCache'](_0x57fbf8)[_0x276ce7(0x1ac)](()=>{const _0x1b978=_0x276ce7;this[_0x1b978(0x252)][_0x1b978(0x23e)](_0x57fbf8);}));}),await Promise[_0xbdd53(0x1d4)](_0x428462);}};Qn=q([K(0x0,_0x105ef2),K(0x1,_0x1c3442),K(0x2,_0x3d3024(_0x4a3125))],Qn);var $n=class extends _0xe6d4b{constructor(){const _0xc72145=_0x497e61;super(),G(this,_0xc72145(0x219),void 0x0),this['urlChange$']=_0x10d9b8(window,'popstate')[_0xc72145(0x27a)](_0x4eb845(this[_0xc72145(0x1f0)]),_0x4d84b0({'bufferSize':0x1,'refCount':!0x0}),_0x1445c8(void 0x0));}[_0x497e61(0x371)](_0x288bc5,_0x2a3e28,_0x890b17=!0x1){const _0x41f313=_0x497e61;let _0xc861a3=new URL(window['location'][_0x41f313(0x353)]);_0xc861a3[_0x41f313(0x2fb)]['set'](_0x288bc5,_0x2a3e28),_0x890b17?window[_0x41f313(0x1cc)][_0x41f313(0x2b6)]('','',_0xc861a3['toString']()):window[_0x41f313(0x1cc)]['pushState']('','',_0xc861a3[_0x41f313(0x292)]());}[_0x497e61(0x2ee)](_0x3659db,_0x174c20=!0x1){const _0x56fcda=_0x497e61;let _0xe8b849=new URL(window[_0x56fcda(0x234)]['href']);_0xe8b849[_0x56fcda(0x2fb)][_0x56fcda(0x23e)](_0x3659db),_0x174c20?window[_0x56fcda(0x1cc)][_0x56fcda(0x2b6)]('','',_0xe8b849[_0x56fcda(0x292)]()):window[_0x56fcda(0x1cc)]['pushState']('','',_0xe8b849['toString']());}[_0x497e61(0x26d)](_0x5a03cb){const _0x5e1471=_0x497e61;return new URL(window['location'][_0x5e1471(0x353)])[_0x5e1471(0x2fb)][_0x5e1471(0x1b9)](_0x5a03cb)??void 0x0;}};let $=class extends _0x36b188{constructor(_0x1e6e65=fn,_0x2ca476,_0x25183c,_0x1b8221,_0x39b455){const _0x1dbbd8=_0x497e61;super(),this[_0x1dbbd8(0x199)]=_0x1e6e65,this[_0x1dbbd8(0x1f4)]=_0x2ca476,this['_injector']=_0x25183c,this['_configService']=_0x1b8221,this[_0x1dbbd8(0x28b)]=_0x39b455;let {..._0x58513c}=_0x4ee085({},fn,this[_0x1dbbd8(0x199)]);this[_0x1dbbd8(0x2a7)][_0x1dbbd8(0x352)](_0x1dbbd8(0x320),_0x58513c);}['onStarting'](){const _0x12e32e=_0x497e61;this[_0x12e32e(0x132)](),this[_0x12e32e(0x177)](this[_0x12e32e(0x28b)][_0x12e32e(0x31e)](Y)),this[_0x12e32e(0x303)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x497e61(0x132)](){const _0x2ba3f3=_0x497e61;var _0x145ed4;let _0x29463d=[[mn],[Rn,{'useClass':$n}],[_0x502944,{'useClass':_0x53a61e}],[_0x137b82,{'useClass':Qn}],[J],[Ln],[Z],[Q],[zn],[Zn]];this[_0x2ba3f3(0x199)][_0x2ba3f3(0x243)]!==!0x1&&_0x29463d['push']([Hn],[Bn],[Vn],[_n],[qn],[X]),this['_config']['enableFrontendLog']&&_0x29463d[_0x2ba3f3(0x24b)]([Jn]),_0x3fff4e(this['_injector'],_0xc1bdde(_0x29463d,(_0x145ed4=this[_0x2ba3f3(0x199)])==null?void 0x0:_0x145ed4[_0x2ba3f3(0x355)]));}[_0x497e61(0x1d7)](){const _0x3ca46e=_0x497e61;this[_0x3ca46e(0x199)][_0x3ca46e(0x243)]!==!0x1&&this[_0x3ca46e(0x177)](this['_renderManagerService'][_0x3ca46e(0x1a0)](_0x159b05['UNIVER_DOC'],[Dn])),this['disposeWithMe'](this[_0x3ca46e(0x1f4)]['registerRenderModule'](_0x159b05[_0x3ca46e(0x25a)],[kn]));}['_initDependencies'](){const _0x2c9ff1=_0x497e61;_0x24a3dd(this['_injector'],[[Z],[Q],[J],[Ln],[zn],[Zn]]),this[_0x2c9ff1(0x199)][_0x2c9ff1(0x243)]!==!0x1&&_0x24a3dd(this['_injector'],[[qn],[X]]),this[_0x2c9ff1(0x199)][_0x2c9ff1(0x311)]&&_0x24a3dd(this[_0x2c9ff1(0x2ec)],[[Jn]]);}};G($,_0x497e61(0x345),_0x497e61(0x2fc)),G($,_0x497e61(0x2a8),un),G($,_0x497e61(0x2e8),dn),$=q([_0x2ceeb4(_0x5112e4,_0x6e0440,_0x11f527,_0x138e0b,_0x50773,_0x27ffaf,_0x15e476),K(0x1,_0x32ed6c),K(0x2,_0x3d3024(_0x2351e1)),K(0x3,_0x105ef2),K(0x4,_0x137b25)],$);function _0x1250(_0x28c61f,_0x3f8fbd){_0x28c61f=_0x28c61f-0x10d;const _0x48b8b9=_0x48b8();let _0x125081=_0x48b8b9[_0x28c61f];return _0x125081;}let er=class extends _0x120dd7{constructor(_0x1c1b85,_0x46b99c,_0x1b1698,_0x4ee9bf,_0x14cb63){super(_0x1c1b85,_0x46b99c,_0x1b1698,_0x4ee9bf,_0x14cb63);}async[_0x497e61(0x1f2)](_0x127743){const _0x3fbffd=_0x497e61;let _0xe0e68d=await this[_0x3fbffd(0x2b4)](),_0x32e9d9=this[_0x3fbffd(0x285)](_0x127743,_0xe0e68d);return this['_doCreateSocket'](_0x32e9d9);}[_0x497e61(0x285)](_0x5de701,_0x71c1e8){const _0x31b9d2=_0x497e61;let _0x12b127=typeof window>'u'?new URL(_0x5de701):new URL(_0x5de701,window[_0x31b9d2(0x234)]['origin']);_0x12b127[_0x31b9d2(0x2fb)]['set'](_0x31b9d2(0x302),_0x71c1e8);let _0x217222=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x31b9d2(0x234)][_0x31b9d2(0x10e)]);return _0x217222[_0x31b9d2(0x1b9)](_0x31b9d2(0x1aa))&&_0x12b127[_0x31b9d2(0x2fb)][_0x31b9d2(0x21d)](_0x31b9d2(0x1aa),_0x217222[_0x31b9d2(0x1b9)](_0x31b9d2(0x1aa))),_0x12b127['toString']();}async[_0x497e61(0x2b4)](){const _0xc4a15e=_0x497e61;var _0x109045;let _0xc4e9cc=this[_0xc4a15e(0x2a7)][_0xc4a15e(0x24e)](_0x39b318),_0x1bb834=(_0xc4e9cc==null?void 0x0:_0xc4e9cc[_0xc4a15e(0x2bd)])??_0x2a7571;return((_0x109045=(await this[_0xc4a15e(0x301)][_0xc4a15e(0x1b9)](_0x1bb834,{'headers':{'Content-Type':'application/json'}}))[_0xc4a15e(0x306)])==null?void 0x0:_0x109045[_0xc4a15e(0x1e5)])??'';}};er=q([K(0x0,_0x3d3024(_0x2351e1)),K(0x1,_0x3d3024(_0x32be63)),K(0x2,_0x105ef2),K(0x3,_0x141c38),K(0x4,_0xa5d101)],er);let tr=class extends _0x26d1e6{constructor(_0x12f2d0,_0x1c4446,_0x54cf9d){const _0x5f0e64=_0x497e61;super(),this['_instanceService']=_0x12f2d0,this[_0x5f0e64(0x301)]=_0x1c4446,this[_0x5f0e64(0x2a7)]=_0x54cf9d;}async['runOnServer'](_0x33c21c,_0xe1379f,_0xcee4a7,..._0x5d19af){const _0xcc88d5=_0x497e61;let _0x49bedf=this[_0xcc88d5(0x328)]['getFocusedUnit']();if(!_0x49bedf)throw Error(_0xcc88d5(0x1ed));let _0x46498c=(this[_0xcc88d5(0x2a7)]['getConfig'](_0x4959d3)??_0x94ed93)+'/'+_0x33c21c+_0xcc88d5(0x2cc)+_0xe1379f,_0x53efb5={'scriptId':_0x33c21c,'runId':new URL(window['location'][_0xcc88d5(0x353)])[_0xcc88d5(0x2fb)][_0xcc88d5(0x1b9)](_0xcc88d5(0x1aa))??'','function':_0xe1379f,'unitId':_0x49bedf[_0xcc88d5(0x15c)](),'argsOfFunction':JSON[_0xcc88d5(0x209)](_0x5d19af),'invokeId':_0xcee4a7[_0xcc88d5(0x1db)]??'','executionId':_0xcee4a7[_0xcc88d5(0x34a)]??''};try{let _0x27c919=await this[_0xcc88d5(0x301)][_0xcc88d5(0x2e5)](_0x46498c,{'body':_0x53efb5});return _0x27c919[_0xcc88d5(0x306)][_0xcc88d5(0x264)]&&_0x27c919['body'][_0xcc88d5(0x264)][_0xcc88d5(0x22d)]!==_0x342cd0['OK']?_0xcc88d5(0x31f):_0x27c919[_0xcc88d5(0x306)][_0xcc88d5(0x190)];}catch{return'Failed';}}};function _0x48b8(){const _0x101824=['_onRefRangeChange','getValue','every','result','ranges','onPointerMove$','_initPresenceStatusComponents','_updateMessage','segmentPage','name','getActiveRange','row','_config','_textBubble','_isDisposed','unshift','getRangePointData','_roomMembers$','_transformUndoRedoStack','registerRenderModule','_getAnchorBounding','_univerInstanceService','_handleHover','_init','registerRefRange','HEADER_MENU','collaboration-client-ui.collabStatus.fetchMiss','transformMutation','GLOBAL','runId','unsubscribe','then','collaboration-client-ui.session.connection-failed','_onCursorDelete','...','reconnect','_toggleOffline','div','transformIMECache','subunit','VIEW_MAIN','entries','endColumn','true','get','_revisionService','_saveCache','init','_handleLeaveEvent','Warning','arc','collaboration-client-ui.collabStatus.notCollab','hovered','syncEditingCollabCursor','getDocRanges','restore','socket$','/universer-api/frontend/logs','prototype','fill','has','_docTransformIMECacheService','drawWith','history','_collaborationSessionService','button','closePath','timedOut','split','_syncAdapters','_ensureSubject','all','_draw','_syncPresenceStatusComponents','_registerRenderDependencies','constructor','_cursorShapes','subUnitId','invokeId','univer-appearance-none','values','_unitOnClients','_initEvent','column','_initialized','_blockProgressWatches','some','univer-text-gray-400','ticket','getMember','clearTimeout','SYNCED','_id','_adapter','entityInit$','range','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_disposed','NO_OTHER_CLIENTS_EDITING','dispose$','_scene','createSocket','width','_renderManagerService','roomMembers','from','304700Llhsfe','preventDefault','collaboration-client-ui.snapshotLoading.refresh','_unitStatus','snapshot-loading-timeout','showText','_drawRectRange','unhandledrejection','snapshot-loading-','Loading','1.0.0','_timeoutState$','560TiMxpX','update','spin','_memberID','_highlight','_messageService','stringify','_messageIds','top','_registerPresenceStatusComponent','_lastPointer','endOffset','setItem','onPointerEnter$','_isBlinkVisible','refreshLabel','number','getFocusedUnit','fillText','collaboration-client-ui.collabStatus.offline','reload','_docSyncEditingCollabCursorService','urlChange$','event$','_initStatusListener','activeSheet$','set','red.300','_presenceAdapterRegistry','_cursor','dark:focus:!univer-ring-offset-gray-800','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','complete','timeoutId','_entityInit$','getLocalPresence','RECT','getOwnPropertyDescriptor','shareInterval','toPrimitive','_localCacheService','onCommandExecuted','code','NOT_COLLAB','transformStateCache','collaboration-client-ui.collabStatus.conflict','transformRemoteChangeset','yellow.400','_cachedData','location','setTimeout','_handleHeartbeatEvent','kind','next','univer-flex\x20univer-items-center\x20univer-justify-center','tableId','fillStyle','_colorIndex','_labelHorizontalPosition','delete','function','univer-text-green-500','_collaborationController','dispose','enableDocumentCollaborationUI','focused$','_backgroundColor','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','onPointerLeave$','_initCommandExecutedListener','_docStateChangeManagerService','_snapshotLoadingService','push','getActiveSheet','_adapterRegistry','getConfig','text','_setupBeforeClosingHandler','static','_saveTaskMap','getOffsetConfig','Enter','_trackActiveSaveTask','_blinkIntervalTimer','addClipboardHook','hide','addObjects','UNIVER_SHEET','univer-text-blue-500','color','USERS_LEAVE','_removeRemotePresence','649KMZmql','reason','bottom','left','registerComponent','error','_adapterDisposables','getCollabCursors$','MoveRangeCommandId','createInstance','_conflictNotification','selection','5964bbsVom','InsertColCommandId','getParam','offsetY','newValue','with','highlight','memberId','CONFLICT_PROCESSING','canRenderSelection','m1Prime','unitId','UPDATE_CURSOR','setShapeProps','parseInt','pipe','_getLighterColor','sheetId','map','_dataLoaderService','deepClone','getUnitStatus$','_updateLocalCursor','_initWindowErrorListener','focusedId','unitType','_createSocketURL','0.2)','collaboration-client-ui.session.collaboration-timeout','disableLocalCache','Error','_disposeEntitiesForType','_commandService','timeoutState$','pointer','highlightSecond','min','toRgbString','purple.300','toString','_scheduleSaving','join','adapters$','data','allSettled','InsertRangeMoveRightCommandId','collaboration-client-ui.collabClient.tooltip.reconnect','207trmzUw','_disabled','UNIVER_DOC','tableSource','univer-m-0\x20univer-p-0','_color','find','onMouseMove','onTransformChange$','_onCursorUpdate','_updateCollabCursors','type','unload','_configService','packageName','call','getMemberID','_handleCursorUpdate','string','58jpRubk','CONFLICT','registerBeforeClose','status','options','getCurrentSkeleton','_presenceStatusRegistrations','_getSessionTicket','SOCKET_FAILED','replaceState','_pendingEntities','_collabSessionService','getMergeData','disposeUnit','currentSkeleton$','requireSession','wsSessionTicketUrl','addEventListener','labelHorizontalPosition','_clearBlockProgressWatch','collab-text-range-','_removeClearOtherTimer','_urlService','unitID','_docSkeletonManagerService','remove','DeleteRangeMoveUpCommandId','_docClipboardService','loadUnit','default','i18nKey','/run/','_retryingConflictCacheUnitIDs','getUnit','_localStorageService','getSheetBySheetId','_selfUnitIDs','_name','tooltipKey','collaboration-client-ui.collabStatus.syncing','setRemotePresence','LOADING_BLOCKS','CLOSE_ROOM','_themeService','getSelectionInfo','send','_uiPartsService','univer-transition-all\x20univer-duration-200','_clearOtherTimers','_getMergeRange','m2Prime','indicator','loadedBlocks','collab-rect-range-','getColorFromTheme','_status$','post','_cursors','_uploadLog','version','_eventUnsubscribe','_toggleOnline','_range','_injector','_initUnhandledRejectionListener','removeParam','_retryConflictCacheClear','getStateCache','small','green.600','removeRemotePresence','_activeSaveTaskMap','_session','show','_collabCursorController','_initStatusComponent','unit','_bindAdapter','searchParams','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','triggerDblclick','DeleteRangeMoveLeftCommandId','_updateURLWithCurrentState','params','_httpService','sessionTicket','_initDependencies','_monkeyPatchLogService','imageSourceType','body','collaboration-client-ui.collaboration.single-unit.warning','cursorInfo$','_showConflictCacheClearFailedNotification','pageIndex','defineProperty','getTypeOfUnitAdded$','_docSelectionManagerService','asObservable','collab-text-anchor-','_getSaveTimeout','enableFrontendLog','collaboration-client-ui.conflict.clearFailed','uni.network.url-service','AWAITING','_transformPreviousActiveRange','replace','startColumn','_isVisibleUnit','_logService','presenceKind','columnIndex','_memberService','pulse','registerCommand','Failed','collaboration-client-ui.config','getCurrentTypeOfUnit$','getViewport','FromArray','undoState','clearInterval','_labelPosition','_collabCursorState$','_instanceService','9904dALvuQ','_online','columnGroupId','startsWith','_hovered','_assignedColors','getRenderUnitById','_notificationService','_syncEditingCollabCursorService','collaboration-client-ui.collabStatus.synced','2317HwTvja','_pointerMoveDisposable','eventID','getSkeleton','size','_handleJoinEvent','measureText','totalBlocks','max','enableLocalCache','_drawAnchor','\x20-\x20','_showText','black','_hover','updateOfflineData','decorate','RemoveRowCommandId','pluginName','length','catch','pageType','rgb','executionId','[Unhandled\x20Rejection]:\x20','beginPath','getItem','_replaceConflictNotification','getAllUnitsForType','stack','_context','setConfig','href','univer-text-orange-500','override','_transformService','31156bDOuGg','colno','clearOfflineData','_send','_handleEvent','statusUIPart',',\x200.2)','_getScale','lineTo','_scheduleHeartbeat','doc.mutation.rich-text-editing','_beforeCloseService','_stopBlinking','_startBlinking','getCellIndexByOffset','_shapes','source','_refRangeService','_anchor','transformMutationsWithChangeset','saveImage','_getSheetObject','debug','replaceSelectionInfoWithoutRefresh','_initResize','storage','setParam','cursorInfo','stage','clear','OFFLINE','strokeWidth','setAlpha','getSheetId','finally','save','_anchorDot','height','collaboration-client-ui.conflict.processing','filter','search','_highlightSecond','saveTaskMap','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','key','_cursorInfo$','startRow','isArray','FOOTER','_startDocCollabCursor','_sendLocalPresence','_entities','message','canRenderAnchor','subscribeEvent','selections','includes','evenodd','backupOfflineData','localPresence$','_disposeEntity','right','_refreshCollabCursors','_removeCollabCursors','mutations','_initUserListener','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','slice','getCollabEntity$','symbol','findNodePositionByCharIndex','content','_clearTimeoutState','rgba','getCoordRelativeToViewport','selectedIds','_registerDependencies','collabCursorState$','OTHER_CLIENTS_EDITING','exhaustSavingTask','removeItem','isEditing','collaboration-client-ui.permission.title','_setupSubUnitSync','resize','_collaborationUIEventService','isActive','alert','67780LHxKuQ','FETCH_MISS','72qifDEZ','_updateSubUnitFromURLParams','Unknown\x20user','collaboration-client-ui.permission.content','startOffset','isFinite','object','removeEventListener','getTypeOfUnitDisposed$','2256WepfDM','univer-h-8\x20univer-w-8\x20univer-rounded-lg','endRow','moveTo','_clearRemotePresences','_imageIoService','activate','_hideTimer','clickable','textRanges','assignAColorForMemberID','_startEntity','memberID','value','polite','getCurrentSelections','_drawTextRange','_docTransformStateCacheService','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','getUnitId','setInterval','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','TEXT','addObject','engine','colorClass','collaboration-client-ui.conflict.title','editingUnit','getCurrentUnitOfType','labelPosition','COMPLETE','backgroundColor','ONLINE','bold\x2013px\x20Arial,\x20sans-serif','#FFF','_startSheetCollabCursor','[CollaborationDataLoaderController]','makeDirty','InsertRowCommandId','sessionStatus$','_colorAssignService','saveOfflineData','_blinkTimer','_initEntityListener','getUndoRedoMutationParamsCache','forEach','disposeWithMe','_latestStates','status$','add','redoState','iterator','_docTransformSelectionsService','_localeService','blue.400','_scheduleClearOtherTimer','executeCommand','OTHER_CLIENT_EDITING','_docSkeleton','_render','_showConflictProcessingNotification','_sheetSkeletonManagerService','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_heartbeatTimer','subscribe','prepareTransformSelections','JOIN_ROOM_FAILED','collaboration-client-ui.snapshotLoading.timeout'];_0x48b8=function(){return _0x101824;};return _0x48b8();}tr=q([K(0x0,_0x3a4483),K(0x1,_0x3d3024(_0x32be63)),K(0x2,_0x105ef2)],tr);const nr=0x7530,rr='ACTIVE_UNIT_EVENT_CHANNEL';var ir=class extends _0x26d1e6{constructor(){const _0x18edfd=_0x497e61;super(),G(this,_0x18edfd(0x1e9),_0x5b81d9()),G(this,_0x18edfd(0x2d1),new Set()),G(this,_0x18edfd(0x1de),new Map()),G(this,_0x18edfd(0x188),null),G(this,'_clearOtherTimers',new Map()),G(this,_0x18edfd(0x1fa),new Map()),this[_0x18edfd(0x1a4)]();}[_0x497e61(0x242)](){const _0x3a663f=_0x497e61;super['dispose'](),this[_0x3a663f(0x2dd)][_0x3a663f(0x176)]((_0x589e79,_0x4ae8fa)=>this['_removeClearOtherTimer'](_0x4ae8fa)),this[_0x3a663f(0x188)]&&window[_0x3a663f(0x325)](this['_heartbeatTimer']);}[_0x497e61(0x280)](_0x2629db){const _0x288166=_0x497e61;return this[_0x288166(0x1d3)](_0x2629db)['pipe'](_0x5d30e5());}[_0x497e61(0x164)](_0x15b271){const _0x5474a5=_0x497e61;this[_0x5474a5(0x2d1)][_0x5474a5(0x337)]===0x0&&this['_scheduleHeartbeat'](),this[_0x5474a5(0x2d1)][_0x5474a5(0x17a)](_0x15b271),this['_send']({'type':0x0,'memberID':this[_0x5474a5(0x1e9)],'unitIDs':[_0x15b271],'isForwarded':!0x1});}[_0x497e61(0x2ba)](_0x54a3c1){const _0x152c90=_0x497e61;this['_selfUnitIDs'][_0x152c90(0x23e)](_0x54a3c1),this[_0x152c90(0x2d1)][_0x152c90(0x337)]===0x0&&this['_heartbeatTimer']&&window[_0x152c90(0x325)](this[_0x152c90(0x188)]);}['_init'](){const _0x4e3b88=_0x497e61;this['disposeWithMe'](_0x2b7065(_0x10d9b8(window,_0x4e3b88(0x370))['subscribe'](_0x3f6fd5=>{const _0x428af1=_0x4e3b88;if(_0x3f6fd5[_0x428af1(0x112)]!==rr||!_0x3f6fd5[_0x428af1(0x26f)])return;let _0x5b9e28=JSON['parse'](_0x3f6fd5[_0x428af1(0x26f)]);this['_handleEvent'](_0x5b9e28);}))),window['addEventListener'](_0x4e3b88(0x2a6),()=>this['_send']({'type':0x1,'memberID':this[_0x4e3b88(0x1e9)],'unitIDs':Array['from'](this[_0x4e3b88(0x2d1)])}));}[_0x497e61(0x35b)](_0x126a46){const _0x56dc91=_0x497e61;switch(_0x126a46[_0x56dc91(0x2a5)]){case 0x0:this[_0x56dc91(0x338)](_0x126a46);break;case 0x1:this[_0x56dc91(0x1bd)](_0x126a46);break;case 0x2:this[_0x56dc91(0x236)](_0x126a46);}}[_0x497e61(0x338)](_0x402bf1){const _0x1ccdde=_0x497e61;let {unitIDs:_0x7085ef,memberID:_0x43708d,isForwarded:_0x31b7db}=_0x402bf1;_0x7085ef[_0x1ccdde(0x176)](_0x5b41fa=>{const _0x4bea81=_0x1ccdde;if(!_0x31b7db&&this['_unitOnClients'][_0x4bea81(0x1c9)](_0x5b41fa)&&this['_ensureSubject'](_0x5b41fa)[_0x4bea81(0x238)](_0x385abd[_0x4bea81(0x134)]),!this[_0x4bea81(0x1de)][_0x4bea81(0x1c9)](_0x5b41fa)||!this[_0x4bea81(0x1de)][_0x4bea81(0x1b9)](_0x5b41fa)[_0x4bea81(0x1c9)](_0x43708d)){let _0x352365=this[_0x4bea81(0x1de)]['get'](_0x5b41fa)||new Set();_0x352365['add'](_0x43708d),this[_0x4bea81(0x1de)]['set'](_0x5b41fa,_0x352365),this[_0x4bea81(0x180)](_0x43708d);}}),_0x31b7db||this[_0x1ccdde(0x35a)]({'type':0x0,'memberID':this[_0x1ccdde(0x1e9)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x497e61(0x180)](_0x3dac94){const _0x30fad1=_0x497e61;this[_0x30fad1(0x2c2)](_0x3dac94);let _0x37f3da=window[_0x30fad1(0x235)](()=>{const _0x2647ff=_0x30fad1;this[_0x2647ff(0x1de)][_0x2647ff(0x176)](_0x34d221=>{_0x34d221['delete'](_0x3dac94);});},nr*0x2);this[_0x30fad1(0x2dd)]['set'](_0x3dac94,_0x37f3da);}[_0x497e61(0x2c2)](_0x187662){const _0x1a5f8e=_0x497e61;if(this[_0x1a5f8e(0x2dd)]['has'](_0x187662)){let _0x2b6681=this[_0x1a5f8e(0x2dd)][_0x1a5f8e(0x1b9)](_0x187662);_0x2b6681&&window[_0x1a5f8e(0x1e7)](_0x2b6681),this['_clearOtherTimers'][_0x1a5f8e(0x21d)](_0x187662,null);}}[_0x497e61(0x1bd)](_0xd3244d){const _0x4cd121=_0x497e61;let {memberID:_0xbb0fb6,unitIDs:_0x3b6e95}=_0xd3244d;_0x3b6e95[_0x4cd121(0x176)](_0x59c84d=>{const _0x151217=_0x4cd121;var _0x4babda;let _0xeee3b6=this[_0x151217(0x1de)][_0x151217(0x1b9)](_0x59c84d);_0xeee3b6&&(_0xeee3b6[_0x151217(0x23e)](_0xbb0fb6),(_0x4babda=this['_ensureSubject'](_0x59c84d))==null||_0x4babda[_0x151217(0x238)](_0xeee3b6[_0x151217(0x337)]===0x0?_0x385abd[_0x151217(0x1ef)]:_0x385abd[_0x151217(0x134)]));}),this['_removeClearOtherTimer'](_0xbb0fb6);}[_0x497e61(0x236)](_0x281dbc){const _0x172c7c=_0x497e61;this[_0x172c7c(0x180)](_0x281dbc['memberID']);}[_0x497e61(0x35a)](_0x5c1e69){const _0x38c189=_0x497e61;localStorage[_0x38c189(0x20f)](rr,JSON[_0x38c189(0x209)](_0x5c1e69));}[_0x497e61(0x360)](){const _0x320059=_0x497e61;this[_0x320059(0x188)]=window[_0x320059(0x15d)](()=>{const _0x267c75=_0x320059;this['_send']({'type':0x2,'memberID':this[_0x267c75(0x1e9)]});},nr);}[_0x497e61(0x1d3)](_0x1a5d3b){const _0x480ddc=_0x497e61;return this['_unitStatus'][_0x480ddc(0x1c9)](_0x1a5d3b)||this['_unitStatus'][_0x480ddc(0x21d)](_0x1a5d3b,new _0x52e8e8(_0x385abd[_0x480ddc(0x1ef)])),this['_unitStatus'][_0x480ddc(0x1b9)](_0x1a5d3b);}};export{er as BrowserCollaborationSocketService,J as DesktopCollaborationStatusDisplayController,Rn as IURLService,tr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService};
|
|
1
|
+
const _0x14429d=_0x3d03;(function(_0x3a6a69,_0x213dcf){const _0x1e9183=_0x3d03,_0x45f7ca=_0x3a6a69();while(!![]){try{const _0x556e52=parseInt(_0x1e9183(0x3d8))/0x1+-parseInt(_0x1e9183(0x3ea))/0x2+-parseInt(_0x1e9183(0x2fb))/0x3*(-parseInt(_0x1e9183(0x296))/0x4)+parseInt(_0x1e9183(0x32a))/0x5*(parseInt(_0x1e9183(0x2c4))/0x6)+-parseInt(_0x1e9183(0x38e))/0x7*(-parseInt(_0x1e9183(0x2cd))/0x8)+parseInt(_0x1e9183(0x314))/0x9*(-parseInt(_0x1e9183(0x2fc))/0xa)+-parseInt(_0x1e9183(0x292))/0xb*(parseInt(_0x1e9183(0x2c3))/0xc);if(_0x556e52===_0x213dcf)break;else _0x45f7ca['push'](_0x45f7ca['shift']());}catch(_0x2f70a3){_0x45f7ca['push'](_0x45f7ca['shift']());}}}(_0x2133,0x258ef));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x11040d,CollaborationController as _0x479467,CollaborationSessionService as _0x2b2a41,CollaborationSocketService as _0x3ab735,CollaborationStatus as _0x22cbf4,CollaborationUIEventId as _0x797de9,CollaborationUIEventService as _0x57af61,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xb50b00,DEFAULT_WS_SESSION_TICKET_URL as _0x4cdb73,DataLoaderService as _0x5c5342,DocCollaborationEntity as _0x2b3bac,ILocalCacheService as _0x4ed906,LOCAL_CACHE_INTERVAL as _0x22821c,LOCAL_CACHE_INTERVAL_KEY as _0x4a71d9,MemberService as _0x529951,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x40ac4f,SessionStatus as _0x411373,UnitStatus as _0x12fc42,UniverCollaborationClientPlugin as _0x4990f6,getLocalCacheKey as _0x96f6b8}from'@univerjs-pro/collaboration-client';import{COLORS as _0x330629,ColorKit as _0x22b6b1,CommandType as _0x3d1507,DOC_RANGE_TYPE as _0xfd1486,DependentOn as _0x565f3d,Disposable as _0x4af7ce,DisposableCollection as _0x15436c,ICommandService as _0xdaa582,IConfigService as _0x3d218d,IImageIoService as _0x1ef202,ILocalStorageService as _0x30998f,ILogService as _0x2a6bbd,IUniverInstanceService as _0x4d77cc,Inject as _0x439243,Injector as _0x2c4c1e,LocaleService as _0x2d982f,Plugin as _0x28f90b,Rectangle as _0x2cdee5,RxDisposable as _0x32162e,ThemeService as _0xa61525,Tools as _0x59eb5c,UniverInstanceType as _0x4d263b,Workbook as _0xc04914,createIdentifier as _0x4ed343,debounce as _0x43c2fb,fromEventSubject as _0x3b1a74,generateRandomId as _0x5b5013,isInternalEditorID as _0x3f0d0f,merge as _0x13839f,mergeOverrideWithDependencies as _0x356ba2,registerDependencies as _0x572e92,toDisposable as _0x1c7e61,touchDependencies as _0x2b77cb}from'@univerjs/core';import{BuiltInUIPart as _0x589fc3,IBeforeCloseService as _0x333f87,IMessageService as _0x42a5ed,INotificationService as _0x279df2,IUIPartsService as _0x36acb8,IUnitPresenceUIAdapterRegistry as _0x2873f9,connectInjector as _0x9d541b,useDependency as _0x4a4611,useObservable as _0x40178e}from'@univerjs/ui';import{BehaviorSubject as _0x4a802e,Subject as _0x2894b9,combineLatest as _0x4f55e7,debounceTime as _0x4e32e2,distinctUntilChanged as _0x53e16d,filter as _0x49082d,fromEvent as _0x377d93,mapTo as _0x318933,merge as _0x17436b,of as _0x5f1171,shareReplay as _0xe8e11e,switchMap as _0x76e02a,takeUntil as _0x54edaf,throttle as _0x6b057b,timer as _0x5f3da1}from'rxjs';import{distinctUntilChanged as _0x4e5d12,filter as _0x225bc6,map as _0x37d85c,switchMap as _0x48ade1,takeUntil as _0x535fcc,throttleTime as _0x27ed7f}from'rxjs/operators';import{Button as _0x3c19f4,MessageType as _0x3e9b02,Tooltip as _0x4710ce,clsx as _0x163047}from'@univerjs/design';import{LoadingMultiIcon as _0x2346d5,OffLineIcon as _0x5369a1,OnLineIcon as _0x1dc6d7,WarningIcon as _0x4d4450}from'@univerjs/icons';import{createElement as _0x1b7724,useCallback as _0x5af805,useMemo as _0x5a19e1}from'react';import{jsx as _0x55526a,jsxs as _0x17f736}from'react/jsx-runtime';import{CollaborationEvent as _0x228507,ISnapshotServerService as _0x5da708,ITransformService as _0x3e0970,RevisionService as _0x4c1d46,SnapshotLoadStage as _0x56bb07,SnapshotLoadingService as _0x15d5cd,UniverCollaborationPlugin as _0x42bc38,isTransformMutationFailure as _0x51b014,isTransformMutationsWithChangesetSuccess as _0x5da30d}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x52194a}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x25ff25,DocSkeletonManagerService as _0x101420,DocStateChangeManagerService as _0x12942b,RichTextEditingMutation as _0x56c228,SetTextSelectionsOperation as _0x54f38f,UniverDocsPlugin as _0x2f2fac}from'@univerjs/docs';import{DocIMEInputManagerService as _0x5e2811,IDocClipboardService as _0x3014aa,NodePositionConvertToCursor as _0x3e63cb,NodePositionConvertToRectRange as _0x40d888,SetDocZoomRatioOperation as _0x4c78d2,TEXT_RANGE_LAYER_INDEX as _0x2e23a0,UniverDocsUIPlugin as _0x4d590a}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x19d442,IRenderManagerService as _0x3ddfbd,Rect as _0x58a20d,RegularPolygon as _0x24bbe3,SHEET_VIEWPORT_KEY as _0xa2fb8c,Shape as _0xcdd8d1,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x435aa5,UniverRenderEnginePlugin as _0xb44e6a,Vector2 as _0x164f70,getColor as _0x457359,getDocumentSkeletonColumnPagePathInfo as _0x131357}from'@univerjs/engine-render';import{HTTPService as _0x103ec5,ISocketService as _0xfb68a9,UniverNetworkPlugin as _0x420728,WebSocketService as _0x4ffb7d}from'@univerjs/network';import{deserializeRangeWithSheet as _0x2f5144,serializeRangeWithSheet as _0x2e0d4e}from'@univerjs/engine-formula';import{EffectRefRangId as _0x5b9a17,RefRangeService as _0xb0be48,SetSelectionsOperation as _0x3ab318,SetWorksheetActivateCommand as _0x37f956,SheetsSelectionsService as _0x2dca29,handleDeleteRangeMoveLeft as _0x545bc5,handleDeleteRangeMoveUp as _0x16e771,handleIRemoveCol as _0xab56f7,handleIRemoveRow as _0xc812f3,handleInsertCol as _0xc026ab,handleInsertRangeMoveDown as _0x236619,handleInsertRangeMoveRight as _0x13224b,handleInsertRow as _0x41c0ed,handleMoveRange as _0xbfefff,runRefRangeMutations as _0x4964ac}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x405920,getCoordByCell as _0x527228,getSheetObject as _0x478dc1}from'@univerjs/sheets-ui';import{ErrorCode as _0x41baea}from'@univerjs/protocol';function rn(_0x4ea931){const _0x4b7801=_0x3d03;switch(_0x4ea931){case _0x22cbf4['OFFLINE']:return{'icon':_0x55526a(_0x5369a1,{}),'colorClass':_0x4b7801(0x39f),'i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x4b7801(0x240),'clickable':!0x0,'indicator':'static'};case _0x22cbf4[_0x4b7801(0x390)]:return{'icon':_0x55526a(_0x5369a1,{}),'colorClass':_0x4b7801(0x35e),'i18nKey':_0x4b7801(0x2cf),'clickable':!0x1,'indicator':_0x4b7801(0x26c)};case _0x22cbf4['FETCH_MISS']:return{'icon':_0x55526a(_0x2346d5,{}),'colorClass':_0x4b7801(0x248),'i18nKey':_0x4b7801(0x3a1),'clickable':!0x1,'indicator':_0x4b7801(0x34f)};case _0x22cbf4[_0x4b7801(0x1e0)]:return{'icon':_0x55526a(_0x1dc6d7,{}),'colorClass':_0x4b7801(0x2e3),'i18nKey':_0x4b7801(0x389),'clickable':!0x1,'indicator':'static'};case _0x22cbf4[_0x4b7801(0x30e)]:case _0x22cbf4[_0x4b7801(0x42f)]:return{'icon':_0x55526a(_0x2346d5,{}),'colorClass':_0x4b7801(0x248),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x4b7801(0x34f)};case _0x22cbf4[_0x4b7801(0x256)]:return{'icon':_0x55526a(_0x2346d5,{}),'colorClass':_0x4b7801(0x248),'i18nKey':_0x4b7801(0x246),'clickable':!0x1,'indicator':_0x4b7801(0x34f)};case _0x22cbf4[_0x4b7801(0x239)]:return{'icon':_0x55526a(_0x1dc6d7,{}),'colorClass':'univer-text-green-500','i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x4b7801(0x26c)};}}function an(_0x1ebc79){const _0x519f6e=_0x3d03;let {status$:_0x633857}=_0x1ebc79,_0x3e7ea0=_0x40178e(_0x633857,_0x22cbf4['NOT_COLLAB']),_0x131fbb=_0x4a4611(_0x2d982f),_0x11e5bd=_0x4a4611(_0x2b2a41),_0x318e62=_0x5a19e1(()=>rn(_0x3e7ea0),[_0x3e7ea0]),_0x3fc5c1=_0x3e7ea0!==_0x22cbf4[_0x519f6e(0x343)],_0x1aed05=_0x131fbb['t'](_0x318e62[_0x519f6e(0x27c)]),_0x59f841=_0x318e62[_0x519f6e(0x311)]?_0x131fbb['t'](_0x318e62[_0x519f6e(0x311)]):_0x1aed05,_0x3b9b27=_0x5af805(()=>{const _0x2fc0a3=_0x519f6e;_0x3fc5c1||_0x11e5bd[_0x2fc0a3(0x1e1)]();},[_0x3fc5c1,_0x11e5bd]),_0x143181=_0x5af805(_0x82399f=>{const _0x552a8b=_0x519f6e;!_0x3fc5c1&&(_0x82399f[_0x552a8b(0x217)]==='Enter'||_0x82399f['key']==='\x20')&&(_0x82399f[_0x552a8b(0x372)](),_0x11e5bd['reconnect']());},[_0x3fc5c1,_0x11e5bd]),_0x5d6af0=_0x55526a('span',{'className':_0x163047(_0x519f6e(0x40b),_0x519f6e(0x25a),_0x318e62[_0x519f6e(0x3af)],{'univer-animate-spin':_0x318e62[_0x519f6e(0x378)]===_0x519f6e(0x34f),'univer-animate-pulse':_0x318e62[_0x519f6e(0x378)]==='pulse'}),'aria-hidden':_0x519f6e(0x3f8),'children':_0x318e62[_0x519f6e(0x202)]}),_0x57580d=_0x55526a(_0x519f6e(0x36e),{'className':_0x163047(_0x519f6e(0x40b),_0x519f6e(0x3fd),_0x519f6e(0x267),_0x519f6e(0x423),_0x519f6e(0x39e),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x318e62[_0x519f6e(0x435)],'univer-cursor-default':!_0x318e62[_0x519f6e(0x435)]}),'children':_0x5d6af0});return _0x318e62[_0x519f6e(0x435)]?_0x55526a(_0x4710ce,{'title':_0x59f841,'placement':_0x519f6e(0x3b4),'children':_0x55526a(_0x519f6e(0x36b),{'type':_0x519f6e(0x36b),'onClick':_0x3b9b27,'onKeyDown':_0x143181,'className':_0x163047(_0x519f6e(0x2f3),_0x519f6e(0x1fa),_0x519f6e(0x280),_0x519f6e(0x2fd)),'aria-label':_0x1aed05+_0x519f6e(0x37d)+_0x59f841,'role':_0x519f6e(0x412),'aria-live':_0x519f6e(0x322),'aria-atomic':'true','children':_0x57580d})}):_0x55526a(_0x4710ce,{'title':_0x59f841,'placement':_0x519f6e(0x3b4),'children':_0x55526a('div',{'className':_0x163047(_0x519f6e(0x2f3),_0x519f6e(0x1fa),_0x519f6e(0x280)),'aria-label':_0x1aed05,'role':_0x519f6e(0x412),'aria-live':'polite','aria-atomic':_0x519f6e(0x3f8),'children':_0x57580d})});}function W(_0x4ff731){'@babel/helpers - typeof';const _0x404d93=_0x3d03;return W=typeof Symbol==_0x404d93(0x2e0)&&typeof Symbol[_0x404d93(0x23d)]=='symbol'?function(_0x2bcc0d){return typeof _0x2bcc0d;}:function(_0x36bc80){const _0x7b955d=_0x404d93;return _0x36bc80&&typeof Symbol==_0x7b955d(0x2e0)&&_0x36bc80['constructor']===Symbol&&_0x36bc80!==Symbol['prototype']?_0x7b955d(0x3f6):typeof _0x36bc80;},W(_0x4ff731);}function on(_0x28c4c6,_0x2bd210){const _0x18d39e=_0x3d03;if(W(_0x28c4c6)!='object'||!_0x28c4c6)return _0x28c4c6;var _0x4045c8=_0x28c4c6[Symbol['toPrimitive']];if(_0x4045c8!==void 0x0){var _0x450e99=_0x4045c8[_0x18d39e(0x23f)](_0x28c4c6,_0x2bd210||_0x18d39e(0x265));if(W(_0x450e99)!=_0x18d39e(0x26a))return _0x450e99;throw TypeError(_0x18d39e(0x350));}return(_0x2bd210==='string'?String:Number)(_0x28c4c6);}function sn(_0x224b0e){const _0x5642b2=_0x3d03;var _0x2cd307=on(_0x224b0e,_0x5642b2(0x2df));return W(_0x2cd307)==_0x5642b2(0x3f6)?_0x2cd307:_0x2cd307+'';}function G(_0x227af3,_0x272ed3,_0x2fe22e){const _0x4950d8=_0x3d03;return(_0x272ed3=sn(_0x272ed3))in _0x227af3?Object[_0x4950d8(0x228)](_0x227af3,_0x272ed3,{'value':_0x2fe22e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x227af3[_0x272ed3]=_0x2fe22e,_0x227af3;}function K(_0x233def,_0x36486b){return function(_0x5654b9,_0x5a25c5){_0x36486b(_0x5654b9,_0x5a25c5,_0x233def);};}function q(_0x56ac42,_0x4913eb,_0x1ba2cc,_0x16a8ee){const _0x23dac2=_0x3d03;var _0x54f100=arguments[_0x23dac2(0x3a5)],_0x8f30af=_0x54f100<0x3?_0x4913eb:_0x16a8ee===null?_0x16a8ee=Object[_0x23dac2(0x233)](_0x4913eb,_0x1ba2cc):_0x16a8ee,_0x220ef2;if(typeof Reflect==_0x23dac2(0x26a)&&typeof Reflect[_0x23dac2(0x32e)]=='function')_0x8f30af=Reflect[_0x23dac2(0x32e)](_0x56ac42,_0x4913eb,_0x1ba2cc,_0x16a8ee);else{for(var _0x12dfb3=_0x56ac42[_0x23dac2(0x3a5)]-0x1;_0x12dfb3>=0x0;_0x12dfb3--)(_0x220ef2=_0x56ac42[_0x12dfb3])&&(_0x8f30af=(_0x54f100<0x3?_0x220ef2(_0x8f30af):_0x54f100>0x3?_0x220ef2(_0x4913eb,_0x1ba2cc,_0x8f30af):_0x220ef2(_0x4913eb,_0x1ba2cc))||_0x8f30af);}return _0x54f100>0x3&&_0x8f30af&&Object[_0x23dac2(0x228)](_0x4913eb,_0x1ba2cc,_0x8f30af),_0x8f30af;}let J=class extends _0x4af7ce{constructor(_0x184143,_0xb96a31,_0x10fd6f,_0x277712,_0x50b09f){const _0x4b87bd=_0x3d03;super(),this[_0x4b87bd(0x3d9)]=_0x184143,this[_0x4b87bd(0x34e)]=_0xb96a31,this[_0x4b87bd(0x421)]=_0x10fd6f,this[_0x4b87bd(0x250)]=_0x277712,this['_presenceAdapterRegistry']=_0x50b09f,G(this,_0x4b87bd(0x2da),new _0x4a802e(_0x22cbf4[_0x4b87bd(0x1e0)])),G(this,'_presenceStatusRegistrations',new Map()),this[_0x4b87bd(0x2ca)](),this[_0x4b87bd(0x1f7)](),this[_0x4b87bd(0x3b9)]();}['dispose'](){const _0x2a4710=_0x3d03;this[_0x2a4710(0x358)]['forEach'](_0x404e3d=>_0x404e3d['dispose']()),this[_0x2a4710(0x358)]['clear'](),this['_status$'][_0x2a4710(0x24e)](),super[_0x2a4710(0x381)]();}['_initStatusListener'](){const _0x1d45dc=_0x3d03;this[_0x1d45dc(0x406)](_0x17436b(this['_univerInstanceService']['focused$'],this[_0x1d45dc(0x3d9)][_0x1d45dc(0x208)](_0x4d263b['UNIVER_DOC']),this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4d263b[_0x1d45dc(0x1d9)]))[_0x1d45dc(0x203)](_0x37d85c(()=>cn(this[_0x1d45dc(0x3d9)])),_0x4e5d12(),_0x76e02a(_0x2063ce=>_0x2063ce?this[_0x1d45dc(0x421)][_0x1d45dc(0x22e)](_0x2063ce):_0x5f1171(null)),_0x76e02a(_0x291fdb=>_0x291fdb?_0x291fdb[_0x1d45dc(0x2fe)]:_0x5f1171(_0x22cbf4['NOT_COLLAB'])))[_0x1d45dc(0x21d)](_0x59facf=>{const _0x49d3e4=_0x1d45dc;this[_0x49d3e4(0x2da)][_0x49d3e4(0x362)](_0x59facf);}));}['_initStatusComponent'](){const _0x909642=_0x3d03;this[_0x909642(0x406)](this[_0x909642(0x250)][_0x909642(0x276)](_0x589fc3['HEADER_MENU'],()=>_0x9d541b(ln({'status$':this[_0x909642(0x2da)][_0x909642(0x1e6)]()}),this[_0x909642(0x34e)])));}[_0x14429d(0x3b9)](){const _0x53cb27=_0x14429d;let _0x2b769e=this[_0x53cb27(0x324)][_0x53cb27(0x365)][_0x53cb27(0x21d)](_0x1c27b6=>{const _0xd4d2fb=_0x53cb27;this[_0xd4d2fb(0x309)](_0x1c27b6);});this[_0x53cb27(0x406)](_0x1c7e61(()=>_0x2b769e[_0x53cb27(0x329)]()));}[_0x14429d(0x309)](_0x228217){const _0x2792f8=_0x14429d;let _0x4cccb4=new Map(_0x228217[_0x2792f8(0x21c)](_0x229e49=>_0x229e49[_0x2792f8(0x33d)]!=null)['map'](_0x103031=>[_0x103031['unitType'],_0x103031]));this[_0x2792f8(0x358)][_0x2792f8(0x333)]((_0x1a99cf,_0x44360c)=>{const _0x2239d2=_0x2792f8;_0x4cccb4[_0x2239d2(0x38f)](_0x44360c)||(_0x1a99cf[_0x2239d2(0x381)](),this[_0x2239d2(0x358)][_0x2239d2(0x2a0)](_0x44360c));}),_0x4cccb4[_0x2792f8(0x333)]((_0x38ea98,_0x369b68)=>{const _0x549e10=_0x2792f8;this['_presenceStatusRegistrations'][_0x549e10(0x38f)](_0x369b68)||this['_registerPresenceStatusComponent'](_0x38ea98);});}[_0x14429d(0x416)](_0x588327){const _0xce4ca2=_0x14429d;let _0x484b92=_0x588327[_0xce4ca2(0x33d)];if(!_0x484b92)return;let _0x3a945a=new _0x15436c(),_0x250694=new _0x4a802e(_0x22cbf4['NOT_COLLAB']);_0x3a945a[_0xce4ca2(0x264)](_0x1c7e61(()=>_0x250694['complete']())),_0x3a945a['add'](this[_0xce4ca2(0x250)][_0xce4ca2(0x276)](_0x484b92,()=>_0x9d541b(ln({'status$':_0x250694[_0xce4ca2(0x1e6)]()}),this[_0xce4ca2(0x34e)])));let _0x501801=this[_0xce4ca2(0x3d9)]['getCurrentTypeOfUnit$'](_0x588327[_0xce4ca2(0x382)])[_0xce4ca2(0x203)](_0x37d85c(_0x5cf216=>(_0x5cf216==null?void 0x0:_0x5cf216[_0xce4ca2(0x252)]())??null),_0x4e5d12(),_0x76e02a(_0xdb24ea=>_0xdb24ea?this['_collaborationController'][_0xce4ca2(0x22e)](_0xdb24ea):_0x5f1171(null)),_0x76e02a(_0x3a7304=>(_0x3a7304==null?void 0x0:_0x3a7304[_0xce4ca2(0x2fe)])??_0x5f1171(_0x22cbf4[_0xce4ca2(0x1e0)])))[_0xce4ca2(0x21d)](_0x5f5dd3=>_0x250694[_0xce4ca2(0x362)](_0x5f5dd3));_0x3a945a['add'](_0x1c7e61(()=>_0x501801[_0xce4ca2(0x329)]())),this[_0xce4ca2(0x358)][_0xce4ca2(0x1fc)](_0x588327[_0xce4ca2(0x382)],_0x3a945a);}};J=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x2c4c1e)),K(0x2,_0x439243(_0x479467)),K(0x3,_0x36acb8),K(0x4,_0x439243(_0x2873f9))],J);function cn(_0x220465){const _0x54370c=_0x14429d;let _0x3f3305=_0x220465[_0x54370c(0x254)](),_0x257dd3=_0x3f3305==null?void 0x0:_0x3f3305[_0x54370c(0x252)]();if(_0x257dd3&&!_0x3f0d0f(_0x257dd3))return _0x257dd3;let _0x2956b3=_0x220465[_0x54370c(0x32f)](_0x4d263b[_0x54370c(0x1e8)]),_0x47b350=_0x2956b3==null?void 0x0:_0x2956b3['getUnitId']();if(_0x47b350&&!_0x3f0d0f(_0x47b350))return _0x47b350;let _0x55bb50=_0x220465[_0x54370c(0x32f)](_0x4d263b[_0x54370c(0x1d9)]);if(_0x55bb50)return _0x55bb50[_0x54370c(0x252)]();let _0x3d6cef=_0x220465[_0x54370c(0x219)](_0x4d263b[_0x54370c(0x1e8)])['find'](_0xf5075b=>!_0x3f0d0f(_0xf5075b[_0x54370c(0x252)]()));return _0x3d6cef?_0x3d6cef[_0x54370c(0x252)]():null;}function ln(_0x4fe189){let {status$:_0x3308a1}=_0x4fe189;return function(){return _0x55526a(an,{'status$':_0x3308a1});};}var un=_0x14429d(0x2de),dn=_0x14429d(0x31b);const Y={'id':_0x14429d(0x212),'type':_0x3d1507['OPERATION'],'handler':(_0x62c38d,_0x47ee84)=>{const _0x21c3b1=_0x14429d;let _0x5e217d=_0x62c38d[_0x21c3b1(0x341)](_0x2873f9)[_0x21c3b1(0x341)](_0x47ee84['unitType']);if(!_0x5e217d)return!0x1;switch(_0x47ee84[_0x21c3b1(0x424)]['type']){case _0x21c3b1(0x1fc):return _0x5e217d['setRemotePresence'](_0x47ee84[_0x21c3b1(0x424)][_0x21c3b1(0x313)]),!0x0;case'remove':return _0x5e217d[_0x21c3b1(0x1e4)](_0x47ee84[_0x21c3b1(0x424)][_0x21c3b1(0x210)],_0x47ee84['update'][_0x21c3b1(0x21f)]),!0x0;case _0x21c3b1(0x1d7):return _0x5e217d[_0x21c3b1(0x328)](_0x47ee84[_0x21c3b1(0x424)]['unitId']),!0x0;default:return!0x1;}}},fn={};let X=class extends _0x32162e{constructor(_0x17452a,_0x4bb1d6){const _0x4ace77=_0x14429d;super(),this[_0x4ace77(0x268)]=_0x17452a,this[_0x4ace77(0x2e1)]=_0x4bb1d6,this[_0x4ace77(0x3b8)]();}[_0x14429d(0x3b8)](){const _0x28bcc7=_0x14429d;let _0x299cef=this;this['disposeWithMe'](this[_0x28bcc7(0x268)][_0x28bcc7(0x3a9)]({'onBeforePasteImage':async _0x171680=>{const _0x1a34de=_0x28bcc7;let _0x58015d=await _0x299cef['_imageIoService'][_0x1a34de(0x27e)](_0x171680);return _0x58015d?{'source':_0x58015d[_0x1a34de(0x375)],'imageSourceType':_0x58015d['imageSourceType']}:null;}}));}};X=q([K(0x0,_0x3014aa),K(0x1,_0x1ef202)],X);const pn=[_0x14429d(0x436),_0x14429d(0x3d0),'green.600',_0x14429d(0x41a),_0x14429d(0x339),_0x14429d(0x353)];var mn=class extends _0x4af7ce{constructor(..._0x1da7f9){const _0x26112d=_0x14429d;super(..._0x1da7f9),G(this,_0x26112d(0x3c3),new Map()),G(this,_0x26112d(0x405),0x0);}[_0x14429d(0x373)](_0x102edf){const _0x414c7c=_0x14429d;if(this['_assignedColors'][_0x414c7c(0x38f)](_0x102edf))return this[_0x414c7c(0x3c3)][_0x414c7c(0x341)](_0x102edf);let _0x5b45bd=pn[this[_0x414c7c(0x405)]];return this[_0x414c7c(0x405)]=(this['_colorIndex']+0x1)%pn[_0x414c7c(0x3a5)],this[_0x414c7c(0x3c3)]['set'](_0x102edf,_0x5b45bd),_0x5b45bd;}};function hn(_0x1e19fb){const _0x11d176=_0x14429d;let _0x10867d='';for(let _0x50576d of _0x1e19fb){let {startOffset:_0x4c0557,endOffset:_0x49e23f,isActive:_0x1fa1e7,rangeType:_0x268ff1,segmentId:_0xf9904a,segmentPage:_0x46b026}=_0x50576d;_0x10867d[_0x11d176(0x3a5)]&&(_0x10867d+=','),_0x10867d+=_0x4c0557+':'+_0x49e23f+':'+(_0x1fa1e7?'1':'0')+':'+_0x268ff1+':'+_0xf9904a+':'+_0x46b026;}return _0x10867d;}function gn(_0xe90c9a){const _0x221f04=_0x14429d;let _0x16ab2a=_0xe90c9a[_0x221f04(0x1fe)](','),_0x488bda=[];for(let _0x456f2b of _0x16ab2a){let [_0x5e1b67,_0x3bd095,_0x28fa02,_0x3a99bb,_0x611319,_0x36f51c]=_0x456f2b[_0x221f04(0x1fe)](':');_0x488bda[_0x221f04(0x305)]({'startOffset':Number(_0x5e1b67),'endOffset':Number(_0x3bd095),'collapsed':_0x5e1b67===_0x3bd095,'isActive':_0x28fa02==='1','rangeType':_0x3a99bb===_0xfd1486[_0x221f04(0x297)]?_0xfd1486['TEXT']:_0xfd1486[_0x221f04(0x279)],'segmentId':typeof _0x611319==_0x221f04(0x2df)?String(_0x611319):'','segmentPage':Number(_0x36f51c??-0x1)});}return _0x488bda['some'](_0x2930e7=>_0x2930e7[_0x221f04(0x299)])||(_0x488bda[0x0][_0x221f04(0x299)]=!0x0),_0x488bda;}var _n=class extends _0x32162e{constructor(..._0x5906c2){const _0x45b4db=_0x14429d;super(..._0x5906c2),G(this,_0x45b4db(0x32c),new _0x4a802e(null)),G(this,_0x45b4db(0x308),this[_0x45b4db(0x32c)][_0x45b4db(0x1e6)]());}[_0x14429d(0x245)](_0x43b4bd){const _0x6eaa0=_0x14429d;let {unitID:_0x412017,memberID:_0x3c1c6d,textRanges:_0x5cf398}=_0x43b4bd,_0x51f911=hn(_0x5cf398);if(_0x51f911==='')return;let _0x1fb0d4={'unitID':_0x412017,'memberID':_0x3c1c6d,'selection':_0x51f911};this[_0x6eaa0(0x32c)][_0x6eaa0(0x362)](_0x1fb0d4);}};let vn=class extends _0x32162e{get[_0x14429d(0x2ef)](){const _0x3aa4e8=_0x14429d;return this[_0x3aa4e8(0x2dd)][_0x3aa4e8(0x2eb)]();}get[_0x14429d(0x40f)](){const _0x3243b6=_0x14429d;return this[_0x3243b6(0x1c9)][_0x3243b6(0x2eb)]();}constructor(_0x211958,_0x1327f3,_0x21219b,_0x1e57df,_0x2e92f9,_0x3130a8,_0x3f2e8d,_0x3f5e98,_0x5f036c){const _0x5aa36d=_0x14429d;super(),this[_0x5aa36d(0x369)]=_0x211958,this['_session']=_0x1327f3,this['_injector']=_0x21219b,this[_0x5aa36d(0x2bc)]=_0x1e57df,this[_0x5aa36d(0x41e)]=_0x2e92f9,this[_0x5aa36d(0x3fa)]=_0x3130a8,this['_transformService']=_0x3f2e8d,this[_0x5aa36d(0x3d9)]=_0x3f5e98,this[_0x5aa36d(0x236)]=_0x5f036c,G(this,_0x5aa36d(0x224),!0x1),G(this,_0x5aa36d(0x3b8),!0x1),G(this,_0x5aa36d(0x2dd),new _0x4a802e(new Map())),G(this,'cursorInfo$',this[_0x5aa36d(0x2dd)]['asObservable']()),G(this,_0x5aa36d(0x1c9),new _0x4a802e([])),G(this,_0x5aa36d(0x3ee),this[_0x5aa36d(0x1c9)]['pipe'](_0x4e32e2(0x12c))),G(this,'_updateLocalCursor',_0x43c2fb(_0x2f2ea6=>{const _0x5d31fb=_0x5aa36d;let _0x1278ec={'eventID':_0x228507[_0x5d31fb(0x270)],'data':{'unitID':this[_0x5d31fb(0x369)],'memberID':this[_0x5d31fb(0x227)][_0x5d31fb(0x291)](),'selection':hn(_0x2f2ea6)}};this[_0x5d31fb(0x227)][_0x5d31fb(0x1f8)](_0x1278ec,this['unitID']);},0x64));}[_0x14429d(0x381)](){const _0x597d24=_0x14429d;super[_0x597d24(0x381)](),this[_0x597d24(0x2dd)][_0x597d24(0x362)](new Map()),this[_0x597d24(0x2dd)][_0x597d24(0x24e)](),this[_0x597d24(0x1c9)]['next']([]),this[_0x597d24(0x1c9)][_0x597d24(0x24e)]();}[_0x14429d(0x271)](){const _0x2cc28c=_0x14429d;this['_init']||(this[_0x2cc28c(0x3b8)]=!0x0,this[_0x2cc28c(0x227)]['sessionStatus$'][_0x2cc28c(0x203)](_0x54edaf(this[_0x2cc28c(0x29b)]))[_0x2cc28c(0x21d)](_0x1d80a5=>{const _0x5f4636=_0x2cc28c;_0x1d80a5===_0x411373['ONLINE']?this[_0x5f4636(0x2f2)]():this[_0x5f4636(0x1dc)]();}),this[_0x2cc28c(0x227)][_0x2cc28c(0x272)]['pipe'](_0x54edaf(this[_0x2cc28c(0x29b)]))[_0x2cc28c(0x21d)](_0x1e8f4b=>{const _0x3093fc=_0x2cc28c;let _0x281f74=_0x1e8f4b[_0x3093fc(0x43d)];_0x281f74===_0x228507[_0x3093fc(0x270)]&&this[_0x3093fc(0x3d2)](_0x1e8f4b),_0x281f74===_0x228507['USERS_LEAVE']&&this['_onCursorDelete'](_0x1e8f4b);}),this[_0x2cc28c(0x406)](this[_0x2cc28c(0x236)][_0x2cc28c(0x326)](_0x15d46d=>{const _0x2e3294=_0x2cc28c;let _0x187be8=_0x15d46d[_0x2e3294(0x38c)];_0x187be8!=null&&this[_0x2e3294(0x224)]&&_0x15d46d['id']===_0x54f38f['id']&&_0x187be8[_0x2e3294(0x210)]===this[_0x2e3294(0x369)]&&_0x187be8[_0x2e3294(0x425)]===!0x1&&_0x187be8[_0x2e3294(0x34a)]['length']>0x0&&this['_updateLocalCursor'](_0x187be8[_0x2e3294(0x34a)]);})),this['_syncEditingCollabCursorService'][_0x2cc28c(0x308)][_0x2cc28c(0x203)](_0x54edaf(this[_0x2cc28c(0x29b)]))[_0x2cc28c(0x21d)](_0x1082af=>{const _0x27315d=_0x2cc28c;if((_0x1082af==null?void 0x0:_0x1082af[_0x27315d(0x369)])!==this[_0x27315d(0x369)])return;let _0x7a769d={'eventID':_0x228507[_0x27315d(0x270)],'data':_0x1082af};this[_0x27315d(0x3d2)](_0x7a769d);}),this[_0x2cc28c(0x406)](this[_0x2cc28c(0x236)]['onCommandExecuted'](_0x965abc=>{const _0x250a56=_0x2cc28c;if(_0x965abc[_0x250a56(0x38c)]==null)return;let _0x2efb4e=_0x965abc[_0x250a56(0x38c)];if(_0x965abc['id']!==_0x56c228['id']||_0x2efb4e[_0x250a56(0x210)]!==this['unitID'])return;let _0x132c63={'id':_0x250a56(0x3b6),'params':_0x2efb4e},_0x10b6f6=this['cursorInfo'];for(let [_0x2a012b,_0x577fb4]of _0x10b6f6){let _0x5cb2ca={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x250a56(0x369)],'actions':null,'textRanges':_0x577fb4[_0x250a56(0x34a)]}},_0x431eb9=this['_transformService'][_0x250a56(0x26d)](_0x132c63,_0x5cb2ca,!0x1);if(_0x51b014(_0x431eb9))throw _0x431eb9['error'];_0x10b6f6[_0x250a56(0x1fc)](_0x2a012b,{..._0x577fb4,'ranges':_0x431eb9[_0x250a56(0x33c)][_0x250a56(0x38c)]['textRanges']});}queueMicrotask(()=>{const _0x4c8842=_0x250a56;this[_0x4c8842(0x2dd)][_0x4c8842(0x362)](_0x10b6f6);});})));}['_onCursorUpdate'](_0x470068){const _0x9a0477=_0x14429d;var _0x14fe0c;let {memberID:_0x40fe87,selection:_0x57f91b}=_0x470068['data'],_0x1b683a=gn(_0x57f91b),_0x45a19d=((_0x14fe0c=this[_0x9a0477(0x41e)][_0x9a0477(0x303)](this['unitID'],_0x40fe87))==null?void 0x0:_0x14fe0c[_0x9a0477(0x27f)])??'Unknown\x20user',_0x4ce062={'color':this[_0x9a0477(0x2bc)][_0x9a0477(0x373)](_0x40fe87),'name':_0x45a19d,'ranges':_0x1b683a},_0x283710=this[_0x9a0477(0x2ef)];_0x283710[_0x9a0477(0x1fc)](_0x40fe87,_0x4ce062),this['_cursorInfo$'][_0x9a0477(0x362)](_0x283710);}['_onCursorDelete'](_0x3e3ced){const _0x440d3c=_0x14429d;let {memberID:_0x3e7781}=_0x3e3ced[_0x440d3c(0x1cc)],_0x5c7afa=this[_0x440d3c(0x2ef)];_0x5c7afa[_0x440d3c(0x2a0)](_0x3e7781),this['_cursorInfo$'][_0x440d3c(0x362)](_0x5c7afa);}[_0x14429d(0x2f2)](){const _0x85b1d=_0x14429d;var _0x38bad1;if(this[_0x85b1d(0x224)]=!0x0,((_0x38bad1=this[_0x85b1d(0x3d9)][_0x85b1d(0x254)]())==null?void 0x0:_0x38bad1['getUnitId']())!==this['unitID'])return;let _0x5bd1a0=this['_injector'][_0x85b1d(0x341)](_0x25ff25)[_0x85b1d(0x1d6)]();Array[_0x85b1d(0x2fa)](_0x5bd1a0)&&_0x5bd1a0[_0x85b1d(0x3a5)]>0x0&&this[_0x85b1d(0x359)](_0x5bd1a0);}['_toggleOffline'](){this['_online']=!0x1;}};vn=q([K(0x2,_0x439243(_0x2c4c1e)),K(0x3,_0x439243(mn)),K(0x4,_0x439243(_0x529951)),K(0x5,_0x439243(_n)),K(0x6,_0x3e0970),K(0x7,_0x4d77cc),K(0x8,_0xdaa582)],vn);const yn=()=>{let _0x1e9ba4=[],_0x4bb944=!0x1;return _0x2c5384=>{_0x1e9ba4['push'](_0x2c5384),_0x4bb944||(_0x4bb944=!0x0,setTimeout(()=>{const _0x5455b8=_0x3d03;_0x1e9ba4[_0x5455b8(0x333)](_0x1d7769=>_0x1d7769()),_0x1e9ba4=[],_0x4bb944=!0x1;}));};};let bn=class extends _0x32162e{get[_0x14429d(0x2ef)](){const _0x42cbfe=_0x14429d;return this[_0x42cbfe(0x2dd)][_0x42cbfe(0x2eb)]();}get[_0x14429d(0x40f)](){const _0x294aa7=_0x14429d;return this[_0x294aa7(0x1c9)][_0x294aa7(0x2eb)]();}constructor(_0x1561cc,_0x12b9fc,_0x5a9bda,_0x545472,_0x473c73,_0x438a6e,_0x23bcd7,_0xfd880a){const _0x44ad65=_0x14429d;super(),this[_0x44ad65(0x369)]=_0x1561cc,this[_0x44ad65(0x227)]=_0x12b9fc,this['_injector']=_0x5a9bda,this[_0x44ad65(0x2bc)]=_0x545472,this['_memberService']=_0x473c73,this[_0x44ad65(0x3d9)]=_0x438a6e,this['_commandService']=_0x23bcd7,this[_0x44ad65(0x3c5)]=_0xfd880a,G(this,_0x44ad65(0x224),!0x1),G(this,'_init',!0x1),G(this,_0x44ad65(0x2dd),new _0x4a802e(new Map())),G(this,_0x44ad65(0x1da),this[_0x44ad65(0x2dd)][_0x44ad65(0x1e6)]()),G(this,_0x44ad65(0x1c9),new _0x4a802e([])),G(this,'roomMembers$',this[_0x44ad65(0x1c9)][_0x44ad65(0x203)](_0x4e32e2(0x12c))),G(this,'_updateLocalCursor',_0x43c2fb((_0x262d8e,_0x51a171)=>{const _0x343385=_0x44ad65;let _0x39a16f={'eventID':_0x228507['UPDATE_CURSOR'],'data':{'unitID':this[_0x343385(0x369)],'memberID':this['_session'][_0x343385(0x291)](),'selection':_0x2e0d4e(_0x262d8e,_0x51a171[_0x343385(0x3ff)])}};this[_0x343385(0x227)][_0x343385(0x1f8)](_0x39a16f,this[_0x343385(0x369)]);},0x64));}[_0x14429d(0x381)](){const _0x5d8691=_0x14429d;super[_0x5d8691(0x381)](),this[_0x5d8691(0x2dd)][_0x5d8691(0x362)](new Map()),this[_0x5d8691(0x2dd)]['complete'](),this['_roomMembers$'][_0x5d8691(0x362)]([]),this[_0x5d8691(0x1c9)]['complete']();}[_0x14429d(0x271)](){const _0x2fa933=_0x14429d;this[_0x2fa933(0x3b8)]||(this['_init']=!0x0,this[_0x2fa933(0x227)][_0x2fa933(0x428)][_0x2fa933(0x203)](_0x54edaf(this[_0x2fa933(0x29b)]))[_0x2fa933(0x21d)](_0x5550fe=>{const _0x361258=_0x2fa933;_0x5550fe===_0x411373[_0x361258(0x3cb)]?this[_0x361258(0x2f2)]():this['_toggleOffline']();}),this[_0x2fa933(0x227)][_0x2fa933(0x272)][_0x2fa933(0x203)](_0x54edaf(this[_0x2fa933(0x29b)]))['subscribe'](_0x5142f2=>{const _0x311779=_0x2fa933;let _0x53fa50=_0x5142f2[_0x311779(0x43d)];_0x53fa50===_0x228507[_0x311779(0x270)]&&this[_0x311779(0x3d2)](_0x5142f2),_0x53fa50===_0x228507['USERS_LEAVE']&&this[_0x311779(0x355)](_0x5142f2);}),this[_0x2fa933(0x273)](),this['disposeWithMe'](this[_0x2fa933(0x236)]['onCommandExecuted'](_0x3c05c6=>{const _0x1a5bf0=_0x2fa933;if(this[_0x1a5bf0(0x224)]&&_0x3c05c6['id']===_0x3ab318['id']&&_0x3c05c6[_0x1a5bf0(0x38c)][_0x1a5bf0(0x210)]===this[_0x1a5bf0(0x369)]){let _0x194c85=_0x3c05c6[_0x1a5bf0(0x38c)];this[_0x1a5bf0(0x359)](_0x194c85[_0x1a5bf0(0x36d)],_0x194c85[_0x1a5bf0(0x337)][0x0]);}})));}[_0x14429d(0x3d2)](_0x5b4692){const _0x460d9e=_0x14429d;var _0x25b0e4;let {memberID:_0x344fed,selection:_0x6da859}=_0x5b4692['data'],{sheetName:_0x3b3d38,range:_0x437fac}=_0x2f5144(_0x6da859),_0x492840={'name':((_0x25b0e4=this[_0x460d9e(0x41e)][_0x460d9e(0x303)](this[_0x460d9e(0x369)],_0x344fed))==null?void 0x0:_0x25b0e4[_0x460d9e(0x27f)])??_0x460d9e(0x364),'range':this['_getMergeRange'](_0x3b3d38,_0x437fac),'sheetID':_0x3b3d38,'color':this[_0x460d9e(0x2bc)]['assignAColorForMemberID'](_0x344fed),'selection':_0x6da859},_0x412322=this[_0x460d9e(0x2ef)];_0x412322[_0x460d9e(0x1fc)](_0x344fed,_0x492840),this[_0x460d9e(0x2dd)][_0x460d9e(0x362)](_0x412322);}['_onCursorDelete'](_0x37161e){const _0x208149=_0x14429d;let {memberID:_0x2d1d8d}=_0x37161e[_0x208149(0x1cc)],_0x50e920=this[_0x208149(0x2ef)];_0x50e920[_0x208149(0x2a0)](_0x2d1d8d),this[_0x208149(0x2dd)][_0x208149(0x362)](_0x50e920);}[_0x14429d(0x315)](_0x4711d6,_0x4ae6de){const _0x54efb5=_0x14429d;var _0x4ce92e;let _0x353ca9=(_0x4ce92e=this[_0x54efb5(0x3d9)][_0x54efb5(0x1ed)](this[_0x54efb5(0x369)],_0x4d263b[_0x54efb5(0x1d9)]))==null||(_0x4ce92e=_0x4ce92e['getSheetBySheetId'](_0x4711d6))==null?void 0x0:_0x4ce92e[_0x54efb5(0x374)]();return(_0x353ca9==null?void 0x0:_0x353ca9['find'](_0x4c47cb=>_0x2cdee5[_0x54efb5(0x43e)](_0x4c47cb,_0x4ae6de)))||_0x4ae6de;}['_onRefRangeChange'](){const _0x315e04=_0x14429d;let _0x2d46cc=new _0x15436c(),_0x484629=yn(),_0x266af7=()=>{const _0x2153bf=_0x3d03;_0x2d46cc[_0x2153bf(0x381)]();let _0x4d1bf2=(_0x14aec6,_0x36a993,_0x27ea71,_0x3c2b9f)=>{const _0x29204f=_0x2153bf;let _0x5bc7db=[];switch(_0x14aec6['id']){case _0x5b9a17['DeleteRangeMoveLeftCommandId']:_0x5bc7db=_0x545bc5(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17['DeleteRangeMoveUpCommandId']:_0x5bc7db=_0x16e771(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x391)]:_0x5bc7db=_0xc026ab(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x1f3)]:_0x5bc7db=_0x236619(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x2d4)]:_0x5bc7db=_0x13224b(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x407)]:_0x5bc7db=_0x41c0ed(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17['MoveRangeCommandId']:_0x5bc7db=_0xbfefff(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x307)]:_0x5bc7db=_0xab56f7(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x2a3)]:_0x5bc7db=_0xc812f3(_0x14aec6,_0x3c2b9f);}let _0x5e87e3=_0x4964ac(_0x5bc7db,_0x3c2b9f),_0x406d0a=this[_0x29204f(0x2ef)][_0x29204f(0x341)](_0x36a993);if(_0x406d0a&&_0x5e87e3){let _0x38cc78={..._0x406d0a,'range':_0x5e87e3};this['cursorInfo'][_0x29204f(0x1fc)](_0x36a993,_0x38cc78),_0x484629(()=>{const _0x212488=_0x29204f;let _0x23b7c0=this['_refRangeService'][_0x212488(0x3c1)](_0x5e87e3,_0x617dff=>(_0x23b7c0['dispose'](),_0x4d1bf2(_0x617dff,_0x36a993,_0x27ea71,_0x5e87e3)));_0x2d46cc['add'](_0x23b7c0);});}return{'redos':[],'undos':[]};};this[_0x2153bf(0x2ef)]['forEach']((_0x1d1fac,_0x55924b)=>{const _0x357eff=_0x2153bf;let {range:_0x3fe1b8,sheetID:_0x55ed99}=_0x1d1fac,_0x20a980=this[_0x357eff(0x3c5)][_0x357eff(0x3c1)](_0x3fe1b8,_0x30225d=>(_0x20a980[_0x357eff(0x381)](),_0x4d1bf2(_0x30225d,_0x55924b,_0x55ed99,_0x3fe1b8)));_0x2d46cc[_0x357eff(0x264)](_0x20a980);});};this[_0x315e04(0x406)](_0x1c7e61(this['_cursorInfo$'][_0x315e04(0x21d)](()=>{_0x266af7();})));}[_0x14429d(0x2f2)](){const _0xc3ff40=_0x14429d;var _0xb15091,_0x273580;if(this[_0xc3ff40(0x224)]=!0x0,((_0xb15091=this[_0xc3ff40(0x3d9)][_0xc3ff40(0x254)]())==null?void 0x0:_0xb15091['getUnitId']())!==this[_0xc3ff40(0x369)])return;let _0x5ef7d7=(_0x273580=this[_0xc3ff40(0x34e)]['get'](_0x2dca29)[_0xc3ff40(0x298)]())==null?void 0x0:_0x273580[0x0],_0x397b34=this[_0xc3ff40(0x3d9)][_0xc3ff40(0x32f)](_0x4d263b[_0xc3ff40(0x1d9)])[_0xc3ff40(0x229)]();_0x5ef7d7&&_0x397b34&&this['_updateLocalCursor'](_0x397b34['getSheetId'](),_0x5ef7d7);}[_0x14429d(0x1dc)](){this['_online']=!0x1;}};bn=q([K(0x2,_0x439243(_0x2c4c1e)),K(0x3,_0x439243(mn)),K(0x4,_0x439243(_0x529951)),K(0x5,_0x4d77cc),K(0x6,_0xdaa582),K(0x7,_0x439243(_0xb0be48))],bn);let Z=class extends _0x32162e{constructor(_0x413a05,_0x44665d,_0x3e1c70){const _0x37d0f7=_0x14429d;super(),this[_0x37d0f7(0x3d9)]=_0x413a05,this[_0x37d0f7(0x34e)]=_0x44665d,this['_collabSessionService']=_0x3e1c70,G(this,'_entities',new Map()),G(this,_0x37d0f7(0x1f1),new _0x2894b9()),this[_0x37d0f7(0x3b8)]();}[_0x14429d(0x381)](){const _0xf79db1=_0x14429d;super['dispose'](),this[_0xf79db1(0x1f1)][_0xf79db1(0x24e)](),this[_0xf79db1(0x1f9)][_0xf79db1(0x333)](_0x327f09=>_0x327f09[_0xf79db1(0x381)]());}[_0x14429d(0x335)](_0x282aef){const _0x54d975=_0x14429d;let _0x3a5af9=this[_0x54d975(0x1f9)][_0x54d975(0x341)](_0x282aef);return _0x3a5af9?_0x3a5af9[_0x54d975(0x1da)]:this[_0x54d975(0x1f1)][_0x54d975(0x203)](_0x49082d(_0x5cf358=>_0x5cf358[_0x54d975(0x369)]===_0x282aef),_0x76e02a(_0x2c493c=>_0x2c493c[_0x54d975(0x1da)]));}[_0x14429d(0x3b8)](){const _0x5ad89d=_0x14429d;this[_0x5ad89d(0x3d9)]['getTypeOfUnitAdded$'](_0x4d263b['UNIVER_SHEET'])[_0x5ad89d(0x203)](_0x54edaf(this[_0x5ad89d(0x29b)]))[_0x5ad89d(0x21d)](async _0x9f5696=>{const _0x2bdbf3=_0x5ad89d;let _0x245a48=_0x9f5696['unit'][_0x2bdbf3(0x252)](),_0x4ca243=await this[_0x2bdbf3(0x2ed)](_0x245a48);this[_0x2bdbf3(0x1f1)][_0x2bdbf3(0x362)](_0x4ca243),this['_entities'][_0x2bdbf3(0x1fc)](_0x245a48,_0x4ca243);}),this['_univerInstanceService'][_0x5ad89d(0x21a)](_0x4d263b[_0x5ad89d(0x1e8)])[_0x5ad89d(0x203)](_0x54edaf(this[_0x5ad89d(0x29b)]))[_0x5ad89d(0x203)](_0x49082d(_0xd7feb1=>!_0xd7feb1[_0x5ad89d(0x262)][_0x5ad89d(0x252)]()[_0x5ad89d(0x3ba)]('__')))[_0x5ad89d(0x21d)](async _0x57d501=>{const _0x56277a=_0x5ad89d;let {unit:_0x3f99cd}=_0x57d501,_0x5af36e=_0x3f99cd['getUnitId'](),_0x461747=await this[_0x56277a(0x395)](_0x5af36e);this[_0x56277a(0x1f1)][_0x56277a(0x362)](_0x461747),this[_0x56277a(0x1f9)][_0x56277a(0x1fc)](_0x5af36e,_0x461747);}),_0x17436b(this['_univerInstanceService'][_0x5ad89d(0x3c9)](_0x4d263b[_0x5ad89d(0x1e8)]),this[_0x5ad89d(0x3d9)]['getTypeOfUnitDisposed$'](_0x4d263b[_0x5ad89d(0x1d9)]))[_0x5ad89d(0x203)](_0x54edaf(this[_0x5ad89d(0x29b)]))[_0x5ad89d(0x21d)](_0x3f4cb4=>{const _0x1fea29=_0x5ad89d;let _0x193a37=_0x3f4cb4[_0x1fea29(0x252)](),_0x2ee410=this[_0x1fea29(0x1f9)][_0x1fea29(0x341)](_0x193a37);_0x2ee410&&(_0x2ee410[_0x1fea29(0x381)](),this[_0x1fea29(0x1f9)][_0x1fea29(0x2a0)](_0x193a37));});}async[_0x14429d(0x2ed)](_0x414f67){const _0x2fc756=_0x14429d;let _0x29beee=await this[_0x2fc756(0x237)][_0x2fc756(0x3eb)](_0x414f67),_0x1d29c7=this[_0x2fc756(0x34e)][_0x2fc756(0x3dc)](bn,_0x414f67,_0x29beee);return _0x1d29c7[_0x2fc756(0x271)](),_0x1d29c7;}async[_0x14429d(0x395)](_0x2537d0){const _0x432e96=_0x14429d;let _0x25e3d8=await this[_0x432e96(0x237)][_0x432e96(0x3eb)](_0x2537d0),_0xf315c6=this[_0x432e96(0x34e)][_0x432e96(0x3dc)](vn,_0x2537d0,_0x25e3d8);return _0xf315c6[_0x432e96(0x271)](),_0xf315c6;}};Z=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x2c4c1e)),K(0x2,_0x439243(_0x2b2a41))],Z);function _0x3d03(_0x27ce4,_0x3260c6){_0x27ce4=_0x27ce4-0x1c8;const _0x2133e8=_0x2133();let _0x3d0383=_0x2133e8[_0x27ce4];return _0x3d0383;}function xn(_0x14f969,_0x1daeeb){const _0x49e6b3=_0x14429d;_0x14f969['save'](),_0x14f969[_0x49e6b3(0x396)]=_0x49e6b3(0x3f7);let _0x41c0c=_0x14f969[_0x49e6b3(0x2ad)](_0x1daeeb)['width'];return _0x14f969[_0x49e6b3(0x1db)](),Math['min'](_0x41c0c+0x8,0xc8);}function Sn(_0xe453b7,_0x2ab393){const _0x5b5bda=_0x14429d;let {radius:_0x4d61fd,width:_0x2494ff,height:_0x5ec977}=_0x2ab393;_0x4d61fd??=0x0,_0x2494ff??=0x1e,_0x5ec977??=0x1e;let _0x45c484=0x0,_0x10880b=0x0,_0x47f483=0x0;_0x45c484=_0x10880b=_0x47f483=Math[_0x5b5bda(0x2d6)](_0x4d61fd,_0x2494ff/0x2,_0x5ec977/0x2),_0xe453b7[_0x5b5bda(0x31a)](),_0xe453b7[_0x5b5bda(0x38b)](_0x45c484,0x0),_0xe453b7[_0x5b5bda(0x2be)](_0x2494ff-_0x10880b,0x0),_0xe453b7[_0x5b5bda(0x2af)](_0x2494ff-_0x10880b,_0x10880b,_0x10880b,Math['PI']*0x3/0x2,0x0,!0x1),_0xe453b7['lineTo'](_0x2494ff,_0x5ec977-_0x47f483),_0xe453b7[_0x5b5bda(0x2af)](_0x2494ff-_0x47f483,_0x5ec977-_0x47f483,_0x47f483,0x0,Math['PI']/0x2,!0x1),_0xe453b7[_0x5b5bda(0x2be)](0x0,_0x5ec977),_0xe453b7['lineTo'](0x0,_0x45c484),_0xe453b7[_0x5b5bda(0x2af)](_0x45c484,_0x45c484,_0x45c484,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xe453b7[_0x5b5bda(0x2e2)](),_0x2ab393[_0x5b5bda(0x334)]&&(_0xe453b7['save'](),_0xe453b7['fillStyle']=_0x2ab393['fill'],_0x2ab393[_0x5b5bda(0x2f1)]===_0x5b5bda(0x201)?_0xe453b7[_0x5b5bda(0x334)](_0x5b5bda(0x201)):_0xe453b7['fill'](),_0xe453b7[_0x5b5bda(0x1db)]());}var Cn=class e extends _0xcdd8d1{constructor(_0x2641a2,_0xb775fd){const _0x233653=_0x14429d;super(_0x2641a2,_0xb775fd),G(this,_0x233653(0x302),void 0x0),G(this,_0x233653(0x3f9),void 0x0),this[_0x233653(0x302)]=_0xb775fd==null?void 0x0:_0xb775fd['color'],this[_0x233653(0x3f9)]=_0xb775fd==null?void 0x0:_0xb775fd[_0x233653(0x3f9)];}static[_0x14429d(0x3d4)](_0x40422a,_0x4f5bc5){const _0x59e2ee=_0x14429d;let {text:_0x55226f,color:_0x5afdf6}=_0x4f5bc5;_0x40422a[_0x59e2ee(0x352)](),_0x40422a[_0x59e2ee(0x396)]=_0x59e2ee(0x2c8);let _0x3c417e=_0x40422a['measureText'](_0x55226f)[_0x59e2ee(0x3ef)];if(Sn(_0x40422a,{'height':0x14,'radius':0x4,'width':xn(_0x40422a,_0x55226f),'fill':_0x5afdf6,'evented':!0x1}),_0x40422a[_0x59e2ee(0x3e3)]=_0x59e2ee(0x2db),_0x3c417e>0xc0){let _0x442709='',_0xf74572=0x0;for(let _0x3310df of _0x55226f){let _0x59dd97=_0x40422a[_0x59e2ee(0x2ad)](_0x3310df)[_0x59e2ee(0x3ef)];if(_0xf74572+_0x59dd97<=0xc0-_0x40422a[_0x59e2ee(0x2ad)](_0x59e2ee(0x2d1))[_0x59e2ee(0x3ef)])_0x442709+=_0x3310df,_0xf74572+=_0x59dd97;else{_0x442709+=_0x59e2ee(0x2d1);break;}}_0x40422a[_0x59e2ee(0x20a)](_0x442709,0x4,0xf);}else _0x40422a[_0x59e2ee(0x20a)](_0x55226f,0x4,0xf);_0x40422a['restore']();}[_0x14429d(0x29d)](_0x4ece4a){const _0x35750f=_0x14429d;e[_0x35750f(0x3d4)](_0x4ece4a,this);}};const wn=_0x14429d(0x403);var Tn=class{constructor(_0x352a0e,_0xd6524c,_0x52c2f6,_0x21f9cd){const _0x24b09c=_0x14429d;this[_0x24b09c(0x404)]=_0x352a0e,this[_0x24b09c(0x370)]=_0xd6524c,this[_0x24b09c(0x40d)]=_0x52c2f6,this[_0x24b09c(0x24b)]=_0x21f9cd,G(this,_0x24b09c(0x431),[]),G(this,_0x24b09c(0x37e),null),G(this,_0x24b09c(0x316),null),G(this,_0x24b09c(0x3ab),null),G(this,_0x24b09c(0x3c8),null),G(this,'_eventUnsubscribe',null),this['_render']();}set[_0x14429d(0x2d7)](_0x251831){const _0x526127=_0x14429d;_0x251831?(this['_anchorDot']&&this[_0x526127(0x3ab)][_0x526127(0x3be)](),this['_textBubble']&&this[_0x526127(0x316)][_0x526127(0x23e)]()):(this[_0x526127(0x3ab)]&&this[_0x526127(0x3ab)]['show'](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x14429d(0x381)](){const _0x2101a4=_0x14429d;for(let _0x371925 of this[_0x2101a4(0x431)])_0x371925[_0x2101a4(0x381)]();this['_textBubble']&&this[_0x2101a4(0x316)]['dispose'](),this[_0x2101a4(0x3ab)]&&this['_anchorDot'][_0x2101a4(0x381)](),this[_0x2101a4(0x37e)]&&this['_anchor'][_0x2101a4(0x381)](),this[_0x2101a4(0x42b)]&&this['_eventUnsubscribe']();}[_0x14429d(0x20f)](){const _0x565445=_0x14429d;let {_docSkeleton:_0x15fa05,_document:_0x13b99f}=this,{color:_0x2cfbb0,name:_0x3b565a,ranges:_0x20c2ab}=this['_cursor'],_0xdfd1fa=_0x13b99f['getOffsetConfig'](),{docsLeft:_0x487a91,docsTop:_0x377d63}=_0xdfd1fa,_0x31f272=new _0x3e63cb(_0xdfd1fa,_0x15fa05);for(let {startOffset:_0x11be7a,endOffset:_0x5de3a1,rangeType:_0x188a5f,segmentId:_0x8affbb,segmentPage:_0x690886,collapsed:_0x36a37f,isActive:_0x42a9de}of _0x20c2ab){let _0xd8aafb=_0x15fa05[_0x565445(0x1d0)](_0x11be7a,!0x0,_0x8affbb,_0x690886),_0x412030=_0x15fa05['findNodePositionByCharIndex'](_0x5de3a1,!0x0,_0x8affbb,_0x690886);_0x412030??=_0x15fa05[_0x565445(0x1d0)](_0x5de3a1-0x1,!0x1,_0x8affbb,_0x690886);let _0x204009=En(_0xd8aafb,_0x412030);if(_0x42a9de&&_0x204009[_0x565445(0x3db)]){let {contentBoxPointGroup:_0x58a7a8}=_0x31f272[_0x565445(0x22a)](_0x412030,_0x412030);if(_0x58a7a8[_0x565445(0x3a5)]===0x0)continue;this[_0x565445(0x3a0)](_0x2cfbb0,_0x58a7a8,_0x487a91,_0x377d63,_0x3b565a),this[_0x565445(0x42b)]=this[_0x565445(0x23c)]();}if(_0xd8aafb&&_0x412030){if(_0x188a5f===_0xfd1486['RECT']){let {pointGroup:_0x470f2f}=new _0x40d888(_0xdfd1fa,_0x15fa05)[_0x565445(0x22a)](_0xd8aafb,_0x412030)??{};if(_0x470f2f==null||_0x470f2f['length']===0x0)continue;this['_drawRectRange'](_0x2cfbb0,_0x470f2f,_0x487a91,_0x377d63);}else{if(!_0x36a37f&&_0x204009[_0x565445(0x1ff)]){let {borderBoxPointGroup:_0x16feed}=_0x31f272[_0x565445(0x22a)](_0xd8aafb,_0x412030);if(_0x16feed[_0x565445(0x3a5)]===0x0)continue;this[_0x565445(0x1d1)](_0x2cfbb0,_0x16feed,_0x487a91,_0x377d63);}}}}}[_0x14429d(0x3a0)](_0x49b85b,_0x34941c,_0x27a881,_0x5e4ffa,_0x53781e){const _0x5134d9=_0x14429d;let {left:_0x70a8dc,top:_0xef8d3f,height:_0x2c22fa}=this[_0x5134d9(0x1f4)](_0x34941c),_0x49b0dc=1.5/this[_0x5134d9(0x31f)](),_0x554daf=new _0x58a20d(wn+_0x5b5013(0x6),{'left':_0x70a8dc+_0x27a881-_0x49b0dc,'top':_0xef8d3f+_0x5e4ffa,'height':_0x2c22fa,'width':1.5,'fill':_0x49b85b||_0x457359(_0x330629[_0x5134d9(0x1f5)],0x0),'strokeWidth':_0x49b0dc,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x5134d9(0x37e)]=_0x554daf,this['_scene'][_0x5134d9(0x204)](_0x554daf,_0x2e23a0);let _0x125d60=new _0x58a20d(wn+_0x5b5013(0x6),{'left':_0x70a8dc+_0x27a881-_0x49b0dc,'top':_0xef8d3f+_0x5e4ffa-0x2,'height':0x4,'width':0x4,'fill':_0x49b85b||_0x457359(_0x330629[_0x5134d9(0x1f5)],0x0),'strokeWidth':0x0,'stroke':_0x49b85b||_0x457359(_0x330629[_0x5134d9(0x1f5)],0x0),'evented':!0x1});this[_0x5134d9(0x3ab)]=_0x125d60,this[_0x5134d9(0x370)][_0x5134d9(0x204)](_0x125d60,_0x2e23a0);let _0x414fdb=new Cn(wn+_0x5b5013(0x6),{'left':_0x70a8dc+_0x27a881-_0x49b0dc,'top':_0xef8d3f+_0x5e4ffa-0x14,'text':_0x53781e,'color':_0x49b85b});this[_0x5134d9(0x316)]=_0x414fdb,this['_scene']['addObject'](_0x414fdb,_0x2e23a0),this[_0x5134d9(0x2d7)]=!0x1;}[_0x14429d(0x23c)](){const _0x5d7be2=_0x14429d;let _0x502cc6=this[_0x5d7be2(0x37e)]['onPointerEnter$'][_0x5d7be2(0x207)](()=>{const _0x5555d6=_0x5d7be2;this[_0x5555d6(0x2d7)]=!0x0;}),_0x18dfe4=this['_anchor']['onPointerLeave$'][_0x5d7be2(0x207)](()=>{const _0x3bd797=_0x5d7be2;this[_0x3bd797(0x3c8)]&&clearTimeout(this[_0x3bd797(0x3c8)]),this[_0x3bd797(0x3c8)]=setTimeout(()=>{const _0x48edbf=_0x3bd797;this[_0x48edbf(0x2d7)]=!0x1;},0x7d0);});return()=>{const _0x1d3e92=_0x5d7be2;_0x502cc6['unsubscribe'](),_0x18dfe4[_0x1d3e92(0x329)]();};}[_0x14429d(0x1d1)](_0x24b36b,_0x128e4e,_0x40cd62,_0x5b3dfe){const _0x32048e=_0x14429d;let _0x32e004=0.2,_0x5f2624=new _0x22b6b1(_0x24b36b)[_0x32048e(0x1fd)](_0x32e004)[_0x32048e(0x28e)](),_0x3f61fa=new _0x24bbe3(_0x32048e(0x37c)+_0x5b5013(0x6),{'pointsGroup':_0x128e4e,'fill':_0x5f2624||_0x457359(_0x330629[_0x32048e(0x1f5)],_0x32e004),'left':_0x40cd62,'top':_0x5b3dfe,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x32048e(0x305)](_0x3f61fa),this[_0x32048e(0x370)][_0x32048e(0x204)](_0x3f61fa,_0x2e23a0);}[_0x14429d(0x310)](_0x2fddfb,_0xb06d94,_0x523026,_0x1c9b39){const _0x2a352f=_0x14429d;let _0x5b63aa=0.2,_0x5d8a0c=new _0x22b6b1(_0x2fddfb)['setAlpha'](_0x5b63aa)[_0x2a352f(0x28e)](),_0x4c4fa6=new _0x24bbe3('collab-rect-range-'+_0x5b5013(0x6),{'pointsGroup':_0xb06d94,'fill':_0x5d8a0c||_0x457359(_0x330629['black'],_0x5b63aa),'left':_0x523026,'top':_0x1c9b39,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2a352f(0x431)][_0x2a352f(0x305)](_0x4c4fa6),this[_0x2a352f(0x370)][_0x2a352f(0x204)](_0x4c4fa6,_0x2e23a0);}[_0x14429d(0x1f4)](_0x5e195a){let _0x21d69a=_0x5e195a[0x0],_0x38f4bb=_0x21d69a[0x0],_0xdbcc49=_0x21d69a[0x2],{x:_0xd3d298,y:_0xd2cb30}=_0x38f4bb,{x:_0x5acc65,y:_0xdf765a}=_0xdbcc49;return{'left':_0xd3d298,'top':_0xd2cb30,'width':_0x5acc65-_0xd3d298,'height':_0xdf765a-_0xd2cb30};}['_getScale'](){const _0x1f5207=_0x14429d;let {scaleX:_0xc02cd8,scaleY:_0x35301b}=this[_0x1f5207(0x370)][_0x1f5207(0x1df)]();return Math[_0x1f5207(0x432)](_0xc02cd8,_0x35301b);}};function En(_0x2355a1,_0x170c5e){const _0x16ca82=_0x14429d;if(!_0x170c5e)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x2355a1||_0x2355a1[_0x16ca82(0x413)]!==_0x170c5e['pageType']||(_0x2355a1['pageType']===_0x19d442[_0x16ca82(0x2a9)]||_0x2355a1['pageType']===_0x19d442['FOOTER'])&&_0x2355a1[_0x16ca82(0x27a)]!==_0x170c5e[_0x16ca82(0x27a)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x47be13=_0x131357(_0x2355a1),_0x23b21a=_0x131357(_0x170c5e);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x47be13==null||_0x23b21a==null?_0x47be13==null&&_0x23b21a==null:_0x47be13[_0x16ca82(0x22d)]===_0x23b21a[_0x16ca82(0x22d)]&&_0x47be13[_0x16ca82(0x2b4)]===_0x23b21a[_0x16ca82(0x2b4)]&&_0x47be13[_0x16ca82(0x1e7)]===_0x23b21a[_0x16ca82(0x1e7)]};}let Dn=class extends _0x32162e{constructor(_0x5a0902,_0x4ca4e7,_0x3a651c,_0x2652f8,_0x33bbaf){const _0x5435df=_0x14429d;super(),this[_0x5435df(0x30c)]=_0x5a0902,this[_0x5435df(0x422)]=_0x4ca4e7,this[_0x5435df(0x3ad)]=_0x3a651c,this[_0x5435df(0x236)]=_0x2652f8,this['_themeService']=_0x33bbaf,G(this,_0x5435df(0x3ca),[]),G(this,_0x5435df(0x2c1),[]),this[_0x5435df(0x3b8)]();}[_0x14429d(0x3b8)](){const _0x249207=_0x14429d;let _0x1d06d8=this[_0x249207(0x30c)][_0x249207(0x210)],_0x35c416=this['_docSkeletonManagerService'];this[_0x249207(0x406)](_0x4f55e7([this['_collabCursorController'][_0x249207(0x335)](_0x1d06d8),this[_0x249207(0x1f6)][_0x249207(0x253)]])['pipe'](_0x37d85c(([_0x1341e2,_0xd20b7f])=>({'skeleton':_0x35c416[_0x249207(0x319)](),'cursors':[..._0x1341e2[_0x249207(0x3d1)]()][_0x249207(0x3e5)](_0x56b124=>({..._0x56b124,'color':this[_0x249207(0x1f6)][_0x249207(0x393)](_0x56b124[_0x249207(0x302)])}))})))['subscribe'](_0x5074e5=>{const _0x4d3224=_0x249207;if(this[_0x4d3224(0x3cd)](),_0x5074e5){let {skeleton:_0x3fee60,cursors:_0x1a5920}=_0x5074e5;this[_0x4d3224(0x2f4)](_0x3fee60,_0x1a5920);}})),this[_0x249207(0x2b2)](),this[_0x249207(0x354)]();}[_0x14429d(0x2f4)](_0x25c5d7,_0x1afdbb){const _0x29e66c=_0x14429d;let {scene:_0x200912,mainComponent:_0x125f86}=this[_0x29e66c(0x30c)],_0x48ad1f=_0x1afdbb[_0x29e66c(0x249)](_0x256b18=>new Tn(_0x256b18,_0x200912,_0x25c5d7,_0x125f86));this[_0x29e66c(0x3ca)]=_0x48ad1f,this[_0x29e66c(0x2c1)]=_0x1afdbb;}[_0x14429d(0x349)](){const _0x3ef9fa=_0x14429d;this[_0x3ef9fa(0x3cd)]();let {scene:_0x21fae8,mainComponent:_0x12ee2e}=this[_0x3ef9fa(0x30c)],_0x3cae51=this[_0x3ef9fa(0x422)]['getSkeleton'](),_0x246623=this['_cursors']['map'](_0x139b0d=>new Tn(_0x139b0d,_0x21fae8,_0x3cae51,_0x12ee2e));this['_cursorShapes']=_0x246623;}[_0x14429d(0x3cd)](){const _0x73d81d=_0x14429d;this[_0x73d81d(0x3ca)][_0x73d81d(0x333)](_0x59e4bc=>_0x59e4bc[_0x73d81d(0x381)]()),this[_0x73d81d(0x3ca)]=[];}[_0x14429d(0x354)](){const _0x37882c=_0x14429d;let _0x3fcc26=[_0x4c78d2['id']];this['disposeWithMe'](this[_0x37882c(0x236)][_0x37882c(0x326)](_0xd63ebd=>{const _0x1de205=_0x37882c;_0x3fcc26['includes'](_0xd63ebd['id'])&&_0xd63ebd[_0x1de205(0x38c)]['unitId']===this[_0x1de205(0x30c)][_0x1de205(0x210)]&&this[_0x1de205(0x349)]();}));}[_0x14429d(0x2b2)](){const _0x4bbe2a=_0x14429d;this[_0x4bbe2a(0x406)](_0x3b1a74(this[_0x4bbe2a(0x30c)][_0x4bbe2a(0x293)]['onTransformChange$'])[_0x4bbe2a(0x203)](_0x225bc6(_0x4540a0=>_0x4540a0[_0x4bbe2a(0x3e6)]===_0x435aa5[_0x4bbe2a(0x243)]),_0x27ed7f(0x10))[_0x4bbe2a(0x21d)](()=>{const _0x2187db=_0x4bbe2a;this[_0x2187db(0x349)]();}));}};Dn=q([K(0x1,_0x439243(_0x101420)),K(0x2,_0x439243(Z)),K(0x3,_0xdaa582),K(0x4,_0x439243(_0xa61525))],Dn);var On=class extends _0xcdd8d1{constructor(_0x3ec857,_0x17094f){const _0x5c3053=_0x14429d;super(_0x3ec857,_0x17094f),G(this,_0x5c3053(0x306),void 0x0),G(this,_0x5c3053(0x3de),!0x1),G(this,_0x5c3053(0x28f),void 0x0),G(this,'_name',''),G(this,_0x5c3053(0x2ab),_0x5c3053(0x379)),G(this,_0x5c3053(0x2e5),void 0x0),G(this,_0x5c3053(0x1d8),void 0x0),G(this,'_highlight',void 0x0),G(this,_0x5c3053(0x34d),0x4),G(this,'_blinkTimer',void 0x0),G(this,_0x5c3053(0x3e8),void 0x0),G(this,'_isBlinkVisible',!0x0),G(this,_0x5c3053(0x3d6),0x0),G(this,_0x5c3053(0x325),_0x5c3053(0x214)),_0x17094f&&(this[_0x5c3053(0x26b)](_0x17094f),_0x17094f[_0x5c3053(0x411)]&&(_0x17094f['highlightSecond']??this[_0x5c3053(0x34d)])&&this[_0x5c3053(0x2a1)](_0x17094f[_0x5c3053(0x24c)]??this['_highlightSecond'])),this[_0x5c3053(0x25d)][_0x5c3053(0x207)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5c3053(0x430)][_0x5c3053(0x207)](()=>this[_0x5c3053(0x26b)]({'hovered':!0x1}));}[_0x14429d(0x3c6)](_0x9be35b){const _0x538e60=_0x14429d;this[_0x538e60(0x3d6)]=_0x9be35b;}[_0x14429d(0x26b)](_0x3720c2){const _0x15f67e=_0x14429d;this[_0x15f67e(0x306)]=_0x3720c2[_0x15f67e(0x302)]??this[_0x15f67e(0x306)],this['_hovered']=_0x3720c2[_0x15f67e(0x409)]??this[_0x15f67e(0x3de)],this[_0x15f67e(0x28f)]=_0x3720c2[_0x15f67e(0x3ff)]??this[_0x15f67e(0x28f)],this[_0x15f67e(0x40a)]=_0x3720c2[_0x15f67e(0x27f)]??this[_0x15f67e(0x40a)],this['_labelPosition']=_0x3720c2['labelPosition']??this[_0x15f67e(0x2ab)],this[_0x15f67e(0x2e5)]=_0x3720c2[_0x15f67e(0x218)]??this[_0x15f67e(0x2e5)],this['_showText']=_0x3720c2[_0x15f67e(0x24d)]??this['_showText'],this[_0x15f67e(0x325)]=_0x3720c2[_0x15f67e(0x3da)]??this['_labelHorizontalPosition'],_0x3720c2['highlightSecond']!==void 0x0&&(this['_highlightSecond']=_0x3720c2[_0x15f67e(0x24c)]),_0x3720c2[_0x15f67e(0x411)]!==void 0x0&&(this[_0x15f67e(0x31e)]=_0x3720c2['highlight']),_0x3720c2['offsetY']!==void 0x0&&(this[_0x15f67e(0x3d6)]=_0x3720c2[_0x15f67e(0x348)]),this[_0x15f67e(0x2e7)]({'width':_0x3720c2['width'],'height':_0x3720c2[_0x15f67e(0x3fc)]});}['onMouseMove'](_0x512a2f){const _0x136b2c=_0x14429d;let {row:_0x1b65fc,column:_0x5d3606}=_0x512a2f;if(_0x1b65fc>=this['_range'][_0x136b2c(0x20e)]&&_0x1b65fc<=this[_0x136b2c(0x28f)][_0x136b2c(0x39c)]&&_0x5d3606>=this[_0x136b2c(0x28f)][_0x136b2c(0x420)]&&_0x5d3606<=this[_0x136b2c(0x28f)][_0x136b2c(0x36c)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x136b2c(0x26b)]({'hovered':!0x1});}[_0x14429d(0x2a1)](_0x5aa9e2){const _0x38a252=_0x14429d;this[_0x38a252(0x344)](),this[_0x38a252(0x30d)]=!0x0,this[_0x38a252(0x3e8)]=window[_0x38a252(0x2c5)](()=>{const _0x54ac0d=_0x38a252;this['_isBlinkVisible']=!this[_0x54ac0d(0x30d)],this[_0x54ac0d(0x384)](!0x0);},0x1f4),this[_0x38a252(0x363)]=window[_0x38a252(0x1fb)](()=>{const _0xdd611f=_0x38a252;this['_stopBlinking'](),this[_0xdd611f(0x30d)]=!0x0,this[_0xdd611f(0x384)](!0x0);},_0x5aa9e2*0x3e8);}[_0x14429d(0x344)](){const _0x300347=_0x14429d;this['_blinkIntervalTimer']&&=(window[_0x300347(0x275)](this[_0x300347(0x3e8)]),void 0x0),this[_0x300347(0x363)]&&=(window[_0x300347(0x3ec)](this[_0x300347(0x363)]),void 0x0);}[_0x14429d(0x200)](_0x4ef6cc){return!0x1;}['dispose'](){const _0x871b3b=_0x14429d;this[_0x871b3b(0x344)](),super[_0x871b3b(0x381)]();}[_0x14429d(0x29d)](_0x544e74){const _0x216413=_0x14429d;let _0x1d57f1=this[_0x216413(0x306)],_0x1f0277=this[_0x216413(0x2e5)];if(this[_0x216413(0x31e)]&&!this[_0x216413(0x30d)]&&(_0x1d57f1=this[_0x216413(0x22b)](this[_0x216413(0x306)]),_0x1f0277=this[_0x216413(0x2e5)]?this[_0x216413(0x22b)](this[_0x216413(0x2e5)]):void 0x0),_0x58a20d['drawWith'](_0x544e74,{'width':this[_0x216413(0x3ef)],'height':this[_0x216413(0x3fc)],'strokeWidth':this[_0x216413(0x226)]||1.5,'stroke':_0x1d57f1,'evented':!0x1,'fill':_0x1f0277}),this['_hovered']||this['_showText']){_0x544e74['save']();let _0x394dab=this[_0x216413(0x325)]===_0x216413(0x3d7)?-xn(_0x544e74,this[_0x216413(0x40a)]):this[_0x216413(0x3ef)];_0x544e74['transform'](0x1,0x0,0x0,0x1,_0x394dab,(this['_labelPosition']===_0x216413(0x3b4)?0x0:-0x14)+(this[_0x216413(0x3d6)]??0x0)),Cn[_0x216413(0x3d4)](_0x544e74,{'text':this[_0x216413(0x40a)],'color':_0x1d57f1}),_0x544e74[_0x216413(0x1db)]();}}[_0x14429d(0x22b)](_0xc03473){const _0x5bddaa=_0x14429d;return _0xc03473[_0x5bddaa(0x3ba)]('#')?_0x5bddaa(0x3c7)+Number[_0x5bddaa(0x2a7)](_0xc03473[_0x5bddaa(0x34c)](0x1,0x3),0x10)+',\x20'+Number[_0x5bddaa(0x2a7)](_0xc03473[_0x5bddaa(0x34c)](0x3,0x5),0x10)+',\x20'+Number[_0x5bddaa(0x2a7)](_0xc03473[_0x5bddaa(0x34c)](0x5,0x7),0x10)+',\x200.2)':_0xc03473[_0x5bddaa(0x3ba)](_0x5bddaa(0x321))?_0xc03473['replace'](/[\d.]+\)$/g,'0.2)'):_0xc03473[_0x5bddaa(0x3ba)](_0x5bddaa(0x261))?_0xc03473[_0x5bddaa(0x361)]('rgb',_0x5bddaa(0x321))['replace'](')',_0x5bddaa(0x2a2)):_0xc03473;}};let kn=class extends _0x32162e{constructor(_0xb7ad0e,_0x489c47,_0x5e8038,_0x1340ac){const _0x507a0c=_0x14429d;super(),this[_0x507a0c(0x30c)]=_0xb7ad0e,this['_sheetSkeletonManagerService']=_0x489c47,this[_0x507a0c(0x3ad)]=_0x5e8038,this[_0x507a0c(0x1f6)]=_0x1340ac,G(this,_0x507a0c(0x2c1),new Set()),G(this,'_lastPointer',null),G(this,_0x507a0c(0x37a),null),this[_0x507a0c(0x3b8)]();}['_init'](){const _0xb6f585=_0x14429d;this['_sheetSkeletonManagerService'][_0xb6f585(0x2a8)][_0xb6f585(0x203)](_0x535fcc(this['dispose$']),_0x48ade1(_0x936387=>{const _0x499846=_0xb6f585;if(_0x936387){let _0x24a7bf=_0x936387[_0x499846(0x20d)];return _0x4f55e7(this[_0x499846(0x3ad)][_0x499846(0x335)](this[_0x499846(0x30c)][_0x499846(0x210)]),this[_0x499846(0x1f6)]['currentTheme$'])[_0x499846(0x203)](_0x37d85c(([_0x357f3a,_0x33c806])=>{const _0x39d995=_0x499846;let _0xe392f0=new Map();return _0x357f3a[_0x39d995(0x333)]((_0x472169,_0x24dd3f)=>{const _0x302ce9=_0x39d995;if(_0x472169[_0x302ce9(0x2f0)]===_0x24a7bf){let _0x3a6f11={..._0x472169};_0x3a6f11['color']=this[_0x302ce9(0x1f6)][_0x302ce9(0x393)](_0x472169[_0x302ce9(0x302)]),_0xe392f0[_0x302ce9(0x1fc)](_0x24dd3f,_0x3a6f11);}}),{'skeleton':_0x936387,'cursors':_0xe392f0};}));}return _0x5f1171({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x2318e8,cursors:_0x38fe48})=>{const _0x11e735=_0xb6f585;this[_0x11e735(0x3cd)](),_0x2318e8&&this['_updateCollabCursors'](_0x2318e8,_0x38fe48);}),this[_0xb6f585(0x406)](this[_0xb6f585(0x285)]['currentSkeleton$'][_0xb6f585(0x203)](_0x535fcc(this['dispose$']))['subscribe'](_0x552382=>{const _0x303a14=_0xb6f585;var _0xe4e4e0;if(_0x552382==null)return;(_0xe4e4e0=this['_pointerMoveDisposable'])==null||_0xe4e4e0[_0x303a14(0x329)](),this[_0x303a14(0x37a)]=null;let {skeleton:_0x1e0841}=_0x552382,{scene:_0x3b0ec0}=this[_0x303a14(0x30c)];this[_0x303a14(0x37a)]=_0x3b0ec0[_0x303a14(0x3ac)][_0x303a14(0x207)](_0x43c2fb(_0x224812=>{const _0x1c219a=_0x303a14;var _0x1d9403,_0x4966e6;let {offsetX:_0x235c39,offsetY:_0x46853c}=_0x224812,{x:_0x297f43,y:_0x51e0a9}=_0x3b0ec0[_0x1c219a(0x3a6)](_0x164f70['FromArray']([_0x235c39,_0x46853c])),{scaleX:_0x10cdad,scaleY:_0x1c15f8}=_0x3b0ec0[_0x1c219a(0x1df)](),_0x50478b=_0x3b0ec0[_0x1c219a(0x251)](_0xa2fb8c[_0x1c219a(0x3e1)]),_0x419cae=_0x3b0ec0[_0x1c219a(0x438)](_0x164f70[_0x1c219a(0x230)]([_0x297f43,_0x51e0a9]),_0x50478b),_0x57c52b=_0x1e0841[_0x1c219a(0x2c2)](_0x235c39,_0x46853c,_0x10cdad,_0x1c15f8,_0x419cae);(((_0x1d9403=this[_0x1c219a(0x215)])==null?void 0x0:_0x1d9403[_0x1c219a(0x1e3)])!==_0x57c52b[_0x1c219a(0x1e3)]||((_0x4966e6=this[_0x1c219a(0x215)])==null?void 0x0:_0x4966e6[_0x1c219a(0x2e4)])!==_0x57c52b['row'])&&this[_0x1c219a(0x2c1)][_0x1c219a(0x333)](_0x59fa26=>{_0x59fa26['onMouseMove'](_0x57c52b);});},0x64));})),this['disposeWithMe'](_0x1c7e61(()=>{const _0x2c42e6=_0xb6f585;var _0x43a55f;(_0x43a55f=this['_pointerMoveDisposable'])==null||_0x43a55f[_0x2c42e6(0x329)](),this[_0x2c42e6(0x37a)]=null;}));}[_0x14429d(0x2f4)](_0x2060bb,_0x5c332b){const _0x479a66=_0x14429d;let _0x457c9c=this[_0x479a66(0x285)][_0x479a66(0x437)]();if(!_0x457c9c)return;let _0x2e7056=this[_0x479a66(0x3dd)]();if(!_0x2e7056)return;this[_0x479a66(0x2c1)][_0x479a66(0x333)](_0x80f1d2=>{const _0xae8107=_0x479a66;_0x80f1d2[_0xae8107(0x384)]();});let {scene:_0x443d74}=_0x2e7056,_0x4e4e6e=An(Array[_0x479a66(0x2d2)](_0x5c332b[_0x479a66(0x3d1)]()))[_0x479a66(0x249)](_0x2cb599=>{const _0x126250=_0x479a66;let {color:_0x2d25f0,range:_0x40b538,name:_0x4ec218,selection:_0x4e7115,sheetID:_0x5b4345}=_0x2cb599,{startColumn:_0x13910c,startRow:_0xb2ed4d,endColumn:_0x5cef47,endRow:_0x854d12}=_0x40b538,_0x2dc75a=_0x527228(_0xb2ed4d,_0x13910c,_0x443d74,_0x457c9c),_0x17a5f2=_0x527228(_0x854d12,_0x5cef47,_0x443d74,_0x457c9c),{columnHeaderHeightAndMarginTop:_0x564238}=_0x457c9c,{startX:_0x521df5,startY:_0x5366ad}=_0x2dc75a,{endX:_0x4aff10,endY:_0x3a912e}=_0x17a5f2,_0x1e4b11=_0x4aff10-_0x521df5,_0x4bee39=_0x3a912e-_0x5366ad;return new On(_0x4ec218,{'labelPosition':_0x5366ad-_0x564238>=0x14?_0x126250(0x379):_0x126250(0x3b4),'sheetID':_0x5b4345,'range':_0x40b538,'color':_0x2d25f0,'name':_0x4ec218,'selection':_0x4e7115,'left':_0x521df5,'top':_0x5366ad,'width':_0x1e4b11,'height':_0x4bee39,'evented':!0x1,'zIndex':0x1389});});_0x443d74[_0x479a66(0x231)](_0x4e4e6e,0x1),this[_0x479a66(0x2c1)]=new Set(_0x4e4e6e);}[_0x14429d(0x3cd)](){const _0x39a03e=_0x14429d;var _0x34b57c;(_0x34b57c=this[_0x39a03e(0x2c1)])==null||_0x34b57c[_0x39a03e(0x333)](_0x4f8233=>_0x4f8233[_0x39a03e(0x381)]());}[_0x14429d(0x3dd)](){const _0x26b533=_0x14429d;return _0x478dc1(this[_0x26b533(0x30c)][_0x26b533(0x262)],this['_context']);}};kn=q([K(0x1,_0x439243(_0x405920)),K(0x2,_0x439243(Z)),K(0x3,_0x439243(_0xa61525))],kn);function An(_0x35099e){const _0x1f8576=_0x14429d;let _0x42eb62=new Map();return _0x35099e[_0x1f8576(0x333)](_0x1bc57b=>{const _0x3640b7=_0x1f8576;if(_0x42eb62[_0x3640b7(0x38f)](_0x1bc57b['selection'])){let _0x477f03=_0x42eb62[_0x3640b7(0x341)](_0x1bc57b['selection']);_0x477f03[_0x3640b7(0x27f)]+=',\x20'+_0x1bc57b['name'];}else _0x42eb62['set'](_0x1bc57b['selection'],_0x1bc57b);}),Array[_0x1f8576(0x2d2)](_0x42eb62[_0x1f8576(0x3d1)]());}function jn(_0x4cb989){return typeof _0x4cb989=='object'&&!!_0x4cb989;}function Mn(_0x51900d){const _0x35389d=_0x14429d;return _0x51900d['eventID']===_0x228507[_0x35389d(0x270)]&&_0x35389d(0x1cc)in _0x51900d&&jn(_0x51900d[_0x35389d(0x1cc)])&&typeof _0x51900d['data']['memberID']==_0x35389d(0x2df)&&typeof _0x51900d[_0x35389d(0x1cc)][_0x35389d(0x304)]=='string';}function Nn(_0x261de8){const _0x379a2f=_0x14429d;return _0x261de8[_0x379a2f(0x43d)]===_0x228507[_0x379a2f(0x42e)]&&_0x379a2f(0x1cc)in _0x261de8&&jn(_0x261de8[_0x379a2f(0x1cc)])&&typeof _0x261de8[_0x379a2f(0x1cc)]['memberID']==_0x379a2f(0x2df);}function Pn(_0x5848b8,_0x501e0f){const _0x1bc03d=_0x14429d;let _0x25f683;try{_0x25f683=JSON['parse'](_0x5848b8);}catch{return null;}if(!jn(_0x25f683)||typeof _0x25f683[_0x1bc03d(0x318)]!='string'||typeof _0x25f683[_0x1bc03d(0x210)]!=_0x1bc03d(0x2df)||typeof _0x25f683[_0x1bc03d(0x36d)]!=_0x1bc03d(0x2df))return null;let _0x2b1997=typeof _0x25f683[_0x1bc03d(0x382)]==_0x1bc03d(0x33f)?_0x25f683[_0x1bc03d(0x382)]:_0x501e0f;if(_0x2b1997==null)return null;let _0x5a5756=jn(_0x25f683[_0x1bc03d(0x223)])&&typeof _0x25f683[_0x1bc03d(0x223)]['x']=='number'&&Number[_0x1bc03d(0x41d)](_0x25f683['pointer']['x'])&&typeof _0x25f683['pointer']['y']==_0x1bc03d(0x33f)&&Number['isFinite'](_0x25f683[_0x1bc03d(0x223)]['y'])?{'x':_0x25f683[_0x1bc03d(0x223)]['x'],'y':_0x25f683[_0x1bc03d(0x223)]['y']}:null;return{'kind':_0x25f683['kind'],'unitType':_0x2b1997,'unitId':_0x25f683[_0x1bc03d(0x210)],'subUnitId':_0x25f683['subUnitId'],'selectedIds':Array['isArray'](_0x25f683[_0x1bc03d(0x42d)])?_0x25f683['selectedIds']['filter'](_0x46198b=>typeof _0x46198b==_0x1bc03d(0x2df)):[],'focusedId':typeof _0x25f683['focusedId']==_0x1bc03d(0x2df)?_0x25f683[_0x1bc03d(0x274)]:null,'pointer':_0x5a5756};}function Fn(_0x97fd09,_0x325a8d,_0x43f445){const _0x303c11=_0x14429d;return{'kind':_0x325a8d,'unitType':_0x97fd09,'unitId':_0x43f445[_0x303c11(0x210)],'subUnitId':_0x43f445['subUnitId'],'selectedIds':Array[_0x303c11(0x2d2)](_0x43f445[_0x303c11(0x42d)]),'focusedId':_0x43f445['focusedId'],'pointer':_0x43f445[_0x303c11(0x223)]?{..._0x43f445[_0x303c11(0x223)]}:null};}let In=class extends _0x32162e{constructor(_0x262ef6,_0x4bce5d,_0x4c72d4,_0x1c930f,_0x22899b,_0x103f39){const _0x5e8f4a=_0x14429d;super(),this['unitId']=_0x262ef6,this[_0x5e8f4a(0x227)]=_0x4bce5d,this[_0x5e8f4a(0x28c)]=_0x4c72d4,this['_colorAssignService']=_0x1c930f,this[_0x5e8f4a(0x41e)]=_0x22899b,this['_commandService']=_0x103f39,G(this,_0x5e8f4a(0x224),!0x1),G(this,_0x5e8f4a(0x2dc),!0x1);}get[_0x14429d(0x382)](){const _0x32b78c=_0x14429d;return this[_0x32b78c(0x28c)][_0x32b78c(0x382)];}[_0x14429d(0x381)](){const _0x52725d=_0x14429d;this[_0x52725d(0x2cc)](),super['dispose']();}[_0x14429d(0x271)](){const _0x153fdf=_0x14429d;this[_0x153fdf(0x2dc)]||(this['_initialized']=!0x0,this[_0x153fdf(0x227)][_0x153fdf(0x428)][_0x153fdf(0x203)](_0x54edaf(this[_0x153fdf(0x29b)]))[_0x153fdf(0x21d)](_0x2233e6=>{const _0x309695=_0x153fdf;if(_0x2233e6===_0x411373['ONLINE']){this[_0x309695(0x224)]=!0x0;let _0x727c67=this[_0x309695(0x28c)]['getLocalPresence'](this[_0x309695(0x210)]);_0x727c67&&this[_0x309695(0x29a)](_0x727c67);return;}this[_0x309695(0x224)]=!0x1,this[_0x309695(0x2cc)]();}),this[_0x153fdf(0x227)][_0x153fdf(0x272)][_0x153fdf(0x203)](_0x54edaf(this[_0x153fdf(0x29b)]))[_0x153fdf(0x21d)](_0x219067=>{const _0xec59f0=_0x153fdf;Mn(_0x219067)?this['_handleCursorUpdate'](_0x219067):Nn(_0x219067)&&this[_0xec59f0(0x1f0)](_0x219067[_0xec59f0(0x1cc)][_0xec59f0(0x1c8)]);}),this[_0x153fdf(0x28c)]['localPresence$'][_0x153fdf(0x203)](_0x49082d(_0x401631=>this['_online']&&_0x401631['unitId']===this[_0x153fdf(0x210)]),_0x6b057b(_0x22ef94=>_0x5f3da1(_0x22ef94[_0x153fdf(0x2d0)]),{'leading':!0x0,'trailing':!0x0}),_0x54edaf(this[_0x153fdf(0x29b)]))[_0x153fdf(0x21d)](_0x4bca24=>this['_sendLocalPresence'](_0x4bca24)));}[_0x14429d(0x29a)](_0x195d76){const _0x3c560c=_0x14429d;let _0x2a5578=this['_session'][_0x3c560c(0x291)]();if(!_0x2a5578||!this[_0x3c560c(0x224)])return;let _0x23dfaf={'eventID':_0x228507[_0x3c560c(0x270)],'data':{'unitID':this[_0x3c560c(0x210)],'memberID':_0x2a5578,'selection':JSON[_0x3c560c(0x26f)](Fn(this[_0x3c560c(0x382)],this[_0x3c560c(0x28c)]['presenceKind'],_0x195d76))}};this[_0x3c560c(0x227)][_0x3c560c(0x1f8)](_0x23dfaf,this[_0x3c560c(0x210)])[_0x3c560c(0x2d8)](()=>void 0x0);}[_0x14429d(0x366)](_0x23ff35){const _0x1d5d0d=_0x14429d;let {memberID:_0x14f34b,selection:_0xd723ab}=_0x23ff35[_0x1d5d0d(0x1cc)];if(_0x14f34b===this['_session'][_0x1d5d0d(0x291)]())return;let _0x5584d1=Pn(_0xd723ab,this['unitType']);if(!_0x5584d1||_0x5584d1[_0x1d5d0d(0x318)]!==this[_0x1d5d0d(0x28c)][_0x1d5d0d(0x2aa)]||_0x5584d1['unitType']!==this[_0x1d5d0d(0x382)]||_0x5584d1[_0x1d5d0d(0x210)]!==this[_0x1d5d0d(0x210)])return;let _0x407526=this[_0x1d5d0d(0x41e)]['getMember'](this[_0x1d5d0d(0x210)],_0x14f34b),_0x25b5a8={'unitId':_0x5584d1[_0x1d5d0d(0x210)],'subUnitId':_0x5584d1[_0x1d5d0d(0x36d)],'selectedIds':_0x5584d1['selectedIds'],'focusedId':_0x5584d1['focusedId'],'pointer':_0x5584d1[_0x1d5d0d(0x223)],'memberId':_0x14f34b,'color':this[_0x1d5d0d(0x2bc)][_0x1d5d0d(0x373)](_0x14f34b),'name':(_0x407526==null?void 0x0:_0x407526['name'])??_0x14f34b};this['_commandService'][_0x1d5d0d(0x33a)](Y['id'],{'unitType':this[_0x1d5d0d(0x382)],'update':{'type':_0x1d5d0d(0x1fc),'state':_0x25b5a8}})[_0x1d5d0d(0x2d8)](()=>void 0x0);}[_0x14429d(0x1f0)](_0x69ef2a){const _0x2a9227=_0x14429d;this[_0x2a9227(0x236)][_0x2a9227(0x33a)](Y['id'],{'unitType':this[_0x2a9227(0x382)],'update':{'type':_0x2a9227(0x3b5),'unitId':this[_0x2a9227(0x210)],'memberId':_0x69ef2a}})['catch'](()=>void 0x0);}['_clearRemotePresences'](){const _0x1f9b11=_0x14429d;this[_0x1f9b11(0x236)][_0x1f9b11(0x33a)](Y['id'],{'unitType':this[_0x1f9b11(0x382)],'update':{'type':'clear','unitId':this[_0x1f9b11(0x210)]}})[_0x1f9b11(0x2d8)](()=>void 0x0);}};In=q([K(0x3,_0x439243(mn)),K(0x4,_0x439243(_0x529951)),K(0x5,_0x439243(_0xdaa582))],In);let Q=class extends _0x32162e{constructor(_0x245bfb,_0xf267e6,_0x4d0d32,_0x20a0e7){const _0x2266f9=_0x14429d;super(),this[_0x2266f9(0x3d9)]=_0x245bfb,this['_injector']=_0xf267e6,this[_0x2266f9(0x237)]=_0x4d0d32,this[_0x2266f9(0x3a2)]=_0x20a0e7,G(this,_0x2266f9(0x419),!0x1),G(this,_0x2266f9(0x1f9),new Map()),G(this,_0x2266f9(0x3a7),new Map()),G(this,'_adapterDisposables',new Map()),this[_0x2266f9(0x3b8)]();}[_0x14429d(0x381)](){const _0x2ef656=_0x14429d;this[_0x2ef656(0x419)]=!0x0,this[_0x2ef656(0x3f2)][_0x2ef656(0x333)](_0x4255e3=>_0x4255e3[_0x2ef656(0x381)]()),this[_0x2ef656(0x3f2)][_0x2ef656(0x1d7)](),this[_0x2ef656(0x1f9)]['forEach'](_0x2a2e92=>_0x2a2e92[_0x2ef656(0x381)]()),this[_0x2ef656(0x1f9)]['clear'](),this['_pendingEntities']['clear'](),super[_0x2ef656(0x381)]();}[_0x14429d(0x3b8)](){const _0x2da72c=_0x14429d;this['_adapterRegistry'][_0x2da72c(0x365)][_0x2da72c(0x203)](_0x54edaf(this[_0x2da72c(0x29b)]))['subscribe'](_0x4c2f20=>this['_syncAdapters'](_0x4c2f20));}[_0x14429d(0x1ec)](_0x515f56){const _0x1ab920=_0x14429d;let _0x1ddbc3=new Set(_0x515f56[_0x1ab920(0x249)](_0xc02e3d=>_0xc02e3d['unitType']));this[_0x1ab920(0x3f2)][_0x1ab920(0x333)]((_0x45b2ad,_0xbc937a)=>{const _0x3254d4=_0x1ab920;_0x1ddbc3[_0x3254d4(0x38f)](_0xbc937a)||(_0x45b2ad[_0x3254d4(0x381)](),this[_0x3254d4(0x3f2)][_0x3254d4(0x2a0)](_0xbc937a),this[_0x3254d4(0x2b1)](_0xbc937a));}),_0x515f56['forEach'](_0x2b611b=>{const _0x205012=_0x1ab920;this['_adapterDisposables'][_0x205012(0x38f)](_0x2b611b[_0x205012(0x382)])||this[_0x205012(0x234)](_0x2b611b);});}['_bindAdapter'](_0x11fdc9){const _0x34f542=_0x14429d;let _0x26524c=new _0x15436c();this[_0x34f542(0x3f2)][_0x34f542(0x1fc)](_0x11fdc9[_0x34f542(0x382)],_0x26524c),_0x26524c['add'](_0x11fdc9[_0x34f542(0x317)]()),this[_0x34f542(0x3d9)][_0x34f542(0x219)](_0x11fdc9[_0x34f542(0x382)])[_0x34f542(0x333)](_0x135068=>this[_0x34f542(0x24a)](_0x135068[_0x34f542(0x252)](),_0x11fdc9)['catch'](()=>void 0x0));let _0x4a50d7=this['_univerInstanceService'][_0x34f542(0x21a)](_0x11fdc9[_0x34f542(0x382)])[_0x34f542(0x21d)](({unit:_0x4a0ad2})=>this[_0x34f542(0x24a)](_0x4a0ad2[_0x34f542(0x252)](),_0x11fdc9)[_0x34f542(0x2d8)](()=>void 0x0));_0x26524c['add'](_0x1c7e61(()=>_0x4a50d7[_0x34f542(0x329)]()));let _0x267068=this['_univerInstanceService'][_0x34f542(0x3c9)](_0x11fdc9['unitType'])[_0x34f542(0x21d)](_0x3317fc=>this[_0x34f542(0x1cf)](_0x3317fc[_0x34f542(0x252)]()));_0x26524c[_0x34f542(0x264)](_0x1c7e61(()=>_0x267068[_0x34f542(0x329)]()));}async['_startEntity'](_0x5204bf,_0x478efb){const _0x329269=_0x14429d;if(this[_0x329269(0x1f9)][_0x329269(0x38f)](_0x5204bf)||this[_0x329269(0x3a7)][_0x329269(0x38f)](_0x5204bf))return;let _0x9e8967={};this[_0x329269(0x3a7)][_0x329269(0x1fc)](_0x5204bf,_0x9e8967);let _0x572d5d=await this['_collabSessionService']['requireSession'](_0x5204bf)['catch'](_0x5eda0f=>{const _0x455378=_0x329269;throw this['_pendingEntities'][_0x455378(0x341)](_0x5204bf)===_0x9e8967&&this[_0x455378(0x3a7)][_0x455378(0x2a0)](_0x5204bf),_0x5eda0f;});if(this[_0x329269(0x419)]||this['_pendingEntities'][_0x329269(0x341)](_0x5204bf)!==_0x9e8967||this[_0x329269(0x3a2)][_0x329269(0x341)](_0x478efb['unitType'])!==_0x478efb){this[_0x329269(0x3a7)][_0x329269(0x341)](_0x5204bf)===_0x9e8967&&this[_0x329269(0x3a7)]['delete'](_0x5204bf);return;}let _0x30ada7=this[_0x329269(0x34e)][_0x329269(0x3dc)](In,_0x5204bf,_0x572d5d,_0x478efb);_0x30ada7['init'](),this[_0x329269(0x3a7)][_0x329269(0x2a0)](_0x5204bf),this[_0x329269(0x1f9)]['set'](_0x5204bf,_0x30ada7);}[_0x14429d(0x1cf)](_0x202b60){const _0x35bfeb=_0x14429d;this['_pendingEntities'][_0x35bfeb(0x2a0)](_0x202b60);let _0x1ea4ac=this[_0x35bfeb(0x1f9)][_0x35bfeb(0x341)](_0x202b60);_0x1ea4ac&&(_0x1ea4ac[_0x35bfeb(0x381)](),this[_0x35bfeb(0x1f9)]['delete'](_0x202b60));}[_0x14429d(0x2b1)](_0x241cbc){const _0x54572a=_0x14429d;this['_univerInstanceService'][_0x54572a(0x219)](_0x241cbc)[_0x54572a(0x333)](_0x16a1e5=>this['_pendingEntities'][_0x54572a(0x2a0)](_0x16a1e5[_0x54572a(0x252)]())),Array[_0x54572a(0x2d2)](this[_0x54572a(0x1f9)][_0x54572a(0x3ce)]())[_0x54572a(0x333)](([_0x473094,_0x3a152e])=>{const _0x504543=_0x54572a;_0x3a152e[_0x504543(0x382)]===_0x241cbc&&this[_0x504543(0x1cf)](_0x473094);});}};Q=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x2c4c1e)),K(0x2,_0x439243(_0x2b2a41)),K(0x3,_0x439243(_0x2873f9))],Q);let Ln=class extends _0x4af7ce{constructor(_0x478af2,_0x52c5dc,_0x33f156,_0x1a26a6,_0x26f42d,_0x401a86){const _0x4dc92b=_0x14429d;super(),this[_0x4dc92b(0x27d)]=_0x478af2,this[_0x4dc92b(0x33e)]=_0x52c5dc,this[_0x4dc92b(0x383)]=_0x33f156,this['_messageService']=_0x1a26a6,this['_notificationService']=_0x26f42d,this[_0x4dc92b(0x221)]=_0x401a86,G(this,_0x4dc92b(0x25e),null),G(this,'_retryingConflictCacheUnitIDs',new Set()),this[_0x4dc92b(0x320)](),this[_0x4dc92b(0x2cb)]();}['dispose'](){const _0x22a08f=_0x14429d;var _0x3d608c;(_0x3d608c=this['_conflictNotification'])==null||_0x3d608c['dispose'](),this[_0x22a08f(0x25e)]=null,super[_0x22a08f(0x381)]();}[_0x14429d(0x320)](){const _0x24d486=_0x14429d;this[_0x24d486(0x406)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x2fc291=_0x24d486;if(this['_localCacheService'][_0x2fc291(0x22c)][_0x2fc291(0x241)])return this[_0x2fc291(0x221)]['t'](_0x2fc291(0x32b));}));}[_0x14429d(0x2cb)](){const _0x100dec=_0x14429d;this[_0x100dec(0x406)](this[_0x100dec(0x383)]['event$'][_0x100dec(0x21d)](_0x47142e=>{const _0x2d7664=_0x100dec;_0x47142e['id']===_0x797de9[_0x2d7664(0x39b)]&&this[_0x2d7664(0x439)][_0x2d7664(0x23e)]({'type':_0x3e9b02[_0x2d7664(0x332)],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x392))}),_0x47142e['id']===_0x797de9[_0x2d7664(0x21e)]&&this[_0x2d7664(0x439)][_0x2d7664(0x23e)]({'type':_0x3e9b02['Warning'],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x28b))}),_0x47142e['id']===_0x797de9['PERMISSION_DENIED']&&this[_0x2d7664(0x2b3)]({'title':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x400)),'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x3e7)),'type':_0x2d7664(0x356),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x1de)),'onClick':_0x216a45=>{const _0x124559=_0x2d7664;_0x216a45['preventDefault'](),window[_0x124559(0x35c)][_0x124559(0x21b)]();}}}),_0x47142e['id']===_0x797de9[_0x2d7664(0x3cc)]&&this[_0x2d7664(0x2e9)](),_0x47142e['id']===_0x797de9[_0x2d7664(0x2b8)]&&_0x47142e[_0x2d7664(0x369)]&&this[_0x2d7664(0x28d)](_0x47142e[_0x2d7664(0x369)]),_0x47142e['id']===_0x797de9[_0x2d7664(0x390)]&&this['_replaceConflictNotification']({'title':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x30f)),'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x415)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x2d7664(0x1de)),'onClick':_0x3797ea=>{const _0x3bc090=_0x2d7664;_0x3797ea[_0x3bc090(0x372)](),window[_0x3bc090(0x35c)][_0x3bc090(0x21b)]();}}}),_0x47142e['id']===_0x797de9[_0x2d7664(0x3f4)]&&this[_0x2d7664(0x439)]['show']({'type':_0x3e9b02[_0x2d7664(0x332)],'content':this[_0x2d7664(0x221)]['t'](_0x47142e['data']||'')}),_0x47142e['id']===_0x797de9[_0x2d7664(0x368)]&&this[_0x2d7664(0x439)]['show']({'type':_0x3e9b02['Warning'],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x402))}),_0x47142e['id']===_0x797de9[_0x2d7664(0x3b3)]&&this[_0x2d7664(0x439)]['show']({'type':_0x3e9b02[_0x2d7664(0x41f)],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x380))}),_0x47142e['id']===_0x797de9[_0x2d7664(0x2ff)]&&this[_0x2d7664(0x439)][_0x2d7664(0x23e)]({'type':_0x3e9b02[_0x2d7664(0x41f)],'content':this[_0x2d7664(0x221)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}[_0x14429d(0x2e9)](){const _0x20830b=_0x14429d;this[_0x20830b(0x2b3)]({'title':this[_0x20830b(0x221)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x20830b(0x221)]['t'](_0x20830b(0x2c0)),'type':_0x20830b(0x1dd),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x14429d(0x28d)](_0x1c41e0){const _0x10f24b=_0x14429d;this['_replaceConflictNotification']({'title':this['_localeService']['t'](_0x10f24b(0x30f)),'content':this['_localeService']['t']('collaboration-client-ui.conflict.clearFailed'),'type':_0x10f24b(0x356),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x10f24b(0x221)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x304b07=>{const _0x91d486=_0x10f24b;_0x304b07[_0x91d486(0x372)](),this['_retryConflictCacheClear'](_0x1c41e0);}}});}[_0x14429d(0x294)](_0x376ead){const _0x2df03f=_0x14429d;this[_0x2df03f(0x3b2)]['has'](_0x376ead)||(this['_retryingConflictCacheUnitIDs'][_0x2df03f(0x264)](_0x376ead),this['_showConflictProcessingNotification'](),this[_0x2df03f(0x33e)][_0x2df03f(0x27b)](_0x376ead)[_0x2df03f(0x238)](()=>window[_0x2df03f(0x35c)][_0x2df03f(0x21b)]())[_0x2df03f(0x2d8)](()=>this[_0x2df03f(0x28d)](_0x376ead))[_0x2df03f(0x3e2)](()=>this['_retryingConflictCacheUnitIDs'][_0x2df03f(0x2a0)](_0x376ead)));}[_0x14429d(0x2b3)](_0x25511c){const _0x3cab6a=_0x14429d;var _0x39293c;(_0x39293c=this[_0x3cab6a(0x25e)])==null||_0x39293c[_0x3cab6a(0x381)](),this[_0x3cab6a(0x25e)]=this['_notificationService'][_0x3cab6a(0x23e)](_0x25511c);}};Ln=q([K(0x0,_0x333f87),K(0x1,_0x4ed906),K(0x2,_0x439243(_0x57af61)),K(0x3,_0x42a5ed),K(0x4,_0x279df2),K(0x5,_0x439243(_0x2d982f))],Ln);function _0x2133(){const _0x3edb17=['RemoveColCommandId','collabCursorState$','_syncPresenceStatusComponents','_getSaveTimeout','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','_context','_isBlinkVisible','AWAITING','collaboration-client-ui.conflict.title','_drawRectRange','tooltipKey','snapshot-loading-','state','369AjYoXI','_getMergeRange','_textBubble','activate','kind','getSkeleton','beginPath','1.0.1','_blockProgressWatches','_trackActiveSaveTask','_highlight','_getScale','_setupBeforeClosingHandler','rgba','polite','executionId','_presenceAdapterRegistry','_labelHorizontalPosition','onCommandExecuted','_registerRenderDependencies','clearRemotePresences','unsubscribe','180XawXKe','collaboration-client-ui.collaboration.offline-data-not-saved','_collabCursorState$','unload','decorate','getCurrentUnitOfType','value','_urlService','Warning','forEach','fill','getCollabCursors$','allSettled','selections','/universer-api/frontend/logs','blue.400','executeCommand','timedOut','m2Prime','statusUIPart','_localCacheService','number','_isVisibleUnit','get','storage','OFFLINE','_stopBlinking','setStateCache','_memberID','_handleJoinEvent','offsetY','_refreshCollabCursors','ranges','disableLocalCache','slice','_highlightSecond','_injector','spin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pushState','save','yellow.400','_initCommandExecutedListener','_onCursorDelete','error','_initWindowErrorListener','_presenceStatusRegistrations','_updateLocalCursor','LOADING_BLOCKS','override','location','now','univer-text-orange-500','_createSocketURL','newValue','replace','next','_blinkTimer','Unknown\x20user','adapters$','_handleCursorUpdate','removeEventListener','SOCKET_FAILED_RETRY','unitID','setItem','button','endColumn','subUnitId','span','_cachedData','_scene','message','preventDefault','assignAColorForMemberID','getMergeData','source','_collaborationSessionService','transformMutationsWithChangeset','indicator','top','_pointerMoveDisposable','_initUnhandledRejectionListener','collab-text-range-','\x20-\x20','_anchor','addEventListener','collaboration-client-ui.session.connection-failed','dispose','unitType','_collaborationUIEventService','makeDirty','updateOfflineData','m1Prime','stage','_monkeyPatchLogService','collaboration-client-ui.collabStatus.notCollab','loadOfflineData','moveTo','params','href','7nTiNOw','has','CONFLICT','InsertColCommandId','collaboration-client-ui.collaboration.single-unit.warning','getColorFromTheme','_logService','_startDocCollabCursor','font','activeSheet$','_renderManagerService','_scheduleClearOtherTimer','onRendered','OTHER_CLIENT_EDITING','endRow','transformIMECache','dark:focus:!univer-ring-offset-gray-800','univer-text-red-500','_drawAnchor','collaboration-client-ui.collabStatus.fetchMiss','_adapterRegistry','_watchBlockProgress','mutations','length','getCoordRelativeToViewport','_pendingEntities','urlChange$','addClipboardHook','getUndoRedoMutationParamsCache','_anchorDot','onPointerMove$','_collabCursorController','timeoutId','colorClass','_initUserListener','unhandledrejection','_retryingConflictCacheUnitIDs','SOCKET_FAILED','bottom','remove','doc.mutation.rich-text-editing','getUnitStatus$','_init','_initPresenceStatusComponents','startsWith','result','lineno','_getSessionTicket','hide','loadUnit','_localStorageService','registerRefRange','getSheetBySheetId','_assignedColors','\x20at\x20','_refRangeService','setOffsetY','rgba(','_hideTimer','getTypeOfUnitDisposed$','_cursorShapes','ONLINE','CONFLICT_PROCESSING','_removeCollabCursors','entries','wsSessionTicketUrl','jiqing.500','values','_onCursorUpdate','_disposed','drawWith','ERROR','_offsetY','left','150552Chbwfn','_univerInstanceService','labelHorizontalPosition','canRenderAnchor','createInstance','_getSheetObject','_hovered','NO_OTHER_CLIENTS_EDITING','_dataLoaderService','VIEW_MAIN','finally','fillStyle','replaceSelectionInfoWithoutRefresh','flatMap','type','collaboration-client-ui.permission.content','_blinkIntervalTimer','_clearOtherTimers','215572wyNIam','requireSession','clearTimeout','debug','roomMembers$','width','_saveCache','_httpService','_adapterDisposables','_registerDependencies','JOIN_ROOM_FAILED','_configService','symbol','bold\x2013px\x20Arial,\x20sans-serif','true','text','_syncEditingCollabCursorService','_send','height','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_setupSubUnitSync','range','collaboration-client-ui.permission.title','enableFrontendLog','collaboration-client-ui.session.will-retry','collab-text-anchor-','_cursor','_colorIndex','disposeWithMe','InsertRowCommandId','[LogService\x20Error]:\x20','hovered','_name','univer-flex\x20univer-items-center\x20univer-justify-center','_activeSaveTaskMap','_docSkeleton','getRenderUnitById','roomMembers','_clearTimeoutState','highlight','status','pageType','getItem','collaboration-client-ui.conflict.content','_registerPresenceStatusComponent','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_heartbeatTimer','_isDisposed','red.300','exhaustSavingTask','_initEntityListener','isFinite','_memberService','Error','startColumn','_collaborationController','_docSkeletonManagerService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','update','isEditing','deepClone','getParam','sessionStatus$','getActiveRange','options','_eventUnsubscribe','sessionTicket','selectedIds','USERS_LEAVE','AWAITING_WITH_PENDING','onPointerLeave$','_shapes','max','primary','_id','clickable','purple.300','getCurrentSkeleton','getScrollXYInfoByViewport','_messageService','_removeClearOtherTimer','getSheetId','tableId','eventID','contains','_clearBlockProgressWatch','memberID','_roomMembers$','_timeoutState$','invokeId','data','small','editingUnit','_disposeEntity','findNodePositionByCharIndex','_drawTextRange','pluginName','transformRemoteChangeset','_updateURLWithCurrentState','_docTransformSelectionsService','getDocRanges','clear','_showText','UNIVER_SHEET','cursorInfo$','restore','_toggleOffline','loading','collaboration-client-ui.snapshotLoading.refresh','getAncestorScale','NOT_COLLAB','reconnect','_transformPreviousActiveRange','column','removeRemotePresence','unshift','asObservable','columnIndex','UNIVER_DOC','div','_doCreateSocket','runId','_syncAdapters','getUnit','alert','_initDependencies','_removeRemotePresence','_entityInit$','transformStateCache','InsertRangeMoveDownCommandId','_getAnchorBounding','black','_themeService','_initStatusListener','send','_entities','univer-border-none\x20univer-bg-transparent','setTimeout','set','setAlpha','split','canRenderSelection','triggerDblclick','evenodd','icon','pipe','addObject','setActiveRange','uni.network.url-service','subscribeEvent','getCurrentTypeOfUnit$','_docTransformStateCacheService','fillText','_handleLeaveEvent','_scheduleHeartbeat','sheetId','startRow','_render','unitId','registerRenderModule','collaboration-client-ui.operation.update-remote-unit-presence','GLOBAL','right','_lastPointer','socket$','key','backgroundColor','getAllUnitsForType','getTypeOfUnitAdded$','reload','filter','subscribe','CLOSE_ROOM','memberId','_instanceService','_localeService','search','pointer','_online','[RemoteUniscriptService]:\x20no\x20focused\x20unit','strokeWidth','_session','defineProperty','getActiveSheet','getRangePointData','_getLighterColor','saveTaskMap','pageIndex','getCollabEntity$','_disabled','FromArray','addObjects','_uploadLog','getOwnPropertyDescriptor','_bindAdapter','_handleHeartbeatEvent','_commandService','_collabSessionService','then','SYNCED','setUndoRedoMutationParamsCache','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','_handleHover','iterator','show','call','collaboration-client-ui.collabClient.tooltip.reconnect','size','post','resize','_saveTaskMap','syncEditingCollabCursor','collaboration-client-ui.collabStatus.syncing','_transformService','univer-text-blue-500','map','_startEntity','_document','highlightSecond','showText','complete','_updateSubUnitFromURLParams','_uiPartsService','getViewport','getUnitId','currentTheme$','getFocusedUnit','runOnServer','PENDING','tableSource','content','with','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','getConfig','[Window\x20Error]:\x20','onPointerEnter$','_conflictNotification','Loading','_revisionService','rgb','unit','_latestStates','add','default','undoState','univer-transition-all\x20univer-duration-200','_docClipboardService','setConfig','object','setShapeProps','static','transformMutation','loadedBlocks','stringify','UPDATE_CURSOR','init','event$','_onRefRangeChange','focusedId','clearInterval','registerComponent','saveOfflineData','getStateCache','RECT','segmentPage','clearOfflineData','i18nKey','_beforeCloseService','saveImage','name','univer-m-0\x20univer-p-0','[CollaborationDataLoaderController]','_docStateChangeManagerService','popstate','_unitStatus','_sheetSkeletonManagerService','COMPLETE','some','_config','_unitOnClients','stack','collaboration-client-ui.collaboration.closeRoom','_adapter','_showConflictCacheClearFailedNotification','toRgbString','_range','all','getMemberID','1269136tNAygD','engine','_retryConflictCacheClear','replaceState','853148plqWNc','TEXT','getCurrentSelections','isActive','_sendLocalPresence','dispose$','subunit','_draw','_selfUnitIDs','history','delete','_startBlinking',',\x200.2)','RemoveRowCommandId','getUnhiddenWorksheets','totalBlocks','state$','parseInt','currentSkeleton$','HEADER','presenceKind','_labelPosition','origin','measureText','redoState','arc','_docSyncEditingCollabCursorService','_disposeEntitiesForType','_initResize','_replaceConflictNotification','columnGroupId','reason','prepareTransformSelections','removeItem','CONFLICT_CACHE_CLEAR_FAILED','disposeUnit','_transformUndoRedoStack','_transformHistoryAndStateStack','_colorAssignService','_docTransformIMECacheService','lineTo','textRanges','collaboration-client-ui.conflict.processing','_cursors','getCellIndexByOffset','48DXIOPq','40278OiSJcI','setInterval','_docSelectionManagerService','getSelectionInfo','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_handleEvent','_initStatusComponent','_initEvent','_clearRemotePresences','1672088EBjsja','parse','collaboration-client-ui.collabStatus.conflict','shareInterval','...','from','_updateMessage','InsertRangeMoveRightCommandId','OTHER_CLIENTS_EDITING','min','_hover','catch','registerCommand','_status$','#FFF','_initialized','_cursorInfo$','@univerjs-pro/collaboration-client-ui','string','function','_imageIoService','closePath','univer-text-gray-400','row','_backgroundColor','snapshot-loading-timeout','transformByState','onStarting','_showConflictProcessingNotification','toISOString','getValue','toString','_startSheetCollabCursor','collaboration-client-ui.snapshotLoading.timeout','cursorInfo','sheetID','fillRule','_toggleOnline','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_updateCollabCursors','_messageIds','_ensureSubject','createSocket','/run/','searchParams','isArray','3Sjtbmg','22290fdkXau','univer-appearance-none','status$','SUBMIT_CHANGESET_TIMEOUT','removeParam','timeoutState$','color','getMember','selection','push','_color'];_0x2133=function(){return _0x3edb17;};return _0x2133();}const Rn=_0x4ed343(_0x14429d(0x206));let zn=class extends _0x32162e{constructor(_0x3c463f,_0x17d4e1,_0x2cb85a,_0x2dfece){const _0xc190db=_0x14429d;super(),this[_0xc190db(0x331)]=_0x3c463f,this['_logService']=_0x17d4e1,this['_commandService']=_0x2cb85a,this[_0xc190db(0x3e0)]=_0x2dfece,this['_init']()[_0xc190db(0x2d8)](_0x46425e=>this['_logService'][_0xc190db(0x356)]('[CollaborationDataLoaderController]',_0x46425e));}async[_0x14429d(0x3b8)](){const _0xab14ed=_0x14429d;let _0x4f2f9c=this[_0xab14ed(0x331)][_0xab14ed(0x427)]('unit'),_0x8e47e3=this[_0xab14ed(0x331)][_0xab14ed(0x427)](_0xab14ed(0x3e6)),_0x28080a=this['_urlService'][_0xab14ed(0x427)](_0xab14ed(0x29c));if(!_0x4f2f9c||!_0x8e47e3){this[_0xab14ed(0x394)][_0xab14ed(0x3ed)](_0xab14ed(0x281),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x5af270=await this['_dataLoaderService'][_0xab14ed(0x3bf)](_0x4f2f9c,Number(_0x8e47e3),_0x28080a);this[_0xab14ed(0x3d3)]||_0x5af270&&_0x5af270 instanceof _0xc04914&&await this[_0xab14ed(0x3fe)](_0x5af270);}async[_0x14429d(0x3fe)](_0x79c135){const _0x35010f=_0x14429d;await this['_updateSubUnitFromURLParams'](_0x79c135,!0x0),!this[_0x35010f(0x3d3)]&&(_0x79c135[_0x35010f(0x397)][_0x35010f(0x203)](_0x54edaf(this[_0x35010f(0x29b)]))[_0x35010f(0x21d)](_0xa85152=>{const _0x4436a1=_0x35010f;_0xa85152&&this[_0x4436a1(0x1d4)](_0xa85152);}),this[_0x35010f(0x331)]['urlChange$'][_0x35010f(0x203)](_0x54edaf(this['dispose$']))[_0x35010f(0x21d)](()=>{const _0x54ba42=_0x35010f;this[_0x54ba42(0x24f)](_0x79c135)[_0x54ba42(0x2d8)](_0x12a3bd=>this['_logService']['error'](_0x54ba42(0x281),_0x12a3bd));}));}[_0x14429d(0x1d4)](_0x1eb55d,_0x553350=!0x1){const _0x279736=_0x14429d;let _0x57df06=this['_urlService']['getParam']('subunit');_0x1eb55d[_0x279736(0x43b)]()!==_0x57df06&&this['_urlService']['setParam'](_0x279736(0x29c),_0x1eb55d[_0x279736(0x43b)](),_0x553350);}async['_updateSubUnitFromURLParams'](_0x1d56a5,_0x3d1140=!0x1){const _0x173e41=_0x14429d;var _0x5cdfb4;let _0x27f781=this[_0x173e41(0x331)][_0x173e41(0x427)](_0x173e41(0x29c));if(!_0x27f781||!_0x1d56a5[_0x173e41(0x3c2)](_0x27f781)){let _0x1f68f4=_0x1d56a5[_0x173e41(0x2a4)]()[0x0],_0x3af0d5=_0x1d56a5['getSheetBySheetId'](_0x1f68f4);if(!_0x3af0d5||(this[_0x173e41(0x1d4)](_0x3af0d5,!0x0),this[_0x173e41(0x3d3)]))return;await this[_0x173e41(0x236)][_0x173e41(0x33a)](_0x37f956['id'],{'unitId':_0x1d56a5[_0x173e41(0x252)](),'subUnitId':_0x1f68f4});return;}(_0x3d1140||((_0x5cdfb4=_0x1d56a5[_0x173e41(0x229)]())==null?void 0x0:_0x5cdfb4['getSheetId']())!==_0x27f781)&&await this['_commandService'][_0x173e41(0x33a)](_0x37f956['id'],{'unitId':_0x1d56a5[_0x173e41(0x252)](),'subUnitId':_0x27f781});}};zn=q([K(0x0,Rn),K(0x1,_0x2a6bbd),K(0x2,_0xdaa582),K(0x3,_0x439243(_0x5c5342))],zn);let Bn=class{constructor(_0x3e8c9d,_0x425e93){const _0x3f0ffe=_0x14429d;this[_0x3f0ffe(0x247)]=_0x3e8c9d,this[_0x3f0ffe(0x398)]=_0x425e93;}['transformIMECache'](_0x164f10){const _0xec2e2c=_0x14429d;this['_transformUndoRedoStack'](_0x164f10),this[_0xec2e2c(0x1e2)](_0x164f10);}[_0x14429d(0x1d3)](_0x3a0758){const _0x583e1d=_0x14429d;let {unitID:_0x5b89da}=_0x3a0758,{redoCache:_0x5cd1f5}=this[_0x583e1d(0x398)][_0x583e1d(0x40e)](_0x5b89da)[_0x583e1d(0x259)](_0x5e2811)[_0x583e1d(0x3aa)]();if(_0x5cd1f5[_0x583e1d(0x3a5)]===0x0)return _0x3a0758;let _0x465ff7=_0x59eb5c['deepClone'](_0x3a0758[_0x583e1d(0x3a4)][0x0]);for(let _0x495d62=0x0;_0x495d62<_0x5cd1f5['length'];_0x495d62++){let _0x10411a={'id':'doc.mutation.rich-text-editing','params':{..._0x5cd1f5[_0x495d62]}},_0x585f6c=this[_0x583e1d(0x247)][_0x583e1d(0x26d)](_0x465ff7,_0x10411a,!0x1);if(_0x51b014(_0x585f6c))throw _0x585f6c[_0x583e1d(0x356)];_0x465ff7=_0x585f6c['m1Prime'];}return{..._0x59eb5c[_0x583e1d(0x426)](_0x3a0758),'mutations':[_0x465ff7]};}[_0x14429d(0x2ba)](_0x5c32fa){const _0x5a2162=_0x14429d;let {unitID:_0x3c6364}=_0x5c32fa,_0x5752b5=this[_0x5a2162(0x398)]['getRenderUnitById'](_0x3c6364)['with'](_0x5e2811),{undoCache:_0x3a682f,redoCache:_0x297c09}=_0x5752b5['getUndoRedoMutationParamsCache']();if(_0x3a682f[_0x5a2162(0x3a5)]===0x0||_0x297c09[_0x5a2162(0x3a5)]===0x0)return;let _0x21d6f6=[],_0x225694=[],_0x214786=_0x59eb5c[_0x5a2162(0x426)](_0x5c32fa[_0x5a2162(0x3a4)][0x0]),_0x262809=_0x59eb5c['deepClone'](_0x5c32fa[_0x5a2162(0x3a4)][0x0]);for(let _0x3923e5=_0x3a682f[_0x5a2162(0x3a5)]-0x1;_0x3923e5>=0x0;_0x3923e5--){let _0x5f216d={'id':_0x5a2162(0x3b6),'params':{..._0x3a682f[_0x3923e5]}},_0x467eb2={'id':'doc.mutation.rich-text-editing','params':{..._0x297c09[_0x3923e5]}},_0x17eb4c=this[_0x5a2162(0x247)][_0x5a2162(0x26d)](_0x214786,_0x5f216d,!0x1),_0x4b0bef=this[_0x5a2162(0x247)][_0x5a2162(0x26d)](_0x262809,_0x467eb2,!0x1);if(_0x51b014(_0x17eb4c))throw _0x17eb4c[_0x5a2162(0x356)];if(_0x51b014(_0x4b0bef))throw _0x4b0bef[_0x5a2162(0x356)];_0x21d6f6[_0x5a2162(0x1e5)](_0x17eb4c[_0x5a2162(0x33c)][_0x5a2162(0x38c)]),_0x225694[_0x5a2162(0x1e5)](_0x4b0bef['m2Prime'][_0x5a2162(0x38c)]),_0x214786=_0x17eb4c['m1Prime'],_0x262809=_0x4b0bef[_0x5a2162(0x386)];}_0x5752b5[_0x5a2162(0x23a)]({'undoCache':_0x21d6f6,'redoCache':_0x225694});}[_0x14429d(0x1e2)](_0x59ab37){const _0x506b19=_0x14429d;let {unitID:_0x5725f5}=_0x59ab37,_0x59a58b=this[_0x506b19(0x398)]['getRenderUnitById'](_0x5725f5)[_0x506b19(0x259)](_0x5e2811),_0x18cca3=_0x59a58b[_0x506b19(0x429)]();if(_0x18cca3==null)return;let _0x69d638=[{'id':_0x506b19(0x3b6),'params':{'unitId':_0x59ab37[_0x506b19(0x369)],'actions':null,'textRanges':[_0x18cca3]}}],_0x4d317c=this[_0x506b19(0x247)][_0x506b19(0x377)](_0x59ab37,_0x69d638);if(!_0x5da30d(_0x4d317c))throw _0x4d317c[_0x506b19(0x356)];let _0x1530d5=_0x4d317c[_0x506b19(0x33c)][0x0][_0x506b19(0x38c)][_0x506b19(0x2bf)];Array[_0x506b19(0x2fa)](_0x1530d5)&&_0x1530d5[_0x506b19(0x3a5)]&&_0x59a58b[_0x506b19(0x205)](_0x1530d5[0x0]);}};Bn=q([K(0x0,_0x3e0970),K(0x1,_0x3ddfbd)],Bn);let Vn=class{constructor(_0x218190,_0xe408f3,_0x1a03ef){const _0x18dcb8=_0x14429d;this[_0x18dcb8(0x34e)]=_0x218190,this[_0x18dcb8(0x247)]=_0xe408f3,this[_0x18dcb8(0x282)]=_0x1a03ef;}['transformStateCache'](_0x31e89a){const _0x488447=_0x14429d;this[_0x488447(0x2bb)](_0x31e89a);}[_0x14429d(0x1d3)](_0x49eadf){const _0x24aa15=_0x14429d;let {unitID:_0xcb539a}=_0x49eadf,{collaboration:_0x2402c1}=this[_0x24aa15(0x282)][_0x24aa15(0x278)](_0xcb539a);if(_0x2402c1[_0x24aa15(0x3a5)]===0x0)return _0x49eadf;let _0x3d1490=_0x59eb5c[_0x24aa15(0x426)](_0x49eadf[_0x24aa15(0x3a4)][0x0]);for(let _0x35deb1=0x0;_0x35deb1<_0x2402c1[_0x24aa15(0x3a5)];_0x35deb1++){let _0x302cf4={'id':_0x24aa15(0x3b6),'params':{'unitId':_0x2402c1[_0x35deb1][_0x24aa15(0x210)],..._0x2402c1[_0x35deb1][_0x24aa15(0x2ae)]}},_0x30d6bf=this[_0x24aa15(0x247)][_0x24aa15(0x26d)](_0x3d1490,_0x302cf4,!0x1);if(_0x51b014(_0x30d6bf))throw _0x30d6bf[_0x24aa15(0x356)];_0x3d1490=_0x30d6bf[_0x24aa15(0x386)];}return{..._0x59eb5c['deepClone'](_0x49eadf),'mutations':[_0x3d1490]};}[_0x14429d(0x2bb)](_0x81d4ae){const _0x3ccc1f=_0x14429d;let {unitID:_0x2892c9}=_0x81d4ae,{history:_0x2c0b2f,collaboration:_0x46be5e}=this[_0x3ccc1f(0x282)][_0x3ccc1f(0x278)](_0x2892c9);if(_0x2c0b2f[_0x3ccc1f(0x3a5)]===0x0&&_0x46be5e[_0x3ccc1f(0x3a5)]===0x0)return;let _0x2e17e4=[],_0x29f09f=[],_0x40abb1=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]),_0x100036=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]);for(let _0x1dcef3=_0x2c0b2f[_0x3ccc1f(0x3a5)]-0x1;_0x1dcef3>=0x0;_0x1dcef3--){let _0x3f1168={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x2c0b2f[_0x1dcef3]['unitId'],..._0x2c0b2f[_0x1dcef3][_0x3ccc1f(0x266)]}},_0x528575={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x2c0b2f[_0x1dcef3][_0x3ccc1f(0x210)],..._0x2c0b2f[_0x1dcef3][_0x3ccc1f(0x2ae)]}},_0x5bd623=this[_0x3ccc1f(0x247)][_0x3ccc1f(0x26d)](_0x40abb1,_0x3f1168,!0x1),_0x325e5c=this[_0x3ccc1f(0x247)]['transformMutation'](_0x100036,_0x528575,!0x1);if(_0x51b014(_0x5bd623))throw _0x5bd623[_0x3ccc1f(0x356)];if(_0x51b014(_0x325e5c))throw _0x325e5c[_0x3ccc1f(0x356)];_0x2e17e4[_0x3ccc1f(0x1e5)]({..._0x2c0b2f[_0x1dcef3],'undoState':_0x5bd623[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)],'redoState':_0x325e5c[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)]}),_0x40abb1=_0x5bd623['m1Prime'],_0x100036=_0x325e5c['m1Prime'];}_0x40abb1=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]),_0x100036=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]);for(let _0x3f22b4=_0x46be5e['length']-0x1;_0x3f22b4>=0x0;_0x3f22b4--){let _0x597da0={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x46be5e[_0x3f22b4][_0x3ccc1f(0x210)],..._0x46be5e[_0x3f22b4][_0x3ccc1f(0x266)]}},_0x303a85={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x46be5e[_0x3f22b4][_0x3ccc1f(0x210)],..._0x46be5e[_0x3f22b4][_0x3ccc1f(0x2ae)]}},_0x1c1d2d=this[_0x3ccc1f(0x247)][_0x3ccc1f(0x26d)](_0x40abb1,_0x597da0,!0x1),_0x4db935=this[_0x3ccc1f(0x247)][_0x3ccc1f(0x26d)](_0x100036,_0x303a85,!0x1);if(_0x51b014(_0x1c1d2d))throw _0x1c1d2d['error'];if(_0x51b014(_0x4db935))throw _0x4db935[_0x3ccc1f(0x356)];_0x29f09f[_0x3ccc1f(0x1e5)]({..._0x46be5e[_0x3f22b4],'undoState':_0x1c1d2d[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)],'redoState':_0x4db935[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)]}),_0x40abb1=_0x1c1d2d[_0x3ccc1f(0x386)],_0x100036=_0x4db935[_0x3ccc1f(0x386)];}this[_0x3ccc1f(0x282)][_0x3ccc1f(0x345)](_0x2892c9,{'history':_0x2e17e4,'collaboration':_0x29f09f});}};Vn=q([K(0x0,_0x439243(_0x2c4c1e)),K(0x1,_0x3e0970),K(0x2,_0x439243(_0x12942b))],Vn);let Hn=class{constructor(_0x387f58,_0x522088){const _0xfc9809=_0x14429d;this['_docSelectionManagerService']=_0x387f58,this[_0xfc9809(0x247)]=_0x522088;}[_0x14429d(0x2b6)](_0x25cce5){const _0x24e5ef=_0x14429d;var _0x5e630f;let _0x1c1857=this[_0x24e5ef(0x2c6)]['getDocRanges']()??[],_0x971fe2=this[_0x24e5ef(0x2c6)][_0x24e5ef(0x2c7)]();if(_0x1c1857[_0x24e5ef(0x3a5)]===0x0||_0x971fe2==null)return null;let _0x3d18d0=_0x25cce5[_0x24e5ef(0x369)],_0x3beed9=[{'id':_0x24e5ef(0x3b6),'params':{'unitId':_0x3d18d0,'actions':null,'textRanges':_0x1c1857}}],_0x59dd6d=this[_0x24e5ef(0x247)][_0x24e5ef(0x377)](_0x25cce5,_0x3beed9);if(!_0x5da30d(_0x59dd6d))throw _0x59dd6d[_0x24e5ef(0x356)];let _0x5ba1ad=(_0x5e630f=_0x59dd6d[_0x24e5ef(0x33c)][0x0])==null?void 0x0:_0x5e630f['params'],_0x23c04e=_0x5ba1ad&&typeof _0x5ba1ad==_0x24e5ef(0x26a)&&_0x24e5ef(0x2bf)in _0x5ba1ad?_0x5ba1ad[_0x24e5ef(0x2bf)]:null;if(!Gn(_0x23c04e))return null;let _0x4d4d82=Un(_0x25cce5['mutations'][_0x24e5ef(0x287)](_0xd27efe=>Kn(_0xd27efe[_0x24e5ef(0x38c)]))?_0x23c04e['filter'](_0x325810=>!('tableId'in _0x325810)):_0x23c04e,{..._0x971fe2,'options':_0x971fe2[_0x24e5ef(0x42a)]?{..._0x971fe2['options'],'wholeDocument':!0x1}:void 0x0}),_0x5a730f={'unitId':_0x3d18d0,'subUnitId':_0x3d18d0};this[_0x24e5ef(0x2c6)][_0x24e5ef(0x3e4)](_0x4d4d82,_0x5a730f);let _0x3cd780=!0x0;return{'commit':()=>{_0x3cd780=!0x1;},'rollback':()=>{_0x3cd780&&(_0x3cd780=!0x1,this['_docSelectionManagerService']['replaceSelectionInfoWithoutRefresh'](_0x971fe2,_0x5a730f));}};}};Hn=q([K(0x0,_0x439243(_0x25ff25)),K(0x1,_0x3e0970)],Hn);function Un(_0x35f42c,_0x224551){const _0x1f0377=_0x14429d;let _0x37c632=[],_0x3680af=[];for(let _0x59df0d of _0x35f42c)Wn(_0x59df0d)?_0x3680af[_0x1f0377(0x305)](_0x59df0d):_0x37c632[_0x1f0377(0x305)](_0x59df0d);return{..._0x224551,'textRanges':_0x37c632,'rectRanges':_0x3680af};}function Wn(_0xcf643b){const _0x49229c=_0x14429d;return _0x49229c(0x43c)in _0xcf643b;}function Gn(_0x275aa8){const _0x59c977=_0x14429d;return Array[_0x59c977(0x2fa)](_0x275aa8)&&_0x275aa8['every'](_0x117063=>typeof _0x117063==_0x59c977(0x26a)&&!!_0x117063&&'startOffset'in _0x117063&&'endOffset'in _0x117063);}function Kn(_0x3fe14d){const _0x413d91=_0x14429d;return _0x3fe14d===_0x413d91(0x257)?!0x0:Array['isArray'](_0x3fe14d)?_0x3fe14d[_0x413d91(0x287)](_0x4d626e=>Kn(_0x4d626e)):!_0x3fe14d||typeof _0x3fe14d!=_0x413d91(0x26a)?!0x1:Object[_0x413d91(0x3d1)](_0x3fe14d)[_0x413d91(0x287)](_0x2be097=>Kn(_0x2be097));}let qn=class extends _0x4af7ce{constructor(_0x5869d8,_0x2fc95f,_0xca1ed2,_0x28e8cc,_0x4c18d8,_0x24d783,_0x2bbc96){const _0x5fab1a=_0x14429d;super(),this[_0x5fab1a(0x421)]=_0x5869d8,this[_0x5fab1a(0x2bd)]=_0x2fc95f,this[_0x5fab1a(0x209)]=_0xca1ed2,this['_docTransformSelectionsService']=_0x28e8cc,this[_0x5fab1a(0x2b0)]=_0x4c18d8,this[_0x5fab1a(0x439)]=_0x24d783,this[_0x5fab1a(0x221)]=_0x2bbc96,G(this,_0x5fab1a(0x2da),new _0x4a802e(_0x22cbf4[_0x5fab1a(0x1e0)])),this[_0x5fab1a(0x41c)]();}[_0x14429d(0x41c)](){const _0x1e50f2=_0x14429d;this[_0x1e50f2(0x406)](this[_0x1e50f2(0x421)]['entityInit$'][_0x1e50f2(0x21d)](_0x2b2e40=>{const _0x103be9=_0x1e50f2;_0x2b2e40 instanceof _0x2b3bac&&_0x2b2e40['addHandlerCallback']({'onTransformIME':_0x52bcc0=>this[_0x103be9(0x2bd)][_0x103be9(0x39d)](_0x52bcc0),'onTransformState':_0x162123=>this[_0x103be9(0x209)][_0x103be9(0x1f2)](_0x162123),'onPrepareTransformSelections':_0x3ba558=>this[_0x103be9(0x1d5)]['prepareTransformSelections'](_0x3ba558),'onSyncEditingCollabCursor':_0x557b7c=>this[_0x103be9(0x2b0)]['syncEditingCollabCursor'](_0x557b7c),'onTransformRemoteChangesetByIMECache':_0x3b5943=>this['_docTransformIMECacheService'][_0x103be9(0x1d3)](_0x3b5943),'onTransformRemoteChangesetByStateCache':_0x31a09a=>this[_0x103be9(0x209)]['transformRemoteChangeset'](_0x31a09a)});}));}};qn=q([K(0x0,_0x439243(_0x479467)),K(0x1,_0x439243(Bn)),K(0x2,_0x439243(Vn)),K(0x3,_0x439243(Hn)),K(0x4,_0x439243(_n)),K(0x5,_0x42a5ed),K(0x6,_0x439243(_0x2d982f))],qn);let Jn=class extends _0x4af7ce{constructor(_0x477f81,_0x49a75d,_0x365527,_0x1553d5){const _0x50a375=_0x14429d;super(),this[_0x50a375(0x34e)]=_0x477f81,this[_0x50a375(0x3f1)]=_0x49a75d,this[_0x50a375(0x394)]=_0x365527,this[_0x50a375(0x376)]=_0x1553d5,G(this,_0x50a375(0x346),void 0x0),this['_init']();}[_0x14429d(0x3b8)](){const _0x5dfc31=_0x14429d;this[_0x5dfc31(0x357)](),this[_0x5dfc31(0x37b)](),this[_0x5dfc31(0x388)](),this[_0x5dfc31(0x3b0)]();}[_0x14429d(0x3b0)](){const _0x49555c=_0x14429d;this['disposeWithMe'](this['_collaborationSessionService'][_0x49555c(0x216)][_0x49555c(0x21d)](_0x20d418=>{const _0x31bae3=_0x49555c;this[_0x31bae3(0x346)]=_0x20d418==null?void 0x0:_0x20d418['memberID'];}));}[_0x14429d(0x357)](){const _0x2bbdc6=_0x14429d;let _0x135831=_0x288b97=>{const _0x37ecdb=_0x3d03;var _0x56786a;this[_0x37ecdb(0x232)](_0x37ecdb(0x356),_0x37ecdb(0x25c)+_0x288b97[_0x37ecdb(0x371)]+_0x37ecdb(0x3c4)+_0x288b97['filename']+':'+_0x288b97[_0x37ecdb(0x3bc)]+':'+_0x288b97['colno']+'\x0a'+(((_0x56786a=_0x288b97['error'])==null?void 0x0:_0x56786a[_0x37ecdb(0x28a)])||''));};window[_0x2bbdc6(0x37f)]('error',_0x135831),this[_0x2bbdc6(0x406)](()=>{const _0xf6638d=_0x2bbdc6;window['removeEventListener'](_0xf6638d(0x356),_0x135831);});}[_0x14429d(0x37b)](){const _0x1a91b9=_0x14429d;let _0x46edf7=_0x5c5456=>{const _0x5f5a87=_0x3d03;this[_0x5f5a87(0x232)]('error','[Unhandled\x20Rejection]:\x20'+_0x5c5456[_0x5f5a87(0x2b5)]);};window[_0x1a91b9(0x37f)]('unhandledrejection',_0x46edf7),this[_0x1a91b9(0x406)](()=>{const _0x2bff6a=_0x1a91b9;window[_0x2bff6a(0x367)](_0x2bff6a(0x3b1),_0x46edf7);});}['_monkeyPatchLogService'](){const _0x32e796=_0x14429d;let _0x51f309=this['_logService'][_0x32e796(0x356)]['bind'](this[_0x32e796(0x394)]);this[_0x32e796(0x394)][_0x32e796(0x356)]=(..._0x2ab2f2)=>{const _0x49eac6=_0x32e796;let _0x282907=_0x2ab2f2['map'](_0xb3b9d3=>_0xb3b9d3 instanceof Error?_0xb3b9d3['message']+'\x0a'+_0xb3b9d3[_0x49eac6(0x28a)]:String(_0xb3b9d3))['join']('\x20');this[_0x49eac6(0x232)](_0x49eac6(0x356),_0x49eac6(0x408)+_0x282907),_0x51f309(..._0x2ab2f2);},this[_0x32e796(0x406)](()=>{const _0x2a984d=_0x32e796;this[_0x2a984d(0x394)][_0x2a984d(0x356)]=_0x51f309;});}[_0x14429d(0x232)](_0x1daf5c,_0x2bd698){const _0x332472=_0x14429d;try{let _0x2ed5e0={'userId':this['_memberID'],'logLabel':_0x1daf5c,'content':_0x2bd698};this[_0x332472(0x3f1)][_0x332472(0x242)](_0x332472(0x338),{'body':_0x2ed5e0})['catch'](()=>{});}catch{}}};Jn=q([K(0x0,_0x439243(_0x2c4c1e)),K(0x1,_0x439243(_0x103ec5)),K(0x2,_0x2a6bbd),K(0x3,_0x439243(_0x2b2a41))],Jn);function Yn({state$:_0xd70bad}){const _0x4071e5=_0x14429d;let _0x196744=_0x40178e(_0xd70bad,null,!0x0);return _0x196744?_0x17f736(_0x4071e5(0x1e9),{'data-u-comp':_0x4071e5(0x2e6),'role':_0x4071e5(0x1ee),'className':_0x4071e5(0x23b),'children':[_0x55526a(_0x4d4450,{'className':_0x4071e5(0x30b)}),_0x55526a('span',{'children':_0x196744[_0x4071e5(0x258)]}),_0x55526a(_0x3c19f4,{'size':_0x4071e5(0x1cd),'variant':_0x4071e5(0x433),'onClick':()=>window[_0x4071e5(0x35c)][_0x4071e5(0x21b)](),'children':_0x196744['refreshLabel']})]}):null;}const Xn=_0x14429d(0x312);let Zn=class extends _0x4af7ce{constructor(_0x3e1bd8,_0x3895a9,_0x109b11,_0x21eed4,_0x1831b8,_0x190bd3){const _0x54a9d8=_0x14429d;super(),this['_snapshotLoadingService']=_0x3e1bd8,this[_0x54a9d8(0x439)]=_0x3895a9,this[_0x54a9d8(0x221)]=_0x109b11,this[_0x54a9d8(0x34e)]=_0x21eed4,this[_0x54a9d8(0x331)]=_0x190bd3,G(this,_0x54a9d8(0x1ca),new _0x4a802e(null)),G(this,_0x54a9d8(0x2f5),new Set()),G(this,_0x54a9d8(0x31c),new Map()),G(this,_0x54a9d8(0x263),new Map()),G(this,_0x54a9d8(0x301),this[_0x54a9d8(0x1ca)][_0x54a9d8(0x1e6)]());let _0x1abd1d=()=>_0x1b7724(Yn,{'state$':this[_0x54a9d8(0x301)]});this[_0x54a9d8(0x406)](_0x1831b8[_0x54a9d8(0x276)](_0x589fc3[_0x54a9d8(0x213)],()=>_0x9d541b(_0x1abd1d,this[_0x54a9d8(0x34e)]))),this['disposeWithMe'](this['_snapshotLoadingService'][_0x54a9d8(0x2a6)][_0x54a9d8(0x21d)](_0x28dfff=>{const _0x569ad7=_0x54a9d8;this[_0x569ad7(0x263)]=_0x28dfff,_0x28dfff[_0x569ad7(0x333)](_0x1c5591=>this[_0x569ad7(0x2d3)](_0x1c5591));})),this[_0x54a9d8(0x406)](this[_0x54a9d8(0x331)][_0x54a9d8(0x3a8)]['subscribe'](()=>{const _0x2a76ba=_0x54a9d8;this[_0x2a76ba(0x263)][_0x2a76ba(0x333)](_0x111d07=>this['_updateMessage'](_0x111d07));}));}[_0x14429d(0x381)](){const _0x1dec8b=_0x14429d;this[_0x1dec8b(0x2f5)][_0x1dec8b(0x333)](_0x18ed47=>this[_0x1dec8b(0x439)]['remove'](_0x18ed47)),this[_0x1dec8b(0x2f5)]['clear'](),this[_0x1dec8b(0x31c)][_0x1dec8b(0x333)](({timeoutId:_0x469604})=>clearTimeout(_0x469604)),this['_blockProgressWatches']['clear'](),this[_0x1dec8b(0x1ca)][_0x1dec8b(0x24e)](),super[_0x1dec8b(0x381)]();}[_0x14429d(0x2d3)](_0x540eaa){const _0x4c1807=_0x14429d;let _0x30a809=''+Xn+_0x540eaa[_0x4c1807(0x210)];if(_0x540eaa[_0x4c1807(0x387)]===_0x56bb07[_0x4c1807(0x286)]){this[_0x4c1807(0x43f)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x410)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x439)][_0x4c1807(0x3b5)](_0x30a809),this[_0x4c1807(0x2f5)][_0x4c1807(0x2a0)](_0x30a809);return;}if(!this[_0x4c1807(0x340)](_0x540eaa[_0x4c1807(0x210)])){this[_0x4c1807(0x43f)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x410)](_0x540eaa['unitId']),this[_0x4c1807(0x439)][_0x4c1807(0x3b5)](_0x30a809),this[_0x4c1807(0x2f5)][_0x4c1807(0x2a0)](_0x30a809);return;}if(_0x540eaa['stage']===_0x56bb07[_0x4c1807(0x3d5)]){this['_clearBlockProgressWatch'](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x410)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x439)][_0x4c1807(0x23e)]({'id':_0x30a809,'type':_0x3e9b02[_0x4c1807(0x41f)],'content':this['_localeService']['t'](_0x4c1807(0x380))}),this['_messageIds']['delete'](_0x30a809);return;}if(_0x540eaa['stage']!==_0x56bb07[_0x4c1807(0x35a)]||_0x540eaa[_0x4c1807(0x2a5)]<=0xa){this[_0x4c1807(0x43f)](_0x540eaa[_0x4c1807(0x210)]),this['_messageService']['remove'](_0x30a809),this[_0x4c1807(0x2f5)][_0x4c1807(0x2a0)](_0x30a809);return;}this[_0x4c1807(0x3a3)](_0x540eaa)||(this[_0x4c1807(0x439)]['show']({'id':_0x30a809,'type':_0x3e9b02[_0x4c1807(0x25f)],'duration':0x1/0x0,'content':this[_0x4c1807(0x221)]['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x540eaa[_0x4c1807(0x26e)]+'/'+_0x540eaa[_0x4c1807(0x2a5)]}),this[_0x4c1807(0x2f5)]['add'](_0x30a809));}[_0x14429d(0x3a3)](_0x309477){const _0x4a4556=_0x14429d;let _0x394e5d=this[_0x4a4556(0x31c)][_0x4a4556(0x341)](_0x309477[_0x4a4556(0x210)]);if((_0x394e5d==null?void 0x0:_0x394e5d['loadedBlocks'])===_0x309477[_0x4a4556(0x26e)])return _0x394e5d[_0x4a4556(0x33b)];this[_0x4a4556(0x43f)](_0x309477[_0x4a4556(0x210)]);let _0x5034bd=setTimeout(()=>{const _0x335760=_0x4a4556;let _0x1224ca=this[_0x335760(0x31c)][_0x335760(0x341)](_0x309477['unitId']);if(!_0x1224ca||_0x1224ca[_0x335760(0x3ae)]!==_0x5034bd)return;_0x1224ca['timedOut']=!0x0;let _0x357629=''+Xn+_0x309477['unitId'];this[_0x335760(0x439)][_0x335760(0x3b5)](_0x357629),this[_0x335760(0x2f5)][_0x335760(0x2a0)](_0x357629),this[_0x335760(0x1ca)][_0x335760(0x362)]({'unitId':_0x309477[_0x335760(0x210)],'content':this[_0x335760(0x221)]['t'](_0x335760(0x2ee),String(_0x309477[_0x335760(0x26e)]),String(_0x309477[_0x335760(0x2a5)])),'refreshLabel':this[_0x335760(0x221)]['t'](_0x335760(0x1de))});},0xea60);return this['_blockProgressWatches'][_0x4a4556(0x1fc)](_0x309477[_0x4a4556(0x210)],{'loadedBlocks':_0x309477['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x5034bd}),!0x1;}[_0x14429d(0x43f)](_0x722b30){const _0x459dee=_0x14429d;let _0x5accd2=this[_0x459dee(0x31c)][_0x459dee(0x341)](_0x722b30);_0x5accd2&&(clearTimeout(_0x5accd2['timeoutId']),this['_blockProgressWatches'][_0x459dee(0x2a0)](_0x722b30),this[_0x459dee(0x410)](_0x722b30));}[_0x14429d(0x410)](_0x2a8ead){const _0x49d590=_0x14429d;var _0x292b62;((_0x292b62=this[_0x49d590(0x1ca)][_0x49d590(0x330)])==null?void 0x0:_0x292b62[_0x49d590(0x210)])===_0x2a8ead&&this[_0x49d590(0x1ca)][_0x49d590(0x362)](null);}[_0x14429d(0x340)](_0x419c58){const _0x12718c=_0x14429d;let _0x3d028a=this[_0x12718c(0x331)][_0x12718c(0x427)](_0x12718c(0x262));return!_0x3d028a||_0x3d028a===_0x419c58;}};Zn=q([K(0x0,_0x439243(_0x15d5cd)),K(0x1,_0x42a5ed),K(0x2,_0x439243(_0x2d982f)),K(0x3,_0x439243(_0x2c4c1e)),K(0x4,_0x36acb8),K(0x5,Rn)],Zn);let Qn=class extends _0x4af7ce{constructor(_0x12b979,_0x100504,_0x5a6b3a){const _0x34e3e2=_0x14429d;super(),this['_configService']=_0x12b979,this[_0x34e3e2(0x3c0)]=_0x100504,this['_revisionService']=_0x5a6b3a,G(this,_0x34e3e2(0x36f),new Map()),G(this,'_saveTaskMap',new Map()),G(this,'_activeSaveTaskMap',new Map()),G(this,_0x34e3e2(0x22f),!0x1);}[_0x14429d(0x34b)](){const _0x556c69=_0x14429d;this[_0x556c69(0x22f)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x14429d(0x22c)](){const _0x72884d=_0x14429d;return this[_0x72884d(0x244)];}[_0x14429d(0x381)](){const _0x2ef789=_0x14429d;this[_0x2ef789(0x41b)]()['then'](()=>super['dispose']());}async[_0x14429d(0x38a)](_0x4f6578){const _0x3340d1=_0x14429d;return this[_0x3340d1(0x22f)]?null:this['_localStorageService'][_0x3340d1(0x414)](_0x96f6b8(_0x4f6578));}async[_0x14429d(0x277)](_0x28d9db,_0x170f81){const _0x47565e=_0x14429d;let _0x457133=this[_0x47565e(0x3c0)][_0x47565e(0x36a)](_0x96f6b8(_0x28d9db),_0x170f81);return this['_trackActiveSaveTask'](_0x28d9db,_0x457133),!!await _0x457133;}async['backupOfflineData'](_0x3d8158,_0x59bc30){const _0x6370bb=_0x14429d;let _0x584130=this[_0x6370bb(0x36f)][_0x6370bb(0x341)](_0x3d8158)??await this[_0x6370bb(0x3c0)]['getItem'](_0x96f6b8(_0x3d8158));if(!_0x584130)return;let _0x5a2042=Date[_0x6370bb(0x35d)](),_0x5757a1=new Date(_0x5a2042)[_0x6370bb(0x2ea)]();await this[_0x6370bb(0x3c0)]['setItem'](_0x96f6b8(_0x3d8158)+':backup:'+_0x5a2042,{'reason':_0x59bc30,'createdAt':_0x5757a1,'data':_0x584130});}async[_0x14429d(0x27b)](_0x2b313e){const _0x37e644=_0x14429d;let _0x22b425=this[_0x37e644(0x244)][_0x37e644(0x341)](_0x2b313e);_0x22b425!==void 0x0&&(window['clearTimeout'](_0x22b425),this[_0x37e644(0x244)][_0x37e644(0x2a0)](_0x2b313e));let _0x58c2ba=this[_0x37e644(0x40c)][_0x37e644(0x341)](_0x2b313e);_0x58c2ba&&await Promise[_0x37e644(0x336)](_0x58c2ba),this[_0x37e644(0x36f)][_0x37e644(0x2a0)](_0x2b313e),await this['_localStorageService'][_0x37e644(0x2b7)](_0x96f6b8(_0x2b313e));}[_0x14429d(0x385)](_0x5bda6c,_0x20c83f,_0x5accc,_0x5c6d8f){const _0x2c9bdb=_0x14429d;let _0x45c71a=this[_0x2c9bdb(0x260)]['getCurrentRevOfUnit'](_0x5bda6c);this[_0x2c9bdb(0x36f)]['set'](_0x5bda6c,{'unitID':_0x5bda6c,'type':_0x20c83f,'awaitingChangeset':_0x5accc,'mutations':_0x5c6d8f,'rev':_0x45c71a}),this[_0x2c9bdb(0x244)][_0x2c9bdb(0x38f)](_0x5bda6c)||this['_scheduleSaving'](_0x5bda6c);}['_scheduleSaving'](_0x19586b){const _0x511ca0=_0x14429d;let _0x577918=this['_getSaveTimeout']();_0x577918===0x0?this['_saveCache'](_0x19586b):this[_0x511ca0(0x244)][_0x511ca0(0x1fc)](_0x19586b,window[_0x511ca0(0x1fb)](()=>this[_0x511ca0(0x3f0)](_0x19586b),_0x577918));}[_0x14429d(0x30a)](){const _0x5d3069=_0x14429d;return this[_0x5d3069(0x3f5)]['getConfig'](_0x4a71d9)??_0x22821c;}[_0x14429d(0x3f0)](_0x58e636){const _0x140218=_0x14429d;let _0x1b1cfa=this['_saveTaskMap']['get'](_0x58e636);_0x1b1cfa!==void 0x0&&window[_0x140218(0x3ec)](_0x1b1cfa);let _0x2707af=this[_0x140218(0x3c0)]['setItem'](_0x96f6b8(_0x58e636),this['_cachedData']['get'](_0x58e636))[_0x140218(0x238)](()=>this['_saveTaskMap'][_0x140218(0x2a0)](_0x58e636));return this[_0x140218(0x31d)](_0x58e636,_0x2707af),_0x2707af;}[_0x14429d(0x31d)](_0x43671b,_0x19ae6c){const _0x54d4c3=_0x14429d;let _0x5f6ade=this[_0x54d4c3(0x40c)][_0x54d4c3(0x341)](_0x43671b);_0x5f6ade||(_0x5f6ade=new Set(),this[_0x54d4c3(0x40c)]['set'](_0x43671b,_0x5f6ade)),_0x5f6ade[_0x54d4c3(0x264)](_0x19ae6c);let _0x15d822=()=>{const _0x46e61b=_0x54d4c3;_0x5f6ade[_0x46e61b(0x2a0)](_0x19ae6c),_0x5f6ade['size']===0x0&&this['_activeSaveTaskMap']['delete'](_0x43671b);};_0x19ae6c['then'](_0x15d822,_0x15d822);}async[_0x14429d(0x41b)](){const _0x5e33b2=_0x14429d;let _0x2824e3=[];this['_saveTaskMap']['forEach']((_0x1c57a6,_0x486c00)=>{const _0x1b5b73=_0x3d03;window[_0x1b5b73(0x3ec)](_0x1c57a6),_0x2824e3['push'](this[_0x1b5b73(0x3f0)](_0x486c00)[_0x1b5b73(0x238)](()=>{const _0x30344b=_0x1b5b73;this[_0x30344b(0x244)]['delete'](_0x486c00);}));}),await Promise[_0x5e33b2(0x290)](_0x2824e3);}};Qn=q([K(0x0,_0x3d218d),K(0x1,_0x30998f),K(0x2,_0x439243(_0x4c1d46))],Qn);var $n=class extends _0x32162e{constructor(){const _0x7021fd=_0x14429d;super(),G(this,_0x7021fd(0x3a8),void 0x0),this[_0x7021fd(0x3a8)]=_0x377d93(window,_0x7021fd(0x283))['pipe'](_0x54edaf(this[_0x7021fd(0x29b)]),_0xe8e11e({'bufferSize':0x1,'refCount':!0x0}),_0x318933(void 0x0));}['setParam'](_0x4b183b,_0x29f8fa,_0x48b520=!0x1){const _0x504223=_0x14429d;let _0x2b0ef5=new URL(window[_0x504223(0x35c)][_0x504223(0x38d)]);_0x2b0ef5[_0x504223(0x2f9)][_0x504223(0x1fc)](_0x4b183b,_0x29f8fa),_0x48b520?window[_0x504223(0x29f)]['replaceState']('','',_0x2b0ef5[_0x504223(0x2ec)]()):window[_0x504223(0x29f)][_0x504223(0x351)]('','',_0x2b0ef5[_0x504223(0x2ec)]());}[_0x14429d(0x300)](_0x177bb6,_0x26d6d3=!0x1){const _0x9acb23=_0x14429d;let _0x7d0182=new URL(window[_0x9acb23(0x35c)][_0x9acb23(0x38d)]);_0x7d0182[_0x9acb23(0x2f9)][_0x9acb23(0x2a0)](_0x177bb6),_0x26d6d3?window[_0x9acb23(0x29f)][_0x9acb23(0x295)]('','',_0x7d0182[_0x9acb23(0x2ec)]()):window[_0x9acb23(0x29f)][_0x9acb23(0x351)]('','',_0x7d0182[_0x9acb23(0x2ec)]());}[_0x14429d(0x427)](_0x570975){const _0x398ca5=_0x14429d;return new URL(window[_0x398ca5(0x35c)]['href'])['searchParams'][_0x398ca5(0x341)](_0x570975)??void 0x0;}};let $=class extends _0x28f90b{constructor(_0x5a9ae3=fn,_0x57fea1,_0x2c1428,_0x5ce8b5,_0x2c47cd){const _0x290fdc=_0x14429d;super(),this[_0x290fdc(0x288)]=_0x5a9ae3,this[_0x290fdc(0x398)]=_0x57fea1,this[_0x290fdc(0x34e)]=_0x2c1428,this[_0x290fdc(0x3f5)]=_0x5ce8b5,this[_0x290fdc(0x236)]=_0x2c47cd;let {..._0x162583}=_0x13839f({},fn,this[_0x290fdc(0x288)]);this['_configService'][_0x290fdc(0x269)]('collaboration-client-ui.config',_0x162583);}[_0x14429d(0x2e8)](){const _0x425d0a=_0x14429d;this[_0x425d0a(0x3f3)](),this[_0x425d0a(0x406)](this[_0x425d0a(0x236)][_0x425d0a(0x2d9)](Y)),this[_0x425d0a(0x1ef)]();}[_0x14429d(0x39a)](){const _0x1dfa58=_0x14429d;this[_0x1dfa58(0x327)]();}[_0x14429d(0x3f3)](){const _0x574a47=_0x14429d;var _0x5748c5;let _0x384595=[[mn],[Rn,{'useClass':$n}],[_0xfb68a9,{'useClass':_0x4ffb7d}],[_0x4ed906,{'useClass':Qn}],[J],[Ln],[Z],[Q],[zn],[Zn]];this[_0x574a47(0x288)]['enableDocumentCollaborationUI']!==!0x1&&_0x384595[_0x574a47(0x305)]([Hn],[Bn],[Vn],[_n],[qn],[X]),this[_0x574a47(0x288)][_0x574a47(0x401)]&&_0x384595['push']([Jn]),_0x572e92(this['_injector'],_0x356ba2(_0x384595,(_0x5748c5=this[_0x574a47(0x288)])==null?void 0x0:_0x5748c5[_0x574a47(0x35b)]));}[_0x14429d(0x327)](){const _0x282047=_0x14429d;this[_0x282047(0x288)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x282047(0x406)](this[_0x282047(0x398)][_0x282047(0x211)](_0x4d263b[_0x282047(0x1e8)],[Dn])),this[_0x282047(0x406)](this[_0x282047(0x398)]['registerRenderModule'](_0x4d263b[_0x282047(0x1d9)],[kn]));}[_0x14429d(0x1ef)](){const _0xc5caad=_0x14429d;_0x2b77cb(this[_0xc5caad(0x34e)],[[Z],[Q],[J],[Ln],[zn],[Zn]]),this[_0xc5caad(0x288)]['enableDocumentCollaborationUI']!==!0x1&&_0x2b77cb(this[_0xc5caad(0x34e)],[[qn],[X]]),this['_config']['enableFrontendLog']&&_0x2b77cb(this[_0xc5caad(0x34e)],[[Jn]]);}};G($,_0x14429d(0x1d2),_0x14429d(0x417)),G($,'packageName',un),G($,'version',dn),$=q([_0x565f3d(_0x52194a,_0x2f2fac,_0xb44e6a,_0x420728,_0x42bc38,_0x4d590a,_0x4990f6),K(0x1,_0x3ddfbd),K(0x2,_0x439243(_0x2c4c1e)),K(0x3,_0x3d218d),K(0x4,_0xdaa582)],$);let er=class extends _0x3ab735{constructor(_0x38cb80,_0x5d4057,_0x2f5a2e,_0x1a2e88,_0x3ff632){super(_0x38cb80,_0x5d4057,_0x2f5a2e,_0x1a2e88,_0x3ff632);}async[_0x14429d(0x2f7)](_0x2f9c65){const _0x3231e0=_0x14429d;let _0x12050e=await this[_0x3231e0(0x3bd)](),_0xc9309b=this[_0x3231e0(0x35f)](_0x2f9c65,_0x12050e);return this[_0x3231e0(0x1ea)](_0xc9309b);}[_0x14429d(0x35f)](_0x5ad386,_0x1f5d06){const _0x538c7f=_0x14429d;let _0x2c32cd=typeof window>'u'?new URL(_0x5ad386):new URL(_0x5ad386,window['location'][_0x538c7f(0x2ac)]);_0x2c32cd[_0x538c7f(0x2f9)][_0x538c7f(0x1fc)](_0x538c7f(0x42c),_0x1f5d06);let _0x294c8d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x538c7f(0x222)]);return _0x294c8d[_0x538c7f(0x341)](_0x538c7f(0x1eb))&&_0x2c32cd[_0x538c7f(0x2f9)][_0x538c7f(0x1fc)](_0x538c7f(0x1eb),_0x294c8d[_0x538c7f(0x341)](_0x538c7f(0x1eb))),_0x2c32cd[_0x538c7f(0x2ec)]();}async[_0x14429d(0x3bd)](){const _0x13cee4=_0x14429d;var _0x314025;let _0x281de6=this[_0x13cee4(0x3f5)][_0x13cee4(0x25b)](_0x11040d),_0x5cf232=(_0x281de6==null?void 0x0:_0x281de6[_0x13cee4(0x3cf)])??_0x4cdb73;return((_0x314025=(await this['_httpService'][_0x13cee4(0x341)](_0x5cf232,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x314025['ticket'])??'';}};er=q([K(0x0,_0x439243(_0x2c4c1e)),K(0x1,_0x439243(_0x103ec5)),K(0x2,_0x3d218d),K(0x3,_0x2a6bbd),K(0x4,_0x5da708)],er);let tr=class extends _0x4af7ce{constructor(_0x5b6126,_0x31a02b,_0x43feea){const _0xffaa6=_0x14429d;super(),this[_0xffaa6(0x220)]=_0x5b6126,this[_0xffaa6(0x3f1)]=_0x31a02b,this[_0xffaa6(0x3f5)]=_0x43feea;}async[_0x14429d(0x255)](_0x30361f,_0x336728,_0xc22b84,..._0x3829eb){const _0x5aa10d=_0x14429d;let _0x214998=this[_0x5aa10d(0x220)][_0x5aa10d(0x254)]();if(!_0x214998)throw Error(_0x5aa10d(0x225));let _0x320f1d=(this[_0x5aa10d(0x3f5)][_0x5aa10d(0x25b)](_0x40ac4f)??_0xb50b00)+'/'+_0x30361f+_0x5aa10d(0x2f8)+_0x336728,_0x180bea={'scriptId':_0x30361f,'runId':new URL(window[_0x5aa10d(0x35c)]['href'])['searchParams'][_0x5aa10d(0x341)](_0x5aa10d(0x1eb))??'','function':_0x336728,'unitId':_0x214998[_0x5aa10d(0x252)](),'argsOfFunction':JSON['stringify'](_0x3829eb),'invokeId':_0xc22b84[_0x5aa10d(0x1cb)]??'','executionId':_0xc22b84[_0x5aa10d(0x323)]??''};try{let _0x1d09a6=await this[_0x5aa10d(0x3f1)]['post'](_0x320f1d,{'body':_0x180bea});return _0x1d09a6['body'][_0x5aa10d(0x356)]&&_0x1d09a6['body']['error']['code']!==_0x41baea['OK']?'Failed':_0x1d09a6['body'][_0x5aa10d(0x3bb)];}catch{return'Failed';}}};tr=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x103ec5)),K(0x2,_0x3d218d)],tr);const nr=0x7530,rr='ACTIVE_UNIT_EVENT_CHANNEL';var ir=class extends _0x4af7ce{constructor(){const _0x5b0037=_0x14429d;super(),G(this,'_id',_0x5b5013()),G(this,_0x5b0037(0x29e),new Set()),G(this,_0x5b0037(0x289),new Map()),G(this,_0x5b0037(0x418),null),G(this,_0x5b0037(0x3e9),new Map()),G(this,_0x5b0037(0x284),new Map()),this['_init']();}[_0x14429d(0x381)](){const _0x3d9278=_0x14429d;super['dispose'](),this['_clearOtherTimers'][_0x3d9278(0x333)]((_0xd7e6e0,_0x5db42f)=>this[_0x3d9278(0x43a)](_0x5db42f)),this[_0x3d9278(0x418)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x14429d(0x3b7)](_0x2ddcca){const _0x5df466=_0x14429d;return this[_0x5df466(0x2f6)](_0x2ddcca)[_0x5df466(0x203)](_0x53e16d());}[_0x14429d(0x1ce)](_0x69084f){const _0x4a316b=_0x14429d;this['_selfUnitIDs'][_0x4a316b(0x241)]===0x0&&this['_scheduleHeartbeat'](),this[_0x4a316b(0x29e)][_0x4a316b(0x264)](_0x69084f),this[_0x4a316b(0x3fb)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x69084f],'isForwarded':!0x1});}[_0x14429d(0x2b9)](_0x8bd62d){const _0x41f5ac=_0x14429d;this[_0x41f5ac(0x29e)][_0x41f5ac(0x2a0)](_0x8bd62d),this[_0x41f5ac(0x29e)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x41f5ac(0x275)](this[_0x41f5ac(0x418)]);}[_0x14429d(0x3b8)](){const _0x4f9ed1=_0x14429d;this[_0x4f9ed1(0x406)](_0x1c7e61(_0x377d93(window,_0x4f9ed1(0x342))['subscribe'](_0x1d74a3=>{const _0x220f6e=_0x4f9ed1;if(_0x1d74a3[_0x220f6e(0x217)]!==rr||!_0x1d74a3['newValue'])return;let _0x436be6=JSON[_0x220f6e(0x2ce)](_0x1d74a3[_0x220f6e(0x360)]);this[_0x220f6e(0x2c9)](_0x436be6);}))),window[_0x4f9ed1(0x37f)](_0x4f9ed1(0x32d),()=>this[_0x4f9ed1(0x3fb)]({'type':0x1,'memberID':this[_0x4f9ed1(0x434)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x14429d(0x2c9)](_0x14b66d){const _0x2ef125=_0x14429d;switch(_0x14b66d[_0x2ef125(0x3e6)]){case 0x0:this[_0x2ef125(0x347)](_0x14b66d);break;case 0x1:this[_0x2ef125(0x20b)](_0x14b66d);break;case 0x2:this['_handleHeartbeatEvent'](_0x14b66d);}}[_0x14429d(0x347)](_0x2613d1){const _0x49681d=_0x14429d;let {unitIDs:_0x24247f,memberID:_0x1b1163,isForwarded:_0xe0470e}=_0x2613d1;_0x24247f['forEach'](_0x918ef9=>{const _0xebbfa9=_0x3d03;if(!_0xe0470e&&this[_0xebbfa9(0x289)][_0xebbfa9(0x38f)](_0x918ef9)&&this['_ensureSubject'](_0x918ef9)[_0xebbfa9(0x362)](_0x12fc42[_0xebbfa9(0x2d5)]),!this[_0xebbfa9(0x289)][_0xebbfa9(0x38f)](_0x918ef9)||!this['_unitOnClients'][_0xebbfa9(0x341)](_0x918ef9)['has'](_0x1b1163)){let _0x1791c1=this[_0xebbfa9(0x289)]['get'](_0x918ef9)||new Set();_0x1791c1[_0xebbfa9(0x264)](_0x1b1163),this['_unitOnClients'][_0xebbfa9(0x1fc)](_0x918ef9,_0x1791c1),this[_0xebbfa9(0x399)](_0x1b1163);}}),_0xe0470e||this[_0x49681d(0x3fb)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x49681d(0x29e)]],'isForwarded':!0x0});}[_0x14429d(0x399)](_0x305675){const _0xc5b02=_0x14429d;this[_0xc5b02(0x43a)](_0x305675);let _0x597b38=window[_0xc5b02(0x1fb)](()=>{const _0x613662=_0xc5b02;this[_0x613662(0x289)][_0x613662(0x333)](_0x47e3d4=>{_0x47e3d4['delete'](_0x305675);});},nr*0x2);this[_0xc5b02(0x3e9)]['set'](_0x305675,_0x597b38);}[_0x14429d(0x43a)](_0x3a014b){const _0x2331d9=_0x14429d;if(this['_clearOtherTimers'][_0x2331d9(0x38f)](_0x3a014b)){let _0x295521=this['_clearOtherTimers'][_0x2331d9(0x341)](_0x3a014b);_0x295521&&window[_0x2331d9(0x3ec)](_0x295521),this['_clearOtherTimers'][_0x2331d9(0x1fc)](_0x3a014b,null);}}['_handleLeaveEvent'](_0x131b40){const _0x4916e5=_0x14429d;let {memberID:_0x28611e,unitIDs:_0x3d9bec}=_0x131b40;_0x3d9bec[_0x4916e5(0x333)](_0x3cf10c=>{const _0x4944a1=_0x4916e5;var _0x1196d3;let _0xac650b=this[_0x4944a1(0x289)][_0x4944a1(0x341)](_0x3cf10c);_0xac650b&&(_0xac650b[_0x4944a1(0x2a0)](_0x28611e),(_0x1196d3=this[_0x4944a1(0x2f6)](_0x3cf10c))==null||_0x1196d3[_0x4944a1(0x362)](_0xac650b['size']===0x0?_0x12fc42[_0x4944a1(0x3df)]:_0x12fc42['OTHER_CLIENTS_EDITING']));}),this[_0x4916e5(0x43a)](_0x28611e);}[_0x14429d(0x235)](_0x1107eb){const _0x30c005=_0x14429d;this[_0x30c005(0x399)](_0x1107eb[_0x30c005(0x1c8)]);}[_0x14429d(0x3fb)](_0x20eacc){const _0x450b07=_0x14429d;localStorage[_0x450b07(0x36a)](rr,JSON[_0x450b07(0x26f)](_0x20eacc));}[_0x14429d(0x20c)](){const _0x355c0c=_0x14429d;this['_heartbeatTimer']=window[_0x355c0c(0x2c5)](()=>{const _0x3cec44=_0x355c0c;this[_0x3cec44(0x3fb)]({'type':0x2,'memberID':this[_0x3cec44(0x434)]});},nr);}[_0x14429d(0x2f6)](_0x4ce2c0){const _0x4e0925=_0x14429d;return this[_0x4e0925(0x284)][_0x4e0925(0x38f)](_0x4ce2c0)||this[_0x4e0925(0x284)][_0x4e0925(0x1fc)](_0x4ce2c0,new _0x4a802e(_0x12fc42[_0x4e0925(0x3df)])),this[_0x4e0925(0x284)][_0x4e0925(0x341)](_0x4ce2c0);}};export{er as BrowserCollaborationSocketService,J as DesktopCollaborationStatusDisplayController,Rn as IURLService,tr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService};
|