@univerjs-pro/collaboration-client 0.4.0-nightly.202410151606 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +2 -0
- package/lib/types/services/local-cache/local-cache.service.d.ts +2 -2
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +2 -1
- package/lib/umd/index.js +1 -1
- package/package.json +19 -18
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x598a93=_0x5340;(function(_0x5b3fa7,_0x1617c9){const _0x256d33=_0x5340,_0x1646e8=_0x5b3fa7();while(!![]){try{const _0x13920a=-parseInt(_0x256d33(0x170))/0x1*(-parseInt(_0x256d33(0x2e5))/0x2)+parseInt(_0x256d33(0x410))/0x3+parseInt(_0x256d33(0x25e))/0x4+-parseInt(_0x256d33(0x244))/0x5*(parseInt(_0x256d33(0x435))/0x6)+-parseInt(_0x256d33(0x1ae))/0x7*(parseInt(_0x256d33(0x28a))/0x8)+parseInt(_0x256d33(0x381))/0x9+parseInt(_0x256d33(0x3ea))/0xa*(-parseInt(_0x256d33(0x2e9))/0xb);if(_0x13920a===_0x1617c9)break;else _0x1646e8['push'](_0x1646e8['shift']());}catch(_0x58f75d){_0x1646e8['push'](_0x1646e8['shift']());}}}(_0x3306,0x2f3d1));var zs=Object[_0x598a93(0x171)],Zs=(_0x515659,_0x7530b7,_0x545f45)=>_0x7530b7 in _0x515659?zs(_0x515659,_0x7530b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x545f45}):_0x515659[_0x7530b7]=_0x545f45,l=(_0xdcb4cf,_0x164696,_0x28afd6)=>Zs(_0xdcb4cf,typeof _0x164696!=_0x598a93(0x344)?_0x164696+'':_0x164696,_0x28afd6);import{createIdentifier as _0x9eee89,Inject as _0x592774,Disposable as _0x24edb8,DisposableCollection as _0x1b0473,toDisposable as _0x440d86,IConfigService as _0x3fc6a0,ILogService as _0x1281de,UserManagerService as _0x50b499,UniverInstanceType as _0x33d049,IUniverInstanceService as _0x191290,LocaleService as _0x2af7ec,Optional as _0x3372cb,RxDisposable as _0x39a217,Injector as _0x579617,Tools as _0x4105cf,ILocalStorageService as _0x86e459,ICommandService as _0xbb225b,JSONX as _0xae478c,CommandType as _0x1887aa,IPermissionService as _0x28af49,IUndoRedoService as _0x3f0b63,sequenceExecute as _0x4a38aa,debounce as _0x568d4b,Rectangle as _0x3f2a8c,COLORS as _0x911f97,ColorKit as _0x9714c3,ThemeService as _0x3777c2,fromEventSubject as _0x7c5a3d,useDependency as _0xded923,connectInjector as _0x2efead,Workbook as _0x3496f4,isInternalEditorID as _0x52b31a,LocalUndoRedoService as _0x397fe3,IContextService as _0x1f167d,DependentOn as _0xe01fa7,Plugin as _0x17f00c,touchDependencies as _0x4a1714,IAuthzIoService as _0x3072eb,mergeOverrideWithDependencies as _0xc4cf65}from'@univerjs/core';import{Subject as _0x2199d6,merge as _0x4c82f1,takeUntil as _0x5c2c79,BehaviorSubject as _0x59597c,distinctUntilChanged as _0x555c3a,fromEvent as _0xa48ff6,map as _0x58c153,shareReplay as _0x55473f,take as _0x593d58,of as _0x3fea04,debounceTime as _0x430a49,filter as _0x5e94e4,switchMap as _0x1a7b4a,combineLatest as _0x340b21,concatMap as _0x3ee968,mapTo as _0x28c444}from'rxjs';import{map as _0x4eca0b,take as _0x5e1341,filter as _0x34901b,delay as _0x3af41b,throttleTime as _0x14157e,takeUntil as _0x156b4c,switchMap as _0xaf9045}from'rxjs/operators';import{MessageType as _0x19f1bd,Tooltip as _0x1ccb4c}from'@univerjs/design';import{IBeforeCloseService as _0x4fb0d0,IMessageService as _0x369676,INotificationService as _0x2d6a0c,useObservable as _0x21a4be,BuiltInUIPart as _0x1a86c4,IUIPartsService as _0x3e243b}from'@univerjs/ui';import{HTTPService as _0x4b4f20,WebSocketService as _0x2cafbe,MergeInterceptorFactory as _0x4eeb0d,HTTPRequest as _0x5a9dc5,IHTTPImplementation as _0x4b4147,XHRHTTPImplementation as _0x1796a8,ThresholdInterceptorFactory as _0x20176e}from'@univerjs/network';import{CollaborationEvent as _0x5e9e5f,parseChangesetToProtocol as _0x49c839,ISnapshotServerService as _0x33411f,isTransformMutationFailure as _0x5396e5,isTransformMutationsWithChangesetSuccess as _0x347ce0,ITransformService as _0x4cfc78,RevisionService as _0x3fcef9,mapDocumentTypeToUniverType as _0x3dbbe0,isTransformChangesetsSuccess as _0x78f6fa,CompressMutationService as _0x425aac,parseProtocolChangeset as _0x24cdf8,SnapshotService as _0x59f861,textEncoder as _0x6f55a9,b64DecodeUnicode as _0x20cdb8,isTransformMutationsWithChangesetFailure as _0x53b98b,UniverCollaborationPlugin as _0x20c1b9}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x5c9e3c}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x42d514,RichTextEditingMutation as _0x37a233,SetTextSelectionsOperation as _0x35a191,DocSkeletonManagerService as _0x6f5374}from'@univerjs/docs';import{DocIMEInputManagerService as _0x3dcf31,DocStateChangeManagerService as _0x37e77c,NodePositionConvertToCursor as _0x37e9f6,isValidRectRange as _0x115f80,NodePositionConvertToRectRange as _0x4a0b4b,TEXT_RANGE_LAYER_INDEX as _0xb1a49e,SetDocZoomRatioOperation as _0x43d454}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x429ce4,SetSelectionsOperation as _0x283825,InsertSheetMutation as _0x365d49,EmptyMutation as _0x3f7cff,WorkbookEditablePermission as _0x1d1f35,RefRangeService as _0x129b96,EffectRefRangId as _0x4c6334,handleIRemoveRow as _0x1b9105,handleIRemoveCol as _0x3811e5,handleMoveRange as _0x579d32,handleInsertRow as _0x4f2dd1,handleInsertRangeMoveRight as _0x8bbe00,handleInsertRangeMoveDown as _0xf87b15,handleInsertCol as _0x3087b4,handleDeleteRangeMoveUp as _0x2dbb76,handleDeleteRangeMoveLeft as _0x2cb8ab,runRefRangeMutations as _0x3a7354,SetWorksheetActivateCommand as _0x3794d4}from'@univerjs/sheets';import{IRenderManagerService as _0x101da8,Shape as _0x5e2e32,Rect as _0x5ad1b3,getColor as _0x5a30ab,RegularPolygon as _0x5ce008,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1c8336,Vector2 as _0x366f7a}from'@univerjs/engine-render';import{ImageSourceType as _0x3c6cb4,ImageUploadStatusType as _0x272978,IImageIoService as _0x11fcdb}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x52f227,serializeRangeWithSheet as _0x43a483}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0xb93504,VIEWPORT_KEY as _0x5688e5,getCoordByCell as _0x59d862,getSheetObject as _0x1e1911,SheetPermissionInitController as _0x59bf05}from'@univerjs/sheets-ui';import _0x5657df,{forwardRef as _0xd76e5f,useRef as _0x5a5d9c,createElement as _0x4a815b,useCallback as _0x207aaf}from'react';import{IRemoteInstanceService as _0x4a0241}from'@univerjs/rpc';import{getAttachHeader as _0x41a78e}from'@univerjs-pro/license';const dn=_0x598a93(0x378),fn='/universer-api/snapshot',mn=_0x598a93(0x37b),Oa=_0x598a93(0x392),gn=0x7d0,Sn=_0x598a93(0x15b),pn='ws://127.0.0.1:8000/universer-api/comb/connect',vn=_0x598a93(0x393),In=0x7530,Ns=_0x598a93(0x3bf),Us=0x4e20,En=0x4e20,Cn=_0x598a93(0x260),bn=0x3,Tn='LOCAL_CACHE_INTERVAL',Rn=0x3e8,On=_0x598a93(0x1b9),Dn=_0x598a93(0x265),wn=_0x598a93(0x271),Pn=_0x598a93(0x372);var Ms=(_0x1a7426=>(_0x1a7426[_0x1a7426[_0x598a93(0x138)]=0x0]=_0x598a93(0x138),_0x1a7426[_0x1a7426['OK']=0x1]='OK',_0x1a7426[_0x1a7426[_0x598a93(0x27b)]=0x2]=_0x598a93(0x27b),_0x1a7426[_0x1a7426[_0x598a93(0x3eb)]=0x3]=_0x598a93(0x3eb),_0x1a7426[_0x1a7426[_0x598a93(0x137)]=0x4]=_0x598a93(0x137),_0x1a7426[_0x1a7426[_0x598a93(0x164)]=0x5]='UNAUTHENTICATED',_0x1a7426[_0x1a7426[_0x598a93(0x3bb)]=0x6]='ALREADY_EXISTS',_0x1a7426[_0x1a7426[_0x598a93(0x11a)]=0x7]=_0x598a93(0x11a),_0x1a7426[_0x1a7426[_0x598a93(0x223)]=0x8]=_0x598a93(0x223),_0x1a7426[_0x1a7426[_0x598a93(0x296)]=0x9]=_0x598a93(0x296),_0x1a7426[_0x1a7426[_0x598a93(0x2d7)]=0x1389]=_0x598a93(0x2d7),_0x1a7426[_0x1a7426[_0x598a93(0x160)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1a7426[_0x1a7426[_0x598a93(0x262)]=0x1772]=_0x598a93(0x262),_0x1a7426[_0x1a7426[_0x598a93(0x1c9)]=0x1b59]=_0x598a93(0x1c9),_0x1a7426[_0x1a7426['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x598a93(0x389),_0x1a7426[_0x1a7426[_0x598a93(0x374)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1a7426[_0x1a7426['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x598a93(0x13f),_0x1a7426[_0x1a7426[_0x598a93(0x3fd)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1a7426[_0x1a7426[_0x598a93(0x22d)]=0x2329]=_0x598a93(0x22d),_0x1a7426[_0x1a7426[_0x598a93(0x35d)]=0x232a]=_0x598a93(0x35d),_0x1a7426[_0x1a7426['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1a7426[_0x1a7426[_0x598a93(0x437)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1a7426[_0x1a7426[_0x598a93(0x2f8)]=0x232d]=_0x598a93(0x2f8),_0x1a7426[_0x1a7426[_0x598a93(0x443)]=0x2711]=_0x598a93(0x443),_0x1a7426[_0x1a7426[_0x598a93(0x3ca)]=0x2712]=_0x598a93(0x3ca),_0x1a7426[_0x1a7426['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x598a93(0x184),_0x1a7426[_0x1a7426['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1a7426[_0x1a7426['UNRECOGNIZED']=-0x1]=_0x598a93(0x1bf),_0x1a7426))(Ms||{}),H=(_0x32ff69=>(_0x32ff69[_0x32ff69[_0x598a93(0x436)]=0x0]=_0x598a93(0x436),_0x32ff69[_0x32ff69[_0x598a93(0x17d)]=0x1]='UNIVER_DOC',_0x32ff69[_0x32ff69[_0x598a93(0x174)]=0x2]=_0x598a93(0x174),_0x32ff69[_0x32ff69[_0x598a93(0x2ec)]=0x3]=_0x598a93(0x2ec),_0x32ff69[_0x32ff69[_0x598a93(0x3b6)]=0x4]=_0x598a93(0x3b6),_0x32ff69[_0x32ff69[_0x598a93(0x1bf)]=-0x1]=_0x598a93(0x1bf),_0x32ff69))(H||{}),I=(_0x15989f=>(_0x15989f[_0x15989f[_0x598a93(0x1b8)]=0x0]=_0x598a93(0x1b8),_0x15989f[_0x15989f[_0x598a93(0x2c7)]=0x1]=_0x598a93(0x2c7),_0x15989f[_0x15989f[_0x598a93(0x362)]=0x2]='JOIN',_0x15989f[_0x15989f[_0x598a93(0x359)]=0x3]=_0x598a93(0x359),_0x15989f[_0x15989f['INGEST']=0x4]='INGEST',_0x15989f[_0x15989f[_0x598a93(0x406)]=0x5]=_0x598a93(0x406),_0x15989f[_0x15989f[_0x598a93(0x2e1)]=0x6]=_0x598a93(0x2e1),_0x15989f[_0x15989f[_0x598a93(0x1bf)]=-0x1]='UNRECOGNIZED',_0x15989f))(I||{}),kt=(_0xba0662=>(_0xba0662[_0xba0662[_0x598a93(0x292)]=0x0]=_0x598a93(0x292),_0xba0662[_0xba0662['OK']=0x1]='OK',_0xba0662[_0xba0662[_0x598a93(0x469)]=0x2]='FAIL',_0xba0662[_0xba0662[_0x598a93(0x1bf)]=-0x1]=_0x598a93(0x1bf),_0xba0662))(kt||{}),As=(_0x1bc636=>(_0x1bc636[_0x1bc636['Undefined']=0x0]='Undefined',_0x1bc636[_0x1bc636['HttpImport']=0x1]='HttpImport',_0x1bc636[_0x1bc636['HttpExport']=0x2]=_0x598a93(0x2fb),_0x1bc636[_0x1bc636[_0x598a93(0x16b)]=0x3]=_0x598a93(0x16b),_0x1bc636[_0x1bc636[_0x598a93(0x21d)]=0x4]=_0x598a93(0x21d),_0x1bc636[_0x1bc636[_0x598a93(0x1bf)]=-0x1]=_0x598a93(0x1bf),_0x1bc636))(As||{});const L=_0x598a93(0x45d),yn={};function Nn(_0x4d6ead){const _0x4a684b=_0x598a93;var _0xee0659,_0x470000,_0x1bffaf,_0x3b5254;const _0x52d6c7=_0x4d6ead[_0x4a684b(0x249)],_0x5ba889=JSON[_0x4a684b(0x143)](_0x52d6c7);switch(_0x5ba889['cmd']){case I['HEARTBEAT']:case I[_0x4a684b(0x2c7)]:{const _0x2b88b9=_0x5ba889[_0x4a684b(0x375)];return{..._0x5ba889,'data':_0x2b88b9,'cmd':_0x5ba889[_0x4a684b(0x42c)]};}case I[_0x4a684b(0x362)]:{const _0x47c326=_0x5ba889[_0x4a684b(0x1a2)];return{..._0x5ba889,'data':_0x47c326,'cmd':_0x5ba889[_0x4a684b(0x42c)]};}case I[_0x4a684b(0x2e1)]:{const _0x4ba6ab=_0x5ba889[_0x4a684b(0x430)];switch(_0x4ba6ab['eventID']){case _0x5e9e5f[_0x4a684b(0x1db)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':(_0xee0659=_0x4ba6ab[_0x4a684b(0x3ed)])==null?void 0x0:_0xee0659['cs']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x127)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':(_0x470000=_0x4ba6ab[_0x4a684b(0x319)])==null?void 0x0:_0x470000['cs']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x18f)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':(_0x1bffaf=_0x4ba6ab[_0x4a684b(0x313)])==null?void 0x0:_0x1bffaf['cs']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x3d0)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':(_0x3b5254=_0x4ba6ab[_0x4a684b(0x1e9)])==null?void 0x0:_0x3b5254['cs']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x294)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x19f)]},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f['USERS_ENTER']:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab['joinEvent']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x289)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x477)]},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f['LIVESHARE_NEW_HOST']:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab['liveShareNewHost']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x36e)]:case _0x5e9e5f[_0x4a684b(0x3a8)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab['liveShareOperation']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f['LIVESHARE_TERMINATE']:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x356)]},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x40b)]:return{..._0x5ba889,'data':_0x4ba6ab,'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x3f2)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x2ae)]},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x31f)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x1ab)]},'cmd':_0x5ba889['cmd']};case _0x5e9e5f['SHOULD_CLOSE_CONN']:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x1f3)]},'cmd':_0x5ba889[_0x4a684b(0x42c)]};default:return _0x5ba889;}}default:return _0x5ba889;}}function Un(_0xbcd260){const _0x1b9061=_0x598a93;switch(_0xbcd260['cmd']){case I[_0x1b9061(0x406)]:case I[_0x1b9061(0x2c7)]:return JSON['stringify']({'cmd':_0xbcd260[_0x1b9061(0x42c)],'routeKey':_0xbcd260['routeKey']});case I[_0x1b9061(0x3ec)]:{let _0x5e2ddf;switch(_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x1a6)]){case _0x5e9e5f[_0x1b9061(0x294)]:{_0x5e2ddf={'eventID':_0x5e9e5f[_0x1b9061(0x294)],'updateCursorEvent':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f[_0x1b9061(0x289)]:{_0x5e2ddf={'eventID':_0x5e9e5f['USERS_LEAVE'],'leaveEvent':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f['USERS_ENTER']:{_0x5e2ddf={'eventID':_0x5e9e5f[_0x1b9061(0x43a)],'joinEvent':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f['LIVESHARE_NEW_HOST']:{_0x5e2ddf={'eventID':_0x5e9e5f[_0x1b9061(0x450)],'liveShareNewHost':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f[_0x1b9061(0x3a8)]:{_0x5e2ddf={'eventID':_0x5e9e5f[_0x1b9061(0x3a8)],'liveShareOperation':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f[_0x1b9061(0x2cd)]:{_0x5e2ddf={'eventID':_0x5e9e5f['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xbcd260['data'][_0x1b9061(0x249)]};break;}case _0x5e9e5f[_0x1b9061(0x1eb)]:{_0x5e2ddf={'eventID':_0x5e9e5f[_0x1b9061(0x1eb)],'liveShareRequestHost':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f[_0x1b9061(0x36e)]:{_0x5e2ddf={'eventID':_0x5e9e5f['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5e2ddf={'eventID':_0xbcd260[_0x1b9061(0x249)]['eventID']};}return JSON[_0x1b9061(0x126)]({'cmd':_0xbcd260[_0x1b9061(0x42c)],'routeKey':_0xbcd260['routeKey'],'collaMsg':_0x5e2ddf});}case I[_0x1b9061(0x362)]:return JSON[_0x1b9061(0x126)]({'cmd':_0xbcd260['cmd'],'routeKey':_0xbcd260[_0x1b9061(0x431)],'joinReq':_0xbcd260[_0x1b9061(0x249)]});case I[_0x1b9061(0x359)]:return JSON['stringify']({'cmd':_0xbcd260[_0x1b9061(0x42c)],'routeKey':_0xbcd260['routeKey'],'leaveReq':_0xbcd260[_0x1b9061(0x249)]});default:throw new Error(_0x1b9061(0x158));}}var Mn=Object[_0x598a93(0x171)],An=Object['getOwnPropertyDescriptor'],Ln=(_0x34b1fd,_0x1d4347,_0x48b368,_0x57dc47)=>{const _0x3e899b=_0x598a93;for(var _0x27fbc4=_0x57dc47>0x1?void 0x0:_0x57dc47?An(_0x1d4347,_0x48b368):_0x1d4347,_0x4b034a=_0x34b1fd[_0x3e899b(0x45e)]-0x1,_0x56eea3;_0x4b034a>=0x0;_0x4b034a--)(_0x56eea3=_0x34b1fd[_0x4b034a])&&(_0x27fbc4=(_0x57dc47?_0x56eea3(_0x1d4347,_0x48b368,_0x27fbc4):_0x56eea3(_0x27fbc4))||_0x27fbc4);return _0x57dc47&&_0x27fbc4&&Mn(_0x1d4347,_0x48b368,_0x27fbc4),_0x27fbc4;},Re=(_0x4111c3,_0x30f335)=>(_0x415543,_0x571ca7)=>_0x30f335(_0x415543,_0x571ca7,_0x4111c3);const Ls=_0x9eee89('univer-pro.collaboration-client-socket-service');function $n(_0x1c64f0,_0x4d4d4a,_0x58f5b6){const _0x28096d=_0x598a93;return _0x1c64f0+'/'+_0x4d4d4a+'/unit/'+_0x58f5b6+_0x28096d(0x414);}let Et=class extends _0x24edb8{constructor(_0x2651c9,_0x20538e,_0x1bf210,_0x4b1b3e,_0x1c8d7e){const _0x363d49=_0x598a93;super(),this[_0x363d49(0x446)]=_0x2651c9,this[_0x363d49(0x453)]=_0x20538e,this[_0x363d49(0x2c2)]=_0x1bf210,this[_0x363d49(0x345)]=_0x4b1b3e,this[_0x363d49(0x2b8)]=_0x1c8d7e;}[_0x598a93(0x21b)](_0xa2358e){const _0x5e75f2=_0x598a93,_0x4855b3=this['_ws']['createSocket'](_0xa2358e);if(!_0x4855b3)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1c7f4e=new _0x1b0473(),_0x5268c5=new _0x2199d6();_0x1c7f4e[_0x5e75f2(0x187)](_0x4855b3[_0x5e75f2(0x46e)][_0x5e75f2(0x19e)](_0x19e286=>_0x5268c5[_0x5e75f2(0x12a)](_0x19e286))),_0x1c7f4e[_0x5e75f2(0x187)](_0x440d86(()=>_0x5268c5['complete']()));const _0x1a0712=new _0x2199d6();_0x1c7f4e[_0x5e75f2(0x187)](_0x4855b3['error$'][_0x5e75f2(0x19e)](_0x3ebf4a=>_0x1a0712[_0x5e75f2(0x12a)](_0x3ebf4a))),_0x1c7f4e['add'](_0x440d86(()=>_0x1a0712[_0x5e75f2(0x30a)]()));const _0x20a0b3=new _0x2199d6();_0x1c7f4e[_0x5e75f2(0x187)](_0x4855b3[_0x5e75f2(0x156)][_0x5e75f2(0x19e)](_0x594efd=>{const _0x4eef16=Nn(_0x594efd);_0x20a0b3['next'](_0x4eef16);})),_0x1c7f4e['add'](_0x440d86(()=>_0x20a0b3[_0x5e75f2(0x30a)]()));let _0x3fcdc6;const _0x25c70d=()=>{const _0x11d6a5=_0x5e75f2;_0x1a0712[_0x11d6a5(0x12a)](new Event(_0x11d6a5(0x2c3))),_0x5268c5[_0x11d6a5(0x12a)](new CloseEvent(_0x11d6a5(0x2c3))),_0x3fcdc6[_0x11d6a5(0x191)]();};return _0x3fcdc6={'memberID':'','close$':_0x5268c5[_0x5e75f2(0x1b6)](),'error$':_0x1a0712[_0x5e75f2(0x1b6)](),'open$':_0x4855b3[_0x5e75f2(0x205)],'message$':_0x20a0b3[_0x5e75f2(0x1b6)](),'send':_0x2ad6b8=>{const _0x4ce711=_0x5e75f2;if(_0x2ad6b8[_0x4ce711(0x42c)]===I['INGEST']){if(_0x2ad6b8[_0x4ce711(0x249)][_0x4ce711(0x1a6)]===_0x5e9e5f[_0x4ce711(0x236)]){this['_submitChangeset'](_0x3fcdc6,_0x2ad6b8[_0x4ce711(0x249)])[_0x4ce711(0x41f)](_0x18cc0e=>{const _0x1b08a8=_0x4ce711;this[_0x1b08a8(0x345)][_0x1b08a8(0x379)](_0x18cc0e),_0x25c70d();});return;}if(_0x2ad6b8[_0x4ce711(0x249)][_0x4ce711(0x1a6)]===_0x5e9e5f[_0x4ce711(0x401)]){const _0x432694=_0x2ad6b8[_0x4ce711(0x249)];this[_0x4ce711(0x459)](_0x432694)['then'](_0xa2c78c=>{const _0x8dcf40=_0x4ce711;_0x20a0b3['next']({'cmd':I['RECV'],'code':kt['OK'],'routeKey':_0x432694[_0x8dcf40(0x249)][_0x8dcf40(0x3a6)],'routeType':'','data':{'eventID':_0x5e9e5f[_0x8dcf40(0x17e)],'data':{'changesets':_0xa2c78c}}});})[_0x4ce711(0x41f)](_0x1194a3=>{const _0x10adfb=_0x4ce711;this[_0x10adfb(0x345)][_0x10adfb(0x379)](_0x1194a3),_0x25c70d();});return;}}_0x4855b3[_0x4ce711(0x31c)](Un(_0x2ad6b8));},'close':()=>{const _0xdc2e4=_0x5e75f2;_0x4855b3[_0xdc2e4(0x191)](),_0x1c7f4e[_0xdc2e4(0x308)]();}},_0x3fcdc6;}async[_0x598a93(0x419)](_0x3ccef0,_0x5059ad){const _0x2ab4c7=_0x598a93;var _0x309104,_0x91da03;const {unitType:_0x2d6a5c,unitID:_0x3a1abe,changeset:_0x2e1540}=_0x5059ad[_0x2ab4c7(0x249)],_0x2433b5={'unitID':_0x3a1abe,'memberID':_0x3ccef0[_0x2ab4c7(0x1b2)],'type':_0x2d6a5c,'changeset':_0x49c839(_0x2e1540)},_0x59dc5f=this[_0x2ab4c7(0x2c2)][_0x2ab4c7(0x12d)](On),_0x29cef3=this[_0x2ab4c7(0x2c2)][_0x2ab4c7(0x12d)](L),_0x58d478=$n((_0x91da03=(_0x309104=_0x29cef3==null?void 0x0:_0x29cef3[_0x2ab4c7(0x411)])!=null?_0x309104:_0x59dc5f)!=null?_0x91da03:Dn,_0x2d6a5c,_0x3a1abe);try{await this[_0x2ab4c7(0x446)][_0x2ab4c7(0x441)](_0x58d478,{'body':_0x2433b5});}catch(_0x30ffbf){throw this['_logService'][_0x2ab4c7(0x379)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0x30ffbf;}}async[_0x598a93(0x459)](_0x169d7f){const _0x2d583c=_0x598a93,{unitID:_0x13bf96,from:_0x5a8792,to:_0x5a5f22,unitType:_0x4d8117}=_0x169d7f['data'];return(await this['_snapshotServerService'][_0x2d583c(0x39a)]({'metadata':void 0x0},{'unitID':_0x13bf96,'type':_0x4d8117,'from':_0x5a8792,'to':_0x5a5f22}))[_0x2d583c(0x230)];}};Et=Ln([Re(0x0,_0x592774(_0x4b4f20)),Re(0x1,_0x592774(_0x2cafbe)),Re(0x2,_0x3fc6a0),Re(0x3,_0x1281de),Re(0x4,_0x33411f)],Et);const jn=_0x598a93(0x341);function xn(_0x544fa7){const _0x2a67c0=_0x598a93;return JSON[_0x2a67c0(0x126)](_0x544fa7)[_0x2a67c0(0x45e)];}function _0x3306(){const _0x4a00a9=['_hover','_getSnapshotAPIPrefix','UniverIcon','isPermissionRej','_schedule','url(#on-line-single_clip0_910_349)','getUnhiddenWorksheets','_lockTransition','readAsDataURL','_handleEvent','labelPosition','LIVESHARE_FETCH_OPERATIONS','hidden','onlyLocal','_scheduleClearOtherTimer','/universer-api/oidc/authpage','isActive','APPLY_REVISION_CONFILICT','infoRsp','disposeUnit','_members','SNAPSHOT_SERVER_URL_KEY','error','/object/','SNAPSHOT_URL_KEY','authzUrl','localeService','currentSkeleton$','sheetID','getMergeData','2928951DJdVGL','_eventUnsubscribe','_hovered','_getSheetObject','collabWebSocketUrl','_send','transformRemoteChangeset','prototype','APPLY_NON_SEQUENTIAL_REVISION','OffLineSingle','_clearTimeoutTimer','on-line-single_clip0_910_349','/-/object/-/batch_allowed','isArray','unshift','MoveRangeCommandId','isEditing','SEND_CHANGESET_TIMEOUT','HEARTBEAT_INTERVAL','actions','executeCommand','setCurrentUser','fetchMiss','unsubscribe','_transformIMECache','fetchMissingChangesets','concat','_getCurrentRevision','_hideTimer','withCredentials','_showConflictNotification','collab-text-range-','getTypeOfUnitAdded$','body','[OfflineState]:\x20received\x20changeset.','_status$','collabStatus.fetchMiss','unitID','backgroundColor','LIVESHARE_OPERATION','RemoveRowCommandId','toRgbString','min','_updateLocalCursor','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_scheduleSaving','column','function','closeSession','syncEditingCollabCursor','univer-online','_handleHover','url','UNIVER_PROJECT','image/png','updateMember','\x20to\x20','_onCursorDelete','ALREADY_EXISTS','getWorkbookSelections','_telemetryInfo','_online','HEARTBEAT_TIMEOUT','_throwTelemetryCollaborationNewChangeset','PENDING','getFocusedUnit','_setupBeforeClosingHandler','measureText','\x0aCurrent:\x20','listRoles','create','_disabled','_sessions','YUUMI_URL_COL_OUT_OF_RANGE','image/gif','transformMutationsWithChangeset','&assign=','registerRenderModule','auth.needGotoLoginAlert','CHANGESET_REJ','_instanceService','_initCloseConn','POST','_getRedoStack','createCollaborator','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','name','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','indexOf','UUID','Error\x20on\x20receiving\x20event','getMemberID','height','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_substituteRedoStack','_lastPointer','uni.network.url-service','/-/object/list','_queuedRemoteChangesets','_drawRectRange','_handleJoinEvent','assignAColorForMemberID','interceptor','reject','/resources','10SZgcly','PERMISSION_DENIED','INGEST','permissionRejEvent','some','_onRemoteChangeset','FETCH_MISS','_httpService','COMMENT_UPDATE','_commentService','collabStatus.syncing','_getUploadFileURL','_isPermissionRej','_initStatusComponent','_backgroundColor','setItem','collab-client.tooltip.reconnect','mutations','rev','CONNECTOR_DATA_TOO_LARGE','_handleLeaveEvent','session','drawWith','FETCH_MISSING','getUnitType','apply','reconnect','endRow','HEARTBEAT','members','makeDirty','unit-cache-','session.will-retry','MSG_FOR_ERROR','onCommentUpdate','_compressMutationService','[PendingState]:\x20received\x20rejection.','_collaborationController','247047mTKIhR','collabSubmitChangesetUrl','endColumn','_onRemoteRejected','/new_changes','toggleOnline','onPointerMove$','compose','assign','_submitChangeset','replaceState','AWAITING_WITH_PENDING','getUniverSheetInstance','removeMember','setTimeout','catch','_clearLocalCache','storage','_themeService','_rescheduleHeartbeat','registerRefRange','onMissingChangesets','/universer-api/file/{fileID}/sign-url','editingUnit','translate(.97)','_waitForHeartbeatResponse','_clearOtherTimers','_applyRemoteChangeset','cmd','_session','getSheetBySheetId','_onRemoteACK','collaMsg','routeKey','startRow','onMissedChangesetFetched','0\x200\x2017\x2016','1151112GnYNxR','UNIVER_UNKNOWN','LICENSE_EXPORT_SIZE_EXCEEDED','#FFF','_unlockTransition','USERS_ENTER','_transformSelections','transformIMECache','revision','_ensureSubject','_range','_replaceFileID','post','loadOfflineData','YUUMI_UNABLE_LOAD_URL','enableAuthServer','InsertRangeMoveDownCommandId','_http','_initStatusListener','text','_initEventListeners','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','currentTheme$','socket$','SUCCUSS','getUnitOnRev','FromArray','LIVESHARE_NEW_HOST','_onCursorUpdate','loadDoc','_ws','status','list','color','fetchThroughInterceptors','_anchorDot','_fetchMissChangesets','univer-online-status','setInterval','_saveCache','collaboration-client.config','length','createElement','failed\x20to\x20apply\x20missed\x20changesets!','_toggleOffline','disableLocalCache','target','children','_removeRoom','createInstance','getRelativeToViewportCoord','snapshotServerUrl','FAIL','setParam','_collaborationTimeoutTimer','collab-rect-range-','triggerDblclick','close$','unitId','responseType','_entities','_roomMembers','stopTime','verdancy600','_startTelemetryCollaborationNewChangeset','_initUnitPermissionChange','leaveEvent','unload','bottom','getCurrent','_textBubble','onTransformChange$','objects','_onCombEvent','getValue','getImage','getResourcesRequest','startsWith','_sheetSkeletonManagerService','fillRule','[CollaborationState]:\x20apply\x20error!','requireSession','_cursor','_onUserLeave','unknown','now','_cachedData','INVALID_ARGUMENT','whenReady','_roomMembers$','OFFLINE','_exhaustRemoteChangesetQueue','_syncEditingCollabCursor','_injector','getSheetId','_loadDoc','_docSyncEditingCollabCursorService','[SyncedState]:\x20received\x20acknowledgement.','getActiveSheet','stringify','CHANGESET_ACK','_unitID','_socket$','next','requestParams','registerComponent','getConfig','_collabSessionService','_shapes','_commentUpdate$','contains','_getAPIPrefixPath','addObject','_getSignURL','top','range','NOT_FOUND','UNDEFINED','_docTransformIMECacheService','Unknown\x20user','m2Prime','onTransformIME','awaiting_with_pending','transformByState','APPLY_PERMISSION_DENIED','displayName','resend','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','parse','_color','slice','title','disposeWithMe','BASE64','_onFetchMissResult','_getAnchorBounding','clearTimeout','getUnitId','transformStack\x20failed!','size','_initCommandExecutedListener','string','key','image/bmp','reduce','colorChannel1','_candidateSocket','message$','_notificationService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_tryEnsureSocket','_incrementRevisionNumber','COLLAB_WEB_SOCKET_URL','_collaborationPaused','getRoom','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getSkeleton','SNAPSHOT_INVALID_SNAPSHOT','_transformUndoredo','NO_OTHER_CLIENTS_EDITING','_refRangeService','UNAUTHENTICATED','result','_retryCount','ERROR_EXCEED_SIZE','_onRecvEvent','onSyncEditingCollabCursor','setAlpha','UnitEmbedded','objectActions','src','toggleOffline','getCurrentRevOfUnit','170TZijkd','defineProperty','code','cursorInfo$','UNIVER_SHEET','get','updateOfflineData','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getRangePointData','collabStatus.synced','_singleActiveUnitService','hasOwnProperty','sendChangesetTimeout','UNIVER_DOC','PSEUDO_FETCH_MISSING_RESULT','_messageService','roomMembers','_handleHeartbeatEvent','_getAPIPrefix','_drawTextRange','YUUMI_RATE_OVER_LIMIT','_getSaveTimeout','_removeCollabCursors','add','override','_labelPosition','_type','_transformUndoRedoStack','_assignedColors','ERROR_IMAGE','collabCursorState$','NEW_CHANGESETS','_transformRemoteChangesetByIMECache','close','black','put','_collabCursorState$','_collabCursorController','subUnitId','_removeClearOtherTimer','_transitionLocked','_decreaseWaiting','_imageSourceCache','_updateCollabCursors','beginPath','attrs','subscribe','updateCursorEvent','change$','_startSheetCollabCursor','joinRsp','onSendChangeset','_docSkeleton','width','eventID','_onJoinRoomEvent','univerjs-icon\x20univerjs-icon-','idSuffix','sessionStatus$','updatePermissionObjEvent','collaboration.closeRoom','defIds','1652vcgnVH','has','tag','fetch_missing','memberID','_listenToOnlineEvent','_loadSheet','_setupSubUnitSync','asObservable','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','UNKNOWN_CMD','COLLAB_SUBMIT_CHANGESET_URL','_urlService','action','_scene','newValue','m1Prime','UNRECOGNIZED','_telemetryService','addImageSourceCache','_scheduleTimestamp','restore','_context','pending','rgba(255,\x20255,\x20255,\x200.01)','loginUrlKey','icon','APPLY_REJECT','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getOwnPropertyDescriptor','SHOULD_CLOSE_CONN','univer-online-status-icon','_startCollaboration','[SyncedState]:\x20received\x20rejection.','_updateState','_transformService','ranges','univer-pro.collaboration-client.single-active-unit-service','_toggleOnline','_sendHeartbeat','Warning','hovered','_event$','_onUserJoin','IDLE','PERMISSION_REJ','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','_createHandler','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_transformStack','defs','_heartbeatTimer','\x20in\x20_schedule.','cursorInfo','getOffsetConfig','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','deepClone','objectType','csRejEvent','_substituteUndoStack','LIVESHARE_REQUEST_HOST','updateCollaborator','[CollaborationUndoRedoService]','...','clipPath','setWaitCount','InsertRowCommandId','_clearCollaborationTimeoutTimer','shouldCloseConn','getCollabEntity$','dispose$','xlink:href','split','M0\x200H16V16H0z','session.connection-failed','univer-online-status-title','getTime','_initMergeInterceptor','status$','toString','collaboratorID','selection','addEventListener','map','setShapeProps','_onRefRangeChange','open$','_clearScheduledTask','event$','current','lineTo','registerOnClose','_sendingTimer','/role','_registerDependencies','/collaborator','_docSkeletonManagerService','_onLocalMutation','_checkMissing','getItem','/unit/','_colorAssignService','session.collaboration-timeout','fillText','init','startTime','conflict','registerBeforeClose','createSocket','_document','UnitSnapshot','show','hide','/universer-api/authz','appendMutation','purple300','TOO_MANY_REQUESTS','ERROR_IMAGE_TYPE','_socketService','&source=','online','CONFLICT','searchParams','_sessionStatus$','[FetchMissState]','pipe','LICENSE_MAX_UNITS_EXCEEDED','random','userID','changesets','getCurrentSelections','_collaborationSessionService','_undoRedoService','offline','history','SUBMIT_CHANGESET','getAncestorScale','_unitOnClients','_updateLocalCache','filter','_cursors','max','className','onReady','_socket','onRemoteChangeset','getUndoRedoMutationParamsCache','with','/allowed','5wcvzdO','popstate','svg','incrementRevOfUnit','_getLoginPath','data','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[CollaborationSessionService]:\x20socket\x20error','getTypeOfUnitDisposed$','_retryConnectingTimer','round','fromCollab','socketService','sheetId','UNIVER_COLLABORATION_CLIENT_PLUGIN','Error','Univer','_socketMessageSubscription','reverse','find','getParam','_state$','originalMeta','enableOfflineEditing','onPointerLeave$','getCollabCursors$','988484dYRIwb','_renderManagerService','RETRY_CONNECTING_MAX_COUNT','_permissionService','SNAPSHOT_HAS_BEEN_REMOVED','/object','forEach','/universer-api/comb','COMPRESS_MUTATION_APPLY','engine','clearInterval','replaceTextRanges','collaboration-client.offline-data-not-saved','_drawAnchor','_pendingMutations','closePath','transformMutation','transformUndoRedo','onPointerEnter$','LOGIN_URL_KEY','c1Prime','_entityInit$','transform','initWorkbookPermissionChange','debug','getMember','/fetchmissing?from=','getViewport','_getSendChangesetTimeout','INTERNAL_ERROR','_startDocCollabCursor','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','params','encodeURIComponent','onCommandExecuted','signUrlServerUrl','_snapshotService','/rev/','[PendingState]:\x20unhandled\x20univer\x20type:\x20','collaboration-session-retry','DEFAULT_FILE_NAME','_createInitialStateImpl','image/jpeg','USERS_LEAVE','7584QnNlgT','[DataLoaderController]','getActiveRange','transformChangesets','copyFileMeta','subunit','_init','_awaitingChangeset','UNKNOWN_CODE','_replayCachedMutations','UPDATE_CURSOR','univer-offline','COMPLETION_FINISHED','_commandService','headers','all','DeleteRangeMoveLeftCommandId','saveSheetBlock','?size=','type','onRemoteRej','_draw','_id','_listenToOfflineEvent','urlChange$','batchAllowed','collaboration.single-unit.warning','focused$','font','onlineStatus','currentColor','_docStateChangeManagerService','_name','/block/','roomMembers$','_stopTelemetryCollaborationNewChangeset','commentUpdateEvent','values','uploadFileServerUrl','_revisionService','getImageSourceCache','_initRequestHeader','OTHER_CLIENTS_EDITING','error$','_cursorInfo$','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_snapshotServerService','textRanges','_updateURLWithCurrentState','href','_localStorageService','location','unitId\x20is\x20not\x20found','_syncEditingCollabCursorService','fillStyle','getInterceptPoints','_configService','connection\x20error','_colorIndex','_clearRedo','_anchor','HELLO','delete','registerHTTPInterceptor','_getUndoStack','_timeoutTimer','_clearHeartbeatTimer','LIVESHARE_TERMINATE','getDocRanges','row','saveImage','ACTIVE_UNIT_EVENT_CHANNEL','InsertRangeMoveRightCommandId','_getScale','VIEW_MAIN','getCurrentUser','method','CHANGESET_REVISION_CONFILICT','_sendHeartbeatTimer','exhaustSavingTask','[CollaborationSessionService]','conflict.content','_cursorShapes','awaitingChangeset','_config','unit','_tryReconnect','RECV','NOT_COLLAB','encode','_userManagerService','4430nCIOmT','_initModules','none','_clearUndo','4646290vReWur','_getCtorByUniverType','_state','UNIVER_SLIDE','baseRev','_shouldReportTelemetry','_createSocket','_onConnectionFailed','\x0aAfter:\x20','subscribeEvent','getRenderById','_unitStatus','addObjects','AWAITING','blue400','LICENSE_DISTRO_REJECTED','_getMergeRange','evenodd','HttpExport','_localCacheService','getSheetBlock','not_collab','_onConflict','_executeRemoteChangeset','_updateStatus','1em','onMouseMove','transformSelections','_scheduleCollaborationTimeoutTimer','updatePermissionPoint','MUTATION','dispose','_saveTaskMap','complete','_scheduleHeartbeat','from','awaiting','selections','arc','doc.mutation.rich-text-editing','loadSheet','_waitCount','newCsEvent','set','_onConnectionOpen','_redoStacks','DeleteRangeMoveUpCommandId','getCollabEntity','csAckEvent','_undoStacks','patch','send','collabStatus.conflict','_remoteChangesetQueue','UPDATE_PERMISSION_OBJ','JOINING','_acknowledgedAwaitingChangeset','state$','_selfUnitIDs','substring','_beforeCloseService','session.room-full','call','InsertColCommandId','SYNCED','_socketReady','objectID','onTransformRemoteChangesetByIMECache','replace','_handler','onTransformSelections','fill','off-line-single_clip0_910_343','setActiveRange','_localeService','onRemoteAck','onStateChange','trim','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','[CollaborationEntity]','update','gold400','generateRandomId','collab-text-anchor-','synced','then','pushState','removeParam','collaboration_new_changeset','_createInitialState','_univerInstanceService','symbol','_logService','path','onlineStatusTitle','_memberService','_HTTPService','{fileID}','getUnitStatus$','jiqing500','_change$','push','_joinRoom','save','#fff','div','FileId','_transformPreviousActiveRange','[UniverCollaborationClientPlugin]','liveShareNewHost','_render','findNodePositionByCharIndex','LEAVE','_onOffline','resourceIDs','clear','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','includes','ONLINE','_refreshCollabCursors','retryConnectingInterval','JOIN'];_0x3306=function(){return _0x4a00a9;};return _0x3306();}class $s{constructor(){const _0x3a4397=_0x598a93;l(this,_0x3a4397(0x130),new _0x2199d6()),l(this,'commentUpdate$',this[_0x3a4397(0x130)]['asObservable']());}[_0x598a93(0x40c)](_0x59638b){this['_commentUpdate$']['next'](_0x59638b);}}var Hn=Object[_0x598a93(0x171)],kn=Object['getOwnPropertyDescriptor'],Bn=(_0xbc00a7,_0xbe3d2e,_0x3941c6,_0x4ae520)=>{for(var _0x41fce3=_0x4ae520>0x1?void 0x0:_0x4ae520?kn(_0xbe3d2e,_0x3941c6):_0xbe3d2e,_0x1f7236=_0xbc00a7['length']-0x1,_0x15b012;_0x1f7236>=0x0;_0x1f7236--)(_0x15b012=_0xbc00a7[_0x1f7236])&&(_0x41fce3=(_0x4ae520?_0x15b012(_0xbe3d2e,_0x3941c6,_0x41fce3):_0x15b012(_0x41fce3))||_0x41fce3);return _0x4ae520&&_0x41fce3&&Hn(_0xbe3d2e,_0x3941c6,_0x41fce3),_0x41fce3;},rs=(_0x23a70b,_0x21748f)=>(_0x570815,_0x5e1f77)=>_0x21748f(_0x570815,_0x5e1f77,_0x23a70b);let ae=class extends _0x24edb8{constructor(_0xbfd734,_0x4be8e5){const _0x294422=_0x598a93;super(),l(this,_0x294422(0x472),new Map()),(this['_univerInstanceService']=_0xbfd734,this['_userManagerService']=_0x4be8e5,this['disposeWithMe'](_0x440d86(_0x4c82f1(this[_0x294422(0x343)][_0x294422(0x24c)](_0x33d049[_0x294422(0x174)])['pipe'](_0x4eca0b(_0x162cfd=>_0x162cfd[_0x294422(0x14c)]())),this[_0x294422(0x343)]['getTypeOfUnitDisposed$'](_0x33d049[_0x294422(0x17d)])[_0x294422(0x22c)](_0x4eca0b(_0x57ff96=>_0x57ff96[_0x294422(0x14c)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x33d049[_0x294422(0x2ec)])[_0x294422(0x22c)](_0x4eca0b(_0x39a596=>_0x39a596[_0x294422(0x14c)]())))[_0x294422(0x19e)](_0x344ae1=>this[_0x294422(0x465)](_0x344ae1)))));}[_0x598a93(0x396)](_0x3d97d1){const _0x4bba85=_0x598a93;this['_userManagerService'][_0x4bba85(0x396)](_0x3d97d1);}[_0x598a93(0x2d5)](){const _0x18d775=_0x598a93;return this[_0x18d775(0x2e4)]['getCurrentUser']();}[_0x598a93(0x3b8)](_0x25e53f,_0x4ee509){const _0x2aab3d=_0x598a93;let _0x47e0b3=this['_roomMembers'][_0x2aab3d(0x175)](_0x25e53f);_0x47e0b3||(_0x47e0b3=new Vn(),this[_0x2aab3d(0x472)][_0x2aab3d(0x314)](_0x25e53f,_0x47e0b3)),_0x47e0b3[_0x2aab3d(0x3b8)](_0x4ee509);}[_0x598a93(0x41d)](_0x4fd00e,_0x32bc74){const _0x3891be=_0x598a93,_0x149add=this['_roomMembers'][_0x3891be(0x175)](_0x4fd00e);_0x149add&&_0x149add[_0x3891be(0x41d)](_0x32bc74);}[_0x598a93(0x15d)](_0x4b06e7){const _0x5cddde=_0x598a93;return this[_0x5cddde(0x472)]['get'](_0x4b06e7);}[_0x598a93(0x277)](_0x240ed8,_0x239b85){const _0x584a4c=_0x598a93,_0x457e94=this[_0x584a4c(0x472)][_0x584a4c(0x175)](_0x240ed8);if(_0x457e94)return _0x457e94[_0x584a4c(0x277)](_0x239b85);}[_0x598a93(0x465)](_0x1c980c){const _0x553f1a=_0x598a93,_0x42d337=this[_0x553f1a(0x472)][_0x553f1a(0x175)](_0x1c980c);_0x42d337&&(_0x42d337[_0x553f1a(0x308)](),this[_0x553f1a(0x472)]['delete'](_0x1c980c));}[_0x598a93(0x308)](){const _0x1c4b84=_0x598a93;this[_0x1c4b84(0x472)][_0x1c4b84(0x264)](_0x1316f9=>_0x1316f9[_0x1c4b84(0x308)]()),this[_0x1c4b84(0x472)][_0x1c4b84(0x35c)]();}};ae=Bn([rs(0x0,_0x191290),rs(0x1,_0x592774(_0x50b499))],ae);class Vn extends _0x24edb8{constructor(){const _0x230a3a=_0x598a93;super(...arguments),l(this,_0x230a3a(0x377),new Map());}['dispose'](){const _0x4b3e74=_0x598a93;this[_0x4b3e74(0x377)]['clear']();}[_0x598a93(0x3b8)](_0x4b150e){const _0x20fb06=_0x598a93;this['_members'][_0x20fb06(0x314)](_0x4b150e['memberID'],_0x4b150e);}[_0x598a93(0x41d)](_0x2dc234){const _0x1603c6=_0x598a93;this[_0x1603c6(0x377)][_0x1603c6(0x2c8)](_0x2dc234);}[_0x598a93(0x277)](_0xe1d004){const _0x4dd94f=_0x598a93;return this[_0x4dd94f(0x377)]['get'](_0xe1d004);}}var Fn=Object['defineProperty'],Wn=Object['getOwnPropertyDescriptor'],Gn=(_0x580a4e,_0x12b7e1,_0x8f1d5c,_0x4530ed)=>{const _0x2533bb=_0x598a93;for(var _0x18426c=_0x4530ed>0x1?void 0x0:_0x4530ed?Wn(_0x12b7e1,_0x8f1d5c):_0x12b7e1,_0x402329=_0x580a4e[_0x2533bb(0x45e)]-0x1,_0x1dab37;_0x402329>=0x0;_0x402329--)(_0x1dab37=_0x580a4e[_0x402329])&&(_0x18426c=(_0x4530ed?_0x1dab37(_0x12b7e1,_0x8f1d5c,_0x18426c):_0x1dab37(_0x18426c))||_0x18426c);return _0x4530ed&&_0x18426c&&Fn(_0x12b7e1,_0x8f1d5c,_0x18426c),_0x18426c;},J=(_0x18ff4b,_0x5d02ff)=>(_0x1b2927,_0x53fdcb)=>_0x5d02ff(_0x1b2927,_0x53fdcb,_0x18ff4b),G=(_0x58b319=>(_0x58b319[_0x58b319[_0x598a93(0x1da)]=0x0]=_0x598a93(0x1da),_0x58b319[_0x58b319[_0x598a93(0x320)]=0x1]='JOINING',_0x58b319[_0x58b319[_0x598a93(0x11d)]=0x2]='OFFLINE',_0x58b319[_0x58b319['ONLINE']=0x3]=_0x598a93(0x35f),_0x58b319))(G||{});let Ct=class extends _0x39a217{constructor(_0x1cf149,_0x128a24,_0x540712,_0x58e55c,_0x2e4575,_0x35f43a,_0x515940,_0x585f77,_0x5c105b,_0x4a3236){const _0xa1cffc=_0x598a93;super(),l(this,'_sessionStatus$',new _0x59597c(0x0)),l(this,_0xa1cffc(0x1aa),this[_0xa1cffc(0x22a)]['asObservable']()),l(this,_0xa1cffc(0x1d8),new _0x2199d6()),l(this,'event$',this[_0xa1cffc(0x1d8)][_0xa1cffc(0x1b6)]()),l(this,'_socket'),l(this,_0xa1cffc(0x255)),l(this,_0xa1cffc(0x46b)),l(this,_0xa1cffc(0x2ee),!0x1),l(this,_0xa1cffc(0x3bd),null),(this[_0xa1cffc(0x128)]=_0x1cf149,this[_0xa1cffc(0x345)]=_0x540712,this['_beforeCloseService']=_0x58e55c,this[_0xa1cffc(0x17f)]=_0x2e4575,this[_0xa1cffc(0x2c2)]=_0x35f43a,this['_localeService']=_0x515940,this[_0xa1cffc(0x348)]=_0x585f77,this['_commentService']=_0x5c105b,this[_0xa1cffc(0x1c0)]=_0x4a3236,this[_0xa1cffc(0x2ee)]=!!this[_0xa1cffc(0x1c0)],_0x128a24[_0xa1cffc(0x22c)](_0x5c2c79(this[_0xa1cffc(0x1f5)]))[_0xa1cffc(0x19e)](_0x3a2fab=>{const _0x1a7648=_0xa1cffc;var _0x135757;typeof _0x3a2fab>'u'||(this[_0x1a7648(0x23f)]=_0x3a2fab,_0x3a2fab?(this[_0x1a7648(0x34f)](_0x3a2fab),this[_0x1a7648(0x255)]=_0x3a2fab[_0x1a7648(0x156)][_0x1a7648(0x19e)](_0x414974=>{const _0x49265c=_0x1a7648;_0x414974[_0x49265c(0x431)]===this[_0x49265c(0x128)]&&this[_0x49265c(0x47e)](_0x414974);})):(this[_0x1a7648(0x3c0)](),this[_0x1a7648(0x22a)]['next'](0x2),(_0x135757=this[_0x1a7648(0x255)])==null||_0x135757['unsubscribe'](),this['_socketMessageSubscription']=null));}),this[_0xa1cffc(0x147)](this[_0xa1cffc(0x325)][_0xa1cffc(0x20a)](()=>{const _0x53ac2c=_0xa1cffc;var _0x259477;(_0x259477=this['_socket'])==null||_0x259477['send']({'cmd':I[_0x53ac2c(0x359)],'data':{'roomID':this[_0x53ac2c(0x128)]}});})));}get['sessionStatus'](){return this['_sessionStatus$']['getValue']();}[_0x598a93(0x3dc)](){const _0x132b58=_0x598a93;var _0x314cd6,_0x3fe651;return(_0x3fe651=(_0x314cd6=this[_0x132b58(0x23f)])==null?void 0x0:_0x314cd6[_0x132b58(0x1b2)])!=null?_0x3fe651:null;}[_0x598a93(0x308)](){const _0x1a682c=_0x598a93;super[_0x1a682c(0x308)](),this[_0x1a682c(0x1f5)][_0x1a682c(0x12a)](),this[_0x1a682c(0x1f5)]['complete']();}['close'](){const _0x4b6d46=_0x598a93;var _0x41f437,_0x4fa170;this[_0x4b6d46(0x3c0)](),(_0x41f437=this[_0x4b6d46(0x23f)])==null||_0x41f437[_0x4b6d46(0x31c)]({'cmd':I[_0x4b6d46(0x359)],'data':{'roomID':this[_0x4b6d46(0x128)]}}),(_0x4fa170=this[_0x4b6d46(0x23f)])==null||_0x4fa170['close'](),this[_0x4b6d46(0x1d8)][_0x4b6d46(0x30a)](),this['_sessionStatus$'][_0x4b6d46(0x30a)](),this['dispose']();}['_onCombEvent'](_0x46e7d2){const _0x3fb026=_0x598a93;_0x46e7d2['cmd']===I[_0x3fb026(0x362)]?this['_onJoinRoomEvent'](_0x46e7d2):_0x46e7d2[_0x3fb026(0x42c)]===I['RECV']&&this[_0x3fb026(0x168)](_0x46e7d2);}['_joinRoom'](_0x529d38){const _0xb60e2c=_0x598a93;this[_0xb60e2c(0x22a)][_0xb60e2c(0x12a)](0x1),_0x529d38[_0xb60e2c(0x31c)]({'cmd':I[_0xb60e2c(0x362)],'routeKey':this[_0xb60e2c(0x128)],'routeType':'','data':{'rooms':[{'roomID':this[_0xb60e2c(0x128)]}]}});}[_0x598a93(0x1a7)](_0x223bbe){const _0x5d1a9d=_0x598a93;var _0x39057a;if(_0x223bbe[_0x5d1a9d(0x172)]===kt[_0x5d1a9d(0x469)]){this[_0x5d1a9d(0x17f)][_0x5d1a9d(0x21e)]({'type':_0x19f1bd[_0x5d1a9d(0x1d6)],'content':this['_localeService']['t'](_0x5d1a9d(0x326))}),this[_0x5d1a9d(0x22a)]['next'](0x2);return;}this[_0x5d1a9d(0x22a)]['next'](0x3);const _0x4681fd=(_0x39057a=_0x223bbe[_0x5d1a9d(0x249)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x39057a[_0x5d1a9d(0x407)];_0x4681fd&&_0x4681fd['forEach'](_0x11ecb4=>this[_0x5d1a9d(0x348)]['updateMember'](this['_unitID'],_0x11ecb4));}[_0x598a93(0x168)](_0x326bd8){const _0x10d350=_0x598a93;try{const _0xf0a39d=_0x326bd8[_0x10d350(0x249)];switch(_0xf0a39d[_0x10d350(0x1a6)]){case _0x5e9e5f[_0x10d350(0x43a)]:this[_0x10d350(0x1d9)](_0xf0a39d),this['_event$'][_0x10d350(0x12a)](_0xf0a39d);break;case _0x5e9e5f['USERS_LEAVE']:this[_0x10d350(0x116)](_0xf0a39d),this['_event$'][_0x10d350(0x12a)](_0xf0a39d);break;case _0x5e9e5f['CHANGESET_ACK']:this[_0x10d350(0x2ad)](),this[_0x10d350(0x1f2)](),this[_0x10d350(0x1d8)][_0x10d350(0x12a)](_0xf0a39d);break;case _0x5e9e5f['MSG_FOR_ERROR']:this[_0x10d350(0x345)][_0x10d350(0x379)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x10d350(0x126)](_0xf0a39d)),this[_0x10d350(0x1d8)]['next'](_0xf0a39d);break;case _0x5e9e5f[_0x10d350(0x3f2)]:this[_0x10d350(0x3f3)][_0x10d350(0x40c)](_0xf0a39d[_0x10d350(0x249)]),this['_event$'][_0x10d350(0x12a)](_0xf0a39d);break;default:this[_0x10d350(0x1d8)][_0x10d350(0x12a)](_0xf0a39d);}}catch(_0x3d68ae){this[_0x10d350(0x345)][_0x10d350(0x379)](_0x3d68ae,_0x326bd8);}}[_0x598a93(0x1d9)](_0x399910){const _0x1aa4b1=_0x598a93;this['_memberService'][_0x1aa4b1(0x3b8)](this[_0x1aa4b1(0x128)],_0x399910[_0x1aa4b1(0x249)]);}['_onUserLeave'](_0x567fb2){const _0x1f0e24=_0x598a93;this[_0x1f0e24(0x348)][_0x1f0e24(0x41d)](this['_unitID'],_0x567fb2[_0x1f0e24(0x249)]['memberID']);}async[_0x598a93(0x31c)](_0x4cc37c,_0x12adaf){const _0x19be39=_0x598a93;if(this['sessionStatus']!==0x3||!this[_0x19be39(0x23f)])throw new Error(_0x19be39(0x1e5));try{_0x4cc37c[_0x19be39(0x1a6)]===_0x5e9e5f[_0x19be39(0x236)]&&(this[_0x19be39(0x305)](),this[_0x19be39(0x475)](_0x4cc37c)),this['_socket']['send']({'cmd':I[_0x19be39(0x3ec)],'routeKey':_0x12adaf,'routeType':'','data':_0x4cc37c});}catch(_0x285ec8){this[_0x19be39(0x345)][_0x19be39(0x379)](_0x285ec8);}}[_0x598a93(0x305)](){const _0x32c712=_0x598a93;var _0x1697b7;this[_0x32c712(0x46b)]=window[_0x32c712(0x41e)](()=>{const _0xdd91bb=_0x32c712;this['_collaborationTimeoutTimer']=null,this[_0xdd91bb(0x17f)][_0xdd91bb(0x21e)]({'type':_0x19f1bd[_0xdd91bb(0x253)],'content':this[_0xdd91bb(0x333)]['t'](_0xdd91bb(0x215))});},(_0x1697b7=this['_configService']['getConfig'](Ns))!=null?_0x1697b7:Us);}[_0x598a93(0x1f2)](){const _0x47f6de=_0x598a93;this[_0x47f6de(0x46b)]&&(clearTimeout(this[_0x47f6de(0x46b)]),this[_0x47f6de(0x46b)]=null);}[_0x598a93(0x475)](_0x4a67ca){const _0x3bfa2c=_0x598a93;if(!this['_shouldReportTelemetry'])return;const {data:_0x441ec1}=_0x4a67ca,{unitID:_0x67ed36,changeset:_0x5242f1}=_0x441ec1,{mutations:_0x38fec8,type:_0x3862a3}=_0x5242f1;this['_telemetryInfo']={'unitId':_0x67ed36,'type':_0x3862a3,'startTime':performance[_0x3bfa2c(0x118)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x38fec8)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x4bcca7=_0x598a93;if(this[_0x4bcca7(0x2ee)]){if(!this[_0x4bcca7(0x3bd)]){this[_0x4bcca7(0x345)][_0x4bcca7(0x379)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x4bcca7(0x3bd)]['stopTime']=performance[_0x4bcca7(0x118)](),this[_0x4bcca7(0x3bd)]['duration']=this[_0x4bcca7(0x3bd)][_0x4bcca7(0x473)]-this[_0x4bcca7(0x3bd)][_0x4bcca7(0x218)],this[_0x4bcca7(0x1c0)]['capture'](jn,this[_0x4bcca7(0x3bd)]),this[_0x4bcca7(0x3bd)]=null;}}[_0x598a93(0x3c0)](){const _0x5e4e2c=_0x598a93;this[_0x5e4e2c(0x3bd)]=null;}};Ct=Gn([J(0x2,_0x1281de),J(0x3,_0x4fb0d0),J(0x4,_0x369676),J(0x5,_0x3fc6a0),J(0x6,_0x592774(_0x2af7ec)),J(0x7,_0x592774(ae)),J(0x8,_0x592774($s)),J(0x9,_0x3372cb(_0x5c9e3c))],Ct);var Yn=Object[_0x598a93(0x171)],Kn=Object[_0x598a93(0x1cb)],Xn=(_0x4b225d,_0x80386e,_0x509708,_0x12444c)=>{const _0xeb0a5c=_0x598a93;for(var _0x4efeb3=_0x12444c>0x1?void 0x0:_0x12444c?Kn(_0x80386e,_0x509708):_0x80386e,_0x2b5885=_0x4b225d[_0xeb0a5c(0x45e)]-0x1,_0x460f68;_0x2b5885>=0x0;_0x2b5885--)(_0x460f68=_0x4b225d[_0x2b5885])&&(_0x4efeb3=(_0x12444c?_0x460f68(_0x80386e,_0x509708,_0x4efeb3):_0x460f68(_0x4efeb3))||_0x4efeb3);return _0x12444c&&_0x4efeb3&&Yn(_0x80386e,_0x509708,_0x4efeb3),_0x4efeb3;},de=(_0x4ec836,_0xf8ba4d)=>(_0x56af56,_0x10b12a)=>_0xf8ba4d(_0x56af56,_0x10b12a,_0x4ec836);let ce=class extends _0x24edb8{constructor(_0x263096,_0x229eb2,_0x4d8be1,_0x2b1318,_0x4b22b2,_0xe164d){const _0xad2070=_0x598a93;super(),l(this,'_socket$',new _0x59597c(void 0x0)),l(this,_0xad2070(0x44c),this[_0xad2070(0x129)][_0xad2070(0x1b6)]()),l(this,_0xad2070(0x155),null),l(this,_0xad2070(0x3c9),new Map()),l(this,_0xad2070(0x3a4),new _0x59597c(G[_0xad2070(0x1da)])),l(this,_0xad2070(0x1fd),this[_0xad2070(0x3a4)]['asObservable']()),l(this,_0xad2070(0x32a),!0x1),l(this,_0xad2070(0x24d)),l(this,'_retryCount',0x0),l(this,_0xad2070(0x2d8)),l(this,_0xad2070(0x2cb)),(this[_0xad2070(0x120)]=_0x263096,this['_localeService']=_0x229eb2,this['_messageService']=_0x4d8be1,this['_logService']=_0x2b1318,this['_configService']=_0x4b22b2,this[_0xad2070(0x225)]=_0xe164d,this[_0xad2070(0x449)]());}get[_0x598a93(0x23f)](){return this['_socket$']['getValue']();}[_0x598a93(0x449)](){const _0x49dd81=_0x598a93;this[_0x49dd81(0x2a1)](),this[_0x49dd81(0x1b3)]();}[_0x598a93(0x308)](){const _0x467ba1=_0x598a93;super['dispose'](),this[_0x467ba1(0x3c9)][_0x467ba1(0x264)](_0x1d2b3d=>_0x1d2b3d[_0x467ba1(0x308)]()),this[_0x467ba1(0x3c9)][_0x467ba1(0x35c)](),this[_0x467ba1(0x3a4)][_0x467ba1(0x30a)]();}async[_0x598a93(0x486)](_0x3e9d51){const _0x44ed2c=_0x598a93;if(this['_sessions'][_0x44ed2c(0x1af)](_0x3e9d51))return this[_0x44ed2c(0x3c9)][_0x44ed2c(0x175)](_0x3e9d51);this[_0x44ed2c(0x159)]();const _0x1306aa=this[_0x44ed2c(0x120)][_0x44ed2c(0x466)](Ct,_0x3e9d51,this[_0x44ed2c(0x129)][_0x44ed2c(0x1b6)]());return this[_0x44ed2c(0x3c9)][_0x44ed2c(0x314)](_0x3e9d51,_0x1306aa),_0x1306aa;}[_0x598a93(0x3b1)](_0x598836){const _0xb55783=_0x598a93;var _0xba5a02;const _0x11790e=this[_0xb55783(0x3c9)][_0xb55783(0x175)](_0x598836);_0x11790e&&(this[_0xb55783(0x3c9)][_0xb55783(0x2c8)](_0x598836),_0x11790e[_0xb55783(0x191)]()),this[_0xb55783(0x3c9)]['size']||(_0xba5a02=this[_0xb55783(0x23f)])==null||_0xba5a02['close']();}[_0x598a93(0x404)](){const _0x1cb917=_0x598a93;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x1cb917(0x24d)]=null),this['_tryReconnect']();}[_0x598a93(0x2ef)](){const _0xd98efb=_0x598a93;var _0x59e41a,_0x6798ec;const _0x388238=this['_configService'][_0xd98efb(0x12d)](Sn),_0x2d38cc=this['_configService'][_0xd98efb(0x12d)](L),_0x7636e0=(_0x6798ec=(_0x59e41a=_0x2d38cc==null?void 0x0:_0x2d38cc[_0xd98efb(0x385)])!=null?_0x59e41a:_0x388238)!=null?_0x6798ec:pn,_0x28d83a=this['_socketService']['createSocket'](_0x7636e0);return this['_candidateSocket']=_0x28d83a,_0x28d83a;}['_tryEnsureSocket'](){const _0x161cc4=_0x598a93;var _0x41ae1c,_0x514cff;try{const _0x2034ac=(_0x514cff=(_0x41ae1c=this[_0x161cc4(0x23f)])!=null?_0x41ae1c:this[_0x161cc4(0x155)])!=null?_0x514cff:this[_0x161cc4(0x2ef)]();if(_0x2034ac){const _0x1d24ef=_0x2034ac[_0x161cc4(0x31c)];_0x2034ac[_0x161cc4(0x31c)]=_0x2ca631=>(this['_rescheduleHeartbeat'](),_0x1d24ef[_0x161cc4(0x403)](_0x2034ac,[_0x2ca631])),_0x2034ac[_0x161cc4(0x156)][_0x161cc4(0x19e)](_0x50d535=>this['_onMessage'](_0x2034ac,_0x50d535)),_0x2034ac[_0x161cc4(0x2b5)][_0x161cc4(0x22c)](_0x5e1341(0x1))[_0x161cc4(0x19e)](_0x58a9e7=>this[_0x161cc4(0x345)]['error'](_0x161cc4(0x24b),_0x58a9e7)),_0x2034ac['open$'][_0x161cc4(0x22c)](_0x5e1341(0x1))[_0x161cc4(0x19e)](()=>{const _0x362704=_0x161cc4;this[_0x362704(0x315)](_0x2034ac);}),_0x2034ac[_0x161cc4(0x46e)][_0x161cc4(0x22c)](_0x5e1341(0x1))['subscribe'](_0x4b9afc=>{const _0x2585ef=_0x161cc4;this[_0x2585ef(0x345)]['debug'](_0x2585ef(0x2da),'socket\x20close',_0x4b9afc),this[_0x2585ef(0x2f0)]();});}}catch(_0x4cc8cf){this[_0x161cc4(0x345)][_0x161cc4(0x379)](_0x4cc8cf),this[_0x161cc4(0x2f0)]();}}[_0x598a93(0x315)](_0x56cae5){const _0x16d58c=_0x598a93;this['_logService'][_0x16d58c(0x276)](_0x16d58c(0x2da),'socket\x20open.'),_0x56cae5[_0x16d58c(0x31c)]({'cmd':I[_0x16d58c(0x2c7)]}),this[_0x16d58c(0x423)]();}[_0x598a93(0x2a1)](){const _0x3bcf7d=_0x598a93;window[_0x3bcf7d(0x201)](_0x3bcf7d(0x234),()=>this[_0x3bcf7d(0x35a)]());}[_0x598a93(0x35a)](){const _0x1eaecd=_0x598a93;this[_0x1eaecd(0x32a)]=!0x1,this[_0x1eaecd(0x155)]=null,this[_0x1eaecd(0x3a4)][_0x1eaecd(0x12a)](G[_0x1eaecd(0x11d)]),this['_socket$'][_0x1eaecd(0x12a)](null),this['_clearTimeoutTimer'](),this[_0x1eaecd(0x2cc)]();}[_0x598a93(0x2f0)](){const _0x29c810=_0x598a93;var _0x2f6c86;this[_0x29c810(0x35a)](),this[_0x29c810(0x166)]<((_0x2f6c86=this['_configService'][_0x29c810(0x12d)](Cn))!=null?_0x2f6c86:bn)?(this[_0x29c810(0x17f)][_0x29c810(0x21e)]({'key':_0x29c810(0x285),'type':_0x19f1bd[_0x29c810(0x1d6)],'content':this[_0x29c810(0x333)]['t'](_0x29c810(0x40a))}),this['_tryReconnect']()):this['_messageService']['show']({'key':_0x29c810(0x285),'type':_0x19f1bd[_0x29c810(0x253)],'content':this['_localeService']['t'](_0x29c810(0x1f9))});}[_0x598a93(0x1b3)](){const _0x363648=_0x598a93,_0x31fede=()=>{const _0x4f80d4=_0x5340;this[_0x4f80d4(0x23f)]||this[_0x4f80d4(0x404)]();},_0x4146a2=()=>{const _0x2257b8=_0x5340;this[_0x2257b8(0x23f)]||document['visibilityState']===_0x2257b8(0x36f)||this['reconnect']();};window[_0x363648(0x201)](_0x363648(0x227),_0x31fede),document[_0x363648(0x201)]('visibilitychange',_0x4146a2);}[_0x598a93(0x2e0)](){const _0x21008e=_0x598a93;var _0x28d791;const _0x16a34f=this['_retryCount'],_0x3d1100=this['_configService'][_0x21008e(0x12d)](L),_0x2bd59d=_0x16a34f===0x0?0x0:((_0x28d791=_0x3d1100==null?void 0x0:_0x3d1100[_0x21008e(0x361)])!=null?_0x28d791:En)*0x2**_0x16a34f;this[_0x21008e(0x24d)]=window[_0x21008e(0x41e)](()=>{const _0xbbcaff=_0x21008e;clearTimeout(this[_0xbbcaff(0x24d)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x2bd59d),this[_0x21008e(0x166)]+=0x1;}['_onMessage'](_0x47c2f1,_0x15453e){const _0x3bfe92=_0x598a93,{cmd:_0x547a97}=_0x15453e;_0x547a97===I[_0x3bfe92(0x2c7)]&&!this[_0x3bfe92(0x32a)]&&(_0x47c2f1['memberID']=_0x15453e['data']['memberID'],this[_0x3bfe92(0x129)]['next'](_0x47c2f1),this[_0x3bfe92(0x3a4)]['next'](G[_0x3bfe92(0x35f)]),this[_0x3bfe92(0x32a)]=!0x0,this[_0x3bfe92(0x155)]=null),_0x547a97===I[_0x3bfe92(0x406)]&&this[_0x3bfe92(0x38b)](),this[_0x3bfe92(0x423)]();}[_0x598a93(0x423)](){const _0x3faa7f=_0x598a93;var _0x3e490c;this[_0x3faa7f(0x2cc)](),this['_sendHeartbeatTimer']=window[_0x3faa7f(0x41e)](()=>this['_sendHeartbeat'](),(_0x3e490c=this['_configService'][_0x3faa7f(0x12d)](vn))!=null?_0x3e490c:In);}[_0x598a93(0x1d5)](){const _0x5bc8c2=_0x598a93;this[_0x5bc8c2(0x23f)]['send']({'cmd':I[_0x5bc8c2(0x406)]}),this[_0x5bc8c2(0x429)]();}['_waitForHeartbeatResponse'](){const _0x54a921=_0x598a93;var _0x44e2bc;this[_0x54a921(0x2cb)]=window[_0x54a921(0x41e)](()=>this['_onConnectionFailed'](),(_0x44e2bc=this[_0x54a921(0x2c2)][_0x54a921(0x12d)](Ns))!=null?_0x44e2bc:Us);}['_clearHeartbeatTimer'](){const _0x2d8929=_0x598a93;this[_0x2d8929(0x2d8)]!=null&&(clearTimeout(this[_0x2d8929(0x2d8)]),this['_sendHeartbeatTimer']=null);}[_0x598a93(0x38b)](){const _0x29fede=_0x598a93;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x29fede(0x2cb)]),this[_0x29fede(0x2cb)]=null);}};ce=Xn([de(0x0,_0x592774(_0x579617)),de(0x1,_0x592774(_0x2af7ec)),de(0x2,_0x369676),de(0x3,_0x1281de),de(0x4,_0x3fc6a0),de(0x5,Ls)],ce);var Jn=Object[_0x598a93(0x171)],qn=Object['getOwnPropertyDescriptor'],zn=(_0x35f688,_0x260368,_0x293e05,_0x23d0e5)=>{const _0x5be8f4=_0x598a93;for(var _0x3ec46a=_0x23d0e5>0x1?void 0x0:_0x23d0e5?qn(_0x260368,_0x293e05):_0x260368,_0x1abd17=_0x35f688[_0x5be8f4(0x45e)]-0x1,_0x59c60e;_0x1abd17>=0x0;_0x1abd17--)(_0x59c60e=_0x35f688[_0x1abd17])&&(_0x3ec46a=(_0x23d0e5?_0x59c60e(_0x260368,_0x293e05,_0x3ec46a):_0x59c60e(_0x3ec46a))||_0x3ec46a);return _0x23d0e5&&_0x3ec46a&&Jn(_0x260368,_0x293e05,_0x3ec46a),_0x3ec46a;},ct=(_0x5e4b17,_0x109fa3)=>(_0x4cb89a,_0x1fade1)=>_0x109fa3(_0x4cb89a,_0x1fade1,_0x5e4b17);let Ye=class{constructor(_0x2a48fe,_0x3e8b63,_0x5ee0fe){const _0x43586f=_0x598a93;this[_0x43586f(0x120)]=_0x2a48fe,this[_0x43586f(0x1d1)]=_0x3e8b63,this[_0x43586f(0x25f)]=_0x5ee0fe;}[_0x598a93(0x43c)](_0x5e184f){const _0x660fb0=_0x598a93;this['_transformUndoRedoStack'](_0x5e184f),this[_0x660fb0(0x354)](_0x5e184f);}[_0x598a93(0x387)](_0x37378b){const _0x25c748=_0x598a93,{unitID:_0x7b79e3}=_0x37378b,_0x14a19e=this['_renderManagerService'][_0x25c748(0x2f3)](_0x7b79e3)['with'](_0x3dcf31),{redoCache:_0x4cbb8b}=_0x14a19e[_0x25c748(0x241)]();if(_0x4cbb8b[_0x25c748(0x45e)]===0x0)return _0x37378b;let _0x5587b7=_0x4105cf[_0x25c748(0x1e7)](_0x37378b[_0x25c748(0x3fb)][0x0]);for(let _0x45cfb1=0x0;_0x45cfb1<_0x4cbb8b[_0x25c748(0x45e)];_0x45cfb1++){const _0x433fec={'id':_0x25c748(0x310),'params':{..._0x4cbb8b[_0x45cfb1]}},_0x2d5ddf=this['_transformService']['transformMutation'](_0x5587b7,_0x433fec,!0x1);if(_0x5396e5(_0x2d5ddf))throw _0x2d5ddf[_0x25c748(0x379)];_0x5587b7=_0x2d5ddf['m1Prime'];}return{..._0x4105cf[_0x25c748(0x1e7)](_0x37378b),'mutations':[_0x5587b7]};}[_0x598a93(0x18b)](_0x21390b){const _0x5d9b07=_0x598a93,{unitID:_0x3eca21}=_0x21390b,_0x131b86=this['_renderManagerService'][_0x5d9b07(0x2f3)](_0x3eca21)[_0x5d9b07(0x242)](_0x3dcf31),{undoCache:_0x37a773,redoCache:_0x4d2256}=_0x131b86[_0x5d9b07(0x241)]();if(_0x37a773[_0x5d9b07(0x45e)]===0x0||_0x4d2256[_0x5d9b07(0x45e)]===0x0)return;const _0x2c3541=[],_0x3985b9=[];let _0x13f836=_0x4105cf[_0x5d9b07(0x1e7)](_0x21390b[_0x5d9b07(0x3fb)][0x0]),_0x55169f=_0x4105cf[_0x5d9b07(0x1e7)](_0x21390b[_0x5d9b07(0x3fb)][0x0]);for(let _0x240007=_0x37a773[_0x5d9b07(0x45e)]-0x1;_0x240007>=0x0;_0x240007--){const _0x437263={'id':'doc.mutation.rich-text-editing','params':{..._0x37a773[_0x240007]}},_0x282699={'id':'doc.mutation.rich-text-editing','params':{..._0x4d2256[_0x240007]}},_0x1ed1cc=this['_transformService'][_0x5d9b07(0x26e)](_0x13f836,_0x437263,!0x1),_0x476b66=this[_0x5d9b07(0x1d1)]['transformMutation'](_0x55169f,_0x282699,!0x1);if(_0x5396e5(_0x1ed1cc))throw _0x1ed1cc[_0x5d9b07(0x379)];if(_0x5396e5(_0x476b66))throw _0x476b66['error'];_0x2c3541[_0x5d9b07(0x38f)](_0x1ed1cc[_0x5d9b07(0x13b)][_0x5d9b07(0x27e)]),_0x3985b9[_0x5d9b07(0x38f)](_0x476b66[_0x5d9b07(0x13b)][_0x5d9b07(0x27e)]),_0x13f836=_0x1ed1cc[_0x5d9b07(0x1be)],_0x55169f=_0x476b66[_0x5d9b07(0x1be)];}_0x131b86['setUndoRedoMutationParamsCache']({'undoCache':_0x2c3541,'redoCache':_0x3985b9});}[_0x598a93(0x354)](_0x4b008f){const _0xd097c0=_0x598a93,{unitID:_0x37bbe9}=_0x4b008f,_0x5340f0=this[_0xd097c0(0x25f)][_0xd097c0(0x2f3)](_0x37bbe9)['with'](_0x3dcf31),_0x33fc66=_0x5340f0[_0xd097c0(0x28c)]();if(_0x33fc66==null)return;const _0x3450ec=[{'id':_0xd097c0(0x310),'params':{'unitId':_0x4b008f[_0xd097c0(0x3a6)],'actions':null,'textRanges':[_0x33fc66]}}],_0xc5989c=this[_0xd097c0(0x1d1)][_0xd097c0(0x3cc)](_0x4b008f,_0x3450ec);if(!_0x347ce0(_0xc5989c))throw _0xc5989c['error'];const _0x391b0f=_0xc5989c[_0xd097c0(0x13b)][0x0][_0xd097c0(0x27e)][_0xd097c0(0x2b9)];Array[_0xd097c0(0x38e)](_0x391b0f)&&_0x391b0f[_0xd097c0(0x45e)]&&_0x5340f0[_0xd097c0(0x332)](_0x391b0f[0x0]);}};Ye=zn([ct(0x0,_0x592774(_0x579617)),ct(0x1,_0x4cfc78),ct(0x2,_0x101da8)],Ye);var Zn=Object[_0x598a93(0x171)],Qn=Object[_0x598a93(0x1cb)],er=(_0xf6815f,_0x5736ee,_0x598d13,_0x40c17b)=>{const _0x4e6880=_0x598a93;for(var _0x10134a=_0x40c17b>0x1?void 0x0:_0x40c17b?Qn(_0x5736ee,_0x598d13):_0x5736ee,_0x4dcc4c=_0xf6815f[_0x4e6880(0x45e)]-0x1,_0x1ca4e5;_0x4dcc4c>=0x0;_0x4dcc4c--)(_0x1ca4e5=_0xf6815f[_0x4dcc4c])&&(_0x10134a=(_0x40c17b?_0x1ca4e5(_0x5736ee,_0x598d13,_0x10134a):_0x1ca4e5(_0x10134a))||_0x10134a);return _0x40c17b&&_0x10134a&&Zn(_0x5736ee,_0x598d13,_0x10134a),_0x10134a;},Oe=(_0x111f1b,_0x325f8a)=>(_0x131009,_0x501789)=>_0x325f8a(_0x131009,_0x501789,_0x111f1b);let D=class extends _0x24edb8{constructor(_0x29b0c3,_0x3eb84b,_0x2d41f5,_0x4817c4,_0x4c77f8){const _0x2d8e0f=_0x598a93;super(),l(this,_0x2d8e0f(0x119),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x2d8e0f(0x3c8),!0x1),(this['_configService']=_0x29b0c3,this[_0x2d8e0f(0x2bc)]=_0x3eb84b,this[_0x2d8e0f(0x325)]=_0x2d41f5,this[_0x2d8e0f(0x333)]=_0x4817c4,this[_0x2d8e0f(0x2b1)]=_0x4c77f8,this['_setupBeforeClosingHandler']());}[_0x598a93(0x462)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x5adf08=_0x598a93;this[_0x5adf08(0x3c8)]=!0x1;}[_0x598a93(0x308)](){const _0x13c98d=_0x598a93;this['exhaustSavingTask']()['then'](()=>super[_0x13c98d(0x308)]());}async[_0x598a93(0x442)](_0x49c9a1){const _0x1ecd7f=_0x598a93;return this[_0x1ecd7f(0x3c8)]?null:this[_0x1ecd7f(0x2bc)][_0x1ecd7f(0x212)](os(_0x49c9a1));}async['saveOfflineData'](_0x2db203,_0x5366ca){const _0x5277f6=_0x598a93;return!!this[_0x5277f6(0x2bc)][_0x5277f6(0x3f9)](_0x2db203,_0x5366ca);}[_0x598a93(0x176)](_0x3ec966,_0x201f78,_0x246d1d,_0x45c5f8){const _0x28be7b=_0x598a93,_0x2a8aa1=this[_0x28be7b(0x2b1)][_0x28be7b(0x16f)](_0x3ec966);this['_cachedData'][_0x28be7b(0x314)](_0x3ec966,{'unitID':_0x3ec966,'type':_0x201f78,'awaitingChangeset':_0x246d1d,'mutations':_0x45c5f8,'rev':_0x2a8aa1}),this[_0x28be7b(0x309)][_0x28be7b(0x1af)](_0x3ec966)||this[_0x28be7b(0x3ae)](_0x3ec966);}[_0x598a93(0x3ae)](_0x1f637e){const _0x3657dc=_0x598a93,_0x1b7ba8=this['_getSaveTimeout']();_0x1b7ba8===0x0?this[_0x3657dc(0x45c)](_0x1f637e):this[_0x3657dc(0x309)][_0x3657dc(0x314)](_0x1f637e,setTimeout(()=>this[_0x3657dc(0x45c)](_0x1f637e),_0x1b7ba8));}[_0x598a93(0x185)](){const _0x25e86c=_0x598a93;var _0x30ad3a;return(_0x30ad3a=this[_0x25e86c(0x2c2)]['getConfig'](Tn))!=null?_0x30ad3a:Rn;}[_0x598a93(0x45c)](_0x39d02f){const _0x3f4ce4=_0x598a93,_0x19d183=this['_saveTaskMap'][_0x3f4ce4(0x175)](_0x39d02f);return _0x19d183!==void 0x0&&window[_0x3f4ce4(0x14b)](_0x19d183),this['_localStorageService']['setItem'](os(_0x39d02f),this[_0x3f4ce4(0x119)][_0x3f4ce4(0x175)](_0x39d02f))[_0x3f4ce4(0x33e)](()=>this[_0x3f4ce4(0x309)][_0x3f4ce4(0x2c8)](_0x39d02f));}async[_0x598a93(0x2d9)](){const _0x4cd2e2=_0x598a93,_0x3f8557=[];this[_0x4cd2e2(0x309)][_0x4cd2e2(0x264)]((_0x3a28cd,_0x52d644)=>{const _0x5887bc=_0x4cd2e2;window['clearTimeout'](_0x3a28cd),_0x3f8557[_0x5887bc(0x34e)](this['_saveCache'](_0x52d644)[_0x5887bc(0x33e)](()=>{const _0x205b83=_0x5887bc;this[_0x205b83(0x309)][_0x205b83(0x2c8)](_0x52d644);}));}),await Promise[_0x4cd2e2(0x299)](_0x3f8557);}[_0x598a93(0x3c3)](){const _0x3ee665=_0x598a93;this[_0x3ee665(0x147)](this[_0x3ee665(0x325)][_0x3ee665(0x21a)](()=>{const _0x19b078=_0x3ee665;if(this[_0x19b078(0x309)][_0x19b078(0x14e)])return this[_0x19b078(0x333)]['t'](_0x19b078(0x26a));}));}};D=er([Oe(0x0,_0x3fc6a0),Oe(0x1,_0x86e459),Oe(0x2,_0x4fb0d0),Oe(0x3,_0x592774(_0x2af7ec)),Oe(0x4,_0x592774(_0x3fcef9))],D);function os(_0x31300e){const _0x4973a1=_0x598a93;return _0x4973a1(0x409)+_0x31300e;}var tr=Object[_0x598a93(0x171)],sr=Object[_0x598a93(0x1cb)],ir=(_0x39b7ce,_0x442322,_0x50488d,_0x1a7a81)=>{const _0x3be2da=_0x598a93;for(var _0x3bcbd2=_0x1a7a81>0x1?void 0x0:_0x1a7a81?sr(_0x442322,_0x50488d):_0x442322,_0x55d882=_0x39b7ce[_0x3be2da(0x45e)]-0x1,_0x46a925;_0x55d882>=0x0;_0x55d882--)(_0x46a925=_0x39b7ce[_0x55d882])&&(_0x3bcbd2=(_0x1a7a81?_0x46a925(_0x442322,_0x50488d,_0x3bcbd2):_0x46a925(_0x3bcbd2))||_0x3bcbd2);return _0x1a7a81&&_0x3bcbd2&&tr(_0x442322,_0x50488d,_0x3bcbd2),_0x3bcbd2;},ht=(_0x3a19ff,_0x3869d8)=>(_0x452040,_0x3569b5)=>_0x3869d8(_0x452040,_0x3569b5,_0x3a19ff);function nr(_0x423c7b){const _0x40ae87=_0x598a93,{unitID:_0x61044d,mutations:_0x296e04}=_0x423c7b;return{'unitId':_0x61044d,'subUnitId':_0x296e04[0x0][_0x40ae87(0x27e)][_0x40ae87(0x196)]};}let Ke=class{constructor(_0xcac192,_0x308b5b,_0x22a699){const _0x36460a=_0x598a93;this[_0x36460a(0x120)]=_0xcac192,this[_0x36460a(0x1d1)]=_0x308b5b,this[_0x36460a(0x3d1)]=_0x22a699;}['transformSelections'](_0x197518){const _0x597b5a=_0x598a93;var _0x13a719,_0x25296b,_0x95fad5,_0x2bbd8e;const _0x29309f=this[_0x597b5a(0x120)]['get'](_0x429ce4),{unitId:_0x232d0e,subUnitId:_0x285e68}=nr(_0x197518),_0x2e7e16=_0x29309f[_0x597b5a(0x3bc)](_0x232d0e)[_0x597b5a(0x231)](),_0xc3a270=(_0x25296b=(_0x13a719=this[_0x597b5a(0x3d1)]['getUnit'](_0x232d0e))==null?void 0x0:_0x13a719[_0x597b5a(0x125)]())==null?void 0x0:_0x25296b[_0x597b5a(0x121)]();if(_0x2e7e16[_0x597b5a(0x45e)]===0x0||!_0x232d0e||!_0x285e68)return;const _0x4367a6=[{'id':_0x283825['id'],'params':{'unitId':_0x232d0e,'subUnitId':_0xc3a270,'selections':_0x4105cf[_0x597b5a(0x1e7)](_0x2e7e16)}}],_0x275cd0=this['_transformService'][_0x597b5a(0x3cc)](_0x197518,_0x4367a6);if(!_0x347ce0(_0x275cd0))throw _0x275cd0[_0x597b5a(0x379)];const _0x52fd8d=(_0x2bbd8e=(_0x95fad5=_0x275cd0[_0x597b5a(0x13b)][0x0])==null?void 0x0:_0x95fad5['params'])==null?void 0x0:_0x2bbd8e['selections'];Array['isArray'](_0x52fd8d)&&_0x52fd8d[_0x597b5a(0x45e)]&&this['_injector'][_0x597b5a(0x175)](_0xbb225b)['executeCommand'](_0x283825['id'],{'unitId':_0x232d0e,'subUnitId':_0xc3a270,'selections':_0x52fd8d});}};Ke=ir([ht(0x0,_0x592774(_0x579617)),ht(0x1,_0x4cfc78),ht(0x2,_0x191290)],Ke);const tt=_0x9eee89(_0x598a93(0x1d3));var js=(_0xd2c52c=>(_0xd2c52c[_0xd2c52c[_0x598a93(0x162)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0xd2c52c[_0xd2c52c['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0xd2c52c))(js||{});const as=0x7530,cs=_0x598a93(0x2d1);class rr extends _0x24edb8{constructor(){const _0x40f9b6=_0x598a93;super(),l(this,_0x40f9b6(0x2a0),_0x4105cf[_0x40f9b6(0x33b)]()),l(this,_0x40f9b6(0x323),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x40f9b6(0x1e1),null),l(this,_0x40f9b6(0x42a),new Map()),l(this,'_unitStatus',new Map()),this[_0x40f9b6(0x290)]();}[_0x598a93(0x308)](){const _0x45bf54=_0x598a93;super[_0x45bf54(0x308)](),this[_0x45bf54(0x42a)][_0x45bf54(0x264)]((_0x2f29d1,_0x3fa2ea)=>this[_0x45bf54(0x197)](_0x3fa2ea)),this[_0x45bf54(0x1e1)]&&window['clearInterval'](this[_0x45bf54(0x1e1)]);}['getUnitStatus$'](_0x586394){const _0xb24729=_0x598a93;return this[_0xb24729(0x43e)](_0x586394)['pipe'](_0x555c3a());}[_0x598a93(0x427)](_0x3481e2){const _0x586293=_0x598a93;this[_0x586293(0x323)][_0x586293(0x14e)]===0x0&&this[_0x586293(0x30b)](),this[_0x586293(0x323)][_0x586293(0x187)](_0x3481e2),this[_0x586293(0x386)]({'type':0x0,'memberID':this[_0x586293(0x2a0)],'unitIDs':[_0x3481e2],'isForwarded':!0x1});}[_0x598a93(0x376)](_0x5cbc05){const _0xb30af6=_0x598a93;this['_selfUnitIDs'][_0xb30af6(0x2c8)](_0x5cbc05),this['_selfUnitIDs'][_0xb30af6(0x14e)]===0x0&&this[_0xb30af6(0x1e1)]&&window[_0xb30af6(0x268)](this['_heartbeatTimer']);}['_init'](){const _0x220525=_0x598a93;this['disposeWithMe'](_0x440d86(_0xa48ff6(window,_0x220525(0x421))[_0x220525(0x19e)](_0x3b2ce9=>{const _0x58aeaf=_0x220525;if(_0x3b2ce9[_0x58aeaf(0x151)]!==cs||!_0x3b2ce9[_0x58aeaf(0x1bd)])return;const _0x11ef12=JSON[_0x58aeaf(0x143)](_0x3b2ce9[_0x58aeaf(0x1bd)]);this[_0x58aeaf(0x36c)](_0x11ef12);}))),window[_0x220525(0x201)](_0x220525(0x478),()=>this[_0x220525(0x386)]({'type':0x1,'memberID':this[_0x220525(0x2a0)],'unitIDs':Array[_0x220525(0x30c)](this[_0x220525(0x323)])}));}[_0x598a93(0x36c)](_0x10fa38){const _0x445642=_0x598a93;switch(_0x10fa38[_0x445642(0x29d)]){case 0x0:this['_handleJoinEvent'](_0x10fa38);break;case 0x1:this[_0x445642(0x3fe)](_0x10fa38);break;case 0x2:this[_0x445642(0x181)](_0x10fa38);break;}}[_0x598a93(0x3e5)](_0x40b7c8){const _0x4e83d0=_0x598a93,{unitIDs:_0x5ea899,memberID:_0x5563d2,isForwarded:_0x1f2764}=_0x40b7c8;_0x5ea899[_0x4e83d0(0x264)](_0x43518e=>{const _0x4926e8=_0x4e83d0;if(!_0x1f2764&&this['_unitOnClients']['has'](_0x43518e)&&this[_0x4926e8(0x43e)](_0x43518e)[_0x4926e8(0x12a)](0x1),!this['_unitOnClients'][_0x4926e8(0x1af)](_0x43518e)||!this['_unitOnClients'][_0x4926e8(0x175)](_0x43518e)['has'](_0x5563d2)){const _0x21217b=this[_0x4926e8(0x238)][_0x4926e8(0x175)](_0x43518e)||new Set();_0x21217b['add'](_0x5563d2),this[_0x4926e8(0x238)][_0x4926e8(0x314)](_0x43518e,_0x21217b),this[_0x4926e8(0x371)](_0x5563d2);}}),_0x1f2764||this[_0x4e83d0(0x386)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4e83d0(0x323)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x1a2056){const _0x3173bf=_0x598a93;this['_removeClearOtherTimer'](_0x1a2056);const _0x1b87f1=window[_0x3173bf(0x41e)](()=>{const _0x4575bf=_0x3173bf;this[_0x4575bf(0x238)][_0x4575bf(0x264)](_0x5651eb=>{const _0x2cc621=_0x4575bf;_0x5651eb[_0x2cc621(0x2c8)](_0x1a2056);});},as*0x2);this['_clearOtherTimers']['set'](_0x1a2056,_0x1b87f1);}[_0x598a93(0x197)](_0x29dcd6){const _0x152841=_0x598a93;if(this['_clearOtherTimers'][_0x152841(0x1af)](_0x29dcd6)){const _0x468500=this[_0x152841(0x42a)]['get'](_0x29dcd6);_0x468500&&window['clearTimeout'](_0x468500),this[_0x152841(0x42a)][_0x152841(0x314)](_0x29dcd6,null);}}[_0x598a93(0x3fe)](_0x1c8334){const _0x3cb5b4=_0x598a93,{memberID:_0x98db5a,unitIDs:_0x15b1d3}=_0x1c8334;_0x15b1d3[_0x3cb5b4(0x264)](_0x279792=>{const _0x30b844=_0x3cb5b4;var _0xbaae81;const _0x35bc56=this[_0x30b844(0x238)][_0x30b844(0x175)](_0x279792);_0x35bc56&&(_0x35bc56['delete'](_0x98db5a),(_0xbaae81=this[_0x30b844(0x43e)](_0x279792))==null||_0xbaae81['next'](_0x35bc56[_0x30b844(0x14e)]===0x0?0x0:0x1));}),this[_0x3cb5b4(0x197)](_0x98db5a);}['_handleHeartbeatEvent'](_0x467bf8){this['_scheduleClearOtherTimer'](_0x467bf8['memberID']);}[_0x598a93(0x386)](_0x3df538){const _0x202f32=_0x598a93;localStorage[_0x202f32(0x3f9)](cs,JSON[_0x202f32(0x126)](_0x3df538));}[_0x598a93(0x30b)](){const _0x225414=_0x598a93;this[_0x225414(0x1e1)]=window[_0x225414(0x45b)](()=>{const _0x47592e=_0x225414;this[_0x47592e(0x386)]({'type':0x2,'memberID':this[_0x47592e(0x2a0)]});},as);}['_ensureSubject'](_0x4cb70f){const _0x181637=_0x598a93;return this['_unitStatus'][_0x181637(0x1af)](_0x4cb70f)||this[_0x181637(0x2f4)][_0x181637(0x314)](_0x4cb70f,new _0x59597c(0x0)),this['_unitStatus'][_0x181637(0x175)](_0x4cb70f);}}function xs(_0x1b60fe){const _0x24572a=_0x598a93;let _0x13d8e4='';for(const _0x1081f2 of _0x1b60fe){const {startOffset:_0x385015,endOffset:_0x51cc36,isActive:_0x279bb2}=_0x1081f2;_0x13d8e4[_0x24572a(0x45e)]&&(_0x13d8e4+=','),_0x13d8e4+=_0x385015+':'+_0x51cc36+':'+(_0x279bb2?'1':'0');}return _0x13d8e4;}function or(_0x550114){const _0x575213=_0x598a93,_0x1b92aa=_0x550114[_0x575213(0x1f7)](','),_0x14f23f=[];for(const _0x24cc59 of _0x1b92aa){const [_0x1609e0,_0x4dc1ff,_0x277896]=_0x24cc59['split'](':');_0x14f23f[_0x575213(0x34e)]({'startOffset':Number(_0x1609e0),'endOffset':Number(_0x4dc1ff),'collapsed':_0x1609e0===_0x4dc1ff,'isActive':_0x277896==='1'});}return _0x14f23f[_0x575213(0x3ee)](_0x141977=>_0x141977['isActive'])||(_0x14f23f[0x0][_0x575213(0x373)]=!0x0),_0x14f23f;}class Bt extends _0x39a217{constructor(){const _0x5ac2a1=_0x598a93;super(...arguments),l(this,'_collabCursorState$',new _0x59597c(null)),l(this,_0x5ac2a1(0x18e),this[_0x5ac2a1(0x194)]['asObservable']());}[_0x598a93(0x3b2)](_0x14e625){const _0x3f1bd0=_0x598a93,{unitID:_0xaf30c6,memberID:_0x26a7dc,textRanges:_0x2d513c}=_0x14e625,_0xfbc56e=xs(_0x2d513c),_0x286ca4={'unitID':_0xaf30c6,'memberID':_0x26a7dc,'selection':_0xfbc56e};this[_0x3f1bd0(0x194)][_0x3f1bd0(0x12a)](_0x286ca4);}}var ar=Object['defineProperty'],cr=Object[_0x598a93(0x1cb)],hr=(_0x13edbc,_0x196f41,_0x49907d,_0x512d06)=>{const _0x1568c2=_0x598a93;for(var _0x236a15=_0x512d06>0x1?void 0x0:_0x512d06?cr(_0x196f41,_0x49907d):_0x196f41,_0x7f2c7b=_0x13edbc[_0x1568c2(0x45e)]-0x1,_0x590546;_0x7f2c7b>=0x0;_0x7f2c7b--)(_0x590546=_0x13edbc[_0x7f2c7b])&&(_0x236a15=(_0x512d06?_0x590546(_0x196f41,_0x49907d,_0x236a15):_0x590546(_0x236a15))||_0x236a15);return _0x512d06&&_0x236a15&&ar(_0x196f41,_0x49907d,_0x236a15),_0x236a15;},hs=(_0xc12ee5,_0x514dc3)=>(_0x5fa056,_0x4064b2)=>_0x514dc3(_0x5fa056,_0x4064b2,_0xc12ee5);let Xe=class{constructor(_0x2afc82,_0x16e681){const _0x52d299=_0x598a93;this[_0x52d299(0x120)]=_0x2afc82,this[_0x52d299(0x1d1)]=_0x16e681;}[_0x598a93(0x304)](_0x2f24e9){const _0x3273f2=_0x598a93;var _0x4d529f;const _0x39ee6=this['_injector']['get'](_0x42d514),_0x187dd0=(_0x4d529f=_0x39ee6[_0x3273f2(0x2ce)]())!=null?_0x4d529f:[];if(_0x187dd0[_0x3273f2(0x45e)]===0x0)return;const _0x27e272=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2f24e9[_0x3273f2(0x3a6)],'actions':null,'textRanges':_0x187dd0}}],_0x322b2a=this[_0x3273f2(0x1d1)][_0x3273f2(0x3cc)](_0x2f24e9,_0x27e272);if(!_0x347ce0(_0x322b2a))throw _0x322b2a[_0x3273f2(0x379)];const _0x11003f=_0x322b2a[_0x3273f2(0x13b)][0x0][_0x3273f2(0x27e)]['textRanges'];Array[_0x3273f2(0x38e)](_0x11003f)&&_0x11003f[_0x3273f2(0x45e)]&&_0x39ee6[_0x3273f2(0x269)](_0x11003f,!0x1);}};Xe=hr([hs(0x0,_0x592774(_0x579617)),hs(0x1,_0x4cfc78)],Xe);const lr=new Set([_0x365d49['id']]);function ls(_0x38dbbc,_0xdad9a7,_0x3fab9f,_0x437e5e,_0x817a57){const _0xebd8e7=_0x598a93;var _0xbdf362,_0x360005,_0x442336,_0x2636c6;const _0x3ffbe5=[];for(const _0x4c3e0c of _0x38dbbc)if(lr[_0xebd8e7(0x1af)](_0x4c3e0c['id'])){if(_0x3ffbe5[_0xebd8e7(0x45e)]>0x0)break;_0x3ffbe5[_0xebd8e7(0x34e)](_0x4c3e0c);break;}else _0x3ffbe5['push'](_0x4c3e0c);const _0x2fd9d4=(_0x360005=(_0xbdf362=_0x817a57[_0xebd8e7(0x2d5)]())==null?void 0x0:_0xbdf362[_0xebd8e7(0x22f)])!=null?_0x360005:_0xebd8e7(0x117),_0x52053d=(_0x2636c6=(_0x442336=_0x817a57[_0xebd8e7(0x2d5)]())==null?void 0x0:_0x442336[_0xebd8e7(0x1b2)])!=null?_0x2636c6:_0xebd8e7(0x117);return{'changeset':{'unitID':_0xdad9a7,'type':_0x3dbbe0(_0x3fab9f[_0xebd8e7(0x402)](_0xdad9a7)),'baseRev':_0x437e5e[_0xebd8e7(0x16f)](_0xdad9a7),'revision':0x0,'userID':_0x2fd9d4,'memberID':_0x52053d,'mutations':_0x3ffbe5},'pendingMutations':_0x38dbbc[_0xebd8e7(0x145)](_0x3ffbe5[_0xebd8e7(0x45e)])};}function _r(_0x1918cd,_0x2e0e72,_0x435a7f,_0x35ca70,_0x4ff89f){const _0x5af702=_0x598a93;var _0x317800,_0x5c9368,_0x2c6167,_0x403e3e;const _0x2b77d1=[_0x1918cd['reduce']((_0x39246d,_0x133503)=>{const _0x521bd3=_0x5340;var _0x416a7e;const {id:_0x2d9c4c}=_0x39246d,{id:_0x5a6134,type:_0x2fbb46}=_0x133503,_0x71a763=(_0x416a7e=_0x39246d[_0x521bd3(0x27e)])!=null?_0x416a7e:{'actions':null},_0x4578b3=_0x133503['params'];if(_0x2d9c4c&&_0x2d9c4c!==_0x5a6134)throw new Error(_0x521bd3(0x1de)+_0x2d9c4c+'\x20-\x20'+_0x5a6134+'.');return{..._0x39246d,'id':_0x5a6134,'type':_0x2fbb46,'params':{'unitId':_0x4578b3[_0x521bd3(0x46f)],'textRanges':_0x4578b3[_0x521bd3(0x2b9)],'actions':_0xae478c[_0x521bd3(0x417)](_0x71a763[_0x521bd3(0x394)],_0x4578b3['actions'])}};},{})],_0x57a6b8=(_0x5c9368=(_0x317800=_0x4ff89f[_0x5af702(0x2d5)]())==null?void 0x0:_0x317800[_0x5af702(0x22f)])!=null?_0x5c9368:_0x5af702(0x117),_0x517c75=(_0x403e3e=(_0x2c6167=_0x4ff89f[_0x5af702(0x2d5)]())==null?void 0x0:_0x2c6167[_0x5af702(0x1b2)])!=null?_0x403e3e:_0x5af702(0x117);return{'changeset':{'unitID':_0x2e0e72,'type':_0x3dbbe0(_0x435a7f['getUnitType'](_0x2e0e72)),'baseRev':_0x35ca70['getCurrentRevOfUnit'](_0x2e0e72),'revision':0x0,'userID':_0x57a6b8,'memberID':_0x517c75,'mutations':_0x2b77d1},'pendingMutations':[]};}const ur={'id':_0x3f7cff['id'],'type':_0x1887aa[_0x598a93(0x307)],'params':{}};var dr=Object[_0x598a93(0x171)],fr=Object[_0x598a93(0x1cb)],le=(_0x404a11,_0x4c6cd8,_0x315fb0,_0x2393cc)=>{const _0x5b8028=_0x598a93;for(var _0x1044e9=_0x2393cc>0x1?void 0x0:_0x2393cc?fr(_0x4c6cd8,_0x315fb0):_0x4c6cd8,_0x5a4fa2=_0x404a11[_0x5b8028(0x45e)]-0x1,_0x1005a8;_0x5a4fa2>=0x0;_0x5a4fa2--)(_0x1005a8=_0x404a11[_0x5a4fa2])&&(_0x1044e9=(_0x2393cc?_0x1005a8(_0x4c6cd8,_0x315fb0,_0x1044e9):_0x1005a8(_0x1044e9))||_0x1044e9);return _0x2393cc&&_0x1044e9&&dr(_0x4c6cd8,_0x315fb0,_0x1044e9),_0x1044e9;},m=(_0x1553a7,_0x5c0ee9)=>(_0x258e9b,_0x4efeb1)=>_0x5c0ee9(_0x258e9b,_0x4efeb1,_0x1553a7),w=(_0x3ef5d0=>(_0x3ef5d0['NOT_COLLAB']=_0x598a93(0x2fe),_0x3ef5d0[_0x598a93(0x329)]=_0x598a93(0x33d),_0x3ef5d0['PENDING']=_0x598a93(0x1c5),_0x3ef5d0['AWAITING']=_0x598a93(0x30d),_0x3ef5d0['AWAITING_WITH_PENDING']=_0x598a93(0x13d),_0x3ef5d0['FETCH_MISS']='fetch_missing',_0x3ef5d0[_0x598a93(0x228)]=_0x598a93(0x219),_0x3ef5d0[_0x598a93(0x11d)]=_0x598a93(0x234),_0x3ef5d0))(w||{});class _e{constructor(_0x476a9d,_0xc160bf,_0x31df3a,_0x374a13,_0x563409,_0x1cdeae,_0x2ed211,_0x32391,_0x14a848){const _0x5e710b=_0x598a93;l(this,_0x5e710b(0x291),null),l(this,_0x5e710b(0x26c),[]),(this[_0x5e710b(0x3a6)]=_0x476a9d,this[_0x5e710b(0x29d)]=_0xc160bf,this['_handler']=_0x563409,this[_0x5e710b(0x297)]=_0x1cdeae,this['_undoRedoService']=_0x2ed211,this[_0x5e710b(0x2b1)]=_0x32391,this[_0x5e710b(0x2fc)]=_0x14a848,this['_awaitingChangeset']=_0x31df3a,this[_0x5e710b(0x26c)]=_0x374a13);}['_checkMissing'](_0x3fb1c9){const _0x265112=_0x598a93,_0x3a3cf8=this['_revisionService'][_0x265112(0x16f)](this[_0x265112(0x3a6)]);return _0x3fb1c9[_0x265112(0x43d)]>_0x3a3cf8+0x1?(this[_0x265112(0x32e)][_0x265112(0x425)]({'from':_0x3a3cf8,'to':_0x3fb1c9[_0x265112(0x43d)]-0x1}),!0x0):!0x1;}[_0x598a93(0x161)](_0x120e28){const _0x574b1b=_0x598a93;this[_0x574b1b(0x233)][_0x574b1b(0x26f)](this['unitID'],_0x120e28);}[_0x598a93(0x43b)](_0x42f4c5){const _0x1f9b67=_0x598a93;var _0x275334,_0x48b6bf;(_0x48b6bf=(_0x275334=this[_0x1f9b67(0x32e)])['onTransformSelections'])==null||_0x48b6bf[_0x1f9b67(0x327)](_0x275334,_0x42f4c5);}[_0x598a93(0x399)](_0x21cef0){const _0x59244b=_0x598a93;var _0x4769d2,_0x2b1610;return(_0x2b1610=(_0x4769d2=this['_handler'])[_0x59244b(0x13c)])==null?void 0x0:_0x2b1610[_0x59244b(0x327)](_0x4769d2,_0x21cef0);}[_0x598a93(0x190)](_0x1a8ad7){const _0x36b59f=_0x598a93;var _0x305c0f,_0x17f2f6,_0x36cb68;return(_0x36cb68=(_0x17f2f6=(_0x305c0f=this[_0x36b59f(0x32e)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x17f2f6[_0x36b59f(0x327)](_0x305c0f,_0x1a8ad7))!=null?_0x36cb68:_0x1a8ad7;}['_syncEditingCollabCursor'](_0x57219c){const _0x5dc88a=_0x598a93;var _0x2ba080,_0x528fc6;if(this[_0x5dc88a(0x29d)]===H[_0x5dc88a(0x17d)]){const {unitID:_0x31ae36,mutations:_0x1aceca,memberID:_0x531398}=_0x57219c,_0x251663=_0x1aceca[0x0][_0x5dc88a(0x27e)][_0x5dc88a(0x2b9)];Array['isArray'](_0x251663)&&_0x251663[_0x5dc88a(0x45e)]>0x0&&((_0x528fc6=(_0x2ba080=this[_0x5dc88a(0x32e)])[_0x5dc88a(0x169)])==null||_0x528fc6[_0x5dc88a(0x327)](_0x2ba080,{'unitID':_0x31ae36,'memberID':_0x531398,'textRanges':_0x251663}));}}[_0x598a93(0x239)](){const _0x47abf3=_0x598a93;this[_0x47abf3(0x2fc)][_0x47abf3(0x176)](this[_0x47abf3(0x3a6)],this[_0x47abf3(0x29d)],this[_0x47abf3(0x291)],this[_0x47abf3(0x26c)]);}[_0x598a93(0x39c)](){const _0x2c716a=_0x598a93;return this[_0x2c716a(0x2b1)][_0x2c716a(0x16f)](this['unitID']);}[_0x598a93(0x15a)](){const _0xf8c89=_0x598a93;this[_0xf8c89(0x2b1)][_0xf8c89(0x247)](this[_0xf8c89(0x3a6)]);}[_0x598a93(0x300)](_0x3502d7){const _0x451cb2=_0x598a93;var _0x3d20de;const _0x231b6c=this[_0x451cb2(0x190)](_0x3502d7),_0x152c12=_0x4a38aa(_0x231b6c['mutations'],this[_0x451cb2(0x297)],{'fromCollab':!0x0});if(!_0x152c12[_0x451cb2(0x165)])throw _0x152c12[_0x451cb2(0x379)]instanceof Error?_0x152c12[_0x451cb2(0x379)]:new Error((_0x3d20de=_0x152c12['error'])!=null?_0x3d20de:_0x451cb2(0x485));this['_transformIMECache'](_0x231b6c),this['_transformUndoredo'](_0x3502d7),this[_0x451cb2(0x43b)](_0x231b6c),this[_0x451cb2(0x11f)](_0x231b6c),this[_0x451cb2(0x15a)]();}}let Se=class extends _e{constructor(_0x482599,_0x3d7b7d,_0x3bf9d6,_0x565dee,_0x22913e,_0x110a02,_0x48ae74,_0x576226,_0x2c733f,_0x48ab51){const _0x112868=_0x598a93;super(_0x482599,_0x3d7b7d,null,[],_0x3bf9d6,_0x576226,_0x48ae74,_0x565dee,_0x22913e),l(this,'status',_0x112868(0x33d)),(this['_injector']=_0x110a02,this[_0x112868(0x345)]=_0x2c733f,this[_0x112868(0x1d1)]=_0x48ab51);}[_0x598a93(0x221)](_0x23826c){const _0x391fc0=_0x598a93,_0x55078a=this[_0x391fc0(0x120)][_0x391fc0(0x466)](K,this[_0x391fc0(0x3a6)],this[_0x391fc0(0x29d)],[_0x23826c],this[_0x391fc0(0x32e)]);return _0x55078a[_0x391fc0(0x367)](),_0x55078a['_updateLocalCache'](),_0x55078a;}[_0x598a93(0x240)](_0xf45c3d){const _0x4c64a6=_0x598a93;if(this['_checkMissing'](_0xf45c3d))return this[_0x4c64a6(0x120)][_0x4c64a6(0x466)](k,this[_0x4c64a6(0x3a6)],this[_0x4c64a6(0x29d)],null,[],null,[_0xf45c3d],this['_handler']);try{const _0x398327=this[_0x4c64a6(0x1d1)]['transformMutationsWithChangeset'](_0xf45c3d,[ur]);if(_0x347ce0(_0x398327)){const {c1Prime:_0x44362d}=_0x398327;return this[_0x4c64a6(0x300)](_0x44362d),this;}throw _0x398327[_0x4c64a6(0x379)];}catch(_0x4d9e63){return this[_0x4c64a6(0x345)]['error'](_0x4d9e63),this[_0x4c64a6(0x2ff)](!0x1);}}['_onConflict'](_0x1bc8fe){const _0x2b199b=_0x598a93;return this[_0x2b199b(0x120)]['createInstance'](Q,this[_0x2b199b(0x3a6)],this[_0x2b199b(0x29d)],null,[],this['_handler'],_0x1bc8fe);}['onRemoteAck'](){const _0xe8c316=_0x598a93;throw new Error(_0xe8c316(0x124));}[_0x598a93(0x29e)](){const _0x44d0e5=_0x598a93;throw new Error(_0x44d0e5(0x1cf));}['toggleOffline'](){const _0x5478db=_0x598a93;return this['_injector'][_0x5478db(0x466)](ee,this[_0x5478db(0x3a6)],this[_0x5478db(0x29d)],null,[],this[_0x5478db(0x32e)]);}[_0x598a93(0x415)](){return this;}[_0x598a93(0x141)](){const _0x3d9a53=_0x598a93;throw new Error(_0x3d9a53(0x3d8));}['fetchMiss'](){const _0x1b24f7=_0x598a93,_0x36bd88=this[_0x1b24f7(0x2b1)]['getCurrentRevOfUnit'](this['unitID']);return this['_handler'][_0x1b24f7(0x425)]({'from':_0x36bd88,'to':0x0}),this[_0x1b24f7(0x120)][_0x1b24f7(0x466)](k,this['unitID'],this[_0x1b24f7(0x29d)],null,[],null,[],this[_0x1b24f7(0x32e)]);}};Se=le([m(0x3,_0x592774(_0x3fcef9)),m(0x4,_0x592774(D)),m(0x5,_0x592774(_0x579617)),m(0x6,_0x3f0b63),m(0x7,_0xbb225b),m(0x8,_0x1281de),m(0x9,_0x4cfc78)],Se);let K=class extends _e{constructor(_0x1ccfa3,_0x47de0e,_0x2579d5,_0x561448,_0x10adcf,_0x5dc7e5,_0x2f5c1b,_0x3c6470,_0x35e00d,_0x123f98,_0x77383,_0x5ab6cd,_0xafd8d4,_0x46b4d4){const _0x56caf0=_0x598a93;super(_0x1ccfa3,_0x47de0e,null,_0x2579d5,_0x561448,_0x123f98,_0x46b4d4,_0x5dc7e5,_0x2f5c1b),l(this,'status','pending'),l(this,'_scheduleTimestamp',null),l(this,'_sendingTimer',null),(this['_injector']=_0x10adcf,this[_0x56caf0(0x348)]=_0x3c6470,this[_0x56caf0(0x345)]=_0x35e00d,this[_0x56caf0(0x2c2)]=_0x77383,this[_0x56caf0(0x1d1)]=_0x5ab6cd,this[_0x56caf0(0x343)]=_0xafd8d4);}[_0x598a93(0x221)](_0x51922d){const _0x12dbd2=_0x598a93;return this[_0x12dbd2(0x26c)]['push'](_0x51922d),this[_0x12dbd2(0x239)](),this;}[_0x598a93(0x240)](_0x3bf2ad){const _0x13ee12=_0x598a93;if(this[_0x13ee12(0x211)](_0x3bf2ad))return this[_0x13ee12(0x206)](),this[_0x13ee12(0x120)][_0x13ee12(0x466)](k,this['unitID'],this['type'],null,this[_0x13ee12(0x26c)],null,[_0x3bf2ad],this[_0x13ee12(0x32e)]);try{const _0x3d4698=this['_transformService'][_0x13ee12(0x3cc)](_0x3bf2ad,this[_0x13ee12(0x26c)]);if(_0x347ce0(_0x3d4698)){const {c1Prime:_0x3e142c,m2Prime:_0xf2db55}=_0x3d4698;this['_executeRemoteChangeset'](_0x3e142c);const _0x176eb8=this[_0x13ee12(0x120)][_0x13ee12(0x466)](K,this[_0x13ee12(0x3a6)],this[_0x13ee12(0x29d)],_0xf2db55,this[_0x13ee12(0x32e)]);return this[_0x13ee12(0x206)](),_0x176eb8['_schedule'](this['_scheduleTimestamp']?Math[_0x13ee12(0x23c)](0x0,new Date()[_0x13ee12(0x1fb)]()-this['_scheduleTimestamp']):this[_0x13ee12(0x27a)]()),_0x176eb8;}throw _0x3d4698['error'];}catch(_0x45a374){return this[_0x13ee12(0x345)][_0x13ee12(0x379)](_0x45a374),this[_0x13ee12(0x2ff)](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x598a93(0x29e)](){const _0x5325f8=_0x598a93;throw new Error(_0x5325f8(0x40e));}[_0x598a93(0x16e)](){const _0x3c12e3=_0x598a93;return this[_0x3c12e3(0x206)](),this[_0x3c12e3(0x120)][_0x3c12e3(0x466)](ee,this[_0x3c12e3(0x3a6)],this[_0x3c12e3(0x29d)],null,this['_pendingMutations'],this[_0x3c12e3(0x32e)]);}['toggleOnline'](){return this;}[_0x598a93(0x367)](_0x25c025){const _0x25955d=_0x598a93,_0x33417d=_0x25c025!=null?_0x25c025:this[_0x25955d(0x27a)]();this[_0x25955d(0x1c2)]=new Date()[_0x25955d(0x1fb)](),this[_0x25955d(0x20b)]=window['setTimeout'](()=>{const _0x213146=_0x25955d;this[_0x213146(0x206)]();let _0x2b74ee=null;switch(this['type']){case H[_0x213146(0x174)]:{_0x2b74ee=ls(this[_0x213146(0x26c)],this['unitID'],this[_0x213146(0x343)],this[_0x213146(0x2b1)],this[_0x213146(0x348)]);break;}case H['UNIVER_DOC']:{this[_0x213146(0x26c)]['every'](_0x2e6109=>_0x2e6109['id']===_0x37a233['id'])?_0x2b74ee=_r(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x213146(0x2b1)],this[_0x213146(0x348)]):_0x2b74ee=ls(this['_pendingMutations'],this[_0x213146(0x3a6)],this[_0x213146(0x343)],this['_revisionService'],this[_0x213146(0x348)]);break;}default:throw new Error(_0x213146(0x284)+this[_0x213146(0x29d)]+_0x213146(0x1e2));}const {changeset:_0x584d96,pendingMutations:_0x5c935b}=_0x2b74ee;this[_0x213146(0x32e)]['onSendChangeset'](_0x584d96);const _0x2916a1=_0x5c935b[_0x213146(0x45e)]?this['_injector']['createInstance'](X,this[_0x213146(0x3a6)],this[_0x213146(0x29d)],_0x584d96,_0x5c935b,this[_0x213146(0x32e)]):this['_injector'][_0x213146(0x466)](Z,this[_0x213146(0x3a6)],this[_0x213146(0x29d)],_0x584d96,this[_0x213146(0x32e)]);_0x2916a1[_0x213146(0x239)](),this['_handler'][_0x213146(0x335)](this,_0x2916a1);},_0x33417d);}[_0x598a93(0x27a)](){const _0x1ddd6b=_0x598a93;var _0x48563b;const _0xe2daf8=this[_0x1ddd6b(0x2c2)][_0x1ddd6b(0x12d)](L);return(_0x48563b=_0xe2daf8==null?void 0x0:_0xe2daf8[_0x1ddd6b(0x17c)])!=null?_0x48563b:gn;}[_0x598a93(0x141)](){const _0x2a48bc=_0x598a93;throw new Error(_0x2a48bc(0x3ad));}[_0x598a93(0x206)](){const _0x2d18dc=_0x598a93;this[_0x2d18dc(0x20b)]!=null&&(clearTimeout(this[_0x2d18dc(0x20b)]),this[_0x2d18dc(0x20b)]=null);}[_0x598a93(0x2ff)](_0x55d06a){const _0x1fa1b6=_0x598a93;return this['_clearScheduledTask'](),this[_0x1fa1b6(0x120)][_0x1fa1b6(0x466)](Q,this[_0x1fa1b6(0x3a6)],this['type'],null,this['_pendingMutations'],this[_0x1fa1b6(0x32e)],_0x55d06a);}};K=le([m(0x4,_0x592774(_0x579617)),m(0x5,_0x592774(_0x3fcef9)),m(0x6,_0x592774(D)),m(0x7,_0x592774(ae)),m(0x8,_0x1281de),m(0x9,_0xbb225b),m(0xa,_0x3fc6a0),m(0xb,_0x4cfc78),m(0xc,_0x191290),m(0xd,_0x3f0b63)],K);let Z=class extends _e{constructor(_0x19bc22,_0x702ea,_0x2b9d6d,_0x11fd26,_0x20a77f,_0x12221e,_0x154fa0,_0xb9751a,_0x24119c,_0x4bc6cb,_0x4ecda5){const _0x338310=_0x598a93;super(_0x19bc22,_0x702ea,_0x2b9d6d,[],_0x11fd26,_0xb9751a,_0x4ecda5,_0x12221e,_0x154fa0),l(this,_0x338310(0x454),_0x338310(0x30d)),(this[_0x338310(0x120)]=_0x20a77f,this[_0x338310(0x345)]=_0x24119c,this[_0x338310(0x1d1)]=_0x4bc6cb);}['appendMutation'](_0xdf6bcf){const _0x4001c3=_0x598a93,_0x123d9b=this['_injector'][_0x4001c3(0x466)](X,this[_0x4001c3(0x3a6)],this[_0x4001c3(0x29d)],this[_0x4001c3(0x291)],[_0xdf6bcf],this[_0x4001c3(0x32e)]);return _0x123d9b[_0x4001c3(0x239)](),_0x123d9b;}[_0x598a93(0x240)](_0x34e02f){const _0x4afb13=_0x598a93;if(this[_0x4afb13(0x211)](_0x34e02f))return this[_0x4afb13(0x120)][_0x4afb13(0x466)](k,this['unitID'],this['type'],this['_awaitingChangeset'],[],null,[_0x34e02f],this[_0x4afb13(0x32e)]);try{const _0x229e54=this['_transformService'][_0x4afb13(0x28d)]([_0x34e02f],[this[_0x4afb13(0x291)]],!0x1);if(_0x78f6fa(_0x229e54)){const {c1Prime:_0x1ccdcc,c2Prime:_0x1c3122}=_0x229e54;this[_0x4afb13(0x300)](_0x1ccdcc[0x0]),_0x1c3122[0x0][_0x4afb13(0x2ed)]=this[_0x4afb13(0x39c)]();const _0x2dfaf0=this['_injector'][_0x4afb13(0x466)](Z,this[_0x4afb13(0x3a6)],this[_0x4afb13(0x29d)],_0x1c3122[0x0],this['_handler']);return _0x2dfaf0[_0x4afb13(0x239)](),_0x2dfaf0;}return this[_0x4afb13(0x2ff)](!0x1);}catch(_0x2acd83){return this[_0x4afb13(0x345)][_0x4afb13(0x379)](_0x2acd83),this['_onConflict'](!0x1);}}['onRemoteAck'](_0xd75991){const _0x2b62b2=_0x598a93,_0x3435f1=this['_revisionService'][_0x2b62b2(0x16f)](this[_0x2b62b2(0x3a6)]);if(_0xd75991[_0x2b62b2(0x43d)]<_0x3435f1-0x1)return this;if(this[_0x2b62b2(0x211)](_0xd75991))return this[_0x2b62b2(0x120)]['createInstance'](k,this[_0x2b62b2(0x3a6)],this[_0x2b62b2(0x29d)],null,[],this[_0x2b62b2(0x291)],[],this[_0x2b62b2(0x32e)]);this[_0x2b62b2(0x15a)]();const _0xe9ccf4=this[_0x2b62b2(0x120)][_0x2b62b2(0x466)](Se,this[_0x2b62b2(0x3a6)],this['type'],this[_0x2b62b2(0x32e)]);return _0xe9ccf4[_0x2b62b2(0x239)](),_0xe9ccf4;}[_0x598a93(0x29e)](_0xf6d3e0){const _0x3ad2fd=_0x598a93;return this['_onConflict'](!!(_0xf6d3e0!=null&&_0xf6d3e0[_0x3ad2fd(0x366)]));}[_0x598a93(0x16e)](){const _0x3e20d2=_0x598a93;return this[_0x3e20d2(0x120)][_0x3e20d2(0x466)](ee,this['unitID'],this[_0x3e20d2(0x29d)],this[_0x3e20d2(0x291)],[],this[_0x3e20d2(0x32e)]);}['toggleOnline'](){return this;}[_0x598a93(0x141)](){const _0x3ceaf1=_0x598a93;this[_0x3ceaf1(0x32e)][_0x3ceaf1(0x1a3)](this[_0x3ceaf1(0x291)]);}[_0x598a93(0x2ff)](_0xa4ab60){const _0x3cef7e=_0x598a93;return this['_injector'][_0x3cef7e(0x466)](Q,this[_0x3cef7e(0x3a6)],this[_0x3cef7e(0x29d)],this[_0x3cef7e(0x291)],[],this[_0x3cef7e(0x32e)],_0xa4ab60);}};function _0x5340(_0x5ac105,_0x58421f){const _0x3306ec=_0x3306();return _0x5340=function(_0x5340e3,_0x5d8143){_0x5340e3=_0x5340e3-0x116;let _0x3ced3f=_0x3306ec[_0x5340e3];return _0x3ced3f;},_0x5340(_0x5ac105,_0x58421f);}Z=le([m(0x4,_0x592774(_0x579617)),m(0x5,_0x592774(_0x3fcef9)),m(0x6,_0x592774(D)),m(0x7,_0xbb225b),m(0x8,_0x1281de),m(0x9,_0x4cfc78),m(0xa,_0x3f0b63)],Z);let X=class extends _e{constructor(_0x5506d4,_0x5aafd1,_0x3cc4dc,_0x123375,_0x221600,_0x4b3b34,_0x3f11cf,_0x43d1da,_0x24a136,_0x6a43cc,_0x155cd1,_0x3f357e){const _0x548e63=_0x598a93;super(_0x5506d4,_0x5aafd1,_0x3cc4dc,_0x123375,_0x221600,_0x24a136,_0x3f357e,_0x3f11cf,_0x43d1da),l(this,_0x548e63(0x454),_0x548e63(0x13d)),(this[_0x548e63(0x120)]=_0x4b3b34,this[_0x548e63(0x345)]=_0x6a43cc,this[_0x548e63(0x1d1)]=_0x155cd1);}[_0x598a93(0x221)](_0xc52b67){const _0x1c69a3=_0x598a93;return this[_0x1c69a3(0x26c)][_0x1c69a3(0x34e)](_0xc52b67),this;}['onRemoteChangeset'](_0xa01979){const _0x2a45dd=_0x598a93;if(this[_0x2a45dd(0x211)](_0xa01979))return this[_0x2a45dd(0x120)]['createInstance'](k,this['unitID'],this[_0x2a45dd(0x29d)],this[_0x2a45dd(0x291)],this[_0x2a45dd(0x26c)],null,[_0xa01979],this['_handler']);try{const _0x3fe058=this[_0x2a45dd(0x1d1)][_0x2a45dd(0x28d)]([_0xa01979],[this['_awaitingChangeset']],!0x1);if(_0x78f6fa(_0x3fe058)){const {c1Prime:_0x5aa97b,c2Prime:_0x267df1}=_0x3fe058,_0x40c67d=this['_transformService'][_0x2a45dd(0x3cc)](_0x5aa97b[0x0],this[_0x2a45dd(0x26c)]);if(_0x347ce0(_0x40c67d)){const {c1Prime:_0x4ef4e9,m2Prime:_0x2a07fc}=_0x40c67d;return this[_0x2a45dd(0x300)](_0x4ef4e9),_0x267df1[0x0][_0x2a45dd(0x2ed)]=this[_0x2a45dd(0x39c)](),this[_0x2a45dd(0x120)][_0x2a45dd(0x466)](X,this[_0x2a45dd(0x3a6)],this[_0x2a45dd(0x29d)],_0x267df1[0x0],_0x2a07fc,this[_0x2a45dd(0x32e)]);}throw _0x40c67d[_0x2a45dd(0x379)];}throw _0x3fe058[_0x2a45dd(0x379)];}catch(_0x4393e2){return this[_0x2a45dd(0x345)]['error'](_0x4393e2),this[_0x2a45dd(0x2ff)](!0x1);}}[_0x598a93(0x334)](_0x5f5609){const _0x44eec0=_0x598a93;if(this[_0x44eec0(0x211)](_0x5f5609))return this[_0x44eec0(0x120)]['createInstance'](k,this['unitID'],this[_0x44eec0(0x29d)],null,this[_0x44eec0(0x26c)],this[_0x44eec0(0x291)],[],this[_0x44eec0(0x32e)]);this[_0x44eec0(0x15a)]();const _0x9fc814=this['_injector'][_0x44eec0(0x466)](K,this['unitID'],this[_0x44eec0(0x29d)],this['_pendingMutations'],this[_0x44eec0(0x32e)]);return _0x9fc814[_0x44eec0(0x367)](),_0x9fc814[_0x44eec0(0x239)](),_0x9fc814;}[_0x598a93(0x29e)](_0x435e82){const _0x21ef38=_0x598a93;return this[_0x21ef38(0x2ff)](!!(_0x435e82!=null&&_0x435e82[_0x21ef38(0x366)]));}[_0x598a93(0x16e)](){const _0x1d6e7d=_0x598a93;return this[_0x1d6e7d(0x120)][_0x1d6e7d(0x466)](ee,this['unitID'],this[_0x1d6e7d(0x29d)],this['_awaitingChangeset'],this[_0x1d6e7d(0x26c)],this[_0x1d6e7d(0x32e)]);}[_0x598a93(0x415)](){return this;}[_0x598a93(0x141)](){const _0x13f74e=_0x598a93;this['_handler'][_0x13f74e(0x1a3)](this[_0x13f74e(0x291)]);}[_0x598a93(0x2ff)](_0x4a24bc){const _0x57ae4b=_0x598a93;return this[_0x57ae4b(0x120)][_0x57ae4b(0x466)](Q,this[_0x57ae4b(0x3a6)],this[_0x57ae4b(0x29d)],null,this[_0x57ae4b(0x26c)],this[_0x57ae4b(0x32e)],_0x4a24bc);}};X=le([m(0x5,_0x592774(_0x579617)),m(0x6,_0x592774(_0x3fcef9)),m(0x7,_0x592774(D)),m(0x8,_0xbb225b),m(0x9,_0x1281de),m(0xa,_0x4cfc78),m(0xb,_0x3f0b63)],X);let Q=class extends _e{constructor(_0x120c8b,_0x2654a8,_0x1a7f7a,_0x339a84,_0x10e2d6,_0x12d248=!0x1,_0x5e6c4d,_0x1aba54,_0x5d1ef1,_0x47e2b0,_0x256156,_0x1a439a,_0x256e09){const _0x140a2f=_0x598a93;super(_0x120c8b,_0x2654a8,_0x1a7f7a,_0x339a84,_0x10e2d6,_0x1aba54,_0x5d1ef1,_0x256156,_0x47e2b0),l(this,_0x140a2f(0x454),'conflict'),(this['_isPermissionRej']=_0x12d248,this[_0x140a2f(0x261)]=_0x5e6c4d,this[_0x140a2f(0x333)]=_0x1a439a,this[_0x140a2f(0x157)]=_0x256e09,this[_0x140a2f(0x39f)](),this[_0x140a2f(0x420)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x598a93(0x240)](){return this;}[_0x598a93(0x334)](){return this;}['onRemoteRej'](){return this;}[_0x598a93(0x16e)](){return this;}[_0x598a93(0x415)](){return this;}['resend'](){const _0x498e01=_0x598a93;throw new Error(_0x498e01(0x1e6));}[_0x598a93(0x420)](){const _0xe76bec=_0x598a93;this[_0xe76bec(0x2fc)][_0xe76bec(0x176)](this[_0xe76bec(0x3a6)],this[_0xe76bec(0x29d)],null,[]);}[_0x598a93(0x39f)](){const _0x49dc96=_0x598a93;this[_0x49dc96(0x3f6)]?this[_0x49dc96(0x157)][_0x49dc96(0x21e)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x49dc96(0x333)]['t']('permission.content'),'type':_0x49dc96(0x379),'duration':0x0}):this[_0x49dc96(0x157)][_0x49dc96(0x21e)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x49dc96(0x333)]['t'](_0x49dc96(0x2db)),'type':_0x49dc96(0x379),'duration':0x0});}['_disableEditing'](){const _0x377bdc=_0x598a93;this['_permissionService'][_0x377bdc(0x306)](new _0x1d1f35(this[_0x377bdc(0x3a6)])['id'],!0x1);}};Q=le([m(0x6,_0x592774(_0x28af49)),m(0x7,_0xbb225b),m(0x8,_0x3f0b63),m(0x9,_0x592774(D)),m(0xa,_0x592774(_0x3fcef9)),m(0xb,_0x592774(_0x2af7ec)),m(0xc,_0x2d6a0c)],Q);let ee=class extends _e{constructor(_0x46ef6f,_0x3b2bee,_0x4ca102,_0x342b37,_0x28de39,_0x14041d,_0x13611,_0x3ba8d6,_0x252108,_0x186b9c){const _0x36c8e8=_0x598a93;super(_0x46ef6f,_0x3b2bee,_0x4ca102,_0x342b37,_0x28de39,_0x252108,_0x186b9c,_0x13611,_0x3ba8d6),l(this,_0x36c8e8(0x454),_0x36c8e8(0x234)),this[_0x36c8e8(0x120)]=_0x14041d;}['appendMutation'](_0x42c030){const _0xafc481=_0x598a93;return this[_0xafc481(0x26c)]['push'](_0x42c030),this[_0xafc481(0x239)](),this;}[_0x598a93(0x240)](_0x15fc1c){const _0x355e17=_0x598a93;throw new Error(_0x355e17(0x3a3));}[_0x598a93(0x334)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x598a93(0x16e)](){return this;}['toggleOnline'](){const _0x4bc746=_0x598a93,{_injector:_0x306334,_pendingMutations:_0x4fc093,_awaitingChangeset:_0x9b915f,unitID:_0x1feecf,_handler:_0x2bc647,type:_0x3124e1}=this,_0x3b430c=Hs(_0x306334,_0x1feecf,_0x3124e1,_0x9b915f,_0x4fc093,_0x2bc647);return _0x3b430c instanceof K?_0x3b430c[_0x4bc746(0x367)]():(_0x3b430c instanceof X||_0x3b430c instanceof Z)&&_0x3b430c[_0x4bc746(0x141)](),_0x3b430c;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ee=le([m(0x5,_0x592774(_0x579617)),m(0x6,_0x592774(_0x3fcef9)),m(0x7,_0x592774(D)),m(0x8,_0xbb225b),m(0x9,_0x3f0b63)],ee);let k=class extends _e{constructor(_0x392b74,_0x42c6e2,_0x447b63,_0x58d1e2,_0x228009,_0xa9c409,_0x38f88e,_0x2e7e24,_0x3638ac,_0x347964,_0x5ec2bf,_0x30e1f1,_0x4a87bd,_0x45ff19){const _0x27a6b8=_0x598a93;super(_0x392b74,_0x42c6e2,_0x447b63,_0x58d1e2,_0x38f88e,_0x30e1f1,_0x4a87bd,_0x3638ac,_0x347964),l(this,_0x27a6b8(0x454),_0x27a6b8(0x1b1)),(this['_acknowledgedAwaitingChangeset']=_0x228009,this[_0x27a6b8(0x3e3)]=_0xa9c409,this[_0x27a6b8(0x120)]=_0x2e7e24,this[_0x27a6b8(0x345)]=_0x5ec2bf,this[_0x27a6b8(0x1d1)]=_0x45ff19);}[_0x598a93(0x433)](_0x311605){const _0x596897=_0x598a93;try{const _0x21b3b9=[..._0x311605,...this[_0x596897(0x3e3)]],_0x3f5e9c=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x596897(0x23a)](_0x5d4b49=>!!_0x5d4b49);let _0x8b8403,_0x3c41cd;if(_0x3f5e9c[_0x596897(0x45e)]){const _0x866c32=this[_0x596897(0x1d1)][_0x596897(0x28d)](_0x21b3b9,_0x3f5e9c,!0x1);if(!_0x78f6fa(_0x866c32))throw _0x866c32[_0x596897(0x379)];_0x8b8403=_0x866c32[_0x596897(0x272)],_0x3c41cd=_0x866c32['c2Prime'];}else _0x8b8403=_0x21b3b9,_0x3c41cd=[];let _0x542a02=this[_0x596897(0x26c)];_0x8b8403['forEach'](_0x3e835a=>{const _0x5ddf08=_0x596897;let _0x3c0cc1;if(_0x542a02['length']){const _0x55f259=this[_0x5ddf08(0x1d1)][_0x5ddf08(0x3cc)](_0x3e835a,_0x542a02);if(!_0x347ce0(_0x55f259))throw _0x55f259[_0x5ddf08(0x379)];_0x3c0cc1=_0x55f259[_0x5ddf08(0x272)],_0x542a02=_0x55f259[_0x5ddf08(0x13b)];}else _0x3c0cc1=_0x3e835a;this[_0x5ddf08(0x300)](_0x3c0cc1);}),this[_0x596897(0x321)]&&this[_0x596897(0x15a)](),this[_0x596897(0x291)]&&_0x3c41cd[_0x596897(0x45e)]&&(_0x3c41cd[0x0][_0x596897(0x2ed)]=this['_getCurrentRevision']());let _0x3e66bf;if(this[_0x596897(0x291)]&&_0x542a02['length']!==0x0)_0x3e66bf=this[_0x596897(0x120)][_0x596897(0x466)](X,this[_0x596897(0x3a6)],this[_0x596897(0x29d)],_0x3c41cd[0x0],_0x542a02,this['_handler']);else{if(this['_awaitingChangeset']&&_0x542a02[_0x596897(0x45e)]===0x0)_0x3c41cd[0x0]['baseRev']=this[_0x596897(0x39c)](),_0x3e66bf=this[_0x596897(0x120)][_0x596897(0x466)](Z,this[_0x596897(0x3a6)],this[_0x596897(0x29d)],_0x3c41cd[0x0],this['_handler']);else{if(_0x542a02['length']!==0x0){const _0x1f8d5e=this[_0x596897(0x120)][_0x596897(0x466)](K,this[_0x596897(0x3a6)],this[_0x596897(0x29d)],_0x542a02,this[_0x596897(0x32e)]);_0x1f8d5e['_schedule'](),_0x3e66bf=_0x1f8d5e;}else _0x3e66bf=this[_0x596897(0x120)][_0x596897(0x466)](Se,this['unitID'],this[_0x596897(0x29d)],this[_0x596897(0x32e)]);}}return _0x3e66bf[_0x596897(0x239)](),_0x3e66bf;}catch(_0x44400e){return this[_0x596897(0x345)][_0x596897(0x379)](_0x596897(0x22b),_0x596897(0x460),_0x44400e),this['_injector']['createInstance'](Q,this[_0x596897(0x3a6)],this[_0x596897(0x29d)],this['_awaitingChangeset'],this[_0x596897(0x26c)],this[_0x596897(0x32e)],!0x1);}}[_0x598a93(0x141)](){const _0x47eb9c=_0x598a93;throw new Error(_0x47eb9c(0x142));}[_0x598a93(0x221)](_0x52bcc9){const _0x1ce636=_0x598a93;return this[_0x1ce636(0x26c)][_0x1ce636(0x34e)](_0x52bcc9),this;}[_0x598a93(0x240)](_0x577d64){const _0x5a388c=_0x598a93;return this['_queuedRemoteChangesets'][_0x5a388c(0x34e)](_0x577d64),this;}[_0x598a93(0x334)](_0x22b9a9){const _0x59d092=_0x598a93;if(this[_0x59d092(0x291)])return this[_0x59d092(0x321)]=this['_awaitingChangeset'],this[_0x59d092(0x291)]=null,this;throw new Error(_0x59d092(0x27d));}[_0x598a93(0x29e)](_0x15a51d){const _0x36395a=_0x598a93;return this[_0x36395a(0x2ff)](!!(_0x15a51d!=null&&_0x15a51d[_0x36395a(0x366)]));}[_0x598a93(0x16e)](){const _0x3f549f=_0x598a93;return this[_0x3f549f(0x120)][_0x3f549f(0x466)](ee,this[_0x3f549f(0x3a6)],this[_0x3f549f(0x29d)],this[_0x3f549f(0x291)],this[_0x3f549f(0x26c)],this[_0x3f549f(0x32e)]);}[_0x598a93(0x415)](){return this;}[_0x598a93(0x2ff)](_0x22bd17){const _0x24fba3=_0x598a93;return this[_0x24fba3(0x120)]['createInstance'](Q,this[_0x24fba3(0x3a6)],this[_0x24fba3(0x29d)],this[_0x24fba3(0x291)],this[_0x24fba3(0x26c)],this[_0x24fba3(0x32e)],_0x22bd17);}};k=le([m(0x7,_0x592774(_0x579617)),m(0x8,_0x592774(_0x3fcef9)),m(0x9,_0x592774(D)),m(0xa,_0x1281de),m(0xb,_0xbb225b),m(0xc,_0x3f0b63),m(0xd,_0x4cfc78)],k);function Hs(_0x41c97e,_0x36979c,_0x38811c,_0x5e3229,_0x304bdc,_0x47afc3){const _0x4a6dcc=_0x598a93;return _0x5e3229&&_0x304bdc[_0x4a6dcc(0x45e)]?_0x41c97e['createInstance'](X,_0x36979c,_0x38811c,_0x5e3229,_0x304bdc,_0x47afc3):_0x5e3229?_0x41c97e['createInstance'](Z,_0x36979c,_0x38811c,_0x5e3229,_0x47afc3):_0x304bdc[_0x4a6dcc(0x45e)]?_0x41c97e[_0x4a6dcc(0x466)](K,_0x36979c,_0x38811c,_0x304bdc,_0x47afc3):_0x41c97e[_0x4a6dcc(0x466)](Se,_0x36979c,_0x38811c,_0x47afc3);}var mr=Object[_0x598a93(0x171)],gr=Object[_0x598a93(0x1cb)],Vt=(_0x4c4c7e,_0x2c92ec,_0x1bd631,_0xe670d5)=>{const _0x45b6b6=_0x598a93;for(var _0x235271=_0xe670d5>0x1?void 0x0:_0xe670d5?gr(_0x2c92ec,_0x1bd631):_0x2c92ec,_0x5b66e4=_0x4c4c7e[_0x45b6b6(0x45e)]-0x1,_0x30d2da;_0x5b66e4>=0x0;_0x5b66e4--)(_0x30d2da=_0x4c4c7e[_0x5b66e4])&&(_0x235271=(_0xe670d5?_0x30d2da(_0x2c92ec,_0x1bd631,_0x235271):_0x30d2da(_0x235271))||_0x235271);return _0xe670d5&&_0x235271&&mr(_0x2c92ec,_0x1bd631,_0x235271),_0x235271;},p=(_0x45104d,_0x29d828)=>(_0x46ea85,_0xd366b5)=>_0x29d828(_0x46ea85,_0xd366b5,_0x45104d);let Je=class extends _0x39a217{constructor(_0x530a91,_0x6b701a,_0x226b4c,_0xf54d0b,_0x103c3b,_0x4d8cd3,_0x5772cb,_0x214f7d,_0x13fb74,_0x52ac9d,_0x56279b,_0x2793bb,_0x203bd6){const _0x340f6f=_0x598a93;super(),l(this,_0x340f6f(0x259),new _0x59597c(null)),l(this,'state$',this['_state$'][_0x340f6f(0x1b6)]()),l(this,_0x340f6f(0x2eb)),l(this,_0x340f6f(0x15c),!0x1),l(this,_0x340f6f(0x1fd),this[_0x340f6f(0x322)][_0x340f6f(0x22c)](_0x58c153(_0xe8e5d=>_0xe8e5d?_0xe8e5d[_0x340f6f(0x454)]:w['OFFLINE']),_0x55473f(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x340f6f(0x31e),[]),(this[_0x340f6f(0x3a6)]=_0x530a91,this[_0x340f6f(0x3ff)]=_0x6b701a,this[_0x340f6f(0x18a)]=_0x226b4c,this[_0x340f6f(0x120)]=_0xf54d0b,this[_0x340f6f(0x2fc)]=_0x103c3b,this[_0x340f6f(0x40d)]=_0x4d8cd3,this['_localeService']=_0x5772cb,this[_0x340f6f(0x2b1)]=_0x214f7d,this[_0x340f6f(0x345)]=_0x13fb74,this[_0x340f6f(0x297)]=_0x52ac9d,this['_messageService']=_0x56279b,this[_0x340f6f(0x261)]=_0x2793bb,this[_0x340f6f(0x17a)]=_0x203bd6);}get['state'](){const _0x3573f8=_0x598a93;return this[_0x3573f8(0x2eb)];}async['init'](){const _0x3fc53c=_0x598a93;if(this['state'])throw new Error(_0x3fc53c(0x3de));await this[_0x3fc53c(0x290)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x440d86(()=>{const _0x4febc9=_0x5340;this[_0x4febc9(0x15c)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x598a93(0x1d0)](_0x1828cb){const _0x9972b5=_0x598a93;this['_state']=_0x1828cb,this[_0x9972b5(0x259)][_0x9972b5(0x12a)](_0x1828cb);}async[_0x598a93(0x290)](){const _0x1c6029=_0x598a93;var _0x1e675a;this[_0x1c6029(0x1d0)](await this[_0x1c6029(0x342)]()),this[_0x1c6029(0x17a)]&&((_0x1e675a=this[_0x1c6029(0x17a)])==null||_0x1e675a[_0x1c6029(0x427)](this['unitID']),this['disposeWithMe'](this[_0x1c6029(0x17a)][_0x1c6029(0x34b)](this[_0x1c6029(0x3a6)])['subscribe'](_0x111658=>{const _0x5344c1=_0x1c6029;this[_0x5344c1(0x345)]['debug'](_0x5344c1(0x338),'editing\x20status\x20changed\x20to',_0x111658),_0x111658===js[_0x5344c1(0x2b4)]?(this[_0x5344c1(0x17f)]['show']({'content':this['_localeService']['t'](_0x5344c1(0x2a4)),'type':_0x19f1bd['Warning']}),this[_0x5344c1(0x261)][_0x5344c1(0x306)](new _0x1d1f35(this[_0x5344c1(0x3a6)])['id'],!0x1)):this[_0x5344c1(0x261)][_0x5344c1(0x306)](new _0x1d1f35(this[_0x5344c1(0x3a6)])['id'],!0x0);})));let _0x9de7b1=!0x1;return this[_0x1c6029(0x147)](this[_0x1c6029(0x3ff)][_0x1c6029(0x1aa)][_0x1c6029(0x19e)](_0x394624=>{const _0x15cb51=_0x1c6029;_0x394624===G[_0x15cb51(0x35f)]?this['_toggleOnline'](_0x9de7b1):_0x394624===G['OFFLINE']&&(_0x9de7b1=!0x0,this['_toggleOffline']());})),this[_0x1c6029(0x147)](this[_0x1c6029(0x3ff)][_0x1c6029(0x207)][_0x1c6029(0x19e)](_0x235cbc=>{const _0x4f385b=_0x1c6029;try{switch(_0x235cbc[_0x4f385b(0x1a6)]){case _0x5e9e5f['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_0x24cdf8(_0x235cbc[_0x4f385b(0x249)]));break;}case _0x5e9e5f['CHANGESET_ACK']:{this[_0x4f385b(0x42f)](_0x235cbc[_0x4f385b(0x249)]);break;}case _0x5e9e5f[_0x4f385b(0x3d0)]:{this[_0x4f385b(0x413)]();break;}case _0x5e9e5f[_0x4f385b(0x17e)]:{this['_onFetchMissResult'](_0x235cbc['data'][_0x4f385b(0x230)][_0x4f385b(0x202)](_0x39f227=>_0x24cdf8(_0x39f227)));break;}case _0x5e9e5f[_0x4f385b(0x1db)]:this[_0x4f385b(0x413)]({'isPermissionRej':!0x0});}}catch(_0x2e8f4b){throw console[_0x4f385b(0x379)](_0x4f385b(0x3db),_0x2e8f4b),_0x2e8f4b;}})),this[_0x1c6029(0x2eb)];}[_0x598a93(0x439)](){const _0x4e6c78=_0x598a93;this[_0x4e6c78(0x198)]=!0x1;}[_0x598a93(0x36a)](){const _0x139de8=_0x598a93;if(this[_0x139de8(0x198)])throw new Error(_0x139de8(0x1dc));this[_0x139de8(0x198)]=!0x0;}[_0x598a93(0x210)](_0x304e7b){const _0x32fe7e=_0x598a93;this['_lockTransition'](),this[_0x32fe7e(0x1d0)](this['_state'][_0x32fe7e(0x221)](_0x304e7b)),this[_0x32fe7e(0x439)]();}[_0x598a93(0x3ef)](_0x100da8){const _0x140e7d=_0x598a93;if(!(_0x100da8[_0x140e7d(0x43d)]<=this[_0x140e7d(0x2b1)][_0x140e7d(0x16f)](this[_0x140e7d(0x3a6)]))){if(this[_0x140e7d(0x15c)]){this[_0x140e7d(0x31e)][_0x140e7d(0x34e)](_0x100da8);return;}this[_0x140e7d(0x42b)](_0x100da8);}}[_0x598a93(0x11e)](){const _0x3c7ac8=_0x598a93;this[_0x3c7ac8(0x31e)]['forEach'](_0x46d60d=>this[_0x3c7ac8(0x42b)](_0x46d60d)),this[_0x3c7ac8(0x31e)]=[];}[_0x598a93(0x42b)](_0x56650c){const _0x307ef1=_0x598a93,_0x390bfe=this[_0x307ef1(0x40d)][_0x307ef1(0x3e7)][_0x307ef1(0x457)](this[_0x307ef1(0x40d)]['interceptor'][_0x307ef1(0x2c1)]()[_0x307ef1(0x266)])(_0x56650c[_0x307ef1(0x3fb)],null)||_0x56650c[_0x307ef1(0x3fb)],_0x1f9f7b={..._0x56650c,'mutations':_0x390bfe};this[_0x307ef1(0x36a)](),this[_0x307ef1(0x1d0)](this[_0x307ef1(0x2eb)][_0x307ef1(0x240)](_0x1f9f7b)),this[_0x307ef1(0x439)]();}['_onRemoteACK'](_0x11c505){const _0x5c7a3a=_0x598a93;this['_lockTransition'](),this[_0x5c7a3a(0x1d0)](this[_0x5c7a3a(0x2eb)][_0x5c7a3a(0x334)](_0x11c505)),this['_unlockTransition']();}[_0x598a93(0x413)](_0x2b7b8b){const _0x58039c=_0x598a93;this['_lockTransition'](),this['_updateState'](this[_0x58039c(0x2eb)][_0x58039c(0x29e)](_0x2b7b8b)),this['_unlockTransition']();}[_0x598a93(0x149)](_0x3ca909){const _0x54a928=_0x598a93;if(!(this[_0x54a928(0x2eb)]instanceof k))throw new TypeError(_0x54a928(0x177));const _0xdec815=_0x3ca909[_0x54a928(0x202)](_0x10195f=>{const _0xb88dd7=_0x54a928,_0x462076=this[_0xb88dd7(0x40d)]['interceptor'][_0xb88dd7(0x457)](this['_compressMutationService']['interceptor'][_0xb88dd7(0x2c1)]()[_0xb88dd7(0x266)])(_0x10195f['mutations'],null)||_0x10195f[_0xb88dd7(0x3fb)];return{..._0x10195f,'mutations':_0x462076};});this[_0x54a928(0x36a)](),this[_0x54a928(0x1d0)](this[_0x54a928(0x2eb)]['onMissedChangesetFetched'](_0xdec815)),this[_0x54a928(0x439)]();}['_toggleOffline'](){const _0x225286=_0x598a93;this['_lockTransition'](),this[_0x225286(0x1d0)](this[_0x225286(0x2eb)][_0x225286(0x16e)]()),this['_unlockTransition']();}[_0x598a93(0x1d4)](_0x1058d8=!0x1){const _0x1747b1=_0x598a93;this['_lockTransition'](),this[_0x1747b1(0x1d0)](this[_0x1747b1(0x2eb)][_0x1747b1(0x415)]()),this[_0x1747b1(0x439)]();const _0x3b65df=this['_state'];_0x1058d8&&_0x3b65df instanceof Se&&(this[_0x1747b1(0x36a)](),this[_0x1747b1(0x1d0)](_0x3b65df[_0x1747b1(0x397)]()),this[_0x1747b1(0x439)]());}async['_createInitialState'](){return new Promise(_0x5453a9=>{const _0x9ba0e9=_0x5340;this[_0x9ba0e9(0x3ff)][_0x9ba0e9(0x1aa)]['pipe'](_0x593d58(0x1))[_0x9ba0e9(0x19e)](async _0x2a0688=>{const _0x1adab0=_0x9ba0e9;_0x5453a9(await this[_0x1adab0(0x287)](_0x2a0688===G[_0x1adab0(0x35f)]));});});}[_0x598a93(0x1dd)](){const _0x4a0394=_0x598a93,_0x19fc3a=this[_0x4a0394(0x3a6)];return{'onStateChange':(_0x5a25c5,_0x317b26)=>{const _0x4a6644=_0x4a0394;if(_0x5a25c5!==this['_state'])throw new Error(_0x4a6644(0x1ca)+_0x5a25c5[_0x4a6644(0x454)]+_0x4a6644(0x2f1)+_0x317b26['status']+_0x4a6644(0x3c5)+this['_state'][_0x4a6644(0x454)]);this[_0x4a6644(0x1d0)](_0x317b26);},'onSendChangeset':_0x20891c=>{const _0x2deda7=_0x4a0394,_0x54bbc7={'eventID':_0x5e9e5f[_0x2deda7(0x236)],'data':{'unitID':_0x20891c['unitID'],'unitType':this[_0x2deda7(0x18a)],'changeset':_0x20891c,'memberID':this[_0x2deda7(0x3ff)][_0x2deda7(0x3dc)]()}};this[_0x2deda7(0x3ff)][_0x2deda7(0x31c)](_0x54bbc7,this[_0x2deda7(0x3a6)]);},'onMissingChangesets':({from:_0xc30ba9,to:_0x13ec9d})=>{const _0x5cfb32=_0x4a0394;this[_0x5cfb32(0x345)][_0x5cfb32(0x276)](_0x5cfb32(0x338),'fetching\x20missing\x20changesets\x20from\x20'+_0xc30ba9+_0x5cfb32(0x3b9)+_0x13ec9d);const _0x21b8c5={'eventID':_0x5e9e5f[_0x5cfb32(0x401)],'data':{'unitID':_0x19fc3a,'unitType':this[_0x5cfb32(0x18a)],'from':_0xc30ba9,'to':_0x13ec9d}};this[_0x5cfb32(0x3ff)][_0x5cfb32(0x31c)](_0x21b8c5,this[_0x5cfb32(0x3a6)]);}};}async[_0x598a93(0x287)](_0x3788fb){const _0xc102b0=_0x598a93;var _0xcf91b2,_0x2e4f7a;const _0x1ae0d6=await this[_0xc102b0(0x2fc)][_0xc102b0(0x442)](this[_0xc102b0(0x3a6)]),_0x425a4b=(_0xcf91b2=_0x1ae0d6==null?void 0x0:_0x1ae0d6[_0xc102b0(0x3fb)])!=null?_0xcf91b2:[],_0x1a170b=(_0x2e4f7a=_0x1ae0d6==null?void 0x0:_0x1ae0d6['awaitingChangeset'])!=null?_0x2e4f7a:null,_0x406a06=this[_0xc102b0(0x3a6)];try{this['_replayCachedMutations'](_0x1a170b,_0x425a4b);}catch(_0x13d1c9){this[_0xc102b0(0x345)]['error'](_0x13d1c9);}const _0x12f6cf=this[_0xc102b0(0x1dd)]();if(_0x3788fb){const _0x370ba2=Hs(this['_injector'],_0x406a06,this[_0xc102b0(0x18a)],_0x1a170b,_0x425a4b,_0x12f6cf);return _0x370ba2 instanceof K?_0x370ba2[_0xc102b0(0x367)]():(_0x370ba2 instanceof X||_0x370ba2 instanceof Z)&&_0x370ba2[_0xc102b0(0x141)](),_0x370ba2;}return this[_0xc102b0(0x120)][_0xc102b0(0x466)](ee,_0x406a06,this['_type'],_0x1a170b,_0x425a4b,_0x12f6cf);}[_0x598a93(0x293)](_0x44bfa1,_0x2b8432){const _0xcae903=_0x598a93;var _0x52a9e9,_0x3cb87c;const _0x29e6eb=this[_0xcae903(0x40d)][_0xcae903(0x3e7)]['fetchThroughInterceptors'](this[_0xcae903(0x40d)]['interceptor'][_0xcae903(0x2c1)]()[_0xcae903(0x266)]);(_0x52a9e9=_0x29e6eb((_0x44bfa1==null?void 0x0:_0x44bfa1[_0xcae903(0x3fb)])||[],null))==null||_0x52a9e9[_0xcae903(0x264)](_0x1e707a=>this[_0xcae903(0x297)][_0xcae903(0x395)](_0x1e707a['id'],_0x1e707a['params'])),(_0x3cb87c=_0x29e6eb(_0x2b8432||[],null))==null||_0x3cb87c[_0xcae903(0x264)](_0x346586=>this[_0xcae903(0x297)][_0xcae903(0x395)](_0x346586['id'],_0x346586['params']));}};Je=Vt([p(0x3,_0x592774(_0x579617)),p(0x4,_0x592774(D)),p(0x5,_0x592774(_0x425aac)),p(0x6,_0x592774(_0x2af7ec)),p(0x7,_0x592774(_0x3fcef9)),p(0x8,_0x1281de),p(0x9,_0xbb225b),p(0xa,_0x369676),p(0xb,_0x28af49),p(0xc,_0x3372cb(tt))],Je);let bt=class extends Je{constructor(_0x37e620,_0x1d17bb,_0x79792,_0x45efbc,_0x5d50c9,_0x53398e,_0x284ef3,_0x1b47aa,_0x4d189f,_0x522d18,_0x5641e4,_0x54c9d2,_0x5e40fb,_0x45ddc1,_0x3c12f1,_0x2041dc,_0x4ba8a0){const _0x22180f=_0x598a93;super(_0x37e620,_0x79792,_0x1d17bb,_0x45efbc,_0x5d50c9,_0x53398e,_0x284ef3,_0x1b47aa,_0x5e40fb,_0x45ddc1,_0x3c12f1,_0x2041dc,_0x4ba8a0),this[_0x22180f(0x3a6)]=_0x37e620,this[_0x22180f(0x29d)]=_0x1d17bb,this[_0x22180f(0x2a9)]=_0x4d189f,this[_0x22180f(0x139)]=_0x522d18,this['_docTransformSelectionsService']=_0x5641e4,this[_0x22180f(0x123)]=_0x54c9d2;}['_createHandler'](){const _0x4914fe=_0x598a93,_0x52b80d=super['_createHandler']();return _0x52b80d['onTransformIME']=_0x38420b=>this['_docTransformIMECacheService'][_0x4914fe(0x43c)](_0x38420b),_0x52b80d['onTransformSelections']=_0x1455cf=>this['_docTransformSelectionsService'][_0x4914fe(0x304)](_0x1455cf),_0x52b80d[_0x4914fe(0x169)]=_0x270618=>this[_0x4914fe(0x123)][_0x4914fe(0x3b2)](_0x270618),_0x52b80d[_0x4914fe(0x32c)]=_0x3aaa60=>this[_0x4914fe(0x139)][_0x4914fe(0x387)](_0x3aaa60),_0x52b80d;}async[_0x598a93(0x290)](){const _0x163d03=_0x598a93,_0x91198a=await super[_0x163d03(0x290)]();return this[_0x163d03(0x147)](this[_0x163d03(0x297)][_0x163d03(0x280)]((_0x11e120,_0x395b70)=>{const _0x537c95=_0x163d03;if(_0x11e120[_0x537c95(0x29d)]!==_0x1887aa[_0x537c95(0x307)]||_0x395b70!=null&&_0x395b70[_0x537c95(0x24f)]||_0x395b70!=null&&_0x395b70[_0x537c95(0x370)])return;const _0x1e3f6e=_0x11e120[_0x537c95(0x27e)];if((_0x1e3f6e==null?void 0x0:_0x1e3f6e[_0x537c95(0x46f)])!==this[_0x537c95(0x3a6)])return;let _0x51eb12=_0x11e120;if(_0x51eb12['id']===_0x37a233['id']){const _0x29601e=_0x51eb12[_0x537c95(0x27e)];_0x51eb12={'id':_0x37a233['id'],'type':_0x1887aa[_0x537c95(0x307)],'params':{'unitId':_0x29601e['unitId'],'actions':_0x29601e[_0x537c95(0x394)],'textRanges':null}};}const _0x33259f=this['_compressMutationService'][_0x537c95(0x3e7)]['fetchThroughInterceptors'](this[_0x537c95(0x40d)]['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x51eb12],null)||[_0x51eb12];this[_0x537c95(0x210)](_0x33259f[0x0]);})),_0x91198a;}};bt=Vt([p(0x3,_0x592774(_0x579617)),p(0x4,_0x592774(D)),p(0x5,_0x592774(_0x425aac)),p(0x6,_0x592774(_0x2af7ec)),p(0x7,_0x592774(_0x3fcef9)),p(0x8,_0x592774(_0x37e77c)),p(0x9,_0x592774(Ye)),p(0xa,_0x592774(Xe)),p(0xb,_0x592774(Bt)),p(0xc,_0x1281de),p(0xd,_0xbb225b),p(0xe,_0x369676),p(0xf,_0x28af49),p(0x10,_0x3372cb(tt))],bt);let Tt=class extends Je{constructor(_0x3796e8,_0x29b7c5,_0xf562c4,_0x3d8355,_0x1513a7,_0x1efb7c,_0x148678,_0x4270ee,_0x3cd2cf,_0x45c859,_0xcb2e5a,_0x292df0,_0x2247ec,_0x162545){const _0x1dc5a6=_0x598a93;super(_0x3796e8,_0xf562c4,_0x29b7c5,_0x3d8355,_0x1513a7,_0x1efb7c,_0x148678,_0x4270ee,_0x45c859,_0xcb2e5a,_0x292df0,_0x2247ec,_0x162545),this['unitID']=_0x3796e8,this[_0x1dc5a6(0x29d)]=_0x29b7c5,this['_sheetTransformSelectionsService']=_0x3cd2cf;}[_0x598a93(0x1dd)](){const _0x208643=_0x598a93,_0x3e17d6=super[_0x208643(0x1dd)]();return _0x3e17d6[_0x208643(0x32f)]=_0x46b508=>this['_sheetTransformSelectionsService']['transformSelections'](_0x46b508),_0x3e17d6;}async[_0x598a93(0x290)](){const _0x55ee3a=_0x598a93,_0x21e437=await super[_0x55ee3a(0x290)]();return this['disposeWithMe'](this[_0x55ee3a(0x297)]['onCommandExecuted']((_0x3dd69a,_0x2d351b)=>{const _0x27bb95=_0x55ee3a;if(_0x3dd69a[_0x27bb95(0x29d)]!==_0x1887aa['MUTATION']||_0x2d351b!=null&&_0x2d351b[_0x27bb95(0x24f)]||_0x2d351b!=null&&_0x2d351b['onlyLocal'])return;const _0x34faaf=_0x3dd69a[_0x27bb95(0x27e)];if((_0x34faaf==null?void 0x0:_0x34faaf[_0x27bb95(0x46f)])!==this[_0x27bb95(0x3a6)])return;const _0x19a949=_0x3dd69a,_0x3c6157=this[_0x27bb95(0x40d)][_0x27bb95(0x3e7)][_0x27bb95(0x457)](this[_0x27bb95(0x40d)][_0x27bb95(0x3e7)][_0x27bb95(0x2c1)]()['COMPRESS_MUTATION_SEND'])([_0x19a949],null)||[_0x19a949];this[_0x27bb95(0x210)](_0x3c6157[0x0]);})),_0x21e437;}};Tt=Vt([p(0x3,_0x592774(_0x579617)),p(0x4,_0x592774(D)),p(0x5,_0x592774(_0x425aac)),p(0x6,_0x592774(_0x2af7ec)),p(0x7,_0x592774(_0x3fcef9)),p(0x8,_0x592774(Ke)),p(0x9,_0x1281de),p(0xa,_0xbb225b),p(0xb,_0x369676),p(0xc,_0x28af49),p(0xd,_0x3372cb(tt))],Tt);var Sr=Object[_0x598a93(0x171)],pr=Object[_0x598a93(0x1cb)],vr=(_0x551174,_0x1e5341,_0x1b589e,_0x5e7e72)=>{for(var _0x1f6f8c=_0x5e7e72>0x1?void 0x0:_0x5e7e72?pr(_0x1e5341,_0x1b589e):_0x1e5341,_0x37230f=_0x551174['length']-0x1,_0x3621be;_0x37230f>=0x0;_0x37230f--)(_0x3621be=_0x551174[_0x37230f])&&(_0x1f6f8c=(_0x5e7e72?_0x3621be(_0x1e5341,_0x1b589e,_0x1f6f8c):_0x3621be(_0x1f6f8c))||_0x1f6f8c);return _0x5e7e72&&_0x1f6f8c&&Sr(_0x1e5341,_0x1b589e,_0x1f6f8c),_0x1f6f8c;},lt=(_0x472a92,_0x5be17)=>(_0x3813b5,_0x4eb9cc)=>_0x5be17(_0x3813b5,_0x4eb9cc,_0x472a92);let Ae=class extends _0x39a217{constructor(_0x195a44,_0x2e1a10,_0x2a7ee5){const _0x2f0a5d=_0x598a93;super(),l(this,_0x2f0a5d(0x471),new Map()),l(this,_0x2f0a5d(0x273),new _0x2199d6()),(this[_0x2f0a5d(0x120)]=_0x195a44,this[_0x2f0a5d(0x12e)]=_0x2e1a10,this['_univerInstanceService']=_0x2a7ee5,this[_0x2f0a5d(0x290)]());}['dispose'](){const _0x142604=_0x598a93;super['dispose'](),this[_0x142604(0x471)]['forEach'](_0x1a795b=>_0x1a795b[_0x142604(0x308)]()),this[_0x142604(0x471)][_0x142604(0x35c)]();}['getCollabEntity'](_0x3d2c00){const _0x45aa8b=_0x598a93;var _0x40d53b;return(_0x40d53b=this[_0x45aa8b(0x471)][_0x45aa8b(0x175)](_0x3d2c00))!=null?_0x40d53b:null;}[_0x598a93(0x1f4)](_0x4eedec){const _0x3244c1=_0x598a93,_0x5caa36=this[_0x3244c1(0x318)](_0x4eedec);return _0x5caa36?_0x3fea04(_0x5caa36):this[_0x3244c1(0x273)][_0x3244c1(0x22c)](_0x34901b(_0x351de6=>_0x351de6['unitID']===_0x4eedec));}['_init'](){const _0x21c1a2=_0x598a93;this[_0x21c1a2(0x343)]['getTypeOfUnitAdded$'](_0x33d049[_0x21c1a2(0x174)])[_0x21c1a2(0x22c)](_0x5c2c79(this[_0x21c1a2(0x1f5)]),_0x3af41b(0x10))[_0x21c1a2(0x19e)](async _0x12adf5=>{const _0x5b9453=_0x21c1a2,_0x44af64=_0x12adf5[_0x5b9453(0x14c)](),_0x12cad3=await this[_0x5b9453(0x1ce)](_0x44af64,H[_0x5b9453(0x174)]);this[_0x5b9453(0x471)][_0x5b9453(0x314)](_0x44af64,_0x12cad3);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x33d049['UNIVER_DOC'])[_0x21c1a2(0x22c)](_0x5c2c79(this['dispose$']),_0x3af41b(0x10))['pipe'](_0x34901b(_0x169018=>!_0x169018['getUnitId']()['startsWith']('__')))[_0x21c1a2(0x19e)](async _0x3d7ecc=>{const _0x181588=_0x21c1a2,_0x426b25=_0x3d7ecc[_0x181588(0x14c)](),_0x38540c=await this[_0x181588(0x1ce)](_0x426b25,H['UNIVER_DOC']);this[_0x181588(0x471)]['set'](_0x426b25,_0x38540c);}),_0x4c82f1(this['_univerInstanceService'][_0x21c1a2(0x24c)](_0x33d049[_0x21c1a2(0x174)]),this[_0x21c1a2(0x343)][_0x21c1a2(0x24c)](_0x33d049[_0x21c1a2(0x17d)]))[_0x21c1a2(0x22c)](_0x5c2c79(this[_0x21c1a2(0x1f5)]))['subscribe'](_0x7ca119=>{const _0xea1f33=_0x21c1a2,_0x1eeb29=_0x7ca119['getUnitId'](),_0xd5e7b1=this[_0xea1f33(0x471)][_0xea1f33(0x175)](_0x1eeb29);_0xd5e7b1&&(_0xd5e7b1['dispose'](),this[_0xea1f33(0x471)][_0xea1f33(0x2c8)](_0x1eeb29));});}async[_0x598a93(0x1ce)](_0x15b672,_0x3a8d43){const _0xf3a3c7=_0x598a93,_0x6ae4ae=await this['_collabSessionService'][_0xf3a3c7(0x486)](_0x15b672),_0x409167=this['_injector']['createInstance'](this[_0xf3a3c7(0x2ea)](_0x3a8d43),_0x15b672,_0x3a8d43,_0x6ae4ae);return await _0x409167[_0xf3a3c7(0x217)](),this[_0xf3a3c7(0x273)][_0xf3a3c7(0x12a)](_0x409167),_0x409167;}['_getCtorByUniverType'](_0x498ae6){const _0x23c1dc=_0x598a93;switch(_0x498ae6){case H['UNIVER_DOC']:return bt;case H[_0x23c1dc(0x174)]:return Tt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x498ae6);}}};Ae=vr([lt(0x0,_0x592774(_0x579617)),lt(0x1,_0x592774(ce)),lt(0x2,_0x191290)],Ae);const _s=[_0x598a93(0x222),_0x598a93(0x34c),_0x598a93(0x474),'red300',_0x598a93(0x2f7),_0x598a93(0x33a)];class Ft extends _0x24edb8{constructor(){const _0x435d2d=_0x598a93;super(...arguments),l(this,_0x435d2d(0x18c),new Map()),l(this,_0x435d2d(0x2c4),0x0);}['assignAColorForMemberID'](_0x2c060e){const _0x5bd66c=_0x598a93;if(this[_0x5bd66c(0x18c)][_0x5bd66c(0x1af)](_0x2c060e))return this[_0x5bd66c(0x18c)][_0x5bd66c(0x175)](_0x2c060e);const _0x2ab43f=_s[this['_colorIndex']];return this[_0x5bd66c(0x2c4)]=(this[_0x5bd66c(0x2c4)]+0x1)%_s[_0x5bd66c(0x45e)],this['_assignedColors'][_0x5bd66c(0x314)](_0x2c060e,_0x2ab43f),_0x2ab43f;}}var Ir=Object[_0x598a93(0x171)],Er=Object[_0x598a93(0x1cb)],Cr=(_0x107a90,_0x20b928,_0x3bf268,_0xe94693)=>{const _0x3340b9=_0x598a93;for(var _0x5ad816=_0xe94693>0x1?void 0x0:_0xe94693?Er(_0x20b928,_0x3bf268):_0x20b928,_0x379eba=_0x107a90[_0x3340b9(0x45e)]-0x1,_0x37e34a;_0x379eba>=0x0;_0x379eba--)(_0x37e34a=_0x107a90[_0x379eba])&&(_0x5ad816=(_0xe94693?_0x37e34a(_0x20b928,_0x3bf268,_0x5ad816):_0x37e34a(_0x5ad816))||_0x5ad816);return _0xe94693&&_0x5ad816&&Ir(_0x20b928,_0x3bf268,_0x5ad816),_0x5ad816;},se=(_0x3c9871,_0x48d6a1)=>(_0x36095f,_0x5c0812)=>_0x48d6a1(_0x36095f,_0x5c0812,_0x3c9871);const br=0x12c,Tr=0x64;let Rt=class extends _0x39a217{constructor(_0x5a2aad,_0xe07aa9,_0x541fdd,_0x38f55f,_0x3494ac,_0x4f1b65,_0xad7226,_0x3d8ff9,_0x11e8cb){const _0x193fbe=_0x598a93;super(),l(this,_0x193fbe(0x3be),!0x1),l(this,'_init',!0x1),l(this,'_cursorInfo$',new _0x59597c(new Map())),l(this,_0x193fbe(0x173),this[_0x193fbe(0x2b6)][_0x193fbe(0x1b6)]()),l(this,_0x193fbe(0x11c),new _0x59597c([])),l(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x430a49(br))),l(this,_0x193fbe(0x3ac),_0x568d4b(_0x32cdf8=>{const _0xb221c8=_0x193fbe,_0x5b1f17={'eventID':_0x5e9e5f['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0xb221c8(0x42d)]['getMemberID'](),'selection':xs(_0x32cdf8)}};this[_0xb221c8(0x42d)][_0xb221c8(0x31c)](_0x5b1f17,this['unitID']);},Tr)),(this[_0x193fbe(0x3a6)]=_0x5a2aad,this['_session']=_0xe07aa9,this[_0x193fbe(0x120)]=_0x541fdd,this[_0x193fbe(0x214)]=_0x38f55f,this[_0x193fbe(0x348)]=_0x3494ac,this['_syncEditingCollabCursorService']=_0x4f1b65,this[_0x193fbe(0x1d1)]=_0xad7226,this[_0x193fbe(0x343)]=_0x3d8ff9,this[_0x193fbe(0x297)]=_0x11e8cb);}get[_0x598a93(0x1e3)](){const _0x5dbd35=_0x598a93;return this[_0x5dbd35(0x2b6)]['getValue']();}get['roomMembers'](){const _0x376624=_0x598a93;return this[_0x376624(0x11c)][_0x376624(0x47f)]();}[_0x598a93(0x308)](){const _0x433f29=_0x598a93;super[_0x433f29(0x308)](),this[_0x433f29(0x2b6)][_0x433f29(0x12a)](new Map()),this[_0x433f29(0x2b6)][_0x433f29(0x30a)](),this[_0x433f29(0x11c)][_0x433f29(0x12a)]([]),this[_0x433f29(0x11c)][_0x433f29(0x30a)]();}[_0x598a93(0x217)](){const _0x22424a=_0x598a93;this['_init']||(this[_0x22424a(0x290)]=!0x0,this[_0x22424a(0x42d)][_0x22424a(0x1aa)][_0x22424a(0x22c)](_0x5c2c79(this['dispose$']))[_0x22424a(0x19e)](_0x18a1c9=>{const _0x57a354=_0x22424a;_0x18a1c9===G[_0x57a354(0x35f)]?this[_0x57a354(0x1d4)]():this[_0x57a354(0x461)]();}),this[_0x22424a(0x42d)]['event$'][_0x22424a(0x22c)](_0x5c2c79(this['dispose$']))[_0x22424a(0x19e)](_0x45e022=>{const _0x538b4c=_0x22424a,_0x13b84b=_0x45e022[_0x538b4c(0x1a6)];_0x13b84b===_0x5e9e5f['UPDATE_CURSOR']&&this[_0x538b4c(0x451)](_0x45e022),_0x13b84b===_0x5e9e5f[_0x538b4c(0x289)]&&this[_0x538b4c(0x3ba)](_0x45e022);}),this[_0x22424a(0x147)](this['_commandService'][_0x22424a(0x280)](_0x112486=>{const _0x133d3f=_0x22424a,_0xb0f72b=_0x112486[_0x133d3f(0x27e)];_0xb0f72b!=null&&this[_0x133d3f(0x3be)]&&_0x112486['id']===_0x35a191['id']&&_0xb0f72b[_0x133d3f(0x46f)]===this[_0x133d3f(0x3a6)]&&_0xb0f72b[_0x133d3f(0x391)]===!0x1&&this[_0x133d3f(0x3ac)](_0xb0f72b[_0x133d3f(0x1d2)]);})),this[_0x22424a(0x2bf)]['collabCursorState$'][_0x22424a(0x22c)](_0x5c2c79(this[_0x22424a(0x1f5)]))[_0x22424a(0x19e)](_0x30f2f1=>{const _0x4c11fc=_0x22424a;if((_0x30f2f1==null?void 0x0:_0x30f2f1[_0x4c11fc(0x3a6)])!==this['unitID'])return;const _0x23a840={'eventID':_0x5e9e5f[_0x4c11fc(0x294)],'data':_0x30f2f1};this[_0x4c11fc(0x451)](_0x23a840);}),this[_0x22424a(0x147)](this[_0x22424a(0x297)][_0x22424a(0x280)](_0x27c1c1=>{const _0x32c86f=_0x22424a;if(_0x27c1c1[_0x32c86f(0x27e)]==null)return;const _0x2a980a=_0x27c1c1[_0x32c86f(0x27e)];if(_0x27c1c1['id']!==_0x37a233['id']||_0x2a980a['unitId']!==this[_0x32c86f(0x3a6)])return;const _0x2c5269={'id':_0x32c86f(0x310),'params':_0x2a980a},_0x60f598=this[_0x32c86f(0x1e3)];for(const [_0x208ba5,_0x4cf312]of _0x60f598){const _0xa5497d={'id':_0x32c86f(0x310),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4cf312[_0x32c86f(0x1d2)]}},_0x504076=this[_0x32c86f(0x1d1)][_0x32c86f(0x26e)](_0x2c5269,_0xa5497d,!0x1);if(_0x5396e5(_0x504076))throw _0x504076['error'];_0x60f598[_0x32c86f(0x314)](_0x208ba5,{..._0x4cf312,'ranges':_0x504076[_0x32c86f(0x13b)][_0x32c86f(0x27e)]['textRanges']});}queueMicrotask(()=>{const _0x3b6537=_0x32c86f;this[_0x3b6537(0x2b6)][_0x3b6537(0x12a)](_0x60f598);});})));}[_0x598a93(0x451)](_0x3a2e96){const _0x12a30b=_0x598a93;var _0x70afde,_0x382c13;const {memberID:_0x164afa,selection:_0x254c81}=_0x3a2e96[_0x12a30b(0x249)],_0x2a0366=or(_0x254c81),_0x3a6072=(_0x382c13=(_0x70afde=this['_memberService'][_0x12a30b(0x277)](this['unitID'],_0x164afa))==null?void 0x0:_0x70afde[_0x12a30b(0x3d7)])!=null?_0x382c13:_0x12a30b(0x13a),_0x24368d={'color':this['_colorAssignService'][_0x12a30b(0x3e6)](_0x164afa),'name':_0x3a6072,'ranges':_0x2a0366},_0x537ca3=this[_0x12a30b(0x1e3)];_0x537ca3[_0x12a30b(0x314)](_0x164afa,_0x24368d),this[_0x12a30b(0x2b6)][_0x12a30b(0x12a)](_0x537ca3);}[_0x598a93(0x3ba)](_0x2650e6){const _0x3fbe7a=_0x598a93,{memberID:_0x1801a4}=_0x2650e6[_0x3fbe7a(0x249)],_0x27f9a7=this[_0x3fbe7a(0x1e3)];_0x27f9a7[_0x3fbe7a(0x2c8)](_0x1801a4),this['_cursorInfo$'][_0x3fbe7a(0x12a)](_0x27f9a7);}[_0x598a93(0x1d4)](){const _0xa1ae9d=_0x598a93;var _0x32fe57;if(this[_0xa1ae9d(0x3be)]=!0x0,((_0x32fe57=this[_0xa1ae9d(0x343)][_0xa1ae9d(0x3c2)]())==null?void 0x0:_0x32fe57['getUnitId']())!==this[_0xa1ae9d(0x3a6)])return;const _0x617a1e=this[_0xa1ae9d(0x120)]['get'](_0x42d514)[_0xa1ae9d(0x2ce)]();Array[_0xa1ae9d(0x38e)](_0x617a1e)&&_0x617a1e[_0xa1ae9d(0x45e)]>0x0&&this[_0xa1ae9d(0x3ac)](_0x617a1e);}[_0x598a93(0x461)](){const _0x4dd6c0=_0x598a93;this[_0x4dd6c0(0x3be)]=!0x1;}};Rt=Cr([se(0x2,_0x592774(_0x579617)),se(0x3,_0x592774(Ft)),se(0x4,_0x592774(ae)),se(0x5,_0x592774(Bt)),se(0x6,_0x4cfc78),se(0x7,_0x191290),se(0x8,_0xbb225b)],Rt);var Rr=Object['defineProperty'],Or=Object['getOwnPropertyDescriptor'],Dr=(_0x19c7fc,_0x6d5f5c,_0x241620,_0x4d6c6a)=>{for(var _0x34c5ee=_0x4d6c6a>0x1?void 0x0:_0x4d6c6a?Or(_0x6d5f5c,_0x241620):_0x6d5f5c,_0x4ca8e9=_0x19c7fc['length']-0x1,_0x908e78;_0x4ca8e9>=0x0;_0x4ca8e9--)(_0x908e78=_0x19c7fc[_0x4ca8e9])&&(_0x34c5ee=(_0x4d6c6a?_0x908e78(_0x6d5f5c,_0x241620,_0x34c5ee):_0x908e78(_0x34c5ee))||_0x34c5ee);return _0x4d6c6a&&_0x34c5ee&&Rr(_0x6d5f5c,_0x241620,_0x34c5ee),_0x34c5ee;},fe=(_0x45dead,_0x8970d5)=>(_0x25d982,_0x4f945a)=>_0x8970d5(_0x25d982,_0x4f945a,_0x45dead);const wr=0x12c,Pr=0x64,yr=()=>{let _0x1d57e1=[],_0x49e9c6=!0x1;return _0x59083f=>{const _0x239d80=_0x5340;_0x1d57e1[_0x239d80(0x34e)](_0x59083f),_0x49e9c6||(_0x49e9c6=!0x0,setTimeout(()=>{const _0x11de8c=_0x239d80;_0x1d57e1[_0x11de8c(0x264)](_0x5686a6=>_0x5686a6()),_0x1d57e1=[],_0x49e9c6=!0x1;}));};};let Ot=class extends _0x39a217{constructor(_0x4ff6b4,_0x29396e,_0x37f424,_0x430c35,_0x2903dc,_0x7e063c,_0x15cc76,_0x1b0d21){const _0x51fa4e=_0x598a93;super(),l(this,_0x51fa4e(0x3be),!0x1),l(this,'_init',!0x1),l(this,_0x51fa4e(0x2b6),new _0x59597c(new Map())),l(this,'cursorInfo$',this[_0x51fa4e(0x2b6)]['asObservable']()),l(this,_0x51fa4e(0x11c),new _0x59597c([])),l(this,_0x51fa4e(0x2ac),this[_0x51fa4e(0x11c)][_0x51fa4e(0x22c)](_0x430a49(wr))),l(this,_0x51fa4e(0x3ac),_0x568d4b((_0x4fd02c,_0x1377b7)=>{const _0x54f469=_0x51fa4e,_0x1f6ac1={'eventID':_0x5e9e5f[_0x54f469(0x294)],'data':{'unitID':this[_0x54f469(0x3a6)],'memberID':this['_session'][_0x54f469(0x3dc)](),'selection':_0x43a483(_0x4fd02c,_0x1377b7[_0x54f469(0x136)])}};this[_0x54f469(0x42d)][_0x54f469(0x31c)](_0x1f6ac1,this[_0x54f469(0x3a6)]);},Pr)),(this[_0x51fa4e(0x3a6)]=_0x4ff6b4,this[_0x51fa4e(0x42d)]=_0x29396e,this['_injector']=_0x37f424,this['_colorAssignService']=_0x430c35,this['_memberService']=_0x2903dc,this['_univerInstanceService']=_0x7e063c,this[_0x51fa4e(0x297)]=_0x15cc76,this[_0x51fa4e(0x163)]=_0x1b0d21);}get['cursorInfo'](){const _0x3aa59f=_0x598a93;return this[_0x3aa59f(0x2b6)]['getValue']();}get[_0x598a93(0x180)](){const _0x12fd5a=_0x598a93;return this[_0x12fd5a(0x11c)][_0x12fd5a(0x47f)]();}[_0x598a93(0x308)](){const _0x34bc5f=_0x598a93;super[_0x34bc5f(0x308)](),this[_0x34bc5f(0x2b6)][_0x34bc5f(0x12a)](new Map()),this[_0x34bc5f(0x2b6)][_0x34bc5f(0x30a)](),this[_0x34bc5f(0x11c)]['next']([]),this[_0x34bc5f(0x11c)][_0x34bc5f(0x30a)]();}[_0x598a93(0x217)](){const _0x25cdfe=_0x598a93;this[_0x25cdfe(0x290)]||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](_0x5c2c79(this['dispose$']))[_0x25cdfe(0x19e)](_0x760a71=>{const _0x271065=_0x25cdfe;_0x760a71===G[_0x271065(0x35f)]?this[_0x271065(0x1d4)]():this[_0x271065(0x461)]();}),this['_session']['event$'][_0x25cdfe(0x22c)](_0x5c2c79(this[_0x25cdfe(0x1f5)]))[_0x25cdfe(0x19e)](_0x19b995=>{const _0x45a164=_0x25cdfe,_0x2a2c28=_0x19b995['eventID'];_0x2a2c28===_0x5e9e5f['UPDATE_CURSOR']&&this[_0x45a164(0x451)](_0x19b995),_0x2a2c28===_0x5e9e5f[_0x45a164(0x289)]&&this[_0x45a164(0x3ba)](_0x19b995);}),this[_0x25cdfe(0x204)](),this['disposeWithMe'](this[_0x25cdfe(0x297)][_0x25cdfe(0x280)](_0x103899=>{const _0x100efb=_0x25cdfe;if(this[_0x100efb(0x3be)]&&_0x103899['id']===_0x283825['id']&&_0x103899[_0x100efb(0x27e)][_0x100efb(0x46f)]===this[_0x100efb(0x3a6)]){const _0xf483c=_0x103899['params'];this[_0x100efb(0x3ac)](_0xf483c['subUnitId'],_0xf483c[_0x100efb(0x30e)][0x0]);}})));}[_0x598a93(0x451)](_0x44b03b){const _0x17a21a=_0x598a93;var _0x245311,_0x539b14;const {memberID:_0x4c7d33,selection:_0x2a74b6}=_0x44b03b[_0x17a21a(0x249)],{sheetName:_0x5a66e7,range:_0x381aa1}=_0x52f227(_0x2a74b6),_0x4476af={'name':(_0x539b14=(_0x245311=this[_0x17a21a(0x348)][_0x17a21a(0x277)](this[_0x17a21a(0x3a6)],_0x4c7d33))==null?void 0x0:_0x245311['name'])!=null?_0x539b14:_0x17a21a(0x13a),'range':this[_0x17a21a(0x2f9)](_0x5a66e7,_0x381aa1),'sheetID':_0x5a66e7,'color':this[_0x17a21a(0x214)][_0x17a21a(0x3e6)](_0x4c7d33),'selection':_0x2a74b6},_0x145aa6=this['cursorInfo'];_0x145aa6[_0x17a21a(0x314)](_0x4c7d33,_0x4476af),this[_0x17a21a(0x2b6)]['next'](_0x145aa6);}['_onCursorDelete'](_0x40348d){const _0x9d2afd=_0x598a93,{memberID:_0x58848d}=_0x40348d['data'],_0x3e0c5b=this[_0x9d2afd(0x1e3)];_0x3e0c5b[_0x9d2afd(0x2c8)](_0x58848d),this[_0x9d2afd(0x2b6)]['next'](_0x3e0c5b);}[_0x598a93(0x2f9)](_0x338483,_0x4d90b8){const _0x2f831b=_0x598a93;var _0x159988,_0x5b5bf8;const _0x2ac640=(_0x5b5bf8=(_0x159988=this[_0x2f831b(0x343)][_0x2f831b(0x41c)](this[_0x2f831b(0x3a6)]))==null?void 0x0:_0x159988[_0x2f831b(0x42e)](_0x338483))==null?void 0x0:_0x5b5bf8[_0x2f831b(0x380)]();return(_0x2ac640==null?void 0x0:_0x2ac640[_0x2f831b(0x257)](_0x19765d=>_0x3f2a8c[_0x2f831b(0x131)](_0x19765d,_0x4d90b8)))||_0x4d90b8;}[_0x598a93(0x204)](){const _0x214e6b=_0x598a93,_0x2e6d45=new _0x1b0473(),_0x4fe172=yr(),_0x611a5a=()=>{const _0x49b31a=_0x5340;_0x2e6d45[_0x49b31a(0x308)]();const _0x443794=(_0x32c246,_0x1eb555,_0x3739e5,_0x158fe8)=>{const _0x4322ae=_0x49b31a;let _0x4e0030=[];switch(_0x32c246['id']){case _0x4c6334[_0x4322ae(0x29a)]:{_0x4e0030=_0x2cb8ab(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x317)]:{_0x4e0030=_0x2dbb76(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x328)]:{_0x4e0030=_0x3087b4(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x445)]:{_0x4e0030=_0xf87b15(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x2d2)]:{_0x4e0030=_0x8bbe00(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x1f1)]:{_0x4e0030=_0x4f2dd1(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x390)]:{_0x4e0030=_0x579d32(_0x32c246,_0x158fe8);break;}case _0x4c6334['RemoveColCommandId']:{_0x4e0030=_0x3811e5(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x3a9)]:{_0x4e0030=_0x1b9105(_0x32c246,_0x158fe8);break;}}const _0xa6a72f=_0x3a7354(_0x4e0030,_0x158fe8),_0x1b34c4=this['cursorInfo'][_0x4322ae(0x175)](_0x1eb555);if(_0x1b34c4&&_0xa6a72f){const _0x3e6f81={..._0x1b34c4,'range':_0xa6a72f};this[_0x4322ae(0x1e3)][_0x4322ae(0x314)](_0x1eb555,_0x3e6f81),_0x4fe172(()=>{const _0x4e9726=_0x4322ae,_0x165392=this[_0x4e9726(0x163)][_0x4e9726(0x424)](_0xa6a72f,_0x3e5fbb=>(_0x165392[_0x4e9726(0x308)](),_0x443794(_0x3e5fbb,_0x1eb555,_0x3739e5,_0xa6a72f)));_0x2e6d45['add'](_0x165392);});}return{'redos':[],'undos':[]};};this[_0x49b31a(0x1e3)][_0x49b31a(0x264)]((_0x823c84,_0x2697ab)=>{const _0x39da30=_0x49b31a,{range:_0x12e938,sheetID:_0x1b75e2}=_0x823c84,_0x38de90=this['_refRangeService'][_0x39da30(0x424)](_0x12e938,_0x14e60e=>(_0x38de90[_0x39da30(0x308)](),_0x443794(_0x14e60e,_0x2697ab,_0x1b75e2,_0x12e938)));_0x2e6d45[_0x39da30(0x187)](_0x38de90);});};this[_0x214e6b(0x147)](_0x440d86(this[_0x214e6b(0x2b6)][_0x214e6b(0x19e)](()=>{_0x611a5a();})));}[_0x598a93(0x1d4)](){const _0x207044=_0x598a93;var _0x59a53c,_0x55bcea;if(this[_0x207044(0x3be)]=!0x0,((_0x59a53c=this['_univerInstanceService'][_0x207044(0x3c2)]())==null?void 0x0:_0x59a53c[_0x207044(0x14c)]())!==this[_0x207044(0x3a6)])return;const _0x2499df=(_0x55bcea=this[_0x207044(0x120)][_0x207044(0x175)](_0x429ce4)['getCurrentSelections']())==null?void 0x0:_0x55bcea[0x0],_0x41e7d0=this[_0x207044(0x343)]['getCurrentUnitForType'](_0x33d049[_0x207044(0x174)])['getActiveSheet']();_0x2499df&&_0x41e7d0&&this[_0x207044(0x3ac)](_0x41e7d0['getSheetId'](),_0x2499df);}[_0x598a93(0x461)](){const _0x2dceb7=_0x598a93;this[_0x2dceb7(0x3be)]=!0x1;}};Ot=Dr([fe(0x2,_0x592774(_0x579617)),fe(0x3,_0x592774(Ft)),fe(0x4,_0x592774(ae)),fe(0x5,_0x191290),fe(0x6,_0xbb225b),fe(0x7,_0x592774(_0x129b96))],Ot);var Nr=Object[_0x598a93(0x171)],Ur=Object['getOwnPropertyDescriptor'],Mr=(_0x55fe48,_0x388502,_0x13d6f5,_0x1f3328)=>{const _0x375a87=_0x598a93;for(var _0x185c93=_0x1f3328>0x1?void 0x0:_0x1f3328?Ur(_0x388502,_0x13d6f5):_0x388502,_0x17d754=_0x55fe48[_0x375a87(0x45e)]-0x1,_0x39bbcb;_0x17d754>=0x0;_0x17d754--)(_0x39bbcb=_0x55fe48[_0x17d754])&&(_0x185c93=(_0x1f3328?_0x39bbcb(_0x388502,_0x13d6f5,_0x185c93):_0x39bbcb(_0x185c93))||_0x185c93);return _0x1f3328&&_0x185c93&&Nr(_0x388502,_0x13d6f5,_0x185c93),_0x185c93;},_t=(_0x1b8f46,_0x56970e)=>(_0x359704,_0x479072)=>_0x56970e(_0x359704,_0x479072,_0x1b8f46);let pe=class extends _0x39a217{constructor(_0x1e57e6,_0x1e08c9,_0x52ffd3){const _0xfe4cf=_0x598a93;super(),l(this,'_entities',new Map()),l(this,_0xfe4cf(0x273),new _0x2199d6()),(this[_0xfe4cf(0x343)]=_0x1e57e6,this[_0xfe4cf(0x120)]=_0x1e08c9,this[_0xfe4cf(0x12e)]=_0x52ffd3,this[_0xfe4cf(0x290)]());}[_0x598a93(0x308)](){const _0x46b4d1=_0x598a93;super['dispose'](),this[_0x46b4d1(0x273)][_0x46b4d1(0x30a)](),this[_0x46b4d1(0x471)][_0x46b4d1(0x264)](_0x4c8602=>_0x4c8602['dispose']());}['getCollabCursors$'](_0x3530ef){const _0x1cd568=_0x598a93;return this[_0x1cd568(0x471)][_0x1cd568(0x1af)](_0x3530ef)?this[_0x1cd568(0x471)]['get'](_0x3530ef)[_0x1cd568(0x173)]:this[_0x1cd568(0x273)][_0x1cd568(0x22c)](_0x5e94e4(_0x4c823a=>_0x4c823a[_0x1cd568(0x3a6)]===_0x3530ef),_0x1a7b4a(_0x198c2d=>_0x198c2d[_0x1cd568(0x173)]));}[_0x598a93(0x290)](){const _0x2fb165=_0x598a93;this['_univerInstanceService'][_0x2fb165(0x3a1)](_0x33d049[_0x2fb165(0x174)])[_0x2fb165(0x22c)](_0x5c2c79(this[_0x2fb165(0x1f5)]))[_0x2fb165(0x19e)](async _0x359f8f=>{const _0x137711=_0x2fb165,_0x44159b=_0x359f8f[_0x137711(0x14c)](),_0x3c8d93=await this[_0x137711(0x1a1)](_0x44159b);this['_entityInit$'][_0x137711(0x12a)](_0x3c8d93),this[_0x137711(0x471)]['set'](_0x44159b,_0x3c8d93);}),this[_0x2fb165(0x343)][_0x2fb165(0x3a1)](_0x33d049[_0x2fb165(0x17d)])['pipe'](_0x5c2c79(this[_0x2fb165(0x1f5)]))[_0x2fb165(0x22c)](_0x5e94e4(_0x2f7843=>!_0x2f7843['getUnitId']()[_0x2fb165(0x482)]('__')))[_0x2fb165(0x19e)](async _0x4c38d3=>{const _0x3756a8=_0x2fb165,_0x4c7d29=_0x4c38d3[_0x3756a8(0x14c)](),_0x5baea6=await this[_0x3756a8(0x27c)](_0x4c7d29);this['_entityInit$'][_0x3756a8(0x12a)](_0x5baea6),this[_0x3756a8(0x471)][_0x3756a8(0x314)](_0x4c7d29,_0x5baea6);}),_0x4c82f1(this['_univerInstanceService'][_0x2fb165(0x24c)](_0x33d049[_0x2fb165(0x17d)]),this[_0x2fb165(0x343)][_0x2fb165(0x24c)](_0x33d049[_0x2fb165(0x174)]))['pipe'](_0x5c2c79(this[_0x2fb165(0x1f5)]))[_0x2fb165(0x19e)](_0x2e44b9=>{const _0x323c08=_0x2fb165,_0x9080e9=_0x2e44b9[_0x323c08(0x14c)](),_0x7d11fe=this[_0x323c08(0x471)][_0x323c08(0x175)](_0x9080e9);_0x7d11fe&&(_0x7d11fe[_0x323c08(0x308)](),this['_entities'][_0x323c08(0x2c8)](_0x9080e9));});}async[_0x598a93(0x1a1)](_0x1ceab2){const _0x10fc73=_0x598a93,_0x325d71=await this[_0x10fc73(0x12e)]['requireSession'](_0x1ceab2),_0x5ecc9d=this['_injector'][_0x10fc73(0x466)](Ot,_0x1ceab2,_0x325d71);return _0x5ecc9d[_0x10fc73(0x217)](),_0x5ecc9d;}async[_0x598a93(0x27c)](_0x563874){const _0x1951b7=_0x598a93,_0x324956=await this['_collabSessionService'][_0x1951b7(0x486)](_0x563874),_0x24938d=this[_0x1951b7(0x120)][_0x1951b7(0x466)](Rt,_0x563874,_0x324956);return _0x24938d[_0x1951b7(0x217)](),_0x24938d;}};pe=Mr([_t(0x0,_0x191290),_t(0x1,_0x592774(_0x579617)),_t(0x2,_0x592774(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0x7a9890,_0x498f61){const _0x5fb97b=_0x598a93;let {radius:_0x13965c,width:_0x36b270,height:_0x130375}=_0x498f61;_0x13965c=_0x13965c!=null?_0x13965c:0x0,_0x36b270=_0x36b270!=null?_0x36b270:0x1e,_0x130375=_0x130375!=null?_0x130375:0x1e;let _0x58c31c=0x0,_0x5c02c2=0x0,_0x7f6bfa=0x0;_0x58c31c=_0x5c02c2=_0x7f6bfa=Math[_0x5fb97b(0x3ab)](_0x13965c,_0x36b270/0x2,_0x130375/0x2),_0x7a9890[_0x5fb97b(0x19c)](),_0x7a9890['moveTo'](_0x58c31c,0x0),_0x7a9890[_0x5fb97b(0x209)](_0x36b270-_0x5c02c2,0x0),_0x7a9890['arc'](_0x36b270-_0x5c02c2,_0x5c02c2,_0x5c02c2,Math['PI']*0x3/0x2,0x0,!0x1),_0x7a9890[_0x5fb97b(0x209)](_0x36b270,_0x130375-_0x7f6bfa),_0x7a9890[_0x5fb97b(0x30f)](_0x36b270-_0x7f6bfa,_0x130375-_0x7f6bfa,_0x7f6bfa,0x0,Math['PI']/0x2,!0x1),_0x7a9890[_0x5fb97b(0x209)](0x0,_0x130375),_0x7a9890['lineTo'](0x0,_0x58c31c),_0x7a9890['arc'](_0x58c31c,_0x58c31c,_0x58c31c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x7a9890[_0x5fb97b(0x26d)](),_0x498f61[_0x5fb97b(0x330)]&&(_0x7a9890[_0x5fb97b(0x350)](),_0x7a9890['fillStyle']=_0x498f61[_0x5fb97b(0x330)],_0x498f61[_0x5fb97b(0x484)]===_0x5fb97b(0x2fa)?_0x7a9890[_0x5fb97b(0x330)](_0x5fb97b(0x2fa)):_0x7a9890[_0x5fb97b(0x330)](),_0x7a9890['restore']());}class st extends _0x5e2e32{constructor(_0x5da031,_0x1c8661){const _0x5c2194=_0x598a93;super(_0x5da031,_0x1c8661),l(this,'color'),l(this,'text'),(this[_0x5c2194(0x456)]=_0x1c8661==null?void 0x0:_0x1c8661['color'],this[_0x5c2194(0x448)]=_0x1c8661==null?void 0x0:_0x1c8661[_0x5c2194(0x448)]);}static['drawWith'](_0x7df0d3,_0x4799c3){const _0x12cc17=_0x598a93,{text:_0x5839f4,color:_0x504e41}=_0x4799c3;_0x7df0d3[_0x12cc17(0x350)](),_0x7df0d3[_0x12cc17(0x2a6)]=_0x12cc17(0x44a);const _0x1dcda2=_0x7df0d3[_0x12cc17(0x3c4)](_0x5839f4)['width'],_0x492bc2=Math[_0x12cc17(0x3ab)](_0x1dcda2+0x2*ut,us);Lr(_0x7df0d3,{'height':Le,'radius':0x4,'width':_0x492bc2,'fill':_0x504e41,'evented':!0x1}),_0x7df0d3[_0x12cc17(0x2c0)]=_0x12cc17(0x438);const _0x42bd2c=ut,_0x4cb2e5=Le-Ar,_0x543850=us-0x2*ut;if(_0x1dcda2>_0x543850){let _0x48efbe='',_0x4e0c1e=0x0;for(const _0x4595e4 of _0x5839f4){const _0x6692a=_0x7df0d3[_0x12cc17(0x3c4)](_0x4595e4)[_0x12cc17(0x1a5)];if(_0x4e0c1e+_0x6692a<=_0x543850-_0x7df0d3[_0x12cc17(0x3c4)](_0x12cc17(0x1ee))['width'])_0x48efbe+=_0x4595e4,_0x4e0c1e+=_0x6692a;else{_0x48efbe+='...';break;}}_0x7df0d3[_0x12cc17(0x216)](_0x48efbe,_0x42bd2c,_0x4cb2e5);}else _0x7df0d3['fillText'](_0x5839f4,_0x42bd2c,_0x4cb2e5);_0x7df0d3['restore']();}['_draw'](_0x1222fb){const _0x2ed24a=_0x598a93;st[_0x2ed24a(0x400)](_0x1222fb,this);}}const dt=_0x598a93(0x33c),$r=_0x598a93(0x3a0),jr=_0x598a93(0x46c),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x598a93(0x1c6);class ds{constructor(_0x21f06b,_0x21e422,_0x1f1308,_0x3ec263){const _0x4c13ee=_0x598a93;l(this,_0x4c13ee(0x12f),[]),l(this,_0x4c13ee(0x2c6),null),l(this,'_textBubble',null),l(this,_0x4c13ee(0x458),null),l(this,_0x4c13ee(0x39d),null),l(this,'_eventUnsubscribe',null),(this[_0x4c13ee(0x487)]=_0x21f06b,this[_0x4c13ee(0x1bc)]=_0x21e422,this[_0x4c13ee(0x1a4)]=_0x1f1308,this[_0x4c13ee(0x21c)]=_0x3ec263,this[_0x4c13ee(0x357)]());}set[_0x598a93(0x363)](_0x5f2aae){const _0x209ce6=_0x598a93;_0x5f2aae?(this[_0x209ce6(0x458)]&&this[_0x209ce6(0x458)][_0x209ce6(0x21f)](),this[_0x209ce6(0x47b)]&&this[_0x209ce6(0x47b)][_0x209ce6(0x21e)]()):(this[_0x209ce6(0x458)]&&this['_anchorDot'][_0x209ce6(0x21e)](),this['_textBubble']&&this[_0x209ce6(0x47b)][_0x209ce6(0x21f)]());}[_0x598a93(0x308)](){const _0x95765d=_0x598a93;for(const _0x41b706 of this[_0x95765d(0x12f)])_0x41b706[_0x95765d(0x308)]();this[_0x95765d(0x47b)]&&this[_0x95765d(0x47b)][_0x95765d(0x308)](),this['_anchorDot']&&this['_anchorDot'][_0x95765d(0x308)](),this['_anchor']&&this[_0x95765d(0x2c6)][_0x95765d(0x308)](),this[_0x95765d(0x382)]&&this['_eventUnsubscribe']();}[_0x598a93(0x357)](){const _0x3c162b=_0x598a93;var _0x501ca8;const {_docSkeleton:_0x12a2a3,_document:_0xf9dc5f}=this,{color:_0x417950,name:_0x5040c5,ranges:_0x36d6d4}=this[_0x3c162b(0x487)],_0x469d78=_0xf9dc5f[_0x3c162b(0x1e4)](),{docsLeft:_0x21d17d,docsTop:_0x27394a}=_0x469d78,_0x104c17=new _0x37e9f6(_0x469d78,_0x12a2a3);for(const {startOffset:_0x431b8c,endOffset:_0x285270,collapsed:_0x3236c2,isActive:_0x537055}of _0x36d6d4){const _0x41d8a5=_0x12a2a3[_0x3c162b(0x358)](_0x431b8c),_0xe13fb8=_0x12a2a3['findNodePositionByCharIndex'](_0x285270);if(_0x537055){const {contentBoxPointGroup:_0xf9c338}=_0x104c17['getRangePointData'](_0xe13fb8,_0xe13fb8);if(_0xf9c338[_0x3c162b(0x45e)]===0x0)continue;this['_drawAnchor'](_0x417950,_0xf9c338,_0x21d17d,_0x27394a,_0x5040c5),this[_0x3c162b(0x382)]=this[_0x3c162b(0x3b4)]();}if(!_0x3236c2&&_0x41d8a5&&_0xe13fb8){if(_0x115f80(_0x41d8a5,_0xe13fb8)){const _0x11e0fa=new _0x4a0b4b(_0x469d78,_0x12a2a3),{pointGroup:_0xc92e07}=(_0x501ca8=_0x11e0fa[_0x3c162b(0x178)](_0x41d8a5,_0xe13fb8))!=null?_0x501ca8:{};if(_0xc92e07==null||_0xc92e07[_0x3c162b(0x45e)]===0x0)continue;this[_0x3c162b(0x3e4)](_0x417950,_0xc92e07,_0x21d17d,_0x27394a);}else{const {contentBoxPointGroup:_0x5c6865}=_0x104c17['getRangePointData'](_0x41d8a5,_0xe13fb8);if(_0x5c6865['length']===0x0)continue;this['_drawTextRange'](_0x417950,_0x5c6865,_0x21d17d,_0x27394a);}}}}[_0x598a93(0x26b)](_0x3df3c3,_0x775882,_0x113cd8,_0x5f272a,_0x531aeb){const _0x3b9209=_0x598a93,_0x3afdfb=this[_0x3b9209(0x14a)](_0x775882),{left:_0x2bf784,top:_0x221098,height:_0x10c638}=_0x3afdfb,_0x3f8733=this[_0x3b9209(0x2d3)](),_0x5861a5=Hr/_0x3f8733,_0x3836c3=new _0x5ad1b3(dt+_0x4105cf[_0x3b9209(0x33b)](De),{'left':_0x2bf784+_0x113cd8-_0x5861a5,'top':_0x221098+_0x5f272a,'height':_0x10c638,'width':xr,'fill':_0x3df3c3||_0x5a30ab(_0x911f97[_0x3b9209(0x192)],0x0),'strokeWidth':_0x5861a5,'stroke':kr,'evented':!0x0});this[_0x3b9209(0x2c6)]=_0x3836c3,this['_scene']['addObject'](_0x3836c3,_0xb1a49e);const _0x3bbce7=new _0x5ad1b3(dt+_0x4105cf[_0x3b9209(0x33b)](De),{'left':_0x2bf784+_0x113cd8-_0x5861a5,'top':_0x221098+_0x5f272a-ft/0x2,'height':ft,'width':ft,'fill':_0x3df3c3||_0x5a30ab(_0x911f97[_0x3b9209(0x192)],0x0),'strokeWidth':0x0,'stroke':_0x3df3c3||_0x5a30ab(_0x911f97[_0x3b9209(0x192)],0x0),'evented':!0x1});this[_0x3b9209(0x458)]=_0x3bbce7,this['_scene'][_0x3b9209(0x133)](_0x3bbce7,_0xb1a49e);const _0x595197=new st(dt+_0x4105cf['generateRandomId'](De),{'left':_0x2bf784+_0x113cd8-_0x5861a5,'top':_0x221098+_0x5f272a-Le,'text':_0x531aeb,'color':_0x3df3c3});this[_0x3b9209(0x47b)]=_0x595197,this[_0x3b9209(0x1bc)][_0x3b9209(0x133)](_0x595197,_0xb1a49e),this['_hover']=!0x1;}[_0x598a93(0x3b4)](){const _0x3a1e84=_0x598a93,_0x397cd=this[_0x3a1e84(0x2c6)][_0x3a1e84(0x270)][_0x3a1e84(0x2f2)](()=>{this['_hover']=!0x0;}),_0x3e7c62=this['_anchor']['onPointerLeave$'][_0x3a1e84(0x2f2)](()=>{const _0x191abb=_0x3a1e84;this[_0x191abb(0x39d)]&&clearTimeout(this[_0x191abb(0x39d)]),this[_0x191abb(0x39d)]=setTimeout(()=>{const _0x30b993=_0x191abb;this[_0x30b993(0x363)]=!0x1;},0x7d0);});return()=>{const _0x4b0601=_0x3a1e84;_0x397cd['unsubscribe'](),_0x3e7c62[_0x4b0601(0x398)]();};}[_0x598a93(0x183)](_0x4abc9d,_0x4d42ec,_0x398d49,_0x400285){const _0x330d89=_0x598a93,_0x2fb2e2=new _0x9714c3(_0x4abc9d)[_0x330d89(0x16a)](0.2)[_0x330d89(0x3aa)](),_0x3e5829=new _0x5ce008($r+_0x4105cf[_0x330d89(0x33b)](De),{'pointsGroup':_0x4d42ec,'fill':_0x2fb2e2||_0x5a30ab(_0x911f97[_0x330d89(0x192)],0.2),'left':_0x398d49,'top':_0x400285,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x330d89(0x12f)][_0x330d89(0x34e)](_0x3e5829),this[_0x330d89(0x1bc)][_0x330d89(0x133)](_0x3e5829,_0xb1a49e);}[_0x598a93(0x3e4)](_0x26c442,_0x176939,_0x5743af,_0x4233ed){const _0xb71f04=_0x598a93,_0x53900f=new _0x9714c3(_0x26c442)[_0xb71f04(0x16a)](0.2)[_0xb71f04(0x3aa)](),_0x4aacb7=new _0x5ce008(jr+_0x4105cf[_0xb71f04(0x33b)](De),{'pointsGroup':_0x176939,'fill':_0x53900f||_0x5a30ab(_0x911f97[_0xb71f04(0x192)],0.2),'left':_0x5743af,'top':_0x4233ed,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4aacb7),this[_0xb71f04(0x1bc)][_0xb71f04(0x133)](_0x4aacb7,_0xb1a49e);}[_0x598a93(0x14a)](_0x4a29ff){const _0x416c58=_0x4a29ff[0x0],_0x490461=_0x416c58[0x0],_0x22bdf8=_0x416c58[0x2],{x:_0x4041be,y:_0x219202}=_0x490461,{x:_0x518d98,y:_0x3b7568}=_0x22bdf8;return{'left':_0x4041be,'top':_0x219202,'width':_0x518d98-_0x4041be,'height':_0x3b7568-_0x219202};}['_getScale'](){const _0x5027fd=_0x598a93,{scaleX:_0xb22ce2,scaleY:_0x43def8}=this['_scene'][_0x5027fd(0x237)]();return Math[_0x5027fd(0x23c)](_0xb22ce2,_0x43def8);}}var Br=Object['defineProperty'],Vr=Object[_0x598a93(0x1cb)],Fr=(_0x2654f3,_0x3d4357,_0x118430,_0x4c00d0)=>{const _0x4381b5=_0x598a93;for(var _0x15e6c6=_0x4c00d0>0x1?void 0x0:_0x4c00d0?Vr(_0x3d4357,_0x118430):_0x3d4357,_0x44b5d7=_0x2654f3[_0x4381b5(0x45e)]-0x1,_0x456ce5;_0x44b5d7>=0x0;_0x44b5d7--)(_0x456ce5=_0x2654f3[_0x44b5d7])&&(_0x15e6c6=(_0x4c00d0?_0x456ce5(_0x3d4357,_0x118430,_0x15e6c6):_0x456ce5(_0x15e6c6))||_0x15e6c6);return _0x4c00d0&&_0x15e6c6&&Br(_0x3d4357,_0x118430,_0x15e6c6),_0x15e6c6;},xe=(_0x543b21,_0x5989f9)=>(_0x401349,_0xfb3a68)=>_0x5989f9(_0x401349,_0xfb3a68,_0x543b21);let Dt=class extends _0x39a217{constructor(_0x50c031,_0x4a6159,_0x18b029,_0x428c4b,_0x4316c0){const _0x3fb0d8=_0x598a93;super(),l(this,_0x3fb0d8(0x2dc),[]),l(this,_0x3fb0d8(0x23b),[]),(this['_context']=_0x50c031,this[_0x3fb0d8(0x20f)]=_0x4a6159,this[_0x3fb0d8(0x195)]=_0x18b029,this[_0x3fb0d8(0x297)]=_0x428c4b,this[_0x3fb0d8(0x422)]=_0x4316c0,this[_0x3fb0d8(0x290)]());}[_0x598a93(0x290)](){const _0x44a89a=_0x598a93,_0x3fbc5e=this[_0x44a89a(0x1c4)][_0x44a89a(0x46f)],_0x42a114=this[_0x44a89a(0x20f)];this[_0x44a89a(0x147)](_0x340b21([this[_0x44a89a(0x195)][_0x44a89a(0x25d)](_0x3fbc5e),this['_themeService'][_0x44a89a(0x44b)]])[_0x44a89a(0x22c)](_0x4eca0b(([_0x4999cd,_0x547895])=>({'skeleton':_0x42a114[_0x44a89a(0x15f)](),'cursors':[..._0x4999cd[_0x44a89a(0x2af)]()]['flatMap'](_0x7d46ac=>({..._0x7d46ac,'color':_0x547895[_0x7d46ac[_0x44a89a(0x456)]]}))})))[_0x44a89a(0x19e)](_0x30d3a5=>{const _0x30feba=_0x44a89a;if(this[_0x30feba(0x186)](),_0x30d3a5){const {skeleton:_0x5cfa7e,cursors:_0x4c061e}=_0x30d3a5;this[_0x30feba(0x19b)](_0x5cfa7e,_0x4c061e);}})),this['_initResize'](),this[_0x44a89a(0x14f)]();}['_updateCollabCursors'](_0x64f02a,_0x440a80){const _0x571e1d=_0x598a93,{scene:_0x3db6e9,mainComponent:_0x58131d}=this[_0x571e1d(0x1c4)],_0x5792ba=_0x440a80[_0x571e1d(0x202)](_0x37b130=>new ds(_0x37b130,_0x3db6e9,_0x64f02a,_0x58131d));this[_0x571e1d(0x2dc)]=_0x5792ba,this[_0x571e1d(0x23b)]=_0x440a80;}[_0x598a93(0x360)](){const _0x877c8c=_0x598a93;this[_0x877c8c(0x186)]();const {scene:_0xa0ca9f,mainComponent:_0x79c9cd}=this['_context'],_0x2b0108=this['_docSkeletonManagerService']['getSkeleton'](),_0xd98165=this[_0x877c8c(0x23b)][_0x877c8c(0x202)](_0x554827=>new ds(_0x554827,_0xa0ca9f,_0x2b0108,_0x79c9cd));this['_cursorShapes']=_0xd98165;}['_removeCollabCursors'](){const _0x5c7c77=_0x598a93;this[_0x5c7c77(0x2dc)][_0x5c7c77(0x264)](_0x55da90=>_0x55da90[_0x5c7c77(0x308)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x16296f=_0x598a93,_0x34a799=[_0x43d454['id']];this['disposeWithMe'](this[_0x16296f(0x297)][_0x16296f(0x280)](_0x852503=>{const _0x3f0b06=_0x16296f;_0x34a799['includes'](_0x852503['id'])&&_0x852503[_0x3f0b06(0x27e)]['unitId']===this['_context'][_0x3f0b06(0x46f)]&&this[_0x3f0b06(0x360)]();}));}['_initResize'](){const _0x357e9c=_0x598a93;this[_0x357e9c(0x147)](_0x7c5a3d(this[_0x357e9c(0x1c4)][_0x357e9c(0x267)][_0x357e9c(0x47c)])[_0x357e9c(0x22c)](_0x34901b(_0x485d39=>_0x485d39[_0x357e9c(0x29d)]===_0x1c8336['resize']),_0x14157e(0x10))[_0x357e9c(0x19e)](()=>{const _0x316a0a=_0x357e9c;this[_0x316a0a(0x360)]();}));}};Dt=Fr([xe(0x1,_0x592774(_0x6f5374)),xe(0x2,_0x592774(pe)),xe(0x3,_0xbb225b),xe(0x4,_0x592774(_0x3777c2))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0x5e2e32{constructor(_0x845f3,_0x59c6ee){const _0x524301=_0x598a93;super(_0x845f3,_0x59c6ee),l(this,_0x524301(0x144)),l(this,_0x524301(0x383),!0x1),l(this,_0x524301(0x43f)),l(this,'_name',''),l(this,'_labelPosition',_0x524301(0x135)),l(this,_0x524301(0x3f8)),(_0x59c6ee&&this[_0x524301(0x203)](_0x59c6ee),this['onPointerEnter$'][_0x524301(0x2f2)](()=>this[_0x524301(0x203)]({'hovered':!0x0})),this[_0x524301(0x25c)][_0x524301(0x2f2)](()=>this[_0x524301(0x203)]({'hovered':!0x1})));}['setShapeProps'](_0x4b13f5){const _0x432088=_0x598a93;var _0x37ed85,_0x1dae68,_0x2c8318,_0x5cae64,_0x42ac2e,_0x12f81b;this[_0x432088(0x144)]=(_0x37ed85=_0x4b13f5[_0x432088(0x456)])!=null?_0x37ed85:this[_0x432088(0x144)],this[_0x432088(0x383)]=(_0x1dae68=_0x4b13f5[_0x432088(0x1d7)])!=null?_0x1dae68:this[_0x432088(0x383)],this['_range']=(_0x2c8318=_0x4b13f5[_0x432088(0x136)])!=null?_0x2c8318:this[_0x432088(0x43f)],this[_0x432088(0x2aa)]=(_0x5cae64=_0x4b13f5[_0x432088(0x3d7)])!=null?_0x5cae64:this[_0x432088(0x2aa)],this[_0x432088(0x189)]=(_0x42ac2e=_0x4b13f5[_0x432088(0x36d)])!=null?_0x42ac2e:this['_labelPosition'],this[_0x432088(0x3f8)]=(_0x12f81b=_0x4b13f5[_0x432088(0x3a7)])!=null?_0x12f81b:this[_0x432088(0x3f8)],this[_0x432088(0x13e)]({'width':_0x4b13f5[_0x432088(0x1a5)],'height':_0x4b13f5[_0x432088(0x3dd)]});}[_0x598a93(0x303)](_0xc91da8){const _0x285d91=_0x598a93,{row:_0x2743ee,column:_0x40a1ea}=_0xc91da8;if(_0x2743ee>=this[_0x285d91(0x43f)][_0x285d91(0x432)]&&_0x2743ee<=this['_range'][_0x285d91(0x405)]&&_0x40a1ea>=this['_range']['startColumn']&&_0x40a1ea<=this[_0x285d91(0x43f)][_0x285d91(0x412)]){this[_0x285d91(0x203)]({'hovered':!0x0});return;}this[_0x285d91(0x203)]({'hovered':!0x1});}[_0x598a93(0x46d)](_0x23846f){return!0x1;}[_0x598a93(0x29f)](_0x5553f9){const _0x17d02b=_0x598a93;_0x5ad1b3[_0x17d02b(0x400)](_0x5553f9,{'width':this[_0x17d02b(0x1a5)],'height':this['height'],'strokeWidth':Gr,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x17d02b(0x3f8)]}),this['_hovered']&&(_0x5553f9[_0x17d02b(0x350)](),_0x5553f9[_0x17d02b(0x274)](0x1,0x0,0x0,0x1,this[_0x17d02b(0x1a5)],this[_0x17d02b(0x189)]===_0x17d02b(0x479)?0x0:-Le),st[_0x17d02b(0x400)](_0x5553f9,{'text':this[_0x17d02b(0x2aa)],'color':this['_color']}),_0x5553f9[_0x17d02b(0x1c3)]());}}var Kr=Object[_0x598a93(0x171)],Xr=Object[_0x598a93(0x1cb)],Jr=(_0x155b30,_0x577c45,_0x1f2115,_0x4ff4ac)=>{const _0x46e3f7=_0x598a93;for(var _0x3ce917=_0x4ff4ac>0x1?void 0x0:_0x4ff4ac?Xr(_0x577c45,_0x1f2115):_0x577c45,_0x461cab=_0x155b30[_0x46e3f7(0x45e)]-0x1,_0x1a36b0;_0x461cab>=0x0;_0x461cab--)(_0x1a36b0=_0x155b30[_0x461cab])&&(_0x3ce917=(_0x4ff4ac?_0x1a36b0(_0x577c45,_0x1f2115,_0x3ce917):_0x1a36b0(_0x3ce917))||_0x3ce917);return _0x4ff4ac&&_0x3ce917&&Kr(_0x577c45,_0x1f2115,_0x3ce917),_0x3ce917;},mt=(_0x188db2,_0x1c3e64)=>(_0x18097b,_0x36119d)=>_0x1c3e64(_0x18097b,_0x36119d,_0x188db2);const qr=0x1389;let wt=class extends _0x39a217{constructor(_0x32ef13,_0x1be6f5,_0x2541a,_0x330438){const _0x2f9634=_0x598a93;super(),l(this,_0x2f9634(0x23b),new Set()),l(this,_0x2f9634(0x3e0),null),(this[_0x2f9634(0x1c4)]=_0x32ef13,this[_0x2f9634(0x483)]=_0x1be6f5,this[_0x2f9634(0x195)]=_0x2541a,this[_0x2f9634(0x422)]=_0x330438,this['_init']());}[_0x598a93(0x290)](){const _0x5aae2f=_0x598a93;this['_sheetSkeletonManagerService'][_0x5aae2f(0x37e)][_0x5aae2f(0x22c)](_0x156b4c(this[_0x5aae2f(0x1f5)]),_0xaf9045(_0x4f7874=>{const _0x33d627=_0x5aae2f;if(_0x4f7874){const _0x3764cd=_0x4f7874[_0x33d627(0x251)];return _0x340b21(this[_0x33d627(0x195)][_0x33d627(0x25d)](this[_0x33d627(0x1c4)][_0x33d627(0x46f)]),this[_0x33d627(0x422)][_0x33d627(0x44b)])[_0x33d627(0x22c)](_0x4eca0b(([_0x1929a8,_0x308d35])=>{const _0x3995b6=_0x33d627,_0x43d8c3=new Map();return _0x1929a8[_0x3995b6(0x264)]((_0xbe6cf2,_0x4607b1)=>{const _0x7e184=_0x3995b6;if(_0xbe6cf2[_0x7e184(0x37f)]===_0x3764cd){const _0x46239a={..._0xbe6cf2};_0x46239a[_0x7e184(0x456)]=_0x308d35[_0xbe6cf2['color']],_0x43d8c3[_0x7e184(0x314)](_0x4607b1,_0x46239a);}}),{'skeleton':_0x4f7874,'cursors':_0x43d8c3};}));}return _0x3fea04({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1899a0,cursors:_0x1643f5})=>{const _0x55174f=_0x5aae2f;this[_0x55174f(0x186)](),_0x1899a0&&this['_updateCollabCursors'](_0x1899a0,_0x1643f5);}),this[_0x5aae2f(0x483)][_0x5aae2f(0x37e)][_0x5aae2f(0x19e)](_0x5b47f9=>{const _0x368579=_0x5aae2f;if(_0x5b47f9==null)return;const {skeleton:_0x354fec}=_0x5b47f9,{scene:_0x21fc43}=this[_0x368579(0x1c4)];_0x21fc43[_0x368579(0x416)]['subscribeEvent'](_0x568d4b(_0x102cad=>{const _0x3d19ea=_0x368579;var _0x132007,_0x527e27;const {offsetX:_0x65df8d,offsetY:_0x378c15}=_0x102cad,{x:_0x11d044,y:_0x2c3c2f}=_0x21fc43[_0x3d19ea(0x467)](_0x366f7a['FromArray']([_0x65df8d,_0x378c15])),{scaleX:_0x7c16b1,scaleY:_0x40b93e}=_0x21fc43[_0x3d19ea(0x237)](),_0x2aaaba=_0x21fc43[_0x3d19ea(0x279)](_0x5688e5[_0x3d19ea(0x2d4)]),_0x2c16c9=_0x21fc43['getVpScrollXYInfoByPosToVp'](_0x366f7a[_0x3d19ea(0x44f)]([_0x11d044,_0x2c3c2f]),_0x2aaaba),_0x3c757e=_0x354fec['getCellPositionByOffset'](_0x65df8d,_0x378c15,_0x7c16b1,_0x40b93e,_0x2c16c9);((_0x132007=this['_lastPointer'])==null?void 0x0:_0x132007[_0x3d19ea(0x3af)])===_0x3c757e[_0x3d19ea(0x3af)]&&((_0x527e27=this[_0x3d19ea(0x3e0)])==null?void 0x0:_0x527e27['row'])===_0x3c757e[_0x3d19ea(0x2cf)]||this[_0x3d19ea(0x23b)][_0x3d19ea(0x264)](_0xbf4e4a=>{const _0x7d9a3e=_0x3d19ea;_0xbf4e4a[_0x7d9a3e(0x303)](_0x3c757e);});},0x64));});}[_0x598a93(0x19b)](_0x6c7007,_0x49ea57){const _0x5216fd=_0x598a93;var _0x1108de;const _0x33bf19=(_0x1108de=this['_sheetSkeletonManagerService'][_0x5216fd(0x47a)]())==null?void 0x0:_0x1108de['skeleton'];if(!_0x33bf19)return;const _0x2f3df8=this[_0x5216fd(0x384)]();if(!_0x2f3df8)return;this[_0x5216fd(0x23b)][_0x5216fd(0x264)](_0x21269d=>{const _0x126a66=_0x5216fd;_0x21269d[_0x126a66(0x408)]();});const {scene:_0x1d8fae}=_0x2f3df8,_0x2e1ae3=zr(Array[_0x5216fd(0x30c)](_0x49ea57['values']()))[_0x5216fd(0x202)](_0x20323a=>{const _0x4d5bf5=_0x5216fd,{color:_0x59353e,range:_0x557c0c,name:_0x18372d,selection:_0x1202c9,sheetID:_0x5c1284}=_0x20323a,{startColumn:_0x1313f4,startRow:_0x1434ea,endColumn:_0x37086c,endRow:_0x2c7df5}=_0x557c0c,_0x1a68f6=_0x59d862(_0x1434ea,_0x1313f4,_0x1d8fae,_0x33bf19),_0x327de1=_0x59d862(_0x2c7df5,_0x37086c,_0x1d8fae,_0x33bf19),{columnHeaderHeightAndMarginTop:_0x2f3b9e}=_0x33bf19,{startX:_0x3e0dfc,startY:_0x17e542}=_0x1a68f6,{endX:_0x35f73b,endY:_0xab06ba}=_0x327de1,_0x36576c=_0x35f73b-_0x3e0dfc,_0x4d7221=_0xab06ba-_0x17e542,_0x1af6f9={'labelPosition':_0x17e542-_0x2f3b9e>=Le?'top':_0x4d5bf5(0x479),'sheetID':_0x5c1284,'range':_0x557c0c,'color':_0x59353e,'name':_0x18372d,'selection':_0x1202c9,'left':_0x3e0dfc,'top':_0x17e542,'width':_0x36576c,'height':_0x4d7221,'evented':!0x1,'zIndex':qr};return new Yr(_0x18372d,_0x1af6f9);});_0x1d8fae[_0x5216fd(0x2f5)](_0x2e1ae3,Wr),this[_0x5216fd(0x23b)]=new Set(_0x2e1ae3);}[_0x598a93(0x186)](){const _0x46a795=_0x598a93;var _0x12f1e6;(_0x12f1e6=this['_cursors'])==null||_0x12f1e6[_0x46a795(0x264)](_0x36b3ee=>_0x36b3ee[_0x46a795(0x308)]());}[_0x598a93(0x384)](){const _0xc95620=_0x598a93;return _0x1e1911(this[_0xc95620(0x1c4)][_0xc95620(0x2df)],this[_0xc95620(0x1c4)]);}};wt=Jr([mt(0x1,_0x592774(_0xb93504)),mt(0x2,_0x592774(pe)),mt(0x3,_0x592774(_0x3777c2))],wt);function zr(_0x2449fc){const _0x4594b7=_0x598a93,_0x370c2d=new Map();return _0x2449fc[_0x4594b7(0x264)](_0x1e96b8=>{const _0x4115bf=_0x4594b7;if(_0x370c2d['has'](_0x1e96b8[_0x4115bf(0x200)])){const _0x58c523=_0x370c2d[_0x4115bf(0x175)](_0x1e96b8[_0x4115bf(0x200)]);_0x58c523[_0x4115bf(0x3d7)]+=',\x20'+_0x1e96b8['name'];}else _0x370c2d[_0x4115bf(0x314)](_0x1e96b8[_0x4115bf(0x200)],_0x1e96b8);}),Array[_0x4594b7(0x30c)](_0x370c2d[_0x4594b7(0x2af)]());}var N=function(){const _0x15648f=_0x598a93;return N=Object[_0x15648f(0x418)]||function(_0x50e18a){const _0x46e656=_0x15648f;for(var _0x4734d4,_0x4fa284=0x1,_0x3f518b=arguments[_0x46e656(0x45e)];_0x4fa284<_0x3f518b;_0x4fa284++){_0x4734d4=arguments[_0x4fa284];for(var _0x4162a1 in _0x4734d4)Object[_0x46e656(0x388)][_0x46e656(0x17b)][_0x46e656(0x327)](_0x4734d4,_0x4162a1)&&(_0x50e18a[_0x4162a1]=_0x4734d4[_0x4162a1]);}return _0x50e18a;},N[_0x15648f(0x403)](this,arguments);},Zr=function(_0x205ae9,_0x24ea7e){const _0x1a7f33=_0x598a93;var _0x207cff={};for(var _0x194e83 in _0x205ae9)Object[_0x1a7f33(0x388)][_0x1a7f33(0x17b)][_0x1a7f33(0x327)](_0x205ae9,_0x194e83)&&_0x24ea7e[_0x1a7f33(0x3d9)](_0x194e83)<0x0&&(_0x207cff[_0x194e83]=_0x205ae9[_0x194e83]);if(_0x205ae9!=null&&typeof Object['getOwnPropertySymbols']==_0x1a7f33(0x3b0)){for(var _0x110c31=0x0,_0x194e83=Object['getOwnPropertySymbols'](_0x205ae9);_0x110c31<_0x194e83['length'];_0x110c31++)_0x24ea7e['indexOf'](_0x194e83[_0x110c31])<0x0&&Object[_0x1a7f33(0x388)]['propertyIsEnumerable'][_0x1a7f33(0x327)](_0x205ae9,_0x194e83[_0x110c31])&&(_0x207cff[_0x194e83[_0x110c31]]=_0x205ae9[_0x194e83[_0x110c31]]);}return _0x207cff;},Wt=_0xd76e5f(function(_0x4197d0,_0x38b014){const _0x3e0c0a=_0x598a93;var _0x5037a3=_0x4197d0[_0x3e0c0a(0x1c8)],_0x3e12cf=_0x4197d0['id'],_0xa64b8c=_0x4197d0[_0x3e0c0a(0x23d)],_0x92c74=_0x4197d0['extend'],_0x461230=Zr(_0x4197d0,[_0x3e0c0a(0x1c8),'id',_0x3e0c0a(0x23d),'extend']),_0x320248=_0x3e0c0a(0x1a8)['concat'](_0x3e12cf,'\x20')[_0x3e0c0a(0x39b)](_0xa64b8c||'')[_0x3e0c0a(0x336)](),_0x1cfe52=_0x5a5d9c('_'['concat'](to()));return ks(_0x5037a3,''[_0x3e0c0a(0x39b)](_0x3e12cf),{'defIds':_0x5037a3[_0x3e0c0a(0x1ad)],'idSuffix':_0x1cfe52[_0x3e0c0a(0x208)]},N({'ref':_0x38b014,'className':_0x320248},_0x461230),_0x92c74);});function ks(_0x45b408,_0x251687,_0x441251,_0x32edf3,_0x20d755){const _0x3aba10=_0x598a93;return _0x4a815b(_0x45b408[_0x3aba10(0x1b0)],N(N({'key':_0x251687},Qr(_0x45b408,_0x441251,_0x20d755)),_0x32edf3),(eo(_0x45b408,_0x441251)['children']||[])[_0x3aba10(0x202)](function(_0x58af11,_0x2f46ce){const _0x3e9d1c=_0x3aba10;return ks(_0x58af11,''[_0x3e9d1c(0x39b)](_0x251687,'-')['concat'](_0x45b408[_0x3e9d1c(0x1b0)],'-')[_0x3e9d1c(0x39b)](_0x2f46ce),_0x441251,void 0x0,_0x20d755);}));}function Qr(_0x26b645,_0x1da1d8,_0x2b27ba){const _0x43140e=_0x598a93;var _0x39e680=N({},_0x26b645[_0x43140e(0x19d)]);_0x2b27ba!=null&&_0x2b27ba['colorChannel1']&&_0x39e680[_0x43140e(0x330)]===_0x43140e(0x154)&&(_0x39e680[_0x43140e(0x330)]=_0x2b27ba[_0x43140e(0x154)]);var _0x5dba47=_0x1da1d8[_0x43140e(0x1ad)];return!_0x5dba47||_0x5dba47[_0x43140e(0x45e)]===0x0||(_0x26b645[_0x43140e(0x1b0)]==='use'&&_0x39e680[_0x43140e(0x1f6)]&&(_0x39e680[_0x43140e(0x1f6)]=_0x39e680[_0x43140e(0x1f6)]+_0x1da1d8['idSuffix']),Object['entries'](_0x39e680)[_0x43140e(0x264)](function(_0x2d4214){const _0x19db99=_0x43140e;var _0x21544e=_0x2d4214[0x0],_0x593cf7=_0x2d4214[0x1];typeof _0x593cf7==_0x19db99(0x150)&&(_0x39e680[_0x21544e]=_0x593cf7[_0x19db99(0x32d)](/url\(#(.*)\)/,'url(#$1'[_0x19db99(0x39b)](_0x1da1d8[_0x19db99(0x1a9)],')')));})),_0x39e680;}function eo(_0x40637a,_0x53b05a){const _0x153a46=_0x598a93;var _0x1392f6,_0x57b76d=_0x53b05a['defIds'];return!_0x57b76d||_0x57b76d[_0x153a46(0x45e)]===0x0?_0x40637a:_0x40637a['tag']===_0x153a46(0x1e0)&&(!((_0x1392f6=_0x40637a[_0x153a46(0x464)])===null||_0x1392f6===void 0x0)&&_0x1392f6[_0x153a46(0x45e)])?N(N({},_0x40637a),{'children':_0x40637a[_0x153a46(0x464)][_0x153a46(0x202)](function(_0x21e1a7){const _0x4e8ed5=_0x153a46;return typeof _0x21e1a7[_0x4e8ed5(0x19d)]['id']==_0x4e8ed5(0x150)&&_0x57b76d&&_0x57b76d[_0x4e8ed5(0x3d9)](_0x21e1a7['attrs']['id'])>-0x1?N(N({},_0x21e1a7),{'attrs':N(N({},_0x21e1a7[_0x4e8ed5(0x19d)]),{'id':_0x21e1a7['attrs']['id']+_0x53b05a[_0x4e8ed5(0x1a9)]})}):_0x21e1a7;})}):_0x40637a;}function to(){const _0x585d85=_0x598a93;return Math[_0x585d85(0x22e)]()[_0x585d85(0x1fe)](0x24)[_0x585d85(0x324)](0x2,0x8);}Wt[_0x598a93(0x140)]=_0x598a93(0x365);var so={'tag':'svg','attrs':{'fill':_0x598a93(0x2e7),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x598a93(0x302)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x598a93(0x346),'attrs':{'stroke':_0x598a93(0x2a8),'d':_0x598a93(0x1b7),'strokeLinecap':_0x598a93(0x24e),'strokeLinejoin':_0x598a93(0x24e),'strokeWidth':1.2}}]},{'tag':_0x598a93(0x1e0),'attrs':{},'children':[{'tag':_0x598a93(0x1ef),'attrs':{'id':_0x598a93(0x331)},'children':[{'tag':_0x598a93(0x346),'attrs':{'fill':'#fff','d':_0x598a93(0x1f8)}}]}]}],'defIds':[_0x598a93(0x331)]},Bs=_0xd76e5f(function(_0x5e6ac6,_0xc91461){const _0x8a91a7=_0x598a93;return _0x4a815b(Wt,Object[_0x8a91a7(0x418)]({},_0x5e6ac6,{'id':'off-line-single','ref':_0xc91461,'icon':so}));});Bs[_0x598a93(0x140)]=_0x598a93(0x38a);var io={'tag':_0x598a93(0x246),'attrs':{'fill':_0x598a93(0x2e7),'viewBox':_0x598a93(0x434),'width':'1em','height':_0x598a93(0x302)},'children':[{'tag':'g','attrs':{'clipPath':_0x598a93(0x368)},'children':[{'tag':_0x598a93(0x346),'attrs':{'stroke':_0x598a93(0x2a8),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x598a93(0x24e),'strokeLinejoin':_0x598a93(0x24e),'strokeWidth':1.2}}]},{'tag':_0x598a93(0x1e0),'attrs':{},'children':[{'tag':_0x598a93(0x1ef),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x598a93(0x346),'attrs':{'fill':_0x598a93(0x351),'d':_0x598a93(0x1f8),'transform':_0x598a93(0x428)}}]}]}],'defIds':[_0x598a93(0x38c)]},Vs=_0xd76e5f(function(_0x278e9a,_0x300a2f){const _0x2d55d8=_0x598a93;return _0x4a815b(Wt,Object[_0x2d55d8(0x418)]({},_0x278e9a,{'id':'on-line-single','ref':_0x300a2f,'icon':io}));});Vs[_0x598a93(0x140)]='OnLineSingle';function Fs(_0x138e71){const _0x40aec3=_0x598a93;var _0x1041a2,_0x391e14,_0x29b7f8='';if(typeof _0x138e71=='string'||typeof _0x138e71=='number')_0x29b7f8+=_0x138e71;else{if(typeof _0x138e71=='object'){if(Array[_0x40aec3(0x38e)](_0x138e71)){var _0x1619ba=_0x138e71[_0x40aec3(0x45e)];for(_0x1041a2=0x0;_0x1041a2<_0x1619ba;_0x1041a2++)_0x138e71[_0x1041a2]&&(_0x391e14=Fs(_0x138e71[_0x1041a2]))&&(_0x29b7f8&&(_0x29b7f8+='\x20'),_0x29b7f8+=_0x391e14);}else{for(_0x391e14 in _0x138e71)_0x138e71[_0x391e14]&&(_0x29b7f8&&(_0x29b7f8+='\x20'),_0x29b7f8+=_0x391e14);}}}return _0x29b7f8;}function no(){const _0x36470a=_0x598a93;for(var _0x586eb7,_0x18e8f4,_0xa228b=0x0,_0x5d648e='',_0x1e377b=arguments[_0x36470a(0x45e)];_0xa228b<_0x1e377b;_0xa228b++)(_0x586eb7=arguments[_0xa228b])&&(_0x18e8f4=Fs(_0x586eb7))&&(_0x5d648e&&(_0x5d648e+='\x20'),_0x5d648e+=_0x18e8f4);return _0x5d648e;}const ro=_0x598a93(0x1cd),oo=_0x598a93(0x1fa),ao=_0x598a93(0x45a),co=_0x598a93(0x3b3),ho=_0x598a93(0x295),we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x3cdcab){const _0x53c2f1=_0x598a93;switch(_0x3cdcab){case w[_0x53c2f1(0x11d)]:return'collabStatus.offline';case w[_0x53c2f1(0x228)]:return _0x53c2f1(0x31d);case w[_0x53c2f1(0x3f0)]:return _0x53c2f1(0x3a5);case w[_0x53c2f1(0x2e2)]:return'collabStatus.notCollab';case w[_0x53c2f1(0x3c1)]:case w[_0x53c2f1(0x2f6)]:case w[_0x53c2f1(0x41b)]:return _0x53c2f1(0x3f4);case w[_0x53c2f1(0x329)]:return _0x53c2f1(0x179);}}function _o(_0x1ce8ce){const _0x1c69fc=_0x598a93,{status$:_0x3f2cfd}=_0x1ce8ce,_0x8c267c=_0x21a4be(_0x3f2cfd,w['NOT_COLLAB']),_0x1b9395=_0xded923(_0x2af7ec),_0x5c4eec=_0xded923(ce),_0xb17c95=_0x8c267c!==w[_0x1c69fc(0x11d)],_0x1ec412=_0x1b9395['t'](lo(_0x8c267c)),_0x5c9da1=no(we[_0x1c69fc(0x2a7)],{[we[_0x1c69fc(0x227)]]:_0xb17c95,[we['offline']]:!_0xb17c95}),_0x51f8d6=_0xb17c95?_0x5657df[_0x1c69fc(0x45f)](Vs,null):_0x5657df[_0x1c69fc(0x45f)](Bs,null),_0x230304=_0x207aaf(()=>{_0xb17c95||_0x5c4eec['reconnect']();},[_0xb17c95,_0x5c4eec]);function _0x245952(){const _0xb36fe6=_0x1c69fc;return _0x5657df[_0xb36fe6(0x45f)](_0xb36fe6(0x352),{'className':_0x5c9da1,'onClick':_0x230304},_0x5657df[_0xb36fe6(0x45f)](_0xb36fe6(0x352),{'className':we['onlineStatusIcon']},_0x51f8d6),_0x5657df['createElement'](_0xb36fe6(0x352),{'className':we[_0xb36fe6(0x347)]},_0x1ec412));}return _0xb17c95?_0x245952():_0x5657df[_0x1c69fc(0x45f)](_0x1ccb4c,{'title':_0x1b9395['t'](_0x1c69fc(0x3fa))},_0x245952());}var uo=Object[_0x598a93(0x171)],fo=Object['getOwnPropertyDescriptor'],mo=(_0x54bdc0,_0x28ec8e,_0x2160ed,_0x27393a)=>{const _0x51a3ea=_0x598a93;for(var _0x13ee79=_0x27393a>0x1?void 0x0:_0x27393a?fo(_0x28ec8e,_0x2160ed):_0x28ec8e,_0xeba96d=_0x54bdc0[_0x51a3ea(0x45e)]-0x1,_0x4a2cce;_0xeba96d>=0x0;_0xeba96d--)(_0x4a2cce=_0x54bdc0[_0xeba96d])&&(_0x13ee79=(_0x27393a?_0x4a2cce(_0x28ec8e,_0x2160ed,_0x13ee79):_0x4a2cce(_0x13ee79))||_0x13ee79);return _0x27393a&&_0x13ee79&&uo(_0x28ec8e,_0x2160ed,_0x13ee79),_0x13ee79;},He=(_0x1fae7c,_0x58a066)=>(_0x3cc05c,_0x3ea54c)=>_0x58a066(_0x3cc05c,_0x3ea54c,_0x1fae7c);let Ue=class extends _0x24edb8{constructor(_0x39898,_0x1e2c0a,_0x1c27df,_0xd38ba9){const _0x12d163=_0x598a93;super(),l(this,_0x12d163(0x3a4),new _0x59597c(w[_0x12d163(0x2e2)])),(this[_0x12d163(0x343)]=_0x39898,this['_uiPartsService']=_0x1e2c0a,this[_0x12d163(0x120)]=_0x1c27df,this[_0x12d163(0x40f)]=_0xd38ba9,this[_0x12d163(0x3f7)](),this['_initStatusListener']());}[_0x598a93(0x447)](){const _0x28001f=_0x598a93;this['disposeWithMe'](this[_0x28001f(0x343)]['focused$'][_0x28001f(0x22c)](_0x1a7b4a(()=>{const _0x3fbe24=_0x28001f,_0x46ba92=this['_univerInstanceService']['getFocusedUnit']();return _0x46ba92?this[_0x3fbe24(0x40f)][_0x3fbe24(0x1f4)](_0x46ba92[_0x3fbe24(0x14c)]()):_0x3fea04(null);}),_0x1a7b4a(_0x4c9559=>_0x4c9559?_0x4c9559[_0x28001f(0x1fd)]:_0x3fea04(w[_0x28001f(0x2e2)])))[_0x28001f(0x19e)](_0x1bbe9c=>{const _0x1852e5=_0x28001f;this[_0x1852e5(0x3a4)][_0x1852e5(0x12a)](_0x1bbe9c);}));}[_0x598a93(0x3f7)](){const _0x404f16=_0x598a93;this[_0x404f16(0x147)](this['_uiPartsService'][_0x404f16(0x12c)](_0x1a86c4['HEADER_MENU'],()=>_0x2efead(go({'status$':this['_status$'][_0x404f16(0x1b6)]()}),this[_0x404f16(0x120)])));}};Ue=mo([He(0x0,_0x191290),He(0x1,_0x3e243b),He(0x2,_0x592774(_0x579617)),He(0x3,_0x592774(Ae))],Ue);function go(_0x29baa8){const {status$:_0x4c6093}=_0x29baa8;return function(){const _0x31e670=_0x5340;return _0x5657df[_0x31e670(0x45f)](_o,{'status$':_0x4c6093});};}const Ws=_0x9eee89(_0x598a93(0x3e1));var So=Object[_0x598a93(0x171)],po=Object[_0x598a93(0x1cb)],vo=(_0x381da0,_0x2617c5,_0x20e86e,_0x4b0bf9)=>{const _0x3cccdd=_0x598a93;for(var _0x1a3977=_0x4b0bf9>0x1?void 0x0:_0x4b0bf9?po(_0x2617c5,_0x20e86e):_0x2617c5,_0x2bf47a=_0x381da0[_0x3cccdd(0x45e)]-0x1,_0xb1b9b0;_0x2bf47a>=0x0;_0x2bf47a--)(_0xb1b9b0=_0x381da0[_0x2bf47a])&&(_0x1a3977=(_0x4b0bf9?_0xb1b9b0(_0x2617c5,_0x20e86e,_0x1a3977):_0xb1b9b0(_0x1a3977))||_0x1a3977);return _0x4b0bf9&&_0x1a3977&&So(_0x2617c5,_0x20e86e,_0x1a3977),_0x1a3977;},me=(_0x263606,_0x2c231b)=>(_0x2c38e8,_0x40db4d)=>_0x2c231b(_0x2c38e8,_0x40db4d,_0x263606);let qe=class extends _0x39a217{constructor(_0x855b30,_0x33acc3,_0x5cc380,_0x14c903,_0x5d6ad2,_0x5ee086){const _0x255016=_0x598a93;super(),this[_0x255016(0x1ba)]=_0x855b30,this['_logService']=_0x33acc3,this[_0x255016(0x297)]=_0x5cc380,this[_0x255016(0x2fc)]=_0x14c903,this[_0x255016(0x282)]=_0x5d6ad2,_0x5ee086?_0x5ee086==null||_0x5ee086[_0x255016(0x11b)]()[_0x255016(0x33e)](()=>this[_0x255016(0x290)]()):(this[_0x255016(0x345)]['debug'](_0x255016(0x28b),_0x255016(0x15e)),this['_init']());}async['_init'](){const _0x550c3e=_0x598a93,_0x2c238c=this[_0x550c3e(0x1ba)][_0x550c3e(0x258)](_0x550c3e(0x2df)),_0x53a9c7=this[_0x550c3e(0x1ba)][_0x550c3e(0x258)](_0x550c3e(0x29d));if(!_0x2c238c||!_0x53a9c7){this['_logService'][_0x550c3e(0x276)](_0x550c3e(0x28b),_0x550c3e(0x3d6));return;}switch(Number(_0x53a9c7)){case H[_0x550c3e(0x174)]:{const _0x174469=await this[_0x550c3e(0x1b4)](_0x2c238c);this[_0x550c3e(0x1b5)](_0x174469);break;}case H['UNIVER_DOC']:{await this[_0x550c3e(0x122)](_0x2c238c);break;}default:{this[_0x550c3e(0x345)]['error']('[DataLoaderController]',_0x550c3e(0x24a));break;}}}async[_0x598a93(0x1b5)](_0x578f01){const _0x18d75f=_0x598a93;await this['_updateSubUnitFromURLParams'](_0x578f01),_0x578f01['activeSheet$']['pipe'](_0x5c2c79(this[_0x18d75f(0x1f5)]))[_0x18d75f(0x19e)](_0x504184=>{const _0x21af82=_0x18d75f;_0x504184&&this[_0x21af82(0x2ba)](_0x504184);}),this[_0x18d75f(0x1ba)][_0x18d75f(0x2a2)][_0x18d75f(0x22c)](_0x5c2c79(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x578f01));}['_updateURLWithCurrentState'](_0x2bb377,_0x18a63e=!0x1){const _0x479d7c=_0x598a93,_0x4b2776=this[_0x479d7c(0x1ba)][_0x479d7c(0x258)](_0x479d7c(0x28f));_0x2bb377[_0x479d7c(0x121)]()!==_0x4b2776&&this[_0x479d7c(0x1ba)]['setParam'](_0x479d7c(0x28f),_0x2bb377['getSheetId'](),_0x18a63e);}async['_updateSubUnitFromURLParams'](_0x1a534f){const _0x3cfc24=_0x598a93;var _0x47f37f;const _0x1ed1f4=this[_0x3cfc24(0x1ba)][_0x3cfc24(0x258)]('subunit');if(!_0x1ed1f4||!_0x1a534f['getSheetBySheetId'](_0x1ed1f4)){const _0x64871f=_0x1a534f[_0x3cfc24(0x369)]()[0x0],_0x166126=_0x1a534f['getSheetBySheetId'](_0x64871f);if(!_0x166126)return;this[_0x3cfc24(0x2ba)](_0x166126,!0x0),await this[_0x3cfc24(0x297)][_0x3cfc24(0x395)](_0x3794d4['id'],{'unitId':_0x1a534f[_0x3cfc24(0x14c)](),'subUnitId':_0x64871f});return;}((_0x47f37f=_0x1a534f[_0x3cfc24(0x125)]())==null?void 0x0:_0x47f37f[_0x3cfc24(0x121)]())!==_0x1ed1f4&&await this[_0x3cfc24(0x297)][_0x3cfc24(0x395)](_0x3794d4['id'],{'unitId':_0x1a534f['getUnitId'](),'subUnitId':_0x1ed1f4});}async['_loadSheet'](_0xb65679){const _0x2eb41f=_0x598a93;let _0x392b21=0x0;const _0x590fd1=await this[_0x2eb41f(0x2fc)][_0x2eb41f(0x442)](_0xb65679);return _0x590fd1&&(_0x590fd1[_0x2eb41f(0x2dd)]||_0x590fd1[_0x2eb41f(0x3fb)]['length']!==0x0)&&(_0x392b21=_0x590fd1[_0x2eb41f(0x3fc)]),_0x392b21===0x0&&this['_logService']['debug'](_0x2eb41f(0x28b),_0x2eb41f(0x2b7)),this[_0x2eb41f(0x282)][_0x2eb41f(0x311)](_0xb65679,_0x392b21);}async[_0x598a93(0x122)](_0x3fca3c){const _0x3b567d=_0x598a93;let _0x109c70=0x0;const _0x2d1f1a=await this[_0x3b567d(0x2fc)][_0x3b567d(0x442)](_0x3fca3c);return _0x2d1f1a&&(_0x2d1f1a['awaitingChangeset']||_0x2d1f1a[_0x3b567d(0x3fb)][_0x3b567d(0x45e)]!==0x0)&&(_0x109c70=_0x2d1f1a[_0x3b567d(0x3fc)]),_0x109c70===0x0&&this[_0x3b567d(0x345)][_0x3b567d(0x276)]('[DataLoaderController]',_0x3b567d(0x2b7)),this[_0x3b567d(0x282)][_0x3b567d(0x452)](_0x3fca3c,_0x109c70);}};qe=vo([me(0x0,Ws),me(0x1,_0x1281de),me(0x2,_0xbb225b),me(0x3,_0x592774(D)),me(0x4,_0x592774(_0x59f861)),me(0x5,_0x3372cb(_0x4a0241))],qe);var Io=Object[_0x598a93(0x171)],Eo=Object['getOwnPropertyDescriptor'],Co=(_0x35bac0,_0x47d293,_0x1e3ce6,_0x22b941)=>{const _0x2d1080=_0x598a93;for(var _0x432b5f=_0x22b941>0x1?void 0x0:_0x22b941?Eo(_0x47d293,_0x1e3ce6):_0x47d293,_0x230bfc=_0x35bac0[_0x2d1080(0x45e)]-0x1,_0x2ec242;_0x230bfc>=0x0;_0x230bfc--)(_0x2ec242=_0x35bac0[_0x230bfc])&&(_0x432b5f=(_0x22b941?_0x2ec242(_0x47d293,_0x1e3ce6,_0x432b5f):_0x2ec242(_0x432b5f))||_0x432b5f);return _0x22b941&&_0x432b5f&&Io(_0x47d293,_0x1e3ce6,_0x432b5f),_0x432b5f;},fs=(_0xb5445c,_0x72e0bc)=>(_0x42886c,_0x1866a7)=>_0x72e0bc(_0x42886c,_0x1866a7,_0xb5445c);const bo=_0x598a93(0x286),To=_0x598a93(0x254);let ze=class extends _0x24edb8{constructor(_0x3aa5c4,_0x21655d){const _0x5295a3=_0x598a93;super(),this[_0x5295a3(0x343)]=_0x3aa5c4,this[_0x5295a3(0x2c2)]=_0x21655d,this[_0x5295a3(0x290)]();}['_init'](){const _0x90b46f=_0x598a93;this[_0x90b46f(0x147)](this[_0x90b46f(0x343)][_0x90b46f(0x2a5)][_0x90b46f(0x19e)](()=>{const _0x1aa80b=_0x90b46f;var _0x31ca85;const _0xe4d4d6=this[_0x1aa80b(0x343)][_0x1aa80b(0x3c2)]();let _0x1d0db9=(_0x31ca85=this[_0x1aa80b(0x2c2)][_0x1aa80b(0x12d)](bo))!=null?_0x31ca85:To;_0xe4d4d6 instanceof _0x3496f4&&(_0x1d0db9=_0xe4d4d6[_0x1aa80b(0x3d7)]),document[_0x1aa80b(0x146)]=_0x1d0db9;}));}};ze=Co([fs(0x0,_0x191290),fs(0x1,_0x3fc6a0)],ze);var Ro=Object[_0x598a93(0x171)],Oo=Object[_0x598a93(0x1cb)],Do=(_0x468052,_0x462c46,_0x425ae3,_0x46ac28)=>{const _0x49fd36=_0x598a93;for(var _0x45fa98=_0x46ac28>0x1?void 0x0:_0x46ac28?Oo(_0x462c46,_0x425ae3):_0x462c46,_0xde74f3=_0x468052[_0x49fd36(0x45e)]-0x1,_0x3c5e3c;_0xde74f3>=0x0;_0xde74f3--)(_0x3c5e3c=_0x468052[_0xde74f3])&&(_0x45fa98=(_0x46ac28?_0x3c5e3c(_0x462c46,_0x425ae3,_0x45fa98):_0x3c5e3c(_0x45fa98))||_0x45fa98);return _0x46ac28&&_0x45fa98&&Ro(_0x462c46,_0x425ae3,_0x45fa98),_0x45fa98;},gt=(_0x1d0c07,_0x279285)=>(_0x55ae1b,_0x3accf6)=>_0x279285(_0x55ae1b,_0x3accf6,_0x1d0c07);let Ze=class{constructor(_0x3adefb,_0x101482,_0x4b412e){const _0x21ec1a=_0x598a93;this[_0x21ec1a(0x2c2)]=_0x3adefb,this[_0x21ec1a(0x3f1)]=_0x101482,this[_0x21ec1a(0x37d)]=_0x4b412e,this['init']();}[_0x598a93(0x217)](){const _0xd066ae=_0x598a93;this[_0xd066ae(0x3f1)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x50c385,_0x55e063)=>_0x55e063(_0x50c385)['pipe'](_0x3ee968(async _0x273d1e=>{const _0x4c3ec7=_0xd066ae,_0x4d2f17=_0x273d1e;if(_0x4d2f17['status']===0x191&&window['confirm'](this[_0x4c3ec7(0x37d)]['t'](_0x4c3ec7(0x3cf)))){const _0x10a186=window[_0x4c3ec7(0x27f)](window[_0x4c3ec7(0x2bd)]['href']);window[_0x4c3ec7(0x2bd)][_0x4c3ec7(0x2bb)]=this[_0x4c3ec7(0x248)]()+'?url='+_0x10a186;}return _0x4d2f17;}))});}[_0x598a93(0x248)](){const _0x45c6ea=_0x598a93;var _0x4f877f,_0x3330fa;const _0x2ce100=this[_0x45c6ea(0x2c2)][_0x45c6ea(0x12d)](wn),_0x4347ea=this[_0x45c6ea(0x2c2)][_0x45c6ea(0x12d)](L);return(_0x3330fa=(_0x4f877f=_0x4347ea==null?void 0x0:_0x4347ea[_0x45c6ea(0x1c7)])!=null?_0x4f877f:_0x2ce100)!=null?_0x3330fa:Pn;}};Ze=Do([gt(0x0,_0x3fc6a0),gt(0x1,_0x592774(_0x4b4f20)),gt(0x2,_0x592774(_0x2af7ec))],Ze);var wo=Object[_0x598a93(0x171)],Po=Object['getOwnPropertyDescriptor'],yo=(_0x575941,_0x61b503,_0x372419,_0x2fff0e)=>{const _0x4afeb3=_0x598a93;for(var _0x1e2d8a=_0x2fff0e>0x1?void 0x0:_0x2fff0e?Po(_0x61b503,_0x372419):_0x61b503,_0x5989c1=_0x575941[_0x4afeb3(0x45e)]-0x1,_0xee64a1;_0x5989c1>=0x0;_0x5989c1--)(_0xee64a1=_0x575941[_0x5989c1])&&(_0x1e2d8a=(_0x2fff0e?_0xee64a1(_0x61b503,_0x372419,_0x1e2d8a):_0xee64a1(_0x1e2d8a))||_0x1e2d8a);return _0x2fff0e&&_0x1e2d8a&&wo(_0x61b503,_0x372419,_0x1e2d8a),_0x1e2d8a;},ms=(_0x2beef3,_0x73cfeb)=>(_0x505183,_0x16548e)=>_0x73cfeb(_0x505183,_0x16548e,_0x2beef3);const No='AUTHZ_URL_KEY',Uo=_0x598a93(0x220);let Pt=class extends _0x24edb8{constructor(_0x1f59ac,_0x47a027){const _0x273001=_0x598a93;super(),this[_0x273001(0x349)]=_0x1f59ac,this[_0x273001(0x2c2)]=_0x47a027,this[_0x273001(0x1fc)]();}[_0x598a93(0x1fc)](){const _0x5cbb93=_0x598a93,_0x395c86=this;this['disposeWithMe'](this[_0x5cbb93(0x349)][_0x5cbb93(0x2c9)]({'priority':0x3e7,'interceptor':_0x4eeb0d({'isMatch'(_0x2e6b19){const _0x3547dd=_0x5cbb93;var _0x548de0;if(_0x2e6b19[_0x3547dd(0x2d6)]===_0x3547dd(0x3d3)&&((_0x548de0=_0x2e6b19['requestParams'])!=null&&_0x548de0[_0x3547dd(0x3a2)])){const {objectID:_0x166639,objectType:_0x2c1637}=_0x2e6b19[_0x3547dd(0x12b)][_0x3547dd(0x3a2)]||{};if(!_0x166639||_0x2c1637===void 0x0)return!0x1;const _0x34146f=_0x395c86[_0x3547dd(0x132)]()+'/'+_0x2c1637+_0x3547dd(0x37a)+_0x166639+_0x3547dd(0x243);if(_0x2e6b19[_0x3547dd(0x3b5)]===_0x34146f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2ab2e9){const _0x30918c=_0x5cbb93;var _0x596305;return(_0x596305=_0x2ab2e9[_0x30918c(0x12b)])==null?void 0x0:_0x596305['body'];},'mergeParamsToRequest'(_0x369d10,_0x244b65){const _0x36e530=_0x5cbb93,_0x39af6d=_0x395c86[_0x36e530(0x132)]()+_0x36e530(0x38d),_0x30a725=_0x369d10[_0x36e530(0x153)]((_0xcd931,_0x136522)=>{const _0x17c9c8=_0x36e530,{unitID:_0x317e90,objectID:_0x2f08f9,objectType:_0x140053,actions:_0x280da6}=_0x136522;return _0xcd931[_0x317e90]||(_0xcd931[_0x317e90]={}),_0xcd931[_0x317e90][_0x2f08f9]||(_0xcd931[_0x317e90][_0x2f08f9]={'objectID':_0x2f08f9,'objectType':_0x140053,'actions':[]}),_0xcd931[_0x317e90][_0x2f08f9][_0x17c9c8(0x394)][_0x17c9c8(0x34e)](..._0x280da6),_0xcd931;},{}),_0x4407fc=[];for(const _0xb6cc2c in _0x30a725)for(const _0x33262a in _0x30a725[_0xb6cc2c]){const {actions:_0x3a421c,objectType:_0x23d0b8}=_0x30a725[_0xb6cc2c][_0x33262a],_0x47daac=[...new Set(_0x3a421c)];_0x4407fc['push']({'unitID':_0xb6cc2c,'objectID':_0x33262a,'objectType':_0x23d0b8,'actions':_0x47daac});}return new _0x5a9dc5(_0x36e530(0x3d3),_0x39af6d,{'headers':_0x244b65[_0x36e530(0x298)],'withCredentials':_0x244b65[_0x36e530(0x39e)],'responseType':_0x244b65[_0x36e530(0x470)],'body':{'requests':_0x4407fc}});}},{'distributeResult'(_0x1ee57f,_0x530c03){const _0x151b24=_0x5cbb93,{objectActions:_0x254aae}=_0x1ee57f;return _0x530c03[_0x151b24(0x202)](_0x265d40=>{const _0x12f72f=_0x151b24,{unitID:_0x49916d,objectID:_0x1ad275,actions:_0x4803ce}=_0x265d40,_0x538d87=_0x254aae[_0x12f72f(0x257)](_0x4e8bba=>_0x4e8bba[_0x12f72f(0x3a6)]===_0x49916d&&_0x4e8bba[_0x12f72f(0x32b)]===_0x1ad275),_0x2ba536=_0x4803ce['map'](_0x1b7e15=>_0x538d87==null?void 0x0:_0x538d87[_0x12f72f(0x394)][_0x12f72f(0x257)](_0x5df8c9=>_0x5df8c9[_0x12f72f(0x1bb)]===_0x1b7e15))[_0x12f72f(0x23a)](_0xb23e38=>!!_0xb23e38);return{'config':_0x265d40,'result':{'actions':_0x2ba536,'error':_0x1ee57f[_0x12f72f(0x379)]}};});}})}));}[_0x598a93(0x132)](){const _0x4ec848=_0x598a93;var _0xacf9d5,_0x3f378c;const _0x1a6735=this[_0x4ec848(0x2c2)]['getConfig'](No),_0x5746c1=this['_configService'][_0x4ec848(0x12d)](L);return(_0x3f378c=(_0xacf9d5=_0x5746c1==null?void 0x0:_0x5746c1[_0x4ec848(0x37c)])!=null?_0xacf9d5:_0x1a6735)!=null?_0x3f378c:Uo;}async[_0x598a93(0x3c7)](_0x562dcb){const _0x11bffc=_0x598a93,_0x287b85=this[_0x11bffc(0x132)]()+'/'+_0x562dcb[_0x11bffc(0x1e8)]+_0x11bffc(0x263);return(await this['_HTTPService'][_0x11bffc(0x441)](_0x287b85,{'body':_0x562dcb}))[_0x11bffc(0x3a2)]['objectID']||'';}async[_0x598a93(0x455)](_0x218932){const _0xbca4f1=_0x598a93,_0x208a0f=this[_0xbca4f1(0x132)]()+_0xbca4f1(0x3e2);return(await this[_0xbca4f1(0x349)]['post'](_0x208a0f,{'body':_0x218932}))[_0xbca4f1(0x3a2)][_0xbca4f1(0x47d)];}async[_0x598a93(0x339)](_0x2c445e){const _0x38f64e=_0x598a93,_0x439f61=this[_0x38f64e(0x132)]()+'/'+_0x2c445e[_0x38f64e(0x1e8)]+'/object/'+_0x2c445e[_0x38f64e(0x32b)];await this['_HTTPService'][_0x38f64e(0x193)](_0x439f61,{'body':_0x2c445e});}async['allowed'](_0x41713b){const _0x276b89=_0x598a93,_0x1efba0=this[_0x276b89(0x132)]()+'/'+_0x41713b[_0x276b89(0x1e8)]+_0x276b89(0x37a)+_0x41713b[_0x276b89(0x32b)]+'/allowed';return(await this[_0x276b89(0x349)]['post'](_0x1efba0,{'body':_0x41713b}))[_0x276b89(0x3a2)][_0x276b89(0x394)];}async[_0x598a93(0x2a3)](_0x2605e8){const _0x3debd7=_0x598a93,_0x586660=this[_0x3debd7(0x132)]()+_0x3debd7(0x38d);return(await this[_0x3debd7(0x349)][_0x3debd7(0x441)](_0x586660,{'body':{'requests':_0x2605e8}}))[_0x3debd7(0x3a2)][_0x3debd7(0x16c)];}async[_0x598a93(0x3c6)](_0x24f716){const _0x1846e4=_0x598a93,_0xe57cf9=this['_getAPIPrefixPath']()+'/'+_0x24f716[_0x1846e4(0x1e8)]+_0x1846e4(0x20c),_0xff8927=await this[_0x1846e4(0x349)][_0x1846e4(0x441)](_0xe57cf9,{'body':_0x24f716});return{'roles':_0xff8927[_0x1846e4(0x3a2)]['roles'],'actions':_0xff8927[_0x1846e4(0x3a2)][_0x1846e4(0x394)]};}async['deleteCollaborator'](_0xe0ffcc){const _0x2cc9c2=_0x598a93,_0x2bbe24=this['_getAPIPrefixPath']()+_0x2cc9c2(0x20e);await this[_0x2cc9c2(0x349)][_0x2cc9c2(0x2c8)](_0x2bbe24,{'params':{'collaboratorID':_0xe0ffcc[_0x2cc9c2(0x1ff)],'objectID':_0xe0ffcc[_0x2cc9c2(0x32b)],'unitID':_0xe0ffcc[_0x2cc9c2(0x3a6)]}});}async[_0x598a93(0x1ec)](_0x50b4ac){const _0xd9ae79=_0x598a93,_0x5d8969=this[_0xd9ae79(0x132)]()+_0xd9ae79(0x20e);await this['_HTTPService'][_0xd9ae79(0x31b)](_0x5d8969,{'body':_0x50b4ac});}async[_0x598a93(0x3d5)](_0xf753a9){const _0x3aa825=_0x598a93,_0x1443ef=this[_0x3aa825(0x132)]()+_0x3aa825(0x20e);await this['_HTTPService']['post'](_0x1443ef,{'body':_0xf753a9});}async['listCollaborators'](_0x783a5e){const _0x543242=_0x598a93,_0x3cbb65=this[_0x543242(0x132)]()+_0x543242(0x20e);return(await this['_HTTPService'][_0x543242(0x175)](_0x3cbb65,{'params':{'objectID':_0x783a5e['objectID'],'unitID':_0x783a5e[_0x543242(0x3a6)]}}))[_0x543242(0x3a2)]['collaborators'];}async['putCollaborators'](_0x438e52){const _0x343e06=_0x598a93,_0x158ab9=this[_0x343e06(0x132)]()+'/collaborator';await this[_0x343e06(0x349)][_0x343e06(0x193)](_0x158ab9,{'body':_0x438e52});}};Pt=yo([ms(0x0,_0x592774(_0x4b4f20)),ms(0x1,_0x592774(_0x3fc6a0))],Pt);var Mo=Object[_0x598a93(0x171)],Ao=Object[_0x598a93(0x1cb)],Lo=(_0xb97942,_0x51b550,_0x541087,_0x77a24a)=>{for(var _0x42fcc5=_0x77a24a>0x1?void 0x0:_0x77a24a?Ao(_0x51b550,_0x541087):_0x51b550,_0x51fa96=_0xb97942['length']-0x1,_0x346491;_0x51fa96>=0x0;_0x51fa96--)(_0x346491=_0xb97942[_0x51fa96])&&(_0x42fcc5=(_0x77a24a?_0x346491(_0x51b550,_0x541087,_0x42fcc5):_0x346491(_0x42fcc5))||_0x42fcc5);return _0x77a24a&&_0x42fcc5&&Mo(_0x51b550,_0x541087,_0x42fcc5),_0x42fcc5;},$o=(_0x3c7a2f,_0x423fd4)=>(_0xed7375,_0x35e25f)=>_0x423fd4(_0xed7375,_0x35e25f,_0x3c7a2f);let Qe=class{constructor(_0x348077){const _0x49e5f3=_0x598a93;this[_0x49e5f3(0x3f1)]=_0x348077,this[_0x49e5f3(0x2b3)]();}[_0x598a93(0x2b3)](){const _0xe29d50=_0x598a93;this[_0xe29d50(0x3f1)][_0xe29d50(0x2c9)]({'interceptor':(_0x31c472,_0x1c2f7c)=>{const _0x27e9a8=_0xe29d50,_0x5d77b8=_0x31c472['headers'],_0x370f40=_0x41a78e();return _0x370f40&&_0x5d77b8[_0x27e9a8(0x314)]('x-univer-host',_0x370f40),_0x1c2f7c(_0x31c472);}});}};Qe=Lo([$o(0x0,_0x592774(_0x4b4f20))],Qe);var jo=Object[_0x598a93(0x171)],xo=Object[_0x598a93(0x1cb)],Ho=(_0x1089c9,_0x48bbd9,_0x1bcc4c,_0x51a04f)=>{const _0x39a48c=_0x598a93;for(var _0x61f055=_0x51a04f>0x1?void 0x0:_0x51a04f?xo(_0x48bbd9,_0x1bcc4c):_0x48bbd9,_0x568726=_0x1089c9[_0x39a48c(0x45e)]-0x1,_0x2a636e;_0x568726>=0x0;_0x568726--)(_0x2a636e=_0x1089c9[_0x568726])&&(_0x61f055=(_0x51a04f?_0x2a636e(_0x48bbd9,_0x1bcc4c,_0x61f055):_0x2a636e(_0x61f055))||_0x61f055);return _0x51a04f&&_0x61f055&&jo(_0x48bbd9,_0x1bcc4c,_0x61f055),_0x61f055;},St=(_0xbfed82,_0x4c8b9b)=>(_0x6471d2,_0x2eb165)=>_0x4c8b9b(_0x6471d2,_0x2eb165,_0xbfed82);const ko=[_0x598a93(0x3b7),_0x598a93(0x288),'image/jpg',_0x598a93(0x3cb),_0x598a93(0x152)],Bo=0x5*0x400*0x400,Vo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Fo='/universer-api/stream/file/upload',Wo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Go=_0x598a93(0x426);let yt=class{constructor(_0x3f170e,_0x2df50d,_0x476e75){const _0x3774b6=_0x598a93;l(this,'_waitCount',0x0),l(this,_0x3774b6(0x34d),new _0x2199d6()),l(this,_0x3774b6(0x1a0),this[_0x3774b6(0x34d)]),l(this,_0x3774b6(0x19a),new Map()),(this['_httpService']=_0x3f170e,this[_0x3774b6(0x2c2)]=_0x2df50d,this[_0x3774b6(0x343)]=_0x476e75);}[_0x598a93(0x1f0)](_0x1f8b2d){const _0x2aba19=_0x598a93;this['_waitCount']=_0x1f8b2d,this[_0x2aba19(0x34d)][_0x2aba19(0x12a)](_0x1f8b2d);}[_0x598a93(0x2b2)](_0x2bbbea,_0x4aef3f){const _0x10340d=_0x598a93;if(_0x4aef3f===_0x3c6cb4['BASE64']){const _0x1bdf06=new Image();return _0x1bdf06[_0x10340d(0x16d)]=_0x2bbbea,_0x1bdf06;}return this[_0x10340d(0x19a)][_0x10340d(0x175)](_0x2bbbea);}[_0x598a93(0x1c1)](_0x471363,_0x4131db,_0x47347a){const _0x15c215=_0x598a93;_0x4131db===_0x3c6cb4[_0x15c215(0x148)]||_0x47347a==null||this[_0x15c215(0x19a)][_0x15c215(0x314)](_0x471363,_0x47347a);}async[_0x598a93(0x480)](_0x3bf968){const _0x11f2ad=_0x598a93;try{const _0x1eecb9=this['_replaceFileID'](this[_0x11f2ad(0x134)](),''+_0x3bf968),_0xd2bfea=(await this[_0x11f2ad(0x3f1)]['get'](_0x1eecb9))[_0x11f2ad(0x3a2)];if(_0xd2bfea['error']&&_0xd2bfea[_0x11f2ad(0x379)][_0x11f2ad(0x172)]===Ms['OK']){const _0x3141a5=new URL(_0xd2bfea['url'],this['_getDownloadEndpointURL']())['toString']();return Promise['resolve'](_0x3141a5);}return Promise[_0x11f2ad(0x3e8)](_0xd2bfea[_0x11f2ad(0x379)]);}catch(_0x535d9f){return Promise[_0x11f2ad(0x3e8)](_0x535d9f);}}async[_0x598a93(0x2d0)](_0x338b4a){const _0x102b09=_0x598a93;let _0x5f1a07='';if(!ko[_0x102b09(0x35e)](_0x338b4a['type']))return this[_0x102b09(0x199)](),Promise['reject'](new Error(_0x272978[_0x102b09(0x224)]));if(_0x338b4a[_0x102b09(0x14e)]>Bo)return this['_decreaseWaiting'](),Promise[_0x102b09(0x3e8)](new Error(_0x272978[_0x102b09(0x167)]));try{const _0x5ad7b2=new FormData();_0x5ad7b2['append']('file',_0x338b4a);const _0x31f64f=this[_0x102b09(0x343)][_0x102b09(0x3c2)](),_0x1242c8=_0x31f64f==null?void 0x0:_0x31f64f['getUnitId']();if(!_0x1242c8)throw new Error(_0x102b09(0x2be));const _0x3bc259=this[_0x102b09(0x3f5)]()+_0x102b09(0x29c)+_0x338b4a[_0x102b09(0x14e)][_0x102b09(0x1fe)]()+_0x102b09(0x226)+As[_0x102b09(0x16b)]+_0x102b09(0x3cd)+encodeURIComponent(_0x1242c8),_0x2cf2e3=await(await fetch(_0x3bc259,{'method':'POST','body':_0x5ad7b2}))['json']();if(typeof _0x2cf2e3[_0x102b09(0x353)]!=_0x102b09(0x150))return this[_0x102b09(0x199)](),Promise[_0x102b09(0x3e8)](new Error(_0x272978[_0x102b09(0x18d)]));_0x5f1a07=_0x2cf2e3[_0x102b09(0x353)];}catch{return this[_0x102b09(0x199)](),Promise[_0x102b09(0x3e8)](new Error(_0x272978['ERROR_IMAGE']));}return new Promise((_0x279e7a,_0x1ae202)=>{const _0x518869=_0x102b09,_0x398fbd=new FileReader();_0x398fbd[_0x518869(0x36b)](_0x338b4a),_0x398fbd['onload']=_0x38fe5c=>{const _0x36f2ab=_0x518869;var _0x382c94;const _0x1ed657=(_0x382c94=_0x38fe5c[_0x36f2ab(0x463)])==null?void 0x0:_0x382c94[_0x36f2ab(0x165)];if(_0x1ed657==null){this[_0x36f2ab(0x199)](),_0x1ae202(new Error(_0x272978[_0x36f2ab(0x18d)]));return;}const _0x3670ca=_0x4105cf['generateRandomId'](0x6);_0x279e7a({'imageId':_0x3670ca,'imageSourceType':_0x3c6cb4[_0x36f2ab(0x3da)],'source':_0x5f1a07,'base64Cache':_0x1ed657,'status':_0x272978[_0x36f2ab(0x44d)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x35c8e8=_0x598a93;var _0x462dd6,_0x5922b7;const _0x59cc73=this[_0x35c8e8(0x2c2)][_0x35c8e8(0x12d)](Vo),_0x2ce828=this[_0x35c8e8(0x2c2)][_0x35c8e8(0x12d)](L);return(_0x5922b7=(_0x462dd6=_0x2ce828==null?void 0x0:_0x2ce828[_0x35c8e8(0x2b0)])!=null?_0x462dd6:_0x59cc73)!=null?_0x5922b7:Fo;}['_getSignURL'](){const _0xe7ae9e=_0x598a93;var _0x53b7ee,_0x4ac00f;const _0x303183=this['_configService'][_0xe7ae9e(0x12d)](Wo),_0x51055a=this['_configService'][_0xe7ae9e(0x12d)](L);return(_0x4ac00f=(_0x53b7ee=_0x51055a==null?void 0x0:_0x51055a[_0xe7ae9e(0x281)])!=null?_0x53b7ee:_0x303183)!=null?_0x4ac00f:Go;}['_getDownloadEndpointURL'](){const _0x2ad508=_0x598a93;var _0x420172;const _0x1e7c7c=this[_0x2ad508(0x2c2)][_0x2ad508(0x12d)](L);return(_0x420172=_0x1e7c7c==null?void 0x0:_0x1e7c7c['downloadEndpointUrl'])!=null?_0x420172:location['origin'];}[_0x598a93(0x440)](_0x2223b7,_0x1d0755){const _0x2b37de=_0x598a93;return _0x2223b7[_0x2b37de(0x32d)](_0x2b37de(0x34a),_0x1d0755);}[_0x598a93(0x199)](){const _0x1c2a63=_0x598a93;this[_0x1c2a63(0x312)]-=0x1,this['_change$'][_0x1c2a63(0x12a)](this['_waitCount']);}};yt=Ho([St(0x0,_0x592774(_0x4b4f20)),St(0x1,_0x3fc6a0),St(0x2,_0x592774(_0x191290))],yt);var Yo=Object['defineProperty'],Ko=Object[_0x598a93(0x1cb)],Xo=(_0x3f6376,_0x26beac,_0x16fac3,_0x5b107b)=>{const _0x3df8bf=_0x598a93;for(var _0x14f5b4=_0x5b107b>0x1?void 0x0:_0x5b107b?Ko(_0x26beac,_0x16fac3):_0x26beac,_0x3a2f30=_0x3f6376[_0x3df8bf(0x45e)]-0x1,_0x31ab87;_0x3a2f30>=0x0;_0x3a2f30--)(_0x31ab87=_0x3f6376[_0x3a2f30])&&(_0x14f5b4=(_0x5b107b?_0x31ab87(_0x26beac,_0x16fac3,_0x14f5b4):_0x31ab87(_0x14f5b4))||_0x14f5b4);return _0x5b107b&&_0x14f5b4&&Yo(_0x26beac,_0x16fac3,_0x14f5b4),_0x14f5b4;},Pe=(_0x2edc32,_0x2dfb29)=>(_0xd01fd9,_0x3815b0)=>_0x2dfb29(_0xd01fd9,_0x3815b0,_0x2edc32);let et=class extends _0x39a217{constructor(_0x165037,_0x461695,_0x178da0,_0x38e006,_0x198f01){const _0x550177=_0x598a93;super(),this['_injector']=_0x165037,this['_univerInstanceService']=_0x461695,this[_0x550177(0x261)]=_0x178da0,this[_0x550177(0x232)]=_0x38e006,this[_0x550177(0x333)]=_0x198f01,this[_0x550177(0x476)](),this[_0x550177(0x3d2)]();}[_0x598a93(0x3d2)](){const _0x45e03f=_0x598a93,_0x3278c8=async _0x3194a1=>{const _0x30af93=_0x5340;(await this[_0x30af93(0x232)]['requireSession'](_0x3194a1))['event$'][_0x30af93(0x22c)](_0x34901b(_0x281c22=>_0x281c22['eventID']===_0x5e9e5f[_0x30af93(0x1cc)]),_0x156b4c(this[_0x30af93(0x1f5)]))['subscribe'](_0x39666e=>{const _0x55477a=_0x30af93,_0x4026c5=_0x39666e,{reason:_0x400771}=_0x4026c5[_0x55477a(0x249)];this[_0x55477a(0x120)][_0x55477a(0x175)](_0x369676)[_0x55477a(0x21e)]({'type':_0x19f1bd['Error'],'content':this[_0x55477a(0x333)]['t'](_0x55477a(0x1ac))+'('+_0x400771+')'}),this[_0x55477a(0x261)][_0x55477a(0x306)](new _0x1d1f35(_0x3194a1)['id'],!0x1),this[_0x55477a(0x232)]['closeSession'](_0x3194a1);});};_0x4c82f1(this['_univerInstanceService'][_0x45e03f(0x3a1)](_0x33d049[_0x45e03f(0x174)]),this[_0x45e03f(0x343)][_0x45e03f(0x3a1)](_0x33d049[_0x45e03f(0x17d)]))['pipe'](_0x4eca0b(_0x5b7487=>_0x5b7487[_0x45e03f(0x14c)]()),_0x34901b(_0x2c37b7=>!_0x52b31a(_0x2c37b7)),_0x156b4c(this['dispose$']))[_0x45e03f(0x19e)](_0x27111a=>{_0x3278c8(_0x27111a);});}[_0x598a93(0x476)](){const _0xacd82c=_0x598a93,_0x282886=async _0x44786d=>{const _0x29e46c=_0x5340;(await this['_collaborationSessionService'][_0x29e46c(0x486)](_0x44786d))[_0x29e46c(0x207)][_0x29e46c(0x22c)](_0x34901b(_0x1d2bf8=>_0x1d2bf8['eventID']===_0x5e9e5f[_0x29e46c(0x31f)]),_0x156b4c(this[_0x29e46c(0x1f5)]))[_0x29e46c(0x19e)](_0x5eb3e8=>{const _0x2491d1=_0x29e46c,_0x14ff7c=_0x5eb3e8,{objectId:_0x58036e}=_0x14ff7c[_0x2491d1(0x249)],_0x54ae7d=this[_0x2491d1(0x120)][_0x2491d1(0x175)](_0x59bf05);_0x58036e===_0x44786d?_0x54ae7d[_0x2491d1(0x275)](_0x44786d):_0x54ae7d['refreshPermission'](_0x44786d,_0x58036e);});};_0x4c82f1(this[_0xacd82c(0x343)][_0xacd82c(0x3a1)](_0x33d049[_0xacd82c(0x174)]),this[_0xacd82c(0x343)]['getTypeOfUnitAdded$'](_0x33d049['UNIVER_DOC']))['pipe'](_0x4eca0b(_0x45ba20=>_0x45ba20[_0xacd82c(0x14c)]()),_0x34901b(_0x44fc15=>!_0x52b31a(_0x44fc15)),_0x156b4c(this[_0xacd82c(0x1f5)]))[_0xacd82c(0x19e)](_0xe15450=>{_0x282886(_0xe15450);});}};et=Xo([Pe(0x0,_0x592774(_0x579617)),Pe(0x1,_0x191290),Pe(0x2,_0x28af49),Pe(0x3,_0x592774(ce)),Pe(0x4,_0x592774(_0x2af7ec))],et);var Jo=Object['defineProperty'],qo=Object[_0x598a93(0x1cb)],zo=(_0x5e42b2,_0x5c3995,_0x3ce440,_0x13a942)=>{const _0x53af2e=_0x598a93;for(var _0xf830ee=_0x13a942>0x1?void 0x0:_0x13a942?qo(_0x5c3995,_0x3ce440):_0x5c3995,_0x330c92=_0x5e42b2[_0x53af2e(0x45e)]-0x1,_0xb5305d;_0x330c92>=0x0;_0x330c92--)(_0xb5305d=_0x5e42b2[_0x330c92])&&(_0xf830ee=(_0x13a942?_0xb5305d(_0x5c3995,_0x3ce440,_0xf830ee):_0xb5305d(_0xf830ee))||_0xf830ee);return _0x13a942&&_0xf830ee&&Jo(_0x5c3995,_0x3ce440,_0xf830ee),_0xf830ee;},gs=(_0x19b6e4,_0xa80698)=>(_0x28eca3,_0x573bac)=>_0xa80698(_0x28eca3,_0x573bac,_0x19b6e4);let Nt=class{constructor(_0x2df433,_0x248133){const _0x2114fe=_0x598a93;this[_0x2114fe(0x2c2)]=_0x2df433,this[_0x2114fe(0x3f1)]=_0x248133;}async[_0x598a93(0x44e)](_0x24fab8,_0x12637d){const _0x168754=_0x598a93;var _0x26389c;const {unitID:_0x2b9bd8,type:_0x15d37b,revision:_0x4b796e=0x0}=_0x12637d,_0x1e707b=this[_0x168754(0x364)]()+'/'+_0x15d37b+_0x168754(0x213)+_0x2b9bd8+_0x168754(0x283)+_0x4b796e,_0x1ede9a=(await this[_0x168754(0x3f1)][_0x168754(0x175)](_0x1e707b))['body'],_0x51d720=(_0x26389c=_0x1ede9a['snapshot'])==null?void 0x0:_0x26389c['workbook'];if(_0x51d720){const _0x411991=_0x51d720==null?void 0x0:_0x51d720[_0x168754(0x25a)],_0x29c53c=_0x6f55a9['encode'](_0x20cdb8(_0x411991));_0x51d720[_0x168754(0x25a)]=_0x29c53c,Object['entries'](_0x51d720['sheets'])[_0x168754(0x264)](([,_0x442c7f])=>{const _0x2f1820=_0x168754,_0x44a1a7=_0x442c7f[_0x2f1820(0x25a)],_0x314228=_0x6f55a9[_0x2f1820(0x2e3)](_0x20cdb8(_0x44a1a7));_0x442c7f[_0x2f1820(0x25a)]=_0x314228;});}return _0x1ede9a;}async[_0x598a93(0x2fd)](_0x28931f,_0x1cd085){const _0x48e71a=_0x598a93,{unitID:_0x5b6151,type:_0xcc7bb6,blockID:_0x54c9da}=_0x1cd085,_0x290a7a=this[_0x48e71a(0x182)]()+'/'+_0xcc7bb6+_0x48e71a(0x213)+_0x5b6151+_0x48e71a(0x2ab)+_0x54c9da;return(await this['_httpService']['get'](_0x290a7a))[_0x48e71a(0x3a2)];}async['getDeserializedSheetBlock'](_0x2c8557,_0x4d1722){const _0x468441=_0x598a93,{unitID:_0x510591,type:_0x36a62f,blockID:_0x42f94a}=_0x4d1722,_0x29b604=this[_0x468441(0x182)]()+_0x468441(0x2ab)+_0x36a62f+_0x468441(0x213)+_0x510591+'/block/'+_0x42f94a;return(await this[_0x468441(0x3f1)][_0x468441(0x175)](_0x29b604))[_0x468441(0x3a2)];}async[_0x598a93(0x39a)](_0x511813,_0xbbb37e){const _0x1ebe78=_0x598a93,{unitID:_0x36433e,type:_0x3c84eb,from:_0x33e87c,to:_0x2d6791}=_0xbbb37e,_0x53bc05=this[_0x1ebe78(0x182)]()+'/'+_0x3c84eb+_0x1ebe78(0x213)+_0x36433e+_0x1ebe78(0x278)+_0x33e87c+'&to='+_0x2d6791;return(await this['_httpService'][_0x1ebe78(0x175)](_0x53bc05))['body'];}[_0x598a93(0x364)](){const _0x93e022=_0x598a93;var _0x11d040;return(_0x11d040=this[_0x93e022(0x2c2)]['getConfig'](mn))!=null?_0x11d040:this['_getAPIPrefix']();}[_0x598a93(0x182)](){const _0xb2e76b=_0x598a93;var _0x474d41,_0x5cde6d;const _0xd82eaa=this[_0xb2e76b(0x2c2)][_0xb2e76b(0x12d)](dn),_0x2a23a7=this[_0xb2e76b(0x2c2)][_0xb2e76b(0x12d)](L);return(_0x5cde6d=(_0x474d41=_0x2a23a7==null?void 0x0:_0x2a23a7[_0xb2e76b(0x468)])!=null?_0x474d41:_0xd82eaa)!=null?_0x5cde6d:fn;}async[_0x598a93(0x481)](_0x4482d8,_0x27f2fe){const _0x244ed0=_0x598a93,_0x3dfa9d='/universer-api/snapshot/'+_0x27f2fe['type']+_0x244ed0(0x213)+_0x27f2fe[_0x244ed0(0x3a6)]+_0x244ed0(0x3e9);return(await this[_0x244ed0(0x3f1)]['get'](_0x3dfa9d,{'params':{'resourceId':JSON[_0x244ed0(0x126)](_0x27f2fe[_0x244ed0(0x35b)])}}))[_0x244ed0(0x3a2)];}['saveSnapshot'](){const _0xa3c1b1=_0x598a93;throw new Error(_0xa3c1b1(0x337));}[_0x598a93(0x29b)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x395485=_0x598a93;throw new Error(_0x395485(0x337));}[_0x598a93(0x28e)](){const _0x2ce2cc=_0x598a93;throw new Error(_0x2ce2cc(0x337));}};Nt=zo([gs(0x0,_0x3fc6a0),gs(0x1,_0x592774(_0x4b4f20))],Nt);var Zo=Object[_0x598a93(0x171)],Qo=Object['getOwnPropertyDescriptor'],ea=(_0x929dcf,_0x3afa5b,_0x5e6653,_0x1e9e14)=>{const _0x53cd88=_0x598a93;for(var _0x11ec50=_0x1e9e14>0x1?void 0x0:_0x1e9e14?Qo(_0x3afa5b,_0x5e6653):_0x3afa5b,_0x3e0952=_0x929dcf[_0x53cd88(0x45e)]-0x1,_0x2823e1;_0x3e0952>=0x0;_0x3e0952--)(_0x2823e1=_0x929dcf[_0x3e0952])&&(_0x11ec50=(_0x1e9e14?_0x2823e1(_0x3afa5b,_0x5e6653,_0x11ec50):_0x2823e1(_0x11ec50))||_0x11ec50);return _0x1e9e14&&_0x11ec50&&Zo(_0x3afa5b,_0x5e6653,_0x11ec50),_0x11ec50;},ye=(_0x17f17a,_0x5a8889)=>(_0x56a2fe,_0xe4c374)=>_0x5a8889(_0x56a2fe,_0xe4c374,_0x17f17a);let Ut=class extends _0x397fe3{constructor(_0x232a05,_0x3bb7b3,_0x3f75c8,_0x4cc0e8,_0x1b0832){const _0x2a092b=_0x598a93;super(_0x232a05,_0x3bb7b3,_0x3f75c8),this['_transformService']=_0x4cc0e8,this[_0x2a092b(0x345)]=_0x1b0832;}['transformUndoRedo'](_0x1db808,_0x33ea91){const _0x712ded=_0x598a93,_0x4299c3=this[_0x712ded(0x2ca)](_0x1db808);if(_0x4299c3)try{const _0x2da043=this['_transformStack'](_0x4299c3,_0x33ea91);this[_0x712ded(0x1ea)](_0x1db808,_0x2da043);}catch(_0x401a59){this[_0x712ded(0x345)][_0x712ded(0x379)](_0x712ded(0x1ed),_0x401a59),this[_0x712ded(0x2e8)](_0x1db808);}const _0x3147f7=this[_0x712ded(0x3d4)](_0x1db808);if(_0x3147f7)try{const _0x5e591a=this[_0x712ded(0x1df)](_0x3147f7,_0x33ea91);this[_0x712ded(0x3df)](_0x1db808,_0x5e591a);}catch(_0x95968d){this[_0x712ded(0x345)][_0x712ded(0x379)](_0x95968d),this[_0x712ded(0x2c5)](_0x1db808);}}[_0x598a93(0x2e8)](_0x7caa34){const _0x33d51b=_0x598a93,_0xded9f5=this[_0x33d51b(0x2ca)](_0x7caa34);_0xded9f5&&(_0xded9f5['length']=0x0,this['_updateStatus']());}[_0x598a93(0x2c5)](_0xcb80c7){const _0x51eed8=_0x598a93,_0x46e268=this[_0x51eed8(0x3d4)](_0xcb80c7);_0x46e268&&(_0x46e268[_0x51eed8(0x45e)]=0x0,this[_0x51eed8(0x301)]());}[_0x598a93(0x1ea)](_0x57ffc0,_0xfcba76){const _0x40dedd=_0x598a93;this[_0x40dedd(0x31a)][_0x40dedd(0x314)](_0x57ffc0,_0xfcba76),this['_updateStatus']();}['_substituteRedoStack'](_0x40c20b,_0x3c2b4c){const _0x372a45=_0x598a93;this[_0x372a45(0x316)][_0x372a45(0x314)](_0x40c20b,_0x3c2b4c),this[_0x372a45(0x301)]();}[_0x598a93(0x1df)](_0x15fa4d,_0x1d162a){const _0x85457c=_0x598a93,_0x46466a=[];let _0x4804b9=_0x1d162a,_0x47f692=_0x1d162a;for(let _0x5e611a=_0x15fa4d[_0x85457c(0x45e)]-0x1;_0x5e611a>=0x0;_0x5e611a--){const {unitID:_0x43be11,undoMutations:_0x4e5bc5,redoMutations:_0x4fe2be}=_0x15fa4d[_0x5e611a],_0x2236f7=this[_0x85457c(0x1d1)][_0x85457c(0x3cc)](_0x4804b9,_0x4e5bc5),_0x10bda7=this[_0x85457c(0x1d1)][_0x85457c(0x3cc)](_0x47f692,_0x4fe2be);if(_0x53b98b(_0x2236f7)||_0x53b98b(_0x10bda7)){this['_logService'][_0x85457c(0x379)](_0x85457c(0x1ed),_0x85457c(0x14d),_0x2236f7,_0x10bda7);break;}_0x4804b9=_0x2236f7[_0x85457c(0x272)],_0x47f692=_0x10bda7[_0x85457c(0x272)],_0x46466a[_0x85457c(0x34e)]({'unitID':_0x43be11,'undoMutations':_0x2236f7[_0x85457c(0x13b)],'redoMutations':_0x10bda7['m2Prime']});}return _0x46466a[_0x85457c(0x256)]();}};Ut=ea([ye(0x0,_0x191290),ye(0x1,_0xbb225b),ye(0x2,_0x1f167d),ye(0x3,_0x4cfc78),ye(0x4,_0x1281de)],Ut);class ta extends _0x39a217{constructor(){const _0x460b13=_0x598a93;super(),l(this,_0x460b13(0x2a2)),this[_0x460b13(0x2a2)]=_0xa48ff6(window,_0x460b13(0x245))[_0x460b13(0x22c)](_0x5c2c79(this[_0x460b13(0x1f5)]),_0x55473f(0x1),_0x28c444(void 0x0));}[_0x598a93(0x46a)](_0x181a07,_0x5716ff,_0x51c37d=!0x1){const _0x176dfd=_0x598a93,_0xfc7dd1=new URL(window[_0x176dfd(0x2bd)][_0x176dfd(0x2bb)]);_0xfc7dd1[_0x176dfd(0x229)][_0x176dfd(0x314)](_0x181a07,_0x5716ff),_0x51c37d?window['history']['replaceState']('','',_0xfc7dd1[_0x176dfd(0x1fe)]()):window[_0x176dfd(0x235)]['pushState']('','',_0xfc7dd1[_0x176dfd(0x1fe)]());}[_0x598a93(0x340)](_0x51ef8e,_0x4c07d9=!0x1){const _0x2ed36e=_0x598a93,_0x5bea4d=new URL(window[_0x2ed36e(0x2bd)][_0x2ed36e(0x2bb)]);_0x5bea4d['searchParams']['delete'](_0x51ef8e),_0x4c07d9?window[_0x2ed36e(0x235)][_0x2ed36e(0x41a)]('','',_0x5bea4d[_0x2ed36e(0x1fe)]()):window[_0x2ed36e(0x235)][_0x2ed36e(0x33f)]('','',_0x5bea4d[_0x2ed36e(0x1fe)]());}[_0x598a93(0x258)](_0x2406f6){const _0x689e61=_0x598a93;var _0x20db3f;return(_0x20db3f=new URL(window[_0x689e61(0x2bd)]['href'])[_0x689e61(0x229)][_0x689e61(0x175)](_0x2406f6))!=null?_0x20db3f:void 0x0;}}var Gs=Object[_0x598a93(0x171)],sa=Object[_0x598a93(0x1cb)],ia=(_0xb65b1d,_0x4b6eba,_0x1216db)=>_0x4b6eba in _0xb65b1d?Gs(_0xb65b1d,_0x4b6eba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1216db}):_0xb65b1d[_0x4b6eba]=_0x1216db,na=(_0x25f31b,_0x39bce5,_0x232169,_0x46a1a5)=>{const _0x332e08=_0x598a93;for(var _0x1c4ad1=_0x46a1a5>0x1?void 0x0:_0x46a1a5?sa(_0x39bce5,_0x232169):_0x39bce5,_0x25c876=_0x25f31b[_0x332e08(0x45e)]-0x1,_0x4ae1fd;_0x25c876>=0x0;_0x25c876--)(_0x4ae1fd=_0x25f31b[_0x25c876])&&(_0x1c4ad1=(_0x46a1a5?_0x4ae1fd(_0x39bce5,_0x232169,_0x1c4ad1):_0x4ae1fd(_0x1c4ad1))||_0x1c4ad1);return _0x46a1a5&&_0x1c4ad1&&Gs(_0x39bce5,_0x232169,_0x1c4ad1),_0x1c4ad1;},ke=(_0x589854,_0x1aface)=>(_0x42ea88,_0x286984)=>_0x1aface(_0x42ea88,_0x286984,_0x589854),ra=(_0x2136e7,_0x401951,_0x1e90f1)=>ia(_0x2136e7,_0x401951+'',_0x1e90f1);const oa=_0x598a93(0x252);let Mt=class extends _0x17f00c{constructor(_0x783b70=yn,_0x142240,_0x5e17e6,_0x58ff3c,_0x19670c){const _0x55ecf6=_0x598a93;super(),this[_0x55ecf6(0x2de)]=_0x783b70,this['_logService']=_0x142240,this[_0x55ecf6(0x25f)]=_0x5e17e6,this[_0x55ecf6(0x120)]=_0x58ff3c,this[_0x55ecf6(0x2c2)]=_0x19670c;const {..._0x37b370}=this[_0x55ecf6(0x2de)];this['_configService']['setConfig'](L,_0x37b370);}['onStarting'](){const _0x243fac=_0x598a93;this[_0x243fac(0x20d)](),_0x4a1714(this['_injector'],[[pe],[qe],[et]]);}[_0x598a93(0x23e)](){const _0x228bbb=_0x598a93;_0x4a1714(this[_0x228bbb(0x120)],[[ze]]);}['onRendered'](){this['_registerRenderDependencies']();}[_0x598a93(0x20d)](){const _0x28a0a8=_0x598a93;var _0x5a24e9,_0x5c58a6,_0x34ca80,_0x3425af;this[_0x28a0a8(0x120)][_0x28a0a8(0x1af)](_0x3f0b63)&&this[_0x28a0a8(0x345)][_0x28a0a8(0x379)](_0x28a0a8(0x355),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2360ee=[[_0x3f0b63,{'useClass':Ut}],[ce],[Ft],[_0x4b4f20],[Ws,{'useClass':ta}],[ae],[D],[_0x2cafbe],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x5c58a6=(_0x5a24e9=this[_0x28a0a8(0x2de)])==null?void 0x0:_0x5a24e9[_0x28a0a8(0x250)])!=null?_0x5c58a6:Et}],[_0x4b4147,{'useClass':_0x1796a8}],[_0x33411f,{'useClass':Nt}],[_0x3072eb,{'useClass':Pt}],[_0x11fcdb,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x34ca80=this[_0x28a0a8(0x2de)])!=null&&_0x34ca80['enableSingleActiveInstanceLock']&&_0x2360ee[_0x28a0a8(0x34e)]([tt,{'useClass':rr}]),_0x2360ee=_0xc4cf65(_0x2360ee,(_0x3425af=this[_0x28a0a8(0x2de)])==null?void 0x0:_0x3425af[_0x28a0a8(0x188)]),_0x2360ee['forEach'](_0x71f527=>this[_0x28a0a8(0x120)][_0x28a0a8(0x187)](_0x71f527)),this[_0x28a0a8(0x2e6)]();}['_registerRenderDependencies'](){const _0x993c6b=_0x598a93;this[_0x993c6b(0x147)](this[_0x993c6b(0x25f)][_0x993c6b(0x3ce)](_0x33d049[_0x993c6b(0x17d)],[Dt])),this[_0x993c6b(0x147)](this['_renderManagerService'][_0x993c6b(0x3ce)](_0x33d049[_0x993c6b(0x174)],[wt]));}[_0x598a93(0x2e6)](){const _0x3a82ad=_0x598a93;var _0x3b2219,_0x139cb4;this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](_0x4b4f20)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x20176e({'maxParallel':0x6})}),this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](Qe),(_0x3b2219=this[_0x3a82ad(0x2de)])!=null&&_0x3b2219[_0x3a82ad(0x25b)]||this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](D)[_0x3a82ad(0x462)](),(_0x139cb4=this['_config'])!=null&&_0x139cb4[_0x3a82ad(0x444)]&&this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](Ze),this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](Ae),this[_0x3a82ad(0x120)][_0x3a82ad(0x1af)](Ue)&&this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](Ue);}};ra(Mt,'pluginName',oa),Mt=na([_0xe01fa7(_0x20c1b9),ke(0x1,_0x1281de),ke(0x2,_0x101da8),ke(0x3,_0x592774(_0x579617)),ke(0x4,_0x3fc6a0)],Mt);export{No as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Ws as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ta as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};
|
1
|
+
const _0x23cbae=_0x3f49;(function(_0x5a4fa6,_0xdb1ff5){const _0x2beeae=_0x3f49,_0x2102c5=_0x5a4fa6();while(!![]){try{const _0x296095=-parseInt(_0x2beeae(0x346))/0x1+parseInt(_0x2beeae(0xfd))/0x2+-parseInt(_0x2beeae(0x2d8))/0x3+-parseInt(_0x2beeae(0x384))/0x4*(-parseInt(_0x2beeae(0x129))/0x5)+parseInt(_0x2beeae(0x29d))/0x6+parseInt(_0x2beeae(0x210))/0x7*(-parseInt(_0x2beeae(0x381))/0x8)+parseInt(_0x2beeae(0x2c3))/0x9;if(_0x296095===_0xdb1ff5)break;else _0x2102c5['push'](_0x2102c5['shift']());}catch(_0x23a260){_0x2102c5['push'](_0x2102c5['shift']());}}}(_0x6cb7,0x90cae));var ti=Object[_0x23cbae(0xe2)],si=(_0x385d77,_0x3ae15e,_0x18fc79)=>_0x3ae15e in _0x385d77?ti(_0x385d77,_0x3ae15e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18fc79}):_0x385d77[_0x3ae15e]=_0x18fc79,l=(_0xabd534,_0xd2eed9,_0x190764)=>si(_0xabd534,typeof _0xd2eed9!=_0x23cbae(0x1d2)?_0xd2eed9+'':_0xd2eed9,_0x190764);import{createIdentifier as _0x1d1962,Inject as _0x57082d,Disposable as _0xbfc176,DisposableCollection as _0x1e2532,toDisposable as _0xad1b53,IConfigService as _0x465ebb,ILogService as _0x2ed9bc,UserManagerService as _0x235fd8,UniverInstanceType as _0x2eb231,IUniverInstanceService as _0xf0f4c1,LocaleService as _0x1ba649,Optional as _0x187eb8,RxDisposable as _0x3a262a,Injector as _0x5aca14,Tools as _0x2d9f70,ILocalStorageService as _0x16bea1,ICommandService as _0x2c218a,JSONX as _0x26e9d3,CommandType as _0x406a66,IPermissionService as _0x3b2db3,IUndoRedoService as _0x2b3c29,sequenceExecute as _0x3b5adf,debounce as _0x23acc5,Rectangle as _0x26d787,COLORS as _0x56bec4,ColorKit as _0xff1c14,ThemeService as _0xdd136e,fromEventSubject as _0x4a2855,useDependency as _0x32c0cd,connectInjector as _0x2fb98b,Workbook as _0x54fdc9,isInternalEditorID as _0x45fcbc,LocalUndoRedoService as _0x43badd,IContextService as _0x35bd8b,DependentOn as _0x375d34,Plugin as _0x23b29f,touchDependencies as _0xb5fd96,IAuthzIoService as _0x562510,mergeOverrideWithDependencies as _0x542d4d}from'@univerjs/core';import{Subject as _0x4061c1,merge as _0x395f71,takeUntil as _0x5b993c,BehaviorSubject as _0x169308,distinctUntilChanged as _0x95638f,fromEvent as _0x19a309,map as _0x29443,shareReplay as _0x153603,take as _0x333f84,of as _0x4a5add,debounceTime as _0x43ba67,filter as _0x2258ad,switchMap as _0x338777,combineLatest as _0x380b37,concatMap as _0x286f48,mapTo as _0x483d69}from'rxjs';import{map as _0x57b187,take as _0x3d181d,filter as _0x4eb371,delay as _0x3f8011,throttleTime as _0x437201,takeUntil as _0x5198ca,switchMap as _0x38d5ac}from'rxjs/operators';import{MessageType as _0x135398,Tooltip as _0x115533}from'@univerjs/design';import{IBeforeCloseService as _0x5d89d3,IMessageService as _0x2493e9,INotificationService as _0x5cf6e8,useObservable as _0x5a882d,BuiltInUIPart as _0x1cbaaf,IUIPartsService as _0x49417e}from'@univerjs/ui';import{HTTPService as _0x1b70f6,WebSocketService as _0x556be8,MergeInterceptorFactory as _0x5afcd5,HTTPRequest as _0x22675a,IHTTPImplementation as _0x58f9ac,XHRHTTPImplementation as _0x3fa144,ThresholdInterceptorFactory as _0xa20eb}from'@univerjs/network';import{CollaborationEvent as _0x44cf74,parseChangesetToProtocol as _0x10373e,ISnapshotServerService as _0x5f1087,isTransformMutationFailure as _0x426132,isTransformMutationsWithChangesetSuccess as _0x24c912,ITransformService as _0x3ce5fa,RevisionService as _0x2056a3,mapDocumentTypeToUniverType as _0x2f6b1e,isTransformChangesetsSuccess as _0xf2155e,CompressMutationService as _0xa37832,parseProtocolChangeset as _0x66b1e7,SnapshotService as _0x40068b,textEncoder as _0x510326,b64DecodeUnicode as _0x45b123,isTransformMutationsWithChangesetFailure as _0x4e72ac,UniverCollaborationPlugin as _0x6a4b44}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x33d583}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x3d5f40,DocStateChangeManagerService as _0x2e5857,NodePositionConvertToCursor as _0x57bfe0,isValidRectRange as _0x153d05,NodePositionConvertToRectRange as _0x37669e,TEXT_RANGE_LAYER_INDEX as _0x252f9e,SetDocZoomRatioOperation as _0x4a3846}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x34b058,SetSelectionsOperation as _0x58be78,InsertSheetMutation as _0xecee35,EmptyMutation as _0x37478b,WorkbookEditablePermission as _0x41b6ca,RefRangeService as _0x178c8d,EffectRefRangId as _0x100ffd,handleIRemoveRow as _0x575e9e,handleIRemoveCol as _0x33a15e,handleMoveRange as _0x4574e3,handleInsertRow as _0x24f654,handleInsertRangeMoveRight as _0x197b21,handleInsertRangeMoveDown as _0x378def,handleInsertCol as _0x525801,handleDeleteRangeMoveUp as _0xce5f80,handleDeleteRangeMoveLeft as _0x37de89,runRefRangeMutations as _0x368451,SetWorksheetActivateCommand as _0x40f95f}from'@univerjs/sheets';import{IRenderManagerService as _0x241377,Shape as _0xb8fdb8,Rect as _0x8fe6a0,getColor as _0x5d3027,RegularPolygon as _0xc7b37d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x106d8d,Vector2 as _0x36e9ae}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x5502c3,RichTextEditingMutation as _0x520c9a,SetTextSelectionsOperation as _0x212257,DocSkeletonManagerService as _0x152335}from'@univerjs/docs';import{ImageSourceType as _0xa7f0d8,ImageUploadStatusType as _0x497ab7,IImageIoService as _0x50ad99}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x177623,serializeRangeWithSheet as _0x10f780}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x5d067c,VIEWPORT_KEY as _0x407db2,getCoordByCell as _0x198821,getSheetObject as _0x4d0c7e,SheetPermissionInitController as _0x204f73}from'@univerjs/sheets-ui';import _0x5c5e4e,{forwardRef as _0x24db44,useRef as _0xa945c8,createElement as _0x39bd90,useCallback as _0x40a9ea}from'react';import{IRemoteInstanceService as _0x5e7b1c}from'@univerjs/rpc';import{getAttachHeader as _0xa572df}from'@univerjs-pro/license';const Sn=_0x23cbae(0x3c5),pn='/universer-api/snapshot',vn=_0x23cbae(0x22e),La='SEND_CHANGESET_TIMEOUT',In=0x7d0,En='COLLAB_WEB_SOCKET_URL',Cn=_0x23cbae(0x20d),bn='HEARTBEAT_INTERVAL',Tn=0x7530,Ls=_0x23cbae(0x3d9),$s=0x4e20,Rn=0x4e20,On=_0x23cbae(0x1b5),Dn=0x3,wn=_0x23cbae(0x2e2),Pn=0x3e8,yn=_0x23cbae(0x2ec),Un=_0x23cbae(0x25e),Nn=_0x23cbae(0x39e),Mn=_0x23cbae(0x3f4);var js=(_0x57b383=>(_0x57b383[_0x57b383[_0x23cbae(0x368)]=0x0]=_0x23cbae(0x368),_0x57b383[_0x57b383['OK']=0x1]='OK',_0x57b383[_0x57b383[_0x23cbae(0x1b4)]=0x2]=_0x23cbae(0x1b4),_0x57b383[_0x57b383[_0x23cbae(0x3b0)]=0x3]='PERMISSION_DENIED',_0x57b383[_0x57b383['NOT_FOUND']=0x4]=_0x23cbae(0x40c),_0x57b383[_0x57b383[_0x23cbae(0x2a7)]=0x5]='UNAUTHENTICATED',_0x57b383[_0x57b383[_0x23cbae(0x2b5)]=0x6]=_0x23cbae(0x2b5),_0x57b383[_0x57b383[_0x23cbae(0x110)]=0x7]=_0x23cbae(0x110),_0x57b383[_0x57b383[_0x23cbae(0x378)]=0x8]=_0x23cbae(0x378),_0x57b383[_0x57b383['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x57b383[_0x57b383[_0x23cbae(0x20b)]=0x1389]=_0x23cbae(0x20b),_0x57b383[_0x57b383[_0x23cbae(0x2da)]=0x1771]=_0x23cbae(0x2da),_0x57b383[_0x57b383[_0x23cbae(0x29a)]=0x1772]=_0x23cbae(0x29a),_0x57b383[_0x57b383['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x23cbae(0x333),_0x57b383[_0x57b383['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x57b383[_0x57b383['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x23cbae(0x41a),_0x57b383[_0x57b383[_0x23cbae(0x2c5)]=0x1b5b]=_0x23cbae(0x2c5),_0x57b383[_0x57b383[_0x23cbae(0x3f6)]=0x1b5c]=_0x23cbae(0x3f6),_0x57b383[_0x57b383[_0x23cbae(0x280)]=0x1b5d]=_0x23cbae(0x280),_0x57b383[_0x57b383[_0x23cbae(0x2ab)]=0x1f41]=_0x23cbae(0x2ab),_0x57b383[_0x57b383[_0x23cbae(0x211)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x57b383[_0x57b383[_0x23cbae(0x184)]=0x232a]=_0x23cbae(0x184),_0x57b383[_0x57b383[_0x23cbae(0x2dd)]=0x232b]=_0x23cbae(0x2dd),_0x57b383[_0x57b383[_0x23cbae(0x228)]=0x232c]=_0x23cbae(0x228),_0x57b383[_0x57b383[_0x23cbae(0x44e)]=0x232d]=_0x23cbae(0x44e),_0x57b383[_0x57b383[_0x23cbae(0x2a3)]=0x2711]=_0x23cbae(0x2a3),_0x57b383[_0x57b383[_0x23cbae(0x192)]=0x2712]=_0x23cbae(0x192),_0x57b383[_0x57b383[_0x23cbae(0x3d8)]=0x2713]=_0x23cbae(0x3d8),_0x57b383[_0x57b383[_0x23cbae(0xf8)]=0x2714]=_0x23cbae(0xf8),_0x57b383[_0x57b383[_0x23cbae(0x297)]=-0x1]='UNRECOGNIZED',_0x57b383))(js||{}),k=(_0x1a7af3=>(_0x1a7af3[_0x1a7af3[_0x23cbae(0x3a3)]=0x0]='UNIVER_UNKNOWN',_0x1a7af3[_0x1a7af3[_0x23cbae(0x12f)]=0x1]=_0x23cbae(0x12f),_0x1a7af3[_0x1a7af3[_0x23cbae(0x34d)]=0x2]=_0x23cbae(0x34d),_0x1a7af3[_0x1a7af3[_0x23cbae(0x2fe)]=0x3]='UNIVER_SLIDE',_0x1a7af3[_0x1a7af3['UNIVER_PROJECT']=0x4]=_0x23cbae(0x420),_0x1a7af3[_0x1a7af3[_0x23cbae(0x297)]=-0x1]=_0x23cbae(0x297),_0x1a7af3))(k||{}),I=(_0x12b1fb=>(_0x12b1fb[_0x12b1fb[_0x23cbae(0x1f0)]=0x0]=_0x23cbae(0x1f0),_0x12b1fb[_0x12b1fb[_0x23cbae(0x145)]=0x1]='HELLO',_0x12b1fb[_0x12b1fb['JOIN']=0x2]=_0x23cbae(0x2e0),_0x12b1fb[_0x12b1fb[_0x23cbae(0x12c)]=0x3]='LEAVE',_0x12b1fb[_0x12b1fb['INGEST']=0x4]=_0x23cbae(0x1a6),_0x12b1fb[_0x12b1fb['HEARTBEAT']=0x5]='HEARTBEAT',_0x12b1fb[_0x12b1fb[_0x23cbae(0x343)]=0x6]=_0x23cbae(0x343),_0x12b1fb[_0x12b1fb[_0x23cbae(0x297)]=-0x1]=_0x23cbae(0x297),_0x12b1fb))(I||{}),Vt=(_0x52528f=>(_0x52528f[_0x52528f['UNKNOWN_CODE']=0x0]=_0x23cbae(0x2a9),_0x52528f[_0x52528f['OK']=0x1]='OK',_0x52528f[_0x52528f['FAIL']=0x2]='FAIL',_0x52528f[_0x52528f[_0x23cbae(0x297)]=-0x1]='UNRECOGNIZED',_0x52528f))(Vt||{}),xs=(_0x2e85cd=>(_0x2e85cd[_0x2e85cd['Undefined']=0x0]='Undefined',_0x2e85cd[_0x2e85cd[_0x23cbae(0x269)]=0x1]=_0x23cbae(0x269),_0x2e85cd[_0x2e85cd['HttpExport']=0x2]=_0x23cbae(0x31d),_0x2e85cd[_0x2e85cd[_0x23cbae(0x1b1)]=0x3]=_0x23cbae(0x1b1),_0x2e85cd[_0x2e85cd[_0x23cbae(0x424)]=0x4]=_0x23cbae(0x424),_0x2e85cd[_0x2e85cd[_0x23cbae(0x297)]=-0x1]=_0x23cbae(0x297),_0x2e85cd))(xs||{});const $='collaboration-client.config',An={};function Ln(_0x53e99f){const _0x1e5e96=_0x23cbae;var _0x143b00,_0x34e587,_0x4f8bde,_0x455f29;const _0x6fe111=_0x53e99f[_0x1e5e96(0x32d)],_0x5c9dfe=JSON['parse'](_0x6fe111);switch(_0x5c9dfe[_0x1e5e96(0x162)]){case I[_0x1e5e96(0x26d)]:case I[_0x1e5e96(0x145)]:{const _0x50d5d1=_0x5c9dfe['infoRsp'];return{..._0x5c9dfe,'data':_0x50d5d1,'cmd':_0x5c9dfe['cmd']};}case I['JOIN']:{const _0xf31544=_0x5c9dfe[_0x1e5e96(0x354)];return{..._0x5c9dfe,'data':_0xf31544,'cmd':_0x5c9dfe['cmd']};}case I[_0x1e5e96(0x343)]:{const _0x310182=_0x5c9dfe['collaMsg'];switch(_0x310182[_0x1e5e96(0x3f0)]){case _0x44cf74[_0x1e5e96(0x247)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x143b00=_0x310182[_0x1e5e96(0x106)])==null?void 0x0:_0x143b00['cs']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x198)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x34e587=_0x310182[_0x1e5e96(0x25c)])==null?void 0x0:_0x34e587['cs']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x1d6)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x4f8bde=_0x310182[_0x1e5e96(0xee)])==null?void 0x0:_0x4f8bde['cs']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74['CHANGESET_REJ']:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x455f29=_0x310182[_0x1e5e96(0x1ac)])==null?void 0x0:_0x455f29['cs']},'cmd':_0x5c9dfe['cmd']};case _0x44cf74['UPDATE_CURSOR']:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182['updateCursorEvent']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x3ed)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x2ad)]},'cmd':_0x5c9dfe['cmd']};case _0x44cf74[_0x1e5e96(0x25a)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x1cd)]},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0xec)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x11d)]},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74['LIVESHARE_FETCH_OPERATIONS']:case _0x44cf74[_0x1e5e96(0x22d)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182['liveShareOperation']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x20f)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x11d)]},'cmd':_0x5c9dfe['cmd']};case _0x44cf74[_0x1e5e96(0x314)]:return{..._0x5c9dfe,'data':_0x310182,'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x335)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x144)]},'cmd':_0x5c9dfe['cmd']};case _0x44cf74[_0x1e5e96(0x436)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x2f3)]},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x34f)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182['shouldCloseConn']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};default:return _0x5c9dfe;}}default:return _0x5c9dfe;}}function $n(_0x296f0e){const _0x252d3d=_0x23cbae;switch(_0x296f0e['cmd']){case I[_0x252d3d(0x26d)]:case I[_0x252d3d(0x145)]:return JSON[_0x252d3d(0x18a)]({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e[_0x252d3d(0x150)]});case I[_0x252d3d(0x1a6)]:{let _0x3bc036;switch(_0x296f0e['data'][_0x252d3d(0x3f0)]){case _0x44cf74[_0x252d3d(0x1d4)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x1d4)],'updateCursorEvent':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x25a)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x25a)],'leaveEvent':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x3ed)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x3ed)],'joinEvent':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0xec)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0xec)],'liveShareNewHost':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x22d)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x22d)],'liveShareOperation':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x20f)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x20f)],'liveShareTerminate':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74['LIVESHARE_REQUEST_HOST']:{_0x3bc036={'eventID':_0x44cf74['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0xf2)]:{_0x3bc036={'eventID':_0x44cf74['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x3bc036={'eventID':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x3f0)]};}return JSON['stringify']({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e['routeKey'],'collaMsg':_0x3bc036});}case I['JOIN']:return JSON['stringify']({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e[_0x252d3d(0x150)],'joinReq':_0x296f0e['data']});case I[_0x252d3d(0x12c)]:return JSON[_0x252d3d(0x18a)]({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e[_0x252d3d(0x150)],'leaveReq':_0x296f0e[_0x252d3d(0x32d)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var jn=Object[_0x23cbae(0xe2)],xn=Object[_0x23cbae(0x36a)],Hn=(_0x351390,_0x315a1b,_0x2cf2b2,_0x4e82fa)=>{const _0x5b67c1=_0x23cbae;for(var _0x4b0c95=_0x4e82fa>0x1?void 0x0:_0x4e82fa?xn(_0x315a1b,_0x2cf2b2):_0x315a1b,_0x59dbc6=_0x351390[_0x5b67c1(0xed)]-0x1,_0x48357d;_0x59dbc6>=0x0;_0x59dbc6--)(_0x48357d=_0x351390[_0x59dbc6])&&(_0x4b0c95=(_0x4e82fa?_0x48357d(_0x315a1b,_0x2cf2b2,_0x4b0c95):_0x48357d(_0x4b0c95))||_0x4b0c95);return _0x4e82fa&&_0x4b0c95&&jn(_0x315a1b,_0x2cf2b2,_0x4b0c95),_0x4b0c95;},Oe=(_0x5b5a7c,_0x3f43cf)=>(_0x376475,_0x2798e3)=>_0x3f43cf(_0x376475,_0x2798e3,_0x5b5a7c);function _0x3f49(_0xc725f0,_0x17d7e1){const _0x6cb7a3=_0x6cb7();return _0x3f49=function(_0x3f492e,_0x40c0b9){_0x3f492e=_0x3f492e-0xd7;let _0x3bb850=_0x6cb7a3[_0x3f492e];return _0x3bb850;},_0x3f49(_0xc725f0,_0x17d7e1);}const Hs=_0x1d1962(_0x23cbae(0x2db));function kn(_0x3b007f,_0x328f7a,_0x27cdd0){const _0x21cad7=_0x23cbae;return _0x3b007f+'/'+_0x328f7a+_0x21cad7(0xdf)+_0x27cdd0+_0x21cad7(0x137);}let Ct=class extends _0xbfc176{constructor(_0x5c931d,_0x530762,_0x26140d,_0x2e1104,_0x24f393){const _0x3f69ee=_0x23cbae;super(),this[_0x3f69ee(0x450)]=_0x5c931d,this[_0x3f69ee(0x242)]=_0x530762,this['_configService']=_0x26140d,this[_0x3f69ee(0x135)]=_0x2e1104,this[_0x3f69ee(0x42c)]=_0x24f393;}[_0x23cbae(0x43a)](_0x20ba05){const _0x317442=_0x23cbae,_0x441e74=this['_ws'][_0x317442(0x43a)](_0x20ba05);if(!_0x441e74)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1abf29=new _0x1e2532(),_0x4c208c=new _0x4061c1();_0x1abf29[_0x317442(0x302)](_0x441e74[_0x317442(0x1e6)][_0x317442(0x334)](_0x587292=>_0x4c208c[_0x317442(0x131)](_0x587292))),_0x1abf29[_0x317442(0x302)](_0xad1b53(()=>_0x4c208c[_0x317442(0x173)]()));const _0x526f0d=new _0x4061c1();_0x1abf29[_0x317442(0x302)](_0x441e74[_0x317442(0x161)]['subscribe'](_0x6d7314=>_0x526f0d[_0x317442(0x131)](_0x6d7314))),_0x1abf29['add'](_0xad1b53(()=>_0x526f0d[_0x317442(0x173)]()));const _0x278124=new _0x4061c1();_0x1abf29[_0x317442(0x302)](_0x441e74[_0x317442(0x389)]['subscribe'](_0x473f4a=>{const _0x1521b5=_0x317442,_0x3d6088=Ln(_0x473f4a);_0x278124[_0x1521b5(0x131)](_0x3d6088);})),_0x1abf29[_0x317442(0x302)](_0xad1b53(()=>_0x278124[_0x317442(0x173)]()));let _0x38d43a;const _0x30e0ab=()=>{const _0x5565f5=_0x317442;_0x526f0d[_0x5565f5(0x131)](new Event(_0x5565f5(0x17c))),_0x4c208c['next'](new CloseEvent(_0x5565f5(0x17c))),_0x38d43a[_0x5565f5(0x2c2)]();};return _0x38d43a={'memberID':'','close$':_0x4c208c[_0x317442(0x341)](),'error$':_0x526f0d[_0x317442(0x341)](),'open$':_0x441e74[_0x317442(0x2a2)],'message$':_0x278124[_0x317442(0x341)](),'send':_0x4d1b30=>{const _0x290ed0=_0x317442;if(_0x4d1b30[_0x290ed0(0x162)]===I[_0x290ed0(0x1a6)]){if(_0x4d1b30['data'][_0x290ed0(0x3f0)]===_0x44cf74[_0x290ed0(0x1f2)]){this[_0x290ed0(0x3f9)](_0x38d43a,_0x4d1b30[_0x290ed0(0x32d)])[_0x290ed0(0x11c)](_0x29bf6e=>{const _0x55d3d9=_0x290ed0;this[_0x55d3d9(0x135)][_0x55d3d9(0x43f)](_0x29bf6e),_0x30e0ab();});return;}if(_0x4d1b30[_0x290ed0(0x32d)]['eventID']===_0x44cf74['FETCH_MISSING']){const _0x8c245f=_0x4d1b30[_0x290ed0(0x32d)];this[_0x290ed0(0x2e9)](_0x8c245f)[_0x290ed0(0x149)](_0x46f247=>{const _0x514ec0=_0x290ed0;_0x278124['next']({'cmd':I['RECV'],'code':Vt['OK'],'routeKey':_0x8c245f['data']['unitID'],'routeType':'','data':{'eventID':_0x44cf74[_0x514ec0(0x319)],'data':{'changesets':_0x46f247}}});})[_0x290ed0(0x11c)](_0x4192d5=>{const _0x1c2716=_0x290ed0;this[_0x1c2716(0x135)][_0x1c2716(0x43f)](_0x4192d5),_0x30e0ab();});return;}}_0x441e74[_0x290ed0(0x113)]($n(_0x4d1b30));},'close':()=>{const _0x1e8716=_0x317442;_0x441e74[_0x1e8716(0x2c2)](),_0x1abf29[_0x1e8716(0x35a)]();}},_0x38d43a;}async[_0x23cbae(0x3f9)](_0x48a63f,_0x3f5350){const _0x367a70=_0x23cbae;var _0x2fa297,_0x4387c0;const {unitType:_0x5847b7,unitID:_0xfd98c5,changeset:_0x40aa29}=_0x3f5350['data'],_0x3483fa={'unitID':_0xfd98c5,'memberID':_0x48a63f[_0x367a70(0x104)],'type':_0x5847b7,'changeset':_0x10373e(_0x40aa29)},_0x357170=this[_0x367a70(0x44c)][_0x367a70(0x266)](yn),_0x13e1c7=this[_0x367a70(0x44c)]['getConfig']($),_0x1a4c2c=kn((_0x4387c0=(_0x2fa297=_0x13e1c7==null?void 0x0:_0x13e1c7[_0x367a70(0x276)])!=null?_0x2fa297:_0x357170)!=null?_0x4387c0:Un,_0x5847b7,_0xfd98c5);try{await this['_http'][_0x367a70(0x1e5)](_0x1a4c2c,{'body':_0x3483fa});}catch(_0xefce4d){throw this[_0x367a70(0x135)][_0x367a70(0x43f)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0xefce4d;}}async['_fetchMissChangesets'](_0x23d561){const _0x59ceca=_0x23cbae,{unitID:_0x3b52d2,from:_0x34ce4b,to:_0x5f21c9,unitType:_0x20e76d}=_0x23d561['data'];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3b52d2,'type':_0x20e76d,'from':_0x34ce4b,'to':_0x5f21c9}))[_0x59ceca(0x439)];}};Ct=Hn([Oe(0x0,_0x57082d(_0x1b70f6)),Oe(0x1,_0x57082d(_0x556be8)),Oe(0x2,_0x465ebb),Oe(0x3,_0x2ed9bc),Oe(0x4,_0x5f1087)],Ct);const Bn=_0x23cbae(0x134);function Vn(_0x26e840){const _0x59d475=_0x23cbae;return JSON[_0x59d475(0x18a)](_0x26e840)[_0x59d475(0xed)];}class ks{constructor(){const _0x471703=_0x23cbae;l(this,_0x471703(0x23b),new _0x4061c1()),l(this,_0x471703(0x3e9),this[_0x471703(0x23b)][_0x471703(0x341)]());}[_0x23cbae(0x25b)](_0x1ef96d){const _0x58a21f=_0x23cbae;this[_0x58a21f(0x23b)][_0x58a21f(0x131)](_0x1ef96d);}}var Fn=Object[_0x23cbae(0xe2)],Wn=Object[_0x23cbae(0x36a)],Gn=(_0x38435e,_0x5e84eb,_0x4c8a9b,_0x10e795)=>{const _0x12e2ef=_0x23cbae;for(var _0x29c025=_0x10e795>0x1?void 0x0:_0x10e795?Wn(_0x5e84eb,_0x4c8a9b):_0x5e84eb,_0x1a797e=_0x38435e[_0x12e2ef(0xed)]-0x1,_0x2649fe;_0x1a797e>=0x0;_0x1a797e--)(_0x2649fe=_0x38435e[_0x1a797e])&&(_0x29c025=(_0x10e795?_0x2649fe(_0x5e84eb,_0x4c8a9b,_0x29c025):_0x2649fe(_0x29c025))||_0x29c025);return _0x10e795&&_0x29c025&&Fn(_0x5e84eb,_0x4c8a9b,_0x29c025),_0x29c025;},as=(_0x8242c5,_0x2faf8f)=>(_0x1f1fab,_0x2b0a53)=>_0x2faf8f(_0x1f1fab,_0x2b0a53,_0x8242c5);let ce=class extends _0xbfc176{constructor(_0x4b0bda,_0x392ce2){const _0x5286b1=_0x23cbae;super(),l(this,_0x5286b1(0x429),new Map()),(this[_0x5286b1(0x2ce)]=_0x4b0bda,this[_0x5286b1(0x416)]=_0x392ce2,this[_0x5286b1(0x165)](_0xad1b53(_0x395f71(this[_0x5286b1(0x2ce)][_0x5286b1(0x3fe)](_0x2eb231[_0x5286b1(0x34d)])[_0x5286b1(0x18c)](_0x57b187(_0x4072c6=>_0x4072c6[_0x5286b1(0x183)]())),this[_0x5286b1(0x2ce)][_0x5286b1(0x3fe)](_0x2eb231['UNIVER_DOC'])[_0x5286b1(0x18c)](_0x57b187(_0x4b61c3=>_0x4b61c3[_0x5286b1(0x183)]())),this[_0x5286b1(0x2ce)][_0x5286b1(0x3fe)](_0x2eb231[_0x5286b1(0x2fe)])[_0x5286b1(0x18c)](_0x57b187(_0x1d771b=>_0x1d771b[_0x5286b1(0x183)]())))['subscribe'](_0x186e16=>this[_0x5286b1(0x2ac)](_0x186e16)))));}[_0x23cbae(0x395)](_0x24a4db){const _0x4b30fd=_0x23cbae;this[_0x4b30fd(0x416)][_0x4b30fd(0x395)](_0x24a4db);}[_0x23cbae(0x177)](){const _0x4c0bd1=_0x23cbae;return this[_0x4c0bd1(0x416)][_0x4c0bd1(0x177)]();}[_0x23cbae(0x300)](_0x408d31,_0x22fcea){const _0xafecfb=_0x23cbae;let _0x41e686=this[_0xafecfb(0x429)][_0xafecfb(0x3fd)](_0x408d31);_0x41e686||(_0x41e686=new Yn(),this[_0xafecfb(0x429)]['set'](_0x408d31,_0x41e686)),_0x41e686['updateMember'](_0x22fcea);}[_0x23cbae(0x329)](_0x2072eb,_0x2b8688){const _0x36fe45=_0x23cbae,_0x165cc2=this[_0x36fe45(0x429)][_0x36fe45(0x3fd)](_0x2072eb);_0x165cc2&&_0x165cc2[_0x36fe45(0x329)](_0x2b8688);}[_0x23cbae(0x1f9)](_0x3a617e){const _0x5884d3=_0x23cbae;return this[_0x5884d3(0x429)][_0x5884d3(0x3fd)](_0x3a617e);}['getMember'](_0x3d0140,_0x5bc6b0){const _0x2744a8=_0x23cbae,_0x5f380c=this[_0x2744a8(0x429)][_0x2744a8(0x3fd)](_0x3d0140);if(_0x5f380c)return _0x5f380c['getMember'](_0x5bc6b0);}[_0x23cbae(0x2ac)](_0x52d2cb){const _0x5ddac4=_0x23cbae,_0x40332f=this[_0x5ddac4(0x429)]['get'](_0x52d2cb);_0x40332f&&(_0x40332f['dispose'](),this[_0x5ddac4(0x429)][_0x5ddac4(0x1a8)](_0x52d2cb));}[_0x23cbae(0x35a)](){const _0x2d9e9b=_0x23cbae;this[_0x2d9e9b(0x429)][_0x2d9e9b(0x273)](_0x16b9e1=>_0x16b9e1[_0x2d9e9b(0x35a)]()),this[_0x2d9e9b(0x429)][_0x2d9e9b(0x263)]();}};ce=Gn([as(0x0,_0xf0f4c1),as(0x1,_0x57082d(_0x235fd8))],ce);class Yn extends _0xbfc176{constructor(){const _0x1791b0=_0x23cbae;super(...arguments),l(this,_0x1791b0(0x3dd),new Map());}[_0x23cbae(0x35a)](){const _0x4544a6=_0x23cbae;this['_members'][_0x4544a6(0x263)]();}[_0x23cbae(0x300)](_0x3c622e){const _0x1b523c=_0x23cbae;this[_0x1b523c(0x3dd)][_0x1b523c(0x111)](_0x3c622e[_0x1b523c(0x104)],_0x3c622e);}[_0x23cbae(0x329)](_0x214db4){const _0x40051a=_0x23cbae;this[_0x40051a(0x3dd)][_0x40051a(0x1a8)](_0x214db4);}['getMember'](_0x4cf507){const _0x4b5687=_0x23cbae;return this['_members'][_0x4b5687(0x3fd)](_0x4cf507);}}var Kn=Object['defineProperty'],Xn=Object[_0x23cbae(0x36a)],qn=(_0x12af0e,_0x328dce,_0x46bf99,_0x367777)=>{const _0x4b7dbf=_0x23cbae;for(var _0x359be4=_0x367777>0x1?void 0x0:_0x367777?Xn(_0x328dce,_0x46bf99):_0x328dce,_0x860a69=_0x12af0e[_0x4b7dbf(0xed)]-0x1,_0x3b6c5c;_0x860a69>=0x0;_0x860a69--)(_0x3b6c5c=_0x12af0e[_0x860a69])&&(_0x359be4=(_0x367777?_0x3b6c5c(_0x328dce,_0x46bf99,_0x359be4):_0x3b6c5c(_0x359be4))||_0x359be4);return _0x367777&&_0x359be4&&Kn(_0x328dce,_0x46bf99,_0x359be4),_0x359be4;},J=(_0x27b6b7,_0x499c1a)=>(_0x41798c,_0x5cebad)=>_0x499c1a(_0x41798c,_0x5cebad,_0x27b6b7),Y=(_0x43f9b3=>(_0x43f9b3[_0x43f9b3['IDLE']=0x0]=_0x23cbae(0x271),_0x43f9b3[_0x43f9b3['JOINING']=0x1]='JOINING',_0x43f9b3[_0x43f9b3[_0x23cbae(0x1a9)]=0x2]='OFFLINE',_0x43f9b3[_0x43f9b3[_0x23cbae(0x12d)]=0x3]=_0x23cbae(0x12d),_0x43f9b3))(Y||{});let bt=class extends _0x3a262a{constructor(_0xf2829,_0x312e79,_0x5ab5a3,_0x480b77,_0x259515,_0x402a71,_0x655860,_0x5bbc4b,_0x344467,_0x385aa0){const _0x422c9b=_0x23cbae;super(),l(this,_0x422c9b(0x1be),new _0x169308(0x0)),l(this,_0x422c9b(0x18f),this['_sessionStatus$'][_0x422c9b(0x341)]()),l(this,'_event$',new _0x4061c1()),l(this,_0x422c9b(0x29c),this[_0x422c9b(0x310)][_0x422c9b(0x341)]()),l(this,'_socket'),l(this,_0x422c9b(0x1e2)),l(this,'_collaborationTimeoutTimer'),l(this,_0x422c9b(0x32a),!0x1),l(this,_0x422c9b(0x139),null),(this[_0x422c9b(0x38d)]=_0xf2829,this[_0x422c9b(0x135)]=_0x5ab5a3,this['_beforeCloseService']=_0x480b77,this['_messageService']=_0x259515,this[_0x422c9b(0x44c)]=_0x402a71,this[_0x422c9b(0x151)]=_0x655860,this['_memberService']=_0x5bbc4b,this[_0x422c9b(0x178)]=_0x344467,this['_telemetryService']=_0x385aa0,this[_0x422c9b(0x32a)]=!!this[_0x422c9b(0xf1)],_0x312e79[_0x422c9b(0x18c)](_0x5b993c(this[_0x422c9b(0x16f)]))[_0x422c9b(0x334)](_0x45021d=>{const _0x2f59fb=_0x422c9b;var _0xae1a85;typeof _0x45021d>'u'||(this['_socket']=_0x45021d,_0x45021d?(this[_0x2f59fb(0x3b6)](_0x45021d),this[_0x2f59fb(0x1e2)]=_0x45021d[_0x2f59fb(0x389)][_0x2f59fb(0x334)](_0x5d9bd9=>{const _0x3847eb=_0x2f59fb;_0x5d9bd9[_0x3847eb(0x150)]===this[_0x3847eb(0x38d)]&&this[_0x3847eb(0x2fb)](_0x5d9bd9);})):(this[_0x2f59fb(0x188)](),this[_0x2f59fb(0x1be)]['next'](0x2),(_0xae1a85=this['_socketMessageSubscription'])==null||_0xae1a85[_0x2f59fb(0x221)](),this[_0x2f59fb(0x1e2)]=null));}),this[_0x422c9b(0x165)](this[_0x422c9b(0x38b)][_0x422c9b(0x2c0)](()=>{const _0x479f2b=_0x422c9b;var _0x2da869;(_0x2da869=this[_0x479f2b(0x3b5)])==null||_0x2da869[_0x479f2b(0x113)]({'cmd':I[_0x479f2b(0x12c)],'data':{'roomID':this[_0x479f2b(0x38d)]}});})));}get['sessionStatus'](){const _0x3ef57e=_0x23cbae;return this[_0x3ef57e(0x1be)][_0x3ef57e(0x1d9)]();}['getMemberID'](){const _0x1e0f2e=_0x23cbae;var _0x125a3e,_0x7e9557;return(_0x7e9557=(_0x125a3e=this[_0x1e0f2e(0x3b5)])==null?void 0x0:_0x125a3e[_0x1e0f2e(0x104)])!=null?_0x7e9557:null;}[_0x23cbae(0x35a)](){const _0x1435b7=_0x23cbae;super[_0x1435b7(0x35a)](),this[_0x1435b7(0x16f)]['next'](),this[_0x1435b7(0x16f)][_0x1435b7(0x173)]();}['close'](){const _0x5b9e45=_0x23cbae;var _0x173614,_0x2958f7;this[_0x5b9e45(0x188)](),(_0x173614=this[_0x5b9e45(0x3b5)])==null||_0x173614[_0x5b9e45(0x113)]({'cmd':I[_0x5b9e45(0x12c)],'data':{'roomID':this[_0x5b9e45(0x38d)]}}),(_0x2958f7=this[_0x5b9e45(0x3b5)])==null||_0x2958f7[_0x5b9e45(0x2c2)](),this[_0x5b9e45(0x310)][_0x5b9e45(0x173)](),this[_0x5b9e45(0x1be)][_0x5b9e45(0x173)](),this[_0x5b9e45(0x35a)]();}[_0x23cbae(0x2fb)](_0x2265bf){const _0x9cbb20=_0x23cbae;_0x2265bf[_0x9cbb20(0x162)]===I[_0x9cbb20(0x2e0)]?this['_onJoinRoomEvent'](_0x2265bf):_0x2265bf[_0x9cbb20(0x162)]===I[_0x9cbb20(0x343)]&&this['_onRecvEvent'](_0x2265bf);}[_0x23cbae(0x3b6)](_0x201197){const _0x536a5b=_0x23cbae;this['_sessionStatus$']['next'](0x1),_0x201197[_0x536a5b(0x113)]({'cmd':I[_0x536a5b(0x2e0)],'routeKey':this[_0x536a5b(0x38d)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x2cd3db){const _0x41786c=_0x23cbae;var _0x3efa14;if(_0x2cd3db[_0x41786c(0x3f7)]===Vt[_0x41786c(0x21a)]){this[_0x41786c(0x3d5)][_0x41786c(0x2bb)]({'type':_0x135398[_0x41786c(0x153)],'content':this['_localeService']['t']('session.room-full')}),this['_sessionStatus$'][_0x41786c(0x131)](0x2);return;}this[_0x41786c(0x1be)]['next'](0x3);const _0x29d367=(_0x3efa14=_0x2cd3db[_0x41786c(0x32d)][_0x41786c(0x223)][this[_0x41786c(0x38d)]])==null?void 0x0:_0x3efa14[_0x41786c(0x34c)];_0x29d367&&_0x29d367[_0x41786c(0x273)](_0x365828=>this[_0x41786c(0x2f4)]['updateMember'](this[_0x41786c(0x38d)],_0x365828));}[_0x23cbae(0x112)](_0x71fac1){const _0x5ce073=_0x23cbae;try{const _0x37e309=_0x71fac1[_0x5ce073(0x32d)];switch(_0x37e309['eventID']){case _0x44cf74[_0x5ce073(0x3ed)]:this[_0x5ce073(0x136)](_0x37e309),this[_0x5ce073(0x310)][_0x5ce073(0x131)](_0x37e309);break;case _0x44cf74[_0x5ce073(0x25a)]:this[_0x5ce073(0x267)](_0x37e309),this[_0x5ce073(0x310)]['next'](_0x37e309);break;case _0x44cf74[_0x5ce073(0x198)]:this[_0x5ce073(0x2c4)](),this['_clearCollaborationTimeoutTimer'](),this[_0x5ce073(0x310)][_0x5ce073(0x131)](_0x37e309);break;case _0x44cf74[_0x5ce073(0x314)]:this['_logService'][_0x5ce073(0x43f)](_0x5ce073(0xe9)+JSON['stringify'](_0x37e309)),this[_0x5ce073(0x310)]['next'](_0x37e309);break;case _0x44cf74[_0x5ce073(0x335)]:this['_commentService']['onCommentUpdate'](_0x37e309['data']),this[_0x5ce073(0x310)]['next'](_0x37e309);break;default:this[_0x5ce073(0x310)][_0x5ce073(0x131)](_0x37e309);}}catch(_0x358196){this['_logService']['error'](_0x358196,_0x71fac1);}}[_0x23cbae(0x136)](_0x334eb3){const _0x21a878=_0x23cbae;this[_0x21a878(0x2f4)][_0x21a878(0x300)](this[_0x21a878(0x38d)],_0x334eb3[_0x21a878(0x32d)]);}[_0x23cbae(0x267)](_0x246ff2){const _0x4ef093=_0x23cbae;this['_memberService']['removeMember'](this[_0x4ef093(0x38d)],_0x246ff2[_0x4ef093(0x32d)][_0x4ef093(0x104)]);}async['send'](_0x5358cb,_0x524e14){const _0x4d8f86=_0x23cbae;if(this[_0x4d8f86(0x207)]!==0x3||!this[_0x4d8f86(0x3b5)])throw new Error(_0x4d8f86(0x41e));try{_0x5358cb[_0x4d8f86(0x3f0)]===_0x44cf74[_0x4d8f86(0x1f2)]&&(this[_0x4d8f86(0x3c8)](),this[_0x4d8f86(0x100)](_0x5358cb)),this[_0x4d8f86(0x3b5)][_0x4d8f86(0x113)]({'cmd':I['INGEST'],'routeKey':_0x524e14,'routeType':'','data':_0x5358cb});}catch(_0x1a63c4){this['_logService']['error'](_0x1a63c4);}}[_0x23cbae(0x3c8)](){const _0x434333=_0x23cbae;var _0x309931;this[_0x434333(0x25d)]=window['setTimeout'](()=>{const _0x128aa5=_0x434333;this[_0x128aa5(0x25d)]=null,this[_0x128aa5(0x3d5)][_0x128aa5(0x2bb)]({'type':_0x135398['Error'],'content':this[_0x128aa5(0x151)]['t'](_0x128aa5(0x342))});},(_0x309931=this[_0x434333(0x44c)]['getConfig'](Ls))!=null?_0x309931:$s);}[_0x23cbae(0x275)](){const _0x16d123=_0x23cbae;this[_0x16d123(0x25d)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x16d123(0x25d)]=null);}[_0x23cbae(0x100)](_0x589fb8){const _0x52ab2a=_0x23cbae;if(!this['_shouldReportTelemetry'])return;const {data:_0x4ecc2e}=_0x589fb8,{unitID:_0x236f16,changeset:_0x1a9f79}=_0x4ecc2e,{mutations:_0x410493,type:_0x22c70d}=_0x1a9f79;this[_0x52ab2a(0x139)]={'unitId':_0x236f16,'type':_0x22c70d,'startTime':performance[_0x52ab2a(0x3c1)](),'stopTime':0x0,'duration':0x0,'size':Vn(_0x410493)};}[_0x23cbae(0x2c4)](){const _0x49ea2b=_0x23cbae;if(this[_0x49ea2b(0x32a)]){if(!this['_telemetryInfo']){this[_0x49ea2b(0x135)][_0x49ea2b(0x43f)](_0x49ea2b(0x32c),_0x49ea2b(0x353));return;}this[_0x49ea2b(0x139)][_0x49ea2b(0x3e1)]=performance[_0x49ea2b(0x3c1)](),this['_telemetryInfo']['duration']=this['_telemetryInfo'][_0x49ea2b(0x3e1)]-this[_0x49ea2b(0x139)]['startTime'],this['_telemetryService'][_0x49ea2b(0xe1)](Bn,this[_0x49ea2b(0x139)]),this[_0x49ea2b(0x139)]=null;}}[_0x23cbae(0x188)](){this['_telemetryInfo']=null;}};bt=qn([J(0x2,_0x2ed9bc),J(0x3,_0x5d89d3),J(0x4,_0x2493e9),J(0x5,_0x465ebb),J(0x6,_0x57082d(_0x1ba649)),J(0x7,_0x57082d(ce)),J(0x8,_0x57082d(ks)),J(0x9,_0x187eb8(_0x33d583))],bt);var Jn=Object[_0x23cbae(0xe2)],zn=Object[_0x23cbae(0x36a)],Zn=(_0x273adf,_0x4c607e,_0x53dbbe,_0x26d019)=>{const _0x430d53=_0x23cbae;for(var _0x3aea99=_0x26d019>0x1?void 0x0:_0x26d019?zn(_0x4c607e,_0x53dbbe):_0x4c607e,_0x3512aa=_0x273adf[_0x430d53(0xed)]-0x1,_0x4ba73a;_0x3512aa>=0x0;_0x3512aa--)(_0x4ba73a=_0x273adf[_0x3512aa])&&(_0x3aea99=(_0x26d019?_0x4ba73a(_0x4c607e,_0x53dbbe,_0x3aea99):_0x4ba73a(_0x3aea99))||_0x3aea99);return _0x26d019&&_0x3aea99&&Jn(_0x4c607e,_0x53dbbe,_0x3aea99),_0x3aea99;},fe=(_0x473d23,_0x1e3ec9)=>(_0xd01fe6,_0x4cf3b6)=>_0x1e3ec9(_0xd01fe6,_0x4cf3b6,_0x473d23);let he=class extends _0xbfc176{constructor(_0xe7cc39,_0x16b900,_0x30c42c,_0x3a112e,_0x2447f9,_0x18206d){const _0x5d679d=_0x23cbae;super(),l(this,_0x5d679d(0x10c),new _0x169308(void 0x0)),l(this,_0x5d679d(0x2d3),this['_socket$']['asObservable']()),l(this,_0x5d679d(0x1ce),null),l(this,_0x5d679d(0x2f6),new Map()),l(this,_0x5d679d(0x290),new _0x169308(Y['IDLE'])),l(this,_0x5d679d(0x19d),this[_0x5d679d(0x290)]['asObservable']()),l(this,'_socketReady',!0x1),l(this,_0x5d679d(0x30c)),l(this,_0x5d679d(0x21e),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x5d679d(0x2b2)),(this[_0x5d679d(0x171)]=_0xe7cc39,this[_0x5d679d(0x151)]=_0x16b900,this[_0x5d679d(0x3d5)]=_0x30c42c,this[_0x5d679d(0x135)]=_0x3a112e,this[_0x5d679d(0x44c)]=_0x2447f9,this[_0x5d679d(0x418)]=_0x18206d,this['_initEventListeners']());}get[_0x23cbae(0x3b5)](){const _0x3e9887=_0x23cbae;return this[_0x3e9887(0x10c)][_0x3e9887(0x1d9)]();}[_0x23cbae(0x405)](){const _0x1279c2=_0x23cbae;this[_0x1279c2(0x10d)](),this[_0x1279c2(0x2b3)]();}['dispose'](){const _0xb7d7c3=_0x23cbae;super[_0xb7d7c3(0x35a)](),this[_0xb7d7c3(0x2f6)]['forEach'](_0x15b1f4=>_0x15b1f4[_0xb7d7c3(0x35a)]()),this[_0xb7d7c3(0x2f6)][_0xb7d7c3(0x263)](),this[_0xb7d7c3(0x290)]['complete']();}async[_0x23cbae(0x236)](_0x4cf45d){const _0x11606a=_0x23cbae;if(this[_0x11606a(0x2f6)][_0x11606a(0x15b)](_0x4cf45d))return this[_0x11606a(0x2f6)][_0x11606a(0x3fd)](_0x4cf45d);this['_tryEnsureSocket']();const _0x4e7e66=this['_injector'][_0x11606a(0x351)](bt,_0x4cf45d,this['_socket$'][_0x11606a(0x341)]());return this[_0x11606a(0x2f6)][_0x11606a(0x111)](_0x4cf45d,_0x4e7e66),_0x4e7e66;}[_0x23cbae(0xff)](_0x335cdd){const _0x107ce1=_0x23cbae;var _0x11e677;const _0xaa4455=this[_0x107ce1(0x2f6)][_0x107ce1(0x3fd)](_0x335cdd);_0xaa4455&&(this['_sessions'][_0x107ce1(0x1a8)](_0x335cdd),_0xaa4455['close']()),this[_0x107ce1(0x2f6)][_0x107ce1(0x11b)]||(_0x11e677=this[_0x107ce1(0x3b5)])==null||_0x11e677['close']();}['reconnect'](){const _0xb0d6a5=_0x23cbae;this[_0xb0d6a5(0x21e)]=0x0,this[_0xb0d6a5(0x30c)]!=null&&(clearTimeout(this[_0xb0d6a5(0x30c)]),this[_0xb0d6a5(0x30c)]=null),this[_0xb0d6a5(0x35e)]();}[_0x23cbae(0x39a)](){const _0x511a31=_0x23cbae;var _0x21c4d8,_0x425872;const _0x496ab5=this[_0x511a31(0x44c)]['getConfig'](En),_0x28e1aa=this['_configService'][_0x511a31(0x266)]($),_0x47fa85=(_0x425872=(_0x21c4d8=_0x28e1aa==null?void 0x0:_0x28e1aa[_0x511a31(0x44d)])!=null?_0x21c4d8:_0x496ab5)!=null?_0x425872:Cn,_0x1c98be=this[_0x511a31(0x418)][_0x511a31(0x43a)](_0x47fa85);return this['_candidateSocket']=_0x1c98be,_0x1c98be;}[_0x23cbae(0x445)](){const _0x1aa8be=_0x23cbae;var _0x43a911,_0x1acd88;try{const _0x55aa09=(_0x1acd88=(_0x43a911=this['_socket'])!=null?_0x43a911:this[_0x1aa8be(0x1ce)])!=null?_0x1acd88:this[_0x1aa8be(0x39a)]();if(_0x55aa09){const _0x4efd47=_0x55aa09[_0x1aa8be(0x113)];_0x55aa09[_0x1aa8be(0x113)]=_0x589b0f=>(this['_rescheduleHeartbeat'](),_0x4efd47['apply'](_0x55aa09,[_0x589b0f])),_0x55aa09[_0x1aa8be(0x389)][_0x1aa8be(0x334)](_0x563318=>this['_onMessage'](_0x55aa09,_0x563318)),_0x55aa09[_0x1aa8be(0x161)][_0x1aa8be(0x18c)](_0x3d181d(0x1))['subscribe'](_0x1fd647=>this['_logService'][_0x1aa8be(0x43f)]('[CollaborationSessionService]:\x20socket\x20error',_0x1fd647)),_0x55aa09['open$'][_0x1aa8be(0x18c)](_0x3d181d(0x1))[_0x1aa8be(0x334)](()=>{this['_onConnectionOpen'](_0x55aa09);}),_0x55aa09['close$'][_0x1aa8be(0x18c)](_0x3d181d(0x1))['subscribe'](_0x25ebf8=>{const _0x45faeb=_0x1aa8be;this[_0x45faeb(0x135)][_0x45faeb(0x448)]('[CollaborationSessionService]',_0x45faeb(0x116),_0x25ebf8),this['_onConnectionFailed']();});}}catch(_0x23c7b6){this['_logService'][_0x1aa8be(0x43f)](_0x23c7b6),this[_0x1aa8be(0x172)]();}}[_0x23cbae(0x407)](_0x62f67f){const _0x2f5ba8=_0x23cbae;this[_0x2f5ba8(0x135)][_0x2f5ba8(0x448)](_0x2f5ba8(0x403),_0x2f5ba8(0x132)),_0x62f67f[_0x2f5ba8(0x113)]({'cmd':I[_0x2f5ba8(0x145)]}),this[_0x2f5ba8(0x2df)]();}[_0x23cbae(0x10d)](){const _0x5dabea=_0x23cbae;window[_0x5dabea(0x277)]('offline',()=>this['_onOffline']());}[_0x23cbae(0x180)](){const _0x50feec=_0x23cbae;this[_0x50feec(0x1bd)]=!0x1,this[_0x50feec(0x1ce)]=null,this[_0x50feec(0x290)][_0x50feec(0x131)](Y['OFFLINE']),this['_socket$'][_0x50feec(0x131)](null),this[_0x50feec(0x22b)](),this[_0x50feec(0x32f)]();}[_0x23cbae(0x172)](){const _0x4e1b24=_0x23cbae;var _0x42997c;this[_0x4e1b24(0x180)](),this[_0x4e1b24(0x21e)]<((_0x42997c=this[_0x4e1b24(0x44c)]['getConfig'](On))!=null?_0x42997c:Dn)?(this['_messageService'][_0x4e1b24(0x2bb)]({'key':_0x4e1b24(0x432),'type':_0x135398[_0x4e1b24(0x153)],'content':this[_0x4e1b24(0x151)]['t'](_0x4e1b24(0x10a))}),this[_0x4e1b24(0x35e)]()):this['_messageService'][_0x4e1b24(0x2bb)]({'key':_0x4e1b24(0x432),'type':_0x135398[_0x4e1b24(0x33b)],'content':this['_localeService']['t'](_0x4e1b24(0x1c6))});}[_0x23cbae(0x2b3)](){const _0x732225=_0x23cbae,_0x58bd19=()=>{const _0x3c2655=_0x3f49;this[_0x3c2655(0x3b5)]||this[_0x3c2655(0x312)]();},_0xa70b9c=()=>{const _0x51276a=_0x3f49;this[_0x51276a(0x3b5)]||document[_0x51276a(0x39c)]===_0x51276a(0x3e4)||this[_0x51276a(0x312)]();};window[_0x732225(0x277)](_0x732225(0x240),_0x58bd19),document[_0x732225(0x277)](_0x732225(0x2aa),_0xa70b9c);}[_0x23cbae(0x35e)](){const _0x4d562b=_0x23cbae;var _0x5ee128;const _0x29dc62=this[_0x4d562b(0x21e)],_0x4caac4=this[_0x4d562b(0x44c)][_0x4d562b(0x266)]($),_0x451c31=_0x29dc62===0x0?0x0:((_0x5ee128=_0x4caac4==null?void 0x0:_0x4caac4[_0x4d562b(0x3c0)])!=null?_0x5ee128:Rn)*0x2**_0x29dc62;this[_0x4d562b(0x30c)]=window[_0x4d562b(0x2d6)](()=>{const _0x13c20d=_0x4d562b;clearTimeout(this[_0x13c20d(0x30c)]),this[_0x13c20d(0x30c)]=null,this['_tryEnsureSocket']();},_0x451c31),this[_0x4d562b(0x21e)]+=0x1;}[_0x23cbae(0x27c)](_0xc0b613,_0x48c0eb){const _0x59b316=_0x23cbae,{cmd:_0x17ec66}=_0x48c0eb;_0x17ec66===I[_0x59b316(0x145)]&&!this[_0x59b316(0x1bd)]&&(_0xc0b613['memberID']=_0x48c0eb['data']['memberID'],this[_0x59b316(0x10c)]['next'](_0xc0b613),this[_0x59b316(0x290)][_0x59b316(0x131)](Y[_0x59b316(0x12d)]),this[_0x59b316(0x1bd)]=!0x0,this[_0x59b316(0x1ce)]=null),_0x17ec66===I[_0x59b316(0x26d)]&&this[_0x59b316(0x22b)](),this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x5677f0=_0x23cbae;var _0x456276;this[_0x5677f0(0x32f)](),this[_0x5677f0(0x3da)]=window[_0x5677f0(0x2d6)](()=>this[_0x5677f0(0x394)](),(_0x456276=this[_0x5677f0(0x44c)][_0x5677f0(0x266)](bn))!=null?_0x456276:Tn);}[_0x23cbae(0x394)](){const _0x39831c=_0x23cbae;this[_0x39831c(0x3b5)]['send']({'cmd':I['HEARTBEAT']}),this[_0x39831c(0x37f)]();}[_0x23cbae(0x37f)](){const _0x28c9b4=_0x23cbae;var _0x1f3539;this[_0x28c9b4(0x2b2)]=window[_0x28c9b4(0x2d6)](()=>this[_0x28c9b4(0x172)](),(_0x1f3539=this['_configService']['getConfig'](Ls))!=null?_0x1f3539:$s);}['_clearHeartbeatTimer'](){this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x23cbae(0x22b)](){const _0x301709=_0x23cbae;this[_0x301709(0x2b2)]!=null&&(clearTimeout(this[_0x301709(0x2b2)]),this[_0x301709(0x2b2)]=null);}};he=Zn([fe(0x0,_0x57082d(_0x5aca14)),fe(0x1,_0x57082d(_0x1ba649)),fe(0x2,_0x2493e9),fe(0x3,_0x2ed9bc),fe(0x4,_0x465ebb),fe(0x5,Hs)],he);var b=[];for(var ct=0x0;ct<0x100;++ct)b[_0x23cbae(0x12e)]((ct+0x100)[_0x23cbae(0x414)](0x10)[_0x23cbae(0x11f)](0x1));function Qn(_0x56955d,_0x4a1600=0x0){return(b[_0x56955d[_0x4a1600+0x0]]+b[_0x56955d[_0x4a1600+0x1]]+b[_0x56955d[_0x4a1600+0x2]]+b[_0x56955d[_0x4a1600+0x3]]+'-'+b[_0x56955d[_0x4a1600+0x4]]+b[_0x56955d[_0x4a1600+0x5]]+'-'+b[_0x56955d[_0x4a1600+0x6]]+b[_0x56955d[_0x4a1600+0x7]]+'-'+b[_0x56955d[_0x4a1600+0x8]]+b[_0x56955d[_0x4a1600+0x9]]+'-'+b[_0x56955d[_0x4a1600+0xa]]+b[_0x56955d[_0x4a1600+0xb]]+b[_0x56955d[_0x4a1600+0xc]]+b[_0x56955d[_0x4a1600+0xd]]+b[_0x56955d[_0x4a1600+0xe]]+b[_0x56955d[_0x4a1600+0xf]])['toLowerCase']();}var He,er=new Uint8Array(0x10);function tr(){const _0x1d6ee1=_0x23cbae;if(!He&&(He=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x1d6ee1(0x2ba)][_0x1d6ee1(0x2d9)](crypto),!He))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return He(er);}var sr=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x23cbae(0x3c6)][_0x23cbae(0x2d9)](crypto);const cs={'randomUUID':sr};function ir(_0x49bae3,_0x1f77ef,_0x55e38f){const _0x27920e=_0x23cbae;if(cs['randomUUID']&&!_0x1f77ef&&!_0x49bae3)return cs[_0x27920e(0x3c6)]();_0x49bae3=_0x49bae3||{};var _0x4bdbb7=_0x49bae3['random']||(_0x49bae3[_0x27920e(0x1ae)]||tr)();return _0x4bdbb7[0x6]=_0x4bdbb7[0x6]&0xf|0x40,_0x4bdbb7[0x8]=_0x4bdbb7[0x8]&0x3f|0x80,Qn(_0x4bdbb7);}var nr=Object[_0x23cbae(0xe2)],rr=Object['getOwnPropertyDescriptor'],or=(_0x590e7f,_0x4b96e2,_0x28f680,_0x3d93d8)=>{const _0x23e26a=_0x23cbae;for(var _0x591dc1=_0x3d93d8>0x1?void 0x0:_0x3d93d8?rr(_0x4b96e2,_0x28f680):_0x4b96e2,_0x2dd4e2=_0x590e7f[_0x23e26a(0xed)]-0x1,_0x107624;_0x2dd4e2>=0x0;_0x2dd4e2--)(_0x107624=_0x590e7f[_0x2dd4e2])&&(_0x591dc1=(_0x3d93d8?_0x107624(_0x4b96e2,_0x28f680,_0x591dc1):_0x107624(_0x591dc1))||_0x591dc1);return _0x3d93d8&&_0x591dc1&&nr(_0x4b96e2,_0x28f680,_0x591dc1),_0x591dc1;},ht=(_0x56840d,_0x5a6bfc)=>(_0x570e3e,_0xa82a43)=>_0x5a6bfc(_0x570e3e,_0xa82a43,_0x56840d);let Ye=class{constructor(_0x46d5c5,_0x36e34a,_0x2ebf5e){const _0x298192=_0x23cbae;this[_0x298192(0x171)]=_0x46d5c5,this[_0x298192(0x2f5)]=_0x36e34a,this[_0x298192(0x2f0)]=_0x2ebf5e;}['transformIMECache'](_0x450268){const _0x5d8f59=_0x23cbae;this['_transformUndoRedoStack'](_0x450268),this[_0x5d8f59(0x42f)](_0x450268);}[_0x23cbae(0x241)](_0x5ea467){const _0x1de1da=_0x23cbae,{unitID:_0xa2bec6}=_0x5ea467,_0x41c124=this[_0x1de1da(0x2f0)][_0x1de1da(0x1a0)](_0xa2bec6)[_0x1de1da(0x28e)](_0x3d5f40),{redoCache:_0x443241}=_0x41c124[_0x1de1da(0x36f)]();if(_0x443241[_0x1de1da(0xed)]===0x0)return _0x5ea467;let _0xcc6bd2=_0x2d9f70[_0x1de1da(0x415)](_0x5ea467['mutations'][0x0]);for(let _0x29f399=0x0;_0x29f399<_0x443241[_0x1de1da(0xed)];_0x29f399++){const _0x2e17cd={'id':_0x1de1da(0x200),'params':{..._0x443241[_0x29f399]}},_0x36f356=this[_0x1de1da(0x2f5)][_0x1de1da(0x2bf)](_0xcc6bd2,_0x2e17cd,!0x1);if(_0x426132(_0x36f356))throw _0x36f356[_0x1de1da(0x43f)];_0xcc6bd2=_0x36f356[_0x1de1da(0x3e8)];}return{..._0x2d9f70[_0x1de1da(0x415)](_0x5ea467),'mutations':[_0xcc6bd2]};}[_0x23cbae(0xef)](_0x1e3a7a){const _0x4f9822=_0x23cbae,{unitID:_0x4c0b1e}=_0x1e3a7a,_0x1eb9b1=this[_0x4f9822(0x2f0)][_0x4f9822(0x1a0)](_0x4c0b1e)[_0x4f9822(0x28e)](_0x3d5f40),{undoCache:_0x3ca9bd,redoCache:_0x57b2e2}=_0x1eb9b1[_0x4f9822(0x36f)]();if(_0x3ca9bd[_0x4f9822(0xed)]===0x0||_0x57b2e2[_0x4f9822(0xed)]===0x0)return;const _0x1e7aab=[],_0x23f009=[];let _0xdd8fff=_0x2d9f70[_0x4f9822(0x415)](_0x1e3a7a[_0x4f9822(0x2e4)][0x0]),_0x1f6808=_0x2d9f70[_0x4f9822(0x415)](_0x1e3a7a[_0x4f9822(0x2e4)][0x0]);for(let _0x2f6c51=_0x3ca9bd[_0x4f9822(0xed)]-0x1;_0x2f6c51>=0x0;_0x2f6c51--){const _0x45f902={'id':_0x4f9822(0x200),'params':{..._0x3ca9bd[_0x2f6c51]}},_0x7344eb={'id':_0x4f9822(0x200),'params':{..._0x57b2e2[_0x2f6c51]}},_0x57f1e6=this[_0x4f9822(0x2f5)][_0x4f9822(0x2bf)](_0xdd8fff,_0x45f902,!0x1),_0x34390c=this['_transformService'][_0x4f9822(0x2bf)](_0x1f6808,_0x7344eb,!0x1);if(_0x426132(_0x57f1e6))throw _0x57f1e6[_0x4f9822(0x43f)];if(_0x426132(_0x34390c))throw _0x34390c[_0x4f9822(0x43f)];_0x1e7aab[_0x4f9822(0x154)](_0x57f1e6['m2Prime'][_0x4f9822(0x1e4)]),_0x23f009[_0x4f9822(0x154)](_0x34390c[_0x4f9822(0x1b0)][_0x4f9822(0x1e4)]),_0xdd8fff=_0x57f1e6[_0x4f9822(0x3e8)],_0x1f6808=_0x34390c[_0x4f9822(0x3e8)];}_0x1eb9b1['setUndoRedoMutationParamsCache']({'undoCache':_0x1e7aab,'redoCache':_0x23f009});}['_transformPreviousActiveRange'](_0x431ee8){const _0x625846=_0x23cbae,{unitID:_0x383ace}=_0x431ee8,_0x59af29=this['_renderManagerService'][_0x625846(0x1a0)](_0x383ace)[_0x625846(0x28e)](_0x3d5f40),_0x4aebf5=_0x59af29[_0x625846(0x17a)]();if(_0x4aebf5==null)return;const _0x59678b=[{'id':_0x625846(0x200),'params':{'unitId':_0x431ee8[_0x625846(0x1a5)],'actions':null,'textRanges':[_0x4aebf5]}}],_0x560996=this[_0x625846(0x2f5)][_0x625846(0x3cc)](_0x431ee8,_0x59678b);if(!_0x24c912(_0x560996))throw _0x560996[_0x625846(0x43f)];const _0x3588b7=_0x560996[_0x625846(0x1b0)][0x0][_0x625846(0x1e4)][_0x625846(0x1f8)];Array[_0x625846(0x218)](_0x3588b7)&&_0x3588b7['length']&&_0x59af29['setActiveRange'](_0x3588b7[0x0]);}};Ye=or([ht(0x0,_0x57082d(_0x5aca14)),ht(0x1,_0x3ce5fa),ht(0x2,_0x241377)],Ye);var ar=Object[_0x23cbae(0xe2)],cr=Object[_0x23cbae(0x36a)],hr=(_0x2191d6,_0x54cd70,_0xebecaf,_0x1ffc55)=>{const _0x28e9c7=_0x23cbae;for(var _0x7825b7=_0x1ffc55>0x1?void 0x0:_0x1ffc55?cr(_0x54cd70,_0xebecaf):_0x54cd70,_0x2b12d4=_0x2191d6[_0x28e9c7(0xed)]-0x1,_0x2b5d5b;_0x2b12d4>=0x0;_0x2b12d4--)(_0x2b5d5b=_0x2191d6[_0x2b12d4])&&(_0x7825b7=(_0x1ffc55?_0x2b5d5b(_0x54cd70,_0xebecaf,_0x7825b7):_0x2b5d5b(_0x7825b7))||_0x7825b7);return _0x1ffc55&&_0x7825b7&&ar(_0x54cd70,_0xebecaf,_0x7825b7),_0x7825b7;},De=(_0x4ec95f,_0x182859)=>(_0x41fca5,_0x2f96f5)=>_0x182859(_0x41fca5,_0x2f96f5,_0x4ec95f);let w=class extends _0xbfc176{constructor(_0x2c4a5b,_0xf411,_0x164009,_0x147a95,_0x4be23f){const _0x89f5e0=_0x23cbae;super(),l(this,_0x89f5e0(0x2de),new Map()),l(this,_0x89f5e0(0x254),new Map()),l(this,_0x89f5e0(0x298),!0x1),(this[_0x89f5e0(0x44c)]=_0x2c4a5b,this[_0x89f5e0(0x212)]=_0xf411,this[_0x89f5e0(0x38b)]=_0x164009,this[_0x89f5e0(0x151)]=_0x147a95,this[_0x89f5e0(0x28a)]=_0x4be23f,this[_0x89f5e0(0x32e)]());}[_0x23cbae(0x2f9)](){const _0xc43d5f=_0x23cbae;this[_0xc43d5f(0x298)]=!0x0;}[_0x23cbae(0x446)](){this['_disabled']=!0x1;}[_0x23cbae(0x35a)](){const _0x3e181f=_0x23cbae;this[_0x3e181f(0x2b0)]()['then'](()=>super['dispose']());}async[_0x23cbae(0x2b7)](_0x50a6ab){const _0x11c966=_0x23cbae;return this[_0x11c966(0x298)]?null:this[_0x11c966(0x212)][_0x11c966(0x170)](hs(_0x50a6ab));}async[_0x23cbae(0x2d1)](_0x1c4a06,_0x1c56b3){const _0x2f09d7=_0x23cbae;return!!this[_0x2f09d7(0x212)][_0x2f09d7(0x30b)](_0x1c4a06,_0x1c56b3);}[_0x23cbae(0xe0)](_0x3a4d01,_0x557d72,_0x53e3bf,_0x43bbf4){const _0x3ff6a9=_0x23cbae,_0x5e1e1f=this['_revisionService'][_0x3ff6a9(0x305)](_0x3a4d01);this[_0x3ff6a9(0x2de)]['set'](_0x3a4d01,{'unitID':_0x3a4d01,'type':_0x557d72,'awaitingChangeset':_0x53e3bf,'mutations':_0x43bbf4,'rev':_0x5e1e1f}),this[_0x3ff6a9(0x254)][_0x3ff6a9(0x15b)](_0x3a4d01)||this[_0x3ff6a9(0x360)](_0x3a4d01);}['_scheduleSaving'](_0x2f9c64){const _0xfe3d90=_0x23cbae,_0x1e705e=this[_0xfe3d90(0x1a4)]();_0x1e705e===0x0?this[_0xfe3d90(0x187)](_0x2f9c64):this[_0xfe3d90(0x254)][_0xfe3d90(0x111)](_0x2f9c64,setTimeout(()=>this['_saveCache'](_0x2f9c64),_0x1e705e));}['_getSaveTimeout'](){var _0x505c94;return(_0x505c94=this['_configService']['getConfig'](wn))!=null?_0x505c94:Pn;}[_0x23cbae(0x187)](_0x579cd8){const _0x1254f5=_0x23cbae,_0x43d79e=this['_saveTaskMap'][_0x1254f5(0x3fd)](_0x579cd8);return _0x43d79e!==void 0x0&&window['clearTimeout'](_0x43d79e),this[_0x1254f5(0x212)][_0x1254f5(0x30b)](hs(_0x579cd8),this[_0x1254f5(0x2de)][_0x1254f5(0x3fd)](_0x579cd8))[_0x1254f5(0x149)](()=>this[_0x1254f5(0x254)][_0x1254f5(0x1a8)](_0x579cd8));}async[_0x23cbae(0x2b0)](){const _0x168cdb=_0x23cbae,_0x2c2ad6=[];this[_0x168cdb(0x254)][_0x168cdb(0x273)]((_0x58c27d,_0x23802c)=>{const _0x584b0a=_0x168cdb;window[_0x584b0a(0x43d)](_0x58c27d),_0x2c2ad6[_0x584b0a(0x12e)](this['_saveCache'](_0x23802c)[_0x584b0a(0x149)](()=>{this['_saveTaskMap']['delete'](_0x23802c);}));}),await Promise[_0x168cdb(0x3d1)](_0x2c2ad6);}[_0x23cbae(0x32e)](){const _0x254144=_0x23cbae;this[_0x254144(0x165)](this[_0x254144(0x38b)][_0x254144(0x38e)](()=>{const _0x46c97b=_0x254144;if(this[_0x46c97b(0x254)][_0x46c97b(0x11b)])return this['_localeService']['t'](_0x46c97b(0x158));}));}};w=hr([De(0x0,_0x465ebb),De(0x1,_0x16bea1),De(0x2,_0x5d89d3),De(0x3,_0x57082d(_0x1ba649)),De(0x4,_0x57082d(_0x2056a3))],w);function hs(_0xb9379c){return'unit-cache-'+_0xb9379c;}var lr=Object[_0x23cbae(0xe2)],_r=Object[_0x23cbae(0x36a)],ur=(_0x4fca7e,_0x23a730,_0x2a2889,_0x476158)=>{for(var _0x1441f8=_0x476158>0x1?void 0x0:_0x476158?_r(_0x23a730,_0x2a2889):_0x23a730,_0x4e8acd=_0x4fca7e['length']-0x1,_0x27bf01;_0x4e8acd>=0x0;_0x4e8acd--)(_0x27bf01=_0x4fca7e[_0x4e8acd])&&(_0x1441f8=(_0x476158?_0x27bf01(_0x23a730,_0x2a2889,_0x1441f8):_0x27bf01(_0x1441f8))||_0x1441f8);return _0x476158&&_0x1441f8&&lr(_0x23a730,_0x2a2889,_0x1441f8),_0x1441f8;},lt=(_0x38aa12,_0x123dc4)=>(_0x32fc23,_0x4447cd)=>_0x123dc4(_0x32fc23,_0x4447cd,_0x38aa12);function dr(_0x1369c5){const _0x5bd657=_0x23cbae,{unitID:_0x95cb66,mutations:_0x326313}=_0x1369c5;return{'unitId':_0x95cb66,'subUnitId':_0x326313[0x0]['params'][_0x5bd657(0x1ee)]};}let Ke=class{constructor(_0x2cb60f,_0x1fdc0a,_0x9044ca){const _0x1c69fd=_0x23cbae;this[_0x1c69fd(0x171)]=_0x2cb60f,this['_transformService']=_0x1fdc0a,this[_0x1c69fd(0x2a8)]=_0x9044ca;}['transformSelections'](_0x47fce4){const _0xc906c2=_0x23cbae;var _0x2b0dc2,_0x4e29d5,_0x2c2655,_0x545211;const _0x514cfe=this[_0xc906c2(0x171)][_0xc906c2(0x3fd)](_0x34b058),{unitId:_0x27eedf,subUnitId:_0x237bfe}=dr(_0x47fce4),_0x4ae163=_0x514cfe['getWorkbookSelections'](_0x27eedf)['getCurrentSelections'](),_0x46eb65=(_0x4e29d5=(_0x2b0dc2=this['_instanceService']['getUnit'](_0x27eedf))==null?void 0x0:_0x2b0dc2[_0xc906c2(0x3f1)]())==null?void 0x0:_0x4e29d5['getSheetId']();if(_0x4ae163[_0xc906c2(0xed)]===0x0||!_0x27eedf||!_0x237bfe)return;const _0x963367=[{'id':_0x58be78['id'],'params':{'unitId':_0x27eedf,'subUnitId':_0x46eb65,'selections':_0x2d9f70['deepClone'](_0x4ae163)}}],_0x20f263=this[_0xc906c2(0x2f5)]['transformMutationsWithChangeset'](_0x47fce4,_0x963367);if(!_0x24c912(_0x20f263))throw _0x20f263['error'];const _0x2b1204=(_0x545211=(_0x2c2655=_0x20f263[_0xc906c2(0x1b0)][0x0])==null?void 0x0:_0x2c2655[_0xc906c2(0x1e4)])==null?void 0x0:_0x545211[_0xc906c2(0x376)];Array[_0xc906c2(0x218)](_0x2b1204)&&_0x2b1204['length']&&this['_injector']['get'](_0x2c218a)[_0xc906c2(0x1ad)](_0x58be78['id'],{'unitId':_0x27eedf,'subUnitId':_0x46eb65,'selections':_0x2b1204});}};Ke=ur([lt(0x0,_0x57082d(_0x5aca14)),lt(0x1,_0x3ce5fa),lt(0x2,_0xf0f4c1)],Ke);const tt=_0x1d1962('univer-pro.collaboration-client.single-active-unit-service');var Bs=(_0x4b20fc=>(_0x4b20fc[_0x4b20fc[_0x23cbae(0x22a)]=0x0]=_0x23cbae(0x22a),_0x4b20fc[_0x4b20fc['OTHER_CLIENTS_EDITING']=0x1]=_0x23cbae(0x2ae),_0x4b20fc))(Bs||{});const ls=0x7530,_s=_0x23cbae(0x1a3);class fr extends _0xbfc176{constructor(){const _0x375edd=_0x23cbae;super(),l(this,_0x375edd(0x408),_0x2d9f70[_0x375edd(0x259)]()),l(this,_0x375edd(0x237),new Set()),l(this,_0x375edd(0x388),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x375edd(0x370),new Map()),l(this,_0x375edd(0x2d0),new Map()),this[_0x375edd(0x383)]();}['dispose'](){const _0x281321=_0x23cbae;super[_0x281321(0x35a)](),this[_0x281321(0x370)][_0x281321(0x273)]((_0x38618b,_0x123641)=>this[_0x281321(0x3ec)](_0x123641)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x281321(0x2e3)]);}['getUnitStatus$'](_0x55bcc9){return this['_ensureSubject'](_0x55bcc9)['pipe'](_0x95638f());}[_0x23cbae(0x169)](_0x701245){const _0x295e73=_0x23cbae;this['_selfUnitIDs']['size']===0x0&&this[_0x295e73(0xf3)](),this[_0x295e73(0x237)][_0x295e73(0x302)](_0x701245),this[_0x295e73(0x350)]({'type':0x0,'memberID':this[_0x295e73(0x408)],'unitIDs':[_0x701245],'isForwarded':!0x1});}[_0x23cbae(0x103)](_0xf19752){const _0x581071=_0x23cbae;this[_0x581071(0x237)][_0x581071(0x1a8)](_0xf19752),this[_0x581071(0x237)]['size']===0x0&&this[_0x581071(0x2e3)]&&window[_0x581071(0x124)](this[_0x581071(0x2e3)]);}[_0x23cbae(0x383)](){const _0x227258=_0x23cbae;this[_0x227258(0x165)](_0xad1b53(_0x19a309(window,_0x227258(0x2fc))[_0x227258(0x334)](_0x5eb452=>{const _0xec8416=_0x227258;if(_0x5eb452[_0xec8416(0x1f4)]!==_s||!_0x5eb452[_0xec8416(0x208)])return;const _0x2efc93=JSON[_0xec8416(0x3ea)](_0x5eb452[_0xec8416(0x208)]);this[_0xec8416(0x43c)](_0x2efc93);}))),window[_0x227258(0x277)](_0x227258(0x1e1),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x227258(0x316)](this[_0x227258(0x237)])}));}[_0x23cbae(0x43c)](_0x4c74e2){const _0x53e81f=_0x23cbae;switch(_0x4c74e2[_0x53e81f(0x2f1)]){case 0x0:this[_0x53e81f(0x214)](_0x4c74e2);break;case 0x1:this[_0x53e81f(0x225)](_0x4c74e2);break;case 0x2:this[_0x53e81f(0x1cf)](_0x4c74e2);break;}}[_0x23cbae(0x214)](_0x21cefc){const _0x218059=_0x23cbae,{unitIDs:_0x3b50ea,memberID:_0x4bfe1f,isForwarded:_0x32b762}=_0x21cefc;_0x3b50ea[_0x218059(0x273)](_0x165520=>{const _0x374d1f=_0x218059;if(!_0x32b762&&this['_unitOnClients']['has'](_0x165520)&&this[_0x374d1f(0x27e)](_0x165520)[_0x374d1f(0x131)](0x1),!this[_0x374d1f(0x388)][_0x374d1f(0x15b)](_0x165520)||!this[_0x374d1f(0x388)][_0x374d1f(0x3fd)](_0x165520)[_0x374d1f(0x15b)](_0x4bfe1f)){const _0x90754=this[_0x374d1f(0x388)][_0x374d1f(0x3fd)](_0x165520)||new Set();_0x90754['add'](_0x4bfe1f),this[_0x374d1f(0x388)][_0x374d1f(0x111)](_0x165520,_0x90754),this['_scheduleClearOtherTimer'](_0x4bfe1f);}}),_0x32b762||this[_0x218059(0x350)]({'type':0x0,'memberID':this[_0x218059(0x408)],'unitIDs':[...this[_0x218059(0x237)]],'isForwarded':!0x0});}[_0x23cbae(0x25f)](_0x3872ba){const _0x3a69fd=_0x23cbae;this[_0x3a69fd(0x3ec)](_0x3872ba);const _0x1d4b95=window['setTimeout'](()=>{const _0x4a97c3=_0x3a69fd;this['_unitOnClients'][_0x4a97c3(0x273)](_0x7d0e43=>{_0x7d0e43['delete'](_0x3872ba);});},ls*0x2);this[_0x3a69fd(0x370)][_0x3a69fd(0x111)](_0x3872ba,_0x1d4b95);}[_0x23cbae(0x3ec)](_0x5c4078){const _0x51b267=_0x23cbae;if(this['_clearOtherTimers'][_0x51b267(0x15b)](_0x5c4078)){const _0x486cfb=this[_0x51b267(0x370)][_0x51b267(0x3fd)](_0x5c4078);_0x486cfb&&window[_0x51b267(0x43d)](_0x486cfb),this[_0x51b267(0x370)][_0x51b267(0x111)](_0x5c4078,null);}}[_0x23cbae(0x225)](_0x1dce5d){const _0x28fedf=_0x23cbae,{memberID:_0xe135e7,unitIDs:_0x3e9ed8}=_0x1dce5d;_0x3e9ed8[_0x28fedf(0x273)](_0xfaf85f=>{const _0xaef830=_0x28fedf;var _0x534a17;const _0xa75c4e=this[_0xaef830(0x388)][_0xaef830(0x3fd)](_0xfaf85f);_0xa75c4e&&(_0xa75c4e[_0xaef830(0x1a8)](_0xe135e7),(_0x534a17=this[_0xaef830(0x27e)](_0xfaf85f))==null||_0x534a17[_0xaef830(0x131)](_0xa75c4e[_0xaef830(0x11b)]===0x0?0x0:0x1));}),this[_0x28fedf(0x3ec)](_0xe135e7);}[_0x23cbae(0x1cf)](_0x3e277c){const _0x40b344=_0x23cbae;this[_0x40b344(0x25f)](_0x3e277c[_0x40b344(0x104)]);}[_0x23cbae(0x350)](_0xd7b166){const _0x327f99=_0x23cbae;localStorage[_0x327f99(0x30b)](_s,JSON['stringify'](_0xd7b166));}[_0x23cbae(0xf3)](){const _0x4a5774=_0x23cbae;this[_0x4a5774(0x2e3)]=window['setInterval'](()=>{const _0x196344=_0x4a5774;this['_send']({'type':0x2,'memberID':this[_0x196344(0x408)]});},ls);}[_0x23cbae(0x27e)](_0x5f3bd8){const _0x590c7a=_0x23cbae;return this[_0x590c7a(0x2d0)][_0x590c7a(0x15b)](_0x5f3bd8)||this[_0x590c7a(0x2d0)]['set'](_0x5f3bd8,new _0x169308(0x0)),this[_0x590c7a(0x2d0)][_0x590c7a(0x3fd)](_0x5f3bd8);}}function Vs(_0x19c01e){const _0x537f4e=_0x23cbae;let _0x2ef4ed='';for(const _0x5b45aa of _0x19c01e){const {startOffset:_0x5e87b6,endOffset:_0x392061,isActive:_0x461008}=_0x5b45aa;_0x2ef4ed[_0x537f4e(0xed)]&&(_0x2ef4ed+=','),_0x2ef4ed+=_0x5e87b6+':'+_0x392061+':'+(_0x461008?'1':'0');}return _0x2ef4ed;}function mr(_0x4e8978){const _0x4b754a=_0x23cbae,_0x3c8e1a=_0x4e8978[_0x4b754a(0x41f)](','),_0x1229f6=[];for(const _0x39eb4d of _0x3c8e1a){const [_0x4501bc,_0x419027,_0xd3222f]=_0x39eb4d[_0x4b754a(0x41f)](':');_0x1229f6['push']({'startOffset':Number(_0x4501bc),'endOffset':Number(_0x419027),'collapsed':_0x4501bc===_0x419027,'isActive':_0xd3222f==='1'});}return _0x1229f6[_0x4b754a(0x3e6)](_0x50dc9b=>_0x50dc9b[_0x4b754a(0x1b9)])||(_0x1229f6[0x0][_0x4b754a(0x1b9)]=!0x0),_0x1229f6;}class Ft extends _0x3a262a{constructor(){const _0x47d853=_0x23cbae;super(...arguments),l(this,'_collabCursorState$',new _0x169308(null)),l(this,_0x47d853(0x292),this['_collabCursorState$'][_0x47d853(0x341)]());}['syncEditingCollabCursor'](_0x1e9b05){const _0x45ee27=_0x23cbae,{unitID:_0x426c0e,memberID:_0x2078ee,textRanges:_0x219ef1}=_0x1e9b05,_0x40fa3b=Vs(_0x219ef1),_0x467d60={'unitID':_0x426c0e,'memberID':_0x2078ee,'selection':_0x40fa3b};this[_0x45ee27(0x313)][_0x45ee27(0x131)](_0x467d60);}}var gr=Object[_0x23cbae(0xe2)],Sr=Object['getOwnPropertyDescriptor'],pr=(_0x4e040b,_0x476a38,_0x5e3539,_0x4edcc4)=>{const _0x1ae62a=_0x23cbae;for(var _0xe06bd7=_0x4edcc4>0x1?void 0x0:_0x4edcc4?Sr(_0x476a38,_0x5e3539):_0x476a38,_0x3eaa7c=_0x4e040b[_0x1ae62a(0xed)]-0x1,_0x36a414;_0x3eaa7c>=0x0;_0x3eaa7c--)(_0x36a414=_0x4e040b[_0x3eaa7c])&&(_0xe06bd7=(_0x4edcc4?_0x36a414(_0x476a38,_0x5e3539,_0xe06bd7):_0x36a414(_0xe06bd7))||_0xe06bd7);return _0x4edcc4&&_0xe06bd7&&gr(_0x476a38,_0x5e3539,_0xe06bd7),_0xe06bd7;},us=(_0x601a9,_0x58e4ab)=>(_0x42e813,_0x134952)=>_0x58e4ab(_0x42e813,_0x134952,_0x601a9);let Xe=class{constructor(_0x76c33e,_0x351674){const _0x5d4509=_0x23cbae;this[_0x5d4509(0x171)]=_0x76c33e,this['_transformService']=_0x351674;}[_0x23cbae(0x3f8)](_0x42f5b7){const _0x4b21be=_0x23cbae;var _0xde927;const _0x330c4f=this['_injector'][_0x4b21be(0x3fd)](_0x5502c3),_0x25fd71=(_0xde927=_0x330c4f[_0x4b21be(0x338)]())!=null?_0xde927:[];if(_0x25fd71['length']===0x0)return;const _0x3b9604=[{'id':_0x4b21be(0x200),'params':{'unitId':_0x42f5b7[_0x4b21be(0x1a5)],'actions':null,'textRanges':_0x25fd71}}],_0x4df874=this[_0x4b21be(0x2f5)][_0x4b21be(0x3cc)](_0x42f5b7,_0x3b9604);if(!_0x24c912(_0x4df874))throw _0x4df874[_0x4b21be(0x43f)];const _0x523d04=_0x4df874['m2Prime'][0x0][_0x4b21be(0x1e4)][_0x4b21be(0x1f8)];Array[_0x4b21be(0x218)](_0x523d04)&&_0x523d04[_0x4b21be(0xed)]&&_0x330c4f[_0x4b21be(0xfb)](_0x523d04,!0x1);}};Xe=pr([us(0x0,_0x57082d(_0x5aca14)),us(0x1,_0x3ce5fa)],Xe);const vr=new Set([_0xecee35['id']]);function ds(_0x2a74f3,_0x16c9ba,_0x4dc805,_0x5cf634,_0x537330){const _0x383bd4=_0x23cbae;var _0x83ee2c,_0xb2c3ce,_0x21daa0,_0x4cb7ab;const _0x374e9f=[];for(const _0x360812 of _0x2a74f3)if(vr[_0x383bd4(0x15b)](_0x360812['id'])){if(_0x374e9f[_0x383bd4(0xed)]>0x0)break;_0x374e9f[_0x383bd4(0x12e)](_0x360812);break;}else _0x374e9f['push'](_0x360812);const _0x24145a=(_0xb2c3ce=(_0x83ee2c=_0x537330[_0x383bd4(0x177)]())==null?void 0x0:_0x83ee2c['userID'])!=null?_0xb2c3ce:_0x383bd4(0x301),_0x248b5f=(_0x4cb7ab=(_0x21daa0=_0x537330[_0x383bd4(0x177)]())==null?void 0x0:_0x21daa0['memberID'])!=null?_0x4cb7ab:_0x383bd4(0x301);return{'changeset':{'unitID':_0x16c9ba,'type':_0x2f6b1e(_0x4dc805[_0x383bd4(0xfa)](_0x16c9ba)),'baseRev':_0x5cf634[_0x383bd4(0x305)](_0x16c9ba),'revision':0x0,'userID':_0x24145a,'memberID':_0x248b5f,'mutations':_0x374e9f},'pendingMutations':_0x2a74f3['slice'](_0x374e9f[_0x383bd4(0xed)])};}function Ir(_0x204532,_0x2c5dc3,_0x19af8a,_0x5c3dad,_0x26a44b){const _0x384a4e=_0x23cbae;var _0x4574cb,_0x2dd87a,_0x4054e4,_0x5e41ae;const _0x382e7d=[_0x204532[_0x384a4e(0x39b)]((_0x33250d,_0x42cf04)=>{const _0x3e3cff=_0x384a4e;var _0x3c03c3;const {id:_0x3a3125}=_0x33250d,{id:_0x1a678c,type:_0x110696}=_0x42cf04,_0x2e795c=(_0x3c03c3=_0x33250d['params'])!=null?_0x3c03c3:{'actions':null},_0x6e5d02=_0x42cf04[_0x3e3cff(0x1e4)];if(_0x3a3125&&_0x3a3125!==_0x1a678c)throw new Error(_0x3e3cff(0x3b3)+_0x3a3125+_0x3e3cff(0x191)+_0x1a678c+'.');return{..._0x33250d,'id':_0x1a678c,'type':_0x110696,'params':{'unitId':_0x6e5d02[_0x3e3cff(0x37e)],'textRanges':_0x6e5d02['textRanges'],'actions':_0x26e9d3['compose'](_0x2e795c[_0x3e3cff(0x347)],_0x6e5d02[_0x3e3cff(0x347)])}};},{})],_0x560400=(_0x2dd87a=(_0x4574cb=_0x26a44b['getCurrentUser']())==null?void 0x0:_0x4574cb[_0x384a4e(0x441)])!=null?_0x2dd87a:_0x384a4e(0x301),_0x1766b8=(_0x5e41ae=(_0x4054e4=_0x26a44b[_0x384a4e(0x177)]())==null?void 0x0:_0x4054e4['memberID'])!=null?_0x5e41ae:_0x384a4e(0x301);return{'changeset':{'unitID':_0x2c5dc3,'type':_0x2f6b1e(_0x19af8a[_0x384a4e(0xfa)](_0x2c5dc3)),'baseRev':_0x5c3dad['getCurrentRevOfUnit'](_0x2c5dc3),'revision':0x0,'userID':_0x560400,'memberID':_0x1766b8,'mutations':_0x382e7d},'pendingMutations':[]};}const Er={'id':_0x37478b['id'],'type':_0x406a66[_0x23cbae(0x411)],'params':{}};var Cr=Object['defineProperty'],br=Object[_0x23cbae(0x36a)],_e=(_0x5d93fc,_0xa6c0cd,_0x4b0d32,_0xf86331)=>{const _0x3ebfec=_0x23cbae;for(var _0x20b81e=_0xf86331>0x1?void 0x0:_0xf86331?br(_0xa6c0cd,_0x4b0d32):_0xa6c0cd,_0x4fd3f6=_0x5d93fc[_0x3ebfec(0xed)]-0x1,_0x14e973;_0x4fd3f6>=0x0;_0x4fd3f6--)(_0x14e973=_0x5d93fc[_0x4fd3f6])&&(_0x20b81e=(_0xf86331?_0x14e973(_0xa6c0cd,_0x4b0d32,_0x20b81e):_0x14e973(_0x20b81e))||_0x20b81e);return _0xf86331&&_0x20b81e&&Cr(_0xa6c0cd,_0x4b0d32,_0x20b81e),_0x20b81e;},m=(_0x4ae3a9,_0x2eb85c)=>(_0x5ff5fb,_0x1df26e)=>_0x2eb85c(_0x5ff5fb,_0x1df26e,_0x4ae3a9),P=(_0x3fd256=>(_0x3fd256[_0x23cbae(0x26e)]=_0x23cbae(0x320),_0x3fd256['SYNCED']=_0x23cbae(0x369),_0x3fd256[_0x23cbae(0x160)]='pending',_0x3fd256[_0x23cbae(0x244)]=_0x23cbae(0x2fa),_0x3fd256[_0x23cbae(0x27f)]=_0x23cbae(0x1d0),_0x3fd256['FETCH_MISS']='fetch_missing',_0x3fd256[_0x23cbae(0x444)]=_0x23cbae(0x358),_0x3fd256[_0x23cbae(0x1a9)]=_0x23cbae(0x23f),_0x3fd256))(P||{});class ue{constructor(_0x1f71b6,_0x3b0862,_0x47c66,_0x1383fd,_0x12e3a3,_0x525ee6,_0xf2edd8,_0x4750a2,_0x1a89e5){const _0x1ecfdf=_0x23cbae;l(this,_0x1ecfdf(0x1ba),null),l(this,_0x1ecfdf(0x1ab),[]),(this[_0x1ecfdf(0x1a5)]=_0x1f71b6,this['type']=_0x3b0862,this[_0x1ecfdf(0x386)]=_0x12e3a3,this[_0x1ecfdf(0x393)]=_0x525ee6,this[_0x1ecfdf(0x216)]=_0xf2edd8,this[_0x1ecfdf(0x28a)]=_0x4750a2,this[_0x1ecfdf(0x279)]=_0x1a89e5,this[_0x1ecfdf(0x1ba)]=_0x47c66,this[_0x1ecfdf(0x1ab)]=_0x1383fd);}['_checkMissing'](_0x540180){const _0x3a7ce4=_0x23cbae,_0x5ddcd4=this[_0x3a7ce4(0x28a)][_0x3a7ce4(0x305)](this[_0x3a7ce4(0x1a5)]);return _0x540180['revision']>_0x5ddcd4+0x1?(this[_0x3a7ce4(0x386)][_0x3a7ce4(0x2c1)]({'from':_0x5ddcd4,'to':_0x540180[_0x3a7ce4(0x1d8)]-0x1}),!0x0):!0x1;}[_0x23cbae(0x159)](_0x4eb324){const _0x400dbc=_0x23cbae;this[_0x400dbc(0x216)][_0x400dbc(0x16c)](this['unitID'],_0x4eb324);}[_0x23cbae(0x1ea)](_0x2dd223){const _0x30210e=_0x23cbae;var _0x29f116,_0x3a15e8;(_0x3a15e8=(_0x29f116=this[_0x30210e(0x386)])[_0x30210e(0x246)])==null||_0x3a15e8['call'](_0x29f116,_0x2dd223);}['_transformIMECache'](_0x30d1c6){const _0x45ca71=_0x23cbae;var _0x37945a,_0x51f65c;return(_0x51f65c=(_0x37945a=this['_handler'])[_0x45ca71(0x15f)])==null?void 0x0:_0x51f65c[_0x45ca71(0x1fc)](_0x37945a,_0x30d1c6);}[_0x23cbae(0x1e0)](_0x31d9fc){const _0x2b471a=_0x23cbae;var _0xfb661d,_0x34e1db,_0x4cdc12;return(_0x4cdc12=(_0x34e1db=(_0xfb661d=this[_0x2b471a(0x386)])[_0x2b471a(0x13a)])==null?void 0x0:_0x34e1db[_0x2b471a(0x1fc)](_0xfb661d,_0x31d9fc))!=null?_0x4cdc12:_0x31d9fc;}[_0x23cbae(0x33f)](_0x92aff7){const _0x4e75b6=_0x23cbae;var _0x24d9ad,_0x22bfe5;if(this['type']===k[_0x4e75b6(0x12f)]){const {unitID:_0x5a3940,mutations:_0x5725c1,memberID:_0xbc27f8}=_0x92aff7,_0x15d38c=_0x5725c1[0x0][_0x4e75b6(0x1e4)][_0x4e75b6(0x1f8)];Array[_0x4e75b6(0x218)](_0x15d38c)&&_0x15d38c[_0x4e75b6(0xed)]>0x0&&((_0x22bfe5=(_0x24d9ad=this[_0x4e75b6(0x386)])['onSyncEditingCollabCursor'])==null||_0x22bfe5['call'](_0x24d9ad,{'unitID':_0x5a3940,'memberID':_0xbc27f8,'textRanges':_0x15d38c}));}}[_0x23cbae(0x24f)](){const _0x1ce97c=_0x23cbae;this['_localCacheService']['updateOfflineData'](this['unitID'],this[_0x1ce97c(0x2f1)],this[_0x1ce97c(0x1ba)],this[_0x1ce97c(0x1ab)]);}['_getCurrentRevision'](){const _0x4208e8=_0x23cbae;return this[_0x4208e8(0x28a)][_0x4208e8(0x305)](this[_0x4208e8(0x1a5)]);}[_0x23cbae(0x19a)](){const _0x4b9cf6=_0x23cbae;this[_0x4b9cf6(0x28a)]['incrementRevOfUnit'](this[_0x4b9cf6(0x1a5)]);}['_executeRemoteChangeset'](_0x17c6e8){const _0x14a371=_0x23cbae;var _0x3d085e;const _0x2ddfb0=this[_0x14a371(0x1e0)](_0x17c6e8),_0x27a9f6=_0x3b5adf(_0x2ddfb0['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x27a9f6[_0x14a371(0x315)])throw _0x27a9f6['error']instanceof Error?_0x27a9f6['error']:new Error((_0x3d085e=_0x27a9f6[_0x14a371(0x43f)])!=null?_0x3d085e:'[CollaborationState]:\x20apply\x20error!');this[_0x14a371(0x39f)](_0x2ddfb0),this[_0x14a371(0x159)](_0x17c6e8),this[_0x14a371(0x1ea)](_0x2ddfb0),this[_0x14a371(0x33f)](_0x2ddfb0),this[_0x14a371(0x19a)]();}}let pe=class extends ue{constructor(_0x279266,_0x455542,_0x776c82,_0x466ee4,_0x5885b5,_0x514719,_0x46eae8,_0x36d207,_0x5516fa,_0x3f1c01){const _0x34fd10=_0x23cbae;super(_0x279266,_0x455542,null,[],_0x776c82,_0x36d207,_0x46eae8,_0x466ee4,_0x5885b5),l(this,_0x34fd10(0x361),_0x34fd10(0x369)),(this[_0x34fd10(0x171)]=_0x514719,this[_0x34fd10(0x135)]=_0x5516fa,this[_0x34fd10(0x2f5)]=_0x3f1c01);}[_0x23cbae(0x3fb)](_0x5391ec){const _0x386f0b=_0x23cbae,_0x2aaae6=this[_0x386f0b(0x171)][_0x386f0b(0x351)](X,this[_0x386f0b(0x1a5)],this[_0x386f0b(0x2f1)],[_0x5391ec],this[_0x386f0b(0x386)]);return _0x2aaae6['_schedule'](),_0x2aaae6['_updateLocalCache'](),_0x2aaae6;}[_0x23cbae(0x1c3)](_0x368da5){const _0x3b13f5=_0x23cbae;if(this[_0x3b13f5(0x3b1)](_0x368da5))return this[_0x3b13f5(0x171)][_0x3b13f5(0x351)](B,this['unitID'],this['type'],null,[],null,[_0x368da5],this[_0x3b13f5(0x386)]);try{const _0x3c3d42=this[_0x3b13f5(0x2f5)]['transformMutationsWithChangeset'](_0x368da5,[Er]);if(_0x24c912(_0x3c3d42)){const {c1Prime:_0x4a458e}=_0x3c3d42;return this[_0x3b13f5(0x181)](_0x4a458e),this;}throw _0x3c3d42[_0x3b13f5(0x43f)];}catch(_0x3e5ff0){return this[_0x3b13f5(0x135)][_0x3b13f5(0x43f)](_0x3e5ff0),this[_0x3b13f5(0x128)](!0x1);}}[_0x23cbae(0x128)](_0x5eb3d1){const _0x35c8d1=_0x23cbae;return this[_0x35c8d1(0x171)]['createInstance'](ee,this[_0x35c8d1(0x1a5)],this[_0x35c8d1(0x2f1)],null,[],this[_0x35c8d1(0x386)],_0x5eb3d1);}[_0x23cbae(0x449)](){const _0x3994af=_0x23cbae;throw new Error(_0x3994af(0x27a));}[_0x23cbae(0x3d6)](){const _0x1f9057=_0x23cbae;throw new Error(_0x1f9057(0x406));}[_0x23cbae(0x433)](){const _0x37e62a=_0x23cbae;return this[_0x37e62a(0x171)][_0x37e62a(0x351)](te,this['unitID'],this['type'],null,[],this[_0x37e62a(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x107)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x4b0cbf=_0x23cbae,_0x44eee9=this[_0x4b0cbf(0x28a)][_0x4b0cbf(0x305)](this['unitID']);return this[_0x4b0cbf(0x386)]['onMissingChangesets']({'from':_0x44eee9,'to':0x0}),this[_0x4b0cbf(0x171)][_0x4b0cbf(0x351)](B,this[_0x4b0cbf(0x1a5)],this[_0x4b0cbf(0x2f1)],null,[],null,[],this[_0x4b0cbf(0x386)]);}};pe=_e([m(0x3,_0x57082d(_0x2056a3)),m(0x4,_0x57082d(w)),m(0x5,_0x57082d(_0x5aca14)),m(0x6,_0x2b3c29),m(0x7,_0x2c218a),m(0x8,_0x2ed9bc),m(0x9,_0x3ce5fa)],pe);let X=class extends ue{constructor(_0x55b7fc,_0x59f6a6,_0xee80da,_0x1a85a0,_0x578c23,_0x5b9aa3,_0x20abad,_0x49d5b5,_0x493852,_0x2645e8,_0x17084b,_0x21e3fb,_0x9eb154,_0x356c0c){const _0x45e8cf=_0x23cbae;super(_0x55b7fc,_0x59f6a6,null,_0xee80da,_0x1a85a0,_0x2645e8,_0x356c0c,_0x5b9aa3,_0x20abad),l(this,'status',_0x45e8cf(0x3ce)),l(this,_0x45e8cf(0x3ad),null),l(this,'_sendingTimer',null),(this[_0x45e8cf(0x171)]=_0x578c23,this['_memberService']=_0x49d5b5,this[_0x45e8cf(0x135)]=_0x493852,this[_0x45e8cf(0x44c)]=_0x17084b,this[_0x45e8cf(0x2f5)]=_0x21e3fb,this[_0x45e8cf(0x2ce)]=_0x9eb154);}[_0x23cbae(0x3fb)](_0x10764f){const _0x3d1580=_0x23cbae;return this[_0x3d1580(0x1ab)][_0x3d1580(0x12e)](_0x10764f),this['_updateLocalCache'](),this;}[_0x23cbae(0x1c3)](_0x42c2b2){const _0x116aa4=_0x23cbae;if(this[_0x116aa4(0x3b1)](_0x42c2b2))return this['_clearScheduledTask'](),this[_0x116aa4(0x171)]['createInstance'](B,this['unitID'],this['type'],null,this[_0x116aa4(0x1ab)],null,[_0x42c2b2],this[_0x116aa4(0x386)]);try{const _0x291a72=this[_0x116aa4(0x2f5)][_0x116aa4(0x3cc)](_0x42c2b2,this[_0x116aa4(0x1ab)]);if(_0x24c912(_0x291a72)){const {c1Prime:_0x239f0f,m2Prime:_0x32dd52}=_0x291a72;this['_executeRemoteChangeset'](_0x239f0f);const _0x19c222=this[_0x116aa4(0x171)][_0x116aa4(0x351)](X,this[_0x116aa4(0x1a5)],this['type'],_0x32dd52,this[_0x116aa4(0x386)]);return this[_0x116aa4(0x3bb)](),_0x19c222[_0x116aa4(0x2c8)](this[_0x116aa4(0x3ad)]?Math['max'](0x0,new Date()[_0x116aa4(0x324)]()-this['_scheduleTimestamp']):this[_0x116aa4(0x166)]()),_0x19c222;}throw _0x291a72[_0x116aa4(0x43f)];}catch(_0x1175b2){return this[_0x116aa4(0x135)][_0x116aa4(0x43f)](_0x1175b2),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x47f824=_0x23cbae;throw new Error(_0x47f824(0x2e7));}[_0x23cbae(0x3d6)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x23cbae(0x433)](){const _0x3df8c9=_0x23cbae;return this[_0x3df8c9(0x3bb)](),this[_0x3df8c9(0x171)][_0x3df8c9(0x351)](te,this[_0x3df8c9(0x1a5)],this['type'],null,this[_0x3df8c9(0x1ab)],this[_0x3df8c9(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x2c8)](_0x200c74){const _0x436b01=_0x23cbae,_0x5d9f7b=_0x200c74!=null?_0x200c74:this['_getSendChangesetTimeout']();this[_0x436b01(0x3ad)]=new Date()[_0x436b01(0x324)](),this[_0x436b01(0x119)]=window[_0x436b01(0x2d6)](()=>{const _0x41606f=_0x436b01;this[_0x41606f(0x3bb)]();let _0x1e66de=null;switch(this['type']){case k['UNIVER_SHEET']:{_0x1e66de=ds(this[_0x41606f(0x1ab)],this[_0x41606f(0x1a5)],this['_univerInstanceService'],this[_0x41606f(0x28a)],this['_memberService']);break;}case k[_0x41606f(0x12f)]:{this[_0x41606f(0x1ab)]['every'](_0x32916e=>_0x32916e['id']===_0x520c9a['id'])?_0x1e66de=Ir(this[_0x41606f(0x1ab)],this['unitID'],this[_0x41606f(0x2ce)],this[_0x41606f(0x28a)],this[_0x41606f(0x2f4)]):_0x1e66de=ds(this[_0x41606f(0x1ab)],this[_0x41606f(0x1a5)],this[_0x41606f(0x2ce)],this[_0x41606f(0x28a)],this[_0x41606f(0x2f4)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x41606f(0x2f1)]+_0x41606f(0x382));}const {changeset:_0x9ecf53,pendingMutations:_0x53a07f}=_0x1e66de;this['_handler'][_0x41606f(0x42a)](_0x9ecf53);const _0x12994=_0x53a07f[_0x41606f(0xed)]?this[_0x41606f(0x171)][_0x41606f(0x351)](q,this['unitID'],this[_0x41606f(0x2f1)],_0x9ecf53,_0x53a07f,this[_0x41606f(0x386)]):this[_0x41606f(0x171)]['createInstance'](Q,this['unitID'],this['type'],_0x9ecf53,this[_0x41606f(0x386)]);_0x12994['_updateLocalCache'](),this['_handler']['onStateChange'](this,_0x12994);},_0x5d9f7b);}['_getSendChangesetTimeout'](){const _0x46a6ba=_0x23cbae;var _0x465f8a;const _0xf44e18=this[_0x46a6ba(0x44c)][_0x46a6ba(0x266)]($);return(_0x465f8a=_0xf44e18==null?void 0x0:_0xf44e18['sendChangesetTimeout'])!=null?_0x465f8a:In;}[_0x23cbae(0x107)](){const _0x14c9ec=_0x23cbae;throw new Error(_0x14c9ec(0x423));}[_0x23cbae(0x3bb)](){const _0x200e05=_0x23cbae;this[_0x200e05(0x119)]!=null&&(clearTimeout(this[_0x200e05(0x119)]),this[_0x200e05(0x119)]=null);}[_0x23cbae(0x128)](_0x3b1f8b){const _0x54d042=_0x23cbae;return this[_0x54d042(0x3bb)](),this[_0x54d042(0x171)][_0x54d042(0x351)](ee,this[_0x54d042(0x1a5)],this['type'],null,this[_0x54d042(0x1ab)],this[_0x54d042(0x386)],_0x3b1f8b);}};X=_e([m(0x4,_0x57082d(_0x5aca14)),m(0x5,_0x57082d(_0x2056a3)),m(0x6,_0x57082d(w)),m(0x7,_0x57082d(ce)),m(0x8,_0x2ed9bc),m(0x9,_0x2c218a),m(0xa,_0x465ebb),m(0xb,_0x3ce5fa),m(0xc,_0xf0f4c1),m(0xd,_0x2b3c29)],X);let Q=class extends ue{constructor(_0x3c9d9a,_0x35a146,_0xe873d8,_0xd25268,_0x1e2efb,_0x54e40e,_0x40c2cf,_0x2e57d6,_0x36c13d,_0x91e3ca,_0x48969a){const _0x5ce353=_0x23cbae;super(_0x3c9d9a,_0x35a146,_0xe873d8,[],_0xd25268,_0x2e57d6,_0x48969a,_0x54e40e,_0x40c2cf),l(this,_0x5ce353(0x361),'awaiting'),(this[_0x5ce353(0x171)]=_0x1e2efb,this['_logService']=_0x36c13d,this['_transformService']=_0x91e3ca);}['appendMutation'](_0x5073aa){const _0xe729bb=_0x23cbae,_0x22de15=this[_0xe729bb(0x171)][_0xe729bb(0x351)](q,this[_0xe729bb(0x1a5)],this[_0xe729bb(0x2f1)],this['_awaitingChangeset'],[_0x5073aa],this[_0xe729bb(0x386)]);return _0x22de15[_0xe729bb(0x24f)](),_0x22de15;}['onRemoteChangeset'](_0x261891){const _0x4bde60=_0x23cbae;if(this[_0x4bde60(0x3b1)](_0x261891))return this[_0x4bde60(0x171)][_0x4bde60(0x351)](B,this[_0x4bde60(0x1a5)],this[_0x4bde60(0x2f1)],this[_0x4bde60(0x1ba)],[],null,[_0x261891],this[_0x4bde60(0x386)]);try{const _0x33fb6d=this[_0x4bde60(0x2f5)][_0x4bde60(0x399)]([_0x261891],[this['_awaitingChangeset']],!0x1);if(_0xf2155e(_0x33fb6d)){const {c1Prime:_0x31ecf5,c2Prime:_0x3b643b}=_0x33fb6d;this[_0x4bde60(0x181)](_0x31ecf5[0x0]),_0x3b643b[0x0][_0x4bde60(0x14f)]=this[_0x4bde60(0x288)]();const _0x48b508=this[_0x4bde60(0x171)][_0x4bde60(0x351)](Q,this[_0x4bde60(0x1a5)],this['type'],_0x3b643b[0x0],this['_handler']);return _0x48b508[_0x4bde60(0x24f)](),_0x48b508;}return this[_0x4bde60(0x128)](!0x1);}catch(_0x2154fa){return this[_0x4bde60(0x135)]['error'](_0x2154fa),this[_0x4bde60(0x128)](!0x1);}}[_0x23cbae(0x449)](_0x43120f){const _0x28204c=_0x23cbae,_0x491933=this[_0x28204c(0x28a)][_0x28204c(0x305)](this['unitID']);if(_0x43120f[_0x28204c(0x1d8)]<_0x491933-0x1)return this;if(this[_0x28204c(0x3b1)](_0x43120f))return this[_0x28204c(0x171)][_0x28204c(0x351)](B,this[_0x28204c(0x1a5)],this[_0x28204c(0x2f1)],null,[],this[_0x28204c(0x1ba)],[],this[_0x28204c(0x386)]);this['_incrementRevisionNumber']();const _0x55594e=this[_0x28204c(0x171)][_0x28204c(0x351)](pe,this['unitID'],this['type'],this['_handler']);return _0x55594e[_0x28204c(0x24f)](),_0x55594e;}[_0x23cbae(0x3d6)](_0x4945d7){const _0x416011=_0x23cbae;return this[_0x416011(0x128)](!!(_0x4945d7!=null&&_0x4945d7[_0x416011(0x226)]));}[_0x23cbae(0x433)](){const _0x519daa=_0x23cbae;return this[_0x519daa(0x171)][_0x519daa(0x351)](te,this['unitID'],this[_0x519daa(0x2f1)],this[_0x519daa(0x1ba)],[],this[_0x519daa(0x386)]);}[_0x23cbae(0x31a)](){return this;}['resend'](){const _0x2bdf8f=_0x23cbae;this[_0x2bdf8f(0x386)][_0x2bdf8f(0x42a)](this[_0x2bdf8f(0x1ba)]);}[_0x23cbae(0x128)](_0x285409){const _0x5a66a1=_0x23cbae;return this[_0x5a66a1(0x171)][_0x5a66a1(0x351)](ee,this[_0x5a66a1(0x1a5)],this[_0x5a66a1(0x2f1)],this[_0x5a66a1(0x1ba)],[],this['_handler'],_0x285409);}};Q=_e([m(0x4,_0x57082d(_0x5aca14)),m(0x5,_0x57082d(_0x2056a3)),m(0x6,_0x57082d(w)),m(0x7,_0x2c218a),m(0x8,_0x2ed9bc),m(0x9,_0x3ce5fa),m(0xa,_0x2b3c29)],Q);let q=class extends ue{constructor(_0xc475ac,_0x37800c,_0x4139dc,_0x25da34,_0x111c38,_0x562dca,_0x11a311,_0x2b5dbe,_0x4ca595,_0x175941,_0x1491d4,_0xae825d){const _0x1121fc=_0x23cbae;super(_0xc475ac,_0x37800c,_0x4139dc,_0x25da34,_0x111c38,_0x4ca595,_0xae825d,_0x11a311,_0x2b5dbe),l(this,_0x1121fc(0x361),_0x1121fc(0x1d0)),(this[_0x1121fc(0x171)]=_0x562dca,this[_0x1121fc(0x135)]=_0x175941,this[_0x1121fc(0x2f5)]=_0x1491d4);}[_0x23cbae(0x3fb)](_0x5446e7){const _0x3e5931=_0x23cbae;return this['_pendingMutations'][_0x3e5931(0x12e)](_0x5446e7),this;}[_0x23cbae(0x1c3)](_0x101eb4){const _0x38b96d=_0x23cbae;if(this[_0x38b96d(0x3b1)](_0x101eb4))return this[_0x38b96d(0x171)][_0x38b96d(0x351)](B,this['unitID'],this[_0x38b96d(0x2f1)],this['_awaitingChangeset'],this[_0x38b96d(0x1ab)],null,[_0x101eb4],this[_0x38b96d(0x386)]);try{const _0x30fc62=this[_0x38b96d(0x2f5)][_0x38b96d(0x399)]([_0x101eb4],[this[_0x38b96d(0x1ba)]],!0x1);if(_0xf2155e(_0x30fc62)){const {c1Prime:_0x4b0632,c2Prime:_0x23f0bb}=_0x30fc62,_0x411f88=this['_transformService'][_0x38b96d(0x3cc)](_0x4b0632[0x0],this[_0x38b96d(0x1ab)]);if(_0x24c912(_0x411f88)){const {c1Prime:_0x5466bd,m2Prime:_0x5a57e2}=_0x411f88;return this[_0x38b96d(0x181)](_0x5466bd),_0x23f0bb[0x0][_0x38b96d(0x14f)]=this['_getCurrentRevision'](),this['_injector'][_0x38b96d(0x351)](q,this[_0x38b96d(0x1a5)],this[_0x38b96d(0x2f1)],_0x23f0bb[0x0],_0x5a57e2,this[_0x38b96d(0x386)]);}throw _0x411f88[_0x38b96d(0x43f)];}throw _0x30fc62['error'];}catch(_0x1b6fc9){return this[_0x38b96d(0x135)]['error'](_0x1b6fc9),this[_0x38b96d(0x128)](!0x1);}}[_0x23cbae(0x449)](_0x51b211){const _0x524292=_0x23cbae;if(this[_0x524292(0x3b1)](_0x51b211))return this['_injector'][_0x524292(0x351)](B,this['unitID'],this[_0x524292(0x2f1)],null,this[_0x524292(0x1ab)],this[_0x524292(0x1ba)],[],this[_0x524292(0x386)]);this[_0x524292(0x19a)]();const _0x52aeb4=this['_injector'][_0x524292(0x351)](X,this[_0x524292(0x1a5)],this['type'],this['_pendingMutations'],this['_handler']);return _0x52aeb4['_schedule'](),_0x52aeb4[_0x524292(0x24f)](),_0x52aeb4;}[_0x23cbae(0x3d6)](_0x3b6111){const _0x41c2d3=_0x23cbae;return this[_0x41c2d3(0x128)](!!(_0x3b6111!=null&&_0x3b6111[_0x41c2d3(0x226)]));}[_0x23cbae(0x433)](){const _0x162962=_0x23cbae;return this[_0x162962(0x171)][_0x162962(0x351)](te,this[_0x162962(0x1a5)],this[_0x162962(0x2f1)],this[_0x162962(0x1ba)],this[_0x162962(0x1ab)],this[_0x162962(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x107)](){const _0x15307e=_0x23cbae;this['_handler']['onSendChangeset'](this[_0x15307e(0x1ba)]);}[_0x23cbae(0x128)](_0x22d7bb){const _0x48a97d=_0x23cbae;return this[_0x48a97d(0x171)][_0x48a97d(0x351)](ee,this[_0x48a97d(0x1a5)],this[_0x48a97d(0x2f1)],null,this[_0x48a97d(0x1ab)],this[_0x48a97d(0x386)],_0x22d7bb);}};q=_e([m(0x5,_0x57082d(_0x5aca14)),m(0x6,_0x57082d(_0x2056a3)),m(0x7,_0x57082d(w)),m(0x8,_0x2c218a),m(0x9,_0x2ed9bc),m(0xa,_0x3ce5fa),m(0xb,_0x2b3c29)],q);let ee=class extends ue{constructor(_0x50caf3,_0x27c0a9,_0xd348b7,_0x379364,_0x2b81af,_0x3cff5c=!0x1,_0x398976,_0xf82742,_0x796458,_0x3401aa,_0x117702,_0x50f024,_0x125030){const _0x50f2cc=_0x23cbae;super(_0x50caf3,_0x27c0a9,_0xd348b7,_0x379364,_0x2b81af,_0xf82742,_0x796458,_0x117702,_0x3401aa),l(this,_0x50f2cc(0x361),_0x50f2cc(0x358)),(this['_isPermissionRej']=_0x3cff5c,this['_permissionService']=_0x398976,this[_0x50f2cc(0x151)]=_0x50f024,this[_0x50f2cc(0x285)]=_0x125030,this[_0x50f2cc(0x2ef)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x23cbae(0x3fb)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x23cbae(0x107)](){const _0x4a78b9=_0x23cbae;throw new Error(_0x4a78b9(0x372));}[_0x23cbae(0x311)](){const _0x184d2e=_0x23cbae;this['_localCacheService'][_0x184d2e(0xe0)](this[_0x184d2e(0x1a5)],this[_0x184d2e(0x2f1)],null,[]);}['_showConflictNotification'](){const _0x4f816d=_0x23cbae;this[_0x4f816d(0x2a1)]?this[_0x4f816d(0x285)]['show']({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x4f816d(0x1dc)),'type':'error','duration':0x0}):this[_0x4f816d(0x285)][_0x4f816d(0x2bb)]({'title':this['_localeService']['t'](_0x4f816d(0x1aa)),'content':this[_0x4f816d(0x151)]['t'](_0x4f816d(0x2eb)),'type':_0x4f816d(0x43f),'duration':0x0});}[_0x23cbae(0x258)](){const _0x3116ee=_0x23cbae;this['_permissionService']['updatePermissionPoint'](new _0x41b6ca(this[_0x3116ee(0x1a5)])['id'],!0x1);}};ee=_e([m(0x6,_0x57082d(_0x3b2db3)),m(0x7,_0x2c218a),m(0x8,_0x2b3c29),m(0x9,_0x57082d(w)),m(0xa,_0x57082d(_0x2056a3)),m(0xb,_0x57082d(_0x1ba649)),m(0xc,_0x5cf6e8)],ee);let te=class extends ue{constructor(_0x192fb6,_0xbbd903,_0x45ea95,_0x46180b,_0x1b5dff,_0x51a18c,_0x15d169,_0x49dacb,_0x1f880e,_0x348d87){const _0x5be0bd=_0x23cbae;super(_0x192fb6,_0xbbd903,_0x45ea95,_0x46180b,_0x1b5dff,_0x1f880e,_0x348d87,_0x15d169,_0x49dacb),l(this,_0x5be0bd(0x361),_0x5be0bd(0x23f)),this[_0x5be0bd(0x171)]=_0x51a18c;}[_0x23cbae(0x3fb)](_0x1a00f5){const _0x2254ca=_0x23cbae;return this['_pendingMutations'][_0x2254ca(0x12e)](_0x1a00f5),this[_0x2254ca(0x24f)](),this;}[_0x23cbae(0x1c3)](_0x58b01e){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x23cbae(0x3d6)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x23cbae(0x433)](){return this;}['toggleOnline'](){const _0x13905e=_0x23cbae,{_injector:_0x53fe71,_pendingMutations:_0x7ddb0f,_awaitingChangeset:_0x546f7e,unitID:_0x227394,_handler:_0x36d5af,type:_0x38bb3d}=this,_0x5ea07f=Fs(_0x53fe71,_0x227394,_0x38bb3d,_0x546f7e,_0x7ddb0f,_0x36d5af);return _0x5ea07f instanceof X?_0x5ea07f['_schedule']():(_0x5ea07f instanceof q||_0x5ea07f instanceof Q)&&_0x5ea07f[_0x13905e(0x107)](),_0x5ea07f;}[_0x23cbae(0x107)](){const _0x3e5c20=_0x23cbae;throw new Error(_0x3e5c20(0x24d));}};te=_e([m(0x5,_0x57082d(_0x5aca14)),m(0x6,_0x57082d(_0x2056a3)),m(0x7,_0x57082d(w)),m(0x8,_0x2c218a),m(0x9,_0x2b3c29)],te);let B=class extends ue{constructor(_0x49dc0e,_0x1de849,_0x54167f,_0x218614,_0x4cc90d,_0x3b86ed,_0x34fd92,_0x1189fa,_0x4dc363,_0x37854b,_0x5058df,_0x48c7d8,_0x336fa4,_0x69c3bd){const _0x57ceff=_0x23cbae;super(_0x49dc0e,_0x1de849,_0x54167f,_0x218614,_0x34fd92,_0x48c7d8,_0x336fa4,_0x4dc363,_0x37854b),l(this,_0x57ceff(0x361),_0x57ceff(0x3d4)),(this[_0x57ceff(0x20a)]=_0x4cc90d,this['_queuedRemoteChangesets']=_0x3b86ed,this[_0x57ceff(0x171)]=_0x1189fa,this[_0x57ceff(0x135)]=_0x5058df,this[_0x57ceff(0x2f5)]=_0x69c3bd);}['onMissedChangesetFetched'](_0x57402b){const _0x4fbd7e=_0x23cbae;try{const _0x5adbf6=[..._0x57402b,...this[_0x4fbd7e(0x257)]],_0x33308a=[this['_awaitingChangeset']||this[_0x4fbd7e(0x20a)]][_0x4fbd7e(0x371)](_0x1a59d4=>!!_0x1a59d4);let _0x1c19a0,_0x1c3ab0;if(_0x33308a[_0x4fbd7e(0xed)]){const _0x4d7a72=this[_0x4fbd7e(0x2f5)][_0x4fbd7e(0x399)](_0x5adbf6,_0x33308a,!0x1);if(!_0xf2155e(_0x4d7a72))throw _0x4d7a72['error'];_0x1c19a0=_0x4d7a72[_0x4fbd7e(0x2d5)],_0x1c3ab0=_0x4d7a72[_0x4fbd7e(0x42b)];}else _0x1c19a0=_0x5adbf6,_0x1c3ab0=[];let _0x5c82a7=this[_0x4fbd7e(0x1ab)];_0x1c19a0[_0x4fbd7e(0x273)](_0x433772=>{const _0x17828a=_0x4fbd7e;let _0x28b1b4;if(_0x5c82a7['length']){const _0x2f46a7=this['_transformService']['transformMutationsWithChangeset'](_0x433772,_0x5c82a7);if(!_0x24c912(_0x2f46a7))throw _0x2f46a7[_0x17828a(0x43f)];_0x28b1b4=_0x2f46a7[_0x17828a(0x2d5)],_0x5c82a7=_0x2f46a7[_0x17828a(0x1b0)];}else _0x28b1b4=_0x433772;this[_0x17828a(0x181)](_0x28b1b4);}),this[_0x4fbd7e(0x20a)]&&this['_incrementRevisionNumber'](),this[_0x4fbd7e(0x1ba)]&&_0x1c3ab0['length']&&(_0x1c3ab0[0x0][_0x4fbd7e(0x14f)]=this[_0x4fbd7e(0x288)]());let _0x4c745e;if(this[_0x4fbd7e(0x1ba)]&&_0x5c82a7[_0x4fbd7e(0xed)]!==0x0)_0x4c745e=this[_0x4fbd7e(0x171)][_0x4fbd7e(0x351)](q,this[_0x4fbd7e(0x1a5)],this[_0x4fbd7e(0x2f1)],_0x1c3ab0[0x0],_0x5c82a7,this[_0x4fbd7e(0x386)]);else{if(this[_0x4fbd7e(0x1ba)]&&_0x5c82a7[_0x4fbd7e(0xed)]===0x0)_0x1c3ab0[0x0][_0x4fbd7e(0x14f)]=this[_0x4fbd7e(0x288)](),_0x4c745e=this['_injector'][_0x4fbd7e(0x351)](Q,this[_0x4fbd7e(0x1a5)],this[_0x4fbd7e(0x2f1)],_0x1c3ab0[0x0],this['_handler']);else{if(_0x5c82a7[_0x4fbd7e(0xed)]!==0x0){const _0x521913=this[_0x4fbd7e(0x171)][_0x4fbd7e(0x351)](X,this[_0x4fbd7e(0x1a5)],this['type'],_0x5c82a7,this[_0x4fbd7e(0x386)]);_0x521913[_0x4fbd7e(0x2c8)](),_0x4c745e=_0x521913;}else _0x4c745e=this[_0x4fbd7e(0x171)][_0x4fbd7e(0x351)](pe,this[_0x4fbd7e(0x1a5)],this['type'],this[_0x4fbd7e(0x386)]);}}return _0x4c745e[_0x4fbd7e(0x24f)](),_0x4c745e;}catch(_0x25f7c8){return this[_0x4fbd7e(0x135)]['error'](_0x4fbd7e(0x3c2),_0x4fbd7e(0x295),_0x25f7c8),this['_injector'][_0x4fbd7e(0x351)](ee,this[_0x4fbd7e(0x1a5)],this[_0x4fbd7e(0x2f1)],this[_0x4fbd7e(0x1ba)],this[_0x4fbd7e(0x1ab)],this[_0x4fbd7e(0x386)],!0x1);}}[_0x23cbae(0x107)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x23cbae(0x3fb)](_0x395114){const _0x34e1ad=_0x23cbae;return this[_0x34e1ad(0x1ab)][_0x34e1ad(0x12e)](_0x395114),this;}['onRemoteChangeset'](_0xd561e3){const _0xd919e9=_0x23cbae;return this[_0xd919e9(0x257)]['push'](_0xd561e3),this;}[_0x23cbae(0x449)](_0x5e0f04){const _0x84e8f6=_0x23cbae;if(this[_0x84e8f6(0x1ba)])return this[_0x84e8f6(0x20a)]=this['_awaitingChangeset'],this[_0x84e8f6(0x1ba)]=null,this;throw new Error(_0x84e8f6(0x238));}[_0x23cbae(0x3d6)](_0xecb657){const _0x373fd3=_0x23cbae;return this[_0x373fd3(0x128)](!!(_0xecb657!=null&&_0xecb657['isPermissionRej']));}['toggleOffline'](){const _0x18a48c=_0x23cbae;return this[_0x18a48c(0x171)][_0x18a48c(0x351)](te,this[_0x18a48c(0x1a5)],this['type'],this[_0x18a48c(0x1ba)],this[_0x18a48c(0x1ab)],this[_0x18a48c(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x128)](_0x2fe5f6){const _0x3b3f04=_0x23cbae;return this[_0x3b3f04(0x171)][_0x3b3f04(0x351)](ee,this[_0x3b3f04(0x1a5)],this['type'],this[_0x3b3f04(0x1ba)],this[_0x3b3f04(0x1ab)],this[_0x3b3f04(0x386)],_0x2fe5f6);}};B=_e([m(0x7,_0x57082d(_0x5aca14)),m(0x8,_0x57082d(_0x2056a3)),m(0x9,_0x57082d(w)),m(0xa,_0x2ed9bc),m(0xb,_0x2c218a),m(0xc,_0x2b3c29),m(0xd,_0x3ce5fa)],B);function Fs(_0x58dc6b,_0x31f45c,_0x3aff29,_0x39ca08,_0x288719,_0x378c67){const _0x291bc6=_0x23cbae;return _0x39ca08&&_0x288719['length']?_0x58dc6b[_0x291bc6(0x351)](q,_0x31f45c,_0x3aff29,_0x39ca08,_0x288719,_0x378c67):_0x39ca08?_0x58dc6b[_0x291bc6(0x351)](Q,_0x31f45c,_0x3aff29,_0x39ca08,_0x378c67):_0x288719[_0x291bc6(0xed)]?_0x58dc6b[_0x291bc6(0x351)](X,_0x31f45c,_0x3aff29,_0x288719,_0x378c67):_0x58dc6b[_0x291bc6(0x351)](pe,_0x31f45c,_0x3aff29,_0x378c67);}var Tr=Object[_0x23cbae(0xe2)],Rr=Object[_0x23cbae(0x36a)],Wt=(_0x1d72d0,_0x296701,_0x3a560c,_0x276aaf)=>{for(var _0x23f379=_0x276aaf>0x1?void 0x0:_0x276aaf?Rr(_0x296701,_0x3a560c):_0x296701,_0x2d9a23=_0x1d72d0['length']-0x1,_0x5500b0;_0x2d9a23>=0x0;_0x2d9a23--)(_0x5500b0=_0x1d72d0[_0x2d9a23])&&(_0x23f379=(_0x276aaf?_0x5500b0(_0x296701,_0x3a560c,_0x23f379):_0x5500b0(_0x23f379))||_0x23f379);return _0x276aaf&&_0x23f379&&Tr(_0x296701,_0x3a560c,_0x23f379),_0x23f379;},p=(_0x342ec1,_0x181795)=>(_0x3c7aea,_0x2d5a65)=>_0x181795(_0x3c7aea,_0x2d5a65,_0x342ec1);let qe=class extends _0x3a262a{constructor(_0x3352cd,_0x923b7f,_0x7be85,_0x1f0bf5,_0x27a4bd,_0x210531,_0x12cb47,_0x5ca153,_0x559196,_0xd3061c,_0x1b2ea2,_0x481e49,_0x31ec5b){const _0x5a217e=_0x23cbae;super(),l(this,_0x5a217e(0x2cc),new _0x169308(null)),l(this,_0x5a217e(0x2c9),this[_0x5a217e(0x2cc)][_0x5a217e(0x341)]()),l(this,_0x5a217e(0x155)),l(this,_0x5a217e(0x396),!0x1),l(this,_0x5a217e(0x431),''),l(this,_0x5a217e(0x3b4),0x0),l(this,_0x5a217e(0x19d),this['state$'][_0x5a217e(0x18c)](_0x29443(_0x4cebfd=>_0x4cebfd?_0x4cebfd[_0x5a217e(0x361)]:P['OFFLINE']),_0x153603(0x1))),l(this,_0x5a217e(0x44b),!0x1),l(this,_0x5a217e(0x12a),[]),(this['unitID']=_0x3352cd,this['session']=_0x923b7f,this['_type']=_0x7be85,this[_0x5a217e(0x171)]=_0x1f0bf5,this['_localCacheService']=_0x27a4bd,this['_compressMutationService']=_0x210531,this['_localeService']=_0x12cb47,this[_0x5a217e(0x28a)]=_0x5ca153,this['_logService']=_0x559196,this[_0x5a217e(0x393)]=_0xd3061c,this['_messageService']=_0x1b2ea2,this[_0x5a217e(0x34e)]=_0x481e49,this[_0x5a217e(0x141)]=_0x31ec5b);}get['state'](){const _0x3447b7=_0x23cbae;return this[_0x3447b7(0x155)];}async[_0x23cbae(0x410)](){const _0x3faa7f=_0x23cbae;if(this[_0x3faa7f(0x281)])throw new Error(_0x3faa7f(0x15c));await this[_0x3faa7f(0x383)]();}['pauseCollaboration'](){const _0x5e88b8=_0x23cbae;return this[_0x5e88b8(0x396)]=!0x0,_0xad1b53(()=>{const _0x2722a3=_0x5e88b8;this[_0x2722a3(0x396)]=!0x1,this[_0x2722a3(0x3ef)]();});}['_updateState'](_0x138b5b){const _0x2c6c49=_0x23cbae;this[_0x2c6c49(0x155)]=_0x138b5b,this[_0x2c6c49(0x2cc)]['next'](_0x138b5b);}async[_0x23cbae(0x383)](){const _0x4fa6a=_0x23cbae;var _0x4dce73;this[_0x4fa6a(0x325)](await this[_0x4fa6a(0x1bb)]()),this[_0x4fa6a(0x141)]&&((_0x4dce73=this[_0x4fa6a(0x141)])==null||_0x4dce73[_0x4fa6a(0x169)](this['unitID']),this[_0x4fa6a(0x165)](this['_singleActiveUnitService'][_0x4fa6a(0x2c6)](this[_0x4fa6a(0x1a5)])['subscribe'](_0x2649c8=>{const _0x6de2e5=_0x4fa6a;this[_0x6de2e5(0x135)]['debug'](_0x6de2e5(0x30e),_0x6de2e5(0x3ee),_0x2649c8),_0x2649c8===Bs[_0x6de2e5(0x2ae)]?(this[_0x6de2e5(0x3d5)][_0x6de2e5(0x2bb)]({'content':this[_0x6de2e5(0x151)]['t'](_0x6de2e5(0xd7)),'type':_0x135398['Warning']}),this[_0x6de2e5(0x34e)]['updatePermissionPoint'](new _0x41b6ca(this['unitID'])['id'],!0x1)):this[_0x6de2e5(0x34e)]['updatePermissionPoint'](new _0x41b6ca(this[_0x6de2e5(0x1a5)])['id'],!0x0);})));let _0x7e4fda=!0x1;return this[_0x4fa6a(0x165)](this[_0x4fa6a(0x291)][_0x4fa6a(0x18f)][_0x4fa6a(0x334)](_0x9284de=>{const _0x5bd663=_0x4fa6a;_0x9284de===Y[_0x5bd663(0x12d)]?this[_0x5bd663(0x26a)](_0x7e4fda):_0x9284de===Y['OFFLINE']&&(_0x7e4fda=!0x0,this[_0x5bd663(0xfc)]());})),this[_0x4fa6a(0x165)](this[_0x4fa6a(0x291)][_0x4fa6a(0x29c)]['subscribe'](_0x197f62=>{const _0x91c716=_0x4fa6a;try{switch(_0x197f62[_0x91c716(0x3f0)]){case _0x44cf74['NEW_CHANGESETS']:{this[_0x91c716(0xde)](_0x66b1e7(_0x197f62['data']));break;}case _0x44cf74[_0x91c716(0x198)]:{this[_0x91c716(0x1cc)](_0x197f62['data']);break;}case _0x44cf74[_0x91c716(0x366)]:{this['_onRemoteRejected']();break;}case _0x44cf74[_0x91c716(0x319)]:{this[_0x91c716(0x23c)](_0x197f62['data'][_0x91c716(0x439)]['map'](_0x5b0f97=>_0x66b1e7(_0x5b0f97)));break;}case _0x44cf74[_0x91c716(0x247)]:this[_0x91c716(0x1fa)]({'isPermissionRej':!0x0});}}catch(_0x8d8e47){throw console['error'](_0x91c716(0x125),_0x8d8e47),_0x8d8e47;}})),this[_0x4fa6a(0x155)];}[_0x23cbae(0xe8)](){const _0xb3668c=_0x23cbae;this[_0xb3668c(0x44b)]=!0x1;}[_0x23cbae(0x118)](){const _0x8a0c4f=_0x23cbae;if(this[_0x8a0c4f(0x44b)])throw new Error(_0x8a0c4f(0x348));this[_0x8a0c4f(0x44b)]=!0x0;}['_onLocalMutation'](_0x46b168){const _0x388ede=_0x23cbae;this[_0x388ede(0x118)](),this[_0x388ede(0x325)](this['_state'][_0x388ede(0x3fb)](_0x46b168)),this[_0x388ede(0xe8)]();}[_0x23cbae(0xde)](_0x13d57e){const _0x2a0bb0=_0x23cbae;if(!(_0x13d57e[_0x2a0bb0(0x1d8)]<=this[_0x2a0bb0(0x28a)][_0x2a0bb0(0x305)](this['unitID']))){if(this[_0x2a0bb0(0x396)]){this[_0x2a0bb0(0x12a)][_0x2a0bb0(0x12e)](_0x13d57e);return;}this[_0x2a0bb0(0x400)](_0x13d57e);}}[_0x23cbae(0x3ef)](){const _0x5477c5=_0x23cbae;this[_0x5477c5(0x12a)]['forEach'](_0x427a7e=>this[_0x5477c5(0x400)](_0x427a7e)),this[_0x5477c5(0x12a)]=[];}[_0x23cbae(0x400)](_0xecfcec){const _0x5835c7=_0x23cbae,_0x4fb5c4=this['_compressMutationService'][_0x5835c7(0x1f5)]['fetchThroughInterceptors'](this[_0x5835c7(0x115)]['interceptor'][_0x5835c7(0x293)]()['COMPRESS_MUTATION_APPLY'])(_0xecfcec[_0x5835c7(0x2e4)],null)||_0xecfcec['mutations'],_0x5328ce={..._0xecfcec,'mutations':_0x4fb5c4};this[_0x5835c7(0x118)](),this['_updateState'](this[_0x5835c7(0x155)][_0x5835c7(0x1c3)](_0x5328ce)),this[_0x5835c7(0xe8)]();}['_onRemoteACK'](_0x391570){const _0x5412b8=_0x23cbae;this[_0x5412b8(0x118)](),this['_updateState'](this[_0x5412b8(0x155)][_0x5412b8(0x449)](_0x391570)),this[_0x5412b8(0xe8)]();}['_onRemoteRejected'](_0x549bfb){const _0x5257d7=_0x23cbae;this['_lockTransition'](),this[_0x5257d7(0x325)](this[_0x5257d7(0x155)][_0x5257d7(0x3d6)](_0x549bfb)),this[_0x5257d7(0xe8)]();}[_0x23cbae(0x23c)](_0x341020){const _0x4039ea=_0x23cbae;if(!(this['_state']instanceof B))throw new TypeError(_0x4039ea(0x24c));const _0x3127db=_0x341020['map'](_0x1b1405=>{const _0x37e643=_0x4039ea,_0x7e7247=this['_compressMutationService'][_0x37e643(0x1f5)][_0x37e643(0x206)](this[_0x37e643(0x115)]['interceptor'][_0x37e643(0x293)]()[_0x37e643(0x122)])(_0x1b1405[_0x37e643(0x2e4)],null)||_0x1b1405[_0x37e643(0x2e4)];return{..._0x1b1405,'mutations':_0x7e7247};});this['_lockTransition'](),this[_0x4039ea(0x325)](this['_state'][_0x4039ea(0x3fa)](_0x3127db)),this[_0x4039ea(0xe8)]();}['_toggleOffline'](){const _0x1f33e9=_0x23cbae;this[_0x1f33e9(0x118)](),this[_0x1f33e9(0x325)](this['_state'][_0x1f33e9(0x433)]()),this[_0x1f33e9(0xe8)]();}[_0x23cbae(0x26a)](_0x1e8ded=!0x1){const _0x30e3ff=_0x23cbae;this['_lockTransition'](),this['_updateState'](this[_0x30e3ff(0x155)][_0x30e3ff(0x31a)]()),this['_unlockTransition']();const _0x48abf4=this['_state'];_0x1e8ded&&_0x48abf4 instanceof pe&&(this[_0x30e3ff(0x118)](),this['_updateState'](_0x48abf4[_0x30e3ff(0x1d3)]()),this[_0x30e3ff(0xe8)]());}async[_0x23cbae(0x1bb)](){return new Promise(_0x33b28b=>{const _0x1a9b51=_0x3f49;this[_0x1a9b51(0x291)][_0x1a9b51(0x18f)][_0x1a9b51(0x18c)](_0x333f84(0x1))['subscribe'](async _0x1f650a=>{const _0x3aa4b9=_0x1a9b51;_0x33b28b(await this[_0x3aa4b9(0x167)](_0x1f650a===Y[_0x3aa4b9(0x12d)]));});});}['_createHandler'](){const _0x427428=_0x23cbae,_0x2a06ce=this[_0x427428(0x1a5)];return{'onStateChange':(_0x4a01bb,_0x2dfa3d)=>{const _0x273d8e=_0x427428;if(_0x4a01bb!==this['_state'])throw new Error(_0x273d8e(0x409)+_0x4a01bb[_0x273d8e(0x361)]+_0x273d8e(0x15a)+_0x2dfa3d[_0x273d8e(0x361)]+'\x0aCurrent:\x20'+this['_state'][_0x273d8e(0x361)]);this[_0x273d8e(0x325)](_0x2dfa3d);},'onSendChangeset':_0x3770d3=>{const _0x3907e8=_0x427428;_0x3770d3['sid']||(_0x3770d3[_0x3907e8(0x1bf)]=this[_0x3907e8(0x431)],_0x3770d3['reqId']=++this['_changesetReqId']);const _0x41d253={'eventID':_0x44cf74['SUBMIT_CHANGESET'],'data':{'unitID':_0x3770d3[_0x3907e8(0x1a5)],'unitType':this[_0x3907e8(0x1e9)],'changeset':_0x3770d3,'memberID':this['session'][_0x3907e8(0x375)]()}};this[_0x3907e8(0x291)]['send'](_0x41d253,this[_0x3907e8(0x1a5)]);},'onMissingChangesets':({from:_0x559fe8,to:_0x2bc3ae})=>{const _0xf35a91=_0x427428;this['_logService']['debug'](_0xf35a91(0x30e),_0xf35a91(0x186)+_0x559fe8+_0xf35a91(0x392)+_0x2bc3ae);const _0x47bc1d={'eventID':_0x44cf74[_0xf35a91(0x417)],'data':{'unitID':_0x2a06ce,'unitType':this[_0xf35a91(0x1e9)],'from':_0x559fe8,'to':_0x2bc3ae}};this[_0xf35a91(0x291)]['send'](_0x47bc1d,this['unitID']);}};}async['_createInitialStateImpl'](_0x4b5bdc){const _0x579ab4=_0x23cbae;var _0x4e89e2,_0x1ce17d;const _0x290d1a=await this[_0x579ab4(0x279)][_0x579ab4(0x2b7)](this[_0x579ab4(0x1a5)]),_0x280bf1=(_0x4e89e2=_0x290d1a==null?void 0x0:_0x290d1a[_0x579ab4(0x2e4)])!=null?_0x4e89e2:[],_0xef888f=(_0x1ce17d=_0x290d1a==null?void 0x0:_0x290d1a[_0x579ab4(0x34a)])!=null?_0x1ce17d:null,_0x149162=!!(_0xef888f!=null&&_0xef888f[_0x579ab4(0x1bf)])&&!!(_0xef888f!=null&&_0xef888f[_0x579ab4(0x26b)]);this[_0x579ab4(0x431)]=_0x149162?_0xef888f[_0x579ab4(0x1bf)]:ir(),this[_0x579ab4(0x3b4)]=_0x149162?_0xef888f[_0x579ab4(0x26b)]:0x0;const _0x3b0515=this[_0x579ab4(0x1a5)];try{this[_0x579ab4(0x1e8)](_0xef888f,_0x280bf1);}catch(_0x571fdc){this[_0x579ab4(0x135)][_0x579ab4(0x43f)](_0x571fdc);}const _0xf3e500=this[_0x579ab4(0x296)]();if(_0x4b5bdc){const _0x2834fd=Fs(this[_0x579ab4(0x171)],_0x3b0515,this[_0x579ab4(0x1e9)],_0xef888f,_0x280bf1,_0xf3e500);return _0x2834fd instanceof X?_0x2834fd[_0x579ab4(0x2c8)]():(_0x2834fd instanceof q||_0x2834fd instanceof Q)&&_0x2834fd[_0x579ab4(0x107)](),_0x2834fd;}return this[_0x579ab4(0x171)]['createInstance'](te,_0x3b0515,this[_0x579ab4(0x1e9)],_0xef888f,_0x280bf1,_0xf3e500);}['_replayCachedMutations'](_0x24712c,_0x3bf401){const _0x66f800=_0x23cbae;var _0x2b6407,_0xbd4e25;const _0x5b6400=this[_0x66f800(0x115)][_0x66f800(0x1f5)][_0x66f800(0x206)](this[_0x66f800(0x115)][_0x66f800(0x1f5)][_0x66f800(0x293)]()['COMPRESS_MUTATION_APPLY']);(_0x2b6407=_0x5b6400((_0x24712c==null?void 0x0:_0x24712c[_0x66f800(0x2e4)])||[],null))==null||_0x2b6407['forEach'](_0x1d20a6=>this[_0x66f800(0x393)][_0x66f800(0x1ad)](_0x1d20a6['id'],_0x1d20a6[_0x66f800(0x1e4)])),(_0xbd4e25=_0x5b6400(_0x3bf401||[],null))==null||_0xbd4e25[_0x66f800(0x273)](_0x55de1d=>this[_0x66f800(0x393)][_0x66f800(0x1ad)](_0x55de1d['id'],_0x55de1d[_0x66f800(0x1e4)]));}};qe=Wt([p(0x3,_0x57082d(_0x5aca14)),p(0x4,_0x57082d(w)),p(0x5,_0x57082d(_0xa37832)),p(0x6,_0x57082d(_0x1ba649)),p(0x7,_0x57082d(_0x2056a3)),p(0x8,_0x2ed9bc),p(0x9,_0x2c218a),p(0xa,_0x2493e9),p(0xb,_0x3b2db3),p(0xc,_0x187eb8(tt))],qe);let Tt=class extends qe{constructor(_0x3d4b0b,_0x4a4ca0,_0xd90e70,_0x358c0a,_0x4eaf91,_0x1961bf,_0x35d7b1,_0x172a50,_0x7182c2,_0xa0f2f0,_0x22bd0c,_0x39d944,_0x5b2e11,_0x211ab2,_0x13e623,_0x28d440,_0x20a525){const _0x15f0b6=_0x23cbae;super(_0x3d4b0b,_0xd90e70,_0x4a4ca0,_0x358c0a,_0x4eaf91,_0x1961bf,_0x35d7b1,_0x172a50,_0x5b2e11,_0x211ab2,_0x13e623,_0x28d440,_0x20a525),this[_0x15f0b6(0x1a5)]=_0x3d4b0b,this['type']=_0x4a4ca0,this['_docStateChangeManagerService']=_0x7182c2,this[_0x15f0b6(0x2cd)]=_0xa0f2f0,this[_0x15f0b6(0x355)]=_0x22bd0c,this[_0x15f0b6(0x31f)]=_0x39d944;}[_0x23cbae(0x296)](){const _0x3a6e65=_0x23cbae,_0x29b6f1=super['_createHandler']();return _0x29b6f1[_0x3a6e65(0x15f)]=_0x5340c0=>this['_docTransformIMECacheService'][_0x3a6e65(0x14c)](_0x5340c0),_0x29b6f1[_0x3a6e65(0x246)]=_0x584ddb=>this[_0x3a6e65(0x355)][_0x3a6e65(0x3f8)](_0x584ddb),_0x29b6f1[_0x3a6e65(0x15e)]=_0x47ad5a=>this['_docSyncEditingCollabCursorService'][_0x3a6e65(0x427)](_0x47ad5a),_0x29b6f1[_0x3a6e65(0x13a)]=_0x385712=>this[_0x3a6e65(0x2cd)][_0x3a6e65(0x241)](_0x385712),_0x29b6f1;}async[_0x23cbae(0x383)](){const _0x197475=_0x23cbae,_0x1b4f3d=await super[_0x197475(0x383)]();return this[_0x197475(0x1c1)][_0x197475(0x26c)][_0x197475(0x18c)](_0x5b993c(this['dispose$']))['subscribe'](_0x59ea7f=>{const _0xc3672d=_0x197475;if(_0x59ea7f==null)return;const {unitId:_0x370ac4,redoState:_0x33cbed,commandId:_0x299445}=_0x59ea7f;if(_0x370ac4!==this['unitID'])return;const _0x1d2069={'id':_0x299445,'type':_0x406a66[_0xc3672d(0x411)],'params':{'unitId':_0x370ac4,'actions':_0x33cbed[_0xc3672d(0x347)],'textRanges':null}};this[_0xc3672d(0x156)](_0x1d2069);}),_0x1b4f3d;}};Tt=Wt([p(0x3,_0x57082d(_0x5aca14)),p(0x4,_0x57082d(w)),p(0x5,_0x57082d(_0xa37832)),p(0x6,_0x57082d(_0x1ba649)),p(0x7,_0x57082d(_0x2056a3)),p(0x8,_0x57082d(_0x2e5857)),p(0x9,_0x57082d(Ye)),p(0xa,_0x57082d(Xe)),p(0xb,_0x57082d(Ft)),p(0xc,_0x2ed9bc),p(0xd,_0x2c218a),p(0xe,_0x2493e9),p(0xf,_0x3b2db3),p(0x10,_0x187eb8(tt))],Tt);let Rt=class extends qe{constructor(_0x55c5fe,_0x32e73f,_0xfcce50,_0x30d525,_0x4ca23a,_0x5e8713,_0x5b7a68,_0x2c40c8,_0x29fa6d,_0xa36a9c,_0x220c34,_0x3d02f5,_0x1c05a7,_0x5c8499){const _0x10b96a=_0x23cbae;super(_0x55c5fe,_0xfcce50,_0x32e73f,_0x30d525,_0x4ca23a,_0x5e8713,_0x5b7a68,_0x2c40c8,_0xa36a9c,_0x220c34,_0x3d02f5,_0x1c05a7,_0x5c8499),this[_0x10b96a(0x1a5)]=_0x55c5fe,this[_0x10b96a(0x2f1)]=_0x32e73f,this[_0x10b96a(0x430)]=_0x29fa6d;}[_0x23cbae(0x296)](){const _0x3bb5dc=_0x23cbae,_0x5d18d0=super['_createHandler']();return _0x5d18d0['onTransformSelections']=_0x73fe9c=>this[_0x3bb5dc(0x430)][_0x3bb5dc(0x3f8)](_0x73fe9c),_0x5d18d0;}async[_0x23cbae(0x383)](){const _0x2761e9=_0x23cbae,_0x4b0717=await super['_init']();return this[_0x2761e9(0x165)](this['_commandService']['onCommandExecuted']((_0x26e755,_0x49f757)=>{const _0x18ce5b=_0x2761e9;if(_0x26e755[_0x18ce5b(0x2f1)]!==_0x406a66[_0x18ce5b(0x411)]||_0x49f757!=null&&_0x49f757[_0x18ce5b(0x176)]||_0x49f757!=null&&_0x49f757[_0x18ce5b(0x1c5)])return;const _0x553fd6=_0x26e755[_0x18ce5b(0x1e4)];if((_0x553fd6==null?void 0x0:_0x553fd6[_0x18ce5b(0x37e)])!==this['unitID'])return;const _0x4289e8=_0x26e755,_0x2b4b4a=this[_0x18ce5b(0x115)][_0x18ce5b(0x1f5)][_0x18ce5b(0x206)](this[_0x18ce5b(0x115)][_0x18ce5b(0x1f5)][_0x18ce5b(0x293)]()[_0x18ce5b(0x1db)])([_0x4289e8],null)||[_0x4289e8];this['_onLocalMutation'](_0x2b4b4a[0x0]);})),_0x4b0717;}};function _0x6cb7(){const _0x14c6f1=['visibilitychange','CONNECTOR_DATA_TOO_LARGE','_removeRoom','joinEvent','OTHER_CLIENTS_EDITING','text','exhaustSavingTask','&to=','_timeoutTimer','_listenToOnlineEvent','backgroundColor','ALREADY_EXISTS','values','loadOfflineData','collaboration.closeRoom','_cursorShapes','getRandomValues','show','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','arc','_substituteRedoStack','transformMutation','registerOnClose','onMissingChangesets','close','8764767vGUqes','_stopTelemetryCollaborationNewChangeset','APPLY_REVISION_CONFILICT','getUnitStatus$','create','_schedule','state$','font','_initStatusComponent','_state$','_docTransformIMECacheService','_univerInstanceService','getRangePointData','_unitStatus','saveOfflineData','colorChannel1','socket$','_getSnapshotAPIPrefix','c1Prime','setTimeout','update','1652532fdZqTi','bind','SNAPSHOT_INVALID_SNAPSHOT','univer-pro.collaboration-client-socket-service','defs','LICENSE_IMPORT_SIZE_EXCEEDED','_cachedData','_rescheduleHeartbeat','JOIN','getAncestorScale','LOCAL_CACHE_INTERVAL','_heartbeatTimer','mutations','searchParams','use','[PendingState]:\x20received\x20acknowledgement.','concat','_fetchMissChangesets','evenodd','conflict.content','COLLAB_SUBMIT_CHANGESET_URL','_colorAssignService','BASE64','_showConflictNotification','_renderManagerService','type','_context','updatePermissionObjEvent','_memberService','_transformService','_sessions','_roomMembers$','onPointerMove$','disableLocalCache','awaiting','_onCombEvent','storage','origin','UNIVER_SLIDE','_updateSubUnitFromURLParams','updateMember','unknown','add','allowed','_docSkeletonManagerService','getCurrentRevOfUnit','lineTo','object','skeleton','readAsDataURL','putCollaborators','setItem','_retryConnectingTimer','onRendered','[CollaborationEntity]','&source=','_event$','_clearLocalCache','reconnect','_collabCursorState$','MSG_FOR_ERROR','result','from','off-line-single','collabStatus.offline','PSEUDO_FETCH_MISSING_RESULT','toggleOnline','roomMembers','_initUnitPermissionChange','HttpExport','addObjects','_docSyncEditingCollabCursorService','not_collab','jiqing500','_clearRedo','getParam','getTime','_updateState','pushState','[UniverCollaborationClientPlugin]','_getLoginPath','removeMember','_shouldReportTelemetry','fillStyle','[CollaborationSession]','data','_setupBeforeClosingHandler','_clearHeartbeatTimer','DEFAULT_FILE_NAME','collabStatus.conflict','getOffsetConfig','ENSURE_SNAPSHOT_EXECUTION','subscribe','COMMENT_UPDATE','_cursorInfo$','subunit','getDocRanges','SUCCUSS','[DataLoaderController]','Error','on-line-single','/universer-api/stream/file/upload','_removeCollabCursors','_syncEditingCollabCursor','_collaborationController','asObservable','session.collaboration-timeout','RECV','_updateLocalCursor','_collabCursorController','416854hcwcFP','actions','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','fillRule','awaitingChangeset','#FFF','members','UNIVER_SHEET','_permissionService','SHOULD_CLOSE_CONN','_send','createInstance','path','telemetry\x20info\x20is\x20not\x20initialized','joinRsp','_docTransformSelectionsService','contains','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','conflict','blue400','dispose','rev','override','replace','_tryReconnect','xlink:href','_scheduleSaving','status','whenReady','selection','POST','file','CHANGESET_REJ','headers','UNDEFINED','synced','getOwnPropertyDescriptor','_initCommandExecutedListener','startsWith','addObject','measureText','getUndoRedoMutationParamsCache','_clearOtherTimers','filter','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_refreshCollabCursors','url(#off-line-single_clip0_910_343)','getMemberID','selections','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','TOO_MANY_REQUESTS','_updateStatus','labelPosition','loginUrlKey','ERROR_EXCEED_SIZE','_urlService','unitId','_waitForHeartbeatResponse','_onCursorDelete','4016YZoxUf','\x20in\x20_schedule.','_init','9724dEKmAH','getCurrentSelections','_handler','_initMergeInterceptor','_unitOnClients','message$','_updateCollabCursors','_beforeCloseService','onStarting','_unitID','registerBeforeClose','_getDownloadEndpointURL','createCollaborator','deleteCollaborator','\x20to\x20','_commandService','_sendHeartbeat','setCurrentUser','_collaborationPaused','collabStatus.syncing','_eventUnsubscribe','transformChangesets','_createSocket','reduce','visibilityState','getCollabEntity','LOGIN_URL_KEY','_transformIMECache','getMember','_hovered','round','UNIVER_UNKNOWN','/object/','_color','onPointerEnter$','Unknown\x20user','onlineStatusTitle','ERROR_IMAGE_TYPE','_getAPIPrefixPath','collaboratorID','drawWith','_scheduleTimestamp','_transformStack','setShapeProps','PERMISSION_DENIED','_checkMissing','location','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_changesetReqId','_socket','_joinRoom','_registerRenderDependencies','sheetID','univerjs-icon\x20univerjs-icon-','_substituteUndoStack','_clearScheduledTask','displayName','resolve','color','image/png','retryConnectingInterval','now','[FetchMissState]','assignAColorForMemberID','onlineStatus','SNAPSHOT_SERVER_URL_KEY','randomUUID','flatMap','_scheduleCollaborationTimeoutTimer','substring','unitId\x20is\x20not\x20found','SYNCED','transformMutationsWithChangeset','_range','pending','image/bmp','max','all','/object','_initStatusListener','fetch_missing','_messageService','onRemoteRej','registerHTTPInterceptor','YUUMI_RATE_OVER_LIMIT','HEARTBEAT_TIMEOUT','_sendHeartbeatTimer','RemoveColCommandId','_docSkeleton','_members','div','_backgroundColor','_drawAnchor','stopTime','getSkeleton','min','hidden','?size=','some','_redoStacks','m1Prime','commentUpdate$','parse','univer-online-status-icon','_removeClearOtherTimer','USERS_ENTER','editing\x20status\x20changed\x20to','_exhaustRemoteChangesetQueue','eventID','getActiveSheet','/block/','getRelativeToViewportCoord','/universer-api/oidc/authpage','_getSignURL','APPLY_PERMISSION_DENIED','code','transformSelections','_submitChangeset','onMissedChangesetFetched','appendMutation','replaceState','get','getTypeOfUnitDisposed$','_collaborationSessionService','_applyRemoteChangeset','DeleteRangeMoveLeftCommandId','/resources','[CollaborationSessionService]','height','_initEventListeners','[SyncedState]:\x20received\x20rejection.','_onConnectionOpen','_id','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','row','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','NOT_FOUND','clipPath','cursorInfo','_entityInit$','init','MUTATION','on-line-single_clip0_910_349','_change$','toString','deepClone','_userManagerService','FETCH_MISSING','_socketService','getFocusedUnit','APPLY_NON_SEQUENTIAL_REVISION','_onRefRangeChange','_lastPointer','map','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','split','UNIVER_PROJECT','_getCtorByUniverType','enableSingleActiveInstanceLock','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','UnitSnapshot','collabStatus.synced','triggerDblclick','syncEditingCollabCursor','onCommandExecuted','_roomMembers','onSendChangeset','c2Prime','_snapshotServerService','_config','toRgbString','_transformPreviousActiveRange','_sheetTransformSelectionsService','_changesetSessionId','collaboration-session-retry','toggleOffline','apply','setAlpha','UPDATE_PERMISSION_OBJ','getCollabCursors$','_httpService','changesets','createSocket','purple300','_handleEvent','clearTimeout','_collabSessionService','error','_render','userID','[CollaborationUndoRedoService]','/collaborator','CONFLICT','_tryEnsureSocket','enableLocalCache','Univer','debug','onRemoteAck','InsertRowCommandId','_transitionLocked','_configService','collabWebSocketUrl','LICENSE_DISTRO_REJECTED','_hideTimer','_http','collaboration.single-unit.warning','getViewport','image/jpeg','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','createElement','_shapes','resize','_onRemoteChangeset','/unit/','updateOfflineData','capture','defineProperty','univer-online','_handleHover','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','UNIVER_COLLABORATION_CLIENT_PLUGIN','closePath','_unlockTransition','save\x20fail\x20reason\x20is\x20','extend','url(#on-line-single_clip0_910_349)','LIVESHARE_NEW_HOST','length','newCsEvent','_transformUndoRedoStack','transformStack\x20failed!','_telemetryService','LIVESHARE_FETCH_OPERATIONS','_scheduleHeartbeat','range','socketService','hide','getVpScrollXYInfoByPosToVp','YUUMI_SUBSCRIPTION_NOT_FOUND','refreshPermission','getUnitType','replaceTextRanges','_toggleOffline','1697680SplqoJ','_loadDoc','closeSession','_startTelemetryCollaborationNewChangeset','collab-rect-range-','url(#$1','disposeUnit','memberID','off-line-single_clip0_910_343','permissionRejEvent','resend','onPointerLeave$','collabStatus.notCollab','session.will-retry','_sheetSkeletonManagerService','_socket$','_listenToOfflineEvent','reject','getCurrentUnitForType','INVALID_ARGUMENT','set','_onRecvEvent','send','ERROR_IMAGE','_compressMutationService','socket\x20close','tag','_lockTransition','_sendingTimer','number','size','catch','liveShareNewHost','_anchor','slice','FETCH_MISS','1em','COMPRESS_MUTATION_APPLY','findNodePositionByCharIndex','clearInterval','Error\x20on\x20receiving\x20event','transformByState','onTransformChange$','_onConflict','285jgueZF','_remoteChangesetQueue','updatePermissionPoint','LEAVE','ONLINE','push','UNIVER_DOC','icon','next','socket\x20open.','_online','collaboration_new_changeset','_logService','_onUserJoin','/new_changes','className','_telemetryInfo','onTransformRemoteChangesetByIMECache','getCollabEntity$','InsertColCommandId','_getScale','listCollaborators','resourceIDs','_cursor','_singleActiveUnitService','_textBubble','assign','commentUpdateEvent','HELLO','_updateURLWithCurrentState','trim','indexOf','then','_session','_startCollaboration','transformIMECache','cursorInfo$','_hover','baseRev','routeKey','_localeService','localeService','Warning','unshift','_state','_onLocalMutation','DeleteRangeMoveUpCommandId','collaboration-client.offline-data-not-saved','_transformUndoredo','\x0aAfter:\x20','has','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','responseType','onSyncEditingCollabCursor','onTransformIME','PENDING','error$','cmd','getSheetBySheetId','fetchMissingChangesets','disposeWithMe','_getSendChangesetTimeout','_createInitialStateImpl','_assignedColors','editingUnit','/rev/','history','transformUndoRedo','objectActions','authzUrl','dispose$','getItem','_injector','_onConnectionFailed','complete','collab-text-anchor-','objectID','fromCollab','getCurrentUser','_commentService','getOwnPropertySymbols','getActiveRange','onMouseMove','connection\x20error','univer-online-status','_HTTPService','_decreaseWaiting','_onOffline','_executeRemoteChangeset','/universer-api/file/{fileID}/sign-url','getUnitId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','snapshot','fetching\x20missing\x20changesets\x20from\x20','_saveCache','_throwTelemetryCollaborationNewChangeset','getCurrent','stringify','prototype','pipe','idSuffix','_cursors','sessionStatus$','setWaitCount','\x20-\x20','YUUMI_URL_COL_OUT_OF_RANGE','_getMergeRange','change$','_anchorDot','loadDoc','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CHANGESET_ACK','0\x200\x2017\x2016','_incrementRevisionNumber','roomMembers$','_initResize','status$','uploadFileServerUrl','propertyIsEnumerable','getRenderById','getTypeOfUnitAdded$','name','ACTIVE_UNIT_EVENT_CHANNEL','_getSaveTimeout','unitID','INGEST','_initCloseConn','delete','OFFLINE','conflict.title','_pendingMutations','csRejEvent','executeCommand','rng','_clearUndo','m2Prime','UnitEmbedded','getResourcesRequest','_themeService','INTERNAL_ERROR','RETRY_CONNECTING_MAX_COUNT','url','auth.needGotoLoginAlert','OffLineSingle','isActive','_awaitingChangeset','_createInitialState','originalMeta','_socketReady','_sessionStatus$','sid','_getSheetObject','_docStateChangeManagerService','_onCursorUpdate','onRemoteChangeset','currentSkeleton$','onlyLocal','session.connection-failed','UUID','copyFileMeta','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','listRoles','getUnhiddenWorksheets','_onRemoteACK','leaveEvent','_candidateSocket','_handleHeartbeatEvent','awaiting_with_pending','getDeserializedSheetBlock','symbol','fetchMiss','UPDATE_CURSOR','entries','NEW_CHANGESETS','registerRenderModule','revision','getValue','width','COMPRESS_MUTATION_SEND','permission.content','save','/role','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_transformRemoteChangesetByIMECache','unload','_socketMessageSubscription','collab-text-range-','params','post','close$','#fff','_replayCachedMutations','_type','_transformSelections','collab-client.tooltip.reconnect','json','none','subUnitId','initWorkbookPermissionChange','UNKNOWN_CMD','_scene','SUBMIT_CHANGESET','children','key','interceptor','body','getMergeData','textRanges','getRoom','_onRemoteRejected','/allowed','call','_getAnchorBounding','FileId','getSheetId','doc.mutation.rich-text-editing','_refRangeService','_getRedoStack','objectType','function','subscribeEvent','fetchThroughInterceptors','sessionStatus','newValue','_colorIndex','_acknowledgedAwaitingChangeset','CHANGESET_REVISION_CONFILICT','_name','ws://127.0.0.1:8000/universer-api/comb/connect','&assign=','LIVESHARE_TERMINATE','15813hrxDBK','LICENSE_MAX_UNITS_EXCEEDED','_localStorageService','_drawRectRange','_handleJoinEvent','_getAPIPrefix','_undoRedoService','defIds','isArray','_imageSourceCache','FAIL','column','top','unit','_retryCount','_snapshotService','put','unsubscribe','restore','roomInfos','roles','_handleLeaveEvent','isPermissionRej','string','LICENSE_EXPORT_SIZE_EXCEEDED','_entities','NO_OTHER_CLIENTS_EDITING','_clearTimeoutTimer','getLatestCsReqIdBySid','LIVESHARE_OPERATION','SNAPSHOT_URL_KEY','focused$','fill','RemoveRowCommandId','FromArray','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_drawTextRange','AUTHZ_URL_KEY','requireSession','_selfUnitIDs','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','engine','isEditing','_commentUpdate$','_onFetchMissResult','uni.network.url-service','black','offline','online','transformRemoteChangeset','_ws','hasOwnProperty','AWAITING','loadSheet','onTransformSelections','PERMISSION_REJ','currentTheme$','_getUndoStack','{fileID}','image/gif','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','action','_updateLocalCache','attrs','batchAllowed','beginPath','popstate','_saveTaskMap','VIEW_MAIN','_labelPosition','_queuedRemoteChangesets','_disableEditing','generateRandomId','USERS_LEAVE','onCommentUpdate','csAckEvent','_collaborationTimeoutTimer','/universer-api/comb','_scheduleClearOtherTimer','enableOfflineEditing','requestParams','_startSheetCollabCursor','clear','x-univer-host','find','getConfig','_onUserLeave','/-/object/-/batch_allowed','HttpImport','_toggleOnline','reqId','docStateChange$','HEARTBEAT','NOT_COLLAB','saveChangeset','HEADER_MENU','IDLE','onlineStatusIcon','forEach','MoveRangeCommandId','_clearCollaborationTimeoutTimer','collabSubmitChangesetUrl','addEventListener','encodeURIComponent','_localCacheService','[SyncedState]:\x20received\x20acknowledgement.','collaborators','_onMessage','includes','_ensureSubject','AWAITING_WITH_PENDING','APPLY_DUPLICATED','state','_initRequestHeader','encode','getImage','_notificationService','getUnitOnRev','makeDirty','_getCurrentRevision','...','_revisionService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_registerDependencies','_waitCount','with','M0\x200H16V16H0z','_status$','session','collabCursorState$','getInterceptPoints','saveImage','failed\x20to\x20apply\x20missed\x20changesets!','_createHandler','UNRECOGNIZED','_disabled','_replaceFileID','SNAPSHOT_HAS_BEEN_REMOVED','ranges','event$','4401096QvzstK','currentColor','_undoStacks','href','_isPermissionRej','open$','YUUMI_UNABLE_LOAD_URL','bottom','random','setParam','UNAUTHENTICATED','_instanceService','UNKNOWN_CODE'];_0x6cb7=function(){return _0x14c6f1;};return _0x6cb7();}Rt=Wt([p(0x3,_0x57082d(_0x5aca14)),p(0x4,_0x57082d(w)),p(0x5,_0x57082d(_0xa37832)),p(0x6,_0x57082d(_0x1ba649)),p(0x7,_0x57082d(_0x2056a3)),p(0x8,_0x57082d(Ke)),p(0x9,_0x2ed9bc),p(0xa,_0x2c218a),p(0xb,_0x2493e9),p(0xc,_0x3b2db3),p(0xd,_0x187eb8(tt))],Rt);var Or=Object[_0x23cbae(0xe2)],Dr=Object[_0x23cbae(0x36a)],wr=(_0x4105d5,_0x521fa2,_0x215ffe,_0x4c56c9)=>{const _0x2bc275=_0x23cbae;for(var _0x586dc3=_0x4c56c9>0x1?void 0x0:_0x4c56c9?Dr(_0x521fa2,_0x215ffe):_0x521fa2,_0xc9003f=_0x4105d5[_0x2bc275(0xed)]-0x1,_0xabfc0c;_0xc9003f>=0x0;_0xc9003f--)(_0xabfc0c=_0x4105d5[_0xc9003f])&&(_0x586dc3=(_0x4c56c9?_0xabfc0c(_0x521fa2,_0x215ffe,_0x586dc3):_0xabfc0c(_0x586dc3))||_0x586dc3);return _0x4c56c9&&_0x586dc3&&Or(_0x521fa2,_0x215ffe,_0x586dc3),_0x586dc3;},_t=(_0xb3699b,_0x1ac08f)=>(_0x88c3f9,_0xce38c3)=>_0x1ac08f(_0x88c3f9,_0xce38c3,_0xb3699b);let Le=class extends _0x3a262a{constructor(_0x59c4bb,_0x476683,_0x26f1a8){const _0x2054ee=_0x23cbae;super(),l(this,'_entities',new Map()),l(this,_0x2054ee(0x40f),new _0x4061c1()),(this[_0x2054ee(0x171)]=_0x59c4bb,this[_0x2054ee(0x43e)]=_0x476683,this[_0x2054ee(0x2ce)]=_0x26f1a8,this[_0x2054ee(0x383)]());}['dispose'](){const _0x242d5c=_0x23cbae;super['dispose'](),this[_0x242d5c(0x229)]['forEach'](_0x3842e0=>_0x3842e0['dispose']()),this[_0x242d5c(0x229)][_0x242d5c(0x263)]();}['getCollabEntity'](_0x1d6795){const _0x49784f=_0x23cbae;var _0x2676ba;return(_0x2676ba=this[_0x49784f(0x229)][_0x49784f(0x3fd)](_0x1d6795))!=null?_0x2676ba:null;}[_0x23cbae(0x13b)](_0x2a3abf){const _0x5d74a5=_0x23cbae,_0x15ac0f=this[_0x5d74a5(0x39d)](_0x2a3abf);return _0x15ac0f?_0x4a5add(_0x15ac0f):this[_0x5d74a5(0x40f)]['pipe'](_0x4eb371(_0x39324a=>_0x39324a[_0x5d74a5(0x1a5)]===_0x2a3abf));}['_init'](){const _0x169701=_0x23cbae;this[_0x169701(0x2ce)][_0x169701(0x1a1)](_0x2eb231['UNIVER_SHEET'])[_0x169701(0x18c)](_0x5b993c(this['dispose$']),_0x3f8011(0x10))['subscribe'](async _0x4f2999=>{const _0x3988e3=_0x169701,_0x2b6196=_0x4f2999[_0x3988e3(0x183)](),_0x4fcfb7=await this[_0x3988e3(0x14b)](_0x2b6196,k[_0x3988e3(0x34d)]);this['_entities'][_0x3988e3(0x111)](_0x2b6196,_0x4fcfb7);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2eb231[_0x169701(0x12f)])[_0x169701(0x18c)](_0x5b993c(this[_0x169701(0x16f)]),_0x3f8011(0x10))[_0x169701(0x18c)](_0x4eb371(_0x1ad883=>!_0x1ad883['getUnitId']()[_0x169701(0x36c)]('__')))['subscribe'](async _0x3eb02f=>{const _0x17dc4a=_0x169701,_0x3a144f=_0x3eb02f['getUnitId'](),_0x6e0d1d=await this[_0x17dc4a(0x14b)](_0x3a144f,k['UNIVER_DOC']);this[_0x17dc4a(0x229)]['set'](_0x3a144f,_0x6e0d1d);}),_0x395f71(this[_0x169701(0x2ce)]['getTypeOfUnitDisposed$'](_0x2eb231[_0x169701(0x34d)]),this[_0x169701(0x2ce)][_0x169701(0x3fe)](_0x2eb231['UNIVER_DOC']))[_0x169701(0x18c)](_0x5b993c(this[_0x169701(0x16f)]))['subscribe'](_0xf0575a=>{const _0x510c4b=_0x169701,_0x47970d=_0xf0575a['getUnitId'](),_0x1e3f3a=this['_entities'][_0x510c4b(0x3fd)](_0x47970d);_0x1e3f3a&&(_0x1e3f3a[_0x510c4b(0x35a)](),this[_0x510c4b(0x229)]['delete'](_0x47970d));});}async[_0x23cbae(0x14b)](_0x323584,_0x58dc0a){const _0x5eec04=_0x23cbae,_0x32ba5e=await this[_0x5eec04(0x43e)][_0x5eec04(0x236)](_0x323584),_0x1fcba8=this[_0x5eec04(0x171)]['createInstance'](this['_getCtorByUniverType'](_0x58dc0a),_0x323584,_0x58dc0a,_0x32ba5e);return await _0x1fcba8['init'](),this[_0x5eec04(0x40f)][_0x5eec04(0x131)](_0x1fcba8),_0x1fcba8;}[_0x23cbae(0x421)](_0x296006){const _0x42cded=_0x23cbae;switch(_0x296006){case k[_0x42cded(0x12f)]:return Tt;case k[_0x42cded(0x34d)]:return Rt;default:throw new Error(_0x42cded(0x377)+_0x296006);}}};Le=wr([_t(0x0,_0x57082d(_0x5aca14)),_t(0x1,_0x57082d(he)),_t(0x2,_0xf0f4c1)],Le);const fs=[_0x23cbae(0x43b),_0x23cbae(0x321),'verdancy600','red300',_0x23cbae(0x359),'gold400'];class Gt extends _0xbfc176{constructor(){const _0x16a72b=_0x23cbae;super(...arguments),l(this,_0x16a72b(0x168),new Map()),l(this,_0x16a72b(0x209),0x0);}[_0x23cbae(0x3c3)](_0x13c90d){const _0x3ae7a2=_0x23cbae;if(this[_0x3ae7a2(0x168)][_0x3ae7a2(0x15b)](_0x13c90d))return this[_0x3ae7a2(0x168)][_0x3ae7a2(0x3fd)](_0x13c90d);const _0x974e32=fs[this[_0x3ae7a2(0x209)]];return this[_0x3ae7a2(0x209)]=(this[_0x3ae7a2(0x209)]+0x1)%fs['length'],this[_0x3ae7a2(0x168)][_0x3ae7a2(0x111)](_0x13c90d,_0x974e32),_0x974e32;}}var Pr=Object[_0x23cbae(0xe2)],yr=Object[_0x23cbae(0x36a)],Ur=(_0x3b6bf9,_0x187914,_0x154edf,_0xc2fc65)=>{const _0x41fec0=_0x23cbae;for(var _0x314ed7=_0xc2fc65>0x1?void 0x0:_0xc2fc65?yr(_0x187914,_0x154edf):_0x187914,_0xa40450=_0x3b6bf9[_0x41fec0(0xed)]-0x1,_0x57ade5;_0xa40450>=0x0;_0xa40450--)(_0x57ade5=_0x3b6bf9[_0xa40450])&&(_0x314ed7=(_0xc2fc65?_0x57ade5(_0x187914,_0x154edf,_0x314ed7):_0x57ade5(_0x314ed7))||_0x314ed7);return _0xc2fc65&&_0x314ed7&&Pr(_0x187914,_0x154edf,_0x314ed7),_0x314ed7;},ie=(_0x557c07,_0xa96fc1)=>(_0x2dc0c7,_0x2d4d9e)=>_0xa96fc1(_0x2dc0c7,_0x2d4d9e,_0x557c07);const Nr=0x12c,Mr=0x64;let Ot=class extends _0x3a262a{constructor(_0x5b4c91,_0x3f0c90,_0x2b59b2,_0x390848,_0x296585,_0x2a3ca4,_0x4490a1,_0xd094c2,_0x5ea8be){const _0x3ba4ff=_0x23cbae;super(),l(this,_0x3ba4ff(0x133),!0x1),l(this,_0x3ba4ff(0x383),!0x1),l(this,'_cursorInfo$',new _0x169308(new Map())),l(this,'cursorInfo$',this[_0x3ba4ff(0x336)][_0x3ba4ff(0x341)]()),l(this,'_roomMembers$',new _0x169308([])),l(this,_0x3ba4ff(0x19b),this[_0x3ba4ff(0x2f7)]['pipe'](_0x43ba67(Nr))),l(this,_0x3ba4ff(0x344),_0x23acc5(_0x39a641=>{const _0x86a43e=_0x3ba4ff,_0x5746b9={'eventID':_0x44cf74[_0x86a43e(0x1d4)],'data':{'unitID':this['unitID'],'memberID':this[_0x86a43e(0x14a)][_0x86a43e(0x375)](),'selection':Vs(_0x39a641)}};this[_0x86a43e(0x14a)][_0x86a43e(0x113)](_0x5746b9,this['unitID']);},Mr)),(this[_0x3ba4ff(0x1a5)]=_0x5b4c91,this[_0x3ba4ff(0x14a)]=_0x3f0c90,this[_0x3ba4ff(0x171)]=_0x2b59b2,this[_0x3ba4ff(0x2ed)]=_0x390848,this['_memberService']=_0x296585,this['_syncEditingCollabCursorService']=_0x2a3ca4,this[_0x3ba4ff(0x2f5)]=_0x4490a1,this[_0x3ba4ff(0x2ce)]=_0xd094c2,this[_0x3ba4ff(0x393)]=_0x5ea8be);}get[_0x23cbae(0x40e)](){const _0x5b6c9b=_0x23cbae;return this[_0x5b6c9b(0x336)]['getValue']();}get['roomMembers'](){const _0x864f84=_0x23cbae;return this[_0x864f84(0x2f7)]['getValue']();}[_0x23cbae(0x35a)](){const _0x1d9df0=_0x23cbae;super[_0x1d9df0(0x35a)](),this[_0x1d9df0(0x336)]['next'](new Map()),this[_0x1d9df0(0x336)][_0x1d9df0(0x173)](),this[_0x1d9df0(0x2f7)][_0x1d9df0(0x131)]([]),this[_0x1d9df0(0x2f7)][_0x1d9df0(0x173)]();}[_0x23cbae(0x410)](){const _0x2eaa67=_0x23cbae;this[_0x2eaa67(0x383)]||(this[_0x2eaa67(0x383)]=!0x0,this[_0x2eaa67(0x14a)][_0x2eaa67(0x18f)][_0x2eaa67(0x18c)](_0x5b993c(this[_0x2eaa67(0x16f)]))[_0x2eaa67(0x334)](_0x529b17=>{const _0x5d0a9e=_0x2eaa67;_0x529b17===Y['ONLINE']?this[_0x5d0a9e(0x26a)]():this[_0x5d0a9e(0xfc)]();}),this[_0x2eaa67(0x14a)]['event$']['pipe'](_0x5b993c(this[_0x2eaa67(0x16f)]))[_0x2eaa67(0x334)](_0x21cbca=>{const _0x5ea803=_0x2eaa67,_0x349f1b=_0x21cbca['eventID'];_0x349f1b===_0x44cf74['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x21cbca),_0x349f1b===_0x44cf74[_0x5ea803(0x25a)]&&this[_0x5ea803(0x380)](_0x21cbca);}),this['disposeWithMe'](this[_0x2eaa67(0x393)]['onCommandExecuted'](_0x33200b=>{const _0x3ff980=_0x2eaa67,_0x5e14a0=_0x33200b[_0x3ff980(0x1e4)];_0x5e14a0!=null&&this['_online']&&_0x33200b['id']===_0x212257['id']&&_0x5e14a0[_0x3ff980(0x37e)]===this[_0x3ff980(0x1a5)]&&_0x5e14a0[_0x3ff980(0x23a)]===!0x1&&this[_0x3ff980(0x344)](_0x5e14a0['ranges']);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x2eaa67(0x18c)](_0x5b993c(this[_0x2eaa67(0x16f)]))[_0x2eaa67(0x334)](_0x113841=>{const _0x192b12=_0x2eaa67;if((_0x113841==null?void 0x0:_0x113841[_0x192b12(0x1a5)])!==this[_0x192b12(0x1a5)])return;const _0xc01546={'eventID':_0x44cf74[_0x192b12(0x1d4)],'data':_0x113841};this[_0x192b12(0x1c2)](_0xc01546);}),this[_0x2eaa67(0x165)](this[_0x2eaa67(0x393)][_0x2eaa67(0x428)](_0x3758cc=>{const _0x575b59=_0x2eaa67;if(_0x3758cc['params']==null)return;const _0x21b0d6=_0x3758cc['params'];if(_0x3758cc['id']!==_0x520c9a['id']||_0x21b0d6[_0x575b59(0x37e)]!==this[_0x575b59(0x1a5)])return;const _0x1065ed={'id':_0x575b59(0x200),'params':_0x21b0d6},_0x30fa2c=this[_0x575b59(0x40e)];for(const [_0xa6da94,_0x27cc06]of _0x30fa2c){const _0x2e58ab={'id':_0x575b59(0x200),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x27cc06[_0x575b59(0x29b)]}},_0x2544f4=this[_0x575b59(0x2f5)][_0x575b59(0x2bf)](_0x1065ed,_0x2e58ab,!0x1);if(_0x426132(_0x2544f4))throw _0x2544f4['error'];_0x30fa2c[_0x575b59(0x111)](_0xa6da94,{..._0x27cc06,'ranges':_0x2544f4[_0x575b59(0x1b0)]['params']['textRanges']});}queueMicrotask(()=>{const _0x5268ea=_0x575b59;this['_cursorInfo$'][_0x5268ea(0x131)](_0x30fa2c);});})));}[_0x23cbae(0x1c2)](_0x5be245){const _0x391ee2=_0x23cbae;var _0x30dcab,_0x498bfe;const {memberID:_0x3c1cd4,selection:_0x1c9034}=_0x5be245[_0x391ee2(0x32d)],_0x3f922b=mr(_0x1c9034),_0x3aa6b0=(_0x498bfe=(_0x30dcab=this[_0x391ee2(0x2f4)][_0x391ee2(0x3a0)](this[_0x391ee2(0x1a5)],_0x3c1cd4))==null?void 0x0:_0x30dcab['name'])!=null?_0x498bfe:'Unknown\x20user',_0xa10f20={'color':this[_0x391ee2(0x2ed)][_0x391ee2(0x3c3)](_0x3c1cd4),'name':_0x3aa6b0,'ranges':_0x3f922b},_0x5ca0f9=this['cursorInfo'];_0x5ca0f9[_0x391ee2(0x111)](_0x3c1cd4,_0xa10f20),this[_0x391ee2(0x336)]['next'](_0x5ca0f9);}[_0x23cbae(0x380)](_0x5c1169){const _0x39e1b7=_0x23cbae,{memberID:_0x5b535c}=_0x5c1169['data'],_0x598fc4=this[_0x39e1b7(0x40e)];_0x598fc4[_0x39e1b7(0x1a8)](_0x5b535c),this[_0x39e1b7(0x336)]['next'](_0x598fc4);}[_0x23cbae(0x26a)](){const _0x1502b2=_0x23cbae;var _0x402cd8;if(this[_0x1502b2(0x133)]=!0x0,((_0x402cd8=this['_univerInstanceService'][_0x1502b2(0x419)]())==null?void 0x0:_0x402cd8[_0x1502b2(0x183)]())!==this[_0x1502b2(0x1a5)])return;const _0x53bf1d=this['_injector'][_0x1502b2(0x3fd)](_0x5502c3)[_0x1502b2(0x338)]();Array[_0x1502b2(0x218)](_0x53bf1d)&&_0x53bf1d[_0x1502b2(0xed)]>0x0&&this[_0x1502b2(0x344)](_0x53bf1d);}[_0x23cbae(0xfc)](){const _0x20b29f=_0x23cbae;this[_0x20b29f(0x133)]=!0x1;}};Ot=Ur([ie(0x2,_0x57082d(_0x5aca14)),ie(0x3,_0x57082d(Gt)),ie(0x4,_0x57082d(ce)),ie(0x5,_0x57082d(Ft)),ie(0x6,_0x3ce5fa),ie(0x7,_0xf0f4c1),ie(0x8,_0x2c218a)],Ot);var Ar=Object[_0x23cbae(0xe2)],Lr=Object[_0x23cbae(0x36a)],$r=(_0x203e74,_0x580aa0,_0x462c1b,_0x2c3ed3)=>{const _0x7c9bf=_0x23cbae;for(var _0x5a39f3=_0x2c3ed3>0x1?void 0x0:_0x2c3ed3?Lr(_0x580aa0,_0x462c1b):_0x580aa0,_0x1024e2=_0x203e74[_0x7c9bf(0xed)]-0x1,_0x1bb13d;_0x1024e2>=0x0;_0x1024e2--)(_0x1bb13d=_0x203e74[_0x1024e2])&&(_0x5a39f3=(_0x2c3ed3?_0x1bb13d(_0x580aa0,_0x462c1b,_0x5a39f3):_0x1bb13d(_0x5a39f3))||_0x5a39f3);return _0x2c3ed3&&_0x5a39f3&&Ar(_0x580aa0,_0x462c1b,_0x5a39f3),_0x5a39f3;},me=(_0xe324c1,_0x5be39e)=>(_0x27faed,_0x54613e)=>_0x5be39e(_0x27faed,_0x54613e,_0xe324c1);const jr=0x12c,xr=0x64,Hr=()=>{let _0x507002=[],_0x8ba849=!0x1;return _0xfc2f66=>{const _0x813be4=_0x3f49;_0x507002[_0x813be4(0x12e)](_0xfc2f66),_0x8ba849||(_0x8ba849=!0x0,setTimeout(()=>{const _0x512bc9=_0x813be4;_0x507002[_0x512bc9(0x273)](_0x442e4a=>_0x442e4a()),_0x507002=[],_0x8ba849=!0x1;}));};};let Dt=class extends _0x3a262a{constructor(_0x1a3656,_0x1d7ce8,_0x1dec7d,_0x7db7b2,_0xa0f987,_0x1cd372,_0x595cfd,_0x1130a2){const _0x1a0d44=_0x23cbae;super(),l(this,_0x1a0d44(0x133),!0x1),l(this,_0x1a0d44(0x383),!0x1),l(this,_0x1a0d44(0x336),new _0x169308(new Map())),l(this,_0x1a0d44(0x14d),this[_0x1a0d44(0x336)][_0x1a0d44(0x341)]()),l(this,'_roomMembers$',new _0x169308([])),l(this,_0x1a0d44(0x19b),this[_0x1a0d44(0x2f7)]['pipe'](_0x43ba67(jr))),l(this,'_updateLocalCursor',_0x23acc5((_0x4386e2,_0x20d45e)=>{const _0x72fc6b=_0x1a0d44,_0x24729f={'eventID':_0x44cf74[_0x72fc6b(0x1d4)],'data':{'unitID':this['unitID'],'memberID':this[_0x72fc6b(0x14a)][_0x72fc6b(0x375)](),'selection':_0x10f780(_0x4386e2,_0x20d45e[_0x72fc6b(0xf4)])}};this[_0x72fc6b(0x14a)][_0x72fc6b(0x113)](_0x24729f,this[_0x72fc6b(0x1a5)]);},xr)),(this['unitID']=_0x1a3656,this[_0x1a0d44(0x14a)]=_0x1d7ce8,this[_0x1a0d44(0x171)]=_0x1dec7d,this['_colorAssignService']=_0x7db7b2,this[_0x1a0d44(0x2f4)]=_0xa0f987,this['_univerInstanceService']=_0x1cd372,this[_0x1a0d44(0x393)]=_0x595cfd,this['_refRangeService']=_0x1130a2);}get['cursorInfo'](){const _0x144e82=_0x23cbae;return this[_0x144e82(0x336)]['getValue']();}get[_0x23cbae(0x31b)](){const _0x27708e=_0x23cbae;return this['_roomMembers$'][_0x27708e(0x1d9)]();}['dispose'](){const _0x439796=_0x23cbae;super['dispose'](),this[_0x439796(0x336)][_0x439796(0x131)](new Map()),this[_0x439796(0x336)][_0x439796(0x173)](),this['_roomMembers$'][_0x439796(0x131)]([]),this[_0x439796(0x2f7)][_0x439796(0x173)]();}['init'](){const _0x40565f=_0x23cbae;this[_0x40565f(0x383)]||(this[_0x40565f(0x383)]=!0x0,this['_session']['sessionStatus$'][_0x40565f(0x18c)](_0x5b993c(this['dispose$']))[_0x40565f(0x334)](_0x24876d=>{const _0x26298e=_0x40565f;_0x24876d===Y[_0x26298e(0x12d)]?this[_0x26298e(0x26a)]():this[_0x26298e(0xfc)]();}),this[_0x40565f(0x14a)][_0x40565f(0x29c)][_0x40565f(0x18c)](_0x5b993c(this['dispose$']))[_0x40565f(0x334)](_0x842170=>{const _0x56de6b=_0x40565f,_0x54726b=_0x842170[_0x56de6b(0x3f0)];_0x54726b===_0x44cf74['UPDATE_CURSOR']&&this[_0x56de6b(0x1c2)](_0x842170),_0x54726b===_0x44cf74[_0x56de6b(0x25a)]&&this[_0x56de6b(0x380)](_0x842170);}),this['_onRefRangeChange'](),this[_0x40565f(0x165)](this[_0x40565f(0x393)]['onCommandExecuted'](_0x3492b1=>{const _0x78e2db=_0x40565f;if(this[_0x78e2db(0x133)]&&_0x3492b1['id']===_0x58be78['id']&&_0x3492b1[_0x78e2db(0x1e4)][_0x78e2db(0x37e)]===this[_0x78e2db(0x1a5)]){const _0x4887df=_0x3492b1[_0x78e2db(0x1e4)];this[_0x78e2db(0x344)](_0x4887df[_0x78e2db(0x1ee)],_0x4887df[_0x78e2db(0x376)][0x0]);}})));}[_0x23cbae(0x1c2)](_0x5d08b4){const _0x54fa70=_0x23cbae;var _0x118398,_0x4301e3;const {memberID:_0x2336d1,selection:_0x358cce}=_0x5d08b4[_0x54fa70(0x32d)],{sheetName:_0x1f8889,range:_0xfc0943}=_0x177623(_0x358cce),_0x48cabb={'name':(_0x4301e3=(_0x118398=this[_0x54fa70(0x2f4)][_0x54fa70(0x3a0)](this[_0x54fa70(0x1a5)],_0x2336d1))==null?void 0x0:_0x118398[_0x54fa70(0x1a2)])!=null?_0x4301e3:_0x54fa70(0x3a7),'range':this[_0x54fa70(0x193)](_0x1f8889,_0xfc0943),'sheetID':_0x1f8889,'color':this[_0x54fa70(0x2ed)]['assignAColorForMemberID'](_0x2336d1),'selection':_0x358cce},_0x57e3fe=this[_0x54fa70(0x40e)];_0x57e3fe[_0x54fa70(0x111)](_0x2336d1,_0x48cabb),this[_0x54fa70(0x336)][_0x54fa70(0x131)](_0x57e3fe);}[_0x23cbae(0x380)](_0x7b9cc2){const _0x45ea1b=_0x23cbae,{memberID:_0x129708}=_0x7b9cc2[_0x45ea1b(0x32d)],_0x2804d9=this[_0x45ea1b(0x40e)];_0x2804d9[_0x45ea1b(0x1a8)](_0x129708),this[_0x45ea1b(0x336)]['next'](_0x2804d9);}['_getMergeRange'](_0x329fd4,_0x55e582){const _0xd7a9e=_0x23cbae;var _0x1de054,_0x2ffff1;const _0x322ae2=(_0x2ffff1=(_0x1de054=this[_0xd7a9e(0x2ce)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x1de054[_0xd7a9e(0x163)](_0x329fd4))==null?void 0x0:_0x2ffff1[_0xd7a9e(0x1f7)]();return(_0x322ae2==null?void 0x0:_0x322ae2[_0xd7a9e(0x265)](_0x2eb159=>_0x26d787[_0xd7a9e(0x356)](_0x2eb159,_0x55e582)))||_0x55e582;}[_0x23cbae(0x41b)](){const _0x477f0a=_0x23cbae,_0x500249=new _0x1e2532(),_0x567c6b=Hr(),_0x53fb71=()=>{_0x500249['dispose']();const _0x51df2f=(_0x3260f3,_0x50baee,_0xa02ace,_0x54dc18)=>{const _0x32422e=_0x3f49;let _0xef1826=[];switch(_0x3260f3['id']){case _0x100ffd[_0x32422e(0x401)]:{_0xef1826=_0x37de89(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x157)]:{_0xef1826=_0xce5f80(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x13c)]:{_0xef1826=_0x525801(_0x3260f3,_0x54dc18);break;}case _0x100ffd['InsertRangeMoveDownCommandId']:{_0xef1826=_0x378def(_0x3260f3,_0x54dc18);break;}case _0x100ffd['InsertRangeMoveRightCommandId']:{_0xef1826=_0x197b21(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x44a)]:{_0xef1826=_0x24f654(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x274)]:{_0xef1826=_0x4574e3(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x3db)]:{_0xef1826=_0x33a15e(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x231)]:{_0xef1826=_0x575e9e(_0x3260f3,_0x54dc18);break;}}const _0x510a88=_0x368451(_0xef1826,_0x54dc18),_0x290b71=this[_0x32422e(0x40e)]['get'](_0x50baee);if(_0x290b71&&_0x510a88){const _0x1b384e={..._0x290b71,'range':_0x510a88};this['cursorInfo'][_0x32422e(0x111)](_0x50baee,_0x1b384e),_0x567c6b(()=>{const _0x2400ec=_0x32422e,_0x1d2fbb=this[_0x2400ec(0x201)]['registerRefRange'](_0x510a88,_0x24b7ea=>(_0x1d2fbb[_0x2400ec(0x35a)](),_0x51df2f(_0x24b7ea,_0x50baee,_0xa02ace,_0x510a88)));_0x500249[_0x2400ec(0x302)](_0x1d2fbb);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x19d641,_0x23807d)=>{const _0x2110b7=_0x3f49,{range:_0x222637,sheetID:_0x4c1f5b}=_0x19d641,_0x292738=this[_0x2110b7(0x201)]['registerRefRange'](_0x222637,_0x2ecfbb=>(_0x292738['dispose'](),_0x51df2f(_0x2ecfbb,_0x23807d,_0x4c1f5b,_0x222637)));_0x500249[_0x2110b7(0x302)](_0x292738);});};this[_0x477f0a(0x165)](_0xad1b53(this[_0x477f0a(0x336)][_0x477f0a(0x334)](()=>{_0x53fb71();})));}[_0x23cbae(0x26a)](){const _0x35408a=_0x23cbae;var _0x4f5b42,_0x2936b;if(this[_0x35408a(0x133)]=!0x0,((_0x4f5b42=this[_0x35408a(0x2ce)][_0x35408a(0x419)]())==null?void 0x0:_0x4f5b42[_0x35408a(0x183)]())!==this[_0x35408a(0x1a5)])return;const _0x258ea4=(_0x2936b=this[_0x35408a(0x171)][_0x35408a(0x3fd)](_0x34b058)[_0x35408a(0x385)]())==null?void 0x0:_0x2936b[0x0],_0xec96c2=this[_0x35408a(0x2ce)][_0x35408a(0x10f)](_0x2eb231[_0x35408a(0x34d)])[_0x35408a(0x3f1)]();_0x258ea4&&_0xec96c2&&this['_updateLocalCursor'](_0xec96c2[_0x35408a(0x1ff)](),_0x258ea4);}['_toggleOffline'](){const _0x2ee6b1=_0x23cbae;this[_0x2ee6b1(0x133)]=!0x1;}};Dt=$r([me(0x2,_0x57082d(_0x5aca14)),me(0x3,_0x57082d(Gt)),me(0x4,_0x57082d(ce)),me(0x5,_0xf0f4c1),me(0x6,_0x2c218a),me(0x7,_0x57082d(_0x178c8d))],Dt);var kr=Object['defineProperty'],Br=Object[_0x23cbae(0x36a)],Vr=(_0xc8fbed,_0x53c3f6,_0x36889f,_0x49de14)=>{const _0x586c77=_0x23cbae;for(var _0x55dd70=_0x49de14>0x1?void 0x0:_0x49de14?Br(_0x53c3f6,_0x36889f):_0x53c3f6,_0x5f20b6=_0xc8fbed[_0x586c77(0xed)]-0x1,_0x484d66;_0x5f20b6>=0x0;_0x5f20b6--)(_0x484d66=_0xc8fbed[_0x5f20b6])&&(_0x55dd70=(_0x49de14?_0x484d66(_0x53c3f6,_0x36889f,_0x55dd70):_0x484d66(_0x55dd70))||_0x55dd70);return _0x49de14&&_0x55dd70&&kr(_0x53c3f6,_0x36889f,_0x55dd70),_0x55dd70;},ut=(_0x59696c,_0x43d40b)=>(_0x5c496e,_0x24444d)=>_0x43d40b(_0x5c496e,_0x24444d,_0x59696c);let ve=class extends _0x3a262a{constructor(_0x11088d,_0x56919d,_0x428332){const _0x16ba9a=_0x23cbae;super(),l(this,_0x16ba9a(0x229),new Map()),l(this,_0x16ba9a(0x40f),new _0x4061c1()),(this[_0x16ba9a(0x2ce)]=_0x11088d,this[_0x16ba9a(0x171)]=_0x56919d,this[_0x16ba9a(0x43e)]=_0x428332,this[_0x16ba9a(0x383)]());}[_0x23cbae(0x35a)](){const _0x543b3b=_0x23cbae;super[_0x543b3b(0x35a)](),this[_0x543b3b(0x40f)][_0x543b3b(0x173)](),this[_0x543b3b(0x229)]['forEach'](_0x4b46ac=>_0x4b46ac[_0x543b3b(0x35a)]());}['getCollabCursors$'](_0x24bb78){const _0x2755ea=_0x23cbae;return this[_0x2755ea(0x229)]['has'](_0x24bb78)?this[_0x2755ea(0x229)][_0x2755ea(0x3fd)](_0x24bb78)[_0x2755ea(0x14d)]:this[_0x2755ea(0x40f)]['pipe'](_0x2258ad(_0x54d006=>_0x54d006[_0x2755ea(0x1a5)]===_0x24bb78),_0x338777(_0x51cd3b=>_0x51cd3b['cursorInfo$']));}['_init'](){const _0x387c70=_0x23cbae;this[_0x387c70(0x2ce)][_0x387c70(0x1a1)](_0x2eb231['UNIVER_SHEET'])[_0x387c70(0x18c)](_0x5b993c(this[_0x387c70(0x16f)]))[_0x387c70(0x334)](async _0x2f21b4=>{const _0x16b4cb=_0x387c70,_0x955a6d=_0x2f21b4['getUnitId'](),_0x466db4=await this['_startSheetCollabCursor'](_0x955a6d);this[_0x16b4cb(0x40f)][_0x16b4cb(0x131)](_0x466db4),this[_0x16b4cb(0x229)][_0x16b4cb(0x111)](_0x955a6d,_0x466db4);}),this['_univerInstanceService'][_0x387c70(0x1a1)](_0x2eb231['UNIVER_DOC'])['pipe'](_0x5b993c(this['dispose$']))[_0x387c70(0x18c)](_0x2258ad(_0x167a12=>!_0x167a12[_0x387c70(0x183)]()[_0x387c70(0x36c)]('__')))[_0x387c70(0x334)](async _0x43f7e7=>{const _0x5db6ec=_0x387c70,_0x4b742a=_0x43f7e7[_0x5db6ec(0x183)](),_0x588723=await this['_startDocCollabCursor'](_0x4b742a);this[_0x5db6ec(0x40f)]['next'](_0x588723),this[_0x5db6ec(0x229)][_0x5db6ec(0x111)](_0x4b742a,_0x588723);}),_0x395f71(this[_0x387c70(0x2ce)]['getTypeOfUnitDisposed$'](_0x2eb231[_0x387c70(0x12f)]),this[_0x387c70(0x2ce)][_0x387c70(0x3fe)](_0x2eb231[_0x387c70(0x34d)]))[_0x387c70(0x18c)](_0x5b993c(this['dispose$']))['subscribe'](_0x545639=>{const _0x9e2b88=_0x387c70,_0x22db3b=_0x545639[_0x9e2b88(0x183)](),_0x10b94d=this[_0x9e2b88(0x229)][_0x9e2b88(0x3fd)](_0x22db3b);_0x10b94d&&(_0x10b94d['dispose'](),this[_0x9e2b88(0x229)][_0x9e2b88(0x1a8)](_0x22db3b));});}async[_0x23cbae(0x262)](_0x5af7a7){const _0x4c4015=_0x23cbae,_0x498f0b=await this[_0x4c4015(0x43e)][_0x4c4015(0x236)](_0x5af7a7),_0x2aff1c=this[_0x4c4015(0x171)]['createInstance'](Dt,_0x5af7a7,_0x498f0b);return _0x2aff1c[_0x4c4015(0x410)](),_0x2aff1c;}async['_startDocCollabCursor'](_0x3cec3e){const _0x5e4bec=_0x23cbae,_0x83111=await this[_0x5e4bec(0x43e)][_0x5e4bec(0x236)](_0x3cec3e),_0xd633f2=this[_0x5e4bec(0x171)][_0x5e4bec(0x351)](Ot,_0x3cec3e,_0x83111);return _0xd633f2['init'](),_0xd633f2;}};ve=Vr([ut(0x0,_0xf0f4c1),ut(0x1,_0x57082d(_0x5aca14)),ut(0x2,_0x57082d(he))],ve);const $e=0x14,ms=0xc8,dt=0x4,Fr=0x5;function Wr(_0x44c33f,_0x2f42c3){const _0x549e9c=_0x23cbae;let {radius:_0x2bb04a,width:_0x58d821,height:_0x2f237c}=_0x2f42c3;_0x2bb04a=_0x2bb04a!=null?_0x2bb04a:0x0,_0x58d821=_0x58d821!=null?_0x58d821:0x1e,_0x2f237c=_0x2f237c!=null?_0x2f237c:0x1e;let _0x360d5e=0x0,_0x5de87d=0x0,_0x3009e4=0x0;_0x360d5e=_0x5de87d=_0x3009e4=Math[_0x549e9c(0x3e3)](_0x2bb04a,_0x58d821/0x2,_0x2f237c/0x2),_0x44c33f[_0x549e9c(0x252)](),_0x44c33f['moveTo'](_0x360d5e,0x0),_0x44c33f[_0x549e9c(0x306)](_0x58d821-_0x5de87d,0x0),_0x44c33f[_0x549e9c(0x2bd)](_0x58d821-_0x5de87d,_0x5de87d,_0x5de87d,Math['PI']*0x3/0x2,0x0,!0x1),_0x44c33f[_0x549e9c(0x306)](_0x58d821,_0x2f237c-_0x3009e4),_0x44c33f['arc'](_0x58d821-_0x3009e4,_0x2f237c-_0x3009e4,_0x3009e4,0x0,Math['PI']/0x2,!0x1),_0x44c33f['lineTo'](0x0,_0x2f237c),_0x44c33f['lineTo'](0x0,_0x360d5e),_0x44c33f['arc'](_0x360d5e,_0x360d5e,_0x360d5e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x44c33f[_0x549e9c(0xe7)](),_0x2f42c3['fill']&&(_0x44c33f[_0x549e9c(0x1dd)](),_0x44c33f[_0x549e9c(0x32b)]=_0x2f42c3[_0x549e9c(0x230)],_0x2f42c3[_0x549e9c(0x349)]===_0x549e9c(0x2ea)?_0x44c33f[_0x549e9c(0x230)](_0x549e9c(0x2ea)):_0x44c33f[_0x549e9c(0x230)](),_0x44c33f[_0x549e9c(0x222)]());}class st extends _0xb8fdb8{constructor(_0x5a3c09,_0x2025e6){const _0x5c9c28=_0x23cbae;super(_0x5a3c09,_0x2025e6),l(this,'color'),l(this,_0x5c9c28(0x2af)),(this[_0x5c9c28(0x3be)]=_0x2025e6==null?void 0x0:_0x2025e6[_0x5c9c28(0x3be)],this['text']=_0x2025e6==null?void 0x0:_0x2025e6[_0x5c9c28(0x2af)]);}static[_0x23cbae(0x3ac)](_0x5a31b8,_0x6e39a8){const _0x276581=_0x23cbae,{text:_0xfec1c1,color:_0x5eaa77}=_0x6e39a8;_0x5a31b8[_0x276581(0x1dd)](),_0x5a31b8[_0x276581(0x2ca)]=_0x276581(0xe5);const _0x4a53f1=_0x5a31b8[_0x276581(0x36e)](_0xfec1c1)[_0x276581(0x1da)],_0xd98f4c=Math[_0x276581(0x3e3)](_0x4a53f1+0x2*dt,ms);Wr(_0x5a31b8,{'height':$e,'radius':0x4,'width':_0xd98f4c,'fill':_0x5eaa77,'evented':!0x1}),_0x5a31b8[_0x276581(0x32b)]=_0x276581(0x34b);const _0x49c5de=dt,_0x1d4270=$e-Fr,_0x16a487=ms-0x2*dt;if(_0x4a53f1>_0x16a487){let _0x5c244e='',_0x2753d9=0x0;for(const _0x259c16 of _0xfec1c1){const _0x595af7=_0x5a31b8['measureText'](_0x259c16)['width'];if(_0x2753d9+_0x595af7<=_0x16a487-_0x5a31b8[_0x276581(0x36e)](_0x276581(0x289))[_0x276581(0x1da)])_0x5c244e+=_0x259c16,_0x2753d9+=_0x595af7;else{_0x5c244e+=_0x276581(0x289);break;}}_0x5a31b8['fillText'](_0x5c244e,_0x49c5de,_0x1d4270);}else _0x5a31b8['fillText'](_0xfec1c1,_0x49c5de,_0x1d4270);_0x5a31b8[_0x276581(0x222)]();}['_draw'](_0x501fde){const _0x1ddb9c=_0x23cbae;st[_0x1ddb9c(0x3ac)](_0x501fde,this);}}const ft=_0x23cbae(0x174),Gr=_0x23cbae(0x1e3),Yr=_0x23cbae(0x101),we=0x6,Kr=1.5,mt=0x4,Xr=1.5,qr='rgba(255,\x20255,\x20255,\x200.01)';class gs{constructor(_0x1fd897,_0x2e83e5,_0x449103,_0x16f554){const _0x5864d0=_0x23cbae;l(this,_0x5864d0(0xdc),[]),l(this,_0x5864d0(0x11e),null),l(this,_0x5864d0(0x142),null),l(this,_0x5864d0(0x195),null),l(this,_0x5864d0(0x44f),null),l(this,_0x5864d0(0x398),null),(this[_0x5864d0(0x140)]=_0x1fd897,this[_0x5864d0(0x1f1)]=_0x2e83e5,this[_0x5864d0(0x3dc)]=_0x449103,this['_document']=_0x16f554,this[_0x5864d0(0x440)]());}set['_hover'](_0x1c1c95){const _0x46fbee=_0x23cbae;_0x1c1c95?(this[_0x46fbee(0x195)]&&this[_0x46fbee(0x195)][_0x46fbee(0xf6)](),this['_textBubble']&&this['_textBubble'][_0x46fbee(0x2bb)]()):(this[_0x46fbee(0x195)]&&this[_0x46fbee(0x195)][_0x46fbee(0x2bb)](),this['_textBubble']&&this[_0x46fbee(0x142)][_0x46fbee(0xf6)]());}['dispose'](){const _0x6012a3=_0x23cbae;for(const _0x1ce13b of this['_shapes'])_0x1ce13b[_0x6012a3(0x35a)]();this[_0x6012a3(0x142)]&&this['_textBubble']['dispose'](),this[_0x6012a3(0x195)]&&this[_0x6012a3(0x195)][_0x6012a3(0x35a)](),this[_0x6012a3(0x11e)]&&this[_0x6012a3(0x11e)][_0x6012a3(0x35a)](),this[_0x6012a3(0x398)]&&this['_eventUnsubscribe']();}[_0x23cbae(0x440)](){const _0x364607=_0x23cbae;var _0x1ab569;const {_docSkeleton:_0x194686,_document:_0x300ed9}=this,{color:_0x447893,name:_0x34ea3c,ranges:_0x574ba6}=this[_0x364607(0x140)],_0xed02c9=_0x300ed9[_0x364607(0x332)](),{docsLeft:_0x4ac49a,docsTop:_0x49efc0}=_0xed02c9,_0x25ce47=new _0x57bfe0(_0xed02c9,_0x194686);for(const {startOffset:_0x507832,endOffset:_0x2de9ea,collapsed:_0x2109c1,isActive:_0x545432}of _0x574ba6){const _0x516566=_0x194686[_0x364607(0x123)](_0x507832),_0x2b6a2c=_0x194686[_0x364607(0x123)](_0x2de9ea);if(_0x545432){const {contentBoxPointGroup:_0x394f47}=_0x25ce47['getRangePointData'](_0x2b6a2c,_0x2b6a2c);if(_0x394f47[_0x364607(0xed)]===0x0)continue;this[_0x364607(0x3e0)](_0x447893,_0x394f47,_0x4ac49a,_0x49efc0,_0x34ea3c),this['_eventUnsubscribe']=this[_0x364607(0xe4)]();}if(!_0x2109c1&&_0x516566&&_0x2b6a2c){if(_0x153d05(_0x516566,_0x2b6a2c)){const _0x58b8f8=new _0x37669e(_0xed02c9,_0x194686),{pointGroup:_0x3b2e59}=(_0x1ab569=_0x58b8f8[_0x364607(0x2cf)](_0x516566,_0x2b6a2c))!=null?_0x1ab569:{};if(_0x3b2e59==null||_0x3b2e59[_0x364607(0xed)]===0x0)continue;this[_0x364607(0x213)](_0x447893,_0x3b2e59,_0x4ac49a,_0x49efc0);}else{const {contentBoxPointGroup:_0x39fdc8}=_0x25ce47[_0x364607(0x2cf)](_0x516566,_0x2b6a2c);if(_0x39fdc8[_0x364607(0xed)]===0x0)continue;this['_drawTextRange'](_0x447893,_0x39fdc8,_0x4ac49a,_0x49efc0);}}}}['_drawAnchor'](_0x12bc86,_0x4863a6,_0x3b147a,_0xa6b3be,_0x22d293){const _0x54687a=_0x23cbae,_0x58168a=this['_getAnchorBounding'](_0x4863a6),{left:_0x5e050c,top:_0xf8e98,height:_0x5e2df1}=_0x58168a,_0x4e9294=this[_0x54687a(0x13d)](),_0x4e1e0c=Xr/_0x4e9294,_0x576fe2=new _0x8fe6a0(ft+_0x2d9f70['generateRandomId'](we),{'left':_0x5e050c+_0x3b147a-_0x4e1e0c,'top':_0xf8e98+_0xa6b3be,'height':_0x5e2df1,'width':Kr,'fill':_0x12bc86||_0x5d3027(_0x56bec4[_0x54687a(0x23e)],0x0),'strokeWidth':_0x4e1e0c,'stroke':qr,'evented':!0x0});this['_anchor']=_0x576fe2,this[_0x54687a(0x1f1)][_0x54687a(0x36d)](_0x576fe2,_0x252f9e);const _0x4c7513=new _0x8fe6a0(ft+_0x2d9f70['generateRandomId'](we),{'left':_0x5e050c+_0x3b147a-_0x4e1e0c,'top':_0xf8e98+_0xa6b3be-mt/0x2,'height':mt,'width':mt,'fill':_0x12bc86||_0x5d3027(_0x56bec4[_0x54687a(0x23e)],0x0),'strokeWidth':0x0,'stroke':_0x12bc86||_0x5d3027(_0x56bec4[_0x54687a(0x23e)],0x0),'evented':!0x1});this[_0x54687a(0x195)]=_0x4c7513,this[_0x54687a(0x1f1)][_0x54687a(0x36d)](_0x4c7513,_0x252f9e);const _0x480689=new st(ft+_0x2d9f70[_0x54687a(0x259)](we),{'left':_0x5e050c+_0x3b147a-_0x4e1e0c,'top':_0xf8e98+_0xa6b3be-$e,'text':_0x22d293,'color':_0x12bc86});this[_0x54687a(0x142)]=_0x480689,this[_0x54687a(0x1f1)][_0x54687a(0x36d)](_0x480689,_0x252f9e),this[_0x54687a(0x14e)]=!0x1;}['_handleHover'](){const _0x109e9d=_0x23cbae,_0x1150e7=this['_anchor'][_0x109e9d(0x3a6)][_0x109e9d(0x205)](()=>{const _0x294ede=_0x109e9d;this[_0x294ede(0x14e)]=!0x0;}),_0x31e2d3=this[_0x109e9d(0x11e)][_0x109e9d(0x108)][_0x109e9d(0x205)](()=>{const _0x1c5590=_0x109e9d;this[_0x1c5590(0x44f)]&&clearTimeout(this[_0x1c5590(0x44f)]),this[_0x1c5590(0x44f)]=setTimeout(()=>{const _0x230f77=_0x1c5590;this[_0x230f77(0x14e)]=!0x1;},0x7d0);});return()=>{const _0x3b259f=_0x109e9d;_0x1150e7['unsubscribe'](),_0x31e2d3[_0x3b259f(0x221)]();};}[_0x23cbae(0x234)](_0x2f8be0,_0x6e3ff6,_0x496056,_0x1d5157){const _0x4ba605=_0x23cbae,_0x418a59=new _0xff1c14(_0x2f8be0)[_0x4ba605(0x435)](0.2)[_0x4ba605(0x42e)](),_0x38cc5c=new _0xc7b37d(Gr+_0x2d9f70['generateRandomId'](we),{'pointsGroup':_0x6e3ff6,'fill':_0x418a59||_0x5d3027(_0x56bec4[_0x4ba605(0x23e)],0.2),'left':_0x496056,'top':_0x1d5157,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4ba605(0xdc)][_0x4ba605(0x12e)](_0x38cc5c),this[_0x4ba605(0x1f1)]['addObject'](_0x38cc5c,_0x252f9e);}['_drawRectRange'](_0x39d13e,_0x4cf85c,_0x427224,_0xd97103){const _0x4af4ec=_0x23cbae,_0x5ba759=new _0xff1c14(_0x39d13e)[_0x4af4ec(0x435)](0.2)[_0x4af4ec(0x42e)](),_0x6cc4dd=new _0xc7b37d(Yr+_0x2d9f70[_0x4af4ec(0x259)](we),{'pointsGroup':_0x4cf85c,'fill':_0x5ba759||_0x5d3027(_0x56bec4[_0x4af4ec(0x23e)],0.2),'left':_0x427224,'top':_0xd97103,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4af4ec(0xdc)]['push'](_0x6cc4dd),this[_0x4af4ec(0x1f1)][_0x4af4ec(0x36d)](_0x6cc4dd,_0x252f9e);}[_0x23cbae(0x1fd)](_0xa73f34){const _0x18e175=_0xa73f34[0x0],_0x4a1c24=_0x18e175[0x0],_0x43dacc=_0x18e175[0x2],{x:_0x12ebc6,y:_0x46a246}=_0x4a1c24,{x:_0x1d7f8a,y:_0x276f46}=_0x43dacc;return{'left':_0x12ebc6,'top':_0x46a246,'width':_0x1d7f8a-_0x12ebc6,'height':_0x276f46-_0x46a246};}[_0x23cbae(0x13d)](){const _0xbf5531=_0x23cbae,{scaleX:_0x358c65,scaleY:_0x13c893}=this['_scene'][_0xbf5531(0x2e1)]();return Math[_0xbf5531(0x3d0)](_0x358c65,_0x13c893);}}var Jr=Object['defineProperty'],zr=Object[_0x23cbae(0x36a)],Zr=(_0x25ddeb,_0x581123,_0x593401,_0x1b3d5a)=>{const _0x4c384e=_0x23cbae;for(var _0x5f376f=_0x1b3d5a>0x1?void 0x0:_0x1b3d5a?zr(_0x581123,_0x593401):_0x581123,_0x4c035d=_0x25ddeb[_0x4c384e(0xed)]-0x1,_0x3ed76d;_0x4c035d>=0x0;_0x4c035d--)(_0x3ed76d=_0x25ddeb[_0x4c035d])&&(_0x5f376f=(_0x1b3d5a?_0x3ed76d(_0x581123,_0x593401,_0x5f376f):_0x3ed76d(_0x5f376f))||_0x5f376f);return _0x1b3d5a&&_0x5f376f&&Jr(_0x581123,_0x593401,_0x5f376f),_0x5f376f;},ke=(_0x3a9eb9,_0x2e941e)=>(_0xbb484e,_0x55c0a8)=>_0x2e941e(_0xbb484e,_0x55c0a8,_0x3a9eb9);let wt=class extends _0x3a262a{constructor(_0x496661,_0x3cd0,_0x2c8c85,_0x5c2992,_0x536860){const _0x5cd99e=_0x23cbae;super(),l(this,_0x5cd99e(0x2b9),[]),l(this,_0x5cd99e(0x18e),[]),(this['_context']=_0x496661,this[_0x5cd99e(0x304)]=_0x3cd0,this['_collabCursorController']=_0x2c8c85,this['_commandService']=_0x5c2992,this[_0x5cd99e(0x1b3)]=_0x536860,this['_init']());}[_0x23cbae(0x383)](){const _0x64f77d=_0x23cbae,_0x51dcdb=this[_0x64f77d(0x2f2)]['unitId'],_0x4049c6=this[_0x64f77d(0x304)];this[_0x64f77d(0x165)](_0x380b37([this[_0x64f77d(0x345)][_0x64f77d(0x437)](_0x51dcdb),this[_0x64f77d(0x1b3)][_0x64f77d(0x248)]])['pipe'](_0x57b187(([_0x3622,_0x29e12b])=>({'skeleton':_0x4049c6[_0x64f77d(0x3e2)](),'cursors':[..._0x3622[_0x64f77d(0x2b6)]()][_0x64f77d(0x3c7)](_0x4ae4d8=>({..._0x4ae4d8,'color':_0x29e12b[_0x4ae4d8[_0x64f77d(0x3be)]]}))})))[_0x64f77d(0x334)](_0x3d1ef2=>{const _0x1bd5f9=_0x64f77d;if(this[_0x1bd5f9(0x33e)](),_0x3d1ef2){const {skeleton:_0x6f0557,cursors:_0x3863a6}=_0x3d1ef2;this['_updateCollabCursors'](_0x6f0557,_0x3863a6);}})),this[_0x64f77d(0x19c)](),this[_0x64f77d(0x36b)]();}[_0x23cbae(0x38a)](_0x188c1e,_0x5f3517){const _0x19efed=_0x23cbae,{scene:_0x1a12bf,mainComponent:_0x2daaba}=this[_0x19efed(0x2f2)],_0x30d9e8=_0x5f3517[_0x19efed(0x41d)](_0x56bb17=>new gs(_0x56bb17,_0x1a12bf,_0x188c1e,_0x2daaba));this[_0x19efed(0x2b9)]=_0x30d9e8,this[_0x19efed(0x18e)]=_0x5f3517;}['_refreshCollabCursors'](){const _0x39dfe1=_0x23cbae;this[_0x39dfe1(0x33e)]();const {scene:_0x1a7147,mainComponent:_0x50cc25}=this[_0x39dfe1(0x2f2)],_0xc6e6aa=this['_docSkeletonManagerService'][_0x39dfe1(0x3e2)](),_0x325bef=this['_cursors'][_0x39dfe1(0x41d)](_0x403624=>new gs(_0x403624,_0x1a7147,_0xc6e6aa,_0x50cc25));this[_0x39dfe1(0x2b9)]=_0x325bef;}['_removeCollabCursors'](){const _0x3c997f=_0x23cbae;this['_cursorShapes'][_0x3c997f(0x273)](_0xa764ee=>_0xa764ee[_0x3c997f(0x35a)]()),this[_0x3c997f(0x2b9)]=[];}[_0x23cbae(0x36b)](){const _0x455093=_0x23cbae,_0x18c0c8=[_0x4a3846['id']];this[_0x455093(0x165)](this[_0x455093(0x393)]['onCommandExecuted'](_0x9d47f4=>{const _0x59646a=_0x455093;_0x18c0c8['includes'](_0x9d47f4['id'])&&_0x9d47f4[_0x59646a(0x1e4)][_0x59646a(0x37e)]===this[_0x59646a(0x2f2)][_0x59646a(0x37e)]&&this[_0x59646a(0x373)]();}));}[_0x23cbae(0x19c)](){const _0x540796=_0x23cbae;this[_0x540796(0x165)](_0x4a2855(this[_0x540796(0x2f2)][_0x540796(0x239)][_0x540796(0x127)])['pipe'](_0x4eb371(_0x161173=>_0x161173['type']===_0x106d8d[_0x540796(0xdd)]),_0x437201(0x10))[_0x540796(0x334)](()=>{const _0x42ddb0=_0x540796;this[_0x42ddb0(0x373)]();}));}};wt=Zr([ke(0x1,_0x57082d(_0x152335)),ke(0x2,_0x57082d(ve)),ke(0x3,_0x2c218a),ke(0x4,_0x57082d(_0xdd136e))],wt);const Qr=0x1,eo=1.5;class to extends _0xb8fdb8{constructor(_0x281f3e,_0x59a7b3){const _0x54ecd5=_0x23cbae;super(_0x281f3e,_0x59a7b3),l(this,_0x54ecd5(0x3a5)),l(this,_0x54ecd5(0x3a1),!0x1),l(this,_0x54ecd5(0x3cd)),l(this,_0x54ecd5(0x20c),''),l(this,_0x54ecd5(0x256),'top'),l(this,_0x54ecd5(0x3df)),(_0x59a7b3&&this[_0x54ecd5(0x3af)](_0x59a7b3),this[_0x54ecd5(0x3a6)][_0x54ecd5(0x205)](()=>this[_0x54ecd5(0x3af)]({'hovered':!0x0})),this[_0x54ecd5(0x108)][_0x54ecd5(0x205)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x23cbae(0x3af)](_0x413e67){const _0x100f99=_0x23cbae;var _0x105b6b,_0xd12307,_0x1b5ee6,_0xfa2276,_0x10d662,_0x2e2485;this[_0x100f99(0x3a5)]=(_0x105b6b=_0x413e67[_0x100f99(0x3be)])!=null?_0x105b6b:this[_0x100f99(0x3a5)],this[_0x100f99(0x3a1)]=(_0xd12307=_0x413e67['hovered'])!=null?_0xd12307:this[_0x100f99(0x3a1)],this[_0x100f99(0x3cd)]=(_0x1b5ee6=_0x413e67[_0x100f99(0xf4)])!=null?_0x1b5ee6:this['_range'],this[_0x100f99(0x20c)]=(_0xfa2276=_0x413e67[_0x100f99(0x1a2)])!=null?_0xfa2276:this[_0x100f99(0x20c)],this[_0x100f99(0x256)]=(_0x10d662=_0x413e67[_0x100f99(0x37a)])!=null?_0x10d662:this['_labelPosition'],this['_backgroundColor']=(_0x2e2485=_0x413e67[_0x100f99(0x2b4)])!=null?_0x2e2485:this['_backgroundColor'],this[_0x100f99(0x126)]({'width':_0x413e67['width'],'height':_0x413e67[_0x100f99(0x404)]});}['onMouseMove'](_0x486c9e){const _0x572680=_0x23cbae,{row:_0x3e8030,column:_0x3cff57}=_0x486c9e;if(_0x3e8030>=this['_range']['startRow']&&_0x3e8030<=this[_0x572680(0x3cd)]['endRow']&&_0x3cff57>=this['_range']['startColumn']&&_0x3cff57<=this[_0x572680(0x3cd)]['endColumn']){this[_0x572680(0x3af)]({'hovered':!0x0});return;}this[_0x572680(0x3af)]({'hovered':!0x1});}[_0x23cbae(0x426)](_0x55b189){return!0x1;}['_draw'](_0x1dcd88){const _0x284c20=_0x23cbae;_0x8fe6a0[_0x284c20(0x3ac)](_0x1dcd88,{'width':this[_0x284c20(0x1da)],'height':this['height'],'strokeWidth':eo,'stroke':this[_0x284c20(0x3a5)],'evented':!0x1,'fill':this[_0x284c20(0x3df)]}),this[_0x284c20(0x3a1)]&&(_0x1dcd88[_0x284c20(0x1dd)](),_0x1dcd88['transform'](0x1,0x0,0x0,0x1,this[_0x284c20(0x1da)],this[_0x284c20(0x256)]===_0x284c20(0x2a4)?0x0:-$e),st[_0x284c20(0x3ac)](_0x1dcd88,{'text':this[_0x284c20(0x20c)],'color':this[_0x284c20(0x3a5)]}),_0x1dcd88[_0x284c20(0x222)]());}}var so=Object[_0x23cbae(0xe2)],io=Object[_0x23cbae(0x36a)],no=(_0x305db5,_0x238b3d,_0x420794,_0x4551b6)=>{for(var _0x5b147f=_0x4551b6>0x1?void 0x0:_0x4551b6?io(_0x238b3d,_0x420794):_0x238b3d,_0x411937=_0x305db5['length']-0x1,_0x4d72c1;_0x411937>=0x0;_0x411937--)(_0x4d72c1=_0x305db5[_0x411937])&&(_0x5b147f=(_0x4551b6?_0x4d72c1(_0x238b3d,_0x420794,_0x5b147f):_0x4d72c1(_0x5b147f))||_0x5b147f);return _0x4551b6&&_0x5b147f&&so(_0x238b3d,_0x420794,_0x5b147f),_0x5b147f;},gt=(_0x49b30c,_0x1c0c00)=>(_0xe3cb75,_0x22430a)=>_0x1c0c00(_0xe3cb75,_0x22430a,_0x49b30c);const ro=0x1389;let Pt=class extends _0x3a262a{constructor(_0x4d4adf,_0x28e43e,_0x3b4756,_0xa5328e){const _0x40a10f=_0x23cbae;super(),l(this,_0x40a10f(0x18e),new Set()),l(this,'_lastPointer',null),(this['_context']=_0x4d4adf,this[_0x40a10f(0x10b)]=_0x28e43e,this['_collabCursorController']=_0x3b4756,this['_themeService']=_0xa5328e,this[_0x40a10f(0x383)]());}[_0x23cbae(0x383)](){const _0xa605c2=_0x23cbae;this['_sheetSkeletonManagerService'][_0xa605c2(0x1c4)]['pipe'](_0x5198ca(this[_0xa605c2(0x16f)]),_0x38d5ac(_0x18e68b=>{const _0x595ab9=_0xa605c2;if(_0x18e68b){const _0x11e4b4=_0x18e68b['sheetId'];return _0x380b37(this['_collabCursorController']['getCollabCursors$'](this[_0x595ab9(0x2f2)][_0x595ab9(0x37e)]),this[_0x595ab9(0x1b3)]['currentTheme$'])[_0x595ab9(0x18c)](_0x57b187(([_0x435a91,_0x30aad6])=>{const _0x3d465f=new Map();return _0x435a91['forEach']((_0x5bbaed,_0x4ed242)=>{const _0x94e98b=_0x3f49;if(_0x5bbaed[_0x94e98b(0x3b8)]===_0x11e4b4){const _0x32fc1b={..._0x5bbaed};_0x32fc1b['color']=_0x30aad6[_0x5bbaed['color']],_0x3d465f[_0x94e98b(0x111)](_0x4ed242,_0x32fc1b);}}),{'skeleton':_0x18e68b,'cursors':_0x3d465f};}));}return _0x4a5add({'skeleton':null,'cursors':new Map()});}))[_0xa605c2(0x334)](({skeleton:_0x572f67,cursors:_0x18d75c})=>{const _0x590d3b=_0xa605c2;this[_0x590d3b(0x33e)](),_0x572f67&&this['_updateCollabCursors'](_0x572f67,_0x18d75c);}),this[_0xa605c2(0x10b)][_0xa605c2(0x1c4)][_0xa605c2(0x334)](_0x25e221=>{const _0x5a2a1f=_0xa605c2;if(_0x25e221==null)return;const {skeleton:_0x3b924a}=_0x25e221,{scene:_0x208b67}=this['_context'];_0x208b67[_0x5a2a1f(0x2f8)][_0x5a2a1f(0x205)](_0x23acc5(_0x16e1ec=>{const _0x3b87e7=_0x5a2a1f;var _0x386d07,_0xaf2787;const {offsetX:_0xc853f7,offsetY:_0x2f315f}=_0x16e1ec,{x:_0x186472,y:_0x566bda}=_0x208b67[_0x3b87e7(0x3f3)](_0x36e9ae[_0x3b87e7(0x232)]([_0xc853f7,_0x2f315f])),{scaleX:_0x4132a2,scaleY:_0x423b6d}=_0x208b67[_0x3b87e7(0x2e1)](),_0x3e48e6=_0x208b67[_0x3b87e7(0xd8)](_0x407db2[_0x3b87e7(0x255)]),_0x33cb79=_0x208b67[_0x3b87e7(0xf7)](_0x36e9ae['FromArray']([_0x186472,_0x566bda]),_0x3e48e6),_0x5b42da=_0x3b924a['getCellPositionByOffset'](_0xc853f7,_0x2f315f,_0x4132a2,_0x423b6d,_0x33cb79);((_0x386d07=this[_0x3b87e7(0x41c)])==null?void 0x0:_0x386d07[_0x3b87e7(0x21b)])===_0x5b42da[_0x3b87e7(0x21b)]&&((_0xaf2787=this[_0x3b87e7(0x41c)])==null?void 0x0:_0xaf2787[_0x3b87e7(0x40a)])===_0x5b42da[_0x3b87e7(0x40a)]||this[_0x3b87e7(0x18e)][_0x3b87e7(0x273)](_0x51720f=>{const _0x1068f1=_0x3b87e7;_0x51720f[_0x1068f1(0x17b)](_0x5b42da);});},0x64));});}['_updateCollabCursors'](_0x2f2cbc,_0x461d3f){const _0x22b928=_0x23cbae;var _0x482448;const _0x13e912=(_0x482448=this[_0x22b928(0x10b)][_0x22b928(0x189)]())==null?void 0x0:_0x482448[_0x22b928(0x308)];if(!_0x13e912)return;const _0x34b1cf=this[_0x22b928(0x1c0)]();if(!_0x34b1cf)return;this[_0x22b928(0x18e)][_0x22b928(0x273)](_0x35ce59=>{const _0x54fd7e=_0x22b928;_0x35ce59[_0x54fd7e(0x287)]();});const {scene:_0x197559}=_0x34b1cf,_0x4282a8=oo(Array['from'](_0x461d3f[_0x22b928(0x2b6)]()))[_0x22b928(0x41d)](_0x410884=>{const _0x566fea=_0x22b928,{color:_0x54b8f9,range:_0x9936a,name:_0x1a911b,selection:_0x326da0,sheetID:_0x4be7a3}=_0x410884,{startColumn:_0x191e76,startRow:_0x28a2c2,endColumn:_0x1b8f3a,endRow:_0x4a0615}=_0x9936a,_0x30a00b=_0x198821(_0x28a2c2,_0x191e76,_0x197559,_0x13e912),_0x466e50=_0x198821(_0x4a0615,_0x1b8f3a,_0x197559,_0x13e912),{columnHeaderHeightAndMarginTop:_0x30f181}=_0x13e912,{startX:_0x54aea1,startY:_0x2b452b}=_0x30a00b,{endX:_0x24818e,endY:_0x5419ed}=_0x466e50,_0x3b6642=_0x24818e-_0x54aea1,_0x426169=_0x5419ed-_0x2b452b,_0x1a399b={'labelPosition':_0x2b452b-_0x30f181>=$e?_0x566fea(0x21c):_0x566fea(0x2a4),'sheetID':_0x4be7a3,'range':_0x9936a,'color':_0x54b8f9,'name':_0x1a911b,'selection':_0x326da0,'left':_0x54aea1,'top':_0x2b452b,'width':_0x3b6642,'height':_0x426169,'evented':!0x1,'zIndex':ro};return new to(_0x1a911b,_0x1a399b);});_0x197559[_0x22b928(0x31e)](_0x4282a8,Qr),this[_0x22b928(0x18e)]=new Set(_0x4282a8);}['_removeCollabCursors'](){const _0x5ad92d=_0x23cbae;var _0x32e05d;(_0x32e05d=this[_0x5ad92d(0x18e)])==null||_0x32e05d[_0x5ad92d(0x273)](_0x4cd050=>_0x4cd050[_0x5ad92d(0x35a)]());}[_0x23cbae(0x1c0)](){const _0x264def=_0x23cbae;return _0x4d0c7e(this[_0x264def(0x2f2)][_0x264def(0x21d)],this[_0x264def(0x2f2)]);}};Pt=no([gt(0x1,_0x57082d(_0x5d067c)),gt(0x2,_0x57082d(ve)),gt(0x3,_0x57082d(_0xdd136e))],Pt);function oo(_0x5403b6){const _0x568207=_0x23cbae,_0x334e55=new Map();return _0x5403b6[_0x568207(0x273)](_0x459604=>{const _0x173857=_0x568207;if(_0x334e55[_0x173857(0x15b)](_0x459604[_0x173857(0x363)])){const _0x229a20=_0x334e55[_0x173857(0x3fd)](_0x459604[_0x173857(0x363)]);_0x229a20['name']+=',\x20'+_0x459604['name'];}else _0x334e55['set'](_0x459604[_0x173857(0x363)],_0x459604);}),Array['from'](_0x334e55['values']());}var N=function(){const _0x2de1db=_0x23cbae;return N=Object[_0x2de1db(0x143)]||function(_0x557082){const _0x1955ec=_0x2de1db;for(var _0x595a0b,_0x3b66a6=0x1,_0x55bd58=arguments[_0x1955ec(0xed)];_0x3b66a6<_0x55bd58;_0x3b66a6++){_0x595a0b=arguments[_0x3b66a6];for(var _0xeb3ce6 in _0x595a0b)Object[_0x1955ec(0x18b)]['hasOwnProperty'][_0x1955ec(0x1fc)](_0x595a0b,_0xeb3ce6)&&(_0x557082[_0xeb3ce6]=_0x595a0b[_0xeb3ce6]);}return _0x557082;},N[_0x2de1db(0x434)](this,arguments);},ao=function(_0x3156e7,_0x3dc49d){const _0x20580a=_0x23cbae;var _0x313f9b={};for(var _0x7e08ed in _0x3156e7)Object[_0x20580a(0x18b)][_0x20580a(0x243)]['call'](_0x3156e7,_0x7e08ed)&&_0x3dc49d[_0x20580a(0x148)](_0x7e08ed)<0x0&&(_0x313f9b[_0x7e08ed]=_0x3156e7[_0x7e08ed]);if(_0x3156e7!=null&&typeof Object['getOwnPropertySymbols']==_0x20580a(0x204)){for(var _0x4863a3=0x0,_0x7e08ed=Object[_0x20580a(0x179)](_0x3156e7);_0x4863a3<_0x7e08ed[_0x20580a(0xed)];_0x4863a3++)_0x3dc49d[_0x20580a(0x148)](_0x7e08ed[_0x4863a3])<0x0&&Object[_0x20580a(0x18b)][_0x20580a(0x19f)]['call'](_0x3156e7,_0x7e08ed[_0x4863a3])&&(_0x313f9b[_0x7e08ed[_0x4863a3]]=_0x3156e7[_0x7e08ed[_0x4863a3]]);}return _0x313f9b;},Yt=_0x24db44(function(_0x4d18ff,_0x6a7eb9){const _0x17cb2d=_0x23cbae;var _0x67904=_0x4d18ff[_0x17cb2d(0x130)],_0x1d32ec=_0x4d18ff['id'],_0x5f3cc6=_0x4d18ff[_0x17cb2d(0x138)],_0x4a3182=_0x4d18ff['extend'],_0x36af5c=ao(_0x4d18ff,[_0x17cb2d(0x130),'id','className',_0x17cb2d(0xea)]),_0x50a787=_0x17cb2d(0x3b9)[_0x17cb2d(0x2e8)](_0x1d32ec,'\x20')[_0x17cb2d(0x2e8)](_0x5f3cc6||'')[_0x17cb2d(0x147)](),_0x51a3f9=_0xa945c8('_'[_0x17cb2d(0x2e8)](lo()));return Ws(_0x67904,''[_0x17cb2d(0x2e8)](_0x1d32ec),{'defIds':_0x67904['defIds'],'idSuffix':_0x51a3f9['current']},N({'ref':_0x6a7eb9,'className':_0x50a787},_0x36af5c),_0x4a3182);});function Ws(_0xcc596,_0x2bae61,_0x5c5a9d,_0x313621,_0x14e03e){const _0x2b7277=_0x23cbae;return _0x39bd90(_0xcc596[_0x2b7277(0x117)],N(N({'key':_0x2bae61},co(_0xcc596,_0x5c5a9d,_0x14e03e)),_0x313621),(ho(_0xcc596,_0x5c5a9d)['children']||[])[_0x2b7277(0x41d)](function(_0x883e2d,_0x3744e4){const _0x1c5237=_0x2b7277;return Ws(_0x883e2d,''['concat'](_0x2bae61,'-')[_0x1c5237(0x2e8)](_0xcc596[_0x1c5237(0x117)],'-')[_0x1c5237(0x2e8)](_0x3744e4),_0x5c5a9d,void 0x0,_0x14e03e);}));}function co(_0x112506,_0x360302,_0x2f874c){const _0x19b344=_0x23cbae;var _0x31478b=N({},_0x112506[_0x19b344(0x250)]);_0x2f874c!=null&&_0x2f874c[_0x19b344(0x2d2)]&&_0x31478b['fill']===_0x19b344(0x2d2)&&(_0x31478b[_0x19b344(0x230)]=_0x2f874c[_0x19b344(0x2d2)]);var _0x39f0ba=_0x360302[_0x19b344(0x217)];return!_0x39f0ba||_0x39f0ba[_0x19b344(0xed)]===0x0||(_0x112506[_0x19b344(0x117)]===_0x19b344(0x2e6)&&_0x31478b[_0x19b344(0x35f)]&&(_0x31478b[_0x19b344(0x35f)]=_0x31478b['xlink:href']+_0x360302['idSuffix']),Object[_0x19b344(0x1d5)](_0x31478b)['forEach'](function(_0x1d0231){const _0x37c06c=_0x19b344;var _0x2ee01c=_0x1d0231[0x0],_0x4789d8=_0x1d0231[0x1];typeof _0x4789d8==_0x37c06c(0x227)&&(_0x31478b[_0x2ee01c]=_0x4789d8[_0x37c06c(0x35d)](/url\(#(.*)\)/,_0x37c06c(0x102)['concat'](_0x360302['idSuffix'],')')));})),_0x31478b;}function ho(_0x32d601,_0x32503){const _0x3ff5c2=_0x23cbae;var _0x52fb92,_0x193730=_0x32503[_0x3ff5c2(0x217)];return!_0x193730||_0x193730['length']===0x0?_0x32d601:_0x32d601[_0x3ff5c2(0x117)]===_0x3ff5c2(0x2dc)&&(!((_0x52fb92=_0x32d601[_0x3ff5c2(0x1f3)])===null||_0x52fb92===void 0x0)&&_0x52fb92[_0x3ff5c2(0xed)])?N(N({},_0x32d601),{'children':_0x32d601[_0x3ff5c2(0x1f3)]['map'](function(_0x34245a){const _0x4f906c=_0x3ff5c2;return typeof _0x34245a[_0x4f906c(0x250)]['id']==_0x4f906c(0x227)&&_0x193730&&_0x193730[_0x4f906c(0x148)](_0x34245a[_0x4f906c(0x250)]['id'])>-0x1?N(N({},_0x34245a),{'attrs':N(N({},_0x34245a[_0x4f906c(0x250)]),{'id':_0x34245a[_0x4f906c(0x250)]['id']+_0x32503[_0x4f906c(0x18d)]})}):_0x34245a;})}):_0x32d601;}function lo(){const _0x147352=_0x23cbae;return Math[_0x147352(0x2a5)]()['toString'](0x24)[_0x147352(0x3c9)](0x2,0x8);}Yt[_0x23cbae(0x3bc)]='UniverIcon';var _o={'tag':'svg','attrs':{'fill':_0x23cbae(0x1ed),'viewBox':'0\x200\x2016\x2016','width':_0x23cbae(0x121),'height':_0x23cbae(0x121)},'children':[{'tag':'g','attrs':{'clipPath':_0x23cbae(0x374)},'children':[{'tag':_0x23cbae(0x352),'attrs':{'stroke':_0x23cbae(0x29e),'d':_0x23cbae(0x40b),'strokeLinecap':_0x23cbae(0x3a2),'strokeLinejoin':_0x23cbae(0x3a2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x23cbae(0x40d),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x23cbae(0x1e7),'d':_0x23cbae(0x28f)}}]}]}],'defIds':[_0x23cbae(0x105)]},Gs=_0x24db44(function(_0x40602d,_0x1488d2){const _0x49d756=_0x23cbae;return _0x39bd90(Yt,Object[_0x49d756(0x143)]({},_0x40602d,{'id':_0x49d756(0x317),'ref':_0x1488d2,'icon':_o}));});Gs['displayName']=_0x23cbae(0x1b8);var uo={'tag':'svg','attrs':{'fill':_0x23cbae(0x1ed),'viewBox':_0x23cbae(0x199),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x23cbae(0xeb)},'children':[{'tag':'path','attrs':{'stroke':_0x23cbae(0x29e),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x23cbae(0x3a2),'strokeLinejoin':_0x23cbae(0x3a2),'strokeWidth':1.2}}]},{'tag':_0x23cbae(0x2dc),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x23cbae(0x412)},'children':[{'tag':_0x23cbae(0x352),'attrs':{'fill':_0x23cbae(0x1e7),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x23cbae(0x412)]},Ys=_0x24db44(function(_0x1eb67d,_0xa6415f){const _0x2275ab=_0x23cbae;return _0x39bd90(Yt,Object[_0x2275ab(0x143)]({},_0x1eb67d,{'id':_0x2275ab(0x33c),'ref':_0xa6415f,'icon':uo}));});Ys['displayName']='OnLineSingle';function Ks(_0xf8d10f){const _0x2e4444=_0x23cbae;var _0x309efc,_0x5c5839,_0x1239bc='';if(typeof _0xf8d10f==_0x2e4444(0x227)||typeof _0xf8d10f==_0x2e4444(0x11a))_0x1239bc+=_0xf8d10f;else{if(typeof _0xf8d10f==_0x2e4444(0x307)){if(Array['isArray'](_0xf8d10f)){var _0x1c32b4=_0xf8d10f[_0x2e4444(0xed)];for(_0x309efc=0x0;_0x309efc<_0x1c32b4;_0x309efc++)_0xf8d10f[_0x309efc]&&(_0x5c5839=Ks(_0xf8d10f[_0x309efc]))&&(_0x1239bc&&(_0x1239bc+='\x20'),_0x1239bc+=_0x5c5839);}else{for(_0x5c5839 in _0xf8d10f)_0xf8d10f[_0x5c5839]&&(_0x1239bc&&(_0x1239bc+='\x20'),_0x1239bc+=_0x5c5839);}}}return _0x1239bc;}function fo(){for(var _0x4340a5,_0x942ed2,_0xa2086=0x0,_0x167a54='',_0x4dfd95=arguments['length'];_0xa2086<_0x4dfd95;_0xa2086++)(_0x4340a5=arguments[_0xa2086])&&(_0x942ed2=Ks(_0x4340a5))&&(_0x167a54&&(_0x167a54+='\x20'),_0x167a54+=_0x942ed2);return _0x167a54;}const mo=_0x23cbae(0x3eb),go='univer-online-status-title',So=_0x23cbae(0x17d),po=_0x23cbae(0xe3),vo='univer-offline',Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0x1839b2){const _0x1851d0=_0x23cbae;switch(_0x1839b2){case P[_0x1851d0(0x1a9)]:return _0x1851d0(0x318);case P[_0x1851d0(0x444)]:return _0x1851d0(0x331);case P[_0x1851d0(0x120)]:return'collabStatus.fetchMiss';case P['NOT_COLLAB']:return _0x1851d0(0x109);case P['PENDING']:case P['AWAITING']:case P[_0x1851d0(0x27f)]:return _0x1851d0(0x397);case P[_0x1851d0(0x3cb)]:return _0x1851d0(0x425);}}function Eo(_0x279f38){const _0x1f04ed=_0x23cbae,{status$:_0x52d686}=_0x279f38,_0x3cf7df=_0x5a882d(_0x52d686,P[_0x1f04ed(0x26e)]),_0x364806=_0x32c0cd(_0x1ba649),_0x27423f=_0x32c0cd(he),_0xc44719=_0x3cf7df!==P[_0x1f04ed(0x1a9)],_0x200d68=_0x364806['t'](Io(_0x3cf7df)),_0xac6ea2=fo(Pe[_0x1f04ed(0x3c4)],{[Pe[_0x1f04ed(0x240)]]:_0xc44719,[Pe[_0x1f04ed(0x23f)]]:!_0xc44719}),_0x5f0136=_0xc44719?_0x5c5e4e[_0x1f04ed(0xdb)](Ys,null):_0x5c5e4e[_0x1f04ed(0xdb)](Gs,null),_0xca911=_0x40a9ea(()=>{_0xc44719||_0x27423f['reconnect']();},[_0xc44719,_0x27423f]);function _0x23e9bf(){const _0x5bca96=_0x1f04ed;return _0x5c5e4e['createElement'](_0x5bca96(0x3de),{'className':_0xac6ea2,'onClick':_0xca911},_0x5c5e4e[_0x5bca96(0xdb)]('div',{'className':Pe[_0x5bca96(0x272)]},_0x5f0136),_0x5c5e4e['createElement']('div',{'className':Pe[_0x5bca96(0x3a8)]},_0x200d68));}return _0xc44719?_0x23e9bf():_0x5c5e4e[_0x1f04ed(0xdb)](_0x115533,{'title':_0x364806['t'](_0x1f04ed(0x1eb))},_0x23e9bf());}var Co=Object[_0x23cbae(0xe2)],bo=Object[_0x23cbae(0x36a)],To=(_0x430b98,_0x3378c0,_0x2db448,_0x2b3420)=>{const _0x26465a=_0x23cbae;for(var _0x6ecba8=_0x2b3420>0x1?void 0x0:_0x2b3420?bo(_0x3378c0,_0x2db448):_0x3378c0,_0x58abdf=_0x430b98[_0x26465a(0xed)]-0x1,_0x5a0798;_0x58abdf>=0x0;_0x58abdf--)(_0x5a0798=_0x430b98[_0x58abdf])&&(_0x6ecba8=(_0x2b3420?_0x5a0798(_0x3378c0,_0x2db448,_0x6ecba8):_0x5a0798(_0x6ecba8))||_0x6ecba8);return _0x2b3420&&_0x6ecba8&&Co(_0x3378c0,_0x2db448,_0x6ecba8),_0x6ecba8;},Be=(_0x14efb3,_0x241f15)=>(_0x164b75,_0xfa96a5)=>_0x241f15(_0x164b75,_0xfa96a5,_0x14efb3);let Me=class extends _0xbfc176{constructor(_0x21476a,_0x1e0103,_0x3a6a7e,_0x5f7f16){const _0x135f4b=_0x23cbae;super(),l(this,'_status$',new _0x169308(P[_0x135f4b(0x26e)])),(this[_0x135f4b(0x2ce)]=_0x21476a,this['_uiPartsService']=_0x1e0103,this[_0x135f4b(0x171)]=_0x3a6a7e,this['_collaborationController']=_0x5f7f16,this[_0x135f4b(0x2cb)](),this['_initStatusListener']());}[_0x23cbae(0x3d3)](){const _0x8a1476=_0x23cbae;this[_0x8a1476(0x165)](this[_0x8a1476(0x2ce)]['focused$'][_0x8a1476(0x18c)](_0x338777(()=>{const _0x2032d5=_0x8a1476,_0x2f4ceb=this[_0x2032d5(0x2ce)]['getFocusedUnit']();return _0x2f4ceb?this[_0x2032d5(0x340)][_0x2032d5(0x13b)](_0x2f4ceb[_0x2032d5(0x183)]()):_0x4a5add(null);}),_0x338777(_0xb2d081=>_0xb2d081?_0xb2d081[_0x8a1476(0x19d)]:_0x4a5add(P[_0x8a1476(0x26e)])))[_0x8a1476(0x334)](_0xe94256=>{const _0x12b4c6=_0x8a1476;this['_status$'][_0x12b4c6(0x131)](_0xe94256);}));}[_0x23cbae(0x2cb)](){const _0x25aa65=_0x23cbae;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x1cbaaf[_0x25aa65(0x270)],()=>_0x2fb98b(Ro({'status$':this['_status$'][_0x25aa65(0x341)]()}),this['_injector'])));}};Me=To([Be(0x0,_0xf0f4c1),Be(0x1,_0x49417e),Be(0x2,_0x57082d(_0x5aca14)),Be(0x3,_0x57082d(Le))],Me);function Ro(_0x1ceb6b){const {status$:_0x680975}=_0x1ceb6b;return function(){const _0x58f7d7=_0x3f49;return _0x5c5e4e[_0x58f7d7(0xdb)](Eo,{'status$':_0x680975});};}const Xs=_0x1d1962(_0x23cbae(0x23d));var Oo=Object[_0x23cbae(0xe2)],Do=Object[_0x23cbae(0x36a)],wo=(_0x2ac873,_0x4d51ae,_0x5daafe,_0x3ca76d)=>{const _0x45491b=_0x23cbae;for(var _0x30eba2=_0x3ca76d>0x1?void 0x0:_0x3ca76d?Do(_0x4d51ae,_0x5daafe):_0x4d51ae,_0x37e0a1=_0x2ac873[_0x45491b(0xed)]-0x1,_0x4c7b75;_0x37e0a1>=0x0;_0x37e0a1--)(_0x4c7b75=_0x2ac873[_0x37e0a1])&&(_0x30eba2=(_0x3ca76d?_0x4c7b75(_0x4d51ae,_0x5daafe,_0x30eba2):_0x4c7b75(_0x30eba2))||_0x30eba2);return _0x3ca76d&&_0x30eba2&&Oo(_0x4d51ae,_0x5daafe,_0x30eba2),_0x30eba2;},ge=(_0xaf4611,_0x57708e)=>(_0x8f432e,_0x364a9b)=>_0x57708e(_0x8f432e,_0x364a9b,_0xaf4611);let Je=class extends _0x3a262a{constructor(_0x9a57f5,_0x28bb8f,_0x23c28b,_0x24ed77,_0xee5cde,_0x722dc5){const _0x361182=_0x23cbae;super(),this[_0x361182(0x37d)]=_0x9a57f5,this[_0x361182(0x135)]=_0x28bb8f,this[_0x361182(0x393)]=_0x23c28b,this[_0x361182(0x279)]=_0x24ed77,this[_0x361182(0x21f)]=_0xee5cde,_0x722dc5?_0x722dc5==null||_0x722dc5[_0x361182(0x362)]()['then'](()=>this[_0x361182(0x383)]()):(this[_0x361182(0x135)][_0x361182(0x448)](_0x361182(0x33a),_0x361182(0x28b)),this[_0x361182(0x383)]());}async[_0x23cbae(0x383)](){const _0x2cb958=_0x23cbae,_0x398507=this[_0x2cb958(0x37d)]['getParam'](_0x2cb958(0x21d)),_0x16789e=this['_urlService']['getParam'](_0x2cb958(0x2f1));if(!_0x398507||!_0x16789e){this[_0x2cb958(0x135)][_0x2cb958(0x448)](_0x2cb958(0x33a),_0x2cb958(0x357));return;}switch(Number(_0x16789e)){case k[_0x2cb958(0x34d)]:{const _0x4ecfb7=await this['_loadSheet'](_0x398507);this['_setupSubUnitSync'](_0x4ecfb7);break;}case k['UNIVER_DOC']:{await this[_0x2cb958(0xfe)](_0x398507);break;}default:{this[_0x2cb958(0x135)][_0x2cb958(0x43f)](_0x2cb958(0x33a),_0x2cb958(0x197));break;}}}async['_setupSubUnitSync'](_0x5524f5){const _0x1ef5bc=_0x23cbae;await this[_0x1ef5bc(0x2ff)](_0x5524f5),_0x5524f5['activeSheet$']['pipe'](_0x5b993c(this[_0x1ef5bc(0x16f)]))['subscribe'](_0x113a1f=>{const _0x440404=_0x1ef5bc;_0x113a1f&&this[_0x440404(0x146)](_0x113a1f);}),this['_urlService']['urlChange$']['pipe'](_0x5b993c(this[_0x1ef5bc(0x16f)]))[_0x1ef5bc(0x334)](()=>this[_0x1ef5bc(0x2ff)](_0x5524f5));}[_0x23cbae(0x146)](_0x15c9bb,_0x5e0fc5=!0x1){const _0x2cee3d=_0x23cbae,_0x2493dc=this[_0x2cee3d(0x37d)][_0x2cee3d(0x323)]('subunit');_0x15c9bb['getSheetId']()!==_0x2493dc&&this[_0x2cee3d(0x37d)][_0x2cee3d(0x2a6)](_0x2cee3d(0x337),_0x15c9bb[_0x2cee3d(0x1ff)](),_0x5e0fc5);}async[_0x23cbae(0x2ff)](_0x190536){const _0x1d590d=_0x23cbae;var _0x1e59c7;const _0x1f00ab=this[_0x1d590d(0x37d)][_0x1d590d(0x323)](_0x1d590d(0x337));if(!_0x1f00ab||!_0x190536[_0x1d590d(0x163)](_0x1f00ab)){const _0x101aa3=_0x190536[_0x1d590d(0x1cb)]()[0x0],_0x24df7f=_0x190536[_0x1d590d(0x163)](_0x101aa3);if(!_0x24df7f)return;this[_0x1d590d(0x146)](_0x24df7f,!0x0),await this['_commandService'][_0x1d590d(0x1ad)](_0x40f95f['id'],{'unitId':_0x190536['getUnitId'](),'subUnitId':_0x101aa3});return;}((_0x1e59c7=_0x190536[_0x1d590d(0x3f1)]())==null?void 0x0:_0x1e59c7[_0x1d590d(0x1ff)]())!==_0x1f00ab&&await this[_0x1d590d(0x393)][_0x1d590d(0x1ad)](_0x40f95f['id'],{'unitId':_0x190536['getUnitId'](),'subUnitId':_0x1f00ab});}async['_loadSheet'](_0x3dbb62){const _0x541d51=_0x23cbae;let _0xc9d8b7=0x0;const _0x225daa=await this[_0x541d51(0x279)][_0x541d51(0x2b7)](_0x3dbb62);return _0x225daa&&(_0x225daa[_0x541d51(0x34a)]||_0x225daa[_0x541d51(0x2e4)][_0x541d51(0xed)]!==0x0)&&(_0xc9d8b7=_0x225daa[_0x541d51(0x35b)]),_0xc9d8b7===0x0&&this['_logService']['debug']('[DataLoaderController]',_0x541d51(0x1df)),this[_0x541d51(0x21f)][_0x541d51(0x245)](_0x3dbb62,_0xc9d8b7);}async[_0x23cbae(0xfe)](_0x57f783){const _0x600017=_0x23cbae;let _0x5f5d8c=0x0;const _0x2258ce=await this[_0x600017(0x279)]['loadOfflineData'](_0x57f783);return _0x2258ce&&(_0x2258ce[_0x600017(0x34a)]||_0x2258ce['mutations'][_0x600017(0xed)]!==0x0)&&(_0x5f5d8c=_0x2258ce[_0x600017(0x35b)]),_0x5f5d8c===0x0&&this[_0x600017(0x135)][_0x600017(0x448)](_0x600017(0x33a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x600017(0x196)](_0x57f783,_0x5f5d8c);}};Je=wo([ge(0x0,Xs),ge(0x1,_0x2ed9bc),ge(0x2,_0x2c218a),ge(0x3,_0x57082d(w)),ge(0x4,_0x57082d(_0x40068b)),ge(0x5,_0x187eb8(_0x5e7b1c))],Je);var Po=Object[_0x23cbae(0xe2)],yo=Object['getOwnPropertyDescriptor'],Uo=(_0x3671e3,_0x3e06c3,_0x46696f,_0x123956)=>{const _0x4bccea=_0x23cbae;for(var _0xc96e5c=_0x123956>0x1?void 0x0:_0x123956?yo(_0x3e06c3,_0x46696f):_0x3e06c3,_0x24684e=_0x3671e3[_0x4bccea(0xed)]-0x1,_0x54844e;_0x24684e>=0x0;_0x24684e--)(_0x54844e=_0x3671e3[_0x24684e])&&(_0xc96e5c=(_0x123956?_0x54844e(_0x3e06c3,_0x46696f,_0xc96e5c):_0x54844e(_0xc96e5c))||_0xc96e5c);return _0x123956&&_0xc96e5c&&Po(_0x3e06c3,_0x46696f,_0xc96e5c),_0xc96e5c;},Ss=(_0x29ad7c,_0x1255e9)=>(_0x26c394,_0x8b53bd)=>_0x1255e9(_0x26c394,_0x8b53bd,_0x29ad7c);const No=_0x23cbae(0x330),Mo=_0x23cbae(0x447);let ze=class extends _0xbfc176{constructor(_0x341e32,_0x95d4e5){const _0x9ccaee=_0x23cbae;super(),this['_univerInstanceService']=_0x341e32,this[_0x9ccaee(0x44c)]=_0x95d4e5,this['_init']();}[_0x23cbae(0x383)](){const _0x10e9d9=_0x23cbae;this[_0x10e9d9(0x165)](this[_0x10e9d9(0x2ce)][_0x10e9d9(0x22f)][_0x10e9d9(0x334)](()=>{const _0x4baaad=_0x10e9d9;var _0x5e9a72;const _0x1e3b32=this['_univerInstanceService'][_0x4baaad(0x419)]();let _0x370ac3=(_0x5e9a72=this['_configService'][_0x4baaad(0x266)](No))!=null?_0x5e9a72:Mo;_0x1e3b32 instanceof _0x54fdc9&&(_0x370ac3=_0x1e3b32['name']),document['title']=_0x370ac3;}));}};ze=Uo([Ss(0x0,_0xf0f4c1),Ss(0x1,_0x465ebb)],ze);var Ao=Object[_0x23cbae(0xe2)],Lo=Object['getOwnPropertyDescriptor'],$o=(_0x20e142,_0x3ce095,_0x30cf9,_0x3fdc1b)=>{for(var _0x24f2a0=_0x3fdc1b>0x1?void 0x0:_0x3fdc1b?Lo(_0x3ce095,_0x30cf9):_0x3ce095,_0x382b91=_0x20e142['length']-0x1,_0x5424dc;_0x382b91>=0x0;_0x382b91--)(_0x5424dc=_0x20e142[_0x382b91])&&(_0x24f2a0=(_0x3fdc1b?_0x5424dc(_0x3ce095,_0x30cf9,_0x24f2a0):_0x5424dc(_0x24f2a0))||_0x24f2a0);return _0x3fdc1b&&_0x24f2a0&&Ao(_0x3ce095,_0x30cf9,_0x24f2a0),_0x24f2a0;},St=(_0x340358,_0x4120e2)=>(_0x19f0a3,_0x114949)=>_0x4120e2(_0x19f0a3,_0x114949,_0x340358);let Ze=class{constructor(_0x2a6305,_0x5f2ce9,_0x1b7223){const _0x265a73=_0x23cbae;this['_configService']=_0x2a6305,this['_httpService']=_0x5f2ce9,this[_0x265a73(0x152)]=_0x1b7223,this[_0x265a73(0x410)]();}[_0x23cbae(0x410)](){const _0x4a124c=_0x23cbae;this[_0x4a124c(0x438)][_0x4a124c(0x3d7)]({'priority':0x1,'interceptor':(_0x1f5eaf,_0x2774ab)=>_0x2774ab(_0x1f5eaf)[_0x4a124c(0x18c)](_0x286f48(async _0x875c68=>{const _0x3546c1=_0x4a124c,_0x518cda=_0x875c68;if(_0x518cda[_0x3546c1(0x361)]===0x191&&window['confirm'](this[_0x3546c1(0x152)]['t'](_0x3546c1(0x1b7)))){const _0x72c453=window[_0x3546c1(0x278)](window[_0x3546c1(0x3b2)][_0x3546c1(0x2a0)]);window[_0x3546c1(0x3b2)]['href']=this[_0x3546c1(0x328)]()+'?url='+_0x72c453;}return _0x518cda;}))});}[_0x23cbae(0x328)](){const _0x36e23a=_0x23cbae;var _0x351e80,_0x2cb9e7;const _0x3eaba0=this['_configService'][_0x36e23a(0x266)](Nn),_0x2244e7=this['_configService'][_0x36e23a(0x266)]($);return(_0x2cb9e7=(_0x351e80=_0x2244e7==null?void 0x0:_0x2244e7[_0x36e23a(0x37b)])!=null?_0x351e80:_0x3eaba0)!=null?_0x2cb9e7:Mn;}};Ze=$o([St(0x0,_0x465ebb),St(0x1,_0x57082d(_0x1b70f6)),St(0x2,_0x57082d(_0x1ba649))],Ze);var jo=Object[_0x23cbae(0xe2)],xo=Object['getOwnPropertyDescriptor'],Ho=(_0x42e5c2,_0x45d1d8,_0x370883,_0x258784)=>{for(var _0x3492d9=_0x258784>0x1?void 0x0:_0x258784?xo(_0x45d1d8,_0x370883):_0x45d1d8,_0x10881f=_0x42e5c2['length']-0x1,_0x2d3a19;_0x10881f>=0x0;_0x10881f--)(_0x2d3a19=_0x42e5c2[_0x10881f])&&(_0x3492d9=(_0x258784?_0x2d3a19(_0x45d1d8,_0x370883,_0x3492d9):_0x2d3a19(_0x3492d9))||_0x3492d9);return _0x258784&&_0x3492d9&&jo(_0x45d1d8,_0x370883,_0x3492d9),_0x3492d9;},ps=(_0x14a6fa,_0x587606)=>(_0x1c814a,_0x3b2147)=>_0x587606(_0x1c814a,_0x3b2147,_0x14a6fa);const ko=_0x23cbae(0x235),Bo='/universer-api/authz';let yt=class extends _0xbfc176{constructor(_0x5aa433,_0x262f36){const _0x71fd3f=_0x23cbae;super(),this[_0x71fd3f(0x17e)]=_0x5aa433,this[_0x71fd3f(0x44c)]=_0x262f36,this[_0x71fd3f(0x387)]();}[_0x23cbae(0x387)](){const _0x481a42=_0x23cbae,_0x2f5cfb=this;this[_0x481a42(0x165)](this[_0x481a42(0x17e)][_0x481a42(0x3d7)]({'priority':0x3e7,'interceptor':_0x5afcd5({'isMatch'(_0x3bc192){const _0x5a9a52=_0x481a42;var _0x43f06f;if(_0x3bc192['method']==='POST'&&((_0x43f06f=_0x3bc192[_0x5a9a52(0x261)])!=null&&_0x43f06f[_0x5a9a52(0x1f6)])){const {objectID:_0x133c10,objectType:_0xfbb1bb}=_0x3bc192[_0x5a9a52(0x261)][_0x5a9a52(0x1f6)]||{};if(!_0x133c10||_0xfbb1bb===void 0x0)return!0x1;const _0x5a9bf2=_0x2f5cfb[_0x5a9a52(0x3aa)]()+'/'+_0xfbb1bb+_0x5a9a52(0x3a4)+_0x133c10+_0x5a9a52(0x1fb);if(_0x3bc192[_0x5a9a52(0x1b6)]===_0x5a9bf2)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1b6f19){const _0x1d9abd=_0x481a42;var _0x22e85f;return(_0x22e85f=_0x1b6f19[_0x1d9abd(0x261)])==null?void 0x0:_0x22e85f[_0x1d9abd(0x1f6)];},'mergeParamsToRequest'(_0x4fddac,_0x429fb0){const _0x392fbf=_0x481a42,_0x552554=_0x2f5cfb[_0x392fbf(0x3aa)]()+_0x392fbf(0x268),_0x12c9d7=_0x4fddac[_0x392fbf(0x39b)]((_0x5c82b3,_0x51fcb1)=>{const _0x48f7f6=_0x392fbf,{unitID:_0x12f8d8,objectID:_0x58c7a4,objectType:_0x83226e,actions:_0x103cd0}=_0x51fcb1;return _0x5c82b3[_0x12f8d8]||(_0x5c82b3[_0x12f8d8]={}),_0x5c82b3[_0x12f8d8][_0x58c7a4]||(_0x5c82b3[_0x12f8d8][_0x58c7a4]={'objectID':_0x58c7a4,'objectType':_0x83226e,'actions':[]}),_0x5c82b3[_0x12f8d8][_0x58c7a4][_0x48f7f6(0x347)]['push'](..._0x103cd0),_0x5c82b3;},{}),_0x2f1806=[];for(const _0x34e33c in _0x12c9d7)for(const _0x33da8d in _0x12c9d7[_0x34e33c]){const {actions:_0x13395,objectType:_0x3d3da1}=_0x12c9d7[_0x34e33c][_0x33da8d],_0x508f89=[...new Set(_0x13395)];_0x2f1806['push']({'unitID':_0x34e33c,'objectID':_0x33da8d,'objectType':_0x3d3da1,'actions':_0x508f89});}return new _0x22675a(_0x392fbf(0x364),_0x552554,{'headers':_0x429fb0[_0x392fbf(0x367)],'withCredentials':_0x429fb0['withCredentials'],'responseType':_0x429fb0[_0x392fbf(0x15d)],'body':{'requests':_0x2f1806}});}},{'distributeResult'(_0xb7b9df,_0x16173f){const _0x37dff0=_0x481a42,{objectActions:_0x2d342f}=_0xb7b9df;return _0x16173f[_0x37dff0(0x41d)](_0x1adfde=>{const _0x2f89bf=_0x37dff0,{unitID:_0x5a97f8,objectID:_0x1b621a,actions:_0x54d845}=_0x1adfde,_0x5cd42f=_0x2d342f[_0x2f89bf(0x265)](_0x59dd65=>_0x59dd65[_0x2f89bf(0x1a5)]===_0x5a97f8&&_0x59dd65['objectID']===_0x1b621a),_0x1e568b=_0x54d845[_0x2f89bf(0x41d)](_0x3336a7=>_0x5cd42f==null?void 0x0:_0x5cd42f['actions'][_0x2f89bf(0x265)](_0x1619f2=>_0x1619f2[_0x2f89bf(0x24e)]===_0x3336a7))[_0x2f89bf(0x371)](_0x3f35ca=>!!_0x3f35ca);return{'config':_0x1adfde,'result':{'actions':_0x1e568b,'error':_0xb7b9df[_0x2f89bf(0x43f)]}};});}})}));}[_0x23cbae(0x3aa)](){const _0x58f9ea=_0x23cbae;var _0x281551,_0x4358ff;const _0x4b2484=this[_0x58f9ea(0x44c)][_0x58f9ea(0x266)](ko),_0x5b6f4f=this[_0x58f9ea(0x44c)][_0x58f9ea(0x266)]($);return(_0x4358ff=(_0x281551=_0x5b6f4f==null?void 0x0:_0x5b6f4f[_0x58f9ea(0x16e)])!=null?_0x281551:_0x4b2484)!=null?_0x4358ff:Bo;}async[_0x23cbae(0x2c7)](_0x5bce05){const _0x3f07ea=_0x23cbae,_0x43513a=this[_0x3f07ea(0x3aa)]()+'/'+_0x5bce05[_0x3f07ea(0x203)]+_0x3f07ea(0x3d2);return(await this['_HTTPService'][_0x3f07ea(0x1e5)](_0x43513a,{'body':_0x5bce05}))[_0x3f07ea(0x1f6)][_0x3f07ea(0x175)]||'';}async['list'](_0x44859c){const _0x46f77f=_0x23cbae,_0x3279cf=this[_0x46f77f(0x3aa)]()+'/-/object/list';return(await this[_0x46f77f(0x17e)]['post'](_0x3279cf,{'body':_0x44859c}))[_0x46f77f(0x1f6)]['objects'];}async[_0x23cbae(0x2d7)](_0x216bbc){const _0xa17e5e=_0x23cbae,_0x1394db=this[_0xa17e5e(0x3aa)]()+'/'+_0x216bbc[_0xa17e5e(0x203)]+_0xa17e5e(0x3a4)+_0x216bbc[_0xa17e5e(0x175)];await this[_0xa17e5e(0x17e)]['put'](_0x1394db,{'body':_0x216bbc});}async[_0x23cbae(0x303)](_0x327100){const _0x5d5d74=_0x23cbae,_0x2be7f7=this['_getAPIPrefixPath']()+'/'+_0x327100[_0x5d5d74(0x203)]+_0x5d5d74(0x3a4)+_0x327100[_0x5d5d74(0x175)]+_0x5d5d74(0x1fb);return(await this[_0x5d5d74(0x17e)]['post'](_0x2be7f7,{'body':_0x327100}))[_0x5d5d74(0x1f6)]['actions'];}async[_0x23cbae(0x251)](_0x11ebf8){const _0x2e2703=_0x23cbae,_0x1389d8=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x2e2703(0x17e)][_0x2e2703(0x1e5)](_0x1389d8,{'body':{'requests':_0x11ebf8}}))[_0x2e2703(0x1f6)][_0x2e2703(0x16d)];}async[_0x23cbae(0x1ca)](_0x532366){const _0x242a3b=_0x23cbae,_0x563956=this[_0x242a3b(0x3aa)]()+'/'+_0x532366[_0x242a3b(0x203)]+_0x242a3b(0x1de),_0x526cdb=await this['_HTTPService'][_0x242a3b(0x1e5)](_0x563956,{'body':_0x532366});return{'roles':_0x526cdb[_0x242a3b(0x1f6)][_0x242a3b(0x224)],'actions':_0x526cdb[_0x242a3b(0x1f6)][_0x242a3b(0x347)]};}async[_0x23cbae(0x391)](_0x5ca13f){const _0x5eb5a6=_0x23cbae,_0x4e3078=this['_getAPIPrefixPath']()+_0x5eb5a6(0x443);await this[_0x5eb5a6(0x17e)][_0x5eb5a6(0x1a8)](_0x4e3078,{'params':{'collaboratorID':_0x5ca13f[_0x5eb5a6(0x3ab)],'objectID':_0x5ca13f[_0x5eb5a6(0x175)],'unitID':_0x5ca13f[_0x5eb5a6(0x1a5)]}});}async['updateCollaborator'](_0x443b58){const _0x49666e=_0x23cbae,_0xc6d82=this[_0x49666e(0x3aa)]()+_0x49666e(0x443);await this[_0x49666e(0x17e)]['patch'](_0xc6d82,{'body':_0x443b58});}async[_0x23cbae(0x390)](_0x17daec){const _0x52562d=_0x23cbae,_0x25b126=this[_0x52562d(0x3aa)]()+_0x52562d(0x443);await this[_0x52562d(0x17e)][_0x52562d(0x1e5)](_0x25b126,{'body':_0x17daec});}async[_0x23cbae(0x13e)](_0x38aaca){const _0x33207d=_0x23cbae,_0xc75a89=this[_0x33207d(0x3aa)]()+'/collaborator';return(await this['_HTTPService'][_0x33207d(0x3fd)](_0xc75a89,{'params':{'objectID':_0x38aaca[_0x33207d(0x175)],'unitID':_0x38aaca[_0x33207d(0x1a5)]}}))[_0x33207d(0x1f6)][_0x33207d(0x27b)];}async[_0x23cbae(0x30a)](_0x2722be){const _0x2492f1=_0x23cbae,_0x3c9c6b=this[_0x2492f1(0x3aa)]()+_0x2492f1(0x443);await this[_0x2492f1(0x17e)][_0x2492f1(0x220)](_0x3c9c6b,{'body':_0x2722be});}};yt=Ho([ps(0x0,_0x57082d(_0x1b70f6)),ps(0x1,_0x57082d(_0x465ebb))],yt);var Vo=Object['defineProperty'],Fo=Object[_0x23cbae(0x36a)],Wo=(_0x57c3c0,_0x56f4f1,_0x4ec31b,_0x31c5b4)=>{const _0x512c97=_0x23cbae;for(var _0x5dd00f=_0x31c5b4>0x1?void 0x0:_0x31c5b4?Fo(_0x56f4f1,_0x4ec31b):_0x56f4f1,_0x5c3e80=_0x57c3c0[_0x512c97(0xed)]-0x1,_0x318e0e;_0x5c3e80>=0x0;_0x5c3e80--)(_0x318e0e=_0x57c3c0[_0x5c3e80])&&(_0x5dd00f=(_0x31c5b4?_0x318e0e(_0x56f4f1,_0x4ec31b,_0x5dd00f):_0x318e0e(_0x5dd00f))||_0x5dd00f);return _0x31c5b4&&_0x5dd00f&&Vo(_0x56f4f1,_0x4ec31b,_0x5dd00f),_0x5dd00f;},Go=(_0x398c7e,_0x3b2bb3)=>(_0x38f8cf,_0x4ff375)=>_0x3b2bb3(_0x38f8cf,_0x4ff375,_0x398c7e);let Qe=class{constructor(_0x13ca02){const _0x56316b=_0x23cbae;this[_0x56316b(0x438)]=_0x13ca02,this['_initRequestHeader']();}[_0x23cbae(0x282)](){const _0x462d92=_0x23cbae;this[_0x462d92(0x438)]['registerHTTPInterceptor']({'interceptor':(_0x3f14b7,_0xc7b55)=>{const _0x2c700f=_0x462d92,_0x2e90f7=_0x3f14b7['headers'],_0x414103=_0xa572df();return _0x414103&&_0x2e90f7['set'](_0x2c700f(0x264),_0x414103),_0xc7b55(_0x3f14b7);}});}};Qe=Wo([Go(0x0,_0x57082d(_0x1b70f6))],Qe);var Yo=Object['defineProperty'],Ko=Object[_0x23cbae(0x36a)],Xo=(_0x59e889,_0xb6fb08,_0x513fee,_0x1707e2)=>{for(var _0xeda35d=_0x1707e2>0x1?void 0x0:_0x1707e2?Ko(_0xb6fb08,_0x513fee):_0xb6fb08,_0x417771=_0x59e889['length']-0x1,_0x561b31;_0x417771>=0x0;_0x417771--)(_0x561b31=_0x59e889[_0x417771])&&(_0xeda35d=(_0x1707e2?_0x561b31(_0xb6fb08,_0x513fee,_0xeda35d):_0x561b31(_0xeda35d))||_0xeda35d);return _0x1707e2&&_0xeda35d&&Yo(_0xb6fb08,_0x513fee,_0xeda35d),_0xeda35d;},pt=(_0x41c5e4,_0x445b0c)=>(_0x3964ea,_0x567061)=>_0x445b0c(_0x3964ea,_0x567061,_0x41c5e4);const qo=[_0x23cbae(0x3bf),_0x23cbae(0xd9),'image/jpg',_0x23cbae(0x24b),_0x23cbae(0x3cf)],Jo=0x5*0x400*0x400,zo=_0x23cbae(0x1c9),Zo=_0x23cbae(0x33d),Qo=_0x23cbae(0x233),ea=_0x23cbae(0x182);let Ut=class{constructor(_0x486ce6,_0x575590,_0x4e28f2){const _0x4fb9de=_0x23cbae;l(this,'_waitCount',0x0),l(this,_0x4fb9de(0x413),new _0x4061c1()),l(this,_0x4fb9de(0x194),this[_0x4fb9de(0x413)]),l(this,_0x4fb9de(0x219),new Map()),(this[_0x4fb9de(0x438)]=_0x486ce6,this[_0x4fb9de(0x44c)]=_0x575590,this[_0x4fb9de(0x2ce)]=_0x4e28f2);}[_0x23cbae(0x190)](_0x179160){const _0x815f4c=_0x23cbae;this[_0x815f4c(0x28d)]=_0x179160,this[_0x815f4c(0x413)]['next'](_0x179160);}['getImageSourceCache'](_0xd15314,_0x5b6c58){const _0x991a6c=_0x23cbae;if(_0x5b6c58===_0xa7f0d8[_0x991a6c(0x2ee)]){const _0x358356=new Image();return _0x358356['src']=_0xd15314,_0x358356;}return this[_0x991a6c(0x219)]['get'](_0xd15314);}['addImageSourceCache'](_0x24ac98,_0x31cb7a,_0x4614a6){const _0x42635f=_0x23cbae;_0x31cb7a===_0xa7f0d8[_0x42635f(0x2ee)]||_0x4614a6==null||this['_imageSourceCache'][_0x42635f(0x111)](_0x24ac98,_0x4614a6);}async[_0x23cbae(0x284)](_0xd1d392){const _0x1727ff=_0x23cbae;try{const _0x5c1986=this[_0x1727ff(0x299)](this['_getSignURL'](),''+_0xd1d392),_0xf9313c=(await this[_0x1727ff(0x438)][_0x1727ff(0x3fd)](_0x5c1986))[_0x1727ff(0x1f6)];if(_0xf9313c[_0x1727ff(0x43f)]&&_0xf9313c[_0x1727ff(0x43f)]['code']===js['OK']){const _0x241e47=new URL(_0xf9313c['url'],this[_0x1727ff(0x38f)]())['toString']();return Promise[_0x1727ff(0x3bd)](_0x241e47);}return Promise['reject'](_0xf9313c[_0x1727ff(0x43f)]);}catch(_0x1213b9){return Promise[_0x1727ff(0x10e)](_0x1213b9);}}async[_0x23cbae(0x294)](_0xd788a6){const _0x31b980=_0x23cbae;let _0x5df742='';if(!qo[_0x31b980(0x27d)](_0xd788a6[_0x31b980(0x2f1)]))return this[_0x31b980(0x17f)](),Promise[_0x31b980(0x10e)](new Error(_0x497ab7[_0x31b980(0x3a9)]));if(_0xd788a6[_0x31b980(0x11b)]>Jo)return this[_0x31b980(0x17f)](),Promise['reject'](new Error(_0x497ab7[_0x31b980(0x37c)]));try{const _0x38558b=new FormData();_0x38558b['append'](_0x31b980(0x365),_0xd788a6);const _0xd31325=this[_0x31b980(0x2ce)][_0x31b980(0x419)](),_0x506068=_0xd31325==null?void 0x0:_0xd31325[_0x31b980(0x183)]();if(!_0x506068)throw new Error(_0x31b980(0x3ca));const _0x43bd9c=this['_getUploadFileURL']()+_0x31b980(0x3e5)+_0xd788a6[_0x31b980(0x11b)]['toString']()+_0x31b980(0x30f)+xs[_0x31b980(0x1b1)]+_0x31b980(0x20e)+encodeURIComponent(_0x506068),_0x9b5981=await(await fetch(_0x43bd9c,{'method':_0x31b980(0x364),'body':_0x38558b}))[_0x31b980(0x1ec)]();if(typeof _0x9b5981[_0x31b980(0x1fe)]!=_0x31b980(0x227))return this[_0x31b980(0x17f)](),Promise[_0x31b980(0x10e)](new Error(_0x497ab7[_0x31b980(0x114)]));_0x5df742=_0x9b5981[_0x31b980(0x1fe)];}catch{return this[_0x31b980(0x17f)](),Promise[_0x31b980(0x10e)](new Error(_0x497ab7[_0x31b980(0x114)]));}return new Promise((_0x539f83,_0x28b635)=>{const _0x19392e=_0x31b980,_0x3602d2=new FileReader();_0x3602d2[_0x19392e(0x309)](_0xd788a6),_0x3602d2['onload']=_0x34ea36=>{const _0x13a3a1=_0x19392e;var _0x1132c2;const _0x5c02f8=(_0x1132c2=_0x34ea36['target'])==null?void 0x0:_0x1132c2[_0x13a3a1(0x315)];if(_0x5c02f8==null){this[_0x13a3a1(0x17f)](),_0x28b635(new Error(_0x497ab7[_0x13a3a1(0x114)]));return;}const _0x382953=_0x2d9f70[_0x13a3a1(0x259)](0x6);_0x539f83({'imageId':_0x382953,'imageSourceType':_0xa7f0d8[_0x13a3a1(0x1c7)],'source':_0x5df742,'base64Cache':_0x5c02f8,'status':_0x497ab7[_0x13a3a1(0x339)]}),this[_0x13a3a1(0x17f)]();};});}['_getUploadFileURL'](){const _0x5586f0=_0x23cbae;var _0x496b9f,_0x5a33bb;const _0x45e4d0=this['_configService'][_0x5586f0(0x266)](zo),_0x2e2a00=this[_0x5586f0(0x44c)][_0x5586f0(0x266)]($);return(_0x5a33bb=(_0x496b9f=_0x2e2a00==null?void 0x0:_0x2e2a00[_0x5586f0(0x19e)])!=null?_0x496b9f:_0x45e4d0)!=null?_0x5a33bb:Zo;}[_0x23cbae(0x3f5)](){const _0x4044de=_0x23cbae;var _0xa8e1ac,_0x144147;const _0x13c872=this[_0x4044de(0x44c)][_0x4044de(0x266)](Qo),_0x1b4361=this[_0x4044de(0x44c)][_0x4044de(0x266)]($);return(_0x144147=(_0xa8e1ac=_0x1b4361==null?void 0x0:_0x1b4361['signUrlServerUrl'])!=null?_0xa8e1ac:_0x13c872)!=null?_0x144147:ea;}['_getDownloadEndpointURL'](){const _0x4e8904=_0x23cbae;var _0x21886f;const _0xda6f75=this[_0x4e8904(0x44c)][_0x4e8904(0x266)]($);return(_0x21886f=_0xda6f75==null?void 0x0:_0xda6f75['downloadEndpointUrl'])!=null?_0x21886f:location[_0x4e8904(0x2fd)];}['_replaceFileID'](_0x490d13,_0x553e26){const _0x1411b1=_0x23cbae;return _0x490d13[_0x1411b1(0x35d)](_0x1411b1(0x24a),_0x553e26);}['_decreaseWaiting'](){const _0x1b1816=_0x23cbae;this['_waitCount']-=0x1,this['_change$'][_0x1b1816(0x131)](this['_waitCount']);}};Ut=Xo([pt(0x0,_0x57082d(_0x1b70f6)),pt(0x1,_0x465ebb),pt(0x2,_0x57082d(_0xf0f4c1))],Ut);var ta=Object[_0x23cbae(0xe2)],sa=Object[_0x23cbae(0x36a)],ia=(_0x323770,_0x52df9a,_0x4737d8,_0x1d1f62)=>{for(var _0x4279d0=_0x1d1f62>0x1?void 0x0:_0x1d1f62?sa(_0x52df9a,_0x4737d8):_0x52df9a,_0x381ee9=_0x323770['length']-0x1,_0x5a6f1e;_0x381ee9>=0x0;_0x381ee9--)(_0x5a6f1e=_0x323770[_0x381ee9])&&(_0x4279d0=(_0x1d1f62?_0x5a6f1e(_0x52df9a,_0x4737d8,_0x4279d0):_0x5a6f1e(_0x4279d0))||_0x4279d0);return _0x1d1f62&&_0x4279d0&&ta(_0x52df9a,_0x4737d8,_0x4279d0),_0x4279d0;},ye=(_0x232952,_0x283104)=>(_0x172f4a,_0xa4b3c0)=>_0x283104(_0x172f4a,_0xa4b3c0,_0x232952);let et=class extends _0x3a262a{constructor(_0x1ba951,_0x2d71d7,_0xb2a78,_0x383263,_0xb95bc4){const _0x272021=_0x23cbae;super(),this[_0x272021(0x171)]=_0x1ba951,this[_0x272021(0x2ce)]=_0x2d71d7,this[_0x272021(0x34e)]=_0xb2a78,this['_collaborationSessionService']=_0x383263,this['_localeService']=_0xb95bc4,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x23cbae(0x1a7)](){const _0x450fef=_0x23cbae,_0x63163b=async _0x2c207a=>{const _0x36ee2a=_0x3f49;(await this[_0x36ee2a(0x3ff)][_0x36ee2a(0x236)](_0x2c207a))[_0x36ee2a(0x29c)]['pipe'](_0x4eb371(_0x3dfb77=>_0x3dfb77['eventID']===_0x44cf74[_0x36ee2a(0x34f)]),_0x5198ca(this[_0x36ee2a(0x16f)]))[_0x36ee2a(0x334)](_0x58c80a=>{const _0x4abe7c=_0x36ee2a,_0x3fb1c=_0x58c80a,{reason:_0xcc6081}=_0x3fb1c[_0x4abe7c(0x32d)];this['_injector'][_0x4abe7c(0x3fd)](_0x2493e9)[_0x4abe7c(0x2bb)]({'type':_0x135398[_0x4abe7c(0x33b)],'content':this[_0x4abe7c(0x151)]['t'](_0x4abe7c(0x2b8))+'('+_0xcc6081+')'}),this[_0x4abe7c(0x34e)][_0x4abe7c(0x12b)](new _0x41b6ca(_0x2c207a)['id'],!0x1),this[_0x4abe7c(0x3ff)][_0x4abe7c(0xff)](_0x2c207a);});};_0x395f71(this[_0x450fef(0x2ce)][_0x450fef(0x1a1)](_0x2eb231['UNIVER_SHEET']),this['_univerInstanceService'][_0x450fef(0x1a1)](_0x2eb231[_0x450fef(0x12f)]))[_0x450fef(0x18c)](_0x57b187(_0x34d194=>_0x34d194[_0x450fef(0x183)]()),_0x4eb371(_0x31dbdf=>!_0x45fcbc(_0x31dbdf)),_0x5198ca(this[_0x450fef(0x16f)]))[_0x450fef(0x334)](_0x5a6eca=>{_0x63163b(_0x5a6eca);});}[_0x23cbae(0x31c)](){const _0x2dc340=_0x23cbae,_0x4d5a64=async _0x1bf1a1=>{const _0x50a982=_0x3f49;(await this[_0x50a982(0x3ff)]['requireSession'](_0x1bf1a1))[_0x50a982(0x29c)][_0x50a982(0x18c)](_0x4eb371(_0x9b007f=>_0x9b007f[_0x50a982(0x3f0)]===_0x44cf74[_0x50a982(0x436)]),_0x5198ca(this[_0x50a982(0x16f)]))[_0x50a982(0x334)](_0x1f150d=>{const _0x10b6a9=_0x50a982,_0x2723f2=_0x1f150d,{objectId:_0x1006f3}=_0x2723f2[_0x10b6a9(0x32d)],_0x225a9f=this[_0x10b6a9(0x171)][_0x10b6a9(0x3fd)](_0x204f73);_0x1006f3===_0x1bf1a1?_0x225a9f[_0x10b6a9(0x1ef)](_0x1bf1a1):_0x225a9f[_0x10b6a9(0xf9)](_0x1bf1a1,_0x1006f3);});};_0x395f71(this[_0x2dc340(0x2ce)]['getTypeOfUnitAdded$'](_0x2eb231[_0x2dc340(0x34d)]),this[_0x2dc340(0x2ce)][_0x2dc340(0x1a1)](_0x2eb231[_0x2dc340(0x12f)]))[_0x2dc340(0x18c)](_0x57b187(_0xcdaca5=>_0xcdaca5[_0x2dc340(0x183)]()),_0x4eb371(_0x44f570=>!_0x45fcbc(_0x44f570)),_0x5198ca(this[_0x2dc340(0x16f)]))[_0x2dc340(0x334)](_0x5713e9=>{_0x4d5a64(_0x5713e9);});}};et=ia([ye(0x0,_0x57082d(_0x5aca14)),ye(0x1,_0xf0f4c1),ye(0x2,_0x3b2db3),ye(0x3,_0x57082d(he)),ye(0x4,_0x57082d(_0x1ba649))],et);var na=Object[_0x23cbae(0xe2)],ra=Object[_0x23cbae(0x36a)],oa=(_0x1ea4b0,_0x115ffc,_0x225eee,_0xf56e8e)=>{const _0x54f63e=_0x23cbae;for(var _0x3e1e2a=_0xf56e8e>0x1?void 0x0:_0xf56e8e?ra(_0x115ffc,_0x225eee):_0x115ffc,_0x91c92=_0x1ea4b0[_0x54f63e(0xed)]-0x1,_0x445bab;_0x91c92>=0x0;_0x91c92--)(_0x445bab=_0x1ea4b0[_0x91c92])&&(_0x3e1e2a=(_0xf56e8e?_0x445bab(_0x115ffc,_0x225eee,_0x3e1e2a):_0x445bab(_0x3e1e2a))||_0x3e1e2a);return _0xf56e8e&&_0x3e1e2a&&na(_0x115ffc,_0x225eee,_0x3e1e2a),_0x3e1e2a;},vs=(_0xb7e732,_0x39d803)=>(_0x461761,_0x1b4b22)=>_0x39d803(_0x461761,_0x1b4b22,_0xb7e732);let Nt=class{constructor(_0x34898e,_0x44528b){const _0x36e2a7=_0x23cbae;this['_configService']=_0x34898e,this[_0x36e2a7(0x438)]=_0x44528b;}async[_0x23cbae(0x286)](_0x50c598,_0x106e53){const _0x1cb2c7=_0x23cbae;var _0x200ebb;const {unitID:_0x38dc75,type:_0x2a4a13,revision:_0x16115f=0x0}=_0x106e53,_0xf256a2=this[_0x1cb2c7(0x2d4)]()+'/'+_0x2a4a13+'/unit/'+_0x38dc75+_0x1cb2c7(0x16a)+_0x16115f,_0x7751fa=(await this[_0x1cb2c7(0x438)][_0x1cb2c7(0x3fd)](_0xf256a2))[_0x1cb2c7(0x1f6)],_0x249995=(_0x200ebb=_0x7751fa[_0x1cb2c7(0x185)])==null?void 0x0:_0x200ebb['workbook'];if(_0x249995){const _0x35b494=_0x249995==null?void 0x0:_0x249995[_0x1cb2c7(0x1bc)],_0x296fe4=_0x510326[_0x1cb2c7(0x283)](_0x45b123(_0x35b494));_0x249995[_0x1cb2c7(0x1bc)]=_0x296fe4,Object[_0x1cb2c7(0x1d5)](_0x249995['sheets'])[_0x1cb2c7(0x273)](([,_0x326581])=>{const _0xe3077b=_0x1cb2c7,_0x3f5142=_0x326581[_0xe3077b(0x1bc)],_0x265086=_0x510326[_0xe3077b(0x283)](_0x45b123(_0x3f5142));_0x326581[_0xe3077b(0x1bc)]=_0x265086;});}return _0x7751fa;}async['getSheetBlock'](_0x5d73f0,_0x1aae06){const _0x1e7ab4=_0x23cbae,{unitID:_0x1a865c,type:_0x280be7,blockID:_0x532427}=_0x1aae06,_0xce333d=this[_0x1e7ab4(0x215)]()+'/'+_0x280be7+_0x1e7ab4(0xdf)+_0x1a865c+'/block/'+_0x532427;return(await this[_0x1e7ab4(0x438)]['get'](_0xce333d))['body'];}async[_0x23cbae(0x1d1)](_0x21bba2,_0x43fadb){const _0xcbb415=_0x23cbae,{unitID:_0x16b724,type:_0x48a1eb,blockID:_0x26fc25}=_0x43fadb,_0x8c2d4b=this[_0xcbb415(0x215)]()+_0xcbb415(0x3f2)+_0x48a1eb+_0xcbb415(0xdf)+_0x16b724+'/block/'+_0x26fc25;return(await this[_0xcbb415(0x438)]['get'](_0x8c2d4b))[_0xcbb415(0x1f6)];}async[_0x23cbae(0x164)](_0x326e4d,_0x1204bc){const _0x53671a=_0x23cbae,{unitID:_0x9817bc,type:_0x175317,from:_0x2dc69c,to:_0x371492}=_0x1204bc,_0x196011=this[_0x53671a(0x215)]()+'/'+_0x175317+_0x53671a(0xdf)+_0x9817bc+'/fetchmissing?from='+_0x2dc69c+_0x53671a(0x2b1)+_0x371492;return(await this[_0x53671a(0x438)][_0x53671a(0x3fd)](_0x196011))[_0x53671a(0x1f6)];}['_getSnapshotAPIPrefix'](){const _0x3acf39=_0x23cbae;var _0x310be5;return(_0x310be5=this[_0x3acf39(0x44c)][_0x3acf39(0x266)](vn))!=null?_0x310be5:this['_getAPIPrefix']();}[_0x23cbae(0x215)](){const _0x224cdf=_0x23cbae;var _0x189709,_0x32841c;const _0x4a9f0f=this['_configService'][_0x224cdf(0x266)](Sn),_0x17cc43=this[_0x224cdf(0x44c)]['getConfig']($);return(_0x32841c=(_0x189709=_0x17cc43==null?void 0x0:_0x17cc43['snapshotServerUrl'])!=null?_0x189709:_0x4a9f0f)!=null?_0x32841c:pn;}async[_0x23cbae(0x1b2)](_0x27a803,_0x1a2995){const _0x4a7e67=_0x23cbae,_0x1c97a2='/universer-api/snapshot/'+_0x1a2995['type']+_0x4a7e67(0xdf)+_0x1a2995[_0x4a7e67(0x1a5)]+_0x4a7e67(0x402);return(await this['_httpService']['get'](_0x1c97a2,{'params':{'resourceId':JSON[_0x4a7e67(0x18a)](_0x1a2995[_0x4a7e67(0x13f)])}}))[_0x4a7e67(0x1f6)];}['saveSnapshot'](){const _0x54ea66=_0x23cbae;throw new Error(_0x54ea66(0xda));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x23cbae(0x26f)](){const _0x374575=_0x23cbae;throw new Error(_0x374575(0xda));}[_0x23cbae(0x1c8)](){const _0x98173f=_0x23cbae;throw new Error(_0x98173f(0xda));}[_0x23cbae(0x22c)](){const _0x2f2f4c=_0x23cbae;throw new Error(_0x2f2f4c(0xda));}};Nt=oa([vs(0x0,_0x465ebb),vs(0x1,_0x57082d(_0x1b70f6))],Nt);var aa=Object[_0x23cbae(0xe2)],ca=Object[_0x23cbae(0x36a)],ha=(_0x4e5271,_0x3dbd1c,_0x593e3f,_0x2e561f)=>{const _0x38a29c=_0x23cbae;for(var _0x139603=_0x2e561f>0x1?void 0x0:_0x2e561f?ca(_0x3dbd1c,_0x593e3f):_0x3dbd1c,_0x47226c=_0x4e5271[_0x38a29c(0xed)]-0x1,_0x245773;_0x47226c>=0x0;_0x47226c--)(_0x245773=_0x4e5271[_0x47226c])&&(_0x139603=(_0x2e561f?_0x245773(_0x3dbd1c,_0x593e3f,_0x139603):_0x245773(_0x139603))||_0x139603);return _0x2e561f&&_0x139603&&aa(_0x3dbd1c,_0x593e3f,_0x139603),_0x139603;},Ue=(_0x64592e,_0x15bfdb)=>(_0x1a8e85,_0x4fae0a)=>_0x15bfdb(_0x1a8e85,_0x4fae0a,_0x64592e);let Mt=class extends _0x43badd{constructor(_0x41ea06,_0x2c1c76,_0x5eba37,_0x457ccf,_0x2bf891){const _0x430c54=_0x23cbae;super(_0x41ea06,_0x2c1c76,_0x5eba37),this[_0x430c54(0x2f5)]=_0x457ccf,this[_0x430c54(0x135)]=_0x2bf891;}['transformUndoRedo'](_0x34c5a0,_0x25fa2b){const _0x44dddf=_0x23cbae,_0x40fa17=this[_0x44dddf(0x249)](_0x34c5a0);if(_0x40fa17)try{const _0x1fffa1=this[_0x44dddf(0x3ae)](_0x40fa17,_0x25fa2b);this['_substituteUndoStack'](_0x34c5a0,_0x1fffa1);}catch(_0x553f69){this[_0x44dddf(0x135)]['error'](_0x44dddf(0x442),_0x553f69),this[_0x44dddf(0x1af)](_0x34c5a0);}const _0x433c4d=this['_getRedoStack'](_0x34c5a0);if(_0x433c4d)try{const _0x221894=this[_0x44dddf(0x3ae)](_0x433c4d,_0x25fa2b);this[_0x44dddf(0x2be)](_0x34c5a0,_0x221894);}catch(_0x58b69e){this[_0x44dddf(0x135)][_0x44dddf(0x43f)](_0x58b69e),this[_0x44dddf(0x322)](_0x34c5a0);}}[_0x23cbae(0x1af)](_0x586fb0){const _0x5ec2e4=_0x23cbae,_0x5a3f69=this['_getUndoStack'](_0x586fb0);_0x5a3f69&&(_0x5a3f69['length']=0x0,this[_0x5ec2e4(0x379)]());}[_0x23cbae(0x322)](_0x1d4180){const _0x5eec26=_0x23cbae,_0x5608fc=this[_0x5eec26(0x202)](_0x1d4180);_0x5608fc&&(_0x5608fc['length']=0x0,this[_0x5eec26(0x379)]());}[_0x23cbae(0x3ba)](_0xa24dcc,_0x2973ef){const _0x361002=_0x23cbae;this[_0x361002(0x29f)][_0x361002(0x111)](_0xa24dcc,_0x2973ef),this[_0x361002(0x379)]();}[_0x23cbae(0x2be)](_0x299d82,_0x7fdfcc){const _0x429def=_0x23cbae;this[_0x429def(0x3e7)][_0x429def(0x111)](_0x299d82,_0x7fdfcc),this[_0x429def(0x379)]();}['_transformStack'](_0x2244a2,_0x5bb8bc){const _0x26a753=_0x23cbae,_0x4b4991=[];let _0x2525e3=_0x5bb8bc,_0x138ca2=_0x5bb8bc;for(let _0x599dc7=_0x2244a2[_0x26a753(0xed)]-0x1;_0x599dc7>=0x0;_0x599dc7--){const {unitID:_0x36b1f7,undoMutations:_0x327396,redoMutations:_0x874cf4}=_0x2244a2[_0x599dc7],_0x3e37b9=this[_0x26a753(0x2f5)][_0x26a753(0x3cc)](_0x2525e3,_0x327396),_0x308a14=this[_0x26a753(0x2f5)][_0x26a753(0x3cc)](_0x138ca2,_0x874cf4);if(_0x4e72ac(_0x3e37b9)||_0x4e72ac(_0x308a14)){this[_0x26a753(0x135)][_0x26a753(0x43f)](_0x26a753(0x442),_0x26a753(0xf0),_0x3e37b9,_0x308a14);break;}_0x2525e3=_0x3e37b9[_0x26a753(0x2d5)],_0x138ca2=_0x308a14['c1Prime'],_0x4b4991[_0x26a753(0x12e)]({'unitID':_0x36b1f7,'undoMutations':_0x3e37b9['m2Prime'],'redoMutations':_0x308a14[_0x26a753(0x1b0)]});}return _0x4b4991['reverse']();}};Mt=ha([Ue(0x0,_0xf0f4c1),Ue(0x1,_0x2c218a),Ue(0x2,_0x35bd8b),Ue(0x3,_0x3ce5fa),Ue(0x4,_0x2ed9bc)],Mt);class la extends _0x3a262a{constructor(){const _0x5c5605=_0x23cbae;super(),l(this,'urlChange$'),this['urlChange$']=_0x19a309(window,_0x5c5605(0x253))['pipe'](_0x5b993c(this[_0x5c5605(0x16f)]),_0x153603(0x1),_0x483d69(void 0x0));}[_0x23cbae(0x2a6)](_0x88f50,_0x3babfd,_0x512199=!0x1){const _0x355167=_0x23cbae,_0x3740bc=new URL(window[_0x355167(0x3b2)][_0x355167(0x2a0)]);_0x3740bc['searchParams'][_0x355167(0x111)](_0x88f50,_0x3babfd),_0x512199?window[_0x355167(0x16b)][_0x355167(0x3fc)]('','',_0x3740bc[_0x355167(0x414)]()):window[_0x355167(0x16b)][_0x355167(0x326)]('','',_0x3740bc[_0x355167(0x414)]());}['removeParam'](_0x1f070b,_0x1b39bc=!0x1){const _0x9f2643=_0x23cbae,_0x1a8e8c=new URL(window[_0x9f2643(0x3b2)][_0x9f2643(0x2a0)]);_0x1a8e8c[_0x9f2643(0x2e5)][_0x9f2643(0x1a8)](_0x1f070b),_0x1b39bc?window[_0x9f2643(0x16b)][_0x9f2643(0x3fc)]('','',_0x1a8e8c[_0x9f2643(0x414)]()):window[_0x9f2643(0x16b)][_0x9f2643(0x326)]('','',_0x1a8e8c['toString']());}[_0x23cbae(0x323)](_0x48d2c0){const _0x197b86=_0x23cbae;var _0x6f51cd;return(_0x6f51cd=new URL(window[_0x197b86(0x3b2)][_0x197b86(0x2a0)])[_0x197b86(0x2e5)][_0x197b86(0x3fd)](_0x48d2c0))!=null?_0x6f51cd:void 0x0;}}var qs=Object[_0x23cbae(0xe2)],_a=Object[_0x23cbae(0x36a)],ua=(_0x4e5d3c,_0x1b67f7,_0x1d362f)=>_0x1b67f7 in _0x4e5d3c?qs(_0x4e5d3c,_0x1b67f7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d362f}):_0x4e5d3c[_0x1b67f7]=_0x1d362f,da=(_0x453e21,_0x453967,_0x5e5ab7,_0x28eb7c)=>{const _0x5842ed=_0x23cbae;for(var _0x2d5656=_0x28eb7c>0x1?void 0x0:_0x28eb7c?_a(_0x453967,_0x5e5ab7):_0x453967,_0x521b62=_0x453e21[_0x5842ed(0xed)]-0x1,_0x3167ab;_0x521b62>=0x0;_0x521b62--)(_0x3167ab=_0x453e21[_0x521b62])&&(_0x2d5656=(_0x28eb7c?_0x3167ab(_0x453967,_0x5e5ab7,_0x2d5656):_0x3167ab(_0x2d5656))||_0x2d5656);return _0x28eb7c&&_0x2d5656&&qs(_0x453967,_0x5e5ab7,_0x2d5656),_0x2d5656;},Ve=(_0x5a8871,_0x367f71)=>(_0x42a918,_0x1e84a6)=>_0x367f71(_0x42a918,_0x1e84a6,_0x5a8871),fa=(_0x388d48,_0x249b1d,_0x392c0f)=>ua(_0x388d48,_0x249b1d+'',_0x392c0f);const ma=_0x23cbae(0xe6);let At=class extends _0x23b29f{constructor(_0x35ebf2=An,_0x616e,_0x3a58e3,_0x5f17b7,_0x2d1b8e){const _0x52b1c2=_0x23cbae;super(),this[_0x52b1c2(0x42d)]=_0x35ebf2,this[_0x52b1c2(0x135)]=_0x616e,this[_0x52b1c2(0x2f0)]=_0x3a58e3,this[_0x52b1c2(0x171)]=_0x5f17b7,this[_0x52b1c2(0x44c)]=_0x2d1b8e;const {..._0x390d37}=this[_0x52b1c2(0x42d)];this[_0x52b1c2(0x44c)]['setConfig']($,_0x390d37);}[_0x23cbae(0x38c)](){const _0x25e600=_0x23cbae;this['_registerDependencies'](),_0xb5fd96(this[_0x25e600(0x171)],[[ve],[Je],[et]]);}['onReady'](){const _0x20712b=_0x23cbae;_0xb5fd96(this[_0x20712b(0x171)],[[ze]]);}[_0x23cbae(0x30d)](){const _0xb72898=_0x23cbae;this[_0xb72898(0x3b7)]();}[_0x23cbae(0x28c)](){const _0x710dd4=_0x23cbae;var _0x3b752d,_0x420d09,_0x22cfc8,_0x6ad478;this[_0x710dd4(0x171)][_0x710dd4(0x15b)](_0x2b3c29)&&this[_0x710dd4(0x135)]['error'](_0x710dd4(0x327),_0x710dd4(0x2bc));let _0x3a3deb=[[_0x2b3c29,{'useClass':Mt}],[he],[Gt],[_0x1b70f6],[Xs,{'useClass':la}],[ce],[w],[_0x556be8],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[ks],[et],[Hs,{'useClass':(_0x420d09=(_0x3b752d=this[_0x710dd4(0x42d)])==null?void 0x0:_0x3b752d[_0x710dd4(0xf5)])!=null?_0x420d09:Ct}],[_0x58f9ac,{'useClass':_0x3fa144}],[_0x5f1087,{'useClass':Nt}],[_0x562510,{'useClass':yt}],[_0x50ad99,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x22cfc8=this['_config'])!=null&&_0x22cfc8[_0x710dd4(0x422)]&&_0x3a3deb[_0x710dd4(0x12e)]([tt,{'useClass':fr}]),_0x3a3deb=_0x542d4d(_0x3a3deb,(_0x6ad478=this[_0x710dd4(0x42d)])==null?void 0x0:_0x6ad478[_0x710dd4(0x35c)]),_0x3a3deb[_0x710dd4(0x273)](_0x2ce5e3=>this[_0x710dd4(0x171)][_0x710dd4(0x302)](_0x2ce5e3)),this['_initModules']();}[_0x23cbae(0x3b7)](){const _0x579bb2=_0x23cbae;this[_0x579bb2(0x165)](this['_renderManagerService']['registerRenderModule'](_0x2eb231[_0x579bb2(0x12f)],[wt])),this[_0x579bb2(0x165)](this[_0x579bb2(0x2f0)][_0x579bb2(0x1d7)](_0x2eb231[_0x579bb2(0x34d)],[Pt]));}['_initModules'](){const _0x5b18a6=_0x23cbae;var _0x45b600,_0x2a6b0a;this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](_0x1b70f6)[_0x5b18a6(0x3d7)]({'priority':0x14,'interceptor':_0xa20eb({'maxParallel':0x6})}),this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](Qe),(_0x45b600=this[_0x5b18a6(0x42d)])!=null&&_0x45b600[_0x5b18a6(0x260)]||this[_0x5b18a6(0x171)]['get'](w)['disableLocalCache'](),(_0x2a6b0a=this[_0x5b18a6(0x42d)])!=null&&_0x2a6b0a['enableAuthServer']&&this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](Ze),this[_0x5b18a6(0x171)]['get'](Le),this[_0x5b18a6(0x171)][_0x5b18a6(0x15b)](Me)&&this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](Me);}};fa(At,'pluginName',ma),At=da([_0x375d34(_0x6a4b44),Ve(0x1,_0x2ed9bc),Ve(0x2,_0x241377),Ve(0x3,_0x57082d(_0x5aca14)),Ve(0x4,_0x465ebb)],At);export{ko as AUTHZ_URL_KEY,yt as AuthzIoHttpService,yn as COLLAB_SUBMIT_CHANGESET_URL_KEY,En as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,Eo as CollaborationStatusDisplay,ks as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,bn as HEARTBEAT_INTERVAL_KEY,Ls as HEARTBEAT_TIMEOUT_KEY,Hs as ICollaborationSocketService,Xs as IURLService,Ut as ImageIoService,wn as LOCAL_CACHE_INTERVAL_KEY,Nn as LOGIN_URL_KEY,w as LocalCacheService,On as RETRY_CONNECTING_MAX_COUNT_KEY,La as SEND_CHANGESET_TIMEOUT_KEY,Sn as SNAPSHOT_SERVER_URL_KEY,vn as SNAPSHOT_URL_KEY,Y as SessionStatus,to as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,la as WebURLService,Ln as deserializeToCombResponse,$n as serializeCombRequest};
|