@univerjs-pro/collaboration-client 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +1 -2
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +1 -2
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +1 -2
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +6 -7
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +1 -2
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +7 -8
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +1 -2
- package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +1 -1
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +1 -2
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +4 -3
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -2
- package/lib/types/controllers/collaboration/utils/empty.d.ts +3 -0
- package/lib/types/plugin.d.ts +7 -4
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -2
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -1
- package/lib/types/services/permission/permission.service.d.ts +1 -2
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +1 -1
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +1 -1
- package/lib/types/services/socket/collaboration-socket.service.d.ts +1 -1
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
- package/lib/types/services/url/url.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +26 -28
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x1f5a54=_0x2f7f;(function(_0x21ef17,_0x119474){const _0x1dac4f=_0x2f7f,_0x57b404=_0x21ef17();while(!![]){try{const _0x51cb61=-parseInt(_0x1dac4f(0x1dd))/0x1*(parseInt(_0x1dac4f(0x297))/0x2)+-parseInt(_0x1dac4f(0x1f2))/0x3*(-parseInt(_0x1dac4f(0x2f1))/0x4)+-parseInt(_0x1dac4f(0x20f))/0x5*(parseInt(_0x1dac4f(0x3c9))/0x6)+parseInt(_0x1dac4f(0x3bc))/0x7*(-parseInt(_0x1dac4f(0x3b7))/0x8)+parseInt(_0x1dac4f(0x1ce))/0x9*(parseInt(_0x1dac4f(0x2f9))/0xa)+-parseInt(_0x1dac4f(0x377))/0xb+-parseInt(_0x1dac4f(0x2de))/0xc*(-parseInt(_0x1dac4f(0x229))/0xd);if(_0x51cb61===_0x119474)break;else _0x57b404['push'](_0x57b404['shift']());}catch(_0x3c8866){_0x57b404['push'](_0x57b404['shift']());}}}(_0x2454,0xd056a));var ks=Object[_0x1f5a54(0x29f)],Bs=(_0x1a10e6,_0x3485f1,_0x47f4b2)=>_0x3485f1 in _0x1a10e6?ks(_0x1a10e6,_0x3485f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47f4b2}):_0x1a10e6[_0x3485f1]=_0x47f4b2,l=(_0x96d766,_0x29f11d,_0x35ea80)=>Bs(_0x96d766,typeof _0x29f11d!=_0x1f5a54(0x200)?_0x29f11d+'':_0x29f11d,_0x35ea80);import{Disposable as _0x462626,toDisposable as _0x5d3cf2,UniverInstanceType as _0x5cab0b,UserManagerService as _0x49718f,IUniverInstanceService as _0x55bd21,DisposableCollection as _0x1382fe,IConfigService as _0x43c997,ILogService as _0x3e33de,ISnapshotServerService as _0x49d5c1,RxDisposable as _0x5915f1,LocaleService as _0x4eec6f,ILocalStorageService as _0x38f292,Tools as _0x4b796f,ICommandService as _0x257ce4,JSONX as _0x13a804,IPermissionService as _0x1721b0,IUndoRedoService as _0x4e4a39,sequenceExecute as _0x337b1e,OnLifecycle as _0x182a37,LifecycleStages as _0x46c7aa,CommandType as _0x4d2326,Rectangle as _0x708e4b,ThemeService as _0x5a1d7c,Workbook as _0x40f416,textEncoder as _0x4823f1,b64DecodeUnicode as _0x5dde85,LocalUndoRedoService as _0x10db64,IContextService as _0x1da175,COLORS as _0x411a85,ColorKit as _0x41c257,isInternalEditorID as _0xe275c4,Plugin as _0x2b09f1,IAuthzIoService as _0x29e930,mergeOverrideWithDependencies as _0x4e0679,DependentOn as _0x476f81}from'@univerjs/core';import{SheetsSelectionsService as _0x5914fd,SetSelectionsOperation as _0x109738,InsertSheetMutation as _0x54cc2b,WorkbookEditablePermission as _0x278a53,RefRangeService as _0x351ccc,EffectRefRangId as _0x349867,handleIRemoveRow as _0x2ff430,handleIRemoveCol as _0x2db791,handleMoveRange as _0x544ab2,handleInsertRow as _0x56aa1d,handleInsertRangeMoveRight as _0x515386,handleInsertRangeMoveDown as _0x13c601,handleInsertCol as _0x185ab7,handleDeleteRangeMoveUp as _0xad81ef,handleDeleteRangeMoveLeft as _0x3e36a2,runRefRangeMutations as _0x16303f,SetWorksheetActivateCommand as _0x436c7c}from'@univerjs/sheets';import{MessageType as _0x454b23}from'@univerjs/design';import{IBeforeCloseService as _0x28b08e,IMessageService as _0x58c973,INotificationService as _0x1d0f07,useObservable as _0x34ebf9,BuiltInUIPart as _0x184510,IUIPartsService as _0x16c51a}from'@univerjs/ui';import{CollaborationEvent as _0x505428,parseChangesetToProtocol as _0x29a67f,RevisionService as _0x2fc807,isTransformMutationFailure as _0x2bbef6,isTransformMutationsWithChangesetSuccess as _0x5abc17,ITransformService as _0x1215ee,mapDocumentTypeToUniverType as _0x2c9cce,isTransformChangesetsSuccess as _0x29a147,CompressMutationService as _0xb14cef,parseProtocolChangeset as _0x13fead,SnapshotService as _0x13134a,isTransformMutationsWithChangesetFailure as _0x2aee01,UniverCollaborationPlugin as _0x460423}from'@univerjs-pro/collaboration';import{Inject as _0x61a763,createIdentifier as _0x2b1b05,Injector as _0x2e9f94,Optional as _0x455db1}from'@wendellhu/redi';import{merge as _0x2e3217,Subject as _0x295019,BehaviorSubject as _0x24a55e,distinctUntilChanged as _0x4dffca,fromEvent as _0x45523d,of as _0x110ce6,takeUntil as _0x57fb4a,debounceTime as _0x49f759,filter as _0x21a70c,switchMap as _0x44b0e5,combineLatest as _0x5732cb,shareReplay as _0x956324,mapTo as _0x43ae84,concatMap as _0x12334d}from'rxjs';import{map as _0x28f321,takeUntil as _0x31e4a6,take as _0x4747bd,filter as _0x3d131e,delay as _0x29d1e4,shareReplay as _0x4a0e36,switchMap as _0x4c3023}from'rxjs/operators';import{IMEInputManagerService as _0x3f2d0c,TextSelectionManagerService as _0x233706,serializeTextRange as _0x4605fa,DocStateChangeManagerService as _0x3a189c,SetTextSelectionsOperation as _0x477910,RichTextEditingMutation as _0x52bb0d,getDocObject as _0x5ef147,DocSkeletonManagerService as _0x3824ed}from'@univerjs/docs';import{HTTPService as _0x11da14,WebSocketService as _0x2067e4,MergeInterceptorFactory as _0x10f37e,HTTPRequest as _0x5b1605,IHTTPImplementation as _0x449c33,XHRHTTPImplementation as _0x13770f,ThresholdInterceptorFactory as _0x50e197}from'@univerjs/network';import{ImageSourceType as _0x2a1a1d,ImageUploadStatusType as _0x190b89,IImageIoService as _0x32dd32}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x13b7f9,serializeRangeWithSheet as _0x24fc6d}from'@univerjs/engine-formula';import _0x21574d from'lodash/debounce';import{Shape as _0x520a18,Rect as _0x5d7c63,Vector2 as _0x1a7ec4,IRenderManagerService as _0x8604c3,NodePositionConvertToCursor as _0x229c8a,getColor as _0x3b289f,TEXT_RANGE_LAYER_INDEX as _0x293d74,RegularPolygon as _0x2b0581}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x5f534a,VIEWPORT_KEY as _0x34fb7d,getCoordByCell as _0x1a9d48,getSheetObject as _0x54e459,SheetPermissionInitController as _0x302c8b}from'@univerjs/sheets-ui';import{useDependency as _0x32bad8,connectInjector as _0x2bdedc}from'@wendellhu/redi/react-bindings';function _0x2f7f(_0xb4ea9,_0x47e323){const _0x2454a0=_0x2454();return _0x2f7f=function(_0x2f7f0c,_0x5d6929){_0x2f7f0c=_0x2f7f0c-0x140;let _0x4b087d=_0x2454a0[_0x2f7f0c];return _0x4b087d;},_0x2f7f(_0xb4ea9,_0x47e323);}import _0x25f2cb,{forwardRef as _0x3c9976,useRef as _0x446d4f,createElement as _0x41bd2c}from'react';import _0x2d6edb from'clsx';import{IRemoteInstanceService as _0x49344d}from'@univerjs/rpc';const zi=_0x1f5a54(0x147),Zi=_0x1f5a54(0x179),Qi='SNAPSHOT_URL_KEY',en='SEND_CHANGESET_TIMEOUT',tn=0x7d0,sn=_0x1f5a54(0x1ac),nn=_0x1f5a54(0x3c3),rn=_0x1f5a54(0x163),on=0x7530,bs=_0x1f5a54(0x448),Ts=0x2710,an=_0x1f5a54(0x1c8),cn=0x4e20,hn=_0x1f5a54(0x25b),ln=0x3,_n=_0x1f5a54(0x14b),un=0x3e8,dn=_0x1f5a54(0x40d),fn=_0x1f5a54(0x14f),mn=_0x1f5a54(0x2f3),gn=_0x1f5a54(0x2e6);var Rs=(_0x1777da=>(_0x1777da[_0x1777da[_0x1f5a54(0x425)]=0x0]=_0x1f5a54(0x425),_0x1777da[_0x1777da['OK']=0x1]='OK',_0x1777da[_0x1777da[_0x1f5a54(0x37e)]=0x2]=_0x1f5a54(0x37e),_0x1777da[_0x1777da[_0x1f5a54(0x2b4)]=0x3]=_0x1f5a54(0x2b4),_0x1777da[_0x1777da[_0x1f5a54(0x239)]=0x4]=_0x1f5a54(0x239),_0x1777da[_0x1777da['UNAUTHENTICATED']=0x5]=_0x1f5a54(0x2ad),_0x1777da[_0x1777da[_0x1f5a54(0x298)]=0x6]=_0x1f5a54(0x298),_0x1777da[_0x1777da['INVALID_ARGUMENT']=0x7]=_0x1f5a54(0x271),_0x1777da[_0x1777da['TOO_MANY_REQUESTS']=0x8]=_0x1f5a54(0x1fe),_0x1777da[_0x1777da['COMPLETION_FINISHED']=0x9]=_0x1f5a54(0x34f),_0x1777da[_0x1777da[_0x1f5a54(0x278)]=0x1389]=_0x1f5a54(0x278),_0x1777da[_0x1777da[_0x1f5a54(0x3ee)]=0x1771]=_0x1f5a54(0x3ee),_0x1777da[_0x1777da[_0x1f5a54(0x285)]=0x1772]=_0x1f5a54(0x285),_0x1777da[_0x1777da[_0x1f5a54(0x3d6)]=0x1b59]=_0x1f5a54(0x3d6),_0x1777da[_0x1777da['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1f5a54(0x352),_0x1777da[_0x1777da[_0x1f5a54(0x214)]=0x1b5b]=_0x1f5a54(0x214),_0x1777da[_0x1777da[_0x1f5a54(0x382)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1777da[_0x1777da[_0x1f5a54(0x476)]=0x1f41]=_0x1f5a54(0x476),_0x1777da[_0x1777da[_0x1f5a54(0x302)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1777da[_0x1777da[_0x1f5a54(0x374)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1777da[_0x1777da['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x1f5a54(0x2ac),_0x1777da[_0x1777da[_0x1f5a54(0x1b2)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1777da[_0x1777da['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1f5a54(0x1bc),_0x1777da[_0x1777da[_0x1f5a54(0x166)]=0x2711]=_0x1f5a54(0x166),_0x1777da[_0x1777da[_0x1f5a54(0x35a)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1777da[_0x1777da[_0x1f5a54(0x1cd)]=-0x1]=_0x1f5a54(0x1cd),_0x1777da))(Rs||{}),H=(_0x223f5e=>(_0x223f5e[_0x223f5e[_0x1f5a54(0x471)]=0x0]=_0x1f5a54(0x471),_0x223f5e[_0x223f5e[_0x1f5a54(0x315)]=0x1]=_0x1f5a54(0x315),_0x223f5e[_0x223f5e[_0x1f5a54(0x320)]=0x2]=_0x1f5a54(0x320),_0x223f5e[_0x223f5e['UNIVER_SLIDE']=0x3]=_0x1f5a54(0x1f0),_0x223f5e[_0x223f5e[_0x1f5a54(0x1cd)]=-0x1]=_0x1f5a54(0x1cd),_0x223f5e))(H||{}),I=(_0x75d92f=>(_0x75d92f[_0x75d92f[_0x1f5a54(0x14d)]=0x0]=_0x1f5a54(0x14d),_0x75d92f[_0x75d92f[_0x1f5a54(0x230)]=0x1]=_0x1f5a54(0x230),_0x75d92f[_0x75d92f['JOIN']=0x2]=_0x1f5a54(0x1cc),_0x75d92f[_0x75d92f[_0x1f5a54(0x422)]=0x3]=_0x1f5a54(0x422),_0x75d92f[_0x75d92f[_0x1f5a54(0x358)]=0x4]='INGEST',_0x75d92f[_0x75d92f[_0x1f5a54(0x34b)]=0x5]=_0x1f5a54(0x34b),_0x75d92f[_0x75d92f[_0x1f5a54(0x46a)]=0x6]=_0x1f5a54(0x46a),_0x75d92f[_0x75d92f[_0x1f5a54(0x1cd)]=-0x1]=_0x1f5a54(0x1cd),_0x75d92f))(I||{}),yt=(_0x575536=>(_0x575536[_0x575536[_0x1f5a54(0x38d)]=0x0]=_0x1f5a54(0x38d),_0x575536[_0x575536['OK']=0x1]='OK',_0x575536[_0x575536[_0x1f5a54(0x378)]=0x2]=_0x1f5a54(0x378),_0x575536[_0x575536['UNRECOGNIZED']=-0x1]=_0x1f5a54(0x1cd),_0x575536))(yt||{}),Sn=Object['defineProperty'],vn=Object['getOwnPropertyDescriptor'],pn=(_0x299dd,_0x583e06,_0x4a0bd9,_0x1dd411)=>{const _0x288a03=_0x1f5a54;for(var _0x32dcfd=_0x1dd411>0x1?void 0x0:_0x1dd411?vn(_0x583e06,_0x4a0bd9):_0x583e06,_0x2e83ff=_0x299dd[_0x288a03(0x2d6)]-0x1,_0x45e844;_0x2e83ff>=0x0;_0x2e83ff--)(_0x45e844=_0x299dd[_0x2e83ff])&&(_0x32dcfd=(_0x1dd411?_0x45e844(_0x583e06,_0x4a0bd9,_0x32dcfd):_0x45e844(_0x32dcfd))||_0x32dcfd);return _0x1dd411&&_0x32dcfd&&Sn(_0x583e06,_0x4a0bd9,_0x32dcfd),_0x32dcfd;},Kt=(_0x261b19,_0x36759d)=>(_0x13a70c,_0x273a06)=>_0x36759d(_0x13a70c,_0x273a06,_0x261b19);let ne=class extends _0x462626{constructor(_0x12b3dd,_0x171d3d){const _0x10ed0a=_0x1f5a54;super(),l(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0x12b3dd,this[_0x10ed0a(0x411)]=_0x171d3d,this[_0x10ed0a(0x194)](_0x5d3cf2(_0x2e3217(this[_0x10ed0a(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x10ed0a(0x320)])[_0x10ed0a(0x180)](_0x28f321(_0x1f5651=>_0x1f5651[_0x10ed0a(0x2a2)]())),this[_0x10ed0a(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x10ed0a(0x315)])[_0x10ed0a(0x180)](_0x28f321(_0x3fc80e=>_0x3fc80e[_0x10ed0a(0x2a2)]())),this[_0x10ed0a(0x357)][_0x10ed0a(0x303)](_0x5cab0b['UNIVER_SLIDE'])['pipe'](_0x28f321(_0x334c0f=>_0x334c0f[_0x10ed0a(0x2a2)]())))[_0x10ed0a(0x2d9)](_0x1efe02=>this['_removeRoom'](_0x1efe02)))));}['setCurrentUser'](_0x3e1113){const _0x279ce1=_0x1f5a54;this[_0x279ce1(0x411)]['setCurrentUser'](_0x3e1113);}[_0x1f5a54(0x1c4)](){const _0x5481cf=_0x1f5a54;return this[_0x5481cf(0x411)]['getCurrentUser']();}[_0x1f5a54(0x30f)](_0x103dad,_0x44a420){const _0x12ce4f=_0x1f5a54;let _0x8d1351=this[_0x12ce4f(0x210)][_0x12ce4f(0x393)](_0x103dad);_0x8d1351||(_0x8d1351=new In(),this[_0x12ce4f(0x210)]['set'](_0x103dad,_0x8d1351)),_0x8d1351['updateMember'](_0x44a420);}[_0x1f5a54(0x437)](_0x141d98,_0x1e9078){const _0x3f2607=_0x1f5a54,_0x5376b6=this[_0x3f2607(0x210)][_0x3f2607(0x393)](_0x141d98);_0x5376b6&&_0x5376b6[_0x3f2607(0x437)](_0x1e9078);}['getRoom'](_0x326057){const _0x4bc543=_0x1f5a54;return this['_roomMembers'][_0x4bc543(0x393)](_0x326057);}['getMember'](_0x3cb698,_0x455ed3){const _0x30518f=_0x1f5a54,_0x6f43b=this[_0x30518f(0x210)][_0x30518f(0x393)](_0x3cb698);if(_0x6f43b)return _0x6f43b['getMember'](_0x455ed3);}[_0x1f5a54(0x420)](_0x2387d5){const _0x4f17d3=_0x1f5a54,_0x489c7c=this[_0x4f17d3(0x210)][_0x4f17d3(0x393)](_0x2387d5);_0x489c7c&&(_0x489c7c['dispose'](),this[_0x4f17d3(0x210)][_0x4f17d3(0x3a5)](_0x2387d5));}['dispose'](){const _0x2dfd01=_0x1f5a54;this[_0x2dfd01(0x210)]['forEach'](_0x5de16e=>_0x5de16e[_0x2dfd01(0x26e)]()),this[_0x2dfd01(0x210)]['clear']();}};ne=pn([Kt(0x0,_0x55bd21),Kt(0x1,_0x61a763(_0x49718f))],ne);class In extends _0x462626{constructor(){const _0x36ec65=_0x1f5a54;super(...arguments),l(this,_0x36ec65(0x18e),new Map());}[_0x1f5a54(0x26e)](){const _0x1fc5d8=_0x1f5a54;this[_0x1fc5d8(0x18e)][_0x1fc5d8(0x2f2)]();}[_0x1f5a54(0x30f)](_0xe590fd){const _0x122578=_0x1f5a54;this[_0x122578(0x18e)][_0x122578(0x22e)](_0xe590fd[_0x122578(0x2f0)],_0xe590fd);}[_0x1f5a54(0x437)](_0x14bc2f){this['_members']['delete'](_0x14bc2f);}[_0x1f5a54(0x29d)](_0x4261de){const _0x317bcd=_0x1f5a54;return this[_0x317bcd(0x18e)]['get'](_0x4261de);}}function En(_0x4fc726){const _0x3332a5=_0x1f5a54;var _0x50c162,_0x4700da,_0x213773,_0x2efe72;const _0x35380e=_0x4fc726[_0x3332a5(0x2a5)],_0x335417=JSON['parse'](_0x35380e);switch(_0x335417[_0x3332a5(0x3a8)]){case I[_0x3332a5(0x34b)]:case I['HELLO']:{const _0x239f61=_0x335417[_0x3332a5(0x1a4)];return{..._0x335417,'data':_0x239f61,'cmd':_0x335417['cmd']};}case I[_0x3332a5(0x1cc)]:{const _0x3957df=_0x335417[_0x3332a5(0x206)];return{..._0x335417,'data':_0x3957df,'cmd':_0x335417[_0x3332a5(0x3a8)]};}case I[_0x3332a5(0x46a)]:{const _0x5bb4c2=_0x335417[_0x3332a5(0x2dd)];switch(_0x5bb4c2['eventID']){case _0x505428[_0x3332a5(0x28a)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x50c162=_0x5bb4c2['permissionRejEvent'])==null?void 0x0:_0x50c162['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x27e)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x4700da=_0x5bb4c2[_0x3332a5(0x398)])==null?void 0x0:_0x4700da['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['NEW_CHANGESETS']:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x213773=_0x5bb4c2['newCsEvent'])==null?void 0x0:_0x213773['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x389)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x2efe72=_0x5bb4c2[_0x3332a5(0x27b)])==null?void 0x0:_0x2efe72['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['UPDATE_CURSOR']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x3a1)]},'cmd':_0x335417['cmd']};case _0x505428[_0x3332a5(0x346)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['joinEvent']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['USERS_LEAVE']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x221)]},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x1b9)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['liveShareNewHost']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x1df)]:case _0x505428[_0x3332a5(0x3e6)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['liveShareOperation']},'cmd':_0x335417['cmd']};case _0x505428[_0x3332a5(0x259)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x350)]},'cmd':_0x335417['cmd']};case _0x505428['MSG_FOR_ERROR']:return{..._0x335417,'data':_0x5bb4c2,'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x43c)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x45e)]},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['UPDATE_PERMISSION_OBJ']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x333)]},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['SHOULD_CLOSE_CONN']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['shouldCloseConn']},'cmd':_0x335417[_0x3332a5(0x3a8)]};default:return _0x335417;}}default:return _0x335417;}}function Cn(_0x27df3b){const _0x3a4bc8=_0x1f5a54;switch(_0x27df3b[_0x3a4bc8(0x3a8)]){case I[_0x3a4bc8(0x34b)]:case I['HELLO']:return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b[_0x3a4bc8(0x3a8)],'routeKey':_0x27df3b[_0x3a4bc8(0x2db)]});case I['INGEST']:{let _0x362335;switch(_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2cf)]){case _0x505428[_0x3a4bc8(0x412)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x412)],'updateCursorEvent':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x42b)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x42b)],'leaveEvent':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x346)]:{_0x362335={'eventID':_0x505428['USERS_ENTER'],'joinEvent':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428['LIVESHARE_NEW_HOST']:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x1b9)],'liveShareNewHost':_0x27df3b['data'][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x3e6)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x3e6)],'liveShareOperation':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x259)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x259)],'liveShareTerminate':_0x27df3b['data'][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x20b)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x20b)],'liveShareRequestHost':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428['LIVESHARE_FETCH_OPERATIONS']:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x1df)]};break;}default:_0x362335={'eventID':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2cf)]};}return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b[_0x3a4bc8(0x3a8)],'routeKey':_0x27df3b[_0x3a4bc8(0x2db)],'collaMsg':_0x362335});}case I[_0x3a4bc8(0x1cc)]:return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b['cmd'],'routeKey':_0x27df3b['routeKey'],'joinReq':_0x27df3b[_0x3a4bc8(0x2a5)]});case I[_0x3a4bc8(0x422)]:return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b[_0x3a4bc8(0x3a8)],'routeKey':_0x27df3b[_0x3a4bc8(0x2db)],'leaveReq':_0x27df3b[_0x3a4bc8(0x2a5)]});default:throw new Error(_0x3a4bc8(0x3b5));}}var bn=Object['defineProperty'],Tn=Object[_0x1f5a54(0x3cc)],Rn=(_0x5f1e05,_0x1d7661,_0x5643c8,_0x50c3b4)=>{const _0x3bfa2a=_0x1f5a54;for(var _0x451673=_0x50c3b4>0x1?void 0x0:_0x50c3b4?Tn(_0x1d7661,_0x5643c8):_0x1d7661,_0x353b30=_0x5f1e05[_0x3bfa2a(0x2d6)]-0x1,_0x399abd;_0x353b30>=0x0;_0x353b30--)(_0x399abd=_0x5f1e05[_0x353b30])&&(_0x451673=(_0x50c3b4?_0x399abd(_0x1d7661,_0x5643c8,_0x451673):_0x399abd(_0x451673))||_0x451673);return _0x50c3b4&&_0x451673&&bn(_0x1d7661,_0x5643c8,_0x451673),_0x451673;},Ee=(_0xe8b9e0,_0x1ffe14)=>(_0x49946e,_0x2034ca)=>_0x1ffe14(_0x49946e,_0x2034ca,_0xe8b9e0);const Os=_0x2b1b05(_0x1f5a54(0x281));function On(_0x2d876a,_0x425d14,_0x40e745){const _0x498f94=_0x1f5a54;return _0x2d876a+'/'+_0x425d14+_0x498f94(0x35e)+_0x40e745+_0x498f94(0x342);}let gt=class{constructor(_0x49207e,_0x3f94a7,_0x5a46e7,_0x48c5bb,_0x11f464){const _0xdd7ded=_0x1f5a54;this[_0xdd7ded(0x36c)]=_0x49207e,this['_ws']=_0x3f94a7,this[_0xdd7ded(0x20c)]=_0x5a46e7,this[_0xdd7ded(0x308)]=_0x48c5bb,this[_0xdd7ded(0x156)]=_0x11f464;}[_0x1f5a54(0x198)](_0x265085){const _0x1d3a68=_0x1f5a54,_0x2fe162=this[_0x1d3a68(0x195)]['createSocket'](_0x265085);if(!_0x2fe162)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0xcb56d4=new _0x1382fe(),_0x13532e=new _0x295019();_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(_0x2fe162['close$'][_0x1d3a68(0x2d9)](_0x4abc97=>_0x13532e[_0x1d3a68(0x39b)](_0x4abc97)))),_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(()=>_0x13532e[_0x1d3a68(0x424)]()));const _0x1f10d8=new _0x295019();_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(_0x2fe162[_0x1d3a68(0x288)]['subscribe'](_0x394c39=>_0x1f10d8[_0x1d3a68(0x39b)](_0x394c39)))),_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(()=>_0x1f10d8[_0x1d3a68(0x424)]()));const _0x5cd29c=new _0x295019();_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(_0x2fe162[_0x1d3a68(0x3bd)][_0x1d3a68(0x2d9)](_0x23d4f3=>{const _0x118666=_0x1d3a68,_0x7239e5=En(_0x23d4f3);_0x5cd29c[_0x118666(0x39b)](_0x7239e5);}))),_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(()=>_0x5cd29c[_0x1d3a68(0x424)]()));const _0x59e8bf=()=>{const _0x4c245d=_0x1d3a68;_0x1f10d8[_0x4c245d(0x39b)](new Event(_0x4c245d(0x33c))),_0x13532e['next'](new CloseEvent(_0x4c245d(0x33c))),_0x3bdd78[_0x4c245d(0x1d2)]();},_0x3bdd78={'memberID':'','close$':_0x13532e[_0x1d3a68(0x26b)](),'error$':_0x1f10d8['asObservable'](),'open$':_0x2fe162['open$'],'message$':_0x5cd29c['asObservable'](),'send':_0x4c973f=>{const _0x52837a=_0x1d3a68;if(_0x4c973f[_0x52837a(0x3a8)]===I[_0x52837a(0x358)]){if(_0x4c973f[_0x52837a(0x2a5)][_0x52837a(0x2cf)]===_0x505428[_0x52837a(0x2d8)]){this[_0x52837a(0x359)](_0x3bdd78,_0x4c973f['data'])[_0x52837a(0x3c4)](_0x8291d3=>{const _0x3e0d99=_0x52837a;this[_0x3e0d99(0x308)][_0x3e0d99(0x419)](_0x8291d3),_0x59e8bf();});return;}if(_0x4c973f[_0x52837a(0x2a5)][_0x52837a(0x2cf)]===_0x505428[_0x52837a(0x1da)]){const _0x449840=_0x4c973f['data'];this[_0x52837a(0x289)](_0x449840)[_0x52837a(0x2e0)](_0x2ca38e=>{const _0x35e143=_0x52837a;_0x5cd29c['next']({'cmd':I[_0x35e143(0x46a)],'code':yt['OK'],'routeKey':_0x449840[_0x35e143(0x2a5)]['unitID'],'routeType':'','data':{'eventID':_0x505428[_0x35e143(0x421)],'data':{'changesets':_0x2ca38e}}});})[_0x52837a(0x3c4)](_0x384206=>{const _0x3d3e50=_0x52837a;this[_0x3d3e50(0x308)][_0x3d3e50(0x419)](_0x384206),_0x59e8bf();});return;}}_0x2fe162['send'](Cn(_0x4c973f));},'close':()=>{const _0x18aa92=_0x1d3a68;_0x2fe162[_0x18aa92(0x1d2)](),_0xcb56d4[_0x18aa92(0x26e)]();}};return _0x3bdd78;}async[_0x1f5a54(0x359)](_0x12f6b3,_0x507dc7){const _0xbfb616=_0x1f5a54;var _0x173a41;const {unitType:_0x41ae9d,unitID:_0x4ddf15,changeset:_0xb75bef}=_0x507dc7[_0xbfb616(0x2a5)],_0x4fedb1={'unitID':_0x4ddf15,'memberID':_0x12f6b3[_0xbfb616(0x2f0)],'type':_0x41ae9d,'changeset':_0x29a67f(_0xb75bef)},_0x52b715=On((_0x173a41=this['_configService'][_0xbfb616(0x19e)](dn))!=null?_0x173a41:fn,_0x41ae9d,_0x4ddf15);try{await this[_0xbfb616(0x36c)][_0xbfb616(0x1bf)](_0x52b715,{'body':_0x4fedb1});}catch(_0x19ca7f){throw this['_logService']['error'](_0xbfb616(0x41f),_0xbfb616(0x160)),_0x19ca7f;}}async['_fetchMissChangesets'](_0x1c9fae){const _0x2e1946=_0x1f5a54,{unitID:_0x5bf083,from:_0x23c2ac,to:_0x6f43b0,unitType:_0xa0884c}=_0x1c9fae[_0x2e1946(0x2a5)];return(await this[_0x2e1946(0x156)][_0x2e1946(0x355)]({'metadata':void 0x0},{'unitID':_0x5bf083,'type':_0xa0884c,'from':_0x23c2ac,'to':_0x6f43b0}))[_0x2e1946(0x262)];}};gt=Rn([Ee(0x0,_0x61a763(_0x11da14)),Ee(0x1,_0x61a763(_0x2067e4)),Ee(0x2,_0x43c997),Ee(0x3,_0x3e33de),Ee(0x4,_0x49d5c1)],gt);class Ds{constructor(){const _0x5724f1=_0x1f5a54;l(this,_0x5724f1(0x394),new _0x295019()),l(this,_0x5724f1(0x39f),this[_0x5724f1(0x394)][_0x5724f1(0x26b)]());}['onCommentUpdate'](_0x10ff21){const _0x3e00b0=_0x1f5a54;this[_0x3e00b0(0x394)][_0x3e00b0(0x39b)](_0x10ff21);}}var Dn=Object['defineProperty'],Pn=Object['getOwnPropertyDescriptor'],Ps=(_0xc2a8c0,_0x527787,_0x20561f,_0x342e6f)=>{for(var _0x467745=_0x342e6f>0x1?void 0x0:_0x342e6f?Pn(_0x527787,_0x20561f):_0x527787,_0x520482=_0xc2a8c0['length']-0x1,_0x11752f;_0x520482>=0x0;_0x520482--)(_0x11752f=_0xc2a8c0[_0x520482])&&(_0x467745=(_0x342e6f?_0x11752f(_0x527787,_0x20561f,_0x467745):_0x11752f(_0x467745))||_0x467745);return _0x342e6f&&_0x467745&&Dn(_0x527787,_0x20561f,_0x467745),_0x467745;},M=(_0x38b4f0,_0x3ff971)=>(_0x1a439d,_0x529bf5)=>_0x3ff971(_0x1a439d,_0x529bf5,_0x38b4f0),de=(_0x1087e8=>(_0x1087e8[_0x1087e8[_0x1f5a54(0x429)]=0x0]='IDLE',_0x1087e8[_0x1087e8[_0x1f5a54(0x171)]=0x1]=_0x1f5a54(0x171),_0x1087e8[_0x1087e8[_0x1f5a54(0x243)]=0x2]='OFFLINE',_0x1087e8[_0x1087e8[_0x1f5a54(0x405)]=0x3]='ONLINE',_0x1087e8))(de||{});let St=class extends _0x5915f1{constructor(_0x47e5d4,_0x4f24cc,_0x34157d,_0x167df3,_0x31104a,_0x32c346,_0x4a08c0,_0x1da6be,_0x4358fa){const _0x523b47=_0x1f5a54;super(),l(this,_0x523b47(0x427),new _0x24a55e(0x0)),l(this,'sessionStatus$',this[_0x523b47(0x427)][_0x523b47(0x26b)]()),l(this,_0x523b47(0x1f8),new _0x295019()),l(this,_0x523b47(0x403),this[_0x523b47(0x1f8)][_0x523b47(0x26b)]()),l(this,_0x523b47(0x2a4)),l(this,_0x523b47(0x2a1)),l(this,_0x523b47(0x268)),(this[_0x523b47(0x373)]=_0x47e5d4,this[_0x523b47(0x308)]=_0x34157d,this[_0x523b47(0x2c0)]=_0x167df3,this[_0x523b47(0x44b)]=_0x31104a,this[_0x523b47(0x20c)]=_0x32c346,this[_0x523b47(0x3a6)]=_0x4a08c0,this['_memberService']=_0x1da6be,this[_0x523b47(0x28d)]=_0x4358fa,_0x4f24cc['pipe'](_0x31e4a6(this[_0x523b47(0x3cd)]))[_0x523b47(0x2d9)](_0x26be35=>{const _0x2cafdc=_0x523b47;var _0x1ee821;typeof _0x26be35>'u'||(this['_socket']=_0x26be35,_0x26be35?(this[_0x2cafdc(0x408)](_0x26be35),this[_0x2cafdc(0x2a1)]=this[_0x2cafdc(0x2a4)][_0x2cafdc(0x3bd)]['subscribe'](_0x24cb35=>{const _0x11f6a1=_0x2cafdc;_0x24cb35['routeKey']===this[_0x11f6a1(0x373)]&&this[_0x11f6a1(0x1a2)](_0x24cb35);})):(this[_0x2cafdc(0x427)][_0x2cafdc(0x39b)](0x2),(_0x1ee821=this[_0x2cafdc(0x2a1)])==null||_0x1ee821[_0x2cafdc(0x3d0)](),this[_0x2cafdc(0x2a1)]=null));}),this[_0x523b47(0x194)](this[_0x523b47(0x2c0)]['registerOnClose'](()=>{const _0x296f9b=_0x523b47;var _0x3e2c7e;(_0x3e2c7e=this[_0x296f9b(0x2a4)])==null||_0x3e2c7e[_0x296f9b(0x1b5)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0xb8900a=_0x1f5a54;return this['_sessionStatus$'][_0xb8900a(0x321)]();}['getMemberID'](){const _0x5ee9e0=_0x1f5a54;var _0x1867be,_0x22f1ca;return(_0x22f1ca=(_0x1867be=this[_0x5ee9e0(0x2a4)])==null?void 0x0:_0x1867be[_0x5ee9e0(0x2f0)])!=null?_0x22f1ca:null;}[_0x1f5a54(0x26e)](){const _0x43ef01=_0x1f5a54;super[_0x43ef01(0x26e)](),this[_0x43ef01(0x3cd)][_0x43ef01(0x39b)](),this[_0x43ef01(0x3cd)][_0x43ef01(0x424)]();}['close'](){const _0x25cc1b=_0x1f5a54;var _0x5e437a,_0x469e0c;(_0x5e437a=this[_0x25cc1b(0x2a4)])==null||_0x5e437a[_0x25cc1b(0x1b5)]({'cmd':I[_0x25cc1b(0x422)],'data':{'roomID':this['_unitID']}}),this['_event$'][_0x25cc1b(0x424)](),this[_0x25cc1b(0x427)]['complete'](),(_0x469e0c=this[_0x25cc1b(0x2a4)])==null||_0x469e0c[_0x25cc1b(0x1d2)](),this[_0x25cc1b(0x26e)]();}[_0x1f5a54(0x1a2)](_0x3f53cc){const _0xba41fc=_0x1f5a54;_0x3f53cc[_0xba41fc(0x3a8)]===I['JOIN']?this[_0xba41fc(0x3b1)](_0x3f53cc):_0x3f53cc[_0xba41fc(0x3a8)]===I['RECV']&&this[_0xba41fc(0x1af)](_0x3f53cc);}['_joinRoom'](_0x14881b){const _0x1ce8d0=_0x1f5a54;this[_0x1ce8d0(0x427)][_0x1ce8d0(0x39b)](0x1),_0x14881b['send']({'cmd':I['JOIN'],'routeKey':this[_0x1ce8d0(0x373)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1ce8d0(0x373)]}]}});}[_0x1f5a54(0x3b1)](_0x192474){const _0x2eda4a=_0x1f5a54;var _0x5eb537;if(_0x192474[_0x2eda4a(0x275)]===yt[_0x2eda4a(0x378)]){this[_0x2eda4a(0x44b)][_0x2eda4a(0x43a)]({'type':_0x454b23[_0x2eda4a(0x17f)],'content':this[_0x2eda4a(0x3a6)]['t'](_0x2eda4a(0x182))}),this[_0x2eda4a(0x427)][_0x2eda4a(0x39b)](0x2);return;}this['_sessionStatus$'][_0x2eda4a(0x39b)](0x3);const _0x48cf70=(_0x5eb537=_0x192474[_0x2eda4a(0x2a5)][_0x2eda4a(0x220)][this[_0x2eda4a(0x373)]])==null?void 0x0:_0x5eb537[_0x2eda4a(0x3da)];_0x48cf70&&_0x48cf70[_0x2eda4a(0x37a)](_0x5b1948=>this[_0x2eda4a(0x2a0)][_0x2eda4a(0x30f)](this['_unitID'],_0x5b1948));}[_0x1f5a54(0x1af)](_0x2fe770){const _0x2cd16d=_0x1f5a54;try{const _0x22d949=_0x2fe770[_0x2cd16d(0x2a5)];switch(_0x22d949[_0x2cd16d(0x2cf)]){case _0x505428['USERS_ENTER']:this[_0x2cd16d(0x46d)](_0x22d949),this[_0x2cd16d(0x1f8)][_0x2cd16d(0x39b)](_0x22d949);break;case _0x505428['USERS_LEAVE']:this[_0x2cd16d(0x47b)](_0x22d949),this['_event$']['next'](_0x22d949);break;case _0x505428[_0x2cd16d(0x27e)]:this[_0x2cd16d(0x3ac)](),this['_event$'][_0x2cd16d(0x39b)](_0x22d949);break;case _0x505428[_0x2cd16d(0x237)]:this['_logService']['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x2cd16d(0x41c)](_0x22d949)),this['_event$'][_0x2cd16d(0x39b)](_0x22d949);break;case _0x505428[_0x2cd16d(0x43c)]:this[_0x2cd16d(0x28d)][_0x2cd16d(0x435)](_0x22d949[_0x2cd16d(0x2a5)]),this[_0x2cd16d(0x1f8)][_0x2cd16d(0x39b)](_0x22d949);break;default:this[_0x2cd16d(0x1f8)]['next'](_0x22d949);}}catch(_0xff87a3){this[_0x2cd16d(0x308)]['error'](_0xff87a3,_0x2fe770);}}[_0x1f5a54(0x46d)](_0x359ced){const _0x230c3f=_0x1f5a54;this[_0x230c3f(0x2a0)][_0x230c3f(0x30f)](this[_0x230c3f(0x373)],_0x359ced['data']);}[_0x1f5a54(0x47b)](_0x540050){const _0x9a7b77=_0x1f5a54;this[_0x9a7b77(0x2a0)][_0x9a7b77(0x437)](this['_unitID'],_0x540050[_0x9a7b77(0x2a5)][_0x9a7b77(0x2f0)]);}async['send'](_0x31ec56,_0x28eced){const _0xa09546=_0x1f5a54;if(this[_0xa09546(0x2a3)]!==0x3||!this[_0xa09546(0x2a4)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x31ec56[_0xa09546(0x2cf)]===_0x505428[_0xa09546(0x2f5)]&&this[_0xa09546(0x1cf)](),this[_0xa09546(0x2a4)][_0xa09546(0x1b5)]({'cmd':I['INGEST'],'routeKey':_0x28eced,'routeType':'','data':_0x31ec56});}catch(_0xc467ad){this[_0xa09546(0x308)][_0xa09546(0x419)](_0xc467ad);}}[_0x1f5a54(0x1cf)](){const _0x2f64f3=_0x1f5a54;var _0x33db2f;this['_collaborationTimeoutTimer']=window[_0x2f64f3(0x363)](()=>{const _0x1d32f0=_0x2f64f3;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x1d32f0(0x43a)]({'type':_0x454b23[_0x1d32f0(0x286)],'content':this[_0x1d32f0(0x3a6)]['t'](_0x1d32f0(0x2b7))});},(_0x33db2f=this[_0x2f64f3(0x20c)][_0x2f64f3(0x19e)](bs))!=null?_0x33db2f:Ts);}[_0x1f5a54(0x3ac)](){const _0x2b732f=_0x1f5a54;this[_0x2b732f(0x268)]&&(clearTimeout(this[_0x2b732f(0x268)]),this[_0x2b732f(0x268)]=null);}};St=Ps([M(0x2,_0x3e33de),M(0x3,_0x28b08e),M(0x4,_0x58c973),M(0x5,_0x43c997),M(0x6,_0x61a763(_0x4eec6f)),M(0x7,_0x61a763(ne)),M(0x8,_0x61a763(Ds))],St);let ge=class extends _0x462626{constructor(_0x12114e,_0x10527a,_0x42bc92,_0x56f000,_0x4cd76b,_0x45e95b){const _0x5c2eb3=_0x1f5a54;super(),l(this,_0x5c2eb3(0x24d),new _0x24a55e(void 0x0)),l(this,'_sessions',new Map()),l(this,_0x5c2eb3(0x465),new _0x24a55e(0x0)),l(this,_0x5c2eb3(0x41a),this[_0x5c2eb3(0x465)][_0x5c2eb3(0x26b)]()),l(this,_0x5c2eb3(0x1d9),!0x1),l(this,'_sendHeartbeatTimer'),l(this,_0x5c2eb3(0x3c7)),l(this,_0x5c2eb3(0x45a)),l(this,_0x5c2eb3(0x301),0x0),(this[_0x5c2eb3(0x3db)]=_0x12114e,this[_0x5c2eb3(0x3a6)]=_0x10527a,this['_messageService']=_0x42bc92,this[_0x5c2eb3(0x308)]=_0x56f000,this[_0x5c2eb3(0x20c)]=_0x4cd76b,this['_socketService']=_0x45e95b);}get['_socket'](){const _0x315f9e=_0x1f5a54;return this[_0x315f9e(0x24d)][_0x315f9e(0x321)]();}[_0x1f5a54(0x26e)](){const _0x351cdd=_0x1f5a54;super[_0x351cdd(0x26e)](),this[_0x351cdd(0x3cb)][_0x351cdd(0x37a)](_0x425257=>_0x425257[_0x351cdd(0x26e)]()),this[_0x351cdd(0x3cb)][_0x351cdd(0x2f2)](),this['_status$']['complete']();}async['requireSession'](_0x1746f7){const _0x300701=_0x1f5a54;if(this[_0x300701(0x3cb)][_0x300701(0x1d8)](_0x1746f7))return this['_sessions'][_0x300701(0x393)](_0x1746f7);this['_tryEnsureSocket']();const _0x293062=this[_0x300701(0x3db)][_0x300701(0x145)](St,_0x1746f7,this[_0x300701(0x24d)]['asObservable']());return this[_0x300701(0x3cb)][_0x300701(0x22e)](_0x1746f7,_0x293062),_0x293062;}[_0x1f5a54(0x257)](_0x1606f1){const _0xea1dcb=_0x1f5a54;var _0x23b917;const _0x3f7972=this[_0xea1dcb(0x3cb)][_0xea1dcb(0x393)](_0x1606f1);_0x3f7972&&(this[_0xea1dcb(0x3cb)]['delete'](_0x1606f1),_0x3f7972[_0xea1dcb(0x1d2)]()),this[_0xea1dcb(0x3cb)][_0xea1dcb(0x3d8)]||(_0x23b917=this['_socket'])==null||_0x23b917[_0xea1dcb(0x1d2)]();}[_0x1f5a54(0x3aa)](){const _0x2874ea=_0x1f5a54;var _0x55ee12;const _0x19bc13=(_0x55ee12=this[_0x2874ea(0x20c)][_0x2874ea(0x19e)](sn))!=null?_0x55ee12:nn;return this[_0x2874ea(0x33a)][_0x2874ea(0x198)](_0x19bc13);}[_0x1f5a54(0x217)](){const _0x3009cf=_0x1f5a54;try{const _0x4857ef=this[_0x3009cf(0x3aa)]();if(_0x4857ef){const _0x44fb55=_0x4857ef[_0x3009cf(0x1b5)];_0x4857ef[_0x3009cf(0x1b5)]=_0x33b651=>(this[_0x3009cf(0x222)](),_0x44fb55[_0x3009cf(0x1bb)](_0x4857ef,[_0x33b651])),_0x4857ef[_0x3009cf(0x3bd)][_0x3009cf(0x2d9)](_0x5e3cc3=>this[_0x3009cf(0x21e)](_0x4857ef,_0x5e3cc3)),_0x4857ef[_0x3009cf(0x288)]['pipe'](_0x4747bd(0x1))[_0x3009cf(0x2d9)](_0x2abeda=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x2abeda)),_0x4857ef['open$'][_0x3009cf(0x180)](_0x4747bd(0x1))[_0x3009cf(0x2d9)](()=>{const _0x843f62=_0x3009cf;this[_0x843f62(0x2fc)](_0x4857ef);}),_0x4857ef[_0x3009cf(0x167)][_0x3009cf(0x180)](_0x4747bd(0x1))[_0x3009cf(0x2d9)](_0x5b621e=>{const _0xaa0b72=_0x3009cf;this['_logService'][_0xaa0b72(0x319)](_0xaa0b72(0x364),'socket\x20close',_0x5b621e),this[_0xaa0b72(0x379)]();});}}catch(_0x2c3960){this['_logService']['error'](_0x2c3960),this[_0x3009cf(0x379)]();}}['_onConnectionOpen'](_0xf5eaa5){const _0x175dfa=_0x1f5a54;this[_0x175dfa(0x308)][_0x175dfa(0x319)](_0x175dfa(0x364),_0x175dfa(0x460)),_0xf5eaa5['send']({'cmd':I[_0x175dfa(0x230)]}),this[_0x175dfa(0x222)]();}[_0x1f5a54(0x379)](){const _0x2f3849=_0x1f5a54;var _0xf64025;this[_0x2f3849(0x465)][_0x2f3849(0x39b)](0x2),this[_0x2f3849(0x24d)][_0x2f3849(0x39b)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x2f3849(0x301)]<((_0xf64025=this[_0x2f3849(0x20c)][_0x2f3849(0x19e)](hn))!=null?_0xf64025:ln)?(this[_0x2f3849(0x3ce)](this[_0x2f3849(0x301)]),this[_0x2f3849(0x301)]+=0x1):this[_0x2f3849(0x44b)]['show']({'type':_0x454b23[_0x2f3849(0x286)],'content':this['_localeService']['t']('session.connection-failed')});}[_0x1f5a54(0x3ce)](_0x52f182){const _0x14b17e=_0x1f5a54;var _0x477612;const _0x249c61=((_0x477612=this[_0x14b17e(0x20c)][_0x14b17e(0x19e)](an))!=null?_0x477612:cn)*0x2**_0x52f182;this[_0x14b17e(0x44b)]['show']({'type':_0x454b23[_0x14b17e(0x17f)],'content':this[_0x14b17e(0x3a6)]['t'](_0x14b17e(0x274))}),this[_0x14b17e(0x45a)]=setTimeout(()=>{const _0x3516ed=_0x14b17e;this['_tryEnsureSocket'](),clearTimeout(this[_0x3516ed(0x45a)]),this[_0x3516ed(0x45a)]=null;},_0x249c61);}['_rescheduleHeartbeatEvent'](){const _0x29c65d=_0x1f5a54;var _0x549150;this[_0x29c65d(0x44c)](),this[_0x29c65d(0x238)]=setTimeout(()=>this[_0x29c65d(0x250)](),(_0x549150=this[_0x29c65d(0x20c)]['getConfig'](rn))!=null?_0x549150:on);}[_0x1f5a54(0x250)](){const _0x495b2d=_0x1f5a54;this[_0x495b2d(0x2a4)][_0x495b2d(0x1b5)]({'cmd':I[_0x495b2d(0x34b)]}),this['_waitForHeartbeatResponse']();}[_0x1f5a54(0x24b)](){const _0x196c59=_0x1f5a54;var _0x4a5c24;this[_0x196c59(0x3c7)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x4a5c24=this[_0x196c59(0x20c)][_0x196c59(0x19e)](bs))!=null?_0x4a5c24:Ts);}[_0x1f5a54(0x21e)](_0x35fee2,_0x3d692d){const _0x123e59=_0x1f5a54,{cmd:_0x46082c}=_0x3d692d;_0x46082c===I[_0x123e59(0x230)]&&!this['_socketReady']&&(_0x35fee2[_0x123e59(0x2f0)]=_0x3d692d[_0x123e59(0x2a5)][_0x123e59(0x2f0)],this[_0x123e59(0x24d)][_0x123e59(0x39b)](_0x35fee2),this[_0x123e59(0x465)]['next'](0x3),this[_0x123e59(0x1d9)]=!0x0),_0x46082c===I['HEARTBEAT']&&this['_clearTimeoutTimer'](),this[_0x123e59(0x222)]();}['_clearHeartbeatTimer'](){const _0x1aa2fb=_0x1f5a54;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x1aa2fb(0x238)]),this[_0x1aa2fb(0x238)]=null);}[_0x1f5a54(0x2cb)](){const _0x20f5e7=_0x1f5a54;this[_0x20f5e7(0x3c7)]!=null&&(clearTimeout(this[_0x20f5e7(0x3c7)]),this[_0x20f5e7(0x3c7)]=null);}};ge=Ps([M(0x0,_0x61a763(_0x2e9f94)),M(0x1,_0x61a763(_0x4eec6f)),M(0x2,_0x58c973),M(0x3,_0x3e33de),M(0x4,_0x43c997),M(0x5,Os)],ge);var wn=Object[_0x1f5a54(0x29f)],Nn=Object[_0x1f5a54(0x3cc)],Mn=(_0xbfb199,_0x34b6f1,_0x2f7445,_0x2f0f3d)=>{const _0x21e0a3=_0x1f5a54;for(var _0x24f703=_0x2f0f3d>0x1?void 0x0:_0x2f0f3d?Nn(_0x34b6f1,_0x2f7445):_0x34b6f1,_0xce08f2=_0xbfb199[_0x21e0a3(0x2d6)]-0x1,_0x135fdd;_0xce08f2>=0x0;_0xce08f2--)(_0x135fdd=_0xbfb199[_0xce08f2])&&(_0x24f703=(_0x2f0f3d?_0x135fdd(_0x34b6f1,_0x2f7445,_0x24f703):_0x135fdd(_0x24f703))||_0x24f703);return _0x2f0f3d&&_0x24f703&&wn(_0x34b6f1,_0x2f7445,_0x24f703),_0x24f703;},Ce=(_0x5b1f73,_0x152375)=>(_0x56a3e7,_0x561c62)=>_0x152375(_0x56a3e7,_0x561c62,_0x5b1f73);let D=class extends _0x462626{constructor(_0x28cbee,_0x5d30b8,_0x2bb526,_0x221fd7,_0x2699db){const _0x2f6d87=_0x1f5a54;super(),l(this,_0x2f6d87(0x291),new Map()),l(this,_0x2f6d87(0x2f7),new Map()),l(this,'_disabled',!0x1),(this[_0x2f6d87(0x20c)]=_0x28cbee,this['_localStorageService']=_0x5d30b8,this[_0x2f6d87(0x2c0)]=_0x2bb526,this[_0x2f6d87(0x3a6)]=_0x221fd7,this[_0x2f6d87(0x459)]=_0x2699db,this[_0x2f6d87(0x202)]());}[_0x1f5a54(0x3fa)](){const _0x346008=_0x1f5a54;this[_0x346008(0x31d)]=!0x0;}['enableLocalCache'](){const _0x40882c=_0x1f5a54;this[_0x40882c(0x31d)]=!0x1;}[_0x1f5a54(0x26e)](){const _0x324062=_0x1f5a54;this['exhaustSavingTask']()['then'](()=>super[_0x324062(0x26e)]());}async[_0x1f5a54(0x473)](_0x52fe2d){const _0x5f2432=_0x1f5a54;return this['_disabled']?null:this[_0x5f2432(0x47a)][_0x5f2432(0x1fd)](Xt(_0x52fe2d));}async[_0x1f5a54(0x1d0)](_0x12abec,_0xdb06b1){const _0x5b36fe=_0x1f5a54;return!!this['_localStorageService'][_0x5b36fe(0x14e)](_0x12abec,_0xdb06b1);}[_0x1f5a54(0x16f)](_0x3fd7e5,_0x37f784,_0x1d6ecc,_0x54c41d){const _0x2fc33b=_0x1f5a54,_0x3713f9=this[_0x2fc33b(0x459)][_0x2fc33b(0x236)](_0x3fd7e5);this[_0x2fc33b(0x291)][_0x2fc33b(0x22e)](_0x3fd7e5,{'unitID':_0x3fd7e5,'type':_0x37f784,'awaitingChangeset':_0x1d6ecc,'mutations':_0x54c41d,'rev':_0x3713f9}),this[_0x2fc33b(0x2f7)][_0x2fc33b(0x1d8)](_0x3fd7e5)||this[_0x2fc33b(0x255)](_0x3fd7e5);}[_0x1f5a54(0x255)](_0x7096bb){const _0x2a3fcb=_0x1f5a54,_0x28954b=this[_0x2a3fcb(0x152)]();_0x28954b===0x0?this['_saveCache'](_0x7096bb):this[_0x2a3fcb(0x2f7)][_0x2a3fcb(0x22e)](_0x7096bb,setTimeout(()=>this[_0x2a3fcb(0x32e)](_0x7096bb),_0x28954b));}[_0x1f5a54(0x152)](){const _0x50011b=_0x1f5a54;var _0x4291c9;return(_0x4291c9=this[_0x50011b(0x20c)][_0x50011b(0x19e)](_n))!=null?_0x4291c9:un;}[_0x1f5a54(0x32e)](_0x1a2b5a){const _0x1f811c=_0x1f5a54,_0x2e76cf=this[_0x1f811c(0x2f7)][_0x1f811c(0x393)](_0x1a2b5a);return _0x2e76cf!==void 0x0&&window[_0x1f811c(0x354)](_0x2e76cf),this['_localStorageService'][_0x1f811c(0x14e)](Xt(_0x1a2b5a),this['_cachedData'][_0x1f811c(0x393)](_0x1a2b5a))['then'](()=>this[_0x1f811c(0x2f7)][_0x1f811c(0x3a5)](_0x1a2b5a));}async[_0x1f5a54(0x270)](){const _0xc1148b=_0x1f5a54,_0x183c20=[];this[_0xc1148b(0x2f7)][_0xc1148b(0x37a)]((_0x2bf21a,_0x5bba2f)=>{const _0xec6d0d=_0xc1148b;window['clearTimeout'](_0x2bf21a),_0x183c20[_0xec6d0d(0x310)](this[_0xec6d0d(0x32e)](_0x5bba2f)[_0xec6d0d(0x2e0)](()=>{const _0x8526b1=_0xec6d0d;this[_0x8526b1(0x2f7)][_0x8526b1(0x3a5)](_0x5bba2f);}));}),await Promise[_0xc1148b(0x30c)](_0x183c20);}['_setupBeforeClosingHandler'](){const _0x146ded=_0x1f5a54;this[_0x146ded(0x194)](this[_0x146ded(0x2c0)][_0x146ded(0x353)](()=>{const _0x34a521=_0x146ded;if(this[_0x34a521(0x2f7)][_0x34a521(0x3d8)])return this[_0x34a521(0x3a6)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Mn([Ce(0x0,_0x43c997),Ce(0x1,_0x38f292),Ce(0x2,_0x28b08e),Ce(0x3,_0x61a763(_0x4eec6f)),Ce(0x4,_0x61a763(_0x2fc807))],D);function Xt(_0x5de334){const _0x44c601=_0x1f5a54;return _0x44c601(0x19d)+_0x5de334;}const et=_0x2b1b05(_0x1f5a54(0x254));var ws=(_0x42a66d=>(_0x42a66d[_0x42a66d[_0x1f5a54(0x228)]=0x0]=_0x1f5a54(0x228),_0x42a66d[_0x42a66d['OTHER_CLIENTS_EDITING']=0x1]=_0x1f5a54(0x2ef),_0x42a66d))(ws||{});const Jt=0x7530,qt=_0x1f5a54(0x258);class An extends _0x462626{constructor(){const _0x19b7d3=_0x1f5a54;super(),l(this,'_id',_0x4b796f['generateRandomId']()),l(this,_0x19b7d3(0x16c),new Set()),l(this,_0x19b7d3(0x36d),new Map()),l(this,_0x19b7d3(0x3fc),null),l(this,'_clearOtherTimers',new Map()),l(this,'_unitStatus',new Map()),this['_init']();}[_0x1f5a54(0x26e)](){const _0x32c07c=_0x1f5a54;super[_0x32c07c(0x26e)](),this[_0x32c07c(0x384)][_0x32c07c(0x37a)]((_0x3f4576,_0x328406)=>this[_0x32c07c(0x2b9)](_0x328406)),this[_0x32c07c(0x3fc)]&&window[_0x32c07c(0x162)](this[_0x32c07c(0x3fc)]);}['getUnitStatus$'](_0x53a69b){const _0x2bed72=_0x1f5a54;return this['_ensureSubject'](_0x53a69b)[_0x2bed72(0x180)](_0x4dffca());}[_0x1f5a54(0x35d)](_0x5dfb19){const _0x314501=_0x1f5a54;this[_0x314501(0x16c)][_0x314501(0x3d8)]===0x0&&this[_0x314501(0x326)](),this[_0x314501(0x16c)][_0x314501(0x3c0)](_0x5dfb19),this['_send']({'type':0x0,'memberID':this[_0x314501(0x318)],'unitIDs':[_0x5dfb19],'isForwarded':!0x1});}['disposeUnit'](_0x27e755){const _0x2813ce=_0x1f5a54;this['_selfUnitIDs']['delete'](_0x27e755),this[_0x2813ce(0x16c)]['size']===0x0&&this[_0x2813ce(0x3fc)]&&window['clearInterval'](this[_0x2813ce(0x3fc)]);}[_0x1f5a54(0x3b6)](){const _0x58bd13=_0x1f5a54;this[_0x58bd13(0x194)](_0x5d3cf2(_0x45523d(window,_0x58bd13(0x1d4))[_0x58bd13(0x2d9)](_0x8cf5f8=>{const _0x37f1bb=_0x58bd13;if(_0x8cf5f8[_0x37f1bb(0x3f4)]!==qt||!_0x8cf5f8['newValue'])return;const _0x4f1d45=JSON['parse'](_0x8cf5f8[_0x37f1bb(0x146)]);this[_0x37f1bb(0x402)](_0x4f1d45);}))),window['addEventListener'](_0x58bd13(0x276),()=>this[_0x58bd13(0x27f)]({'type':0x1,'memberID':this[_0x58bd13(0x318)],'unitIDs':Array['from'](this[_0x58bd13(0x16c)])}));}[_0x1f5a54(0x402)](_0x5161f8){const _0x3cdc5f=_0x1f5a54;switch(_0x5161f8['type']){case 0x0:this[_0x3cdc5f(0x1f7)](_0x5161f8);break;case 0x1:this[_0x3cdc5f(0x1c9)](_0x5161f8);break;case 0x2:this[_0x3cdc5f(0x17d)](_0x5161f8);break;}}['_handleJoinEvent'](_0x26eefb){const _0x390f6d=_0x1f5a54,{unitIDs:_0x35d409,memberID:_0xc1912a,isForwarded:_0x319d50}=_0x26eefb;_0x35d409[_0x390f6d(0x37a)](_0x2bbe3a=>{const _0x57e1c8=_0x390f6d;if(!_0x319d50&&this['_unitOnClients'][_0x57e1c8(0x1d8)](_0x2bbe3a)&&this[_0x57e1c8(0x1a9)](_0x2bbe3a)[_0x57e1c8(0x39b)](0x1),!this['_unitOnClients'][_0x57e1c8(0x1d8)](_0x2bbe3a)||!this[_0x57e1c8(0x36d)][_0x57e1c8(0x393)](_0x2bbe3a)[_0x57e1c8(0x1d8)](_0xc1912a)){const _0x364d68=this[_0x57e1c8(0x36d)][_0x57e1c8(0x393)](_0x2bbe3a)||new Set();_0x364d68['add'](_0xc1912a),this['_unitOnClients']['set'](_0x2bbe3a,_0x364d68),this[_0x57e1c8(0x469)](_0xc1912a);}}),_0x319d50||this['_send']({'type':0x0,'memberID':this[_0x390f6d(0x318)],'unitIDs':[...this[_0x390f6d(0x16c)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x30fb29){const _0x359969=_0x1f5a54;this[_0x359969(0x2b9)](_0x30fb29);const _0xf3a00a=window[_0x359969(0x363)](()=>{const _0x33a9b1=_0x359969;this[_0x33a9b1(0x36d)][_0x33a9b1(0x37a)](_0x2a1fc6=>{const _0x492192=_0x33a9b1;_0x2a1fc6[_0x492192(0x3a5)](_0x30fb29);});},Jt*0x2);this[_0x359969(0x384)][_0x359969(0x22e)](_0x30fb29,_0xf3a00a);}['_removeClearOtherTimer'](_0x45ca5c){const _0x5494ea=_0x1f5a54;if(this[_0x5494ea(0x384)]['has'](_0x45ca5c)){const _0x4dcfe8=this[_0x5494ea(0x384)][_0x5494ea(0x393)](_0x45ca5c);_0x4dcfe8&&window[_0x5494ea(0x354)](_0x4dcfe8),this['_clearOtherTimers'][_0x5494ea(0x22e)](_0x45ca5c,null);}}[_0x1f5a54(0x1c9)](_0x2a2e80){const {memberID:_0x4e6bd5,unitIDs:_0x386c87}=_0x2a2e80;_0x386c87['forEach'](_0x26d8ad=>{const _0x4d2145=_0x2f7f;var _0x21b19d;const _0x36a086=this['_unitOnClients']['get'](_0x26d8ad);_0x36a086&&(_0x36a086['delete'](_0x4e6bd5),(_0x21b19d=this['_ensureSubject'](_0x26d8ad))==null||_0x21b19d[_0x4d2145(0x39b)](_0x36a086[_0x4d2145(0x3d8)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x4e6bd5);}[_0x1f5a54(0x17d)](_0x1f710d){const _0x591a70=_0x1f5a54;this[_0x591a70(0x469)](_0x1f710d[_0x591a70(0x2f0)]);}[_0x1f5a54(0x27f)](_0x1df72e){const _0x17b20c=_0x1f5a54;localStorage[_0x17b20c(0x14e)](qt,JSON[_0x17b20c(0x41c)](_0x1df72e));}[_0x1f5a54(0x326)](){const _0x470606=_0x1f5a54;this[_0x470606(0x3fc)]=window['setInterval'](()=>{const _0x211e3f=_0x470606;this[_0x211e3f(0x27f)]({'type':0x2,'memberID':this[_0x211e3f(0x318)]});},Jt);}['_ensureSubject'](_0xa1f34d){const _0x498e5a=_0x1f5a54;return this['_unitStatus'][_0x498e5a(0x1d8)](_0xa1f34d)||this[_0x498e5a(0x1ea)][_0x498e5a(0x22e)](_0xa1f34d,new _0x24a55e(0x0)),this[_0x498e5a(0x1ea)][_0x498e5a(0x393)](_0xa1f34d);}}var yn=Object['defineProperty'],Un=Object[_0x1f5a54(0x3cc)],Ln=(_0x3fb07b,_0x440b2e,_0x1f9af4,_0x11351d)=>{const _0x3dd7ed=_0x1f5a54;for(var _0x404d47=_0x11351d>0x1?void 0x0:_0x11351d?Un(_0x440b2e,_0x1f9af4):_0x440b2e,_0x20e365=_0x3fb07b[_0x3dd7ed(0x2d6)]-0x1,_0x3e4f9b;_0x20e365>=0x0;_0x20e365--)(_0x3e4f9b=_0x3fb07b[_0x20e365])&&(_0x404d47=(_0x11351d?_0x3e4f9b(_0x440b2e,_0x1f9af4,_0x404d47):_0x3e4f9b(_0x404d47))||_0x404d47);return _0x11351d&&_0x404d47&&yn(_0x440b2e,_0x1f9af4,_0x404d47),_0x404d47;},zt=(_0x30be36,_0x2327b1)=>(_0x3193b1,_0x1f73a7)=>_0x2327b1(_0x3193b1,_0x1f73a7,_0x30be36);let Xe=class{constructor(_0x33f831,_0x5baebc){const _0x1dfb5c=_0x1f5a54;this[_0x1dfb5c(0x3db)]=_0x33f831,this[_0x1dfb5c(0x327)]=_0x5baebc;}[_0x1f5a54(0x300)](_0x1e4c27){const _0x58d00b=_0x1f5a54;this[_0x58d00b(0x43f)](_0x1e4c27),this[_0x58d00b(0x1fa)](_0x1e4c27);}[_0x1f5a54(0x348)](_0x40d834){const _0x3cb9ac=_0x1f5a54,_0x11ba7b=this['_injector'][_0x3cb9ac(0x393)](_0x3f2d0c),{redoCache:_0x164b82}=_0x11ba7b[_0x3cb9ac(0x190)]();if(_0x164b82['length']===0x0)return _0x40d834;let _0x516713=_0x4b796f['deepClone'](_0x40d834[_0x3cb9ac(0x466)][0x0]);for(let _0xe739f1=0x0;_0xe739f1<_0x164b82[_0x3cb9ac(0x2d6)];_0xe739f1++){const _0x2b04af={'id':'doc.mutation.rich-text-editing','params':{..._0x164b82[_0xe739f1]}},_0x2139bd=this[_0x3cb9ac(0x327)][_0x3cb9ac(0x34d)](_0x516713,_0x2b04af,!0x1);if(_0x2bbef6(_0x2139bd))throw _0x2139bd[_0x3cb9ac(0x419)];_0x516713=_0x2139bd[_0x3cb9ac(0x1fc)];}return{..._0x4b796f[_0x3cb9ac(0x1e6)](_0x40d834),'mutations':[_0x516713]};}[_0x1f5a54(0x43f)](_0x2b9df2){const _0xd62259=_0x1f5a54,_0x3e6e6c=this[_0xd62259(0x3db)][_0xd62259(0x393)](_0x3f2d0c),{undoCache:_0x282bef,redoCache:_0x474ac2}=_0x3e6e6c[_0xd62259(0x190)]();if(_0x282bef['length']===0x0||_0x474ac2['length']===0x0)return;const _0x1cfcba=[],_0x2b1356=[];let _0x515d39=_0x4b796f[_0xd62259(0x1e6)](_0x2b9df2[_0xd62259(0x466)][0x0]),_0x8bd1c0=_0x4b796f[_0xd62259(0x1e6)](_0x2b9df2[_0xd62259(0x466)][0x0]);for(let _0x93b88a=_0x282bef[_0xd62259(0x2d6)]-0x1;_0x93b88a>=0x0;_0x93b88a--){const _0xef66d={'id':'doc.mutation.rich-text-editing','params':{..._0x282bef[_0x93b88a]}},_0x10a9f7={'id':'doc.mutation.rich-text-editing','params':{..._0x474ac2[_0x93b88a]}},_0x45b88d=this[_0xd62259(0x327)]['transformMutation'](_0x515d39,_0xef66d,!0x1),_0x226658=this['_transformService'][_0xd62259(0x34d)](_0x8bd1c0,_0x10a9f7,!0x1);if(_0x2bbef6(_0x45b88d))throw _0x45b88d[_0xd62259(0x419)];if(_0x2bbef6(_0x226658))throw _0x226658['error'];_0x1cfcba['unshift'](_0x45b88d[_0xd62259(0x349)][_0xd62259(0x3ef)]),_0x2b1356[_0xd62259(0x283)](_0x226658[_0xd62259(0x349)][_0xd62259(0x3ef)]),_0x515d39=_0x45b88d[_0xd62259(0x1fc)],_0x8bd1c0=_0x226658['m1Prime'];}_0x3e6e6c[_0xd62259(0x37c)]({'undoCache':_0x1cfcba,'redoCache':_0x2b1356});}[_0x1f5a54(0x1fa)](_0x516f4f){const _0x16b212=_0x1f5a54,_0x298891=this['_injector']['get'](_0x3f2d0c),_0x16018e=_0x298891[_0x16b212(0x3f3)]();if(_0x16018e==null)return;const _0x43a33c=[{'id':_0x16b212(0x14c),'params':{'unitId':_0x516f4f['unitID'],'actions':null,'textRanges':[_0x16018e]}}],_0x1e9696=this[_0x16b212(0x327)][_0x16b212(0x461)](_0x516f4f,_0x43a33c);if(!_0x5abc17(_0x1e9696))throw _0x1e9696[_0x16b212(0x419)];const _0x96c7be=_0x1e9696[_0x16b212(0x349)][0x0][_0x16b212(0x3ef)][_0x16b212(0x279)];Array[_0x16b212(0x150)](_0x96c7be)&&_0x96c7be[_0x16b212(0x2d6)]&&_0x298891[_0x16b212(0x3be)](_0x96c7be[0x0]);}};Xe=Ln([zt(0x0,_0x61a763(_0x2e9f94)),zt(0x1,_0x1215ee)],Xe);var $n=Object[_0x1f5a54(0x29f)],jn=Object[_0x1f5a54(0x3cc)],Hn=(_0x447407,_0x32967c,_0x1cdb67,_0x4b5397)=>{for(var _0x2adbaf=_0x4b5397>0x1?void 0x0:_0x4b5397?jn(_0x32967c,_0x1cdb67):_0x32967c,_0x55c99a=_0x447407['length']-0x1,_0x5dd50d;_0x55c99a>=0x0;_0x55c99a--)(_0x5dd50d=_0x447407[_0x55c99a])&&(_0x2adbaf=(_0x4b5397?_0x5dd50d(_0x32967c,_0x1cdb67,_0x2adbaf):_0x5dd50d(_0x2adbaf))||_0x2adbaf);return _0x4b5397&&_0x2adbaf&&$n(_0x32967c,_0x1cdb67,_0x2adbaf),_0x2adbaf;},Zt=(_0x27c392,_0x4d236b)=>(_0x4cd439,_0x5127ee)=>_0x4d236b(_0x4cd439,_0x5127ee,_0x27c392);let Je=class{constructor(_0x2b1a66,_0x4ec42c){const _0x283d6d=_0x1f5a54;this[_0x283d6d(0x3db)]=_0x2b1a66,this[_0x283d6d(0x327)]=_0x4ec42c;}[_0x1f5a54(0x234)](_0x52dd1e){const _0x271dcc=_0x1f5a54;var _0x4066a0;const _0x91a058=this[_0x271dcc(0x3db)][_0x271dcc(0x393)](_0x233706),_0x396122=(_0x4066a0=_0x91a058[_0x271dcc(0x208)]())!=null?_0x4066a0:[],_0x41be01=_0x396122==null?void 0x0:_0x396122[_0x271dcc(0x1a7)](_0x4605fa);if(_0x41be01[_0x271dcc(0x2d6)]===0x0)return;const _0x53a0a8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x52dd1e['unitID'],'actions':null,'textRanges':_0x41be01}}],_0x29feb3=this[_0x271dcc(0x327)][_0x271dcc(0x461)](_0x52dd1e,_0x53a0a8);if(!_0x5abc17(_0x29feb3))throw _0x29feb3[_0x271dcc(0x419)];const _0x386482=_0x29feb3[_0x271dcc(0x349)][0x0][_0x271dcc(0x3ef)][_0x271dcc(0x279)];Array[_0x271dcc(0x150)](_0x386482)&&_0x386482[_0x271dcc(0x2d6)]&&_0x91a058['replaceTextRanges'](_0x386482,!0x1);}};Je=Hn([Zt(0x0,_0x61a763(_0x2e9f94)),Zt(0x1,_0x1215ee)],Je);function Ns(_0x202aee){const _0x39f7d1=_0x1f5a54;let _0x350a44='';for(const _0x3e8357 of _0x202aee){const {startOffset:_0x23ca6f,endOffset:_0x5e61d2,isActive:_0x3f6281}=_0x3e8357;_0x350a44[_0x39f7d1(0x2d6)]&&(_0x350a44+=','),_0x350a44+=_0x23ca6f+':'+_0x5e61d2+':'+(_0x3f6281?'1':'0');}return _0x350a44;}function xn(_0x490d2e){const _0x3c5062=_0x1f5a54,_0x4ccd08=_0x490d2e[_0x3c5062(0x335)](','),_0x30eeff=[];for(const _0x2cb035 of _0x4ccd08){const [_0x5b3b17,_0x37c8e0,_0x2a7314]=_0x2cb035[_0x3c5062(0x335)](':');_0x30eeff[_0x3c5062(0x310)]({'startOffset':Number(_0x5b3b17),'endOffset':Number(_0x37c8e0),'collapsed':_0x5b3b17===_0x37c8e0,'isActive':_0x2a7314==='1'});}return _0x30eeff[_0x3c5062(0x41b)](_0x30e03c=>_0x30e03c[_0x3c5062(0x1a5)])||(_0x30eeff[0x0]['isActive']=!0x0),_0x30eeff;}class Ut extends _0x5915f1{constructor(){const _0x26be49=_0x1f5a54;super(...arguments),l(this,_0x26be49(0x2c1),new _0x24a55e(null)),l(this,_0x26be49(0x155),this[_0x26be49(0x2c1)][_0x26be49(0x26b)]());}['syncEditingCollabCursor'](_0x44bc3d){const _0x39c604=_0x1f5a54,{unitID:_0x862d55,memberID:_0x58f24e,textRanges:_0x393036}=_0x44bc3d,_0x188bf1=Ns(_0x393036),_0x221fa2={'unitID':_0x862d55,'memberID':_0x58f24e,'selection':_0x188bf1};this[_0x39c604(0x2c1)][_0x39c604(0x39b)](_0x221fa2);}}var Fn=Object[_0x1f5a54(0x29f)],Vn=Object[_0x1f5a54(0x3cc)],kn=(_0x39604c,_0x4008d6,_0x2e9ecc,_0x63b972)=>{const _0x23ddf5=_0x1f5a54;for(var _0x5b0a42=_0x63b972>0x1?void 0x0:_0x63b972?Vn(_0x4008d6,_0x2e9ecc):_0x4008d6,_0x4f2348=_0x39604c[_0x23ddf5(0x2d6)]-0x1,_0x5cf17f;_0x4f2348>=0x0;_0x4f2348--)(_0x5cf17f=_0x39604c[_0x4f2348])&&(_0x5b0a42=(_0x63b972?_0x5cf17f(_0x4008d6,_0x2e9ecc,_0x5b0a42):_0x5cf17f(_0x5b0a42))||_0x5b0a42);return _0x63b972&&_0x5b0a42&&Fn(_0x4008d6,_0x2e9ecc,_0x5b0a42),_0x5b0a42;},Qt=(_0x58535e,_0xa5a342)=>(_0x151146,_0x412d50)=>_0xa5a342(_0x151146,_0x412d50,_0x58535e);function Bn(_0x1da9bc){const _0xd3581=_0x1f5a54,{unitID:_0x350ea3,mutations:_0x4975dd}=_0x1da9bc;return{'unitId':_0x350ea3,'subUnitId':_0x4975dd[0x0][_0xd3581(0x3ef)][_0xd3581(0x199)]};}let qe=class{constructor(_0x2a1441,_0x6a8353){const _0x910728=_0x1f5a54;this[_0x910728(0x3db)]=_0x2a1441,this[_0x910728(0x327)]=_0x6a8353;}[_0x1f5a54(0x234)](_0x433b8e){const _0x55f8f2=_0x1f5a54;var _0xfb446,_0x4c614a,_0x59bce2;const _0x51be90=this[_0x55f8f2(0x3db)]['get'](_0x5914fd),{unitId:_0xa620f,subUnitId:_0x13b917}=Bn(_0x433b8e),_0x5e04e4=_0x51be90[_0x55f8f2(0x2df)](_0xa620f)[_0x55f8f2(0x208)]();if(_0x5e04e4[_0x55f8f2(0x2d6)]===0x0||!_0xa620f||!_0x13b917)return;const _0x2c41bd=[{'id':_0x109738['id'],'params':{'unitId':_0xa620f,'subUnitId':_0x13b917,'selections':_0x4b796f[_0x55f8f2(0x1e6)](_0x5e04e4)}}],_0x474b09=this[_0x55f8f2(0x327)][_0x55f8f2(0x461)](_0x433b8e,_0x2c41bd);if(!_0x5abc17(_0x474b09))throw _0x474b09[_0x55f8f2(0x419)];const _0x20bbba=(_0x59bce2=(_0x4c614a=(_0xfb446=_0x474b09[_0x55f8f2(0x349)][0x0])==null?void 0x0:_0xfb446[_0x55f8f2(0x3ef)])==null?void 0x0:_0x4c614a[_0x55f8f2(0x2ab)])!=null?_0x59bce2:_0x5e04e4;Array[_0x55f8f2(0x150)](_0x20bbba)&&_0x20bbba['length']&&this['_injector'][_0x55f8f2(0x393)](_0x257ce4)[_0x55f8f2(0x2b2)](_0x109738['id'],{'unitId':_0xa620f,'subUnitId':_0x13b917,'selections':_0x20bbba});}};qe=kn([Qt(0x0,_0x61a763(_0x2e9f94)),Qt(0x1,_0x1215ee)],qe);const Wn=new Set([_0x54cc2b['id']]);function Gn(_0x15544c,_0xd398bc,_0x5d872c,_0x12ff5b,_0x5243d8){const _0x436cc9=_0x1f5a54;var _0x4449db,_0x37803b,_0x2d0250,_0x240877;const _0x2c3162=[];for(const _0x229160 of _0x15544c)if(Wn[_0x436cc9(0x1d8)](_0x229160['id'])){if(_0x2c3162[_0x436cc9(0x2d6)]>0x0)break;_0x2c3162[_0x436cc9(0x310)](_0x229160);break;}else _0x2c3162[_0x436cc9(0x310)](_0x229160);const _0x1ad832=(_0x37803b=(_0x4449db=_0x5243d8['getCurrentUser']())==null?void 0x0:_0x4449db[_0x436cc9(0x3a4)])!=null?_0x37803b:'unknown',_0x3aa332=(_0x240877=(_0x2d0250=_0x5243d8[_0x436cc9(0x1c4)]())==null?void 0x0:_0x2d0250[_0x436cc9(0x2f0)])!=null?_0x240877:_0x436cc9(0x169);return{'changeset':{'unitID':_0xd398bc,'type':_0x2c9cce(_0x5d872c['getUnitType'](_0xd398bc)),'baseRev':_0x12ff5b[_0x436cc9(0x236)](_0xd398bc),'revision':0x0,'userID':_0x1ad832,'memberID':_0x3aa332,'mutations':_0x2c3162},'pendingMutations':_0x15544c[_0x436cc9(0x19c)](_0x2c3162[_0x436cc9(0x2d6)])};}function Yn(_0x2bb260,_0x609f9e,_0x3a3b30,_0x2e7ccb,_0x552775){const _0x542d1e=_0x1f5a54;var _0x38237d,_0x1a877a,_0x242fba,_0x5a0f41;const _0x92ea01=[_0x2bb260['reduce']((_0x594bb9,_0x3a2f33)=>{const _0x576015=_0x2f7f;var _0x25594b;const {id:_0x2f4ead}=_0x594bb9,{id:_0x1aa3f3,type:_0x7af5a7}=_0x3a2f33,_0x7f2c61=(_0x25594b=_0x594bb9[_0x576015(0x3ef)])!=null?_0x25594b:{'actions':null},_0x39afa7=_0x3a2f33['params'];if(_0x2f4ead&&_0x2f4ead!==_0x1aa3f3)throw new Error(_0x576015(0x3c6)+_0x2f4ead+_0x576015(0x3cf)+_0x1aa3f3+'.');return{..._0x594bb9,'id':_0x1aa3f3,'type':_0x7af5a7,'params':{'unitId':_0x39afa7[_0x576015(0x3f8)],'textRanges':_0x39afa7[_0x576015(0x279)],'actions':_0x13a804[_0x576015(0x365)](_0x7f2c61[_0x576015(0x1b1)],_0x39afa7['actions'])}};},{})],_0x4dfabc=(_0x1a877a=(_0x38237d=_0x552775[_0x542d1e(0x1c4)]())==null?void 0x0:_0x38237d[_0x542d1e(0x3a4)])!=null?_0x1a877a:'unknown',_0x132be7=(_0x5a0f41=(_0x242fba=_0x552775[_0x542d1e(0x1c4)]())==null?void 0x0:_0x242fba[_0x542d1e(0x2f0)])!=null?_0x5a0f41:_0x542d1e(0x169);return{'changeset':{'unitID':_0x609f9e,'type':_0x2c9cce(_0x3a3b30[_0x542d1e(0x456)](_0x609f9e)),'baseRev':_0x2e7ccb[_0x542d1e(0x236)](_0x609f9e),'revision':0x0,'userID':_0x4dfabc,'memberID':_0x132be7,'mutations':_0x92ea01},'pendingMutations':[]};}var Kn=Object[_0x1f5a54(0x29f)],Xn=Object[_0x1f5a54(0x3cc)],oe=(_0x1b2670,_0x2beb2a,_0x546e96,_0xd5207c)=>{const _0x1d221f=_0x1f5a54;for(var _0x1f9805=_0xd5207c>0x1?void 0x0:_0xd5207c?Xn(_0x2beb2a,_0x546e96):_0x2beb2a,_0x16a8cc=_0x1b2670[_0x1d221f(0x2d6)]-0x1,_0x112405;_0x16a8cc>=0x0;_0x16a8cc--)(_0x112405=_0x1b2670[_0x16a8cc])&&(_0x1f9805=(_0xd5207c?_0x112405(_0x2beb2a,_0x546e96,_0x1f9805):_0x112405(_0x1f9805))||_0x1f9805);return _0xd5207c&&_0x1f9805&&Kn(_0x2beb2a,_0x546e96,_0x1f9805),_0x1f9805;},m=(_0x59c208,_0x1e4a1b)=>(_0x237ac8,_0x501cec)=>_0x1e4a1b(_0x237ac8,_0x501cec,_0x59c208),w=(_0x19f15=>(_0x19f15['NOT_COLLAB']='not_collab',_0x19f15['SYNCED']=_0x1f5a54(0x3c5),_0x19f15[_0x1f5a54(0x3e3)]=_0x1f5a54(0x2e7),_0x19f15[_0x1f5a54(0x45b)]=_0x1f5a54(0x240),_0x19f15[_0x1f5a54(0x224)]=_0x1f5a54(0x3e9),_0x19f15['FETCH_MISS']='fetch_missing',_0x19f15['CONFLICT']=_0x1f5a54(0x338),_0x19f15[_0x1f5a54(0x243)]='offline',_0x19f15))(w||{});class ae{constructor(_0x4f05f4,_0x2709e6,_0x193e3c,_0x589ee0,_0x8e3be5,_0x57a177,_0x378727,_0x5f533f,_0x2ac44e){const _0x45d8ec=_0x1f5a54;l(this,_0x45d8ec(0x177),null),l(this,_0x45d8ec(0x3b3),[]),(this[_0x45d8ec(0x213)]=_0x4f05f4,this[_0x45d8ec(0x400)]=_0x2709e6,this['_handler']=_0x8e3be5,this[_0x45d8ec(0x299)]=_0x57a177,this[_0x45d8ec(0x2c4)]=_0x378727,this[_0x45d8ec(0x459)]=_0x5f533f,this['_localCacheService']=_0x2ac44e,this[_0x45d8ec(0x177)]=_0x193e3c,this['_pendingMutations']=_0x589ee0);}[_0x1f5a54(0x372)](_0x3c0b3b){const _0x3a884a=_0x1f5a54,_0x3d3df3=this[_0x3a884a(0x459)]['getCurrentRevForDocument'](this['unitID']);return _0x3c0b3b['revision']>_0x3d3df3+0x1?(this['_handler']['onMissingChangesets']({'from':_0x3d3df3,'to':_0x3c0b3b[_0x3a884a(0x35c)]-0x1}),!0x0):!0x1;}[_0x1f5a54(0x260)](_0x3db330){const _0x2b6298=_0x1f5a54;this[_0x2b6298(0x2c4)][_0x2b6298(0x25f)](this[_0x2b6298(0x213)],_0x3db330);}[_0x1f5a54(0x191)](_0x34706f){const _0x3cfbc2=_0x1f5a54;var _0x16774f,_0x4df8ea;(_0x4df8ea=(_0x16774f=this[_0x3cfbc2(0x1d7)])[_0x3cfbc2(0x143)])==null||_0x4df8ea[_0x3cfbc2(0x25e)](_0x16774f,_0x34706f);}[_0x1f5a54(0x3ab)](_0xa7996f){const _0x5c2dbc=_0x1f5a54;var _0x33ebf0,_0x34513c;return(_0x34513c=(_0x33ebf0=this['_handler'])['onTransformIME'])==null?void 0x0:_0x34513c[_0x5c2dbc(0x25e)](_0x33ebf0,_0xa7996f);}[_0x1f5a54(0x2b5)](_0x20b6ee){const _0x185967=_0x1f5a54;var _0x4c6516,_0x4b40a4,_0x585f8c;return(_0x585f8c=(_0x4b40a4=(_0x4c6516=this['_handler'])[_0x185967(0x19f)])==null?void 0x0:_0x4b40a4[_0x185967(0x25e)](_0x4c6516,_0x20b6ee))!=null?_0x585f8c:_0x20b6ee;}[_0x1f5a54(0x17e)](_0x12412c){const _0x4c45be=_0x1f5a54;var _0x4ab8b7,_0x556c75;if(this['type']===H['UNIVER_DOC']){const {unitID:_0x10973a,mutations:_0x41f009,memberID:_0x321b10}=_0x12412c,_0x33f051=_0x41f009[0x0][_0x4c45be(0x3ef)][_0x4c45be(0x279)];Array[_0x4c45be(0x150)](_0x33f051)&&_0x33f051[_0x4c45be(0x2d6)]>0x0&&((_0x556c75=(_0x4ab8b7=this[_0x4c45be(0x1d7)])[_0x4c45be(0x32c)])==null||_0x556c75[_0x4c45be(0x25e)](_0x4ab8b7,{'unitID':_0x10973a,'memberID':_0x321b10,'textRanges':_0x33f051}));}}['_updateLocalCache'](){const _0x1375fb=_0x1f5a54;this[_0x1375fb(0x24c)][_0x1375fb(0x16f)](this[_0x1375fb(0x213)],this[_0x1375fb(0x400)],this[_0x1375fb(0x177)],this[_0x1375fb(0x3b3)]);}['_getCurrentRevision'](){const _0x3cc161=_0x1f5a54;return this[_0x3cc161(0x459)][_0x3cc161(0x236)](this[_0x3cc161(0x213)]);}[_0x1f5a54(0x3f5)](){const _0x47a26e=_0x1f5a54;this[_0x47a26e(0x459)]['incrementRevForDocument'](this[_0x47a26e(0x213)]);}[_0x1f5a54(0x3d3)](_0x5ad52d){const _0x33e388=_0x1f5a54;var _0x2aa02d;const _0x1ea081=this['_transformRemoteChangesetByIMECache'](_0x5ad52d),_0x23a4f3=_0x337b1e(_0x1ea081[_0x33e388(0x466)],this['_commandService'],{'fromCollab':!0x0});if(!_0x23a4f3[_0x33e388(0x2b3)])throw _0x23a4f3[_0x33e388(0x419)]instanceof Error?_0x23a4f3[_0x33e388(0x419)]:new Error((_0x2aa02d=_0x23a4f3['error'])!=null?_0x2aa02d:_0x33e388(0x451));this[_0x33e388(0x3ab)](_0x1ea081),this['_transformUndoredo'](_0x5ad52d),this[_0x33e388(0x191)](_0x1ea081),this[_0x33e388(0x17e)](_0x1ea081),this[_0x33e388(0x3f5)]();}}let Ne=class extends ae{constructor(_0x4873bf,_0x8417e0,_0x4658d0,_0xe10f5b,_0x58b0c4,_0x1039bd,_0x41bf27,_0x5a357b,_0x343e5a){const _0x400a51=_0x1f5a54;super(_0x4873bf,_0x8417e0,null,[],_0x4658d0,_0x5a357b,_0x41bf27,_0xe10f5b,_0x58b0c4),l(this,_0x400a51(0x453),_0x400a51(0x3c5)),(this[_0x400a51(0x3db)]=_0x1039bd,this[_0x400a51(0x308)]=_0x343e5a);}[_0x1f5a54(0x2c9)](_0x1bc4b0){const _0x1f30f3=_0x1f5a54,_0x13c91c=this['_injector'][_0x1f30f3(0x145)](B,this['unitID'],this['type'],[_0x1bc4b0],this[_0x1f30f3(0x1d7)]);return _0x13c91c[_0x1f30f3(0x467)](),_0x13c91c['_updateLocalCache'](),_0x13c91c;}['onRemoteChangeset'](_0x2047d3){const _0x61f0f9=_0x1f5a54;if(this['_checkMissing'](_0x2047d3))return this[_0x61f0f9(0x3db)][_0x61f0f9(0x145)](G,this[_0x61f0f9(0x213)],this[_0x61f0f9(0x400)],null,[],null,[_0x2047d3],this['_handler']);try{return this[_0x61f0f9(0x3d3)](_0x2047d3),this;}catch(_0x454ca9){return this[_0x61f0f9(0x308)][_0x61f0f9(0x419)](_0x61f0f9(0x1f4),_0x454ca9),this;}}[_0x1f5a54(0x23f)](){const _0x29ca02=_0x1f5a54;throw new Error(_0x29ca02(0x40b));}[_0x1f5a54(0x18a)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x1f5a54(0x43d)](){const _0x34b3ed=_0x1f5a54;return this[_0x34b3ed(0x3db)][_0x34b3ed(0x145)](z,this['unitID'],this['type'],null,[],this[_0x34b3ed(0x1d7)]);}[_0x1f5a54(0x21f)](){return this;}['resend'](){const _0x47af39=_0x1f5a54;throw new Error(_0x47af39(0x383));}};Ne=oe([m(0x3,_0x61a763(_0x2fc807)),m(0x4,_0x61a763(D)),m(0x5,_0x61a763(_0x2e9f94)),m(0x6,_0x4e4a39),m(0x7,_0x257ce4),m(0x8,_0x3e33de)],Ne);let B=class extends ae{constructor(_0x16f8ef,_0x165d6e,_0x52b2cb,_0x49e0e5,_0x445d50,_0x32608e,_0x59b45f,_0x564a25,_0x459e90,_0x2305ff,_0x412a6b,_0x3005c3,_0x58657a,_0x4b9b3f){const _0x4eaa56=_0x1f5a54;super(_0x16f8ef,_0x165d6e,null,_0x52b2cb,_0x49e0e5,_0x2305ff,_0x4b9b3f,_0x32608e,_0x59b45f),l(this,_0x4eaa56(0x453),_0x4eaa56(0x2e7)),l(this,_0x4eaa56(0x430),null),l(this,_0x4eaa56(0x2fe),null),(this[_0x4eaa56(0x3db)]=_0x445d50,this[_0x4eaa56(0x2a0)]=_0x564a25,this[_0x4eaa56(0x308)]=_0x459e90,this[_0x4eaa56(0x20c)]=_0x412a6b,this[_0x4eaa56(0x327)]=_0x3005c3,this[_0x4eaa56(0x357)]=_0x58657a);}[_0x1f5a54(0x2c9)](_0x24cc60){const _0x4126d8=_0x1f5a54;return this[_0x4126d8(0x3b3)][_0x4126d8(0x310)](_0x24cc60),this[_0x4126d8(0x2a7)](),this;}[_0x1f5a54(0x201)](_0x18a1f3){const _0x5e7df7=_0x1f5a54;if(this[_0x5e7df7(0x372)](_0x18a1f3))return this['_clearScheduledTask'](),this['_injector'][_0x5e7df7(0x145)](G,this['unitID'],this[_0x5e7df7(0x400)],null,this[_0x5e7df7(0x3b3)],null,[_0x18a1f3],this[_0x5e7df7(0x1d7)]);try{const _0x3b5adb=this[_0x5e7df7(0x327)][_0x5e7df7(0x461)](_0x18a1f3,this[_0x5e7df7(0x3b3)]);if(_0x5abc17(_0x3b5adb)){const {c1Prime:_0x45fd05,m2Prime:_0x3a8741}=_0x3b5adb;this['_executeRemoteChangeset'](_0x45fd05);const _0x16732f=this[_0x5e7df7(0x3db)]['createInstance'](B,this[_0x5e7df7(0x213)],this[_0x5e7df7(0x400)],_0x3a8741,this[_0x5e7df7(0x1d7)]);return this['_clearScheduledTask'](),_0x16732f[_0x5e7df7(0x467)](this[_0x5e7df7(0x430)]?Math[_0x5e7df7(0x44a)](0x0,new Date()[_0x5e7df7(0x3a2)]()-this['_scheduleTimestamp']):this[_0x5e7df7(0x3fe)]()),_0x16732f;}throw _0x3b5adb['error'];}catch(_0xcd9758){return this['_logService'][_0x5e7df7(0x419)](_0xcd9758),this['_onConflict'](!0x1);}}[_0x1f5a54(0x23f)](){const _0x180a9c=_0x1f5a54;throw new Error(_0x180a9c(0x23a));}[_0x1f5a54(0x18a)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x1f5a54(0x43d)](){const _0x2de995=_0x1f5a54;return this[_0x2de995(0x22b)](),this[_0x2de995(0x3db)][_0x2de995(0x145)](z,this[_0x2de995(0x213)],this['type'],null,this[_0x2de995(0x3b3)],this[_0x2de995(0x1d7)]);}['toggleOnline'](){return this;}[_0x1f5a54(0x467)](_0x55a225){const _0x5daabd=_0x1f5a54;_0x55a225=_0x55a225!=null?_0x55a225:this['_getSendChangesetTimeout'](),this[_0x5daabd(0x430)]=new Date()[_0x5daabd(0x3a2)](),this[_0x5daabd(0x2fe)]=setTimeout(()=>{const _0x7ffea5=_0x5daabd;this[_0x7ffea5(0x22b)]();let _0x3977cb=null;switch(this[_0x7ffea5(0x400)]){case H[_0x7ffea5(0x320)]:{_0x3977cb=Gn(this[_0x7ffea5(0x3b3)],this[_0x7ffea5(0x213)],this[_0x7ffea5(0x357)],this[_0x7ffea5(0x459)],this['_memberService']);break;}case H[_0x7ffea5(0x315)]:{_0x3977cb=Yn(this[_0x7ffea5(0x3b3)],this[_0x7ffea5(0x213)],this[_0x7ffea5(0x357)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x7ffea5(0x3bf)+this[_0x7ffea5(0x400)]+'\x20in\x20_schedule.');}const {changeset:_0x310f95,pendingMutations:_0x16fa69}=_0x3977cb;this['_handler'][_0x7ffea5(0x1eb)](_0x310f95);const _0x5b8e88=_0x16fa69[_0x7ffea5(0x2d6)]?this[_0x7ffea5(0x3db)]['createInstance'](W,this[_0x7ffea5(0x213)],this['type'],_0x310f95,_0x16fa69,this['_handler']):this['_injector'][_0x7ffea5(0x145)](q,this[_0x7ffea5(0x213)],this[_0x7ffea5(0x400)],_0x310f95,this['_handler']);_0x5b8e88[_0x7ffea5(0x2a7)](),this[_0x7ffea5(0x1d7)][_0x7ffea5(0x218)](this,_0x5b8e88);},_0x55a225);}[_0x1f5a54(0x3fe)](){const _0x3c83e0=_0x1f5a54;var _0x3a394b;return(_0x3a394b=this[_0x3c83e0(0x20c)][_0x3c83e0(0x19e)](en))!=null?_0x3a394b:tn;}[_0x1f5a54(0x392)](){const _0x5513f2=_0x1f5a54;throw new Error(_0x5513f2(0x323));}[_0x1f5a54(0x22b)](){const _0x2953a6=_0x1f5a54;this[_0x2953a6(0x2fe)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x2953a6(0x2fe)]=null);}[_0x1f5a54(0x2aa)](_0x2fa35d){const _0x23d5c8=_0x1f5a54;return this['_clearScheduledTask'](),this[_0x23d5c8(0x3db)]['createInstance'](re,this[_0x23d5c8(0x213)],this[_0x23d5c8(0x400)],null,this[_0x23d5c8(0x3b3)],this['_handler'],_0x2fa35d);}};B=oe([m(0x4,_0x61a763(_0x2e9f94)),m(0x5,_0x61a763(_0x2fc807)),m(0x6,_0x61a763(D)),m(0x7,_0x61a763(ne)),m(0x8,_0x3e33de),m(0x9,_0x257ce4),m(0xa,_0x43c997),m(0xb,_0x1215ee),m(0xc,_0x55bd21),m(0xd,_0x4e4a39)],B);let q=class extends ae{constructor(_0x1cfbfd,_0x1ecc2b,_0xc98fe,_0x4dfd1f,_0x2b2334,_0x28a80f,_0x5c4b1d,_0x279936,_0x304e7f,_0x3c6c09,_0x5626d2){const _0x1a449b=_0x1f5a54;super(_0x1cfbfd,_0x1ecc2b,_0xc98fe,[],_0x4dfd1f,_0x279936,_0x5626d2,_0x28a80f,_0x5c4b1d),l(this,_0x1a449b(0x453),'awaiting'),(this[_0x1a449b(0x3db)]=_0x2b2334,this[_0x1a449b(0x308)]=_0x304e7f,this[_0x1a449b(0x327)]=_0x3c6c09);}['appendMutation'](_0xa4a829){const _0x15f6d0=_0x1f5a54,_0x4a9ac0=this[_0x15f6d0(0x3db)]['createInstance'](W,this[_0x15f6d0(0x213)],this[_0x15f6d0(0x400)],this[_0x15f6d0(0x177)],[_0xa4a829],this[_0x15f6d0(0x1d7)]);return _0x4a9ac0[_0x15f6d0(0x2a7)](),_0x4a9ac0;}[_0x1f5a54(0x201)](_0x3555e0){const _0x53c728=_0x1f5a54;if(this[_0x53c728(0x372)](_0x3555e0))return this[_0x53c728(0x3db)]['createInstance'](G,this[_0x53c728(0x213)],this[_0x53c728(0x400)],this[_0x53c728(0x177)],[],null,[_0x3555e0],this[_0x53c728(0x1d7)]);try{const _0x53a1e8=this['_transformService'][_0x53c728(0x3d4)]([_0x3555e0],[this[_0x53c728(0x177)]],!0x1);if(_0x29a147(_0x53a1e8)){const {c1Prime:_0x92845e,c2Prime:_0x54f8f9}=_0x53a1e8;this['_executeRemoteChangeset'](_0x92845e[0x0]),_0x54f8f9[0x0][_0x53c728(0x3eb)]=this[_0x53c728(0x462)]();const _0x268878=this[_0x53c728(0x3db)]['createInstance'](q,this[_0x53c728(0x213)],this[_0x53c728(0x400)],_0x54f8f9[0x0],this[_0x53c728(0x1d7)]);return _0x268878['_updateLocalCache'](),_0x268878;}return this[_0x53c728(0x2aa)](!0x1);}catch(_0x5aa5b3){return this[_0x53c728(0x308)][_0x53c728(0x419)](_0x5aa5b3),this[_0x53c728(0x2aa)](!0x1);}}['onRemoteAck'](_0x4209de){const _0x225342=_0x1f5a54,_0x173eed=this[_0x225342(0x459)]['getCurrentRevForDocument'](this[_0x225342(0x213)]);if(_0x4209de['revision']<_0x173eed-0x1)return this;if(this['_checkMissing'](_0x4209de))return this['_injector'][_0x225342(0x145)](G,this[_0x225342(0x213)],this['type'],null,[],this[_0x225342(0x177)],[],this[_0x225342(0x1d7)]);this[_0x225342(0x3f5)]();const _0x51878d=this[_0x225342(0x3db)][_0x225342(0x145)](Ne,this['unitID'],this[_0x225342(0x400)],this[_0x225342(0x1d7)]);return _0x51878d[_0x225342(0x2a7)](),_0x51878d;}['onRemoteRej'](_0x252952){const _0x1a562f=_0x1f5a54;return this[_0x1a562f(0x2aa)](!!(_0x252952!=null&&_0x252952[_0x1a562f(0x362)]));}[_0x1f5a54(0x43d)](){const _0x52b459=_0x1f5a54;return this['_injector'][_0x52b459(0x145)](z,this[_0x52b459(0x213)],this[_0x52b459(0x400)],this['_awaitingChangeset'],[],this[_0x52b459(0x1d7)]);}[_0x1f5a54(0x21f)](){return this;}[_0x1f5a54(0x392)](){const _0x4edb0c=_0x1f5a54;this[_0x4edb0c(0x1d7)][_0x4edb0c(0x1eb)](this[_0x4edb0c(0x177)]);}['_onConflict'](_0x3c55e3){const _0xc6fece=_0x1f5a54;return this[_0xc6fece(0x3db)]['createInstance'](re,this[_0xc6fece(0x213)],this[_0xc6fece(0x400)],this[_0xc6fece(0x177)],[],this['_handler'],_0x3c55e3);}};q=oe([m(0x4,_0x61a763(_0x2e9f94)),m(0x5,_0x61a763(_0x2fc807)),m(0x6,_0x61a763(D)),m(0x7,_0x257ce4),m(0x8,_0x3e33de),m(0x9,_0x1215ee),m(0xa,_0x4e4a39)],q);let W=class extends ae{constructor(_0xe39aa9,_0x10393e,_0xe4590e,_0x1f6a42,_0x261a1e,_0x4945b9,_0x18d19b,_0x156829,_0x5c9a68,_0x4f5ca6,_0x1e8104,_0x30c227){const _0x53d3f8=_0x1f5a54;super(_0xe39aa9,_0x10393e,_0xe4590e,_0x1f6a42,_0x261a1e,_0x5c9a68,_0x30c227,_0x18d19b,_0x156829),l(this,'status',_0x53d3f8(0x3e9)),(this[_0x53d3f8(0x3db)]=_0x4945b9,this[_0x53d3f8(0x308)]=_0x4f5ca6,this[_0x53d3f8(0x327)]=_0x1e8104);}[_0x1f5a54(0x2c9)](_0x1e6d7f){const _0x1f46a1=_0x1f5a54;return this['_pendingMutations'][_0x1f46a1(0x310)](_0x1e6d7f),this;}[_0x1f5a54(0x201)](_0x5a2f5c){const _0x1a8915=_0x1f5a54;if(this[_0x1a8915(0x372)](_0x5a2f5c))return this[_0x1a8915(0x3db)][_0x1a8915(0x145)](G,this[_0x1a8915(0x213)],this[_0x1a8915(0x400)],this[_0x1a8915(0x177)],this[_0x1a8915(0x3b3)],null,[_0x5a2f5c],this[_0x1a8915(0x1d7)]);try{const _0x5ea763=this[_0x1a8915(0x327)]['transformChangesets']([_0x5a2f5c],[this['_awaitingChangeset']],!0x1);if(_0x29a147(_0x5ea763)){const {c1Prime:_0x51d405,c2Prime:_0x5d9a69}=_0x5ea763,_0x506b6b=this[_0x1a8915(0x327)][_0x1a8915(0x461)](_0x51d405[0x0],this[_0x1a8915(0x3b3)]);if(_0x5abc17(_0x506b6b)){const {c1Prime:_0x55506b,m2Prime:_0x555eb8}=_0x506b6b;return this['_executeRemoteChangeset'](_0x55506b),_0x5d9a69[0x0][_0x1a8915(0x3eb)]=this['_getCurrentRevision'](),this[_0x1a8915(0x3db)][_0x1a8915(0x145)](W,this['unitID'],this[_0x1a8915(0x400)],_0x5d9a69[0x0],_0x555eb8,this[_0x1a8915(0x1d7)]);}throw _0x506b6b[_0x1a8915(0x419)];}throw _0x5ea763[_0x1a8915(0x419)];}catch(_0x3ef417){return this[_0x1a8915(0x308)]['error'](_0x3ef417),this[_0x1a8915(0x2aa)](!0x1);}}[_0x1f5a54(0x23f)](_0x38c656){const _0x36b4d3=_0x1f5a54;if(this[_0x36b4d3(0x372)](_0x38c656))return this['_injector'][_0x36b4d3(0x145)](G,this[_0x36b4d3(0x213)],this[_0x36b4d3(0x400)],null,this[_0x36b4d3(0x3b3)],this[_0x36b4d3(0x177)],[],this[_0x36b4d3(0x1d7)]);this['_incrementRevisionNumber']();const _0x349ec5=this[_0x36b4d3(0x3db)][_0x36b4d3(0x145)](B,this['unitID'],this[_0x36b4d3(0x400)],this['_pendingMutations'],this[_0x36b4d3(0x1d7)]);return _0x349ec5[_0x36b4d3(0x467)](),_0x349ec5[_0x36b4d3(0x2a7)](),_0x349ec5;}[_0x1f5a54(0x18a)](_0x23862b){const _0x4222f6=_0x1f5a54;return this[_0x4222f6(0x2aa)](!!(_0x23862b!=null&&_0x23862b[_0x4222f6(0x362)]));}[_0x1f5a54(0x43d)](){const _0x31df21=_0x1f5a54;return this[_0x31df21(0x3db)][_0x31df21(0x145)](z,this['unitID'],this[_0x31df21(0x400)],this[_0x31df21(0x177)],this['_pendingMutations'],this[_0x31df21(0x1d7)]);}[_0x1f5a54(0x21f)](){return this;}[_0x1f5a54(0x392)](){const _0x4c5d89=_0x1f5a54;this[_0x4c5d89(0x1d7)][_0x4c5d89(0x1eb)](this[_0x4c5d89(0x177)]);}[_0x1f5a54(0x2aa)](_0x403251){const _0x4f3e4c=_0x1f5a54;return this[_0x4f3e4c(0x3db)][_0x4f3e4c(0x145)](re,this[_0x4f3e4c(0x213)],this[_0x4f3e4c(0x400)],null,this['_pendingMutations'],this[_0x4f3e4c(0x1d7)],_0x403251);}};W=oe([m(0x5,_0x61a763(_0x2e9f94)),m(0x6,_0x61a763(_0x2fc807)),m(0x7,_0x61a763(D)),m(0x8,_0x257ce4),m(0x9,_0x3e33de),m(0xa,_0x1215ee),m(0xb,_0x4e4a39)],W);let re=class extends ae{constructor(_0x2da707,_0x3d109b,_0x53f1b9,_0x3508bf,_0x5bb67b,_0xfbb11=!0x1,_0x3d0a7c,_0x14116f,_0x24c0ac,_0x5d0ee5,_0x2bcb5a,_0x574621,_0x1fed9f){const _0x53459a=_0x1f5a54;super(_0x2da707,_0x3d109b,_0x53f1b9,_0x3508bf,_0x5bb67b,_0x14116f,_0x24c0ac,_0x2bcb5a,_0x5d0ee5),l(this,_0x53459a(0x453),'conflict'),(this[_0x53459a(0x1a0)]=_0xfbb11,this['_permissionService']=_0x3d0a7c,this['_localeService']=_0x574621,this[_0x53459a(0x2e8)]=_0x1fed9f,this[_0x53459a(0x329)](),this['_clearLocalCache'](),this[_0x53459a(0x375)]());}[_0x1f5a54(0x2c9)](){return this;}[_0x1f5a54(0x201)](){return this;}['onRemoteAck'](){return this;}[_0x1f5a54(0x18a)](){return this;}[_0x1f5a54(0x43d)](){return this;}[_0x1f5a54(0x21f)](){return this;}[_0x1f5a54(0x392)](){const _0x398d5f=_0x1f5a54;throw new Error(_0x398d5f(0x28c));}[_0x1f5a54(0x3d7)](){const _0x43015e=_0x1f5a54;this['_localCacheService'][_0x43015e(0x16f)](this['unitID'],this[_0x43015e(0x400)],null,[]);}[_0x1f5a54(0x329)](){const _0x396793=_0x1f5a54;this[_0x396793(0x1a0)]?this[_0x396793(0x2e8)][_0x396793(0x43a)]({'title':this['_localeService']['t'](_0x396793(0x231)),'content':this[_0x396793(0x3a6)]['t']('permission.content'),'type':_0x396793(0x419),'duration':0x0}):this['_notificationService'][_0x396793(0x43a)]({'title':this[_0x396793(0x3a6)]['t'](_0x396793(0x181)),'content':this[_0x396793(0x3a6)]['t'](_0x396793(0x2e3)),'type':_0x396793(0x419),'duration':0x0});}[_0x1f5a54(0x375)](){const _0x500eee=_0x1f5a54;this[_0x500eee(0x1ba)]['updatePermissionPoint'](new _0x278a53(this[_0x500eee(0x213)])['id'],!0x1);}};re=oe([m(0x6,_0x61a763(_0x1721b0)),m(0x7,_0x257ce4),m(0x8,_0x4e4a39),m(0x9,_0x61a763(D)),m(0xa,_0x61a763(_0x2fc807)),m(0xb,_0x61a763(_0x4eec6f)),m(0xc,_0x1d0f07)],re);let z=class extends ae{constructor(_0x2c01e4,_0x5db69d,_0x2c558c,_0x31b641,_0x4f0613,_0xa22eb1,_0x204cab,_0x5de8bb,_0x254a6c,_0x165c83){const _0x53f591=_0x1f5a54;super(_0x2c01e4,_0x5db69d,_0x2c558c,_0x31b641,_0x4f0613,_0x254a6c,_0x165c83,_0x204cab,_0x5de8bb),l(this,_0x53f591(0x453),_0x53f591(0x2c8)),this[_0x53f591(0x3db)]=_0xa22eb1;}[_0x1f5a54(0x2c9)](_0x32169a){const _0x33cc6b=_0x1f5a54;return this[_0x33cc6b(0x3b3)][_0x33cc6b(0x310)](_0x32169a),this[_0x33cc6b(0x2a7)](),this;}[_0x1f5a54(0x201)](_0x40b61a){const _0x2ba2c4=_0x1f5a54;throw new Error(_0x2ba2c4(0x27d));}['onRemoteAck'](){const _0x23c38b=_0x1f5a54;throw new Error(_0x23c38b(0x19a));}['onRemoteRej'](){const _0x280a42=_0x1f5a54;throw new Error(_0x280a42(0x2d1));}['toggleOffline'](){return this;}[_0x1f5a54(0x21f)](){const _0x1c77d1=_0x1f5a54,{_injector:_0x59f4c5,_pendingMutations:_0x5338f7,_awaitingChangeset:_0x5a0216,unitID:_0x3ca979,_handler:_0x20c1a2,type:_0x177ea0}=this,_0x579c2d=Ms(_0x59f4c5,_0x3ca979,_0x177ea0,_0x5a0216,_0x5338f7,_0x20c1a2);return _0x579c2d instanceof B?_0x579c2d[_0x1c77d1(0x467)]():(_0x579c2d instanceof W||_0x579c2d instanceof q)&&_0x579c2d[_0x1c77d1(0x392)](),_0x579c2d;}[_0x1f5a54(0x392)](){const _0x1e20c7=_0x1f5a54;throw new Error(_0x1e20c7(0x282));}};z=oe([m(0x5,_0x61a763(_0x2e9f94)),m(0x6,_0x61a763(_0x2fc807)),m(0x7,_0x61a763(D)),m(0x8,_0x257ce4),m(0x9,_0x4e4a39)],z);let G=class extends ae{constructor(_0x3ef4a4,_0x5ee2f5,_0xb94c68,_0x4c6191,_0x355080,_0x4a6797,_0x39de29,_0x1f9dca,_0x6c7312,_0x2cc9f3,_0x1187b3,_0x31d929,_0x25628e,_0x1c189b){const _0xdb6c79=_0x1f5a54;super(_0x3ef4a4,_0x5ee2f5,_0xb94c68,_0x4c6191,_0x39de29,_0x31d929,_0x25628e,_0x6c7312,_0x2cc9f3),l(this,_0xdb6c79(0x453),_0xdb6c79(0x1b8)),(this[_0xdb6c79(0x322)]=_0x355080,this[_0xdb6c79(0x1d1)]=_0x4a6797,this[_0xdb6c79(0x3db)]=_0x1f9dca,this[_0xdb6c79(0x308)]=_0x1187b3,this[_0xdb6c79(0x327)]=_0x1c189b);}[_0x1f5a54(0x223)](_0x443310){const _0xdb0d55=_0x1f5a54;try{const _0x48a8f9=[..._0x443310,...this[_0xdb0d55(0x1d1)]],_0x37a856=[this[_0xdb0d55(0x177)]||this[_0xdb0d55(0x322)]][_0xdb0d55(0x434)](_0x29ddad=>!!_0x29ddad);let _0x367c2f,_0x5b0d6d;if(_0x37a856[_0xdb0d55(0x2d6)]){const _0x181d04=this['_transformService']['transformChangesets'](_0x48a8f9,_0x37a856,!0x1);if(!_0x29a147(_0x181d04))throw _0x181d04[_0xdb0d55(0x419)];_0x367c2f=_0x181d04[_0xdb0d55(0x454)],_0x5b0d6d=_0x181d04['c2Prime'];}else _0x367c2f=_0x48a8f9,_0x5b0d6d=[];let _0x219260=this[_0xdb0d55(0x3b3)];_0x367c2f['forEach'](_0x23adc8=>{const _0x8a13c0=_0xdb0d55;let _0x11b063;if(_0x219260[_0x8a13c0(0x2d6)]){const _0x805923=this['_transformService'][_0x8a13c0(0x461)](_0x23adc8,_0x219260);if(!_0x5abc17(_0x805923))throw _0x805923[_0x8a13c0(0x419)];_0x11b063=_0x805923[_0x8a13c0(0x454)],_0x219260=_0x805923[_0x8a13c0(0x349)];}else _0x11b063=_0x23adc8;this[_0x8a13c0(0x3d3)](_0x11b063);}),this[_0xdb0d55(0x322)]&&this[_0xdb0d55(0x3f5)](),this[_0xdb0d55(0x177)]&&_0x5b0d6d['length']&&(_0x5b0d6d[0x0][_0xdb0d55(0x3eb)]=this[_0xdb0d55(0x462)]());let _0x5d38f9;if(this[_0xdb0d55(0x177)]&&_0x219260[_0xdb0d55(0x2d6)]!==0x0)_0x5d38f9=this[_0xdb0d55(0x3db)][_0xdb0d55(0x145)](W,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],_0x5b0d6d[0x0],_0x219260,this[_0xdb0d55(0x1d7)]);else{if(this[_0xdb0d55(0x177)]&&_0x219260[_0xdb0d55(0x2d6)]===0x0)_0x5b0d6d[0x0]['baseRev']=this['_getCurrentRevision'](),_0x5d38f9=this[_0xdb0d55(0x3db)]['createInstance'](q,this[_0xdb0d55(0x213)],this['type'],_0x5b0d6d[0x0],this[_0xdb0d55(0x1d7)]);else{if(_0x219260[_0xdb0d55(0x2d6)]!==0x0){const _0x2cb958=this['_injector'][_0xdb0d55(0x145)](B,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],_0x219260,this[_0xdb0d55(0x1d7)]);_0x2cb958['_schedule'](),_0x5d38f9=_0x2cb958;}else _0x5d38f9=this['_injector']['createInstance'](Ne,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],this[_0xdb0d55(0x1d7)]);}}return _0x5d38f9['_updateLocalCache'](),_0x5d38f9;}catch(_0x3acfb0){return this[_0xdb0d55(0x308)]['error'](_0xdb0d55(0x447),_0xdb0d55(0x2fb),_0x3acfb0),this[_0xdb0d55(0x3db)][_0xdb0d55(0x145)](re,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],this[_0xdb0d55(0x177)],this[_0xdb0d55(0x3b3)],this[_0xdb0d55(0x1d7)],!0x1);}}[_0x1f5a54(0x392)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f5a54(0x2c9)](_0xe55fcd){const _0x4ec695=_0x1f5a54;return this[_0x4ec695(0x3b3)][_0x4ec695(0x310)](_0xe55fcd),this;}['onRemoteChangeset'](_0x350ace){const _0x52e11a=_0x1f5a54;return this[_0x52e11a(0x1d1)]['push'](_0x350ace),this;}[_0x1f5a54(0x23f)](_0x13c200){const _0x1e0e09=_0x1f5a54;if(this[_0x1e0e09(0x177)])return this['_acknowledgedAwaitingChangeset']=this[_0x1e0e09(0x177)],this[_0x1e0e09(0x177)]=null,this;throw new Error(_0x1e0e09(0x176));}[_0x1f5a54(0x18a)](_0x2bad31){const _0x2230d5=_0x1f5a54;return this[_0x2230d5(0x2aa)](!!(_0x2bad31!=null&&_0x2bad31['isPermissionRej']));}[_0x1f5a54(0x43d)](){const _0x2c6538=_0x1f5a54;return this['_injector'][_0x2c6538(0x145)](z,this[_0x2c6538(0x213)],this[_0x2c6538(0x400)],this[_0x2c6538(0x177)],this[_0x2c6538(0x3b3)],this[_0x2c6538(0x1d7)]);}['toggleOnline'](){return this;}['_onConflict'](_0x9172f4){const _0x5b8435=_0x1f5a54;return this[_0x5b8435(0x3db)][_0x5b8435(0x145)](re,this['unitID'],this[_0x5b8435(0x400)],this[_0x5b8435(0x177)],this[_0x5b8435(0x3b3)],this[_0x5b8435(0x1d7)],_0x9172f4);}};G=oe([m(0x7,_0x61a763(_0x2e9f94)),m(0x8,_0x61a763(_0x2fc807)),m(0x9,_0x61a763(D)),m(0xa,_0x3e33de),m(0xb,_0x257ce4),m(0xc,_0x4e4a39),m(0xd,_0x1215ee)],G);function Ms(_0x3c967f,_0x3e4b13,_0xe2acbf,_0x5d35b1,_0x57481f,_0x292914){const _0x32420d=_0x1f5a54;return _0x5d35b1&&_0x57481f[_0x32420d(0x2d6)]?_0x3c967f[_0x32420d(0x145)](W,_0x3e4b13,_0xe2acbf,_0x5d35b1,_0x57481f,_0x292914):_0x5d35b1?_0x3c967f[_0x32420d(0x145)](q,_0x3e4b13,_0xe2acbf,_0x5d35b1,_0x292914):_0x57481f[_0x32420d(0x2d6)]?_0x3c967f[_0x32420d(0x145)](B,_0x3e4b13,_0xe2acbf,_0x57481f,_0x292914):_0x3c967f[_0x32420d(0x145)](Ne,_0x3e4b13,_0xe2acbf,_0x292914);}var Jn=Object[_0x1f5a54(0x29f)],qn=Object[_0x1f5a54(0x3cc)],tt=(_0x288e80,_0x30f6a8,_0x8976ee,_0x4ccc31)=>{for(var _0x4e18fd=_0x4ccc31>0x1?void 0x0:_0x4ccc31?qn(_0x30f6a8,_0x8976ee):_0x30f6a8,_0x158e0c=_0x288e80['length']-0x1,_0xc83620;_0x158e0c>=0x0;_0x158e0c--)(_0xc83620=_0x288e80[_0x158e0c])&&(_0x4e18fd=(_0x4ccc31?_0xc83620(_0x30f6a8,_0x8976ee,_0x4e18fd):_0xc83620(_0x4e18fd))||_0x4e18fd);return _0x4ccc31&&_0x4e18fd&&Jn(_0x30f6a8,_0x8976ee,_0x4e18fd),_0x4e18fd;},S=(_0x3cdfc1,_0x3d33d1)=>(_0xeffe21,_0x19a995)=>_0x3d33d1(_0xeffe21,_0x19a995,_0x3cdfc1);let De=class extends _0x5915f1{constructor(_0x2cfa7c,_0x53b50a,_0x5cfcd9){const _0x2cc26c=_0x1f5a54;super(),l(this,_0x2cc26c(0x457),new Map()),l(this,_0x2cc26c(0x157),new _0x295019()),(this[_0x2cc26c(0x3db)]=_0x2cfa7c,this['_collabSessionService']=_0x53b50a,this[_0x2cc26c(0x357)]=_0x5cfcd9,this[_0x2cc26c(0x3b6)]());}[_0x1f5a54(0x26e)](){const _0xec9625=_0x1f5a54;super[_0xec9625(0x26e)](),this[_0xec9625(0x457)][_0xec9625(0x37a)](_0x45af75=>_0x45af75[_0xec9625(0x26e)]()),this[_0xec9625(0x457)][_0xec9625(0x2f2)]();}[_0x1f5a54(0x2c5)](_0x4173c2){const _0x2ba28b=_0x1f5a54;var _0x22e1c2;return(_0x22e1c2=this[_0x2ba28b(0x457)]['get'](_0x4173c2))!=null?_0x22e1c2:null;}[_0x1f5a54(0x431)](_0x4439b5){const _0x3ca7d2=_0x1f5a54,_0x362449=this[_0x3ca7d2(0x2c5)](_0x4439b5);return _0x362449?_0x110ce6(_0x362449):this['_entityInit$'][_0x3ca7d2(0x180)](_0x3d131e(_0x4f69a7=>_0x4f69a7['unitID']===_0x4439b5));}[_0x1f5a54(0x3b6)](){const _0x137800=_0x1f5a54;this[_0x137800(0x357)][_0x137800(0x1fb)](_0x5cab0b[_0x137800(0x320)])[_0x137800(0x180)](_0x57fb4a(this[_0x137800(0x3cd)]),_0x29d1e4(0x10))[_0x137800(0x2d9)](async _0x23aeab=>{const _0xf219c=_0x137800,_0x449175=_0x23aeab[_0xf219c(0x2a2)](),_0x1561b1=await this[_0xf219c(0x1b0)](_0x449175,H[_0xf219c(0x320)]);this[_0xf219c(0x457)][_0xf219c(0x22e)](_0x449175,_0x1561b1);}),this[_0x137800(0x357)][_0x137800(0x1fb)](_0x5cab0b['UNIVER_DOC'])[_0x137800(0x180)](_0x57fb4a(this[_0x137800(0x3cd)]),_0x29d1e4(0x10))['pipe'](_0x3d131e(_0x5f327b=>!_0x5f327b[_0x137800(0x2a2)]()[_0x137800(0x41d)]('__')))[_0x137800(0x2d9)](async _0x88e06e=>{const _0x4067c3=_0x137800,_0x3e2c7c=_0x88e06e[_0x4067c3(0x2a2)](),_0x4b8bbb=await this[_0x4067c3(0x1b0)](_0x3e2c7c,H['UNIVER_DOC']);this[_0x4067c3(0x457)][_0x4067c3(0x22e)](_0x3e2c7c,_0x4b8bbb);}),_0x2e3217(this[_0x137800(0x357)][_0x137800(0x303)](_0x5cab0b[_0x137800(0x320)]),this[_0x137800(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x137800(0x315)]))[_0x137800(0x180)](_0x57fb4a(this[_0x137800(0x3cd)]))[_0x137800(0x2d9)](_0x2707a3=>{const _0x5175c0=_0x137800,_0x2285ab=_0x2707a3[_0x5175c0(0x2a2)](),_0x19a9a4=this[_0x5175c0(0x457)][_0x5175c0(0x393)](_0x2285ab);_0x19a9a4&&(_0x19a9a4[_0x5175c0(0x26e)](),this[_0x5175c0(0x457)][_0x5175c0(0x3a5)](_0x2285ab));});}async[_0x1f5a54(0x1b0)](_0x162419,_0x4dbcdd){const _0x41cbc6=_0x1f5a54,_0x32899e=await this['_collabSessionService']['requireSession'](_0x162419),_0x2c0feb=this[_0x41cbc6(0x3db)]['createInstance'](this[_0x41cbc6(0x3c8)](_0x4dbcdd),_0x162419,_0x4dbcdd,_0x32899e);return await _0x2c0feb[_0x41cbc6(0x33e)](),this[_0x41cbc6(0x157)][_0x41cbc6(0x39b)](_0x2c0feb),_0x2c0feb;}[_0x1f5a54(0x3c8)](_0x46adb3){const _0xad3dc8=_0x1f5a54;switch(_0x46adb3){case H[_0xad3dc8(0x315)]:return vt;case H['UNIVER_SHEET']:return pt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x46adb3);}}};De=tt([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],De),S(0x0,_0x61a763(_0x2e9f94)),S(0x1,_0x61a763(ge)),S(0x2,_0x55bd21)],De);let ze=class extends _0x5915f1{constructor(_0x3079f3,_0x39544b,_0x6011ba,_0x134f77,_0x4b5cab,_0x24c9f4,_0x534b86,_0x2607c7,_0x5d1a21,_0x36ef95,_0x2ce6b1,_0x3d2c43,_0x364307){const _0x7d12a8=_0x1f5a54;super(),l(this,_0x7d12a8(0x20a),new _0x24a55e(null)),l(this,_0x7d12a8(0x3f0),this[_0x7d12a8(0x20a)][_0x7d12a8(0x26b)]()),l(this,'_state'),l(this,_0x7d12a8(0x32a),!0x1),l(this,_0x7d12a8(0x41a),this[_0x7d12a8(0x3f0)]['pipe'](_0x28f321(_0x134b3c=>_0x134b3c?_0x134b3c['status']:w[_0x7d12a8(0x243)]),_0x4a0e36(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x7d12a8(0x3ba),[]),(this[_0x7d12a8(0x213)]=_0x3079f3,this[_0x7d12a8(0x14a)]=_0x39544b,this[_0x7d12a8(0x159)]=_0x6011ba,this[_0x7d12a8(0x3db)]=_0x134f77,this[_0x7d12a8(0x24c)]=_0x4b5cab,this['_compressMutationService']=_0x24c9f4,this[_0x7d12a8(0x3a6)]=_0x534b86,this['_revisionService']=_0x2607c7,this[_0x7d12a8(0x308)]=_0x5d1a21,this['_commandService']=_0x36ef95,this[_0x7d12a8(0x44b)]=_0x2ce6b1,this[_0x7d12a8(0x1ba)]=_0x3d2c43,this[_0x7d12a8(0x244)]=_0x364307);}get[_0x1f5a54(0x173)](){const _0x470ab2=_0x1f5a54;return this[_0x470ab2(0x31f)];}async[_0x1f5a54(0x33e)](){const _0x11c851=_0x1f5a54;if(this[_0x11c851(0x173)])throw new Error(_0x11c851(0x21c));await this[_0x11c851(0x3b6)]();}[_0x1f5a54(0x1b6)](){return this['_collaborationPaused']=!0x0,_0x5d3cf2(()=>{const _0x100132=_0x2f7f;this[_0x100132(0x32a)]=!0x1,this[_0x100132(0x2b0)]();});}[_0x1f5a54(0x3ae)](_0x55584d){const _0x1923e7=_0x1f5a54;this[_0x1923e7(0x31f)]=_0x55584d,this['_state$']['next'](_0x55584d);}async[_0x1f5a54(0x3b6)](){const _0x4a3ee9=_0x1f5a54;var _0x118d23;return this[_0x4a3ee9(0x3ae)](await this[_0x4a3ee9(0x306)]()),this['_singleActiveUnitService']&&((_0x118d23=this[_0x4a3ee9(0x244)])==null||_0x118d23[_0x4a3ee9(0x35d)](this[_0x4a3ee9(0x213)]),this[_0x4a3ee9(0x194)](_0x5d3cf2(this[_0x4a3ee9(0x244)][_0x4a3ee9(0x253)](this['unitID'])[_0x4a3ee9(0x2d9)](_0x57822e=>{const _0x28b564=_0x4a3ee9;this[_0x28b564(0x308)][_0x28b564(0x319)]('[CollaborationEntity]',_0x28b564(0x29c),_0x57822e),_0x57822e===ws[_0x28b564(0x2ef)]?(this[_0x28b564(0x44b)][_0x28b564(0x43a)]({'content':this[_0x28b564(0x3a6)]['t']('collaboration.single-unit.warning'),'type':_0x454b23[_0x28b564(0x17f)]}),this[_0x28b564(0x1ba)]['updatePermissionPoint'](new _0x278a53(this['unitID'])['id'],!0x1)):this[_0x28b564(0x1ba)][_0x28b564(0x2bb)](new _0x278a53(this[_0x28b564(0x213)])['id'],!0x0);})))),this[_0x4a3ee9(0x194)](_0x5d3cf2(this[_0x4a3ee9(0x159)][_0x4a3ee9(0x376)][_0x4a3ee9(0x2d9)](_0x2985c4=>{const _0x55e2cf=_0x4a3ee9;_0x2985c4===de[_0x55e2cf(0x405)]?this['_toggleOnline']():_0x2985c4===de[_0x55e2cf(0x243)]&&this['_toggleOffline']();}))),this['disposeWithMe'](_0x5d3cf2(this[_0x4a3ee9(0x159)][_0x4a3ee9(0x403)]['subscribe'](_0x18194e=>{const _0x1c75a9=_0x4a3ee9;try{switch(_0x18194e[_0x1c75a9(0x2cf)]){case _0x505428[_0x1c75a9(0x2f5)]:{this[_0x1c75a9(0x26c)](_0x13fead(_0x18194e[_0x1c75a9(0x2a5)]));break;}case _0x505428[_0x1c75a9(0x27e)]:{this[_0x1c75a9(0x38f)](_0x18194e[_0x1c75a9(0x2a5)]);break;}case _0x505428['CHANGESET_REJ']:{this[_0x1c75a9(0x3fb)]();break;}case _0x505428[_0x1c75a9(0x421)]:{this[_0x1c75a9(0x226)](_0x18194e[_0x1c75a9(0x2a5)][_0x1c75a9(0x262)][_0x1c75a9(0x1a7)](_0x3352a5=>_0x13fead(_0x3352a5)));break;}case _0x505428['PERMISSION_REJ']:this[_0x1c75a9(0x3fb)]({'isPermissionRej':!0x0});}}catch(_0x1159c3){throw console['error'](_0x1c75a9(0x2d3),_0x1159c3),_0x1159c3;}}))),this[_0x4a3ee9(0x31f)];}[_0x1f5a54(0x2ce)](){const _0x1b7725=_0x1f5a54;this[_0x1b7725(0x21b)]=!0x1;}[_0x1f5a54(0x30d)](){const _0x1951ad=_0x1f5a54;if(this[_0x1951ad(0x21b)])throw new Error(_0x1951ad(0x37f));this[_0x1951ad(0x21b)]=!0x0;}['_onLocalMutation'](_0x339edd){const _0x447a31=_0x1f5a54;this[_0x447a31(0x30d)](),this[_0x447a31(0x3ae)](this[_0x447a31(0x31f)]['appendMutation'](_0x339edd)),this[_0x447a31(0x2ce)]();}[_0x1f5a54(0x26c)](_0x1922ea){const _0xe32fa4=_0x1f5a54;if(!(_0x1922ea[_0xe32fa4(0x35c)]<=this[_0xe32fa4(0x459)][_0xe32fa4(0x236)](this[_0xe32fa4(0x213)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x1922ea);return;}this['_applyRemoteChangeset'](_0x1922ea);}}[_0x1f5a54(0x2b0)](){const _0x4e70ed=_0x1f5a54;this[_0x4e70ed(0x3ba)][_0x4e70ed(0x37a)](_0x16511c=>this[_0x4e70ed(0x3b8)](_0x16511c)),this[_0x4e70ed(0x3ba)]=[];}[_0x1f5a54(0x3b8)](_0x4a1024){const _0xdb10e=_0x1f5a54,_0x3f5ecf=this[_0xdb10e(0x386)][_0xdb10e(0x396)][_0xdb10e(0x474)](this[_0xdb10e(0x386)][_0xdb10e(0x396)][_0xdb10e(0x3f6)]()[_0xdb10e(0x371)])(_0x4a1024[_0xdb10e(0x466)],null)||_0x4a1024[_0xdb10e(0x466)],_0x4b09b6={..._0x4a1024,'mutations':_0x3f5ecf};this['_lockTransition'](),this['_updateState'](this[_0xdb10e(0x31f)][_0xdb10e(0x201)](_0x4b09b6)),this[_0xdb10e(0x2ce)]();}[_0x1f5a54(0x38f)](_0x1a6d66){const _0x42b3b8=_0x1f5a54;this[_0x42b3b8(0x30d)](),this[_0x42b3b8(0x3ae)](this[_0x42b3b8(0x31f)]['onRemoteAck'](_0x1a6d66)),this[_0x42b3b8(0x2ce)]();}[_0x1f5a54(0x3fb)](_0x1d95ad){const _0x3dd1a1=_0x1f5a54;this['_lockTransition'](),this[_0x3dd1a1(0x3ae)](this[_0x3dd1a1(0x31f)]['onRemoteRej'](_0x1d95ad)),this[_0x3dd1a1(0x2ce)]();}[_0x1f5a54(0x226)](_0x212388){const _0x28e7e2=_0x1f5a54;if(!(this['_state']instanceof G))throw new TypeError(_0x28e7e2(0x1e4));const _0x2dd04e=_0x212388[_0x28e7e2(0x1a7)](_0x1ec60c=>{const _0x9e2526=_0x28e7e2,_0x5f1808=this[_0x9e2526(0x386)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x9e2526(0x396)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x1ec60c[_0x9e2526(0x466)],null)||_0x1ec60c[_0x9e2526(0x466)];return{..._0x1ec60c,'mutations':_0x5f1808};});this[_0x28e7e2(0x30d)](),this[_0x28e7e2(0x3ae)](this['_state']['onMissedChangesetFetched'](_0x2dd04e)),this['_unlockTransition']();}[_0x1f5a54(0x29a)](){const _0xb789d8=_0x1f5a54;this['_lockTransition'](),this['_updateState'](this[_0xb789d8(0x31f)][_0xb789d8(0x43d)]()),this[_0xb789d8(0x2ce)]();}[_0x1f5a54(0x22c)](){const _0x534587=_0x1f5a54;this[_0x534587(0x30d)](),this['_updateState'](this[_0x534587(0x31f)][_0x534587(0x21f)]()),this['_unlockTransition']();}async[_0x1f5a54(0x306)](){return new Promise(_0x3e61cd=>{const _0x3e4f02=_0x2f7f;this['_session']['sessionStatus$'][_0x3e4f02(0x180)](_0x4747bd(0x1))[_0x3e4f02(0x2d9)](async _0x3b799f=>{const _0x4015b5=_0x3e4f02;_0x3e61cd(await this[_0x4015b5(0x46f)](_0x3b799f===de[_0x4015b5(0x405)]));});});}[_0x1f5a54(0x1f6)](){const _0x31e639=_0x1f5a54,_0x17b19d=this[_0x31e639(0x213)];return{'onStateChange':(_0x4e02b3,_0x47a2d0)=>{const _0xa5ee17=_0x31e639;if(_0x4e02b3!==this[_0xa5ee17(0x31f)])throw new Error(_0xa5ee17(0x22f)+_0x4e02b3[_0xa5ee17(0x453)]+'\x0aAfter:\x20'+_0x47a2d0['status']+_0xa5ee17(0x24a)+this[_0xa5ee17(0x31f)][_0xa5ee17(0x453)]);this[_0xa5ee17(0x3ae)](_0x47a2d0);},'onSendChangeset':_0x1f7ebb=>{const _0x1a4b4d=_0x31e639,_0x86d475={'eventID':_0x505428[_0x1a4b4d(0x2d8)],'data':{'unitID':_0x1f7ebb['unitID'],'unitType':this[_0x1a4b4d(0x14a)],'changeset':_0x1f7ebb,'memberID':this[_0x1a4b4d(0x159)]['getMemberID']()}};this[_0x1a4b4d(0x159)]['send'](_0x86d475,this[_0x1a4b4d(0x213)]);},'onMissingChangesets':({from:_0x4fdced,to:_0x209961})=>{const _0x5ccbbc=_0x31e639;this[_0x5ccbbc(0x308)][_0x5ccbbc(0x319)](_0x5ccbbc(0x3e5),'fetching\x20missing\x20changesets\x20from\x20'+_0x4fdced+_0x5ccbbc(0x2d2)+_0x209961);const _0x48e6d7={'eventID':_0x505428[_0x5ccbbc(0x1da)],'data':{'unitID':_0x17b19d,'unitType':this[_0x5ccbbc(0x14a)],'from':_0x4fdced,'to':_0x209961}};this[_0x5ccbbc(0x159)][_0x5ccbbc(0x1b5)](_0x48e6d7,this[_0x5ccbbc(0x213)]);}};}async[_0x1f5a54(0x46f)](_0x99ef5c){const _0x34fa62=_0x1f5a54;var _0x30cac5,_0x51c0f8;const _0x57bb16=await this['_localCacheService'][_0x34fa62(0x473)](this[_0x34fa62(0x213)]),_0x291ad4=(_0x30cac5=_0x57bb16==null?void 0x0:_0x57bb16[_0x34fa62(0x466)])!=null?_0x30cac5:[],_0x1d83ae=(_0x51c0f8=_0x57bb16==null?void 0x0:_0x57bb16[_0x34fa62(0x266)])!=null?_0x51c0f8:null,_0x1a7f68=this[_0x34fa62(0x213)];try{this[_0x34fa62(0x2cd)](_0x1d83ae,_0x291ad4);}catch(_0x14918e){this[_0x34fa62(0x308)][_0x34fa62(0x419)](_0x14918e);}const _0x383625=this[_0x34fa62(0x1f6)]();if(_0x99ef5c){const _0x4ba679=Ms(this[_0x34fa62(0x3db)],_0x1a7f68,this[_0x34fa62(0x14a)],_0x1d83ae,_0x291ad4,_0x383625);return _0x4ba679 instanceof B?_0x4ba679[_0x34fa62(0x467)]():(_0x4ba679 instanceof W||_0x4ba679 instanceof q)&&_0x4ba679[_0x34fa62(0x392)](),_0x4ba679;}return this[_0x34fa62(0x3db)][_0x34fa62(0x145)](z,_0x1a7f68,this[_0x34fa62(0x14a)],_0x1d83ae,_0x291ad4,_0x383625);}[_0x1f5a54(0x2cd)](_0xff6f9b,_0x52f8db){const _0x530e62=_0x1f5a54;var _0x465799,_0x409d79;const _0x4f9fec=this[_0x530e62(0x386)][_0x530e62(0x396)][_0x530e62(0x474)](this[_0x530e62(0x386)][_0x530e62(0x396)][_0x530e62(0x3f6)]()[_0x530e62(0x371)]);(_0x465799=_0x4f9fec((_0xff6f9b==null?void 0x0:_0xff6f9b['mutations'])||[],null))==null||_0x465799['forEach'](_0x2a2c0a=>this['_commandService'][_0x530e62(0x2b2)](_0x2a2c0a['id'],_0x2a2c0a[_0x530e62(0x3ef)])),(_0x409d79=_0x4f9fec(_0x52f8db||[],null))==null||_0x409d79[_0x530e62(0x37a)](_0x2dfbbb=>this['_commandService']['executeCommand'](_0x2dfbbb['id'],_0x2dfbbb[_0x530e62(0x3ef)]));}};ze=tt([S(0x3,_0x61a763(_0x2e9f94)),S(0x4,_0x61a763(D)),S(0x5,_0x61a763(_0xb14cef)),S(0x6,_0x61a763(_0x4eec6f)),S(0x7,_0x61a763(_0x2fc807)),S(0x8,_0x3e33de),S(0x9,_0x257ce4),S(0xa,_0x58c973),S(0xb,_0x1721b0),S(0xc,_0x455db1(et))],ze);let vt=class extends ze{constructor(_0x4ac2b4,_0xc702cd,_0x2c4bc5,_0x3ed80b,_0x3ca47f,_0x3efb4f,_0x21edfb,_0x1e1193,_0x460600,_0x3444a2,_0x11c485,_0x3b2340,_0x4eb87f,_0x46f819,_0x4858cb,_0x348bb4,_0x5ec338){const _0x1c0f7e=_0x1f5a54;super(_0x4ac2b4,_0xc702cd,_0x2c4bc5,_0x3ed80b,_0x3ca47f,_0x3efb4f,_0x21edfb,_0x1e1193,_0x4eb87f,_0x46f819,_0x4858cb,_0x348bb4,_0x5ec338),this[_0x1c0f7e(0x213)]=_0x4ac2b4,this[_0x1c0f7e(0x400)]=_0xc702cd,this[_0x1c0f7e(0x452)]=_0x2c4bc5,this[_0x1c0f7e(0x2eb)]=_0x460600,this[_0x1c0f7e(0x20d)]=_0x3444a2,this[_0x1c0f7e(0x1b4)]=_0x11c485,this[_0x1c0f7e(0x3f1)]=_0x3b2340;}[_0x1f5a54(0x1f6)](){const _0x134b8c=_0x1f5a54,_0x39c03a=super[_0x134b8c(0x1f6)]();return _0x39c03a[_0x134b8c(0x39c)]=_0xb76f22=>this['_docTransformIMECacheService']['transformIMECache'](_0xb76f22),_0x39c03a['onTransformSelections']=_0x5d964a=>this[_0x134b8c(0x1b4)][_0x134b8c(0x234)](_0x5d964a),_0x39c03a['onSyncEditingCollabCursor']=_0x1a903f=>this[_0x134b8c(0x3f1)][_0x134b8c(0x15f)](_0x1a903f),_0x39c03a['onTransformRemoteChangesetByIMECache']=_0xc8e9a8=>this[_0x134b8c(0x20d)][_0x134b8c(0x348)](_0xc8e9a8),_0x39c03a;}async[_0x1f5a54(0x3b6)](){const _0x4891b7=_0x1f5a54,_0x11ab12=await super[_0x4891b7(0x3b6)]();return this[_0x4891b7(0x2eb)][_0x4891b7(0x1c2)][_0x4891b7(0x180)](_0x57fb4a(this[_0x4891b7(0x3cd)]))['subscribe'](_0x39e562=>{const _0x2ea652=_0x4891b7;if(_0x39e562==null)return;const {unitId:_0x598f1a,redoState:_0x3b4884,commandId:_0x9bc7ae}=_0x39e562;if(_0x598f1a!==this[_0x2ea652(0x213)])return;const _0xe89bd6={'id':_0x9bc7ae,'type':_0x4d2326[_0x2ea652(0x28e)],'params':{'unitId':_0x598f1a,'actions':_0x3b4884[_0x2ea652(0x1b1)],'textRanges':null}};this['_onLocalMutation'](_0xe89bd6);}),_0x11ab12;}};vt=tt([S(0x3,_0x61a763(_0x2e9f94)),S(0x4,_0x61a763(D)),S(0x5,_0x61a763(_0xb14cef)),S(0x6,_0x61a763(_0x4eec6f)),S(0x7,_0x61a763(_0x2fc807)),S(0x8,_0x61a763(_0x3a189c)),S(0x9,_0x61a763(Xe)),S(0xa,_0x61a763(Je)),S(0xb,_0x61a763(Ut)),S(0xc,_0x3e33de),S(0xd,_0x257ce4),S(0xe,_0x58c973),S(0xf,_0x1721b0),S(0x10,_0x455db1(et))],vt);let pt=class extends ze{constructor(_0x582abc,_0x3691cf,_0x3847d3,_0xd409cf,_0x125e1e,_0x1a093a,_0x4f5650,_0xc5ba64,_0x45b996,_0x31efa1,_0x63f8dc,_0x37da95,_0x498ae2,_0x3a9f36){const _0x4cea9d=_0x1f5a54;super(_0x582abc,_0x3691cf,_0x3847d3,_0xd409cf,_0x125e1e,_0x1a093a,_0x4f5650,_0xc5ba64,_0x31efa1,_0x63f8dc,_0x37da95,_0x498ae2,_0x3a9f36),this[_0x4cea9d(0x213)]=_0x582abc,this[_0x4cea9d(0x400)]=_0x3691cf,this[_0x4cea9d(0x452)]=_0x3847d3,this[_0x4cea9d(0x313)]=_0x45b996;}[_0x1f5a54(0x1f6)](){const _0x1bc1dc=_0x1f5a54,_0x328301=super[_0x1bc1dc(0x1f6)]();return _0x328301['onTransformSelections']=_0x3fcf65=>this[_0x1bc1dc(0x313)][_0x1bc1dc(0x234)](_0x3fcf65),_0x328301;}async[_0x1f5a54(0x3b6)](){const _0x3bef5e=_0x1f5a54,_0x408df3=await super[_0x3bef5e(0x3b6)]();return this['disposeWithMe'](this[_0x3bef5e(0x299)][_0x3bef5e(0x39e)]((_0x269dc6,_0x122e24)=>{const _0xcf1666=_0x3bef5e;if(_0x269dc6[_0xcf1666(0x400)]!==_0x4d2326['MUTATION']||_0x122e24!=null&&_0x122e24['fromCollab']||_0x122e24!=null&&_0x122e24[_0xcf1666(0x42c)])return;const _0x532a94=_0x269dc6['params'];if((_0x532a94==null?void 0x0:_0x532a94[_0xcf1666(0x3f8)])!==this['unitID'])return;const _0x17dac6=_0x269dc6,_0x939fa5=this[_0xcf1666(0x386)][_0xcf1666(0x396)][_0xcf1666(0x474)](this[_0xcf1666(0x386)][_0xcf1666(0x396)][_0xcf1666(0x3f6)]()[_0xcf1666(0x344)])([_0x17dac6],null)||[_0x17dac6];this[_0xcf1666(0x472)](_0x939fa5[0x0]);})),_0x408df3;}};pt=tt([S(0x3,_0x61a763(_0x2e9f94)),S(0x4,_0x61a763(D)),S(0x5,_0x61a763(_0xb14cef)),S(0x6,_0x61a763(_0x4eec6f)),S(0x7,_0x61a763(_0x2fc807)),S(0x8,_0x61a763(qe)),S(0x9,_0x3e33de),S(0xa,_0x257ce4),S(0xb,_0x58c973),S(0xc,_0x1721b0),S(0xd,_0x455db1(et))],pt);const es=['purple300',_0x1f5a54(0x246),'verdancy600',_0x1f5a54(0x2ae),_0x1f5a54(0x189),_0x1f5a54(0x2c7)];class Lt extends _0x462626{constructor(){const _0x354bc0=_0x1f5a54;super(...arguments),l(this,_0x354bc0(0x340),new Map()),l(this,_0x354bc0(0x207),0x0);}[_0x1f5a54(0x2ee)](_0x363fda){const _0x3d083c=_0x1f5a54;if(this[_0x3d083c(0x340)][_0x3d083c(0x1d8)](_0x363fda))return this['_assignedColors']['get'](_0x363fda);const _0x20cb41=es[this[_0x3d083c(0x207)]];return this[_0x3d083c(0x207)]=(this[_0x3d083c(0x207)]+0x1)%es[_0x3d083c(0x2d6)],this[_0x3d083c(0x340)][_0x3d083c(0x22e)](_0x363fda,_0x20cb41),_0x20cb41;}}var zn=Object[_0x1f5a54(0x29f)],Zn=Object[_0x1f5a54(0x3cc)],Qn=(_0x41034c,_0x41e6f3,_0x49e7e9,_0x4558b7)=>{const _0x2fad77=_0x1f5a54;for(var _0x257533=_0x4558b7>0x1?void 0x0:_0x4558b7?Zn(_0x41e6f3,_0x49e7e9):_0x41e6f3,_0x420e97=_0x41034c[_0x2fad77(0x2d6)]-0x1,_0x3067dc;_0x420e97>=0x0;_0x420e97--)(_0x3067dc=_0x41034c[_0x420e97])&&(_0x257533=(_0x4558b7?_0x3067dc(_0x41e6f3,_0x49e7e9,_0x257533):_0x3067dc(_0x257533))||_0x257533);return _0x4558b7&&_0x257533&&zn(_0x41e6f3,_0x49e7e9,_0x257533),_0x257533;},he=(_0x27e748,_0x4743d8)=>(_0x609922,_0x23899c)=>_0x4743d8(_0x609922,_0x23899c,_0x27e748);const er=0x12c,tr=0x64,sr=()=>{let _0x169fc4=[],_0x3031e4=!0x1;return _0x176d59=>{const _0x1e430d=_0x2f7f;_0x169fc4[_0x1e430d(0x310)](_0x176d59),_0x3031e4||(_0x3031e4=!0x0,setTimeout(()=>{const _0x32b75c=_0x1e430d;_0x169fc4[_0x32b75c(0x37a)](_0x44d1b9=>_0x44d1b9()),_0x169fc4=[],_0x3031e4=!0x1;}));};};let It=class extends _0x5915f1{constructor(_0xb95516,_0x41bffe,_0x3ca3f1,_0x172e8b,_0x20ebdd,_0x1285b2,_0x2bb0f2,_0x4a69fa){const _0x3e8dda=_0x1f5a54;super(),l(this,_0x3e8dda(0x144),!0x1),l(this,_0x3e8dda(0x3b6),!0x1),l(this,_0x3e8dda(0x172),new _0x24a55e(new Map())),l(this,_0x3e8dda(0x296),this[_0x3e8dda(0x172)][_0x3e8dda(0x26b)]()),l(this,_0x3e8dda(0x192),new _0x24a55e([])),l(this,_0x3e8dda(0x3c1),this[_0x3e8dda(0x192)]['pipe'](_0x49f759(er))),l(this,_0x3e8dda(0x2bf),_0x21574d((_0x3a0122,_0x5c999f)=>{const _0x5df923=_0x3e8dda,_0x4a39b4={'eventID':_0x505428['UPDATE_CURSOR'],'data':{'unitID':this[_0x5df923(0x213)],'memberID':this[_0x5df923(0x159)][_0x5df923(0x385)](),'selection':_0x24fc6d(_0x3a0122,_0x5c999f['range'])}};this[_0x5df923(0x159)]['send'](_0x4a39b4,this[_0x5df923(0x213)]);},tr)),(this[_0x3e8dda(0x213)]=_0xb95516,this[_0x3e8dda(0x159)]=_0x41bffe,this[_0x3e8dda(0x3db)]=_0x3ca3f1,this['_colorAssignService']=_0x172e8b,this[_0x3e8dda(0x2a0)]=_0x20ebdd,this[_0x3e8dda(0x357)]=_0x1285b2,this[_0x3e8dda(0x299)]=_0x2bb0f2,this[_0x3e8dda(0x2fa)]=_0x4a69fa);}get[_0x1f5a54(0x31e)](){const _0x5769ff=_0x1f5a54;return this[_0x5769ff(0x172)][_0x5769ff(0x321)]();}get[_0x1f5a54(0x38a)](){const _0x204364=_0x1f5a54;return this[_0x204364(0x192)]['getValue']();}[_0x1f5a54(0x26e)](){const _0x26d1bc=_0x1f5a54;super[_0x26d1bc(0x26e)](),this['_cursorInfo$']['next'](new Map()),this[_0x26d1bc(0x172)][_0x26d1bc(0x424)](),this[_0x26d1bc(0x192)][_0x26d1bc(0x39b)]([]),this['_roomMembers$'][_0x26d1bc(0x424)]();}[_0x1f5a54(0x33e)](){const _0x489da9=_0x1f5a54;this['_init']||(this[_0x489da9(0x3b6)]=!0x0,this[_0x489da9(0x159)]['sessionStatus$'][_0x489da9(0x180)](_0x57fb4a(this[_0x489da9(0x3cd)]))[_0x489da9(0x2d9)](_0x3ed328=>{const _0x380112=_0x489da9;_0x3ed328===de[_0x380112(0x405)]?this[_0x380112(0x22c)]():this['_toggleOffline']();}),this[_0x489da9(0x159)][_0x489da9(0x403)][_0x489da9(0x180)](_0x57fb4a(this['dispose$']))['subscribe'](_0x25a34c=>{const _0x35a310=_0x489da9,_0xc8b6d1=_0x25a34c['eventID'];_0xc8b6d1===_0x505428[_0x35a310(0x412)]&&this['_onCursorUpdate'](_0x25a34c),_0xc8b6d1===_0x505428[_0x35a310(0x42b)]&&this['_onCursorDelete'](_0x25a34c);}),this[_0x489da9(0x2d7)](),this[_0x489da9(0x194)](this[_0x489da9(0x299)]['onCommandExecuted'](_0xc1f4a1=>{const _0x5e2d07=_0x489da9;if(this[_0x5e2d07(0x144)]&&_0xc1f4a1['id']===_0x109738['id']&&_0xc1f4a1[_0x5e2d07(0x3ef)]['unitId']===this[_0x5e2d07(0x213)]){const _0x4cea45=_0xc1f4a1['params'];this[_0x5e2d07(0x2bf)](_0x4cea45['subUnitId'],_0x4cea45[_0x5e2d07(0x2ab)][0x0]);}})));}[_0x1f5a54(0x316)](_0x35d48e){const _0x865112=_0x1f5a54;var _0x587a15,_0x168ee3;const {memberID:_0xd5ed4d,selection:_0x629c96}=_0x35d48e[_0x865112(0x2a5)],{sheetName:_0x1943e8,range:_0x16945b}=_0x13b7f9(_0x629c96),_0x433647={'name':(_0x168ee3=(_0x587a15=this['_memberService']['getMember'](this[_0x865112(0x213)],_0xd5ed4d))==null?void 0x0:_0x587a15[_0x865112(0x40c)])!=null?_0x168ee3:_0x865112(0x23e),'range':this[_0x865112(0x406)](_0x1943e8,_0x16945b),'sheetID':_0x1943e8,'color':this[_0x865112(0x311)][_0x865112(0x2ee)](_0xd5ed4d),'selection':_0x629c96},_0x78eb61=this[_0x865112(0x31e)];_0x78eb61[_0x865112(0x22e)](_0xd5ed4d,_0x433647),this['_cursorInfo$']['next'](_0x78eb61);}[_0x1f5a54(0x1be)](_0x1bfbe5){const _0x1117d3=_0x1f5a54,{memberID:_0x5d6d67}=_0x1bfbe5[_0x1117d3(0x2a5)],_0x8cae25=this[_0x1117d3(0x31e)];_0x8cae25['delete'](_0x5d6d67),this[_0x1117d3(0x172)][_0x1117d3(0x39b)](_0x8cae25);}[_0x1f5a54(0x406)](_0x1b05dc,_0x404ea6){const _0x84f05c=_0x1f5a54;var _0x130b11,_0x50cb00;const _0x576d97=(_0x50cb00=(_0x130b11=this[_0x84f05c(0x357)][_0x84f05c(0x46c)](this['unitID']))==null?void 0x0:_0x130b11[_0x84f05c(0x232)](_0x1b05dc))==null?void 0x0:_0x50cb00[_0x84f05c(0x330)]();return(_0x576d97==null?void 0x0:_0x576d97[_0x84f05c(0x17c)](_0x294c32=>_0x708e4b[_0x84f05c(0x463)](_0x294c32,_0x404ea6)))||_0x404ea6;}[_0x1f5a54(0x2d7)](){const _0x3747f9=_0x1f5a54,_0x2c8035=new _0x1382fe(),_0x2d5cf7=sr(),_0x50d41c=()=>{const _0x57e7d4=_0x2f7f;_0x2c8035[_0x57e7d4(0x26e)]();const _0x2010d4=(_0x4bc4e5,_0x48ef4c,_0x36dcaf,_0x1fcce7)=>{const _0x462805=_0x57e7d4;let _0x357d35=[];switch(_0x4bc4e5['id']){case _0x349867[_0x462805(0x161)]:{_0x357d35=_0x3e36a2(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x1db)]:{_0x357d35=_0xad81ef(_0x4bc4e5,_0x1fcce7);break;}case _0x349867['InsertColCommandId']:{_0x357d35=_0x185ab7(_0x4bc4e5,_0x1fcce7);break;}case _0x349867['InsertRangeMoveDownCommandId']:{_0x357d35=_0x13c601(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x197)]:{_0x357d35=_0x515386(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x170)]:{_0x357d35=_0x56aa1d(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x37d)]:{_0x357d35=_0x544ab2(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x247)]:{_0x357d35=_0x2db791(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x26d)]:{_0x357d35=_0x2ff430(_0x4bc4e5,_0x1fcce7);break;}}const _0x11ccc3=_0x16303f(_0x357d35,_0x1fcce7),_0x1473bb=this[_0x462805(0x31e)]['get'](_0x48ef4c);if(_0x1473bb&&_0x11ccc3){const _0x3f6b43={..._0x1473bb,'range':_0x11ccc3};this['cursorInfo'][_0x462805(0x22e)](_0x48ef4c,_0x3f6b43),_0x2d5cf7(()=>{const _0x83311c=_0x462805,_0x1100b8=this[_0x83311c(0x2fa)][_0x83311c(0x27a)](_0x11ccc3,_0x4c1c8f=>(_0x1100b8['dispose'](),_0x2010d4(_0x4c1c8f,_0x48ef4c,_0x36dcaf,_0x11ccc3)));_0x2c8035[_0x83311c(0x3c0)](_0x1100b8);});}return{'redos':[],'undos':[]};};this[_0x57e7d4(0x31e)][_0x57e7d4(0x37a)]((_0x2dbb82,_0x78b5d1)=>{const _0x5cc323=_0x57e7d4,{range:_0x55bfbe,sheetID:_0x142119}=_0x2dbb82,_0x59dae3=this['_refRangeService'][_0x5cc323(0x27a)](_0x55bfbe,_0x230d84=>(_0x59dae3['dispose'](),_0x2010d4(_0x230d84,_0x78b5d1,_0x142119,_0x55bfbe)));_0x2c8035[_0x5cc323(0x3c0)](_0x59dae3);});};this[_0x3747f9(0x194)](_0x5d3cf2(this['_cursorInfo$'][_0x3747f9(0x2d9)](()=>{_0x50d41c();})));}[_0x1f5a54(0x22c)](){const _0x26aced=_0x1f5a54;var _0x5cd6f7,_0x3fe489;if(this[_0x26aced(0x144)]=!0x0,((_0x5cd6f7=this[_0x26aced(0x357)][_0x26aced(0x3ed)]())==null?void 0x0:_0x5cd6f7[_0x26aced(0x2a2)]())!==this['unitID'])return;const _0x196f28=(_0x3fe489=this['_injector'][_0x26aced(0x393)](_0x5914fd)[_0x26aced(0x208)]())==null?void 0x0:_0x3fe489[0x0],_0x430c43=this['_univerInstanceService'][_0x26aced(0x440)](_0x5cab0b[_0x26aced(0x320)])['getActiveSheet']();_0x196f28&&_0x430c43&&this['_updateLocalCursor'](_0x430c43[_0x26aced(0x31a)](),_0x196f28);}['_toggleOffline'](){const _0x8fc27=_0x1f5a54;this[_0x8fc27(0x144)]=!0x1;}};It=Qn([he(0x2,_0x61a763(_0x2e9f94)),he(0x3,_0x61a763(Lt)),he(0x4,_0x61a763(ne)),he(0x5,_0x55bd21),he(0x6,_0x257ce4),he(0x7,_0x61a763(_0x351ccc))],It);var ir=Object[_0x1f5a54(0x29f)],nr=Object[_0x1f5a54(0x3cc)],rr=(_0x14024e,_0x4842b8,_0x254590,_0x2640c4)=>{const _0x87c145=_0x1f5a54;for(var _0x242925=_0x2640c4>0x1?void 0x0:_0x2640c4?nr(_0x4842b8,_0x254590):_0x4842b8,_0x324d03=_0x14024e[_0x87c145(0x2d6)]-0x1,_0x3dee07;_0x324d03>=0x0;_0x324d03--)(_0x3dee07=_0x14024e[_0x324d03])&&(_0x242925=(_0x2640c4?_0x3dee07(_0x4842b8,_0x254590,_0x242925):_0x3dee07(_0x242925))||_0x242925);return _0x2640c4&&_0x242925&&ir(_0x4842b8,_0x254590,_0x242925),_0x242925;},te=(_0x51b198,_0x5afaa5)=>(_0x2a3caf,_0x3534d8)=>_0x5afaa5(_0x2a3caf,_0x3534d8,_0x51b198);const or=0x12c,ar=0x64;let Et=class extends _0x5915f1{constructor(_0x2129c9,_0x4bff47,_0x20ee4b,_0x39d31a,_0x3ecf68,_0x144707,_0x2d24b0,_0x73ba2e,_0x2ff943){const _0x39f835=_0x1f5a54;super(),l(this,_0x39f835(0x144),!0x1),l(this,_0x39f835(0x3b6),!0x1),l(this,'_cursorInfo$',new _0x24a55e(new Map())),l(this,_0x39f835(0x296),this[_0x39f835(0x172)][_0x39f835(0x26b)]()),l(this,_0x39f835(0x192),new _0x24a55e([])),l(this,'roomMembers$',this[_0x39f835(0x192)][_0x39f835(0x180)](_0x49f759(or))),l(this,_0x39f835(0x2bf),_0x21574d(_0x58c3c6=>{const _0x5bcacd=_0x39f835,_0x3dc158={'eventID':_0x505428[_0x5bcacd(0x412)],'data':{'unitID':this[_0x5bcacd(0x213)],'memberID':this[_0x5bcacd(0x159)][_0x5bcacd(0x385)](),'selection':Ns(_0x58c3c6)}};this[_0x5bcacd(0x159)][_0x5bcacd(0x1b5)](_0x3dc158,this['unitID']);},ar)),(this[_0x39f835(0x213)]=_0x2129c9,this['_session']=_0x4bff47,this['_injector']=_0x20ee4b,this[_0x39f835(0x311)]=_0x39d31a,this[_0x39f835(0x2a0)]=_0x3ecf68,this[_0x39f835(0x2ba)]=_0x144707,this[_0x39f835(0x327)]=_0x2d24b0,this[_0x39f835(0x357)]=_0x73ba2e,this[_0x39f835(0x299)]=_0x2ff943);}get[_0x1f5a54(0x31e)](){const _0x3e05cf=_0x1f5a54;return this['_cursorInfo$'][_0x3e05cf(0x321)]();}get['roomMembers'](){const _0x55883c=_0x1f5a54;return this[_0x55883c(0x192)][_0x55883c(0x321)]();}[_0x1f5a54(0x26e)](){const _0x2b81d7=_0x1f5a54;super[_0x2b81d7(0x26e)](),this[_0x2b81d7(0x172)][_0x2b81d7(0x39b)](new Map()),this[_0x2b81d7(0x172)][_0x2b81d7(0x424)](),this['_roomMembers$'][_0x2b81d7(0x39b)]([]),this[_0x2b81d7(0x192)][_0x2b81d7(0x424)]();}[_0x1f5a54(0x33e)](){const _0x54885a=_0x1f5a54;this[_0x54885a(0x3b6)]||(this['_init']=!0x0,this[_0x54885a(0x159)]['sessionStatus$'][_0x54885a(0x180)](_0x57fb4a(this['dispose$']))[_0x54885a(0x2d9)](_0x3a7d13=>{const _0x8f025b=_0x54885a;_0x3a7d13===de[_0x8f025b(0x405)]?this[_0x8f025b(0x22c)]():this[_0x8f025b(0x29a)]();}),this[_0x54885a(0x159)][_0x54885a(0x403)][_0x54885a(0x180)](_0x57fb4a(this[_0x54885a(0x3cd)]))[_0x54885a(0x2d9)](_0x3ad4cd=>{const _0x1f6fd9=_0x54885a,_0x3a09cd=_0x3ad4cd[_0x1f6fd9(0x2cf)];_0x3a09cd===_0x505428['UPDATE_CURSOR']&&this[_0x1f6fd9(0x316)](_0x3ad4cd),_0x3a09cd===_0x505428[_0x1f6fd9(0x42b)]&&this[_0x1f6fd9(0x1be)](_0x3ad4cd);}),this[_0x54885a(0x194)](this[_0x54885a(0x299)][_0x54885a(0x39e)](_0x2d1963=>{const _0x39bfa6=_0x54885a,_0x3432c8=_0x2d1963[_0x39bfa6(0x3ef)];_0x3432c8!=null&&this[_0x39bfa6(0x144)]&&_0x2d1963['id']===_0x477910['id']&&_0x3432c8[_0x39bfa6(0x3f8)]===this[_0x39bfa6(0x213)]&&_0x3432c8[_0x39bfa6(0x3e0)]===!0x1&&this[_0x39bfa6(0x2bf)](_0x3432c8[_0x39bfa6(0x3af)]);})),this['_syncEditingCollabCursorService'][_0x54885a(0x155)]['pipe'](_0x57fb4a(this['dispose$']))[_0x54885a(0x2d9)](_0x4b911e=>{const _0xae52a1=_0x54885a;if((_0x4b911e==null?void 0x0:_0x4b911e['unitID'])!==this[_0xae52a1(0x213)])return;const _0x11f08a={'eventID':_0x505428[_0xae52a1(0x412)],'data':_0x4b911e};this['_onCursorUpdate'](_0x11f08a);}),this['disposeWithMe'](this[_0x54885a(0x299)][_0x54885a(0x39e)](_0x82e18=>{const _0x127d99=_0x54885a;if(_0x82e18[_0x127d99(0x3ef)]==null)return;const _0x4745db=_0x82e18[_0x127d99(0x3ef)];if(_0x82e18['id']!==_0x52bb0d['id']||_0x4745db[_0x127d99(0x3f8)]!==this[_0x127d99(0x213)])return;const _0x292074={'id':'doc.mutation.rich-text-editing','params':_0x4745db},_0x3f1100=this[_0x127d99(0x31e)];for(const [_0x286f9d,_0x331740]of _0x3f1100){const _0xb0dcd7={'id':_0x127d99(0x14c),'params':{'unitId':this[_0x127d99(0x213)],'actions':null,'textRanges':_0x331740['ranges']}},_0x1cea3b=this[_0x127d99(0x327)][_0x127d99(0x34d)](_0x292074,_0xb0dcd7,!0x1);if(_0x2bbef6(_0x1cea3b))throw _0x1cea3b[_0x127d99(0x419)];_0x3f1100[_0x127d99(0x22e)](_0x286f9d,{..._0x331740,'ranges':_0x1cea3b[_0x127d99(0x349)][_0x127d99(0x3ef)][_0x127d99(0x279)]});}queueMicrotask(()=>{const _0x1d63cd=_0x127d99;this[_0x1d63cd(0x172)][_0x1d63cd(0x39b)](_0x3f1100);});})));}[_0x1f5a54(0x316)](_0x39f286){const _0x5e3a20=_0x1f5a54;var _0x7b8de7,_0x40a96e;const {memberID:_0x2aac8c,selection:_0x4d4435}=_0x39f286[_0x5e3a20(0x2a5)],_0x39d5fa=xn(_0x4d4435),_0x17d48e=(_0x40a96e=(_0x7b8de7=this[_0x5e3a20(0x2a0)]['getMember'](this[_0x5e3a20(0x213)],_0x2aac8c))==null?void 0x0:_0x7b8de7['name'])!=null?_0x40a96e:_0x5e3a20(0x23e),_0x5cef9e={'color':this[_0x5e3a20(0x311)][_0x5e3a20(0x2ee)](_0x2aac8c),'name':_0x17d48e,'ranges':_0x39d5fa},_0x2ddfd8=this[_0x5e3a20(0x31e)];_0x2ddfd8[_0x5e3a20(0x22e)](_0x2aac8c,_0x5cef9e),this[_0x5e3a20(0x172)]['next'](_0x2ddfd8);}[_0x1f5a54(0x1be)](_0x3ff088){const _0xee2011=_0x1f5a54,{memberID:_0x2c0ba0}=_0x3ff088['data'],_0xa927ae=this[_0xee2011(0x31e)];_0xa927ae[_0xee2011(0x3a5)](_0x2c0ba0),this[_0xee2011(0x172)][_0xee2011(0x39b)](_0xa927ae);}[_0x1f5a54(0x22c)](){const _0xc5f218=_0x1f5a54;var _0x2c9916;if(this['_online']=!0x0,((_0x2c9916=this[_0xc5f218(0x357)]['getFocusedUnit']())==null?void 0x0:_0x2c9916[_0xc5f218(0x2a2)]())!==this[_0xc5f218(0x213)])return;const _0x1aa725=this[_0xc5f218(0x3db)][_0xc5f218(0x393)](_0x233706)['getCurrentSelections'](),_0x17fd6a=_0x1aa725==null?void 0x0:_0x1aa725['map'](_0x4605fa);Array[_0xc5f218(0x150)](_0x17fd6a)&&_0x17fd6a[_0xc5f218(0x2d6)]>0x0&&this[_0xc5f218(0x2bf)](_0x17fd6a);}['_toggleOffline'](){const _0x6b58ba=_0x1f5a54;this[_0x6b58ba(0x144)]=!0x1;}};Et=rr([te(0x2,_0x61a763(_0x2e9f94)),te(0x3,_0x61a763(Lt)),te(0x4,_0x61a763(ne)),te(0x5,_0x61a763(Ut)),te(0x6,_0x1215ee),te(0x7,_0x55bd21),te(0x8,_0x257ce4)],Et);var cr=Object[_0x1f5a54(0x29f)],hr=Object['getOwnPropertyDescriptor'],lr=(_0x3c1f0f,_0x1f7f56,_0x163fef,_0x34b36a)=>{for(var _0x2b7dfe=_0x34b36a>0x1?void 0x0:_0x34b36a?hr(_0x1f7f56,_0x163fef):_0x1f7f56,_0x33bae1=_0x3c1f0f['length']-0x1,_0x42233b;_0x33bae1>=0x0;_0x33bae1--)(_0x42233b=_0x3c1f0f[_0x33bae1])&&(_0x2b7dfe=(_0x34b36a?_0x42233b(_0x1f7f56,_0x163fef,_0x2b7dfe):_0x42233b(_0x2b7dfe))||_0x2b7dfe);return _0x34b36a&&_0x2b7dfe&&cr(_0x1f7f56,_0x163fef,_0x2b7dfe),_0x2b7dfe;},ct=(_0x4c5b08,_0x41af1c)=>(_0x56b7df,_0x595f01)=>_0x41af1c(_0x56b7df,_0x595f01,_0x4c5b08);let fe=class extends _0x5915f1{constructor(_0x21522a,_0x322ef0,_0x1e76ff){const _0x2db3f3=_0x1f5a54;super(),l(this,_0x2db3f3(0x457),new Map()),l(this,_0x2db3f3(0x157),new _0x295019()),(this[_0x2db3f3(0x357)]=_0x21522a,this[_0x2db3f3(0x3db)]=_0x322ef0,this[_0x2db3f3(0x3dc)]=_0x1e76ff,this[_0x2db3f3(0x3b6)]());}[_0x1f5a54(0x26e)](){const _0x1b44e5=_0x1f5a54;super[_0x1b44e5(0x26e)](),this['_entityInit$'][_0x1b44e5(0x424)](),this[_0x1b44e5(0x457)]['forEach'](_0x212510=>_0x212510['dispose']());}[_0x1f5a54(0x25c)](_0x3a909b){const _0x4232dc=_0x1f5a54;return this[_0x4232dc(0x457)][_0x4232dc(0x1d8)](_0x3a909b)?this[_0x4232dc(0x457)][_0x4232dc(0x393)](_0x3a909b)[_0x4232dc(0x296)]:this[_0x4232dc(0x157)][_0x4232dc(0x180)](_0x21a70c(_0x297c09=>_0x297c09[_0x4232dc(0x213)]===_0x3a909b),_0x44b0e5(_0x4e4197=>_0x4e4197['cursorInfo$']));}[_0x1f5a54(0x3b6)](){const _0x1ddfe0=_0x1f5a54;this[_0x1ddfe0(0x357)]['getTypeOfUnitAdded$'](_0x5cab0b[_0x1ddfe0(0x320)])[_0x1ddfe0(0x180)](_0x57fb4a(this[_0x1ddfe0(0x3cd)]))[_0x1ddfe0(0x2d9)](async _0x55540b=>{const _0x113593=_0x1ddfe0,_0x4be07f=_0x55540b[_0x113593(0x2a2)](),_0x3bd7ca=await this[_0x113593(0x2b6)](_0x4be07f);this[_0x113593(0x157)][_0x113593(0x39b)](_0x3bd7ca),this['_entities'][_0x113593(0x22e)](_0x4be07f,_0x3bd7ca);}),this[_0x1ddfe0(0x357)][_0x1ddfe0(0x1fb)](_0x5cab0b[_0x1ddfe0(0x315)])[_0x1ddfe0(0x180)](_0x57fb4a(this[_0x1ddfe0(0x3cd)]))['pipe'](_0x21a70c(_0x27fcc2=>!_0x27fcc2[_0x1ddfe0(0x2a2)]()[_0x1ddfe0(0x41d)]('__')))[_0x1ddfe0(0x2d9)](async _0x3ece30=>{const _0x40184c=_0x1ddfe0,_0x2ad90b=_0x3ece30[_0x40184c(0x2a2)](),_0x49b273=await this[_0x40184c(0x356)](_0x2ad90b);this[_0x40184c(0x157)][_0x40184c(0x39b)](_0x49b273),this[_0x40184c(0x457)]['set'](_0x2ad90b,_0x49b273);}),_0x2e3217(this[_0x1ddfe0(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x1ddfe0(0x315)]),this[_0x1ddfe0(0x357)][_0x1ddfe0(0x303)](_0x5cab0b[_0x1ddfe0(0x320)]))[_0x1ddfe0(0x180)](_0x57fb4a(this[_0x1ddfe0(0x3cd)]))['subscribe'](_0x4ecfe8=>{const _0x270d2a=_0x1ddfe0,_0xd4afd8=_0x4ecfe8[_0x270d2a(0x2a2)](),_0x61c5bd=this[_0x270d2a(0x457)][_0x270d2a(0x393)](_0xd4afd8);_0x61c5bd&&(_0x61c5bd[_0x270d2a(0x26e)](),this[_0x270d2a(0x457)][_0x270d2a(0x3a5)](_0xd4afd8));});}async['_startSheetCollabCursor'](_0x154c24){const _0x424683=_0x1f5a54,_0x24cf43=await this[_0x424683(0x3dc)][_0x424683(0x46e)](_0x154c24),_0x3be973=this[_0x424683(0x3db)]['createInstance'](It,_0x154c24,_0x24cf43);return _0x3be973['init'](),_0x3be973;}async['_startDocCollabCursor'](_0x3f31fd){const _0x372fc9=_0x1f5a54,_0x3871c8=await this[_0x372fc9(0x3dc)][_0x372fc9(0x46e)](_0x3f31fd),_0x21fc1c=this['_injector'][_0x372fc9(0x145)](Et,_0x3f31fd,_0x3871c8);return _0x21fc1c['init'](),_0x21fc1c;}};fe=lr([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],fe),ct(0x0,_0x55bd21),ct(0x1,_0x61a763(_0x2e9f94)),ct(0x2,_0x61a763(ge))],fe);const Me=0x14,ts=0xc8,ht=0x4,_r=0x5;function ur(_0x4d5f38,_0x34cfaa){const _0x4629c8=_0x1f5a54;let {radius:_0x123213,width:_0x24d5a8,height:_0xa40cfe}=_0x34cfaa;_0x123213=_0x123213!=null?_0x123213:0x0,_0x24d5a8=_0x24d5a8!=null?_0x24d5a8:0x1e,_0xa40cfe=_0xa40cfe!=null?_0xa40cfe:0x1e;let _0x5f10a6=0x0,_0x17e538=0x0,_0x3830f7=0x0;_0x5f10a6=_0x17e538=_0x3830f7=Math[_0x4629c8(0x3dd)](_0x123213,_0x24d5a8/0x2,_0xa40cfe/0x2),_0x4d5f38[_0x4629c8(0x45c)](),_0x4d5f38[_0x4629c8(0x28b)](_0x5f10a6,0x0),_0x4d5f38[_0x4629c8(0x439)](_0x24d5a8-_0x17e538,0x0),_0x4d5f38[_0x4629c8(0x45d)](_0x24d5a8-_0x17e538,_0x17e538,_0x17e538,Math['PI']*0x3/0x2,0x0,!0x1),_0x4d5f38[_0x4629c8(0x439)](_0x24d5a8,_0xa40cfe-_0x3830f7),_0x4d5f38['arc'](_0x24d5a8-_0x3830f7,_0xa40cfe-_0x3830f7,_0x3830f7,0x0,Math['PI']/0x2,!0x1),_0x4d5f38['lineTo'](0x0,_0xa40cfe),_0x4d5f38[_0x4629c8(0x439)](0x0,_0x5f10a6),_0x4d5f38[_0x4629c8(0x45d)](_0x5f10a6,_0x5f10a6,_0x5f10a6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4d5f38['closePath'](),_0x34cfaa[_0x4629c8(0x332)]&&(_0x4d5f38[_0x4629c8(0x269)](),_0x4d5f38[_0x4629c8(0x3b0)]=_0x34cfaa['fill'],_0x34cfaa[_0x4629c8(0x3e2)]===_0x4629c8(0x1ad)?_0x4d5f38[_0x4629c8(0x332)](_0x4629c8(0x1ad)):_0x4d5f38[_0x4629c8(0x332)](),_0x4d5f38[_0x4629c8(0x3d5)]());}class st extends _0x520a18{constructor(_0x53d5d7,_0x1228ae){const _0x3bc9d8=_0x1f5a54;super(_0x53d5d7,_0x1228ae),l(this,_0x3bc9d8(0x428)),l(this,'text'),(this['color']=_0x1228ae==null?void 0x0:_0x1228ae[_0x3bc9d8(0x428)],this[_0x3bc9d8(0x3a9)]=_0x1228ae==null?void 0x0:_0x1228ae[_0x3bc9d8(0x3a9)]);}static['drawWith'](_0x19bfba,_0x59f71c){const _0x38b81d=_0x1f5a54,{text:_0x4da30d,color:_0x5c22bc}=_0x59f71c;_0x19bfba['save'](),_0x19bfba[_0x38b81d(0x273)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1036cc=_0x19bfba[_0x38b81d(0x3e1)](_0x4da30d)[_0x38b81d(0x343)],_0x5bf305=Math[_0x38b81d(0x3dd)](_0x1036cc+0x2*ht,ts);ur(_0x19bfba,{'height':Me,'radius':0x4,'width':_0x5bf305,'fill':_0x5c22bc,'evented':!0x1}),_0x19bfba[_0x38b81d(0x3b0)]='#FFF';const _0x283c84=ht,_0x114c84=Me-_r,_0x1c7bc9=ts-0x2*ht;if(_0x1036cc>_0x1c7bc9){let _0x1d629e='',_0x3633c6=0x0;for(const _0x5de517 of _0x4da30d){const _0x579559=_0x19bfba['measureText'](_0x5de517)[_0x38b81d(0x343)];if(_0x3633c6+_0x579559<=_0x1c7bc9-_0x19bfba[_0x38b81d(0x3e1)](_0x38b81d(0x3ad))[_0x38b81d(0x343)])_0x1d629e+=_0x5de517,_0x3633c6+=_0x579559;else{_0x1d629e+=_0x38b81d(0x3ad);break;}}_0x19bfba['fillText'](_0x1d629e,_0x283c84,_0x114c84);}else _0x19bfba[_0x38b81d(0x18f)](_0x4da30d,_0x283c84,_0x114c84);_0x19bfba[_0x38b81d(0x3d5)]();}[_0x1f5a54(0x444)](_0x36b6a9){const _0x30fa35=_0x1f5a54;st[_0x30fa35(0x30b)](_0x36b6a9,this);}}const dr=0x1,fr=1.5;class mr extends _0x520a18{constructor(_0x2eb91a,_0x19341b){const _0x10e048=_0x1f5a54;super(_0x2eb91a,_0x19341b),l(this,_0x10e048(0x413)),l(this,'_hovered',!0x1),l(this,_0x10e048(0x334)),l(this,_0x10e048(0x433),''),l(this,_0x10e048(0x370),'top'),l(this,'_backgroundColor'),(_0x19341b&&this[_0x10e048(0x36b)](_0x19341b),this[_0x10e048(0x2cc)][_0x10e048(0x341)](()=>this[_0x10e048(0x36b)]({'hovered':!0x0})),this[_0x10e048(0x242)][_0x10e048(0x341)](()=>this[_0x10e048(0x36b)]({'hovered':!0x1})));}[_0x1f5a54(0x36b)](_0x5df3ae){const _0x530aec=_0x1f5a54;var _0x529125,_0x580446,_0x4fcd1f,_0x132257,_0x265906,_0x33b11a;this['_color']=(_0x529125=_0x5df3ae['color'])!=null?_0x529125:this[_0x530aec(0x413)],this[_0x530aec(0x317)]=(_0x580446=_0x5df3ae['hovered'])!=null?_0x580446:this[_0x530aec(0x317)],this['_range']=(_0x4fcd1f=_0x5df3ae[_0x530aec(0x1c7)])!=null?_0x4fcd1f:this[_0x530aec(0x334)],this[_0x530aec(0x433)]=(_0x132257=_0x5df3ae['name'])!=null?_0x132257:this[_0x530aec(0x433)],this[_0x530aec(0x370)]=(_0x265906=_0x5df3ae[_0x530aec(0x18c)])!=null?_0x265906:this[_0x530aec(0x370)],this[_0x530aec(0x40f)]=(_0x33b11a=_0x5df3ae[_0x530aec(0x2c3)])!=null?_0x33b11a:this[_0x530aec(0x40f)],this[_0x530aec(0x264)]({'width':_0x5df3ae[_0x530aec(0x343)],'height':_0x5df3ae[_0x530aec(0x158)]});}[_0x1f5a54(0x23b)](_0xc0f392){const _0x3980a7=_0x1f5a54,{row:_0x5c3278,column:_0x3ca6c7}=_0xc0f392;if(_0x5c3278>=this['_range'][_0x3980a7(0x438)]&&_0x5c3278<=this[_0x3980a7(0x334)]['endRow']&&_0x3ca6c7>=this['_range'][_0x3980a7(0x436)]&&_0x3ca6c7<=this[_0x3980a7(0x334)][_0x3980a7(0x272)]){this[_0x3980a7(0x36b)]({'hovered':!0x0});return;}this[_0x3980a7(0x36b)]({'hovered':!0x1});}[_0x1f5a54(0x347)](_0x358596){return!0x1;}[_0x1f5a54(0x444)](_0x84e62d){const _0x1944a4=_0x1f5a54;_0x5d7c63[_0x1944a4(0x30b)](_0x84e62d,{'width':this[_0x1944a4(0x343)],'height':this[_0x1944a4(0x158)],'strokeWidth':fr,'stroke':this[_0x1944a4(0x413)],'evented':!0x1,'fill':this[_0x1944a4(0x40f)]}),this[_0x1944a4(0x317)]&&(_0x84e62d[_0x1944a4(0x269)](),_0x84e62d['transform'](0x1,0x0,0x0,0x1,this[_0x1944a4(0x343)],this[_0x1944a4(0x370)]==='bottom'?0x0:-Me),st[_0x1944a4(0x30b)](_0x84e62d,{'text':this[_0x1944a4(0x433)],'color':this[_0x1944a4(0x413)]}),_0x84e62d['restore']());}}var gr=Object[_0x1f5a54(0x29f)],Sr=Object['getOwnPropertyDescriptor'],vr=(_0x5cb0dd,_0x5647f4,_0x40f81f,_0xf0f368)=>{const _0x172549=_0x1f5a54;for(var _0x37cd40=_0xf0f368>0x1?void 0x0:_0xf0f368?Sr(_0x5647f4,_0x40f81f):_0x5647f4,_0x3bd8a2=_0x5cb0dd[_0x172549(0x2d6)]-0x1,_0x4dbf0c;_0x3bd8a2>=0x0;_0x3bd8a2--)(_0x4dbf0c=_0x5cb0dd[_0x3bd8a2])&&(_0x37cd40=(_0xf0f368?_0x4dbf0c(_0x5647f4,_0x40f81f,_0x37cd40):_0x4dbf0c(_0x37cd40))||_0x37cd40);return _0xf0f368&&_0x37cd40&&gr(_0x5647f4,_0x40f81f,_0x37cd40),_0x37cd40;},$e=(_0x8022cf,_0x3f1dcd)=>(_0x2af62a,_0x20a509)=>_0x3f1dcd(_0x2af62a,_0x20a509,_0x8022cf);const pr=0x1389;let Ve=class extends _0x5915f1{constructor(_0xb9f6fa,_0x2bf6d2,_0x206c7f,_0x582048){const _0x5b63b=_0x1f5a54;super(),l(this,_0x5b63b(0x2bc),new Set()),l(this,'_lastPointer',null),(this[_0x5b63b(0x3f9)]=_0xb9f6fa,this['_univerInstanceService']=_0x2bf6d2,this[_0x5b63b(0x168)]=_0x206c7f,this[_0x5b63b(0x165)]=_0x582048,this[_0x5b63b(0x3b6)]());}get[_0x1f5a54(0x305)](){const _0x5750bf=_0x1f5a54;return this['_renderManagerService']['getRenderById'](this[_0x5750bf(0x357)][_0x5750bf(0x440)](_0x5cab0b['UNIVER_SHEET'])[_0x5750bf(0x2a2)]())[_0x5750bf(0x3ec)](_0x5f534a);}get[_0x1f5a54(0x292)](){const _0x20c00e=_0x1f5a54;return this[_0x20c00e(0x357)][_0x20c00e(0x440)](_0x5cab0b[_0x20c00e(0x320)])[_0x20c00e(0x2a2)]();}[_0x1f5a54(0x3b6)](){const _0x4931a8=_0x1f5a54;this['_sheetSkeletonManagerService'][_0x4931a8(0x2a9)][_0x4931a8(0x180)](_0x31e4a6(this['dispose$']),_0x4c3023(_0x5c75c3=>{const _0x3e612d=_0x4931a8;if(_0x5c75c3){const _0x459eed=_0x5c75c3[_0x3e612d(0x249)];return _0x5732cb(this['_collabCursorController'][_0x3e612d(0x25c)](this[_0x3e612d(0x292)]),this[_0x3e612d(0x165)][_0x3e612d(0x287)])[_0x3e612d(0x180)](_0x28f321(([_0x1bc8c7,_0x18c2b0])=>{const _0x2cda49=new Map();return _0x1bc8c7['forEach']((_0x3de325,_0x41066a)=>{const _0x3ad9fa=_0x2f7f;if(_0x3de325['sheetID']===_0x459eed){const _0x43844e={..._0x3de325};_0x43844e[_0x3ad9fa(0x428)]=_0x18c2b0[_0x3de325['color']],_0x2cda49[_0x3ad9fa(0x22e)](_0x41066a,_0x43844e);}}),{'skeleton':_0x5c75c3,'cursors':_0x2cda49};}));}return _0x110ce6({'skeleton':null,'cursors':new Map()});}))[_0x4931a8(0x2d9)](({skeleton:_0x485e61,cursors:_0x4d0187})=>{const _0x1d9ea3=_0x4931a8;this[_0x1d9ea3(0x34e)](),_0x485e61&&this[_0x1d9ea3(0x304)](_0x485e61,_0x4d0187);}),this[_0x4931a8(0x305)][_0x4931a8(0x2a9)]['subscribe'](_0x119a3d=>{const _0x14281a=_0x4931a8;if(_0x119a3d==null)return;const {skeleton:_0x37e767}=_0x119a3d,_0x5965d0=this[_0x14281a(0x168)][_0x14281a(0x1a1)](this[_0x14281a(0x292)]),{scene:_0x5df640}=_0x5965d0;_0x5df640[_0x14281a(0x33b)]['subscribeEvent'](_0x21574d(_0x540176=>{const _0x50cc96=_0x14281a;var _0x564c0,_0x51862b;const {offsetX:_0x3460e8,offsetY:_0xbe1c5a}=_0x540176,{x:_0x45f321,y:_0xe16e39}=_0x5df640[_0x50cc96(0x251)](_0x1a7ec4['FromArray']([_0x3460e8,_0xbe1c5a])),{scaleX:_0xe1f707,scaleY:_0x407d6a}=_0x5df640['getAncestorScale'](),_0x1ee84d=_0x5df640[_0x50cc96(0x3c2)](_0x34fb7d[_0x50cc96(0x443)]),_0x15e05d=_0x5df640[_0x50cc96(0x380)](_0x1a7ec4[_0x50cc96(0x1e1)]([_0x45f321,_0xe16e39]),_0x1ee84d),_0x567b96=_0x37e767[_0x50cc96(0x3b4)](_0x3460e8,_0xbe1c5a,_0xe1f707,_0x407d6a,_0x15e05d);((_0x564c0=this['_lastPointer'])==null?void 0x0:_0x564c0[_0x50cc96(0x2a6)])===_0x567b96[_0x50cc96(0x2a6)]&&((_0x51862b=this[_0x50cc96(0x263)])==null?void 0x0:_0x51862b[_0x50cc96(0x2c2)])===_0x567b96[_0x50cc96(0x2c2)]||this['_cursors'][_0x50cc96(0x37a)](_0x3106fa=>{const _0x174658=_0x50cc96;_0x3106fa[_0x174658(0x23b)](_0x567b96);});},0x64));});}[_0x1f5a54(0x304)](_0x424e76,_0x1e5ca0){const _0x2811c9=_0x1f5a54;var _0x2dc582;const _0x5d9636=(_0x2dc582=this[_0x2811c9(0x305)][_0x2811c9(0x1f5)]())==null?void 0x0:_0x2dc582[_0x2811c9(0x477)];if(!_0x5d9636)return;const _0x164cb3=this[_0x2811c9(0x148)]();if(!_0x164cb3)return;this[_0x2811c9(0x2bc)][_0x2811c9(0x37a)](_0x2e5563=>{const _0x353ecd=_0x2811c9;_0x2e5563[_0x353ecd(0x23c)]();});const {scene:_0x386a2c}=_0x164cb3,_0x37eefa=Ir(Array[_0x2811c9(0x25a)](_0x1e5ca0['values']()))[_0x2811c9(0x1a7)](_0x14ea0a=>{const _0x4b28c0=_0x2811c9,{color:_0x21ba85,range:_0x11136e,name:_0x10e757,selection:_0x3153e2,sheetID:_0x13e866}=_0x14ea0a,{startColumn:_0x24cb7f,startRow:_0x4a4b41,endColumn:_0x178e43,endRow:_0xc7b40f}=_0x11136e,_0x14b5a7=_0x1a9d48(_0x4a4b41,_0x24cb7f,_0x386a2c,_0x5d9636),_0x1e57bf=_0x1a9d48(_0xc7b40f,_0x178e43,_0x386a2c,_0x5d9636),{columnHeaderHeightAndMarginTop:_0xd043a4}=_0x5d9636,{startX:_0x190d16,startY:_0x298ca0}=_0x14b5a7,{endX:_0xd1b73,endY:_0x36974d}=_0x1e57bf,_0x2c18c6=_0xd1b73-_0x190d16,_0x1183d9=_0x36974d-_0x298ca0,_0x4a4556={'labelPosition':_0x298ca0-_0xd043a4>=Me?_0x4b28c0(0x1d5):'bottom','sheetID':_0x13e866,'range':_0x11136e,'color':_0x21ba85,'name':_0x10e757,'selection':_0x3153e2,'left':_0x190d16,'top':_0x298ca0,'width':_0x2c18c6,'height':_0x1183d9,'evented':!0x1,'zIndex':pr};return new mr(_0x10e757,_0x4a4556);});_0x386a2c[_0x2811c9(0x1ed)](_0x37eefa,dr),this[_0x2811c9(0x2bc)]=new Set(_0x37eefa);}[_0x1f5a54(0x34e)](){const _0x319ccc=_0x1f5a54;var _0x4f5e7a;(_0x4f5e7a=this[_0x319ccc(0x2bc)])==null||_0x4f5e7a[_0x319ccc(0x37a)](_0x4b8df8=>_0x4b8df8[_0x319ccc(0x26e)]());}[_0x1f5a54(0x148)](){const _0x4b6a98=_0x1f5a54;return _0x54e459(this[_0x4b6a98(0x357)],this[_0x4b6a98(0x168)]);}};Ve=vr([_0x182a37(_0x46c7aa[_0x1f5a54(0x3a3)],Ve),$e(0x0,_0x61a763(fe)),$e(0x1,_0x55bd21),$e(0x2,_0x8604c3),$e(0x3,_0x61a763(_0x5a1d7c))],Ve);function Ir(_0x1d9945){const _0x219c1d=_0x1f5a54,_0x48b286=new Map();return _0x1d9945[_0x219c1d(0x37a)](_0x3adf8d=>{const _0x22b725=_0x219c1d;if(_0x48b286['has'](_0x3adf8d[_0x22b725(0x324)])){const _0x5e3f2b=_0x48b286[_0x22b725(0x393)](_0x3adf8d[_0x22b725(0x324)]);_0x5e3f2b['name']+=',\x20'+_0x3adf8d[_0x22b725(0x40c)];}else _0x48b286[_0x22b725(0x22e)](_0x3adf8d[_0x22b725(0x324)],_0x3adf8d);}),Array[_0x219c1d(0x25a)](_0x48b286[_0x219c1d(0x410)]());}var A=function(){const _0x3d36c0=_0x1f5a54;return A=Object['assign']||function(_0x1c17e5){const _0x24e050=_0x2f7f;for(var _0x295e61,_0x3aa552=0x1,_0x4ab660=arguments[_0x24e050(0x2d6)];_0x3aa552<_0x4ab660;_0x3aa552++){_0x295e61=arguments[_0x3aa552];for(var _0x22420a in _0x295e61)Object[_0x24e050(0x2bd)][_0x24e050(0x35f)]['call'](_0x295e61,_0x22420a)&&(_0x1c17e5[_0x22420a]=_0x295e61[_0x22420a]);}return _0x1c17e5;},A[_0x3d36c0(0x1bb)](this,arguments);},Er=function(_0x24d8cb,_0x54445b){const _0x2ccdec=_0x1f5a54;var _0x36d776={};for(var _0x5db432 in _0x24d8cb)Object[_0x2ccdec(0x2bd)][_0x2ccdec(0x35f)][_0x2ccdec(0x25e)](_0x24d8cb,_0x5db432)&&_0x54445b[_0x2ccdec(0x295)](_0x5db432)<0x0&&(_0x36d776[_0x5db432]=_0x24d8cb[_0x5db432]);if(_0x24d8cb!=null&&typeof Object[_0x2ccdec(0x1d6)]=='function'){for(var _0x1aac50=0x0,_0x5db432=Object[_0x2ccdec(0x1d6)](_0x24d8cb);_0x1aac50<_0x5db432[_0x2ccdec(0x2d6)];_0x1aac50++)_0x54445b['indexOf'](_0x5db432[_0x1aac50])<0x0&&Object[_0x2ccdec(0x2bd)]['propertyIsEnumerable'][_0x2ccdec(0x25e)](_0x24d8cb,_0x5db432[_0x1aac50])&&(_0x36d776[_0x5db432[_0x1aac50]]=_0x24d8cb[_0x5db432[_0x1aac50]]);}return _0x36d776;},$t=_0x3c9976(function(_0x54624d,_0x908b7){const _0x4f4e8b=_0x1f5a54;var _0x475a3b=_0x54624d['icon'],_0x5d1726=_0x54624d['id'],_0x37b6e6=_0x54624d[_0x4f4e8b(0x37b)],_0x3c2d61=_0x54624d[_0x4f4e8b(0x22a)],_0x1319b3=Er(_0x54624d,[_0x4f4e8b(0x34a),'id',_0x4f4e8b(0x37b),_0x4f4e8b(0x22a)]),_0x55dcd8='univerjs-icon\x20univerjs-icon-'[_0x4f4e8b(0x2d0)](_0x5d1726,'\x20')[_0x4f4e8b(0x2d0)](_0x37b6e6||'')[_0x4f4e8b(0x397)](),_0x43eb7b=_0x446d4f('_'[_0x4f4e8b(0x2d0)](Tr()));return As(_0x475a3b,''[_0x4f4e8b(0x2d0)](_0x5d1726),{'defIds':_0x475a3b[_0x4f4e8b(0x450)],'idSuffix':_0x43eb7b[_0x4f4e8b(0x164)]},A({'ref':_0x908b7,'className':_0x55dcd8},_0x1319b3),_0x3c2d61);});function As(_0x155fce,_0x2ac97a,_0x162efb,_0x569eed,_0x1ae604){const _0x46d3a5=_0x1f5a54;return _0x41bd2c(_0x155fce[_0x46d3a5(0x33d)],A(A({'key':_0x2ac97a},Cr(_0x155fce,_0x162efb,_0x1ae604)),_0x569eed),(br(_0x155fce,_0x162efb)['children']||[])[_0x46d3a5(0x1a7)](function(_0x394cc1,_0x44486){const _0x520ab9=_0x46d3a5;return As(_0x394cc1,''[_0x520ab9(0x2d0)](_0x2ac97a,'-')[_0x520ab9(0x2d0)](_0x155fce[_0x520ab9(0x33d)],'-')[_0x520ab9(0x2d0)](_0x44486),_0x162efb,void 0x0,_0x1ae604);}));}function Cr(_0x4c1d7e,_0x146011,_0x3ed1f4){const _0x1c8dcf=_0x1f5a54;var _0x30c1e8=A({},_0x4c1d7e[_0x1c8dcf(0x277)]);_0x3ed1f4!=null&&_0x3ed1f4[_0x1c8dcf(0x280)]&&_0x30c1e8[_0x1c8dcf(0x332)]===_0x1c8dcf(0x280)&&(_0x30c1e8[_0x1c8dcf(0x332)]=_0x3ed1f4[_0x1c8dcf(0x280)]);var _0x15adda=_0x146011[_0x1c8dcf(0x450)];return!_0x15adda||_0x15adda[_0x1c8dcf(0x2d6)]===0x0||(_0x4c1d7e[_0x1c8dcf(0x33d)]===_0x1c8dcf(0x1ef)&&_0x30c1e8[_0x1c8dcf(0x216)]&&(_0x30c1e8[_0x1c8dcf(0x216)]=_0x30c1e8[_0x1c8dcf(0x216)]+_0x146011['idSuffix']),Object[_0x1c8dcf(0x1dc)](_0x30c1e8)['forEach'](function(_0x40f230){const _0x13c2c5=_0x1c8dcf;var _0x591f8d=_0x40f230[0x0],_0x5927ce=_0x40f230[0x1];typeof _0x5927ce==_0x13c2c5(0x3f2)&&(_0x30c1e8[_0x591f8d]=_0x5927ce['replace'](/url\(#(.*)\)/,_0x13c2c5(0x149)[_0x13c2c5(0x2d0)](_0x146011['idSuffix'],')')));})),_0x30c1e8;}function br(_0x3f75e5,_0x434afd){const _0xad3426=_0x1f5a54;var _0x369772,_0x17a335=_0x434afd[_0xad3426(0x450)];return!_0x17a335||_0x17a335[_0xad3426(0x2d6)]===0x0?_0x3f75e5:_0x3f75e5[_0xad3426(0x33d)]===_0xad3426(0x1e3)&&(!((_0x369772=_0x3f75e5[_0xad3426(0x3f7)])===null||_0x369772===void 0x0)&&_0x369772[_0xad3426(0x2d6)])?A(A({},_0x3f75e5),{'children':_0x3f75e5[_0xad3426(0x3f7)][_0xad3426(0x1a7)](function(_0x23265a){const _0x2f4f5a=_0xad3426;return typeof _0x23265a[_0x2f4f5a(0x277)]['id']==_0x2f4f5a(0x3f2)&&_0x17a335&&_0x17a335['indexOf'](_0x23265a[_0x2f4f5a(0x277)]['id'])>-0x1?A(A({},_0x23265a),{'attrs':A(A({},_0x23265a[_0x2f4f5a(0x277)]),{'id':_0x23265a['attrs']['id']+_0x434afd[_0x2f4f5a(0x470)]})}):_0x23265a;})}):_0x3f75e5;}function Tr(){const _0x529de4=_0x1f5a54;return Math[_0x529de4(0x339)]()[_0x529de4(0x196)](0x24)[_0x529de4(0x1b3)](0x2,0x8);}$t['displayName']=_0x1f5a54(0x1b7);var Rr={'tag':_0x1f5a54(0x1e8),'attrs':{'fill':_0x1f5a54(0x3df),'viewBox':'0\x200\x2016\x2016','width':_0x1f5a54(0x1a3),'height':_0x1f5a54(0x1a3)},'children':[{'tag':'g','attrs':{'clipPath':_0x1f5a54(0x3ea)},'children':[{'tag':_0x1f5a54(0x38b),'attrs':{'stroke':_0x1f5a54(0x215),'d':_0x1f5a54(0x2be),'strokeLinecap':_0x1f5a54(0x1c3),'strokeLinejoin':_0x1f5a54(0x1c3),'strokeWidth':1.2}}]},{'tag':_0x1f5a54(0x1e3),'attrs':{},'children':[{'tag':_0x1f5a54(0x227),'attrs':{'id':_0x1f5a54(0x446)},'children':[{'tag':_0x1f5a54(0x38b),'attrs':{'fill':_0x1f5a54(0x21d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x1f5a54(0x446)]},ys=_0x3c9976(function(_0x1fcaf4,_0x4e4316){return _0x41bd2c($t,Object['assign']({},_0x1fcaf4,{'id':'off-line-single','ref':_0x4e4316,'icon':Rr}));});ys[_0x1f5a54(0x307)]=_0x1f5a54(0x309);var Or={'tag':_0x1f5a54(0x1e8),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x1f5a54(0x1a3)},'children':[{'tag':'g','attrs':{'clipPath':_0x1f5a54(0x1c0)},'children':[{'tag':'path','attrs':{'stroke':_0x1f5a54(0x215),'d':_0x1f5a54(0x1c6),'strokeLinecap':_0x1f5a54(0x1c3),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1f5a54(0x1e3),'attrs':{},'children':[{'tag':_0x1f5a54(0x227),'attrs':{'id':_0x1f5a54(0x47c)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x1f5a54(0x186)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Us=_0x3c9976(function(_0x57014b,_0x2278bb){const _0x211041=_0x1f5a54;return _0x41bd2c($t,Object[_0x211041(0x3fd)]({},_0x57014b,{'id':_0x211041(0x1e2),'ref':_0x2278bb,'icon':Or}));});Us['displayName']=_0x1f5a54(0x44f);const Dr='univer-online-status-icon',Pr=_0x1f5a54(0x140),wr=_0x1f5a54(0x3e4),Nr='univer-online',Mr=_0x1f5a54(0x2ec),be={'onlineStatusIcon':Dr,'onlineStatusTitle':Pr,'onlineStatus':wr,'online':Nr,'offline':Mr};function Ar(_0x26660a){const _0x5c9d7c=_0x1f5a54;switch(_0x26660a){case w[_0x5c9d7c(0x243)]:return'collabStatus.offline';case w['CONFLICT']:return'collabStatus.conflict';case w[_0x5c9d7c(0x468)]:return _0x5c9d7c(0x1a6);case w['NOT_COLLAB']:return'collabStatus.notCollab';case w[_0x5c9d7c(0x3e3)]:case w[_0x5c9d7c(0x45b)]:case w['AWAITING_WITH_PENDING']:return _0x5c9d7c(0x2d4);case w[_0x5c9d7c(0x3a7)]:return _0x5c9d7c(0x2e9);}}function yr(_0x31d324){const _0x3eefad=_0x1f5a54,{status$:_0x1e3912}=_0x31d324,_0x2a5d01=_0x34ebf9(_0x1e3912,w['NOT_COLLAB']),_0x2e6d22=_0x32bad8(_0x4eec6f),_0x33a8cf=_0x2a5d01!==w[_0x3eefad(0x243)],_0xc89b0e=_0x2e6d22['t'](Ar(_0x2a5d01)),_0xe52ad4=_0x2d6edb(be['onlineStatus'],{[be['online']]:_0x33a8cf,[be[_0x3eefad(0x2c8)]]:!_0x33a8cf}),_0x4ff76e=_0x33a8cf?_0x25f2cb[_0x3eefad(0x153)](Us,null):_0x25f2cb[_0x3eefad(0x153)](ys,null);return _0x25f2cb[_0x3eefad(0x153)](_0x3eefad(0x2af),{'className':_0xe52ad4},_0x25f2cb['createElement'](_0x3eefad(0x2af),{'className':be[_0x3eefad(0x2dc)]},_0x4ff76e),_0x25f2cb[_0x3eefad(0x153)](_0x3eefad(0x2af),{'className':be[_0x3eefad(0x361)]},_0xc89b0e));}var Ur=Object[_0x1f5a54(0x29f)],Lr=Object['getOwnPropertyDescriptor'],$r=(_0x40b122,_0x1a5669,_0x1aa82b,_0x29894d)=>{for(var _0x5e80e0=_0x29894d>0x1?void 0x0:_0x29894d?Lr(_0x1a5669,_0x1aa82b):_0x1a5669,_0x3c00f8=_0x40b122['length']-0x1,_0x33d900;_0x3c00f8>=0x0;_0x3c00f8--)(_0x33d900=_0x40b122[_0x3c00f8])&&(_0x5e80e0=(_0x29894d?_0x33d900(_0x1a5669,_0x1aa82b,_0x5e80e0):_0x33d900(_0x5e80e0))||_0x5e80e0);return _0x29894d&&_0x5e80e0&&Ur(_0x1a5669,_0x1aa82b,_0x5e80e0),_0x5e80e0;},je=(_0x2233a2,_0x4bacf3)=>(_0x220bca,_0x53a9e0)=>_0x4bacf3(_0x220bca,_0x53a9e0,_0x2233a2);function _0x2454(){const _0x2f5e1a=['data','column','_updateLocalCache','hide','currentSkeleton$','_onConflict','selections','LICENSE_IMPORT_SIZE_EXCEEDED','UNAUTHENTICATED','red300','div','_exhaustRemoteChangesetQueue','socketService','executeCommand','result','PERMISSION_DENIED','_transformRemoteChangesetByIMECache','_startSheetCollabCursor','session.collaboration-timeout','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_removeClearOtherTimer','_syncEditingCollabCursorService','updatePermissionPoint','_cursors','prototype','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','_updateLocalCursor','_beforeCloseService','_collabCursorState$','row','backgroundColor','_undoRedoService','getCollabEntity','updateCollaborator','gold400','offline','appendMutation','_getSnapshotAPIPrefix','_clearTimeoutTimer','onPointerEnter$','_replayCachedMutations','_unlockTransition','eventID','concat','[OfflineState]:\x20received\x20rejection.','\x20to\x20','Error\x20on\x20receiving\x20event','collabStatus.syncing','_shapes','length','_onRefRangeChange','SUBMIT_CHANGESET','subscribe','_httpService','routeKey','onlineStatusIcon','collaMsg','30324ydADwI','getWorkbookSelections','then','whenReady','_getSignURL','conflict.content','_HTTPService','addObject','/universer-api/oidc/authpage','pending','_notificationService','collabStatus.synced','focused$','_docStateChangeManagerService','univer-offline','_urlService','assignAColorForMemberID','OTHER_CLIENTS_EDITING','memberID','903764KoTQgK','clear','LOGIN_URL_KEY','objects','NEW_CHANGESETS','_updateURLWithCurrentState','_saveTaskMap','/object','10cwNoBA','_refRangeService','failed\x20to\x20apply\x20missed\x20changesets!','_onConnectionOpen','ERROR_EXCEED_SIZE','_sendingTimer','_handleHover','transformIMECache','_retryCount','LICENSE_MAX_UNITS_EXCEEDED','getTypeOfUnitDisposed$','_updateCollabCursors','_sheetSkeletonManagerService','_createInitialState','displayName','_logService','OffLineSingle','?size=','drawWith','all','_lockTransition','reject','updateMember','push','_colorAssignService','_cursor','_sheetTransformSelectionsService','objectType','UNIVER_DOC','_onCursorUpdate','_hovered','_id','debug','getSheetId','setParam','_waitCount','_disabled','cursorInfo','_state','UNIVER_SHEET','getValue','_acknowledgedAwaitingChangeset','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','selection','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_scheduleHeartbeat','_transformService','generateRandomId','_showConflictNotification','_collaborationPaused','getAncestorScale','onSyncEditingCollabCursor','history','_saveCache','unit','getMergeData','findNodePositionByCharIndex','fill','updatePermissionObjEvent','_range','split','resolve','pushState','conflict','random','_socketService','onPointerMove$','connection\x20error','tag','init','patch','_assignedColors','subscribeEvent','/new_changes','width','COMPRESS_MUTATION_SEND','_snapshotService','USERS_ENTER','triggerDblclick','transformRemoteChangeset','m2Prime','icon','HEARTBEAT','_getAnchorBounding','transformMutation','_removeCollabCursors','COMPLETION_FINISHED','liveShareNewHost','rgba(255,\x20255,\x20255,\x200.01)','APPLY_NON_SEQUENTIAL_REVISION','registerBeforeClose','clearTimeout','fetchMissingChangesets','_startDocCollabCursor','_univerInstanceService','INGEST','_submitChangeset','YUUMI_URL_COL_OUT_OF_RANGE','getDataModel','revision','editingUnit','/unit/','hasOwnProperty','SUCCUSS','onlineStatusTitle','isPermissionRej','setTimeout','[CollaborationSessionService]','compose','Starting','_getScale','_undoStacks','getUnitOnRev','_getAPIPrefixPath','setShapeProps','_http','_unitOnClients','_getDocObject','file','_labelPosition','COMPRESS_MUTATION_APPLY','_checkMissing','_unitID','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_disableEditing','sessionStatus$','10927356oCXvSt','FAIL','_onConnectionFailed','forEach','className','setUndoRedoMutationParamsCache','MoveRangeCommandId','INTERNAL_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.','getVpScrollXYInfoByPosToVp','_hideTimer','APPLY_PERMISSION_DENIED','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_clearOtherTimers','getMemberID','_compressMutationService','_drawRange','createCollaborator','CHANGESET_REJ','roomMembers','path','action','UNKNOWN_CODE','toRgbString','_onRemoteACK','readAsDataURL','_initMergeInterceptor','resend','get','_commentUpdate$','/-/object/-/batch_allowed','interceptor','trim','csAckEvent','_docSkeletonManagerService','body','next','onTransformIME','listRoles','onCommandExecuted','commentUpdate$','registerComponent','updateCursorEvent','getTime','Steady','userID','delete','_localeService','SYNCED','cmd','text','_createSocket','_transformIMECache','_clearCollaborationTimeoutTimer','...','_updateState','ranges','fillStyle','_onJoinRoomEvent','FileId','_pendingMutations','getCellPositionByOffset','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_init','13544JvcXMb','_applyRemoteChangeset','_initUnitPermissionChange','_remoteChangesetQueue','originalMeta','5271kFlBVj','message$','setActiveRange','[PendingState]:\x20unhandled\x20univer\x20type:\x20','add','roomMembers$','getViewport','ws://127.0.0.1:8000/universer-api/comb/connect','catch','synced','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_timeoutTimer','_getCtorByUniverType','901338hNVsgw','includes','_sessions','getOwnPropertyDescriptor','dispose$','_scheduleReconnection','\x20-\x20','unsubscribe','image/jpg','method','_executeRemoteChangeset','transformChangesets','restore','APPLY_REJECT','_clearLocalCache','size','batchAllowed','members','_injector','_collabSessionService','min','_imageSourceCache','none','isEditing','measureText','fillRule','PENDING','univer-online-status','[CollaborationEntity]','LIVESHARE_OPERATION','UNIVER_COLLABORATION_CLIENT_PLUGIN','popstate','awaiting_with_pending','url(#off-line-single_clip0_910_343)','baseRev','with','getFocusedUnit','SNAPSHOT_INVALID_SNAPSHOT','params','state$','_docSyncEditingCollabCursorService','string','getActiveRange','key','_incrementRevisionNumber','getInterceptPoints','children','unitId','_collabCursorController','disableLocalCache','_onRemoteRejected','_heartbeatTimer','assign','_getSendChangesetTimeout','_substituteRedoStack','type','_anchor','_handleEvent','event$','pluginName','ONLINE','_getMergeRange','POST','_joinRoom','image/png','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[SyncedState]:\x20received\x20acknowledgement.','name','COLLAB_SUBMIT_CHANGESET_URL','url','_backgroundColor','values','_userManagerService','UPDATE_CURSOR','_color','_collaborationController','allowed','_collaborationSessionService','saveSnapshot','_textBubble','error','status$','some','stringify','startsWith','encode','[CollaborationSession]','_removeRoom','PSEUDO_FETCH_MISSING_RESULT','LEAVE','enableOfflineEditing','complete','UNDEFINED','UUID','_sessionStatus$','color','IDLE','enableAuthServer','USERS_LEAVE','onlyLocal','UPDATE_PERMISSION_OBJ','getImageSourceCache','change$','_scheduleTimestamp','getCollabEntity$','getImage','_name','filter','onCommentUpdate','startColumn','removeMember','startRow','lineTo','show','/universer-api/snapshot/','COMMENT_UPDATE','toggleOffline','_initStatusListener','_transformUndoRedoStack','getCurrentUnitForType','_getUndoStack','/collaborator','VIEW_MAIN','_draw','_updateSubUnitFromURLParams','off-line-single_clip0_910_343','[FetchMissState]','HEARTBEAT_TIMEOUT','image/jpeg','max','_messageService','_clearHeartbeatTimer','HEADER_MENU','_redoStacks','OnLineSingle','defIds','[CollaborationState]:\x20apply\x20error!','session','status','c1Prime','loadSheet','getUnitType','_entities','registerHTTPInterceptor','_revisionService','_retryConnectingTimer','AWAITING','beginPath','arc','commentUpdateEvent','_loadDoc','socket\x20open.','transformMutationsWithChangeset','_getCurrentRevision','contains','_uiPartsService','_status$','mutations','_schedule','FETCH_MISS','_scheduleClearOtherTimer','RECV','responseType','getUniverSheetInstance','_onUserJoin','requireSession','_createInitialStateImpl','idSuffix','UNIVER_UNKNOWN','_onLocalMutation','loadOfflineData','fetchThroughInterceptors','[CollaborationUndoRedoService]','CONNECTOR_DATA_TOO_LARGE','skeleton','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','sheets','_localStorageService','_onUserLeave','on-line-single_clip0_910_349','univer-online-status-title','/universer-api/stream/file/upload','enableSingleActiveInstanceLock','onTransformSelections','_online','createInstance','newValue','SNAPSHOT_SERVER_URL_KEY','_getSheetObject','url(#$1','_type','LOCAL_CACHE_INTERVAL','doc.mutation.rich-text-editing','UNKNOWN_CMD','setItem','/universer-api/comb','isArray','_getLoginPath','_getSaveTimeout','createElement','image/gif','collabCursorState$','_snapshotServerService','_entityInit$','height','_session','location','put','subunit','target','_setupSubUnitSync','syncEditingCollabCursor','submit\x20changeset\x20error!','DeleteRangeMoveLeftCommandId','clearInterval','HEARTBEAT_INTERVAL','current','_themeService','YUUMI_UNABLE_LOAD_URL','close$','_renderManagerService','unknown','_initStatusComponent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_selfUnitIDs','_initModules','getRangePointData','updateOfflineData','InsertRowCommandId','JOINING','_cursorInfo$','state','ERROR_IMAGE','_docSkeleton','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_awaitingChangeset','_scene','/universer-api/snapshot','activeSheet$','NOT_COLLAB','find','_handleHeartbeatEvent','_syncEditingCollabCursor','Warning','pipe','conflict.title','session.room-full','requestParams','/-/object/list','/universer-api/file/{fileID}/sign-url','translate(.97)','_render','title','blue400','onRemoteRej','/object/','labelPosition','[UniverCollaborationClientPlugin]','_members','fillText','getUndoRedoMutationParamsCache','_transformSelections','_roomMembers$','src','disposeWithMe','_ws','toString','InsertRangeMoveRightCommandId','createSocket','subUnitId','[OfflineState]:\x20received\x20acknowledgement.','_transformStack','slice','unit-cache-','getConfig','onTransformRemoteChangesetByIMECache','_isPermissionRej','getRenderById','_onCombEvent','1em','infoRsp','isActive','collabStatus.fetchMiss','map','localeService','_ensureSubject','searchParams','setWaitCount','COLLAB_WEB_SOCKET_URL','evenodd','_hover','_onRecvEvent','_startCollaboration','actions','LICENSE_EXPORT_SIZE_EXCEEDED','substring','_docTransformSelectionsService','send','pauseCollaboration','UniverIcon','fetch_missing','LIVESHARE_NEW_HOST','_permissionService','apply','LICENSE_DISTRO_REJECTED','objectID','_onCursorDelete','post','url(#on-line-single_clip0_910_349)','_substituteUndoStack','docStateChange$','round','getCurrentUser','_replaceFileID','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','range','RETRY_CONNECTING_INTERVAL','_handleLeaveEvent','_getAPIPrefix','_updateStatus','JOIN','UNRECOGNIZED','3328839kkodfd','_scheduleCollaborationTimeoutTimer','saveOfflineData','_queuedRemoteChangesets','close','json','storage','top','getOwnPropertySymbols','_handler','has','_socketReady','FETCH_MISSING','DeleteRangeMoveUpCommandId','entries','1439499xDOTrP','collaborationUniverTypes','LIVESHARE_FETCH_OPERATIONS','_clearUndo','FromArray','on-line-single','defs','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','href','deepClone','[DataLoaderController]','svg','rev','_unitStatus','onSendChangeset','_getUploadFileURL','addObjects','create','use','UNIVER_SLIDE','saveChangeset','18kqJYdO','_drawAnchor','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','getCurrent','_createHandler','_handleJoinEvent','_event$','getParam','_transformPreviousActiveRange','getTypeOfUnitAdded$','m1Prime','getItem','TOO_MANY_REQUESTS','getUnhiddenWorksheets','symbol','onRemoteChangeset','_setupBeforeClosingHandler','roles','getViewModel','_getRedoStack','joinRsp','_colorIndex','getCurrentSelections','_initCloseConn','_state$','LIVESHARE_REQUEST_HOST','_configService','_docTransformIMECacheService','replaceState','10dZWhaW','_roomMembers','withCredentials','objectActions','unitID','APPLY_REVISION_CONFILICT','currentColor','xlink:href','_tryEnsureSocket','onStateChange','_eventUnsubscribe','flatMap','_transitionLocked','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','#fff','_onMessage','toggleOnline','roomInfos','leaveEvent','_rescheduleHeartbeatEvent','onMissedChangesetFetched','AWAITING_WITH_PENDING','AUTHZ_URL_KEY','_onFetchMissResult','clipPath','NO_OTHER_CLIENTS_EDITING','16133nVWVLK','extend','_clearScheduledTask','_toggleOnline','_clearRedo','set','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','HELLO','permission.title','getSheetBySheetId','listCollaborators','transformSelections','replace','getCurrentRevForDocument','MSG_FOR_ERROR','_sendHeartbeatTimer','NOT_FOUND','[PendingState]:\x20received\x20acknowledgement.','onMouseMove','makeDirty','onStarting','Unknown\x20user','onRemoteAck','awaiting','_loadSheet','onPointerLeave$','OFFLINE','_singleActiveUnitService','DEFAULT_FILE_NAME','jiqing500','RemoveColCommandId','collaboratorID','sheetId','\x0aCurrent:\x20','_waitForHeartbeatResponse','_localCacheService','_socket$','&to=','addImageSourceCache','_sendHeartbeat','getRelativeToViewportCoord','/universer-api/authz','getUnitStatus$','univer-pro.collaboration-client.single-active-unit-service','_scheduleSaving','collaborators','closeSession','ACTIVE_UNIT_EVENT_CHANNEL','LIVESHARE_TERMINATE','from','RETRY_CONNECTING_MAX_COUNT','getCollabCursors$','_anchorDot','call','transformUndoRedo','_transformUndoredo','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','changesets','_lastPointer','transformByState','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','awaitingChangeset','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_collaborationTimeoutTimer','save','Univer','asObservable','_onRemoteChangeset','RemoveRowCommandId','dispose','_config','exhaustSavingTask','INVALID_ARGUMENT','endColumn','font','session.will-retry','code','unload','attrs','CHANGESET_REVISION_CONFILICT','textRanges','registerRefRange','csRejEvent','black','[OfflineState]:\x20received\x20changeset.','CHANGESET_ACK','_send','colorChannel1','univer-pro.collaboration-client-socket-service','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','unshift','BASE64','SNAPSHOT_HAS_BEEN_REMOVED','Error','currentTheme$','error$','_fetchMissChangesets','PERMISSION_REJ','moveTo','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_commentService','MUTATION','headers','urlChange$','_cachedData','_unitId','_change$','deleteCollaborator','indexOf','cursorInfo$','2SMhvkz','ALREADY_EXISTS','_commandService','_toggleOffline','_decreaseWaiting','editing\x20status\x20changed\x20to','getMember','/rev/','defineProperty','_memberService','_socketMessageSubscription','getUnitId','sessionStatus','_socket'];_0x2454=function(){return _0x2f5e1a;};return _0x2454();}let ke=class extends _0x462626{constructor(_0x11713b,_0x1e7c5e,_0x6a53c9,_0x2a6b6e){const _0x5c7db6=_0x1f5a54;super(),l(this,_0x5c7db6(0x465),new _0x24a55e(w['NOT_COLLAB'])),(this[_0x5c7db6(0x357)]=_0x11713b,this[_0x5c7db6(0x464)]=_0x1e7c5e,this['_injector']=_0x6a53c9,this['_collaborationController']=_0x2a6b6e,this[_0x5c7db6(0x16a)](),this[_0x5c7db6(0x43e)]());}[_0x1f5a54(0x16a)](){const _0x193793=_0x1f5a54;this[_0x193793(0x194)](this[_0x193793(0x464)][_0x193793(0x3a0)](_0x184510[_0x193793(0x44d)],()=>_0x2bdedc(jr({'status$':this[_0x193793(0x465)][_0x193793(0x26b)]()}),this[_0x193793(0x3db)])));}[_0x1f5a54(0x43e)](){const _0x12aa05=_0x1f5a54;this[_0x12aa05(0x194)](_0x5d3cf2(this[_0x12aa05(0x357)][_0x12aa05(0x2ea)]['pipe'](_0x44b0e5(()=>{const _0xbe1551=_0x12aa05,_0x24140a=this[_0xbe1551(0x357)][_0xbe1551(0x3ed)]();return _0x24140a?this[_0xbe1551(0x414)][_0xbe1551(0x431)](_0x24140a[_0xbe1551(0x2a2)]()):_0x110ce6(null);}),_0x44b0e5(_0x2b2053=>_0x2b2053?_0x2b2053[_0x12aa05(0x41a)]:_0x110ce6(w[_0x12aa05(0x17b)])))[_0x12aa05(0x2d9)](_0x371c17=>{const _0x15ba6c=_0x12aa05;this[_0x15ba6c(0x465)][_0x15ba6c(0x39b)](_0x371c17);})));}};ke=$r([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],ke),je(0x0,_0x55bd21),je(0x1,_0x16c51a),je(0x2,_0x61a763(_0x2e9f94)),je(0x3,_0x61a763(De))],ke);function jr(_0x598512){const {status$:_0x2b13d8}=_0x598512;return function(){return _0x25f2cb['createElement'](yr,{'status$':_0x2b13d8});};}const Ls=_0x2b1b05('uni.network.url-service');var Hr=Object[_0x1f5a54(0x29f)],xr=Object[_0x1f5a54(0x3cc)],Fr=(_0x3e1d1a,_0x424c9e,_0x77c23c,_0x29c568)=>{for(var _0x400fae=_0x29c568>0x1?void 0x0:_0x29c568?xr(_0x424c9e,_0x77c23c):_0x424c9e,_0x31dcf5=_0x3e1d1a['length']-0x1,_0x5d2f35;_0x31dcf5>=0x0;_0x31dcf5--)(_0x5d2f35=_0x3e1d1a[_0x31dcf5])&&(_0x400fae=(_0x29c568?_0x5d2f35(_0x424c9e,_0x77c23c,_0x400fae):_0x5d2f35(_0x400fae))||_0x400fae);return _0x29c568&&_0x400fae&&Hr(_0x424c9e,_0x77c23c,_0x400fae),_0x400fae;},le=(_0x504da7,_0x43b6ab)=>(_0x16d08b,_0x5558b2)=>_0x43b6ab(_0x16d08b,_0x5558b2,_0x504da7);let Be=class extends _0x5915f1{constructor(_0x41b174,_0x41ab2c,_0x58aca8,_0x235454,_0x19ab29,_0x2b01e9){const _0x45781c=_0x1f5a54;super(),this[_0x45781c(0x2ed)]=_0x41b174,this[_0x45781c(0x308)]=_0x41ab2c,this[_0x45781c(0x299)]=_0x58aca8,this[_0x45781c(0x24c)]=_0x235454,this['_snapshotService']=_0x19ab29,_0x2b01e9?_0x2b01e9==null||_0x2b01e9[_0x45781c(0x2e1)]()[_0x45781c(0x2e0)](()=>this['_init']()):(this[_0x45781c(0x308)][_0x45781c(0x319)](_0x45781c(0x1e7),_0x45781c(0x265)),this[_0x45781c(0x3b6)]());}async['_init'](){const _0x200853=_0x1f5a54,_0x2b8aec=this[_0x200853(0x2ed)][_0x200853(0x1f9)](_0x200853(0x32f)),_0x8fdc30=this[_0x200853(0x2ed)][_0x200853(0x1f9)](_0x200853(0x400));if(!_0x2b8aec||!_0x8fdc30){this[_0x200853(0x308)][_0x200853(0x319)](_0x200853(0x1e7),_0x200853(0x16b));return;}switch(Number(_0x8fdc30)){case H[_0x200853(0x320)]:{const _0x1ff33a=await this[_0x200853(0x241)](_0x2b8aec);this['_setupSubUnitSync'](_0x1ff33a);break;}case H[_0x200853(0x315)]:{await this[_0x200853(0x45f)](_0x2b8aec);break;}default:{this[_0x200853(0x308)][_0x200853(0x419)](_0x200853(0x1e7),_0x200853(0x40a));break;}}}async[_0x1f5a54(0x15e)](_0x26914f){const _0x47aa4b=_0x1f5a54;await this['_updateSubUnitFromURLParams'](_0x26914f),_0x26914f[_0x47aa4b(0x17a)][_0x47aa4b(0x180)](_0x57fb4a(this['dispose$']))['subscribe'](_0xaad1c9=>{const _0x4f25dc=_0x47aa4b;_0xaad1c9&&this[_0x4f25dc(0x2f6)](_0xaad1c9);}),this[_0x47aa4b(0x2ed)][_0x47aa4b(0x290)][_0x47aa4b(0x180)](_0x57fb4a(this[_0x47aa4b(0x3cd)]))[_0x47aa4b(0x2d9)](()=>this[_0x47aa4b(0x445)](_0x26914f));}[_0x1f5a54(0x2f6)](_0x289152,_0x296291=!0x1){const _0x3c792e=_0x1f5a54,_0x4a68db=this[_0x3c792e(0x2ed)]['getParam'](_0x3c792e(0x15c));_0x289152[_0x3c792e(0x31a)]()!==_0x4a68db&&this[_0x3c792e(0x2ed)][_0x3c792e(0x31b)](_0x3c792e(0x15c),_0x289152[_0x3c792e(0x31a)](),_0x296291);}async['_updateSubUnitFromURLParams'](_0x4ea859){const _0x1d2663=_0x1f5a54;var _0x5c9aa6;const _0x44c566=this[_0x1d2663(0x2ed)]['getParam'](_0x1d2663(0x15c));if(!_0x44c566||!_0x4ea859[_0x1d2663(0x232)](_0x44c566)){const _0x3b5f33=_0x4ea859[_0x1d2663(0x1ff)]()[0x0],_0x1d81c7=_0x4ea859[_0x1d2663(0x232)](_0x3b5f33);if(!_0x1d81c7)return;this['_updateURLWithCurrentState'](_0x1d81c7,!0x0),await this['_commandService']['executeCommand'](_0x436c7c['id'],{'unitId':_0x4ea859[_0x1d2663(0x2a2)](),'subUnitId':_0x3b5f33});return;}((_0x5c9aa6=_0x4ea859['getActiveSheet']())==null?void 0x0:_0x5c9aa6[_0x1d2663(0x31a)]())!==_0x44c566&&await this['_commandService'][_0x1d2663(0x2b2)](_0x436c7c['id'],{'unitId':_0x4ea859[_0x1d2663(0x2a2)](),'subUnitId':_0x44c566});}async[_0x1f5a54(0x241)](_0x3a1b68){const _0x2e1850=_0x1f5a54;let _0x51e41a=0x0;const _0x9f4b31=await this[_0x2e1850(0x24c)][_0x2e1850(0x473)](_0x3a1b68);return _0x9f4b31&&(_0x9f4b31[_0x2e1850(0x266)]||_0x9f4b31[_0x2e1850(0x466)][_0x2e1850(0x2d6)]!==0x0)&&(_0x51e41a=_0x9f4b31[_0x2e1850(0x1e9)]),_0x51e41a===0x0&&this['_logService'][_0x2e1850(0x319)](_0x2e1850(0x1e7),_0x2e1850(0x2b8)),this[_0x2e1850(0x345)][_0x2e1850(0x455)](_0x3a1b68,_0x51e41a);}async[_0x1f5a54(0x45f)](_0x279686){const _0xb00588=_0x1f5a54;let _0x4a5752=0x0;const _0x3f45b2=await this['_localCacheService']['loadOfflineData'](_0x279686);return _0x3f45b2&&(_0x3f45b2[_0xb00588(0x266)]||_0x3f45b2[_0xb00588(0x466)][_0xb00588(0x2d6)]!==0x0)&&(_0x4a5752=_0x3f45b2['rev']),_0x4a5752===0x0&&this[_0xb00588(0x308)][_0xb00588(0x319)](_0xb00588(0x1e7),_0xb00588(0x2b8)),this[_0xb00588(0x345)]['loadDoc'](_0x279686,_0x4a5752);}};Be=Fr([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],Be),le(0x0,Ls),le(0x1,_0x3e33de),le(0x2,_0x257ce4),le(0x3,_0x61a763(D)),le(0x4,_0x61a763(_0x13134a)),le(0x5,_0x455db1(_0x49344d))],Be);var Vr=Object[_0x1f5a54(0x29f)],kr=Object['getOwnPropertyDescriptor'],Br=(_0x343482,_0x511f68,_0x12a823,_0x540670)=>{const _0x3d9958=_0x1f5a54;for(var _0x15ba45=_0x540670>0x1?void 0x0:_0x540670?kr(_0x511f68,_0x12a823):_0x511f68,_0x1bd12b=_0x343482[_0x3d9958(0x2d6)]-0x1,_0x48c02f;_0x1bd12b>=0x0;_0x1bd12b--)(_0x48c02f=_0x343482[_0x1bd12b])&&(_0x15ba45=(_0x540670?_0x48c02f(_0x511f68,_0x12a823,_0x15ba45):_0x48c02f(_0x15ba45))||_0x15ba45);return _0x540670&&_0x15ba45&&Vr(_0x511f68,_0x12a823,_0x15ba45),_0x15ba45;},ss=(_0x22ab45,_0x40ac70)=>(_0x54a8df,_0x3ef2d7)=>_0x40ac70(_0x54a8df,_0x3ef2d7,_0x22ab45);const Wr=_0x1f5a54(0x245),Gr=_0x1f5a54(0x26a);let We=class extends _0x462626{constructor(_0x29e431,_0x51ebaa){const _0x135d26=_0x1f5a54;super(),this[_0x135d26(0x357)]=_0x29e431,this[_0x135d26(0x20c)]=_0x51ebaa,this['_init']();}[_0x1f5a54(0x3b6)](){const _0x401697=_0x1f5a54;this[_0x401697(0x194)](_0x5d3cf2(this['_univerInstanceService'][_0x401697(0x2ea)][_0x401697(0x2d9)](()=>{const _0x387461=_0x401697;var _0x24e003;const _0x507c1c=this[_0x387461(0x357)][_0x387461(0x3ed)]();let _0x21008f=(_0x24e003=this[_0x387461(0x20c)][_0x387461(0x19e)](Wr))!=null?_0x24e003:Gr;_0x507c1c instanceof _0x40f416&&(_0x21008f=_0x507c1c['name']),document[_0x387461(0x188)]=_0x21008f;})));}};We=Br([_0x182a37(_0x46c7aa['Ready'],We),ss(0x0,_0x55bd21),ss(0x1,_0x43c997)],We);var Yr=Object[_0x1f5a54(0x29f)],Kr=Object[_0x1f5a54(0x3cc)],Xr=(_0x15c1d4,_0x22d6c0,_0x4f1de7,_0xa5642b)=>{const _0x117c7f=_0x1f5a54;for(var _0x28bc81=_0xa5642b>0x1?void 0x0:_0xa5642b?Kr(_0x22d6c0,_0x4f1de7):_0x22d6c0,_0x242a6a=_0x15c1d4[_0x117c7f(0x2d6)]-0x1,_0x1606f6;_0x242a6a>=0x0;_0x242a6a--)(_0x1606f6=_0x15c1d4[_0x242a6a])&&(_0x28bc81=(_0xa5642b?_0x1606f6(_0x22d6c0,_0x4f1de7,_0x28bc81):_0x1606f6(_0x28bc81))||_0x28bc81);return _0xa5642b&&_0x28bc81&&Yr(_0x22d6c0,_0x4f1de7,_0x28bc81),_0x28bc81;},is=(_0x5235a0,_0x1319ec)=>(_0x2be2c1,_0x2d9f89)=>_0x1319ec(_0x2be2c1,_0x2d9f89,_0x5235a0);let Ct=class{constructor(_0x1c7561,_0x736387){this['_configService']=_0x1c7561,this['_httpService']=_0x736387;}async[_0x1f5a54(0x369)](_0x13280f,_0xdd62d){const _0x682d2f=_0x1f5a54;var _0x2d1095;const {unitID:_0x22339e,type:_0x450357,revision:_0x39f1f0=0x0}=_0xdd62d,_0x65ec33=this[_0x682d2f(0x2ca)]()+'/'+_0x450357+_0x682d2f(0x35e)+_0x22339e+_0x682d2f(0x29e)+_0x39f1f0,_0x4135f2=(await this[_0x682d2f(0x2da)][_0x682d2f(0x393)](_0x65ec33))[_0x682d2f(0x39a)],_0x172e85=(_0x2d1095=_0x4135f2['snapshot'])==null?void 0x0:_0x2d1095['workbook'];if(_0x172e85){const _0x55bfcb=_0x172e85==null?void 0x0:_0x172e85['originalMeta'],_0x425471=_0x4823f1[_0x682d2f(0x41e)](_0x5dde85(_0x55bfcb));_0x172e85[_0x682d2f(0x3bb)]=_0x425471,Object['entries'](_0x172e85[_0x682d2f(0x479)])[_0x682d2f(0x37a)](([,_0x5670e7])=>{const _0x1861c5=_0x682d2f,_0x1c6bf4=_0x5670e7[_0x1861c5(0x3bb)],_0x5edfb2=_0x4823f1[_0x1861c5(0x41e)](_0x5dde85(_0x1c6bf4));_0x5670e7['originalMeta']=_0x5edfb2;});}return _0x4135f2;}async['getSheetBlock'](_0x160ac5,_0x42115b){const _0x430bb9=_0x1f5a54,{unitID:_0x4695b5,type:_0x2a0f8c,blockID:_0x4efebe}=_0x42115b,_0x44a6ef=this[_0x430bb9(0x1ca)]()+'/'+_0x2a0f8c+_0x430bb9(0x35e)+_0x4695b5+'/block/'+_0x4efebe;return(await this['_httpService']['get'](_0x44a6ef))[_0x430bb9(0x39a)];}async[_0x1f5a54(0x355)](_0x586f34,_0x448587){const _0x52576a=_0x1f5a54,{unitID:_0x1e87a4,type:_0x12353b,from:_0xd2d297,to:_0x20be7f}=_0x448587,_0xabaf8e=this[_0x52576a(0x1ca)]()+'/'+_0x12353b+_0x52576a(0x35e)+_0x1e87a4+'/fetchmissing?from='+_0xd2d297+_0x52576a(0x24e)+_0x20be7f;return(await this[_0x52576a(0x2da)][_0x52576a(0x393)](_0xabaf8e))[_0x52576a(0x39a)];}[_0x1f5a54(0x2ca)](){const _0x23368d=_0x1f5a54;var _0x5cbcf7;return(_0x5cbcf7=this[_0x23368d(0x20c)][_0x23368d(0x19e)](Qi))!=null?_0x5cbcf7:this['_getAPIPrefix']();}[_0x1f5a54(0x1ca)](){const _0x3a203c=_0x1f5a54;var _0x384481;return(_0x384481=this[_0x3a203c(0x20c)][_0x3a203c(0x19e)](zi))!=null?_0x384481:Zi;}async['getResourcesRequest'](_0x39fb41,_0x2a6d24){const _0x305cca=_0x1f5a54,_0xf2d801=_0x305cca(0x43b)+_0x2a6d24[_0x305cca(0x400)]+_0x305cca(0x35e)+_0x2a6d24[_0x305cca(0x213)]+'/resources';return(await this[_0x305cca(0x2da)][_0x305cca(0x393)](_0xf2d801,{'params':{'resourceId':JSON[_0x305cca(0x41c)](_0x2a6d24['resourceIDs'])}}))['body'];}[_0x1f5a54(0x417)](){const _0x5b78ba=_0x1f5a54;throw new Error(_0x5b78ba(0x478));}['saveSheetBlock'](){const _0x20b94c=_0x1f5a54;throw new Error(_0x20b94c(0x478));}[_0x1f5a54(0x1f1)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Ct=Xr([is(0x0,_0x43c997),is(0x1,_0x61a763(_0x11da14))],Ct);var Jr=Object['defineProperty'],qr=Object[_0x1f5a54(0x3cc)],zr=(_0x57691b,_0x28f4e6,_0x1642ac,_0x36b639)=>{for(var _0x4d64eb=_0x36b639>0x1?void 0x0:_0x36b639?qr(_0x28f4e6,_0x1642ac):_0x28f4e6,_0x2ce704=_0x57691b['length']-0x1,_0x49e099;_0x2ce704>=0x0;_0x2ce704--)(_0x49e099=_0x57691b[_0x2ce704])&&(_0x4d64eb=(_0x36b639?_0x49e099(_0x28f4e6,_0x1642ac,_0x4d64eb):_0x49e099(_0x4d64eb))||_0x4d64eb);return _0x36b639&&_0x4d64eb&&Jr(_0x28f4e6,_0x1642ac,_0x4d64eb),_0x4d64eb;},Te=(_0xc1a7fb,_0x3dc8e1)=>(_0x308399,_0x3910ac)=>_0x3dc8e1(_0x308399,_0x3910ac,_0xc1a7fb);let bt=class extends _0x10db64{constructor(_0x24498c,_0x568368,_0x96c516,_0x13327b,_0x18eaab){const _0xd7e612=_0x1f5a54;super(_0x24498c,_0x568368,_0x96c516),this[_0xd7e612(0x327)]=_0x13327b,this[_0xd7e612(0x308)]=_0x18eaab;}[_0x1f5a54(0x25f)](_0x1bb85b,_0x73b700){const _0x17cb60=_0x1f5a54,_0x4b869b=this[_0x17cb60(0x441)](_0x1bb85b);if(_0x4b869b)try{const _0xa235de=this[_0x17cb60(0x19b)](_0x4b869b,_0x73b700);this[_0x17cb60(0x1c1)](_0x1bb85b,_0xa235de);}catch(_0x445a2f){this[_0x17cb60(0x308)][_0x17cb60(0x419)]('[CollaborationUndoRedoService]',_0x445a2f),this['_clearUndo'](_0x1bb85b);}const _0x5a9974=this['_getRedoStack'](_0x1bb85b);if(_0x5a9974)try{const _0x1923c4=this[_0x17cb60(0x19b)](_0x5a9974,_0x73b700);this['_substituteRedoStack'](_0x1bb85b,_0x1923c4);}catch(_0x18fbfc){this[_0x17cb60(0x308)]['error'](_0x18fbfc),this[_0x17cb60(0x22d)](_0x1bb85b);}}[_0x1f5a54(0x1e0)](_0x1fe7d8){const _0x591814=_0x1f5a54,_0x459196=this[_0x591814(0x441)](_0x1fe7d8);_0x459196&&(_0x459196[_0x591814(0x2d6)]=0x0,this[_0x591814(0x1cb)]());}['_clearRedo'](_0x50293f){const _0x2bb3b9=_0x1f5a54,_0x47a314=this[_0x2bb3b9(0x205)](_0x50293f);_0x47a314&&(_0x47a314[_0x2bb3b9(0x2d6)]=0x0,this[_0x2bb3b9(0x1cb)]());}[_0x1f5a54(0x1c1)](_0x20dbfe,_0x593f57){const _0x2c5e8e=_0x1f5a54;this[_0x2c5e8e(0x368)][_0x2c5e8e(0x22e)](_0x20dbfe,_0x593f57),this[_0x2c5e8e(0x1cb)]();}[_0x1f5a54(0x3ff)](_0x4ee8b6,_0xb1eb6b){const _0x2e0b33=_0x1f5a54;this[_0x2e0b33(0x44e)][_0x2e0b33(0x22e)](_0x4ee8b6,_0xb1eb6b),this[_0x2e0b33(0x1cb)]();}[_0x1f5a54(0x19b)](_0x3b3a44,_0x33a473){const _0x3c4eae=_0x1f5a54,_0x5547d9=[];let _0x2ea057=_0x33a473,_0x43f032=_0x33a473;for(let _0x1c2c19=_0x3b3a44[_0x3c4eae(0x2d6)]-0x1;_0x1c2c19>=0x0;_0x1c2c19--){const {unitID:_0x2fc5f2,undoMutations:_0x19cca2,redoMutations:_0x2f4cc9}=_0x3b3a44[_0x1c2c19],_0x40c350=this[_0x3c4eae(0x327)][_0x3c4eae(0x461)](_0x2ea057,_0x19cca2),_0x44276b=this[_0x3c4eae(0x327)][_0x3c4eae(0x461)](_0x43f032,_0x2f4cc9);if(_0x2aee01(_0x40c350)||_0x2aee01(_0x44276b)){this[_0x3c4eae(0x308)]['error'](_0x3c4eae(0x475),'transformStack\x20failed!',_0x40c350,_0x44276b);break;}_0x2ea057=_0x40c350['c1Prime'],_0x43f032=_0x44276b['c1Prime'],_0x5547d9[_0x3c4eae(0x310)]({'unitID':_0x2fc5f2,'undoMutations':_0x40c350[_0x3c4eae(0x349)],'redoMutations':_0x44276b[_0x3c4eae(0x349)]});}return _0x5547d9['reverse']();}};bt=zr([Te(0x0,_0x55bd21),Te(0x1,_0x257ce4),Te(0x2,_0x1da175),Te(0x3,_0x1215ee),Te(0x4,_0x3e33de)],bt);class Zr extends _0x5915f1{constructor(){const _0xf24d29=_0x1f5a54;super(),l(this,_0xf24d29(0x290)),this[_0xf24d29(0x290)]=_0x45523d(window,_0xf24d29(0x3e8))[_0xf24d29(0x180)](_0x57fb4a(this['dispose$']),_0x956324(0x1),_0x43ae84(void 0x0));}['setParam'](_0x5c377c,_0x6328c5,_0x600aa1=!0x1){const _0x1b393c=_0x1f5a54,_0x5e4a18=new URL(window['location'][_0x1b393c(0x1e5)]);_0x5e4a18[_0x1b393c(0x1aa)][_0x1b393c(0x22e)](_0x5c377c,_0x6328c5),_0x600aa1?window[_0x1b393c(0x32d)][_0x1b393c(0x20e)]('','',_0x5e4a18[_0x1b393c(0x196)]()):window[_0x1b393c(0x32d)]['pushState']('','',_0x5e4a18[_0x1b393c(0x196)]());}['removeParam'](_0x418fbd,_0x5bfddd=!0x1){const _0x2770e5=_0x1f5a54,_0xcc5a54=new URL(window[_0x2770e5(0x15a)]['href']);_0xcc5a54[_0x2770e5(0x1aa)][_0x2770e5(0x3a5)](_0x418fbd),_0x5bfddd?window['history'][_0x2770e5(0x20e)]('','',_0xcc5a54[_0x2770e5(0x196)]()):window['history'][_0x2770e5(0x337)]('','',_0xcc5a54[_0x2770e5(0x196)]());}[_0x1f5a54(0x1f9)](_0x43874e){const _0x517184=_0x1f5a54;var _0x30c9b1;return(_0x30c9b1=new URL(window[_0x517184(0x15a)][_0x517184(0x1e5)])[_0x517184(0x1aa)][_0x517184(0x393)](_0x43874e))!=null?_0x30c9b1:void 0x0;}}const lt='collab-text-anchor-',Qr='collab-text-range-',He=0x6,eo=1.5,_t=0x4,to=1.5,so=_0x1f5a54(0x351);class io{constructor(_0x5e34a3,_0x14bcf7,_0x462622,_0x3cfd94){const _0x33087f=_0x1f5a54;l(this,_0x33087f(0x2d5),[]),l(this,_0x33087f(0x401),null),l(this,_0x33087f(0x418),null),l(this,'_anchorDot',null),l(this,'_hideTimer',null),l(this,_0x33087f(0x219),null),(this[_0x33087f(0x312)]=_0x5e34a3,this['_scene']=_0x14bcf7,this[_0x33087f(0x175)]=_0x462622,this['_document']=_0x3cfd94,this[_0x33087f(0x187)]());}set[_0x1f5a54(0x1ae)](_0x43d4ad){const _0x235f1f=_0x1f5a54;_0x43d4ad?(this[_0x235f1f(0x25d)]&&this[_0x235f1f(0x25d)][_0x235f1f(0x2a8)](),this[_0x235f1f(0x418)]&&this[_0x235f1f(0x418)][_0x235f1f(0x43a)]()):(this['_anchorDot']&&this[_0x235f1f(0x25d)][_0x235f1f(0x43a)](),this[_0x235f1f(0x418)]&&this[_0x235f1f(0x418)]['hide']());}[_0x1f5a54(0x26e)](){const _0x3bfb7f=_0x1f5a54;for(const _0x11065d of this['_shapes'])_0x11065d[_0x3bfb7f(0x26e)]();this[_0x3bfb7f(0x418)]&&this[_0x3bfb7f(0x418)][_0x3bfb7f(0x26e)](),this['_anchorDot']&&this[_0x3bfb7f(0x25d)][_0x3bfb7f(0x26e)](),this['_anchor']&&this[_0x3bfb7f(0x401)][_0x3bfb7f(0x26e)](),this[_0x3bfb7f(0x219)]&&this['_eventUnsubscribe']();}[_0x1f5a54(0x187)](){const _0x2afcf8=_0x1f5a54,{_docSkeleton:_0x47df2e,_document:_0x2e09e8}=this,{color:_0x477e76,name:_0x392df5,ranges:_0x38c469}=this['_cursor'],_0x5e890c=_0x2e09e8['getOffsetConfig'](),{docsLeft:_0x47fbb9,docsTop:_0x48bc5e}=_0x5e890c,_0x4ae7d7=new _0x229c8a(_0x5e890c,_0x47df2e);for(const {startOffset:_0x3be36a,endOffset:_0x4e9268,collapsed:_0x227e40,isActive:_0x3f2287}of _0x38c469){const _0x1466cd=_0x47df2e[_0x2afcf8(0x331)](_0x3be36a),_0xb5ef24=_0x47df2e[_0x2afcf8(0x331)](_0x4e9268);if(_0x3f2287){const {contentBoxPointGroup:_0x3a5550}=_0x4ae7d7['getRangePointData'](_0xb5ef24,_0xb5ef24);if(_0x3a5550[_0x2afcf8(0x2d6)]===0x0)continue;this[_0x2afcf8(0x1f3)](_0x477e76,_0x3a5550,_0x47fbb9,_0x48bc5e,_0x392df5),this[_0x2afcf8(0x219)]=this[_0x2afcf8(0x2ff)]();}if(!_0x227e40){const {contentBoxPointGroup:_0x308f50}=_0x4ae7d7[_0x2afcf8(0x16e)](_0x1466cd,_0xb5ef24);if(_0x308f50[_0x2afcf8(0x2d6)]===0x0)continue;this[_0x2afcf8(0x387)](_0x477e76,_0x308f50,_0x47fbb9,_0x48bc5e);}}}['_drawAnchor'](_0x1e119d,_0x4949fd,_0x1765ef,_0x3ad932,_0x184025){const _0x1f37c7=_0x1f5a54,_0x3c5a93=this['_getAnchorBounding'](_0x4949fd),{left:_0x305d88,top:_0x11e663,height:_0x4ebcc8}=_0x3c5a93,_0x75bdb7=this[_0x1f37c7(0x367)](),_0x4c8b20=to/_0x75bdb7,_0xd06bb=new _0x5d7c63(lt+_0x4b796f[_0x1f37c7(0x328)](He),{'left':_0x305d88+_0x1765ef-_0x4c8b20,'top':_0x11e663+_0x3ad932,'height':_0x4ebcc8,'width':eo,'fill':_0x1e119d||_0x3b289f(_0x411a85['black'],0x0),'strokeWidth':_0x4c8b20,'stroke':so,'evented':!0x0});this[_0x1f37c7(0x401)]=_0xd06bb,this[_0x1f37c7(0x178)][_0x1f37c7(0x2e5)](_0xd06bb,_0x293d74);const _0x3a5eed=new _0x5d7c63(lt+_0x4b796f['generateRandomId'](He),{'left':_0x305d88+_0x1765ef-_0x4c8b20,'top':_0x11e663+_0x3ad932-_t/0x2,'height':_t,'width':_t,'fill':_0x1e119d||_0x3b289f(_0x411a85[_0x1f37c7(0x27c)],0x0),'strokeWidth':0x0,'stroke':_0x1e119d||_0x3b289f(_0x411a85[_0x1f37c7(0x27c)],0x0),'evented':!0x1});this[_0x1f37c7(0x25d)]=_0x3a5eed,this[_0x1f37c7(0x178)][_0x1f37c7(0x2e5)](_0x3a5eed,_0x293d74);const _0x4baede=new st(lt+_0x4b796f[_0x1f37c7(0x328)](He),{'left':_0x305d88+_0x1765ef-_0x4c8b20,'top':_0x11e663+_0x3ad932-Me,'text':_0x184025,'color':_0x1e119d});this[_0x1f37c7(0x418)]=_0x4baede,this[_0x1f37c7(0x178)][_0x1f37c7(0x2e5)](_0x4baede,_0x293d74),this[_0x1f37c7(0x1ae)]=!0x1;}[_0x1f5a54(0x2ff)](){const _0x62e225=_0x1f5a54,_0x2fc20a=this['_anchor']['onPointerEnter$'][_0x62e225(0x341)](()=>{this['_hover']=!0x0;}),_0x5eb797=this[_0x62e225(0x401)][_0x62e225(0x242)][_0x62e225(0x341)](()=>{const _0x1c4a31=_0x62e225;this[_0x1c4a31(0x381)]&&clearTimeout(this['_hideTimer']),this[_0x1c4a31(0x381)]=setTimeout(()=>{const _0x48b0cb=_0x1c4a31;this[_0x48b0cb(0x1ae)]=!0x1;},0x7d0);});return()=>{const _0x34fd06=_0x62e225;_0x2fc20a['unsubscribe'](),_0x5eb797[_0x34fd06(0x3d0)]();};}['_drawRange'](_0x530bfd,_0x3a3b8c,_0x78fc4f,_0x33afc7){const _0x9073ed=_0x1f5a54,_0x576dba=new _0x41c257(_0x530bfd)['setAlpha'](0.2)[_0x9073ed(0x38e)](),_0x3f9fdb=new _0x2b0581(Qr+_0x4b796f[_0x9073ed(0x328)](He),{'pointsGroup':_0x3a3b8c,'fill':_0x576dba||_0x3b289f(_0x411a85[_0x9073ed(0x27c)],0.2),'left':_0x78fc4f,'top':_0x33afc7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x9073ed(0x2d5)]['push'](_0x3f9fdb),this[_0x9073ed(0x178)][_0x9073ed(0x2e5)](_0x3f9fdb,_0x293d74);}[_0x1f5a54(0x34c)](_0x530a26){const _0x5daabf=_0x530a26[0x0],_0x20b905=_0x5daabf[0x0],_0x3455b9=_0x5daabf[0x2],{x:_0x2f8639,y:_0xef3d8d}=_0x20b905,{x:_0x2adb5d,y:_0x178f78}=_0x3455b9;return{'left':_0x2f8639,'top':_0xef3d8d,'width':_0x2adb5d-_0x2f8639,'height':_0x178f78-_0xef3d8d};}[_0x1f5a54(0x367)](){const _0x341e02=_0x1f5a54,{scaleX:_0x7b25a4,scaleY:_0x910a16}=this[_0x341e02(0x178)][_0x341e02(0x32b)]();return Math[_0x341e02(0x44a)](_0x7b25a4,_0x910a16);}}var no=Object[_0x1f5a54(0x29f)],ro=Object[_0x1f5a54(0x3cc)],oo=(_0xb24f8,_0x23d493,_0x3e7609,_0x2bf5b2)=>{const _0x52e9b6=_0x1f5a54;for(var _0x38e477=_0x2bf5b2>0x1?void 0x0:_0x2bf5b2?ro(_0x23d493,_0x3e7609):_0x23d493,_0x326044=_0xb24f8[_0x52e9b6(0x2d6)]-0x1,_0x54fe4f;_0x326044>=0x0;_0x326044--)(_0x54fe4f=_0xb24f8[_0x326044])&&(_0x38e477=(_0x2bf5b2?_0x54fe4f(_0x23d493,_0x3e7609,_0x38e477):_0x54fe4f(_0x38e477))||_0x38e477);return _0x2bf5b2&&_0x38e477&&no(_0x23d493,_0x3e7609,_0x38e477),_0x38e477;},Re=(_0x3b45cc,_0x4fd870)=>(_0x6bdb5,_0x1ad6b0)=>_0x4fd870(_0x6bdb5,_0x1ad6b0,_0x3b45cc);let Ge=class extends _0x5915f1{constructor(_0x1ef5e0,_0x398bdb,_0x4b00db,_0x42bfef,_0x15f0a0){const _0x51017c=_0x1f5a54;super(),l(this,_0x51017c(0x2bc),[]),(this['_collabCursorController']=_0x1ef5e0,this['_univerInstanceService']=_0x398bdb,this[_0x51017c(0x168)]=_0x4b00db,this[_0x51017c(0x399)]=_0x42bfef,this['_themeService']=_0x15f0a0,this[_0x51017c(0x3b6)]());}['_init'](){const _0x5037c4=_0x1f5a54;this[_0x5037c4(0x399)][_0x5037c4(0x2a9)][_0x5037c4(0x180)](_0x31e4a6(this[_0x5037c4(0x3cd)]),_0x4c3023(_0x28b9be=>{const _0xcf4ada=_0x5037c4;if(_0x28b9be){const _0x5f5666=_0x28b9be[_0xcf4ada(0x204)]()[_0xcf4ada(0x35b)]()[_0xcf4ada(0x2a2)]();return _0x5732cb(this[_0xcf4ada(0x3f9)][_0xcf4ada(0x25c)](_0x5f5666),this[_0xcf4ada(0x165)]['currentTheme$'])['pipe'](_0x28f321(([_0x2f657b,_0x1817b1])=>({'skeleton':_0x28b9be,'cursors':[..._0x2f657b[_0xcf4ada(0x410)]()][_0xcf4ada(0x21a)](_0x1003b1=>({..._0x1003b1,'color':_0x1817b1[_0x1003b1[_0xcf4ada(0x428)]]}))})));}return _0x110ce6({'skeleton':null,'cursors':[]});}))[_0x5037c4(0x2d9)](({skeleton:_0x834e45,cursors:_0x4625af})=>{const _0x9f1723=_0x5037c4;this[_0x9f1723(0x34e)](),_0x834e45&&this['_updateCollabCursors'](_0x834e45,_0x4625af);});}[_0x1f5a54(0x304)](_0x283696,_0x2ae031){const _0x56dac6=_0x1f5a54,_0x4ce7d0=this['_getDocObject']();if(_0x4ce7d0==null)return;const {scene:_0x3c4965,document:_0xae72b8}=_0x4ce7d0,_0x46ef6a=_0x2ae031['map'](_0x11260a=>new io(_0x11260a,_0x3c4965,_0x283696,_0xae72b8));this[_0x56dac6(0x2bc)]=_0x46ef6a;}['_removeCollabCursors'](){const _0x12c3c1=_0x1f5a54;this[_0x12c3c1(0x2bc)][_0x12c3c1(0x37a)](_0x4f61c5=>_0x4f61c5['dispose']()),this['_cursors']=[];}[_0x1f5a54(0x36e)](){const _0x351eea=_0x1f5a54;return _0x5ef147(this[_0x351eea(0x357)],this[_0x351eea(0x168)]);}};Ge=oo([_0x182a37(_0x46c7aa[_0x1f5a54(0x3a3)],Ge),Re(0x0,_0x61a763(fe)),Re(0x1,_0x55bd21),Re(0x2,_0x8604c3),Re(0x3,_0x61a763(_0x3824ed)),Re(0x4,_0x61a763(_0x5a1d7c))],Ge);var ao=Object[_0x1f5a54(0x29f)],co=Object[_0x1f5a54(0x3cc)],ho=(_0x2e9f26,_0x117706,_0xaae140,_0x5435d3)=>{for(var _0x5bfa25=_0x5435d3>0x1?void 0x0:_0x5435d3?co(_0x117706,_0xaae140):_0x117706,_0x538633=_0x2e9f26['length']-0x1,_0x4e160f;_0x538633>=0x0;_0x538633--)(_0x4e160f=_0x2e9f26[_0x538633])&&(_0x5bfa25=(_0x5435d3?_0x4e160f(_0x117706,_0xaae140,_0x5bfa25):_0x4e160f(_0x5bfa25))||_0x5bfa25);return _0x5435d3&&_0x5bfa25&&ao(_0x117706,_0xaae140,_0x5bfa25),_0x5bfa25;},ut=(_0x1b3e87,_0x87095f)=>(_0x424698,_0x1cd2e6)=>_0x87095f(_0x424698,_0x1cd2e6,_0x1b3e87);let Ze=class{constructor(_0x2c1678,_0x3a623e,_0x448b8f){const _0x530a03=_0x1f5a54;this[_0x530a03(0x20c)]=_0x2c1678,this[_0x530a03(0x2da)]=_0x3a623e,this[_0x530a03(0x1a8)]=_0x448b8f,this['init']();}[_0x1f5a54(0x33e)](){const _0x4478e3=_0x1f5a54;this[_0x4478e3(0x2da)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x38a7aa,_0x36bada)=>_0x36bada(_0x38a7aa)[_0x4478e3(0x180)](_0x12334d(async _0x1e7d97=>{const _0x3abf93=_0x4478e3,_0x43621a=_0x1e7d97;if(_0x43621a['status']===0x191&&window['confirm'](this[_0x3abf93(0x1a8)]['t']('auth.needGotoLoginAlert'))){const _0x474b3c=window['encodeURIComponent'](window[_0x3abf93(0x15a)][_0x3abf93(0x1e5)]);window['location'][_0x3abf93(0x1e5)]=this[_0x3abf93(0x151)]()+'?url='+_0x474b3c;}return _0x43621a;}))});}['_getLoginPath'](){const _0x2613c5=_0x1f5a54;var _0x3476e2;return(_0x3476e2=this[_0x2613c5(0x20c)][_0x2613c5(0x19e)](mn))!=null?_0x3476e2:gn;}};Ze=ho([ut(0x0,_0x43c997),ut(0x1,_0x61a763(_0x11da14)),ut(0x2,_0x61a763(_0x4eec6f))],Ze);var lo=Object[_0x1f5a54(0x29f)],_o=Object[_0x1f5a54(0x3cc)],uo=(_0x52526c,_0x158eee,_0x3fd2a0,_0x56195b)=>{const _0xb40409=_0x1f5a54;for(var _0x4f14b3=_0x56195b>0x1?void 0x0:_0x56195b?_o(_0x158eee,_0x3fd2a0):_0x158eee,_0x193f94=_0x52526c[_0xb40409(0x2d6)]-0x1,_0x2b9a4a;_0x193f94>=0x0;_0x193f94--)(_0x2b9a4a=_0x52526c[_0x193f94])&&(_0x4f14b3=(_0x56195b?_0x2b9a4a(_0x158eee,_0x3fd2a0,_0x4f14b3):_0x2b9a4a(_0x4f14b3))||_0x4f14b3);return _0x56195b&&_0x4f14b3&&lo(_0x158eee,_0x3fd2a0,_0x4f14b3),_0x4f14b3;},ns=(_0x3e8802,_0xabeaa3)=>(_0x19784d,_0x1bc127)=>_0xabeaa3(_0x19784d,_0x1bc127,_0x3e8802);const fo=_0x1f5a54(0x225),mo=_0x1f5a54(0x252);let Tt=class extends _0x462626{constructor(_0x222cf1,_0x27b8ad){const _0x476674=_0x1f5a54;super(),this[_0x476674(0x2e4)]=_0x222cf1,this[_0x476674(0x20c)]=_0x27b8ad,this[_0x476674(0x391)]();}[_0x1f5a54(0x391)](){const _0xdd6f10=_0x1f5a54,_0x5d1300=this;this[_0xdd6f10(0x194)](this[_0xdd6f10(0x2e4)][_0xdd6f10(0x458)]({'priority':0x3e7,'interceptor':_0x10f37e({'isMatch'(_0xb7665b){const _0x312aad=_0xdd6f10;var _0x40e7e8;if(_0xb7665b[_0x312aad(0x3d2)]==='POST'&&((_0x40e7e8=_0xb7665b[_0x312aad(0x183)])!=null&&_0x40e7e8[_0x312aad(0x39a)])){const {objectID:_0x1a2c1e,objectType:_0x231edb}=_0xb7665b[_0x312aad(0x183)]['body']||{};if(!_0x1a2c1e||_0x231edb===void 0x0)return!0x1;const _0x3ad162=_0x5d1300[_0x312aad(0x36a)]()+'/'+_0x231edb+_0x312aad(0x18b)+_0x1a2c1e+'/allowed';if(_0xb7665b[_0x312aad(0x40e)]===_0x3ad162)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x529e13){const _0x253ed7=_0xdd6f10;var _0x5249b2;return(_0x5249b2=_0x529e13[_0x253ed7(0x183)])==null?void 0x0:_0x5249b2['body'];},'mergeParamsToRequest'(_0x278b05,_0x2bb808){const _0x4d6360=_0xdd6f10,_0xd3b92a=_0x5d1300[_0x4d6360(0x36a)]()+_0x4d6360(0x395),_0x1a7ed5=_0x278b05['reduce']((_0x26c7d8,_0x314d6a)=>{const _0x539477=_0x4d6360,{unitID:_0x189297,objectID:_0xed0f34,objectType:_0x4a7685,actions:_0x4db90c}=_0x314d6a;return _0x26c7d8[_0x189297]||(_0x26c7d8[_0x189297]={}),_0x26c7d8[_0x189297][_0xed0f34]||(_0x26c7d8[_0x189297][_0xed0f34]={'objectID':_0xed0f34,'objectType':_0x4a7685,'actions':[]}),_0x26c7d8[_0x189297][_0xed0f34][_0x539477(0x1b1)][_0x539477(0x310)](..._0x4db90c),_0x26c7d8;},{}),_0x2f03c0=[];for(const _0x240f71 in _0x1a7ed5)for(const _0xf929e1 in _0x1a7ed5[_0x240f71]){const {actions:_0x59e9ca,objectType:_0x20aee4}=_0x1a7ed5[_0x240f71][_0xf929e1],_0x5ef8fc=[...new Set(_0x59e9ca)];_0x2f03c0[_0x4d6360(0x310)]({'unitID':_0x240f71,'objectID':_0xf929e1,'objectType':_0x20aee4,'actions':_0x5ef8fc});}return new _0x5b1605(_0x4d6360(0x407),_0xd3b92a,{'headers':_0x2bb808[_0x4d6360(0x28f)],'withCredentials':_0x2bb808[_0x4d6360(0x211)],'responseType':_0x2bb808[_0x4d6360(0x46b)],'body':{'requests':_0x2f03c0}});}},{'distributeResult'(_0x468f51,_0x3c6045){const _0x26af80=_0xdd6f10,{objectActions:_0xf26587}=_0x468f51;return _0x3c6045[_0x26af80(0x1a7)](_0x440883=>{const _0x194484=_0x26af80,{unitID:_0xffcfa0,objectID:_0x58397e,actions:_0x7847a4}=_0x440883,_0x20dbaf=_0xf26587[_0x194484(0x17c)](_0x342c82=>_0x342c82[_0x194484(0x213)]===_0xffcfa0&&_0x342c82['objectID']===_0x58397e),_0x46ac82=_0x7847a4[_0x194484(0x1a7)](_0x1824d8=>_0x20dbaf==null?void 0x0:_0x20dbaf['actions'][_0x194484(0x17c)](_0x4d10d7=>_0x4d10d7[_0x194484(0x38c)]===_0x1824d8))[_0x194484(0x434)](_0x33b8bd=>!!_0x33b8bd);return{'config':_0x440883,'result':{'actions':_0x46ac82,'error':_0x468f51['error']}};});}})}));}[_0x1f5a54(0x36a)](){const _0x37274a=_0x1f5a54;var _0x5e18fb;return(_0x5e18fb=this[_0x37274a(0x20c)]['getConfig'](fo))!=null?_0x5e18fb:mo;}async[_0x1f5a54(0x1ee)](_0x1a0024){const _0x2c179c=_0x1f5a54,_0x3fa88f=this[_0x2c179c(0x36a)]()+'/'+_0x1a0024[_0x2c179c(0x314)]+_0x2c179c(0x2f8);return(await this[_0x2c179c(0x2e4)][_0x2c179c(0x1bf)](_0x3fa88f,{'body':_0x1a0024}))[_0x2c179c(0x39a)]['objectID']||'';}async['list'](_0x394860){const _0x219112=_0x1f5a54,_0x3f6b01=this[_0x219112(0x36a)]()+_0x219112(0x184);return(await this[_0x219112(0x2e4)][_0x219112(0x1bf)](_0x3f6b01,{'body':_0x394860}))[_0x219112(0x39a)][_0x219112(0x2f4)];}async['update'](_0x4451f0){const _0x2dd54f=_0x1f5a54,_0x1c653c=this['_getAPIPrefixPath']()+'/'+_0x4451f0[_0x2dd54f(0x314)]+'/object/'+_0x4451f0['objectID'];await this['_HTTPService']['put'](_0x1c653c,{'body':_0x4451f0});}async[_0x1f5a54(0x415)](_0x1c7dc0){const _0x4ece96=_0x1f5a54,_0x52943f=this['_getAPIPrefixPath']()+'/'+_0x1c7dc0['objectType']+_0x4ece96(0x18b)+_0x1c7dc0[_0x4ece96(0x1bd)]+'/allowed';return(await this['_HTTPService'][_0x4ece96(0x1bf)](_0x52943f,{'body':_0x1c7dc0}))[_0x4ece96(0x39a)][_0x4ece96(0x1b1)];}async[_0x1f5a54(0x3d9)](_0xd9c3ab){const _0xd8c204=_0x1f5a54,_0x93084a=this[_0xd8c204(0x36a)]()+'/-/object/-/batch_allowed';return(await this[_0xd8c204(0x2e4)]['post'](_0x93084a,{'body':{'requests':_0xd9c3ab}}))['body'][_0xd8c204(0x212)];}async[_0x1f5a54(0x39d)](_0x5333da){const _0x120831=_0x1f5a54,_0x5296a0=this['_getAPIPrefixPath']()+'/'+_0x5333da[_0x120831(0x314)]+'/role',_0x28aac=await this[_0x120831(0x2e4)][_0x120831(0x1bf)](_0x5296a0,{'body':_0x5333da});return{'roles':_0x28aac[_0x120831(0x39a)][_0x120831(0x203)],'actions':_0x28aac[_0x120831(0x39a)][_0x120831(0x1b1)]};}async[_0x1f5a54(0x294)](_0x423f66){const _0x15b489=_0x1f5a54,_0x4598aa=this[_0x15b489(0x36a)]()+'/collaborator';await this[_0x15b489(0x2e4)][_0x15b489(0x3a5)](_0x4598aa,{'params':{'collaboratorID':_0x423f66[_0x15b489(0x248)],'objectID':_0x423f66['objectID'],'unitID':_0x423f66[_0x15b489(0x213)]}});}async[_0x1f5a54(0x2c6)](_0x4b5c81){const _0x1a6d55=_0x1f5a54,_0x5160db=this[_0x1a6d55(0x36a)]()+_0x1a6d55(0x442);await this[_0x1a6d55(0x2e4)][_0x1a6d55(0x33f)](_0x5160db,{'body':_0x4b5c81});}async[_0x1f5a54(0x388)](_0x127e11){const _0x2fb4df=_0x1f5a54,_0x1caf81=this[_0x2fb4df(0x36a)]()+_0x2fb4df(0x442);await this[_0x2fb4df(0x2e4)][_0x2fb4df(0x1bf)](_0x1caf81,{'body':_0x127e11});}async[_0x1f5a54(0x233)](_0x25c603){const _0x164608=_0x1f5a54,_0x1d0192=this[_0x164608(0x36a)]()+_0x164608(0x442);return(await this[_0x164608(0x2e4)][_0x164608(0x393)](_0x1d0192,{'params':{'objectID':_0x25c603[_0x164608(0x1bd)],'unitID':_0x25c603[_0x164608(0x213)]}}))[_0x164608(0x39a)][_0x164608(0x256)];}async['putCollaborators'](_0x3cb786){const _0x3e5394=_0x1f5a54,_0xb3d04c=this[_0x3e5394(0x36a)]()+_0x3e5394(0x442);await this['_HTTPService'][_0x3e5394(0x15b)](_0xb3d04c,{'body':_0x3cb786});}};Tt=uo([ns(0x0,_0x61a763(_0x11da14)),ns(0x1,_0x61a763(_0x43c997))],Tt);var go=Object['defineProperty'],So=Object[_0x1f5a54(0x3cc)],vo=(_0xd7e909,_0x5e9d7e,_0x47f8bd,_0xb9287b)=>{const _0x18ccee=_0x1f5a54;for(var _0xa137d2=_0xb9287b>0x1?void 0x0:_0xb9287b?So(_0x5e9d7e,_0x47f8bd):_0x5e9d7e,_0x32f607=_0xd7e909[_0x18ccee(0x2d6)]-0x1,_0x48b50e;_0x32f607>=0x0;_0x32f607--)(_0x48b50e=_0xd7e909[_0x32f607])&&(_0xa137d2=(_0xb9287b?_0x48b50e(_0x5e9d7e,_0x47f8bd,_0xa137d2):_0x48b50e(_0xa137d2))||_0xa137d2);return _0xb9287b&&_0xa137d2&&go(_0x5e9d7e,_0x47f8bd,_0xa137d2),_0xa137d2;},rs=(_0xc3da7d,_0x274abb)=>(_0xe2f00b,_0x1fe15e)=>_0x274abb(_0xe2f00b,_0x1fe15e,_0xc3da7d);const po=[_0x1f5a54(0x409),_0x1f5a54(0x449),_0x1f5a54(0x3d1),_0x1f5a54(0x154),'image/bmp'],Io=0x5*0x400*0x400,Eo=_0x1f5a54(0x267),Co=_0x1f5a54(0x141),bo=_0x1f5a54(0x325),To=_0x1f5a54(0x185);let Rt=class{constructor(_0x10499c,_0x266e4e){const _0x584b78=_0x1f5a54;l(this,_0x584b78(0x31c),0x0),l(this,'_change$',new _0x295019()),l(this,_0x584b78(0x42f),this[_0x584b78(0x293)]),l(this,_0x584b78(0x3de),new Map()),(this['_httpService']=_0x10499c,this[_0x584b78(0x20c)]=_0x266e4e);}[_0x1f5a54(0x1ab)](_0x1d7ee){const _0xe90539=_0x1f5a54;this[_0xe90539(0x31c)]=_0x1d7ee,this['_change$']['next'](_0x1d7ee);}[_0x1f5a54(0x42e)](_0x2f18e1,_0x2c6e45){const _0x37b02c=_0x1f5a54;if(_0x2c6e45===_0x2a1a1d[_0x37b02c(0x284)]){const _0x33836e=new Image();return _0x33836e[_0x37b02c(0x193)]=_0x2f18e1,_0x33836e;}return this[_0x37b02c(0x3de)]['get'](_0x2f18e1);}[_0x1f5a54(0x24f)](_0x5cd07b,_0x387d6b,_0x106fec){const _0xf9ca79=_0x1f5a54;_0x387d6b===_0x2a1a1d[_0xf9ca79(0x284)]||_0x106fec==null||this[_0xf9ca79(0x3de)]['set'](_0x5cd07b,_0x106fec);}async[_0x1f5a54(0x432)](_0x100118){const _0xca4770=_0x1f5a54;try{const _0xe92b62=this[_0xca4770(0x1c5)](this[_0xca4770(0x2e2)](),''+_0x100118),_0x3daf8b=(await this['_httpService'][_0xca4770(0x393)](_0xe92b62))['body'];return _0x3daf8b[_0xca4770(0x419)]&&_0x3daf8b[_0xca4770(0x419)][_0xca4770(0x275)]===Rs['OK']?Promise[_0xca4770(0x336)](_0x3daf8b[_0xca4770(0x40e)]):Promise[_0xca4770(0x30e)](_0x3daf8b[_0xca4770(0x419)]);}catch(_0x5e383f){return Promise[_0xca4770(0x30e)](_0x5e383f);}}async['saveImage'](_0x3cff6c){const _0x39f87f=_0x1f5a54;let _0xac4a41='';if(!po[_0x39f87f(0x3ca)](_0x3cff6c['type']))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x190b89['ERROR_IMAGE_TYPE']));if(_0x3cff6c[_0x39f87f(0x3d8)]>Io)return this[_0x39f87f(0x29b)](),Promise[_0x39f87f(0x30e)](new Error(_0x190b89[_0x39f87f(0x2fd)]));try{const _0x3e4bdd=new FormData();_0x3e4bdd['append'](_0x39f87f(0x36f),_0x3cff6c);const _0x4947f6=this[_0x39f87f(0x1ec)]()+_0x39f87f(0x30a)+_0x3cff6c[_0x39f87f(0x3d8)][_0x39f87f(0x196)](),_0x102585=await(await fetch(_0x4947f6,{'method':_0x39f87f(0x407),'body':_0x3e4bdd}))[_0x39f87f(0x1d3)]();if(typeof _0x102585[_0x39f87f(0x3b2)]!=_0x39f87f(0x3f2))return this[_0x39f87f(0x29b)](),Promise['reject'](new Error(_0x190b89[_0x39f87f(0x174)]));_0xac4a41=_0x102585[_0x39f87f(0x3b2)];}catch{return this['_decreaseWaiting'](),Promise[_0x39f87f(0x30e)](new Error(_0x190b89[_0x39f87f(0x174)]));}return new Promise((_0x12a851,_0x2d7dec)=>{const _0x54d48d=_0x39f87f,_0x1354c4=new FileReader();_0x1354c4[_0x54d48d(0x390)](_0x3cff6c),_0x1354c4['onload']=_0x579656=>{const _0x10a676=_0x54d48d;var _0x56f284;const _0x2233bf=(_0x56f284=_0x579656[_0x10a676(0x15d)])==null?void 0x0:_0x56f284[_0x10a676(0x2b3)];if(_0x2233bf==null){this[_0x10a676(0x29b)](),_0x2d7dec(new Error(_0x190b89['ERROR_IMAGE']));return;}const _0x2d2d2b=_0x4b796f['generateRandomId'](0x6);_0x12a851({'imageId':_0x2d2d2b,'imageSourceType':_0x2a1a1d[_0x10a676(0x426)],'source':_0xac4a41,'base64Cache':_0x2233bf,'status':_0x190b89[_0x10a676(0x360)]}),this[_0x10a676(0x29b)]();};});}[_0x1f5a54(0x1ec)](){const _0xb2bed1=_0x1f5a54;var _0x1cc128;return(_0x1cc128=this[_0xb2bed1(0x20c)][_0xb2bed1(0x19e)](Eo))!=null?_0x1cc128:Co;}['_getSignURL'](){const _0x1dbc83=_0x1f5a54;var _0x58d0b3;return(_0x58d0b3=this[_0x1dbc83(0x20c)][_0x1dbc83(0x19e)](bo))!=null?_0x58d0b3:To;}[_0x1f5a54(0x1c5)](_0x4b36c8,_0x5f4573){const _0x53ff50=_0x1f5a54;return _0x4b36c8[_0x53ff50(0x235)]('{fileID}',_0x5f4573);}[_0x1f5a54(0x29b)](){const _0x428d15=_0x1f5a54;this[_0x428d15(0x31c)]-=0x1,this[_0x428d15(0x293)][_0x428d15(0x39b)](this[_0x428d15(0x31c)]);}};Rt=vo([rs(0x0,_0x61a763(_0x11da14)),rs(0x1,_0x43c997)],Rt);var Ro=Object[_0x1f5a54(0x29f)],Oo=Object[_0x1f5a54(0x3cc)],Do=(_0x1b7bc4,_0x3e801a,_0x5a694d,_0x5ac6f1)=>{const _0x7f98ad=_0x1f5a54;for(var _0x4e6230=_0x5ac6f1>0x1?void 0x0:_0x5ac6f1?Oo(_0x3e801a,_0x5a694d):_0x3e801a,_0x3d27ce=_0x1b7bc4[_0x7f98ad(0x2d6)]-0x1,_0x2712a7;_0x3d27ce>=0x0;_0x3d27ce--)(_0x2712a7=_0x1b7bc4[_0x3d27ce])&&(_0x4e6230=(_0x5ac6f1?_0x2712a7(_0x3e801a,_0x5a694d,_0x4e6230):_0x2712a7(_0x4e6230))||_0x4e6230);return _0x5ac6f1&&_0x4e6230&&Ro(_0x3e801a,_0x5a694d,_0x4e6230),_0x4e6230;},Oe=(_0x1f7e6b,_0x47f4a8)=>(_0x237c9b,_0x52719d)=>_0x47f4a8(_0x237c9b,_0x52719d,_0x1f7e6b);let Ye=class extends _0x5915f1{constructor(_0x18d40e,_0x44ef2c,_0x48183f,_0x2c69d5,_0x252e6a){const _0x1579d2=_0x1f5a54;super(),this[_0x1579d2(0x3db)]=_0x18d40e,this['_univerInstanceService']=_0x44ef2c,this[_0x1579d2(0x1ba)]=_0x48183f,this['_collaborationSessionService']=_0x2c69d5,this[_0x1579d2(0x3a6)]=_0x252e6a,this['_initUnitPermissionChange'](),this[_0x1579d2(0x209)]();}[_0x1f5a54(0x209)](){const _0x3e0c25=_0x1f5a54,_0x22e067=async _0x4f06f8=>{const _0x24f93b=_0x2f7f;(await this[_0x24f93b(0x416)][_0x24f93b(0x46e)](_0x4f06f8))[_0x24f93b(0x403)]['pipe'](_0x3d131e(_0x47b391=>_0x47b391[_0x24f93b(0x2cf)]===_0x505428['SHOULD_CLOSE_CONN']),_0x31e4a6(this['dispose$']))[_0x24f93b(0x2d9)](_0xfc900e=>{const _0x154e37=_0x24f93b,_0x312869=_0xfc900e,{reason:_0x365c43}=_0x312869[_0x154e37(0x2a5)];this[_0x154e37(0x3db)][_0x154e37(0x393)](_0x58c973)[_0x154e37(0x43a)]({'type':_0x454b23['Error'],'content':this[_0x154e37(0x3a6)]['t']('collaboration.closeRoom')+'('+_0x365c43+')'}),this[_0x154e37(0x1ba)][_0x154e37(0x2bb)](new _0x278a53(_0x4f06f8)['id'],!0x1),this[_0x154e37(0x416)][_0x154e37(0x257)](_0x4f06f8);});};_0x2e3217(this[_0x3e0c25(0x357)][_0x3e0c25(0x1fb)](_0x5cab0b[_0x3e0c25(0x320)]),this[_0x3e0c25(0x357)][_0x3e0c25(0x1fb)](_0x5cab0b[_0x3e0c25(0x315)]))['pipe'](_0x28f321(_0x57bb98=>_0x57bb98[_0x3e0c25(0x2a2)]()),_0x3d131e(_0x3b18a1=>!_0xe275c4(_0x3b18a1)),_0x31e4a6(this[_0x3e0c25(0x3cd)]))[_0x3e0c25(0x2d9)](_0x248800=>{_0x22e067(_0x248800);});}[_0x1f5a54(0x3b9)](){const _0xa55b5a=_0x1f5a54,_0x4cf900=async _0x8aabf7=>{const _0x4c3e87=_0x2f7f;(await this[_0x4c3e87(0x416)]['requireSession'](_0x8aabf7))[_0x4c3e87(0x403)]['pipe'](_0x3d131e(_0x5809cf=>_0x5809cf[_0x4c3e87(0x2cf)]===_0x505428[_0x4c3e87(0x42d)]),_0x31e4a6(this['dispose$']))['subscribe'](_0x31745f=>{const _0x59e063=_0x4c3e87,_0x3e8682=_0x31745f,{objectId:_0x4d916d}=_0x3e8682[_0x59e063(0x2a5)];_0x4d916d===_0x8aabf7&&this[_0x59e063(0x3db)][_0x59e063(0x393)](_0x302c8b)['initWorkbookPermissionChange'](_0x8aabf7);});};_0x2e3217(this[_0xa55b5a(0x357)][_0xa55b5a(0x1fb)](_0x5cab0b[_0xa55b5a(0x320)]),this[_0xa55b5a(0x357)][_0xa55b5a(0x1fb)](_0x5cab0b[_0xa55b5a(0x315)]))['pipe'](_0x28f321(_0x3aea16=>_0x3aea16[_0xa55b5a(0x2a2)]()),_0x3d131e(_0x310585=>!_0xe275c4(_0x310585)),_0x31e4a6(this[_0xa55b5a(0x3cd)]))[_0xa55b5a(0x2d9)](_0x58b7ea=>{_0x4cf900(_0x58b7ea);});}};Ye=Do([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],Ye),Oe(0x0,_0x61a763(_0x2e9f94)),Oe(0x1,_0x55bd21),Oe(0x2,_0x1721b0),Oe(0x3,_0x61a763(ge)),Oe(0x4,_0x61a763(_0x4eec6f))],Ye);var $s=Object[_0x1f5a54(0x29f)],Po=Object[_0x1f5a54(0x3cc)],wo=(_0x358ecf,_0x5951cf,_0x164954)=>_0x5951cf in _0x358ecf?$s(_0x358ecf,_0x5951cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x164954}):_0x358ecf[_0x5951cf]=_0x164954,No=(_0x229845,_0x482352,_0x244c75,_0x359285)=>{const _0x587408=_0x1f5a54;for(var _0x419081=_0x359285>0x1?void 0x0:_0x359285?Po(_0x482352,_0x244c75):_0x482352,_0x8e42e8=_0x229845[_0x587408(0x2d6)]-0x1,_0x238a9e;_0x8e42e8>=0x0;_0x8e42e8--)(_0x238a9e=_0x229845[_0x8e42e8])&&(_0x419081=(_0x359285?_0x238a9e(_0x482352,_0x244c75,_0x419081):_0x238a9e(_0x419081))||_0x419081);return _0x359285&&_0x419081&&$s(_0x482352,_0x244c75,_0x419081),_0x419081;},os=(_0x2d3527,_0x3e911a)=>(_0x48d6d3,_0x3c9709)=>_0x3e911a(_0x48d6d3,_0x3c9709,_0x2d3527),Mo=(_0x57cfac,_0x518779,_0x1e63b2)=>wo(_0x57cfac,_0x518779+'',_0x1e63b2);const Ao=_0x1f5a54(0x3e7);let Ot=class extends _0x2b09f1{constructor(_0x2f62a9,_0x3e22e7,_0x1ed6d7){const _0x151f4f=_0x1f5a54;super(),this[_0x151f4f(0x26f)]=_0x2f62a9,this[_0x151f4f(0x308)]=_0x3e22e7,this[_0x151f4f(0x3db)]=_0x1ed6d7;}[_0x1f5a54(0x23d)](_0x5621c6){const _0x37b977=_0x1f5a54;var _0x4a9d5b,_0xe8e709,_0x258414,_0x2ceca0,_0x1c9b6b;_0x5621c6[_0x37b977(0x1d8)](_0x4e4a39)&&this[_0x37b977(0x308)]['error'](_0x37b977(0x18d),_0x37b977(0x261));let _0xf23a14=[[_0x4e4a39,{'useClass':bt}],[ge],[Lt],[_0x11da14],[Ls,{'useClass':Zr}],[ne],[D],[_0x2067e4],[qe],[Je],[Xe],[Ut],[Ze],[Ds],[Ye],[Os,{'useClass':(_0xe8e709=(_0x4a9d5b=this['_config'])==null?void 0x0:_0x4a9d5b[_0x37b977(0x2b1)])!=null?_0xe8e709:gt}],[_0x449c33,{'useClass':_0x13770f}],[_0x49d5c1,{'useClass':Ct}],[_0x29e930,{'useClass':Tt}],[_0x32dd32,{'useClass':Rt}],[De],[Be],[ke],[We],[fe]];(_0x258414=this[_0x37b977(0x26f)])!=null&&_0x258414[_0x37b977(0x142)]&&_0xf23a14[_0x37b977(0x310)]([et,{'useClass':An}]),((_0x2ceca0=this['_config'])==null?void 0x0:_0x2ceca0['collaborationUniverTypes'])==null||this[_0x37b977(0x26f)][_0x37b977(0x1de)]['includes'](_0x5cab0b[_0x37b977(0x320)])?_0xf23a14[_0x37b977(0x310)]([Ve]):this[_0x37b977(0x26f)][_0x37b977(0x1de)][_0x37b977(0x3ca)](_0x5cab0b[_0x37b977(0x315)])&&_0xf23a14[_0x37b977(0x310)]([Ge]),_0xf23a14=_0x4e0679(_0xf23a14,(_0x1c9b6b=this[_0x37b977(0x26f)])==null?void 0x0:_0x1c9b6b['override']),_0xf23a14[_0x37b977(0x37a)](_0x2e8ae5=>_0x5621c6['add'](_0x2e8ae5)),_0x5621c6['get'](_0x11da14)[_0x37b977(0x458)]({'priority':0x14,'interceptor':_0x50e197({'maxParallel':0x6})}),this[_0x37b977(0x16d)]();}[_0x1f5a54(0x16d)](){const _0x846236=_0x1f5a54;var _0xc44211,_0x742958;(_0xc44211=this[_0x846236(0x26f)])!=null&&_0xc44211[_0x846236(0x423)]||this[_0x846236(0x3db)][_0x846236(0x393)](D)[_0x846236(0x3fa)](),(_0x742958=this[_0x846236(0x26f)])!=null&&_0x742958[_0x846236(0x42a)]&&this['_injector'][_0x846236(0x393)](Ze);}};Mo(Ot,_0x1f5a54(0x404),Ao),Ot=No([_0x476f81(_0x460423),os(0x1,_0x3e33de),os(0x2,_0x61a763(_0x2e9f94))],Ot);export{fo as AUTHZ_URL_KEY,Tt as AuthzIoHttpService,dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,sn as COLLAB_WEB_SOCKET_URL_KEY,De as CollaborationController,St as CollaborationSession,ge as CollaborationSessionService,gt as CollaborationSocketService,w as CollaborationStatus,yr as CollaborationStatusDisplay,Ds as CommentService,Be as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,rn as HEARTBEAT_INTERVAL_KEY,bs as HEARTBEAT_TIMEOUT_KEY,Os as ICollaborationSocketService,Ls as IURLService,Rt as ImageIoService,_n as LOCAL_CACHE_INTERVAL_KEY,mn as LOGIN_URL_KEY,D as LocalCacheService,en as SEND_CHANGESET_TIMEOUT_KEY,zi as SNAPSHOT_SERVER_URL_KEY,Qi as SNAPSHOT_URL_KEY,de as SessionStatus,mr as SheetCollabCursorShape,pt as SheetCollaborationEntity,Ct as SnapshotServerOverHTTPService,Ot as UniverCollaborationClientPlugin,Zr as WebURLService,En as deserializeToCombResponse,Cn as serializeCombRequest};
|
1
|
+
const _0x4d174b=_0x2798;(function(_0x1d3afd,_0x5f0fc5){const _0x74585d=_0x2798,_0x49943e=_0x1d3afd();while(!![]){try{const _0x2b024f=-parseInt(_0x74585d(0x1ce))/0x1+-parseInt(_0x74585d(0x1d0))/0x2+-parseInt(_0x74585d(0x306))/0x3*(-parseInt(_0x74585d(0x201))/0x4)+-parseInt(_0x74585d(0x3b6))/0x5*(parseInt(_0x74585d(0x141))/0x6)+parseInt(_0x74585d(0x3d1))/0x7*(parseInt(_0x74585d(0x359))/0x8)+-parseInt(_0x74585d(0x3f6))/0x9*(parseInt(_0x74585d(0x27b))/0xa)+parseInt(_0x74585d(0xc5))/0xb;if(_0x2b024f===_0x5f0fc5)break;else _0x49943e['push'](_0x49943e['shift']());}catch(_0x4d8fc9){_0x49943e['push'](_0x49943e['shift']());}}}(_0x1b10,0x9578f));var Bs=Object['defineProperty'],Ws=(_0x22947c,_0x4c1e62,_0x328808)=>_0x4c1e62 in _0x22947c?Bs(_0x22947c,_0x4c1e62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x328808}):_0x22947c[_0x4c1e62]=_0x328808,l=(_0x18791c,_0xaf3947,_0x1ab6df)=>Ws(_0x18791c,typeof _0xaf3947!='symbol'?_0xaf3947+'':_0xaf3947,_0x1ab6df);import{Disposable as _0x3d777f,toDisposable as _0x521fe6,UniverInstanceType as _0x1851b1,Inject as _0x5b671c,UserManagerService as _0x37f827,IUniverInstanceService as _0x2269ec,createIdentifier as _0x20ae42,DisposableCollection as _0x57d5bc,IConfigService as _0x15fd76,ILogService as _0x50a504,ISnapshotServerService as _0x31fed6,RxDisposable as _0x52c754,LocaleService as _0x35ebff,Injector as _0x49e10e,ILocalStorageService as _0x195f5f,Tools as _0x1053dd,ICommandService as _0x5bc562,JSONX as _0xa7ba5e,CommandType as _0x4d4345,IPermissionService as _0xf5bbc5,IUndoRedoService as _0x5f56c1,sequenceExecute as _0x37a637,OnLifecycle as _0xbfca41,LifecycleStages as _0x5b23af,Optional as _0x466fab,Rectangle as _0x439eae,ThemeService as _0x2191ad,useDependency as _0x3c7014,connectInjector as _0x5578f9,Workbook as _0x391489,textEncoder as _0x52ba54,b64DecodeUnicode as _0x44db7c,LocalUndoRedoService as _0xca3891,IContextService as _0x1a042d,COLORS as _0x375c72,ColorKit as _0x2cf8bf,isInternalEditorID as _0x48cbdf,Plugin as _0x1b986b,IAuthzIoService as _0x120323,mergeOverrideWithDependencies as _0x28386f,DependentOn as _0x34bd97}from'@univerjs/core';import{SheetsSelectionsService as _0x298766,SetSelectionsOperation as _0x32ba42,InsertSheetMutation as _0x3b1722,EmptyMutation as _0x4866a1,WorkbookEditablePermission as _0x56d014,RefRangeService as _0x30eaeb,EffectRefRangId as _0x52a1d4,handleIRemoveRow as _0x17649b,handleIRemoveCol as _0x22e932,handleMoveRange as _0x4e0a2e,handleInsertRow as _0x345f09,handleInsertRangeMoveRight as _0x255bb6,handleInsertRangeMoveDown as _0x3be4c3,handleInsertCol as _0x326930,handleDeleteRangeMoveUp as _0x1ca379,handleDeleteRangeMoveLeft as _0x881384,runRefRangeMutations as _0x43235e,SetWorksheetActivateCommand as _0x1149a2}from'@univerjs/sheets';import{MessageType as _0x17d4c8}from'@univerjs/design';import{IBeforeCloseService as _0x1799ae,IMessageService as _0x1e8990,INotificationService as _0x13435c,useObservable as _0x3425e9,BuiltInUIPart as _0x36ca7a,IUIPartsService as _0xe5448f}from'@univerjs/ui';import{CollaborationEvent as _0x2c65dc,parseChangesetToProtocol as _0x24fcaf,RevisionService as _0x5d7349,isTransformMutationFailure as _0x8ecfd4,isTransformMutationsWithChangesetSuccess as _0x7aa6dd,ITransformService as _0x174d0f,mapDocumentTypeToUniverType as _0x4a7d91,isTransformChangesetsSuccess as _0x5cb55b,CompressMutationService as _0x2224de,parseProtocolChangeset as _0xf28be5,SnapshotService as _0x8be8c0,isTransformMutationsWithChangesetFailure as _0x3d1247,UniverCollaborationPlugin as _0x5889e9}from'@univerjs-pro/collaboration';import{merge as _0x4e0a85,Subject as _0x49ef1a,BehaviorSubject as _0x16da12,distinctUntilChanged as _0x44a041,fromEvent as _0x2a799c,of as _0x1e95ea,takeUntil as _0xf80876,debounceTime as _0x552316,filter as _0x28963b,switchMap as _0x46582b,combineLatest as _0x2d61f0,shareReplay as _0x1c7dea,mapTo as _0x33a766,concatMap as _0x555673}from'rxjs';import{map as _0x120a2e,takeUntil as _0x21a0e1,take as _0x15818d,filter as _0x22c59c,delay as _0x4fe2db,shareReplay as _0x473611,switchMap as _0x6b8f52}from'rxjs/operators';function _0x1b10(){const _0x13d9f2=['location','getRangePointData','_onCursorUpdate','sheetID','onlineStatus','getTypeOfUnitDisposed$','_collabCursorState$','map','verdancy600','enableAuthServer','image/jpeg','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_executeRemoteChangeset','_updateLocalCursor','conflict','_hideTimer','_getAnchorBounding','_ws','_getMergeRange','YUUMI_UNABLE_LOAD_URL','clear','stringify','UNAUTHENTICATED','SNAPSHOT_HAS_BEEN_REMOVED','data','ERROR_EXCEED_SIZE','blue400','_handleLeaveEvent','sheets','_showConflictNotification','params','_submitChangeset','unit','_waitCount','_unitStatus','_userManagerService','_docSyncEditingCollabCursorService','_init','_sessions','[PendingState]:\x20received\x20acknowledgement.','transformUndoRedo','_unitOnClients','restore','_HTTPService','url(#off-line-single_clip0_910_343)','_setupBeforeClosingHandler','getCurrentRevForDocument','_redoStacks','_updateStatus','string','_updateCollabCursors','_hover','off-line-single_clip0_910_343','_shapes','UNIVER_DOC','moveTo','_themeService','url(#on-line-single_clip0_910_349)','parse','HEARTBEAT_TIMEOUT','_anchor','editingUnit','collab-text-anchor-','_startDocCollabCursor','AWAITING','onMissingChangesets','_renderManagerService','send','NOT_COLLAB','_type','SUBMIT_CHANGESET','CHANGESET_REVISION_CONFILICT','LIVESHARE_FETCH_OPERATIONS','_socketService','ONLINE','onlineStatusIcon','updatePermissionObjEvent','row','getOffsetConfig','univer-online-status','setCurrentUser','min','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_lockTransition','_collaborationSessionService','getWorkbookSelections','children','status$','_memberService','registerOnClose','_handler','memberID','interceptor','OffLineSingle','[SyncedState]:\x20received\x20rejection.','SNAPSHOT_SERVER_URL_KEY','length','_docSkeletonManagerService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','c1Prime','LICENSE_IMPORT_SIZE_EXCEEDED','_retryConnectingTimer','getSheetBySheetId','all','method','target','requireSession','collabStatus.syncing','getCollabEntity$','_collabCursorController','getCurrentSelections','NO_OTHER_CLIENTS_EDITING','getCurrentUnitForType','_state$','patch','_cursor','/unit/','_transitionLocked','_remoteChangesetQueue','COMPRESS_MUTATION_SEND','loadOfflineData','width','univer-online','[CollaborationSessionService]','onRendered','_color','_getSheetObject','_members','UPDATE_CURSOR','#fff','makeDirty','collaboration.closeRoom','closeSession','1610652HWfiWP','LIVESHARE_REQUEST_HOST','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_handleHeartbeatEvent','_logService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','open$','UNDEFINED','_heartbeatTimer','_draw','result','/resources','UNKNOWN_CMD','red300','onStarting','url','collabStatus.conflict','_ensureSubject','closePath','APPLY_NON_SEQUENTIAL_REVISION','MUTATION','collabCursorState$','_initMergeInterceptor','generateRandomId','_onConnectionFailed','path','_colorIndex','setAlpha','_rescheduleHeartbeatEvent','unit-cache-','_onConnectionOpen','_socketReady','_sendHeartbeat','[SyncedState]:\x20received\x20acknowledgement.','push','_clearRedo','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_snapshotService','[OfflineState]:\x20received\x20acknowledgement.','_createSocket','_scheduleTimestamp','save','selection','session.connection-failed','state$','getVpScrollXYInfoByPosToVp','jiqing500','gold400','getRoom','socket\x20open.','awaiting','RETRY_CONNECTING_INTERVAL','_collaborationPaused','onSyncEditingCollabCursor','getMemberID','SEND_CHANGESET_TIMEOUT','xlink:href','_registerRenderDependencies','TOO_MANY_REQUESTS','LOCAL_CACHE_INTERVAL','toggleOffline','getCellPositionByOffset','_joinRoom','_onUserJoin','then','_backgroundColor','HEADER_MENU','_isPermissionRej','set','url(#$1','ERROR_IMAGE_TYPE','_disabled','0\x200\x2016\x2016','OTHER_CLIENTS_EDITING','LIVESHARE_OPERATION','_updateSubUnitFromURLParams','flatMap','infoRsp','saveSnapshot','Error','triggerDblclick','CONNECTOR_DATA_TOO_LARGE','_handleEvent','264utRoYu','_entities','getMember','subscribeEvent','_getSnapshotAPIPrefix','[DataLoaderController]','_session','onlineStatusTitle','top','USERS_ENTER','_waitForHeartbeatResponse','RECV','executeCommand','extend','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','propertyIsEnumerable','_collabSessionService','cmd','COLLAB_WEB_SOCKET_URL','objectActions','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_injector','sheetId','PENDING','conflict.content','localeService','subUnitId','UPDATE_PERMISSION_OBJ','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','_onRecvEvent','color','image/jpg','_id','CHANGESET_ACK','getParam','has','_startSheetCollabCursor','resolve','call','_initModules','withCredentials','_getSignURL','replaceState','joinEvent','_updateURLWithCurrentState','routeKey','state','MoveRangeCommandId','HEARTBEAT','originalMeta','change$','\x20-\x20','initWorkbookPermissionChange','_getRedoStack','setShapeProps','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_unlockTransition','/universer-api/stream/file/upload','permission.content','UNIVER_SLIDE','?url=','_getLoginPath','max','/object/','LOGIN_URL_KEY','text','_socket$','[CollaborationUndoRedoService]','includes','/role','_render','saveChangeset','COMMENT_UPDATE','_loadDoc','_clearLocalCache','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','compose','setItem','_toggleOnline','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','_getCtorByUniverType','FAIL','_range','setUndoRedoMutationParamsCache','allowed','round','removeMember','createSocket','headers','onlyLocal','translate(.97)','toggleOnline','selections','818145NYoRrS','registerRenderModule','FileId','DeleteRangeMoveLeftCommandId','hovered','getActiveRange','createCollaborator','asObservable','loadSheet','svg','currentTheme$','clipPath','_cursors','hide','getInterceptPoints','save\x20fail\x20reason\x20is\x20','incrementRevForDocument','urlChange$','auth.needGotoLoginAlert','updatePermissionPoint','_transformService','_transformPreviousActiveRange','[CollaborationSession]','updateCollaborator','_removeCollabCursors','connection\x20error','_transformIMECache','232981HMrjNi','HELLO','createInstance','_clearOtherTimers','[PendingState]:\x20received\x20rejection.','_lastPointer','onload','_uiPartsService','_hovered','actions','[PendingState]:\x20unhandled\x20univer\x20type:\x20','synced','members','_onMessage','concat','changesets','_sheetTransformSelectionsService','readAsDataURL','subunit','delete','NEW_CHANGESETS','resourceIDs','isPermissionRej','cursorInfo','appendMutation','idSuffix','getAncestorScale','reject','awaitingChangeset','_saveTaskMap','JOINING','collabStatus.synced','_commentUpdate$','updateMember','_cursorInfo$','USERS_LEAVE','_transformSelections','1716471NjgzCJ','_getSendChangesetTimeout','error','[UniverCollaborationClientPlugin]','find','div','pipe','_roomMembers','_applyRemoteChangeset','_checkMissing','sessionStatus$','liveShareNewHost','onCommentUpdate','20107626PkiCtN','unsubscribe','getOwnPropertySymbols','startRow','_imageSourceCache','_localCacheService','_fetchMissChangesets','loadDoc','DeleteRangeMoveUpCommandId','InsertColCommandId','_drawRange','_syncEditingCollabCursor','socket\x20close','_incrementRevisionNumber','_substituteUndoStack','setInterval','\x0aCurrent:\x20','POST','createElement','ACTIVE_UNIT_EVENT_CHANNEL','newCsEvent','_undoRedoService','deepClone','JOIN','dispose$','deleteCollaborator','collaboration.single-unit.warning','Error\x20on\x20receiving\x20event','drawWith','next','_handleHover','disposeWithMe','objectID','_singleActiveUnitService','skeleton','_colorAssignService','collaboration-client.offline-data-not-saved','UUID','defIds','toString','append','_scheduleClearOtherTimer','[CollaborationState]:\x20apply\x20error!','assign','_docTransformSelectionsService','_docStateChangeManagerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','error$','storage','univer-online-status-icon','collab-text-range-','put','_commentService','_scheduleSaving','apply','image/bmp','onSendChangeset','YUUMI_URL_COL_OUT_OF_RANGE','off-line-single','title','collaborators','/-/object/-/batch_allowed','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_initStatusListener','_onConflict','_replaceFileID','transformSelections','doc.mutation.rich-text-editing','InsertRangeMoveDownCommandId','_transformStack','CONFLICT','eventID','fetch_missing','onRemoteChangeset','list','transformStack\x20failed!','AUTHZ_URL_KEY','activeSheet$','_eventUnsubscribe','findNodePositionByCharIndex','_univerInstanceService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_document','submit\x20changeset\x20error!','collabStatus.offline','setWaitCount','fetchMissingChangesets','disableLocalCache','getMergeData','M0\x200H16V16H0z','init','onTransformSelections','_clearHeartbeatTimer','colorChannel1','trim','removeParam','popstate','_permissionService','permissionRejEvent','_decreaseWaiting','_onRemoteRejected','getViewport','setParam','on-line-single','_context','focused$','prototype','add','onMissedChangesetFetched','Starting','FETCH_MISSING','searchParams','get','\x0aAfter:\x20','session.will-retry','_clearScheduledTask','_initUnitPermissionChange','type','getCurrentUser','_schedule','_localeService','_removeClearOtherTimer','getOwnPropertyDescriptor','catch','24aLnhxV','ranges','revision','UNIVER_UNKNOWN','_httpService','_cachedData','transformMutationsWithChangeset','\x20in\x20_schedule.','not_collab','_scheduleReconnection','status','whenReady','/-/object/list','Warning','post','getUnitId','_getAPIPrefixPath','startColumn','_getUndoStack','body','encodeURIComponent','_createInitialStateImpl','_getAPIPrefix','_startCollaboration','_registerDependencies','measureText','dispose','update','bottom','isArray','_docSkeleton','m2Prime','defs','on-line-single_clip0_910_349','workbook','_clearCollaborationTimeoutTimer','_getCurrentRevision','getActiveSheet','INGEST','requestParams','_transformUndoRedoStack','fillRule','onTransformRemoteChangesetByIMECache','_createInitialState','startsWith','Univer','replace','APPLY_REVISION_CONFILICT','PERMISSION_DENIED','offline','batchAllowed','getTypeOfUnitAdded$','clearTimeout','contains','_undoStacks','_commandService','newValue','OnLineSingle','_refRangeService','CHANGESET_REJ','_socket','/rev/','_localStorageService','reduce','setActiveRange','_awaitingChangeset','addEventListener','COMPRESS_MUTATION_APPLY','mutations','resend','random','_selfUnitIDs','FETCH_MISS','_anchorDot','INTERNAL_ERROR','transformMutation','responseType','transformIMECache','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','fetchThroughInterceptors','_snapshotServerService','currentSkeleton$','snapshot','objects','currentColor','_acknowledgedAwaitingChangeset','_revisionService','_substituteRedoStack','show','pluginName','onMouseMove','_sheetSkeletonManagerService','_onRemoteACK','commentUpdate$','sessionStatus','transformChangesets','_toggleOffline','fill','syncEditingCollabCursor','onRemoteAck','_getUploadFileURL','_event$','_disableEditing','_textBubble','event$','getUnitOnRev','_unitID','height','_urlService','_docTransformIMECacheService','_initStatusComponent','listRoles','[OfflineState]:\x20received\x20rejection.','roomMembers$','_onLocalMutation','range','_notificationService','ERROR_IMAGE','_compressMutationService','_roomMembers$','#FFF','registerBeforeClose','[FetchMissState]','entries','InsertRowCommandId','_saveCache','roomMembers','getCollabEntity','split','_sendingTimer','UNKNOWN_CODE','listCollaborators','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_assignedColors','transformRemoteChangeset','action','onRemoteRej','attrs','forEach','addImageSourceCache','session','872086RvacJh','getUndoRedoMutationParamsCache','1504382UvniQx','NOT_FOUND','getImageSourceCache','_getScale','/allowed','assignAColorForMemberID','exhaustSavingTask','key','setTimeout','csAckEvent','unshift','m1Prime','cursorInfo$','_onJoinRoomEvent','LEAVE','getUnitType','_getSaveTimeout','_tryEnsureSocket','unitID','defineProperty','onCommandExecuted','message$','/collaborator','column','json','image/png','fillText','values','lineTo','conflict.title','onPointerLeave$','close','getConfig','indexOf','univer-online-status-title','_scheduleCollaborationTimeoutTimer','unknown','_send','univer-pro.collaboration-client.single-active-unit-service','_sendHeartbeatTimer','_onCursorDelete','_updateLocalCache','OFFLINE','1em','_onFetchMissResult','_collaborationTimeoutTimer','/block/','rev','getSheetId','4PnOPdy','UNIVER_SHEET','_onCombEvent','onPointerMove$','_entityInit$','_change$','UNRECOGNIZED','addObject','isActive','APPLY_REJECT','icon','_config','_state','src','LICENSE_MAX_UNITS_EXCEEDED','getRelativeToViewportCoord','LICENSE_DISTRO_REJECTED','MSG_FOR_ERROR','use','toRgbString','InsertRangeMoveRightCommandId','image/gif','SHOULD_CLOSE_CONN','_removeRoom','APPLY_PERMISSION_DENIED','&to=','className','commentUpdateEvent','awaiting_with_pending','getUnitStatus$','_createHandler','univer-offline','hasOwnProperty','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','ALREADY_EXISTS','_onUserLeave','_beforeCloseService','shouldCloseConn','csRejEvent','_sessionStatus$','_configService','unitId','_messageService','_name','_syncEditingCollabCursorService','name','_handleJoinEvent','_online','pushState','history','_drawAnchor','baseRev','addObjects','filter','_exhaustRemoteChangesetQueue','_timeoutTimer','registerComponent','_updateState','/object','_setupSubUnitSync','_transformRemoteChangesetByIMECache','univer-pro.collaboration-client-socket-service','SNAPSHOT_URL_KEY','SNAPSHOT_INVALID_SNAPSHOT','registerRefRange','fromCollab','pending','_labelPosition','LIVESHARE_TERMINATE','displayName','Unknown\x20user','objectType','registerHTTPInterceptor','_initCloseConn','FromArray','rgba(255,\x20255,\x20255,\x200.01)','debug','fillStyle','roles','[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.','userID','editing\x20status\x20changed\x20to','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','clearInterval','IDLE','_loadSheet','getValue','arc','_status$','SUCCUSS','/fetchmissing?from=','close$','updateOfflineData','complete','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_collaborationController','_pendingMutations','size','_scheduleHeartbeat','from','function','collabStatus.notCollab','_clearTimeoutTimer','enableSingleActiveInstanceLock','subscribe','encode','_queuedRemoteChangesets','black','_retryCount','PSEUDO_FETCH_MISSING_RESULT','tag','PERMISSION_REJ','onPointerEnter$','href','HEARTBEAT_INTERVAL','_scene','LIVESHARE_NEW_HOST','getFocusedUnit','textRanges','[CollaborationEntity]','_socketMessageSubscription','_http','30mzYNuz','file','purple300','some','_onRemoteChangeset','enableOfflineEditing'];_0x1b10=function(){return _0x13d9f2;};return _0x1b10();}import{IMEInputManagerService as _0x34bf2b,TextSelectionManagerService as _0x2684a6,serializeTextRange as _0x1c3c28,RichTextEditingMutation as _0x257904,DocStateChangeManagerService as _0x199abc,SetTextSelectionsOperation as _0x3741bb,DocSkeletonManagerService as _0x20b350}from'@univerjs/docs';import{HTTPService as _0x45a59b,WebSocketService as _0x260c27,MergeInterceptorFactory as _0x210201,HTTPRequest as _0x5e2413,IHTTPImplementation as _0x5aae1e,XHRHTTPImplementation as _0x52538a,ThresholdInterceptorFactory as _0x50c28f}from'@univerjs/network';import{ImageSourceType as _0x2f95cc,ImageUploadStatusType as _0x55f297,IImageIoService as _0x24c8c0}from'@univerjs/drawing';import{Shape as _0x4a0992,Rect as _0x390a18,Vector2 as _0x3af05d,NodePositionConvertToCursor as _0x45f833,getColor as _0x420307,TEXT_RANGE_LAYER_INDEX as _0x22a117,RegularPolygon as _0x1960e1,IRenderManagerService as _0xa71c3c}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x153292,serializeRangeWithSheet as _0xd693b7}from'@univerjs/engine-formula';import _0x7a8360 from'lodash/debounce';import{VIEWPORT_KEY as _0x94aa38,getCoordByCell as _0x1c49f8,getSheetObject as _0x361cc8,SheetSkeletonManagerService as _0xccc92,SheetPermissionInitController as _0x52d8a4}from'@univerjs/sheets-ui';function _0x2798(_0x3286de,_0x8ba0ea){const _0x1b1041=_0x1b10();return _0x2798=function(_0x279807,_0x520b9d){_0x279807=_0x279807-0xb9;let _0x27ca2a=_0x1b1041[_0x279807];return _0x27ca2a;},_0x2798(_0x3286de,_0x8ba0ea);}import _0x33deb0,{forwardRef as _0xc5b87,useRef as _0x485761,createElement as _0x33566a}from'react';import _0x4b7a4e from'clsx';import{IRemoteInstanceService as _0xd560c9}from'@univerjs/rpc';const Zi=_0x4d174b(0x2e0),Qi='/universer-api/snapshot',en=_0x4d174b(0x23f),tn=_0x4d174b(0x33d),sn=0x7d0,nn=_0x4d174b(0x36b),rn='ws://127.0.0.1:8000/universer-api/comb/connect',on=_0x4d174b(0x273),an=0x7530,Ts=_0x4d174b(0x2bc),Rs=0x2710,cn=_0x4d174b(0x339),hn=0x4e20,ln='RETRY_CONNECTING_MAX_COUNT',_n=0x3,un=_0x4d174b(0x341),dn=0x3e8,mn='COLLAB_SUBMIT_CHANGESET_URL',fn='/universer-api/comb',gn=_0x4d174b(0x399),Sn='/universer-api/oidc/authpage';var Os=(_0x428029=>(_0x428029[_0x428029[_0x4d174b(0x30d)]=0x0]=_0x4d174b(0x30d),_0x428029[_0x428029['OK']=0x1]='OK',_0x428029[_0x428029[_0x4d174b(0x18b)]=0x2]=_0x4d174b(0x18b),_0x428029[_0x428029[_0x4d174b(0x171)]=0x3]=_0x4d174b(0x171),_0x428029[_0x428029['NOT_FOUND']=0x4]=_0x4d174b(0x1d1),_0x428029[_0x428029[_0x4d174b(0x297)]=0x5]=_0x4d174b(0x297),_0x428029[_0x428029[_0x4d174b(0x223)]=0x6]=_0x4d174b(0x223),_0x428029[_0x428029['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x428029[_0x428029[_0x4d174b(0x340)]=0x8]=_0x4d174b(0x340),_0x428029[_0x428029['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x428029[_0x428029[_0x4d174b(0x2c8)]=0x1389]=_0x4d174b(0x2c8),_0x428029[_0x428029[_0x4d174b(0x240)]=0x1771]=_0x4d174b(0x240),_0x428029[_0x428029[_0x4d174b(0x298)]=0x1772]=_0x4d174b(0x298),_0x428029[_0x428029[_0x4d174b(0x20a)]=0x1b59]=_0x4d174b(0x20a),_0x428029[_0x428029[_0x4d174b(0x319)]=0x1b5a]=_0x4d174b(0x319),_0x428029[_0x428029[_0x4d174b(0x170)]=0x1b5b]=_0x4d174b(0x170),_0x428029[_0x428029[_0x4d174b(0x219)]=0x1b5c]=_0x4d174b(0x219),_0x428029[_0x428029[_0x4d174b(0x357)]=0x1f41]=_0x4d174b(0x357),_0x428029[_0x428029['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4d174b(0x20f),_0x428029[_0x428029[_0x4d174b(0x116)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x428029[_0x428029[_0x4d174b(0x2e5)]=0x232b]=_0x4d174b(0x2e5),_0x428029[_0x428029['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x428029[_0x428029[_0x4d174b(0x211)]=0x232d]=_0x4d174b(0x211),_0x428029[_0x428029[_0x4d174b(0x294)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x428029[_0x428029[_0x4d174b(0xfe)]=0x2712]=_0x4d174b(0xfe),_0x428029[_0x428029[_0x4d174b(0x207)]=-0x1]=_0x4d174b(0x207),_0x428029))(Os||{}),j=(_0x2d2dd0=>(_0x2d2dd0[_0x2d2dd0['UNIVER_UNKNOWN']=0x0]=_0x4d174b(0x144),_0x2d2dd0[_0x2d2dd0['UNIVER_DOC']=0x1]=_0x4d174b(0x2b7),_0x2d2dd0[_0x2d2dd0[_0x4d174b(0x202)]=0x2]=_0x4d174b(0x202),_0x2d2dd0[_0x2d2dd0[_0x4d174b(0x394)]=0x3]=_0x4d174b(0x394),_0x2d2dd0[_0x2d2dd0[_0x4d174b(0x207)]=-0x1]=_0x4d174b(0x207),_0x2d2dd0))(j||{}),I=(_0x2755ba=>(_0x2755ba[_0x2755ba[_0x4d174b(0x312)]=0x0]=_0x4d174b(0x312),_0x2755ba[_0x2755ba[_0x4d174b(0x3d2)]=0x1]=_0x4d174b(0x3d2),_0x2755ba[_0x2755ba[_0x4d174b(0xdc)]=0x2]=_0x4d174b(0xdc),_0x2755ba[_0x2755ba[_0x4d174b(0x1de)]=0x3]=_0x4d174b(0x1de),_0x2755ba[_0x2755ba[_0x4d174b(0x167)]=0x4]=_0x4d174b(0x167),_0x2755ba[_0x2755ba[_0x4d174b(0x389)]=0x5]=_0x4d174b(0x389),_0x2755ba[_0x2755ba[_0x4d174b(0x364)]=0x6]=_0x4d174b(0x364),_0x2755ba[_0x2755ba[_0x4d174b(0x207)]=-0x1]=_0x4d174b(0x207),_0x2755ba))(I||{}),$t=(_0x3e3bd8=>(_0x3e3bd8[_0x3e3bd8[_0x4d174b(0x1c3)]=0x0]=_0x4d174b(0x1c3),_0x3e3bd8[_0x3e3bd8['OK']=0x1]='OK',_0x3e3bd8[_0x3e3bd8[_0x4d174b(0x3aa)]=0x2]=_0x4d174b(0x3aa),_0x3e3bd8[_0x3e3bd8[_0x4d174b(0x207)]=-0x1]='UNRECOGNIZED',_0x3e3bd8))($t||{}),vn=Object[_0x4d174b(0x1e3)],pn=Object[_0x4d174b(0x13f)],In=(_0x53f9fb,_0x1560c4,_0x29736d,_0x5e9847)=>{const _0x1b92b4=_0x4d174b;for(var _0x47c505=_0x5e9847>0x1?void 0x0:_0x5e9847?pn(_0x1560c4,_0x29736d):_0x1560c4,_0x179a66=_0x53f9fb[_0x1b92b4(0x2e1)]-0x1,_0x26f43f;_0x179a66>=0x0;_0x179a66--)(_0x26f43f=_0x53f9fb[_0x179a66])&&(_0x47c505=(_0x5e9847?_0x26f43f(_0x1560c4,_0x29736d,_0x47c505):_0x26f43f(_0x47c505))||_0x47c505);return _0x5e9847&&_0x47c505&&vn(_0x1560c4,_0x29736d,_0x47c505),_0x47c505;},qt=(_0xe1fed7,_0x115e12)=>(_0x4db2ac,_0x20a25d)=>_0x115e12(_0x4db2ac,_0x20a25d,_0xe1fed7);let te=class extends _0x3d777f{constructor(_0x84a8fd,_0xaed6fa){const _0x394555=_0x4d174b;super(),l(this,'_roomMembers',new Map()),(this[_0x394555(0x115)]=_0x84a8fd,this[_0x394555(0x2a4)]=_0xaed6fa,this[_0x394555(0xe4)](_0x521fe6(_0x4e0a85(this[_0x394555(0x115)]['getTypeOfUnitDisposed$'](_0x1851b1['UNIVER_SHEET'])['pipe'](_0x120a2e(_0x5137dd=>_0x5137dd[_0x394555(0x150)]())),this[_0x394555(0x115)][_0x394555(0x286)](_0x1851b1[_0x394555(0x2b7)])[_0x394555(0xbe)](_0x120a2e(_0x5a41d1=>_0x5a41d1[_0x394555(0x150)]())),this[_0x394555(0x115)][_0x394555(0x286)](_0x1851b1[_0x394555(0x394)])[_0x394555(0xbe)](_0x120a2e(_0x2990ce=>_0x2990ce[_0x394555(0x150)]())))[_0x394555(0x269)](_0x1b4146=>this[_0x394555(0x218)](_0x1b4146)))));}['setCurrentUser'](_0x21d2a0){const _0x13bb11=_0x4d174b;this[_0x13bb11(0x2a4)][_0x13bb11(0x2d1)](_0x21d2a0);}[_0x4d174b(0x13b)](){const _0xd602cd=_0x4d174b;return this[_0xd602cd(0x2a4)]['getCurrentUser']();}[_0x4d174b(0x3f2)](_0x56286a,_0x1056c1){const _0x4e4a5b=_0x4d174b;let _0x2bcf62=this[_0x4e4a5b(0xbf)][_0x4e4a5b(0x135)](_0x56286a);_0x2bcf62||(_0x2bcf62=new En(),this[_0x4e4a5b(0xbf)]['set'](_0x56286a,_0x2bcf62)),_0x2bcf62[_0x4e4a5b(0x3f2)](_0x1056c1);}['removeMember'](_0xc76a09,_0x5e38c4){const _0x398022=_0x4d174b,_0x34027e=this['_roomMembers'][_0x398022(0x135)](_0xc76a09);_0x34027e&&_0x34027e[_0x398022(0x3af)](_0x5e38c4);}[_0x4d174b(0x336)](_0x4c2c5b){const _0x128cb1=_0x4d174b;return this[_0x128cb1(0xbf)][_0x128cb1(0x135)](_0x4c2c5b);}[_0x4d174b(0x35b)](_0x20abc9,_0x26997){const _0x56105c=_0x4d174b,_0xc2cd33=this['_roomMembers'][_0x56105c(0x135)](_0x20abc9);if(_0xc2cd33)return _0xc2cd33[_0x56105c(0x35b)](_0x26997);}['_removeRoom'](_0x11abbb){const _0x4585ee=_0x4d174b,_0x255364=this[_0x4585ee(0xbf)][_0x4585ee(0x135)](_0x11abbb);_0x255364&&(_0x255364[_0x4585ee(0x15b)](),this[_0x4585ee(0xbf)]['delete'](_0x11abbb));}['dispose'](){const _0x2189b4=_0x4d174b;this[_0x2189b4(0xbf)][_0x2189b4(0x1cb)](_0x3a8781=>_0x3a8781[_0x2189b4(0x15b)]()),this[_0x2189b4(0xbf)][_0x2189b4(0x295)]();}};te=In([qt(0x0,_0x2269ec),qt(0x1,_0x5b671c(_0x37f827))],te);class En extends _0x3d777f{constructor(){super(...arguments),l(this,'_members',new Map());}['dispose'](){const _0x569d33=_0x4d174b;this[_0x569d33(0x300)]['clear']();}[_0x4d174b(0x3f2)](_0x2ae8c5){const _0x4bb8a8=_0x4d174b;this[_0x4bb8a8(0x300)][_0x4bb8a8(0x34a)](_0x2ae8c5[_0x4bb8a8(0x2dc)],_0x2ae8c5);}[_0x4d174b(0x3af)](_0x2655b8){const _0x1d7b6c=_0x4d174b;this['_members'][_0x1d7b6c(0x3e4)](_0x2655b8);}[_0x4d174b(0x35b)](_0x2ace8f){const _0x63d7c9=_0x4d174b;return this[_0x63d7c9(0x300)][_0x63d7c9(0x135)](_0x2ace8f);}}function Cn(_0x240187){const _0x5d3ed3=_0x4d174b;var _0x1b87d1,_0x47976b,_0x430629,_0x5a7898;const _0x5e6f8e=_0x240187[_0x5d3ed3(0x299)],_0x24b3c0=JSON[_0x5d3ed3(0x2bb)](_0x5e6f8e);switch(_0x24b3c0[_0x5d3ed3(0x36a)]){case I[_0x5d3ed3(0x389)]:case I[_0x5d3ed3(0x3d2)]:{const _0x37d44d=_0x24b3c0[_0x5d3ed3(0x353)];return{..._0x24b3c0,'data':_0x37d44d,'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};}case I[_0x5d3ed3(0xdc)]:{const _0x3046a7=_0x24b3c0['joinRsp'];return{..._0x24b3c0,'data':_0x3046a7,'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};}case I[_0x5d3ed3(0x364)]:{const _0x564c5a=_0x24b3c0['collaMsg'];switch(_0x564c5a[_0x5d3ed3(0x10c)]){case _0x2c65dc['PERMISSION_REJ']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x1b87d1=_0x564c5a[_0x5d3ed3(0x127)])==null?void 0x0:_0x1b87d1['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x37a)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x47976b=_0x564c5a[_0x5d3ed3(0x1d9)])==null?void 0x0:_0x47976b['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x3e5)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x430629=_0x564c5a[_0x5d3ed3(0xd9)])==null?void 0x0:_0x430629['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x17c)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x5a7898=_0x564c5a[_0x5d3ed3(0x227)])==null?void 0x0:_0x5a7898['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc['UPDATE_CURSOR']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a['updateCursorEvent']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x362)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x384)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x3f4)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a['leaveEvent']},'cmd':_0x24b3c0['cmd']};case _0x2c65dc[_0x5d3ed3(0x275)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0xc3)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x2c9)]:case _0x2c65dc['LIVESHARE_OPERATION']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a['liveShareOperation']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc['LIVESHARE_TERMINATE']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0xc3)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x212)]:return{..._0x24b3c0,'data':_0x564c5a,'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x3a1)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x21c)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x374)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x2cd)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc['SHOULD_CLOSE_CONN']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x226)]},'cmd':_0x24b3c0['cmd']};default:return _0x24b3c0;}}default:return _0x24b3c0;}}function bn(_0x5eab42){const _0x9148a5=_0x4d174b;switch(_0x5eab42[_0x9148a5(0x36a)]){case I[_0x9148a5(0x389)]:case I['HELLO']:return JSON[_0x9148a5(0x296)]({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42[_0x9148a5(0x386)]});case I['INGEST']:{let _0x4de16a;switch(_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x10c)]){case _0x2c65dc[_0x9148a5(0x301)]:{_0x4de16a={'eventID':_0x2c65dc['UPDATE_CURSOR'],'updateCursorEvent':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc['USERS_LEAVE']:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x3f4)],'leaveEvent':_0x5eab42[_0x9148a5(0x299)]['data']};break;}case _0x2c65dc[_0x9148a5(0x362)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x362)],'joinEvent':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x275)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x275)],'liveShareNewHost':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x350)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x350)],'liveShareOperation':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x245)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x245)],'liveShareTerminate':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x307)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x307)],'liveShareRequestHost':_0x5eab42['data'][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x2c9)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x2c9)]};break;}default:_0x4de16a={'eventID':_0x5eab42['data'][_0x9148a5(0x10c)]};}return JSON['stringify']({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42[_0x9148a5(0x386)],'collaMsg':_0x4de16a});}case I['JOIN']:return JSON['stringify']({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42[_0x9148a5(0x386)],'joinReq':_0x5eab42[_0x9148a5(0x299)]});case I[_0x9148a5(0x1de)]:return JSON['stringify']({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42['routeKey'],'leaveReq':_0x5eab42[_0x9148a5(0x299)]});default:throw new Error(_0x9148a5(0x1c5));}}var Tn=Object['defineProperty'],Rn=Object[_0x4d174b(0x13f)],On=(_0x1fb2fe,_0x58f6e3,_0x4a3967,_0x4546b)=>{const _0xd58577=_0x4d174b;for(var _0x15348b=_0x4546b>0x1?void 0x0:_0x4546b?Rn(_0x58f6e3,_0x4a3967):_0x58f6e3,_0x7808a2=_0x1fb2fe[_0xd58577(0x2e1)]-0x1,_0x54a770;_0x7808a2>=0x0;_0x7808a2--)(_0x54a770=_0x1fb2fe[_0x7808a2])&&(_0x15348b=(_0x4546b?_0x54a770(_0x58f6e3,_0x4a3967,_0x15348b):_0x54a770(_0x15348b))||_0x15348b);return _0x4546b&&_0x15348b&&Tn(_0x58f6e3,_0x4a3967,_0x15348b),_0x15348b;},Ee=(_0x5bbf2e,_0x5e8e65)=>(_0x560279,_0x5dbae9)=>_0x5e8e65(_0x560279,_0x5dbae9,_0x5bbf2e);const Ds=_0x20ae42(_0x4d174b(0x23e));function Dn(_0x1fd817,_0x53ecf0,_0x45277d){const _0x9deb63=_0x4d174b;return _0x1fd817+'/'+_0x53ecf0+_0x9deb63(0x2f5)+_0x45277d+'/new_changes';}let vt=class{constructor(_0x42475c,_0xb8e332,_0x535edf,_0x1ea24e,_0x5b3dd9){const _0x4c6268=_0x4d174b;this['_http']=_0x42475c,this[_0x4c6268(0x292)]=_0xb8e332,this[_0x4c6268(0x229)]=_0x535edf,this['_logService']=_0x1ea24e,this[_0x4c6268(0x191)]=_0x5b3dd9;}[_0x4d174b(0x3b0)](_0x1143d7){const _0x31629a=_0x4d174b,_0x36fd61=this[_0x31629a(0x292)][_0x31629a(0x3b0)](_0x1143d7);if(!_0x36fd61)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1bdd58=new _0x57d5bc(),_0x1c2345=new _0x49ef1a();_0x1bdd58[_0x31629a(0x130)](_0x521fe6(_0x36fd61[_0x31629a(0x25c)][_0x31629a(0x269)](_0x5acdf9=>_0x1c2345['next'](_0x5acdf9)))),_0x1bdd58['add'](_0x521fe6(()=>_0x1c2345[_0x31629a(0x25e)]()));const _0x2af0ba=new _0x49ef1a();_0x1bdd58[_0x31629a(0x130)](_0x521fe6(_0x36fd61[_0x31629a(0xf4)][_0x31629a(0x269)](_0x3f2d5a=>_0x2af0ba[_0x31629a(0xe2)](_0x3f2d5a)))),_0x1bdd58[_0x31629a(0x130)](_0x521fe6(()=>_0x2af0ba[_0x31629a(0x25e)]()));const _0x556c21=new _0x49ef1a();_0x1bdd58[_0x31629a(0x130)](_0x521fe6(_0x36fd61['message$'][_0x31629a(0x269)](_0x4b0b4c=>{const _0x235952=Cn(_0x4b0b4c);_0x556c21['next'](_0x235952);}))),_0x1bdd58['add'](_0x521fe6(()=>_0x556c21['complete']()));const _0x15cc0d=()=>{const _0x459391=_0x31629a;_0x2af0ba[_0x459391(0xe2)](new Event(_0x459391(0x3cf))),_0x1c2345[_0x459391(0xe2)](new CloseEvent(_0x459391(0x3cf))),_0x39a0c3[_0x459391(0x1ef)]();},_0x39a0c3={'memberID':'','close$':_0x1c2345[_0x31629a(0x3bd)](),'error$':_0x2af0ba[_0x31629a(0x3bd)](),'open$':_0x36fd61[_0x31629a(0x30c)],'message$':_0x556c21[_0x31629a(0x3bd)](),'send':_0x377789=>{const _0xac9769=_0x31629a;if(_0x377789[_0xac9769(0x36a)]===I[_0xac9769(0x167)]){if(_0x377789['data']['eventID']===_0x2c65dc[_0xac9769(0x2c7)]){this[_0xac9769(0x2a0)](_0x39a0c3,_0x377789[_0xac9769(0x299)])[_0xac9769(0x140)](_0x8fd4aa=>{const _0x5ce2a6=_0xac9769;this[_0x5ce2a6(0x30a)][_0x5ce2a6(0xba)](_0x8fd4aa),_0x15cc0d();});return;}if(_0x377789[_0xac9769(0x299)][_0xac9769(0x10c)]===_0x2c65dc[_0xac9769(0x133)]){const _0x3764e1=_0x377789[_0xac9769(0x299)];this[_0xac9769(0xcb)](_0x3764e1)[_0xac9769(0x346)](_0x1ae01c=>{const _0x2cb990=_0xac9769;_0x556c21[_0x2cb990(0xe2)]({'cmd':I[_0x2cb990(0x364)],'code':$t['OK'],'routeKey':_0x3764e1['data'][_0x2cb990(0x1e2)],'routeType':'','data':{'eventID':_0x2c65dc['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1ae01c}}});})[_0xac9769(0x140)](_0xe6031d=>{this['_logService']['error'](_0xe6031d),_0x15cc0d();});return;}}_0x36fd61[_0xac9769(0x2c4)](bn(_0x377789));},'close':()=>{const _0x5ca0b8=_0x31629a;_0x36fd61['close'](),_0x1bdd58[_0x5ca0b8(0x15b)]();}};return _0x39a0c3;}async[_0x4d174b(0x2a0)](_0x201ecf,_0x26a4f8){const _0x47b60f=_0x4d174b;var _0xb2b1b0;const {unitType:_0x37ba0e,unitID:_0x10f426,changeset:_0x425af7}=_0x26a4f8['data'],_0x586d79={'unitID':_0x10f426,'memberID':_0x201ecf[_0x47b60f(0x2dc)],'type':_0x37ba0e,'changeset':_0x24fcaf(_0x425af7)},_0x1b1470=Dn((_0xb2b1b0=this[_0x47b60f(0x229)][_0x47b60f(0x1f0)](mn))!=null?_0xb2b1b0:fn,_0x37ba0e,_0x10f426);try{await this[_0x47b60f(0x27a)][_0x47b60f(0x14f)](_0x1b1470,{'body':_0x586d79});}catch(_0x4fe784){throw this[_0x47b60f(0x30a)][_0x47b60f(0xba)](_0x47b60f(0x3cc),_0x47b60f(0x118)),_0x4fe784;}}async[_0x4d174b(0xcb)](_0x3c3788){const _0x16efce=_0x4d174b,{unitID:_0x5ca759,from:_0x3125d4,to:_0x3fc59f,unitType:_0x1e5cf1}=_0x3c3788['data'];return(await this[_0x16efce(0x191)][_0x16efce(0x11b)]({'metadata':void 0x0},{'unitID':_0x5ca759,'type':_0x1e5cf1,'from':_0x3125d4,'to':_0x3fc59f}))[_0x16efce(0x3e0)];}};vt=On([Ee(0x0,_0x5b671c(_0x45a59b)),Ee(0x1,_0x5b671c(_0x260c27)),Ee(0x2,_0x15fd76),Ee(0x3,_0x50a504),Ee(0x4,_0x31fed6)],vt);class Ps{constructor(){const _0x38066f=_0x4d174b;l(this,_0x38066f(0x3f1),new _0x49ef1a()),l(this,_0x38066f(0x19e),this['_commentUpdate$'][_0x38066f(0x3bd)]());}[_0x4d174b(0xc4)](_0x58ee77){const _0x1d50a6=_0x4d174b;this[_0x1d50a6(0x3f1)][_0x1d50a6(0xe2)](_0x58ee77);}}var Pn=Object[_0x4d174b(0x1e3)],wn=Object[_0x4d174b(0x13f)],ws=(_0x550767,_0x4bf563,_0x270f22,_0x3ffaa8)=>{const _0xbbd0b6=_0x4d174b;for(var _0x4c5efa=_0x3ffaa8>0x1?void 0x0:_0x3ffaa8?wn(_0x4bf563,_0x270f22):_0x4bf563,_0x511ad3=_0x550767[_0xbbd0b6(0x2e1)]-0x1,_0x45385d;_0x511ad3>=0x0;_0x511ad3--)(_0x45385d=_0x550767[_0x511ad3])&&(_0x4c5efa=(_0x3ffaa8?_0x45385d(_0x4bf563,_0x270f22,_0x4c5efa):_0x45385d(_0x4c5efa))||_0x4c5efa);return _0x3ffaa8&&_0x4c5efa&&Pn(_0x4bf563,_0x270f22,_0x4c5efa),_0x4c5efa;},M=(_0x3c2025,_0x37724e)=>(_0x25cba6,_0x304d04)=>_0x37724e(_0x25cba6,_0x304d04,_0x3c2025),de=(_0x2f151f=>(_0x2f151f[_0x2f151f['IDLE']=0x0]=_0x4d174b(0x255),_0x2f151f[_0x2f151f['JOINING']=0x1]=_0x4d174b(0x3ef),_0x2f151f[_0x2f151f[_0x4d174b(0x1fa)]=0x2]=_0x4d174b(0x1fa),_0x2f151f[_0x2f151f[_0x4d174b(0x2cb)]=0x3]=_0x4d174b(0x2cb),_0x2f151f))(de||{});let pt=class extends _0x52c754{constructor(_0x35df67,_0x2e81ea,_0x11da7a,_0x124e4b,_0xf8dccd,_0x979b5a,_0x55c539,_0x419cc0,_0x2989c9){const _0x175a83=_0x4d174b;super(),l(this,_0x175a83(0x228),new _0x16da12(0x0)),l(this,'sessionStatus$',this[_0x175a83(0x228)]['asObservable']()),l(this,_0x175a83(0x1a6),new _0x49ef1a()),l(this,_0x175a83(0x1a9),this[_0x175a83(0x1a6)][_0x175a83(0x3bd)]()),l(this,_0x175a83(0x17d)),l(this,'_socketMessageSubscription'),l(this,'_collaborationTimeoutTimer'),(this['_unitID']=_0x35df67,this[_0x175a83(0x30a)]=_0x11da7a,this[_0x175a83(0x225)]=_0x124e4b,this[_0x175a83(0x22b)]=_0xf8dccd,this['_configService']=_0x979b5a,this[_0x175a83(0x13d)]=_0x55c539,this[_0x175a83(0x2d9)]=_0x419cc0,this['_commentService']=_0x2989c9,_0x2e81ea['pipe'](_0x21a0e1(this['dispose$']))[_0x175a83(0x269)](_0x103085=>{const _0x36840b=_0x175a83;var _0x1ded2a;typeof _0x103085>'u'||(this[_0x36840b(0x17d)]=_0x103085,_0x103085?(this[_0x36840b(0x344)](_0x103085),this[_0x36840b(0x279)]=this[_0x36840b(0x17d)][_0x36840b(0x1e5)][_0x36840b(0x269)](_0x3f1df2=>{const _0x27d393=_0x36840b;_0x3f1df2[_0x27d393(0x386)]===this['_unitID']&&this[_0x27d393(0x203)](_0x3f1df2);})):(this[_0x36840b(0x228)][_0x36840b(0xe2)](0x2),(_0x1ded2a=this[_0x36840b(0x279)])==null||_0x1ded2a[_0x36840b(0xc6)](),this[_0x36840b(0x279)]=null));}),this[_0x175a83(0xe4)](this[_0x175a83(0x225)][_0x175a83(0x2da)](()=>{const _0x292ac9=_0x175a83;var _0xb0cf29;(_0xb0cf29=this['_socket'])==null||_0xb0cf29[_0x292ac9(0x2c4)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x292ac9(0x1ab)]}});})));}get['sessionStatus'](){const _0x485f83=_0x4d174b;return this[_0x485f83(0x228)][_0x485f83(0x257)]();}[_0x4d174b(0x33c)](){const _0x3b715e=_0x4d174b;var _0x429d9a,_0x2b9889;return(_0x2b9889=(_0x429d9a=this[_0x3b715e(0x17d)])==null?void 0x0:_0x429d9a[_0x3b715e(0x2dc)])!=null?_0x2b9889:null;}[_0x4d174b(0x15b)](){const _0x539aba=_0x4d174b;super[_0x539aba(0x15b)](),this[_0x539aba(0xdd)]['next'](),this['dispose$']['complete']();}[_0x4d174b(0x1ef)](){const _0x2be7c5=_0x4d174b;var _0x425e5b,_0x390cd8;(_0x425e5b=this['_socket'])==null||_0x425e5b[_0x2be7c5(0x2c4)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}}),this[_0x2be7c5(0x1a6)]['complete'](),this[_0x2be7c5(0x228)][_0x2be7c5(0x25e)](),(_0x390cd8=this['_socket'])==null||_0x390cd8[_0x2be7c5(0x1ef)](),this[_0x2be7c5(0x15b)]();}[_0x4d174b(0x203)](_0x42454e){const _0x28a798=_0x4d174b;_0x42454e['cmd']===I[_0x28a798(0xdc)]?this[_0x28a798(0x1dd)](_0x42454e):_0x42454e[_0x28a798(0x36a)]===I[_0x28a798(0x364)]&&this[_0x28a798(0x376)](_0x42454e);}['_joinRoom'](_0x532766){const _0x541728=_0x4d174b;this['_sessionStatus$'][_0x541728(0xe2)](0x1),_0x532766[_0x541728(0x2c4)]({'cmd':I[_0x541728(0xdc)],'routeKey':this[_0x541728(0x1ab)],'routeType':'','data':{'rooms':[{'roomID':this[_0x541728(0x1ab)]}]}});}[_0x4d174b(0x1dd)](_0x4b28de){const _0x44b1a0=_0x4d174b;var _0x374462;if(_0x4b28de['code']===$t[_0x44b1a0(0x3aa)]){this[_0x44b1a0(0x22b)][_0x44b1a0(0x199)]({'type':_0x17d4c8['Warning'],'content':this[_0x44b1a0(0x13d)]['t']('session.room-full')}),this['_sessionStatus$'][_0x44b1a0(0xe2)](0x2);return;}this[_0x44b1a0(0x228)][_0x44b1a0(0xe2)](0x3);const _0x168f34=(_0x374462=_0x4b28de[_0x44b1a0(0x299)]['roomInfos'][this[_0x44b1a0(0x1ab)]])==null?void 0x0:_0x374462[_0x44b1a0(0x3dd)];_0x168f34&&_0x168f34[_0x44b1a0(0x1cb)](_0x55da04=>this['_memberService'][_0x44b1a0(0x3f2)](this[_0x44b1a0(0x1ab)],_0x55da04));}[_0x4d174b(0x376)](_0x3c19be){const _0x158cad=_0x4d174b;try{const _0x4df61a=_0x3c19be[_0x158cad(0x299)];switch(_0x4df61a[_0x158cad(0x10c)]){case _0x2c65dc['USERS_ENTER']:this[_0x158cad(0x345)](_0x4df61a),this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc[_0x158cad(0x3f4)]:this[_0x158cad(0x224)](_0x4df61a),this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc['CHANGESET_ACK']:this[_0x158cad(0x164)](),this['_event$'][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc[_0x158cad(0x212)]:this[_0x158cad(0x30a)][_0x158cad(0xba)](_0x158cad(0x3c5)+JSON[_0x158cad(0x296)](_0x4df61a)),this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc[_0x158cad(0x3a1)]:this[_0x158cad(0xf9)][_0x158cad(0xc4)](_0x4df61a['data']),this['_event$'][_0x158cad(0xe2)](_0x4df61a);break;default:this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);}}catch(_0xfc3b3e){this[_0x158cad(0x30a)][_0x158cad(0xba)](_0xfc3b3e,_0x3c19be);}}[_0x4d174b(0x345)](_0x29285b){const _0x3a066f=_0x4d174b;this[_0x3a066f(0x2d9)][_0x3a066f(0x3f2)](this[_0x3a066f(0x1ab)],_0x29285b[_0x3a066f(0x299)]);}[_0x4d174b(0x224)](_0x26a7bd){const _0x559521=_0x4d174b;this[_0x559521(0x2d9)]['removeMember'](this[_0x559521(0x1ab)],_0x26a7bd['data'][_0x559521(0x2dc)]);}async[_0x4d174b(0x2c4)](_0x1c64bc,_0x20b073){const _0x564cc7=_0x4d174b;if(this[_0x564cc7(0x19f)]!==0x3||!this[_0x564cc7(0x17d)])throw new Error(_0x564cc7(0x32a));try{_0x1c64bc[_0x564cc7(0x10c)]===_0x2c65dc[_0x564cc7(0x3e5)]&&this[_0x564cc7(0x1f3)](),this[_0x564cc7(0x17d)][_0x564cc7(0x2c4)]({'cmd':I[_0x564cc7(0x167)],'routeKey':_0x20b073,'routeType':'','data':_0x1c64bc});}catch(_0x55fe34){this['_logService'][_0x564cc7(0xba)](_0x55fe34);}}[_0x4d174b(0x1f3)](){const _0x313c48=_0x4d174b;var _0x385045;this[_0x313c48(0x1fd)]=window[_0x313c48(0x1d8)](()=>{const _0x507cc1=_0x313c48;this[_0x507cc1(0x1fd)]=null,this['_messageService'][_0x507cc1(0x199)]({'type':_0x17d4c8[_0x507cc1(0x355)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x385045=this['_configService'][_0x313c48(0x1f0)](Ts))!=null?_0x385045:Rs);}[_0x4d174b(0x164)](){const _0x390275=_0x4d174b;this[_0x390275(0x1fd)]&&(clearTimeout(this[_0x390275(0x1fd)]),this[_0x390275(0x1fd)]=null);}};pt=ws([M(0x2,_0x50a504),M(0x3,_0x1799ae),M(0x4,_0x1e8990),M(0x5,_0x15fd76),M(0x6,_0x5b671c(_0x35ebff)),M(0x7,_0x5b671c(te)),M(0x8,_0x5b671c(Ps))],pt);let ge=class extends _0x3d777f{constructor(_0x74857d,_0x2795c3,_0x11a8f4,_0x19e23e,_0x5562d0,_0xf43155){const _0x47cebd=_0x4d174b;super(),l(this,'_socket$',new _0x16da12(void 0x0)),l(this,'_sessions',new Map()),l(this,'_status$',new _0x16da12(0x0)),l(this,_0x47cebd(0x2d8),this[_0x47cebd(0x259)][_0x47cebd(0x3bd)]()),l(this,'_socketReady',!0x1),l(this,_0x47cebd(0x1f7)),l(this,'_timeoutTimer'),l(this,_0x47cebd(0x2e6)),l(this,_0x47cebd(0x26d),0x0),(this[_0x47cebd(0x36e)]=_0x74857d,this[_0x47cebd(0x13d)]=_0x2795c3,this[_0x47cebd(0x22b)]=_0x11a8f4,this['_logService']=_0x19e23e,this[_0x47cebd(0x229)]=_0x5562d0,this[_0x47cebd(0x2ca)]=_0xf43155);}get[_0x4d174b(0x17d)](){const _0x360763=_0x4d174b;return this['_socket$'][_0x360763(0x257)]();}['dispose'](){const _0x1df9cf=_0x4d174b;super[_0x1df9cf(0x15b)](),this[_0x1df9cf(0x2a7)][_0x1df9cf(0x1cb)](_0x5f33d7=>_0x5f33d7['dispose']()),this[_0x1df9cf(0x2a7)][_0x1df9cf(0x295)](),this[_0x1df9cf(0x259)]['complete']();}async[_0x4d174b(0x2eb)](_0x30125c){const _0x510fe2=_0x4d174b;if(this[_0x510fe2(0x2a7)]['has'](_0x30125c))return this[_0x510fe2(0x2a7)][_0x510fe2(0x135)](_0x30125c);this['_tryEnsureSocket']();const _0x4f4965=this[_0x510fe2(0x36e)][_0x510fe2(0x3d3)](pt,_0x30125c,this[_0x510fe2(0x39b)][_0x510fe2(0x3bd)]());return this[_0x510fe2(0x2a7)][_0x510fe2(0x34a)](_0x30125c,_0x4f4965),_0x4f4965;}[_0x4d174b(0x305)](_0x3f757f){const _0x38a3b5=_0x4d174b;var _0x2d6ab4;const _0x89e1c3=this[_0x38a3b5(0x2a7)][_0x38a3b5(0x135)](_0x3f757f);_0x89e1c3&&(this[_0x38a3b5(0x2a7)][_0x38a3b5(0x3e4)](_0x3f757f),_0x89e1c3['close']()),this[_0x38a3b5(0x2a7)][_0x38a3b5(0x262)]||(_0x2d6ab4=this[_0x38a3b5(0x17d)])==null||_0x2d6ab4[_0x38a3b5(0x1ef)]();}[_0x4d174b(0x32d)](){const _0x923d36=_0x4d174b;var _0x38d8a0;const _0x15d8d2=(_0x38d8a0=this['_configService']['getConfig'](nn))!=null?_0x38d8a0:rn;return this[_0x923d36(0x2ca)][_0x923d36(0x3b0)](_0x15d8d2);}[_0x4d174b(0x1e1)](){const _0xa35cc0=_0x4d174b;try{const _0x183fcf=this[_0xa35cc0(0x32d)]();if(_0x183fcf){const _0x50a938=_0x183fcf['send'];_0x183fcf['send']=_0x28b939=>(this[_0xa35cc0(0x322)](),_0x50a938[_0xa35cc0(0xfb)](_0x183fcf,[_0x28b939])),_0x183fcf[_0xa35cc0(0x1e5)][_0xa35cc0(0x269)](_0x1528f7=>this[_0xa35cc0(0x3de)](_0x183fcf,_0x1528f7)),_0x183fcf[_0xa35cc0(0xf4)][_0xa35cc0(0xbe)](_0x15818d(0x1))[_0xa35cc0(0x269)](_0x2a24a=>this[_0xa35cc0(0x30a)][_0xa35cc0(0xba)]('[CollaborationSessionService]:\x20socket\x20error',_0x2a24a)),_0x183fcf[_0xa35cc0(0x30c)][_0xa35cc0(0xbe)](_0x15818d(0x1))[_0xa35cc0(0x269)](()=>{const _0x566e8d=_0xa35cc0;this[_0x566e8d(0x324)](_0x183fcf);}),_0x183fcf[_0xa35cc0(0x25c)]['pipe'](_0x15818d(0x1))['subscribe'](_0x295482=>{const _0x25cfcd=_0xa35cc0;this[_0x25cfcd(0x30a)][_0x25cfcd(0x24d)]('[CollaborationSessionService]',_0x25cfcd(0xd1),_0x295482),this['_onConnectionFailed']();});}}catch(_0x3374c1){this[_0xa35cc0(0x30a)][_0xa35cc0(0xba)](_0x3374c1),this[_0xa35cc0(0x31e)]();}}[_0x4d174b(0x324)](_0x14d7e1){const _0x40f610=_0x4d174b;this[_0x40f610(0x30a)][_0x40f610(0x24d)](_0x40f610(0x2fc),_0x40f610(0x337)),_0x14d7e1[_0x40f610(0x2c4)]({'cmd':I['HELLO']}),this[_0x40f610(0x322)]();}[_0x4d174b(0x31e)](){const _0x1e9a37=_0x4d174b;var _0x105f05;this[_0x1e9a37(0x259)][_0x1e9a37(0xe2)](0x2),this['_socket$']['next'](null),this[_0x1e9a37(0x267)](),this[_0x1e9a37(0x121)](),this[_0x1e9a37(0x325)]=!0x1,this[_0x1e9a37(0x26d)]<((_0x105f05=this[_0x1e9a37(0x229)]['getConfig'](ln))!=null?_0x105f05:_n)?(this[_0x1e9a37(0x14a)](this[_0x1e9a37(0x26d)]),this[_0x1e9a37(0x26d)]+=0x1):this[_0x1e9a37(0x22b)]['show']({'type':_0x17d4c8['Error'],'content':this[_0x1e9a37(0x13d)]['t'](_0x1e9a37(0x331))});}[_0x4d174b(0x14a)](_0x50d9f0){const _0x47c95d=_0x4d174b;var _0x4ddb4d;const _0x3cf421=((_0x4ddb4d=this[_0x47c95d(0x229)]['getConfig'](cn))!=null?_0x4ddb4d:hn)*0x2**_0x50d9f0;this[_0x47c95d(0x22b)][_0x47c95d(0x199)]({'type':_0x17d4c8[_0x47c95d(0x14e)],'content':this[_0x47c95d(0x13d)]['t'](_0x47c95d(0x137))}),this[_0x47c95d(0x2e6)]=setTimeout(()=>{const _0x2c9e04=_0x47c95d;this[_0x2c9e04(0x1e1)](),clearTimeout(this[_0x2c9e04(0x2e6)]),this[_0x2c9e04(0x2e6)]=null;},_0x3cf421);}[_0x4d174b(0x322)](){const _0x51f18a=_0x4d174b;var _0x5de40f;this[_0x51f18a(0x121)](),this[_0x51f18a(0x1f7)]=setTimeout(()=>this[_0x51f18a(0x326)](),(_0x5de40f=this[_0x51f18a(0x229)]['getConfig'](on))!=null?_0x5de40f:an);}['_sendHeartbeat'](){const _0x2281a5=_0x4d174b;this['_socket'][_0x2281a5(0x2c4)]({'cmd':I[_0x2281a5(0x389)]}),this[_0x2281a5(0x363)]();}[_0x4d174b(0x363)](){const _0x250a72=_0x4d174b;var _0x89e0f8;this[_0x250a72(0x238)]=setTimeout(()=>this[_0x250a72(0x31e)](),(_0x89e0f8=this['_configService'][_0x250a72(0x1f0)](Ts))!=null?_0x89e0f8:Rs);}['_onMessage'](_0x4d1294,_0x2484c9){const _0x3c7248=_0x4d174b,{cmd:_0x25a2a3}=_0x2484c9;_0x25a2a3===I[_0x3c7248(0x3d2)]&&!this['_socketReady']&&(_0x4d1294[_0x3c7248(0x2dc)]=_0x2484c9[_0x3c7248(0x299)]['memberID'],this[_0x3c7248(0x39b)][_0x3c7248(0xe2)](_0x4d1294),this['_status$'][_0x3c7248(0xe2)](0x3),this['_socketReady']=!0x0),_0x25a2a3===I['HEARTBEAT']&&this[_0x3c7248(0x267)](),this[_0x3c7248(0x322)]();}[_0x4d174b(0x121)](){const _0x358e45=_0x4d174b;this[_0x358e45(0x1f7)]!=null&&(clearTimeout(this[_0x358e45(0x1f7)]),this[_0x358e45(0x1f7)]=null);}[_0x4d174b(0x267)](){const _0x9fd372=_0x4d174b;this[_0x9fd372(0x238)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x9fd372(0x238)]=null);}};ge=ws([M(0x0,_0x5b671c(_0x49e10e)),M(0x1,_0x5b671c(_0x35ebff)),M(0x2,_0x1e8990),M(0x3,_0x50a504),M(0x4,_0x15fd76),M(0x5,Ds)],ge);var Nn=Object['defineProperty'],Mn=Object[_0x4d174b(0x13f)],An=(_0x402665,_0x485fed,_0x2d5349,_0x4bcb17)=>{const _0x3b5b82=_0x4d174b;for(var _0x58c876=_0x4bcb17>0x1?void 0x0:_0x4bcb17?Mn(_0x485fed,_0x2d5349):_0x485fed,_0x53b45f=_0x402665[_0x3b5b82(0x2e1)]-0x1,_0x1cde2f;_0x53b45f>=0x0;_0x53b45f--)(_0x1cde2f=_0x402665[_0x53b45f])&&(_0x58c876=(_0x4bcb17?_0x1cde2f(_0x485fed,_0x2d5349,_0x58c876):_0x1cde2f(_0x58c876))||_0x58c876);return _0x4bcb17&&_0x58c876&&Nn(_0x485fed,_0x2d5349,_0x58c876),_0x58c876;},Ce=(_0x53aa70,_0x47d7a1)=>(_0x44bf9a,_0xdb6a2b)=>_0x47d7a1(_0x44bf9a,_0xdb6a2b,_0x53aa70);let O=class extends _0x3d777f{constructor(_0x202f46,_0x127acf,_0x24f30c,_0x31bc95,_0x26af17){const _0x369d52=_0x4d174b;super(),l(this,'_cachedData',new Map()),l(this,_0x369d52(0x3ee),new Map()),l(this,_0x369d52(0x34d),!0x1),(this[_0x369d52(0x229)]=_0x202f46,this[_0x369d52(0x17f)]=_0x127acf,this['_beforeCloseService']=_0x24f30c,this['_localeService']=_0x31bc95,this['_revisionService']=_0x26af17,this[_0x369d52(0x2ae)]());}[_0x4d174b(0x11c)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x4d42fb=_0x4d174b;this[_0x4d42fb(0x34d)]=!0x1;}[_0x4d174b(0x15b)](){const _0x338f20=_0x4d174b;this[_0x338f20(0x1d6)]()[_0x338f20(0x346)](()=>super[_0x338f20(0x15b)]());}async[_0x4d174b(0x2f9)](_0x572a08){const _0x2454ea=_0x4d174b;return this[_0x2454ea(0x34d)]?null:this[_0x2454ea(0x17f)]['getItem'](zt(_0x572a08));}async['saveOfflineData'](_0x4a093c,_0x3d8a46){const _0x519c8d=_0x4d174b;return!!this[_0x519c8d(0x17f)][_0x519c8d(0x3a6)](_0x4a093c,_0x3d8a46);}[_0x4d174b(0x25d)](_0x2e86f3,_0x4340f0,_0x47b4a5,_0x4f10af){const _0xd09bdf=_0x4d174b,_0x30ef61=this[_0xd09bdf(0x197)]['getCurrentRevForDocument'](_0x2e86f3);this['_cachedData'][_0xd09bdf(0x34a)](_0x2e86f3,{'unitID':_0x2e86f3,'type':_0x4340f0,'awaitingChangeset':_0x47b4a5,'mutations':_0x4f10af,'rev':_0x30ef61}),this[_0xd09bdf(0x3ee)][_0xd09bdf(0x37c)](_0x2e86f3)||this[_0xd09bdf(0xfa)](_0x2e86f3);}[_0x4d174b(0xfa)](_0x3d5f0d){const _0x548d35=_0x4d174b,_0x5ef522=this['_getSaveTimeout']();_0x5ef522===0x0?this[_0x548d35(0x1be)](_0x3d5f0d):this[_0x548d35(0x3ee)][_0x548d35(0x34a)](_0x3d5f0d,setTimeout(()=>this[_0x548d35(0x1be)](_0x3d5f0d),_0x5ef522));}[_0x4d174b(0x1e0)](){const _0x226206=_0x4d174b;var _0x5ec1e2;return(_0x5ec1e2=this[_0x226206(0x229)]['getConfig'](un))!=null?_0x5ec1e2:dn;}[_0x4d174b(0x1be)](_0x4ac7d4){const _0xaecec6=_0x4d174b,_0x73e08e=this[_0xaecec6(0x3ee)][_0xaecec6(0x135)](_0x4ac7d4);return _0x73e08e!==void 0x0&&window[_0xaecec6(0x175)](_0x73e08e),this[_0xaecec6(0x17f)][_0xaecec6(0x3a6)](zt(_0x4ac7d4),this[_0xaecec6(0x146)]['get'](_0x4ac7d4))['then'](()=>this[_0xaecec6(0x3ee)]['delete'](_0x4ac7d4));}async['exhaustSavingTask'](){const _0x479f0c=_0x4d174b,_0x1e38a7=[];this[_0x479f0c(0x3ee)][_0x479f0c(0x1cb)]((_0x5b864e,_0x185ccd)=>{const _0x42b3a6=_0x479f0c;window[_0x42b3a6(0x175)](_0x5b864e),_0x1e38a7[_0x42b3a6(0x328)](this[_0x42b3a6(0x1be)](_0x185ccd)[_0x42b3a6(0x346)](()=>{const _0x34212a=_0x42b3a6;this['_saveTaskMap'][_0x34212a(0x3e4)](_0x185ccd);}));}),await Promise[_0x479f0c(0x2e8)](_0x1e38a7);}['_setupBeforeClosingHandler'](){const _0x1cdfa6=_0x4d174b;this[_0x1cdfa6(0xe4)](this[_0x1cdfa6(0x225)][_0x1cdfa6(0x1ba)](()=>{const _0x26dac0=_0x1cdfa6;if(this[_0x26dac0(0x3ee)]['size'])return this[_0x26dac0(0x13d)]['t'](_0x26dac0(0xe9));}));}};O=An([Ce(0x0,_0x15fd76),Ce(0x1,_0x195f5f),Ce(0x2,_0x1799ae),Ce(0x3,_0x5b671c(_0x35ebff)),Ce(0x4,_0x5b671c(_0x5d7349))],O);function zt(_0x153465){const _0x3ec3c2=_0x4d174b;return _0x3ec3c2(0x323)+_0x153465;}const et=_0x20ae42(_0x4d174b(0x1f6));var Ns=(_0x5cddf6=>(_0x5cddf6[_0x5cddf6[_0x4d174b(0x2f0)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x5cddf6[_0x5cddf6[_0x4d174b(0x34f)]=0x1]='OTHER_CLIENTS_EDITING',_0x5cddf6))(Ns||{});const Zt=0x7530,Qt=_0x4d174b(0xd8);class yn extends _0x3d777f{constructor(){const _0x271b02=_0x4d174b;super(),l(this,'_id',_0x1053dd[_0x271b02(0x31d)]()),l(this,_0x271b02(0x188),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x271b02(0x30e),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x271b02(0x2a3),new Map()),this[_0x271b02(0x2a6)]();}[_0x4d174b(0x15b)](){const _0xd7ec4a=_0x4d174b;super[_0xd7ec4a(0x15b)](),this[_0xd7ec4a(0x3d4)][_0xd7ec4a(0x1cb)]((_0x42e30a,_0x4ef13f)=>this[_0xd7ec4a(0x13e)](_0x4ef13f)),this[_0xd7ec4a(0x30e)]&&window[_0xd7ec4a(0x254)](this[_0xd7ec4a(0x30e)]);}['getUnitStatus$'](_0x59f66b){const _0x607829=_0x4d174b;return this[_0x607829(0x317)](_0x59f66b)[_0x607829(0xbe)](_0x44a041());}[_0x4d174b(0x2be)](_0x4b3896){const _0x135a1b=_0x4d174b;this[_0x135a1b(0x188)][_0x135a1b(0x262)]===0x0&&this[_0x135a1b(0x263)](),this[_0x135a1b(0x188)]['add'](_0x4b3896),this['_send']({'type':0x0,'memberID':this[_0x135a1b(0x379)],'unitIDs':[_0x4b3896],'isForwarded':!0x1});}['disposeUnit'](_0x4a3c63){const _0x5e8928=_0x4d174b;this[_0x5e8928(0x188)][_0x5e8928(0x3e4)](_0x4a3c63),this['_selfUnitIDs']['size']===0x0&&this[_0x5e8928(0x30e)]&&window[_0x5e8928(0x254)](this[_0x5e8928(0x30e)]);}[_0x4d174b(0x2a6)](){const _0x3056cb=_0x4d174b;this['disposeWithMe'](_0x521fe6(_0x2a799c(window,_0x3056cb(0xf5))[_0x3056cb(0x269)](_0x2adf85=>{const _0x2bd001=_0x3056cb;if(_0x2adf85[_0x2bd001(0x1d7)]!==Qt||!_0x2adf85[_0x2bd001(0x179)])return;const _0x56a0e8=JSON[_0x2bd001(0x2bb)](_0x2adf85[_0x2bd001(0x179)]);this[_0x2bd001(0x358)](_0x56a0e8);}))),window[_0x3056cb(0x183)]('unload',()=>this[_0x3056cb(0x1f5)]({'type':0x1,'memberID':this[_0x3056cb(0x379)],'unitIDs':Array['from'](this[_0x3056cb(0x188)])}));}[_0x4d174b(0x358)](_0x1489af){const _0x2c6fc7=_0x4d174b;switch(_0x1489af[_0x2c6fc7(0x13a)]){case 0x0:this[_0x2c6fc7(0x22f)](_0x1489af);break;case 0x1:this[_0x2c6fc7(0x29c)](_0x1489af);break;case 0x2:this[_0x2c6fc7(0x309)](_0x1489af);break;}}[_0x4d174b(0x22f)](_0x523739){const _0x37d3df=_0x4d174b,{unitIDs:_0x2e1e6b,memberID:_0x51ba12,isForwarded:_0x53013a}=_0x523739;_0x2e1e6b['forEach'](_0x8224da=>{const _0x520166=_0x2798;if(!_0x53013a&&this['_unitOnClients'][_0x520166(0x37c)](_0x8224da)&&this['_ensureSubject'](_0x8224da)[_0x520166(0xe2)](0x1),!this[_0x520166(0x2aa)][_0x520166(0x37c)](_0x8224da)||!this['_unitOnClients'][_0x520166(0x135)](_0x8224da)['has'](_0x51ba12)){const _0x58ec33=this[_0x520166(0x2aa)][_0x520166(0x135)](_0x8224da)||new Set();_0x58ec33['add'](_0x51ba12),this[_0x520166(0x2aa)]['set'](_0x8224da,_0x58ec33),this['_scheduleClearOtherTimer'](_0x51ba12);}}),_0x53013a||this[_0x37d3df(0x1f5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4d174b(0xee)](_0x43e2e0){const _0xf398d2=_0x4d174b;this['_removeClearOtherTimer'](_0x43e2e0);const _0x988d93=window[_0xf398d2(0x1d8)](()=>{const _0x1410cf=_0xf398d2;this['_unitOnClients'][_0x1410cf(0x1cb)](_0x45474c=>{const _0x27c725=_0x1410cf;_0x45474c[_0x27c725(0x3e4)](_0x43e2e0);});},Zt*0x2);this[_0xf398d2(0x3d4)][_0xf398d2(0x34a)](_0x43e2e0,_0x988d93);}[_0x4d174b(0x13e)](_0x3ddc13){const _0x383a4d=_0x4d174b;if(this[_0x383a4d(0x3d4)][_0x383a4d(0x37c)](_0x3ddc13)){const _0x4ded6e=this[_0x383a4d(0x3d4)][_0x383a4d(0x135)](_0x3ddc13);_0x4ded6e&&window[_0x383a4d(0x175)](_0x4ded6e),this[_0x383a4d(0x3d4)][_0x383a4d(0x34a)](_0x3ddc13,null);}}['_handleLeaveEvent'](_0x31f23b){const _0x46457d=_0x4d174b,{memberID:_0x285718,unitIDs:_0x4690ad}=_0x31f23b;_0x4690ad[_0x46457d(0x1cb)](_0x4f7838=>{const _0x1a9070=_0x46457d;var _0x50ec2b;const _0x17b123=this[_0x1a9070(0x2aa)][_0x1a9070(0x135)](_0x4f7838);_0x17b123&&(_0x17b123[_0x1a9070(0x3e4)](_0x285718),(_0x50ec2b=this[_0x1a9070(0x317)](_0x4f7838))==null||_0x50ec2b[_0x1a9070(0xe2)](_0x17b123[_0x1a9070(0x262)]===0x0?0x0:0x1));}),this[_0x46457d(0x13e)](_0x285718);}[_0x4d174b(0x309)](_0x309d26){const _0x39776e=_0x4d174b;this[_0x39776e(0xee)](_0x309d26['memberID']);}[_0x4d174b(0x1f5)](_0x2de315){const _0x5ba895=_0x4d174b;localStorage[_0x5ba895(0x3a6)](Qt,JSON['stringify'](_0x2de315));}[_0x4d174b(0x263)](){const _0x16981b=_0x4d174b;this[_0x16981b(0x30e)]=window[_0x16981b(0xd4)](()=>{const _0x21d07c=_0x16981b;this[_0x21d07c(0x1f5)]({'type':0x2,'memberID':this[_0x21d07c(0x379)]});},Zt);}[_0x4d174b(0x317)](_0x5c7b58){const _0x5011f3=_0x4d174b;return this[_0x5011f3(0x2a3)]['has'](_0x5c7b58)||this[_0x5011f3(0x2a3)][_0x5011f3(0x34a)](_0x5c7b58,new _0x16da12(0x0)),this[_0x5011f3(0x2a3)][_0x5011f3(0x135)](_0x5c7b58);}}var Un=Object[_0x4d174b(0x1e3)],Ln=Object[_0x4d174b(0x13f)],$n=(_0x34314a,_0x1b0cf9,_0x14d78f,_0x122bb8)=>{const _0x4b9496=_0x4d174b;for(var _0x704294=_0x122bb8>0x1?void 0x0:_0x122bb8?Ln(_0x1b0cf9,_0x14d78f):_0x1b0cf9,_0x1dfbb8=_0x34314a[_0x4b9496(0x2e1)]-0x1,_0x32d554;_0x1dfbb8>=0x0;_0x1dfbb8--)(_0x32d554=_0x34314a[_0x1dfbb8])&&(_0x704294=(_0x122bb8?_0x32d554(_0x1b0cf9,_0x14d78f,_0x704294):_0x32d554(_0x704294))||_0x704294);return _0x122bb8&&_0x704294&&Un(_0x1b0cf9,_0x14d78f,_0x704294),_0x704294;},es=(_0x5d1b7a,_0x537f80)=>(_0x5c8e46,_0x12edaa)=>_0x537f80(_0x5c8e46,_0x12edaa,_0x5d1b7a);let Xe=class{constructor(_0x20d63f,_0x503673){const _0x460620=_0x4d174b;this[_0x460620(0x36e)]=_0x20d63f,this[_0x460620(0x3ca)]=_0x503673;}[_0x4d174b(0x18e)](_0x17d19b){const _0x536f3d=_0x4d174b;this[_0x536f3d(0x169)](_0x17d19b),this['_transformPreviousActiveRange'](_0x17d19b);}[_0x4d174b(0x1c7)](_0x54c03d){const _0x59d2b5=_0x4d174b,_0x68164b=this['_injector'][_0x59d2b5(0x135)](_0x34bf2b),{redoCache:_0x1cac8e}=_0x68164b[_0x59d2b5(0x1cf)]();if(_0x1cac8e[_0x59d2b5(0x2e1)]===0x0)return _0x54c03d;let _0x4a551b=_0x1053dd['deepClone'](_0x54c03d['mutations'][0x0]);for(let _0x2065e3=0x0;_0x2065e3<_0x1cac8e[_0x59d2b5(0x2e1)];_0x2065e3++){const _0x985b2f={'id':_0x59d2b5(0x108),'params':{..._0x1cac8e[_0x2065e3]}},_0x282b1f=this[_0x59d2b5(0x3ca)]['transformMutation'](_0x4a551b,_0x985b2f,!0x1);if(_0x8ecfd4(_0x282b1f))throw _0x282b1f[_0x59d2b5(0xba)];_0x4a551b=_0x282b1f['m1Prime'];}return{..._0x1053dd['deepClone'](_0x54c03d),'mutations':[_0x4a551b]};}[_0x4d174b(0x169)](_0x533368){const _0x44cd94=_0x4d174b,_0x32374c=this[_0x44cd94(0x36e)]['get'](_0x34bf2b),{undoCache:_0x19c0c1,redoCache:_0x54bf89}=_0x32374c['getUndoRedoMutationParamsCache']();if(_0x19c0c1[_0x44cd94(0x2e1)]===0x0||_0x54bf89[_0x44cd94(0x2e1)]===0x0)return;const _0x151cc1=[],_0x320640=[];let _0x91d96a=_0x1053dd[_0x44cd94(0xdb)](_0x533368[_0x44cd94(0x185)][0x0]),_0x562112=_0x1053dd[_0x44cd94(0xdb)](_0x533368[_0x44cd94(0x185)][0x0]);for(let _0x571319=_0x19c0c1[_0x44cd94(0x2e1)]-0x1;_0x571319>=0x0;_0x571319--){const _0x4c677c={'id':_0x44cd94(0x108),'params':{..._0x19c0c1[_0x571319]}},_0xcd297e={'id':_0x44cd94(0x108),'params':{..._0x54bf89[_0x571319]}},_0xe0fffa=this[_0x44cd94(0x3ca)][_0x44cd94(0x18c)](_0x91d96a,_0x4c677c,!0x1),_0x159d5b=this['_transformService'][_0x44cd94(0x18c)](_0x562112,_0xcd297e,!0x1);if(_0x8ecfd4(_0xe0fffa))throw _0xe0fffa['error'];if(_0x8ecfd4(_0x159d5b))throw _0x159d5b[_0x44cd94(0xba)];_0x151cc1[_0x44cd94(0x1da)](_0xe0fffa[_0x44cd94(0x160)][_0x44cd94(0x29f)]),_0x320640[_0x44cd94(0x1da)](_0x159d5b[_0x44cd94(0x160)][_0x44cd94(0x29f)]),_0x91d96a=_0xe0fffa[_0x44cd94(0x1db)],_0x562112=_0x159d5b[_0x44cd94(0x1db)];}_0x32374c[_0x44cd94(0x3ac)]({'undoCache':_0x151cc1,'redoCache':_0x320640});}[_0x4d174b(0x3cb)](_0x36f174){const _0x49c0ad=_0x4d174b,_0x29d09d=this[_0x49c0ad(0x36e)]['get'](_0x34bf2b),_0x1464f9=_0x29d09d[_0x49c0ad(0x3bb)]();if(_0x1464f9==null)return;const _0x56c95e=[{'id':_0x49c0ad(0x108),'params':{'unitId':_0x36f174[_0x49c0ad(0x1e2)],'actions':null,'textRanges':[_0x1464f9]}}],_0x283d26=this['_transformService'][_0x49c0ad(0x147)](_0x36f174,_0x56c95e);if(!_0x7aa6dd(_0x283d26))throw _0x283d26['error'];const _0xa622e8=_0x283d26[_0x49c0ad(0x160)][0x0][_0x49c0ad(0x29f)][_0x49c0ad(0x277)];Array['isArray'](_0xa622e8)&&_0xa622e8[_0x49c0ad(0x2e1)]&&_0x29d09d[_0x49c0ad(0x181)](_0xa622e8[0x0]);}};Xe=$n([es(0x0,_0x5b671c(_0x49e10e)),es(0x1,_0x174d0f)],Xe);var jn=Object[_0x4d174b(0x1e3)],xn=Object[_0x4d174b(0x13f)],Hn=(_0x10b896,_0x36d683,_0x3a7575,_0xe852b0)=>{const _0x2c1cab=_0x4d174b;for(var _0x14d4be=_0xe852b0>0x1?void 0x0:_0xe852b0?xn(_0x36d683,_0x3a7575):_0x36d683,_0x521ffb=_0x10b896[_0x2c1cab(0x2e1)]-0x1,_0x457d30;_0x521ffb>=0x0;_0x521ffb--)(_0x457d30=_0x10b896[_0x521ffb])&&(_0x14d4be=(_0xe852b0?_0x457d30(_0x36d683,_0x3a7575,_0x14d4be):_0x457d30(_0x14d4be))||_0x14d4be);return _0xe852b0&&_0x14d4be&&jn(_0x36d683,_0x3a7575,_0x14d4be),_0x14d4be;},ts=(_0x12daa4,_0x3a62f1)=>(_0x17cbc3,_0x4276ee)=>_0x3a62f1(_0x17cbc3,_0x4276ee,_0x12daa4);let Je=class{constructor(_0x15bb2a,_0x5d98f6){const _0x1819b2=_0x4d174b;this[_0x1819b2(0x36e)]=_0x15bb2a,this['_transformService']=_0x5d98f6;}[_0x4d174b(0x107)](_0x4ea180){const _0x549311=_0x4d174b;var _0xc319a9;const _0x123631=this[_0x549311(0x36e)][_0x549311(0x135)](_0x2684a6),_0x220143=(_0xc319a9=_0x123631[_0x549311(0x2ef)]())!=null?_0xc319a9:[],_0xae168c=_0x220143==null?void 0x0:_0x220143[_0x549311(0x288)](_0x1c3c28);if(_0xae168c[_0x549311(0x2e1)]===0x0)return;const _0x4d0e2a=[{'id':_0x549311(0x108),'params':{'unitId':_0x4ea180[_0x549311(0x1e2)],'actions':null,'textRanges':_0xae168c}}],_0x38ce34=this[_0x549311(0x3ca)][_0x549311(0x147)](_0x4ea180,_0x4d0e2a);if(!_0x7aa6dd(_0x38ce34))throw _0x38ce34['error'];const _0x4e9172=_0x38ce34[_0x549311(0x160)][0x0]['params'][_0x549311(0x277)];Array['isArray'](_0x4e9172)&&_0x4e9172[_0x549311(0x2e1)]&&_0x123631['replaceTextRanges'](_0x4e9172,!0x1);}};Je=Hn([ts(0x0,_0x5b671c(_0x49e10e)),ts(0x1,_0x174d0f)],Je);function Ms(_0x506c8f){let _0xb041e4='';for(const _0xbfdbd4 of _0x506c8f){const {startOffset:_0x1f7e8f,endOffset:_0xfd5431,isActive:_0x136f7f}=_0xbfdbd4;_0xb041e4['length']&&(_0xb041e4+=','),_0xb041e4+=_0x1f7e8f+':'+_0xfd5431+':'+(_0x136f7f?'1':'0');}return _0xb041e4;}function kn(_0x272659){const _0x460051=_0x4d174b,_0x7b8407=_0x272659[_0x460051(0x1c1)](','),_0x15d6bc=[];for(const _0x5261df of _0x7b8407){const [_0x3c5b96,_0x4c8251,_0x4dfe96]=_0x5261df[_0x460051(0x1c1)](':');_0x15d6bc['push']({'startOffset':Number(_0x3c5b96),'endOffset':Number(_0x4c8251),'collapsed':_0x3c5b96===_0x4c8251,'isActive':_0x4dfe96==='1'});}return _0x15d6bc[_0x460051(0x27e)](_0x164bcd=>_0x164bcd[_0x460051(0x209)])||(_0x15d6bc[0x0][_0x460051(0x209)]=!0x0),_0x15d6bc;}class jt extends _0x52c754{constructor(){const _0x421ce8=_0x4d174b;super(...arguments),l(this,_0x421ce8(0x287),new _0x16da12(null)),l(this,_0x421ce8(0x31b),this[_0x421ce8(0x287)][_0x421ce8(0x3bd)]());}[_0x4d174b(0x1a3)](_0x3a5ff8){const {unitID:_0x5d7e15,memberID:_0x1fe10a,textRanges:_0x402a5e}=_0x3a5ff8,_0x303109=Ms(_0x402a5e),_0x39af92={'unitID':_0x5d7e15,'memberID':_0x1fe10a,'selection':_0x303109};this['_collabCursorState$']['next'](_0x39af92);}}var Fn=Object[_0x4d174b(0x1e3)],Vn=Object[_0x4d174b(0x13f)],Bn=(_0x21a44e,_0x3f24e8,_0x11bff2,_0x25e8fb)=>{for(var _0x51fd04=_0x25e8fb>0x1?void 0x0:_0x25e8fb?Vn(_0x3f24e8,_0x11bff2):_0x3f24e8,_0x2ae3f2=_0x21a44e['length']-0x1,_0x1a2feb;_0x2ae3f2>=0x0;_0x2ae3f2--)(_0x1a2feb=_0x21a44e[_0x2ae3f2])&&(_0x51fd04=(_0x25e8fb?_0x1a2feb(_0x3f24e8,_0x11bff2,_0x51fd04):_0x1a2feb(_0x51fd04))||_0x51fd04);return _0x25e8fb&&_0x51fd04&&Fn(_0x3f24e8,_0x11bff2,_0x51fd04),_0x51fd04;},ss=(_0x406814,_0x404676)=>(_0x5ee0f6,_0x34400a)=>_0x404676(_0x5ee0f6,_0x34400a,_0x406814);function Wn(_0x316422){const _0x19a0d0=_0x4d174b,{unitID:_0x2083d8,mutations:_0xea64d5}=_0x316422;return{'unitId':_0x2083d8,'subUnitId':_0xea64d5[0x0]['params'][_0x19a0d0(0x373)]};}let qe=class{constructor(_0x5b430a,_0x307395){const _0x33f47d=_0x4d174b;this['_injector']=_0x5b430a,this[_0x33f47d(0x3ca)]=_0x307395;}[_0x4d174b(0x107)](_0x4a565e){const _0x4cb34f=_0x4d174b;var _0x1a86ed,_0x5ab3d0,_0x369339;const _0x46ae4c=this[_0x4cb34f(0x36e)]['get'](_0x298766),{unitId:_0xc9006e,subUnitId:_0x1c963a}=Wn(_0x4a565e),_0x2d2150=_0x46ae4c[_0x4cb34f(0x2d6)](_0xc9006e)[_0x4cb34f(0x2ef)]();if(_0x2d2150[_0x4cb34f(0x2e1)]===0x0||!_0xc9006e||!_0x1c963a)return;const _0x2fbbad=[{'id':_0x32ba42['id'],'params':{'unitId':_0xc9006e,'subUnitId':_0x1c963a,'selections':_0x1053dd[_0x4cb34f(0xdb)](_0x2d2150)}}],_0x103508=this['_transformService'][_0x4cb34f(0x147)](_0x4a565e,_0x2fbbad);if(!_0x7aa6dd(_0x103508))throw _0x103508[_0x4cb34f(0xba)];const _0x42295b=(_0x369339=(_0x5ab3d0=(_0x1a86ed=_0x103508[_0x4cb34f(0x160)][0x0])==null?void 0x0:_0x1a86ed['params'])==null?void 0x0:_0x5ab3d0[_0x4cb34f(0x3b5)])!=null?_0x369339:_0x2d2150;Array['isArray'](_0x42295b)&&_0x42295b[_0x4cb34f(0x2e1)]&&this[_0x4cb34f(0x36e)][_0x4cb34f(0x135)](_0x5bc562)[_0x4cb34f(0x365)](_0x32ba42['id'],{'unitId':_0xc9006e,'subUnitId':_0x1c963a,'selections':_0x42295b});}};qe=Bn([ss(0x0,_0x5b671c(_0x49e10e)),ss(0x1,_0x174d0f)],qe);const Gn=new Set([_0x3b1722['id']]);function is(_0x5cca24,_0x588961,_0x5675f2,_0x5542b6,_0xfc8d22){const _0xedc44d=_0x4d174b;var _0x49d6f6,_0x3b2acc,_0xbe88a2,_0x4afbfd;const _0x1dc6e6=[];for(const _0x5ea2de of _0x5cca24)if(Gn[_0xedc44d(0x37c)](_0x5ea2de['id'])){if(_0x1dc6e6['length']>0x0)break;_0x1dc6e6['push'](_0x5ea2de);break;}else _0x1dc6e6[_0xedc44d(0x328)](_0x5ea2de);const _0x56801f=(_0x3b2acc=(_0x49d6f6=_0xfc8d22['getCurrentUser']())==null?void 0x0:_0x49d6f6[_0xedc44d(0x251)])!=null?_0x3b2acc:'unknown',_0x4642d0=(_0x4afbfd=(_0xbe88a2=_0xfc8d22[_0xedc44d(0x13b)]())==null?void 0x0:_0xbe88a2[_0xedc44d(0x2dc)])!=null?_0x4afbfd:_0xedc44d(0x1f4);return{'changeset':{'unitID':_0x588961,'type':_0x4a7d91(_0x5675f2[_0xedc44d(0x1df)](_0x588961)),'baseRev':_0x5542b6[_0xedc44d(0x2af)](_0x588961),'revision':0x0,'userID':_0x56801f,'memberID':_0x4642d0,'mutations':_0x1dc6e6},'pendingMutations':_0x5cca24['slice'](_0x1dc6e6[_0xedc44d(0x2e1)])};}function Yn(_0x3aa71c,_0x5d9c4d,_0xeaa02f,_0x4360f6,_0x50116b){const _0x20307c=_0x4d174b;var _0x3f13bc,_0x291e37,_0x517364,_0x49df05;const _0x3848cf=[_0x3aa71c[_0x20307c(0x180)]((_0x3d10ba,_0x252c45)=>{const _0x508a5b=_0x20307c;var _0x1388f4;const {id:_0x3e5c2a}=_0x3d10ba,{id:_0x371760,type:_0x2824c7}=_0x252c45,_0x49b0b3=(_0x1388f4=_0x3d10ba['params'])!=null?_0x1388f4:{'actions':null},_0x577164=_0x252c45[_0x508a5b(0x29f)];if(_0x3e5c2a&&_0x3e5c2a!==_0x371760)throw new Error(_0x508a5b(0x390)+_0x3e5c2a+_0x508a5b(0x38c)+_0x371760+'.');return{..._0x3d10ba,'id':_0x371760,'type':_0x2824c7,'params':{'unitId':_0x577164[_0x508a5b(0x22a)],'textRanges':_0x577164[_0x508a5b(0x277)],'actions':_0xa7ba5e[_0x508a5b(0x3a5)](_0x49b0b3['actions'],_0x577164['actions'])}};},{})],_0x565183=(_0x291e37=(_0x3f13bc=_0x50116b['getCurrentUser']())==null?void 0x0:_0x3f13bc[_0x20307c(0x251)])!=null?_0x291e37:_0x20307c(0x1f4),_0x3b48a5=(_0x49df05=(_0x517364=_0x50116b[_0x20307c(0x13b)]())==null?void 0x0:_0x517364['memberID'])!=null?_0x49df05:_0x20307c(0x1f4);return{'changeset':{'unitID':_0x5d9c4d,'type':_0x4a7d91(_0xeaa02f['getUnitType'](_0x5d9c4d)),'baseRev':_0x4360f6[_0x20307c(0x2af)](_0x5d9c4d),'revision':0x0,'userID':_0x565183,'memberID':_0x3b48a5,'mutations':_0x3848cf},'pendingMutations':[]};}const Kn={'id':_0x4866a1['id'],'type':_0x4d4345[_0x4d174b(0x31a)],'params':{}};var Xn=Object['defineProperty'],Jn=Object[_0x4d174b(0x13f)],re=(_0x4ffed7,_0x45c5ca,_0xf725d6,_0x1bdff8)=>{const _0x3d3b0d=_0x4d174b;for(var _0x33cc85=_0x1bdff8>0x1?void 0x0:_0x1bdff8?Jn(_0x45c5ca,_0xf725d6):_0x45c5ca,_0x459003=_0x4ffed7[_0x3d3b0d(0x2e1)]-0x1,_0xe2d039;_0x459003>=0x0;_0x459003--)(_0xe2d039=_0x4ffed7[_0x459003])&&(_0x33cc85=(_0x1bdff8?_0xe2d039(_0x45c5ca,_0xf725d6,_0x33cc85):_0xe2d039(_0x33cc85))||_0x33cc85);return _0x1bdff8&&_0x33cc85&&Xn(_0x45c5ca,_0xf725d6,_0x33cc85),_0x33cc85;},f=(_0x5280bb,_0x4aa9ee)=>(_0x2ca321,_0x3ca1ab)=>_0x4aa9ee(_0x2ca321,_0x3ca1ab,_0x5280bb),P=(_0x39f728=>(_0x39f728['NOT_COLLAB']=_0x4d174b(0x149),_0x39f728['SYNCED']=_0x4d174b(0x3dc),_0x39f728[_0x4d174b(0x370)]='pending',_0x39f728[_0x4d174b(0x2c1)]=_0x4d174b(0x338),_0x39f728['AWAITING_WITH_PENDING']=_0x4d174b(0x21d),_0x39f728[_0x4d174b(0x189)]=_0x4d174b(0x10d),_0x39f728[_0x4d174b(0x10b)]=_0x4d174b(0x28f),_0x39f728['OFFLINE']=_0x4d174b(0x172),_0x39f728))(P||{});class oe{constructor(_0x1e45ef,_0x1da341,_0x1b49a8,_0x39b52f,_0x237bf9,_0x3446ca,_0x41c21a,_0x18813e,_0x2f8c6e){const _0x303df2=_0x4d174b;l(this,'_awaitingChangeset',null),l(this,'_pendingMutations',[]),(this[_0x303df2(0x1e2)]=_0x1e45ef,this['type']=_0x1da341,this['_handler']=_0x237bf9,this[_0x303df2(0x178)]=_0x3446ca,this['_undoRedoService']=_0x41c21a,this['_revisionService']=_0x18813e,this[_0x303df2(0xca)]=_0x2f8c6e,this[_0x303df2(0x182)]=_0x1b49a8,this['_pendingMutations']=_0x39b52f);}['_checkMissing'](_0x1562b9){const _0x3d0620=_0x4d174b,_0x29c91b=this[_0x3d0620(0x197)]['getCurrentRevForDocument'](this[_0x3d0620(0x1e2)]);return _0x1562b9[_0x3d0620(0x143)]>_0x29c91b+0x1?(this['_handler'][_0x3d0620(0x2c2)]({'from':_0x29c91b,'to':_0x1562b9['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x30ed23){const _0x9390e7=_0x4d174b;this[_0x9390e7(0xda)][_0x9390e7(0x2a9)](this[_0x9390e7(0x1e2)],_0x30ed23);}[_0x4d174b(0x3f5)](_0x51c743){const _0x3f311d=_0x4d174b;var _0x24ae21,_0x43b746;(_0x43b746=(_0x24ae21=this[_0x3f311d(0x2db)])[_0x3f311d(0x120)])==null||_0x43b746[_0x3f311d(0x37f)](_0x24ae21,_0x51c743);}[_0x4d174b(0x3d0)](_0x2270a5){const _0x2c5e18=_0x4d174b;var _0xc7b0d1,_0x5f30ae;return(_0x5f30ae=(_0xc7b0d1=this['_handler'])['onTransformIME'])==null?void 0x0:_0x5f30ae[_0x2c5e18(0x37f)](_0xc7b0d1,_0x2270a5);}['_transformRemoteChangesetByIMECache'](_0x1f6d36){const _0x3d1531=_0x4d174b;var _0x432dba,_0x414c97,_0x140647;return(_0x140647=(_0x414c97=(_0x432dba=this[_0x3d1531(0x2db)])[_0x3d1531(0x16b)])==null?void 0x0:_0x414c97[_0x3d1531(0x37f)](_0x432dba,_0x1f6d36))!=null?_0x140647:_0x1f6d36;}[_0x4d174b(0xd0)](_0xb7f3b9){const _0x3e467f=_0x4d174b;var _0x3146f5,_0x40ce74;if(this[_0x3e467f(0x13a)]===j['UNIVER_DOC']){const {unitID:_0x3db759,mutations:_0x5e0fd8,memberID:_0x1eec5a}=_0xb7f3b9,_0x497187=_0x5e0fd8[0x0][_0x3e467f(0x29f)][_0x3e467f(0x277)];Array[_0x3e467f(0x15e)](_0x497187)&&_0x497187[_0x3e467f(0x2e1)]>0x0&&((_0x40ce74=(_0x3146f5=this[_0x3e467f(0x2db)])[_0x3e467f(0x33b)])==null||_0x40ce74[_0x3e467f(0x37f)](_0x3146f5,{'unitID':_0x3db759,'memberID':_0x1eec5a,'textRanges':_0x497187}));}}[_0x4d174b(0x1f9)](){const _0x29e470=_0x4d174b;this[_0x29e470(0xca)][_0x29e470(0x25d)](this[_0x29e470(0x1e2)],this[_0x29e470(0x13a)],this[_0x29e470(0x182)],this[_0x29e470(0x261)]);}['_getCurrentRevision'](){const _0x236be1=_0x4d174b;return this[_0x236be1(0x197)][_0x236be1(0x2af)](this[_0x236be1(0x1e2)]);}[_0x4d174b(0xd2)](){const _0x1c2507=_0x4d174b;this[_0x1c2507(0x197)][_0x1c2507(0x3c6)](this[_0x1c2507(0x1e2)]);}[_0x4d174b(0x28d)](_0x1eaa31){const _0x4f2b7b=_0x4d174b;var _0x3a8089;const _0x30e0a4=this[_0x4f2b7b(0x23d)](_0x1eaa31),_0x31b83b=_0x37a637(_0x30e0a4[_0x4f2b7b(0x185)],this[_0x4f2b7b(0x178)],{'fromCollab':!0x0});if(!_0x31b83b[_0x4f2b7b(0x310)])throw _0x31b83b[_0x4f2b7b(0xba)]instanceof Error?_0x31b83b['error']:new Error((_0x3a8089=_0x31b83b[_0x4f2b7b(0xba)])!=null?_0x3a8089:_0x4f2b7b(0xef));this[_0x4f2b7b(0x3d0)](_0x30e0a4),this['_transformUndoredo'](_0x1eaa31),this[_0x4f2b7b(0x3f5)](_0x30e0a4),this[_0x4f2b7b(0xd0)](_0x30e0a4),this[_0x4f2b7b(0xd2)]();}}let Pe=class extends oe{constructor(_0x2758f7,_0x2fb46a,_0x48745d,_0x1b434e,_0x32675a,_0x11782d,_0x5df27a,_0x18555e,_0x3957fb,_0x55f11f){const _0x2c448b=_0x4d174b;super(_0x2758f7,_0x2fb46a,null,[],_0x48745d,_0x18555e,_0x5df27a,_0x1b434e,_0x32675a),l(this,'status',_0x2c448b(0x3dc)),(this[_0x2c448b(0x36e)]=_0x11782d,this['_logService']=_0x3957fb,this[_0x2c448b(0x3ca)]=_0x55f11f);}['appendMutation'](_0x2fafdd){const _0x145456=_0x4d174b,_0x32a40e=this[_0x145456(0x36e)][_0x145456(0x3d3)](W,this['unitID'],this[_0x145456(0x13a)],[_0x2fafdd],this[_0x145456(0x2db)]);return _0x32a40e[_0x145456(0x13c)](),_0x32a40e[_0x145456(0x1f9)](),_0x32a40e;}[_0x4d174b(0x10e)](_0x544f07){const _0x41b497=_0x4d174b;if(this[_0x41b497(0xc1)](_0x544f07))return this['_injector'][_0x41b497(0x3d3)](Y,this[_0x41b497(0x1e2)],this['type'],null,[],null,[_0x544f07],this[_0x41b497(0x2db)]);try{const _0x125bb7=this[_0x41b497(0x3ca)][_0x41b497(0x147)](_0x544f07,[Kn]);if(_0x7aa6dd(_0x125bb7)){const {c1Prime:_0x7fe45e}=_0x125bb7;return this[_0x41b497(0x28d)](_0x7fe45e),this;}throw _0x125bb7[_0x41b497(0xba)];}catch(_0x1ce068){return this[_0x41b497(0x30a)][_0x41b497(0xba)](_0x1ce068),this[_0x41b497(0x105)](!0x1);}}[_0x4d174b(0x105)](_0x410e74){const _0x5dd346=_0x4d174b;return this[_0x5dd346(0x36e)]['createInstance'](z,this[_0x5dd346(0x1e2)],this['type'],null,[],this[_0x5dd346(0x2db)],_0x410e74);}['onRemoteAck'](){const _0xb0682f=_0x4d174b;throw new Error(_0xb0682f(0x327));}[_0x4d174b(0x1c9)](){const _0x3e28c3=_0x4d174b;throw new Error(_0x3e28c3(0x2df));}[_0x4d174b(0x342)](){const _0x4218bc=_0x4d174b;return this[_0x4218bc(0x36e)][_0x4218bc(0x3d3)](Z,this[_0x4218bc(0x1e2)],this[_0x4218bc(0x13a)],null,[],this['_handler']);}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x186)](){const _0x1835c7=_0x4d174b;throw new Error(_0x1835c7(0xf3));}};Pe=re([f(0x3,_0x5b671c(_0x5d7349)),f(0x4,_0x5b671c(O)),f(0x5,_0x5b671c(_0x49e10e)),f(0x6,_0x5f56c1),f(0x7,_0x5bc562),f(0x8,_0x50a504),f(0x9,_0x174d0f)],Pe);let W=class extends oe{constructor(_0x1da304,_0x34c15e,_0x3dd954,_0x188ef7,_0x412f0b,_0x32ed0d,_0x42ea32,_0x2b8d16,_0x43e5ad,_0x211d84,_0x22c1fe,_0x5e12f2,_0x3e71b8,_0x1f3542){const _0x1185ce=_0x4d174b;super(_0x1da304,_0x34c15e,null,_0x3dd954,_0x188ef7,_0x211d84,_0x1f3542,_0x32ed0d,_0x42ea32),l(this,_0x1185ce(0x14b),_0x1185ce(0x243)),l(this,_0x1185ce(0x32e),null),l(this,_0x1185ce(0x1c2),null),(this['_injector']=_0x412f0b,this[_0x1185ce(0x2d9)]=_0x2b8d16,this['_logService']=_0x43e5ad,this[_0x1185ce(0x229)]=_0x22c1fe,this[_0x1185ce(0x3ca)]=_0x5e12f2,this['_univerInstanceService']=_0x3e71b8);}[_0x4d174b(0x3e9)](_0x59bfa2){const _0x574074=_0x4d174b;return this[_0x574074(0x261)][_0x574074(0x328)](_0x59bfa2),this[_0x574074(0x1f9)](),this;}[_0x4d174b(0x10e)](_0x1f9aeb){const _0x1f22c6=_0x4d174b;if(this[_0x1f22c6(0xc1)](_0x1f9aeb))return this[_0x1f22c6(0x138)](),this[_0x1f22c6(0x36e)][_0x1f22c6(0x3d3)](Y,this[_0x1f22c6(0x1e2)],this[_0x1f22c6(0x13a)],null,this['_pendingMutations'],null,[_0x1f9aeb],this[_0x1f22c6(0x2db)]);try{const _0x445fc0=this[_0x1f22c6(0x3ca)]['transformMutationsWithChangeset'](_0x1f9aeb,this[_0x1f22c6(0x261)]);if(_0x7aa6dd(_0x445fc0)){const {c1Prime:_0x5595f7,m2Prime:_0xd8effb}=_0x445fc0;this[_0x1f22c6(0x28d)](_0x5595f7);const _0x1735d7=this[_0x1f22c6(0x36e)][_0x1f22c6(0x3d3)](W,this[_0x1f22c6(0x1e2)],this['type'],_0xd8effb,this['_handler']);return this[_0x1f22c6(0x138)](),_0x1735d7['_schedule'](this[_0x1f22c6(0x32e)]?Math[_0x1f22c6(0x397)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x1f22c6(0xb9)]()),_0x1735d7;}throw _0x445fc0[_0x1f22c6(0xba)];}catch(_0x41b0b3){return this['_logService'][_0x1f22c6(0xba)](_0x41b0b3),this['_onConflict'](!0x1);}}[_0x4d174b(0x1a4)](){const _0x4a6a55=_0x4d174b;throw new Error(_0x4a6a55(0x2a8));}[_0x4d174b(0x1c9)](){const _0x1d753c=_0x4d174b;throw new Error(_0x1d753c(0x3d5));}[_0x4d174b(0x342)](){const _0x3ce1bc=_0x4d174b;return this[_0x3ce1bc(0x138)](),this[_0x3ce1bc(0x36e)][_0x3ce1bc(0x3d3)](Z,this[_0x3ce1bc(0x1e2)],this['type'],null,this[_0x3ce1bc(0x261)],this[_0x3ce1bc(0x2db)]);}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x13c)](_0x12e2b1){const _0x166a01=_0x4d174b;_0x12e2b1=_0x12e2b1!=null?_0x12e2b1:this[_0x166a01(0xb9)](),this['_scheduleTimestamp']=new Date()['getTime'](),this[_0x166a01(0x1c2)]=setTimeout(()=>{const _0x18f2eb=_0x166a01;this[_0x18f2eb(0x138)]();let _0xa963ce=null;switch(this[_0x18f2eb(0x13a)]){case j[_0x18f2eb(0x202)]:{_0xa963ce=is(this[_0x18f2eb(0x261)],this[_0x18f2eb(0x1e2)],this['_univerInstanceService'],this[_0x18f2eb(0x197)],this['_memberService']);break;}case j[_0x18f2eb(0x2b7)]:{this[_0x18f2eb(0x261)]['every'](_0x2f7702=>_0x2f7702['id']===_0x257904['id'])?_0xa963ce=Yn(this[_0x18f2eb(0x261)],this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x115)],this[_0x18f2eb(0x197)],this[_0x18f2eb(0x2d9)]):_0xa963ce=is(this[_0x18f2eb(0x261)],this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x115)],this[_0x18f2eb(0x197)],this['_memberService']);break;}default:throw new Error(_0x18f2eb(0x3db)+this['type']+_0x18f2eb(0x148));}const {changeset:_0x38d854,pendingMutations:_0x47cd76}=_0xa963ce;this[_0x18f2eb(0x2db)][_0x18f2eb(0xfd)](_0x38d854);const _0x49afc6=_0x47cd76['length']?this['_injector'][_0x18f2eb(0x3d3)](G,this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x13a)],_0x38d854,_0x47cd76,this[_0x18f2eb(0x2db)]):this[_0x18f2eb(0x36e)][_0x18f2eb(0x3d3)](q,this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x13a)],_0x38d854,this[_0x18f2eb(0x2db)]);_0x49afc6[_0x18f2eb(0x1f9)](),this[_0x18f2eb(0x2db)]['onStateChange'](this,_0x49afc6);},_0x12e2b1);}[_0x4d174b(0xb9)](){const _0x5cf2d8=_0x4d174b;var _0x3a5fb9;return(_0x3a5fb9=this['_configService'][_0x5cf2d8(0x1f0)](tn))!=null?_0x3a5fb9:sn;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0xf8af42=_0x4d174b;this[_0xf8af42(0x1c2)]!=null&&(clearTimeout(this[_0xf8af42(0x1c2)]),this[_0xf8af42(0x1c2)]=null);}[_0x4d174b(0x105)](_0x33882b){const _0x13c4a4=_0x4d174b;return this[_0x13c4a4(0x138)](),this[_0x13c4a4(0x36e)][_0x13c4a4(0x3d3)](z,this['unitID'],this[_0x13c4a4(0x13a)],null,this[_0x13c4a4(0x261)],this['_handler'],_0x33882b);}};W=re([f(0x4,_0x5b671c(_0x49e10e)),f(0x5,_0x5b671c(_0x5d7349)),f(0x6,_0x5b671c(O)),f(0x7,_0x5b671c(te)),f(0x8,_0x50a504),f(0x9,_0x5bc562),f(0xa,_0x15fd76),f(0xb,_0x174d0f),f(0xc,_0x2269ec),f(0xd,_0x5f56c1)],W);let q=class extends oe{constructor(_0x24e838,_0x573346,_0x370572,_0x40b694,_0x10ec20,_0x1579a7,_0x536b7d,_0x5a1696,_0x58973a,_0x161f3b,_0xc5261e){const _0x28f229=_0x4d174b;super(_0x24e838,_0x573346,_0x370572,[],_0x40b694,_0x5a1696,_0xc5261e,_0x1579a7,_0x536b7d),l(this,'status',_0x28f229(0x338)),(this[_0x28f229(0x36e)]=_0x10ec20,this[_0x28f229(0x30a)]=_0x58973a,this[_0x28f229(0x3ca)]=_0x161f3b);}[_0x4d174b(0x3e9)](_0x3533f0){const _0x1f9061=_0x4d174b,_0x438177=this[_0x1f9061(0x36e)]['createInstance'](G,this[_0x1f9061(0x1e2)],this[_0x1f9061(0x13a)],this[_0x1f9061(0x182)],[_0x3533f0],this[_0x1f9061(0x2db)]);return _0x438177[_0x1f9061(0x1f9)](),_0x438177;}[_0x4d174b(0x10e)](_0x1805fb){const _0x56cad1=_0x4d174b;if(this[_0x56cad1(0xc1)](_0x1805fb))return this[_0x56cad1(0x36e)][_0x56cad1(0x3d3)](Y,this[_0x56cad1(0x1e2)],this[_0x56cad1(0x13a)],this['_awaitingChangeset'],[],null,[_0x1805fb],this[_0x56cad1(0x2db)]);try{const _0x33659d=this[_0x56cad1(0x3ca)]['transformChangesets']([_0x1805fb],[this[_0x56cad1(0x182)]],!0x1);if(_0x5cb55b(_0x33659d)){const {c1Prime:_0x13d693,c2Prime:_0x49f3ac}=_0x33659d;this['_executeRemoteChangeset'](_0x13d693[0x0]),_0x49f3ac[0x0]['baseRev']=this[_0x56cad1(0x165)]();const _0xc582ab=this[_0x56cad1(0x36e)][_0x56cad1(0x3d3)](q,this[_0x56cad1(0x1e2)],this[_0x56cad1(0x13a)],_0x49f3ac[0x0],this[_0x56cad1(0x2db)]);return _0xc582ab['_updateLocalCache'](),_0xc582ab;}return this[_0x56cad1(0x105)](!0x1);}catch(_0x1dbbb3){return this[_0x56cad1(0x30a)][_0x56cad1(0xba)](_0x1dbbb3),this['_onConflict'](!0x1);}}[_0x4d174b(0x1a4)](_0x5698f0){const _0x5c772b=_0x4d174b,_0x2d8653=this[_0x5c772b(0x197)]['getCurrentRevForDocument'](this[_0x5c772b(0x1e2)]);if(_0x5698f0[_0x5c772b(0x143)]<_0x2d8653-0x1)return this;if(this[_0x5c772b(0xc1)](_0x5698f0))return this['_injector'][_0x5c772b(0x3d3)](Y,this[_0x5c772b(0x1e2)],this['type'],null,[],this[_0x5c772b(0x182)],[],this[_0x5c772b(0x2db)]);this['_incrementRevisionNumber']();const _0x31764b=this[_0x5c772b(0x36e)][_0x5c772b(0x3d3)](Pe,this['unitID'],this[_0x5c772b(0x13a)],this[_0x5c772b(0x2db)]);return _0x31764b[_0x5c772b(0x1f9)](),_0x31764b;}[_0x4d174b(0x1c9)](_0x5bc4fe){const _0x3e7ad0=_0x4d174b;return this[_0x3e7ad0(0x105)](!!(_0x5bc4fe!=null&&_0x5bc4fe[_0x3e7ad0(0x3e7)]));}['toggleOffline'](){const _0x251a6f=_0x4d174b;return this['_injector'][_0x251a6f(0x3d3)](Z,this[_0x251a6f(0x1e2)],this[_0x251a6f(0x13a)],this[_0x251a6f(0x182)],[],this[_0x251a6f(0x2db)]);}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x186)](){const _0x54f9f1=_0x4d174b;this[_0x54f9f1(0x2db)]['onSendChangeset'](this[_0x54f9f1(0x182)]);}['_onConflict'](_0x502d98){const _0x417bc9=_0x4d174b;return this[_0x417bc9(0x36e)]['createInstance'](z,this['unitID'],this[_0x417bc9(0x13a)],this[_0x417bc9(0x182)],[],this[_0x417bc9(0x2db)],_0x502d98);}};q=re([f(0x4,_0x5b671c(_0x49e10e)),f(0x5,_0x5b671c(_0x5d7349)),f(0x6,_0x5b671c(O)),f(0x7,_0x5bc562),f(0x8,_0x50a504),f(0x9,_0x174d0f),f(0xa,_0x5f56c1)],q);let G=class extends oe{constructor(_0x453611,_0x130b9b,_0x345415,_0x9a7308,_0x32ebbd,_0x549025,_0x470fcb,_0x24555f,_0xe7b36c,_0x34aebe,_0x28f137,_0x1255fe){const _0xc7f661=_0x4d174b;super(_0x453611,_0x130b9b,_0x345415,_0x9a7308,_0x32ebbd,_0xe7b36c,_0x1255fe,_0x470fcb,_0x24555f),l(this,_0xc7f661(0x14b),_0xc7f661(0x21d)),(this[_0xc7f661(0x36e)]=_0x549025,this['_logService']=_0x34aebe,this[_0xc7f661(0x3ca)]=_0x28f137);}[_0x4d174b(0x3e9)](_0x40920e){const _0x36a9f5=_0x4d174b;return this[_0x36a9f5(0x261)][_0x36a9f5(0x328)](_0x40920e),this;}['onRemoteChangeset'](_0x381311){const _0x24093e=_0x4d174b;if(this[_0x24093e(0xc1)](_0x381311))return this[_0x24093e(0x36e)][_0x24093e(0x3d3)](Y,this['unitID'],this[_0x24093e(0x13a)],this[_0x24093e(0x182)],this['_pendingMutations'],null,[_0x381311],this['_handler']);try{const _0x430618=this['_transformService']['transformChangesets']([_0x381311],[this[_0x24093e(0x182)]],!0x1);if(_0x5cb55b(_0x430618)){const {c1Prime:_0x8d94de,c2Prime:_0x3636b2}=_0x430618,_0x1c752f=this[_0x24093e(0x3ca)][_0x24093e(0x147)](_0x8d94de[0x0],this['_pendingMutations']);if(_0x7aa6dd(_0x1c752f)){const {c1Prime:_0x30d3ad,m2Prime:_0x52e3b2}=_0x1c752f;return this[_0x24093e(0x28d)](_0x30d3ad),_0x3636b2[0x0][_0x24093e(0x234)]=this[_0x24093e(0x165)](),this[_0x24093e(0x36e)][_0x24093e(0x3d3)](G,this[_0x24093e(0x1e2)],this[_0x24093e(0x13a)],_0x3636b2[0x0],_0x52e3b2,this['_handler']);}throw _0x1c752f[_0x24093e(0xba)];}throw _0x430618[_0x24093e(0xba)];}catch(_0x18be07){return this[_0x24093e(0x30a)][_0x24093e(0xba)](_0x18be07),this[_0x24093e(0x105)](!0x1);}}[_0x4d174b(0x1a4)](_0x3a1c8d){const _0x495c76=_0x4d174b;if(this[_0x495c76(0xc1)](_0x3a1c8d))return this[_0x495c76(0x36e)]['createInstance'](Y,this[_0x495c76(0x1e2)],this['type'],null,this[_0x495c76(0x261)],this[_0x495c76(0x182)],[],this[_0x495c76(0x2db)]);this['_incrementRevisionNumber']();const _0x222574=this[_0x495c76(0x36e)][_0x495c76(0x3d3)](W,this['unitID'],this[_0x495c76(0x13a)],this[_0x495c76(0x261)],this[_0x495c76(0x2db)]);return _0x222574[_0x495c76(0x13c)](),_0x222574[_0x495c76(0x1f9)](),_0x222574;}[_0x4d174b(0x1c9)](_0x4a832a){const _0x154767=_0x4d174b;return this[_0x154767(0x105)](!!(_0x4a832a!=null&&_0x4a832a['isPermissionRej']));}[_0x4d174b(0x342)](){const _0x305da3=_0x4d174b;return this[_0x305da3(0x36e)][_0x305da3(0x3d3)](Z,this['unitID'],this['type'],this[_0x305da3(0x182)],this['_pendingMutations'],this[_0x305da3(0x2db)]);}['toggleOnline'](){return this;}[_0x4d174b(0x186)](){const _0x437b13=_0x4d174b;this[_0x437b13(0x2db)][_0x437b13(0xfd)](this['_awaitingChangeset']);}[_0x4d174b(0x105)](_0x142f30){const _0x4bf735=_0x4d174b;return this['_injector'][_0x4bf735(0x3d3)](z,this[_0x4bf735(0x1e2)],this['type'],null,this[_0x4bf735(0x261)],this[_0x4bf735(0x2db)],_0x142f30);}};G=re([f(0x5,_0x5b671c(_0x49e10e)),f(0x6,_0x5b671c(_0x5d7349)),f(0x7,_0x5b671c(O)),f(0x8,_0x5bc562),f(0x9,_0x50a504),f(0xa,_0x174d0f),f(0xb,_0x5f56c1)],G);let z=class extends oe{constructor(_0x337fe2,_0x4252e6,_0x335b16,_0x4e9c2a,_0x5bdd2d,_0x7bb888=!0x1,_0x1b1620,_0x36fd21,_0x35a6e9,_0x50ed28,_0x34dccb,_0x4edf45,_0x466d8c){const _0x5d1d17=_0x4d174b;super(_0x337fe2,_0x4252e6,_0x335b16,_0x4e9c2a,_0x5bdd2d,_0x36fd21,_0x35a6e9,_0x34dccb,_0x50ed28),l(this,'status','conflict'),(this[_0x5d1d17(0x349)]=_0x7bb888,this[_0x5d1d17(0x126)]=_0x1b1620,this[_0x5d1d17(0x13d)]=_0x4edf45,this[_0x5d1d17(0x1b5)]=_0x466d8c,this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x5d1d17(0x1a7)]());}[_0x4d174b(0x3e9)](){return this;}[_0x4d174b(0x10e)](){return this;}[_0x4d174b(0x1a4)](){return this;}[_0x4d174b(0x1c9)](){return this;}[_0x4d174b(0x342)](){return this;}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x186)](){const _0x4a6507=_0x4d174b;throw new Error(_0x4a6507(0x2e3));}[_0x4d174b(0x3a3)](){const _0x3d42a3=_0x4d174b;this[_0x3d42a3(0xca)][_0x3d42a3(0x25d)](this[_0x3d42a3(0x1e2)],this[_0x3d42a3(0x13a)],null,[]);}[_0x4d174b(0x29e)](){const _0x8579e8=_0x4d174b;this[_0x8579e8(0x349)]?this[_0x8579e8(0x1b5)]['show']({'title':this[_0x8579e8(0x13d)]['t']('permission.title'),'content':this[_0x8579e8(0x13d)]['t'](_0x8579e8(0x393)),'type':_0x8579e8(0xba),'duration':0x0}):this['_notificationService']['show']({'title':this['_localeService']['t'](_0x8579e8(0x1ed)),'content':this[_0x8579e8(0x13d)]['t'](_0x8579e8(0x371)),'type':_0x8579e8(0xba),'duration':0x0});}[_0x4d174b(0x1a7)](){const _0x391387=_0x4d174b;this[_0x391387(0x126)]['updatePermissionPoint'](new _0x56d014(this[_0x391387(0x1e2)])['id'],!0x1);}};z=re([f(0x6,_0x5b671c(_0xf5bbc5)),f(0x7,_0x5bc562),f(0x8,_0x5f56c1),f(0x9,_0x5b671c(O)),f(0xa,_0x5b671c(_0x5d7349)),f(0xb,_0x5b671c(_0x35ebff)),f(0xc,_0x13435c)],z);let Z=class extends oe{constructor(_0x45dfd8,_0x2fd6c6,_0x340d3b,_0x2959c5,_0x452c98,_0x5678fb,_0x58fc4d,_0x4cfab0,_0x1ad2ab,_0x203994){const _0x398016=_0x4d174b;super(_0x45dfd8,_0x2fd6c6,_0x340d3b,_0x2959c5,_0x452c98,_0x1ad2ab,_0x203994,_0x58fc4d,_0x4cfab0),l(this,'status','offline'),this[_0x398016(0x36e)]=_0x5678fb;}[_0x4d174b(0x3e9)](_0xcb35f7){const _0x3bdc53=_0x4d174b;return this[_0x3bdc53(0x261)][_0x3bdc53(0x328)](_0xcb35f7),this[_0x3bdc53(0x1f9)](),this;}[_0x4d174b(0x10e)](_0x292dc4){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x536c48=_0x4d174b;throw new Error(_0x536c48(0x32c));}[_0x4d174b(0x1c9)](){const _0x2a238d=_0x4d174b;throw new Error(_0x2a238d(0x1b1));}[_0x4d174b(0x342)](){return this;}[_0x4d174b(0x3b4)](){const _0x3799e3=_0x4d174b,{_injector:_0x5b1400,_pendingMutations:_0x206ac5,_awaitingChangeset:_0xa2418e,unitID:_0x54b9a5,_handler:_0x7406ae,type:_0x3c8318}=this,_0x2e062e=As(_0x5b1400,_0x54b9a5,_0x3c8318,_0xa2418e,_0x206ac5,_0x7406ae);return _0x2e062e instanceof W?_0x2e062e['_schedule']():(_0x2e062e instanceof G||_0x2e062e instanceof q)&&_0x2e062e[_0x3799e3(0x186)](),_0x2e062e;}[_0x4d174b(0x186)](){const _0x1a2d16=_0x4d174b;throw new Error(_0x1a2d16(0x3a4));}};Z=re([f(0x5,_0x5b671c(_0x49e10e)),f(0x6,_0x5b671c(_0x5d7349)),f(0x7,_0x5b671c(O)),f(0x8,_0x5bc562),f(0x9,_0x5f56c1)],Z);let Y=class extends oe{constructor(_0x11ab1b,_0x351d95,_0x20e16a,_0x14649e,_0x475b53,_0x5b713f,_0x50890e,_0x5575cc,_0x2e85fa,_0x286733,_0x3d0d1e,_0x2a8506,_0xa0c213,_0x1c08c5){const _0x5909dd=_0x4d174b;super(_0x11ab1b,_0x351d95,_0x20e16a,_0x14649e,_0x50890e,_0x2a8506,_0xa0c213,_0x2e85fa,_0x286733),l(this,'status',_0x5909dd(0x10d)),(this[_0x5909dd(0x196)]=_0x475b53,this['_queuedRemoteChangesets']=_0x5b713f,this[_0x5909dd(0x36e)]=_0x5575cc,this[_0x5909dd(0x30a)]=_0x3d0d1e,this[_0x5909dd(0x3ca)]=_0x1c08c5);}[_0x4d174b(0x131)](_0x16193b){const _0x135cef=_0x4d174b;try{const _0x2701e7=[..._0x16193b,...this[_0x135cef(0x26b)]],_0x211dbd=[this[_0x135cef(0x182)]||this[_0x135cef(0x196)]][_0x135cef(0x236)](_0x43e074=>!!_0x43e074);let _0x10dc06,_0x2c5283;if(_0x211dbd['length']){const _0x268191=this[_0x135cef(0x3ca)][_0x135cef(0x1a0)](_0x2701e7,_0x211dbd,!0x1);if(!_0x5cb55b(_0x268191))throw _0x268191[_0x135cef(0xba)];_0x10dc06=_0x268191['c1Prime'],_0x2c5283=_0x268191['c2Prime'];}else _0x10dc06=_0x2701e7,_0x2c5283=[];let _0x230890=this['_pendingMutations'];_0x10dc06[_0x135cef(0x1cb)](_0x3a54af=>{const _0x1150d0=_0x135cef;let _0x304a96;if(_0x230890[_0x1150d0(0x2e1)]){const _0x4b0e2b=this[_0x1150d0(0x3ca)][_0x1150d0(0x147)](_0x3a54af,_0x230890);if(!_0x7aa6dd(_0x4b0e2b))throw _0x4b0e2b['error'];_0x304a96=_0x4b0e2b[_0x1150d0(0x2e4)],_0x230890=_0x4b0e2b[_0x1150d0(0x160)];}else _0x304a96=_0x3a54af;this[_0x1150d0(0x28d)](_0x304a96);}),this['_acknowledgedAwaitingChangeset']&&this[_0x135cef(0xd2)](),this[_0x135cef(0x182)]&&_0x2c5283[_0x135cef(0x2e1)]&&(_0x2c5283[0x0][_0x135cef(0x234)]=this['_getCurrentRevision']());let _0x50fbfe;if(this[_0x135cef(0x182)]&&_0x230890[_0x135cef(0x2e1)]!==0x0)_0x50fbfe=this[_0x135cef(0x36e)][_0x135cef(0x3d3)](G,this['unitID'],this['type'],_0x2c5283[0x0],_0x230890,this[_0x135cef(0x2db)]);else{if(this[_0x135cef(0x182)]&&_0x230890[_0x135cef(0x2e1)]===0x0)_0x2c5283[0x0][_0x135cef(0x234)]=this[_0x135cef(0x165)](),_0x50fbfe=this[_0x135cef(0x36e)][_0x135cef(0x3d3)](q,this['unitID'],this[_0x135cef(0x13a)],_0x2c5283[0x0],this['_handler']);else{if(_0x230890[_0x135cef(0x2e1)]!==0x0){const _0x47b4ae=this[_0x135cef(0x36e)]['createInstance'](W,this[_0x135cef(0x1e2)],this[_0x135cef(0x13a)],_0x230890,this[_0x135cef(0x2db)]);_0x47b4ae['_schedule'](),_0x50fbfe=_0x47b4ae;}else _0x50fbfe=this[_0x135cef(0x36e)][_0x135cef(0x3d3)](Pe,this['unitID'],this[_0x135cef(0x13a)],this[_0x135cef(0x2db)]);}}return _0x50fbfe['_updateLocalCache'](),_0x50fbfe;}catch(_0x24d2b7){return this[_0x135cef(0x30a)][_0x135cef(0xba)](_0x135cef(0x1bb),'failed\x20to\x20apply\x20missed\x20changesets!',_0x24d2b7),this[_0x135cef(0x36e)]['createInstance'](z,this[_0x135cef(0x1e2)],this[_0x135cef(0x13a)],this[_0x135cef(0x182)],this[_0x135cef(0x261)],this[_0x135cef(0x2db)],!0x1);}}[_0x4d174b(0x186)](){const _0x4400f7=_0x4d174b;throw new Error(_0x4400f7(0x222));}[_0x4d174b(0x3e9)](_0x486a88){const _0xe25d8c=_0x4d174b;return this[_0xe25d8c(0x261)]['push'](_0x486a88),this;}[_0x4d174b(0x10e)](_0xa47d13){const _0x573fe0=_0x4d174b;return this[_0x573fe0(0x26b)][_0x573fe0(0x328)](_0xa47d13),this;}['onRemoteAck'](_0x45fc9c){const _0x48efdb=_0x4d174b;if(this['_awaitingChangeset'])return this[_0x48efdb(0x196)]=this['_awaitingChangeset'],this[_0x48efdb(0x182)]=null,this;throw new Error(_0x48efdb(0x18f));}[_0x4d174b(0x1c9)](_0x5a281d){const _0x48c708=_0x4d174b;return this[_0x48c708(0x105)](!!(_0x5a281d!=null&&_0x5a281d[_0x48c708(0x3e7)]));}[_0x4d174b(0x342)](){const _0x5de17c=_0x4d174b;return this[_0x5de17c(0x36e)][_0x5de17c(0x3d3)](Z,this[_0x5de17c(0x1e2)],this['type'],this[_0x5de17c(0x182)],this[_0x5de17c(0x261)],this[_0x5de17c(0x2db)]);}[_0x4d174b(0x3b4)](){return this;}['_onConflict'](_0x40939b){const _0x26b4de=_0x4d174b;return this[_0x26b4de(0x36e)][_0x26b4de(0x3d3)](z,this[_0x26b4de(0x1e2)],this[_0x26b4de(0x13a)],this[_0x26b4de(0x182)],this['_pendingMutations'],this[_0x26b4de(0x2db)],_0x40939b);}};Y=re([f(0x7,_0x5b671c(_0x49e10e)),f(0x8,_0x5b671c(_0x5d7349)),f(0x9,_0x5b671c(O)),f(0xa,_0x50a504),f(0xb,_0x5bc562),f(0xc,_0x5f56c1),f(0xd,_0x174d0f)],Y);function As(_0x153886,_0x5ce1f1,_0x335038,_0x4f74a9,_0x1ba5a0,_0x476202){const _0x3db3e1=_0x4d174b;return _0x4f74a9&&_0x1ba5a0[_0x3db3e1(0x2e1)]?_0x153886[_0x3db3e1(0x3d3)](G,_0x5ce1f1,_0x335038,_0x4f74a9,_0x1ba5a0,_0x476202):_0x4f74a9?_0x153886[_0x3db3e1(0x3d3)](q,_0x5ce1f1,_0x335038,_0x4f74a9,_0x476202):_0x1ba5a0[_0x3db3e1(0x2e1)]?_0x153886[_0x3db3e1(0x3d3)](W,_0x5ce1f1,_0x335038,_0x1ba5a0,_0x476202):_0x153886[_0x3db3e1(0x3d3)](Pe,_0x5ce1f1,_0x335038,_0x476202);}var qn=Object[_0x4d174b(0x1e3)],zn=Object[_0x4d174b(0x13f)],tt=(_0x2407d7,_0x18db0a,_0x1f005a,_0xec2cbf)=>{for(var _0x4d9a3d=_0xec2cbf>0x1?void 0x0:_0xec2cbf?zn(_0x18db0a,_0x1f005a):_0x18db0a,_0x4d1736=_0x2407d7['length']-0x1,_0x1f0c0c;_0x4d1736>=0x0;_0x4d1736--)(_0x1f0c0c=_0x2407d7[_0x4d1736])&&(_0x4d9a3d=(_0xec2cbf?_0x1f0c0c(_0x18db0a,_0x1f005a,_0x4d9a3d):_0x1f0c0c(_0x4d9a3d))||_0x4d9a3d);return _0xec2cbf&&_0x4d9a3d&&qn(_0x18db0a,_0x1f005a,_0x4d9a3d),_0x4d9a3d;},v=(_0x1955e1,_0x2de62c)=>(_0x11efab,_0x3f7448)=>_0x2de62c(_0x11efab,_0x3f7448,_0x1955e1);let Oe=class extends _0x52c754{constructor(_0x31e9a5,_0x5edadd,_0x1d180a){const _0x2ff23c=_0x4d174b;super(),l(this,_0x2ff23c(0x35a),new Map()),l(this,_0x2ff23c(0x205),new _0x49ef1a()),(this[_0x2ff23c(0x36e)]=_0x31e9a5,this[_0x2ff23c(0x369)]=_0x5edadd,this[_0x2ff23c(0x115)]=_0x1d180a,this[_0x2ff23c(0x2a6)]());}[_0x4d174b(0x15b)](){const _0x25f4f4=_0x4d174b;super['dispose'](),this[_0x25f4f4(0x35a)]['forEach'](_0x2944f3=>_0x2944f3[_0x25f4f4(0x15b)]()),this['_entities'][_0x25f4f4(0x295)]();}[_0x4d174b(0x1c0)](_0x544515){const _0x42196a=_0x4d174b;var _0x12cee8;return(_0x12cee8=this[_0x42196a(0x35a)][_0x42196a(0x135)](_0x544515))!=null?_0x12cee8:null;}[_0x4d174b(0x2ed)](_0x5e6a2c){const _0x191de6=_0x4d174b,_0x37e95c=this[_0x191de6(0x1c0)](_0x5e6a2c);return _0x37e95c?_0x1e95ea(_0x37e95c):this[_0x191de6(0x205)][_0x191de6(0xbe)](_0x22c59c(_0x3814b9=>_0x3814b9['unitID']===_0x5e6a2c));}[_0x4d174b(0x2a6)](){const _0x369207=_0x4d174b;this['_univerInstanceService'][_0x369207(0x174)](_0x1851b1[_0x369207(0x202)])[_0x369207(0xbe)](_0xf80876(this['dispose$']),_0x4fe2db(0x10))['subscribe'](async _0x231cf9=>{const _0x1889a7=_0x369207,_0x20e375=_0x231cf9[_0x1889a7(0x150)](),_0x22ea9a=await this['_startCollaboration'](_0x20e375,j[_0x1889a7(0x202)]);this['_entities'][_0x1889a7(0x34a)](_0x20e375,_0x22ea9a);}),this[_0x369207(0x115)][_0x369207(0x174)](_0x1851b1[_0x369207(0x2b7)])[_0x369207(0xbe)](_0xf80876(this[_0x369207(0xdd)]),_0x4fe2db(0x10))[_0x369207(0xbe)](_0x22c59c(_0x52723f=>!_0x52723f['getUnitId']()[_0x369207(0x16d)]('__')))[_0x369207(0x269)](async _0x4bdb16=>{const _0x3b934f=_0x369207,_0x1f9ace=_0x4bdb16[_0x3b934f(0x150)](),_0x32dbb8=await this[_0x3b934f(0x158)](_0x1f9ace,j[_0x3b934f(0x2b7)]);this[_0x3b934f(0x35a)]['set'](_0x1f9ace,_0x32dbb8);}),_0x4e0a85(this[_0x369207(0x115)][_0x369207(0x286)](_0x1851b1['UNIVER_SHEET']),this[_0x369207(0x115)]['getTypeOfUnitDisposed$'](_0x1851b1[_0x369207(0x2b7)]))[_0x369207(0xbe)](_0xf80876(this[_0x369207(0xdd)]))[_0x369207(0x269)](_0x46731f=>{const _0x2474fd=_0x369207,_0x3ea938=_0x46731f[_0x2474fd(0x150)](),_0x182bd1=this['_entities'][_0x2474fd(0x135)](_0x3ea938);_0x182bd1&&(_0x182bd1['dispose'](),this[_0x2474fd(0x35a)][_0x2474fd(0x3e4)](_0x3ea938));});}async[_0x4d174b(0x158)](_0xa7e9ae,_0x1e7a2e){const _0x21270b=_0x4d174b,_0x5600a9=await this[_0x21270b(0x369)][_0x21270b(0x2eb)](_0xa7e9ae),_0x40a762=this[_0x21270b(0x36e)]['createInstance'](this[_0x21270b(0x3a9)](_0x1e7a2e),_0xa7e9ae,_0x1e7a2e,_0x5600a9);return await _0x40a762[_0x21270b(0x11f)](),this[_0x21270b(0x205)][_0x21270b(0xe2)](_0x40a762),_0x40a762;}[_0x4d174b(0x3a9)](_0x36d032){const _0x2946aa=_0x4d174b;switch(_0x36d032){case j['UNIVER_DOC']:return It;case j[_0x2946aa(0x202)]:return Et;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x36d032);}}};Oe=tt([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],Oe),v(0x0,_0x5b671c(_0x49e10e)),v(0x1,_0x5b671c(ge)),v(0x2,_0x2269ec)],Oe);let ze=class extends _0x52c754{constructor(_0x299006,_0xce6e5f,_0x207ee5,_0x4189c3,_0x15d751,_0x35b285,_0xf3c9d4,_0x3c4d80,_0x5d7b40,_0xcf6dd,_0xc306f0,_0x5c8da3,_0x16a50e){const _0x2190e2=_0x4d174b;super(),l(this,'_state$',new _0x16da12(null)),l(this,_0x2190e2(0x332),this[_0x2190e2(0x2f2)][_0x2190e2(0x3bd)]()),l(this,'_state'),l(this,'_collaborationPaused',!0x1),l(this,'status$',this[_0x2190e2(0x332)][_0x2190e2(0xbe)](_0x120a2e(_0x302888=>_0x302888?_0x302888[_0x2190e2(0x14b)]:P[_0x2190e2(0x1fa)]),_0x473611(0x1))),l(this,_0x2190e2(0x2f6),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x2190e2(0x1e2)]=_0x299006,this[_0x2190e2(0x2c6)]=_0xce6e5f,this['_session']=_0x207ee5,this[_0x2190e2(0x36e)]=_0x4189c3,this[_0x2190e2(0xca)]=_0x15d751,this[_0x2190e2(0x1b7)]=_0x35b285,this[_0x2190e2(0x13d)]=_0xf3c9d4,this[_0x2190e2(0x197)]=_0x3c4d80,this[_0x2190e2(0x30a)]=_0x5d7b40,this['_commandService']=_0xcf6dd,this[_0x2190e2(0x22b)]=_0xc306f0,this['_permissionService']=_0x5c8da3,this[_0x2190e2(0xe6)]=_0x16a50e);}get[_0x4d174b(0x387)](){const _0x1bd0d2=_0x4d174b;return this[_0x1bd0d2(0x20d)];}async[_0x4d174b(0x11f)](){const _0x5ea170=_0x4d174b;if(this[_0x5ea170(0x387)])throw new Error(_0x5ea170(0x367));await this[_0x5ea170(0x2a6)]();}['pauseCollaboration'](){const _0xcc38d5=_0x4d174b;return this[_0xcc38d5(0x33a)]=!0x0,_0x521fe6(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x170471){const _0x4eddf8=_0x4d174b;this['_state']=_0x170471,this[_0x4eddf8(0x2f2)][_0x4eddf8(0xe2)](_0x170471);}async[_0x4d174b(0x2a6)](){const _0x59fc51=_0x4d174b;var _0x4972a5;return this[_0x59fc51(0x23a)](await this[_0x59fc51(0x16c)]()),this['_singleActiveUnitService']&&((_0x4972a5=this[_0x59fc51(0xe6)])==null||_0x4972a5[_0x59fc51(0x2be)](this[_0x59fc51(0x1e2)]),this[_0x59fc51(0xe4)](_0x521fe6(this[_0x59fc51(0xe6)][_0x59fc51(0x21e)](this[_0x59fc51(0x1e2)])['subscribe'](_0x4e489f=>{const _0x3c8326=_0x59fc51;this[_0x3c8326(0x30a)]['debug'](_0x3c8326(0x278),_0x3c8326(0x252),_0x4e489f),_0x4e489f===Ns[_0x3c8326(0x34f)]?(this['_messageService'][_0x3c8326(0x199)]({'content':this['_localeService']['t'](_0x3c8326(0xdf)),'type':_0x17d4c8[_0x3c8326(0x14e)]}),this[_0x3c8326(0x126)][_0x3c8326(0x3c9)](new _0x56d014(this['unitID'])['id'],!0x1)):this[_0x3c8326(0x126)][_0x3c8326(0x3c9)](new _0x56d014(this[_0x3c8326(0x1e2)])['id'],!0x0);})))),this[_0x59fc51(0xe4)](_0x521fe6(this['_session'][_0x59fc51(0xc2)][_0x59fc51(0x269)](_0x9cd4ca=>{const _0x3f464f=_0x59fc51;_0x9cd4ca===de[_0x3f464f(0x2cb)]?this[_0x3f464f(0x3a7)]():_0x9cd4ca===de[_0x3f464f(0x1fa)]&&this[_0x3f464f(0x1a1)]();}))),this['disposeWithMe'](_0x521fe6(this['_session'][_0x59fc51(0x1a9)][_0x59fc51(0x269)](_0x438e23=>{const _0x433581=_0x59fc51;try{switch(_0x438e23['eventID']){case _0x2c65dc[_0x433581(0x3e5)]:{this['_onRemoteChangeset'](_0xf28be5(_0x438e23[_0x433581(0x299)]));break;}case _0x2c65dc[_0x433581(0x37a)]:{this[_0x433581(0x19d)](_0x438e23[_0x433581(0x299)]);break;}case _0x2c65dc[_0x433581(0x17c)]:{this[_0x433581(0x129)]();break;}case _0x2c65dc[_0x433581(0x26e)]:{this['_onFetchMissResult'](_0x438e23[_0x433581(0x299)]['changesets'][_0x433581(0x288)](_0x4c7cb0=>_0xf28be5(_0x4c7cb0)));break;}case _0x2c65dc[_0x433581(0x270)]:this[_0x433581(0x129)]({'isPermissionRej':!0x0});}}catch(_0x2b5124){throw console[_0x433581(0xba)](_0x433581(0xe0),_0x2b5124),_0x2b5124;}}))),this[_0x59fc51(0x20d)];}[_0x4d174b(0x391)](){this['_transitionLocked']=!0x1;}[_0x4d174b(0x2d4)](){const _0x4bd3e9=_0x4d174b;if(this[_0x4bd3e9(0x2f6)])throw new Error(_0x4bd3e9(0x250));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x37fbe5){const _0x5a4acd=_0x4d174b;this[_0x5a4acd(0x2d4)](),this[_0x5a4acd(0x23a)](this['_state'][_0x5a4acd(0x3e9)](_0x37fbe5)),this[_0x5a4acd(0x391)]();}[_0x4d174b(0x27f)](_0x5f0983){const _0x1f6b16=_0x4d174b;if(!(_0x5f0983[_0x1f6b16(0x143)]<=this['_revisionService'][_0x1f6b16(0x2af)](this['unitID']))){if(this['_collaborationPaused']){this[_0x1f6b16(0x2f7)][_0x1f6b16(0x328)](_0x5f0983);return;}this[_0x1f6b16(0xc0)](_0x5f0983);}}[_0x4d174b(0x237)](){const _0x44bca1=_0x4d174b;this[_0x44bca1(0x2f7)][_0x44bca1(0x1cb)](_0x401b18=>this[_0x44bca1(0xc0)](_0x401b18)),this[_0x44bca1(0x2f7)]=[];}[_0x4d174b(0xc0)](_0x2e3cad){const _0x4b3d02=_0x4d174b,_0xa460bb=this[_0x4b3d02(0x1b7)]['interceptor'][_0x4b3d02(0x190)](this[_0x4b3d02(0x1b7)][_0x4b3d02(0x2dd)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x2e3cad['mutations'],null)||_0x2e3cad[_0x4b3d02(0x185)],_0x4641a5={..._0x2e3cad,'mutations':_0xa460bb};this[_0x4b3d02(0x2d4)](),this['_updateState'](this['_state'][_0x4b3d02(0x10e)](_0x4641a5)),this[_0x4b3d02(0x391)]();}[_0x4d174b(0x19d)](_0x44152b){const _0x57cf26=_0x4d174b;this['_lockTransition'](),this['_updateState'](this['_state'][_0x57cf26(0x1a4)](_0x44152b)),this[_0x57cf26(0x391)]();}[_0x4d174b(0x129)](_0x10fc94){const _0x45f6c3=_0x4d174b;this[_0x45f6c3(0x2d4)](),this['_updateState'](this[_0x45f6c3(0x20d)][_0x45f6c3(0x1c9)](_0x10fc94)),this[_0x45f6c3(0x391)]();}[_0x4d174b(0x1fc)](_0x45850e){const _0x18b20f=_0x4d174b;if(!(this[_0x18b20f(0x20d)]instanceof Y))throw new TypeError(_0x18b20f(0x103));const _0x1e4abe=_0x45850e[_0x18b20f(0x288)](_0x1ae8f5=>{const _0x4ebe3f=_0x18b20f,_0x25d10b=this[_0x4ebe3f(0x1b7)][_0x4ebe3f(0x2dd)][_0x4ebe3f(0x190)](this[_0x4ebe3f(0x1b7)][_0x4ebe3f(0x2dd)]['getInterceptPoints']()[_0x4ebe3f(0x184)])(_0x1ae8f5[_0x4ebe3f(0x185)],null)||_0x1ae8f5['mutations'];return{..._0x1ae8f5,'mutations':_0x25d10b};});this['_lockTransition'](),this[_0x18b20f(0x23a)](this['_state'][_0x18b20f(0x131)](_0x1e4abe)),this[_0x18b20f(0x391)]();}['_toggleOffline'](){const _0x3169b5=_0x4d174b;this[_0x3169b5(0x2d4)](),this['_updateState'](this['_state']['toggleOffline']()),this[_0x3169b5(0x391)]();}[_0x4d174b(0x3a7)](){const _0x3769c4=_0x4d174b;this['_lockTransition'](),this['_updateState'](this[_0x3769c4(0x20d)]['toggleOnline']()),this[_0x3769c4(0x391)]();}async['_createInitialState'](){return new Promise(_0x2d00fd=>{const _0x5efe6c=_0x2798;this['_session'][_0x5efe6c(0xc2)]['pipe'](_0x15818d(0x1))[_0x5efe6c(0x269)](async _0x2fb6a7=>{const _0x5c56e0=_0x5efe6c;_0x2d00fd(await this[_0x5c56e0(0x156)](_0x2fb6a7===de[_0x5c56e0(0x2cb)]));});});}[_0x4d174b(0x21f)](){const _0x592863=_0x4d174b,_0x6fd294=this[_0x592863(0x1e2)];return{'onStateChange':(_0x3d4af2,_0x1ea1da)=>{const _0x33e937=_0x592863;if(_0x3d4af2!==this[_0x33e937(0x20d)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x3d4af2[_0x33e937(0x14b)]+_0x33e937(0x136)+_0x1ea1da['status']+_0x33e937(0xd5)+this['_state'][_0x33e937(0x14b)]);this['_updateState'](_0x1ea1da);},'onSendChangeset':_0x234513=>{const _0x380b85=_0x592863,_0x253e31={'eventID':_0x2c65dc[_0x380b85(0x2c7)],'data':{'unitID':_0x234513[_0x380b85(0x1e2)],'unitType':this['_type'],'changeset':_0x234513,'memberID':this[_0x380b85(0x35f)][_0x380b85(0x33c)]()}};this['_session'][_0x380b85(0x2c4)](_0x253e31,this[_0x380b85(0x1e2)]);},'onMissingChangesets':({from:_0x181784,to:_0x377bd2})=>{const _0xba767a=_0x592863;this[_0xba767a(0x30a)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x181784+'\x20to\x20'+_0x377bd2);const _0x2b6e38={'eventID':_0x2c65dc[_0xba767a(0x133)],'data':{'unitID':_0x6fd294,'unitType':this[_0xba767a(0x2c6)],'from':_0x181784,'to':_0x377bd2}};this[_0xba767a(0x35f)][_0xba767a(0x2c4)](_0x2b6e38,this[_0xba767a(0x1e2)]);}};}async[_0x4d174b(0x156)](_0x5bc1fd){const _0x17a469=_0x4d174b;var _0x5cb81d,_0x3de4eb;const _0x5ed90f=await this[_0x17a469(0xca)][_0x17a469(0x2f9)](this[_0x17a469(0x1e2)]),_0xff483d=(_0x5cb81d=_0x5ed90f==null?void 0x0:_0x5ed90f['mutations'])!=null?_0x5cb81d:[],_0x5bb90d=(_0x3de4eb=_0x5ed90f==null?void 0x0:_0x5ed90f['awaitingChangeset'])!=null?_0x3de4eb:null,_0x3afbeb=this['unitID'];try{this['_replayCachedMutations'](_0x5bb90d,_0xff483d);}catch(_0x5a8cf0){this['_logService'][_0x17a469(0xba)](_0x5a8cf0);}const _0x14482c=this[_0x17a469(0x21f)]();if(_0x5bc1fd){const _0x110ef9=As(this['_injector'],_0x3afbeb,this[_0x17a469(0x2c6)],_0x5bb90d,_0xff483d,_0x14482c);return _0x110ef9 instanceof W?_0x110ef9[_0x17a469(0x13c)]():(_0x110ef9 instanceof G||_0x110ef9 instanceof q)&&_0x110ef9[_0x17a469(0x186)](),_0x110ef9;}return this['_injector']['createInstance'](Z,_0x3afbeb,this[_0x17a469(0x2c6)],_0x5bb90d,_0xff483d,_0x14482c);}['_replayCachedMutations'](_0x32451f,_0x5f49b2){const _0x57b35f=_0x4d174b;var _0x4dc607,_0x281cea;const _0x4a1021=this[_0x57b35f(0x1b7)][_0x57b35f(0x2dd)][_0x57b35f(0x190)](this[_0x57b35f(0x1b7)][_0x57b35f(0x2dd)][_0x57b35f(0x3c4)]()['COMPRESS_MUTATION_APPLY']);(_0x4dc607=_0x4a1021((_0x32451f==null?void 0x0:_0x32451f[_0x57b35f(0x185)])||[],null))==null||_0x4dc607[_0x57b35f(0x1cb)](_0x4a66b6=>this[_0x57b35f(0x178)][_0x57b35f(0x365)](_0x4a66b6['id'],_0x4a66b6[_0x57b35f(0x29f)])),(_0x281cea=_0x4a1021(_0x5f49b2||[],null))==null||_0x281cea[_0x57b35f(0x1cb)](_0x339480=>this[_0x57b35f(0x178)]['executeCommand'](_0x339480['id'],_0x339480[_0x57b35f(0x29f)]));}};ze=tt([v(0x3,_0x5b671c(_0x49e10e)),v(0x4,_0x5b671c(O)),v(0x5,_0x5b671c(_0x2224de)),v(0x6,_0x5b671c(_0x35ebff)),v(0x7,_0x5b671c(_0x5d7349)),v(0x8,_0x50a504),v(0x9,_0x5bc562),v(0xa,_0x1e8990),v(0xb,_0xf5bbc5),v(0xc,_0x466fab(et))],ze);let It=class extends ze{constructor(_0xb3555,_0x5386c5,_0x2b0e46,_0x44f9bf,_0x111316,_0x3d5030,_0x1063ea,_0x37bcf6,_0x411428,_0x9a4d4,_0x541059,_0x1f96c7,_0x414ec7,_0x382362,_0x1f97a0,_0x193709,_0x15fb6f){const _0x3c5dbf=_0x4d174b;super(_0xb3555,_0x5386c5,_0x2b0e46,_0x44f9bf,_0x111316,_0x3d5030,_0x1063ea,_0x37bcf6,_0x414ec7,_0x382362,_0x1f97a0,_0x193709,_0x15fb6f),this[_0x3c5dbf(0x1e2)]=_0xb3555,this['type']=_0x5386c5,this[_0x3c5dbf(0x1cd)]=_0x2b0e46,this[_0x3c5dbf(0xf2)]=_0x411428,this[_0x3c5dbf(0x1ae)]=_0x9a4d4,this[_0x3c5dbf(0xf1)]=_0x541059,this[_0x3c5dbf(0x2a5)]=_0x1f96c7;}[_0x4d174b(0x21f)](){const _0x5931b4=_0x4d174b,_0x2749ac=super['_createHandler']();return _0x2749ac['onTransformIME']=_0x1c0797=>this[_0x5931b4(0x1ae)][_0x5931b4(0x18e)](_0x1c0797),_0x2749ac[_0x5931b4(0x120)]=_0x23b65e=>this[_0x5931b4(0xf1)][_0x5931b4(0x107)](_0x23b65e),_0x2749ac[_0x5931b4(0x33b)]=_0x52bd3e=>this[_0x5931b4(0x2a5)][_0x5931b4(0x1a3)](_0x52bd3e),_0x2749ac['onTransformRemoteChangesetByIMECache']=_0x3ba237=>this[_0x5931b4(0x1ae)][_0x5931b4(0x1c7)](_0x3ba237),_0x2749ac;}async['_init'](){const _0x255671=_0x4d174b,_0xddfd87=await super[_0x255671(0x2a6)]();return this['disposeWithMe'](this['_commandService'][_0x255671(0x1e4)]((_0x48da41,_0x23fa20)=>{const _0x326490=_0x255671;if(_0x48da41['type']!==_0x4d4345[_0x326490(0x31a)]||_0x23fa20!=null&&_0x23fa20['fromCollab']||_0x23fa20!=null&&_0x23fa20[_0x326490(0x3b2)])return;const _0x449d8c=_0x48da41['params'];if((_0x449d8c==null?void 0x0:_0x449d8c[_0x326490(0x22a)])!==this[_0x326490(0x1e2)])return;let _0xa6db38=_0x48da41;if(_0xa6db38['id']===_0x257904['id']){const _0x7528b3=_0xa6db38[_0x326490(0x29f)];_0xa6db38={'id':_0x257904['id'],'type':_0x4d4345[_0x326490(0x31a)],'params':{'unitId':_0x7528b3[_0x326490(0x22a)],'actions':_0x7528b3[_0x326490(0x3da)],'textRanges':null}};}const _0x55cf89=this[_0x326490(0x1b7)][_0x326490(0x2dd)][_0x326490(0x190)](this[_0x326490(0x1b7)][_0x326490(0x2dd)][_0x326490(0x3c4)]()[_0x326490(0x2f8)])([_0xa6db38],null)||[_0xa6db38];this['_onLocalMutation'](_0x55cf89[0x0]);})),_0xddfd87;}};It=tt([v(0x3,_0x5b671c(_0x49e10e)),v(0x4,_0x5b671c(O)),v(0x5,_0x5b671c(_0x2224de)),v(0x6,_0x5b671c(_0x35ebff)),v(0x7,_0x5b671c(_0x5d7349)),v(0x8,_0x5b671c(_0x199abc)),v(0x9,_0x5b671c(Xe)),v(0xa,_0x5b671c(Je)),v(0xb,_0x5b671c(jt)),v(0xc,_0x50a504),v(0xd,_0x5bc562),v(0xe,_0x1e8990),v(0xf,_0xf5bbc5),v(0x10,_0x466fab(et))],It);let Et=class extends ze{constructor(_0x1223b4,_0x73e8de,_0x3526fc,_0x45e25b,_0x4cd143,_0x4c0ef8,_0x4faa8f,_0x36e028,_0x319502,_0x1b349f,_0xa005cb,_0x246d05,_0x2ab3e0,_0x2ec912){const _0x429a6f=_0x4d174b;super(_0x1223b4,_0x73e8de,_0x3526fc,_0x45e25b,_0x4cd143,_0x4c0ef8,_0x4faa8f,_0x36e028,_0x1b349f,_0xa005cb,_0x246d05,_0x2ab3e0,_0x2ec912),this[_0x429a6f(0x1e2)]=_0x1223b4,this[_0x429a6f(0x13a)]=_0x73e8de,this['session']=_0x3526fc,this[_0x429a6f(0x3e1)]=_0x319502;}[_0x4d174b(0x21f)](){const _0x30eba1=_0x4d174b,_0xe04672=super[_0x30eba1(0x21f)]();return _0xe04672[_0x30eba1(0x120)]=_0x3df2cf=>this[_0x30eba1(0x3e1)][_0x30eba1(0x107)](_0x3df2cf),_0xe04672;}async[_0x4d174b(0x2a6)](){const _0x299a5d=_0x4d174b,_0x5d40ee=await super[_0x299a5d(0x2a6)]();return this['disposeWithMe'](this[_0x299a5d(0x178)][_0x299a5d(0x1e4)]((_0x5d9261,_0x9b5d8f)=>{const _0x42606e=_0x299a5d;if(_0x5d9261[_0x42606e(0x13a)]!==_0x4d4345['MUTATION']||_0x9b5d8f!=null&&_0x9b5d8f[_0x42606e(0x242)]||_0x9b5d8f!=null&&_0x9b5d8f[_0x42606e(0x3b2)])return;const _0x47de62=_0x5d9261[_0x42606e(0x29f)];if((_0x47de62==null?void 0x0:_0x47de62[_0x42606e(0x22a)])!==this[_0x42606e(0x1e2)])return;const _0x1c3ffe=_0x5d9261,_0x12564d=this[_0x42606e(0x1b7)][_0x42606e(0x2dd)]['fetchThroughInterceptors'](this[_0x42606e(0x1b7)]['interceptor'][_0x42606e(0x3c4)]()[_0x42606e(0x2f8)])([_0x1c3ffe],null)||[_0x1c3ffe];this[_0x42606e(0x1b3)](_0x12564d[0x0]);})),_0x5d40ee;}};Et=tt([v(0x3,_0x5b671c(_0x49e10e)),v(0x4,_0x5b671c(O)),v(0x5,_0x5b671c(_0x2224de)),v(0x6,_0x5b671c(_0x35ebff)),v(0x7,_0x5b671c(_0x5d7349)),v(0x8,_0x5b671c(qe)),v(0x9,_0x50a504),v(0xa,_0x5bc562),v(0xb,_0x1e8990),v(0xc,_0xf5bbc5),v(0xd,_0x466fab(et))],Et);const ns=[_0x4d174b(0x27d),_0x4d174b(0x334),_0x4d174b(0x289),_0x4d174b(0x313),_0x4d174b(0x29b),_0x4d174b(0x335)];class xt extends _0x3d777f{constructor(){const _0x2d33a1=_0x4d174b;super(...arguments),l(this,_0x2d33a1(0x1c6),new Map()),l(this,'_colorIndex',0x0);}[_0x4d174b(0x1d5)](_0x2c7a5b){const _0x47ace6=_0x4d174b;if(this[_0x47ace6(0x1c6)][_0x47ace6(0x37c)](_0x2c7a5b))return this[_0x47ace6(0x1c6)][_0x47ace6(0x135)](_0x2c7a5b);const _0x1a9763=ns[this[_0x47ace6(0x320)]];return this[_0x47ace6(0x320)]=(this[_0x47ace6(0x320)]+0x1)%ns[_0x47ace6(0x2e1)],this[_0x47ace6(0x1c6)][_0x47ace6(0x34a)](_0x2c7a5b,_0x1a9763),_0x1a9763;}}var Zn=Object[_0x4d174b(0x1e3)],Qn=Object['getOwnPropertyDescriptor'],er=(_0x28445c,_0x18b0d0,_0x9406c,_0xad7db3)=>{for(var _0xb2fcc1=_0xad7db3>0x1?void 0x0:_0xad7db3?Qn(_0x18b0d0,_0x9406c):_0x18b0d0,_0xe21dd5=_0x28445c['length']-0x1,_0x47a9f3;_0xe21dd5>=0x0;_0xe21dd5--)(_0x47a9f3=_0x28445c[_0xe21dd5])&&(_0xb2fcc1=(_0xad7db3?_0x47a9f3(_0x18b0d0,_0x9406c,_0xb2fcc1):_0x47a9f3(_0xb2fcc1))||_0xb2fcc1);return _0xad7db3&&_0xb2fcc1&&Zn(_0x18b0d0,_0x9406c,_0xb2fcc1),_0xb2fcc1;},ce=(_0x1487f1,_0x2fe3ed)=>(_0x52877e,_0x2162f2)=>_0x2fe3ed(_0x52877e,_0x2162f2,_0x1487f1);const tr=0x12c,sr=0x64,ir=()=>{let _0x3dc8cb=[],_0x1df939=!0x1;return _0x388666=>{const _0x9f283c=_0x2798;_0x3dc8cb[_0x9f283c(0x328)](_0x388666),_0x1df939||(_0x1df939=!0x0,setTimeout(()=>{const _0xc42898=_0x9f283c;_0x3dc8cb[_0xc42898(0x1cb)](_0x4c8a73=>_0x4c8a73()),_0x3dc8cb=[],_0x1df939=!0x1;}));};};let Ct=class extends _0x52c754{constructor(_0x51f36c,_0x3fb168,_0x44fd1e,_0x41fa3f,_0xcf6515,_0x27a195,_0x30688c,_0x462c82){const _0x55571f=_0x4d174b;super(),l(this,_0x55571f(0x230),!0x1),l(this,_0x55571f(0x2a6),!0x1),l(this,_0x55571f(0x3f3),new _0x16da12(new Map())),l(this,_0x55571f(0x1dc),this[_0x55571f(0x3f3)][_0x55571f(0x3bd)]()),l(this,_0x55571f(0x1b8),new _0x16da12([])),l(this,_0x55571f(0x1b2),this['_roomMembers$'][_0x55571f(0xbe)](_0x552316(tr))),l(this,_0x55571f(0x28e),_0x7a8360((_0xd172c8,_0x4c500b)=>{const _0x545c7c=_0x55571f,_0x5eb5da={'eventID':_0x2c65dc[_0x545c7c(0x301)],'data':{'unitID':this[_0x545c7c(0x1e2)],'memberID':this['_session'][_0x545c7c(0x33c)](),'selection':_0xd693b7(_0xd172c8,_0x4c500b[_0x545c7c(0x1b4)])}};this[_0x545c7c(0x35f)][_0x545c7c(0x2c4)](_0x5eb5da,this[_0x545c7c(0x1e2)]);},sr)),(this[_0x55571f(0x1e2)]=_0x51f36c,this[_0x55571f(0x35f)]=_0x3fb168,this['_injector']=_0x44fd1e,this[_0x55571f(0xe8)]=_0x41fa3f,this[_0x55571f(0x2d9)]=_0xcf6515,this[_0x55571f(0x115)]=_0x27a195,this[_0x55571f(0x178)]=_0x30688c,this[_0x55571f(0x17b)]=_0x462c82);}get[_0x4d174b(0x3e8)](){const _0x3e884e=_0x4d174b;return this[_0x3e884e(0x3f3)][_0x3e884e(0x257)]();}get[_0x4d174b(0x1bf)](){const _0x5a3fde=_0x4d174b;return this[_0x5a3fde(0x1b8)][_0x5a3fde(0x257)]();}[_0x4d174b(0x15b)](){const _0x35f780=_0x4d174b;super[_0x35f780(0x15b)](),this[_0x35f780(0x3f3)][_0x35f780(0xe2)](new Map()),this[_0x35f780(0x3f3)][_0x35f780(0x25e)](),this[_0x35f780(0x1b8)][_0x35f780(0xe2)]([]),this[_0x35f780(0x1b8)][_0x35f780(0x25e)]();}[_0x4d174b(0x11f)](){const _0x52763d=_0x4d174b;this[_0x52763d(0x2a6)]||(this['_init']=!0x0,this[_0x52763d(0x35f)][_0x52763d(0xc2)][_0x52763d(0xbe)](_0xf80876(this[_0x52763d(0xdd)]))[_0x52763d(0x269)](_0x135174=>{const _0x49c06d=_0x52763d;_0x135174===de['ONLINE']?this[_0x49c06d(0x3a7)]():this[_0x49c06d(0x1a1)]();}),this['_session'][_0x52763d(0x1a9)][_0x52763d(0xbe)](_0xf80876(this[_0x52763d(0xdd)]))[_0x52763d(0x269)](_0x316c52=>{const _0x1b62e5=_0x52763d,_0x5b7701=_0x316c52['eventID'];_0x5b7701===_0x2c65dc[_0x1b62e5(0x301)]&&this[_0x1b62e5(0x283)](_0x316c52),_0x5b7701===_0x2c65dc[_0x1b62e5(0x3f4)]&&this[_0x1b62e5(0x1f8)](_0x316c52);}),this['_onRefRangeChange'](),this[_0x52763d(0xe4)](this[_0x52763d(0x178)][_0x52763d(0x1e4)](_0x5a6744=>{const _0x288d25=_0x52763d;if(this['_online']&&_0x5a6744['id']===_0x32ba42['id']&&_0x5a6744[_0x288d25(0x29f)][_0x288d25(0x22a)]===this[_0x288d25(0x1e2)]){const _0x3da4f0=_0x5a6744['params'];this[_0x288d25(0x28e)](_0x3da4f0[_0x288d25(0x373)],_0x3da4f0[_0x288d25(0x3b5)][0x0]);}})));}[_0x4d174b(0x283)](_0x27e27f){const _0x1d9b5c=_0x4d174b;var _0x493a4b,_0x23acc4;const {memberID:_0x2cbbcf,selection:_0x2f90d5}=_0x27e27f[_0x1d9b5c(0x299)],{sheetName:_0x1599f0,range:_0x344d4a}=_0x153292(_0x2f90d5),_0x2f1ce6={'name':(_0x23acc4=(_0x493a4b=this[_0x1d9b5c(0x2d9)][_0x1d9b5c(0x35b)](this[_0x1d9b5c(0x1e2)],_0x2cbbcf))==null?void 0x0:_0x493a4b[_0x1d9b5c(0x22e)])!=null?_0x23acc4:_0x1d9b5c(0x247),'range':this[_0x1d9b5c(0x293)](_0x1599f0,_0x344d4a),'sheetID':_0x1599f0,'color':this[_0x1d9b5c(0xe8)][_0x1d9b5c(0x1d5)](_0x2cbbcf),'selection':_0x2f90d5},_0x5ea376=this[_0x1d9b5c(0x3e8)];_0x5ea376[_0x1d9b5c(0x34a)](_0x2cbbcf,_0x2f1ce6),this[_0x1d9b5c(0x3f3)]['next'](_0x5ea376);}[_0x4d174b(0x1f8)](_0x463c61){const _0xb07c44=_0x4d174b,{memberID:_0x26bd0f}=_0x463c61[_0xb07c44(0x299)],_0x1fdf5d=this['cursorInfo'];_0x1fdf5d['delete'](_0x26bd0f),this[_0xb07c44(0x3f3)][_0xb07c44(0xe2)](_0x1fdf5d);}['_getMergeRange'](_0x234bda,_0x335ef5){const _0x4d6319=_0x4d174b;var _0x512180,_0x100133;const _0x410cc9=(_0x100133=(_0x512180=this[_0x4d6319(0x115)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x512180[_0x4d6319(0x2e7)](_0x234bda))==null?void 0x0:_0x100133[_0x4d6319(0x11d)]();return(_0x410cc9==null?void 0x0:_0x410cc9[_0x4d6319(0xbc)](_0x22737b=>_0x439eae[_0x4d6319(0x176)](_0x22737b,_0x335ef5)))||_0x335ef5;}['_onRefRangeChange'](){const _0x552af0=_0x4d174b,_0x377bbc=new _0x57d5bc(),_0x3814e9=ir(),_0x5c48c9=()=>{const _0x595ede=_0x2798;_0x377bbc['dispose']();const _0xe619f7=(_0x1ad789,_0x444625,_0xd9f226,_0x2e450a)=>{const _0x260243=_0x2798;let _0x3b7ab2=[];switch(_0x1ad789['id']){case _0x52a1d4[_0x260243(0x3b9)]:{_0x3b7ab2=_0x881384(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0xcd)]:{_0x3b7ab2=_0x1ca379(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0xce)]:{_0x3b7ab2=_0x326930(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x109)]:{_0x3b7ab2=_0x3be4c3(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x215)]:{_0x3b7ab2=_0x255bb6(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x1bd)]:{_0x3b7ab2=_0x345f09(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x388)]:{_0x3b7ab2=_0x4e0a2e(_0x1ad789,_0x2e450a);break;}case _0x52a1d4['RemoveColCommandId']:{_0x3b7ab2=_0x22e932(_0x1ad789,_0x2e450a);break;}case _0x52a1d4['RemoveRowCommandId']:{_0x3b7ab2=_0x17649b(_0x1ad789,_0x2e450a);break;}}const _0x4dbcb0=_0x43235e(_0x3b7ab2,_0x2e450a),_0x48a02e=this[_0x260243(0x3e8)][_0x260243(0x135)](_0x444625);if(_0x48a02e&&_0x4dbcb0){const _0x49d11f={..._0x48a02e,'range':_0x4dbcb0};this[_0x260243(0x3e8)][_0x260243(0x34a)](_0x444625,_0x49d11f),_0x3814e9(()=>{const _0x255e6a=_0x260243,_0x42f9d6=this[_0x255e6a(0x17b)][_0x255e6a(0x241)](_0x4dbcb0,_0x29652c=>(_0x42f9d6[_0x255e6a(0x15b)](),_0xe619f7(_0x29652c,_0x444625,_0xd9f226,_0x4dbcb0)));_0x377bbc['add'](_0x42f9d6);});}return{'redos':[],'undos':[]};};this[_0x595ede(0x3e8)][_0x595ede(0x1cb)]((_0x345c24,_0x54b252)=>{const _0x250cd6=_0x595ede,{range:_0x2eed8f,sheetID:_0x23f651}=_0x345c24,_0x493a6c=this[_0x250cd6(0x17b)][_0x250cd6(0x241)](_0x2eed8f,_0x10bb89=>(_0x493a6c['dispose'](),_0xe619f7(_0x10bb89,_0x54b252,_0x23f651,_0x2eed8f)));_0x377bbc[_0x250cd6(0x130)](_0x493a6c);});};this[_0x552af0(0xe4)](_0x521fe6(this[_0x552af0(0x3f3)][_0x552af0(0x269)](()=>{_0x5c48c9();})));}[_0x4d174b(0x3a7)](){const _0x539cb5=_0x4d174b;var _0x20f90b,_0x195fa8;if(this[_0x539cb5(0x230)]=!0x0,((_0x20f90b=this[_0x539cb5(0x115)]['getFocusedUnit']())==null?void 0x0:_0x20f90b[_0x539cb5(0x150)]())!==this[_0x539cb5(0x1e2)])return;const _0x39a7d3=(_0x195fa8=this[_0x539cb5(0x36e)][_0x539cb5(0x135)](_0x298766)[_0x539cb5(0x2ef)]())==null?void 0x0:_0x195fa8[0x0],_0x5abcce=this['_univerInstanceService'][_0x539cb5(0x2f1)](_0x1851b1[_0x539cb5(0x202)])[_0x539cb5(0x166)]();_0x39a7d3&&_0x5abcce&&this['_updateLocalCursor'](_0x5abcce['getSheetId'](),_0x39a7d3);}[_0x4d174b(0x1a1)](){const _0x2241ed=_0x4d174b;this[_0x2241ed(0x230)]=!0x1;}};Ct=er([ce(0x2,_0x5b671c(_0x49e10e)),ce(0x3,_0x5b671c(xt)),ce(0x4,_0x5b671c(te)),ce(0x5,_0x2269ec),ce(0x6,_0x5bc562),ce(0x7,_0x5b671c(_0x30eaeb))],Ct);var nr=Object[_0x4d174b(0x1e3)],rr=Object[_0x4d174b(0x13f)],or=(_0x5275b7,_0x3e12b8,_0x2df383,_0x390fb2)=>{const _0x28718c=_0x4d174b;for(var _0x2602db=_0x390fb2>0x1?void 0x0:_0x390fb2?rr(_0x3e12b8,_0x2df383):_0x3e12b8,_0x482993=_0x5275b7[_0x28718c(0x2e1)]-0x1,_0x59b043;_0x482993>=0x0;_0x482993--)(_0x59b043=_0x5275b7[_0x482993])&&(_0x2602db=(_0x390fb2?_0x59b043(_0x3e12b8,_0x2df383,_0x2602db):_0x59b043(_0x2602db))||_0x2602db);return _0x390fb2&&_0x2602db&&nr(_0x3e12b8,_0x2df383,_0x2602db),_0x2602db;},Q=(_0x6e717,_0x1cdc4b)=>(_0x22b788,_0x51edbf)=>_0x1cdc4b(_0x22b788,_0x51edbf,_0x6e717);const ar=0x12c,cr=0x64;let bt=class extends _0x52c754{constructor(_0x5590dd,_0x453e23,_0x14bf44,_0x1b8b11,_0x7ac4a1,_0x11a1c9,_0x41cd75,_0x4bda77,_0x4cb220){const _0x4aa358=_0x4d174b;super(),l(this,'_online',!0x1),l(this,_0x4aa358(0x2a6),!0x1),l(this,'_cursorInfo$',new _0x16da12(new Map())),l(this,_0x4aa358(0x1dc),this[_0x4aa358(0x3f3)][_0x4aa358(0x3bd)]()),l(this,_0x4aa358(0x1b8),new _0x16da12([])),l(this,_0x4aa358(0x1b2),this['_roomMembers$'][_0x4aa358(0xbe)](_0x552316(ar))),l(this,_0x4aa358(0x28e),_0x7a8360(_0x3f994d=>{const _0x2c426d=_0x4aa358,_0x4d0124={'eventID':_0x2c65dc['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x2c426d(0x35f)][_0x2c426d(0x33c)](),'selection':Ms(_0x3f994d)}};this['_session'][_0x2c426d(0x2c4)](_0x4d0124,this[_0x2c426d(0x1e2)]);},cr)),(this[_0x4aa358(0x1e2)]=_0x5590dd,this[_0x4aa358(0x35f)]=_0x453e23,this['_injector']=_0x14bf44,this[_0x4aa358(0xe8)]=_0x1b8b11,this[_0x4aa358(0x2d9)]=_0x7ac4a1,this[_0x4aa358(0x22d)]=_0x11a1c9,this[_0x4aa358(0x3ca)]=_0x41cd75,this[_0x4aa358(0x115)]=_0x4bda77,this['_commandService']=_0x4cb220);}get[_0x4d174b(0x3e8)](){const _0x420823=_0x4d174b;return this[_0x420823(0x3f3)]['getValue']();}get['roomMembers'](){const _0x23862b=_0x4d174b;return this[_0x23862b(0x1b8)][_0x23862b(0x257)]();}[_0x4d174b(0x15b)](){const _0x3bb1be=_0x4d174b;super[_0x3bb1be(0x15b)](),this[_0x3bb1be(0x3f3)][_0x3bb1be(0xe2)](new Map()),this['_cursorInfo$']['complete'](),this[_0x3bb1be(0x1b8)]['next']([]),this[_0x3bb1be(0x1b8)][_0x3bb1be(0x25e)]();}[_0x4d174b(0x11f)](){const _0x4a7b2b=_0x4d174b;this[_0x4a7b2b(0x2a6)]||(this[_0x4a7b2b(0x2a6)]=!0x0,this[_0x4a7b2b(0x35f)]['sessionStatus$'][_0x4a7b2b(0xbe)](_0xf80876(this[_0x4a7b2b(0xdd)]))[_0x4a7b2b(0x269)](_0x3a2e3e=>{const _0x5d9bc4=_0x4a7b2b;_0x3a2e3e===de[_0x5d9bc4(0x2cb)]?this['_toggleOnline']():this[_0x5d9bc4(0x1a1)]();}),this[_0x4a7b2b(0x35f)][_0x4a7b2b(0x1a9)]['pipe'](_0xf80876(this['dispose$']))['subscribe'](_0x3ebf78=>{const _0x104f34=_0x4a7b2b,_0x10c581=_0x3ebf78['eventID'];_0x10c581===_0x2c65dc[_0x104f34(0x301)]&&this[_0x104f34(0x283)](_0x3ebf78),_0x10c581===_0x2c65dc[_0x104f34(0x3f4)]&&this['_onCursorDelete'](_0x3ebf78);}),this[_0x4a7b2b(0xe4)](this['_commandService']['onCommandExecuted'](_0x30d700=>{const _0x489768=_0x4a7b2b,_0x21ec91=_0x30d700[_0x489768(0x29f)];_0x21ec91!=null&&this['_online']&&_0x30d700['id']===_0x3741bb['id']&&_0x21ec91[_0x489768(0x22a)]===this[_0x489768(0x1e2)]&&_0x21ec91['isEditing']===!0x1&&this['_updateLocalCursor'](_0x21ec91[_0x489768(0x142)]);})),this[_0x4a7b2b(0x22d)][_0x4a7b2b(0x31b)]['pipe'](_0xf80876(this[_0x4a7b2b(0xdd)]))[_0x4a7b2b(0x269)](_0x1828b2=>{const _0x2fdae2=_0x4a7b2b;if((_0x1828b2==null?void 0x0:_0x1828b2[_0x2fdae2(0x1e2)])!==this[_0x2fdae2(0x1e2)])return;const _0x2ddb15={'eventID':_0x2c65dc['UPDATE_CURSOR'],'data':_0x1828b2};this[_0x2fdae2(0x283)](_0x2ddb15);}),this[_0x4a7b2b(0xe4)](this['_commandService'][_0x4a7b2b(0x1e4)](_0x17b44d=>{const _0x5b08c2=_0x4a7b2b;if(_0x17b44d[_0x5b08c2(0x29f)]==null)return;const _0x3d0f11=_0x17b44d[_0x5b08c2(0x29f)];if(_0x17b44d['id']!==_0x257904['id']||_0x3d0f11['unitId']!==this[_0x5b08c2(0x1e2)])return;const _0x212afa={'id':_0x5b08c2(0x108),'params':_0x3d0f11},_0x15a60e=this[_0x5b08c2(0x3e8)];for(const [_0x498d5f,_0x425dec]of _0x15a60e){const _0x53e401={'id':_0x5b08c2(0x108),'params':{'unitId':this[_0x5b08c2(0x1e2)],'actions':null,'textRanges':_0x425dec[_0x5b08c2(0x142)]}},_0x1d61e1=this[_0x5b08c2(0x3ca)]['transformMutation'](_0x212afa,_0x53e401,!0x1);if(_0x8ecfd4(_0x1d61e1))throw _0x1d61e1[_0x5b08c2(0xba)];_0x15a60e[_0x5b08c2(0x34a)](_0x498d5f,{..._0x425dec,'ranges':_0x1d61e1[_0x5b08c2(0x160)][_0x5b08c2(0x29f)][_0x5b08c2(0x277)]});}queueMicrotask(()=>{const _0x1157ad=_0x5b08c2;this[_0x1157ad(0x3f3)][_0x1157ad(0xe2)](_0x15a60e);});})));}[_0x4d174b(0x283)](_0x39ac72){const _0xcd400d=_0x4d174b;var _0x43a723,_0x5c98af;const {memberID:_0x8bedb9,selection:_0x459538}=_0x39ac72[_0xcd400d(0x299)],_0x39151f=kn(_0x459538),_0x3dcc0a=(_0x5c98af=(_0x43a723=this[_0xcd400d(0x2d9)][_0xcd400d(0x35b)](this[_0xcd400d(0x1e2)],_0x8bedb9))==null?void 0x0:_0x43a723[_0xcd400d(0x22e)])!=null?_0x5c98af:_0xcd400d(0x247),_0x11a2a5={'color':this[_0xcd400d(0xe8)][_0xcd400d(0x1d5)](_0x8bedb9),'name':_0x3dcc0a,'ranges':_0x39151f},_0x5bce07=this[_0xcd400d(0x3e8)];_0x5bce07['set'](_0x8bedb9,_0x11a2a5),this['_cursorInfo$'][_0xcd400d(0xe2)](_0x5bce07);}[_0x4d174b(0x1f8)](_0xc91159){const _0x3c7faf=_0x4d174b,{memberID:_0x95356e}=_0xc91159[_0x3c7faf(0x299)],_0x4c6c26=this[_0x3c7faf(0x3e8)];_0x4c6c26[_0x3c7faf(0x3e4)](_0x95356e),this[_0x3c7faf(0x3f3)][_0x3c7faf(0xe2)](_0x4c6c26);}[_0x4d174b(0x3a7)](){const _0x4fc97b=_0x4d174b;var _0x2e60c8;if(this[_0x4fc97b(0x230)]=!0x0,((_0x2e60c8=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x2e60c8[_0x4fc97b(0x150)]())!==this[_0x4fc97b(0x1e2)])return;const _0xad46f6=this[_0x4fc97b(0x36e)][_0x4fc97b(0x135)](_0x2684a6)[_0x4fc97b(0x2ef)](),_0x27eea4=_0xad46f6==null?void 0x0:_0xad46f6[_0x4fc97b(0x288)](_0x1c3c28);Array[_0x4fc97b(0x15e)](_0x27eea4)&&_0x27eea4[_0x4fc97b(0x2e1)]>0x0&&this[_0x4fc97b(0x28e)](_0x27eea4);}[_0x4d174b(0x1a1)](){const _0x3abe37=_0x4d174b;this[_0x3abe37(0x230)]=!0x1;}};bt=or([Q(0x2,_0x5b671c(_0x49e10e)),Q(0x3,_0x5b671c(xt)),Q(0x4,_0x5b671c(te)),Q(0x5,_0x5b671c(jt)),Q(0x6,_0x174d0f),Q(0x7,_0x2269ec),Q(0x8,_0x5bc562)],bt);var hr=Object[_0x4d174b(0x1e3)],lr=Object[_0x4d174b(0x13f)],_r=(_0x42b032,_0x467c22,_0x50a7aa,_0x2801cd)=>{const _0x19e847=_0x4d174b;for(var _0x44c376=_0x2801cd>0x1?void 0x0:_0x2801cd?lr(_0x467c22,_0x50a7aa):_0x467c22,_0x49b6dd=_0x42b032[_0x19e847(0x2e1)]-0x1,_0x1a14bb;_0x49b6dd>=0x0;_0x49b6dd--)(_0x1a14bb=_0x42b032[_0x49b6dd])&&(_0x44c376=(_0x2801cd?_0x1a14bb(_0x467c22,_0x50a7aa,_0x44c376):_0x1a14bb(_0x44c376))||_0x44c376);return _0x2801cd&&_0x44c376&&hr(_0x467c22,_0x50a7aa,_0x44c376),_0x44c376;},ct=(_0x1f8188,_0x5f47d2)=>(_0x4af04f,_0x3fea61)=>_0x5f47d2(_0x4af04f,_0x3fea61,_0x1f8188);let me=class extends _0x52c754{constructor(_0x4d2438,_0xd2a5a3,_0x5b241a){const _0x356cac=_0x4d174b;super(),l(this,'_entities',new Map()),l(this,_0x356cac(0x205),new _0x49ef1a()),(this[_0x356cac(0x115)]=_0x4d2438,this[_0x356cac(0x36e)]=_0xd2a5a3,this[_0x356cac(0x369)]=_0x5b241a,this[_0x356cac(0x2a6)]());}[_0x4d174b(0x15b)](){const _0x83369=_0x4d174b;super[_0x83369(0x15b)](),this[_0x83369(0x205)][_0x83369(0x25e)](),this[_0x83369(0x35a)]['forEach'](_0x5d5387=>_0x5d5387[_0x83369(0x15b)]());}['getCollabCursors$'](_0x22c4fb){const _0xaca66c=_0x4d174b;return this[_0xaca66c(0x35a)][_0xaca66c(0x37c)](_0x22c4fb)?this[_0xaca66c(0x35a)][_0xaca66c(0x135)](_0x22c4fb)[_0xaca66c(0x1dc)]:this['_entityInit$'][_0xaca66c(0xbe)](_0x28963b(_0x338422=>_0x338422[_0xaca66c(0x1e2)]===_0x22c4fb),_0x46582b(_0x3609e4=>_0x3609e4[_0xaca66c(0x1dc)]));}[_0x4d174b(0x2a6)](){const _0x295108=_0x4d174b;this[_0x295108(0x115)][_0x295108(0x174)](_0x1851b1[_0x295108(0x202)])[_0x295108(0xbe)](_0xf80876(this[_0x295108(0xdd)]))[_0x295108(0x269)](async _0x10cca1=>{const _0x182f86=_0x295108,_0x19a0f2=_0x10cca1[_0x182f86(0x150)](),_0x27c641=await this[_0x182f86(0x37d)](_0x19a0f2);this[_0x182f86(0x205)]['next'](_0x27c641),this[_0x182f86(0x35a)][_0x182f86(0x34a)](_0x19a0f2,_0x27c641);}),this[_0x295108(0x115)][_0x295108(0x174)](_0x1851b1['UNIVER_DOC'])[_0x295108(0xbe)](_0xf80876(this[_0x295108(0xdd)]))[_0x295108(0xbe)](_0x28963b(_0x652056=>!_0x652056['getUnitId']()['startsWith']('__')))[_0x295108(0x269)](async _0x4cc8a3=>{const _0x54638a=_0x295108,_0x43a0d5=_0x4cc8a3['getUnitId'](),_0xc0ef6e=await this['_startDocCollabCursor'](_0x43a0d5);this['_entityInit$']['next'](_0xc0ef6e),this[_0x54638a(0x35a)]['set'](_0x43a0d5,_0xc0ef6e);}),_0x4e0a85(this['_univerInstanceService'][_0x295108(0x286)](_0x1851b1[_0x295108(0x2b7)]),this[_0x295108(0x115)][_0x295108(0x286)](_0x1851b1['UNIVER_SHEET']))['pipe'](_0xf80876(this[_0x295108(0xdd)]))[_0x295108(0x269)](_0x50bba4=>{const _0x57c2a5=_0x295108,_0x40fa75=_0x50bba4[_0x57c2a5(0x150)](),_0x1c1685=this[_0x57c2a5(0x35a)][_0x57c2a5(0x135)](_0x40fa75);_0x1c1685&&(_0x1c1685['dispose'](),this[_0x57c2a5(0x35a)][_0x57c2a5(0x3e4)](_0x40fa75));});}async['_startSheetCollabCursor'](_0x5741f8){const _0x5ee0e2=_0x4d174b,_0xc1d816=await this[_0x5ee0e2(0x369)]['requireSession'](_0x5741f8),_0x1f3760=this[_0x5ee0e2(0x36e)][_0x5ee0e2(0x3d3)](Ct,_0x5741f8,_0xc1d816);return _0x1f3760['init'](),_0x1f3760;}async[_0x4d174b(0x2c0)](_0x4b5b49){const _0x47b8c6=_0x4d174b,_0x18b7ca=await this[_0x47b8c6(0x369)]['requireSession'](_0x4b5b49),_0x2ede5a=this[_0x47b8c6(0x36e)][_0x47b8c6(0x3d3)](bt,_0x4b5b49,_0x18b7ca);return _0x2ede5a[_0x47b8c6(0x11f)](),_0x2ede5a;}};me=_r([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],me),ct(0x0,_0x2269ec),ct(0x1,_0x5b671c(_0x49e10e)),ct(0x2,_0x5b671c(ge))],me);const we=0x14,rs=0xc8,ht=0x4,ur=0x5;function dr(_0x3c5079,_0x2d5088){const _0x433743=_0x4d174b;let {radius:_0x2762ad,width:_0xef11b4,height:_0x56cb84}=_0x2d5088;_0x2762ad=_0x2762ad!=null?_0x2762ad:0x0,_0xef11b4=_0xef11b4!=null?_0xef11b4:0x1e,_0x56cb84=_0x56cb84!=null?_0x56cb84:0x1e;let _0x5d746f=0x0,_0x5e8a50=0x0,_0x1faacb=0x0;_0x5d746f=_0x5e8a50=_0x1faacb=Math['min'](_0x2762ad,_0xef11b4/0x2,_0x56cb84/0x2),_0x3c5079['beginPath'](),_0x3c5079[_0x433743(0x2b8)](_0x5d746f,0x0),_0x3c5079[_0x433743(0x1ec)](_0xef11b4-_0x5e8a50,0x0),_0x3c5079[_0x433743(0x258)](_0xef11b4-_0x5e8a50,_0x5e8a50,_0x5e8a50,Math['PI']*0x3/0x2,0x0,!0x1),_0x3c5079[_0x433743(0x1ec)](_0xef11b4,_0x56cb84-_0x1faacb),_0x3c5079[_0x433743(0x258)](_0xef11b4-_0x1faacb,_0x56cb84-_0x1faacb,_0x1faacb,0x0,Math['PI']/0x2,!0x1),_0x3c5079['lineTo'](0x0,_0x56cb84),_0x3c5079['lineTo'](0x0,_0x5d746f),_0x3c5079['arc'](_0x5d746f,_0x5d746f,_0x5d746f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3c5079[_0x433743(0x318)](),_0x2d5088[_0x433743(0x1a2)]&&(_0x3c5079[_0x433743(0x32f)](),_0x3c5079[_0x433743(0x24e)]=_0x2d5088[_0x433743(0x1a2)],_0x2d5088[_0x433743(0x16a)]==='evenodd'?_0x3c5079[_0x433743(0x1a2)]('evenodd'):_0x3c5079['fill'](),_0x3c5079['restore']());}class st extends _0x4a0992{constructor(_0xe11e81,_0x272da8){const _0x38f892=_0x4d174b;super(_0xe11e81,_0x272da8),l(this,_0x38f892(0x377)),l(this,'text'),(this[_0x38f892(0x377)]=_0x272da8==null?void 0x0:_0x272da8[_0x38f892(0x377)],this['text']=_0x272da8==null?void 0x0:_0x272da8[_0x38f892(0x39a)]);}static[_0x4d174b(0xe1)](_0x41d8e2,_0x176446){const _0x4bfa8f=_0x4d174b,{text:_0x156d1a,color:_0x32e790}=_0x176446;_0x41d8e2['save'](),_0x41d8e2['font']=_0x4bfa8f(0x36d);const _0x3772c3=_0x41d8e2[_0x4bfa8f(0x15a)](_0x156d1a)[_0x4bfa8f(0x2fa)],_0x27439d=Math[_0x4bfa8f(0x2d2)](_0x3772c3+0x2*ht,rs);dr(_0x41d8e2,{'height':we,'radius':0x4,'width':_0x27439d,'fill':_0x32e790,'evented':!0x1}),_0x41d8e2[_0x4bfa8f(0x24e)]=_0x4bfa8f(0x1b9);const _0x4baf55=ht,_0x4b407b=we-ur,_0x142628=rs-0x2*ht;if(_0x3772c3>_0x142628){let _0x44f09e='',_0x3ee199=0x0;for(const _0x467c62 of _0x156d1a){const _0x3d2f47=_0x41d8e2[_0x4bfa8f(0x15a)](_0x467c62)[_0x4bfa8f(0x2fa)];if(_0x3ee199+_0x3d2f47<=_0x142628-_0x41d8e2[_0x4bfa8f(0x15a)]('...')['width'])_0x44f09e+=_0x467c62,_0x3ee199+=_0x3d2f47;else{_0x44f09e+='...';break;}}_0x41d8e2[_0x4bfa8f(0x1ea)](_0x44f09e,_0x4baf55,_0x4b407b);}else _0x41d8e2['fillText'](_0x156d1a,_0x4baf55,_0x4b407b);_0x41d8e2['restore']();}[_0x4d174b(0x30f)](_0x401697){const _0x1f9294=_0x4d174b;st[_0x1f9294(0xe1)](_0x401697,this);}}const mr=0x1,fr=1.5;class gr extends _0x4a0992{constructor(_0x3cf0ea,_0x44123c){const _0x355a35=_0x4d174b;super(_0x3cf0ea,_0x44123c),l(this,_0x355a35(0x2fe)),l(this,_0x355a35(0x3d9),!0x1),l(this,_0x355a35(0x3ab)),l(this,_0x355a35(0x22c),''),l(this,'_labelPosition','top'),l(this,'_backgroundColor'),(_0x44123c&&this[_0x355a35(0x38f)](_0x44123c),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x355a35(0x38f)]({'hovered':!0x0})),this[_0x355a35(0x1ee)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0xbca1ce){const _0x3653bf=_0x4d174b;var _0x2e5620,_0x26bcd7,_0x178f79,_0x2760ba,_0x5ac0a1,_0xec6cd9;this[_0x3653bf(0x2fe)]=(_0x2e5620=_0xbca1ce[_0x3653bf(0x377)])!=null?_0x2e5620:this[_0x3653bf(0x2fe)],this[_0x3653bf(0x3d9)]=(_0x26bcd7=_0xbca1ce[_0x3653bf(0x3ba)])!=null?_0x26bcd7:this[_0x3653bf(0x3d9)],this[_0x3653bf(0x3ab)]=(_0x178f79=_0xbca1ce[_0x3653bf(0x1b4)])!=null?_0x178f79:this[_0x3653bf(0x3ab)],this[_0x3653bf(0x22c)]=(_0x2760ba=_0xbca1ce[_0x3653bf(0x22e)])!=null?_0x2760ba:this['_name'],this[_0x3653bf(0x244)]=(_0x5ac0a1=_0xbca1ce['labelPosition'])!=null?_0x5ac0a1:this[_0x3653bf(0x244)],this[_0x3653bf(0x347)]=(_0xec6cd9=_0xbca1ce['backgroundColor'])!=null?_0xec6cd9:this['_backgroundColor'],this['transformByState']({'width':_0xbca1ce['width'],'height':_0xbca1ce[_0x3653bf(0x1ac)]});}[_0x4d174b(0x19b)](_0x328e6f){const _0x219a86=_0x4d174b,{row:_0x5c739d,column:_0x1fa5ba}=_0x328e6f;if(_0x5c739d>=this[_0x219a86(0x3ab)][_0x219a86(0xc8)]&&_0x5c739d<=this[_0x219a86(0x3ab)]['endRow']&&_0x1fa5ba>=this['_range'][_0x219a86(0x152)]&&_0x1fa5ba<=this[_0x219a86(0x3ab)]['endColumn']){this[_0x219a86(0x38f)]({'hovered':!0x0});return;}this[_0x219a86(0x38f)]({'hovered':!0x1});}[_0x4d174b(0x356)](_0x427071){return!0x1;}[_0x4d174b(0x30f)](_0x840be7){const _0x66fc70=_0x4d174b;_0x390a18[_0x66fc70(0xe1)](_0x840be7,{'width':this[_0x66fc70(0x2fa)],'height':this[_0x66fc70(0x1ac)],'strokeWidth':fr,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x66fc70(0x347)]}),this[_0x66fc70(0x3d9)]&&(_0x840be7[_0x66fc70(0x32f)](),_0x840be7['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x66fc70(0x15d)?0x0:-we),st['drawWith'](_0x840be7,{'text':this[_0x66fc70(0x22c)],'color':this[_0x66fc70(0x2fe)]}),_0x840be7[_0x66fc70(0x2ab)]());}}var Sr=Object[_0x4d174b(0x1e3)],vr=Object[_0x4d174b(0x13f)],pr=(_0x43fad3,_0x3b8824,_0x309b77,_0x230978)=>{const _0x411c6e=_0x4d174b;for(var _0x5b5e16=_0x230978>0x1?void 0x0:_0x230978?vr(_0x3b8824,_0x309b77):_0x3b8824,_0x23a5b7=_0x43fad3[_0x411c6e(0x2e1)]-0x1,_0x567202;_0x23a5b7>=0x0;_0x23a5b7--)(_0x567202=_0x43fad3[_0x23a5b7])&&(_0x5b5e16=(_0x230978?_0x567202(_0x3b8824,_0x309b77,_0x5b5e16):_0x567202(_0x5b5e16))||_0x5b5e16);return _0x230978&&_0x5b5e16&&Sr(_0x3b8824,_0x309b77,_0x5b5e16),_0x5b5e16;},lt=(_0x307cb8,_0x481ecb)=>(_0x2e42a1,_0x59e497)=>_0x481ecb(_0x2e42a1,_0x59e497,_0x307cb8);const Ir=0x1389;let Tt=class extends _0x52c754{constructor(_0x49fe7c,_0x3db4c9,_0x223182,_0x1e21cd){const _0x57bc39=_0x4d174b;super(),l(this,_0x57bc39(0x3c2),new Set()),l(this,_0x57bc39(0x3d6),null),(this[_0x57bc39(0x12d)]=_0x49fe7c,this[_0x57bc39(0x19c)]=_0x3db4c9,this[_0x57bc39(0x2ee)]=_0x223182,this[_0x57bc39(0x2b9)]=_0x1e21cd,this['_init']());}[_0x4d174b(0x2a6)](){const _0x73ee20=_0x4d174b;this[_0x73ee20(0x19c)]['currentSkeleton$'][_0x73ee20(0xbe)](_0x21a0e1(this[_0x73ee20(0xdd)]),_0x6b8f52(_0x115c15=>{const _0x28eab7=_0x73ee20;if(_0x115c15){const _0x1d3b1b=_0x115c15[_0x28eab7(0x36f)];return _0x2d61f0(this[_0x28eab7(0x2ee)]['getCollabCursors$'](this[_0x28eab7(0x12d)][_0x28eab7(0x22a)]),this[_0x28eab7(0x2b9)][_0x28eab7(0x3c0)])['pipe'](_0x120a2e(([_0x54ae91,_0x1d9fa9])=>{const _0x4ee779=_0x28eab7,_0x7878b3=new Map();return _0x54ae91[_0x4ee779(0x1cb)]((_0x3bbaaa,_0x1176f2)=>{const _0x36544b=_0x4ee779;if(_0x3bbaaa[_0x36544b(0x284)]===_0x1d3b1b){const _0x15adb7={..._0x3bbaaa};_0x15adb7[_0x36544b(0x377)]=_0x1d9fa9[_0x3bbaaa['color']],_0x7878b3[_0x36544b(0x34a)](_0x1176f2,_0x15adb7);}}),{'skeleton':_0x115c15,'cursors':_0x7878b3};}));}return _0x1e95ea({'skeleton':null,'cursors':new Map()});}))[_0x73ee20(0x269)](({skeleton:_0x2aeb39,cursors:_0x4cd046})=>{const _0x2d47eb=_0x73ee20;this[_0x2d47eb(0x3ce)](),_0x2aeb39&&this['_updateCollabCursors'](_0x2aeb39,_0x4cd046);}),this['_sheetSkeletonManagerService'][_0x73ee20(0x192)][_0x73ee20(0x269)](_0x24c1d8=>{const _0x559e59=_0x73ee20;if(_0x24c1d8==null)return;const {skeleton:_0x2e16b9}=_0x24c1d8,{scene:_0x23e585}=this[_0x559e59(0x12d)];_0x23e585[_0x559e59(0x204)][_0x559e59(0x35c)](_0x7a8360(_0x478f81=>{const _0x2ef94c=_0x559e59;var _0x57a64c,_0x393fae;const {offsetX:_0x504ed9,offsetY:_0x3be40c}=_0x478f81,{x:_0x3a5147,y:_0x5e92ec}=_0x23e585[_0x2ef94c(0x210)](_0x3af05d[_0x2ef94c(0x24b)]([_0x504ed9,_0x3be40c])),{scaleX:_0x41246d,scaleY:_0x55f535}=_0x23e585[_0x2ef94c(0x3eb)](),_0x3db744=_0x23e585[_0x2ef94c(0x12a)](_0x94aa38['VIEW_MAIN']),_0x149cd0=_0x23e585[_0x2ef94c(0x333)](_0x3af05d[_0x2ef94c(0x24b)]([_0x3a5147,_0x5e92ec]),_0x3db744),_0x2c048a=_0x2e16b9[_0x2ef94c(0x343)](_0x504ed9,_0x3be40c,_0x41246d,_0x55f535,_0x149cd0);((_0x57a64c=this[_0x2ef94c(0x3d6)])==null?void 0x0:_0x57a64c[_0x2ef94c(0x1e7)])===_0x2c048a[_0x2ef94c(0x1e7)]&&((_0x393fae=this['_lastPointer'])==null?void 0x0:_0x393fae['row'])===_0x2c048a[_0x2ef94c(0x2ce)]||this[_0x2ef94c(0x3c2)]['forEach'](_0x1c37c7=>{_0x1c37c7['onMouseMove'](_0x2c048a);});},0x64));});}[_0x4d174b(0x2b3)](_0x4efbbd,_0x404322){const _0xca21cc=_0x4d174b;var _0x1688fa;const _0x1fccf4=(_0x1688fa=this[_0xca21cc(0x19c)]['getCurrent']())==null?void 0x0:_0x1688fa[_0xca21cc(0xe7)];if(!_0x1fccf4)return;const _0x45ed9c=this[_0xca21cc(0x2ff)]();if(!_0x45ed9c)return;this[_0xca21cc(0x3c2)][_0xca21cc(0x1cb)](_0x358f27=>{const _0x38e500=_0xca21cc;_0x358f27[_0x38e500(0x303)]();});const {scene:_0x306e2a}=_0x45ed9c,_0x5138b7=Er(Array[_0xca21cc(0x264)](_0x404322[_0xca21cc(0x1eb)]()))['map'](_0x209a84=>{const _0x1c4be6=_0xca21cc,{color:_0x4d646c,range:_0xa14b55,name:_0x432cf9,selection:_0x15b0ae,sheetID:_0x481a19}=_0x209a84,{startColumn:_0x93feed,startRow:_0x3ed60d,endColumn:_0x4a7ee1,endRow:_0x374143}=_0xa14b55,_0x2271b0=_0x1c49f8(_0x3ed60d,_0x93feed,_0x306e2a,_0x1fccf4),_0x30a7d8=_0x1c49f8(_0x374143,_0x4a7ee1,_0x306e2a,_0x1fccf4),{columnHeaderHeightAndMarginTop:_0x3aadb3}=_0x1fccf4,{startX:_0x4f2f74,startY:_0x1babf0}=_0x2271b0,{endX:_0x5f015a,endY:_0x4833d7}=_0x30a7d8,_0x508e8f=_0x5f015a-_0x4f2f74,_0x1e2d6f=_0x4833d7-_0x1babf0,_0x43c369={'labelPosition':_0x1babf0-_0x3aadb3>=we?_0x1c4be6(0x361):_0x1c4be6(0x15d),'sheetID':_0x481a19,'range':_0xa14b55,'color':_0x4d646c,'name':_0x432cf9,'selection':_0x15b0ae,'left':_0x4f2f74,'top':_0x1babf0,'width':_0x508e8f,'height':_0x1e2d6f,'evented':!0x1,'zIndex':Ir};return new gr(_0x432cf9,_0x43c369);});_0x306e2a[_0xca21cc(0x235)](_0x5138b7,mr),this[_0xca21cc(0x3c2)]=new Set(_0x5138b7);}[_0x4d174b(0x3ce)](){const _0x532070=_0x4d174b;var _0x2a0dde;(_0x2a0dde=this['_cursors'])==null||_0x2a0dde['forEach'](_0xbcf6f3=>_0xbcf6f3[_0x532070(0x15b)]());}[_0x4d174b(0x2ff)](){const _0x123897=_0x4d174b;return _0x361cc8(this[_0x123897(0x12d)]['unit'],this[_0x123897(0x12d)]);}};Tt=pr([lt(0x1,_0x5b671c(_0xccc92)),lt(0x2,_0x5b671c(me)),lt(0x3,_0x5b671c(_0x2191ad))],Tt);function Er(_0x2a335d){const _0xba3402=_0x4d174b,_0x4c9a01=new Map();return _0x2a335d[_0xba3402(0x1cb)](_0xb81711=>{const _0x29eb6f=_0xba3402;if(_0x4c9a01['has'](_0xb81711['selection'])){const _0x5de168=_0x4c9a01[_0x29eb6f(0x135)](_0xb81711[_0x29eb6f(0x330)]);_0x5de168[_0x29eb6f(0x22e)]+=',\x20'+_0xb81711[_0x29eb6f(0x22e)];}else _0x4c9a01[_0x29eb6f(0x34a)](_0xb81711[_0x29eb6f(0x330)],_0xb81711);}),Array[_0xba3402(0x264)](_0x4c9a01[_0xba3402(0x1eb)]());}var A=function(){const _0x184090=_0x4d174b;return A=Object[_0x184090(0xf0)]||function(_0x31d7e6){const _0x19656f=_0x184090;for(var _0x1b4578,_0xb552db=0x1,_0x2155b5=arguments[_0x19656f(0x2e1)];_0xb552db<_0x2155b5;_0xb552db++){_0x1b4578=arguments[_0xb552db];for(var _0xf30e21 in _0x1b4578)Object[_0x19656f(0x12f)][_0x19656f(0x221)][_0x19656f(0x37f)](_0x1b4578,_0xf30e21)&&(_0x31d7e6[_0xf30e21]=_0x1b4578[_0xf30e21]);}return _0x31d7e6;},A[_0x184090(0xfb)](this,arguments);},Cr=function(_0x3d26e9,_0x33c137){const _0x557564=_0x4d174b;var _0x27463a={};for(var _0x14923e in _0x3d26e9)Object['prototype']['hasOwnProperty'][_0x557564(0x37f)](_0x3d26e9,_0x14923e)&&_0x33c137['indexOf'](_0x14923e)<0x0&&(_0x27463a[_0x14923e]=_0x3d26e9[_0x14923e]);if(_0x3d26e9!=null&&typeof Object['getOwnPropertySymbols']==_0x557564(0x265)){for(var _0x13c8a7=0x0,_0x14923e=Object[_0x557564(0xc7)](_0x3d26e9);_0x13c8a7<_0x14923e['length'];_0x13c8a7++)_0x33c137[_0x557564(0x1f1)](_0x14923e[_0x13c8a7])<0x0&&Object[_0x557564(0x12f)][_0x557564(0x368)][_0x557564(0x37f)](_0x3d26e9,_0x14923e[_0x13c8a7])&&(_0x27463a[_0x14923e[_0x13c8a7]]=_0x3d26e9[_0x14923e[_0x13c8a7]]);}return _0x27463a;},Ht=_0xc5b87(function(_0x840fb8,_0x306105){const _0x40ebef=_0x4d174b;var _0x3ed32c=_0x840fb8[_0x40ebef(0x20b)],_0x3c3d2f=_0x840fb8['id'],_0x3a015b=_0x840fb8[_0x40ebef(0x21b)],_0x5bca80=_0x840fb8[_0x40ebef(0x366)],_0x48c894=Cr(_0x840fb8,[_0x40ebef(0x20b),'id',_0x40ebef(0x21b),'extend']),_0x4e7b3f='univerjs-icon\x20univerjs-icon-'[_0x40ebef(0x3df)](_0x3c3d2f,'\x20')[_0x40ebef(0x3df)](_0x3a015b||'')[_0x40ebef(0x123)](),_0xdb8c8e=_0x485761('_'[_0x40ebef(0x3df)](Rr()));return ys(_0x3ed32c,''[_0x40ebef(0x3df)](_0x3c3d2f),{'defIds':_0x3ed32c[_0x40ebef(0xeb)],'idSuffix':_0xdb8c8e['current']},A({'ref':_0x306105,'className':_0x4e7b3f},_0x48c894),_0x5bca80);});function ys(_0xdb47ad,_0x596681,_0x509eaa,_0x12b036,_0x12efba){const _0x193422=_0x4d174b;return _0x33566a(_0xdb47ad['tag'],A(A({'key':_0x596681},br(_0xdb47ad,_0x509eaa,_0x12efba)),_0x12b036),(Tr(_0xdb47ad,_0x509eaa)[_0x193422(0x2d7)]||[])['map'](function(_0x4cf873,_0x2e6c7c){const _0x293066=_0x193422;return ys(_0x4cf873,''[_0x293066(0x3df)](_0x596681,'-')[_0x293066(0x3df)](_0xdb47ad['tag'],'-')[_0x293066(0x3df)](_0x2e6c7c),_0x509eaa,void 0x0,_0x12efba);}));}function br(_0x48f602,_0x19c41f,_0x5d0bfa){const _0x5ef0e1=_0x4d174b;var _0x293b91=A({},_0x48f602[_0x5ef0e1(0x1ca)]);_0x5d0bfa!=null&&_0x5d0bfa[_0x5ef0e1(0x122)]&&_0x293b91[_0x5ef0e1(0x1a2)]===_0x5ef0e1(0x122)&&(_0x293b91['fill']=_0x5d0bfa[_0x5ef0e1(0x122)]);var _0x474a4d=_0x19c41f['defIds'];return!_0x474a4d||_0x474a4d['length']===0x0||(_0x48f602[_0x5ef0e1(0x26f)]===_0x5ef0e1(0x213)&&_0x293b91[_0x5ef0e1(0x33e)]&&(_0x293b91[_0x5ef0e1(0x33e)]=_0x293b91[_0x5ef0e1(0x33e)]+_0x19c41f[_0x5ef0e1(0x3ea)]),Object['entries'](_0x293b91)[_0x5ef0e1(0x1cb)](function(_0x321f69){const _0x2a7f7c=_0x5ef0e1;var _0x3b4a52=_0x321f69[0x0],_0x32774d=_0x321f69[0x1];typeof _0x32774d==_0x2a7f7c(0x2b2)&&(_0x293b91[_0x3b4a52]=_0x32774d['replace'](/url\(#(.*)\)/,_0x2a7f7c(0x34b)[_0x2a7f7c(0x3df)](_0x19c41f[_0x2a7f7c(0x3ea)],')')));})),_0x293b91;}function Tr(_0xd00680,_0x1d28ef){const _0x3dd8d3=_0x4d174b;var _0x3e44d6,_0x3817d9=_0x1d28ef['defIds'];return!_0x3817d9||_0x3817d9[_0x3dd8d3(0x2e1)]===0x0?_0xd00680:_0xd00680[_0x3dd8d3(0x26f)]===_0x3dd8d3(0x161)&&(!((_0x3e44d6=_0xd00680[_0x3dd8d3(0x2d7)])===null||_0x3e44d6===void 0x0)&&_0x3e44d6[_0x3dd8d3(0x2e1)])?A(A({},_0xd00680),{'children':_0xd00680[_0x3dd8d3(0x2d7)]['map'](function(_0x49e3fa){const _0x1882f1=_0x3dd8d3;return typeof _0x49e3fa['attrs']['id']=='string'&&_0x3817d9&&_0x3817d9['indexOf'](_0x49e3fa['attrs']['id'])>-0x1?A(A({},_0x49e3fa),{'attrs':A(A({},_0x49e3fa[_0x1882f1(0x1ca)]),{'id':_0x49e3fa[_0x1882f1(0x1ca)]['id']+_0x1d28ef[_0x1882f1(0x3ea)]})}):_0x49e3fa;})}):_0xd00680;}function Rr(){const _0x511476=_0x4d174b;return Math[_0x511476(0x187)]()[_0x511476(0xec)](0x24)['substring'](0x2,0x8);}Ht[_0x4d174b(0x246)]='UniverIcon';var Or={'tag':'svg','attrs':{'fill':'none','viewBox':_0x4d174b(0x34e),'width':'1em','height':_0x4d174b(0x1fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d174b(0x2ad)},'children':[{'tag':'path','attrs':{'stroke':_0x4d174b(0x195),'d':_0x4d174b(0x375),'strokeLinecap':_0x4d174b(0x3ae),'strokeLinejoin':_0x4d174b(0x3ae),'strokeWidth':1.2}}]},{'tag':_0x4d174b(0x161),'attrs':{},'children':[{'tag':_0x4d174b(0x3c1),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x4d174b(0x11e)}}]}]}],'defIds':[_0x4d174b(0x2b5)]},Us=_0xc5b87(function(_0x309041,_0x4064de){const _0x14b769=_0x4d174b;return _0x33566a(Ht,Object[_0x14b769(0xf0)]({},_0x309041,{'id':_0x14b769(0xff),'ref':_0x4064de,'icon':Or}));});Us['displayName']=_0x4d174b(0x2de);var Dr={'tag':_0x4d174b(0x3bf),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x4d174b(0x1fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d174b(0x2ba)},'children':[{'tag':_0x4d174b(0x31f),'attrs':{'stroke':_0x4d174b(0x195),'d':_0x4d174b(0x3a8),'strokeLinecap':'round','strokeLinejoin':_0x4d174b(0x3ae),'strokeWidth':1.2}}]},{'tag':_0x4d174b(0x161),'attrs':{},'children':[{'tag':_0x4d174b(0x3c1),'attrs':{'id':_0x4d174b(0x162)},'children':[{'tag':_0x4d174b(0x31f),'attrs':{'fill':_0x4d174b(0x302),'d':_0x4d174b(0x11e),'transform':_0x4d174b(0x3b3)}}]}]}],'defIds':[_0x4d174b(0x162)]},Ls=_0xc5b87(function(_0xbeb061,_0x3ee872){const _0x2450e6=_0x4d174b;return _0x33566a(Ht,Object[_0x2450e6(0xf0)]({},_0xbeb061,{'id':_0x2450e6(0x12c),'ref':_0x3ee872,'icon':Dr}));});Ls[_0x4d174b(0x246)]=_0x4d174b(0x17a);const Pr=_0x4d174b(0xf6),wr=_0x4d174b(0x1f2),Nr=_0x4d174b(0x2d0),Mr=_0x4d174b(0x2fb),Ar=_0x4d174b(0x220),be={'onlineStatusIcon':Pr,'onlineStatusTitle':wr,'onlineStatus':Nr,'online':Mr,'offline':Ar};function yr(_0x2b770d){const _0x2840d9=_0x4d174b;switch(_0x2b770d){case P[_0x2840d9(0x1fa)]:return _0x2840d9(0x119);case P[_0x2840d9(0x10b)]:return _0x2840d9(0x316);case P[_0x2840d9(0x189)]:return'collabStatus.fetchMiss';case P['NOT_COLLAB']:return _0x2840d9(0x266);case P[_0x2840d9(0x370)]:case P[_0x2840d9(0x2c1)]:case P['AWAITING_WITH_PENDING']:return _0x2840d9(0x2ec);case P['SYNCED']:return _0x2840d9(0x3f0);}}function Ur(_0x4b4f1f){const _0x1cfaeb=_0x4d174b,{status$:_0x2cedf4}=_0x4b4f1f,_0x507cf0=_0x3425e9(_0x2cedf4,P['NOT_COLLAB']),_0x10a931=_0x3c7014(_0x35ebff),_0xe12c52=_0x507cf0!==P[_0x1cfaeb(0x1fa)],_0x3c8b67=_0x10a931['t'](yr(_0x507cf0)),_0x2a4018=_0x4b7a4e(be[_0x1cfaeb(0x285)],{[be['online']]:_0xe12c52,[be[_0x1cfaeb(0x172)]]:!_0xe12c52}),_0x224b01=_0xe12c52?_0x33deb0[_0x1cfaeb(0xd7)](Ls,null):_0x33deb0[_0x1cfaeb(0xd7)](Us,null);return _0x33deb0[_0x1cfaeb(0xd7)](_0x1cfaeb(0xbd),{'className':_0x2a4018},_0x33deb0[_0x1cfaeb(0xd7)]('div',{'className':be[_0x1cfaeb(0x2cc)]},_0x224b01),_0x33deb0['createElement']('div',{'className':be[_0x1cfaeb(0x360)]},_0x3c8b67));}var Lr=Object[_0x4d174b(0x1e3)],$r=Object['getOwnPropertyDescriptor'],jr=(_0x4a6c26,_0x5c41ef,_0x7807e1,_0x338606)=>{const _0x3e5efc=_0x4d174b;for(var _0x1b0492=_0x338606>0x1?void 0x0:_0x338606?$r(_0x5c41ef,_0x7807e1):_0x5c41ef,_0x4120f2=_0x4a6c26[_0x3e5efc(0x2e1)]-0x1,_0x4a3df8;_0x4120f2>=0x0;_0x4120f2--)(_0x4a3df8=_0x4a6c26[_0x4120f2])&&(_0x1b0492=(_0x338606?_0x4a3df8(_0x5c41ef,_0x7807e1,_0x1b0492):_0x4a3df8(_0x1b0492))||_0x1b0492);return _0x338606&&_0x1b0492&&Lr(_0x5c41ef,_0x7807e1,_0x1b0492),_0x1b0492;},Ue=(_0xcc0721,_0x54722a)=>(_0x1941be,_0x131069)=>_0x54722a(_0x1941be,_0x131069,_0xcc0721);let He=class extends _0x3d777f{constructor(_0x15e73a,_0x2eb855,_0x548f5e,_0x457fba){const _0x4c4d0c=_0x4d174b;super(),l(this,_0x4c4d0c(0x259),new _0x16da12(P[_0x4c4d0c(0x2c5)])),(this['_univerInstanceService']=_0x15e73a,this[_0x4c4d0c(0x3d8)]=_0x2eb855,this[_0x4c4d0c(0x36e)]=_0x548f5e,this[_0x4c4d0c(0x260)]=_0x457fba,this[_0x4c4d0c(0x1af)](),this['_initStatusListener']());}['_initStatusComponent'](){const _0x293d6a=_0x4d174b;this[_0x293d6a(0xe4)](this[_0x293d6a(0x3d8)][_0x293d6a(0x239)](_0x36ca7a[_0x293d6a(0x348)],()=>_0x5578f9(xr({'status$':this[_0x293d6a(0x259)][_0x293d6a(0x3bd)]()}),this[_0x293d6a(0x36e)])));}[_0x4d174b(0x104)](){const _0x32c74d=_0x4d174b;this['disposeWithMe'](_0x521fe6(this[_0x32c74d(0x115)][_0x32c74d(0x12e)]['pipe'](_0x46582b(()=>{const _0x3d277a=_0x32c74d,_0x5ce6b1=this[_0x3d277a(0x115)][_0x3d277a(0x276)]();return _0x5ce6b1?this['_collaborationController'][_0x3d277a(0x2ed)](_0x5ce6b1[_0x3d277a(0x150)]()):_0x1e95ea(null);}),_0x46582b(_0xbe4d20=>_0xbe4d20?_0xbe4d20[_0x32c74d(0x2d8)]:_0x1e95ea(P['NOT_COLLAB'])))['subscribe'](_0x191a98=>{const _0x51c7df=_0x32c74d;this[_0x51c7df(0x259)][_0x51c7df(0xe2)](_0x191a98);})));}};He=jr([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],He),Ue(0x0,_0x2269ec),Ue(0x1,_0xe5448f),Ue(0x2,_0x5b671c(_0x49e10e)),Ue(0x3,_0x5b671c(Oe))],He);function xr(_0x20868a){const {status$:_0x2a746e}=_0x20868a;return function(){const _0x262882=_0x2798;return _0x33deb0[_0x262882(0xd7)](Ur,{'status$':_0x2a746e});};}const $s=_0x20ae42('uni.network.url-service');var Hr=Object[_0x4d174b(0x1e3)],kr=Object[_0x4d174b(0x13f)],Fr=(_0x4959eb,_0x317b75,_0x485dec,_0x502b5f)=>{const _0x270d5a=_0x4d174b;for(var _0x394c60=_0x502b5f>0x1?void 0x0:_0x502b5f?kr(_0x317b75,_0x485dec):_0x317b75,_0x31852a=_0x4959eb[_0x270d5a(0x2e1)]-0x1,_0x4f2e86;_0x31852a>=0x0;_0x31852a--)(_0x4f2e86=_0x4959eb[_0x31852a])&&(_0x394c60=(_0x502b5f?_0x4f2e86(_0x317b75,_0x485dec,_0x394c60):_0x4f2e86(_0x394c60))||_0x394c60);return _0x502b5f&&_0x394c60&&Hr(_0x317b75,_0x485dec,_0x394c60),_0x394c60;},he=(_0x38cdce,_0x17b669)=>(_0x4ba5af,_0x16af7d)=>_0x17b669(_0x4ba5af,_0x16af7d,_0x38cdce);let ke=class extends _0x52c754{constructor(_0x1487f6,_0x4d5921,_0x5cc1c7,_0x315694,_0x2f6468,_0xd8fdf8){const _0x216279=_0x4d174b;super(),this[_0x216279(0x1ad)]=_0x1487f6,this[_0x216279(0x30a)]=_0x4d5921,this[_0x216279(0x178)]=_0x5cc1c7,this['_localCacheService']=_0x315694,this[_0x216279(0x32b)]=_0x2f6468,_0xd8fdf8?_0xd8fdf8==null||_0xd8fdf8[_0x216279(0x14c)]()[_0x216279(0x346)](()=>this[_0x216279(0x2a6)]()):(this[_0x216279(0x30a)][_0x216279(0x24d)](_0x216279(0x35e),_0x216279(0x308)),this[_0x216279(0x2a6)]());}async[_0x4d174b(0x2a6)](){const _0x20a677=_0x4d174b,_0x5266aa=this['_urlService']['getParam'](_0x20a677(0x2a1)),_0x8a9aad=this[_0x20a677(0x1ad)][_0x20a677(0x37b)](_0x20a677(0x13a));if(!_0x5266aa||!_0x8a9aad){this[_0x20a677(0x30a)][_0x20a677(0x24d)](_0x20a677(0x35e),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x8a9aad)){case j[_0x20a677(0x202)]:{const _0x2c44f6=await this['_loadSheet'](_0x5266aa);this[_0x20a677(0x23c)](_0x2c44f6);break;}case j['UNIVER_DOC']:{await this['_loadDoc'](_0x5266aa);break;}default:{this[_0x20a677(0x30a)][_0x20a677(0xba)](_0x20a677(0x35e),_0x20a677(0x2d3));break;}}}async[_0x4d174b(0x23c)](_0x3a2d3b){const _0xca1606=_0x4d174b;await this[_0xca1606(0x351)](_0x3a2d3b),_0x3a2d3b[_0xca1606(0x112)][_0xca1606(0xbe)](_0xf80876(this['dispose$']))[_0xca1606(0x269)](_0x47f37f=>{_0x47f37f&&this['_updateURLWithCurrentState'](_0x47f37f);}),this[_0xca1606(0x1ad)]['urlChange$']['pipe'](_0xf80876(this[_0xca1606(0xdd)]))[_0xca1606(0x269)](()=>this[_0xca1606(0x351)](_0x3a2d3b));}[_0x4d174b(0x385)](_0x30d331,_0x310243=!0x1){const _0x303927=_0x4d174b,_0x3a18b7=this['_urlService'][_0x303927(0x37b)](_0x303927(0x3e3));_0x30d331[_0x303927(0x200)]()!==_0x3a18b7&&this[_0x303927(0x1ad)][_0x303927(0x12b)](_0x303927(0x3e3),_0x30d331[_0x303927(0x200)](),_0x310243);}async[_0x4d174b(0x351)](_0x45edd9){const _0x10ab21=_0x4d174b;var _0x52aa25;const _0x29143b=this[_0x10ab21(0x1ad)][_0x10ab21(0x37b)](_0x10ab21(0x3e3));if(!_0x29143b||!_0x45edd9[_0x10ab21(0x2e7)](_0x29143b)){const _0x4b4903=_0x45edd9['getUnhiddenWorksheets']()[0x0],_0x1da3b8=_0x45edd9[_0x10ab21(0x2e7)](_0x4b4903);if(!_0x1da3b8)return;this['_updateURLWithCurrentState'](_0x1da3b8,!0x0),await this['_commandService'][_0x10ab21(0x365)](_0x1149a2['id'],{'unitId':_0x45edd9[_0x10ab21(0x150)](),'subUnitId':_0x4b4903});return;}((_0x52aa25=_0x45edd9[_0x10ab21(0x166)]())==null?void 0x0:_0x52aa25[_0x10ab21(0x200)]())!==_0x29143b&&await this[_0x10ab21(0x178)][_0x10ab21(0x365)](_0x1149a2['id'],{'unitId':_0x45edd9[_0x10ab21(0x150)](),'subUnitId':_0x29143b});}async[_0x4d174b(0x256)](_0x3e7dea){const _0x55ef7b=_0x4d174b;let _0x58f70c=0x0;const _0x1c1afd=await this[_0x55ef7b(0xca)]['loadOfflineData'](_0x3e7dea);return _0x1c1afd&&(_0x1c1afd[_0x55ef7b(0x3ed)]||_0x1c1afd[_0x55ef7b(0x185)][_0x55ef7b(0x2e1)]!==0x0)&&(_0x58f70c=_0x1c1afd[_0x55ef7b(0x1ff)]),_0x58f70c===0x0&&this[_0x55ef7b(0x30a)][_0x55ef7b(0x24d)]('[DataLoaderController]',_0x55ef7b(0x253)),this[_0x55ef7b(0x32b)][_0x55ef7b(0x3be)](_0x3e7dea,_0x58f70c);}async[_0x4d174b(0x3a2)](_0x35cc9d){const _0x3edb0c=_0x4d174b;let _0x51c542=0x0;const _0x156dae=await this[_0x3edb0c(0xca)][_0x3edb0c(0x2f9)](_0x35cc9d);return _0x156dae&&(_0x156dae[_0x3edb0c(0x3ed)]||_0x156dae[_0x3edb0c(0x185)][_0x3edb0c(0x2e1)]!==0x0)&&(_0x51c542=_0x156dae[_0x3edb0c(0x1ff)]),_0x51c542===0x0&&this[_0x3edb0c(0x30a)][_0x3edb0c(0x24d)](_0x3edb0c(0x35e),_0x3edb0c(0x253)),this[_0x3edb0c(0x32b)][_0x3edb0c(0xcc)](_0x35cc9d,_0x51c542);}};ke=Fr([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],ke),he(0x0,$s),he(0x1,_0x50a504),he(0x2,_0x5bc562),he(0x3,_0x5b671c(O)),he(0x4,_0x5b671c(_0x8be8c0)),he(0x5,_0x466fab(_0xd560c9))],ke);var Vr=Object['defineProperty'],Br=Object[_0x4d174b(0x13f)],Wr=(_0x2760e2,_0x54c299,_0x1d089b,_0xf5b61b)=>{const _0x305934=_0x4d174b;for(var _0x4d6ece=_0xf5b61b>0x1?void 0x0:_0xf5b61b?Br(_0x54c299,_0x1d089b):_0x54c299,_0x529aaf=_0x2760e2[_0x305934(0x2e1)]-0x1,_0x48a3ad;_0x529aaf>=0x0;_0x529aaf--)(_0x48a3ad=_0x2760e2[_0x529aaf])&&(_0x4d6ece=(_0xf5b61b?_0x48a3ad(_0x54c299,_0x1d089b,_0x4d6ece):_0x48a3ad(_0x4d6ece))||_0x4d6ece);return _0xf5b61b&&_0x4d6ece&&Vr(_0x54c299,_0x1d089b,_0x4d6ece),_0x4d6ece;},os=(_0x32e87c,_0x1274e8)=>(_0x12564a,_0x3c8082)=>_0x1274e8(_0x12564a,_0x3c8082,_0x32e87c);const Gr='DEFAULT_FILE_NAME',Yr=_0x4d174b(0x16e);let Fe=class extends _0x3d777f{constructor(_0x47a93b,_0x3cc56a){const _0x181922=_0x4d174b;super(),this[_0x181922(0x115)]=_0x47a93b,this[_0x181922(0x229)]=_0x3cc56a,this[_0x181922(0x2a6)]();}[_0x4d174b(0x2a6)](){const _0x5342f4=_0x4d174b;this['disposeWithMe'](_0x521fe6(this[_0x5342f4(0x115)]['focused$']['subscribe'](()=>{const _0x2955ca=_0x5342f4;var _0x1f3ae3;const _0x3f3681=this[_0x2955ca(0x115)]['getFocusedUnit']();let _0x487792=(_0x1f3ae3=this['_configService'][_0x2955ca(0x1f0)](Gr))!=null?_0x1f3ae3:Yr;_0x3f3681 instanceof _0x391489&&(_0x487792=_0x3f3681[_0x2955ca(0x22e)]),document[_0x2955ca(0x100)]=_0x487792;})));}};Fe=Wr([_0xbfca41(_0x5b23af['Ready'],Fe),os(0x0,_0x2269ec),os(0x1,_0x15fd76)],Fe);var Kr=Object[_0x4d174b(0x1e3)],Xr=Object['getOwnPropertyDescriptor'],Jr=(_0x362175,_0x155b50,_0x353363,_0x3eb165)=>{const _0x4dd4ee=_0x4d174b;for(var _0xddbf03=_0x3eb165>0x1?void 0x0:_0x3eb165?Xr(_0x155b50,_0x353363):_0x155b50,_0x1831c1=_0x362175[_0x4dd4ee(0x2e1)]-0x1,_0x306319;_0x1831c1>=0x0;_0x1831c1--)(_0x306319=_0x362175[_0x1831c1])&&(_0xddbf03=(_0x3eb165?_0x306319(_0x155b50,_0x353363,_0xddbf03):_0x306319(_0xddbf03))||_0xddbf03);return _0x3eb165&&_0xddbf03&&Kr(_0x155b50,_0x353363,_0xddbf03),_0xddbf03;},as=(_0x4cd861,_0x36ea31)=>(_0x544a6d,_0xc1be50)=>_0x36ea31(_0x544a6d,_0xc1be50,_0x4cd861);let Rt=class{constructor(_0x3688a0,_0x24fcaa){const _0x4ea54c=_0x4d174b;this[_0x4ea54c(0x229)]=_0x3688a0,this[_0x4ea54c(0x145)]=_0x24fcaa;}async[_0x4d174b(0x1aa)](_0xf9bf98,_0x2b9162){const _0x302430=_0x4d174b;var _0x5ecf7e;const {unitID:_0x1d18d1,type:_0x38f90a,revision:_0xdb6ad6=0x0}=_0x2b9162,_0xce412c=this[_0x302430(0x35d)]()+'/'+_0x38f90a+'/unit/'+_0x1d18d1+_0x302430(0x17e)+_0xdb6ad6,_0xf31f68=(await this[_0x302430(0x145)]['get'](_0xce412c))[_0x302430(0x154)],_0x2a1e0a=(_0x5ecf7e=_0xf31f68[_0x302430(0x193)])==null?void 0x0:_0x5ecf7e[_0x302430(0x163)];if(_0x2a1e0a){const _0x17dc60=_0x2a1e0a==null?void 0x0:_0x2a1e0a[_0x302430(0x38a)],_0x491cf8=_0x52ba54['encode'](_0x44db7c(_0x17dc60));_0x2a1e0a['originalMeta']=_0x491cf8,Object[_0x302430(0x1bc)](_0x2a1e0a[_0x302430(0x29d)])[_0x302430(0x1cb)](([,_0xb94251])=>{const _0x5b06cd=_0x302430,_0x2d8cc8=_0xb94251[_0x5b06cd(0x38a)],_0x5af500=_0x52ba54[_0x5b06cd(0x26a)](_0x44db7c(_0x2d8cc8));_0xb94251[_0x5b06cd(0x38a)]=_0x5af500;});}return _0xf31f68;}async['getSheetBlock'](_0x31fcc5,_0x53c856){const _0xf3564d=_0x4d174b,{unitID:_0x1bd355,type:_0x51a646,blockID:_0x4ff80b}=_0x53c856,_0x1e836c=this[_0xf3564d(0x157)]()+'/'+_0x51a646+_0xf3564d(0x2f5)+_0x1bd355+_0xf3564d(0x1fe)+_0x4ff80b;return(await this['_httpService']['get'](_0x1e836c))['body'];}async[_0x4d174b(0x11b)](_0x2101c2,_0x281add){const _0x19a727=_0x4d174b,{unitID:_0x383ee6,type:_0x25461a,from:_0x387299,to:_0x3387c4}=_0x281add,_0x35afe8=this[_0x19a727(0x157)]()+'/'+_0x25461a+_0x19a727(0x2f5)+_0x383ee6+_0x19a727(0x25b)+_0x387299+_0x19a727(0x21a)+_0x3387c4;return(await this['_httpService']['get'](_0x35afe8))[_0x19a727(0x154)];}[_0x4d174b(0x35d)](){const _0x14fce7=_0x4d174b;var _0x16d970;return(_0x16d970=this['_configService'][_0x14fce7(0x1f0)](en))!=null?_0x16d970:this[_0x14fce7(0x157)]();}['_getAPIPrefix'](){const _0x1e9bc1=_0x4d174b;var _0x47526c;return(_0x47526c=this[_0x1e9bc1(0x229)][_0x1e9bc1(0x1f0)](Zi))!=null?_0x47526c:Qi;}async['getResourcesRequest'](_0x56e2a8,_0x5cd1cb){const _0x45f60f=_0x4d174b,_0x328542='/universer-api/snapshot/'+_0x5cd1cb[_0x45f60f(0x13a)]+_0x45f60f(0x2f5)+_0x5cd1cb[_0x45f60f(0x1e2)]+_0x45f60f(0x311);return(await this[_0x45f60f(0x145)]['get'](_0x328542,{'params':{'resourceId':JSON['stringify'](_0x5cd1cb[_0x45f60f(0x3e6)])}}))[_0x45f60f(0x154)];}[_0x4d174b(0x354)](){const _0x1942c0=_0x4d174b;throw new Error(_0x1942c0(0x30b));}['saveSheetBlock'](){const _0x5ddfc8=_0x4d174b;throw new Error(_0x5ddfc8(0x30b));}[_0x4d174b(0x3a0)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Rt=Jr([as(0x0,_0x15fd76),as(0x1,_0x5b671c(_0x45a59b))],Rt);var qr=Object[_0x4d174b(0x1e3)],zr=Object[_0x4d174b(0x13f)],Zr=(_0x1f16ed,_0x5e35f2,_0x192b55,_0x3d64b6)=>{const _0x801a39=_0x4d174b;for(var _0x3c9fab=_0x3d64b6>0x1?void 0x0:_0x3d64b6?zr(_0x5e35f2,_0x192b55):_0x5e35f2,_0x41cbf6=_0x1f16ed[_0x801a39(0x2e1)]-0x1,_0x173568;_0x41cbf6>=0x0;_0x41cbf6--)(_0x173568=_0x1f16ed[_0x41cbf6])&&(_0x3c9fab=(_0x3d64b6?_0x173568(_0x5e35f2,_0x192b55,_0x3c9fab):_0x173568(_0x3c9fab))||_0x3c9fab);return _0x3d64b6&&_0x3c9fab&&qr(_0x5e35f2,_0x192b55,_0x3c9fab),_0x3c9fab;},Te=(_0x10b3e5,_0x149225)=>(_0x2f0540,_0x130ed3)=>_0x149225(_0x2f0540,_0x130ed3,_0x10b3e5);let Ot=class extends _0xca3891{constructor(_0x3e3717,_0x4d67fb,_0x4fa724,_0x1c32ef,_0x3fa252){const _0x17a251=_0x4d174b;super(_0x3e3717,_0x4d67fb,_0x4fa724),this[_0x17a251(0x3ca)]=_0x1c32ef,this[_0x17a251(0x30a)]=_0x3fa252;}[_0x4d174b(0x2a9)](_0x5c862c,_0x54cb19){const _0x5ee210=_0x4d174b,_0x5ec9ed=this[_0x5ee210(0x153)](_0x5c862c);if(_0x5ec9ed)try{const _0x4d30b7=this[_0x5ee210(0x10a)](_0x5ec9ed,_0x54cb19);this[_0x5ee210(0xd3)](_0x5c862c,_0x4d30b7);}catch(_0x2fc881){this[_0x5ee210(0x30a)][_0x5ee210(0xba)](_0x5ee210(0x39c),_0x2fc881),this['_clearUndo'](_0x5c862c);}const _0x16d52d=this['_getRedoStack'](_0x5c862c);if(_0x16d52d)try{const _0x40ef6f=this[_0x5ee210(0x10a)](_0x16d52d,_0x54cb19);this[_0x5ee210(0x198)](_0x5c862c,_0x40ef6f);}catch(_0x23e4b6){this['_logService'][_0x5ee210(0xba)](_0x23e4b6),this[_0x5ee210(0x329)](_0x5c862c);}}['_clearUndo'](_0x2f6b0a){const _0x4be6f7=_0x4d174b,_0x164053=this[_0x4be6f7(0x153)](_0x2f6b0a);_0x164053&&(_0x164053[_0x4be6f7(0x2e1)]=0x0,this['_updateStatus']());}[_0x4d174b(0x329)](_0x3ed24a){const _0xb09014=_0x4d174b,_0x16d9c0=this[_0xb09014(0x38e)](_0x3ed24a);_0x16d9c0&&(_0x16d9c0[_0xb09014(0x2e1)]=0x0,this[_0xb09014(0x2b1)]());}[_0x4d174b(0xd3)](_0x38ab20,_0x9922a1){const _0x52d808=_0x4d174b;this[_0x52d808(0x177)][_0x52d808(0x34a)](_0x38ab20,_0x9922a1),this[_0x52d808(0x2b1)]();}['_substituteRedoStack'](_0x5ba6b3,_0x193e2c){const _0x27f913=_0x4d174b;this[_0x27f913(0x2b0)][_0x27f913(0x34a)](_0x5ba6b3,_0x193e2c),this[_0x27f913(0x2b1)]();}[_0x4d174b(0x10a)](_0x2ce5c8,_0x31a1a1){const _0x5b582e=_0x4d174b,_0x28b59=[];let _0x5f14fd=_0x31a1a1,_0x1e0ff9=_0x31a1a1;for(let _0x3055c0=_0x2ce5c8[_0x5b582e(0x2e1)]-0x1;_0x3055c0>=0x0;_0x3055c0--){const {unitID:_0x2639cf,undoMutations:_0x2fd30f,redoMutations:_0x46583d}=_0x2ce5c8[_0x3055c0],_0x531ac1=this['_transformService'][_0x5b582e(0x147)](_0x5f14fd,_0x2fd30f),_0x4ab571=this[_0x5b582e(0x3ca)]['transformMutationsWithChangeset'](_0x1e0ff9,_0x46583d);if(_0x3d1247(_0x531ac1)||_0x3d1247(_0x4ab571)){this[_0x5b582e(0x30a)][_0x5b582e(0xba)](_0x5b582e(0x39c),_0x5b582e(0x110),_0x531ac1,_0x4ab571);break;}_0x5f14fd=_0x531ac1[_0x5b582e(0x2e4)],_0x1e0ff9=_0x4ab571[_0x5b582e(0x2e4)],_0x28b59[_0x5b582e(0x328)]({'unitID':_0x2639cf,'undoMutations':_0x531ac1['m2Prime'],'redoMutations':_0x4ab571[_0x5b582e(0x160)]});}return _0x28b59['reverse']();}};Ot=Zr([Te(0x0,_0x2269ec),Te(0x1,_0x5bc562),Te(0x2,_0x1a042d),Te(0x3,_0x174d0f),Te(0x4,_0x50a504)],Ot);class Qr extends _0x52c754{constructor(){const _0x2e082a=_0x4d174b;super(),l(this,_0x2e082a(0x3c7)),this[_0x2e082a(0x3c7)]=_0x2a799c(window,_0x2e082a(0x125))[_0x2e082a(0xbe)](_0xf80876(this['dispose$']),_0x1c7dea(0x1),_0x33a766(void 0x0));}[_0x4d174b(0x12b)](_0x4feb92,_0x1397fb,_0x144b30=!0x1){const _0x4385e5=_0x4d174b,_0xcec4b3=new URL(window[_0x4385e5(0x281)][_0x4385e5(0x272)]);_0xcec4b3[_0x4385e5(0x134)][_0x4385e5(0x34a)](_0x4feb92,_0x1397fb),_0x144b30?window[_0x4385e5(0x232)][_0x4385e5(0x383)]('','',_0xcec4b3['toString']()):window[_0x4385e5(0x232)][_0x4385e5(0x231)]('','',_0xcec4b3[_0x4385e5(0xec)]());}[_0x4d174b(0x124)](_0x4ac034,_0x377a7c=!0x1){const _0x7c0e14=_0x4d174b,_0x1415ca=new URL(window[_0x7c0e14(0x281)][_0x7c0e14(0x272)]);_0x1415ca[_0x7c0e14(0x134)][_0x7c0e14(0x3e4)](_0x4ac034),_0x377a7c?window[_0x7c0e14(0x232)][_0x7c0e14(0x383)]('','',_0x1415ca[_0x7c0e14(0xec)]()):window[_0x7c0e14(0x232)][_0x7c0e14(0x231)]('','',_0x1415ca[_0x7c0e14(0xec)]());}[_0x4d174b(0x37b)](_0x1e1feb){const _0x10d51b=_0x4d174b;var _0x53d62f;return(_0x53d62f=new URL(window[_0x10d51b(0x281)][_0x10d51b(0x272)])[_0x10d51b(0x134)]['get'](_0x1e1feb))!=null?_0x53d62f:void 0x0;}}const _t=_0x4d174b(0x2bf),eo=_0x4d174b(0xf7),Le=0x6,to=1.5,ut=0x4,so=1.5,io=_0x4d174b(0x24c);class no{constructor(_0x32a81f,_0x37acd7,_0xa444e8,_0x1e61ca){const _0xa2905e=_0x4d174b;l(this,_0xa2905e(0x2b6),[]),l(this,_0xa2905e(0x2bd),null),l(this,_0xa2905e(0x1a8),null),l(this,_0xa2905e(0x18a),null),l(this,_0xa2905e(0x290),null),l(this,'_eventUnsubscribe',null),(this[_0xa2905e(0x2f4)]=_0x32a81f,this[_0xa2905e(0x274)]=_0x37acd7,this[_0xa2905e(0x15f)]=_0xa444e8,this[_0xa2905e(0x117)]=_0x1e61ca,this[_0xa2905e(0x39f)]());}set[_0x4d174b(0x2b4)](_0x4c063c){const _0x56bedd=_0x4d174b;_0x4c063c?(this[_0x56bedd(0x18a)]&&this[_0x56bedd(0x18a)][_0x56bedd(0x3c3)](),this[_0x56bedd(0x1a8)]&&this[_0x56bedd(0x1a8)][_0x56bedd(0x199)]()):(this[_0x56bedd(0x18a)]&&this[_0x56bedd(0x18a)]['show'](),this[_0x56bedd(0x1a8)]&&this[_0x56bedd(0x1a8)]['hide']());}[_0x4d174b(0x15b)](){const _0x4712c6=_0x4d174b;for(const _0x58b79a of this[_0x4712c6(0x2b6)])_0x58b79a['dispose']();this[_0x4712c6(0x1a8)]&&this[_0x4712c6(0x1a8)][_0x4712c6(0x15b)](),this[_0x4712c6(0x18a)]&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x4712c6(0x2bd)][_0x4712c6(0x15b)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x4d174b(0x39f)](){const _0x3dc542=_0x4d174b,{_docSkeleton:_0x141375,_document:_0x486227}=this,{color:_0x1b34f1,name:_0x39c705,ranges:_0x4311be}=this[_0x3dc542(0x2f4)],_0x23f899=_0x486227[_0x3dc542(0x2cf)](),{docsLeft:_0x1c47b8,docsTop:_0x308dd1}=_0x23f899,_0x3a52fd=new _0x45f833(_0x23f899,_0x141375);for(const {startOffset:_0x132210,endOffset:_0x9194e5,collapsed:_0x3dc468,isActive:_0x44feb9}of _0x4311be){const _0x366e83=_0x141375['findNodePositionByCharIndex'](_0x132210),_0x88a552=_0x141375[_0x3dc542(0x114)](_0x9194e5);if(_0x44feb9){const {contentBoxPointGroup:_0x18e8d9}=_0x3a52fd[_0x3dc542(0x282)](_0x88a552,_0x88a552);if(_0x18e8d9[_0x3dc542(0x2e1)]===0x0)continue;this['_drawAnchor'](_0x1b34f1,_0x18e8d9,_0x1c47b8,_0x308dd1,_0x39c705),this[_0x3dc542(0x113)]=this[_0x3dc542(0xe3)]();}if(!_0x3dc468){const {contentBoxPointGroup:_0x561eaf}=_0x3a52fd[_0x3dc542(0x282)](_0x366e83,_0x88a552);if(_0x561eaf[_0x3dc542(0x2e1)]===0x0)continue;this[_0x3dc542(0xcf)](_0x1b34f1,_0x561eaf,_0x1c47b8,_0x308dd1);}}}[_0x4d174b(0x233)](_0x536560,_0x17b34e,_0x3e09e6,_0x4a66bc,_0x1da390){const _0x299b6f=_0x4d174b,_0x1404c1=this[_0x299b6f(0x291)](_0x17b34e),{left:_0x5226ff,top:_0xffae6,height:_0x331bd6}=_0x1404c1,_0x381a6e=this[_0x299b6f(0x1d3)](),_0x556888=so/_0x381a6e,_0xf0356b=new _0x390a18(_t+_0x1053dd[_0x299b6f(0x31d)](Le),{'left':_0x5226ff+_0x3e09e6-_0x556888,'top':_0xffae6+_0x4a66bc,'height':_0x331bd6,'width':to,'fill':_0x536560||_0x420307(_0x375c72['black'],0x0),'strokeWidth':_0x556888,'stroke':io,'evented':!0x0});this[_0x299b6f(0x2bd)]=_0xf0356b,this[_0x299b6f(0x274)][_0x299b6f(0x208)](_0xf0356b,_0x22a117);const _0x1d8098=new _0x390a18(_t+_0x1053dd['generateRandomId'](Le),{'left':_0x5226ff+_0x3e09e6-_0x556888,'top':_0xffae6+_0x4a66bc-ut/0x2,'height':ut,'width':ut,'fill':_0x536560||_0x420307(_0x375c72[_0x299b6f(0x26c)],0x0),'strokeWidth':0x0,'stroke':_0x536560||_0x420307(_0x375c72[_0x299b6f(0x26c)],0x0),'evented':!0x1});this[_0x299b6f(0x18a)]=_0x1d8098,this[_0x299b6f(0x274)]['addObject'](_0x1d8098,_0x22a117);const _0x114dd7=new st(_t+_0x1053dd['generateRandomId'](Le),{'left':_0x5226ff+_0x3e09e6-_0x556888,'top':_0xffae6+_0x4a66bc-we,'text':_0x1da390,'color':_0x536560});this[_0x299b6f(0x1a8)]=_0x114dd7,this['_scene'][_0x299b6f(0x208)](_0x114dd7,_0x22a117),this[_0x299b6f(0x2b4)]=!0x1;}[_0x4d174b(0xe3)](){const _0x51be6b=_0x4d174b,_0x20221b=this[_0x51be6b(0x2bd)][_0x51be6b(0x271)][_0x51be6b(0x35c)](()=>{this['_hover']=!0x0;}),_0x577e32=this[_0x51be6b(0x2bd)][_0x51be6b(0x1ee)][_0x51be6b(0x35c)](()=>{const _0x370526=_0x51be6b;this[_0x370526(0x290)]&&clearTimeout(this[_0x370526(0x290)]),this['_hideTimer']=setTimeout(()=>{const _0xac8c8c=_0x370526;this[_0xac8c8c(0x2b4)]=!0x1;},0x7d0);});return()=>{const _0x432da6=_0x51be6b;_0x20221b[_0x432da6(0xc6)](),_0x577e32[_0x432da6(0xc6)]();};}[_0x4d174b(0xcf)](_0x43d08a,_0x567093,_0x5d9dba,_0x506bfe){const _0x389555=_0x4d174b,_0x472c06=new _0x2cf8bf(_0x43d08a)[_0x389555(0x321)](0.2)[_0x389555(0x214)](),_0x4e36c4=new _0x1960e1(eo+_0x1053dd[_0x389555(0x31d)](Le),{'pointsGroup':_0x567093,'fill':_0x472c06||_0x420307(_0x375c72[_0x389555(0x26c)],0.2),'left':_0x5d9dba,'top':_0x506bfe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x389555(0x2b6)]['push'](_0x4e36c4),this[_0x389555(0x274)]['addObject'](_0x4e36c4,_0x22a117);}[_0x4d174b(0x291)](_0x4ae052){const _0x603fe7=_0x4ae052[0x0],_0x254682=_0x603fe7[0x0],_0xeadaf1=_0x603fe7[0x2],{x:_0x57f7fc,y:_0x17007e}=_0x254682,{x:_0x30d601,y:_0x924f8d}=_0xeadaf1;return{'left':_0x57f7fc,'top':_0x17007e,'width':_0x30d601-_0x57f7fc,'height':_0x924f8d-_0x17007e};}[_0x4d174b(0x1d3)](){const _0x50be3e=_0x4d174b,{scaleX:_0x5a9ac5,scaleY:_0x26ebe4}=this[_0x50be3e(0x274)][_0x50be3e(0x3eb)]();return Math[_0x50be3e(0x397)](_0x5a9ac5,_0x26ebe4);}}var ro=Object[_0x4d174b(0x1e3)],oo=Object[_0x4d174b(0x13f)],ao=(_0x7ee356,_0x1dff31,_0x11e2b9,_0xf24f4e)=>{for(var _0x14fdff=_0xf24f4e>0x1?void 0x0:_0xf24f4e?oo(_0x1dff31,_0x11e2b9):_0x1dff31,_0x1f6fa5=_0x7ee356['length']-0x1,_0x4e6885;_0x1f6fa5>=0x0;_0x1f6fa5--)(_0x4e6885=_0x7ee356[_0x1f6fa5])&&(_0x14fdff=(_0xf24f4e?_0x4e6885(_0x1dff31,_0x11e2b9,_0x14fdff):_0x4e6885(_0x14fdff))||_0x14fdff);return _0xf24f4e&&_0x14fdff&&ro(_0x1dff31,_0x11e2b9,_0x14fdff),_0x14fdff;},$e=(_0x2923c0,_0x24b226)=>(_0x2e60a1,_0x24519d)=>_0x24b226(_0x2e60a1,_0x24519d,_0x2923c0);let Ve=class extends _0x52c754{constructor(_0x3fe818,_0xb11fa0,_0x3f8359,_0x1ed71c,_0x33dd2f){const _0x2e199b=_0x4d174b;super(),l(this,_0x2e199b(0x3c2),[]),(this['_context']=_0x3fe818,this[_0x2e199b(0x2e2)]=_0xb11fa0,this['_collabCursorController']=_0x3f8359,this[_0x2e199b(0x2c3)]=_0x1ed71c,this['_themeService']=_0x33dd2f,this['_init']());}['_init'](){const _0x246c4a=_0x4d174b,_0x23f7d7=this[_0x246c4a(0x12d)][_0x246c4a(0x22a)],_0x2dcff4=this[_0x246c4a(0x2e2)];this[_0x246c4a(0xe4)](_0x2d61f0([this[_0x246c4a(0x2ee)]['getCollabCursors$'](_0x23f7d7),this[_0x246c4a(0x2b9)][_0x246c4a(0x3c0)]])['pipe'](_0x120a2e(([_0x395bc3,_0x1e7968])=>({'skeleton':_0x2dcff4['getSkeleton'](),'cursors':[..._0x395bc3[_0x246c4a(0x1eb)]()][_0x246c4a(0x352)](_0x1421b6=>({..._0x1421b6,'color':_0x1e7968[_0x1421b6[_0x246c4a(0x377)]]}))})))[_0x246c4a(0x269)](_0xfd2039=>{const _0x1d686b=_0x246c4a;if(this[_0x1d686b(0x3ce)](),_0xfd2039){const {skeleton:_0xc7aa88,cursors:_0x57e04f}=_0xfd2039;this[_0x1d686b(0x2b3)](_0xc7aa88,_0x57e04f);}}));}['_updateCollabCursors'](_0x1265fd,_0x4e5309){const _0x41c5fe=_0x4d174b,{scene:_0x91a442,mainComponent:_0x740780}=this['_context'],_0x451c5d=_0x4e5309[_0x41c5fe(0x288)](_0x3396ed=>new no(_0x3396ed,_0x91a442,_0x1265fd,_0x740780));this[_0x41c5fe(0x3c2)]=_0x451c5d;}[_0x4d174b(0x3ce)](){const _0x2b8f1a=_0x4d174b;this[_0x2b8f1a(0x3c2)][_0x2b8f1a(0x1cb)](_0x4cabaf=>_0x4cabaf[_0x2b8f1a(0x15b)]()),this[_0x2b8f1a(0x3c2)]=[];}};Ve=ao([_0xbfca41(_0x5b23af['Steady'],Ve),$e(0x1,_0x5b671c(_0x20b350)),$e(0x2,_0x5b671c(me)),$e(0x3,_0xa71c3c),$e(0x4,_0x5b671c(_0x2191ad))],Ve);var co=Object[_0x4d174b(0x1e3)],ho=Object['getOwnPropertyDescriptor'],lo=(_0x1facc2,_0x32a06c,_0x769da3,_0x1cdc84)=>{for(var _0x53a9e2=_0x1cdc84>0x1?void 0x0:_0x1cdc84?ho(_0x32a06c,_0x769da3):_0x32a06c,_0xabf11d=_0x1facc2['length']-0x1,_0x8fa756;_0xabf11d>=0x0;_0xabf11d--)(_0x8fa756=_0x1facc2[_0xabf11d])&&(_0x53a9e2=(_0x1cdc84?_0x8fa756(_0x32a06c,_0x769da3,_0x53a9e2):_0x8fa756(_0x53a9e2))||_0x53a9e2);return _0x1cdc84&&_0x53a9e2&&co(_0x32a06c,_0x769da3,_0x53a9e2),_0x53a9e2;},dt=(_0x337699,_0x24f7bb)=>(_0x44a871,_0x288478)=>_0x24f7bb(_0x44a871,_0x288478,_0x337699);let Ze=class{constructor(_0x139293,_0x459619,_0x1fa3e0){const _0x5378d7=_0x4d174b;this[_0x5378d7(0x229)]=_0x139293,this[_0x5378d7(0x145)]=_0x459619,this[_0x5378d7(0x372)]=_0x1fa3e0,this[_0x5378d7(0x11f)]();}['init'](){const _0x5d4187=_0x4d174b;this[_0x5d4187(0x145)][_0x5d4187(0x249)]({'priority':0x1,'interceptor':(_0x246ffa,_0x3d9ff2)=>_0x3d9ff2(_0x246ffa)[_0x5d4187(0xbe)](_0x555673(async _0x43343d=>{const _0x496792=_0x5d4187,_0x359992=_0x43343d;if(_0x359992[_0x496792(0x14b)]===0x191&&window['confirm'](this[_0x496792(0x372)]['t'](_0x496792(0x3c8)))){const _0x503daf=window[_0x496792(0x155)](window['location'][_0x496792(0x272)]);window['location']['href']=this['_getLoginPath']()+_0x496792(0x395)+_0x503daf;}return _0x359992;}))});}[_0x4d174b(0x396)](){const _0x4084f9=_0x4d174b;var _0x11323d;return(_0x11323d=this[_0x4084f9(0x229)][_0x4084f9(0x1f0)](gn))!=null?_0x11323d:Sn;}};Ze=lo([dt(0x0,_0x15fd76),dt(0x1,_0x5b671c(_0x45a59b)),dt(0x2,_0x5b671c(_0x35ebff))],Ze);var _o=Object[_0x4d174b(0x1e3)],uo=Object[_0x4d174b(0x13f)],mo=(_0x57b2cd,_0x4442de,_0x55d29d,_0x107ad8)=>{const _0x6cb14a=_0x4d174b;for(var _0x3bc3b8=_0x107ad8>0x1?void 0x0:_0x107ad8?uo(_0x4442de,_0x55d29d):_0x4442de,_0x298d64=_0x57b2cd[_0x6cb14a(0x2e1)]-0x1,_0xa2d7e3;_0x298d64>=0x0;_0x298d64--)(_0xa2d7e3=_0x57b2cd[_0x298d64])&&(_0x3bc3b8=(_0x107ad8?_0xa2d7e3(_0x4442de,_0x55d29d,_0x3bc3b8):_0xa2d7e3(_0x3bc3b8))||_0x3bc3b8);return _0x107ad8&&_0x3bc3b8&&_o(_0x4442de,_0x55d29d,_0x3bc3b8),_0x3bc3b8;},cs=(_0x2c93dc,_0x7b3688)=>(_0x4b103e,_0x32a859)=>_0x7b3688(_0x4b103e,_0x32a859,_0x2c93dc);const fo=_0x4d174b(0x111),go='/universer-api/authz';let Dt=class extends _0x3d777f{constructor(_0x10d3bb,_0x2c375f){const _0x607eb1=_0x4d174b;super(),this[_0x607eb1(0x2ac)]=_0x10d3bb,this[_0x607eb1(0x229)]=_0x2c375f,this[_0x607eb1(0x31c)]();}['_initMergeInterceptor'](){const _0x11ce52=_0x4d174b,_0x4f5c3b=this;this['disposeWithMe'](this[_0x11ce52(0x2ac)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x210201({'isMatch'(_0x28d447){const _0xce233d=_0x11ce52;var _0x41c9a0;if(_0x28d447[_0xce233d(0x2e9)]===_0xce233d(0xd6)&&((_0x41c9a0=_0x28d447[_0xce233d(0x168)])!=null&&_0x41c9a0[_0xce233d(0x154)])){const {objectID:_0x32233b,objectType:_0x14ab60}=_0x28d447[_0xce233d(0x168)]['body']||{};if(!_0x32233b||_0x14ab60===void 0x0)return!0x1;const _0x2a6458=_0x4f5c3b[_0xce233d(0x151)]()+'/'+_0x14ab60+_0xce233d(0x398)+_0x32233b+_0xce233d(0x1d4);if(_0x28d447['url']===_0x2a6458)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4d521c){const _0x2f6129=_0x11ce52;var _0x5f2734;return(_0x5f2734=_0x4d521c['requestParams'])==null?void 0x0:_0x5f2734[_0x2f6129(0x154)];},'mergeParamsToRequest'(_0x54fdb2,_0x24b1aa){const _0x1a9fcf=_0x11ce52,_0x712159=_0x4f5c3b[_0x1a9fcf(0x151)]()+_0x1a9fcf(0x102),_0x2dc653=_0x54fdb2['reduce']((_0x302210,_0x11a0b3)=>{const _0x4e19a9=_0x1a9fcf,{unitID:_0x44b69b,objectID:_0x3d0626,objectType:_0x70e56f,actions:_0x289fbe}=_0x11a0b3;return _0x302210[_0x44b69b]||(_0x302210[_0x44b69b]={}),_0x302210[_0x44b69b][_0x3d0626]||(_0x302210[_0x44b69b][_0x3d0626]={'objectID':_0x3d0626,'objectType':_0x70e56f,'actions':[]}),_0x302210[_0x44b69b][_0x3d0626][_0x4e19a9(0x3da)][_0x4e19a9(0x328)](..._0x289fbe),_0x302210;},{}),_0x777543=[];for(const _0x4da79a in _0x2dc653)for(const _0x4b88ac in _0x2dc653[_0x4da79a]){const {actions:_0x4bafcc,objectType:_0x28a13a}=_0x2dc653[_0x4da79a][_0x4b88ac],_0x476271=[...new Set(_0x4bafcc)];_0x777543['push']({'unitID':_0x4da79a,'objectID':_0x4b88ac,'objectType':_0x28a13a,'actions':_0x476271});}return new _0x5e2413('POST',_0x712159,{'headers':_0x24b1aa[_0x1a9fcf(0x3b1)],'withCredentials':_0x24b1aa[_0x1a9fcf(0x381)],'responseType':_0x24b1aa[_0x1a9fcf(0x18d)],'body':{'requests':_0x777543}});}},{'distributeResult'(_0x33a1df,_0x449a6f){const _0x5b8b3a=_0x11ce52,{objectActions:_0x553a67}=_0x33a1df;return _0x449a6f[_0x5b8b3a(0x288)](_0x40e4e2=>{const _0x131058=_0x5b8b3a,{unitID:_0x21d6bd,objectID:_0x57493d,actions:_0x17ab90}=_0x40e4e2,_0x22f402=_0x553a67[_0x131058(0xbc)](_0x43b44f=>_0x43b44f[_0x131058(0x1e2)]===_0x21d6bd&&_0x43b44f[_0x131058(0xe5)]===_0x57493d),_0x2d609a=_0x17ab90[_0x131058(0x288)](_0x142f3e=>_0x22f402==null?void 0x0:_0x22f402['actions']['find'](_0xb67b68=>_0xb67b68[_0x131058(0x1c8)]===_0x142f3e))[_0x131058(0x236)](_0x51fa24=>!!_0x51fa24);return{'config':_0x40e4e2,'result':{'actions':_0x2d609a,'error':_0x33a1df['error']}};});}})}));}[_0x4d174b(0x151)](){const _0x198d29=_0x4d174b;var _0x5068d6;return(_0x5068d6=this[_0x198d29(0x229)][_0x198d29(0x1f0)](fo))!=null?_0x5068d6:go;}async['create'](_0x2434c8){const _0x3066d5=_0x4d174b,_0x116bb5=this[_0x3066d5(0x151)]()+'/'+_0x2434c8[_0x3066d5(0x248)]+_0x3066d5(0x23b);return(await this[_0x3066d5(0x2ac)]['post'](_0x116bb5,{'body':_0x2434c8}))['body'][_0x3066d5(0xe5)]||'';}async[_0x4d174b(0x10f)](_0x2b2846){const _0x468927=_0x4d174b,_0x2f177e=this['_getAPIPrefixPath']()+_0x468927(0x14d);return(await this['_HTTPService'][_0x468927(0x14f)](_0x2f177e,{'body':_0x2b2846}))[_0x468927(0x154)][_0x468927(0x194)];}async[_0x4d174b(0x15c)](_0x1fb778){const _0x14b0ef=_0x4d174b,_0x5c4aaa=this[_0x14b0ef(0x151)]()+'/'+_0x1fb778[_0x14b0ef(0x248)]+_0x14b0ef(0x398)+_0x1fb778[_0x14b0ef(0xe5)];await this[_0x14b0ef(0x2ac)][_0x14b0ef(0xf8)](_0x5c4aaa,{'body':_0x1fb778});}async[_0x4d174b(0x3ad)](_0x4661d1){const _0x5165c5=_0x4d174b,_0x251758=this[_0x5165c5(0x151)]()+'/'+_0x4661d1['objectType']+_0x5165c5(0x398)+_0x4661d1['objectID']+_0x5165c5(0x1d4);return(await this['_HTTPService']['post'](_0x251758,{'body':_0x4661d1}))[_0x5165c5(0x154)][_0x5165c5(0x3da)];}async[_0x4d174b(0x173)](_0x2b92c9){const _0x152272=_0x4d174b,_0x3f43bc=this[_0x152272(0x151)]()+_0x152272(0x102);return(await this[_0x152272(0x2ac)][_0x152272(0x14f)](_0x3f43bc,{'body':{'requests':_0x2b92c9}}))[_0x152272(0x154)][_0x152272(0x36c)];}async[_0x4d174b(0x1b0)](_0x3e0e3c){const _0x423cb5=_0x4d174b,_0xcb0e43=this[_0x423cb5(0x151)]()+'/'+_0x3e0e3c['objectType']+_0x423cb5(0x39e),_0x4123fc=await this[_0x423cb5(0x2ac)][_0x423cb5(0x14f)](_0xcb0e43,{'body':_0x3e0e3c});return{'roles':_0x4123fc[_0x423cb5(0x154)][_0x423cb5(0x24f)],'actions':_0x4123fc[_0x423cb5(0x154)]['actions']};}async[_0x4d174b(0xde)](_0x5b666e){const _0x2d3eb5=_0x4d174b,_0x4d5cd7=this[_0x2d3eb5(0x151)]()+_0x2d3eb5(0x1e6);await this[_0x2d3eb5(0x2ac)][_0x2d3eb5(0x3e4)](_0x4d5cd7,{'params':{'collaboratorID':_0x5b666e['collaboratorID'],'objectID':_0x5b666e[_0x2d3eb5(0xe5)],'unitID':_0x5b666e[_0x2d3eb5(0x1e2)]}});}async[_0x4d174b(0x3cd)](_0xa42bbc){const _0x5abdf6=_0x4d174b,_0x1fe1d5=this['_getAPIPrefixPath']()+_0x5abdf6(0x1e6);await this[_0x5abdf6(0x2ac)][_0x5abdf6(0x2f3)](_0x1fe1d5,{'body':_0xa42bbc});}async[_0x4d174b(0x3bc)](_0x4efa8d){const _0x46d99e=_0x4d174b,_0xc5fd7e=this[_0x46d99e(0x151)]()+_0x46d99e(0x1e6);await this[_0x46d99e(0x2ac)][_0x46d99e(0x14f)](_0xc5fd7e,{'body':_0x4efa8d});}async[_0x4d174b(0x1c4)](_0x4335e1){const _0xef1362=_0x4d174b,_0x47f42e=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0xef1362(0x2ac)][_0xef1362(0x135)](_0x47f42e,{'params':{'objectID':_0x4335e1['objectID'],'unitID':_0x4335e1[_0xef1362(0x1e2)]}}))[_0xef1362(0x154)][_0xef1362(0x101)];}async['putCollaborators'](_0x3b7c8e){const _0x5994d7=_0x4d174b,_0xbde44=this[_0x5994d7(0x151)]()+'/collaborator';await this['_HTTPService']['put'](_0xbde44,{'body':_0x3b7c8e});}};Dt=mo([cs(0x0,_0x5b671c(_0x45a59b)),cs(0x1,_0x5b671c(_0x15fd76))],Dt);var So=Object[_0x4d174b(0x1e3)],vo=Object['getOwnPropertyDescriptor'],po=(_0x41eeff,_0x2c127f,_0x3aea62,_0x4bfddf)=>{for(var _0x372627=_0x4bfddf>0x1?void 0x0:_0x4bfddf?vo(_0x2c127f,_0x3aea62):_0x2c127f,_0x17c001=_0x41eeff['length']-0x1,_0xfbcb8c;_0x17c001>=0x0;_0x17c001--)(_0xfbcb8c=_0x41eeff[_0x17c001])&&(_0x372627=(_0x4bfddf?_0xfbcb8c(_0x2c127f,_0x3aea62,_0x372627):_0xfbcb8c(_0x372627))||_0x372627);return _0x4bfddf&&_0x372627&&So(_0x2c127f,_0x3aea62,_0x372627),_0x372627;},hs=(_0x4cfbc4,_0x767b93)=>(_0x26ca4d,_0x1d1c9e)=>_0x767b93(_0x26ca4d,_0x1d1c9e,_0x4cfbc4);const Io=[_0x4d174b(0x1e9),_0x4d174b(0x28b),_0x4d174b(0x378),_0x4d174b(0x216),_0x4d174b(0xfc)],Eo=0x5*0x400*0x400,Co=_0x4d174b(0x25f),bo=_0x4d174b(0x392),To=_0x4d174b(0x28c),Ro='/universer-api/file/{fileID}/sign-url';let Pt=class{constructor(_0x12f7dc,_0x183b65){const _0x292e85=_0x4d174b;l(this,_0x292e85(0x2a2),0x0),l(this,_0x292e85(0x206),new _0x49ef1a()),l(this,_0x292e85(0x38b),this[_0x292e85(0x206)]),l(this,_0x292e85(0xc9),new Map()),(this[_0x292e85(0x145)]=_0x12f7dc,this[_0x292e85(0x229)]=_0x183b65);}[_0x4d174b(0x11a)](_0x4e4f4f){const _0x3e6c2c=_0x4d174b;this['_waitCount']=_0x4e4f4f,this[_0x3e6c2c(0x206)][_0x3e6c2c(0xe2)](_0x4e4f4f);}[_0x4d174b(0x1d2)](_0x3919c5,_0x31e7b9){const _0x2086be=_0x4d174b;if(_0x31e7b9===_0x2f95cc['BASE64']){const _0x1532f5=new Image();return _0x1532f5[_0x2086be(0x20e)]=_0x3919c5,_0x1532f5;}return this[_0x2086be(0xc9)][_0x2086be(0x135)](_0x3919c5);}[_0x4d174b(0x1cc)](_0x42c8d7,_0x1c7772,_0x1929c0){const _0x3d3109=_0x4d174b;_0x1c7772===_0x2f95cc['BASE64']||_0x1929c0==null||this[_0x3d3109(0xc9)][_0x3d3109(0x34a)](_0x42c8d7,_0x1929c0);}async['getImage'](_0x81063e){const _0x3ad04c=_0x4d174b;try{const _0x19a5a0=this[_0x3ad04c(0x106)](this[_0x3ad04c(0x382)](),''+_0x81063e),_0xee57ac=(await this['_httpService']['get'](_0x19a5a0))[_0x3ad04c(0x154)];return _0xee57ac[_0x3ad04c(0xba)]&&_0xee57ac[_0x3ad04c(0xba)]['code']===Os['OK']?Promise[_0x3ad04c(0x37e)](_0xee57ac[_0x3ad04c(0x315)]):Promise['reject'](_0xee57ac[_0x3ad04c(0xba)]);}catch(_0xa5defa){return Promise[_0x3ad04c(0x3ec)](_0xa5defa);}}async['saveImage'](_0x543f39){const _0x4f438e=_0x4d174b;let _0x74c001='';if(!Io[_0x4f438e(0x39d)](_0x543f39[_0x4f438e(0x13a)]))return this[_0x4f438e(0x128)](),Promise['reject'](new Error(_0x55f297[_0x4f438e(0x34c)]));if(_0x543f39['size']>Eo)return this['_decreaseWaiting'](),Promise[_0x4f438e(0x3ec)](new Error(_0x55f297[_0x4f438e(0x29a)]));try{const _0x2f2440=new FormData();_0x2f2440[_0x4f438e(0xed)](_0x4f438e(0x27c),_0x543f39);const _0x2f6fb1=this[_0x4f438e(0x1a5)]()+'?size='+_0x543f39[_0x4f438e(0x262)][_0x4f438e(0xec)](),_0x1cf352=await(await fetch(_0x2f6fb1,{'method':_0x4f438e(0xd6),'body':_0x2f2440}))[_0x4f438e(0x1e8)]();if(typeof _0x1cf352[_0x4f438e(0x3b8)]!='string')return this['_decreaseWaiting'](),Promise[_0x4f438e(0x3ec)](new Error(_0x55f297[_0x4f438e(0x1b6)]));_0x74c001=_0x1cf352[_0x4f438e(0x3b8)];}catch{return this[_0x4f438e(0x128)](),Promise[_0x4f438e(0x3ec)](new Error(_0x55f297[_0x4f438e(0x1b6)]));}return new Promise((_0x5665ea,_0x52b3b4)=>{const _0x31850d=_0x4f438e,_0x12f4d8=new FileReader();_0x12f4d8[_0x31850d(0x3e2)](_0x543f39),_0x12f4d8[_0x31850d(0x3d7)]=_0x51b6de=>{const _0x55052e=_0x31850d;var _0x226d39;const _0x341fb6=(_0x226d39=_0x51b6de[_0x55052e(0x2ea)])==null?void 0x0:_0x226d39[_0x55052e(0x310)];if(_0x341fb6==null){this['_decreaseWaiting'](),_0x52b3b4(new Error(_0x55f297[_0x55052e(0x1b6)]));return;}const _0x4d7e12=_0x1053dd[_0x55052e(0x31d)](0x6);_0x5665ea({'imageId':_0x4d7e12,'imageSourceType':_0x2f95cc[_0x55052e(0xea)],'source':_0x74c001,'base64Cache':_0x341fb6,'status':_0x55f297[_0x55052e(0x25a)]}),this[_0x55052e(0x128)]();};});}[_0x4d174b(0x1a5)](){const _0x13b760=_0x4d174b;var _0x591ef4;return(_0x591ef4=this[_0x13b760(0x229)]['getConfig'](Co))!=null?_0x591ef4:bo;}['_getSignURL'](){const _0x244265=_0x4d174b;var _0x4e98d8;return(_0x4e98d8=this[_0x244265(0x229)][_0x244265(0x1f0)](To))!=null?_0x4e98d8:Ro;}[_0x4d174b(0x106)](_0x25e5e8,_0x23b0e9){const _0x4a5f7a=_0x4d174b;return _0x25e5e8[_0x4a5f7a(0x16f)]('{fileID}',_0x23b0e9);}[_0x4d174b(0x128)](){const _0xfe03e5=_0x4d174b;this[_0xfe03e5(0x2a2)]-=0x1,this[_0xfe03e5(0x206)][_0xfe03e5(0xe2)](this[_0xfe03e5(0x2a2)]);}};Pt=po([hs(0x0,_0x5b671c(_0x45a59b)),hs(0x1,_0x15fd76)],Pt);var Oo=Object[_0x4d174b(0x1e3)],Do=Object['getOwnPropertyDescriptor'],Po=(_0x216f9c,_0x47debd,_0x5e8141,_0xe248f7)=>{const _0x1bf043=_0x4d174b;for(var _0x47a77a=_0xe248f7>0x1?void 0x0:_0xe248f7?Do(_0x47debd,_0x5e8141):_0x47debd,_0x153d4f=_0x216f9c[_0x1bf043(0x2e1)]-0x1,_0x449572;_0x153d4f>=0x0;_0x153d4f--)(_0x449572=_0x216f9c[_0x153d4f])&&(_0x47a77a=(_0xe248f7?_0x449572(_0x47debd,_0x5e8141,_0x47a77a):_0x449572(_0x47a77a))||_0x47a77a);return _0xe248f7&&_0x47a77a&&Oo(_0x47debd,_0x5e8141,_0x47a77a),_0x47a77a;},Re=(_0x38b4f6,_0x1c567b)=>(_0x4ad3d1,_0x3617cd)=>_0x1c567b(_0x4ad3d1,_0x3617cd,_0x38b4f6);let Be=class extends _0x52c754{constructor(_0x105696,_0xceb2c6,_0x49b10a,_0x128f29,_0x3f0fe3){const _0x591cfe=_0x4d174b;super(),this['_injector']=_0x105696,this[_0x591cfe(0x115)]=_0xceb2c6,this['_permissionService']=_0x49b10a,this[_0x591cfe(0x2d5)]=_0x128f29,this['_localeService']=_0x3f0fe3,this['_initUnitPermissionChange'](),this[_0x591cfe(0x24a)]();}['_initCloseConn'](){const _0x4b4638=_0x4d174b,_0x5d40a2=async _0x2f816c=>{const _0x525ad4=_0x2798;(await this[_0x525ad4(0x2d5)][_0x525ad4(0x2eb)](_0x2f816c))[_0x525ad4(0x1a9)][_0x525ad4(0xbe)](_0x22c59c(_0x4c1ceb=>_0x4c1ceb['eventID']===_0x2c65dc[_0x525ad4(0x217)]),_0x21a0e1(this[_0x525ad4(0xdd)]))['subscribe'](_0x154798=>{const _0x4a0bef=_0x525ad4,_0x5e2aa1=_0x154798,{reason:_0x1d7a6e}=_0x5e2aa1['data'];this['_injector'][_0x4a0bef(0x135)](_0x1e8990)[_0x4a0bef(0x199)]({'type':_0x17d4c8['Error'],'content':this[_0x4a0bef(0x13d)]['t'](_0x4a0bef(0x304))+'('+_0x1d7a6e+')'}),this[_0x4a0bef(0x126)][_0x4a0bef(0x3c9)](new _0x56d014(_0x2f816c)['id'],!0x1),this[_0x4a0bef(0x2d5)][_0x4a0bef(0x305)](_0x2f816c);});};_0x4e0a85(this[_0x4b4638(0x115)][_0x4b4638(0x174)](_0x1851b1[_0x4b4638(0x202)]),this[_0x4b4638(0x115)][_0x4b4638(0x174)](_0x1851b1[_0x4b4638(0x2b7)]))['pipe'](_0x120a2e(_0x33f4ca=>_0x33f4ca[_0x4b4638(0x150)]()),_0x22c59c(_0x445f32=>!_0x48cbdf(_0x445f32)),_0x21a0e1(this[_0x4b4638(0xdd)]))[_0x4b4638(0x269)](_0x4fdbb8=>{_0x5d40a2(_0x4fdbb8);});}[_0x4d174b(0x139)](){const _0xcea6b1=_0x4d174b,_0x337ed9=async _0x640fc0=>{const _0x558ef7=_0x2798;(await this[_0x558ef7(0x2d5)][_0x558ef7(0x2eb)](_0x640fc0))[_0x558ef7(0x1a9)][_0x558ef7(0xbe)](_0x22c59c(_0x19738c=>_0x19738c[_0x558ef7(0x10c)]===_0x2c65dc[_0x558ef7(0x374)]),_0x21a0e1(this[_0x558ef7(0xdd)]))[_0x558ef7(0x269)](_0x2899b9=>{const _0x6dd3cd=_0x558ef7,_0x4778c6=_0x2899b9,{objectId:_0x5b9de9}=_0x4778c6[_0x6dd3cd(0x299)];_0x5b9de9===_0x640fc0&&this[_0x6dd3cd(0x36e)][_0x6dd3cd(0x135)](_0x52d8a4)[_0x6dd3cd(0x38d)](_0x640fc0);});};_0x4e0a85(this[_0xcea6b1(0x115)]['getTypeOfUnitAdded$'](_0x1851b1['UNIVER_SHEET']),this['_univerInstanceService'][_0xcea6b1(0x174)](_0x1851b1[_0xcea6b1(0x2b7)]))[_0xcea6b1(0xbe)](_0x120a2e(_0x5c2ff1=>_0x5c2ff1[_0xcea6b1(0x150)]()),_0x22c59c(_0x3aa4be=>!_0x48cbdf(_0x3aa4be)),_0x21a0e1(this[_0xcea6b1(0xdd)]))['subscribe'](_0x4298cd=>{_0x337ed9(_0x4298cd);});}};Be=Po([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],Be),Re(0x0,_0x5b671c(_0x49e10e)),Re(0x1,_0x2269ec),Re(0x2,_0xf5bbc5),Re(0x3,_0x5b671c(ge)),Re(0x4,_0x5b671c(_0x35ebff))],Be);var js=Object[_0x4d174b(0x1e3)],wo=Object[_0x4d174b(0x13f)],No=(_0x323000,_0x322804,_0x3fe592)=>_0x322804 in _0x323000?js(_0x323000,_0x322804,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fe592}):_0x323000[_0x322804]=_0x3fe592,Mo=(_0x4936db,_0x7d7a25,_0x1e35c3,_0x2969bf)=>{const _0x5f9f7=_0x4d174b;for(var _0x45a81d=_0x2969bf>0x1?void 0x0:_0x2969bf?wo(_0x7d7a25,_0x1e35c3):_0x7d7a25,_0x460dc1=_0x4936db[_0x5f9f7(0x2e1)]-0x1,_0x1b7fa7;_0x460dc1>=0x0;_0x460dc1--)(_0x1b7fa7=_0x4936db[_0x460dc1])&&(_0x45a81d=(_0x2969bf?_0x1b7fa7(_0x7d7a25,_0x1e35c3,_0x45a81d):_0x1b7fa7(_0x45a81d))||_0x45a81d);return _0x2969bf&&_0x45a81d&&js(_0x7d7a25,_0x1e35c3,_0x45a81d),_0x45a81d;},mt=(_0x264c55,_0x3552ce)=>(_0x5a59db,_0x4d2e79)=>_0x3552ce(_0x5a59db,_0x4d2e79,_0x264c55),Ao=(_0x2e2079,_0x38f182,_0x38a0fc)=>No(_0x2e2079,_0x38f182+'',_0x38a0fc);const yo='UNIVER_COLLABORATION_CLIENT_PLUGIN';let wt=class extends _0x1b986b{constructor(_0xc3b997,_0x5a6713,_0x47f0d0,_0xb6891f){const _0x2afb2a=_0x4d174b;super(),this[_0x2afb2a(0x20c)]=_0xc3b997,this[_0x2afb2a(0x30a)]=_0x5a6713,this[_0x2afb2a(0x2c3)]=_0x47f0d0,this[_0x2afb2a(0x36e)]=_0xb6891f;}[_0x4d174b(0x314)](_0x340f70){const _0x43f497=_0x4d174b;this[_0x43f497(0x159)](_0x340f70);}[_0x4d174b(0x2fd)](){const _0x427120=_0x4d174b;this[_0x427120(0x33f)]();}[_0x4d174b(0x159)](_0x3a193d){const _0x17a12d=_0x4d174b;var _0x12bf67,_0x2b1e18,_0x56e7a8,_0x21d839;_0x3a193d[_0x17a12d(0x37c)](_0x5f56c1)&&this[_0x17a12d(0x30a)][_0x17a12d(0xba)](_0x17a12d(0xbb),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2edbe8=[[_0x5f56c1,{'useClass':Ot}],[ge],[xt],[_0x45a59b],[$s,{'useClass':Qr}],[te],[O],[_0x260c27],[qe],[Je],[Xe],[jt],[Ze],[Ps],[Be],[Ds,{'useClass':(_0x2b1e18=(_0x12bf67=this['_config'])==null?void 0x0:_0x12bf67['socketService'])!=null?_0x2b1e18:vt}],[_0x5aae1e,{'useClass':_0x52538a}],[_0x31fed6,{'useClass':Rt}],[_0x120323,{'useClass':Dt}],[_0x24c8c0,{'useClass':Pt}],[Oe],[ke],[He],[Fe],[me]];(_0x56e7a8=this[_0x17a12d(0x20c)])!=null&&_0x56e7a8[_0x17a12d(0x268)]&&_0x2edbe8[_0x17a12d(0x328)]([et,{'useClass':yn}]),_0x2edbe8=_0x28386f(_0x2edbe8,(_0x21d839=this[_0x17a12d(0x20c)])==null?void 0x0:_0x21d839['override']),_0x2edbe8['forEach'](_0x165ff2=>_0x3a193d['add'](_0x165ff2)),this[_0x17a12d(0x380)]();}[_0x4d174b(0x33f)](){const _0x46f73c=_0x4d174b;this['disposeWithMe'](this[_0x46f73c(0x2c3)]['registerRenderModule'](_0x1851b1[_0x46f73c(0x2b7)],[Ve])),this[_0x46f73c(0xe4)](this[_0x46f73c(0x2c3)][_0x46f73c(0x3b7)](_0x1851b1['UNIVER_SHEET'],[Tt]));}[_0x4d174b(0x380)](){const _0x513b9d=_0x4d174b;var _0xdeff0d,_0x1c72d9;this[_0x513b9d(0x36e)][_0x513b9d(0x135)](_0x45a59b)[_0x513b9d(0x249)]({'priority':0x14,'interceptor':_0x50c28f({'maxParallel':0x6})}),(_0xdeff0d=this[_0x513b9d(0x20c)])!=null&&_0xdeff0d[_0x513b9d(0x280)]||this[_0x513b9d(0x36e)][_0x513b9d(0x135)](O)[_0x513b9d(0x11c)](),(_0x1c72d9=this[_0x513b9d(0x20c)])!=null&&_0x1c72d9[_0x513b9d(0x28a)]&&this[_0x513b9d(0x36e)][_0x513b9d(0x135)](Ze);}};Ao(wt,_0x4d174b(0x19a),yo),wt=Mo([_0x34bd97(_0x5889e9),mt(0x1,_0x50a504),mt(0x2,_0xa71c3c),mt(0x3,_0x5b671c(_0x49e10e))],wt);export{fo as AUTHZ_URL_KEY,Dt as AuthzIoHttpService,mn as COLLAB_SUBMIT_CHANGESET_URL_KEY,nn as COLLAB_WEB_SOCKET_URL_KEY,Oe as CollaborationController,pt as CollaborationSession,ge as CollaborationSessionService,vt as CollaborationSocketService,P as CollaborationStatus,Ur as CollaborationStatusDisplay,Ps as CommentService,ke as DataLoaderController,He as DesktopCollaborationStatusDisplayController,on as HEARTBEAT_INTERVAL_KEY,Ts as HEARTBEAT_TIMEOUT_KEY,Ds as ICollaborationSocketService,$s as IURLService,Pt as ImageIoService,un as LOCAL_CACHE_INTERVAL_KEY,gn as LOGIN_URL_KEY,O as LocalCacheService,tn as SEND_CHANGESET_TIMEOUT_KEY,Zi as SNAPSHOT_SERVER_URL_KEY,en as SNAPSHOT_URL_KEY,de as SessionStatus,gr as SheetCollabCursorShape,Et as SheetCollaborationEntity,Rt as SnapshotServerOverHTTPService,wt as UniverCollaborationClientPlugin,Qr as WebURLService,Cn as deserializeToCombResponse,bn as serializeCombRequest};
|