@univerjs-pro/collaboration-client 0.2.4 → 0.2.5

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.
Files changed (22) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +1 -2
  4. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +1 -2
  5. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +1 -2
  6. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +1 -2
  7. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +1 -2
  8. package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +1 -1
  9. package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +1 -2
  10. package/lib/types/controllers/collaboration/collaboration-state.d.ts +1 -2
  11. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -2
  12. package/lib/types/plugin.d.ts +1 -2
  13. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -2
  14. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -1
  15. package/lib/types/services/permission/permission.service.d.ts +1 -2
  16. package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +1 -1
  17. package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +1 -1
  18. package/lib/types/services/socket/collaboration-socket.service.d.ts +1 -1
  19. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
  20. package/lib/types/services/url/url.service.d.ts +1 -1
  21. package/lib/umd/index.js +1 -1
  22. 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 _0x27a911=_0x5bd0;(function(_0x5a46b2,_0x5df729){const _0x1e2a29=_0x5bd0,_0x120d57=_0x5a46b2();while(!![]){try{const _0x476436=-parseInt(_0x1e2a29(0x34f))/0x1*(-parseInt(_0x1e2a29(0x266))/0x2)+parseInt(_0x1e2a29(0x29e))/0x3+parseInt(_0x1e2a29(0x2fa))/0x4*(parseInt(_0x1e2a29(0x49b))/0x5)+-parseInt(_0x1e2a29(0x2b5))/0x6+-parseInt(_0x1e2a29(0x426))/0x7*(parseInt(_0x1e2a29(0x35f))/0x8)+parseInt(_0x1e2a29(0x3dc))/0x9+parseInt(_0x1e2a29(0x49e))/0xa;if(_0x476436===_0x5df729)break;else _0x120d57['push'](_0x120d57['shift']());}catch(_0x1f9691){_0x120d57['push'](_0x120d57['shift']());}}}(_0x58ce,0x571cf));var ks=Object[_0x27a911(0x29f)],Bs=(_0x42d2aa,_0x362647,_0x5d07eb)=>_0x362647 in _0x42d2aa?ks(_0x42d2aa,_0x362647,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d07eb}):_0x42d2aa[_0x362647]=_0x5d07eb,l=(_0x255c32,_0x3275b7,_0x284818)=>Bs(_0x255c32,typeof _0x3275b7!=_0x27a911(0x3f9)?_0x3275b7+'':_0x3275b7,_0x284818);import{Disposable as _0xd60028,toDisposable as _0x1726d4,UniverInstanceType as _0x13af1a,Inject as _0x1f782,UserManagerService as _0x21113d,IUniverInstanceService as _0x41d661,createIdentifier as _0x358bbc,DisposableCollection as _0x40c494,IConfigService as _0x5c69d0,ILogService as _0x5e4d90,ISnapshotServerService as _0x3aa0af,RxDisposable as _0xe4c81a,LocaleService as _0x262e83,Injector as _0x55b67e,ILocalStorageService as _0xe4707a,Tools as _0x288a64,ICommandService as _0x22dfc9,JSONX as _0x3d81d5,IPermissionService as _0x1a3671,IUndoRedoService as _0x761a41,sequenceExecute as _0x183dc1,OnLifecycle as _0x5cbde1,LifecycleStages as _0x2af1fa,Optional as _0x275bb1,CommandType as _0x3b3d9c,Rectangle as _0x58a1b2,ThemeService as _0x2fce55,useDependency as _0xf55e15,connectInjector as _0x20fd92,Workbook as _0x3a1fec,textEncoder as _0x408316,b64DecodeUnicode as _0x2e8019,LocalUndoRedoService as _0xba6511,IContextService as _0xf12dbe,COLORS as _0x5c79d7,ColorKit as _0x31f891,isInternalEditorID as _0x154483,Plugin as _0x3a2e62,IAuthzIoService as _0x534d8a,mergeOverrideWithDependencies as _0x11950c,DependentOn as _0x33d520}from'@univerjs/core';import{SheetsSelectionsService as _0x378282,SetSelectionsOperation as _0x3e4a02,InsertSheetMutation as _0x494d53,WorkbookEditablePermission as _0x3665b6,RefRangeService as _0x35deed,EffectRefRangId as _0x27bec1,handleIRemoveRow as _0x23a55f,handleIRemoveCol as _0x58b3d6,handleMoveRange as _0x2abaa2,handleInsertRow as _0x49682a,handleInsertRangeMoveRight as _0x8a8f2b,handleInsertRangeMoveDown as _0x3e0ba6,handleInsertCol as _0x1980aa,handleDeleteRangeMoveUp as _0xa581dc,handleDeleteRangeMoveLeft as _0xed6964,runRefRangeMutations as _0x3a9738,SetWorksheetActivateCommand as _0x320312}from'@univerjs/sheets';import{MessageType as _0x471b9b}from'@univerjs/design';import{IBeforeCloseService as _0xe0324f,IMessageService as _0x3bfc5b,INotificationService as _0x279260,useObservable as _0x44b1fb,BuiltInUIPart as _0x23ba03,IUIPartsService as _0x25177a}from'@univerjs/ui';import{CollaborationEvent as _0xc426c8,parseChangesetToProtocol as _0x1f8cc1,RevisionService as _0x57a9f9,isTransformMutationFailure as _0x21109a,isTransformMutationsWithChangesetSuccess as _0x1707e0,ITransformService as _0x28f8f5,mapDocumentTypeToUniverType as _0x5c4843,isTransformChangesetsSuccess as _0x110469,CompressMutationService as _0x36ba7a,parseProtocolChangeset as _0x9afb39,SnapshotService as _0x507009,isTransformMutationsWithChangesetFailure as _0x1218ba,UniverCollaborationPlugin as _0x4cecce}from'@univerjs-pro/collaboration';import{merge as _0xe2f998,Subject as _0x5a3e6d,BehaviorSubject as _0x3146d9,distinctUntilChanged as _0x2e8f34,fromEvent as _0x4bb1b5,of as _0x4d7b9c,takeUntil as _0x39ba56,debounceTime as _0x416b32,filter as _0x10e932,switchMap as _0x508547,combineLatest as _0x4619fd,shareReplay as _0x551274,mapTo as _0xcaab66,concatMap as _0x4d232f}from'rxjs';import{map as _0x3b7068,takeUntil as _0x1e8d86,take as _0x32697e,filter as _0x22f021,delay as _0x22a006,shareReplay as _0x199d34,switchMap as _0xdffcb3}from'rxjs/operators';import{IMEInputManagerService as _0x3c8bf0,TextSelectionManagerService as _0x1f4972,serializeTextRange as _0x402695,DocStateChangeManagerService as _0x17b017,SetTextSelectionsOperation as _0x5812ee,RichTextEditingMutation as _0x33145a,getDocObject as _0x2c43a1,DocSkeletonManagerService as _0x3159ae}from'@univerjs/docs';import{HTTPService as _0x4c0c53,WebSocketService as _0x370db5,MergeInterceptorFactory as _0x4a8445,HTTPRequest as _0x47bc65,IHTTPImplementation as _0x16c1ea,XHRHTTPImplementation as _0x169803,ThresholdInterceptorFactory as _0x4106bc}from'@univerjs/network';import{ImageSourceType as _0x46b488,ImageUploadStatusType as _0x41e1e4,IImageIoService as _0x37b1ff}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x510d94,serializeRangeWithSheet as _0x344d14}from'@univerjs/engine-formula';import _0x441295 from'lodash/debounce';import{Shape as _0x44a775,Rect as _0x51d98d,Vector2 as _0x37415c,IRenderManagerService as _0x30f264,NodePositionConvertToCursor as _0x4d2c62,getColor as _0x35cbea,TEXT_RANGE_LAYER_INDEX as _0x17f27b,RegularPolygon as _0x897d6}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x4bdf5f,VIEWPORT_KEY as _0x3edb69,getCoordByCell as _0xc4fe1,getSheetObject as _0x48b9fd,SheetPermissionInitController as _0x1f4804}from'@univerjs/sheets-ui';import _0x1ce8d0,{forwardRef as _0x3973d9,useRef as _0x330e6d,createElement as _0xa89835}from'react';import _0x18d5cb from'clsx';import{IRemoteInstanceService as _0x4113b5}from'@univerjs/rpc';const zi=_0x27a911(0x31d),Zi='/universer-api/snapshot',Qi=_0x27a911(0x2d5),en=_0x27a911(0x3ad),tn=0x7d0,sn=_0x27a911(0x47a),nn=_0x27a911(0x380),rn='HEARTBEAT_INTERVAL',on=0x7530,bs=_0x27a911(0x3d5),Ts=0x2710,an=_0x27a911(0x2ae),cn=0x4e20,hn='RETRY_CONNECTING_MAX_COUNT',ln=0x3,_n=_0x27a911(0x400),un=0x3e8,dn='COLLAB_SUBMIT_CHANGESET_URL',fn='/universer-api/comb',mn=_0x27a911(0x4b9),gn='/universer-api/oidc/authpage';var Rs=(_0x23a079=>(_0x23a079[_0x23a079[_0x27a911(0x27b)]=0x0]=_0x27a911(0x27b),_0x23a079[_0x23a079['OK']=0x1]='OK',_0x23a079[_0x23a079[_0x27a911(0x409)]=0x2]=_0x27a911(0x409),_0x23a079[_0x23a079[_0x27a911(0x31b)]=0x3]=_0x27a911(0x31b),_0x23a079[_0x23a079[_0x27a911(0x3cd)]=0x4]=_0x27a911(0x3cd),_0x23a079[_0x23a079[_0x27a911(0x441)]=0x5]='UNAUTHENTICATED',_0x23a079[_0x23a079[_0x27a911(0x358)]=0x6]=_0x27a911(0x358),_0x23a079[_0x23a079[_0x27a911(0x1de)]=0x7]=_0x27a911(0x1de),_0x23a079[_0x23a079['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x23a079[_0x23a079['COMPLETION_FINISHED']=0x9]=_0x27a911(0x2bb),_0x23a079[_0x23a079['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x23a079[_0x23a079[_0x27a911(0x491)]=0x1771]=_0x27a911(0x491),_0x23a079[_0x23a079[_0x27a911(0x385)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x23a079[_0x23a079['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x23a079[_0x23a079[_0x27a911(0x1d6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x23a079[_0x23a079[_0x27a911(0x47b)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x23a079[_0x23a079[_0x27a911(0x277)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x23a079[_0x23a079[_0x27a911(0x44d)]=0x1f41]=_0x27a911(0x44d),_0x23a079[_0x23a079['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x27a911(0x25e),_0x23a079[_0x23a079[_0x27a911(0x4bb)]=0x232a]=_0x27a911(0x4bb),_0x23a079[_0x23a079[_0x27a911(0x475)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x23a079[_0x23a079['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x23a079[_0x23a079[_0x27a911(0x415)]=0x232d]=_0x27a911(0x415),_0x23a079[_0x23a079[_0x27a911(0x31f)]=0x2711]=_0x27a911(0x31f),_0x23a079[_0x23a079[_0x27a911(0x283)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x23a079[_0x23a079[_0x27a911(0x1ee)]=-0x1]='UNRECOGNIZED',_0x23a079))(Rs||{}),H=(_0x3a46ab=>(_0x3a46ab[_0x3a46ab[_0x27a911(0x233)]=0x0]=_0x27a911(0x233),_0x3a46ab[_0x3a46ab[_0x27a911(0x1c4)]=0x1]=_0x27a911(0x1c4),_0x3a46ab[_0x3a46ab[_0x27a911(0x3c2)]=0x2]=_0x27a911(0x3c2),_0x3a46ab[_0x3a46ab[_0x27a911(0x344)]=0x3]=_0x27a911(0x344),_0x3a46ab[_0x3a46ab[_0x27a911(0x1ee)]=-0x1]='UNRECOGNIZED',_0x3a46ab))(H||{}),I=(_0x54661e=>(_0x54661e[_0x54661e[_0x27a911(0x4cf)]=0x0]=_0x27a911(0x4cf),_0x54661e[_0x54661e[_0x27a911(0x201)]=0x1]='HELLO',_0x54661e[_0x54661e[_0x27a911(0x40f)]=0x2]=_0x27a911(0x40f),_0x54661e[_0x54661e[_0x27a911(0x208)]=0x3]=_0x27a911(0x208),_0x54661e[_0x54661e[_0x27a911(0x422)]=0x4]='INGEST',_0x54661e[_0x54661e[_0x27a911(0x3ec)]=0x5]=_0x27a911(0x3ec),_0x54661e[_0x54661e[_0x27a911(0x41d)]=0x6]=_0x27a911(0x41d),_0x54661e[_0x54661e[_0x27a911(0x1ee)]=-0x1]='UNRECOGNIZED',_0x54661e))(I||{}),yt=(_0xcbf1e7=>(_0xcbf1e7[_0xcbf1e7['UNKNOWN_CODE']=0x0]=_0x27a911(0x293),_0xcbf1e7[_0xcbf1e7['OK']=0x1]='OK',_0xcbf1e7[_0xcbf1e7['FAIL']=0x2]=_0x27a911(0x2b0),_0xcbf1e7[_0xcbf1e7[_0x27a911(0x1ee)]=-0x1]=_0x27a911(0x1ee),_0xcbf1e7))(yt||{}),Sn=Object[_0x27a911(0x29f)],vn=Object[_0x27a911(0x330)],pn=(_0x3699d8,_0x1e2234,_0x3fadfa,_0x400650)=>{const _0x2fa8a7=_0x27a911;for(var _0x23ee4d=_0x400650>0x1?void 0x0:_0x400650?vn(_0x1e2234,_0x3fadfa):_0x1e2234,_0x785c16=_0x3699d8[_0x2fa8a7(0x4d3)]-0x1,_0x2c7866;_0x785c16>=0x0;_0x785c16--)(_0x2c7866=_0x3699d8[_0x785c16])&&(_0x23ee4d=(_0x400650?_0x2c7866(_0x1e2234,_0x3fadfa,_0x23ee4d):_0x2c7866(_0x23ee4d))||_0x23ee4d);return _0x400650&&_0x23ee4d&&Sn(_0x1e2234,_0x3fadfa,_0x23ee4d),_0x23ee4d;},Kt=(_0x4eec19,_0x180fea)=>(_0x12037c,_0x2bfbf3)=>_0x180fea(_0x12037c,_0x2bfbf3,_0x4eec19);let ne=class extends _0xd60028{constructor(_0x578401,_0xeeeb1f){const _0xb66e03=_0x27a911;super(),l(this,_0xb66e03(0x3de),new Map()),(this['_univerInstanceService']=_0x578401,this[_0xb66e03(0x3d8)]=_0xeeeb1f,this['disposeWithMe'](_0x1726d4(_0xe2f998(this[_0xb66e03(0x339)][_0xb66e03(0x2e5)](_0x13af1a['UNIVER_SHEET'])[_0xb66e03(0x1a1)](_0x3b7068(_0x3f7927=>_0x3f7927[_0xb66e03(0x2ba)]())),this[_0xb66e03(0x339)]['getTypeOfUnitDisposed$'](_0x13af1a[_0xb66e03(0x1c4)])[_0xb66e03(0x1a1)](_0x3b7068(_0x18904e=>_0x18904e['getUnitId']())),this['_univerInstanceService'][_0xb66e03(0x2e5)](_0x13af1a[_0xb66e03(0x344)])[_0xb66e03(0x1a1)](_0x3b7068(_0x1a7c10=>_0x1a7c10[_0xb66e03(0x2ba)]())))[_0xb66e03(0x307)](_0x4ddc23=>this[_0xb66e03(0x463)](_0x4ddc23)))));}[_0x27a911(0x1e4)](_0x425745){const _0x3504d8=_0x27a911;this[_0x3504d8(0x3d8)][_0x3504d8(0x1e4)](_0x425745);}[_0x27a911(0x3d3)](){const _0x582a34=_0x27a911;return this[_0x582a34(0x3d8)]['getCurrentUser']();}[_0x27a911(0x3d6)](_0x3f4fce,_0xb90a22){const _0x5d3394=_0x27a911;let _0x23a029=this['_roomMembers']['get'](_0x3f4fce);_0x23a029||(_0x23a029=new In(),this[_0x5d3394(0x3de)][_0x5d3394(0x19e)](_0x3f4fce,_0x23a029)),_0x23a029['updateMember'](_0xb90a22);}[_0x27a911(0x3e1)](_0x2a7b00,_0x1f83f0){const _0x325d52=_0x27a911,_0x1d6772=this[_0x325d52(0x3de)]['get'](_0x2a7b00);_0x1d6772&&_0x1d6772[_0x325d52(0x3e1)](_0x1f83f0);}['getRoom'](_0x46f277){const _0x1dd938=_0x27a911;return this[_0x1dd938(0x3de)][_0x1dd938(0x26f)](_0x46f277);}[_0x27a911(0x425)](_0x246166,_0x48bb1c){const _0x39f09a=_0x27a911,_0x5b462d=this['_roomMembers'][_0x39f09a(0x26f)](_0x246166);if(_0x5b462d)return _0x5b462d[_0x39f09a(0x425)](_0x48bb1c);}[_0x27a911(0x463)](_0xfd4cf9){const _0x302523=_0x27a911,_0x2ed979=this['_roomMembers'][_0x302523(0x26f)](_0xfd4cf9);_0x2ed979&&(_0x2ed979[_0x302523(0x4de)](),this[_0x302523(0x3de)][_0x302523(0x21b)](_0xfd4cf9));}['dispose'](){const _0x35dde3=_0x27a911;this['_roomMembers']['forEach'](_0x541e3f=>_0x541e3f[_0x35dde3(0x4de)]()),this['_roomMembers'][_0x35dde3(0x3f4)]();}};ne=pn([Kt(0x0,_0x41d661),Kt(0x1,_0x1f782(_0x21113d))],ne);class In extends _0xd60028{constructor(){const _0x48794e=_0x27a911;super(...arguments),l(this,_0x48794e(0x22b),new Map());}[_0x27a911(0x4de)](){const _0x39074c=_0x27a911;this[_0x39074c(0x22b)][_0x39074c(0x3f4)]();}[_0x27a911(0x3d6)](_0x4feab5){const _0x50428e=_0x27a911;this['_members'][_0x50428e(0x19e)](_0x4feab5['memberID'],_0x4feab5);}[_0x27a911(0x3e1)](_0x575c0c){this['_members']['delete'](_0x575c0c);}['getMember'](_0x20be88){return this['_members']['get'](_0x20be88);}}function En(_0x26305e){const _0xcf4f77=_0x27a911;var _0x293e75,_0x471820,_0x1718df,_0x42698a;const _0x4a40e4=_0x26305e[_0xcf4f77(0x1a7)],_0x3b5729=JSON[_0xcf4f77(0x298)](_0x4a40e4);switch(_0x3b5729[_0xcf4f77(0x1cb)]){case I['HEARTBEAT']:case I[_0xcf4f77(0x201)]:{const _0x28c643=_0x3b5729[_0xcf4f77(0x205)];return{..._0x3b5729,'data':_0x28c643,'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};}case I[_0xcf4f77(0x40f)]:{const _0x2c1f5d=_0x3b5729['joinRsp'];return{..._0x3b5729,'data':_0x2c1f5d,'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};}case I['RECV']:{const _0x29d75d=_0x3b5729['collaMsg'];switch(_0x29d75d[_0xcf4f77(0x35d)]){case _0xc426c8['PERMISSION_REJ']:return{..._0x3b5729,'data':{..._0x29d75d,'data':(_0x293e75=_0x29d75d[_0xcf4f77(0x4dd)])==null?void 0x0:_0x293e75['cs']},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x210)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':(_0x471820=_0x29d75d[_0xcf4f77(0x3fc)])==null?void 0x0:_0x471820['cs']},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x432)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':(_0x1718df=_0x29d75d['newCsEvent'])==null?void 0x0:_0x1718df['cs']},'cmd':_0x3b5729['cmd']};case _0xc426c8[_0xcf4f77(0x1df)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':(_0x42698a=_0x29d75d[_0xcf4f77(0x4d1)])==null?void 0x0:_0x42698a['cs']},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x44f)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x465)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x2c6)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x49f)]},'cmd':_0x3b5729['cmd']};case _0xc426c8['USERS_LEAVE']:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d['leaveEvent']},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x30a)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x19b)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x216)]:case _0xc426c8[_0xcf4f77(0x21d)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x2ca)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8['LIVESHARE_TERMINATE']:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x19b)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8['MSG_FOR_ERROR']:return{..._0x3b5729,'data':_0x29d75d,'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x240)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x3ac)]},'cmd':_0x3b5729['cmd']};case _0xc426c8[_0xcf4f77(0x438)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x2ff)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};case _0xc426c8[_0xcf4f77(0x272)]:return{..._0x3b5729,'data':{..._0x29d75d,'data':_0x29d75d[_0xcf4f77(0x22f)]},'cmd':_0x3b5729[_0xcf4f77(0x1cb)]};default:return _0x3b5729;}}default:return _0x3b5729;}}function Cn(_0x1a479e){const _0x35a41f=_0x27a911;switch(_0x1a479e[_0x35a41f(0x1cb)]){case I[_0x35a41f(0x3ec)]:case I[_0x35a41f(0x201)]:return JSON['stringify']({'cmd':_0x1a479e[_0x35a41f(0x1cb)],'routeKey':_0x1a479e[_0x35a41f(0x2e0)]});case I['INGEST']:{let _0x2fbad2;switch(_0x1a479e[_0x35a41f(0x1a7)][_0x35a41f(0x35d)]){case _0xc426c8['UPDATE_CURSOR']:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x44f)],'updateCursorEvent':_0x1a479e[_0x35a41f(0x1a7)][_0x35a41f(0x1a7)]};break;}case _0xc426c8['USERS_LEAVE']:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x311)],'leaveEvent':_0x1a479e[_0x35a41f(0x1a7)]['data']};break;}case _0xc426c8['USERS_ENTER']:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x2c6)],'joinEvent':_0x1a479e['data']['data']};break;}case _0xc426c8['LIVESHARE_NEW_HOST']:{_0x2fbad2={'eventID':_0xc426c8['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x1a479e[_0x35a41f(0x1a7)][_0x35a41f(0x1a7)]};break;}case _0xc426c8[_0x35a41f(0x21d)]:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x21d)],'liveShareOperation':_0x1a479e[_0x35a41f(0x1a7)][_0x35a41f(0x1a7)]};break;}case _0xc426c8[_0x35a41f(0x2bc)]:{_0x2fbad2={'eventID':_0xc426c8['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1a479e[_0x35a41f(0x1a7)][_0x35a41f(0x1a7)]};break;}case _0xc426c8[_0x35a41f(0x329)]:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x329)],'liveShareRequestHost':_0x1a479e[_0x35a41f(0x1a7)]['data']};break;}case _0xc426c8[_0x35a41f(0x216)]:{_0x2fbad2={'eventID':_0xc426c8[_0x35a41f(0x216)]};break;}default:_0x2fbad2={'eventID':_0x1a479e[_0x35a41f(0x1a7)]['eventID']};}return JSON['stringify']({'cmd':_0x1a479e[_0x35a41f(0x1cb)],'routeKey':_0x1a479e[_0x35a41f(0x2e0)],'collaMsg':_0x2fbad2});}case I[_0x35a41f(0x40f)]:return JSON[_0x35a41f(0x4cb)]({'cmd':_0x1a479e[_0x35a41f(0x1cb)],'routeKey':_0x1a479e[_0x35a41f(0x2e0)],'joinReq':_0x1a479e['data']});case I[_0x35a41f(0x208)]:return JSON[_0x35a41f(0x4cb)]({'cmd':_0x1a479e[_0x35a41f(0x1cb)],'routeKey':_0x1a479e[_0x35a41f(0x2e0)],'leaveReq':_0x1a479e[_0x35a41f(0x1a7)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var bn=Object[_0x27a911(0x29f)],Tn=Object['getOwnPropertyDescriptor'],Rn=(_0x188b94,_0xce920b,_0x11ce8f,_0x41de5b)=>{const _0x418752=_0x27a911;for(var _0x502cf5=_0x41de5b>0x1?void 0x0:_0x41de5b?Tn(_0xce920b,_0x11ce8f):_0xce920b,_0x5c54e9=_0x188b94[_0x418752(0x4d3)]-0x1,_0x9b32c9;_0x5c54e9>=0x0;_0x5c54e9--)(_0x9b32c9=_0x188b94[_0x5c54e9])&&(_0x502cf5=(_0x41de5b?_0x9b32c9(_0xce920b,_0x11ce8f,_0x502cf5):_0x9b32c9(_0x502cf5))||_0x502cf5);return _0x41de5b&&_0x502cf5&&bn(_0xce920b,_0x11ce8f,_0x502cf5),_0x502cf5;},Ee=(_0x2f9dfe,_0x3c1bc5)=>(_0x434800,_0x339ce6)=>_0x3c1bc5(_0x434800,_0x339ce6,_0x2f9dfe);const Os=_0x358bbc(_0x27a911(0x3cc));function On(_0x5be852,_0x5aa638,_0x158780){const _0x212e83=_0x27a911;return _0x5be852+'/'+_0x5aa638+'/unit/'+_0x158780+_0x212e83(0x38b);}let gt=class{constructor(_0x47df98,_0x55fc84,_0x365350,_0x5a5222,_0x42c88b){const _0x583321=_0x27a911;this[_0x583321(0x489)]=_0x47df98,this['_ws']=_0x55fc84,this[_0x583321(0x37e)]=_0x365350,this[_0x583321(0x304)]=_0x5a5222,this[_0x583321(0x4a8)]=_0x42c88b;}['createSocket'](_0xfe339d){const _0x190b65=_0x27a911,_0x54fd87=this[_0x190b65(0x389)][_0x190b65(0x1a8)](_0xfe339d);if(!_0x54fd87)throw new Error(_0x190b65(0x48a));const _0x5d9f33=new _0x40c494(),_0xbf454b=new _0x5a3e6d();_0x5d9f33[_0x190b65(0x3cf)](_0x1726d4(_0x54fd87['close$'][_0x190b65(0x307)](_0x977bbb=>_0xbf454b[_0x190b65(0x24a)](_0x977bbb)))),_0x5d9f33[_0x190b65(0x3cf)](_0x1726d4(()=>_0xbf454b[_0x190b65(0x44b)]()));const _0x108eb3=new _0x5a3e6d();_0x5d9f33[_0x190b65(0x3cf)](_0x1726d4(_0x54fd87[_0x190b65(0x418)][_0x190b65(0x307)](_0x226078=>_0x108eb3[_0x190b65(0x24a)](_0x226078)))),_0x5d9f33['add'](_0x1726d4(()=>_0x108eb3[_0x190b65(0x44b)]()));const _0x246124=new _0x5a3e6d();_0x5d9f33[_0x190b65(0x3cf)](_0x1726d4(_0x54fd87[_0x190b65(0x4ad)]['subscribe'](_0x490561=>{const _0x19227b=_0x190b65,_0x120989=En(_0x490561);_0x246124[_0x19227b(0x24a)](_0x120989);}))),_0x5d9f33[_0x190b65(0x3cf)](_0x1726d4(()=>_0x246124[_0x190b65(0x44b)]()));const _0x4223e4=()=>{const _0x51ae96=_0x190b65;_0x108eb3[_0x51ae96(0x24a)](new Event(_0x51ae96(0x30c))),_0xbf454b[_0x51ae96(0x24a)](new CloseEvent(_0x51ae96(0x30c))),_0x372f49[_0x51ae96(0x2ac)]();},_0x372f49={'memberID':'','close$':_0xbf454b[_0x190b65(0x48c)](),'error$':_0x108eb3['asObservable'](),'open$':_0x54fd87['open$'],'message$':_0x246124['asObservable'](),'send':_0x4f7030=>{const _0x1f0c9e=_0x190b65;if(_0x4f7030[_0x1f0c9e(0x1cb)]===I[_0x1f0c9e(0x422)]){if(_0x4f7030[_0x1f0c9e(0x1a7)][_0x1f0c9e(0x35d)]===_0xc426c8[_0x1f0c9e(0x399)]){this[_0x1f0c9e(0x460)](_0x372f49,_0x4f7030['data'])[_0x1f0c9e(0x328)](_0x36c4aa=>{const _0x59cdf5=_0x1f0c9e;this[_0x59cdf5(0x304)][_0x59cdf5(0x388)](_0x36c4aa),_0x4223e4();});return;}if(_0x4f7030[_0x1f0c9e(0x1a7)][_0x1f0c9e(0x35d)]===_0xc426c8[_0x1f0c9e(0x1aa)]){const _0x468114=_0x4f7030[_0x1f0c9e(0x1a7)];this[_0x1f0c9e(0x4db)](_0x468114)[_0x1f0c9e(0x2a6)](_0x5ead56=>{const _0x1dd441=_0x1f0c9e;_0x246124[_0x1dd441(0x24a)]({'cmd':I[_0x1dd441(0x41d)],'code':yt['OK'],'routeKey':_0x468114['data'][_0x1dd441(0x3a7)],'routeType':'','data':{'eventID':_0xc426c8[_0x1dd441(0x4c7)],'data':{'changesets':_0x5ead56}}});})['catch'](_0x571c53=>{const _0x5655ea=_0x1f0c9e;this[_0x5655ea(0x304)][_0x5655ea(0x388)](_0x571c53),_0x4223e4();});return;}}_0x54fd87[_0x1f0c9e(0x39a)](Cn(_0x4f7030));},'close':()=>{const _0x32c6ae=_0x190b65;_0x54fd87[_0x32c6ae(0x2ac)](),_0x5d9f33[_0x32c6ae(0x4de)]();}};return _0x372f49;}async[_0x27a911(0x460)](_0x49598b,_0x32a4be){const _0xca5181=_0x27a911;var _0x5bdc7e;const {unitType:_0x576a97,unitID:_0x22127d,changeset:_0x507e15}=_0x32a4be['data'],_0x1929d6={'unitID':_0x22127d,'memberID':_0x49598b['memberID'],'type':_0x576a97,'changeset':_0x1f8cc1(_0x507e15)},_0x15843d=On((_0x5bdc7e=this['_configService'][_0xca5181(0x406)](dn))!=null?_0x5bdc7e:fn,_0x576a97,_0x22127d);try{await this[_0xca5181(0x489)][_0xca5181(0x472)](_0x15843d,{'body':_0x1929d6});}catch(_0x264360){throw this[_0xca5181(0x304)]['error'](_0xca5181(0x32e),_0xca5181(0x318)),_0x264360;}}async['_fetchMissChangesets'](_0x28bc74){const _0x2e73f2=_0x27a911,{unitID:_0xcc8c47,from:_0x2c7962,to:_0x49ebc8,unitType:_0x30e0c9}=_0x28bc74[_0x2e73f2(0x1a7)];return(await this[_0x2e73f2(0x4a8)][_0x2e73f2(0x247)]({'metadata':void 0x0},{'unitID':_0xcc8c47,'type':_0x30e0c9,'from':_0x2c7962,'to':_0x49ebc8}))[_0x2e73f2(0x3a9)];}};gt=Rn([Ee(0x0,_0x1f782(_0x4c0c53)),Ee(0x1,_0x1f782(_0x370db5)),Ee(0x2,_0x5c69d0),Ee(0x3,_0x5e4d90),Ee(0x4,_0x3aa0af)],gt);class Ds{constructor(){const _0x459bfc=_0x27a911;l(this,_0x459bfc(0x4e1),new _0x5a3e6d()),l(this,'commentUpdate$',this['_commentUpdate$'][_0x459bfc(0x48c)]());}[_0x27a911(0x30d)](_0x5a4b04){const _0x43b2c2=_0x27a911;this[_0x43b2c2(0x4e1)][_0x43b2c2(0x24a)](_0x5a4b04);}}var Dn=Object[_0x27a911(0x29f)],Pn=Object[_0x27a911(0x330)],Ps=(_0x1d8b21,_0x35b17c,_0x17605e,_0x2ea0be)=>{const _0x50e897=_0x27a911;for(var _0x3ed370=_0x2ea0be>0x1?void 0x0:_0x2ea0be?Pn(_0x35b17c,_0x17605e):_0x35b17c,_0x4bc414=_0x1d8b21[_0x50e897(0x4d3)]-0x1,_0x45aa99;_0x4bc414>=0x0;_0x4bc414--)(_0x45aa99=_0x1d8b21[_0x4bc414])&&(_0x3ed370=(_0x2ea0be?_0x45aa99(_0x35b17c,_0x17605e,_0x3ed370):_0x45aa99(_0x3ed370))||_0x3ed370);return _0x2ea0be&&_0x3ed370&&Dn(_0x35b17c,_0x17605e,_0x3ed370),_0x3ed370;},M=(_0x399456,_0x5ef714)=>(_0x23fbec,_0x5a085e)=>_0x5ef714(_0x23fbec,_0x5a085e,_0x399456),de=(_0x3ce5e2=>(_0x3ce5e2[_0x3ce5e2[_0x27a911(0x39f)]=0x0]=_0x27a911(0x39f),_0x3ce5e2[_0x3ce5e2['JOINING']=0x1]=_0x27a911(0x4dc),_0x3ce5e2[_0x3ce5e2[_0x27a911(0x340)]=0x2]=_0x27a911(0x340),_0x3ce5e2[_0x3ce5e2[_0x27a911(0x3e6)]=0x3]='ONLINE',_0x3ce5e2))(de||{});let St=class extends _0xe4c81a{constructor(_0x8fbda7,_0x303b34,_0x3df6f9,_0x399f0f,_0x24ae30,_0x3b8991,_0x529fe9,_0xc633ce,_0x564f39){const _0x3d41dc=_0x27a911;super(),l(this,'_sessionStatus$',new _0x3146d9(0x0)),l(this,_0x3d41dc(0x4a2),this[_0x3d41dc(0x267)]['asObservable']()),l(this,_0x3d41dc(0x453),new _0x5a3e6d()),l(this,_0x3d41dc(0x28f),this['_event$'][_0x3d41dc(0x48c)]()),l(this,'_socket'),l(this,'_socketMessageSubscription'),l(this,'_collaborationTimeoutTimer'),(this['_unitID']=_0x8fbda7,this[_0x3d41dc(0x304)]=_0x3df6f9,this[_0x3d41dc(0x2f8)]=_0x399f0f,this[_0x3d41dc(0x402)]=_0x24ae30,this['_configService']=_0x3b8991,this[_0x3d41dc(0x2e2)]=_0x529fe9,this['_memberService']=_0xc633ce,this[_0x3d41dc(0x46d)]=_0x564f39,_0x303b34[_0x3d41dc(0x1a1)](_0x1e8d86(this[_0x3d41dc(0x1b0)]))[_0x3d41dc(0x307)](_0x3736a5=>{const _0x53c111=_0x3d41dc;var _0x4c9844;typeof _0x3736a5>'u'||(this[_0x53c111(0x397)]=_0x3736a5,_0x3736a5?(this['_joinRoom'](_0x3736a5),this[_0x53c111(0x30b)]=this['_socket']['message$'][_0x53c111(0x307)](_0x185af6=>{const _0x31998a=_0x53c111;_0x185af6[_0x31998a(0x2e0)]===this['_unitID']&&this[_0x31998a(0x363)](_0x185af6);})):(this[_0x53c111(0x267)][_0x53c111(0x24a)](0x2),(_0x4c9844=this['_socketMessageSubscription'])==null||_0x4c9844['unsubscribe'](),this[_0x53c111(0x30b)]=null));}),this[_0x3d41dc(0x3be)](this[_0x3d41dc(0x2f8)][_0x3d41dc(0x270)](()=>{const _0x426225=_0x3d41dc;var _0x142c98;(_0x142c98=this[_0x426225(0x397)])==null||_0x142c98[_0x426225(0x39a)]({'cmd':I[_0x426225(0x208)],'data':{'roomID':this['_unitID']}});})));}get[_0x27a911(0x348)](){const _0x3ed395=_0x27a911;return this[_0x3ed395(0x267)][_0x3ed395(0x45b)]();}[_0x27a911(0x33d)](){const _0x531205=_0x27a911;var _0x52290e,_0x3fa130;return(_0x3fa130=(_0x52290e=this[_0x531205(0x397)])==null?void 0x0:_0x52290e['memberID'])!=null?_0x3fa130:null;}[_0x27a911(0x4de)](){const _0x139715=_0x27a911;super[_0x139715(0x4de)](),this[_0x139715(0x1b0)][_0x139715(0x24a)](),this[_0x139715(0x1b0)][_0x139715(0x44b)]();}[_0x27a911(0x2ac)](){const _0x3b89b7=_0x27a911;var _0x1b4d06,_0x1d53bc;(_0x1b4d06=this[_0x3b89b7(0x397)])==null||_0x1b4d06[_0x3b89b7(0x39a)]({'cmd':I[_0x3b89b7(0x208)],'data':{'roomID':this[_0x3b89b7(0x21f)]}}),this[_0x3b89b7(0x453)][_0x3b89b7(0x44b)](),this[_0x3b89b7(0x267)][_0x3b89b7(0x44b)](),(_0x1d53bc=this[_0x3b89b7(0x397)])==null||_0x1d53bc[_0x3b89b7(0x2ac)](),this['dispose']();}[_0x27a911(0x363)](_0x2edac3){const _0x46caa1=_0x27a911;_0x2edac3['cmd']===I[_0x46caa1(0x40f)]?this[_0x46caa1(0x413)](_0x2edac3):_0x2edac3['cmd']===I['RECV']&&this[_0x46caa1(0x3a1)](_0x2edac3);}[_0x27a911(0x2f5)](_0x16daf9){const _0x479217=_0x27a911;this[_0x479217(0x267)]['next'](0x1),_0x16daf9['send']({'cmd':I[_0x479217(0x40f)],'routeKey':this[_0x479217(0x21f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x479217(0x21f)]}]}});}['_onJoinRoomEvent'](_0x30e11f){const _0xa0e8d9=_0x27a911;var _0x479f83;if(_0x30e11f[_0xa0e8d9(0x37f)]===yt[_0xa0e8d9(0x2b0)]){this[_0xa0e8d9(0x402)][_0xa0e8d9(0x382)]({'type':_0x471b9b['Warning'],'content':this[_0xa0e8d9(0x2e2)]['t'](_0xa0e8d9(0x44a))}),this[_0xa0e8d9(0x267)][_0xa0e8d9(0x24a)](0x2);return;}this[_0xa0e8d9(0x267)][_0xa0e8d9(0x24a)](0x3);const _0x42fcdb=(_0x479f83=_0x30e11f[_0xa0e8d9(0x1a7)][_0xa0e8d9(0x498)][this[_0xa0e8d9(0x21f)]])==null?void 0x0:_0x479f83['members'];_0x42fcdb&&_0x42fcdb[_0xa0e8d9(0x4a1)](_0x376130=>this['_memberService'][_0xa0e8d9(0x3d6)](this[_0xa0e8d9(0x21f)],_0x376130));}[_0x27a911(0x3a1)](_0x3e3c12){const _0x3372f1=_0x27a911;try{const _0x35c4fc=_0x3e3c12[_0x3372f1(0x1a7)];switch(_0x35c4fc[_0x3372f1(0x35d)]){case _0xc426c8['USERS_ENTER']:this['_onUserJoin'](_0x35c4fc),this['_event$']['next'](_0x35c4fc);break;case _0xc426c8[_0x3372f1(0x311)]:this['_onUserLeave'](_0x35c4fc),this['_event$'][_0x3372f1(0x24a)](_0x35c4fc);break;case _0xc426c8[_0x3372f1(0x210)]:this[_0x3372f1(0x248)](),this[_0x3372f1(0x453)]['next'](_0x35c4fc);break;case _0xc426c8[_0x3372f1(0x20d)]:this['_logService'][_0x3372f1(0x388)](_0x3372f1(0x29b)+JSON[_0x3372f1(0x4cb)](_0x35c4fc)),this[_0x3372f1(0x453)]['next'](_0x35c4fc);break;case _0xc426c8[_0x3372f1(0x240)]:this[_0x3372f1(0x46d)][_0x3372f1(0x30d)](_0x35c4fc[_0x3372f1(0x1a7)]),this['_event$'][_0x3372f1(0x24a)](_0x35c4fc);break;default:this[_0x3372f1(0x453)][_0x3372f1(0x24a)](_0x35c4fc);}}catch(_0x251292){this[_0x3372f1(0x304)][_0x3372f1(0x388)](_0x251292,_0x3e3c12);}}[_0x27a911(0x2dc)](_0x4249e1){const _0x41b15e=_0x27a911;this[_0x41b15e(0x371)][_0x41b15e(0x3d6)](this[_0x41b15e(0x21f)],_0x4249e1[_0x41b15e(0x1a7)]);}[_0x27a911(0x20f)](_0x64508e){const _0x98a8f3=_0x27a911;this['_memberService'][_0x98a8f3(0x3e1)](this[_0x98a8f3(0x21f)],_0x64508e['data']['memberID']);}async[_0x27a911(0x39a)](_0x4cd93c,_0x340e7f){const _0x2ce233=_0x27a911;if(this[_0x2ce233(0x348)]!==0x3||!this[_0x2ce233(0x397)])throw new Error(_0x2ce233(0x3ba));try{_0x4cd93c[_0x2ce233(0x35d)]===_0xc426c8[_0x2ce233(0x432)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x2ce233(0x397)][_0x2ce233(0x39a)]({'cmd':I[_0x2ce233(0x422)],'routeKey':_0x340e7f,'routeType':'','data':_0x4cd93c});}catch(_0x288de9){this[_0x2ce233(0x304)][_0x2ce233(0x388)](_0x288de9);}}[_0x27a911(0x4c8)](){const _0x40b489=_0x27a911;var _0x266596;this[_0x40b489(0x3fb)]=window[_0x40b489(0x253)](()=>{const _0x46bdd0=_0x40b489;this[_0x46bdd0(0x3fb)]=null,this[_0x46bdd0(0x402)][_0x46bdd0(0x382)]({'type':_0x471b9b[_0x46bdd0(0x3f0)],'content':this[_0x46bdd0(0x2e2)]['t'](_0x46bdd0(0x21a))});},(_0x266596=this[_0x40b489(0x37e)][_0x40b489(0x406)](bs))!=null?_0x266596:Ts);}[_0x27a911(0x248)](){const _0x4705e8=_0x27a911;this[_0x4705e8(0x3fb)]&&(clearTimeout(this[_0x4705e8(0x3fb)]),this[_0x4705e8(0x3fb)]=null);}};St=Ps([M(0x2,_0x5e4d90),M(0x3,_0xe0324f),M(0x4,_0x3bfc5b),M(0x5,_0x5c69d0),M(0x6,_0x1f782(_0x262e83)),M(0x7,_0x1f782(ne)),M(0x8,_0x1f782(Ds))],St);function _0x5bd0(_0x5063fc,_0x201675){const _0x58ce2c=_0x58ce();return _0x5bd0=function(_0x5bd05a,_0x516154){_0x5bd05a=_0x5bd05a-0x198;let _0x5d9d89=_0x58ce2c[_0x5bd05a];return _0x5d9d89;},_0x5bd0(_0x5063fc,_0x201675);}let ge=class extends _0xd60028{constructor(_0xffefba,_0x302e57,_0x327067,_0x3c2736,_0x44ec2b,_0x2d5f81){const _0x5b0870=_0x27a911;super(),l(this,_0x5b0870(0x45a),new _0x3146d9(void 0x0)),l(this,'_sessions',new Map()),l(this,'_status$',new _0x3146d9(0x0)),l(this,_0x5b0870(0x4a5),this[_0x5b0870(0x1f4)][_0x5b0870(0x48c)]()),l(this,_0x5b0870(0x430),!0x1),l(this,'_sendHeartbeatTimer'),l(this,_0x5b0870(0x2a8)),l(this,_0x5b0870(0x4d5)),l(this,_0x5b0870(0x1a3),0x0),(this[_0x5b0870(0x43e)]=_0xffefba,this['_localeService']=_0x302e57,this[_0x5b0870(0x402)]=_0x327067,this[_0x5b0870(0x304)]=_0x3c2736,this[_0x5b0870(0x37e)]=_0x44ec2b,this[_0x5b0870(0x2ed)]=_0x2d5f81);}get[_0x27a911(0x397)](){const _0x2c34fa=_0x27a911;return this[_0x2c34fa(0x45a)][_0x2c34fa(0x45b)]();}[_0x27a911(0x4de)](){const _0x154f3a=_0x27a911;super['dispose'](),this[_0x154f3a(0x232)]['forEach'](_0x5b799f=>_0x5b799f[_0x154f3a(0x4de)]()),this[_0x154f3a(0x232)][_0x154f3a(0x3f4)](),this[_0x154f3a(0x1f4)][_0x154f3a(0x44b)]();}async['requireSession'](_0x28252a){const _0x19931e=_0x27a911;if(this['_sessions'][_0x19931e(0x496)](_0x28252a))return this['_sessions'][_0x19931e(0x26f)](_0x28252a);this['_tryEnsureSocket']();const _0x4e833d=this[_0x19931e(0x43e)][_0x19931e(0x1ce)](St,_0x28252a,this[_0x19931e(0x45a)][_0x19931e(0x48c)]());return this['_sessions'][_0x19931e(0x19e)](_0x28252a,_0x4e833d),_0x4e833d;}[_0x27a911(0x3b2)](_0x1b2c0e){const _0x5b8009=_0x27a911;var _0x3eebb6;const _0x1d0d9b=this[_0x5b8009(0x232)]['get'](_0x1b2c0e);_0x1d0d9b&&(this[_0x5b8009(0x232)][_0x5b8009(0x21b)](_0x1b2c0e),_0x1d0d9b['close']()),this['_sessions']['size']||(_0x3eebb6=this[_0x5b8009(0x397)])==null||_0x3eebb6['close']();}[_0x27a911(0x480)](){const _0x18c65e=_0x27a911;var _0x587865;const _0xaebc43=(_0x587865=this[_0x18c65e(0x37e)][_0x18c65e(0x406)](sn))!=null?_0x587865:nn;return this[_0x18c65e(0x2ed)]['createSocket'](_0xaebc43);}['_tryEnsureSocket'](){const _0x976fa0=_0x27a911;try{const _0x3fc092=this[_0x976fa0(0x480)]();if(_0x3fc092){const _0xf5ccbc=_0x3fc092['send'];_0x3fc092['send']=_0x4cca1a=>(this[_0x976fa0(0x206)](),_0xf5ccbc['apply'](_0x3fc092,[_0x4cca1a])),_0x3fc092['message$'][_0x976fa0(0x307)](_0x1b2a39=>this[_0x976fa0(0x2c7)](_0x3fc092,_0x1b2a39)),_0x3fc092[_0x976fa0(0x418)][_0x976fa0(0x1a1)](_0x32697e(0x1))['subscribe'](_0x405a79=>this[_0x976fa0(0x304)][_0x976fa0(0x388)](_0x976fa0(0x24e),_0x405a79)),_0x3fc092[_0x976fa0(0x401)][_0x976fa0(0x1a1)](_0x32697e(0x1))['subscribe'](()=>{const _0x450838=_0x976fa0;this[_0x450838(0x1e2)](_0x3fc092);}),_0x3fc092[_0x976fa0(0x294)][_0x976fa0(0x1a1)](_0x32697e(0x1))['subscribe'](_0xa0b220=>{const _0x46760e=_0x976fa0;this[_0x46760e(0x304)][_0x46760e(0x4bd)](_0x46760e(0x47c),_0x46760e(0x392),_0xa0b220),this['_onConnectionFailed']();});}}catch(_0x36f400){this[_0x976fa0(0x304)][_0x976fa0(0x388)](_0x36f400),this[_0x976fa0(0x2d6)]();}}[_0x27a911(0x1e2)](_0x4fe0fc){const _0x40a0b8=_0x27a911;this[_0x40a0b8(0x304)][_0x40a0b8(0x4bd)](_0x40a0b8(0x47c),_0x40a0b8(0x3e0)),_0x4fe0fc['send']({'cmd':I[_0x40a0b8(0x201)]}),this[_0x40a0b8(0x206)]();}[_0x27a911(0x2d6)](){const _0xa711c=_0x27a911;var _0x3206b1;this[_0xa711c(0x1f4)]['next'](0x2),this['_socket$'][_0xa711c(0x24a)](null),this[_0xa711c(0x33e)](),this[_0xa711c(0x220)](),this[_0xa711c(0x430)]=!0x1,this['_retryCount']<((_0x3206b1=this['_configService']['getConfig'](hn))!=null?_0x3206b1:ln)?(this[_0xa711c(0x349)](this[_0xa711c(0x1a3)]),this[_0xa711c(0x1a3)]+=0x1):this['_messageService'][_0xa711c(0x382)]({'type':_0x471b9b[_0xa711c(0x3f0)],'content':this['_localeService']['t']('session.connection-failed')});}[_0x27a911(0x349)](_0x1518ea){const _0x54f6e8=_0x27a911;var _0x3245fb;const _0x47500c=((_0x3245fb=this['_configService']['getConfig'](an))!=null?_0x3245fb:cn)*0x2**_0x1518ea;this[_0x54f6e8(0x402)][_0x54f6e8(0x382)]({'type':_0x471b9b[_0x54f6e8(0x467)],'content':this[_0x54f6e8(0x2e2)]['t'](_0x54f6e8(0x1e1))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x595b55=_0x54f6e8;this[_0x595b55(0x45c)](),clearTimeout(this['_retryConnectingTimer']),this[_0x595b55(0x4d5)]=null;},_0x47500c);}[_0x27a911(0x206)](){const _0xe1f5f7=_0x27a911;var _0x4954c0;this[_0xe1f5f7(0x220)](),this[_0xe1f5f7(0x442)]=setTimeout(()=>this[_0xe1f5f7(0x256)](),(_0x4954c0=this['_configService'][_0xe1f5f7(0x406)](rn))!=null?_0x4954c0:on);}[_0x27a911(0x256)](){const _0x55d667=_0x27a911;this[_0x55d667(0x397)][_0x55d667(0x39a)]({'cmd':I[_0x55d667(0x3ec)]}),this[_0x55d667(0x317)]();}[_0x27a911(0x317)](){const _0x580f31=_0x27a911;var _0x12a213;this[_0x580f31(0x2a8)]=setTimeout(()=>this[_0x580f31(0x2d6)](),(_0x12a213=this[_0x580f31(0x37e)][_0x580f31(0x406)](bs))!=null?_0x12a213:Ts);}['_onMessage'](_0x573cd6,_0x57547c){const _0x3900bd=_0x27a911,{cmd:_0x27f13e}=_0x57547c;_0x27f13e===I[_0x3900bd(0x201)]&&!this[_0x3900bd(0x430)]&&(_0x573cd6[_0x3900bd(0x3f2)]=_0x57547c[_0x3900bd(0x1a7)][_0x3900bd(0x3f2)],this[_0x3900bd(0x45a)][_0x3900bd(0x24a)](_0x573cd6),this[_0x3900bd(0x1f4)][_0x3900bd(0x24a)](0x3),this[_0x3900bd(0x430)]=!0x0),_0x27f13e===I['HEARTBEAT']&&this[_0x3900bd(0x33e)](),this['_rescheduleHeartbeatEvent']();}[_0x27a911(0x220)](){const _0x4baf64=_0x27a911;this[_0x4baf64(0x442)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x4baf64(0x442)]=null);}['_clearTimeoutTimer'](){const _0x3053c6=_0x27a911;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x3053c6(0x2a8)]),this['_timeoutTimer']=null);}};ge=Ps([M(0x0,_0x1f782(_0x55b67e)),M(0x1,_0x1f782(_0x262e83)),M(0x2,_0x3bfc5b),M(0x3,_0x5e4d90),M(0x4,_0x5c69d0),M(0x5,Os)],ge);var wn=Object[_0x27a911(0x29f)],Nn=Object[_0x27a911(0x330)],Mn=(_0x51266d,_0x390c2a,_0x5921a4,_0x53e848)=>{const _0x4304c3=_0x27a911;for(var _0x5833a8=_0x53e848>0x1?void 0x0:_0x53e848?Nn(_0x390c2a,_0x5921a4):_0x390c2a,_0x521074=_0x51266d[_0x4304c3(0x4d3)]-0x1,_0x58f1c4;_0x521074>=0x0;_0x521074--)(_0x58f1c4=_0x51266d[_0x521074])&&(_0x5833a8=(_0x53e848?_0x58f1c4(_0x390c2a,_0x5921a4,_0x5833a8):_0x58f1c4(_0x5833a8))||_0x5833a8);return _0x53e848&&_0x5833a8&&wn(_0x390c2a,_0x5921a4,_0x5833a8),_0x5833a8;},Ce=(_0x37efe5,_0x3fb689)=>(_0x466a53,_0x517fc1)=>_0x3fb689(_0x466a53,_0x517fc1,_0x37efe5);let D=class extends _0xd60028{constructor(_0x31584d,_0x458722,_0x42810d,_0x48ffdc,_0x235ada){const _0x37b148=_0x27a911;super(),l(this,_0x37b148(0x3d1),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x37b148(0x251),!0x1),(this[_0x37b148(0x37e)]=_0x31584d,this['_localStorageService']=_0x458722,this['_beforeCloseService']=_0x42810d,this['_localeService']=_0x48ffdc,this[_0x37b148(0x22a)]=_0x235ada,this[_0x37b148(0x3d9)]());}[_0x27a911(0x3e5)](){const _0x330c8e=_0x27a911;this[_0x330c8e(0x251)]=!0x0;}[_0x27a911(0x3c5)](){const _0x36d255=_0x27a911;this[_0x36d255(0x251)]=!0x1;}[_0x27a911(0x4de)](){const _0x15dad1=_0x27a911;this[_0x15dad1(0x46e)]()[_0x15dad1(0x2a6)](()=>super[_0x15dad1(0x4de)]());}async[_0x27a911(0x237)](_0x178f0a){const _0x4c4238=_0x27a911;return this[_0x4c4238(0x251)]?null:this['_localStorageService']['getItem'](Xt(_0x178f0a));}async[_0x27a911(0x457)](_0x21a935,_0x3837c2){return!!this['_localStorageService']['setItem'](_0x21a935,_0x3837c2);}[_0x27a911(0x198)](_0x1b22f2,_0x325746,_0x2d7711,_0x49c214){const _0x4c916b=_0x27a911,_0x3d6855=this[_0x4c916b(0x22a)][_0x4c916b(0x45d)](_0x1b22f2);this['_cachedData'][_0x4c916b(0x19e)](_0x1b22f2,{'unitID':_0x1b22f2,'type':_0x325746,'awaitingChangeset':_0x2d7711,'mutations':_0x49c214,'rev':_0x3d6855}),this[_0x4c916b(0x1b7)][_0x4c916b(0x496)](_0x1b22f2)||this['_scheduleSaving'](_0x1b22f2);}[_0x27a911(0x383)](_0x40051e){const _0x1a723f=_0x27a911,_0x50c064=this[_0x1a723f(0x23e)]();_0x50c064===0x0?this[_0x1a723f(0x4b8)](_0x40051e):this[_0x1a723f(0x1b7)]['set'](_0x40051e,setTimeout(()=>this[_0x1a723f(0x4b8)](_0x40051e),_0x50c064));}[_0x27a911(0x23e)](){const _0x426961=_0x27a911;var _0x1b726d;return(_0x1b726d=this['_configService'][_0x426961(0x406)](_n))!=null?_0x1b726d:un;}['_saveCache'](_0x8f6cc1){const _0xd4a801=_0x27a911,_0x529c87=this[_0xd4a801(0x1b7)][_0xd4a801(0x26f)](_0x8f6cc1);return _0x529c87!==void 0x0&&window[_0xd4a801(0x273)](_0x529c87),this[_0xd4a801(0x469)][_0xd4a801(0x2cd)](Xt(_0x8f6cc1),this['_cachedData']['get'](_0x8f6cc1))[_0xd4a801(0x2a6)](()=>this['_saveTaskMap'][_0xd4a801(0x21b)](_0x8f6cc1));}async[_0x27a911(0x46e)](){const _0x200910=_0x27a911,_0x1bf83f=[];this['_saveTaskMap'][_0x200910(0x4a1)]((_0x358bf7,_0x4ba845)=>{const _0x1900ca=_0x200910;window[_0x1900ca(0x273)](_0x358bf7),_0x1bf83f[_0x1900ca(0x477)](this[_0x1900ca(0x4b8)](_0x4ba845)[_0x1900ca(0x2a6)](()=>{const _0x1d7c36=_0x1900ca;this[_0x1d7c36(0x1b7)][_0x1d7c36(0x21b)](_0x4ba845);}));}),await Promise[_0x200910(0x4c5)](_0x1bf83f);}[_0x27a911(0x3d9)](){const _0x2122cd=_0x27a911;this[_0x2122cd(0x3be)](this[_0x2122cd(0x2f8)][_0x2122cd(0x44e)](()=>{const _0x1793b7=_0x2122cd;if(this[_0x1793b7(0x1b7)][_0x1793b7(0x1bd)])return this[_0x1793b7(0x2e2)]['t'](_0x1793b7(0x34e));}));}};D=Mn([Ce(0x0,_0x5c69d0),Ce(0x1,_0xe4707a),Ce(0x2,_0xe0324f),Ce(0x3,_0x1f782(_0x262e83)),Ce(0x4,_0x1f782(_0x57a9f9))],D);function Xt(_0x12d1c3){const _0x542d08=_0x27a911;return _0x542d08(0x33a)+_0x12d1c3;}const et=_0x358bbc('univer-pro.collaboration-client.single-active-unit-service');var ws=(_0x51d959=>(_0x51d959[_0x51d959[_0x27a911(0x3fd)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x51d959[_0x51d959[_0x27a911(0x27f)]=0x1]=_0x27a911(0x27f),_0x51d959))(ws||{});const Jt=0x7530,qt=_0x27a911(0x24b);class An extends _0xd60028{constructor(){const _0x899fa3=_0x27a911;super(),l(this,_0x899fa3(0x362),_0x288a64[_0x899fa3(0x376)]()),l(this,_0x899fa3(0x31a),new Set()),l(this,_0x899fa3(0x468),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x899fa3(0x48d),new Map()),l(this,_0x899fa3(0x2a5),new Map()),this[_0x899fa3(0x1f7)]();}['dispose'](){const _0x411dcf=_0x27a911;super['dispose'](),this[_0x411dcf(0x48d)][_0x411dcf(0x4a1)]((_0x44ff77,_0xc9fb2e)=>this[_0x411dcf(0x1d7)](_0xc9fb2e)),this['_heartbeatTimer']&&window[_0x411dcf(0x24f)](this[_0x411dcf(0x24d)]);}['getUnitStatus$'](_0x447458){return this['_ensureSubject'](_0x447458)['pipe'](_0x2e8f34());}[_0x27a911(0x1ad)](_0x1b2661){const _0x2cda0c=_0x27a911;this[_0x2cda0c(0x31a)]['size']===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs']['add'](_0x1b2661),this['_send']({'type':0x0,'memberID':this[_0x2cda0c(0x362)],'unitIDs':[_0x1b2661],'isForwarded':!0x1});}[_0x27a911(0x4b7)](_0x3ce87a){const _0xe9d2d9=_0x27a911;this[_0xe9d2d9(0x31a)][_0xe9d2d9(0x21b)](_0x3ce87a),this[_0xe9d2d9(0x31a)][_0xe9d2d9(0x1bd)]===0x0&&this[_0xe9d2d9(0x24d)]&&window[_0xe9d2d9(0x24f)](this[_0xe9d2d9(0x24d)]);}['_init'](){const _0x1c9753=_0x27a911;this[_0x1c9753(0x3be)](_0x1726d4(_0x4bb1b5(window,_0x1c9753(0x394))[_0x1c9753(0x307)](_0x22b7db=>{const _0x3475c5=_0x1c9753;if(_0x22b7db[_0x3475c5(0x370)]!==qt||!_0x22b7db[_0x3475c5(0x2f4)])return;const _0x1ae83e=JSON[_0x3475c5(0x298)](_0x22b7db['newValue']);this['_handleEvent'](_0x1ae83e);}))),window[_0x1c9753(0x28a)](_0x1c9753(0x3fe),()=>this[_0x1c9753(0x354)]({'type':0x1,'memberID':this[_0x1c9753(0x362)],'unitIDs':Array[_0x1c9753(0x252)](this[_0x1c9753(0x31a)])}));}['_handleEvent'](_0x9b9ca5){const _0x3ba05f=_0x27a911;switch(_0x9b9ca5['type']){case 0x0:this['_handleJoinEvent'](_0x9b9ca5);break;case 0x1:this[_0x3ba05f(0x4c9)](_0x9b9ca5);break;case 0x2:this[_0x3ba05f(0x48e)](_0x9b9ca5);break;}}[_0x27a911(0x2cf)](_0x226d81){const _0x1db348=_0x27a911,{unitIDs:_0x6856a6,memberID:_0x442f7a,isForwarded:_0x57b487}=_0x226d81;_0x6856a6[_0x1db348(0x4a1)](_0x9bb80d=>{const _0x38853f=_0x1db348;if(!_0x57b487&&this[_0x38853f(0x468)][_0x38853f(0x496)](_0x9bb80d)&&this[_0x38853f(0x3f1)](_0x9bb80d)[_0x38853f(0x24a)](0x1),!this[_0x38853f(0x468)]['has'](_0x9bb80d)||!this[_0x38853f(0x468)][_0x38853f(0x26f)](_0x9bb80d)['has'](_0x442f7a)){const _0x2826eb=this[_0x38853f(0x468)]['get'](_0x9bb80d)||new Set();_0x2826eb[_0x38853f(0x3cf)](_0x442f7a),this[_0x38853f(0x468)][_0x38853f(0x19e)](_0x9bb80d,_0x2826eb),this['_scheduleClearOtherTimer'](_0x442f7a);}}),_0x57b487||this['_send']({'type':0x0,'memberID':this[_0x1db348(0x362)],'unitIDs':[...this[_0x1db348(0x31a)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x12a42b){const _0x187bac=_0x27a911;this[_0x187bac(0x1d7)](_0x12a42b);const _0x3fe0dc=window[_0x187bac(0x253)](()=>{const _0x29b008=_0x187bac;this[_0x29b008(0x468)][_0x29b008(0x4a1)](_0x512ff1=>{const _0x177aee=_0x29b008;_0x512ff1[_0x177aee(0x21b)](_0x12a42b);});},Jt*0x2);this[_0x187bac(0x48d)][_0x187bac(0x19e)](_0x12a42b,_0x3fe0dc);}[_0x27a911(0x1d7)](_0x28fbd3){const _0x426a6f=_0x27a911;if(this[_0x426a6f(0x48d)][_0x426a6f(0x496)](_0x28fbd3)){const _0x89c35d=this[_0x426a6f(0x48d)][_0x426a6f(0x26f)](_0x28fbd3);_0x89c35d&&window[_0x426a6f(0x273)](_0x89c35d),this[_0x426a6f(0x48d)]['set'](_0x28fbd3,null);}}[_0x27a911(0x4c9)](_0x28efe0){const _0x3d412a=_0x27a911,{memberID:_0x18170e,unitIDs:_0x200af6}=_0x28efe0;_0x200af6[_0x3d412a(0x4a1)](_0xf7eb53=>{const _0x4baa8b=_0x3d412a;var _0x36fa4d;const _0x3a64a2=this[_0x4baa8b(0x468)][_0x4baa8b(0x26f)](_0xf7eb53);_0x3a64a2&&(_0x3a64a2[_0x4baa8b(0x21b)](_0x18170e),(_0x36fa4d=this[_0x4baa8b(0x3f1)](_0xf7eb53))==null||_0x36fa4d['next'](_0x3a64a2[_0x4baa8b(0x1bd)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x18170e);}['_handleHeartbeatEvent'](_0x109e02){const _0x55a8f9=_0x27a911;this[_0x55a8f9(0x3b1)](_0x109e02[_0x55a8f9(0x3f2)]);}[_0x27a911(0x354)](_0x146a05){const _0xa43a6b=_0x27a911;localStorage[_0xa43a6b(0x2cd)](qt,JSON[_0xa43a6b(0x4cb)](_0x146a05));}['_scheduleHeartbeat'](){const _0xf41bfb=_0x27a911;this[_0xf41bfb(0x24d)]=window[_0xf41bfb(0x374)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Jt);}['_ensureSubject'](_0x2dadde){const _0x25cb8f=_0x27a911;return this['_unitStatus'][_0x25cb8f(0x496)](_0x2dadde)||this[_0x25cb8f(0x2a5)][_0x25cb8f(0x19e)](_0x2dadde,new _0x3146d9(0x0)),this[_0x25cb8f(0x2a5)][_0x25cb8f(0x26f)](_0x2dadde);}}var yn=Object['defineProperty'],Un=Object[_0x27a911(0x330)],Ln=(_0x3dc33e,_0x1cef3c,_0x50e114,_0x563f04)=>{for(var _0x2d75c1=_0x563f04>0x1?void 0x0:_0x563f04?Un(_0x1cef3c,_0x50e114):_0x1cef3c,_0x2dd493=_0x3dc33e['length']-0x1,_0x56d6e0;_0x2dd493>=0x0;_0x2dd493--)(_0x56d6e0=_0x3dc33e[_0x2dd493])&&(_0x2d75c1=(_0x563f04?_0x56d6e0(_0x1cef3c,_0x50e114,_0x2d75c1):_0x56d6e0(_0x2d75c1))||_0x2d75c1);return _0x563f04&&_0x2d75c1&&yn(_0x1cef3c,_0x50e114,_0x2d75c1),_0x2d75c1;},zt=(_0x17e32c,_0x1052d3)=>(_0xc97c2,_0x3274fa)=>_0x1052d3(_0xc97c2,_0x3274fa,_0x17e32c);let Xe=class{constructor(_0x7624a7,_0x475ae5){const _0x159ab4=_0x27a911;this[_0x159ab4(0x43e)]=_0x7624a7,this[_0x159ab4(0x288)]=_0x475ae5;}[_0x27a911(0x2fe)](_0x39eada){const _0x182b8b=_0x27a911;this[_0x182b8b(0x49a)](_0x39eada),this[_0x182b8b(0x393)](_0x39eada);}['transformRemoteChangeset'](_0x7aa6ff){const _0xb09422=_0x27a911,_0x4aacd5=this[_0xb09422(0x43e)][_0xb09422(0x26f)](_0x3c8bf0),{redoCache:_0x5bd1fd}=_0x4aacd5[_0xb09422(0x319)]();if(_0x5bd1fd['length']===0x0)return _0x7aa6ff;let _0x396698=_0x288a64['deepClone'](_0x7aa6ff['mutations'][0x0]);for(let _0x5c9006=0x0;_0x5c9006<_0x5bd1fd['length'];_0x5c9006++){const _0x1e24f5={'id':'doc.mutation.rich-text-editing','params':{..._0x5bd1fd[_0x5c9006]}},_0x253200=this[_0xb09422(0x288)][_0xb09422(0x360)](_0x396698,_0x1e24f5,!0x1);if(_0x21109a(_0x253200))throw _0x253200['error'];_0x396698=_0x253200[_0xb09422(0x238)];}return{..._0x288a64['deepClone'](_0x7aa6ff),'mutations':[_0x396698]};}[_0x27a911(0x49a)](_0x24f754){const _0x1fc647=_0x27a911,_0x2181fd=this[_0x1fc647(0x43e)][_0x1fc647(0x26f)](_0x3c8bf0),{undoCache:_0x31b12f,redoCache:_0x12ce3d}=_0x2181fd['getUndoRedoMutationParamsCache']();if(_0x31b12f[_0x1fc647(0x4d3)]===0x0||_0x12ce3d[_0x1fc647(0x4d3)]===0x0)return;const _0x47ee42=[],_0x454538=[];let _0x4ec4dd=_0x288a64[_0x1fc647(0x4ce)](_0x24f754[_0x1fc647(0x1d2)][0x0]),_0x2ffe21=_0x288a64['deepClone'](_0x24f754[_0x1fc647(0x1d2)][0x0]);for(let _0x183cc1=_0x31b12f[_0x1fc647(0x4d3)]-0x1;_0x183cc1>=0x0;_0x183cc1--){const _0x36c027={'id':_0x1fc647(0x448),'params':{..._0x31b12f[_0x183cc1]}},_0xf4f325={'id':_0x1fc647(0x448),'params':{..._0x12ce3d[_0x183cc1]}},_0x3dcdcf=this[_0x1fc647(0x288)][_0x1fc647(0x360)](_0x4ec4dd,_0x36c027,!0x1),_0x12620d=this[_0x1fc647(0x288)]['transformMutation'](_0x2ffe21,_0xf4f325,!0x1);if(_0x21109a(_0x3dcdcf))throw _0x3dcdcf[_0x1fc647(0x388)];if(_0x21109a(_0x12620d))throw _0x12620d[_0x1fc647(0x388)];_0x47ee42[_0x1fc647(0x1f2)](_0x3dcdcf['m2Prime'][_0x1fc647(0x26a)]),_0x454538[_0x1fc647(0x1f2)](_0x12620d[_0x1fc647(0x2d4)]['params']),_0x4ec4dd=_0x3dcdcf[_0x1fc647(0x238)],_0x2ffe21=_0x12620d[_0x1fc647(0x238)];}_0x2181fd[_0x1fc647(0x387)]({'undoCache':_0x47ee42,'redoCache':_0x454538});}[_0x27a911(0x393)](_0x4fba77){const _0x5b38d9=_0x27a911,_0x49b499=this[_0x5b38d9(0x43e)]['get'](_0x3c8bf0),_0x3dc785=_0x49b499['getActiveRange']();if(_0x3dc785==null)return;const _0x263459=[{'id':_0x5b38d9(0x448),'params':{'unitId':_0x4fba77[_0x5b38d9(0x3a7)],'actions':null,'textRanges':[_0x3dc785]}}],_0x359d88=this[_0x5b38d9(0x288)][_0x5b38d9(0x2be)](_0x4fba77,_0x263459);if(!_0x1707e0(_0x359d88))throw _0x359d88[_0x5b38d9(0x388)];const _0x575595=_0x359d88[_0x5b38d9(0x2d4)][0x0][_0x5b38d9(0x26a)][_0x5b38d9(0x23a)];Array[_0x5b38d9(0x3f8)](_0x575595)&&_0x575595[_0x5b38d9(0x4d3)]&&_0x49b499[_0x5b38d9(0x473)](_0x575595[0x0]);}};Xe=Ln([zt(0x0,_0x1f782(_0x55b67e)),zt(0x1,_0x28f8f5)],Xe);var $n=Object[_0x27a911(0x29f)],jn=Object[_0x27a911(0x330)],Hn=(_0x41a498,_0x372086,_0x2d5280,_0xf28290)=>{for(var _0x3afddd=_0xf28290>0x1?void 0x0:_0xf28290?jn(_0x372086,_0x2d5280):_0x372086,_0x2e17d7=_0x41a498['length']-0x1,_0x1cd01d;_0x2e17d7>=0x0;_0x2e17d7--)(_0x1cd01d=_0x41a498[_0x2e17d7])&&(_0x3afddd=(_0xf28290?_0x1cd01d(_0x372086,_0x2d5280,_0x3afddd):_0x1cd01d(_0x3afddd))||_0x3afddd);return _0xf28290&&_0x3afddd&&$n(_0x372086,_0x2d5280,_0x3afddd),_0x3afddd;},Zt=(_0x38df66,_0x19d783)=>(_0x600fcb,_0x4780d8)=>_0x19d783(_0x600fcb,_0x4780d8,_0x38df66);let Je=class{constructor(_0x54eaff,_0x1edcc3){const _0x5a73af=_0x27a911;this[_0x5a73af(0x43e)]=_0x54eaff,this[_0x5a73af(0x288)]=_0x1edcc3;}['transformSelections'](_0x317020){const _0x495e2a=_0x27a911;var _0x46bbf6;const _0x200d8f=this[_0x495e2a(0x43e)][_0x495e2a(0x26f)](_0x1f4972),_0xf27de6=(_0x46bbf6=_0x200d8f[_0x495e2a(0x3c8)]())!=null?_0x46bbf6:[],_0x1f75fd=_0xf27de6==null?void 0x0:_0xf27de6[_0x495e2a(0x231)](_0x402695);if(_0x1f75fd[_0x495e2a(0x4d3)]===0x0)return;const _0x357329=[{'id':_0x495e2a(0x448),'params':{'unitId':_0x317020[_0x495e2a(0x3a7)],'actions':null,'textRanges':_0x1f75fd}}],_0x5332de=this[_0x495e2a(0x288)][_0x495e2a(0x2be)](_0x317020,_0x357329);if(!_0x1707e0(_0x5332de))throw _0x5332de[_0x495e2a(0x388)];const _0x48167f=_0x5332de['m2Prime'][0x0][_0x495e2a(0x26a)][_0x495e2a(0x23a)];Array[_0x495e2a(0x3f8)](_0x48167f)&&_0x48167f['length']&&_0x200d8f['replaceTextRanges'](_0x48167f,!0x1);}};Je=Hn([Zt(0x0,_0x1f782(_0x55b67e)),Zt(0x1,_0x28f8f5)],Je);function Ns(_0x4cafad){const _0x511aaa=_0x27a911;let _0x3e1bdc='';for(const _0x28a39c of _0x4cafad){const {startOffset:_0x20c103,endOffset:_0x1ade7b,isActive:_0x58d7a7}=_0x28a39c;_0x3e1bdc[_0x511aaa(0x4d3)]&&(_0x3e1bdc+=','),_0x3e1bdc+=_0x20c103+':'+_0x1ade7b+':'+(_0x58d7a7?'1':'0');}return _0x3e1bdc;}function xn(_0xbb9380){const _0x457ec9=_0x27a911,_0x350cb=_0xbb9380[_0x457ec9(0x21e)](','),_0x56d86f=[];for(const _0x3b1575 of _0x350cb){const [_0x47f4e4,_0x5f1848,_0x1956ad]=_0x3b1575['split'](':');_0x56d86f['push']({'startOffset':Number(_0x47f4e4),'endOffset':Number(_0x5f1848),'collapsed':_0x47f4e4===_0x5f1848,'isActive':_0x1956ad==='1'});}return _0x56d86f['some'](_0x35158e=>_0x35158e[_0x457ec9(0x37c)])||(_0x56d86f[0x0][_0x457ec9(0x37c)]=!0x0),_0x56d86f;}class Ut extends _0xe4c81a{constructor(){const _0x41c596=_0x27a911;super(...arguments),l(this,_0x41c596(0x39c),new _0x3146d9(null)),l(this,_0x41c596(0x215),this['_collabCursorState$']['asObservable']());}[_0x27a911(0x440)](_0x36112e){const _0x4be480=_0x27a911,{unitID:_0x3544d7,memberID:_0x47bbe0,textRanges:_0x50b7a2}=_0x36112e,_0x232d6e=Ns(_0x50b7a2),_0x22aebf={'unitID':_0x3544d7,'memberID':_0x47bbe0,'selection':_0x232d6e};this['_collabCursorState$'][_0x4be480(0x24a)](_0x22aebf);}}var Fn=Object['defineProperty'],Vn=Object[_0x27a911(0x330)],kn=(_0x19939b,_0x2a1200,_0x553b60,_0x2c76d8)=>{const _0x344915=_0x27a911;for(var _0x162e32=_0x2c76d8>0x1?void 0x0:_0x2c76d8?Vn(_0x2a1200,_0x553b60):_0x2a1200,_0xe26397=_0x19939b[_0x344915(0x4d3)]-0x1,_0x245f62;_0xe26397>=0x0;_0xe26397--)(_0x245f62=_0x19939b[_0xe26397])&&(_0x162e32=(_0x2c76d8?_0x245f62(_0x2a1200,_0x553b60,_0x162e32):_0x245f62(_0x162e32))||_0x162e32);return _0x2c76d8&&_0x162e32&&Fn(_0x2a1200,_0x553b60,_0x162e32),_0x162e32;},Qt=(_0x586fb2,_0x2b66c6)=>(_0x4f5d75,_0x211685)=>_0x2b66c6(_0x4f5d75,_0x211685,_0x586fb2);function Bn(_0x466432){const _0x3893ea=_0x27a911,{unitID:_0x584b48,mutations:_0x17fc8b}=_0x466432;return{'unitId':_0x584b48,'subUnitId':_0x17fc8b[0x0][_0x3893ea(0x26a)][_0x3893ea(0x1c2)]};}let qe=class{constructor(_0x3c2075,_0x3f809f){const _0x17c3ca=_0x27a911;this[_0x17c3ca(0x43e)]=_0x3c2075,this['_transformService']=_0x3f809f;}[_0x27a911(0x342)](_0x2b1d87){const _0x4c29a6=_0x27a911;var _0x2541d4,_0x3afe7e,_0x3450d1;const _0x4c5d44=this[_0x4c29a6(0x43e)][_0x4c29a6(0x26f)](_0x378282),{unitId:_0x31f630,subUnitId:_0x2013c5}=Bn(_0x2b1d87),_0x58c650=_0x4c5d44[_0x4c29a6(0x27d)](_0x31f630)[_0x4c29a6(0x3c8)]();if(_0x58c650[_0x4c29a6(0x4d3)]===0x0||!_0x31f630||!_0x2013c5)return;const _0x48f53c=[{'id':_0x3e4a02['id'],'params':{'unitId':_0x31f630,'subUnitId':_0x2013c5,'selections':_0x288a64[_0x4c29a6(0x4ce)](_0x58c650)}}],_0x14b1bc=this[_0x4c29a6(0x288)][_0x4c29a6(0x2be)](_0x2b1d87,_0x48f53c);if(!_0x1707e0(_0x14b1bc))throw _0x14b1bc['error'];const _0x11e098=(_0x3450d1=(_0x3afe7e=(_0x2541d4=_0x14b1bc[_0x4c29a6(0x2d4)][0x0])==null?void 0x0:_0x2541d4['params'])==null?void 0x0:_0x3afe7e[_0x4c29a6(0x27a)])!=null?_0x3450d1:_0x58c650;Array[_0x4c29a6(0x3f8)](_0x11e098)&&_0x11e098[_0x4c29a6(0x4d3)]&&this[_0x4c29a6(0x43e)][_0x4c29a6(0x26f)](_0x22dfc9)[_0x4c29a6(0x3f6)](_0x3e4a02['id'],{'unitId':_0x31f630,'subUnitId':_0x2013c5,'selections':_0x11e098});}};qe=kn([Qt(0x0,_0x1f782(_0x55b67e)),Qt(0x1,_0x28f8f5)],qe);function _0x58ce(){const _0xd4fef8=['text','defs','JOIN','hovered','interceptor','getSheetBlock','_onJoinRoomEvent','find','LICENSE_DISTRO_REJECTED','_transformSelections','/universer-api/snapshot/','error$','clipPath','put','call','_lockTransition','RECV','save','_awaitingChangeset','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','url(#off-line-single_clip0_910_343)','INGEST','setParam','verdancy600','getMember','4567990HhkeSu','displayName','synced','on-line-single_clip0_910_349','getParam','saveChangeset','_updateState','assign','_onConflict','getCollabEntity$','_socketReady','endRow','NEW_CHANGESETS','_collaborationPaused','body','moveTo','searchParams','...','UPDATE_PERMISSION_OBJ','InsertRangeMoveDownCommandId','/unit/','getTime','onSyncEditingCollabCursor','_checkMissing','_injector','_incrementRevisionNumber','syncEditingCollabCursor','UNAUTHENTICATED','_sendHeartbeatTimer','color','registerHTTPInterceptor','InsertRangeMoveRightCommandId','?url=','fromCollab','doc.mutation.rich-text-editing','responseType','session.room-full','complete','evenodd','CONNECTOR_DATA_TOO_LARGE','registerBeforeClose','UPDATE_CURSOR','_unitId','[CollaborationState]:\x20apply\x20error!','conflict','_event$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabStatus.fetchMiss','round','saveOfflineData','_state$','location','_socket$','getValue','_tryEnsureSocket','getCurrentRevForDocument','univer-online-status-title','svg','_submitChangeset','change$','_pendingMutations','_removeRoom','_range','updateCursorEvent','Error\x20on\x20receiving\x20event','Warning','_unitOnClients','_localStorageService','collaboratorID','_getUndoStack','getTypeOfUnitAdded$','_commentService','exhaustSavingTask','actions','focused$','pluginName','post','setActiveRange','InsertRowCommandId','LICENSE_IMPORT_SIZE_EXCEEDED','method','push','onRemoteRej','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COLLAB_WEB_SOCKET_URL','APPLY_REVISION_CONFILICT','[CollaborationSessionService]','/rev/','loadSheet','_getSheetObject','_createSocket','putCollaborators','result','baseRev','M0\x200H16V16H0z','conflict.title','replace','flatMap','_anchorDot','_http','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','withCredentials','asObservable','_clearOtherTimers','_handleHeartbeatEvent','extend','_getAPIPrefix','SNAPSHOT_INVALID_SNAPSHOT','title','FromArray','_refRangeService','xlink:href','has','triggerDblclick','roomInfos','_updateLocalCache','_transformUndoRedoStack','135eXWdkP','[SyncedState]:\x20received\x20rejection.','collabStatus.synced','9481840xkibxG','joinEvent','AWAITING_WITH_PENDING','forEach','sessionStatus$','/resources','init','status$','/object/','_config','_snapshotServerService','_docStateChangeManagerService','currentColor','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','univer-online','message$','_labelPosition','getViewModel','_syncEditingCollabCursor','OnLineSingle','_colorIndex','collab-text-range-','getCollabCursors$','permission.content','_onFetchMissResult','disposeUnit','_saveCache','LOGIN_URL_KEY','RemoveColCommandId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','use','debug','UNIVER_COLLABORATION_CLIENT_PLUGIN','hasOwnProperty','resolve','_startDocCollabCursor','Univer','purple300','PERMISSION_REJ','all','onPointerMove$','PSEUDO_FETCH_MISSING_RESULT','_scheduleCollaborationTimeoutTimer','_handleLeaveEvent','OffLineSingle','stringify','fetch_missing','_getSignURL','deepClone','UNKNOWN_CMD','DEFAULT_FILE_NAME','csRejEvent','urlChange$','length','uni.network.url-service','_retryConnectingTimer','_collaborationController','_getScale','getInterceptPoints','_startCollaboration','incrementRevForDocument','_fetchMissChangesets','JOINING','permissionRejEvent','dispose','_docTransformSelectionsService','image/gif','_commentUpdate$','updateOfflineData','getActiveSheet','_schedule','liveShareNewHost','closePath','[OfflineState]:\x20received\x20acknowledgement.','set','blue400','&to=','pipe','_document','_retryCount','DeleteRangeMoveUpCommandId','backgroundColor','updatePermissionPoint','data','createSocket','_render','FETCH_MISSING','_getCtorByUniverType','onCommandExecuted','editingUnit','updateCollaborator','_initModules','dispose$','UniverIcon','_roomMembers$','_backgroundColor','userID','transformUndoRedo','_updateCollabCursors','_saveTaskMap','_getRedoStack','transform','_initStatusListener','_handler','beginPath','size','_hovered','currentTheme$','measureText','_localCacheService','subUnitId','onPointerLeave$','UNIVER_DOC','_decreaseWaiting','_cursors','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','[UniverCollaborationClientPlugin]','_replayCachedMutations','fillRule','cmd','_permissionService','_remoteChangesetQueue','createInstance','url(#on-line-single_clip0_910_349)','c2Prime','_updateSubUnitFromURLParams','mutations','currentSkeleton$','_getAnchorBounding','objectID','APPLY_NON_SEQUENTIAL_REVISION','_removeClearOtherTimer','_createInitialStateImpl','getRenderById','status','_updateURLWithCurrentState','subunit','_undoRedoService','INVALID_ARGUMENT','CHANGESET_REJ','requestParams','session.will-retry','_onConnectionOpen','gold400','setCurrentUser','_loadDoc','[FetchMissState]','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getUnitType','state$','Ready','off-line-single_clip0_910_343','_name','permission.title','UNRECOGNIZED','height','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','_initCloseConn','unshift','state','_status$','apply','_eventUnsubscribe','_init','collaborators','univer-offline','makeDirty','_state','[SyncedState]:\x20received\x20acknowledgement.','column','_substituteRedoStack','width','reduce','HELLO','getOffsetConfig','_removeCollabCursors','roomMembers$','infoRsp','_rescheduleHeartbeatEvent','_clearScheduledTask','LEAVE','lineTo','isEditing','BASE64','[CollaborationUndoRedoService]','MSG_FOR_ERROR','auth.needGotoLoginAlert','_onUserLeave','CHANGESET_ACK','createCollaborator','range','transformChangesets','collabStatus.notCollab','collabCursorState$','LIVESHARE_FETCH_OPERATIONS','selection','HEADER_MENU','rgba(255,\x20255,\x20255,\x200.01)','session.collaboration-timeout','delete','_drawRange','LIVESHARE_OPERATION','split','_unitID','_clearHeartbeatTimer','_docSkeletonManagerService','MUTATION','includes','conflict.content','_snapshotService','_type','onTransformIME','onlineStatusTitle','div','_revisionService','_members','workbook','assignAColorForMemberID','1em','shouldCloseConn','_substituteUndoStack','map','_sessions','UNIVER_UNKNOWN','_onRemoteACK','getSheetBySheetId','findNodePositionByCharIndex','loadOfflineData','m1Prime','drawWith','textRanges','_entities','history','encode','_getSaveTimeout','override','COMMENT_UPDATE','_hover','getDataModel','0\x200\x2016\x2016','registerComponent','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','_collaborationSessionService','fetchMissingChangesets','_clearCollaborationTimeoutTimer','unitId','next','ACTIVE_UNIT_EVENT_CHANNEL','slice','_heartbeatTimer','[CollaborationSessionService]:\x20socket\x20error','clearInterval','saveSnapshot','_disabled','from','setTimeout','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_sheetTransformSelectionsService','_sendHeartbeat','onMouseMove','onTransformRemoteChangesetByIMECache','onPointerEnter$','getFocusedUnit','startRow','socketService','_replaceFileID','LICENSE_MAX_UNITS_EXCEEDED','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','fillText','univerjs-icon\x20univerjs-icon-','propertyIsEnumerable','ranges','0\x200\x2017\x2016','getRangePointData','22hKEYwC','_sessionStatus$','roomMembers','path','params','list','_entityInit$','onRemoteChangeset','awaiting_with_pending','get','registerOnClose','not_collab','SHOULD_CLOSE_CONN','clearTimeout','_commandService','initWorkbookPermissionChange','_queuedRemoteChangesets','APPLY_PERMISSION_DENIED','create','getAncestorScale','selections','UNDEFINED','getUnitOnRev','getWorkbookSelections','NOT_COLLAB','OTHER_CLIENTS_EDITING','removeParam','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','toggleOffline','YUUMI_URL_COL_OUT_OF_RANGE','getCellPositionByOffset','sheetID','collabStatus.offline','_getMergeRange','_transformService','pushState','addEventListener','sheets','prototype','_lastPointer','bottom','event$','docStateChange$','online','_collabSessionService','UNKNOWN_CODE','close$','/block/','ERROR_IMAGE_TYPE','resourceIDs','parse','collabStatus.syncing','\x20in\x20_schedule.','save\x20fail\x20reason\x20is\x20','_syncEditingCollabCursorService','max','62250UAVvki','defineProperty','_clearLocalCache','createElement','setAlpha','fetching\x20missing\x20changesets\x20from\x20','href','_unitStatus','then','_createInitialState','_timeoutTimer','SUCCUSS','string','replaceState','close','_imageSourceCache','RETRY_CONNECTING_INTERVAL','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','FAIL','VIEW_MAIN','[PendingState]:\x20received\x20rejection.','pauseCollaboration','startsWith','4113654TPxrHK','trim','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_HTTPService','min','getUnitId','COMPLETION_FINISHED','LIVESHARE_TERMINATE','_initMergeInterceptor','transformMutationsWithChangeset','_toggleOnline','\x0aAfter:\x20','awaitingChangeset','subscribeEvent','_setupSubUnitSync','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','indexOf','USERS_ENTER','_onMessage','unknown','json','liveShareOperation','jiqing500','_textBubble','setItem','translate(.97)','_handleJoinEvent','_createHandler','onTransformSelections','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_colorAssignService','m2Prime','SNAPSHOT_URL_KEY','_onConnectionFailed','_httpService','appendMutation','_themeService','_hideTimer','deleteCollaborator','_onUserJoin','listRoles','/collaborator','localeService','routeKey','name','_localeService','_initUnitPermissionChange','_startSheetCollabCursor','getTypeOfUnitDisposed$','_redoStacks','_clearRedo','Unknown\x20user','addImageSourceCache','/fetchmissing?from=','_loadSheet','CONFLICT','_socketService','icon','POST','FETCH_MISS','random','_onRefRangeChange','action','newValue','_joinRoom','_handleHover','PENDING','_beforeCloseService','onlineStatus','1164ofaSmR','_transformUndoredo','pending','_scheduleTimestamp','transformIMECache','updatePermissionObjEvent','defIds','batchAllowed','_getLoginPath','editing\x20status\x20changed\x20to','_logService','saveImage','getCurrentUnitForType','subscribe','_anchor','FileId','LIVESHARE_NEW_HOST','_socketMessageSubscription','connection\x20error','onCommentUpdate','COMPRESS_MUTATION_APPLY','_change$','_collabCursorController','USERS_LEAVE','_draw','[PendingState]:\x20received\x20acknowledgement.','?size=','red300','_getCurrentRevision','_waitForHeartbeatResponse','submit\x20changeset\x20error!','getUndoRedoMutationParamsCache','_selfUnitIDs','PERMISSION_DENIED','fetchThroughInterceptors','SNAPSHOT_SERVER_URL_KEY','_exhaustRemoteChangesetQueue','YUUMI_UNABLE_LOAD_URL','_uiPartsService','/universer-api/stream/file/upload','onlyLocal','_compressMutationService','function','getCollabEntity','onRemoteAck','Starting','catch','LIVESHARE_REQUEST_HOST','roles','_color','_transitionLocked','concat','[CollaborationSession]','_online','getOwnPropertyDescriptor','setWaitCount','arc','toRgbString','_onLocalMutation','substring','revision','requireSession','c1Prime','_univerInstanceService','unit-cache-','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getMemberID','_clearTimeoutTimer','_sendingTimer','OFFLINE','transformRemoteChangeset','transformSelections','/object','UNIVER_SLIDE','offline','_renderManagerService','registerRefRange','sessionStatus','_scheduleReconnection','reject','onSendChangeset','unsubscribe','on-line-single','collaboration-client.offline-data-not-saved','61486hbQlbC','isPermissionRej','_onCursorUpdate','getUniverSheetInstance','_waitCount','_send','onlineStatusIcon','_isPermissionRej','_cursor','ALREADY_EXISTS','objectActions','[DataLoaderController]','_session','enableSingleActiveInstanceLock','eventID','_cursorInfo$','8EBBAtr','transformMutation','fillStyle','_id','_onCombEvent','whenReady','MoveRangeCommandId','setShapeProps','saveSheetBlock','getMergeData','getSheetId','failed\x20to\x20apply\x20missed\x20changesets!','_transformStack','activeSheet$','\x20-\x20','entries','_updateStatus','key','_memberService','_transformIMECache','resend','setInterval','collaborationUniverTypes','generateRandomId','#fff','onMissedChangesetFetched','unit','hide','[CollaborationEntity]','isActive','_getSendChangesetTimeout','_configService','code','ws://127.0.0.1:8000/universer-api/comb/connect','enableOfflineEditing','show','_scheduleSaving','/-/object/list','SNAPSHOT_HAS_BEEN_REMOVED','allowed','setUndoRedoMutationParamsCache','error','_ws','colorChannel1','/new_changes','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','type','file','confirm','getRelativeToViewportCoord','_transformRemoteChangesetByIMECache','socket\x20close','_transformPreviousActiveRange','storage','src','_applyRemoteChangeset','_socket','_acknowledgedAwaitingChangeset','SUBMIT_CHANGESET','send','_clearUndo','_collabCursorState$','collaboration.single-unit.warning','_urlService','IDLE','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRecvEvent','current','addObject','attrs','{fileID}','_docSyncEditingCollabCursorService','unitID','children','changesets','tag','url','commentUpdateEvent','SEND_CHANGESET_TIMEOUT','toggleOnline','_docTransformIMECacheService','toString','_scheduleClearOtherTimer','closeSession','_onCursorDelete','\x20to\x20','reverse','awaiting','image/png','compose','univer-online-status-icon','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','values','patch','_sheetSkeletonManagerService','disposeWithMe','fill','Steady','_singleActiveUnitService','UNIVER_SHEET','_showConflictNotification','_initStatusComponent','enableLocalCache','objectType','off-line-single','getCurrentSelections','SYNCED','originalMeta','black','univer-pro.collaboration-client-socket-service','NOT_FOUND','labelPosition','add','loadDoc','_cachedData','_executeRemoteChangeset','getCurrentUser','/-/object/-/batch_allowed','HEARTBEAT_TIMEOUT','updateMember','rev','_userManagerService','_setupBeforeClosingHandler','_disableEditing','getUnitStatus$','376713OfzvBY','_getUploadFileURL','_roomMembers','restore','socket\x20open.','removeMember','ERROR_IMAGE','_onRemoteRejected','getImage','disableLocalCache','ONLINE','collab-text-anchor-','_scene','font','_getSnapshotAPIPrefix','AWAITING','HEARTBEAT','skeleton','_getAPIPrefixPath','_notificationService','Error','_ensureSubject','memberID','popstate','clear','cursorInfo$','executeCommand','_toggleOffline','isArray','symbol','_assignedColors','_collaborationTimeoutTimer','csAckEvent','NO_OTHER_CLIENTS_EDITING','unload','onload','LOCAL_CACHE_INTERVAL','open$','_messageService','cursorInfo','url(#$1','_updateLocalCursor','getConfig','/allowed','_drawAnchor','INTERNAL_ERROR','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_unlockTransition','_shapes'];_0x58ce=function(){return _0xd4fef8;};return _0x58ce();}const Wn=new Set([_0x494d53['id']]);function Gn(_0x4e44c0,_0x409b00,_0x178e49,_0x400438,_0x573ffc){const _0x45570d=_0x27a911;var _0x55d7df,_0x1e9e4d,_0x2fe10f,_0x28f0e0;const _0x59feeb=[];for(const _0x4264de of _0x4e44c0)if(Wn['has'](_0x4264de['id'])){if(_0x59feeb[_0x45570d(0x4d3)]>0x0)break;_0x59feeb['push'](_0x4264de);break;}else _0x59feeb[_0x45570d(0x477)](_0x4264de);const _0x3a191d=(_0x1e9e4d=(_0x55d7df=_0x573ffc[_0x45570d(0x3d3)]())==null?void 0x0:_0x55d7df[_0x45570d(0x1b4)])!=null?_0x1e9e4d:_0x45570d(0x2c8),_0xefc524=(_0x28f0e0=(_0x2fe10f=_0x573ffc['getCurrentUser']())==null?void 0x0:_0x2fe10f[_0x45570d(0x3f2)])!=null?_0x28f0e0:_0x45570d(0x2c8);return{'changeset':{'unitID':_0x409b00,'type':_0x5c4843(_0x178e49[_0x45570d(0x1e8)](_0x409b00)),'baseRev':_0x400438[_0x45570d(0x45d)](_0x409b00),'revision':0x0,'userID':_0x3a191d,'memberID':_0xefc524,'mutations':_0x59feeb},'pendingMutations':_0x4e44c0[_0x45570d(0x24c)](_0x59feeb['length'])};}function Yn(_0x294719,_0x283a29,_0x3eac55,_0x3b3897,_0x4540bd){const _0x4551d4=_0x27a911;var _0x3cdf4f,_0x100167,_0x6334b,_0x371532;const _0x4d4de3=[_0x294719[_0x4551d4(0x200)]((_0x2fde55,_0x307f0e)=>{const _0x52483c=_0x4551d4;var _0x48acc1;const {id:_0x580c4a}=_0x2fde55,{id:_0x70bf1f,type:_0x27429e}=_0x307f0e,_0x159c3e=(_0x48acc1=_0x2fde55[_0x52483c(0x26a)])!=null?_0x48acc1:{'actions':null},_0x531014=_0x307f0e['params'];if(_0x580c4a&&_0x580c4a!==_0x70bf1f)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x580c4a+_0x52483c(0x36d)+_0x70bf1f+'.');return{..._0x2fde55,'id':_0x70bf1f,'type':_0x27429e,'params':{'unitId':_0x531014['unitId'],'textRanges':_0x531014[_0x52483c(0x23a)],'actions':_0x3d81d5[_0x52483c(0x3b8)](_0x159c3e[_0x52483c(0x46f)],_0x531014[_0x52483c(0x46f)])}};},{})],_0x21e23f=(_0x100167=(_0x3cdf4f=_0x4540bd[_0x4551d4(0x3d3)]())==null?void 0x0:_0x3cdf4f['userID'])!=null?_0x100167:'unknown',_0x56e1ad=(_0x371532=(_0x6334b=_0x4540bd[_0x4551d4(0x3d3)]())==null?void 0x0:_0x6334b[_0x4551d4(0x3f2)])!=null?_0x371532:'unknown';return{'changeset':{'unitID':_0x283a29,'type':_0x5c4843(_0x3eac55[_0x4551d4(0x1e8)](_0x283a29)),'baseRev':_0x3b3897['getCurrentRevForDocument'](_0x283a29),'revision':0x0,'userID':_0x21e23f,'memberID':_0x56e1ad,'mutations':_0x4d4de3},'pendingMutations':[]};}var Kn=Object[_0x27a911(0x29f)],Xn=Object[_0x27a911(0x330)],oe=(_0x157896,_0x16d210,_0x3c8296,_0x3eb4ed)=>{const _0x4e902f=_0x27a911;for(var _0x329938=_0x3eb4ed>0x1?void 0x0:_0x3eb4ed?Xn(_0x16d210,_0x3c8296):_0x16d210,_0x295771=_0x157896[_0x4e902f(0x4d3)]-0x1,_0x12b8c8;_0x295771>=0x0;_0x295771--)(_0x12b8c8=_0x157896[_0x295771])&&(_0x329938=(_0x3eb4ed?_0x12b8c8(_0x16d210,_0x3c8296,_0x329938):_0x12b8c8(_0x329938))||_0x329938);return _0x3eb4ed&&_0x329938&&Kn(_0x16d210,_0x3c8296,_0x329938),_0x329938;},m=(_0x4cd74b,_0x22c941)=>(_0x37f696,_0x2cb920)=>_0x22c941(_0x37f696,_0x2cb920,_0x4cd74b),w=(_0x3f8bfe=>(_0x3f8bfe['NOT_COLLAB']=_0x27a911(0x271),_0x3f8bfe['SYNCED']=_0x27a911(0x428),_0x3f8bfe[_0x27a911(0x2f7)]=_0x27a911(0x2fc),_0x3f8bfe[_0x27a911(0x3eb)]='awaiting',_0x3f8bfe[_0x27a911(0x4a0)]=_0x27a911(0x26e),_0x3f8bfe[_0x27a911(0x2f0)]=_0x27a911(0x4cc),_0x3f8bfe['CONFLICT']=_0x27a911(0x452),_0x3f8bfe[_0x27a911(0x340)]='offline',_0x3f8bfe))(w||{});class ae{constructor(_0x8120e0,_0x5115a7,_0x3f5dfd,_0x1ebe36,_0x18b4a8,_0x2bb1bd,_0x16ec3d,_0x136d78,_0x42284f){const _0x382d99=_0x27a911;l(this,_0x382d99(0x41f),null),l(this,_0x382d99(0x462),[]),(this['unitID']=_0x8120e0,this[_0x382d99(0x38d)]=_0x5115a7,this[_0x382d99(0x1bb)]=_0x18b4a8,this[_0x382d99(0x274)]=_0x2bb1bd,this[_0x382d99(0x1dd)]=_0x16ec3d,this['_revisionService']=_0x136d78,this[_0x382d99(0x1c1)]=_0x42284f,this['_awaitingChangeset']=_0x3f5dfd,this[_0x382d99(0x462)]=_0x1ebe36);}[_0x27a911(0x43d)](_0x3e14f9){const _0x135897=_0x27a911,_0x5726ea=this[_0x135897(0x22a)][_0x135897(0x45d)](this['unitID']);return _0x3e14f9[_0x135897(0x336)]>_0x5726ea+0x1?(this[_0x135897(0x1bb)]['onMissingChangesets']({'from':_0x5726ea,'to':_0x3e14f9[_0x135897(0x336)]-0x1}),!0x0):!0x1;}[_0x27a911(0x2fb)](_0x4eedfd){const _0x55cf88=_0x27a911;this[_0x55cf88(0x1dd)][_0x55cf88(0x1b5)](this[_0x55cf88(0x3a7)],_0x4eedfd);}[_0x27a911(0x416)](_0x33b904){const _0x452ad6=_0x27a911;var _0xc1a29a,_0x5c160f;(_0x5c160f=(_0xc1a29a=this[_0x452ad6(0x1bb)])[_0x452ad6(0x2d1)])==null||_0x5c160f['call'](_0xc1a29a,_0x33b904);}[_0x27a911(0x372)](_0x470d11){const _0x2ada3b=_0x27a911;var _0x3a6836,_0xf691e8;return(_0xf691e8=(_0x3a6836=this[_0x2ada3b(0x1bb)])['onTransformIME'])==null?void 0x0:_0xf691e8[_0x2ada3b(0x41b)](_0x3a6836,_0x470d11);}['_transformRemoteChangesetByIMECache'](_0x1638c3){const _0x13f5f3=_0x27a911;var _0x47535f,_0x937d6d,_0x359aa1;return(_0x359aa1=(_0x937d6d=(_0x47535f=this[_0x13f5f3(0x1bb)])[_0x13f5f3(0x258)])==null?void 0x0:_0x937d6d[_0x13f5f3(0x41b)](_0x47535f,_0x1638c3))!=null?_0x359aa1:_0x1638c3;}[_0x27a911(0x4b0)](_0x1e771b){const _0x5f23df=_0x27a911;var _0xd751ad,_0x2eb514;if(this[_0x5f23df(0x38d)]===H['UNIVER_DOC']){const {unitID:_0x2a8f06,mutations:_0x129391,memberID:_0x21a638}=_0x1e771b,_0x10132b=_0x129391[0x0][_0x5f23df(0x26a)]['textRanges'];Array[_0x5f23df(0x3f8)](_0x10132b)&&_0x10132b[_0x5f23df(0x4d3)]>0x0&&((_0x2eb514=(_0xd751ad=this[_0x5f23df(0x1bb)])[_0x5f23df(0x43c)])==null||_0x2eb514[_0x5f23df(0x41b)](_0xd751ad,{'unitID':_0x2a8f06,'memberID':_0x21a638,'textRanges':_0x10132b}));}}['_updateLocalCache'](){const _0x1d1068=_0x27a911;this[_0x1d1068(0x1c1)][_0x1d1068(0x198)](this['unitID'],this[_0x1d1068(0x38d)],this[_0x1d1068(0x41f)],this[_0x1d1068(0x462)]);}[_0x27a911(0x316)](){const _0x504fe1=_0x27a911;return this[_0x504fe1(0x22a)]['getCurrentRevForDocument'](this['unitID']);}[_0x27a911(0x43f)](){const _0x504bc5=_0x27a911;this[_0x504bc5(0x22a)][_0x504bc5(0x4da)](this['unitID']);}[_0x27a911(0x3d2)](_0x13aee5){const _0x29d36a=_0x27a911;var _0x2ac122;const _0x1b60e5=this[_0x29d36a(0x391)](_0x13aee5),_0x371ac3=_0x183dc1(_0x1b60e5[_0x29d36a(0x1d2)],this['_commandService'],{'fromCollab':!0x0});if(!_0x371ac3[_0x29d36a(0x482)])throw _0x371ac3[_0x29d36a(0x388)]instanceof Error?_0x371ac3[_0x29d36a(0x388)]:new Error((_0x2ac122=_0x371ac3[_0x29d36a(0x388)])!=null?_0x2ac122:_0x29d36a(0x451));this['_transformIMECache'](_0x1b60e5),this[_0x29d36a(0x2fb)](_0x13aee5),this[_0x29d36a(0x416)](_0x1b60e5),this[_0x29d36a(0x4b0)](_0x1b60e5),this['_incrementRevisionNumber']();}}let Ne=class extends ae{constructor(_0x4104b1,_0x1cfaf2,_0x506532,_0x2ff59f,_0x4c7c40,_0x2487f8,_0x5bb0c2,_0x10868a,_0x29c172){const _0x192650=_0x27a911;super(_0x4104b1,_0x1cfaf2,null,[],_0x506532,_0x10868a,_0x5bb0c2,_0x2ff59f,_0x4c7c40),l(this,'status','synced'),(this[_0x192650(0x43e)]=_0x2487f8,this['_logService']=_0x29c172);}[_0x27a911(0x2d8)](_0x3395b2){const _0x2b2453=_0x27a911,_0x401881=this[_0x2b2453(0x43e)][_0x2b2453(0x1ce)](B,this[_0x2b2453(0x3a7)],this[_0x2b2453(0x38d)],[_0x3395b2],this[_0x2b2453(0x1bb)]);return _0x401881['_schedule'](),_0x401881[_0x2b2453(0x499)](),_0x401881;}[_0x27a911(0x26d)](_0x412a43){const _0x47e955=_0x27a911;if(this[_0x47e955(0x43d)](_0x412a43))return this['_injector'][_0x47e955(0x1ce)](G,this[_0x47e955(0x3a7)],this['type'],null,[],null,[_0x412a43],this[_0x47e955(0x1bb)]);try{return this[_0x47e955(0x3d2)](_0x412a43),this;}catch(_0x33e91c){return this[_0x47e955(0x304)]['error']('[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.',_0x33e91c),this;}}[_0x27a911(0x326)](){const _0x532256=_0x27a911;throw new Error(_0x532256(0x1fc));}[_0x27a911(0x478)](){const _0x1eee99=_0x27a911;throw new Error(_0x1eee99(0x49c));}[_0x27a911(0x282)](){const _0x8ae83a=_0x27a911;return this[_0x8ae83a(0x43e)][_0x8ae83a(0x1ce)](z,this['unitID'],this[_0x8ae83a(0x38d)],null,[],this[_0x8ae83a(0x1bb)]);}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x373)](){const _0x2ef2c5=_0x27a911;throw new Error(_0x2ef2c5(0x420));}};Ne=oe([m(0x3,_0x1f782(_0x57a9f9)),m(0x4,_0x1f782(D)),m(0x5,_0x1f782(_0x55b67e)),m(0x6,_0x761a41),m(0x7,_0x22dfc9),m(0x8,_0x5e4d90)],Ne);let B=class extends ae{constructor(_0x5413de,_0x5afd57,_0x155079,_0x1d715d,_0x490c75,_0x37034c,_0x402ec0,_0x2066ca,_0x4ae535,_0x126369,_0x1318cb,_0x499fe1,_0x17f3a6,_0x1512ec){const _0x454b43=_0x27a911;super(_0x5413de,_0x5afd57,null,_0x155079,_0x1d715d,_0x126369,_0x1512ec,_0x37034c,_0x402ec0),l(this,_0x454b43(0x1da),_0x454b43(0x2fc)),l(this,_0x454b43(0x2fd),null),l(this,_0x454b43(0x33f),null),(this[_0x454b43(0x43e)]=_0x490c75,this[_0x454b43(0x371)]=_0x2066ca,this[_0x454b43(0x304)]=_0x4ae535,this[_0x454b43(0x37e)]=_0x1318cb,this[_0x454b43(0x288)]=_0x499fe1,this[_0x454b43(0x339)]=_0x17f3a6);}[_0x27a911(0x2d8)](_0x903dc6){const _0x1eb79b=_0x27a911;return this[_0x1eb79b(0x462)][_0x1eb79b(0x477)](_0x903dc6),this[_0x1eb79b(0x499)](),this;}[_0x27a911(0x26d)](_0x26ba6a){const _0x3cad72=_0x27a911;if(this[_0x3cad72(0x43d)](_0x26ba6a))return this[_0x3cad72(0x207)](),this[_0x3cad72(0x43e)][_0x3cad72(0x1ce)](G,this[_0x3cad72(0x3a7)],this[_0x3cad72(0x38d)],null,this['_pendingMutations'],null,[_0x26ba6a],this[_0x3cad72(0x1bb)]);try{const _0x196399=this[_0x3cad72(0x288)][_0x3cad72(0x2be)](_0x26ba6a,this['_pendingMutations']);if(_0x1707e0(_0x196399)){const {c1Prime:_0x2e7800,m2Prime:_0x41f7fa}=_0x196399;this['_executeRemoteChangeset'](_0x2e7800);const _0x40bad9=this[_0x3cad72(0x43e)][_0x3cad72(0x1ce)](B,this[_0x3cad72(0x3a7)],this[_0x3cad72(0x38d)],_0x41f7fa,this['_handler']);return this['_clearScheduledTask'](),_0x40bad9[_0x3cad72(0x19a)](this['_scheduleTimestamp']?Math[_0x3cad72(0x29d)](0x0,new Date()[_0x3cad72(0x43b)]()-this[_0x3cad72(0x2fd)]):this[_0x3cad72(0x37d)]()),_0x40bad9;}throw _0x196399[_0x3cad72(0x388)];}catch(_0x1de809){return this[_0x3cad72(0x304)][_0x3cad72(0x388)](_0x1de809),this[_0x3cad72(0x42e)](!0x1);}}[_0x27a911(0x326)](){const _0xb39784=_0x27a911;throw new Error(_0xb39784(0x313));}[_0x27a911(0x478)](){const _0x4d46fc=_0x27a911;throw new Error(_0x4d46fc(0x2b2));}[_0x27a911(0x282)](){const _0x20606d=_0x27a911;return this[_0x20606d(0x207)](),this[_0x20606d(0x43e)][_0x20606d(0x1ce)](z,this[_0x20606d(0x3a7)],this['type'],null,this[_0x20606d(0x462)],this[_0x20606d(0x1bb)]);}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x19a)](_0x4038a3){const _0x2deaf8=_0x27a911;_0x4038a3=_0x4038a3!=null?_0x4038a3:this[_0x2deaf8(0x37d)](),this[_0x2deaf8(0x2fd)]=new Date()['getTime'](),this[_0x2deaf8(0x33f)]=setTimeout(()=>{const _0xb51cd0=_0x2deaf8;this[_0xb51cd0(0x207)]();let _0x5215c0=null;switch(this[_0xb51cd0(0x38d)]){case H[_0xb51cd0(0x3c2)]:{_0x5215c0=Gn(this[_0xb51cd0(0x462)],this['unitID'],this[_0xb51cd0(0x339)],this['_revisionService'],this['_memberService']);break;}case H[_0xb51cd0(0x1c4)]:{_0x5215c0=Yn(this[_0xb51cd0(0x462)],this['unitID'],this[_0xb51cd0(0x339)],this[_0xb51cd0(0x22a)],this['_memberService']);break;}default:throw new Error(_0xb51cd0(0x33b)+this['type']+_0xb51cd0(0x29a));}const {changeset:_0x237346,pendingMutations:_0x42b4a9}=_0x5215c0;this[_0xb51cd0(0x1bb)]['onSendChangeset'](_0x237346);const _0x27eaee=_0x42b4a9['length']?this[_0xb51cd0(0x43e)]['createInstance'](W,this[_0xb51cd0(0x3a7)],this[_0xb51cd0(0x38d)],_0x237346,_0x42b4a9,this[_0xb51cd0(0x1bb)]):this[_0xb51cd0(0x43e)][_0xb51cd0(0x1ce)](q,this[_0xb51cd0(0x3a7)],this[_0xb51cd0(0x38d)],_0x237346,this['_handler']);_0x27eaee[_0xb51cd0(0x499)](),this[_0xb51cd0(0x1bb)]['onStateChange'](this,_0x27eaee);},_0x4038a3);}[_0x27a911(0x37d)](){const _0x357da8=_0x27a911;var _0x45acdd;return(_0x45acdd=this[_0x357da8(0x37e)][_0x357da8(0x406)](en))!=null?_0x45acdd:tn;}['resend'](){const _0x5e5949=_0x27a911;throw new Error(_0x5e5949(0x3a0));}[_0x27a911(0x207)](){const _0x29a30d=_0x27a911;this['_sendingTimer']!=null&&(clearTimeout(this[_0x29a30d(0x33f)]),this['_sendingTimer']=null);}[_0x27a911(0x42e)](_0x348447){const _0x3d947e=_0x27a911;return this[_0x3d947e(0x207)](),this[_0x3d947e(0x43e)][_0x3d947e(0x1ce)](re,this['unitID'],this['type'],null,this[_0x3d947e(0x462)],this[_0x3d947e(0x1bb)],_0x348447);}};B=oe([m(0x4,_0x1f782(_0x55b67e)),m(0x5,_0x1f782(_0x57a9f9)),m(0x6,_0x1f782(D)),m(0x7,_0x1f782(ne)),m(0x8,_0x5e4d90),m(0x9,_0x22dfc9),m(0xa,_0x5c69d0),m(0xb,_0x28f8f5),m(0xc,_0x41d661),m(0xd,_0x761a41)],B);let q=class extends ae{constructor(_0x18e9a6,_0x8532da,_0x5a6dd3,_0x44ec62,_0xd724c0,_0x4f9d05,_0x1b85b4,_0x52bf34,_0x3b6b16,_0x4fdae6,_0x3820e1){const _0x5a8c7c=_0x27a911;super(_0x18e9a6,_0x8532da,_0x5a6dd3,[],_0x44ec62,_0x52bf34,_0x3820e1,_0x4f9d05,_0x1b85b4),l(this,_0x5a8c7c(0x1da),_0x5a8c7c(0x3b6)),(this['_injector']=_0xd724c0,this[_0x5a8c7c(0x304)]=_0x3b6b16,this[_0x5a8c7c(0x288)]=_0x4fdae6);}[_0x27a911(0x2d8)](_0x155fe9){const _0x37c3a5=_0x27a911,_0x45fc0b=this[_0x37c3a5(0x43e)][_0x37c3a5(0x1ce)](W,this[_0x37c3a5(0x3a7)],this['type'],this['_awaitingChangeset'],[_0x155fe9],this[_0x37c3a5(0x1bb)]);return _0x45fc0b[_0x37c3a5(0x499)](),_0x45fc0b;}[_0x27a911(0x26d)](_0x3c9088){const _0xb8ba13=_0x27a911;if(this[_0xb8ba13(0x43d)](_0x3c9088))return this[_0xb8ba13(0x43e)]['createInstance'](G,this[_0xb8ba13(0x3a7)],this[_0xb8ba13(0x38d)],this[_0xb8ba13(0x41f)],[],null,[_0x3c9088],this[_0xb8ba13(0x1bb)]);try{const _0x217874=this[_0xb8ba13(0x288)][_0xb8ba13(0x213)]([_0x3c9088],[this['_awaitingChangeset']],!0x1);if(_0x110469(_0x217874)){const {c1Prime:_0x5ce017,c2Prime:_0x16902e}=_0x217874;this['_executeRemoteChangeset'](_0x5ce017[0x0]),_0x16902e[0x0][_0xb8ba13(0x483)]=this['_getCurrentRevision']();const _0x52a8c9=this[_0xb8ba13(0x43e)]['createInstance'](q,this[_0xb8ba13(0x3a7)],this['type'],_0x16902e[0x0],this['_handler']);return _0x52a8c9['_updateLocalCache'](),_0x52a8c9;}return this[_0xb8ba13(0x42e)](!0x1);}catch(_0x2bd844){return this[_0xb8ba13(0x304)]['error'](_0x2bd844),this[_0xb8ba13(0x42e)](!0x1);}}['onRemoteAck'](_0x1191c2){const _0x3e3c06=_0x27a911,_0x209f1e=this[_0x3e3c06(0x22a)][_0x3e3c06(0x45d)](this[_0x3e3c06(0x3a7)]);if(_0x1191c2['revision']<_0x209f1e-0x1)return this;if(this['_checkMissing'](_0x1191c2))return this[_0x3e3c06(0x43e)][_0x3e3c06(0x1ce)](G,this[_0x3e3c06(0x3a7)],this['type'],null,[],this[_0x3e3c06(0x41f)],[],this[_0x3e3c06(0x1bb)]);this[_0x3e3c06(0x43f)]();const _0x484ed9=this[_0x3e3c06(0x43e)]['createInstance'](Ne,this['unitID'],this['type'],this[_0x3e3c06(0x1bb)]);return _0x484ed9['_updateLocalCache'](),_0x484ed9;}[_0x27a911(0x478)](_0x2aa597){const _0x2512c2=_0x27a911;return this[_0x2512c2(0x42e)](!!(_0x2aa597!=null&&_0x2aa597['isPermissionRej']));}[_0x27a911(0x282)](){const _0x5b9a0c=_0x27a911;return this[_0x5b9a0c(0x43e)]['createInstance'](z,this[_0x5b9a0c(0x3a7)],this[_0x5b9a0c(0x38d)],this['_awaitingChangeset'],[],this[_0x5b9a0c(0x1bb)]);}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x373)](){const _0x3aeaee=_0x27a911;this[_0x3aeaee(0x1bb)][_0x3aeaee(0x34b)](this[_0x3aeaee(0x41f)]);}['_onConflict'](_0x4341f2){const _0x54408d=_0x27a911;return this[_0x54408d(0x43e)][_0x54408d(0x1ce)](re,this['unitID'],this['type'],this['_awaitingChangeset'],[],this[_0x54408d(0x1bb)],_0x4341f2);}};q=oe([m(0x4,_0x1f782(_0x55b67e)),m(0x5,_0x1f782(_0x57a9f9)),m(0x6,_0x1f782(D)),m(0x7,_0x22dfc9),m(0x8,_0x5e4d90),m(0x9,_0x28f8f5),m(0xa,_0x761a41)],q);let W=class extends ae{constructor(_0x1ea34d,_0x2ddb75,_0xa3bd2,_0x1e6f96,_0x1bd6c2,_0xf04dd,_0x21687c,_0x2b35ad,_0x3fca14,_0xb14fd8,_0x3eaabe,_0x3d0c8a){const _0xdc5e2b=_0x27a911;super(_0x1ea34d,_0x2ddb75,_0xa3bd2,_0x1e6f96,_0x1bd6c2,_0x3fca14,_0x3d0c8a,_0x21687c,_0x2b35ad),l(this,_0xdc5e2b(0x1da),_0xdc5e2b(0x26e)),(this[_0xdc5e2b(0x43e)]=_0xf04dd,this['_logService']=_0xb14fd8,this[_0xdc5e2b(0x288)]=_0x3eaabe);}['appendMutation'](_0x362965){const _0x137840=_0x27a911;return this[_0x137840(0x462)][_0x137840(0x477)](_0x362965),this;}[_0x27a911(0x26d)](_0x20a9bf){const _0xe85172=_0x27a911;if(this[_0xe85172(0x43d)](_0x20a9bf))return this['_injector']['createInstance'](G,this[_0xe85172(0x3a7)],this[_0xe85172(0x38d)],this['_awaitingChangeset'],this[_0xe85172(0x462)],null,[_0x20a9bf],this[_0xe85172(0x1bb)]);try{const _0x1efba8=this[_0xe85172(0x288)][_0xe85172(0x213)]([_0x20a9bf],[this[_0xe85172(0x41f)]],!0x1);if(_0x110469(_0x1efba8)){const {c1Prime:_0x31fafc,c2Prime:_0x16a909}=_0x1efba8,_0x1d5d15=this[_0xe85172(0x288)][_0xe85172(0x2be)](_0x31fafc[0x0],this[_0xe85172(0x462)]);if(_0x1707e0(_0x1d5d15)){const {c1Prime:_0xd0ec06,m2Prime:_0x1d3bda}=_0x1d5d15;return this['_executeRemoteChangeset'](_0xd0ec06),_0x16a909[0x0][_0xe85172(0x483)]=this[_0xe85172(0x316)](),this[_0xe85172(0x43e)]['createInstance'](W,this[_0xe85172(0x3a7)],this[_0xe85172(0x38d)],_0x16a909[0x0],_0x1d3bda,this[_0xe85172(0x1bb)]);}throw _0x1d5d15['error'];}throw _0x1efba8[_0xe85172(0x388)];}catch(_0x19b754){return this[_0xe85172(0x304)]['error'](_0x19b754),this[_0xe85172(0x42e)](!0x1);}}[_0x27a911(0x326)](_0x35b044){const _0x2240a6=_0x27a911;if(this['_checkMissing'](_0x35b044))return this['_injector'][_0x2240a6(0x1ce)](G,this[_0x2240a6(0x3a7)],this[_0x2240a6(0x38d)],null,this[_0x2240a6(0x462)],this['_awaitingChangeset'],[],this[_0x2240a6(0x1bb)]);this[_0x2240a6(0x43f)]();const _0x88d346=this['_injector'][_0x2240a6(0x1ce)](B,this[_0x2240a6(0x3a7)],this[_0x2240a6(0x38d)],this['_pendingMutations'],this['_handler']);return _0x88d346['_schedule'](),_0x88d346['_updateLocalCache'](),_0x88d346;}[_0x27a911(0x478)](_0x32b078){const _0x58b2fa=_0x27a911;return this[_0x58b2fa(0x42e)](!!(_0x32b078!=null&&_0x32b078[_0x58b2fa(0x350)]));}['toggleOffline'](){const _0x4bdc0a=_0x27a911;return this[_0x4bdc0a(0x43e)]['createInstance'](z,this[_0x4bdc0a(0x3a7)],this[_0x4bdc0a(0x38d)],this['_awaitingChangeset'],this[_0x4bdc0a(0x462)],this[_0x4bdc0a(0x1bb)]);}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x373)](){const _0x5de0c9=_0x27a911;this[_0x5de0c9(0x1bb)][_0x5de0c9(0x34b)](this[_0x5de0c9(0x41f)]);}[_0x27a911(0x42e)](_0x59729e){const _0x1f05bc=_0x27a911;return this[_0x1f05bc(0x43e)][_0x1f05bc(0x1ce)](re,this['unitID'],this[_0x1f05bc(0x38d)],null,this[_0x1f05bc(0x462)],this['_handler'],_0x59729e);}};W=oe([m(0x5,_0x1f782(_0x55b67e)),m(0x6,_0x1f782(_0x57a9f9)),m(0x7,_0x1f782(D)),m(0x8,_0x22dfc9),m(0x9,_0x5e4d90),m(0xa,_0x28f8f5),m(0xb,_0x761a41)],W);let re=class extends ae{constructor(_0x33766b,_0x35e624,_0x403477,_0x41a69a,_0x6fcd56,_0x4ed0a8=!0x1,_0x541bc7,_0x1f1437,_0x5929c0,_0x3864de,_0x2de172,_0x2ff664,_0x3efb01){const _0x56dd0d=_0x27a911;super(_0x33766b,_0x35e624,_0x403477,_0x41a69a,_0x6fcd56,_0x1f1437,_0x5929c0,_0x2de172,_0x3864de),l(this,_0x56dd0d(0x1da),'conflict'),(this[_0x56dd0d(0x356)]=_0x4ed0a8,this['_permissionService']=_0x541bc7,this[_0x56dd0d(0x2e2)]=_0x2ff664,this[_0x56dd0d(0x3ef)]=_0x3efb01,this[_0x56dd0d(0x3c3)](),this[_0x56dd0d(0x2a0)](),this[_0x56dd0d(0x3da)]());}['appendMutation'](){return this;}[_0x27a911(0x26d)](){return this;}[_0x27a911(0x326)](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x373)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x10c421=_0x27a911;this[_0x10c421(0x1c1)][_0x10c421(0x198)](this[_0x10c421(0x3a7)],this['type'],null,[]);}[_0x27a911(0x3c3)](){const _0x2e4b0a=_0x27a911;this[_0x2e4b0a(0x356)]?this[_0x2e4b0a(0x3ef)][_0x2e4b0a(0x382)]({'title':this[_0x2e4b0a(0x2e2)]['t'](_0x2e4b0a(0x1ed)),'content':this[_0x2e4b0a(0x2e2)]['t'](_0x2e4b0a(0x4b5)),'type':_0x2e4b0a(0x388),'duration':0x0}):this[_0x2e4b0a(0x3ef)][_0x2e4b0a(0x382)]({'title':this['_localeService']['t'](_0x2e4b0a(0x485)),'content':this[_0x2e4b0a(0x2e2)]['t'](_0x2e4b0a(0x224)),'type':_0x2e4b0a(0x388),'duration':0x0});}[_0x27a911(0x3da)](){const _0x3360b0=_0x27a911;this[_0x3360b0(0x1cc)]['updatePermissionPoint'](new _0x3665b6(this[_0x3360b0(0x3a7)])['id'],!0x1);}};re=oe([m(0x6,_0x1f782(_0x1a3671)),m(0x7,_0x22dfc9),m(0x8,_0x761a41),m(0x9,_0x1f782(D)),m(0xa,_0x1f782(_0x57a9f9)),m(0xb,_0x1f782(_0x262e83)),m(0xc,_0x279260)],re);let z=class extends ae{constructor(_0x3dda12,_0x16fa5d,_0x4e634c,_0x543a91,_0x5d6700,_0x4b2e9a,_0x16ac6c,_0x521b6e,_0x4da5a9,_0x3aa968){const _0x80e2da=_0x27a911;super(_0x3dda12,_0x16fa5d,_0x4e634c,_0x543a91,_0x5d6700,_0x4da5a9,_0x3aa968,_0x16ac6c,_0x521b6e),l(this,'status',_0x80e2da(0x345)),this['_injector']=_0x4b2e9a;}[_0x27a911(0x2d8)](_0x2c7460){const _0x34b9c3=_0x27a911;return this[_0x34b9c3(0x462)][_0x34b9c3(0x477)](_0x2c7460),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x26db2f){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0xf58d62=_0x27a911;throw new Error(_0xf58d62(0x19d));}[_0x27a911(0x478)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}['toggleOnline'](){const _0x4c3fe3=_0x27a911,{_injector:_0x202c4a,_pendingMutations:_0x2390c5,_awaitingChangeset:_0x7a8937,unitID:_0x18a9b7,_handler:_0x436cc9,type:_0x216c17}=this,_0x3cbdd5=Ms(_0x202c4a,_0x18a9b7,_0x216c17,_0x7a8937,_0x2390c5,_0x436cc9);return _0x3cbdd5 instanceof B?_0x3cbdd5[_0x4c3fe3(0x19a)]():(_0x3cbdd5 instanceof W||_0x3cbdd5 instanceof q)&&_0x3cbdd5[_0x4c3fe3(0x373)](),_0x3cbdd5;}['resend'](){const _0x702f29=_0x27a911;throw new Error(_0x702f29(0x1c7));}};z=oe([m(0x5,_0x1f782(_0x55b67e)),m(0x6,_0x1f782(_0x57a9f9)),m(0x7,_0x1f782(D)),m(0x8,_0x22dfc9),m(0x9,_0x761a41)],z);let G=class extends ae{constructor(_0x1441bb,_0x3c03b2,_0x2f2c3f,_0x50bf11,_0x32301f,_0x4e5282,_0x189e3f,_0xf39f97,_0x6f42d7,_0x51804a,_0xee5d19,_0x238312,_0x2f7a39,_0x5cb4e0){const _0x3d7115=_0x27a911;super(_0x1441bb,_0x3c03b2,_0x2f2c3f,_0x50bf11,_0x189e3f,_0x238312,_0x2f7a39,_0x6f42d7,_0x51804a),l(this,_0x3d7115(0x1da),'fetch_missing'),(this[_0x3d7115(0x398)]=_0x32301f,this[_0x3d7115(0x276)]=_0x4e5282,this[_0x3d7115(0x43e)]=_0xf39f97,this[_0x3d7115(0x304)]=_0xee5d19,this['_transformService']=_0x5cb4e0);}[_0x27a911(0x378)](_0x58c807){const _0x26f67c=_0x27a911;try{const _0x2bf373=[..._0x58c807,...this[_0x26f67c(0x276)]],_0x4fc28f=[this[_0x26f67c(0x41f)]||this[_0x26f67c(0x398)]]['filter'](_0x3852ab=>!!_0x3852ab);let _0x5aa555,_0x525d88;if(_0x4fc28f[_0x26f67c(0x4d3)]){const _0x5cf2c4=this[_0x26f67c(0x288)][_0x26f67c(0x213)](_0x2bf373,_0x4fc28f,!0x1);if(!_0x110469(_0x5cf2c4))throw _0x5cf2c4[_0x26f67c(0x388)];_0x5aa555=_0x5cf2c4[_0x26f67c(0x338)],_0x525d88=_0x5cf2c4[_0x26f67c(0x1d0)];}else _0x5aa555=_0x2bf373,_0x525d88=[];let _0x475b62=this['_pendingMutations'];_0x5aa555[_0x26f67c(0x4a1)](_0x52dd11=>{const _0x3bf1e5=_0x26f67c;let _0x3b54ca;if(_0x475b62[_0x3bf1e5(0x4d3)]){const _0x3a3857=this[_0x3bf1e5(0x288)][_0x3bf1e5(0x2be)](_0x52dd11,_0x475b62);if(!_0x1707e0(_0x3a3857))throw _0x3a3857[_0x3bf1e5(0x388)];_0x3b54ca=_0x3a3857['c1Prime'],_0x475b62=_0x3a3857['m2Prime'];}else _0x3b54ca=_0x52dd11;this[_0x3bf1e5(0x3d2)](_0x3b54ca);}),this[_0x26f67c(0x398)]&&this[_0x26f67c(0x43f)](),this['_awaitingChangeset']&&_0x525d88['length']&&(_0x525d88[0x0][_0x26f67c(0x483)]=this['_getCurrentRevision']());let _0x48196e;if(this[_0x26f67c(0x41f)]&&_0x475b62[_0x26f67c(0x4d3)]!==0x0)_0x48196e=this['_injector']['createInstance'](W,this[_0x26f67c(0x3a7)],this[_0x26f67c(0x38d)],_0x525d88[0x0],_0x475b62,this['_handler']);else{if(this[_0x26f67c(0x41f)]&&_0x475b62['length']===0x0)_0x525d88[0x0]['baseRev']=this[_0x26f67c(0x316)](),_0x48196e=this[_0x26f67c(0x43e)]['createInstance'](q,this[_0x26f67c(0x3a7)],this['type'],_0x525d88[0x0],this[_0x26f67c(0x1bb)]);else{if(_0x475b62['length']!==0x0){const _0x38938c=this[_0x26f67c(0x43e)][_0x26f67c(0x1ce)](B,this[_0x26f67c(0x3a7)],this[_0x26f67c(0x38d)],_0x475b62,this[_0x26f67c(0x1bb)]);_0x38938c[_0x26f67c(0x19a)](),_0x48196e=_0x38938c;}else _0x48196e=this[_0x26f67c(0x43e)][_0x26f67c(0x1ce)](Ne,this[_0x26f67c(0x3a7)],this[_0x26f67c(0x38d)],this[_0x26f67c(0x1bb)]);}}return _0x48196e[_0x26f67c(0x499)](),_0x48196e;}catch(_0x2d189d){return this['_logService'][_0x26f67c(0x388)](_0x26f67c(0x1e6),_0x26f67c(0x36a),_0x2d189d),this['_injector'][_0x26f67c(0x1ce)](re,this[_0x26f67c(0x3a7)],this['type'],this['_awaitingChangeset'],this[_0x26f67c(0x462)],this[_0x26f67c(0x1bb)],!0x1);}}[_0x27a911(0x373)](){const _0x402674=_0x27a911;throw new Error(_0x402674(0x25f));}[_0x27a911(0x2d8)](_0x4ac113){const _0x59338f=_0x27a911;return this['_pendingMutations'][_0x59338f(0x477)](_0x4ac113),this;}[_0x27a911(0x26d)](_0xd700d1){const _0x198f7a=_0x27a911;return this[_0x198f7a(0x276)][_0x198f7a(0x477)](_0xd700d1),this;}[_0x27a911(0x326)](_0x1366c1){const _0x25d6d2=_0x27a911;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this[_0x25d6d2(0x41f)],this[_0x25d6d2(0x41f)]=null,this;throw new Error(_0x25d6d2(0x33c));}[_0x27a911(0x478)](_0x4e0129){const _0x382ffd=_0x27a911;return this[_0x382ffd(0x42e)](!!(_0x4e0129!=null&&_0x4e0129[_0x382ffd(0x350)]));}[_0x27a911(0x282)](){const _0x3c24d1=_0x27a911;return this[_0x3c24d1(0x43e)][_0x3c24d1(0x1ce)](z,this[_0x3c24d1(0x3a7)],this[_0x3c24d1(0x38d)],this[_0x3c24d1(0x41f)],this[_0x3c24d1(0x462)],this['_handler']);}[_0x27a911(0x3ae)](){return this;}[_0x27a911(0x42e)](_0x51d179){const _0x49c805=_0x27a911;return this[_0x49c805(0x43e)][_0x49c805(0x1ce)](re,this[_0x49c805(0x3a7)],this[_0x49c805(0x38d)],this[_0x49c805(0x41f)],this[_0x49c805(0x462)],this[_0x49c805(0x1bb)],_0x51d179);}};G=oe([m(0x7,_0x1f782(_0x55b67e)),m(0x8,_0x1f782(_0x57a9f9)),m(0x9,_0x1f782(D)),m(0xa,_0x5e4d90),m(0xb,_0x22dfc9),m(0xc,_0x761a41),m(0xd,_0x28f8f5)],G);function Ms(_0x36f833,_0x18789c,_0x4869b8,_0x4af7b6,_0x241ca8,_0x4c9f3b){const _0x5524aa=_0x27a911;return _0x4af7b6&&_0x241ca8[_0x5524aa(0x4d3)]?_0x36f833[_0x5524aa(0x1ce)](W,_0x18789c,_0x4869b8,_0x4af7b6,_0x241ca8,_0x4c9f3b):_0x4af7b6?_0x36f833['createInstance'](q,_0x18789c,_0x4869b8,_0x4af7b6,_0x4c9f3b):_0x241ca8[_0x5524aa(0x4d3)]?_0x36f833[_0x5524aa(0x1ce)](B,_0x18789c,_0x4869b8,_0x241ca8,_0x4c9f3b):_0x36f833[_0x5524aa(0x1ce)](Ne,_0x18789c,_0x4869b8,_0x4c9f3b);}var Jn=Object['defineProperty'],qn=Object[_0x27a911(0x330)],tt=(_0x5392b7,_0x353051,_0x157a8b,_0x5eb368)=>{const _0x1fc08f=_0x27a911;for(var _0x115279=_0x5eb368>0x1?void 0x0:_0x5eb368?qn(_0x353051,_0x157a8b):_0x353051,_0x3beb01=_0x5392b7[_0x1fc08f(0x4d3)]-0x1,_0x53bffc;_0x3beb01>=0x0;_0x3beb01--)(_0x53bffc=_0x5392b7[_0x3beb01])&&(_0x115279=(_0x5eb368?_0x53bffc(_0x353051,_0x157a8b,_0x115279):_0x53bffc(_0x115279))||_0x115279);return _0x5eb368&&_0x115279&&Jn(_0x353051,_0x157a8b,_0x115279),_0x115279;},S=(_0x4241f5,_0x4c0f15)=>(_0x597b14,_0x52772d)=>_0x4c0f15(_0x597b14,_0x52772d,_0x4241f5);let De=class extends _0xe4c81a{constructor(_0x56b4c4,_0x22a611,_0x3f88b0){const _0x49df4b=_0x27a911;super(),l(this,'_entities',new Map()),l(this,_0x49df4b(0x26c),new _0x5a3e6d()),(this[_0x49df4b(0x43e)]=_0x56b4c4,this[_0x49df4b(0x292)]=_0x22a611,this[_0x49df4b(0x339)]=_0x3f88b0,this['_init']());}[_0x27a911(0x4de)](){const _0x491474=_0x27a911;super[_0x491474(0x4de)](),this[_0x491474(0x23b)][_0x491474(0x4a1)](_0x47dc4d=>_0x47dc4d[_0x491474(0x4de)]()),this[_0x491474(0x23b)]['clear']();}['getCollabEntity'](_0x2531d1){const _0x41d89a=_0x27a911;var _0x3dff72;return(_0x3dff72=this[_0x41d89a(0x23b)][_0x41d89a(0x26f)](_0x2531d1))!=null?_0x3dff72:null;}[_0x27a911(0x42f)](_0x567e50){const _0x380e77=_0x27a911,_0xcce463=this[_0x380e77(0x325)](_0x567e50);return _0xcce463?_0x4d7b9c(_0xcce463):this['_entityInit$'][_0x380e77(0x1a1)](_0x22f021(_0x35c0c7=>_0x35c0c7['unitID']===_0x567e50));}[_0x27a911(0x1f7)](){const _0x55c417=_0x27a911;this[_0x55c417(0x339)]['getTypeOfUnitAdded$'](_0x13af1a[_0x55c417(0x3c2)])[_0x55c417(0x1a1)](_0x39ba56(this['dispose$']),_0x22a006(0x10))[_0x55c417(0x307)](async _0x4a2399=>{const _0x3181d7=_0x55c417,_0x57679e=_0x4a2399[_0x3181d7(0x2ba)](),_0x5259c8=await this[_0x3181d7(0x4d9)](_0x57679e,H[_0x3181d7(0x3c2)]);this[_0x3181d7(0x23b)][_0x3181d7(0x19e)](_0x57679e,_0x5259c8);}),this[_0x55c417(0x339)][_0x55c417(0x46c)](_0x13af1a[_0x55c417(0x1c4)])[_0x55c417(0x1a1)](_0x39ba56(this[_0x55c417(0x1b0)]),_0x22a006(0x10))[_0x55c417(0x1a1)](_0x22f021(_0x223f12=>!_0x223f12[_0x55c417(0x2ba)]()[_0x55c417(0x2b4)]('__')))[_0x55c417(0x307)](async _0x4ef85c=>{const _0x5c5335=_0x55c417,_0x51b3eb=_0x4ef85c[_0x5c5335(0x2ba)](),_0x3d4014=await this['_startCollaboration'](_0x51b3eb,H[_0x5c5335(0x1c4)]);this[_0x5c5335(0x23b)][_0x5c5335(0x19e)](_0x51b3eb,_0x3d4014);}),_0xe2f998(this[_0x55c417(0x339)]['getTypeOfUnitDisposed$'](_0x13af1a[_0x55c417(0x3c2)]),this['_univerInstanceService'][_0x55c417(0x2e5)](_0x13af1a[_0x55c417(0x1c4)]))['pipe'](_0x39ba56(this['dispose$']))[_0x55c417(0x307)](_0x5923bb=>{const _0x23d8ca=_0x55c417,_0x134b21=_0x5923bb[_0x23d8ca(0x2ba)](),_0x479a0b=this[_0x23d8ca(0x23b)][_0x23d8ca(0x26f)](_0x134b21);_0x479a0b&&(_0x479a0b['dispose'](),this[_0x23d8ca(0x23b)][_0x23d8ca(0x21b)](_0x134b21));});}async[_0x27a911(0x4d9)](_0x332210,_0x53751f){const _0x44b3bb=_0x27a911,_0x17e6cd=await this[_0x44b3bb(0x292)][_0x44b3bb(0x337)](_0x332210),_0x57fe06=this[_0x44b3bb(0x43e)][_0x44b3bb(0x1ce)](this[_0x44b3bb(0x1ab)](_0x53751f),_0x332210,_0x53751f,_0x17e6cd);return await _0x57fe06[_0x44b3bb(0x4a4)](),this[_0x44b3bb(0x26c)][_0x44b3bb(0x24a)](_0x57fe06),_0x57fe06;}[_0x27a911(0x1ab)](_0xb9facb){const _0xdfe1b5=_0x27a911;switch(_0xb9facb){case H[_0xdfe1b5(0x1c4)]:return vt;case H['UNIVER_SHEET']:return pt;default:throw new Error(_0xdfe1b5(0x4ab)+_0xb9facb);}}};De=tt([_0x5cbde1(_0x2af1fa[_0x27a911(0x327)],De),S(0x0,_0x1f782(_0x55b67e)),S(0x1,_0x1f782(ge)),S(0x2,_0x41d661)],De);let ze=class extends _0xe4c81a{constructor(_0x539177,_0x314a3b,_0x59ee20,_0x386b26,_0x5b4c8a,_0x40c864,_0x5846e2,_0x6c579b,_0x499c90,_0x1c2506,_0x385e5a,_0x51454f,_0x49211e){const _0x3c3314=_0x27a911;super(),l(this,'_state$',new _0x3146d9(null)),l(this,_0x3c3314(0x1e9),this['_state$'][_0x3c3314(0x48c)]()),l(this,_0x3c3314(0x1fb)),l(this,_0x3c3314(0x433),!0x1),l(this,_0x3c3314(0x4a5),this[_0x3c3314(0x1e9)][_0x3c3314(0x1a1)](_0x3b7068(_0x5b0cfe=>_0x5b0cfe?_0x5b0cfe['status']:w[_0x3c3314(0x340)]),_0x199d34(0x1))),l(this,_0x3c3314(0x32c),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x3c3314(0x3a7)]=_0x539177,this['_type']=_0x314a3b,this['_session']=_0x59ee20,this[_0x3c3314(0x43e)]=_0x386b26,this[_0x3c3314(0x1c1)]=_0x5b4c8a,this[_0x3c3314(0x323)]=_0x40c864,this['_localeService']=_0x5846e2,this[_0x3c3314(0x22a)]=_0x6c579b,this['_logService']=_0x499c90,this[_0x3c3314(0x274)]=_0x1c2506,this[_0x3c3314(0x402)]=_0x385e5a,this[_0x3c3314(0x1cc)]=_0x51454f,this[_0x3c3314(0x3c1)]=_0x49211e);}get[_0x27a911(0x1f3)](){return this['_state'];}async[_0x27a911(0x4a4)](){const _0x51018d=_0x27a911;if(this[_0x51018d(0x1f3)])throw new Error(_0x51018d(0x1e7));await this[_0x51018d(0x1f7)]();}[_0x27a911(0x2b3)](){return this['_collaborationPaused']=!0x0,_0x1726d4(()=>{const _0xa5ad=_0x5bd0;this[_0xa5ad(0x433)]=!0x1,this[_0xa5ad(0x31e)]();});}[_0x27a911(0x42c)](_0x3d062e){const _0x152981=_0x27a911;this[_0x152981(0x1fb)]=_0x3d062e,this[_0x152981(0x458)][_0x152981(0x24a)](_0x3d062e);}async[_0x27a911(0x1f7)](){const _0x403c9d=_0x27a911;var _0x5849d8;return this[_0x403c9d(0x42c)](await this[_0x403c9d(0x2a7)]()),this[_0x403c9d(0x3c1)]&&((_0x5849d8=this[_0x403c9d(0x3c1)])==null||_0x5849d8[_0x403c9d(0x1ad)](this['unitID']),this[_0x403c9d(0x3be)](_0x1726d4(this[_0x403c9d(0x3c1)][_0x403c9d(0x3db)](this[_0x403c9d(0x3a7)])[_0x403c9d(0x307)](_0x503963=>{const _0x216ab8=_0x403c9d;this['_logService'][_0x216ab8(0x4bd)](_0x216ab8(0x37b),_0x216ab8(0x303),_0x503963),_0x503963===ws[_0x216ab8(0x27f)]?(this[_0x216ab8(0x402)]['show']({'content':this[_0x216ab8(0x2e2)]['t'](_0x216ab8(0x39d)),'type':_0x471b9b[_0x216ab8(0x467)]}),this[_0x216ab8(0x1cc)][_0x216ab8(0x1a6)](new _0x3665b6(this[_0x216ab8(0x3a7)])['id'],!0x1)):this[_0x216ab8(0x1cc)][_0x216ab8(0x1a6)](new _0x3665b6(this[_0x216ab8(0x3a7)])['id'],!0x0);})))),this[_0x403c9d(0x3be)](_0x1726d4(this[_0x403c9d(0x35b)][_0x403c9d(0x4a2)][_0x403c9d(0x307)](_0x2c856b=>{const _0x458a9a=_0x403c9d;_0x2c856b===de[_0x458a9a(0x3e6)]?this[_0x458a9a(0x2bf)]():_0x2c856b===de[_0x458a9a(0x340)]&&this[_0x458a9a(0x3f7)]();}))),this[_0x403c9d(0x3be)](_0x1726d4(this[_0x403c9d(0x35b)]['event$']['subscribe'](_0x37e8e1=>{const _0x590e65=_0x403c9d;try{switch(_0x37e8e1['eventID']){case _0xc426c8[_0x590e65(0x432)]:{this['_onRemoteChangeset'](_0x9afb39(_0x37e8e1['data']));break;}case _0xc426c8['CHANGESET_ACK']:{this[_0x590e65(0x234)](_0x37e8e1['data']);break;}case _0xc426c8[_0x590e65(0x1df)]:{this[_0x590e65(0x3e3)]();break;}case _0xc426c8['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x590e65(0x4b6)](_0x37e8e1[_0x590e65(0x1a7)][_0x590e65(0x3a9)][_0x590e65(0x231)](_0x542b3c=>_0x9afb39(_0x542b3c)));break;}case _0xc426c8[_0x590e65(0x4c4)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x32333b){throw console[_0x590e65(0x388)](_0x590e65(0x466),_0x32333b),_0x32333b;}}))),this[_0x403c9d(0x1fb)];}[_0x27a911(0x40b)](){const _0x30e8c0=_0x27a911;this[_0x30e8c0(0x32c)]=!0x1;}[_0x27a911(0x41c)](){const _0x33bfa4=_0x27a911;if(this[_0x33bfa4(0x32c)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x33bfa4(0x32c)]=!0x0;}[_0x27a911(0x334)](_0x10801e){const _0x13c41a=_0x27a911;this[_0x13c41a(0x41c)](),this[_0x13c41a(0x42c)](this['_state']['appendMutation'](_0x10801e)),this[_0x13c41a(0x40b)]();}['_onRemoteChangeset'](_0x471b18){const _0x413ff3=_0x27a911;if(!(_0x471b18[_0x413ff3(0x336)]<=this[_0x413ff3(0x22a)]['getCurrentRevForDocument'](this[_0x413ff3(0x3a7)]))){if(this[_0x413ff3(0x433)]){this[_0x413ff3(0x1cd)]['push'](_0x471b18);return;}this[_0x413ff3(0x396)](_0x471b18);}}['_exhaustRemoteChangesetQueue'](){const _0x27c357=_0x27a911;this[_0x27c357(0x1cd)]['forEach'](_0x4bbafe=>this[_0x27c357(0x396)](_0x4bbafe)),this['_remoteChangesetQueue']=[];}[_0x27a911(0x396)](_0x55487e){const _0x393dc0=_0x27a911,_0x3f9b26=this[_0x393dc0(0x323)][_0x393dc0(0x411)]['fetchThroughInterceptors'](this[_0x393dc0(0x323)]['interceptor'][_0x393dc0(0x4d8)]()[_0x393dc0(0x30e)])(_0x55487e['mutations'],null)||_0x55487e['mutations'],_0x2dca78={..._0x55487e,'mutations':_0x3f9b26};this[_0x393dc0(0x41c)](),this[_0x393dc0(0x42c)](this[_0x393dc0(0x1fb)][_0x393dc0(0x26d)](_0x2dca78)),this[_0x393dc0(0x40b)]();}[_0x27a911(0x234)](_0x22360d){const _0x556b4e=_0x27a911;this[_0x556b4e(0x41c)](),this[_0x556b4e(0x42c)](this[_0x556b4e(0x1fb)]['onRemoteAck'](_0x22360d)),this[_0x556b4e(0x40b)]();}['_onRemoteRejected'](_0x40ca9c){const _0x3009ea=_0x27a911;this[_0x3009ea(0x41c)](),this[_0x3009ea(0x42c)](this[_0x3009ea(0x1fb)][_0x3009ea(0x478)](_0x40ca9c)),this[_0x3009ea(0x40b)]();}['_onFetchMissResult'](_0x48eea7){const _0x25505d=_0x27a911;if(!(this[_0x25505d(0x1fb)]instanceof G))throw new TypeError(_0x25505d(0x2c4));const _0xce1e0a=_0x48eea7[_0x25505d(0x231)](_0x2ec3df=>{const _0x243ebe=_0x25505d,_0x2e2033=this['_compressMutationService'][_0x243ebe(0x411)][_0x243ebe(0x31c)](this[_0x243ebe(0x323)]['interceptor'][_0x243ebe(0x4d8)]()['COMPRESS_MUTATION_APPLY'])(_0x2ec3df['mutations'],null)||_0x2ec3df['mutations'];return{..._0x2ec3df,'mutations':_0x2e2033};});this['_lockTransition'](),this['_updateState'](this[_0x25505d(0x1fb)][_0x25505d(0x378)](_0xce1e0a)),this[_0x25505d(0x40b)]();}[_0x27a911(0x3f7)](){const _0x423f70=_0x27a911;this['_lockTransition'](),this[_0x423f70(0x42c)](this['_state'][_0x423f70(0x282)]()),this[_0x423f70(0x40b)]();}[_0x27a911(0x2bf)](){const _0x4d0679=_0x27a911;this['_lockTransition'](),this[_0x4d0679(0x42c)](this[_0x4d0679(0x1fb)]['toggleOnline']()),this[_0x4d0679(0x40b)]();}async[_0x27a911(0x2a7)](){return new Promise(_0x34bc18=>{const _0x4716cf=_0x5bd0;this['_session'][_0x4716cf(0x4a2)][_0x4716cf(0x1a1)](_0x32697e(0x1))[_0x4716cf(0x307)](async _0x4c2d77=>{const _0xfe755=_0x4716cf;_0x34bc18(await this[_0xfe755(0x1d8)](_0x4c2d77===de['ONLINE']));});});}['_createHandler'](){const _0x4f3fb1=_0x27a911,_0x2b61f2=this[_0x4f3fb1(0x3a7)];return{'onStateChange':(_0x430354,_0x4f2dfa)=>{const _0x3834fb=_0x4f3fb1;if(_0x430354!==this[_0x3834fb(0x1fb)])throw new Error(_0x3834fb(0x2b7)+_0x430354['status']+_0x3834fb(0x2c0)+_0x4f2dfa[_0x3834fb(0x1da)]+'\x0aCurrent:\x20'+this[_0x3834fb(0x1fb)][_0x3834fb(0x1da)]);this[_0x3834fb(0x42c)](_0x4f2dfa);},'onSendChangeset':_0x1d874f=>{const _0x5b9895=_0x4f3fb1,_0x319fab={'eventID':_0xc426c8[_0x5b9895(0x399)],'data':{'unitID':_0x1d874f[_0x5b9895(0x3a7)],'unitType':this[_0x5b9895(0x226)],'changeset':_0x1d874f,'memberID':this['_session'][_0x5b9895(0x33d)]()}};this[_0x5b9895(0x35b)]['send'](_0x319fab,this['unitID']);},'onMissingChangesets':({from:_0x5969cf,to:_0x43196f})=>{const _0x37f7ac=_0x4f3fb1;this[_0x37f7ac(0x304)][_0x37f7ac(0x4bd)](_0x37f7ac(0x37b),_0x37f7ac(0x2a3)+_0x5969cf+_0x37f7ac(0x3b4)+_0x43196f);const _0x133bb1={'eventID':_0xc426c8[_0x37f7ac(0x1aa)],'data':{'unitID':_0x2b61f2,'unitType':this[_0x37f7ac(0x226)],'from':_0x5969cf,'to':_0x43196f}};this[_0x37f7ac(0x35b)][_0x37f7ac(0x39a)](_0x133bb1,this[_0x37f7ac(0x3a7)]);}};}async[_0x27a911(0x1d8)](_0xd36d88){const _0x28a417=_0x27a911;var _0x3427d7,_0x1a3b28;const _0x28b29c=await this[_0x28a417(0x1c1)]['loadOfflineData'](this[_0x28a417(0x3a7)]),_0x163383=(_0x3427d7=_0x28b29c==null?void 0x0:_0x28b29c['mutations'])!=null?_0x3427d7:[],_0x6aaec=(_0x1a3b28=_0x28b29c==null?void 0x0:_0x28b29c['awaitingChangeset'])!=null?_0x1a3b28:null,_0x9da981=this[_0x28a417(0x3a7)];try{this[_0x28a417(0x1c9)](_0x6aaec,_0x163383);}catch(_0x48728f){this['_logService'][_0x28a417(0x388)](_0x48728f);}const _0x79cd8=this[_0x28a417(0x2d0)]();if(_0xd36d88){const _0x382169=Ms(this['_injector'],_0x9da981,this[_0x28a417(0x226)],_0x6aaec,_0x163383,_0x79cd8);return _0x382169 instanceof B?_0x382169[_0x28a417(0x19a)]():(_0x382169 instanceof W||_0x382169 instanceof q)&&_0x382169[_0x28a417(0x373)](),_0x382169;}return this[_0x28a417(0x43e)][_0x28a417(0x1ce)](z,_0x9da981,this[_0x28a417(0x226)],_0x6aaec,_0x163383,_0x79cd8);}['_replayCachedMutations'](_0x4bf5a8,_0x58bb51){const _0x1743d0=_0x27a911;var _0x7c605,_0x307b63;const _0x31e3ee=this['_compressMutationService'][_0x1743d0(0x411)][_0x1743d0(0x31c)](this[_0x1743d0(0x323)][_0x1743d0(0x411)]['getInterceptPoints']()[_0x1743d0(0x30e)]);(_0x7c605=_0x31e3ee((_0x4bf5a8==null?void 0x0:_0x4bf5a8[_0x1743d0(0x1d2)])||[],null))==null||_0x7c605[_0x1743d0(0x4a1)](_0x2ace29=>this[_0x1743d0(0x274)][_0x1743d0(0x3f6)](_0x2ace29['id'],_0x2ace29['params'])),(_0x307b63=_0x31e3ee(_0x58bb51||[],null))==null||_0x307b63[_0x1743d0(0x4a1)](_0x29f8a1=>this[_0x1743d0(0x274)][_0x1743d0(0x3f6)](_0x29f8a1['id'],_0x29f8a1['params']));}};ze=tt([S(0x3,_0x1f782(_0x55b67e)),S(0x4,_0x1f782(D)),S(0x5,_0x1f782(_0x36ba7a)),S(0x6,_0x1f782(_0x262e83)),S(0x7,_0x1f782(_0x57a9f9)),S(0x8,_0x5e4d90),S(0x9,_0x22dfc9),S(0xa,_0x3bfc5b),S(0xb,_0x1a3671),S(0xc,_0x275bb1(et))],ze);let vt=class extends ze{constructor(_0x439ee4,_0x16268e,_0xa6fbb4,_0x3d3212,_0x2cb967,_0x52de1e,_0x52d045,_0x52701a,_0x1fe4e8,_0x5cc439,_0xbcd3b3,_0xed5397,_0xe558ed,_0x53b44f,_0x1107c8,_0x2041bb,_0x3e048b){const _0x46303c=_0x27a911;super(_0x439ee4,_0x16268e,_0xa6fbb4,_0x3d3212,_0x2cb967,_0x52de1e,_0x52d045,_0x52701a,_0xe558ed,_0x53b44f,_0x1107c8,_0x2041bb,_0x3e048b),this[_0x46303c(0x3a7)]=_0x439ee4,this[_0x46303c(0x38d)]=_0x16268e,this['session']=_0xa6fbb4,this['_docStateChangeManagerService']=_0x1fe4e8,this[_0x46303c(0x3af)]=_0x5cc439,this[_0x46303c(0x4df)]=_0xbcd3b3,this['_docSyncEditingCollabCursorService']=_0xed5397;}[_0x27a911(0x2d0)](){const _0x35f278=_0x27a911,_0x3a764b=super[_0x35f278(0x2d0)]();return _0x3a764b[_0x35f278(0x227)]=_0x2fd645=>this[_0x35f278(0x3af)]['transformIMECache'](_0x2fd645),_0x3a764b[_0x35f278(0x2d1)]=_0x40d6ee=>this[_0x35f278(0x4df)][_0x35f278(0x342)](_0x40d6ee),_0x3a764b[_0x35f278(0x43c)]=_0x4fe18e=>this[_0x35f278(0x3a6)][_0x35f278(0x440)](_0x4fe18e),_0x3a764b[_0x35f278(0x258)]=_0x35966d=>this[_0x35f278(0x3af)][_0x35f278(0x341)](_0x35966d),_0x3a764b;}async[_0x27a911(0x1f7)](){const _0x4c8361=_0x27a911,_0x289380=await super['_init']();return this[_0x4c8361(0x4a9)][_0x4c8361(0x290)][_0x4c8361(0x1a1)](_0x39ba56(this[_0x4c8361(0x1b0)]))[_0x4c8361(0x307)](_0x5d55c7=>{const _0x9ff0fa=_0x4c8361;if(_0x5d55c7==null)return;const {unitId:_0x32a7ae,redoState:_0x14e80b,commandId:_0xe60f73}=_0x5d55c7;if(_0x32a7ae!==this[_0x9ff0fa(0x3a7)])return;const _0x3f1e20={'id':_0xe60f73,'type':_0x3b3d9c[_0x9ff0fa(0x222)],'params':{'unitId':_0x32a7ae,'actions':_0x14e80b['actions'],'textRanges':null}};this[_0x9ff0fa(0x334)](_0x3f1e20);}),_0x289380;}};vt=tt([S(0x3,_0x1f782(_0x55b67e)),S(0x4,_0x1f782(D)),S(0x5,_0x1f782(_0x36ba7a)),S(0x6,_0x1f782(_0x262e83)),S(0x7,_0x1f782(_0x57a9f9)),S(0x8,_0x1f782(_0x17b017)),S(0x9,_0x1f782(Xe)),S(0xa,_0x1f782(Je)),S(0xb,_0x1f782(Ut)),S(0xc,_0x5e4d90),S(0xd,_0x22dfc9),S(0xe,_0x3bfc5b),S(0xf,_0x1a3671),S(0x10,_0x275bb1(et))],vt);let pt=class extends ze{constructor(_0x506dcd,_0x2ef279,_0x4cafc8,_0x1055e1,_0x512eaa,_0x807eb4,_0x406d7e,_0x13a04b,_0x4c8121,_0x478a77,_0x14ad3b,_0x42bbeb,_0xed6fa4,_0x4e60b6){const _0x3a2eae=_0x27a911;super(_0x506dcd,_0x2ef279,_0x4cafc8,_0x1055e1,_0x512eaa,_0x807eb4,_0x406d7e,_0x13a04b,_0x478a77,_0x14ad3b,_0x42bbeb,_0xed6fa4,_0x4e60b6),this[_0x3a2eae(0x3a7)]=_0x506dcd,this[_0x3a2eae(0x38d)]=_0x2ef279,this['session']=_0x4cafc8,this[_0x3a2eae(0x255)]=_0x4c8121;}[_0x27a911(0x2d0)](){const _0x1d2315=_0x27a911,_0x553ac4=super['_createHandler']();return _0x553ac4[_0x1d2315(0x2d1)]=_0x222b40=>this[_0x1d2315(0x255)][_0x1d2315(0x342)](_0x222b40),_0x553ac4;}async['_init'](){const _0xcfe133=_0x27a911,_0x4145b1=await super[_0xcfe133(0x1f7)]();return this['disposeWithMe'](this[_0xcfe133(0x274)]['onCommandExecuted']((_0x2e578d,_0x1155e9)=>{const _0x6c6e79=_0xcfe133;if(_0x2e578d['type']!==_0x3b3d9c['MUTATION']||_0x1155e9!=null&&_0x1155e9[_0x6c6e79(0x447)]||_0x1155e9!=null&&_0x1155e9[_0x6c6e79(0x322)])return;const _0x3bdb01=_0x2e578d[_0x6c6e79(0x26a)];if((_0x3bdb01==null?void 0x0:_0x3bdb01['unitId'])!==this[_0x6c6e79(0x3a7)])return;const _0x404087=_0x2e578d,_0x2cc21d=this[_0x6c6e79(0x323)][_0x6c6e79(0x411)][_0x6c6e79(0x31c)](this['_compressMutationService'][_0x6c6e79(0x411)][_0x6c6e79(0x4d8)]()['COMPRESS_MUTATION_SEND'])([_0x404087],null)||[_0x404087];this[_0x6c6e79(0x334)](_0x2cc21d[0x0]);})),_0x4145b1;}};pt=tt([S(0x3,_0x1f782(_0x55b67e)),S(0x4,_0x1f782(D)),S(0x5,_0x1f782(_0x36ba7a)),S(0x6,_0x1f782(_0x262e83)),S(0x7,_0x1f782(_0x57a9f9)),S(0x8,_0x1f782(qe)),S(0x9,_0x5e4d90),S(0xa,_0x22dfc9),S(0xb,_0x3bfc5b),S(0xc,_0x1a3671),S(0xd,_0x275bb1(et))],pt);const es=[_0x27a911(0x4c3),_0x27a911(0x2cb),_0x27a911(0x424),_0x27a911(0x315),_0x27a911(0x19f),_0x27a911(0x1e3)];class Lt extends _0xd60028{constructor(){const _0x509408=_0x27a911;super(...arguments),l(this,_0x509408(0x3fa),new Map()),l(this,_0x509408(0x4b2),0x0);}[_0x27a911(0x22d)](_0x3be5c3){const _0x2d6ca8=_0x27a911;if(this['_assignedColors'][_0x2d6ca8(0x496)](_0x3be5c3))return this[_0x2d6ca8(0x3fa)]['get'](_0x3be5c3);const _0x567115=es[this['_colorIndex']];return this['_colorIndex']=(this[_0x2d6ca8(0x4b2)]+0x1)%es['length'],this[_0x2d6ca8(0x3fa)]['set'](_0x3be5c3,_0x567115),_0x567115;}}var zn=Object['defineProperty'],Zn=Object[_0x27a911(0x330)],Qn=(_0x488212,_0x198215,_0x9b4cee,_0x40999e)=>{const _0x52f475=_0x27a911;for(var _0x1de2f7=_0x40999e>0x1?void 0x0:_0x40999e?Zn(_0x198215,_0x9b4cee):_0x198215,_0x1c9279=_0x488212[_0x52f475(0x4d3)]-0x1,_0x80deb5;_0x1c9279>=0x0;_0x1c9279--)(_0x80deb5=_0x488212[_0x1c9279])&&(_0x1de2f7=(_0x40999e?_0x80deb5(_0x198215,_0x9b4cee,_0x1de2f7):_0x80deb5(_0x1de2f7))||_0x1de2f7);return _0x40999e&&_0x1de2f7&&zn(_0x198215,_0x9b4cee,_0x1de2f7),_0x1de2f7;},he=(_0x33c4e5,_0x201d47)=>(_0x402cfc,_0x3a598f)=>_0x201d47(_0x402cfc,_0x3a598f,_0x33c4e5);const er=0x12c,tr=0x64,sr=()=>{let _0x1b6a76=[],_0x2124e9=!0x1;return _0x497407=>{const _0x2fafa2=_0x5bd0;_0x1b6a76[_0x2fafa2(0x477)](_0x497407),_0x2124e9||(_0x2124e9=!0x0,setTimeout(()=>{const _0x410cee=_0x2fafa2;_0x1b6a76[_0x410cee(0x4a1)](_0x399cc1=>_0x399cc1()),_0x1b6a76=[],_0x2124e9=!0x1;}));};};let It=class extends _0xe4c81a{constructor(_0x3495cb,_0xaafb7a,_0x5d2825,_0x495040,_0x55d1f2,_0x5105f3,_0x4c942c,_0x15506b){const _0x494802=_0x27a911;super(),l(this,_0x494802(0x32f),!0x1),l(this,_0x494802(0x1f7),!0x1),l(this,_0x494802(0x35e),new _0x3146d9(new Map())),l(this,_0x494802(0x3f5),this[_0x494802(0x35e)]['asObservable']()),l(this,'_roomMembers$',new _0x3146d9([])),l(this,_0x494802(0x204),this['_roomMembers$'][_0x494802(0x1a1)](_0x416b32(er))),l(this,_0x494802(0x405),_0x441295((_0xd84a39,_0x16b4cb)=>{const _0x621b9d=_0x494802,_0x555332={'eventID':_0xc426c8['UPDATE_CURSOR'],'data':{'unitID':this[_0x621b9d(0x3a7)],'memberID':this['_session'][_0x621b9d(0x33d)](),'selection':_0x344d14(_0xd84a39,_0x16b4cb[_0x621b9d(0x212)])}};this[_0x621b9d(0x35b)][_0x621b9d(0x39a)](_0x555332,this[_0x621b9d(0x3a7)]);},tr)),(this[_0x494802(0x3a7)]=_0x3495cb,this[_0x494802(0x35b)]=_0xaafb7a,this[_0x494802(0x43e)]=_0x5d2825,this['_colorAssignService']=_0x495040,this[_0x494802(0x371)]=_0x55d1f2,this['_univerInstanceService']=_0x5105f3,this[_0x494802(0x274)]=_0x4c942c,this[_0x494802(0x494)]=_0x15506b);}get[_0x27a911(0x403)](){const _0x26450a=_0x27a911;return this[_0x26450a(0x35e)]['getValue']();}get['roomMembers'](){const _0x3516b9=_0x27a911;return this[_0x3516b9(0x1b2)][_0x3516b9(0x45b)]();}[_0x27a911(0x4de)](){const _0x4d3521=_0x27a911;super[_0x4d3521(0x4de)](),this[_0x4d3521(0x35e)][_0x4d3521(0x24a)](new Map()),this[_0x4d3521(0x35e)][_0x4d3521(0x44b)](),this['_roomMembers$'][_0x4d3521(0x24a)]([]),this[_0x4d3521(0x1b2)][_0x4d3521(0x44b)]();}[_0x27a911(0x4a4)](){const _0x53e3b0=_0x27a911;this[_0x53e3b0(0x1f7)]||(this[_0x53e3b0(0x1f7)]=!0x0,this[_0x53e3b0(0x35b)]['sessionStatus$'][_0x53e3b0(0x1a1)](_0x39ba56(this['dispose$']))[_0x53e3b0(0x307)](_0x32705d=>{const _0x2a1533=_0x53e3b0;_0x32705d===de[_0x2a1533(0x3e6)]?this[_0x2a1533(0x2bf)]():this[_0x2a1533(0x3f7)]();}),this[_0x53e3b0(0x35b)][_0x53e3b0(0x28f)][_0x53e3b0(0x1a1)](_0x39ba56(this[_0x53e3b0(0x1b0)]))['subscribe'](_0x31da54=>{const _0x21e1ee=_0x53e3b0,_0xe79044=_0x31da54[_0x21e1ee(0x35d)];_0xe79044===_0xc426c8['UPDATE_CURSOR']&&this[_0x21e1ee(0x351)](_0x31da54),_0xe79044===_0xc426c8[_0x21e1ee(0x311)]&&this[_0x21e1ee(0x3b3)](_0x31da54);}),this[_0x53e3b0(0x2f2)](),this[_0x53e3b0(0x3be)](this[_0x53e3b0(0x274)][_0x53e3b0(0x1ac)](_0x1f91a6=>{const _0x3af680=_0x53e3b0;if(this[_0x3af680(0x32f)]&&_0x1f91a6['id']===_0x3e4a02['id']&&_0x1f91a6[_0x3af680(0x26a)]['unitId']===this[_0x3af680(0x3a7)]){const _0x2accae=_0x1f91a6[_0x3af680(0x26a)];this[_0x3af680(0x405)](_0x2accae['subUnitId'],_0x2accae[_0x3af680(0x27a)][0x0]);}})));}[_0x27a911(0x351)](_0x28d8b5){const _0x492014=_0x27a911;var _0x17a799,_0x4a8a09;const {memberID:_0x19f3b5,selection:_0x1df216}=_0x28d8b5['data'],{sheetName:_0x277c4f,range:_0x5592bc}=_0x510d94(_0x1df216),_0x33909b={'name':(_0x4a8a09=(_0x17a799=this['_memberService']['getMember'](this[_0x492014(0x3a7)],_0x19f3b5))==null?void 0x0:_0x17a799[_0x492014(0x2e1)])!=null?_0x4a8a09:_0x492014(0x2e8),'range':this[_0x492014(0x287)](_0x277c4f,_0x5592bc),'sheetID':_0x277c4f,'color':this[_0x492014(0x2d3)][_0x492014(0x22d)](_0x19f3b5),'selection':_0x1df216},_0x650dc1=this[_0x492014(0x403)];_0x650dc1[_0x492014(0x19e)](_0x19f3b5,_0x33909b),this[_0x492014(0x35e)][_0x492014(0x24a)](_0x650dc1);}[_0x27a911(0x3b3)](_0x31b342){const _0x700748=_0x27a911,{memberID:_0x5abc70}=_0x31b342[_0x700748(0x1a7)],_0x2e3db9=this[_0x700748(0x403)];_0x2e3db9[_0x700748(0x21b)](_0x5abc70),this[_0x700748(0x35e)][_0x700748(0x24a)](_0x2e3db9);}[_0x27a911(0x287)](_0x7b5cd6,_0x14cf51){const _0x3c7b74=_0x27a911;var _0x2d532a,_0xa966df;const _0x527cc4=(_0xa966df=(_0x2d532a=this[_0x3c7b74(0x339)][_0x3c7b74(0x352)](this[_0x3c7b74(0x3a7)]))==null?void 0x0:_0x2d532a['getSheetBySheetId'](_0x7b5cd6))==null?void 0x0:_0xa966df[_0x3c7b74(0x368)]();return(_0x527cc4==null?void 0x0:_0x527cc4[_0x3c7b74(0x414)](_0x58c1df=>_0x58a1b2['contains'](_0x58c1df,_0x14cf51)))||_0x14cf51;}['_onRefRangeChange'](){const _0x5bd453=_0x27a911,_0x570770=new _0x40c494(),_0x4aec92=sr(),_0x36f9e9=()=>{const _0x50e7a5=_0x5bd0;_0x570770[_0x50e7a5(0x4de)]();const _0x1483d8=(_0x589341,_0x28f5a6,_0x1b0b33,_0x222802)=>{const _0x59dc74=_0x50e7a5;let _0x2e5077=[];switch(_0x589341['id']){case _0x27bec1['DeleteRangeMoveLeftCommandId']:{_0x2e5077=_0xed6964(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x1a4)]:{_0x2e5077=_0xa581dc(_0x589341,_0x222802);break;}case _0x27bec1['InsertColCommandId']:{_0x2e5077=_0x1980aa(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x439)]:{_0x2e5077=_0x3e0ba6(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x445)]:{_0x2e5077=_0x8a8f2b(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x474)]:{_0x2e5077=_0x49682a(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x365)]:{_0x2e5077=_0x2abaa2(_0x589341,_0x222802);break;}case _0x27bec1[_0x59dc74(0x4ba)]:{_0x2e5077=_0x58b3d6(_0x589341,_0x222802);break;}case _0x27bec1['RemoveRowCommandId']:{_0x2e5077=_0x23a55f(_0x589341,_0x222802);break;}}const _0x4d6c9c=_0x3a9738(_0x2e5077,_0x222802),_0x1ebf9d=this[_0x59dc74(0x403)][_0x59dc74(0x26f)](_0x28f5a6);if(_0x1ebf9d&&_0x4d6c9c){const _0x26a85d={..._0x1ebf9d,'range':_0x4d6c9c};this[_0x59dc74(0x403)][_0x59dc74(0x19e)](_0x28f5a6,_0x26a85d),_0x4aec92(()=>{const _0x1367d6=_0x59dc74,_0x2f4815=this['_refRangeService'][_0x1367d6(0x347)](_0x4d6c9c,_0x456a02=>(_0x2f4815[_0x1367d6(0x4de)](),_0x1483d8(_0x456a02,_0x28f5a6,_0x1b0b33,_0x4d6c9c)));_0x570770['add'](_0x2f4815);});}return{'redos':[],'undos':[]};};this[_0x50e7a5(0x403)][_0x50e7a5(0x4a1)]((_0x3487c7,_0x369640)=>{const _0x826c06=_0x50e7a5,{range:_0x68e61f,sheetID:_0x142ec3}=_0x3487c7,_0x30a969=this['_refRangeService']['registerRefRange'](_0x68e61f,_0x51cdbc=>(_0x30a969[_0x826c06(0x4de)](),_0x1483d8(_0x51cdbc,_0x369640,_0x142ec3,_0x68e61f)));_0x570770[_0x826c06(0x3cf)](_0x30a969);});};this[_0x5bd453(0x3be)](_0x1726d4(this['_cursorInfo$'][_0x5bd453(0x307)](()=>{_0x36f9e9();})));}[_0x27a911(0x2bf)](){const _0x2f7a5c=_0x27a911;var _0x48cc9e,_0x4b8b27;if(this[_0x2f7a5c(0x32f)]=!0x0,((_0x48cc9e=this[_0x2f7a5c(0x339)][_0x2f7a5c(0x25a)]())==null?void 0x0:_0x48cc9e[_0x2f7a5c(0x2ba)]())!==this[_0x2f7a5c(0x3a7)])return;const _0x1cd481=(_0x4b8b27=this['_injector'][_0x2f7a5c(0x26f)](_0x378282)[_0x2f7a5c(0x3c8)]())==null?void 0x0:_0x4b8b27[0x0],_0x4676ad=this['_univerInstanceService'][_0x2f7a5c(0x306)](_0x13af1a[_0x2f7a5c(0x3c2)])[_0x2f7a5c(0x199)]();_0x1cd481&&_0x4676ad&&this[_0x2f7a5c(0x405)](_0x4676ad[_0x2f7a5c(0x369)](),_0x1cd481);}[_0x27a911(0x3f7)](){const _0x2fbd1e=_0x27a911;this[_0x2fbd1e(0x32f)]=!0x1;}};It=Qn([he(0x2,_0x1f782(_0x55b67e)),he(0x3,_0x1f782(Lt)),he(0x4,_0x1f782(ne)),he(0x5,_0x41d661),he(0x6,_0x22dfc9),he(0x7,_0x1f782(_0x35deed))],It);var ir=Object['defineProperty'],nr=Object[_0x27a911(0x330)],rr=(_0x1aa136,_0x4a55cf,_0x41c8e5,_0x2af1da)=>{const _0x1e89c3=_0x27a911;for(var _0x5c85b5=_0x2af1da>0x1?void 0x0:_0x2af1da?nr(_0x4a55cf,_0x41c8e5):_0x4a55cf,_0x17a177=_0x1aa136[_0x1e89c3(0x4d3)]-0x1,_0x9fb4f3;_0x17a177>=0x0;_0x17a177--)(_0x9fb4f3=_0x1aa136[_0x17a177])&&(_0x5c85b5=(_0x2af1da?_0x9fb4f3(_0x4a55cf,_0x41c8e5,_0x5c85b5):_0x9fb4f3(_0x5c85b5))||_0x5c85b5);return _0x2af1da&&_0x5c85b5&&ir(_0x4a55cf,_0x41c8e5,_0x5c85b5),_0x5c85b5;},te=(_0x5be580,_0x237116)=>(_0x5eb81b,_0x59aae6)=>_0x237116(_0x5eb81b,_0x59aae6,_0x5be580);const or=0x12c,ar=0x64;let Et=class extends _0xe4c81a{constructor(_0x556383,_0x321257,_0x3322e5,_0x57ad76,_0x177c7d,_0x29c770,_0x56b9a8,_0x4c54ff,_0x35cb2f){const _0x25eecc=_0x27a911;super(),l(this,_0x25eecc(0x32f),!0x1),l(this,_0x25eecc(0x1f7),!0x1),l(this,'_cursorInfo$',new _0x3146d9(new Map())),l(this,_0x25eecc(0x3f5),this['_cursorInfo$'][_0x25eecc(0x48c)]()),l(this,'_roomMembers$',new _0x3146d9([])),l(this,'roomMembers$',this[_0x25eecc(0x1b2)]['pipe'](_0x416b32(or))),l(this,_0x25eecc(0x405),_0x441295(_0x1a6ca1=>{const _0x4efec9=_0x25eecc,_0x165977={'eventID':_0xc426c8['UPDATE_CURSOR'],'data':{'unitID':this[_0x4efec9(0x3a7)],'memberID':this[_0x4efec9(0x35b)][_0x4efec9(0x33d)](),'selection':Ns(_0x1a6ca1)}};this[_0x4efec9(0x35b)]['send'](_0x165977,this[_0x4efec9(0x3a7)]);},ar)),(this[_0x25eecc(0x3a7)]=_0x556383,this[_0x25eecc(0x35b)]=_0x321257,this[_0x25eecc(0x43e)]=_0x3322e5,this[_0x25eecc(0x2d3)]=_0x57ad76,this[_0x25eecc(0x371)]=_0x177c7d,this[_0x25eecc(0x29c)]=_0x29c770,this[_0x25eecc(0x288)]=_0x56b9a8,this[_0x25eecc(0x339)]=_0x4c54ff,this[_0x25eecc(0x274)]=_0x35cb2f);}get[_0x27a911(0x403)](){const _0x2513be=_0x27a911;return this[_0x2513be(0x35e)][_0x2513be(0x45b)]();}get[_0x27a911(0x268)](){const _0x6a91a8=_0x27a911;return this['_roomMembers$'][_0x6a91a8(0x45b)]();}[_0x27a911(0x4de)](){const _0x5a390d=_0x27a911;super['dispose'](),this[_0x5a390d(0x35e)][_0x5a390d(0x24a)](new Map()),this[_0x5a390d(0x35e)][_0x5a390d(0x44b)](),this[_0x5a390d(0x1b2)]['next']([]),this[_0x5a390d(0x1b2)]['complete']();}[_0x27a911(0x4a4)](){const _0x4b30b5=_0x27a911;this[_0x4b30b5(0x1f7)]||(this['_init']=!0x0,this['_session'][_0x4b30b5(0x4a2)][_0x4b30b5(0x1a1)](_0x39ba56(this[_0x4b30b5(0x1b0)]))[_0x4b30b5(0x307)](_0x44ea6c=>{const _0x3e9dba=_0x4b30b5;_0x44ea6c===de[_0x3e9dba(0x3e6)]?this['_toggleOnline']():this[_0x3e9dba(0x3f7)]();}),this[_0x4b30b5(0x35b)][_0x4b30b5(0x28f)][_0x4b30b5(0x1a1)](_0x39ba56(this[_0x4b30b5(0x1b0)]))[_0x4b30b5(0x307)](_0x1b8847=>{const _0x1dc62b=_0x4b30b5,_0x2a6de3=_0x1b8847[_0x1dc62b(0x35d)];_0x2a6de3===_0xc426c8[_0x1dc62b(0x44f)]&&this[_0x1dc62b(0x351)](_0x1b8847),_0x2a6de3===_0xc426c8[_0x1dc62b(0x311)]&&this[_0x1dc62b(0x3b3)](_0x1b8847);}),this[_0x4b30b5(0x3be)](this['_commandService'][_0x4b30b5(0x1ac)](_0x5755a5=>{const _0x463447=_0x4b30b5,_0x302168=_0x5755a5[_0x463447(0x26a)];_0x302168!=null&&this[_0x463447(0x32f)]&&_0x5755a5['id']===_0x5812ee['id']&&_0x302168['unitId']===this[_0x463447(0x3a7)]&&_0x302168[_0x463447(0x20a)]===!0x1&&this[_0x463447(0x405)](_0x302168['ranges']);})),this[_0x4b30b5(0x29c)][_0x4b30b5(0x215)][_0x4b30b5(0x1a1)](_0x39ba56(this[_0x4b30b5(0x1b0)]))[_0x4b30b5(0x307)](_0x533ecf=>{const _0x48dc83=_0x4b30b5;if((_0x533ecf==null?void 0x0:_0x533ecf['unitID'])!==this[_0x48dc83(0x3a7)])return;const _0x15655e={'eventID':_0xc426c8[_0x48dc83(0x44f)],'data':_0x533ecf};this['_onCursorUpdate'](_0x15655e);}),this['disposeWithMe'](this[_0x4b30b5(0x274)]['onCommandExecuted'](_0x3e3dae=>{const _0x41dded=_0x4b30b5;if(_0x3e3dae[_0x41dded(0x26a)]==null)return;const _0x6b9766=_0x3e3dae[_0x41dded(0x26a)];if(_0x3e3dae['id']!==_0x33145a['id']||_0x6b9766[_0x41dded(0x249)]!==this[_0x41dded(0x3a7)])return;const _0x16adb9={'id':_0x41dded(0x448),'params':_0x6b9766},_0x1bfb70=this['cursorInfo'];for(const [_0x23cc12,_0x35a39c]of _0x1bfb70){const _0x4dfacd={'id':_0x41dded(0x448),'params':{'unitId':this[_0x41dded(0x3a7)],'actions':null,'textRanges':_0x35a39c[_0x41dded(0x263)]}},_0xf0ecf5=this[_0x41dded(0x288)][_0x41dded(0x360)](_0x16adb9,_0x4dfacd,!0x1);if(_0x21109a(_0xf0ecf5))throw _0xf0ecf5[_0x41dded(0x388)];_0x1bfb70['set'](_0x23cc12,{..._0x35a39c,'ranges':_0xf0ecf5[_0x41dded(0x2d4)][_0x41dded(0x26a)][_0x41dded(0x23a)]});}queueMicrotask(()=>{const _0x24cf04=_0x41dded;this[_0x24cf04(0x35e)][_0x24cf04(0x24a)](_0x1bfb70);});})));}['_onCursorUpdate'](_0x25f0fd){const _0x47a8dc=_0x27a911;var _0x579a11,_0x40f573;const {memberID:_0x36b34c,selection:_0x42c84e}=_0x25f0fd[_0x47a8dc(0x1a7)],_0x2a5b22=xn(_0x42c84e),_0x43bc72=(_0x40f573=(_0x579a11=this[_0x47a8dc(0x371)][_0x47a8dc(0x425)](this['unitID'],_0x36b34c))==null?void 0x0:_0x579a11['name'])!=null?_0x40f573:_0x47a8dc(0x2e8),_0xeae0ff={'color':this[_0x47a8dc(0x2d3)][_0x47a8dc(0x22d)](_0x36b34c),'name':_0x43bc72,'ranges':_0x2a5b22},_0x1a23e3=this[_0x47a8dc(0x403)];_0x1a23e3[_0x47a8dc(0x19e)](_0x36b34c,_0xeae0ff),this[_0x47a8dc(0x35e)][_0x47a8dc(0x24a)](_0x1a23e3);}[_0x27a911(0x3b3)](_0x4b08d4){const _0x164225=_0x27a911,{memberID:_0x3ed1cd}=_0x4b08d4['data'],_0x42ad60=this['cursorInfo'];_0x42ad60[_0x164225(0x21b)](_0x3ed1cd),this[_0x164225(0x35e)][_0x164225(0x24a)](_0x42ad60);}[_0x27a911(0x2bf)](){const _0x4fa7d1=_0x27a911;var _0x2a1cae;if(this[_0x4fa7d1(0x32f)]=!0x0,((_0x2a1cae=this[_0x4fa7d1(0x339)][_0x4fa7d1(0x25a)]())==null?void 0x0:_0x2a1cae[_0x4fa7d1(0x2ba)]())!==this['unitID'])return;const _0x3f8d87=this[_0x4fa7d1(0x43e)][_0x4fa7d1(0x26f)](_0x1f4972)[_0x4fa7d1(0x3c8)](),_0x4fcbea=_0x3f8d87==null?void 0x0:_0x3f8d87[_0x4fa7d1(0x231)](_0x402695);Array[_0x4fa7d1(0x3f8)](_0x4fcbea)&&_0x4fcbea[_0x4fa7d1(0x4d3)]>0x0&&this[_0x4fa7d1(0x405)](_0x4fcbea);}['_toggleOffline'](){const _0x1dfb0f=_0x27a911;this[_0x1dfb0f(0x32f)]=!0x1;}};Et=rr([te(0x2,_0x1f782(_0x55b67e)),te(0x3,_0x1f782(Lt)),te(0x4,_0x1f782(ne)),te(0x5,_0x1f782(Ut)),te(0x6,_0x28f8f5),te(0x7,_0x41d661),te(0x8,_0x22dfc9)],Et);var cr=Object[_0x27a911(0x29f)],hr=Object['getOwnPropertyDescriptor'],lr=(_0x9333fa,_0x7830d,_0x24afcd,_0x361aaa)=>{const _0x246312=_0x27a911;for(var _0x5bf47c=_0x361aaa>0x1?void 0x0:_0x361aaa?hr(_0x7830d,_0x24afcd):_0x7830d,_0x473986=_0x9333fa[_0x246312(0x4d3)]-0x1,_0x16d83c;_0x473986>=0x0;_0x473986--)(_0x16d83c=_0x9333fa[_0x473986])&&(_0x5bf47c=(_0x361aaa?_0x16d83c(_0x7830d,_0x24afcd,_0x5bf47c):_0x16d83c(_0x5bf47c))||_0x5bf47c);return _0x361aaa&&_0x5bf47c&&cr(_0x7830d,_0x24afcd,_0x5bf47c),_0x5bf47c;},ct=(_0x104418,_0x3040c6)=>(_0x10d7d6,_0x48b168)=>_0x3040c6(_0x10d7d6,_0x48b168,_0x104418);let fe=class extends _0xe4c81a{constructor(_0x2022bb,_0x459cb0,_0x5261ce){const _0x23f0e0=_0x27a911;super(),l(this,_0x23f0e0(0x23b),new Map()),l(this,_0x23f0e0(0x26c),new _0x5a3e6d()),(this[_0x23f0e0(0x339)]=_0x2022bb,this[_0x23f0e0(0x43e)]=_0x459cb0,this['_collabSessionService']=_0x5261ce,this[_0x23f0e0(0x1f7)]());}['dispose'](){const _0x508cbc=_0x27a911;super['dispose'](),this[_0x508cbc(0x26c)]['complete'](),this['_entities'][_0x508cbc(0x4a1)](_0xbe86f1=>_0xbe86f1[_0x508cbc(0x4de)]());}['getCollabCursors$'](_0x212376){const _0x52ff67=_0x27a911;return this[_0x52ff67(0x23b)][_0x52ff67(0x496)](_0x212376)?this[_0x52ff67(0x23b)][_0x52ff67(0x26f)](_0x212376)[_0x52ff67(0x3f5)]:this[_0x52ff67(0x26c)][_0x52ff67(0x1a1)](_0x10e932(_0x50cebe=>_0x50cebe[_0x52ff67(0x3a7)]===_0x212376),_0x508547(_0xc372bf=>_0xc372bf[_0x52ff67(0x3f5)]));}[_0x27a911(0x1f7)](){const _0x2e6b1a=_0x27a911;this[_0x2e6b1a(0x339)]['getTypeOfUnitAdded$'](_0x13af1a[_0x2e6b1a(0x3c2)])[_0x2e6b1a(0x1a1)](_0x39ba56(this[_0x2e6b1a(0x1b0)]))[_0x2e6b1a(0x307)](async _0x3a89ef=>{const _0x10314c=_0x2e6b1a,_0x5e9365=_0x3a89ef[_0x10314c(0x2ba)](),_0x1156be=await this[_0x10314c(0x2e4)](_0x5e9365);this[_0x10314c(0x26c)][_0x10314c(0x24a)](_0x1156be),this[_0x10314c(0x23b)][_0x10314c(0x19e)](_0x5e9365,_0x1156be);}),this[_0x2e6b1a(0x339)]['getTypeOfUnitAdded$'](_0x13af1a[_0x2e6b1a(0x1c4)])['pipe'](_0x39ba56(this[_0x2e6b1a(0x1b0)]))[_0x2e6b1a(0x1a1)](_0x10e932(_0x433018=>!_0x433018[_0x2e6b1a(0x2ba)]()[_0x2e6b1a(0x2b4)]('__')))[_0x2e6b1a(0x307)](async _0x4969c5=>{const _0x1cc329=_0x2e6b1a,_0x21a146=_0x4969c5[_0x1cc329(0x2ba)](),_0xa862f9=await this['_startDocCollabCursor'](_0x21a146);this[_0x1cc329(0x26c)][_0x1cc329(0x24a)](_0xa862f9),this[_0x1cc329(0x23b)][_0x1cc329(0x19e)](_0x21a146,_0xa862f9);}),_0xe2f998(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x13af1a[_0x2e6b1a(0x1c4)]),this[_0x2e6b1a(0x339)]['getTypeOfUnitDisposed$'](_0x13af1a[_0x2e6b1a(0x3c2)]))['pipe'](_0x39ba56(this['dispose$']))[_0x2e6b1a(0x307)](_0x2d3853=>{const _0x980c63=_0x2e6b1a,_0x5076a6=_0x2d3853[_0x980c63(0x2ba)](),_0x13e0df=this['_entities'][_0x980c63(0x26f)](_0x5076a6);_0x13e0df&&(_0x13e0df['dispose'](),this[_0x980c63(0x23b)][_0x980c63(0x21b)](_0x5076a6));});}async[_0x27a911(0x2e4)](_0xde44c6){const _0x35ab14=_0x27a911,_0x4e07ba=await this[_0x35ab14(0x292)]['requireSession'](_0xde44c6),_0x3a4631=this['_injector'][_0x35ab14(0x1ce)](It,_0xde44c6,_0x4e07ba);return _0x3a4631[_0x35ab14(0x4a4)](),_0x3a4631;}async[_0x27a911(0x4c1)](_0x1d85ea){const _0x3dcf8d=_0x27a911,_0x2cff8b=await this[_0x3dcf8d(0x292)]['requireSession'](_0x1d85ea),_0x19dff8=this['_injector']['createInstance'](Et,_0x1d85ea,_0x2cff8b);return _0x19dff8[_0x3dcf8d(0x4a4)](),_0x19dff8;}};fe=lr([_0x5cbde1(_0x2af1fa[_0x27a911(0x327)],fe),ct(0x0,_0x41d661),ct(0x1,_0x1f782(_0x55b67e)),ct(0x2,_0x1f782(ge))],fe);const Me=0x14,ts=0xc8,ht=0x4,_r=0x5;function ur(_0x190551,_0x5cfcd3){const _0x23dbd8=_0x27a911;let {radius:_0x404cf4,width:_0x363d5b,height:_0x57ae13}=_0x5cfcd3;_0x404cf4=_0x404cf4!=null?_0x404cf4:0x0,_0x363d5b=_0x363d5b!=null?_0x363d5b:0x1e,_0x57ae13=_0x57ae13!=null?_0x57ae13:0x1e;let _0x283bec=0x0,_0x52ef4c=0x0,_0x3eeda0=0x0;_0x283bec=_0x52ef4c=_0x3eeda0=Math[_0x23dbd8(0x2b9)](_0x404cf4,_0x363d5b/0x2,_0x57ae13/0x2),_0x190551[_0x23dbd8(0x1bc)](),_0x190551[_0x23dbd8(0x435)](_0x283bec,0x0),_0x190551['lineTo'](_0x363d5b-_0x52ef4c,0x0),_0x190551['arc'](_0x363d5b-_0x52ef4c,_0x52ef4c,_0x52ef4c,Math['PI']*0x3/0x2,0x0,!0x1),_0x190551[_0x23dbd8(0x209)](_0x363d5b,_0x57ae13-_0x3eeda0),_0x190551[_0x23dbd8(0x332)](_0x363d5b-_0x3eeda0,_0x57ae13-_0x3eeda0,_0x3eeda0,0x0,Math['PI']/0x2,!0x1),_0x190551[_0x23dbd8(0x209)](0x0,_0x57ae13),_0x190551[_0x23dbd8(0x209)](0x0,_0x283bec),_0x190551[_0x23dbd8(0x332)](_0x283bec,_0x283bec,_0x283bec,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x190551[_0x23dbd8(0x19c)](),_0x5cfcd3['fill']&&(_0x190551[_0x23dbd8(0x41e)](),_0x190551[_0x23dbd8(0x361)]=_0x5cfcd3[_0x23dbd8(0x3bf)],_0x5cfcd3[_0x23dbd8(0x1ca)]==='evenodd'?_0x190551[_0x23dbd8(0x3bf)](_0x23dbd8(0x44c)):_0x190551[_0x23dbd8(0x3bf)](),_0x190551[_0x23dbd8(0x3df)]());}class st extends _0x44a775{constructor(_0x2db9ff,_0x1b916a){const _0x1fcf7e=_0x27a911;super(_0x2db9ff,_0x1b916a),l(this,_0x1fcf7e(0x443)),l(this,_0x1fcf7e(0x40d)),(this[_0x1fcf7e(0x443)]=_0x1b916a==null?void 0x0:_0x1b916a[_0x1fcf7e(0x443)],this[_0x1fcf7e(0x40d)]=_0x1b916a==null?void 0x0:_0x1b916a[_0x1fcf7e(0x40d)]);}static['drawWith'](_0x28f7cd,_0x53ce52){const _0x510f27=_0x27a911,{text:_0x3f1989,color:_0x342df0}=_0x53ce52;_0x28f7cd['save'](),_0x28f7cd[_0x510f27(0x3e9)]=_0x510f27(0x254);const _0x4a3a8f=_0x28f7cd[_0x510f27(0x1c0)](_0x3f1989)[_0x510f27(0x1ff)],_0x587f9d=Math[_0x510f27(0x2b9)](_0x4a3a8f+0x2*ht,ts);ur(_0x28f7cd,{'height':Me,'radius':0x4,'width':_0x587f9d,'fill':_0x342df0,'evented':!0x1}),_0x28f7cd[_0x510f27(0x361)]='#FFF';const _0x37827e=ht,_0x29dd62=Me-_r,_0x32e65c=ts-0x2*ht;if(_0x4a3a8f>_0x32e65c){let _0x30537f='',_0x168d01=0x0;for(const _0x1ad2f6 of _0x3f1989){const _0x5b2c0c=_0x28f7cd['measureText'](_0x1ad2f6)[_0x510f27(0x1ff)];if(_0x168d01+_0x5b2c0c<=_0x32e65c-_0x28f7cd[_0x510f27(0x1c0)]('...')['width'])_0x30537f+=_0x1ad2f6,_0x168d01+=_0x5b2c0c;else{_0x30537f+=_0x510f27(0x437);break;}}_0x28f7cd[_0x510f27(0x260)](_0x30537f,_0x37827e,_0x29dd62);}else _0x28f7cd['fillText'](_0x3f1989,_0x37827e,_0x29dd62);_0x28f7cd[_0x510f27(0x3df)]();}[_0x27a911(0x312)](_0x673327){const _0x47844a=_0x27a911;st[_0x47844a(0x239)](_0x673327,this);}}const dr=0x1,fr=1.5;class mr extends _0x44a775{constructor(_0x17b562,_0x4259b2){const _0x3d5c50=_0x27a911;super(_0x17b562,_0x4259b2),l(this,_0x3d5c50(0x32b)),l(this,_0x3d5c50(0x1be),!0x1),l(this,'_range'),l(this,'_name',''),l(this,_0x3d5c50(0x4ae),'top'),l(this,_0x3d5c50(0x1b3)),(_0x4259b2&&this[_0x3d5c50(0x366)](_0x4259b2),this[_0x3d5c50(0x259)][_0x3d5c50(0x2c2)](()=>this[_0x3d5c50(0x366)]({'hovered':!0x0})),this[_0x3d5c50(0x1c3)][_0x3d5c50(0x2c2)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x27a911(0x366)](_0x28ab00){const _0x30dd19=_0x27a911;var _0x41ae9c,_0x55addf,_0x16fd92,_0x551fb5,_0x1b95b1,_0x13866d;this['_color']=(_0x41ae9c=_0x28ab00[_0x30dd19(0x443)])!=null?_0x41ae9c:this[_0x30dd19(0x32b)],this['_hovered']=(_0x55addf=_0x28ab00[_0x30dd19(0x410)])!=null?_0x55addf:this['_hovered'],this[_0x30dd19(0x464)]=(_0x16fd92=_0x28ab00[_0x30dd19(0x212)])!=null?_0x16fd92:this[_0x30dd19(0x464)],this['_name']=(_0x551fb5=_0x28ab00[_0x30dd19(0x2e1)])!=null?_0x551fb5:this['_name'],this[_0x30dd19(0x4ae)]=(_0x1b95b1=_0x28ab00[_0x30dd19(0x3ce)])!=null?_0x1b95b1:this[_0x30dd19(0x4ae)],this['_backgroundColor']=(_0x13866d=_0x28ab00[_0x30dd19(0x1a5)])!=null?_0x13866d:this['_backgroundColor'],this['transformByState']({'width':_0x28ab00[_0x30dd19(0x1ff)],'height':_0x28ab00[_0x30dd19(0x1ef)]});}['onMouseMove'](_0x49c41a){const _0x35ff0c=_0x27a911,{row:_0x42fcfc,column:_0x4fed07}=_0x49c41a;if(_0x42fcfc>=this['_range'][_0x35ff0c(0x25b)]&&_0x42fcfc<=this[_0x35ff0c(0x464)][_0x35ff0c(0x431)]&&_0x4fed07>=this[_0x35ff0c(0x464)]['startColumn']&&_0x4fed07<=this[_0x35ff0c(0x464)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x35ff0c(0x366)]({'hovered':!0x1});}[_0x27a911(0x497)](_0x35c5a1){return!0x1;}['_draw'](_0x3d18cd){const _0x334e54=_0x27a911;_0x51d98d['drawWith'](_0x3d18cd,{'width':this[_0x334e54(0x1ff)],'height':this[_0x334e54(0x1ef)],'strokeWidth':fr,'stroke':this[_0x334e54(0x32b)],'evented':!0x1,'fill':this[_0x334e54(0x1b3)]}),this['_hovered']&&(_0x3d18cd[_0x334e54(0x41e)](),_0x3d18cd[_0x334e54(0x1b9)](0x1,0x0,0x0,0x1,this[_0x334e54(0x1ff)],this[_0x334e54(0x4ae)]===_0x334e54(0x28e)?0x0:-Me),st[_0x334e54(0x239)](_0x3d18cd,{'text':this[_0x334e54(0x1ec)],'color':this[_0x334e54(0x32b)]}),_0x3d18cd[_0x334e54(0x3df)]());}}var gr=Object[_0x27a911(0x29f)],Sr=Object[_0x27a911(0x330)],vr=(_0x39dc72,_0x77ef41,_0x3480a9,_0x2e4848)=>{const _0x9ba622=_0x27a911;for(var _0x546f78=_0x2e4848>0x1?void 0x0:_0x2e4848?Sr(_0x77ef41,_0x3480a9):_0x77ef41,_0x56d6b2=_0x39dc72[_0x9ba622(0x4d3)]-0x1,_0x26b59e;_0x56d6b2>=0x0;_0x56d6b2--)(_0x26b59e=_0x39dc72[_0x56d6b2])&&(_0x546f78=(_0x2e4848?_0x26b59e(_0x77ef41,_0x3480a9,_0x546f78):_0x26b59e(_0x546f78))||_0x546f78);return _0x2e4848&&_0x546f78&&gr(_0x77ef41,_0x3480a9,_0x546f78),_0x546f78;},$e=(_0x4ed722,_0x534487)=>(_0x27ca5b,_0x5b9eb5)=>_0x534487(_0x27ca5b,_0x5b9eb5,_0x4ed722);const pr=0x1389;let Ve=class extends _0xe4c81a{constructor(_0x165ce0,_0x58abd2,_0x4abb4d,_0x3b2e32){const _0x53d96a=_0x27a911;super(),l(this,_0x53d96a(0x1c6),new Set()),l(this,_0x53d96a(0x28d),null),(this['_collabCursorController']=_0x165ce0,this[_0x53d96a(0x339)]=_0x58abd2,this[_0x53d96a(0x346)]=_0x4abb4d,this['_themeService']=_0x3b2e32,this[_0x53d96a(0x1f7)]());}get[_0x27a911(0x3bd)](){const _0x577ec9=_0x27a911;return this[_0x577ec9(0x346)][_0x577ec9(0x1d9)](this[_0x577ec9(0x339)][_0x577ec9(0x306)](_0x13af1a[_0x577ec9(0x3c2)])['getUnitId']())['with'](_0x4bdf5f);}get[_0x27a911(0x450)](){const _0x255536=_0x27a911;return this[_0x255536(0x339)]['getCurrentUnitForType'](_0x13af1a[_0x255536(0x3c2)])[_0x255536(0x2ba)]();}[_0x27a911(0x1f7)](){const _0x49314c=_0x27a911;this[_0x49314c(0x3bd)][_0x49314c(0x1d3)][_0x49314c(0x1a1)](_0x1e8d86(this[_0x49314c(0x1b0)]),_0xdffcb3(_0x3942b4=>{const _0x35d72a=_0x49314c;if(_0x3942b4){const _0x564da1=_0x3942b4['sheetId'];return _0x4619fd(this['_collabCursorController'][_0x35d72a(0x4b4)](this[_0x35d72a(0x450)]),this['_themeService'][_0x35d72a(0x1bf)])['pipe'](_0x3b7068(([_0x5e35d6,_0x424e56])=>{const _0x1a5977=_0x35d72a,_0x456e67=new Map();return _0x5e35d6[_0x1a5977(0x4a1)]((_0x23e82d,_0x18c675)=>{const _0xe0843=_0x1a5977;if(_0x23e82d[_0xe0843(0x285)]===_0x564da1){const _0x5c8b44={..._0x23e82d};_0x5c8b44['color']=_0x424e56[_0x23e82d[_0xe0843(0x443)]],_0x456e67[_0xe0843(0x19e)](_0x18c675,_0x5c8b44);}}),{'skeleton':_0x3942b4,'cursors':_0x456e67};}));}return _0x4d7b9c({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x40485e,cursors:_0x35bfe5})=>{const _0x3be06b=_0x49314c;this[_0x3be06b(0x203)](),_0x40485e&&this[_0x3be06b(0x1b6)](_0x40485e,_0x35bfe5);}),this[_0x49314c(0x3bd)][_0x49314c(0x1d3)][_0x49314c(0x307)](_0x1e797f=>{const _0x10e35d=_0x49314c;if(_0x1e797f==null)return;const {skeleton:_0x41857e}=_0x1e797f,_0x7764eb=this['_renderManagerService']['getRenderById'](this[_0x10e35d(0x450)]),{scene:_0x1cc6a3}=_0x7764eb;_0x1cc6a3[_0x10e35d(0x4c6)][_0x10e35d(0x2c2)](_0x441295(_0x407d59=>{const _0x559ecb=_0x10e35d;var _0xafd407,_0x5d2b2f;const {offsetX:_0x9ae9d8,offsetY:_0x33c0bd}=_0x407d59,{x:_0x4cd682,y:_0x87a2fe}=_0x1cc6a3[_0x559ecb(0x390)](_0x37415c[_0x559ecb(0x493)]([_0x9ae9d8,_0x33c0bd])),{scaleX:_0x217dda,scaleY:_0x296094}=_0x1cc6a3[_0x559ecb(0x279)](),_0x3f9ceb=_0x1cc6a3['getViewport'](_0x3edb69[_0x559ecb(0x2b1)]),_0x1a4f19=_0x1cc6a3['getVpScrollXYInfoByPosToVp'](_0x37415c[_0x559ecb(0x493)]([_0x4cd682,_0x87a2fe]),_0x3f9ceb),_0xff4e7e=_0x41857e[_0x559ecb(0x284)](_0x9ae9d8,_0x33c0bd,_0x217dda,_0x296094,_0x1a4f19);((_0xafd407=this['_lastPointer'])==null?void 0x0:_0xafd407[_0x559ecb(0x1fd)])===_0xff4e7e[_0x559ecb(0x1fd)]&&((_0x5d2b2f=this[_0x559ecb(0x28d)])==null?void 0x0:_0x5d2b2f['row'])===_0xff4e7e['row']||this['_cursors']['forEach'](_0x5d81dc=>{const _0x29c29e=_0x559ecb;_0x5d81dc[_0x29c29e(0x257)](_0xff4e7e);});},0x64));});}['_updateCollabCursors'](_0x5bc415,_0x16e390){const _0x52569b=_0x27a911;var _0x5543d0;const _0x50bf59=(_0x5543d0=this[_0x52569b(0x3bd)]['getCurrent']())==null?void 0x0:_0x5543d0[_0x52569b(0x3ed)];if(!_0x50bf59)return;const _0x4a776b=this[_0x52569b(0x47f)]();if(!_0x4a776b)return;this[_0x52569b(0x1c6)]['forEach'](_0x4725fd=>{const _0x1762a4=_0x52569b;_0x4725fd[_0x1762a4(0x1fa)]();});const {scene:_0x1f9877}=_0x4a776b,_0x21ef58=Ir(Array[_0x52569b(0x252)](_0x16e390[_0x52569b(0x3bb)]()))[_0x52569b(0x231)](_0x320a8c=>{const _0x2c0a8d=_0x52569b,{color:_0xcf55aa,range:_0xb11e49,name:_0xa48288,selection:_0x5820a5,sheetID:_0x5573cc}=_0x320a8c,{startColumn:_0x4c3226,startRow:_0x762f56,endColumn:_0x3c34c2,endRow:_0x2a883f}=_0xb11e49,_0xd5ab5=_0xc4fe1(_0x762f56,_0x4c3226,_0x1f9877,_0x50bf59),_0x3595ee=_0xc4fe1(_0x2a883f,_0x3c34c2,_0x1f9877,_0x50bf59),{columnHeaderHeightAndMarginTop:_0x23d263}=_0x50bf59,{startX:_0x35750f,startY:_0x48970d}=_0xd5ab5,{endX:_0x2273ff,endY:_0x441fe2}=_0x3595ee,_0x1bca2e=_0x2273ff-_0x35750f,_0x582ada=_0x441fe2-_0x48970d,_0x440173={'labelPosition':_0x48970d-_0x23d263>=Me?'top':_0x2c0a8d(0x28e),'sheetID':_0x5573cc,'range':_0xb11e49,'color':_0xcf55aa,'name':_0xa48288,'selection':_0x5820a5,'left':_0x35750f,'top':_0x48970d,'width':_0x1bca2e,'height':_0x582ada,'evented':!0x1,'zIndex':pr};return new mr(_0xa48288,_0x440173);});_0x1f9877['addObjects'](_0x21ef58,dr),this[_0x52569b(0x1c6)]=new Set(_0x21ef58);}[_0x27a911(0x203)](){const _0x528145=_0x27a911;var _0x3d0621;(_0x3d0621=this['_cursors'])==null||_0x3d0621[_0x528145(0x4a1)](_0x57c01e=>_0x57c01e[_0x528145(0x4de)]());}['_getSheetObject'](){const _0x3b291e=_0x27a911;return _0x48b9fd(this[_0x3b291e(0x339)],this[_0x3b291e(0x346)]);}};Ve=vr([_0x5cbde1(_0x2af1fa[_0x27a911(0x3c0)],Ve),$e(0x0,_0x1f782(fe)),$e(0x1,_0x41d661),$e(0x2,_0x30f264),$e(0x3,_0x1f782(_0x2fce55))],Ve);function Ir(_0x22451d){const _0x5056af=_0x27a911,_0x2ba98e=new Map();return _0x22451d[_0x5056af(0x4a1)](_0x61f819=>{const _0x337b5a=_0x5056af;if(_0x2ba98e[_0x337b5a(0x496)](_0x61f819['selection'])){const _0x4562f4=_0x2ba98e['get'](_0x61f819['selection']);_0x4562f4[_0x337b5a(0x2e1)]+=',\x20'+_0x61f819['name'];}else _0x2ba98e[_0x337b5a(0x19e)](_0x61f819[_0x337b5a(0x217)],_0x61f819);}),Array[_0x5056af(0x252)](_0x2ba98e['values']());}var A=function(){const _0x5940d4=_0x27a911;return A=Object[_0x5940d4(0x42d)]||function(_0x5720a1){const _0x420483=_0x5940d4;for(var _0x2f6125,_0x1fbf0e=0x1,_0x319b72=arguments[_0x420483(0x4d3)];_0x1fbf0e<_0x319b72;_0x1fbf0e++){_0x2f6125=arguments[_0x1fbf0e];for(var _0x5a0375 in _0x2f6125)Object['prototype'][_0x420483(0x4bf)]['call'](_0x2f6125,_0x5a0375)&&(_0x5720a1[_0x5a0375]=_0x2f6125[_0x5a0375]);}return _0x5720a1;},A[_0x5940d4(0x1f5)](this,arguments);},Er=function(_0x2e1d00,_0x59dd71){const _0x439f1d=_0x27a911;var _0x36213f={};for(var _0x4da29d in _0x2e1d00)Object[_0x439f1d(0x28c)][_0x439f1d(0x4bf)][_0x439f1d(0x41b)](_0x2e1d00,_0x4da29d)&&_0x59dd71[_0x439f1d(0x2c5)](_0x4da29d)<0x0&&(_0x36213f[_0x4da29d]=_0x2e1d00[_0x4da29d]);if(_0x2e1d00!=null&&typeof Object['getOwnPropertySymbols']==_0x439f1d(0x324)){for(var _0xd7340b=0x0,_0x4da29d=Object['getOwnPropertySymbols'](_0x2e1d00);_0xd7340b<_0x4da29d['length'];_0xd7340b++)_0x59dd71[_0x439f1d(0x2c5)](_0x4da29d[_0xd7340b])<0x0&&Object['prototype'][_0x439f1d(0x262)][_0x439f1d(0x41b)](_0x2e1d00,_0x4da29d[_0xd7340b])&&(_0x36213f[_0x4da29d[_0xd7340b]]=_0x2e1d00[_0x4da29d[_0xd7340b]]);}return _0x36213f;},$t=_0x3973d9(function(_0x26eb20,_0xc59037){const _0x473214=_0x27a911;var _0x519441=_0x26eb20[_0x473214(0x2ee)],_0x208edf=_0x26eb20['id'],_0x2d8b8e=_0x26eb20['className'],_0xd9237a=_0x26eb20[_0x473214(0x48f)],_0x377b12=Er(_0x26eb20,[_0x473214(0x2ee),'id','className',_0x473214(0x48f)]),_0x4036ce=_0x473214(0x261)['concat'](_0x208edf,'\x20')['concat'](_0x2d8b8e||'')[_0x473214(0x2b6)](),_0x1f2d3f=_0x330e6d('_'[_0x473214(0x32d)](Tr()));return As(_0x519441,''[_0x473214(0x32d)](_0x208edf),{'defIds':_0x519441[_0x473214(0x300)],'idSuffix':_0x1f2d3f[_0x473214(0x3a2)]},A({'ref':_0xc59037,'className':_0x4036ce},_0x377b12),_0xd9237a);});function As(_0x223188,_0xf2fcf8,_0x9ff1c1,_0x170895,_0x48761f){const _0x17f443=_0x27a911;return _0xa89835(_0x223188[_0x17f443(0x3aa)],A(A({'key':_0xf2fcf8},Cr(_0x223188,_0x9ff1c1,_0x48761f)),_0x170895),(br(_0x223188,_0x9ff1c1)[_0x17f443(0x3a8)]||[])[_0x17f443(0x231)](function(_0x4a7d1a,_0x35ee57){const _0x2d8955=_0x17f443;return As(_0x4a7d1a,''[_0x2d8955(0x32d)](_0xf2fcf8,'-')[_0x2d8955(0x32d)](_0x223188[_0x2d8955(0x3aa)],'-')[_0x2d8955(0x32d)](_0x35ee57),_0x9ff1c1,void 0x0,_0x48761f);}));}function Cr(_0x21a922,_0x118fd3,_0x4e5181){const _0x40a6ed=_0x27a911;var _0x3bae0b=A({},_0x21a922['attrs']);_0x4e5181!=null&&_0x4e5181[_0x40a6ed(0x38a)]&&_0x3bae0b[_0x40a6ed(0x3bf)]===_0x40a6ed(0x38a)&&(_0x3bae0b[_0x40a6ed(0x3bf)]=_0x4e5181['colorChannel1']);var _0x44ae64=_0x118fd3[_0x40a6ed(0x300)];return!_0x44ae64||_0x44ae64[_0x40a6ed(0x4d3)]===0x0||(_0x21a922[_0x40a6ed(0x3aa)]===_0x40a6ed(0x4bc)&&_0x3bae0b[_0x40a6ed(0x495)]&&(_0x3bae0b[_0x40a6ed(0x495)]=_0x3bae0b[_0x40a6ed(0x495)]+_0x118fd3['idSuffix']),Object[_0x40a6ed(0x36e)](_0x3bae0b)['forEach'](function(_0xff5484){const _0x26ef7e=_0x40a6ed;var _0x2ffbaf=_0xff5484[0x0],_0x24ae06=_0xff5484[0x1];typeof _0x24ae06==_0x26ef7e(0x2aa)&&(_0x3bae0b[_0x2ffbaf]=_0x24ae06[_0x26ef7e(0x486)](/url\(#(.*)\)/,_0x26ef7e(0x404)[_0x26ef7e(0x32d)](_0x118fd3['idSuffix'],')')));})),_0x3bae0b;}function br(_0x2775f6,_0x2ff9c1){const _0x24c020=_0x27a911;var _0x4edb63,_0x1cbf9f=_0x2ff9c1['defIds'];return!_0x1cbf9f||_0x1cbf9f['length']===0x0?_0x2775f6:_0x2775f6['tag']===_0x24c020(0x40e)&&(!((_0x4edb63=_0x2775f6[_0x24c020(0x3a8)])===null||_0x4edb63===void 0x0)&&_0x4edb63[_0x24c020(0x4d3)])?A(A({},_0x2775f6),{'children':_0x2775f6[_0x24c020(0x3a8)][_0x24c020(0x231)](function(_0x97d4f6){const _0x400f92=_0x24c020;return typeof _0x97d4f6[_0x400f92(0x3a4)]['id']==_0x400f92(0x2aa)&&_0x1cbf9f&&_0x1cbf9f[_0x400f92(0x2c5)](_0x97d4f6[_0x400f92(0x3a4)]['id'])>-0x1?A(A({},_0x97d4f6),{'attrs':A(A({},_0x97d4f6[_0x400f92(0x3a4)]),{'id':_0x97d4f6[_0x400f92(0x3a4)]['id']+_0x2ff9c1['idSuffix']})}):_0x97d4f6;})}):_0x2775f6;}function Tr(){const _0x5317d5=_0x27a911;return Math[_0x5317d5(0x2f1)]()[_0x5317d5(0x3b0)](0x24)[_0x5317d5(0x335)](0x2,0x8);}$t[_0x27a911(0x427)]=_0x27a911(0x1b1);var Rr={'tag':_0x27a911(0x45f),'attrs':{'fill':'none','viewBox':_0x27a911(0x243),'width':_0x27a911(0x22e),'height':_0x27a911(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':_0x27a911(0x421)},'children':[{'tag':_0x27a911(0x269),'attrs':{'stroke':_0x27a911(0x4aa),'d':_0x27a911(0x1f0),'strokeLinecap':_0x27a911(0x456),'strokeLinejoin':_0x27a911(0x456),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x27a911(0x419),'attrs':{'id':_0x27a911(0x1eb)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x27a911(0x484)}}]}]}],'defIds':[_0x27a911(0x1eb)]},ys=_0x3973d9(function(_0x4958ad,_0x55b4a8){const _0x2baf23=_0x27a911;return _0xa89835($t,Object[_0x2baf23(0x42d)]({},_0x4958ad,{'id':_0x2baf23(0x3c7),'ref':_0x55b4a8,'icon':Rr}));});ys['displayName']=_0x27a911(0x4ca);var Or={'tag':_0x27a911(0x45f),'attrs':{'fill':'none','viewBox':_0x27a911(0x264),'width':_0x27a911(0x22e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x27a911(0x1cf)},'children':[{'tag':'path','attrs':{'stroke':_0x27a911(0x4aa),'d':_0x27a911(0x245),'strokeLinecap':_0x27a911(0x456),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x27a911(0x269),'attrs':{'fill':_0x27a911(0x377),'d':_0x27a911(0x484),'transform':_0x27a911(0x2ce)}}]}]}],'defIds':[_0x27a911(0x429)]},Us=_0x3973d9(function(_0x24b944,_0x2d900f){const _0x5f2768=_0x27a911;return _0xa89835($t,Object[_0x5f2768(0x42d)]({},_0x24b944,{'id':_0x5f2768(0x34d),'ref':_0x2d900f,'icon':Or}));});Us['displayName']=_0x27a911(0x4b1);const Dr=_0x27a911(0x3b9),Pr=_0x27a911(0x45e),wr='univer-online-status',Nr=_0x27a911(0x4ac),Mr=_0x27a911(0x1f9),be={'onlineStatusIcon':Dr,'onlineStatusTitle':Pr,'onlineStatus':wr,'online':Nr,'offline':Mr};function Ar(_0x4021c6){const _0x198fa0=_0x27a911;switch(_0x4021c6){case w[_0x198fa0(0x340)]:return _0x198fa0(0x286);case w[_0x198fa0(0x2ec)]:return'collabStatus.conflict';case w[_0x198fa0(0x2f0)]:return _0x198fa0(0x455);case w[_0x198fa0(0x27e)]:return _0x198fa0(0x214);case w[_0x198fa0(0x2f7)]:case w[_0x198fa0(0x3eb)]:case w[_0x198fa0(0x4a0)]:return _0x198fa0(0x299);case w[_0x198fa0(0x3c9)]:return _0x198fa0(0x49d);}}function yr(_0x4fb410){const _0x27bc6b=_0x27a911,{status$:_0x1016d5}=_0x4fb410,_0x217409=_0x44b1fb(_0x1016d5,w[_0x27bc6b(0x27e)]),_0x174a61=_0xf55e15(_0x262e83),_0x20b468=_0x217409!==w[_0x27bc6b(0x340)],_0xeb8fd5=_0x174a61['t'](Ar(_0x217409)),_0x14291e=_0x18d5cb(be[_0x27bc6b(0x2f9)],{[be[_0x27bc6b(0x291)]]:_0x20b468,[be[_0x27bc6b(0x345)]]:!_0x20b468}),_0x975439=_0x20b468?_0x1ce8d0['createElement'](Us,null):_0x1ce8d0[_0x27bc6b(0x2a1)](ys,null);return _0x1ce8d0[_0x27bc6b(0x2a1)](_0x27bc6b(0x229),{'className':_0x14291e},_0x1ce8d0[_0x27bc6b(0x2a1)]('div',{'className':be[_0x27bc6b(0x355)]},_0x975439),_0x1ce8d0[_0x27bc6b(0x2a1)]('div',{'className':be[_0x27bc6b(0x228)]},_0xeb8fd5));}var Ur=Object[_0x27a911(0x29f)],Lr=Object[_0x27a911(0x330)],$r=(_0x2916c9,_0x410fd7,_0x43f507,_0xc6a213)=>{const _0x5f5838=_0x27a911;for(var _0x59c735=_0xc6a213>0x1?void 0x0:_0xc6a213?Lr(_0x410fd7,_0x43f507):_0x410fd7,_0x4a82c1=_0x2916c9[_0x5f5838(0x4d3)]-0x1,_0x179919;_0x4a82c1>=0x0;_0x4a82c1--)(_0x179919=_0x2916c9[_0x4a82c1])&&(_0x59c735=(_0xc6a213?_0x179919(_0x410fd7,_0x43f507,_0x59c735):_0x179919(_0x59c735))||_0x59c735);return _0xc6a213&&_0x59c735&&Ur(_0x410fd7,_0x43f507,_0x59c735),_0x59c735;},je=(_0x47c475,_0x5d25ee)=>(_0x7604ce,_0x40e3cc)=>_0x5d25ee(_0x7604ce,_0x40e3cc,_0x47c475);let ke=class extends _0xd60028{constructor(_0x30d1b6,_0x286020,_0x4bbd56,_0x288730){const _0x46fde0=_0x27a911;super(),l(this,_0x46fde0(0x1f4),new _0x3146d9(w[_0x46fde0(0x27e)])),(this[_0x46fde0(0x339)]=_0x30d1b6,this[_0x46fde0(0x320)]=_0x286020,this[_0x46fde0(0x43e)]=_0x4bbd56,this[_0x46fde0(0x4d6)]=_0x288730,this[_0x46fde0(0x3c4)](),this['_initStatusListener']());}['_initStatusComponent'](){const _0x172289=_0x27a911;this[_0x172289(0x3be)](this[_0x172289(0x320)][_0x172289(0x244)](_0x23ba03[_0x172289(0x218)],()=>_0x20fd92(jr({'status$':this[_0x172289(0x1f4)][_0x172289(0x48c)]()}),this[_0x172289(0x43e)])));}[_0x27a911(0x1ba)](){const _0x420216=_0x27a911;this[_0x420216(0x3be)](_0x1726d4(this[_0x420216(0x339)]['focused$'][_0x420216(0x1a1)](_0x508547(()=>{const _0x4c9da1=_0x420216,_0x5c1815=this[_0x4c9da1(0x339)][_0x4c9da1(0x25a)]();return _0x5c1815?this[_0x4c9da1(0x4d6)][_0x4c9da1(0x42f)](_0x5c1815[_0x4c9da1(0x2ba)]()):_0x4d7b9c(null);}),_0x508547(_0x29ccb9=>_0x29ccb9?_0x29ccb9[_0x420216(0x4a5)]:_0x4d7b9c(w[_0x420216(0x27e)])))['subscribe'](_0x292cd0=>{const _0x5f46bb=_0x420216;this['_status$'][_0x5f46bb(0x24a)](_0x292cd0);})));}};ke=$r([_0x5cbde1(_0x2af1fa[_0x27a911(0x327)],ke),je(0x0,_0x41d661),je(0x1,_0x25177a),je(0x2,_0x1f782(_0x55b67e)),je(0x3,_0x1f782(De))],ke);function jr(_0x4513bb){const {status$:_0x32e43a}=_0x4513bb;return function(){const _0x5d6192=_0x5bd0;return _0x1ce8d0[_0x5d6192(0x2a1)](yr,{'status$':_0x32e43a});};}const Ls=_0x358bbc(_0x27a911(0x4d4));var Hr=Object[_0x27a911(0x29f)],xr=Object['getOwnPropertyDescriptor'],Fr=(_0x2a609b,_0x3f0775,_0x15c9ac,_0x3df502)=>{for(var _0x14d0ec=_0x3df502>0x1?void 0x0:_0x3df502?xr(_0x3f0775,_0x15c9ac):_0x3f0775,_0x15efe=_0x2a609b['length']-0x1,_0x39fe04;_0x15efe>=0x0;_0x15efe--)(_0x39fe04=_0x2a609b[_0x15efe])&&(_0x14d0ec=(_0x3df502?_0x39fe04(_0x3f0775,_0x15c9ac,_0x14d0ec):_0x39fe04(_0x14d0ec))||_0x14d0ec);return _0x3df502&&_0x14d0ec&&Hr(_0x3f0775,_0x15c9ac,_0x14d0ec),_0x14d0ec;},le=(_0x2e815f,_0x1345e5)=>(_0x266a4a,_0x1a5382)=>_0x1345e5(_0x266a4a,_0x1a5382,_0x2e815f);let Be=class extends _0xe4c81a{constructor(_0xfcc5d6,_0x3a402c,_0xb6b849,_0x438359,_0x541767,_0x1b8a7e){const _0x1a12be=_0x27a911;super(),this['_urlService']=_0xfcc5d6,this[_0x1a12be(0x304)]=_0x3a402c,this[_0x1a12be(0x274)]=_0xb6b849,this[_0x1a12be(0x1c1)]=_0x438359,this['_snapshotService']=_0x541767,_0x1b8a7e?_0x1b8a7e==null||_0x1b8a7e[_0x1a12be(0x364)]()[_0x1a12be(0x2a6)](()=>this['_init']()):(this['_logService']['debug'](_0x1a12be(0x35a),_0x1a12be(0x454)),this[_0x1a12be(0x1f7)]());}async[_0x27a911(0x1f7)](){const _0x3c3a0a=_0x27a911,_0x1bcb6b=this['_urlService'][_0x3c3a0a(0x42a)](_0x3c3a0a(0x379)),_0x434730=this[_0x3c3a0a(0x39e)]['getParam'](_0x3c3a0a(0x38d));if(!_0x1bcb6b||!_0x434730){this[_0x3c3a0a(0x304)][_0x3c3a0a(0x4bd)]('[DataLoaderController]',_0x3c3a0a(0x281));return;}switch(Number(_0x434730)){case H[_0x3c3a0a(0x3c2)]:{const _0x31e6d2=await this[_0x3c3a0a(0x2eb)](_0x1bcb6b);this[_0x3c3a0a(0x2c3)](_0x31e6d2);break;}case H[_0x3c3a0a(0x1c4)]:{await this[_0x3c3a0a(0x1e5)](_0x1bcb6b);break;}default:{this[_0x3c3a0a(0x304)][_0x3c3a0a(0x388)](_0x3c3a0a(0x35a),_0x3c3a0a(0x479));break;}}}async[_0x27a911(0x2c3)](_0x3849ae){const _0x1da1af=_0x27a911;await this[_0x1da1af(0x1d1)](_0x3849ae),_0x3849ae[_0x1da1af(0x36c)][_0x1da1af(0x1a1)](_0x39ba56(this[_0x1da1af(0x1b0)]))[_0x1da1af(0x307)](_0x258072=>{const _0x4482ed=_0x1da1af;_0x258072&&this[_0x4482ed(0x1db)](_0x258072);}),this[_0x1da1af(0x39e)]['urlChange$'][_0x1da1af(0x1a1)](_0x39ba56(this['dispose$']))[_0x1da1af(0x307)](()=>this[_0x1da1af(0x1d1)](_0x3849ae));}[_0x27a911(0x1db)](_0xa113de,_0x583c45=!0x1){const _0x1d7a3c=_0x27a911,_0xab16ac=this['_urlService']['getParam'](_0x1d7a3c(0x1dc));_0xa113de[_0x1d7a3c(0x369)]()!==_0xab16ac&&this[_0x1d7a3c(0x39e)][_0x1d7a3c(0x423)](_0x1d7a3c(0x1dc),_0xa113de[_0x1d7a3c(0x369)](),_0x583c45);}async[_0x27a911(0x1d1)](_0x5eb301){const _0x4abe32=_0x27a911;var _0x25264c;const _0x2cfb5f=this[_0x4abe32(0x39e)]['getParam'](_0x4abe32(0x1dc));if(!_0x2cfb5f||!_0x5eb301[_0x4abe32(0x235)](_0x2cfb5f)){const _0x5edb99=_0x5eb301['getUnhiddenWorksheets']()[0x0],_0x1e7851=_0x5eb301['getSheetBySheetId'](_0x5edb99);if(!_0x1e7851)return;this[_0x4abe32(0x1db)](_0x1e7851,!0x0),await this[_0x4abe32(0x274)][_0x4abe32(0x3f6)](_0x320312['id'],{'unitId':_0x5eb301[_0x4abe32(0x2ba)](),'subUnitId':_0x5edb99});return;}((_0x25264c=_0x5eb301[_0x4abe32(0x199)]())==null?void 0x0:_0x25264c['getSheetId']())!==_0x2cfb5f&&await this[_0x4abe32(0x274)]['executeCommand'](_0x320312['id'],{'unitId':_0x5eb301[_0x4abe32(0x2ba)](),'subUnitId':_0x2cfb5f});}async[_0x27a911(0x2eb)](_0x2009bb){const _0x1c3c3b=_0x27a911;let _0x5ef84f=0x0;const _0x168cd0=await this['_localCacheService'][_0x1c3c3b(0x237)](_0x2009bb);return _0x168cd0&&(_0x168cd0[_0x1c3c3b(0x2c1)]||_0x168cd0[_0x1c3c3b(0x1d2)][_0x1c3c3b(0x4d3)]!==0x0)&&(_0x5ef84f=_0x168cd0[_0x1c3c3b(0x3d7)]),_0x5ef84f===0x0&&this[_0x1c3c3b(0x304)][_0x1c3c3b(0x4bd)](_0x1c3c3b(0x35a),_0x1c3c3b(0x2af)),this['_snapshotService'][_0x1c3c3b(0x47e)](_0x2009bb,_0x5ef84f);}async[_0x27a911(0x1e5)](_0x1c7a35){const _0x5bc76a=_0x27a911;let _0x5b6dfb=0x0;const _0x2fd5bb=await this[_0x5bc76a(0x1c1)][_0x5bc76a(0x237)](_0x1c7a35);return _0x2fd5bb&&(_0x2fd5bb[_0x5bc76a(0x2c1)]||_0x2fd5bb[_0x5bc76a(0x1d2)][_0x5bc76a(0x4d3)]!==0x0)&&(_0x5b6dfb=_0x2fd5bb[_0x5bc76a(0x3d7)]),_0x5b6dfb===0x0&&this[_0x5bc76a(0x304)]['debug']('[DataLoaderController]',_0x5bc76a(0x2af)),this[_0x5bc76a(0x225)][_0x5bc76a(0x3d0)](_0x1c7a35,_0x5b6dfb);}};Be=Fr([_0x5cbde1(_0x2af1fa['Starting'],Be),le(0x0,Ls),le(0x1,_0x5e4d90),le(0x2,_0x22dfc9),le(0x3,_0x1f782(D)),le(0x4,_0x1f782(_0x507009)),le(0x5,_0x275bb1(_0x4113b5))],Be);var Vr=Object['defineProperty'],kr=Object[_0x27a911(0x330)],Br=(_0x1d9d85,_0x4ebbbd,_0x37c15b,_0x2aced5)=>{const _0x1f9eed=_0x27a911;for(var _0x419c3a=_0x2aced5>0x1?void 0x0:_0x2aced5?kr(_0x4ebbbd,_0x37c15b):_0x4ebbbd,_0x596f11=_0x1d9d85[_0x1f9eed(0x4d3)]-0x1,_0x16acd6;_0x596f11>=0x0;_0x596f11--)(_0x16acd6=_0x1d9d85[_0x596f11])&&(_0x419c3a=(_0x2aced5?_0x16acd6(_0x4ebbbd,_0x37c15b,_0x419c3a):_0x16acd6(_0x419c3a))||_0x419c3a);return _0x2aced5&&_0x419c3a&&Vr(_0x4ebbbd,_0x37c15b,_0x419c3a),_0x419c3a;},ss=(_0x5060f0,_0x58eee)=>(_0x7ab2d0,_0x505550)=>_0x58eee(_0x7ab2d0,_0x505550,_0x5060f0);const Wr=_0x27a911(0x4d0),Gr=_0x27a911(0x4c2);let We=class extends _0xd60028{constructor(_0x7b9963,_0x2aec5a){const _0x13ea46=_0x27a911;super(),this[_0x13ea46(0x339)]=_0x7b9963,this[_0x13ea46(0x37e)]=_0x2aec5a,this[_0x13ea46(0x1f7)]();}['_init'](){const _0x54616b=_0x27a911;this[_0x54616b(0x3be)](_0x1726d4(this['_univerInstanceService'][_0x54616b(0x470)]['subscribe'](()=>{const _0x381ee7=_0x54616b;var _0x19ca67;const _0x3060c3=this[_0x381ee7(0x339)]['getFocusedUnit']();let _0x4e0178=(_0x19ca67=this[_0x381ee7(0x37e)][_0x381ee7(0x406)](Wr))!=null?_0x19ca67:Gr;_0x3060c3 instanceof _0x3a1fec&&(_0x4e0178=_0x3060c3[_0x381ee7(0x2e1)]),document[_0x381ee7(0x492)]=_0x4e0178;})));}};We=Br([_0x5cbde1(_0x2af1fa[_0x27a911(0x1ea)],We),ss(0x0,_0x41d661),ss(0x1,_0x5c69d0)],We);var Yr=Object[_0x27a911(0x29f)],Kr=Object[_0x27a911(0x330)],Xr=(_0x5c34de,_0x2d5959,_0x139b05,_0x522a90)=>{const _0x405bcc=_0x27a911;for(var _0xc72699=_0x522a90>0x1?void 0x0:_0x522a90?Kr(_0x2d5959,_0x139b05):_0x2d5959,_0xc193ae=_0x5c34de[_0x405bcc(0x4d3)]-0x1,_0x4ab43c;_0xc193ae>=0x0;_0xc193ae--)(_0x4ab43c=_0x5c34de[_0xc193ae])&&(_0xc72699=(_0x522a90?_0x4ab43c(_0x2d5959,_0x139b05,_0xc72699):_0x4ab43c(_0xc72699))||_0xc72699);return _0x522a90&&_0xc72699&&Yr(_0x2d5959,_0x139b05,_0xc72699),_0xc72699;},is=(_0x320f6e,_0x516558)=>(_0x2321aa,_0x5666af)=>_0x516558(_0x2321aa,_0x5666af,_0x320f6e);let Ct=class{constructor(_0x42e1c0,_0x3d9789){const _0x27dd10=_0x27a911;this[_0x27dd10(0x37e)]=_0x42e1c0,this[_0x27dd10(0x2d7)]=_0x3d9789;}async[_0x27a911(0x27c)](_0x2288e8,_0x478ee1){const _0x430d12=_0x27a911;var _0x47e176;const {unitID:_0x36ec82,type:_0x430073,revision:_0x498104=0x0}=_0x478ee1,_0x4dc8e7=this['_getSnapshotAPIPrefix']()+'/'+_0x430073+_0x430d12(0x43a)+_0x36ec82+_0x430d12(0x47d)+_0x498104,_0x18e6de=(await this['_httpService'][_0x430d12(0x26f)](_0x4dc8e7))[_0x430d12(0x434)],_0x27527f=(_0x47e176=_0x18e6de['snapshot'])==null?void 0x0:_0x47e176[_0x430d12(0x22c)];if(_0x27527f){const _0x5504a5=_0x27527f==null?void 0x0:_0x27527f['originalMeta'],_0x1692ec=_0x408316[_0x430d12(0x23d)](_0x2e8019(_0x5504a5));_0x27527f[_0x430d12(0x3ca)]=_0x1692ec,Object[_0x430d12(0x36e)](_0x27527f[_0x430d12(0x28b)])[_0x430d12(0x4a1)](([,_0x10948c])=>{const _0x52896e=_0x430d12,_0x17d4cf=_0x10948c[_0x52896e(0x3ca)],_0x165649=_0x408316[_0x52896e(0x23d)](_0x2e8019(_0x17d4cf));_0x10948c[_0x52896e(0x3ca)]=_0x165649;});}return _0x18e6de;}async[_0x27a911(0x412)](_0x556bbc,_0x2b1e0e){const _0x21e9a4=_0x27a911,{unitID:_0x45fe41,type:_0x13b14a,blockID:_0x37494}=_0x2b1e0e,_0x2c3617=this[_0x21e9a4(0x490)]()+'/'+_0x13b14a+_0x21e9a4(0x43a)+_0x45fe41+_0x21e9a4(0x295)+_0x37494;return(await this['_httpService'][_0x21e9a4(0x26f)](_0x2c3617))[_0x21e9a4(0x434)];}async[_0x27a911(0x247)](_0x58d02f,_0x44e8c0){const _0x3258da=_0x27a911,{unitID:_0x6dc586,type:_0x38597d,from:_0x24bf98,to:_0x4e109f}=_0x44e8c0,_0x45077c=this[_0x3258da(0x490)]()+'/'+_0x38597d+'/unit/'+_0x6dc586+_0x3258da(0x2ea)+_0x24bf98+_0x3258da(0x1a0)+_0x4e109f;return(await this[_0x3258da(0x2d7)][_0x3258da(0x26f)](_0x45077c))[_0x3258da(0x434)];}[_0x27a911(0x3ea)](){const _0x2e498d=_0x27a911;var _0x4e1bdd;return(_0x4e1bdd=this[_0x2e498d(0x37e)]['getConfig'](Qi))!=null?_0x4e1bdd:this[_0x2e498d(0x490)]();}[_0x27a911(0x490)](){const _0x30ae17=_0x27a911;var _0x5ef970;return(_0x5ef970=this[_0x30ae17(0x37e)][_0x30ae17(0x406)](zi))!=null?_0x5ef970:Zi;}async['getResourcesRequest'](_0x130ba9,_0x16ea60){const _0x2b95c0=_0x27a911,_0x52aab9=_0x2b95c0(0x417)+_0x16ea60[_0x2b95c0(0x38d)]+_0x2b95c0(0x43a)+_0x16ea60[_0x2b95c0(0x3a7)]+_0x2b95c0(0x4a3);return(await this['_httpService'][_0x2b95c0(0x26f)](_0x52aab9,{'params':{'resourceId':JSON[_0x2b95c0(0x4cb)](_0x16ea60[_0x2b95c0(0x297)])}}))[_0x2b95c0(0x434)];}[_0x27a911(0x250)](){const _0x156a00=_0x27a911;throw new Error(_0x156a00(0x38c));}[_0x27a911(0x367)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x27a911(0x42b)](){const _0x1755a7=_0x27a911;throw new Error(_0x1755a7(0x38c));}};Ct=Xr([is(0x0,_0x5c69d0),is(0x1,_0x1f782(_0x4c0c53))],Ct);var Jr=Object[_0x27a911(0x29f)],qr=Object[_0x27a911(0x330)],zr=(_0x3ac758,_0x53c9f5,_0x363ad6,_0x29e662)=>{const _0x172969=_0x27a911;for(var _0x37f223=_0x29e662>0x1?void 0x0:_0x29e662?qr(_0x53c9f5,_0x363ad6):_0x53c9f5,_0x25d6f0=_0x3ac758[_0x172969(0x4d3)]-0x1,_0x1ab55;_0x25d6f0>=0x0;_0x25d6f0--)(_0x1ab55=_0x3ac758[_0x25d6f0])&&(_0x37f223=(_0x29e662?_0x1ab55(_0x53c9f5,_0x363ad6,_0x37f223):_0x1ab55(_0x37f223))||_0x37f223);return _0x29e662&&_0x37f223&&Jr(_0x53c9f5,_0x363ad6,_0x37f223),_0x37f223;},Te=(_0x3d4c13,_0x306faf)=>(_0x3435b7,_0x6d25ba)=>_0x306faf(_0x3435b7,_0x6d25ba,_0x3d4c13);let bt=class extends _0xba6511{constructor(_0xcbf66e,_0x4700e6,_0x58c9ae,_0x512b81,_0x24e5f1){const _0x125b72=_0x27a911;super(_0xcbf66e,_0x4700e6,_0x58c9ae),this[_0x125b72(0x288)]=_0x512b81,this[_0x125b72(0x304)]=_0x24e5f1;}[_0x27a911(0x1b5)](_0xf6a16e,_0x2b4512){const _0xcb2f90=_0x27a911,_0x4f9b6f=this[_0xcb2f90(0x46b)](_0xf6a16e);if(_0x4f9b6f)try{const _0x3da2f8=this[_0xcb2f90(0x36b)](_0x4f9b6f,_0x2b4512);this[_0xcb2f90(0x230)](_0xf6a16e,_0x3da2f8);}catch(_0x3474c6){this[_0xcb2f90(0x304)][_0xcb2f90(0x388)](_0xcb2f90(0x20c),_0x3474c6),this[_0xcb2f90(0x39b)](_0xf6a16e);}const _0x4e0270=this[_0xcb2f90(0x1b8)](_0xf6a16e);if(_0x4e0270)try{const _0x378880=this[_0xcb2f90(0x36b)](_0x4e0270,_0x2b4512);this[_0xcb2f90(0x1fe)](_0xf6a16e,_0x378880);}catch(_0x283770){this[_0xcb2f90(0x304)][_0xcb2f90(0x388)](_0x283770),this['_clearRedo'](_0xf6a16e);}}['_clearUndo'](_0x167f30){const _0x2c86f4=_0x27a911,_0x34157d=this[_0x2c86f4(0x46b)](_0x167f30);_0x34157d&&(_0x34157d[_0x2c86f4(0x4d3)]=0x0,this['_updateStatus']());}[_0x27a911(0x2e7)](_0x594fce){const _0x330755=_0x27a911,_0xedf4a=this['_getRedoStack'](_0x594fce);_0xedf4a&&(_0xedf4a[_0x330755(0x4d3)]=0x0,this['_updateStatus']());}[_0x27a911(0x230)](_0x37e7d6,_0x1fb27c){const _0x5bb71e=_0x27a911;this['_undoStacks'][_0x5bb71e(0x19e)](_0x37e7d6,_0x1fb27c),this[_0x5bb71e(0x36f)]();}[_0x27a911(0x1fe)](_0x53083f,_0x130199){const _0x2fa551=_0x27a911;this[_0x2fa551(0x2e6)][_0x2fa551(0x19e)](_0x53083f,_0x130199),this[_0x2fa551(0x36f)]();}[_0x27a911(0x36b)](_0x21591a,_0x46d775){const _0x30f3ac=_0x27a911,_0x52d630=[];let _0x1cf873=_0x46d775,_0x11ddad=_0x46d775;for(let _0x3e5153=_0x21591a[_0x30f3ac(0x4d3)]-0x1;_0x3e5153>=0x0;_0x3e5153--){const {unitID:_0x2152af,undoMutations:_0x4fb52f,redoMutations:_0x4e6129}=_0x21591a[_0x3e5153],_0x3a0b44=this[_0x30f3ac(0x288)][_0x30f3ac(0x2be)](_0x1cf873,_0x4fb52f),_0x542178=this['_transformService'][_0x30f3ac(0x2be)](_0x11ddad,_0x4e6129);if(_0x1218ba(_0x3a0b44)||_0x1218ba(_0x542178)){this[_0x30f3ac(0x304)][_0x30f3ac(0x388)](_0x30f3ac(0x20c),'transformStack\x20failed!',_0x3a0b44,_0x542178);break;}_0x1cf873=_0x3a0b44[_0x30f3ac(0x338)],_0x11ddad=_0x542178['c1Prime'],_0x52d630['push']({'unitID':_0x2152af,'undoMutations':_0x3a0b44[_0x30f3ac(0x2d4)],'redoMutations':_0x542178['m2Prime']});}return _0x52d630[_0x30f3ac(0x3b5)]();}};bt=zr([Te(0x0,_0x41d661),Te(0x1,_0x22dfc9),Te(0x2,_0xf12dbe),Te(0x3,_0x28f8f5),Te(0x4,_0x5e4d90)],bt);class Zr extends _0xe4c81a{constructor(){const _0x295b1d=_0x27a911;super(),l(this,_0x295b1d(0x4d2)),this['urlChange$']=_0x4bb1b5(window,_0x295b1d(0x3f3))[_0x295b1d(0x1a1)](_0x39ba56(this[_0x295b1d(0x1b0)]),_0x551274(0x1),_0xcaab66(void 0x0));}[_0x27a911(0x423)](_0x475c70,_0x2319fe,_0x433573=!0x1){const _0x1c5abc=_0x27a911,_0x5c107f=new URL(window['location'][_0x1c5abc(0x2a4)]);_0x5c107f[_0x1c5abc(0x436)]['set'](_0x475c70,_0x2319fe),_0x433573?window[_0x1c5abc(0x23c)][_0x1c5abc(0x2ab)]('','',_0x5c107f[_0x1c5abc(0x3b0)]()):window['history'][_0x1c5abc(0x289)]('','',_0x5c107f[_0x1c5abc(0x3b0)]());}[_0x27a911(0x280)](_0x328c85,_0x492182=!0x1){const _0x299e71=_0x27a911,_0x3cda3a=new URL(window[_0x299e71(0x459)][_0x299e71(0x2a4)]);_0x3cda3a[_0x299e71(0x436)]['delete'](_0x328c85),_0x492182?window['history'][_0x299e71(0x2ab)]('','',_0x3cda3a[_0x299e71(0x3b0)]()):window['history']['pushState']('','',_0x3cda3a[_0x299e71(0x3b0)]());}['getParam'](_0x204ed2){const _0x57199e=_0x27a911;var _0x2a3529;return(_0x2a3529=new URL(window[_0x57199e(0x459)]['href'])['searchParams']['get'](_0x204ed2))!=null?_0x2a3529:void 0x0;}}const lt=_0x27a911(0x3e7),Qr=_0x27a911(0x4b3),He=0x6,eo=1.5,_t=0x4,to=1.5,so=_0x27a911(0x219);class io{constructor(_0x38d6e6,_0x4d5aa6,_0x463ff1,_0x4bf32a){const _0x4f5d97=_0x27a911;l(this,_0x4f5d97(0x40c),[]),l(this,_0x4f5d97(0x308),null),l(this,_0x4f5d97(0x2cc),null),l(this,_0x4f5d97(0x488),null),l(this,'_hideTimer',null),l(this,_0x4f5d97(0x1f6),null),(this[_0x4f5d97(0x357)]=_0x38d6e6,this[_0x4f5d97(0x3e8)]=_0x4d5aa6,this['_docSkeleton']=_0x463ff1,this[_0x4f5d97(0x1a2)]=_0x4bf32a,this[_0x4f5d97(0x1a9)]());}set[_0x27a911(0x241)](_0x599988){const _0x5ccd6a=_0x27a911;_0x599988?(this[_0x5ccd6a(0x488)]&&this[_0x5ccd6a(0x488)][_0x5ccd6a(0x37a)](),this[_0x5ccd6a(0x2cc)]&&this['_textBubble']['show']()):(this[_0x5ccd6a(0x488)]&&this[_0x5ccd6a(0x488)]['show'](),this[_0x5ccd6a(0x2cc)]&&this[_0x5ccd6a(0x2cc)]['hide']());}[_0x27a911(0x4de)](){const _0x3657ee=_0x27a911;for(const _0x43d3b0 of this[_0x3657ee(0x40c)])_0x43d3b0[_0x3657ee(0x4de)]();this[_0x3657ee(0x2cc)]&&this[_0x3657ee(0x2cc)][_0x3657ee(0x4de)](),this[_0x3657ee(0x488)]&&this[_0x3657ee(0x488)][_0x3657ee(0x4de)](),this[_0x3657ee(0x308)]&&this[_0x3657ee(0x308)][_0x3657ee(0x4de)](),this[_0x3657ee(0x1f6)]&&this[_0x3657ee(0x1f6)]();}[_0x27a911(0x1a9)](){const _0x2d86e2=_0x27a911,{_docSkeleton:_0x6492fd,_document:_0x24d5ab}=this,{color:_0x30b40c,name:_0x1c1141,ranges:_0x543df5}=this[_0x2d86e2(0x357)],_0x5a98c7=_0x24d5ab[_0x2d86e2(0x202)](),{docsLeft:_0x17d8b3,docsTop:_0x4a1a71}=_0x5a98c7,_0x4e0cdc=new _0x4d2c62(_0x5a98c7,_0x6492fd);for(const {startOffset:_0x1460c8,endOffset:_0x145b64,collapsed:_0x12d3c5,isActive:_0x82182b}of _0x543df5){const _0x39b482=_0x6492fd[_0x2d86e2(0x236)](_0x1460c8),_0x5f40ca=_0x6492fd['findNodePositionByCharIndex'](_0x145b64);if(_0x82182b){const {contentBoxPointGroup:_0x43f924}=_0x4e0cdc[_0x2d86e2(0x265)](_0x5f40ca,_0x5f40ca);if(_0x43f924[_0x2d86e2(0x4d3)]===0x0)continue;this[_0x2d86e2(0x408)](_0x30b40c,_0x43f924,_0x17d8b3,_0x4a1a71,_0x1c1141),this[_0x2d86e2(0x1f6)]=this[_0x2d86e2(0x2f6)]();}if(!_0x12d3c5){const {contentBoxPointGroup:_0x597d93}=_0x4e0cdc['getRangePointData'](_0x39b482,_0x5f40ca);if(_0x597d93[_0x2d86e2(0x4d3)]===0x0)continue;this[_0x2d86e2(0x21c)](_0x30b40c,_0x597d93,_0x17d8b3,_0x4a1a71);}}}[_0x27a911(0x408)](_0x56723c,_0x128d39,_0x10079e,_0x336e8e,_0x421d02){const _0x4a917b=_0x27a911,_0x1ee969=this[_0x4a917b(0x1d4)](_0x128d39),{left:_0x2b5f8c,top:_0x47de5d,height:_0x211ba7}=_0x1ee969,_0x1a2af8=this[_0x4a917b(0x4d7)](),_0x391323=to/_0x1a2af8,_0x159e20=new _0x51d98d(lt+_0x288a64[_0x4a917b(0x376)](He),{'left':_0x2b5f8c+_0x10079e-_0x391323,'top':_0x47de5d+_0x336e8e,'height':_0x211ba7,'width':eo,'fill':_0x56723c||_0x35cbea(_0x5c79d7[_0x4a917b(0x3cb)],0x0),'strokeWidth':_0x391323,'stroke':so,'evented':!0x0});this[_0x4a917b(0x308)]=_0x159e20,this[_0x4a917b(0x3e8)][_0x4a917b(0x3a3)](_0x159e20,_0x17f27b);const _0x473dff=new _0x51d98d(lt+_0x288a64[_0x4a917b(0x376)](He),{'left':_0x2b5f8c+_0x10079e-_0x391323,'top':_0x47de5d+_0x336e8e-_t/0x2,'height':_t,'width':_t,'fill':_0x56723c||_0x35cbea(_0x5c79d7['black'],0x0),'strokeWidth':0x0,'stroke':_0x56723c||_0x35cbea(_0x5c79d7[_0x4a917b(0x3cb)],0x0),'evented':!0x1});this[_0x4a917b(0x488)]=_0x473dff,this['_scene'][_0x4a917b(0x3a3)](_0x473dff,_0x17f27b);const _0x161711=new st(lt+_0x288a64[_0x4a917b(0x376)](He),{'left':_0x2b5f8c+_0x10079e-_0x391323,'top':_0x47de5d+_0x336e8e-Me,'text':_0x421d02,'color':_0x56723c});this[_0x4a917b(0x2cc)]=_0x161711,this[_0x4a917b(0x3e8)]['addObject'](_0x161711,_0x17f27b),this[_0x4a917b(0x241)]=!0x1;}['_handleHover'](){const _0x3823be=_0x27a911,_0xdd5ce5=this['_anchor'][_0x3823be(0x259)][_0x3823be(0x2c2)](()=>{this['_hover']=!0x0;}),_0x7f3d8a=this[_0x3823be(0x308)][_0x3823be(0x1c3)][_0x3823be(0x2c2)](()=>{const _0x218758=_0x3823be;this[_0x218758(0x2da)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x3aee6b=_0x218758;this[_0x3aee6b(0x241)]=!0x1;},0x7d0);});return()=>{const _0x18f608=_0x3823be;_0xdd5ce5[_0x18f608(0x34c)](),_0x7f3d8a['unsubscribe']();};}[_0x27a911(0x21c)](_0x20a197,_0x27f2fa,_0x1b0479,_0x4822c1){const _0x4085d6=_0x27a911,_0x3743f0=new _0x31f891(_0x20a197)[_0x4085d6(0x2a2)](0.2)[_0x4085d6(0x333)](),_0x517042=new _0x897d6(Qr+_0x288a64['generateRandomId'](He),{'pointsGroup':_0x27f2fa,'fill':_0x3743f0||_0x35cbea(_0x5c79d7[_0x4085d6(0x3cb)],0.2),'left':_0x1b0479,'top':_0x4822c1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4085d6(0x40c)][_0x4085d6(0x477)](_0x517042),this[_0x4085d6(0x3e8)][_0x4085d6(0x3a3)](_0x517042,_0x17f27b);}[_0x27a911(0x1d4)](_0x9b75cd){const _0xba6b29=_0x9b75cd[0x0],_0x30a272=_0xba6b29[0x0],_0x1d31eb=_0xba6b29[0x2],{x:_0x490669,y:_0x1b73ac}=_0x30a272,{x:_0x2af2a7,y:_0x14ed29}=_0x1d31eb;return{'left':_0x490669,'top':_0x1b73ac,'width':_0x2af2a7-_0x490669,'height':_0x14ed29-_0x1b73ac};}[_0x27a911(0x4d7)](){const _0x1d9736=_0x27a911,{scaleX:_0x25e2fc,scaleY:_0x50aaae}=this[_0x1d9736(0x3e8)]['getAncestorScale']();return Math[_0x1d9736(0x29d)](_0x25e2fc,_0x50aaae);}}var no=Object[_0x27a911(0x29f)],ro=Object[_0x27a911(0x330)],oo=(_0x11cba3,_0x2f0e43,_0x27348a,_0x1389d2)=>{const _0x48a0a3=_0x27a911;for(var _0x4f9346=_0x1389d2>0x1?void 0x0:_0x1389d2?ro(_0x2f0e43,_0x27348a):_0x2f0e43,_0x16d346=_0x11cba3[_0x48a0a3(0x4d3)]-0x1,_0x4b48e4;_0x16d346>=0x0;_0x16d346--)(_0x4b48e4=_0x11cba3[_0x16d346])&&(_0x4f9346=(_0x1389d2?_0x4b48e4(_0x2f0e43,_0x27348a,_0x4f9346):_0x4b48e4(_0x4f9346))||_0x4f9346);return _0x1389d2&&_0x4f9346&&no(_0x2f0e43,_0x27348a,_0x4f9346),_0x4f9346;},Re=(_0x19c42d,_0x47e686)=>(_0x179908,_0x15874f)=>_0x47e686(_0x179908,_0x15874f,_0x19c42d);let Ge=class extends _0xe4c81a{constructor(_0x3ab39c,_0x4c61c8,_0x2cfedf,_0xf84ea1,_0x47cdde){const _0x4f99eb=_0x27a911;super(),l(this,_0x4f99eb(0x1c6),[]),(this[_0x4f99eb(0x310)]=_0x3ab39c,this[_0x4f99eb(0x339)]=_0x4c61c8,this[_0x4f99eb(0x346)]=_0x2cfedf,this[_0x4f99eb(0x221)]=_0xf84ea1,this[_0x4f99eb(0x2d9)]=_0x47cdde,this[_0x4f99eb(0x1f7)]());}[_0x27a911(0x1f7)](){const _0x57d4ac=_0x27a911;this[_0x57d4ac(0x221)]['currentSkeleton$']['pipe'](_0x1e8d86(this['dispose$']),_0xdffcb3(_0x54d981=>{const _0x322dfd=_0x57d4ac;if(_0x54d981){const _0x4f3128=_0x54d981[_0x322dfd(0x4af)]()[_0x322dfd(0x242)]()[_0x322dfd(0x2ba)]();return _0x4619fd(this[_0x322dfd(0x310)][_0x322dfd(0x4b4)](_0x4f3128),this[_0x322dfd(0x2d9)][_0x322dfd(0x1bf)])[_0x322dfd(0x1a1)](_0x3b7068(([_0x3761aa,_0x209136])=>({'skeleton':_0x54d981,'cursors':[..._0x3761aa[_0x322dfd(0x3bb)]()][_0x322dfd(0x487)](_0x55dc45=>({..._0x55dc45,'color':_0x209136[_0x55dc45['color']]}))})));}return _0x4d7b9c({'skeleton':null,'cursors':[]});}))[_0x57d4ac(0x307)](({skeleton:_0x3d2bd9,cursors:_0x4436fe})=>{this['_removeCollabCursors'](),_0x3d2bd9&&this['_updateCollabCursors'](_0x3d2bd9,_0x4436fe);});}['_updateCollabCursors'](_0x493ed7,_0x1867ce){const _0x4b7949=_0x27a911,_0x3087df=this['_getDocObject']();if(_0x3087df==null)return;const {scene:_0x270045,document:_0x53e4f4}=_0x3087df,_0x49fce4=_0x1867ce['map'](_0xde9728=>new io(_0xde9728,_0x270045,_0x493ed7,_0x53e4f4));this[_0x4b7949(0x1c6)]=_0x49fce4;}[_0x27a911(0x203)](){const _0x4dd864=_0x27a911;this[_0x4dd864(0x1c6)]['forEach'](_0x1814b3=>_0x1814b3['dispose']()),this[_0x4dd864(0x1c6)]=[];}['_getDocObject'](){const _0x4215b5=_0x27a911;return _0x2c43a1(this[_0x4215b5(0x339)],this['_renderManagerService']);}};Ge=oo([_0x5cbde1(_0x2af1fa[_0x27a911(0x3c0)],Ge),Re(0x0,_0x1f782(fe)),Re(0x1,_0x41d661),Re(0x2,_0x30f264),Re(0x3,_0x1f782(_0x3159ae)),Re(0x4,_0x1f782(_0x2fce55))],Ge);var ao=Object[_0x27a911(0x29f)],co=Object[_0x27a911(0x330)],ho=(_0x35243f,_0x5ecb15,_0x2f0510,_0xc52a14)=>{const _0xa8f39b=_0x27a911;for(var _0x3d2873=_0xc52a14>0x1?void 0x0:_0xc52a14?co(_0x5ecb15,_0x2f0510):_0x5ecb15,_0x2f4d15=_0x35243f[_0xa8f39b(0x4d3)]-0x1,_0x526b03;_0x2f4d15>=0x0;_0x2f4d15--)(_0x526b03=_0x35243f[_0x2f4d15])&&(_0x3d2873=(_0xc52a14?_0x526b03(_0x5ecb15,_0x2f0510,_0x3d2873):_0x526b03(_0x3d2873))||_0x3d2873);return _0xc52a14&&_0x3d2873&&ao(_0x5ecb15,_0x2f0510,_0x3d2873),_0x3d2873;},ut=(_0x5183b3,_0x3f41f0)=>(_0x2c2114,_0x20c837)=>_0x3f41f0(_0x2c2114,_0x20c837,_0x5183b3);let Ze=class{constructor(_0x32cd37,_0x19cdad,_0x5f1255){const _0x5da7da=_0x27a911;this['_configService']=_0x32cd37,this[_0x5da7da(0x2d7)]=_0x19cdad,this['localeService']=_0x5f1255,this[_0x5da7da(0x4a4)]();}[_0x27a911(0x4a4)](){const _0x450847=_0x27a911;this['_httpService'][_0x450847(0x444)]({'priority':0x1,'interceptor':(_0x38baef,_0x1f4be9)=>_0x1f4be9(_0x38baef)[_0x450847(0x1a1)](_0x4d232f(async _0x3de6e8=>{const _0x3452ba=_0x450847,_0x10fc1b=_0x3de6e8;if(_0x10fc1b['status']===0x191&&window[_0x3452ba(0x38f)](this[_0x3452ba(0x2df)]['t'](_0x3452ba(0x20e)))){const _0x527084=window['encodeURIComponent'](window['location']['href']);window[_0x3452ba(0x459)][_0x3452ba(0x2a4)]=this[_0x3452ba(0x302)]()+_0x3452ba(0x446)+_0x527084;}return _0x10fc1b;}))});}[_0x27a911(0x302)](){const _0x55abdf=_0x27a911;var _0x5ea680;return(_0x5ea680=this[_0x55abdf(0x37e)][_0x55abdf(0x406)](mn))!=null?_0x5ea680:gn;}};Ze=ho([ut(0x0,_0x5c69d0),ut(0x1,_0x1f782(_0x4c0c53)),ut(0x2,_0x1f782(_0x262e83))],Ze);var lo=Object[_0x27a911(0x29f)],_o=Object[_0x27a911(0x330)],uo=(_0x36f342,_0x29eed9,_0x594bd6,_0x321d56)=>{const _0x6c0c90=_0x27a911;for(var _0x4ca237=_0x321d56>0x1?void 0x0:_0x321d56?_o(_0x29eed9,_0x594bd6):_0x29eed9,_0x3a5bdf=_0x36f342[_0x6c0c90(0x4d3)]-0x1,_0x388698;_0x3a5bdf>=0x0;_0x3a5bdf--)(_0x388698=_0x36f342[_0x3a5bdf])&&(_0x4ca237=(_0x321d56?_0x388698(_0x29eed9,_0x594bd6,_0x4ca237):_0x388698(_0x4ca237))||_0x4ca237);return _0x321d56&&_0x4ca237&&lo(_0x29eed9,_0x594bd6,_0x4ca237),_0x4ca237;},ns=(_0xd3acab,_0x65893d)=>(_0x3cbb79,_0x2a4986)=>_0x65893d(_0x3cbb79,_0x2a4986,_0xd3acab);const fo='AUTHZ_URL_KEY',mo='/universer-api/authz';let Tt=class extends _0xd60028{constructor(_0x349049,_0x546b8e){const _0x1f8e39=_0x27a911;super(),this[_0x1f8e39(0x2b8)]=_0x349049,this[_0x1f8e39(0x37e)]=_0x546b8e,this['_initMergeInterceptor']();}[_0x27a911(0x2bd)](){const _0xb84cd7=_0x27a911,_0x8155d6=this;this[_0xb84cd7(0x3be)](this[_0xb84cd7(0x2b8)][_0xb84cd7(0x444)]({'priority':0x3e7,'interceptor':_0x4a8445({'isMatch'(_0x52403f){const _0x168940=_0xb84cd7;var _0x3909b4;if(_0x52403f[_0x168940(0x476)]===_0x168940(0x2ef)&&((_0x3909b4=_0x52403f[_0x168940(0x1e0)])!=null&&_0x3909b4[_0x168940(0x434)])){const {objectID:_0x39b74f,objectType:_0x2578e8}=_0x52403f[_0x168940(0x1e0)]['body']||{};if(!_0x39b74f||_0x2578e8===void 0x0)return!0x1;const _0x1f1962=_0x8155d6[_0x168940(0x3ee)]()+'/'+_0x2578e8+_0x168940(0x4a6)+_0x39b74f+_0x168940(0x407);if(_0x52403f[_0x168940(0x3ab)]===_0x1f1962)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2ac973){const _0xcb5a76=_0xb84cd7;var _0x3e97ff;return(_0x3e97ff=_0x2ac973[_0xcb5a76(0x1e0)])==null?void 0x0:_0x3e97ff[_0xcb5a76(0x434)];},'mergeParamsToRequest'(_0x1171c0,_0x3c4841){const _0x23572e=_0xb84cd7,_0x324a54=_0x8155d6['_getAPIPrefixPath']()+_0x23572e(0x3d4),_0x115c66=_0x1171c0[_0x23572e(0x200)]((_0x1eb492,_0x94dd15)=>{const _0x47eec8=_0x23572e,{unitID:_0x9038dc,objectID:_0xa03130,objectType:_0x472ddc,actions:_0x347272}=_0x94dd15;return _0x1eb492[_0x9038dc]||(_0x1eb492[_0x9038dc]={}),_0x1eb492[_0x9038dc][_0xa03130]||(_0x1eb492[_0x9038dc][_0xa03130]={'objectID':_0xa03130,'objectType':_0x472ddc,'actions':[]}),_0x1eb492[_0x9038dc][_0xa03130][_0x47eec8(0x46f)]['push'](..._0x347272),_0x1eb492;},{}),_0x5fa057=[];for(const _0x1d8bb7 in _0x115c66)for(const _0x2608de in _0x115c66[_0x1d8bb7]){const {actions:_0x754a12,objectType:_0x27fef9}=_0x115c66[_0x1d8bb7][_0x2608de],_0x27dbf4=[...new Set(_0x754a12)];_0x5fa057['push']({'unitID':_0x1d8bb7,'objectID':_0x2608de,'objectType':_0x27fef9,'actions':_0x27dbf4});}return new _0x47bc65(_0x23572e(0x2ef),_0x324a54,{'headers':_0x3c4841['headers'],'withCredentials':_0x3c4841[_0x23572e(0x48b)],'responseType':_0x3c4841[_0x23572e(0x449)],'body':{'requests':_0x5fa057}});}},{'distributeResult'(_0x2e8623,_0xa22e17){const _0xb0168c=_0xb84cd7,{objectActions:_0xb58f0f}=_0x2e8623;return _0xa22e17[_0xb0168c(0x231)](_0x3184ea=>{const _0x270f66=_0xb0168c,{unitID:_0x141925,objectID:_0x563fa8,actions:_0x30e483}=_0x3184ea,_0x2c7f9b=_0xb58f0f[_0x270f66(0x414)](_0x4a0cae=>_0x4a0cae[_0x270f66(0x3a7)]===_0x141925&&_0x4a0cae['objectID']===_0x563fa8),_0x3963ea=_0x30e483[_0x270f66(0x231)](_0x12653d=>_0x2c7f9b==null?void 0x0:_0x2c7f9b['actions'][_0x270f66(0x414)](_0x1b4c42=>_0x1b4c42[_0x270f66(0x2f3)]===_0x12653d))['filter'](_0x32925d=>!!_0x32925d);return{'config':_0x3184ea,'result':{'actions':_0x3963ea,'error':_0x2e8623[_0x270f66(0x388)]}};});}})}));}[_0x27a911(0x3ee)](){const _0x27743a=_0x27a911;var _0x3d7b0c;return(_0x3d7b0c=this['_configService'][_0x27743a(0x406)](fo))!=null?_0x3d7b0c:mo;}async[_0x27a911(0x278)](_0x4aa75d){const _0x14b2cc=_0x27a911,_0x1d471d=this[_0x14b2cc(0x3ee)]()+'/'+_0x4aa75d[_0x14b2cc(0x3c6)]+_0x14b2cc(0x343);return(await this[_0x14b2cc(0x2b8)]['post'](_0x1d471d,{'body':_0x4aa75d}))[_0x14b2cc(0x434)][_0x14b2cc(0x1d5)]||'';}async[_0x27a911(0x26b)](_0x27a102){const _0xc0cfce=_0x27a911,_0x24c17b=this[_0xc0cfce(0x3ee)]()+_0xc0cfce(0x384);return(await this['_HTTPService'][_0xc0cfce(0x472)](_0x24c17b,{'body':_0x27a102}))[_0xc0cfce(0x434)]['objects'];}async['update'](_0x11fbd7){const _0x190793=_0x27a911,_0x370bd7=this[_0x190793(0x3ee)]()+'/'+_0x11fbd7['objectType']+_0x190793(0x4a6)+_0x11fbd7[_0x190793(0x1d5)];await this[_0x190793(0x2b8)][_0x190793(0x41a)](_0x370bd7,{'body':_0x11fbd7});}async[_0x27a911(0x386)](_0x55327b){const _0x267b2d=_0x27a911,_0x28b9af=this[_0x267b2d(0x3ee)]()+'/'+_0x55327b['objectType']+'/object/'+_0x55327b['objectID']+_0x267b2d(0x407);return(await this['_HTTPService'][_0x267b2d(0x472)](_0x28b9af,{'body':_0x55327b}))[_0x267b2d(0x434)][_0x267b2d(0x46f)];}async[_0x27a911(0x301)](_0x4db18f){const _0x3f6c0a=_0x27a911,_0x59c22d=this['_getAPIPrefixPath']()+_0x3f6c0a(0x3d4);return(await this[_0x3f6c0a(0x2b8)]['post'](_0x59c22d,{'body':{'requests':_0x4db18f}}))['body'][_0x3f6c0a(0x359)];}async[_0x27a911(0x2dd)](_0x3c337c){const _0x5b0250=_0x27a911,_0x57c563=this['_getAPIPrefixPath']()+'/'+_0x3c337c[_0x5b0250(0x3c6)]+'/role',_0x4b002b=await this['_HTTPService'][_0x5b0250(0x472)](_0x57c563,{'body':_0x3c337c});return{'roles':_0x4b002b[_0x5b0250(0x434)][_0x5b0250(0x32a)],'actions':_0x4b002b[_0x5b0250(0x434)][_0x5b0250(0x46f)]};}async[_0x27a911(0x2db)](_0x11cd95){const _0x56a9df=_0x27a911,_0x52606c=this[_0x56a9df(0x3ee)]()+_0x56a9df(0x2de);await this[_0x56a9df(0x2b8)][_0x56a9df(0x21b)](_0x52606c,{'params':{'collaboratorID':_0x11cd95[_0x56a9df(0x46a)],'objectID':_0x11cd95[_0x56a9df(0x1d5)],'unitID':_0x11cd95['unitID']}});}async[_0x27a911(0x1ae)](_0xb4084d){const _0x51af36=_0x27a911,_0x1d78e9=this[_0x51af36(0x3ee)]()+'/collaborator';await this[_0x51af36(0x2b8)][_0x51af36(0x3bc)](_0x1d78e9,{'body':_0xb4084d});}async[_0x27a911(0x211)](_0xf70bb5){const _0x3d51ac=_0x27a911,_0x4ee758=this[_0x3d51ac(0x3ee)]()+_0x3d51ac(0x2de);await this[_0x3d51ac(0x2b8)][_0x3d51ac(0x472)](_0x4ee758,{'body':_0xf70bb5});}async['listCollaborators'](_0x2b97a2){const _0x2b36ea=_0x27a911,_0xb51c17=this['_getAPIPrefixPath']()+_0x2b36ea(0x2de);return(await this[_0x2b36ea(0x2b8)][_0x2b36ea(0x26f)](_0xb51c17,{'params':{'objectID':_0x2b97a2[_0x2b36ea(0x1d5)],'unitID':_0x2b97a2[_0x2b36ea(0x3a7)]}}))['body'][_0x2b36ea(0x1f8)];}async[_0x27a911(0x481)](_0x26abe4){const _0x3d8980=_0x27a911,_0x2f0603=this[_0x3d8980(0x3ee)]()+_0x3d8980(0x2de);await this[_0x3d8980(0x2b8)][_0x3d8980(0x41a)](_0x2f0603,{'body':_0x26abe4});}};Tt=uo([ns(0x0,_0x1f782(_0x4c0c53)),ns(0x1,_0x1f782(_0x5c69d0))],Tt);var go=Object['defineProperty'],So=Object[_0x27a911(0x330)],vo=(_0xdb3280,_0x4a57ab,_0x1adbe7,_0x5ef13a)=>{const _0x36f921=_0x27a911;for(var _0x2a2aad=_0x5ef13a>0x1?void 0x0:_0x5ef13a?So(_0x4a57ab,_0x1adbe7):_0x4a57ab,_0x539959=_0xdb3280[_0x36f921(0x4d3)]-0x1,_0x1b19bd;_0x539959>=0x0;_0x539959--)(_0x1b19bd=_0xdb3280[_0x539959])&&(_0x2a2aad=(_0x5ef13a?_0x1b19bd(_0x4a57ab,_0x1adbe7,_0x2a2aad):_0x1b19bd(_0x2a2aad))||_0x2a2aad);return _0x5ef13a&&_0x2a2aad&&go(_0x4a57ab,_0x1adbe7,_0x2a2aad),_0x2a2aad;},rs=(_0x346c6e,_0x117c28)=>(_0x112ae2,_0xeeedf1)=>_0x117c28(_0x112ae2,_0xeeedf1,_0x346c6e);const po=[_0x27a911(0x3b7),'image/jpeg','image/jpg',_0x27a911(0x4e0),'image/bmp'],Io=0x5*0x400*0x400,Eo=_0x27a911(0x40a),Co=_0x27a911(0x321),bo=_0x27a911(0x2d2),To='/universer-api/file/{fileID}/sign-url';let Rt=class{constructor(_0x40d5b7,_0xfca409){const _0x245cca=_0x27a911;l(this,'_waitCount',0x0),l(this,_0x245cca(0x30f),new _0x5a3e6d()),l(this,_0x245cca(0x461),this[_0x245cca(0x30f)]),l(this,_0x245cca(0x2ad),new Map()),(this[_0x245cca(0x2d7)]=_0x40d5b7,this[_0x245cca(0x37e)]=_0xfca409);}[_0x27a911(0x331)](_0x6bcb73){const _0x3f6c64=_0x27a911;this[_0x3f6c64(0x353)]=_0x6bcb73,this[_0x3f6c64(0x30f)]['next'](_0x6bcb73);}['getImageSourceCache'](_0x291362,_0x2a3227){const _0x4b9282=_0x27a911;if(_0x2a3227===_0x46b488[_0x4b9282(0x20b)]){const _0x2e78bc=new Image();return _0x2e78bc[_0x4b9282(0x395)]=_0x291362,_0x2e78bc;}return this[_0x4b9282(0x2ad)][_0x4b9282(0x26f)](_0x291362);}[_0x27a911(0x2e9)](_0x3e4e6d,_0x182d05,_0x188d62){const _0x3af03f=_0x27a911;_0x182d05===_0x46b488['BASE64']||_0x188d62==null||this['_imageSourceCache'][_0x3af03f(0x19e)](_0x3e4e6d,_0x188d62);}async[_0x27a911(0x3e4)](_0x4a1784){const _0x1155fe=_0x27a911;try{const _0x3f30bd=this[_0x1155fe(0x25d)](this[_0x1155fe(0x4cd)](),''+_0x4a1784),_0xfbbf30=(await this[_0x1155fe(0x2d7)][_0x1155fe(0x26f)](_0x3f30bd))[_0x1155fe(0x434)];return _0xfbbf30['error']&&_0xfbbf30[_0x1155fe(0x388)][_0x1155fe(0x37f)]===Rs['OK']?Promise[_0x1155fe(0x4c0)](_0xfbbf30[_0x1155fe(0x3ab)]):Promise['reject'](_0xfbbf30[_0x1155fe(0x388)]);}catch(_0x49d065){return Promise[_0x1155fe(0x34a)](_0x49d065);}}async[_0x27a911(0x305)](_0x506823){const _0x19f7bf=_0x27a911;let _0x1c54c6='';if(!po[_0x19f7bf(0x223)](_0x506823[_0x19f7bf(0x38d)]))return this[_0x19f7bf(0x1c5)](),Promise[_0x19f7bf(0x34a)](new Error(_0x41e1e4[_0x19f7bf(0x296)]));if(_0x506823['size']>Io)return this[_0x19f7bf(0x1c5)](),Promise[_0x19f7bf(0x34a)](new Error(_0x41e1e4['ERROR_EXCEED_SIZE']));try{const _0x28d671=new FormData();_0x28d671['append'](_0x19f7bf(0x38e),_0x506823);const _0xdec215=this[_0x19f7bf(0x3dd)]()+_0x19f7bf(0x314)+_0x506823[_0x19f7bf(0x1bd)][_0x19f7bf(0x3b0)](),_0x5aef6d=await(await fetch(_0xdec215,{'method':_0x19f7bf(0x2ef),'body':_0x28d671}))[_0x19f7bf(0x2c9)]();if(typeof _0x5aef6d[_0x19f7bf(0x309)]!=_0x19f7bf(0x2aa))return this[_0x19f7bf(0x1c5)](),Promise['reject'](new Error(_0x41e1e4[_0x19f7bf(0x3e2)]));_0x1c54c6=_0x5aef6d[_0x19f7bf(0x309)];}catch{return this[_0x19f7bf(0x1c5)](),Promise[_0x19f7bf(0x34a)](new Error(_0x41e1e4[_0x19f7bf(0x3e2)]));}return new Promise((_0x516871,_0x15b497)=>{const _0x3a15c6=_0x19f7bf,_0x1c072a=new FileReader();_0x1c072a['readAsDataURL'](_0x506823),_0x1c072a[_0x3a15c6(0x3ff)]=_0x4ce651=>{const _0x21d233=_0x3a15c6;var _0x22ab02;const _0x1c6791=(_0x22ab02=_0x4ce651['target'])==null?void 0x0:_0x22ab02[_0x21d233(0x482)];if(_0x1c6791==null){this[_0x21d233(0x1c5)](),_0x15b497(new Error(_0x41e1e4[_0x21d233(0x3e2)]));return;}const _0x300b33=_0x288a64[_0x21d233(0x376)](0x6);_0x516871({'imageId':_0x300b33,'imageSourceType':_0x46b488['UUID'],'source':_0x1c54c6,'base64Cache':_0x1c6791,'status':_0x41e1e4[_0x21d233(0x2a9)]}),this[_0x21d233(0x1c5)]();};});}['_getUploadFileURL'](){const _0x283756=_0x27a911;var _0x46633e;return(_0x46633e=this[_0x283756(0x37e)][_0x283756(0x406)](Eo))!=null?_0x46633e:Co;}[_0x27a911(0x4cd)](){const _0x81674d=_0x27a911;var _0x16dc54;return(_0x16dc54=this['_configService'][_0x81674d(0x406)](bo))!=null?_0x16dc54:To;}[_0x27a911(0x25d)](_0x1ddcc2,_0x2f9e4c){const _0x59b417=_0x27a911;return _0x1ddcc2[_0x59b417(0x486)](_0x59b417(0x3a5),_0x2f9e4c);}[_0x27a911(0x1c5)](){const _0x152d71=_0x27a911;this[_0x152d71(0x353)]-=0x1,this[_0x152d71(0x30f)][_0x152d71(0x24a)](this[_0x152d71(0x353)]);}};Rt=vo([rs(0x0,_0x1f782(_0x4c0c53)),rs(0x1,_0x5c69d0)],Rt);var Ro=Object[_0x27a911(0x29f)],Oo=Object[_0x27a911(0x330)],Do=(_0x2c386b,_0x1fef62,_0x48037e,_0x5c0dd9)=>{const _0x24f965=_0x27a911;for(var _0x199592=_0x5c0dd9>0x1?void 0x0:_0x5c0dd9?Oo(_0x1fef62,_0x48037e):_0x1fef62,_0x3e1a81=_0x2c386b[_0x24f965(0x4d3)]-0x1,_0x2779ce;_0x3e1a81>=0x0;_0x3e1a81--)(_0x2779ce=_0x2c386b[_0x3e1a81])&&(_0x199592=(_0x5c0dd9?_0x2779ce(_0x1fef62,_0x48037e,_0x199592):_0x2779ce(_0x199592))||_0x199592);return _0x5c0dd9&&_0x199592&&Ro(_0x1fef62,_0x48037e,_0x199592),_0x199592;},Oe=(_0x286488,_0x11820b)=>(_0x56a857,_0x361c4a)=>_0x11820b(_0x56a857,_0x361c4a,_0x286488);let Ye=class extends _0xe4c81a{constructor(_0x798859,_0x2f9fe7,_0xce5815,_0x8fb009,_0x1b456e){const _0x1522cc=_0x27a911;super(),this[_0x1522cc(0x43e)]=_0x798859,this[_0x1522cc(0x339)]=_0x2f9fe7,this[_0x1522cc(0x1cc)]=_0xce5815,this['_collaborationSessionService']=_0x8fb009,this[_0x1522cc(0x2e2)]=_0x1b456e,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x27a911(0x1f1)](){const _0xc20dcd=_0x27a911,_0x40da35=async _0x442462=>{const _0x25930d=_0x5bd0;(await this['_collaborationSessionService'][_0x25930d(0x337)](_0x442462))['event$']['pipe'](_0x22f021(_0x48c51a=>_0x48c51a['eventID']===_0xc426c8['SHOULD_CLOSE_CONN']),_0x1e8d86(this[_0x25930d(0x1b0)]))[_0x25930d(0x307)](_0x3b34af=>{const _0x49b7f1=_0x25930d,_0x4c31a7=_0x3b34af,{reason:_0x3e64fa}=_0x4c31a7[_0x49b7f1(0x1a7)];this['_injector'][_0x49b7f1(0x26f)](_0x3bfc5b)['show']({'type':_0x471b9b[_0x49b7f1(0x3f0)],'content':this[_0x49b7f1(0x2e2)]['t']('collaboration.closeRoom')+'('+_0x3e64fa+')'}),this[_0x49b7f1(0x1cc)][_0x49b7f1(0x1a6)](new _0x3665b6(_0x442462)['id'],!0x1),this[_0x49b7f1(0x246)]['closeSession'](_0x442462);});};_0xe2f998(this[_0xc20dcd(0x339)][_0xc20dcd(0x46c)](_0x13af1a[_0xc20dcd(0x3c2)]),this[_0xc20dcd(0x339)]['getTypeOfUnitAdded$'](_0x13af1a['UNIVER_DOC']))['pipe'](_0x3b7068(_0x2524fe=>_0x2524fe[_0xc20dcd(0x2ba)]()),_0x22f021(_0x5314ee=>!_0x154483(_0x5314ee)),_0x1e8d86(this[_0xc20dcd(0x1b0)]))[_0xc20dcd(0x307)](_0x10b611=>{_0x40da35(_0x10b611);});}[_0x27a911(0x2e3)](){const _0x4ae5e4=_0x27a911,_0x11b974=async _0x3a19d7=>{const _0x24aeb7=_0x5bd0;(await this[_0x24aeb7(0x246)][_0x24aeb7(0x337)](_0x3a19d7))[_0x24aeb7(0x28f)][_0x24aeb7(0x1a1)](_0x22f021(_0x592698=>_0x592698[_0x24aeb7(0x35d)]===_0xc426c8['UPDATE_PERMISSION_OBJ']),_0x1e8d86(this[_0x24aeb7(0x1b0)]))[_0x24aeb7(0x307)](_0x2f749a=>{const _0x4a3486=_0x24aeb7,_0x3cf721=_0x2f749a,{objectId:_0x3a1b7d}=_0x3cf721['data'];_0x3a1b7d===_0x3a19d7&&this[_0x4a3486(0x43e)][_0x4a3486(0x26f)](_0x1f4804)[_0x4a3486(0x275)](_0x3a19d7);});};_0xe2f998(this[_0x4ae5e4(0x339)][_0x4ae5e4(0x46c)](_0x13af1a[_0x4ae5e4(0x3c2)]),this['_univerInstanceService'][_0x4ae5e4(0x46c)](_0x13af1a['UNIVER_DOC']))[_0x4ae5e4(0x1a1)](_0x3b7068(_0x2ebc61=>_0x2ebc61['getUnitId']()),_0x22f021(_0x1025b3=>!_0x154483(_0x1025b3)),_0x1e8d86(this[_0x4ae5e4(0x1b0)]))[_0x4ae5e4(0x307)](_0x5c9239=>{_0x11b974(_0x5c9239);});}};Ye=Do([_0x5cbde1(_0x2af1fa['Starting'],Ye),Oe(0x0,_0x1f782(_0x55b67e)),Oe(0x1,_0x41d661),Oe(0x2,_0x1a3671),Oe(0x3,_0x1f782(ge)),Oe(0x4,_0x1f782(_0x262e83))],Ye);var $s=Object[_0x27a911(0x29f)],Po=Object[_0x27a911(0x330)],wo=(_0x41d33a,_0x151670,_0xf86196)=>_0x151670 in _0x41d33a?$s(_0x41d33a,_0x151670,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf86196}):_0x41d33a[_0x151670]=_0xf86196,No=(_0x53caa2,_0x515ffb,_0x52b0d6,_0x30ceec)=>{for(var _0x183d13=_0x30ceec>0x1?void 0x0:_0x30ceec?Po(_0x515ffb,_0x52b0d6):_0x515ffb,_0x3b2e75=_0x53caa2['length']-0x1,_0x302325;_0x3b2e75>=0x0;_0x3b2e75--)(_0x302325=_0x53caa2[_0x3b2e75])&&(_0x183d13=(_0x30ceec?_0x302325(_0x515ffb,_0x52b0d6,_0x183d13):_0x302325(_0x183d13))||_0x183d13);return _0x30ceec&&_0x183d13&&$s(_0x515ffb,_0x52b0d6,_0x183d13),_0x183d13;},os=(_0x1d4f26,_0x1c1236)=>(_0x8564af,_0x207f67)=>_0x1c1236(_0x8564af,_0x207f67,_0x1d4f26),Mo=(_0x4c729a,_0x523a75,_0x441abc)=>wo(_0x4c729a,_0x523a75+'',_0x441abc);const Ao=_0x27a911(0x4be);let Ot=class extends _0x3a2e62{constructor(_0x233109,_0x3697f0,_0x195afc){super(),this['_config']=_0x233109,this['_logService']=_0x3697f0,this['_injector']=_0x195afc;}['onStarting'](_0x44a076){const _0x11e93d=_0x27a911;var _0x3d087b,_0x498bf4,_0xac620c,_0x19c755,_0x548968;_0x44a076[_0x11e93d(0x496)](_0x761a41)&&this[_0x11e93d(0x304)][_0x11e93d(0x388)](_0x11e93d(0x1c8),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x21f33b=[[_0x761a41,{'useClass':bt}],[ge],[Lt],[_0x4c0c53],[Ls,{'useClass':Zr}],[ne],[D],[_0x370db5],[qe],[Je],[Xe],[Ut],[Ze],[Ds],[Ye],[Os,{'useClass':(_0x498bf4=(_0x3d087b=this[_0x11e93d(0x4a7)])==null?void 0x0:_0x3d087b[_0x11e93d(0x25c)])!=null?_0x498bf4:gt}],[_0x16c1ea,{'useClass':_0x169803}],[_0x3aa0af,{'useClass':Ct}],[_0x534d8a,{'useClass':Tt}],[_0x37b1ff,{'useClass':Rt}],[De],[Be],[ke],[We],[fe]];(_0xac620c=this[_0x11e93d(0x4a7)])!=null&&_0xac620c[_0x11e93d(0x35c)]&&_0x21f33b['push']([et,{'useClass':An}]),((_0x19c755=this['_config'])==null?void 0x0:_0x19c755[_0x11e93d(0x375)])==null||this['_config']['collaborationUniverTypes'][_0x11e93d(0x223)](_0x13af1a[_0x11e93d(0x3c2)])?_0x21f33b[_0x11e93d(0x477)]([Ve]):this['_config']['collaborationUniverTypes'][_0x11e93d(0x223)](_0x13af1a['UNIVER_DOC'])&&_0x21f33b['push']([Ge]),_0x21f33b=_0x11950c(_0x21f33b,(_0x548968=this[_0x11e93d(0x4a7)])==null?void 0x0:_0x548968[_0x11e93d(0x23f)]),_0x21f33b[_0x11e93d(0x4a1)](_0x4a526e=>_0x44a076['add'](_0x4a526e)),_0x44a076[_0x11e93d(0x26f)](_0x4c0c53)[_0x11e93d(0x444)]({'priority':0x14,'interceptor':_0x4106bc({'maxParallel':0x6})}),this[_0x11e93d(0x1af)]();}['_initModules'](){const _0x3d3f8b=_0x27a911;var _0x385037,_0x1aa483;(_0x385037=this[_0x3d3f8b(0x4a7)])!=null&&_0x385037[_0x3d3f8b(0x381)]||this[_0x3d3f8b(0x43e)][_0x3d3f8b(0x26f)](D)[_0x3d3f8b(0x3e5)](),(_0x1aa483=this[_0x3d3f8b(0x4a7)])!=null&&_0x1aa483['enableAuthServer']&&this[_0x3d3f8b(0x43e)]['get'](Ze);}};Mo(Ot,_0x27a911(0x471),Ao),Ot=No([_0x33d520(_0x4cecce),os(0x1,_0x5e4d90),os(0x2,_0x1f782(_0x55b67e))],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};