@univerjs-pro/collaboration-client 0.4.1 → 0.4.2-nightly.202410291606
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 +5 -3
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +32 -1
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +2 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/auth-server/util.d.ts +1 -0
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -4
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -1
- package/lib/types/services/member/member.service.d.ts +39 -0
- package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +12 -0
- package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +1 -1
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +20 -18
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0xf86c5a=_0x556d;(function(_0x35c1c8,_0x23ba59){const _0x321330=_0x556d,_0x45256c=_0x35c1c8();while(!![]){try{const _0x42b8ef=parseInt(_0x321330(0x3a9))/0x1+parseInt(_0x321330(0x3b0))/0x2*(parseInt(_0x321330(0x359))/0x3)+-parseInt(_0x321330(0x385))/0x4*(parseInt(_0x321330(0x270))/0x5)+parseInt(_0x321330(0x336))/0x6*(-parseInt(_0x321330(0x309))/0x7)+parseInt(_0x321330(0x219))/0x8+-parseInt(_0x321330(0x302))/0x9+parseInt(_0x321330(0x38f))/0xa*(-parseInt(_0x321330(0x440))/0xb);if(_0x42b8ef===_0x23ba59)break;else _0x45256c['push'](_0x45256c['shift']());}catch(_0x1b19a3){_0x45256c['push'](_0x45256c['shift']());}}}(_0x4a74,0x406c8));var si=Object[_0xf86c5a(0xfa)],ii=(_0x3ce74f,_0x263298,_0x53bfb5)=>_0x263298 in _0x3ce74f?si(_0x3ce74f,_0x263298,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53bfb5}):_0x3ce74f[_0x263298]=_0x53bfb5,l=(_0x4e41f3,_0x48ec17,_0xb52893)=>ii(_0x4e41f3,typeof _0x48ec17!=_0xf86c5a(0x139)?_0x48ec17+'':_0x48ec17,_0xb52893);import{createIdentifier as _0x2452f4,Inject as _0x370f8c,Disposable as _0x4091c9,DisposableCollection as _0x58abb8,toDisposable as _0x441a7c,IConfigService as _0x5bc7de,ILogService as _0x593f47,UserManagerService as _0x323804,UniverInstanceType as _0x751d23,IUniverInstanceService as _0x5edd3d,LocaleService as _0x2673bf,Optional as _0x2fd677,RxDisposable as _0x27d368,Injector as _0x595e81,Tools as _0x48af3f,ILocalStorageService as _0x5d2dbc,Rectangle as _0x426027,ICommandService as _0x225d18,JSONX as _0x1d6dc3,CommandType as _0x19c41e,IPermissionService as _0x2f69f2,IUndoRedoService as _0x47fb5c,sequenceExecute as _0x240915,debounce as _0x3e7548,COLORS as _0x520aaf,ColorKit as _0x3afec0,ThemeService as _0x18d2f9,fromEventSubject as _0x51fef5,useDependency as _0x3333be,connectInjector as _0x52ea46,Workbook as _0x4e5c0a,isInternalEditorID as _0x39c20e,LocalUndoRedoService as _0x1ffda6,IContextService as _0x30c0a7,DependentOn as _0x2db17c,Plugin as _0x3e59a1,touchDependencies as _0x1509be,IAuthzIoService as _0x1ed2ef,mergeOverrideWithDependencies as _0x361c7d}from'@univerjs/core';import{Subject as _0x26d305,merge as _0x20e120,takeUntil as _0x14bd7d,BehaviorSubject as _0x52cf76,distinctUntilChanged as _0x30a823,fromEvent as _0x40fa2a,map as _0x40b982,shareReplay as _0x5da9ca,take as _0x1978dc,of as _0xfb2e43,debounceTime as _0x431a9a,filter as _0x5d44ea,switchMap as _0x4e5135,combineLatest as _0x382452,concatMap as _0x56297b,mapTo as _0x37c9c6}from'rxjs';import{map as _0x524dbf,take as _0x46d55b,filter as _0x152a98,delay as _0x48f138,throttleTime as _0x207ccd,takeUntil as _0x1c351c,switchMap as _0x570e86}from'rxjs/operators';import{MessageType as _0x424985,Tooltip as _0x27c9f9}from'@univerjs/design';import{IBeforeCloseService as _0x4cf196,IMessageService as _0x3aa03b,INotificationService as _0x7bfd4b,useObservable as _0xa83107,BuiltInUIPart as _0x1527eb,IUIPartsService as _0x53177d}from'@univerjs/ui';import{HTTPService as _0x172026,WebSocketService as _0x109644,MergeInterceptorFactory as _0x420762,HTTPRequest as _0x3fb75d,IHTTPImplementation as _0x3320f6,XHRHTTPImplementation as _0x41bcb6,ThresholdInterceptorFactory as _0x5a0116}from'@univerjs/network';import{CollaborationEvent as _0x455562,parseChangesetToProtocol as _0x6e367b,ISnapshotServerService as _0x39263e,isTransformMutationFailure as _0x3e8650,isTransformMutationsWithChangesetSuccess as _0x1a8f7d,ITransformService as _0x285caf,RevisionService as _0x4a413b,mapDocumentTypeToUniverType as _0xe9c082,isTransformChangesetsSuccess as _0x23b874,CompressMutationService as _0x4517e4,parseProtocolChangeset as _0x5d6100,SnapshotService as _0xbe9482,textEncoder as _0x30b993,b64DecodeUnicode as _0x5b5300,isTransformMutationsWithChangesetFailure as _0x2294b0,UniverCollaborationPlugin as _0x5d47ea}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x382310}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x192645,DocStateChangeManagerService as _0x4b5fef,NodePositionConvertToCursor as _0x3dcd36,isValidRectRange as _0x4fc5a4,NodePositionConvertToRectRange as _0x241d4c,TEXT_RANGE_LAYER_INDEX as _0x3650e3,SetDocZoomRatioOperation as _0xbd22e5}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x48f502,SetSelectionsOperation as _0x2113e6,InsertSheetMutation as _0x3bebbc,EmptyMutation as _0xbc7763,WorkbookEditablePermission as _0x365664,RefRangeService as _0x3cfe14,EffectRefRangId as _0x55e87d,handleIRemoveRow as _0x27df45,handleIRemoveCol as _0x4a0d66,handleMoveRange as _0x235916,handleInsertRow as _0x50739d,handleInsertRangeMoveRight as _0x387247,handleInsertRangeMoveDown as _0x5f07f7,handleInsertCol as _0x495110,handleDeleteRangeMoveUp as _0x4abff6,handleDeleteRangeMoveLeft as _0x59ccd8,runRefRangeMutations as _0x3a1e73,SetWorksheetActivateCommand as _0x558010}from'@univerjs/sheets';import{IRenderManagerService as _0x366dfc,Shape as _0x167643,Rect as _0x3fc8ee,getColor as _0x5856f4,RegularPolygon as _0x5f2724,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x233e1a,Vector2 as _0x5207df}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x4562e0,RichTextEditingMutation as _0x21b448,SetTextSelectionsOperation as _0x17ed1c,DocSkeletonManagerService as _0x3d6839}from'@univerjs/docs';import{ImageSourceType as _0x207292,ImageUploadStatusType as _0x4ab8b4,IImageIoService as _0x1886e9}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x131128,serializeRangeWithSheet as _0x57d531}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x40b0bd,VIEWPORT_KEY as _0x3de08b,getCoordByCell as _0x4bd0fa,getSheetObject as _0x4b698d,SheetPermissionInitController as _0x1b9bdb}from'@univerjs/sheets-ui';import _0x52a9d6,{forwardRef as _0x31fd8f,useRef as _0x782f32,createElement as _0x5d9ae6,useCallback as _0x4bc1b9}from'react';import{IRemoteInstanceService as _0x5e0f61}from'@univerjs/rpc';import{getAttachHeader as _0x5a86a8}from'@univerjs-pro/license';const Sn=_0xf86c5a(0x2ad),pn=_0xf86c5a(0x1aa),vn='SNAPSHOT_URL_KEY',La=_0xf86c5a(0x419),In=0x7d0,En=_0xf86c5a(0x1e1),Cn='ws://127.0.0.1:8000/universer-api/comb/connect',bn=_0xf86c5a(0x207),Tn=0x7530,$s=_0xf86c5a(0x458),js=0x4e20,Rn=0x4e20,On='RETRY_CONNECTING_MAX_COUNT',Dn=0x3,wn='LOCAL_CACHE_INTERVAL',Pn=0x3e8,yn=_0xf86c5a(0x180),Un=_0xf86c5a(0x423),Nn='LOGIN_URL_KEY',Mn='/universer-api/oidc/authpage';var xs=(_0x1b17fc=>(_0x1b17fc[_0x1b17fc['UNDEFINED']=0x0]=_0xf86c5a(0xff),_0x1b17fc[_0x1b17fc['OK']=0x1]='OK',_0x1b17fc[_0x1b17fc[_0xf86c5a(0x332)]=0x2]=_0xf86c5a(0x332),_0x1b17fc[_0x1b17fc['PERMISSION_DENIED']=0x3]=_0xf86c5a(0x3d8),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x149)]=0x4]=_0xf86c5a(0x149),_0x1b17fc[_0x1b17fc['UNAUTHENTICATED']=0x5]=_0xf86c5a(0x321),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x103)]=0x6]=_0xf86c5a(0x103),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x1b1)]=0x7]=_0xf86c5a(0x1b1),_0x1b17fc[_0x1b17fc['TOO_MANY_REQUESTS']=0x8]=_0xf86c5a(0x38c),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x24d)]=0x9]=_0xf86c5a(0x24d),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x298)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1b17fc[_0x1b17fc[_0xf86c5a(0x12b)]=0x1771]=_0xf86c5a(0x12b),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x35d)]=0x1772]=_0xf86c5a(0x35d),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x3ac)]=0x1773]=_0xf86c5a(0x3ac),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x30c)]=0x1b59]='APPLY_REJECT',_0x1b17fc[_0x1b17fc[_0xf86c5a(0x323)]=0x1b5a]=_0xf86c5a(0x323),_0x1b17fc[_0x1b17fc['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xf86c5a(0x27f),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x18e)]=0x1b5c]=_0xf86c5a(0x18e),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x275)]=0x1b5d]=_0xf86c5a(0x275),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x262)]=0x1f41]=_0xf86c5a(0x262),_0x1b17fc[_0x1b17fc['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0xf86c5a(0x407),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x278)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1b17fc[_0x1b17fc['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xf86c5a(0x3a4),_0x1b17fc[_0x1b17fc['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0xf86c5a(0x2e8),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x21c)]=0x232d]=_0xf86c5a(0x21c),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x414)]=0x2711]=_0xf86c5a(0x414),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x368)]=0x2712]=_0xf86c5a(0x368),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x20a)]=0x2713]=_0xf86c5a(0x20a),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x2c8)]=0x2714]=_0xf86c5a(0x2c8),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x17d)]=-0x1]='UNRECOGNIZED',_0x1b17fc))(xs||{}),k=(_0xb2e5b1=>(_0xb2e5b1[_0xb2e5b1[_0xf86c5a(0x2ef)]=0x0]=_0xf86c5a(0x2ef),_0xb2e5b1[_0xb2e5b1['UNIVER_DOC']=0x1]='UNIVER_DOC',_0xb2e5b1[_0xb2e5b1[_0xf86c5a(0x1af)]=0x2]=_0xf86c5a(0x1af),_0xb2e5b1[_0xb2e5b1[_0xf86c5a(0x21f)]=0x3]=_0xf86c5a(0x21f),_0xb2e5b1[_0xb2e5b1[_0xf86c5a(0x36a)]=0x4]=_0xf86c5a(0x36a),_0xb2e5b1[_0xb2e5b1[_0xf86c5a(0x17d)]=-0x1]=_0xf86c5a(0x17d),_0xb2e5b1))(k||{}),I=(_0x2a6976=>(_0x2a6976[_0x2a6976[_0xf86c5a(0x294)]=0x0]=_0xf86c5a(0x294),_0x2a6976[_0x2a6976[_0xf86c5a(0x378)]=0x1]=_0xf86c5a(0x378),_0x2a6976[_0x2a6976[_0xf86c5a(0x1c5)]=0x2]=_0xf86c5a(0x1c5),_0x2a6976[_0x2a6976[_0xf86c5a(0x1a6)]=0x3]=_0xf86c5a(0x1a6),_0x2a6976[_0x2a6976[_0xf86c5a(0x3ad)]=0x4]='INGEST',_0x2a6976[_0x2a6976[_0xf86c5a(0x3cd)]=0x5]='HEARTBEAT',_0x2a6976[_0x2a6976[_0xf86c5a(0x362)]=0x6]=_0xf86c5a(0x362),_0x2a6976[_0x2a6976['UNRECOGNIZED']=-0x1]=_0xf86c5a(0x17d),_0x2a6976))(I||{}),Vt=(_0x18dc00=>(_0x18dc00[_0x18dc00[_0xf86c5a(0x19a)]=0x0]=_0xf86c5a(0x19a),_0x18dc00[_0x18dc00['OK']=0x1]='OK',_0x18dc00[_0x18dc00[_0xf86c5a(0x3d4)]=0x2]=_0xf86c5a(0x3d4),_0x18dc00[_0x18dc00['UNRECOGNIZED']=-0x1]=_0xf86c5a(0x17d),_0x18dc00))(Vt||{}),Hs=(_0x4263db=>(_0x4263db[_0x4263db['Undefined']=0x0]=_0xf86c5a(0x1dc),_0x4263db[_0x4263db['HttpImport']=0x1]=_0xf86c5a(0x39a),_0x4263db[_0x4263db[_0xf86c5a(0x1c4)]=0x2]=_0xf86c5a(0x1c4),_0x4263db[_0x4263db['UnitEmbedded']=0x3]=_0xf86c5a(0x267),_0x4263db[_0x4263db['UnitSnapshot']=0x4]=_0xf86c5a(0x416),_0x4263db[_0x4263db[_0xf86c5a(0x17d)]=-0x1]=_0xf86c5a(0x17d),_0x4263db))(Hs||{});const $=_0xf86c5a(0x147),An={};function Ln(_0x691c91){const _0x3c7378=_0xf86c5a;var _0x220c34,_0x5e0eb9,_0x4e5cac,_0xc8d981;const _0x23da9a=_0x691c91[_0x3c7378(0x129)],_0x546fd8=JSON[_0x3c7378(0x3c7)](_0x23da9a);switch(_0x546fd8[_0x3c7378(0x46b)]){case I[_0x3c7378(0x3cd)]:case I['HELLO']:{const _0x126c99=_0x546fd8[_0x3c7378(0x186)];return{..._0x546fd8,'data':_0x126c99,'cmd':_0x546fd8[_0x3c7378(0x46b)]};}case I[_0x3c7378(0x1c5)]:{const _0x499890=_0x546fd8[_0x3c7378(0x285)];return{..._0x546fd8,'data':_0x499890,'cmd':_0x546fd8[_0x3c7378(0x46b)]};}case I['RECV']:{const _0x595285=_0x546fd8[_0x3c7378(0x17c)];switch(_0x595285[_0x3c7378(0x26e)]){case _0x455562[_0x3c7378(0x3f1)]:return{..._0x546fd8,'data':{..._0x595285,'data':(_0x220c34=_0x595285['permissionRejEvent'])==null?void 0x0:_0x220c34['cs']},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562['CHANGESET_ACK']:return{..._0x546fd8,'data':{..._0x595285,'data':(_0x5e0eb9=_0x595285[_0x3c7378(0x426)])==null?void 0x0:_0x5e0eb9['cs']},'cmd':_0x546fd8['cmd']};case _0x455562[_0x3c7378(0x305)]:return{..._0x546fd8,'data':{..._0x595285,'data':(_0x4e5cac=_0x595285[_0x3c7378(0x452)])==null?void 0x0:_0x4e5cac['cs']},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x339)]:return{..._0x546fd8,'data':{..._0x595285,'data':(_0xc8d981=_0x595285[_0x3c7378(0x2e2)])==null?void 0x0:_0xc8d981['cs']},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562['UPDATE_CURSOR']:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x429)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562['USERS_ENTER']:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x413)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x1f4)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0xe3)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x1b6)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x233)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x357)]:case _0x455562[_0x3c7378(0x2a2)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x35f)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x469)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x233)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x350)]:return{..._0x546fd8,'data':_0x595285,'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562['COMMENT_UPDATE']:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x44e)]},'cmd':_0x546fd8['cmd']};case _0x455562[_0x3c7378(0x33b)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x1ea)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x12d)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x21d)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};default:return _0x546fd8;}}default:return _0x546fd8;}}function _0x4a74(){const _0x334bb7=['[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_incrementRevisionNumber','391711ITnPHz','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose','ENSURE_SNAPSHOT_EXECUTION','INGEST','Warning','baseRev','551086QQVxvf','event$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','toggleOnline','\x20in\x20_schedule.','localeService','_onMessage','loadDoc','_members','_clearOtherTimers','src','m2Prime','collab-text-range-','getCurrentRevOfUnit','\x20-\x20','collabStatus.offline','_selfUnitIDs','mutations','_userManagerService','state','_config','_initCommandExecutedListener','routeKey','parse','_onUserLeave','list','_saveCache','_onRemoteChangeset','_getSaveTimeout','HEARTBEAT','getDeserializedSheetBlock','_initRequestHeader','saveSheetBlock','update','UPDATE_CURSOR','createSocket','FAIL','_waitForHeartbeatResponse','session.collaboration-timeout','_hovered','PERMISSION_DENIED','_removeCollabCursors','clearTimeout','fetchMiss','_colorAssignService','_timeoutTimer','getRangePointData','responseType','onPointerMove$','actions','transformIMECache','/universer-api/file/{fileID}/sign-url','[PendingState]:\x20received\x20acknowledgement.','_clearScheduledTask','clear','hidden','key','collabSubmitChangesetUrl','_changesetReqId','storage','loadOfflineData','addEventListener','_sheetSkeletonManagerService','catch','_retryConnectingTimer','PERMISSION_REJ','_transformUndoRedoStack','sessionStatus','socket\x20open.','originalMeta','_httpService','_initResize','none','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','encode','_collaborationSessionService','connection\x20error','_initStatusComponent','PENDING','bind','subscribeEvent','UNIVER_COLLABORATION_CLIENT_PLUGIN','roles','_clearTimeoutTimer','_startCollaboration','_onCombEvent','selection','LICENSE_MAX_UNITS_EXCEEDED','/-/object/-/batch_allowed','_startTelemetryCollaborationNewChangeset','requestParams','use','transformUndoRedo','reqId','collabStatus.notCollab','getValue','_renderManagerService','syncEditingCollabCursor','currentTheme$','joinEvent','YUUMI_UNABLE_LOAD_URL','_snapshotService','UnitSnapshot','_docStateChangeManagerService','collaboratorID','SEND_CHANGESET_TIMEOUT','_onRefRangeChange','href','[SyncedState]:\x20received\x20rejection.','_handleLeaveEvent','_startSheetCollabCursor','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','range','randomUUID','MoveRangeCommandId','/universer-api/comb','LIVESHARE_REQUEST_HOST','_cursor','csAckEvent','unitID','setConfig','updateCursorEvent','_socketMessageSubscription','code','slice','_listenToOnlineEvent','_cachedData','objectID','_getSendChangesetTimeout','_textBubble','image/gif','unknown','resend','_logService','beginPath','column','_scheduleCollaborationTimeoutTimer','loadSheet','_handler','onSendChangeset','drawWith','equals','onTransformIME','JOINING','854612aHvZcR','_labelPosition','purple300','#fff','encodeURIComponent','/object','labelPosition','_onConflict','concat','contains','_onUserJoin','Error','_change$','getCollabCursors$','commentUpdateEvent','_createHandler','patch','#FFF','newCsEvent','isArray','onMissingChangesets','_scheduleSaving','_commandService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HEARTBEAT_TIMEOUT','target','collaboration.single-unit.warning','onReady','_socket','_socketService','createInstance','evenodd','_stopTelemetryCollaborationNewChangeset','_collaborationPaused','auth.needGotoLoginAlert','_saveTaskMap','[OfflineState]:\x20received\x20acknowledgement.','_getUploadFileURL','onlineStatus','result','entries','LIVESHARE_TERMINATE','size','cmd','leaveEvent','children','createElement','listCollaborators','_render','_tryEnsureSocket','fetchThroughInterceptors','onRemoteAck','_getAnchorBounding','_draw','enableOfflineEditing','_updateSubUnitFromURLParams','_ws','ERROR_IMAGE_TYPE','prototype','resourceIDs','_substituteRedoStack','_getCurrentRevision','rgba(255,\x20255,\x20255,\x200.01)','sessionStatus$','currentColor','getUnitStatus$','visibilityState','defineProperty','transformSelections','_localStorageService','_loadDoc','confirm','UNDEFINED','send','onStateChange','_handleHover','ALREADY_EXISTS','propertyIsEnumerable','_urlService','push','delete','MUTATION','history','onlyLocal','makeDirty','text','RemoveRowCommandId','_sendHeartbeatTimer','_shapes','\x0aCurrent:\x20','_transformStack','_getAPIPrefix','/collaborator','getSheetBlock','SYNCED','roomMembers','_setupBeforeClosingHandler','_clearRedo','values','/object/','url','close','addObjects','transformMutation','name','AWAITING','_uiPartsService','_messageService','offline','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','displayName','saveSnapshot','_socketReady','getVpScrollXYInfoByPosToVp','data','setWaitCount','SNAPSHOT_INVALID_SNAPSHOT','_createSocket','SHOULD_CLOSE_CONN','_lockTransition','_submitChangeset','/allowed','_disabled','clipPath','current','resize','withCredentials','message$','image/bmp','_createInitialState','symbol','isPermissionRej','icon','fillRule','requireSession','_updateStatus','_permissionService','defs','[CollaborationState]:\x20apply\x20error!','[OfflineState]:\x20received\x20rejection.','removeParam','_send','getSheetBySheetId','on-line-single_clip0_910_349','collaboration-client.config','_shouldReportTelemetry','NOT_FOUND','object','create','AWAITING_WITH_PENDING','_hideTimer','_roomMembers$','enableSingleActiveInstanceLock','_replayCachedMutations','_listenToOfflineEvent','onStarting','_getUndoStack','compose','colorChannel1','ERROR_EXCEED_SIZE','getSkeleton','BASE64','getUnitType','_onRemoteRejected','_transitionLocked','measureText','_status$','closeSession','then','0\x200\x2016\x2016','moveTo','onCommentUpdate','COMPRESS_MUTATION_APPLY','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','popstate','collaboration.closeRoom','_joinRoom','cursorInfo','_unitStatus','_sheetTransformSelectionsService','fill','...','stopTime','/block/','translate(.97)','[FetchMissState]','_notificationService','_singleActiveUnitService','_lastPointer','replace','get','_registerRenderDependencies','disposeWithMe','_tryReconnect','find','font','_undoRedoService','collaMsg','UNRECOGNIZED','snapshot','deepClone','COLLAB_SUBMIT_CHANGESET_URL','activeSheet$','/resources','url(#$1','_refreshCollabCursors','updateMember','infoRsp','image/jpg','docStateChange$','_syncEditingCollabCursorService','downloadEndpointUrl','/rev/','pushState','_state$','APPLY_PERMISSION_DENIED','init','path','getMember','memberID','triggerDblclick','_transformUndoredo','session','NO_OTHER_CLIENTS_EDITING','signUrlServerUrl','_online','COMMENT_UPDATE','UNKNOWN_CODE','_telemetryInfo','_scheduleHeartbeat','onRemoteChangeset','?url=','searchParams','getUndoRedoMutationParamsCache','_toggleOffline','_getLoginPath','_updateURLWithCurrentState','enableLocalCache','Error\x20on\x20receiving\x20event','LEAVE','getCurrentUser','_collabCursorController','_decreaseWaiting','/universer-api/snapshot','string','saveOfflineData','function','_getAPIPrefixPath','UNIVER_SHEET','OTHER_CLIENTS_EDITING','INVALID_ARGUMENT','[UniverCollaborationClientPlugin]','verdancy600','_docTransformSelectionsService','executeCommand','LIVESHARE_NEW_HOST','[DataLoaderController]','failed\x20to\x20apply\x20missed\x20changesets!','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COMPRESS_MUTATION_SEND','OnLineSingle','getOwnPropertySymbols','collabCursorState$','roomInfos','getConfig','_cursorShapes','setParam','_transformRemoteChangesetByIMECache','subscribe','HttpExport','JOIN','_getSheetObject','_http','_applyRemoteChangeset','_showConflictNotification','univer-pro.collaboration-client-socket-service','_acknowledgedAwaitingChangeset','row','_sessions','call','univer-online-status','SUBMIT_CHANGESET','/universer-api/snapshot/','_disableEditing','[OfflineState]:\x20received\x20changeset.','CONFLICT','_cursors','startColumn','post','_throwTelemetryCollaborationNewChangeset','changesets','_removeClearOtherTimer','_registerDependencies','Undefined','c2Prime','height','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','allowed','COLLAB_WEB_SOCKET_URL','saveImage','_drawAnchor','members','off-line-single_clip0_910_343','_instanceService','transformMutationsWithChangeset','_range','add','updatePermissionObjEvent','isEditing','whenReady','onTransformSelections','exhaustSavingTask','reverse','conflict.content','/universer-api/authz','_getSignURL','save','USERS_LEAVE','has','getTypeOfUnitDisposed$','_clearCollaborationTimeoutTimer','_localeService','_sendingTimer','InsertRangeMoveRightCommandId','copyFileMeta','sheets','objects','submit\x20changeset\x20error!','_docSyncEditingCollabCursorService','_collabCursorState$','selections','toString','getWorkbookSelections','getActiveSheet','_scheduleTimestamp','with','HEARTBEAT_INTERVAL','OffLineSingle','top','YUUMI_RATE_OVER_LIMIT','[CollaborationSession]','_state','collabStatus.synced','body','_updateState','[CollaborationSessionService]','_event$','location','_getMergeRange','FileId','ACTIVE_UNIT_EVENT_CHANNEL','_changesetSessionId','status$','getCurrent','2987424GgZtis','startsWith','_telemetryService','LICENSE_DISTRO_REJECTED','shouldCloseConn','setTimeout','UNIVER_SLIDE','capture','_getScale','getTime','registerComponent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','blue400','conflict.title','_context','roomMembers$','_transformIMECache','_onFetchMissResult','_injector','toggleOffline','transformRemoteChangeset','collabStatus.syncing','fillText','_candidateSocket','_imageSourceCache','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','liveShareNewHost','permission.title','_transformService','gold400','disableLocalCache','setInterval','NOT_COLLAB','enableAuthServer','getUnhiddenWorksheets','socket$','className','getUnitId','next','_anchor','apply','_scene','_beforeCloseService','c1Prime','_compressMutationService','type','_commentService','div','getImage','unit','_syncEditingCollabCursor','USERS_ENTER','COMPLETION_FINISHED','replaceState','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_initEventListeners','_initMergeInterceptor','hasOwnProperty','_type','black','UUID','_onCursorUpdate','collaborators','extend','setCurrentUser','_assignedColors','_awaitingChangeset','findNodePositionByCharIndex','unitId','listRoles','registerHTTPInterceptor','_refRangeService','onTransformChange$','CONNECTOR_DATA_TOO_LARGE','getFocusedUnit','_colorIndex','show','_heartbeatTimer','UnitEmbedded','pipe','_handleJoinEvent','_pendingMutations','headers','forEach','unsubscribe','eventID','_unlockTransition','10gRSGLX','_sendHeartbeat','_schedule','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','jiqing500','APPLY_DUPLICATED','_updateCollabCursors','getCollabEntity$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','addObject','file','rev','_fetchMissChangesets','doc.mutation.rich-text-editing','DeleteRangeMoveUpCommandId','APPLY_REVISION_CONFILICT','json','_initModules','xlink:href','_backgroundColor','_HTTPService','joinRsp','_handleHeartbeatEvent','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformRemoteChangesetByIMECache','_collaborationController','_initStatusListener','stringify','length','title','error$','IDLE','visibilitychange','endRow','_session','univer-online-status-icon','UNKNOWN_CMD','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_exhaustRemoteChangesetQueue','getRenderById','CHANGESET_REVISION_CONFILICT','getCollabEntity','status','transformStack\x20failed!','rng','_initUnitPermissionChange','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','registerOnClose','OFFLINE','LIVESHARE_OPERATION','some','snapshotServerUrl','unit-cache-','objectType','random','onCommandExecuted','FromArray','synced','_onLocalMutation','getCurrentSelections','SNAPSHOT_SERVER_URL_KEY','_configService','_waitCount','now','getItem','userID','_clearLocalCache','ONLINE','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','&assign=','closePath','/unit/','_onCursorDelete','POST','getActiveRange','fillStyle','interceptor','set','attrs','svg','map','_onConnectionFailed','_anchorDot','DeleteRangeMoveLeftCommandId','_document','ranges','Unknown\x20user','YUUMI_SUBSCRIPTION_NOT_FOUND','getDocRanges','PSEUDO_FETCH_MISSING_RESULT','registerBeforeClose','socketService','transformChangesets','uploadFileServerUrl','_hover','onPointerEnter$','editingUnit','_color','appendMutation','focused$','off-line-single','_name','every','_entityInit$','univer-online-status-title','arc','registerRefRange','_snapshotServerService','collaboration_new_changeset','pending','toRgbString','_retryCount','params','csRejEvent','_docTransformIMECacheService','CHANGESET_ACK','_themeService','change$','_socket$','LICENSE_EXPORT_SIZE_EXCEEDED','_unitOnClients','_checkMissing','_drawTextRange','univerjs-icon\x20univerjs-icon-','indexOf','max','UNIVER_UNKNOWN','awaitingChangeset','_collabSessionService','collabStatus.fetchMiss','getOffsetConfig','textRanges','univer-online','_toggleOnline','addImageSourceCache','univer-pro.collaboration-client.single-active-unit-service','_id','onPointerLeave$','getViewport','[CollaborationEntity]','save\x20fail\x20reason\x20is\x20','hide','onMissedChangesetFetched','getSheetId','getUnit','463995JZOVGL','flatMap','_getRedoStack','NEW_CHANGESETS','_clearHeartbeatTimer','complete','split','2813475pjxrjN','startTime','setItem','APPLY_REJECT','_init','width','_onRecvEvent','close$','_updateLocalCache','trim','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','m1Prime','refreshPermission','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_rescheduleHeartbeat','cursorInfo$','/-/object/list','_commentUpdate$','revision','_updateLocalCursor','[SyncedState]:\x20received\x20acknowledgement.','assignAColorForMemberID','_substituteUndoStack','UNIVER_DOC','UNAUTHENTICATED','fetch_missing','APPLY_NON_SEQUENTIAL_REVISION','InsertColCommandId','engine','reduce','includes','isActive','_eventUnsubscribe','_redoStacks','not_collab','_revisionService','_removeRoom','on-line-single','_clearUndo','_entities','_cursorInfo$','INTERNAL_ERROR','collaboration-session-retry','sid','getParam','6FOjTUH','getRoom','UniverIcon','CHANGESET_REJ','awaiting_with_pending','UPDATE_PERMISSION_OBJ','restore','newValue','unshift','color','_sessionStatus$','clearInterval','_getSnapshotAPIPrefix','updateCollaborator','_replaceFileID','onload','_onOffline','_isPermissionRej','transformByState','setShapeProps','retryConnectingInterval','all','tag','updateOfflineData','awaiting','_memberService','MSG_FOR_ERROR','_queuedRemoteChangesets','socket\x20close','onlineStatusIcon','round','_unitID','_roomMembers','LIVESHARE_FETCH_OPERATIONS','_univerInstanceService','3NbOEOV','createCollaborator','open$','setActiveRange','SNAPSHOT_HAS_BEEN_REMOVED','putCollaborators','liveShareOperation','getInterceptPoints','registerRenderModule','RECV','state$','subunit','\x20to\x20','hovered','_collaborationTimeoutTimer','YUUMI_URL_COL_OUT_OF_RANGE','getMemberID','UNIVER_PROJECT','sheetId','lineTo','reconnect','_scheduleClearOtherTimer','_ensureSubject','univer-offline','collabWebSocketUrl','getCurrentUnitForType','_localCacheService','online','removeMember','_remoteChangesetQueue','asObservable','HELLO','debug','_setupSubUnitSync','onRemoteRej','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','from','FETCH_MISSING','0\x200\x2017\x2016','red300','onSyncEditingCollabCursor','updatePermissionPoint','getRandomValues','fetchMissingChangesets','25108uVynet','pluginName','idSuffix','_getDownloadEndpointURL','ERROR_IMAGE','M0\x200H16V16H0z','FETCH_MISS','TOO_MANY_REQUESTS','_executeRemoteChangeset','_onJoinRoomEvent','40bwSEOG','permission.content','url(#off-line-single_clip0_910_343)','setAlpha','_handleEvent','min','_drawRectRange','1em','getOwnPropertyDescriptor','collaboration-client.offline-data-not-saved','_startDocCollabCursor','HttpImport','DEFAULT_FILE_NAME','telemetry\x20info\x20is\x20not\x20initialized','dispose$','_transformSelections','reject','onMouseMove','pauseCollaboration','_docSkeletonManagerService','generateRandomId','LICENSE_IMPORT_SIZE_EXCEEDED','error','getTypeOfUnitAdded$'];_0x4a74=function(){return _0x334bb7;};return _0x4a74();}function $n(_0x249f9b){const _0x59cb51=_0xf86c5a;switch(_0x249f9b[_0x59cb51(0x46b)]){case I[_0x59cb51(0x3cd)]:case I[_0x59cb51(0x378)]:return JSON[_0x59cb51(0x28b)]({'cmd':_0x249f9b['cmd'],'routeKey':_0x249f9b[_0x59cb51(0x3c6)]});case I['INGEST']:{let _0xf65c2a;switch(_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x26e)]){case _0x455562[_0x59cb51(0x3d2)]:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x3d2)],'updateCursorEvent':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562[_0x59cb51(0x1f4)]:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x1f4)],'leaveEvent':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562[_0x59cb51(0x24c)]:{_0xf65c2a={'eventID':_0x455562['USERS_ENTER'],'joinEvent':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562[_0x59cb51(0x1b6)]:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x1b6)],'liveShareNewHost':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562['LIVESHARE_OPERATION']:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x2a2)],'liveShareOperation':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562['LIVESHARE_TERMINATE']:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x469)],'liveShareTerminate':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562[_0x59cb51(0x424)]:{_0xf65c2a={'eventID':_0x455562['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562[_0x59cb51(0x357)]:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x357)]};break;}default:_0xf65c2a={'eventID':_0x249f9b['data']['eventID']};}return JSON[_0x59cb51(0x28b)]({'cmd':_0x249f9b[_0x59cb51(0x46b)],'routeKey':_0x249f9b[_0x59cb51(0x3c6)],'collaMsg':_0xf65c2a});}case I[_0x59cb51(0x1c5)]:return JSON[_0x59cb51(0x28b)]({'cmd':_0x249f9b[_0x59cb51(0x46b)],'routeKey':_0x249f9b[_0x59cb51(0x3c6)],'joinReq':_0x249f9b[_0x59cb51(0x129)]});case I['LEAVE']:return JSON[_0x59cb51(0x28b)]({'cmd':_0x249f9b['cmd'],'routeKey':_0x249f9b['routeKey'],'leaveReq':_0x249f9b['data']});default:throw new Error(_0x59cb51(0x1df));}}var jn=Object['defineProperty'],xn=Object[_0xf86c5a(0x397)],Hn=(_0xd10ba3,_0x313cf9,_0x4b30ce,_0x4207c5)=>{const _0xc9c581=_0xf86c5a;for(var _0x24be45=_0x4207c5>0x1?void 0x0:_0x4207c5?xn(_0x313cf9,_0x4b30ce):_0x313cf9,_0x2e5fc9=_0xd10ba3[_0xc9c581(0x28c)]-0x1,_0x279845;_0x2e5fc9>=0x0;_0x2e5fc9--)(_0x279845=_0xd10ba3[_0x2e5fc9])&&(_0x24be45=(_0x4207c5?_0x279845(_0x313cf9,_0x4b30ce,_0x24be45):_0x279845(_0x24be45))||_0x24be45);return _0x4207c5&&_0x24be45&&jn(_0x313cf9,_0x4b30ce,_0x24be45),_0x24be45;},Oe=(_0x3ea60d,_0x48edf0)=>(_0x25bac7,_0x1b9f04)=>_0x48edf0(_0x25bac7,_0x1b9f04,_0x3ea60d);const ks=_0x2452f4(_0xf86c5a(0x1ca));function kn(_0xfbeb33,_0x469989,_0x43779c){const _0x38de63=_0xf86c5a;return _0xfbeb33+'/'+_0x469989+_0x38de63(0x2b8)+_0x43779c+'/new_changes';}let Ct=class extends _0x4091c9{constructor(_0x27ab9b,_0xca2e7,_0x440210,_0x38fcd0,_0x58224e){const _0x1aa158=_0xf86c5a;super(),this[_0x1aa158(0x1c7)]=_0x27ab9b,this[_0x1aa158(0xef)]=_0xca2e7,this['_configService']=_0x440210,this['_logService']=_0x38fcd0,this[_0x1aa158(0x2dc)]=_0x58224e;}[_0xf86c5a(0x3d3)](_0x27fdef){const _0x484982=_0xf86c5a,_0xb3e437=this['_ws']['createSocket'](_0x27fdef);if(!_0xb3e437)throw new Error(_0x484982(0x29e));const _0x54d071=new _0x58abb8(),_0x52ecd4=new _0x26d305();_0x54d071[_0x484982(0x1e9)](_0xb3e437[_0x484982(0x310)][_0x484982(0x1c3)](_0x4f19ff=>_0x52ecd4[_0x484982(0x23f)](_0x4f19ff))),_0x54d071[_0x484982(0x1e9)](_0x441a7c(()=>_0x52ecd4[_0x484982(0x307)]()));const _0x3a216b=new _0x26d305();_0x54d071[_0x484982(0x1e9)](_0xb3e437['error$'][_0x484982(0x1c3)](_0x24563f=>_0x3a216b[_0x484982(0x23f)](_0x24563f))),_0x54d071['add'](_0x441a7c(()=>_0x3a216b[_0x484982(0x307)]()));const _0x192716=new _0x26d305();_0x54d071[_0x484982(0x1e9)](_0xb3e437[_0x484982(0x136)][_0x484982(0x1c3)](_0x1ae7a3=>{const _0x12c19b=Ln(_0x1ae7a3);_0x192716['next'](_0x12c19b);})),_0x54d071['add'](_0x441a7c(()=>_0x192716[_0x484982(0x307)]()));let _0x2f2318;const _0x1d0b05=()=>{const _0x17f812=_0x484982;_0x3a216b['next'](new Event(_0x17f812(0x3fc))),_0x52ecd4[_0x17f812(0x23f)](new CloseEvent(_0x17f812(0x3fc))),_0x2f2318[_0x17f812(0x11c)]();};return _0x2f2318={'memberID':'','close$':_0x52ecd4[_0x484982(0x377)](),'error$':_0x3a216b['asObservable'](),'open$':_0xb3e437[_0x484982(0x35b)],'message$':_0x192716[_0x484982(0x377)](),'send':_0x4e8984=>{const _0x4f8a8c=_0x484982;if(_0x4e8984['cmd']===I[_0x4f8a8c(0x3ad)]){if(_0x4e8984[_0x4f8a8c(0x129)]['eventID']===_0x455562[_0x4f8a8c(0x1d0)]){this[_0x4f8a8c(0x12f)](_0x2f2318,_0x4e8984[_0x4f8a8c(0x129)])[_0x4f8a8c(0x3ef)](_0x17b211=>{const _0x51af39=_0x4f8a8c;this[_0x51af39(0x435)]['error'](_0x17b211),_0x1d0b05();});return;}if(_0x4e8984[_0x4f8a8c(0x129)][_0x4f8a8c(0x26e)]===_0x455562[_0x4f8a8c(0x37e)]){const _0x16472a=_0x4e8984[_0x4f8a8c(0x129)];this[_0x4f8a8c(0x27c)](_0x16472a)[_0x4f8a8c(0x15f)](_0xeb7536=>{const _0xcefdd=_0x4f8a8c;_0x192716[_0xcefdd(0x23f)]({'cmd':I[_0xcefdd(0x362)],'code':Vt['OK'],'routeKey':_0x16472a['data'][_0xcefdd(0x427)],'routeType':'','data':{'eventID':_0x455562[_0xcefdd(0x2ca)],'data':{'changesets':_0xeb7536}}});})[_0x4f8a8c(0x3ef)](_0x3e5d57=>{this['_logService']['error'](_0x3e5d57),_0x1d0b05();});return;}}_0xb3e437[_0x4f8a8c(0x100)]($n(_0x4e8984));},'close':()=>{const _0x34d479=_0x484982;_0xb3e437[_0x34d479(0x11c)](),_0x54d071[_0x34d479(0x3ab)]();}},_0x2f2318;}async['_submitChangeset'](_0x134283,_0x5b4fe5){const _0x485c26=_0xf86c5a;var _0x5e834c,_0xf0fea0;const {unitType:_0x479150,unitID:_0xe37653,changeset:_0x460da4}=_0x5b4fe5[_0x485c26(0x129)],_0x172164={'unitID':_0xe37653,'memberID':_0x134283[_0x485c26(0x192)],'type':_0x479150,'changeset':_0x6e367b(_0x460da4)},_0x40a5e4=this[_0x485c26(0x2ae)][_0x485c26(0x1bf)](yn),_0x1f0eea=this[_0x485c26(0x2ae)][_0x485c26(0x1bf)]($),_0x256801=kn((_0xf0fea0=(_0x5e834c=_0x1f0eea==null?void 0x0:_0x1f0eea[_0x485c26(0x3e9)])!=null?_0x5e834c:_0x40a5e4)!=null?_0xf0fea0:Un,_0x479150,_0xe37653);try{await this[_0x485c26(0x1c7)][_0x485c26(0x1d7)](_0x256801,{'body':_0x172164});}catch(_0x249c05){throw this[_0x485c26(0x435)][_0x485c26(0x3a5)](_0x485c26(0x20b),_0x485c26(0x1fe)),_0x249c05;}}async[_0xf86c5a(0x27c)](_0x205601){const _0x2f9ad0=_0xf86c5a,{unitID:_0x3b3344,from:_0x1a5c40,to:_0x3cdf27,unitType:_0x405cc6}=_0x205601[_0x2f9ad0(0x129)];return(await this[_0x2f9ad0(0x2dc)][_0x2f9ad0(0x384)]({'metadata':void 0x0},{'unitID':_0x3b3344,'type':_0x405cc6,'from':_0x1a5c40,'to':_0x3cdf27}))['changesets'];}};Ct=Hn([Oe(0x0,_0x370f8c(_0x172026)),Oe(0x1,_0x370f8c(_0x109644)),Oe(0x2,_0x5bc7de),Oe(0x3,_0x593f47),Oe(0x4,_0x39263e)],Ct);const Bn=_0xf86c5a(0x2dd);function Vn(_0x3839a3){const _0x22775a=_0xf86c5a;return JSON[_0x22775a(0x28b)](_0x3839a3)[_0x22775a(0x28c)];}class Bs{constructor(){const _0xc240b1=_0xf86c5a;l(this,_0xc240b1(0x31a),new _0x26d305()),l(this,'commentUpdate$',this['_commentUpdate$']['asObservable']());}[_0xf86c5a(0x162)](_0xfc59c){const _0x7b0219=_0xf86c5a;this[_0x7b0219(0x31a)][_0x7b0219(0x23f)](_0xfc59c);}}var Fn=Object[_0xf86c5a(0xfa)],Wn=Object['getOwnPropertyDescriptor'],Gn=(_0x5c79f2,_0x6a0888,_0x370375,_0x377ddf)=>{const _0x16a17b=_0xf86c5a;for(var _0x5169c4=_0x377ddf>0x1?void 0x0:_0x377ddf?Wn(_0x6a0888,_0x370375):_0x6a0888,_0x46b35e=_0x5c79f2[_0x16a17b(0x28c)]-0x1,_0x372f7c;_0x46b35e>=0x0;_0x46b35e--)(_0x372f7c=_0x5c79f2[_0x46b35e])&&(_0x5169c4=(_0x377ddf?_0x372f7c(_0x6a0888,_0x370375,_0x5169c4):_0x372f7c(_0x5169c4))||_0x5169c4);return _0x377ddf&&_0x5169c4&&Fn(_0x6a0888,_0x370375,_0x5169c4),_0x5169c4;},as=(_0x104108,_0x557453)=>(_0x249528,_0x20c5fb)=>_0x557453(_0x249528,_0x20c5fb,_0x104108);let ce=class extends _0x4091c9{constructor(_0x218153,_0x5bbf5c){const _0x4dc552=_0xf86c5a;super(),l(this,_0x4dc552(0x356),new Map()),(this[_0x4dc552(0x358)]=_0x218153,this[_0x4dc552(0x3c2)]=_0x5bbf5c,this[_0x4dc552(0x177)](_0x441a7c(_0x20e120(this[_0x4dc552(0x358)]['getTypeOfUnitDisposed$'](_0x751d23[_0x4dc552(0x1af)])[_0x4dc552(0x268)](_0x524dbf(_0x569c64=>_0x569c64[_0x4dc552(0x23e)]())),this[_0x4dc552(0x358)]['getTypeOfUnitDisposed$'](_0x751d23[_0x4dc552(0x320)])['pipe'](_0x524dbf(_0x5cd3ef=>_0x5cd3ef[_0x4dc552(0x23e)]())),this[_0x4dc552(0x358)]['getTypeOfUnitDisposed$'](_0x751d23[_0x4dc552(0x21f)])[_0x4dc552(0x268)](_0x524dbf(_0x472198=>_0x472198[_0x4dc552(0x23e)]())))[_0x4dc552(0x1c3)](_0x4c3694=>this['_removeRoom'](_0x4c3694)))));}[_0xf86c5a(0x259)](_0x4390bc){const _0x2a74fd=_0xf86c5a;this['_userManagerService'][_0x2a74fd(0x259)](_0x4390bc);}[_0xf86c5a(0x1a7)](){const _0x54eff7=_0xf86c5a;return this[_0x54eff7(0x3c2)][_0x54eff7(0x1a7)]();}[_0xf86c5a(0x185)](_0x22d3fc,_0x143214){const _0x1fffd8=_0xf86c5a;let _0x46b745=this[_0x1fffd8(0x356)][_0x1fffd8(0x175)](_0x22d3fc);_0x46b745||(_0x46b745=new Yn(),this[_0x1fffd8(0x356)][_0x1fffd8(0x2be)](_0x22d3fc,_0x46b745)),_0x46b745[_0x1fffd8(0x185)](_0x143214);}[_0xf86c5a(0x375)](_0x5ef6d1,_0x310849){const _0x540283=_0xf86c5a,_0x22835e=this[_0x540283(0x356)][_0x540283(0x175)](_0x5ef6d1);_0x22835e&&_0x22835e['removeMember'](_0x310849);}[_0xf86c5a(0x337)](_0x5b7cde){const _0x3d967e=_0xf86c5a;return this[_0x3d967e(0x356)]['get'](_0x5b7cde);}[_0xf86c5a(0x191)](_0x11844c,_0x2232e3){const _0x597c8d=_0xf86c5a,_0x219154=this[_0x597c8d(0x356)][_0x597c8d(0x175)](_0x11844c);if(_0x219154)return _0x219154['getMember'](_0x2232e3);}[_0xf86c5a(0x32d)](_0x12b6e3){const _0x2ec5aa=_0xf86c5a,_0x48637e=this[_0x2ec5aa(0x356)][_0x2ec5aa(0x175)](_0x12b6e3);_0x48637e&&(_0x48637e[_0x2ec5aa(0x3ab)](),this[_0x2ec5aa(0x356)][_0x2ec5aa(0x107)](_0x12b6e3));}['dispose'](){const _0x358af3=_0xf86c5a;this[_0x358af3(0x356)]['forEach'](_0x47ef2d=>_0x47ef2d[_0x358af3(0x3ab)]()),this[_0x358af3(0x356)]['clear']();}};ce=Gn([as(0x0,_0x5edd3d),as(0x1,_0x370f8c(_0x323804))],ce);class Yn extends _0x4091c9{constructor(){const _0x279b57=_0xf86c5a;super(...arguments),l(this,_0x279b57(0x3b8),new Map());}['dispose'](){const _0x2cce71=_0xf86c5a;this[_0x2cce71(0x3b8)][_0x2cce71(0x3e6)]();}['updateMember'](_0x2cc4b1){const _0x52b96e=_0xf86c5a;this[_0x52b96e(0x3b8)][_0x52b96e(0x2be)](_0x2cc4b1[_0x52b96e(0x192)],_0x2cc4b1);}[_0xf86c5a(0x375)](_0xea1fd){const _0x1c1587=_0xf86c5a;this[_0x1c1587(0x3b8)][_0x1c1587(0x107)](_0xea1fd);}[_0xf86c5a(0x191)](_0x23cfdd){const _0x455615=_0xf86c5a;return this[_0x455615(0x3b8)]['get'](_0x23cfdd);}}var Kn=Object[_0xf86c5a(0xfa)],Xn=Object[_0xf86c5a(0x397)],qn=(_0x15ae2c,_0x15fdf8,_0x40fefc,_0x4e4d90)=>{const _0x19e19e=_0xf86c5a;for(var _0x14dcda=_0x4e4d90>0x1?void 0x0:_0x4e4d90?Xn(_0x15fdf8,_0x40fefc):_0x15fdf8,_0xc7e482=_0x15ae2c[_0x19e19e(0x28c)]-0x1,_0x5c76e1;_0xc7e482>=0x0;_0xc7e482--)(_0x5c76e1=_0x15ae2c[_0xc7e482])&&(_0x14dcda=(_0x4e4d90?_0x5c76e1(_0x15fdf8,_0x40fefc,_0x14dcda):_0x5c76e1(_0x14dcda))||_0x14dcda);return _0x4e4d90&&_0x14dcda&&Kn(_0x15fdf8,_0x40fefc,_0x14dcda),_0x14dcda;},J=(_0x2d7f53,_0x5aeb06)=>(_0x9fc3e4,_0x3151de)=>_0x5aeb06(_0x9fc3e4,_0x3151de,_0x2d7f53),Y=(_0x3446d0=>(_0x3446d0[_0x3446d0[_0xf86c5a(0x28f)]=0x0]='IDLE',_0x3446d0[_0x3446d0[_0xf86c5a(0x43f)]=0x1]=_0xf86c5a(0x43f),_0x3446d0[_0x3446d0[_0xf86c5a(0x2a1)]=0x2]=_0xf86c5a(0x2a1),_0x3446d0[_0x3446d0[_0xf86c5a(0x2b4)]=0x3]=_0xf86c5a(0x2b4),_0x3446d0))(Y||{});let bt=class extends _0x27d368{constructor(_0x44c204,_0x925217,_0x29d355,_0x419cec,_0x3a4958,_0xa6a603,_0x21bdc2,_0x770c6c,_0x231409,_0x2a5a88){const _0x1a8b8d=_0xf86c5a;super(),l(this,_0x1a8b8d(0x340),new _0x52cf76(0x0)),l(this,_0x1a8b8d(0xf6),this[_0x1a8b8d(0x340)]['asObservable']()),l(this,_0x1a8b8d(0x211),new _0x26d305()),l(this,_0x1a8b8d(0x3b1),this[_0x1a8b8d(0x211)]['asObservable']()),l(this,'_socket'),l(this,_0x1a8b8d(0x42a)),l(this,_0x1a8b8d(0x367)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x1a8b8d(0x19b),null),(this['_unitID']=_0x44c204,this[_0x1a8b8d(0x435)]=_0x29d355,this['_beforeCloseService']=_0x419cec,this[_0x1a8b8d(0x122)]=_0x3a4958,this[_0x1a8b8d(0x2ae)]=_0xa6a603,this['_localeService']=_0x21bdc2,this[_0x1a8b8d(0x34f)]=_0x770c6c,this[_0x1a8b8d(0x247)]=_0x231409,this[_0x1a8b8d(0x21b)]=_0x2a5a88,this[_0x1a8b8d(0x148)]=!!this[_0x1a8b8d(0x21b)],_0x925217[_0x1a8b8d(0x268)](_0x14bd7d(this['dispose$']))[_0x1a8b8d(0x1c3)](_0x2d922c=>{const _0x4d2441=_0x1a8b8d;var _0x7713f5;typeof _0x2d922c>'u'||(this['_socket']=_0x2d922c,_0x2d922c?(this[_0x4d2441(0x167)](_0x2d922c),this[_0x4d2441(0x42a)]=_0x2d922c[_0x4d2441(0x136)]['subscribe'](_0x1ecb06=>{const _0x5af530=_0x4d2441;_0x1ecb06[_0x5af530(0x3c6)]===this['_unitID']&&this['_onCombEvent'](_0x1ecb06);})):(this[_0x4d2441(0x1d8)](),this[_0x4d2441(0x340)][_0x4d2441(0x23f)](0x2),(_0x7713f5=this['_socketMessageSubscription'])==null||_0x7713f5[_0x4d2441(0x26d)](),this[_0x4d2441(0x42a)]=null));}),this[_0x1a8b8d(0x177)](this[_0x1a8b8d(0x243)][_0x1a8b8d(0x2a0)](()=>{const _0x36c701=_0x1a8b8d;var _0x17055d;(_0x17055d=this[_0x36c701(0x45c)])==null||_0x17055d['send']({'cmd':I[_0x36c701(0x1a6)],'data':{'roomID':this[_0x36c701(0x355)]}});})));}get[_0xf86c5a(0x3f3)](){const _0x35225c=_0xf86c5a;return this['_sessionStatus$'][_0x35225c(0x40f)]();}[_0xf86c5a(0x369)](){const _0x196b27=_0xf86c5a;var _0x34794f,_0x19dbd7;return(_0x19dbd7=(_0x34794f=this[_0x196b27(0x45c)])==null?void 0x0:_0x34794f['memberID'])!=null?_0x19dbd7:null;}[_0xf86c5a(0x3ab)](){const _0x5a0d87=_0xf86c5a;super[_0x5a0d87(0x3ab)](),this['dispose$'][_0x5a0d87(0x23f)](),this[_0x5a0d87(0x39d)][_0x5a0d87(0x307)]();}[_0xf86c5a(0x11c)](){const _0x15b333=_0xf86c5a;var _0x582632,_0x46f8bd;this['_throwTelemetryCollaborationNewChangeset'](),(_0x582632=this[_0x15b333(0x45c)])==null||_0x582632['send']({'cmd':I[_0x15b333(0x1a6)],'data':{'roomID':this[_0x15b333(0x355)]}}),(_0x46f8bd=this['_socket'])==null||_0x46f8bd[_0x15b333(0x11c)](),this[_0x15b333(0x211)][_0x15b333(0x307)](),this[_0x15b333(0x340)][_0x15b333(0x307)](),this[_0x15b333(0x3ab)]();}[_0xf86c5a(0x405)](_0x12d947){const _0x5de93e=_0xf86c5a;_0x12d947[_0x5de93e(0x46b)]===I['JOIN']?this[_0x5de93e(0x38e)](_0x12d947):_0x12d947['cmd']===I['RECV']&&this[_0x5de93e(0x30f)](_0x12d947);}[_0xf86c5a(0x167)](_0x4a2ada){const _0x448d8c=_0xf86c5a;this[_0x448d8c(0x340)][_0x448d8c(0x23f)](0x1),_0x4a2ada['send']({'cmd':I[_0x448d8c(0x1c5)],'routeKey':this[_0x448d8c(0x355)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0xf86c5a(0x38e)](_0x2fe9e6){const _0x172ef4=_0xf86c5a;var _0x2de559;if(_0x2fe9e6[_0x172ef4(0x42b)]===Vt[_0x172ef4(0x3d4)]){this['_messageService']['show']({'type':_0x424985['Warning'],'content':this[_0x172ef4(0x1f8)]['t']('session.room-full')}),this[_0x172ef4(0x340)][_0x172ef4(0x23f)](0x2);return;}this['_sessionStatus$'][_0x172ef4(0x23f)](0x3);const _0x1d7b2b=(_0x2de559=_0x2fe9e6[_0x172ef4(0x129)][_0x172ef4(0x1be)][this[_0x172ef4(0x355)]])==null?void 0x0:_0x2de559[_0x172ef4(0x1e4)];_0x1d7b2b&&_0x1d7b2b['forEach'](_0x108101=>this[_0x172ef4(0x34f)][_0x172ef4(0x185)](this[_0x172ef4(0x355)],_0x108101));}[_0xf86c5a(0x30f)](_0x3fe862){const _0x1015c2=_0xf86c5a;try{const _0x58853e=_0x3fe862[_0x1015c2(0x129)];switch(_0x58853e[_0x1015c2(0x26e)]){case _0x455562[_0x1015c2(0x24c)]:this[_0x1015c2(0x44a)](_0x58853e),this[_0x1015c2(0x211)][_0x1015c2(0x23f)](_0x58853e);break;case _0x455562[_0x1015c2(0x1f4)]:this[_0x1015c2(0x3c8)](_0x58853e),this[_0x1015c2(0x211)][_0x1015c2(0x23f)](_0x58853e);break;case _0x455562[_0x1015c2(0x2e4)]:this[_0x1015c2(0x460)](),this[_0x1015c2(0x1f7)](),this[_0x1015c2(0x211)]['next'](_0x58853e);break;case _0x455562[_0x1015c2(0x350)]:this[_0x1015c2(0x435)][_0x1015c2(0x3a5)](_0x1015c2(0x2fd)+JSON[_0x1015c2(0x28b)](_0x58853e)),this[_0x1015c2(0x211)]['next'](_0x58853e);break;case _0x455562[_0x1015c2(0x199)]:this[_0x1015c2(0x247)]['onCommentUpdate'](_0x58853e[_0x1015c2(0x129)]),this[_0x1015c2(0x211)]['next'](_0x58853e);break;default:this[_0x1015c2(0x211)][_0x1015c2(0x23f)](_0x58853e);}}catch(_0x4dc546){this[_0x1015c2(0x435)][_0x1015c2(0x3a5)](_0x4dc546,_0x3fe862);}}[_0xf86c5a(0x44a)](_0x11a289){const _0x573087=_0xf86c5a;this[_0x573087(0x34f)]['updateMember'](this[_0x573087(0x355)],_0x11a289['data']);}[_0xf86c5a(0x3c8)](_0x467568){const _0x12655b=_0xf86c5a;this['_memberService'][_0x12655b(0x375)](this['_unitID'],_0x467568[_0x12655b(0x129)][_0x12655b(0x192)]);}async[_0xf86c5a(0x100)](_0x3a2782,_0x243bb1){const _0x5e928a=_0xf86c5a;if(this['sessionStatus']!==0x3||!this[_0x5e928a(0x45c)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x3a2782[_0x5e928a(0x26e)]===_0x455562[_0x5e928a(0x1d0)]&&(this[_0x5e928a(0x438)](),this[_0x5e928a(0x409)](_0x3a2782)),this[_0x5e928a(0x45c)][_0x5e928a(0x100)]({'cmd':I['INGEST'],'routeKey':_0x243bb1,'routeType':'','data':_0x3a2782});}catch(_0x5a0840){this['_logService'][_0x5e928a(0x3a5)](_0x5a0840);}}[_0xf86c5a(0x438)](){const _0xf3e3d6=_0xf86c5a;var _0x5bfd4c;this[_0xf3e3d6(0x367)]=window['setTimeout'](()=>{const _0x20af8b=_0xf3e3d6;this[_0x20af8b(0x367)]=null,this['_messageService'][_0x20af8b(0x265)]({'type':_0x424985[_0x20af8b(0x44b)],'content':this['_localeService']['t'](_0x20af8b(0x3d6))});},(_0x5bfd4c=this[_0xf3e3d6(0x2ae)][_0xf3e3d6(0x1bf)]($s))!=null?_0x5bfd4c:js);}[_0xf86c5a(0x1f7)](){const _0x3af063=_0xf86c5a;this[_0x3af063(0x367)]&&(clearTimeout(this[_0x3af063(0x367)]),this[_0x3af063(0x367)]=null);}[_0xf86c5a(0x409)](_0x4cb715){const _0x4fc723=_0xf86c5a;if(!this[_0x4fc723(0x148)])return;const {data:_0x47adb3}=_0x4cb715,{unitID:_0x92bee5,changeset:_0x10aac7}=_0x47adb3,{mutations:_0x30dc80,type:_0x377eb8}=_0x10aac7;this['_telemetryInfo']={'unitId':_0x92bee5,'type':_0x377eb8,'startTime':performance[_0x4fc723(0x2b0)](),'stopTime':0x0,'duration':0x0,'size':Vn(_0x30dc80)};}[_0xf86c5a(0x460)](){const _0x3d845a=_0xf86c5a;if(this[_0x3d845a(0x148)]){if(!this[_0x3d845a(0x19b)]){this[_0x3d845a(0x435)][_0x3d845a(0x3a5)](_0x3d845a(0x20b),_0x3d845a(0x39c));return;}this[_0x3d845a(0x19b)][_0x3d845a(0x16d)]=performance['now'](),this['_telemetryInfo']['duration']=this[_0x3d845a(0x19b)][_0x3d845a(0x16d)]-this[_0x3d845a(0x19b)][_0x3d845a(0x30a)],this[_0x3d845a(0x21b)][_0x3d845a(0x220)](Bn,this['_telemetryInfo']),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x4aee12=_0xf86c5a;this[_0x4aee12(0x19b)]=null;}};bt=qn([J(0x2,_0x593f47),J(0x3,_0x4cf196),J(0x4,_0x3aa03b),J(0x5,_0x5bc7de),J(0x6,_0x370f8c(_0x2673bf)),J(0x7,_0x370f8c(ce)),J(0x8,_0x370f8c(Bs)),J(0x9,_0x2fd677(_0x382310))],bt);var Jn=Object['defineProperty'],zn=Object['getOwnPropertyDescriptor'],Zn=(_0x47ef7c,_0x5d14a9,_0x3144fd,_0x4230c5)=>{const _0x19d7bd=_0xf86c5a;for(var _0x2f4208=_0x4230c5>0x1?void 0x0:_0x4230c5?zn(_0x5d14a9,_0x3144fd):_0x5d14a9,_0x591994=_0x47ef7c[_0x19d7bd(0x28c)]-0x1,_0x8bfc91;_0x591994>=0x0;_0x591994--)(_0x8bfc91=_0x47ef7c[_0x591994])&&(_0x2f4208=(_0x4230c5?_0x8bfc91(_0x5d14a9,_0x3144fd,_0x2f4208):_0x8bfc91(_0x2f4208))||_0x2f4208);return _0x4230c5&&_0x2f4208&&Jn(_0x5d14a9,_0x3144fd,_0x2f4208),_0x2f4208;},fe=(_0x2b6489,_0x5cf2f9)=>(_0x3f5288,_0x29f8cc)=>_0x5cf2f9(_0x3f5288,_0x29f8cc,_0x2b6489);let he=class extends _0x4091c9{constructor(_0x222594,_0x3a1c37,_0x22ee9f,_0x2c035a,_0x1311b3,_0x5e9cb3){const _0x1bcff3=_0xf86c5a;super(),l(this,_0x1bcff3(0x2e7),new _0x52cf76(void 0x0)),l(this,_0x1bcff3(0x23c),this[_0x1bcff3(0x2e7)]['asObservable']()),l(this,_0x1bcff3(0x230),null),l(this,_0x1bcff3(0x1cd),new Map()),l(this,'_status$',new _0x52cf76(Y[_0x1bcff3(0x28f)])),l(this,_0x1bcff3(0x217),this[_0x1bcff3(0x15d)][_0x1bcff3(0x377)]()),l(this,_0x1bcff3(0x127),!0x1),l(this,'_retryConnectingTimer'),l(this,_0x1bcff3(0x2e0),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x1bcff3(0x3dd)),(this['_injector']=_0x222594,this[_0x1bcff3(0x1f8)]=_0x3a1c37,this['_messageService']=_0x22ee9f,this[_0x1bcff3(0x435)]=_0x2c035a,this[_0x1bcff3(0x2ae)]=_0x1311b3,this['_socketService']=_0x5e9cb3,this['_initEventListeners']());}get[_0xf86c5a(0x45c)](){const _0x1aea26=_0xf86c5a;return this['_socket$'][_0x1aea26(0x40f)]();}[_0xf86c5a(0x250)](){const _0x2cbd95=_0xf86c5a;this['_listenToOfflineEvent'](),this[_0x2cbd95(0x42d)]();}[_0xf86c5a(0x3ab)](){const _0x44db36=_0xf86c5a;super[_0x44db36(0x3ab)](),this['_sessions'][_0x44db36(0x26c)](_0x2c494d=>_0x2c494d[_0x44db36(0x3ab)]()),this[_0x44db36(0x1cd)][_0x44db36(0x3e6)](),this[_0x44db36(0x15d)][_0x44db36(0x307)]();}async[_0xf86c5a(0x13d)](_0x3c1964){const _0x1c9530=_0xf86c5a;if(this['_sessions']['has'](_0x3c1964))return this[_0x1c9530(0x1cd)][_0x1c9530(0x175)](_0x3c1964);this['_tryEnsureSocket']();const _0xd5d370=this[_0x1c9530(0x22b)][_0x1c9530(0x45e)](bt,_0x3c1964,this[_0x1c9530(0x2e7)]['asObservable']());return this['_sessions']['set'](_0x3c1964,_0xd5d370),_0xd5d370;}[_0xf86c5a(0x15e)](_0x3bba62){const _0x4bf61e=_0xf86c5a;var _0x5cfefe;const _0x1ee850=this['_sessions'][_0x4bf61e(0x175)](_0x3bba62);_0x1ee850&&(this[_0x4bf61e(0x1cd)]['delete'](_0x3bba62),_0x1ee850['close']()),this[_0x4bf61e(0x1cd)]['size']||(_0x5cfefe=this[_0x4bf61e(0x45c)])==null||_0x5cfefe[_0x4bf61e(0x11c)]();}['reconnect'](){const _0x1c3951=_0xf86c5a;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x1c3951(0x3f0)]),this[_0x1c3951(0x3f0)]=null),this[_0x1c3951(0x178)]();}[_0xf86c5a(0x12c)](){const _0x41bc8e=_0xf86c5a;var _0x405fbf,_0x41a019;const _0x2955bc=this['_configService'][_0x41bc8e(0x1bf)](En),_0x484c1c=this[_0x41bc8e(0x2ae)]['getConfig']($),_0x4f9cf3=(_0x41a019=(_0x405fbf=_0x484c1c==null?void 0x0:_0x484c1c[_0x41bc8e(0x371)])!=null?_0x405fbf:_0x2955bc)!=null?_0x41a019:Cn,_0x35157f=this[_0x41bc8e(0x45d)]['createSocket'](_0x4f9cf3);return this['_candidateSocket']=_0x35157f,_0x35157f;}['_tryEnsureSocket'](){const _0x5d2b50=_0xf86c5a;var _0x3fc59e,_0x5f19ca;try{const _0xf1f57e=(_0x5f19ca=(_0x3fc59e=this[_0x5d2b50(0x45c)])!=null?_0x3fc59e:this['_candidateSocket'])!=null?_0x5f19ca:this[_0x5d2b50(0x12c)]();if(_0xf1f57e){const _0x52a3d8=_0xf1f57e[_0x5d2b50(0x100)];_0xf1f57e[_0x5d2b50(0x100)]=_0x159a13=>(this[_0x5d2b50(0x317)](),_0x52a3d8[_0x5d2b50(0x241)](_0xf1f57e,[_0x159a13])),_0xf1f57e[_0x5d2b50(0x136)]['subscribe'](_0x126eba=>this[_0x5d2b50(0x3b6)](_0xf1f57e,_0x126eba)),_0xf1f57e[_0x5d2b50(0x28e)][_0x5d2b50(0x268)](_0x46d55b(0x1))['subscribe'](_0x5f5741=>this[_0x5d2b50(0x435)][_0x5d2b50(0x3a5)]('[CollaborationSessionService]:\x20socket\x20error',_0x5f5741)),_0xf1f57e['open$'][_0x5d2b50(0x268)](_0x46d55b(0x1))[_0x5d2b50(0x1c3)](()=>{this['_onConnectionOpen'](_0xf1f57e);}),_0xf1f57e[_0x5d2b50(0x310)][_0x5d2b50(0x268)](_0x46d55b(0x1))[_0x5d2b50(0x1c3)](_0x1c7db4=>{const _0x50559d=_0x5d2b50;this['_logService']['debug']('[CollaborationSessionService]',_0x50559d(0x352),_0x1c7db4),this[_0x50559d(0x2c2)]();});}}catch(_0x41e4de){this[_0x5d2b50(0x435)]['error'](_0x41e4de),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x546b6d){const _0x4ca28d=_0xf86c5a;this['_logService'][_0x4ca28d(0x379)](_0x4ca28d(0x210),_0x4ca28d(0x3f4)),_0x546b6d[_0x4ca28d(0x100)]({'cmd':I[_0x4ca28d(0x378)]}),this[_0x4ca28d(0x317)]();}[_0xf86c5a(0x151)](){const _0x378179=_0xf86c5a;window[_0x378179(0x3ed)]('offline',()=>this[_0x378179(0x346)]());}[_0xf86c5a(0x346)](){const _0x3e93d9=_0xf86c5a;this[_0x3e93d9(0x127)]=!0x1,this[_0x3e93d9(0x230)]=null,this[_0x3e93d9(0x15d)][_0x3e93d9(0x23f)](Y[_0x3e93d9(0x2a1)]),this[_0x3e93d9(0x2e7)][_0x3e93d9(0x23f)](null),this[_0x3e93d9(0x403)](),this[_0x3e93d9(0x306)]();}[_0xf86c5a(0x2c2)](){const _0x53b2fd=_0xf86c5a;var _0x4e32c5;this[_0x53b2fd(0x346)](),this['_retryCount']<((_0x4e32c5=this[_0x53b2fd(0x2ae)][_0x53b2fd(0x1bf)](On))!=null?_0x4e32c5:Dn)?(this[_0x53b2fd(0x122)][_0x53b2fd(0x265)]({'key':_0x53b2fd(0x333),'type':_0x424985[_0x53b2fd(0x3ae)],'content':this[_0x53b2fd(0x1f8)]['t']('session.will-retry')}),this[_0x53b2fd(0x178)]()):this[_0x53b2fd(0x122)][_0x53b2fd(0x265)]({'key':_0x53b2fd(0x333),'type':_0x424985[_0x53b2fd(0x44b)],'content':this['_localeService']['t']('session.connection-failed')});}[_0xf86c5a(0x42d)](){const _0x5eaad6=_0xf86c5a,_0x5c5903=()=>{const _0xd5a5ae=_0x556d;this[_0xd5a5ae(0x45c)]||this[_0xd5a5ae(0x36d)]();},_0x4ca3c2=()=>{const _0x4df608=_0x556d;this[_0x4df608(0x45c)]||document[_0x4df608(0xf9)]===_0x4df608(0x3e7)||this[_0x4df608(0x36d)]();};window['addEventListener'](_0x5eaad6(0x374),_0x5c5903),document[_0x5eaad6(0x3ed)](_0x5eaad6(0x290),_0x4ca3c2);}[_0xf86c5a(0x178)](){const _0x44fab8=_0xf86c5a;var _0x59eb58;const _0x2fd095=this['_retryCount'],_0x54b17d=this['_configService'][_0x44fab8(0x1bf)]($),_0x148e90=_0x2fd095===0x0?0x0:((_0x59eb58=_0x54b17d==null?void 0x0:_0x54b17d[_0x44fab8(0x34a)])!=null?_0x59eb58:Rn)*0x2**_0x2fd095;this[_0x44fab8(0x3f0)]=window[_0x44fab8(0x21e)](()=>{const _0x318ba2=_0x44fab8;clearTimeout(this['_retryConnectingTimer']),this[_0x318ba2(0x3f0)]=null,this[_0x318ba2(0xe8)]();},_0x148e90),this['_retryCount']+=0x1;}[_0xf86c5a(0x3b6)](_0x19a482,_0x3d449a){const _0x5df2de=_0xf86c5a,{cmd:_0x2d38f8}=_0x3d449a;_0x2d38f8===I[_0x5df2de(0x378)]&&!this[_0x5df2de(0x127)]&&(_0x19a482[_0x5df2de(0x192)]=_0x3d449a[_0x5df2de(0x129)]['memberID'],this[_0x5df2de(0x2e7)][_0x5df2de(0x23f)](_0x19a482),this[_0x5df2de(0x15d)][_0x5df2de(0x23f)](Y[_0x5df2de(0x2b4)]),this[_0x5df2de(0x127)]=!0x0,this['_candidateSocket']=null),_0x2d38f8===I[_0x5df2de(0x3cd)]&&this[_0x5df2de(0x403)](),this[_0x5df2de(0x317)]();}[_0xf86c5a(0x317)](){const _0x18a7c7=_0xf86c5a;var _0x277f46;this['_clearHeartbeatTimer'](),this[_0x18a7c7(0x10e)]=window['setTimeout'](()=>this['_sendHeartbeat'](),(_0x277f46=this[_0x18a7c7(0x2ae)]['getConfig'](bn))!=null?_0x277f46:Tn);}[_0xf86c5a(0x271)](){const _0x487fc4=_0xf86c5a;this['_socket'][_0x487fc4(0x100)]({'cmd':I['HEARTBEAT']}),this[_0x487fc4(0x3d5)]();}['_waitForHeartbeatResponse'](){const _0x10f768=_0xf86c5a;var _0x301897;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x10f768(0x2c2)](),(_0x301897=this[_0x10f768(0x2ae)]['getConfig']($s))!=null?_0x301897:js);}['_clearHeartbeatTimer'](){const _0x33d090=_0xf86c5a;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x33d090(0x10e)]=null);}['_clearTimeoutTimer'](){const _0x51a516=_0xf86c5a;this[_0x51a516(0x3dd)]!=null&&(clearTimeout(this[_0x51a516(0x3dd)]),this['_timeoutTimer']=null);}};he=Zn([fe(0x0,_0x370f8c(_0x595e81)),fe(0x1,_0x370f8c(_0x2673bf)),fe(0x2,_0x3aa03b),fe(0x3,_0x593f47),fe(0x4,_0x5bc7de),fe(0x5,ks)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0xf86c5a(0x106)]((ct+0x100)[_0xf86c5a(0x202)](0x10)[_0xf86c5a(0x42c)](0x1));function Qn(_0x7adce1,_0x130722=0x0){return(T[_0x7adce1[_0x130722+0x0]]+T[_0x7adce1[_0x130722+0x1]]+T[_0x7adce1[_0x130722+0x2]]+T[_0x7adce1[_0x130722+0x3]]+'-'+T[_0x7adce1[_0x130722+0x4]]+T[_0x7adce1[_0x130722+0x5]]+'-'+T[_0x7adce1[_0x130722+0x6]]+T[_0x7adce1[_0x130722+0x7]]+'-'+T[_0x7adce1[_0x130722+0x8]]+T[_0x7adce1[_0x130722+0x9]]+'-'+T[_0x7adce1[_0x130722+0xa]]+T[_0x7adce1[_0x130722+0xb]]+T[_0x7adce1[_0x130722+0xc]]+T[_0x7adce1[_0x130722+0xd]]+T[_0x7adce1[_0x130722+0xe]]+T[_0x7adce1[_0x130722+0xf]])['toLowerCase']();}var He,er=new Uint8Array(0x10);function tr(){const _0x477846=_0xf86c5a;if(!He&&(He=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x477846(0x383)][_0x477846(0x3ff)](crypto),!He))throw new Error(_0x477846(0x2b5));return He(er);}var sr=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0xf86c5a(0x421)][_0xf86c5a(0x3ff)](crypto);const cs={'randomUUID':sr};function ir(_0x460754,_0x1e4bfb,_0x1b03cc){const _0x21593b=_0xf86c5a;if(cs[_0x21593b(0x421)]&&!_0x1e4bfb&&!_0x460754)return cs['randomUUID']();_0x460754=_0x460754||{};var _0x428efd=_0x460754[_0x21593b(0x2a7)]||(_0x460754[_0x21593b(0x29c)]||tr)();return _0x428efd[0x6]=_0x428efd[0x6]&0xf|0x40,_0x428efd[0x8]=_0x428efd[0x8]&0x3f|0x80,Qn(_0x428efd);}var nr=Object[_0xf86c5a(0xfa)],rr=Object[_0xf86c5a(0x397)],or=(_0x3be030,_0x59b75b,_0x9d180d,_0x39ba43)=>{const _0x4a5332=_0xf86c5a;for(var _0x40cc22=_0x39ba43>0x1?void 0x0:_0x39ba43?rr(_0x59b75b,_0x9d180d):_0x59b75b,_0x589c39=_0x3be030[_0x4a5332(0x28c)]-0x1,_0x3fa7de;_0x589c39>=0x0;_0x589c39--)(_0x3fa7de=_0x3be030[_0x589c39])&&(_0x40cc22=(_0x39ba43?_0x3fa7de(_0x59b75b,_0x9d180d,_0x40cc22):_0x3fa7de(_0x40cc22))||_0x40cc22);return _0x39ba43&&_0x40cc22&&nr(_0x59b75b,_0x9d180d,_0x40cc22),_0x40cc22;},ht=(_0x276c90,_0x2ff6cb)=>(_0x2f9c05,_0x5077f8)=>_0x2ff6cb(_0x2f9c05,_0x5077f8,_0x276c90);let Ye=class{constructor(_0x3a8c4e,_0x214fa6,_0x14e4f8){const _0x541463=_0xf86c5a;this[_0x541463(0x22b)]=_0x3a8c4e,this['_transformService']=_0x214fa6,this[_0x541463(0x410)]=_0x14e4f8;}[_0xf86c5a(0x3e2)](_0x35ad42){const _0x1ac75d=_0xf86c5a;this[_0x1ac75d(0x3f2)](_0x35ad42),this['_transformPreviousActiveRange'](_0x35ad42);}[_0xf86c5a(0x22d)](_0x4adff9){const _0x45bfe2=_0xf86c5a,{unitID:_0x5bb4ba}=_0x4adff9,_0x113693=this[_0x45bfe2(0x410)][_0x45bfe2(0x297)](_0x5bb4ba)[_0x45bfe2(0x206)](_0x192645),{redoCache:_0x161f45}=_0x113693[_0x45bfe2(0x1a0)]();if(_0x161f45[_0x45bfe2(0x28c)]===0x0)return _0x4adff9;let _0x3599f0=_0x48af3f[_0x45bfe2(0x17f)](_0x4adff9[_0x45bfe2(0x3c1)][0x0]);for(let _0xddb7a4=0x0;_0xddb7a4<_0x161f45[_0x45bfe2(0x28c)];_0xddb7a4++){const _0x35c7b7={'id':_0x45bfe2(0x27d),'params':{..._0x161f45[_0xddb7a4]}},_0x345f9a=this[_0x45bfe2(0x235)]['transformMutation'](_0x3599f0,_0x35c7b7,!0x1);if(_0x3e8650(_0x345f9a))throw _0x345f9a['error'];_0x3599f0=_0x345f9a[_0x45bfe2(0x314)];}return{..._0x48af3f['deepClone'](_0x4adff9),'mutations':[_0x3599f0]};}['_transformUndoRedoStack'](_0x22eac3){const _0x2bef41=_0xf86c5a,{unitID:_0x589016}=_0x22eac3,_0x428aa0=this[_0x2bef41(0x410)][_0x2bef41(0x297)](_0x589016)['with'](_0x192645),{undoCache:_0x4efc89,redoCache:_0x37bc9f}=_0x428aa0['getUndoRedoMutationParamsCache']();if(_0x4efc89[_0x2bef41(0x28c)]===0x0||_0x37bc9f[_0x2bef41(0x28c)]===0x0)return;const _0x1270e1=[],_0x496eba=[];let _0x233439=_0x48af3f[_0x2bef41(0x17f)](_0x22eac3[_0x2bef41(0x3c1)][0x0]),_0x496f71=_0x48af3f[_0x2bef41(0x17f)](_0x22eac3[_0x2bef41(0x3c1)][0x0]);for(let _0x5eaf2b=_0x4efc89['length']-0x1;_0x5eaf2b>=0x0;_0x5eaf2b--){const _0x32941b={'id':_0x2bef41(0x27d),'params':{..._0x4efc89[_0x5eaf2b]}},_0x45c287={'id':_0x2bef41(0x27d),'params':{..._0x37bc9f[_0x5eaf2b]}},_0x3ee8e9=this[_0x2bef41(0x235)][_0x2bef41(0x11e)](_0x233439,_0x32941b,!0x1),_0x48a084=this[_0x2bef41(0x235)]['transformMutation'](_0x496f71,_0x45c287,!0x1);if(_0x3e8650(_0x3ee8e9))throw _0x3ee8e9['error'];if(_0x3e8650(_0x48a084))throw _0x48a084[_0x2bef41(0x3a5)];_0x1270e1[_0x2bef41(0x33e)](_0x3ee8e9[_0x2bef41(0x3bb)][_0x2bef41(0x2e1)]),_0x496eba[_0x2bef41(0x33e)](_0x48a084[_0x2bef41(0x3bb)]['params']),_0x233439=_0x3ee8e9[_0x2bef41(0x314)],_0x496f71=_0x48a084['m1Prime'];}_0x428aa0['setUndoRedoMutationParamsCache']({'undoCache':_0x1270e1,'redoCache':_0x496eba});}['_transformPreviousActiveRange'](_0x3fd45c){const _0x4da35d=_0xf86c5a,{unitID:_0x570cca}=_0x3fd45c,_0x3a24d0=this[_0x4da35d(0x410)][_0x4da35d(0x297)](_0x570cca)[_0x4da35d(0x206)](_0x192645),_0x4596d5=_0x3a24d0[_0x4da35d(0x2bb)]();if(_0x4596d5==null)return;const _0x58dfb1=[{'id':_0x4da35d(0x27d),'params':{'unitId':_0x3fd45c[_0x4da35d(0x427)],'actions':null,'textRanges':[_0x4596d5]}}],_0x233711=this[_0x4da35d(0x235)][_0x4da35d(0x1e7)](_0x3fd45c,_0x58dfb1);if(!_0x1a8f7d(_0x233711))throw _0x233711[_0x4da35d(0x3a5)];const _0x22ca64=_0x233711[_0x4da35d(0x3bb)][0x0][_0x4da35d(0x2e1)][_0x4da35d(0x2f4)];Array[_0x4da35d(0x453)](_0x22ca64)&&_0x22ca64[_0x4da35d(0x28c)]&&_0x3a24d0[_0x4da35d(0x35c)](_0x22ca64[0x0]);}};Ye=or([ht(0x0,_0x370f8c(_0x595e81)),ht(0x1,_0x285caf),ht(0x2,_0x366dfc)],Ye);var ar=Object['defineProperty'],cr=Object[_0xf86c5a(0x397)],hr=(_0x78d9ed,_0x1448ca,_0x3c15d9,_0x4dc329)=>{const _0x52a0df=_0xf86c5a;for(var _0xe8f8d6=_0x4dc329>0x1?void 0x0:_0x4dc329?cr(_0x1448ca,_0x3c15d9):_0x1448ca,_0x4879cd=_0x78d9ed[_0x52a0df(0x28c)]-0x1,_0x41c71f;_0x4879cd>=0x0;_0x4879cd--)(_0x41c71f=_0x78d9ed[_0x4879cd])&&(_0xe8f8d6=(_0x4dc329?_0x41c71f(_0x1448ca,_0x3c15d9,_0xe8f8d6):_0x41c71f(_0xe8f8d6))||_0xe8f8d6);return _0x4dc329&&_0xe8f8d6&&ar(_0x1448ca,_0x3c15d9,_0xe8f8d6),_0xe8f8d6;},De=(_0xa78522,_0x45e424)=>(_0x5b22de,_0x3b146c)=>_0x45e424(_0x5b22de,_0x3b146c,_0xa78522);let w=class extends _0x4091c9{constructor(_0x217395,_0x409212,_0xd2cc46,_0x330f28,_0x2fe2e0){const _0x364636=_0xf86c5a;super(),l(this,_0x364636(0x42e),new Map()),l(this,_0x364636(0x463),new Map()),l(this,_0x364636(0x131),!0x1),(this['_configService']=_0x217395,this[_0x364636(0xfc)]=_0x409212,this['_beforeCloseService']=_0xd2cc46,this[_0x364636(0x1f8)]=_0x330f28,this[_0x364636(0x32c)]=_0x2fe2e0,this[_0x364636(0x117)]());}[_0xf86c5a(0x237)](){const _0x1a572b=_0xf86c5a;this[_0x1a572b(0x131)]=!0x0;}[_0xf86c5a(0x1a4)](){const _0x58fce7=_0xf86c5a;this[_0x58fce7(0x131)]=!0x1;}[_0xf86c5a(0x3ab)](){const _0x4ca424=_0xf86c5a;this[_0x4ca424(0x1ee)]()[_0x4ca424(0x15f)](()=>super['dispose']());}async[_0xf86c5a(0x3ec)](_0x10af75){const _0xdb92c2=_0xf86c5a;return this['_disabled']?null:this['_localStorageService'][_0xdb92c2(0x2b1)](hs(_0x10af75));}async[_0xf86c5a(0x1ac)](_0x368ef2,_0x2f9d20){const _0x4dd6a4=_0xf86c5a;return!!this[_0x4dd6a4(0xfc)]['setItem'](_0x368ef2,_0x2f9d20);}[_0xf86c5a(0x34d)](_0x1e9ac7,_0x17a6c1,_0x6f1c1a,_0xe88ee7){const _0x5e38a1=_0xf86c5a,_0x3d5211=this[_0x5e38a1(0x32c)][_0x5e38a1(0x3bd)](_0x1e9ac7);this[_0x5e38a1(0x42e)][_0x5e38a1(0x2be)](_0x1e9ac7,{'unitID':_0x1e9ac7,'type':_0x17a6c1,'awaitingChangeset':_0x6f1c1a,'mutations':_0xe88ee7,'rev':_0x3d5211}),this['_saveTaskMap']['has'](_0x1e9ac7)||this['_scheduleSaving'](_0x1e9ac7);}[_0xf86c5a(0x455)](_0x50e8fa){const _0x161ef8=_0xf86c5a,_0x15cf3d=this[_0x161ef8(0x3cc)]();_0x15cf3d===0x0?this[_0x161ef8(0x3ca)](_0x50e8fa):this[_0x161ef8(0x463)][_0x161ef8(0x2be)](_0x50e8fa,setTimeout(()=>this[_0x161ef8(0x3ca)](_0x50e8fa),_0x15cf3d));}['_getSaveTimeout'](){const _0x2f2aa8=_0xf86c5a;var _0x30ab22;return(_0x30ab22=this[_0x2f2aa8(0x2ae)][_0x2f2aa8(0x1bf)](wn))!=null?_0x30ab22:Pn;}[_0xf86c5a(0x3ca)](_0x15d22b){const _0xdb4c3d=_0xf86c5a,_0x72fc43=this[_0xdb4c3d(0x463)][_0xdb4c3d(0x175)](_0x15d22b);return _0x72fc43!==void 0x0&&window[_0xdb4c3d(0x3da)](_0x72fc43),this[_0xdb4c3d(0xfc)][_0xdb4c3d(0x30b)](hs(_0x15d22b),this['_cachedData']['get'](_0x15d22b))['then'](()=>this['_saveTaskMap'][_0xdb4c3d(0x107)](_0x15d22b));}async[_0xf86c5a(0x1ee)](){const _0x2019ec=_0xf86c5a,_0x9ac890=[];this[_0x2019ec(0x463)][_0x2019ec(0x26c)]((_0x1f3497,_0x40d432)=>{const _0x7b907f=_0x2019ec;window[_0x7b907f(0x3da)](_0x1f3497),_0x9ac890['push'](this[_0x7b907f(0x3ca)](_0x40d432)[_0x7b907f(0x15f)](()=>{const _0x138a9b=_0x7b907f;this['_saveTaskMap'][_0x138a9b(0x107)](_0x40d432);}));}),await Promise[_0x2019ec(0x34b)](_0x9ac890);}[_0xf86c5a(0x117)](){const _0x356a9e=_0xf86c5a;this[_0x356a9e(0x177)](this[_0x356a9e(0x243)][_0x356a9e(0x2cb)](()=>{const _0x26627f=_0x356a9e;if(this[_0x26627f(0x463)][_0x26627f(0x46a)])return this[_0x26627f(0x1f8)]['t'](_0x26627f(0x398));}));}};w=hr([De(0x0,_0x5bc7de),De(0x1,_0x5d2dbc),De(0x2,_0x4cf196),De(0x3,_0x370f8c(_0x2673bf)),De(0x4,_0x370f8c(_0x4a413b))],w);function hs(_0x52a3bc){const _0x2c7c87=_0xf86c5a;return _0x2c7c87(0x2a5)+_0x52a3bc;}var lr=Object[_0xf86c5a(0xfa)],_r=Object[_0xf86c5a(0x397)],ur=(_0x4aa16f,_0x39c46b,_0x2173ca,_0x16cad6)=>{for(var _0x100365=_0x16cad6>0x1?void 0x0:_0x16cad6?_r(_0x39c46b,_0x2173ca):_0x39c46b,_0x280335=_0x4aa16f['length']-0x1,_0x58d963;_0x280335>=0x0;_0x280335--)(_0x58d963=_0x4aa16f[_0x280335])&&(_0x100365=(_0x16cad6?_0x58d963(_0x39c46b,_0x2173ca,_0x100365):_0x58d963(_0x100365))||_0x100365);return _0x16cad6&&_0x100365&&lr(_0x39c46b,_0x2173ca,_0x100365),_0x100365;},lt=(_0x265445,_0x5c172b)=>(_0x6ee857,_0x308078)=>_0x5c172b(_0x6ee857,_0x308078,_0x265445);function dr(_0x248050){const _0x3fb656=_0xf86c5a,{unitID:_0x5107a9,mutations:_0x50cd7d}=_0x248050;return{'unitId':_0x5107a9,'subUnitId':_0x50cd7d[0x0][_0x3fb656(0x2e1)]['subUnitId']};}let Ke=class{constructor(_0x3ea11e,_0x4e92a3,_0x1ec2d9){const _0x5a5f9c=_0xf86c5a;this[_0x5a5f9c(0x22b)]=_0x3ea11e,this['_transformService']=_0x4e92a3,this[_0x5a5f9c(0x1e6)]=_0x1ec2d9;}[_0xf86c5a(0xfb)](_0x1b02a9){const _0x21d82c=_0xf86c5a;var _0x119114,_0x2fa3d3,_0x576ceb,_0x179e6c;const _0x5b021f=this[_0x21d82c(0x22b)][_0x21d82c(0x175)](_0x48f502),{unitId:_0x2734d4,subUnitId:_0x4dac0a}=dr(_0x1b02a9),_0x2d3599=_0x5b021f[_0x21d82c(0x203)](_0x2734d4)[_0x21d82c(0x2ac)](),_0x346bec=(_0x2fa3d3=(_0x119114=this[_0x21d82c(0x1e6)][_0x21d82c(0x301)](_0x2734d4))==null?void 0x0:_0x119114[_0x21d82c(0x204)]())==null?void 0x0:_0x2fa3d3[_0x21d82c(0x300)]();if(_0x2d3599[_0x21d82c(0x28c)]===0x0||!_0x2734d4||!_0x4dac0a)return;const _0xc2d33b=[{'id':_0x2113e6['id'],'params':{'unitId':_0x2734d4,'subUnitId':_0x346bec,'selections':_0x48af3f[_0x21d82c(0x17f)](_0x2d3599)}}],_0x21831f=this[_0x21d82c(0x235)][_0x21d82c(0x1e7)](_0x1b02a9,_0xc2d33b);if(!_0x1a8f7d(_0x21831f))throw _0x21831f[_0x21d82c(0x3a5)];const _0xfd2630=(_0x179e6c=(_0x576ceb=_0x21831f[_0x21d82c(0x3bb)][0x0])==null?void 0x0:_0x576ceb[_0x21d82c(0x2e1)])==null?void 0x0:_0x179e6c[_0x21d82c(0x201)];if(Array['isArray'](_0xfd2630)&&_0xfd2630[_0x21d82c(0x28c)]){if(_0xfd2630['length']===_0xc2d33b[0x0][_0x21d82c(0x2e1)][_0x21d82c(0x201)][_0x21d82c(0x28c)]&&_0xfd2630[_0x21d82c(0x2d7)]((_0x36d868,_0x41b414)=>_0x426027[_0x21d82c(0x43d)](_0x36d868[_0x21d82c(0x420)],_0xc2d33b[0x0]['params'][_0x21d82c(0x201)][_0x41b414]['range'])))return;this[_0x21d82c(0x22b)]['get'](_0x225d18)[_0x21d82c(0x1b5)](_0x2113e6['id'],{'unitId':_0x2734d4,'subUnitId':_0x346bec,'selections':_0xfd2630});}}};Ke=ur([lt(0x0,_0x370f8c(_0x595e81)),lt(0x1,_0x285caf),lt(0x2,_0x5edd3d)],Ke);const tt=_0x2452f4(_0xf86c5a(0x2f8));var Vs=(_0x37afc3=>(_0x37afc3[_0x37afc3[_0xf86c5a(0x196)]=0x0]=_0xf86c5a(0x196),_0x37afc3[_0x37afc3[_0xf86c5a(0x1b0)]=0x1]='OTHER_CLIENTS_EDITING',_0x37afc3))(Vs||{});const ls=0x7530,_s=_0xf86c5a(0x215);class fr extends _0x4091c9{constructor(){const _0x4bddfb=_0xf86c5a;super(),l(this,_0x4bddfb(0x2f9),_0x48af3f[_0x4bddfb(0x3a3)]()),l(this,_0x4bddfb(0x3c0),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x4bddfb(0x266),null),l(this,_0x4bddfb(0x3b9),new Map()),l(this,_0x4bddfb(0x169),new Map()),this[_0x4bddfb(0x30d)]();}[_0xf86c5a(0x3ab)](){const _0x4aa539=_0xf86c5a;super[_0x4aa539(0x3ab)](),this[_0x4aa539(0x3b9)]['forEach']((_0xf43e45,_0x1a0c9b)=>this[_0x4aa539(0x1da)](_0x1a0c9b)),this['_heartbeatTimer']&&window[_0x4aa539(0x341)](this['_heartbeatTimer']);}[_0xf86c5a(0xf8)](_0x5a9c7a){const _0x37f95b=_0xf86c5a;return this[_0x37f95b(0x36f)](_0x5a9c7a)['pipe'](_0x30a823());}[_0xf86c5a(0x2d1)](_0xfe0467){const _0x24f4b7=_0xf86c5a;this[_0x24f4b7(0x3c0)][_0x24f4b7(0x46a)]===0x0&&this[_0x24f4b7(0x19c)](),this['_selfUnitIDs'][_0x24f4b7(0x1e9)](_0xfe0467),this[_0x24f4b7(0x144)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xfe0467],'isForwarded':!0x1});}['disposeUnit'](_0x816d98){const _0x396704=_0xf86c5a;this[_0x396704(0x3c0)][_0x396704(0x107)](_0x816d98),this[_0x396704(0x3c0)][_0x396704(0x46a)]===0x0&&this[_0x396704(0x266)]&&window[_0x396704(0x341)](this[_0x396704(0x266)]);}[_0xf86c5a(0x30d)](){const _0x27a254=_0xf86c5a;this[_0x27a254(0x177)](_0x441a7c(_0x40fa2a(window,_0x27a254(0x3eb))[_0x27a254(0x1c3)](_0x1fd67b=>{const _0x6c9db2=_0x27a254;if(_0x1fd67b[_0x6c9db2(0x3e8)]!==_s||!_0x1fd67b[_0x6c9db2(0x33d)])return;const _0x4c2c35=JSON[_0x6c9db2(0x3c7)](_0x1fd67b['newValue']);this[_0x6c9db2(0x393)](_0x4c2c35);}))),window[_0x27a254(0x3ed)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x27a254(0x37d)](this[_0x27a254(0x3c0)])}));}[_0xf86c5a(0x393)](_0x280892){const _0x4a3722=_0xf86c5a;switch(_0x280892[_0x4a3722(0x246)]){case 0x0:this[_0x4a3722(0x269)](_0x280892);break;case 0x1:this['_handleLeaveEvent'](_0x280892);break;case 0x2:this[_0x4a3722(0x286)](_0x280892);break;}}[_0xf86c5a(0x269)](_0x192b16){const _0x4f02e3=_0xf86c5a,{unitIDs:_0x1e8246,memberID:_0x977137,isForwarded:_0x10404b}=_0x192b16;_0x1e8246[_0x4f02e3(0x26c)](_0x2ecb49=>{const _0x3fd431=_0x4f02e3;if(!_0x10404b&&this[_0x3fd431(0x2e9)][_0x3fd431(0x1f5)](_0x2ecb49)&&this[_0x3fd431(0x36f)](_0x2ecb49)[_0x3fd431(0x23f)](0x1),!this[_0x3fd431(0x2e9)]['has'](_0x2ecb49)||!this['_unitOnClients']['get'](_0x2ecb49)[_0x3fd431(0x1f5)](_0x977137)){const _0x1ff43e=this[_0x3fd431(0x2e9)][_0x3fd431(0x175)](_0x2ecb49)||new Set();_0x1ff43e[_0x3fd431(0x1e9)](_0x977137),this[_0x3fd431(0x2e9)][_0x3fd431(0x2be)](_0x2ecb49,_0x1ff43e),this[_0x3fd431(0x36e)](_0x977137);}}),_0x10404b||this[_0x4f02e3(0x144)]({'type':0x0,'memberID':this[_0x4f02e3(0x2f9)],'unitIDs':[...this[_0x4f02e3(0x3c0)]],'isForwarded':!0x0});}[_0xf86c5a(0x36e)](_0x25786e){const _0x1189c6=_0xf86c5a;this[_0x1189c6(0x1da)](_0x25786e);const _0x18a817=window[_0x1189c6(0x21e)](()=>{const _0x5c2d44=_0x1189c6;this['_unitOnClients'][_0x5c2d44(0x26c)](_0x2fbabe=>{_0x2fbabe['delete'](_0x25786e);});},ls*0x2);this[_0x1189c6(0x3b9)][_0x1189c6(0x2be)](_0x25786e,_0x18a817);}[_0xf86c5a(0x1da)](_0x44c812){const _0x47e01f=_0xf86c5a;if(this['_clearOtherTimers'][_0x47e01f(0x1f5)](_0x44c812)){const _0x230865=this[_0x47e01f(0x3b9)][_0x47e01f(0x175)](_0x44c812);_0x230865&&window[_0x47e01f(0x3da)](_0x230865),this[_0x47e01f(0x3b9)][_0x47e01f(0x2be)](_0x44c812,null);}}[_0xf86c5a(0x41d)](_0x211e0d){const _0x4f60ac=_0xf86c5a,{memberID:_0x6d4465,unitIDs:_0x238591}=_0x211e0d;_0x238591[_0x4f60ac(0x26c)](_0x10430d=>{const _0x5c2e1f=_0x4f60ac;var _0x44fb10;const _0x313682=this[_0x5c2e1f(0x2e9)][_0x5c2e1f(0x175)](_0x10430d);_0x313682&&(_0x313682[_0x5c2e1f(0x107)](_0x6d4465),(_0x44fb10=this[_0x5c2e1f(0x36f)](_0x10430d))==null||_0x44fb10[_0x5c2e1f(0x23f)](_0x313682[_0x5c2e1f(0x46a)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x6d4465);}[_0xf86c5a(0x286)](_0x23b8a9){const _0xd5f7e1=_0xf86c5a;this[_0xd5f7e1(0x36e)](_0x23b8a9[_0xd5f7e1(0x192)]);}['_send'](_0x320b92){const _0x174611=_0xf86c5a;localStorage['setItem'](_s,JSON[_0x174611(0x28b)](_0x320b92));}[_0xf86c5a(0x19c)](){const _0x4a5a30=_0xf86c5a;this[_0x4a5a30(0x266)]=window[_0x4a5a30(0x238)](()=>{const _0x3cd833=_0x4a5a30;this['_send']({'type':0x2,'memberID':this[_0x3cd833(0x2f9)]});},ls);}[_0xf86c5a(0x36f)](_0x585123){const _0x105100=_0xf86c5a;return this['_unitStatus'][_0x105100(0x1f5)](_0x585123)||this[_0x105100(0x169)]['set'](_0x585123,new _0x52cf76(0x0)),this[_0x105100(0x169)][_0x105100(0x175)](_0x585123);}}function Fs(_0x4e0d47){const _0x548de4=_0xf86c5a;let _0x44c3d8='';for(const _0x52cf of _0x4e0d47){const {startOffset:_0x39e89a,endOffset:_0x162700,isActive:_0x59a327}=_0x52cf;_0x44c3d8[_0x548de4(0x28c)]&&(_0x44c3d8+=','),_0x44c3d8+=_0x39e89a+':'+_0x162700+':'+(_0x59a327?'1':'0');}return _0x44c3d8;}function mr(_0x554276){const _0x51fd9c=_0xf86c5a,_0x403040=_0x554276[_0x51fd9c(0x308)](','),_0x2fc164=[];for(const _0x2f53ff of _0x403040){const [_0x133e61,_0x280c69,_0x3725e3]=_0x2f53ff['split'](':');_0x2fc164[_0x51fd9c(0x106)]({'startOffset':Number(_0x133e61),'endOffset':Number(_0x280c69),'collapsed':_0x133e61===_0x280c69,'isActive':_0x3725e3==='1'});}return _0x2fc164[_0x51fd9c(0x2a3)](_0x1f1010=>_0x1f1010[_0x51fd9c(0x328)])||(_0x2fc164[0x0][_0x51fd9c(0x328)]=!0x0),_0x2fc164;}class Ft extends _0x27d368{constructor(){const _0xd58de1=_0xf86c5a;super(...arguments),l(this,_0xd58de1(0x200),new _0x52cf76(null)),l(this,'collabCursorState$',this[_0xd58de1(0x200)][_0xd58de1(0x377)]());}[_0xf86c5a(0x411)](_0x5a77a0){const _0x23b3b2=_0xf86c5a,{unitID:_0x40ceb7,memberID:_0x2b1840,textRanges:_0x268cf2}=_0x5a77a0,_0x9abcf0=Fs(_0x268cf2),_0x38f14b={'unitID':_0x40ceb7,'memberID':_0x2b1840,'selection':_0x9abcf0};this['_collabCursorState$'][_0x23b3b2(0x23f)](_0x38f14b);}}var gr=Object['defineProperty'],Sr=Object[_0xf86c5a(0x397)],pr=(_0x2f8759,_0x2edcc3,_0x23936c,_0x418103)=>{const _0x4003a6=_0xf86c5a;for(var _0x3cf5ac=_0x418103>0x1?void 0x0:_0x418103?Sr(_0x2edcc3,_0x23936c):_0x2edcc3,_0x53d864=_0x2f8759[_0x4003a6(0x28c)]-0x1,_0x3ec589;_0x53d864>=0x0;_0x53d864--)(_0x3ec589=_0x2f8759[_0x53d864])&&(_0x3cf5ac=(_0x418103?_0x3ec589(_0x2edcc3,_0x23936c,_0x3cf5ac):_0x3ec589(_0x3cf5ac))||_0x3cf5ac);return _0x418103&&_0x3cf5ac&&gr(_0x2edcc3,_0x23936c,_0x3cf5ac),_0x3cf5ac;},us=(_0x8fae3c,_0x128f06)=>(_0x36de32,_0x140b2b)=>_0x128f06(_0x36de32,_0x140b2b,_0x8fae3c);let Xe=class{constructor(_0x285a37,_0x270d62){const _0x1c42f0=_0xf86c5a;this[_0x1c42f0(0x22b)]=_0x285a37,this[_0x1c42f0(0x235)]=_0x270d62;}['transformSelections'](_0x4ded27){const _0x1a4294=_0xf86c5a;var _0x176b9e;const _0x1af3a8=this[_0x1a4294(0x22b)]['get'](_0x4562e0),_0x17a570=(_0x176b9e=_0x1af3a8[_0x1a4294(0x2c9)]())!=null?_0x176b9e:[];if(_0x17a570['length']===0x0)return;const _0x485769=[{'id':_0x1a4294(0x27d),'params':{'unitId':_0x4ded27[_0x1a4294(0x427)],'actions':null,'textRanges':_0x17a570}}],_0x65b51d=this[_0x1a4294(0x235)][_0x1a4294(0x1e7)](_0x4ded27,_0x485769);if(!_0x1a8f7d(_0x65b51d))throw _0x65b51d['error'];const _0x27a956=_0x65b51d[_0x1a4294(0x3bb)][0x0][_0x1a4294(0x2e1)]['textRanges'];Array[_0x1a4294(0x453)](_0x27a956)&&_0x27a956['length']&&_0x1af3a8['replaceTextRanges'](_0x27a956,!0x1);}};Xe=pr([us(0x0,_0x370f8c(_0x595e81)),us(0x1,_0x285caf)],Xe);function _0x556d(_0x4eb2ff,_0x2ccb18){const _0x4a74cf=_0x4a74();return _0x556d=function(_0x556d8b,_0x55b111){_0x556d8b=_0x556d8b-0xe3;let _0x2c23be=_0x4a74cf[_0x556d8b];return _0x2c23be;},_0x556d(_0x4eb2ff,_0x2ccb18);}const vr=new Set([_0x3bebbc['id']]);function ds(_0x279c02,_0x129205,_0x31a078,_0x397870,_0x400f2b){const _0x5921fa=_0xf86c5a;var _0x4682cd,_0x5a43d1,_0x5795bb,_0x3873b5;const _0x3cd9c9=[];for(const _0x560748 of _0x279c02)if(vr[_0x5921fa(0x1f5)](_0x560748['id'])){if(_0x3cd9c9[_0x5921fa(0x28c)]>0x0)break;_0x3cd9c9['push'](_0x560748);break;}else _0x3cd9c9[_0x5921fa(0x106)](_0x560748);const _0x2db13c=(_0x5a43d1=(_0x4682cd=_0x400f2b['getCurrentUser']())==null?void 0x0:_0x4682cd[_0x5921fa(0x2b2)])!=null?_0x5a43d1:_0x5921fa(0x433),_0x29a7e7=(_0x3873b5=(_0x5795bb=_0x400f2b['getCurrentUser']())==null?void 0x0:_0x5795bb['memberID'])!=null?_0x3873b5:'unknown';return{'changeset':{'unitID':_0x129205,'type':_0xe9c082(_0x31a078[_0x5921fa(0x159)](_0x129205)),'baseRev':_0x397870[_0x5921fa(0x3bd)](_0x129205),'revision':0x0,'userID':_0x2db13c,'memberID':_0x29a7e7,'mutations':_0x3cd9c9},'pendingMutations':_0x279c02[_0x5921fa(0x42c)](_0x3cd9c9[_0x5921fa(0x28c)])};}function Ir(_0x5dd301,_0x4086cd,_0x33cdbc,_0x4e0bf5,_0x3a96eb){const _0x136c21=_0xf86c5a;var _0xa122a3,_0x29879a,_0x3756c9,_0x40affd;const _0x202572=[_0x5dd301[_0x136c21(0x326)]((_0x13a278,_0xbb1c8e)=>{const _0x82623f=_0x136c21;var _0x15e954;const {id:_0x12deaa}=_0x13a278,{id:_0x59b4d8,type:_0x1dd3d0}=_0xbb1c8e,_0x1ce947=(_0x15e954=_0x13a278[_0x82623f(0x2e1)])!=null?_0x15e954:{'actions':null},_0x27cc32=_0xbb1c8e[_0x82623f(0x2e1)];if(_0x12deaa&&_0x12deaa!==_0x59b4d8)throw new Error(_0x82623f(0x295)+_0x12deaa+_0x82623f(0x3be)+_0x59b4d8+'.');return{..._0x13a278,'id':_0x59b4d8,'type':_0x1dd3d0,'params':{'unitId':_0x27cc32[_0x82623f(0x25d)],'textRanges':_0x27cc32[_0x82623f(0x2f4)],'actions':_0x1d6dc3[_0x82623f(0x154)](_0x1ce947[_0x82623f(0x3e1)],_0x27cc32[_0x82623f(0x3e1)])}};},{})],_0x2af378=(_0x29879a=(_0xa122a3=_0x3a96eb[_0x136c21(0x1a7)]())==null?void 0x0:_0xa122a3[_0x136c21(0x2b2)])!=null?_0x29879a:'unknown',_0x54cca0=(_0x40affd=(_0x3756c9=_0x3a96eb[_0x136c21(0x1a7)]())==null?void 0x0:_0x3756c9[_0x136c21(0x192)])!=null?_0x40affd:_0x136c21(0x433);return{'changeset':{'unitID':_0x4086cd,'type':_0xe9c082(_0x33cdbc['getUnitType'](_0x4086cd)),'baseRev':_0x4e0bf5[_0x136c21(0x3bd)](_0x4086cd),'revision':0x0,'userID':_0x2af378,'memberID':_0x54cca0,'mutations':_0x202572},'pendingMutations':[]};}const Er={'id':_0xbc7763['id'],'type':_0x19c41e[_0xf86c5a(0x108)],'params':{}};var Cr=Object['defineProperty'],br=Object['getOwnPropertyDescriptor'],_e=(_0x566755,_0x2a919e,_0x406bed,_0x29310e)=>{const _0x22941b=_0xf86c5a;for(var _0x1a6f5f=_0x29310e>0x1?void 0x0:_0x29310e?br(_0x2a919e,_0x406bed):_0x2a919e,_0x2319cd=_0x566755[_0x22941b(0x28c)]-0x1,_0x5a4922;_0x2319cd>=0x0;_0x2319cd--)(_0x5a4922=_0x566755[_0x2319cd])&&(_0x1a6f5f=(_0x29310e?_0x5a4922(_0x2a919e,_0x406bed,_0x1a6f5f):_0x5a4922(_0x1a6f5f))||_0x1a6f5f);return _0x29310e&&_0x1a6f5f&&Cr(_0x2a919e,_0x406bed,_0x1a6f5f),_0x1a6f5f;},m=(_0x13e166,_0x2728f2)=>(_0x5a2018,_0x40af21)=>_0x2728f2(_0x5a2018,_0x40af21,_0x13e166),P=(_0x5d3fb5=>(_0x5d3fb5[_0xf86c5a(0x239)]=_0xf86c5a(0x32b),_0x5d3fb5['SYNCED']=_0xf86c5a(0x2aa),_0x5d3fb5[_0xf86c5a(0x3fe)]='pending',_0x5d3fb5[_0xf86c5a(0x120)]=_0xf86c5a(0x34e),_0x5d3fb5[_0xf86c5a(0x14c)]=_0xf86c5a(0x33a),_0x5d3fb5['FETCH_MISS']=_0xf86c5a(0x322),_0x5d3fb5[_0xf86c5a(0x1d4)]='conflict',_0x5d3fb5['OFFLINE']=_0xf86c5a(0x123),_0x5d3fb5))(P||{});class ue{constructor(_0x1c416d,_0x230fc8,_0x575db3,_0x173ad8,_0x3c3a60,_0x26f784,_0x22ee6e,_0xc01cb,_0x5d797d){const _0x423f8d=_0xf86c5a;l(this,_0x423f8d(0x25b),null),l(this,_0x423f8d(0x26a),[]),(this[_0x423f8d(0x427)]=_0x1c416d,this[_0x423f8d(0x246)]=_0x230fc8,this['_handler']=_0x3c3a60,this['_commandService']=_0x26f784,this[_0x423f8d(0x17b)]=_0x22ee6e,this['_revisionService']=_0xc01cb,this[_0x423f8d(0x373)]=_0x5d797d,this[_0x423f8d(0x25b)]=_0x575db3,this['_pendingMutations']=_0x173ad8);}[_0xf86c5a(0x2ea)](_0x3df124){const _0x194ae4=_0xf86c5a,_0x5debbc=this[_0x194ae4(0x32c)][_0x194ae4(0x3bd)](this[_0x194ae4(0x427)]);return _0x3df124[_0x194ae4(0x31b)]>_0x5debbc+0x1?(this[_0x194ae4(0x43a)][_0x194ae4(0x454)]({'from':_0x5debbc,'to':_0x3df124[_0x194ae4(0x31b)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x7d37c7){const _0x531d8a=_0xf86c5a;this[_0x531d8a(0x17b)][_0x531d8a(0x40c)](this[_0x531d8a(0x427)],_0x7d37c7);}[_0xf86c5a(0x39e)](_0x3e0f3e){const _0x3640b2=_0xf86c5a;var _0x4b00f9,_0x31782a;(_0x31782a=(_0x4b00f9=this['_handler'])[_0x3640b2(0x1ed)])==null||_0x31782a[_0x3640b2(0x1ce)](_0x4b00f9,_0x3e0f3e);}[_0xf86c5a(0x229)](_0x3c7934){const _0x2fcd53=_0xf86c5a;var _0x41f642,_0x25f42e;return(_0x25f42e=(_0x41f642=this['_handler'])[_0x2fcd53(0x43e)])==null?void 0x0:_0x25f42e[_0x2fcd53(0x1ce)](_0x41f642,_0x3c7934);}['_transformRemoteChangesetByIMECache'](_0x39e9f7){const _0x30aa05=_0xf86c5a;var _0x31d59,_0x16c44b,_0x1e3c23;return(_0x1e3c23=(_0x16c44b=(_0x31d59=this[_0x30aa05(0x43a)])[_0x30aa05(0x288)])==null?void 0x0:_0x16c44b[_0x30aa05(0x1ce)](_0x31d59,_0x39e9f7))!=null?_0x1e3c23:_0x39e9f7;}[_0xf86c5a(0x24b)](_0x5a6f2d){const _0x562bb9=_0xf86c5a;var _0x12f248,_0x15792f;if(this['type']===k[_0x562bb9(0x320)]){const {unitID:_0x10f0dc,mutations:_0x1cfefa,memberID:_0x4ef000}=_0x5a6f2d,_0x1ece2b=_0x1cfefa[0x0][_0x562bb9(0x2e1)][_0x562bb9(0x2f4)];Array['isArray'](_0x1ece2b)&&_0x1ece2b[_0x562bb9(0x28c)]>0x0&&((_0x15792f=(_0x12f248=this[_0x562bb9(0x43a)])['onSyncEditingCollabCursor'])==null||_0x15792f['call'](_0x12f248,{'unitID':_0x10f0dc,'memberID':_0x4ef000,'textRanges':_0x1ece2b}));}}['_updateLocalCache'](){const _0x4ec868=_0xf86c5a;this[_0x4ec868(0x373)][_0x4ec868(0x34d)](this[_0x4ec868(0x427)],this[_0x4ec868(0x246)],this[_0x4ec868(0x25b)],this[_0x4ec868(0x26a)]);}[_0xf86c5a(0xf4)](){const _0x2c5ca2=_0xf86c5a;return this[_0x2c5ca2(0x32c)][_0x2c5ca2(0x3bd)](this[_0x2c5ca2(0x427)]);}[_0xf86c5a(0x3a8)](){this['_revisionService']['incrementRevOfUnit'](this['unitID']);}[_0xf86c5a(0x38d)](_0x24354d){const _0x348b91=_0xf86c5a;var _0x4eadbc;const _0x177f69=this[_0x348b91(0x1c2)](_0x24354d),_0x1784e0=_0x240915(_0x177f69['mutations'],this[_0x348b91(0x456)],{'fromCollab':!0x0});if(!_0x1784e0[_0x348b91(0x467)])throw _0x1784e0[_0x348b91(0x3a5)]instanceof Error?_0x1784e0[_0x348b91(0x3a5)]:new Error((_0x4eadbc=_0x1784e0[_0x348b91(0x3a5)])!=null?_0x4eadbc:_0x348b91(0x141));this['_transformIMECache'](_0x177f69),this[_0x348b91(0x194)](_0x24354d),this['_transformSelections'](_0x177f69),this[_0x348b91(0x24b)](_0x177f69),this['_incrementRevisionNumber']();}}let pe=class extends ue{constructor(_0x5cc4ff,_0x1bcad6,_0x46aac3,_0x4d02c9,_0x256ce9,_0x10e26d,_0x1760af,_0x55e2f3,_0x48ab08,_0x3d80a5){const _0x19bb17=_0xf86c5a;super(_0x5cc4ff,_0x1bcad6,null,[],_0x46aac3,_0x55e2f3,_0x1760af,_0x4d02c9,_0x256ce9),l(this,_0x19bb17(0x29a),'synced'),(this[_0x19bb17(0x22b)]=_0x10e26d,this['_logService']=_0x48ab08,this[_0x19bb17(0x235)]=_0x3d80a5);}[_0xf86c5a(0x2d3)](_0x5020af){const _0x298fab=_0xf86c5a,_0x33cc66=this[_0x298fab(0x22b)][_0x298fab(0x45e)](X,this[_0x298fab(0x427)],this['type'],[_0x5020af],this[_0x298fab(0x43a)]);return _0x33cc66[_0x298fab(0x272)](),_0x33cc66[_0x298fab(0x311)](),_0x33cc66;}[_0xf86c5a(0x19d)](_0x38ff1d){const _0x15bf0d=_0xf86c5a;if(this[_0x15bf0d(0x2ea)](_0x38ff1d))return this[_0x15bf0d(0x22b)][_0x15bf0d(0x45e)](B,this[_0x15bf0d(0x427)],this[_0x15bf0d(0x246)],null,[],null,[_0x38ff1d],this[_0x15bf0d(0x43a)]);try{const _0x5a82cc=this[_0x15bf0d(0x235)][_0x15bf0d(0x1e7)](_0x38ff1d,[Er]);if(_0x1a8f7d(_0x5a82cc)){const {c1Prime:_0x2a1cc3}=_0x5a82cc;return this[_0x15bf0d(0x38d)](_0x2a1cc3),this;}throw _0x5a82cc[_0x15bf0d(0x3a5)];}catch(_0x5d6a61){return this[_0x15bf0d(0x435)][_0x15bf0d(0x3a5)](_0x5d6a61),this[_0x15bf0d(0x447)](!0x1);}}['_onConflict'](_0x5b0e46){const _0x2a7422=_0xf86c5a;return this[_0x2a7422(0x22b)][_0x2a7422(0x45e)](ee,this[_0x2a7422(0x427)],this[_0x2a7422(0x246)],null,[],this[_0x2a7422(0x43a)],_0x5b0e46);}['onRemoteAck'](){const _0x2b1d9a=_0xf86c5a;throw new Error(_0x2b1d9a(0x31d));}[_0xf86c5a(0x37b)](){const _0x23456d=_0xf86c5a;throw new Error(_0x23456d(0x41c));}[_0xf86c5a(0x22c)](){const _0x1b2f58=_0xf86c5a;return this[_0x1b2f58(0x22b)][_0x1b2f58(0x45e)](te,this[_0x1b2f58(0x427)],this[_0x1b2f58(0x246)],null,[],this[_0x1b2f58(0x43a)]);}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x434)](){const _0x233bd2=_0xf86c5a;throw new Error(_0x233bd2(0x37c));}[_0xf86c5a(0x3db)](){const _0x1aef9a=_0xf86c5a,_0x37b55e=this[_0x1aef9a(0x32c)][_0x1aef9a(0x3bd)](this['unitID']);return this[_0x1aef9a(0x43a)]['onMissingChangesets']({'from':_0x37b55e,'to':0x0}),this['_injector'][_0x1aef9a(0x45e)](B,this['unitID'],this['type'],null,[],null,[],this[_0x1aef9a(0x43a)]);}};pe=_e([m(0x3,_0x370f8c(_0x4a413b)),m(0x4,_0x370f8c(w)),m(0x5,_0x370f8c(_0x595e81)),m(0x6,_0x47fb5c),m(0x7,_0x225d18),m(0x8,_0x593f47),m(0x9,_0x285caf)],pe);let X=class extends ue{constructor(_0x4ac1c2,_0xef2a7f,_0x1e733d,_0x5ab210,_0x246357,_0x528051,_0x5e7522,_0x139680,_0x269144,_0x3bb5ab,_0x248d02,_0xb01316,_0x21fecf,_0x5930ae){const _0x14da02=_0xf86c5a;super(_0x4ac1c2,_0xef2a7f,null,_0x1e733d,_0x5ab210,_0x3bb5ab,_0x5930ae,_0x528051,_0x5e7522),l(this,_0x14da02(0x29a),_0x14da02(0x2de)),l(this,_0x14da02(0x205),null),l(this,_0x14da02(0x1f9),null),(this['_injector']=_0x246357,this[_0x14da02(0x34f)]=_0x139680,this[_0x14da02(0x435)]=_0x269144,this[_0x14da02(0x2ae)]=_0x248d02,this['_transformService']=_0xb01316,this[_0x14da02(0x358)]=_0x21fecf);}[_0xf86c5a(0x2d3)](_0xf35e0c){const _0xdfed5b=_0xf86c5a;return this['_pendingMutations']['push'](_0xf35e0c),this[_0xdfed5b(0x311)](),this;}['onRemoteChangeset'](_0x49c61c){const _0x5622dd=_0xf86c5a;if(this['_checkMissing'](_0x49c61c))return this[_0x5622dd(0x3e5)](),this[_0x5622dd(0x22b)][_0x5622dd(0x45e)](B,this[_0x5622dd(0x427)],this[_0x5622dd(0x246)],null,this['_pendingMutations'],null,[_0x49c61c],this[_0x5622dd(0x43a)]);try{const _0x37025f=this[_0x5622dd(0x235)][_0x5622dd(0x1e7)](_0x49c61c,this[_0x5622dd(0x26a)]);if(_0x1a8f7d(_0x37025f)){const {c1Prime:_0x317c07,m2Prime:_0x26102f}=_0x37025f;this['_executeRemoteChangeset'](_0x317c07);const _0x85d81=this[_0x5622dd(0x22b)]['createInstance'](X,this[_0x5622dd(0x427)],this[_0x5622dd(0x246)],_0x26102f,this[_0x5622dd(0x43a)]);return this[_0x5622dd(0x3e5)](),_0x85d81['_schedule'](this[_0x5622dd(0x205)]?Math[_0x5622dd(0x2ee)](0x0,new Date()[_0x5622dd(0x222)]()-this[_0x5622dd(0x205)]):this[_0x5622dd(0x430)]()),_0x85d81;}throw _0x37025f['error'];}catch(_0x34fec4){return this[_0x5622dd(0x435)][_0x5622dd(0x3a5)](_0x34fec4),this[_0x5622dd(0x447)](!0x1);}}[_0xf86c5a(0xea)](){const _0x3da646=_0xf86c5a;throw new Error(_0x3da646(0x3e4));}[_0xf86c5a(0x37b)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0xf86c5a(0x22c)](){const _0x4a02ff=_0xf86c5a;return this[_0x4a02ff(0x3e5)](),this[_0x4a02ff(0x22b)][_0x4a02ff(0x45e)](te,this[_0x4a02ff(0x427)],this[_0x4a02ff(0x246)],null,this[_0x4a02ff(0x26a)],this['_handler']);}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x272)](_0x5deead){const _0x37c538=_0xf86c5a,_0xfe5df1=_0x5deead!=null?_0x5deead:this['_getSendChangesetTimeout']();this['_scheduleTimestamp']=new Date()[_0x37c538(0x222)](),this[_0x37c538(0x1f9)]=window[_0x37c538(0x21e)](()=>{const _0x4cef7b=_0x37c538;this[_0x4cef7b(0x3e5)]();let _0x1443e1=null;switch(this['type']){case k[_0x4cef7b(0x1af)]:{_0x1443e1=ds(this[_0x4cef7b(0x26a)],this[_0x4cef7b(0x427)],this['_univerInstanceService'],this['_revisionService'],this[_0x4cef7b(0x34f)]);break;}case k[_0x4cef7b(0x320)]:{this[_0x4cef7b(0x26a)]['every'](_0x4361bf=>_0x4361bf['id']===_0x21b448['id'])?_0x1443e1=Ir(this[_0x4cef7b(0x26a)],this[_0x4cef7b(0x427)],this[_0x4cef7b(0x358)],this['_revisionService'],this[_0x4cef7b(0x34f)]):_0x1443e1=ds(this[_0x4cef7b(0x26a)],this['unitID'],this[_0x4cef7b(0x358)],this[_0x4cef7b(0x32c)],this[_0x4cef7b(0x34f)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4cef7b(0x246)]+_0x4cef7b(0x3b4));}const {changeset:_0x3d0970,pendingMutations:_0x413776}=_0x1443e1;this['_handler'][_0x4cef7b(0x43b)](_0x3d0970);const _0x4bb80d=_0x413776[_0x4cef7b(0x28c)]?this['_injector'][_0x4cef7b(0x45e)](q,this['unitID'],this[_0x4cef7b(0x246)],_0x3d0970,_0x413776,this[_0x4cef7b(0x43a)]):this[_0x4cef7b(0x22b)][_0x4cef7b(0x45e)](Q,this[_0x4cef7b(0x427)],this[_0x4cef7b(0x246)],_0x3d0970,this[_0x4cef7b(0x43a)]);_0x4bb80d[_0x4cef7b(0x311)](),this['_handler'][_0x4cef7b(0x101)](this,_0x4bb80d);},_0xfe5df1);}[_0xf86c5a(0x430)](){const _0x3b8c7f=_0xf86c5a;var _0x1c6b60;const _0x5f2526=this[_0x3b8c7f(0x2ae)][_0x3b8c7f(0x1bf)]($);return(_0x1c6b60=_0x5f2526==null?void 0x0:_0x5f2526['sendChangesetTimeout'])!=null?_0x1c6b60:In;}[_0xf86c5a(0x434)](){const _0x41a80c=_0xf86c5a;throw new Error(_0x41a80c(0x232));}[_0xf86c5a(0x3e5)](){const _0x19d653=_0xf86c5a;this[_0x19d653(0x1f9)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x19d653(0x1f9)]=null);}[_0xf86c5a(0x447)](_0x4bc4cf){const _0x15e2a7=_0xf86c5a;return this[_0x15e2a7(0x3e5)](),this[_0x15e2a7(0x22b)][_0x15e2a7(0x45e)](ee,this[_0x15e2a7(0x427)],this[_0x15e2a7(0x246)],null,this[_0x15e2a7(0x26a)],this[_0x15e2a7(0x43a)],_0x4bc4cf);}};X=_e([m(0x4,_0x370f8c(_0x595e81)),m(0x5,_0x370f8c(_0x4a413b)),m(0x6,_0x370f8c(w)),m(0x7,_0x370f8c(ce)),m(0x8,_0x593f47),m(0x9,_0x225d18),m(0xa,_0x5bc7de),m(0xb,_0x285caf),m(0xc,_0x5edd3d),m(0xd,_0x47fb5c)],X);let Q=class extends ue{constructor(_0x4f28b8,_0x505ab6,_0x3c4a45,_0xf20e8,_0x23e75c,_0x5850e2,_0x2a1e2f,_0x2fe106,_0x512332,_0x254c04,_0x5bfddf){const _0xc5254c=_0xf86c5a;super(_0x4f28b8,_0x505ab6,_0x3c4a45,[],_0xf20e8,_0x2fe106,_0x5bfddf,_0x5850e2,_0x2a1e2f),l(this,'status',_0xc5254c(0x34e)),(this[_0xc5254c(0x22b)]=_0x23e75c,this[_0xc5254c(0x435)]=_0x512332,this[_0xc5254c(0x235)]=_0x254c04);}['appendMutation'](_0x345ab2){const _0x5b0a44=_0xf86c5a,_0x27d77e=this['_injector'][_0x5b0a44(0x45e)](q,this[_0x5b0a44(0x427)],this[_0x5b0a44(0x246)],this[_0x5b0a44(0x25b)],[_0x345ab2],this['_handler']);return _0x27d77e[_0x5b0a44(0x311)](),_0x27d77e;}[_0xf86c5a(0x19d)](_0xdb5c3f){const _0x36a66f=_0xf86c5a;if(this[_0x36a66f(0x2ea)](_0xdb5c3f))return this[_0x36a66f(0x22b)][_0x36a66f(0x45e)](B,this['unitID'],this[_0x36a66f(0x246)],this[_0x36a66f(0x25b)],[],null,[_0xdb5c3f],this[_0x36a66f(0x43a)]);try{const _0x4586ca=this[_0x36a66f(0x235)][_0x36a66f(0x2cd)]([_0xdb5c3f],[this[_0x36a66f(0x25b)]],!0x1);if(_0x23b874(_0x4586ca)){const {c1Prime:_0x54d706,c2Prime:_0x2d42f0}=_0x4586ca;this[_0x36a66f(0x38d)](_0x54d706[0x0]),_0x2d42f0[0x0][_0x36a66f(0x3af)]=this[_0x36a66f(0xf4)]();const _0x204f9a=this[_0x36a66f(0x22b)]['createInstance'](Q,this[_0x36a66f(0x427)],this['type'],_0x2d42f0[0x0],this['_handler']);return _0x204f9a[_0x36a66f(0x311)](),_0x204f9a;}return this[_0x36a66f(0x447)](!0x1);}catch(_0x5d3599){return this[_0x36a66f(0x435)][_0x36a66f(0x3a5)](_0x5d3599),this[_0x36a66f(0x447)](!0x1);}}[_0xf86c5a(0xea)](_0x1bc2af){const _0x216eea=_0xf86c5a,_0x276dd2=this[_0x216eea(0x32c)][_0x216eea(0x3bd)](this[_0x216eea(0x427)]);if(_0x1bc2af[_0x216eea(0x31b)]<_0x276dd2-0x1)return this;if(this[_0x216eea(0x2ea)](_0x1bc2af))return this[_0x216eea(0x22b)]['createInstance'](B,this[_0x216eea(0x427)],this['type'],null,[],this[_0x216eea(0x25b)],[],this[_0x216eea(0x43a)]);this[_0x216eea(0x3a8)]();const _0x4ffcaf=this[_0x216eea(0x22b)][_0x216eea(0x45e)](pe,this[_0x216eea(0x427)],this[_0x216eea(0x246)],this[_0x216eea(0x43a)]);return _0x4ffcaf[_0x216eea(0x311)](),_0x4ffcaf;}[_0xf86c5a(0x37b)](_0x5b6ac9){const _0x23b9ba=_0xf86c5a;return this[_0x23b9ba(0x447)](!!(_0x5b6ac9!=null&&_0x5b6ac9['isPermissionRej']));}[_0xf86c5a(0x22c)](){const _0x5956c7=_0xf86c5a;return this[_0x5956c7(0x22b)][_0x5956c7(0x45e)](te,this[_0x5956c7(0x427)],this[_0x5956c7(0x246)],this['_awaitingChangeset'],[],this[_0x5956c7(0x43a)]);}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x434)](){const _0xe15b98=_0xf86c5a;this[_0xe15b98(0x43a)][_0xe15b98(0x43b)](this['_awaitingChangeset']);}[_0xf86c5a(0x447)](_0x321175){const _0x313a5f=_0xf86c5a;return this['_injector'][_0x313a5f(0x45e)](ee,this['unitID'],this[_0x313a5f(0x246)],this['_awaitingChangeset'],[],this[_0x313a5f(0x43a)],_0x321175);}};Q=_e([m(0x4,_0x370f8c(_0x595e81)),m(0x5,_0x370f8c(_0x4a413b)),m(0x6,_0x370f8c(w)),m(0x7,_0x225d18),m(0x8,_0x593f47),m(0x9,_0x285caf),m(0xa,_0x47fb5c)],Q);let q=class extends ue{constructor(_0x178506,_0x29007d,_0x1ba70f,_0x4a63a2,_0x2d072f,_0x9e78a7,_0x54241a,_0x17c167,_0x51d6ce,_0x3dac06,_0xd02363,_0x8496da){const _0x4c13d1=_0xf86c5a;super(_0x178506,_0x29007d,_0x1ba70f,_0x4a63a2,_0x2d072f,_0x51d6ce,_0x8496da,_0x54241a,_0x17c167),l(this,_0x4c13d1(0x29a),'awaiting_with_pending'),(this['_injector']=_0x9e78a7,this[_0x4c13d1(0x435)]=_0x3dac06,this[_0x4c13d1(0x235)]=_0xd02363);}[_0xf86c5a(0x2d3)](_0x4e3cd1){const _0xd61132=_0xf86c5a;return this['_pendingMutations'][_0xd61132(0x106)](_0x4e3cd1),this;}[_0xf86c5a(0x19d)](_0x1eebed){const _0x1e75d7=_0xf86c5a;if(this[_0x1e75d7(0x2ea)](_0x1eebed))return this[_0x1e75d7(0x22b)][_0x1e75d7(0x45e)](B,this['unitID'],this['type'],this[_0x1e75d7(0x25b)],this['_pendingMutations'],null,[_0x1eebed],this[_0x1e75d7(0x43a)]);try{const _0x35c476=this[_0x1e75d7(0x235)][_0x1e75d7(0x2cd)]([_0x1eebed],[this[_0x1e75d7(0x25b)]],!0x1);if(_0x23b874(_0x35c476)){const {c1Prime:_0x240996,c2Prime:_0x3da4c0}=_0x35c476,_0x4d64ce=this[_0x1e75d7(0x235)][_0x1e75d7(0x1e7)](_0x240996[0x0],this[_0x1e75d7(0x26a)]);if(_0x1a8f7d(_0x4d64ce)){const {c1Prime:_0x54183a,m2Prime:_0x346943}=_0x4d64ce;return this[_0x1e75d7(0x38d)](_0x54183a),_0x3da4c0[0x0][_0x1e75d7(0x3af)]=this[_0x1e75d7(0xf4)](),this[_0x1e75d7(0x22b)][_0x1e75d7(0x45e)](q,this[_0x1e75d7(0x427)],this[_0x1e75d7(0x246)],_0x3da4c0[0x0],_0x346943,this['_handler']);}throw _0x4d64ce[_0x1e75d7(0x3a5)];}throw _0x35c476['error'];}catch(_0x14340a){return this[_0x1e75d7(0x435)]['error'](_0x14340a),this['_onConflict'](!0x1);}}[_0xf86c5a(0xea)](_0x58b7fa){const _0x13f824=_0xf86c5a;if(this['_checkMissing'](_0x58b7fa))return this[_0x13f824(0x22b)][_0x13f824(0x45e)](B,this['unitID'],this[_0x13f824(0x246)],null,this[_0x13f824(0x26a)],this[_0x13f824(0x25b)],[],this[_0x13f824(0x43a)]);this[_0x13f824(0x3a8)]();const _0x49d1c2=this[_0x13f824(0x22b)][_0x13f824(0x45e)](X,this[_0x13f824(0x427)],this[_0x13f824(0x246)],this['_pendingMutations'],this[_0x13f824(0x43a)]);return _0x49d1c2[_0x13f824(0x272)](),_0x49d1c2[_0x13f824(0x311)](),_0x49d1c2;}[_0xf86c5a(0x37b)](_0x497731){const _0x4bbbde=_0xf86c5a;return this[_0x4bbbde(0x447)](!!(_0x497731!=null&&_0x497731[_0x4bbbde(0x13a)]));}[_0xf86c5a(0x22c)](){const _0x442b74=_0xf86c5a;return this['_injector'][_0x442b74(0x45e)](te,this[_0x442b74(0x427)],this[_0x442b74(0x246)],this[_0x442b74(0x25b)],this['_pendingMutations'],this['_handler']);}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x434)](){const _0x50dfc8=_0xf86c5a;this['_handler'][_0x50dfc8(0x43b)](this[_0x50dfc8(0x25b)]);}[_0xf86c5a(0x447)](_0x4da617){const _0xa49dcc=_0xf86c5a;return this['_injector'][_0xa49dcc(0x45e)](ee,this[_0xa49dcc(0x427)],this[_0xa49dcc(0x246)],null,this[_0xa49dcc(0x26a)],this[_0xa49dcc(0x43a)],_0x4da617);}};q=_e([m(0x5,_0x370f8c(_0x595e81)),m(0x6,_0x370f8c(_0x4a413b)),m(0x7,_0x370f8c(w)),m(0x8,_0x225d18),m(0x9,_0x593f47),m(0xa,_0x285caf),m(0xb,_0x47fb5c)],q);let ee=class extends ue{constructor(_0x4cd429,_0x15f259,_0x4d94c4,_0x29a745,_0x53a18a,_0x1ff839=!0x1,_0x15a5a2,_0x545314,_0x5bb726,_0x354a09,_0x4367bd,_0x13834d,_0x71eeba){const _0x402a67=_0xf86c5a;super(_0x4cd429,_0x15f259,_0x4d94c4,_0x29a745,_0x53a18a,_0x545314,_0x5bb726,_0x4367bd,_0x354a09),l(this,_0x402a67(0x29a),'conflict'),(this[_0x402a67(0x347)]=_0x1ff839,this[_0x402a67(0x13f)]=_0x15a5a2,this['_localeService']=_0x13834d,this[_0x402a67(0x171)]=_0x71eeba,this[_0x402a67(0x1c9)](),this[_0x402a67(0x2b3)](),this[_0x402a67(0x1d2)]());}[_0xf86c5a(0x2d3)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x434)](){const _0x220099=_0xf86c5a;throw new Error(_0x220099(0x287));}[_0xf86c5a(0x2b3)](){const _0x19124c=_0xf86c5a;this[_0x19124c(0x373)][_0x19124c(0x34d)](this[_0x19124c(0x427)],this[_0x19124c(0x246)],null,[]);}['_showConflictNotification'](){const _0x58945c=_0xf86c5a;this[_0x58945c(0x347)]?this[_0x58945c(0x171)][_0x58945c(0x265)]({'title':this[_0x58945c(0x1f8)]['t'](_0x58945c(0x234)),'content':this[_0x58945c(0x1f8)]['t'](_0x58945c(0x390)),'type':_0x58945c(0x3a5),'duration':0x0}):this[_0x58945c(0x171)][_0x58945c(0x265)]({'title':this[_0x58945c(0x1f8)]['t'](_0x58945c(0x226)),'content':this['_localeService']['t'](_0x58945c(0x1f0)),'type':_0x58945c(0x3a5),'duration':0x0});}[_0xf86c5a(0x1d2)](){const _0x481c0e=_0xf86c5a;this[_0x481c0e(0x13f)]['updatePermissionPoint'](new _0x365664(this['unitID'])['id'],!0x1);}};ee=_e([m(0x6,_0x370f8c(_0x2f69f2)),m(0x7,_0x225d18),m(0x8,_0x47fb5c),m(0x9,_0x370f8c(w)),m(0xa,_0x370f8c(_0x4a413b)),m(0xb,_0x370f8c(_0x2673bf)),m(0xc,_0x7bfd4b)],ee);let te=class extends ue{constructor(_0x39020f,_0x409005,_0xf85818,_0x353061,_0x537eeb,_0x2a046c,_0x1e7b5d,_0x5b7cbc,_0x26548f,_0x39ce84){const _0x2949a1=_0xf86c5a;super(_0x39020f,_0x409005,_0xf85818,_0x353061,_0x537eeb,_0x26548f,_0x39ce84,_0x1e7b5d,_0x5b7cbc),l(this,_0x2949a1(0x29a),_0x2949a1(0x123)),this[_0x2949a1(0x22b)]=_0x2a046c;}['appendMutation'](_0x322683){const _0x2fe4e9=_0xf86c5a;return this['_pendingMutations']['push'](_0x322683),this[_0x2fe4e9(0x311)](),this;}[_0xf86c5a(0x19d)](_0x1db349){const _0x5b0a77=_0xf86c5a;throw new Error(_0x5b0a77(0x1d3));}[_0xf86c5a(0xea)](){const _0x39c14f=_0xf86c5a;throw new Error(_0x39c14f(0x464));}['onRemoteRej'](){const _0xca47a6=_0xf86c5a;throw new Error(_0xca47a6(0x142));}[_0xf86c5a(0x22c)](){return this;}[_0xf86c5a(0x3b3)](){const {_injector:_0x4abb3c,_pendingMutations:_0x55a608,_awaitingChangeset:_0x788ef3,unitID:_0x594b55,_handler:_0x2a1969,type:_0x1102c0}=this,_0xbf1228=Ws(_0x4abb3c,_0x594b55,_0x1102c0,_0x788ef3,_0x55a608,_0x2a1969);return _0xbf1228 instanceof X?_0xbf1228['_schedule']():(_0xbf1228 instanceof q||_0xbf1228 instanceof Q)&&_0xbf1228['resend'](),_0xbf1228;}['resend'](){const _0x1f4d84=_0xf86c5a;throw new Error(_0x1f4d84(0x3aa));}};te=_e([m(0x5,_0x370f8c(_0x595e81)),m(0x6,_0x370f8c(_0x4a413b)),m(0x7,_0x370f8c(w)),m(0x8,_0x225d18),m(0x9,_0x47fb5c)],te);let B=class extends ue{constructor(_0x2080c4,_0x28516f,_0x20dcf8,_0x3e1f9a,_0x38fdf3,_0x48f740,_0x24ca38,_0x522065,_0x1ddfb6,_0xc9619f,_0x2e0fbe,_0x2cfd48,_0xf2903,_0x2c0df0){const _0x3837be=_0xf86c5a;super(_0x2080c4,_0x28516f,_0x20dcf8,_0x3e1f9a,_0x24ca38,_0x2cfd48,_0xf2903,_0x1ddfb6,_0xc9619f),l(this,'status',_0x3837be(0x322)),(this['_acknowledgedAwaitingChangeset']=_0x38fdf3,this[_0x3837be(0x351)]=_0x48f740,this[_0x3837be(0x22b)]=_0x522065,this['_logService']=_0x2e0fbe,this[_0x3837be(0x235)]=_0x2c0df0);}[_0xf86c5a(0x2ff)](_0x49d894){const _0x20ab7c=_0xf86c5a;try{const _0x4149f2=[..._0x49d894,...this['_queuedRemoteChangesets']],_0x364e00=[this[_0x20ab7c(0x25b)]||this[_0x20ab7c(0x1cb)]]['filter'](_0x35348c=>!!_0x35348c);let _0x2d01b9,_0x139eed;if(_0x364e00[_0x20ab7c(0x28c)]){const _0x4fcfcb=this[_0x20ab7c(0x235)][_0x20ab7c(0x2cd)](_0x4149f2,_0x364e00,!0x1);if(!_0x23b874(_0x4fcfcb))throw _0x4fcfcb[_0x20ab7c(0x3a5)];_0x2d01b9=_0x4fcfcb[_0x20ab7c(0x244)],_0x139eed=_0x4fcfcb[_0x20ab7c(0x1dd)];}else _0x2d01b9=_0x4149f2,_0x139eed=[];let _0x2840e0=this[_0x20ab7c(0x26a)];_0x2d01b9['forEach'](_0x4c0b1f=>{const _0x52f03b=_0x20ab7c;let _0x483bb8;if(_0x2840e0[_0x52f03b(0x28c)]){const _0x43f516=this[_0x52f03b(0x235)][_0x52f03b(0x1e7)](_0x4c0b1f,_0x2840e0);if(!_0x1a8f7d(_0x43f516))throw _0x43f516[_0x52f03b(0x3a5)];_0x483bb8=_0x43f516['c1Prime'],_0x2840e0=_0x43f516[_0x52f03b(0x3bb)];}else _0x483bb8=_0x4c0b1f;this[_0x52f03b(0x38d)](_0x483bb8);}),this['_acknowledgedAwaitingChangeset']&&this[_0x20ab7c(0x3a8)](),this[_0x20ab7c(0x25b)]&&_0x139eed[_0x20ab7c(0x28c)]&&(_0x139eed[0x0][_0x20ab7c(0x3af)]=this[_0x20ab7c(0xf4)]());let _0x2f6050;if(this[_0x20ab7c(0x25b)]&&_0x2840e0[_0x20ab7c(0x28c)]!==0x0)_0x2f6050=this['_injector'][_0x20ab7c(0x45e)](q,this[_0x20ab7c(0x427)],this[_0x20ab7c(0x246)],_0x139eed[0x0],_0x2840e0,this[_0x20ab7c(0x43a)]);else{if(this[_0x20ab7c(0x25b)]&&_0x2840e0['length']===0x0)_0x139eed[0x0][_0x20ab7c(0x3af)]=this[_0x20ab7c(0xf4)](),_0x2f6050=this[_0x20ab7c(0x22b)][_0x20ab7c(0x45e)](Q,this[_0x20ab7c(0x427)],this[_0x20ab7c(0x246)],_0x139eed[0x0],this[_0x20ab7c(0x43a)]);else{if(_0x2840e0[_0x20ab7c(0x28c)]!==0x0){const _0x56f06d=this[_0x20ab7c(0x22b)][_0x20ab7c(0x45e)](X,this[_0x20ab7c(0x427)],this[_0x20ab7c(0x246)],_0x2840e0,this[_0x20ab7c(0x43a)]);_0x56f06d['_schedule'](),_0x2f6050=_0x56f06d;}else _0x2f6050=this[_0x20ab7c(0x22b)][_0x20ab7c(0x45e)](pe,this[_0x20ab7c(0x427)],this[_0x20ab7c(0x246)],this[_0x20ab7c(0x43a)]);}}return _0x2f6050[_0x20ab7c(0x311)](),_0x2f6050;}catch(_0x1825ed){return this[_0x20ab7c(0x435)][_0x20ab7c(0x3a5)](_0x20ab7c(0x170),_0x20ab7c(0x1b8),_0x1825ed),this[_0x20ab7c(0x22b)][_0x20ab7c(0x45e)](ee,this[_0x20ab7c(0x427)],this['type'],this[_0x20ab7c(0x25b)],this[_0x20ab7c(0x26a)],this['_handler'],!0x1);}}[_0xf86c5a(0x434)](){const _0x41f3b0=_0xf86c5a;throw new Error(_0x41f3b0(0x124));}[_0xf86c5a(0x2d3)](_0x150554){const _0x42d43b=_0xf86c5a;return this[_0x42d43b(0x26a)][_0x42d43b(0x106)](_0x150554),this;}[_0xf86c5a(0x19d)](_0x2b6f9f){const _0x374efc=_0xf86c5a;return this[_0x374efc(0x351)][_0x374efc(0x106)](_0x2b6f9f),this;}[_0xf86c5a(0xea)](_0x1d2aca){const _0x8d0d8f=_0xf86c5a;if(this[_0x8d0d8f(0x25b)])return this[_0x8d0d8f(0x1cb)]=this[_0x8d0d8f(0x25b)],this[_0x8d0d8f(0x25b)]=null,this;throw new Error(_0x8d0d8f(0x224));}['onRemoteRej'](_0x8285aa){return this['_onConflict'](!!(_0x8285aa!=null&&_0x8285aa['isPermissionRej']));}['toggleOffline'](){const _0x3c4fc2=_0xf86c5a;return this['_injector']['createInstance'](te,this[_0x3c4fc2(0x427)],this[_0x3c4fc2(0x246)],this[_0x3c4fc2(0x25b)],this[_0x3c4fc2(0x26a)],this[_0x3c4fc2(0x43a)]);}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x447)](_0x1fed66){const _0x43b597=_0xf86c5a;return this[_0x43b597(0x22b)][_0x43b597(0x45e)](ee,this['unitID'],this[_0x43b597(0x246)],this['_awaitingChangeset'],this[_0x43b597(0x26a)],this[_0x43b597(0x43a)],_0x1fed66);}};B=_e([m(0x7,_0x370f8c(_0x595e81)),m(0x8,_0x370f8c(_0x4a413b)),m(0x9,_0x370f8c(w)),m(0xa,_0x593f47),m(0xb,_0x225d18),m(0xc,_0x47fb5c),m(0xd,_0x285caf)],B);function Ws(_0x12d3e5,_0x3483b4,_0x449b34,_0x585d9d,_0x379477,_0xdd22f5){const _0x4face9=_0xf86c5a;return _0x585d9d&&_0x379477[_0x4face9(0x28c)]?_0x12d3e5['createInstance'](q,_0x3483b4,_0x449b34,_0x585d9d,_0x379477,_0xdd22f5):_0x585d9d?_0x12d3e5[_0x4face9(0x45e)](Q,_0x3483b4,_0x449b34,_0x585d9d,_0xdd22f5):_0x379477['length']?_0x12d3e5[_0x4face9(0x45e)](X,_0x3483b4,_0x449b34,_0x379477,_0xdd22f5):_0x12d3e5[_0x4face9(0x45e)](pe,_0x3483b4,_0x449b34,_0xdd22f5);}var Tr=Object['defineProperty'],Rr=Object[_0xf86c5a(0x397)],Wt=(_0x5960f5,_0x24f3d8,_0x4ee5a9,_0x26319a)=>{const _0x49b91b=_0xf86c5a;for(var _0x29bbde=_0x26319a>0x1?void 0x0:_0x26319a?Rr(_0x24f3d8,_0x4ee5a9):_0x24f3d8,_0x5ba320=_0x5960f5[_0x49b91b(0x28c)]-0x1,_0x58feda;_0x5ba320>=0x0;_0x5ba320--)(_0x58feda=_0x5960f5[_0x5ba320])&&(_0x29bbde=(_0x26319a?_0x58feda(_0x24f3d8,_0x4ee5a9,_0x29bbde):_0x58feda(_0x29bbde))||_0x29bbde);return _0x26319a&&_0x29bbde&&Tr(_0x24f3d8,_0x4ee5a9,_0x29bbde),_0x29bbde;},p=(_0x50f0bf,_0x2a2e60)=>(_0x3affd8,_0x4a424d)=>_0x2a2e60(_0x3affd8,_0x4a424d,_0x50f0bf);let qe=class extends _0x27d368{constructor(_0x3c3e38,_0x50e0e2,_0x10b691,_0x38197c,_0x2a178e,_0x381065,_0x5e2705,_0x455632,_0x13b739,_0x152eb3,_0x350088,_0x311c19,_0x1b52bb){const _0x398fe8=_0xf86c5a;super(),l(this,_0x398fe8(0x18d),new _0x52cf76(null)),l(this,_0x398fe8(0x363),this[_0x398fe8(0x18d)][_0x398fe8(0x377)]()),l(this,_0x398fe8(0x20c)),l(this,_0x398fe8(0x461),!0x1),l(this,_0x398fe8(0x216),''),l(this,_0x398fe8(0x3ea),0x0),l(this,_0x398fe8(0x217),this['state$'][_0x398fe8(0x268)](_0x40b982(_0x4fb181=>_0x4fb181?_0x4fb181[_0x398fe8(0x29a)]:P[_0x398fe8(0x2a1)]),_0x5da9ca(0x1))),l(this,_0x398fe8(0x15b),!0x1),l(this,_0x398fe8(0x376),[]),(this['unitID']=_0x3c3e38,this['session']=_0x50e0e2,this[_0x398fe8(0x253)]=_0x10b691,this[_0x398fe8(0x22b)]=_0x38197c,this[_0x398fe8(0x373)]=_0x2a178e,this[_0x398fe8(0x245)]=_0x381065,this['_localeService']=_0x5e2705,this[_0x398fe8(0x32c)]=_0x455632,this[_0x398fe8(0x435)]=_0x13b739,this[_0x398fe8(0x456)]=_0x152eb3,this[_0x398fe8(0x122)]=_0x350088,this[_0x398fe8(0x13f)]=_0x311c19,this[_0x398fe8(0x172)]=_0x1b52bb);}get[_0xf86c5a(0x3c3)](){const _0x46931f=_0xf86c5a;return this[_0x46931f(0x20c)];}async[_0xf86c5a(0x18f)](){const _0x9f9743=_0xf86c5a;if(this[_0x9f9743(0x3c3)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x9f9743(0x30d)]();}[_0xf86c5a(0x3a1)](){return this['_collaborationPaused']=!0x0,_0x441a7c(()=>{const _0x4cd986=_0x556d;this[_0x4cd986(0x461)]=!0x1,this[_0x4cd986(0x296)]();});}[_0xf86c5a(0x20f)](_0x1a5b4c){const _0x23896f=_0xf86c5a;this[_0x23896f(0x20c)]=_0x1a5b4c,this[_0x23896f(0x18d)][_0x23896f(0x23f)](_0x1a5b4c);}async['_init'](){const _0x8bef40=_0xf86c5a;var _0x2a0e2c;this[_0x8bef40(0x20f)](await this[_0x8bef40(0x138)]()),this[_0x8bef40(0x172)]&&((_0x2a0e2c=this[_0x8bef40(0x172)])==null||_0x2a0e2c['editingUnit'](this[_0x8bef40(0x427)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x8bef40(0xf8)](this['unitID'])['subscribe'](_0x453ee8=>{const _0x579d44=_0x8bef40;this[_0x579d44(0x435)][_0x579d44(0x379)](_0x579d44(0x2fc),'editing\x20status\x20changed\x20to',_0x453ee8),_0x453ee8===Vs[_0x579d44(0x1b0)]?(this[_0x579d44(0x122)][_0x579d44(0x265)]({'content':this['_localeService']['t'](_0x579d44(0x45a)),'type':_0x424985[_0x579d44(0x3ae)]}),this[_0x579d44(0x13f)][_0x579d44(0x382)](new _0x365664(this['unitID'])['id'],!0x1)):this[_0x579d44(0x13f)]['updatePermissionPoint'](new _0x365664(this[_0x579d44(0x427)])['id'],!0x0);})));let _0x43b1ba=!0x1;return this[_0x8bef40(0x177)](this[_0x8bef40(0x195)][_0x8bef40(0xf6)][_0x8bef40(0x1c3)](_0x538541=>{const _0x243ee3=_0x8bef40;_0x538541===Y[_0x243ee3(0x2b4)]?this[_0x243ee3(0x2f6)](_0x43b1ba):_0x538541===Y[_0x243ee3(0x2a1)]&&(_0x43b1ba=!0x0,this['_toggleOffline']());})),this[_0x8bef40(0x177)](this[_0x8bef40(0x195)][_0x8bef40(0x3b1)]['subscribe'](_0x40b9ff=>{const _0x221167=_0x8bef40;try{switch(_0x40b9ff[_0x221167(0x26e)]){case _0x455562[_0x221167(0x305)]:{this[_0x221167(0x3cb)](_0x5d6100(_0x40b9ff['data']));break;}case _0x455562['CHANGESET_ACK']:{this['_onRemoteACK'](_0x40b9ff['data']);break;}case _0x455562['CHANGESET_REJ']:{this[_0x221167(0x15a)]();break;}case _0x455562[_0x221167(0x2ca)]:{this[_0x221167(0x22a)](_0x40b9ff[_0x221167(0x129)][_0x221167(0x1d9)]['map'](_0xe4ad52=>_0x5d6100(_0xe4ad52)));break;}case _0x455562[_0x221167(0x3f1)]:this[_0x221167(0x15a)]({'isPermissionRej':!0x0});}}catch(_0x335384){throw console[_0x221167(0x3a5)](_0x221167(0x1a5),_0x335384),_0x335384;}})),this['_state'];}[_0xf86c5a(0x26f)](){const _0x4ba2c8=_0xf86c5a;this[_0x4ba2c8(0x15b)]=!0x1;}[_0xf86c5a(0x12e)](){const _0x589e7f=_0xf86c5a;if(this[_0x589e7f(0x15b)])throw new Error('[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.');this[_0x589e7f(0x15b)]=!0x0;}[_0xf86c5a(0x2ab)](_0x30945e){const _0x5090d5=_0xf86c5a;this[_0x5090d5(0x12e)](),this[_0x5090d5(0x20f)](this[_0x5090d5(0x20c)][_0x5090d5(0x2d3)](_0x30945e)),this[_0x5090d5(0x26f)]();}[_0xf86c5a(0x3cb)](_0xa68d42){const _0x35dc24=_0xf86c5a;if(!(_0xa68d42[_0x35dc24(0x31b)]<=this['_revisionService'][_0x35dc24(0x3bd)](this[_0x35dc24(0x427)]))){if(this[_0x35dc24(0x461)]){this[_0x35dc24(0x376)][_0x35dc24(0x106)](_0xa68d42);return;}this[_0x35dc24(0x1c8)](_0xa68d42);}}[_0xf86c5a(0x296)](){const _0xdf561e=_0xf86c5a;this[_0xdf561e(0x376)][_0xdf561e(0x26c)](_0x5a3f95=>this[_0xdf561e(0x1c8)](_0x5a3f95)),this[_0xdf561e(0x376)]=[];}[_0xf86c5a(0x1c8)](_0x225f7d){const _0x1d6279=_0xf86c5a,_0x2661e0=this[_0x1d6279(0x245)][_0x1d6279(0x2bd)][_0x1d6279(0xe9)](this[_0x1d6279(0x245)][_0x1d6279(0x2bd)][_0x1d6279(0x360)]()['COMPRESS_MUTATION_APPLY'])(_0x225f7d['mutations'],null)||_0x225f7d[_0x1d6279(0x3c1)],_0x175769={..._0x225f7d,'mutations':_0x2661e0};this[_0x1d6279(0x12e)](),this['_updateState'](this[_0x1d6279(0x20c)]['onRemoteChangeset'](_0x175769)),this[_0x1d6279(0x26f)]();}['_onRemoteACK'](_0x30e5e4){const _0x553fb5=_0xf86c5a;this[_0x553fb5(0x12e)](),this[_0x553fb5(0x20f)](this[_0x553fb5(0x20c)][_0x553fb5(0xea)](_0x30e5e4)),this[_0x553fb5(0x26f)]();}[_0xf86c5a(0x15a)](_0x2d1310){const _0xca5942=_0xf86c5a;this[_0xca5942(0x12e)](),this[_0xca5942(0x20f)](this['_state'][_0xca5942(0x37b)](_0x2d1310)),this[_0xca5942(0x26f)]();}[_0xf86c5a(0x22a)](_0x212450){const _0x5c416d=_0xf86c5a;if(!(this['_state']instanceof B))throw new TypeError(_0x5c416d(0x3a7));const _0x3bab64=_0x212450[_0x5c416d(0x2c1)](_0xb31ae9=>{const _0x2b3915=_0x5c416d,_0x4c8cd4=this[_0x2b3915(0x245)]['interceptor'][_0x2b3915(0xe9)](this[_0x2b3915(0x245)][_0x2b3915(0x2bd)][_0x2b3915(0x360)]()['COMPRESS_MUTATION_APPLY'])(_0xb31ae9['mutations'],null)||_0xb31ae9['mutations'];return{..._0xb31ae9,'mutations':_0x4c8cd4};});this[_0x5c416d(0x12e)](),this[_0x5c416d(0x20f)](this['_state'][_0x5c416d(0x2ff)](_0x3bab64)),this[_0x5c416d(0x26f)]();}['_toggleOffline'](){const _0x593e0c=_0xf86c5a;this[_0x593e0c(0x12e)](),this[_0x593e0c(0x20f)](this[_0x593e0c(0x20c)]['toggleOffline']()),this[_0x593e0c(0x26f)]();}[_0xf86c5a(0x2f6)](_0x465092=!0x1){const _0x510d0b=_0xf86c5a;this['_lockTransition'](),this[_0x510d0b(0x20f)](this['_state'][_0x510d0b(0x3b3)]()),this[_0x510d0b(0x26f)]();const _0x398e53=this[_0x510d0b(0x20c)];_0x465092&&_0x398e53 instanceof pe&&(this[_0x510d0b(0x12e)](),this[_0x510d0b(0x20f)](_0x398e53[_0x510d0b(0x3db)]()),this[_0x510d0b(0x26f)]());}async[_0xf86c5a(0x138)](){return new Promise(_0x470dc6=>{const _0x4b328c=_0x556d;this[_0x4b328c(0x195)][_0x4b328c(0xf6)]['pipe'](_0x1978dc(0x1))[_0x4b328c(0x1c3)](async _0x10aa16=>{const _0x4b7ee8=_0x4b328c;_0x470dc6(await this['_createInitialStateImpl'](_0x10aa16===Y[_0x4b7ee8(0x2b4)]));});});}[_0xf86c5a(0x44f)](){const _0x198853=this['unitID'];return{'onStateChange':(_0x48975c,_0xfe473b)=>{const _0x6bbc33=_0x556d;if(_0x48975c!==this[_0x6bbc33(0x20c)])throw new Error(_0x6bbc33(0x164)+_0x48975c['status']+'\x0aAfter:\x20'+_0xfe473b['status']+_0x6bbc33(0x110)+this[_0x6bbc33(0x20c)][_0x6bbc33(0x29a)]);this['_updateState'](_0xfe473b);},'onSendChangeset':_0xee2a97=>{const _0x46facb=_0x556d;_0xee2a97['sid']||(_0xee2a97[_0x46facb(0x334)]=this[_0x46facb(0x216)],_0xee2a97[_0x46facb(0x40d)]=++this[_0x46facb(0x3ea)]);const _0x744ab2={'eventID':_0x455562[_0x46facb(0x1d0)],'data':{'unitID':_0xee2a97['unitID'],'unitType':this['_type'],'changeset':_0xee2a97,'memberID':this['session'][_0x46facb(0x369)]()}};this[_0x46facb(0x195)][_0x46facb(0x100)](_0x744ab2,this[_0x46facb(0x427)]);},'onMissingChangesets':({from:_0x366cbb,to:_0x1c52cf})=>{const _0x4fd190=_0x556d;this[_0x4fd190(0x435)]['debug'](_0x4fd190(0x2fc),'fetching\x20missing\x20changesets\x20from\x20'+_0x366cbb+_0x4fd190(0x365)+_0x1c52cf);const _0x26937b={'eventID':_0x455562[_0x4fd190(0x37e)],'data':{'unitID':_0x198853,'unitType':this[_0x4fd190(0x253)],'from':_0x366cbb,'to':_0x1c52cf}};this[_0x4fd190(0x195)]['send'](_0x26937b,this[_0x4fd190(0x427)]);}};}async['_createInitialStateImpl'](_0x7b27d8){const _0x2d667f=_0xf86c5a;var _0x3f9c55,_0x225834;const _0x287517=await this[_0x2d667f(0x373)][_0x2d667f(0x3ec)](this['unitID']),_0x2f4b4a=(_0x3f9c55=_0x287517==null?void 0x0:_0x287517['mutations'])!=null?_0x3f9c55:[],_0x30e723=(_0x225834=_0x287517==null?void 0x0:_0x287517[_0x2d667f(0x2f0)])!=null?_0x225834:null,_0x3b0423=!!(_0x30e723!=null&&_0x30e723['sid'])&&!!(_0x30e723!=null&&_0x30e723[_0x2d667f(0x40d)]);this[_0x2d667f(0x216)]=_0x3b0423?_0x30e723[_0x2d667f(0x334)]:ir(),this[_0x2d667f(0x3ea)]=_0x3b0423?_0x30e723[_0x2d667f(0x40d)]:0x0;const _0x12ca79=this[_0x2d667f(0x427)];try{this[_0x2d667f(0x150)](_0x30e723,_0x2f4b4a);}catch(_0x1d6657){this[_0x2d667f(0x435)][_0x2d667f(0x3a5)](_0x1d6657);}const _0x207d7e=this[_0x2d667f(0x44f)]();if(_0x7b27d8){const _0x40ecf5=Ws(this['_injector'],_0x12ca79,this[_0x2d667f(0x253)],_0x30e723,_0x2f4b4a,_0x207d7e);return _0x40ecf5 instanceof X?_0x40ecf5[_0x2d667f(0x272)]():(_0x40ecf5 instanceof q||_0x40ecf5 instanceof Q)&&_0x40ecf5[_0x2d667f(0x434)](),_0x40ecf5;}return this[_0x2d667f(0x22b)][_0x2d667f(0x45e)](te,_0x12ca79,this[_0x2d667f(0x253)],_0x30e723,_0x2f4b4a,_0x207d7e);}[_0xf86c5a(0x150)](_0x2572ef,_0x4ffb02){const _0x346e62=_0xf86c5a;var _0xa24dbf,_0x5aab8d;const _0x2c3d99=this[_0x346e62(0x245)][_0x346e62(0x2bd)][_0x346e62(0xe9)](this['_compressMutationService'][_0x346e62(0x2bd)][_0x346e62(0x360)]()[_0x346e62(0x163)]);(_0xa24dbf=_0x2c3d99((_0x2572ef==null?void 0x0:_0x2572ef[_0x346e62(0x3c1)])||[],null))==null||_0xa24dbf[_0x346e62(0x26c)](_0x497cbe=>this['_commandService']['executeCommand'](_0x497cbe['id'],_0x497cbe['params'])),(_0x5aab8d=_0x2c3d99(_0x4ffb02||[],null))==null||_0x5aab8d[_0x346e62(0x26c)](_0x2b922e=>this[_0x346e62(0x456)][_0x346e62(0x1b5)](_0x2b922e['id'],_0x2b922e[_0x346e62(0x2e1)]));}};qe=Wt([p(0x3,_0x370f8c(_0x595e81)),p(0x4,_0x370f8c(w)),p(0x5,_0x370f8c(_0x4517e4)),p(0x6,_0x370f8c(_0x2673bf)),p(0x7,_0x370f8c(_0x4a413b)),p(0x8,_0x593f47),p(0x9,_0x225d18),p(0xa,_0x3aa03b),p(0xb,_0x2f69f2),p(0xc,_0x2fd677(tt))],qe);let Tt=class extends qe{constructor(_0x1fe6e5,_0x5111e7,_0x1b3744,_0x2bdfbd,_0x5dc84d,_0x3c41a8,_0x2a6034,_0x24ff15,_0x4c5d44,_0x46df6a,_0x270c15,_0x26f320,_0x59128e,_0x4f9d64,_0x1d7efe,_0x1b203d,_0x11d7a4){const _0x37fab4=_0xf86c5a;super(_0x1fe6e5,_0x1b3744,_0x5111e7,_0x2bdfbd,_0x5dc84d,_0x3c41a8,_0x2a6034,_0x24ff15,_0x59128e,_0x4f9d64,_0x1d7efe,_0x1b203d,_0x11d7a4),this[_0x37fab4(0x427)]=_0x1fe6e5,this[_0x37fab4(0x246)]=_0x5111e7,this['_docStateChangeManagerService']=_0x4c5d44,this[_0x37fab4(0x2e3)]=_0x46df6a,this[_0x37fab4(0x1b4)]=_0x270c15,this[_0x37fab4(0x1ff)]=_0x26f320;}['_createHandler'](){const _0x5bc406=_0xf86c5a,_0x27a98a=super[_0x5bc406(0x44f)]();return _0x27a98a[_0x5bc406(0x43e)]=_0x56c178=>this[_0x5bc406(0x2e3)][_0x5bc406(0x3e2)](_0x56c178),_0x27a98a[_0x5bc406(0x1ed)]=_0x396b21=>this['_docTransformSelectionsService']['transformSelections'](_0x396b21),_0x27a98a[_0x5bc406(0x381)]=_0x1a789f=>this[_0x5bc406(0x1ff)][_0x5bc406(0x411)](_0x1a789f),_0x27a98a[_0x5bc406(0x288)]=_0x41c6a7=>this['_docTransformIMECacheService'][_0x5bc406(0x22d)](_0x41c6a7),_0x27a98a;}async[_0xf86c5a(0x30d)](){const _0x59da65=_0xf86c5a,_0x4597e0=await super[_0x59da65(0x30d)]();return this[_0x59da65(0x417)][_0x59da65(0x188)]['pipe'](_0x14bd7d(this[_0x59da65(0x39d)]))[_0x59da65(0x1c3)](_0x4724e5=>{const _0x23b0ab=_0x59da65;if(_0x4724e5==null)return;const {unitId:_0x4da017,redoState:_0x477cd9,commandId:_0x58206c}=_0x4724e5;if(_0x4da017!==this[_0x23b0ab(0x427)])return;const _0x390c3e={'id':_0x58206c,'type':_0x19c41e['MUTATION'],'params':{'unitId':_0x4da017,'actions':_0x477cd9[_0x23b0ab(0x3e1)],'textRanges':null}};this[_0x23b0ab(0x2ab)](_0x390c3e);}),_0x4597e0;}};Tt=Wt([p(0x3,_0x370f8c(_0x595e81)),p(0x4,_0x370f8c(w)),p(0x5,_0x370f8c(_0x4517e4)),p(0x6,_0x370f8c(_0x2673bf)),p(0x7,_0x370f8c(_0x4a413b)),p(0x8,_0x370f8c(_0x4b5fef)),p(0x9,_0x370f8c(Ye)),p(0xa,_0x370f8c(Xe)),p(0xb,_0x370f8c(Ft)),p(0xc,_0x593f47),p(0xd,_0x225d18),p(0xe,_0x3aa03b),p(0xf,_0x2f69f2),p(0x10,_0x2fd677(tt))],Tt);let Rt=class extends qe{constructor(_0x2754cc,_0x1bee40,_0x693f8e,_0x17cebe,_0x15bc80,_0x32e088,_0x4b8121,_0x5eff60,_0x3fceb0,_0x2d7e37,_0x174f1c,_0x5bffd0,_0x9a4ad9,_0x541718){const _0x226da4=_0xf86c5a;super(_0x2754cc,_0x693f8e,_0x1bee40,_0x17cebe,_0x15bc80,_0x32e088,_0x4b8121,_0x5eff60,_0x2d7e37,_0x174f1c,_0x5bffd0,_0x9a4ad9,_0x541718),this[_0x226da4(0x427)]=_0x2754cc,this[_0x226da4(0x246)]=_0x1bee40,this[_0x226da4(0x16a)]=_0x3fceb0;}['_createHandler'](){const _0x328a9c=_0xf86c5a,_0x5538e0=super['_createHandler']();return _0x5538e0[_0x328a9c(0x1ed)]=_0x11f51f=>this['_sheetTransformSelectionsService'][_0x328a9c(0xfb)](_0x11f51f),_0x5538e0;}async['_init'](){const _0xbdf7d9=_0xf86c5a,_0x3c0da1=await super[_0xbdf7d9(0x30d)]();return this['disposeWithMe'](this[_0xbdf7d9(0x456)][_0xbdf7d9(0x2a8)]((_0x13f2d7,_0x333012)=>{const _0x4dc258=_0xbdf7d9;if(_0x13f2d7[_0x4dc258(0x246)]!==_0x19c41e[_0x4dc258(0x108)]||_0x333012!=null&&_0x333012['fromCollab']||_0x333012!=null&&_0x333012[_0x4dc258(0x10a)])return;const _0x385818=_0x13f2d7[_0x4dc258(0x2e1)];if((_0x385818==null?void 0x0:_0x385818['unitId'])!==this['unitID'])return;const _0x5a2b54=_0x13f2d7,_0x3f6054=this[_0x4dc258(0x245)]['interceptor']['fetchThroughInterceptors'](this[_0x4dc258(0x245)][_0x4dc258(0x2bd)][_0x4dc258(0x360)]()[_0x4dc258(0x1ba)])([_0x5a2b54],null)||[_0x5a2b54];this[_0x4dc258(0x2ab)](_0x3f6054[0x0]);})),_0x3c0da1;}};Rt=Wt([p(0x3,_0x370f8c(_0x595e81)),p(0x4,_0x370f8c(w)),p(0x5,_0x370f8c(_0x4517e4)),p(0x6,_0x370f8c(_0x2673bf)),p(0x7,_0x370f8c(_0x4a413b)),p(0x8,_0x370f8c(Ke)),p(0x9,_0x593f47),p(0xa,_0x225d18),p(0xb,_0x3aa03b),p(0xc,_0x2f69f2),p(0xd,_0x2fd677(tt))],Rt);var Or=Object[_0xf86c5a(0xfa)],Dr=Object[_0xf86c5a(0x397)],wr=(_0x5f724b,_0xa2a175,_0x3058c6,_0x1da961)=>{const _0x5c489f=_0xf86c5a;for(var _0x4bc51d=_0x1da961>0x1?void 0x0:_0x1da961?Dr(_0xa2a175,_0x3058c6):_0xa2a175,_0x603f6e=_0x5f724b[_0x5c489f(0x28c)]-0x1,_0x5dc622;_0x603f6e>=0x0;_0x603f6e--)(_0x5dc622=_0x5f724b[_0x603f6e])&&(_0x4bc51d=(_0x1da961?_0x5dc622(_0xa2a175,_0x3058c6,_0x4bc51d):_0x5dc622(_0x4bc51d))||_0x4bc51d);return _0x1da961&&_0x4bc51d&&Or(_0xa2a175,_0x3058c6,_0x4bc51d),_0x4bc51d;},_t=(_0x2620fc,_0x252e0d)=>(_0xc41d29,_0x482931)=>_0x252e0d(_0xc41d29,_0x482931,_0x2620fc);let Le=class extends _0x27d368{constructor(_0x82a155,_0x25e53d,_0x42c6dd){const _0x195964=_0xf86c5a;super(),l(this,_0x195964(0x330),new Map()),l(this,_0x195964(0x2d8),new _0x26d305()),(this[_0x195964(0x22b)]=_0x82a155,this['_collabSessionService']=_0x25e53d,this['_univerInstanceService']=_0x42c6dd,this[_0x195964(0x30d)]());}[_0xf86c5a(0x3ab)](){const _0x1b5054=_0xf86c5a;super[_0x1b5054(0x3ab)](),this[_0x1b5054(0x330)]['forEach'](_0xc3a29e=>_0xc3a29e[_0x1b5054(0x3ab)]()),this[_0x1b5054(0x330)][_0x1b5054(0x3e6)]();}[_0xf86c5a(0x299)](_0x206110){const _0x4464ff=_0xf86c5a;var _0x4fd932;return(_0x4fd932=this[_0x4464ff(0x330)]['get'](_0x206110))!=null?_0x4fd932:null;}[_0xf86c5a(0x277)](_0x55de67){const _0x1fb385=_0xf86c5a,_0x2b4412=this[_0x1fb385(0x299)](_0x55de67);return _0x2b4412?_0xfb2e43(_0x2b4412):this['_entityInit$'][_0x1fb385(0x268)](_0x152a98(_0x18014c=>_0x18014c[_0x1fb385(0x427)]===_0x55de67));}[_0xf86c5a(0x30d)](){const _0x514647=_0xf86c5a;this[_0x514647(0x358)][_0x514647(0x3a6)](_0x751d23['UNIVER_SHEET'])[_0x514647(0x268)](_0x14bd7d(this[_0x514647(0x39d)]),_0x48f138(0x10))['subscribe'](async _0x206342=>{const _0x58b736=_0x514647,_0x153094=_0x206342[_0x58b736(0x23e)](),_0x33d38b=await this[_0x58b736(0x404)](_0x153094,k[_0x58b736(0x1af)]);this['_entities']['set'](_0x153094,_0x33d38b);}),this[_0x514647(0x358)][_0x514647(0x3a6)](_0x751d23[_0x514647(0x320)])[_0x514647(0x268)](_0x14bd7d(this[_0x514647(0x39d)]),_0x48f138(0x10))['pipe'](_0x152a98(_0x48fba1=>!_0x48fba1[_0x514647(0x23e)]()[_0x514647(0x21a)]('__')))[_0x514647(0x1c3)](async _0x22c3c1=>{const _0x4ce627=_0x514647,_0x185163=_0x22c3c1[_0x4ce627(0x23e)](),_0x5e01c7=await this[_0x4ce627(0x404)](_0x185163,k[_0x4ce627(0x320)]);this[_0x4ce627(0x330)][_0x4ce627(0x2be)](_0x185163,_0x5e01c7);}),_0x20e120(this[_0x514647(0x358)][_0x514647(0x1f6)](_0x751d23[_0x514647(0x1af)]),this[_0x514647(0x358)]['getTypeOfUnitDisposed$'](_0x751d23[_0x514647(0x320)]))[_0x514647(0x268)](_0x14bd7d(this[_0x514647(0x39d)]))['subscribe'](_0x507eef=>{const _0x5b68a7=_0x514647,_0x3b9f4e=_0x507eef[_0x5b68a7(0x23e)](),_0x456165=this['_entities'][_0x5b68a7(0x175)](_0x3b9f4e);_0x456165&&(_0x456165[_0x5b68a7(0x3ab)](),this[_0x5b68a7(0x330)]['delete'](_0x3b9f4e));});}async['_startCollaboration'](_0x5f14c3,_0x5019cc){const _0x5a8eb6=_0xf86c5a,_0x20a402=await this[_0x5a8eb6(0x2f1)][_0x5a8eb6(0x13d)](_0x5f14c3),_0x1268e2=this[_0x5a8eb6(0x22b)]['createInstance'](this['_getCtorByUniverType'](_0x5019cc),_0x5f14c3,_0x5019cc,_0x20a402);return await _0x1268e2[_0x5a8eb6(0x18f)](),this['_entityInit$'][_0x5a8eb6(0x23f)](_0x1268e2),_0x1268e2;}['_getCtorByUniverType'](_0x2ff004){const _0x3e880f=_0xf86c5a;switch(_0x2ff004){case k[_0x3e880f(0x320)]:return Tt;case k[_0x3e880f(0x1af)]:return Rt;default:throw new Error(_0x3e880f(0x3b2)+_0x2ff004);}}};Le=wr([_t(0x0,_0x370f8c(_0x595e81)),_t(0x1,_0x370f8c(he)),_t(0x2,_0x5edd3d)],Le);const fs=[_0xf86c5a(0x442),_0xf86c5a(0x274),_0xf86c5a(0x1b3),_0xf86c5a(0x380),_0xf86c5a(0x225),_0xf86c5a(0x236)];class Gt extends _0x4091c9{constructor(){const _0x280ec9=_0xf86c5a;super(...arguments),l(this,_0x280ec9(0x25a),new Map()),l(this,_0x280ec9(0x264),0x0);}[_0xf86c5a(0x31e)](_0x4876db){const _0xcc5e2e=_0xf86c5a;if(this[_0xcc5e2e(0x25a)]['has'](_0x4876db))return this[_0xcc5e2e(0x25a)][_0xcc5e2e(0x175)](_0x4876db);const _0x504884=fs[this[_0xcc5e2e(0x264)]];return this['_colorIndex']=(this[_0xcc5e2e(0x264)]+0x1)%fs[_0xcc5e2e(0x28c)],this[_0xcc5e2e(0x25a)][_0xcc5e2e(0x2be)](_0x4876db,_0x504884),_0x504884;}}var Pr=Object['defineProperty'],yr=Object[_0xf86c5a(0x397)],Ur=(_0x57569a,_0x158b76,_0x33b794,_0x56c0a9)=>{for(var _0x2630c9=_0x56c0a9>0x1?void 0x0:_0x56c0a9?yr(_0x158b76,_0x33b794):_0x158b76,_0x4c5248=_0x57569a['length']-0x1,_0x39d9ae;_0x4c5248>=0x0;_0x4c5248--)(_0x39d9ae=_0x57569a[_0x4c5248])&&(_0x2630c9=(_0x56c0a9?_0x39d9ae(_0x158b76,_0x33b794,_0x2630c9):_0x39d9ae(_0x2630c9))||_0x2630c9);return _0x56c0a9&&_0x2630c9&&Pr(_0x158b76,_0x33b794,_0x2630c9),_0x2630c9;},ie=(_0x377a4b,_0x5bfc85)=>(_0x3f62e,_0x5006ae)=>_0x5bfc85(_0x3f62e,_0x5006ae,_0x377a4b);const Nr=0x12c,Mr=0x64;let Ot=class extends _0x27d368{constructor(_0x461b41,_0x47f68f,_0x346311,_0x28584e,_0x162029,_0x28d002,_0x2da38b,_0x13f44a,_0x19e673){const _0x16666b=_0xf86c5a;super(),l(this,_0x16666b(0x198),!0x1),l(this,_0x16666b(0x30d),!0x1),l(this,_0x16666b(0x331),new _0x52cf76(new Map())),l(this,_0x16666b(0x318),this[_0x16666b(0x331)][_0x16666b(0x377)]()),l(this,_0x16666b(0x14e),new _0x52cf76([])),l(this,'roomMembers$',this[_0x16666b(0x14e)][_0x16666b(0x268)](_0x431a9a(Nr))),l(this,_0x16666b(0x31c),_0x3e7548(_0x41c068=>{const _0x577b0b=_0x16666b,_0xdf0d2c={'eventID':_0x455562[_0x577b0b(0x3d2)],'data':{'unitID':this[_0x577b0b(0x427)],'memberID':this[_0x577b0b(0x292)][_0x577b0b(0x369)](),'selection':Fs(_0x41c068)}};this[_0x577b0b(0x292)]['send'](_0xdf0d2c,this[_0x577b0b(0x427)]);},Mr)),(this[_0x16666b(0x427)]=_0x461b41,this['_session']=_0x47f68f,this[_0x16666b(0x22b)]=_0x346311,this['_colorAssignService']=_0x28584e,this[_0x16666b(0x34f)]=_0x162029,this[_0x16666b(0x189)]=_0x28d002,this[_0x16666b(0x235)]=_0x2da38b,this['_univerInstanceService']=_0x13f44a,this[_0x16666b(0x456)]=_0x19e673);}get[_0xf86c5a(0x168)](){const _0x594f7c=_0xf86c5a;return this[_0x594f7c(0x331)][_0x594f7c(0x40f)]();}get[_0xf86c5a(0x116)](){const _0x537029=_0xf86c5a;return this[_0x537029(0x14e)][_0x537029(0x40f)]();}['dispose'](){const _0x17b29c=_0xf86c5a;super[_0x17b29c(0x3ab)](),this['_cursorInfo$']['next'](new Map()),this[_0x17b29c(0x331)]['complete'](),this[_0x17b29c(0x14e)][_0x17b29c(0x23f)]([]),this[_0x17b29c(0x14e)][_0x17b29c(0x307)]();}[_0xf86c5a(0x18f)](){const _0x1f96e4=_0xf86c5a;this[_0x1f96e4(0x30d)]||(this['_init']=!0x0,this[_0x1f96e4(0x292)][_0x1f96e4(0xf6)][_0x1f96e4(0x268)](_0x14bd7d(this[_0x1f96e4(0x39d)]))[_0x1f96e4(0x1c3)](_0x1aae9d=>{const _0x3cef14=_0x1f96e4;_0x1aae9d===Y['ONLINE']?this['_toggleOnline']():this[_0x3cef14(0x1a1)]();}),this[_0x1f96e4(0x292)][_0x1f96e4(0x3b1)]['pipe'](_0x14bd7d(this[_0x1f96e4(0x39d)]))[_0x1f96e4(0x1c3)](_0x224476=>{const _0x49f698=_0x1f96e4,_0x1b5bc8=_0x224476['eventID'];_0x1b5bc8===_0x455562[_0x49f698(0x3d2)]&&this[_0x49f698(0x256)](_0x224476),_0x1b5bc8===_0x455562[_0x49f698(0x1f4)]&&this[_0x49f698(0x2b9)](_0x224476);}),this[_0x1f96e4(0x177)](this[_0x1f96e4(0x456)]['onCommandExecuted'](_0x41fdb4=>{const _0x38577f=_0x1f96e4,_0x4ee0a5=_0x41fdb4[_0x38577f(0x2e1)];_0x4ee0a5!=null&&this[_0x38577f(0x198)]&&_0x41fdb4['id']===_0x17ed1c['id']&&_0x4ee0a5[_0x38577f(0x25d)]===this[_0x38577f(0x427)]&&_0x4ee0a5[_0x38577f(0x1eb)]===!0x1&&this[_0x38577f(0x31c)](_0x4ee0a5[_0x38577f(0x2c6)]);})),this[_0x1f96e4(0x189)][_0x1f96e4(0x1bd)]['pipe'](_0x14bd7d(this[_0x1f96e4(0x39d)]))['subscribe'](_0x37c413=>{const _0x4e47c0=_0x1f96e4;if((_0x37c413==null?void 0x0:_0x37c413[_0x4e47c0(0x427)])!==this[_0x4e47c0(0x427)])return;const _0x4ec61f={'eventID':_0x455562['UPDATE_CURSOR'],'data':_0x37c413};this[_0x4e47c0(0x256)](_0x4ec61f);}),this['disposeWithMe'](this[_0x1f96e4(0x456)][_0x1f96e4(0x2a8)](_0x273c71=>{const _0x427687=_0x1f96e4;if(_0x273c71[_0x427687(0x2e1)]==null)return;const _0xb4a1c=_0x273c71[_0x427687(0x2e1)];if(_0x273c71['id']!==_0x21b448['id']||_0xb4a1c[_0x427687(0x25d)]!==this[_0x427687(0x427)])return;const _0x49d319={'id':_0x427687(0x27d),'params':_0xb4a1c},_0x49dab2=this[_0x427687(0x168)];for(const [_0x485b59,_0x1e0dee]of _0x49dab2){const _0x2f470f={'id':_0x427687(0x27d),'params':{'unitId':this[_0x427687(0x427)],'actions':null,'textRanges':_0x1e0dee[_0x427687(0x2c6)]}},_0x125f46=this[_0x427687(0x235)][_0x427687(0x11e)](_0x49d319,_0x2f470f,!0x1);if(_0x3e8650(_0x125f46))throw _0x125f46[_0x427687(0x3a5)];_0x49dab2[_0x427687(0x2be)](_0x485b59,{..._0x1e0dee,'ranges':_0x125f46[_0x427687(0x3bb)][_0x427687(0x2e1)][_0x427687(0x2f4)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x49dab2);});})));}['_onCursorUpdate'](_0x3132cb){const _0x2a954d=_0xf86c5a;var _0x4a8c91,_0x27f48d;const {memberID:_0xa9c4db,selection:_0x93d1fa}=_0x3132cb[_0x2a954d(0x129)],_0x551174=mr(_0x93d1fa),_0x4b7d02=(_0x27f48d=(_0x4a8c91=this[_0x2a954d(0x34f)][_0x2a954d(0x191)](this[_0x2a954d(0x427)],_0xa9c4db))==null?void 0x0:_0x4a8c91[_0x2a954d(0x11f)])!=null?_0x27f48d:_0x2a954d(0x2c7),_0x3f2125={'color':this[_0x2a954d(0x3dc)][_0x2a954d(0x31e)](_0xa9c4db),'name':_0x4b7d02,'ranges':_0x551174},_0x54f134=this[_0x2a954d(0x168)];_0x54f134['set'](_0xa9c4db,_0x3f2125),this[_0x2a954d(0x331)][_0x2a954d(0x23f)](_0x54f134);}[_0xf86c5a(0x2b9)](_0x511f4d){const _0x3841fe=_0xf86c5a,{memberID:_0x5bd7da}=_0x511f4d[_0x3841fe(0x129)],_0x1f9907=this[_0x3841fe(0x168)];_0x1f9907['delete'](_0x5bd7da),this['_cursorInfo$']['next'](_0x1f9907);}[_0xf86c5a(0x2f6)](){const _0x3233df=_0xf86c5a;var _0x2e2308;if(this[_0x3233df(0x198)]=!0x0,((_0x2e2308=this[_0x3233df(0x358)][_0x3233df(0x263)]())==null?void 0x0:_0x2e2308[_0x3233df(0x23e)]())!==this[_0x3233df(0x427)])return;const _0xde9c95=this[_0x3233df(0x22b)][_0x3233df(0x175)](_0x4562e0)[_0x3233df(0x2c9)]();Array[_0x3233df(0x453)](_0xde9c95)&&_0xde9c95['length']>0x0&&this[_0x3233df(0x31c)](_0xde9c95);}['_toggleOffline'](){this['_online']=!0x1;}};Ot=Ur([ie(0x2,_0x370f8c(_0x595e81)),ie(0x3,_0x370f8c(Gt)),ie(0x4,_0x370f8c(ce)),ie(0x5,_0x370f8c(Ft)),ie(0x6,_0x285caf),ie(0x7,_0x5edd3d),ie(0x8,_0x225d18)],Ot);var Ar=Object['defineProperty'],Lr=Object[_0xf86c5a(0x397)],$r=(_0x3a579c,_0x35d020,_0x474ccb,_0x5705a3)=>{for(var _0x5c4da4=_0x5705a3>0x1?void 0x0:_0x5705a3?Lr(_0x35d020,_0x474ccb):_0x35d020,_0x5b6bd6=_0x3a579c['length']-0x1,_0x28da92;_0x5b6bd6>=0x0;_0x5b6bd6--)(_0x28da92=_0x3a579c[_0x5b6bd6])&&(_0x5c4da4=(_0x5705a3?_0x28da92(_0x35d020,_0x474ccb,_0x5c4da4):_0x28da92(_0x5c4da4))||_0x5c4da4);return _0x5705a3&&_0x5c4da4&&Ar(_0x35d020,_0x474ccb,_0x5c4da4),_0x5c4da4;},me=(_0x21856c,_0x3cfb03)=>(_0x4c1284,_0x3b1cf4)=>_0x3cfb03(_0x4c1284,_0x3b1cf4,_0x21856c);const jr=0x12c,xr=0x64,Hr=()=>{let _0x598883=[],_0x619a15=!0x1;return _0x45f0c3=>{const _0x41f2c1=_0x556d;_0x598883[_0x41f2c1(0x106)](_0x45f0c3),_0x619a15||(_0x619a15=!0x0,setTimeout(()=>{const _0x4ce93b=_0x41f2c1;_0x598883[_0x4ce93b(0x26c)](_0x2a236c=>_0x2a236c()),_0x598883=[],_0x619a15=!0x1;}));};};let Dt=class extends _0x27d368{constructor(_0x22e340,_0x5dfa35,_0x9f104f,_0x1c3f3a,_0x22145b,_0x297c69,_0x256dae,_0x1900b5){const _0x5c857a=_0xf86c5a;super(),l(this,_0x5c857a(0x198),!0x1),l(this,'_init',!0x1),l(this,_0x5c857a(0x331),new _0x52cf76(new Map())),l(this,_0x5c857a(0x318),this[_0x5c857a(0x331)][_0x5c857a(0x377)]()),l(this,'_roomMembers$',new _0x52cf76([])),l(this,_0x5c857a(0x228),this[_0x5c857a(0x14e)][_0x5c857a(0x268)](_0x431a9a(jr))),l(this,'_updateLocalCursor',_0x3e7548((_0x22925b,_0x1d350e)=>{const _0x2c9edd=_0x5c857a,_0x551df3={'eventID':_0x455562['UPDATE_CURSOR'],'data':{'unitID':this[_0x2c9edd(0x427)],'memberID':this[_0x2c9edd(0x292)][_0x2c9edd(0x369)](),'selection':_0x57d531(_0x22925b,_0x1d350e[_0x2c9edd(0x420)])}};this['_session'][_0x2c9edd(0x100)](_0x551df3,this[_0x2c9edd(0x427)]);},xr)),(this['unitID']=_0x22e340,this[_0x5c857a(0x292)]=_0x5dfa35,this['_injector']=_0x9f104f,this[_0x5c857a(0x3dc)]=_0x1c3f3a,this['_memberService']=_0x22145b,this[_0x5c857a(0x358)]=_0x297c69,this['_commandService']=_0x256dae,this[_0x5c857a(0x260)]=_0x1900b5);}get[_0xf86c5a(0x168)](){const _0x10c579=_0xf86c5a;return this['_cursorInfo$'][_0x10c579(0x40f)]();}get['roomMembers'](){const _0x47a8e2=_0xf86c5a;return this['_roomMembers$'][_0x47a8e2(0x40f)]();}['dispose'](){const _0x15f632=_0xf86c5a;super[_0x15f632(0x3ab)](),this[_0x15f632(0x331)][_0x15f632(0x23f)](new Map()),this['_cursorInfo$'][_0x15f632(0x307)](),this[_0x15f632(0x14e)]['next']([]),this['_roomMembers$'][_0x15f632(0x307)]();}['init'](){const _0x29b7d6=_0xf86c5a;this[_0x29b7d6(0x30d)]||(this[_0x29b7d6(0x30d)]=!0x0,this[_0x29b7d6(0x292)][_0x29b7d6(0xf6)][_0x29b7d6(0x268)](_0x14bd7d(this[_0x29b7d6(0x39d)]))[_0x29b7d6(0x1c3)](_0xd9572b=>{const _0x2daaad=_0x29b7d6;_0xd9572b===Y['ONLINE']?this[_0x2daaad(0x2f6)]():this[_0x2daaad(0x1a1)]();}),this[_0x29b7d6(0x292)][_0x29b7d6(0x3b1)][_0x29b7d6(0x268)](_0x14bd7d(this['dispose$']))['subscribe'](_0x5ee16c=>{const _0x59bcbb=_0x29b7d6,_0x38447c=_0x5ee16c[_0x59bcbb(0x26e)];_0x38447c===_0x455562[_0x59bcbb(0x3d2)]&&this[_0x59bcbb(0x256)](_0x5ee16c),_0x38447c===_0x455562[_0x59bcbb(0x1f4)]&&this[_0x59bcbb(0x2b9)](_0x5ee16c);}),this[_0x29b7d6(0x41a)](),this[_0x29b7d6(0x177)](this[_0x29b7d6(0x456)][_0x29b7d6(0x2a8)](_0x2c9766=>{const _0x36fb5a=_0x29b7d6;if(this[_0x36fb5a(0x198)]&&_0x2c9766['id']===_0x2113e6['id']&&_0x2c9766[_0x36fb5a(0x2e1)][_0x36fb5a(0x25d)]===this[_0x36fb5a(0x427)]){const _0x3b27cb=_0x2c9766[_0x36fb5a(0x2e1)];this[_0x36fb5a(0x31c)](_0x3b27cb['subUnitId'],_0x3b27cb[_0x36fb5a(0x201)][0x0]);}})));}[_0xf86c5a(0x256)](_0x441d33){const _0x19babc=_0xf86c5a;var _0x59f033,_0x50f128;const {memberID:_0x47784a,selection:_0x5e6c03}=_0x441d33['data'],{sheetName:_0x2378c1,range:_0x5179a3}=_0x131128(_0x5e6c03),_0x1dbee0={'name':(_0x50f128=(_0x59f033=this[_0x19babc(0x34f)]['getMember'](this[_0x19babc(0x427)],_0x47784a))==null?void 0x0:_0x59f033[_0x19babc(0x11f)])!=null?_0x50f128:_0x19babc(0x2c7),'range':this[_0x19babc(0x213)](_0x2378c1,_0x5179a3),'sheetID':_0x2378c1,'color':this[_0x19babc(0x3dc)][_0x19babc(0x31e)](_0x47784a),'selection':_0x5e6c03},_0x3d4719=this[_0x19babc(0x168)];_0x3d4719[_0x19babc(0x2be)](_0x47784a,_0x1dbee0),this['_cursorInfo$']['next'](_0x3d4719);}[_0xf86c5a(0x2b9)](_0x493cc9){const _0x17e16e=_0xf86c5a,{memberID:_0x1110fc}=_0x493cc9[_0x17e16e(0x129)],_0xee8242=this['cursorInfo'];_0xee8242[_0x17e16e(0x107)](_0x1110fc),this[_0x17e16e(0x331)][_0x17e16e(0x23f)](_0xee8242);}[_0xf86c5a(0x213)](_0x4a2ba9,_0x24c560){const _0x25b44e=_0xf86c5a;var _0x4f9fd9,_0x5474a9;const _0x11f39b=(_0x5474a9=(_0x4f9fd9=this[_0x25b44e(0x358)]['getUniverSheetInstance'](this[_0x25b44e(0x427)]))==null?void 0x0:_0x4f9fd9[_0x25b44e(0x145)](_0x4a2ba9))==null?void 0x0:_0x5474a9['getMergeData']();return(_0x11f39b==null?void 0x0:_0x11f39b[_0x25b44e(0x179)](_0x46bd13=>_0x426027[_0x25b44e(0x449)](_0x46bd13,_0x24c560)))||_0x24c560;}[_0xf86c5a(0x41a)](){const _0x86d3be=_0xf86c5a,_0x1c4f40=new _0x58abb8(),_0x107982=Hr(),_0x3681c4=()=>{const _0x28ba96=_0x556d;_0x1c4f40[_0x28ba96(0x3ab)]();const _0x21cba9=(_0x254a3e,_0xfbfb17,_0x1192b6,_0x4dffdc)=>{const _0x409f75=_0x28ba96;let _0x5f56bb=[];switch(_0x254a3e['id']){case _0x55e87d[_0x409f75(0x2c4)]:{_0x5f56bb=_0x59ccd8(_0x254a3e,_0x4dffdc);break;}case _0x55e87d[_0x409f75(0x27e)]:{_0x5f56bb=_0x4abff6(_0x254a3e,_0x4dffdc);break;}case _0x55e87d[_0x409f75(0x324)]:{_0x5f56bb=_0x495110(_0x254a3e,_0x4dffdc);break;}case _0x55e87d['InsertRangeMoveDownCommandId']:{_0x5f56bb=_0x5f07f7(_0x254a3e,_0x4dffdc);break;}case _0x55e87d[_0x409f75(0x1fa)]:{_0x5f56bb=_0x387247(_0x254a3e,_0x4dffdc);break;}case _0x55e87d['InsertRowCommandId']:{_0x5f56bb=_0x50739d(_0x254a3e,_0x4dffdc);break;}case _0x55e87d[_0x409f75(0x422)]:{_0x5f56bb=_0x235916(_0x254a3e,_0x4dffdc);break;}case _0x55e87d['RemoveColCommandId']:{_0x5f56bb=_0x4a0d66(_0x254a3e,_0x4dffdc);break;}case _0x55e87d[_0x409f75(0x10d)]:{_0x5f56bb=_0x27df45(_0x254a3e,_0x4dffdc);break;}}const _0x2c9546=_0x3a1e73(_0x5f56bb,_0x4dffdc),_0x59a5f9=this['cursorInfo'][_0x409f75(0x175)](_0xfbfb17);if(_0x59a5f9&&_0x2c9546){const _0x312cc3={..._0x59a5f9,'range':_0x2c9546};this[_0x409f75(0x168)][_0x409f75(0x2be)](_0xfbfb17,_0x312cc3),_0x107982(()=>{const _0x17451d=_0x409f75,_0x225a40=this[_0x17451d(0x260)]['registerRefRange'](_0x2c9546,_0x3a4798=>(_0x225a40[_0x17451d(0x3ab)](),_0x21cba9(_0x3a4798,_0xfbfb17,_0x1192b6,_0x2c9546)));_0x1c4f40['add'](_0x225a40);});}return{'redos':[],'undos':[]};};this[_0x28ba96(0x168)][_0x28ba96(0x26c)]((_0x3f0a37,_0x1ecf9e)=>{const _0x3910a6=_0x28ba96,{range:_0x25488f,sheetID:_0x38452a}=_0x3f0a37,_0x3201e9=this[_0x3910a6(0x260)][_0x3910a6(0x2db)](_0x25488f,_0x24ca0e=>(_0x3201e9['dispose'](),_0x21cba9(_0x24ca0e,_0x1ecf9e,_0x38452a,_0x25488f)));_0x1c4f40[_0x3910a6(0x1e9)](_0x3201e9);});};this[_0x86d3be(0x177)](_0x441a7c(this[_0x86d3be(0x331)][_0x86d3be(0x1c3)](()=>{_0x3681c4();})));}['_toggleOnline'](){const _0x4d9043=_0xf86c5a;var _0x29c131,_0x3874b8;if(this[_0x4d9043(0x198)]=!0x0,((_0x29c131=this[_0x4d9043(0x358)]['getFocusedUnit']())==null?void 0x0:_0x29c131[_0x4d9043(0x23e)]())!==this[_0x4d9043(0x427)])return;const _0x19000c=(_0x3874b8=this['_injector'][_0x4d9043(0x175)](_0x48f502)[_0x4d9043(0x2ac)]())==null?void 0x0:_0x3874b8[0x0],_0x5ec71e=this['_univerInstanceService'][_0x4d9043(0x372)](_0x751d23['UNIVER_SHEET'])[_0x4d9043(0x204)]();_0x19000c&&_0x5ec71e&&this['_updateLocalCursor'](_0x5ec71e[_0x4d9043(0x300)](),_0x19000c);}[_0xf86c5a(0x1a1)](){this['_online']=!0x1;}};Dt=$r([me(0x2,_0x370f8c(_0x595e81)),me(0x3,_0x370f8c(Gt)),me(0x4,_0x370f8c(ce)),me(0x5,_0x5edd3d),me(0x6,_0x225d18),me(0x7,_0x370f8c(_0x3cfe14))],Dt);var kr=Object[_0xf86c5a(0xfa)],Br=Object['getOwnPropertyDescriptor'],Vr=(_0x9ca813,_0x48f95e,_0x15389a,_0x17a25c)=>{const _0x5ee03a=_0xf86c5a;for(var _0x93d247=_0x17a25c>0x1?void 0x0:_0x17a25c?Br(_0x48f95e,_0x15389a):_0x48f95e,_0x136638=_0x9ca813[_0x5ee03a(0x28c)]-0x1,_0x4ce002;_0x136638>=0x0;_0x136638--)(_0x4ce002=_0x9ca813[_0x136638])&&(_0x93d247=(_0x17a25c?_0x4ce002(_0x48f95e,_0x15389a,_0x93d247):_0x4ce002(_0x93d247))||_0x93d247);return _0x17a25c&&_0x93d247&&kr(_0x48f95e,_0x15389a,_0x93d247),_0x93d247;},ut=(_0x31a9d3,_0x39c101)=>(_0xf5e21b,_0x573315)=>_0x39c101(_0xf5e21b,_0x573315,_0x31a9d3);let ve=class extends _0x27d368{constructor(_0x5ded17,_0x50c94e,_0xd3a985){const _0x3d4236=_0xf86c5a;super(),l(this,'_entities',new Map()),l(this,_0x3d4236(0x2d8),new _0x26d305()),(this['_univerInstanceService']=_0x5ded17,this[_0x3d4236(0x22b)]=_0x50c94e,this[_0x3d4236(0x2f1)]=_0xd3a985,this[_0x3d4236(0x30d)]());}['dispose'](){const _0x2a4df5=_0xf86c5a;super[_0x2a4df5(0x3ab)](),this[_0x2a4df5(0x2d8)][_0x2a4df5(0x307)](),this[_0x2a4df5(0x330)][_0x2a4df5(0x26c)](_0x1c92f9=>_0x1c92f9[_0x2a4df5(0x3ab)]());}[_0xf86c5a(0x44d)](_0x215b12){const _0xd8c952=_0xf86c5a;return this[_0xd8c952(0x330)]['has'](_0x215b12)?this[_0xd8c952(0x330)][_0xd8c952(0x175)](_0x215b12)[_0xd8c952(0x318)]:this['_entityInit$']['pipe'](_0x5d44ea(_0x48912e=>_0x48912e[_0xd8c952(0x427)]===_0x215b12),_0x4e5135(_0x2350e6=>_0x2350e6['cursorInfo$']));}[_0xf86c5a(0x30d)](){const _0x4ab05a=_0xf86c5a;this['_univerInstanceService'][_0x4ab05a(0x3a6)](_0x751d23[_0x4ab05a(0x1af)])[_0x4ab05a(0x268)](_0x14bd7d(this[_0x4ab05a(0x39d)]))[_0x4ab05a(0x1c3)](async _0x491944=>{const _0x3933c2=_0x4ab05a,_0xe5c4da=_0x491944[_0x3933c2(0x23e)](),_0x50a622=await this[_0x3933c2(0x41e)](_0xe5c4da);this[_0x3933c2(0x2d8)][_0x3933c2(0x23f)](_0x50a622),this[_0x3933c2(0x330)][_0x3933c2(0x2be)](_0xe5c4da,_0x50a622);}),this[_0x4ab05a(0x358)][_0x4ab05a(0x3a6)](_0x751d23[_0x4ab05a(0x320)])[_0x4ab05a(0x268)](_0x14bd7d(this[_0x4ab05a(0x39d)]))[_0x4ab05a(0x268)](_0x5d44ea(_0x3b8cb1=>!_0x3b8cb1[_0x4ab05a(0x23e)]()['startsWith']('__')))[_0x4ab05a(0x1c3)](async _0x1318b1=>{const _0x126c9c=_0x4ab05a,_0x2754f7=_0x1318b1[_0x126c9c(0x23e)](),_0x656a5f=await this[_0x126c9c(0x399)](_0x2754f7);this[_0x126c9c(0x2d8)]['next'](_0x656a5f),this['_entities'][_0x126c9c(0x2be)](_0x2754f7,_0x656a5f);}),_0x20e120(this['_univerInstanceService'][_0x4ab05a(0x1f6)](_0x751d23[_0x4ab05a(0x320)]),this[_0x4ab05a(0x358)][_0x4ab05a(0x1f6)](_0x751d23[_0x4ab05a(0x1af)]))['pipe'](_0x14bd7d(this['dispose$']))[_0x4ab05a(0x1c3)](_0x129faf=>{const _0x17ec22=_0x4ab05a,_0x4a1c62=_0x129faf[_0x17ec22(0x23e)](),_0x54dd95=this['_entities'][_0x17ec22(0x175)](_0x4a1c62);_0x54dd95&&(_0x54dd95['dispose'](),this['_entities'][_0x17ec22(0x107)](_0x4a1c62));});}async[_0xf86c5a(0x41e)](_0x6e083){const _0x2b446d=_0xf86c5a,_0x1b30f1=await this['_collabSessionService'][_0x2b446d(0x13d)](_0x6e083),_0xe67c3a=this[_0x2b446d(0x22b)][_0x2b446d(0x45e)](Dt,_0x6e083,_0x1b30f1);return _0xe67c3a[_0x2b446d(0x18f)](),_0xe67c3a;}async[_0xf86c5a(0x399)](_0x490835){const _0x651b7f=_0xf86c5a,_0x13403d=await this['_collabSessionService'][_0x651b7f(0x13d)](_0x490835),_0x2dc325=this[_0x651b7f(0x22b)][_0x651b7f(0x45e)](Ot,_0x490835,_0x13403d);return _0x2dc325[_0x651b7f(0x18f)](),_0x2dc325;}};ve=Vr([ut(0x0,_0x5edd3d),ut(0x1,_0x370f8c(_0x595e81)),ut(0x2,_0x370f8c(he))],ve);const $e=0x14,ms=0xc8,dt=0x4,Fr=0x5;function Wr(_0x219915,_0x102de5){const _0x1ba362=_0xf86c5a;let {radius:_0x2ef437,width:_0x74355a,height:_0x32eade}=_0x102de5;_0x2ef437=_0x2ef437!=null?_0x2ef437:0x0,_0x74355a=_0x74355a!=null?_0x74355a:0x1e,_0x32eade=_0x32eade!=null?_0x32eade:0x1e;let _0x4be6b9=0x0,_0x311970=0x0,_0xe67598=0x0;_0x4be6b9=_0x311970=_0xe67598=Math['min'](_0x2ef437,_0x74355a/0x2,_0x32eade/0x2),_0x219915[_0x1ba362(0x436)](),_0x219915[_0x1ba362(0x161)](_0x4be6b9,0x0),_0x219915[_0x1ba362(0x36c)](_0x74355a-_0x311970,0x0),_0x219915['arc'](_0x74355a-_0x311970,_0x311970,_0x311970,Math['PI']*0x3/0x2,0x0,!0x1),_0x219915[_0x1ba362(0x36c)](_0x74355a,_0x32eade-_0xe67598),_0x219915[_0x1ba362(0x2da)](_0x74355a-_0xe67598,_0x32eade-_0xe67598,_0xe67598,0x0,Math['PI']/0x2,!0x1),_0x219915[_0x1ba362(0x36c)](0x0,_0x32eade),_0x219915[_0x1ba362(0x36c)](0x0,_0x4be6b9),_0x219915[_0x1ba362(0x2da)](_0x4be6b9,_0x4be6b9,_0x4be6b9,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x219915[_0x1ba362(0x2b7)](),_0x102de5[_0x1ba362(0x16b)]&&(_0x219915[_0x1ba362(0x1f3)](),_0x219915[_0x1ba362(0x2bc)]=_0x102de5[_0x1ba362(0x16b)],_0x102de5[_0x1ba362(0x13c)]===_0x1ba362(0x45f)?_0x219915['fill'](_0x1ba362(0x45f)):_0x219915[_0x1ba362(0x16b)](),_0x219915[_0x1ba362(0x33c)]());}class st extends _0x167643{constructor(_0x303367,_0x196de9){const _0x9f9df2=_0xf86c5a;super(_0x303367,_0x196de9),l(this,_0x9f9df2(0x33f)),l(this,'text'),(this['color']=_0x196de9==null?void 0x0:_0x196de9[_0x9f9df2(0x33f)],this[_0x9f9df2(0x10c)]=_0x196de9==null?void 0x0:_0x196de9[_0x9f9df2(0x10c)]);}static[_0xf86c5a(0x43c)](_0x1d78df,_0x5d4c93){const _0x54fbb3=_0xf86c5a,{text:_0x183538,color:_0x4af762}=_0x5d4c93;_0x1d78df[_0x54fbb3(0x1f3)](),_0x1d78df[_0x54fbb3(0x17a)]=_0x54fbb3(0x29f);const _0x4fed7b=_0x1d78df[_0x54fbb3(0x15c)](_0x183538)['width'],_0x4f218c=Math[_0x54fbb3(0x394)](_0x4fed7b+0x2*dt,ms);Wr(_0x1d78df,{'height':$e,'radius':0x4,'width':_0x4f218c,'fill':_0x4af762,'evented':!0x1}),_0x1d78df[_0x54fbb3(0x2bc)]=_0x54fbb3(0x451);const _0x5c25ac=dt,_0x4b3125=$e-Fr,_0x3a8a0b=ms-0x2*dt;if(_0x4fed7b>_0x3a8a0b){let _0x41464b='',_0x36c9e4=0x0;for(const _0x3c820c of _0x183538){const _0x5c2e09=_0x1d78df[_0x54fbb3(0x15c)](_0x3c820c)['width'];if(_0x36c9e4+_0x5c2e09<=_0x3a8a0b-_0x1d78df[_0x54fbb3(0x15c)](_0x54fbb3(0x16c))['width'])_0x41464b+=_0x3c820c,_0x36c9e4+=_0x5c2e09;else{_0x41464b+=_0x54fbb3(0x16c);break;}}_0x1d78df['fillText'](_0x41464b,_0x5c25ac,_0x4b3125);}else _0x1d78df[_0x54fbb3(0x22f)](_0x183538,_0x5c25ac,_0x4b3125);_0x1d78df[_0x54fbb3(0x33c)]();}[_0xf86c5a(0xec)](_0x509101){st['drawWith'](_0x509101,this);}}const ft='collab-text-anchor-',Gr=_0xf86c5a(0x3bc),Yr='collab-rect-range-',we=0x6,Kr=1.5,mt=0x4,Xr=1.5,qr=_0xf86c5a(0xf5);class gs{constructor(_0x2b018c,_0x210e9e,_0x4b5c4c,_0x1f7b89){const _0x56ff25=_0xf86c5a;l(this,'_shapes',[]),l(this,_0x56ff25(0x240),null),l(this,_0x56ff25(0x431),null),l(this,_0x56ff25(0x2c3),null),l(this,_0x56ff25(0x14d),null),l(this,_0x56ff25(0x329),null),(this[_0x56ff25(0x425)]=_0x2b018c,this[_0x56ff25(0x242)]=_0x210e9e,this['_docSkeleton']=_0x4b5c4c,this[_0x56ff25(0x2c5)]=_0x1f7b89,this[_0x56ff25(0xe7)]());}set['_hover'](_0x851bdc){const _0x288782=_0xf86c5a;_0x851bdc?(this[_0x288782(0x2c3)]&&this[_0x288782(0x2c3)][_0x288782(0x2fe)](),this[_0x288782(0x431)]&&this['_textBubble'][_0x288782(0x265)]()):(this['_anchorDot']&&this['_anchorDot']['show'](),this[_0x288782(0x431)]&&this[_0x288782(0x431)]['hide']());}[_0xf86c5a(0x3ab)](){const _0x5da86b=_0xf86c5a;for(const _0x3ed3ba of this[_0x5da86b(0x10f)])_0x3ed3ba[_0x5da86b(0x3ab)]();this[_0x5da86b(0x431)]&&this[_0x5da86b(0x431)][_0x5da86b(0x3ab)](),this[_0x5da86b(0x2c3)]&&this[_0x5da86b(0x2c3)]['dispose'](),this[_0x5da86b(0x240)]&&this[_0x5da86b(0x240)][_0x5da86b(0x3ab)](),this[_0x5da86b(0x329)]&&this[_0x5da86b(0x329)]();}[_0xf86c5a(0xe7)](){const _0x469026=_0xf86c5a;var _0x1f5872;const {_docSkeleton:_0x47978a,_document:_0x78d9e0}=this,{color:_0x118042,name:_0x3b6ab8,ranges:_0x1ccc99}=this[_0x469026(0x425)],_0x3a79ed=_0x78d9e0[_0x469026(0x2f3)](),{docsLeft:_0x36385b,docsTop:_0x1de4c6}=_0x3a79ed,_0x29646e=new _0x3dcd36(_0x3a79ed,_0x47978a);for(const {startOffset:_0x40467e,endOffset:_0x2e4301,collapsed:_0x201799,isActive:_0x322220}of _0x1ccc99){const _0x5c4f49=_0x47978a[_0x469026(0x25c)](_0x40467e),_0x20b30f=_0x47978a['findNodePositionByCharIndex'](_0x2e4301);if(_0x322220){const {contentBoxPointGroup:_0x5741fd}=_0x29646e[_0x469026(0x3de)](_0x20b30f,_0x20b30f);if(_0x5741fd['length']===0x0)continue;this[_0x469026(0x1e3)](_0x118042,_0x5741fd,_0x36385b,_0x1de4c6,_0x3b6ab8),this['_eventUnsubscribe']=this[_0x469026(0x102)]();}if(!_0x201799&&_0x5c4f49&&_0x20b30f){if(_0x4fc5a4(_0x5c4f49,_0x20b30f)){const _0x26b189=new _0x241d4c(_0x3a79ed,_0x47978a),{pointGroup:_0x2eedc2}=(_0x1f5872=_0x26b189[_0x469026(0x3de)](_0x5c4f49,_0x20b30f))!=null?_0x1f5872:{};if(_0x2eedc2==null||_0x2eedc2[_0x469026(0x28c)]===0x0)continue;this[_0x469026(0x395)](_0x118042,_0x2eedc2,_0x36385b,_0x1de4c6);}else{const {contentBoxPointGroup:_0x37062d}=_0x29646e[_0x469026(0x3de)](_0x5c4f49,_0x20b30f);if(_0x37062d[_0x469026(0x28c)]===0x0)continue;this[_0x469026(0x2eb)](_0x118042,_0x37062d,_0x36385b,_0x1de4c6);}}}}[_0xf86c5a(0x1e3)](_0x15e2f6,_0x101cdb,_0x31f0ef,_0x449d5d,_0x2ed6da){const _0x222fb3=_0xf86c5a,_0x18039a=this[_0x222fb3(0xeb)](_0x101cdb),{left:_0x2686b0,top:_0x215b03,height:_0x4ee684}=_0x18039a,_0x2f1f8f=this[_0x222fb3(0x221)](),_0x3b6961=Xr/_0x2f1f8f,_0x43d02e=new _0x3fc8ee(ft+_0x48af3f['generateRandomId'](we),{'left':_0x2686b0+_0x31f0ef-_0x3b6961,'top':_0x215b03+_0x449d5d,'height':_0x4ee684,'width':Kr,'fill':_0x15e2f6||_0x5856f4(_0x520aaf[_0x222fb3(0x254)],0x0),'strokeWidth':_0x3b6961,'stroke':qr,'evented':!0x0});this['_anchor']=_0x43d02e,this[_0x222fb3(0x242)][_0x222fb3(0x279)](_0x43d02e,_0x3650e3);const _0x5110df=new _0x3fc8ee(ft+_0x48af3f[_0x222fb3(0x3a3)](we),{'left':_0x2686b0+_0x31f0ef-_0x3b6961,'top':_0x215b03+_0x449d5d-mt/0x2,'height':mt,'width':mt,'fill':_0x15e2f6||_0x5856f4(_0x520aaf[_0x222fb3(0x254)],0x0),'strokeWidth':0x0,'stroke':_0x15e2f6||_0x5856f4(_0x520aaf[_0x222fb3(0x254)],0x0),'evented':!0x1});this['_anchorDot']=_0x5110df,this[_0x222fb3(0x242)][_0x222fb3(0x279)](_0x5110df,_0x3650e3);const _0x1f0b8c=new st(ft+_0x48af3f[_0x222fb3(0x3a3)](we),{'left':_0x2686b0+_0x31f0ef-_0x3b6961,'top':_0x215b03+_0x449d5d-$e,'text':_0x2ed6da,'color':_0x15e2f6});this[_0x222fb3(0x431)]=_0x1f0b8c,this['_scene'][_0x222fb3(0x279)](_0x1f0b8c,_0x3650e3),this[_0x222fb3(0x2cf)]=!0x1;}['_handleHover'](){const _0x506845=_0xf86c5a,_0x329197=this['_anchor'][_0x506845(0x2d0)][_0x506845(0x400)](()=>{this['_hover']=!0x0;}),_0x55ff97=this[_0x506845(0x240)][_0x506845(0x2fa)]['subscribeEvent'](()=>{const _0x3de2ee=_0x506845;this[_0x3de2ee(0x14d)]&&clearTimeout(this[_0x3de2ee(0x14d)]),this[_0x3de2ee(0x14d)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1fb3e8=_0x506845;_0x329197[_0x1fb3e8(0x26d)](),_0x55ff97[_0x1fb3e8(0x26d)]();};}[_0xf86c5a(0x2eb)](_0x58f1ef,_0x17efe6,_0x495d33,_0x15830d){const _0xdd8a4a=_0xf86c5a,_0x5570c6=new _0x3afec0(_0x58f1ef)[_0xdd8a4a(0x392)](0.2)[_0xdd8a4a(0x2df)](),_0x247916=new _0x5f2724(Gr+_0x48af3f[_0xdd8a4a(0x3a3)](we),{'pointsGroup':_0x17efe6,'fill':_0x5570c6||_0x5856f4(_0x520aaf['black'],0.2),'left':_0x495d33,'top':_0x15830d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xdd8a4a(0x10f)][_0xdd8a4a(0x106)](_0x247916),this['_scene'][_0xdd8a4a(0x279)](_0x247916,_0x3650e3);}[_0xf86c5a(0x395)](_0x4dbfe2,_0x131341,_0x454ee4,_0x4794f4){const _0xb3bc29=_0xf86c5a,_0x1516e7=new _0x3afec0(_0x4dbfe2)[_0xb3bc29(0x392)](0.2)[_0xb3bc29(0x2df)](),_0x20eb37=new _0x5f2724(Yr+_0x48af3f[_0xb3bc29(0x3a3)](we),{'pointsGroup':_0x131341,'fill':_0x1516e7||_0x5856f4(_0x520aaf[_0xb3bc29(0x254)],0.2),'left':_0x454ee4,'top':_0x4794f4,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xb3bc29(0x106)](_0x20eb37),this[_0xb3bc29(0x242)]['addObject'](_0x20eb37,_0x3650e3);}[_0xf86c5a(0xeb)](_0x4ec20d){const _0xb43198=_0x4ec20d[0x0],_0x38e06b=_0xb43198[0x0],_0x1c6f91=_0xb43198[0x2],{x:_0x4fad88,y:_0x3e6ed9}=_0x38e06b,{x:_0x3c820a,y:_0x1a385f}=_0x1c6f91;return{'left':_0x4fad88,'top':_0x3e6ed9,'width':_0x3c820a-_0x4fad88,'height':_0x1a385f-_0x3e6ed9};}['_getScale'](){const _0x12956f=_0xf86c5a,{scaleX:_0x407b6e,scaleY:_0x4856d8}=this[_0x12956f(0x242)]['getAncestorScale']();return Math[_0x12956f(0x2ee)](_0x407b6e,_0x4856d8);}}var Jr=Object[_0xf86c5a(0xfa)],zr=Object[_0xf86c5a(0x397)],Zr=(_0x26d5ed,_0x5c726e,_0x139528,_0x5ca6e6)=>{const _0x5797e8=_0xf86c5a;for(var _0x314d1b=_0x5ca6e6>0x1?void 0x0:_0x5ca6e6?zr(_0x5c726e,_0x139528):_0x5c726e,_0x4689b7=_0x26d5ed[_0x5797e8(0x28c)]-0x1,_0x41a9f5;_0x4689b7>=0x0;_0x4689b7--)(_0x41a9f5=_0x26d5ed[_0x4689b7])&&(_0x314d1b=(_0x5ca6e6?_0x41a9f5(_0x5c726e,_0x139528,_0x314d1b):_0x41a9f5(_0x314d1b))||_0x314d1b);return _0x5ca6e6&&_0x314d1b&&Jr(_0x5c726e,_0x139528,_0x314d1b),_0x314d1b;},ke=(_0x54d4ba,_0x1bcd89)=>(_0x4fb6d5,_0xb93acc)=>_0x1bcd89(_0x4fb6d5,_0xb93acc,_0x54d4ba);let wt=class extends _0x27d368{constructor(_0x1e75c2,_0x5386b3,_0x246072,_0x359bf9,_0x4514e8){const _0xef945c=_0xf86c5a;super(),l(this,_0xef945c(0x1c0),[]),l(this,_0xef945c(0x1d5),[]),(this[_0xef945c(0x227)]=_0x1e75c2,this[_0xef945c(0x3a2)]=_0x5386b3,this[_0xef945c(0x1a8)]=_0x246072,this[_0xef945c(0x456)]=_0x359bf9,this[_0xef945c(0x2e5)]=_0x4514e8,this[_0xef945c(0x30d)]());}[_0xf86c5a(0x30d)](){const _0x1de2bf=_0xf86c5a,_0x40bbf7=this[_0x1de2bf(0x227)]['unitId'],_0x904392=this['_docSkeletonManagerService'];this[_0x1de2bf(0x177)](_0x382452([this[_0x1de2bf(0x1a8)][_0x1de2bf(0x44d)](_0x40bbf7),this[_0x1de2bf(0x2e5)][_0x1de2bf(0x412)]])['pipe'](_0x524dbf(([_0x1ec70a,_0x54df26])=>({'skeleton':_0x904392[_0x1de2bf(0x157)](),'cursors':[..._0x1ec70a['values']()][_0x1de2bf(0x303)](_0x3d66d3=>({..._0x3d66d3,'color':_0x54df26[_0x3d66d3[_0x1de2bf(0x33f)]]}))})))[_0x1de2bf(0x1c3)](_0xf650da=>{const _0x15d104=_0x1de2bf;if(this['_removeCollabCursors'](),_0xf650da){const {skeleton:_0x5984ea,cursors:_0x5d2ff9}=_0xf650da;this[_0x15d104(0x276)](_0x5984ea,_0x5d2ff9);}})),this[_0x1de2bf(0x3f7)](),this['_initCommandExecutedListener']();}[_0xf86c5a(0x276)](_0xab83,_0x19b28d){const _0x1a2e8d=_0xf86c5a,{scene:_0x48da81,mainComponent:_0x4ed878}=this[_0x1a2e8d(0x227)],_0x582e26=_0x19b28d[_0x1a2e8d(0x2c1)](_0x3adba2=>new gs(_0x3adba2,_0x48da81,_0xab83,_0x4ed878));this[_0x1a2e8d(0x1c0)]=_0x582e26,this[_0x1a2e8d(0x1d5)]=_0x19b28d;}['_refreshCollabCursors'](){const _0xd83110=_0xf86c5a;this[_0xd83110(0x3d9)]();const {scene:_0x113b32,mainComponent:_0x102f89}=this[_0xd83110(0x227)],_0x17e7a7=this[_0xd83110(0x3a2)][_0xd83110(0x157)](),_0x192b96=this[_0xd83110(0x1d5)][_0xd83110(0x2c1)](_0x457d72=>new gs(_0x457d72,_0x113b32,_0x17e7a7,_0x102f89));this[_0xd83110(0x1c0)]=_0x192b96;}['_removeCollabCursors'](){const _0x40f6c1=_0xf86c5a;this[_0x40f6c1(0x1c0)][_0x40f6c1(0x26c)](_0x4cc10d=>_0x4cc10d[_0x40f6c1(0x3ab)]()),this['_cursorShapes']=[];}[_0xf86c5a(0x3c5)](){const _0x10cfbb=_0xf86c5a,_0x59ed5a=[_0xbd22e5['id']];this[_0x10cfbb(0x177)](this[_0x10cfbb(0x456)]['onCommandExecuted'](_0x12e8af=>{const _0x5d5094=_0x10cfbb;_0x59ed5a[_0x5d5094(0x327)](_0x12e8af['id'])&&_0x12e8af[_0x5d5094(0x2e1)][_0x5d5094(0x25d)]===this[_0x5d5094(0x227)][_0x5d5094(0x25d)]&&this['_refreshCollabCursors']();}));}[_0xf86c5a(0x3f7)](){const _0x1da37a=_0xf86c5a;this[_0x1da37a(0x177)](_0x51fef5(this['_context'][_0x1da37a(0x325)][_0x1da37a(0x261)])['pipe'](_0x152a98(_0x4c1832=>_0x4c1832[_0x1da37a(0x246)]===_0x233e1a[_0x1da37a(0x134)]),_0x207ccd(0x10))[_0x1da37a(0x1c3)](()=>{const _0x5876ec=_0x1da37a;this[_0x5876ec(0x184)]();}));}};wt=Zr([ke(0x1,_0x370f8c(_0x3d6839)),ke(0x2,_0x370f8c(ve)),ke(0x3,_0x225d18),ke(0x4,_0x370f8c(_0x18d2f9))],wt);const Qr=0x1,eo=1.5;class to extends _0x167643{constructor(_0x296c06,_0x1b3500){const _0x1d15af=_0xf86c5a;super(_0x296c06,_0x1b3500),l(this,_0x1d15af(0x2d2)),l(this,_0x1d15af(0x3d7),!0x1),l(this,'_range'),l(this,_0x1d15af(0x2d6),''),l(this,'_labelPosition',_0x1d15af(0x209)),l(this,'_backgroundColor'),(_0x1b3500&&this[_0x1d15af(0x349)](_0x1b3500),this[_0x1d15af(0x2d0)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x1d15af(0x2fa)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0xf86c5a(0x349)](_0x16e20b){const _0x8cb3b8=_0xf86c5a;var _0x3b2ca8,_0x94d896,_0x2417e7,_0x4c115c,_0x2f9a40,_0x4e0615;this['_color']=(_0x3b2ca8=_0x16e20b[_0x8cb3b8(0x33f)])!=null?_0x3b2ca8:this[_0x8cb3b8(0x2d2)],this[_0x8cb3b8(0x3d7)]=(_0x94d896=_0x16e20b[_0x8cb3b8(0x366)])!=null?_0x94d896:this[_0x8cb3b8(0x3d7)],this[_0x8cb3b8(0x1e8)]=(_0x2417e7=_0x16e20b[_0x8cb3b8(0x420)])!=null?_0x2417e7:this[_0x8cb3b8(0x1e8)],this[_0x8cb3b8(0x2d6)]=(_0x4c115c=_0x16e20b[_0x8cb3b8(0x11f)])!=null?_0x4c115c:this['_name'],this['_labelPosition']=(_0x2f9a40=_0x16e20b[_0x8cb3b8(0x446)])!=null?_0x2f9a40:this[_0x8cb3b8(0x441)],this[_0x8cb3b8(0x283)]=(_0x4e0615=_0x16e20b['backgroundColor'])!=null?_0x4e0615:this['_backgroundColor'],this[_0x8cb3b8(0x348)]({'width':_0x16e20b[_0x8cb3b8(0x30e)],'height':_0x16e20b[_0x8cb3b8(0x1de)]});}[_0xf86c5a(0x3a0)](_0x3b3558){const _0x3b6185=_0xf86c5a,{row:_0x32092,column:_0x2c5e1a}=_0x3b3558;if(_0x32092>=this[_0x3b6185(0x1e8)]['startRow']&&_0x32092<=this[_0x3b6185(0x1e8)][_0x3b6185(0x291)]&&_0x2c5e1a>=this['_range'][_0x3b6185(0x1d6)]&&_0x2c5e1a<=this['_range']['endColumn']){this[_0x3b6185(0x349)]({'hovered':!0x0});return;}this[_0x3b6185(0x349)]({'hovered':!0x1});}[_0xf86c5a(0x193)](_0x3ee75e){return!0x1;}[_0xf86c5a(0xec)](_0x5c0da1){const _0x5261b3=_0xf86c5a;_0x3fc8ee['drawWith'](_0x5c0da1,{'width':this[_0x5261b3(0x30e)],'height':this['height'],'strokeWidth':eo,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5261b3(0x283)]}),this[_0x5261b3(0x3d7)]&&(_0x5c0da1[_0x5261b3(0x1f3)](),_0x5c0da1['transform'](0x1,0x0,0x0,0x1,this[_0x5261b3(0x30e)],this['_labelPosition']==='bottom'?0x0:-$e),st[_0x5261b3(0x43c)](_0x5c0da1,{'text':this[_0x5261b3(0x2d6)],'color':this['_color']}),_0x5c0da1[_0x5261b3(0x33c)]());}}var so=Object[_0xf86c5a(0xfa)],io=Object[_0xf86c5a(0x397)],no=(_0x3e1e85,_0x4501f6,_0x2cb05a,_0x296784)=>{const _0x589d6d=_0xf86c5a;for(var _0x2e3c08=_0x296784>0x1?void 0x0:_0x296784?io(_0x4501f6,_0x2cb05a):_0x4501f6,_0x4fe2e7=_0x3e1e85[_0x589d6d(0x28c)]-0x1,_0x5cc906;_0x4fe2e7>=0x0;_0x4fe2e7--)(_0x5cc906=_0x3e1e85[_0x4fe2e7])&&(_0x2e3c08=(_0x296784?_0x5cc906(_0x4501f6,_0x2cb05a,_0x2e3c08):_0x5cc906(_0x2e3c08))||_0x2e3c08);return _0x296784&&_0x2e3c08&&so(_0x4501f6,_0x2cb05a,_0x2e3c08),_0x2e3c08;},gt=(_0x4ca1f3,_0x4c4eb4)=>(_0x50fdbd,_0x22439b)=>_0x4c4eb4(_0x50fdbd,_0x22439b,_0x4ca1f3);const ro=0x1389;let Pt=class extends _0x27d368{constructor(_0x44aebe,_0x4b09c0,_0x17de70,_0x385b4f){const _0x3beec5=_0xf86c5a;super(),l(this,'_cursors',new Set()),l(this,_0x3beec5(0x173),null),(this[_0x3beec5(0x227)]=_0x44aebe,this[_0x3beec5(0x3ee)]=_0x4b09c0,this[_0x3beec5(0x1a8)]=_0x17de70,this[_0x3beec5(0x2e5)]=_0x385b4f,this[_0x3beec5(0x30d)]());}[_0xf86c5a(0x30d)](){const _0x355108=_0xf86c5a;this[_0x355108(0x3ee)]['currentSkeleton$'][_0x355108(0x268)](_0x1c351c(this[_0x355108(0x39d)]),_0x570e86(_0x5b7a7a=>{const _0x555f77=_0x355108;if(_0x5b7a7a){const _0x4509b7=_0x5b7a7a[_0x555f77(0x36b)];return _0x382452(this[_0x555f77(0x1a8)][_0x555f77(0x44d)](this['_context'][_0x555f77(0x25d)]),this['_themeService'][_0x555f77(0x412)])[_0x555f77(0x268)](_0x524dbf(([_0x2c88fb,_0x30c921])=>{const _0x562ad6=_0x555f77,_0x5319d5=new Map();return _0x2c88fb[_0x562ad6(0x26c)]((_0x4dbf95,_0x1d871b)=>{const _0x1fe43a=_0x562ad6;if(_0x4dbf95['sheetID']===_0x4509b7){const _0x548884={..._0x4dbf95};_0x548884[_0x1fe43a(0x33f)]=_0x30c921[_0x4dbf95[_0x1fe43a(0x33f)]],_0x5319d5['set'](_0x1d871b,_0x548884);}}),{'skeleton':_0x5b7a7a,'cursors':_0x5319d5};}));}return _0xfb2e43({'skeleton':null,'cursors':new Map()});}))[_0x355108(0x1c3)](({skeleton:_0x312622,cursors:_0x5318c8})=>{const _0xacdcde=_0x355108;this[_0xacdcde(0x3d9)](),_0x312622&&this[_0xacdcde(0x276)](_0x312622,_0x5318c8);}),this[_0x355108(0x3ee)]['currentSkeleton$'][_0x355108(0x1c3)](_0x13edd7=>{const _0x25fc1b=_0x355108;if(_0x13edd7==null)return;const {skeleton:_0x23c26a}=_0x13edd7,{scene:_0x42afaa}=this[_0x25fc1b(0x227)];_0x42afaa[_0x25fc1b(0x3e0)][_0x25fc1b(0x400)](_0x3e7548(_0x2b36cf=>{const _0x101e20=_0x25fc1b;var _0x281ebf,_0x722396;const {offsetX:_0x293417,offsetY:_0x2594b2}=_0x2b36cf,{x:_0x45c612,y:_0x419560}=_0x42afaa['getRelativeToViewportCoord'](_0x5207df[_0x101e20(0x2a9)]([_0x293417,_0x2594b2])),{scaleX:_0x1aa5b8,scaleY:_0x13a216}=_0x42afaa['getAncestorScale'](),_0x466e21=_0x42afaa[_0x101e20(0x2fb)](_0x3de08b['VIEW_MAIN']),_0x2a16ca=_0x42afaa[_0x101e20(0x128)](_0x5207df[_0x101e20(0x2a9)]([_0x45c612,_0x419560]),_0x466e21),_0xc1f85b=_0x23c26a['getCellPositionByOffset'](_0x293417,_0x2594b2,_0x1aa5b8,_0x13a216,_0x2a16ca);((_0x281ebf=this[_0x101e20(0x173)])==null?void 0x0:_0x281ebf[_0x101e20(0x437)])===_0xc1f85b[_0x101e20(0x437)]&&((_0x722396=this[_0x101e20(0x173)])==null?void 0x0:_0x722396['row'])===_0xc1f85b[_0x101e20(0x1cc)]||this[_0x101e20(0x1d5)][_0x101e20(0x26c)](_0x6fbe0a=>{const _0x2ae90d=_0x101e20;_0x6fbe0a[_0x2ae90d(0x3a0)](_0xc1f85b);});},0x64));});}['_updateCollabCursors'](_0xa74246,_0x4300b6){const _0x5a0c5a=_0xf86c5a;var _0x3679da;const _0x2e7ee9=(_0x3679da=this[_0x5a0c5a(0x3ee)][_0x5a0c5a(0x218)]())==null?void 0x0:_0x3679da['skeleton'];if(!_0x2e7ee9)return;const _0x570d4a=this['_getSheetObject']();if(!_0x570d4a)return;this[_0x5a0c5a(0x1d5)][_0x5a0c5a(0x26c)](_0x156911=>{const _0x375ef7=_0x5a0c5a;_0x156911[_0x375ef7(0x10b)]();});const {scene:_0x3a8c9d}=_0x570d4a,_0x42c249=oo(Array[_0x5a0c5a(0x37d)](_0x4300b6[_0x5a0c5a(0x119)]()))['map'](_0x91c5a2=>{const _0x534240=_0x5a0c5a,{color:_0x3ee5e9,range:_0x3a0f60,name:_0x34d44f,selection:_0x4807c1,sheetID:_0x3a6be1}=_0x91c5a2,{startColumn:_0xc06337,startRow:_0x56303e,endColumn:_0x352207,endRow:_0x37a06d}=_0x3a0f60,_0x29a5ef=_0x4bd0fa(_0x56303e,_0xc06337,_0x3a8c9d,_0x2e7ee9),_0x3f0d4b=_0x4bd0fa(_0x37a06d,_0x352207,_0x3a8c9d,_0x2e7ee9),{columnHeaderHeightAndMarginTop:_0x3d6116}=_0x2e7ee9,{startX:_0x414277,startY:_0x51bcb6}=_0x29a5ef,{endX:_0x439c74,endY:_0x30d09b}=_0x3f0d4b,_0x2ccbf8=_0x439c74-_0x414277,_0x558455=_0x30d09b-_0x51bcb6,_0x1bf89a={'labelPosition':_0x51bcb6-_0x3d6116>=$e?_0x534240(0x209):'bottom','sheetID':_0x3a6be1,'range':_0x3a0f60,'color':_0x3ee5e9,'name':_0x34d44f,'selection':_0x4807c1,'left':_0x414277,'top':_0x51bcb6,'width':_0x2ccbf8,'height':_0x558455,'evented':!0x1,'zIndex':ro};return new to(_0x34d44f,_0x1bf89a);});_0x3a8c9d[_0x5a0c5a(0x11d)](_0x42c249,Qr),this[_0x5a0c5a(0x1d5)]=new Set(_0x42c249);}[_0xf86c5a(0x3d9)](){const _0x3e639b=_0xf86c5a;var _0x11b7c7;(_0x11b7c7=this[_0x3e639b(0x1d5)])==null||_0x11b7c7['forEach'](_0xc304b2=>_0xc304b2[_0x3e639b(0x3ab)]());}[_0xf86c5a(0x1c6)](){const _0x5625e0=_0xf86c5a;return _0x4b698d(this['_context'][_0x5625e0(0x24a)],this[_0x5625e0(0x227)]);}};Pt=no([gt(0x1,_0x370f8c(_0x40b0bd)),gt(0x2,_0x370f8c(ve)),gt(0x3,_0x370f8c(_0x18d2f9))],Pt);function oo(_0x13c543){const _0x3b5eaf=_0xf86c5a,_0x35828e=new Map();return _0x13c543['forEach'](_0x5bc60e=>{const _0x441a11=_0x556d;if(_0x35828e[_0x441a11(0x1f5)](_0x5bc60e[_0x441a11(0x406)])){const _0x20e163=_0x35828e[_0x441a11(0x175)](_0x5bc60e['selection']);_0x20e163[_0x441a11(0x11f)]+=',\x20'+_0x5bc60e[_0x441a11(0x11f)];}else _0x35828e[_0x441a11(0x2be)](_0x5bc60e['selection'],_0x5bc60e);}),Array['from'](_0x35828e[_0x3b5eaf(0x119)]());}var N=function(){const _0x23bc13=_0xf86c5a;return N=Object['assign']||function(_0x2ba7f4){const _0xaf53eb=_0x556d;for(var _0x57d2f6,_0x29f77a=0x1,_0x40ad45=arguments[_0xaf53eb(0x28c)];_0x29f77a<_0x40ad45;_0x29f77a++){_0x57d2f6=arguments[_0x29f77a];for(var _0x3c21d5 in _0x57d2f6)Object[_0xaf53eb(0xf1)][_0xaf53eb(0x252)][_0xaf53eb(0x1ce)](_0x57d2f6,_0x3c21d5)&&(_0x2ba7f4[_0x3c21d5]=_0x57d2f6[_0x3c21d5]);}return _0x2ba7f4;},N[_0x23bc13(0x241)](this,arguments);},ao=function(_0x39d384,_0x1d45e6){const _0x31b523=_0xf86c5a;var _0x3f211b={};for(var _0x5893ec in _0x39d384)Object[_0x31b523(0xf1)][_0x31b523(0x252)][_0x31b523(0x1ce)](_0x39d384,_0x5893ec)&&_0x1d45e6[_0x31b523(0x2ed)](_0x5893ec)<0x0&&(_0x3f211b[_0x5893ec]=_0x39d384[_0x5893ec]);if(_0x39d384!=null&&typeof Object[_0x31b523(0x1bc)]==_0x31b523(0x1ad)){for(var _0x1be734=0x0,_0x5893ec=Object['getOwnPropertySymbols'](_0x39d384);_0x1be734<_0x5893ec[_0x31b523(0x28c)];_0x1be734++)_0x1d45e6[_0x31b523(0x2ed)](_0x5893ec[_0x1be734])<0x0&&Object['prototype'][_0x31b523(0x104)][_0x31b523(0x1ce)](_0x39d384,_0x5893ec[_0x1be734])&&(_0x3f211b[_0x5893ec[_0x1be734]]=_0x39d384[_0x5893ec[_0x1be734]]);}return _0x3f211b;},Yt=_0x31fd8f(function(_0x392a70,_0x5a85d3){const _0x39d69b=_0xf86c5a;var _0x5c2baf=_0x392a70[_0x39d69b(0x13b)],_0x235061=_0x392a70['id'],_0x239d65=_0x392a70['className'],_0xdfb241=_0x392a70['extend'],_0x5d9505=ao(_0x392a70,[_0x39d69b(0x13b),'id',_0x39d69b(0x23d),_0x39d69b(0x258)]),_0x11cfb4=_0x39d69b(0x2ec)[_0x39d69b(0x448)](_0x235061,'\x20')[_0x39d69b(0x448)](_0x239d65||'')[_0x39d69b(0x312)](),_0x40a386=_0x782f32('_'[_0x39d69b(0x448)](lo()));return Gs(_0x5c2baf,''[_0x39d69b(0x448)](_0x235061),{'defIds':_0x5c2baf['defIds'],'idSuffix':_0x40a386[_0x39d69b(0x133)]},N({'ref':_0x5a85d3,'className':_0x11cfb4},_0x5d9505),_0xdfb241);});function Gs(_0x624642,_0x2a8946,_0x3de78f,_0x553d09,_0x5e1060){const _0xa46639=_0xf86c5a;return _0x5d9ae6(_0x624642['tag'],N(N({'key':_0x2a8946},co(_0x624642,_0x3de78f,_0x5e1060)),_0x553d09),(ho(_0x624642,_0x3de78f)[_0xa46639(0xe4)]||[])[_0xa46639(0x2c1)](function(_0x386adf,_0xaed19c){const _0x26b368=_0xa46639;return Gs(_0x386adf,''[_0x26b368(0x448)](_0x2a8946,'-')[_0x26b368(0x448)](_0x624642[_0x26b368(0x34c)],'-')[_0x26b368(0x448)](_0xaed19c),_0x3de78f,void 0x0,_0x5e1060);}));}function co(_0x2ba9b5,_0x62f861,_0x2fba1e){const _0x596369=_0xf86c5a;var _0x5513c0=N({},_0x2ba9b5['attrs']);_0x2fba1e!=null&&_0x2fba1e[_0x596369(0x155)]&&_0x5513c0['fill']===_0x596369(0x155)&&(_0x5513c0[_0x596369(0x16b)]=_0x2fba1e[_0x596369(0x155)]);var _0x4f9eba=_0x62f861['defIds'];return!_0x4f9eba||_0x4f9eba[_0x596369(0x28c)]===0x0||(_0x2ba9b5['tag']===_0x596369(0x40b)&&_0x5513c0[_0x596369(0x282)]&&(_0x5513c0[_0x596369(0x282)]=_0x5513c0[_0x596369(0x282)]+_0x62f861[_0x596369(0x387)]),Object[_0x596369(0x468)](_0x5513c0)[_0x596369(0x26c)](function(_0xd8d903){const _0x1ea0df=_0x596369;var _0x8c2e35=_0xd8d903[0x0],_0x4b2d83=_0xd8d903[0x1];typeof _0x4b2d83==_0x1ea0df(0x1ab)&&(_0x5513c0[_0x8c2e35]=_0x4b2d83['replace'](/url\(#(.*)\)/,_0x1ea0df(0x183)[_0x1ea0df(0x448)](_0x62f861['idSuffix'],')')));})),_0x5513c0;}function ho(_0x231674,_0x46d371){const _0x4e26c9=_0xf86c5a;var _0x1c42cf,_0x42b214=_0x46d371['defIds'];return!_0x42b214||_0x42b214[_0x4e26c9(0x28c)]===0x0?_0x231674:_0x231674[_0x4e26c9(0x34c)]===_0x4e26c9(0x140)&&(!((_0x1c42cf=_0x231674['children'])===null||_0x1c42cf===void 0x0)&&_0x1c42cf[_0x4e26c9(0x28c)])?N(N({},_0x231674),{'children':_0x231674[_0x4e26c9(0xe4)][_0x4e26c9(0x2c1)](function(_0x447ce1){const _0x22e8cb=_0x4e26c9;return typeof _0x447ce1['attrs']['id']=='string'&&_0x42b214&&_0x42b214[_0x22e8cb(0x2ed)](_0x447ce1[_0x22e8cb(0x2bf)]['id'])>-0x1?N(N({},_0x447ce1),{'attrs':N(N({},_0x447ce1['attrs']),{'id':_0x447ce1['attrs']['id']+_0x46d371[_0x22e8cb(0x387)]})}):_0x447ce1;})}):_0x231674;}function lo(){const _0x48196b=_0xf86c5a;return Math['random']()[_0x48196b(0x202)](0x24)['substring'](0x2,0x8);}Yt[_0xf86c5a(0x125)]=_0xf86c5a(0x338);var _o={'tag':_0xf86c5a(0x2c0),'attrs':{'fill':'none','viewBox':_0xf86c5a(0x160),'width':'1em','height':_0xf86c5a(0x396)},'children':[{'tag':'g','attrs':{'clipPath':_0xf86c5a(0x391)},'children':[{'tag':_0xf86c5a(0x190),'attrs':{'stroke':_0xf86c5a(0xf7),'d':_0xf86c5a(0x313),'strokeLinecap':'round','strokeLinejoin':_0xf86c5a(0x354),'strokeWidth':1.2}}]},{'tag':_0xf86c5a(0x140),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xf86c5a(0x1e5)},'children':[{'tag':_0xf86c5a(0x190),'attrs':{'fill':_0xf86c5a(0x443),'d':_0xf86c5a(0x38a)}}]}]}],'defIds':[_0xf86c5a(0x1e5)]},Ys=_0x31fd8f(function(_0x1af955,_0x23acec){const _0x7f9be4=_0xf86c5a;return _0x5d9ae6(Yt,Object['assign']({},_0x1af955,{'id':_0x7f9be4(0x2d5),'ref':_0x23acec,'icon':_o}));});Ys[_0xf86c5a(0x125)]=_0xf86c5a(0x208);var uo={'tag':_0xf86c5a(0x2c0),'attrs':{'fill':_0xf86c5a(0x3f8),'viewBox':_0xf86c5a(0x37f),'width':_0xf86c5a(0x396),'height':_0xf86c5a(0x396)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0xf86c5a(0xf7),'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':_0xf86c5a(0x354),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xf86c5a(0x140),'attrs':{},'children':[{'tag':_0xf86c5a(0x132),'attrs':{'id':_0xf86c5a(0x146)},'children':[{'tag':_0xf86c5a(0x190),'attrs':{'fill':'#fff','d':_0xf86c5a(0x38a),'transform':_0xf86c5a(0x16f)}}]}]}],'defIds':[_0xf86c5a(0x146)]},Ks=_0x31fd8f(function(_0x32fae6,_0x45faf8){const _0x57bea5=_0xf86c5a;return _0x5d9ae6(Yt,Object['assign']({},_0x32fae6,{'id':_0x57bea5(0x32e),'ref':_0x45faf8,'icon':uo}));});Ks[_0xf86c5a(0x125)]=_0xf86c5a(0x1bb);function Xs(_0x1accff){const _0x58663d=_0xf86c5a;var _0x1fa91c,_0x319cc7,_0x181eed='';if(typeof _0x1accff=='string'||typeof _0x1accff=='number')_0x181eed+=_0x1accff;else{if(typeof _0x1accff==_0x58663d(0x14a)){if(Array[_0x58663d(0x453)](_0x1accff)){var _0x3d8bf1=_0x1accff['length'];for(_0x1fa91c=0x0;_0x1fa91c<_0x3d8bf1;_0x1fa91c++)_0x1accff[_0x1fa91c]&&(_0x319cc7=Xs(_0x1accff[_0x1fa91c]))&&(_0x181eed&&(_0x181eed+='\x20'),_0x181eed+=_0x319cc7);}else{for(_0x319cc7 in _0x1accff)_0x1accff[_0x319cc7]&&(_0x181eed&&(_0x181eed+='\x20'),_0x181eed+=_0x319cc7);}}}return _0x181eed;}function fo(){const _0x3b1379=_0xf86c5a;for(var _0x14e48a,_0x333712,_0x13cf94=0x0,_0x251966='',_0x53e9a3=arguments[_0x3b1379(0x28c)];_0x13cf94<_0x53e9a3;_0x13cf94++)(_0x14e48a=arguments[_0x13cf94])&&(_0x333712=Xs(_0x14e48a))&&(_0x251966&&(_0x251966+='\x20'),_0x251966+=_0x333712);return _0x251966;}const mo=_0xf86c5a(0x293),go=_0xf86c5a(0x2d9),So=_0xf86c5a(0x1cf),po=_0xf86c5a(0x2f5),vo=_0xf86c5a(0x370),Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0x32bf14){const _0x171dc0=_0xf86c5a;switch(_0x32bf14){case P[_0x171dc0(0x2a1)]:return _0x171dc0(0x3bf);case P[_0x171dc0(0x1d4)]:return'collabStatus.conflict';case P[_0x171dc0(0x38b)]:return _0x171dc0(0x2f2);case P[_0x171dc0(0x239)]:return _0x171dc0(0x40e);case P[_0x171dc0(0x3fe)]:case P[_0x171dc0(0x120)]:case P['AWAITING_WITH_PENDING']:return _0x171dc0(0x22e);case P[_0x171dc0(0x115)]:return _0x171dc0(0x20d);}}function Eo(_0x5ab5f3){const _0x4c0a73=_0xf86c5a,{status$:_0x567965}=_0x5ab5f3,_0x156716=_0xa83107(_0x567965,P[_0x4c0a73(0x239)]),_0x18029b=_0x3333be(_0x2673bf),_0x225d6b=_0x3333be(he),_0x4a672b=_0x156716!==P[_0x4c0a73(0x2a1)],_0x24fe4c=_0x18029b['t'](Io(_0x156716)),_0x14e593=fo(Pe[_0x4c0a73(0x466)],{[Pe[_0x4c0a73(0x374)]]:_0x4a672b,[Pe[_0x4c0a73(0x123)]]:!_0x4a672b}),_0x19308e=_0x4a672b?_0x52a9d6[_0x4c0a73(0xe5)](Ks,null):_0x52a9d6[_0x4c0a73(0xe5)](Ys,null),_0x27e31d=_0x4bc1b9(()=>{const _0x286dfa=_0x4c0a73;_0x4a672b||_0x225d6b[_0x286dfa(0x36d)]();},[_0x4a672b,_0x225d6b]);function _0x1c5e90(){const _0x6978f3=_0x4c0a73;return _0x52a9d6['createElement'](_0x6978f3(0x248),{'className':_0x14e593,'onClick':_0x27e31d},_0x52a9d6[_0x6978f3(0xe5)](_0x6978f3(0x248),{'className':Pe[_0x6978f3(0x353)]},_0x19308e),_0x52a9d6[_0x6978f3(0xe5)](_0x6978f3(0x248),{'className':Pe['onlineStatusTitle']},_0x24fe4c));}return _0x4a672b?_0x1c5e90():_0x52a9d6[_0x4c0a73(0xe5)](_0x27c9f9,{'title':_0x18029b['t']('collab-client.tooltip.reconnect')},_0x1c5e90());}var Co=Object[_0xf86c5a(0xfa)],bo=Object[_0xf86c5a(0x397)],To=(_0x2d6a04,_0x505e76,_0x484e7b,_0x330739)=>{const _0x25a422=_0xf86c5a;for(var _0x324c58=_0x330739>0x1?void 0x0:_0x330739?bo(_0x505e76,_0x484e7b):_0x505e76,_0x1a75d3=_0x2d6a04[_0x25a422(0x28c)]-0x1,_0x41a2fb;_0x1a75d3>=0x0;_0x1a75d3--)(_0x41a2fb=_0x2d6a04[_0x1a75d3])&&(_0x324c58=(_0x330739?_0x41a2fb(_0x505e76,_0x484e7b,_0x324c58):_0x41a2fb(_0x324c58))||_0x324c58);return _0x330739&&_0x324c58&&Co(_0x505e76,_0x484e7b,_0x324c58),_0x324c58;},Be=(_0x187366,_0x3a350d)=>(_0x25bfe4,_0x3a8e57)=>_0x3a350d(_0x25bfe4,_0x3a8e57,_0x187366);let Me=class extends _0x4091c9{constructor(_0x11b0b5,_0x175029,_0x3b44b9,_0x51e2a7){const _0x20d62e=_0xf86c5a;super(),l(this,'_status$',new _0x52cf76(P['NOT_COLLAB'])),(this[_0x20d62e(0x358)]=_0x11b0b5,this[_0x20d62e(0x121)]=_0x175029,this[_0x20d62e(0x22b)]=_0x3b44b9,this[_0x20d62e(0x289)]=_0x51e2a7,this[_0x20d62e(0x3fd)](),this['_initStatusListener']());}[_0xf86c5a(0x28a)](){const _0x1071e8=_0xf86c5a;this['disposeWithMe'](this[_0x1071e8(0x358)][_0x1071e8(0x2d4)][_0x1071e8(0x268)](_0x4e5135(()=>{const _0x32fb0a=_0x1071e8,_0x2bcdd6=this[_0x32fb0a(0x358)][_0x32fb0a(0x263)]();return _0x2bcdd6?this[_0x32fb0a(0x289)]['getCollabEntity$'](_0x2bcdd6['getUnitId']()):_0xfb2e43(null);}),_0x4e5135(_0x5a078e=>_0x5a078e?_0x5a078e[_0x1071e8(0x217)]:_0xfb2e43(P[_0x1071e8(0x239)])))['subscribe'](_0x587f87=>{const _0x28266b=_0x1071e8;this[_0x28266b(0x15d)]['next'](_0x587f87);}));}[_0xf86c5a(0x3fd)](){const _0x32068f=_0xf86c5a;this[_0x32068f(0x177)](this[_0x32068f(0x121)][_0x32068f(0x223)](_0x1527eb['HEADER_MENU'],()=>_0x52ea46(Ro({'status$':this[_0x32068f(0x15d)][_0x32068f(0x377)]()}),this[_0x32068f(0x22b)])));}};Me=To([Be(0x0,_0x5edd3d),Be(0x1,_0x53177d),Be(0x2,_0x370f8c(_0x595e81)),Be(0x3,_0x370f8c(Le))],Me);function Ro(_0x35d742){const {status$:_0x181f9e}=_0x35d742;return function(){return _0x52a9d6['createElement'](Eo,{'status$':_0x181f9e});};}const qs=_0x2452f4('uni.network.url-service');var Oo=Object['defineProperty'],Do=Object[_0xf86c5a(0x397)],wo=(_0xd42e56,_0x4c45d2,_0x27bd24,_0x41a05c)=>{const _0xb2a83=_0xf86c5a;for(var _0x3bf086=_0x41a05c>0x1?void 0x0:_0x41a05c?Do(_0x4c45d2,_0x27bd24):_0x4c45d2,_0x5d0896=_0xd42e56[_0xb2a83(0x28c)]-0x1,_0x49c601;_0x5d0896>=0x0;_0x5d0896--)(_0x49c601=_0xd42e56[_0x5d0896])&&(_0x3bf086=(_0x41a05c?_0x49c601(_0x4c45d2,_0x27bd24,_0x3bf086):_0x49c601(_0x3bf086))||_0x3bf086);return _0x41a05c&&_0x3bf086&&Oo(_0x4c45d2,_0x27bd24,_0x3bf086),_0x3bf086;},ge=(_0xb0f2ad,_0x47c0de)=>(_0x12d4f7,_0x5c10c8)=>_0x47c0de(_0x12d4f7,_0x5c10c8,_0xb0f2ad);let Je=class extends _0x27d368{constructor(_0x37e36b,_0x142506,_0x3b7065,_0x407926,_0xdcb4e5,_0x35c742){const _0x25122e=_0xf86c5a;super(),this['_urlService']=_0x37e36b,this[_0x25122e(0x435)]=_0x142506,this[_0x25122e(0x456)]=_0x3b7065,this[_0x25122e(0x373)]=_0x407926,this[_0x25122e(0x415)]=_0xdcb4e5,_0x35c742?_0x35c742==null||_0x35c742[_0x25122e(0x1ec)]()[_0x25122e(0x15f)](()=>this[_0x25122e(0x30d)]()):(this[_0x25122e(0x435)]['debug']('[DataLoaderController]',_0x25122e(0x273)),this[_0x25122e(0x30d)]());}async['_init'](){const _0x3c6592=_0xf86c5a,_0x2ca7b5=this['_urlService']['getParam']('unit'),_0x592457=this[_0x3c6592(0x105)][_0x3c6592(0x335)](_0x3c6592(0x246));if(!_0x2ca7b5||!_0x592457){this[_0x3c6592(0x435)][_0x3c6592(0x379)](_0x3c6592(0x1b7),_0x3c6592(0x1b9));return;}switch(Number(_0x592457)){case k['UNIVER_SHEET']:{const _0x684e7c=await this['_loadSheet'](_0x2ca7b5);this[_0x3c6592(0x37a)](_0x684e7c);break;}case k[_0x3c6592(0x320)]:{await this[_0x3c6592(0xfd)](_0x2ca7b5);break;}default:{this[_0x3c6592(0x435)][_0x3c6592(0x3a5)](_0x3c6592(0x1b7),_0x3c6592(0x457));break;}}}async['_setupSubUnitSync'](_0x41c8c7){const _0x5103ee=_0xf86c5a;await this[_0x5103ee(0xee)](_0x41c8c7),_0x41c8c7[_0x5103ee(0x181)][_0x5103ee(0x268)](_0x14bd7d(this['dispose$']))['subscribe'](_0x24b435=>{const _0x138f05=_0x5103ee;_0x24b435&&this[_0x138f05(0x1a3)](_0x24b435);}),this[_0x5103ee(0x105)]['urlChange$']['pipe'](_0x14bd7d(this['dispose$']))[_0x5103ee(0x1c3)](()=>this['_updateSubUnitFromURLParams'](_0x41c8c7));}[_0xf86c5a(0x1a3)](_0x36b09e,_0x326a99=!0x1){const _0x49dae4=_0xf86c5a,_0x19bc1d=this['_urlService']['getParam'](_0x49dae4(0x364));_0x36b09e[_0x49dae4(0x300)]()!==_0x19bc1d&&this['_urlService']['setParam']('subunit',_0x36b09e[_0x49dae4(0x300)](),_0x326a99);}async[_0xf86c5a(0xee)](_0x8623ed){const _0x1297a4=_0xf86c5a;var _0x1d230a;const _0x302c03=this['_urlService'][_0x1297a4(0x335)](_0x1297a4(0x364));if(!_0x302c03||!_0x8623ed['getSheetBySheetId'](_0x302c03)){const _0x685f3=_0x8623ed[_0x1297a4(0x23b)]()[0x0],_0x1064de=_0x8623ed[_0x1297a4(0x145)](_0x685f3);if(!_0x1064de)return;this[_0x1297a4(0x1a3)](_0x1064de,!0x0),await this[_0x1297a4(0x456)][_0x1297a4(0x1b5)](_0x558010['id'],{'unitId':_0x8623ed['getUnitId'](),'subUnitId':_0x685f3});return;}((_0x1d230a=_0x8623ed[_0x1297a4(0x204)]())==null?void 0x0:_0x1d230a[_0x1297a4(0x300)]())!==_0x302c03&&await this[_0x1297a4(0x456)][_0x1297a4(0x1b5)](_0x558010['id'],{'unitId':_0x8623ed[_0x1297a4(0x23e)](),'subUnitId':_0x302c03});}async['_loadSheet'](_0x2a5aba){const _0x34585c=_0xf86c5a;let _0x582d3d=0x0;const _0x25f18e=await this[_0x34585c(0x373)][_0x34585c(0x3ec)](_0x2a5aba);return _0x25f18e&&(_0x25f18e['awaitingChangeset']||_0x25f18e['mutations']['length']!==0x0)&&(_0x582d3d=_0x25f18e[_0x34585c(0x27b)]),_0x582d3d===0x0&&this[_0x34585c(0x435)][_0x34585c(0x379)]('[DataLoaderController]',_0x34585c(0x316)),this[_0x34585c(0x415)][_0x34585c(0x439)](_0x2a5aba,_0x582d3d);}async[_0xf86c5a(0xfd)](_0x4ee3e2){const _0x19af66=_0xf86c5a;let _0x2aec95=0x0;const _0x37ae47=await this[_0x19af66(0x373)][_0x19af66(0x3ec)](_0x4ee3e2);return _0x37ae47&&(_0x37ae47[_0x19af66(0x2f0)]||_0x37ae47[_0x19af66(0x3c1)]['length']!==0x0)&&(_0x2aec95=_0x37ae47[_0x19af66(0x27b)]),_0x2aec95===0x0&&this[_0x19af66(0x435)][_0x19af66(0x379)](_0x19af66(0x1b7),_0x19af66(0x316)),this[_0x19af66(0x415)][_0x19af66(0x3b7)](_0x4ee3e2,_0x2aec95);}};Je=wo([ge(0x0,qs),ge(0x1,_0x593f47),ge(0x2,_0x225d18),ge(0x3,_0x370f8c(w)),ge(0x4,_0x370f8c(_0xbe9482)),ge(0x5,_0x2fd677(_0x5e0f61))],Je);var Po=Object['defineProperty'],yo=Object[_0xf86c5a(0x397)],Uo=(_0x301120,_0x492d5e,_0x27f0d1,_0x541616)=>{const _0x40c69c=_0xf86c5a;for(var _0x43d909=_0x541616>0x1?void 0x0:_0x541616?yo(_0x492d5e,_0x27f0d1):_0x492d5e,_0x4f8da2=_0x301120[_0x40c69c(0x28c)]-0x1,_0x4a10a9;_0x4f8da2>=0x0;_0x4f8da2--)(_0x4a10a9=_0x301120[_0x4f8da2])&&(_0x43d909=(_0x541616?_0x4a10a9(_0x492d5e,_0x27f0d1,_0x43d909):_0x4a10a9(_0x43d909))||_0x43d909);return _0x541616&&_0x43d909&&Po(_0x492d5e,_0x27f0d1,_0x43d909),_0x43d909;},Ss=(_0x5a2d6f,_0x5859a4)=>(_0x4cf6e2,_0x4adf53)=>_0x5859a4(_0x4cf6e2,_0x4adf53,_0x5a2d6f);const No=_0xf86c5a(0x39b),Mo='Univer';let ze=class extends _0x4091c9{constructor(_0x3fc0ad,_0x5f1c83){const _0x582a0a=_0xf86c5a;super(),this[_0x582a0a(0x358)]=_0x3fc0ad,this[_0x582a0a(0x2ae)]=_0x5f1c83,this[_0x582a0a(0x30d)]();}[_0xf86c5a(0x30d)](){const _0x83824=_0xf86c5a;this[_0x83824(0x177)](this[_0x83824(0x358)][_0x83824(0x2d4)][_0x83824(0x1c3)](()=>{const _0x230a8e=_0x83824;var _0x277f38;const _0x716963=this['_univerInstanceService'][_0x230a8e(0x263)]();let _0x3b3a40=(_0x277f38=this['_configService'][_0x230a8e(0x1bf)](No))!=null?_0x277f38:Mo;_0x716963 instanceof _0x4e5c0a&&(_0x3b3a40=_0x716963['name']),document[_0x230a8e(0x28d)]=_0x3b3a40;}));}};ze=Uo([Ss(0x0,_0x5edd3d),Ss(0x1,_0x5bc7de)],ze);var Ao=Object[_0xf86c5a(0xfa)],Lo=Object[_0xf86c5a(0x397)],$o=(_0x5e5cde,_0x1bae36,_0x261f96,_0x316bea)=>{const _0x477a8a=_0xf86c5a;for(var _0x1eac3c=_0x316bea>0x1?void 0x0:_0x316bea?Lo(_0x1bae36,_0x261f96):_0x1bae36,_0x287f53=_0x5e5cde[_0x477a8a(0x28c)]-0x1,_0x20a5e1;_0x287f53>=0x0;_0x287f53--)(_0x20a5e1=_0x5e5cde[_0x287f53])&&(_0x1eac3c=(_0x316bea?_0x20a5e1(_0x1bae36,_0x261f96,_0x1eac3c):_0x20a5e1(_0x1eac3c))||_0x1eac3c);return _0x316bea&&_0x1eac3c&&Ao(_0x1bae36,_0x261f96,_0x1eac3c),_0x1eac3c;},St=(_0x30df27,_0x83fd1e)=>(_0x3f4dfd,_0x4d20a6)=>_0x83fd1e(_0x3f4dfd,_0x4d20a6,_0x30df27);let Ze=class{constructor(_0x2ca5c3,_0x1b7588,_0x1cfe1b){const _0x4197fa=_0xf86c5a;this[_0x4197fa(0x2ae)]=_0x2ca5c3,this[_0x4197fa(0x3f6)]=_0x1b7588,this[_0x4197fa(0x3b5)]=_0x1cfe1b,this[_0x4197fa(0x18f)]();}[_0xf86c5a(0x18f)](){const _0x3cdbfd=_0xf86c5a;this['_httpService'][_0x3cdbfd(0x25f)]({'priority':0x1,'interceptor':(_0x13ca88,_0x1e2044)=>_0x1e2044(_0x13ca88)['pipe'](_0x56297b(async _0x567f1b=>{const _0x103273=_0x3cdbfd,_0x538eb9=_0x567f1b;if(_0x538eb9[_0x103273(0x29a)]===0x191&&window[_0x103273(0xfe)](this['localeService']['t'](_0x103273(0x462)))){const _0xaf0f7=window[_0x103273(0x444)](window['location'][_0x103273(0x41b)]);window[_0x103273(0x212)][_0x103273(0x41b)]=this[_0x103273(0x1a2)]()+_0x103273(0x19e)+_0xaf0f7;}return _0x538eb9;}))});}[_0xf86c5a(0x1a2)](){const _0x4d0492=_0xf86c5a;var _0x43d10b,_0x11b21b;const _0x2b3c6b=this[_0x4d0492(0x2ae)]['getConfig'](Nn),_0x3ca827=this[_0x4d0492(0x2ae)][_0x4d0492(0x1bf)]($);return(_0x11b21b=(_0x43d10b=_0x3ca827==null?void 0x0:_0x3ca827['loginUrlKey'])!=null?_0x43d10b:_0x2b3c6b)!=null?_0x11b21b:Mn;}};Ze=$o([St(0x0,_0x5bc7de),St(0x1,_0x370f8c(_0x172026)),St(0x2,_0x370f8c(_0x2673bf))],Ze);var jo=Object[_0xf86c5a(0xfa)],xo=Object['getOwnPropertyDescriptor'],Ho=(_0x18914d,_0x3072c0,_0x4b6138,_0x1a20ba)=>{const _0x7d75c7=_0xf86c5a;for(var _0x40eaf7=_0x1a20ba>0x1?void 0x0:_0x1a20ba?xo(_0x3072c0,_0x4b6138):_0x3072c0,_0x13d16d=_0x18914d[_0x7d75c7(0x28c)]-0x1,_0x4d6ae9;_0x13d16d>=0x0;_0x13d16d--)(_0x4d6ae9=_0x18914d[_0x13d16d])&&(_0x40eaf7=(_0x1a20ba?_0x4d6ae9(_0x3072c0,_0x4b6138,_0x40eaf7):_0x4d6ae9(_0x40eaf7))||_0x40eaf7);return _0x1a20ba&&_0x40eaf7&&jo(_0x3072c0,_0x4b6138,_0x40eaf7),_0x40eaf7;},ps=(_0x12a3cc,_0x4d70e8)=>(_0x350905,_0x8fbb9a)=>_0x4d70e8(_0x350905,_0x8fbb9a,_0x12a3cc);const ko='AUTHZ_URL_KEY',Bo=_0xf86c5a(0x1f1);let yt=class extends _0x4091c9{constructor(_0x177c99,_0x52e5cd){const _0x59b4b5=_0xf86c5a;super(),this[_0x59b4b5(0x284)]=_0x177c99,this[_0x59b4b5(0x2ae)]=_0x52e5cd,this[_0x59b4b5(0x251)]();}[_0xf86c5a(0x251)](){const _0x25e79c=_0xf86c5a,_0x3cd4f2=this;this[_0x25e79c(0x177)](this[_0x25e79c(0x284)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x420762({'isMatch'(_0x54970e){const _0x3d5967=_0x25e79c;var _0x5de87e;if(_0x54970e['method']===_0x3d5967(0x2ba)&&((_0x5de87e=_0x54970e['requestParams'])!=null&&_0x5de87e[_0x3d5967(0x20e)])){const {objectID:_0x53667d,objectType:_0x4466c2}=_0x54970e[_0x3d5967(0x40a)][_0x3d5967(0x20e)]||{};if(!_0x53667d||_0x4466c2===void 0x0)return!0x1;const _0x1b3f82=_0x3cd4f2[_0x3d5967(0x1ae)]()+'/'+_0x4466c2+_0x3d5967(0x11a)+_0x53667d+_0x3d5967(0x130);if(_0x54970e[_0x3d5967(0x11b)]===_0x1b3f82)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x47149d){const _0x4eb1d5=_0x25e79c;var _0x51d5d7;return(_0x51d5d7=_0x47149d[_0x4eb1d5(0x40a)])==null?void 0x0:_0x51d5d7[_0x4eb1d5(0x20e)];},'mergeParamsToRequest'(_0x281aa7,_0x483494){const _0x164a44=_0x25e79c,_0x4b9ac2=_0x3cd4f2[_0x164a44(0x1ae)]()+_0x164a44(0x408),_0x19779b=_0x281aa7[_0x164a44(0x326)]((_0x3527a9,_0x4a016c)=>{const _0x34d658=_0x164a44,{unitID:_0x3234a0,objectID:_0x4e0927,objectType:_0x2f150a,actions:_0xbc90cf}=_0x4a016c;return _0x3527a9[_0x3234a0]||(_0x3527a9[_0x3234a0]={}),_0x3527a9[_0x3234a0][_0x4e0927]||(_0x3527a9[_0x3234a0][_0x4e0927]={'objectID':_0x4e0927,'objectType':_0x2f150a,'actions':[]}),_0x3527a9[_0x3234a0][_0x4e0927][_0x34d658(0x3e1)][_0x34d658(0x106)](..._0xbc90cf),_0x3527a9;},{}),_0x656b33=[];for(const _0x3ee0a3 in _0x19779b)for(const _0x43144a in _0x19779b[_0x3ee0a3]){const {actions:_0x4db424,objectType:_0x3533c2}=_0x19779b[_0x3ee0a3][_0x43144a],_0x193a40=[...new Set(_0x4db424)];_0x656b33['push']({'unitID':_0x3ee0a3,'objectID':_0x43144a,'objectType':_0x3533c2,'actions':_0x193a40});}return new _0x3fb75d(_0x164a44(0x2ba),_0x4b9ac2,{'headers':_0x483494[_0x164a44(0x26b)],'withCredentials':_0x483494[_0x164a44(0x135)],'responseType':_0x483494[_0x164a44(0x3df)],'body':{'requests':_0x656b33}});}},{'distributeResult'(_0x1eee1f,_0x39a7bd){const _0x3b6840=_0x25e79c,{objectActions:_0x43b0d1}=_0x1eee1f;return _0x39a7bd[_0x3b6840(0x2c1)](_0x525e9c=>{const _0x5c2c30=_0x3b6840,{unitID:_0x28fc48,objectID:_0x4dc1ce,actions:_0x2162b9}=_0x525e9c,_0x3c1dfa=_0x43b0d1[_0x5c2c30(0x179)](_0x976b5d=>_0x976b5d[_0x5c2c30(0x427)]===_0x28fc48&&_0x976b5d['objectID']===_0x4dc1ce),_0x25d19a=_0x2162b9['map'](_0x3a99a6=>_0x3c1dfa==null?void 0x0:_0x3c1dfa[_0x5c2c30(0x3e1)][_0x5c2c30(0x179)](_0x14f94c=>_0x14f94c['action']===_0x3a99a6))['filter'](_0x39c51b=>!!_0x39c51b);return{'config':_0x525e9c,'result':{'actions':_0x25d19a,'error':_0x1eee1f[_0x5c2c30(0x3a5)]}};});}})}));}[_0xf86c5a(0x1ae)](){const _0x477ca1=_0xf86c5a;var _0x4dc05a,_0x37c35f;const _0x37a477=this[_0x477ca1(0x2ae)][_0x477ca1(0x1bf)](ko),_0x15009f=this[_0x477ca1(0x2ae)][_0x477ca1(0x1bf)]($);return(_0x37c35f=(_0x4dc05a=_0x15009f==null?void 0x0:_0x15009f['authzUrl'])!=null?_0x4dc05a:_0x37a477)!=null?_0x37c35f:Bo;}async[_0xf86c5a(0x14b)](_0x143148){const _0x433edb=_0xf86c5a,_0x3abbe3=this['_getAPIPrefixPath']()+'/'+_0x143148['objectType']+_0x433edb(0x445);return(await this['_HTTPService'][_0x433edb(0x1d7)](_0x3abbe3,{'body':_0x143148}))[_0x433edb(0x20e)][_0x433edb(0x42f)]||'';}async[_0xf86c5a(0x3c9)](_0x423f9f){const _0x57bc7b=_0xf86c5a,_0x21b526=this[_0x57bc7b(0x1ae)]()+_0x57bc7b(0x319);return(await this[_0x57bc7b(0x284)][_0x57bc7b(0x1d7)](_0x21b526,{'body':_0x423f9f}))[_0x57bc7b(0x20e)][_0x57bc7b(0x1fd)];}async[_0xf86c5a(0x3d1)](_0x4e5613){const _0x972802=_0xf86c5a,_0x40b49a=this[_0x972802(0x1ae)]()+'/'+_0x4e5613[_0x972802(0x2a6)]+_0x972802(0x11a)+_0x4e5613['objectID'];await this[_0x972802(0x284)]['put'](_0x40b49a,{'body':_0x4e5613});}async[_0xf86c5a(0x1e0)](_0x992b12){const _0x3d8f1f=_0xf86c5a,_0x509bfe=this[_0x3d8f1f(0x1ae)]()+'/'+_0x992b12[_0x3d8f1f(0x2a6)]+_0x3d8f1f(0x11a)+_0x992b12['objectID']+_0x3d8f1f(0x130);return(await this[_0x3d8f1f(0x284)][_0x3d8f1f(0x1d7)](_0x509bfe,{'body':_0x992b12}))['body'][_0x3d8f1f(0x3e1)];}async['batchAllowed'](_0x3678fa){const _0x5534cf=_0xf86c5a,_0x258ff6=this[_0x5534cf(0x1ae)]()+_0x5534cf(0x408);return(await this[_0x5534cf(0x284)]['post'](_0x258ff6,{'body':{'requests':_0x3678fa}}))['body']['objectActions'];}async[_0xf86c5a(0x25e)](_0x1c15b3){const _0x1407e8=_0xf86c5a,_0x3b7b4c=this['_getAPIPrefixPath']()+'/'+_0x1c15b3['objectType']+'/role',_0x112b5d=await this[_0x1407e8(0x284)]['post'](_0x3b7b4c,{'body':_0x1c15b3});return{'roles':_0x112b5d[_0x1407e8(0x20e)][_0x1407e8(0x402)],'actions':_0x112b5d['body'][_0x1407e8(0x3e1)]};}async['deleteCollaborator'](_0x3524d0){const _0x416cd7=_0xf86c5a,_0x323b5c=this[_0x416cd7(0x1ae)]()+_0x416cd7(0x113);await this[_0x416cd7(0x284)]['delete'](_0x323b5c,{'params':{'collaboratorID':_0x3524d0[_0x416cd7(0x418)],'objectID':_0x3524d0[_0x416cd7(0x42f)],'unitID':_0x3524d0[_0x416cd7(0x427)]}});}async[_0xf86c5a(0x343)](_0xce5698){const _0x152cfb=_0xf86c5a,_0xdd3008=this[_0x152cfb(0x1ae)]()+'/collaborator';await this[_0x152cfb(0x284)][_0x152cfb(0x450)](_0xdd3008,{'body':_0xce5698});}async[_0xf86c5a(0x35a)](_0xc87b0f){const _0x164588=_0xf86c5a,_0x349b4e=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x164588(0x284)]['post'](_0x349b4e,{'body':_0xc87b0f});}async[_0xf86c5a(0xe6)](_0x1be47f){const _0x1da31f=_0xf86c5a,_0x3c93e3=this[_0x1da31f(0x1ae)]()+_0x1da31f(0x113);return(await this[_0x1da31f(0x284)][_0x1da31f(0x175)](_0x3c93e3,{'params':{'objectID':_0x1be47f[_0x1da31f(0x42f)],'unitID':_0x1be47f['unitID']}}))[_0x1da31f(0x20e)][_0x1da31f(0x257)];}async[_0xf86c5a(0x35e)](_0x317d35){const _0x288a4f=_0xf86c5a,_0x37d54a=this[_0x288a4f(0x1ae)]()+'/collaborator';await this[_0x288a4f(0x284)]['put'](_0x37d54a,{'body':_0x317d35});}};yt=Ho([ps(0x0,_0x370f8c(_0x172026)),ps(0x1,_0x370f8c(_0x5bc7de))],yt);var Vo=Object[_0xf86c5a(0xfa)],Fo=Object[_0xf86c5a(0x397)],Wo=(_0x365814,_0xa5d90c,_0x3b864a,_0x1a78c0)=>{for(var _0x370ec0=_0x1a78c0>0x1?void 0x0:_0x1a78c0?Fo(_0xa5d90c,_0x3b864a):_0xa5d90c,_0x1ad665=_0x365814['length']-0x1,_0x37e0d6;_0x1ad665>=0x0;_0x1ad665--)(_0x37e0d6=_0x365814[_0x1ad665])&&(_0x370ec0=(_0x1a78c0?_0x37e0d6(_0xa5d90c,_0x3b864a,_0x370ec0):_0x37e0d6(_0x370ec0))||_0x370ec0);return _0x1a78c0&&_0x370ec0&&Vo(_0xa5d90c,_0x3b864a,_0x370ec0),_0x370ec0;},Go=(_0x2309bb,_0x19cae0)=>(_0x482394,_0x3fbeb0)=>_0x19cae0(_0x482394,_0x3fbeb0,_0x2309bb);let Qe=class{constructor(_0x112cff){const _0x38ce04=_0xf86c5a;this[_0x38ce04(0x3f6)]=_0x112cff,this[_0x38ce04(0x3cf)]();}[_0xf86c5a(0x3cf)](){const _0xe463=_0xf86c5a;this['_httpService'][_0xe463(0x25f)]({'interceptor':(_0x22f97b,_0x220064)=>{const _0x2968c0=_0xe463,_0x17cabf=_0x22f97b[_0x2968c0(0x26b)],_0x54f317=_0x5a86a8();return _0x54f317&&_0x17cabf[_0x2968c0(0x2be)]('x-univer-host',_0x54f317),_0x220064(_0x22f97b);}});}};Qe=Wo([Go(0x0,_0x370f8c(_0x172026))],Qe);var Yo=Object[_0xf86c5a(0xfa)],Ko=Object[_0xf86c5a(0x397)],Xo=(_0x21172a,_0x5c36ae,_0x2b17d5,_0x335331)=>{const _0x2a1271=_0xf86c5a;for(var _0x599364=_0x335331>0x1?void 0x0:_0x335331?Ko(_0x5c36ae,_0x2b17d5):_0x5c36ae,_0x28ea78=_0x21172a[_0x2a1271(0x28c)]-0x1,_0x4fb2d9;_0x28ea78>=0x0;_0x28ea78--)(_0x4fb2d9=_0x21172a[_0x28ea78])&&(_0x599364=(_0x335331?_0x4fb2d9(_0x5c36ae,_0x2b17d5,_0x599364):_0x4fb2d9(_0x599364))||_0x599364);return _0x335331&&_0x599364&&Yo(_0x5c36ae,_0x2b17d5,_0x599364),_0x599364;},pt=(_0x5f29ac,_0x3fc0fe)=>(_0x4fdda9,_0x13d909)=>_0x3fc0fe(_0x4fdda9,_0x13d909,_0x5f29ac);const qo=['image/png','image/jpeg',_0xf86c5a(0x187),_0xf86c5a(0x432),_0xf86c5a(0x137)],Jo=0x5*0x400*0x400,zo=_0xf86c5a(0x41f),Zo='/universer-api/stream/file/upload',Qo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',ea=_0xf86c5a(0x3e3);let Ut=class{constructor(_0x2c1f6a,_0x110a2a,_0x1f084c){const _0x2d7096=_0xf86c5a;l(this,_0x2d7096(0x2af),0x0),l(this,_0x2d7096(0x44c),new _0x26d305()),l(this,_0x2d7096(0x2e6),this[_0x2d7096(0x44c)]),l(this,'_imageSourceCache',new Map()),(this[_0x2d7096(0x3f6)]=_0x2c1f6a,this['_configService']=_0x110a2a,this[_0x2d7096(0x358)]=_0x1f084c);}[_0xf86c5a(0x12a)](_0x57fe3f){const _0x4ddc92=_0xf86c5a;this[_0x4ddc92(0x2af)]=_0x57fe3f,this[_0x4ddc92(0x44c)][_0x4ddc92(0x23f)](_0x57fe3f);}['getImageSourceCache'](_0x248ac2,_0x2be0ff){const _0x41c00f=_0xf86c5a;if(_0x2be0ff===_0x207292[_0x41c00f(0x158)]){const _0x88e314=new Image();return _0x88e314[_0x41c00f(0x3ba)]=_0x248ac2,_0x88e314;}return this[_0x41c00f(0x231)]['get'](_0x248ac2);}[_0xf86c5a(0x2f7)](_0x4bc182,_0x2312ba,_0x6b3dc){const _0x3559f1=_0xf86c5a;_0x2312ba===_0x207292[_0x3559f1(0x158)]||_0x6b3dc==null||this[_0x3559f1(0x231)][_0x3559f1(0x2be)](_0x4bc182,_0x6b3dc);}async[_0xf86c5a(0x249)](_0x278d04){const _0x42fb2e=_0xf86c5a;try{const _0x3fd5e6=this[_0x42fb2e(0x344)](this['_getSignURL'](),''+_0x278d04),_0x1d55f1=(await this[_0x42fb2e(0x3f6)][_0x42fb2e(0x175)](_0x3fd5e6))[_0x42fb2e(0x20e)];if(_0x1d55f1[_0x42fb2e(0x3a5)]&&_0x1d55f1['error'][_0x42fb2e(0x42b)]===xs['OK']){const _0xc0d218=new URL(_0x1d55f1[_0x42fb2e(0x11b)],this[_0x42fb2e(0x388)]())[_0x42fb2e(0x202)]();return Promise['resolve'](_0xc0d218);}return Promise[_0x42fb2e(0x39f)](_0x1d55f1[_0x42fb2e(0x3a5)]);}catch(_0x8bd56b){return Promise['reject'](_0x8bd56b);}}async[_0xf86c5a(0x1e2)](_0x2777cf){const _0xbc7377=_0xf86c5a;let _0x22f068='';if(!qo[_0xbc7377(0x327)](_0x2777cf[_0xbc7377(0x246)]))return this['_decreaseWaiting'](),Promise[_0xbc7377(0x39f)](new Error(_0x4ab8b4[_0xbc7377(0xf0)]));if(_0x2777cf[_0xbc7377(0x46a)]>Jo)return this[_0xbc7377(0x1a9)](),Promise[_0xbc7377(0x39f)](new Error(_0x4ab8b4[_0xbc7377(0x156)]));try{const _0x1839c3=new FormData();_0x1839c3['append'](_0xbc7377(0x27a),_0x2777cf);const _0x1d40f3=this[_0xbc7377(0x358)][_0xbc7377(0x263)](),_0x2eceb9=_0x1d40f3==null?void 0x0:_0x1d40f3[_0xbc7377(0x23e)]();if(!_0x2eceb9)throw new Error('unitId\x20is\x20not\x20found');const _0x2af287=this[_0xbc7377(0x465)]()+'?size='+_0x2777cf['size'][_0xbc7377(0x202)]()+'&source='+Hs[_0xbc7377(0x267)]+_0xbc7377(0x2b6)+encodeURIComponent(_0x2eceb9),_0x719728=await(await fetch(_0x2af287,{'method':_0xbc7377(0x2ba),'body':_0x1839c3}))[_0xbc7377(0x280)]();if(typeof _0x719728['FileId']!='string')return this[_0xbc7377(0x1a9)](),Promise[_0xbc7377(0x39f)](new Error(_0x4ab8b4[_0xbc7377(0x389)]));_0x22f068=_0x719728[_0xbc7377(0x214)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x4ab8b4[_0xbc7377(0x389)]));}return new Promise((_0x207356,_0x359e68)=>{const _0x1347e9=_0xbc7377,_0xcef3=new FileReader();_0xcef3['readAsDataURL'](_0x2777cf),_0xcef3[_0x1347e9(0x345)]=_0x2a8152=>{const _0x28f232=_0x1347e9;var _0x19c6f3;const _0x18821d=(_0x19c6f3=_0x2a8152[_0x28f232(0x459)])==null?void 0x0:_0x19c6f3[_0x28f232(0x467)];if(_0x18821d==null){this[_0x28f232(0x1a9)](),_0x359e68(new Error(_0x4ab8b4[_0x28f232(0x389)]));return;}const _0x5d8821=_0x48af3f[_0x28f232(0x3a3)](0x6);_0x207356({'imageId':_0x5d8821,'imageSourceType':_0x207292[_0x28f232(0x255)],'source':_0x22f068,'base64Cache':_0x18821d,'status':_0x4ab8b4['SUCCUSS']}),this[_0x28f232(0x1a9)]();};});}[_0xf86c5a(0x465)](){const _0x5b1663=_0xf86c5a;var _0x273672,_0xc7b4e2;const _0xb352dd=this['_configService'][_0x5b1663(0x1bf)](zo),_0x226130=this[_0x5b1663(0x2ae)][_0x5b1663(0x1bf)]($);return(_0xc7b4e2=(_0x273672=_0x226130==null?void 0x0:_0x226130[_0x5b1663(0x2ce)])!=null?_0x273672:_0xb352dd)!=null?_0xc7b4e2:Zo;}[_0xf86c5a(0x1f2)](){const _0x3b6396=_0xf86c5a;var _0x371505,_0x34189a;const _0x210711=this[_0x3b6396(0x2ae)][_0x3b6396(0x1bf)](Qo),_0x2b5fbb=this['_configService'][_0x3b6396(0x1bf)]($);return(_0x34189a=(_0x371505=_0x2b5fbb==null?void 0x0:_0x2b5fbb[_0x3b6396(0x197)])!=null?_0x371505:_0x210711)!=null?_0x34189a:ea;}[_0xf86c5a(0x388)](){const _0x4a157e=_0xf86c5a;var _0xbf203f;const _0x1c0cee=this['_configService'][_0x4a157e(0x1bf)]($);return(_0xbf203f=_0x1c0cee==null?void 0x0:_0x1c0cee[_0x4a157e(0x18a)])!=null?_0xbf203f:location['origin'];}[_0xf86c5a(0x344)](_0x200e97,_0xb03bd2){const _0x11e951=_0xf86c5a;return _0x200e97[_0x11e951(0x174)]('{fileID}',_0xb03bd2);}[_0xf86c5a(0x1a9)](){const _0x213c86=_0xf86c5a;this['_waitCount']-=0x1,this['_change$'][_0x213c86(0x23f)](this[_0x213c86(0x2af)]);}};Ut=Xo([pt(0x0,_0x370f8c(_0x172026)),pt(0x1,_0x5bc7de),pt(0x2,_0x370f8c(_0x5edd3d))],Ut);var ta=Object[_0xf86c5a(0xfa)],sa=Object['getOwnPropertyDescriptor'],ia=(_0x3f30d2,_0x3680c4,_0x2b219a,_0x56a9ea)=>{const _0x2fb732=_0xf86c5a;for(var _0x1cb3d1=_0x56a9ea>0x1?void 0x0:_0x56a9ea?sa(_0x3680c4,_0x2b219a):_0x3680c4,_0x5a882b=_0x3f30d2[_0x2fb732(0x28c)]-0x1,_0x46ce7a;_0x5a882b>=0x0;_0x5a882b--)(_0x46ce7a=_0x3f30d2[_0x5a882b])&&(_0x1cb3d1=(_0x56a9ea?_0x46ce7a(_0x3680c4,_0x2b219a,_0x1cb3d1):_0x46ce7a(_0x1cb3d1))||_0x1cb3d1);return _0x56a9ea&&_0x1cb3d1&&ta(_0x3680c4,_0x2b219a,_0x1cb3d1),_0x1cb3d1;},ye=(_0x4ca0d0,_0x5a9eac)=>(_0x2d3848,_0x4fe882)=>_0x5a9eac(_0x2d3848,_0x4fe882,_0x4ca0d0);let et=class extends _0x27d368{constructor(_0x20a72d,_0x519ec3,_0x69c02d,_0x29025c,_0x5d1170){const _0x46ea44=_0xf86c5a;super(),this['_injector']=_0x20a72d,this[_0x46ea44(0x358)]=_0x519ec3,this[_0x46ea44(0x13f)]=_0x69c02d,this[_0x46ea44(0x3fb)]=_0x29025c,this['_localeService']=_0x5d1170,this[_0x46ea44(0x29d)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x3d94bf=_0xf86c5a,_0x4661e6=async _0x5ec8a6=>{const _0x475668=_0x556d;(await this['_collaborationSessionService'][_0x475668(0x13d)](_0x5ec8a6))[_0x475668(0x3b1)][_0x475668(0x268)](_0x152a98(_0x56ff27=>_0x56ff27['eventID']===_0x455562['SHOULD_CLOSE_CONN']),_0x1c351c(this[_0x475668(0x39d)]))['subscribe'](_0x58c3b3=>{const _0x44be20=_0x475668,_0x57b6ca=_0x58c3b3,{reason:_0x5c3045}=_0x57b6ca['data'];this[_0x44be20(0x22b)]['get'](_0x3aa03b)['show']({'type':_0x424985[_0x44be20(0x44b)],'content':this[_0x44be20(0x1f8)]['t'](_0x44be20(0x166))+'('+_0x5c3045+')'}),this[_0x44be20(0x13f)]['updatePermissionPoint'](new _0x365664(_0x5ec8a6)['id'],!0x1),this[_0x44be20(0x3fb)]['closeSession'](_0x5ec8a6);});};_0x20e120(this[_0x3d94bf(0x358)][_0x3d94bf(0x3a6)](_0x751d23[_0x3d94bf(0x1af)]),this[_0x3d94bf(0x358)][_0x3d94bf(0x3a6)](_0x751d23[_0x3d94bf(0x320)]))[_0x3d94bf(0x268)](_0x524dbf(_0xd6eea5=>_0xd6eea5['getUnitId']()),_0x152a98(_0xe0c7b1=>!_0x39c20e(_0xe0c7b1)),_0x1c351c(this['dispose$']))[_0x3d94bf(0x1c3)](_0x5bcbae=>{_0x4661e6(_0x5bcbae);});}[_0xf86c5a(0x29d)](){const _0x18d8dd=_0xf86c5a,_0x53a4e4=async _0x1aafd5=>{const _0x56059f=_0x556d;(await this[_0x56059f(0x3fb)]['requireSession'](_0x1aafd5))['event$']['pipe'](_0x152a98(_0x5768cd=>_0x5768cd[_0x56059f(0x26e)]===_0x455562[_0x56059f(0x33b)]),_0x1c351c(this[_0x56059f(0x39d)]))[_0x56059f(0x1c3)](_0x51e137=>{const _0x571960=_0x56059f,_0x3f0639=_0x51e137,{objectId:_0x7dd8}=_0x3f0639[_0x571960(0x129)],_0x1033ab=this['_injector'][_0x571960(0x175)](_0x1b9bdb);_0x7dd8===_0x1aafd5?_0x1033ab['initWorkbookPermissionChange'](_0x1aafd5):_0x1033ab[_0x571960(0x315)](_0x1aafd5,_0x7dd8);});};_0x20e120(this[_0x18d8dd(0x358)][_0x18d8dd(0x3a6)](_0x751d23['UNIVER_SHEET']),this[_0x18d8dd(0x358)][_0x18d8dd(0x3a6)](_0x751d23['UNIVER_DOC']))['pipe'](_0x524dbf(_0x397d35=>_0x397d35['getUnitId']()),_0x152a98(_0x1f4321=>!_0x39c20e(_0x1f4321)),_0x1c351c(this[_0x18d8dd(0x39d)]))[_0x18d8dd(0x1c3)](_0x519fee=>{_0x53a4e4(_0x519fee);});}};et=ia([ye(0x0,_0x370f8c(_0x595e81)),ye(0x1,_0x5edd3d),ye(0x2,_0x2f69f2),ye(0x3,_0x370f8c(he)),ye(0x4,_0x370f8c(_0x2673bf))],et);var na=Object['defineProperty'],ra=Object[_0xf86c5a(0x397)],oa=(_0x4bfece,_0x598b92,_0x2e346f,_0x412d7e)=>{for(var _0x58066d=_0x412d7e>0x1?void 0x0:_0x412d7e?ra(_0x598b92,_0x2e346f):_0x598b92,_0x3762eb=_0x4bfece['length']-0x1,_0x1ffe62;_0x3762eb>=0x0;_0x3762eb--)(_0x1ffe62=_0x4bfece[_0x3762eb])&&(_0x58066d=(_0x412d7e?_0x1ffe62(_0x598b92,_0x2e346f,_0x58066d):_0x1ffe62(_0x58066d))||_0x58066d);return _0x412d7e&&_0x58066d&&na(_0x598b92,_0x2e346f,_0x58066d),_0x58066d;},vs=(_0x18af8e,_0x296c53)=>(_0x5706ee,_0x109273)=>_0x296c53(_0x5706ee,_0x109273,_0x18af8e);let Nt=class{constructor(_0x584717,_0x19f873){const _0x20cfb7=_0xf86c5a;this[_0x20cfb7(0x2ae)]=_0x584717,this[_0x20cfb7(0x3f6)]=_0x19f873;}async['getUnitOnRev'](_0x546d75,_0x4ec56c){const _0x370640=_0xf86c5a;var _0x3d7c2a;const {unitID:_0x2aedee,type:_0x400f9e,revision:_0x39b4f4=0x0}=_0x4ec56c,_0x5c24bd=this[_0x370640(0x342)]()+'/'+_0x400f9e+'/unit/'+_0x2aedee+_0x370640(0x18b)+_0x39b4f4,_0x1397ee=(await this[_0x370640(0x3f6)][_0x370640(0x175)](_0x5c24bd))['body'],_0x542c5d=(_0x3d7c2a=_0x1397ee[_0x370640(0x17e)])==null?void 0x0:_0x3d7c2a['workbook'];if(_0x542c5d){const _0x376695=_0x542c5d==null?void 0x0:_0x542c5d[_0x370640(0x3f5)],_0x32287e=_0x30b993['encode'](_0x5b5300(_0x376695));_0x542c5d[_0x370640(0x3f5)]=_0x32287e,Object[_0x370640(0x468)](_0x542c5d[_0x370640(0x1fc)])[_0x370640(0x26c)](([,_0x3aa067])=>{const _0x317359=_0x370640,_0x24d081=_0x3aa067['originalMeta'],_0x4a6253=_0x30b993[_0x317359(0x3fa)](_0x5b5300(_0x24d081));_0x3aa067[_0x317359(0x3f5)]=_0x4a6253;});}return _0x1397ee;}async[_0xf86c5a(0x114)](_0x5eb791,_0x540cf8){const _0x938e1a=_0xf86c5a,{unitID:_0x44b526,type:_0x523c1a,blockID:_0x34fcf6}=_0x540cf8,_0x2954cb=this[_0x938e1a(0x112)]()+'/'+_0x523c1a+_0x938e1a(0x2b8)+_0x44b526+'/block/'+_0x34fcf6;return(await this[_0x938e1a(0x3f6)]['get'](_0x2954cb))[_0x938e1a(0x20e)];}async[_0xf86c5a(0x3ce)](_0x47295d,_0x20a724){const _0x3c1e1d=_0xf86c5a,{unitID:_0xe57465,type:_0x5a73fa,blockID:_0xece122}=_0x20a724,_0x3c21a9=this['_getAPIPrefix']()+_0x3c1e1d(0x16e)+_0x5a73fa+_0x3c1e1d(0x2b8)+_0xe57465+_0x3c1e1d(0x16e)+_0xece122;return(await this['_httpService'][_0x3c1e1d(0x175)](_0x3c21a9))[_0x3c1e1d(0x20e)];}async[_0xf86c5a(0x384)](_0x17bac3,_0x9c41b6){const _0x26b5cf=_0xf86c5a,{unitID:_0x4cc8be,type:_0x262391,from:_0x428e7a,to:_0x255f03}=_0x9c41b6,_0xda3089=this[_0x26b5cf(0x112)]()+'/'+_0x262391+'/unit/'+_0x4cc8be+'/fetchmissing?from='+_0x428e7a+'&to='+_0x255f03;return(await this[_0x26b5cf(0x3f6)][_0x26b5cf(0x175)](_0xda3089))['body'];}[_0xf86c5a(0x342)](){const _0x1efe4d=_0xf86c5a;var _0x488697;return(_0x488697=this['_configService'][_0x1efe4d(0x1bf)](vn))!=null?_0x488697:this[_0x1efe4d(0x112)]();}[_0xf86c5a(0x112)](){const _0x348624=_0xf86c5a;var _0xbc4e0d,_0x5d2c30;const _0x2f6165=this[_0x348624(0x2ae)][_0x348624(0x1bf)](Sn),_0x494a8c=this[_0x348624(0x2ae)][_0x348624(0x1bf)]($);return(_0x5d2c30=(_0xbc4e0d=_0x494a8c==null?void 0x0:_0x494a8c[_0x348624(0x2a4)])!=null?_0xbc4e0d:_0x2f6165)!=null?_0x5d2c30:pn;}async['getResourcesRequest'](_0x78ae0d,_0x3a9424){const _0x2497c9=_0xf86c5a,_0x44638a=_0x2497c9(0x1d1)+_0x3a9424[_0x2497c9(0x246)]+_0x2497c9(0x2b8)+_0x3a9424[_0x2497c9(0x427)]+_0x2497c9(0x182);return(await this[_0x2497c9(0x3f6)][_0x2497c9(0x175)](_0x44638a,{'params':{'resourceId':JSON[_0x2497c9(0x28b)](_0x3a9424[_0x2497c9(0xf2)])}}))['body'];}[_0xf86c5a(0x126)](){const _0x2c679b=_0xf86c5a;throw new Error(_0x2c679b(0x3f9));}[_0xf86c5a(0x3d0)](){const _0x597280=_0xf86c5a;throw new Error(_0x597280(0x3f9));}['saveChangeset'](){const _0x41644e=_0xf86c5a;throw new Error(_0x41644e(0x3f9));}[_0xf86c5a(0x1fb)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x563629=_0xf86c5a;throw new Error(_0x563629(0x3f9));}};Nt=oa([vs(0x0,_0x5bc7de),vs(0x1,_0x370f8c(_0x172026))],Nt);var aa=Object[_0xf86c5a(0xfa)],ca=Object[_0xf86c5a(0x397)],ha=(_0x7620d6,_0x5bdc51,_0x403692,_0x1400a2)=>{const _0x5cdca1=_0xf86c5a;for(var _0x4bc979=_0x1400a2>0x1?void 0x0:_0x1400a2?ca(_0x5bdc51,_0x403692):_0x5bdc51,_0x5dcfed=_0x7620d6[_0x5cdca1(0x28c)]-0x1,_0x3a6166;_0x5dcfed>=0x0;_0x5dcfed--)(_0x3a6166=_0x7620d6[_0x5dcfed])&&(_0x4bc979=(_0x1400a2?_0x3a6166(_0x5bdc51,_0x403692,_0x4bc979):_0x3a6166(_0x4bc979))||_0x4bc979);return _0x1400a2&&_0x4bc979&&aa(_0x5bdc51,_0x403692,_0x4bc979),_0x4bc979;},Ue=(_0x129b3b,_0xd8932b)=>(_0x49ed1e,_0x280cc5)=>_0xd8932b(_0x49ed1e,_0x280cc5,_0x129b3b);let Mt=class extends _0x1ffda6{constructor(_0x52061b,_0x3b065e,_0x10331f,_0x4094fe,_0x241d5c){const _0x3d3298=_0xf86c5a;super(_0x52061b,_0x3b065e,_0x10331f),this['_transformService']=_0x4094fe,this[_0x3d3298(0x435)]=_0x241d5c;}[_0xf86c5a(0x40c)](_0x1aa8e6,_0x2a9337){const _0x34182b=_0xf86c5a,_0x20051e=this[_0x34182b(0x153)](_0x1aa8e6);if(_0x20051e)try{const _0x260f4c=this['_transformStack'](_0x20051e,_0x2a9337);this[_0x34182b(0x31f)](_0x1aa8e6,_0x260f4c);}catch(_0x122f57){this['_logService'][_0x34182b(0x3a5)]('[CollaborationUndoRedoService]',_0x122f57),this[_0x34182b(0x32f)](_0x1aa8e6);}const _0x5b1a88=this[_0x34182b(0x304)](_0x1aa8e6);if(_0x5b1a88)try{const _0x11c68e=this[_0x34182b(0x111)](_0x5b1a88,_0x2a9337);this[_0x34182b(0xf3)](_0x1aa8e6,_0x11c68e);}catch(_0x13aa2b){this[_0x34182b(0x435)]['error'](_0x13aa2b),this[_0x34182b(0x118)](_0x1aa8e6);}}[_0xf86c5a(0x32f)](_0x30f1b7){const _0x2510de=_0xf86c5a,_0x89ce6e=this[_0x2510de(0x153)](_0x30f1b7);_0x89ce6e&&(_0x89ce6e[_0x2510de(0x28c)]=0x0,this[_0x2510de(0x13e)]());}[_0xf86c5a(0x118)](_0x1d9908){const _0x436407=_0xf86c5a,_0x214662=this[_0x436407(0x304)](_0x1d9908);_0x214662&&(_0x214662[_0x436407(0x28c)]=0x0,this[_0x436407(0x13e)]());}['_substituteUndoStack'](_0x34e230,_0x521a46){const _0x41a1cd=_0xf86c5a;this['_undoStacks']['set'](_0x34e230,_0x521a46),this[_0x41a1cd(0x13e)]();}['_substituteRedoStack'](_0x416475,_0x3130c7){const _0x53dacc=_0xf86c5a;this[_0x53dacc(0x32a)]['set'](_0x416475,_0x3130c7),this[_0x53dacc(0x13e)]();}[_0xf86c5a(0x111)](_0x15ac55,_0x58513f){const _0x3f2bbc=_0xf86c5a,_0xd45303=[];let _0x3241b7=_0x58513f,_0x33b040=_0x58513f;for(let _0x5c4c7b=_0x15ac55[_0x3f2bbc(0x28c)]-0x1;_0x5c4c7b>=0x0;_0x5c4c7b--){const {unitID:_0x57fd78,undoMutations:_0x5f156d,redoMutations:_0x54f93c}=_0x15ac55[_0x5c4c7b],_0x11c069=this[_0x3f2bbc(0x235)][_0x3f2bbc(0x1e7)](_0x3241b7,_0x5f156d),_0x1a3e07=this[_0x3f2bbc(0x235)][_0x3f2bbc(0x1e7)](_0x33b040,_0x54f93c);if(_0x2294b0(_0x11c069)||_0x2294b0(_0x1a3e07)){this['_logService'][_0x3f2bbc(0x3a5)]('[CollaborationUndoRedoService]',_0x3f2bbc(0x29b),_0x11c069,_0x1a3e07);break;}_0x3241b7=_0x11c069[_0x3f2bbc(0x244)],_0x33b040=_0x1a3e07[_0x3f2bbc(0x244)],_0xd45303[_0x3f2bbc(0x106)]({'unitID':_0x57fd78,'undoMutations':_0x11c069['m2Prime'],'redoMutations':_0x1a3e07['m2Prime']});}return _0xd45303[_0x3f2bbc(0x1ef)]();}};Mt=ha([Ue(0x0,_0x5edd3d),Ue(0x1,_0x225d18),Ue(0x2,_0x30c0a7),Ue(0x3,_0x285caf),Ue(0x4,_0x593f47)],Mt);class la extends _0x27d368{constructor(){const _0xc050e7=_0xf86c5a;super(),l(this,'urlChange$'),this['urlChange$']=_0x40fa2a(window,_0xc050e7(0x165))[_0xc050e7(0x268)](_0x14bd7d(this[_0xc050e7(0x39d)]),_0x5da9ca(0x1),_0x37c9c6(void 0x0));}[_0xf86c5a(0x1c1)](_0x36d5d4,_0x252718,_0x28d39d=!0x1){const _0x4dc5c1=_0xf86c5a,_0x1ff27e=new URL(window[_0x4dc5c1(0x212)][_0x4dc5c1(0x41b)]);_0x1ff27e[_0x4dc5c1(0x19f)][_0x4dc5c1(0x2be)](_0x36d5d4,_0x252718),_0x28d39d?window[_0x4dc5c1(0x109)][_0x4dc5c1(0x24e)]('','',_0x1ff27e[_0x4dc5c1(0x202)]()):window[_0x4dc5c1(0x109)][_0x4dc5c1(0x18c)]('','',_0x1ff27e[_0x4dc5c1(0x202)]());}[_0xf86c5a(0x143)](_0x4e4a95,_0x3faf5b=!0x1){const _0xeec4ad=_0xf86c5a,_0x404d75=new URL(window[_0xeec4ad(0x212)]['href']);_0x404d75[_0xeec4ad(0x19f)]['delete'](_0x4e4a95),_0x3faf5b?window[_0xeec4ad(0x109)][_0xeec4ad(0x24e)]('','',_0x404d75[_0xeec4ad(0x202)]()):window[_0xeec4ad(0x109)][_0xeec4ad(0x18c)]('','',_0x404d75[_0xeec4ad(0x202)]());}['getParam'](_0x366da1){const _0x2050f4=_0xf86c5a;var _0x59c486;return(_0x59c486=new URL(window[_0x2050f4(0x212)][_0x2050f4(0x41b)])[_0x2050f4(0x19f)]['get'](_0x366da1))!=null?_0x59c486:void 0x0;}}var Js=Object[_0xf86c5a(0xfa)],_a=Object['getOwnPropertyDescriptor'],ua=(_0x798e2a,_0x15192e,_0x572f28)=>_0x15192e in _0x798e2a?Js(_0x798e2a,_0x15192e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x572f28}):_0x798e2a[_0x15192e]=_0x572f28,da=(_0x154c6a,_0x5ca383,_0x53fb74,_0xc56bb8)=>{const _0x3d0509=_0xf86c5a;for(var _0x43d8cf=_0xc56bb8>0x1?void 0x0:_0xc56bb8?_a(_0x5ca383,_0x53fb74):_0x5ca383,_0x4a895b=_0x154c6a[_0x3d0509(0x28c)]-0x1,_0x4b12c0;_0x4a895b>=0x0;_0x4a895b--)(_0x4b12c0=_0x154c6a[_0x4a895b])&&(_0x43d8cf=(_0xc56bb8?_0x4b12c0(_0x5ca383,_0x53fb74,_0x43d8cf):_0x4b12c0(_0x43d8cf))||_0x43d8cf);return _0xc56bb8&&_0x43d8cf&&Js(_0x5ca383,_0x53fb74,_0x43d8cf),_0x43d8cf;},Ve=(_0xafb3df,_0x489723)=>(_0x4ed739,_0x1b3748)=>_0x489723(_0x4ed739,_0x1b3748,_0xafb3df),fa=(_0x48ac90,_0x3c1471,_0x508b90)=>ua(_0x48ac90,_0x3c1471+'',_0x508b90);const ma=_0xf86c5a(0x401);let At=class extends _0x3e59a1{constructor(_0xbbbc3b=An,_0x3a65d0,_0x50c218,_0x4689b8,_0x53aced){const _0x4d6161=_0xf86c5a;super(),this[_0x4d6161(0x3c4)]=_0xbbbc3b,this[_0x4d6161(0x435)]=_0x3a65d0,this[_0x4d6161(0x410)]=_0x50c218,this[_0x4d6161(0x22b)]=_0x4689b8,this[_0x4d6161(0x2ae)]=_0x53aced;const {..._0x2f16a1}=this[_0x4d6161(0x3c4)];this['_configService'][_0x4d6161(0x428)]($,_0x2f16a1);}[_0xf86c5a(0x152)](){const _0x28f914=_0xf86c5a;this[_0x28f914(0x1db)](),_0x1509be(this[_0x28f914(0x22b)],[[ve],[Je],[et]]);}[_0xf86c5a(0x45b)](){const _0x33a01f=_0xf86c5a;_0x1509be(this[_0x33a01f(0x22b)],[[ze]]);}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x2edab2=_0xf86c5a;var _0x146c84,_0x1a0d62,_0x41c1c5,_0x4ad2cd;this[_0x2edab2(0x22b)][_0x2edab2(0x1f5)](_0x47fb5c)&&this[_0x2edab2(0x435)]['error'](_0x2edab2(0x1b2),_0x2edab2(0x24f));let _0x105131=[[_0x47fb5c,{'useClass':Mt}],[he],[Gt],[_0x172026],[qs,{'useClass':la}],[ce],[w],[_0x109644],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Bs],[et],[ks,{'useClass':(_0x1a0d62=(_0x146c84=this['_config'])==null?void 0x0:_0x146c84[_0x2edab2(0x2cc)])!=null?_0x1a0d62:Ct}],[_0x3320f6,{'useClass':_0x41bcb6}],[_0x39263e,{'useClass':Nt}],[_0x1ed2ef,{'useClass':yt}],[_0x1886e9,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x41c1c5=this['_config'])!=null&&_0x41c1c5[_0x2edab2(0x14f)]&&_0x105131[_0x2edab2(0x106)]([tt,{'useClass':fr}]),_0x105131=_0x361c7d(_0x105131,(_0x4ad2cd=this[_0x2edab2(0x3c4)])==null?void 0x0:_0x4ad2cd['override']),_0x105131[_0x2edab2(0x26c)](_0x2058b3=>this[_0x2edab2(0x22b)][_0x2edab2(0x1e9)](_0x2058b3)),this[_0x2edab2(0x281)]();}[_0xf86c5a(0x176)](){const _0x13fb1a=_0xf86c5a;this['disposeWithMe'](this[_0x13fb1a(0x410)][_0x13fb1a(0x361)](_0x751d23[_0x13fb1a(0x320)],[wt])),this['disposeWithMe'](this[_0x13fb1a(0x410)][_0x13fb1a(0x361)](_0x751d23[_0x13fb1a(0x1af)],[Pt]));}[_0xf86c5a(0x281)](){const _0x3ae0ea=_0xf86c5a;var _0x36f9c7,_0x34f491;this[_0x3ae0ea(0x22b)]['get'](_0x172026)[_0x3ae0ea(0x25f)]({'priority':0x14,'interceptor':_0x5a0116({'maxParallel':0x6})}),this[_0x3ae0ea(0x22b)][_0x3ae0ea(0x175)](Qe),(_0x36f9c7=this[_0x3ae0ea(0x3c4)])!=null&&_0x36f9c7[_0x3ae0ea(0xed)]||this[_0x3ae0ea(0x22b)]['get'](w)[_0x3ae0ea(0x237)](),(_0x34f491=this['_config'])!=null&&_0x34f491[_0x3ae0ea(0x23a)]&&this[_0x3ae0ea(0x22b)][_0x3ae0ea(0x175)](Ze),this[_0x3ae0ea(0x22b)][_0x3ae0ea(0x175)](Le),this[_0x3ae0ea(0x22b)]['has'](Me)&&this['_injector'][_0x3ae0ea(0x175)](Me);}};fa(At,_0xf86c5a(0x386),ma),At=da([_0x2db17c(_0x5d47ea),Ve(0x1,_0x593f47),Ve(0x2,_0x366dfc),Ve(0x3,_0x370f8c(_0x595e81)),Ve(0x4,_0x5bc7de)],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,Bs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,bn as HEARTBEAT_INTERVAL_KEY,$s as HEARTBEAT_TIMEOUT_KEY,ks as ICollaborationSocketService,qs 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};
|
1
|
+
const _0x159fb9=_0x4457;(function(_0xc88504,_0x49b9c6){const _0x542a26=_0x4457,_0x1ee1fe=_0xc88504();while(!![]){try{const _0x4b9d32=-parseInt(_0x542a26(0x20b))/0x1*(-parseInt(_0x542a26(0x464))/0x2)+-parseInt(_0x542a26(0x1e5))/0x3+-parseInt(_0x542a26(0x2da))/0x4+parseInt(_0x542a26(0x3e6))/0x5+-parseInt(_0x542a26(0x3fe))/0x6+parseInt(_0x542a26(0x317))/0x7+parseInt(_0x542a26(0x456))/0x8;if(_0x4b9d32===_0x49b9c6)break;else _0x1ee1fe['push'](_0x1ee1fe['shift']());}catch(_0x35078b){_0x1ee1fe['push'](_0x1ee1fe['shift']());}}}(_0x60b8,0xc3067));var Ki=Object[_0x159fb9(0xcf)],zi=(_0x1cdf4c,_0x2c49f9,_0x3facf6)=>_0x2c49f9 in _0x1cdf4c?Ki(_0x1cdf4c,_0x2c49f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3facf6}):_0x1cdf4c[_0x2c49f9]=_0x3facf6,g=(_0x596ac6,_0x16182e,_0x1cc0f8)=>zi(_0x596ac6,typeof _0x16182e!='symbol'?_0x16182e+'':_0x16182e,_0x1cc0f8);import{createIdentifier as _0x12029c,Inject as _0x3e8773,Disposable as _0x10d2e7,DisposableCollection as _0x3d6474,toDisposable as _0x3f9d32,IConfigService as _0x3ade87,ILogService as _0x3738e4,UserManagerService as _0x1b0543,UniverInstanceType as _0x466101,IUniverInstanceService as _0x40ba52,LocaleService as _0x51cff0,Optional as _0x24e594,RxDisposable as _0x7d7f86,Injector as _0x3371c0,Tools as _0x26d13d,ILocalStorageService as _0x2d0198,Rectangle as _0x1635b8,ICommandService as _0x1bd495,DOC_RANGE_TYPE as _0x4b8239,JSONX as _0x30291a,CommandType as _0x351b9b,IPermissionService as _0x1b485a,IUndoRedoService as _0x551c13,sequenceExecute as _0x4af945,debounce as _0x4222d7,COLORS as _0x511505,ColorKit as _0x234c39,ThemeService as _0x3c9ff6,fromEventSubject as _0xd3c2e0,useDependency as _0x54cbeb,connectInjector as _0xfb686e,Workbook as _0x54374d,isInternalEditorID as _0x31cc25,LocalUndoRedoService as _0x27ff78,IContextService as _0x2514ed,DependentOn as _0x2ae560,Plugin as _0x34b0ea,touchDependencies as _0x481c3e,IAuthzIoService as _0x57da24,registerDependencies as _0x4d3068,mergeOverrideWithDependencies as _0x2a8f9e}from'@univerjs/core';import{Subject as _0x2ec24b,merge as _0x548bea,takeUntil as _0x514462,BehaviorSubject as _0x4cf3b1,distinctUntilChanged as _0x55352a,fromEvent as _0x55c3c6,ReplaySubject as _0x2eb69e,take as _0x4c54f0,map as _0x27fdab,shareReplay as _0x37b8c8,of as _0x3f0552,debounceTime as _0x21286a,filter as _0x5add67,switchMap as _0x33575c,combineLatest as _0x359e72,concatMap as _0x2cba6f,mapTo as _0x54420d}from'rxjs';import{map as _0x24eeb9,take as _0x277270,filter as _0x1e7f12,delay as _0x1d6c6a,throttleTime as _0x3015d8,takeUntil as _0x1775d8,switchMap as _0x214e84}from'rxjs/operators';import{MessageType as _0x450e6f,Tooltip as _0x2300df}from'@univerjs/design';import{IBeforeCloseService as _0xb2b56d,IMessageService as _0x546aee,INotificationService as _0x294915,useObservable as _0x5baee7,BuiltInUIPart as _0x2d0c0e,IUIPartsService as _0x4a5d99}from'@univerjs/ui';import{HTTPService as _0x4dbc01,WebSocketService as _0x244fc6,MergeInterceptorFactory as _0x3c9381,HTTPRequest as _0x179c59,UniverNetworkPlugin as _0x3f779a,ThresholdInterceptorFactory as _0x1c106f}from'@univerjs/network';import{CollaborationEvent as _0x33d7b7,parseChangesetToProtocol as _0x427732,ISnapshotServerService as _0xbb044,isTransformMutationFailure as _0x490f82,isTransformMutationsWithChangesetSuccess as _0x426291,ITransformService as _0x1c07b8,RevisionService as _0x2cef54,mapDocumentTypeToUniverType as _0x1fb645,isTransformChangesetsSuccess as _0x29cde1,CompressMutationService as _0x386455,parseProtocolChangeset as _0x460410,SnapshotService as _0x33ed43,textEncoder as _0x4ebea7,b64DecodeUnicode as _0x5896eb,isTransformMutationsWithChangesetFailure as _0x3bee1f,UniverCollaborationPlugin as _0x19f686}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xae2320}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x1d29e7,DocStateChangeManagerService as _0x4f127d,NodePositionConvertToCursor as _0x3801fe,NodePositionConvertToRectRange as _0x215c49,TEXT_RANGE_LAYER_INDEX as _0x33eb3d,SetDocZoomRatioOperation as _0x49b4e3}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x4d7738,SetSelectionsOperation as _0x34fe8d,InsertSheetMutation as _0x48aa52,EmptyMutation as _0x526131,WorkbookEditablePermission as _0x435a22,RefRangeService as _0x49343b,EffectRefRangId as _0x48bd13,handleIRemoveRow as _0x5c0a81,handleIRemoveCol as _0x5a25ad,handleMoveRange as _0x38063e,handleInsertRow as _0x4a6b6a,handleInsertRangeMoveRight as _0x7fc677,handleInsertRangeMoveDown as _0x480e3a,handleInsertCol as _0x114072,handleDeleteRangeMoveUp as _0x4793c5,handleDeleteRangeMoveLeft as _0x453619,runRefRangeMutations as _0x3fc3f2,SetWorksheetActivateCommand as _0x135826}from'@univerjs/sheets';import{IRenderManagerService as _0x525bf5,Shape as _0x3b774,Rect as _0x1bba01,getColor as _0x4b9053,RegularPolygon as _0x4cb9ba,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4319cf,Vector2 as _0x2028a1}from'@univerjs/engine-render';import{DocSelectionManagerService as _0xa56c0,RichTextEditingMutation as _0xe026b8,SetTextSelectionsOperation as _0x2082b4,DocSkeletonManagerService as _0x1b3e95}from'@univerjs/docs';import{ImageSourceType as _0xbfd346,ImageUploadStatusType as _0x10bbad,IImageIoService as _0x2ea827}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x2d1f09,serializeRangeWithSheet as _0x59f038}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0xaebadb,VIEWPORT_KEY as _0x22231,getCoordByCell as _0x543525,getSheetObject as _0x57be16,SheetPermissionInitController as _0x2f3964}from'@univerjs/sheets-ui';import _0xc50dfc,{forwardRef as _0x1ac654,useRef as _0x2b0e32,createElement as _0x48c9b2,useCallback as _0x2e422b}from'react';import{IRemoteInstanceService as _0x1b6d3d}from'@univerjs/rpc';const rr='SNAPSHOT_SERVER_URL_KEY',or=_0x159fb9(0x484),ar=_0x159fb9(0xe9),Gc=_0x159fb9(0xd6),cr=0x7d0,hr=_0x159fb9(0x479),lr='ws://127.0.0.1:8000/universer-api/comb/connect',_r=_0x159fb9(0x303),ur=0x7530,bi=_0x159fb9(0x30b),Ti=0x4e20,dr=0x4e20,fr=_0x159fb9(0x488),vr=0x3,mr=_0x159fb9(0x1b2),pr=0x3e8,gr=_0x159fb9(0x321),Sr=_0x159fb9(0x394),Ir='LOGIN_URL_KEY',Cr=_0x159fb9(0x204);var Ri=(_0x3748d2=>(_0x3748d2[_0x3748d2[_0x159fb9(0x290)]=0x0]=_0x159fb9(0x290),_0x3748d2[_0x3748d2['OK']=0x1]='OK',_0x3748d2[_0x3748d2[_0x159fb9(0x327)]=0x2]=_0x159fb9(0x327),_0x3748d2[_0x3748d2[_0x159fb9(0x469)]=0x3]='PERMISSION_DENIED',_0x3748d2[_0x3748d2[_0x159fb9(0x215)]=0x4]=_0x159fb9(0x215),_0x3748d2[_0x3748d2[_0x159fb9(0x44f)]=0x5]=_0x159fb9(0x44f),_0x3748d2[_0x3748d2[_0x159fb9(0x1b1)]=0x6]='ALREADY_EXISTS',_0x3748d2[_0x3748d2['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x3748d2[_0x3748d2[_0x159fb9(0x21a)]=0x8]=_0x159fb9(0x21a),_0x3748d2[_0x3748d2[_0x159fb9(0x373)]=0x9]='COMPLETION_FINISHED',_0x3748d2[_0x3748d2[_0x159fb9(0x131)]=0x1389]=_0x159fb9(0x131),_0x3748d2[_0x3748d2['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x159fb9(0x1c1),_0x3748d2[_0x3748d2[_0x159fb9(0x1f0)]=0x1772]=_0x159fb9(0x1f0),_0x3748d2[_0x3748d2['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3748d2[_0x3748d2[_0x159fb9(0xf6)]=0x1b59]=_0x159fb9(0xf6),_0x3748d2[_0x3748d2[_0x159fb9(0x1c7)]=0x1b5a]=_0x159fb9(0x1c7),_0x3748d2[_0x3748d2['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3748d2[_0x3748d2[_0x159fb9(0x173)]=0x1b5c]=_0x159fb9(0x173),_0x3748d2[_0x3748d2[_0x159fb9(0x2ee)]=0x1b5d]=_0x159fb9(0x2ee),_0x3748d2[_0x3748d2[_0x159fb9(0x14b)]=0x1f41]=_0x159fb9(0x14b),_0x3748d2[_0x3748d2[_0x159fb9(0x418)]=0x2329]=_0x159fb9(0x418),_0x3748d2[_0x3748d2[_0x159fb9(0x273)]=0x232a]=_0x159fb9(0x273),_0x3748d2[_0x3748d2[_0x159fb9(0x1e9)]=0x232b]=_0x159fb9(0x1e9),_0x3748d2[_0x3748d2['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x159fb9(0x39b),_0x3748d2[_0x3748d2[_0x159fb9(0x3a2)]=0x232d]=_0x159fb9(0x3a2),_0x3748d2[_0x3748d2[_0x159fb9(0x23c)]=0x2711]=_0x159fb9(0x23c),_0x3748d2[_0x3748d2[_0x159fb9(0x302)]=0x2712]=_0x159fb9(0x302),_0x3748d2[_0x3748d2[_0x159fb9(0x3f0)]=0x2713]=_0x159fb9(0x3f0),_0x3748d2[_0x3748d2[_0x159fb9(0x17f)]=0x2714]=_0x159fb9(0x17f),_0x3748d2[_0x3748d2[_0x159fb9(0x430)]=-0x1]='UNRECOGNIZED',_0x3748d2))(Ri||{}),ce=(_0x100c58=>(_0x100c58[_0x100c58[_0x159fb9(0x45d)]=0x0]=_0x159fb9(0x45d),_0x100c58[_0x100c58[_0x159fb9(0x44a)]=0x1]=_0x159fb9(0x44a),_0x100c58[_0x100c58[_0x159fb9(0x166)]=0x2]=_0x159fb9(0x166),_0x100c58[_0x100c58[_0x159fb9(0x42f)]=0x3]=_0x159fb9(0x42f),_0x100c58[_0x100c58['UNIVER_PROJECT']=0x4]=_0x159fb9(0x41f),_0x100c58[_0x100c58[_0x159fb9(0x430)]=-0x1]=_0x159fb9(0x430),_0x100c58))(ce||{}),W=(_0x5bba1f=>(_0x5bba1f[_0x5bba1f[_0x159fb9(0x2b0)]=0x0]=_0x159fb9(0x2b0),_0x5bba1f[_0x5bba1f[_0x159fb9(0x1ac)]=0x1]=_0x159fb9(0x1ac),_0x5bba1f[_0x5bba1f[_0x159fb9(0x2c7)]=0x2]=_0x159fb9(0x2c7),_0x5bba1f[_0x5bba1f[_0x159fb9(0xd5)]=0x3]=_0x159fb9(0xd5),_0x5bba1f[_0x5bba1f[_0x159fb9(0x3a0)]=0x4]='INGEST',_0x5bba1f[_0x5bba1f['HEARTBEAT']=0x5]=_0x159fb9(0x40a),_0x5bba1f[_0x5bba1f[_0x159fb9(0x1e7)]=0x6]='RECV',_0x5bba1f[_0x5bba1f['UNRECOGNIZED']=-0x1]=_0x159fb9(0x430),_0x5bba1f))(W||{}),Is=(_0x253750=>(_0x253750[_0x253750[_0x159fb9(0x245)]=0x0]=_0x159fb9(0x245),_0x253750[_0x253750['OK']=0x1]='OK',_0x253750[_0x253750['FAIL']=0x2]=_0x159fb9(0x47d),_0x253750[_0x253750[_0x159fb9(0x430)]=-0x1]=_0x159fb9(0x430),_0x253750))(Is||{}),yi=(_0x13b146=>(_0x13b146[_0x13b146[_0x159fb9(0x2ba)]=0x0]=_0x159fb9(0x2ba),_0x13b146[_0x13b146[_0x159fb9(0x3e1)]=0x1]=_0x159fb9(0x3e1),_0x13b146[_0x13b146[_0x159fb9(0x25a)]=0x2]=_0x159fb9(0x25a),_0x13b146[_0x13b146['UnitEmbedded']=0x3]=_0x159fb9(0x35e),_0x13b146[_0x13b146[_0x159fb9(0xe4)]=0x4]=_0x159fb9(0xe4),_0x13b146[_0x13b146['UNRECOGNIZED']=-0x1]=_0x159fb9(0x430),_0x13b146))(yi||{});const ie=_0x159fb9(0x3dd),Er={};function br(_0x49db7b){const _0x3cbb7c=_0x159fb9;var _0xc9d0e2,_0x116de9,_0x13017c,_0x3c72e7,_0x3e317f;const _0x243921=_0x49db7b[_0x3cbb7c(0x216)],_0x2d454f=JSON[_0x3cbb7c(0x3c4)](_0x243921);switch(_0x2d454f[_0x3cbb7c(0x336)]){case W[_0x3cbb7c(0x40a)]:case W[_0x3cbb7c(0x1ac)]:{const _0x11dd18=_0x2d454f[_0x3cbb7c(0x475)];return{..._0x2d454f,'data':_0x11dd18,'cmd':_0x2d454f[_0x3cbb7c(0x336)]};}case W[_0x3cbb7c(0x2c7)]:{const _0x57e032=_0x2d454f[_0x3cbb7c(0x258)];return{..._0x2d454f,'data':_0x57e032,'cmd':_0x2d454f[_0x3cbb7c(0x336)]};}case W[_0x3cbb7c(0x1e7)]:{const _0x28c073=_0x2d454f['collaMsg'];switch(_0x28c073['eventID']){case _0x33d7b7[_0x3cbb7c(0x15f)]:return{..._0x2d454f,'data':{..._0x28c073,'data':(_0xc9d0e2=_0x28c073[_0x3cbb7c(0x473)])==null?void 0x0:_0xc9d0e2['cs']},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7[_0x3cbb7c(0x306)]:return{..._0x2d454f,'data':{..._0x28c073,'data':(_0x116de9=_0x28c073[_0x3cbb7c(0x3f5)])==null?void 0x0:_0x116de9['cs']},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7[_0x3cbb7c(0x2a9)]:return{..._0x2d454f,'data':{..._0x28c073,'data':(_0x13017c=_0x28c073[_0x3cbb7c(0x152)])==null?void 0x0:_0x13017c['cs']},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7[_0x3cbb7c(0x339)]:return{..._0x2d454f,'data':{..._0x28c073,'data':(_0x3c72e7=_0x28c073[_0x3cbb7c(0x109)])==null?void 0x0:_0x3c72e7['cs']},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7[_0x3cbb7c(0x1a0)]:return{..._0x2d454f,'data':{..._0x28c073,'data':(_0x3e317f=_0x28c073[_0x3cbb7c(0xf4)])==null?void 0x0:_0x3e317f['cs']},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7[_0x3cbb7c(0x497)]:return{..._0x2d454f,'data':{..._0x28c073,'data':_0x28c073['updateCursorEvent']},'cmd':_0x2d454f['cmd']};case _0x33d7b7[_0x3cbb7c(0x44d)]:return{..._0x2d454f,'data':{..._0x28c073,'data':_0x28c073[_0x3cbb7c(0x3ac)]},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7[_0x3cbb7c(0x477)]:return{..._0x2d454f,'data':{..._0x28c073,'data':_0x28c073[_0x3cbb7c(0x2c9)]},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7['LIVESHARE_NEW_HOST']:return{..._0x2d454f,'data':{..._0x28c073,'data':_0x28c073[_0x3cbb7c(0x241)]},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7['LIVESHARE_FETCH_OPERATIONS']:case _0x33d7b7[_0x3cbb7c(0x2a6)]:return{..._0x2d454f,'data':{..._0x28c073,'data':_0x28c073[_0x3cbb7c(0x357)]},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7['LIVESHARE_TERMINATE']:return{..._0x2d454f,'data':{..._0x28c073,'data':_0x28c073[_0x3cbb7c(0x241)]},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7[_0x3cbb7c(0x457)]:return{..._0x2d454f,'data':_0x28c073,'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7[_0x3cbb7c(0x1c6)]:return{..._0x2d454f,'data':{..._0x28c073,'data':_0x28c073[_0x3cbb7c(0x319)]},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7[_0x3cbb7c(0x395)]:return{..._0x2d454f,'data':{..._0x28c073,'data':_0x28c073[_0x3cbb7c(0x2d7)]},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};case _0x33d7b7['SHOULD_CLOSE_CONN']:return{..._0x2d454f,'data':{..._0x28c073,'data':_0x28c073[_0x3cbb7c(0x18a)]},'cmd':_0x2d454f[_0x3cbb7c(0x336)]};default:return _0x2d454f;}}default:return _0x2d454f;}}function Tr(_0x3a6df3){const _0x51851a=_0x159fb9;switch(_0x3a6df3[_0x51851a(0x336)]){case W[_0x51851a(0x40a)]:case W['HELLO']:return JSON[_0x51851a(0x25e)]({'cmd':_0x3a6df3[_0x51851a(0x336)],'routeKey':_0x3a6df3[_0x51851a(0xe3)]});case W[_0x51851a(0x3a0)]:{let _0x4b6b66;switch(_0x3a6df3[_0x51851a(0x216)][_0x51851a(0x39e)]){case _0x33d7b7[_0x51851a(0x497)]:{_0x4b6b66={'eventID':_0x33d7b7[_0x51851a(0x497)],'updateCursorEvent':_0x3a6df3[_0x51851a(0x216)][_0x51851a(0x216)]};break;}case _0x33d7b7[_0x51851a(0x477)]:{_0x4b6b66={'eventID':_0x33d7b7[_0x51851a(0x477)],'leaveEvent':_0x3a6df3[_0x51851a(0x216)][_0x51851a(0x216)]};break;}case _0x33d7b7[_0x51851a(0x44d)]:{_0x4b6b66={'eventID':_0x33d7b7['USERS_ENTER'],'joinEvent':_0x3a6df3['data'][_0x51851a(0x216)]};break;}case _0x33d7b7['LIVESHARE_NEW_HOST']:{_0x4b6b66={'eventID':_0x33d7b7[_0x51851a(0x18c)],'liveShareNewHost':_0x3a6df3[_0x51851a(0x216)][_0x51851a(0x216)]};break;}case _0x33d7b7['LIVESHARE_OPERATION']:{_0x4b6b66={'eventID':_0x33d7b7['LIVESHARE_OPERATION'],'liveShareOperation':_0x3a6df3[_0x51851a(0x216)][_0x51851a(0x216)]};break;}case _0x33d7b7[_0x51851a(0x223)]:{_0x4b6b66={'eventID':_0x33d7b7[_0x51851a(0x223)],'liveShareTerminate':_0x3a6df3[_0x51851a(0x216)][_0x51851a(0x216)]};break;}case _0x33d7b7[_0x51851a(0x1d1)]:{_0x4b6b66={'eventID':_0x33d7b7['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x3a6df3['data'][_0x51851a(0x216)]};break;}case _0x33d7b7[_0x51851a(0x176)]:{_0x4b6b66={'eventID':_0x33d7b7[_0x51851a(0x176)]};break;}default:_0x4b6b66={'eventID':_0x3a6df3[_0x51851a(0x216)]['eventID']};}return JSON[_0x51851a(0x25e)]({'cmd':_0x3a6df3[_0x51851a(0x336)],'routeKey':_0x3a6df3[_0x51851a(0xe3)],'collaMsg':_0x4b6b66});}case W[_0x51851a(0x2c7)]:return JSON[_0x51851a(0x25e)]({'cmd':_0x3a6df3[_0x51851a(0x336)],'routeKey':_0x3a6df3[_0x51851a(0xe3)],'joinReq':_0x3a6df3[_0x51851a(0x216)]});case W[_0x51851a(0xd5)]:return JSON[_0x51851a(0x25e)]({'cmd':_0x3a6df3[_0x51851a(0x336)],'routeKey':_0x3a6df3[_0x51851a(0xe3)],'leaveReq':_0x3a6df3['data']});default:throw new Error(_0x51851a(0x2b3));}}var Rr=Object[_0x159fb9(0xcf)],yr=Object[_0x159fb9(0x37a)],Or=(_0x5ebdd1,_0x5bf7b2,_0x142e4f,_0x2adde8)=>{const _0x61ada1=_0x159fb9;for(var _0x55c933=_0x2adde8>0x1?void 0x0:_0x2adde8?yr(_0x5bf7b2,_0x142e4f):_0x5bf7b2,_0xa91fd2=_0x5ebdd1[_0x61ada1(0x3e5)]-0x1,_0x2aaf36;_0xa91fd2>=0x0;_0xa91fd2--)(_0x2aaf36=_0x5ebdd1[_0xa91fd2])&&(_0x55c933=(_0x2adde8?_0x2aaf36(_0x5bf7b2,_0x142e4f,_0x55c933):_0x2aaf36(_0x55c933))||_0x55c933);return _0x2adde8&&_0x55c933&&Rr(_0x5bf7b2,_0x142e4f,_0x55c933),_0x55c933;},qe=(_0x3978e4,_0x206913)=>(_0x23085d,_0x24fead)=>_0x206913(_0x23085d,_0x24fead,_0x3978e4);const Oi=_0x12029c(_0x159fb9(0x2ad));function wr(_0x166318,_0x34f3db,_0x44dac9){const _0x317837=_0x159fb9;return _0x166318+'/'+_0x34f3db+_0x317837(0x254)+_0x44dac9+'/new_changes';}let es=class extends _0x10d2e7{constructor(_0x3ec82e,_0x5b5cbf,_0x7fc464,_0x23f983,_0x20963d){const _0x348dd0=_0x159fb9;super(),this[_0x348dd0(0xd0)]=_0x3ec82e,this[_0x348dd0(0x284)]=_0x5b5cbf,this[_0x348dd0(0x18b)]=_0x7fc464,this[_0x348dd0(0x461)]=_0x23f983,this[_0x348dd0(0xe7)]=_0x20963d;}[_0x159fb9(0x1a1)](_0x42adc5){const _0x5b45fa=_0x159fb9,_0x5be33f=this[_0x5b45fa(0x284)]['createSocket'](_0x42adc5);if(!_0x5be33f)throw new Error(_0x5b45fa(0x3ea));const _0x221808=new _0x3d6474(),_0x26b563=new _0x2ec24b();_0x221808[_0x5b45fa(0x342)](_0x5be33f['close$'][_0x5b45fa(0x2fd)](_0x3b6226=>_0x26b563['next'](_0x3b6226))),_0x221808[_0x5b45fa(0x342)](_0x3f9d32(()=>_0x26b563[_0x5b45fa(0x138)]()));const _0x1fb52a=new _0x2ec24b();_0x221808[_0x5b45fa(0x342)](_0x5be33f[_0x5b45fa(0x274)]['subscribe'](_0x818c7d=>_0x1fb52a[_0x5b45fa(0x22f)](_0x818c7d))),_0x221808[_0x5b45fa(0x342)](_0x3f9d32(()=>_0x1fb52a[_0x5b45fa(0x138)]()));const _0x4f1610=new _0x2ec24b();_0x221808[_0x5b45fa(0x342)](_0x5be33f[_0x5b45fa(0x427)][_0x5b45fa(0x2fd)](_0x3bc50=>{const _0x421128=_0x5b45fa,_0x32bdba=br(_0x3bc50);_0x4f1610[_0x421128(0x22f)](_0x32bdba);})),_0x221808[_0x5b45fa(0x342)](_0x3f9d32(()=>_0x4f1610[_0x5b45fa(0x138)]()));let _0xf6d0dc;const _0xf25a7=()=>{const _0x20d1d4=_0x5b45fa;_0x1fb52a['next'](new Event(_0x20d1d4(0x2f3))),_0x26b563[_0x20d1d4(0x22f)](new CloseEvent('connection\x20error')),_0xf6d0dc['close']();};return _0xf6d0dc={'memberID':'','close$':_0x26b563[_0x5b45fa(0x118)](),'error$':_0x1fb52a[_0x5b45fa(0x118)](),'open$':_0x5be33f[_0x5b45fa(0xc5)],'message$':_0x4f1610[_0x5b45fa(0x118)](),'send':_0x30b0a4=>{const _0xc9ab0b=_0x5b45fa;if(_0x30b0a4[_0xc9ab0b(0x336)]===W['INGEST']){if(_0x30b0a4[_0xc9ab0b(0x216)][_0xc9ab0b(0x39e)]===_0x33d7b7['SUBMIT_CHANGESET']){this[_0xc9ab0b(0x16e)](_0xf6d0dc,_0x30b0a4[_0xc9ab0b(0x216)])['catch'](_0x43fe1b=>{const _0x270e5e=_0xc9ab0b;this['_logService'][_0x270e5e(0x441)](_0x43fe1b),_0xf25a7();});return;}if(_0x30b0a4[_0xc9ab0b(0x216)]['eventID']===_0x33d7b7[_0xc9ab0b(0x1dc)]){const _0x3b15f0=_0x30b0a4[_0xc9ab0b(0x216)];this[_0xc9ab0b(0x19b)](_0x3b15f0)[_0xc9ab0b(0x171)](_0x13f2f6=>{const _0x284adf=_0xc9ab0b;_0x4f1610[_0x284adf(0x22f)]({'cmd':W[_0x284adf(0x1e7)],'code':Is['OK'],'routeKey':_0x3b15f0[_0x284adf(0x216)][_0x284adf(0x1bc)],'routeType':'','data':{'eventID':_0x33d7b7[_0x284adf(0x15c)],'data':{'changesets':_0x13f2f6}}});})['catch'](_0x299c76=>{const _0x22ab65=_0xc9ab0b;this[_0x22ab65(0x461)]['error'](_0x299c76),_0xf25a7();});return;}}_0x5be33f['send'](Tr(_0x30b0a4));},'close':()=>{const _0x16f105=_0x5b45fa;_0x5be33f[_0x16f105(0x3cd)](),_0x221808['dispose']();}},_0xf6d0dc;}async[_0x159fb9(0x16e)](_0x3ba806,_0x3c8373){const _0x30a5a1=_0x159fb9;var _0x17bbe0,_0x7fa02c;const {unitType:_0x42c196,unitID:_0x102982,changeset:_0x13e280}=_0x3c8373[_0x30a5a1(0x216)],_0x894924={'unitID':_0x102982,'memberID':_0x3ba806[_0x30a5a1(0x1fb)],'type':_0x42c196,'changeset':_0x427732(_0x13e280)},_0x18f788=this[_0x30a5a1(0x18b)][_0x30a5a1(0x2e1)](gr),_0x56d6d1=this[_0x30a5a1(0x18b)]['getConfig'](ie),_0x4f22df=wr((_0x7fa02c=(_0x17bbe0=_0x56d6d1==null?void 0x0:_0x56d6d1[_0x30a5a1(0x289)])!=null?_0x17bbe0:_0x18f788)!=null?_0x7fa02c:Sr,_0x42c196,_0x102982);try{await this[_0x30a5a1(0xd0)][_0x30a5a1(0x424)](_0x4f22df,{'body':_0x894924});}catch(_0x3a4ebc){throw this[_0x30a5a1(0x461)][_0x30a5a1(0x441)](_0x30a5a1(0x2d6),'submit\x20changeset\x20error!'),_0x3a4ebc;}}async[_0x159fb9(0x19b)](_0x1dbf82){const _0xf33086=_0x159fb9,{unitID:_0x22871f,from:_0x12dd66,to:_0x50313a,unitType:_0x48ef4b}=_0x1dbf82[_0xf33086(0x216)];return(await this[_0xf33086(0xe7)][_0xf33086(0x214)]({'metadata':void 0x0},{'unitID':_0x22871f,'type':_0x48ef4b,'from':_0x12dd66,'to':_0x50313a}))[_0xf33086(0x1ad)];}};es=Or([qe(0x0,_0x3e8773(_0x4dbc01)),qe(0x1,_0x3e8773(_0x244fc6)),qe(0x2,_0x3ade87),qe(0x3,_0x3738e4),qe(0x4,_0xbb044)],es);const Dr=_0x159fb9(0x13b);function Pr(_0x5e4b05){const _0x572b79=_0x159fb9;return JSON[_0x572b79(0x25e)](_0x5e4b05)[_0x572b79(0x3e5)];}class wi{constructor(){const _0x1c0b47=_0x159fb9;g(this,_0x1c0b47(0x2d2),new _0x2ec24b()),g(this,'commentUpdate$',this[_0x1c0b47(0x2d2)][_0x1c0b47(0x118)]());}[_0x159fb9(0x10d)](_0x43e872){const _0xc5b8a0=_0x159fb9;this[_0xc5b8a0(0x2d2)][_0xc5b8a0(0x22f)](_0x43e872);}}var Ur=Object[_0x159fb9(0xcf)],Nr=Object[_0x159fb9(0x37a)],Ar=(_0x12f1f2,_0x18dc65,_0x22ff7f,_0x205db0)=>{const _0x5b8b0a=_0x159fb9;for(var _0x45e83e=_0x205db0>0x1?void 0x0:_0x205db0?Nr(_0x18dc65,_0x22ff7f):_0x18dc65,_0x4b166f=_0x12f1f2[_0x5b8b0a(0x3e5)]-0x1,_0x38de8b;_0x4b166f>=0x0;_0x4b166f--)(_0x38de8b=_0x12f1f2[_0x4b166f])&&(_0x45e83e=(_0x205db0?_0x38de8b(_0x18dc65,_0x22ff7f,_0x45e83e):_0x38de8b(_0x45e83e))||_0x45e83e);return _0x205db0&&_0x45e83e&&Ur(_0x18dc65,_0x22ff7f,_0x45e83e),_0x45e83e;},Hs=(_0x17ecc8,_0x55d69a)=>(_0x536619,_0x58f319)=>_0x55d69a(_0x536619,_0x58f319,_0x17ecc8);let Ne=class extends _0x10d2e7{constructor(_0x5f1a1d,_0x468737){const _0x5214c8=_0x159fb9;super(),g(this,_0x5214c8(0x149),new Map()),(this[_0x5214c8(0x116)]=_0x5f1a1d,this['_userManagerService']=_0x468737,this['disposeWithMe'](_0x3f9d32(_0x548bea(this['_univerInstanceService'][_0x5214c8(0x36c)](_0x466101[_0x5214c8(0x166)])[_0x5214c8(0x26b)](_0x24eeb9(_0x4d36a9=>_0x4d36a9['getUnitId']())),this[_0x5214c8(0x116)][_0x5214c8(0x36c)](_0x466101[_0x5214c8(0x44a)])[_0x5214c8(0x26b)](_0x24eeb9(_0xcc2504=>_0xcc2504[_0x5214c8(0xd4)]())),this['_univerInstanceService'][_0x5214c8(0x36c)](_0x466101[_0x5214c8(0x42f)])[_0x5214c8(0x26b)](_0x24eeb9(_0x41cf60=>_0x41cf60[_0x5214c8(0xd4)]())))['subscribe'](_0x5a6fcb=>this['_removeRoom'](_0x5a6fcb)))));}[_0x159fb9(0x16f)](_0x2a87f1){const _0x42f2a5=_0x159fb9;this['_userManagerService'][_0x42f2a5(0x16f)](_0x2a87f1);}[_0x159fb9(0x2d8)](){const _0x561bfa=_0x159fb9;return this[_0x561bfa(0x23f)][_0x561bfa(0x2d8)]();}[_0x159fb9(0x44b)](_0x387844,_0x436313){const _0x24ef19=_0x159fb9;let _0x5d4cdf=this[_0x24ef19(0x149)][_0x24ef19(0x413)](_0x387844);_0x5d4cdf||(_0x5d4cdf=new Mr(),this[_0x24ef19(0x149)]['set'](_0x387844,_0x5d4cdf)),_0x5d4cdf[_0x24ef19(0x44b)](_0x436313);}[_0x159fb9(0x364)](_0x2190b8,_0x27df43){const _0x1c02dc=_0x159fb9,_0x56115e=this[_0x1c02dc(0x149)][_0x1c02dc(0x413)](_0x2190b8);_0x56115e&&_0x56115e[_0x1c02dc(0x364)](_0x27df43);}[_0x159fb9(0x420)](_0x4bc8c5){const _0x1c6e80=_0x159fb9;return this[_0x1c6e80(0x149)][_0x1c6e80(0x413)](_0x4bc8c5);}[_0x159fb9(0x3a9)](_0x4c9ff9,_0x4a69a6){const _0x484beb=_0x159fb9,_0x3a1fc7=this[_0x484beb(0x149)][_0x484beb(0x413)](_0x4c9ff9);if(_0x3a1fc7)return _0x3a1fc7[_0x484beb(0x3a9)](_0x4a69a6);}['_removeRoom'](_0x15a5d8){const _0x1d3213=_0x159fb9,_0x3257a2=this[_0x1d3213(0x149)][_0x1d3213(0x413)](_0x15a5d8);_0x3257a2&&(_0x3257a2['dispose'](),this[_0x1d3213(0x149)][_0x1d3213(0x24e)](_0x15a5d8));}[_0x159fb9(0xda)](){const _0x512b47=_0x159fb9;this[_0x512b47(0x149)]['forEach'](_0x6257d3=>_0x6257d3[_0x512b47(0xda)]()),this['_roomMembers'][_0x512b47(0x35a)]();}};Ne=Ar([Hs(0x0,_0x40ba52),Hs(0x1,_0x3e8773(_0x1b0543))],Ne);class Mr extends _0x10d2e7{constructor(){super(...arguments),g(this,'_members',new Map());}[_0x159fb9(0xda)](){const _0x7d470e=_0x159fb9;this[_0x7d470e(0xc2)][_0x7d470e(0x35a)]();}[_0x159fb9(0x44b)](_0x2115b8){const _0x5106d7=_0x159fb9;this['_members'][_0x5106d7(0x3d3)](_0x2115b8[_0x5106d7(0x1fb)],_0x2115b8);}['removeMember'](_0xf61d89){const _0x5eb4b3=_0x159fb9;this['_members'][_0x5eb4b3(0x24e)](_0xf61d89);}[_0x159fb9(0x3a9)](_0x2f4fcc){const _0x231585=_0x159fb9;return this[_0x231585(0xc2)][_0x231585(0x413)](_0x2f4fcc);}[_0x159fb9(0x3e8)](){const _0x2946f8=_0x159fb9;return Array[_0x2946f8(0x3a5)](this[_0x2946f8(0xc2)][_0x2946f8(0x18d)]());}}var xr=Object[_0x159fb9(0xcf)],Lr=Object[_0x159fb9(0x37a)],$r=(_0x441409,_0x34528a,_0x195a6f,_0xed045b)=>{for(var _0xe158bb=_0xed045b>0x1?void 0x0:_0xed045b?Lr(_0x34528a,_0x195a6f):_0x34528a,_0x2f0690=_0x441409['length']-0x1,_0x318294;_0x2f0690>=0x0;_0x2f0690--)(_0x318294=_0x441409[_0x2f0690])&&(_0xe158bb=(_0xed045b?_0x318294(_0x34528a,_0x195a6f,_0xe158bb):_0x318294(_0xe158bb))||_0xe158bb);return _0xed045b&&_0xe158bb&&xr(_0x34528a,_0x195a6f,_0xe158bb),_0xe158bb;},Ee=(_0x1ede03,_0x2a81e5)=>(_0x55087d,_0x232fc7)=>_0x2a81e5(_0x55087d,_0x232fc7,_0x1ede03),ve=(_0xa532bc=>(_0xa532bc[_0xa532bc[_0x159fb9(0x237)]=0x0]=_0x159fb9(0x237),_0xa532bc[_0xa532bc[_0x159fb9(0xfc)]=0x1]='JOINING',_0xa532bc[_0xa532bc[_0x159fb9(0x2e8)]=0x2]=_0x159fb9(0x2e8),_0xa532bc[_0xa532bc[_0x159fb9(0x2ef)]=0x3]=_0x159fb9(0x2ef),_0xa532bc))(ve||{});let ts=class extends _0x7d7f86{constructor(_0x2a9e65,_0x5bfbcd,_0x4033c1,_0x4c0b41,_0x5a46df,_0x31ecf6,_0x55a382,_0x2085c2,_0x3a555e,_0x1d133a){const _0x106040=_0x159fb9;super(),g(this,'_sessionStatus$',new _0x4cf3b1(0x0)),g(this,'sessionStatus$',this[_0x106040(0x345)][_0x106040(0x118)]()),g(this,_0x106040(0x42e),new _0x2ec24b()),g(this,_0x106040(0x431),this[_0x106040(0x42e)]['asObservable']()),g(this,_0x106040(0x3f1)),g(this,_0x106040(0x3cc)),g(this,_0x106040(0x333)),g(this,_0x106040(0x121),!0x1),g(this,'_telemetryInfo',null),(this['_unitID']=_0x2a9e65,this[_0x106040(0x461)]=_0x4033c1,this[_0x106040(0x3fc)]=_0x4c0b41,this[_0x106040(0x3b8)]=_0x5a46df,this['_configService']=_0x31ecf6,this[_0x106040(0xc8)]=_0x55a382,this[_0x106040(0x41e)]=_0x2085c2,this[_0x106040(0x421)]=_0x3a555e,this[_0x106040(0x359)]=_0x1d133a,this[_0x106040(0x121)]=!!this[_0x106040(0x359)],_0x5bfbcd[_0x106040(0x26b)](_0x514462(this[_0x106040(0x1ef)]))[_0x106040(0x2fd)](_0x1d961c=>{const _0x10d1a4=_0x106040;var _0x33db15;typeof _0x1d961c>'u'||(this[_0x10d1a4(0x3f1)]=_0x1d961c,_0x1d961c?(this[_0x10d1a4(0x1f8)](_0x1d961c),this[_0x10d1a4(0x3cc)]=_0x1d961c[_0x10d1a4(0x427)][_0x10d1a4(0x2fd)](_0x1a85bb=>{const _0x16a048=_0x10d1a4;_0x1a85bb[_0x16a048(0xe3)]===this['_unitID']&&this[_0x16a048(0x2a2)](_0x1a85bb);})):(this[_0x10d1a4(0x401)](),this[_0x10d1a4(0x345)]['next'](0x2),(_0x33db15=this[_0x10d1a4(0x3cc)])==null||_0x33db15[_0x10d1a4(0x158)](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this[_0x106040(0x3fc)]['registerOnClose'](()=>{const _0x3bbf7f=_0x106040;var _0x2c15ef;(_0x2c15ef=this[_0x3bbf7f(0x3f1)])==null||_0x2c15ef[_0x3bbf7f(0x4ab)]({'cmd':W[_0x3bbf7f(0xd5)],'data':{'roomID':this[_0x3bbf7f(0x256)]}});})));}get[_0x159fb9(0x101)](){const _0x42837e=_0x159fb9;return this[_0x42837e(0x345)][_0x42837e(0x495)]();}[_0x159fb9(0x24d)](){const _0x55e038=_0x159fb9;var _0x4648d8,_0x4d7c65;return(_0x4d7c65=(_0x4648d8=this['_socket'])==null?void 0x0:_0x4648d8[_0x55e038(0x1fb)])!=null?_0x4d7c65:null;}['dispose'](){const _0x40923b=_0x159fb9;super[_0x40923b(0xda)](),this[_0x40923b(0x1ef)][_0x40923b(0x22f)](),this[_0x40923b(0x1ef)]['complete']();}[_0x159fb9(0x3cd)](){const _0x5ead9a=_0x159fb9;var _0x4030ed,_0x1e3e93;this[_0x5ead9a(0x401)](),(_0x4030ed=this[_0x5ead9a(0x3f1)])==null||_0x4030ed['send']({'cmd':W[_0x5ead9a(0xd5)],'data':{'roomID':this['_unitID']}}),(_0x1e3e93=this[_0x5ead9a(0x3f1)])==null||_0x1e3e93[_0x5ead9a(0x3cd)](),this[_0x5ead9a(0x42e)]['complete'](),this[_0x5ead9a(0x345)][_0x5ead9a(0x138)](),this[_0x5ead9a(0xda)]();}[_0x159fb9(0x2a2)](_0x21e60d){const _0x4ee7d3=_0x159fb9;_0x21e60d[_0x4ee7d3(0x336)]===W['JOIN']?this[_0x4ee7d3(0x183)](_0x21e60d):_0x21e60d['cmd']===W[_0x4ee7d3(0x1e7)]&&this[_0x4ee7d3(0x36b)](_0x21e60d);}[_0x159fb9(0x1f8)](_0x33877d){const _0x512b09=_0x159fb9;this['_sessionStatus$'][_0x512b09(0x22f)](0x1),_0x33877d[_0x512b09(0x4ab)]({'cmd':W[_0x512b09(0x2c7)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x512b09(0x256)]}]}});}[_0x159fb9(0x183)](_0x223275){const _0x3bd820=_0x159fb9;var _0x365568;if(_0x223275[_0x3bd820(0x21c)]===Is[_0x3bd820(0x47d)]){this[_0x3bd820(0x3b8)]['show']({'type':_0x450e6f['Warning'],'content':this[_0x3bd820(0xc8)]['t'](_0x3bd820(0x39f))}),this[_0x3bd820(0x345)][_0x3bd820(0x22f)](0x2);return;}this['_sessionStatus$'][_0x3bd820(0x22f)](0x3);const _0x2c0748=(_0x365568=_0x223275[_0x3bd820(0x216)][_0x3bd820(0x329)][this[_0x3bd820(0x256)]])==null?void 0x0:_0x365568['members'];_0x2c0748&&_0x2c0748[_0x3bd820(0x30e)](_0x40b21b=>this[_0x3bd820(0x41e)][_0x3bd820(0x44b)](this[_0x3bd820(0x256)],_0x40b21b));}[_0x159fb9(0x36b)](_0x1fdcbe){const _0x23da76=_0x159fb9;try{const _0x553801=_0x1fdcbe[_0x23da76(0x216)];switch(_0x553801[_0x23da76(0x39e)]){case _0x33d7b7[_0x23da76(0x44d)]:this['_onUserJoin'](_0x553801),this[_0x23da76(0x42e)]['next'](_0x553801);break;case _0x33d7b7[_0x23da76(0x477)]:this['_onUserLeave'](_0x553801),this['_event$'][_0x23da76(0x22f)](_0x553801);break;case _0x33d7b7[_0x23da76(0x306)]:case _0x33d7b7[_0x23da76(0x1a0)]:this[_0x23da76(0xbb)](),this[_0x23da76(0x21d)](),this[_0x23da76(0x42e)][_0x23da76(0x22f)](_0x553801);break;case _0x33d7b7[_0x23da76(0x457)]:this[_0x23da76(0x461)]['error'](_0x23da76(0x35f)+JSON[_0x23da76(0x25e)](_0x553801)),this[_0x23da76(0x42e)][_0x23da76(0x22f)](_0x553801);break;case _0x33d7b7['COMMENT_UPDATE']:this[_0x23da76(0x421)][_0x23da76(0x10d)](_0x553801[_0x23da76(0x216)]),this[_0x23da76(0x42e)][_0x23da76(0x22f)](_0x553801);break;default:this[_0x23da76(0x42e)][_0x23da76(0x22f)](_0x553801);}}catch(_0x5d469d){this['_logService'][_0x23da76(0x441)](_0x5d469d,_0x1fdcbe);}}['_onUserJoin'](_0x2fc304){const _0x3190a0=_0x159fb9;this[_0x3190a0(0x41e)][_0x3190a0(0x44b)](this['_unitID'],_0x2fc304[_0x3190a0(0x216)]);}[_0x159fb9(0x476)](_0x4f863b){const _0x5ecc84=_0x159fb9;this[_0x5ecc84(0x41e)][_0x5ecc84(0x364)](this[_0x5ecc84(0x256)],_0x4f863b[_0x5ecc84(0x216)]['memberID']);}async[_0x159fb9(0x4ab)](_0x19186f,_0x1fa31a){const _0x4df64b=_0x159fb9;if(this[_0x4df64b(0x101)]!==0x3||!this['_socket'])throw new Error(_0x4df64b(0xdb));try{_0x19186f[_0x4df64b(0x39e)]===_0x33d7b7[_0x4df64b(0x31e)]&&(this[_0x4df64b(0x260)](),this['_startTelemetryCollaborationNewChangeset'](_0x19186f)),this[_0x4df64b(0x3f1)][_0x4df64b(0x4ab)]({'cmd':W[_0x4df64b(0x3a0)],'routeKey':_0x1fa31a,'routeType':'','data':_0x19186f});}catch(_0x3cc696){this['_logService'][_0x4df64b(0x441)](_0x3cc696);}}[_0x159fb9(0x260)](){const _0x830390=_0x159fb9;var _0x4536b8;this[_0x830390(0x333)]=window[_0x830390(0x383)](()=>{const _0x257980=_0x830390;this[_0x257980(0x333)]=null,this[_0x257980(0x3b8)][_0x257980(0x3e9)]({'type':_0x450e6f[_0x257980(0x16a)],'content':this[_0x257980(0xc8)]['t']('session.collaboration-timeout')});},(_0x4536b8=this[_0x830390(0x18b)]['getConfig'](bi))!=null?_0x4536b8:Ti);}['_clearCollaborationTimeoutTimer'](){const _0x130c11=_0x159fb9;this[_0x130c11(0x333)]&&(clearTimeout(this[_0x130c11(0x333)]),this[_0x130c11(0x333)]=null);}[_0x159fb9(0x332)](_0x3e4546){const _0x13bd15=_0x159fb9;if(!this['_shouldReportTelemetry'])return;const {data:_0xa8d668}=_0x3e4546,{unitID:_0x59304e,changeset:_0x1587a3}=_0xa8d668,{mutations:_0x20a06c,type:_0x3793c8}=_0x1587a3;this[_0x13bd15(0x28d)]={'unitId':_0x59304e,'type':_0x3793c8,'startTime':performance[_0x13bd15(0x380)](),'stopTime':0x0,'duration':0x0,'size':Pr(_0x20a06c)};}[_0x159fb9(0xbb)](){const _0x4ccac1=_0x159fb9;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x4ccac1(0x461)][_0x4ccac1(0x441)](_0x4ccac1(0x2d6),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x4ccac1(0x28d)]['stopTime']=performance['now'](),this[_0x4ccac1(0x28d)][_0x4ccac1(0x4a0)]=this['_telemetryInfo'][_0x4ccac1(0x137)]-this[_0x4ccac1(0x28d)][_0x4ccac1(0x1c8)],this[_0x4ccac1(0x359)][_0x4ccac1(0x40c)](Dr,this[_0x4ccac1(0x28d)]),this[_0x4ccac1(0x28d)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0xd8635b=_0x159fb9;this[_0xd8635b(0x28d)]=null;}};ts=$r([Ee(0x2,_0x3738e4),Ee(0x3,_0xb2b56d),Ee(0x4,_0x546aee),Ee(0x5,_0x3ade87),Ee(0x6,_0x3e8773(_0x51cff0)),Ee(0x7,_0x3e8773(Ne)),Ee(0x8,_0x3e8773(wi)),Ee(0x9,_0x24e594(_0xae2320))],ts);var Hr=Object[_0x159fb9(0xcf)],jr=Object[_0x159fb9(0x37a)],Br=(_0x5bff1b,_0x1441de,_0x27a456,_0x4384ec)=>{const _0x45bf73=_0x159fb9;for(var _0x3c0f0d=_0x4384ec>0x1?void 0x0:_0x4384ec?jr(_0x1441de,_0x27a456):_0x1441de,_0x53901b=_0x5bff1b[_0x45bf73(0x3e5)]-0x1,_0x2ce9da;_0x53901b>=0x0;_0x53901b--)(_0x2ce9da=_0x5bff1b[_0x53901b])&&(_0x3c0f0d=(_0x4384ec?_0x2ce9da(_0x1441de,_0x27a456,_0x3c0f0d):_0x2ce9da(_0x3c0f0d))||_0x3c0f0d);return _0x4384ec&&_0x3c0f0d&&Hr(_0x1441de,_0x27a456,_0x3c0f0d),_0x3c0f0d;},je=(_0x539878,_0x39b039)=>(_0x3ce3db,_0x126a6)=>_0x39b039(_0x3ce3db,_0x126a6,_0x539878);let Ae=class extends _0x10d2e7{constructor(_0x2c5f44,_0xb176f2,_0x139914,_0x454088,_0x1c2e2b,_0x591f26){const _0x2a5414=_0x159fb9;super(),g(this,_0x2a5414(0x43c),new _0x4cf3b1(void 0x0)),g(this,_0x2a5414(0x360),this[_0x2a5414(0x43c)][_0x2a5414(0x118)]()),g(this,_0x2a5414(0xae),null),g(this,_0x2a5414(0x363),new Map()),g(this,_0x2a5414(0x3e0),new _0x4cf3b1(ve[_0x2a5414(0x237)])),g(this,_0x2a5414(0x33d),this[_0x2a5414(0x3e0)]['asObservable']()),g(this,_0x2a5414(0x3c9),!0x1),g(this,_0x2a5414(0x1bd)),g(this,_0x2a5414(0x305),0x0),g(this,_0x2a5414(0x374)),g(this,_0x2a5414(0x46c)),(this['_injector']=_0x2c5f44,this[_0x2a5414(0xc8)]=_0xb176f2,this[_0x2a5414(0x3b8)]=_0x139914,this[_0x2a5414(0x461)]=_0x454088,this[_0x2a5414(0x18b)]=_0x1c2e2b,this[_0x2a5414(0x11e)]=_0x591f26,this[_0x2a5414(0x1c5)]());}get[_0x159fb9(0x3f1)](){const _0xb07024=_0x159fb9;return this[_0xb07024(0x43c)]['getValue']();}[_0x159fb9(0x1c5)](){const _0x2904b6=_0x159fb9;this[_0x2904b6(0x26c)](),this['_listenToOnlineEvent']();}[_0x159fb9(0xda)](){const _0x3e8794=_0x159fb9;super[_0x3e8794(0xda)](),this[_0x3e8794(0x363)][_0x3e8794(0x30e)](_0x48a6e4=>_0x48a6e4[_0x3e8794(0xda)]()),this['_sessions']['clear'](),this[_0x3e8794(0x3e0)]['complete']();}async[_0x159fb9(0x470)](_0x124e30){const _0x39bff4=_0x159fb9;if(this['_sessions'][_0x39bff4(0x375)](_0x124e30))return this[_0x39bff4(0x363)][_0x39bff4(0x413)](_0x124e30);this['_tryEnsureSocket']();const _0x2449d0=this[_0x39bff4(0x1d9)][_0x39bff4(0x3fb)](ts,_0x124e30,this[_0x39bff4(0x43c)][_0x39bff4(0x118)]());return this[_0x39bff4(0x363)][_0x39bff4(0x3d3)](_0x124e30,_0x2449d0),_0x2449d0;}[_0x159fb9(0x19c)](_0x4bcb19){const _0x593726=_0x159fb9;var _0x1eb391;const _0x511638=this['_sessions'][_0x593726(0x413)](_0x4bcb19);_0x511638&&(this[_0x593726(0x363)][_0x593726(0x24e)](_0x4bcb19),_0x511638[_0x593726(0x3cd)]()),this['_sessions'][_0x593726(0x1d3)]||(_0x1eb391=this[_0x593726(0x3f1)])==null||_0x1eb391[_0x593726(0x3cd)]();}[_0x159fb9(0x139)](){const _0x46fd59=_0x159fb9;this[_0x46fd59(0x305)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x46fd59(0x1bd)]=null),this[_0x46fd59(0x314)]();}[_0x159fb9(0x32e)](){const _0x316394=_0x159fb9;var _0x4e8125,_0x44ebc3;const _0x1fdc4a=this[_0x316394(0x18b)][_0x316394(0x2e1)](hr),_0x4db597=this['_configService'][_0x316394(0x2e1)](ie),_0x2c0a0a=(_0x44ebc3=(_0x4e8125=_0x4db597==null?void 0x0:_0x4db597[_0x316394(0x3d9)])!=null?_0x4e8125:_0x1fdc4a)!=null?_0x44ebc3:lr,_0x191cd0=this[_0x316394(0x11e)][_0x316394(0x1a1)](_0x2c0a0a);return this[_0x316394(0xae)]=_0x191cd0,_0x191cd0;}[_0x159fb9(0xe2)](){const _0x35d882=_0x159fb9;var _0x36bddf,_0x5398e3;try{const _0x4d1d18=(_0x5398e3=(_0x36bddf=this[_0x35d882(0x3f1)])!=null?_0x36bddf:this[_0x35d882(0xae)])!=null?_0x5398e3:this['_createSocket']();if(_0x4d1d18){const _0x248285=_0x4d1d18[_0x35d882(0x4ab)];_0x4d1d18[_0x35d882(0x4ab)]=_0x44b346=>(this[_0x35d882(0x46d)](),_0x248285[_0x35d882(0x2b8)](_0x4d1d18,[_0x44b346])),_0x4d1d18[_0x35d882(0x427)][_0x35d882(0x2fd)](_0x838979=>this[_0x35d882(0x251)](_0x4d1d18,_0x838979)),_0x4d1d18[_0x35d882(0x274)][_0x35d882(0x26b)](_0x277270(0x1))[_0x35d882(0x2fd)](_0x386db1=>this['_logService'][_0x35d882(0x441)](_0x35d882(0x1aa),_0x386db1)),_0x4d1d18['open$'][_0x35d882(0x26b)](_0x277270(0x1))[_0x35d882(0x2fd)](()=>{const _0x8286c5=_0x35d882;this[_0x8286c5(0x105)](_0x4d1d18);}),_0x4d1d18['close$'][_0x35d882(0x26b)](_0x277270(0x1))[_0x35d882(0x2fd)](_0x46ec97=>{const _0x4cf515=_0x35d882;this[_0x4cf515(0x461)]['debug'](_0x4cf515(0x315),_0x4cf515(0x12b),_0x46ec97),this[_0x4cf515(0x433)]();});}}catch(_0x475473){this['_logService'][_0x35d882(0x441)](_0x475473),this[_0x35d882(0x433)]();}}[_0x159fb9(0x105)](_0x4edc4b){const _0x4f75c8=_0x159fb9;this[_0x4f75c8(0x461)][_0x4f75c8(0x4b0)](_0x4f75c8(0x315),'socket\x20open.'),_0x4edc4b[_0x4f75c8(0x4ab)]({'cmd':W[_0x4f75c8(0x1ac)]}),this[_0x4f75c8(0x46d)]();}[_0x159fb9(0x26c)](){const _0x349b89=_0x159fb9;window[_0x349b89(0x16c)](_0x349b89(0x133),()=>this[_0x349b89(0x1da)]());}[_0x159fb9(0x1da)](){const _0x552943=_0x159fb9;this[_0x552943(0x3c9)]=!0x1,this['_candidateSocket']=null,this[_0x552943(0x3e0)]['next'](ve[_0x552943(0x2e8)]),this[_0x552943(0x43c)][_0x552943(0x22f)](null),this['_clearTimeoutTimer'](),this[_0x552943(0xf9)]();}[_0x159fb9(0x433)](){const _0x4e530f=_0x159fb9;var _0x36afd2;this[_0x4e530f(0x1da)](),this[_0x4e530f(0x305)]<((_0x36afd2=this[_0x4e530f(0x18b)][_0x4e530f(0x2e1)](fr))!=null?_0x36afd2:vr)?(this[_0x4e530f(0x3b8)]['show']({'key':_0x4e530f(0xef),'type':_0x450e6f[_0x4e530f(0x378)],'content':this[_0x4e530f(0xc8)]['t'](_0x4e530f(0x3e7))}),this['_tryReconnect']()):this['_messageService'][_0x4e530f(0x3e9)]({'key':'collaboration-session-retry','type':_0x450e6f['Error'],'content':this[_0x4e530f(0xc8)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x164346=_0x159fb9,_0x147a5f=()=>{const _0x25010f=_0x4457;this[_0x25010f(0x3f1)]||this[_0x25010f(0x139)]();},_0x3d5455=()=>{const _0xd2a86f=_0x4457;this[_0xd2a86f(0x3f1)]||document['visibilityState']===_0xd2a86f(0xac)||this['reconnect']();};window[_0x164346(0x16c)](_0x164346(0x352),_0x147a5f),document[_0x164346(0x16c)](_0x164346(0x4a3),_0x3d5455);}[_0x159fb9(0x314)](){const _0x215c5e=_0x159fb9;var _0x505842;const _0x4c1907=this[_0x215c5e(0x305)],_0xcd47f0=this['_configService'][_0x215c5e(0x2e1)](ie),_0x1bffe8=_0x4c1907===0x0?0x0:((_0x505842=_0xcd47f0==null?void 0x0:_0xcd47f0[_0x215c5e(0x36a)])!=null?_0x505842:dr)*0x2**_0x4c1907;this[_0x215c5e(0x1bd)]=window[_0x215c5e(0x383)](()=>{const _0x3ea6ba=_0x215c5e;clearTimeout(this[_0x3ea6ba(0x1bd)]),this['_retryConnectingTimer']=null,this[_0x3ea6ba(0xe2)]();},_0x1bffe8),this[_0x215c5e(0x305)]+=0x1;}[_0x159fb9(0x251)](_0x399ad7,_0x44003c){const _0x4d9542=_0x159fb9,{cmd:_0x2d551c}=_0x44003c;_0x2d551c===W['HELLO']&&!this[_0x4d9542(0x3c9)]&&(_0x399ad7[_0x4d9542(0x1fb)]=_0x44003c['data'][_0x4d9542(0x1fb)],this[_0x4d9542(0x43c)]['next'](_0x399ad7),this[_0x4d9542(0x3e0)][_0x4d9542(0x22f)](ve[_0x4d9542(0x2ef)]),this[_0x4d9542(0x3c9)]=!0x0,this[_0x4d9542(0xae)]=null),_0x2d551c===W['HEARTBEAT']&&this[_0x4d9542(0x299)](),this[_0x4d9542(0x46d)]();}[_0x159fb9(0x46d)](){const _0x26acb3=_0x159fb9;var _0x4087f4;this[_0x26acb3(0xf9)](),this[_0x26acb3(0x374)]=window[_0x26acb3(0x383)](()=>this['_sendHeartbeat'](),(_0x4087f4=this['_configService']['getConfig'](_r))!=null?_0x4087f4:ur);}[_0x159fb9(0x2db)](){const _0x4c40e6=_0x159fb9;this['_socket'][_0x4c40e6(0x4ab)]({'cmd':W[_0x4c40e6(0x40a)]}),this[_0x4c40e6(0x407)]();}['_waitForHeartbeatResponse'](){const _0x12edfa=_0x159fb9;var _0x54a0a8;this['_timeoutTimer']=window[_0x12edfa(0x383)](()=>this[_0x12edfa(0x433)](),(_0x54a0a8=this['_configService']['getConfig'](bi))!=null?_0x54a0a8:Ti);}[_0x159fb9(0xf9)](){const _0x4a67f8=_0x159fb9;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x4a67f8(0x374)]),this[_0x4a67f8(0x374)]=null);}[_0x159fb9(0x299)](){const _0x28295c=_0x159fb9;this[_0x28295c(0x46c)]!=null&&(clearTimeout(this[_0x28295c(0x46c)]),this[_0x28295c(0x46c)]=null);}};Ae=Br([je(0x0,_0x3e8773(_0x3371c0)),je(0x1,_0x3e8773(_0x51cff0)),je(0x2,_0x546aee),je(0x3,_0x3738e4),je(0x4,_0x3ade87),je(0x5,Oi)],Ae);var Y=[];for(var Nt=0x0;Nt<0x100;++Nt)Y[_0x159fb9(0x3c8)]((Nt+0x100)[_0x159fb9(0xd7)](0x10)[_0x159fb9(0x438)](0x1));function kr(_0x160d19,_0x5242c1=0x0){const _0xb723a=_0x159fb9;return(Y[_0x160d19[_0x5242c1+0x0]]+Y[_0x160d19[_0x5242c1+0x1]]+Y[_0x160d19[_0x5242c1+0x2]]+Y[_0x160d19[_0x5242c1+0x3]]+'-'+Y[_0x160d19[_0x5242c1+0x4]]+Y[_0x160d19[_0x5242c1+0x5]]+'-'+Y[_0x160d19[_0x5242c1+0x6]]+Y[_0x160d19[_0x5242c1+0x7]]+'-'+Y[_0x160d19[_0x5242c1+0x8]]+Y[_0x160d19[_0x5242c1+0x9]]+'-'+Y[_0x160d19[_0x5242c1+0xa]]+Y[_0x160d19[_0x5242c1+0xb]]+Y[_0x160d19[_0x5242c1+0xc]]+Y[_0x160d19[_0x5242c1+0xd]]+Y[_0x160d19[_0x5242c1+0xe]]+Y[_0x160d19[_0x5242c1+0xf]])[_0xb723a(0x3bf)]();}var ct,Wr=new Uint8Array(0x10);function Fr(){const _0x89ea4f=_0x159fb9;if(!ct&&(ct=typeof crypto<'u'&&crypto[_0x89ea4f(0x1cf)]&&crypto[_0x89ea4f(0x1cf)][_0x89ea4f(0x1ed)](crypto),!ct))throw new Error(_0x89ea4f(0x1d6));return ct(Wr);}var Vr=typeof crypto<'u'&&crypto[_0x159fb9(0x3fd)]&&crypto[_0x159fb9(0x3fd)][_0x159fb9(0x1ed)](crypto);const js={'randomUUID':Vr};function Gr(_0x2a63ad,_0x437c29,_0x21a606){const _0x5a5033=_0x159fb9;if(js[_0x5a5033(0x3fd)]&&!_0x437c29&&!_0x2a63ad)return js[_0x5a5033(0x3fd)]();_0x2a63ad=_0x2a63ad||{};var _0x2552a6=_0x2a63ad['random']||(_0x2a63ad['rng']||Fr)();return _0x2552a6[0x6]=_0x2552a6[0x6]&0xf|0x40,_0x2552a6[0x8]=_0x2552a6[0x8]&0x3f|0x80,kr(_0x2552a6);}var Yr=Object['defineProperty'],Kr=Object[_0x159fb9(0x37a)],zr=(_0x3e409f,_0x4617d8,_0x3b0434,_0x4d8d60)=>{const _0x2dd064=_0x159fb9;for(var _0x274ecf=_0x4d8d60>0x1?void 0x0:_0x4d8d60?Kr(_0x4617d8,_0x3b0434):_0x4617d8,_0x5fa94f=_0x3e409f[_0x2dd064(0x3e5)]-0x1,_0x1e48ae;_0x5fa94f>=0x0;_0x5fa94f--)(_0x1e48ae=_0x3e409f[_0x5fa94f])&&(_0x274ecf=(_0x4d8d60?_0x1e48ae(_0x4617d8,_0x3b0434,_0x274ecf):_0x1e48ae(_0x274ecf))||_0x274ecf);return _0x4d8d60&&_0x274ecf&&Yr(_0x4617d8,_0x3b0434,_0x274ecf),_0x274ecf;},At=(_0xdd5432,_0x157e9b)=>(_0x2f2af2,_0xa7aee)=>_0x157e9b(_0x2f2af2,_0xa7aee,_0xdd5432);let vt=class{constructor(_0x4e50ac,_0x4faa84,_0xd2bb3){const _0x3e1a45=_0x159fb9;this[_0x3e1a45(0x1d9)]=_0x4e50ac,this[_0x3e1a45(0x1a9)]=_0x4faa84,this[_0x3e1a45(0x451)]=_0xd2bb3;}[_0x159fb9(0x2b9)](_0x3f6334){const _0x1418d7=_0x159fb9;this[_0x1418d7(0x449)](_0x3f6334),this[_0x1418d7(0x301)](_0x3f6334);}[_0x159fb9(0x434)](_0x1501db){const _0x1278be=_0x159fb9,{unitID:_0x20bbe8}=_0x1501db,_0x9570a4=this[_0x1278be(0x451)][_0x1278be(0x119)](_0x20bbe8)[_0x1278be(0x151)](_0x1d29e7),{redoCache:_0x5e2b6e}=_0x9570a4[_0x1278be(0x3ff)]();if(_0x5e2b6e[_0x1278be(0x3e5)]===0x0)return _0x1501db;let _0x196d38=_0x26d13d['deepClone'](_0x1501db['mutations'][0x0]);for(let _0x1688a4=0x0;_0x1688a4<_0x5e2b6e[_0x1278be(0x3e5)];_0x1688a4++){const _0x5e1c15={'id':_0x1278be(0xdd),'params':{..._0x5e2b6e[_0x1688a4]}},_0x5d9636=this['_transformService'][_0x1278be(0x29c)](_0x196d38,_0x5e1c15,!0x1);if(_0x490f82(_0x5d9636))throw _0x5d9636['error'];_0x196d38=_0x5d9636[_0x1278be(0x217)];}return{..._0x26d13d[_0x1278be(0x272)](_0x1501db),'mutations':[_0x196d38]};}['_transformUndoRedoStack'](_0x3d709f){const _0x5ea327=_0x159fb9,{unitID:_0x32f83a}=_0x3d709f,_0x5d321f=this[_0x5ea327(0x451)][_0x5ea327(0x119)](_0x32f83a)[_0x5ea327(0x151)](_0x1d29e7),{undoCache:_0x15d48c,redoCache:_0x47a2ee}=_0x5d321f[_0x5ea327(0x3ff)]();if(_0x15d48c[_0x5ea327(0x3e5)]===0x0||_0x47a2ee[_0x5ea327(0x3e5)]===0x0)return;const _0x3d995d=[],_0x1413a6=[];let _0x4e3ce5=_0x26d13d[_0x5ea327(0x272)](_0x3d709f[_0x5ea327(0x29f)][0x0]),_0x53bee8=_0x26d13d[_0x5ea327(0x272)](_0x3d709f['mutations'][0x0]);for(let _0x479935=_0x15d48c[_0x5ea327(0x3e5)]-0x1;_0x479935>=0x0;_0x479935--){const _0x5e9fbe={'id':_0x5ea327(0xdd),'params':{..._0x15d48c[_0x479935]}},_0x3ee715={'id':'doc.mutation.rich-text-editing','params':{..._0x47a2ee[_0x479935]}},_0x2f330a=this[_0x5ea327(0x1a9)][_0x5ea327(0x29c)](_0x4e3ce5,_0x5e9fbe,!0x1),_0x2032a6=this[_0x5ea327(0x1a9)][_0x5ea327(0x29c)](_0x53bee8,_0x3ee715,!0x1);if(_0x490f82(_0x2f330a))throw _0x2f330a[_0x5ea327(0x441)];if(_0x490f82(_0x2032a6))throw _0x2032a6[_0x5ea327(0x441)];_0x3d995d[_0x5ea327(0x3d7)](_0x2f330a[_0x5ea327(0x12a)][_0x5ea327(0x11b)]),_0x1413a6[_0x5ea327(0x3d7)](_0x2032a6[_0x5ea327(0x12a)][_0x5ea327(0x11b)]),_0x4e3ce5=_0x2f330a['m1Prime'],_0x53bee8=_0x2032a6[_0x5ea327(0x217)];}_0x5d321f['setUndoRedoMutationParamsCache']({'undoCache':_0x3d995d,'redoCache':_0x1413a6});}[_0x159fb9(0x301)](_0x45096){const _0x4d5908=_0x159fb9,{unitID:_0x3e60e8}=_0x45096,_0xf04f56=this[_0x4d5908(0x451)]['getRenderById'](_0x3e60e8)[_0x4d5908(0x151)](_0x1d29e7),_0x2cfc5e=_0xf04f56[_0x4d5908(0x459)]();if(_0x2cfc5e==null)return;const _0x431ae7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x45096['unitID'],'actions':null,'textRanges':[_0x2cfc5e]}}],_0x2cb437=this[_0x4d5908(0x1a9)]['transformMutationsWithChangeset'](_0x45096,_0x431ae7);if(!_0x426291(_0x2cb437))throw _0x2cb437[_0x4d5908(0x441)];const _0x55e16e=_0x2cb437[_0x4d5908(0x12a)][0x0][_0x4d5908(0x11b)][_0x4d5908(0x240)];Array[_0x4d5908(0x126)](_0x55e16e)&&_0x55e16e[_0x4d5908(0x3e5)]&&_0xf04f56['setActiveRange'](_0x55e16e[0x0]);}};vt=zr([At(0x0,_0x3e8773(_0x3371c0)),At(0x1,_0x1c07b8),At(0x2,_0x525bf5)],vt);var qr=Object['defineProperty'],Xr=Object[_0x159fb9(0x37a)],Jr=(_0x2dca56,_0x542440,_0x5c3ac1,_0x372cf5)=>{const _0x215bad=_0x159fb9;for(var _0x184dbf=_0x372cf5>0x1?void 0x0:_0x372cf5?Xr(_0x542440,_0x5c3ac1):_0x542440,_0x2f135c=_0x2dca56[_0x215bad(0x3e5)]-0x1,_0x2e9167;_0x2f135c>=0x0;_0x2f135c--)(_0x2e9167=_0x2dca56[_0x2f135c])&&(_0x184dbf=(_0x372cf5?_0x2e9167(_0x542440,_0x5c3ac1,_0x184dbf):_0x2e9167(_0x184dbf))||_0x184dbf);return _0x372cf5&&_0x184dbf&&qr(_0x542440,_0x5c3ac1,_0x184dbf),_0x184dbf;},Xe=(_0xe943,_0x40ce22)=>(_0x806c18,_0x332ca7)=>_0x40ce22(_0x806c18,_0x332ca7,_0xe943);let q=class extends _0x10d2e7{constructor(_0x2e39d4,_0x5e94df,_0xee6860,_0x3e82ea,_0x578807){const _0x42c5bb=_0x159fb9;super(),g(this,_0x42c5bb(0x3b1),new Map()),g(this,'_saveTaskMap',new Map()),g(this,_0x42c5bb(0x2ce),!0x1),(this[_0x42c5bb(0x18b)]=_0x2e39d4,this[_0x42c5bb(0x11c)]=_0x5e94df,this['_beforeCloseService']=_0xee6860,this['_localeService']=_0x3e82ea,this[_0x42c5bb(0x446)]=_0x578807,this[_0x42c5bb(0xb5)]());}[_0x159fb9(0x2bc)](){const _0x5c8b5e=_0x159fb9;this[_0x5c8b5e(0x2ce)]=!0x0;}[_0x159fb9(0xd9)](){const _0x5a5639=_0x159fb9;this[_0x5a5639(0x2ce)]=!0x1;}['dispose'](){const _0x5894da=_0x159fb9;this[_0x5894da(0x379)]()[_0x5894da(0x171)](()=>super[_0x5894da(0xda)]());}async['loadOfflineData'](_0x226b5e){const _0x45dcf8=_0x159fb9;return this[_0x45dcf8(0x2ce)]?null:this[_0x45dcf8(0x11c)][_0x45dcf8(0x159)](Bs(_0x226b5e));}async['saveOfflineData'](_0x1b96ba,_0x36eed0){const _0x38b375=_0x159fb9;return!!this[_0x38b375(0x11c)][_0x38b375(0x3f8)](_0x1b96ba,_0x36eed0);}[_0x159fb9(0x3ed)](_0x5f0f6b,_0x29a3a1,_0x135251,_0x117fae){const _0x443bf3=_0x159fb9,_0x23b15c=this['_revisionService'][_0x443bf3(0x257)](_0x5f0f6b);this['_cachedData'][_0x443bf3(0x3d3)](_0x5f0f6b,{'unitID':_0x5f0f6b,'type':_0x29a3a1,'awaitingChangeset':_0x135251,'mutations':_0x117fae,'rev':_0x23b15c}),this['_saveTaskMap'][_0x443bf3(0x375)](_0x5f0f6b)||this['_scheduleSaving'](_0x5f0f6b);}[_0x159fb9(0x362)](_0x1e5422){const _0x47d4d5=_0x159fb9,_0x4122bd=this['_getSaveTimeout']();_0x4122bd===0x0?this[_0x47d4d5(0x2ae)](_0x1e5422):this[_0x47d4d5(0x411)][_0x47d4d5(0x3d3)](_0x1e5422,setTimeout(()=>this['_saveCache'](_0x1e5422),_0x4122bd));}[_0x159fb9(0x462)](){const _0x304b62=_0x159fb9;var _0x147cc4;return(_0x147cc4=this[_0x304b62(0x18b)][_0x304b62(0x2e1)](mr))!=null?_0x147cc4:pr;}[_0x159fb9(0x2ae)](_0x494410){const _0x13c19b=_0x159fb9,_0x46ad19=this[_0x13c19b(0x411)][_0x13c19b(0x413)](_0x494410);return _0x46ad19!==void 0x0&&window[_0x13c19b(0x294)](_0x46ad19),this['_localStorageService'][_0x13c19b(0x3f8)](Bs(_0x494410),this[_0x13c19b(0x3b1)][_0x13c19b(0x413)](_0x494410))['then'](()=>this[_0x13c19b(0x411)][_0x13c19b(0x24e)](_0x494410));}async[_0x159fb9(0x379)](){const _0x23e461=_0x159fb9,_0x1bed42=[];this[_0x23e461(0x411)][_0x23e461(0x30e)]((_0xbe10b1,_0x315627)=>{const _0x172714=_0x23e461;window['clearTimeout'](_0xbe10b1),_0x1bed42['push'](this[_0x172714(0x2ae)](_0x315627)[_0x172714(0x171)](()=>{const _0xeca93a=_0x172714;this[_0xeca93a(0x411)][_0xeca93a(0x24e)](_0x315627);}));}),await Promise[_0x23e461(0x358)](_0x1bed42);}['_setupBeforeClosingHandler'](){const _0x58b225=_0x159fb9;this['disposeWithMe'](this[_0x58b225(0x3fc)]['registerBeforeClose'](()=>{const _0xa52bbc=_0x58b225;if(this[_0xa52bbc(0x411)]['size'])return this[_0xa52bbc(0xc8)]['t']('collaboration-client.offline-data-not-saved');}));}};q=Jr([Xe(0x0,_0x3ade87),Xe(0x1,_0x2d0198),Xe(0x2,_0xb2b56d),Xe(0x3,_0x3e8773(_0x51cff0)),Xe(0x4,_0x3e8773(_0x2cef54))],q);function Bs(_0x460991){const _0x31ae85=_0x159fb9;return _0x31ae85(0xbe)+_0x460991;}var Zr=Object['defineProperty'],Qr=Object[_0x159fb9(0x37a)],eo=(_0x27de05,_0x51ba17,_0x20c0f8,_0x53a6a2)=>{for(var _0x4ff5a4=_0x53a6a2>0x1?void 0x0:_0x53a6a2?Qr(_0x51ba17,_0x20c0f8):_0x51ba17,_0x2caa6a=_0x27de05['length']-0x1,_0x2da3b1;_0x2caa6a>=0x0;_0x2caa6a--)(_0x2da3b1=_0x27de05[_0x2caa6a])&&(_0x4ff5a4=(_0x53a6a2?_0x2da3b1(_0x51ba17,_0x20c0f8,_0x4ff5a4):_0x2da3b1(_0x4ff5a4))||_0x4ff5a4);return _0x53a6a2&&_0x4ff5a4&&Zr(_0x51ba17,_0x20c0f8,_0x4ff5a4),_0x4ff5a4;},Mt=(_0x2a17a6,_0x5e6633)=>(_0x2424e2,_0x182afd)=>_0x5e6633(_0x2424e2,_0x182afd,_0x2a17a6);function to(_0x3dc4e8){const _0xabf6a6=_0x159fb9,{unitID:_0x5512e6,mutations:_0x2baa32}=_0x3dc4e8;return{'unitId':_0x5512e6,'subUnitId':_0x2baa32[0x0][_0xabf6a6(0x11b)][_0xabf6a6(0x3b4)]};}let mt=class{constructor(_0x56c8a5,_0x3f64d6,_0x17f07b){const _0x44d340=_0x159fb9;this[_0x44d340(0x1d9)]=_0x56c8a5,this[_0x44d340(0x1a9)]=_0x3f64d6,this['_instanceService']=_0x17f07b;}[_0x159fb9(0x2cd)](_0x56ec8b){const _0x3133b1=_0x159fb9;var _0x1dbfbb,_0x3a65d6,_0x12c4e0,_0x32881a;const _0x3a474e=this[_0x3133b1(0x1d9)][_0x3133b1(0x413)](_0x4d7738),{unitId:_0x72bd5,subUnitId:_0x1860f1}=to(_0x56ec8b),_0x221b54=_0x3a474e[_0x3133b1(0x2f5)](_0x72bd5)[_0x3133b1(0x406)](),_0x3cba97=(_0x3a65d6=(_0x1dbfbb=this[_0x3133b1(0x2d3)][_0x3133b1(0x340)](_0x72bd5))==null?void 0x0:_0x1dbfbb['getActiveSheet']())==null?void 0x0:_0x3a65d6[_0x3133b1(0xc7)]();if(_0x221b54[_0x3133b1(0x3e5)]===0x0||!_0x72bd5||!_0x1860f1)return;const _0x579965=[{'id':_0x34fe8d['id'],'params':{'unitId':_0x72bd5,'subUnitId':_0x3cba97,'selections':_0x26d13d['deepClone'](_0x221b54)}}],_0xa11a9e=this[_0x3133b1(0x1a9)][_0x3133b1(0x17b)](_0x56ec8b,_0x579965);if(!_0x426291(_0xa11a9e))throw _0xa11a9e['error'];const _0x38d86c=(_0x32881a=(_0x12c4e0=_0xa11a9e[_0x3133b1(0x12a)][0x0])==null?void 0x0:_0x12c4e0['params'])==null?void 0x0:_0x32881a[_0x3133b1(0x22b)];if(Array[_0x3133b1(0x126)](_0x38d86c)&&_0x38d86c[_0x3133b1(0x3e5)]){if(_0x38d86c[_0x3133b1(0x3e5)]===_0x579965[0x0][_0x3133b1(0x11b)][_0x3133b1(0x22b)][_0x3133b1(0x3e5)]&&_0x38d86c[_0x3133b1(0x181)]((_0x4db461,_0x28812a)=>_0x1635b8[_0x3133b1(0x4a1)](_0x4db461[_0x3133b1(0xc0)],_0x579965[0x0][_0x3133b1(0x11b)][_0x3133b1(0x22b)][_0x28812a]['range'])))return;this['_injector']['get'](_0x1bd495)[_0x3133b1(0xeb)](_0x34fe8d['id'],{'unitId':_0x72bd5,'subUnitId':_0x3cba97,'selections':_0x38d86c});}}};mt=eo([Mt(0x0,_0x3e8773(_0x3371c0)),Mt(0x1,_0x1c07b8),Mt(0x2,_0x40ba52)],mt);const yt=_0x12029c(_0x159fb9(0x1ae));var Di=(_0x40766a=>(_0x40766a[_0x40766a[_0x159fb9(0x347)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x40766a[_0x40766a[_0x159fb9(0x23e)]=0x1]=_0x159fb9(0x23e),_0x40766a))(Di||{});const ks=0x7530,Ws='ACTIVE_UNIT_EVENT_CHANNEL';class so extends _0x10d2e7{constructor(){const _0x3c2129=_0x159fb9;super(),g(this,_0x3c2129(0x128),_0x26d13d['generateRandomId']()),g(this,_0x3c2129(0x396),new Set()),g(this,_0x3c2129(0x2be),new Map()),g(this,_0x3c2129(0x3c6),null),g(this,_0x3c2129(0x344),new Map()),g(this,_0x3c2129(0x2ac),new Map()),this[_0x3c2129(0x3a1)]();}[_0x159fb9(0xda)](){const _0x4be9e1=_0x159fb9;super[_0x4be9e1(0xda)](),this[_0x4be9e1(0x344)][_0x4be9e1(0x30e)]((_0x422927,_0x380eec)=>this['_removeClearOtherTimer'](_0x380eec)),this[_0x4be9e1(0x3c6)]&&window[_0x4be9e1(0x28b)](this[_0x4be9e1(0x3c6)]);}[_0x159fb9(0x127)](_0x3d049b){const _0x588929=_0x159fb9;return this[_0x588929(0x387)](_0x3d049b)['pipe'](_0x55352a());}[_0x159fb9(0x361)](_0x590666){const _0x2fc90f=_0x159fb9;this[_0x2fc90f(0x396)][_0x2fc90f(0x1d3)]===0x0&&this[_0x2fc90f(0x325)](),this[_0x2fc90f(0x396)][_0x2fc90f(0x342)](_0x590666),this[_0x2fc90f(0x285)]({'type':0x0,'memberID':this[_0x2fc90f(0x128)],'unitIDs':[_0x590666],'isForwarded':!0x1});}[_0x159fb9(0x385)](_0x4b09d3){const _0x12a2a7=_0x159fb9;this['_selfUnitIDs'][_0x12a2a7(0x24e)](_0x4b09d3),this[_0x12a2a7(0x396)][_0x12a2a7(0x1d3)]===0x0&&this[_0x12a2a7(0x3c6)]&&window['clearInterval'](this[_0x12a2a7(0x3c6)]);}[_0x159fb9(0x3a1)](){const _0x3a33c3=_0x159fb9;this[_0x3a33c3(0x2e7)](_0x3f9d32(_0x55c3c6(window,_0x3a33c3(0x21e))[_0x3a33c3(0x2fd)](_0x55c232=>{const _0x3d7440=_0x3a33c3;if(_0x55c232[_0x3d7440(0x169)]!==Ws||!_0x55c232[_0x3d7440(0x239)])return;const _0x4a699c=JSON[_0x3d7440(0x3c4)](_0x55c232[_0x3d7440(0x239)]);this[_0x3d7440(0x400)](_0x4a699c);}))),window[_0x3a33c3(0x16c)](_0x3a33c3(0x367),()=>this['_send']({'type':0x1,'memberID':this[_0x3a33c3(0x128)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x159fb9(0x400)](_0x4283c5){const _0x292a21=_0x159fb9;switch(_0x4283c5[_0x292a21(0xab)]){case 0x0:this[_0x292a21(0x2fb)](_0x4283c5);break;case 0x1:this[_0x292a21(0x1f4)](_0x4283c5);break;case 0x2:this[_0x292a21(0x2e5)](_0x4283c5);break;}}[_0x159fb9(0x2fb)](_0xe1a60f){const _0xf47396=_0x159fb9,{unitIDs:_0x2b4269,memberID:_0x258e2b,isForwarded:_0x3437e7}=_0xe1a60f;_0x2b4269['forEach'](_0x1c0f10=>{const _0x1ae813=_0x4457;if(!_0x3437e7&&this['_unitOnClients'][_0x1ae813(0x375)](_0x1c0f10)&&this['_ensureSubject'](_0x1c0f10)['next'](0x1),!this['_unitOnClients'][_0x1ae813(0x375)](_0x1c0f10)||!this['_unitOnClients'][_0x1ae813(0x413)](_0x1c0f10)['has'](_0x258e2b)){const _0x5d1aa5=this[_0x1ae813(0x2be)][_0x1ae813(0x413)](_0x1c0f10)||new Set();_0x5d1aa5[_0x1ae813(0x342)](_0x258e2b),this[_0x1ae813(0x2be)]['set'](_0x1c0f10,_0x5d1aa5),this[_0x1ae813(0x154)](_0x258e2b);}}),_0x3437e7||this[_0xf47396(0x285)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x159fb9(0x154)](_0x2d4f6c){const _0x35d133=_0x159fb9;this[_0x35d133(0x312)](_0x2d4f6c);const _0x271e2c=window[_0x35d133(0x383)](()=>{const _0x3b9c2e=_0x35d133;this[_0x3b9c2e(0x2be)]['forEach'](_0xbb363f=>{const _0x50a7f7=_0x3b9c2e;_0xbb363f[_0x50a7f7(0x24e)](_0x2d4f6c);});},ks*0x2);this[_0x35d133(0x344)][_0x35d133(0x3d3)](_0x2d4f6c,_0x271e2c);}['_removeClearOtherTimer'](_0x3176fb){const _0x570093=_0x159fb9;if(this['_clearOtherTimers'][_0x570093(0x375)](_0x3176fb)){const _0x45237b=this['_clearOtherTimers'][_0x570093(0x413)](_0x3176fb);_0x45237b&&window['clearTimeout'](_0x45237b),this[_0x570093(0x344)][_0x570093(0x3d3)](_0x3176fb,null);}}[_0x159fb9(0x1f4)](_0x58200b){const _0x423945=_0x159fb9,{memberID:_0x3e6a90,unitIDs:_0x2348b0}=_0x58200b;_0x2348b0[_0x423945(0x30e)](_0x30aa8c=>{const _0x24ee5e=_0x423945;var _0x5eaf18;const _0x122838=this[_0x24ee5e(0x2be)]['get'](_0x30aa8c);_0x122838&&(_0x122838['delete'](_0x3e6a90),(_0x5eaf18=this[_0x24ee5e(0x387)](_0x30aa8c))==null||_0x5eaf18[_0x24ee5e(0x22f)](_0x122838[_0x24ee5e(0x1d3)]===0x0?0x0:0x1));}),this[_0x423945(0x312)](_0x3e6a90);}[_0x159fb9(0x2e5)](_0x360111){this['_scheduleClearOtherTimer'](_0x360111['memberID']);}[_0x159fb9(0x285)](_0x4806a4){const _0x90341c=_0x159fb9;localStorage[_0x90341c(0x3f8)](Ws,JSON[_0x90341c(0x25e)](_0x4806a4));}[_0x159fb9(0x325)](){const _0x193bc9=_0x159fb9;this[_0x193bc9(0x3c6)]=window['setInterval'](()=>{const _0x3b7b94=_0x193bc9;this[_0x3b7b94(0x285)]({'type':0x2,'memberID':this[_0x3b7b94(0x128)]});},ks);}[_0x159fb9(0x387)](_0x210856){const _0x19b74b=_0x159fb9;return this[_0x19b74b(0x2ac)][_0x19b74b(0x375)](_0x210856)||this['_unitStatus'][_0x19b74b(0x3d3)](_0x210856,new _0x4cf3b1(0x0)),this[_0x19b74b(0x2ac)][_0x19b74b(0x413)](_0x210856);}}var io=Object[_0x159fb9(0xcf)],no=Object[_0x159fb9(0x37a)],ro=(_0x5f4a73,_0x34d3b5,_0x16a43e,_0x47d764)=>{const _0x50b639=_0x159fb9;for(var _0x17684e=_0x47d764>0x1?void 0x0:_0x47d764?no(_0x34d3b5,_0x16a43e):_0x34d3b5,_0x45891a=_0x5f4a73[_0x50b639(0x3e5)]-0x1,_0x5c1555;_0x45891a>=0x0;_0x45891a--)(_0x5c1555=_0x5f4a73[_0x45891a])&&(_0x17684e=(_0x47d764?_0x5c1555(_0x34d3b5,_0x16a43e,_0x17684e):_0x5c1555(_0x17684e))||_0x17684e);return _0x47d764&&_0x17684e&&io(_0x34d3b5,_0x16a43e,_0x17684e),_0x17684e;},xt=(_0x4554c2,_0x9fcec0)=>(_0xcce685,_0x473de2)=>_0x9fcec0(_0xcce685,_0x473de2,_0x4554c2);let pt=class{constructor(_0x258732,_0x12fc66,_0x15c397){const _0x5a14f0=_0x159fb9;this['_injector']=_0x258732,this[_0x5a14f0(0x1a9)]=_0x12fc66,this['_docStateChangeManagerService']=_0x15c397;}[_0x159fb9(0xf0)](_0x446620){const _0xaed749=_0x159fb9;this[_0xaed749(0x1b6)](_0x446620);}[_0x159fb9(0x434)](_0x3323c8){const _0x86604c=_0x159fb9,{unitID:_0x10158e}=_0x3323c8,{collaboration:_0x2f51a3}=this['_docStateChangeManagerService'][_0x86604c(0x403)](_0x10158e);if(_0x2f51a3[_0x86604c(0x3e5)]===0x0)return _0x3323c8;let _0x2f246a=_0x26d13d['deepClone'](_0x3323c8['mutations'][0x0]);for(let _0x3e5614=0x0;_0x3e5614<_0x2f51a3[_0x86604c(0x3e5)];_0x3e5614++){const _0x3dbbf2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2f51a3[_0x3e5614][_0x86604c(0x235)],..._0x2f51a3[_0x3e5614][_0x86604c(0x230)]}},_0x31de20=this[_0x86604c(0x1a9)][_0x86604c(0x29c)](_0x2f246a,_0x3dbbf2,!0x1);if(_0x490f82(_0x31de20))throw _0x31de20[_0x86604c(0x441)];_0x2f246a=_0x31de20[_0x86604c(0x217)];}return{..._0x26d13d[_0x86604c(0x272)](_0x3323c8),'mutations':[_0x2f246a]};}[_0x159fb9(0x1b6)](_0x4cc2ca){const _0x2e5049=_0x159fb9,{unitID:_0x23ea04}=_0x4cc2ca,{history:_0x517249,collaboration:_0x30b011}=this[_0x2e5049(0x27a)][_0x2e5049(0x403)](_0x23ea04);if(_0x517249[_0x2e5049(0x3e5)]===0x0&&_0x30b011[_0x2e5049(0x3e5)]===0x0)return;const _0x420e18=[],_0x9f5ec8=[];let _0x369356=_0x26d13d['deepClone'](_0x4cc2ca[_0x2e5049(0x29f)][0x0]),_0x303658=_0x26d13d[_0x2e5049(0x272)](_0x4cc2ca[_0x2e5049(0x29f)][0x0]);for(let _0xb0ebd2=_0x517249[_0x2e5049(0x3e5)]-0x1;_0xb0ebd2>=0x0;_0xb0ebd2--){const _0x5f2676={'id':_0x2e5049(0xdd),'params':{'unitId':_0x517249[_0xb0ebd2][_0x2e5049(0x235)],..._0x517249[_0xb0ebd2][_0x2e5049(0x1f9)]}},_0x1beb30={'id':_0x2e5049(0xdd),'params':{'unitId':_0x517249[_0xb0ebd2]['unitId'],..._0x517249[_0xb0ebd2][_0x2e5049(0x230)]}},_0x1b0ad9=this[_0x2e5049(0x1a9)][_0x2e5049(0x29c)](_0x369356,_0x5f2676,!0x1),_0x2376b7=this[_0x2e5049(0x1a9)][_0x2e5049(0x29c)](_0x303658,_0x1beb30,!0x1);if(_0x490f82(_0x1b0ad9))throw _0x1b0ad9[_0x2e5049(0x441)];if(_0x490f82(_0x2376b7))throw _0x2376b7[_0x2e5049(0x441)];_0x420e18[_0x2e5049(0x3d7)]({..._0x517249[_0xb0ebd2],'undoState':_0x1b0ad9['m2Prime'][_0x2e5049(0x11b)],'redoState':_0x2376b7[_0x2e5049(0x12a)][_0x2e5049(0x11b)]}),_0x369356=_0x1b0ad9[_0x2e5049(0x217)],_0x303658=_0x2376b7[_0x2e5049(0x217)];}_0x369356=_0x26d13d[_0x2e5049(0x272)](_0x4cc2ca['mutations'][0x0]),_0x303658=_0x26d13d[_0x2e5049(0x272)](_0x4cc2ca[_0x2e5049(0x29f)][0x0]);for(let _0x2c42b3=_0x30b011[_0x2e5049(0x3e5)]-0x1;_0x2c42b3>=0x0;_0x2c42b3--){const _0x184ea5={'id':_0x2e5049(0xdd),'params':{'unitId':_0x30b011[_0x2c42b3][_0x2e5049(0x235)],..._0x30b011[_0x2c42b3][_0x2e5049(0x1f9)]}},_0x469447={'id':_0x2e5049(0xdd),'params':{'unitId':_0x30b011[_0x2c42b3]['unitId'],..._0x30b011[_0x2c42b3][_0x2e5049(0x230)]}},_0x4ea33c=this[_0x2e5049(0x1a9)][_0x2e5049(0x29c)](_0x369356,_0x184ea5,!0x1),_0x632796=this[_0x2e5049(0x1a9)][_0x2e5049(0x29c)](_0x303658,_0x469447,!0x1);if(_0x490f82(_0x4ea33c))throw _0x4ea33c['error'];if(_0x490f82(_0x632796))throw _0x632796[_0x2e5049(0x441)];_0x9f5ec8[_0x2e5049(0x3d7)]({..._0x30b011[_0x2c42b3],'undoState':_0x4ea33c['m2Prime'][_0x2e5049(0x11b)],'redoState':_0x632796[_0x2e5049(0x12a)]['params']}),_0x369356=_0x4ea33c[_0x2e5049(0x217)],_0x303658=_0x632796['m1Prime'];}this[_0x2e5049(0x27a)][_0x2e5049(0xb6)](_0x23ea04,{'history':_0x420e18,'collaboration':_0x9f5ec8});}};pt=ro([xt(0x0,_0x3e8773(_0x3371c0)),xt(0x1,_0x1c07b8),xt(0x2,_0x3e8773(_0x4f127d))],pt);function Pi(_0x1d6dae){const _0x5b1875=_0x159fb9;let _0x26f5de='';for(const _0xf68e56 of _0x1d6dae){const {startOffset:_0x17a757,endOffset:_0xc6ebf4,isActive:_0x1f4bb9,rangeType:_0x2f105e,segmentId:_0xbd65a,segmentPage:_0x16c9a5}=_0xf68e56;_0x26f5de[_0x5b1875(0x3e5)]&&(_0x26f5de+=','),_0x26f5de+=_0x17a757+':'+_0xc6ebf4+':'+(_0x1f4bb9?'1':'0')+':'+_0x2f105e+':'+_0xbd65a+':'+_0x16c9a5;}return _0x26f5de;}function oo(_0x1cf484){const _0x5f5868=_0x159fb9,_0x549217=_0x1cf484['split'](','),_0x535513=[];for(const _0x3755b2 of _0x549217){const [_0x94e6ce,_0x3b719c,_0x55e44f,_0x50ff82,_0x462351,_0x294965]=_0x3755b2[_0x5f5868(0x435)](':');_0x535513['push']({'startOffset':Number(_0x94e6ce),'endOffset':Number(_0x3b719c),'collapsed':_0x94e6ce===_0x3b719c,'isActive':_0x55e44f==='1','rangeType':_0x50ff82===_0x4b8239[_0x5f5868(0x2ec)]?_0x4b8239[_0x5f5868(0x2ec)]:_0x4b8239[_0x5f5868(0x229)],'segmentId':typeof _0x462351==_0x5f5868(0xde)?String(_0x462351):'','segmentPage':Number(_0x294965!=null?_0x294965:-0x1)});}return _0x535513[_0x5f5868(0x156)](_0x33f4d7=>_0x33f4d7[_0x5f5868(0x12c)])||(_0x535513[0x0][_0x5f5868(0x12c)]=!0x0),_0x535513;}class Cs extends _0x7d7f86{constructor(){const _0x1bb7ee=_0x159fb9;super(...arguments),g(this,_0x1bb7ee(0x437),new _0x4cf3b1(null)),g(this,_0x1bb7ee(0x19f),this['_collabCursorState$'][_0x1bb7ee(0x118)]());}[_0x159fb9(0x372)](_0x390c66){const _0x46df01=_0x159fb9,{unitID:_0x54d044,memberID:_0x14d898,textRanges:_0x289669}=_0x390c66,_0x143313=Pi(_0x289669);if(_0x143313==='')return;const _0x1933b7={'unitID':_0x54d044,'memberID':_0x14d898,'selection':_0x143313};this[_0x46df01(0x437)][_0x46df01(0x22f)](_0x1933b7);}}var ao=Object['defineProperty'],co=Object[_0x159fb9(0x37a)],ho=(_0x1b0e90,_0x1c1cc0,_0x346107,_0x397ebd)=>{for(var _0x4eebb5=_0x397ebd>0x1?void 0x0:_0x397ebd?co(_0x1c1cc0,_0x346107):_0x1c1cc0,_0x5b19e8=_0x1b0e90['length']-0x1,_0x2612a8;_0x5b19e8>=0x0;_0x5b19e8--)(_0x2612a8=_0x1b0e90[_0x5b19e8])&&(_0x4eebb5=(_0x397ebd?_0x2612a8(_0x1c1cc0,_0x346107,_0x4eebb5):_0x2612a8(_0x4eebb5))||_0x4eebb5);return _0x397ebd&&_0x4eebb5&&ao(_0x1c1cc0,_0x346107,_0x4eebb5),_0x4eebb5;},Fs=(_0x2fdb6a,_0x3955f2)=>(_0x4faf02,_0x3be67e)=>_0x3955f2(_0x4faf02,_0x3be67e,_0x2fdb6a);let gt=class{constructor(_0x1a1d7b,_0x2507d8){const _0x54663a=_0x159fb9;this[_0x54663a(0x1d9)]=_0x1a1d7b,this[_0x54663a(0x1a9)]=_0x2507d8;}['transformSelections'](_0x5d577f){const _0x644a52=_0x159fb9;var _0x257326;const _0x33cfce=this[_0x644a52(0x1d9)]['get'](_0xa56c0),_0x2b9639=(_0x257326=_0x33cfce[_0x644a52(0x37f)]())!=null?_0x257326:[];if(_0x2b9639[_0x644a52(0x3e5)]===0x0)return;const _0x74925e=[{'id':_0x644a52(0xdd),'params':{'unitId':_0x5d577f[_0x644a52(0x1bc)],'actions':null,'textRanges':_0x2b9639}}],_0x2ea28a=this[_0x644a52(0x1a9)][_0x644a52(0x17b)](_0x5d577f,_0x74925e);if(!_0x426291(_0x2ea28a))throw _0x2ea28a[_0x644a52(0x441)];const _0x1ea781=_0x2ea28a[_0x644a52(0x12a)][0x0][_0x644a52(0x11b)][_0x644a52(0x240)];Array[_0x644a52(0x126)](_0x1ea781)&&_0x1ea781[_0x644a52(0x3e5)]&&_0x33cfce[_0x644a52(0x172)](_0x1ea781,!0x1);}};gt=ho([Fs(0x0,_0x3e8773(_0x3371c0)),Fs(0x1,_0x1c07b8)],gt);const lo=new Set([_0x48aa52['id']]);function Vs(_0x4a65a2,_0x435744,_0x5048a2,_0x5447a4,_0x59e97d){const _0x556fcc=_0x159fb9;var _0x424c2c,_0x397be2,_0x4d25e5,_0x2da775;const _0x44b514=[];for(const _0x4234ba of _0x4a65a2)if(lo[_0x556fcc(0x375)](_0x4234ba['id'])){if(_0x44b514[_0x556fcc(0x3e5)]>0x0)break;_0x44b514[_0x556fcc(0x3c8)](_0x4234ba);break;}else _0x44b514[_0x556fcc(0x3c8)](_0x4234ba);const _0x3ce96b=(_0x397be2=(_0x424c2c=_0x59e97d[_0x556fcc(0x2d8)]())==null?void 0x0:_0x424c2c['userID'])!=null?_0x397be2:_0x556fcc(0x423),_0x22e62b=(_0x2da775=(_0x4d25e5=_0x59e97d[_0x556fcc(0x2d8)]())==null?void 0x0:_0x4d25e5[_0x556fcc(0x1fb)])!=null?_0x2da775:_0x556fcc(0x423);return{'changeset':{'unitID':_0x435744,'type':_0x1fb645(_0x5048a2['getUnitType'](_0x435744)),'baseRev':_0x5447a4['getCurrentRevOfUnit'](_0x435744),'revision':0x0,'userID':_0x3ce96b,'memberID':_0x22e62b,'mutations':_0x44b514},'pendingMutations':_0x4a65a2[_0x556fcc(0x438)](_0x44b514[_0x556fcc(0x3e5)])};}function _o(_0x38276c,_0x53a206,_0xbd078f,_0x37b788,_0xdb2d37){const _0x1c4ef7=_0x159fb9;var _0x2292b3,_0x3940da,_0x52e706,_0x253a14;const _0x4e970d=[_0x38276c[_0x1c4ef7(0x4a4)]((_0x4979db,_0x2720dd)=>{const _0x133927=_0x1c4ef7;var _0x12ccd4;const {id:_0x2f1f89}=_0x4979db,{id:_0x26f1e7,type:_0x31e5fe}=_0x2720dd,_0x3ef455=(_0x12ccd4=_0x4979db[_0x133927(0x11b)])!=null?_0x12ccd4:{'actions':null},_0x1f79f4=_0x2720dd['params'];if(_0x2f1f89&&_0x2f1f89!==_0x26f1e7)throw new Error(_0x133927(0x1e8)+_0x2f1f89+_0x133927(0x266)+_0x26f1e7+'.');return{..._0x4979db,'id':_0x26f1e7,'type':_0x31e5fe,'params':{'unitId':_0x1f79f4['unitId'],'textRanges':_0x1f79f4[_0x133927(0x240)],'actions':_0x30291a['compose'](_0x3ef455[_0x133927(0x124)],_0x1f79f4[_0x133927(0x124)])}};},{})],_0x1a944c=(_0x3940da=(_0x2292b3=_0xdb2d37['getCurrentUser']())==null?void 0x0:_0x2292b3[_0x1c4ef7(0x1fe)])!=null?_0x3940da:'unknown',_0x141964=(_0x253a14=(_0x52e706=_0xdb2d37[_0x1c4ef7(0x2d8)]())==null?void 0x0:_0x52e706[_0x1c4ef7(0x1fb)])!=null?_0x253a14:_0x1c4ef7(0x423);return{'changeset':{'unitID':_0x53a206,'type':_0x1fb645(_0xbd078f[_0x1c4ef7(0x2e4)](_0x53a206)),'baseRev':_0x37b788[_0x1c4ef7(0x257)](_0x53a206),'revision':0x0,'userID':_0x1a944c,'memberID':_0x141964,'mutations':_0x4e970d},'pendingMutations':[]};}function Ui(_0x2878cb,_0x250998){const _0x32c82a=_0x159fb9,_0x3cb72c=new _0x2eb69e(0x1);return setTimeout(()=>_0x3cb72c['next'](_0x250998),_0x2878cb),_0x3cb72c[_0x32c82a(0x118)]()[_0x32c82a(0x26b)](_0x4c54f0(0x1));}const uo={'id':_0x526131['id'],'type':_0x351b9b[_0x159fb9(0x2cc)],'params':{}};var fo=Object['defineProperty'],vo=Object[_0x159fb9(0x37a)],Le=(_0x1131a8,_0x1f19e2,_0x3da027,_0x38d712)=>{const _0x8a1e78=_0x159fb9;for(var _0x213e88=_0x38d712>0x1?void 0x0:_0x38d712?vo(_0x1f19e2,_0x3da027):_0x1f19e2,_0x506bc6=_0x1131a8[_0x8a1e78(0x3e5)]-0x1,_0x49584b;_0x506bc6>=0x0;_0x506bc6--)(_0x49584b=_0x1131a8[_0x506bc6])&&(_0x213e88=(_0x38d712?_0x49584b(_0x1f19e2,_0x3da027,_0x213e88):_0x49584b(_0x213e88))||_0x213e88);return _0x38d712&&_0x213e88&&fo(_0x1f19e2,_0x3da027,_0x213e88),_0x213e88;},A=(_0x1515a8,_0x32c497)=>(_0x2ed923,_0x5aeb41)=>_0x32c497(_0x2ed923,_0x5aeb41,_0x1515a8),J=(_0x5bb54b=>(_0x5bb54b[_0x159fb9(0x2d4)]=_0x159fb9(0x281),_0x5bb54b[_0x159fb9(0x22d)]=_0x159fb9(0x3bd),_0x5bb54b['PENDING']=_0x159fb9(0x4a6),_0x5bb54b[_0x159fb9(0x185)]=_0x159fb9(0x3b7),_0x5bb54b[_0x159fb9(0x32b)]=_0x159fb9(0x1fd),_0x5bb54b[_0x159fb9(0x29e)]='fetch_missing',_0x5bb54b[_0x159fb9(0xba)]=_0x159fb9(0x17e),_0x5bb54b[_0x159fb9(0x2e8)]=_0x159fb9(0x133),_0x5bb54b))(J||{});const Ni=0xea60;class $e{constructor(_0x36d854,_0x5f3759,_0x167b60,_0x3ef22f,_0x2c2d49,_0x1a841f,_0x118cd7,_0x332cd6,_0x41c4b3){const _0x48ee33=_0x159fb9;g(this,_0x48ee33(0x122),null),g(this,'_pendingMutations',[]),(this[_0x48ee33(0x1bc)]=_0x36d854,this['type']=_0x5f3759,this[_0x48ee33(0x3a3)]=_0x2c2d49,this[_0x48ee33(0x388)]=_0x1a841f,this[_0x48ee33(0x384)]=_0x118cd7,this[_0x48ee33(0x446)]=_0x332cd6,this[_0x48ee33(0x45f)]=_0x41c4b3,this[_0x48ee33(0x122)]=_0x167b60,this[_0x48ee33(0x142)]=_0x3ef22f);}['_checkMissing'](_0x1097de){const _0x42af34=_0x159fb9,_0x5e0e2=this[_0x42af34(0x446)]['getCurrentRevOfUnit'](this[_0x42af34(0x1bc)]);return _0x1097de[_0x42af34(0x324)]>_0x5e0e2+0x1?(this[_0x42af34(0x3a3)]['onMissingChangesets']({'from':_0x5e0e2,'to':_0x1097de['revision']-0x1}),!0x0):!0x1;}[_0x159fb9(0x386)](_0x3c6314){const _0x4e0a71=_0x159fb9;this[_0x4e0a71(0x384)][_0x4e0a71(0x222)](this['unitID'],_0x3c6314);}[_0x159fb9(0x313)](_0x1f29ef){const _0x158667=_0x159fb9;var _0x2ed372,_0x4efb44;(_0x4efb44=(_0x2ed372=this['_handler'])[_0x158667(0x402)])==null||_0x4efb44[_0x158667(0x45a)](_0x2ed372,_0x1f29ef);}[_0x159fb9(0x1c3)](_0x37daa8){const _0x12cce8=_0x159fb9;var _0x434420,_0x2c2478;return(_0x2c2478=(_0x434420=this[_0x12cce8(0x3a3)])[_0x12cce8(0x447)])==null?void 0x0:_0x2c2478[_0x12cce8(0x45a)](_0x434420,_0x37daa8);}[_0x159fb9(0x28e)](_0x4a04a7){const _0x1b45ad=_0x159fb9;var _0x296e9a,_0x1f0dfd;return(_0x1f0dfd=(_0x296e9a=this[_0x1b45ad(0x3a3)])[_0x1b45ad(0x320)])==null?void 0x0:_0x1f0dfd[_0x1b45ad(0x45a)](_0x296e9a,_0x4a04a7);}[_0x159fb9(0xc9)](_0x429529){const _0x2dda1b=_0x159fb9;var _0x212462,_0x4509bb,_0x2ec1ca;return(_0x2ec1ca=(_0x4509bb=(_0x212462=this['_handler'])[_0x2dda1b(0x123)])==null?void 0x0:_0x4509bb[_0x2dda1b(0x45a)](_0x212462,_0x429529))!=null?_0x2ec1ca:_0x429529;}[_0x159fb9(0x414)](_0x4bd4dd){const _0x3011d3=_0x159fb9;var _0x5dfee6,_0x1a8b5e,_0x11471b;return(_0x11471b=(_0x1a8b5e=(_0x5dfee6=this['_handler'])[_0x3011d3(0x197)])==null?void 0x0:_0x1a8b5e[_0x3011d3(0x45a)](_0x5dfee6,_0x4bd4dd))!=null?_0x11471b:_0x4bd4dd;}[_0x159fb9(0x489)](_0x306acc){const _0x50e5eb=_0x159fb9;var _0x541bd1,_0x5d3816;if(this['type']===ce['UNIVER_DOC']){const {unitID:_0x4f7c38,mutations:_0x2cae92,memberID:_0x3796a2}=_0x306acc,_0x58feee=_0x2cae92[0x0]['params'][_0x50e5eb(0x240)];Array[_0x50e5eb(0x126)](_0x58feee)&&_0x58feee[_0x50e5eb(0x3e5)]>0x0&&((_0x5d3816=(_0x541bd1=this[_0x50e5eb(0x3a3)])[_0x50e5eb(0x236)])==null||_0x5d3816[_0x50e5eb(0x45a)](_0x541bd1,{'unitID':_0x4f7c38,'memberID':_0x3796a2,'textRanges':_0x58feee}));}}[_0x159fb9(0x279)](){const _0x58e823=_0x159fb9;this[_0x58e823(0x45f)][_0x58e823(0x3ed)](this[_0x58e823(0x1bc)],this['type'],this[_0x58e823(0x122)],this[_0x58e823(0x142)]);}[_0x159fb9(0x376)](){const _0x5e7f94=_0x159fb9;return this['_revisionService'][_0x5e7f94(0x257)](this[_0x5e7f94(0x1bc)]);}[_0x159fb9(0x337)](){const _0xe1cfe7=_0x159fb9;this['_revisionService'][_0xe1cfe7(0xd1)](this['unitID']);}[_0x159fb9(0x3ec)](_0x15627c){const _0x3860f8=_0x159fb9;var _0x1916d0;let _0x1f00ae=this[_0x3860f8(0xc9)](_0x15627c);_0x1f00ae=this['_transformRemoteChangesetByStateCache'](_0x1f00ae);const _0x1aac4d=_0x4af945(_0x1f00ae[_0x3860f8(0x29f)],this[_0x3860f8(0x388)],{'fromCollab':!0x0});if(!_0x1aac4d[_0x3860f8(0x135)])throw _0x1aac4d[_0x3860f8(0x441)]instanceof Error?_0x1aac4d[_0x3860f8(0x441)]:new Error((_0x1916d0=_0x1aac4d[_0x3860f8(0x441)])!=null?_0x1916d0:_0x3860f8(0x12f));this[_0x3860f8(0x1c3)](_0x1f00ae),this['_transformStateCache'](_0x1f00ae),this['_transformUndoredo'](_0x15627c),this[_0x3860f8(0x313)](_0x1f00ae),this['_syncEditingCollabCursor'](_0x1f00ae),this['_incrementRevisionNumber']();}}let Fe=class extends $e{constructor(_0x1f10de,_0x545d74,_0x3c1a34,_0x287608,_0x55796c,_0x453681,_0x1ae762,_0x3d9d88,_0x12563c,_0x197502){const _0x38422b=_0x159fb9;super(_0x1f10de,_0x545d74,null,[],_0x3c1a34,_0x3d9d88,_0x1ae762,_0x287608,_0x55796c),g(this,'status',_0x38422b(0x3bd)),(this['_injector']=_0x453681,this[_0x38422b(0x461)]=_0x12563c,this['_transformService']=_0x197502);}[_0x159fb9(0x129)](_0x17be77){const _0x28951c=_0x159fb9,_0x3030c2=this['_injector']['createInstance'](pe,this['unitID'],this[_0x28951c(0xab)],[_0x17be77],this[_0x28951c(0x3a3)]);return _0x3030c2[_0x28951c(0x3b5)](),_0x3030c2[_0x28951c(0x279)](),_0x3030c2;}[_0x159fb9(0x1a3)](_0x53cb0c){const _0x1e2f34=_0x159fb9;if(this[_0x1e2f34(0x335)](_0x53cb0c))return this['_injector'][_0x1e2f34(0x3fb)](he,this['unitID'],this[_0x1e2f34(0xab)],null,[],null,[_0x53cb0c],this[_0x1e2f34(0x3a3)]);try{const _0x5a5cc9=this[_0x1e2f34(0x1a9)][_0x1e2f34(0x17b)](_0x53cb0c,[uo]);if(_0x426291(_0x5a5cc9)){const {c1Prime:_0x5d524b}=_0x5a5cc9;return this[_0x1e2f34(0x3ec)](_0x5d524b),this;}throw _0x5a5cc9[_0x1e2f34(0x441)];}catch(_0x10da81){return this[_0x1e2f34(0x461)][_0x1e2f34(0x441)](_0x10da81),this[_0x1e2f34(0x296)](!0x1);}}[_0x159fb9(0x296)](_0x477200){const _0x3f11d7=_0x159fb9;return this[_0x3f11d7(0x1d9)][_0x3f11d7(0x3fb)](Re,this[_0x3f11d7(0x1bc)],this[_0x3f11d7(0xab)],null,[],this[_0x3f11d7(0x3a3)],_0x477200);}[_0x159fb9(0x419)](){const _0x98db3f=_0x159fb9;throw new Error(_0x98db3f(0x2e9));}[_0x159fb9(0x146)](){const _0x531c73=_0x159fb9;throw new Error(_0x531c73(0x1a8));}[_0x159fb9(0x35d)](){return this;}[_0x159fb9(0x346)](){const _0x4586a1=_0x159fb9;return this[_0x4586a1(0x1d9)][_0x4586a1(0x3fb)](ye,this[_0x4586a1(0x1bc)],this[_0x4586a1(0xab)],null,[],this[_0x4586a1(0x3a3)]);}[_0x159fb9(0x326)](){return this;}[_0x159fb9(0x184)](){const _0x5c629a=_0x159fb9;throw new Error(_0x5c629a(0x494));}[_0x159fb9(0x4b1)](){const _0x258913=_0x159fb9,_0x229272=this[_0x258913(0x446)][_0x258913(0x257)](this[_0x258913(0x1bc)]);return this['_handler']['onMissingChangesets']({'from':_0x229272,'to':0x0}),this[_0x258913(0x1d9)]['createInstance'](he,this[_0x258913(0x1bc)],this[_0x258913(0xab)],null,[],null,[],this[_0x258913(0x3a3)]);}};Fe=Le([A(0x3,_0x3e8773(_0x2cef54)),A(0x4,_0x3e8773(q)),A(0x5,_0x3e8773(_0x3371c0)),A(0x6,_0x551c13),A(0x7,_0x1bd495),A(0x8,_0x3738e4),A(0x9,_0x1c07b8)],Fe);let pe=class extends $e{constructor(_0x5a14cd,_0x577ee8,_0x406a26,_0x3c7e9b,_0x24bfe4,_0x421266,_0x133dc7,_0x212d31,_0x2de84e,_0x3e5d50,_0x1113d1,_0x544839,_0x344f64,_0x1e9664){const _0x459eaf=_0x159fb9;super(_0x5a14cd,_0x577ee8,null,_0x406a26,_0x3c7e9b,_0x3e5d50,_0x1e9664,_0x421266,_0x133dc7),g(this,_0x459eaf(0x2c6),_0x459eaf(0x4a6)),g(this,_0x459eaf(0x2fe),null),g(this,_0x459eaf(0x351),null),(this[_0x459eaf(0x1d9)]=_0x24bfe4,this[_0x459eaf(0x41e)]=_0x212d31,this[_0x459eaf(0x461)]=_0x2de84e,this[_0x459eaf(0x18b)]=_0x1113d1,this['_transformService']=_0x544839,this[_0x459eaf(0x116)]=_0x344f64);}[_0x159fb9(0x129)](_0x315142){const _0xd6c4ad=_0x159fb9;return this[_0xd6c4ad(0x142)][_0xd6c4ad(0x3c8)](_0x315142),this[_0xd6c4ad(0x279)](),this;}[_0x159fb9(0x1a3)](_0x1cacb6){const _0x441f63=_0x159fb9;if(this[_0x441f63(0x335)](_0x1cacb6))return this[_0x441f63(0x2f1)](),this[_0x441f63(0x1d9)]['createInstance'](he,this[_0x441f63(0x1bc)],this['type'],null,this['_pendingMutations'],null,[_0x1cacb6],this['_handler']);try{const _0x1ce09f=this[_0x441f63(0x1a9)][_0x441f63(0x17b)](_0x1cacb6,this[_0x441f63(0x142)]);if(_0x426291(_0x1ce09f)){const {c1Prime:_0x260d00,m2Prime:_0x2935a6}=_0x1ce09f;this[_0x441f63(0x3ec)](_0x260d00);const _0x4d324e=this[_0x441f63(0x1d9)][_0x441f63(0x3fb)](pe,this[_0x441f63(0x1bc)],this[_0x441f63(0xab)],_0x2935a6,this['_handler']);return this[_0x441f63(0x2f1)](),_0x4d324e[_0x441f63(0x3b5)](this[_0x441f63(0x2fe)]?Math[_0x441f63(0x3dc)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x441f63(0x218)]()),_0x4d324e;}throw _0x1ce09f['error'];}catch(_0x862a7){return this[_0x441f63(0x461)][_0x441f63(0x441)](_0x862a7),this[_0x441f63(0x296)](!0x1);}}[_0x159fb9(0x419)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x159fb9(0x146)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x159fb9(0x35d)](){return this;}['toggleOffline'](){const _0x539da9=_0x159fb9;return this['_clearScheduledTask'](),this[_0x539da9(0x1d9)][_0x539da9(0x3fb)](ye,this[_0x539da9(0x1bc)],this[_0x539da9(0xab)],null,this[_0x539da9(0x142)],this[_0x539da9(0x3a3)]);}[_0x159fb9(0x326)](){return this;}[_0x159fb9(0x3b5)](_0x448ddf){const _0x4a98ba=_0x159fb9,_0x39b054=_0x448ddf!=null?_0x448ddf:this[_0x4a98ba(0x218)]();this['_scheduleTimestamp']=new Date()[_0x4a98ba(0x261)](),this[_0x4a98ba(0x351)]=window[_0x4a98ba(0x383)](()=>{const _0x419869=_0x4a98ba;this[_0x419869(0x2f1)]();let _0x5ac3d7=null;switch(this[_0x419869(0xab)]){case ce[_0x419869(0x166)]:{_0x5ac3d7=Vs(this[_0x419869(0x142)],this['unitID'],this[_0x419869(0x116)],this[_0x419869(0x446)],this[_0x419869(0x41e)]);break;}case ce['UNIVER_DOC']:{this[_0x419869(0x142)][_0x419869(0x181)](_0x5aae99=>_0x5aae99['id']===_0xe026b8['id'])?_0x5ac3d7=_o(this['_pendingMutations'],this['unitID'],this[_0x419869(0x116)],this[_0x419869(0x446)],this[_0x419869(0x41e)]):_0x5ac3d7=Vs(this[_0x419869(0x142)],this[_0x419869(0x1bc)],this[_0x419869(0x116)],this[_0x419869(0x446)],this[_0x419869(0x41e)]);break;}default:throw new Error(_0x419869(0x187)+this['type']+_0x419869(0x26e));}const {changeset:_0xe84a5f,pendingMutations:_0x4b4209}=_0x5ac3d7;this['_handler'][_0x419869(0x201)](_0xe84a5f);const _0x388539=_0x4b4209[_0x419869(0x3e5)]?this[_0x419869(0x1d9)][_0x419869(0x3fb)](ge,this[_0x419869(0x1bc)],this[_0x419869(0xab)],_0xe84a5f,_0x4b4209,this[_0x419869(0x3a3)],void 0x0):this[_0x419869(0x1d9)][_0x419869(0x3fb)](Te,this[_0x419869(0x1bc)],this['type'],_0xe84a5f,this['_handler']);_0x388539['_updateLocalCache'](),this['_handler'][_0x419869(0x20e)](this,_0x388539);},_0x39b054);}[_0x159fb9(0x218)](){const _0x2387aa=_0x159fb9;var _0x165db9;const _0x331bb8=this[_0x2387aa(0x18b)]['getConfig'](ie);return(_0x165db9=_0x331bb8==null?void 0x0:_0x331bb8[_0x2387aa(0xea)])!=null?_0x165db9:cr;}[_0x159fb9(0x184)](){const _0x4247fd=_0x159fb9;throw new Error(_0x4247fd(0x3ba));}['_clearScheduledTask'](){this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x159fb9(0x296)](_0x1b844d){const _0x545e99=_0x159fb9;return this[_0x545e99(0x2f1)](),this[_0x545e99(0x1d9)][_0x545e99(0x3fb)](Re,this['unitID'],this[_0x545e99(0xab)],null,this['_pendingMutations'],this[_0x545e99(0x3a3)],_0x1b844d);}};pe=Le([A(0x4,_0x3e8773(_0x3371c0)),A(0x5,_0x3e8773(_0x2cef54)),A(0x6,_0x3e8773(q)),A(0x7,_0x3e8773(Ne)),A(0x8,_0x3738e4),A(0x9,_0x1bd495),A(0xa,_0x3ade87),A(0xb,_0x1c07b8),A(0xc,_0x40ba52),A(0xd,_0x551c13)],pe);let Te=class extends $e{constructor(_0x1ae764,_0x12c9f9,_0x3bcd9f,_0x4d68fe,_0x56f6ec,_0xd3a8a2,_0x33a447,_0x24e3ee,_0x4fd0fc,_0x11ddd3,_0x43db0b){const _0x4e8b5c=_0x159fb9;super(_0x1ae764,_0x12c9f9,_0x3bcd9f,[],_0x4d68fe,_0x24e3ee,_0x43db0b,_0xd3a8a2,_0x33a447),g(this,_0x4e8b5c(0x2c6),'awaiting'),g(this,_0x4e8b5c(0x1ba),0x0),g(this,_0x4e8b5c(0x209)),g(this,_0x4e8b5c(0x482)),(this[_0x4e8b5c(0x1d9)]=_0x56f6ec,this[_0x4e8b5c(0x461)]=_0x4fd0fc,this[_0x4e8b5c(0x1a9)]=_0x11ddd3);}[_0x159fb9(0x129)](_0x28bf80){const _0x214750=_0x159fb9;this[_0x214750(0x2f1)]();const _0x3d1779=this[_0x214750(0x1d9)][_0x214750(0x3fb)](ge,this[_0x214750(0x1bc)],this[_0x214750(0xab)],this[_0x214750(0x122)],[_0x28bf80],this[_0x214750(0x3a3)],this[_0x214750(0x209)]);return _0x3d1779[_0x214750(0x279)](),_0x3d1779;}[_0x159fb9(0x1a3)](_0x3328c8){const _0x95c003=_0x159fb9;if(this[_0x95c003(0x335)](_0x3328c8))return this[_0x95c003(0x2f1)](),this[_0x95c003(0x1d9)]['createInstance'](he,this['unitID'],this[_0x95c003(0xab)],this[_0x95c003(0x122)],[],null,[_0x3328c8],this[_0x95c003(0x3a3)]);try{const _0x45e446=this[_0x95c003(0x1a9)][_0x95c003(0x10e)]([_0x3328c8],[this[_0x95c003(0x122)]],!0x1);if(_0x29cde1(_0x45e446)){const {c1Prime:_0x5e9109,c2Prime:_0x717aa7}=_0x45e446;this[_0x95c003(0x3ec)](_0x5e9109[0x0]),_0x717aa7[0x0][_0x95c003(0x17d)]=this[_0x95c003(0x376)](),this[_0x95c003(0x2f1)]();const _0x5522f8=this[_0x95c003(0x1d9)][_0x95c003(0x3fb)](Te,this[_0x95c003(0x1bc)],this[_0x95c003(0xab)],_0x717aa7[0x0],this[_0x95c003(0x3a3)]);return _0x5522f8[_0x95c003(0x279)](),_0x5522f8;}return this[_0x95c003(0x296)](!0x1);}catch(_0x52f576){return this[_0x95c003(0x461)]['error'](_0x52f576),this[_0x95c003(0x296)](!0x1);}}[_0x159fb9(0x419)](_0x3d33ac){const _0x5e5283=_0x159fb9;this[_0x5e5283(0x2f1)]();const _0x49dde3=this['_revisionService'][_0x5e5283(0x257)](this[_0x5e5283(0x1bc)]);if(_0x3d33ac['revision']<_0x49dde3-0x1)return this;if(this['_checkMissing'](_0x3d33ac))return this['_injector'][_0x5e5283(0x3fb)](he,this[_0x5e5283(0x1bc)],this[_0x5e5283(0xab)],null,[],this[_0x5e5283(0x122)],[],this[_0x5e5283(0x3a3)]);this[_0x5e5283(0x337)]();const _0x38a658=this[_0x5e5283(0x1d9)]['createInstance'](Fe,this['unitID'],this[_0x5e5283(0xab)],this[_0x5e5283(0x3a3)]);return _0x38a658['_updateLocalCache'](),_0x38a658;}[_0x159fb9(0x146)](_0x5ce550){const _0x1a6119=_0x159fb9;return this[_0x1a6119(0x296)](!!(_0x5ce550!=null&&_0x5ce550[_0x1a6119(0x32a)]));}[_0x159fb9(0x35d)](_0x3288ce){const _0x4ff8d7=_0x159fb9;return this[_0x4ff8d7(0x1ba)]>Ni?this['toggleOffline']():(this[_0x4ff8d7(0x209)]=Ui(this[_0x4ff8d7(0x1ba)],{'timeout':this[_0x4ff8d7(0x1ba)],'reqId':_0x3288ce['reqId']}),this['_sender']=this[_0x4ff8d7(0x209)][_0x4ff8d7(0x2fd)](({reqId:_0x38b41e,timeout:_0x3bb4f2})=>{const _0x581ecf=_0x4ff8d7;this[_0x581ecf(0x288)](_0x38b41e,_0x3bb4f2);}),this);}[_0x159fb9(0x346)](){const _0x5395e1=_0x159fb9;return this['_clearScheduledTask'](),this['_injector']['createInstance'](ye,this['unitID'],this[_0x5395e1(0xab)],this[_0x5395e1(0x122)],[],this[_0x5395e1(0x3a3)]);}[_0x159fb9(0x326)](){return this;}[_0x159fb9(0x184)](){const _0x17c7b2=_0x159fb9;this[_0x17c7b2(0x3a3)][_0x17c7b2(0x201)](this['_awaitingChangeset']);}[_0x159fb9(0x296)](_0x52ec7a){const _0x509412=_0x159fb9;return this[_0x509412(0x2f1)](),this[_0x509412(0x1d9)][_0x509412(0x3fb)](Re,this[_0x509412(0x1bc)],this[_0x509412(0xab)],this[_0x509412(0x122)],[],this[_0x509412(0x3a3)],_0x52ec7a);}['_resendWithTimeout'](_0x38ca13,_0x3e53c5){const _0x194770=_0x159fb9;var _0x1011e1;_0x38ca13===((_0x1011e1=this['_awaitingChangeset'])==null?void 0x0:_0x1011e1[_0x194770(0x1ec)])&&(this['resend'](),this[_0x194770(0x1ba)]=_0x3e53c5===0x0?0x3e8:_0x3e53c5*0x2);}[_0x159fb9(0x2f1)](){const _0x372b5b=_0x159fb9;var _0x36616f;(_0x36616f=this[_0x372b5b(0x482)])==null||_0x36616f[_0x372b5b(0x158)](),this[_0x372b5b(0x1ba)]=0x0;}};Te=Le([A(0x4,_0x3e8773(_0x3371c0)),A(0x5,_0x3e8773(_0x2cef54)),A(0x6,_0x3e8773(q)),A(0x7,_0x1bd495),A(0x8,_0x3738e4),A(0x9,_0x1c07b8),A(0xa,_0x551c13)],Te);let ge=class extends $e{constructor(_0x258b91,_0x4f413a,_0xd57782,_0x8a36c7,_0x3642f,_0x476459,_0x58b1cb,_0x4319d1,_0xd67d75,_0x2f31b0,_0x1ded4b,_0x20385c,_0x4bf0ca){const _0x17f251=_0x159fb9;super(_0x258b91,_0x4f413a,_0xd57782,_0x8a36c7,_0x3642f,_0x2f31b0,_0x4bf0ca,_0x4319d1,_0xd67d75),g(this,_0x17f251(0x2c6),'awaiting_with_pending'),g(this,'_resendTimeout',0x0),g(this,_0x17f251(0x209)),g(this,_0x17f251(0x482)),(this[_0x17f251(0x1d9)]=_0x58b1cb,this['_logService']=_0x1ded4b,this[_0x17f251(0x1a9)]=_0x20385c,_0x476459&&(this[_0x17f251(0x209)]=_0x476459,this[_0x17f251(0x482)]=this[_0x17f251(0x209)][_0x17f251(0x2fd)](({reqId:_0x1c4392,timeout:_0x356253})=>{const _0xa01a5e=_0x17f251;this[_0xa01a5e(0x288)](_0x1c4392,_0x356253);})));}[_0x159fb9(0x129)](_0x59feb2){const _0x18c554=_0x159fb9;return this[_0x18c554(0x142)]['push'](_0x59feb2),this;}['onRemoteChangeset'](_0x3c0d39){const _0x569691=_0x159fb9;if(this['_checkMissing'](_0x3c0d39))return this[_0x569691(0x2f1)](),this['_injector'][_0x569691(0x3fb)](he,this[_0x569691(0x1bc)],this[_0x569691(0xab)],this[_0x569691(0x122)],this[_0x569691(0x142)],null,[_0x3c0d39],this[_0x569691(0x3a3)]);try{const _0x21eae5=this['_transformService'][_0x569691(0x10e)]([_0x3c0d39],[this['_awaitingChangeset']],!0x1);if(_0x29cde1(_0x21eae5)){const {c1Prime:_0x33b7b6,c2Prime:_0xa710cb}=_0x21eae5,_0x3e87ed=this['_transformService'][_0x569691(0x17b)](_0x33b7b6[0x0],this['_pendingMutations']);if(_0x426291(_0x3e87ed)){const {c1Prime:_0x5f4e78,m2Prime:_0x2c4c6d}=_0x3e87ed;return this[_0x569691(0x3ec)](_0x5f4e78),_0xa710cb[0x0][_0x569691(0x17d)]=this[_0x569691(0x376)](),this[_0x569691(0x2f1)](),this[_0x569691(0x1d9)][_0x569691(0x3fb)](ge,this[_0x569691(0x1bc)],this[_0x569691(0xab)],_0xa710cb[0x0],_0x2c4c6d,this[_0x569691(0x3a3)],void 0x0);}throw _0x3e87ed[_0x569691(0x441)];}throw _0x21eae5[_0x569691(0x441)];}catch(_0x423af5){return this[_0x569691(0x461)][_0x569691(0x441)](_0x423af5),this[_0x569691(0x296)](!0x1);}}[_0x159fb9(0x419)](_0x3309fd){const _0x2087bd=_0x159fb9;if(this['_clearScheduledTask'](),this['_checkMissing'](_0x3309fd))return this[_0x2087bd(0x1d9)][_0x2087bd(0x3fb)](he,this[_0x2087bd(0x1bc)],this['type'],null,this[_0x2087bd(0x142)],this['_awaitingChangeset'],[],this['_handler']);this['_incrementRevisionNumber']();const _0xe306f1=this[_0x2087bd(0x1d9)][_0x2087bd(0x3fb)](pe,this[_0x2087bd(0x1bc)],this[_0x2087bd(0xab)],this[_0x2087bd(0x142)],this[_0x2087bd(0x3a3)]);return _0xe306f1[_0x2087bd(0x3b5)](),_0xe306f1[_0x2087bd(0x279)](),_0xe306f1;}[_0x159fb9(0x146)](_0x4de397){const _0x2a9e0e=_0x159fb9;return this[_0x2a9e0e(0x296)](!!(_0x4de397!=null&&_0x4de397[_0x2a9e0e(0x32a)]));}[_0x159fb9(0x35d)](_0x19dc65){const _0x44a636=_0x159fb9;return this[_0x44a636(0x1ba)]>Ni?this[_0x44a636(0x346)]():(this[_0x44a636(0x209)]=Ui(this[_0x44a636(0x1ba)],{'timeout':this['_resendTimeout'],'reqId':_0x19dc65[_0x44a636(0x1ec)]}),this[_0x44a636(0x482)]=this['_resendTimer']['subscribe'](({reqId:_0x2e4d49,timeout:_0x5dcf59})=>{const _0x4ac435=_0x44a636;this[_0x4ac435(0x288)](_0x2e4d49,_0x5dcf59);}),this);}[_0x159fb9(0x346)](){const _0x2fb6af=_0x159fb9;return this['_clearScheduledTask'](),this['_injector'][_0x2fb6af(0x3fb)](ye,this[_0x2fb6af(0x1bc)],this[_0x2fb6af(0xab)],this['_awaitingChangeset'],this[_0x2fb6af(0x142)],this['_handler']);}[_0x159fb9(0x326)](){return this;}[_0x159fb9(0x184)](){const _0x2a6e2f=_0x159fb9;this[_0x2a6e2f(0x3a3)][_0x2a6e2f(0x201)](this['_awaitingChangeset']);}[_0x159fb9(0x296)](_0x53bf54){const _0x5da87b=_0x159fb9;return this['_clearScheduledTask'](),this[_0x5da87b(0x1d9)][_0x5da87b(0x3fb)](Re,this['unitID'],this[_0x5da87b(0xab)],null,this[_0x5da87b(0x142)],this[_0x5da87b(0x3a3)],_0x53bf54);}[_0x159fb9(0x288)](_0x188e46,_0x5a9233){const _0x24c1e1=_0x159fb9;var _0x505b39;_0x188e46===((_0x505b39=this[_0x24c1e1(0x122)])==null?void 0x0:_0x505b39[_0x24c1e1(0x1ec)])&&(this[_0x24c1e1(0x184)](),this[_0x24c1e1(0x1ba)]=_0x5a9233===0x0?0x3e8:_0x5a9233*0x2);}[_0x159fb9(0x2f1)](){const _0x3cd273=_0x159fb9;var _0x174950;(_0x174950=this['_sender'])==null||_0x174950[_0x3cd273(0x158)](),this[_0x3cd273(0x1ba)]=0x0;}};ge=Le([A(0x6,_0x3e8773(_0x3371c0)),A(0x7,_0x3e8773(_0x2cef54)),A(0x8,_0x3e8773(q)),A(0x9,_0x1bd495),A(0xa,_0x3738e4),A(0xb,_0x1c07b8),A(0xc,_0x551c13)],ge);let Re=class extends $e{constructor(_0x2f18f1,_0x3fd591,_0x3f0b6f,_0xa5d8f3,_0x5412e4,_0x5f10c3=!0x1,_0x3be382,_0x543d38,_0xa578bf,_0x5b6e98,_0x406782,_0x43c491,_0x2318e0){const _0x295e53=_0x159fb9;super(_0x2f18f1,_0x3fd591,_0x3f0b6f,_0xa5d8f3,_0x5412e4,_0x543d38,_0xa578bf,_0x406782,_0x5b6e98),g(this,_0x295e53(0x2c6),_0x295e53(0x17e)),(this[_0x295e53(0x480)]=_0x5f10c3,this['_permissionService']=_0x3be382,this[_0x295e53(0xc8)]=_0x43c491,this[_0x295e53(0x33f)]=_0x2318e0,this[_0x295e53(0x4a5)](),this[_0x295e53(0x228)](),this[_0x295e53(0xed)]());}[_0x159fb9(0x129)](){return this;}[_0x159fb9(0x1a3)](){return this;}[_0x159fb9(0x419)](){return this;}['onRemoteRej'](){return this;}[_0x159fb9(0x35d)](){return this;}[_0x159fb9(0x346)](){return this;}[_0x159fb9(0x326)](){return this;}[_0x159fb9(0x184)](){const _0x100279=_0x159fb9;throw new Error(_0x100279(0x2a3));}[_0x159fb9(0x228)](){const _0x450c7c=_0x159fb9;this[_0x450c7c(0x45f)]['updateOfflineData'](this['unitID'],this[_0x450c7c(0xab)],null,[]);}[_0x159fb9(0x4a5)](){const _0x476647=_0x159fb9;this[_0x476647(0x480)]?this[_0x476647(0x33f)]['show']({'title':this['_localeService']['t'](_0x476647(0x310)),'content':this[_0x476647(0xc8)]['t'](_0x476647(0xb2)),'type':_0x476647(0x441),'duration':0x0}):this[_0x476647(0x33f)][_0x476647(0x3e9)]({'title':this[_0x476647(0xc8)]['t'](_0x476647(0x14e)),'content':this['_localeService']['t'](_0x476647(0xb7)),'type':_0x476647(0x441),'duration':0x0});}[_0x159fb9(0xed)](){const _0x52fce2=_0x159fb9;this[_0x52fce2(0x3cb)][_0x52fce2(0x36d)](new _0x435a22(this['unitID'])['id'],!0x1);}};Re=Le([A(0x6,_0x3e8773(_0x1b485a)),A(0x7,_0x1bd495),A(0x8,_0x551c13),A(0x9,_0x3e8773(q)),A(0xa,_0x3e8773(_0x2cef54)),A(0xb,_0x3e8773(_0x51cff0)),A(0xc,_0x294915)],Re);let ye=class extends $e{constructor(_0x3d1561,_0x34947e,_0x25472e,_0x3adb8f,_0x19a43d,_0x2d65bf,_0x59d9ef,_0x3b6bcd,_0x679c35,_0x4af7c8){const _0x514542=_0x159fb9;super(_0x3d1561,_0x34947e,_0x25472e,_0x3adb8f,_0x19a43d,_0x679c35,_0x4af7c8,_0x59d9ef,_0x3b6bcd),g(this,'status',_0x514542(0x133)),this[_0x514542(0x1d9)]=_0x2d65bf;}[_0x159fb9(0x129)](_0x5e9e9a){const _0x29abb9=_0x159fb9;return this[_0x29abb9(0x142)][_0x29abb9(0x3c8)](_0x5e9e9a),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x3eac00){const _0x54ef15=_0x159fb9;throw new Error(_0x54ef15(0xd3));}[_0x159fb9(0x419)](){const _0x4b43d0=_0x159fb9;throw new Error(_0x4b43d0(0x2ca));}['onRemoteRej'](){const _0x29b474=_0x159fb9;throw new Error(_0x29b474(0x389));}['onRemoteRetry'](){return this;}[_0x159fb9(0x346)](){return this;}[_0x159fb9(0x326)](){const _0x2e901b=_0x159fb9,{_injector:_0x2b811a,_pendingMutations:_0x18fc49,_awaitingChangeset:_0x3f26da,unitID:_0x23e369,_handler:_0x2d7fbe,type:_0x447f3e}=this,_0x1037b4=Ai(_0x2b811a,_0x23e369,_0x447f3e,_0x3f26da,_0x18fc49,_0x2d7fbe);return _0x1037b4 instanceof pe?_0x1037b4[_0x2e901b(0x3b5)]():(_0x1037b4 instanceof ge||_0x1037b4 instanceof Te)&&_0x1037b4['resend'](),_0x1037b4;}['resend'](){const _0x504a9a=_0x159fb9;throw new Error(_0x504a9a(0x3e4));}};ye=Le([A(0x5,_0x3e8773(_0x3371c0)),A(0x6,_0x3e8773(_0x2cef54)),A(0x7,_0x3e8773(q)),A(0x8,_0x1bd495),A(0x9,_0x551c13)],ye);let he=class extends $e{constructor(_0x5a1741,_0x1635ee,_0x26f99b,_0x22d842,_0x2bb067,_0x1b3f77,_0x2d2a47,_0x1a5410,_0x95fb0c,_0x9428a9,_0x9a5e5e,_0x26e762,_0x4b4d5b,_0x5af6b2){const _0x5a7cfe=_0x159fb9;super(_0x5a1741,_0x1635ee,_0x26f99b,_0x22d842,_0x2d2a47,_0x26e762,_0x4b4d5b,_0x95fb0c,_0x9428a9),g(this,_0x5a7cfe(0x2c6),_0x5a7cfe(0x227)),(this['_acknowledgedAwaitingChangeset']=_0x2bb067,this['_queuedRemoteChangesets']=_0x1b3f77,this[_0x5a7cfe(0x1d9)]=_0x1a5410,this['_logService']=_0x9a5e5e,this[_0x5a7cfe(0x1a9)]=_0x5af6b2);}[_0x159fb9(0x211)](_0x27c42c){const _0x43d889=_0x159fb9;try{const _0x5550ab=[..._0x27c42c,...this[_0x43d889(0x15b)]],_0x2de440=[this['_awaitingChangeset']||this[_0x43d889(0x490)]][_0x43d889(0x1ce)](_0x281caf=>!!_0x281caf);let _0x807778,_0x1f427b;if(_0x2de440[_0x43d889(0x3e5)]){const _0x440363=this[_0x43d889(0x1a9)][_0x43d889(0x10e)](_0x5550ab,_0x2de440,!0x1);if(!_0x29cde1(_0x440363))throw _0x440363[_0x43d889(0x441)];_0x807778=_0x440363[_0x43d889(0x3ad)],_0x1f427b=_0x440363[_0x43d889(0x439)];}else _0x807778=_0x5550ab,_0x1f427b=[];let _0x459e46=this[_0x43d889(0x142)];_0x807778[_0x43d889(0x30e)](_0x127a08=>{const _0x77fbb=_0x43d889;let _0x32bbaa;if(_0x459e46[_0x77fbb(0x3e5)]){const _0x524e31=this['_transformService'][_0x77fbb(0x17b)](_0x127a08,_0x459e46);if(!_0x426291(_0x524e31))throw _0x524e31[_0x77fbb(0x441)];_0x32bbaa=_0x524e31['c1Prime'],_0x459e46=_0x524e31['m2Prime'];}else _0x32bbaa=_0x127a08;this[_0x77fbb(0x3ec)](_0x32bbaa);}),this['_acknowledgedAwaitingChangeset']&&this[_0x43d889(0x337)](),this['_awaitingChangeset']&&_0x1f427b['length']&&(_0x1f427b[0x0][_0x43d889(0x17d)]=this[_0x43d889(0x376)]());let _0x119762;if(this['_awaitingChangeset']&&_0x459e46[_0x43d889(0x3e5)]!==0x0)_0x119762=this[_0x43d889(0x1d9)]['createInstance'](ge,this[_0x43d889(0x1bc)],this['type'],_0x1f427b[0x0],_0x459e46,this[_0x43d889(0x3a3)],void 0x0);else{if(this[_0x43d889(0x122)]&&_0x459e46[_0x43d889(0x3e5)]===0x0)_0x1f427b[0x0][_0x43d889(0x17d)]=this[_0x43d889(0x376)](),_0x119762=this[_0x43d889(0x1d9)]['createInstance'](Te,this[_0x43d889(0x1bc)],this[_0x43d889(0xab)],_0x1f427b[0x0],this[_0x43d889(0x3a3)]);else{if(_0x459e46['length']!==0x0){const _0x1db898=this[_0x43d889(0x1d9)][_0x43d889(0x3fb)](pe,this[_0x43d889(0x1bc)],this[_0x43d889(0xab)],_0x459e46,this[_0x43d889(0x3a3)]);_0x1db898[_0x43d889(0x3b5)](),_0x119762=_0x1db898;}else _0x119762=this['_injector'][_0x43d889(0x3fb)](Fe,this[_0x43d889(0x1bc)],this[_0x43d889(0xab)],this['_handler']);}}return _0x119762['_updateLocalCache'](),_0x119762;}catch(_0x1483f1){return this['_logService'][_0x43d889(0x441)](_0x43d889(0x474),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1483f1),this[_0x43d889(0x1d9)][_0x43d889(0x3fb)](Re,this[_0x43d889(0x1bc)],this[_0x43d889(0xab)],this[_0x43d889(0x122)],this[_0x43d889(0x142)],this[_0x43d889(0x3a3)],!0x1);}}[_0x159fb9(0x184)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0xeaa8b9){return this['_pendingMutations']['push'](_0xeaa8b9),this;}[_0x159fb9(0x1a3)](_0x23693a){const _0x1b8539=_0x159fb9;return this[_0x1b8539(0x15b)][_0x1b8539(0x3c8)](_0x23693a),this;}[_0x159fb9(0x419)](_0x3deee1){const _0x543b11=_0x159fb9;if(this[_0x543b11(0x122)])return this[_0x543b11(0x490)]=this[_0x543b11(0x122)],this['_awaitingChangeset']=null,this;throw new Error(_0x543b11(0x311));}[_0x159fb9(0x146)](_0x11331c){const _0x12b355=_0x159fb9;return this[_0x12b355(0x296)](!!(_0x11331c!=null&&_0x11331c[_0x12b355(0x32a)]));}[_0x159fb9(0x35d)](){return this;}[_0x159fb9(0x346)](){const _0x157165=_0x159fb9;return this[_0x157165(0x1d9)][_0x157165(0x3fb)](ye,this[_0x157165(0x1bc)],this[_0x157165(0xab)],this[_0x157165(0x122)],this[_0x157165(0x142)],this[_0x157165(0x3a3)]);}[_0x159fb9(0x326)](){return this;}[_0x159fb9(0x296)](_0x53cbb8){const _0x42af70=_0x159fb9;return this[_0x42af70(0x1d9)][_0x42af70(0x3fb)](Re,this[_0x42af70(0x1bc)],this[_0x42af70(0xab)],this['_awaitingChangeset'],this[_0x42af70(0x142)],this[_0x42af70(0x3a3)],_0x53cbb8);}};he=Le([A(0x7,_0x3e8773(_0x3371c0)),A(0x8,_0x3e8773(_0x2cef54)),A(0x9,_0x3e8773(q)),A(0xa,_0x3738e4),A(0xb,_0x1bd495),A(0xc,_0x551c13),A(0xd,_0x1c07b8)],he);function Ai(_0x11bfb0,_0x11077f,_0x71023e,_0x55794e,_0x5cfadf,_0x1a4a22){const _0x32bc30=_0x159fb9;return _0x55794e&&_0x5cfadf[_0x32bc30(0x3e5)]?_0x11bfb0[_0x32bc30(0x3fb)](ge,_0x11077f,_0x71023e,_0x55794e,_0x5cfadf,_0x1a4a22,void 0x0):_0x55794e?_0x11bfb0[_0x32bc30(0x3fb)](Te,_0x11077f,_0x71023e,_0x55794e,_0x1a4a22):_0x5cfadf['length']?_0x11bfb0[_0x32bc30(0x3fb)](pe,_0x11077f,_0x71023e,_0x5cfadf,_0x1a4a22):_0x11bfb0[_0x32bc30(0x3fb)](Fe,_0x11077f,_0x71023e,_0x1a4a22);}var mo=Object['defineProperty'],po=Object[_0x159fb9(0x37a)],Es=(_0x4f4f19,_0x40f65e,_0x25448e,_0x4515c3)=>{const _0x127ca2=_0x159fb9;for(var _0x3ea867=_0x4515c3>0x1?void 0x0:_0x4515c3?po(_0x40f65e,_0x25448e):_0x40f65e,_0x41af10=_0x4f4f19[_0x127ca2(0x3e5)]-0x1,_0xfa841a;_0x41af10>=0x0;_0x41af10--)(_0xfa841a=_0x4f4f19[_0x41af10])&&(_0x3ea867=(_0x4515c3?_0xfa841a(_0x40f65e,_0x25448e,_0x3ea867):_0xfa841a(_0x3ea867))||_0x3ea867);return _0x4515c3&&_0x3ea867&&mo(_0x40f65e,_0x25448e,_0x3ea867),_0x3ea867;},H=(_0x117792,_0x3cc210)=>(_0x5c4669,_0x56fc7d)=>_0x3cc210(_0x5c4669,_0x56fc7d,_0x117792);let St=class extends _0x7d7f86{constructor(_0x2f0074,_0x48247c,_0x45990f,_0xce102,_0xab1555,_0x5d66b6,_0x4a6cd0,_0x4b06ea,_0x256186,_0xb4a2b5,_0x427e9e,_0x55f709,_0x1a6fd3){const _0x2ddcec=_0x159fb9;super(),g(this,'_state$',new _0x4cf3b1(null)),g(this,'state$',this[_0x2ddcec(0x48d)][_0x2ddcec(0x118)]()),g(this,_0x2ddcec(0x26d)),g(this,_0x2ddcec(0x408),!0x1),g(this,_0x2ddcec(0xc6),''),g(this,_0x2ddcec(0x2e0),0x0),g(this,'status$',this['state$'][_0x2ddcec(0x26b)](_0x27fdab(_0x345999=>_0x345999?_0x345999[_0x2ddcec(0x2c6)]:J[_0x2ddcec(0x2e8)]),_0x37b8c8(0x1))),g(this,_0x2ddcec(0x36f),!0x1),g(this,'_remoteChangesetQueue',[]),(this[_0x2ddcec(0x1bc)]=_0x2f0074,this[_0x2ddcec(0x3ca)]=_0x48247c,this['_type']=_0x45990f,this[_0x2ddcec(0x1d9)]=_0xce102,this['_localCacheService']=_0xab1555,this['_compressMutationService']=_0x5d66b6,this[_0x2ddcec(0xc8)]=_0x4a6cd0,this[_0x2ddcec(0x446)]=_0x4b06ea,this['_logService']=_0x256186,this[_0x2ddcec(0x388)]=_0xb4a2b5,this[_0x2ddcec(0x3b8)]=_0x427e9e,this[_0x2ddcec(0x3cb)]=_0x55f709,this[_0x2ddcec(0x15d)]=_0x1a6fd3);}get[_0x159fb9(0x243)](){return this['_state'];}async[_0x159fb9(0x318)](){const _0x8e310b=_0x159fb9;if(this[_0x8e310b(0x243)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x8e310b(0x3a1)]();}[_0x159fb9(0x42d)](){const _0x589eff=_0x159fb9;return this[_0x589eff(0x408)]=!0x0,_0x3f9d32(()=>{const _0x29ebba=_0x589eff;this[_0x29ebba(0x408)]=!0x1,this[_0x29ebba(0x309)]();});}[_0x159fb9(0x452)](_0x2f4d22){const _0x148385=_0x159fb9;this[_0x148385(0x26d)]=_0x2f4d22,this[_0x148385(0x48d)]['next'](_0x2f4d22);}async[_0x159fb9(0x3a1)](){const _0x2c2437=_0x159fb9;var _0x46c920;this[_0x2c2437(0x452)](await this[_0x2c2437(0x1e2)]()),this[_0x2c2437(0x15d)]&&((_0x46c920=this[_0x2c2437(0x15d)])==null||_0x46c920[_0x2c2437(0x361)](this[_0x2c2437(0x1bc)]),this[_0x2c2437(0x2e7)](this[_0x2c2437(0x15d)][_0x2c2437(0x127)](this[_0x2c2437(0x1bc)])[_0x2c2437(0x2fd)](_0x3af970=>{const _0x236eb6=_0x2c2437;this['_logService'][_0x236eb6(0x4b0)](_0x236eb6(0x399),_0x236eb6(0x3f9),_0x3af970),_0x3af970===Di[_0x236eb6(0x23e)]?(this[_0x236eb6(0x3b8)][_0x236eb6(0x3e9)]({'content':this[_0x236eb6(0xc8)]['t'](_0x236eb6(0x150)),'type':_0x450e6f['Warning']}),this['_permissionService'][_0x236eb6(0x36d)](new _0x435a22(this[_0x236eb6(0x1bc)])['id'],!0x1),this['_permissionService'][_0x236eb6(0x33a)](!0x1)):(this[_0x236eb6(0x3cb)][_0x236eb6(0x36d)](new _0x435a22(this[_0x236eb6(0x1bc)])['id'],!0x0),this[_0x236eb6(0x3cb)][_0x236eb6(0x33a)](!0x0));})));let _0x16ed83=!0x1;return this[_0x2c2437(0x2e7)](this[_0x2c2437(0x3ca)][_0x2c2437(0x338)]['subscribe'](_0x2f97d7=>{const _0xf766f7=_0x2c2437;_0x2f97d7===ve[_0xf766f7(0x2ef)]?this[_0xf766f7(0x354)](_0x16ed83):_0x2f97d7===ve[_0xf766f7(0x2e8)]&&(_0x16ed83=!0x0,this['_toggleOffline']());})),this[_0x2c2437(0x2e7)](this[_0x2c2437(0x3ca)]['event$'][_0x2c2437(0x2fd)](_0x1fac80=>{const _0x2705a8=_0x2c2437;try{switch(_0x1fac80[_0x2705a8(0x39e)]){case _0x33d7b7[_0x2705a8(0x2a9)]:{this[_0x2705a8(0xe0)](_0x460410(_0x1fac80['data']));break;}case _0x33d7b7[_0x2705a8(0x306)]:{this['_onRemoteACK'](_0x1fac80[_0x2705a8(0x216)]);break;}case _0x33d7b7[_0x2705a8(0x339)]:{this[_0x2705a8(0x120)]();break;}case _0x33d7b7[_0x2705a8(0x1a0)]:{this[_0x2705a8(0x141)](_0x1fac80[_0x2705a8(0x216)]);break;}case _0x33d7b7[_0x2705a8(0x15c)]:{this['_onFetchMissResult'](_0x1fac80[_0x2705a8(0x216)]['changesets'][_0x2705a8(0x349)](_0xcc0866=>_0x460410(_0xcc0866)));break;}case _0x33d7b7['PERMISSION_REJ']:this[_0x2705a8(0x120)]({'isPermissionRej':!0x0});}}catch(_0x18efb8){throw console['error'](_0x2705a8(0x134),_0x18efb8),_0x18efb8;}})),this['_state'];}[_0x159fb9(0x1c0)](){const _0x1c3bd1=_0x159fb9;this[_0x1c3bd1(0x36f)]=!0x1;}[_0x159fb9(0x42b)](){const _0x32d78c=_0x159fb9;if(this['_transitionLocked'])throw new Error(_0x32d78c(0x382));this['_transitionLocked']=!0x0;}[_0x159fb9(0x2b5)](_0x16b08){const _0x28ad11=_0x159fb9;this[_0x28ad11(0x42b)](),this[_0x28ad11(0x452)](this[_0x28ad11(0x26d)][_0x28ad11(0x129)](_0x16b08)),this[_0x28ad11(0x1c0)]();}[_0x159fb9(0xe0)](_0x81e071){const _0x23bd5d=_0x159fb9;if(!(_0x81e071[_0x23bd5d(0x324)]<=this[_0x23bd5d(0x446)][_0x23bd5d(0x257)](this[_0x23bd5d(0x1bc)]))){if(this[_0x23bd5d(0x408)]){this['_remoteChangesetQueue']['push'](_0x81e071);return;}this[_0x23bd5d(0x398)](_0x81e071);}}[_0x159fb9(0x309)](){const _0xc13b34=_0x159fb9;this[_0xc13b34(0x1cd)][_0xc13b34(0x30e)](_0x588a8a=>this[_0xc13b34(0x398)](_0x588a8a)),this[_0xc13b34(0x1cd)]=[];}[_0x159fb9(0x398)](_0x49efc8){const _0x604e10=_0x159fb9,_0x54fe46=this[_0x604e10(0x188)][_0x604e10(0x3d0)][_0x604e10(0x36e)](this[_0x604e10(0x188)][_0x604e10(0x3d0)][_0x604e10(0x191)]()[_0x604e10(0x47e)])(_0x49efc8[_0x604e10(0x29f)],null)||_0x49efc8[_0x604e10(0x29f)],_0x4f86d7={..._0x49efc8,'mutations':_0x54fe46};this[_0x604e10(0x42b)](),this[_0x604e10(0x452)](this[_0x604e10(0x26d)]['onRemoteChangeset'](_0x4f86d7)),this[_0x604e10(0x1c0)]();}[_0x159fb9(0xd8)](_0x2b859b){const _0x284806=_0x159fb9;this[_0x284806(0x42b)](),this[_0x284806(0x452)](this[_0x284806(0x26d)][_0x284806(0x419)](_0x2b859b)),this[_0x284806(0x1c0)]();}[_0x159fb9(0x120)](_0x508aaa){const _0x5b70d7=_0x159fb9;this[_0x5b70d7(0x42b)](),this[_0x5b70d7(0x452)](this[_0x5b70d7(0x26d)][_0x5b70d7(0x146)](_0x508aaa)),this[_0x5b70d7(0x1c0)]();}[_0x159fb9(0x141)](_0xaf50e){const _0x2ad2e2=_0x159fb9;this['_lockTransition'](),this[_0x2ad2e2(0x452)](this[_0x2ad2e2(0x26d)]['onRemoteRetry'](_0xaf50e)),this[_0x2ad2e2(0x1c0)]();}[_0x159fb9(0x194)](_0x1ce91a){const _0x2fef59=_0x159fb9;if(!(this[_0x2fef59(0x26d)]instanceof he))throw new TypeError(_0x2fef59(0x269));const _0x11f2f2=_0x1ce91a[_0x2fef59(0x349)](_0x16713e=>{const _0x477e14=_0x2fef59,_0x1340e1=this[_0x477e14(0x188)][_0x477e14(0x3d0)][_0x477e14(0x36e)](this['_compressMutationService']['interceptor'][_0x477e14(0x191)]()['COMPRESS_MUTATION_APPLY'])(_0x16713e[_0x477e14(0x29f)],null)||_0x16713e['mutations'];return{..._0x16713e,'mutations':_0x1340e1};});this['_lockTransition'](),this[_0x2fef59(0x452)](this[_0x2fef59(0x26d)][_0x2fef59(0x211)](_0x11f2f2)),this['_unlockTransition']();}[_0x159fb9(0x190)](){const _0x3631b9=_0x159fb9;this[_0x3631b9(0x42b)](),this[_0x3631b9(0x452)](this[_0x3631b9(0x26d)][_0x3631b9(0x346)]()),this[_0x3631b9(0x1c0)]();}[_0x159fb9(0x354)](_0x531014=!0x1){const _0x1bbe23=_0x159fb9;this[_0x1bbe23(0x42b)](),this[_0x1bbe23(0x452)](this[_0x1bbe23(0x26d)][_0x1bbe23(0x326)]()),this['_unlockTransition']();const _0x64d3d7=this[_0x1bbe23(0x26d)];_0x531014&&_0x64d3d7 instanceof Fe&&(this[_0x1bbe23(0x42b)](),this[_0x1bbe23(0x452)](_0x64d3d7[_0x1bbe23(0x4b1)]()),this[_0x1bbe23(0x1c0)]());}async['_createInitialState'](){return new Promise(_0x13bc8c=>{const _0x529129=_0x4457;this[_0x529129(0x3ca)][_0x529129(0x338)][_0x529129(0x26b)](_0x4c54f0(0x1))['subscribe'](async _0x35b86c=>{const _0xd576d8=_0x529129;_0x13bc8c(await this[_0xd576d8(0x13f)](_0x35b86c===ve['ONLINE']));});});}[_0x159fb9(0x2aa)](){const _0x13b213=this['unitID'];return{'onStateChange':(_0x153297,_0x4b6974)=>{const _0x301c0b=_0x4457;if(_0x153297!==this[_0x301c0b(0x26d)])throw new Error(_0x301c0b(0x31c)+_0x153297[_0x301c0b(0x2c6)]+'\x0aAfter:\x20'+_0x4b6974[_0x301c0b(0x2c6)]+'\x0aCurrent:\x20'+this[_0x301c0b(0x26d)][_0x301c0b(0x2c6)]);this[_0x301c0b(0x452)](_0x4b6974);},'onSendChangeset':_0xa02305=>{const _0x1c2400=_0x4457;_0xa02305[_0x1c2400(0x2bb)]||(_0xa02305['sid']=this['_changesetSessionId'],_0xa02305['reqId']=++this[_0x1c2400(0x2e0)]);const _0x26ecc3={'eventID':_0x33d7b7[_0x1c2400(0x31e)],'data':{'unitID':_0xa02305[_0x1c2400(0x1bc)],'unitType':this[_0x1c2400(0x33e)],'changeset':_0xa02305,'memberID':this[_0x1c2400(0x3ca)][_0x1c2400(0x24d)]()}};this[_0x1c2400(0x3ca)]['send'](_0x26ecc3,this[_0x1c2400(0x1bc)]);},'onMissingChangesets':({from:_0x5b078f,to:_0x5133e4})=>{const _0x531856=_0x4457;this[_0x531856(0x461)][_0x531856(0x4b0)](_0x531856(0x399),_0x531856(0x287)+_0x5b078f+_0x531856(0x404)+_0x5133e4);const _0x2c923c={'eventID':_0x33d7b7[_0x531856(0x1dc)],'data':{'unitID':_0x13b213,'unitType':this[_0x531856(0x33e)],'from':_0x5b078f,'to':_0x5133e4}};this['session'][_0x531856(0x4ab)](_0x2c923c,this[_0x531856(0x1bc)]);}};}async['_createInitialStateImpl'](_0x4d7c92){const _0x178c01=_0x159fb9;var _0x32df57,_0x57605e;const _0x4b4ecf=await this[_0x178c01(0x45f)][_0x178c01(0x2d5)](this[_0x178c01(0x1bc)]),_0x16fd84=(_0x32df57=_0x4b4ecf==null?void 0x0:_0x4b4ecf[_0x178c01(0x29f)])!=null?_0x32df57:[],_0x82f00f=(_0x57605e=_0x4b4ecf==null?void 0x0:_0x4b4ecf[_0x178c01(0x27d)])!=null?_0x57605e:null,_0x133374=!!(_0x82f00f!=null&&_0x82f00f[_0x178c01(0x2bb)])&&!!(_0x82f00f!=null&&_0x82f00f[_0x178c01(0x1ec)]);this[_0x178c01(0xc6)]=_0x133374?_0x82f00f[_0x178c01(0x2bb)]:Gr(),this[_0x178c01(0x2e0)]=_0x133374?_0x82f00f[_0x178c01(0x1ec)]:0x0;const _0xe35283=this['unitID'];try{this[_0x178c01(0x3f6)](_0x82f00f,_0x16fd84);}catch(_0x13f2cc){this['_logService'][_0x178c01(0x441)](_0x13f2cc);}const _0x1fa7e5=this[_0x178c01(0x2aa)]();if(_0x4d7c92){const _0x297960=Ai(this[_0x178c01(0x1d9)],_0xe35283,this['_type'],_0x82f00f,_0x16fd84,_0x1fa7e5);return _0x297960 instanceof pe?_0x297960[_0x178c01(0x3b5)]():(_0x297960 instanceof ge||_0x297960 instanceof Te)&&_0x297960['resend'](),_0x297960;}return this[_0x178c01(0x1d9)][_0x178c01(0x3fb)](ye,_0xe35283,this[_0x178c01(0x33e)],_0x82f00f,_0x16fd84,_0x1fa7e5);}[_0x159fb9(0x3f6)](_0x17a0af,_0x3d6ae3){const _0x17ed91=_0x159fb9;var _0x5e02df,_0x2fcd68;const _0x80ff57=this[_0x17ed91(0x188)][_0x17ed91(0x3d0)][_0x17ed91(0x36e)](this['_compressMutationService']['interceptor'][_0x17ed91(0x191)]()['COMPRESS_MUTATION_APPLY']);(_0x5e02df=_0x80ff57((_0x17a0af==null?void 0x0:_0x17a0af['mutations'])||[],null))==null||_0x5e02df[_0x17ed91(0x30e)](_0x1fc8c9=>this[_0x17ed91(0x388)][_0x17ed91(0xeb)](_0x1fc8c9['id'],_0x1fc8c9[_0x17ed91(0x11b)])),(_0x2fcd68=_0x80ff57(_0x3d6ae3||[],null))==null||_0x2fcd68[_0x17ed91(0x30e)](_0x196685=>this['_commandService'][_0x17ed91(0xeb)](_0x196685['id'],_0x196685[_0x17ed91(0x11b)]));}};St=Es([H(0x3,_0x3e8773(_0x3371c0)),H(0x4,_0x3e8773(q)),H(0x5,_0x3e8773(_0x386455)),H(0x6,_0x3e8773(_0x51cff0)),H(0x7,_0x3e8773(_0x2cef54)),H(0x8,_0x3738e4),H(0x9,_0x1bd495),H(0xa,_0x546aee),H(0xb,_0x1b485a),H(0xc,_0x24e594(yt))],St);let ss=class extends St{constructor(_0x2c26fa,_0x44ad1a,_0x52457f,_0x245bf4,_0xfd7296,_0x587d54,_0x441932,_0x569804,_0x4c019e,_0x1b1fed,_0x128155,_0x4e3564,_0x467efc,_0x4e0707,_0x26d1ae,_0x43620f,_0x4fe702,_0xa65a57){const _0x5cd79b=_0x159fb9;super(_0x2c26fa,_0x52457f,_0x44ad1a,_0x245bf4,_0xfd7296,_0x587d54,_0x441932,_0x569804,_0x4e0707,_0x26d1ae,_0x43620f,_0x4fe702,_0xa65a57),this[_0x5cd79b(0x1bc)]=_0x2c26fa,this[_0x5cd79b(0xab)]=_0x44ad1a,this[_0x5cd79b(0x27a)]=_0x4c019e,this[_0x5cd79b(0x25b)]=_0x1b1fed,this[_0x5cd79b(0xe8)]=_0x128155,this[_0x5cd79b(0x3f2)]=_0x4e3564,this[_0x5cd79b(0x369)]=_0x467efc;}['_createHandler'](){const _0xd45a20=_0x159fb9,_0x1e30ab=super['_createHandler']();return _0x1e30ab[_0xd45a20(0x447)]=_0x3e0e13=>this[_0xd45a20(0x25b)][_0xd45a20(0x2b9)](_0x3e0e13),_0x1e30ab[_0xd45a20(0x320)]=_0x415a46=>this[_0xd45a20(0xe8)][_0xd45a20(0xf0)](_0x415a46),_0x1e30ab[_0xd45a20(0x402)]=_0x42779c=>this[_0xd45a20(0x3f2)]['transformSelections'](_0x42779c),_0x1e30ab['onSyncEditingCollabCursor']=_0x472a3d=>this[_0xd45a20(0x369)][_0xd45a20(0x372)](_0x472a3d),_0x1e30ab[_0xd45a20(0x123)]=_0x454152=>this['_docTransformIMECacheService'][_0xd45a20(0x434)](_0x454152),_0x1e30ab[_0xd45a20(0x197)]=_0x4f0133=>this[_0xd45a20(0xe8)]['transformRemoteChangeset'](_0x4f0133),_0x1e30ab;}async[_0x159fb9(0x3a1)](){const _0x5bc866=_0x159fb9,_0x548635=await super[_0x5bc866(0x3a1)]();return this[_0x5bc866(0x27a)]['docStateChange$'][_0x5bc866(0x26b)](_0x514462(this[_0x5bc866(0x1ef)]))['subscribe'](_0x38358a=>{const _0xda02c=_0x5bc866;if(_0x38358a==null)return;const {unitId:_0x2a7cbd,redoState:_0x5ebd54,commandId:_0x258f82}=_0x38358a;if(_0x2a7cbd!==this[_0xda02c(0x1bc)])return;const _0x434cbb={'id':_0x258f82,'type':_0x351b9b[_0xda02c(0x2cc)],'params':{'unitId':_0x2a7cbd,'actions':_0x5ebd54[_0xda02c(0x124)],'textRanges':null}};this[_0xda02c(0x2b5)](_0x434cbb);}),_0x548635;}};ss=Es([H(0x3,_0x3e8773(_0x3371c0)),H(0x4,_0x3e8773(q)),H(0x5,_0x3e8773(_0x386455)),H(0x6,_0x3e8773(_0x51cff0)),H(0x7,_0x3e8773(_0x2cef54)),H(0x8,_0x3e8773(_0x4f127d)),H(0x9,_0x3e8773(vt)),H(0xa,_0x3e8773(pt)),H(0xb,_0x3e8773(gt)),H(0xc,_0x3e8773(Cs)),H(0xd,_0x3738e4),H(0xe,_0x1bd495),H(0xf,_0x546aee),H(0x10,_0x1b485a),H(0x11,_0x24e594(yt))],ss);let is=class extends St{constructor(_0x5727d5,_0x1605c9,_0x174741,_0x2fc734,_0xb5ba2,_0x50f3df,_0xe98070,_0x19270a,_0xd4f6f5,_0x199c2c,_0x2e565b,_0x56bb56,_0x3a86b1,_0xa626d2){const _0x5bdea6=_0x159fb9;super(_0x5727d5,_0x174741,_0x1605c9,_0x2fc734,_0xb5ba2,_0x50f3df,_0xe98070,_0x19270a,_0x199c2c,_0x2e565b,_0x56bb56,_0x3a86b1,_0xa626d2),this[_0x5bdea6(0x1bc)]=_0x5727d5,this['type']=_0x1605c9,this[_0x5bdea6(0x47a)]=_0xd4f6f5;}[_0x159fb9(0x2aa)](){const _0x3d35f1=_0x159fb9,_0x8ca5a7=super['_createHandler']();return _0x8ca5a7[_0x3d35f1(0x402)]=_0xf8dcf9=>this['_sheetTransformSelectionsService'][_0x3d35f1(0x2cd)](_0xf8dcf9),_0x8ca5a7;}async[_0x159fb9(0x3a1)](){const _0x5089f2=_0x159fb9,_0xd50ecd=await super[_0x5089f2(0x3a1)]();return this['disposeWithMe'](this['_commandService'][_0x5089f2(0x1e3)]((_0x4bae43,_0x39a7d6)=>{const _0x54b928=_0x5089f2;if(_0x4bae43[_0x54b928(0xab)]!==_0x351b9b[_0x54b928(0x2cc)]||_0x39a7d6!=null&&_0x39a7d6[_0x54b928(0x48f)]||_0x39a7d6!=null&&_0x39a7d6[_0x54b928(0x247)])return;const _0x8db362=_0x4bae43[_0x54b928(0x11b)];if((_0x8db362==null?void 0x0:_0x8db362[_0x54b928(0x235)])!==this[_0x54b928(0x1bc)])return;const _0x4fdc72=_0x4bae43,_0x484a80=this[_0x54b928(0x188)][_0x54b928(0x3d0)][_0x54b928(0x36e)](this['_compressMutationService'][_0x54b928(0x3d0)][_0x54b928(0x191)]()[_0x54b928(0x42a)])([_0x4fdc72],null)||[_0x4fdc72];this[_0x54b928(0x2b5)](_0x484a80[0x0]);})),_0xd50ecd;}};is=Es([H(0x3,_0x3e8773(_0x3371c0)),H(0x4,_0x3e8773(q)),H(0x5,_0x3e8773(_0x386455)),H(0x6,_0x3e8773(_0x51cff0)),H(0x7,_0x3e8773(_0x2cef54)),H(0x8,_0x3e8773(mt)),H(0x9,_0x3738e4),H(0xa,_0x1bd495),H(0xb,_0x546aee),H(0xc,_0x1b485a),H(0xd,_0x24e594(yt))],is);var go=Object[_0x159fb9(0xcf)],So=Object['getOwnPropertyDescriptor'],Io=(_0x19fe1c,_0x134315,_0x1f9148,_0x32785c)=>{const _0x2e726e=_0x159fb9;for(var _0x29859=_0x32785c>0x1?void 0x0:_0x32785c?So(_0x134315,_0x1f9148):_0x134315,_0x2b8de6=_0x19fe1c[_0x2e726e(0x3e5)]-0x1,_0x206c50;_0x2b8de6>=0x0;_0x2b8de6--)(_0x206c50=_0x19fe1c[_0x2b8de6])&&(_0x29859=(_0x32785c?_0x206c50(_0x134315,_0x1f9148,_0x29859):_0x206c50(_0x29859))||_0x29859);return _0x32785c&&_0x29859&&go(_0x134315,_0x1f9148,_0x29859),_0x29859;},Lt=(_0x22fe2d,_0x37d477)=>(_0x5f0f57,_0x1d3aa3)=>_0x37d477(_0x5f0f57,_0x1d3aa3,_0x22fe2d);let it=class extends _0x7d7f86{constructor(_0x25b795,_0x1835f4,_0x2f1c6b){const _0x1b931e=_0x159fb9;super(),g(this,_0x1b931e(0x143),new Map()),g(this,_0x1b931e(0x25c),new _0x2ec24b()),(this[_0x1b931e(0x1d9)]=_0x25b795,this['_collabSessionService']=_0x1835f4,this[_0x1b931e(0x116)]=_0x2f1c6b,this['_init']());}['dispose'](){const _0x11c8d8=_0x159fb9;super['dispose'](),this[_0x11c8d8(0x143)]['forEach'](_0x5c7438=>_0x5c7438['dispose']()),this['_entities'][_0x11c8d8(0x35a)]();}[_0x159fb9(0xf7)](_0x27534b){const _0x8da178=_0x159fb9;var _0x3c6c10;return(_0x3c6c10=this['_entities'][_0x8da178(0x413)](_0x27534b))!=null?_0x3c6c10:null;}['getCollabEntity$'](_0x37eb9d){const _0x177dd0=_0x159fb9,_0x2ae428=this[_0x177dd0(0xf7)](_0x37eb9d);return _0x2ae428?_0x3f0552(_0x2ae428):this[_0x177dd0(0x25c)][_0x177dd0(0x26b)](_0x1e7f12(_0x32e34e=>_0x32e34e['unitID']===_0x37eb9d));}[_0x159fb9(0x3a1)](){const _0x46ffb2=_0x159fb9;this[_0x46ffb2(0x116)][_0x46ffb2(0x27f)](_0x466101[_0x46ffb2(0x166)])['pipe'](_0x514462(this[_0x46ffb2(0x1ef)]),_0x1d6c6a(0x10))['subscribe'](async _0x1effe5=>{const _0x4a92cc=_0x46ffb2,_0x158129=_0x1effe5['getUnitId'](),_0x46044f=await this[_0x4a92cc(0x3b0)](_0x158129,ce[_0x4a92cc(0x166)]);this[_0x4a92cc(0x143)]['set'](_0x158129,_0x46044f);}),this[_0x46ffb2(0x116)][_0x46ffb2(0x27f)](_0x466101[_0x46ffb2(0x44a)])['pipe'](_0x514462(this[_0x46ffb2(0x1ef)]),_0x1d6c6a(0x10))[_0x46ffb2(0x26b)](_0x1e7f12(_0x4a02af=>!_0x4a02af[_0x46ffb2(0xd4)]()['startsWith']('__')))['subscribe'](async _0x3eea47=>{const _0x3b66a7=_0x46ffb2,_0x44f55c=_0x3eea47['getUnitId'](),_0x118da3=await this[_0x3b66a7(0x3b0)](_0x44f55c,ce['UNIVER_DOC']);this[_0x3b66a7(0x143)][_0x3b66a7(0x3d3)](_0x44f55c,_0x118da3);}),_0x548bea(this['_univerInstanceService'][_0x46ffb2(0x36c)](_0x466101[_0x46ffb2(0x166)]),this['_univerInstanceService'][_0x46ffb2(0x36c)](_0x466101[_0x46ffb2(0x44a)]))[_0x46ffb2(0x26b)](_0x514462(this[_0x46ffb2(0x1ef)]))[_0x46ffb2(0x2fd)](_0x1b5d8a=>{const _0x263e38=_0x46ffb2,_0x5b8988=_0x1b5d8a[_0x263e38(0xd4)](),_0x3a666b=this['_entities'][_0x263e38(0x413)](_0x5b8988);_0x3a666b&&(_0x3a666b[_0x263e38(0xda)](),this[_0x263e38(0x143)][_0x263e38(0x24e)](_0x5b8988));});}async[_0x159fb9(0x3b0)](_0x43089c,_0x369522){const _0x4fc851=_0x159fb9,_0x54ebc0=await this[_0x4fc851(0x3be)]['requireSession'](_0x43089c),_0x21d996=this[_0x4fc851(0x1d9)][_0x4fc851(0x3fb)](this[_0x4fc851(0x381)](_0x369522),_0x43089c,_0x369522,_0x54ebc0);return await _0x21d996[_0x4fc851(0x318)](),this[_0x4fc851(0x25c)][_0x4fc851(0x22f)](_0x21d996),_0x21d996;}[_0x159fb9(0x381)](_0x57c46f){const _0x3b846e=_0x159fb9;switch(_0x57c46f){case ce[_0x3b846e(0x44a)]:return ss;case ce[_0x3b846e(0x166)]:return is;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x57c46f);}}};it=Io([Lt(0x0,_0x3e8773(_0x3371c0)),Lt(0x1,_0x3e8773(Ae)),Lt(0x2,_0x40ba52)],it);const Gs=[_0x159fb9(0x1f6),_0x159fb9(0x19a),_0x159fb9(0x3bb),_0x159fb9(0xff),'blue400',_0x159fb9(0x112)];class bs extends _0x10d2e7{constructor(){const _0x277785=_0x159fb9;super(...arguments),g(this,_0x277785(0x48e),new Map()),g(this,_0x277785(0x3c2),0x0);}[_0x159fb9(0x1be)](_0x35f6ea){const _0x52677e=_0x159fb9;if(this[_0x52677e(0x48e)]['has'](_0x35f6ea))return this[_0x52677e(0x48e)][_0x52677e(0x413)](_0x35f6ea);const _0x236dd9=Gs[this[_0x52677e(0x3c2)]];return this[_0x52677e(0x3c2)]=(this[_0x52677e(0x3c2)]+0x1)%Gs['length'],this[_0x52677e(0x48e)][_0x52677e(0x3d3)](_0x35f6ea,_0x236dd9),_0x236dd9;}}var Co=Object[_0x159fb9(0xcf)],Eo=Object['getOwnPropertyDescriptor'],bo=(_0xd4962a,_0x4d8368,_0x317ced,_0x37e709)=>{const _0x31908c=_0x159fb9;for(var _0x2b4210=_0x37e709>0x1?void 0x0:_0x37e709?Eo(_0x4d8368,_0x317ced):_0x4d8368,_0x349128=_0xd4962a[_0x31908c(0x3e5)]-0x1,_0x1bfc1d;_0x349128>=0x0;_0x349128--)(_0x1bfc1d=_0xd4962a[_0x349128])&&(_0x2b4210=(_0x37e709?_0x1bfc1d(_0x4d8368,_0x317ced,_0x2b4210):_0x1bfc1d(_0x2b4210))||_0x2b4210);return _0x37e709&&_0x2b4210&&Co(_0x4d8368,_0x317ced,_0x2b4210),_0x2b4210;},Oe=(_0x140450,_0x2b7024)=>(_0x310019,_0x36b9d6)=>_0x2b7024(_0x310019,_0x36b9d6,_0x140450);const To=0x12c,Ro=0x64;let ns=class extends _0x7d7f86{constructor(_0x139f8a,_0x45f1c3,_0x4ee077,_0x4493d5,_0x59bfcc,_0x2554fa,_0x1b1b2b,_0x5e604a,_0x3017f2){const _0xdc4991=_0x159fb9;super(),g(this,'_online',!0x1),g(this,_0xdc4991(0x3a1),!0x1),g(this,_0xdc4991(0x157),new _0x4cf3b1(new Map())),g(this,_0xdc4991(0x3ce),this['_cursorInfo$'][_0xdc4991(0x118)]()),g(this,_0xdc4991(0x38e),new _0x4cf3b1([])),g(this,_0xdc4991(0x463),this[_0xdc4991(0x38e)][_0xdc4991(0x26b)](_0x21286a(To))),g(this,_0xdc4991(0xf1),_0x4222d7(_0x32e496=>{const _0x244a0a=_0xdc4991,_0x24f15f={'eventID':_0x33d7b7['UPDATE_CURSOR'],'data':{'unitID':this[_0x244a0a(0x1bc)],'memberID':this[_0x244a0a(0x30a)][_0x244a0a(0x24d)](),'selection':Pi(_0x32e496)}};this['_session']['send'](_0x24f15f,this[_0x244a0a(0x1bc)]);},Ro)),(this[_0xdc4991(0x1bc)]=_0x139f8a,this[_0xdc4991(0x30a)]=_0x45f1c3,this[_0xdc4991(0x1d9)]=_0x4ee077,this[_0xdc4991(0x27c)]=_0x4493d5,this[_0xdc4991(0x41e)]=_0x59bfcc,this[_0xdc4991(0x331)]=_0x2554fa,this[_0xdc4991(0x1a9)]=_0x1b1b2b,this[_0xdc4991(0x116)]=_0x5e604a,this[_0xdc4991(0x388)]=_0x3017f2);}get['cursorInfo'](){const _0x478886=_0x159fb9;return this[_0x478886(0x157)][_0x478886(0x495)]();}get[_0x159fb9(0x1d8)](){const _0xc2368f=_0x159fb9;return this[_0xc2368f(0x38e)][_0xc2368f(0x495)]();}[_0x159fb9(0xda)](){const _0x30954f=_0x159fb9;super[_0x30954f(0xda)](),this['_cursorInfo$'][_0x30954f(0x22f)](new Map()),this[_0x30954f(0x157)][_0x30954f(0x138)](),this[_0x30954f(0x38e)][_0x30954f(0x22f)]([]),this['_roomMembers$']['complete']();}[_0x159fb9(0x318)](){const _0x2b480e=_0x159fb9;this[_0x2b480e(0x3a1)]||(this[_0x2b480e(0x3a1)]=!0x0,this[_0x2b480e(0x30a)]['sessionStatus$'][_0x2b480e(0x26b)](_0x514462(this[_0x2b480e(0x1ef)]))[_0x2b480e(0x2fd)](_0x1765e3=>{const _0xbdf2c2=_0x2b480e;_0x1765e3===ve[_0xbdf2c2(0x2ef)]?this[_0xbdf2c2(0x354)]():this['_toggleOffline']();}),this[_0x2b480e(0x30a)][_0x2b480e(0x431)][_0x2b480e(0x26b)](_0x514462(this[_0x2b480e(0x1ef)]))[_0x2b480e(0x2fd)](_0x85d3b8=>{const _0x250fd6=_0x2b480e,_0x308a1c=_0x85d3b8[_0x250fd6(0x39e)];_0x308a1c===_0x33d7b7[_0x250fd6(0x497)]&&this['_onCursorUpdate'](_0x85d3b8),_0x308a1c===_0x33d7b7[_0x250fd6(0x477)]&&this[_0x250fd6(0x1c4)](_0x85d3b8);}),this[_0x2b480e(0x2e7)](this[_0x2b480e(0x388)]['onCommandExecuted'](_0x3adaa0=>{const _0x2de6e5=_0x2b480e,_0x2e28ee=_0x3adaa0[_0x2de6e5(0x11b)];_0x2e28ee!=null&&this[_0x2de6e5(0x24c)]&&_0x3adaa0['id']===_0x2082b4['id']&&_0x2e28ee[_0x2de6e5(0x235)]===this[_0x2de6e5(0x1bc)]&&_0x2e28ee[_0x2de6e5(0x322)]===!0x1&&_0x2e28ee['ranges'][_0x2de6e5(0x3e5)]>0x0&&this['_updateLocalCursor'](_0x2e28ee[_0x2de6e5(0x267)]);})),this[_0x2b480e(0x331)][_0x2b480e(0x19f)][_0x2b480e(0x26b)](_0x514462(this[_0x2b480e(0x1ef)]))[_0x2b480e(0x2fd)](_0x2bc662=>{const _0x3c0e28=_0x2b480e;if((_0x2bc662==null?void 0x0:_0x2bc662['unitID'])!==this[_0x3c0e28(0x1bc)])return;const _0x544e73={'eventID':_0x33d7b7[_0x3c0e28(0x497)],'data':_0x2bc662};this['_onCursorUpdate'](_0x544e73);}),this[_0x2b480e(0x2e7)](this[_0x2b480e(0x388)]['onCommandExecuted'](_0x2582f7=>{const _0x4a7bed=_0x2b480e;if(_0x2582f7[_0x4a7bed(0x11b)]==null)return;const _0x5a2fc5=_0x2582f7[_0x4a7bed(0x11b)];if(_0x2582f7['id']!==_0xe026b8['id']||_0x5a2fc5[_0x4a7bed(0x235)]!==this[_0x4a7bed(0x1bc)])return;const _0x597673={'id':_0x4a7bed(0xdd),'params':_0x5a2fc5},_0x2d5643=this['cursorInfo'];for(const [_0x3376f6,_0x4be036]of _0x2d5643){const _0x2b1088={'id':_0x4a7bed(0xdd),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4be036[_0x4a7bed(0x267)]}},_0x120dd6=this[_0x4a7bed(0x1a9)][_0x4a7bed(0x29c)](_0x597673,_0x2b1088,!0x1);if(_0x490f82(_0x120dd6))throw _0x120dd6[_0x4a7bed(0x441)];_0x2d5643[_0x4a7bed(0x3d3)](_0x3376f6,{..._0x4be036,'ranges':_0x120dd6[_0x4a7bed(0x12a)]['params'][_0x4a7bed(0x240)]});}queueMicrotask(()=>{const _0x10aa28=_0x4a7bed;this[_0x10aa28(0x157)][_0x10aa28(0x22f)](_0x2d5643);});})));}[_0x159fb9(0x46a)](_0x457b7e){const _0x19b6d5=_0x159fb9;var _0x2dfa70,_0x3b9473;const {memberID:_0xe5562b,selection:_0x529017}=_0x457b7e[_0x19b6d5(0x216)],_0x389d55=oo(_0x529017),_0x49ca52=(_0x3b9473=(_0x2dfa70=this[_0x19b6d5(0x41e)]['getMember'](this['unitID'],_0xe5562b))==null?void 0x0:_0x2dfa70[_0x19b6d5(0x3f3)])!=null?_0x3b9473:'Unknown\x20user',_0xffb6b7={'color':this[_0x19b6d5(0x27c)]['assignAColorForMemberID'](_0xe5562b),'name':_0x49ca52,'ranges':_0x389d55},_0x72c9a0=this[_0x19b6d5(0x234)];_0x72c9a0['set'](_0xe5562b,_0xffb6b7),this['_cursorInfo$'][_0x19b6d5(0x22f)](_0x72c9a0);}[_0x159fb9(0x1c4)](_0x6ff555){const _0x456c6a=_0x159fb9,{memberID:_0x5290d5}=_0x6ff555[_0x456c6a(0x216)],_0x1918a2=this[_0x456c6a(0x234)];_0x1918a2['delete'](_0x5290d5),this[_0x456c6a(0x157)][_0x456c6a(0x22f)](_0x1918a2);}[_0x159fb9(0x354)](){const _0x23daee=_0x159fb9;var _0x14fab6;if(this[_0x23daee(0x24c)]=!0x0,((_0x14fab6=this['_univerInstanceService'][_0x23daee(0x24f)]())==null?void 0x0:_0x14fab6[_0x23daee(0xd4)]())!==this[_0x23daee(0x1bc)])return;const _0x10ef8c=this['_injector'][_0x23daee(0x413)](_0xa56c0)['getDocRanges']();Array['isArray'](_0x10ef8c)&&_0x10ef8c[_0x23daee(0x3e5)]>0x0&&this[_0x23daee(0xf1)](_0x10ef8c);}[_0x159fb9(0x190)](){this['_online']=!0x1;}};ns=bo([Oe(0x2,_0x3e8773(_0x3371c0)),Oe(0x3,_0x3e8773(bs)),Oe(0x4,_0x3e8773(Ne)),Oe(0x5,_0x3e8773(Cs)),Oe(0x6,_0x1c07b8),Oe(0x7,_0x40ba52),Oe(0x8,_0x1bd495)],ns);var yo=Object[_0x159fb9(0xcf)],Oo=Object[_0x159fb9(0x37a)],wo=(_0x3b8f36,_0x358d8b,_0x409744,_0x4f221b)=>{const _0x471593=_0x159fb9;for(var _0x35e774=_0x4f221b>0x1?void 0x0:_0x4f221b?Oo(_0x358d8b,_0x409744):_0x358d8b,_0x2f1773=_0x3b8f36[_0x471593(0x3e5)]-0x1,_0x1fb4da;_0x2f1773>=0x0;_0x2f1773--)(_0x1fb4da=_0x3b8f36[_0x2f1773])&&(_0x35e774=(_0x4f221b?_0x1fb4da(_0x358d8b,_0x409744,_0x35e774):_0x1fb4da(_0x35e774))||_0x35e774);return _0x4f221b&&_0x35e774&&yo(_0x358d8b,_0x409744,_0x35e774),_0x35e774;},Be=(_0x5c2d45,_0x50ac65)=>(_0x527de4,_0x457a17)=>_0x50ac65(_0x527de4,_0x457a17,_0x5c2d45);const Do=0x12c,Po=0x64,Uo=()=>{let _0x57fb7f=[],_0x108957=!0x1;return _0x583197=>{const _0x5e85b7=_0x4457;_0x57fb7f[_0x5e85b7(0x3c8)](_0x583197),_0x108957||(_0x108957=!0x0,setTimeout(()=>{const _0x2879d0=_0x5e85b7;_0x57fb7f[_0x2879d0(0x30e)](_0x437335=>_0x437335()),_0x57fb7f=[],_0x108957=!0x1;}));};};let rs=class extends _0x7d7f86{constructor(_0x5b24c6,_0x669bb8,_0x512f68,_0x4521b3,_0x4cfcbc,_0x530c1c,_0x83d12e,_0x3807e5){const _0x90c7a4=_0x159fb9;super(),g(this,'_online',!0x1),g(this,'_init',!0x1),g(this,_0x90c7a4(0x157),new _0x4cf3b1(new Map())),g(this,'cursorInfo$',this['_cursorInfo$'][_0x90c7a4(0x118)]()),g(this,_0x90c7a4(0x38e),new _0x4cf3b1([])),g(this,_0x90c7a4(0x463),this[_0x90c7a4(0x38e)][_0x90c7a4(0x26b)](_0x21286a(Do))),g(this,_0x90c7a4(0xf1),_0x4222d7((_0x59338f,_0x2c24bf)=>{const _0x3d7b51=_0x90c7a4,_0x12ed0b={'eventID':_0x33d7b7[_0x3d7b51(0x497)],'data':{'unitID':this[_0x3d7b51(0x1bc)],'memberID':this['_session']['getMemberID'](),'selection':_0x59f038(_0x59338f,_0x2c24bf['range'])}};this['_session'][_0x3d7b51(0x4ab)](_0x12ed0b,this[_0x3d7b51(0x1bc)]);},Po)),(this['unitID']=_0x5b24c6,this[_0x90c7a4(0x30a)]=_0x669bb8,this[_0x90c7a4(0x1d9)]=_0x512f68,this[_0x90c7a4(0x27c)]=_0x4521b3,this[_0x90c7a4(0x41e)]=_0x4cfcbc,this[_0x90c7a4(0x116)]=_0x530c1c,this[_0x90c7a4(0x388)]=_0x83d12e,this[_0x90c7a4(0x334)]=_0x3807e5);}get[_0x159fb9(0x234)](){const _0x3b3657=_0x159fb9;return this[_0x3b3657(0x157)][_0x3b3657(0x495)]();}get[_0x159fb9(0x1d8)](){const _0xe75b22=_0x159fb9;return this['_roomMembers$'][_0xe75b22(0x495)]();}[_0x159fb9(0xda)](){const _0x3d75e1=_0x159fb9;super['dispose'](),this[_0x3d75e1(0x157)][_0x3d75e1(0x22f)](new Map()),this[_0x3d75e1(0x157)][_0x3d75e1(0x138)](),this[_0x3d75e1(0x38e)][_0x3d75e1(0x22f)]([]),this[_0x3d75e1(0x38e)][_0x3d75e1(0x138)]();}[_0x159fb9(0x318)](){const _0x24cd92=_0x159fb9;this[_0x24cd92(0x3a1)]||(this[_0x24cd92(0x3a1)]=!0x0,this[_0x24cd92(0x30a)][_0x24cd92(0x338)]['pipe'](_0x514462(this[_0x24cd92(0x1ef)]))['subscribe'](_0x14e37b=>{const _0x16fc73=_0x24cd92;_0x14e37b===ve['ONLINE']?this[_0x16fc73(0x354)]():this[_0x16fc73(0x190)]();}),this[_0x24cd92(0x30a)][_0x24cd92(0x431)][_0x24cd92(0x26b)](_0x514462(this[_0x24cd92(0x1ef)]))[_0x24cd92(0x2fd)](_0x1880bc=>{const _0x4c3673=_0x24cd92,_0x589527=_0x1880bc[_0x4c3673(0x39e)];_0x589527===_0x33d7b7['UPDATE_CURSOR']&&this[_0x4c3673(0x46a)](_0x1880bc),_0x589527===_0x33d7b7[_0x4c3673(0x477)]&&this[_0x4c3673(0x1c4)](_0x1880bc);}),this[_0x24cd92(0x3e3)](),this[_0x24cd92(0x2e7)](this[_0x24cd92(0x388)][_0x24cd92(0x1e3)](_0x2646fa=>{const _0x467324=_0x24cd92;if(this['_online']&&_0x2646fa['id']===_0x34fe8d['id']&&_0x2646fa[_0x467324(0x11b)]['unitId']===this[_0x467324(0x1bc)]){const _0x37bf50=_0x2646fa[_0x467324(0x11b)];this['_updateLocalCursor'](_0x37bf50[_0x467324(0x3b4)],_0x37bf50[_0x467324(0x22b)][0x0]);}})));}['_onCursorUpdate'](_0x2e5c8c){const _0x375fdf=_0x159fb9;var _0x108551,_0x332e18;const {memberID:_0x2133e3,selection:_0x5311ae}=_0x2e5c8c[_0x375fdf(0x216)],{sheetName:_0x53be9a,range:_0x270c86}=_0x2d1f09(_0x5311ae),_0x15819c={'name':(_0x332e18=(_0x108551=this[_0x375fdf(0x41e)][_0x375fdf(0x3a9)](this[_0x375fdf(0x1bc)],_0x2133e3))==null?void 0x0:_0x108551[_0x375fdf(0x3f3)])!=null?_0x332e18:'Unknown\x20user','range':this['_getMergeRange'](_0x53be9a,_0x270c86),'sheetID':_0x53be9a,'color':this[_0x375fdf(0x27c)][_0x375fdf(0x1be)](_0x2133e3),'selection':_0x5311ae},_0x5722d7=this['cursorInfo'];_0x5722d7[_0x375fdf(0x3d3)](_0x2133e3,_0x15819c),this[_0x375fdf(0x157)][_0x375fdf(0x22f)](_0x5722d7);}[_0x159fb9(0x1c4)](_0x4381c8){const _0x5d7a8a=_0x159fb9,{memberID:_0x496928}=_0x4381c8[_0x5d7a8a(0x216)],_0xeb3bd=this['cursorInfo'];_0xeb3bd['delete'](_0x496928),this[_0x5d7a8a(0x157)][_0x5d7a8a(0x22f)](_0xeb3bd);}['_getMergeRange'](_0x6e8a87,_0x336c6b){const _0x20b4f8=_0x159fb9;var _0x2701cc,_0x53326b;const _0x1f9d5e=(_0x53326b=(_0x2701cc=this['_univerInstanceService'][_0x20b4f8(0xee)](this[_0x20b4f8(0x1bc)]))==null?void 0x0:_0x2701cc['getSheetBySheetId'](_0x6e8a87))==null?void 0x0:_0x53326b['getMergeData']();return(_0x1f9d5e==null?void 0x0:_0x1f9d5e[_0x20b4f8(0x35c)](_0x2e7ed4=>_0x1635b8['contains'](_0x2e7ed4,_0x336c6b)))||_0x336c6b;}[_0x159fb9(0x3e3)](){const _0x49150c=_0x159fb9,_0x5afd15=new _0x3d6474(),_0x25e23f=Uo(),_0x14a8e7=()=>{const _0x1057dd=_0x4457;_0x5afd15['dispose']();const _0x29b2ff=(_0xbf354b,_0x1c7315,_0x295619,_0x499b03)=>{const _0x35e69c=_0x4457;let _0xfe8fbc=[];switch(_0xbf354b['id']){case _0x48bd13['DeleteRangeMoveLeftCommandId']:{_0xfe8fbc=_0x453619(_0xbf354b,_0x499b03);break;}case _0x48bd13['DeleteRangeMoveUpCommandId']:{_0xfe8fbc=_0x4793c5(_0xbf354b,_0x499b03);break;}case _0x48bd13['InsertColCommandId']:{_0xfe8fbc=_0x114072(_0xbf354b,_0x499b03);break;}case _0x48bd13[_0x35e69c(0x1ea)]:{_0xfe8fbc=_0x480e3a(_0xbf354b,_0x499b03);break;}case _0x48bd13[_0x35e69c(0x1cc)]:{_0xfe8fbc=_0x7fc677(_0xbf354b,_0x499b03);break;}case _0x48bd13[_0x35e69c(0x2c8)]:{_0xfe8fbc=_0x4a6b6a(_0xbf354b,_0x499b03);break;}case _0x48bd13[_0x35e69c(0x1bf)]:{_0xfe8fbc=_0x38063e(_0xbf354b,_0x499b03);break;}case _0x48bd13['RemoveColCommandId']:{_0xfe8fbc=_0x5a25ad(_0xbf354b,_0x499b03);break;}case _0x48bd13[_0x35e69c(0x2b2)]:{_0xfe8fbc=_0x5c0a81(_0xbf354b,_0x499b03);break;}}const _0x31f29c=_0x3fc3f2(_0xfe8fbc,_0x499b03),_0x20ff13=this[_0x35e69c(0x234)]['get'](_0x1c7315);if(_0x20ff13&&_0x31f29c){const _0x3c929c={..._0x20ff13,'range':_0x31f29c};this[_0x35e69c(0x234)]['set'](_0x1c7315,_0x3c929c),_0x25e23f(()=>{const _0xc155f7=_0x35e69c,_0x45a17b=this[_0xc155f7(0x334)]['registerRefRange'](_0x31f29c,_0x4c352a=>(_0x45a17b[_0xc155f7(0xda)](),_0x29b2ff(_0x4c352a,_0x1c7315,_0x295619,_0x31f29c)));_0x5afd15[_0xc155f7(0x342)](_0x45a17b);});}return{'redos':[],'undos':[]};};this[_0x1057dd(0x234)][_0x1057dd(0x30e)]((_0x209a96,_0x27a253)=>{const _0x4ee066=_0x1057dd,{range:_0x2a6ac5,sheetID:_0x3217df}=_0x209a96,_0x56331b=this[_0x4ee066(0x334)][_0x4ee066(0x4a8)](_0x2a6ac5,_0x1932c3=>(_0x56331b[_0x4ee066(0xda)](),_0x29b2ff(_0x1932c3,_0x27a253,_0x3217df,_0x2a6ac5)));_0x5afd15['add'](_0x56331b);});};this[_0x49150c(0x2e7)](_0x3f9d32(this['_cursorInfo$'][_0x49150c(0x2fd)](()=>{_0x14a8e7();})));}['_toggleOnline'](){const _0x324ebd=_0x159fb9;var _0x33a51a,_0x13c5c9;if(this[_0x324ebd(0x24c)]=!0x0,((_0x33a51a=this[_0x324ebd(0x116)][_0x324ebd(0x24f)]())==null?void 0x0:_0x33a51a[_0x324ebd(0xd4)]())!==this[_0x324ebd(0x1bc)])return;const _0x5cf52f=(_0x13c5c9=this[_0x324ebd(0x1d9)][_0x324ebd(0x413)](_0x4d7738)[_0x324ebd(0x406)]())==null?void 0x0:_0x13c5c9[0x0],_0x309b62=this['_univerInstanceService'][_0x324ebd(0x27b)](_0x466101[_0x324ebd(0x166)])[_0x324ebd(0x27e)]();_0x5cf52f&&_0x309b62&&this[_0x324ebd(0xf1)](_0x309b62[_0x324ebd(0xc7)](),_0x5cf52f);}[_0x159fb9(0x190)](){const _0x1deaa5=_0x159fb9;this[_0x1deaa5(0x24c)]=!0x1;}};rs=wo([Be(0x2,_0x3e8773(_0x3371c0)),Be(0x3,_0x3e8773(bs)),Be(0x4,_0x3e8773(Ne)),Be(0x5,_0x40ba52),Be(0x6,_0x1bd495),Be(0x7,_0x3e8773(_0x49343b))],rs);var No=Object['defineProperty'],Ao=Object[_0x159fb9(0x37a)],Mo=(_0x16dff3,_0x559288,_0x33e776,_0xd62bfa)=>{const _0x1bc421=_0x159fb9;for(var _0x48a5d7=_0xd62bfa>0x1?void 0x0:_0xd62bfa?Ao(_0x559288,_0x33e776):_0x559288,_0x39a75c=_0x16dff3[_0x1bc421(0x3e5)]-0x1,_0x3737ed;_0x39a75c>=0x0;_0x39a75c--)(_0x3737ed=_0x16dff3[_0x39a75c])&&(_0x48a5d7=(_0xd62bfa?_0x3737ed(_0x559288,_0x33e776,_0x48a5d7):_0x3737ed(_0x48a5d7))||_0x48a5d7);return _0xd62bfa&&_0x48a5d7&&No(_0x559288,_0x33e776,_0x48a5d7),_0x48a5d7;},$t=(_0x3ad1f8,_0x122be8)=>(_0xca568b,_0x3f901c)=>_0x122be8(_0xca568b,_0x3f901c,_0x3ad1f8);let Ve=class extends _0x7d7f86{constructor(_0x1a280c,_0x411f3c,_0x11236b){const _0x28abc2=_0x159fb9;super(),g(this,_0x28abc2(0x143),new Map()),g(this,_0x28abc2(0x25c),new _0x2ec24b()),(this[_0x28abc2(0x116)]=_0x1a280c,this['_injector']=_0x411f3c,this[_0x28abc2(0x3be)]=_0x11236b,this[_0x28abc2(0x3a1)]());}[_0x159fb9(0xda)](){const _0x3571ac=_0x159fb9;super[_0x3571ac(0xda)](),this['_entityInit$'][_0x3571ac(0x138)](),this[_0x3571ac(0x143)][_0x3571ac(0x30e)](_0xac4150=>_0xac4150['dispose']());}[_0x159fb9(0xe1)](_0x2a2c13){const _0x418426=_0x159fb9;return this[_0x418426(0x143)]['has'](_0x2a2c13)?this[_0x418426(0x143)][_0x418426(0x413)](_0x2a2c13)[_0x418426(0x3ce)]:this[_0x418426(0x25c)]['pipe'](_0x5add67(_0x2a3d59=>_0x2a3d59[_0x418426(0x1bc)]===_0x2a2c13),_0x33575c(_0x14e0a0=>_0x14e0a0[_0x418426(0x3ce)]));}[_0x159fb9(0x3a1)](){const _0xc33bb2=_0x159fb9;this[_0xc33bb2(0x116)][_0xc33bb2(0x27f)](_0x466101[_0xc33bb2(0x166)])[_0xc33bb2(0x26b)](_0x514462(this[_0xc33bb2(0x1ef)]))['subscribe'](async _0x574aef=>{const _0x2431f5=_0xc33bb2,_0x39760f=_0x574aef['getUnitId'](),_0x3e9948=await this['_startSheetCollabCursor'](_0x39760f);this['_entityInit$'][_0x2431f5(0x22f)](_0x3e9948),this['_entities'][_0x2431f5(0x3d3)](_0x39760f,_0x3e9948);}),this[_0xc33bb2(0x116)][_0xc33bb2(0x27f)](_0x466101['UNIVER_DOC'])[_0xc33bb2(0x26b)](_0x514462(this[_0xc33bb2(0x1ef)]))[_0xc33bb2(0x26b)](_0x5add67(_0x58428c=>!_0x58428c['getUnitId']()['startsWith']('__')))[_0xc33bb2(0x2fd)](async _0x4f3839=>{const _0x15fa40=_0xc33bb2,_0x53449c=_0x4f3839['getUnitId'](),_0x44ad32=await this[_0x15fa40(0x2b6)](_0x53449c);this[_0x15fa40(0x25c)][_0x15fa40(0x22f)](_0x44ad32),this['_entities']['set'](_0x53449c,_0x44ad32);}),_0x548bea(this[_0xc33bb2(0x116)]['getTypeOfUnitDisposed$'](_0x466101[_0xc33bb2(0x44a)]),this[_0xc33bb2(0x116)][_0xc33bb2(0x36c)](_0x466101[_0xc33bb2(0x166)]))['pipe'](_0x514462(this[_0xc33bb2(0x1ef)]))[_0xc33bb2(0x2fd)](_0x431646=>{const _0x5466b5=_0xc33bb2,_0x9d0c21=_0x431646[_0x5466b5(0xd4)](),_0x5355ec=this[_0x5466b5(0x143)][_0x5466b5(0x413)](_0x9d0c21);_0x5355ec&&(_0x5355ec[_0x5466b5(0xda)](),this['_entities'][_0x5466b5(0x24e)](_0x9d0c21));});}async[_0x159fb9(0x3e2)](_0x277b86){const _0x2687f8=_0x159fb9,_0x421efb=await this[_0x2687f8(0x3be)]['requireSession'](_0x277b86),_0x21c83f=this[_0x2687f8(0x1d9)][_0x2687f8(0x3fb)](rs,_0x277b86,_0x421efb);return _0x21c83f[_0x2687f8(0x318)](),_0x21c83f;}async[_0x159fb9(0x2b6)](_0x34d136){const _0x54604c=_0x159fb9,_0x373aae=await this['_collabSessionService'][_0x54604c(0x470)](_0x34d136),_0x3a2518=this[_0x54604c(0x1d9)][_0x54604c(0x3fb)](ns,_0x34d136,_0x373aae);return _0x3a2518[_0x54604c(0x318)](),_0x3a2518;}};Ve=Mo([$t(0x0,_0x40ba52),$t(0x1,_0x3e8773(_0x3371c0)),$t(0x2,_0x3e8773(Ae))],Ve);const nt=0x14,Ys=0xc8,Ht=0x4,xo=0x5;function Lo(_0x497bbe,_0x383d4e){const _0x2d37be=_0x159fb9;let {radius:_0xc9c8de,width:_0x43052c,height:_0x4aa991}=_0x383d4e;_0xc9c8de=_0xc9c8de!=null?_0xc9c8de:0x0,_0x43052c=_0x43052c!=null?_0x43052c:0x1e,_0x4aa991=_0x4aa991!=null?_0x4aa991:0x1e;let _0x4cf3bf=0x0,_0xd1c667=0x0,_0x2ae1f6=0x0;_0x4cf3bf=_0xd1c667=_0x2ae1f6=Math['min'](_0xc9c8de,_0x43052c/0x2,_0x4aa991/0x2),_0x497bbe['beginPath'](),_0x497bbe[_0x2d37be(0x110)](_0x4cf3bf,0x0),_0x497bbe['lineTo'](_0x43052c-_0xd1c667,0x0),_0x497bbe['arc'](_0x43052c-_0xd1c667,_0xd1c667,_0xd1c667,Math['PI']*0x3/0x2,0x0,!0x1),_0x497bbe['lineTo'](_0x43052c,_0x4aa991-_0x2ae1f6),_0x497bbe[_0x2d37be(0x19e)](_0x43052c-_0x2ae1f6,_0x4aa991-_0x2ae1f6,_0x2ae1f6,0x0,Math['PI']/0x2,!0x1),_0x497bbe[_0x2d37be(0x2fa)](0x0,_0x4aa991),_0x497bbe[_0x2d37be(0x2fa)](0x0,_0x4cf3bf),_0x497bbe['arc'](_0x4cf3bf,_0x4cf3bf,_0x4cf3bf,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x497bbe['closePath'](),_0x383d4e['fill']&&(_0x497bbe[_0x2d37be(0x14f)](),_0x497bbe[_0x2d37be(0x2f4)]=_0x383d4e[_0x2d37be(0x1a7)],_0x383d4e[_0x2d37be(0x1b5)]===_0x2d37be(0x3ee)?_0x497bbe['fill']('evenodd'):_0x497bbe['fill'](),_0x497bbe['restore']());}class Ot extends _0x3b774{constructor(_0x571db3,_0x1c2d2e){const _0x28cd1c=_0x159fb9;super(_0x571db3,_0x1c2d2e),g(this,_0x28cd1c(0x14a)),g(this,'text'),(this[_0x28cd1c(0x14a)]=_0x1c2d2e==null?void 0x0:_0x1c2d2e['color'],this['text']=_0x1c2d2e==null?void 0x0:_0x1c2d2e['text']);}static['drawWith'](_0x3d928a,_0xcc9a9f){const _0x3565c3=_0x159fb9,{text:_0x2cf69a,color:_0x32177a}=_0xcc9a9f;_0x3d928a['save'](),_0x3d928a[_0x3565c3(0x481)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x915844=_0x3d928a[_0x3565c3(0x213)](_0x2cf69a)[_0x3565c3(0x26f)],_0x30e6b8=Math[_0x3565c3(0x242)](_0x915844+0x2*Ht,Ys);Lo(_0x3d928a,{'height':nt,'radius':0x4,'width':_0x30e6b8,'fill':_0x32177a,'evented':!0x1}),_0x3d928a[_0x3565c3(0x2f4)]=_0x3565c3(0xb0);const _0xdea36d=Ht,_0x4859a4=nt-xo,_0x3fad47=Ys-0x2*Ht;if(_0x915844>_0x3fad47){let _0xd9a323='',_0xbc3bf3=0x0;for(const _0x465307 of _0x2cf69a){const _0x1bc3c2=_0x3d928a[_0x3565c3(0x213)](_0x465307)[_0x3565c3(0x26f)];if(_0xbc3bf3+_0x1bc3c2<=_0x3fad47-_0x3d928a['measureText']('...')['width'])_0xd9a323+=_0x465307,_0xbc3bf3+=_0x1bc3c2;else{_0xd9a323+=_0x3565c3(0xbc);break;}}_0x3d928a[_0x3565c3(0x41b)](_0xd9a323,_0xdea36d,_0x4859a4);}else _0x3d928a[_0x3565c3(0x41b)](_0x2cf69a,_0xdea36d,_0x4859a4);_0x3d928a[_0x3565c3(0xe6)]();}[_0x159fb9(0x31a)](_0x11d2b8){const _0x5685ab=_0x159fb9;Ot[_0x5685ab(0x2b1)](_0x11d2b8,this);}}const jt='collab-text-anchor-',$o=_0x159fb9(0x2a0),Ho=_0x159fb9(0x262),Je=0x6,jo=1.5,Bt=0x4,Bo=1.5,ko=_0x159fb9(0x2a8);class Ks{constructor(_0xaab54e,_0x4d5ccf,_0x26f414,_0x32f6ec){const _0x4f2819=_0x159fb9;g(this,_0x4f2819(0x3ab),[]),g(this,_0x4f2819(0x24b),null),g(this,_0x4f2819(0x43e),null),g(this,'_anchorDot',null),g(this,'_hideTimer',null),g(this,'_eventUnsubscribe',null),(this[_0x4f2819(0x3cf)]=_0xaab54e,this['_scene']=_0x4d5ccf,this[_0x4f2819(0x3d8)]=_0x26f414,this[_0x4f2819(0x432)]=_0x32f6ec,this[_0x4f2819(0x295)]());}set[_0x159fb9(0x259)](_0x2a41aa){const _0x56e93d=_0x159fb9;_0x2a41aa?(this[_0x56e93d(0x178)]&&this[_0x56e93d(0x178)][_0x56e93d(0x41a)](),this[_0x56e93d(0x43e)]&&this['_textBubble'][_0x56e93d(0x3e9)]()):(this[_0x56e93d(0x178)]&&this[_0x56e93d(0x178)][_0x56e93d(0x3e9)](),this['_textBubble']&&this[_0x56e93d(0x43e)][_0x56e93d(0x41a)]());}[_0x159fb9(0xda)](){const _0x3be609=_0x159fb9;for(const _0x2079a9 of this[_0x3be609(0x3ab)])_0x2079a9[_0x3be609(0xda)]();this['_textBubble']&&this[_0x3be609(0x43e)][_0x3be609(0xda)](),this[_0x3be609(0x178)]&&this[_0x3be609(0x178)][_0x3be609(0xda)](),this[_0x3be609(0x24b)]&&this[_0x3be609(0x24b)][_0x3be609(0xda)](),this['_eventUnsubscribe']&&this[_0x3be609(0x23b)]();}[_0x159fb9(0x295)](){const _0x1250fe=_0x159fb9;var _0x47cb93;const {_docSkeleton:_0x3004ba,_document:_0x978b43}=this,{color:_0xcabf13,name:_0xe992c,ranges:_0x456101}=this['_cursor'],_0x328824=_0x978b43['getOffsetConfig'](),{docsLeft:_0xe9b534,docsTop:_0x25be12}=_0x328824,_0x27dbd6=new _0x3801fe(_0x328824,_0x3004ba);for(const {startOffset:_0x3fa03d,endOffset:_0x25dc91,rangeType:_0xf6ebeb,segmentId:_0x40cced,segmentPage:_0x15cd81,collapsed:_0x434afc,isActive:_0x249143}of _0x456101){const _0x23e75c=_0x3004ba[_0x1250fe(0x298)](_0x3fa03d,!0x0,_0x40cced,_0x15cd81);let _0x111841=_0x3004ba[_0x1250fe(0x298)](_0x25dc91,!0x0,_0x40cced,_0x15cd81);if(_0x111841==null&&(_0x111841=_0x3004ba[_0x1250fe(0x298)](_0x25dc91-0x1,!0x1,_0x40cced,_0x15cd81)),_0x249143){const {contentBoxPointGroup:_0x22e0a9}=_0x27dbd6[_0x1250fe(0x1b3)](_0x111841,_0x111841);if(_0x22e0a9[_0x1250fe(0x3e5)]===0x0)continue;this[_0x1250fe(0x233)](_0xcabf13,_0x22e0a9,_0xe9b534,_0x25be12,_0xe992c),this[_0x1250fe(0x23b)]=this[_0x1250fe(0x43b)]();}if(!_0x434afc&&_0x23e75c&&_0x111841){if(_0xf6ebeb===_0x4b8239['RECT']){const _0x56be33=new _0x215c49(_0x328824,_0x3004ba),{pointGroup:_0xe648a7}=(_0x47cb93=_0x56be33['getRangePointData'](_0x23e75c,_0x111841))!=null?_0x47cb93:{};if(_0xe648a7==null||_0xe648a7[_0x1250fe(0x3e5)]===0x0)continue;this[_0x1250fe(0x108)](_0xcabf13,_0xe648a7,_0xe9b534,_0x25be12);}else{const {borderBoxPointGroup:_0x2ae75e}=_0x27dbd6[_0x1250fe(0x1b3)](_0x23e75c,_0x111841);if(_0x2ae75e[_0x1250fe(0x3e5)]===0x0)continue;this[_0x1250fe(0x148)](_0xcabf13,_0x2ae75e,_0xe9b534,_0x25be12);}}}}[_0x159fb9(0x233)](_0x3eef8d,_0x45ed5a,_0x3a988a,_0x4f7e39,_0x2e0bd6){const _0x3c1f11=_0x159fb9,_0x533ca0=this[_0x3c1f11(0x4aa)](_0x45ed5a),{left:_0x1b98e2,top:_0x1045ca,height:_0x5e0b16}=_0x533ca0,_0x2b272e=this[_0x3c1f11(0x20a)](),_0x279e53=Bo/_0x2b272e,_0x2e51d2=new _0x1bba01(jt+_0x26d13d[_0x3c1f11(0x467)](Je),{'left':_0x1b98e2+_0x3a988a-_0x279e53,'top':_0x1045ca+_0x4f7e39,'height':_0x5e0b16,'width':jo,'fill':_0x3eef8d||_0x4b9053(_0x511505[_0x3c1f11(0x3d1)],0x0),'strokeWidth':_0x279e53,'stroke':ko,'evented':!0x0});this[_0x3c1f11(0x24b)]=_0x2e51d2,this[_0x3c1f11(0x1e6)][_0x3c1f11(0x486)](_0x2e51d2,_0x33eb3d);const _0x3e4d2a=new _0x1bba01(jt+_0x26d13d[_0x3c1f11(0x467)](Je),{'left':_0x1b98e2+_0x3a988a-_0x279e53,'top':_0x1045ca+_0x4f7e39-Bt/0x2,'height':Bt,'width':Bt,'fill':_0x3eef8d||_0x4b9053(_0x511505['black'],0x0),'strokeWidth':0x0,'stroke':_0x3eef8d||_0x4b9053(_0x511505[_0x3c1f11(0x3d1)],0x0),'evented':!0x1});this['_anchorDot']=_0x3e4d2a,this[_0x3c1f11(0x1e6)][_0x3c1f11(0x486)](_0x3e4d2a,_0x33eb3d);const _0x11a8fa=new Ot(jt+_0x26d13d[_0x3c1f11(0x467)](Je),{'left':_0x1b98e2+_0x3a988a-_0x279e53,'top':_0x1045ca+_0x4f7e39-nt,'text':_0x2e0bd6,'color':_0x3eef8d});this[_0x3c1f11(0x43e)]=_0x11a8fa,this['_scene']['addObject'](_0x11a8fa,_0x33eb3d),this[_0x3c1f11(0x259)]=!0x1;}[_0x159fb9(0x43b)](){const _0x5c4930=_0x159fb9,_0x5d865d=this[_0x5c4930(0x24b)]['onPointerEnter$'][_0x5c4930(0x3eb)](()=>{const _0x23e4d8=_0x5c4930;this[_0x23e4d8(0x259)]=!0x0;}),_0x1efbf0=this[_0x5c4930(0x24b)][_0x5c4930(0x277)][_0x5c4930(0x3eb)](()=>{const _0x20d6bd=_0x5c4930;this[_0x20d6bd(0x2dc)]&&clearTimeout(this['_hideTimer']),this[_0x20d6bd(0x2dc)]=setTimeout(()=>{const _0x2c8295=_0x20d6bd;this[_0x2c8295(0x259)]=!0x1;},0x7d0);});return()=>{const _0x4c112d=_0x5c4930;_0x5d865d[_0x4c112d(0x158)](),_0x1efbf0[_0x4c112d(0x158)]();};}['_drawTextRange'](_0x21eb5e,_0x1fab90,_0x2a90a6,_0x2ff01a){const _0x5dd41a=_0x159fb9,_0x81084c=new _0x234c39(_0x21eb5e)[_0x5dd41a(0x2cf)](0.2)[_0x5dd41a(0x20c)](),_0x439696=new _0x4cb9ba($o+_0x26d13d['generateRandomId'](Je),{'pointsGroup':_0x1fab90,'fill':_0x81084c||_0x4b9053(_0x511505['black'],0.2),'left':_0x2a90a6,'top':_0x2ff01a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5dd41a(0x3ab)][_0x5dd41a(0x3c8)](_0x439696),this[_0x5dd41a(0x1e6)][_0x5dd41a(0x486)](_0x439696,_0x33eb3d);}[_0x159fb9(0x108)](_0xde56d,_0x590f01,_0x2ebf28,_0x34277c){const _0x164e65=_0x159fb9,_0x4f21ac=new _0x234c39(_0xde56d)[_0x164e65(0x2cf)](0.2)['toRgbString'](),_0x2ff886=new _0x4cb9ba(Ho+_0x26d13d[_0x164e65(0x467)](Je),{'pointsGroup':_0x590f01,'fill':_0x4f21ac||_0x4b9053(_0x511505[_0x164e65(0x3d1)],0.2),'left':_0x2ebf28,'top':_0x34277c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x164e65(0x3ab)][_0x164e65(0x3c8)](_0x2ff886),this[_0x164e65(0x1e6)][_0x164e65(0x486)](_0x2ff886,_0x33eb3d);}['_getAnchorBounding'](_0x5b01b4){const _0x84d222=_0x5b01b4[0x0],_0x26e94d=_0x84d222[0x0],_0x3b6ca5=_0x84d222[0x2],{x:_0x199e75,y:_0x13c346}=_0x26e94d,{x:_0x440adf,y:_0x568f49}=_0x3b6ca5;return{'left':_0x199e75,'top':_0x13c346,'width':_0x440adf-_0x199e75,'height':_0x568f49-_0x13c346};}[_0x159fb9(0x20a)](){const _0x5530df=_0x159fb9,{scaleX:_0x48d75a,scaleY:_0x54b8ab}=this['_scene'][_0x5530df(0xcb)]();return Math[_0x5530df(0x3dc)](_0x48d75a,_0x54b8ab);}}var Wo=Object[_0x159fb9(0xcf)],Fo=Object[_0x159fb9(0x37a)],Vo=(_0x170be2,_0x3b2e71,_0x1581d7,_0x185e96)=>{const _0xfe71c8=_0x159fb9;for(var _0x2da0f6=_0x185e96>0x1?void 0x0:_0x185e96?Fo(_0x3b2e71,_0x1581d7):_0x3b2e71,_0x111b72=_0x170be2[_0xfe71c8(0x3e5)]-0x1,_0x5622c9;_0x111b72>=0x0;_0x111b72--)(_0x5622c9=_0x170be2[_0x111b72])&&(_0x2da0f6=(_0x185e96?_0x5622c9(_0x3b2e71,_0x1581d7,_0x2da0f6):_0x5622c9(_0x2da0f6))||_0x2da0f6);return _0x185e96&&_0x2da0f6&&Wo(_0x3b2e71,_0x1581d7,_0x2da0f6),_0x2da0f6;},ht=(_0x4203bc,_0x1b4bac)=>(_0x55c9a3,_0xf5e804)=>_0x1b4bac(_0x55c9a3,_0xf5e804,_0x4203bc);let os=class extends _0x7d7f86{constructor(_0x121807,_0x164ef6,_0x27b52f,_0x4982b4,_0x5e9d5f){const _0x5689e8=_0x159fb9;super(),g(this,_0x5689e8(0x132),[]),g(this,_0x5689e8(0x2bf),[]),(this['_context']=_0x121807,this[_0x5689e8(0x471)]=_0x164ef6,this['_collabCursorController']=_0x27b52f,this[_0x5689e8(0x388)]=_0x4982b4,this[_0x5689e8(0x34d)]=_0x5e9d5f,this[_0x5689e8(0x3a1)]());}[_0x159fb9(0x3a1)](){const _0x545f04=_0x159fb9,_0x4f4496=this[_0x545f04(0x442)]['unitId'],_0x437f35=this[_0x545f04(0x471)];this[_0x545f04(0x2e7)](_0x359e72([this[_0x545f04(0x283)]['getCollabCursors$'](_0x4f4496),this[_0x545f04(0x34d)][_0x545f04(0x2bd)]])[_0x545f04(0x26b)](_0x24eeb9(([_0x249b29,_0x2fb42e])=>({'skeleton':_0x437f35[_0x545f04(0x2d1)](),'cursors':[..._0x249b29[_0x545f04(0x18d)]()][_0x545f04(0xfe)](_0x57c36e=>({..._0x57c36e,'color':_0x2fb42e[_0x57c36e['color']]}))})))[_0x545f04(0x2fd)](_0x45b4e2=>{const _0x1cbe2b=_0x545f04;if(this[_0x1cbe2b(0x1fc)](),_0x45b4e2){const {skeleton:_0x7cb44,cursors:_0x4bd7b2}=_0x45b4e2;this[_0x1cbe2b(0x25f)](_0x7cb44,_0x4bd7b2);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x159fb9(0x25f)](_0x133b1d,_0x47e5bc){const _0x411bb5=_0x159fb9,{scene:_0x5a5d97,mainComponent:_0xbad949}=this[_0x411bb5(0x442)],_0x2690bf=_0x47e5bc['map'](_0x2f9c56=>new Ks(_0x2f9c56,_0x5a5d97,_0x133b1d,_0xbad949));this['_cursorShapes']=_0x2690bf,this[_0x411bb5(0x2bf)]=_0x47e5bc;}[_0x159fb9(0x179)](){const _0x39973a=_0x159fb9;this['_removeCollabCursors']();const {scene:_0x40adac,mainComponent:_0x1d586d}=this[_0x39973a(0x442)],_0x5f1dc1=this[_0x39973a(0x471)][_0x39973a(0x2d1)](),_0x352c94=this[_0x39973a(0x2bf)][_0x39973a(0x349)](_0x31ad99=>new Ks(_0x31ad99,_0x40adac,_0x5f1dc1,_0x1d586d));this[_0x39973a(0x132)]=_0x352c94;}[_0x159fb9(0x1fc)](){const _0x2d3035=_0x159fb9;this[_0x2d3035(0x132)]['forEach'](_0x4e5f1a=>_0x4e5f1a[_0x2d3035(0xda)]()),this[_0x2d3035(0x132)]=[];}['_initCommandExecutedListener'](){const _0x3011a8=_0x159fb9,_0x7d6c57=[_0x49b4e3['id']];this[_0x3011a8(0x2e7)](this[_0x3011a8(0x388)]['onCommandExecuted'](_0x5ee5a2=>{const _0x39f987=_0x3011a8;_0x7d6c57[_0x39f987(0x468)](_0x5ee5a2['id'])&&_0x5ee5a2[_0x39f987(0x11b)][_0x39f987(0x235)]===this[_0x39f987(0x442)][_0x39f987(0x235)]&&this['_refreshCollabCursors']();}));}[_0x159fb9(0x147)](){const _0xcfb2e6=_0x159fb9;this['disposeWithMe'](_0xd3c2e0(this[_0xcfb2e6(0x442)]['engine'][_0xcfb2e6(0xd2)])['pipe'](_0x1e7f12(_0x25e995=>_0x25e995['type']===_0x4319cf[_0xcfb2e6(0x1f3)]),_0x3015d8(0x10))[_0xcfb2e6(0x2fd)](()=>{const _0x26cec3=_0xcfb2e6;this[_0x26cec3(0x179)]();}));}};os=Vo([ht(0x1,_0x3e8773(_0x1b3e95)),ht(0x2,_0x3e8773(Ve)),ht(0x3,_0x1bd495),ht(0x4,_0x3e8773(_0x3c9ff6))],os);const Go=0x1,Yo=1.5;class Ko extends _0x3b774{constructor(_0x5b2833,_0x21bacb){const _0x3b24e8=_0x159fb9;super(_0x5b2833,_0x21bacb),g(this,'_color'),g(this,_0x3b24e8(0x292),!0x1),g(this,_0x3b24e8(0xdc)),g(this,_0x3b24e8(0x448),''),g(this,'_labelPosition',_0x3b24e8(0x130)),g(this,'_backgroundColor'),(_0x21bacb&&this[_0x3b24e8(0x192)](_0x21bacb),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x3b24e8(0x192)]({'hovered':!0x0})),this[_0x3b24e8(0x277)][_0x3b24e8(0x3eb)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x159fb9(0x192)](_0x537bc2){const _0x2d1b61=_0x159fb9;var _0x155698,_0x2e407d,_0x4ddd5f,_0xf6991,_0x25bd16,_0xc1b4a7;this[_0x2d1b61(0x2eb)]=(_0x155698=_0x537bc2[_0x2d1b61(0x14a)])!=null?_0x155698:this[_0x2d1b61(0x2eb)],this[_0x2d1b61(0x292)]=(_0x2e407d=_0x537bc2[_0x2d1b61(0x1f5)])!=null?_0x2e407d:this[_0x2d1b61(0x292)],this[_0x2d1b61(0xdc)]=(_0x4ddd5f=_0x537bc2['range'])!=null?_0x4ddd5f:this[_0x2d1b61(0xdc)],this[_0x2d1b61(0x448)]=(_0xf6991=_0x537bc2[_0x2d1b61(0x3f3)])!=null?_0xf6991:this[_0x2d1b61(0x448)],this['_labelPosition']=(_0x25bd16=_0x537bc2[_0x2d1b61(0x37e)])!=null?_0x25bd16:this['_labelPosition'],this['_backgroundColor']=(_0xc1b4a7=_0x537bc2[_0x2d1b61(0x409)])!=null?_0xc1b4a7:this[_0x2d1b61(0x13c)],this[_0x2d1b61(0x3db)]({'width':_0x537bc2[_0x2d1b61(0x26f)],'height':_0x537bc2[_0x2d1b61(0xad)]});}['onMouseMove'](_0x285c0d){const _0x5202a9=_0x159fb9,{row:_0x3ac335,column:_0x13dd20}=_0x285c0d;if(_0x3ac335>=this[_0x5202a9(0xdc)][_0x5202a9(0x2a1)]&&_0x3ac335<=this[_0x5202a9(0xdc)][_0x5202a9(0x40f)]&&_0x13dd20>=this[_0x5202a9(0xdc)][_0x5202a9(0xe5)]&&_0x13dd20<=this[_0x5202a9(0xdc)]['endColumn']){this[_0x5202a9(0x192)]({'hovered':!0x0});return;}this[_0x5202a9(0x192)]({'hovered':!0x1});}['triggerDblclick'](_0x42239b){return!0x1;}['_draw'](_0x2097a9){const _0x2415c2=_0x159fb9;_0x1bba01[_0x2415c2(0x2b1)](_0x2097a9,{'width':this[_0x2415c2(0x26f)],'height':this[_0x2415c2(0xad)],'strokeWidth':Yo,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2415c2(0x13c)]}),this[_0x2415c2(0x292)]&&(_0x2097a9[_0x2415c2(0x14f)](),_0x2097a9[_0x2415c2(0x268)](0x1,0x0,0x0,0x1,this[_0x2415c2(0x26f)],this[_0x2415c2(0x11d)]===_0x2415c2(0x3c1)?0x0:-nt),Ot[_0x2415c2(0x2b1)](_0x2097a9,{'text':this[_0x2415c2(0x448)],'color':this[_0x2415c2(0x2eb)]}),_0x2097a9['restore']());}}var zo=Object[_0x159fb9(0xcf)],qo=Object[_0x159fb9(0x37a)],Xo=(_0x30401b,_0x335124,_0x2aa9e6,_0x3b09d7)=>{const _0x463e76=_0x159fb9;for(var _0x3294d3=_0x3b09d7>0x1?void 0x0:_0x3b09d7?qo(_0x335124,_0x2aa9e6):_0x335124,_0x1f41b9=_0x30401b[_0x463e76(0x3e5)]-0x1,_0x136bc4;_0x1f41b9>=0x0;_0x1f41b9--)(_0x136bc4=_0x30401b[_0x1f41b9])&&(_0x3294d3=(_0x3b09d7?_0x136bc4(_0x335124,_0x2aa9e6,_0x3294d3):_0x136bc4(_0x3294d3))||_0x3294d3);return _0x3b09d7&&_0x3294d3&&zo(_0x335124,_0x2aa9e6,_0x3294d3),_0x3294d3;},kt=(_0x19f973,_0x4eca33)=>(_0x38b1ea,_0x43d41e)=>_0x4eca33(_0x38b1ea,_0x43d41e,_0x19f973);const Jo=0x1389;let as=class extends _0x7d7f86{constructor(_0x2cd6ee,_0x1756b4,_0x4ed0fa,_0x25a7e7){const _0x79149c=_0x159fb9;super(),g(this,_0x79149c(0x2bf),new Set()),g(this,'_lastPointer',null),(this['_context']=_0x2cd6ee,this[_0x79149c(0x4a2)]=_0x1756b4,this[_0x79149c(0x283)]=_0x4ed0fa,this['_themeService']=_0x25a7e7,this[_0x79149c(0x3a1)]());}[_0x159fb9(0x3a1)](){const _0x44ad5a=_0x159fb9;this['_sheetSkeletonManagerService'][_0x44ad5a(0x3d2)][_0x44ad5a(0x26b)](_0x1775d8(this[_0x44ad5a(0x1ef)]),_0x214e84(_0x2d7b34=>{const _0x4c249c=_0x44ad5a;if(_0x2d7b34){const _0x315ea1=_0x2d7b34['sheetId'];return _0x359e72(this[_0x4c249c(0x283)][_0x4c249c(0xe1)](this[_0x4c249c(0x442)][_0x4c249c(0x235)]),this[_0x4c249c(0x34d)][_0x4c249c(0x2bd)])[_0x4c249c(0x26b)](_0x24eeb9(([_0x2233ed,_0x3ccfce])=>{const _0x21765c=_0x4c249c,_0x2ba274=new Map();return _0x2233ed[_0x21765c(0x30e)]((_0x534bc7,_0x22edc8)=>{const _0x39ffdd=_0x21765c;if(_0x534bc7['sheetID']===_0x315ea1){const _0x422cd2={..._0x534bc7};_0x422cd2['color']=_0x3ccfce[_0x534bc7[_0x39ffdd(0x14a)]],_0x2ba274['set'](_0x22edc8,_0x422cd2);}}),{'skeleton':_0x2d7b34,'cursors':_0x2ba274};}));}return _0x3f0552({'skeleton':null,'cursors':new Map()});}))[_0x44ad5a(0x2fd)](({skeleton:_0x4db1cf,cursors:_0x1d8d63})=>{const _0x493c89=_0x44ad5a;this['_removeCollabCursors'](),_0x4db1cf&&this[_0x493c89(0x25f)](_0x4db1cf,_0x1d8d63);}),this[_0x44ad5a(0x4a2)][_0x44ad5a(0x3d2)][_0x44ad5a(0x2fd)](_0x329a21=>{const _0x5a1ef5=_0x44ad5a;if(_0x329a21==null)return;const {skeleton:_0x19de50}=_0x329a21,{scene:_0x4a8299}=this['_context'];_0x4a8299[_0x5a1ef5(0x100)][_0x5a1ef5(0x3eb)](_0x4222d7(_0x14be3c=>{const _0x48e66c=_0x5a1ef5;var _0x2f7208,_0x55aa45;const {offsetX:_0x3f9639,offsetY:_0x3b8279}=_0x14be3c,{x:_0x365e33,y:_0xb03e0b}=_0x4a8299[_0x48e66c(0x153)](_0x2028a1[_0x48e66c(0x1bb)]([_0x3f9639,_0x3b8279])),{scaleX:_0x231201,scaleY:_0x44880e}=_0x4a8299[_0x48e66c(0xcb)](),_0x3adc03=_0x4a8299[_0x48e66c(0x250)](_0x22231['VIEW_MAIN']),_0x518dcc=_0x4a8299['getVpScrollXYInfoByPosToVp'](_0x2028a1[_0x48e66c(0x1bb)]([_0x365e33,_0xb03e0b]),_0x3adc03),_0x1c1e71=_0x19de50['getCellPositionByOffset'](_0x3f9639,_0x3b8279,_0x231201,_0x44880e,_0x518dcc);((_0x2f7208=this[_0x48e66c(0x397)])==null?void 0x0:_0x2f7208[_0x48e66c(0x416)])===_0x1c1e71[_0x48e66c(0x416)]&&((_0x55aa45=this[_0x48e66c(0x397)])==null?void 0x0:_0x55aa45[_0x48e66c(0x1b8)])===_0x1c1e71[_0x48e66c(0x1b8)]||this[_0x48e66c(0x2bf)]['forEach'](_0x1be81d=>{const _0x1dce73=_0x48e66c;_0x1be81d[_0x1dce73(0x3c7)](_0x1c1e71);});},0x64));});}[_0x159fb9(0x25f)](_0x1a0d16,_0x5792db){const _0x42c9ce=_0x159fb9;var _0xc05149;const _0x1d193f=(_0xc05149=this[_0x42c9ce(0x4a2)][_0x42c9ce(0x238)]())==null?void 0x0:_0xc05149[_0x42c9ce(0x244)];if(!_0x1d193f)return;const _0x40ace9=this[_0x42c9ce(0x353)]();if(!_0x40ace9)return;this[_0x42c9ce(0x2bf)][_0x42c9ce(0x30e)](_0x4bd693=>{_0x4bd693['makeDirty']();});const {scene:_0x1b1a5b}=_0x40ace9,_0x561a1f=Zo(Array['from'](_0x5792db[_0x42c9ce(0x18d)]()))['map'](_0x1ff22a=>{const _0xd879b6=_0x42c9ce,{color:_0x3bf5d6,range:_0x28a82d,name:_0x230595,selection:_0x18d1d8,sheetID:_0x1166d2}=_0x1ff22a,{startColumn:_0x23bf41,startRow:_0x263858,endColumn:_0x4ac93e,endRow:_0x285097}=_0x28a82d,_0xbf8f9b=_0x543525(_0x263858,_0x23bf41,_0x1b1a5b,_0x1d193f),_0x54a98a=_0x543525(_0x285097,_0x4ac93e,_0x1b1a5b,_0x1d193f),{columnHeaderHeightAndMarginTop:_0x2b4f5b}=_0x1d193f,{startX:_0x55357b,startY:_0x4b3669}=_0xbf8f9b,{endX:_0xf451c2,endY:_0x3af752}=_0x54a98a,_0x329b95=_0xf451c2-_0x55357b,_0xc2a1a0=_0x3af752-_0x4b3669,_0x26cf98={'labelPosition':_0x4b3669-_0x2b4f5b>=nt?_0xd879b6(0x130):'bottom','sheetID':_0x1166d2,'range':_0x28a82d,'color':_0x3bf5d6,'name':_0x230595,'selection':_0x18d1d8,'left':_0x55357b,'top':_0x4b3669,'width':_0x329b95,'height':_0xc2a1a0,'evented':!0x1,'zIndex':Jo};return new Ko(_0x230595,_0x26cf98);});_0x1b1a5b[_0x42c9ce(0x205)](_0x561a1f,Go),this['_cursors']=new Set(_0x561a1f);}[_0x159fb9(0x1fc)](){const _0x12a31e=_0x159fb9;var _0xb3212c;(_0xb3212c=this[_0x12a31e(0x2bf)])==null||_0xb3212c['forEach'](_0x3f0571=>_0x3f0571[_0x12a31e(0xda)]());}[_0x159fb9(0x353)](){const _0x23620d=_0x159fb9;return _0x57be16(this[_0x23620d(0x442)]['unit'],this['_context']);}};as=Xo([kt(0x1,_0x3e8773(_0xaebadb)),kt(0x2,_0x3e8773(Ve)),kt(0x3,_0x3e8773(_0x3c9ff6))],as);function Zo(_0x462a2f){const _0x5a2016=_0x159fb9,_0x4470e7=new Map();return _0x462a2f[_0x5a2016(0x30e)](_0x3da3a5=>{const _0x59efa2=_0x5a2016;if(_0x4470e7[_0x59efa2(0x375)](_0x3da3a5[_0x59efa2(0x15e)])){const _0x1432dd=_0x4470e7[_0x59efa2(0x413)](_0x3da3a5[_0x59efa2(0x15e)]);_0x1432dd[_0x59efa2(0x3f3)]+=',\x20'+_0x3da3a5[_0x59efa2(0x3f3)];}else _0x4470e7['set'](_0x3da3a5[_0x59efa2(0x15e)],_0x3da3a5);}),Array[_0x5a2016(0x3a5)](_0x4470e7[_0x5a2016(0x18d)]());}var ee=function(){const _0x4733f9=_0x159fb9;return ee=Object[_0x4733f9(0x198)]||function(_0x2a63ab){const _0x4a651b=_0x4733f9;for(var _0x5a15bc,_0x478d0e=0x1,_0x19dfb0=arguments[_0x4a651b(0x3e5)];_0x478d0e<_0x19dfb0;_0x478d0e++){_0x5a15bc=arguments[_0x478d0e];for(var _0x1d8fa2 in _0x5a15bc)Object[_0x4a651b(0x43d)][_0x4a651b(0x28f)]['call'](_0x5a15bc,_0x1d8fa2)&&(_0x2a63ab[_0x1d8fa2]=_0x5a15bc[_0x1d8fa2]);}return _0x2a63ab;},ee[_0x4733f9(0x2b8)](this,arguments);},Qo=function(_0x13c6d4,_0xf88371){const _0x46364b=_0x159fb9;var _0x33e31a={};for(var _0x148763 in _0x13c6d4)Object[_0x46364b(0x43d)]['hasOwnProperty'][_0x46364b(0x45a)](_0x13c6d4,_0x148763)&&_0xf88371[_0x46364b(0x10a)](_0x148763)<0x0&&(_0x33e31a[_0x148763]=_0x13c6d4[_0x148763]);if(_0x13c6d4!=null&&typeof Object[_0x46364b(0x136)]==_0x46364b(0x115)){for(var _0x54256d=0x0,_0x148763=Object[_0x46364b(0x136)](_0x13c6d4);_0x54256d<_0x148763[_0x46364b(0x3e5)];_0x54256d++)_0xf88371['indexOf'](_0x148763[_0x54256d])<0x0&&Object[_0x46364b(0x43d)][_0x46364b(0x249)]['call'](_0x13c6d4,_0x148763[_0x54256d])&&(_0x33e31a[_0x148763[_0x54256d]]=_0x13c6d4[_0x148763[_0x54256d]]);}return _0x33e31a;},Ts=_0x1ac654(function(_0xd117c2,_0x527e6c){const _0x45d510=_0x159fb9;var _0x1bdc89=_0xd117c2[_0x45d510(0x2f0)],_0x235a1e=_0xd117c2['id'],_0x5143bd=_0xd117c2[_0x45d510(0x425)],_0x1ef9d4=_0xd117c2[_0x45d510(0x392)],_0x671ebe=Qo(_0xd117c2,[_0x45d510(0x2f0),'id',_0x45d510(0x425),_0x45d510(0x392)]),_0x379893=_0x45d510(0x34c)['concat'](_0x235a1e,'\x20')[_0x45d510(0x1d2)](_0x5143bd||'')[_0x45d510(0xdf)](),_0x2f8484=_0x2b0e32('_'['concat'](sa()));return Mi(_0x1bdc89,''['concat'](_0x235a1e),{'defIds':_0x1bdc89[_0x45d510(0x19d)],'idSuffix':_0x2f8484['current']},ee({'ref':_0x527e6c,'className':_0x379893},_0x671ebe),_0x1ef9d4);});function Mi(_0x371d86,_0x2333f3,_0x3b4452,_0x104f82,_0x17d4cd){const _0x11a893=_0x159fb9;return _0x48c9b2(_0x371d86[_0x11a893(0xfd)],ee(ee({'key':_0x2333f3},ea(_0x371d86,_0x3b4452,_0x17d4cd)),_0x104f82),(ta(_0x371d86,_0x3b4452)['children']||[])['map'](function(_0x306518,_0x564b4c){const _0xf0c55e=_0x11a893;return Mi(_0x306518,''['concat'](_0x2333f3,'-')[_0xf0c55e(0x1d2)](_0x371d86[_0xf0c55e(0xfd)],'-')['concat'](_0x564b4c),_0x3b4452,void 0x0,_0x17d4cd);}));}function ea(_0x15b603,_0x4f6a6c,_0x52069e){const _0x12c273=_0x159fb9;var _0x48e54e=ee({},_0x15b603['attrs']);_0x52069e!=null&&_0x52069e[_0x12c273(0x47c)]&&_0x48e54e['fill']===_0x12c273(0x47c)&&(_0x48e54e[_0x12c273(0x1a7)]=_0x52069e[_0x12c273(0x47c)]);var _0x47befb=_0x4f6a6c[_0x12c273(0x19d)];return!_0x47befb||_0x47befb[_0x12c273(0x3e5)]===0x0||(_0x15b603['tag']===_0x12c273(0x46b)&&_0x48e54e['xlink:href']&&(_0x48e54e[_0x12c273(0x49d)]=_0x48e54e[_0x12c273(0x49d)]+_0x4f6a6c[_0x12c273(0x3c0)]),Object[_0x12c273(0x162)](_0x48e54e)[_0x12c273(0x30e)](function(_0x645512){const _0x5262ed=_0x12c273;var _0x2827de=_0x645512[0x0],_0x3e9122=_0x645512[0x1];typeof _0x3e9122=='string'&&(_0x48e54e[_0x2827de]=_0x3e9122[_0x5262ed(0x377)](/url\(#(.*)\)/,'url(#$1'[_0x5262ed(0x1d2)](_0x4f6a6c['idSuffix'],')')));})),_0x48e54e;}function ta(_0x32dd9f,_0x28b936){const _0x47fafa=_0x159fb9;var _0x7eaa35,_0x10dd61=_0x28b936[_0x47fafa(0x19d)];return!_0x10dd61||_0x10dd61[_0x47fafa(0x3e5)]===0x0?_0x32dd9f:_0x32dd9f['tag']===_0x47fafa(0x1d7)&&(!((_0x7eaa35=_0x32dd9f[_0x47fafa(0x31f)])===null||_0x7eaa35===void 0x0)&&_0x7eaa35[_0x47fafa(0x3e5)])?ee(ee({},_0x32dd9f),{'children':_0x32dd9f[_0x47fafa(0x31f)][_0x47fafa(0x349)](function(_0x2c20c9){const _0x196237=_0x47fafa;return typeof _0x2c20c9[_0x196237(0x422)]['id']==_0x196237(0xde)&&_0x10dd61&&_0x10dd61[_0x196237(0x10a)](_0x2c20c9[_0x196237(0x422)]['id'])>-0x1?ee(ee({},_0x2c20c9),{'attrs':ee(ee({},_0x2c20c9[_0x196237(0x422)]),{'id':_0x2c20c9[_0x196237(0x422)]['id']+_0x28b936[_0x196237(0x3c0)]})}):_0x2c20c9;})}):_0x32dd9f;}function sa(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}Ts[_0x159fb9(0x3f4)]=_0x159fb9(0x22a);var ia={'tag':_0x159fb9(0x38b),'attrs':{'fill':'none','viewBox':_0x159fb9(0x444),'width':_0x159fb9(0x415),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x159fb9(0x43f)},'children':[{'tag':'path','attrs':{'stroke':_0x159fb9(0x161),'d':'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','strokeLinecap':_0x159fb9(0x17c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x159fb9(0x1d7),'attrs':{},'children':[{'tag':_0x159fb9(0x226),'attrs':{'id':_0x159fb9(0x286)},'children':[{'tag':_0x159fb9(0x3aa),'attrs':{'fill':'#fff','d':_0x159fb9(0x140)}}]}]}],'defIds':[_0x159fb9(0x286)]},xi=_0x1ac654(function(_0x1d1a43,_0x384c61){const _0x95c376=_0x159fb9;return _0x48c9b2(Ts,Object[_0x95c376(0x198)]({},_0x1d1a43,{'id':_0x95c376(0x199),'ref':_0x384c61,'icon':ia}));});xi[_0x159fb9(0x3f4)]='OffLineSingle';var na={'tag':_0x159fb9(0x38b),'attrs':{'fill':_0x159fb9(0x167),'viewBox':_0x159fb9(0x264),'width':_0x159fb9(0x415),'height':_0x159fb9(0x415)},'children':[{'tag':'g','attrs':{'clipPath':_0x159fb9(0x1ca)},'children':[{'tag':'path','attrs':{'stroke':_0x159fb9(0x161),'d':_0x159fb9(0x453),'strokeLinecap':_0x159fb9(0x17c),'strokeLinejoin':_0x159fb9(0x17c),'strokeWidth':1.2}}]},{'tag':_0x159fb9(0x1d7),'attrs':{},'children':[{'tag':_0x159fb9(0x226),'attrs':{'id':_0x159fb9(0x4ac)},'children':[{'tag':_0x159fb9(0x3aa),'attrs':{'fill':_0x159fb9(0x12e),'d':_0x159fb9(0x140),'transform':_0x159fb9(0xec)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Li=_0x1ac654(function(_0x3ae8d9,_0x4058b2){const _0xbdc6ba=_0x159fb9;return _0x48c9b2(Ts,Object[_0xbdc6ba(0x198)]({},_0x3ae8d9,{'id':_0xbdc6ba(0x49e),'ref':_0x4058b2,'icon':na}));});Li[_0x159fb9(0x3f4)]=_0x159fb9(0x46f);function $i(_0x1720fa){const _0x5769cf=_0x159fb9;var _0x3b5850,_0x13a6dc,_0x113553='';if(typeof _0x1720fa=='string'||typeof _0x1720fa=='number')_0x113553+=_0x1720fa;else{if(typeof _0x1720fa==_0x5769cf(0xaf)){if(Array[_0x5769cf(0x126)](_0x1720fa)){var _0x1a7e8d=_0x1720fa[_0x5769cf(0x3e5)];for(_0x3b5850=0x0;_0x3b5850<_0x1a7e8d;_0x3b5850++)_0x1720fa[_0x3b5850]&&(_0x13a6dc=$i(_0x1720fa[_0x3b5850]))&&(_0x113553&&(_0x113553+='\x20'),_0x113553+=_0x13a6dc);}else{for(_0x13a6dc in _0x1720fa)_0x1720fa[_0x13a6dc]&&(_0x113553&&(_0x113553+='\x20'),_0x113553+=_0x13a6dc);}}}return _0x113553;}function ra(){const _0x14ceb7=_0x159fb9;for(var _0x26c633,_0x37560f,_0x5d3257=0x0,_0x715ba0='',_0x129f63=arguments[_0x14ceb7(0x3e5)];_0x5d3257<_0x129f63;_0x5d3257++)(_0x26c633=arguments[_0x5d3257])&&(_0x37560f=$i(_0x26c633))&&(_0x715ba0&&(_0x715ba0+='\x20'),_0x715ba0+=_0x37560f);return _0x715ba0;}const oa=_0x159fb9(0x3a4),aa=_0x159fb9(0x466),ca=_0x159fb9(0x31d),ha=_0x159fb9(0xca),la='univer-offline',Ze={'onlineStatusIcon':oa,'onlineStatusTitle':aa,'onlineStatus':ca,'online':ha,'offline':la};function _a(_0x50a69a){const _0x1b2e08=_0x159fb9;switch(_0x50a69a){case J[_0x1b2e08(0x2e8)]:return _0x1b2e08(0x29a);case J[_0x1b2e08(0xba)]:return _0x1b2e08(0x253);case J[_0x1b2e08(0x29e)]:return'collabStatus.fetchMiss';case J[_0x1b2e08(0x2d4)]:return _0x1b2e08(0xfb);case J[_0x1b2e08(0x185)]:case J[_0x1b2e08(0x32b)]:return _0x1b2e08(0x341);case J[_0x1b2e08(0x22d)]:case J[_0x1b2e08(0x180)]:return _0x1b2e08(0x1ee);}}function ua(_0x544340){const _0x3e422a=_0x159fb9,{status$:_0x136c73}=_0x544340,_0x2634af=_0x5baee7(_0x136c73,J[_0x3e422a(0x2d4)]),_0x19b252=_0x54cbeb(_0x51cff0),_0x54e914=_0x54cbeb(Ae),_0x122978=_0x2634af!==J['OFFLINE'],_0x54473f=_0x19b252['t'](_a(_0x2634af)),_0xd68da8=ra(Ze['onlineStatus'],{[Ze[_0x3e422a(0x352)]]:_0x122978,[Ze[_0x3e422a(0x133)]]:!_0x122978}),_0x1af03e=_0x122978?_0xc50dfc[_0x3e422a(0x2ed)](Li,null):_0xc50dfc[_0x3e422a(0x2ed)](xi,null),_0x149955=_0x2e422b(()=>{const _0x3d0177=_0x3e422a;_0x122978||_0x54e914[_0x3d0177(0x139)]();},[_0x122978,_0x54e914]);function _0x314392(){const _0x2f0457=_0x3e422a;return _0xc50dfc['createElement'](_0x2f0457(0x1db),{'className':_0xd68da8,'onClick':_0x149955},_0xc50dfc[_0x2f0457(0x2ed)]('div',{'className':Ze[_0x2f0457(0x443)]},_0x1af03e),_0xc50dfc[_0x2f0457(0x2ed)](_0x2f0457(0x1db),{'className':Ze[_0x2f0457(0x207)]},_0x54473f));}return _0x122978?_0x314392():_0xc50dfc[_0x3e422a(0x2ed)](_0x2300df,{'title':_0x19b252['t'](_0x3e422a(0xb9))},_0x314392());}var da=Object['defineProperty'],fa=Object[_0x159fb9(0x37a)],va=(_0x577cc5,_0x2a7e6f,_0x773cd2,_0xe11031)=>{const _0x9cd87a=_0x159fb9;for(var _0x3bbaa7=_0xe11031>0x1?void 0x0:_0xe11031?fa(_0x2a7e6f,_0x773cd2):_0x2a7e6f,_0x1a52e1=_0x577cc5[_0x9cd87a(0x3e5)]-0x1,_0x2742ca;_0x1a52e1>=0x0;_0x1a52e1--)(_0x2742ca=_0x577cc5[_0x1a52e1])&&(_0x3bbaa7=(_0xe11031?_0x2742ca(_0x2a7e6f,_0x773cd2,_0x3bbaa7):_0x2742ca(_0x3bbaa7))||_0x3bbaa7);return _0xe11031&&_0x3bbaa7&&da(_0x2a7e6f,_0x773cd2,_0x3bbaa7),_0x3bbaa7;},lt=(_0x1d1940,_0x2f09fa)=>(_0x3ad385,_0x536ccb)=>_0x2f09fa(_0x3ad385,_0x536ccb,_0x1d1940);let It=class extends _0x10d2e7{constructor(_0x17312f,_0xc56e6f,_0x1f71e6,_0x2ee6f0){const _0x58ef5c=_0x159fb9;super(),g(this,_0x58ef5c(0x3e0),new _0x4cf3b1(J[_0x58ef5c(0x2d4)])),(this[_0x58ef5c(0x116)]=_0x17312f,this['_uiPartsService']=_0xc56e6f,this['_injector']=_0x1f71e6,this[_0x58ef5c(0x2dd)]=_0x2ee6f0,this['_initStatusComponent'](),this[_0x58ef5c(0x186)]());}[_0x159fb9(0x186)](){const _0x316b24=_0x159fb9;this['disposeWithMe'](this[_0x316b24(0x116)][_0x316b24(0x405)][_0x316b24(0x26b)](_0x33575c(()=>{const _0x3da621=_0x316b24,_0x3799dc=this[_0x3da621(0x116)][_0x3da621(0x24f)]();return _0x3799dc?this['_collaborationController'][_0x3da621(0x28c)](_0x3799dc[_0x3da621(0xd4)]()):_0x3f0552(null);}),_0x33575c(_0x47fc26=>_0x47fc26?_0x47fc26['status$']:_0x3f0552(J[_0x316b24(0x2d4)])))[_0x316b24(0x2fd)](_0x281a28=>{const _0xa30543=_0x316b24;this[_0xa30543(0x3e0)][_0xa30543(0x22f)](_0x281a28);}));}[_0x159fb9(0x3c3)](){const _0x11ce9c=_0x159fb9;this[_0x11ce9c(0x2e7)](this[_0x11ce9c(0x472)][_0x11ce9c(0x31b)](_0x2d0c0e[_0x11ce9c(0x23a)],()=>_0xfb686e(ma({'status$':this[_0x11ce9c(0x3e0)]['asObservable']()}),this[_0x11ce9c(0x1d9)])));}};It=va([lt(0x0,_0x40ba52),lt(0x1,_0x4a5d99),lt(0x2,_0x3e8773(_0x3371c0)),lt(0x3,_0x3e8773(it))],It);function ma(_0x39a9fc){const {status$:_0x50e83f}=_0x39a9fc;return function(){const _0x30cee4=_0x4457;return _0xc50dfc[_0x30cee4(0x2ed)](ua,{'status$':_0x50e83f});};}const Hi=_0x12029c(_0x159fb9(0x492));var pa=Object['defineProperty'],ga=Object[_0x159fb9(0x37a)],Sa=(_0x42caf8,_0x82f9a,_0x2bd32a,_0x4dc8ea)=>{const _0x2b82bc=_0x159fb9;for(var _0x12e323=_0x4dc8ea>0x1?void 0x0:_0x4dc8ea?ga(_0x82f9a,_0x2bd32a):_0x82f9a,_0x26fe93=_0x42caf8[_0x2b82bc(0x3e5)]-0x1,_0x3d9c24;_0x26fe93>=0x0;_0x26fe93--)(_0x3d9c24=_0x42caf8[_0x26fe93])&&(_0x12e323=(_0x4dc8ea?_0x3d9c24(_0x82f9a,_0x2bd32a,_0x12e323):_0x3d9c24(_0x12e323))||_0x12e323);return _0x4dc8ea&&_0x12e323&&pa(_0x82f9a,_0x2bd32a,_0x12e323),_0x12e323;},ke=(_0x525368,_0x3ccce3)=>(_0xfd4a37,_0x45fd6)=>_0x3ccce3(_0xfd4a37,_0x45fd6,_0x525368);let Ct=class extends _0x7d7f86{constructor(_0x4baacb,_0xcdbc72,_0x1bfc88,_0x12283d,_0x4e222b,_0x1b4341){const _0x31f6a3=_0x159fb9;super(),this[_0x31f6a3(0x42c)]=_0x4baacb,this[_0x31f6a3(0x461)]=_0xcdbc72,this[_0x31f6a3(0x388)]=_0x1bfc88,this[_0x31f6a3(0x45f)]=_0x12283d,this[_0x31f6a3(0x300)]=_0x4e222b,_0x1b4341?_0x1b4341==null||_0x1b4341[_0x31f6a3(0x177)]()[_0x31f6a3(0x171)](()=>this[_0x31f6a3(0x3a1)]()):(this[_0x31f6a3(0x461)]['debug'](_0x31f6a3(0x3b3),_0x31f6a3(0x206)),this['_init']());}async[_0x159fb9(0x3a1)](){const _0x460701=_0x159fb9,_0x4a5d7f=this['_urlService']['getParam'](_0x460701(0x1f7)),_0x548f61=this[_0x460701(0x42c)][_0x460701(0x34e)]('type');if(!_0x4a5d7f||!_0x548f61){this[_0x460701(0x461)][_0x460701(0x4b0)](_0x460701(0x3b3),_0x460701(0x24a));return;}switch(Number(_0x548f61)){case ce[_0x460701(0x166)]:{const _0x47b812=await this['_loadSheet'](_0x4a5d7f);this['_setupSubUnitSync'](_0x47b812);break;}case ce[_0x460701(0x44a)]:{await this[_0x460701(0x32f)](_0x4a5d7f);break;}default:{this[_0x460701(0x461)][_0x460701(0x441)](_0x460701(0x3b3),_0x460701(0x47f));break;}}}async['_setupSubUnitSync'](_0x2df904){const _0x112d62=_0x159fb9;await this[_0x112d62(0xb8)](_0x2df904),_0x2df904[_0x112d62(0x23d)]['pipe'](_0x514462(this[_0x112d62(0x1ef)]))[_0x112d62(0x2fd)](_0x1eecb9=>{const _0x484d7c=_0x112d62;_0x1eecb9&&this[_0x484d7c(0x1f2)](_0x1eecb9);}),this[_0x112d62(0x42c)][_0x112d62(0x20f)][_0x112d62(0x26b)](_0x514462(this[_0x112d62(0x1ef)]))[_0x112d62(0x2fd)](()=>this[_0x112d62(0xb8)](_0x2df904));}['_updateURLWithCurrentState'](_0x613b4f,_0xea99b=!0x1){const _0x3c6807=_0x159fb9,_0xa0fce4=this[_0x3c6807(0x42c)][_0x3c6807(0x34e)](_0x3c6807(0x428));_0x613b4f[_0x3c6807(0xc7)]()!==_0xa0fce4&&this[_0x3c6807(0x42c)]['setParam']('subunit',_0x613b4f[_0x3c6807(0xc7)](),_0xea99b);}async[_0x159fb9(0xb8)](_0x529d84){const _0x5d1d7b=_0x159fb9;var _0x17f568;const _0xbcea3a=this['_urlService']['getParam'](_0x5d1d7b(0x428));if(!_0xbcea3a||!_0x529d84[_0x5d1d7b(0x356)](_0xbcea3a)){const _0x85876c=_0x529d84['getUnhiddenWorksheets']()[0x0],_0x35d126=_0x529d84[_0x5d1d7b(0x356)](_0x85876c);if(!_0x35d126)return;this[_0x5d1d7b(0x1f2)](_0x35d126,!0x0),await this[_0x5d1d7b(0x388)][_0x5d1d7b(0xeb)](_0x135826['id'],{'unitId':_0x529d84[_0x5d1d7b(0xd4)](),'subUnitId':_0x85876c});return;}((_0x17f568=_0x529d84['getActiveSheet']())==null?void 0x0:_0x17f568[_0x5d1d7b(0xc7)]())!==_0xbcea3a&&await this[_0x5d1d7b(0x388)][_0x5d1d7b(0xeb)](_0x135826['id'],{'unitId':_0x529d84[_0x5d1d7b(0xd4)](),'subUnitId':_0xbcea3a});}async[_0x159fb9(0x48c)](_0x4dd105){const _0x1d0804=_0x159fb9;let _0x570d12=0x0;const _0x551a57=await this[_0x1d0804(0x45f)][_0x1d0804(0x2d5)](_0x4dd105);return _0x551a57&&(_0x551a57[_0x1d0804(0x27d)]||_0x551a57['mutations'][_0x1d0804(0x3e5)]!==0x0)&&(_0x570d12=_0x551a57[_0x1d0804(0x43a)]),_0x570d12===0x0&&this[_0x1d0804(0x461)]['debug'](_0x1d0804(0x3b3),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x1d0804(0x225)](_0x4dd105,_0x570d12);}async[_0x159fb9(0x32f)](_0x5f4ed3){const _0x46189f=_0x159fb9;let _0x212aaf=0x0;const _0x5b0fed=await this[_0x46189f(0x45f)][_0x46189f(0x2d5)](_0x5f4ed3);return _0x5b0fed&&(_0x5b0fed[_0x46189f(0x27d)]||_0x5b0fed['mutations'][_0x46189f(0x3e5)]!==0x0)&&(_0x212aaf=_0x5b0fed[_0x46189f(0x43a)]),_0x212aaf===0x0&&this[_0x46189f(0x461)][_0x46189f(0x4b0)](_0x46189f(0x3b3),_0x46189f(0x111)),this['_snapshotService']['loadDoc'](_0x5f4ed3,_0x212aaf);}};Ct=Sa([ke(0x0,Hi),ke(0x1,_0x3738e4),ke(0x2,_0x1bd495),ke(0x3,_0x3e8773(q)),ke(0x4,_0x3e8773(_0x33ed43)),ke(0x5,_0x24e594(_0x1b6d3d))],Ct);var Ia=Object['defineProperty'],Ca=Object[_0x159fb9(0x37a)],Ea=(_0x2804cc,_0x1a1b72,_0x31805a,_0x51b660)=>{for(var _0x163f45=_0x51b660>0x1?void 0x0:_0x51b660?Ca(_0x1a1b72,_0x31805a):_0x1a1b72,_0x2fde86=_0x2804cc['length']-0x1,_0x45c031;_0x2fde86>=0x0;_0x2fde86--)(_0x45c031=_0x2804cc[_0x2fde86])&&(_0x163f45=(_0x51b660?_0x45c031(_0x1a1b72,_0x31805a,_0x163f45):_0x45c031(_0x163f45))||_0x163f45);return _0x51b660&&_0x163f45&&Ia(_0x1a1b72,_0x31805a,_0x163f45),_0x163f45;},zs=(_0x2e0263,_0x1e5fac)=>(_0x5e7e1e,_0x5dcc35)=>_0x1e5fac(_0x5e7e1e,_0x5dcc35,_0x2e0263);const ba=_0x159fb9(0x2c3),Ta='Univer';let Et=class extends _0x10d2e7{constructor(_0x10f57c,_0x1346e8){const _0x3a7e74=_0x159fb9;super(),this[_0x3a7e74(0x116)]=_0x10f57c,this['_configService']=_0x1346e8,this['_init']();}[_0x159fb9(0x3a1)](){const _0x389c4a=_0x159fb9;this[_0x389c4a(0x2e7)](this[_0x389c4a(0x116)][_0x389c4a(0x405)][_0x389c4a(0x2fd)](()=>{const _0x176d8f=_0x389c4a;var _0x374c36;const _0x1a739d=this[_0x176d8f(0x116)][_0x176d8f(0x24f)]();let _0x3faae5=(_0x374c36=this['_configService'][_0x176d8f(0x2e1)](ba))!=null?_0x374c36:Ta;_0x1a739d instanceof _0x54374d&&(_0x3faae5=_0x1a739d[_0x176d8f(0x3f3)]),document[_0x176d8f(0x35b)]=_0x3faae5;}));}};Et=Ea([zs(0x0,_0x40ba52),zs(0x1,_0x3ade87)],Et);var Ra=Object[_0x159fb9(0xcf)],ya=Object['getOwnPropertyDescriptor'],Oa=(_0x1c2e45,_0x24b8aa,_0x1af03b,_0x5d2242)=>{const _0x2c65f9=_0x159fb9;for(var _0x3c4d2a=_0x5d2242>0x1?void 0x0:_0x5d2242?ya(_0x24b8aa,_0x1af03b):_0x24b8aa,_0x2f164f=_0x1c2e45[_0x2c65f9(0x3e5)]-0x1,_0xb8d657;_0x2f164f>=0x0;_0x2f164f--)(_0xb8d657=_0x1c2e45[_0x2f164f])&&(_0x3c4d2a=(_0x5d2242?_0xb8d657(_0x24b8aa,_0x1af03b,_0x3c4d2a):_0xb8d657(_0x3c4d2a))||_0x3c4d2a);return _0x5d2242&&_0x3c4d2a&&Ra(_0x24b8aa,_0x1af03b,_0x3c4d2a),_0x3c4d2a;},Wt=(_0x14f5e3,_0x2fe571)=>(_0x39f902,_0x1de439)=>_0x2fe571(_0x39f902,_0x1de439,_0x14f5e3);let bt=class{constructor(_0x3e0cb0,_0x5adee5,_0x55d0de){const _0x3b0f89=_0x159fb9;this[_0x3b0f89(0x18b)]=_0x3e0cb0,this[_0x3b0f89(0xb4)]=_0x5adee5,this[_0x3b0f89(0x28a)]=_0x55d0de,this['init']();}['init'](){const _0x5d698e=_0x159fb9;this['_httpService'][_0x5d698e(0x102)]({'priority':0x1,'interceptor':(_0x6a88bd,_0x29d573)=>_0x29d573(_0x6a88bd)['pipe'](_0x2cba6f(async _0x472854=>{const _0x3dd1d7=_0x5d698e,_0x36d96e=_0x472854;if(_0x36d96e[_0x3dd1d7(0x2c6)]===0x191&&window['confirm'](this[_0x3dd1d7(0x28a)]['t'](_0x3dd1d7(0x276)))){const _0x1d8ed8=window[_0x3dd1d7(0xf3)](window[_0x3dd1d7(0x4ad)][_0x3dd1d7(0x38c)]);window[_0x3dd1d7(0x4ad)][_0x3dd1d7(0x38c)]=this[_0x3dd1d7(0x371)]()+'?url='+_0x1d8ed8;}return _0x36d96e;}))});}['_getLoginPath'](){const _0x1706fc=_0x159fb9;var _0x3a5d75,_0x4d8e9c;const _0x136bd=this[_0x1706fc(0x18b)][_0x1706fc(0x2e1)](Ir),_0x515f61=this[_0x1706fc(0x18b)][_0x1706fc(0x2e1)](ie);return(_0x4d8e9c=(_0x3a5d75=_0x515f61==null?void 0x0:_0x515f61[_0x1706fc(0x304)])!=null?_0x3a5d75:_0x136bd)!=null?_0x4d8e9c:Cr;}};function _0x60b8(){const _0x515565=['_hasher','_sendingTimer','online','_getSheetObject','_toggleOnline','byteOffset','getSheetBySheetId','liveShareOperation','all','_telemetryService','clear','title','find','onRemoteRetry','UnitEmbedded','save\x20fail\x20reason\x20is\x20','socket$','editingUnit','_scheduleSaving','_sessions','removeMember','_getAPIPrefixPath','enableSingleActiveInstanceLock','unload','_initRequestHeader','_docSyncEditingCollabCursorService','retryConnectingInterval','_onRecvEvent','getTypeOfUnitDisposed$','updatePermissionPoint','fetchThroughInterceptors','_transitionLocked','AUTHZ_URL_KEY','_getLoginPath','syncEditingCollabCursor','COMPLETION_FINISHED','_sendHeartbeatTimer','has','_getCurrentRevision','replace','Warning','exhaustSavingTask','getOwnPropertyDescriptor','splice','_replaceFileID','padding','labelPosition','getDocRanges','now','_getCtorByUniverType','[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.','setTimeout','_undoRedoService','disposeUnit','_transformUndoredo','_ensureSubject','_commandService','[OfflineState]:\x20received\x20rejection.','enc','svg','href','image/jpeg','_roomMembers$','mixIn','/universer-api/file/{fileID}/sign-url','encrypt','extend','floor','/universer-api/comb','UPDATE_PERMISSION_OBJ','_selfUnitIDs','_lastPointer','_applyRemoteChangeset','[CollaborationEntity]','words','LICENSE_EXPORT_SIZE_EXCEEDED','_waitCount','CipherParams','eventID','session.room-full','INGEST','_init','LICENSE_DISTRO_REJECTED','_handler','univer-online-status-icon','from','roles','_hash','Base','getMember','path','_shapes','joinEvent','c1Prime','ERROR_IMAGE','pluginName','_startCollaboration','_cachedData','Could\x20not\x20dynamically\x20require\x20\x22','[DataLoaderController]','subUnitId','_schedule','cfg','awaiting','_messageService','override','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','verdancy600','hostname','synced','_collabSessionService','toLowerCase','idSuffix','bottom','_colorIndex','_initStatusComponent','parse','put','_heartbeatTimer','onMouseMove','push','_socketReady','session','_permissionService','_socketMessageSubscription','close','cursorInfo$','_cursor','interceptor','black','currentSkeleton$','set','ERROR_IMAGE_TYPE','_createHmacHelper','AES','unshift','_docSkeleton','collabWebSocketUrl','url','transformByState','max','collaboration-client.config','method','_parse','_status$','HttpImport','_startSheetCollabCursor','_onRefRangeChange','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','length','276280ondivQ','session.will-retry','getAllMembers','show','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','subscribeEvent','_executeRemoteChangeset','updateOfflineData','evenodd','_doFinalize','YUUMI_RATE_OVER_LIMIT','_socket','_docTransformSelectionsService','name','displayName','csAckEvent','_replayCachedMutations','_registerDependencies','setItem','editing\x20status\x20changed\x20to','_append','createInstance','_beforeCloseService','randomUUID','1850754LExlzy','getUndoRedoMutationParamsCache','_handleEvent','_throwTelemetryCollaborationNewChangeset','onTransformSelections','getStateCache','\x20to\x20','focused$','getCurrentSelections','_waitForHeartbeatResponse','_collaborationPaused','backgroundColor','HEARTBEAT','_substituteRedoStack','capture','Encryptor','decrypt','endRow','/collaborator','_saveTaskMap','__creator','get','_transformRemoteChangesetByStateCache','1em','column','_createHelper','LICENSE_MAX_UNITS_EXCEEDED','onRemoteAck','hide','fillText','_updateStatus','format','_memberService','UNIVER_PROJECT','getRoom','_commentService','attrs','unknown','post','className','signUrlServerUrl','message$','subunit','initWorkbookPermissionChange','COMPRESS_MUTATION_SEND','_lockTransition','_urlService','pauseCollaboration','_event$','UNIVER_SLIDE','UNRECOGNIZED','event$','_document','_onConnectionFailed','transformRemoteChangeset','split','setWaitCount','_collabCursorState$','slice','c2Prime','rev','_handleHover','_socket$','prototype','_textBubble','url(#off-line-single_clip0_910_343)','/universer-api/snapshot/','error','_context','onlineStatusIcon','0\x200\x2016\x2016','substr','_revisionService','onTransformIME','_name','_transformUndoRedoStack','UNIVER_DOC','updateMember','refreshPermission','USERS_ENTER','saveSheetBlock','UNAUTHENTICATED','keySize','_renderManagerService','_updateState','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','readInt32LE','_DEC_XFORM_MODE','15978832SVRIoC','MSG_FOR_ERROR','originalMeta','getActiveRange','call','create','BASE64','UNIVER_UNKNOWN','kdf','_localCacheService','history','_logService','_getSaveTimeout','roomMembers$','28BSJTud','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','univer-online-status-title','generateRandomId','includes','PERMISSION_DENIED','_onCursorUpdate','use','_timeoutTimer','_rescheduleHeartbeat','putCollaborators','OnLineSingle','requireSession','_docSkeletonManagerService','_uiPartsService','permissionRejEvent','[FetchMissState]','infoRsp','_onUserLeave','USERS_LEAVE','SHOULD_CLOSE_CONN','COLLAB_WEB_SOCKET_URL','_sheetTransformSelectionsService','/allowed','colorChannel1','FAIL','COMPRESS_MUTATION_APPLY','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_isPermissionRej','font','_sender','resolve','/universer-api/snapshot','sin','addObject','objectType','RETRY_CONNECTING_MAX_COUNT','_syncEditingCollabCursor','reset','reverse','_loadSheet','_state$','_assignedColors','fromCollab','_acknowledgedAwaitingChangeset','searchParams','uni.network.url-service','listCollaborators','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','getValue','UNIVER_COLLABORATION_CLIENT_PLUGIN','UPDATE_CURSOR','registerRenderModule','fromCharCode','toStringTag','/fetchmissing?from=','_iKey','xlink:href','on-line-single','replaceState','duration','equals','_sheetSkeletonManagerService','visibilitychange','reduce','_showConflictNotification','pending','_initUnitPermissionChange','registerRefRange','downloadEndpointUrl','_getAnchorBounding','send','on-line-single_clip0_910_349','location','_invKeySchedule','update','debug','fetchMiss','type','hidden','height','_candidateSocket','object','#FFF','_collaborationSessionService','permission.content','ERROR_EXCEED_SIZE','_httpService','_setupBeforeClosingHandler','setStateCache','conflict.content','_updateSubUnitFromURLParams','collab-client.tooltip.reconnect','CONFLICT','_stopTelemetryCollaborationNewChangeset','...','pad','unit-cache-','Module','range','HmacMD5','_members','_cipher','blockSize','open$','_changesetSessionId','getSheetId','_localeService','_transformRemoteChangesetByIMECache','univer-online','getAncestorScale','buffer','FileId','getLatestCsReqIdBySid','defineProperty','_http','incrementRevOfUnit','onTransformChange$','[OfflineState]:\x20received\x20changeset.','getUnitId','LEAVE','SEND_CHANGESET_TIMEOUT','toString','_onRemoteACK','enableLocalCache','dispose','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_range','doc.mutation.rich-text-editing','string','trim','_onRemoteChangeset','getCollabCursors$','_tryEnsureSocket','routeKey','UnitSnapshot','startColumn','restore','_snapshotServerService','_docTransformStateCacheService','SNAPSHOT_URL_KEY','sendChangesetTimeout','executeCommand','translate(.97)','_disableEditing','getUniverSheetInstance','collaboration-session-retry','transformStateCache','_updateLocalCursor','ivSize','encodeURIComponent','csShouldRetryEvent','encryptBlock','APPLY_REJECT','getCollabEntity','_config','_clearHeartbeatTimer','_keySchedule','collabStatus.notCollab','JOINING','tag','flatMap','red300','onPointerMove$','sessionStatus','registerHTTPInterceptor','Hex','CBC','_onConnectionOpen','mode','ceil','_drawRectRange','csRejEvent','indexOf','_getSnapshotAPIPrefix','exports','onCommentUpdate','transformChangesets','$super','moveTo','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','gold400','target','/-/object/-/batch_allowed','function','_univerInstanceService','_key','asObservable','getRenderById','_mode','params','_localStorageService','_labelPosition','_socketService','reject','_onRemoteRejected','_shouldReportTelemetry','_awaitingChangeset','onTransformRemoteChangesetByIMECache','actions','Cipher','isArray','getUnitStatus$','_id','appendMutation','m2Prime','socket\x20close','isActive','BufferedBlockAlgorithm','#fff','[CollaborationState]:\x20apply\x20error!','top','CHANGESET_REVISION_CONFILICT','_cursorShapes','offline','Error\x20on\x20receiving\x20event','result','getOwnPropertySymbols','stopTime','complete','reconnect','setConfig','collaboration_new_changeset','_backgroundColor','_getUndoStack','action','_createInitialStateImpl','M0\x200H16V16H0z','_onRemoteRetry','_pendingMutations','_entities','origin','_initDependencies','onRemoteRej','_initResize','_drawTextRange','_roomMembers','color','CONNECTOR_DATA_TOO_LARGE','_reverseMap','&to=','conflict.title','save','collaboration.single-unit.warning','with','newCsEvent','getRelativeToViewportCoord','_scheduleClearOtherTimer','snapshotServerUrl','some','_cursorInfo$','unsubscribe','getItem','HMAC','_queuedRemoteChangesets','PSEUDO_FETCH_MISSING_RESULT','_singleActiveUnitService','selection','PERMISSION_REJ','_getDownloadEndpointURL','currentColor','entries','removeParam','Base64','collaborators','UNIVER_SHEET','none','_HTTPService','key','Error','getResourcesRequest','addEventListener','randomBytes','_submitChangeset','setCurrentUser','byteLength','then','replaceTextRanges','APPLY_PERMISSION_DENIED','/resources','?size=','LIVESHARE_FETCH_OPERATIONS','whenReady','_anchorDot','_refreshCollabCursors','/block/','transformMutationsWithChangeset','round','baseRev','conflict','YUUMI_SUBSCRIPTION_NOT_FOUND','PENDING','every','_getSignURL','_onJoinRoomEvent','resend','AWAITING','_initStatusListener','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_compressMutationService','/universer-api/stream/file/upload','shouldCloseConn','_configService','LIVESHARE_NEW_HOST','values','StreamCipher','SUCCUSS','_toggleOffline','getInterceptPoints','setShapeProps','hasher','_onFetchMissResult','saveImage','onReady','onTransformRemoteChangesetByStateCache','assign','off-line-single','jiqing500','_fetchMissChangesets','closeSession','defIds','arc','collabCursorState$','CHANGESET_SHOULD_RETRY','createSocket','OpenSSL','onRemoteChangeset','objectID','_initMergeInterceptor','Decryptor','fill','[SyncedState]:\x20received\x20rejection.','_transformService','[CollaborationSessionService]:\x20socket\x20error','PasswordBasedCipher','HELLO','changesets','univer-pro.collaboration-client.single-active-unit-service','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_decreaseWaiting','ALREADY_EXISTS','LOCAL_CACHE_INTERVAL','getRangePointData','image/bmp','fillRule','_transformHistoryAndStateStack','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','row','updateCollaborator','_resendTimeout','FromArray','unitID','_retryConnectingTimer','assignAColorForMemberID','MoveRangeCommandId','_unlockTransition','SNAPSHOT_INVALID_SNAPSHOT','WordArray','_transformIMECache','_onCursorDelete','_initEventListeners','COMMENT_UPDATE','APPLY_NON_SEQUENTIAL_REVISION','startTime','collaboratorID','url(#on-line-single_clip0_910_349)','image/png','InsertRangeMoveRightCommandId','_remoteChangesetQueue','filter','getRandomValues','_xformMode','LIVESHARE_REQUEST_HOST','concat','size','SHA1','random','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','defs','roomMembers','_injector','_onOffline','div','FETCH_MISSING','_getUploadFileURL','getImageSourceCache','repeat','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','POST','_createInitialState','onCommandExecuted','compute','1988583QDZSEJ','_scene','RECV','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','LICENSE_IMPORT_SIZE_EXCEEDED','InsertRangeMoveDownCommandId','__esModule','reqId','bind','collabStatus.synced','dispose$','SNAPSHOT_HAS_BEEN_REMOVED','clone','_updateURLWithCurrentState','resize','_handleLeaveEvent','hovered','purple300','unit','_joinRoom','undoState','lib','memberID','_removeCollabCursors','awaiting_with_pending','userID','construct','x-univer-host','onSendChangeset','finalize','readAsDataURL','/universer-api/oidc/authpage','addObjects','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','onlineStatusTitle','_change$','_resendTimer','_getScale','28521pUHgcJ','toRgbString','_data','onStateChange','urlChange$','getDeserializedSheetBlock','onMissedChangesetFetched','ciphertext','measureText','fetchMissingChangesets','NOT_FOUND','data','m1Prime','_getSendChangesetTimeout','_registerRenderDependencies','TOO_MANY_REQUESTS','EvpKDF','code','_clearCollaborationTimeoutTimer','storage','constructor','Utf8','_doProcessBlock','transformUndoRedo','LIVESHARE_TERMINATE','clamp','loadSheet','clipPath','fetch_missing','_clearLocalCache','RECT','UniverIcon','selections','createCollaborator','SYNCED','objectActions','next','redoState','createDecryptor','snapshot','_drawAnchor','cursorInfo','unitId','onSyncEditingCollabCursor','IDLE','getCurrent','newValue','HEADER_MENU','_eventUnsubscribe','YUUMI_UNABLE_LOAD_URL','activeSheet$','OTHER_CLIENTS_EDITING','_userManagerService','textRanges','liveShareNewHost','min','state','skeleton','UNKNOWN_CODE','HmacSHA1','onlyLocal','_nRounds','propertyIsEnumerable','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_anchor','_online','getMemberID','delete','getFocusedUnit','getViewport','_onMessage','body','collabStatus.conflict','/unit/','encode','_unitID','getCurrentRevOfUnit','joinRsp','_hover','HttpExport','_docTransformIMECacheService','_entityInit$','abs','stringify','_updateCollabCursors','_scheduleCollaborationTimeoutTimer','getTime','collab-rect-range-','setParam','0\x200\x2017\x2016','_initCloseConn','\x20-\x20','ranges','transform','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','sigBytes','pipe','_listenToOfflineEvent','_state','\x20in\x20_schedule.','width','Hasher','EXCHANGE_SIGN_URL_SERVER_URL_KEY','deepClone','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','error$','[CollaborationUndoRedoService]','auth.needGotoLoginAlert','onPointerLeave$','_doReset','_updateLocalCache','_docStateChangeManagerService','getCurrentUnitForType','_colorAssignService','awaitingChangeset','getActiveSheet','getTypeOfUnitAdded$','&source=','not_collab','image/gif','_collabCursorController','_ws','_send','off-line-single_clip0_910_343','fetching\x20missing\x20changesets\x20from\x20','_resendWithTimeout','collabSubmitChangesetUrl','localeService','clearInterval','getCollabEntity$','_telemetryInfo','_transformStateCache','hasOwnProperty','UNDEFINED','_undoStacks','_hovered','_redoStacks','clearTimeout','_render','_onConflict','charCodeAt','findNodePositionByCharIndex','_clearTimeoutTimer','collabStatus.offline','_doCryptBlock','transformMutation','_oKey','FETCH_MISS','mutations','collab-text-range-','startRow','_onCombEvent','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_clearRedo','MD5','LIVESHARE_OPERATION','/object','rgba(255,\x20255,\x20255,\x200.01)','NEW_CHANGESETS','_createHandler','_map','_unitStatus','univer-pro.collaboration-client-socket-service','_saveCache','createEncryptor','UNKNOWN_CMD','drawWith','RemoveRowCommandId','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_substituteUndoStack','_onLocalMutation','_startDocCollabCursor','src','apply','transformIMECache','Undefined','sid','disableLocalCache','currentTheme$','_unitOnClients','_cursors','getUnitOnRev','_imageSourceCache','_nDataBytes','DEFAULT_FILE_NAME','/universer-api/authz','iterations','status','JOIN','InsertRowCommandId','leaveEvent','[OfflineState]:\x20received\x20acknowledgement.','pushState','MUTATION','transformSelections','_disabled','setAlpha','BlockCipher','getSkeleton','_commentUpdate$','_instanceService','NOT_COLLAB','loadOfflineData','[CollaborationSession]','updatePermissionObjEvent','getCurrentUser','BlockCipherMode','3933532Joospv','_sendHeartbeat','_hideTimer','_collaborationController','collaboration.closeRoom','_minBufferSize','_changesetReqId','getConfig','_getAPIPrefix','_getRedoStack','getUnitType','_handleHeartbeatEvent','listRoles','disposeWithMe','OFFLINE','[SyncedState]:\x20received\x20acknowledgement.','Pkcs7','_color','TEXT','createElement','APPLY_DUPLICATED','ONLINE','icon','_clearScheduledTask','salt','connection\x20error','fillStyle','getWorkbookSelections','enableOfflineEditing','{fileID}','/object/','crypto','lineTo','_handleJoinEvent','onload','subscribe','_scheduleTimestamp','algo','_snapshotService','_transformPreviousActiveRange','YUUMI_URL_COL_OUT_OF_RANGE','HEARTBEAT_INTERVAL','loginUrlKey','_retryCount','CHANGESET_ACK','onStarting','append','_exhaustRemoteChangesetQueue','_session','HEARTBEAT_TIMEOUT','_prevBlock','msCrypto','forEach','_ENC_XFORM_MODE','permission.title','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_removeClearOtherTimer','_transformSelections','_tryReconnect','[CollaborationSessionService]','_keyPriorReset','2111354dpoIMD','init','commentUpdateEvent','_draw','registerComponent','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','univer-online-status','SUBMIT_CHANGESET','children','onTransformState','COLLAB_SUBMIT_CHANGESET_URL','isEditing','execute','revision','_scheduleHeartbeat','toggleOnline','INTERNAL_ERROR','charAt','roomInfos','isPermissionRej','AWAITING_WITH_PENDING','_clearUndo','headers','_createSocket','_loadDoc','_process','_syncEditingCollabCursorService','_startTelemetryCollaborationNewChangeset','_collaborationTimeoutTimer','_refRangeService','_checkMissing','cmd','_incrementRevisionNumber','sessionStatus$','CHANGESET_REJ','setShowComponents','requestParams','default','status$','_type','_notificationService','getUnit','collabStatus.syncing','add','UUID','_clearOtherTimers','_sessionStatus$','toggleOffline','NO_OTHER_CLIENTS_EDITING','_transformStack','map','_iv','unpad','univerjs-icon\x20univerjs-icon-','_themeService','getParam','list'];_0x60b8=function(){return _0x515565;};return _0x60b8();}bt=Oa([Wt(0x0,_0x3ade87),Wt(0x1,_0x3e8773(_0x4dbc01)),Wt(0x2,_0x3e8773(_0x51cff0))],bt);var wa=Object['defineProperty'],Da=Object['getOwnPropertyDescriptor'],Pa=(_0x552bb2,_0x2ab49b,_0x4e46ba,_0x436274)=>{const _0x1fef1e=_0x159fb9;for(var _0x1fb3af=_0x436274>0x1?void 0x0:_0x436274?Da(_0x2ab49b,_0x4e46ba):_0x2ab49b,_0x482d6d=_0x552bb2[_0x1fef1e(0x3e5)]-0x1,_0x50fb47;_0x482d6d>=0x0;_0x482d6d--)(_0x50fb47=_0x552bb2[_0x482d6d])&&(_0x1fb3af=(_0x436274?_0x50fb47(_0x2ab49b,_0x4e46ba,_0x1fb3af):_0x50fb47(_0x1fb3af))||_0x1fb3af);return _0x436274&&_0x1fb3af&&wa(_0x2ab49b,_0x4e46ba,_0x1fb3af),_0x1fb3af;},qs=(_0x30e7e6,_0x21d577)=>(_0x3cba9a,_0x6b1794)=>_0x21d577(_0x3cba9a,_0x6b1794,_0x30e7e6);const Ua=_0x159fb9(0x370),Na=_0x159fb9(0x2c4);let cs=class extends _0x10d2e7{constructor(_0x4cdc93,_0x50e912){const _0x1be0cb=_0x159fb9;super(),this[_0x1be0cb(0x168)]=_0x4cdc93,this['_configService']=_0x50e912,this[_0x1be0cb(0x1a5)]();}[_0x159fb9(0x1a5)](){const _0xde93a5=_0x159fb9,_0x20021a=this;this[_0xde93a5(0x2e7)](this[_0xde93a5(0x168)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x3c9381({'isMatch'(_0x695c5e){const _0xc67063=_0xde93a5;var _0x4cdeac;if(_0x695c5e[_0xc67063(0x3de)]===_0xc67063(0x1e1)&&((_0x4cdeac=_0x695c5e[_0xc67063(0x33b)])!=null&&_0x4cdeac[_0xc67063(0x252)])){const {objectID:_0x3c4a45,objectType:_0x566948}=_0x695c5e[_0xc67063(0x33b)][_0xc67063(0x252)]||{};if(!_0x3c4a45||_0x566948===void 0x0)return!0x1;const _0x2c6fa8=_0x20021a[_0xc67063(0x365)]()+'/'+_0x566948+_0xc67063(0x2f8)+_0x3c4a45+_0xc67063(0x47b);if(_0x695c5e['url']===_0x2c6fa8)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x40e078){var _0x96a2e;return(_0x96a2e=_0x40e078['requestParams'])==null?void 0x0:_0x96a2e['body'];},'mergeParamsToRequest'(_0xff21c7,_0x5f1cf4){const _0x417ba4=_0xde93a5,_0x1e1997=_0x20021a[_0x417ba4(0x365)]()+_0x417ba4(0x114),_0x17772f=_0xff21c7[_0x417ba4(0x4a4)]((_0x343a07,_0x224b64)=>{const _0x2a57af=_0x417ba4,{unitID:_0x3c0a46,objectID:_0x4d5c8,objectType:_0x37491b,actions:_0x829292}=_0x224b64;return _0x343a07[_0x3c0a46]||(_0x343a07[_0x3c0a46]={}),_0x343a07[_0x3c0a46][_0x4d5c8]||(_0x343a07[_0x3c0a46][_0x4d5c8]={'objectID':_0x4d5c8,'objectType':_0x37491b,'actions':[]}),_0x343a07[_0x3c0a46][_0x4d5c8][_0x2a57af(0x124)]['push'](..._0x829292),_0x343a07;},{}),_0x53050b=[];for(const _0x37875a in _0x17772f)for(const _0x4e1525 in _0x17772f[_0x37875a]){const {actions:_0x2e5814,objectType:_0x4159fd}=_0x17772f[_0x37875a][_0x4e1525],_0x5491e5=[...new Set(_0x2e5814)];_0x53050b[_0x417ba4(0x3c8)]({'unitID':_0x37875a,'objectID':_0x4e1525,'objectType':_0x4159fd,'actions':_0x5491e5});}return new _0x179c59(_0x417ba4(0x1e1),_0x1e1997,{'headers':_0x5f1cf4[_0x417ba4(0x32d)],'withCredentials':_0x5f1cf4['withCredentials'],'responseType':_0x5f1cf4['responseType'],'body':{'requests':_0x53050b}});}},{'distributeResult'(_0x5dab77,_0x4280d3){const _0x4542aa=_0xde93a5,{objectActions:_0x331d6d}=_0x5dab77;return _0x4280d3[_0x4542aa(0x349)](_0x7a4794=>{const _0x2797c5=_0x4542aa,{unitID:_0x1d4899,objectID:_0x505766,actions:_0x3edbd0}=_0x7a4794,_0x1204d5=_0x331d6d[_0x2797c5(0x35c)](_0x5e6aa4=>_0x5e6aa4[_0x2797c5(0x1bc)]===_0x1d4899&&_0x5e6aa4[_0x2797c5(0x1a4)]===_0x505766),_0x48e7cc=_0x3edbd0[_0x2797c5(0x349)](_0x50880e=>_0x1204d5==null?void 0x0:_0x1204d5[_0x2797c5(0x124)][_0x2797c5(0x35c)](_0x4267c6=>_0x4267c6[_0x2797c5(0x13e)]===_0x50880e))[_0x2797c5(0x1ce)](_0x48d124=>!!_0x48d124);return{'config':_0x7a4794,'result':{'actions':_0x48e7cc,'error':_0x5dab77[_0x2797c5(0x441)]}};});}})}));}[_0x159fb9(0x365)](){const _0x54d0a4=_0x159fb9;var _0x43a9d4,_0x424684;const _0x5103c9=this['_configService'][_0x54d0a4(0x2e1)](Ua),_0x381c05=this[_0x54d0a4(0x18b)]['getConfig'](ie);return(_0x424684=(_0x43a9d4=_0x381c05==null?void 0x0:_0x381c05['authzUrl'])!=null?_0x43a9d4:_0x5103c9)!=null?_0x424684:Na;}async[_0x159fb9(0x45b)](_0x18eafb){const _0x530db4=_0x159fb9,_0x4e4f1f=this[_0x530db4(0x365)]()+'/'+_0x18eafb[_0x530db4(0x487)]+_0x530db4(0x2a7);return(await this['_HTTPService']['post'](_0x4e4f1f,{'body':_0x18eafb}))[_0x530db4(0x252)][_0x530db4(0x1a4)]||'';}async[_0x159fb9(0x34f)](_0x4c56cf){const _0x74ccfa=_0x159fb9,_0xa5c36b=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x74ccfa(0x168)][_0x74ccfa(0x424)](_0xa5c36b,{'body':_0x4c56cf}))[_0x74ccfa(0x252)]['objects'];}async['update'](_0x3fd205){const _0x1bb181=_0x159fb9,_0xd35321=this[_0x1bb181(0x365)]()+'/'+_0x3fd205['objectType']+_0x1bb181(0x2f8)+_0x3fd205[_0x1bb181(0x1a4)];await this[_0x1bb181(0x168)][_0x1bb181(0x3c5)](_0xd35321,{'body':_0x3fd205});}async['allowed'](_0x156ee5){const _0xfad943=_0x159fb9,_0x48a4f4=this[_0xfad943(0x365)]()+'/'+_0x156ee5[_0xfad943(0x487)]+_0xfad943(0x2f8)+_0x156ee5['objectID']+_0xfad943(0x47b);return(await this[_0xfad943(0x168)][_0xfad943(0x424)](_0x48a4f4,{'body':_0x156ee5}))['body'][_0xfad943(0x124)];}async['batchAllowed'](_0x212248){const _0x407570=_0x159fb9,_0xe569f0=this[_0x407570(0x365)]()+_0x407570(0x114);return(await this[_0x407570(0x168)]['post'](_0xe569f0,{'body':{'requests':_0x212248}}))[_0x407570(0x252)][_0x407570(0x22e)];}async[_0x159fb9(0x2e6)](_0x3e92b3){const _0x50b8b3=_0x159fb9,_0x266758=this[_0x50b8b3(0x365)]()+'/'+_0x3e92b3['objectType']+'/role',_0x116046=await this[_0x50b8b3(0x168)][_0x50b8b3(0x424)](_0x266758,{'body':_0x3e92b3});return{'roles':_0x116046[_0x50b8b3(0x252)][_0x50b8b3(0x3a6)],'actions':_0x116046[_0x50b8b3(0x252)]['actions']};}async['deleteCollaborator'](_0x1e95a0){const _0xeef966=_0x159fb9,_0x443395=this[_0xeef966(0x365)]()+'/collaborator';await this[_0xeef966(0x168)]['delete'](_0x443395,{'params':{'collaboratorID':_0x1e95a0[_0xeef966(0x1c9)],'objectID':_0x1e95a0[_0xeef966(0x1a4)],'unitID':_0x1e95a0[_0xeef966(0x1bc)]}});}async[_0x159fb9(0x1b9)](_0x384579){const _0x122bde=_0x159fb9,_0xdeb25b=this[_0x122bde(0x365)]()+_0x122bde(0x410);await this[_0x122bde(0x168)]['patch'](_0xdeb25b,{'body':_0x384579});}async[_0x159fb9(0x22c)](_0x14ef21){const _0x3106e9=_0x159fb9,_0x5b1463=this[_0x3106e9(0x365)]()+_0x3106e9(0x410);await this[_0x3106e9(0x168)][_0x3106e9(0x424)](_0x5b1463,{'body':_0x14ef21});}async[_0x159fb9(0x493)](_0x4b8ea6){const _0x56c344=_0x159fb9,_0x35e912=this['_getAPIPrefixPath']()+_0x56c344(0x410);return(await this[_0x56c344(0x168)][_0x56c344(0x413)](_0x35e912,{'params':{'objectID':_0x4b8ea6[_0x56c344(0x1a4)],'unitID':_0x4b8ea6[_0x56c344(0x1bc)]}}))[_0x56c344(0x252)][_0x56c344(0x165)];}async[_0x159fb9(0x46e)](_0x544525){const _0x5c8de9=_0x159fb9,_0x21623a=this[_0x5c8de9(0x365)]()+_0x5c8de9(0x410);await this[_0x5c8de9(0x168)][_0x5c8de9(0x3c5)](_0x21623a,{'body':_0x544525});}};cs=Pa([qs(0x0,_0x3e8773(_0x4dbc01)),qs(0x1,_0x3e8773(_0x3ade87))],cs);var Z=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function at(_0x514680){const _0x519a0c=_0x159fb9;return _0x514680&&_0x514680['__esModule']&&Object[_0x519a0c(0x43d)]['hasOwnProperty'][_0x519a0c(0x45a)](_0x514680,_0x519a0c(0x33c))?_0x514680['default']:_0x514680;}function Aa(_0x4f1d98){const _0x5bcc7d=_0x159fb9;if(_0x4f1d98[_0x5bcc7d(0x1eb)])return _0x4f1d98;var _0x2afe88=_0x4f1d98[_0x5bcc7d(0x33c)];if(typeof _0x2afe88==_0x5bcc7d(0x115)){var _0x17b020=function _0x57434a(){const _0x12c35d=_0x5bcc7d;return this instanceof _0x57434a?Reflect[_0x12c35d(0x1ff)](_0x2afe88,arguments,this[_0x12c35d(0x21f)]):_0x2afe88[_0x12c35d(0x2b8)](this,arguments);};_0x17b020[_0x5bcc7d(0x43d)]=_0x2afe88['prototype'];}else _0x17b020={};return Object['defineProperty'](_0x17b020,_0x5bcc7d(0x1eb),{'value':!0x0}),Object['keys'](_0x4f1d98)[_0x5bcc7d(0x30e)](function(_0x52706f){const _0x1c5ca0=_0x5bcc7d;var _0x4c5879=Object[_0x1c5ca0(0x37a)](_0x4f1d98,_0x52706f);Object[_0x1c5ca0(0xcf)](_0x17b020,_0x52706f,_0x4c5879['get']?_0x4c5879:{'enumerable':!0x0,'get':function(){return _0x4f1d98[_0x52706f];}});}),_0x17b020;}var ji={'exports':{}};function Ma(_0x5f3d37){const _0x40c151=_0x159fb9;throw new Error(_0x40c151(0x3b2)+_0x5f3d37+_0x40c151(0x1e0));}var Ft={'exports':{}};const xa={},La=Object['freeze'](Object['defineProperty']({'__proto__':null,'default':xa},Symbol[_0x159fb9(0x49a)],{'value':_0x159fb9(0xbf)})),$a=Aa(La);var Xs;function ue(){const _0x1de7eb=_0x159fb9;return Xs||(Xs=0x1,function(_0x48793c,_0x18ee7e){(function(_0x391ef1,_0x5e6b5e){const _0x506ee9=_0x4457;_0x48793c[_0x506ee9(0x10c)]=_0x5e6b5e();}(Z,function(){var _0x1677eb=_0x1677eb||function(_0x32b787,_0x41834d){const _0x4fe218=_0x4457;var _0x4999bd;if(typeof window<'u'&&window[_0x4fe218(0x2f9)]&&(_0x4999bd=window[_0x4fe218(0x2f9)]),typeof self<'u'&&self[_0x4fe218(0x2f9)]&&(_0x4999bd=self['crypto']),typeof globalThis<'u'&&globalThis[_0x4fe218(0x2f9)]&&(_0x4999bd=globalThis[_0x4fe218(0x2f9)]),!_0x4999bd&&typeof window<'u'&&window[_0x4fe218(0x30d)]&&(_0x4999bd=window['msCrypto']),!_0x4999bd&&typeof Z<'u'&&Z[_0x4fe218(0x2f9)]&&(_0x4999bd=Z[_0x4fe218(0x2f9)]),!_0x4999bd&&typeof Ma==_0x4fe218(0x115))try{_0x4999bd=$a;}catch{}var _0x23be96=function(){const _0x3ecd19=_0x4fe218;if(_0x4999bd){if(typeof _0x4999bd[_0x3ecd19(0x1cf)]=='function')try{return _0x4999bd[_0x3ecd19(0x1cf)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x4999bd[_0x3ecd19(0x16d)]==_0x3ecd19(0x115))try{return _0x4999bd['randomBytes'](0x4)[_0x3ecd19(0x454)]();}catch{}}throw new Error('Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.');},_0x318f64=Object[_0x4fe218(0x45b)]||(function(){function _0x33f248(){}return function(_0x2ce181){const _0x11ee8f=_0x4457;var _0x47e2be;return _0x33f248['prototype']=_0x2ce181,_0x47e2be=new _0x33f248(),_0x33f248[_0x11ee8f(0x43d)]=null,_0x47e2be;};}()),_0x580bfe={},_0x35dd49=_0x580bfe[_0x4fe218(0x1fa)]={},_0xe4e5b2=_0x35dd49[_0x4fe218(0x3a8)]=(function(){return{'extend':function(_0x30baef){const _0x3496cc=_0x4457;var _0x5a763d=_0x318f64(this);return _0x30baef&&_0x5a763d['mixIn'](_0x30baef),(!_0x5a763d[_0x3496cc(0x28f)](_0x3496cc(0x318))||this[_0x3496cc(0x318)]===_0x5a763d['init'])&&(_0x5a763d[_0x3496cc(0x318)]=function(){const _0x3061f1=_0x3496cc;_0x5a763d[_0x3061f1(0x10f)][_0x3061f1(0x318)][_0x3061f1(0x2b8)](this,arguments);}),_0x5a763d[_0x3496cc(0x318)][_0x3496cc(0x43d)]=_0x5a763d,_0x5a763d[_0x3496cc(0x10f)]=this,_0x5a763d;},'create':function(){const _0x79ad86=_0x4457;var _0x27ec6d=this[_0x79ad86(0x392)]();return _0x27ec6d['init'][_0x79ad86(0x2b8)](_0x27ec6d,arguments),_0x27ec6d;},'init':function(){},'mixIn':function(_0xdfa051){const _0x14102=_0x4457;for(var _0x5b37b8 in _0xdfa051)_0xdfa051[_0x14102(0x28f)](_0x5b37b8)&&(this[_0x5b37b8]=_0xdfa051[_0x5b37b8]);_0xdfa051[_0x14102(0x28f)]('toString')&&(this['toString']=_0xdfa051[_0x14102(0xd7)]);},'clone':function(){const _0x4223f9=_0x4457;return this[_0x4223f9(0x318)]['prototype']['extend'](this);}};}()),_0x1caeac=_0x35dd49[_0x4fe218(0x1c2)]=_0xe4e5b2[_0x4fe218(0x392)]({'init':function(_0x5cc043,_0x145988){const _0x4795fd=_0x4fe218;_0x5cc043=this[_0x4795fd(0x39a)]=_0x5cc043||[],_0x145988!=_0x41834d?this[_0x4795fd(0x26a)]=_0x145988:this[_0x4795fd(0x26a)]=_0x5cc043[_0x4795fd(0x3e5)]*0x4;},'toString':function(_0x1366fc){return(_0x1366fc||_0x5275eb)['stringify'](this);},'concat':function(_0x5c0d07){const _0x1de736=_0x4fe218;var _0x15dfe6=this[_0x1de736(0x39a)],_0x42af=_0x5c0d07[_0x1de736(0x39a)],_0x57b34d=this[_0x1de736(0x26a)],_0x5e6f7c=_0x5c0d07[_0x1de736(0x26a)];if(this[_0x1de736(0x224)](),_0x57b34d%0x4)for(var _0x3052ea=0x0;_0x3052ea<_0x5e6f7c;_0x3052ea++){var _0x1ae7b8=_0x42af[_0x3052ea>>>0x2]>>>0x18-_0x3052ea%0x4*0x8&0xff;_0x15dfe6[_0x57b34d+_0x3052ea>>>0x2]|=_0x1ae7b8<<0x18-(_0x57b34d+_0x3052ea)%0x4*0x8;}else{for(var _0x276308=0x0;_0x276308<_0x5e6f7c;_0x276308+=0x4)_0x15dfe6[_0x57b34d+_0x276308>>>0x2]=_0x42af[_0x276308>>>0x2];}return this[_0x1de736(0x26a)]+=_0x5e6f7c,this;},'clamp':function(){const _0x320da1=_0x4fe218;var _0x43ab54=this[_0x320da1(0x39a)],_0x5947c5=this['sigBytes'];_0x43ab54[_0x5947c5>>>0x2]&=0xffffffff<<0x20-_0x5947c5%0x4*0x8,_0x43ab54[_0x320da1(0x3e5)]=_0x32b787[_0x320da1(0x107)](_0x5947c5/0x4);},'clone':function(){const _0x266390=_0x4fe218;var _0x484462=_0xe4e5b2[_0x266390(0x1f1)][_0x266390(0x45a)](this);return _0x484462[_0x266390(0x39a)]=this[_0x266390(0x39a)][_0x266390(0x438)](0x0),_0x484462;},'random':function(_0x90f5cc){const _0x4a8f2a=_0x4fe218;for(var _0x582327=[],_0xaa424f=0x0;_0xaa424f<_0x90f5cc;_0xaa424f+=0x4)_0x582327[_0x4a8f2a(0x3c8)](_0x23be96());return new _0x1caeac[(_0x4a8f2a(0x318))](_0x582327,_0x90f5cc);}}),_0x41dd74=_0x580bfe[_0x4fe218(0x38a)]={},_0x5275eb=_0x41dd74[_0x4fe218(0x103)]={'stringify':function(_0x44e62b){const _0x47ddbf=_0x4fe218;for(var _0x1527ba=_0x44e62b[_0x47ddbf(0x39a)],_0x25af65=_0x44e62b[_0x47ddbf(0x26a)],_0x4ae0ab=[],_0x1859d5=0x0;_0x1859d5<_0x25af65;_0x1859d5++){var _0x48a96d=_0x1527ba[_0x1859d5>>>0x2]>>>0x18-_0x1859d5%0x4*0x8&0xff;_0x4ae0ab[_0x47ddbf(0x3c8)]((_0x48a96d>>>0x4)['toString'](0x10)),_0x4ae0ab[_0x47ddbf(0x3c8)]((_0x48a96d&0xf)[_0x47ddbf(0xd7)](0x10));}return _0x4ae0ab['join']('');},'parse':function(_0x5997ec){const _0x251997=_0x4fe218;for(var _0x5b9e0a=_0x5997ec[_0x251997(0x3e5)],_0x3a9e4e=[],_0x496be1=0x0;_0x496be1<_0x5b9e0a;_0x496be1+=0x2)_0x3a9e4e[_0x496be1>>>0x3]|=parseInt(_0x5997ec[_0x251997(0x445)](_0x496be1,0x2),0x10)<<0x18-_0x496be1%0x8*0x4;return new _0x1caeac['init'](_0x3a9e4e,_0x5b9e0a/0x2);}},_0x525201=_0x41dd74['Latin1']={'stringify':function(_0x3df846){const _0xe92dbd=_0x4fe218;for(var _0x457349=_0x3df846[_0xe92dbd(0x39a)],_0x2a2f57=_0x3df846[_0xe92dbd(0x26a)],_0x519c89=[],_0x857d6d=0x0;_0x857d6d<_0x2a2f57;_0x857d6d++){var _0x4baf30=_0x457349[_0x857d6d>>>0x2]>>>0x18-_0x857d6d%0x4*0x8&0xff;_0x519c89['push'](String[_0xe92dbd(0x499)](_0x4baf30));}return _0x519c89['join']('');},'parse':function(_0x247574){const _0x58b39e=_0x4fe218;for(var _0x52f8b9=_0x247574[_0x58b39e(0x3e5)],_0x5b49b9=[],_0x355424=0x0;_0x355424<_0x52f8b9;_0x355424++)_0x5b49b9[_0x355424>>>0x2]|=(_0x247574[_0x58b39e(0x297)](_0x355424)&0xff)<<0x18-_0x355424%0x4*0x8;return new _0x1caeac[(_0x58b39e(0x318))](_0x5b49b9,_0x52f8b9);}},_0x4beeb9=_0x41dd74[_0x4fe218(0x220)]={'stringify':function(_0x511afe){const _0xf2f8d4=_0x4fe218;try{return decodeURIComponent(escape(_0x525201[_0xf2f8d4(0x25e)](_0x511afe)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},'parse':function(_0x2ada93){const _0x296467=_0x4fe218;return _0x525201[_0x296467(0x3c4)](unescape(encodeURIComponent(_0x2ada93)));}},_0x4cdbda=_0x35dd49[_0x4fe218(0x12d)]=_0xe4e5b2['extend']({'reset':function(){const _0x2086cc=_0x4fe218;this[_0x2086cc(0x20d)]=new _0x1caeac['init'](),this[_0x2086cc(0x2c2)]=0x0;},'_append':function(_0x79d233){const _0x39ccd8=_0x4fe218;typeof _0x79d233==_0x39ccd8(0xde)&&(_0x79d233=_0x4beeb9[_0x39ccd8(0x3c4)](_0x79d233)),this[_0x39ccd8(0x20d)][_0x39ccd8(0x1d2)](_0x79d233),this[_0x39ccd8(0x2c2)]+=_0x79d233['sigBytes'];},'_process':function(_0x4a1444){const _0xd34447=_0x4fe218;var _0x57ebcf,_0x414f0c=this[_0xd34447(0x20d)],_0x16d305=_0x414f0c['words'],_0x4a4201=_0x414f0c[_0xd34447(0x26a)],_0x110739=this[_0xd34447(0xc4)],_0x3aec92=_0x110739*0x4,_0x8db254=_0x4a4201/_0x3aec92;_0x4a1444?_0x8db254=_0x32b787['ceil'](_0x8db254):_0x8db254=_0x32b787[_0xd34447(0x3dc)]((_0x8db254|0x0)-this[_0xd34447(0x2df)],0x0);var _0x36d179=_0x8db254*_0x110739,_0xb3c0d9=_0x32b787[_0xd34447(0x242)](_0x36d179*0x4,_0x4a4201);if(_0x36d179){for(var _0x465378=0x0;_0x465378<_0x36d179;_0x465378+=_0x110739)this[_0xd34447(0x221)](_0x16d305,_0x465378);_0x57ebcf=_0x16d305['splice'](0x0,_0x36d179),_0x414f0c[_0xd34447(0x26a)]-=_0xb3c0d9;}return new _0x1caeac[(_0xd34447(0x318))](_0x57ebcf,_0xb3c0d9);},'clone':function(){const _0x29f026=_0x4fe218;var _0x2ed059=_0xe4e5b2[_0x29f026(0x1f1)][_0x29f026(0x45a)](this);return _0x2ed059['_data']=this[_0x29f026(0x20d)][_0x29f026(0x1f1)](),_0x2ed059;},'_minBufferSize':0x0});_0x35dd49[_0x4fe218(0x270)]=_0x4cdbda[_0x4fe218(0x392)]({'cfg':_0xe4e5b2[_0x4fe218(0x392)](),'init':function(_0x5ead61){const _0x425a37=_0x4fe218;this[_0x425a37(0x3b6)]=this[_0x425a37(0x3b6)][_0x425a37(0x392)](_0x5ead61),this[_0x425a37(0x48a)]();},'reset':function(){const _0x2ab575=_0x4fe218;_0x4cdbda[_0x2ab575(0x48a)][_0x2ab575(0x45a)](this),this['_doReset']();},'update':function(_0x510347){const _0x36ba77=_0x4fe218;return this[_0x36ba77(0x3fa)](_0x510347),this['_process'](),this;},'finalize':function(_0x118b58){const _0x22bccb=_0x4fe218;_0x118b58&&this[_0x22bccb(0x3fa)](_0x118b58);var _0x2609ea=this[_0x22bccb(0x3ef)]();return _0x2609ea;},'blockSize':0x10,'_createHelper':function(_0x47aaa0){return function(_0x2cb5c5,_0xd674f6){const _0x173d13=_0x4457;return new _0x47aaa0[(_0x173d13(0x318))](_0xd674f6)['finalize'](_0x2cb5c5);};},'_createHmacHelper':function(_0x53e95d){return function(_0x33acc4,_0x1f776f){const _0x555468=_0x4457;return new _0x88a112[(_0x555468(0x15a))][(_0x555468(0x318))](_0x53e95d,_0x1f776f)[_0x555468(0x202)](_0x33acc4);};}});var _0x88a112=_0x580bfe['algo']={};return _0x580bfe;}(Math);return _0x1677eb;}));}(Ft)),Ft[_0x1de7eb(0x10c)];}var Vt={'exports':{}},Js;function Bi(){const _0xde556d=_0x159fb9;return Js||(Js=0x1,function(_0x5ef316,_0x783176){(function(_0x889465,_0x2eae8e){const _0x360f94=_0x4457;_0x5ef316[_0x360f94(0x10c)]=_0x2eae8e(ue());}(Z,function(_0x19e274){const _0x4d1e44=_0x4457;return(function(){const _0x550651=_0x4457;var _0x3494e7=_0x19e274,_0x1fad03=_0x3494e7['lib'],_0x1d8314=_0x1fad03[_0x550651(0x1c2)],_0xa88630=_0x3494e7[_0x550651(0x38a)];_0xa88630[_0x550651(0x164)]={'stringify':function(_0x2ccfcf){const _0x37bd06=_0x550651;var _0x352ae5=_0x2ccfcf[_0x37bd06(0x39a)],_0x38866b=_0x2ccfcf[_0x37bd06(0x26a)],_0x3b5564=this[_0x37bd06(0x2ab)];_0x2ccfcf[_0x37bd06(0x224)]();for(var _0x278fc8=[],_0x453c95=0x0;_0x453c95<_0x38866b;_0x453c95+=0x3)for(var _0x3711d3=_0x352ae5[_0x453c95>>>0x2]>>>0x18-_0x453c95%0x4*0x8&0xff,_0x1c11a1=_0x352ae5[_0x453c95+0x1>>>0x2]>>>0x18-(_0x453c95+0x1)%0x4*0x8&0xff,_0x5d604b=_0x352ae5[_0x453c95+0x2>>>0x2]>>>0x18-(_0x453c95+0x2)%0x4*0x8&0xff,_0x2ca878=_0x3711d3<<0x10|_0x1c11a1<<0x8|_0x5d604b,_0x1651e9=0x0;_0x1651e9<0x4&&_0x453c95+_0x1651e9*0.75<_0x38866b;_0x1651e9++)_0x278fc8['push'](_0x3b5564[_0x37bd06(0x328)](_0x2ca878>>>0x6*(0x3-_0x1651e9)&0x3f));var _0x33ac53=_0x3b5564[_0x37bd06(0x328)](0x40);if(_0x33ac53){for(;_0x278fc8[_0x37bd06(0x3e5)]%0x4;)_0x278fc8[_0x37bd06(0x3c8)](_0x33ac53);}return _0x278fc8['join']('');},'parse':function(_0x468785){const _0xdfab2e=_0x550651;var _0x3b999d=_0x468785[_0xdfab2e(0x3e5)],_0xa1243e=this[_0xdfab2e(0x2ab)],_0x30ead6=this[_0xdfab2e(0x14c)];if(!_0x30ead6){_0x30ead6=this[_0xdfab2e(0x14c)]=[];for(var _0x9ad091=0x0;_0x9ad091<_0xa1243e[_0xdfab2e(0x3e5)];_0x9ad091++)_0x30ead6[_0xa1243e['charCodeAt'](_0x9ad091)]=_0x9ad091;}var _0x363343=_0xa1243e[_0xdfab2e(0x328)](0x40);if(_0x363343){var _0x15de3c=_0x468785[_0xdfab2e(0x10a)](_0x363343);_0x15de3c!==-0x1&&(_0x3b999d=_0x15de3c);}return _0x31c5ec(_0x468785,_0x3b999d,_0x30ead6);},'_map':_0x550651(0x465)};function _0x31c5ec(_0x1d7870,_0x3ba432,_0xb51e14){const _0x488536=_0x550651;for(var _0xa2c218=[],_0x1aed90=0x0,_0x1ca389=0x0;_0x1ca389<_0x3ba432;_0x1ca389++)if(_0x1ca389%0x4){var _0x415da7=_0xb51e14[_0x1d7870[_0x488536(0x297)](_0x1ca389-0x1)]<<_0x1ca389%0x4*0x2,_0x42d465=_0xb51e14[_0x1d7870[_0x488536(0x297)](_0x1ca389)]>>>0x6-_0x1ca389%0x4*0x2,_0x6b829b=_0x415da7|_0x42d465;_0xa2c218[_0x1aed90>>>0x2]|=_0x6b829b<<0x18-_0x1aed90%0x4*0x8,_0x1aed90++;}return _0x1d8314[_0x488536(0x45b)](_0xa2c218,_0x1aed90);}}()),_0x19e274[_0x4d1e44(0x38a)]['Base64'];}));}(Vt)),Vt[_0xde556d(0x10c)];}var Gt={'exports':{}},Zs;function Ha(){return Zs||(Zs=0x1,function(_0x1c4626,_0x242a60){(function(_0x43e991,_0x2838cf){_0x1c4626['exports']=_0x2838cf(ue());}(Z,function(_0x34fcd4){const _0x208960=_0x4457;return function(_0x5f120f){const _0x452516=_0x4457;var _0x1ed7af=_0x34fcd4,_0x5bbc24=_0x1ed7af[_0x452516(0x1fa)],_0x528009=_0x5bbc24['WordArray'],_0x2f4245=_0x5bbc24['Hasher'],_0x4c3759=_0x1ed7af['algo'],_0xbe5c05=[];(function(){const _0x40b7ff=_0x452516;for(var _0x5b979f=0x0;_0x5b979f<0x40;_0x5b979f++)_0xbe5c05[_0x5b979f]=_0x5f120f[_0x40b7ff(0x25d)](_0x5f120f[_0x40b7ff(0x485)](_0x5b979f+0x1))*0x100000000|0x0;}());var _0x52f7f1=_0x4c3759['MD5']=_0x2f4245['extend']({'_doReset':function(){const _0x298d8e=_0x452516;this[_0x298d8e(0x3a7)]=new _0x528009[(_0x298d8e(0x318))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x491d45,_0x5f3b54){const _0x4187c7=_0x452516;for(var _0x726d2b=0x0;_0x726d2b<0x10;_0x726d2b++){var _0x3f488c=_0x5f3b54+_0x726d2b,_0x134b78=_0x491d45[_0x3f488c];_0x491d45[_0x3f488c]=(_0x134b78<<0x8|_0x134b78>>>0x18)&0xff00ff|(_0x134b78<<0x18|_0x134b78>>>0x8)&0xff00ff00;}var _0xb0568c=this[_0x4187c7(0x3a7)][_0x4187c7(0x39a)],_0x518f95=_0x491d45[_0x5f3b54+0x0],_0x42a5af=_0x491d45[_0x5f3b54+0x1],_0x3d6de9=_0x491d45[_0x5f3b54+0x2],_0x54602b=_0x491d45[_0x5f3b54+0x3],_0x264431=_0x491d45[_0x5f3b54+0x4],_0x42e2f3=_0x491d45[_0x5f3b54+0x5],_0x262ef7=_0x491d45[_0x5f3b54+0x6],_0x1e5bbd=_0x491d45[_0x5f3b54+0x7],_0x930fb7=_0x491d45[_0x5f3b54+0x8],_0x2bfd61=_0x491d45[_0x5f3b54+0x9],_0x192661=_0x491d45[_0x5f3b54+0xa],_0x5e8dbf=_0x491d45[_0x5f3b54+0xb],_0x56c3be=_0x491d45[_0x5f3b54+0xc],_0x18fff2=_0x491d45[_0x5f3b54+0xd],_0x49ec9e=_0x491d45[_0x5f3b54+0xe],_0x256790=_0x491d45[_0x5f3b54+0xf],_0x5a45e2=_0xb0568c[0x0],_0x367ef5=_0xb0568c[0x1],_0x201b62=_0xb0568c[0x2],_0x1944ac=_0xb0568c[0x3];_0x5a45e2=_0x59e55e(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x518f95,0x7,_0xbe5c05[0x0]),_0x1944ac=_0x59e55e(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x42a5af,0xc,_0xbe5c05[0x1]),_0x201b62=_0x59e55e(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x3d6de9,0x11,_0xbe5c05[0x2]),_0x367ef5=_0x59e55e(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x54602b,0x16,_0xbe5c05[0x3]),_0x5a45e2=_0x59e55e(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x264431,0x7,_0xbe5c05[0x4]),_0x1944ac=_0x59e55e(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x42e2f3,0xc,_0xbe5c05[0x5]),_0x201b62=_0x59e55e(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x262ef7,0x11,_0xbe5c05[0x6]),_0x367ef5=_0x59e55e(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x1e5bbd,0x16,_0xbe5c05[0x7]),_0x5a45e2=_0x59e55e(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x930fb7,0x7,_0xbe5c05[0x8]),_0x1944ac=_0x59e55e(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x2bfd61,0xc,_0xbe5c05[0x9]),_0x201b62=_0x59e55e(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x192661,0x11,_0xbe5c05[0xa]),_0x367ef5=_0x59e55e(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x5e8dbf,0x16,_0xbe5c05[0xb]),_0x5a45e2=_0x59e55e(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x56c3be,0x7,_0xbe5c05[0xc]),_0x1944ac=_0x59e55e(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x18fff2,0xc,_0xbe5c05[0xd]),_0x201b62=_0x59e55e(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x49ec9e,0x11,_0xbe5c05[0xe]),_0x367ef5=_0x59e55e(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x256790,0x16,_0xbe5c05[0xf]),_0x5a45e2=_0x5d8280(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x42a5af,0x5,_0xbe5c05[0x10]),_0x1944ac=_0x5d8280(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x262ef7,0x9,_0xbe5c05[0x11]),_0x201b62=_0x5d8280(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x5e8dbf,0xe,_0xbe5c05[0x12]),_0x367ef5=_0x5d8280(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x518f95,0x14,_0xbe5c05[0x13]),_0x5a45e2=_0x5d8280(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x42e2f3,0x5,_0xbe5c05[0x14]),_0x1944ac=_0x5d8280(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x192661,0x9,_0xbe5c05[0x15]),_0x201b62=_0x5d8280(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x256790,0xe,_0xbe5c05[0x16]),_0x367ef5=_0x5d8280(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x264431,0x14,_0xbe5c05[0x17]),_0x5a45e2=_0x5d8280(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x2bfd61,0x5,_0xbe5c05[0x18]),_0x1944ac=_0x5d8280(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x49ec9e,0x9,_0xbe5c05[0x19]),_0x201b62=_0x5d8280(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x54602b,0xe,_0xbe5c05[0x1a]),_0x367ef5=_0x5d8280(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x930fb7,0x14,_0xbe5c05[0x1b]),_0x5a45e2=_0x5d8280(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x18fff2,0x5,_0xbe5c05[0x1c]),_0x1944ac=_0x5d8280(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x3d6de9,0x9,_0xbe5c05[0x1d]),_0x201b62=_0x5d8280(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x1e5bbd,0xe,_0xbe5c05[0x1e]),_0x367ef5=_0x5d8280(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x56c3be,0x14,_0xbe5c05[0x1f]),_0x5a45e2=_0x10f705(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x42e2f3,0x4,_0xbe5c05[0x20]),_0x1944ac=_0x10f705(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x930fb7,0xb,_0xbe5c05[0x21]),_0x201b62=_0x10f705(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x5e8dbf,0x10,_0xbe5c05[0x22]),_0x367ef5=_0x10f705(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x49ec9e,0x17,_0xbe5c05[0x23]),_0x5a45e2=_0x10f705(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x42a5af,0x4,_0xbe5c05[0x24]),_0x1944ac=_0x10f705(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x264431,0xb,_0xbe5c05[0x25]),_0x201b62=_0x10f705(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x1e5bbd,0x10,_0xbe5c05[0x26]),_0x367ef5=_0x10f705(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x192661,0x17,_0xbe5c05[0x27]),_0x5a45e2=_0x10f705(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x18fff2,0x4,_0xbe5c05[0x28]),_0x1944ac=_0x10f705(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x518f95,0xb,_0xbe5c05[0x29]),_0x201b62=_0x10f705(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x54602b,0x10,_0xbe5c05[0x2a]),_0x367ef5=_0x10f705(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x262ef7,0x17,_0xbe5c05[0x2b]),_0x5a45e2=_0x10f705(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x2bfd61,0x4,_0xbe5c05[0x2c]),_0x1944ac=_0x10f705(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x56c3be,0xb,_0xbe5c05[0x2d]),_0x201b62=_0x10f705(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x256790,0x10,_0xbe5c05[0x2e]),_0x367ef5=_0x10f705(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x3d6de9,0x17,_0xbe5c05[0x2f]),_0x5a45e2=_0x314639(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x518f95,0x6,_0xbe5c05[0x30]),_0x1944ac=_0x314639(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x1e5bbd,0xa,_0xbe5c05[0x31]),_0x201b62=_0x314639(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x49ec9e,0xf,_0xbe5c05[0x32]),_0x367ef5=_0x314639(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x42e2f3,0x15,_0xbe5c05[0x33]),_0x5a45e2=_0x314639(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x56c3be,0x6,_0xbe5c05[0x34]),_0x1944ac=_0x314639(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x54602b,0xa,_0xbe5c05[0x35]),_0x201b62=_0x314639(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x192661,0xf,_0xbe5c05[0x36]),_0x367ef5=_0x314639(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x42a5af,0x15,_0xbe5c05[0x37]),_0x5a45e2=_0x314639(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x930fb7,0x6,_0xbe5c05[0x38]),_0x1944ac=_0x314639(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x256790,0xa,_0xbe5c05[0x39]),_0x201b62=_0x314639(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x262ef7,0xf,_0xbe5c05[0x3a]),_0x367ef5=_0x314639(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x18fff2,0x15,_0xbe5c05[0x3b]),_0x5a45e2=_0x314639(_0x5a45e2,_0x367ef5,_0x201b62,_0x1944ac,_0x264431,0x6,_0xbe5c05[0x3c]),_0x1944ac=_0x314639(_0x1944ac,_0x5a45e2,_0x367ef5,_0x201b62,_0x5e8dbf,0xa,_0xbe5c05[0x3d]),_0x201b62=_0x314639(_0x201b62,_0x1944ac,_0x5a45e2,_0x367ef5,_0x3d6de9,0xf,_0xbe5c05[0x3e]),_0x367ef5=_0x314639(_0x367ef5,_0x201b62,_0x1944ac,_0x5a45e2,_0x2bfd61,0x15,_0xbe5c05[0x3f]),_0xb0568c[0x0]=_0xb0568c[0x0]+_0x5a45e2|0x0,_0xb0568c[0x1]=_0xb0568c[0x1]+_0x367ef5|0x0,_0xb0568c[0x2]=_0xb0568c[0x2]+_0x201b62|0x0,_0xb0568c[0x3]=_0xb0568c[0x3]+_0x1944ac|0x0;},'_doFinalize':function(){const _0x4a7970=_0x452516;var _0x133a2c=this[_0x4a7970(0x20d)],_0x28bfb0=_0x133a2c['words'],_0x58f814=this['_nDataBytes']*0x8,_0x3d11e7=_0x133a2c[_0x4a7970(0x26a)]*0x8;_0x28bfb0[_0x3d11e7>>>0x5]|=0x80<<0x18-_0x3d11e7%0x20;var _0x19198b=_0x5f120f[_0x4a7970(0x393)](_0x58f814/0x100000000),_0x2b246a=_0x58f814;_0x28bfb0[(_0x3d11e7+0x40>>>0x9<<0x4)+0xf]=(_0x19198b<<0x8|_0x19198b>>>0x18)&0xff00ff|(_0x19198b<<0x18|_0x19198b>>>0x8)&0xff00ff00,_0x28bfb0[(_0x3d11e7+0x40>>>0x9<<0x4)+0xe]=(_0x2b246a<<0x8|_0x2b246a>>>0x18)&0xff00ff|(_0x2b246a<<0x18|_0x2b246a>>>0x8)&0xff00ff00,_0x133a2c[_0x4a7970(0x26a)]=(_0x28bfb0[_0x4a7970(0x3e5)]+0x1)*0x4,this[_0x4a7970(0x330)]();for(var _0x3a3a2e=this['_hash'],_0x3b766a=_0x3a3a2e[_0x4a7970(0x39a)],_0x1b4be1=0x0;_0x1b4be1<0x4;_0x1b4be1++){var _0x5999fa=_0x3b766a[_0x1b4be1];_0x3b766a[_0x1b4be1]=(_0x5999fa<<0x8|_0x5999fa>>>0x18)&0xff00ff|(_0x5999fa<<0x18|_0x5999fa>>>0x8)&0xff00ff00;}return _0x3a3a2e;},'clone':function(){const _0x330225=_0x452516;var _0x445b1d=_0x2f4245[_0x330225(0x1f1)][_0x330225(0x45a)](this);return _0x445b1d[_0x330225(0x3a7)]=this[_0x330225(0x3a7)][_0x330225(0x1f1)](),_0x445b1d;}});function _0x59e55e(_0x57894b,_0xb9f2c0,_0x2098d3,_0x3e80ef,_0x4469a6,_0x2af328,_0xf865d7){var _0x3c91f1=_0x57894b+(_0xb9f2c0&_0x2098d3|~_0xb9f2c0&_0x3e80ef)+_0x4469a6+_0xf865d7;return(_0x3c91f1<<_0x2af328|_0x3c91f1>>>0x20-_0x2af328)+_0xb9f2c0;}function _0x5d8280(_0xfddf98,_0x6a9a28,_0x53b032,_0x85bc33,_0x1eb88f,_0x4df9f0,_0x17cd93){var _0x3ac5eb=_0xfddf98+(_0x6a9a28&_0x85bc33|_0x53b032&~_0x85bc33)+_0x1eb88f+_0x17cd93;return(_0x3ac5eb<<_0x4df9f0|_0x3ac5eb>>>0x20-_0x4df9f0)+_0x6a9a28;}function _0x10f705(_0x1284a9,_0x43ddda,_0x192da9,_0x4ccacc,_0xd5373f,_0x593ade,_0x8163c){var _0x421382=_0x1284a9+(_0x43ddda^_0x192da9^_0x4ccacc)+_0xd5373f+_0x8163c;return(_0x421382<<_0x593ade|_0x421382>>>0x20-_0x593ade)+_0x43ddda;}function _0x314639(_0x4b8ae7,_0x320859,_0xd911fc,_0x46bbbb,_0x4bc974,_0x566bc6,_0xb1a9a2){var _0x1fa844=_0x4b8ae7+(_0xd911fc^(_0x320859|~_0x46bbbb))+_0x4bc974+_0xb1a9a2;return(_0x1fa844<<_0x566bc6|_0x1fa844>>>0x20-_0x566bc6)+_0x320859;}_0x1ed7af[_0x452516(0x2a5)]=_0x2f4245['_createHelper'](_0x52f7f1),_0x1ed7af[_0x452516(0xc1)]=_0x2f4245[_0x452516(0x3d5)](_0x52f7f1);}(Math),_0x34fcd4[_0x208960(0x2a5)];}));}(Gt)),Gt['exports'];}var Yt={'exports':{}},Kt={'exports':{}},Qs;function ja(){return Qs||(Qs=0x1,function(_0x4782b0,_0x284c6f){(function(_0x4bb7c6,_0xd512ed){_0x4782b0['exports']=_0xd512ed(ue());}(Z,function(_0x469976){const _0x44751f=_0x4457;return(function(){const _0x7733d4=_0x4457;var _0x1baee7=_0x469976,_0x436d47=_0x1baee7['lib'],_0x5aa0ab=_0x436d47[_0x7733d4(0x1c2)],_0x5931b7=_0x436d47[_0x7733d4(0x270)],_0xa3b9c8=_0x1baee7[_0x7733d4(0x2ff)],_0x5e531b=[],_0x2d49f1=_0xa3b9c8[_0x7733d4(0x1d4)]=_0x5931b7[_0x7733d4(0x392)]({'_doReset':function(){const _0x4d3e1d=_0x7733d4;this[_0x4d3e1d(0x3a7)]=new _0x5aa0ab[(_0x4d3e1d(0x318))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x57e5c5,_0x50a80c){const _0x30f407=_0x7733d4;for(var _0x2e2975=this[_0x30f407(0x3a7)][_0x30f407(0x39a)],_0x362267=_0x2e2975[0x0],_0xb5130c=_0x2e2975[0x1],_0x2e39d5=_0x2e2975[0x2],_0x3f5848=_0x2e2975[0x3],_0x4f9ffc=_0x2e2975[0x4],_0xd58b06=0x0;_0xd58b06<0x50;_0xd58b06++){if(_0xd58b06<0x10)_0x5e531b[_0xd58b06]=_0x57e5c5[_0x50a80c+_0xd58b06]|0x0;else{var _0x20b6b1=_0x5e531b[_0xd58b06-0x3]^_0x5e531b[_0xd58b06-0x8]^_0x5e531b[_0xd58b06-0xe]^_0x5e531b[_0xd58b06-0x10];_0x5e531b[_0xd58b06]=_0x20b6b1<<0x1|_0x20b6b1>>>0x1f;}var _0x18e9a3=(_0x362267<<0x5|_0x362267>>>0x1b)+_0x4f9ffc+_0x5e531b[_0xd58b06];_0xd58b06<0x14?_0x18e9a3+=(_0xb5130c&_0x2e39d5|~_0xb5130c&_0x3f5848)+0x5a827999:_0xd58b06<0x28?_0x18e9a3+=(_0xb5130c^_0x2e39d5^_0x3f5848)+0x6ed9eba1:_0xd58b06<0x3c?_0x18e9a3+=(_0xb5130c&_0x2e39d5|_0xb5130c&_0x3f5848|_0x2e39d5&_0x3f5848)-0x70e44324:_0x18e9a3+=(_0xb5130c^_0x2e39d5^_0x3f5848)-0x359d3e2a,_0x4f9ffc=_0x3f5848,_0x3f5848=_0x2e39d5,_0x2e39d5=_0xb5130c<<0x1e|_0xb5130c>>>0x2,_0xb5130c=_0x362267,_0x362267=_0x18e9a3;}_0x2e2975[0x0]=_0x2e2975[0x0]+_0x362267|0x0,_0x2e2975[0x1]=_0x2e2975[0x1]+_0xb5130c|0x0,_0x2e2975[0x2]=_0x2e2975[0x2]+_0x2e39d5|0x0,_0x2e2975[0x3]=_0x2e2975[0x3]+_0x3f5848|0x0,_0x2e2975[0x4]=_0x2e2975[0x4]+_0x4f9ffc|0x0;},'_doFinalize':function(){const _0x2f3e9e=_0x7733d4;var _0x58dda5=this['_data'],_0x43e55b=_0x58dda5[_0x2f3e9e(0x39a)],_0x4fef82=this[_0x2f3e9e(0x2c2)]*0x8,_0x49be94=_0x58dda5[_0x2f3e9e(0x26a)]*0x8;return _0x43e55b[_0x49be94>>>0x5]|=0x80<<0x18-_0x49be94%0x20,_0x43e55b[(_0x49be94+0x40>>>0x9<<0x4)+0xe]=Math['floor'](_0x4fef82/0x100000000),_0x43e55b[(_0x49be94+0x40>>>0x9<<0x4)+0xf]=_0x4fef82,_0x58dda5[_0x2f3e9e(0x26a)]=_0x43e55b[_0x2f3e9e(0x3e5)]*0x4,this[_0x2f3e9e(0x330)](),this[_0x2f3e9e(0x3a7)];},'clone':function(){const _0x136769=_0x7733d4;var _0x2e1178=_0x5931b7[_0x136769(0x1f1)][_0x136769(0x45a)](this);return _0x2e1178['_hash']=this['_hash'][_0x136769(0x1f1)](),_0x2e1178;}});_0x1baee7[_0x7733d4(0x1d4)]=_0x5931b7[_0x7733d4(0x417)](_0x2d49f1),_0x1baee7[_0x7733d4(0x246)]=_0x5931b7['_createHmacHelper'](_0x2d49f1);}()),_0x469976[_0x44751f(0x1d4)];}));}(Kt)),Kt['exports'];}var zt={'exports':{}},ei;function Ba(){const _0x5797d4=_0x159fb9;return ei||(ei=0x1,function(_0x35bf3a,_0x590ce9){(function(_0x2ea9b4,_0x507eca){const _0x4075d2=_0x4457;_0x35bf3a[_0x4075d2(0x10c)]=_0x507eca(ue());}(Z,function(_0x11ea92){(function(){const _0xc2527d=_0x4457;var _0x184b01=_0x11ea92,_0x620372=_0x184b01['lib'],_0xdabd05=_0x620372[_0xc2527d(0x3a8)],_0x2ab1f5=_0x184b01[_0xc2527d(0x38a)],_0x571e46=_0x2ab1f5[_0xc2527d(0x220)],_0x41843a=_0x184b01['algo'];_0x41843a['HMAC']=_0xdabd05[_0xc2527d(0x392)]({'init':function(_0xaf783e,_0x421197){const _0x2adf09=_0xc2527d;_0xaf783e=this['_hasher']=new _0xaf783e[(_0x2adf09(0x318))](),typeof _0x421197==_0x2adf09(0xde)&&(_0x421197=_0x571e46[_0x2adf09(0x3c4)](_0x421197));var _0x29f25e=_0xaf783e['blockSize'],_0x1e1a18=_0x29f25e*0x4;_0x421197['sigBytes']>_0x1e1a18&&(_0x421197=_0xaf783e[_0x2adf09(0x202)](_0x421197)),_0x421197[_0x2adf09(0x224)]();for(var _0x391dc6=this[_0x2adf09(0x29d)]=_0x421197[_0x2adf09(0x1f1)](),_0x51c69f=this['_iKey']=_0x421197[_0x2adf09(0x1f1)](),_0x2cec1b=_0x391dc6[_0x2adf09(0x39a)],_0x184b99=_0x51c69f[_0x2adf09(0x39a)],_0x2ae87b=0x0;_0x2ae87b<_0x29f25e;_0x2ae87b++)_0x2cec1b[_0x2ae87b]^=0x5c5c5c5c,_0x184b99[_0x2ae87b]^=0x36363636;_0x391dc6[_0x2adf09(0x26a)]=_0x51c69f['sigBytes']=_0x1e1a18,this[_0x2adf09(0x48a)]();},'reset':function(){const _0x19e038=_0xc2527d;var _0x3cb17a=this[_0x19e038(0x350)];_0x3cb17a[_0x19e038(0x48a)](),_0x3cb17a[_0x19e038(0x4af)](this[_0x19e038(0x49c)]);},'update':function(_0x5c95ae){const _0x244664=_0xc2527d;return this[_0x244664(0x350)][_0x244664(0x4af)](_0x5c95ae),this;},'finalize':function(_0x168f29){const _0x486866=_0xc2527d;var _0x5d7585=this[_0x486866(0x350)],_0x485a06=_0x5d7585[_0x486866(0x202)](_0x168f29);_0x5d7585['reset']();var _0x2ae0fb=_0x5d7585[_0x486866(0x202)](this[_0x486866(0x29d)][_0x486866(0x1f1)]()[_0x486866(0x1d2)](_0x485a06));return _0x2ae0fb;}});}());}));}(zt)),zt[_0x5797d4(0x10c)];}function _0x4457(_0x499342,_0x478657){const _0x60b8f5=_0x60b8();return _0x4457=function(_0x4457b7,_0x45c05f){_0x4457b7=_0x4457b7-0xab;let _0x57278d=_0x60b8f5[_0x4457b7];return _0x57278d;},_0x4457(_0x499342,_0x478657);}var ti;function ki(){return ti||(ti=0x1,function(_0x3c3478,_0x5c1852){(function(_0x572ce2,_0x2f20a7,_0x2e83a5){const _0x4871fc=_0x4457;_0x3c3478[_0x4871fc(0x10c)]=_0x2f20a7(ue(),ja(),Ba());}(Z,function(_0x28407b){return(function(){const _0x2c22dd=_0x4457;var _0x5ac01a=_0x28407b,_0x2b8bb2=_0x5ac01a[_0x2c22dd(0x1fa)],_0x3096bf=_0x2b8bb2[_0x2c22dd(0x3a8)],_0x143e97=_0x2b8bb2[_0x2c22dd(0x1c2)],_0x2fa53=_0x5ac01a[_0x2c22dd(0x2ff)],_0xc47dba=_0x2fa53[_0x2c22dd(0x2a5)],_0x5a78af=_0x2fa53[_0x2c22dd(0x21b)]=_0x3096bf[_0x2c22dd(0x392)]({'cfg':_0x3096bf[_0x2c22dd(0x392)]({'keySize':0x80/0x20,'hasher':_0xc47dba,'iterations':0x1}),'init':function(_0x392c59){const _0x2ff27a=_0x2c22dd;this[_0x2ff27a(0x3b6)]=this[_0x2ff27a(0x3b6)]['extend'](_0x392c59);},'compute':function(_0x2cafcd,_0x493020){const _0x2e7276=_0x2c22dd;for(var _0x49918d,_0x5f518c=this[_0x2e7276(0x3b6)],_0x57778f=_0x5f518c[_0x2e7276(0x193)][_0x2e7276(0x45b)](),_0x4e114b=_0x143e97[_0x2e7276(0x45b)](),_0x35de41=_0x4e114b[_0x2e7276(0x39a)],_0x1bbda8=_0x5f518c[_0x2e7276(0x450)],_0x22ec01=_0x5f518c[_0x2e7276(0x2c5)];_0x35de41[_0x2e7276(0x3e5)]<_0x1bbda8;){_0x49918d&&_0x57778f['update'](_0x49918d),_0x49918d=_0x57778f[_0x2e7276(0x4af)](_0x2cafcd)[_0x2e7276(0x202)](_0x493020),_0x57778f[_0x2e7276(0x48a)]();for(var _0x2bf984=0x1;_0x2bf984<_0x22ec01;_0x2bf984++)_0x49918d=_0x57778f['finalize'](_0x49918d),_0x57778f['reset']();_0x4e114b[_0x2e7276(0x1d2)](_0x49918d);}return _0x4e114b[_0x2e7276(0x26a)]=_0x1bbda8*0x4,_0x4e114b;}});_0x5ac01a[_0x2c22dd(0x21b)]=function(_0x4515a8,_0x2c84cc,_0x5c2009){const _0x5a79b9=_0x2c22dd;return _0x5a78af['create'](_0x5c2009)[_0x5a79b9(0x1e4)](_0x4515a8,_0x2c84cc);};}()),_0x28407b['EvpKDF'];}));}(Yt)),Yt['exports'];}var qt={'exports':{}},si;function Wi(){const _0x11f1c2=_0x159fb9;return si||(si=0x1,function(_0x7c52e5,_0x4bb515){(function(_0x6409c9,_0x25976f,_0x2e8f35){_0x7c52e5['exports']=_0x25976f(ue(),ki());}(Z,function(_0x1810c2){const _0x32b751=_0x4457;_0x1810c2[_0x32b751(0x1fa)]['Cipher']||function(_0x365368){const _0x4c97a4=_0x32b751;var _0x1f8082=_0x1810c2,_0xf9ddeb=_0x1f8082[_0x4c97a4(0x1fa)],_0x57de07=_0xf9ddeb['Base'],_0x4b3871=_0xf9ddeb['WordArray'],_0x1cfaaa=_0xf9ddeb['BufferedBlockAlgorithm'],_0x14a76c=_0x1f8082['enc'];_0x14a76c[_0x4c97a4(0x220)];var _0xb281e=_0x14a76c[_0x4c97a4(0x164)],_0x5ec64a=_0x1f8082['algo'],_0x2a58b0=_0x5ec64a[_0x4c97a4(0x21b)],_0x16d907=_0xf9ddeb[_0x4c97a4(0x125)]=_0x1cfaaa[_0x4c97a4(0x392)]({'cfg':_0x57de07[_0x4c97a4(0x392)](),'createEncryptor':function(_0x5e6034,_0x176d0a){const _0x21eda8=_0x4c97a4;return this['create'](this[_0x21eda8(0x30f)],_0x5e6034,_0x176d0a);},'createDecryptor':function(_0x5a5a10,_0x515868){const _0x124da9=_0x4c97a4;return this[_0x124da9(0x45b)](this[_0x124da9(0x455)],_0x5a5a10,_0x515868);},'init':function(_0x3cd042,_0x1b0074,_0x586996){const _0x1a5432=_0x4c97a4;this[_0x1a5432(0x3b6)]=this['cfg'][_0x1a5432(0x392)](_0x586996),this['_xformMode']=_0x3cd042,this[_0x1a5432(0x117)]=_0x1b0074,this[_0x1a5432(0x48a)]();},'reset':function(){const _0x4fd538=_0x4c97a4;_0x1cfaaa[_0x4fd538(0x48a)][_0x4fd538(0x45a)](this),this[_0x4fd538(0x278)]();},'process':function(_0x8a233e){const _0x34ec5d=_0x4c97a4;return this[_0x34ec5d(0x3fa)](_0x8a233e),this[_0x34ec5d(0x330)]();},'finalize':function(_0x5e007e){const _0x3a816c=_0x4c97a4;_0x5e007e&&this['_append'](_0x5e007e);var _0x4b937b=this[_0x3a816c(0x3ef)]();return _0x4b937b;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x1239f2(_0x31a41d){const _0x4cc39e=_0x4457;return typeof _0x31a41d==_0x4cc39e(0xde)?_0x11d46d:_0x138b9f;}return function(_0x40c30e){return{'encrypt':function(_0x47fb6e,_0x5eac80,_0x42b317){return _0x1239f2(_0x5eac80)['encrypt'](_0x40c30e,_0x47fb6e,_0x5eac80,_0x42b317);},'decrypt':function(_0x2b42a0,_0x19ca24,_0x25fe0b){const _0x20701e=_0x4457;return _0x1239f2(_0x19ca24)[_0x20701e(0x40e)](_0x40c30e,_0x2b42a0,_0x19ca24,_0x25fe0b);}};};}())});_0xf9ddeb[_0x4c97a4(0x18e)]=_0x16d907[_0x4c97a4(0x392)]({'_doFinalize':function(){const _0x49a89c=_0x4c97a4;var _0x197a41=this[_0x49a89c(0x330)](!0x0);return _0x197a41;},'blockSize':0x1});var _0x571208=_0x1f8082[_0x4c97a4(0x106)]={},_0x3e0a0a=_0xf9ddeb[_0x4c97a4(0x2d9)]=_0x57de07[_0x4c97a4(0x392)]({'createEncryptor':function(_0x31a479,_0x13ab99){const _0x2a7776=_0x4c97a4;return this[_0x2a7776(0x40d)][_0x2a7776(0x45b)](_0x31a479,_0x13ab99);},'createDecryptor':function(_0x3fc6e0,_0x26cc5d){const _0x267523=_0x4c97a4;return this[_0x267523(0x1a6)][_0x267523(0x45b)](_0x3fc6e0,_0x26cc5d);},'init':function(_0x144904,_0x528429){const _0x200850=_0x4c97a4;this[_0x200850(0xc3)]=_0x144904,this[_0x200850(0x34a)]=_0x528429;}}),_0x3f34a8=_0x571208[_0x4c97a4(0x104)]=(function(){const _0x43cdda=_0x4c97a4;var _0x4d176c=_0x3e0a0a[_0x43cdda(0x392)]();_0x4d176c[_0x43cdda(0x40d)]=_0x4d176c['extend']({'processBlock':function(_0xa6d81e,_0x1deef4){const _0x3784e4=_0x43cdda;var _0x56597e=this[_0x3784e4(0xc3)],_0x37e0a5=_0x56597e[_0x3784e4(0xc4)];_0xc3b64b[_0x3784e4(0x45a)](this,_0xa6d81e,_0x1deef4,_0x37e0a5),_0x56597e[_0x3784e4(0xf5)](_0xa6d81e,_0x1deef4),this[_0x3784e4(0x30c)]=_0xa6d81e[_0x3784e4(0x438)](_0x1deef4,_0x1deef4+_0x37e0a5);}}),_0x4d176c[_0x43cdda(0x1a6)]=_0x4d176c[_0x43cdda(0x392)]({'processBlock':function(_0x48c4fb,_0x503755){const _0x19dca4=_0x43cdda;var _0x1c4050=this[_0x19dca4(0xc3)],_0x612fca=_0x1c4050['blockSize'],_0x314d3b=_0x48c4fb[_0x19dca4(0x438)](_0x503755,_0x503755+_0x612fca);_0x1c4050['decryptBlock'](_0x48c4fb,_0x503755),_0xc3b64b[_0x19dca4(0x45a)](this,_0x48c4fb,_0x503755,_0x612fca),this['_prevBlock']=_0x314d3b;}});function _0xc3b64b(_0x1fbe2e,_0x55f349,_0x4fc6bf){const _0x351123=_0x43cdda;var _0x5bd1fb,_0x5adee0=this[_0x351123(0x34a)];_0x5adee0?(_0x5bd1fb=_0x5adee0,this[_0x351123(0x34a)]=_0x365368):_0x5bd1fb=this['_prevBlock'];for(var _0xf7bc84=0x0;_0xf7bc84<_0x4fc6bf;_0xf7bc84++)_0x1fbe2e[_0x55f349+_0xf7bc84]^=_0x5bd1fb[_0xf7bc84];}return _0x4d176c;}()),_0x362168=_0x1f8082[_0x4c97a4(0xbd)]={},_0x3f7eeb=_0x362168[_0x4c97a4(0x2ea)]={'pad':function(_0x1780d1,_0x50c926){const _0x3c62de=_0x4c97a4;for(var _0x3afa05=_0x50c926*0x4,_0x331936=_0x3afa05-_0x1780d1[_0x3c62de(0x26a)]%_0x3afa05,_0x567abb=_0x331936<<0x18|_0x331936<<0x10|_0x331936<<0x8|_0x331936,_0x547c88=[],_0x494fb5=0x0;_0x494fb5<_0x331936;_0x494fb5+=0x4)_0x547c88[_0x3c62de(0x3c8)](_0x567abb);var _0xe8a81f=_0x4b3871['create'](_0x547c88,_0x331936);_0x1780d1[_0x3c62de(0x1d2)](_0xe8a81f);},'unpad':function(_0x2be1e3){const _0xdf6880=_0x4c97a4;var _0x9ae894=_0x2be1e3[_0xdf6880(0x39a)][_0x2be1e3[_0xdf6880(0x26a)]-0x1>>>0x2]&0xff;_0x2be1e3[_0xdf6880(0x26a)]-=_0x9ae894;}};_0xf9ddeb['BlockCipher']=_0x16d907[_0x4c97a4(0x392)]({'cfg':_0x16d907[_0x4c97a4(0x3b6)][_0x4c97a4(0x392)]({'mode':_0x3f34a8,'padding':_0x3f7eeb}),'reset':function(){const _0x4dcb01=_0x4c97a4;var _0x2e74be;_0x16d907[_0x4dcb01(0x48a)][_0x4dcb01(0x45a)](this);var _0x1d6625=this[_0x4dcb01(0x3b6)],_0x1a57bb=_0x1d6625['iv'],_0x53c253=_0x1d6625['mode'];this[_0x4dcb01(0x1d0)]==this[_0x4dcb01(0x30f)]?_0x2e74be=_0x53c253[_0x4dcb01(0x2af)]:(_0x2e74be=_0x53c253[_0x4dcb01(0x231)],this[_0x4dcb01(0x2df)]=0x1),this[_0x4dcb01(0x11a)]&&this[_0x4dcb01(0x11a)]['__creator']==_0x2e74be?this[_0x4dcb01(0x11a)][_0x4dcb01(0x318)](this,_0x1a57bb&&_0x1a57bb['words']):(this[_0x4dcb01(0x11a)]=_0x2e74be[_0x4dcb01(0x45a)](_0x53c253,this,_0x1a57bb&&_0x1a57bb['words']),this[_0x4dcb01(0x11a)][_0x4dcb01(0x412)]=_0x2e74be);},'_doProcessBlock':function(_0x148864,_0x340556){this['_mode']['processBlock'](_0x148864,_0x340556);},'_doFinalize':function(){const _0x359aba=_0x4c97a4;var _0x213618,_0x4c83f6=this[_0x359aba(0x3b6)][_0x359aba(0x37d)];return this['_xformMode']==this['_ENC_XFORM_MODE']?(_0x4c83f6['pad'](this['_data'],this[_0x359aba(0xc4)]),_0x213618=this[_0x359aba(0x330)](!0x0)):(_0x213618=this[_0x359aba(0x330)](!0x0),_0x4c83f6[_0x359aba(0x34b)](_0x213618)),_0x213618;},'blockSize':0x80/0x20});var _0x60bb33=_0xf9ddeb[_0x4c97a4(0x39d)]=_0x57de07[_0x4c97a4(0x392)]({'init':function(_0x1cc6da){const _0x5f16c6=_0x4c97a4;this[_0x5f16c6(0x38f)](_0x1cc6da);},'toString':function(_0x561623){return(_0x561623||this['formatter'])['stringify'](this);}}),_0x20c69a=_0x1f8082[_0x4c97a4(0x41d)]={},_0xf1ed2f=_0x20c69a[_0x4c97a4(0x1a2)]={'stringify':function(_0x3e8d9f){const _0x1bc173=_0x4c97a4;var _0xb90600,_0x2b5b95=_0x3e8d9f[_0x1bc173(0x212)],_0x13ca4c=_0x3e8d9f[_0x1bc173(0x2f2)];return _0x13ca4c?_0xb90600=_0x4b3871['create']([0x53616c74,0x65645f5f])[_0x1bc173(0x1d2)](_0x13ca4c)[_0x1bc173(0x1d2)](_0x2b5b95):_0xb90600=_0x2b5b95,_0xb90600[_0x1bc173(0xd7)](_0xb281e);},'parse':function(_0x1b3734){const _0x2301da=_0x4c97a4;var _0x2cf235,_0x54773d=_0xb281e['parse'](_0x1b3734),_0x6228fc=_0x54773d[_0x2301da(0x39a)];return _0x6228fc[0x0]==0x53616c74&&_0x6228fc[0x1]==0x65645f5f&&(_0x2cf235=_0x4b3871[_0x2301da(0x45b)](_0x6228fc[_0x2301da(0x438)](0x2,0x4)),_0x6228fc[_0x2301da(0x37b)](0x0,0x4),_0x54773d[_0x2301da(0x26a)]-=0x10),_0x60bb33[_0x2301da(0x45b)]({'ciphertext':_0x54773d,'salt':_0x2cf235});}},_0x138b9f=_0xf9ddeb['SerializableCipher']=_0x57de07[_0x4c97a4(0x392)]({'cfg':_0x57de07[_0x4c97a4(0x392)]({'format':_0xf1ed2f}),'encrypt':function(_0x21efae,_0x1b5c80,_0x15ad88,_0x568d93){const _0x35667b=_0x4c97a4;_0x568d93=this[_0x35667b(0x3b6)][_0x35667b(0x392)](_0x568d93);var _0x5df99d=_0x21efae['createEncryptor'](_0x15ad88,_0x568d93),_0x12eabb=_0x5df99d[_0x35667b(0x202)](_0x1b5c80),_0x29899d=_0x5df99d['cfg'];return _0x60bb33[_0x35667b(0x45b)]({'ciphertext':_0x12eabb,'key':_0x15ad88,'iv':_0x29899d['iv'],'algorithm':_0x21efae,'mode':_0x29899d[_0x35667b(0x106)],'padding':_0x29899d[_0x35667b(0x37d)],'blockSize':_0x21efae['blockSize'],'formatter':_0x568d93[_0x35667b(0x41d)]});},'decrypt':function(_0x524a15,_0x2b59d5,_0x2549c1,_0x3047a2){const _0x493b3d=_0x4c97a4;_0x3047a2=this[_0x493b3d(0x3b6)][_0x493b3d(0x392)](_0x3047a2),_0x2b59d5=this[_0x493b3d(0x3df)](_0x2b59d5,_0x3047a2[_0x493b3d(0x41d)]);var _0x2d6c92=_0x524a15['createDecryptor'](_0x2549c1,_0x3047a2)[_0x493b3d(0x202)](_0x2b59d5[_0x493b3d(0x212)]);return _0x2d6c92;},'_parse':function(_0x506318,_0x4f5667){const _0x46c214=_0x4c97a4;return typeof _0x506318=='string'?_0x4f5667[_0x46c214(0x3c4)](_0x506318,this):_0x506318;}}),_0x282664=_0x1f8082[_0x4c97a4(0x45e)]={},_0x582174=_0x282664['OpenSSL']={'execute':function(_0x4645a3,_0x1ed143,_0x1648be,_0x5ededf,_0x4caec5){const _0x5c7347=_0x4c97a4;if(_0x5ededf||(_0x5ededf=_0x4b3871[_0x5c7347(0x1d5)](0x40/0x8)),_0x4caec5)var _0xbbf6fc=_0x2a58b0[_0x5c7347(0x45b)]({'keySize':_0x1ed143+_0x1648be,'hasher':_0x4caec5})[_0x5c7347(0x1e4)](_0x4645a3,_0x5ededf);else var _0xbbf6fc=_0x2a58b0[_0x5c7347(0x45b)]({'keySize':_0x1ed143+_0x1648be})[_0x5c7347(0x1e4)](_0x4645a3,_0x5ededf);var _0x21914b=_0x4b3871['create'](_0xbbf6fc[_0x5c7347(0x39a)][_0x5c7347(0x438)](_0x1ed143),_0x1648be*0x4);return _0xbbf6fc[_0x5c7347(0x26a)]=_0x1ed143*0x4,_0x60bb33[_0x5c7347(0x45b)]({'key':_0xbbf6fc,'iv':_0x21914b,'salt':_0x5ededf});}},_0x11d46d=_0xf9ddeb[_0x4c97a4(0x1ab)]=_0x138b9f[_0x4c97a4(0x392)]({'cfg':_0x138b9f[_0x4c97a4(0x3b6)][_0x4c97a4(0x392)]({'kdf':_0x582174}),'encrypt':function(_0x18e349,_0x8292cf,_0x296a01,_0x34c511){const _0x21ca3f=_0x4c97a4;_0x34c511=this[_0x21ca3f(0x3b6)][_0x21ca3f(0x392)](_0x34c511);var _0x21a407=_0x34c511[_0x21ca3f(0x45e)][_0x21ca3f(0x323)](_0x296a01,_0x18e349[_0x21ca3f(0x450)],_0x18e349[_0x21ca3f(0xf2)],_0x34c511[_0x21ca3f(0x2f2)],_0x34c511['hasher']);_0x34c511['iv']=_0x21a407['iv'];var _0x4d1fe2=_0x138b9f[_0x21ca3f(0x391)][_0x21ca3f(0x45a)](this,_0x18e349,_0x8292cf,_0x21a407[_0x21ca3f(0x169)],_0x34c511);return _0x4d1fe2['mixIn'](_0x21a407),_0x4d1fe2;},'decrypt':function(_0x185593,_0x508977,_0x2e0c18,_0x4428d2){const _0x1fe761=_0x4c97a4;_0x4428d2=this[_0x1fe761(0x3b6)][_0x1fe761(0x392)](_0x4428d2),_0x508977=this[_0x1fe761(0x3df)](_0x508977,_0x4428d2['format']);var _0x3b5467=_0x4428d2[_0x1fe761(0x45e)][_0x1fe761(0x323)](_0x2e0c18,_0x185593['keySize'],_0x185593[_0x1fe761(0xf2)],_0x508977['salt'],_0x4428d2['hasher']);_0x4428d2['iv']=_0x3b5467['iv'];var _0x1efc94=_0x138b9f[_0x1fe761(0x40e)][_0x1fe761(0x45a)](this,_0x185593,_0x508977,_0x3b5467[_0x1fe761(0x169)],_0x4428d2);return _0x1efc94;}});}();}));}(qt)),qt[_0x11f1c2(0x10c)];}(function(_0x5b08e1,_0x387674){(function(_0x1735d3,_0x2beea8,_0x1147e8){const _0x36aaf8=_0x4457;_0x5b08e1[_0x36aaf8(0x10c)]=_0x2beea8(ue(),Bi(),Ha(),ki(),Wi());}(Z,function(_0x2bb3c4){const _0x4b699a=_0x4457;return(function(){const _0xf04f69=_0x4457;var _0x49e1af=_0x2bb3c4,_0x40181b=_0x49e1af[_0xf04f69(0x1fa)],_0x135449=_0x40181b[_0xf04f69(0x2d0)],_0x391cb7=_0x49e1af['algo'],_0x2ca9a2=[],_0x43b3d0=[],_0x519303=[],_0x428735=[],_0x1eeacf=[],_0x54fa3c=[],_0x5607f7=[],_0x558e0a=[],_0x478846=[],_0x2ab96b=[];(function(){for(var _0x370d25=[],_0xf7ec6e=0x0;_0xf7ec6e<0x100;_0xf7ec6e++)_0xf7ec6e<0x80?_0x370d25[_0xf7ec6e]=_0xf7ec6e<<0x1:_0x370d25[_0xf7ec6e]=_0xf7ec6e<<0x1^0x11b;for(var _0x221e33=0x0,_0x17c61c=0x0,_0xf7ec6e=0x0;_0xf7ec6e<0x100;_0xf7ec6e++){var _0x504714=_0x17c61c^_0x17c61c<<0x1^_0x17c61c<<0x2^_0x17c61c<<0x3^_0x17c61c<<0x4;_0x504714=_0x504714>>>0x8^_0x504714&0xff^0x63,_0x2ca9a2[_0x221e33]=_0x504714,_0x43b3d0[_0x504714]=_0x221e33;var _0x1d96b6=_0x370d25[_0x221e33],_0xe2de6a=_0x370d25[_0x1d96b6],_0x117e3e=_0x370d25[_0xe2de6a],_0x59e204=_0x370d25[_0x504714]*0x101^_0x504714*0x1010100;_0x519303[_0x221e33]=_0x59e204<<0x18|_0x59e204>>>0x8,_0x428735[_0x221e33]=_0x59e204<<0x10|_0x59e204>>>0x10,_0x1eeacf[_0x221e33]=_0x59e204<<0x8|_0x59e204>>>0x18,_0x54fa3c[_0x221e33]=_0x59e204;var _0x59e204=_0x117e3e*0x1010101^_0xe2de6a*0x10001^_0x1d96b6*0x101^_0x221e33*0x1010100;_0x5607f7[_0x504714]=_0x59e204<<0x18|_0x59e204>>>0x8,_0x558e0a[_0x504714]=_0x59e204<<0x10|_0x59e204>>>0x10,_0x478846[_0x504714]=_0x59e204<<0x8|_0x59e204>>>0x18,_0x2ab96b[_0x504714]=_0x59e204,_0x221e33?(_0x221e33=_0x1d96b6^_0x370d25[_0x370d25[_0x370d25[_0x117e3e^_0x1d96b6]]],_0x17c61c^=_0x370d25[_0x370d25[_0x17c61c]]):_0x221e33=_0x17c61c=0x1;}}());var _0x472122=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x4f617f=_0x391cb7['AES']=_0x135449[_0xf04f69(0x392)]({'_doReset':function(){const _0x32595f=_0xf04f69;var _0x2eead3;if(!(this[_0x32595f(0x248)]&&this[_0x32595f(0x316)]===this[_0x32595f(0x117)])){for(var _0x40b9bf=this[_0x32595f(0x316)]=this[_0x32595f(0x117)],_0xa6d7a3=_0x40b9bf[_0x32595f(0x39a)],_0x5017b1=_0x40b9bf[_0x32595f(0x26a)]/0x4,_0x43612a=this[_0x32595f(0x248)]=_0x5017b1+0x6,_0x41593b=(_0x43612a+0x1)*0x4,_0x44431d=this[_0x32595f(0xfa)]=[],_0x5a5d5d=0x0;_0x5a5d5d<_0x41593b;_0x5a5d5d++)_0x5a5d5d<_0x5017b1?_0x44431d[_0x5a5d5d]=_0xa6d7a3[_0x5a5d5d]:(_0x2eead3=_0x44431d[_0x5a5d5d-0x1],_0x5a5d5d%_0x5017b1?_0x5017b1>0x6&&_0x5a5d5d%_0x5017b1==0x4&&(_0x2eead3=_0x2ca9a2[_0x2eead3>>>0x18]<<0x18|_0x2ca9a2[_0x2eead3>>>0x10&0xff]<<0x10|_0x2ca9a2[_0x2eead3>>>0x8&0xff]<<0x8|_0x2ca9a2[_0x2eead3&0xff]):(_0x2eead3=_0x2eead3<<0x8|_0x2eead3>>>0x18,_0x2eead3=_0x2ca9a2[_0x2eead3>>>0x18]<<0x18|_0x2ca9a2[_0x2eead3>>>0x10&0xff]<<0x10|_0x2ca9a2[_0x2eead3>>>0x8&0xff]<<0x8|_0x2ca9a2[_0x2eead3&0xff],_0x2eead3^=_0x472122[_0x5a5d5d/_0x5017b1|0x0]<<0x18),_0x44431d[_0x5a5d5d]=_0x44431d[_0x5a5d5d-_0x5017b1]^_0x2eead3);for(var _0x331917=this[_0x32595f(0x4ae)]=[],_0xbe6698=0x0;_0xbe6698<_0x41593b;_0xbe6698++){var _0x5a5d5d=_0x41593b-_0xbe6698;if(_0xbe6698%0x4)var _0x2eead3=_0x44431d[_0x5a5d5d];else var _0x2eead3=_0x44431d[_0x5a5d5d-0x4];_0xbe6698<0x4||_0x5a5d5d<=0x4?_0x331917[_0xbe6698]=_0x2eead3:_0x331917[_0xbe6698]=_0x5607f7[_0x2ca9a2[_0x2eead3>>>0x18]]^_0x558e0a[_0x2ca9a2[_0x2eead3>>>0x10&0xff]]^_0x478846[_0x2ca9a2[_0x2eead3>>>0x8&0xff]]^_0x2ab96b[_0x2ca9a2[_0x2eead3&0xff]];}}},'encryptBlock':function(_0x3c2150,_0x22b3e3){const _0xb10479=_0xf04f69;this['_doCryptBlock'](_0x3c2150,_0x22b3e3,this[_0xb10479(0xfa)],_0x519303,_0x428735,_0x1eeacf,_0x54fa3c,_0x2ca9a2);},'decryptBlock':function(_0x4e2f6d,_0x2f037a){const _0x5dce95=_0xf04f69;var _0xe16822=_0x4e2f6d[_0x2f037a+0x1];_0x4e2f6d[_0x2f037a+0x1]=_0x4e2f6d[_0x2f037a+0x3],_0x4e2f6d[_0x2f037a+0x3]=_0xe16822,this[_0x5dce95(0x29b)](_0x4e2f6d,_0x2f037a,this[_0x5dce95(0x4ae)],_0x5607f7,_0x558e0a,_0x478846,_0x2ab96b,_0x43b3d0);var _0xe16822=_0x4e2f6d[_0x2f037a+0x1];_0x4e2f6d[_0x2f037a+0x1]=_0x4e2f6d[_0x2f037a+0x3],_0x4e2f6d[_0x2f037a+0x3]=_0xe16822;},'_doCryptBlock':function(_0x49a185,_0x4c0e0b,_0xa6740a,_0x26398e,_0x1985bc,_0x120ca2,_0x22076,_0x574f79){const _0x418730=_0xf04f69;for(var _0x3b8be5=this[_0x418730(0x248)],_0x5c681b=_0x49a185[_0x4c0e0b]^_0xa6740a[0x0],_0x54d17f=_0x49a185[_0x4c0e0b+0x1]^_0xa6740a[0x1],_0x164cc4=_0x49a185[_0x4c0e0b+0x2]^_0xa6740a[0x2],_0x262e74=_0x49a185[_0x4c0e0b+0x3]^_0xa6740a[0x3],_0x3f3edb=0x4,_0x1b2d53=0x1;_0x1b2d53<_0x3b8be5;_0x1b2d53++){var _0x54bb69=_0x26398e[_0x5c681b>>>0x18]^_0x1985bc[_0x54d17f>>>0x10&0xff]^_0x120ca2[_0x164cc4>>>0x8&0xff]^_0x22076[_0x262e74&0xff]^_0xa6740a[_0x3f3edb++],_0x3ef057=_0x26398e[_0x54d17f>>>0x18]^_0x1985bc[_0x164cc4>>>0x10&0xff]^_0x120ca2[_0x262e74>>>0x8&0xff]^_0x22076[_0x5c681b&0xff]^_0xa6740a[_0x3f3edb++],_0x1c6864=_0x26398e[_0x164cc4>>>0x18]^_0x1985bc[_0x262e74>>>0x10&0xff]^_0x120ca2[_0x5c681b>>>0x8&0xff]^_0x22076[_0x54d17f&0xff]^_0xa6740a[_0x3f3edb++],_0x2b94a7=_0x26398e[_0x262e74>>>0x18]^_0x1985bc[_0x5c681b>>>0x10&0xff]^_0x120ca2[_0x54d17f>>>0x8&0xff]^_0x22076[_0x164cc4&0xff]^_0xa6740a[_0x3f3edb++];_0x5c681b=_0x54bb69,_0x54d17f=_0x3ef057,_0x164cc4=_0x1c6864,_0x262e74=_0x2b94a7;}var _0x54bb69=(_0x574f79[_0x5c681b>>>0x18]<<0x18|_0x574f79[_0x54d17f>>>0x10&0xff]<<0x10|_0x574f79[_0x164cc4>>>0x8&0xff]<<0x8|_0x574f79[_0x262e74&0xff])^_0xa6740a[_0x3f3edb++],_0x3ef057=(_0x574f79[_0x54d17f>>>0x18]<<0x18|_0x574f79[_0x164cc4>>>0x10&0xff]<<0x10|_0x574f79[_0x262e74>>>0x8&0xff]<<0x8|_0x574f79[_0x5c681b&0xff])^_0xa6740a[_0x3f3edb++],_0x1c6864=(_0x574f79[_0x164cc4>>>0x18]<<0x18|_0x574f79[_0x262e74>>>0x10&0xff]<<0x10|_0x574f79[_0x5c681b>>>0x8&0xff]<<0x8|_0x574f79[_0x54d17f&0xff])^_0xa6740a[_0x3f3edb++],_0x2b94a7=(_0x574f79[_0x262e74>>>0x18]<<0x18|_0x574f79[_0x5c681b>>>0x10&0xff]<<0x10|_0x574f79[_0x54d17f>>>0x8&0xff]<<0x8|_0x574f79[_0x164cc4&0xff])^_0xa6740a[_0x3f3edb++];_0x49a185[_0x4c0e0b]=_0x54bb69,_0x49a185[_0x4c0e0b+0x1]=_0x3ef057,_0x49a185[_0x4c0e0b+0x2]=_0x1c6864,_0x49a185[_0x4c0e0b+0x3]=_0x2b94a7;},'keySize':0x100/0x20});_0x49e1af['AES']=_0x135449[_0xf04f69(0x417)](_0x4f617f);}()),_0x2bb3c4[_0x4b699a(0x3d6)];}));}(ji));var ka=ji[_0x159fb9(0x10c)];const Wa=at(ka);var Fa=Bi();const ii=at(Fa);var Fi={'exports':{}};(function(_0x4ad9aa,_0x2e6944){(function(_0x11db60,_0x1af9ec){const _0x92a308=_0x4457;_0x4ad9aa[_0x92a308(0x10c)]=_0x1af9ec(ue());}(Z,function(_0x540d6f){const _0x4132fd=_0x4457;return _0x540d6f[_0x4132fd(0x38a)][_0x4132fd(0x220)];}));}(Fi));var Va=Fi['exports'];const Ga=at(Va);var Vi={'exports':{}};(function(_0x264069,_0x558a99){(function(_0x50fd5c,_0x259039){const _0x43f03a=_0x4457;_0x264069[_0x43f03a(0x10c)]=_0x259039(ue());}(Z,function(_0x38eec5){const _0x54e129=_0x4457;return(function(){const _0x500cfe=_0x4457;if(typeof ArrayBuffer=='function'){var _0x4bcdd4=_0x38eec5,_0x1677d4=_0x4bcdd4[_0x500cfe(0x1fa)],_0x27ee8c=_0x1677d4[_0x500cfe(0x1c2)],_0x1114aa=_0x27ee8c[_0x500cfe(0x318)],_0x495ab8=_0x27ee8c[_0x500cfe(0x318)]=function(_0x643868){const _0x10eee1=_0x500cfe;if(_0x643868 instanceof ArrayBuffer&&(_0x643868=new Uint8Array(_0x643868)),(_0x643868 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x643868 instanceof Uint8ClampedArray||_0x643868 instanceof Int16Array||_0x643868 instanceof Uint16Array||_0x643868 instanceof Int32Array||_0x643868 instanceof Uint32Array||_0x643868 instanceof Float32Array||_0x643868 instanceof Float64Array)&&(_0x643868=new Uint8Array(_0x643868[_0x10eee1(0xcc)],_0x643868[_0x10eee1(0x355)],_0x643868[_0x10eee1(0x170)])),_0x643868 instanceof Uint8Array){for(var _0x17c529=_0x643868[_0x10eee1(0x170)],_0x382301=[],_0x2da869=0x0;_0x2da869<_0x17c529;_0x2da869++)_0x382301[_0x2da869>>>0x2]|=_0x643868[_0x2da869]<<0x18-_0x2da869%0x4*0x8;_0x1114aa['call'](this,_0x382301,_0x17c529);}else _0x1114aa[_0x10eee1(0x2b8)](this,arguments);};_0x495ab8[_0x500cfe(0x43d)]=_0x27ee8c;}}()),_0x38eec5[_0x54e129(0x1fa)][_0x54e129(0x1c2)];}));}(Vi));var Ya=Vi[_0x159fb9(0x10c)];const Ka=at(Ya);var Gi={'exports':{}};(function(_0x26cdca,_0x2900bd){(function(_0x4e3f29,_0xd58adc,_0x1b9021){_0x26cdca['exports']=_0xd58adc(ue(),Wi());}(Z,function(_0x5af750){const _0x5c7c96=_0x4457;return _0x5af750[_0x5c7c96(0xbd)]['NoPadding']={'pad':function(){},'unpad':function(){}},_0x5af750[_0x5c7c96(0xbd)]['NoPadding'];}));}(Gi));var za=Gi[_0x159fb9(0x10c)];const qa=at(za);function Xa(_0x5bb431,_0x30fa49){const _0x1b7250=_0x159fb9,_0x2031cf=_0x30fa49-_0x5bb431[_0x1b7250(0x3e5)]%_0x30fa49,_0x15fa9b=String[_0x1b7250(0x499)](_0x2031cf)[_0x1b7250(0x1df)](_0x2031cf);return _0x5bb431+_0x15fa9b;}function Ja(_0x3b5c54,_0xff2e3d){const _0x53e9dc=_0x159fb9,_0x132225=Ka['random'](0x10),_0x46c7dd=Xa(_0x3b5c54,0x10),_0x367921=Wa['encrypt'](Ga[_0x53e9dc(0x3c4)](_0x46c7dd),ii[_0x53e9dc(0x3c4)](_0xff2e3d),{'iv':_0x132225,'padding':qa});return _0x132225[_0x53e9dc(0x1d2)](_0x367921[_0x53e9dc(0x212)])[_0x53e9dc(0xd7)](ii);}function Za(){const _0x3c73a9=_0x159fb9,_0xc0cdb5=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)['__Key__'];if(_0xc0cdb5){const _0x4f6a3b={'time':Math[_0x3c73a9(0x393)](Date[_0x3c73a9(0x380)]()/0x3e8),'domain':location[_0x3c73a9(0x3bc)]};return Ja(JSON[_0x3c73a9(0x25e)](_0x4f6a3b),_0xc0cdb5);}}var Qa=Object[_0x159fb9(0xcf)],ec=Object['getOwnPropertyDescriptor'],tc=(_0x31ece5,_0xdf5c08,_0x262fdd,_0x3dc916)=>{const _0x27d0ae=_0x159fb9;for(var _0x49dffd=_0x3dc916>0x1?void 0x0:_0x3dc916?ec(_0xdf5c08,_0x262fdd):_0xdf5c08,_0x179eea=_0x31ece5[_0x27d0ae(0x3e5)]-0x1,_0x2a07b8;_0x179eea>=0x0;_0x179eea--)(_0x2a07b8=_0x31ece5[_0x179eea])&&(_0x49dffd=(_0x3dc916?_0x2a07b8(_0xdf5c08,_0x262fdd,_0x49dffd):_0x2a07b8(_0x49dffd))||_0x49dffd);return _0x3dc916&&_0x49dffd&&Qa(_0xdf5c08,_0x262fdd,_0x49dffd),_0x49dffd;},sc=(_0x126743,_0xbee5c3)=>(_0x39b090,_0x197059)=>_0xbee5c3(_0x39b090,_0x197059,_0x126743);let Tt=class{constructor(_0x51a0ba){const _0x3e4bf0=_0x159fb9;this[_0x3e4bf0(0xb4)]=_0x51a0ba,this['_initRequestHeader']();}[_0x159fb9(0x368)](){const _0x1a13c2=_0x159fb9;this[_0x1a13c2(0xb4)][_0x1a13c2(0x102)]({'interceptor':(_0x24b347,_0x5b560b)=>{const _0x5e3a52=_0x1a13c2,_0x21d646=_0x24b347[_0x5e3a52(0x32d)],_0x4f09cc=Za();return _0x4f09cc&&_0x21d646[_0x5e3a52(0x3d3)](_0x5e3a52(0x200),_0x4f09cc),_0x5b560b(_0x24b347);}});}};Tt=tc([sc(0x0,_0x3e8773(_0x4dbc01))],Tt);var ic=Object[_0x159fb9(0xcf)],nc=Object[_0x159fb9(0x37a)],rc=(_0x4a80d8,_0x512105,_0x4658f9,_0x343208)=>{const _0x46017a=_0x159fb9;for(var _0x5eedd1=_0x343208>0x1?void 0x0:_0x343208?nc(_0x512105,_0x4658f9):_0x512105,_0x2e0e2a=_0x4a80d8[_0x46017a(0x3e5)]-0x1,_0x2c5ef3;_0x2e0e2a>=0x0;_0x2e0e2a--)(_0x2c5ef3=_0x4a80d8[_0x2e0e2a])&&(_0x5eedd1=(_0x343208?_0x2c5ef3(_0x512105,_0x4658f9,_0x5eedd1):_0x2c5ef3(_0x5eedd1))||_0x5eedd1);return _0x343208&&_0x5eedd1&&ic(_0x512105,_0x4658f9,_0x5eedd1),_0x5eedd1;},Xt=(_0x1089f0,_0x35c004)=>(_0x55c27f,_0x2e9b66)=>_0x35c004(_0x55c27f,_0x2e9b66,_0x1089f0);const oc=[_0x159fb9(0x1cb),_0x159fb9(0x38d),'image/jpg',_0x159fb9(0x282),_0x159fb9(0x1b4)],ac=0x5*0x400*0x400,cc=_0x159fb9(0x1af),hc=_0x159fb9(0x189),lc=_0x159fb9(0x271),_c=_0x159fb9(0x390);let hs=class{constructor(_0x2ce26f,_0x366cfb,_0xee84fd){const _0x112623=_0x159fb9;g(this,_0x112623(0x39c),0x0),g(this,_0x112623(0x208),new _0x2ec24b()),g(this,'change$',this[_0x112623(0x208)]),g(this,_0x112623(0x2c1),new Map()),(this['_httpService']=_0x2ce26f,this[_0x112623(0x18b)]=_0x366cfb,this['_univerInstanceService']=_0xee84fd);}[_0x159fb9(0x436)](_0x13e061){const _0x46d246=_0x159fb9;this[_0x46d246(0x39c)]=_0x13e061,this[_0x46d246(0x208)][_0x46d246(0x22f)](_0x13e061);}[_0x159fb9(0x1de)](_0x433a5c,_0x523abb){const _0x15b298=_0x159fb9;if(_0x523abb===_0xbfd346[_0x15b298(0x45c)]){const _0x12e179=new Image();return _0x12e179[_0x15b298(0x2b7)]=_0x433a5c,_0x12e179;}return this[_0x15b298(0x2c1)][_0x15b298(0x413)](_0x433a5c);}['addImageSourceCache'](_0x4d156c,_0x114c42,_0x133ac1){const _0x40fd16=_0x159fb9;_0x114c42===_0xbfd346[_0x40fd16(0x45c)]||_0x133ac1==null||this[_0x40fd16(0x2c1)]['set'](_0x4d156c,_0x133ac1);}async['getImage'](_0x36e255){const _0x42c950=_0x159fb9;try{const _0x365f06=this[_0x42c950(0x37c)](this['_getSignURL'](),''+_0x36e255),_0x5ba87d=(await this[_0x42c950(0xb4)][_0x42c950(0x413)](_0x365f06))[_0x42c950(0x252)];if(_0x5ba87d[_0x42c950(0x441)]&&_0x5ba87d['error'][_0x42c950(0x21c)]===Ri['OK']){const _0x4ac68d=new URL(_0x5ba87d[_0x42c950(0x3da)],this['_getDownloadEndpointURL']())['toString']();return Promise[_0x42c950(0x483)](_0x4ac68d);}return Promise[_0x42c950(0x11f)](_0x5ba87d['error']);}catch(_0x4d966b){return Promise['reject'](_0x4d966b);}}async[_0x159fb9(0x195)](_0x4abf24){const _0x2ac4eb=_0x159fb9;let _0x2d79c1='';if(!oc['includes'](_0x4abf24[_0x2ac4eb(0xab)]))return this[_0x2ac4eb(0x1b0)](),Promise[_0x2ac4eb(0x11f)](new Error(_0x10bbad[_0x2ac4eb(0x3d4)]));if(_0x4abf24[_0x2ac4eb(0x1d3)]>ac)return this[_0x2ac4eb(0x1b0)](),Promise[_0x2ac4eb(0x11f)](new Error(_0x10bbad[_0x2ac4eb(0xb3)]));try{const _0x2c97db=new FormData();_0x2c97db[_0x2ac4eb(0x308)]('file',_0x4abf24);const _0x9e38de=this['_univerInstanceService']['getFocusedUnit'](),_0x56cbc8=_0x9e38de==null?void 0x0:_0x9e38de['getUnitId']();if(!_0x56cbc8)throw new Error('unitId\x20is\x20not\x20found');const _0x2a90a3=this[_0x2ac4eb(0x1dd)]()+_0x2ac4eb(0x175)+_0x4abf24[_0x2ac4eb(0x1d3)][_0x2ac4eb(0xd7)]()+_0x2ac4eb(0x280)+yi['UnitEmbedded']+'&assign='+encodeURIComponent(_0x56cbc8),_0x45779d=await(await fetch(_0x2a90a3,{'method':_0x2ac4eb(0x1e1),'body':_0x2c97db}))['json']();if(typeof _0x45779d[_0x2ac4eb(0xcd)]!=_0x2ac4eb(0xde))return this[_0x2ac4eb(0x1b0)](),Promise['reject'](new Error(_0x10bbad[_0x2ac4eb(0x3ae)]));_0x2d79c1=_0x45779d[_0x2ac4eb(0xcd)];}catch{return this[_0x2ac4eb(0x1b0)](),Promise['reject'](new Error(_0x10bbad[_0x2ac4eb(0x3ae)]));}return new Promise((_0x57f444,_0x490eee)=>{const _0x39b2fb=_0x2ac4eb,_0x21d37b=new FileReader();_0x21d37b[_0x39b2fb(0x203)](_0x4abf24),_0x21d37b[_0x39b2fb(0x2fc)]=_0x2d9d9b=>{const _0xc18dbf=_0x39b2fb;var _0x29b397;const _0x2a32f9=(_0x29b397=_0x2d9d9b[_0xc18dbf(0x113)])==null?void 0x0:_0x29b397[_0xc18dbf(0x135)];if(_0x2a32f9==null){this[_0xc18dbf(0x1b0)](),_0x490eee(new Error(_0x10bbad[_0xc18dbf(0x3ae)]));return;}const _0x536aff=_0x26d13d[_0xc18dbf(0x467)](0x6);_0x57f444({'imageId':_0x536aff,'imageSourceType':_0xbfd346[_0xc18dbf(0x343)],'source':_0x2d79c1,'base64Cache':_0x2a32f9,'status':_0x10bbad[_0xc18dbf(0x18f)]}),this[_0xc18dbf(0x1b0)]();};});}['_getUploadFileURL'](){const _0x322a62=_0x159fb9;var _0xf6b58a,_0x55cbee;const _0x1512f1=this[_0x322a62(0x18b)][_0x322a62(0x2e1)](cc),_0x472173=this[_0x322a62(0x18b)][_0x322a62(0x2e1)](ie);return(_0x55cbee=(_0xf6b58a=_0x472173==null?void 0x0:_0x472173['uploadFileServerUrl'])!=null?_0xf6b58a:_0x1512f1)!=null?_0x55cbee:hc;}[_0x159fb9(0x182)](){const _0x1663a7=_0x159fb9;var _0xa8facb,_0x2b4591;const _0x453c7=this['_configService']['getConfig'](lc),_0x18a04c=this[_0x1663a7(0x18b)][_0x1663a7(0x2e1)](ie);return(_0x2b4591=(_0xa8facb=_0x18a04c==null?void 0x0:_0x18a04c[_0x1663a7(0x426)])!=null?_0xa8facb:_0x453c7)!=null?_0x2b4591:_c;}[_0x159fb9(0x160)](){const _0x24ba8b=_0x159fb9;var _0x3c2f37;const _0x426ceb=this[_0x24ba8b(0x18b)][_0x24ba8b(0x2e1)](ie);return(_0x3c2f37=_0x426ceb==null?void 0x0:_0x426ceb[_0x24ba8b(0x4a9)])!=null?_0x3c2f37:location[_0x24ba8b(0x144)];}[_0x159fb9(0x37c)](_0x186973,_0x237fc2){const _0x27339e=_0x159fb9;return _0x186973['replace'](_0x27339e(0x2f7),_0x237fc2);}[_0x159fb9(0x1b0)](){const _0x1e790d=_0x159fb9;this[_0x1e790d(0x39c)]-=0x1,this[_0x1e790d(0x208)][_0x1e790d(0x22f)](this[_0x1e790d(0x39c)]);}};hs=rc([Xt(0x0,_0x3e8773(_0x4dbc01)),Xt(0x1,_0x3ade87),Xt(0x2,_0x3e8773(_0x40ba52))],hs);var uc=Object[_0x159fb9(0xcf)],dc=Object[_0x159fb9(0x37a)],fc=(_0x14c3c7,_0x509691,_0x545de0,_0x1819b6)=>{const _0x16c1c4=_0x159fb9;for(var _0x5ca3b6=_0x1819b6>0x1?void 0x0:_0x1819b6?dc(_0x509691,_0x545de0):_0x509691,_0x38e229=_0x14c3c7[_0x16c1c4(0x3e5)]-0x1,_0x4ae012;_0x38e229>=0x0;_0x38e229--)(_0x4ae012=_0x14c3c7[_0x38e229])&&(_0x5ca3b6=(_0x1819b6?_0x4ae012(_0x509691,_0x545de0,_0x5ca3b6):_0x4ae012(_0x5ca3b6))||_0x5ca3b6);return _0x1819b6&&_0x5ca3b6&&uc(_0x509691,_0x545de0,_0x5ca3b6),_0x5ca3b6;},Qe=(_0x145cdf,_0x36b419)=>(_0x105793,_0x4e527a)=>_0x36b419(_0x105793,_0x4e527a,_0x145cdf);let Rt=class extends _0x7d7f86{constructor(_0x34f9a5,_0x1ecf5a,_0x1f754d,_0x4eeed8,_0x3b8a80){const _0x141c81=_0x159fb9;super(),this[_0x141c81(0x1d9)]=_0x34f9a5,this[_0x141c81(0x116)]=_0x1ecf5a,this[_0x141c81(0x3cb)]=_0x1f754d,this[_0x141c81(0xb1)]=_0x4eeed8,this[_0x141c81(0xc8)]=_0x3b8a80,this[_0x141c81(0x4a7)](),this[_0x141c81(0x265)]();}['_initCloseConn'](){const _0xcbcf55=_0x159fb9,_0x43f79c=async _0x582298=>{const _0x1bab1b=_0x4457;(await this[_0x1bab1b(0xb1)]['requireSession'](_0x582298))[_0x1bab1b(0x431)][_0x1bab1b(0x26b)](_0x1e7f12(_0x499122=>_0x499122[_0x1bab1b(0x39e)]===_0x33d7b7[_0x1bab1b(0x478)]),_0x1775d8(this[_0x1bab1b(0x1ef)]))['subscribe'](_0x14650f=>{const _0xf49cf3=_0x1bab1b,_0x3752a7=_0x14650f,{reason:_0xce8e99}=_0x3752a7[_0xf49cf3(0x216)];this[_0xf49cf3(0x1d9)][_0xf49cf3(0x413)](_0x546aee)[_0xf49cf3(0x3e9)]({'type':_0x450e6f['Error'],'content':this['_localeService']['t'](_0xf49cf3(0x2de))+'('+_0xce8e99+')'}),this['_permissionService'][_0xf49cf3(0x36d)](new _0x435a22(_0x582298)['id'],!0x1),this[_0xf49cf3(0xb1)][_0xf49cf3(0x19c)](_0x582298);});};_0x548bea(this['_univerInstanceService'][_0xcbcf55(0x27f)](_0x466101[_0xcbcf55(0x166)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x466101['UNIVER_DOC']))[_0xcbcf55(0x26b)](_0x24eeb9(_0x541bdd=>_0x541bdd['getUnitId']()),_0x1e7f12(_0x2a2139=>!_0x31cc25(_0x2a2139)),_0x1775d8(this[_0xcbcf55(0x1ef)]))[_0xcbcf55(0x2fd)](_0x52f08e=>{_0x43f79c(_0x52f08e);});}[_0x159fb9(0x4a7)](){const _0x3750c9=_0x159fb9,_0x48d943=async _0x14709c=>{const _0x57bd9c=_0x4457;(await this[_0x57bd9c(0xb1)][_0x57bd9c(0x470)](_0x14709c))[_0x57bd9c(0x431)][_0x57bd9c(0x26b)](_0x1e7f12(_0x65ad36=>_0x65ad36['eventID']===_0x33d7b7[_0x57bd9c(0x395)]),_0x1775d8(this[_0x57bd9c(0x1ef)]))[_0x57bd9c(0x2fd)](_0x24138d=>{const _0xf49a5d=_0x57bd9c,_0x5d21c7=_0x24138d,{objectId:_0x2922ae}=_0x5d21c7[_0xf49a5d(0x216)],_0x2f8b6a=this[_0xf49a5d(0x1d9)]['get'](_0x2f3964);_0x2922ae===_0x14709c?_0x2f8b6a[_0xf49a5d(0x429)](_0x14709c):_0x2f8b6a[_0xf49a5d(0x44c)](_0x14709c,_0x2922ae);});};_0x548bea(this[_0x3750c9(0x116)][_0x3750c9(0x27f)](_0x466101[_0x3750c9(0x166)]),this[_0x3750c9(0x116)][_0x3750c9(0x27f)](_0x466101[_0x3750c9(0x44a)]))[_0x3750c9(0x26b)](_0x24eeb9(_0xa12d04=>_0xa12d04[_0x3750c9(0xd4)]()),_0x1e7f12(_0x223098=>!_0x31cc25(_0x223098)),_0x1775d8(this[_0x3750c9(0x1ef)]))[_0x3750c9(0x2fd)](_0x56563a=>{_0x48d943(_0x56563a);});}};Rt=fc([Qe(0x0,_0x3e8773(_0x3371c0)),Qe(0x1,_0x40ba52),Qe(0x2,_0x1b485a),Qe(0x3,_0x3e8773(Ae)),Qe(0x4,_0x3e8773(_0x51cff0))],Rt);var vc=Object[_0x159fb9(0xcf)],mc=Object[_0x159fb9(0x37a)],pc=(_0x5783a,_0xaf57fe,_0x5bb8ec,_0x497048)=>{for(var _0x49a6db=_0x497048>0x1?void 0x0:_0x497048?mc(_0xaf57fe,_0x5bb8ec):_0xaf57fe,_0x1606fb=_0x5783a['length']-0x1,_0x2bc098;_0x1606fb>=0x0;_0x1606fb--)(_0x2bc098=_0x5783a[_0x1606fb])&&(_0x49a6db=(_0x497048?_0x2bc098(_0xaf57fe,_0x5bb8ec,_0x49a6db):_0x2bc098(_0x49a6db))||_0x49a6db);return _0x497048&&_0x49a6db&&vc(_0xaf57fe,_0x5bb8ec,_0x49a6db),_0x49a6db;},ni=(_0x3e8596,_0x2688b4)=>(_0x16784c,_0xb6442c)=>_0x2688b4(_0x16784c,_0xb6442c,_0x3e8596);let ls=class{constructor(_0xb5fa76,_0x3a72a9){const _0x30a9a4=_0x159fb9;this['_configService']=_0xb5fa76,this[_0x30a9a4(0xb4)]=_0x3a72a9;}async[_0x159fb9(0x2c0)](_0x799b92,_0x1fde8a){const _0x1a9002=_0x159fb9;var _0x2e918f;const {unitID:_0x5c0f93,type:_0xf1132b,revision:_0x5d4090=0x0}=_0x1fde8a,_0x2fb44a=this[_0x1a9002(0x10b)]()+'/'+_0xf1132b+_0x1a9002(0x254)+_0x5c0f93+'/rev/'+_0x5d4090,_0x10d2ac=(await this['_httpService'][_0x1a9002(0x413)](_0x2fb44a))[_0x1a9002(0x252)],_0x5c1522=(_0x2e918f=_0x10d2ac[_0x1a9002(0x232)])==null?void 0x0:_0x2e918f['workbook'];if(_0x5c1522){const _0x485f52=_0x5c1522==null?void 0x0:_0x5c1522['originalMeta'],_0x297968=_0x4ebea7['encode'](_0x5896eb(_0x485f52));_0x5c1522['originalMeta']=_0x297968,Object[_0x1a9002(0x162)](_0x5c1522['sheets'])['forEach'](([,_0x44bead])=>{const _0x5f3930=_0x1a9002,_0x8bd1b=_0x44bead['originalMeta'],_0x39a29a=_0x4ebea7[_0x5f3930(0x255)](_0x5896eb(_0x8bd1b));_0x44bead[_0x5f3930(0x458)]=_0x39a29a;});}return _0x10d2ac;}async['getSheetBlock'](_0x3a9f86,_0x5e44a0){const _0x43f855=_0x159fb9,{unitID:_0x592456,type:_0x5596fb,blockID:_0x4f043c}=_0x5e44a0,_0x9eff79=this[_0x43f855(0x2e2)]()+'/'+_0x5596fb+'/unit/'+_0x592456+'/block/'+_0x4f043c;return(await this[_0x43f855(0xb4)][_0x43f855(0x413)](_0x9eff79))['body'];}async[_0x159fb9(0x210)](_0x5587b0,_0x473486){const _0x348ca9=_0x159fb9,{unitID:_0x3880c5,type:_0x45e0f7,blockID:_0x503957}=_0x473486,_0x1a21bc=this[_0x348ca9(0x2e2)]()+_0x348ca9(0x17a)+_0x45e0f7+_0x348ca9(0x254)+_0x3880c5+'/block/'+_0x503957;return(await this[_0x348ca9(0xb4)]['get'](_0x1a21bc))[_0x348ca9(0x252)];}async['fetchMissingChangesets'](_0x1c614b,_0x1114d7){const _0xa6bad9=_0x159fb9,{unitID:_0x5432f4,type:_0x4f3dd0,from:_0x100bd2,to:_0x45edff}=_0x1114d7,_0x1c74ee=this[_0xa6bad9(0x2e2)]()+'/'+_0x4f3dd0+_0xa6bad9(0x254)+_0x5432f4+_0xa6bad9(0x49b)+_0x100bd2+_0xa6bad9(0x14d)+_0x45edff;return(await this[_0xa6bad9(0xb4)]['get'](_0x1c74ee))[_0xa6bad9(0x252)];}[_0x159fb9(0x10b)](){const _0x5da5f0=_0x159fb9;var _0xbedf06;return(_0xbedf06=this[_0x5da5f0(0x18b)][_0x5da5f0(0x2e1)](ar))!=null?_0xbedf06:this[_0x5da5f0(0x2e2)]();}['_getAPIPrefix'](){const _0x1569eb=_0x159fb9;var _0x388a9f,_0x3d57ce;const _0xca2c50=this[_0x1569eb(0x18b)][_0x1569eb(0x2e1)](rr),_0x4379f3=this[_0x1569eb(0x18b)][_0x1569eb(0x2e1)](ie);return(_0x3d57ce=(_0x388a9f=_0x4379f3==null?void 0x0:_0x4379f3[_0x1569eb(0x155)])!=null?_0x388a9f:_0xca2c50)!=null?_0x3d57ce:or;}async[_0x159fb9(0x16b)](_0x24e8e5,_0x2aaf8a){const _0x38b831=_0x159fb9,_0x2b1313=_0x38b831(0x440)+_0x2aaf8a['type']+_0x38b831(0x254)+_0x2aaf8a[_0x38b831(0x1bc)]+_0x38b831(0x174);return(await this[_0x38b831(0xb4)]['get'](_0x2b1313,{'params':{'resourceId':JSON[_0x38b831(0x25e)](_0x2aaf8a['resourceIDs'])}}))[_0x38b831(0x252)];}['saveSnapshot'](){const _0x38436b=_0x159fb9;throw new Error(_0x38436b(0x1b7));}[_0x159fb9(0x44e)](){const _0x2cedd5=_0x159fb9;throw new Error(_0x2cedd5(0x1b7));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x3f81a7=_0x159fb9;throw new Error(_0x3f81a7(0x1b7));}[_0x159fb9(0xce)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};ls=pc([ni(0x0,_0x3ade87),ni(0x1,_0x3e8773(_0x4dbc01))],ls);var gc=Object[_0x159fb9(0xcf)],Sc=Object[_0x159fb9(0x37a)],Ic=(_0x1cc67e,_0x4509e0,_0x45390e,_0x2c8f57)=>{const _0x4d5cab=_0x159fb9;for(var _0x322379=_0x2c8f57>0x1?void 0x0:_0x2c8f57?Sc(_0x4509e0,_0x45390e):_0x4509e0,_0x102c8c=_0x1cc67e[_0x4d5cab(0x3e5)]-0x1,_0x5ed98f;_0x102c8c>=0x0;_0x102c8c--)(_0x5ed98f=_0x1cc67e[_0x102c8c])&&(_0x322379=(_0x2c8f57?_0x5ed98f(_0x4509e0,_0x45390e,_0x322379):_0x5ed98f(_0x322379))||_0x322379);return _0x2c8f57&&_0x322379&&gc(_0x4509e0,_0x45390e,_0x322379),_0x322379;},et=(_0x468666,_0x283a2c)=>(_0x447fb4,_0x5501b0)=>_0x283a2c(_0x447fb4,_0x5501b0,_0x468666);let _s=class extends _0x27ff78{constructor(_0x3e53cd,_0x3746f7,_0x1b2ab4,_0x480420,_0x1f57fd){const _0x10a5c5=_0x159fb9;super(_0x3e53cd,_0x3746f7,_0x1b2ab4),this['_transformService']=_0x480420,this[_0x10a5c5(0x461)]=_0x1f57fd;}[_0x159fb9(0x222)](_0x1909dd,_0x3196a3){const _0x26f490=_0x159fb9,_0x273ae9=this['_getUndoStack'](_0x1909dd);if(_0x273ae9)try{const _0x47b625=this['_transformStack'](_0x273ae9,_0x3196a3);this[_0x26f490(0x2b4)](_0x1909dd,_0x47b625);}catch(_0x311fc1){this[_0x26f490(0x461)]['error'](_0x26f490(0x275),_0x311fc1),this['_clearUndo'](_0x1909dd);}const _0x940765=this[_0x26f490(0x2e3)](_0x1909dd);if(_0x940765)try{const _0x2b27a2=this['_transformStack'](_0x940765,_0x3196a3);this[_0x26f490(0x40b)](_0x1909dd,_0x2b27a2);}catch(_0x1ae529){this[_0x26f490(0x461)][_0x26f490(0x441)](_0x1ae529),this[_0x26f490(0x2a4)](_0x1909dd);}}[_0x159fb9(0x32c)](_0x83b11d){const _0x504f63=_0x159fb9,_0x580d81=this[_0x504f63(0x13d)](_0x83b11d);_0x580d81&&(_0x580d81[_0x504f63(0x3e5)]=0x0,this[_0x504f63(0x41c)]());}[_0x159fb9(0x2a4)](_0x1d2394){const _0x59bd6b=_0x159fb9,_0x374515=this[_0x59bd6b(0x2e3)](_0x1d2394);_0x374515&&(_0x374515[_0x59bd6b(0x3e5)]=0x0,this[_0x59bd6b(0x41c)]());}[_0x159fb9(0x2b4)](_0x127f3b,_0x58afa5){const _0x1b43ce=_0x159fb9;this[_0x1b43ce(0x291)]['set'](_0x127f3b,_0x58afa5),this['_updateStatus']();}[_0x159fb9(0x40b)](_0x1b03da,_0x1f9d58){const _0x2be90b=_0x159fb9;this[_0x2be90b(0x293)][_0x2be90b(0x3d3)](_0x1b03da,_0x1f9d58),this['_updateStatus']();}[_0x159fb9(0x348)](_0x181340,_0x59825a){const _0x8c351e=_0x159fb9,_0x4c1b5e=[];let _0x276b25=_0x59825a,_0x1ff3cf=_0x59825a;for(let _0x3e9dd5=_0x181340['length']-0x1;_0x3e9dd5>=0x0;_0x3e9dd5--){const {unitID:_0x34a284,undoMutations:_0x2d6114,redoMutations:_0x5753c0}=_0x181340[_0x3e9dd5],_0x9350b7=this[_0x8c351e(0x1a9)][_0x8c351e(0x17b)](_0x276b25,_0x2d6114),_0x93b49b=this[_0x8c351e(0x1a9)]['transformMutationsWithChangeset'](_0x1ff3cf,_0x5753c0);if(_0x3bee1f(_0x9350b7)||_0x3bee1f(_0x93b49b)){this[_0x8c351e(0x461)][_0x8c351e(0x441)](_0x8c351e(0x275),'transformStack\x20failed!',_0x9350b7,_0x93b49b);break;}_0x276b25=_0x9350b7[_0x8c351e(0x3ad)],_0x1ff3cf=_0x93b49b['c1Prime'],_0x4c1b5e[_0x8c351e(0x3c8)]({'unitID':_0x34a284,'undoMutations':_0x9350b7[_0x8c351e(0x12a)],'redoMutations':_0x93b49b[_0x8c351e(0x12a)]});}return _0x4c1b5e[_0x8c351e(0x48b)]();}};_s=Ic([et(0x0,_0x40ba52),et(0x1,_0x1bd495),et(0x2,_0x2514ed),et(0x3,_0x1c07b8),et(0x4,_0x3738e4)],_s);class Cc extends _0x7d7f86{constructor(){const _0x1d1d79=_0x159fb9;super(),g(this,_0x1d1d79(0x20f)),this['urlChange$']=_0x55c3c6(window,'popstate')[_0x1d1d79(0x26b)](_0x514462(this['dispose$']),_0x37b8c8(0x1),_0x54420d(void 0x0));}[_0x159fb9(0x263)](_0x292ea7,_0x1328bd,_0x38d7bc=!0x1){const _0x53c05c=_0x159fb9,_0x200a0e=new URL(window[_0x53c05c(0x4ad)][_0x53c05c(0x38c)]);_0x200a0e[_0x53c05c(0x491)][_0x53c05c(0x3d3)](_0x292ea7,_0x1328bd),_0x38d7bc?window['history'][_0x53c05c(0x49f)]('','',_0x200a0e[_0x53c05c(0xd7)]()):window[_0x53c05c(0x460)][_0x53c05c(0x2cb)]('','',_0x200a0e[_0x53c05c(0xd7)]());}[_0x159fb9(0x163)](_0x32d1f7,_0x1ccc54=!0x1){const _0x23ab34=_0x159fb9,_0x2fc56c=new URL(window[_0x23ab34(0x4ad)][_0x23ab34(0x38c)]);_0x2fc56c[_0x23ab34(0x491)][_0x23ab34(0x24e)](_0x32d1f7),_0x1ccc54?window[_0x23ab34(0x460)][_0x23ab34(0x49f)]('','',_0x2fc56c[_0x23ab34(0xd7)]()):window[_0x23ab34(0x460)][_0x23ab34(0x2cb)]('','',_0x2fc56c['toString']());}['getParam'](_0xe304cf){const _0x5417f3=_0x159fb9;var _0x117126;return(_0x117126=new URL(window[_0x5417f3(0x4ad)]['href'])['searchParams'][_0x5417f3(0x413)](_0xe304cf))!=null?_0x117126:void 0x0;}}var Yi=Object[_0x159fb9(0xcf)],Ec=Object['getOwnPropertyDescriptor'],bc=(_0x4b68ff,_0x5daa69,_0x65f8d8)=>_0x5daa69 in _0x4b68ff?Yi(_0x4b68ff,_0x5daa69,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x65f8d8}):_0x4b68ff[_0x5daa69]=_0x65f8d8,Tc=(_0x45f4bc,_0x5076be,_0x41a3d8,_0x2f98f7)=>{const _0x5ceff6=_0x159fb9;for(var _0x2a0ae7=_0x2f98f7>0x1?void 0x0:_0x2f98f7?Ec(_0x5076be,_0x41a3d8):_0x5076be,_0x8a0c34=_0x45f4bc[_0x5ceff6(0x3e5)]-0x1,_0x5cb4ee;_0x8a0c34>=0x0;_0x8a0c34--)(_0x5cb4ee=_0x45f4bc[_0x8a0c34])&&(_0x2a0ae7=(_0x2f98f7?_0x5cb4ee(_0x5076be,_0x41a3d8,_0x2a0ae7):_0x5cb4ee(_0x2a0ae7))||_0x2a0ae7);return _0x2f98f7&&_0x2a0ae7&&Yi(_0x5076be,_0x41a3d8,_0x2a0ae7),_0x2a0ae7;},_t=(_0x2c067c,_0x43cb60)=>(_0x32c5ec,_0x439774)=>_0x43cb60(_0x32c5ec,_0x439774,_0x2c067c),Rc=(_0x5f1cde,_0x13c36b,_0x1ffb34)=>bc(_0x5f1cde,_0x13c36b+'',_0x1ffb34);const yc=_0x159fb9(0x496);let us=class extends _0x34b0ea{constructor(_0x282b4a=Er,_0xb7783c,_0x5f290a,_0x4d24a5,_0x1b41f6){const _0x48f5db=_0x159fb9;super(),this['_config']=_0x282b4a,this[_0x48f5db(0x461)]=_0xb7783c,this['_renderManagerService']=_0x5f290a,this[_0x48f5db(0x1d9)]=_0x4d24a5,this[_0x48f5db(0x18b)]=_0x1b41f6;const {..._0x1093a4}=this[_0x48f5db(0xf8)];this[_0x48f5db(0x18b)][_0x48f5db(0x13a)](ie,_0x1093a4);}[_0x159fb9(0x307)](){const _0xf73819=_0x159fb9;this[_0xf73819(0x3f7)](),this[_0xf73819(0x145)]();}[_0x159fb9(0x196)](){_0x481c3e(this['_injector'],[[Et]]);}['onRendered'](){const _0x5e81f9=_0x159fb9;this[_0x5e81f9(0x219)]();}[_0x159fb9(0x3f7)](){const _0x2c8d13=_0x159fb9;var _0x3639c4,_0x132935,_0x3a6f1c,_0x31ab87;this[_0x2c8d13(0x1d9)]['has'](_0x551c13)&&this[_0x2c8d13(0x461)][_0x2c8d13(0x441)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');const _0xae1be0=[[_0x551c13,{'useClass':_s}],[Ae],[bs],[Hi,{'useClass':Cc}],[Ne],[q],[_0x244fc6],[mt],[gt],[vt],[pt],[Cs],[bt],[Tt],[wi],[Rt],[Oi,{'useClass':(_0x132935=(_0x3639c4=this[_0x2c8d13(0xf8)])==null?void 0x0:_0x3639c4['socketService'])!=null?_0x132935:es}],[_0xbb044,{'useClass':ls}],[_0x57da24,{'useClass':cs}],[_0x2ea827,{'useClass':hs}],[it],[Ct],[It],[Et],[Ve]];(_0x3a6f1c=this['_config'])!=null&&_0x3a6f1c[_0x2c8d13(0x366)]&&_0xae1be0[_0x2c8d13(0x3c8)]([yt,{'useClass':so}]),_0x4d3068(this[_0x2c8d13(0x1d9)],_0x2a8f9e(_0xae1be0,(_0x31ab87=this[_0x2c8d13(0xf8)])==null?void 0x0:_0x31ab87[_0x2c8d13(0x3b9)]));}[_0x159fb9(0x219)](){const _0x157081=_0x159fb9;this[_0x157081(0x2e7)](this['_renderManagerService'][_0x157081(0x498)](_0x466101['UNIVER_DOC'],[os])),this[_0x157081(0x2e7)](this[_0x157081(0x451)]['registerRenderModule'](_0x466101['UNIVER_SHEET'],[as]));}[_0x159fb9(0x145)](){const _0x41c14b=_0x159fb9;var _0x5c131f,_0x414b01;this[_0x41c14b(0x1d9)]['get'](_0x4dbc01)[_0x41c14b(0x102)]({'priority':0x14,'interceptor':_0x1c106f({'maxParallel':0x6})}),(_0x5c131f=this[_0x41c14b(0xf8)])!=null&&_0x5c131f[_0x41c14b(0x2f6)]||this['_injector'][_0x41c14b(0x413)](q)[_0x41c14b(0x2bc)](),(_0x414b01=this['_config'])!=null&&_0x414b01['enableAuthServer']&&_0x481c3e(this[_0x41c14b(0x1d9)],[[bt]]),_0x481c3e(this['_injector'],[[Tt],[Ve],[Ct],[it],[It],[Rt]]);}};Rc(us,_0x159fb9(0x3af),yc),us=Tc([_0x2ae560(_0x19f686,_0x3f779a),_t(0x1,_0x3738e4),_t(0x2,_0x525bf5),_t(0x3,_0x3e8773(_0x3371c0)),_t(0x4,_0x3ade87)],us);export{Ua as AUTHZ_URL_KEY,cs as AuthzIoHttpService,gr as COLLAB_SUBMIT_CHANGESET_URL_KEY,hr as COLLAB_WEB_SOCKET_URL_KEY,it as CollaborationController,St as CollaborationEntity,ts as CollaborationSession,Ae as CollaborationSessionService,es as CollaborationSocketService,J as CollaborationStatus,ua as CollaborationStatusDisplay,wi as CommentService,Ct as DataLoaderController,It as DesktopCollaborationStatusDisplayController,ss as DocCollaborationEntity,_r as HEARTBEAT_INTERVAL_KEY,bi as HEARTBEAT_TIMEOUT_KEY,Oi as ICollaborationSocketService,Hi as IURLService,hs as ImageIoService,mr as LOCAL_CACHE_INTERVAL_KEY,Ir as LOGIN_URL_KEY,q as LocalCacheService,Ne as MemberService,fr as RETRY_CONNECTING_MAX_COUNT_KEY,Gc as SEND_CHANGESET_TIMEOUT_KEY,rr as SNAPSHOT_SERVER_URL_KEY,ar as SNAPSHOT_URL_KEY,ve as SessionStatus,Ko as SheetCollabCursorShape,is as SheetCollaborationEntity,ls as SnapshotServerOverHTTPService,us as UniverCollaborationClientPlugin,Cc as WebURLService,br as deserializeToCombResponse,Tr as serializeCombRequest};
|