@univerjs-pro/collaboration-client 0.1.12 → 0.1.15
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/locale/en-US.json +32 -0
- package/lib/locale/ru-RU.json +32 -0
- package/lib/locale/zh-CN.json +32 -0
- package/lib/types/config/config.d.ts +44 -0
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +3 -3
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +2 -2
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +17 -12
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +5 -5
- package/lib/types/index.d.ts +6 -8
- package/lib/types/locale/ru-RU.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +4 -0
- package/lib/types/plugin.d.ts +4 -4
- package/lib/types/services/auth-server/auth-server.service.d.ts +0 -4
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +29 -0
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -7
- package/lib/types/services/image-remote/image-io.service.d.ts +31 -0
- package/lib/types/services/local-cache/local-cache.service.d.ts +0 -5
- package/lib/types/services/member/member.service.d.ts +9 -3
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +2 -6
- package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +49 -32
- package/lib/types/locale/index.d.ts +0 -2
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x29ff3c=_0x2107;(function(_0x5f4dd5,_0x6493e5){const _0x415851=_0x2107,_0x2a7e9c=_0x5f4dd5();while(!![]){try{const _0x46a654=parseInt(_0x415851(0x49c))/0x1+-parseInt(_0x415851(0x457))/0x2+-parseInt(_0x415851(0x353))/0x3*(parseInt(_0x415851(0x42c))/0x4)+parseInt(_0x415851(0x39f))/0x5+-parseInt(_0x415851(0x2e3))/0x6+-parseInt(_0x415851(0x2eb))/0x7+-parseInt(_0x415851(0x391))/0x8*(-parseInt(_0x415851(0x3ed))/0x9);if(_0x46a654===_0x6493e5)break;else _0x2a7e9c['push'](_0x2a7e9c['shift']());}catch(_0x46d0ad){_0x2a7e9c['push'](_0x2a7e9c['shift']());}}}(_0x27a1,0x9a7c2));var ws=Object[_0x29ff3c(0x365)],Ms=(_0x18dd6c,_0x45b516,_0x2b7378)=>_0x45b516 in _0x18dd6c?ws(_0x18dd6c,_0x45b516,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b7378}):_0x18dd6c[_0x45b516]=_0x2b7378,l=(_0x390265,_0x5e1a86,_0x259f75)=>(Ms(_0x390265,typeof _0x5e1a86!=_0x29ff3c(0x25f)?_0x5e1a86+'':_0x5e1a86,_0x259f75),_0x259f75);import{Disposable as _0x4cb958,toDisposable as _0xa56ed7,UniverInstanceType as _0x280819,IUniverInstanceService as _0x416446,DisposableCollection as _0x15b2da,IConfigService as _0x3fca08,ILogService as _0x4e485b,ISnapshotServerService as _0x438124,RxDisposable as _0xecb3e3,LocaleService as _0xa9bb0e,ILocalStorageService as _0x7a84be,Tools as _0x4dfeda,ICommandService as _0x53d735,TextX as _0x3a2de6,UniverPermissionService as _0x4c655a,IUndoRedoService as _0x17966e,sequenceExecute as _0x4eb30d,OnLifecycle as _0x47ab07,LifecycleStages as _0x49cfc4,CommandType as _0x85ebfe,Rectangle as _0x56f815,ThemeService as _0x5d12b5,Workbook as _0x56db74,textEncoder as _0x13325e,b64DecodeUnicode as _0xfc23bc,LocalUndoRedoService as _0x4c065a,IContextService as _0x150c3f,COLORS as _0x3d4a0e,ColorKit as _0x4968b0,Plugin as _0x48d020,mergeOverrideWithDependencies as _0x4558c2}from'@univerjs/core';import{MessageType as _0x1a069a}from'@univerjs/design';import{IBeforeCloseService as _0x31f8ee,IMessageService as _0x2bb05d,INotificationService as _0x501291,useObservable as _0x40911a,BuiltInUIPart as _0x2606bf,IUIPartsService as _0x23db19}from'@univerjs/ui';import{CollaborationEvent as _0x531a33,parseChangesetToProtocol as _0x5dc8f5,RevisionService as _0x2fb796,isTransformMutationFailure as _0x58b9af,isTransformMutationsWithChangesetSuccess as _0x18a402,ITransformService as _0x3b0b3e,mapDocumentTypeToUniverType as _0x3d9f48,isTransformChangesetsSuccess as _0xcafd09,CompressMutationService as _0x2b6c4e,parseProtocolChangeset as _0xd429fd,SnapshotService as _0x34e252,isTransformMutationsWithChangesetFailure as _0xece915}from'@univerjs-pro/collaboration';import{createIdentifier as _0x555040,Inject as _0x16153f,Injector as _0x5945df,Optional as _0x4bc039}from'@wendellhu/redi';import{merge as _0x283c9e,Subject as _0x2ba0f7,BehaviorSubject as _0x45e4c4,distinctUntilChanged as _0x45e7ef,fromEvent as _0x3a4e7b,of as _0x570e60,takeUntil as _0x515cc9,debounceTime as _0x30e3cf,filter as _0x243c7f,switchMap as _0x13022e,combineLatest as _0x4629ad,shareReplay as _0x193785,mapTo as _0x4d15ba,concatMap as _0x2eb76e}from'rxjs';import{map as _0xc3a3dd,takeUntil as _0x560ce8,take as _0x56a0f9,filter as _0x5ba09f,delay as _0x26a43d,shareReplay as _0x21acb7,switchMap as _0xfdbd67}from'rxjs/operators';import{IMEInputManagerService as _0x2e913b,TextSelectionManagerService as _0x4385b1,serializeTextRange as _0xdcd3d2,DocStateChangeManagerService as _0x5009d5,SetTextSelectionsOperation as _0x1bf79d,RichTextEditingMutation as _0x336582,getDocObject as _0x12707b,DocSkeletonManagerService as _0x18a0f7}from'@univerjs/docs';import{HTTPService as _0x5b1ea4,WebSocketService as _0x4c9f2e,IHTTPImplementation as _0x273db6,XHRHTTPImplementation as _0x4007c4,ThresholdInterceptorFactory as _0x4f8724}from'@univerjs/network';import{SelectionManagerService as _0xd2e978,SetSelectionsOperation as _0x5d539f,InsertSheetMutation as _0x3df9f7,RefRangeService as _0x23a82f,EffectRefRangId as _0x3c79c3,handleIRemoveRow as _0x59d893,handleIRemoveCol as _0x3f153e,handleMoveRange as _0x2165b6,handleInsertRow as _0x934c29,handleInsertRangeMoveRight as _0x1f85af,handleInsertRangeMoveDown as _0x29f6fd,handleInsertCol as _0x2f0896,handleDeleteRangeMoveUp as _0x40f81d,handleDeleteRangeMoveLeft as _0x1c0845,runRefRangeMutations as _0x3a54e4,SetWorksheetActivateCommand as _0x43a3d8}from'@univerjs/sheets';import{deserializeRangeWithSheet as _0x12a630,serializeRangeWithSheet as _0x59af6c}from'@univerjs/engine-formula';import _0x29b107 from'lodash/debounce';import{Shape as _0x42c613,Rect as _0x15f9aa,Vector2 as _0x10a9c7,IRenderManagerService as _0xec6532,NodePositionConvertToCursor as _0x93f127,getColor as _0x1a778c,TEXT_RANGE_LAYER_INDEX as _0xe26765,RegularPolygon as _0x26528d}from'@univerjs/engine-render';import{VIEWPORT_KEY as _0xa3abbd,getCoordByCell as _0x281f85,getSheetObject as _0x33d2b1,SheetSkeletonManagerService as _0x1fe4dd}from'@univerjs/sheets-ui';import{useDependency as _0x6f6fff,connectInjector as _0x354ca5}from'@wendellhu/redi/react-bindings';import _0x3a8efb,{forwardRef as _0xb5345f,useRef as _0x4e2061,createElement as _0x4a6e67}from'react';import _0x10f16a from'clsx';import{IRemoteInstanceService as _0x304038}from'@univerjs/rpc';var x=(_0x289c48=>(_0x289c48[_0x289c48['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x289c48[_0x289c48[_0x29ff3c(0x236)]=0x1]=_0x29ff3c(0x236),_0x289c48[_0x289c48[_0x29ff3c(0x3f7)]=0x2]=_0x29ff3c(0x3f7),_0x289c48[_0x289c48[_0x29ff3c(0x458)]=0x3]=_0x29ff3c(0x458),_0x289c48[_0x289c48[_0x29ff3c(0x291)]=-0x1]=_0x29ff3c(0x291),_0x289c48))(x||{}),C=(_0x5b6253=>(_0x5b6253[_0x5b6253['UNKNOWN_CMD']=0x0]=_0x29ff3c(0x411),_0x5b6253[_0x5b6253['HELLO']=0x1]=_0x29ff3c(0x238),_0x5b6253[_0x5b6253[_0x29ff3c(0x47f)]=0x2]='JOIN',_0x5b6253[_0x5b6253['LEAVE']=0x3]=_0x29ff3c(0x376),_0x5b6253[_0x5b6253[_0x29ff3c(0x276)]=0x4]=_0x29ff3c(0x276),_0x5b6253[_0x5b6253['HEARTBEAT']=0x5]=_0x29ff3c(0x35d),_0x5b6253[_0x5b6253[_0x29ff3c(0x1e5)]=0x6]='RECV',_0x5b6253[_0x5b6253[_0x29ff3c(0x291)]=-0x1]='UNRECOGNIZED',_0x5b6253))(C||{}),Rt=(_0x7c83fc=>(_0x7c83fc[_0x7c83fc[_0x29ff3c(0x2e2)]=0x0]=_0x29ff3c(0x2e2),_0x7c83fc[_0x7c83fc['OK']=0x1]='OK',_0x7c83fc[_0x7c83fc['FAIL']=0x2]=_0x29ff3c(0x4a8),_0x7c83fc[_0x7c83fc['UNRECOGNIZED']=-0x1]=_0x29ff3c(0x291),_0x7c83fc))(Rt||{}),Di=(_0x25daba,_0x3bcfb2,_0x1d5209,_0x442e9a)=>{const _0x134550=_0x29ff3c;for(var _0x249bb5=_0x3bcfb2,_0x1ba03c=_0x25daba[_0x134550(0x358)]-0x1,_0xc9ea95;_0x1ba03c>=0x0;_0x1ba03c--)(_0xc9ea95=_0x25daba[_0x1ba03c])&&(_0x249bb5=_0xc9ea95(_0x249bb5)||_0x249bb5);return _0x249bb5;},Ni=(_0x501a1e,_0xf166f2)=>(_0xb41002,_0x34f861)=>_0xf166f2(_0xb41002,_0x34f861,_0x501a1e);let Q=class extends _0x4cb958{constructor(_0x2a3247){const _0x5d8d1d=_0x29ff3c;super(),l(this,_0x5d8d1d(0x1fb),new Map()),l(this,_0x5d8d1d(0x239),null),(this[_0x5d8d1d(0x2a2)]=_0x2a3247,this[_0x5d8d1d(0x401)](_0xa56ed7(_0x283c9e(this[_0x5d8d1d(0x2a2)]['getTypeOfUnitDisposed$'](_0x280819[_0x5d8d1d(0x3f7)])[_0x5d8d1d(0x1f6)](_0xc3a3dd(_0x1bcb62=>_0x1bcb62[_0x5d8d1d(0x3d5)]())),this[_0x5d8d1d(0x2a2)][_0x5d8d1d(0x21b)](_0x280819[_0x5d8d1d(0x236)])[_0x5d8d1d(0x1f6)](_0xc3a3dd(_0x1e3be5=>_0x1e3be5[_0x5d8d1d(0x3d5)]())),this['_univerInstanceService'][_0x5d8d1d(0x21b)](_0x280819['UNIVER_SLIDE'])['pipe'](_0xc3a3dd(_0x9e80de=>_0x9e80de[_0x5d8d1d(0x3d5)]())))[_0x5d8d1d(0x27b)](_0x43b0d6=>this[_0x5d8d1d(0x241)](_0x43b0d6)))));}[_0x29ff3c(0x286)](_0x20bdba){this['_currentUser']=_0x20bdba;}[_0x29ff3c(0x2fc)](){const _0x5855ec=_0x29ff3c;return this[_0x5855ec(0x239)];}[_0x29ff3c(0x464)](_0x528a5b,_0x420b39){const _0x50a430=_0x29ff3c;let _0x3ca208=this['_roomMembers'][_0x50a430(0x2a8)](_0x528a5b);_0x3ca208||(_0x3ca208=new Ai(),this['_roomMembers'][_0x50a430(0x1f4)](_0x528a5b,_0x3ca208)),_0x3ca208['updateMember'](_0x420b39);}[_0x29ff3c(0x27e)](_0x82ca5b,_0x3acc09){const _0x39f4e9=_0x29ff3c,_0x1bea60=this[_0x39f4e9(0x1fb)]['get'](_0x82ca5b);_0x1bea60&&_0x1bea60[_0x39f4e9(0x27e)](_0x3acc09);}[_0x29ff3c(0x1e9)](_0x2dc913){const _0x12113d=_0x29ff3c;return this[_0x12113d(0x1fb)][_0x12113d(0x2a8)](_0x2dc913);}['getMember'](_0x25745d,_0xd1d457){const _0x58c6cb=_0x29ff3c,_0x47904d=this['_roomMembers'][_0x58c6cb(0x2a8)](_0x25745d);if(_0x47904d)return _0x47904d[_0x58c6cb(0x3ef)](_0xd1d457);}[_0x29ff3c(0x241)](_0x3b89e1){const _0x30f08c=_0x29ff3c,_0x36f877=this['_roomMembers'][_0x30f08c(0x2a8)](_0x3b89e1);_0x36f877&&(_0x36f877['dispose'](),this[_0x30f08c(0x1fb)]['delete'](_0x3b89e1));}[_0x29ff3c(0x37c)](){const _0x181f6b=_0x29ff3c;this[_0x181f6b(0x1fb)][_0x181f6b(0x468)](_0x2b37a5=>_0x2b37a5['dispose']()),this[_0x181f6b(0x1fb)][_0x181f6b(0x318)]();}};Q=Di([Ni(0x0,_0x416446)],Q);class Ai extends _0x4cb958{constructor(){const _0x4f6124=_0x29ff3c;super(...arguments),l(this,_0x4f6124(0x41f),new Map());}[_0x29ff3c(0x37c)](){const _0x2d14c5=_0x29ff3c;this[_0x2d14c5(0x41f)][_0x2d14c5(0x318)]();}[_0x29ff3c(0x464)](_0x59590a){const _0x30e515=_0x29ff3c;this[_0x30e515(0x41f)][_0x30e515(0x1f4)](_0x59590a[_0x30e515(0x496)],_0x59590a);}[_0x29ff3c(0x27e)](_0x52e9e2){const _0x15896b=_0x29ff3c;this[_0x15896b(0x41f)][_0x15896b(0x2e6)](_0x52e9e2);}[_0x29ff3c(0x3ef)](_0x41d31a){return this['_members']['get'](_0x41d31a);}}function Ui(_0x5dd614){const _0x47d5f5=_0x29ff3c;var _0x53b3d3,_0x329d1e,_0x5e2208;const _0x2f0da0=_0x5dd614[_0x47d5f5(0x44d)],_0x2c9540=JSON[_0x47d5f5(0x45c)](_0x2f0da0);switch(_0x2c9540[_0x47d5f5(0x3fc)]){case C[_0x47d5f5(0x35d)]:case C['HELLO']:{const _0xf40990=_0x2c9540[_0x47d5f5(0x3bf)];return{..._0x2c9540,'data':_0xf40990,'cmd':_0x2c9540[_0x47d5f5(0x3fc)]};}case C[_0x47d5f5(0x47f)]:{const _0x3c4f41=_0x2c9540[_0x47d5f5(0x2a7)];return{..._0x2c9540,'data':_0x3c4f41,'cmd':_0x2c9540[_0x47d5f5(0x3fc)]};}case C[_0x47d5f5(0x1e5)]:{const _0x1396ed=_0x2c9540[_0x47d5f5(0x3ea)];switch(_0x1396ed[_0x47d5f5(0x303)]){case _0x531a33['CHANGESET_ACK']:return{..._0x2c9540,'data':{..._0x1396ed,'data':(_0x53b3d3=_0x1396ed[_0x47d5f5(0x1fc)])==null?void 0x0:_0x53b3d3['cs']},'cmd':_0x2c9540[_0x47d5f5(0x3fc)]};case _0x531a33[_0x47d5f5(0x44b)]:return{..._0x2c9540,'data':{..._0x1396ed,'data':(_0x329d1e=_0x1396ed[_0x47d5f5(0x247)])==null?void 0x0:_0x329d1e['cs']},'cmd':_0x2c9540[_0x47d5f5(0x3fc)]};case _0x531a33[_0x47d5f5(0x49a)]:return{..._0x2c9540,'data':{..._0x1396ed,'data':(_0x5e2208=_0x1396ed[_0x47d5f5(0x307)])==null?void 0x0:_0x5e2208['cs']},'cmd':_0x2c9540[_0x47d5f5(0x3fc)]};case _0x531a33['UPDATE_CURSOR']:return{..._0x2c9540,'data':{..._0x1396ed,'data':_0x1396ed['updateCursorEvent']},'cmd':_0x2c9540[_0x47d5f5(0x3fc)]};case _0x531a33['USERS_ENTER']:return{..._0x2c9540,'data':{..._0x1396ed,'data':_0x1396ed['joinEvent']},'cmd':_0x2c9540[_0x47d5f5(0x3fc)]};case _0x531a33[_0x47d5f5(0x37d)]:return{..._0x2c9540,'data':{..._0x1396ed,'data':_0x1396ed[_0x47d5f5(0x47b)]},'cmd':_0x2c9540[_0x47d5f5(0x3fc)]};case _0x531a33['LIVESHARE_NEW_HOST']:return{..._0x2c9540,'data':{..._0x1396ed,'data':_0x1396ed['liveShareNewHost']},'cmd':_0x2c9540[_0x47d5f5(0x3fc)]};case _0x531a33[_0x47d5f5(0x351)]:case _0x531a33[_0x47d5f5(0x43c)]:return{..._0x2c9540,'data':{..._0x1396ed,'data':_0x1396ed[_0x47d5f5(0x288)]},'cmd':_0x2c9540[_0x47d5f5(0x3fc)]};case _0x531a33[_0x47d5f5(0x4ae)]:return{..._0x2c9540,'data':{..._0x1396ed,'data':_0x1396ed['liveShareNewHost']},'cmd':_0x2c9540['cmd']};case _0x531a33[_0x47d5f5(0x2d6)]:return{..._0x2c9540,'data':_0x1396ed,'cmd':_0x2c9540[_0x47d5f5(0x3fc)]};default:return _0x2c9540;}}default:return _0x2c9540;}}function Li(_0x2f3619){const _0x31a525=_0x29ff3c;switch(_0x2f3619['cmd']){case C[_0x31a525(0x35d)]:case C['HELLO']:return JSON['stringify']({'cmd':_0x2f3619[_0x31a525(0x3fc)],'routeKey':_0x2f3619[_0x31a525(0x1ee)]});case C[_0x31a525(0x276)]:{let _0x458b92;switch(_0x2f3619[_0x31a525(0x44d)][_0x31a525(0x303)]){case _0x531a33[_0x31a525(0x3f8)]:{_0x458b92={'eventID':_0x531a33[_0x31a525(0x3f8)],'updateCursorEvent':_0x2f3619[_0x31a525(0x44d)][_0x31a525(0x44d)]};break;}case _0x531a33[_0x31a525(0x37d)]:{_0x458b92={'eventID':_0x531a33[_0x31a525(0x37d)],'leaveEvent':_0x2f3619[_0x31a525(0x44d)]['data']};break;}case _0x531a33[_0x31a525(0x414)]:{_0x458b92={'eventID':_0x531a33[_0x31a525(0x414)],'joinEvent':_0x2f3619[_0x31a525(0x44d)]['data']};break;}case _0x531a33[_0x31a525(0x25c)]:{_0x458b92={'eventID':_0x531a33['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2f3619[_0x31a525(0x44d)]['data']};break;}case _0x531a33['LIVESHARE_OPERATION']:{_0x458b92={'eventID':_0x531a33[_0x31a525(0x43c)],'liveShareOperation':_0x2f3619['data'][_0x31a525(0x44d)]};break;}case _0x531a33['LIVESHARE_TERMINATE']:{_0x458b92={'eventID':_0x531a33[_0x31a525(0x4ae)],'liveShareTerminate':_0x2f3619['data'][_0x31a525(0x44d)]};break;}case _0x531a33['LIVESHARE_REQUEST_HOST']:{_0x458b92={'eventID':_0x531a33[_0x31a525(0x237)],'liveShareRequestHost':_0x2f3619[_0x31a525(0x44d)][_0x31a525(0x44d)]};break;}case _0x531a33[_0x31a525(0x351)]:{_0x458b92={'eventID':_0x531a33['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x458b92={'eventID':_0x2f3619[_0x31a525(0x44d)]['eventID']};}return JSON[_0x31a525(0x392)]({'cmd':_0x2f3619[_0x31a525(0x3fc)],'routeKey':_0x2f3619[_0x31a525(0x1ee)],'collaMsg':_0x458b92});}case C[_0x31a525(0x47f)]:return JSON[_0x31a525(0x392)]({'cmd':_0x2f3619[_0x31a525(0x3fc)],'routeKey':_0x2f3619[_0x31a525(0x1ee)],'joinReq':_0x2f3619[_0x31a525(0x44d)]});case C['LEAVE']:return JSON[_0x31a525(0x392)]({'cmd':_0x2f3619[_0x31a525(0x3fc)],'routeKey':_0x2f3619['routeKey'],'leaveReq':_0x2f3619[_0x31a525(0x44d)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var ki=(_0x37ced0,_0x5b70a3,_0x3d8199,_0x22ea24)=>{const _0x2df5b4=_0x29ff3c;for(var _0x214202=_0x5b70a3,_0x280666=_0x37ced0[_0x2df5b4(0x358)]-0x1,_0x274097;_0x280666>=0x0;_0x280666--)(_0x274097=_0x37ced0[_0x280666])&&(_0x214202=_0x274097(_0x214202)||_0x214202);return _0x214202;},fe=(_0x314023,_0x26c008)=>(_0x168358,_0x43481a)=>_0x26c008(_0x168358,_0x43481a,_0x314023);const us=_0x555040('univer-pro.collaboration-client-socket-service'),$i=_0x29ff3c(0x23d),Pi='/universer-api/comb';function xi(_0x1ffc35,_0x5c125b,_0x1bb7c7){const _0x2c3c4c=_0x29ff3c;return _0x1ffc35+'/'+_0x5c125b+_0x2c3c4c(0x417)+_0x1bb7c7+'/new_changes';}let ht=class{constructor(_0x1e4e1e,_0x419ae8,_0x43616f,_0x9eee50,_0x6c5bed){const _0x69a4a4=_0x29ff3c;this[_0x69a4a4(0x481)]=_0x1e4e1e,this[_0x69a4a4(0x2a1)]=_0x419ae8,this[_0x69a4a4(0x312)]=_0x43616f,this[_0x69a4a4(0x46f)]=_0x9eee50,this[_0x69a4a4(0x368)]=_0x6c5bed;}[_0x29ff3c(0x1f3)](_0xac288a){const _0xf4da49=_0x29ff3c,_0x2bd741=this[_0xf4da49(0x2a1)]['createSocket'](_0xac288a);if(!_0x2bd741)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x14e9d0=new _0x15b2da(),_0x4e72fb=new _0x2ba0f7();_0x14e9d0[_0xf4da49(0x2f9)](_0xa56ed7(_0x2bd741['close$']['subscribe'](_0x2e632d=>_0x4e72fb[_0xf4da49(0x1d7)](_0x2e632d)))),_0x14e9d0[_0xf4da49(0x2f9)](_0xa56ed7(()=>_0x4e72fb[_0xf4da49(0x360)]()));const _0x5ee55b=new _0x2ba0f7();_0x14e9d0[_0xf4da49(0x2f9)](_0xa56ed7(_0x2bd741[_0xf4da49(0x47d)][_0xf4da49(0x27b)](_0x33e570=>_0x5ee55b[_0xf4da49(0x1d7)](_0x33e570)))),_0x14e9d0[_0xf4da49(0x2f9)](_0xa56ed7(()=>_0x5ee55b['complete']()));const _0x5cdb41=new _0x2ba0f7();_0x14e9d0[_0xf4da49(0x2f9)](_0xa56ed7(_0x2bd741[_0xf4da49(0x204)][_0xf4da49(0x27b)](_0x214355=>{const _0x1eb984=Ui(_0x214355);_0x5cdb41['next'](_0x1eb984);}))),_0x14e9d0[_0xf4da49(0x2f9)](_0xa56ed7(()=>_0x5cdb41['complete']()));const _0x2585b0=()=>{const _0x2c1178=_0xf4da49;_0x5ee55b[_0x2c1178(0x1d7)](new Event(_0x2c1178(0x25d))),_0x4e72fb[_0x2c1178(0x1d7)](new CloseEvent(_0x2c1178(0x25d))),_0x2de35b[_0x2c1178(0x33a)]();},_0x2de35b={'memberID':'','close$':_0x4e72fb[_0xf4da49(0x49d)](),'error$':_0x5ee55b[_0xf4da49(0x49d)](),'open$':_0x2bd741['open$'],'message$':_0x5cdb41[_0xf4da49(0x49d)](),'send':_0x56b49c=>{const _0x4b3da5=_0xf4da49;if(_0x56b49c[_0x4b3da5(0x3fc)]===C['INGEST']){if(_0x56b49c[_0x4b3da5(0x44d)]['eventID']===_0x531a33[_0x4b3da5(0x3b4)]){this['_submitChangeset'](_0x2de35b,_0x56b49c['data'])[_0x4b3da5(0x3b3)](_0x2e48d7=>{const _0x1eaa2f=_0x4b3da5;this[_0x1eaa2f(0x46f)]['error'](_0x2e48d7),_0x2585b0();});return;}if(_0x56b49c[_0x4b3da5(0x44d)]['eventID']===_0x531a33['FETCH_MISSING']){const _0x245abf=_0x56b49c[_0x4b3da5(0x44d)];this[_0x4b3da5(0x308)](_0x245abf)['then'](_0x3ed36b=>{const _0x21a065=_0x4b3da5;_0x5cdb41[_0x21a065(0x1d7)]({'cmd':C['RECV'],'code':Rt['OK'],'routeKey':_0x245abf[_0x21a065(0x44d)]['unitID'],'routeType':'','data':{'eventID':_0x531a33['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x3ed36b}}});})[_0x4b3da5(0x3b3)](_0x9c77d9=>{const _0x3462c7=_0x4b3da5;this[_0x3462c7(0x46f)][_0x3462c7(0x31f)](_0x9c77d9),_0x2585b0();});return;}}_0x2bd741[_0x4b3da5(0x1fd)](Li(_0x56b49c));},'close':()=>{const _0x307fe1=_0xf4da49;_0x2bd741[_0x307fe1(0x33a)](),_0x14e9d0['dispose']();}};return _0x2de35b;}async[_0x29ff3c(0x2d0)](_0x1844f1,_0x4450ba){const _0x1c95d0=_0x29ff3c;var _0x8702b5;const {unitType:_0x5d7f48,unitID:_0x96843e,changeset:_0x2d8dc6}=_0x4450ba['data'],_0x399fe8={'unitID':_0x96843e,'memberID':_0x1844f1['memberID'],'type':_0x5d7f48,'changeset':_0x5dc8f5(_0x2d8dc6)},_0x286f44=xi((_0x8702b5=this[_0x1c95d0(0x312)]['getConfig']($i))!=null?_0x8702b5:Pi,_0x5d7f48,_0x96843e);try{await this[_0x1c95d0(0x481)][_0x1c95d0(0x3ce)](_0x286f44,{'body':_0x399fe8});}catch(_0x141a95){throw this[_0x1c95d0(0x46f)]['error']('[CollaborationSession]',_0x1c95d0(0x483)),_0x141a95;}}async[_0x29ff3c(0x308)](_0x354012){const _0x550492=_0x29ff3c,{unitID:_0x4c95fa,from:_0x22901d,to:_0x4711a3,unitType:_0x369973}=_0x354012['data'];return(await this[_0x550492(0x368)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x4c95fa,'type':_0x369973,'from':_0x22901d,'to':_0x4711a3}))['changesets'];}};ht=ki([fe(0x0,_0x16153f(_0x5b1ea4)),fe(0x1,_0x16153f(_0x4c9f2e)),fe(0x2,_0x3fca08),fe(0x3,_0x4e485b),fe(0x4,_0x438124)],ht);var ds=(_0x28f365,_0x128db9,_0x4e5dbf,_0x25d1b5)=>{const _0x45b763=_0x29ff3c;for(var _0x31ca6b=_0x128db9,_0x1274ec=_0x28f365[_0x45b763(0x358)]-0x1,_0x5b3a66;_0x1274ec>=0x0;_0x1274ec--)(_0x5b3a66=_0x28f365[_0x1274ec])&&(_0x31ca6b=_0x5b3a66(_0x31ca6b)||_0x31ca6b);return _0x31ca6b;},N=(_0x41fa00,_0x551933)=>(_0xdacd45,_0x333c91)=>_0x551933(_0xdacd45,_0x333c91,_0x41fa00),he=(_0x2048b5=>(_0x2048b5[_0x2048b5[_0x29ff3c(0x47a)]=0x0]=_0x29ff3c(0x47a),_0x2048b5[_0x2048b5[_0x29ff3c(0x20a)]=0x1]=_0x29ff3c(0x20a),_0x2048b5[_0x2048b5[_0x29ff3c(0x3f3)]=0x2]=_0x29ff3c(0x3f3),_0x2048b5[_0x2048b5[_0x29ff3c(0x332)]=0x3]='ONLINE',_0x2048b5))(he||{});const Hi='COLLAB_WEB_SOCKET_URL',ji=_0x29ff3c(0x356),Bi=_0x29ff3c(0x374),Fi=0x7530,gs='HEARTBEAT_TIMEOUT',fs=0x2710,Vi=_0x29ff3c(0x45f),Wi=0x4e20,Gi=_0x29ff3c(0x389),Ki=0x3;let lt=class extends _0xecb3e3{constructor(_0x4253a9,_0x39934b,_0x2ee222,_0x3fb7ea,_0x18b821,_0x33712d,_0x524801,_0x45b4a6){const _0x4c4882=_0x29ff3c;super(),l(this,_0x4c4882(0x342),new _0x45e4c4(0x0)),l(this,'sessionStatus$',this[_0x4c4882(0x342)]['asObservable']()),l(this,_0x4c4882(0x43b),new _0x2ba0f7()),l(this,_0x4c4882(0x223),this[_0x4c4882(0x43b)][_0x4c4882(0x49d)]()),l(this,_0x4c4882(0x209)),l(this,_0x4c4882(0x48b)),l(this,_0x4c4882(0x1ec)),(this[_0x4c4882(0x355)]=_0x4253a9,this[_0x4c4882(0x46f)]=_0x2ee222,this[_0x4c4882(0x215)]=_0x3fb7ea,this['_messageService']=_0x18b821,this[_0x4c4882(0x312)]=_0x33712d,this[_0x4c4882(0x482)]=_0x524801,this[_0x4c4882(0x4ac)]=_0x45b4a6,_0x39934b[_0x4c4882(0x1f6)](_0x560ce8(this['dispose$']))[_0x4c4882(0x27b)](_0x377021=>{const _0x3176de=_0x4c4882;var _0x5d3f5e;typeof _0x377021>'u'||(this['_socket']=_0x377021,_0x377021?(this['_joinRoom'](_0x377021),this[_0x3176de(0x48b)]=this['_socket'][_0x3176de(0x204)][_0x3176de(0x27b)](_0x6c3cf3=>{const _0x46ce98=_0x3176de;_0x6c3cf3['routeKey']===this[_0x46ce98(0x355)]&&this[_0x46ce98(0x2f3)](_0x6c3cf3);})):(this[_0x3176de(0x342)][_0x3176de(0x1d7)](0x2),(_0x5d3f5e=this[_0x3176de(0x48b)])==null||_0x5d3f5e['unsubscribe'](),this[_0x3176de(0x48b)]=null));}),this[_0x4c4882(0x401)](this[_0x4c4882(0x215)][_0x4c4882(0x3e5)](()=>{const _0x25dd8a=_0x4c4882;var _0x6fd280;(_0x6fd280=this[_0x25dd8a(0x209)])==null||_0x6fd280[_0x25dd8a(0x1fd)]({'cmd':C[_0x25dd8a(0x376)],'data':{'roomID':this[_0x25dd8a(0x355)]}});})));}get[_0x29ff3c(0x2da)](){const _0x48ca08=_0x29ff3c;return this[_0x48ca08(0x342)][_0x48ca08(0x29c)]();}['getMemberID'](){const _0x3dc43f=_0x29ff3c;var _0xbbb413,_0x8998da;return(_0x8998da=(_0xbbb413=this[_0x3dc43f(0x209)])==null?void 0x0:_0xbbb413[_0x3dc43f(0x496)])!=null?_0x8998da:null;}[_0x29ff3c(0x37c)](){const _0x23a28d=_0x29ff3c;super[_0x23a28d(0x37c)](),this[_0x23a28d(0x320)][_0x23a28d(0x1d7)](),this[_0x23a28d(0x320)]['complete']();}[_0x29ff3c(0x2f3)](_0x18fe2c){const _0x56a301=_0x29ff3c;_0x18fe2c[_0x56a301(0x3fc)]===C['JOIN']?this[_0x56a301(0x494)](_0x18fe2c):_0x18fe2c['cmd']===C['RECV']&&this['_onRecvEvent'](_0x18fe2c);}[_0x29ff3c(0x41a)](_0x286d2d){const _0x11f565=_0x29ff3c;this[_0x11f565(0x342)][_0x11f565(0x1d7)](0x1),_0x286d2d[_0x11f565(0x1fd)]({'cmd':C[_0x11f565(0x47f)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x29ff3c(0x494)](_0x22ae97){const _0x2dd368=_0x29ff3c;var _0x566c85;if(_0x22ae97[_0x2dd368(0x2b8)]===Rt[_0x2dd368(0x4a8)]){this[_0x2dd368(0x36f)][_0x2dd368(0x3c7)]({'type':_0x1a069a['Warning'],'content':this[_0x2dd368(0x482)]['t'](_0x2dd368(0x489))}),this['_sessionStatus$'][_0x2dd368(0x1d7)](0x2);return;}this[_0x2dd368(0x342)]['next'](0x3);const _0x58e530=(_0x566c85=_0x22ae97['data'][_0x2dd368(0x34b)][this[_0x2dd368(0x355)]])==null?void 0x0:_0x566c85['members'];_0x58e530&&_0x58e530[_0x2dd368(0x468)](_0x52ccd3=>this[_0x2dd368(0x4ac)][_0x2dd368(0x464)](this[_0x2dd368(0x355)],_0x52ccd3));}['_onRecvEvent'](_0x27f964){const _0x5b96ab=_0x29ff3c;try{const _0x4076a4=_0x27f964[_0x5b96ab(0x44d)];switch(_0x4076a4[_0x5b96ab(0x303)]){case _0x531a33[_0x5b96ab(0x414)]:this[_0x5b96ab(0x339)](_0x4076a4),this[_0x5b96ab(0x43b)][_0x5b96ab(0x1d7)](_0x4076a4);break;case _0x531a33['USERS_LEAVE']:this[_0x5b96ab(0x445)](_0x4076a4),this[_0x5b96ab(0x43b)]['next'](_0x4076a4);break;case _0x531a33[_0x5b96ab(0x2d2)]:this[_0x5b96ab(0x3d7)](),this[_0x5b96ab(0x43b)][_0x5b96ab(0x1d7)](_0x4076a4);break;case _0x531a33[_0x5b96ab(0x2d6)]:this[_0x5b96ab(0x46f)][_0x5b96ab(0x31f)](_0x5b96ab(0x498)+JSON[_0x5b96ab(0x392)](_0x4076a4)),this[_0x5b96ab(0x43b)][_0x5b96ab(0x1d7)](_0x4076a4);break;default:this[_0x5b96ab(0x43b)][_0x5b96ab(0x1d7)](_0x4076a4);}}catch(_0x235bb2){this[_0x5b96ab(0x46f)][_0x5b96ab(0x31f)](_0x235bb2,_0x27f964);}}[_0x29ff3c(0x339)](_0x1b5599){const _0x1b3e46=_0x29ff3c;this['_memberService'][_0x1b3e46(0x464)](this[_0x1b3e46(0x355)],_0x1b5599[_0x1b3e46(0x44d)]);}[_0x29ff3c(0x445)](_0x1010ef){const _0x15ae62=_0x29ff3c;this[_0x15ae62(0x4ac)][_0x15ae62(0x27e)](this[_0x15ae62(0x355)],_0x1010ef[_0x15ae62(0x44d)][_0x15ae62(0x496)]);}async[_0x29ff3c(0x1fd)](_0x3d3ca9,_0x57799a){const _0x59163f=_0x29ff3c;if(this[_0x59163f(0x2da)]!==0x3||!this[_0x59163f(0x209)])throw new Error(_0x59163f(0x394));try{_0x3d3ca9[_0x59163f(0x303)]===_0x531a33[_0x59163f(0x44b)]&&this[_0x59163f(0x49f)](),this['_socket'][_0x59163f(0x1fd)]({'cmd':C[_0x59163f(0x276)],'routeKey':_0x57799a,'routeType':'','data':_0x3d3ca9});}catch(_0x43fdd4){this['_logService'][_0x59163f(0x31f)](_0x43fdd4);}}[_0x29ff3c(0x49f)](){const _0x2aabb4=_0x29ff3c;var _0x4e7922;this[_0x2aabb4(0x1ec)]=window[_0x2aabb4(0x416)](()=>{const _0x554813=_0x2aabb4;this['_collaborationTimeoutTimer']=null,this[_0x554813(0x36f)]['show']({'type':_0x1a069a['Error'],'content':this[_0x554813(0x482)]['t'](_0x554813(0x278))});},(_0x4e7922=this[_0x2aabb4(0x312)][_0x2aabb4(0x2f0)](gs))!=null?_0x4e7922:fs);}['_clearCollaborationTimeoutTimer'](){const _0x518e7f=_0x29ff3c;this[_0x518e7f(0x1ec)]&&(clearTimeout(this[_0x518e7f(0x1ec)]),this['_collaborationTimeoutTimer']=null);}};lt=ds([N(0x2,_0x4e485b),N(0x3,_0x31f8ee),N(0x4,_0x2bb05d),N(0x5,_0x3fca08),N(0x6,_0x16153f(_0xa9bb0e)),N(0x7,_0x16153f(Q))],lt);let Re=class extends _0x4cb958{constructor(_0x37ecbc,_0x5977a5,_0x20f35e,_0x294349,_0x4696db,_0x22916e){const _0x5294ea=_0x29ff3c;super(),l(this,_0x5294ea(0x43d),new _0x45e4c4(void 0x0)),l(this,_0x5294ea(0x22a),new Map()),l(this,_0x5294ea(0x3cb),new _0x45e4c4(0x0)),l(this,'status$',this[_0x5294ea(0x3cb)][_0x5294ea(0x49d)]()),l(this,_0x5294ea(0x31b),!0x1),l(this,_0x5294ea(0x3ca)),l(this,_0x5294ea(0x39d)),l(this,_0x5294ea(0x37a)),l(this,_0x5294ea(0x3c5),0x0),(this[_0x5294ea(0x2c7)]=_0x37ecbc,this[_0x5294ea(0x482)]=_0x5977a5,this[_0x5294ea(0x36f)]=_0x20f35e,this[_0x5294ea(0x46f)]=_0x294349,this[_0x5294ea(0x312)]=_0x4696db,this[_0x5294ea(0x420)]=_0x22916e);}get[_0x29ff3c(0x209)](){const _0x160688=_0x29ff3c;return this['_socket$'][_0x160688(0x29c)]();}[_0x29ff3c(0x37c)](){const _0x21d32f=_0x29ff3c;super[_0x21d32f(0x37c)](),this['_sessions'][_0x21d32f(0x468)](_0x3fda04=>_0x3fda04[_0x21d32f(0x37c)]()),this['_sessions']['clear'](),this[_0x21d32f(0x3cb)][_0x21d32f(0x360)]();}async[_0x29ff3c(0x277)](_0x535ed7){const _0x21f567=_0x29ff3c;if(this[_0x21f567(0x22a)][_0x21f567(0x3bd)](_0x535ed7))return this[_0x21f567(0x22a)]['get'](_0x535ed7);this[_0x21f567(0x1e0)]();const _0x1ff97a=this['_injector'][_0x21f567(0x3bb)](lt,_0x535ed7,this[_0x21f567(0x43d)][_0x21f567(0x49d)]());return this[_0x21f567(0x22a)][_0x21f567(0x1f4)](_0x535ed7,_0x1ff97a),_0x1ff97a;}[_0x29ff3c(0x369)](){const _0x5859fb=_0x29ff3c;var _0x459afd;const _0x21c243=(_0x459afd=this[_0x5859fb(0x312)]['getConfig'](Hi))!=null?_0x459afd:ji;return this[_0x5859fb(0x420)][_0x5859fb(0x1f3)](_0x21c243);}[_0x29ff3c(0x1e0)](){const _0x85985f=_0x29ff3c;try{const _0x206924=this[_0x85985f(0x369)]();if(_0x206924){const _0x4393da=_0x206924[_0x85985f(0x1fd)];_0x206924[_0x85985f(0x1fd)]=_0x834ed5=>(this['_rescheduleHeartbeatEvent'](),_0x4393da['apply'](_0x206924,[_0x834ed5])),_0x206924[_0x85985f(0x204)][_0x85985f(0x27b)](_0x9a2244=>this[_0x85985f(0x404)](_0x206924,_0x9a2244)),_0x206924[_0x85985f(0x47d)][_0x85985f(0x1f6)](_0x56a0f9(0x1))[_0x85985f(0x27b)](_0x49fbf0=>this['_logService']['error'](_0x85985f(0x333),_0x49fbf0)),_0x206924[_0x85985f(0x23c)]['pipe'](_0x56a0f9(0x1))[_0x85985f(0x27b)](()=>{const _0x1b22d6=_0x85985f;this[_0x1b22d6(0x227)](_0x206924);}),_0x206924[_0x85985f(0x304)][_0x85985f(0x1f6)](_0x56a0f9(0x1))[_0x85985f(0x27b)](_0x1514e0=>{const _0x3ea625=_0x85985f;this['_logService'][_0x3ea625(0x30b)]('[CollaborationSessionService]',_0x3ea625(0x439),_0x1514e0),this[_0x3ea625(0x3b6)]();});}}catch(_0x183d0f){this['_logService'][_0x85985f(0x31f)](_0x183d0f),this[_0x85985f(0x3b6)]();}}[_0x29ff3c(0x227)](_0xe7e0e6){const _0x395f0e=_0x29ff3c;this[_0x395f0e(0x46f)][_0x395f0e(0x30b)](_0x395f0e(0x43a),'socket\x20open.'),_0xe7e0e6[_0x395f0e(0x1fd)]({'cmd':C[_0x395f0e(0x238)]}),this[_0x395f0e(0x3d4)]();}[_0x29ff3c(0x3b6)](){const _0x268bc7=_0x29ff3c;var _0x2ba07b;this[_0x268bc7(0x3cb)][_0x268bc7(0x1d7)](0x2),this[_0x268bc7(0x43d)][_0x268bc7(0x1d7)](null),this[_0x268bc7(0x335)](),this[_0x268bc7(0x341)](),this[_0x268bc7(0x31b)]=!0x1,this[_0x268bc7(0x3c5)]<((_0x2ba07b=this[_0x268bc7(0x312)][_0x268bc7(0x2f0)](Gi))!=null?_0x2ba07b:Ki)?(this[_0x268bc7(0x292)](this[_0x268bc7(0x3c5)]),this[_0x268bc7(0x3c5)]+=0x1):this['_messageService'][_0x268bc7(0x3c7)]({'type':_0x1a069a[_0x268bc7(0x399)],'content':this[_0x268bc7(0x482)]['t']('session.connection-failed')});}[_0x29ff3c(0x292)](_0x31a860){const _0x1fdb70=_0x29ff3c;var _0x28e9c2;const _0x4eee36=((_0x28e9c2=this['_configService'][_0x1fdb70(0x2f0)](Vi))!=null?_0x28e9c2:Wi)*0x2**_0x31a860;this[_0x1fdb70(0x36f)][_0x1fdb70(0x3c7)]({'type':_0x1a069a[_0x1fdb70(0x34f)],'content':this[_0x1fdb70(0x482)]['t']('session.will-retry')}),this[_0x1fdb70(0x37a)]=setTimeout(()=>{const _0xa7d6c9=_0x1fdb70;this[_0xa7d6c9(0x1e0)](),clearTimeout(this[_0xa7d6c9(0x37a)]),this[_0xa7d6c9(0x37a)]=null;},_0x4eee36);}[_0x29ff3c(0x3d4)](){const _0x2bb33b=_0x29ff3c;var _0x4aca83;this[_0x2bb33b(0x341)](),this[_0x2bb33b(0x3ca)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x4aca83=this['_configService'][_0x2bb33b(0x2f0)](Bi))!=null?_0x4aca83:Fi);}[_0x29ff3c(0x272)](){const _0x432d64=_0x29ff3c;this[_0x432d64(0x209)][_0x432d64(0x1fd)]({'cmd':C[_0x432d64(0x35d)]}),this[_0x432d64(0x3de)]();}[_0x29ff3c(0x3de)](){const _0x5c4868=_0x29ff3c;var _0x386bd4;this[_0x5c4868(0x39d)]=setTimeout(()=>this[_0x5c4868(0x3b6)](),(_0x386bd4=this[_0x5c4868(0x312)][_0x5c4868(0x2f0)](gs))!=null?_0x386bd4:fs);}[_0x29ff3c(0x404)](_0x217dc8,_0xf45db7){const _0x12b09b=_0x29ff3c,{cmd:_0x898744}=_0xf45db7;_0x898744===C['HELLO']&&!this[_0x12b09b(0x31b)]&&(_0x217dc8[_0x12b09b(0x496)]=_0xf45db7[_0x12b09b(0x44d)]['memberID'],this[_0x12b09b(0x43d)][_0x12b09b(0x1d7)](_0x217dc8),this[_0x12b09b(0x3cb)][_0x12b09b(0x1d7)](0x3),this[_0x12b09b(0x31b)]=!0x0),_0x898744===C['HEARTBEAT']&&this['_clearTimeoutTimer'](),this[_0x12b09b(0x3d4)]();}[_0x29ff3c(0x341)](){const _0x3dc6b9=_0x29ff3c;this[_0x3dc6b9(0x3ca)]!=null&&(clearTimeout(this[_0x3dc6b9(0x3ca)]),this[_0x3dc6b9(0x3ca)]=null);}[_0x29ff3c(0x335)](){const _0x45f58b=_0x29ff3c;this[_0x45f58b(0x39d)]!=null&&(clearTimeout(this[_0x45f58b(0x39d)]),this[_0x45f58b(0x39d)]=null);}};Re=ds([N(0x0,_0x16153f(_0x5945df)),N(0x1,_0x16153f(_0xa9bb0e)),N(0x2,_0x2bb05d),N(0x3,_0x4e485b),N(0x4,_0x3fca08),N(0x5,us)],Re);var Yi=(_0x127c72,_0x25dd0b,_0x539182,_0x26793b)=>{const _0x584fac=_0x29ff3c;for(var _0x4d0909=_0x25dd0b,_0x417293=_0x127c72[_0x584fac(0x358)]-0x1,_0x2c861e;_0x417293>=0x0;_0x417293--)(_0x2c861e=_0x127c72[_0x417293])&&(_0x4d0909=_0x2c861e(_0x4d0909)||_0x4d0909);return _0x4d0909;},me=(_0x144ba7,_0x1dbe58)=>(_0x32c84b,_0x5e0415)=>_0x1dbe58(_0x32c84b,_0x5e0415,_0x144ba7);const Xi=_0x29ff3c(0x33e),Ji=0x3e8;let y=class extends _0x4cb958{constructor(_0x5d2c20,_0x5135b4,_0x13db47,_0x1344fa,_0x5242c5){const _0x4eda3a=_0x29ff3c;super(),l(this,_0x4eda3a(0x1ef),new Map()),l(this,_0x4eda3a(0x3ee),new Map()),l(this,_0x4eda3a(0x1f2),!0x1),(this['_configService']=_0x5d2c20,this[_0x4eda3a(0x311)]=_0x5135b4,this[_0x4eda3a(0x215)]=_0x13db47,this[_0x4eda3a(0x482)]=_0x1344fa,this['_revisionService']=_0x5242c5,this[_0x4eda3a(0x388)]());}[_0x29ff3c(0x1fa)](){this['_disabled']=!0x0;}[_0x29ff3c(0x29d)](){const _0x2c8cef=_0x29ff3c;this[_0x2c8cef(0x1f2)]=!0x1;}['dispose'](){const _0x30f1dc=_0x29ff3c;this['_exhaustSavingTask']()[_0x30f1dc(0x42a)](()=>super[_0x30f1dc(0x37c)]());}async[_0x29ff3c(0x2ee)](_0x333bde){const _0x481b38=_0x29ff3c;return this[_0x481b38(0x1f2)]?null:this['_localStorageService']['getItem'](xt(_0x333bde));}async[_0x29ff3c(0x28c)](_0x4b6f0c,_0x5e7fbe){const _0x4c8bc3=_0x29ff3c;return!!this[_0x4c8bc3(0x311)]['setItem'](_0x4b6f0c,_0x5e7fbe);}[_0x29ff3c(0x2c2)](_0x257628,_0x5f5749,_0x113a29,_0x4da57d){const _0x5b371b=_0x29ff3c,_0x23d9ea=this[_0x5b371b(0x443)][_0x5b371b(0x45a)](_0x257628);this[_0x5b371b(0x1ef)][_0x5b371b(0x1f4)](_0x257628,{'unitID':_0x257628,'type':_0x5f5749,'awaitingChangeset':_0x113a29,'mutations':_0x4da57d,'rev':_0x23d9ea}),this[_0x5b371b(0x3ee)]['has'](_0x257628)||this[_0x5b371b(0x400)](_0x257628);}[_0x29ff3c(0x400)](_0x5c74c5){const _0x5bb54f=_0x29ff3c,_0x1eee15=this[_0x5bb54f(0x225)]();_0x1eee15===0x0?this[_0x5bb54f(0x42f)](_0x5c74c5):this['_saveTaskMap'][_0x5bb54f(0x1f4)](_0x5c74c5,setTimeout(()=>this[_0x5bb54f(0x42f)](_0x5c74c5),_0x1eee15));}[_0x29ff3c(0x225)](){const _0x27267c=_0x29ff3c;var _0x4b8b7f;return(_0x4b8b7f=this[_0x27267c(0x312)][_0x27267c(0x2f0)](Xi))!=null?_0x4b8b7f:Ji;}['_saveCache'](_0x2621f3){const _0x2d5fa9=_0x29ff3c,_0x1dc91a=this[_0x2d5fa9(0x3ee)][_0x2d5fa9(0x2a8)](_0x2621f3);return _0x1dc91a!==void 0x0&&window[_0x2d5fa9(0x267)](_0x1dc91a),this[_0x2d5fa9(0x311)][_0x2d5fa9(0x48f)](xt(_0x2621f3),this[_0x2d5fa9(0x1ef)][_0x2d5fa9(0x2a8)](_0x2621f3))[_0x2d5fa9(0x42a)](()=>this[_0x2d5fa9(0x3ee)][_0x2d5fa9(0x2e6)](_0x2621f3));}async['_exhaustSavingTask'](){const _0xf1f90e=_0x29ff3c,_0x137a49=[];this[_0xf1f90e(0x3ee)][_0xf1f90e(0x468)]((_0x40fa32,_0x412073)=>{const _0x1370da=_0xf1f90e;window[_0x1370da(0x267)](_0x40fa32),_0x137a49['push'](this['_saveCache'](_0x412073)[_0x1370da(0x42a)](()=>{const _0x823b99=_0x1370da;this['_saveTaskMap'][_0x823b99(0x2e6)](_0x412073);}));}),await Promise['all'](_0x137a49);}[_0x29ff3c(0x388)](){const _0x2f3d1c=_0x29ff3c;this[_0x2f3d1c(0x401)](this[_0x2f3d1c(0x215)][_0x2f3d1c(0x478)](()=>{const _0x3667f8=_0x2f3d1c;if(this['_saveTaskMap'][_0x3667f8(0x322)])return this[_0x3667f8(0x482)]['t'](_0x3667f8(0x337));}));}};y=Yi([me(0x0,_0x3fca08),me(0x1,_0x7a84be),me(0x2,_0x31f8ee),me(0x3,_0x16153f(_0xa9bb0e)),me(0x4,_0x16153f(_0x2fb796))],y);function xt(_0x92808e){return'unit-cache-'+_0x92808e;}const Xe=_0x555040(_0x29ff3c(0x42e));var ms=(_0x231e8d=>(_0x231e8d[_0x231e8d[_0x29ff3c(0x3b1)]=0x0]=_0x29ff3c(0x3b1),_0x231e8d[_0x231e8d['OTHER_CLIENTS_EDITING']=0x1]=_0x29ff3c(0x2f7),_0x231e8d))(ms||{});const Ht=0x7530,jt=_0x29ff3c(0x34a);class zi extends _0x4cb958{constructor(){const _0x1353b3=_0x29ff3c;super(),l(this,'_id',_0x4dfeda['generateRandomId']()),l(this,_0x1353b3(0x261),new Set()),l(this,_0x1353b3(0x287),new Map()),l(this,_0x1353b3(0x359),null),l(this,_0x1353b3(0x344),new Map()),l(this,_0x1353b3(0x317),new Map()),this[_0x1353b3(0x49b)]();}[_0x29ff3c(0x37c)](){const _0x8aa72e=_0x29ff3c;super[_0x8aa72e(0x37c)](),this[_0x8aa72e(0x344)]['forEach']((_0x65c570,_0x4e17c5)=>this[_0x8aa72e(0x324)](_0x4e17c5)),this[_0x8aa72e(0x359)]&&window[_0x8aa72e(0x3a2)](this[_0x8aa72e(0x359)]);}[_0x29ff3c(0x488)](_0x3a2d02){const _0x51f796=_0x29ff3c;return this['_ensureSubject'](_0x3a2d02)[_0x51f796(0x1f6)](_0x45e7ef());}[_0x29ff3c(0x1d5)](_0x18783f){const _0x46e5f5=_0x29ff3c;this[_0x46e5f5(0x261)]['size']===0x0&&this[_0x46e5f5(0x1e3)](),this[_0x46e5f5(0x261)][_0x46e5f5(0x2f9)](_0x18783f),this[_0x46e5f5(0x395)]({'type':0x0,'memberID':this[_0x46e5f5(0x262)],'unitID':_0x18783f});}[_0x29ff3c(0x485)](_0x9677ed){const _0x3e381e=_0x29ff3c;this['_selfUnitIDs'][_0x3e381e(0x2e6)](_0x9677ed),this[_0x3e381e(0x261)][_0x3e381e(0x322)]===0x0&&this[_0x3e381e(0x359)]&&window[_0x3e381e(0x3a2)](this[_0x3e381e(0x359)]);}[_0x29ff3c(0x49b)](){const _0x29bb14=_0x29ff3c;this[_0x29bb14(0x401)](_0xa56ed7(_0x3a4e7b(window,_0x29bb14(0x35e))[_0x29bb14(0x27b)](_0x85e117=>{const _0x15b84f=_0x29bb14;if(_0x85e117['key']!==jt||!_0x85e117[_0x15b84f(0x319)])return;const _0x3b4029=JSON[_0x15b84f(0x45c)](_0x85e117[_0x15b84f(0x319)]);this[_0x15b84f(0x378)](_0x3b4029);}))),window[_0x29bb14(0x4a6)](_0x29bb14(0x33b),()=>this[_0x29bb14(0x395)]({'type':0x1,'memberID':this[_0x29bb14(0x262)],'unitIDs':Array[_0x29bb14(0x372)](this['_selfUnitIDs'])}));}[_0x29ff3c(0x378)](_0x22546b){const _0x378d8d=_0x29ff3c;switch(_0x22546b['type']){case 0x0:this[_0x378d8d(0x224)](_0x22546b);break;case 0x1:this[_0x378d8d(0x323)](_0x22546b);break;case 0x2:this['_handleHeartbeatEvent'](_0x22546b);break;}}[_0x29ff3c(0x224)](_0x1f3559){const _0x291a1a=_0x29ff3c,{unitID:_0x1c0f30,memberID:_0x18c9bd}=_0x1f3559;if(!this[_0x291a1a(0x287)]['has'](_0x1c0f30)||!this['_unitOnClients'][_0x291a1a(0x2a8)](_0x1c0f30)[_0x291a1a(0x3bd)](_0x18c9bd)){const _0x38d01a=this[_0x291a1a(0x287)]['get'](_0x1c0f30)||new Set();_0x38d01a[_0x291a1a(0x2f9)](_0x18c9bd),this['_unitOnClients']['set'](_0x1c0f30,_0x38d01a),this[_0x291a1a(0x1dd)](_0x18c9bd),this[_0x291a1a(0x395)]({'type':0x0,'memberID':this['_id'],'unitID':_0x1c0f30});}else this['_ensureSubject'](_0x1c0f30)[_0x291a1a(0x1d7)](0x1);}[_0x29ff3c(0x1dd)](_0x195dbc){const _0x2267f6=_0x29ff3c;this[_0x2267f6(0x324)](_0x195dbc);const _0x527802=window[_0x2267f6(0x416)](()=>{const _0x1055ba=_0x2267f6;this[_0x1055ba(0x287)][_0x1055ba(0x468)](_0x3738e8=>{const _0xbfdb5e=_0x1055ba;_0x3738e8[_0xbfdb5e(0x2e6)](_0x195dbc);});},Ht*0x2);this[_0x2267f6(0x344)]['set'](_0x195dbc,_0x527802);}[_0x29ff3c(0x324)](_0xb75816){const _0x16eacc=_0x29ff3c;if(this[_0x16eacc(0x344)][_0x16eacc(0x3bd)](_0xb75816)){const _0x330239=this[_0x16eacc(0x344)][_0x16eacc(0x2a8)](_0xb75816);_0x330239&&window[_0x16eacc(0x267)](_0x330239),this['_clearOtherTimers'][_0x16eacc(0x1f4)](_0xb75816,null);}}[_0x29ff3c(0x323)](_0x2bf6ba){const _0x3654fa=_0x29ff3c,{memberID:_0x5d9005,unitIDs:_0x3ff4f7}=_0x2bf6ba;_0x3ff4f7[_0x3654fa(0x468)](_0x185d69=>{const _0x2f7cc2=_0x3654fa;var _0x1f8c9f;const _0x19252b=this[_0x2f7cc2(0x287)][_0x2f7cc2(0x2a8)](_0x185d69);_0x19252b&&(_0x19252b[_0x2f7cc2(0x2e6)](_0x5d9005),(_0x1f8c9f=this[_0x2f7cc2(0x410)](_0x185d69))==null||_0x1f8c9f[_0x2f7cc2(0x1d7)](_0x19252b[_0x2f7cc2(0x322)]===0x0?0x0:0x1));}),this[_0x3654fa(0x324)](_0x5d9005);}[_0x29ff3c(0x39c)](_0xe1a3f9){const _0x1e0121=_0x29ff3c;this[_0x1e0121(0x1dd)](_0xe1a3f9['memberID']);}[_0x29ff3c(0x395)](_0x739898){const _0x10a9f7=_0x29ff3c;localStorage[_0x10a9f7(0x48f)](jt,JSON[_0x10a9f7(0x392)](_0x739898));}[_0x29ff3c(0x1e3)](){const _0x501055=_0x29ff3c;this[_0x501055(0x359)]=window[_0x501055(0x280)](()=>{const _0x993c38=_0x501055;this[_0x993c38(0x395)]({'type':0x2,'memberID':this[_0x993c38(0x262)]});},Ht);}[_0x29ff3c(0x410)](_0x222b67){const _0xfed7ea=_0x29ff3c;return this['_unitStatus'][_0xfed7ea(0x3bd)](_0x222b67)||this[_0xfed7ea(0x317)][_0xfed7ea(0x1f4)](_0x222b67,new _0x45e4c4(0x0)),this[_0xfed7ea(0x317)]['get'](_0x222b67);}}var qi=(_0x50ee1c,_0x108bd0,_0x162343,_0x4ae448)=>{for(var _0x4c6117=_0x108bd0,_0x53a145=_0x50ee1c['length']-0x1,_0x2e1458;_0x53a145>=0x0;_0x53a145--)(_0x2e1458=_0x50ee1c[_0x53a145])&&(_0x4c6117=_0x2e1458(_0x4c6117)||_0x4c6117);return _0x4c6117;},Bt=(_0x4cef66,_0x27c883)=>(_0x573bfc,_0x37b1be)=>_0x27c883(_0x573bfc,_0x37b1be,_0x4cef66);let Be=class{constructor(_0x5f0437,_0x415411){const _0x4e15b9=_0x29ff3c;this[_0x4e15b9(0x2c7)]=_0x5f0437,this[_0x4e15b9(0x23e)]=_0x415411;}[_0x29ff3c(0x331)](_0x24196b){const _0x206b99=_0x29ff3c;this['_transformUndoRedoStack'](_0x24196b),this[_0x206b99(0x3e4)](_0x24196b);}[_0x29ff3c(0x1f0)](_0x55bd60){const _0x47fdd6=_0x29ff3c,_0x12db86=this[_0x47fdd6(0x2c7)][_0x47fdd6(0x2a8)](_0x2e913b),{redoCache:_0x3b44bb}=_0x12db86['getUndoRedoMutationParamsCache']();if(_0x3b44bb[_0x47fdd6(0x358)]===0x0)return _0x55bd60;let _0x23956c=_0x4dfeda[_0x47fdd6(0x242)](_0x55bd60[_0x47fdd6(0x309)][0x0]);for(let _0x53a917=0x0;_0x53a917<_0x3b44bb[_0x47fdd6(0x358)];_0x53a917++){const _0x426b67={'id':_0x47fdd6(0x3eb),'params':{..._0x3b44bb[_0x53a917]}},_0x13e265=this[_0x47fdd6(0x23e)][_0x47fdd6(0x248)](_0x23956c,_0x426b67,!0x1);if(_0x58b9af(_0x13e265))throw _0x13e265[_0x47fdd6(0x31f)];_0x23956c=_0x13e265[_0x47fdd6(0x2f2)];}return{..._0x4dfeda[_0x47fdd6(0x242)](_0x55bd60),'mutations':[_0x23956c]};}['_transformUndoRedoStack'](_0x411c5e){const _0x14a355=_0x29ff3c,_0x16c036=this[_0x14a355(0x2c7)]['get'](_0x2e913b),{undoCache:_0x363440,redoCache:_0x1bebc0}=_0x16c036[_0x14a355(0x40d)]();if(_0x363440['length']===0x0||_0x1bebc0['length']===0x0)return;const _0x2f9b1f=[],_0x40c40e=[];let _0x555c1b=_0x4dfeda[_0x14a355(0x242)](_0x411c5e[_0x14a355(0x309)][0x0]),_0x4ddbef=_0x4dfeda[_0x14a355(0x242)](_0x411c5e[_0x14a355(0x309)][0x0]);for(let _0x51c2d7=_0x363440['length']-0x1;_0x51c2d7>=0x0;_0x51c2d7--){const _0x4ee9b3={'id':'doc.mutation.rich-text-editing','params':{..._0x363440[_0x51c2d7]}},_0x2d7782={'id':_0x14a355(0x3eb),'params':{..._0x1bebc0[_0x51c2d7]}},_0x3fc87f=this[_0x14a355(0x23e)][_0x14a355(0x248)](_0x555c1b,_0x4ee9b3,!0x1),_0x5b1507=this[_0x14a355(0x23e)][_0x14a355(0x248)](_0x4ddbef,_0x2d7782,!0x1);if(_0x58b9af(_0x3fc87f))throw _0x3fc87f['error'];if(_0x58b9af(_0x5b1507))throw _0x5b1507['error'];_0x2f9b1f[_0x14a355(0x435)](_0x3fc87f[_0x14a355(0x2a9)][_0x14a355(0x475)]),_0x40c40e[_0x14a355(0x435)](_0x5b1507[_0x14a355(0x2a9)][_0x14a355(0x475)]),_0x555c1b=_0x3fc87f[_0x14a355(0x2f2)],_0x4ddbef=_0x5b1507[_0x14a355(0x2f2)];}_0x16c036[_0x14a355(0x2f6)]({'undoCache':_0x2f9b1f,'redoCache':_0x40c40e});}[_0x29ff3c(0x3e4)](_0x176927){const _0x27a898=_0x29ff3c,_0x5cd191=this[_0x27a898(0x2c7)][_0x27a898(0x2a8)](_0x2e913b),_0x5579b8=_0x5cd191['getActiveRange']();if(_0x5579b8==null)return;const _0xffbd8f=[{'id':_0x27a898(0x3eb),'params':{'unitId':_0x176927[_0x27a898(0x2c6)],'actions':[],'textRanges':[_0x5579b8]}}],_0x141ef6=this['_transformService'][_0x27a898(0x429)](_0x176927,_0xffbd8f);if(!_0x18a402(_0x141ef6))throw _0x141ef6[_0x27a898(0x31f)];const _0xb78b7=_0x141ef6[_0x27a898(0x2a9)][0x0][_0x27a898(0x475)][_0x27a898(0x27a)];Array[_0x27a898(0x2b5)](_0xb78b7)&&_0xb78b7[_0x27a898(0x358)]&&_0x5cd191[_0x27a898(0x2bc)](_0xb78b7[0x0]);}};Be=qi([Bt(0x0,_0x16153f(_0x5945df)),Bt(0x1,_0x3b0b3e)],Be);var Qi=(_0x1f3687,_0x201dbd,_0x2887ec,_0x2f1638)=>{const _0x121df9=_0x29ff3c;for(var _0x1cbb2c=_0x201dbd,_0x469020=_0x1f3687[_0x121df9(0x358)]-0x1,_0x4a2908;_0x469020>=0x0;_0x469020--)(_0x4a2908=_0x1f3687[_0x469020])&&(_0x1cbb2c=_0x4a2908(_0x1cbb2c)||_0x1cbb2c);return _0x1cbb2c;},Ft=(_0x2864d6,_0x4569d0)=>(_0x248d96,_0x3f8e0c)=>_0x4569d0(_0x248d96,_0x3f8e0c,_0x2864d6);let Fe=class{constructor(_0x1c71b2,_0x308b01){this['_injector']=_0x1c71b2,this['_transformService']=_0x308b01;}[_0x29ff3c(0x2e9)](_0x1b939d){const _0x31a872=_0x29ff3c;var _0x1785e4;const _0x25dbfb=this[_0x31a872(0x2c7)][_0x31a872(0x2a8)](_0x4385b1),_0x3a4730=(_0x1785e4=_0x25dbfb[_0x31a872(0x3a9)]())!=null?_0x1785e4:[],_0x5e86d0=_0x3a4730==null?void 0x0:_0x3a4730['map'](_0xdcd3d2);if(_0x5e86d0['length']===0x0)return;const _0x832e7c=[{'id':_0x31a872(0x3eb),'params':{'unitId':_0x1b939d[_0x31a872(0x2c6)],'actions':[],'textRanges':_0x5e86d0}}],_0xce37c=this[_0x31a872(0x23e)][_0x31a872(0x429)](_0x1b939d,_0x832e7c);if(!_0x18a402(_0xce37c))throw _0xce37c[_0x31a872(0x31f)];const _0x32a0e7=_0xce37c[_0x31a872(0x2a9)][0x0]['params'][_0x31a872(0x27a)];Array[_0x31a872(0x2b5)](_0x32a0e7)&&_0x32a0e7[_0x31a872(0x358)]&&_0x25dbfb['replaceTextRanges'](_0x32a0e7,!0x1);}};Fe=Qi([Ft(0x0,_0x16153f(_0x5945df)),Ft(0x1,_0x3b0b3e)],Fe);function Ss(_0x27ebfc){const _0x1f2fe7=_0x29ff3c;let _0x235b75='';for(const _0xf5ff6f of _0x27ebfc){const {startOffset:_0x4007e7,endOffset:_0x304994,isActive:_0x5bc719}=_0xf5ff6f;_0x235b75[_0x1f2fe7(0x358)]&&(_0x235b75+=','),_0x235b75+=_0x4007e7+':'+_0x304994+':'+(_0x5bc719?'1':'0');}return _0x235b75;}function Zi(_0x10097f){const _0x191d54=_0x29ff3c,_0x51abfc=_0x10097f['split'](','),_0x32e777=[];for(const _0x412a78 of _0x51abfc){const [_0x5d9761,_0x2ddaad,_0x50ee79]=_0x412a78['split'](':');_0x32e777[_0x191d54(0x3f9)]({'startOffset':Number(_0x5d9761),'endOffset':Number(_0x2ddaad),'collapsed':_0x5d9761===_0x2ddaad,'isActive':_0x50ee79==='1'});}return _0x32e777[_0x191d54(0x254)](_0x102664=>_0x102664['isActive'])||(_0x32e777[0x0][_0x191d54(0x477)]=!0x0),_0x32e777;}class yt extends _0xecb3e3{constructor(){const _0x269361=_0x29ff3c;super(...arguments),l(this,_0x269361(0x1f5),new _0x45e4c4(null)),l(this,_0x269361(0x373),this['_collabCursorState$'][_0x269361(0x49d)]());}['syncEditingCollabCursor'](_0x50bfb8){const _0x49f418=_0x29ff3c,{unitID:_0x187dcf,memberID:_0x2271e6,textRanges:_0x1d70f1}=_0x50bfb8,_0x5ecdc0=Ss(_0x1d70f1),_0xfec58e={'unitID':_0x187dcf,'memberID':_0x2271e6,'selection':_0x5ecdc0};this[_0x49f418(0x1f5)][_0x49f418(0x1d7)](_0xfec58e);}}var en=(_0x2b204d,_0x3668e5,_0x4e30df,_0x5b70b)=>{const _0x3e91cd=_0x29ff3c;for(var _0x27fe9d=_0x3668e5,_0x2e7d8d=_0x2b204d[_0x3e91cd(0x358)]-0x1,_0xe2f1d;_0x2e7d8d>=0x0;_0x2e7d8d--)(_0xe2f1d=_0x2b204d[_0x2e7d8d])&&(_0x27fe9d=_0xe2f1d(_0x27fe9d)||_0x27fe9d);return _0x27fe9d;},Vt=(_0x41bf30,_0x136097)=>(_0x115c0f,_0x2df62e)=>_0x136097(_0x115c0f,_0x2df62e,_0x41bf30);let Ve=class{constructor(_0x23df21,_0x1b5c7a){const _0x35e2f0=_0x29ff3c;this[_0x35e2f0(0x2c7)]=_0x23df21,this[_0x35e2f0(0x23e)]=_0x1b5c7a;}[_0x29ff3c(0x2e9)](_0x4f4c4a){const _0x46bed2=_0x29ff3c;var _0x5db08c,_0x31e135,_0x933490,_0x4da6ee;const _0x561fec=this[_0x46bed2(0x2c7)][_0x46bed2(0x2a8)](_0xd2e978),{pluginName:_0x31d205,unitId:_0x43b3bd,sheetId:_0x528d65}=_0x561fec[_0x46bed2(0x385)]()||{},_0x297c89=(_0x5db08c=_0x561fec[_0x46bed2(0x3a9)]())!=null?_0x5db08c:[];if(_0x297c89[_0x46bed2(0x358)]===0x0||!_0x31d205||!_0x43b3bd||!_0x528d65)return;const _0x10b115=[{'id':_0x5d539f['id'],'params':{'unitId':_0x43b3bd,'subUnitId':_0x528d65,'pluginName':_0x31d205,'selections':_0x4dfeda[_0x46bed2(0x242)](_0x297c89)}}],_0x391f1d=this[_0x46bed2(0x23e)][_0x46bed2(0x429)](_0x4f4c4a,_0x10b115);if(!_0x18a402(_0x391f1d))throw _0x391f1d[_0x46bed2(0x31f)];const _0x44860c=(_0x4da6ee=(_0x933490=(_0x31e135=_0x391f1d[_0x46bed2(0x2a9)][0x0])==null?void 0x0:_0x31e135[_0x46bed2(0x475)])==null?void 0x0:_0x933490[_0x46bed2(0x447)])!=null?_0x4da6ee:_0x297c89;Array[_0x46bed2(0x2b5)](_0x44860c)&&_0x44860c[_0x46bed2(0x358)]&&this[_0x46bed2(0x2c7)][_0x46bed2(0x2a8)](_0x53d735)[_0x46bed2(0x2d9)](_0x5d539f['id'],{'unitId':_0x43b3bd,'subUnitId':_0x528d65,'pluginName':_0x31d205,'selections':_0x44860c});}};Ve=en([Vt(0x0,_0x16153f(_0x5945df)),Vt(0x1,_0x3b0b3e)],Ve);const tn=new Set([_0x3df9f7['id']]);function sn(_0x27f05e,_0x2d528f,_0x3e199c,_0x39cf7a,_0x4967aa){const _0x5a3e7d=_0x29ff3c;var _0x3eb539,_0x49a521,_0x5442f0,_0x4efefa;const _0x32b36e=[];for(const _0x29da8b of _0x27f05e)if(tn[_0x5a3e7d(0x3bd)](_0x29da8b['id'])){if(_0x32b36e[_0x5a3e7d(0x358)]>0x0)break;_0x32b36e[_0x5a3e7d(0x3f9)](_0x29da8b);break;}else _0x32b36e['push'](_0x29da8b);const _0x556205=(_0x49a521=(_0x3eb539=_0x4967aa['getCurrentUser']())==null?void 0x0:_0x3eb539[_0x5a3e7d(0x3da)])!=null?_0x49a521:_0x5a3e7d(0x226),_0x57913c=(_0x4efefa=(_0x5442f0=_0x4967aa[_0x5a3e7d(0x2fc)]())==null?void 0x0:_0x5442f0['memberID'])!=null?_0x4efefa:_0x5a3e7d(0x226);return{'changeset':{'unitID':_0x2d528f,'type':_0x3d9f48(_0x3e199c[_0x5a3e7d(0x2c1)](_0x2d528f)),'baseRev':_0x39cf7a[_0x5a3e7d(0x45a)](_0x2d528f),'revision':0x0,'userID':_0x556205,'memberID':_0x57913c,'mutations':_0x32b36e},'pendingMutations':_0x27f05e['slice'](_0x32b36e['length'])};}function nn(_0x5e9b6f,_0x54b310,_0x5388cd,_0x48c4a6,_0x3f4a10){const _0x6396c6=_0x29ff3c;var _0x3cf7bd,_0x28cf72,_0x5251a1,_0x575089;const _0x19fbc1=[_0x5e9b6f[_0x6396c6(0x326)]((_0x225b4d,_0x50d86f)=>{const _0x410c5b=_0x6396c6;var _0x4f8d78;const {id:_0x502e34}=_0x225b4d,{id:_0x5724de,type:_0x1d05fb}=_0x50d86f,_0x430ad4=(_0x4f8d78=_0x225b4d[_0x410c5b(0x475)])!=null?_0x4f8d78:{'actions':[]},_0x799b9a=_0x50d86f[_0x410c5b(0x475)];if(_0x502e34&&_0x502e34!==_0x5724de)throw new Error(_0x410c5b(0x361)+_0x502e34+_0x410c5b(0x4a1)+_0x5724de+'.');return{..._0x225b4d,'id':_0x5724de,'type':_0x1d05fb,'params':{'unitId':_0x799b9a[_0x410c5b(0x499)],'textRanges':_0x799b9a[_0x410c5b(0x27a)],'actions':_0x3a2de6[_0x410c5b(0x24d)](_0x430ad4['actions'],_0x799b9a[_0x410c5b(0x3ba)])}};},{})],_0x35349d=(_0x28cf72=(_0x3cf7bd=_0x3f4a10[_0x6396c6(0x2fc)]())==null?void 0x0:_0x3cf7bd['userID'])!=null?_0x28cf72:_0x6396c6(0x226),_0x4956ff=(_0x575089=(_0x5251a1=_0x3f4a10[_0x6396c6(0x2fc)]())==null?void 0x0:_0x5251a1[_0x6396c6(0x496)])!=null?_0x575089:_0x6396c6(0x226);return{'changeset':{'unitID':_0x54b310,'type':_0x3d9f48(_0x5388cd['getUnitType'](_0x54b310)),'baseRev':_0x48c4a6[_0x6396c6(0x45a)](_0x54b310),'revision':0x0,'userID':_0x35349d,'memberID':_0x4956ff,'mutations':_0x19fbc1},'pendingMutations':[]};}var se=(_0xa6e253,_0x323100,_0x508e82,_0x2957df)=>{const _0xded3e3=_0x29ff3c;for(var _0x26d1c5=_0x323100,_0x2cdcee=_0xa6e253[_0xded3e3(0x358)]-0x1,_0x2867a5;_0x2cdcee>=0x0;_0x2cdcee--)(_0x2867a5=_0xa6e253[_0x2cdcee])&&(_0x26d1c5=_0x2867a5(_0x26d1c5)||_0x26d1c5);return _0x26d1c5;},g=(_0x228e79,_0x484254)=>(_0x7ce93f,_0x298785)=>_0x484254(_0x7ce93f,_0x298785,_0x228e79);const rn=_0x29ff3c(0x2bf),on=0x7d0;var w=(_0x3cf224=>(_0x3cf224[_0x29ff3c(0x405)]='not_collab',_0x3cf224['SYNCED']=_0x29ff3c(0x362),_0x3cf224[_0x29ff3c(0x4a2)]='pending',_0x3cf224[_0x29ff3c(0x490)]=_0x29ff3c(0x3cc),_0x3cf224[_0x29ff3c(0x403)]=_0x29ff3c(0x3c0),_0x3cf224[_0x29ff3c(0x2c8)]='fetch_missing',_0x3cf224[_0x29ff3c(0x290)]=_0x29ff3c(0x384),_0x3cf224[_0x29ff3c(0x3f3)]=_0x29ff3c(0x27d),_0x3cf224))(w||{});class ie{constructor(_0x3b5a47,_0x5aefbf,_0x3ae6f5,_0x759bcc,_0x58c430,_0x5b10ac,_0x56ef91,_0x3dddb1,_0x30d672){const _0x1c25a9=_0x29ff3c;l(this,_0x1c25a9(0x409),null),l(this,'_pendingMutations',[]),(this[_0x1c25a9(0x2c6)]=_0x3b5a47,this[_0x1c25a9(0x2c9)]=_0x5aefbf,this['_handler']=_0x58c430,this[_0x1c25a9(0x2cd)]=_0x5b10ac,this[_0x1c25a9(0x28b)]=_0x56ef91,this[_0x1c25a9(0x443)]=_0x3dddb1,this[_0x1c25a9(0x21a)]=_0x30d672,this[_0x1c25a9(0x409)]=_0x3ae6f5,this[_0x1c25a9(0x33c)]=_0x759bcc);}[_0x29ff3c(0x243)](_0x281b29){const _0x1ef9e5=_0x29ff3c,_0x5d6eac=this[_0x1ef9e5(0x443)][_0x1ef9e5(0x45a)](this[_0x1ef9e5(0x2c6)]);return _0x281b29[_0x1ef9e5(0x1ff)]>_0x5d6eac+0x1?(this['_handler'][_0x1ef9e5(0x3fb)]({'from':_0x5d6eac,'to':_0x281b29[_0x1ef9e5(0x1ff)]-0x1}),!0x0):!0x1;}[_0x29ff3c(0x2bb)](_0x56fe8f){const _0x3a98db=_0x29ff3c;this[_0x3a98db(0x28b)]['transformUndoRedo'](this[_0x3a98db(0x2c6)],_0x56fe8f);}[_0x29ff3c(0x275)](_0x2da79f){const _0x1f9f20=_0x29ff3c;var _0x357c32,_0x279adf;(_0x279adf=(_0x357c32=this[_0x1f9f20(0x313)])['onTransformSelections'])==null||_0x279adf[_0x1f9f20(0x3e7)](_0x357c32,_0x2da79f);}[_0x29ff3c(0x436)](_0x461367){const _0x509ad5=_0x29ff3c;var _0x1f4f60,_0x19cc6e;return(_0x19cc6e=(_0x1f4f60=this['_handler'])['onTransformIME'])==null?void 0x0:_0x19cc6e[_0x509ad5(0x3e7)](_0x1f4f60,_0x461367);}['_transformRemoteChangesetByIMECache'](_0x1f19cc){const _0x572100=_0x29ff3c;var _0x5de20e,_0x194a0e,_0x4e5875;return(_0x4e5875=(_0x194a0e=(_0x5de20e=this['_handler'])[_0x572100(0x221)])==null?void 0x0:_0x194a0e[_0x572100(0x3e7)](_0x5de20e,_0x1f19cc))!=null?_0x4e5875:_0x1f19cc;}['_syncEditingCollabCursor'](_0x4fbbcd){const _0x1ecede=_0x29ff3c;var _0x46957b,_0x511d75;if(this[_0x1ecede(0x2c9)]===x['UNIVER_DOC']){const {unitID:_0x41cd36,mutations:_0x2f0865,memberID:_0x293d3a}=_0x4fbbcd,_0x377693=_0x2f0865[0x0]['params']['textRanges'];Array[_0x1ecede(0x2b5)](_0x377693)&&_0x377693[_0x1ecede(0x358)]>0x0&&((_0x511d75=(_0x46957b=this[_0x1ecede(0x313)])[_0x1ecede(0x41c)])==null||_0x511d75[_0x1ecede(0x3e7)](_0x46957b,{'unitID':_0x41cd36,'memberID':_0x293d3a,'textRanges':_0x377693}));}}[_0x29ff3c(0x2f4)](){const _0x51f0cb=_0x29ff3c;this[_0x51f0cb(0x21a)][_0x51f0cb(0x2c2)](this['unitID'],this[_0x51f0cb(0x2c9)],this['_awaitingChangeset'],this['_pendingMutations']);}['_getCurrentRevision'](){const _0xcfc21c=_0x29ff3c;return this['_revisionService'][_0xcfc21c(0x45a)](this[_0xcfc21c(0x2c6)]);}['_incrementRevisionNumber'](){const _0x3bfe30=_0x29ff3c;this[_0x3bfe30(0x443)][_0x3bfe30(0x3c9)](this[_0x3bfe30(0x2c6)]);}['_executeRemoteChangeset'](_0x4b9c72){const _0x5395c3=_0x29ff3c;var _0x2d8f64;const _0x1bc3c6=this[_0x5395c3(0x252)](_0x4b9c72),_0x1958d7=_0x4eb30d(_0x1bc3c6[_0x5395c3(0x309)],this[_0x5395c3(0x2cd)],{'fromCollab':!0x0});if(!_0x1958d7[_0x5395c3(0x2c3)])throw _0x1958d7['error']instanceof Error?_0x1958d7[_0x5395c3(0x31f)]:new Error((_0x2d8f64=_0x1958d7[_0x5395c3(0x31f)])!=null?_0x2d8f64:_0x5395c3(0x273));this[_0x5395c3(0x436)](_0x1bc3c6),this['_transformUndoredo'](_0x4b9c72),this[_0x5395c3(0x275)](_0x1bc3c6),this[_0x5395c3(0x45b)](_0x1bc3c6),this[_0x5395c3(0x38d)]();}}let ye=class extends ie{constructor(_0x582209,_0x2ab016,_0x33258a,_0x8a742c,_0x5e0167,_0x2033ac,_0x1adc8a,_0x1ec145,_0x3854f0){const _0x404767=_0x29ff3c;super(_0x582209,_0x2ab016,null,[],_0x33258a,_0x1ec145,_0x1adc8a,_0x8a742c,_0x5e0167),l(this,_0x404767(0x30c),'synced'),(this['_injector']=_0x2033ac,this[_0x404767(0x46f)]=_0x3854f0);}['appendMutation'](_0x543498){const _0x842101=_0x29ff3c,_0x328b3c=this[_0x842101(0x2c7)][_0x842101(0x3bb)](B,this['unitID'],this[_0x842101(0x2c9)],[_0x543498],this['_handler']);return _0x328b3c['_schedule'](),_0x328b3c['_updateLocalCache'](),_0x328b3c;}[_0x29ff3c(0x3b2)](_0x10d72c){const _0xfe6c2e=_0x29ff3c;if(this['_checkMissing'](_0x10d72c))return this[_0xfe6c2e(0x2c7)][_0xfe6c2e(0x3bb)](V,this[_0xfe6c2e(0x2c6)],this[_0xfe6c2e(0x2c9)],null,[],null,[_0x10d72c],this[_0xfe6c2e(0x313)]);try{return this[_0xfe6c2e(0x379)](_0x10d72c),this;}catch(_0xf0c444){return this['_logService'][_0xfe6c2e(0x31f)](_0xfe6c2e(0x29a),_0xf0c444),this;}}[_0x29ff3c(0x495)](){const _0x49b81e=_0x29ff3c;throw new Error(_0x49b81e(0x2bd));}[_0x29ff3c(0x3f1)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x29ff3c(0x422)](){const _0x58e3d3=_0x29ff3c;return this[_0x58e3d3(0x2c7)][_0x58e3d3(0x3bb)](Y,this[_0x58e3d3(0x2c6)],this['type'],null,[],this[_0x58e3d3(0x313)]);}[_0x29ff3c(0x27f)](){return this;}[_0x29ff3c(0x31a)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ye=se([g(0x3,_0x16153f(_0x2fb796)),g(0x4,_0x16153f(y)),g(0x5,_0x16153f(_0x5945df)),g(0x6,_0x17966e),g(0x7,_0x53d735),g(0x8,_0x4e485b)],ye);let B=class extends ie{constructor(_0x28299f,_0x3926cd,_0x5291a1,_0x28ae37,_0x2621e5,_0x2b7fdc,_0x4dafed,_0x5d7781,_0x51fda2,_0x3856a8,_0x374e6d,_0x503232,_0x2c1689,_0x1d302b){const _0xba8fee=_0x29ff3c;super(_0x28299f,_0x3926cd,null,_0x5291a1,_0x28ae37,_0x3856a8,_0x1d302b,_0x2b7fdc,_0x4dafed),l(this,_0xba8fee(0x30c),_0xba8fee(0x3d9)),l(this,'_scheduleTimestamp',null),l(this,'_sendingTimer',null),(this[_0xba8fee(0x2c7)]=_0x2621e5,this[_0xba8fee(0x4ac)]=_0x5d7781,this['_logService']=_0x51fda2,this[_0xba8fee(0x312)]=_0x374e6d,this['_transformService']=_0x503232,this[_0xba8fee(0x2a2)]=_0x2c1689);}['appendMutation'](_0x43fd8b){const _0x56eb36=_0x29ff3c;return this['_pendingMutations'][_0x56eb36(0x3f9)](_0x43fd8b),this[_0x56eb36(0x2f4)](),this;}[_0x29ff3c(0x3b2)](_0x4c021e){const _0xa62dc2=_0x29ff3c;if(this['_checkMissing'](_0x4c021e))return this[_0xa62dc2(0x413)](),this[_0xa62dc2(0x2c7)][_0xa62dc2(0x3bb)](V,this[_0xa62dc2(0x2c6)],this[_0xa62dc2(0x2c9)],null,this[_0xa62dc2(0x33c)],null,[_0x4c021e],this[_0xa62dc2(0x313)]);try{const _0x86251a=this[_0xa62dc2(0x23e)][_0xa62dc2(0x429)](_0x4c021e,this[_0xa62dc2(0x33c)]);if(_0x18a402(_0x86251a)){const {c1Prime:_0xace00d,m2Prime:_0x218916}=_0x86251a;this[_0xa62dc2(0x379)](_0xace00d);const _0x1daa52=this[_0xa62dc2(0x2c7)][_0xa62dc2(0x3bb)](B,this[_0xa62dc2(0x2c6)],this['type'],_0x218916,this[_0xa62dc2(0x313)]);return this[_0xa62dc2(0x413)](),_0x1daa52['_schedule'](this[_0xa62dc2(0x256)]?Math['max'](0x0,new Date()['getTime']()-this[_0xa62dc2(0x256)]):this[_0xa62dc2(0x3aa)]()),_0x1daa52;}throw _0x86251a[_0xa62dc2(0x31f)];}catch(_0xcab817){return this[_0xa62dc2(0x46f)][_0xa62dc2(0x31f)](_0xcab817),this[_0xa62dc2(0x299)]();}}['onRemoteAck'](){const _0x369077=_0x29ff3c;throw new Error(_0x369077(0x2e8));}['onRemoteRej'](){const _0x1e297d=_0x29ff3c;throw new Error(_0x1e297d(0x2e7));}[_0x29ff3c(0x422)](){const _0x451dc9=_0x29ff3c;return this['_clearScheduledTask'](),this[_0x451dc9(0x2c7)][_0x451dc9(0x3bb)](Y,this[_0x451dc9(0x2c6)],this['type'],null,this[_0x451dc9(0x33c)],this[_0x451dc9(0x313)]);}['toggleOnline'](){return this;}[_0x29ff3c(0x20e)](_0x25e704){const _0x89740b=_0x29ff3c;_0x25e704=_0x25e704!=null?_0x25e704:this[_0x89740b(0x3aa)](),this[_0x89740b(0x256)]=new Date()[_0x89740b(0x200)](),this[_0x89740b(0x274)]=setTimeout(()=>{const _0x2ff2eb=_0x89740b;this[_0x2ff2eb(0x413)]();let _0x3fb238=null;switch(this[_0x2ff2eb(0x2c9)]){case x[_0x2ff2eb(0x3f7)]:{_0x3fb238=sn(this['_pendingMutations'],this[_0x2ff2eb(0x2c6)],this[_0x2ff2eb(0x2a2)],this[_0x2ff2eb(0x443)],this[_0x2ff2eb(0x4ac)]);break;}case x[_0x2ff2eb(0x236)]:{_0x3fb238=nn(this[_0x2ff2eb(0x33c)],this[_0x2ff2eb(0x2c6)],this[_0x2ff2eb(0x2a2)],this[_0x2ff2eb(0x443)],this[_0x2ff2eb(0x4ac)]);break;}default:throw new Error(_0x2ff2eb(0x44f)+this[_0x2ff2eb(0x2c9)]+_0x2ff2eb(0x493));}const {changeset:_0x108fc1,pendingMutations:_0x13e4b2}=_0x3fb238;this['_handler'][_0x2ff2eb(0x4a5)](_0x108fc1);const _0xc8e40c=_0x13e4b2[_0x2ff2eb(0x358)]?this['_injector']['createInstance'](F,this[_0x2ff2eb(0x2c6)],this['type'],_0x108fc1,_0x13e4b2,this[_0x2ff2eb(0x313)]):this[_0x2ff2eb(0x2c7)]['createInstance'](K,this[_0x2ff2eb(0x2c6)],this[_0x2ff2eb(0x2c9)],_0x108fc1,this[_0x2ff2eb(0x313)]);_0xc8e40c[_0x2ff2eb(0x2f4)](),this['_handler'][_0x2ff2eb(0x2b4)](this,_0xc8e40c);},_0x25e704);}[_0x29ff3c(0x3aa)](){const _0x35f9ca=_0x29ff3c;var _0x5cf24f;return(_0x5cf24f=this[_0x35f9ca(0x312)][_0x35f9ca(0x2f0)](rn))!=null?_0x5cf24f:on;}[_0x29ff3c(0x31a)](){const _0x38430c=_0x29ff3c;throw new Error(_0x38430c(0x37b));}[_0x29ff3c(0x413)](){const _0x32108f=_0x29ff3c;this[_0x32108f(0x274)]!=null&&(clearTimeout(this[_0x32108f(0x274)]),this[_0x32108f(0x274)]=null);}[_0x29ff3c(0x299)](){const _0x5af864=_0x29ff3c;return this[_0x5af864(0x413)](),this[_0x5af864(0x2c7)][_0x5af864(0x3bb)](Z,this[_0x5af864(0x2c6)],this[_0x5af864(0x2c9)],null,this['_pendingMutations'],this['_handler']);}};B=se([g(0x4,_0x16153f(_0x5945df)),g(0x5,_0x16153f(_0x2fb796)),g(0x6,_0x16153f(y)),g(0x7,_0x16153f(Q)),g(0x8,_0x4e485b),g(0x9,_0x53d735),g(0xa,_0x3fca08),g(0xb,_0x3b0b3e),g(0xc,_0x416446),g(0xd,_0x17966e)],B);let K=class extends ie{constructor(_0x5cd52b,_0x3050aa,_0x4aecbd,_0x58f64e,_0x5dce9d,_0x32c60b,_0x1fef6f,_0x23a428,_0x4aaa4,_0x22f3cf,_0x34d6fe){const _0x46df4b=_0x29ff3c;super(_0x5cd52b,_0x3050aa,_0x4aecbd,[],_0x58f64e,_0x23a428,_0x34d6fe,_0x32c60b,_0x1fef6f),l(this,_0x46df4b(0x30c),_0x46df4b(0x3cc)),(this[_0x46df4b(0x2c7)]=_0x5dce9d,this[_0x46df4b(0x46f)]=_0x4aaa4,this[_0x46df4b(0x23e)]=_0x22f3cf);}['appendMutation'](_0x4bacf1){const _0x4fb116=_0x29ff3c,_0x24f61c=this['_injector']['createInstance'](F,this[_0x4fb116(0x2c6)],this[_0x4fb116(0x2c9)],this[_0x4fb116(0x409)],[_0x4bacf1],this[_0x4fb116(0x313)]);return _0x24f61c[_0x4fb116(0x2f4)](),_0x24f61c;}[_0x29ff3c(0x3b2)](_0x5a4419){const _0x31a0a2=_0x29ff3c;if(this[_0x31a0a2(0x243)](_0x5a4419))return this['_injector'][_0x31a0a2(0x3bb)](V,this['unitID'],this[_0x31a0a2(0x2c9)],this['_awaitingChangeset'],[],null,[_0x5a4419],this[_0x31a0a2(0x313)]);try{const _0x2073e5=this['_transformService']['transformChangesets']([_0x5a4419],[this['_awaitingChangeset']],!0x1);if(_0xcafd09(_0x2073e5)){const {c1Prime:_0x53388d,c2Prime:_0xd3406f}=_0x2073e5;this[_0x31a0a2(0x379)](_0x53388d[0x0]),_0xd3406f[0x0][_0x31a0a2(0x206)]=this[_0x31a0a2(0x2e4)]();const _0x31750a=this[_0x31a0a2(0x2c7)][_0x31a0a2(0x3bb)](K,this[_0x31a0a2(0x2c6)],this['type'],_0xd3406f[0x0],this[_0x31a0a2(0x313)]);return _0x31750a['_updateLocalCache'](),_0x31750a;}return this['_onConflict']();}catch(_0x40de08){return this[_0x31a0a2(0x46f)][_0x31a0a2(0x31f)](_0x40de08),this[_0x31a0a2(0x299)]();}}['onRemoteAck'](_0x57e25f){const _0x445bf3=_0x29ff3c,_0xebf122=this[_0x445bf3(0x443)][_0x445bf3(0x45a)](this[_0x445bf3(0x2c6)]);if(_0x57e25f[_0x445bf3(0x1ff)]<_0xebf122-0x1)return this;if(this[_0x445bf3(0x243)](_0x57e25f))return this[_0x445bf3(0x2c7)][_0x445bf3(0x3bb)](V,this['unitID'],this[_0x445bf3(0x2c9)],null,[],this[_0x445bf3(0x409)],[],this[_0x445bf3(0x313)]);this[_0x445bf3(0x38d)]();const _0x32496e=this[_0x445bf3(0x2c7)]['createInstance'](ye,this[_0x445bf3(0x2c6)],this[_0x445bf3(0x2c9)],this['_handler']);return _0x32496e['_updateLocalCache'](),_0x32496e;}['onRemoteRej'](){const _0x16845e=_0x29ff3c;return this[_0x16845e(0x299)]();}[_0x29ff3c(0x422)](){const _0x593a82=_0x29ff3c;return this[_0x593a82(0x2c7)]['createInstance'](Y,this['unitID'],this['type'],this[_0x593a82(0x409)],[],this['_handler']);}[_0x29ff3c(0x27f)](){return this;}[_0x29ff3c(0x31a)](){const _0x47a9e7=_0x29ff3c;this[_0x47a9e7(0x313)][_0x47a9e7(0x4a5)](this[_0x47a9e7(0x409)]);}['_onConflict'](){const _0x7be622=_0x29ff3c;return this['_injector'][_0x7be622(0x3bb)](Z,this['unitID'],this['type'],this[_0x7be622(0x409)],[],this['_handler']);}};K=se([g(0x4,_0x16153f(_0x5945df)),g(0x5,_0x16153f(_0x2fb796)),g(0x6,_0x16153f(y)),g(0x7,_0x53d735),g(0x8,_0x4e485b),g(0x9,_0x3b0b3e),g(0xa,_0x17966e)],K);let F=class extends ie{constructor(_0x3d5aad,_0x12ac25,_0x407281,_0x4e355b,_0x5621ba,_0x4f1dd8,_0x20e655,_0xbad41a,_0x2990e8,_0x52e11a,_0xd6e4ef,_0x41c0a1){const _0x4d3fdd=_0x29ff3c;super(_0x3d5aad,_0x12ac25,_0x407281,_0x4e355b,_0x5621ba,_0x2990e8,_0x41c0a1,_0x20e655,_0xbad41a),l(this,_0x4d3fdd(0x30c),_0x4d3fdd(0x3c0)),(this[_0x4d3fdd(0x2c7)]=_0x4f1dd8,this[_0x4d3fdd(0x46f)]=_0x52e11a,this['_transformService']=_0xd6e4ef);}[_0x29ff3c(0x446)](_0x56fc08){const _0x1a1d69=_0x29ff3c;return this[_0x1a1d69(0x33c)][_0x1a1d69(0x3f9)](_0x56fc08),this;}[_0x29ff3c(0x3b2)](_0xdba3c7){const _0x204c19=_0x29ff3c;if(this[_0x204c19(0x243)](_0xdba3c7))return this[_0x204c19(0x2c7)][_0x204c19(0x3bb)](V,this['unitID'],this['type'],this[_0x204c19(0x409)],this[_0x204c19(0x33c)],null,[_0xdba3c7],this[_0x204c19(0x313)]);try{const _0x363bc7=this[_0x204c19(0x23e)][_0x204c19(0x49e)]([_0xdba3c7],[this['_awaitingChangeset']],!0x1);if(_0xcafd09(_0x363bc7)){const {c1Prime:_0x20cc81,c2Prime:_0x340b15}=_0x363bc7,_0x5f2969=this[_0x204c19(0x23e)][_0x204c19(0x429)](_0x20cc81[0x0],this[_0x204c19(0x33c)]);if(_0x18a402(_0x5f2969)){const {c1Prime:_0x3d5f43,m2Prime:_0x43d326}=_0x5f2969;return this[_0x204c19(0x379)](_0x3d5f43),_0x340b15[0x0][_0x204c19(0x206)]=this[_0x204c19(0x2e4)](),this[_0x204c19(0x2c7)][_0x204c19(0x3bb)](F,this[_0x204c19(0x2c6)],this[_0x204c19(0x2c9)],_0x340b15[0x0],_0x43d326,this[_0x204c19(0x313)]);}throw _0x5f2969[_0x204c19(0x31f)];}throw _0x363bc7[_0x204c19(0x31f)];}catch(_0x31b4d9){return this[_0x204c19(0x46f)][_0x204c19(0x31f)](_0x31b4d9),this['_onConflict']();}}[_0x29ff3c(0x495)](_0x129e65){const _0x2dee39=_0x29ff3c;if(this[_0x2dee39(0x243)](_0x129e65))return this[_0x2dee39(0x2c7)][_0x2dee39(0x3bb)](V,this[_0x2dee39(0x2c6)],this[_0x2dee39(0x2c9)],null,this[_0x2dee39(0x33c)],this[_0x2dee39(0x409)],[],this['_handler']);this[_0x2dee39(0x38d)]();const _0x2797cf=this[_0x2dee39(0x2c7)][_0x2dee39(0x3bb)](B,this[_0x2dee39(0x2c6)],this[_0x2dee39(0x2c9)],this['_pendingMutations'],this['_handler']);return _0x2797cf[_0x2dee39(0x20e)](),_0x2797cf['_updateLocalCache'](),_0x2797cf;}[_0x29ff3c(0x3f1)](){return this['_onConflict']();}[_0x29ff3c(0x422)](){const _0x2460a1=_0x29ff3c;return this[_0x2460a1(0x2c7)][_0x2460a1(0x3bb)](Y,this[_0x2460a1(0x2c6)],this[_0x2460a1(0x2c9)],this[_0x2460a1(0x409)],this[_0x2460a1(0x33c)],this[_0x2460a1(0x313)]);}[_0x29ff3c(0x27f)](){return this;}[_0x29ff3c(0x31a)](){const _0x7e0a17=_0x29ff3c;this['_handler'][_0x7e0a17(0x4a5)](this[_0x7e0a17(0x409)]);}['_onConflict'](){const _0x4e01f8=_0x29ff3c;return this[_0x4e01f8(0x2c7)][_0x4e01f8(0x3bb)](Z,this['unitID'],this['type'],null,this[_0x4e01f8(0x33c)],this[_0x4e01f8(0x313)]);}};F=se([g(0x5,_0x16153f(_0x5945df)),g(0x6,_0x16153f(_0x2fb796)),g(0x7,_0x16153f(y)),g(0x8,_0x53d735),g(0x9,_0x4e485b),g(0xa,_0x3b0b3e),g(0xb,_0x17966e)],F);let Z=class extends ie{constructor(_0x4d9745,_0x2bf460,_0xc7391,_0x37ab66,_0x5b8778,_0x57a4f6,_0x4563b4,_0x201686,_0x1c4e1e,_0x3ce06b,_0x16e395,_0xd6aa24){const _0x4af17c=_0x29ff3c;super(_0x4d9745,_0x2bf460,_0xc7391,_0x37ab66,_0x5b8778,_0x4563b4,_0x201686,_0x3ce06b,_0x1c4e1e),l(this,_0x4af17c(0x30c),'conflict'),(this[_0x4af17c(0x269)]=_0x57a4f6,this[_0x4af17c(0x482)]=_0x16e395,this['_notificationService']=_0xd6aa24,this[_0x4af17c(0x479)](),this[_0x4af17c(0x48d)](),this['_disableEditing']());}[_0x29ff3c(0x446)](){return this;}[_0x29ff3c(0x3b2)](){return this;}[_0x29ff3c(0x495)](){return this;}[_0x29ff3c(0x3f1)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x6838e0=_0x29ff3c;throw new Error(_0x6838e0(0x471));}[_0x29ff3c(0x48d)](){const _0x4e09f1=_0x29ff3c;this[_0x4e09f1(0x21a)][_0x4e09f1(0x2c2)](this[_0x4e09f1(0x2c6)],this[_0x4e09f1(0x2c9)],null,[]);}['_showConflictNotification'](){const _0x432008=_0x29ff3c;this[_0x432008(0x442)][_0x432008(0x3c7)]({'title':this['_localeService']['t'](_0x432008(0x216)),'content':this[_0x432008(0x482)]['t'](_0x432008(0x397)),'type':_0x432008(0x31f),'duration':0x0});}[_0x29ff3c(0x2f8)](){const _0x446b9f=_0x29ff3c;this[_0x446b9f(0x269)][_0x446b9f(0x461)](this[_0x446b9f(0x2c6)],!0x1);}};Z=se([g(0x5,_0x16153f(_0x4c655a)),g(0x6,_0x53d735),g(0x7,_0x17966e),g(0x8,_0x16153f(y)),g(0x9,_0x16153f(_0x2fb796)),g(0xa,_0x16153f(_0xa9bb0e)),g(0xb,_0x501291)],Z);let Y=class extends ie{constructor(_0x5afd7c,_0x51bdc4,_0x4f6189,_0x1526f5,_0x398169,_0x29b353,_0x3c0edf,_0x4021e4,_0x2dae4f,_0x909e99){const _0x2cb3c4=_0x29ff3c;super(_0x5afd7c,_0x51bdc4,_0x4f6189,_0x1526f5,_0x398169,_0x2dae4f,_0x909e99,_0x3c0edf,_0x4021e4),l(this,_0x2cb3c4(0x30c),_0x2cb3c4(0x27d)),this['_injector']=_0x29b353;}[_0x29ff3c(0x446)](_0x1a15e6){const _0x9a2cc5=_0x29ff3c;return this['_pendingMutations']['push'](_0x1a15e6),this[_0x9a2cc5(0x2f4)](),this;}[_0x29ff3c(0x3b2)](_0x267b08){const _0x515e86=_0x29ff3c;throw new Error(_0x515e86(0x472));}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}['toggleOnline'](){const _0x476bbd=_0x29ff3c,{_injector:_0x416748,_pendingMutations:_0x5dc87a,_awaitingChangeset:_0x596eb7,unitID:_0x22d4d0,_handler:_0x1dab46,type:_0xe6ccb8}=this,_0x56ddf4=vs(_0x416748,_0x22d4d0,_0xe6ccb8,_0x596eb7,_0x5dc87a,_0x1dab46);return _0x56ddf4 instanceof B?_0x56ddf4[_0x476bbd(0x20e)]():(_0x56ddf4 instanceof F||_0x56ddf4 instanceof K)&&_0x56ddf4['resend'](),_0x56ddf4;}[_0x29ff3c(0x31a)](){const _0x827a4=_0x29ff3c;throw new Error(_0x827a4(0x444));}};Y=se([g(0x5,_0x16153f(_0x5945df)),g(0x6,_0x16153f(_0x2fb796)),g(0x7,_0x16153f(y)),g(0x8,_0x53d735),g(0x9,_0x17966e)],Y);function _0x27a1(){const _0x12266d=['_setupSubUnitSync','_incrementRevisionNumber','range','save','currentTheme$','224JsXfBB','stringify','_drawRange','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_send','getUniverSheetInstance','conflict.content','_collabSessionService','Error','propertyIsEnumerable','编辑冲突','_handleHeartbeatEvent','_timeoutTimer','entries','6108795Tdpnqi','encodeURIComponent','_cursorInfo$','clearInterval','fillStyle','c1Prime','Error\x20on\x20receiving\x20event','currentColor','univer-online-status-icon','_cursors','getSelections','_getSendChangesetTimeout','collab-text-range-','off-line-single_clip0_910_343','_getSheetObject','_httpService','_getScale','icon','NO_OTHER_CLIENTS_EDITING','onRemoteChangeset','catch','SUBMIT_CHANGESET','_initModules','_onConnectionFailed','_unlockTransition','online','flatMap','actions','createInstance','closePath','has','_updateCollabCursors','infoRsp','awaiting_with_pending','_singleActiveUnitService','_colorAssignService','_updateState','_collaborationController','_retryCount','svg','show','_labelPosition','incrementRevForDocument','_sendHeartbeatTimer','_status$','awaiting','/fetchmissing?from=','post','round','[CollaborationUndoRedoService]','_assignedColors','title','_initStatusComponent','_rescheduleHeartbeatEvent','getUnitId','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','_clearCollaborationTimeoutTimer','getAncestorScale','pending','userID','univer-offline','_docSyncEditingCollabCursorService','transform','_waitForHeartbeatResponse','_onLocalMutation','map','collabStatus.conflict','loadDoc','activeSheet$','_transformPreviousActiveRange','registerOnClose','addObject','call','getMemberID','HEADER_MENU','collaMsg','doc.mutation.rich-text-editing','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','341973fXoiOY','_saveTaskMap','getMember','lineTo','onRemoteRej','_substituteRedoStack','OFFLINE','onlineStatus','max','M0\x200H16V16H0z','UNIVER_SHEET','UPDATE_CURSOR','push','saveSheetBlock','onMissingChangesets','cmd','_snapshotService','_state$','registerHTTPInterceptor','_scheduleSaving','disposeWithMe','_undoStacks','AWAITING_WITH_PENDING','_onMessage','NOT_COLLAB','_compressMutationService','findNodePositionByCharIndex','state$','_awaitingChangeset','onCommandExecuted','on-line-single_clip0_910_349','makeDirty','getUndoRedoMutationParamsCache','rev','assignAColorForMemberID','_ensureSubject','UNKNOWN_CMD','failed\x20to\x20apply\x20missed\x20changesets!','_clearScheduledTask','USERS_ENTER','_getDocObject','setTimeout','/unit/','_onRemoteRejected','arc','_joinRoom','_color','onSyncEditingCollabCursor','subUnitId','_drawAnchor','_members','_socketService','协同房间已满,你的编辑将在本地保存','toggleOffline','min','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','onMouseMove','/universer-api/snapshot','color','MUTATION','transformMutationsWithChangeset','then','generateRandomId','763192dpESmy','addObjects','univer-pro.collaboration-client.single-active-unit-service','_saveCache','evenodd','contains','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','_createInitialState','encode','unshift','_transformIMECache','_startSheetCollabCursor','_entityInit$','socket\x20close','[CollaborationSessionService]','_event$','LIVESHARE_OPERATION','_socket$','socketService','_session','0\x200\x2016\x2016','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','_notificationService','_revisionService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_onUserLeave','appendMutation','selections','registerComponent','cursorInfo','sheetId','NEW_CHANGESETS','find','data','getResourcesRequest','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_sheetTransformSelectionsService','column','selection','Collaboration\x20Conflict','concat','fromCollab','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','862316scxwLy','UNIVER_SLIDE','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','getCurrentRevForDocument','_syncEditingCollabCursor','parse','apply','fetchMissingChangesets','RETRY_CONNECTING_INTERVAL','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','setEditable','getCollabEntity$','getParam','updateMember','getActiveSheet','\x0aCurrent:\x20','enableAuthServer','forEach','getCollabCursors$','includes','string','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','getRenderById','purple300','_logService','fill','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[OfflineState]:\x20received\x20changeset.','_online','#fff','params','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','isActive','registerBeforeClose','_showConflictNotification','IDLE','leaveEvent','workbook','error$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','JOIN','_render','_http','_localeService','submit\x20changeset\x20error!','assign','disposeUnit','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_name','getUnitStatus$','session.room-full','none','_socketMessageSubscription','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_clearLocalCache','getSheetBySheetId','setItem','AWAITING','interceptor','Local\x20file','\x20in\x20_schedule.','_onJoinRoomEvent','onRemoteAck','memberID','setParam','save\x20fail\x20reason\x20is\x20','unitId','CHANGESET_REJ','_init','876418ulTJIs','asObservable','transformChangesets','_scheduleCollaborationTimeoutTimer','_lastPointer','\x20-\x20','PENDING','MoveRangeCommandId','_cursor','onSendChangeset','addEventListener','font','FAIL','_clearRedo','_onRemoteChangeset','loadSheet','_memberService','changesets','LIVESHARE_TERMINATE','editingUnit','saveChangeset','next','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','off-line-single','_config','_docSkeletonManagerService','getSheetId','_scheduleClearOtherTimer','transformUndoRedo','COMPRESS_MUTATION_SEND','_tryEnsureSocket','skeleton','cursorInfo$','_scheduleHeartbeat','COMPRESS_MUTATION_APPLY','RECV','awaitingChangeset','FromArray','_renderManagerService','getRoom','/rev/','endColumn','_collaborationTimeoutTimer','_syncEditingCollabCursorService','routeKey','_cachedData','transformRemoteChangeset','_toggleOnline','_disabled','createSocket','set','_collabCursorState$','pipe','_onCursorUpdate','replaceState','status$','disableLocalCache','_roomMembers','csAckEvent','send','indexOf','revision','getTime','_collabCursorController','tag','state','message$','rgba(255,\x20255,\x20255,\x200.01)','baseRev','setAlpha','_replayCachedMutations','_socket','JOINING','resourceIDs','function','override','_schedule','_onCursorDelete','replace','className','whenReady','/universer-api/oidc/authpage','getScrollXYByRelativeCoords','_beforeCloseService','conflict.title','getTypeOfUnitAdded$','collaboration.single-unit.warning','_refRangeService','_localCacheService','getTypeOfUnitDisposed$','collabStatus.syncing','_uiPartsService','toString','_toggleOffline','sessionStatus$','onTransformRemoteChangesetByIMECache','/resources','event$','_handleJoinEvent','_getSaveTimeout','unknown','_onConnectionOpen','subunit','url(#on-line-single_clip0_910_349)','_sessions','_docTransformIMECacheService','LOGIN_URL_KEY','_roomMembers$','_exhaustRemoteChangesetQueue','roomMembers$','univer-online-status','width','/block/','服务器未响应你的协同请求,你的编辑将在本地保存','_scene','text','UNIVER_DOC','LIVESHARE_REQUEST_HOST','HELLO','_currentUser','_state','sheetID','open$','COLLAB_SUBMIT_CHANGESET_URL','_transformService','setShapeProps','random','_removeRoom','deepClone','_checkMissing','top','_getRedoStack','_loadSheet','newCsEvent','transformMutation','snapshot','urlChange$','black','onPointerMoveObserver','compose','drawWith','prototype','_acknowledgedAwaitingChangeset','_textBubble','_transformRemoteChangesetByIMECache','session','some','_remoteChangesetQueue','_scheduleTimestamp','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','onPointerLeaveObserver','_onRefRangeChange','history','_updateStatus','LIVESHARE_NEW_HOST','connection\x20error','\x0aAfter:\x20','symbol','_lockTransition','_selfUnitIDs','_id','auth.needGotoLoginAlert','beginPath','colorChannel1','Steady','clearTimeout','saveSnapshot','_univerPermissionService','name','_range','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','isEditing','RemoveRowCommandId','currentSkeleton$','fetch_missing','_getAPIPrefixPath','_sendHeartbeat','[CollaborationState]:\x20apply\x20error!','_sendingTimer','_transformSelections','INGEST','requireSession','session.collaboration-timeout','_initStatusListener','textRanges','subscribe','Synced','offline','removeMember','toggleOnline','setInterval','_handleHover','startColumn','enableSingleActiveInstanceLock','...','restore','setCurrentUser','_unitOnClients','liveShareOperation','_transformStack','toRgbString','_undoRedoService','saveOfflineData','/universer-api/snapshot/','hovered','defIds','CONFLICT','UNRECOGNIZED','_scheduleReconnection','[DataLoaderController]','_hovered','univerjs-icon\x20univerjs-icon-','_queuedRemoteChangesets','href','InsertRowCommandId','_onConflict','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','remove','getValue','enableLocalCache','_applyRemoteChangeset','getCollabEntity','Unknown\x20user','_ws','_univerInstanceService','registerRefRange','SNAPSHOT_SERVER_URL_KEY','values','init','joinRsp','get','m2Prime','fillRule','fetchThroughInterceptors','_loadDoc','UniverIcon','originalMeta','_collaborationPaused','\x20to\x20','_type','extend','VIEW_MAIN','onStateChange','isArray','_eventUnsubscribe','ranges','code','children','_getCtorByUniverType','_transformUndoredo','setActiveRange','[SyncedState]:\x20received\x20acknowledgement.','getOffsetConfig','SEND_CHANGESET_TIMEOUT','onPointerEnterObserver','getUnitType','updateOfflineData','result','startRow','_getUndoStack','unitID','_injector','FETCH_MISS','type','PSEUDO_FETCH_MISSING_RESULT','startsWith','pushState','_commandService','_urlService','trim','_submitChangeset','hide','CHANGESET_ACK','_docSkeleton','1em','_transitionLocked','MSG_FOR_ERROR','getRelativeCoord','_entities','executeCommand','sessionStatus','_clearUndo','OnLineSingle','onTransformSelections','current','_shapes','roomMembers','OffLineSingle','UNKNOWN_CODE','2326176GSdsSe','_getCurrentRevision','_createInitialStateImpl','delete','[PendingState]:\x20received\x20rejection.','[PendingState]:\x20received\x20acknowledgement.','transformSelections','idSuffix','6630939CxtYwz','focused$','_getLoginPath','loadOfflineData','getFocusedUnit','getConfig','collab-text-anchor-','m1Prime','_onCombEvent','_updateLocalCache','defs','setUndoRedoMutationParamsCache','OTHER_CLIENTS_EDITING','_disableEditing','add','uni.network.url-service','Ready','getCurrentUser','Starting','measureText','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','连接失败,请检查你的网络','localeService','_startCollaboration','eventID','close$','_hover','FETCH_MISSING','csRejEvent','_fetchMissChangesets','mutations','_onRemoteACK','debug','status','reverse','location','_startDocCollabCursor','_docTransformSelectionsService','_localStorageService','_configService','_handler','RemoveColCommandId','_updateLocalCursor','moveTo','_unitStatus','clear','newValue','resend','_socketReady','_anchorDot','transformByState','use','error','dispose$','getCellPositionByOffset','size','_handleLeaveEvent','_removeClearOtherTimer','_updateURLWithCurrentState','reduce','transformStack\x20failed!','getOwnPropertySymbols','?url=','collaborationUniverTypes','height','_createHandler','onMissedChangesetFetched','_colorIndex','_draw','_getMergeRange','transformIMECache','ONLINE','[CollaborationSessionService]:\x20socket\x20error','_removeCollabCursors','_clearTimeoutTimer','getRangePointData','collaboration-client.offline-data-not-saved','url(#$1','_onUserJoin','close','unload','_pendingMutations','searchParams','LOCAL_CACHE_INTERVAL','_updateSubUnitFromURLParams','&to=','_clearHeartbeatTimer','_sessionStatus$','_document','_clearOtherTimers','[CollaborationEntity]','sheets','保存中...','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','confirm','ACTIVE_UNIT_EVENT_CHANNEL','roomInfos','translate(.97)','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','endRow','Warning','编辑将在本地保存','LIVESHARE_FETCH_OPERATIONS','_themeService','12befSxx','_docStateChangeManagerService','_unitID','ws://127.0.0.1:8000/universer-api/comb/connect','syncEditingCollabCursor','length','_heartbeatTimer','正在同步服务端数据...','_hideTimer','onTransformIME','HEARTBEAT','storage','body','complete','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','synced','removeParam','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','defineProperty','InsertColCommandId','_anchor','_snapshotServerService','_createSocket','createElement','bottom','DEFAULT_FILE_NAME','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','collaboration-client','_messageService','path','xlink:href','from','collabCursorState$','HEARTBEAT_INTERVAL','div','LEAVE','filter','_handleEvent','_executeRemoteChangeset','_retryConnectingTimer','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose','USERS_LEAVE','row','pluginName','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','attrs','clipPath','getInterceptPoints','conflict','getCurrent','_sheetSkeletonManagerService','collabStatus.notCollab','_setupBeforeClosingHandler','RETRY_CONNECTING_MAX_COUNT','_onFetchMissResult','gold400'];_0x27a1=function(){return _0x12266d;};return _0x27a1();}let V=class extends ie{constructor(_0x4e8943,_0x17b613,_0x2ef75e,_0x471a3f,_0x400d3a,_0x26b613,_0x56cdb9,_0x1b56e3,_0x460126,_0x34baa0,_0x4c7835,_0x3bc0a2,_0x4793e6,_0xb55760){const _0x2b7576=_0x29ff3c;super(_0x4e8943,_0x17b613,_0x2ef75e,_0x471a3f,_0x56cdb9,_0x3bc0a2,_0x4793e6,_0x460126,_0x34baa0),l(this,_0x2b7576(0x30c),_0x2b7576(0x270)),(this['_acknowledgedAwaitingChangeset']=_0x400d3a,this[_0x2b7576(0x296)]=_0x26b613,this[_0x2b7576(0x2c7)]=_0x1b56e3,this[_0x2b7576(0x46f)]=_0x4c7835,this[_0x2b7576(0x23e)]=_0xb55760);}[_0x29ff3c(0x32d)](_0x47d281){const _0x1a18f2=_0x29ff3c;try{const _0x491854=[..._0x47d281,...this['_queuedRemoteChangesets']],_0x53f178=[this[_0x1a18f2(0x409)]||this[_0x1a18f2(0x250)]][_0x1a18f2(0x377)](_0x507735=>!!_0x507735);let _0x23a8da,_0xdae053;if(_0x53f178['length']){const _0x3dedad=this[_0x1a18f2(0x23e)]['transformChangesets'](_0x491854,_0x53f178,!0x1);if(!_0xcafd09(_0x3dedad))throw _0x3dedad[_0x1a18f2(0x31f)];_0x23a8da=_0x3dedad['c1Prime'],_0xdae053=_0x3dedad['c2Prime'];}else _0x23a8da=_0x491854,_0xdae053=[];let _0x2b791=this[_0x1a18f2(0x33c)];_0x23a8da[_0x1a18f2(0x468)](_0x38d9ca=>{const _0x2556d2=_0x1a18f2;let _0x27057f;if(_0x2b791[_0x2556d2(0x358)]){const _0x179f70=this[_0x2556d2(0x23e)][_0x2556d2(0x429)](_0x38d9ca,_0x2b791);if(!_0x18a402(_0x179f70))throw _0x179f70[_0x2556d2(0x31f)];_0x27057f=_0x179f70['c1Prime'],_0x2b791=_0x179f70[_0x2556d2(0x2a9)];}else _0x27057f=_0x38d9ca;this[_0x2556d2(0x379)](_0x27057f);}),this[_0x1a18f2(0x250)]&&this[_0x1a18f2(0x38d)](),this[_0x1a18f2(0x409)]&&_0xdae053[_0x1a18f2(0x358)]&&(_0xdae053[0x0][_0x1a18f2(0x206)]=this[_0x1a18f2(0x2e4)]());let _0x3ec2de;if(this[_0x1a18f2(0x409)]&&_0x2b791[_0x1a18f2(0x358)]!==0x0)_0x3ec2de=this[_0x1a18f2(0x2c7)]['createInstance'](F,this[_0x1a18f2(0x2c6)],this[_0x1a18f2(0x2c9)],_0xdae053[0x0],_0x2b791,this[_0x1a18f2(0x313)]);else{if(this[_0x1a18f2(0x409)]&&_0x2b791[_0x1a18f2(0x358)]===0x0)_0xdae053[0x0]['baseRev']=this['_getCurrentRevision'](),_0x3ec2de=this[_0x1a18f2(0x2c7)][_0x1a18f2(0x3bb)](K,this['unitID'],this[_0x1a18f2(0x2c9)],_0xdae053[0x0],this[_0x1a18f2(0x313)]);else{if(_0x2b791[_0x1a18f2(0x358)]!==0x0){const _0x2bf767=this[_0x1a18f2(0x2c7)][_0x1a18f2(0x3bb)](B,this['unitID'],this[_0x1a18f2(0x2c9)],_0x2b791,this[_0x1a18f2(0x313)]);_0x2bf767[_0x1a18f2(0x20e)](),_0x3ec2de=_0x2bf767;}else _0x3ec2de=this[_0x1a18f2(0x2c7)][_0x1a18f2(0x3bb)](ye,this['unitID'],this[_0x1a18f2(0x2c9)],this['_handler']);}}return _0x3ec2de[_0x1a18f2(0x2f4)](),_0x3ec2de;}catch(_0x3c9863){return this[_0x1a18f2(0x46f)][_0x1a18f2(0x31f)]('[FetchMissState]',_0x1a18f2(0x412),_0x3c9863),this[_0x1a18f2(0x2c7)][_0x1a18f2(0x3bb)](Z,this['unitID'],this[_0x1a18f2(0x2c9)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x1a18f2(0x313)]);}}[_0x29ff3c(0x31a)](){const _0x33724e=_0x29ff3c;throw new Error(_0x33724e(0x26c));}[_0x29ff3c(0x446)](_0x532c2d){const _0x3d77c0=_0x29ff3c;return this[_0x3d77c0(0x33c)][_0x3d77c0(0x3f9)](_0x532c2d),this;}[_0x29ff3c(0x3b2)](_0x89c174){const _0x2060c3=_0x29ff3c;return this['_queuedRemoteChangesets'][_0x2060c3(0x3f9)](_0x89c174),this;}[_0x29ff3c(0x495)](_0x52b89f){const _0x1f7ad3=_0x29ff3c;if(this[_0x1f7ad3(0x409)])return this[_0x1f7ad3(0x250)]=this[_0x1f7ad3(0x409)],this[_0x1f7ad3(0x409)]=null,this;throw new Error(_0x1f7ad3(0x36d));}[_0x29ff3c(0x3f1)](){const _0x12de78=_0x29ff3c;return this[_0x12de78(0x299)]();}[_0x29ff3c(0x422)](){const _0x45048d=_0x29ff3c;return this[_0x45048d(0x2c7)][_0x45048d(0x3bb)](Y,this[_0x45048d(0x2c6)],this[_0x45048d(0x2c9)],this[_0x45048d(0x409)],this['_pendingMutations'],this['_handler']);}[_0x29ff3c(0x27f)](){return this;}['_onConflict'](){const _0x45ae1b=_0x29ff3c;return this['_injector'][_0x45ae1b(0x3bb)](Z,this[_0x45ae1b(0x2c6)],this[_0x45ae1b(0x2c9)],this[_0x45ae1b(0x409)],this[_0x45ae1b(0x33c)],this[_0x45ae1b(0x313)]);}};V=se([g(0x7,_0x16153f(_0x5945df)),g(0x8,_0x16153f(_0x2fb796)),g(0x9,_0x16153f(y)),g(0xa,_0x4e485b),g(0xb,_0x53d735),g(0xc,_0x17966e),g(0xd,_0x3b0b3e)],V);function vs(_0x215280,_0x2be181,_0x2ceb21,_0x2bc42e,_0x7e1a04,_0x29d141){const _0x3d6b4e=_0x29ff3c;return _0x2bc42e&&_0x7e1a04[_0x3d6b4e(0x358)]?_0x215280[_0x3d6b4e(0x3bb)](F,_0x2be181,_0x2ceb21,_0x2bc42e,_0x7e1a04,_0x29d141):_0x2bc42e?_0x215280['createInstance'](K,_0x2be181,_0x2ceb21,_0x2bc42e,_0x29d141):_0x7e1a04[_0x3d6b4e(0x358)]?_0x215280[_0x3d6b4e(0x3bb)](B,_0x2be181,_0x2ceb21,_0x7e1a04,_0x29d141):_0x215280['createInstance'](ye,_0x2be181,_0x2ceb21,_0x29d141);}var Je=(_0x349171,_0x3ec48a,_0xb2730,_0x325362)=>{const _0x3371c2=_0x29ff3c;for(var _0x3f21fa=_0x3ec48a,_0x12df1c=_0x349171[_0x3371c2(0x358)]-0x1,_0x3845f5;_0x12df1c>=0x0;_0x12df1c--)(_0x3845f5=_0x349171[_0x12df1c])&&(_0x3f21fa=_0x3845f5(_0x3f21fa)||_0x3f21fa);return _0x3f21fa;},S=(_0x21a1a2,_0x4be386)=>(_0x7151f8,_0x56deb4)=>_0x4be386(_0x7151f8,_0x56deb4,_0x21a1a2);let Ie=class extends _0xecb3e3{constructor(_0x40bd3d,_0x2b3a6a,_0x491ed7){const _0x45eff1=_0x29ff3c;super(),l(this,'_entities',new Map()),l(this,_0x45eff1(0x438),new _0x2ba0f7()),(this[_0x45eff1(0x2c7)]=_0x40bd3d,this['_collabSessionService']=_0x2b3a6a,this[_0x45eff1(0x2a2)]=_0x491ed7,this[_0x45eff1(0x49b)]());}[_0x29ff3c(0x37c)](){const _0xe6f946=_0x29ff3c;super[_0xe6f946(0x37c)](),this['_entities']['forEach'](_0xa3bad4=>_0xa3bad4[_0xe6f946(0x37c)]()),this[_0xe6f946(0x2d8)]['clear']();}['getCollabEntity'](_0xac79e){const _0x52c779=_0x29ff3c;var _0x43e079;return(_0x43e079=this[_0x52c779(0x2d8)][_0x52c779(0x2a8)](_0xac79e))!=null?_0x43e079:null;}['getCollabEntity$'](_0x35e4c3){const _0x577b1f=_0x29ff3c,_0x2d7226=this[_0x577b1f(0x29f)](_0x35e4c3);return _0x2d7226?_0x570e60(_0x2d7226):this[_0x577b1f(0x438)]['pipe'](_0x5ba09f(_0x42da07=>_0x42da07[_0x577b1f(0x2c6)]===_0x35e4c3));}['_init'](){const _0x169f35=_0x29ff3c;this[_0x169f35(0x2a2)][_0x169f35(0x217)](_0x280819[_0x169f35(0x3f7)])[_0x169f35(0x1f6)](_0x515cc9(this[_0x169f35(0x320)]),_0x26a43d(0x10))[_0x169f35(0x27b)](async _0x973907=>{const _0x25f345=_0x169f35,_0x5dc92e=_0x973907[_0x25f345(0x3d5)](),_0x3cd490=await this[_0x25f345(0x302)](_0x5dc92e,x[_0x25f345(0x3f7)]);this[_0x25f345(0x2d8)][_0x25f345(0x1f4)](_0x5dc92e,_0x3cd490);}),this[_0x169f35(0x2a2)][_0x169f35(0x217)](_0x280819[_0x169f35(0x236)])[_0x169f35(0x1f6)](_0x515cc9(this[_0x169f35(0x320)]),_0x26a43d(0x10))['pipe'](_0x5ba09f(_0x2d0d43=>!_0x2d0d43[_0x169f35(0x3d5)]()[_0x169f35(0x2cb)]('__')))[_0x169f35(0x27b)](async _0x3dfcd0=>{const _0xeeb7a1=_0x169f35,_0x4271d0=_0x3dfcd0[_0xeeb7a1(0x3d5)](),_0x1167bf=await this[_0xeeb7a1(0x302)](_0x4271d0,x[_0xeeb7a1(0x236)]);this[_0xeeb7a1(0x2d8)][_0xeeb7a1(0x1f4)](_0x4271d0,_0x1167bf);}),_0x283c9e(this[_0x169f35(0x2a2)][_0x169f35(0x21b)](_0x280819['UNIVER_SHEET']),this['_univerInstanceService'][_0x169f35(0x21b)](_0x280819['UNIVER_DOC']))[_0x169f35(0x1f6)](_0x515cc9(this['dispose$']))[_0x169f35(0x27b)](_0x3374c9=>{const _0x2351bd=_0x169f35,_0x1f2074=_0x3374c9[_0x2351bd(0x3d5)](),_0x550ee6=this[_0x2351bd(0x2d8)][_0x2351bd(0x2a8)](_0x1f2074);_0x550ee6&&(_0x550ee6[_0x2351bd(0x37c)](),this[_0x2351bd(0x2d8)][_0x2351bd(0x2e6)](_0x1f2074));});}async[_0x29ff3c(0x302)](_0x19eb9a,_0x57e26f){const _0x4658ac=_0x29ff3c,_0x595d8b=await this[_0x4658ac(0x398)][_0x4658ac(0x277)](_0x19eb9a),_0x55a8c8=this[_0x4658ac(0x2c7)]['createInstance'](this['_getCtorByUniverType'](_0x57e26f),_0x19eb9a,_0x57e26f,_0x595d8b);return await _0x55a8c8[_0x4658ac(0x2a6)](),this[_0x4658ac(0x438)][_0x4658ac(0x1d7)](_0x55a8c8),_0x55a8c8;}[_0x29ff3c(0x2ba)](_0xa89870){const _0x4019e7=_0x29ff3c;switch(_0xa89870){case x[_0x4019e7(0x236)]:return _t;case x[_0x4019e7(0x3f7)]:return ut;default:throw new Error(_0x4019e7(0x47e)+_0xa89870);}}};Ie=Je([_0x47ab07(_0x49cfc4[_0x29ff3c(0x2fd)],Ie),S(0x0,_0x16153f(_0x5945df)),S(0x1,_0x16153f(Re)),S(0x2,_0x416446)],Ie);let We=class extends _0xecb3e3{constructor(_0x30dccd,_0x2a95df,_0x3e3cb1,_0x36e3fb,_0x51a004,_0x2f4eaf,_0x5391e0,_0x314a73,_0x58c958,_0x356170,_0x25a936,_0x208677,_0x202e2a){const _0x483b67=_0x29ff3c;super(),l(this,'_state$',new _0x45e4c4(null)),l(this,_0x483b67(0x408),this[_0x483b67(0x3fe)][_0x483b67(0x49d)]()),l(this,_0x483b67(0x23a)),l(this,_0x483b67(0x2af),!0x1),l(this,_0x483b67(0x1f9),this[_0x483b67(0x408)]['pipe'](_0xc3a3dd(_0x1d3278=>_0x1d3278?_0x1d3278[_0x483b67(0x30c)]:w['OFFLINE']),_0x21acb7(0x1))),l(this,_0x483b67(0x2d5),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x483b67(0x2c6)]=_0x30dccd,this[_0x483b67(0x2b1)]=_0x2a95df,this[_0x483b67(0x43f)]=_0x3e3cb1,this[_0x483b67(0x2c7)]=_0x36e3fb,this[_0x483b67(0x21a)]=_0x51a004,this[_0x483b67(0x269)]=_0x2f4eaf,this[_0x483b67(0x406)]=_0x5391e0,this[_0x483b67(0x482)]=_0x314a73,this[_0x483b67(0x443)]=_0x58c958,this[_0x483b67(0x46f)]=_0x356170,this['_commandService']=_0x25a936,this[_0x483b67(0x36f)]=_0x208677,this['_singleActiveUnitService']=_0x202e2a);}get['state'](){const _0x582fab=_0x29ff3c;return this[_0x582fab(0x23a)];}async[_0x29ff3c(0x2a6)](){const _0x4b33d8=_0x29ff3c;if(this[_0x4b33d8(0x203)])throw new Error(_0x4b33d8(0x1d8));await this[_0x4b33d8(0x49b)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0xa56ed7(()=>{const _0x585011=_0x2107;this[_0x585011(0x2af)]=!0x1,this[_0x585011(0x22e)]();});}[_0x29ff3c(0x3c3)](_0x330f99){const _0x27d43b=_0x29ff3c;this[_0x27d43b(0x23a)]=_0x330f99,this[_0x27d43b(0x3fe)]['next'](_0x330f99);}async[_0x29ff3c(0x49b)](){const _0x496cc3=_0x29ff3c;var _0x272d5d;return this[_0x496cc3(0x3c3)](await this[_0x496cc3(0x433)]()),this['_singleActiveUnitService']&&((_0x272d5d=this[_0x496cc3(0x3c1)])==null||_0x272d5d['editingUnit'](this[_0x496cc3(0x2c6)]),this[_0x496cc3(0x401)](_0xa56ed7(this[_0x496cc3(0x3c1)]['getUnitStatus$'](this[_0x496cc3(0x2c6)])[_0x496cc3(0x27b)](_0x2255c1=>{const _0x28292d=_0x496cc3;this[_0x28292d(0x46f)]['debug'](_0x28292d(0x345),'editing\x20status\x20changed\x20to',_0x2255c1),_0x2255c1===ms[_0x28292d(0x2f7)]?(this[_0x28292d(0x36f)]['show']({'content':this['_localeService']['t'](_0x28292d(0x218)),'type':_0x1a069a[_0x28292d(0x34f)]}),this['_univerPermissionService'][_0x28292d(0x461)](this['unitID'],!0x1)):this[_0x28292d(0x269)][_0x28292d(0x461)](this[_0x28292d(0x2c6)],!0x0);})))),this[_0x496cc3(0x401)](_0xa56ed7(this['_session'][_0x496cc3(0x220)][_0x496cc3(0x27b)](_0x347e11=>{const _0xac6537=_0x496cc3;_0x347e11===he[_0xac6537(0x332)]?this[_0xac6537(0x1f1)]():_0x347e11===he['OFFLINE']&&this[_0xac6537(0x21f)]();}))),this[_0x496cc3(0x401)](_0xa56ed7(this[_0x496cc3(0x43f)][_0x496cc3(0x223)][_0x496cc3(0x27b)](_0x1e5192=>{const _0x4f4194=_0x496cc3;try{const _0x39c57f=_0x1e5192['eventID'];_0x39c57f===_0x531a33['NEW_CHANGESETS']?this['_onRemoteChangeset'](_0xd429fd(_0x1e5192[_0x4f4194(0x44d)])):_0x39c57f===_0x531a33[_0x4f4194(0x2d2)]?this[_0x4f4194(0x30a)](_0x1e5192[_0x4f4194(0x44d)]):_0x39c57f===_0x531a33[_0x4f4194(0x49a)]?this[_0x4f4194(0x418)]():_0x39c57f===_0x531a33[_0x4f4194(0x2ca)]&&this['_onFetchMissResult'](_0x1e5192['data'][_0x4f4194(0x4ad)][_0x4f4194(0x3e0)](_0x39d0b5=>_0xd429fd(_0x39d0b5)));}catch(_0x451008){throw console[_0x4f4194(0x31f)](_0x4f4194(0x3a5),_0x451008),_0x451008;}}))),this[_0x496cc3(0x23a)];}[_0x29ff3c(0x3b7)](){const _0xa56696=_0x29ff3c;this[_0xa56696(0x2d5)]=!0x1;}[_0x29ff3c(0x260)](){const _0x271f67=_0x29ff3c;if(this[_0x271f67(0x2d5)])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[_0x271f67(0x2d5)]=!0x0;}[_0x29ff3c(0x3df)](_0x2b898d){const _0xf24bec=_0x29ff3c;this[_0xf24bec(0x260)](),this['_updateState'](this[_0xf24bec(0x23a)][_0xf24bec(0x446)](_0x2b898d)),this['_unlockTransition']();}[_0x29ff3c(0x4aa)](_0x56e93c){const _0x1a2470=_0x29ff3c;if(!(_0x56e93c[_0x1a2470(0x1ff)]<=this[_0x1a2470(0x443)][_0x1a2470(0x45a)](this[_0x1a2470(0x2c6)]))){if(this[_0x1a2470(0x2af)]){this[_0x1a2470(0x255)]['push'](_0x56e93c);return;}this['_applyRemoteChangeset'](_0x56e93c);}}[_0x29ff3c(0x22e)](){const _0x2497ac=_0x29ff3c;this[_0x2497ac(0x255)][_0x2497ac(0x468)](_0x94c99c=>this[_0x2497ac(0x29e)](_0x94c99c)),this['_remoteChangesetQueue']=[];}[_0x29ff3c(0x29e)](_0x3afee2){const _0x2c503e=_0x29ff3c,_0x225210=this[_0x2c503e(0x406)][_0x2c503e(0x491)]['fetchThroughInterceptors'](this[_0x2c503e(0x406)][_0x2c503e(0x491)][_0x2c503e(0x383)]()[_0x2c503e(0x1e4)])(_0x3afee2[_0x2c503e(0x309)],null)||_0x3afee2['mutations'],_0x330289={..._0x3afee2,'mutations':_0x225210};this[_0x2c503e(0x260)](),this[_0x2c503e(0x3c3)](this[_0x2c503e(0x23a)][_0x2c503e(0x3b2)](_0x330289)),this['_unlockTransition']();}[_0x29ff3c(0x30a)](_0x599770){const _0x4a47dd=_0x29ff3c;this['_lockTransition'](),this[_0x4a47dd(0x3c3)](this[_0x4a47dd(0x23a)][_0x4a47dd(0x495)](_0x599770)),this[_0x4a47dd(0x3b7)]();}[_0x29ff3c(0x418)](){const _0x245cbe=_0x29ff3c;this[_0x245cbe(0x260)](),this[_0x245cbe(0x3c3)](this[_0x245cbe(0x23a)]['onRemoteRej']()),this[_0x245cbe(0x3b7)]();}[_0x29ff3c(0x38a)](_0x49fe0f){const _0x19221c=_0x29ff3c;if(!(this[_0x19221c(0x23a)]instanceof V))throw new TypeError(_0x19221c(0x476));const _0x2d39cf=_0x49fe0f['map'](_0x46df82=>{const _0x409a7d=_0x19221c,_0x1551ad=this['_compressMutationService'][_0x409a7d(0x491)]['fetchThroughInterceptors'](this[_0x409a7d(0x406)][_0x409a7d(0x491)]['getInterceptPoints']()[_0x409a7d(0x1e4)])(_0x46df82[_0x409a7d(0x309)],null)||_0x46df82[_0x409a7d(0x309)];return{..._0x46df82,'mutations':_0x1551ad};});this['_lockTransition'](),this['_updateState'](this[_0x19221c(0x23a)][_0x19221c(0x32d)](_0x2d39cf)),this['_unlockTransition']();}['_toggleOffline'](){const _0x597bc6=_0x29ff3c;this['_lockTransition'](),this['_updateState'](this[_0x597bc6(0x23a)]['toggleOffline']()),this[_0x597bc6(0x3b7)]();}[_0x29ff3c(0x1f1)](){const _0x1da409=_0x29ff3c;this[_0x1da409(0x260)](),this[_0x1da409(0x3c3)](this[_0x1da409(0x23a)]['toggleOnline']()),this[_0x1da409(0x3b7)]();}async[_0x29ff3c(0x433)](){return new Promise(_0x23e2b6=>{const _0xa9c31e=_0x2107;this['_session'][_0xa9c31e(0x220)]['pipe'](_0x56a0f9(0x1))[_0xa9c31e(0x27b)](async _0x453e96=>{const _0x1867ec=_0xa9c31e;_0x23e2b6(await this[_0x1867ec(0x2e5)](_0x453e96===he[_0x1867ec(0x332)]));});});}[_0x29ff3c(0x32c)](){const _0x5dc0d0=this['unitID'];return{'onStateChange':(_0x328f2b,_0x1e2330)=>{const _0x50400c=_0x2107;if(_0x328f2b!==this[_0x50400c(0x23a)])throw new Error(_0x50400c(0x3ec)+_0x328f2b[_0x50400c(0x30c)]+_0x50400c(0x25e)+_0x1e2330[_0x50400c(0x30c)]+_0x50400c(0x466)+this[_0x50400c(0x23a)][_0x50400c(0x30c)]);this['_updateState'](_0x1e2330);},'onSendChangeset':_0x391916=>{const _0x48622c=_0x2107,_0x1c3fe0={'eventID':_0x531a33[_0x48622c(0x3b4)],'data':{'unitID':_0x391916['unitID'],'unitType':this[_0x48622c(0x2b1)],'changeset':_0x391916,'memberID':this[_0x48622c(0x43f)][_0x48622c(0x3e8)]()}};this[_0x48622c(0x43f)][_0x48622c(0x1fd)](_0x1c3fe0,this[_0x48622c(0x2c6)]);},'onMissingChangesets':({from:_0x2c0371,to:_0x4216d9})=>{const _0x4958d6=_0x2107;this[_0x4958d6(0x46f)][_0x4958d6(0x30b)](_0x4958d6(0x345),'fetching\x20missing\x20changesets\x20from\x20'+_0x2c0371+_0x4958d6(0x2b0)+_0x4216d9);const _0x3e857f={'eventID':_0x531a33[_0x4958d6(0x306)],'data':{'unitID':_0x5dc0d0,'unitType':this['_type'],'from':_0x2c0371,'to':_0x4216d9}};this[_0x4958d6(0x43f)][_0x4958d6(0x1fd)](_0x3e857f,this[_0x4958d6(0x2c6)]);}};}async[_0x29ff3c(0x2e5)](_0x7d0d3f){const _0x460aad=_0x29ff3c;var _0x406d43,_0x208d3e;const _0x4a3520=await this[_0x460aad(0x21a)][_0x460aad(0x2ee)](this[_0x460aad(0x2c6)]),_0x2dda81=(_0x406d43=_0x4a3520==null?void 0x0:_0x4a3520[_0x460aad(0x309)])!=null?_0x406d43:[],_0x36cdfa=(_0x208d3e=_0x4a3520==null?void 0x0:_0x4a3520[_0x460aad(0x1e6)])!=null?_0x208d3e:null,_0x3f3ef4=this[_0x460aad(0x2c6)];try{this[_0x460aad(0x208)](_0x36cdfa,_0x2dda81);}catch(_0xaeadd4){this[_0x460aad(0x46f)]['error'](_0xaeadd4);}const _0x5e6722=this[_0x460aad(0x32c)]();if(_0x7d0d3f){const _0x44eb1b=vs(this[_0x460aad(0x2c7)],_0x3f3ef4,this[_0x460aad(0x2b1)],_0x36cdfa,_0x2dda81,_0x5e6722);return _0x44eb1b instanceof B?_0x44eb1b[_0x460aad(0x20e)]():(_0x44eb1b instanceof F||_0x44eb1b instanceof K)&&_0x44eb1b[_0x460aad(0x31a)](),_0x44eb1b;}return this[_0x460aad(0x2c7)]['createInstance'](Y,_0x3f3ef4,this[_0x460aad(0x2b1)],_0x36cdfa,_0x2dda81,_0x5e6722);}[_0x29ff3c(0x208)](_0x2873f8,_0x4773ef){const _0x12d367=_0x29ff3c;var _0x56f327,_0xe415e1;const _0x4100c7=this[_0x12d367(0x406)][_0x12d367(0x491)]['fetchThroughInterceptors'](this[_0x12d367(0x406)]['interceptor'][_0x12d367(0x383)]()[_0x12d367(0x1e4)]);(_0x56f327=_0x4100c7((_0x2873f8==null?void 0x0:_0x2873f8[_0x12d367(0x309)])||[],null))==null||_0x56f327['forEach'](_0x5b91a0=>this['_commandService'][_0x12d367(0x2d9)](_0x5b91a0['id'],_0x5b91a0[_0x12d367(0x475)])),(_0xe415e1=_0x4100c7(_0x4773ef||[],null))==null||_0xe415e1[_0x12d367(0x468)](_0x298f9f=>this[_0x12d367(0x2cd)][_0x12d367(0x2d9)](_0x298f9f['id'],_0x298f9f['params']));}};We=Je([S(0x3,_0x16153f(_0x5945df)),S(0x4,_0x16153f(y)),S(0x5,_0x16153f(_0x4c655a)),S(0x6,_0x16153f(_0x2b6c4e)),S(0x7,_0x16153f(_0xa9bb0e)),S(0x8,_0x16153f(_0x2fb796)),S(0x9,_0x4e485b),S(0xa,_0x53d735),S(0xb,_0x2bb05d),S(0xc,_0x4bc039(Xe))],We);let _t=class extends We{constructor(_0x40add4,_0xe3474c,_0xc9e5df,_0x4f1eb1,_0x289b71,_0x1074ba,_0x50253c,_0x5e7ab2,_0xa043f7,_0x23313d,_0x5b4485,_0xb823ba,_0x2b7187,_0xf83409,_0x339f4b,_0x562c93,_0x1ac013){const _0x4452fd=_0x29ff3c;super(_0x40add4,_0xe3474c,_0xc9e5df,_0x4f1eb1,_0x289b71,_0x1074ba,_0x50253c,_0x5e7ab2,_0xa043f7,_0xf83409,_0x339f4b,_0x562c93,_0x1ac013),this[_0x4452fd(0x2c6)]=_0x40add4,this[_0x4452fd(0x2c9)]=_0xe3474c,this[_0x4452fd(0x253)]=_0xc9e5df,this['_docStateChangeManagerService']=_0x23313d,this[_0x4452fd(0x22b)]=_0x5b4485,this[_0x4452fd(0x310)]=_0xb823ba,this[_0x4452fd(0x3dc)]=_0x2b7187;}['_createHandler'](){const _0x4fe2a0=_0x29ff3c,_0x2e1973=super[_0x4fe2a0(0x32c)]();return _0x2e1973[_0x4fe2a0(0x35c)]=_0x56d94c=>this['_docTransformIMECacheService'][_0x4fe2a0(0x331)](_0x56d94c),_0x2e1973[_0x4fe2a0(0x2dd)]=_0x538348=>this['_docTransformSelectionsService'][_0x4fe2a0(0x2e9)](_0x538348),_0x2e1973[_0x4fe2a0(0x41c)]=_0x4972ec=>this['_docSyncEditingCollabCursorService'][_0x4fe2a0(0x357)](_0x4972ec),_0x2e1973[_0x4fe2a0(0x221)]=_0x3187cd=>this[_0x4fe2a0(0x22b)][_0x4fe2a0(0x1f0)](_0x3187cd),_0x2e1973;}async[_0x29ff3c(0x49b)](){const _0x423647=_0x29ff3c,_0x49bc9b=await super['_init']();return this[_0x423647(0x354)]['docStateChange$']['pipe'](_0x515cc9(this[_0x423647(0x320)]))['subscribe'](_0x44346e=>{const _0x52313e=_0x423647;if(_0x44346e==null)return;const {unitId:_0x2c9920,redoState:_0x562a68,commandId:_0x35a615}=_0x44346e;if(_0x2c9920!==this[_0x52313e(0x2c6)])return;const _0x3fa525={'id':_0x35a615,'type':_0x85ebfe[_0x52313e(0x428)],'params':{'unitId':_0x2c9920,'actions':_0x562a68[_0x52313e(0x3ba)],'textRanges':null}};this['_onLocalMutation'](_0x3fa525);}),_0x49bc9b;}};_t=Je([S(0x3,_0x16153f(_0x5945df)),S(0x4,_0x16153f(y)),S(0x5,_0x16153f(_0x4c655a)),S(0x6,_0x16153f(_0x2b6c4e)),S(0x7,_0x16153f(_0xa9bb0e)),S(0x8,_0x16153f(_0x2fb796)),S(0x9,_0x16153f(_0x5009d5)),S(0xa,_0x16153f(Be)),S(0xb,_0x16153f(Fe)),S(0xc,_0x16153f(yt)),S(0xd,_0x4e485b),S(0xe,_0x53d735),S(0xf,_0x2bb05d),S(0x10,_0x4bc039(Xe))],_t);let ut=class extends We{constructor(_0xf00ad7,_0x12909e,_0x11f16b,_0x3d40ff,_0x138b47,_0x1f27e7,_0x127a0c,_0x29227c,_0x573afd,_0x38d534,_0x36baa7,_0x52171b,_0x303f0a,_0x2db78b){const _0x535907=_0x29ff3c;super(_0xf00ad7,_0x12909e,_0x11f16b,_0x3d40ff,_0x138b47,_0x1f27e7,_0x127a0c,_0x29227c,_0x573afd,_0x36baa7,_0x52171b,_0x303f0a,_0x2db78b),this[_0x535907(0x2c6)]=_0xf00ad7,this[_0x535907(0x2c9)]=_0x12909e,this[_0x535907(0x253)]=_0x11f16b,this['_sheetTransformSelectionsService']=_0x38d534;}['_createHandler'](){const _0x1c554d=_0x29ff3c,_0x5efa43=super[_0x1c554d(0x32c)]();return _0x5efa43[_0x1c554d(0x2dd)]=_0x1f59ec=>this[_0x1c554d(0x450)][_0x1c554d(0x2e9)](_0x1f59ec),_0x5efa43;}async[_0x29ff3c(0x49b)](){const _0x344bfa=_0x29ff3c,_0x5be57a=await super['_init']();return this[_0x344bfa(0x401)](this[_0x344bfa(0x2cd)][_0x344bfa(0x40a)]((_0x413c5f,_0xd9e5c6)=>{const _0x343051=_0x344bfa;if(_0x413c5f[_0x343051(0x2c9)]!==_0x85ebfe[_0x343051(0x428)]||_0xd9e5c6!=null&&_0xd9e5c6[_0x343051(0x455)]||_0xd9e5c6!=null&&_0xd9e5c6['onlyLocal'])return;const _0x204620=_0x413c5f[_0x343051(0x475)];if((_0x204620==null?void 0x0:_0x204620['unitId'])!==this[_0x343051(0x2c6)])return;const _0x4235ce=_0x413c5f,_0x3f548f=this[_0x343051(0x406)]['interceptor'][_0x343051(0x2ab)](this['_compressMutationService'][_0x343051(0x491)][_0x343051(0x383)]()[_0x343051(0x1df)])([_0x4235ce],null)||[_0x4235ce];this[_0x343051(0x3df)](_0x3f548f[0x0]);})),_0x5be57a;}};ut=Je([S(0x3,_0x16153f(_0x5945df)),S(0x4,_0x16153f(y)),S(0x5,_0x16153f(_0x4c655a)),S(0x6,_0x16153f(_0x2b6c4e)),S(0x7,_0x16153f(_0xa9bb0e)),S(0x8,_0x16153f(_0x2fb796)),S(0x9,_0x16153f(Ve)),S(0xa,_0x4e485b),S(0xb,_0x53d735),S(0xc,_0x2bb05d),S(0xd,_0x4bc039(Xe))],ut);const Wt=[_0x29ff3c(0x46e),'jiqing500','verdancy600','red300','blue400',_0x29ff3c(0x38b)];class Ot extends _0x4cb958{constructor(){super(...arguments),l(this,'_assignedColors',new Map()),l(this,'_colorIndex',0x0);}[_0x29ff3c(0x40f)](_0x56f252){const _0xb93354=_0x29ff3c;if(this[_0xb93354(0x3d1)][_0xb93354(0x3bd)](_0x56f252))return this[_0xb93354(0x3d1)]['get'](_0x56f252);const _0x50ecf6=Wt[this['_colorIndex']];return this[_0xb93354(0x32e)]=(this['_colorIndex']+0x1)%Wt['length'],this['_assignedColors']['set'](_0x56f252,_0x50ecf6),_0x50ecf6;}}var an=(_0xa0ded2,_0x36f2fa,_0x3121d7,_0x53fb3c)=>{const _0x29f5aa=_0x29ff3c;for(var _0x15b5ea=_0x36f2fa,_0xab02af=_0xa0ded2[_0x29f5aa(0x358)]-0x1,_0x53d5eb;_0xab02af>=0x0;_0xab02af--)(_0x53d5eb=_0xa0ded2[_0xab02af])&&(_0x15b5ea=_0x53d5eb(_0x15b5ea)||_0x15b5ea);return _0x15b5ea;},ne=(_0x4ac3b7,_0x551c7d)=>(_0x35b99e,_0x3fa1b7)=>_0x551c7d(_0x35b99e,_0x3fa1b7,_0x4ac3b7);const cn=0x12c,hn=0x64,ln=()=>{let _0x560347=[],_0x3d64dd=!0x1;return _0x47123d=>{const _0x3fe9bf=_0x2107;_0x560347[_0x3fe9bf(0x3f9)](_0x47123d),_0x3d64dd||(_0x3d64dd=!0x0,setTimeout(()=>{const _0x1afb7e=_0x3fe9bf;_0x560347[_0x1afb7e(0x468)](_0x2d6c22=>_0x2d6c22()),_0x560347=[],_0x3d64dd=!0x1;}));};};let dt=class extends _0xecb3e3{constructor(_0x1590cb,_0x1a357f,_0x8f0d4b,_0x1e8581,_0x22822e,_0x29b024,_0x51d7b8,_0x2b7b79){const _0x132942=_0x29ff3c;super(),l(this,'_online',!0x1),l(this,_0x132942(0x49b),!0x1),l(this,'_cursorInfo$',new _0x45e4c4(new Map())),l(this,_0x132942(0x1e2),this[_0x132942(0x3a1)][_0x132942(0x49d)]()),l(this,_0x132942(0x22d),new _0x45e4c4([])),l(this,_0x132942(0x22f),this[_0x132942(0x22d)]['pipe'](_0x30e3cf(cn))),l(this,_0x132942(0x315),_0x29b107((_0x490750,_0x336057)=>{const _0x3bd282=_0x132942,_0x359610={'eventID':_0x531a33[_0x3bd282(0x3f8)],'data':{'unitID':this['unitID'],'memberID':this[_0x3bd282(0x43f)][_0x3bd282(0x3e8)](),'selection':_0x59af6c(_0x490750,_0x336057['range'])}};this[_0x3bd282(0x43f)][_0x3bd282(0x1fd)](_0x359610,this[_0x3bd282(0x2c6)]);},hn)),(this[_0x132942(0x2c6)]=_0x1590cb,this['_session']=_0x1a357f,this[_0x132942(0x2c7)]=_0x8f0d4b,this[_0x132942(0x3c2)]=_0x1e8581,this['_memberService']=_0x22822e,this['_univerInstanceService']=_0x29b024,this[_0x132942(0x2cd)]=_0x51d7b8,this[_0x132942(0x219)]=_0x2b7b79);}get[_0x29ff3c(0x449)](){const _0x6d7208=_0x29ff3c;return this[_0x6d7208(0x3a1)][_0x6d7208(0x29c)]();}get[_0x29ff3c(0x2e0)](){const _0x2d34d2=_0x29ff3c;return this[_0x2d34d2(0x22d)][_0x2d34d2(0x29c)]();}[_0x29ff3c(0x37c)](){const _0x1003ac=_0x29ff3c;super[_0x1003ac(0x37c)](),this[_0x1003ac(0x3a1)][_0x1003ac(0x1d7)](new Map()),this[_0x1003ac(0x3a1)][_0x1003ac(0x360)](),this['_roomMembers$'][_0x1003ac(0x1d7)]([]),this[_0x1003ac(0x22d)][_0x1003ac(0x360)]();}[_0x29ff3c(0x2a6)](){const _0x319031=_0x29ff3c;this[_0x319031(0x49b)]||(this[_0x319031(0x49b)]=!0x0,this[_0x319031(0x43f)][_0x319031(0x220)][_0x319031(0x1f6)](_0x515cc9(this[_0x319031(0x320)]))[_0x319031(0x27b)](_0x34aec4=>{const _0x450f38=_0x319031;_0x34aec4===he[_0x450f38(0x332)]?this[_0x450f38(0x1f1)]():this['_toggleOffline']();}),this['_session'][_0x319031(0x223)][_0x319031(0x1f6)](_0x515cc9(this[_0x319031(0x320)]))['subscribe'](_0x51c25d=>{const _0x29daa9=_0x319031,_0x24d632=_0x51c25d[_0x29daa9(0x303)];_0x24d632===_0x531a33[_0x29daa9(0x3f8)]&&this[_0x29daa9(0x1f7)](_0x51c25d),_0x24d632===_0x531a33[_0x29daa9(0x37d)]&&this['_onCursorDelete'](_0x51c25d);}),this[_0x319031(0x259)](),this[_0x319031(0x401)](this[_0x319031(0x2cd)][_0x319031(0x40a)](_0x420069=>{const _0x2b1a73=_0x319031;if(this[_0x2b1a73(0x473)]&&_0x420069['id']===_0x5d539f['id']&&_0x420069[_0x2b1a73(0x475)]['unitId']===this[_0x2b1a73(0x2c6)]){const _0x4784e6=_0x420069[_0x2b1a73(0x475)];this[_0x2b1a73(0x315)](_0x4784e6[_0x2b1a73(0x41d)],_0x4784e6['selections'][0x0]);}})));}[_0x29ff3c(0x1f7)](_0x10955a){const _0x52dbad=_0x29ff3c;var _0x3644d5,_0x1e6c70;const {memberID:_0x4a83df,selection:_0x4480af}=_0x10955a[_0x52dbad(0x44d)],{sheetName:_0x31ac40,range:_0x17f6a3}=_0x12a630(_0x4480af),_0xe0ff61={'name':(_0x1e6c70=(_0x3644d5=this[_0x52dbad(0x4ac)][_0x52dbad(0x3ef)](this[_0x52dbad(0x2c6)],_0x4a83df))==null?void 0x0:_0x3644d5['name'])!=null?_0x1e6c70:_0x52dbad(0x2a0),'range':this[_0x52dbad(0x330)](_0x31ac40,_0x17f6a3),'sheetID':_0x31ac40,'color':this['_colorAssignService'][_0x52dbad(0x40f)](_0x4a83df),'selection':_0x4480af},_0x56d0e1=this[_0x52dbad(0x449)];_0x56d0e1[_0x52dbad(0x1f4)](_0x4a83df,_0xe0ff61),this[_0x52dbad(0x3a1)][_0x52dbad(0x1d7)](_0x56d0e1);}[_0x29ff3c(0x20f)](_0x2641cf){const _0x4ead51=_0x29ff3c,{memberID:_0x3f1cf4}=_0x2641cf['data'],_0x2f53f2=this[_0x4ead51(0x449)];_0x2f53f2[_0x4ead51(0x2e6)](_0x3f1cf4),this[_0x4ead51(0x3a1)][_0x4ead51(0x1d7)](_0x2f53f2);}[_0x29ff3c(0x330)](_0x4e04f0,_0x3e7e8d){const _0x805c8f=_0x29ff3c;var _0x5ecc78,_0x3ec1cc;const _0x22b8fd=(_0x3ec1cc=(_0x5ecc78=this[_0x805c8f(0x2a2)][_0x805c8f(0x396)](this[_0x805c8f(0x2c6)]))==null?void 0x0:_0x5ecc78[_0x805c8f(0x48e)](_0x4e04f0))==null?void 0x0:_0x3ec1cc['getMergeData']();return(_0x22b8fd==null?void 0x0:_0x22b8fd[_0x805c8f(0x44c)](_0x52c4c2=>_0x56f815[_0x805c8f(0x431)](_0x52c4c2,_0x3e7e8d)))||_0x3e7e8d;}['_onRefRangeChange'](){const _0x248f0e=_0x29ff3c,_0x13ec39=new _0x15b2da(),_0x140503=ln(),_0x26e2f4=()=>{_0x13ec39['dispose']();const _0x29066e=(_0x1899e5,_0x27bce8,_0x5491bb,_0xbfcd55)=>{const _0x435c34=_0x2107;let _0x4d8740=[];switch(_0x1899e5['id']){case _0x3c79c3['DeleteRangeMoveLeftCommandId']:{_0x4d8740=_0x1c0845(_0x1899e5,_0xbfcd55);break;}case _0x3c79c3['DeleteRangeMoveUpCommandId']:{_0x4d8740=_0x40f81d(_0x1899e5,_0xbfcd55);break;}case _0x3c79c3[_0x435c34(0x366)]:{_0x4d8740=_0x2f0896(_0x1899e5,_0xbfcd55);break;}case _0x3c79c3['InsertRangeMoveDownCommandId']:{_0x4d8740=_0x29f6fd(_0x1899e5,_0xbfcd55);break;}case _0x3c79c3['InsertRangeMoveRightCommandId']:{_0x4d8740=_0x1f85af(_0x1899e5,_0xbfcd55);break;}case _0x3c79c3[_0x435c34(0x298)]:{_0x4d8740=_0x934c29(_0x1899e5,_0xbfcd55);break;}case _0x3c79c3[_0x435c34(0x4a3)]:{_0x4d8740=_0x2165b6(_0x1899e5,_0xbfcd55);break;}case _0x3c79c3[_0x435c34(0x314)]:{_0x4d8740=_0x3f153e(_0x1899e5,_0xbfcd55);break;}case _0x3c79c3[_0x435c34(0x26e)]:{_0x4d8740=_0x59d893(_0x1899e5,_0xbfcd55);break;}}const _0x33b3c8=_0x3a54e4(_0x4d8740,_0xbfcd55),_0x39c60e=this[_0x435c34(0x449)][_0x435c34(0x2a8)](_0x27bce8);if(_0x39c60e&&_0x33b3c8){const _0x3f7a6e={..._0x39c60e,'range':_0x33b3c8};this[_0x435c34(0x449)][_0x435c34(0x1f4)](_0x27bce8,_0x3f7a6e),_0x140503(()=>{const _0x50cfb4=_0x435c34,_0x407c45=this[_0x50cfb4(0x219)][_0x50cfb4(0x2a3)](_0x33b3c8,_0x1c1c0b=>(_0x407c45[_0x50cfb4(0x37c)](),_0x29066e(_0x1c1c0b,_0x27bce8,_0x5491bb,_0x33b3c8)));_0x13ec39['add'](_0x407c45);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x5ad774,_0x52ba48)=>{const _0x60b86e=_0x2107,{range:_0x31d732,sheetID:_0x234e16}=_0x5ad774,_0x59e8a2=this['_refRangeService'][_0x60b86e(0x2a3)](_0x31d732,_0x2ec764=>(_0x59e8a2[_0x60b86e(0x37c)](),_0x29066e(_0x2ec764,_0x52ba48,_0x234e16,_0x31d732)));_0x13ec39['add'](_0x59e8a2);});};this[_0x248f0e(0x401)](_0xa56ed7(this[_0x248f0e(0x3a1)][_0x248f0e(0x27b)](()=>{_0x26e2f4();})));}[_0x29ff3c(0x1f1)](){const _0x60c3fa=_0x29ff3c;var _0x1934c1,_0x3e39bf;if(this['_online']=!0x0,((_0x1934c1=this[_0x60c3fa(0x2a2)][_0x60c3fa(0x2ef)]())==null?void 0x0:_0x1934c1[_0x60c3fa(0x3d5)]())!==this[_0x60c3fa(0x2c6)])return;const _0x3b2420=(_0x3e39bf=this[_0x60c3fa(0x2c7)][_0x60c3fa(0x2a8)](_0xd2e978)['getSelections']())==null?void 0x0:_0x3e39bf[0x0];_0x3b2420&&this[_0x60c3fa(0x315)](this[_0x60c3fa(0x2a2)]['getCurrentUnitForType'](_0x280819[_0x60c3fa(0x3f7)])[_0x60c3fa(0x465)]()[_0x60c3fa(0x1dc)](),_0x3b2420);}[_0x29ff3c(0x21f)](){const _0x1ef029=_0x29ff3c;this[_0x1ef029(0x473)]=!0x1;}};dt=an([ne(0x2,_0x16153f(_0x5945df)),ne(0x3,_0x16153f(Ot)),ne(0x4,_0x16153f(Q)),ne(0x5,_0x416446),ne(0x6,_0x53d735),ne(0x7,_0x16153f(_0x23a82f))],dt);var _n=(_0x4b0d18,_0x3c331c,_0x14ad27,_0x439a0e)=>{const _0x45160e=_0x29ff3c;for(var _0x4f7803=_0x3c331c,_0x659c0b=_0x4b0d18[_0x45160e(0x358)]-0x1,_0x1181ef;_0x659c0b>=0x0;_0x659c0b--)(_0x1181ef=_0x4b0d18[_0x659c0b])&&(_0x4f7803=_0x1181ef(_0x4f7803)||_0x4f7803);return _0x4f7803;},q=(_0x1353b6,_0x2f5cf9)=>(_0x588c20,_0x224a5e)=>_0x2f5cf9(_0x588c20,_0x224a5e,_0x1353b6);const un=0x12c,dn=0x64;let gt=class extends _0xecb3e3{constructor(_0x461783,_0x460909,_0x2f39d2,_0x2dde75,_0x5d3b32,_0x2b24a4,_0xb9351,_0x37cf46,_0x278d72){const _0x58947a=_0x29ff3c;super(),l(this,_0x58947a(0x473),!0x1),l(this,'_init',!0x1),l(this,'_cursorInfo$',new _0x45e4c4(new Map())),l(this,_0x58947a(0x1e2),this[_0x58947a(0x3a1)]['asObservable']()),l(this,_0x58947a(0x22d),new _0x45e4c4([])),l(this,'roomMembers$',this[_0x58947a(0x22d)][_0x58947a(0x1f6)](_0x30e3cf(un))),l(this,_0x58947a(0x315),_0x29b107(_0x1d5ce9=>{const _0xc8353e=_0x58947a,_0x566920={'eventID':_0x531a33['UPDATE_CURSOR'],'data':{'unitID':this[_0xc8353e(0x2c6)],'memberID':this[_0xc8353e(0x43f)]['getMemberID'](),'selection':Ss(_0x1d5ce9)}};this[_0xc8353e(0x43f)][_0xc8353e(0x1fd)](_0x566920,this[_0xc8353e(0x2c6)]);},dn)),(this[_0x58947a(0x2c6)]=_0x461783,this[_0x58947a(0x43f)]=_0x460909,this['_injector']=_0x2f39d2,this[_0x58947a(0x3c2)]=_0x2dde75,this[_0x58947a(0x4ac)]=_0x5d3b32,this[_0x58947a(0x1ed)]=_0x2b24a4,this[_0x58947a(0x23e)]=_0xb9351,this[_0x58947a(0x2a2)]=_0x37cf46,this[_0x58947a(0x2cd)]=_0x278d72);}get[_0x29ff3c(0x449)](){const _0x4aa082=_0x29ff3c;return this[_0x4aa082(0x3a1)]['getValue']();}get[_0x29ff3c(0x2e0)](){const _0x16c956=_0x29ff3c;return this[_0x16c956(0x22d)][_0x16c956(0x29c)]();}[_0x29ff3c(0x37c)](){const _0x4dbbe6=_0x29ff3c;super['dispose'](),this[_0x4dbbe6(0x3a1)][_0x4dbbe6(0x1d7)](new Map()),this[_0x4dbbe6(0x3a1)][_0x4dbbe6(0x360)](),this['_roomMembers$']['next']([]),this[_0x4dbbe6(0x22d)][_0x4dbbe6(0x360)]();}['init'](){const _0x42a350=_0x29ff3c;this[_0x42a350(0x49b)]||(this[_0x42a350(0x49b)]=!0x0,this[_0x42a350(0x43f)][_0x42a350(0x220)][_0x42a350(0x1f6)](_0x515cc9(this[_0x42a350(0x320)]))[_0x42a350(0x27b)](_0x2fec9f=>{const _0x254d73=_0x42a350;_0x2fec9f===he[_0x254d73(0x332)]?this['_toggleOnline']():this[_0x254d73(0x21f)]();}),this[_0x42a350(0x43f)][_0x42a350(0x223)][_0x42a350(0x1f6)](_0x515cc9(this[_0x42a350(0x320)]))[_0x42a350(0x27b)](_0x227f52=>{const _0x3cd3a0=_0x42a350,_0x2a1c3c=_0x227f52[_0x3cd3a0(0x303)];_0x2a1c3c===_0x531a33[_0x3cd3a0(0x3f8)]&&this[_0x3cd3a0(0x1f7)](_0x227f52),_0x2a1c3c===_0x531a33[_0x3cd3a0(0x37d)]&&this[_0x3cd3a0(0x20f)](_0x227f52);}),this[_0x42a350(0x401)](this[_0x42a350(0x2cd)]['onCommandExecuted'](_0x2cc21f=>{const _0x1e1558=_0x42a350,_0x1f4b61=_0x2cc21f['params'];_0x1f4b61!=null&&this['_online']&&_0x2cc21f['id']===_0x1bf79d['id']&&_0x1f4b61[_0x1e1558(0x499)]===this[_0x1e1558(0x2c6)]&&_0x1f4b61[_0x1e1558(0x26d)]===!0x1&&this[_0x1e1558(0x315)](_0x1f4b61[_0x1e1558(0x2b7)]);})),this[_0x42a350(0x1ed)][_0x42a350(0x373)][_0x42a350(0x1f6)](_0x515cc9(this[_0x42a350(0x320)]))[_0x42a350(0x27b)](_0x5601e7=>{const _0x20df94=_0x42a350;if((_0x5601e7==null?void 0x0:_0x5601e7[_0x20df94(0x2c6)])!==this[_0x20df94(0x2c6)])return;const _0xcdc31a={'eventID':_0x531a33[_0x20df94(0x3f8)],'data':_0x5601e7};this['_onCursorUpdate'](_0xcdc31a);}),this[_0x42a350(0x401)](this[_0x42a350(0x2cd)]['onCommandExecuted'](_0x5e2f9c=>{const _0x532337=_0x42a350;if(_0x5e2f9c[_0x532337(0x475)]==null)return;const _0x110e12=_0x5e2f9c[_0x532337(0x475)];if(_0x5e2f9c['id']!==_0x336582['id']||_0x110e12['unitId']!==this[_0x532337(0x2c6)])return;const _0x2d9c78={'id':'doc.mutation.rich-text-editing','params':_0x110e12},_0x555af5=this[_0x532337(0x449)];for(const [_0x4a0e6f,_0x5a52c0]of _0x555af5){const _0x4416cd={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x532337(0x2c6)],'actions':[],'textRanges':_0x5a52c0[_0x532337(0x2b7)]}},_0x59cea7=this[_0x532337(0x23e)][_0x532337(0x248)](_0x2d9c78,_0x4416cd,!0x1);if(_0x58b9af(_0x59cea7))throw _0x59cea7[_0x532337(0x31f)];_0x555af5[_0x532337(0x1f4)](_0x4a0e6f,{..._0x5a52c0,'ranges':_0x59cea7['m2Prime'][_0x532337(0x475)][_0x532337(0x27a)]});}queueMicrotask(()=>{const _0x3e01fc=_0x532337;this[_0x3e01fc(0x3a1)][_0x3e01fc(0x1d7)](_0x555af5);});})));}[_0x29ff3c(0x1f7)](_0x3a354e){const _0x487188=_0x29ff3c;var _0x1f40ab,_0x23ea87;const {memberID:_0x370344,selection:_0x42e9c0}=_0x3a354e[_0x487188(0x44d)],_0xd203c8=Zi(_0x42e9c0),_0xbd8d1a=(_0x23ea87=(_0x1f40ab=this[_0x487188(0x4ac)]['getMember'](this[_0x487188(0x2c6)],_0x370344))==null?void 0x0:_0x1f40ab[_0x487188(0x26a)])!=null?_0x23ea87:'Unknown\x20user',_0x5d9dab={'color':this[_0x487188(0x3c2)][_0x487188(0x40f)](_0x370344),'name':_0xbd8d1a,'ranges':_0xd203c8},_0x267aa2=this[_0x487188(0x449)];_0x267aa2[_0x487188(0x1f4)](_0x370344,_0x5d9dab),this[_0x487188(0x3a1)]['next'](_0x267aa2);}[_0x29ff3c(0x20f)](_0x5e0bd5){const _0x2c57b0=_0x29ff3c,{memberID:_0x457895}=_0x5e0bd5[_0x2c57b0(0x44d)],_0x2ea9d6=this[_0x2c57b0(0x449)];_0x2ea9d6[_0x2c57b0(0x2e6)](_0x457895),this[_0x2c57b0(0x3a1)]['next'](_0x2ea9d6);}[_0x29ff3c(0x1f1)](){const _0x1cc65a=_0x29ff3c;var _0xd141f7;if(this[_0x1cc65a(0x473)]=!0x0,((_0xd141f7=this[_0x1cc65a(0x2a2)][_0x1cc65a(0x2ef)]())==null?void 0x0:_0xd141f7[_0x1cc65a(0x3d5)]())!==this[_0x1cc65a(0x2c6)])return;const _0x270c79=this[_0x1cc65a(0x2c7)][_0x1cc65a(0x2a8)](_0x4385b1)[_0x1cc65a(0x3a9)](),_0x41720b=_0x270c79==null?void 0x0:_0x270c79['map'](_0xdcd3d2);Array[_0x1cc65a(0x2b5)](_0x41720b)&&_0x41720b['length']>0x0&&this['_updateLocalCursor'](_0x41720b);}[_0x29ff3c(0x21f)](){const _0x25c53a=_0x29ff3c;this[_0x25c53a(0x473)]=!0x1;}};gt=_n([q(0x2,_0x16153f(_0x5945df)),q(0x3,_0x16153f(Ot)),q(0x4,_0x16153f(Q)),q(0x5,_0x16153f(yt)),q(0x6,_0x3b0b3e),q(0x7,_0x416446),q(0x8,_0x53d735)],gt);var gn=(_0xc49642,_0x500c3e,_0x181ca1,_0x1110ee)=>{const _0x16f0ff=_0x29ff3c;for(var _0x40d239=_0x500c3e,_0x661c6a=_0xc49642[_0x16f0ff(0x358)]-0x1,_0x2148b8;_0x661c6a>=0x0;_0x661c6a--)(_0x2148b8=_0xc49642[_0x661c6a])&&(_0x40d239=_0x2148b8(_0x40d239)||_0x40d239);return _0x40d239;},et=(_0x195a52,_0x182956)=>(_0x56ba84,_0x4503d6)=>_0x182956(_0x56ba84,_0x4503d6,_0x195a52);let le=class extends _0xecb3e3{constructor(_0x4c8e54,_0x55a653,_0x507901){const _0x325984=_0x29ff3c;super(),l(this,_0x325984(0x2d8),new Map()),l(this,_0x325984(0x438),new _0x2ba0f7()),(this[_0x325984(0x2a2)]=_0x4c8e54,this[_0x325984(0x2c7)]=_0x55a653,this['_collabSessionService']=_0x507901,this[_0x325984(0x49b)]());}[_0x29ff3c(0x37c)](){const _0x214ed9=_0x29ff3c;super[_0x214ed9(0x37c)](),this[_0x214ed9(0x438)][_0x214ed9(0x360)](),this[_0x214ed9(0x2d8)][_0x214ed9(0x468)](_0x356dbf=>_0x356dbf['dispose']());}[_0x29ff3c(0x469)](_0x34c72e){const _0x144987=_0x29ff3c;return this[_0x144987(0x2d8)][_0x144987(0x3bd)](_0x34c72e)?this['_entities'][_0x144987(0x2a8)](_0x34c72e)['cursorInfo$']:this[_0x144987(0x438)][_0x144987(0x1f6)](_0x243c7f(_0x129070=>_0x129070[_0x144987(0x2c6)]===_0x34c72e),_0x13022e(_0x4c8b8a=>_0x4c8b8a[_0x144987(0x1e2)]));}[_0x29ff3c(0x49b)](){const _0x193b35=_0x29ff3c;this[_0x193b35(0x2a2)]['getTypeOfUnitAdded$'](_0x280819['UNIVER_SHEET'])[_0x193b35(0x1f6)](_0x515cc9(this['dispose$']))[_0x193b35(0x27b)](async _0x520668=>{const _0x5dc0ed=_0x193b35,_0x2ceb0c=_0x520668['getUnitId'](),_0x2bae6d=await this['_startSheetCollabCursor'](_0x2ceb0c);this[_0x5dc0ed(0x438)][_0x5dc0ed(0x1d7)](_0x2bae6d),this['_entities'][_0x5dc0ed(0x1f4)](_0x2ceb0c,_0x2bae6d);}),this[_0x193b35(0x2a2)]['getTypeOfUnitAdded$'](_0x280819[_0x193b35(0x236)])['pipe'](_0x515cc9(this[_0x193b35(0x320)]))[_0x193b35(0x1f6)](_0x243c7f(_0x2f4ca0=>!_0x2f4ca0['getUnitId']()[_0x193b35(0x2cb)]('__')))[_0x193b35(0x27b)](async _0x2b2911=>{const _0x3ac050=_0x193b35,_0x2497d4=_0x2b2911[_0x3ac050(0x3d5)](),_0x30067c=await this[_0x3ac050(0x30f)](_0x2497d4);this['_entityInit$'][_0x3ac050(0x1d7)](_0x30067c),this['_entities'][_0x3ac050(0x1f4)](_0x2497d4,_0x30067c);}),_0x283c9e(this[_0x193b35(0x2a2)][_0x193b35(0x21b)](_0x280819[_0x193b35(0x236)]),this[_0x193b35(0x2a2)][_0x193b35(0x21b)](_0x280819[_0x193b35(0x3f7)]))[_0x193b35(0x1f6)](_0x515cc9(this['dispose$']))['subscribe'](_0x3ec6d5=>{const _0x33d32d=_0x193b35,_0x2efb7f=_0x3ec6d5[_0x33d32d(0x3d5)](),_0x50a4db=this['_entities'][_0x33d32d(0x2a8)](_0x2efb7f);_0x50a4db&&(_0x50a4db['dispose'](),this[_0x33d32d(0x2d8)][_0x33d32d(0x2e6)](_0x2efb7f));});}async[_0x29ff3c(0x437)](_0x3da31a){const _0x722a1d=_0x29ff3c,_0x42383f=await this[_0x722a1d(0x398)][_0x722a1d(0x277)](_0x3da31a),_0x4be752=this[_0x722a1d(0x2c7)][_0x722a1d(0x3bb)](dt,_0x3da31a,_0x42383f);return _0x4be752[_0x722a1d(0x2a6)](),_0x4be752;}async[_0x29ff3c(0x30f)](_0xd927d9){const _0x3f44bb=_0x29ff3c,_0x182147=await this[_0x3f44bb(0x398)][_0x3f44bb(0x277)](_0xd927d9),_0x399223=this[_0x3f44bb(0x2c7)][_0x3f44bb(0x3bb)](gt,_0xd927d9,_0x182147);return _0x399223[_0x3f44bb(0x2a6)](),_0x399223;}};le=gn([_0x47ab07(_0x49cfc4[_0x29ff3c(0x2fd)],le),et(0x0,_0x416446),et(0x1,_0x16153f(_0x5945df)),et(0x2,_0x16153f(Re))],le);const Oe=0x14,Gt=0xc8,tt=0x4,fn=0x5;function mn(_0x335e71,_0x29652c){const _0x36f1d8=_0x29ff3c;let {radius:_0x4db326,width:_0x232c07,height:_0x4aac5b}=_0x29652c;_0x4db326=_0x4db326!=null?_0x4db326:0x0,_0x232c07=_0x232c07!=null?_0x232c07:0x1e,_0x4aac5b=_0x4aac5b!=null?_0x4aac5b:0x1e;let _0x218e09=0x0,_0x1a588a=0x0,_0x288c00=0x0;_0x218e09=_0x1a588a=_0x288c00=Math[_0x36f1d8(0x423)](_0x4db326,_0x232c07/0x2,_0x4aac5b/0x2),_0x335e71[_0x36f1d8(0x264)](),_0x335e71[_0x36f1d8(0x316)](_0x218e09,0x0),_0x335e71['lineTo'](_0x232c07-_0x1a588a,0x0),_0x335e71[_0x36f1d8(0x419)](_0x232c07-_0x1a588a,_0x1a588a,_0x1a588a,Math['PI']*0x3/0x2,0x0,!0x1),_0x335e71[_0x36f1d8(0x3f0)](_0x232c07,_0x4aac5b-_0x288c00),_0x335e71[_0x36f1d8(0x419)](_0x232c07-_0x288c00,_0x4aac5b-_0x288c00,_0x288c00,0x0,Math['PI']/0x2,!0x1),_0x335e71[_0x36f1d8(0x3f0)](0x0,_0x4aac5b),_0x335e71[_0x36f1d8(0x3f0)](0x0,_0x218e09),_0x335e71[_0x36f1d8(0x419)](_0x218e09,_0x218e09,_0x218e09,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x335e71[_0x36f1d8(0x3bc)](),_0x29652c['fill']&&(_0x335e71[_0x36f1d8(0x38f)](),_0x335e71[_0x36f1d8(0x3a3)]=_0x29652c[_0x36f1d8(0x470)],_0x29652c[_0x36f1d8(0x2aa)]===_0x36f1d8(0x430)?_0x335e71[_0x36f1d8(0x470)]('evenodd'):_0x335e71[_0x36f1d8(0x470)](),_0x335e71[_0x36f1d8(0x285)]());}class ze extends _0x42c613{constructor(_0x371393,_0x1f172d){const _0x16c7f2=_0x29ff3c;super(_0x371393,_0x1f172d),l(this,_0x16c7f2(0x427)),l(this,_0x16c7f2(0x235)),(this[_0x16c7f2(0x427)]=_0x1f172d==null?void 0x0:_0x1f172d[_0x16c7f2(0x427)],this['text']=_0x1f172d==null?void 0x0:_0x1f172d['text']);}static[_0x29ff3c(0x24e)](_0x195e66,_0x169c62){const _0x59d46d=_0x29ff3c,{text:_0x2aac6f,color:_0x436933}=_0x169c62;_0x195e66[_0x59d46d(0x38f)](),_0x195e66[_0x59d46d(0x4a7)]=_0x59d46d(0x257);const _0x33a377=_0x195e66[_0x59d46d(0x2fe)](_0x2aac6f)['width'],_0x505b69=Math['min'](_0x33a377+0x2*tt,Gt);mn(_0x195e66,{'height':Oe,'radius':0x4,'width':_0x505b69,'fill':_0x436933,'evented':!0x1}),_0x195e66[_0x59d46d(0x3a3)]='#FFF';const _0x31edeb=tt,_0x43ff1f=Oe-fn,_0x44a15d=Gt-0x2*tt;if(_0x33a377>_0x44a15d){let _0x1d60b2='',_0x19474f=0x0;for(const _0x1ee468 of _0x2aac6f){const _0xbf3bb=_0x195e66[_0x59d46d(0x2fe)](_0x1ee468)[_0x59d46d(0x231)];if(_0x19474f+_0xbf3bb<=_0x44a15d-_0x195e66[_0x59d46d(0x2fe)](_0x59d46d(0x284))['width'])_0x1d60b2+=_0x1ee468,_0x19474f+=_0xbf3bb;else{_0x1d60b2+=_0x59d46d(0x284);break;}}_0x195e66['fillText'](_0x1d60b2,_0x31edeb,_0x43ff1f);}else _0x195e66['fillText'](_0x2aac6f,_0x31edeb,_0x43ff1f);_0x195e66[_0x59d46d(0x285)]();}['_draw'](_0x25b54d){ze['drawWith'](_0x25b54d,this);}}const Sn=0x1,vn=1.5;class pn extends _0x42c613{constructor(_0x26fde0,_0x579745){const _0x1d3f31=_0x29ff3c;super(_0x26fde0,_0x579745),l(this,_0x1d3f31(0x41b)),l(this,_0x1d3f31(0x294),!0x1),l(this,'_range'),l(this,_0x1d3f31(0x487),''),l(this,_0x1d3f31(0x3c8),_0x1d3f31(0x244)),(_0x579745&&this[_0x1d3f31(0x23f)](_0x579745),this['onPointerEnterObserver'][_0x1d3f31(0x2f9)](()=>this[_0x1d3f31(0x23f)]({'hovered':!0x0})),this[_0x1d3f31(0x258)][_0x1d3f31(0x2f9)](()=>this[_0x1d3f31(0x23f)]({'hovered':!0x1})));}[_0x29ff3c(0x23f)](_0x1a3eab){const _0x6e0d29=_0x29ff3c;var _0x58e943,_0x3ae504,_0x3448a4,_0x1aa25c,_0x25baca;this[_0x6e0d29(0x41b)]=(_0x58e943=_0x1a3eab[_0x6e0d29(0x427)])!=null?_0x58e943:this['_color'],this['_hovered']=(_0x3ae504=_0x1a3eab[_0x6e0d29(0x28e)])!=null?_0x3ae504:this['_hovered'],this[_0x6e0d29(0x26b)]=(_0x3448a4=_0x1a3eab[_0x6e0d29(0x38e)])!=null?_0x3448a4:this[_0x6e0d29(0x26b)],this[_0x6e0d29(0x487)]=(_0x1aa25c=_0x1a3eab[_0x6e0d29(0x26a)])!=null?_0x1aa25c:this['_name'],this[_0x6e0d29(0x3c8)]=(_0x25baca=_0x1a3eab['labelPosition'])!=null?_0x25baca:this[_0x6e0d29(0x3c8)],this[_0x6e0d29(0x31d)]({'width':_0x1a3eab['width'],'height':_0x1a3eab['height']});}[_0x29ff3c(0x425)](_0x3b4f98){const _0x16420c=_0x29ff3c,{row:_0xc9a0c5,column:_0xd52d28}=_0x3b4f98;if(_0xc9a0c5>=this['_range'][_0x16420c(0x2c4)]&&_0xc9a0c5<=this[_0x16420c(0x26b)][_0x16420c(0x34e)]&&_0xd52d28>=this['_range'][_0x16420c(0x282)]&&_0xd52d28<=this[_0x16420c(0x26b)][_0x16420c(0x1eb)]){this[_0x16420c(0x23f)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x137cfa){return!0x1;}[_0x29ff3c(0x32f)](_0x1e7227){const _0x26e7c5=_0x29ff3c;_0x15f9aa['drawWith'](_0x1e7227,{'width':this[_0x26e7c5(0x231)],'height':this[_0x26e7c5(0x32b)],'strokeWidth':vn,'stroke':this[_0x26e7c5(0x41b)],'evented':!0x1}),this['_hovered']&&(_0x1e7227['save'](),_0x1e7227[_0x26e7c5(0x3dd)](0x1,0x0,0x0,0x1,this[_0x26e7c5(0x231)],this['_labelPosition']===_0x26e7c5(0x36b)?0x0:-Oe),ze[_0x26e7c5(0x24e)](_0x1e7227,{'text':this['_name'],'color':this[_0x26e7c5(0x41b)]}),_0x1e7227['restore']());}}var Cn=(_0x1a2d7b,_0x2695fc,_0x282fce,_0x5387c1)=>{const _0x5b7a27=_0x29ff3c;for(var _0x460c4e=_0x2695fc,_0x54e57c=_0x1a2d7b[_0x5b7a27(0x358)]-0x1,_0x15de1b;_0x54e57c>=0x0;_0x54e57c--)(_0x15de1b=_0x1a2d7b[_0x54e57c])&&(_0x460c4e=_0x15de1b(_0x460c4e)||_0x460c4e);return _0x460c4e;},Se=(_0x503ac4,_0x43f23c)=>(_0x14e16,_0x15351b)=>_0x43f23c(_0x14e16,_0x15351b,_0x503ac4);let $e=class extends _0xecb3e3{constructor(_0x6035d4,_0x4d2f40,_0x5cb6e2,_0x3e3d6b,_0xc616f5){const _0x5f0561=_0x29ff3c;super(),l(this,'_cursors',new Set()),l(this,_0x5f0561(0x4a0),null),(this[_0x5f0561(0x201)]=_0x6035d4,this[_0x5f0561(0x2a2)]=_0x4d2f40,this[_0x5f0561(0x1e8)]=_0x5cb6e2,this['_sheetSkeletonManagerService']=_0x3e3d6b,this[_0x5f0561(0x352)]=_0xc616f5,this['_init']());}[_0x29ff3c(0x49b)](){const _0x4aa864=_0x29ff3c;this[_0x4aa864(0x386)][_0x4aa864(0x26f)]['pipe'](_0x560ce8(this['dispose$']),_0xfdbd67(_0x1e1ce0=>{const _0x1a2fe6=_0x4aa864;if(_0x1e1ce0){const _0x3981d0=_0x1e1ce0[_0x1a2fe6(0x44a)];return _0x4629ad(this[_0x1a2fe6(0x201)][_0x1a2fe6(0x469)](_0x1e1ce0['unitId']),this[_0x1a2fe6(0x352)]['currentTheme$'])['pipe'](_0xc3a3dd(([_0x264b96,_0x5367a8])=>{const _0x85904c=new Map();return _0x264b96['forEach']((_0x133d33,_0x48b59e)=>{const _0x2a822a=_0x2107;if(_0x133d33[_0x2a822a(0x23b)]===_0x3981d0){const _0x4d8718={..._0x133d33};_0x4d8718[_0x2a822a(0x427)]=_0x5367a8[_0x133d33['color']],_0x85904c[_0x2a822a(0x1f4)](_0x48b59e,_0x4d8718);}}),{'skeleton':_0x1e1ce0,'cursors':_0x85904c};}));}return _0x570e60({'skeleton':null,'cursors':new Map()});}))[_0x4aa864(0x27b)](({skeleton:_0x120ed0,cursors:_0x23b2b0})=>{const _0x284677=_0x4aa864;this[_0x284677(0x334)](),_0x120ed0&&this[_0x284677(0x3be)](_0x120ed0,_0x23b2b0);}),this[_0x4aa864(0x386)]['currentSkeleton$'][_0x4aa864(0x27b)](_0x4468db=>{const _0x1b980c=_0x4aa864;if(_0x4468db==null)return;const {unitId:_0x58bdd3,skeleton:_0x407608}=_0x4468db,_0x3b727e=this['_renderManagerService'][_0x1b980c(0x46d)](_0x58bdd3);if(_0x3b727e==null)return;const {scene:_0x2e18b3}=_0x3b727e;_0x2e18b3[_0x1b980c(0x24c)][_0x1b980c(0x2f9)](_0x29b107(_0x3b3217=>{const _0x108c7d=_0x1b980c;var _0x418ddc,_0x5ccf30;const {offsetX:_0x1587af,offsetY:_0x5abe3e}=_0x3b3217,{x:_0x1730c9,y:_0x32c2ee}=_0x2e18b3[_0x108c7d(0x2d7)](_0x10a9c7[_0x108c7d(0x1e7)]([_0x1587af,_0x5abe3e])),{scaleX:_0x1ca05d,scaleY:_0x430439}=_0x2e18b3[_0x108c7d(0x3d8)](),_0x28c691=_0x2e18b3['getViewport'](_0xa3abbd[_0x108c7d(0x2b3)]),_0x223352=_0x2e18b3[_0x108c7d(0x214)](_0x10a9c7[_0x108c7d(0x1e7)]([_0x1730c9,_0x32c2ee]),_0x28c691),_0x5e2af2=_0x407608[_0x108c7d(0x321)](_0x1587af,_0x5abe3e,_0x1ca05d,_0x430439,_0x223352);((_0x418ddc=this[_0x108c7d(0x4a0)])==null?void 0x0:_0x418ddc[_0x108c7d(0x451)])===_0x5e2af2['column']&&((_0x5ccf30=this[_0x108c7d(0x4a0)])==null?void 0x0:_0x5ccf30['row'])===_0x5e2af2[_0x108c7d(0x37e)]||this[_0x108c7d(0x3a8)]['forEach'](_0x39dd85=>{const _0x39a26b=_0x108c7d;_0x39dd85[_0x39a26b(0x425)](_0x5e2af2);});},0x64));});}['_updateCollabCursors'](_0x3156f6,_0x32069c){const _0x5a343b=_0x29ff3c;var _0x5b52f9;const _0x21aa76=(_0x5b52f9=this['_sheetSkeletonManagerService'][_0x5a343b(0x385)]())==null?void 0x0:_0x5b52f9[_0x5a343b(0x1e1)];if(!_0x21aa76)return;const _0x176507=this[_0x5a343b(0x3ad)]();if(!_0x176507)return;this[_0x5a343b(0x3a8)][_0x5a343b(0x468)](_0x49de97=>{const _0x4b8de6=_0x5a343b;_0x49de97[_0x4b8de6(0x40c)]();});const {scene:_0x12d8ad}=_0x176507,_0x488565=In(Array[_0x5a343b(0x372)](_0x32069c[_0x5a343b(0x2a5)]()))[_0x5a343b(0x3e0)](_0x1befb3=>{const _0x3cbdae=_0x5a343b,{color:_0x403f09,range:_0x4b5fe9,name:_0x78c262,selection:_0x4458b2,sheetID:_0x1b8d6b}=_0x1befb3,{startColumn:_0x2c3ec5,startRow:_0x3206df,endColumn:_0x303b41,endRow:_0x486136}=_0x4b5fe9,_0x162c6a=_0x281f85(_0x3206df,_0x2c3ec5,_0x12d8ad,_0x21aa76),_0x7d59a=_0x281f85(_0x486136,_0x303b41,_0x12d8ad,_0x21aa76),{columnHeaderHeightAndMarginTop:_0x8ff57b}=_0x21aa76,{startX:_0x238afc,startY:_0x3cb47e}=_0x162c6a,{endX:_0x210641,endY:_0x1c5aea}=_0x7d59a,_0x1a181a=_0x210641-_0x238afc,_0x33eb34=_0x1c5aea-_0x3cb47e,_0x1ad408={'labelPosition':_0x3cb47e-_0x8ff57b>=Oe?_0x3cbdae(0x244):_0x3cbdae(0x36b),'sheetID':_0x1b8d6b,'range':_0x4b5fe9,'color':_0x403f09,'name':_0x78c262,'selection':_0x4458b2,'left':_0x238afc,'top':_0x3cb47e,'width':_0x1a181a,'height':_0x33eb34,'evented':!0x1};return new pn(_0x78c262,_0x1ad408);});_0x12d8ad[_0x5a343b(0x42d)](_0x488565,Sn),this[_0x5a343b(0x3a8)]=new Set(_0x488565);}[_0x29ff3c(0x334)](){const _0x5d88cf=_0x29ff3c;var _0xf894f8;(_0xf894f8=this['_cursors'])==null||_0xf894f8[_0x5d88cf(0x468)](_0x393dc1=>_0x393dc1[_0x5d88cf(0x37c)]());}['_getSheetObject'](){const _0x40e089=_0x29ff3c;return _0x33d2b1(this[_0x40e089(0x2a2)],this[_0x40e089(0x1e8)]);}};$e=Cn([_0x47ab07(_0x49cfc4['Steady'],$e),Se(0x0,_0x16153f(le)),Se(0x1,_0x416446),Se(0x2,_0xec6532),Se(0x3,_0x16153f(_0x1fe4dd)),Se(0x4,_0x16153f(_0x5d12b5))],$e);function In(_0x1f8ab7){const _0x5dafce=_0x29ff3c,_0xbd5a4b=new Map();return _0x1f8ab7[_0x5dafce(0x468)](_0x493c92=>{const _0x555b0f=_0x5dafce;if(_0xbd5a4b[_0x555b0f(0x3bd)](_0x493c92[_0x555b0f(0x452)])){const _0x1ceca2=_0xbd5a4b[_0x555b0f(0x2a8)](_0x493c92[_0x555b0f(0x452)]);_0x1ceca2[_0x555b0f(0x26a)]+=',\x20'+_0x493c92[_0x555b0f(0x26a)];}else _0xbd5a4b[_0x555b0f(0x1f4)](_0x493c92['selection'],_0x493c92);}),Array[_0x5dafce(0x372)](_0xbd5a4b['values']());}var A=function(){const _0x339c62=_0x29ff3c;return A=Object[_0x339c62(0x484)]||function(_0x3bf840){const _0x19a2f9=_0x339c62;for(var _0x163950,_0x4faf6d=0x1,_0x4e143d=arguments['length'];_0x4faf6d<_0x4e143d;_0x4faf6d++){_0x163950=arguments[_0x4faf6d];for(var _0xf72294 in _0x163950)Object[_0x19a2f9(0x24f)]['hasOwnProperty'][_0x19a2f9(0x3e7)](_0x163950,_0xf72294)&&(_0x3bf840[_0xf72294]=_0x163950[_0xf72294]);}return _0x3bf840;},A[_0x339c62(0x45d)](this,arguments);},En=function(_0x4c4ab7,_0x34ce1c){const _0x36b1a3=_0x29ff3c;var _0x5e907a={};for(var _0x3b8551 in _0x4c4ab7)Object['prototype']['hasOwnProperty'][_0x36b1a3(0x3e7)](_0x4c4ab7,_0x3b8551)&&_0x34ce1c[_0x36b1a3(0x1fe)](_0x3b8551)<0x0&&(_0x5e907a[_0x3b8551]=_0x4c4ab7[_0x3b8551]);if(_0x4c4ab7!=null&&typeof Object[_0x36b1a3(0x328)]==_0x36b1a3(0x20c)){for(var _0x1e04b9=0x0,_0x3b8551=Object[_0x36b1a3(0x328)](_0x4c4ab7);_0x1e04b9<_0x3b8551['length'];_0x1e04b9++)_0x34ce1c[_0x36b1a3(0x1fe)](_0x3b8551[_0x1e04b9])<0x0&&Object[_0x36b1a3(0x24f)][_0x36b1a3(0x39a)][_0x36b1a3(0x3e7)](_0x4c4ab7,_0x3b8551[_0x1e04b9])&&(_0x5e907a[_0x3b8551[_0x1e04b9]]=_0x4c4ab7[_0x3b8551[_0x1e04b9]]);}return _0x5e907a;},wt=_0xb5345f(function(_0x507fc5,_0x43eb7e){const _0x3356f4=_0x29ff3c;var _0x50fc99=_0x507fc5['icon'],_0x50ee56=_0x507fc5['id'],_0x5ee9ca=_0x507fc5[_0x3356f4(0x211)],_0x24ebda=_0x507fc5[_0x3356f4(0x2b2)],_0x11bcab=En(_0x507fc5,[_0x3356f4(0x3b0),'id',_0x3356f4(0x211),_0x3356f4(0x2b2)]),_0x2257c7=_0x3356f4(0x295)['concat'](_0x50ee56,'\x20')['concat'](_0x5ee9ca||'')[_0x3356f4(0x2cf)](),_0xb3379d=_0x4e2061('_'[_0x3356f4(0x454)](Rn()));return ps(_0x50fc99,''[_0x3356f4(0x454)](_0x50ee56),{'defIds':_0x50fc99[_0x3356f4(0x28f)],'idSuffix':_0xb3379d[_0x3356f4(0x2de)]},A({'ref':_0x43eb7e,'className':_0x2257c7},_0x11bcab),_0x24ebda);});function ps(_0x428ad3,_0x142a0b,_0x3ddbaa,_0x22df51,_0xdde175){const _0x184783=_0x29ff3c;return _0x4a6e67(_0x428ad3[_0x184783(0x202)],A(A({'key':_0x142a0b},bn(_0x428ad3,_0x3ddbaa,_0xdde175)),_0x22df51),(Tn(_0x428ad3,_0x3ddbaa)[_0x184783(0x2b9)]||[])[_0x184783(0x3e0)](function(_0x5a7bff,_0x4ae825){const _0x471c1c=_0x184783;return ps(_0x5a7bff,''[_0x471c1c(0x454)](_0x142a0b,'-')[_0x471c1c(0x454)](_0x428ad3['tag'],'-')[_0x471c1c(0x454)](_0x4ae825),_0x3ddbaa,void 0x0,_0xdde175);}));}function bn(_0x339cf9,_0x243a2b,_0x5cdda6){const _0x3a58c3=_0x29ff3c;var _0x24951f=A({},_0x339cf9[_0x3a58c3(0x381)]);_0x5cdda6!=null&&_0x5cdda6[_0x3a58c3(0x265)]&&_0x24951f['fill']===_0x3a58c3(0x265)&&(_0x24951f[_0x3a58c3(0x470)]=_0x5cdda6[_0x3a58c3(0x265)]);var _0x1639c4=_0x243a2b[_0x3a58c3(0x28f)];return!_0x1639c4||_0x1639c4['length']===0x0||(_0x339cf9[_0x3a58c3(0x202)]===_0x3a58c3(0x31e)&&_0x24951f['xlink:href']&&(_0x24951f[_0x3a58c3(0x371)]=_0x24951f['xlink:href']+_0x243a2b[_0x3a58c3(0x2ea)]),Object[_0x3a58c3(0x39e)](_0x24951f)[_0x3a58c3(0x468)](function(_0x51d430){const _0x54fa74=_0x3a58c3;var _0xc5a7b7=_0x51d430[0x0],_0x2a4618=_0x51d430[0x1];typeof _0x2a4618==_0x54fa74(0x46b)&&(_0x24951f[_0xc5a7b7]=_0x2a4618[_0x54fa74(0x210)](/url\(#(.*)\)/,_0x54fa74(0x338)['concat'](_0x243a2b[_0x54fa74(0x2ea)],')')));})),_0x24951f;}function Tn(_0x528a99,_0x2881bc){const _0x3949f2=_0x29ff3c;var _0x14e31a,_0x343e3f=_0x2881bc[_0x3949f2(0x28f)];return!_0x343e3f||_0x343e3f['length']===0x0?_0x528a99:_0x528a99[_0x3949f2(0x202)]==='defs'&&(!((_0x14e31a=_0x528a99[_0x3949f2(0x2b9)])===null||_0x14e31a===void 0x0)&&_0x14e31a['length'])?A(A({},_0x528a99),{'children':_0x528a99['children'][_0x3949f2(0x3e0)](function(_0x5caeba){const _0x26d5e0=_0x3949f2;return typeof _0x5caeba[_0x26d5e0(0x381)]['id']=='string'&&_0x343e3f&&_0x343e3f['indexOf'](_0x5caeba['attrs']['id'])>-0x1?A(A({},_0x5caeba),{'attrs':A(A({},_0x5caeba['attrs']),{'id':_0x5caeba[_0x26d5e0(0x381)]['id']+_0x2881bc[_0x26d5e0(0x2ea)]})}):_0x5caeba;})}):_0x528a99;}function Rn(){const _0x41002c=_0x29ff3c;return Math[_0x41002c(0x240)]()[_0x41002c(0x21e)](0x24)['substring'](0x2,0x8);}wt['displayName']=_0x29ff3c(0x2ad);var yn={'tag':_0x29ff3c(0x3c6),'attrs':{'fill':_0x29ff3c(0x48a),'viewBox':_0x29ff3c(0x440),'width':_0x29ff3c(0x2d4),'height':_0x29ff3c(0x2d4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x29ff3c(0x370),'attrs':{'stroke':_0x29ff3c(0x3a6),'d':_0x29ff3c(0x34d),'strokeLinecap':_0x29ff3c(0x3cf),'strokeLinejoin':_0x29ff3c(0x3cf),'strokeWidth':1.2}}]},{'tag':_0x29ff3c(0x2f5),'attrs':{},'children':[{'tag':_0x29ff3c(0x382),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x29ff3c(0x370),'attrs':{'fill':'#fff','d':_0x29ff3c(0x3f6)}}]}]}],'defIds':[_0x29ff3c(0x3ac)]},Cs=_0xb5345f(function(_0x504f37,_0x1e7706){const _0x5d5682=_0x29ff3c;return _0x4a6e67(wt,Object[_0x5d5682(0x484)]({},_0x504f37,{'id':_0x5d5682(0x1d9),'ref':_0x1e7706,'icon':yn}));});Cs['displayName']=_0x29ff3c(0x2e1);var On={'tag':_0x29ff3c(0x3c6),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x29ff3c(0x2d4),'height':_0x29ff3c(0x2d4)},'children':[{'tag':'g','attrs':{'clipPath':_0x29ff3c(0x229)},'children':[{'tag':_0x29ff3c(0x370),'attrs':{'stroke':_0x29ff3c(0x3a6),'d':_0x29ff3c(0x432),'strokeLinecap':_0x29ff3c(0x3cf),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x29ff3c(0x2f5),'attrs':{},'children':[{'tag':_0x29ff3c(0x382),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x29ff3c(0x370),'attrs':{'fill':_0x29ff3c(0x474),'d':_0x29ff3c(0x3f6),'transform':_0x29ff3c(0x34c)}}]}]}],'defIds':[_0x29ff3c(0x40b)]},Is=_0xb5345f(function(_0xa8262c,_0x42bcbd){return _0x4a6e67(wt,Object['assign']({},_0xa8262c,{'id':'on-line-single','ref':_0x42bcbd,'icon':On}));});Is['displayName']=_0x29ff3c(0x2dc);const wn=_0x29ff3c(0x3a7),Mn='univer-online-status-title',Dn=_0x29ff3c(0x230),Nn='univer-online',An=_0x29ff3c(0x3db),ve={'onlineStatusIcon':wn,'onlineStatusTitle':Mn,'onlineStatus':Dn,'online':Nn,'offline':An};function Un(_0x289dd8){const _0x5372f8=_0x29ff3c;switch(_0x289dd8){case w[_0x5372f8(0x3f3)]:return'collabStatus.offline';case w[_0x5372f8(0x290)]:return _0x5372f8(0x3e1);case w[_0x5372f8(0x2c8)]:return'collabStatus.fetchMiss';case w['NOT_COLLAB']:return _0x5372f8(0x387);case w[_0x5372f8(0x4a2)]:case w[_0x5372f8(0x490)]:case w['AWAITING_WITH_PENDING']:return _0x5372f8(0x21c);case w['SYNCED']:return'collabStatus.synced';}}function Ln(_0x491363){const _0x2a3de0=_0x29ff3c,{status$:_0x55fab0}=_0x491363,_0x333e5c=_0x40911a(_0x55fab0,w[_0x2a3de0(0x405)]),_0x1077ed=_0x6f6fff(_0xa9bb0e),_0x2b2d8a=_0x333e5c!==w['OFFLINE'],_0x5a86e2=_0x1077ed['t'](Un(_0x333e5c)),_0x19191d=_0x10f16a(ve[_0x2a3de0(0x3f4)],{[ve[_0x2a3de0(0x3b8)]]:_0x2b2d8a,[ve['offline']]:!_0x2b2d8a}),_0x20ef79=_0x2b2d8a?_0x3a8efb[_0x2a3de0(0x36a)](Is,null):_0x3a8efb['createElement'](Cs,null);return _0x3a8efb[_0x2a3de0(0x36a)](_0x2a3de0(0x375),{'className':_0x19191d},_0x3a8efb[_0x2a3de0(0x36a)]('div',{'className':ve['onlineStatusIcon']},_0x20ef79),_0x3a8efb['createElement'](_0x2a3de0(0x375),{'className':ve['onlineStatusTitle']},_0x5a86e2));}var kn=(_0x1943b0,_0x117257,_0x249ad3,_0x1c26fa)=>{const _0x271962=_0x29ff3c;for(var _0x5c6737=_0x117257,_0x18a9ec=_0x1943b0[_0x271962(0x358)]-0x1,_0x15470e;_0x18a9ec>=0x0;_0x18a9ec--)(_0x15470e=_0x1943b0[_0x18a9ec])&&(_0x5c6737=_0x15470e(_0x5c6737)||_0x5c6737);return _0x5c6737;},Ae=(_0x584f1,_0x48ee80)=>(_0x219bf8,_0x28f0b0)=>_0x48ee80(_0x219bf8,_0x28f0b0,_0x584f1);let Pe=class extends _0x4cb958{constructor(_0x56e7b3,_0x51dfee,_0x116a98,_0x552411){const _0x4ee0a6=_0x29ff3c;super(),l(this,_0x4ee0a6(0x3cb),new _0x45e4c4(w[_0x4ee0a6(0x405)])),(this[_0x4ee0a6(0x2a2)]=_0x56e7b3,this[_0x4ee0a6(0x21d)]=_0x51dfee,this[_0x4ee0a6(0x2c7)]=_0x116a98,this[_0x4ee0a6(0x3c4)]=_0x552411,this[_0x4ee0a6(0x3d3)](),this[_0x4ee0a6(0x279)]());}[_0x29ff3c(0x3d3)](){const _0x42a45c=_0x29ff3c;this['disposeWithMe'](this['_uiPartsService'][_0x42a45c(0x448)](_0x2606bf[_0x42a45c(0x3e9)],()=>_0x354ca5($n({'status$':this['_status$'][_0x42a45c(0x49d)]()}),this[_0x42a45c(0x2c7)])));}['_initStatusListener'](){const _0x21e1ee=_0x29ff3c;this[_0x21e1ee(0x401)](_0xa56ed7(this[_0x21e1ee(0x2a2)]['focused$'][_0x21e1ee(0x1f6)](_0x13022e(()=>{const _0x59ca78=_0x21e1ee,_0x374bf3=this[_0x59ca78(0x2a2)][_0x59ca78(0x2ef)]();return _0x374bf3?this[_0x59ca78(0x3c4)][_0x59ca78(0x462)](_0x374bf3[_0x59ca78(0x3d5)]()):_0x570e60(null);}),_0x13022e(_0x112aae=>_0x112aae?_0x112aae['status$']:_0x570e60(w[_0x21e1ee(0x405)])))[_0x21e1ee(0x27b)](_0x528f40=>{const _0x4595aa=_0x21e1ee;this[_0x4595aa(0x3cb)]['next'](_0x528f40);})));}};Pe=kn([_0x47ab07(_0x49cfc4[_0x29ff3c(0x2fd)],Pe),Ae(0x0,_0x416446),Ae(0x1,_0x23db19),Ae(0x2,_0x16153f(_0x5945df)),Ae(0x3,_0x16153f(Ie))],Pe);function $n(_0x2b0d87){const {status$:_0x207a53}=_0x2b0d87;return function(){const _0x2f0fe1=_0x2107;return _0x3a8efb[_0x2f0fe1(0x36a)](Ln,{'status$':_0x207a53});};}const Es=_0x555040(_0x29ff3c(0x2fa));var Pn=(_0x33b028,_0xd1fb5,_0x38d6e9,_0x1f167f)=>{const _0x857cd6=_0x29ff3c;for(var _0x35f114=_0xd1fb5,_0x16fbff=_0x33b028[_0x857cd6(0x358)]-0x1,_0x38ac6c;_0x16fbff>=0x0;_0x16fbff--)(_0x38ac6c=_0x33b028[_0x16fbff])&&(_0x35f114=_0x38ac6c(_0x35f114)||_0x35f114);return _0x35f114;},re=(_0xd73de8,_0x3ae11f)=>(_0x50bb21,_0x4d3568)=>_0x3ae11f(_0x50bb21,_0x4d3568,_0xd73de8);let xe=class extends _0xecb3e3{constructor(_0x32601a,_0x5cde49,_0x3fd9b6,_0x5ce712,_0x27ff69,_0x19eb83){const _0x3e9738=_0x29ff3c;super(),this['_urlService']=_0x32601a,this[_0x3e9738(0x46f)]=_0x5cde49,this['_commandService']=_0x3fd9b6,this['_localCacheService']=_0x5ce712,this['_snapshotService']=_0x27ff69,_0x19eb83?_0x19eb83==null||_0x19eb83[_0x3e9738(0x212)]()[_0x3e9738(0x42a)](()=>this[_0x3e9738(0x49b)]()):(this[_0x3e9738(0x46f)]['debug'](_0x3e9738(0x293),_0x3e9738(0x48c)),this[_0x3e9738(0x49b)]());}async['_init'](){const _0x3dabfa=_0x29ff3c,_0x376255=this[_0x3dabfa(0x2ce)][_0x3dabfa(0x463)]('unit'),_0x53d250=this[_0x3dabfa(0x2ce)][_0x3dabfa(0x463)]('type');if(!_0x376255||!_0x53d250){this['_logService']['debug'](_0x3dabfa(0x293),_0x3dabfa(0x486));return;}switch(Number(_0x53d250)){case x[_0x3dabfa(0x3f7)]:{const _0x212626=await this[_0x3dabfa(0x246)](_0x376255);this[_0x3dabfa(0x38c)](_0x212626);break;}case x[_0x3dabfa(0x236)]:{await this[_0x3dabfa(0x2ac)](_0x376255);break;}default:{this[_0x3dabfa(0x46f)][_0x3dabfa(0x31f)](_0x3dabfa(0x293),_0x3dabfa(0x348));break;}}}async['_setupSubUnitSync'](_0xa224c0){const _0xd9b4ea=_0x29ff3c;await this[_0xd9b4ea(0x33f)](_0xa224c0),_0xa224c0[_0xd9b4ea(0x3e3)][_0xd9b4ea(0x1f6)](_0x515cc9(this[_0xd9b4ea(0x320)]))[_0xd9b4ea(0x27b)](_0x2c956f=>{const _0xfb24d2=_0xd9b4ea;_0x2c956f&&this[_0xfb24d2(0x325)](_0x2c956f);}),this['_urlService'][_0xd9b4ea(0x24a)]['pipe'](_0x515cc9(this[_0xd9b4ea(0x320)]))[_0xd9b4ea(0x27b)](()=>this[_0xd9b4ea(0x33f)](_0xa224c0));}[_0x29ff3c(0x325)](_0x52c18a,_0x4fca38=!0x1){const _0x2c6804=_0x29ff3c,_0x46f2ad=this['_urlService'][_0x2c6804(0x463)](_0x2c6804(0x228));_0x52c18a['getSheetId']()!==_0x46f2ad&&this[_0x2c6804(0x2ce)][_0x2c6804(0x497)](_0x2c6804(0x228),_0x52c18a[_0x2c6804(0x1dc)](),_0x4fca38);}async[_0x29ff3c(0x33f)](_0x8deced){const _0x322b91=_0x29ff3c,_0x272ae4=this[_0x322b91(0x2ce)][_0x322b91(0x463)](_0x322b91(0x228));if(!_0x272ae4||!_0x8deced[_0x322b91(0x48e)](_0x272ae4)){this[_0x322b91(0x325)](_0x8deced[_0x322b91(0x465)](),!0x0);return;}_0x8deced[_0x322b91(0x465)]()[_0x322b91(0x1dc)]()!==_0x272ae4&&await this[_0x322b91(0x2cd)][_0x322b91(0x2d9)](_0x43a3d8['id'],{'unitId':_0x8deced[_0x322b91(0x3d5)](),'subUnitId':_0x272ae4});}async['_loadSheet'](_0xf753d5){const _0x5f48ac=_0x29ff3c;let _0x266a01=0x0;const _0x300952=await this[_0x5f48ac(0x21a)][_0x5f48ac(0x2ee)](_0xf753d5);return _0x300952&&(_0x300952[_0x5f48ac(0x1e6)]||_0x300952['mutations']['length']!==0x0)&&(_0x266a01=_0x300952['rev']),_0x266a01===0x0&&this[_0x5f48ac(0x46f)][_0x5f48ac(0x30b)](_0x5f48ac(0x293),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x5f48ac(0x3fd)][_0x5f48ac(0x4ab)](_0xf753d5,_0x266a01);}async[_0x29ff3c(0x2ac)](_0x59ee60){const _0x712877=_0x29ff3c;let _0x295d3e=0x0;const _0x35668a=await this[_0x712877(0x21a)][_0x712877(0x2ee)](_0x59ee60);return _0x35668a&&(_0x35668a[_0x712877(0x1e6)]||_0x35668a[_0x712877(0x309)][_0x712877(0x358)]!==0x0)&&(_0x295d3e=_0x35668a[_0x712877(0x40e)]),_0x295d3e===0x0&&this['_logService']['debug']('[DataLoaderController]',_0x712877(0x2ff)),this[_0x712877(0x3fd)][_0x712877(0x3e2)](_0x59ee60,_0x295d3e);}};xe=Pn([_0x47ab07(_0x49cfc4[_0x29ff3c(0x2fd)],xe),re(0x0,Es),re(0x1,_0x4e485b),re(0x2,_0x53d735),re(0x3,_0x16153f(y)),re(0x4,_0x16153f(_0x34e252)),re(0x5,_0x4bc039(_0x304038))],xe);var xn=(_0x424b5e,_0x3f307f,_0x193ff7,_0x12e91b)=>{const _0x34d0b2=_0x29ff3c;for(var _0x44cc74=_0x3f307f,_0x1a502f=_0x424b5e[_0x34d0b2(0x358)]-0x1,_0x557086;_0x1a502f>=0x0;_0x1a502f--)(_0x557086=_0x424b5e[_0x1a502f])&&(_0x44cc74=_0x557086(_0x44cc74)||_0x44cc74);return _0x44cc74;},Kt=(_0x10c4f1,_0x3feaa5)=>(_0x500529,_0x3a1055)=>_0x3feaa5(_0x500529,_0x3a1055,_0x10c4f1);const Hn=_0x29ff3c(0x36c),jn='Univer';function _0x2107(_0x537ec2,_0x4ebf52){const _0x27a147=_0x27a1();return _0x2107=function(_0x2107fc,_0x38f694){_0x2107fc=_0x2107fc-0x1d5;let _0x40a4e1=_0x27a147[_0x2107fc];return _0x40a4e1;},_0x2107(_0x537ec2,_0x4ebf52);}let He=class extends _0x4cb958{constructor(_0x28e2dd,_0x1f521d){const _0x327ac9=_0x29ff3c;super(),this[_0x327ac9(0x2a2)]=_0x28e2dd,this['_configService']=_0x1f521d,this[_0x327ac9(0x49b)]();}[_0x29ff3c(0x49b)](){const _0x5027fc=_0x29ff3c;this['disposeWithMe'](_0xa56ed7(this[_0x5027fc(0x2a2)][_0x5027fc(0x2ec)][_0x5027fc(0x27b)](()=>{const _0xc8885d=_0x5027fc;var _0x3653c6;const _0x13e9da=this[_0xc8885d(0x2a2)][_0xc8885d(0x2ef)]();let _0x88f766=(_0x3653c6=this[_0xc8885d(0x312)][_0xc8885d(0x2f0)](Hn))!=null?_0x3653c6:jn;_0x13e9da instanceof _0x56db74&&(_0x88f766=_0x13e9da[_0xc8885d(0x26a)]),document[_0xc8885d(0x3d2)]=_0x88f766;})));}};He=xn([_0x47ab07(_0x49cfc4[_0x29ff3c(0x2fb)],He),Kt(0x0,_0x416446),Kt(0x1,_0x3fca08)],He);const Bn={'collabStatus':{'fetchMiss':_0x29ff3c(0x35a),'conflict':_0x29ff3c(0x39b),'notCollab':'本地文件','synced':'已保存','syncing':_0x29ff3c(0x347),'offline':_0x29ff3c(0x350)},'session':{'connection-failed':_0x29ff3c(0x300),'will-retry':'连接失败,将在一会儿之后重试','room-full':_0x29ff3c(0x421),'collaboration-timeout':_0x29ff3c(0x233)},'conflict':{'title':'协同冲突','content':_0x29ff3c(0x456)},'collaboration':{'single-unit':{'warning':_0x29ff3c(0x424)}},'auth':{'needGotoLoginAlert':_0x29ff3c(0x3d6)}},Fn=Bn;var Vn=(_0x20acb7,_0x12f8ff,_0x4584a7,_0x3bb6d1)=>{const _0x8ee2e=_0x29ff3c;for(var _0x337f79=_0x12f8ff,_0x351575=_0x20acb7[_0x8ee2e(0x358)]-0x1,_0x1ec6be;_0x351575>=0x0;_0x351575--)(_0x1ec6be=_0x20acb7[_0x351575])&&(_0x337f79=_0x1ec6be(_0x337f79)||_0x337f79);return _0x337f79;},Yt=(_0x5c642b,_0x141ff6)=>(_0x35d048,_0x40868d)=>_0x141ff6(_0x35d048,_0x40868d,_0x5c642b);const Wn=_0x29ff3c(0x2a4),Gn=_0x29ff3c(0x426);let ft=class{constructor(_0x4f1a94,_0x45128d){const _0x3bfb75=_0x29ff3c;this[_0x3bfb75(0x312)]=_0x4f1a94,this[_0x3bfb75(0x3ae)]=_0x45128d;}async['getUnitOnRev'](_0x23dcbf,_0x219d85){const _0x42be41=_0x29ff3c;var _0x576436;const {unitID:_0x5b4e39,type:_0x380741,revision:_0x4d9dd5=0x0}=_0x219d85,_0x5b23da=this[_0x42be41(0x271)]()+'/'+_0x380741+_0x42be41(0x417)+_0x5b4e39+_0x42be41(0x1ea)+(_0x4d9dd5===0x1?0x0:_0x4d9dd5),_0x22ea8a=(await this['_httpService']['get'](_0x5b23da))[_0x42be41(0x35f)],_0x26f798=(_0x576436=_0x22ea8a[_0x42be41(0x249)])==null?void 0x0:_0x576436[_0x42be41(0x47c)];if(_0x26f798){const _0xe188f3=_0x26f798==null?void 0x0:_0x26f798['originalMeta'],_0x3af0d3=_0x13325e[_0x42be41(0x434)](_0xfc23bc(_0xe188f3));_0x26f798[_0x42be41(0x2ae)]=_0x3af0d3,Object[_0x42be41(0x39e)](_0x26f798[_0x42be41(0x346)])['forEach'](([,_0x32facb])=>{const _0x2d4eff=_0x42be41,_0x252fa8=_0x32facb['originalMeta'],_0x1f78b0=_0x13325e[_0x2d4eff(0x434)](_0xfc23bc(_0x252fa8));_0x32facb[_0x2d4eff(0x2ae)]=_0x1f78b0;});}return _0x22ea8a;}async['getSheetBlock'](_0x47bc79,_0x42342a){const _0x6c8334=_0x29ff3c,{unitID:_0x237878,type:_0xd67d61,blockID:_0x512716}=_0x42342a,_0x57d994=this['_getAPIPrefixPath']()+'/'+_0xd67d61+_0x6c8334(0x417)+_0x237878+_0x6c8334(0x232)+_0x512716;return(await this['_httpService'][_0x6c8334(0x2a8)](_0x57d994))[_0x6c8334(0x35f)];}async[_0x29ff3c(0x45e)](_0x4dc481,_0x218d57){const _0x3559c9=_0x29ff3c,{unitID:_0x5ed7b7,type:_0x52c262,from:_0x296917,to:_0x2c2419}=_0x218d57,_0x2aab37=this[_0x3559c9(0x271)]()+'/'+_0x52c262+_0x3559c9(0x417)+_0x5ed7b7+_0x3559c9(0x3cd)+_0x296917+_0x3559c9(0x340)+_0x2c2419;return(await this[_0x3559c9(0x3ae)][_0x3559c9(0x2a8)](_0x2aab37))['body'];}[_0x29ff3c(0x271)](){const _0x546f7f=_0x29ff3c;var _0xa64e8;return(_0xa64e8=this[_0x546f7f(0x312)][_0x546f7f(0x2f0)](Wn))!=null?_0xa64e8:Gn;}async[_0x29ff3c(0x44e)](_0x9dc2a4,_0x1dabfa){const _0x289c3e=_0x29ff3c,_0x21927d=_0x289c3e(0x28d)+_0x1dabfa['type']+_0x289c3e(0x417)+_0x1dabfa[_0x289c3e(0x2c6)]+_0x289c3e(0x222);return(await this[_0x289c3e(0x3ae)]['get'](_0x21927d,{'params':{'resourceId':JSON[_0x289c3e(0x392)](_0x1dabfa[_0x289c3e(0x20b)])}}))[_0x289c3e(0x35f)];}[_0x29ff3c(0x268)](){const _0x319b08=_0x29ff3c;throw new Error(_0x319b08(0x364));}[_0x29ff3c(0x3fa)](){const _0x2b3240=_0x29ff3c;throw new Error(_0x2b3240(0x364));}[_0x29ff3c(0x1d6)](){const _0x2c67cb=_0x29ff3c;throw new Error(_0x2c67cb(0x364));}};ft=Vn([Yt(0x0,_0x3fca08),Yt(0x1,_0x16153f(_0x5b1ea4))],ft);var Kn=(_0xc0b306,_0x3bdcb1,_0x571068,_0x21f756)=>{const _0x4d09b9=_0x29ff3c;for(var _0x190cee=_0x3bdcb1,_0x44662d=_0xc0b306[_0x4d09b9(0x358)]-0x1,_0x41aec8;_0x44662d>=0x0;_0x44662d--)(_0x41aec8=_0xc0b306[_0x44662d])&&(_0x190cee=_0x41aec8(_0x190cee)||_0x190cee);return _0x190cee;},pe=(_0x107889,_0x33e64a)=>(_0x5bd387,_0x2ac6dd)=>_0x33e64a(_0x5bd387,_0x2ac6dd,_0x107889);let mt=class extends _0x4c065a{constructor(_0x56cca2,_0x7ae822,_0x4b138b,_0x42dfa4,_0x262d72){const _0xda98bc=_0x29ff3c;super(_0x56cca2,_0x7ae822,_0x4b138b),this['_transformService']=_0x42dfa4,this[_0xda98bc(0x46f)]=_0x262d72;}[_0x29ff3c(0x1de)](_0x5f0fc6,_0x3d85a3){const _0x1aa76f=_0x29ff3c,_0x35c800=this['_getUndoStack'](_0x5f0fc6);if(_0x35c800)try{const _0x57b6af=this[_0x1aa76f(0x289)](_0x35c800,_0x3d85a3);this['_substituteUndoStack'](_0x5f0fc6,_0x57b6af);}catch(_0xdb67ba){this[_0x1aa76f(0x46f)][_0x1aa76f(0x31f)](_0x1aa76f(0x3d0),_0xdb67ba),this[_0x1aa76f(0x2db)](_0x5f0fc6);}const _0x52d7bc=this[_0x1aa76f(0x245)](_0x5f0fc6);if(_0x52d7bc)try{const _0x4fca1d=this[_0x1aa76f(0x289)](_0x52d7bc,_0x3d85a3);this[_0x1aa76f(0x3f2)](_0x5f0fc6,_0x4fca1d);}catch(_0x1dac5e){this['_logService'][_0x1aa76f(0x31f)](_0x1dac5e),this[_0x1aa76f(0x4a9)](_0x5f0fc6);}}[_0x29ff3c(0x2db)](_0x4c82f6){const _0x28c9b3=_0x29ff3c,_0xbcaaeb=this[_0x28c9b3(0x2c5)](_0x4c82f6);_0xbcaaeb&&(_0xbcaaeb['length']=0x0,this[_0x28c9b3(0x25b)]());}[_0x29ff3c(0x4a9)](_0x2a945c){const _0x284903=_0x29ff3c,_0x1434ed=this['_getRedoStack'](_0x2a945c);_0x1434ed&&(_0x1434ed[_0x284903(0x358)]=0x0,this[_0x284903(0x25b)]());}['_substituteUndoStack'](_0x1beb86,_0x4e15e8){const _0x3076ee=_0x29ff3c;this[_0x3076ee(0x402)][_0x3076ee(0x1f4)](_0x1beb86,_0x4e15e8),this['_updateStatus']();}[_0x29ff3c(0x3f2)](_0x4dbfd2,_0x285960){const _0x30980f=_0x29ff3c;this['_redoStacks'][_0x30980f(0x1f4)](_0x4dbfd2,_0x285960),this[_0x30980f(0x25b)]();}[_0x29ff3c(0x289)](_0x12f77e,_0x56338e){const _0x89c6dd=_0x29ff3c,_0x265e48=[];let _0x9effa1=_0x56338e,_0x599b8d=_0x56338e;for(let _0x418c26=_0x12f77e[_0x89c6dd(0x358)]-0x1;_0x418c26>=0x0;_0x418c26--){const {unitID:_0x5c3387,undoMutations:_0x45fe58,redoMutations:_0x1007c5}=_0x12f77e[_0x418c26],_0xd0a0c3=this[_0x89c6dd(0x23e)][_0x89c6dd(0x429)](_0x9effa1,_0x45fe58),_0x5a3da3=this[_0x89c6dd(0x23e)]['transformMutationsWithChangeset'](_0x599b8d,_0x1007c5);if(_0xece915(_0xd0a0c3)||_0xece915(_0x5a3da3)){this[_0x89c6dd(0x46f)][_0x89c6dd(0x31f)]('[CollaborationUndoRedoService]',_0x89c6dd(0x327),_0xd0a0c3,_0x5a3da3);break;}_0x9effa1=_0xd0a0c3[_0x89c6dd(0x3a4)],_0x599b8d=_0x5a3da3[_0x89c6dd(0x3a4)],_0x265e48['push']({'unitID':_0x5c3387,'undoMutations':_0xd0a0c3[_0x89c6dd(0x2a9)],'redoMutations':_0x5a3da3['m2Prime']});}return _0x265e48[_0x89c6dd(0x30d)]();}};mt=Kn([pe(0x0,_0x416446),pe(0x1,_0x53d735),pe(0x2,_0x150c3f),pe(0x3,_0x3b0b3e),pe(0x4,_0x4e485b)],mt);class Yn extends _0xecb3e3{constructor(){const _0x3a7ffc=_0x29ff3c;super(),l(this,_0x3a7ffc(0x24a)),this[_0x3a7ffc(0x24a)]=_0x3a4e7b(window,'popstate')[_0x3a7ffc(0x1f6)](_0x515cc9(this[_0x3a7ffc(0x320)]),_0x193785(0x1),_0x4d15ba(void 0x0));}['setParam'](_0x3726fa,_0x19d608,_0x421456=!0x1){const _0x52c07e=_0x29ff3c,_0x392269=new URL(window['location'][_0x52c07e(0x297)]);_0x392269[_0x52c07e(0x33d)][_0x52c07e(0x1f4)](_0x3726fa,_0x19d608),_0x421456?window['history'][_0x52c07e(0x1f8)]('','',_0x392269[_0x52c07e(0x21e)]()):window[_0x52c07e(0x25a)][_0x52c07e(0x2cc)]('','',_0x392269[_0x52c07e(0x21e)]());}[_0x29ff3c(0x363)](_0x516bbc,_0x561cec=!0x1){const _0x20ca6=_0x29ff3c,_0x3b11a2=new URL(window[_0x20ca6(0x30e)][_0x20ca6(0x297)]);_0x3b11a2[_0x20ca6(0x33d)][_0x20ca6(0x2e6)](_0x516bbc),_0x561cec?window[_0x20ca6(0x25a)]['replaceState']('','',_0x3b11a2[_0x20ca6(0x21e)]()):window[_0x20ca6(0x25a)]['pushState']('','',_0x3b11a2[_0x20ca6(0x21e)]());}[_0x29ff3c(0x463)](_0x2e31cb){const _0x539777=_0x29ff3c;var _0x525257;return(_0x525257=new URL(window['location'][_0x539777(0x297)])[_0x539777(0x33d)]['get'](_0x2e31cb))!=null?_0x525257:void 0x0;}}const st=_0x29ff3c(0x2f1),Xn=_0x29ff3c(0x3ab),Ue=0x6,Jn=1.5,it=0x4,zn=1.5,qn=_0x29ff3c(0x205);class Qn{constructor(_0x998e3f,_0x35f675,_0x12fa2e,_0x2638b9){const _0xda7334=_0x29ff3c;l(this,_0xda7334(0x2df),[]),l(this,_0xda7334(0x367),null),l(this,_0xda7334(0x251),null),l(this,_0xda7334(0x31c),null),l(this,_0xda7334(0x35b),null),l(this,_0xda7334(0x2b6),null),(this[_0xda7334(0x4a4)]=_0x998e3f,this['_scene']=_0x35f675,this[_0xda7334(0x2d3)]=_0x12fa2e,this[_0xda7334(0x343)]=_0x2638b9,this[_0xda7334(0x480)]());}set[_0x29ff3c(0x305)](_0x1510d9){const _0x4b9964=_0x29ff3c;_0x1510d9?(this[_0x4b9964(0x31c)]&&this[_0x4b9964(0x31c)][_0x4b9964(0x2d1)](),this[_0x4b9964(0x251)]&&this['_textBubble'][_0x4b9964(0x3c7)]()):(this['_anchorDot']&&this[_0x4b9964(0x31c)]['show'](),this['_textBubble']&&this[_0x4b9964(0x251)]['hide']());}[_0x29ff3c(0x37c)](){const _0x117bc5=_0x29ff3c;for(const _0x2b85d5 of this['_shapes'])_0x2b85d5[_0x117bc5(0x37c)]();this[_0x117bc5(0x251)]&&this[_0x117bc5(0x251)][_0x117bc5(0x37c)](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x117bc5(0x367)]['dispose'](),this[_0x117bc5(0x2b6)]&&this[_0x117bc5(0x2b6)]();}[_0x29ff3c(0x480)](){const _0x3fca16=_0x29ff3c,{_docSkeleton:_0x49e037,_document:_0xd9cd2b}=this,{color:_0x3e1a18,name:_0x4adf2a,ranges:_0x336f85}=this[_0x3fca16(0x4a4)],_0x35b7fe=_0xd9cd2b[_0x3fca16(0x2be)](),{docsLeft:_0xb81f0f,docsTop:_0x4ed3a6}=_0x35b7fe,_0x353293=new _0x93f127(_0x35b7fe,_0x49e037);for(const {startOffset:_0x21dfa4,endOffset:_0x231f23,collapsed:_0x107d94,isActive:_0x383acd}of _0x336f85){const _0x36109a=_0x49e037[_0x3fca16(0x407)](_0x21dfa4),_0x477d9e=_0x49e037[_0x3fca16(0x407)](_0x231f23);if(_0x383acd){const {contentBoxPointGroup:_0xcba707}=_0x353293[_0x3fca16(0x336)](_0x477d9e,_0x477d9e);if(_0xcba707[_0x3fca16(0x358)]===0x0)continue;this['_drawAnchor'](_0x3e1a18,_0xcba707,_0xb81f0f,_0x4ed3a6,_0x4adf2a),this[_0x3fca16(0x2b6)]=this[_0x3fca16(0x281)]();}if(!_0x107d94){const {contentBoxPointGroup:_0x131dd7}=_0x353293[_0x3fca16(0x336)](_0x36109a,_0x477d9e);if(_0x131dd7[_0x3fca16(0x358)]===0x0)continue;this[_0x3fca16(0x393)](_0x3e1a18,_0x131dd7,_0xb81f0f,_0x4ed3a6);}}}[_0x29ff3c(0x41e)](_0x458690,_0x4cb5ef,_0x4d35fe,_0xf1b466,_0x185982){const _0x3f6a0c=_0x29ff3c,_0x2225bf=this['_getAnchorBounding'](_0x4cb5ef),{left:_0xb2d442,top:_0x4705dd,height:_0x2fc4a2}=_0x2225bf,_0x1bd34f=this['_getScale'](),_0x1093db=zn/_0x1bd34f,_0x4af578=new _0x15f9aa(st+_0x4dfeda[_0x3f6a0c(0x42b)](Ue),{'left':_0xb2d442+_0x4d35fe-_0x1093db,'top':_0x4705dd+_0xf1b466,'height':_0x2fc4a2,'width':Jn,'fill':_0x458690||_0x1a778c(_0x3d4a0e['black'],0x0),'strokeWidth':_0x1093db,'stroke':qn,'evented':!0x0});this[_0x3f6a0c(0x367)]=_0x4af578,this[_0x3f6a0c(0x234)][_0x3f6a0c(0x3e6)](_0x4af578,_0xe26765);const _0x41e510=new _0x15f9aa(st+_0x4dfeda['generateRandomId'](Ue),{'left':_0xb2d442+_0x4d35fe-_0x1093db,'top':_0x4705dd+_0xf1b466-it/0x2,'height':it,'width':it,'fill':_0x458690||_0x1a778c(_0x3d4a0e[_0x3f6a0c(0x24b)],0x0),'strokeWidth':0x0,'stroke':_0x458690||_0x1a778c(_0x3d4a0e[_0x3f6a0c(0x24b)],0x0),'evented':!0x1});this[_0x3f6a0c(0x31c)]=_0x41e510,this[_0x3f6a0c(0x234)][_0x3f6a0c(0x3e6)](_0x41e510,_0xe26765);const _0x1302b4=new ze(st+_0x4dfeda[_0x3f6a0c(0x42b)](Ue),{'left':_0xb2d442+_0x4d35fe-_0x1093db,'top':_0x4705dd+_0xf1b466-Oe,'text':_0x185982,'color':_0x458690});this[_0x3f6a0c(0x251)]=_0x1302b4,this['_scene']['addObject'](_0x1302b4,_0xe26765),this['_hover']=!0x1;}['_handleHover'](){const _0x41f8ed=_0x29ff3c,_0x4c4dd0=this[_0x41f8ed(0x367)][_0x41f8ed(0x2c0)]['add'](()=>{const _0x38b874=_0x41f8ed;this[_0x38b874(0x305)]=!0x0;}),_0x3cff62=this[_0x41f8ed(0x367)]['onPointerLeaveObserver'][_0x41f8ed(0x2f9)](()=>{const _0xb25c63=_0x41f8ed;this[_0xb25c63(0x35b)]&&clearTimeout(this[_0xb25c63(0x35b)]),this['_hideTimer']=setTimeout(()=>{const _0x5e0017=_0xb25c63;this[_0x5e0017(0x305)]=!0x1;},0x7d0);});return()=>{const _0x586d86=_0x41f8ed;var _0x586522,_0x39c7c7;(_0x586522=this['_anchor'])==null||_0x586522[_0x586d86(0x2c0)]['remove'](_0x4c4dd0),(_0x39c7c7=this[_0x586d86(0x367)])==null||_0x39c7c7[_0x586d86(0x258)][_0x586d86(0x29b)](_0x3cff62);};}[_0x29ff3c(0x393)](_0x237fe4,_0x4280b2,_0x31461f,_0x1ea8cb){const _0xf08e77=_0x29ff3c,_0x56b589=new _0x4968b0(_0x237fe4)[_0xf08e77(0x207)](0.2)[_0xf08e77(0x28a)](),_0x2f2cc5=new _0x26528d(Xn+_0x4dfeda[_0xf08e77(0x42b)](Ue),{'pointsGroup':_0x4280b2,'fill':_0x56b589||_0x1a778c(_0x3d4a0e[_0xf08e77(0x24b)],0.2),'left':_0x31461f,'top':_0x1ea8cb,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x2f2cc5),this[_0xf08e77(0x234)]['addObject'](_0x2f2cc5,_0xe26765);}['_getAnchorBounding'](_0x917ab8){const _0x32c58c=_0x917ab8[0x0],_0x4c7191=_0x32c58c[0x0],_0x50bf0e=_0x32c58c[0x2],{x:_0x489c4d,y:_0x1ae504}=_0x4c7191,{x:_0x57b8da,y:_0x56f60b}=_0x50bf0e;return{'left':_0x489c4d,'top':_0x1ae504,'width':_0x57b8da-_0x489c4d,'height':_0x56f60b-_0x1ae504};}[_0x29ff3c(0x3af)](){const _0x45f11d=_0x29ff3c,{scaleX:_0x4e79a8,scaleY:_0xfef68f}=this[_0x45f11d(0x234)]['getAncestorScale']();return Math[_0x45f11d(0x3f5)](_0x4e79a8,_0xfef68f);}}var Zn=(_0x34cdd3,_0x4c3866,_0x2dd562,_0x189c0c)=>{const _0x3d4473=_0x29ff3c;for(var _0x314c9b=_0x4c3866,_0x308ee8=_0x34cdd3[_0x3d4473(0x358)]-0x1,_0x4c0571;_0x308ee8>=0x0;_0x308ee8--)(_0x4c0571=_0x34cdd3[_0x308ee8])&&(_0x314c9b=_0x4c0571(_0x314c9b)||_0x314c9b);return _0x314c9b;},Ce=(_0x487204,_0x5282f0)=>(_0x2d641e,_0x455612)=>_0x5282f0(_0x2d641e,_0x455612,_0x487204);let je=class extends _0xecb3e3{constructor(_0x5bd21d,_0x48d8f8,_0x1f3e63,_0x20bd5b,_0x36291e){const _0xfb2a1c=_0x29ff3c;super(),l(this,_0xfb2a1c(0x3a8),[]),(this[_0xfb2a1c(0x201)]=_0x5bd21d,this[_0xfb2a1c(0x2a2)]=_0x48d8f8,this[_0xfb2a1c(0x1e8)]=_0x1f3e63,this[_0xfb2a1c(0x1db)]=_0x20bd5b,this[_0xfb2a1c(0x352)]=_0x36291e,this[_0xfb2a1c(0x49b)]());}['_init'](){const _0x521daa=_0x29ff3c;this['_docSkeletonManagerService'][_0x521daa(0x26f)][_0x521daa(0x1f6)](_0x560ce8(this['dispose$']),_0xfdbd67(_0x464983=>{const _0x237e9e=_0x521daa;if(_0x464983){const {unitId:_0x55734c}=_0x464983;return _0x4629ad(this[_0x237e9e(0x201)]['getCollabCursors$'](_0x55734c),this[_0x237e9e(0x352)][_0x237e9e(0x390)])[_0x237e9e(0x1f6)](_0xc3a3dd(([_0x2f5adc,_0x548793])=>({'skeleton':_0x464983,'cursors':[..._0x2f5adc[_0x237e9e(0x2a5)]()][_0x237e9e(0x3b9)](_0x536d9f=>({..._0x536d9f,'color':_0x548793[_0x536d9f[_0x237e9e(0x427)]]}))})));}return _0x570e60({'skeleton':null,'cursors':[]});}))[_0x521daa(0x27b)](({skeleton:_0x5515ff,cursors:_0x212cbe})=>{const _0xb82194=_0x521daa;this[_0xb82194(0x334)](),_0x5515ff&&this['_updateCollabCursors'](_0x5515ff[_0xb82194(0x1e1)],_0x212cbe);});}[_0x29ff3c(0x3be)](_0x36d557,_0x53dddb){const _0x5eb64d=_0x29ff3c,_0x1750ee=this['_getDocObject']();if(_0x1750ee==null)return;const {scene:_0x4c1171,document:_0x2bafb5}=_0x1750ee,_0x16365a=_0x53dddb['map'](_0x3b1340=>new Qn(_0x3b1340,_0x4c1171,_0x36d557,_0x2bafb5));this[_0x5eb64d(0x3a8)]=_0x16365a;}[_0x29ff3c(0x334)](){const _0x538a33=_0x29ff3c;this[_0x538a33(0x3a8)][_0x538a33(0x468)](_0x40dc12=>_0x40dc12[_0x538a33(0x37c)]()),this[_0x538a33(0x3a8)]=[];}[_0x29ff3c(0x415)](){const _0x49f8eb=_0x29ff3c;return _0x12707b(this[_0x49f8eb(0x2a2)],this[_0x49f8eb(0x1e8)]);}};je=Zn([_0x47ab07(_0x49cfc4[_0x29ff3c(0x266)],je),Ce(0x0,_0x16153f(le)),Ce(0x1,_0x416446),Ce(0x2,_0xec6532),Ce(0x3,_0x16153f(_0x18a0f7)),Ce(0x4,_0x16153f(_0x5d12b5))],je);var er=(_0x1f1ffb,_0x4b12c3,_0x2c0558,_0xa26361)=>{const _0x319ddb=_0x29ff3c;for(var _0x40c0ea=_0x4b12c3,_0xba3d38=_0x1f1ffb[_0x319ddb(0x358)]-0x1,_0x112905;_0xba3d38>=0x0;_0xba3d38--)(_0x112905=_0x1f1ffb[_0xba3d38])&&(_0x40c0ea=_0x112905(_0x40c0ea)||_0x40c0ea);return _0x40c0ea;},nt=(_0xb4c6b8,_0x4f70e8)=>(_0x1262be,_0x57ea0a)=>_0x4f70e8(_0x1262be,_0x57ea0a,_0xb4c6b8);const tr=_0x29ff3c(0x22c),sr=_0x29ff3c(0x213);let Ge=class{constructor(_0x1f7f00,_0x5baac5,_0x269ef7){const _0x1dfd2b=_0x29ff3c;this[_0x1dfd2b(0x312)]=_0x1f7f00,this[_0x1dfd2b(0x3ae)]=_0x5baac5,this[_0x1dfd2b(0x301)]=_0x269ef7,this[_0x1dfd2b(0x2a6)]();}[_0x29ff3c(0x2a6)](){const _0x39d57b=_0x29ff3c;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x57e17f,_0x1c5eee)=>_0x1c5eee(_0x57e17f)[_0x39d57b(0x1f6)](_0x2eb76e(async _0x410652=>{const _0x39c847=_0x39d57b;if(_0x410652[_0x39c847(0x30c)]===0x191&&window[_0x39c847(0x349)](this['localeService']['t'](_0x39c847(0x263)))){const _0x1df682=window[_0x39c847(0x3a0)](window[_0x39c847(0x30e)][_0x39c847(0x297)]);window[_0x39c847(0x30e)]['href']=this[_0x39c847(0x2ed)]()+_0x39c847(0x329)+_0x1df682;}return _0x410652;}))});}[_0x29ff3c(0x2ed)](){const _0xeb75b=_0x29ff3c;var _0xaed7d8;return(_0xaed7d8=this['_configService'][_0xeb75b(0x2f0)](tr))!=null?_0xaed7d8:sr;}};Ge=er([nt(0x0,_0x3fca08),nt(0x1,_0x16153f(_0x5b1ea4)),nt(0x2,_0x16153f(_0xa9bb0e))],Ge);var ir=(_0x128532,_0x55f752,_0x58a8c8,_0x411ebb)=>{const _0x27ad06=_0x29ff3c;for(var _0x1926c2=_0x55f752,_0xdd21=_0x128532[_0x27ad06(0x358)]-0x1,_0x44c463;_0xdd21>=0x0;_0xdd21--)(_0x44c463=_0x128532[_0xdd21])&&(_0x1926c2=_0x44c463(_0x1926c2)||_0x1926c2);return _0x1926c2;},Xt=(_0x3d7b15,_0x246a79)=>(_0x351fac,_0x3f97c9)=>_0x246a79(_0x351fac,_0x3f97c9,_0x3d7b15);const nr=_0x29ff3c(0x36e);var rt;let Jt=(rt=class extends _0x48d020{constructor(_0x18f58c,_0x37f69a,_0x185111){const _0x9fb974=_0x29ff3c;super(),this['_config']=_0x18f58c,this[_0x9fb974(0x2c7)]=_0x37f69a,this[_0x9fb974(0x482)]=_0x185111,this[_0x9fb974(0x482)]['load']({'zhCN':Fn});}['onStarting'](_0x45c7f2){const _0x5e4459=_0x29ff3c;var _0x3fddb3,_0x3cbde6,_0x271a46,_0x10b5f5,_0x43b9c1;_0x45c7f2[_0x5e4459(0x210)]([_0x17966e,{'useClass':mt}]);let _0x5afaf3=[[Re],[Ot],[_0x5b1ea4],[Es,{'useClass':Yn}],[Q],[y],[_0x4c9f2e],[Ve],[Fe],[Be],[yt],[Ge],[us,{'useClass':(_0x3cbde6=(_0x3fddb3=this[_0x5e4459(0x1da)])==null?void 0x0:_0x3fddb3[_0x5e4459(0x43e)])!=null?_0x3cbde6:ht}],[_0x273db6,{'useClass':_0x4007c4}],[_0x438124,{'useClass':ft}],[Ie],[xe],[Pe],[He],[le]];(_0x271a46=this[_0x5e4459(0x1da)])!=null&&_0x271a46[_0x5e4459(0x283)]&&_0x5afaf3[_0x5e4459(0x3f9)]([Xe,{'useClass':zi}]),((_0x10b5f5=this[_0x5e4459(0x1da)])==null?void 0x0:_0x10b5f5[_0x5e4459(0x32a)])==null||this['_config']['collaborationUniverTypes']['includes'](_0x280819[_0x5e4459(0x3f7)])?_0x5afaf3[_0x5e4459(0x3f9)]([$e]):this['_config'][_0x5e4459(0x32a)][_0x5e4459(0x46a)](_0x280819[_0x5e4459(0x236)])&&_0x5afaf3['push']([je]),_0x5afaf3=_0x4558c2(_0x5afaf3,(_0x43b9c1=this['_config'])==null?void 0x0:_0x43b9c1[_0x5e4459(0x20d)]),_0x5afaf3[_0x5e4459(0x468)](_0x30019b=>_0x45c7f2['add'](_0x30019b)),_0x45c7f2['get'](_0x5b1ea4)[_0x5e4459(0x3ff)]({'priority':0x14,'interceptor':_0x45c7f2['invoke'](_0x4f8724,{'maxParallel':0x6})}),this[_0x5e4459(0x3b5)]();}[_0x29ff3c(0x3b5)](){const _0x3c41a6=_0x29ff3c;var _0x246fbe,_0x50439a;(_0x246fbe=this['_config'])!=null&&_0x246fbe['enableOfflineEditing']||this[_0x3c41a6(0x2c7)][_0x3c41a6(0x2a8)](y)[_0x3c41a6(0x1fa)](),(_0x50439a=this[_0x3c41a6(0x1da)])!=null&&_0x50439a[_0x3c41a6(0x467)]&&this['_injector']['get'](Ge);}},l(rt,_0x29ff3c(0x37f),nr),rt);Jt=ir([Xt(0x1,_0x16153f(_0x5945df)),Xt(0x2,_0x16153f(_0xa9bb0e))],Jt);const rr={'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x29ff3c(0x492),'synced':_0x29ff3c(0x27c),'syncing':'Syncing...','offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x29ff3c(0x460),'room-full':_0x29ff3c(0x46c),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x29ff3c(0x453),'content':_0x29ff3c(0x459)},'collaboration':{'single-unit':{'warning':_0x29ff3c(0x441)}},'auth':{'needGotoLoginAlert':_0x29ff3c(0x380)}},Rr=rr;export{$i as COLLAB_SUBMIT_CHANGESET_URL_KEY,Hi as COLLAB_WEB_SOCKET_URL_KEY,Jt as CollaborationClientPlugin,Ie as CollaborationController,lt as CollaborationSession,Re as CollaborationSessionService,ht as CollaborationSocketService,w as CollaborationStatus,Ln as CollaborationStatusDisplay,xe as DataLoaderController,Pe as DesktopCollaborationStatusDisplayController,Bi as HEARTBEAT_INTERVAL_KEY,gs as HEARTBEAT_TIMEOUT_KEY,us as ICollaborationSocketService,Es as IURLService,Xi as LOCAL_CACHE_INTERVAL_KEY,tr as LOGIN_URL_KEY,y as LocalCacheService,rn as SEND_CHANGESET_TIMEOUT_KEY,Wn as SNAPSHOT_SERVER_URL_KEY,he as SessionStatus,Yn as WebURLService,Ui as deserializeToCombResponse,Rr as enUS,Li as serializeCombRequest,Fn as zhCN};
|
1
|
+
const _0x48c788=_0x1999;(function(_0x215475,_0x4f4e3f){const _0x4b2600=_0x1999,_0x1702c1=_0x215475();while(!![]){try{const _0x59281e=parseInt(_0x4b2600(0x48b))/0x1+parseInt(_0x4b2600(0x3fc))/0x2*(-parseInt(_0x4b2600(0x3c0))/0x3)+-parseInt(_0x4b2600(0x362))/0x4+-parseInt(_0x4b2600(0x499))/0x5*(-parseInt(_0x4b2600(0x447))/0x6)+-parseInt(_0x4b2600(0x474))/0x7+parseInt(_0x4b2600(0x460))/0x8+parseInt(_0x4b2600(0x2b6))/0x9;if(_0x59281e===_0x4f4e3f)break;else _0x1702c1['push'](_0x1702c1['shift']());}catch(_0x38d476){_0x1702c1['push'](_0x1702c1['shift']());}}}(_0x515a,0xb2ff4));var js=Object[_0x48c788(0x299)],Hs=(_0x1fdcf7,_0x4c62be,_0x3ad3c1)=>_0x4c62be in _0x1fdcf7?js(_0x1fdcf7,_0x4c62be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ad3c1}):_0x1fdcf7[_0x4c62be]=_0x3ad3c1,l=(_0x216e22,_0xe40aca,_0x11d4b2)=>(Hs(_0x216e22,typeof _0xe40aca!=_0x48c788(0x288)?_0xe40aca+'':_0xe40aca,_0x11d4b2),_0x11d4b2);import{Disposable as _0x5de86a,toDisposable as _0x308092,UniverInstanceType as _0x5b42a8,UserManagerService as _0x58e661,IUniverInstanceService as _0x5db99b,DisposableCollection as _0x53ebaa,IConfigService as _0x475c15,ILogService as _0xcf8387,ISnapshotServerService as _0x32765d,RxDisposable as _0x4f9c78,LocaleService as _0x7ef8c9,ILocalStorageService as _0x2bd6b3,Tools as _0x41ebb1,ICommandService as _0x26b7b1,JSONX as _0x44383b,IPermissionService as _0x4a2caa,IUndoRedoService as _0x3b301b,sequenceExecute as _0x196e3d,OnLifecycle as _0x4bcad5,LifecycleStages as _0xba774d,CommandType as _0x2210bc,Rectangle as _0x294f92,ThemeService as _0x58f756,Workbook as _0x55773e,textEncoder as _0x3e85fc,b64DecodeUnicode as _0x2a2404,LocalUndoRedoService as _0x2d3c98,IContextService as _0x4c77f7,COLORS as _0x375ede,ColorKit as _0x4176ec,Plugin as _0x12f480,IAuthzIoService as _0x49a670,mergeOverrideWithDependencies as _0x166e22,DependentOn as _0x5c5115}from'@univerjs/core';import{SelectionManagerService as _0x241ac5,SetSelectionsOperation as _0x576668,InsertSheetMutation as _0x183395,WorkbookEditablePermission as _0x301a89,RefRangeService as _0xd07635,EffectRefRangId as _0x3445c6,handleIRemoveRow as _0x2b7f87,handleIRemoveCol as _0x2f6da3,handleMoveRange as _0x4784f5,handleInsertRow as _0x4e6c23,handleInsertRangeMoveRight as _0x257710,handleInsertRangeMoveDown as _0x174883,handleInsertCol as _0x4ac67f,handleDeleteRangeMoveUp as _0xac4d22,handleDeleteRangeMoveLeft as _0x31225a,runRefRangeMutations as _0x477418,SetWorksheetActivateCommand as _0x27110d}from'@univerjs/sheets';import{MessageType as _0x16b663}from'@univerjs/design';import{IBeforeCloseService as _0x547f18,IMessageService as _0xcc97bb,INotificationService as _0x57524d,useObservable as _0x36db5c,BuiltInUIPart as _0x2ba420,IUIPartsService as _0x2d3342}from'@univerjs/ui';import{CollaborationEvent as _0x64674d,parseChangesetToProtocol as _0x4444c6,RevisionService as _0x2426c9,isTransformMutationFailure as _0x1ce5e8,isTransformMutationsWithChangesetSuccess as _0x13e3eb,ITransformService as _0x56e350,mapDocumentTypeToUniverType as _0x501378,isTransformChangesetsSuccess as _0x4a3135,CompressMutationService as _0x50d638,parseProtocolChangeset as _0x3a5484,SnapshotService as _0x3ae0d3,isTransformMutationsWithChangesetFailure as _0x120eeb,UniverCollaborationPlugin as _0x149281}from'@univerjs-pro/collaboration';import{Inject as _0x1df0bc,createIdentifier as _0x4e2518,Injector as _0x1883e3,Optional as _0x9cd523}from'@wendellhu/redi';import{merge as _0x10f2b0,Subject as _0x255156,BehaviorSubject as _0xac9643,distinctUntilChanged as _0xbaf3d7,fromEvent as _0x3afa96,of as _0x5aa699,takeUntil as _0x219692,debounceTime as _0x5b9b01,filter as _0x2b78dc,switchMap as _0x52b39c,combineLatest as _0x222f4d,shareReplay as _0x5bbc32,mapTo as _0x58db52,concatMap as _0x54d374}from'rxjs';import{map as _0x1262f1,takeUntil as _0x258fee,take as _0x332c11,filter as _0x2cc73f,delay as _0x1c5ec9,shareReplay as _0x43cd64,switchMap as _0x367f49}from'rxjs/operators';import{IMEInputManagerService as _0x5c948d,TextSelectionManagerService as _0x3953fa,serializeTextRange as _0x478cbe,DocStateChangeManagerService as _0x18b292,SetTextSelectionsOperation as _0x1d44c4,RichTextEditingMutation as _0x436bb5,getDocObject as _0x394f78,DocSkeletonManagerService as _0x495a4e}from'@univerjs/docs';import{HTTPService as _0x49edd2,WebSocketService as _0x15b3f3,IHTTPImplementation as _0x18e4ed,XHRHTTPImplementation as _0x1c4b96,ThresholdInterceptorFactory as _0x398469}from'@univerjs/network';import{ImageSourceType as _0x55f8db,ImageUploadStatusType as _0x3caa53,IImageIoService as _0x5863cd}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x3f2fda,serializeRangeWithSheet as _0x14626b}from'@univerjs/engine-formula';import _0x12f611 from'lodash/debounce';import{Shape as _0x5760a1,Rect as _0x31e76b,Vector2 as _0x4c9069,IRenderManagerService as _0x205a7a,NodePositionConvertToCursor as _0x45e74b,getColor as _0x5139a9,TEXT_RANGE_LAYER_INDEX as _0x3507b6,RegularPolygon as _0x4b8859}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x46d514,VIEWPORT_KEY as _0x53f94c,getCoordByCell as _0x51cfa7,getSheetObject as _0x1f2c89}from'@univerjs/sheets-ui';import{useDependency as _0x34cfdc,connectInjector as _0x5168f0}from'@wendellhu/redi/react-bindings';import _0x537ca1,{forwardRef as _0x1302f5,useRef as _0x4b43df,createElement as _0x732030}from'react';import _0x37250f from'clsx';import{IRemoteInstanceService as _0x356d7e}from'@univerjs/rpc';const Wi=_0x48c788(0x497),Gi=_0x48c788(0x4a7),Yi=_0x48c788(0x37b),Ki=_0x48c788(0x1c4),Xi=0x7d0,Ji=_0x48c788(0x43c),zi=_0x48c788(0x2da),qi=_0x48c788(0x450),Zi=0x7530,ps=_0x48c788(0x307),Is=0x2710,Qi='RETRY_CONNECTING_INTERVAL',en=0x4e20,tn=_0x48c788(0x404),sn=0x3,nn=_0x48c788(0x347),rn=0x3e8,on=_0x48c788(0x36b),an='/universer-api/comb',cn=_0x48c788(0x494),hn=_0x48c788(0x424);var Es=(_0x2150ae=>(_0x2150ae[_0x2150ae['UNDEFINED']=0x0]=_0x48c788(0x254),_0x2150ae[_0x2150ae['OK']=0x1]='OK',_0x2150ae[_0x2150ae[_0x48c788(0x206)]=0x2]=_0x48c788(0x206),_0x2150ae[_0x2150ae[_0x48c788(0x353)]=0x3]=_0x48c788(0x353),_0x2150ae[_0x2150ae[_0x48c788(0x34e)]=0x4]=_0x48c788(0x34e),_0x2150ae[_0x2150ae[_0x48c788(0x1bd)]=0x5]=_0x48c788(0x1bd),_0x2150ae[_0x2150ae['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2150ae[_0x2150ae['INVALID_ARGUMENT']=0x7]=_0x48c788(0x3ca),_0x2150ae[_0x2150ae[_0x48c788(0x223)]=0x8]=_0x48c788(0x223),_0x2150ae[_0x2150ae[_0x48c788(0x31b)]=0x9]=_0x48c788(0x31b),_0x2150ae[_0x2150ae[_0x48c788(0x1c7)]=0x1389]=_0x48c788(0x1c7),_0x2150ae[_0x2150ae[_0x48c788(0x2bc)]=0x1771]=_0x48c788(0x2bc),_0x2150ae[_0x2150ae['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x2150ae[_0x2150ae[_0x48c788(0x3a6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2150ae[_0x2150ae['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x48c788(0x21b),_0x2150ae[_0x2150ae[_0x48c788(0x441)]=0x1b5c]=_0x48c788(0x441),_0x2150ae[_0x2150ae[_0x48c788(0x207)]=0x1f41]=_0x48c788(0x207),_0x2150ae[_0x2150ae[_0x48c788(0x2c7)]=0x2329]=_0x48c788(0x2c7),_0x2150ae[_0x2150ae[_0x48c788(0x3f2)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2150ae[_0x2150ae[_0x48c788(0x430)]=0x232b]=_0x48c788(0x430),_0x2150ae[_0x2150ae['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x48c788(0x208),_0x2150ae[_0x2150ae[_0x48c788(0x4c5)]=0x232d]=_0x48c788(0x4c5),_0x2150ae[_0x2150ae[_0x48c788(0x3c6)]=0x2711]=_0x48c788(0x3c6),_0x2150ae[_0x2150ae[_0x48c788(0x2db)]=0x2712]=_0x48c788(0x2db),_0x2150ae[_0x2150ae[_0x48c788(0x32b)]=-0x1]=_0x48c788(0x32b),_0x2150ae))(Es||{}),H=(_0x1a79d2=>(_0x1a79d2[_0x1a79d2[_0x48c788(0x3c2)]=0x0]=_0x48c788(0x3c2),_0x1a79d2[_0x1a79d2[_0x48c788(0x4d4)]=0x1]=_0x48c788(0x4d4),_0x1a79d2[_0x1a79d2['UNIVER_SHEET']=0x2]=_0x48c788(0x29e),_0x1a79d2[_0x1a79d2['UNIVER_SLIDE']=0x3]=_0x48c788(0x30f),_0x1a79d2[_0x1a79d2['UNRECOGNIZED']=-0x1]=_0x48c788(0x32b),_0x1a79d2))(H||{}),I=(_0x2a1e81=>(_0x2a1e81[_0x2a1e81['UNKNOWN_CMD']=0x0]=_0x48c788(0x46a),_0x2a1e81[_0x2a1e81['HELLO']=0x1]=_0x48c788(0x374),_0x2a1e81[_0x2a1e81['JOIN']=0x2]='JOIN',_0x2a1e81[_0x2a1e81[_0x48c788(0x3ad)]=0x3]=_0x48c788(0x3ad),_0x2a1e81[_0x2a1e81[_0x48c788(0x2a7)]=0x4]=_0x48c788(0x2a7),_0x2a1e81[_0x2a1e81[_0x48c788(0x412)]=0x5]='HEARTBEAT',_0x2a1e81[_0x2a1e81[_0x48c788(0x1f7)]=0x6]=_0x48c788(0x1f7),_0x2a1e81[_0x2a1e81[_0x48c788(0x32b)]=-0x1]=_0x48c788(0x32b),_0x2a1e81))(I||{}),Nt=(_0x433be2=>(_0x433be2[_0x433be2[_0x48c788(0x42d)]=0x0]=_0x48c788(0x42d),_0x433be2[_0x433be2['OK']=0x1]='OK',_0x433be2[_0x433be2[_0x48c788(0x1b5)]=0x2]='FAIL',_0x433be2[_0x433be2[_0x48c788(0x32b)]=-0x1]='UNRECOGNIZED',_0x433be2))(Nt||{}),ln=Object['defineProperty'],_n=Object[_0x48c788(0x2bd)],un=(_0x3892d3,_0x2f8bf1,_0x4da3ad,_0xfda2dd)=>{const _0xa1e0ff=_0x48c788;for(var _0x1bb37a=_0xfda2dd>0x1?void 0x0:_0xfda2dd?_n(_0x2f8bf1,_0x4da3ad):_0x2f8bf1,_0x1c8650=_0x3892d3[_0xa1e0ff(0x3c7)]-0x1,_0x3c56f2;_0x1c8650>=0x0;_0x1c8650--)(_0x3c56f2=_0x3892d3[_0x1c8650])&&(_0x1bb37a=(_0xfda2dd?_0x3c56f2(_0x2f8bf1,_0x4da3ad,_0x1bb37a):_0x3c56f2(_0x1bb37a))||_0x1bb37a);return _0xfda2dd&&_0x1bb37a&&ln(_0x2f8bf1,_0x4da3ad,_0x1bb37a),_0x1bb37a;},Vt=(_0x1fe1d7,_0x58578a)=>(_0x3fb384,_0x397d3c)=>_0x58578a(_0x3fb384,_0x397d3c,_0x1fe1d7);let ee=class extends _0x5de86a{constructor(_0x4fae7b,_0x27f9bb){const _0x2be683=_0x48c788;super(),l(this,'_roomMembers',new Map()),(this[_0x2be683(0x38c)]=_0x4fae7b,this['_userManagerService']=_0x27f9bb,this['disposeWithMe'](_0x308092(_0x10f2b0(this[_0x2be683(0x38c)][_0x2be683(0x2ea)](_0x5b42a8[_0x2be683(0x29e)])[_0x2be683(0x3bd)](_0x1262f1(_0x327ee2=>_0x327ee2[_0x2be683(0x451)]())),this[_0x2be683(0x38c)][_0x2be683(0x2ea)](_0x5b42a8[_0x2be683(0x4d4)])[_0x2be683(0x3bd)](_0x1262f1(_0x564d0a=>_0x564d0a[_0x2be683(0x451)]())),this[_0x2be683(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8['UNIVER_SLIDE'])['pipe'](_0x1262f1(_0x2593e8=>_0x2593e8[_0x2be683(0x451)]())))['subscribe'](_0x35b0dc=>this[_0x2be683(0x350)](_0x35b0dc)))));}[_0x48c788(0x3d5)](_0x3259a0){const _0x157862=_0x48c788;this[_0x157862(0x4d3)][_0x157862(0x3d5)](_0x3259a0);}[_0x48c788(0x310)](){const _0xa33a9d=_0x48c788;return this[_0xa33a9d(0x4d3)][_0xa33a9d(0x310)]();}[_0x48c788(0x294)](_0x4e62c7,_0x11db6a){const _0x50e287=_0x48c788;let _0x1a6151=this['_roomMembers']['get'](_0x4e62c7);_0x1a6151||(_0x1a6151=new dn(),this['_roomMembers'][_0x50e287(0x25a)](_0x4e62c7,_0x1a6151)),_0x1a6151['updateMember'](_0x11db6a);}[_0x48c788(0x44a)](_0x55fb48,_0xc6170){const _0x8a1a78=_0x48c788,_0x8bf657=this['_roomMembers'][_0x8a1a78(0x4ce)](_0x55fb48);_0x8bf657&&_0x8bf657[_0x8a1a78(0x44a)](_0xc6170);}[_0x48c788(0x1c8)](_0x26bf8c){const _0x102e29=_0x48c788;return this['_roomMembers'][_0x102e29(0x4ce)](_0x26bf8c);}[_0x48c788(0x395)](_0xcec623,_0x49d8f3){const _0x29259e=_0x48c788,_0x3f2073=this[_0x29259e(0x38b)][_0x29259e(0x4ce)](_0xcec623);if(_0x3f2073)return _0x3f2073[_0x29259e(0x395)](_0x49d8f3);}['_removeRoom'](_0x524ac7){const _0x2cac2a=_0x48c788,_0x206038=this[_0x2cac2a(0x38b)][_0x2cac2a(0x4ce)](_0x524ac7);_0x206038&&(_0x206038['dispose'](),this[_0x2cac2a(0x38b)][_0x2cac2a(0x388)](_0x524ac7));}[_0x48c788(0x46e)](){const _0x2b0b63=_0x48c788;this[_0x2b0b63(0x38b)][_0x2b0b63(0x244)](_0x2b6f1f=>_0x2b6f1f[_0x2b0b63(0x46e)]()),this[_0x2b0b63(0x38b)][_0x2b0b63(0x338)]();}};ee=un([Vt(0x0,_0x5db99b),Vt(0x1,_0x1df0bc(_0x58e661))],ee);class dn extends _0x5de86a{constructor(){const _0x53d8fe=_0x48c788;super(...arguments),l(this,_0x53d8fe(0x2e9),new Map());}['dispose'](){const _0xfef5e7=_0x48c788;this[_0xfef5e7(0x2e9)][_0xfef5e7(0x338)]();}[_0x48c788(0x294)](_0x3e363a){const _0x1fc194=_0x48c788;this['_members'][_0x1fc194(0x25a)](_0x3e363a[_0x1fc194(0x260)],_0x3e363a);}[_0x48c788(0x44a)](_0x2e602e){const _0x7bfdf2=_0x48c788;this[_0x7bfdf2(0x2e9)][_0x7bfdf2(0x388)](_0x2e602e);}[_0x48c788(0x395)](_0x148321){const _0x27ddfa=_0x48c788;return this[_0x27ddfa(0x2e9)][_0x27ddfa(0x4ce)](_0x148321);}}function fn(_0x315ea8){const _0x3208e9=_0x48c788;var _0x3b6a25,_0x4745f4,_0x140c9c,_0x2ffb95;const _0x425ea5=_0x315ea8[_0x3208e9(0x43e)],_0x5eb557=JSON[_0x3208e9(0x1f6)](_0x425ea5);switch(_0x5eb557['cmd']){case I[_0x3208e9(0x412)]:case I[_0x3208e9(0x374)]:{const _0x4ea048=_0x5eb557[_0x3208e9(0x2d6)];return{..._0x5eb557,'data':_0x4ea048,'cmd':_0x5eb557['cmd']};}case I[_0x3208e9(0x3a4)]:{const _0x264cbe=_0x5eb557['joinRsp'];return{..._0x5eb557,'data':_0x264cbe,'cmd':_0x5eb557[_0x3208e9(0x476)]};}case I[_0x3208e9(0x1f7)]:{const _0x56194d=_0x5eb557[_0x3208e9(0x3ec)];switch(_0x56194d[_0x3208e9(0x420)]){case _0x64674d[_0x3208e9(0x468)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x3b6a25=_0x56194d[_0x3208e9(0x4d2)])==null?void 0x0:_0x3b6a25['cs']},'cmd':_0x5eb557['cmd']};case _0x64674d[_0x3208e9(0x30a)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x4745f4=_0x56194d[_0x3208e9(0x3e0)])==null?void 0x0:_0x4745f4['cs']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x222)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x140c9c=_0x56194d['newCsEvent'])==null?void 0x0:_0x140c9c['cs']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x440)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x2ffb95=_0x56194d['csRejEvent'])==null?void 0x0:_0x2ffb95['cs']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x1ed)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x34d)]},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d['USERS_ENTER']:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d['joinEvent']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x22c)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x438)]},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x2ee)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x40c)]},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x1b8)]:case _0x64674d[_0x3208e9(0x3f5)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d['liveShareOperation']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x2d2)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x40c)]},'cmd':_0x5eb557['cmd']};case _0x64674d[_0x3208e9(0x4a0)]:return{..._0x5eb557,'data':_0x56194d,'cmd':_0x5eb557[_0x3208e9(0x476)]};default:return _0x5eb557;}}default:return _0x5eb557;}}function gn(_0x46657f){const _0x397c09=_0x48c788;switch(_0x46657f[_0x397c09(0x476)]){case I['HEARTBEAT']:case I[_0x397c09(0x374)]:return JSON[_0x397c09(0x1ce)]({'cmd':_0x46657f['cmd'],'routeKey':_0x46657f[_0x397c09(0x423)]});case I[_0x397c09(0x2a7)]:{let _0x4233ae;switch(_0x46657f['data']['eventID']){case _0x64674d[_0x397c09(0x1ed)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x1ed)],'updateCursorEvent':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x22c)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x22c)],'leaveEvent':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d['USERS_ENTER']:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x4a1)],'joinEvent':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d['LIVESHARE_NEW_HOST']:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x2ee)],'liveShareNewHost':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x3f5)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x3f5)],'liveShareOperation':_0x46657f[_0x397c09(0x43e)]['data']};break;}case _0x64674d[_0x397c09(0x2d2)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x2d2)],'liveShareTerminate':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x3bb)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x3bb)],'liveShareRequestHost':_0x46657f['data'][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x1b8)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x1b8)]};break;}default:_0x4233ae={'eventID':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x420)]};}return JSON['stringify']({'cmd':_0x46657f[_0x397c09(0x476)],'routeKey':_0x46657f['routeKey'],'collaMsg':_0x4233ae});}case I['JOIN']:return JSON[_0x397c09(0x1ce)]({'cmd':_0x46657f[_0x397c09(0x476)],'routeKey':_0x46657f[_0x397c09(0x423)],'joinReq':_0x46657f[_0x397c09(0x43e)]});case I[_0x397c09(0x3ad)]:return JSON['stringify']({'cmd':_0x46657f[_0x397c09(0x476)],'routeKey':_0x46657f[_0x397c09(0x423)],'leaveReq':_0x46657f[_0x397c09(0x43e)]});default:throw new Error(_0x397c09(0x1b4));}}var mn=Object['defineProperty'],Sn=Object[_0x48c788(0x2bd)],vn=(_0x4f8951,_0x3af5a1,_0xb0482a,_0x5f99fc)=>{for(var _0x4649d9=_0x5f99fc>0x1?void 0x0:_0x5f99fc?Sn(_0x3af5a1,_0xb0482a):_0x3af5a1,_0x3189b1=_0x4f8951['length']-0x1,_0x1f80c2;_0x3189b1>=0x0;_0x3189b1--)(_0x1f80c2=_0x4f8951[_0x3189b1])&&(_0x4649d9=(_0x5f99fc?_0x1f80c2(_0x3af5a1,_0xb0482a,_0x4649d9):_0x1f80c2(_0x4649d9))||_0x4649d9);return _0x5f99fc&&_0x4649d9&&mn(_0x3af5a1,_0xb0482a,_0x4649d9),_0x4649d9;},me=(_0x467d0c,_0x5f1764)=>(_0x33004a,_0x38b8fa)=>_0x5f1764(_0x33004a,_0x38b8fa,_0x467d0c);const Cs=_0x4e2518(_0x48c788(0x30b));function pn(_0x94027a,_0x34d377,_0x26d734){const _0x39561d=_0x48c788;return _0x94027a+'/'+_0x34d377+_0x39561d(0x327)+_0x26d734+_0x39561d(0x1fd);}let _t=class{constructor(_0x2af389,_0x2ae65c,_0x4b4e82,_0x2ca1cb,_0x1c36fa){const _0x224fa7=_0x48c788;this[_0x224fa7(0x4a9)]=_0x2af389,this[_0x224fa7(0x284)]=_0x2ae65c,this[_0x224fa7(0x35d)]=_0x4b4e82,this[_0x224fa7(0x2ad)]=_0x2ca1cb,this[_0x224fa7(0x220)]=_0x1c36fa;}[_0x48c788(0x242)](_0x3966b3){const _0x45c165=_0x48c788,_0x21d604=this[_0x45c165(0x284)][_0x45c165(0x242)](_0x3966b3);if(!_0x21d604)throw new Error(_0x45c165(0x357));const _0x306492=new _0x53ebaa(),_0x368957=new _0x255156();_0x306492['add'](_0x308092(_0x21d604[_0x45c165(0x4d7)][_0x45c165(0x237)](_0x5ef8a3=>_0x368957[_0x45c165(0x325)](_0x5ef8a3)))),_0x306492[_0x45c165(0x20d)](_0x308092(()=>_0x368957[_0x45c165(0x22e)]()));const _0x4b10f6=new _0x255156();_0x306492['add'](_0x308092(_0x21d604['error$'][_0x45c165(0x237)](_0x5b547f=>_0x4b10f6[_0x45c165(0x325)](_0x5b547f)))),_0x306492[_0x45c165(0x20d)](_0x308092(()=>_0x4b10f6[_0x45c165(0x22e)]()));const _0x4a8183=new _0x255156();_0x306492['add'](_0x308092(_0x21d604['message$']['subscribe'](_0x56c608=>{const _0x5393e1=_0x45c165,_0x4a143f=fn(_0x56c608);_0x4a8183[_0x5393e1(0x325)](_0x4a143f);}))),_0x306492[_0x45c165(0x20d)](_0x308092(()=>_0x4a8183[_0x45c165(0x22e)]()));const _0x4345b9=()=>{const _0x426e4b=_0x45c165;_0x4b10f6[_0x426e4b(0x325)](new Event(_0x426e4b(0x265))),_0x368957[_0x426e4b(0x325)](new CloseEvent(_0x426e4b(0x265))),_0x4f83e4[_0x426e4b(0x297)]();},_0x4f83e4={'memberID':'','close$':_0x368957[_0x45c165(0x1ec)](),'error$':_0x4b10f6[_0x45c165(0x1ec)](),'open$':_0x21d604[_0x45c165(0x34b)],'message$':_0x4a8183[_0x45c165(0x1ec)](),'send':_0x320b84=>{const _0x10220e=_0x45c165;if(_0x320b84[_0x10220e(0x476)]===I[_0x10220e(0x2a7)]){if(_0x320b84['data']['eventID']===_0x64674d[_0x10220e(0x250)]){this['_submitChangeset'](_0x4f83e4,_0x320b84[_0x10220e(0x43e)])['catch'](_0x40ca06=>{const _0x472ddf=_0x10220e;this[_0x472ddf(0x2ad)][_0x472ddf(0x1b3)](_0x40ca06),_0x4345b9();});return;}if(_0x320b84[_0x10220e(0x43e)][_0x10220e(0x420)]===_0x64674d[_0x10220e(0x251)]){const _0x10a549=_0x320b84['data'];this['_fetchMissChangesets'](_0x10a549)[_0x10220e(0x20e)](_0x1e4f0c=>{const _0x48c56e=_0x10220e;_0x4a8183['next']({'cmd':I[_0x48c56e(0x1f7)],'code':Nt['OK'],'routeKey':_0x10a549[_0x48c56e(0x43e)][_0x48c56e(0x2d3)],'routeType':'','data':{'eventID':_0x64674d[_0x48c56e(0x393)],'data':{'changesets':_0x1e4f0c}}});})[_0x10220e(0x2d7)](_0x560c7e=>{const _0x11d835=_0x10220e;this[_0x11d835(0x2ad)]['error'](_0x560c7e),_0x4345b9();});return;}}_0x21d604['send'](gn(_0x320b84));},'close':()=>{const _0x2f09a1=_0x45c165;_0x21d604[_0x2f09a1(0x297)](),_0x306492[_0x2f09a1(0x46e)]();}};return _0x4f83e4;}async[_0x48c788(0x221)](_0x1971e4,_0x20e0df){const _0x13eb8b=_0x48c788;var _0x2d0984;const {unitType:_0x39868f,unitID:_0x4dcfd8,changeset:_0x1ddcfb}=_0x20e0df[_0x13eb8b(0x43e)],_0x51095e={'unitID':_0x4dcfd8,'memberID':_0x1971e4[_0x13eb8b(0x260)],'type':_0x39868f,'changeset':_0x4444c6(_0x1ddcfb)},_0x25b9b4=pn((_0x2d0984=this[_0x13eb8b(0x35d)]['getConfig'](on))!=null?_0x2d0984:an,_0x39868f,_0x4dcfd8);try{await this[_0x13eb8b(0x4a9)][_0x13eb8b(0x4b4)](_0x25b9b4,{'body':_0x51095e});}catch(_0x2d8319){throw this[_0x13eb8b(0x2ad)]['error'](_0x13eb8b(0x402),'submit\x20changeset\x20error!'),_0x2d8319;}}async['_fetchMissChangesets'](_0x4ce042){const _0x592542=_0x48c788,{unitID:_0x1646ad,from:_0x364fcf,to:_0x4be44b,unitType:_0x21f0f7}=_0x4ce042[_0x592542(0x43e)];return(await this[_0x592542(0x220)][_0x592542(0x4bc)]({'metadata':void 0x0},{'unitID':_0x1646ad,'type':_0x21f0f7,'from':_0x364fcf,'to':_0x4be44b}))[_0x592542(0x49d)];}};_t=vn([me(0x0,_0x1df0bc(_0x49edd2)),me(0x1,_0x1df0bc(_0x15b3f3)),me(0x2,_0x475c15),me(0x3,_0xcf8387),me(0x4,_0x32765d)],_t);var In=Object[_0x48c788(0x299)],En=Object['getOwnPropertyDescriptor'],bs=(_0x159033,_0x32a3f2,_0x3524b4,_0x823a52)=>{const _0x5e20a3=_0x48c788;for(var _0x55e60c=_0x823a52>0x1?void 0x0:_0x823a52?En(_0x32a3f2,_0x3524b4):_0x32a3f2,_0x1fbd5d=_0x159033[_0x5e20a3(0x3c7)]-0x1,_0x44d992;_0x1fbd5d>=0x0;_0x1fbd5d--)(_0x44d992=_0x159033[_0x1fbd5d])&&(_0x55e60c=(_0x823a52?_0x44d992(_0x32a3f2,_0x3524b4,_0x55e60c):_0x44d992(_0x55e60c))||_0x55e60c);return _0x823a52&&_0x55e60c&&In(_0x32a3f2,_0x3524b4,_0x55e60c),_0x55e60c;},M=(_0x205c6f,_0x17e14e)=>(_0x232821,_0x5e1906)=>_0x17e14e(_0x232821,_0x5e1906,_0x205c6f),_e=(_0x18a672=>(_0x18a672[_0x18a672[_0x48c788(0x282)]=0x0]='IDLE',_0x18a672[_0x18a672[_0x48c788(0x377)]=0x1]=_0x48c788(0x377),_0x18a672[_0x18a672[_0x48c788(0x214)]=0x2]=_0x48c788(0x214),_0x18a672[_0x18a672['ONLINE']=0x3]=_0x48c788(0x431),_0x18a672))(_e||{});let ut=class extends _0x4f9c78{constructor(_0x499271,_0x3aee00,_0x2ec625,_0x10c206,_0x190329,_0x1cf9cd,_0x788ba3,_0x22df55){const _0x2e7fb5=_0x48c788;super(),l(this,'_sessionStatus$',new _0xac9643(0x0)),l(this,'sessionStatus$',this['_sessionStatus$'][_0x2e7fb5(0x1ec)]()),l(this,_0x2e7fb5(0x306),new _0x255156()),l(this,_0x2e7fb5(0x3d7),this[_0x2e7fb5(0x306)][_0x2e7fb5(0x1ec)]()),l(this,_0x2e7fb5(0x366)),l(this,_0x2e7fb5(0x4ab)),l(this,_0x2e7fb5(0x34a)),(this['_unitID']=_0x499271,this[_0x2e7fb5(0x2ad)]=_0x2ec625,this[_0x2e7fb5(0x3d2)]=_0x10c206,this[_0x2e7fb5(0x464)]=_0x190329,this['_configService']=_0x1cf9cd,this[_0x2e7fb5(0x314)]=_0x788ba3,this['_memberService']=_0x22df55,_0x3aee00[_0x2e7fb5(0x3bd)](_0x258fee(this[_0x2e7fb5(0x4c9)]))['subscribe'](_0x17cc5=>{const _0x19e1a1=_0x2e7fb5;var _0x5e595e;typeof _0x17cc5>'u'||(this[_0x19e1a1(0x366)]=_0x17cc5,_0x17cc5?(this['_joinRoom'](_0x17cc5),this[_0x19e1a1(0x4ab)]=this[_0x19e1a1(0x366)][_0x19e1a1(0x26c)]['subscribe'](_0x4d1e13=>{const _0x547918=_0x19e1a1;_0x4d1e13['routeKey']===this[_0x547918(0x318)]&&this[_0x547918(0x399)](_0x4d1e13);})):(this[_0x19e1a1(0x40d)][_0x19e1a1(0x325)](0x2),(_0x5e595e=this['_socketMessageSubscription'])==null||_0x5e595e[_0x19e1a1(0x1fa)](),this[_0x19e1a1(0x4ab)]=null));}),this[_0x2e7fb5(0x3e7)](this[_0x2e7fb5(0x3d2)][_0x2e7fb5(0x355)](()=>{const _0x1b0681=_0x2e7fb5;var _0x12bebb;(_0x12bebb=this['_socket'])==null||_0x12bebb[_0x1b0681(0x381)]({'cmd':I[_0x1b0681(0x3ad)],'data':{'roomID':this[_0x1b0681(0x318)]}});})));}get['sessionStatus'](){const _0x48becf=_0x48c788;return this[_0x48becf(0x40d)][_0x48becf(0x326)]();}[_0x48c788(0x329)](){const _0x45ff4b=_0x48c788;var _0x5e2203,_0x1019b1;return(_0x1019b1=(_0x5e2203=this['_socket'])==null?void 0x0:_0x5e2203[_0x45ff4b(0x260)])!=null?_0x1019b1:null;}[_0x48c788(0x46e)](){const _0x4a1ba6=_0x48c788;super[_0x4a1ba6(0x46e)](),this['dispose$'][_0x4a1ba6(0x325)](),this[_0x4a1ba6(0x4c9)][_0x4a1ba6(0x22e)]();}[_0x48c788(0x399)](_0x171629){const _0x16d1e5=_0x48c788;_0x171629['cmd']===I[_0x16d1e5(0x3a4)]?this[_0x16d1e5(0x389)](_0x171629):_0x171629[_0x16d1e5(0x476)]===I[_0x16d1e5(0x1f7)]&&this['_onRecvEvent'](_0x171629);}[_0x48c788(0x34c)](_0x70a1c3){const _0x4f2964=_0x48c788;this['_sessionStatus$'][_0x4f2964(0x325)](0x1),_0x70a1c3[_0x4f2964(0x381)]({'cmd':I[_0x4f2964(0x3a4)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x549e0a){const _0x2e2160=_0x48c788;var _0x3a30dd;if(_0x549e0a['code']===Nt['FAIL']){this['_messageService'][_0x2e2160(0x4d1)]({'type':_0x16b663['Warning'],'content':this[_0x2e2160(0x314)]['t'](_0x2e2160(0x2a8))}),this[_0x2e2160(0x40d)][_0x2e2160(0x325)](0x2);return;}this[_0x2e2160(0x40d)]['next'](0x3);const _0xf9d5e4=(_0x3a30dd=_0x549e0a[_0x2e2160(0x43e)][_0x2e2160(0x37d)][this[_0x2e2160(0x318)]])==null?void 0x0:_0x3a30dd['members'];_0xf9d5e4&&_0xf9d5e4['forEach'](_0x457190=>this[_0x2e2160(0x28e)]['updateMember'](this[_0x2e2160(0x318)],_0x457190));}[_0x48c788(0x296)](_0x1913eb){const _0x3abd4c=_0x48c788;try{const _0xa40855=_0x1913eb['data'];switch(_0xa40855[_0x3abd4c(0x420)]){case _0x64674d[_0x3abd4c(0x4a1)]:this[_0x3abd4c(0x21c)](_0xa40855),this[_0x3abd4c(0x306)][_0x3abd4c(0x325)](_0xa40855);break;case _0x64674d['USERS_LEAVE']:this['_onUserLeave'](_0xa40855),this['_event$'][_0x3abd4c(0x325)](_0xa40855);break;case _0x64674d[_0x3abd4c(0x30a)]:this['_clearCollaborationTimeoutTimer'](),this[_0x3abd4c(0x306)][_0x3abd4c(0x325)](_0xa40855);break;case _0x64674d[_0x3abd4c(0x4a0)]:this[_0x3abd4c(0x2ad)][_0x3abd4c(0x1b3)](_0x3abd4c(0x4b9)+JSON[_0x3abd4c(0x1ce)](_0xa40855)),this[_0x3abd4c(0x306)]['next'](_0xa40855);break;default:this['_event$']['next'](_0xa40855);}}catch(_0x4fce6e){this[_0x3abd4c(0x2ad)][_0x3abd4c(0x1b3)](_0x4fce6e,_0x1913eb);}}[_0x48c788(0x21c)](_0x58e997){const _0x557188=_0x48c788;this[_0x557188(0x28e)][_0x557188(0x294)](this[_0x557188(0x318)],_0x58e997['data']);}[_0x48c788(0x37e)](_0x4e8e6b){const _0xcc2f12=_0x48c788;this[_0xcc2f12(0x28e)]['removeMember'](this['_unitID'],_0x4e8e6b[_0xcc2f12(0x43e)][_0xcc2f12(0x260)]);}async[_0x48c788(0x381)](_0x509ef8,_0x5a00af){const _0x20df17=_0x48c788;if(this[_0x20df17(0x3ea)]!==0x3||!this[_0x20df17(0x366)])throw new Error(_0x20df17(0x273));try{_0x509ef8[_0x20df17(0x420)]===_0x64674d[_0x20df17(0x222)]&&this[_0x20df17(0x48e)](),this[_0x20df17(0x366)][_0x20df17(0x381)]({'cmd':I[_0x20df17(0x2a7)],'routeKey':_0x5a00af,'routeType':'','data':_0x509ef8});}catch(_0x26698d){this['_logService']['error'](_0x26698d);}}[_0x48c788(0x48e)](){const _0x89f5b8=_0x48c788;var _0x33f8dd;this[_0x89f5b8(0x34a)]=window['setTimeout'](()=>{const _0x4f4760=_0x89f5b8;this[_0x4f4760(0x34a)]=null,this[_0x4f4760(0x464)][_0x4f4760(0x4d1)]({'type':_0x16b663[_0x4f4760(0x3f9)],'content':this[_0x4f4760(0x314)]['t']('session.collaboration-timeout')});},(_0x33f8dd=this['_configService']['getConfig'](ps))!=null?_0x33f8dd:Is);}[_0x48c788(0x442)](){const _0x16ced2=_0x48c788;this[_0x16ced2(0x34a)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}};ut=bs([M(0x2,_0xcf8387),M(0x3,_0x547f18),M(0x4,_0xcc97bb),M(0x5,_0x475c15),M(0x6,_0x1df0bc(_0x7ef8c9)),M(0x7,_0x1df0bc(ee))],ut);let Re=class extends _0x5de86a{constructor(_0x55035b,_0x279e58,_0x192c32,_0x2dfc60,_0xcfde59,_0x12d2fc){const _0x43b04a=_0x48c788;super(),l(this,'_socket$',new _0xac9643(void 0x0)),l(this,_0x43b04a(0x408),new Map()),l(this,_0x43b04a(0x1ca),new _0xac9643(0x0)),l(this,_0x43b04a(0x44b),this[_0x43b04a(0x1ca)][_0x43b04a(0x1ec)]()),l(this,_0x43b04a(0x246),!0x1),l(this,_0x43b04a(0x40e)),l(this,'_timeoutTimer'),l(this,'_retryConnectingTimer'),l(this,_0x43b04a(0x3de),0x0),(this['_injector']=_0x55035b,this[_0x43b04a(0x314)]=_0x279e58,this['_messageService']=_0x192c32,this[_0x43b04a(0x2ad)]=_0x2dfc60,this[_0x43b04a(0x35d)]=_0xcfde59,this['_socketService']=_0x12d2fc);}get['_socket'](){const _0x4eecd1=_0x48c788;return this[_0x4eecd1(0x429)][_0x4eecd1(0x326)]();}[_0x48c788(0x46e)](){const _0x4b72ee=_0x48c788;super[_0x4b72ee(0x46e)](),this['_sessions'][_0x4b72ee(0x244)](_0xf1364d=>_0xf1364d['dispose']()),this[_0x4b72ee(0x408)]['clear'](),this[_0x4b72ee(0x1ca)][_0x4b72ee(0x22e)]();}async[_0x48c788(0x44c)](_0x7ec7fd){const _0x11b63e=_0x48c788;if(this['_sessions'][_0x11b63e(0x3f4)](_0x7ec7fd))return this[_0x11b63e(0x408)][_0x11b63e(0x4ce)](_0x7ec7fd);this[_0x11b63e(0x1ea)]();const _0x14dea4=this[_0x11b63e(0x2e1)][_0x11b63e(0x3a1)](ut,_0x7ec7fd,this[_0x11b63e(0x429)][_0x11b63e(0x1ec)]());return this[_0x11b63e(0x408)][_0x11b63e(0x25a)](_0x7ec7fd,_0x14dea4),_0x14dea4;}[_0x48c788(0x216)](){const _0x42a983=_0x48c788;var _0x157055;const _0x54c656=(_0x157055=this[_0x42a983(0x35d)][_0x42a983(0x2d9)](Ji))!=null?_0x157055:zi;return this[_0x42a983(0x2fb)][_0x42a983(0x242)](_0x54c656);}[_0x48c788(0x1ea)](){const _0x692473=_0x48c788;try{const _0x1f57bd=this['_createSocket']();if(_0x1f57bd){const _0x3730c9=_0x1f57bd[_0x692473(0x381)];_0x1f57bd[_0x692473(0x381)]=_0xcad733=>(this[_0x692473(0x205)](),_0x3730c9[_0x692473(0x321)](_0x1f57bd,[_0xcad733])),_0x1f57bd['message$'][_0x692473(0x237)](_0x2ce5f4=>this[_0x692473(0x373)](_0x1f57bd,_0x2ce5f4)),_0x1f57bd[_0x692473(0x248)][_0x692473(0x3bd)](_0x332c11(0x1))[_0x692473(0x237)](_0x1e0c59=>this[_0x692473(0x2ad)][_0x692473(0x1b3)]('[CollaborationSessionService]:\x20socket\x20error',_0x1e0c59)),_0x1f57bd[_0x692473(0x34b)]['pipe'](_0x332c11(0x1))[_0x692473(0x237)](()=>{const _0x19673c=_0x692473;this[_0x19673c(0x3db)](_0x1f57bd);}),_0x1f57bd['close$']['pipe'](_0x332c11(0x1))[_0x692473(0x237)](_0x3ead90=>{const _0x525d5e=_0x692473;this[_0x525d5e(0x2ad)][_0x525d5e(0x1b0)]('[CollaborationSessionService]','socket\x20close',_0x3ead90),this[_0x525d5e(0x2b1)]();});}}catch(_0x2437ee){this[_0x692473(0x2ad)][_0x692473(0x1b3)](_0x2437ee),this[_0x692473(0x2b1)]();}}['_onConnectionOpen'](_0x26a4d4){const _0x2fc99a=_0x48c788;this[_0x2fc99a(0x2ad)][_0x2fc99a(0x1b0)]('[CollaborationSessionService]',_0x2fc99a(0x38a)),_0x26a4d4[_0x2fc99a(0x381)]({'cmd':I[_0x2fc99a(0x374)]}),this[_0x2fc99a(0x205)]();}[_0x48c788(0x2b1)](){const _0x435fd5=_0x48c788;var _0x360773;this[_0x435fd5(0x1ca)]['next'](0x2),this[_0x435fd5(0x429)][_0x435fd5(0x325)](null),this[_0x435fd5(0x1f0)](),this[_0x435fd5(0x496)](),this[_0x435fd5(0x246)]=!0x1,this[_0x435fd5(0x3de)]<((_0x360773=this[_0x435fd5(0x35d)]['getConfig'](tn))!=null?_0x360773:sn)?(this[_0x435fd5(0x356)](this[_0x435fd5(0x3de)]),this[_0x435fd5(0x3de)]+=0x1):this[_0x435fd5(0x464)][_0x435fd5(0x4d1)]({'type':_0x16b663[_0x435fd5(0x3f9)],'content':this[_0x435fd5(0x314)]['t'](_0x435fd5(0x341))});}['_scheduleReconnection'](_0xc3d16b){const _0x7b544f=_0x48c788;var _0x558fa7;const _0x49f366=((_0x558fa7=this[_0x7b544f(0x35d)][_0x7b544f(0x2d9)](Qi))!=null?_0x558fa7:en)*0x2**_0xc3d16b;this['_messageService'][_0x7b544f(0x4d1)]({'type':_0x16b663[_0x7b544f(0x39e)],'content':this[_0x7b544f(0x314)]['t'](_0x7b544f(0x2f7))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x36aa59=_0x7b544f;this[_0x36aa59(0x1ea)](),clearTimeout(this[_0x36aa59(0x38d)]),this[_0x36aa59(0x38d)]=null;},_0x49f366);}[_0x48c788(0x205)](){const _0x2c992f=_0x48c788;var _0x45cd07;this[_0x2c992f(0x496)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x2c992f(0x217)](),(_0x45cd07=this['_configService'][_0x2c992f(0x2d9)](qi))!=null?_0x45cd07:Zi);}[_0x48c788(0x217)](){const _0x4ff502=_0x48c788;this['_socket'][_0x4ff502(0x381)]({'cmd':I[_0x4ff502(0x412)]}),this['_waitForHeartbeatResponse']();}[_0x48c788(0x3bc)](){const _0x362e3f=_0x48c788;var _0x6312ec;this[_0x362e3f(0x2ed)]=setTimeout(()=>this[_0x362e3f(0x2b1)](),(_0x6312ec=this[_0x362e3f(0x35d)][_0x362e3f(0x2d9)](ps))!=null?_0x6312ec:Is);}[_0x48c788(0x373)](_0x241b56,_0x3423d5){const _0x3347f2=_0x48c788,{cmd:_0x7d6fb5}=_0x3423d5;_0x7d6fb5===I[_0x3347f2(0x374)]&&!this[_0x3347f2(0x246)]&&(_0x241b56['memberID']=_0x3423d5[_0x3347f2(0x43e)][_0x3347f2(0x260)],this[_0x3347f2(0x429)][_0x3347f2(0x325)](_0x241b56),this['_status$'][_0x3347f2(0x325)](0x3),this[_0x3347f2(0x246)]=!0x0),_0x7d6fb5===I[_0x3347f2(0x412)]&&this['_clearTimeoutTimer'](),this[_0x3347f2(0x205)]();}[_0x48c788(0x496)](){const _0x3bc208=_0x48c788;this[_0x3bc208(0x40e)]!=null&&(clearTimeout(this[_0x3bc208(0x40e)]),this[_0x3bc208(0x40e)]=null);}[_0x48c788(0x1f0)](){const _0x43f55b=_0x48c788;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x43f55b(0x2ed)]),this[_0x43f55b(0x2ed)]=null);}};Re=bs([M(0x0,_0x1df0bc(_0x1883e3)),M(0x1,_0x1df0bc(_0x7ef8c9)),M(0x2,_0xcc97bb),M(0x3,_0xcf8387),M(0x4,_0x475c15),M(0x5,Cs)],Re);var Cn=Object[_0x48c788(0x299)],bn=Object[_0x48c788(0x2bd)],Rn=(_0x406580,_0x51016b,_0x12f31f,_0x118272)=>{const _0x4d735c=_0x48c788;for(var _0x3dd9c4=_0x118272>0x1?void 0x0:_0x118272?bn(_0x51016b,_0x12f31f):_0x51016b,_0x441c94=_0x406580[_0x4d735c(0x3c7)]-0x1,_0xb4953;_0x441c94>=0x0;_0x441c94--)(_0xb4953=_0x406580[_0x441c94])&&(_0x3dd9c4=(_0x118272?_0xb4953(_0x51016b,_0x12f31f,_0x3dd9c4):_0xb4953(_0x3dd9c4))||_0x3dd9c4);return _0x118272&&_0x3dd9c4&&Cn(_0x51016b,_0x12f31f,_0x3dd9c4),_0x3dd9c4;},Se=(_0x55639b,_0x9cf9f2)=>(_0x497a14,_0x5593df)=>_0x9cf9f2(_0x497a14,_0x5593df,_0x55639b);let D=class extends _0x5de86a{constructor(_0xdee53d,_0x25d618,_0x3bd6d6,_0x191bcc,_0x5a53f7){const _0x37d8d5=_0x48c788;super(),l(this,_0x37d8d5(0x24b),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x37d8d5(0x210),!0x1),(this['_configService']=_0xdee53d,this['_localStorageService']=_0x25d618,this['_beforeCloseService']=_0x3bd6d6,this[_0x37d8d5(0x314)]=_0x191bcc,this[_0x37d8d5(0x3f3)]=_0x5a53f7,this['_setupBeforeClosingHandler']());}[_0x48c788(0x2c2)](){const _0x1f8bfd=_0x48c788;this[_0x1f8bfd(0x210)]=!0x0;}[_0x48c788(0x385)](){this['_disabled']=!0x1;}[_0x48c788(0x46e)](){const _0x1b9442=_0x48c788;this[_0x1b9442(0x1b1)]()[_0x1b9442(0x20e)](()=>super['dispose']());}async[_0x48c788(0x256)](_0x2d55ef){const _0x5075b2=_0x48c788;return this[_0x5075b2(0x210)]?null:this[_0x5075b2(0x390)][_0x5075b2(0x434)](Wt(_0x2d55ef));}async[_0x48c788(0x4ad)](_0x71c877,_0x445578){const _0x5198f8=_0x48c788;return!!this[_0x5198f8(0x390)][_0x5198f8(0x4c3)](_0x71c877,_0x445578);}[_0x48c788(0x27d)](_0x143650,_0x314015,_0x32b444,_0x1cb048){const _0x17a358=_0x48c788,_0x2770d9=this[_0x17a358(0x3f3)][_0x17a358(0x4b1)](_0x143650);this['_cachedData'][_0x17a358(0x25a)](_0x143650,{'unitID':_0x143650,'type':_0x314015,'awaitingChangeset':_0x32b444,'mutations':_0x1cb048,'rev':_0x2770d9}),this[_0x17a358(0x3b2)][_0x17a358(0x3f4)](_0x143650)||this[_0x17a358(0x204)](_0x143650);}[_0x48c788(0x204)](_0x8c420d){const _0x16c240=_0x48c788,_0x708f04=this[_0x16c240(0x2fa)]();_0x708f04===0x0?this['_saveCache'](_0x8c420d):this['_saveTaskMap']['set'](_0x8c420d,setTimeout(()=>this[_0x16c240(0x309)](_0x8c420d),_0x708f04));}[_0x48c788(0x2fa)](){const _0x323f8e=_0x48c788;var _0x28db35;return(_0x28db35=this[_0x323f8e(0x35d)]['getConfig'](nn))!=null?_0x28db35:rn;}['_saveCache'](_0x166db3){const _0x2fe938=_0x48c788,_0x300782=this[_0x2fe938(0x3b2)]['get'](_0x166db3);return _0x300782!==void 0x0&&window[_0x2fe938(0x31e)](_0x300782),this[_0x2fe938(0x390)][_0x2fe938(0x4c3)](Wt(_0x166db3),this[_0x2fe938(0x24b)][_0x2fe938(0x4ce)](_0x166db3))['then'](()=>this['_saveTaskMap'][_0x2fe938(0x388)](_0x166db3));}async[_0x48c788(0x1b1)](){const _0x29c594=_0x48c788,_0x3303bf=[];this[_0x29c594(0x3b2)][_0x29c594(0x244)]((_0xff9a15,_0x2918e0)=>{const _0x4f421a=_0x29c594;window[_0x4f421a(0x31e)](_0xff9a15),_0x3303bf[_0x4f421a(0x3ae)](this[_0x4f421a(0x309)](_0x2918e0)[_0x4f421a(0x20e)](()=>{const _0x1eb245=_0x4f421a;this[_0x1eb245(0x3b2)]['delete'](_0x2918e0);}));}),await Promise[_0x29c594(0x42e)](_0x3303bf);}[_0x48c788(0x3ac)](){const _0x24ffe7=_0x48c788;this[_0x24ffe7(0x3e7)](this['_beforeCloseService'][_0x24ffe7(0x280)](()=>{const _0x21e1a1=_0x24ffe7;if(this[_0x21e1a1(0x3b2)][_0x21e1a1(0x457)])return this[_0x21e1a1(0x314)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Rn([Se(0x0,_0x475c15),Se(0x1,_0x2bd6b3),Se(0x2,_0x547f18),Se(0x3,_0x1df0bc(_0x7ef8c9)),Se(0x4,_0x1df0bc(_0x2426c9))],D);function Wt(_0x40d4ca){const _0x214737=_0x48c788;return _0x214737(0x31c)+_0x40d4ca;}const Xe=_0x4e2518('univer-pro.collaboration-client.single-active-unit-service');var Rs=(_0x18c0d8=>(_0x18c0d8[_0x18c0d8[_0x48c788(0x32a)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x18c0d8[_0x18c0d8['OTHER_CLIENTS_EDITING']=0x1]=_0x48c788(0x2cd),_0x18c0d8))(Rs||{});const Gt=0x7530,Yt=_0x48c788(0x200);class Tn extends _0x5de86a{constructor(){const _0x2c7e3c=_0x48c788;super(),l(this,_0x2c7e3c(0x3dd),_0x41ebb1[_0x2c7e3c(0x2e7)]()),l(this,_0x2c7e3c(0x4cf),new Set()),l(this,_0x2c7e3c(0x277),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x2c7e3c(0x211),new Map()),l(this,'_unitStatus',new Map()),this[_0x2c7e3c(0x340)]();}['dispose'](){const _0x110166=_0x48c788;super['dispose'](),this[_0x110166(0x211)][_0x110166(0x244)]((_0x294836,_0x4456c8)=>this[_0x110166(0x279)](_0x4456c8)),this['_heartbeatTimer']&&window[_0x110166(0x44f)](this[_0x110166(0x3b4)]);}[_0x48c788(0x36f)](_0x398cab){const _0x1bd2bf=_0x48c788;return this[_0x1bd2bf(0x482)](_0x398cab)[_0x1bd2bf(0x3bd)](_0xbaf3d7());}['editingUnit'](_0x43e838){const _0x417106=_0x48c788;this[_0x417106(0x4cf)]['size']===0x0&&this[_0x417106(0x3f0)](),this[_0x417106(0x4cf)][_0x417106(0x20d)](_0x43e838),this['_send']({'type':0x0,'memberID':this[_0x417106(0x3dd)],'unitIDs':[_0x43e838],'isForwarded':!0x1});}['disposeUnit'](_0x3dd344){const _0x4d0fe2=_0x48c788;this['_selfUnitIDs'][_0x4d0fe2(0x388)](_0x3dd344),this[_0x4d0fe2(0x4cf)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x4d0fe2(0x3b4)]);}[_0x48c788(0x340)](){const _0xa8666d=_0x48c788;this['disposeWithMe'](_0x308092(_0x3afa96(window,_0xa8666d(0x227))[_0xa8666d(0x237)](_0x307168=>{const _0x1cac98=_0xa8666d;if(_0x307168['key']!==Yt||!_0x307168[_0x1cac98(0x289)])return;const _0x75f909=JSON['parse'](_0x307168[_0x1cac98(0x289)]);this[_0x1cac98(0x1dd)](_0x75f909);}))),window[_0xa8666d(0x3c1)]('unload',()=>this[_0xa8666d(0x463)]({'type':0x1,'memberID':this[_0xa8666d(0x3dd)],'unitIDs':Array[_0xa8666d(0x444)](this[_0xa8666d(0x4cf)])}));}[_0x48c788(0x1dd)](_0x5c845c){const _0x26d8cf=_0x48c788;switch(_0x5c845c[_0x26d8cf(0x45b)]){case 0x0:this['_handleJoinEvent'](_0x5c845c);break;case 0x1:this[_0x26d8cf(0x1f1)](_0x5c845c);break;case 0x2:this[_0x26d8cf(0x328)](_0x5c845c);break;}}[_0x48c788(0x465)](_0x14ac01){const _0x11eb4a=_0x48c788,{unitIDs:_0x5b1f0a,memberID:_0x42ef08,isForwarded:_0xcd3ddc}=_0x14ac01;_0x5b1f0a['forEach'](_0x2dc694=>{const _0x47d507=_0x1999;if(!_0xcd3ddc&&this[_0x47d507(0x277)][_0x47d507(0x3f4)](_0x2dc694)&&this[_0x47d507(0x482)](_0x2dc694)[_0x47d507(0x325)](0x1),!this[_0x47d507(0x277)][_0x47d507(0x3f4)](_0x2dc694)||!this[_0x47d507(0x277)]['get'](_0x2dc694)[_0x47d507(0x3f4)](_0x42ef08)){const _0x161e49=this[_0x47d507(0x277)][_0x47d507(0x4ce)](_0x2dc694)||new Set();_0x161e49[_0x47d507(0x20d)](_0x42ef08),this[_0x47d507(0x277)]['set'](_0x2dc694,_0x161e49),this[_0x47d507(0x2ae)](_0x42ef08);}}),_0xcd3ddc||this[_0x11eb4a(0x463)]({'type':0x0,'memberID':this[_0x11eb4a(0x3dd)],'unitIDs':[...this[_0x11eb4a(0x4cf)]],'isForwarded':!0x0});}[_0x48c788(0x2ae)](_0xee7848){const _0x2e44cb=_0x48c788;this[_0x2e44cb(0x279)](_0xee7848);const _0x496387=window[_0x2e44cb(0x41b)](()=>{const _0x404b8c=_0x2e44cb;this[_0x404b8c(0x277)]['forEach'](_0x3adb09=>{const _0x4747bd=_0x404b8c;_0x3adb09[_0x4747bd(0x388)](_0xee7848);});},Gt*0x2);this[_0x2e44cb(0x211)][_0x2e44cb(0x25a)](_0xee7848,_0x496387);}[_0x48c788(0x279)](_0x41f55b){const _0x5a374e=_0x48c788;if(this[_0x5a374e(0x211)][_0x5a374e(0x3f4)](_0x41f55b)){const _0x199c10=this[_0x5a374e(0x211)][_0x5a374e(0x4ce)](_0x41f55b);_0x199c10&&window[_0x5a374e(0x31e)](_0x199c10),this[_0x5a374e(0x211)][_0x5a374e(0x25a)](_0x41f55b,null);}}[_0x48c788(0x1f1)](_0x4aef8a){const _0x524af4=_0x48c788,{memberID:_0x33a009,unitIDs:_0x163d0a}=_0x4aef8a;_0x163d0a[_0x524af4(0x244)](_0x1b4a99=>{const _0x561b4b=_0x524af4;var _0xb9a698;const _0xf9085f=this[_0x561b4b(0x277)][_0x561b4b(0x4ce)](_0x1b4a99);_0xf9085f&&(_0xf9085f['delete'](_0x33a009),(_0xb9a698=this[_0x561b4b(0x482)](_0x1b4a99))==null||_0xb9a698[_0x561b4b(0x325)](_0xf9085f['size']===0x0?0x0:0x1));}),this[_0x524af4(0x279)](_0x33a009);}[_0x48c788(0x328)](_0x7195f9){const _0xd909d9=_0x48c788;this[_0xd909d9(0x2ae)](_0x7195f9[_0xd909d9(0x260)]);}[_0x48c788(0x463)](_0x17a80d){const _0x54f68c=_0x48c788;localStorage[_0x54f68c(0x4c3)](Yt,JSON['stringify'](_0x17a80d));}[_0x48c788(0x3f0)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x2b9f2b=_0x1999;this[_0x2b9f2b(0x463)]({'type':0x2,'memberID':this[_0x2b9f2b(0x3dd)]});},Gt);}['_ensureSubject'](_0x4374e3){const _0x237968=_0x48c788;return this[_0x237968(0x274)][_0x237968(0x3f4)](_0x4374e3)||this[_0x237968(0x274)][_0x237968(0x25a)](_0x4374e3,new _0xac9643(0x0)),this[_0x237968(0x274)][_0x237968(0x4ce)](_0x4374e3);}}var On=Object['defineProperty'],Dn=Object['getOwnPropertyDescriptor'],wn=(_0x16dc72,_0x14d0c7,_0x3fefcf,_0x522936)=>{const _0x4f631e=_0x48c788;for(var _0x1f63b7=_0x522936>0x1?void 0x0:_0x522936?Dn(_0x14d0c7,_0x3fefcf):_0x14d0c7,_0x5c221b=_0x16dc72[_0x4f631e(0x3c7)]-0x1,_0xe4a641;_0x5c221b>=0x0;_0x5c221b--)(_0xe4a641=_0x16dc72[_0x5c221b])&&(_0x1f63b7=(_0x522936?_0xe4a641(_0x14d0c7,_0x3fefcf,_0x1f63b7):_0xe4a641(_0x1f63b7))||_0x1f63b7);return _0x522936&&_0x1f63b7&&On(_0x14d0c7,_0x3fefcf,_0x1f63b7),_0x1f63b7;},Kt=(_0x2e688a,_0x363b1c)=>(_0x1efe6f,_0x16784e)=>_0x363b1c(_0x1efe6f,_0x16784e,_0x2e688a);let ke=class{constructor(_0x5c18c8,_0x25c59){const _0x2c174a=_0x48c788;this[_0x2c174a(0x2e1)]=_0x5c18c8,this[_0x2c174a(0x231)]=_0x25c59;}[_0x48c788(0x1c5)](_0x4f888a){const _0x43222f=_0x48c788;this['_transformUndoRedoStack'](_0x4f888a),this[_0x43222f(0x47f)](_0x4f888a);}[_0x48c788(0x1cf)](_0x89c505){const _0x2aaa71=_0x48c788,_0x3e7106=this[_0x2aaa71(0x2e1)]['get'](_0x5c948d),{redoCache:_0x5f40ae}=_0x3e7106['getUndoRedoMutationParamsCache']();if(_0x5f40ae[_0x2aaa71(0x3c7)]===0x0)return _0x89c505;let _0x42b54f=_0x41ebb1[_0x2aaa71(0x3ba)](_0x89c505[_0x2aaa71(0x3b5)][0x0]);for(let _0x518fc4=0x0;_0x518fc4<_0x5f40ae[_0x2aaa71(0x3c7)];_0x518fc4++){const _0x2e831d={'id':'doc.mutation.rich-text-editing','params':{..._0x5f40ae[_0x518fc4]}},_0x2be7bd=this[_0x2aaa71(0x231)]['transformMutation'](_0x42b54f,_0x2e831d,!0x1);if(_0x1ce5e8(_0x2be7bd))throw _0x2be7bd[_0x2aaa71(0x1b3)];_0x42b54f=_0x2be7bd['m1Prime'];}return{..._0x41ebb1[_0x2aaa71(0x3ba)](_0x89c505),'mutations':[_0x42b54f]};}['_transformUndoRedoStack'](_0x7e96f2){const _0x4666e8=_0x48c788,_0x3ccd7b=this[_0x4666e8(0x2e1)][_0x4666e8(0x4ce)](_0x5c948d),{undoCache:_0x223918,redoCache:_0x2c397e}=_0x3ccd7b[_0x4666e8(0x411)]();if(_0x223918['length']===0x0||_0x2c397e[_0x4666e8(0x3c7)]===0x0)return;const _0x3d2dac=[],_0x5c3d1e=[];let _0x23837d=_0x41ebb1[_0x4666e8(0x3ba)](_0x7e96f2['mutations'][0x0]),_0x9c904a=_0x41ebb1['deepClone'](_0x7e96f2[_0x4666e8(0x3b5)][0x0]);for(let _0x200261=_0x223918[_0x4666e8(0x3c7)]-0x1;_0x200261>=0x0;_0x200261--){const _0x2182a9={'id':_0x4666e8(0x4b6),'params':{..._0x223918[_0x200261]}},_0x54916a={'id':_0x4666e8(0x4b6),'params':{..._0x2c397e[_0x200261]}},_0x5220e5=this[_0x4666e8(0x231)][_0x4666e8(0x33b)](_0x23837d,_0x2182a9,!0x1),_0x8b09bb=this[_0x4666e8(0x231)][_0x4666e8(0x33b)](_0x9c904a,_0x54916a,!0x1);if(_0x1ce5e8(_0x5220e5))throw _0x5220e5[_0x4666e8(0x1b3)];if(_0x1ce5e8(_0x8b09bb))throw _0x8b09bb[_0x4666e8(0x1b3)];_0x3d2dac[_0x4666e8(0x384)](_0x5220e5[_0x4666e8(0x1bc)][_0x4666e8(0x23e)]),_0x5c3d1e[_0x4666e8(0x384)](_0x8b09bb[_0x4666e8(0x1bc)][_0x4666e8(0x23e)]),_0x23837d=_0x5220e5[_0x4666e8(0x415)],_0x9c904a=_0x8b09bb[_0x4666e8(0x415)];}_0x3ccd7b[_0x4666e8(0x232)]({'undoCache':_0x3d2dac,'redoCache':_0x5c3d1e});}[_0x48c788(0x47f)](_0x1445ed){const _0x30ca54=_0x48c788,_0x3e9a38=this['_injector'][_0x30ca54(0x4ce)](_0x5c948d),_0x1f93b5=_0x3e9a38[_0x30ca54(0x233)]();if(_0x1f93b5==null)return;const _0x27fdf7=[{'id':_0x30ca54(0x4b6),'params':{'unitId':_0x1445ed[_0x30ca54(0x2d3)],'actions':null,'textRanges':[_0x1f93b5]}}],_0x57f087=this[_0x30ca54(0x231)][_0x30ca54(0x313)](_0x1445ed,_0x27fdf7);if(!_0x13e3eb(_0x57f087))throw _0x57f087[_0x30ca54(0x1b3)];const _0x17ca70=_0x57f087[_0x30ca54(0x1bc)][0x0][_0x30ca54(0x23e)]['textRanges'];Array[_0x30ca54(0x1c9)](_0x17ca70)&&_0x17ca70[_0x30ca54(0x3c7)]&&_0x3e9a38[_0x30ca54(0x1e5)](_0x17ca70[0x0]);}};ke=wn([Kt(0x0,_0x1df0bc(_0x1883e3)),Kt(0x1,_0x56e350)],ke);var Pn=Object[_0x48c788(0x299)],Nn=Object['getOwnPropertyDescriptor'],Mn=(_0xfa8bdc,_0x248571,_0x1ddd9f,_0x9df5ab)=>{const _0x53c845=_0x48c788;for(var _0x5c2e43=_0x9df5ab>0x1?void 0x0:_0x9df5ab?Nn(_0x248571,_0x1ddd9f):_0x248571,_0x356c4b=_0xfa8bdc[_0x53c845(0x3c7)]-0x1,_0x4be695;_0x356c4b>=0x0;_0x356c4b--)(_0x4be695=_0xfa8bdc[_0x356c4b])&&(_0x5c2e43=(_0x9df5ab?_0x4be695(_0x248571,_0x1ddd9f,_0x5c2e43):_0x4be695(_0x5c2e43))||_0x5c2e43);return _0x9df5ab&&_0x5c2e43&&Pn(_0x248571,_0x1ddd9f,_0x5c2e43),_0x5c2e43;},Xt=(_0x728457,_0x4e1d08)=>(_0x25f325,_0x1eefd4)=>_0x4e1d08(_0x25f325,_0x1eefd4,_0x728457);let Be=class{constructor(_0x6e782e,_0x4bf51a){const _0x182ceb=_0x48c788;this[_0x182ceb(0x2e1)]=_0x6e782e,this[_0x182ceb(0x231)]=_0x4bf51a;}['transformSelections'](_0x21aae1){const _0xe169da=_0x48c788;var _0xa1b684;const _0x4d1f8c=this[_0xe169da(0x2e1)][_0xe169da(0x4ce)](_0x3953fa),_0x557efb=(_0xa1b684=_0x4d1f8c[_0xe169da(0x2cf)]())!=null?_0xa1b684:[],_0x52977e=_0x557efb==null?void 0x0:_0x557efb['map'](_0x478cbe);if(_0x52977e['length']===0x0)return;const _0x39d0a0=[{'id':_0xe169da(0x4b6),'params':{'unitId':_0x21aae1[_0xe169da(0x2d3)],'actions':null,'textRanges':_0x52977e}}],_0x5be83e=this[_0xe169da(0x231)][_0xe169da(0x313)](_0x21aae1,_0x39d0a0);if(!_0x13e3eb(_0x5be83e))throw _0x5be83e['error'];const _0x3a020d=_0x5be83e[_0xe169da(0x1bc)][0x0][_0xe169da(0x23e)][_0xe169da(0x410)];Array[_0xe169da(0x1c9)](_0x3a020d)&&_0x3a020d['length']&&_0x4d1f8c[_0xe169da(0x275)](_0x3a020d,!0x1);}};Be=Mn([Xt(0x0,_0x1df0bc(_0x1883e3)),Xt(0x1,_0x56e350)],Be);function Ts(_0x4d459b){let _0x577c1a='';for(const _0x4f397f of _0x4d459b){const {startOffset:_0x48edc5,endOffset:_0x210d4b,isActive:_0x540baa}=_0x4f397f;_0x577c1a['length']&&(_0x577c1a+=','),_0x577c1a+=_0x48edc5+':'+_0x210d4b+':'+(_0x540baa?'1':'0');}return _0x577c1a;}function An(_0x273223){const _0x10ca0a=_0x48c788,_0x5b350b=_0x273223[_0x10ca0a(0x2c4)](','),_0x12ed03=[];for(const _0x39014a of _0x5b350b){const [_0xe88d6e,_0x456b3c,_0x4ea418]=_0x39014a[_0x10ca0a(0x2c4)](':');_0x12ed03[_0x10ca0a(0x3ae)]({'startOffset':Number(_0xe88d6e),'endOffset':Number(_0x456b3c),'collapsed':_0xe88d6e===_0x456b3c,'isActive':_0x4ea418==='1'});}return _0x12ed03[_0x10ca0a(0x364)](_0x49ebb6=>_0x49ebb6[_0x10ca0a(0x271)])||(_0x12ed03[0x0][_0x10ca0a(0x271)]=!0x0),_0x12ed03;}class Mt extends _0x4f9c78{constructor(){const _0x5f5a6d=_0x48c788;super(...arguments),l(this,'_collabCursorState$',new _0xac9643(null)),l(this,_0x5f5a6d(0x343),this[_0x5f5a6d(0x22d)]['asObservable']());}[_0x48c788(0x4d5)](_0x3ebd27){const _0x12b469=_0x48c788,{unitID:_0x2cb147,memberID:_0x464c15,textRanges:_0x1e3ff9}=_0x3ebd27,_0x131c48=Ts(_0x1e3ff9),_0x57c800={'unitID':_0x2cb147,'memberID':_0x464c15,'selection':_0x131c48};this[_0x12b469(0x22d)][_0x12b469(0x325)](_0x57c800);}}var yn=Object[_0x48c788(0x299)],Un=Object[_0x48c788(0x2bd)],Ln=(_0xf0633c,_0x4847de,_0x5d477e,_0x28d8fe)=>{for(var _0x1c81e0=_0x28d8fe>0x1?void 0x0:_0x28d8fe?Un(_0x4847de,_0x5d477e):_0x4847de,_0x223eb9=_0xf0633c['length']-0x1,_0x4d3e33;_0x223eb9>=0x0;_0x223eb9--)(_0x4d3e33=_0xf0633c[_0x223eb9])&&(_0x1c81e0=(_0x28d8fe?_0x4d3e33(_0x4847de,_0x5d477e,_0x1c81e0):_0x4d3e33(_0x1c81e0))||_0x1c81e0);return _0x28d8fe&&_0x1c81e0&&yn(_0x4847de,_0x5d477e,_0x1c81e0),_0x1c81e0;},Jt=(_0x3dd968,_0x389f5b)=>(_0x4d4608,_0x46d9cd)=>_0x389f5b(_0x4d4608,_0x46d9cd,_0x3dd968);let Ve=class{constructor(_0x2a5363,_0x4ad852){const _0x470500=_0x48c788;this['_injector']=_0x2a5363,this[_0x470500(0x231)]=_0x4ad852;}[_0x48c788(0x4a4)](_0x3322f2){const _0x49f720=_0x48c788;var _0x252ac3,_0x251192,_0x174cb4,_0x5f2e40;const _0x540fda=this[_0x49f720(0x2e1)]['get'](_0x241ac5),{pluginName:_0x19fc63,unitId:_0x5451d4,sheetId:_0x557de4}=_0x540fda[_0x49f720(0x342)]()||{},_0x1752df=(_0x252ac3=_0x540fda[_0x49f720(0x2cf)]())!=null?_0x252ac3:[];if(_0x1752df[_0x49f720(0x3c7)]===0x0||!_0x19fc63||!_0x5451d4||!_0x557de4)return;const _0x3db177=[{'id':_0x576668['id'],'params':{'unitId':_0x5451d4,'subUnitId':_0x557de4,'pluginName':_0x19fc63,'selections':_0x41ebb1[_0x49f720(0x3ba)](_0x1752df)}}],_0x4cf851=this[_0x49f720(0x231)][_0x49f720(0x313)](_0x3322f2,_0x3db177);if(!_0x13e3eb(_0x4cf851))throw _0x4cf851[_0x49f720(0x1b3)];const _0x183f3b=(_0x5f2e40=(_0x174cb4=(_0x251192=_0x4cf851['m2Prime'][0x0])==null?void 0x0:_0x251192['params'])==null?void 0x0:_0x174cb4['selections'])!=null?_0x5f2e40:_0x1752df;Array[_0x49f720(0x1c9)](_0x183f3b)&&_0x183f3b['length']&&this[_0x49f720(0x2e1)]['get'](_0x26b7b1)[_0x49f720(0x2df)](_0x576668['id'],{'unitId':_0x5451d4,'subUnitId':_0x557de4,'pluginName':_0x19fc63,'selections':_0x183f3b});}};Ve=Ln([Jt(0x0,_0x1df0bc(_0x1883e3)),Jt(0x1,_0x56e350)],Ve);const $n=new Set([_0x183395['id']]);function jn(_0x35d324,_0x425b1a,_0xdd05d0,_0x229a15,_0xd5a8bb){const _0xdc3185=_0x48c788;var _0xb7504a,_0x5b208e,_0x4526bc,_0x13dec5;const _0x1c3075=[];for(const _0x3e2091 of _0x35d324)if($n['has'](_0x3e2091['id'])){if(_0x1c3075[_0xdc3185(0x3c7)]>0x0)break;_0x1c3075[_0xdc3185(0x3ae)](_0x3e2091);break;}else _0x1c3075['push'](_0x3e2091);const _0x4cba91=(_0x5b208e=(_0xb7504a=_0xd5a8bb['getCurrentUser']())==null?void 0x0:_0xb7504a[_0xdc3185(0x473)])!=null?_0x5b208e:_0xdc3185(0x228),_0x490655=(_0x13dec5=(_0x4526bc=_0xd5a8bb[_0xdc3185(0x310)]())==null?void 0x0:_0x4526bc[_0xdc3185(0x260)])!=null?_0x13dec5:_0xdc3185(0x228);return{'changeset':{'unitID':_0x425b1a,'type':_0x501378(_0xdd05d0['getUnitType'](_0x425b1a)),'baseRev':_0x229a15[_0xdc3185(0x4b1)](_0x425b1a),'revision':0x0,'userID':_0x4cba91,'memberID':_0x490655,'mutations':_0x1c3075},'pendingMutations':_0x35d324['slice'](_0x1c3075[_0xdc3185(0x3c7)])};}function Hn(_0x3c1e43,_0x1141d6,_0x374fdc,_0x319f93,_0x35b27e){const _0x2ff7c3=_0x48c788;var _0x33336f,_0x507873,_0x25ebb6,_0x22f6a3;const _0x1dbf57=[_0x3c1e43['reduce']((_0x2417f3,_0x2e1a46)=>{const _0x14a827=_0x1999;var _0x466e14;const {id:_0x193547}=_0x2417f3,{id:_0xa66063,type:_0x218504}=_0x2e1a46,_0x357a47=(_0x466e14=_0x2417f3['params'])!=null?_0x466e14:{'actions':null},_0x9a5dcf=_0x2e1a46[_0x14a827(0x23e)];if(_0x193547&&_0x193547!==_0xa66063)throw new Error(_0x14a827(0x361)+_0x193547+_0x14a827(0x1da)+_0xa66063+'.');return{..._0x2417f3,'id':_0xa66063,'type':_0x218504,'params':{'unitId':_0x9a5dcf['unitId'],'textRanges':_0x9a5dcf[_0x14a827(0x410)],'actions':_0x44383b['compose'](_0x357a47[_0x14a827(0x25e)],_0x9a5dcf['actions'])}};},{})],_0x182cea=(_0x507873=(_0x33336f=_0x35b27e[_0x2ff7c3(0x310)]())==null?void 0x0:_0x33336f[_0x2ff7c3(0x473)])!=null?_0x507873:'unknown',_0xdaecef=(_0x22f6a3=(_0x25ebb6=_0x35b27e['getCurrentUser']())==null?void 0x0:_0x25ebb6[_0x2ff7c3(0x260)])!=null?_0x22f6a3:_0x2ff7c3(0x228);return{'changeset':{'unitID':_0x1141d6,'type':_0x501378(_0x374fdc[_0x2ff7c3(0x304)](_0x1141d6)),'baseRev':_0x319f93['getCurrentRevForDocument'](_0x1141d6),'revision':0x0,'userID':_0x182cea,'memberID':_0xdaecef,'mutations':_0x1dbf57},'pendingMutations':[]};}var xn=Object['defineProperty'],Fn=Object[_0x48c788(0x2bd)],ne=(_0xcd5b4,_0x13fa91,_0x5230f9,_0x5f37bb)=>{const _0x420c5f=_0x48c788;for(var _0x39b2cf=_0x5f37bb>0x1?void 0x0:_0x5f37bb?Fn(_0x13fa91,_0x5230f9):_0x13fa91,_0x22cf68=_0xcd5b4[_0x420c5f(0x3c7)]-0x1,_0x18edbf;_0x22cf68>=0x0;_0x22cf68--)(_0x18edbf=_0xcd5b4[_0x22cf68])&&(_0x39b2cf=(_0x5f37bb?_0x18edbf(_0x13fa91,_0x5230f9,_0x39b2cf):_0x18edbf(_0x39b2cf))||_0x39b2cf);return _0x5f37bb&&_0x39b2cf&&xn(_0x13fa91,_0x5230f9,_0x39b2cf),_0x39b2cf;},g=(_0x1f2511,_0x1d1104)=>(_0x1802c5,_0x2fe8a5)=>_0x1d1104(_0x1802c5,_0x2fe8a5,_0x1f2511),P=(_0x273d1f=>(_0x273d1f[_0x48c788(0x43a)]=_0x48c788(0x319),_0x273d1f[_0x48c788(0x21f)]='synced',_0x273d1f[_0x48c788(0x345)]=_0x48c788(0x2f5),_0x273d1f[_0x48c788(0x27e)]=_0x48c788(0x2ef),_0x273d1f[_0x48c788(0x45a)]='awaiting_with_pending',_0x273d1f[_0x48c788(0x29a)]=_0x48c788(0x409),_0x273d1f[_0x48c788(0x2ec)]=_0x48c788(0x3a2),_0x273d1f[_0x48c788(0x214)]=_0x48c788(0x25d),_0x273d1f))(P||{});class re{constructor(_0x2a9fc3,_0x13fcd4,_0x4447ae,_0x2bc9b5,_0x16d80b,_0x2bf6d4,_0x114242,_0x588b42,_0x5a68a7){const _0x455822=_0x48c788;l(this,'_awaitingChangeset',null),l(this,_0x455822(0x2cb),[]),(this['unitID']=_0x2a9fc3,this['type']=_0x13fcd4,this[_0x455822(0x43f)]=_0x16d80b,this[_0x455822(0x1e9)]=_0x2bf6d4,this[_0x455822(0x3b7)]=_0x114242,this[_0x455822(0x3f3)]=_0x588b42,this['_localCacheService']=_0x5a68a7,this[_0x455822(0x4ca)]=_0x4447ae,this[_0x455822(0x2cb)]=_0x2bc9b5);}['_checkMissing'](_0x55c252){const _0x351a5a=_0x48c788,_0x5a037f=this[_0x351a5a(0x3f3)]['getCurrentRevForDocument'](this[_0x351a5a(0x2d3)]);return _0x55c252[_0x351a5a(0x480)]>_0x5a037f+0x1?(this['_handler'][_0x351a5a(0x466)]({'from':_0x5a037f,'to':_0x55c252[_0x351a5a(0x480)]-0x1}),!0x0):!0x1;}[_0x48c788(0x363)](_0x24c5e8){const _0x19373d=_0x48c788;this['_undoRedoService'][_0x19373d(0x1d6)](this[_0x19373d(0x2d3)],_0x24c5e8);}['_transformSelections'](_0x8b5b58){const _0x1132d4=_0x48c788;var _0x3ad08c,_0x113568;(_0x113568=(_0x3ad08c=this['_handler'])[_0x1132d4(0x320)])==null||_0x113568['call'](_0x3ad08c,_0x8b5b58);}[_0x48c788(0x35e)](_0x5028e4){var _0x17516c,_0x507edd;return(_0x507edd=(_0x17516c=this['_handler'])['onTransformIME'])==null?void 0x0:_0x507edd['call'](_0x17516c,_0x5028e4);}['_transformRemoteChangesetByIMECache'](_0x5a65c0){const _0x4feefd=_0x48c788;var _0x2e64e1,_0x26c978,_0x463c5a;return(_0x463c5a=(_0x26c978=(_0x2e64e1=this[_0x4feefd(0x43f)])[_0x4feefd(0x2b9)])==null?void 0x0:_0x26c978[_0x4feefd(0x413)](_0x2e64e1,_0x5a65c0))!=null?_0x463c5a:_0x5a65c0;}[_0x48c788(0x1e2)](_0x20b6b7){const _0x414d90=_0x48c788;var _0x28873d,_0x35c99f;if(this[_0x414d90(0x45b)]===H[_0x414d90(0x4d4)]){const {unitID:_0x1a7a8b,mutations:_0x2299e3,memberID:_0x2692f8}=_0x20b6b7,_0x2448ee=_0x2299e3[0x0]['params']['textRanges'];Array[_0x414d90(0x1c9)](_0x2448ee)&&_0x2448ee[_0x414d90(0x3c7)]>0x0&&((_0x35c99f=(_0x28873d=this[_0x414d90(0x43f)])[_0x414d90(0x1ba)])==null||_0x35c99f[_0x414d90(0x413)](_0x28873d,{'unitID':_0x1a7a8b,'memberID':_0x2692f8,'textRanges':_0x2448ee}));}}[_0x48c788(0x4b3)](){const _0x572a95=_0x48c788;this['_localCacheService']['updateOfflineData'](this[_0x572a95(0x2d3)],this['type'],this[_0x572a95(0x4ca)],this[_0x572a95(0x2cb)]);}[_0x48c788(0x2bf)](){const _0x450183=_0x48c788;return this[_0x450183(0x3f3)][_0x450183(0x4b1)](this[_0x450183(0x2d3)]);}[_0x48c788(0x42a)](){const _0xac35f9=_0x48c788;this[_0xac35f9(0x3f3)]['incrementRevForDocument'](this[_0xac35f9(0x2d3)]);}[_0x48c788(0x1d3)](_0x5cd203){const _0x5ba5f7=_0x48c788;var _0x14fb1a;const _0x1dd5f7=this[_0x5ba5f7(0x2d1)](_0x5cd203),_0x5625ad=_0x196e3d(_0x1dd5f7[_0x5ba5f7(0x3b5)],this['_commandService'],{'fromCollab':!0x0});if(!_0x5625ad[_0x5ba5f7(0x2eb)])throw _0x5625ad[_0x5ba5f7(0x1b3)]instanceof Error?_0x5625ad[_0x5ba5f7(0x1b3)]:new Error((_0x14fb1a=_0x5625ad[_0x5ba5f7(0x1b3)])!=null?_0x14fb1a:_0x5ba5f7(0x3b9));this[_0x5ba5f7(0x35e)](_0x1dd5f7),this[_0x5ba5f7(0x363)](_0x5cd203),this[_0x5ba5f7(0x40a)](_0x1dd5f7),this[_0x5ba5f7(0x1e2)](_0x1dd5f7),this[_0x5ba5f7(0x42a)]();}}let Te=class extends re{constructor(_0x4e87cf,_0x33e040,_0x306dc5,_0x59ef18,_0x38554d,_0x5aa3ba,_0x7a221d,_0x3b5c4d,_0x4d92ba){const _0x582fba=_0x48c788;super(_0x4e87cf,_0x33e040,null,[],_0x306dc5,_0x3b5c4d,_0x7a221d,_0x59ef18,_0x38554d),l(this,_0x582fba(0x4c6),_0x582fba(0x293)),(this['_injector']=_0x5aa3ba,this[_0x582fba(0x2ad)]=_0x4d92ba);}[_0x48c788(0x2d0)](_0x8e679c){const _0x5f4c4f=_0x48c788,_0x5a0acb=this['_injector']['createInstance'](B,this[_0x5f4c4f(0x2d3)],this[_0x5f4c4f(0x45b)],[_0x8e679c],this[_0x5f4c4f(0x43f)]);return _0x5a0acb[_0x5f4c4f(0x3af)](),_0x5a0acb[_0x5f4c4f(0x4b3)](),_0x5a0acb;}[_0x48c788(0x32e)](_0x1d1cdc){const _0x501227=_0x48c788;if(this[_0x501227(0x2e4)](_0x1d1cdc))return this[_0x501227(0x2e1)][_0x501227(0x3a1)](W,this[_0x501227(0x2d3)],this[_0x501227(0x45b)],null,[],null,[_0x1d1cdc],this[_0x501227(0x43f)]);try{return this[_0x501227(0x1d3)](_0x1d1cdc),this;}catch(_0x34697f){return this[_0x501227(0x2ad)][_0x501227(0x1b3)](_0x501227(0x349),_0x34697f),this;}}[_0x48c788(0x2ce)](){const _0x2afa00=_0x48c788;throw new Error(_0x2afa00(0x472));}[_0x48c788(0x21d)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x48c788(0x24d)](){const _0x292129=_0x48c788;return this[_0x292129(0x2e1)][_0x292129(0x3a1)](X,this[_0x292129(0x2d3)],this[_0x292129(0x45b)],null,[],this[_0x292129(0x43f)]);}[_0x48c788(0x3bf)](){return this;}[_0x48c788(0x20b)](){const _0x58ca36=_0x48c788;throw new Error(_0x58ca36(0x4c8));}};Te=ne([g(0x3,_0x1df0bc(_0x2426c9)),g(0x4,_0x1df0bc(D)),g(0x5,_0x1df0bc(_0x1883e3)),g(0x6,_0x3b301b),g(0x7,_0x26b7b1),g(0x8,_0xcf8387)],Te);let B=class extends re{constructor(_0x27c8bb,_0x2d2a28,_0x385aec,_0x5507c4,_0x24ed55,_0xd3d92b,_0x434ea8,_0x564b99,_0x31ceae,_0x4c5ae8,_0x11577a,_0x150f45,_0x564c4f,_0x29e129){const _0x1782f7=_0x48c788;super(_0x27c8bb,_0x2d2a28,null,_0x385aec,_0x5507c4,_0x4c5ae8,_0x29e129,_0xd3d92b,_0x434ea8),l(this,'status','pending'),l(this,_0x1782f7(0x2af),null),l(this,_0x1782f7(0x334),null),(this[_0x1782f7(0x2e1)]=_0x24ed55,this[_0x1782f7(0x28e)]=_0x564b99,this[_0x1782f7(0x2ad)]=_0x31ceae,this['_configService']=_0x11577a,this[_0x1782f7(0x231)]=_0x150f45,this[_0x1782f7(0x38c)]=_0x564c4f);}[_0x48c788(0x2d0)](_0x28ce2c){const _0x6d1723=_0x48c788;return this[_0x6d1723(0x2cb)][_0x6d1723(0x3ae)](_0x28ce2c),this[_0x6d1723(0x4b3)](),this;}['onRemoteChangeset'](_0x385151){const _0x231e13=_0x48c788;if(this[_0x231e13(0x2e4)](_0x385151))return this['_clearScheduledTask'](),this['_injector']['createInstance'](W,this['unitID'],this[_0x231e13(0x45b)],null,this[_0x231e13(0x2cb)],null,[_0x385151],this[_0x231e13(0x43f)]);try{const _0x30aa0d=this[_0x231e13(0x231)]['transformMutationsWithChangeset'](_0x385151,this['_pendingMutations']);if(_0x13e3eb(_0x30aa0d)){const {c1Prime:_0x2d1461,m2Prime:_0x364c9f}=_0x30aa0d;this[_0x231e13(0x1d3)](_0x2d1461);const _0x21e323=this['_injector'][_0x231e13(0x3a1)](B,this[_0x231e13(0x2d3)],this[_0x231e13(0x45b)],_0x364c9f,this['_handler']);return this[_0x231e13(0x2b8)](),_0x21e323[_0x231e13(0x3af)](this[_0x231e13(0x2af)]?Math[_0x231e13(0x249)](0x0,new Date()[_0x231e13(0x372)]()-this[_0x231e13(0x2af)]):this['_getSendChangesetTimeout']()),_0x21e323;}throw _0x30aa0d[_0x231e13(0x1b3)];}catch(_0x32608f){return this[_0x231e13(0x2ad)][_0x231e13(0x1b3)](_0x32608f),this['_onConflict'](!0x1);}}[_0x48c788(0x2ce)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x48c788(0x21d)](){const _0x98eab8=_0x48c788;throw new Error(_0x98eab8(0x42c));}[_0x48c788(0x24d)](){const _0x343171=_0x48c788;return this[_0x343171(0x2b8)](),this[_0x343171(0x2e1)][_0x343171(0x3a1)](X,this['unitID'],this[_0x343171(0x45b)],null,this['_pendingMutations'],this['_handler']);}[_0x48c788(0x3bf)](){return this;}[_0x48c788(0x3af)](_0x237eca){const _0x3a3710=_0x48c788;_0x237eca=_0x237eca!=null?_0x237eca:this['_getSendChangesetTimeout'](),this[_0x3a3710(0x2af)]=new Date()[_0x3a3710(0x372)](),this['_sendingTimer']=setTimeout(()=>{const _0x2ed838=_0x3a3710;this[_0x2ed838(0x2b8)]();let _0x38ae12=null;switch(this[_0x2ed838(0x45b)]){case H['UNIVER_SHEET']:{_0x38ae12=jn(this[_0x2ed838(0x2cb)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x2ed838(0x28e)]);break;}case H[_0x2ed838(0x4d4)]:{_0x38ae12=Hn(this['_pendingMutations'],this[_0x2ed838(0x2d3)],this['_univerInstanceService'],this['_revisionService'],this[_0x2ed838(0x28e)]);break;}default:throw new Error(_0x2ed838(0x455)+this[_0x2ed838(0x45b)]+_0x2ed838(0x2c9));}const {changeset:_0x88a6b9,pendingMutations:_0x3f0798}=_0x38ae12;this[_0x2ed838(0x43f)][_0x2ed838(0x445)](_0x88a6b9);const _0x7cb593=_0x3f0798[_0x2ed838(0x3c7)]?this[_0x2ed838(0x2e1)][_0x2ed838(0x3a1)](V,this[_0x2ed838(0x2d3)],this['type'],_0x88a6b9,_0x3f0798,this[_0x2ed838(0x43f)]):this['_injector'][_0x2ed838(0x3a1)](K,this[_0x2ed838(0x2d3)],this['type'],_0x88a6b9,this['_handler']);_0x7cb593[_0x2ed838(0x4b3)](),this[_0x2ed838(0x43f)][_0x2ed838(0x4d6)](this,_0x7cb593);},_0x237eca);}['_getSendChangesetTimeout'](){const _0x27ef74=_0x48c788;var _0x8b3bae;return(_0x8b3bae=this[_0x27ef74(0x35d)][_0x27ef74(0x2d9)](Ki))!=null?_0x8b3bae:Xi;}[_0x48c788(0x20b)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x48c788(0x2b8)](){const _0x39bce8=_0x48c788;this[_0x39bce8(0x334)]!=null&&(clearTimeout(this[_0x39bce8(0x334)]),this[_0x39bce8(0x334)]=null);}[_0x48c788(0x487)](_0xeb304){const _0x2a2817=_0x48c788;return this[_0x2a2817(0x2b8)](),this[_0x2a2817(0x2e1)][_0x2a2817(0x3a1)](te,this['unitID'],this[_0x2a2817(0x45b)],null,this[_0x2a2817(0x2cb)],this[_0x2a2817(0x43f)],_0xeb304);}};B=ne([g(0x4,_0x1df0bc(_0x1883e3)),g(0x5,_0x1df0bc(_0x2426c9)),g(0x6,_0x1df0bc(D)),g(0x7,_0x1df0bc(ee)),g(0x8,_0xcf8387),g(0x9,_0x26b7b1),g(0xa,_0x475c15),g(0xb,_0x56e350),g(0xc,_0x5db99b),g(0xd,_0x3b301b)],B);let K=class extends re{constructor(_0x19b606,_0xf21c04,_0xb65cba,_0x5633b6,_0x3d9c0b,_0x49c8f0,_0x796222,_0x4f3d9d,_0x4bc664,_0x264546,_0x2ec5d5){const _0x5ded68=_0x48c788;super(_0x19b606,_0xf21c04,_0xb65cba,[],_0x5633b6,_0x4f3d9d,_0x2ec5d5,_0x49c8f0,_0x796222),l(this,'status',_0x5ded68(0x2ef)),(this[_0x5ded68(0x2e1)]=_0x3d9c0b,this['_logService']=_0x4bc664,this['_transformService']=_0x264546);}[_0x48c788(0x2d0)](_0x4df284){const _0x4b9da0=_0x48c788,_0x118160=this['_injector']['createInstance'](V,this['unitID'],this[_0x4b9da0(0x45b)],this[_0x4b9da0(0x4ca)],[_0x4df284],this['_handler']);return _0x118160[_0x4b9da0(0x4b3)](),_0x118160;}[_0x48c788(0x32e)](_0x38ccf6){const _0x24c288=_0x48c788;if(this[_0x24c288(0x2e4)](_0x38ccf6))return this['_injector'][_0x24c288(0x3a1)](W,this[_0x24c288(0x2d3)],this[_0x24c288(0x45b)],this[_0x24c288(0x4ca)],[],null,[_0x38ccf6],this['_handler']);try{const _0x19f154=this['_transformService'][_0x24c288(0x3e3)]([_0x38ccf6],[this['_awaitingChangeset']],!0x1);if(_0x4a3135(_0x19f154)){const {c1Prime:_0x5edf5b,c2Prime:_0x4e3833}=_0x19f154;this[_0x24c288(0x1d3)](_0x5edf5b[0x0]),_0x4e3833[0x0][_0x24c288(0x391)]=this[_0x24c288(0x2bf)]();const _0x1612cf=this[_0x24c288(0x2e1)][_0x24c288(0x3a1)](K,this['unitID'],this[_0x24c288(0x45b)],_0x4e3833[0x0],this[_0x24c288(0x43f)]);return _0x1612cf[_0x24c288(0x4b3)](),_0x1612cf;}return this[_0x24c288(0x487)](!0x1);}catch(_0x207f73){return this['_logService'][_0x24c288(0x1b3)](_0x207f73),this[_0x24c288(0x487)](!0x1);}}[_0x48c788(0x2ce)](_0x569ed8){const _0x1503c2=_0x48c788,_0x400534=this[_0x1503c2(0x3f3)][_0x1503c2(0x4b1)](this['unitID']);if(_0x569ed8[_0x1503c2(0x480)]<_0x400534-0x1)return this;if(this[_0x1503c2(0x2e4)](_0x569ed8))return this[_0x1503c2(0x2e1)]['createInstance'](W,this[_0x1503c2(0x2d3)],this['type'],null,[],this[_0x1503c2(0x4ca)],[],this[_0x1503c2(0x43f)]);this[_0x1503c2(0x42a)]();const _0x572dee=this[_0x1503c2(0x2e1)][_0x1503c2(0x3a1)](Te,this[_0x1503c2(0x2d3)],this[_0x1503c2(0x45b)],this[_0x1503c2(0x43f)]);return _0x572dee['_updateLocalCache'](),_0x572dee;}[_0x48c788(0x21d)](_0x89b72d){const _0x5721a4=_0x48c788;return this[_0x5721a4(0x487)](!!(_0x89b72d!=null&&_0x89b72d['isPermissionRej']));}[_0x48c788(0x24d)](){const _0x58b164=_0x48c788;return this['_injector'][_0x58b164(0x3a1)](X,this['unitID'],this[_0x58b164(0x45b)],this[_0x58b164(0x4ca)],[],this[_0x58b164(0x43f)]);}['toggleOnline'](){return this;}[_0x48c788(0x20b)](){const _0x4dc279=_0x48c788;this[_0x4dc279(0x43f)][_0x4dc279(0x445)](this[_0x4dc279(0x4ca)]);}[_0x48c788(0x487)](_0x110f8a){const _0x5ca5b9=_0x48c788;return this[_0x5ca5b9(0x2e1)]['createInstance'](te,this['unitID'],this[_0x5ca5b9(0x45b)],this['_awaitingChangeset'],[],this[_0x5ca5b9(0x43f)],_0x110f8a);}};K=ne([g(0x4,_0x1df0bc(_0x1883e3)),g(0x5,_0x1df0bc(_0x2426c9)),g(0x6,_0x1df0bc(D)),g(0x7,_0x26b7b1),g(0x8,_0xcf8387),g(0x9,_0x56e350),g(0xa,_0x3b301b)],K);let V=class extends re{constructor(_0x4d3fc6,_0x2bc631,_0xfe23aa,_0x91ef69,_0xe95aa1,_0x5cbde3,_0x4684b6,_0x43c72c,_0xadfa43,_0x5984a9,_0xe6b803,_0x389a30){const _0x45b964=_0x48c788;super(_0x4d3fc6,_0x2bc631,_0xfe23aa,_0x91ef69,_0xe95aa1,_0xadfa43,_0x389a30,_0x4684b6,_0x43c72c),l(this,_0x45b964(0x4c6),'awaiting_with_pending'),(this['_injector']=_0x5cbde3,this['_logService']=_0x5984a9,this[_0x45b964(0x231)]=_0xe6b803);}[_0x48c788(0x2d0)](_0x1f60ab){const _0x2381bf=_0x48c788;return this['_pendingMutations'][_0x2381bf(0x3ae)](_0x1f60ab),this;}[_0x48c788(0x32e)](_0x1a0a9b){const _0x4ec2ee=_0x48c788;if(this[_0x4ec2ee(0x2e4)](_0x1a0a9b))return this[_0x4ec2ee(0x2e1)][_0x4ec2ee(0x3a1)](W,this[_0x4ec2ee(0x2d3)],this[_0x4ec2ee(0x45b)],this[_0x4ec2ee(0x4ca)],this[_0x4ec2ee(0x2cb)],null,[_0x1a0a9b],this[_0x4ec2ee(0x43f)]);try{const _0x1b79b3=this[_0x4ec2ee(0x231)][_0x4ec2ee(0x3e3)]([_0x1a0a9b],[this[_0x4ec2ee(0x4ca)]],!0x1);if(_0x4a3135(_0x1b79b3)){const {c1Prime:_0x5b5233,c2Prime:_0x19540e}=_0x1b79b3,_0x559f1b=this['_transformService'][_0x4ec2ee(0x313)](_0x5b5233[0x0],this['_pendingMutations']);if(_0x13e3eb(_0x559f1b)){const {c1Prime:_0x3a7c9c,m2Prime:_0x57fcee}=_0x559f1b;return this['_executeRemoteChangeset'](_0x3a7c9c),_0x19540e[0x0][_0x4ec2ee(0x391)]=this[_0x4ec2ee(0x2bf)](),this[_0x4ec2ee(0x2e1)][_0x4ec2ee(0x3a1)](V,this[_0x4ec2ee(0x2d3)],this[_0x4ec2ee(0x45b)],_0x19540e[0x0],_0x57fcee,this['_handler']);}throw _0x559f1b[_0x4ec2ee(0x1b3)];}throw _0x1b79b3[_0x4ec2ee(0x1b3)];}catch(_0x32a9e2){return this['_logService']['error'](_0x32a9e2),this[_0x4ec2ee(0x487)](!0x1);}}[_0x48c788(0x2ce)](_0x54f33f){const _0x48bb7d=_0x48c788;if(this[_0x48bb7d(0x2e4)](_0x54f33f))return this['_injector'][_0x48bb7d(0x3a1)](W,this[_0x48bb7d(0x2d3)],this['type'],null,this[_0x48bb7d(0x2cb)],this[_0x48bb7d(0x4ca)],[],this[_0x48bb7d(0x43f)]);this[_0x48bb7d(0x42a)]();const _0x408532=this[_0x48bb7d(0x2e1)][_0x48bb7d(0x3a1)](B,this['unitID'],this['type'],this[_0x48bb7d(0x2cb)],this[_0x48bb7d(0x43f)]);return _0x408532[_0x48bb7d(0x3af)](),_0x408532[_0x48bb7d(0x4b3)](),_0x408532;}[_0x48c788(0x21d)](_0x681803){const _0x3df7ab=_0x48c788;return this[_0x3df7ab(0x487)](!!(_0x681803!=null&&_0x681803['isPermissionRej']));}[_0x48c788(0x24d)](){const _0x2bb618=_0x48c788;return this[_0x2bb618(0x2e1)][_0x2bb618(0x3a1)](X,this[_0x2bb618(0x2d3)],this[_0x2bb618(0x45b)],this[_0x2bb618(0x4ca)],this[_0x2bb618(0x2cb)],this['_handler']);}[_0x48c788(0x3bf)](){return this;}['resend'](){const _0x552173=_0x48c788;this['_handler'][_0x552173(0x445)](this[_0x552173(0x4ca)]);}[_0x48c788(0x487)](_0x28e95f){const _0x212d43=_0x48c788;return this[_0x212d43(0x2e1)][_0x212d43(0x3a1)](te,this['unitID'],this['type'],null,this[_0x212d43(0x2cb)],this[_0x212d43(0x43f)],_0x28e95f);}};V=ne([g(0x5,_0x1df0bc(_0x1883e3)),g(0x6,_0x1df0bc(_0x2426c9)),g(0x7,_0x1df0bc(D)),g(0x8,_0x26b7b1),g(0x9,_0xcf8387),g(0xa,_0x56e350),g(0xb,_0x3b301b)],V);let te=class extends re{constructor(_0x5e3481,_0x4ee307,_0x5b59b5,_0x2bb1c1,_0x21379e,_0x31b492=!0x1,_0x4bf28e,_0x41b2a6,_0x1d91e1,_0x305e9c,_0x1b75c4,_0x53a4b6,_0x11fbd6){const _0x59f349=_0x48c788;super(_0x5e3481,_0x4ee307,_0x5b59b5,_0x2bb1c1,_0x21379e,_0x41b2a6,_0x1d91e1,_0x1b75c4,_0x305e9c),l(this,_0x59f349(0x4c6),'conflict'),(this[_0x59f349(0x32c)]=_0x31b492,this[_0x59f349(0x20c)]=_0x4bf28e,this[_0x59f349(0x314)]=_0x53a4b6,this[_0x59f349(0x39f)]=_0x11fbd6,this[_0x59f349(0x380)](),this[_0x59f349(0x1ff)](),this[_0x59f349(0x1d4)]());}[_0x48c788(0x2d0)](){return this;}[_0x48c788(0x32e)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x48c788(0x24d)](){return this;}['toggleOnline'](){return this;}[_0x48c788(0x20b)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x48c788(0x1ff)](){const _0x20ac0d=_0x48c788;this['_localCacheService'][_0x20ac0d(0x27d)](this[_0x20ac0d(0x2d3)],this[_0x20ac0d(0x45b)],null,[]);}[_0x48c788(0x380)](){const _0x146bb7=_0x48c788;this[_0x146bb7(0x32c)]?this['_notificationService'][_0x146bb7(0x4d1)]({'title':this['_localeService']['t'](_0x146bb7(0x498)),'content':this[_0x146bb7(0x314)]['t'](_0x146bb7(0x2a1)),'type':_0x146bb7(0x1b3),'duration':0x0}):this[_0x146bb7(0x39f)][_0x146bb7(0x4d1)]({'title':this['_localeService']['t'](_0x146bb7(0x383)),'content':this[_0x146bb7(0x314)]['t'](_0x146bb7(0x26b)),'type':_0x146bb7(0x1b3),'duration':0x0});}[_0x48c788(0x1d4)](){const _0x4262fa=_0x48c788;this[_0x4262fa(0x20c)][_0x4262fa(0x35b)](new _0x301a89(this[_0x4262fa(0x2d3)])['id'],!0x1);}};te=ne([g(0x6,_0x1df0bc(_0x4a2caa)),g(0x7,_0x26b7b1),g(0x8,_0x3b301b),g(0x9,_0x1df0bc(D)),g(0xa,_0x1df0bc(_0x2426c9)),g(0xb,_0x1df0bc(_0x7ef8c9)),g(0xc,_0x57524d)],te);let X=class extends re{constructor(_0x4d5341,_0x3b9ecb,_0x132442,_0x550d1e,_0x25078b,_0x52a5ef,_0x186e7a,_0x379a86,_0x2b0991,_0x4a603c){const _0x52e98a=_0x48c788;super(_0x4d5341,_0x3b9ecb,_0x132442,_0x550d1e,_0x25078b,_0x2b0991,_0x4a603c,_0x186e7a,_0x379a86),l(this,'status',_0x52e98a(0x25d)),this[_0x52e98a(0x2e1)]=_0x52a5ef;}['appendMutation'](_0x56b18f){const _0x31014f=_0x48c788;return this[_0x31014f(0x2cb)][_0x31014f(0x3ae)](_0x56b18f),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x251cb8){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x48c788(0x2ce)](){const _0x3b138a=_0x48c788;throw new Error(_0x3b138a(0x3d9));}[_0x48c788(0x21d)](){const _0x3c8af7=_0x48c788;throw new Error(_0x3c8af7(0x1e7));}[_0x48c788(0x24d)](){return this;}[_0x48c788(0x3bf)](){const _0x38af53=_0x48c788,{_injector:_0x1b8035,_pendingMutations:_0x111e9b,_awaitingChangeset:_0x29c046,unitID:_0x30b237,_handler:_0x10afc0,type:_0x43ac6e}=this,_0x15d722=Os(_0x1b8035,_0x30b237,_0x43ac6e,_0x29c046,_0x111e9b,_0x10afc0);return _0x15d722 instanceof B?_0x15d722[_0x38af53(0x3af)]():(_0x15d722 instanceof V||_0x15d722 instanceof K)&&_0x15d722[_0x38af53(0x20b)](),_0x15d722;}[_0x48c788(0x20b)](){const _0x700840=_0x48c788;throw new Error(_0x700840(0x290));}};X=ne([g(0x5,_0x1df0bc(_0x1883e3)),g(0x6,_0x1df0bc(_0x2426c9)),g(0x7,_0x1df0bc(D)),g(0x8,_0x26b7b1),g(0x9,_0x3b301b)],X);let W=class extends re{constructor(_0x2642ed,_0x27386b,_0x420c3f,_0x4d98ea,_0x33f261,_0x27b77e,_0x48305b,_0x4c3743,_0x527017,_0x47b696,_0x396c9e,_0x21bb53,_0x57e606,_0x5cc6d6){const _0x326ad7=_0x48c788;super(_0x2642ed,_0x27386b,_0x420c3f,_0x4d98ea,_0x48305b,_0x21bb53,_0x57e606,_0x527017,_0x47b696),l(this,_0x326ad7(0x4c6),_0x326ad7(0x409)),(this['_acknowledgedAwaitingChangeset']=_0x33f261,this[_0x326ad7(0x454)]=_0x27b77e,this['_injector']=_0x4c3743,this[_0x326ad7(0x2ad)]=_0x396c9e,this[_0x326ad7(0x231)]=_0x5cc6d6);}[_0x48c788(0x491)](_0x37ed7f){const _0x3985e5=_0x48c788;try{const _0x23c0e4=[..._0x37ed7f,...this[_0x3985e5(0x454)]],_0x1ab310=[this[_0x3985e5(0x4ca)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x38b076=>!!_0x38b076);let _0x24f03d,_0x35aa9c;if(_0x1ab310[_0x3985e5(0x3c7)]){const _0x26331a=this['_transformService'][_0x3985e5(0x3e3)](_0x23c0e4,_0x1ab310,!0x1);if(!_0x4a3135(_0x26331a))throw _0x26331a['error'];_0x24f03d=_0x26331a[_0x3985e5(0x3a9)],_0x35aa9c=_0x26331a[_0x3985e5(0x1f8)];}else _0x24f03d=_0x23c0e4,_0x35aa9c=[];let _0x1c48d2=this['_pendingMutations'];_0x24f03d['forEach'](_0x24ead7=>{const _0x50948f=_0x3985e5;let _0x5c82df;if(_0x1c48d2[_0x50948f(0x3c7)]){const _0x5ec44a=this[_0x50948f(0x231)]['transformMutationsWithChangeset'](_0x24ead7,_0x1c48d2);if(!_0x13e3eb(_0x5ec44a))throw _0x5ec44a[_0x50948f(0x1b3)];_0x5c82df=_0x5ec44a['c1Prime'],_0x1c48d2=_0x5ec44a[_0x50948f(0x1bc)];}else _0x5c82df=_0x24ead7;this['_executeRemoteChangeset'](_0x5c82df);}),this[_0x3985e5(0x378)]&&this['_incrementRevisionNumber'](),this[_0x3985e5(0x4ca)]&&_0x35aa9c[_0x3985e5(0x3c7)]&&(_0x35aa9c[0x0][_0x3985e5(0x391)]=this[_0x3985e5(0x2bf)]());let _0x162cef;if(this['_awaitingChangeset']&&_0x1c48d2['length']!==0x0)_0x162cef=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](V,this['unitID'],this['type'],_0x35aa9c[0x0],_0x1c48d2,this['_handler']);else{if(this[_0x3985e5(0x4ca)]&&_0x1c48d2['length']===0x0)_0x35aa9c[0x0][_0x3985e5(0x391)]=this['_getCurrentRevision'](),_0x162cef=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](K,this[_0x3985e5(0x2d3)],this[_0x3985e5(0x45b)],_0x35aa9c[0x0],this['_handler']);else{if(_0x1c48d2[_0x3985e5(0x3c7)]!==0x0){const _0x2d89e3=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](B,this[_0x3985e5(0x2d3)],this[_0x3985e5(0x45b)],_0x1c48d2,this[_0x3985e5(0x43f)]);_0x2d89e3['_schedule'](),_0x162cef=_0x2d89e3;}else _0x162cef=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](Te,this['unitID'],this['type'],this[_0x3985e5(0x43f)]);}}return _0x162cef[_0x3985e5(0x4b3)](),_0x162cef;}catch(_0x5827be){return this['_logService'][_0x3985e5(0x1b3)](_0x3985e5(0x29f),_0x3985e5(0x4a3),_0x5827be),this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](te,this['unitID'],this[_0x3985e5(0x45b)],this['_awaitingChangeset'],this[_0x3985e5(0x2cb)],this[_0x3985e5(0x43f)],!0x1);}}[_0x48c788(0x20b)](){const _0x280a04=_0x48c788;throw new Error(_0x280a04(0x1b6));}['appendMutation'](_0x1ce611){const _0x110689=_0x48c788;return this[_0x110689(0x2cb)][_0x110689(0x3ae)](_0x1ce611),this;}[_0x48c788(0x32e)](_0x16f949){const _0x4a4706=_0x48c788;return this[_0x4a4706(0x454)]['push'](_0x16f949),this;}['onRemoteAck'](_0x3c8b50){const _0x574ff4=_0x48c788;if(this[_0x574ff4(0x4ca)])return this[_0x574ff4(0x378)]=this[_0x574ff4(0x4ca)],this[_0x574ff4(0x4ca)]=null,this;throw new Error(_0x574ff4(0x2f8));}['onRemoteRej'](_0x515435){const _0x3d31a6=_0x48c788;return this[_0x3d31a6(0x487)](!!(_0x515435!=null&&_0x515435['isPermissionRej']));}[_0x48c788(0x24d)](){const _0x515a8b=_0x48c788;return this[_0x515a8b(0x2e1)][_0x515a8b(0x3a1)](X,this[_0x515a8b(0x2d3)],this['type'],this['_awaitingChangeset'],this[_0x515a8b(0x2cb)],this[_0x515a8b(0x43f)]);}['toggleOnline'](){return this;}[_0x48c788(0x487)](_0x4b78f2){const _0x5c8eb8=_0x48c788;return this[_0x5c8eb8(0x2e1)][_0x5c8eb8(0x3a1)](te,this['unitID'],this[_0x5c8eb8(0x45b)],this[_0x5c8eb8(0x4ca)],this['_pendingMutations'],this[_0x5c8eb8(0x43f)],_0x4b78f2);}};W=ne([g(0x7,_0x1df0bc(_0x1883e3)),g(0x8,_0x1df0bc(_0x2426c9)),g(0x9,_0x1df0bc(D)),g(0xa,_0xcf8387),g(0xb,_0x26b7b1),g(0xc,_0x3b301b),g(0xd,_0x56e350)],W);function Os(_0xe1e9b8,_0x2f6505,_0x4d0814,_0x597f73,_0x283dd6,_0x4b0181){const _0x3d4f27=_0x48c788;return _0x597f73&&_0x283dd6['length']?_0xe1e9b8[_0x3d4f27(0x3a1)](V,_0x2f6505,_0x4d0814,_0x597f73,_0x283dd6,_0x4b0181):_0x597f73?_0xe1e9b8[_0x3d4f27(0x3a1)](K,_0x2f6505,_0x4d0814,_0x597f73,_0x4b0181):_0x283dd6[_0x3d4f27(0x3c7)]?_0xe1e9b8['createInstance'](B,_0x2f6505,_0x4d0814,_0x283dd6,_0x4b0181):_0xe1e9b8[_0x3d4f27(0x3a1)](Te,_0x2f6505,_0x4d0814,_0x4b0181);}var kn=Object[_0x48c788(0x299)],Bn=Object['getOwnPropertyDescriptor'],Je=(_0x399c07,_0x12591c,_0x4d7d49,_0x360ea4)=>{for(var _0xb5a3da=_0x360ea4>0x1?void 0x0:_0x360ea4?Bn(_0x12591c,_0x4d7d49):_0x12591c,_0x436454=_0x399c07['length']-0x1,_0x4d2bd0;_0x436454>=0x0;_0x436454--)(_0x4d2bd0=_0x399c07[_0x436454])&&(_0xb5a3da=(_0x360ea4?_0x4d2bd0(_0x12591c,_0x4d7d49,_0xb5a3da):_0x4d2bd0(_0xb5a3da))||_0xb5a3da);return _0x360ea4&&_0xb5a3da&&kn(_0x12591c,_0x4d7d49,_0xb5a3da),_0xb5a3da;},S=(_0x375713,_0x56f009)=>(_0x5388cd,_0x176829)=>_0x56f009(_0x5388cd,_0x176829,_0x375713);let Ee=class extends _0x4f9c78{constructor(_0x35b7e1,_0x5a00dd,_0x126804){const _0x272dd3=_0x48c788;super(),l(this,_0x272dd3(0x27f),new Map()),l(this,_0x272dd3(0x4c4),new _0x255156()),(this[_0x272dd3(0x2e1)]=_0x35b7e1,this[_0x272dd3(0x3b6)]=_0x5a00dd,this['_univerInstanceService']=_0x126804,this['_init']());}[_0x48c788(0x46e)](){const _0x12faa3=_0x48c788;super[_0x12faa3(0x46e)](),this[_0x12faa3(0x27f)][_0x12faa3(0x244)](_0x1d3bb3=>_0x1d3bb3[_0x12faa3(0x46e)]()),this['_entities']['clear']();}[_0x48c788(0x1cd)](_0x20b411){const _0x1f2232=_0x48c788;var _0x15961c;return(_0x15961c=this[_0x1f2232(0x27f)]['get'](_0x20b411))!=null?_0x15961c:null;}[_0x48c788(0x36d)](_0x2d7317){const _0x29889c=_0x48c788,_0x432ef6=this[_0x29889c(0x1cd)](_0x2d7317);return _0x432ef6?_0x5aa699(_0x432ef6):this[_0x29889c(0x4c4)]['pipe'](_0x2cc73f(_0x37af90=>_0x37af90[_0x29889c(0x2d3)]===_0x2d7317));}[_0x48c788(0x340)](){const _0x11bab0=_0x48c788;this[_0x11bab0(0x38c)][_0x11bab0(0x3ce)](_0x5b42a8[_0x11bab0(0x29e)])[_0x11bab0(0x3bd)](_0x219692(this['dispose$']),_0x1c5ec9(0x10))[_0x11bab0(0x237)](async _0x35cff3=>{const _0xfb0969=_0x11bab0,_0x5d0fce=_0x35cff3['getUnitId'](),_0x393fee=await this[_0xfb0969(0x495)](_0x5d0fce,H[_0xfb0969(0x29e)]);this[_0xfb0969(0x27f)]['set'](_0x5d0fce,_0x393fee);}),this[_0x11bab0(0x38c)]['getTypeOfUnitAdded$'](_0x5b42a8[_0x11bab0(0x4d4)])['pipe'](_0x219692(this['dispose$']),_0x1c5ec9(0x10))[_0x11bab0(0x3bd)](_0x2cc73f(_0x5cff95=>!_0x5cff95[_0x11bab0(0x451)]()[_0x11bab0(0x458)]('__')))[_0x11bab0(0x237)](async _0x4633f0=>{const _0x5629c9=_0x11bab0,_0x4edd7c=_0x4633f0[_0x5629c9(0x451)](),_0x19988b=await this[_0x5629c9(0x495)](_0x4edd7c,H['UNIVER_DOC']);this[_0x5629c9(0x27f)]['set'](_0x4edd7c,_0x19988b);}),_0x10f2b0(this[_0x11bab0(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8[_0x11bab0(0x29e)]),this[_0x11bab0(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8['UNIVER_DOC']))[_0x11bab0(0x3bd)](_0x219692(this[_0x11bab0(0x4c9)]))['subscribe'](_0x28aa7f=>{const _0x1d4725=_0x11bab0,_0x33b9ea=_0x28aa7f[_0x1d4725(0x451)](),_0x36bf59=this[_0x1d4725(0x27f)][_0x1d4725(0x4ce)](_0x33b9ea);_0x36bf59&&(_0x36bf59['dispose'](),this['_entities']['delete'](_0x33b9ea));});}async['_startCollaboration'](_0x31147c,_0x59c4d0){const _0x4bfecc=_0x48c788,_0x1f70cf=await this[_0x4bfecc(0x3b6)][_0x4bfecc(0x44c)](_0x31147c),_0x455957=this[_0x4bfecc(0x2e1)][_0x4bfecc(0x3a1)](this[_0x4bfecc(0x2ab)](_0x59c4d0),_0x31147c,_0x59c4d0,_0x1f70cf);return await _0x455957[_0x4bfecc(0x400)](),this[_0x4bfecc(0x4c4)][_0x4bfecc(0x325)](_0x455957),_0x455957;}[_0x48c788(0x2ab)](_0x2182a2){const _0x48ccdb=_0x48c788;switch(_0x2182a2){case H[_0x48ccdb(0x4d4)]:return dt;case H[_0x48ccdb(0x29e)]:return ft;default:throw new Error(_0x48ccdb(0x406)+_0x2182a2);}}};Ee=Je([_0x4bcad5(_0xba774d['Starting'],Ee),S(0x0,_0x1df0bc(_0x1883e3)),S(0x1,_0x1df0bc(Re)),S(0x2,_0x5db99b)],Ee);let We=class extends _0x4f9c78{constructor(_0x56d8e2,_0x42c539,_0x33e227,_0x209b39,_0x4e10f4,_0x41792b,_0x413725,_0x380547,_0x3a2de5,_0x339ec0,_0x13ee5f,_0x43b853,_0x4f5996){const _0x299564=_0x48c788;super(),l(this,_0x299564(0x302),new _0xac9643(null)),l(this,'state$',this[_0x299564(0x302)][_0x299564(0x1ec)]()),l(this,'_state'),l(this,_0x299564(0x3e9),!0x1),l(this,_0x299564(0x44b),this['state$']['pipe'](_0x1262f1(_0x2fc5af=>_0x2fc5af?_0x2fc5af[_0x299564(0x4c6)]:P['OFFLINE']),_0x43cd64(0x1))),l(this,_0x299564(0x367),!0x1),l(this,_0x299564(0x32d),[]),(this[_0x299564(0x2d3)]=_0x56d8e2,this[_0x299564(0x201)]=_0x42c539,this[_0x299564(0x2f6)]=_0x33e227,this[_0x299564(0x2e1)]=_0x209b39,this[_0x299564(0x1eb)]=_0x4e10f4,this[_0x299564(0x36a)]=_0x41792b,this[_0x299564(0x314)]=_0x413725,this[_0x299564(0x3f3)]=_0x380547,this[_0x299564(0x2ad)]=_0x3a2de5,this[_0x299564(0x1e9)]=_0x339ec0,this[_0x299564(0x464)]=_0x13ee5f,this['_permissionService']=_0x43b853,this[_0x299564(0x28c)]=_0x4f5996);}get[_0x48c788(0x2a5)](){const _0x397db0=_0x48c788;return this[_0x397db0(0x2c5)];}async[_0x48c788(0x400)](){const _0x284ea8=_0x48c788;if(this[_0x284ea8(0x2a5)])throw new Error(_0x284ea8(0x4ba));await this[_0x284ea8(0x340)]();}['pauseCollaboration'](){const _0x339f02=_0x48c788;return this[_0x339f02(0x3e9)]=!0x0,_0x308092(()=>{const _0x46d411=_0x339f02;this['_collaborationPaused']=!0x1,this[_0x46d411(0x2f1)]();});}[_0x48c788(0x41a)](_0x4be9ec){const _0x59fbe9=_0x48c788;this[_0x59fbe9(0x2c5)]=_0x4be9ec,this['_state$'][_0x59fbe9(0x325)](_0x4be9ec);}async[_0x48c788(0x340)](){const _0x15858f=_0x48c788;var _0x5ac141;return this['_updateState'](await this['_createInitialState']()),this[_0x15858f(0x28c)]&&((_0x5ac141=this['_singleActiveUnitService'])==null||_0x5ac141[_0x15858f(0x1b2)](this[_0x15858f(0x2d3)]),this['disposeWithMe'](_0x308092(this[_0x15858f(0x28c)][_0x15858f(0x36f)](this[_0x15858f(0x2d3)])[_0x15858f(0x237)](_0x545c74=>{const _0x34c780=_0x15858f;this[_0x34c780(0x2ad)][_0x34c780(0x1b0)](_0x34c780(0x3a0),_0x34c780(0x4b0),_0x545c74),_0x545c74===Rs[_0x34c780(0x2cd)]?(this[_0x34c780(0x464)]['show']({'content':this[_0x34c780(0x314)]['t'](_0x34c780(0x2ba)),'type':_0x16b663[_0x34c780(0x39e)]}),this['_permissionService'][_0x34c780(0x35b)](new _0x301a89(this[_0x34c780(0x2d3)])['id'],!0x1)):this[_0x34c780(0x20c)][_0x34c780(0x35b)](new _0x301a89(this['unitID'])['id'],!0x0);})))),this[_0x15858f(0x3e7)](_0x308092(this[_0x15858f(0x2f6)][_0x15858f(0x449)][_0x15858f(0x237)](_0x213591=>{const _0x1f9ac8=_0x15858f;_0x213591===_e['ONLINE']?this[_0x1f9ac8(0x1d1)]():_0x213591===_e[_0x1f9ac8(0x214)]&&this['_toggleOffline']();}))),this['disposeWithMe'](_0x308092(this[_0x15858f(0x2f6)][_0x15858f(0x3d7)][_0x15858f(0x237)](_0x409737=>{const _0xe4bf05=_0x15858f;try{switch(_0x409737[_0xe4bf05(0x420)]){case _0x64674d[_0xe4bf05(0x222)]:{this[_0xe4bf05(0x2a0)](_0x3a5484(_0x409737[_0xe4bf05(0x43e)]));break;}case _0x64674d['CHANGESET_ACK']:{this['_onRemoteACK'](_0x409737[_0xe4bf05(0x43e)]);break;}case _0x64674d[_0xe4bf05(0x440)]:{this[_0xe4bf05(0x26e)]();break;}case _0x64674d[_0xe4bf05(0x393)]:{this[_0xe4bf05(0x261)](_0x409737['data'][_0xe4bf05(0x49d)][_0xe4bf05(0x3e8)](_0x3ba043=>_0x3a5484(_0x3ba043)));break;}case _0x64674d[_0xe4bf05(0x468)]:this[_0xe4bf05(0x26e)]({'isPermissionRej':!0x0});}}catch(_0x2b5520){throw console[_0xe4bf05(0x1b3)]('Error\x20on\x20receiving\x20event',_0x2b5520),_0x2b5520;}}))),this['_state'];}[_0x48c788(0x4c1)](){this['_transitionLocked']=!0x1;}[_0x48c788(0x2e8)](){const _0x10bc7b=_0x48c788;if(this[_0x10bc7b(0x367)])throw new Error(_0x10bc7b(0x29c));this[_0x10bc7b(0x367)]=!0x0;}['_onLocalMutation'](_0x587271){const _0x4a6541=_0x48c788;this[_0x4a6541(0x2e8)](),this[_0x4a6541(0x41a)](this[_0x4a6541(0x2c5)][_0x4a6541(0x2d0)](_0x587271)),this[_0x4a6541(0x4c1)]();}['_onRemoteChangeset'](_0x277916){const _0xa12697=_0x48c788;if(!(_0x277916[_0xa12697(0x480)]<=this[_0xa12697(0x3f3)][_0xa12697(0x4b1)](this['unitID']))){if(this[_0xa12697(0x3e9)]){this[_0xa12697(0x32d)][_0xa12697(0x3ae)](_0x277916);return;}this[_0xa12697(0x2ca)](_0x277916);}}['_exhaustRemoteChangesetQueue'](){const _0x24eb39=_0x48c788;this[_0x24eb39(0x32d)][_0x24eb39(0x244)](_0x4a63ff=>this[_0x24eb39(0x2ca)](_0x4a63ff)),this['_remoteChangesetQueue']=[];}[_0x48c788(0x2ca)](_0x1e834a){const _0x439501=_0x48c788,_0x119558=this[_0x439501(0x36a)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x439501(0x471)][_0x439501(0x238)]()[_0x439501(0x469)])(_0x1e834a[_0x439501(0x3b5)],null)||_0x1e834a[_0x439501(0x3b5)],_0x2be5b9={..._0x1e834a,'mutations':_0x119558};this[_0x439501(0x2e8)](),this[_0x439501(0x41a)](this[_0x439501(0x2c5)][_0x439501(0x32e)](_0x2be5b9)),this['_unlockTransition']();}[_0x48c788(0x33e)](_0x27b52a){const _0x4d5abb=_0x48c788;this[_0x4d5abb(0x2e8)](),this[_0x4d5abb(0x41a)](this[_0x4d5abb(0x2c5)][_0x4d5abb(0x2ce)](_0x27b52a)),this['_unlockTransition']();}[_0x48c788(0x26e)](_0x5d0438){const _0x461700=_0x48c788;this[_0x461700(0x2e8)](),this['_updateState'](this[_0x461700(0x2c5)]['onRemoteRej'](_0x5d0438)),this[_0x461700(0x4c1)]();}[_0x48c788(0x261)](_0x9bc30a){const _0x3307b6=_0x48c788;if(!(this['_state']instanceof W))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4e0dc2=_0x9bc30a[_0x3307b6(0x3e8)](_0x56c346=>{const _0x20f87d=_0x3307b6,_0x27429f=this[_0x20f87d(0x36a)][_0x20f87d(0x471)][_0x20f87d(0x4bb)](this['_compressMutationService']['interceptor'][_0x20f87d(0x238)]()[_0x20f87d(0x469)])(_0x56c346['mutations'],null)||_0x56c346[_0x20f87d(0x3b5)];return{..._0x56c346,'mutations':_0x27429f};});this['_lockTransition'](),this[_0x3307b6(0x41a)](this[_0x3307b6(0x2c5)]['onMissedChangesetFetched'](_0x4e0dc2)),this['_unlockTransition']();}[_0x48c788(0x41e)](){const _0x286250=_0x48c788;this[_0x286250(0x2e8)](),this[_0x286250(0x41a)](this[_0x286250(0x2c5)][_0x286250(0x24d)]()),this[_0x286250(0x4c1)]();}[_0x48c788(0x1d1)](){const _0x346dfd=_0x48c788;this[_0x346dfd(0x2e8)](),this[_0x346dfd(0x41a)](this['_state']['toggleOnline']()),this[_0x346dfd(0x4c1)]();}async[_0x48c788(0x276)](){return new Promise(_0x100451=>{const _0x27af16=_0x1999;this[_0x27af16(0x2f6)][_0x27af16(0x449)]['pipe'](_0x332c11(0x1))[_0x27af16(0x237)](async _0x391327=>{const _0x26cea3=_0x27af16;_0x100451(await this[_0x26cea3(0x419)](_0x391327===_e[_0x26cea3(0x431)]));});});}[_0x48c788(0x2a6)](){const _0x4761df=this['unitID'];return{'onStateChange':(_0x61b3f3,_0x4b5acf)=>{const _0x4385ab=_0x1999;if(_0x61b3f3!==this[_0x4385ab(0x2c5)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x61b3f3[_0x4385ab(0x4c6)]+'\x0aAfter:\x20'+_0x4b5acf[_0x4385ab(0x4c6)]+_0x4385ab(0x4cb)+this[_0x4385ab(0x2c5)]['status']);this[_0x4385ab(0x41a)](_0x4b5acf);},'onSendChangeset':_0x2af522=>{const _0x5656cf=_0x1999,_0x3be461={'eventID':_0x64674d[_0x5656cf(0x250)],'data':{'unitID':_0x2af522[_0x5656cf(0x2d3)],'unitType':this[_0x5656cf(0x201)],'changeset':_0x2af522,'memberID':this[_0x5656cf(0x2f6)][_0x5656cf(0x329)]()}};this['_session'][_0x5656cf(0x381)](_0x3be461,this['unitID']);},'onMissingChangesets':({from:_0x13154c,to:_0x380189})=>{const _0x18a1af=_0x1999;this[_0x18a1af(0x2ad)][_0x18a1af(0x1b0)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x13154c+'\x20to\x20'+_0x380189);const _0x1bae60={'eventID':_0x64674d[_0x18a1af(0x251)],'data':{'unitID':_0x4761df,'unitType':this[_0x18a1af(0x201)],'from':_0x13154c,'to':_0x380189}};this[_0x18a1af(0x2f6)][_0x18a1af(0x381)](_0x1bae60,this[_0x18a1af(0x2d3)]);}};}async['_createInitialStateImpl'](_0x41b9b3){const _0x1f9307=_0x48c788;var _0x5a3fd1,_0x54445e;const _0x8da2ce=await this['_localCacheService'][_0x1f9307(0x256)](this[_0x1f9307(0x2d3)]),_0x4e07ec=(_0x5a3fd1=_0x8da2ce==null?void 0x0:_0x8da2ce[_0x1f9307(0x3b5)])!=null?_0x5a3fd1:[],_0x1b2374=(_0x54445e=_0x8da2ce==null?void 0x0:_0x8da2ce[_0x1f9307(0x437)])!=null?_0x54445e:null,_0x1b5d3f=this[_0x1f9307(0x2d3)];try{this[_0x1f9307(0x448)](_0x1b2374,_0x4e07ec);}catch(_0x4b63d4){this[_0x1f9307(0x2ad)][_0x1f9307(0x1b3)](_0x4b63d4);}const _0x312d3c=this['_createHandler']();if(_0x41b9b3){const _0x4272d7=Os(this[_0x1f9307(0x2e1)],_0x1b5d3f,this[_0x1f9307(0x201)],_0x1b2374,_0x4e07ec,_0x312d3c);return _0x4272d7 instanceof B?_0x4272d7[_0x1f9307(0x3af)]():(_0x4272d7 instanceof V||_0x4272d7 instanceof K)&&_0x4272d7[_0x1f9307(0x20b)](),_0x4272d7;}return this[_0x1f9307(0x2e1)][_0x1f9307(0x3a1)](X,_0x1b5d3f,this[_0x1f9307(0x201)],_0x1b2374,_0x4e07ec,_0x312d3c);}[_0x48c788(0x448)](_0x4749a6,_0x3ce293){const _0x355458=_0x48c788;var _0x2813d6,_0x230ab9;const _0x4c8f9e=this['_compressMutationService']['interceptor'][_0x355458(0x4bb)](this[_0x355458(0x36a)][_0x355458(0x471)][_0x355458(0x238)]()[_0x355458(0x469)]);(_0x2813d6=_0x4c8f9e((_0x4749a6==null?void 0x0:_0x4749a6['mutations'])||[],null))==null||_0x2813d6[_0x355458(0x244)](_0x58a057=>this[_0x355458(0x1e9)][_0x355458(0x2df)](_0x58a057['id'],_0x58a057['params'])),(_0x230ab9=_0x4c8f9e(_0x3ce293||[],null))==null||_0x230ab9[_0x355458(0x244)](_0x3e2553=>this[_0x355458(0x1e9)][_0x355458(0x2df)](_0x3e2553['id'],_0x3e2553[_0x355458(0x23e)]));}};We=Je([S(0x3,_0x1df0bc(_0x1883e3)),S(0x4,_0x1df0bc(D)),S(0x5,_0x1df0bc(_0x50d638)),S(0x6,_0x1df0bc(_0x7ef8c9)),S(0x7,_0x1df0bc(_0x2426c9)),S(0x8,_0xcf8387),S(0x9,_0x26b7b1),S(0xa,_0xcc97bb),S(0xb,_0x4a2caa),S(0xc,_0x9cd523(Xe))],We);let dt=class extends We{constructor(_0x59d01e,_0x3bed7e,_0x1b9733,_0x51add4,_0x1db1b2,_0x162075,_0xe16ce9,_0x5613f9,_0x1de6af,_0x4f9ce5,_0x50171f,_0xcbe14e,_0x2c5239,_0x58dbab,_0x1a12dc,_0x277b4b,_0x29c847){const _0x456975=_0x48c788;super(_0x59d01e,_0x3bed7e,_0x1b9733,_0x51add4,_0x1db1b2,_0x162075,_0xe16ce9,_0x5613f9,_0x2c5239,_0x58dbab,_0x1a12dc,_0x277b4b,_0x29c847),this[_0x456975(0x2d3)]=_0x59d01e,this['type']=_0x3bed7e,this[_0x456975(0x2de)]=_0x1b9733,this[_0x456975(0x1f2)]=_0x1de6af,this[_0x456975(0x2dd)]=_0x4f9ce5,this[_0x456975(0x218)]=_0x50171f,this[_0x456975(0x2f3)]=_0xcbe14e;}[_0x48c788(0x2a6)](){const _0x5e183d=_0x48c788,_0x447f32=super[_0x5e183d(0x2a6)]();return _0x447f32['onTransformIME']=_0x129745=>this[_0x5e183d(0x2dd)][_0x5e183d(0x1c5)](_0x129745),_0x447f32[_0x5e183d(0x320)]=_0x1bc79c=>this[_0x5e183d(0x218)][_0x5e183d(0x4a4)](_0x1bc79c),_0x447f32[_0x5e183d(0x1ba)]=_0x42a108=>this[_0x5e183d(0x2f3)][_0x5e183d(0x4d5)](_0x42a108),_0x447f32[_0x5e183d(0x2b9)]=_0x25e177=>this[_0x5e183d(0x2dd)][_0x5e183d(0x1cf)](_0x25e177),_0x447f32;}async[_0x48c788(0x340)](){const _0x4e51d5=_0x48c788,_0x424676=await super[_0x4e51d5(0x340)]();return this[_0x4e51d5(0x1f2)][_0x4e51d5(0x1ee)]['pipe'](_0x219692(this[_0x4e51d5(0x4c9)]))[_0x4e51d5(0x237)](_0x3dd849=>{const _0x2bc24c=_0x4e51d5;if(_0x3dd849==null)return;const {unitId:_0x42a3f1,redoState:_0x14a792,commandId:_0x4aa04d}=_0x3dd849;if(_0x42a3f1!==this[_0x2bc24c(0x2d3)])return;const _0x52912b={'id':_0x4aa04d,'type':_0x2210bc['MUTATION'],'params':{'unitId':_0x42a3f1,'actions':_0x14a792['actions'],'textRanges':null}};this[_0x2bc24c(0x337)](_0x52912b);}),_0x424676;}};dt=Je([S(0x3,_0x1df0bc(_0x1883e3)),S(0x4,_0x1df0bc(D)),S(0x5,_0x1df0bc(_0x50d638)),S(0x6,_0x1df0bc(_0x7ef8c9)),S(0x7,_0x1df0bc(_0x2426c9)),S(0x8,_0x1df0bc(_0x18b292)),S(0x9,_0x1df0bc(ke)),S(0xa,_0x1df0bc(Be)),S(0xb,_0x1df0bc(Mt)),S(0xc,_0xcf8387),S(0xd,_0x26b7b1),S(0xe,_0xcc97bb),S(0xf,_0x4a2caa),S(0x10,_0x9cd523(Xe))],dt);let ft=class extends We{constructor(_0x2d8541,_0x12bd19,_0x5bc5b4,_0x5e2f03,_0x41f994,_0x39dc6e,_0x48d9a9,_0x316f61,_0x4069ff,_0x425d19,_0x474bca,_0x584fac,_0x3815a7,_0x892cde){const _0x7e46e7=_0x48c788;super(_0x2d8541,_0x12bd19,_0x5bc5b4,_0x5e2f03,_0x41f994,_0x39dc6e,_0x48d9a9,_0x316f61,_0x425d19,_0x474bca,_0x584fac,_0x3815a7,_0x892cde),this[_0x7e46e7(0x2d3)]=_0x2d8541,this[_0x7e46e7(0x45b)]=_0x12bd19,this[_0x7e46e7(0x2de)]=_0x5bc5b4,this[_0x7e46e7(0x4c0)]=_0x4069ff;}['_createHandler'](){const _0x114e86=_0x48c788,_0xbda31a=super['_createHandler']();return _0xbda31a[_0x114e86(0x320)]=_0x1d462c=>this[_0x114e86(0x4c0)][_0x114e86(0x4a4)](_0x1d462c),_0xbda31a;}async[_0x48c788(0x340)](){const _0xac461a=_0x48c788,_0x5de6cb=await super[_0xac461a(0x340)]();return this['disposeWithMe'](this[_0xac461a(0x1e9)]['onCommandExecuted']((_0x497816,_0x3effa9)=>{const _0x5bf770=_0xac461a;if(_0x497816[_0x5bf770(0x45b)]!==_0x2210bc['MUTATION']||_0x3effa9!=null&&_0x3effa9[_0x5bf770(0x1de)]||_0x3effa9!=null&&_0x3effa9['onlyLocal'])return;const _0x379318=_0x497816[_0x5bf770(0x23e)];if((_0x379318==null?void 0x0:_0x379318[_0x5bf770(0x1bf)])!==this[_0x5bf770(0x2d3)])return;const _0x46f20c=_0x497816,_0x49f3c0=this['_compressMutationService'][_0x5bf770(0x471)][_0x5bf770(0x4bb)](this['_compressMutationService'][_0x5bf770(0x471)]['getInterceptPoints']()[_0x5bf770(0x235)])([_0x46f20c],null)||[_0x46f20c];this[_0x5bf770(0x337)](_0x49f3c0[0x0]);})),_0x5de6cb;}};ft=Je([S(0x3,_0x1df0bc(_0x1883e3)),S(0x4,_0x1df0bc(D)),S(0x5,_0x1df0bc(_0x50d638)),S(0x6,_0x1df0bc(_0x7ef8c9)),S(0x7,_0x1df0bc(_0x2426c9)),S(0x8,_0x1df0bc(Ve)),S(0x9,_0xcf8387),S(0xa,_0x26b7b1),S(0xb,_0xcc97bb),S(0xc,_0x4a2caa),S(0xd,_0x9cd523(Xe))],ft);const zt=[_0x48c788(0x470),_0x48c788(0x213),_0x48c788(0x1cc),_0x48c788(0x22b),_0x48c788(0x3b0),_0x48c788(0x3d3)];class At extends _0x5de86a{constructor(){super(...arguments),l(this,'_assignedColors',new Map()),l(this,'_colorIndex',0x0);}[_0x48c788(0x33d)](_0x426d56){const _0x5be32f=_0x48c788;if(this['_assignedColors']['has'](_0x426d56))return this['_assignedColors'][_0x5be32f(0x4ce)](_0x426d56);const _0x2ea9b8=zt[this[_0x5be32f(0x31a)]];return this[_0x5be32f(0x31a)]=(this[_0x5be32f(0x31a)]+0x1)%zt[_0x5be32f(0x3c7)],this[_0x5be32f(0x42b)]['set'](_0x426d56,_0x2ea9b8),_0x2ea9b8;}}var Vn=Object[_0x48c788(0x299)],Wn=Object[_0x48c788(0x2bd)],Gn=(_0xbe5758,_0x372352,_0x4d6de4,_0x57bff1)=>{const _0x43312f=_0x48c788;for(var _0x1e06a8=_0x57bff1>0x1?void 0x0:_0x57bff1?Wn(_0x372352,_0x4d6de4):_0x372352,_0x21607b=_0xbe5758[_0x43312f(0x3c7)]-0x1,_0x35a111;_0x21607b>=0x0;_0x21607b--)(_0x35a111=_0xbe5758[_0x21607b])&&(_0x1e06a8=(_0x57bff1?_0x35a111(_0x372352,_0x4d6de4,_0x1e06a8):_0x35a111(_0x1e06a8))||_0x1e06a8);return _0x57bff1&&_0x1e06a8&&Vn(_0x372352,_0x4d6de4,_0x1e06a8),_0x1e06a8;},ae=(_0x4b6f0c,_0x51d61c)=>(_0x4f2368,_0x2405d3)=>_0x51d61c(_0x4f2368,_0x2405d3,_0x4b6f0c);const Yn=0x12c,Kn=0x64,Xn=()=>{let _0x55f95e=[],_0x2b47fc=!0x1;return _0x4dff51=>{const _0x434c97=_0x1999;_0x55f95e[_0x434c97(0x3ae)](_0x4dff51),_0x2b47fc||(_0x2b47fc=!0x0,setTimeout(()=>{const _0x360bea=_0x434c97;_0x55f95e[_0x360bea(0x244)](_0x20d6e6=>_0x20d6e6()),_0x55f95e=[],_0x2b47fc=!0x1;}));};};let gt=class extends _0x4f9c78{constructor(_0x3b2d6d,_0x3427d8,_0x53d653,_0x402a29,_0xa7be12,_0xa2b729,_0x5ea150,_0x469ca0){const _0x281bb1=_0x48c788;super(),l(this,_0x281bb1(0x26d),!0x1),l(this,_0x281bb1(0x340),!0x1),l(this,'_cursorInfo$',new _0xac9643(new Map())),l(this,_0x281bb1(0x268),this[_0x281bb1(0x322)][_0x281bb1(0x1ec)]()),l(this,_0x281bb1(0x396),new _0xac9643([])),l(this,_0x281bb1(0x360),this[_0x281bb1(0x396)]['pipe'](_0x5b9b01(Yn))),l(this,_0x281bb1(0x336),_0x12f611((_0x46c85e,_0x39c76b)=>{const _0x4481f4=_0x281bb1,_0x4659d8={'eventID':_0x64674d[_0x4481f4(0x1ed)],'data':{'unitID':this[_0x4481f4(0x2d3)],'memberID':this[_0x4481f4(0x2f6)][_0x4481f4(0x329)](),'selection':_0x14626b(_0x46c85e,_0x39c76b['range'])}};this[_0x4481f4(0x2f6)][_0x4481f4(0x381)](_0x4659d8,this[_0x4481f4(0x2d3)]);},Kn)),(this[_0x281bb1(0x2d3)]=_0x3b2d6d,this[_0x281bb1(0x2f6)]=_0x3427d8,this[_0x281bb1(0x2e1)]=_0x53d653,this[_0x281bb1(0x39d)]=_0x402a29,this['_memberService']=_0xa7be12,this[_0x281bb1(0x38c)]=_0xa2b729,this[_0x281bb1(0x1e9)]=_0x5ea150,this[_0x281bb1(0x30e)]=_0x469ca0);}get[_0x48c788(0x426)](){const _0x88bc65=_0x48c788;return this['_cursorInfo$'][_0x88bc65(0x326)]();}get['roomMembers'](){const _0x5ef64d=_0x48c788;return this[_0x5ef64d(0x396)][_0x5ef64d(0x326)]();}[_0x48c788(0x46e)](){const _0x3bc292=_0x48c788;super[_0x3bc292(0x46e)](),this[_0x3bc292(0x322)][_0x3bc292(0x325)](new Map()),this[_0x3bc292(0x322)][_0x3bc292(0x22e)](),this[_0x3bc292(0x396)][_0x3bc292(0x325)]([]),this['_roomMembers$'][_0x3bc292(0x22e)]();}[_0x48c788(0x400)](){const _0x3329be=_0x48c788;this[_0x3329be(0x340)]||(this['_init']=!0x0,this[_0x3329be(0x2f6)]['sessionStatus$'][_0x3329be(0x3bd)](_0x219692(this[_0x3329be(0x4c9)]))[_0x3329be(0x237)](_0x3aface=>{const _0x464693=_0x3329be;_0x3aface===_e[_0x464693(0x431)]?this[_0x464693(0x1d1)]():this[_0x464693(0x41e)]();}),this[_0x3329be(0x2f6)][_0x3329be(0x3d7)][_0x3329be(0x3bd)](_0x219692(this[_0x3329be(0x4c9)]))[_0x3329be(0x237)](_0x4e3854=>{const _0x42e1be=_0x3329be,_0xa13038=_0x4e3854[_0x42e1be(0x420)];_0xa13038===_0x64674d[_0x42e1be(0x1ed)]&&this[_0x42e1be(0x369)](_0x4e3854),_0xa13038===_0x64674d['USERS_LEAVE']&&this[_0x42e1be(0x202)](_0x4e3854);}),this[_0x3329be(0x28b)](),this[_0x3329be(0x3e7)](this[_0x3329be(0x1e9)][_0x3329be(0x24a)](_0x232f73=>{const _0x573526=_0x3329be;if(this[_0x573526(0x26d)]&&_0x232f73['id']===_0x576668['id']&&_0x232f73[_0x573526(0x23e)][_0x573526(0x1bf)]===this[_0x573526(0x2d3)]){const _0x1f9182=_0x232f73[_0x573526(0x23e)];this[_0x573526(0x336)](_0x1f9182[_0x573526(0x3eb)],_0x1f9182[_0x573526(0x2fc)][0x0]);}})));}[_0x48c788(0x369)](_0x46b6c0){const _0x20ee4f=_0x48c788;var _0x364ab4,_0x2c6970;const {memberID:_0x5abd02,selection:_0x1ea552}=_0x46b6c0[_0x20ee4f(0x43e)],{sheetName:_0x4fc6cf,range:_0x9cb8e}=_0x3f2fda(_0x1ea552),_0x229fd9={'name':(_0x2c6970=(_0x364ab4=this[_0x20ee4f(0x28e)][_0x20ee4f(0x395)](this[_0x20ee4f(0x2d3)],_0x5abd02))==null?void 0x0:_0x364ab4['name'])!=null?_0x2c6970:_0x20ee4f(0x2fd),'range':this[_0x20ee4f(0x308)](_0x4fc6cf,_0x9cb8e),'sheetID':_0x4fc6cf,'color':this[_0x20ee4f(0x39d)][_0x20ee4f(0x33d)](_0x5abd02),'selection':_0x1ea552},_0x2ce80=this['cursorInfo'];_0x2ce80[_0x20ee4f(0x25a)](_0x5abd02,_0x229fd9),this[_0x20ee4f(0x322)][_0x20ee4f(0x325)](_0x2ce80);}[_0x48c788(0x202)](_0x25ac35){const _0x1cabd6=_0x48c788,{memberID:_0x545636}=_0x25ac35[_0x1cabd6(0x43e)],_0x43f460=this[_0x1cabd6(0x426)];_0x43f460[_0x1cabd6(0x388)](_0x545636),this[_0x1cabd6(0x322)][_0x1cabd6(0x325)](_0x43f460);}[_0x48c788(0x308)](_0x92020,_0x168cf){const _0x12e443=_0x48c788;var _0x102388,_0x5247c4;const _0xdf84ca=(_0x5247c4=(_0x102388=this[_0x12e443(0x38c)]['getUniverSheetInstance'](this[_0x12e443(0x2d3)]))==null?void 0x0:_0x102388[_0x12e443(0x416)](_0x92020))==null?void 0x0:_0x5247c4[_0x12e443(0x283)]();return(_0xdf84ca==null?void 0x0:_0xdf84ca['find'](_0x229e15=>_0x294f92[_0x12e443(0x1c6)](_0x229e15,_0x168cf)))||_0x168cf;}[_0x48c788(0x28b)](){const _0x299b8e=_0x48c788,_0x45c380=new _0x53ebaa(),_0x4ab073=Xn(),_0x5b2520=()=>{const _0x391bce=_0x1999;_0x45c380[_0x391bce(0x46e)]();const _0x4436e5=(_0x20723d,_0x24a9fb,_0x5d3300,_0x5ca470)=>{const _0x1d31d7=_0x391bce;let _0x39b573=[];switch(_0x20723d['id']){case _0x3445c6['DeleteRangeMoveLeftCommandId']:{_0x39b573=_0x31225a(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x3b8)]:{_0x39b573=_0xac4d22(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x493)]:{_0x39b573=_0x4ac67f(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x3fe)]:{_0x39b573=_0x174883(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x39a)]:{_0x39b573=_0x257710(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x23d)]:{_0x39b573=_0x4e6c23(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x245)]:{_0x39b573=_0x4784f5(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x39c)]:{_0x39b573=_0x2f6da3(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x4d0)]:{_0x39b573=_0x2b7f87(_0x20723d,_0x5ca470);break;}}const _0x2e405b=_0x477418(_0x39b573,_0x5ca470),_0x389b11=this[_0x1d31d7(0x426)]['get'](_0x24a9fb);if(_0x389b11&&_0x2e405b){const _0x1fd40d={..._0x389b11,'range':_0x2e405b};this[_0x1d31d7(0x426)]['set'](_0x24a9fb,_0x1fd40d),_0x4ab073(()=>{const _0x50ddce=_0x1d31d7,_0x2a10fb=this[_0x50ddce(0x30e)][_0x50ddce(0x1f4)](_0x2e405b,_0x3677b2=>(_0x2a10fb[_0x50ddce(0x46e)](),_0x4436e5(_0x3677b2,_0x24a9fb,_0x5d3300,_0x2e405b)));_0x45c380[_0x50ddce(0x20d)](_0x2a10fb);});}return{'redos':[],'undos':[]};};this[_0x391bce(0x426)][_0x391bce(0x244)]((_0x20e836,_0x250284)=>{const _0xc31dcf=_0x391bce,{range:_0x5507b1,sheetID:_0x76ae45}=_0x20e836,_0x28e092=this[_0xc31dcf(0x30e)][_0xc31dcf(0x1f4)](_0x5507b1,_0x24056e=>(_0x28e092['dispose'](),_0x4436e5(_0x24056e,_0x250284,_0x76ae45,_0x5507b1)));_0x45c380[_0xc31dcf(0x20d)](_0x28e092);});};this[_0x299b8e(0x3e7)](_0x308092(this['_cursorInfo$'][_0x299b8e(0x237)](()=>{_0x5b2520();})));}[_0x48c788(0x1d1)](){const _0x764089=_0x48c788;var _0x1442a6,_0x1d7846;if(this[_0x764089(0x26d)]=!0x0,((_0x1442a6=this[_0x764089(0x38c)]['getFocusedUnit']())==null?void 0x0:_0x1442a6['getUnitId']())!==this['unitID'])return;const _0x1b1196=(_0x1d7846=this[_0x764089(0x2e1)][_0x764089(0x4ce)](_0x241ac5)[_0x764089(0x2cf)]())==null?void 0x0:_0x1d7846[0x0];_0x1b1196&&this['_updateLocalCursor'](this[_0x764089(0x38c)][_0x764089(0x287)](_0x5b42a8['UNIVER_SHEET'])['getActiveSheet']()[_0x764089(0x45f)](),_0x1b1196);}[_0x48c788(0x41e)](){this['_online']=!0x1;}};gt=Gn([ae(0x2,_0x1df0bc(_0x1883e3)),ae(0x3,_0x1df0bc(At)),ae(0x4,_0x1df0bc(ee)),ae(0x5,_0x5db99b),ae(0x6,_0x26b7b1),ae(0x7,_0x1df0bc(_0xd07635))],gt);var Jn=Object['defineProperty'],zn=Object[_0x48c788(0x2bd)],qn=(_0x2563c6,_0x4d823b,_0x1c52a0,_0x197f69)=>{const _0x3de05f=_0x48c788;for(var _0x5c5f7a=_0x197f69>0x1?void 0x0:_0x197f69?zn(_0x4d823b,_0x1c52a0):_0x4d823b,_0x3c66a7=_0x2563c6[_0x3de05f(0x3c7)]-0x1,_0x4b1984;_0x3c66a7>=0x0;_0x3c66a7--)(_0x4b1984=_0x2563c6[_0x3c66a7])&&(_0x5c5f7a=(_0x197f69?_0x4b1984(_0x4d823b,_0x1c52a0,_0x5c5f7a):_0x4b1984(_0x5c5f7a))||_0x5c5f7a);return _0x197f69&&_0x5c5f7a&&Jn(_0x4d823b,_0x1c52a0,_0x5c5f7a),_0x5c5f7a;},q=(_0x42630b,_0x1e0f73)=>(_0x4f74f7,_0x327704)=>_0x1e0f73(_0x4f74f7,_0x327704,_0x42630b);const Zn=0x12c,Qn=0x64;let mt=class extends _0x4f9c78{constructor(_0x27539a,_0x9f398a,_0x582dd4,_0x1bc537,_0x37ebe0,_0x42d176,_0x4d5f82,_0x4a752f,_0x51bd2b){const _0x52d4f4=_0x48c788;super(),l(this,_0x52d4f4(0x26d),!0x1),l(this,_0x52d4f4(0x340),!0x1),l(this,_0x52d4f4(0x322),new _0xac9643(new Map())),l(this,'cursorInfo$',this[_0x52d4f4(0x322)]['asObservable']()),l(this,_0x52d4f4(0x396),new _0xac9643([])),l(this,_0x52d4f4(0x360),this[_0x52d4f4(0x396)]['pipe'](_0x5b9b01(Zn))),l(this,_0x52d4f4(0x336),_0x12f611(_0x1cd1ac=>{const _0x4b756e=_0x52d4f4,_0x5ee5a9={'eventID':_0x64674d[_0x4b756e(0x1ed)],'data':{'unitID':this[_0x4b756e(0x2d3)],'memberID':this[_0x4b756e(0x2f6)][_0x4b756e(0x329)](),'selection':Ts(_0x1cd1ac)}};this[_0x4b756e(0x2f6)]['send'](_0x5ee5a9,this['unitID']);},Qn)),(this[_0x52d4f4(0x2d3)]=_0x27539a,this[_0x52d4f4(0x2f6)]=_0x9f398a,this[_0x52d4f4(0x2e1)]=_0x582dd4,this['_colorAssignService']=_0x1bc537,this[_0x52d4f4(0x28e)]=_0x37ebe0,this[_0x52d4f4(0x427)]=_0x42d176,this[_0x52d4f4(0x231)]=_0x4d5f82,this[_0x52d4f4(0x38c)]=_0x4a752f,this['_commandService']=_0x51bd2b);}get[_0x48c788(0x426)](){const _0x31e8ea=_0x48c788;return this['_cursorInfo$'][_0x31e8ea(0x326)]();}get['roomMembers'](){const _0x3756a4=_0x48c788;return this[_0x3756a4(0x396)]['getValue']();}['dispose'](){const _0x313c54=_0x48c788;super['dispose'](),this[_0x313c54(0x322)][_0x313c54(0x325)](new Map()),this[_0x313c54(0x322)][_0x313c54(0x22e)](),this['_roomMembers$'][_0x313c54(0x325)]([]),this[_0x313c54(0x396)][_0x313c54(0x22e)]();}[_0x48c788(0x400)](){const _0x4ef4c3=_0x48c788;this[_0x4ef4c3(0x340)]||(this[_0x4ef4c3(0x340)]=!0x0,this[_0x4ef4c3(0x2f6)][_0x4ef4c3(0x449)][_0x4ef4c3(0x3bd)](_0x219692(this[_0x4ef4c3(0x4c9)]))[_0x4ef4c3(0x237)](_0xb44fb7=>{const _0x57b90b=_0x4ef4c3;_0xb44fb7===_e[_0x57b90b(0x431)]?this[_0x57b90b(0x1d1)]():this[_0x57b90b(0x41e)]();}),this[_0x4ef4c3(0x2f6)][_0x4ef4c3(0x3d7)]['pipe'](_0x219692(this[_0x4ef4c3(0x4c9)]))[_0x4ef4c3(0x237)](_0x1930ef=>{const _0x126d40=_0x4ef4c3,_0x4fcd5d=_0x1930ef['eventID'];_0x4fcd5d===_0x64674d['UPDATE_CURSOR']&&this[_0x126d40(0x369)](_0x1930ef),_0x4fcd5d===_0x64674d[_0x126d40(0x22c)]&&this['_onCursorDelete'](_0x1930ef);}),this[_0x4ef4c3(0x3e7)](this[_0x4ef4c3(0x1e9)][_0x4ef4c3(0x24a)](_0x3a75cb=>{const _0x2844cf=_0x4ef4c3,_0x77782d=_0x3a75cb[_0x2844cf(0x23e)];_0x77782d!=null&&this[_0x2844cf(0x26d)]&&_0x3a75cb['id']===_0x1d44c4['id']&&_0x77782d[_0x2844cf(0x1bf)]===this[_0x2844cf(0x2d3)]&&_0x77782d[_0x2844cf(0x27c)]===!0x1&&this[_0x2844cf(0x336)](_0x77782d[_0x2844cf(0x1e1)]);})),this[_0x4ef4c3(0x427)]['collabCursorState$'][_0x4ef4c3(0x3bd)](_0x219692(this['dispose$']))[_0x4ef4c3(0x237)](_0x1e0f6c=>{const _0x55d6ff=_0x4ef4c3;if((_0x1e0f6c==null?void 0x0:_0x1e0f6c[_0x55d6ff(0x2d3)])!==this['unitID'])return;const _0xbd8998={'eventID':_0x64674d[_0x55d6ff(0x1ed)],'data':_0x1e0f6c};this[_0x55d6ff(0x369)](_0xbd8998);}),this[_0x4ef4c3(0x3e7)](this['_commandService'][_0x4ef4c3(0x24a)](_0x23bcf2=>{const _0x121076=_0x4ef4c3;if(_0x23bcf2[_0x121076(0x23e)]==null)return;const _0xe3547b=_0x23bcf2[_0x121076(0x23e)];if(_0x23bcf2['id']!==_0x436bb5['id']||_0xe3547b['unitId']!==this[_0x121076(0x2d3)])return;const _0x5d2fac={'id':_0x121076(0x4b6),'params':_0xe3547b},_0xdc0c40=this[_0x121076(0x426)];for(const [_0x380e95,_0x552fcd]of _0xdc0c40){const _0x5ce29f={'id':_0x121076(0x4b6),'params':{'unitId':this[_0x121076(0x2d3)],'actions':null,'textRanges':_0x552fcd[_0x121076(0x1e1)]}},_0x3734c3=this[_0x121076(0x231)][_0x121076(0x33b)](_0x5d2fac,_0x5ce29f,!0x1);if(_0x1ce5e8(_0x3734c3))throw _0x3734c3[_0x121076(0x1b3)];_0xdc0c40[_0x121076(0x25a)](_0x380e95,{..._0x552fcd,'ranges':_0x3734c3[_0x121076(0x1bc)]['params'][_0x121076(0x410)]});}queueMicrotask(()=>{const _0x3e6941=_0x121076;this[_0x3e6941(0x322)][_0x3e6941(0x325)](_0xdc0c40);});})));}[_0x48c788(0x369)](_0x139234){const _0x146f57=_0x48c788;var _0xa4f3e3,_0x52c636;const {memberID:_0x20a304,selection:_0x496487}=_0x139234['data'],_0xdec932=An(_0x496487),_0x2ef780=(_0x52c636=(_0xa4f3e3=this[_0x146f57(0x28e)][_0x146f57(0x395)](this[_0x146f57(0x2d3)],_0x20a304))==null?void 0x0:_0xa4f3e3[_0x146f57(0x2e3)])!=null?_0x52c636:'Unknown\x20user',_0x449330={'color':this['_colorAssignService'][_0x146f57(0x33d)](_0x20a304),'name':_0x2ef780,'ranges':_0xdec932},_0x4769d4=this[_0x146f57(0x426)];_0x4769d4[_0x146f57(0x25a)](_0x20a304,_0x449330),this[_0x146f57(0x322)][_0x146f57(0x325)](_0x4769d4);}[_0x48c788(0x202)](_0x4cc5c0){const _0x1389ac=_0x48c788,{memberID:_0x21c85b}=_0x4cc5c0[_0x1389ac(0x43e)],_0x15fdf1=this[_0x1389ac(0x426)];_0x15fdf1[_0x1389ac(0x388)](_0x21c85b),this['_cursorInfo$'][_0x1389ac(0x325)](_0x15fdf1);}['_toggleOnline'](){const _0x5b7df9=_0x48c788;var _0x4b8555;if(this[_0x5b7df9(0x26d)]=!0x0,((_0x4b8555=this['_univerInstanceService'][_0x5b7df9(0x1d2)]())==null?void 0x0:_0x4b8555['getUnitId']())!==this[_0x5b7df9(0x2d3)])return;const _0x1bd7e5=this['_injector'][_0x5b7df9(0x4ce)](_0x3953fa)[_0x5b7df9(0x2cf)](),_0x129612=_0x1bd7e5==null?void 0x0:_0x1bd7e5['map'](_0x478cbe);Array[_0x5b7df9(0x1c9)](_0x129612)&&_0x129612['length']>0x0&&this[_0x5b7df9(0x336)](_0x129612);}['_toggleOffline'](){const _0x11e117=_0x48c788;this[_0x11e117(0x26d)]=!0x1;}};mt=qn([q(0x2,_0x1df0bc(_0x1883e3)),q(0x3,_0x1df0bc(At)),q(0x4,_0x1df0bc(ee)),q(0x5,_0x1df0bc(Mt)),q(0x6,_0x56e350),q(0x7,_0x5db99b),q(0x8,_0x26b7b1)],mt);var er=Object[_0x48c788(0x299)],tr=Object[_0x48c788(0x2bd)],sr=(_0x4b9849,_0x28fe7a,_0x8e6422,_0x4062ac)=>{for(var _0x19e46e=_0x4062ac>0x1?void 0x0:_0x4062ac?tr(_0x28fe7a,_0x8e6422):_0x28fe7a,_0x6b90c5=_0x4b9849['length']-0x1,_0x23a17a;_0x6b90c5>=0x0;_0x6b90c5--)(_0x23a17a=_0x4b9849[_0x6b90c5])&&(_0x19e46e=(_0x4062ac?_0x23a17a(_0x28fe7a,_0x8e6422,_0x19e46e):_0x23a17a(_0x19e46e))||_0x19e46e);return _0x4062ac&&_0x19e46e&&er(_0x28fe7a,_0x8e6422,_0x19e46e),_0x19e46e;},st=(_0x127a08,_0x437065)=>(_0x4df320,_0x484af9)=>_0x437065(_0x4df320,_0x484af9,_0x127a08);let ue=class extends _0x4f9c78{constructor(_0x1b30eb,_0x55bfef,_0x3920b5){const _0x204fae=_0x48c788;super(),l(this,_0x204fae(0x27f),new Map()),l(this,'_entityInit$',new _0x255156()),(this['_univerInstanceService']=_0x1b30eb,this['_injector']=_0x55bfef,this['_collabSessionService']=_0x3920b5,this['_init']());}[_0x48c788(0x46e)](){const _0x5934af=_0x48c788;super[_0x5934af(0x46e)](),this[_0x5934af(0x4c4)][_0x5934af(0x22e)](),this[_0x5934af(0x27f)][_0x5934af(0x244)](_0x3b854c=>_0x3b854c[_0x5934af(0x46e)]());}[_0x48c788(0x4cd)](_0x6339fd){const _0xb595a4=_0x48c788;return this[_0xb595a4(0x27f)][_0xb595a4(0x3f4)](_0x6339fd)?this[_0xb595a4(0x27f)]['get'](_0x6339fd)[_0xb595a4(0x268)]:this[_0xb595a4(0x4c4)][_0xb595a4(0x3bd)](_0x2b78dc(_0x382d64=>_0x382d64[_0xb595a4(0x2d3)]===_0x6339fd),_0x52b39c(_0x176251=>_0x176251[_0xb595a4(0x268)]));}[_0x48c788(0x340)](){const _0x1a189b=_0x48c788;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5b42a8['UNIVER_SHEET'])[_0x1a189b(0x3bd)](_0x219692(this[_0x1a189b(0x4c9)]))[_0x1a189b(0x237)](async _0x2fcbd9=>{const _0xb83a46=_0x1a189b,_0x45877a=_0x2fcbd9['getUnitId'](),_0x3fdfd4=await this['_startSheetCollabCursor'](_0x45877a);this[_0xb83a46(0x4c4)]['next'](_0x3fdfd4),this[_0xb83a46(0x27f)][_0xb83a46(0x25a)](_0x45877a,_0x3fdfd4);}),this[_0x1a189b(0x38c)]['getTypeOfUnitAdded$'](_0x5b42a8['UNIVER_DOC'])[_0x1a189b(0x3bd)](_0x219692(this[_0x1a189b(0x4c9)]))[_0x1a189b(0x3bd)](_0x2b78dc(_0xdbb7eb=>!_0xdbb7eb[_0x1a189b(0x451)]()[_0x1a189b(0x458)]('__')))[_0x1a189b(0x237)](async _0x4dab01=>{const _0x39e6d4=_0x1a189b,_0x30ea47=_0x4dab01[_0x39e6d4(0x451)](),_0x3b4a62=await this[_0x39e6d4(0x439)](_0x30ea47);this[_0x39e6d4(0x4c4)][_0x39e6d4(0x325)](_0x3b4a62),this[_0x39e6d4(0x27f)]['set'](_0x30ea47,_0x3b4a62);}),_0x10f2b0(this[_0x1a189b(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8[_0x1a189b(0x4d4)]),this[_0x1a189b(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8[_0x1a189b(0x29e)]))['pipe'](_0x219692(this['dispose$']))[_0x1a189b(0x237)](_0x3740cd=>{const _0x2a8e28=_0x1a189b,_0x37a302=_0x3740cd[_0x2a8e28(0x451)](),_0x1d1d8f=this[_0x2a8e28(0x27f)]['get'](_0x37a302);_0x1d1d8f&&(_0x1d1d8f[_0x2a8e28(0x46e)](),this[_0x2a8e28(0x27f)][_0x2a8e28(0x388)](_0x37a302));});}async[_0x48c788(0x1d0)](_0x112b73){const _0x4927cb=_0x48c788,_0x3a3961=await this['_collabSessionService']['requireSession'](_0x112b73),_0x3fec6a=this['_injector'][_0x4927cb(0x3a1)](gt,_0x112b73,_0x3a3961);return _0x3fec6a[_0x4927cb(0x400)](),_0x3fec6a;}async[_0x48c788(0x439)](_0x412c90){const _0x10e5ea=_0x48c788,_0x50adf2=await this[_0x10e5ea(0x3b6)][_0x10e5ea(0x44c)](_0x412c90),_0x5434d9=this[_0x10e5ea(0x2e1)][_0x10e5ea(0x3a1)](mt,_0x412c90,_0x50adf2);return _0x5434d9[_0x10e5ea(0x400)](),_0x5434d9;}};ue=sr([_0x4bcad5(_0xba774d[_0x48c788(0x48c)],ue),st(0x0,_0x5db99b),st(0x1,_0x1df0bc(_0x1883e3)),st(0x2,_0x1df0bc(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,ir=0x5;function nr(_0x467bf6,_0x48e039){const _0x45f58b=_0x48c788;let {radius:_0x5bc7bc,width:_0x21e168,height:_0x472314}=_0x48e039;_0x5bc7bc=_0x5bc7bc!=null?_0x5bc7bc:0x0,_0x21e168=_0x21e168!=null?_0x21e168:0x1e,_0x472314=_0x472314!=null?_0x472314:0x1e;let _0x53877f=0x0,_0x249d46=0x0,_0x1ed93d=0x0;_0x53877f=_0x249d46=_0x1ed93d=Math[_0x45f58b(0x462)](_0x5bc7bc,_0x21e168/0x2,_0x472314/0x2),_0x467bf6[_0x45f58b(0x3a3)](),_0x467bf6[_0x45f58b(0x2bb)](_0x53877f,0x0),_0x467bf6[_0x45f58b(0x257)](_0x21e168-_0x249d46,0x0),_0x467bf6['arc'](_0x21e168-_0x249d46,_0x249d46,_0x249d46,Math['PI']*0x3/0x2,0x0,!0x1),_0x467bf6['lineTo'](_0x21e168,_0x472314-_0x1ed93d),_0x467bf6[_0x45f58b(0x266)](_0x21e168-_0x1ed93d,_0x472314-_0x1ed93d,_0x1ed93d,0x0,Math['PI']/0x2,!0x1),_0x467bf6[_0x45f58b(0x257)](0x0,_0x472314),_0x467bf6[_0x45f58b(0x257)](0x0,_0x53877f),_0x467bf6['arc'](_0x53877f,_0x53877f,_0x53877f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x467bf6[_0x45f58b(0x224)](),_0x48e039[_0x45f58b(0x403)]&&(_0x467bf6[_0x45f58b(0x2c6)](),_0x467bf6[_0x45f58b(0x1c1)]=_0x48e039[_0x45f58b(0x403)],_0x48e039[_0x45f58b(0x453)]==='evenodd'?_0x467bf6['fill'](_0x45f58b(0x376)):_0x467bf6[_0x45f58b(0x403)](),_0x467bf6[_0x45f58b(0x461)]());}class ze extends _0x5760a1{constructor(_0x5ea5be,_0x163f22){const _0x1b0361=_0x48c788;super(_0x5ea5be,_0x163f22),l(this,_0x1b0361(0x295)),l(this,_0x1b0361(0x4a5)),(this[_0x1b0361(0x295)]=_0x163f22==null?void 0x0:_0x163f22[_0x1b0361(0x295)],this[_0x1b0361(0x4a5)]=_0x163f22==null?void 0x0:_0x163f22['text']);}static[_0x48c788(0x300)](_0x4858dd,_0x2b67ee){const _0x328e07=_0x48c788,{text:_0x187501,color:_0x19d075}=_0x2b67ee;_0x4858dd[_0x328e07(0x2c6)](),_0x4858dd['font']=_0x328e07(0x26f);const _0x54faa9=_0x4858dd['measureText'](_0x187501)[_0x328e07(0x1c3)],_0x2c095f=Math[_0x328e07(0x462)](_0x54faa9+0x2*it,qt);nr(_0x4858dd,{'height':Oe,'radius':0x4,'width':_0x2c095f,'fill':_0x19d075,'evented':!0x1}),_0x4858dd[_0x328e07(0x1c1)]=_0x328e07(0x421);const _0x2cd059=it,_0x1461bf=Oe-ir,_0x33eca5=qt-0x2*it;if(_0x54faa9>_0x33eca5){let _0x57e321='',_0x364fbf=0x0;for(const _0x4cf1a2 of _0x187501){const _0x68137d=_0x4858dd[_0x328e07(0x34f)](_0x4cf1a2)[_0x328e07(0x1c3)];if(_0x364fbf+_0x68137d<=_0x33eca5-_0x4858dd[_0x328e07(0x34f)](_0x328e07(0x4ac))['width'])_0x57e321+=_0x4cf1a2,_0x364fbf+=_0x68137d;else{_0x57e321+=_0x328e07(0x4ac);break;}}_0x4858dd[_0x328e07(0x432)](_0x57e321,_0x2cd059,_0x1461bf);}else _0x4858dd[_0x328e07(0x432)](_0x187501,_0x2cd059,_0x1461bf);_0x4858dd[_0x328e07(0x461)]();}[_0x48c788(0x3cb)](_0x329e0b){const _0x19ec4e=_0x48c788;ze[_0x19ec4e(0x300)](_0x329e0b,this);}}const rr=0x1,or=1.5;class ar extends _0x5760a1{constructor(_0x2868d2,_0x4eb94c){const _0x16c8cd=_0x48c788;super(_0x2868d2,_0x4eb94c),l(this,_0x16c8cd(0x1fe)),l(this,_0x16c8cd(0x37a),!0x1),l(this,_0x16c8cd(0x3aa)),l(this,'_name',''),l(this,_0x16c8cd(0x4b5),'top'),(_0x4eb94c&&this[_0x16c8cd(0x3cf)](_0x4eb94c),this['onPointerEnterObserver'][_0x16c8cd(0x20d)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x16c8cd(0x3f1)][_0x16c8cd(0x20d)](()=>this[_0x16c8cd(0x3cf)]({'hovered':!0x1})));}['setShapeProps'](_0x106826){const _0x290c76=_0x48c788;var _0xa5594b,_0x4c0fe7,_0x144192,_0x5c7397,_0x424e58;this[_0x290c76(0x1fe)]=(_0xa5594b=_0x106826[_0x290c76(0x295)])!=null?_0xa5594b:this[_0x290c76(0x1fe)],this['_hovered']=(_0x4c0fe7=_0x106826[_0x290c76(0x1f3)])!=null?_0x4c0fe7:this[_0x290c76(0x37a)],this[_0x290c76(0x3aa)]=(_0x144192=_0x106826[_0x290c76(0x479)])!=null?_0x144192:this[_0x290c76(0x3aa)],this['_name']=(_0x5c7397=_0x106826[_0x290c76(0x2e3)])!=null?_0x5c7397:this[_0x290c76(0x28f)],this[_0x290c76(0x4b5)]=(_0x424e58=_0x106826[_0x290c76(0x35c)])!=null?_0x424e58:this[_0x290c76(0x4b5)],this[_0x290c76(0x3a8)]({'width':_0x106826[_0x290c76(0x1c3)],'height':_0x106826[_0x290c76(0x4cc)]});}[_0x48c788(0x3df)](_0x5a80de){const _0x4f807c=_0x48c788,{row:_0x124eb2,column:_0x4eeec9}=_0x5a80de;if(_0x124eb2>=this['_range'][_0x4f807c(0x4af)]&&_0x124eb2<=this[_0x4f807c(0x3aa)][_0x4f807c(0x414)]&&_0x4eeec9>=this[_0x4f807c(0x3aa)][_0x4f807c(0x41c)]&&_0x4eeec9<=this[_0x4f807c(0x3aa)][_0x4f807c(0x3ff)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x4f807c(0x3cf)]({'hovered':!0x1});}[_0x48c788(0x1fb)](_0x3b846c){return!0x1;}[_0x48c788(0x3cb)](_0x32ab72){const _0x77bd77=_0x48c788;_0x31e76b[_0x77bd77(0x300)](_0x32ab72,{'width':this[_0x77bd77(0x1c3)],'height':this[_0x77bd77(0x4cc)],'strokeWidth':or,'stroke':this[_0x77bd77(0x1fe)],'evented':!0x1}),this[_0x77bd77(0x37a)]&&(_0x32ab72[_0x77bd77(0x2c6)](),_0x32ab72[_0x77bd77(0x2b7)](0x1,0x0,0x0,0x1,this[_0x77bd77(0x1c3)],this['_labelPosition']===_0x77bd77(0x2f0)?0x0:-Oe),ze[_0x77bd77(0x300)](_0x32ab72,{'text':this[_0x77bd77(0x28f)],'color':this['_color']}),_0x32ab72[_0x77bd77(0x461)]());}}var cr=Object[_0x48c788(0x299)],hr=Object['getOwnPropertyDescriptor'],lr=(_0x528e65,_0x298afe,_0x42b7db,_0x21f2fc)=>{const _0x4210db=_0x48c788;for(var _0x1222dc=_0x21f2fc>0x1?void 0x0:_0x21f2fc?hr(_0x298afe,_0x42b7db):_0x298afe,_0x53aeb2=_0x528e65[_0x4210db(0x3c7)]-0x1,_0x2a1b98;_0x53aeb2>=0x0;_0x53aeb2--)(_0x2a1b98=_0x528e65[_0x53aeb2])&&(_0x1222dc=(_0x21f2fc?_0x2a1b98(_0x298afe,_0x42b7db,_0x1222dc):_0x2a1b98(_0x1222dc))||_0x1222dc);return _0x21f2fc&&_0x1222dc&&cr(_0x298afe,_0x42b7db,_0x1222dc),_0x1222dc;},Me=(_0x396e48,_0xa6036c)=>(_0x40d584,_0x150ed1)=>_0xa6036c(_0x40d584,_0x150ed1,_0x396e48);let $e=class extends _0x4f9c78{constructor(_0x4d945b,_0x1c49a9,_0x3ebe3f,_0x3fc779){const _0x2e034a=_0x48c788;super(),l(this,_0x2e034a(0x3da),new Set()),l(this,_0x2e034a(0x23f),null),(this[_0x2e034a(0x28a)]=_0x4d945b,this[_0x2e034a(0x38c)]=_0x1c49a9,this[_0x2e034a(0x3f8)]=_0x3ebe3f,this[_0x2e034a(0x4bd)]=_0x3fc779,this[_0x2e034a(0x340)]());}get[_0x48c788(0x417)](){const _0x40c69c=_0x48c788;return this[_0x40c69c(0x3f8)][_0x40c69c(0x436)](this[_0x40c69c(0x38c)][_0x40c69c(0x287)](_0x5b42a8['UNIVER_SHEET'])[_0x40c69c(0x451)]())['with'](_0x46d514);}get[_0x48c788(0x36e)](){const _0x35b7eb=_0x48c788;return this[_0x35b7eb(0x38c)][_0x35b7eb(0x287)](_0x5b42a8['UNIVER_SHEET'])[_0x35b7eb(0x451)]();}[_0x48c788(0x340)](){const _0x3838f4=_0x48c788;this[_0x3838f4(0x417)][_0x3838f4(0x312)][_0x3838f4(0x3bd)](_0x258fee(this['dispose$']),_0x367f49(_0x183330=>{const _0x53625d=_0x3838f4;if(_0x183330){const _0x3dafb2=_0x183330['sheetId'];return _0x222f4d(this[_0x53625d(0x28a)]['getCollabCursors$'](this[_0x53625d(0x36e)]),this['_themeService'][_0x53625d(0x45c)])[_0x53625d(0x3bd)](_0x1262f1(([_0x385cfc,_0x170fdf])=>{const _0x35a1ce=_0x53625d,_0x5f5df6=new Map();return _0x385cfc[_0x35a1ce(0x244)]((_0x210ac5,_0xbd22c)=>{const _0x1c212d=_0x35a1ce;if(_0x210ac5[_0x1c212d(0x1be)]===_0x3dafb2){const _0x466e0f={..._0x210ac5};_0x466e0f[_0x1c212d(0x295)]=_0x170fdf[_0x210ac5[_0x1c212d(0x295)]],_0x5f5df6[_0x1c212d(0x25a)](_0xbd22c,_0x466e0f);}}),{'skeleton':_0x183330,'cursors':_0x5f5df6};}));}return _0x5aa699({'skeleton':null,'cursors':new Map()});}))[_0x3838f4(0x237)](({skeleton:_0x4cdcb0,cursors:_0x29d864})=>{const _0x5592dc=_0x3838f4;this['_removeCollabCursors'](),_0x4cdcb0&&this[_0x5592dc(0x22f)](_0x4cdcb0,_0x29d864);}),this['_sheetSkeletonManagerService'][_0x3838f4(0x312)][_0x3838f4(0x237)](_0x408419=>{const _0x3b0453=_0x3838f4;if(_0x408419==null)return;const {skeleton:_0x37e7e7}=_0x408419,_0xd99d6=this[_0x3b0453(0x3f8)]['getRenderById'](this[_0x3b0453(0x36e)]),{scene:_0x1f6393}=_0xd99d6;_0x1f6393[_0x3b0453(0x2b5)][_0x3b0453(0x20d)](_0x12f611(_0x123e91=>{const _0x3f975c=_0x3b0453;var _0x3a481e,_0x2264d6;const {offsetX:_0x2c095b,offsetY:_0x2a36c4}=_0x123e91,{x:_0x4c4557,y:_0x4a5341}=_0x1f6393[_0x3f975c(0x485)](_0x4c9069[_0x3f975c(0x344)]([_0x2c095b,_0x2a36c4])),{scaleX:_0x3bea89,scaleY:_0x4e192f}=_0x1f6393['getAncestorScale'](),_0x2c1db3=_0x1f6393['getViewport'](_0x53f94c[_0x3f975c(0x2f4)]),_0x303b15=_0x1f6393[_0x3f975c(0x2b0)](_0x4c9069['FromArray']([_0x4c4557,_0x4a5341]),_0x2c1db3),_0x4efd6a=_0x37e7e7[_0x3f975c(0x358)](_0x2c095b,_0x2a36c4,_0x3bea89,_0x4e192f,_0x303b15);((_0x3a481e=this[_0x3f975c(0x23f)])==null?void 0x0:_0x3a481e[_0x3f975c(0x4be)])===_0x4efd6a['column']&&((_0x2264d6=this[_0x3f975c(0x23f)])==null?void 0x0:_0x2264d6[_0x3f975c(0x2fe)])===_0x4efd6a[_0x3f975c(0x2fe)]||this[_0x3f975c(0x3da)][_0x3f975c(0x244)](_0xb7ac82=>{const _0x3ea6ed=_0x3f975c;_0xb7ac82[_0x3ea6ed(0x3df)](_0x4efd6a);});},0x64));});}[_0x48c788(0x22f)](_0x2e905c,_0x3d42f4){const _0x2e8d02=_0x48c788;var _0x5ae661;const _0x24fea9=(_0x5ae661=this[_0x2e8d02(0x417)][_0x2e8d02(0x342)]())==null?void 0x0:_0x5ae661['skeleton'];if(!_0x24fea9)return;const _0x3a7b7a=this[_0x2e8d02(0x475)]();if(!_0x3a7b7a)return;this[_0x2e8d02(0x3da)][_0x2e8d02(0x244)](_0x457d4d=>{const _0x65148b=_0x2e8d02;_0x457d4d[_0x65148b(0x1f9)]();});const {scene:_0x431dd6}=_0x3a7b7a,_0x47473e=_r(Array[_0x2e8d02(0x444)](_0x3d42f4[_0x2e8d02(0x3ef)]()))[_0x2e8d02(0x3e8)](_0x2045ff=>{const _0x3a371b=_0x2e8d02,{color:_0x25b1ee,range:_0x49c3dd,name:_0x4d748c,selection:_0x20f2c6,sheetID:_0x169e74}=_0x2045ff,{startColumn:_0x36c47b,startRow:_0x2428df,endColumn:_0x35a1da,endRow:_0x1c93ed}=_0x49c3dd,_0x5a13eb=_0x51cfa7(_0x2428df,_0x36c47b,_0x431dd6,_0x24fea9),_0x36fe3f=_0x51cfa7(_0x1c93ed,_0x35a1da,_0x431dd6,_0x24fea9),{columnHeaderHeightAndMarginTop:_0x3a7000}=_0x24fea9,{startX:_0x3cf477,startY:_0x37d286}=_0x5a13eb,{endX:_0x10b576,endY:_0x2e3422}=_0x36fe3f,_0x1d88d6=_0x10b576-_0x3cf477,_0x3687fa=_0x2e3422-_0x37d286,_0x22948d={'labelPosition':_0x37d286-_0x3a7000>=Oe?'top':_0x3a371b(0x2f0),'sheetID':_0x169e74,'range':_0x49c3dd,'color':_0x25b1ee,'name':_0x4d748c,'selection':_0x20f2c6,'left':_0x3cf477,'top':_0x37d286,'width':_0x1d88d6,'height':_0x3687fa,'evented':!0x1};return new ar(_0x4d748c,_0x22948d);});_0x431dd6[_0x2e8d02(0x3a5)](_0x47473e,rr),this[_0x2e8d02(0x3da)]=new Set(_0x47473e);}[_0x48c788(0x4b7)](){const _0x180a38=_0x48c788;var _0x4bb56f;(_0x4bb56f=this[_0x180a38(0x3da)])==null||_0x4bb56f[_0x180a38(0x244)](_0x3a295f=>_0x3a295f[_0x180a38(0x46e)]());}[_0x48c788(0x475)](){const _0x378b12=_0x48c788;return _0x1f2c89(this[_0x378b12(0x38c)],this[_0x378b12(0x3f8)]);}};$e=lr([_0x4bcad5(_0xba774d[_0x48c788(0x44e)],$e),Me(0x0,_0x1df0bc(ue)),Me(0x1,_0x5db99b),Me(0x2,_0x205a7a),Me(0x3,_0x1df0bc(_0x58f756))],$e);function _r(_0x4c5402){const _0x568bce=_0x48c788,_0x381d94=new Map();return _0x4c5402['forEach'](_0x26d263=>{const _0x33e376=_0x1999;if(_0x381d94[_0x33e376(0x3f4)](_0x26d263[_0x33e376(0x42f)])){const _0x4a0fc1=_0x381d94[_0x33e376(0x4ce)](_0x26d263[_0x33e376(0x42f)]);_0x4a0fc1[_0x33e376(0x2e3)]+=',\x20'+_0x26d263['name'];}else _0x381d94['set'](_0x26d263['selection'],_0x26d263);}),Array[_0x568bce(0x444)](_0x381d94[_0x568bce(0x3ef)]());}function _0x1999(_0x2722fd,_0xdf3013){const _0x515a6b=_0x515a();return _0x1999=function(_0x199927,_0x11f5b6){_0x199927=_0x199927-0x1b0;let _0x372ef4=_0x515a6b[_0x199927];return _0x372ef4;},_0x1999(_0x2722fd,_0xdf3013);}var A=function(){const _0x1dc758=_0x48c788;return A=Object['assign']||function(_0x2367d4){const _0x1accec=_0x1999;for(var _0x493e45,_0x3c9ec6=0x1,_0x3c0819=arguments[_0x1accec(0x3c7)];_0x3c9ec6<_0x3c0819;_0x3c9ec6++){_0x493e45=arguments[_0x3c9ec6];for(var _0x350efe in _0x493e45)Object[_0x1accec(0x339)][_0x1accec(0x1fc)][_0x1accec(0x413)](_0x493e45,_0x350efe)&&(_0x2367d4[_0x350efe]=_0x493e45[_0x350efe]);}return _0x2367d4;},A[_0x1dc758(0x321)](this,arguments);},ur=function(_0x2b8287,_0x2f13a9){const _0x345e0c=_0x48c788;var _0x25578a={};for(var _0x5e1845 in _0x2b8287)Object[_0x345e0c(0x339)][_0x345e0c(0x1fc)][_0x345e0c(0x413)](_0x2b8287,_0x5e1845)&&_0x2f13a9[_0x345e0c(0x386)](_0x5e1845)<0x0&&(_0x25578a[_0x5e1845]=_0x2b8287[_0x5e1845]);if(_0x2b8287!=null&&typeof Object['getOwnPropertySymbols']==_0x345e0c(0x45e)){for(var _0x436623=0x0,_0x5e1845=Object[_0x345e0c(0x2c0)](_0x2b8287);_0x436623<_0x5e1845[_0x345e0c(0x3c7)];_0x436623++)_0x2f13a9[_0x345e0c(0x386)](_0x5e1845[_0x436623])<0x0&&Object[_0x345e0c(0x339)]['propertyIsEnumerable'][_0x345e0c(0x413)](_0x2b8287,_0x5e1845[_0x436623])&&(_0x25578a[_0x5e1845[_0x436623]]=_0x2b8287[_0x5e1845[_0x436623]]);}return _0x25578a;},yt=_0x1302f5(function(_0xae9627,_0x325e5b){const _0x20aedc=_0x48c788;var _0x1b3501=_0xae9627[_0x20aedc(0x330)],_0x1cd6ab=_0xae9627['id'],_0x631426=_0xae9627[_0x20aedc(0x1cb)],_0x7527c8=_0xae9627[_0x20aedc(0x3e2)],_0x1510cc=ur(_0xae9627,[_0x20aedc(0x330),'id',_0x20aedc(0x1cb),_0x20aedc(0x3e2)]),_0x176e70=_0x20aedc(0x3c5)[_0x20aedc(0x37f)](_0x1cd6ab,'\x20')[_0x20aedc(0x37f)](_0x631426||'')['trim'](),_0x175621=_0x4b43df('_'[_0x20aedc(0x37f)](gr()));return Ds(_0x1b3501,''[_0x20aedc(0x37f)](_0x1cd6ab),{'defIds':_0x1b3501['defIds'],'idSuffix':_0x175621['current']},A({'ref':_0x325e5b,'className':_0x176e70},_0x1510cc),_0x7527c8);});function Ds(_0x2f793e,_0x5c540e,_0xb00431,_0x4d31b2,_0x246da5){const _0x3617a2=_0x48c788;return _0x732030(_0x2f793e[_0x3617a2(0x203)],A(A({'key':_0x5c540e},dr(_0x2f793e,_0xb00431,_0x246da5)),_0x4d31b2),(fr(_0x2f793e,_0xb00431)['children']||[])[_0x3617a2(0x3e8)](function(_0x199e86,_0x37c8e7){const _0x3c1c38=_0x3617a2;return Ds(_0x199e86,''[_0x3c1c38(0x37f)](_0x5c540e,'-')[_0x3c1c38(0x37f)](_0x2f793e[_0x3c1c38(0x203)],'-')[_0x3c1c38(0x37f)](_0x37c8e7),_0xb00431,void 0x0,_0x246da5);}));}function dr(_0xc8ec44,_0x518b1c,_0x4df4e6){const _0x11711d=_0x48c788;var _0x595e40=A({},_0xc8ec44['attrs']);_0x4df4e6!=null&&_0x4df4e6['colorChannel1']&&_0x595e40[_0x11711d(0x403)]===_0x11711d(0x3d0)&&(_0x595e40[_0x11711d(0x403)]=_0x4df4e6['colorChannel1']);var _0x4a3336=_0x518b1c['defIds'];return!_0x4a3336||_0x4a3336[_0x11711d(0x3c7)]===0x0||(_0xc8ec44[_0x11711d(0x203)]===_0x11711d(0x278)&&_0x595e40[_0x11711d(0x2e5)]&&(_0x595e40['xlink:href']=_0x595e40[_0x11711d(0x2e5)]+_0x518b1c['idSuffix']),Object[_0x11711d(0x247)](_0x595e40)[_0x11711d(0x244)](function(_0x52033d){const _0x2bc626=_0x11711d;var _0xa66d97=_0x52033d[0x0],_0xfcfbb5=_0x52033d[0x1];typeof _0xfcfbb5==_0x2bc626(0x484)&&(_0x595e40[_0xa66d97]=_0xfcfbb5['replace'](/url\(#(.*)\)/,_0x2bc626(0x264)[_0x2bc626(0x37f)](_0x518b1c[_0x2bc626(0x25b)],')')));})),_0x595e40;}function fr(_0x8d3524,_0x431f36){const _0x49ccae=_0x48c788;var _0x10a3c5,_0x29cb8e=_0x431f36[_0x49ccae(0x21a)];return!_0x29cb8e||_0x29cb8e[_0x49ccae(0x3c7)]===0x0?_0x8d3524:_0x8d3524[_0x49ccae(0x203)]===_0x49ccae(0x3d4)&&(!((_0x10a3c5=_0x8d3524[_0x49ccae(0x4a6)])===null||_0x10a3c5===void 0x0)&&_0x10a3c5[_0x49ccae(0x3c7)])?A(A({},_0x8d3524),{'children':_0x8d3524[_0x49ccae(0x4a6)]['map'](function(_0x22806b){const _0x4310ea=_0x49ccae;return typeof _0x22806b[_0x4310ea(0x44d)]['id']=='string'&&_0x29cb8e&&_0x29cb8e[_0x4310ea(0x386)](_0x22806b['attrs']['id'])>-0x1?A(A({},_0x22806b),{'attrs':A(A({},_0x22806b[_0x4310ea(0x44d)]),{'id':_0x22806b['attrs']['id']+_0x431f36[_0x4310ea(0x25b)]})}):_0x22806b;})}):_0x8d3524;}function gr(){const _0x327e74=_0x48c788;return Math[_0x327e74(0x258)]()['toString'](0x24)[_0x327e74(0x394)](0x2,0x8);}yt[_0x48c788(0x2be)]=_0x48c788(0x30d);var mr={'tag':_0x48c788(0x20f),'attrs':{'fill':_0x48c788(0x49c),'viewBox':_0x48c788(0x49b),'width':_0x48c788(0x243),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x48c788(0x2e6)},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'stroke':'currentColor','d':_0x48c788(0x1e8),'strokeLinecap':_0x48c788(0x46b),'strokeLinejoin':_0x48c788(0x46b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x48c788(0x478),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'fill':_0x48c788(0x48a),'d':_0x48c788(0x1b7)}}]}]}],'defIds':[_0x48c788(0x241)]},ws=_0x1302f5(function(_0xfce199,_0x1065c4){const _0x12e0f3=_0x48c788;return _0x732030(yt,Object[_0x12e0f3(0x38f)]({},_0xfce199,{'id':_0x12e0f3(0x459),'ref':_0x1065c4,'icon':mr}));});ws[_0x48c788(0x2be)]=_0x48c788(0x2a3);var Sr={'tag':_0x48c788(0x20f),'attrs':{'fill':_0x48c788(0x49c),'viewBox':_0x48c788(0x428),'width':_0x48c788(0x243),'height':_0x48c788(0x243)},'children':[{'tag':'g','attrs':{'clipPath':_0x48c788(0x1e4)},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'stroke':_0x48c788(0x27a),'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':'round','strokeLinejoin':_0x48c788(0x46b),'strokeWidth':1.2}}]},{'tag':_0x48c788(0x3d4),'attrs':{},'children':[{'tag':_0x48c788(0x478),'attrs':{'id':_0x48c788(0x35f)},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'fill':_0x48c788(0x48a),'d':_0x48c788(0x1b7),'transform':_0x48c788(0x3ab)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ps=_0x1302f5(function(_0x47ab56,_0x5a1ec6){const _0x12f230=_0x48c788;return _0x732030(yt,Object[_0x12f230(0x38f)]({},_0x47ab56,{'id':'on-line-single','ref':_0x5a1ec6,'icon':Sr}));});Ps[_0x48c788(0x2be)]=_0x48c788(0x239);const vr='univer-online-status-icon',pr=_0x48c788(0x1db),Ir='univer-online-status',Er=_0x48c788(0x3ed),Cr=_0x48c788(0x47b),ve={'onlineStatusIcon':vr,'onlineStatusTitle':pr,'onlineStatus':Ir,'online':Er,'offline':Cr};function br(_0x239998){const _0x285600=_0x48c788;switch(_0x239998){case P[_0x285600(0x214)]:return _0x285600(0x370);case P[_0x285600(0x2ec)]:return'collabStatus.conflict';case P[_0x285600(0x29a)]:return _0x285600(0x4d8);case P[_0x285600(0x43a)]:return _0x285600(0x3d8);case P['PENDING']:case P['AWAITING']:case P[_0x285600(0x45a)]:return'collabStatus.syncing';case P['SYNCED']:return _0x285600(0x43d);}}function Rr(_0xd09431){const _0x3cdd99=_0x48c788,{status$:_0x13dbcb}=_0xd09431,_0x30b1c5=_0x36db5c(_0x13dbcb,P[_0x3cdd99(0x43a)]),_0x413443=_0x34cfdc(_0x7ef8c9),_0x5b3e2a=_0x30b1c5!==P['OFFLINE'],_0x593578=_0x413443['t'](br(_0x30b1c5)),_0x2174a6=_0x37250f(ve[_0x3cdd99(0x317)],{[ve['online']]:_0x5b3e2a,[ve['offline']]:!_0x5b3e2a}),_0x4e0057=_0x5b3e2a?_0x537ca1['createElement'](Ps,null):_0x537ca1['createElement'](ws,null);return _0x537ca1[_0x3cdd99(0x230)]('div',{'className':_0x2174a6},_0x537ca1[_0x3cdd99(0x230)](_0x3cdd99(0x311),{'className':ve[_0x3cdd99(0x23a)]},_0x4e0057),_0x537ca1[_0x3cdd99(0x230)]('div',{'className':ve[_0x3cdd99(0x368)]},_0x593578));}var Tr=Object['defineProperty'],Or=Object['getOwnPropertyDescriptor'],Dr=(_0x46faa4,_0x348477,_0x14bf99,_0x3f2ffc)=>{const _0x28070c=_0x48c788;for(var _0x12b9fe=_0x3f2ffc>0x1?void 0x0:_0x3f2ffc?Or(_0x348477,_0x14bf99):_0x348477,_0x5a01a8=_0x46faa4[_0x28070c(0x3c7)]-0x1,_0x31a073;_0x5a01a8>=0x0;_0x5a01a8--)(_0x31a073=_0x46faa4[_0x5a01a8])&&(_0x12b9fe=(_0x3f2ffc?_0x31a073(_0x348477,_0x14bf99,_0x12b9fe):_0x31a073(_0x12b9fe))||_0x12b9fe);return _0x3f2ffc&&_0x12b9fe&&Tr(_0x348477,_0x14bf99,_0x12b9fe),_0x12b9fe;},Ae=(_0x4e4e48,_0x3c2d26)=>(_0x54e85f,_0xecaad0)=>_0x3c2d26(_0x54e85f,_0xecaad0,_0x4e4e48);let je=class extends _0x5de86a{constructor(_0x312687,_0x32b041,_0x304733,_0x5b794f){const _0x4dba21=_0x48c788;super(),l(this,_0x4dba21(0x1ca),new _0xac9643(P[_0x4dba21(0x43a)])),(this['_univerInstanceService']=_0x312687,this[_0x4dba21(0x375)]=_0x32b041,this[_0x4dba21(0x2e1)]=_0x304733,this[_0x4dba21(0x346)]=_0x5b794f,this[_0x4dba21(0x2a9)](),this[_0x4dba21(0x3e4)]());}['_initStatusComponent'](){const _0x27edc8=_0x48c788;this[_0x27edc8(0x3e7)](this['_uiPartsService'][_0x27edc8(0x2b3)](_0x2ba420[_0x27edc8(0x253)],()=>_0x5168f0(wr({'status$':this[_0x27edc8(0x1ca)][_0x27edc8(0x1ec)]()}),this[_0x27edc8(0x2e1)])));}[_0x48c788(0x3e4)](){const _0x137ec2=_0x48c788;this[_0x137ec2(0x3e7)](_0x308092(this['_univerInstanceService'][_0x137ec2(0x4ae)][_0x137ec2(0x3bd)](_0x52b39c(()=>{const _0x4f2fcd=_0x137ec2,_0x3de06b=this[_0x4f2fcd(0x38c)]['getFocusedUnit']();return _0x3de06b?this[_0x4f2fcd(0x346)][_0x4f2fcd(0x36d)](_0x3de06b[_0x4f2fcd(0x451)]()):_0x5aa699(null);}),_0x52b39c(_0x9e1ade=>_0x9e1ade?_0x9e1ade[_0x137ec2(0x44b)]:_0x5aa699(P[_0x137ec2(0x43a)])))['subscribe'](_0x155b96=>{const _0x11c7a1=_0x137ec2;this[_0x11c7a1(0x1ca)][_0x11c7a1(0x325)](_0x155b96);})));}};je=Dr([_0x4bcad5(_0xba774d['Starting'],je),Ae(0x0,_0x5db99b),Ae(0x1,_0x2d3342),Ae(0x2,_0x1df0bc(_0x1883e3)),Ae(0x3,_0x1df0bc(Ee))],je);function wr(_0x1fa64d){const {status$:_0x520483}=_0x1fa64d;return function(){const _0x5987b6=_0x1999;return _0x537ca1[_0x5987b6(0x230)](Rr,{'status$':_0x520483});};}const Ns=_0x4e2518(_0x48c788(0x49a));var Pr=Object[_0x48c788(0x299)],Nr=Object[_0x48c788(0x2bd)],Mr=(_0x1fdbf0,_0x1a9a33,_0x1b8bb7,_0x51c615)=>{const _0x309e4d=_0x48c788;for(var _0x5049e5=_0x51c615>0x1?void 0x0:_0x51c615?Nr(_0x1a9a33,_0x1b8bb7):_0x1a9a33,_0x29379c=_0x1fdbf0[_0x309e4d(0x3c7)]-0x1,_0x49764f;_0x29379c>=0x0;_0x29379c--)(_0x49764f=_0x1fdbf0[_0x29379c])&&(_0x5049e5=(_0x51c615?_0x49764f(_0x1a9a33,_0x1b8bb7,_0x5049e5):_0x49764f(_0x5049e5))||_0x5049e5);return _0x51c615&&_0x5049e5&&Pr(_0x1a9a33,_0x1b8bb7,_0x5049e5),_0x5049e5;},ce=(_0x455987,_0x32fc03)=>(_0x51e4ef,_0x410088)=>_0x32fc03(_0x51e4ef,_0x410088,_0x455987);let He=class extends _0x4f9c78{constructor(_0x2e8d60,_0x47f45b,_0x5524f8,_0x2ac9a5,_0x2aaf52,_0x42a868){const _0xc41387=_0x48c788;super(),this[_0xc41387(0x351)]=_0x2e8d60,this['_logService']=_0x47f45b,this['_commandService']=_0x5524f8,this[_0xc41387(0x1eb)]=_0x2ac9a5,this['_snapshotService']=_0x2aaf52,_0x42a868?_0x42a868==null||_0x42a868[_0xc41387(0x31d)]()['then'](()=>this[_0xc41387(0x340)]()):(this[_0xc41387(0x2ad)][_0xc41387(0x1b0)](_0xc41387(0x398),_0xc41387(0x281)),this[_0xc41387(0x340)]());}async[_0x48c788(0x340)](){const _0x136aa7=_0x48c788,_0x21b6c8=this[_0x136aa7(0x351)][_0x136aa7(0x240)](_0x136aa7(0x272)),_0x2430b5=this[_0x136aa7(0x351)]['getParam'](_0x136aa7(0x45b));if(!_0x21b6c8||!_0x2430b5){this['_logService'][_0x136aa7(0x1b0)](_0x136aa7(0x398),_0x136aa7(0x48d));return;}switch(Number(_0x2430b5)){case H['UNIVER_SHEET']:{const _0x4cc55d=await this['_loadSheet'](_0x21b6c8);this[_0x136aa7(0x32f)](_0x4cc55d);break;}case H['UNIVER_DOC']:{await this[_0x136aa7(0x2c8)](_0x21b6c8);break;}default:{this[_0x136aa7(0x2ad)][_0x136aa7(0x1b3)](_0x136aa7(0x398),_0x136aa7(0x2e2));break;}}}async[_0x48c788(0x32f)](_0x2e0544){const _0x253028=_0x48c788;await this['_updateSubUnitFromURLParams'](_0x2e0544),_0x2e0544[_0x253028(0x401)][_0x253028(0x3bd)](_0x219692(this['dispose$']))['subscribe'](_0x284df0=>{_0x284df0&&this['_updateURLWithCurrentState'](_0x284df0);}),this[_0x253028(0x351)][_0x253028(0x215)][_0x253028(0x3bd)](_0x219692(this[_0x253028(0x4c9)]))[_0x253028(0x237)](()=>this['_updateSubUnitFromURLParams'](_0x2e0544));}['_updateURLWithCurrentState'](_0x241066,_0x8831ba=!0x1){const _0x1bda8d=_0x48c788,_0x2ee356=this[_0x1bda8d(0x351)][_0x1bda8d(0x240)](_0x1bda8d(0x226));_0x241066[_0x1bda8d(0x45f)]()!==_0x2ee356&&this[_0x1bda8d(0x351)]['setParam'](_0x1bda8d(0x226),_0x241066[_0x1bda8d(0x45f)](),_0x8831ba);}async[_0x48c788(0x4c2)](_0xbd8b31){const _0x2a7c0c=_0x48c788,_0x9a5a8b=this[_0x2a7c0c(0x351)][_0x2a7c0c(0x240)]('subunit');if(!_0x9a5a8b||!_0xbd8b31[_0x2a7c0c(0x416)](_0x9a5a8b)){this[_0x2a7c0c(0x3a7)](_0xbd8b31['getActiveSheet'](),!0x0);return;}_0xbd8b31[_0x2a7c0c(0x354)]()[_0x2a7c0c(0x45f)]()!==_0x9a5a8b&&await this[_0x2a7c0c(0x1e9)][_0x2a7c0c(0x2df)](_0x27110d['id'],{'unitId':_0xbd8b31[_0x2a7c0c(0x451)](),'subUnitId':_0x9a5a8b});}async[_0x48c788(0x397)](_0x13d1ea){const _0x458978=_0x48c788;let _0x173568=0x0;const _0x547ec2=await this[_0x458978(0x1eb)][_0x458978(0x256)](_0x13d1ea);return _0x547ec2&&(_0x547ec2['awaitingChangeset']||_0x547ec2[_0x458978(0x3b5)][_0x458978(0x3c7)]!==0x0)&&(_0x173568=_0x547ec2['rev']),_0x173568===0x0&&this['_logService']['debug']('[DataLoaderController]',_0x458978(0x35a)),this['_snapshotService'][_0x458978(0x212)](_0x13d1ea,_0x173568);}async['_loadDoc'](_0x2cfd9a){const _0x2ce0b0=_0x48c788;let _0x1f2d52=0x0;const _0x52e693=await this[_0x2ce0b0(0x1eb)][_0x2ce0b0(0x256)](_0x2cfd9a);return _0x52e693&&(_0x52e693['awaitingChangeset']||_0x52e693[_0x2ce0b0(0x3b5)]['length']!==0x0)&&(_0x1f2d52=_0x52e693[_0x2ce0b0(0x4c7)]),_0x1f2d52===0x0&&this[_0x2ce0b0(0x2ad)][_0x2ce0b0(0x1b0)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadDoc'](_0x2cfd9a,_0x1f2d52);}};He=Mr([_0x4bcad5(_0xba774d[_0x48c788(0x48c)],He),ce(0x0,Ns),ce(0x1,_0xcf8387),ce(0x2,_0x26b7b1),ce(0x3,_0x1df0bc(D)),ce(0x4,_0x1df0bc(_0x3ae0d3)),ce(0x5,_0x9cd523(_0x356d7e))],He);var Ar=Object['defineProperty'],yr=Object[_0x48c788(0x2bd)],Ur=(_0xf42cb9,_0x3b225b,_0x40eb48,_0x5a39ab)=>{const _0x5bdef7=_0x48c788;for(var _0x2c118d=_0x5a39ab>0x1?void 0x0:_0x5a39ab?yr(_0x3b225b,_0x40eb48):_0x3b225b,_0x1e0cdc=_0xf42cb9[_0x5bdef7(0x3c7)]-0x1,_0x185e29;_0x1e0cdc>=0x0;_0x1e0cdc--)(_0x185e29=_0xf42cb9[_0x1e0cdc])&&(_0x2c118d=(_0x5a39ab?_0x185e29(_0x3b225b,_0x40eb48,_0x2c118d):_0x185e29(_0x2c118d))||_0x2c118d);return _0x5a39ab&&_0x2c118d&&Ar(_0x3b225b,_0x40eb48,_0x2c118d),_0x2c118d;},Zt=(_0x176351,_0x5dcc28)=>(_0x13601a,_0x46fbe4)=>_0x5dcc28(_0x13601a,_0x46fbe4,_0x176351);const Lr='DEFAULT_FILE_NAME',$r=_0x48c788(0x2dc);let xe=class extends _0x5de86a{constructor(_0x296329,_0x2da230){super(),this['_univerInstanceService']=_0x296329,this['_configService']=_0x2da230,this['_init']();}[_0x48c788(0x340)](){const _0x7bfd06=_0x48c788;this[_0x7bfd06(0x3e7)](_0x308092(this[_0x7bfd06(0x38c)][_0x7bfd06(0x4ae)][_0x7bfd06(0x237)](()=>{const _0x246a30=_0x7bfd06;var _0x291627;const _0x2b0c5b=this[_0x246a30(0x38c)][_0x246a30(0x1d2)]();let _0x4b88e0=(_0x291627=this[_0x246a30(0x35d)][_0x246a30(0x2d9)](Lr))!=null?_0x291627:$r;_0x2b0c5b instanceof _0x55773e&&(_0x4b88e0=_0x2b0c5b[_0x246a30(0x2e3)]),document[_0x246a30(0x255)]=_0x4b88e0;})));}};xe=Ur([_0x4bcad5(_0xba774d[_0x48c788(0x1f5)],xe),Zt(0x0,_0x5db99b),Zt(0x1,_0x475c15)],xe);var jr=Object['defineProperty'],Hr=Object[_0x48c788(0x2bd)],xr=(_0x5de854,_0x5295b2,_0x2550c1,_0x2ce56b)=>{const _0x5d2fef=_0x48c788;for(var _0x55475c=_0x2ce56b>0x1?void 0x0:_0x2ce56b?Hr(_0x5295b2,_0x2550c1):_0x5295b2,_0x52eb83=_0x5de854[_0x5d2fef(0x3c7)]-0x1,_0xe6292f;_0x52eb83>=0x0;_0x52eb83--)(_0xe6292f=_0x5de854[_0x52eb83])&&(_0x55475c=(_0x2ce56b?_0xe6292f(_0x5295b2,_0x2550c1,_0x55475c):_0xe6292f(_0x55475c))||_0x55475c);return _0x2ce56b&&_0x55475c&&jr(_0x5295b2,_0x2550c1,_0x55475c),_0x55475c;},Qt=(_0x5d5521,_0x4a65cd)=>(_0x48f11e,_0xfa40f8)=>_0x4a65cd(_0x48f11e,_0xfa40f8,_0x5d5521);let St=class{constructor(_0x573264,_0x8df043){const _0x47171b=_0x48c788;this[_0x47171b(0x35d)]=_0x573264,this[_0x47171b(0x33f)]=_0x8df043;}async[_0x48c788(0x47e)](_0x13ffdc,_0x5119f2){const _0x427ba8=_0x48c788;var _0x58eee4;const {unitID:_0x45c0bd,type:_0x3f5101,revision:_0x1b0ddd=0x0}=_0x5119f2,_0xe8df43=this[_0x427ba8(0x285)]()+'/'+_0x3f5101+_0x427ba8(0x327)+_0x45c0bd+_0x427ba8(0x2b2)+(_0x1b0ddd===0x1?0x0:_0x1b0ddd),_0x47e5eb=(await this[_0x427ba8(0x33f)]['get'](_0xe8df43))[_0x427ba8(0x1ef)],_0xfa88ad=(_0x58eee4=_0x47e5eb[_0x427ba8(0x477)])==null?void 0x0:_0x58eee4[_0x427ba8(0x2c1)];if(_0xfa88ad){const _0x3e5170=_0xfa88ad==null?void 0x0:_0xfa88ad['originalMeta'],_0x68b94d=_0x3e85fc[_0x427ba8(0x301)](_0x2a2404(_0x3e5170));_0xfa88ad[_0x427ba8(0x40f)]=_0x68b94d,Object[_0x427ba8(0x247)](_0xfa88ad[_0x427ba8(0x229)])[_0x427ba8(0x244)](([,_0x41a177])=>{const _0x5241d1=_0x427ba8,_0x2282f4=_0x41a177[_0x5241d1(0x40f)],_0x242583=_0x3e85fc[_0x5241d1(0x301)](_0x2a2404(_0x2282f4));_0x41a177[_0x5241d1(0x40f)]=_0x242583;});}return _0x47e5eb;}async[_0x48c788(0x4d9)](_0x1d5de1,_0x7a6dcd){const _0x5d2c37=_0x48c788,{unitID:_0x10ad4c,type:_0x28de84,blockID:_0x42dc23}=_0x7a6dcd,_0x50de77=this[_0x5d2c37(0x30c)]()+'/'+_0x28de84+_0x5d2c37(0x327)+_0x10ad4c+_0x5d2c37(0x4a8)+_0x42dc23;return(await this[_0x5d2c37(0x33f)][_0x5d2c37(0x4ce)](_0x50de77))[_0x5d2c37(0x1ef)];}async[_0x48c788(0x4bc)](_0x46c29c,_0x576009){const _0x36bf84=_0x48c788,{unitID:_0x4a8b9e,type:_0x37dc18,from:_0x1f60b8,to:_0x390c0b}=_0x576009,_0x3abaa1=this[_0x36bf84(0x30c)]()+'/'+_0x37dc18+'/unit/'+_0x4a8b9e+_0x36bf84(0x433)+_0x1f60b8+_0x36bf84(0x3e1)+_0x390c0b;return(await this['_httpService'][_0x36bf84(0x4ce)](_0x3abaa1))['body'];}[_0x48c788(0x285)](){const _0x452044=_0x48c788;var _0x593375;return(_0x593375=this[_0x452044(0x35d)][_0x452044(0x2d9)](Yi))!=null?_0x593375:this[_0x452044(0x30c)]();}['_getAPIPrefix'](){const _0x3d5b75=_0x48c788;var _0x2a1784;return(_0x2a1784=this[_0x3d5b75(0x35d)][_0x3d5b75(0x2d9)](Wi))!=null?_0x2a1784:Gi;}async['getResourcesRequest'](_0x2a0285,_0x31a5c4){const _0x22eaac=_0x48c788,_0x1b51f5=_0x22eaac(0x483)+_0x31a5c4[_0x22eaac(0x45b)]+_0x22eaac(0x327)+_0x31a5c4[_0x22eaac(0x2d3)]+_0x22eaac(0x33a);return(await this['_httpService']['get'](_0x1b51f5,{'params':{'resourceId':JSON[_0x22eaac(0x1ce)](_0x31a5c4[_0x22eaac(0x2d5)])}}))[_0x22eaac(0x1ef)];}[_0x48c788(0x46d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x48c788(0x25f)](){const _0x5303b4=_0x48c788;throw new Error(_0x5303b4(0x49f));}['saveChangeset'](){const _0x3087d7=_0x48c788;throw new Error(_0x3087d7(0x49f));}};St=xr([Qt(0x0,_0x475c15),Qt(0x1,_0x1df0bc(_0x49edd2))],St);var Fr=Object[_0x48c788(0x299)],kr=Object[_0x48c788(0x2bd)],Br=(_0x3f2cf2,_0x432c6a,_0x25e1fc,_0x3778c1)=>{const _0x31eb20=_0x48c788;for(var _0x21406e=_0x3778c1>0x1?void 0x0:_0x3778c1?kr(_0x432c6a,_0x25e1fc):_0x432c6a,_0x2a0ec4=_0x3f2cf2[_0x31eb20(0x3c7)]-0x1,_0xe356e1;_0x2a0ec4>=0x0;_0x2a0ec4--)(_0xe356e1=_0x3f2cf2[_0x2a0ec4])&&(_0x21406e=(_0x3778c1?_0xe356e1(_0x432c6a,_0x25e1fc,_0x21406e):_0xe356e1(_0x21406e))||_0x21406e);return _0x3778c1&&_0x21406e&&Fr(_0x432c6a,_0x25e1fc,_0x21406e),_0x21406e;},pe=(_0x285064,_0xd941eb)=>(_0x36f4b0,_0x371319)=>_0xd941eb(_0x36f4b0,_0x371319,_0x285064);let vt=class extends _0x2d3c98{constructor(_0x3538f3,_0x43a9ed,_0x3e53af,_0x402835,_0x287f14){const _0x33e477=_0x48c788;super(_0x3538f3,_0x43a9ed,_0x3e53af),this[_0x33e477(0x231)]=_0x402835,this[_0x33e477(0x2ad)]=_0x287f14;}['transformUndoRedo'](_0x2986f6,_0x45c3e3){const _0x4dbc7a=_0x48c788,_0x307ace=this[_0x4dbc7a(0x1d7)](_0x2986f6);if(_0x307ace)try{const _0x44affb=this[_0x4dbc7a(0x38e)](_0x307ace,_0x45c3e3);this[_0x4dbc7a(0x3c9)](_0x2986f6,_0x44affb);}catch(_0x20d379){this['_logService'][_0x4dbc7a(0x1b3)](_0x4dbc7a(0x331),_0x20d379),this[_0x4dbc7a(0x387)](_0x2986f6);}const _0x2ce57f=this['_getRedoStack'](_0x2986f6);if(_0x2ce57f)try{const _0x262a3c=this[_0x4dbc7a(0x38e)](_0x2ce57f,_0x45c3e3);this['_substituteRedoStack'](_0x2986f6,_0x262a3c);}catch(_0x5a8c34){this['_logService'][_0x4dbc7a(0x1b3)](_0x5a8c34),this[_0x4dbc7a(0x33c)](_0x2986f6);}}[_0x48c788(0x387)](_0x1c0f80){const _0xae04ed=_0x48c788,_0x598abc=this[_0xae04ed(0x1d7)](_0x1c0f80);_0x598abc&&(_0x598abc['length']=0x0,this[_0xae04ed(0x3e6)]());}[_0x48c788(0x33c)](_0x323571){const _0x335908=_0x48c788,_0x342d40=this[_0x335908(0x23c)](_0x323571);_0x342d40&&(_0x342d40[_0x335908(0x3c7)]=0x0,this[_0x335908(0x3e6)]());}[_0x48c788(0x3c9)](_0x12ea17,_0xebd923){const _0x2ed85f=_0x48c788;this[_0x2ed85f(0x209)]['set'](_0x12ea17,_0xebd923),this[_0x2ed85f(0x3e6)]();}[_0x48c788(0x382)](_0x18a810,_0x1a6c4a){const _0x431d6d=_0x48c788;this[_0x431d6d(0x4b2)][_0x431d6d(0x25a)](_0x18a810,_0x1a6c4a),this[_0x431d6d(0x3e6)]();}[_0x48c788(0x38e)](_0x6f299d,_0x2a1bf2){const _0x2bf3e1=_0x48c788,_0x28167e=[];let _0x4fe984=_0x2a1bf2,_0x31a2ce=_0x2a1bf2;for(let _0xbcfb61=_0x6f299d[_0x2bf3e1(0x3c7)]-0x1;_0xbcfb61>=0x0;_0xbcfb61--){const {unitID:_0x538fb3,undoMutations:_0x5a192f,redoMutations:_0x89a157}=_0x6f299d[_0xbcfb61],_0x432a52=this[_0x2bf3e1(0x231)][_0x2bf3e1(0x313)](_0x4fe984,_0x5a192f),_0x55bdd7=this[_0x2bf3e1(0x231)][_0x2bf3e1(0x313)](_0x31a2ce,_0x89a157);if(_0x120eeb(_0x432a52)||_0x120eeb(_0x55bdd7)){this[_0x2bf3e1(0x2ad)][_0x2bf3e1(0x1b3)](_0x2bf3e1(0x331),_0x2bf3e1(0x3fb),_0x432a52,_0x55bdd7);break;}_0x4fe984=_0x432a52[_0x2bf3e1(0x3a9)],_0x31a2ce=_0x55bdd7[_0x2bf3e1(0x3a9)],_0x28167e[_0x2bf3e1(0x3ae)]({'unitID':_0x538fb3,'undoMutations':_0x432a52[_0x2bf3e1(0x1bc)],'redoMutations':_0x55bdd7['m2Prime']});}return _0x28167e[_0x2bf3e1(0x24c)]();}};vt=Br([pe(0x0,_0x5db99b),pe(0x1,_0x26b7b1),pe(0x2,_0x4c77f7),pe(0x3,_0x56e350),pe(0x4,_0xcf8387)],vt);class Vr extends _0x4f9c78{constructor(){const _0x4c9caf=_0x48c788;super(),l(this,'urlChange$'),this[_0x4c9caf(0x215)]=_0x3afa96(window,_0x4c9caf(0x2ff))[_0x4c9caf(0x3bd)](_0x219692(this[_0x4c9caf(0x4c9)]),_0x5bbc32(0x1),_0x58db52(void 0x0));}[_0x48c788(0x492)](_0x41ddb5,_0x1978a9,_0x2df3aa=!0x1){const _0x59e14a=_0x48c788,_0x147314=new URL(window[_0x59e14a(0x2a2)][_0x59e14a(0x29d)]);_0x147314[_0x59e14a(0x422)][_0x59e14a(0x25a)](_0x41ddb5,_0x1978a9),_0x2df3aa?window[_0x59e14a(0x47d)][_0x59e14a(0x303)]('','',_0x147314[_0x59e14a(0x1e6)]()):window[_0x59e14a(0x47d)][_0x59e14a(0x4bf)]('','',_0x147314['toString']());}[_0x48c788(0x48f)](_0x48295a,_0x393afe=!0x1){const _0x503848=_0x48c788,_0x28c732=new URL(window[_0x503848(0x2a2)][_0x503848(0x29d)]);_0x28c732[_0x503848(0x422)][_0x503848(0x388)](_0x48295a),_0x393afe?window[_0x503848(0x47d)]['replaceState']('','',_0x28c732[_0x503848(0x1e6)]()):window[_0x503848(0x47d)]['pushState']('','',_0x28c732[_0x503848(0x1e6)]());}['getParam'](_0x49d719){const _0x578a02=_0x48c788;var _0x29d009;return(_0x29d009=new URL(window[_0x578a02(0x2a2)][_0x578a02(0x29d)])[_0x578a02(0x422)][_0x578a02(0x4ce)](_0x49d719))!=null?_0x29d009:void 0x0;}}const nt=_0x48c788(0x1c2),Wr='collab-text-range-',ye=0x6,Gr=1.5,rt=0x4,Yr=1.5,Kr=_0x48c788(0x2cc);class Xr{constructor(_0xa1ed61,_0x561504,_0x1b3d89,_0x1401c5){const _0x10db7b=_0x48c788;l(this,_0x10db7b(0x4a2),[]),l(this,'_anchor',null),l(this,_0x10db7b(0x348),null),l(this,_0x10db7b(0x41d),null),l(this,_0x10db7b(0x29b),null),l(this,_0x10db7b(0x3c3),null),(this[_0x10db7b(0x3fa)]=_0xa1ed61,this[_0x10db7b(0x359)]=_0x561504,this[_0x10db7b(0x23b)]=_0x1b3d89,this[_0x10db7b(0x24e)]=_0x1401c5,this['_render']());}set[_0x48c788(0x1d8)](_0x40dd15){const _0xdd1bc8=_0x48c788;_0x40dd15?(this[_0xdd1bc8(0x41d)]&&this[_0xdd1bc8(0x41d)][_0xdd1bc8(0x1d5)](),this['_textBubble']&&this['_textBubble'][_0xdd1bc8(0x4d1)]()):(this['_anchorDot']&&this[_0xdd1bc8(0x41d)][_0xdd1bc8(0x4d1)](),this[_0xdd1bc8(0x348)]&&this[_0xdd1bc8(0x348)]['hide']());}[_0x48c788(0x46e)](){const _0x1efcaa=_0x48c788;for(const _0x233cbb of this[_0x1efcaa(0x4a2)])_0x233cbb[_0x1efcaa(0x46e)]();this['_textBubble']&&this[_0x1efcaa(0x348)]['dispose'](),this[_0x1efcaa(0x41d)]&&this[_0x1efcaa(0x41d)]['dispose'](),this['_anchor']&&this[_0x1efcaa(0x219)][_0x1efcaa(0x46e)](),this[_0x1efcaa(0x3c3)]&&this[_0x1efcaa(0x3c3)]();}[_0x48c788(0x3dc)](){const _0x456cea=_0x48c788,{_docSkeleton:_0x2f3e00,_document:_0xa35ddc}=this,{color:_0x50df77,name:_0x3b1c6a,ranges:_0x58e542}=this['_cursor'],_0x2607e2=_0xa35ddc['getOffsetConfig'](),{docsLeft:_0x584c35,docsTop:_0x10758e}=_0x2607e2,_0x58566e=new _0x45e74b(_0x2607e2,_0x2f3e00);for(const {startOffset:_0x45f5e7,endOffset:_0x4b0611,collapsed:_0x3ed7b9,isActive:_0x22241d}of _0x58e542){const _0x4a8872=_0x2f3e00['findNodePositionByCharIndex'](_0x45f5e7),_0x2fd192=_0x2f3e00[_0x456cea(0x315)](_0x4b0611);if(_0x22241d){const {contentBoxPointGroup:_0x5903f8}=_0x58566e[_0x456cea(0x25c)](_0x2fd192,_0x2fd192);if(_0x5903f8[_0x456cea(0x3c7)]===0x0)continue;this['_drawAnchor'](_0x50df77,_0x5903f8,_0x584c35,_0x10758e,_0x3b1c6a),this[_0x456cea(0x3c3)]=this['_handleHover']();}if(!_0x3ed7b9){const {contentBoxPointGroup:_0x4e6cf4}=_0x58566e['getRangePointData'](_0x4a8872,_0x2fd192);if(_0x4e6cf4['length']===0x0)continue;this[_0x456cea(0x443)](_0x50df77,_0x4e6cf4,_0x584c35,_0x10758e);}}}[_0x48c788(0x41f)](_0x23ae36,_0x4999a2,_0x3bc7ee,_0x48921c,_0x54214d){const _0x99d472=_0x48c788,_0x185e1d=this[_0x99d472(0x365)](_0x4999a2),{left:_0x4fcccb,top:_0x3930ed,height:_0x55d0f8}=_0x185e1d,_0x1479f3=this[_0x99d472(0x2b4)](),_0x51e39e=Yr/_0x1479f3,_0x2e57f5=new _0x31e76b(nt+_0x41ebb1[_0x99d472(0x2e7)](ye),{'left':_0x4fcccb+_0x3bc7ee-_0x51e39e,'top':_0x3930ed+_0x48921c,'height':_0x55d0f8,'width':Gr,'fill':_0x23ae36||_0x5139a9(_0x375ede[_0x99d472(0x3fd)],0x0),'strokeWidth':_0x51e39e,'stroke':Kr,'evented':!0x0});this[_0x99d472(0x219)]=_0x2e57f5,this[_0x99d472(0x359)]['addObject'](_0x2e57f5,_0x3507b6);const _0x272dc8=new _0x31e76b(nt+_0x41ebb1[_0x99d472(0x2e7)](ye),{'left':_0x4fcccb+_0x3bc7ee-_0x51e39e,'top':_0x3930ed+_0x48921c-rt/0x2,'height':rt,'width':rt,'fill':_0x23ae36||_0x5139a9(_0x375ede[_0x99d472(0x3fd)],0x0),'strokeWidth':0x0,'stroke':_0x23ae36||_0x5139a9(_0x375ede[_0x99d472(0x3fd)],0x0),'evented':!0x1});this[_0x99d472(0x41d)]=_0x272dc8,this[_0x99d472(0x359)][_0x99d472(0x286)](_0x272dc8,_0x3507b6);const _0x3ce4e0=new ze(nt+_0x41ebb1[_0x99d472(0x2e7)](ye),{'left':_0x4fcccb+_0x3bc7ee-_0x51e39e,'top':_0x3930ed+_0x48921c-Oe,'text':_0x54214d,'color':_0x23ae36});this[_0x99d472(0x348)]=_0x3ce4e0,this[_0x99d472(0x359)]['addObject'](_0x3ce4e0,_0x3507b6),this[_0x99d472(0x1d8)]=!0x1;}[_0x48c788(0x467)](){const _0x21420e=_0x48c788,_0x1ef738=this[_0x21420e(0x219)][_0x21420e(0x291)][_0x21420e(0x20d)](()=>{const _0x579f31=_0x21420e;this[_0x579f31(0x1d8)]=!0x0;}),_0x548c26=this['_anchor']['onPointerLeaveObserver'][_0x21420e(0x20d)](()=>{const _0x24bf53=_0x21420e;this[_0x24bf53(0x29b)]&&clearTimeout(this[_0x24bf53(0x29b)]),this[_0x24bf53(0x29b)]=setTimeout(()=>{const _0x41994d=_0x24bf53;this[_0x41994d(0x1d8)]=!0x1;},0x7d0);});return()=>{const _0x256721=_0x21420e;var _0x51681c,_0x5716d2;(_0x51681c=this['_anchor'])==null||_0x51681c['onPointerEnterObserver']['remove'](_0x1ef738),(_0x5716d2=this[_0x256721(0x219)])==null||_0x5716d2[_0x256721(0x3f1)]['remove'](_0x548c26);};}[_0x48c788(0x443)](_0x4c9a6a,_0x78349a,_0x4ad5f6,_0x2563bd){const _0x294729=_0x48c788,_0x2e29be=new _0x4176ec(_0x4c9a6a)[_0x294729(0x3b1)](0.2)[_0x294729(0x3f7)](),_0x1ad242=new _0x4b8859(Wr+_0x41ebb1[_0x294729(0x2e7)](ye),{'pointsGroup':_0x78349a,'fill':_0x2e29be||_0x5139a9(_0x375ede['black'],0.2),'left':_0x4ad5f6,'top':_0x2563bd,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1ad242),this[_0x294729(0x359)][_0x294729(0x286)](_0x1ad242,_0x3507b6);}[_0x48c788(0x365)](_0x11b65c){const _0x229d2b=_0x11b65c[0x0],_0x4b3abe=_0x229d2b[0x0],_0x1c4f85=_0x229d2b[0x2],{x:_0x5da343,y:_0x416326}=_0x4b3abe,{x:_0x3474f5,y:_0x49ec15}=_0x1c4f85;return{'left':_0x5da343,'top':_0x416326,'width':_0x3474f5-_0x5da343,'height':_0x49ec15-_0x416326};}['_getScale'](){const _0x251169=_0x48c788,{scaleX:_0x2c6d8d,scaleY:_0x48bd61}=this[_0x251169(0x359)][_0x251169(0x324)]();return Math[_0x251169(0x249)](_0x2c6d8d,_0x48bd61);}}var Jr=Object[_0x48c788(0x299)],zr=Object[_0x48c788(0x2bd)],qr=(_0x94543c,_0x2021d8,_0x34dadc,_0x1a8a33)=>{const _0x2c81cc=_0x48c788;for(var _0x16dbf9=_0x1a8a33>0x1?void 0x0:_0x1a8a33?zr(_0x2021d8,_0x34dadc):_0x2021d8,_0x155d10=_0x94543c[_0x2c81cc(0x3c7)]-0x1,_0x577f1a;_0x155d10>=0x0;_0x155d10--)(_0x577f1a=_0x94543c[_0x155d10])&&(_0x16dbf9=(_0x1a8a33?_0x577f1a(_0x2021d8,_0x34dadc,_0x16dbf9):_0x577f1a(_0x16dbf9))||_0x16dbf9);return _0x1a8a33&&_0x16dbf9&&Jr(_0x2021d8,_0x34dadc,_0x16dbf9),_0x16dbf9;},Ie=(_0x51e2ef,_0x798979)=>(_0x1f6f8b,_0x30ffcc)=>_0x798979(_0x1f6f8b,_0x30ffcc,_0x51e2ef);let Fe=class extends _0x4f9c78{constructor(_0x16897c,_0x553e4e,_0x3c8b07,_0x3311b3,_0x25e1ca){const _0x173dbb=_0x48c788;super(),l(this,_0x173dbb(0x3da),[]),(this['_collabCursorController']=_0x16897c,this[_0x173dbb(0x38c)]=_0x553e4e,this[_0x173dbb(0x3f8)]=_0x3c8b07,this[_0x173dbb(0x1e3)]=_0x3311b3,this['_themeService']=_0x25e1ca,this[_0x173dbb(0x340)]());}[_0x48c788(0x340)](){const _0x432553=_0x48c788;this[_0x432553(0x1e3)]['currentSkeleton$'][_0x432553(0x3bd)](_0x258fee(this[_0x432553(0x4c9)]),_0x367f49(_0x54c944=>{const _0x21c9ba=_0x432553;if(_0x54c944){const {unitId:_0x8c9e3d}=_0x54c944;return _0x222f4d(this['_collabCursorController'][_0x21c9ba(0x4cd)](_0x8c9e3d),this['_themeService'][_0x21c9ba(0x45c)])[_0x21c9ba(0x3bd)](_0x1262f1(([_0x4fecb2,_0xab00e4])=>({'skeleton':_0x54c944,'cursors':[..._0x4fecb2['values']()]['flatMap'](_0x247b85=>({..._0x247b85,'color':_0xab00e4[_0x247b85[_0x21c9ba(0x295)]]}))})));}return _0x5aa699({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0xf09cac,cursors:_0x398019})=>{const _0x45618d=_0x432553;this[_0x45618d(0x4b7)](),_0xf09cac&&this['_updateCollabCursors'](_0xf09cac[_0x45618d(0x407)],_0x398019);});}[_0x48c788(0x22f)](_0x3e0350,_0x229265){const _0x2425dc=_0x48c788,_0x468695=this[_0x2425dc(0x4aa)]();if(_0x468695==null)return;const {scene:_0x54da54,document:_0x3f941d}=_0x468695,_0x535d64=_0x229265[_0x2425dc(0x3e8)](_0x10ffa6=>new Xr(_0x10ffa6,_0x54da54,_0x3e0350,_0x3f941d));this[_0x2425dc(0x3da)]=_0x535d64;}['_removeCollabCursors'](){const _0x2bcd9f=_0x48c788;this[_0x2bcd9f(0x3da)]['forEach'](_0x729f2e=>_0x729f2e[_0x2bcd9f(0x46e)]()),this[_0x2bcd9f(0x3da)]=[];}['_getDocObject'](){return _0x394f78(this['_univerInstanceService'],this['_renderManagerService']);}};Fe=qr([_0x4bcad5(_0xba774d['Steady'],Fe),Ie(0x0,_0x1df0bc(ue)),Ie(0x1,_0x5db99b),Ie(0x2,_0x205a7a),Ie(0x3,_0x1df0bc(_0x495a4e)),Ie(0x4,_0x1df0bc(_0x58f756))],Fe);var Zr=Object[_0x48c788(0x299)],Qr=Object['getOwnPropertyDescriptor'],eo=(_0x23a13a,_0x31c6a9,_0x164c01,_0xe36094)=>{const _0x435066=_0x48c788;for(var _0xd62053=_0xe36094>0x1?void 0x0:_0xe36094?Qr(_0x31c6a9,_0x164c01):_0x31c6a9,_0x4f1983=_0x23a13a[_0x435066(0x3c7)]-0x1,_0x21d5ee;_0x4f1983>=0x0;_0x4f1983--)(_0x21d5ee=_0x23a13a[_0x4f1983])&&(_0xd62053=(_0xe36094?_0x21d5ee(_0x31c6a9,_0x164c01,_0xd62053):_0x21d5ee(_0xd62053))||_0xd62053);return _0xe36094&&_0xd62053&&Zr(_0x31c6a9,_0x164c01,_0xd62053),_0xd62053;},ot=(_0x339d66,_0x2193f2)=>(_0x3a5d9d,_0x44f1d4)=>_0x2193f2(_0x3a5d9d,_0x44f1d4,_0x339d66);let Ge=class{constructor(_0x10d0c1,_0x2eb89a,_0x297063){const _0x18b27e=_0x48c788;this['_configService']=_0x10d0c1,this[_0x18b27e(0x33f)]=_0x2eb89a,this[_0x18b27e(0x2d8)]=_0x297063,this[_0x18b27e(0x400)]();}[_0x48c788(0x400)](){const _0x4a0a96=_0x48c788;this[_0x4a0a96(0x33f)][_0x4a0a96(0x3f6)]({'priority':0x1,'interceptor':(_0x2fb61e,_0x223cad)=>_0x223cad(_0x2fb61e)[_0x4a0a96(0x3bd)](_0x54d374(async _0x2180ae=>{const _0xec8fb3=_0x4a0a96,_0x5efc32=_0x2180ae;if(_0x5efc32[_0xec8fb3(0x4c6)]===0x191&&window[_0xec8fb3(0x31f)](this['localeService']['t'](_0xec8fb3(0x2f2)))){const _0x466a6f=window['encodeURIComponent'](window[_0xec8fb3(0x2a2)][_0xec8fb3(0x29d)]);window[_0xec8fb3(0x2a2)][_0xec8fb3(0x29d)]=this[_0xec8fb3(0x4b8)]()+_0xec8fb3(0x3b3)+_0x466a6f;}return _0x5efc32;}))});}['_getLoginPath'](){const _0x582cc3=_0x48c788;var _0x250914;return(_0x250914=this[_0x582cc3(0x35d)][_0x582cc3(0x2d9)](cn))!=null?_0x250914:hn;}};Ge=eo([ot(0x0,_0x475c15),ot(0x1,_0x1df0bc(_0x49edd2)),ot(0x2,_0x1df0bc(_0x7ef8c9))],Ge);var to=Object[_0x48c788(0x299)],so=Object[_0x48c788(0x2bd)],io=(_0x1c209b,_0x4ad525,_0xf3806e,_0x187506)=>{for(var _0x4d25c5=_0x187506>0x1?void 0x0:_0x187506?so(_0x4ad525,_0xf3806e):_0x4ad525,_0x3ec73a=_0x1c209b['length']-0x1,_0x577373;_0x3ec73a>=0x0;_0x3ec73a--)(_0x577373=_0x1c209b[_0x3ec73a])&&(_0x4d25c5=(_0x187506?_0x577373(_0x4ad525,_0xf3806e,_0x4d25c5):_0x577373(_0x4d25c5))||_0x4d25c5);return _0x187506&&_0x4d25c5&&to(_0x4ad525,_0xf3806e,_0x4d25c5),_0x4d25c5;},es=(_0x335c4a,_0x2db89c)=>(_0x1cdf6e,_0x5eb20e)=>_0x2db89c(_0x1cdf6e,_0x5eb20e,_0x335c4a);const no='AUTHZ_URL_KEY',ro=_0x48c788(0x1b9);let pt=class{constructor(_0x4040a4,_0x7b6954){this['_HTTPService']=_0x4040a4,this['_configService']=_0x7b6954;}[_0x48c788(0x392)](){const _0xd0dbd5=_0x48c788;var _0x3ad1b2;return(_0x3ad1b2=this[_0xd0dbd5(0x35d)][_0xd0dbd5(0x2d9)](no))!=null?_0x3ad1b2:ro;}async['create'](_0x1db738){const _0x4394a4=_0x48c788,_0x2c8ad2=this[_0x4394a4(0x392)]()+'/'+_0x1db738[_0x4394a4(0x456)]+_0x4394a4(0x3cd);return(await this[_0x4394a4(0x270)][_0x4394a4(0x4b4)](_0x2c8ad2,{'body':_0x1db738}))[_0x4394a4(0x1ef)][_0x4394a4(0x3d1)]||'';}async[_0x48c788(0x20a)](_0x16e440){const _0x1b03fc=_0x48c788,_0x1344f9=this[_0x1b03fc(0x392)]()+'/-/object/list';return(await this['_HTTPService']['post'](_0x1344f9,{'body':_0x16e440}))['body'][_0x1b03fc(0x28d)];}async[_0x48c788(0x47c)](_0x5267d1){const _0x495b4f=_0x48c788,_0x132d43=this[_0x495b4f(0x392)]()+'/'+_0x5267d1[_0x495b4f(0x456)]+'/object/'+_0x5267d1['objectID'];await this[_0x495b4f(0x270)][_0x495b4f(0x24f)](_0x132d43,{'body':_0x5267d1});}async[_0x48c788(0x2ac)](_0x141d15){const _0x96c15c=_0x48c788,_0x595e14=this[_0x96c15c(0x392)]()+'/'+_0x141d15[_0x96c15c(0x456)]+_0x96c15c(0x45d)+_0x141d15[_0x96c15c(0x3d1)]+_0x96c15c(0x3be);return(await this[_0x96c15c(0x270)][_0x96c15c(0x4b4)](_0x595e14,{'body':_0x141d15}))[_0x96c15c(0x1ef)]['actions'];}async['batchAllowed'](_0x433588){const _0x3b5388=_0x48c788,_0x3013f5=this[_0x3b5388(0x392)]()+_0x3b5388(0x3cc);return(await this['_HTTPService']['post'](_0x3013f5,{'body':{'requests':_0x433588}}))['body'][_0x3b5388(0x262)];}async[_0x48c788(0x316)](_0x54880b){const _0x34824d=_0x48c788,_0x35f98e=this[_0x34824d(0x392)]()+'/'+_0x54880b[_0x34824d(0x456)]+_0x34824d(0x2e0),_0x12aef8=await this[_0x34824d(0x270)][_0x34824d(0x4b4)](_0x35f98e,{'body':_0x54880b});return{'roles':_0x12aef8['body'][_0x34824d(0x486)],'actions':_0x12aef8[_0x34824d(0x1ef)][_0x34824d(0x25e)]};}async[_0x48c788(0x3e5)](_0x407563){const _0x5cfb59=_0x48c788,_0x5ea835=this[_0x5cfb59(0x392)]()+'/collaborator';await this[_0x5cfb59(0x270)][_0x5cfb59(0x388)](_0x5ea835,{'params':{'collaboratorID':_0x407563[_0x5cfb59(0x1df)],'objectID':_0x407563[_0x5cfb59(0x3d1)],'unitID':_0x407563[_0x5cfb59(0x2d3)]}});}async['updateCollaborator'](_0x1a48c4){const _0x4bddd0=_0x48c788,_0x4db9fd=this[_0x4bddd0(0x392)]()+'/collaborator';await this[_0x4bddd0(0x270)][_0x4bddd0(0x1e0)](_0x4db9fd,{'body':_0x1a48c4});}async['createCollaborator'](_0x8cb4c8){const _0x12cc45=_0x48c788,_0xbf14b2=this[_0x12cc45(0x392)]()+_0x12cc45(0x446);await this[_0x12cc45(0x270)][_0x12cc45(0x4b4)](_0xbf14b2,{'body':_0x8cb4c8});}async[_0x48c788(0x46f)](_0x2c1468){const _0x4e7db5=_0x48c788,_0x1705f7=this[_0x4e7db5(0x392)]()+_0x4e7db5(0x446);return(await this[_0x4e7db5(0x270)]['get'](_0x1705f7,{'params':{'objectID':_0x2c1468[_0x4e7db5(0x3d1)],'unitID':_0x2c1468['unitID']}}))[_0x4e7db5(0x1ef)][_0x4e7db5(0x269)];}async[_0x48c788(0x259)](_0x513486){const _0x21a1e7=_0x48c788,_0xdec4b9=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x21a1e7(0x270)]['put'](_0xdec4b9,{'body':_0x513486});}};pt=io([es(0x0,_0x1df0bc(_0x49edd2)),es(0x1,_0x1df0bc(_0x475c15))],pt);var oo=Object[_0x48c788(0x299)],ao=Object['getOwnPropertyDescriptor'],co=(_0x52465c,_0x41107c,_0x590fd2,_0x5488dc)=>{const _0x13343f=_0x48c788;for(var _0x5259da=_0x5488dc>0x1?void 0x0:_0x5488dc?ao(_0x41107c,_0x590fd2):_0x41107c,_0x39d29d=_0x52465c[_0x13343f(0x3c7)]-0x1,_0x23b274;_0x39d29d>=0x0;_0x39d29d--)(_0x23b274=_0x52465c[_0x39d29d])&&(_0x5259da=(_0x5488dc?_0x23b274(_0x41107c,_0x590fd2,_0x5259da):_0x23b274(_0x5259da))||_0x5259da);return _0x5488dc&&_0x5259da&&oo(_0x41107c,_0x590fd2,_0x5259da),_0x5259da;},ts=(_0x5833d3,_0x940302)=>(_0x375fa4,_0x3ae9e0)=>_0x940302(_0x375fa4,_0x3ae9e0,_0x5833d3);const ho=['image/png','image/jpeg',_0x48c788(0x27b),_0x48c788(0x2a4),_0x48c788(0x3c8)],lo=0x5*0x400*0x400,_o=_0x48c788(0x21e),uo=_0x48c788(0x1dc),fo=_0x48c788(0x2c3),go=_0x48c788(0x2aa);let It=class{constructor(_0x582c7b,_0x151399){const _0x31a9a7=_0x48c788;l(this,'_waitCount',0x0),l(this,_0x31a9a7(0x225),new _0x255156()),l(this,_0x31a9a7(0x335),this[_0x31a9a7(0x225)]),l(this,_0x31a9a7(0x47a),new Map()),(this['_httpService']=_0x582c7b,this['_configService']=_0x151399);}[_0x48c788(0x36c)](_0x45c10c){const _0x3b4dd6=_0x48c788;this[_0x3b4dd6(0x435)]=_0x45c10c,this[_0x3b4dd6(0x225)][_0x3b4dd6(0x325)](_0x45c10c);}[_0x48c788(0x2d4)](_0x340fda,_0x38b7c5){const _0x7993f0=_0x48c788;if(_0x38b7c5===_0x55f8db['BASE64']){const _0x203b93=new Image();return _0x203b93[_0x7993f0(0x488)]=_0x340fda,_0x203b93;}return this['_imageSourceCache'][_0x7993f0(0x4ce)](_0x340fda);}['addImageSourceCache'](_0xbfd90,_0x40cc70,_0x58e93d){const _0x3b7589=_0x48c788;_0x40cc70===_0x55f8db[_0x3b7589(0x332)]||_0x58e93d==null||this['_imageSourceCache'][_0x3b7589(0x25a)](_0xbfd90,_0x58e93d);}async[_0x48c788(0x39b)](_0x3f6a4c){const _0x4769e4=_0x48c788;try{const _0x3c4453=this[_0x4769e4(0x292)](this[_0x4769e4(0x379)](),''+_0x3f6a4c),_0xa3a576=(await this['_httpService'][_0x4769e4(0x4ce)](_0x3c4453))[_0x4769e4(0x1ef)];return _0xa3a576[_0x4769e4(0x1b3)]&&_0xa3a576['error']['code']===Es['OK']?Promise[_0x4769e4(0x49e)](_0xa3a576['url']):Promise['reject'](_0xa3a576[_0x4769e4(0x1b3)]);}catch(_0x460b79){return Promise[_0x4769e4(0x333)](_0x460b79);}}async[_0x48c788(0x352)](_0x275e51){const _0x598388=_0x48c788;let _0x1711e4='';if(!ho[_0x598388(0x418)](_0x275e51['type']))return this[_0x598388(0x267)](),Promise[_0x598388(0x333)](new Error(_0x3caa53[_0x598388(0x22a)]));if(_0x275e51[_0x598388(0x457)]>lo)return this[_0x598388(0x267)](),Promise['reject'](new Error(_0x3caa53[_0x598388(0x236)]));try{const _0x5e5bf5=new FormData();_0x5e5bf5['append']('file',_0x275e51);const _0x355e1f=this[_0x598388(0x37c)]()+_0x598388(0x43b)+_0x275e51[_0x598388(0x457)][_0x598388(0x1e6)](),_0x2dd881=await(await fetch(_0x355e1f,{'method':_0x598388(0x2f9),'body':_0x5e5bf5}))[_0x598388(0x234)]();if(typeof _0x2dd881[_0x598388(0x298)]!=_0x598388(0x484))return this[_0x598388(0x267)](),Promise['reject'](new Error(_0x3caa53[_0x598388(0x1bb)]));_0x1711e4=_0x2dd881[_0x598388(0x298)];}catch{return this[_0x598388(0x267)](),Promise[_0x598388(0x333)](new Error(_0x3caa53[_0x598388(0x1bb)]));}return new Promise((_0x53bbe9,_0x3d4063)=>{const _0x595a10=_0x598388,_0x105f19=new FileReader();_0x105f19[_0x595a10(0x3d6)](_0x275e51),_0x105f19[_0x595a10(0x490)]=_0x139582=>{const _0x3590f0=_0x595a10;var _0x161cfa;const _0xf8589e=(_0x161cfa=_0x139582['target'])==null?void 0x0:_0x161cfa['result'];if(_0xf8589e==null){this[_0x3590f0(0x267)](),_0x3d4063(new Error(_0x3caa53[_0x3590f0(0x1bb)]));return;}const _0x287a0d=_0x41ebb1[_0x3590f0(0x2e7)](0x6);_0x53bbe9({'imageId':_0x287a0d,'imageSourceType':_0x55f8db[_0x3590f0(0x405)],'source':_0x1711e4,'base64Cache':_0xf8589e,'status':_0x3caa53[_0x3590f0(0x40b)]}),this[_0x3590f0(0x267)]();};});}['_getUploadFileURL'](){const _0x42950b=_0x48c788;var _0x60ac54;return(_0x60ac54=this[_0x42950b(0x35d)][_0x42950b(0x2d9)](_o))!=null?_0x60ac54:uo;}[_0x48c788(0x379)](){const _0x4ef9f1=_0x48c788;var _0x15bd32;return(_0x15bd32=this['_configService'][_0x4ef9f1(0x2d9)](fo))!=null?_0x15bd32:go;}['_replaceFileID'](_0x2cf260,_0x442635){const _0x180224=_0x48c788;return _0x2cf260[_0x180224(0x263)](_0x180224(0x252),_0x442635);}['_decreaseWaiting'](){const _0x506eec=_0x48c788;this[_0x506eec(0x435)]-=0x1,this[_0x506eec(0x225)][_0x506eec(0x325)](this[_0x506eec(0x435)]);}};It=co([ts(0x0,_0x1df0bc(_0x49edd2)),ts(0x1,_0x475c15)],It);function _0x515a(){const _0x2cbaaf=['interceptor','[SyncedState]:\x20received\x20acknowledgement.','userID','6106485hTZRTN','_getSheetObject','cmd','snapshot','clipPath','range','_imageSourceCache','univer-offline','update','history','getUnitOnRev','_transformPreviousActiveRange','revision','pluginName','_ensureSubject','/universer-api/snapshot/','string','getRelativeCoord','roles','_onConflict','src','UNIVER_COLLABORATION_CLIENT_PLUGIN','#fff','212238uMBKzX','Starting','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_scheduleCollaborationTimeoutTimer','removeParam','onload','onMissedChangesetFetched','setParam','InsertColCommandId','LOGIN_URL_KEY','_startCollaboration','_clearHeartbeatTimer','SNAPSHOT_SERVER_URL_KEY','permission.title','1014655poAXjc','uni.network.url-service','0\x200\x2016\x2016','none','changesets','resolve','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','MSG_FOR_ERROR','USERS_ENTER','_shapes','failed\x20to\x20apply\x20missed\x20changesets!','transformSelections','text','children','/universer-api/snapshot','/block/','_http','_getDocObject','_socketMessageSubscription','...','saveOfflineData','focused$','startRow','editing\x20status\x20changed\x20to','getCurrentRevForDocument','_redoStacks','_updateLocalCache','post','_labelPosition','doc.mutation.rich-text-editing','_removeCollabCursors','_getLoginPath','save\x20fail\x20reason\x20is\x20','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','fetchThroughInterceptors','fetchMissingChangesets','_themeService','column','pushState','_sheetTransformSelectionsService','_unlockTransition','_updateSubUnitFromURLParams','setItem','_entityInit$','LICENSE_DISTRO_REJECTED','status','rev','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose$','_awaitingChangeset','\x0aCurrent:\x20','height','getCollabCursors$','get','_selfUnitIDs','RemoveRowCommandId','show','permissionRejEvent','_userManagerService','UNIVER_DOC','syncEditingCollabCursor','onStateChange','close$','collabStatus.fetchMiss','getSheetBlock','debug','_exhaustSavingTask','editingUnit','error','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','FAIL','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','M0\x200H16V16H0z','LIVESHARE_FETCH_OPERATIONS','/universer-api/authz','onSyncEditingCollabCursor','ERROR_IMAGE','m2Prime','UNAUTHENTICATED','sheetID','unitId','path','fillStyle','collab-text-anchor-','width','SEND_CHANGESET_TIMEOUT','transformIMECache','contains','CHANGESET_REVISION_CONFILICT','getRoom','isArray','_status$','className','verdancy600','getCollabEntity','stringify','transformRemoteChangeset','_startSheetCollabCursor','_toggleOnline','getFocusedUnit','_executeRemoteChangeset','_disableEditing','hide','transformUndoRedo','_getUndoStack','_hover','_initModules','\x20-\x20','univer-online-status-title','/universer-api/stream/file/upload','_handleEvent','fromCollab','collaboratorID','patch','ranges','_syncEditingCollabCursor','_docSkeletonManagerService','url(#on-line-single_clip0_910_349)','setActiveRange','toString','[OfflineState]:\x20received\x20rejection.','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','_commandService','_tryEnsureSocket','_localCacheService','asObservable','UPDATE_CURSOR','docStateChange$','body','_clearTimeoutTimer','_handleLeaveEvent','_docStateChangeManagerService','hovered','registerRefRange','Ready','parse','RECV','c2Prime','makeDirty','unsubscribe','triggerDblclick','hasOwnProperty','/new_changes','_color','_clearLocalCache','ACTIVE_UNIT_EVENT_CHANNEL','_type','_onCursorDelete','tag','_scheduleSaving','_rescheduleHeartbeatEvent','INTERNAL_ERROR','CONNECTOR_DATA_TOO_LARGE','LICENSE_EXPORT_SIZE_EXCEEDED','_undoStacks','list','resend','_permissionService','add','then','svg','_disabled','_clearOtherTimers','loadSheet','jiqing500','OFFLINE','urlChange$','_createSocket','_sendHeartbeat','_docTransformSelectionsService','_anchor','defIds','APPLY_REVISION_CONFILICT','_onUserJoin','onRemoteRej','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','SYNCED','_snapshotServerService','_submitChangeset','NEW_CHANGESETS','TOO_MANY_REQUESTS','closePath','_change$','subunit','storage','unknown','sheets','ERROR_IMAGE_TYPE','red300','USERS_LEAVE','_collabCursorState$','complete','_updateCollabCursors','createElement','_transformService','setUndoRedoMutationParamsCache','getActiveRange','json','COMPRESS_MUTATION_SEND','ERROR_EXCEED_SIZE','subscribe','getInterceptPoints','OnLineSingle','onlineStatusIcon','_docSkeleton','_getRedoStack','InsertRowCommandId','params','_lastPointer','getParam','off-line-single_clip0_910_343','createSocket','1em','forEach','MoveRangeCommandId','_socketReady','entries','error$','max','onCommandExecuted','_cachedData','reverse','toggleOffline','_document','put','SUBMIT_CHANGESET','FETCH_MISSING','{fileID}','HEADER_MENU','UNDEFINED','title','loadOfflineData','lineTo','random','putCollaborators','set','idSuffix','getRangePointData','offline','actions','saveSheetBlock','memberID','_onFetchMissResult','objectActions','replace','url(#$1','connection\x20error','arc','_decreaseWaiting','cursorInfo$','collaborators','socketService','conflict.content','message$','_online','_onRemoteRejected','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_HTTPService','isActive','unit','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_unitStatus','replaceTextRanges','_createInitialState','_unitOnClients','use','_removeClearOtherTimer','currentColor','image/jpg','isEditing','updateOfflineData','AWAITING','_entities','registerBeforeClose','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','IDLE','getMergeData','_ws','_getSnapshotAPIPrefix','addObject','getCurrentUnitForType','symbol','newValue','_collabCursorController','_onRefRangeChange','_singleActiveUnitService','objects','_memberService','_name','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onPointerEnterObserver','_replaceFileID','synced','updateMember','color','_onRecvEvent','close','FileId','defineProperty','FETCH_MISS','_hideTimer','[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.','href','UNIVER_SHEET','[FetchMissState]','_onRemoteChangeset','permission.content','location','OffLineSingle','image/gif','state','_createHandler','INGEST','session.room-full','_initStatusComponent','/universer-api/file/{fileID}/sign-url','_getCtorByUniverType','allowed','_logService','_scheduleClearOtherTimer','_scheduleTimestamp','getScrollXYByRelativeCoords','_onConnectionFailed','/rev/','registerComponent','_getScale','onPointerMoveObserver','18434862Vppmdq','transform','_clearScheduledTask','onTransformRemoteChangesetByIMECache','collaboration.single-unit.warning','moveTo','SNAPSHOT_INVALID_SNAPSHOT','getOwnPropertyDescriptor','displayName','_getCurrentRevision','getOwnPropertySymbols','workbook','disableLocalCache','EXCHANGE_SIGN_URL_SERVER_URL_KEY','split','_state','save','LICENSE_MAX_UNITS_EXCEEDED','_loadDoc','\x20in\x20_schedule.','_applyRemoteChangeset','_pendingMutations','rgba(255,\x20255,\x20255,\x200.01)','OTHER_CLIENTS_EDITING','onRemoteAck','getSelections','appendMutation','_transformRemoteChangesetByIMECache','LIVESHARE_TERMINATE','unitID','getImageSourceCache','resourceIDs','infoRsp','catch','localeService','getConfig','ws://127.0.0.1:8000/universer-api/comb/connect','YUUMI_URL_COL_OUT_OF_RANGE','Univer','_docTransformIMECacheService','session','executeCommand','/role','_injector','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','name','_checkMissing','xlink:href','url(#off-line-single_clip0_910_343)','generateRandomId','_lockTransition','_members','getTypeOfUnitDisposed$','result','CONFLICT','_timeoutTimer','LIVESHARE_NEW_HOST','awaiting','bottom','_exhaustRemoteChangesetQueue','auth.needGotoLoginAlert','_docSyncEditingCollabCursorService','VIEW_MAIN','pending','_session','session.will-retry','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','POST','_getSaveTimeout','_socketService','selections','Unknown\x20user','row','popstate','drawWith','encode','_state$','replaceState','getUnitType','[UniverCollaborationClientPlugin]','_event$','HEARTBEAT_TIMEOUT','_getMergeRange','_saveCache','CHANGESET_ACK','univer-pro.collaboration-client-socket-service','_getAPIPrefix','UniverIcon','_refRangeService','UNIVER_SLIDE','getCurrentUser','div','currentSkeleton$','transformMutationsWithChangeset','_localeService','findNodePositionByCharIndex','listRoles','onlineStatus','_unitID','not_collab','_colorIndex','COMPLETION_FINISHED','unit-cache-','whenReady','clearTimeout','confirm','onTransformSelections','apply','_cursorInfo$','enableAuthServer','getAncestorScale','next','getValue','/unit/','_handleHeartbeatEvent','getMemberID','NO_OTHER_CLIENTS_EDITING','UNRECOGNIZED','_isPermissionRej','_remoteChangesetQueue','onRemoteChangeset','_setupSubUnitSync','icon','[CollaborationUndoRedoService]','BASE64','reject','_sendingTimer','change$','_updateLocalCursor','_onLocalMutation','clear','prototype','/resources','transformMutation','_clearRedo','assignAColorForMemberID','_onRemoteACK','_httpService','_init','session.connection-failed','getCurrent','collabCursorState$','FromArray','PENDING','_collaborationController','LOCAL_CACHE_INTERVAL','_textBubble','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_collaborationTimeoutTimer','open$','_joinRoom','updateCursorEvent','NOT_FOUND','measureText','_removeRoom','_urlService','saveImage','PERMISSION_DENIED','getActiveSheet','registerOnClose','_scheduleReconnection','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getCellPositionByOffset','_scene','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','updatePermissionPoint','labelPosition','_configService','_transformIMECache','on-line-single_clip0_910_349','roomMembers$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','5667528PCUapZ','_transformUndoredo','some','_getAnchorBounding','_socket','_transitionLocked','onlineStatusTitle','_onCursorUpdate','_compressMutationService','COLLAB_SUBMIT_CHANGESET_URL','setWaitCount','getCollabEntity$','_unitId','getUnitStatus$','collabStatus.offline','collaborationUniverTypes','getTime','_onMessage','HELLO','_uiPartsService','evenodd','JOINING','_acknowledgedAwaitingChangeset','_getSignURL','_hovered','SNAPSHOT_URL_KEY','_getUploadFileURL','roomInfos','_onUserLeave','concat','_showConflictNotification','send','_substituteRedoStack','conflict.title','unshift','enableLocalCache','indexOf','_clearUndo','delete','_onJoinRoomEvent','socket\x20open.','_roomMembers','_univerInstanceService','_retryConnectingTimer','_transformStack','assign','_localStorageService','baseRev','_getAPIPrefixPath','PSEUDO_FETCH_MISSING_RESULT','substring','getMember','_roomMembers$','_loadSheet','[DataLoaderController]','_onCombEvent','InsertRangeMoveRightCommandId','getImage','RemoveColCommandId','_colorAssignService','Warning','_notificationService','[CollaborationEntity]','createInstance','conflict','beginPath','JOIN','addObjects','APPLY_NON_SEQUENTIAL_REVISION','_updateURLWithCurrentState','transformByState','c1Prime','_range','translate(.97)','_setupBeforeClosingHandler','LEAVE','push','_schedule','blue400','setAlpha','_saveTaskMap','?url=','_heartbeatTimer','mutations','_collabSessionService','_undoRedoService','DeleteRangeMoveUpCommandId','[CollaborationState]:\x20apply\x20error!','deepClone','LIVESHARE_REQUEST_HOST','_waitForHeartbeatResponse','pipe','/allowed','toggleOnline','33282rFpMpr','addEventListener','UNIVER_UNKNOWN','_eventUnsubscribe','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','univerjs-icon\x20univerjs-icon-','YUUMI_UNABLE_LOAD_URL','length','image/bmp','_substituteUndoStack','INVALID_ARGUMENT','_draw','/-/object/-/batch_allowed','/object','getTypeOfUnitAdded$','setShapeProps','colorChannel1','objectID','_beforeCloseService','gold400','defs','setCurrentUser','readAsDataURL','event$','collabStatus.notCollab','[OfflineState]:\x20received\x20acknowledgement.','_cursors','_onConnectionOpen','_render','_id','_retryCount','onMouseMove','csAckEvent','&to=','extend','transformChangesets','_initStatusListener','deleteCollaborator','_updateStatus','disposeWithMe','map','_collaborationPaused','sessionStatus','subUnitId','collaMsg','univer-online','enableOfflineEditing','values','_scheduleHeartbeat','onPointerLeaveObserver','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_revisionService','has','LIVESHARE_OPERATION','registerHTTPInterceptor','toRgbString','_renderManagerService','Error','_cursor','transformStack\x20failed!','178KVvZQM','black','InsertRangeMoveDownCommandId','endColumn','init','activeSheet$','[CollaborationSession]','fill','RETRY_CONNECTING_MAX_COUNT','UUID','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','skeleton','_sessions','fetch_missing','_transformSelections','SUCCUSS','liveShareNewHost','_sessionStatus$','_sendHeartbeatTimer','originalMeta','textRanges','getUndoRedoMutationParamsCache','HEARTBEAT','call','endRow','m1Prime','getSheetBySheetId','_sheetSkeletonManagerService','includes','_createInitialStateImpl','_updateState','setTimeout','startColumn','_anchorDot','_toggleOffline','_drawAnchor','eventID','#FFF','searchParams','routeKey','/universer-api/oidc/authpage','override','cursorInfo','_syncEditingCollabCursorService','0\x200\x2017\x2016','_socket$','_incrementRevisionNumber','_assignedColors','[PendingState]:\x20received\x20rejection.','UNKNOWN_CODE','all','selection','LICENSE_IMPORT_SIZE_EXCEEDED','ONLINE','fillText','/fetchmissing?from=','getItem','_waitCount','getRenderById','awaitingChangeset','leaveEvent','_startDocCollabCursor','NOT_COLLAB','?size=','COLLAB_WEB_SOCKET_URL','collabStatus.synced','data','_handler','CHANGESET_REJ','APPLY_PERMISSION_DENIED','_clearCollaborationTimeoutTimer','_drawRange','from','onSendChangeset','/collaborator','12mPJSdZ','_replayCachedMutations','sessionStatus$','removeMember','status$','requireSession','attrs','Steady','clearInterval','HEARTBEAT_INTERVAL','getUnitId','_config','fillRule','_queuedRemoteChangesets','[PendingState]:\x20unhandled\x20univer\x20type:\x20','objectType','size','startsWith','off-line-single','AWAITING_WITH_PENDING','type','currentTheme$','/object/','function','getSheetId','10746856nUjyhq','restore','min','_send','_messageService','_handleJoinEvent','onMissingChangesets','_handleHover','PERMISSION_REJ','COMPRESS_MUTATION_APPLY','UNKNOWN_CMD','round','onStarting','saveSnapshot','dispose','listCollaborators','purple300'];_0x515a=function(){return _0x2cbaaf;};return _0x515a();}var Ms=Object['defineProperty'],mo=Object[_0x48c788(0x2bd)],So=(_0x275e94,_0x531c6e,_0x1cd5f7)=>_0x531c6e in _0x275e94?Ms(_0x275e94,_0x531c6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cd5f7}):_0x275e94[_0x531c6e]=_0x1cd5f7,vo=(_0x2889ba,_0x254b7d,_0x20260c,_0x50f7ac)=>{const _0x14d88e=_0x48c788;for(var _0x2b3a7f=_0x50f7ac>0x1?void 0x0:_0x50f7ac?mo(_0x254b7d,_0x20260c):_0x254b7d,_0x4561d8=_0x2889ba[_0x14d88e(0x3c7)]-0x1,_0xeed04d;_0x4561d8>=0x0;_0x4561d8--)(_0xeed04d=_0x2889ba[_0x4561d8])&&(_0x2b3a7f=(_0x50f7ac?_0xeed04d(_0x254b7d,_0x20260c,_0x2b3a7f):_0xeed04d(_0x2b3a7f))||_0x2b3a7f);return _0x50f7ac&&_0x2b3a7f&&Ms(_0x254b7d,_0x20260c,_0x2b3a7f),_0x2b3a7f;},ss=(_0x549925,_0x41890c)=>(_0x1fe467,_0x2f96c4)=>_0x41890c(_0x1fe467,_0x2f96c4,_0x549925),po=(_0x41e830,_0x4a3ab0,_0x3170c6)=>(So(_0x41e830,_0x4a3ab0+'',_0x3170c6),_0x3170c6);const Io=_0x48c788(0x489);let Et=class extends _0x12f480{constructor(_0x4afdb6,_0xf03803,_0x2f53be){const _0x403b9b=_0x48c788;super(),this[_0x403b9b(0x452)]=_0x4afdb6,this[_0x403b9b(0x2ad)]=_0xf03803,this[_0x403b9b(0x2e1)]=_0x2f53be;}[_0x48c788(0x46c)](_0x5edeb7){const _0xe0250b=_0x48c788;var _0x3be023,_0x3de2d6,_0x538ac9,_0x2ddb57,_0x41d844;_0x5edeb7[_0xe0250b(0x3f4)](_0x3b301b)&&this[_0xe0250b(0x2ad)][_0xe0250b(0x1b3)](_0xe0250b(0x305),_0xe0250b(0x3c4));let _0x1a6bd1=[[_0x3b301b,{'useClass':vt}],[Re],[At],[_0x49edd2],[Ns,{'useClass':Vr}],[ee],[D],[_0x15b3f3],[Ve],[Be],[ke],[Mt],[Ge],[Cs,{'useClass':(_0x3de2d6=(_0x3be023=this[_0xe0250b(0x452)])==null?void 0x0:_0x3be023[_0xe0250b(0x26a)])!=null?_0x3de2d6:_t}],[_0x18e4ed,{'useClass':_0x1c4b96}],[_0x32765d,{'useClass':St}],[_0x49a670,{'useClass':pt}],[_0x5863cd,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x538ac9=this[_0xe0250b(0x452)])!=null&&_0x538ac9['enableSingleActiveInstanceLock']&&_0x1a6bd1[_0xe0250b(0x3ae)]([Xe,{'useClass':Tn}]),((_0x2ddb57=this[_0xe0250b(0x452)])==null?void 0x0:_0x2ddb57[_0xe0250b(0x371)])==null||this['_config'][_0xe0250b(0x371)]['includes'](_0x5b42a8[_0xe0250b(0x29e)])?_0x1a6bd1['push']([$e]):this[_0xe0250b(0x452)]['collaborationUniverTypes'][_0xe0250b(0x418)](_0x5b42a8[_0xe0250b(0x4d4)])&&_0x1a6bd1['push']([Fe]),_0x1a6bd1=_0x166e22(_0x1a6bd1,(_0x41d844=this[_0xe0250b(0x452)])==null?void 0x0:_0x41d844[_0xe0250b(0x425)]),_0x1a6bd1[_0xe0250b(0x244)](_0x27975a=>_0x5edeb7[_0xe0250b(0x20d)](_0x27975a)),_0x5edeb7[_0xe0250b(0x4ce)](_0x49edd2)[_0xe0250b(0x3f6)]({'priority':0x14,'interceptor':_0x398469({'maxParallel':0x6})}),this[_0xe0250b(0x1d9)]();}['_initModules'](){const _0x36c369=_0x48c788;var _0x5d6634,_0x5890a1;(_0x5d6634=this[_0x36c369(0x452)])!=null&&_0x5d6634[_0x36c369(0x3ee)]||this[_0x36c369(0x2e1)][_0x36c369(0x4ce)](D)[_0x36c369(0x2c2)](),(_0x5890a1=this[_0x36c369(0x452)])!=null&&_0x5890a1[_0x36c369(0x323)]&&this[_0x36c369(0x2e1)]['get'](Ge);}};po(Et,_0x48c788(0x481),Io),Et=vo([_0x5c5115(_0x149281),ss(0x1,_0xcf8387),ss(0x2,_0x1df0bc(_0x1883e3))],Et);export{no as AUTHZ_URL_KEY,pt as AuthzIoHttpService,on as COLLAB_SUBMIT_CHANGESET_URL_KEY,Ji as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Rr as CollaborationStatusDisplay,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,ps as HEARTBEAT_TIMEOUT_KEY,Cs as ICollaborationSocketService,Ns as IURLService,nn as LOCAL_CACHE_INTERVAL_KEY,cn as LOGIN_URL_KEY,D as LocalCacheService,Ki as SEND_CHANGESET_TIMEOUT_KEY,Wi as SNAPSHOT_SERVER_URL_KEY,Yi as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Vr as WebURLService,fn as deserializeToCombResponse,gn as serializeCombRequest};
|