@univerjs-pro/collaboration-client-ui 1.0.2 → 1.0.3

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 (93) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.css +37 -0
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +32 -0
  66. package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +21 -0
  67. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +35 -0
  68. package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +21 -0
  69. package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +38 -0
  70. package/lib/types/services/formula-calculation-guard/util.d.ts +11 -0
  71. package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +15 -0
  72. package/lib/umd/facade.js +1 -1
  73. package/lib/umd/index.js +1 -1
  74. package/lib/umd/locale/ar-SA.js +1 -1
  75. package/lib/umd/locale/ca-ES.js +1 -1
  76. package/lib/umd/locale/de-DE.js +1 -1
  77. package/lib/umd/locale/en-US.js +1 -1
  78. package/lib/umd/locale/es-ES.js +1 -1
  79. package/lib/umd/locale/fa-IR.js +1 -1
  80. package/lib/umd/locale/fr-FR.js +1 -1
  81. package/lib/umd/locale/id-ID.js +1 -1
  82. package/lib/umd/locale/it-IT.js +1 -1
  83. package/lib/umd/locale/ja-JP.js +1 -1
  84. package/lib/umd/locale/ko-KR.js +1 -1
  85. package/lib/umd/locale/pl-PL.js +1 -1
  86. package/lib/umd/locale/pt-BR.js +1 -1
  87. package/lib/umd/locale/ru-RU.js +1 -1
  88. package/lib/umd/locale/sk-SK.js +1 -1
  89. package/lib/umd/locale/vi-VN.js +1 -1
  90. package/lib/umd/locale/zh-CN.js +1 -1
  91. package/lib/umd/locale/zh-HK.js +1 -1
  92. package/lib/umd/locale/zh-TW.js +1 -1
  93. package/package.json +17 -17
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x247c5a=_0x2e9b;(function(_0x5ac71f,_0x4cc541){const _0x3a3105=_0x2e9b,_0x1ae49c=_0x5ac71f();while(!![]){try{const _0x5da43f=-parseInt(_0x3a3105(0x1ec))/0x1*(parseInt(_0x3a3105(0x20c))/0x2)+parseInt(_0x3a3105(0x1d3))/0x3*(parseInt(_0x3a3105(0x3d6))/0x4)+parseInt(_0x3a3105(0x2fb))/0x5+-parseInt(_0x3a3105(0x2b6))/0x6+parseInt(_0x3a3105(0x3ba))/0x7*(-parseInt(_0x3a3105(0x33c))/0x8)+parseInt(_0x3a3105(0x332))/0x9+parseInt(_0x3a3105(0x1b9))/0xa*(parseInt(_0x3a3105(0x1d2))/0xb);if(_0x5da43f===_0x4cc541)break;else _0x1ae49c['push'](_0x1ae49c['shift']());}catch(_0x120bb2){_0x1ae49c['push'](_0x1ae49c['shift']());}}}(_0x29c9,0x2065c));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xc7ece1,CollaborationController as _0x501041,CollaborationSessionService as _0xed7c81,CollaborationSocketService as _0x25c99b,CollaborationStatus as _0x5c157a,CollaborationUIEventId as _0x2b0b3d,CollaborationUIEventService as _0x1327e3,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x41c70c,DEFAULT_WS_SESSION_TICKET_URL as _0x3a4d7e,DataLoaderService as _0x51e8bf,DocCollaborationEntity as _0x4a9a22,ILocalCacheService as _0x1974ac,LOCAL_CACHE_INTERVAL as _0x56be35,LOCAL_CACHE_INTERVAL_KEY as _0x39f139,MemberService as _0x405f4a,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1db53f,SessionStatus as _0x511a18,UnitStatus as _0x258828,UniverCollaborationClientPlugin as _0x1116a6,getLocalCacheKey as _0x98c216}from'@univerjs-pro/collaboration-client';import{COLORS as _0xf528d4,ColorKit as _0x2ac9a9,CommandType as _0x54dfe6,DOC_RANGE_TYPE as _0x26a332,DependentOn as _0x3e9939,Disposable as _0x50ca1f,DisposableCollection as _0x469794,ICommandService as _0x3fa174,IConfigService as _0xdca818,IImageIoService as _0x173c5c,ILocalStorageService as _0x24200d,ILogService as _0x583b3f,IUniverInstanceService as _0x3fd3c3,Inject as _0x3b8ccc,Injector as _0x5c9bca,LocaleService as _0x5a18da,Plugin as _0x50441f,Rectangle as _0x12eda0,RxDisposable as _0x3318cc,ThemeService as _0xbb7758,Tools as _0x55db4d,UniverInstanceType as _0x98e284,Workbook as _0x16e1e6,createIdentifier as _0x44855e,debounce as _0x5bd974,fromEventSubject as _0x56e033,generateRandomId as _0x4a2001,isInternalEditorID as _0x543c0f,merge as _0x1ee81d,mergeOverrideWithDependencies as _0x47a538,registerDependencies as _0x3b0029,toDisposable as _0x265f18,touchDependencies as _0x327d6b}from'@univerjs/core';import{BuiltInUIPart as _0x4fb6b8,IBeforeCloseService as _0x1b0f9c,IMessageService as _0x4a0381,INotificationService as _0x502777,IUIPartsService as _0x4bd601,IUnitPresenceUIAdapterRegistry as _0x5a5714,connectInjector as _0x107421,useDependency as _0x28e5e2,useObservable as _0x47ef38}from'@univerjs/ui';import{BehaviorSubject as _0x24b100,Subject as _0x5896e4,combineLatest as _0x3e4240,debounceTime as _0x166d03,distinctUntilChanged as _0xc32d41,filter as _0x48c179,fromEvent as _0x1412e7,mapTo as _0x13e54e,merge as _0x424375,of as _0x2a2751,shareReplay as _0x28413a,switchMap as _0x34977b,takeUntil as _0x3fa56b,throttle as _0x14b9f0,timer as _0x22ec2d}from'rxjs';import{distinctUntilChanged as _0x5403c2,filter as _0x240473,map as _0x328767,switchMap as _0x51e718,takeUntil as _0x1a5f96,throttleTime as _0x596cdc}from'rxjs/operators';import{Button as _0x58172d,MessageType as _0x2f977e,Tooltip as _0x4a1448,clsx as _0x4a14d0}from'@univerjs/design';import{LoadingMultiIcon as _0x169f56,OffLineIcon as _0x49cce6,OnLineIcon as _0x57556d,WarningIcon as _0x14cc8f}from'@univerjs/icons';import{createElement as _0x30be06,useCallback as _0x6c1b82,useMemo as _0x540e69}from'react';import{jsx as _0x5b3a46,jsxs as _0x10ab35}from'react/jsx-runtime';import{CollaborationEvent as _0x6181db,ISnapshotServerService as _0x3b6c27,ITransformService as _0x2ebb05,RevisionService as _0x49db3a,SnapshotLoadStage as _0x338f29,SnapshotLoadingService as _0x1a827f,UniverCollaborationPlugin as _0x1724e3,isTransformMutationFailure as _0x2be4e3,isTransformMutationsWithChangesetSuccess as _0x10ddcf}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x3df221}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x16bdd0,DocSkeletonManagerService as _0x585056,DocStateChangeManagerService as _0x56aa2a,RichTextEditingMutation as _0x759f54,SetTextSelectionsOperation as _0x4e121a,UniverDocsPlugin as _0x2f83a4}from'@univerjs/docs';import{DocIMEInputManagerService as _0x5beedc,IDocClipboardService as _0x3088c8,NodePositionConvertToCursor as _0x36c330,NodePositionConvertToRectRange as _0x1095f0,SetDocZoomRatioOperation as _0x4186fd,TEXT_RANGE_LAYER_INDEX as _0x7badc3,UniverDocsUIPlugin as _0x74c715}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x52e84a,IRenderManagerService as _0x34d5fc,Rect as _0x52bc18,RegularPolygon as _0x31acbf,SHEET_VIEWPORT_KEY as _0x4bb69c,Shape as _0x522a01,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3f0e13,UniverRenderEnginePlugin as _0x5161e3,Vector2 as _0x3adc07,getColor as _0x2949e8,getDocumentSkeletonColumnPagePathInfo as _0x336b78}from'@univerjs/engine-render';import{HTTPService as _0x47169a,ISocketService as _0x4b4083,UniverNetworkPlugin as _0x3bb077,WebSocketService as _0x3c7443}from'@univerjs/network';import{deserializeRangeWithSheet as _0x264f50,serializeRangeWithSheet as _0x1e4d3b}from'@univerjs/engine-formula';import{EffectRefRangId as _0x4934af,RefRangeService as _0x4485d1,SetSelectionsOperation as _0x21c51f,SetWorksheetActivateCommand as _0x211d66,SheetsSelectionsService as _0x157274,handleDeleteRangeMoveLeft as _0x48fd4e,handleDeleteRangeMoveUp as _0x378cdc,handleIRemoveCol as _0x4f79ac,handleIRemoveRow as _0x3f2774,handleInsertCol as _0xff97dd,handleInsertRangeMoveDown as _0x5cf38c,handleInsertRangeMoveRight as _0x5239d4,handleInsertRow as _0x447949,handleMoveRange as _0x3a5cbb,runRefRangeMutations as _0x25ff6b}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0xfb8c7d,getCoordByCell as _0x3bf5c4,getSheetObject as _0x12b1af}from'@univerjs/sheets-ui';import{ErrorCode as _0x530575}from'@univerjs/protocol';function rn(_0x18854f){const _0x230362=_0x2e9b;switch(_0x18854f){case _0x5c157a[_0x230362(0x315)]:return{'icon':_0x5b3a46(_0x49cce6,{}),'colorClass':_0x230362(0x2ce),'i18nKey':_0x230362(0x23d),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x230362(0x2b8)};case _0x5c157a[_0x230362(0x1b0)]:return{'icon':_0x5b3a46(_0x49cce6,{}),'colorClass':_0x230362(0x3c8),'i18nKey':_0x230362(0x39b),'clickable':!0x1,'indicator':_0x230362(0x2b8)};case _0x5c157a['FETCH_MISS']:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':_0x230362(0x264),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x288)]:return{'icon':_0x5b3a46(_0x57556d,{}),'colorClass':_0x230362(0x2dd),'i18nKey':_0x230362(0x1d6),'clickable':!0x1,'indicator':'static'};case _0x5c157a[_0x230362(0x2a6)]:case _0x5c157a['AWAITING_WITH_PENDING']:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':_0x230362(0x264),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x1f2)]:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x230362(0x225),'clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x35d)]:return{'icon':_0x5b3a46(_0x57556d,{}),'colorClass':'univer-text-green-500','i18nKey':_0x230362(0x403),'clickable':!0x1,'indicator':_0x230362(0x2b8)};}}function an(_0x4027f4){const _0x4a4509=_0x2e9b;let {status$:_0x5f12c6}=_0x4027f4,_0x1cc1d7=_0x47ef38(_0x5f12c6,_0x5c157a['NOT_COLLAB']),_0x1b2efc=_0x28e5e2(_0x5a18da),_0x482770=_0x28e5e2(_0xed7c81),_0x2fa76d=_0x540e69(()=>rn(_0x1cc1d7),[_0x1cc1d7]),_0x3ada52=_0x1cc1d7!==_0x5c157a['OFFLINE'],_0x2dd196=_0x1b2efc['t'](_0x2fa76d['i18nKey']),_0x377037=_0x2fa76d['tooltipKey']?_0x1b2efc['t'](_0x2fa76d[_0x4a4509(0x1b1)]):_0x2dd196,_0x51651b=_0x6c1b82(()=>{const _0x31cab4=_0x4a4509;_0x3ada52||_0x482770[_0x31cab4(0x22e)]();},[_0x3ada52,_0x482770]),_0x4e0250=_0x6c1b82(_0x144d1a=>{const _0x25b03f=_0x4a4509;!_0x3ada52&&(_0x144d1a[_0x25b03f(0x2f6)]===_0x25b03f(0x21d)||_0x144d1a[_0x25b03f(0x2f6)]==='\x20')&&(_0x144d1a['preventDefault'](),_0x482770[_0x25b03f(0x22e)]());},[_0x3ada52,_0x482770]),_0x14d84c=_0x5b3a46(_0x4a4509(0x1bd),{'className':_0x4a14d0(_0x4a4509(0x1e5),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x2fa76d[_0x4a4509(0x2f9)],{'univer-animate-spin':_0x2fa76d[_0x4a4509(0x221)]===_0x4a4509(0x366),'univer-animate-pulse':_0x2fa76d[_0x4a4509(0x221)]===_0x4a4509(0x40a)}),'aria-hidden':_0x4a4509(0x285),'children':_0x2fa76d[_0x4a4509(0x2ad)]}),_0x18039e=_0x5b3a46(_0x4a4509(0x1bd),{'className':_0x4a14d0('univer-flex\x20univer-items-center\x20univer-justify-center',_0x4a4509(0x2ec),_0x4a4509(0x2d7),_0x4a4509(0x31d),_0x4a4509(0x3b9),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x2fa76d[_0x4a4509(0x270)],'univer-cursor-default':!_0x2fa76d['clickable']}),'children':_0x14d84c});return _0x2fa76d[_0x4a4509(0x270)]?_0x5b3a46(_0x4a1448,{'title':_0x377037,'placement':_0x4a4509(0x381),'children':_0x5b3a46('button',{'type':'button','onClick':_0x51651b,'onKeyDown':_0x4e0250,'className':_0x4a14d0(_0x4a4509(0x38a),_0x4a4509(0x2bd),_0x4a4509(0x1ae),'univer-appearance-none'),'aria-label':_0x2dd196+_0x4a4509(0x2a7)+_0x377037,'role':_0x4a4509(0x1bf),'aria-live':_0x4a4509(0x1bc),'aria-atomic':'true','children':_0x18039e})}):_0x5b3a46(_0x4a1448,{'title':_0x377037,'placement':'bottom','children':_0x5b3a46(_0x4a4509(0x202),{'className':_0x4a14d0('univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-border-none\x20univer-bg-transparent',_0x4a4509(0x1ae)),'aria-label':_0x2dd196,'role':'status','aria-live':'polite','aria-atomic':_0x4a4509(0x285),'children':_0x18039e})});}function W(_0x1ab00b){'@babel/helpers - typeof';const _0xd006ab=_0x2e9b;return W=typeof Symbol==_0xd006ab(0x3cc)&&typeof Symbol['iterator']==_0xd006ab(0x1e8)?function(_0x32f72c){return typeof _0x32f72c;}:function(_0x74068a){const _0x331131=_0xd006ab;return _0x74068a&&typeof Symbol==_0x331131(0x3cc)&&_0x74068a[_0x331131(0x299)]===Symbol&&_0x74068a!==Symbol[_0x331131(0x260)]?_0x331131(0x1e8):typeof _0x74068a;},W(_0x1ab00b);}function on(_0x146b02,_0x37e985){const _0x208f9f=_0x2e9b;if(W(_0x146b02)!=_0x208f9f(0x300)||!_0x146b02)return _0x146b02;var _0x1c5760=_0x146b02[Symbol['toPrimitive']];if(_0x1c5760!==void 0x0){var _0x2212ac=_0x1c5760[_0x208f9f(0x331)](_0x146b02,_0x37e985||_0x208f9f(0x362));if(W(_0x2212ac)!='object')return _0x2212ac;throw TypeError(_0x208f9f(0x290));}return(_0x37e985==='string'?String:Number)(_0x146b02);}function sn(_0x31c5a7){var _0x5188de=on(_0x31c5a7,'string');return W(_0x5188de)=='symbol'?_0x5188de:_0x5188de+'';}function G(_0x1e31a2,_0x3c0390,_0x1d63a8){const _0x19c6a5=_0x2e9b;return(_0x3c0390=sn(_0x3c0390))in _0x1e31a2?Object[_0x19c6a5(0x1fb)](_0x1e31a2,_0x3c0390,{'value':_0x1d63a8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1e31a2[_0x3c0390]=_0x1d63a8,_0x1e31a2;}function K(_0x5eeaef,_0x54d1e9){return function(_0x5cd856,_0x3995fd){_0x54d1e9(_0x5cd856,_0x3995fd,_0x5eeaef);};}function q(_0x358a09,_0x2422a7,_0x1e0f79,_0x351ff4){const _0x2cbdc7=_0x2e9b;var _0x1c8c2d=arguments['length'],_0x4dc4d6=_0x1c8c2d<0x3?_0x2422a7:_0x351ff4===null?_0x351ff4=Object[_0x2cbdc7(0x334)](_0x2422a7,_0x1e0f79):_0x351ff4,_0x29708e;if(typeof Reflect==_0x2cbdc7(0x300)&&typeof Reflect[_0x2cbdc7(0x1b3)]==_0x2cbdc7(0x3cc))_0x4dc4d6=Reflect[_0x2cbdc7(0x1b3)](_0x358a09,_0x2422a7,_0x1e0f79,_0x351ff4);else{for(var _0x372b42=_0x358a09[_0x2cbdc7(0x23e)]-0x1;_0x372b42>=0x0;_0x372b42--)(_0x29708e=_0x358a09[_0x372b42])&&(_0x4dc4d6=(_0x1c8c2d<0x3?_0x29708e(_0x4dc4d6):_0x1c8c2d>0x3?_0x29708e(_0x2422a7,_0x1e0f79,_0x4dc4d6):_0x29708e(_0x2422a7,_0x1e0f79))||_0x4dc4d6);}return _0x1c8c2d>0x3&&_0x4dc4d6&&Object[_0x2cbdc7(0x1fb)](_0x2422a7,_0x1e0f79,_0x4dc4d6),_0x4dc4d6;}let J=class extends _0x50ca1f{constructor(_0x29ae91,_0x5cfda4,_0x417e42,_0x5d59c5,_0x1ab7ae){const _0x380625=_0x2e9b;super(),this[_0x380625(0x390)]=_0x29ae91,this[_0x380625(0x325)]=_0x5cfda4,this[_0x380625(0x2cd)]=_0x417e42,this[_0x380625(0x3fe)]=_0x5d59c5,this['_presenceAdapterRegistry']=_0x1ab7ae,G(this,_0x380625(0x227),new _0x24b100(_0x5c157a[_0x380625(0x288)])),G(this,'_presenceStatusRegistrations',new Map()),this[_0x380625(0x392)](),this['_initStatusListener'](),this['_initPresenceStatusComponents']();}[_0x247c5a(0x204)](){const _0xcdb968=_0x247c5a;this[_0xcdb968(0x2bb)]['forEach'](_0x15f778=>_0x15f778['dispose']()),this['_presenceStatusRegistrations']['clear'](),this[_0xcdb968(0x227)]['complete'](),super[_0xcdb968(0x204)]();}[_0x247c5a(0x2ee)](){const _0x516566=_0x247c5a;this[_0x516566(0x3a7)](_0x424375(this[_0x516566(0x390)][_0x516566(0x40e)],this[_0x516566(0x390)][_0x516566(0x271)](_0x98e284[_0x516566(0x3b2)]),this['_univerInstanceService'][_0x516566(0x271)](_0x98e284[_0x516566(0x3bd)]))[_0x516566(0x2cc)](_0x328767(()=>cn(this['_univerInstanceService'])),_0x5403c2(),_0x34977b(_0x1bfd08=>_0x1bfd08?this[_0x516566(0x2cd)][_0x516566(0x224)](_0x1bfd08):_0x2a2751(null)),_0x34977b(_0x128ed1=>_0x128ed1?_0x128ed1['status$']:_0x2a2751(_0x5c157a[_0x516566(0x288)])))['subscribe'](_0x30a361=>{const _0x90e5e=_0x516566;this['_status$'][_0x90e5e(0x1c0)](_0x30a361);}));}[_0x247c5a(0x392)](){const _0xb0b112=_0x247c5a;this['disposeWithMe'](this[_0xb0b112(0x3fe)]['registerComponent'](_0x4fb6b8['HEADER_MENU'],()=>_0x107421(ln({'status$':this[_0xb0b112(0x227)]['asObservable']()}),this[_0xb0b112(0x325)])));}[_0x247c5a(0x347)](){const _0x2d9a41=_0x247c5a;let _0x2479c0=this['_presenceAdapterRegistry']['adapters$'][_0x2d9a41(0x2d5)](_0x2e7165=>{const _0x2502e0=_0x2d9a41;this[_0x2502e0(0x1dc)](_0x2e7165);});this[_0x2d9a41(0x3a7)](_0x265f18(()=>_0x2479c0[_0x2d9a41(0x1f6)]()));}[_0x247c5a(0x1dc)](_0x3cbf73){const _0x1eb840=_0x247c5a;let _0x1f6156=new Map(_0x3cbf73['filter'](_0x1a90a7=>_0x1a90a7[_0x1eb840(0x1ff)]!=null)[_0x1eb840(0x1f3)](_0x6de11f=>[_0x6de11f[_0x1eb840(0x2a1)],_0x6de11f]));this[_0x1eb840(0x2bb)]['forEach']((_0x22c0f8,_0x4664fe)=>{const _0x3f4277=_0x1eb840;_0x1f6156[_0x3f4277(0x2ed)](_0x4664fe)||(_0x22c0f8[_0x3f4277(0x204)](),this[_0x3f4277(0x2bb)][_0x3f4277(0x2ea)](_0x4664fe));}),_0x1f6156['forEach']((_0x45d443,_0x4bdb25)=>{const _0x55700e=_0x1eb840;this[_0x55700e(0x2bb)][_0x55700e(0x2ed)](_0x4bdb25)||this[_0x55700e(0x320)](_0x45d443);});}[_0x247c5a(0x320)](_0x1c54a9){const _0x45cbea=_0x247c5a;let _0x1bf75f=_0x1c54a9[_0x45cbea(0x1ff)];if(!_0x1bf75f)return;let _0x1a385a=new _0x469794(),_0x55fc10=new _0x24b100(_0x5c157a[_0x45cbea(0x288)]);_0x1a385a[_0x45cbea(0x23b)](_0x265f18(()=>_0x55fc10['complete']())),_0x1a385a[_0x45cbea(0x23b)](this[_0x45cbea(0x3fe)]['registerComponent'](_0x1bf75f,()=>_0x107421(ln({'status$':_0x55fc10[_0x45cbea(0x3d8)]()}),this[_0x45cbea(0x325)])));let _0xb3c88b=this[_0x45cbea(0x390)]['getCurrentTypeOfUnit$'](_0x1c54a9[_0x45cbea(0x2a1)])[_0x45cbea(0x2cc)](_0x328767(_0x485d6a=>(_0x485d6a==null?void 0x0:_0x485d6a[_0x45cbea(0x308)]())??null),_0x5403c2(),_0x34977b(_0x326ad3=>_0x326ad3?this[_0x45cbea(0x2cd)][_0x45cbea(0x224)](_0x326ad3):_0x2a2751(null)),_0x34977b(_0x156046=>(_0x156046==null?void 0x0:_0x156046['status$'])??_0x2a2751(_0x5c157a['NOT_COLLAB'])))[_0x45cbea(0x2d5)](_0x4fae01=>_0x55fc10['next'](_0x4fae01));_0x1a385a[_0x45cbea(0x23b)](_0x265f18(()=>_0xb3c88b[_0x45cbea(0x1f6)]())),this['_presenceStatusRegistrations']['set'](_0x1c54a9[_0x45cbea(0x2a1)],_0x1a385a);}};J=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0x501041)),K(0x3,_0x4bd601),K(0x4,_0x3b8ccc(_0x5a5714))],J);function cn(_0x38b39d){const _0x35a0dc=_0x247c5a;let _0x3258ce=_0x38b39d['getFocusedUnit'](),_0x2da903=_0x3258ce==null?void 0x0:_0x3258ce[_0x35a0dc(0x308)]();if(_0x2da903&&!_0x543c0f(_0x2da903))return _0x2da903;let _0x4da35b=_0x38b39d['getCurrentUnitOfType'](_0x98e284[_0x35a0dc(0x3b2)]),_0xd56070=_0x4da35b==null?void 0x0:_0x4da35b[_0x35a0dc(0x308)]();if(_0xd56070&&!_0x543c0f(_0xd56070))return _0xd56070;let _0xbd7e69=_0x38b39d['getCurrentUnitOfType'](_0x98e284[_0x35a0dc(0x3bd)]);if(_0xbd7e69)return _0xbd7e69[_0x35a0dc(0x308)]();let _0xf5018e=_0x38b39d[_0x35a0dc(0x250)](_0x98e284[_0x35a0dc(0x3b2)])[_0x35a0dc(0x310)](_0x1859d5=>!_0x543c0f(_0x1859d5[_0x35a0dc(0x308)]()));return _0xf5018e?_0xf5018e['getUnitId']():null;}function ln(_0x1e6c59){let {status$:_0x28526b}=_0x1e6c59;return function(){return _0x5b3a46(an,{'status$':_0x28526b});};}var un=_0x247c5a(0x342),dn=_0x247c5a(0x27b);const Y={'id':_0x247c5a(0x2d6),'type':_0x54dfe6[_0x247c5a(0x28a)],'handler':(_0x246684,_0x3c9a58)=>{const _0x5288fe=_0x247c5a;let _0x4968eb=_0x246684[_0x5288fe(0x211)](_0x5a5714)['get'](_0x3c9a58[_0x5288fe(0x2a1)]);if(!_0x4968eb)return!0x1;switch(_0x3c9a58[_0x5288fe(0x3fa)]['type']){case _0x5288fe(0x21f):return _0x4968eb[_0x5288fe(0x3f8)](_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x394)]),!0x0;case'remove':return _0x4968eb[_0x5288fe(0x1df)](_0x3c9a58[_0x5288fe(0x3fa)]['unitId'],_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x28d)]),!0x0;case'clear':return _0x4968eb['clearRemotePresences'](_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x399)]),!0x0;default:return!0x1;}}},fn={};let X=class extends _0x3318cc{constructor(_0x2108c4,_0x156fed){const _0x1113d4=_0x247c5a;super(),this[_0x1113d4(0x203)]=_0x2108c4,this['_imageIoService']=_0x156fed,this[_0x1113d4(0x302)]();}['_init'](){const _0x81963e=_0x247c5a;let _0x6ba2=this;this['disposeWithMe'](this['_docClipboardService'][_0x81963e(0x335)]({'onBeforePasteImage':async _0x54935d=>{const _0x53621a=_0x81963e;let _0x16716e=await _0x6ba2[_0x53621a(0x385)][_0x53621a(0x2d0)](_0x54935d);return _0x16716e?{'source':_0x16716e[_0x53621a(0x3aa)],'imageSourceType':_0x16716e[_0x53621a(0x2c4)]}:null;}}));}};X=q([K(0x0,_0x3088c8),K(0x1,_0x173c5c)],X);const pn=['purple.300','jiqing.500','green.600',_0x247c5a(0x380),_0x247c5a(0x28c),_0x247c5a(0x30e)];var mn=class extends _0x50ca1f{constructor(..._0x5c5e2f){const _0xce57a0=_0x247c5a;super(..._0x5c5e2f),G(this,_0xce57a0(0x350),new Map()),G(this,'_colorIndex',0x0);}[_0x247c5a(0x1d4)](_0x20c7d6){const _0x708835=_0x247c5a;if(this[_0x708835(0x350)][_0x708835(0x2ed)](_0x20c7d6))return this[_0x708835(0x350)][_0x708835(0x211)](_0x20c7d6);let _0x13acdd=pn[this[_0x708835(0x243)]];return this[_0x708835(0x243)]=(this[_0x708835(0x243)]+0x1)%pn['length'],this[_0x708835(0x350)]['set'](_0x20c7d6,_0x13acdd),_0x13acdd;}};function hn(_0x144092){const _0x4ec872=_0x247c5a;let _0x408dce='';for(let _0x447492 of _0x144092){let {startOffset:_0x2daa4a,endOffset:_0x5e6df5,isActive:_0x27d49f,rangeType:_0x3e4524,segmentId:_0x11c205,segmentPage:_0x1d0a57}=_0x447492;_0x408dce[_0x4ec872(0x23e)]&&(_0x408dce+=','),_0x408dce+=_0x2daa4a+':'+_0x5e6df5+':'+(_0x27d49f?'1':'0')+':'+_0x3e4524+':'+_0x11c205+':'+_0x1d0a57;}return _0x408dce;}function gn(_0x260cca){const _0x47f3d3=_0x247c5a;let _0x3e3381=_0x260cca[_0x47f3d3(0x2cf)](','),_0x32929d=[];for(let _0x27abfd of _0x3e3381){let [_0x2764b5,_0x1e3f32,_0x29a1ad,_0x316e77,_0x592903,_0x2fd3a4]=_0x27abfd[_0x47f3d3(0x2cf)](':');_0x32929d[_0x47f3d3(0x319)]({'startOffset':Number(_0x2764b5),'endOffset':Number(_0x1e3f32),'collapsed':_0x2764b5===_0x1e3f32,'isActive':_0x29a1ad==='1','rangeType':_0x316e77===_0x26a332[_0x47f3d3(0x393)]?_0x26a332[_0x47f3d3(0x393)]:_0x26a332[_0x47f3d3(0x1fd)],'segmentId':typeof _0x592903=='string'?String(_0x592903):'','segmentPage':Number(_0x2fd3a4??-0x1)});}return _0x32929d[_0x47f3d3(0x2b4)](_0x444fcb=>_0x444fcb[_0x47f3d3(0x3f3)])||(_0x32929d[0x0][_0x47f3d3(0x3f3)]=!0x0),_0x32929d;}var _n=class extends _0x3318cc{constructor(..._0x556a6f){const _0x19225c=_0x247c5a;super(..._0x556a6f),G(this,_0x19225c(0x3cf),new _0x24b100(null)),G(this,_0x19225c(0x312),this[_0x19225c(0x3cf)][_0x19225c(0x3d8)]());}[_0x247c5a(0x26b)](_0x571a8f){const _0x529132=_0x247c5a;let {unitID:_0x3d63f4,memberID:_0x278829,textRanges:_0x38f1f6}=_0x571a8f,_0x330786=hn(_0x38f1f6);if(_0x330786==='')return;let _0x115e0d={'unitID':_0x3d63f4,'memberID':_0x278829,'selection':_0x330786};this['_collabCursorState$'][_0x529132(0x1c0)](_0x115e0d);}};let vn=class extends _0x3318cc{get[_0x247c5a(0x1ba)](){const _0x89892f=_0x247c5a;return this['_cursorInfo$'][_0x89892f(0x379)]();}get[_0x247c5a(0x235)](){const _0x20d153=_0x247c5a;return this['_roomMembers$'][_0x20d153(0x379)]();}constructor(_0x147bf0,_0x4753ef,_0xf0157e,_0x2bc259,_0x1abd58,_0x265150,_0x131f36,_0x25bcfe,_0x2bf14a){const _0x52878d=_0x247c5a;super(),this['unitID']=_0x147bf0,this[_0x52878d(0x29d)]=_0x4753ef,this[_0x52878d(0x325)]=_0xf0157e,this[_0x52878d(0x246)]=_0x2bc259,this['_memberService']=_0x1abd58,this[_0x52878d(0x1e7)]=_0x265150,this[_0x52878d(0x30d)]=_0x131f36,this[_0x52878d(0x390)]=_0x25bcfe,this[_0x52878d(0x3fb)]=_0x2bf14a,G(this,'_online',!0x1),G(this,_0x52878d(0x302),!0x1),G(this,'_cursorInfo$',new _0x24b100(new Map())),G(this,_0x52878d(0x22f),this[_0x52878d(0x212)]['asObservable']()),G(this,'_roomMembers$',new _0x24b100([])),G(this,'roomMembers$',this[_0x52878d(0x30c)][_0x52878d(0x2cc)](_0x166d03(0x12c))),G(this,_0x52878d(0x205),_0x5bd974(_0x2e6d26=>{const _0x480f4b=_0x52878d;let _0x1d314f={'eventID':_0x6181db[_0x480f4b(0x3f6)],'data':{'unitID':this[_0x480f4b(0x29c)],'memberID':this[_0x480f4b(0x29d)][_0x480f4b(0x360)](),'selection':hn(_0x2e6d26)}};this[_0x480f4b(0x29d)][_0x480f4b(0x3e1)](_0x1d314f,this[_0x480f4b(0x29c)]);},0x64));}[_0x247c5a(0x204)](){const _0x4d8468=_0x247c5a;super[_0x4d8468(0x204)](),this[_0x4d8468(0x212)]['next'](new Map()),this[_0x4d8468(0x212)][_0x4d8468(0x36f)](),this[_0x4d8468(0x30c)]['next']([]),this['_roomMembers$']['complete']();}[_0x247c5a(0x284)](){const _0x2b6a1e=_0x247c5a;this[_0x2b6a1e(0x302)]||(this['_init']=!0x0,this['_session'][_0x2b6a1e(0x304)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))['subscribe'](_0x5473e2=>{const _0x144479=_0x2b6a1e;_0x5473e2===_0x511a18['ONLINE']?this[_0x144479(0x1e4)]():this[_0x144479(0x3a8)]();}),this[_0x2b6a1e(0x29d)][_0x2b6a1e(0x382)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))[_0x2b6a1e(0x2d5)](_0x535ea1=>{const _0x44572c=_0x2b6a1e;let _0x4498aa=_0x535ea1[_0x44572c(0x37d)];_0x4498aa===_0x6181db[_0x44572c(0x3f6)]&&this[_0x44572c(0x22d)](_0x535ea1),_0x4498aa===_0x6181db[_0x44572c(0x3db)]&&this[_0x44572c(0x3da)](_0x535ea1);}),this[_0x2b6a1e(0x3a7)](this[_0x2b6a1e(0x3fb)]['onCommandExecuted'](_0x10c9b9=>{const _0x3c2b2c=_0x2b6a1e;let _0x56d536=_0x10c9b9[_0x3c2b2c(0x37c)];_0x56d536!=null&&this[_0x3c2b2c(0x412)]&&_0x10c9b9['id']===_0x4e121a['id']&&_0x56d536[_0x3c2b2c(0x399)]===this[_0x3c2b2c(0x29c)]&&_0x56d536[_0x3c2b2c(0x1ed)]===!0x1&&_0x56d536[_0x3c2b2c(0x3a9)]['length']>0x0&&this['_updateLocalCursor'](_0x56d536[_0x3c2b2c(0x3a9)]);})),this['_syncEditingCollabCursorService'][_0x2b6a1e(0x312)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))[_0x2b6a1e(0x2d5)](_0x181ada=>{const _0x1d0c6a=_0x2b6a1e;if((_0x181ada==null?void 0x0:_0x181ada[_0x1d0c6a(0x29c)])!==this['unitID'])return;let _0x595a32={'eventID':_0x6181db[_0x1d0c6a(0x3f6)],'data':_0x181ada};this[_0x1d0c6a(0x22d)](_0x595a32);}),this['disposeWithMe'](this[_0x2b6a1e(0x3fb)][_0x2b6a1e(0x3ce)](_0x452ed0=>{const _0x3048d9=_0x2b6a1e;if(_0x452ed0[_0x3048d9(0x37c)]==null)return;let _0x2ba9c3=_0x452ed0[_0x3048d9(0x37c)];if(_0x452ed0['id']!==_0x759f54['id']||_0x2ba9c3[_0x3048d9(0x399)]!==this[_0x3048d9(0x29c)])return;let _0x33714e={'id':_0x3048d9(0x242),'params':_0x2ba9c3},_0x69f943=this['cursorInfo'];for(let [_0x253c82,_0x15af9c]of _0x69f943){let _0x1e00af={'id':_0x3048d9(0x242),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x15af9c[_0x3048d9(0x3a9)]}},_0x542248=this['_transformService'][_0x3048d9(0x3ed)](_0x33714e,_0x1e00af,!0x1);if(_0x2be4e3(_0x542248))throw _0x542248['error'];_0x69f943[_0x3048d9(0x21f)](_0x253c82,{..._0x15af9c,'ranges':_0x542248[_0x3048d9(0x24b)][_0x3048d9(0x37c)]['textRanges']});}queueMicrotask(()=>{const _0x52fb8c=_0x3048d9;this[_0x52fb8c(0x212)][_0x52fb8c(0x1c0)](_0x69f943);});})));}[_0x247c5a(0x22d)](_0x4c732f){const _0x1c4048=_0x247c5a;var _0x33321d;let {memberID:_0x14ba7d,selection:_0x56161c}=_0x4c732f['data'],_0x191d60=gn(_0x56161c),_0x4e4940=((_0x33321d=this[_0x1c4048(0x3f7)][_0x1c4048(0x265)](this[_0x1c4048(0x29c)],_0x14ba7d))==null?void 0x0:_0x33321d['name'])??_0x1c4048(0x352),_0x463d9f={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x14ba7d),'name':_0x4e4940,'ranges':_0x191d60},_0x45d374=this[_0x1c4048(0x1ba)];_0x45d374[_0x1c4048(0x21f)](_0x14ba7d,_0x463d9f),this[_0x1c4048(0x212)][_0x1c4048(0x1c0)](_0x45d374);}[_0x247c5a(0x3da)](_0x193a03){const _0x41ce7b=_0x247c5a;let {memberID:_0x4fbdf9}=_0x193a03['data'],_0x35c858=this[_0x41ce7b(0x1ba)];_0x35c858[_0x41ce7b(0x2ea)](_0x4fbdf9),this[_0x41ce7b(0x212)][_0x41ce7b(0x1c0)](_0x35c858);}[_0x247c5a(0x1e4)](){const _0x495e08=_0x247c5a;var _0xc18e90;if(this[_0x495e08(0x412)]=!0x0,((_0xc18e90=this['_univerInstanceService'][_0x495e08(0x200)]())==null?void 0x0:_0xc18e90[_0x495e08(0x308)]())!==this[_0x495e08(0x29c)])return;let _0x498d5b=this[_0x495e08(0x325)]['get'](_0x16bdd0)[_0x495e08(0x372)]();Array[_0x495e08(0x3ca)](_0x498d5b)&&_0x498d5b[_0x495e08(0x23e)]>0x0&&this[_0x495e08(0x205)](_0x498d5b);}[_0x247c5a(0x3a8)](){const _0xbea32e=_0x247c5a;this[_0xbea32e(0x412)]=!0x1;}};vn=q([K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3b8ccc(_n)),K(0x6,_0x2ebb05),K(0x7,_0x3fd3c3),K(0x8,_0x3fa174)],vn);const yn=()=>{let _0x424796=[],_0x18626b=!0x1;return _0xd11596=>{const _0x5e5438=_0x2e9b;_0x424796[_0x5e5438(0x319)](_0xd11596),_0x18626b||(_0x18626b=!0x0,setTimeout(()=>{const _0x1256f9=_0x5e5438;_0x424796[_0x1256f9(0x409)](_0x2f37b1=>_0x2f37b1()),_0x424796=[],_0x18626b=!0x1;}));};};let bn=class extends _0x3318cc{get[_0x247c5a(0x1ba)](){const _0x52adc8=_0x247c5a;return this[_0x52adc8(0x212)][_0x52adc8(0x379)]();}get['roomMembers'](){const _0x3f08a4=_0x247c5a;return this[_0x3f08a4(0x30c)][_0x3f08a4(0x379)]();}constructor(_0x444a59,_0x29c83f,_0x337ebb,_0x18968c,_0x3414d2,_0x5b47c7,_0x5bc5e8,_0x39845f){const _0x84fbb=_0x247c5a;super(),this[_0x84fbb(0x29c)]=_0x444a59,this[_0x84fbb(0x29d)]=_0x29c83f,this[_0x84fbb(0x325)]=_0x337ebb,this[_0x84fbb(0x246)]=_0x18968c,this[_0x84fbb(0x3f7)]=_0x3414d2,this[_0x84fbb(0x390)]=_0x5b47c7,this[_0x84fbb(0x3fb)]=_0x5bc5e8,this[_0x84fbb(0x2a8)]=_0x39845f,G(this,_0x84fbb(0x412),!0x1),G(this,_0x84fbb(0x302),!0x1),G(this,'_cursorInfo$',new _0x24b100(new Map())),G(this,_0x84fbb(0x22f),this['_cursorInfo$'][_0x84fbb(0x3d8)]()),G(this,_0x84fbb(0x30c),new _0x24b100([])),G(this,_0x84fbb(0x24f),this[_0x84fbb(0x30c)]['pipe'](_0x166d03(0x12c))),G(this,_0x84fbb(0x205),_0x5bd974((_0x3fb7f6,_0x4e9072)=>{const _0x37f0dd=_0x84fbb;let _0x2d0f2d={'eventID':_0x6181db[_0x37f0dd(0x3f6)],'data':{'unitID':this['unitID'],'memberID':this[_0x37f0dd(0x29d)][_0x37f0dd(0x360)](),'selection':_0x1e4d3b(_0x3fb7f6,_0x4e9072[_0x37f0dd(0x2e5)])}};this[_0x37f0dd(0x29d)][_0x37f0dd(0x3e1)](_0x2d0f2d,this[_0x37f0dd(0x29c)]);},0x64));}[_0x247c5a(0x204)](){const _0x543bb1=_0x247c5a;super[_0x543bb1(0x204)](),this[_0x543bb1(0x212)][_0x543bb1(0x1c0)](new Map()),this[_0x543bb1(0x212)][_0x543bb1(0x36f)](),this['_roomMembers$']['next']([]),this[_0x543bb1(0x30c)][_0x543bb1(0x36f)]();}[_0x247c5a(0x284)](){const _0x5f0b6a=_0x247c5a;this['_init']||(this[_0x5f0b6a(0x302)]=!0x0,this['_session'][_0x5f0b6a(0x304)][_0x5f0b6a(0x2cc)](_0x3fa56b(this['dispose$']))[_0x5f0b6a(0x2d5)](_0xda02b5=>{const _0x328485=_0x5f0b6a;_0xda02b5===_0x511a18[_0x328485(0x410)]?this[_0x328485(0x1e4)]():this[_0x328485(0x3a8)]();}),this[_0x5f0b6a(0x29d)]['event$'][_0x5f0b6a(0x2cc)](_0x3fa56b(this[_0x5f0b6a(0x40c)]))[_0x5f0b6a(0x2d5)](_0x7b87e7=>{const _0x2f1c2c=_0x5f0b6a;let _0x5bc778=_0x7b87e7[_0x2f1c2c(0x37d)];_0x5bc778===_0x6181db[_0x2f1c2c(0x3f6)]&&this['_onCursorUpdate'](_0x7b87e7),_0x5bc778===_0x6181db[_0x2f1c2c(0x3db)]&&this['_onCursorDelete'](_0x7b87e7);}),this[_0x5f0b6a(0x387)](),this[_0x5f0b6a(0x3a7)](this['_commandService'][_0x5f0b6a(0x3ce)](_0x31f857=>{const _0x539351=_0x5f0b6a;if(this['_online']&&_0x31f857['id']===_0x21c51f['id']&&_0x31f857[_0x539351(0x37c)][_0x539351(0x399)]===this[_0x539351(0x29c)]){let _0x4654ba=_0x31f857[_0x539351(0x37c)];this[_0x539351(0x205)](_0x4654ba['subUnitId'],_0x4654ba['selections'][0x0]);}})));}['_onCursorUpdate'](_0x516419){const _0x574b67=_0x247c5a;var _0x5cb2a2;let {memberID:_0x142310,selection:_0x3773fb}=_0x516419[_0x574b67(0x231)],{sheetName:_0x1982d3,range:_0x51fe72}=_0x264f50(_0x3773fb),_0xeaea86={'name':((_0x5cb2a2=this[_0x574b67(0x3f7)][_0x574b67(0x265)](this[_0x574b67(0x29c)],_0x142310))==null?void 0x0:_0x5cb2a2[_0x574b67(0x261)])??_0x574b67(0x352),'range':this[_0x574b67(0x307)](_0x1982d3,_0x51fe72),'sheetID':_0x1982d3,'color':this[_0x574b67(0x246)][_0x574b67(0x1d4)](_0x142310),'selection':_0x3773fb},_0x469f34=this[_0x574b67(0x1ba)];_0x469f34[_0x574b67(0x21f)](_0x142310,_0xeaea86),this['_cursorInfo$']['next'](_0x469f34);}[_0x247c5a(0x3da)](_0x394137){const _0x18c0be=_0x247c5a;let {memberID:_0x4c39e8}=_0x394137[_0x18c0be(0x231)],_0x200933=this[_0x18c0be(0x1ba)];_0x200933[_0x18c0be(0x2ea)](_0x4c39e8),this[_0x18c0be(0x212)][_0x18c0be(0x1c0)](_0x200933);}['_getMergeRange'](_0x1577cf,_0x4f33a9){const _0x6f7127=_0x247c5a;var _0x3a9c2c;let _0x5dde5e=(_0x3a9c2c=this['_univerInstanceService']['getUnit'](this[_0x6f7127(0x29c)],_0x98e284[_0x6f7127(0x3bd)]))==null||(_0x3a9c2c=_0x3a9c2c['getSheetBySheetId'](_0x1577cf))==null?void 0x0:_0x3a9c2c[_0x6f7127(0x33d)]();return(_0x5dde5e==null?void 0x0:_0x5dde5e[_0x6f7127(0x310)](_0x30ad20=>_0x12eda0['contains'](_0x30ad20,_0x4f33a9)))||_0x4f33a9;}['_onRefRangeChange'](){const _0x43a1e4=_0x247c5a;let _0x10605b=new _0x469794(),_0x33cfee=yn(),_0x13c74f=()=>{const _0x42442f=_0x2e9b;_0x10605b[_0x42442f(0x204)]();let _0x5e0681=(_0x135432,_0x61cad8,_0x19fa32,_0x2575b4)=>{const _0x4392f0=_0x42442f;let _0xa37fbd=[];switch(_0x135432['id']){case _0x4934af[_0x4392f0(0x305)]:_0xa37fbd=_0x48fd4e(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x1f7)]:_0xa37fbd=_0x378cdc(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x3e2)]:_0xa37fbd=_0xff97dd(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x35f)]:_0xa37fbd=_0x5cf38c(_0x135432,_0x2575b4);break;case _0x4934af['InsertRangeMoveRightCommandId']:_0xa37fbd=_0x5239d4(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x39e)]:_0xa37fbd=_0x447949(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x29a)]:_0xa37fbd=_0x3a5cbb(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x1ca)]:_0xa37fbd=_0x4f79ac(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x2f7)]:_0xa37fbd=_0x3f2774(_0x135432,_0x2575b4);}let _0x5f00f5=_0x25ff6b(_0xa37fbd,_0x2575b4),_0xfb56b0=this[_0x4392f0(0x1ba)][_0x4392f0(0x211)](_0x61cad8);if(_0xfb56b0&&_0x5f00f5){let _0x101b6e={..._0xfb56b0,'range':_0x5f00f5};this[_0x4392f0(0x1ba)]['set'](_0x61cad8,_0x101b6e),_0x33cfee(()=>{const _0x18f2e3=_0x4392f0;let _0x166182=this[_0x18f2e3(0x2a8)]['registerRefRange'](_0x5f00f5,_0x2838a5=>(_0x166182['dispose'](),_0x5e0681(_0x2838a5,_0x61cad8,_0x19fa32,_0x5f00f5)));_0x10605b['add'](_0x166182);});}return{'redos':[],'undos':[]};};this[_0x42442f(0x1ba)][_0x42442f(0x409)]((_0x1850d4,_0x44d433)=>{const _0x15fa2e=_0x42442f;let {range:_0x389e51,sheetID:_0x546434}=_0x1850d4,_0x287984=this[_0x15fa2e(0x2a8)][_0x15fa2e(0x34f)](_0x389e51,_0x1ed5bb=>(_0x287984[_0x15fa2e(0x204)](),_0x5e0681(_0x1ed5bb,_0x44d433,_0x546434,_0x389e51)));_0x10605b[_0x15fa2e(0x23b)](_0x287984);});};this[_0x43a1e4(0x3a7)](_0x265f18(this[_0x43a1e4(0x212)][_0x43a1e4(0x2d5)](()=>{_0x13c74f();})));}[_0x247c5a(0x1e4)](){const _0x45253f=_0x247c5a;var _0x551ac6,_0x99df90;if(this[_0x45253f(0x412)]=!0x0,((_0x551ac6=this[_0x45253f(0x390)][_0x45253f(0x200)]())==null?void 0x0:_0x551ac6[_0x45253f(0x308)]())!==this['unitID'])return;let _0x22c05e=(_0x99df90=this[_0x45253f(0x325)][_0x45253f(0x211)](_0x157274)[_0x45253f(0x39a)]())==null?void 0x0:_0x99df90[0x0],_0x1ca859=this[_0x45253f(0x390)][_0x45253f(0x367)](_0x98e284[_0x45253f(0x3bd)])[_0x45253f(0x268)]();_0x22c05e&&_0x1ca859&&this['_updateLocalCursor'](_0x1ca859[_0x45253f(0x411)](),_0x22c05e);}['_toggleOffline'](){this['_online']=!0x1;}};function _0x2e9b(_0x39927a,_0x488fe8){_0x39927a=_0x39927a-0x1a9;const _0x29c94f=_0x29c9();let _0x2e9b70=_0x29c94f[_0x39927a];return _0x2e9b70;}bn=q([K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3fd3c3),K(0x6,_0x3fa174),K(0x7,_0x3b8ccc(_0x4485d1))],bn);let Z=class extends _0x3318cc{constructor(_0x2796bd,_0x2275fa,_0x43a956){const _0x5eb3f8=_0x247c5a;super(),this[_0x5eb3f8(0x390)]=_0x2796bd,this[_0x5eb3f8(0x325)]=_0x2275fa,this[_0x5eb3f8(0x337)]=_0x43a956,G(this,_0x5eb3f8(0x1c7),new Map()),G(this,_0x5eb3f8(0x40f),new _0x5896e4()),this[_0x5eb3f8(0x302)]();}[_0x247c5a(0x204)](){const _0x2b24e1=_0x247c5a;super[_0x2b24e1(0x204)](),this['_entityInit$'][_0x2b24e1(0x36f)](),this[_0x2b24e1(0x1c7)]['forEach'](_0xf2b225=>_0xf2b225[_0x2b24e1(0x204)]());}[_0x247c5a(0x33b)](_0xc3ca58){const _0x590ed9=_0x247c5a;let _0x44455f=this[_0x590ed9(0x1c7)][_0x590ed9(0x211)](_0xc3ca58);return _0x44455f?_0x44455f[_0x590ed9(0x22f)]:this[_0x590ed9(0x40f)][_0x590ed9(0x2cc)](_0x48c179(_0x5a33e5=>_0x5a33e5[_0x590ed9(0x29c)]===_0xc3ca58),_0x34977b(_0x3a6455=>_0x3a6455[_0x590ed9(0x22f)]));}[_0x247c5a(0x302)](){const _0x52bc2b=_0x247c5a;this[_0x52bc2b(0x390)]['getTypeOfUnitAdded$'](_0x98e284[_0x52bc2b(0x3bd)])[_0x52bc2b(0x2cc)](_0x3fa56b(this[_0x52bc2b(0x40c)]))['subscribe'](async _0x281020=>{const _0x1721e3=_0x52bc2b;let _0x277c45=_0x281020[_0x1721e3(0x400)][_0x1721e3(0x308)](),_0xb34516=await this['_startSheetCollabCursor'](_0x277c45);this['_entityInit$'][_0x1721e3(0x1c0)](_0xb34516),this[_0x1721e3(0x1c7)][_0x1721e3(0x21f)](_0x277c45,_0xb34516);}),this[_0x52bc2b(0x390)][_0x52bc2b(0x2a0)](_0x98e284[_0x52bc2b(0x3b2)])[_0x52bc2b(0x2cc)](_0x3fa56b(this[_0x52bc2b(0x40c)]))['pipe'](_0x48c179(_0x4f6100=>!_0x4f6100['unit']['getUnitId']()[_0x52bc2b(0x244)]('__')))['subscribe'](async _0x5650db=>{const _0x513109=_0x52bc2b;let {unit:_0x3ce160}=_0x5650db,_0x5d251d=_0x3ce160[_0x513109(0x308)](),_0x2d7c68=await this[_0x513109(0x301)](_0x5d251d);this[_0x513109(0x40f)][_0x513109(0x1c0)](_0x2d7c68),this['_entities'][_0x513109(0x21f)](_0x5d251d,_0x2d7c68);}),_0x424375(this[_0x52bc2b(0x390)][_0x52bc2b(0x251)](_0x98e284[_0x52bc2b(0x3b2)]),this[_0x52bc2b(0x390)][_0x52bc2b(0x251)](_0x98e284[_0x52bc2b(0x3bd)]))['pipe'](_0x3fa56b(this[_0x52bc2b(0x40c)]))['subscribe'](_0x1616dd=>{const _0x56a954=_0x52bc2b;let _0x1ba324=_0x1616dd[_0x56a954(0x308)](),_0x1a9e7e=this['_entities'][_0x56a954(0x211)](_0x1ba324);_0x1a9e7e&&(_0x1a9e7e[_0x56a954(0x204)](),this['_entities'][_0x56a954(0x2ea)](_0x1ba324));});}async[_0x247c5a(0x23a)](_0x548765){const _0x4c4448=_0x247c5a;let _0xf51c21=await this[_0x4c4448(0x337)][_0x4c4448(0x2bf)](_0x548765),_0x1cc78f=this[_0x4c4448(0x325)][_0x4c4448(0x21a)](bn,_0x548765,_0xf51c21);return _0x1cc78f[_0x4c4448(0x284)](),_0x1cc78f;}async['_startDocCollabCursor'](_0x19996a){const _0x3fde21=_0x247c5a;let _0x4db3f7=await this[_0x3fde21(0x337)]['requireSession'](_0x19996a),_0x3d6305=this[_0x3fde21(0x325)][_0x3fde21(0x21a)](vn,_0x19996a,_0x4db3f7);return _0x3d6305[_0x3fde21(0x284)](),_0x3d6305;}};Z=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0xed7c81))],Z);function xn(_0x3f39da,_0x5bfcc8){const _0x535b87=_0x247c5a;_0x3f39da['save'](),_0x3f39da['font']=_0x535b87(0x384);let _0x21d25e=_0x3f39da[_0x535b87(0x2d2)](_0x5bfcc8)[_0x535b87(0x375)];return _0x3f39da['restore'](),Math[_0x535b87(0x34a)](_0x21d25e+0x8,0xc8);}function Sn(_0x1fa308,_0x4b6ab8){const _0x10c4f9=_0x247c5a;let {radius:_0x4444f5,width:_0x33fdbe,height:_0x318539}=_0x4b6ab8;_0x4444f5??=0x0,_0x33fdbe??=0x1e,_0x318539??=0x1e;let _0x60e587=0x0,_0xf07747=0x0,_0x2aa74b=0x0;_0x60e587=_0xf07747=_0x2aa74b=Math['min'](_0x4444f5,_0x33fdbe/0x2,_0x318539/0x2),_0x1fa308['beginPath'](),_0x1fa308[_0x10c4f9(0x33e)](_0x60e587,0x0),_0x1fa308[_0x10c4f9(0x217)](_0x33fdbe-_0xf07747,0x0),_0x1fa308[_0x10c4f9(0x1b4)](_0x33fdbe-_0xf07747,_0xf07747,_0xf07747,Math['PI']*0x3/0x2,0x0,!0x1),_0x1fa308['lineTo'](_0x33fdbe,_0x318539-_0x2aa74b),_0x1fa308[_0x10c4f9(0x1b4)](_0x33fdbe-_0x2aa74b,_0x318539-_0x2aa74b,_0x2aa74b,0x0,Math['PI']/0x2,!0x1),_0x1fa308[_0x10c4f9(0x217)](0x0,_0x318539),_0x1fa308[_0x10c4f9(0x217)](0x0,_0x60e587),_0x1fa308[_0x10c4f9(0x1b4)](_0x60e587,_0x60e587,_0x60e587,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1fa308[_0x10c4f9(0x1f8)](),_0x4b6ab8[_0x10c4f9(0x345)]&&(_0x1fa308[_0x10c4f9(0x286)](),_0x1fa308['fillStyle']=_0x4b6ab8[_0x10c4f9(0x345)],_0x4b6ab8[_0x10c4f9(0x266)]===_0x10c4f9(0x3c6)?_0x1fa308[_0x10c4f9(0x345)](_0x10c4f9(0x3c6)):_0x1fa308[_0x10c4f9(0x345)](),_0x1fa308[_0x10c4f9(0x25b)]());}var Cn=class e extends _0x522a01{constructor(_0x2581ae,_0x397df1){const _0x114f57=_0x247c5a;super(_0x2581ae,_0x397df1),G(this,_0x114f57(0x3b1),void 0x0),G(this,_0x114f57(0x358),void 0x0),this[_0x114f57(0x3b1)]=_0x397df1==null?void 0x0:_0x397df1[_0x114f57(0x3b1)],this[_0x114f57(0x358)]=_0x397df1==null?void 0x0:_0x397df1['text'];}static['drawWith'](_0x2d7e9f,_0x4ea7d1){const _0xf95c35=_0x247c5a;let {text:_0x477af6,color:_0x26ce65}=_0x4ea7d1;_0x2d7e9f[_0xf95c35(0x286)](),_0x2d7e9f['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x4d8f35=_0x2d7e9f[_0xf95c35(0x2d2)](_0x477af6)['width'];if(Sn(_0x2d7e9f,{'height':0x14,'radius':0x4,'width':xn(_0x2d7e9f,_0x477af6),'fill':_0x26ce65,'evented':!0x1}),_0x2d7e9f['fillStyle']=_0xf95c35(0x1c9),_0x4d8f35>0xc0){let _0x22fc76='',_0x1eed1e=0x0;for(let _0x3f3d21 of _0x477af6){let _0x468e58=_0x2d7e9f['measureText'](_0x3f3d21)[_0xf95c35(0x375)];if(_0x1eed1e+_0x468e58<=0xc0-_0x2d7e9f['measureText'](_0xf95c35(0x1f0))[_0xf95c35(0x375)])_0x22fc76+=_0x3f3d21,_0x1eed1e+=_0x468e58;else{_0x22fc76+=_0xf95c35(0x1f0);break;}}_0x2d7e9f[_0xf95c35(0x1d8)](_0x22fc76,0x4,0xf);}else _0x2d7e9f[_0xf95c35(0x1d8)](_0x477af6,0x4,0xf);_0x2d7e9f[_0xf95c35(0x25b)]();}[_0x247c5a(0x2ef)](_0x6e8bd5){e['drawWith'](_0x6e8bd5,this);}};const wn=_0x247c5a(0x3bf);var Tn=class{constructor(_0x17aa4a,_0x3988b1,_0x3c7ba3,_0x44c47d){const _0x556232=_0x247c5a;this[_0x556232(0x1e1)]=_0x17aa4a,this['_scene']=_0x3988b1,this['_docSkeleton']=_0x3c7ba3,this[_0x556232(0x38f)]=_0x44c47d,G(this,'_shapes',[]),G(this,'_anchor',null),G(this,_0x556232(0x32c),null),G(this,_0x556232(0x2f8),null),G(this,_0x556232(0x35a),null),G(this,'_eventUnsubscribe',null),this[_0x556232(0x1ad)]();}set[_0x247c5a(0x1eb)](_0x4061f3){const _0x129ac5=_0x247c5a;_0x4061f3?(this['_anchorDot']&&this[_0x129ac5(0x2f8)][_0x129ac5(0x3b5)](),this[_0x129ac5(0x32c)]&&this[_0x129ac5(0x32c)][_0x129ac5(0x30a)]()):(this['_anchorDot']&&this[_0x129ac5(0x2f8)][_0x129ac5(0x30a)](),this['_textBubble']&&this[_0x129ac5(0x32c)][_0x129ac5(0x3b5)]());}[_0x247c5a(0x204)](){const _0x2f1e97=_0x247c5a;for(let _0x3a528a of this[_0x2f1e97(0x365)])_0x3a528a[_0x2f1e97(0x204)]();this['_textBubble']&&this['_textBubble'][_0x2f1e97(0x204)](),this[_0x2f1e97(0x2f8)]&&this['_anchorDot'][_0x2f1e97(0x204)](),this[_0x2f1e97(0x2c1)]&&this['_anchor']['dispose'](),this[_0x2f1e97(0x3c5)]&&this[_0x2f1e97(0x3c5)]();}[_0x247c5a(0x1ad)](){const _0x46dcc4=_0x247c5a;let {_docSkeleton:_0x552c41,_document:_0x190e01}=this,{color:_0x592a50,name:_0x19ff33,ranges:_0x1e8cd4}=this[_0x46dcc4(0x1e1)],_0x26174e=_0x190e01['getOffsetConfig'](),{docsLeft:_0x4550e4,docsTop:_0x556317}=_0x26174e,_0x196d4c=new _0x36c330(_0x26174e,_0x552c41);for(let {startOffset:_0x1395b5,endOffset:_0x2dfc33,rangeType:_0xec8895,segmentId:_0x29b22f,segmentPage:_0x1586ed,collapsed:_0x2b9e6f,isActive:_0x1b340c}of _0x1e8cd4){let _0x8c59c8=_0x552c41[_0x46dcc4(0x3eb)](_0x1395b5,!0x0,_0x29b22f,_0x1586ed),_0x445d24=_0x552c41[_0x46dcc4(0x3eb)](_0x2dfc33,!0x0,_0x29b22f,_0x1586ed);_0x445d24??=_0x552c41[_0x46dcc4(0x3eb)](_0x2dfc33-0x1,!0x1,_0x29b22f,_0x1586ed);let _0x45c6bf=En(_0x8c59c8,_0x445d24);if(_0x1b340c&&_0x45c6bf['canRenderAnchor']){let {contentBoxPointGroup:_0xf1b6d8}=_0x196d4c[_0x46dcc4(0x37a)](_0x445d24,_0x445d24);if(_0xf1b6d8[_0x46dcc4(0x23e)]===0x0)continue;this[_0x46dcc4(0x237)](_0x592a50,_0xf1b6d8,_0x4550e4,_0x556317,_0x19ff33),this['_eventUnsubscribe']=this[_0x46dcc4(0x282)]();}if(_0x8c59c8&&_0x445d24){if(_0xec8895===_0x26a332[_0x46dcc4(0x1fd)]){let {pointGroup:_0x5d44f6}=new _0x1095f0(_0x26174e,_0x552c41)[_0x46dcc4(0x37a)](_0x8c59c8,_0x445d24)??{};if(_0x5d44f6==null||_0x5d44f6[_0x46dcc4(0x23e)]===0x0)continue;this[_0x46dcc4(0x292)](_0x592a50,_0x5d44f6,_0x4550e4,_0x556317);}else{if(!_0x2b9e6f&&_0x45c6bf[_0x46dcc4(0x29e)]){let {borderBoxPointGroup:_0x24dcbd}=_0x196d4c[_0x46dcc4(0x37a)](_0x8c59c8,_0x445d24);if(_0x24dcbd['length']===0x0)continue;this[_0x46dcc4(0x31f)](_0x592a50,_0x24dcbd,_0x4550e4,_0x556317);}}}}}['_drawAnchor'](_0x381a06,_0x1dfda5,_0x319729,_0x52439e,_0x57b5aa){const _0x1435f6=_0x247c5a;let {left:_0x54c62e,top:_0x5d967a,height:_0x2bffa3}=this[_0x1435f6(0x3df)](_0x1dfda5),_0x1de0a2=1.5/this['_getScale'](),_0x27a757=new _0x52bc18(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e,'height':_0x2bffa3,'width':1.5,'fill':_0x381a06||_0x2949e8(_0xf528d4[_0x1435f6(0x373)],0x0),'strokeWidth':_0x1de0a2,'stroke':_0x1435f6(0x27a),'evented':!0x0});this[_0x1435f6(0x2c1)]=_0x27a757,this['_scene'][_0x1435f6(0x207)](_0x27a757,_0x7badc3);let _0x376cdb=new _0x52bc18(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e-0x2,'height':0x4,'width':0x4,'fill':_0x381a06||_0x2949e8(_0xf528d4[_0x1435f6(0x373)],0x0),'strokeWidth':0x0,'stroke':_0x381a06||_0x2949e8(_0xf528d4['black'],0x0),'evented':!0x1});this[_0x1435f6(0x2f8)]=_0x376cdb,this[_0x1435f6(0x40b)][_0x1435f6(0x207)](_0x376cdb,_0x7badc3);let _0x2c0f44=new Cn(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e-0x14,'text':_0x57b5aa,'color':_0x381a06});this[_0x1435f6(0x32c)]=_0x2c0f44,this[_0x1435f6(0x40b)][_0x1435f6(0x207)](_0x2c0f44,_0x7badc3),this[_0x1435f6(0x1eb)]=!0x1;}[_0x247c5a(0x282)](){const _0x5604fb=_0x247c5a;let _0x29e84a=this[_0x5604fb(0x2c1)]['onPointerEnter$'][_0x5604fb(0x2af)](()=>{const _0x5e0140=_0x5604fb;this[_0x5e0140(0x1eb)]=!0x0;}),_0x30bd89=this[_0x5604fb(0x2c1)][_0x5604fb(0x2ae)]['subscribeEvent'](()=>{const _0x2b4f28=_0x5604fb;this[_0x2b4f28(0x35a)]&&clearTimeout(this[_0x2b4f28(0x35a)]),this[_0x2b4f28(0x35a)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x224578=_0x5604fb;_0x29e84a[_0x224578(0x1f6)](),_0x30bd89[_0x224578(0x1f6)]();};}[_0x247c5a(0x31f)](_0x3c07e1,_0x4667e5,_0x89f4c3,_0x16f3ea){const _0x2f63fa=_0x247c5a;let _0x51ce6b=0.2,_0xb12a9a=new _0x2ac9a9(_0x3c07e1)[_0x2f63fa(0x1ea)](_0x51ce6b)['toRgbString'](),_0x2c49da=new _0x31acbf(_0x2f63fa(0x34e)+_0x4a2001(0x6),{'pointsGroup':_0x4667e5,'fill':_0xb12a9a||_0x2949e8(_0xf528d4['black'],_0x51ce6b),'left':_0x89f4c3,'top':_0x16f3ea,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2f63fa(0x365)][_0x2f63fa(0x319)](_0x2c49da),this['_scene'][_0x2f63fa(0x207)](_0x2c49da,_0x7badc3);}[_0x247c5a(0x292)](_0xc5f8a4,_0x3c5c6e,_0x32fd28,_0x5297b8){const _0x3507a4=_0x247c5a;let _0x4af16f=0.2,_0x260784=new _0x2ac9a9(_0xc5f8a4)[_0x3507a4(0x1ea)](_0x4af16f)['toRgbString'](),_0x168966=new _0x31acbf(_0x3507a4(0x1f5)+_0x4a2001(0x6),{'pointsGroup':_0x3c5c6e,'fill':_0x260784||_0x2949e8(_0xf528d4['black'],_0x4af16f),'left':_0x32fd28,'top':_0x5297b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3507a4(0x365)][_0x3507a4(0x319)](_0x168966),this[_0x3507a4(0x40b)]['addObject'](_0x168966,_0x7badc3);}[_0x247c5a(0x3df)](_0x47c90d){let _0x5f4326=_0x47c90d[0x0],_0x3229b9=_0x5f4326[0x0],_0x315f32=_0x5f4326[0x2],{x:_0x3d93cf,y:_0xc25aca}=_0x3229b9,{x:_0x1ac5cf,y:_0xe12db0}=_0x315f32;return{'left':_0x3d93cf,'top':_0xc25aca,'width':_0x1ac5cf-_0x3d93cf,'height':_0xe12db0-_0xc25aca};}['_getScale'](){const _0x21aa61=_0x247c5a;let {scaleX:_0x9a3dc4,scaleY:_0x1b8199}=this[_0x21aa61(0x40b)][_0x21aa61(0x3c7)]();return Math['max'](_0x9a3dc4,_0x1b8199);}};function En(_0x276376,_0x4250fb){const _0x12c994=_0x247c5a;if(!_0x4250fb)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x276376||_0x276376[_0x12c994(0x24e)]!==_0x4250fb[_0x12c994(0x24e)]||(_0x276376['pageType']===_0x52e84a[_0x12c994(0x405)]||_0x276376[_0x12c994(0x24e)]===_0x52e84a[_0x12c994(0x29b)])&&_0x276376[_0x12c994(0x336)]!==_0x4250fb[_0x12c994(0x336)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x2f269b=_0x336b78(_0x276376),_0x41023c=_0x336b78(_0x4250fb);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x2f269b==null||_0x41023c==null?_0x2f269b==null&&_0x41023c==null:_0x2f269b[_0x12c994(0x3dc)]===_0x41023c['pageIndex']&&_0x2f269b['columnGroupId']===_0x41023c[_0x12c994(0x311)]&&_0x2f269b[_0x12c994(0x1dd)]===_0x41023c[_0x12c994(0x1dd)]};}let Dn=class extends _0x3318cc{constructor(_0xa074cc,_0x266782,_0x5989eb,_0x50587c,_0x1b0069){const _0x2b8441=_0x247c5a;super(),this[_0x2b8441(0x31e)]=_0xa074cc,this['_docSkeletonManagerService']=_0x266782,this[_0x2b8441(0x2b1)]=_0x5989eb,this[_0x2b8441(0x3fb)]=_0x50587c,this['_themeService']=_0x1b0069,G(this,_0x2b8441(0x24d),[]),G(this,_0x2b8441(0x313),[]),this[_0x2b8441(0x302)]();}[_0x247c5a(0x302)](){const _0x4165e0=_0x247c5a;let _0x51d622=this[_0x4165e0(0x31e)][_0x4165e0(0x399)],_0x15a508=this[_0x4165e0(0x1c1)];this[_0x4165e0(0x3a7)](_0x3e4240([this[_0x4165e0(0x2b1)][_0x4165e0(0x33b)](_0x51d622),this[_0x4165e0(0x306)][_0x4165e0(0x3b3)]])[_0x4165e0(0x2cc)](_0x328767(([_0x1413ea,_0x1fd8d7])=>({'skeleton':_0x15a508[_0x4165e0(0x329)](),'cursors':[..._0x1413ea[_0x4165e0(0x35e)]()][_0x4165e0(0x27e)](_0x3f111d=>({..._0x3f111d,'color':this[_0x4165e0(0x306)]['getColorFromTheme'](_0x3f111d[_0x4165e0(0x3b1)])}))})))[_0x4165e0(0x2d5)](_0x1463ed=>{const _0x3bf38f=_0x4165e0;if(this[_0x3bf38f(0x363)](),_0x1463ed){let {skeleton:_0x4083a4,cursors:_0xbf333b}=_0x1463ed;this[_0x3bf38f(0x1ab)](_0x4083a4,_0xbf333b);}})),this['_initResize'](),this[_0x4165e0(0x1e0)]();}[_0x247c5a(0x1ab)](_0x3038ab,_0x514fb6){const _0x29a192=_0x247c5a;let {scene:_0x1b0391,mainComponent:_0x4a4e11}=this[_0x29a192(0x31e)],_0x391af6=_0x514fb6['map'](_0xc65482=>new Tn(_0xc65482,_0x1b0391,_0x3038ab,_0x4a4e11));this[_0x29a192(0x24d)]=_0x391af6,this[_0x29a192(0x313)]=_0x514fb6;}[_0x247c5a(0x3e0)](){const _0x2ce561=_0x247c5a;this[_0x2ce561(0x363)]();let {scene:_0x4239b5,mainComponent:_0x26ce47}=this[_0x2ce561(0x31e)],_0x3601db=this['_docSkeletonManagerService']['getSkeleton'](),_0x423d52=this['_cursors'][_0x2ce561(0x1f3)](_0x308761=>new Tn(_0x308761,_0x4239b5,_0x3601db,_0x26ce47));this[_0x2ce561(0x24d)]=_0x423d52;}['_removeCollabCursors'](){const _0x453616=_0x247c5a;this['_cursorShapes'][_0x453616(0x409)](_0x2f40ae=>_0x2f40ae[_0x453616(0x204)]()),this[_0x453616(0x24d)]=[];}[_0x247c5a(0x1e0)](){const _0x5c5ca9=_0x247c5a;let _0x460335=[_0x4186fd['id']];this['disposeWithMe'](this['_commandService'][_0x5c5ca9(0x3ce)](_0xe2e71c=>{const _0x3c2dbc=_0x5c5ca9;_0x460335[_0x3c2dbc(0x2f4)](_0xe2e71c['id'])&&_0xe2e71c[_0x3c2dbc(0x37c)][_0x3c2dbc(0x399)]===this[_0x3c2dbc(0x31e)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x247c5a(0x3ad)](){const _0x447a35=_0x247c5a;this[_0x447a35(0x3a7)](_0x56e033(this[_0x447a35(0x31e)]['engine'][_0x447a35(0x259)])[_0x447a35(0x2cc)](_0x240473(_0x45ad23=>_0x45ad23[_0x447a35(0x2d8)]===_0x3f0e13[_0x447a35(0x31a)]),_0x596cdc(0x10))[_0x447a35(0x2d5)](()=>{const _0x34edb6=_0x447a35;this[_0x34edb6(0x3e0)]();}));}};Dn=q([K(0x1,_0x3b8ccc(_0x585056)),K(0x2,_0x3b8ccc(Z)),K(0x3,_0x3fa174),K(0x4,_0x3b8ccc(_0xbb7758))],Dn);var On=class extends _0x522a01{constructor(_0x5de9d7,_0x483e87){const _0x462381=_0x247c5a;super(_0x5de9d7,_0x483e87),G(this,_0x462381(0x339),void 0x0),G(this,_0x462381(0x34d),!0x1),G(this,_0x462381(0x2f3),void 0x0),G(this,_0x462381(0x1de),''),G(this,_0x462381(0x26f),_0x462381(0x2ac)),G(this,_0x462381(0x2a3),void 0x0),G(this,'_showText',void 0x0),G(this,'_highlight',void 0x0),G(this,'_highlightSecond',0x4),G(this,'_blinkTimer',void 0x0),G(this,_0x462381(0x1b8),void 0x0),G(this,_0x462381(0x3ac),!0x0),G(this,'_offsetY',0x0),G(this,_0x462381(0x254),_0x462381(0x2cb)),_0x483e87&&(this[_0x462381(0x3e8)](_0x483e87),_0x483e87[_0x462381(0x32e)]&&(_0x483e87['highlightSecond']??this[_0x462381(0x2a9)])&&this['_startBlinking'](_0x483e87[_0x462381(0x263)]??this[_0x462381(0x2a9)])),this[_0x462381(0x258)][_0x462381(0x2af)](()=>this[_0x462381(0x3e8)]({'hovered':!0x0})),this[_0x462381(0x2ae)][_0x462381(0x2af)](()=>this[_0x462381(0x3e8)]({'hovered':!0x1}));}[_0x247c5a(0x348)](_0x2d51dd){this['_offsetY']=_0x2d51dd;}[_0x247c5a(0x3e8)](_0x127ee2){const _0x2f958a=_0x247c5a;this[_0x2f958a(0x339)]=_0x127ee2[_0x2f958a(0x3b1)]??this[_0x2f958a(0x339)],this['_hovered']=_0x127ee2[_0x2f958a(0x1d9)]??this[_0x2f958a(0x34d)],this[_0x2f958a(0x2f3)]=_0x127ee2[_0x2f958a(0x2e5)]??this['_range'],this['_name']=_0x127ee2['name']??this[_0x2f958a(0x1de)],this[_0x2f958a(0x26f)]=_0x127ee2[_0x2f958a(0x25c)]??this['_labelPosition'],this['_backgroundColor']=_0x127ee2[_0x2f958a(0x3ef)]??this['_backgroundColor'],this[_0x2f958a(0x3f0)]=_0x127ee2['showText']??this[_0x2f958a(0x3f0)],this[_0x2f958a(0x254)]=_0x127ee2[_0x2f958a(0x3c0)]??this[_0x2f958a(0x254)],_0x127ee2[_0x2f958a(0x263)]!==void 0x0&&(this[_0x2f958a(0x2a9)]=_0x127ee2[_0x2f958a(0x263)]),_0x127ee2[_0x2f958a(0x32e)]!==void 0x0&&(this['_highlight']=_0x127ee2['highlight']),_0x127ee2[_0x2f958a(0x228)]!==void 0x0&&(this[_0x2f958a(0x3dd)]=_0x127ee2[_0x2f958a(0x228)]),this[_0x2f958a(0x402)]({'width':_0x127ee2[_0x2f958a(0x375)],'height':_0x127ee2['height']});}[_0x247c5a(0x2e9)](_0x2e4866){const _0x188870=_0x247c5a;let {row:_0x23ef0e,column:_0x5bd6e0}=_0x2e4866;if(_0x23ef0e>=this[_0x188870(0x2f3)][_0x188870(0x1da)]&&_0x23ef0e<=this[_0x188870(0x2f3)][_0x188870(0x3ee)]&&_0x5bd6e0>=this[_0x188870(0x2f3)][_0x188870(0x321)]&&_0x5bd6e0<=this[_0x188870(0x2f3)][_0x188870(0x1be)]){this[_0x188870(0x3e8)]({'hovered':!0x0});return;}this[_0x188870(0x3e8)]({'hovered':!0x1});}['_startBlinking'](_0x5e5611){const _0x181fdb=_0x247c5a;this['_stopBlinking'](),this['_isBlinkVisible']=!0x0,this[_0x181fdb(0x1b8)]=window['setInterval'](()=>{const _0x490a5a=_0x181fdb;this['_isBlinkVisible']=!this[_0x490a5a(0x3ac)],this[_0x490a5a(0x220)](!0x0);},0x1f4),this[_0x181fdb(0x353)]=window[_0x181fdb(0x1c8)](()=>{const _0x36fb99=_0x181fdb;this[_0x36fb99(0x3d1)](),this[_0x36fb99(0x3ac)]=!0x0,this[_0x36fb99(0x220)](!0x0);},_0x5e5611*0x3e8);}[_0x247c5a(0x3d1)](){const _0x464823=_0x247c5a;this[_0x464823(0x1b8)]&&=(window[_0x464823(0x2d4)](this[_0x464823(0x1b8)]),void 0x0),this[_0x464823(0x353)]&&=(window[_0x464823(0x249)](this[_0x464823(0x353)]),void 0x0);}['triggerDblclick'](_0x328afd){return!0x1;}['dispose'](){const _0xf2e5d6=_0x247c5a;this[_0xf2e5d6(0x3d1)](),super[_0xf2e5d6(0x204)]();}[_0x247c5a(0x2ef)](_0x2de793){const _0x1c4220=_0x247c5a;let _0x4c5383=this[_0x1c4220(0x339)],_0xb96973=this[_0x1c4220(0x2a3)];if(this[_0x1c4220(0x2ca)]&&!this[_0x1c4220(0x3ac)]&&(_0x4c5383=this[_0x1c4220(0x341)](this[_0x1c4220(0x339)]),_0xb96973=this['_backgroundColor']?this['_getLighterColor'](this[_0x1c4220(0x2a3)]):void 0x0),_0x52bc18[_0x1c4220(0x374)](_0x2de793,{'width':this[_0x1c4220(0x375)],'height':this[_0x1c4220(0x247)],'strokeWidth':this[_0x1c4220(0x413)]||1.5,'stroke':_0x4c5383,'evented':!0x1,'fill':_0xb96973}),this[_0x1c4220(0x34d)]||this[_0x1c4220(0x3f0)]){_0x2de793[_0x1c4220(0x286)]();let _0x213025=this[_0x1c4220(0x254)]===_0x1c4220(0x240)?-xn(_0x2de793,this['_name']):this[_0x1c4220(0x375)];_0x2de793[_0x1c4220(0x3e3)](0x1,0x0,0x0,0x1,_0x213025,(this[_0x1c4220(0x26f)]===_0x1c4220(0x381)?0x0:-0x14)+(this[_0x1c4220(0x3dd)]??0x0)),Cn[_0x1c4220(0x374)](_0x2de793,{'text':this[_0x1c4220(0x1de)],'color':_0x4c5383}),_0x2de793[_0x1c4220(0x25b)]();}}['_getLighterColor'](_0x5ab84e){const _0x4a361d=_0x247c5a;return _0x5ab84e[_0x4a361d(0x244)]('#')?'rgba('+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x1,0x3),0x10)+',\x20'+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x3,0x5),0x10)+',\x20'+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x5,0x7),0x10)+_0x4a361d(0x1e9):_0x5ab84e[_0x4a361d(0x244)]('rgba')?_0x5ab84e[_0x4a361d(0x322)](/[\d.]+\)$/g,_0x4a361d(0x248)):_0x5ab84e[_0x4a361d(0x244)]('rgb')?_0x5ab84e[_0x4a361d(0x322)]('rgb',_0x4a361d(0x406))[_0x4a361d(0x322)](')',_0x4a361d(0x1e9)):_0x5ab84e;}};let kn=class extends _0x3318cc{constructor(_0x37efa2,_0x2954c6,_0x174170,_0x54ce55){const _0xc92138=_0x247c5a;super(),this[_0xc92138(0x31e)]=_0x37efa2,this['_sheetSkeletonManagerService']=_0x2954c6,this[_0xc92138(0x2b1)]=_0x174170,this[_0xc92138(0x306)]=_0x54ce55,G(this,_0xc92138(0x313),new Set()),G(this,'_lastPointer',null),G(this,_0xc92138(0x291),null),this[_0xc92138(0x302)]();}[_0x247c5a(0x302)](){const _0x2a4188=_0x247c5a;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2a4188(0x2cc)](_0x1a5f96(this[_0x2a4188(0x40c)]),_0x51e718(_0x12868b=>{const _0x1996a5=_0x2a4188;if(_0x12868b){let _0x4bf54e=_0x12868b[_0x1996a5(0x229)];return _0x3e4240(this[_0x1996a5(0x2b1)][_0x1996a5(0x33b)](this['_context'][_0x1996a5(0x399)]),this[_0x1996a5(0x306)]['currentTheme$'])[_0x1996a5(0x2cc)](_0x328767(([_0x14c7af,_0x2ddb14])=>{let _0x183e4e=new Map();return _0x14c7af['forEach']((_0x490126,_0x45c88d)=>{const _0x10017b=_0x2e9b;if(_0x490126['sheetID']===_0x4bf54e){let _0x944228={..._0x490126};_0x944228[_0x10017b(0x3b1)]=this['_themeService'][_0x10017b(0x26a)](_0x490126['color']),_0x183e4e[_0x10017b(0x21f)](_0x45c88d,_0x944228);}}),{'skeleton':_0x12868b,'cursors':_0x183e4e};}));}return _0x2a2751({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5bbacf,cursors:_0x3d6275})=>{const _0x5cca3d=_0x2a4188;this[_0x5cca3d(0x363)](),_0x5bbacf&&this['_updateCollabCursors'](_0x5bbacf,_0x3d6275);}),this[_0x2a4188(0x3a7)](this['_sheetSkeletonManagerService'][_0x2a4188(0x236)][_0x2a4188(0x2cc)](_0x1a5f96(this['dispose$']))['subscribe'](_0x30538c=>{const _0x586a7a=_0x2a4188;var _0x25d60e;if(_0x30538c==null)return;(_0x25d60e=this[_0x586a7a(0x291)])==null||_0x25d60e[_0x586a7a(0x1f6)](),this[_0x586a7a(0x291)]=null;let {skeleton:_0x50a801}=_0x30538c,{scene:_0x1c3bf9}=this['_context'];this[_0x586a7a(0x291)]=_0x1c3bf9[_0x586a7a(0x226)]['subscribeEvent'](_0x5bd974(_0x3bb3f2=>{const _0x5a1879=_0x586a7a;var _0x494e55,_0x2ad3c7;let {offsetX:_0x3c25d4,offsetY:_0x4d2afb}=_0x3bb3f2,{x:_0x3e3024,y:_0xa03481}=_0x1c3bf9[_0x5a1879(0x283)](_0x3adc07[_0x5a1879(0x3b8)]([_0x3c25d4,_0x4d2afb])),{scaleX:_0x64c65f,scaleY:_0x13c4e0}=_0x1c3bf9[_0x5a1879(0x3c7)](),_0x2216fc=_0x1c3bf9['getViewport'](_0x4bb69c[_0x5a1879(0x22a)]),_0x26f004=_0x1c3bf9[_0x5a1879(0x21e)](_0x3adc07['FromArray']([_0x3e3024,_0xa03481]),_0x2216fc),_0x4939a5=_0x50a801[_0x5a1879(0x26e)](_0x3c25d4,_0x4d2afb,_0x64c65f,_0x13c4e0,_0x26f004);(((_0x494e55=this['_lastPointer'])==null?void 0x0:_0x494e55[_0x5a1879(0x3e4)])!==_0x4939a5[_0x5a1879(0x3e4)]||((_0x2ad3c7=this['_lastPointer'])==null?void 0x0:_0x2ad3c7[_0x5a1879(0x25d)])!==_0x4939a5[_0x5a1879(0x25d)])&&this[_0x5a1879(0x313)][_0x5a1879(0x409)](_0x5dd453=>{const _0x51e5eb=_0x5a1879;_0x5dd453[_0x51e5eb(0x2e9)](_0x4939a5);});},0x64));})),this[_0x2a4188(0x3a7)](_0x265f18(()=>{const _0x138713=_0x2a4188;var _0x2e8bfa;(_0x2e8bfa=this[_0x138713(0x291)])==null||_0x2e8bfa[_0x138713(0x1f6)](),this[_0x138713(0x291)]=null;}));}[_0x247c5a(0x1ab)](_0x2d25cb,_0x4bb140){const _0x1db468=_0x247c5a;let _0x154aa4=this['_sheetSkeletonManagerService'][_0x1db468(0x355)]();if(!_0x154aa4)return;let _0x5d732c=this[_0x1db468(0x1fa)]();if(!_0x5d732c)return;this[_0x1db468(0x313)][_0x1db468(0x409)](_0xbaf683=>{_0xbaf683['makeDirty']();});let {scene:_0x1d0ed8}=_0x5d732c,_0x5b8077=An(Array[_0x1db468(0x287)](_0x4bb140[_0x1db468(0x35e)]()))[_0x1db468(0x1f3)](_0x4b1f92=>{const _0x438684=_0x1db468;let {color:_0x3936fd,range:_0x53c1b9,name:_0x1ec014,selection:_0x507243,sheetID:_0x1ea6a7}=_0x4b1f92,{startColumn:_0x4302ed,startRow:_0x3e3d60,endColumn:_0x4691f4,endRow:_0x2547e2}=_0x53c1b9,_0x1eb38d=_0x3bf5c4(_0x3e3d60,_0x4302ed,_0x1d0ed8,_0x154aa4),_0x1033dc=_0x3bf5c4(_0x2547e2,_0x4691f4,_0x1d0ed8,_0x154aa4),{columnHeaderHeightAndMarginTop:_0x4b2138}=_0x154aa4,{startX:_0x4c5f5e,startY:_0x3ed746}=_0x1eb38d,{endX:_0x54ea30,endY:_0x29d855}=_0x1033dc,_0x3c03b0=_0x54ea30-_0x4c5f5e,_0xe5a76f=_0x29d855-_0x3ed746;return new On(_0x1ec014,{'labelPosition':_0x3ed746-_0x4b2138>=0x14?_0x438684(0x2ac):_0x438684(0x381),'sheetID':_0x1ea6a7,'range':_0x53c1b9,'color':_0x3936fd,'name':_0x1ec014,'selection':_0x507243,'left':_0x4c5f5e,'top':_0x3ed746,'width':_0x3c03b0,'height':_0xe5a76f,'evented':!0x1,'zIndex':0x1389});});_0x1d0ed8[_0x1db468(0x33a)](_0x5b8077,0x1),this[_0x1db468(0x313)]=new Set(_0x5b8077);}[_0x247c5a(0x363)](){const _0x41d511=_0x247c5a;var _0xbc6d9f;(_0xbc6d9f=this[_0x41d511(0x313)])==null||_0xbc6d9f['forEach'](_0x4a1ea3=>_0x4a1ea3[_0x41d511(0x204)]());}['_getSheetObject'](){const _0x13f64e=_0x247c5a;return _0x12b1af(this[_0x13f64e(0x31e)][_0x13f64e(0x400)],this['_context']);}};kn=q([K(0x1,_0x3b8ccc(_0xfb8c7d)),K(0x2,_0x3b8ccc(Z)),K(0x3,_0x3b8ccc(_0xbb7758))],kn);function An(_0x148bcb){const _0x1cc211=_0x247c5a;let _0x486b01=new Map();return _0x148bcb[_0x1cc211(0x409)](_0x4fda54=>{const _0x536c64=_0x1cc211;if(_0x486b01[_0x536c64(0x2ed)](_0x4fda54[_0x536c64(0x275)])){let _0x18f781=_0x486b01['get'](_0x4fda54['selection']);_0x18f781[_0x536c64(0x261)]+=',\x20'+_0x4fda54['name'];}else _0x486b01[_0x536c64(0x21f)](_0x4fda54['selection'],_0x4fda54);}),Array[_0x1cc211(0x287)](_0x486b01[_0x1cc211(0x35e)]());}function jn(_0x57b943){const _0x4b9ad=_0x247c5a;return typeof _0x57b943==_0x4b9ad(0x300)&&!!_0x57b943;}function Mn(_0x4257f4){const _0x429398=_0x247c5a;return _0x4257f4['eventID']===_0x6181db['UPDATE_CURSOR']&&'data'in _0x4257f4&&jn(_0x4257f4[_0x429398(0x231)])&&typeof _0x4257f4[_0x429398(0x231)][_0x429398(0x2f2)]==_0x429398(0x3f9)&&typeof _0x4257f4['data']['selection']==_0x429398(0x3f9);}function Nn(_0x1d53f7){const _0x4658d2=_0x247c5a;return _0x1d53f7['eventID']===_0x6181db[_0x4658d2(0x3db)]&&_0x4658d2(0x231)in _0x1d53f7&&jn(_0x1d53f7[_0x4658d2(0x231)])&&typeof _0x1d53f7[_0x4658d2(0x231)][_0x4658d2(0x2f2)]=='string';}function Pn(_0x4fd3b2,_0x33f8d9){const _0x5adbc5=_0x247c5a;let _0x529335;try{_0x529335=JSON[_0x5adbc5(0x3f1)](_0x4fd3b2);}catch{return null;}if(!jn(_0x529335)||typeof _0x529335[_0x5adbc5(0x20b)]!=_0x5adbc5(0x3f9)||typeof _0x529335['unitId']!='string'||typeof _0x529335[_0x5adbc5(0x326)]!=_0x5adbc5(0x3f9))return null;let _0xf420e9=typeof _0x529335[_0x5adbc5(0x2a1)]==_0x5adbc5(0x3fd)?_0x529335[_0x5adbc5(0x2a1)]:_0x33f8d9;if(_0xf420e9==null)return null;let _0x1de210=jn(_0x529335[_0x5adbc5(0x377)])&&typeof _0x529335[_0x5adbc5(0x377)]['x']=='number'&&Number['isFinite'](_0x529335[_0x5adbc5(0x377)]['x'])&&typeof _0x529335['pointer']['y']==_0x5adbc5(0x3fd)&&Number[_0x5adbc5(0x36e)](_0x529335[_0x5adbc5(0x377)]['y'])?{'x':_0x529335[_0x5adbc5(0x377)]['x'],'y':_0x529335[_0x5adbc5(0x377)]['y']}:null;return{'kind':_0x529335[_0x5adbc5(0x20b)],'unitType':_0xf420e9,'unitId':_0x529335[_0x5adbc5(0x399)],'subUnitId':_0x529335[_0x5adbc5(0x326)],'selectedIds':Array['isArray'](_0x529335[_0x5adbc5(0x238)])?_0x529335[_0x5adbc5(0x238)][_0x5adbc5(0x351)](_0x4a2c00=>typeof _0x4a2c00==_0x5adbc5(0x3f9)):[],'focusedId':typeof _0x529335[_0x5adbc5(0x2a5)]=='string'?_0x529335[_0x5adbc5(0x2a5)]:null,'pointer':_0x1de210};}function Fn(_0x589ea1,_0x45d0b2,_0x1856f5){const _0x3cc074=_0x247c5a;return{'kind':_0x45d0b2,'unitType':_0x589ea1,'unitId':_0x1856f5[_0x3cc074(0x399)],'subUnitId':_0x1856f5[_0x3cc074(0x326)],'selectedIds':Array['from'](_0x1856f5[_0x3cc074(0x238)]),'focusedId':_0x1856f5[_0x3cc074(0x2a5)],'pointer':_0x1856f5[_0x3cc074(0x377)]?{..._0x1856f5[_0x3cc074(0x377)]}:null};}let In=class extends _0x3318cc{constructor(_0x198409,_0x1797e2,_0x7f942c,_0xb0bf13,_0x24e30f,_0x2c5d25){const _0x538a66=_0x247c5a;super(),this['unitId']=_0x198409,this[_0x538a66(0x29d)]=_0x1797e2,this[_0x538a66(0x1cc)]=_0x7f942c,this[_0x538a66(0x246)]=_0xb0bf13,this[_0x538a66(0x3f7)]=_0x24e30f,this[_0x538a66(0x3fb)]=_0x2c5d25,G(this,_0x538a66(0x412),!0x1),G(this,_0x538a66(0x2b7),!0x1);}get[_0x247c5a(0x2a1)](){const _0x32f2fa=_0x247c5a;return this['_adapter'][_0x32f2fa(0x2a1)];}[_0x247c5a(0x204)](){const _0xfd9dee=_0x247c5a;this[_0xfd9dee(0x24c)](),super[_0xfd9dee(0x204)]();}[_0x247c5a(0x284)](){const _0x2272eb=_0x247c5a;this[_0x2272eb(0x2b7)]||(this['_initialized']=!0x0,this[_0x2272eb(0x29d)][_0x2272eb(0x304)][_0x2272eb(0x2cc)](_0x3fa56b(this[_0x2272eb(0x40c)]))[_0x2272eb(0x2d5)](_0xffd9a3=>{const _0x113d6c=_0x2272eb;if(_0xffd9a3===_0x511a18[_0x113d6c(0x410)]){this['_online']=!0x0;let _0x109a62=this[_0x113d6c(0x1cc)][_0x113d6c(0x343)](this[_0x113d6c(0x399)]);_0x109a62&&this[_0x113d6c(0x3c1)](_0x109a62);return;}this[_0x113d6c(0x412)]=!0x1,this['_clearRemotePresences']();}),this[_0x2272eb(0x29d)]['event$'][_0x2272eb(0x2cc)](_0x3fa56b(this[_0x2272eb(0x40c)]))[_0x2272eb(0x2d5)](_0x354815=>{const _0xee9632=_0x2272eb;Mn(_0x354815)?this[_0xee9632(0x2a4)](_0x354815):Nn(_0x354815)&&this[_0xee9632(0x38b)](_0x354815[_0xee9632(0x231)][_0xee9632(0x2f2)]);}),this[_0x2272eb(0x1cc)][_0x2272eb(0x369)][_0x2272eb(0x2cc)](_0x48c179(_0x5998a0=>this['_online']&&_0x5998a0[_0x2272eb(0x399)]===this['unitId']),_0x14b9f0(_0x2cf5ea=>_0x22ec2d(_0x2cf5ea[_0x2272eb(0x346)]),{'leading':!0x0,'trailing':!0x0}),_0x3fa56b(this[_0x2272eb(0x40c)]))['subscribe'](_0x1d73e1=>this[_0x2272eb(0x3c1)](_0x1d73e1)));}[_0x247c5a(0x3c1)](_0x1301b1){const _0x449225=_0x247c5a;let _0x514a2f=this[_0x449225(0x29d)][_0x449225(0x360)]();if(!_0x514a2f||!this[_0x449225(0x412)])return;let _0x16519a={'eventID':_0x6181db['UPDATE_CURSOR'],'data':{'unitID':this[_0x449225(0x399)],'memberID':_0x514a2f,'selection':JSON[_0x449225(0x257)](Fn(this[_0x449225(0x2a1)],this[_0x449225(0x1cc)]['presenceKind'],_0x1301b1))}};this[_0x449225(0x29d)][_0x449225(0x3e1)](_0x16519a,this[_0x449225(0x399)])[_0x449225(0x1ac)](()=>void 0x0);}[_0x247c5a(0x2a4)](_0x1b837e){const _0xe0fea8=_0x247c5a;let {memberID:_0x51ca45,selection:_0x4c3c06}=_0x1b837e[_0xe0fea8(0x231)];if(_0x51ca45===this['_session']['getMemberID']())return;let _0x3072ce=Pn(_0x4c3c06,this[_0xe0fea8(0x2a1)]);if(!_0x3072ce||_0x3072ce['kind']!==this['_adapter'][_0xe0fea8(0x296)]||_0x3072ce[_0xe0fea8(0x2a1)]!==this['unitType']||_0x3072ce['unitId']!==this[_0xe0fea8(0x399)])return;let _0x2fd95b=this['_memberService'][_0xe0fea8(0x265)](this[_0xe0fea8(0x399)],_0x51ca45),_0x19ca14={'unitId':_0x3072ce[_0xe0fea8(0x399)],'subUnitId':_0x3072ce[_0xe0fea8(0x326)],'selectedIds':_0x3072ce[_0xe0fea8(0x238)],'focusedId':_0x3072ce[_0xe0fea8(0x2a5)],'pointer':_0x3072ce[_0xe0fea8(0x377)],'memberId':_0x51ca45,'color':this[_0xe0fea8(0x246)][_0xe0fea8(0x1d4)](_0x51ca45),'name':(_0x2fd95b==null?void 0x0:_0x2fd95b[_0xe0fea8(0x261)])??_0x51ca45};this[_0xe0fea8(0x3fb)]['executeCommand'](Y['id'],{'unitType':this[_0xe0fea8(0x2a1)],'update':{'type':'set','state':_0x19ca14}})[_0xe0fea8(0x1ac)](()=>void 0x0);}[_0x247c5a(0x38b)](_0x2f0cee){const _0x4f4ad2=_0x247c5a;this[_0x4f4ad2(0x3fb)]['executeCommand'](Y['id'],{'unitType':this[_0x4f4ad2(0x2a1)],'update':{'type':_0x4f4ad2(0x3bc),'unitId':this[_0x4f4ad2(0x399)],'memberId':_0x2f0cee}})[_0x4f4ad2(0x1ac)](()=>void 0x0);}['_clearRemotePresences'](){const _0x22daba=_0x247c5a;this[_0x22daba(0x3fb)][_0x22daba(0x3f4)](Y['id'],{'unitType':this[_0x22daba(0x2a1)],'update':{'type':_0x22daba(0x3cd),'unitId':this['unitId']}})['catch'](()=>void 0x0);}};In=q([K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3b8ccc(_0x3fa174))],In);let Q=class extends _0x3318cc{constructor(_0x30dc3d,_0x14245f,_0x1ea05e,_0x463684){const _0xfbd8cc=_0x247c5a;super(),this[_0xfbd8cc(0x390)]=_0x30dc3d,this[_0xfbd8cc(0x325)]=_0x14245f,this[_0xfbd8cc(0x337)]=_0x1ea05e,this['_adapterRegistry']=_0x463684,G(this,_0xfbd8cc(0x277),!0x1),G(this,_0xfbd8cc(0x1c7),new Map()),G(this,_0xfbd8cc(0x338),new Map()),G(this,'_adapterDisposables',new Map()),this[_0xfbd8cc(0x302)]();}[_0x247c5a(0x204)](){const _0x450f4e=_0x247c5a;this[_0x450f4e(0x277)]=!0x0,this['_adapterDisposables']['forEach'](_0x2735d9=>_0x2735d9['dispose']()),this[_0x450f4e(0x27d)][_0x450f4e(0x3cd)](),this[_0x450f4e(0x1c7)]['forEach'](_0x3120b0=>_0x3120b0[_0x450f4e(0x204)]()),this[_0x450f4e(0x1c7)]['clear'](),this[_0x450f4e(0x338)]['clear'](),super[_0x450f4e(0x204)]();}[_0x247c5a(0x302)](){const _0x474253=_0x247c5a;this['_adapterRegistry'][_0x474253(0x1d1)][_0x474253(0x2cc)](_0x3fa56b(this[_0x474253(0x40c)]))[_0x474253(0x2d5)](_0x444450=>this[_0x474253(0x3c9)](_0x444450));}[_0x247c5a(0x3c9)](_0x5e7b95){const _0x5ef8af=_0x247c5a;let _0x1e5a93=new Set(_0x5e7b95[_0x5ef8af(0x1f3)](_0x5ec4b3=>_0x5ec4b3[_0x5ef8af(0x2a1)]));this['_adapterDisposables'][_0x5ef8af(0x409)]((_0x49145a,_0x46adf9)=>{const _0x26476b=_0x5ef8af;_0x1e5a93[_0x26476b(0x2ed)](_0x46adf9)||(_0x49145a[_0x26476b(0x204)](),this[_0x26476b(0x27d)][_0x26476b(0x2ea)](_0x46adf9),this[_0x26476b(0x35c)](_0x46adf9));}),_0x5e7b95[_0x5ef8af(0x409)](_0x444545=>{const _0x51e2bf=_0x5ef8af;this[_0x51e2bf(0x27d)][_0x51e2bf(0x2ed)](_0x444545[_0x51e2bf(0x2a1)])||this[_0x51e2bf(0x28e)](_0x444545);});}[_0x247c5a(0x28e)](_0x4416db){const _0x4ee753=_0x247c5a;let _0x3ec667=new _0x469794();this[_0x4ee753(0x27d)][_0x4ee753(0x21f)](_0x4416db[_0x4ee753(0x2a1)],_0x3ec667),_0x3ec667[_0x4ee753(0x23b)](_0x4416db['activate']()),this['_univerInstanceService'][_0x4ee753(0x250)](_0x4416db[_0x4ee753(0x2a1)])[_0x4ee753(0x409)](_0x2177da=>this[_0x4ee753(0x398)](_0x2177da[_0x4ee753(0x308)](),_0x4416db)[_0x4ee753(0x1ac)](()=>void 0x0));let _0x2d5ffe=this['_univerInstanceService'][_0x4ee753(0x2a0)](_0x4416db['unitType'])[_0x4ee753(0x2d5)](({unit:_0x415d2a})=>this[_0x4ee753(0x398)](_0x415d2a[_0x4ee753(0x308)](),_0x4416db)['catch'](()=>void 0x0));_0x3ec667[_0x4ee753(0x23b)](_0x265f18(()=>_0x2d5ffe[_0x4ee753(0x1f6)]()));let _0x2021e9=this[_0x4ee753(0x390)][_0x4ee753(0x251)](_0x4416db[_0x4ee753(0x2a1)])['subscribe'](_0x44449a=>this[_0x4ee753(0x371)](_0x44449a[_0x4ee753(0x308)]()));_0x3ec667['add'](_0x265f18(()=>_0x2021e9[_0x4ee753(0x1f6)]()));}async[_0x247c5a(0x398)](_0x33c861,_0x4b519c){const _0x213d19=_0x247c5a;if(this[_0x213d19(0x1c7)][_0x213d19(0x2ed)](_0x33c861)||this[_0x213d19(0x338)]['has'](_0x33c861))return;let _0x3c9771={};this[_0x213d19(0x338)][_0x213d19(0x21f)](_0x33c861,_0x3c9771);let _0x2879a6=await this[_0x213d19(0x337)]['requireSession'](_0x33c861)[_0x213d19(0x1ac)](_0x364109=>{const _0x12dc3d=_0x213d19;throw this['_pendingEntities']['get'](_0x33c861)===_0x3c9771&&this[_0x12dc3d(0x338)][_0x12dc3d(0x2ea)](_0x33c861),_0x364109;});if(this[_0x213d19(0x277)]||this[_0x213d19(0x338)][_0x213d19(0x211)](_0x33c861)!==_0x3c9771||this[_0x213d19(0x26d)][_0x213d19(0x211)](_0x4b519c['unitType'])!==_0x4b519c){this['_pendingEntities'][_0x213d19(0x211)](_0x33c861)===_0x3c9771&&this[_0x213d19(0x338)]['delete'](_0x33c861);return;}let _0x25a02d=this[_0x213d19(0x325)][_0x213d19(0x21a)](In,_0x33c861,_0x2879a6,_0x4b519c);_0x25a02d['init'](),this[_0x213d19(0x338)][_0x213d19(0x2ea)](_0x33c861),this[_0x213d19(0x1c7)][_0x213d19(0x21f)](_0x33c861,_0x25a02d);}[_0x247c5a(0x371)](_0x591128){const _0x1f41f8=_0x247c5a;this[_0x1f41f8(0x338)][_0x1f41f8(0x2ea)](_0x591128);let _0x2a3914=this[_0x1f41f8(0x1c7)][_0x1f41f8(0x211)](_0x591128);_0x2a3914&&(_0x2a3914['dispose'](),this[_0x1f41f8(0x1c7)][_0x1f41f8(0x2ea)](_0x591128));}[_0x247c5a(0x35c)](_0x32e61){const _0x280af7=_0x247c5a;this['_univerInstanceService']['getAllUnitsForType'](_0x32e61)[_0x280af7(0x409)](_0x1ef457=>this[_0x280af7(0x338)]['delete'](_0x1ef457[_0x280af7(0x308)]())),Array[_0x280af7(0x287)](this[_0x280af7(0x1c7)]['entries']())[_0x280af7(0x409)](([_0x11cffc,_0x43aad4])=>{const _0x25992d=_0x280af7;_0x43aad4[_0x25992d(0x2a1)]===_0x32e61&&this[_0x25992d(0x371)](_0x11cffc);});}};Q=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0xed7c81)),K(0x3,_0x3b8ccc(_0x5a5714))],Q);let Ln=class extends _0x50ca1f{constructor(_0x9fef84,_0xee2880,_0x151c6e,_0x19db78,_0x43c8cb,_0x5f410a){const _0x9a5b58=_0x247c5a;super(),this[_0x9a5b58(0x239)]=_0x9fef84,this[_0x9a5b58(0x2e7)]=_0xee2880,this['_collaborationUIEventService']=_0x151c6e,this[_0x9a5b58(0x1b7)]=_0x19db78,this['_notificationService']=_0x43c8cb,this['_localeService']=_0x5f410a,G(this,_0x9a5b58(0x25e),null),G(this,_0x9a5b58(0x1b5),new Set()),this[_0x9a5b58(0x1ce)](),this[_0x9a5b58(0x2de)]();}[_0x247c5a(0x204)](){const _0x41f367=_0x247c5a;var _0x3b165e;(_0x3b165e=this['_conflictNotification'])==null||_0x3b165e[_0x41f367(0x204)](),this[_0x41f367(0x25e)]=null,super[_0x41f367(0x204)]();}[_0x247c5a(0x1ce)](){const _0x1f4e2f=_0x247c5a;this[_0x1f4e2f(0x3a7)](this['_beforeCloseService'][_0x1f4e2f(0x1f1)](()=>{const _0x2e66ad=_0x1f4e2f;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x2e66ad(0x3e6)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x247c5a(0x2de)](){const _0x3524eb=_0x247c5a;this[_0x3524eb(0x3a7)](this[_0x3524eb(0x3f5)]['event$'][_0x3524eb(0x2d5)](_0x5b2189=>{const _0x47e23c=_0x3524eb;_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x2c6)]&&this['_messageService']['show']({'type':_0x2f977e[_0x47e23c(0x1ef)],'content':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x223)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e['Warning'],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3cb))}),_0x5b2189['id']===_0x2b0b3d['PERMISSION_DENIED']&&this[_0x47e23c(0x276)]({'title':this['_localeService']['t'](_0x47e23c(0x316)),'content':this['_localeService']['t']('collaboration-client-ui.permission.content'),'type':_0x47e23c(0x3f2),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x47e23c(0x1c4)),'onClick':_0xd51d7b=>{const _0x39e9df=_0x47e23c;_0xd51d7b[_0x39e9df(0x2dc)](),window[_0x39e9df(0x274)][_0x39e9df(0x26c)]();}}}),_0x5b2189['id']===_0x2b0b3d['CONFLICT_PROCESSING']&&this[_0x47e23c(0x1f9)](),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x309)]&&_0x5b2189[_0x47e23c(0x29c)]&&this['_showConflictCacheClearFailedNotification'](_0x5b2189[_0x47e23c(0x29c)]),_0x5b2189['id']===_0x2b0b3d['CONFLICT']&&this[_0x47e23c(0x276)]({'title':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3de)),'content':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.conflict.content'),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x99abef=>{const _0x4bcad8=_0x47e23c;_0x99abef[_0x4bcad8(0x2dc)](),window['location'][_0x4bcad8(0x26c)]();}}}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x24a)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e['Warning'],'content':this['_localeService']['t'](_0x5b2189['data']||'')}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x2fd)]&&this[_0x47e23c(0x1b7)]['show']({'type':_0x2f977e[_0x47e23c(0x1ef)],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3b0))}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x333)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e[_0x47e23c(0x3d2)],'content':this['_localeService']['t'](_0x47e23c(0x3ea))}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x404)]&&this[_0x47e23c(0x1b7)]['show']({'type':_0x2f977e[_0x47e23c(0x3d2)],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x206))});}));}['_showConflictProcessingNotification'](){const _0x473cf5=_0x247c5a;this['_replaceConflictNotification']({'title':this[_0x473cf5(0x3e6)]['t'](_0x473cf5(0x3de)),'content':this[_0x473cf5(0x3e6)]['t'](_0x473cf5(0x2b3)),'type':_0x473cf5(0x38d),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x52411d){const _0x548085=_0x247c5a;this[_0x548085(0x276)]({'title':this[_0x548085(0x3e6)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x548085(0x3e6)]['t'](_0x548085(0x295)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x548085(0x2eb)),'onClick':_0x337102=>{const _0x207b5e=_0x548085;_0x337102[_0x207b5e(0x2dc)](),this['_retryConflictCacheClear'](_0x52411d);}}});}[_0x247c5a(0x297)](_0x5b1ed2){const _0x2a90f3=_0x247c5a;this['_retryingConflictCacheUnitIDs']['has'](_0x5b1ed2)||(this[_0x2a90f3(0x1b5)][_0x2a90f3(0x23b)](_0x5b1ed2),this[_0x2a90f3(0x1f9)](),this[_0x2a90f3(0x2e7)][_0x2a90f3(0x22c)](_0x5b1ed2)['then'](()=>window[_0x2a90f3(0x274)]['reload']())['catch'](()=>this[_0x2a90f3(0x33f)](_0x5b1ed2))[_0x2a90f3(0x2a2)](()=>this[_0x2a90f3(0x1b5)][_0x2a90f3(0x2ea)](_0x5b1ed2)));}['_replaceConflictNotification'](_0x5cdc90){const _0xb2b6dd=_0x247c5a;var _0x26c52d;(_0x26c52d=this['_conflictNotification'])==null||_0x26c52d['dispose'](),this[_0xb2b6dd(0x25e)]=this['_notificationService'][_0xb2b6dd(0x30a)](_0x5cdc90);}};Ln=q([K(0x0,_0x1b0f9c),K(0x1,_0x1974ac),K(0x2,_0x3b8ccc(_0x1327e3)),K(0x3,_0x4a0381),K(0x4,_0x502777),K(0x5,_0x3b8ccc(_0x5a18da))],Ln);const Rn=_0x44855e(_0x247c5a(0x32f));let zn=class extends _0x3318cc{constructor(_0xf749be,_0xd86437,_0x45e5da,_0x255798){const _0x2e75e6=_0x247c5a;super(),this[_0x2e75e6(0x1b6)]=_0xf749be,this[_0x2e75e6(0x2be)]=_0xd86437,this[_0x2e75e6(0x3fb)]=_0x45e5da,this[_0x2e75e6(0x3be)]=_0x255798,this[_0x2e75e6(0x302)]()['catch'](_0x27c6b0=>this[_0x2e75e6(0x2be)][_0x2e75e6(0x3f2)](_0x2e75e6(0x2ff),_0x27c6b0));}async[_0x247c5a(0x302)](){const _0x402715=_0x247c5a;let _0x55d4a9=this[_0x402715(0x1b6)][_0x402715(0x20d)](_0x402715(0x400)),_0x20a4b3=this['_urlService'][_0x402715(0x20d)](_0x402715(0x2d8)),_0x384fd3=this[_0x402715(0x1b6)][_0x402715(0x20d)]('subunit');if(!_0x55d4a9||!_0x20a4b3){this[_0x402715(0x2be)][_0x402715(0x281)](_0x402715(0x2ff),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x1386c9=await this[_0x402715(0x3be)]['loadUnit'](_0x55d4a9,Number(_0x20a4b3),_0x384fd3);this['_disposed']||_0x1386c9&&_0x1386c9 instanceof _0x16e1e6&&await this[_0x402715(0x1e6)](_0x1386c9);}async['_setupSubUnitSync'](_0x2767f8){const _0x5f5d74=_0x247c5a;await this['_updateSubUnitFromURLParams'](_0x2767f8,!0x0),!this[_0x5f5d74(0x408)]&&(_0x2767f8[_0x5f5d74(0x317)][_0x5f5d74(0x2cc)](_0x3fa56b(this[_0x5f5d74(0x40c)]))[_0x5f5d74(0x2d5)](_0x43914a=>{const _0x435c05=_0x5f5d74;_0x43914a&&this[_0x435c05(0x34b)](_0x43914a);}),this[_0x5f5d74(0x1b6)][_0x5f5d74(0x210)][_0x5f5d74(0x2cc)](_0x3fa56b(this[_0x5f5d74(0x40c)]))[_0x5f5d74(0x2d5)](()=>{const _0x43c1f0=_0x5f5d74;this['_updateSubUnitFromURLParams'](_0x2767f8)[_0x43c1f0(0x1ac)](_0x48936f=>this[_0x43c1f0(0x2be)][_0x43c1f0(0x3f2)](_0x43c1f0(0x2ff),_0x48936f));}));}['_updateURLWithCurrentState'](_0x352d84,_0x7c1313=!0x1){const _0x4443b2=_0x247c5a;let _0x354aa8=this[_0x4443b2(0x1b6)]['getParam']('subunit');_0x352d84[_0x4443b2(0x411)]()!==_0x354aa8&&this[_0x4443b2(0x1b6)][_0x4443b2(0x3b4)](_0x4443b2(0x3ff),_0x352d84[_0x4443b2(0x411)](),_0x7c1313);}async[_0x247c5a(0x3e9)](_0x83be18,_0x4fd00a=!0x1){const _0x4f7b90=_0x247c5a;var _0x1eb76e;let _0x5190ca=this['_urlService']['getParam'](_0x4f7b90(0x3ff));if(!_0x5190ca||!_0x83be18[_0x4f7b90(0x294)](_0x5190ca)){let _0x31fc7a=_0x83be18[_0x4f7b90(0x1c6)]()[0x0],_0x2a4074=_0x83be18[_0x4f7b90(0x294)](_0x31fc7a);if(!_0x2a4074||(this['_updateURLWithCurrentState'](_0x2a4074,!0x0),this[_0x4f7b90(0x408)]))return;await this['_commandService'][_0x4f7b90(0x3f4)](_0x211d66['id'],{'unitId':_0x83be18[_0x4f7b90(0x308)](),'subUnitId':_0x31fc7a});return;}(_0x4fd00a||((_0x1eb76e=_0x83be18[_0x4f7b90(0x268)]())==null?void 0x0:_0x1eb76e[_0x4f7b90(0x411)]())!==_0x5190ca)&&await this[_0x4f7b90(0x3fb)][_0x4f7b90(0x3f4)](_0x211d66['id'],{'unitId':_0x83be18[_0x4f7b90(0x308)](),'subUnitId':_0x5190ca});}};zn=q([K(0x0,Rn),K(0x1,_0x583b3f),K(0x2,_0x3fa174),K(0x3,_0x3b8ccc(_0x51e8bf))],zn);let Bn=class{constructor(_0x58d822,_0x5d74ba){const _0x358355=_0x247c5a;this['_transformService']=_0x58d822,this[_0x358355(0x37f)]=_0x5d74ba;}[_0x247c5a(0x3ec)](_0x3be5c6){const _0x52dee4=_0x247c5a;this['_transformUndoRedoStack'](_0x3be5c6),this[_0x52dee4(0x314)](_0x3be5c6);}[_0x247c5a(0x31c)](_0x127c1d){const _0x428b21=_0x247c5a;let {unitID:_0x1e966b}=_0x127c1d,{redoCache:_0x236037}=this[_0x428b21(0x37f)]['getRenderUnitById'](_0x1e966b)[_0x428b21(0x267)](_0x5beedc)[_0x428b21(0x3b6)]();if(_0x236037[_0x428b21(0x23e)]===0x0)return _0x127c1d;let _0x4bb135=_0x55db4d['deepClone'](_0x127c1d['mutations'][0x0]);for(let _0x3a8736=0x0;_0x3a8736<_0x236037[_0x428b21(0x23e)];_0x3a8736++){let _0x47d94e={'id':_0x428b21(0x242),'params':{..._0x236037[_0x3a8736]}},_0x5b1a3a=this[_0x428b21(0x30d)][_0x428b21(0x3ed)](_0x4bb135,_0x47d94e,!0x1);if(_0x2be4e3(_0x5b1a3a))throw _0x5b1a3a[_0x428b21(0x3f2)];_0x4bb135=_0x5b1a3a[_0x428b21(0x2c0)];}return{..._0x55db4d[_0x428b21(0x2e6)](_0x127c1d),'mutations':[_0x4bb135]};}['_transformUndoRedoStack'](_0x2a406e){const _0xafeac6=_0x247c5a;let {unitID:_0x1efc2a}=_0x2a406e,_0x4ec9f2=this['_renderManagerService'][_0xafeac6(0x1a9)](_0x1efc2a)[_0xafeac6(0x267)](_0x5beedc),{undoCache:_0x11b12c,redoCache:_0x2fb9af}=_0x4ec9f2[_0xafeac6(0x3b6)]();if(_0x11b12c[_0xafeac6(0x23e)]===0x0||_0x2fb9af[_0xafeac6(0x23e)]===0x0)return;let _0x498e59=[],_0x4f187c=[],_0x4cf8c3=_0x55db4d[_0xafeac6(0x2e6)](_0x2a406e['mutations'][0x0]),_0x38c5c3=_0x55db4d[_0xafeac6(0x2e6)](_0x2a406e['mutations'][0x0]);for(let _0x47cedf=_0x11b12c['length']-0x1;_0x47cedf>=0x0;_0x47cedf--){let _0x554aaa={'id':'doc.mutation.rich-text-editing','params':{..._0x11b12c[_0x47cedf]}},_0x3df78e={'id':_0xafeac6(0x242),'params':{..._0x2fb9af[_0x47cedf]}},_0x13c869=this[_0xafeac6(0x30d)][_0xafeac6(0x3ed)](_0x4cf8c3,_0x554aaa,!0x1),_0x335b86=this[_0xafeac6(0x30d)]['transformMutation'](_0x38c5c3,_0x3df78e,!0x1);if(_0x2be4e3(_0x13c869))throw _0x13c869[_0xafeac6(0x3f2)];if(_0x2be4e3(_0x335b86))throw _0x335b86[_0xafeac6(0x3f2)];_0x498e59['unshift'](_0x13c869[_0xafeac6(0x24b)][_0xafeac6(0x37c)]),_0x4f187c[_0xafeac6(0x38e)](_0x335b86['m2Prime'][_0xafeac6(0x37c)]),_0x4cf8c3=_0x13c869['m1Prime'],_0x38c5c3=_0x335b86[_0xafeac6(0x2c0)];}_0x4ec9f2[_0xafeac6(0x273)]({'undoCache':_0x498e59,'redoCache':_0x4f187c});}[_0x247c5a(0x314)](_0x1b0999){const _0x21fabc=_0x247c5a;let {unitID:_0x24f9da}=_0x1b0999,_0x46103b=this[_0x21fabc(0x37f)][_0x21fabc(0x1a9)](_0x24f9da)['with'](_0x5beedc),_0x50af7b=_0x46103b['getActiveRange']();if(_0x50af7b==null)return;let _0x5e3251=[{'id':_0x21fabc(0x242),'params':{'unitId':_0x1b0999[_0x21fabc(0x29c)],'actions':null,'textRanges':[_0x50af7b]}}],_0x2b9118=this[_0x21fabc(0x30d)][_0x21fabc(0x213)](_0x1b0999,_0x5e3251);if(!_0x10ddcf(_0x2b9118))throw _0x2b9118[_0x21fabc(0x3f2)];let _0x1f220f=_0x2b9118[_0x21fabc(0x24b)][0x0][_0x21fabc(0x37c)]['textRanges'];Array[_0x21fabc(0x3ca)](_0x1f220f)&&_0x1f220f[_0x21fabc(0x23e)]&&_0x46103b[_0x21fabc(0x272)](_0x1f220f[0x0]);}};function _0x29c9(){const _0x2af8a0=['find','columnGroupId','collabCursorState$','_cursors','_transformPreviousActiveRange','OFFLINE','collaboration-client-ui.permission.title','activeSheet$','_registerDependencies','push','resize','_initDependencies','transformRemoteChangeset','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_context','_drawTextRange','_registerPresenceStatusComponent','startColumn','replace','getCurrentRevOfUnit','registerComponent','_injector','subUnitId','wsSessionTicketUrl','startOffset','getSkeleton','executionId','backupOfflineData','_textBubble','_collaborationSessionService','highlight','uni.network.url-service','[Unhandled\x20Rejection]:\x20','call','557928vMSmFr','SOCKET_FAILED','getOwnPropertyDescriptor','addClipboardHook','segmentPage','_collabSessionService','_pendingEntities','_color','addObjects','getCollabCursors$','8yuEvFo','getMergeData','moveTo','_showConflictCacheClearFailedNotification','collaboration-client-ui.config','_getLighterColor','@univerjs-pro/collaboration-client-ui','getLocalPresence','tableSource','fill','shareInterval','_initPresenceStatusComponents','setOffsetY','setItem','min','_updateURLWithCurrentState','replaceState','_hovered','collab-text-range-','registerRefRange','_assignedColors','filter','Unknown\x20user','_blinkTimer','registerRenderModule','getCurrentSkeleton','timeoutState$','_scheduleHeartbeat','text','_messageIds','_hideTimer','enableDocumentCollaborationUI','_disposeEntitiesForType','SYNCED','values','InsertRangeMoveDownCommandId','getMemberID','options','default','_removeCollabCursors','mutations','_shapes','spin','getCurrentUnitOfType','_initWindowErrorListener','localPresence$','_unitStatus','lineno','_updateMessage','[RemoteUniscriptService]:\x20no\x20focused\x20unit','isFinite','complete','sessionTicket','_disposeEntity','getDocRanges','black','drawWith','width','_send','pointer','_docTransformStateCacheService','getValue','getRangePointData','collaboration-client-ui.snapshotLoading.timeout','params','eventID','application/json','_renderManagerService','red.300','bottom','event$','unload','bold\x2013px\x20Arial,\x20sans-serif','_imageIoService','_blockProgressWatches','_onRefRangeChange','undoState','toISOString','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_removeRemotePresence','exhaustSavingTask','loading','unshift','_document','_univerInstanceService','textRanges','_initStatusComponent','TEXT','state','setInterval','onRendered','tableId','_startEntity','unitId','getCurrentSelections','collaboration-client-ui.collabStatus.conflict','getUnitStatus$','getItem','InsertRowCommandId','replaceSelectionInfoWithoutRefresh','updateOfflineData','_docStateChangeManagerService','transformStateCache','_config','_handleHeartbeatEvent','_watchBlockProgress','getSelectionInfo','disposeWithMe','_toggleOffline','ranges','source','timeoutId','_isBlinkVisible','_initResize','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','slice','collaboration-client-ui.session.will-retry','color','UNIVER_DOC','currentTheme$','setParam','hide','getUndoRedoMutationParamsCache','_cachedData','FromArray','dark:focus:!univer-ring-offset-gray-800','716597AcidHZ','snapshot-loading-timeout','remove','UNIVER_SHEET','_dataLoaderService','collab-text-anchor-','labelHorizontalPosition','_sendLocalPresence','_docSyncEditingCollabCursorService','all','version','_eventUnsubscribe','evenodd','getAncestorScale','univer-text-orange-500','_syncAdapters','isArray','collaboration-client-ui.collaboration.closeRoom','function','clear','onCommandExecuted','_collabCursorState$','removeItem','_stopBlinking','Error','LOADING_BLOCKS','Failed','_isVisibleUnit','2896nGVAYD','_heartbeatTimer','asObservable','origin','_onCursorDelete','USERS_LEAVE','pageIndex','_offsetY','collaboration-client-ui.conflict.title','_getAnchorBounding','_refreshCollabCursors','send','InsertColCommandId','transform','column','_configService','_localeService','setConfig','setShapeProps','_updateSubUnitFromURLParams','collaboration-client-ui.session.connection-failed','findNodePositionByCharIndex','transformIMECache','transformMutation','endRow','backgroundColor','_showText','parse','error','isActive','executeCommand','_collaborationUIEventService','UPDATE_CURSOR','_memberService','setRemotePresence','string','update','_commandService','_id','number','_uiPartsService','subunit','unit','popstate','transformByState','collaboration-client-ui.collabStatus.synced','SUBMIT_CHANGESET_TIMEOUT','HEADER','rgba','runOnServer','_disposed','forEach','pulse','_scene','dispose$','_latestStates','focused$','_entityInit$','ONLINE','getSheetId','_online','strokeWidth','getRenderUnitById','setStateCache','_updateCollabCursors','catch','_render','univer-m-0\x20univer-p-0','_transformHistoryAndStateStack','CONFLICT','tooltipKey','_saveTaskMap','decorate','arc','_retryingConflictCacheUnitIDs','_urlService','_messageService','_blinkIntervalTimer','530xTuwWm','cursorInfo','removeEventListener','polite','span','endColumn','status','next','_docSkeletonManagerService','ERROR','addHandlerCallback','collaboration-client-ui.snapshotLoading.refresh','[Window\x20Error]:\x20','getUnhiddenWorksheets','_entities','setTimeout','#FFF','RemoveColCommandId','_revisionService','_adapter','timedOut','_setupBeforeClosingHandler','_docTransformIMECacheService','_ensureSubject','adapters$','39457zMlllf','405xPnJkZ','assignAColorForMemberID','_docTransformSelectionsService','collaboration-client-ui.collabStatus.notCollab','_activeSaveTaskMap','fillText','hovered','startRow','onStarting','_syncPresenceStatusComponents','columnIndex','_name','removeRemotePresence','_initCommandExecutedListener','_cursor','reason','_httpService','_toggleOnline','univer-flex\x20univer-items-center\x20univer-justify-center','_setupSubUnitSync','_syncEditingCollabCursorService','symbol',',\x200.2)','setAlpha','_hover','292pUgGlV','isEditing','_scheduleSaving','Warning','...','registerBeforeClose','PENDING','map','_initUserListener','collab-rect-range-','unsubscribe','DeleteRangeMoveUpCommandId','closePath','_showConflictProcessingNotification','_getSheetObject','defineProperty','then','RECT','_clearBlockProgressWatch','statusUIPart','getFocusedUnit','_registerRenderDependencies','div','_docClipboardService','dispose','_updateLocalCursor','collaboration-client-ui.session.collaboration-timeout','addObject','toString','history','_removeClearOtherTimer','kind','376GRkfJZ','getParam','post','_handleEvent','urlChange$','get','_cursorInfo$','transformMutationsWithChangeset','_initUnhandledRejectionListener','editingUnit','_docSelectionManagerService','lineTo','now','_instanceService','createInstance','createSocket','packageName','Enter','getScrollXYInfoByViewport','set','makeDirty','indicator','result','CLOSE_ROOM','getCollabEntity$','collaboration-client-ui.collabStatus.syncing','onPointerMove$','_status$','offsetY','sheetId','VIEW_MAIN','small','clearOfflineData','_onCursorUpdate','reconnect','cursorInfo$','content','data','totalBlocks','stack','invokeId','roomMembers','currentSkeleton$','_drawAnchor','selectedIds','_beforeCloseService','_startSheetCollabCursor','add','snapshot-loading-','collaboration-client-ui.collabStatus.offline','length','_scheduleClearOtherTimer','left','/universer-api/frontend/logs','doc.mutation.rich-text-editing','_colorIndex','startsWith','pluginName','_colorAssignService','height','0.2)','clearTimeout','JOIN_ROOM_FAILED','m2Prime','_clearRemotePresences','_cursorShapes','pageType','roomMembers$','getAllUnitsForType','getTypeOfUnitDisposed$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_handleJoinEvent','_labelHorizontalPosition','_getSaveTimeout','size','stringify','onPointerEnter$','onTransformChange$','_monkeyPatchLogService','restore','labelPosition','row','_conflictNotification','disposeUnit','prototype','name','[LogService\x20Error]:\x20','highlightSecond','univer-text-blue-500','getMember','fillRule','with','getActiveSheet','_clearTimeoutState','getColorFromTheme','syncEditingCollabCursor','reload','_adapterRegistry','getCellIndexByOffset','_labelPosition','clickable','getCurrentTypeOfUnit$','setActiveRange','setUndoRedoMutationParamsCache','location','selection','_replaceConflictNotification','_isDisposed','NO_OTHER_CLIENTS_EDITING','unhandledrejection','rgba(255,\x20255,\x20255,\x200.01)','1.0.2','every','_adapterDisposables','flatMap','_snapshotLoadingService','/run/','debug','_handleHover','getCoordRelativeToViewport','init','true','save','from','NOT_COLLAB','_unitOnClients','OPERATION','redoState','blue.400','memberId','_bindAdapter','bind','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_pointerMoveDisposable','_drawRectRange','_localStorageService','getSheetBySheetId','collaboration-client-ui.conflict.clearFailed','presenceKind','_retryConflictCacheClear','COMPLETE','constructor','MoveRangeCommandId','FOOTER','unitID','_session','canRenderSelection','getConfig','getTypeOfUnitAdded$','unitType','finally','_backgroundColor','_handleCursorUpdate','focusedId','AWAITING','\x20-\x20','_refRangeService','_highlightSecond','registerCommand','_disabled','top','icon','onPointerLeave$','subscribeEvent','_memberID','_collabCursorController','code','collaboration-client-ui.conflict.processing','some','join','1149012laMCRC','_initialized','static','_trackActiveSaveTask','entityInit$','_presenceStatusRegistrations','loadOfflineData','univer-border-none\x20univer-bg-transparent','_logService','requireSession','m1Prime','_anchor','_clearOtherTimers','href','imageSourceType','_uploadLog','OTHER_CLIENT_EDITING','parseInt','override','socket$','_highlight','right','pipe','_collaborationController','univer-text-red-500','split','saveImage','pushState','measureText','runId','clearInterval','subscribe','collaboration-client-ui.operation.update-remote-unit-presence','univer-transition-all\x20univer-duration-200','type','body','_getSessionTicket','_selfUnitIDs','preventDefault','univer-text-gray-400','_initEvent','prepareTransformSelections','stage','search','loadedBlocks','addEventListener',':backup:','range','deepClone','_localCacheService','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','onMouseMove','delete','collaboration-client-ui.conflict.retry','univer-h-8\x20univer-w-8\x20univer-rounded-lg','has','_initStatusListener','_draw','_timeoutState$','searchParams','memberID','_range','includes','_saveCache','key','RemoveRowCommandId','_anchorDot','colorClass','_handleLeaveEvent','658130Lyrknj','removeParam','SOCKET_FAILED_RETRY','primary','[CollaborationDataLoaderController]','object','_startDocCollabCursor','_init','_createSocketURL','sessionStatus$','DeleteRangeMoveLeftCommandId','_themeService','_getMergeRange','getUnitId','CONFLICT_CACHE_CLEAR_FAILED','show','saveTaskMap','_roomMembers$','_transformService','yellow.400','getStateCache'];_0x29c9=function(){return _0x2af8a0;};return _0x29c9();}Bn=q([K(0x0,_0x2ebb05),K(0x1,_0x34d5fc)],Bn);let Vn=class{constructor(_0xf13f6e,_0xfefa7c,_0x9ffcfa){const _0x1d7355=_0x247c5a;this[_0x1d7355(0x325)]=_0xf13f6e,this[_0x1d7355(0x30d)]=_0xfefa7c,this['_docStateChangeManagerService']=_0x9ffcfa;}[_0x247c5a(0x3a2)](_0x3cb5f3){const _0x4710fa=_0x247c5a;this[_0x4710fa(0x1af)](_0x3cb5f3);}['transformRemoteChangeset'](_0x2aa4d4){const _0x29817d=_0x247c5a;let {unitID:_0x32d79e}=_0x2aa4d4,{collaboration:_0x3b1a4}=this['_docStateChangeManagerService']['getStateCache'](_0x32d79e);if(_0x3b1a4[_0x29817d(0x23e)]===0x0)return _0x2aa4d4;let _0x412e73=_0x55db4d['deepClone'](_0x2aa4d4[_0x29817d(0x364)][0x0]);for(let _0x48c9a4=0x0;_0x48c9a4<_0x3b1a4[_0x29817d(0x23e)];_0x48c9a4++){let _0x57a793={'id':_0x29817d(0x242),'params':{'unitId':_0x3b1a4[_0x48c9a4]['unitId'],..._0x3b1a4[_0x48c9a4][_0x29817d(0x28b)]}},_0x47b3dd=this[_0x29817d(0x30d)][_0x29817d(0x3ed)](_0x412e73,_0x57a793,!0x1);if(_0x2be4e3(_0x47b3dd))throw _0x47b3dd[_0x29817d(0x3f2)];_0x412e73=_0x47b3dd['m1Prime'];}return{..._0x55db4d[_0x29817d(0x2e6)](_0x2aa4d4),'mutations':[_0x412e73]};}[_0x247c5a(0x1af)](_0x1530e2){const _0x496af4=_0x247c5a;let {unitID:_0x13b9d7}=_0x1530e2,{history:_0x1b37ee,collaboration:_0x2e65ab}=this[_0x496af4(0x3a1)][_0x496af4(0x30f)](_0x13b9d7);if(_0x1b37ee[_0x496af4(0x23e)]===0x0&&_0x2e65ab[_0x496af4(0x23e)]===0x0)return;let _0x47938e=[],_0x122c42=[],_0x267c36=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]),_0x5e8829=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]);for(let _0x4a02d6=_0x1b37ee[_0x496af4(0x23e)]-0x1;_0x4a02d6>=0x0;_0x4a02d6--){let _0xf5367c={'id':_0x496af4(0x242),'params':{'unitId':_0x1b37ee[_0x4a02d6][_0x496af4(0x399)],..._0x1b37ee[_0x4a02d6][_0x496af4(0x388)]}},_0x21a5ec={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1b37ee[_0x4a02d6]['unitId'],..._0x1b37ee[_0x4a02d6][_0x496af4(0x28b)]}},_0x1449e2=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x267c36,_0xf5367c,!0x1),_0xdbbc81=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x5e8829,_0x21a5ec,!0x1);if(_0x2be4e3(_0x1449e2))throw _0x1449e2[_0x496af4(0x3f2)];if(_0x2be4e3(_0xdbbc81))throw _0xdbbc81[_0x496af4(0x3f2)];_0x47938e[_0x496af4(0x38e)]({..._0x1b37ee[_0x4a02d6],'undoState':_0x1449e2['m2Prime'][_0x496af4(0x37c)],'redoState':_0xdbbc81[_0x496af4(0x24b)]['params']}),_0x267c36=_0x1449e2[_0x496af4(0x2c0)],_0x5e8829=_0xdbbc81['m1Prime'];}_0x267c36=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]),_0x5e8829=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]);for(let _0x5b7620=_0x2e65ab[_0x496af4(0x23e)]-0x1;_0x5b7620>=0x0;_0x5b7620--){let _0x22b2af={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e65ab[_0x5b7620][_0x496af4(0x399)],..._0x2e65ab[_0x5b7620]['undoState']}},_0xf23f99={'id':_0x496af4(0x242),'params':{'unitId':_0x2e65ab[_0x5b7620][_0x496af4(0x399)],..._0x2e65ab[_0x5b7620]['redoState']}},_0x1d39d8=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x267c36,_0x22b2af,!0x1),_0x2c71e9=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x5e8829,_0xf23f99,!0x1);if(_0x2be4e3(_0x1d39d8))throw _0x1d39d8[_0x496af4(0x3f2)];if(_0x2be4e3(_0x2c71e9))throw _0x2c71e9[_0x496af4(0x3f2)];_0x122c42[_0x496af4(0x38e)]({..._0x2e65ab[_0x5b7620],'undoState':_0x1d39d8[_0x496af4(0x24b)][_0x496af4(0x37c)],'redoState':_0x2c71e9[_0x496af4(0x24b)]['params']}),_0x267c36=_0x1d39d8[_0x496af4(0x2c0)],_0x5e8829=_0x2c71e9[_0x496af4(0x2c0)];}this[_0x496af4(0x3a1)][_0x496af4(0x1aa)](_0x13b9d7,{'history':_0x47938e,'collaboration':_0x122c42});}};Vn=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x2ebb05),K(0x2,_0x3b8ccc(_0x56aa2a))],Vn);let Hn=class{constructor(_0x5acca6,_0xf42fd7){const _0x405230=_0x247c5a;this[_0x405230(0x216)]=_0x5acca6,this[_0x405230(0x30d)]=_0xf42fd7;}[_0x247c5a(0x2df)](_0x23f339){const _0x247ade=_0x247c5a;var _0x13cb3a;let _0x5c1781=this[_0x247ade(0x216)][_0x247ade(0x372)]()??[],_0x15458a=this['_docSelectionManagerService'][_0x247ade(0x3a6)]();if(_0x5c1781[_0x247ade(0x23e)]===0x0||_0x15458a==null)return null;let _0x3a0dee=_0x23f339[_0x247ade(0x29c)],_0x24fc96=[{'id':_0x247ade(0x242),'params':{'unitId':_0x3a0dee,'actions':null,'textRanges':_0x5c1781}}],_0xfe2ae7=this['_transformService'][_0x247ade(0x213)](_0x23f339,_0x24fc96);if(!_0x10ddcf(_0xfe2ae7))throw _0xfe2ae7[_0x247ade(0x3f2)];let _0x33c4fd=(_0x13cb3a=_0xfe2ae7[_0x247ade(0x24b)][0x0])==null?void 0x0:_0x13cb3a[_0x247ade(0x37c)],_0x1e1dd8=_0x33c4fd&&typeof _0x33c4fd==_0x247ade(0x300)&&_0x247ade(0x391)in _0x33c4fd?_0x33c4fd['textRanges']:null;if(!Gn(_0x1e1dd8))return null;let _0x4956dc=Un(_0x23f339[_0x247ade(0x364)][_0x247ade(0x2b4)](_0x3ce6c4=>Kn(_0x3ce6c4[_0x247ade(0x37c)]))?_0x1e1dd8['filter'](_0x31bfc5=>!(_0x247ade(0x397)in _0x31bfc5)):_0x1e1dd8,{..._0x15458a,'options':_0x15458a[_0x247ade(0x361)]?{..._0x15458a[_0x247ade(0x361)],'wholeDocument':!0x1}:void 0x0}),_0x4d18d2={'unitId':_0x3a0dee,'subUnitId':_0x3a0dee};this[_0x247ade(0x216)]['replaceSelectionInfoWithoutRefresh'](_0x4956dc,_0x4d18d2);let _0x23a76f=!0x0;return{'commit':()=>{_0x23a76f=!0x1;},'rollback':()=>{const _0x5b8027=_0x247ade;_0x23a76f&&(_0x23a76f=!0x1,this[_0x5b8027(0x216)][_0x5b8027(0x39f)](_0x15458a,_0x4d18d2));}};}};Hn=q([K(0x0,_0x3b8ccc(_0x16bdd0)),K(0x1,_0x2ebb05)],Hn);function Un(_0x5b3c93,_0x238954){let _0x2292cb=[],_0x507f2f=[];for(let _0x4ffe1e of _0x5b3c93)Wn(_0x4ffe1e)?_0x507f2f['push'](_0x4ffe1e):_0x2292cb['push'](_0x4ffe1e);return{..._0x238954,'textRanges':_0x2292cb,'rectRanges':_0x507f2f};}function Wn(_0x2b644b){return'tableId'in _0x2b644b;}function Gn(_0x2f8436){const _0xa010e=_0x247c5a;return Array[_0xa010e(0x3ca)](_0x2f8436)&&_0x2f8436[_0xa010e(0x27c)](_0x595253=>typeof _0x595253==_0xa010e(0x300)&&!!_0x595253&&_0xa010e(0x328)in _0x595253&&'endOffset'in _0x595253);}function Kn(_0x55ec95){const _0x4d8033=_0x247c5a;return _0x55ec95===_0x4d8033(0x344)?!0x0:Array[_0x4d8033(0x3ca)](_0x55ec95)?_0x55ec95[_0x4d8033(0x2b4)](_0x535e77=>Kn(_0x535e77)):!_0x55ec95||typeof _0x55ec95!='object'?!0x1:Object[_0x4d8033(0x35e)](_0x55ec95)[_0x4d8033(0x2b4)](_0x3653b8=>Kn(_0x3653b8));}let qn=class extends _0x50ca1f{constructor(_0x428ca9,_0x26882d,_0x1f1d4b,_0x1c65b6,_0x1adee4,_0x7af276,_0x19f924){const _0x1d469d=_0x247c5a;super(),this[_0x1d469d(0x2cd)]=_0x428ca9,this[_0x1d469d(0x1cf)]=_0x26882d,this[_0x1d469d(0x378)]=_0x1f1d4b,this[_0x1d469d(0x1d5)]=_0x1c65b6,this[_0x1d469d(0x3c2)]=_0x1adee4,this[_0x1d469d(0x1b7)]=_0x7af276,this[_0x1d469d(0x3e6)]=_0x19f924,G(this,'_status$',new _0x24b100(_0x5c157a['NOT_COLLAB'])),this['_initEntityListener']();}['_initEntityListener'](){const _0x1cff04=_0x247c5a;this[_0x1cff04(0x3a7)](this[_0x1cff04(0x2cd)][_0x1cff04(0x2ba)]['subscribe'](_0x39592c=>{const _0x5a006d=_0x1cff04;_0x39592c instanceof _0x4a9a22&&_0x39592c[_0x5a006d(0x1c3)]({'onTransformIME':_0x30649e=>this[_0x5a006d(0x1cf)][_0x5a006d(0x3ec)](_0x30649e),'onTransformState':_0x5d0468=>this[_0x5a006d(0x378)][_0x5a006d(0x3a2)](_0x5d0468),'onPrepareTransformSelections':_0x5a9845=>this[_0x5a006d(0x1d5)][_0x5a006d(0x2df)](_0x5a9845),'onSyncEditingCollabCursor':_0x1a59bf=>this[_0x5a006d(0x3c2)][_0x5a006d(0x26b)](_0x1a59bf),'onTransformRemoteChangesetByIMECache':_0x12f915=>this[_0x5a006d(0x1cf)][_0x5a006d(0x31c)](_0x12f915),'onTransformRemoteChangesetByStateCache':_0x16385d=>this[_0x5a006d(0x378)][_0x5a006d(0x31c)](_0x16385d)});}));}};qn=q([K(0x0,_0x3b8ccc(_0x501041)),K(0x1,_0x3b8ccc(Bn)),K(0x2,_0x3b8ccc(Vn)),K(0x3,_0x3b8ccc(Hn)),K(0x4,_0x3b8ccc(_n)),K(0x5,_0x4a0381),K(0x6,_0x3b8ccc(_0x5a18da))],qn);let Jn=class extends _0x50ca1f{constructor(_0x1ced60,_0x849185,_0x27d891,_0x22cdc0){const _0x2e4046=_0x247c5a;super(),this[_0x2e4046(0x325)]=_0x1ced60,this['_httpService']=_0x849185,this[_0x2e4046(0x2be)]=_0x27d891,this[_0x2e4046(0x32d)]=_0x22cdc0,G(this,_0x2e4046(0x2b0),void 0x0),this[_0x2e4046(0x302)]();}['_init'](){const _0x3f7c60=_0x247c5a;this[_0x3f7c60(0x368)](),this[_0x3f7c60(0x214)](),this[_0x3f7c60(0x25a)](),this[_0x3f7c60(0x1f4)]();}[_0x247c5a(0x1f4)](){const _0xaed843=_0x247c5a;this[_0xaed843(0x3a7)](this['_collaborationSessionService'][_0xaed843(0x2c9)]['subscribe'](_0x2ff9dc=>{const _0x5aaddc=_0xaed843;this['_memberID']=_0x2ff9dc==null?void 0x0:_0x2ff9dc[_0x5aaddc(0x2f2)];}));}['_initWindowErrorListener'](){const _0xa51d3f=_0x247c5a;let _0xf0731f=_0x5c2978=>{const _0x18bac6=_0x2e9b;var _0x23a357;this['_uploadLog'](_0x18bac6(0x3f2),_0x18bac6(0x1c5)+_0x5c2978['message']+'\x20at\x20'+_0x5c2978['filename']+':'+_0x5c2978[_0x18bac6(0x36b)]+':'+_0x5c2978['colno']+'\x0a'+(((_0x23a357=_0x5c2978[_0x18bac6(0x3f2)])==null?void 0x0:_0x23a357[_0x18bac6(0x233)])||''));};window[_0xa51d3f(0x2e3)]('error',_0xf0731f),this[_0xa51d3f(0x3a7)](()=>{const _0x5ae89b=_0xa51d3f;window[_0x5ae89b(0x1bb)](_0x5ae89b(0x3f2),_0xf0731f);});}[_0x247c5a(0x214)](){const _0x26c911=_0x247c5a;let _0x3a4935=_0x4215e6=>{const _0x173ab8=_0x2e9b;this[_0x173ab8(0x2c5)](_0x173ab8(0x3f2),_0x173ab8(0x330)+_0x4215e6[_0x173ab8(0x1e2)]);};window['addEventListener'](_0x26c911(0x279),_0x3a4935),this[_0x26c911(0x3a7)](()=>{const _0x39e540=_0x26c911;window['removeEventListener'](_0x39e540(0x279),_0x3a4935);});}[_0x247c5a(0x25a)](){const _0x59c6cd=_0x247c5a;let _0x14af05=this[_0x59c6cd(0x2be)][_0x59c6cd(0x3f2)][_0x59c6cd(0x28f)](this[_0x59c6cd(0x2be)]);this[_0x59c6cd(0x2be)][_0x59c6cd(0x3f2)]=(..._0x3bffe3)=>{const _0x36b003=_0x59c6cd;let _0x1b586b=_0x3bffe3['map'](_0x44af4d=>_0x44af4d instanceof Error?_0x44af4d['message']+'\x0a'+_0x44af4d[_0x36b003(0x233)]:String(_0x44af4d))[_0x36b003(0x2b5)]('\x20');this[_0x36b003(0x2c5)]('error',_0x36b003(0x262)+_0x1b586b),_0x14af05(..._0x3bffe3);},this[_0x59c6cd(0x3a7)](()=>{const _0x1a1733=_0x59c6cd;this[_0x1a1733(0x2be)][_0x1a1733(0x3f2)]=_0x14af05;});}[_0x247c5a(0x2c5)](_0x518b63,_0x577a4a){const _0x2b25b6=_0x247c5a;try{let _0x78853f={'userId':this[_0x2b25b6(0x2b0)],'logLabel':_0x518b63,'content':_0x577a4a};this[_0x2b25b6(0x1e3)][_0x2b25b6(0x20e)](_0x2b25b6(0x241),{'body':_0x78853f})[_0x2b25b6(0x1ac)](()=>{});}catch{}}};Jn=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0x583b3f),K(0x3,_0x3b8ccc(_0xed7c81))],Jn);function Yn({state$:_0x27a554}){const _0x48ab3a=_0x247c5a;let _0x19b206=_0x47ef38(_0x27a554,null,!0x0);return _0x19b206?_0x10ab35(_0x48ab3a(0x202),{'data-u-comp':_0x48ab3a(0x3bb),'role':'alert','className':_0x48ab3a(0x3ae),'children':[_0x5b3a46(_0x14cc8f,{'className':_0x48ab3a(0x2e8)}),_0x5b3a46(_0x48ab3a(0x1bd),{'children':_0x19b206[_0x48ab3a(0x230)]}),_0x5b3a46(_0x58172d,{'size':_0x48ab3a(0x22b),'variant':_0x48ab3a(0x2fe),'onClick':()=>window['location'][_0x48ab3a(0x26c)](),'children':_0x19b206['refreshLabel']})]}):null;}const Xn=_0x247c5a(0x23c);let Zn=class extends _0x50ca1f{constructor(_0x54df5d,_0x4f8120,_0x227b49,_0x38e097,_0x255e53,_0x53f511){const _0x845fa1=_0x247c5a;super(),this[_0x845fa1(0x27f)]=_0x54df5d,this[_0x845fa1(0x1b7)]=_0x4f8120,this[_0x845fa1(0x3e6)]=_0x227b49,this[_0x845fa1(0x325)]=_0x38e097,this[_0x845fa1(0x1b6)]=_0x53f511,G(this,_0x845fa1(0x2f0),new _0x24b100(null)),G(this,_0x845fa1(0x359),new Set()),G(this,'_blockProgressWatches',new Map()),G(this,'_latestStates',new Map()),G(this,'timeoutState$',this[_0x845fa1(0x2f0)][_0x845fa1(0x3d8)]());let _0x3fa948=()=>_0x30be06(Yn,{'state$':this[_0x845fa1(0x356)]});this[_0x845fa1(0x3a7)](_0x255e53[_0x845fa1(0x324)](_0x4fb6b8['GLOBAL'],()=>_0x107421(_0x3fa948,this[_0x845fa1(0x325)]))),this[_0x845fa1(0x3a7)](this[_0x845fa1(0x27f)]['state$'][_0x845fa1(0x2d5)](_0x1964c2=>{const _0x116575=_0x845fa1;this[_0x116575(0x40d)]=_0x1964c2,_0x1964c2[_0x116575(0x409)](_0x50ff66=>this[_0x116575(0x36c)](_0x50ff66));})),this[_0x845fa1(0x3a7)](this[_0x845fa1(0x1b6)]['urlChange$']['subscribe'](()=>{const _0x4f26af=_0x845fa1;this['_latestStates'][_0x4f26af(0x409)](_0x49e33a=>this[_0x4f26af(0x36c)](_0x49e33a));}));}['dispose'](){const _0x5e2115=_0x247c5a;this[_0x5e2115(0x359)][_0x5e2115(0x409)](_0x57a539=>this['_messageService'][_0x5e2115(0x3bc)](_0x57a539)),this['_messageIds']['clear'](),this[_0x5e2115(0x386)][_0x5e2115(0x409)](({timeoutId:_0x1b3b89})=>clearTimeout(_0x1b3b89)),this[_0x5e2115(0x386)][_0x5e2115(0x3cd)](),this[_0x5e2115(0x2f0)][_0x5e2115(0x36f)](),super[_0x5e2115(0x204)]();}[_0x247c5a(0x36c)](_0x37b893){const _0x5388df=_0x247c5a;let _0xcdac66=''+Xn+_0x37b893[_0x5388df(0x399)];if(_0x37b893['stage']===_0x338f29[_0x5388df(0x298)]){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this['_clearTimeoutState'](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)]['delete'](_0xcdac66);return;}if(!this[_0x5388df(0x3d5)](_0x37b893[_0x5388df(0x399)])){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x269)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)][_0x5388df(0x2ea)](_0xcdac66);return;}if(_0x37b893['stage']===_0x338f29[_0x5388df(0x1c2)]){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x269)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x30a)]({'id':_0xcdac66,'type':_0x2f977e[_0x5388df(0x3d2)],'content':this[_0x5388df(0x3e6)]['t'](_0x5388df(0x3ea))}),this[_0x5388df(0x359)][_0x5388df(0x2ea)](_0xcdac66);return;}if(_0x37b893[_0x5388df(0x2e0)]!==_0x338f29[_0x5388df(0x3d3)]||_0x37b893[_0x5388df(0x232)]<=0xa){this['_clearBlockProgressWatch'](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)]['delete'](_0xcdac66);return;}this[_0x5388df(0x3a5)](_0x37b893)||(this[_0x5388df(0x1b7)][_0x5388df(0x30a)]({'id':_0xcdac66,'type':_0x2f977e['Loading'],'duration':0x1/0x0,'content':this['_localeService']['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x37b893[_0x5388df(0x2e2)]+'/'+_0x37b893['totalBlocks']}),this['_messageIds'][_0x5388df(0x23b)](_0xcdac66));}[_0x247c5a(0x3a5)](_0x4026a4){const _0x47ae6b=_0x247c5a;let _0x10b9df=this['_blockProgressWatches'][_0x47ae6b(0x211)](_0x4026a4['unitId']);if((_0x10b9df==null?void 0x0:_0x10b9df[_0x47ae6b(0x2e2)])===_0x4026a4[_0x47ae6b(0x2e2)])return _0x10b9df['timedOut'];this[_0x47ae6b(0x1fe)](_0x4026a4[_0x47ae6b(0x399)]);let _0x1b8faa=setTimeout(()=>{const _0x433ef1=_0x47ae6b;let _0x413a88=this[_0x433ef1(0x386)][_0x433ef1(0x211)](_0x4026a4[_0x433ef1(0x399)]);if(!_0x413a88||_0x413a88[_0x433ef1(0x3ab)]!==_0x1b8faa)return;_0x413a88[_0x433ef1(0x1cd)]=!0x0;let _0x750331=''+Xn+_0x4026a4[_0x433ef1(0x399)];this['_messageService'][_0x433ef1(0x3bc)](_0x750331),this[_0x433ef1(0x359)][_0x433ef1(0x2ea)](_0x750331),this['_timeoutState$'][_0x433ef1(0x1c0)]({'unitId':_0x4026a4['unitId'],'content':this['_localeService']['t'](_0x433ef1(0x37b),String(_0x4026a4[_0x433ef1(0x2e2)]),String(_0x4026a4[_0x433ef1(0x232)])),'refreshLabel':this[_0x433ef1(0x3e6)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this['_blockProgressWatches'][_0x47ae6b(0x21f)](_0x4026a4[_0x47ae6b(0x399)],{'loadedBlocks':_0x4026a4['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x1b8faa}),!0x1;}[_0x247c5a(0x1fe)](_0x425717){const _0x2016de=_0x247c5a;let _0x17b122=this[_0x2016de(0x386)][_0x2016de(0x211)](_0x425717);_0x17b122&&(clearTimeout(_0x17b122[_0x2016de(0x3ab)]),this[_0x2016de(0x386)]['delete'](_0x425717),this[_0x2016de(0x269)](_0x425717));}[_0x247c5a(0x269)](_0x1eb87e){const _0x3cd55e=_0x247c5a;var _0x538374;((_0x538374=this[_0x3cd55e(0x2f0)]['value'])==null?void 0x0:_0x538374[_0x3cd55e(0x399)])===_0x1eb87e&&this[_0x3cd55e(0x2f0)][_0x3cd55e(0x1c0)](null);}[_0x247c5a(0x3d5)](_0x35135a){const _0x23e918=_0x247c5a;let _0x5dbb68=this[_0x23e918(0x1b6)][_0x23e918(0x20d)](_0x23e918(0x400));return!_0x5dbb68||_0x5dbb68===_0x35135a;}};Zn=q([K(0x0,_0x3b8ccc(_0x1a827f)),K(0x1,_0x4a0381),K(0x2,_0x3b8ccc(_0x5a18da)),K(0x3,_0x3b8ccc(_0x5c9bca)),K(0x4,_0x4bd601),K(0x5,Rn)],Zn);let Qn=class extends _0x50ca1f{constructor(_0x2f9409,_0x18e921,_0x22d518){const _0x10f3a1=_0x247c5a;super(),this[_0x10f3a1(0x3e5)]=_0x2f9409,this[_0x10f3a1(0x293)]=_0x18e921,this[_0x10f3a1(0x1cb)]=_0x22d518,G(this,'_cachedData',new Map()),G(this,_0x10f3a1(0x1b2),new Map()),G(this,_0x10f3a1(0x1d7),new Map()),G(this,_0x10f3a1(0x2ab),!0x1);}['disableLocalCache'](){const _0x3ac10a=_0x247c5a;this[_0x3ac10a(0x2ab)]=!0x0;}['enableLocalCache'](){const _0x2eb60e=_0x247c5a;this[_0x2eb60e(0x2ab)]=!0x1;}get[_0x247c5a(0x30b)](){const _0x71825c=_0x247c5a;return this[_0x71825c(0x1b2)];}[_0x247c5a(0x204)](){const _0x153a8f=_0x247c5a;this[_0x153a8f(0x38c)]()[_0x153a8f(0x1fc)](()=>super['dispose']());}async[_0x247c5a(0x2bc)](_0x279398){const _0x156b34=_0x247c5a;return this[_0x156b34(0x2ab)]?null:this[_0x156b34(0x293)][_0x156b34(0x39d)](_0x98c216(_0x279398));}async['saveOfflineData'](_0x182fbf,_0x172f28){const _0x21ba6d=_0x247c5a;let _0x103e49=this[_0x21ba6d(0x293)][_0x21ba6d(0x349)](_0x98c216(_0x182fbf),_0x172f28);return this['_trackActiveSaveTask'](_0x182fbf,_0x103e49),!!await _0x103e49;}async[_0x247c5a(0x32b)](_0x87b3e6,_0xe7e973){const _0x292594=_0x247c5a;let _0x5682bb=this[_0x292594(0x3b7)][_0x292594(0x211)](_0x87b3e6)??await this[_0x292594(0x293)][_0x292594(0x39d)](_0x98c216(_0x87b3e6));if(!_0x5682bb)return;let _0x212d3e=Date[_0x292594(0x218)](),_0x169637=new Date(_0x212d3e)[_0x292594(0x389)]();await this[_0x292594(0x293)][_0x292594(0x349)](_0x98c216(_0x87b3e6)+_0x292594(0x2e4)+_0x212d3e,{'reason':_0xe7e973,'createdAt':_0x169637,'data':_0x5682bb});}async[_0x247c5a(0x22c)](_0x4130ed){const _0x295c38=_0x247c5a;let _0x24af77=this['_saveTaskMap'][_0x295c38(0x211)](_0x4130ed);_0x24af77!==void 0x0&&(window['clearTimeout'](_0x24af77),this['_saveTaskMap'][_0x295c38(0x2ea)](_0x4130ed));let _0xb15de6=this[_0x295c38(0x1d7)]['get'](_0x4130ed);_0xb15de6&&await Promise['allSettled'](_0xb15de6),this[_0x295c38(0x3b7)][_0x295c38(0x2ea)](_0x4130ed),await this['_localStorageService'][_0x295c38(0x3d0)](_0x98c216(_0x4130ed));}[_0x247c5a(0x3a0)](_0x2f447f,_0x3897ef,_0x348ea6,_0x3db9ad){const _0x26f30d=_0x247c5a;let _0x54f46a=this[_0x26f30d(0x1cb)][_0x26f30d(0x323)](_0x2f447f);this[_0x26f30d(0x3b7)][_0x26f30d(0x21f)](_0x2f447f,{'unitID':_0x2f447f,'type':_0x3897ef,'awaitingChangeset':_0x348ea6,'mutations':_0x3db9ad,'rev':_0x54f46a}),this['_saveTaskMap'][_0x26f30d(0x2ed)](_0x2f447f)||this[_0x26f30d(0x1ee)](_0x2f447f);}[_0x247c5a(0x1ee)](_0xcb3263){const _0x1b6275=_0x247c5a;let _0x5b9dcb=this[_0x1b6275(0x255)]();_0x5b9dcb===0x0?this[_0x1b6275(0x2f5)](_0xcb3263):this[_0x1b6275(0x1b2)]['set'](_0xcb3263,window[_0x1b6275(0x1c8)](()=>this[_0x1b6275(0x2f5)](_0xcb3263),_0x5b9dcb));}[_0x247c5a(0x255)](){const _0x284986=_0x247c5a;return this['_configService'][_0x284986(0x29f)](_0x39f139)??_0x56be35;}[_0x247c5a(0x2f5)](_0x2e4c87){const _0x5b7f85=_0x247c5a;let _0x44bd02=this['_saveTaskMap'][_0x5b7f85(0x211)](_0x2e4c87);_0x44bd02!==void 0x0&&window[_0x5b7f85(0x249)](_0x44bd02);let _0x3be44d=this[_0x5b7f85(0x293)][_0x5b7f85(0x349)](_0x98c216(_0x2e4c87),this['_cachedData']['get'](_0x2e4c87))[_0x5b7f85(0x1fc)](()=>this[_0x5b7f85(0x1b2)][_0x5b7f85(0x2ea)](_0x2e4c87));return this[_0x5b7f85(0x2b9)](_0x2e4c87,_0x3be44d),_0x3be44d;}['_trackActiveSaveTask'](_0x471151,_0x47e927){const _0x506a1f=_0x247c5a;let _0x5a7d87=this['_activeSaveTaskMap'][_0x506a1f(0x211)](_0x471151);_0x5a7d87||(_0x5a7d87=new Set(),this['_activeSaveTaskMap'][_0x506a1f(0x21f)](_0x471151,_0x5a7d87)),_0x5a7d87[_0x506a1f(0x23b)](_0x47e927);let _0x1025ed=()=>{const _0x45000b=_0x506a1f;_0x5a7d87['delete'](_0x47e927),_0x5a7d87[_0x45000b(0x256)]===0x0&&this['_activeSaveTaskMap'][_0x45000b(0x2ea)](_0x471151);};_0x47e927[_0x506a1f(0x1fc)](_0x1025ed,_0x1025ed);}async['exhaustSavingTask'](){const _0x1c5535=_0x247c5a;let _0xf09a33=[];this[_0x1c5535(0x1b2)]['forEach']((_0x3f341c,_0x335a7d)=>{const _0x436ed0=_0x1c5535;window[_0x436ed0(0x249)](_0x3f341c),_0xf09a33['push'](this[_0x436ed0(0x2f5)](_0x335a7d)['then'](()=>{const _0x4af67c=_0x436ed0;this[_0x4af67c(0x1b2)][_0x4af67c(0x2ea)](_0x335a7d);}));}),await Promise[_0x1c5535(0x3c3)](_0xf09a33);}};Qn=q([K(0x0,_0xdca818),K(0x1,_0x24200d),K(0x2,_0x3b8ccc(_0x49db3a))],Qn);var $n=class extends _0x3318cc{constructor(){const _0x38e8a6=_0x247c5a;super(),G(this,_0x38e8a6(0x210),void 0x0),this[_0x38e8a6(0x210)]=_0x1412e7(window,_0x38e8a6(0x401))['pipe'](_0x3fa56b(this[_0x38e8a6(0x40c)]),_0x28413a({'bufferSize':0x1,'refCount':!0x0}),_0x13e54e(void 0x0));}[_0x247c5a(0x3b4)](_0x1eb4e0,_0x495fed,_0x11c354=!0x1){const _0x492b3f=_0x247c5a;let _0x1a50a6=new URL(window['location']['href']);_0x1a50a6[_0x492b3f(0x2f1)]['set'](_0x1eb4e0,_0x495fed),_0x11c354?window['history'][_0x492b3f(0x34c)]('','',_0x1a50a6[_0x492b3f(0x208)]()):window['history'][_0x492b3f(0x2d1)]('','',_0x1a50a6[_0x492b3f(0x208)]());}[_0x247c5a(0x2fc)](_0x4395b0,_0x45ddf7=!0x1){const _0x3d988e=_0x247c5a;let _0x3c6eb1=new URL(window[_0x3d988e(0x274)][_0x3d988e(0x2c3)]);_0x3c6eb1[_0x3d988e(0x2f1)][_0x3d988e(0x2ea)](_0x4395b0),_0x45ddf7?window[_0x3d988e(0x209)]['replaceState']('','',_0x3c6eb1[_0x3d988e(0x208)]()):window[_0x3d988e(0x209)][_0x3d988e(0x2d1)]('','',_0x3c6eb1['toString']());}[_0x247c5a(0x20d)](_0x18ef73){const _0x58e690=_0x247c5a;return new URL(window['location'][_0x58e690(0x2c3)])[_0x58e690(0x2f1)][_0x58e690(0x211)](_0x18ef73)??void 0x0;}};let $=class extends _0x50441f{constructor(_0x29d422=fn,_0x48aca5,_0x817941,_0x53644a,_0x52c8f6){const _0x19fa3d=_0x247c5a;super(),this[_0x19fa3d(0x3a3)]=_0x29d422,this[_0x19fa3d(0x37f)]=_0x48aca5,this[_0x19fa3d(0x325)]=_0x817941,this[_0x19fa3d(0x3e5)]=_0x53644a,this[_0x19fa3d(0x3fb)]=_0x52c8f6;let {..._0x170623}=_0x1ee81d({},fn,this[_0x19fa3d(0x3a3)]);this[_0x19fa3d(0x3e5)][_0x19fa3d(0x3e7)](_0x19fa3d(0x340),_0x170623);}[_0x247c5a(0x1db)](){const _0x18ac4b=_0x247c5a;this[_0x18ac4b(0x318)](),this[_0x18ac4b(0x3a7)](this[_0x18ac4b(0x3fb)][_0x18ac4b(0x2aa)](Y)),this[_0x18ac4b(0x31b)]();}[_0x247c5a(0x396)](){const _0x32414c=_0x247c5a;this[_0x32414c(0x201)]();}[_0x247c5a(0x318)](){const _0x16538e=_0x247c5a;var _0x266dbe;let _0x4fd978=[[mn],[Rn,{'useClass':$n}],[_0x4b4083,{'useClass':_0x3c7443}],[_0x1974ac,{'useClass':Qn}],[J],[Ln],[Z],[Q],[zn],[Zn]];this[_0x16538e(0x3a3)][_0x16538e(0x35b)]!==!0x1&&_0x4fd978[_0x16538e(0x319)]([Hn],[Bn],[Vn],[_n],[qn],[X]),this[_0x16538e(0x3a3)]['enableFrontendLog']&&_0x4fd978[_0x16538e(0x319)]([Jn]),_0x3b0029(this[_0x16538e(0x325)],_0x47a538(_0x4fd978,(_0x266dbe=this[_0x16538e(0x3a3)])==null?void 0x0:_0x266dbe[_0x16538e(0x2c8)]));}['_registerRenderDependencies'](){const _0x438067=_0x247c5a;this[_0x438067(0x3a3)][_0x438067(0x35b)]!==!0x1&&this[_0x438067(0x3a7)](this['_renderManagerService'][_0x438067(0x354)](_0x98e284[_0x438067(0x3b2)],[Dn])),this[_0x438067(0x3a7)](this[_0x438067(0x37f)][_0x438067(0x354)](_0x98e284[_0x438067(0x3bd)],[kn]));}[_0x247c5a(0x31b)](){const _0xeefa4=_0x247c5a;_0x327d6b(this[_0xeefa4(0x325)],[[Z],[Q],[J],[Ln],[zn],[Zn]]),this[_0xeefa4(0x3a3)]['enableDocumentCollaborationUI']!==!0x1&&_0x327d6b(this[_0xeefa4(0x325)],[[qn],[X]]),this['_config']['enableFrontendLog']&&_0x327d6b(this[_0xeefa4(0x325)],[[Jn]]);}};G($,_0x247c5a(0x245),_0x247c5a(0x252)),G($,_0x247c5a(0x21c),un),G($,_0x247c5a(0x3c4),dn),$=q([_0x3e9939(_0x3df221,_0x2f83a4,_0x5161e3,_0x3bb077,_0x1724e3,_0x74c715,_0x1116a6),K(0x1,_0x34d5fc),K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0xdca818),K(0x4,_0x3fa174)],$);let er=class extends _0x25c99b{constructor(_0x21d2e5,_0x42d501,_0x42a6e2,_0x188707,_0x227805){super(_0x21d2e5,_0x42d501,_0x42a6e2,_0x188707,_0x227805);}async[_0x247c5a(0x21b)](_0x5a929d){const _0x1ba774=_0x247c5a;let _0x4200cf=await this[_0x1ba774(0x2da)](),_0x43f348=this[_0x1ba774(0x303)](_0x5a929d,_0x4200cf);return this['_doCreateSocket'](_0x43f348);}[_0x247c5a(0x303)](_0x2d6eca,_0x14d649){const _0x5357ea=_0x247c5a;let _0x26c1cd=typeof window>'u'?new URL(_0x2d6eca):new URL(_0x2d6eca,window[_0x5357ea(0x274)][_0x5357ea(0x3d9)]);_0x26c1cd[_0x5357ea(0x2f1)][_0x5357ea(0x21f)](_0x5357ea(0x370),_0x14d649);let _0x3106c4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5357ea(0x274)][_0x5357ea(0x2e1)]);return _0x3106c4[_0x5357ea(0x211)]('runId')&&_0x26c1cd[_0x5357ea(0x2f1)][_0x5357ea(0x21f)](_0x5357ea(0x2d3),_0x3106c4[_0x5357ea(0x211)]('runId')),_0x26c1cd[_0x5357ea(0x208)]();}async[_0x247c5a(0x2da)](){const _0x6b9947=_0x247c5a;var _0x74a968;let _0x97e070=this['_configService'][_0x6b9947(0x29f)](_0xc7ece1),_0x25bf22=(_0x97e070==null?void 0x0:_0x97e070[_0x6b9947(0x327)])??_0x3a4d7e;return((_0x74a968=(await this[_0x6b9947(0x1e3)][_0x6b9947(0x211)](_0x25bf22,{'headers':{'Content-Type':_0x6b9947(0x37e)}}))[_0x6b9947(0x2d9)])==null?void 0x0:_0x74a968['ticket'])??'';}};er=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0xdca818),K(0x3,_0x583b3f),K(0x4,_0x3b6c27)],er);let tr=class extends _0x50ca1f{constructor(_0x430ed6,_0x2c8633,_0x2c8c28){const _0x4ba7db=_0x247c5a;super(),this[_0x4ba7db(0x219)]=_0x430ed6,this['_httpService']=_0x2c8633,this['_configService']=_0x2c8c28;}async[_0x247c5a(0x407)](_0x411377,_0x2eaa87,_0x594aa3,..._0x51f2ce){const _0x568ad3=_0x247c5a;let _0x15ec09=this[_0x568ad3(0x219)]['getFocusedUnit']();if(!_0x15ec09)throw Error(_0x568ad3(0x36d));let _0x800198=(this[_0x568ad3(0x3e5)][_0x568ad3(0x29f)](_0x1db53f)??_0x41c70c)+'/'+_0x411377+_0x568ad3(0x280)+_0x2eaa87,_0x57d1bd={'scriptId':_0x411377,'runId':new URL(window[_0x568ad3(0x274)]['href'])[_0x568ad3(0x2f1)][_0x568ad3(0x211)]('runId')??'','function':_0x2eaa87,'unitId':_0x15ec09[_0x568ad3(0x308)](),'argsOfFunction':JSON[_0x568ad3(0x257)](_0x51f2ce),'invokeId':_0x594aa3[_0x568ad3(0x234)]??'','executionId':_0x594aa3[_0x568ad3(0x32a)]??''};try{let _0x5cefc6=await this[_0x568ad3(0x1e3)][_0x568ad3(0x20e)](_0x800198,{'body':_0x57d1bd});return _0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x3f2)]&&_0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x3f2)][_0x568ad3(0x2b2)]!==_0x530575['OK']?_0x568ad3(0x3d4):_0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x222)];}catch{return _0x568ad3(0x3d4);}}};tr=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0xdca818)],tr);const nr=0x7530,rr='ACTIVE_UNIT_EVENT_CHANNEL';var ir=class extends _0x50ca1f{constructor(){const _0x13bb30=_0x247c5a;super(),G(this,_0x13bb30(0x3fc),_0x4a2001()),G(this,'_selfUnitIDs',new Set()),G(this,'_unitOnClients',new Map()),G(this,_0x13bb30(0x3d7),null),G(this,'_clearOtherTimers',new Map()),G(this,'_unitStatus',new Map()),this[_0x13bb30(0x302)]();}[_0x247c5a(0x204)](){const _0x4432b1=_0x247c5a;super[_0x4432b1(0x204)](),this[_0x4432b1(0x2c2)][_0x4432b1(0x409)]((_0x5910de,_0x4cb8f6)=>this[_0x4432b1(0x20a)](_0x4cb8f6)),this[_0x4432b1(0x3d7)]&&window[_0x4432b1(0x2d4)](this[_0x4432b1(0x3d7)]);}[_0x247c5a(0x39c)](_0x3e114e){const _0x2fc8d5=_0x247c5a;return this[_0x2fc8d5(0x1d0)](_0x3e114e)['pipe'](_0xc32d41());}[_0x247c5a(0x215)](_0x41c769){const _0x1eaf40=_0x247c5a;this[_0x1eaf40(0x2db)]['size']===0x0&&this[_0x1eaf40(0x357)](),this[_0x1eaf40(0x2db)]['add'](_0x41c769),this['_send']({'type':0x0,'memberID':this[_0x1eaf40(0x3fc)],'unitIDs':[_0x41c769],'isForwarded':!0x1});}[_0x247c5a(0x25f)](_0x12dbec){const _0x3045b9=_0x247c5a;this[_0x3045b9(0x2db)][_0x3045b9(0x2ea)](_0x12dbec),this['_selfUnitIDs']['size']===0x0&&this[_0x3045b9(0x3d7)]&&window[_0x3045b9(0x2d4)](this['_heartbeatTimer']);}[_0x247c5a(0x302)](){const _0x39ebbe=_0x247c5a;this[_0x39ebbe(0x3a7)](_0x265f18(_0x1412e7(window,'storage')[_0x39ebbe(0x2d5)](_0x3c97cd=>{const _0xc85310=_0x39ebbe;if(_0x3c97cd[_0xc85310(0x2f6)]!==rr||!_0x3c97cd['newValue'])return;let _0x1020b7=JSON['parse'](_0x3c97cd['newValue']);this[_0xc85310(0x20f)](_0x1020b7);}))),window['addEventListener'](_0x39ebbe(0x383),()=>this['_send']({'type':0x1,'memberID':this[_0x39ebbe(0x3fc)],'unitIDs':Array[_0x39ebbe(0x287)](this[_0x39ebbe(0x2db)])}));}[_0x247c5a(0x20f)](_0x4bc15a){const _0x357dfe=_0x247c5a;switch(_0x4bc15a[_0x357dfe(0x2d8)]){case 0x0:this[_0x357dfe(0x253)](_0x4bc15a);break;case 0x1:this[_0x357dfe(0x2fa)](_0x4bc15a);break;case 0x2:this[_0x357dfe(0x3a4)](_0x4bc15a);}}[_0x247c5a(0x253)](_0x55f4ca){const _0x43ec82=_0x247c5a;let {unitIDs:_0x57d578,memberID:_0x53eb6f,isForwarded:_0x220ba8}=_0x55f4ca;_0x57d578[_0x43ec82(0x409)](_0x4fae80=>{const _0x5d51db=_0x43ec82;if(!_0x220ba8&&this[_0x5d51db(0x289)][_0x5d51db(0x2ed)](_0x4fae80)&&this[_0x5d51db(0x1d0)](_0x4fae80)[_0x5d51db(0x1c0)](_0x258828['OTHER_CLIENTS_EDITING']),!this[_0x5d51db(0x289)][_0x5d51db(0x2ed)](_0x4fae80)||!this[_0x5d51db(0x289)][_0x5d51db(0x211)](_0x4fae80)[_0x5d51db(0x2ed)](_0x53eb6f)){let _0x319dfd=this['_unitOnClients'][_0x5d51db(0x211)](_0x4fae80)||new Set();_0x319dfd['add'](_0x53eb6f),this[_0x5d51db(0x289)][_0x5d51db(0x21f)](_0x4fae80,_0x319dfd),this['_scheduleClearOtherTimer'](_0x53eb6f);}}),_0x220ba8||this[_0x43ec82(0x376)]({'type':0x0,'memberID':this[_0x43ec82(0x3fc)],'unitIDs':[...this[_0x43ec82(0x2db)]],'isForwarded':!0x0});}[_0x247c5a(0x23f)](_0xc5478a){const _0x4b8469=_0x247c5a;this['_removeClearOtherTimer'](_0xc5478a);let _0x3854bf=window[_0x4b8469(0x1c8)](()=>{const _0x57d16b=_0x4b8469;this[_0x57d16b(0x289)]['forEach'](_0x5a3311=>{const _0x17b116=_0x57d16b;_0x5a3311[_0x17b116(0x2ea)](_0xc5478a);});},nr*0x2);this[_0x4b8469(0x2c2)]['set'](_0xc5478a,_0x3854bf);}[_0x247c5a(0x20a)](_0x2bab7d){const _0x61cb3=_0x247c5a;if(this[_0x61cb3(0x2c2)][_0x61cb3(0x2ed)](_0x2bab7d)){let _0x22723f=this[_0x61cb3(0x2c2)][_0x61cb3(0x211)](_0x2bab7d);_0x22723f&&window['clearTimeout'](_0x22723f),this[_0x61cb3(0x2c2)][_0x61cb3(0x21f)](_0x2bab7d,null);}}[_0x247c5a(0x2fa)](_0x538da5){const _0x2a9c6d=_0x247c5a;let {memberID:_0x40cee5,unitIDs:_0x5dda0b}=_0x538da5;_0x5dda0b[_0x2a9c6d(0x409)](_0x351c62=>{const _0x55af1f=_0x2a9c6d;var _0x5cf7e5;let _0x5e9d84=this['_unitOnClients'][_0x55af1f(0x211)](_0x351c62);_0x5e9d84&&(_0x5e9d84['delete'](_0x40cee5),(_0x5cf7e5=this['_ensureSubject'](_0x351c62))==null||_0x5cf7e5[_0x55af1f(0x1c0)](_0x5e9d84[_0x55af1f(0x256)]===0x0?_0x258828[_0x55af1f(0x278)]:_0x258828['OTHER_CLIENTS_EDITING']));}),this[_0x2a9c6d(0x20a)](_0x40cee5);}[_0x247c5a(0x3a4)](_0x49e9d8){const _0x7ac323=_0x247c5a;this[_0x7ac323(0x23f)](_0x49e9d8[_0x7ac323(0x2f2)]);}[_0x247c5a(0x376)](_0x25b7bd){const _0xc7dfe4=_0x247c5a;localStorage[_0xc7dfe4(0x349)](rr,JSON[_0xc7dfe4(0x257)](_0x25b7bd));}['_scheduleHeartbeat'](){const _0x311fe1=_0x247c5a;this['_heartbeatTimer']=window[_0x311fe1(0x395)](()=>{const _0x38ec09=_0x311fe1;this[_0x38ec09(0x376)]({'type':0x2,'memberID':this[_0x38ec09(0x3fc)]});},nr);}['_ensureSubject'](_0x426355){const _0x414cb5=_0x247c5a;return this['_unitStatus']['has'](_0x426355)||this[_0x414cb5(0x36a)][_0x414cb5(0x21f)](_0x426355,new _0x24b100(_0x258828[_0x414cb5(0x278)])),this[_0x414cb5(0x36a)][_0x414cb5(0x211)](_0x426355);}};export{er as BrowserCollaborationSocketService,J as DesktopCollaborationStatusDisplayController,Rn as IURLService,tr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService};
1
+ function _0x47c1(_0x538897,_0x1ca550){_0x538897=_0x538897-0xd2;const _0x13ce38=_0x13ce();let _0x47c122=_0x13ce38[_0x538897];return _0x47c122;}const _0x43b1c2=_0x47c1;function _0x13ce(){const _0x3d600c=['replaceState','enableOfflineEditing','wsSessionTicketUrl','disableLocalCache','getMemberID','content','6oFzsRa','getCellIndexByOffset','addHandlerCallback','next','prototype','_startBlinking','top','_scheduleSaving','transformMutationsWithChangeset','getColorFromTheme','unshift','_heartbeatTimer','highlightSecond','_watchBlockProgress','getOffsetConfig','_clearTimeoutState','_handleHeartbeatEvent','_blinkIntervalTimer','_handleLeaveEvent','MoveRangeCommandId','_assignedColors','237544mRuSyK','unsubscribe','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','subscribe','PERMISSION_DENIED','_entities','transformMutation','_collaborationSessionService','_retryConflictCacheClear','InsertRowCommandId','_uiPartsService','[CollaborationDataLoaderController]','endOffset','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','collaboration-client-ui.conflict.processing','subscribeEvent','ONLINE','_monkeyPatchLogService','HEADER','location','reconnect','focused$','name','getRenderUnitById','_startDocCollabCursor','getActiveSheet','unitID','symbol','state$','stack','pushState','showText','activate','dispose$','call','collaboration-client-ui.collabStatus.syncing','preventDefault','tableSource','entityInit$','_updateURLWithCurrentState','fill','unitType','version','getValue','div','_docClipboardService','number','refreshLabel','_isBlinkVisible','endColumn','setRemotePresence','contains','_registerRenderDependencies','bold\x2013px\x20Arial,\x20sans-serif','key','_ensureSubject','_status$','setParam','toRgbString','restore','status','unitId','_httpService','_renderManagerService','setInterval','getRangePointData','_docTransformStateCacheService','_setupSubUnitSync','_collaborationUIEventService','RemoveRowCommandId','Loading','collaboration-client-ui.conflict.clearFailed','_removeRemotePresence','collab-rect-range-','labelHorizontalPosition','NO_OTHER_CLIENTS_EDITING','_highlight','_initPresenceStatusComponents','resize','univer-appearance-none','init','0.2)','columnIndex','_unitOnClients','_memberService','createInstance','syncEditingCollabCursor','hide','_onCursorDelete','_highlightSecond','finally','_getSheetObject','post','_adapter','_refreshCollabCursors','toISOString','_cursorShapes','mutations','_init','1298269zFBVbx','_bindAdapter','_uploadLog','_timeoutState$','_docTransformIMECacheService','includes','onPointerEnter$','segmentPage','color','_presenceAdapterRegistry','CONFLICT','JOIN_ROOM_FAILED','_memberID','getScrollXYInfoByViewport','sheetId','_localeService','disposeUnit','true','loadOfflineData','_getLighterColor','getUnitId','43425BNpvIV','CLOSE_ROOM','_toggleOffline','isArray','Failed','_updateLocalCursor','min','fillText','icon','_adapterRegistry','localPresence$','makeDirty','_send','addObject','_lastPointer','primary','_drawAnchor','sessionStatus$','static','24nFoVsY','currentTheme$','executeCommand','_getSaveTimeout','[Unhandled\x20Rejection]:\x20','data','lineno','getConfig','length','getCollabEntity$','RECT','getDocRanges','_entityInit$','_initialized','Error','subunit','USERS_LEAVE','_registerDependencies','body','_drawRectRange','onPointerMove$','backupOfflineData','_messageIds','alert','_labelHorizontalPosition','memberId','map','#FFF','GLOBAL','clearRemotePresences','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','FETCH_MISS','_session','LOADING_BLOCKS','addObjects','_clearRemotePresences','sessionTicket','currentSkeleton$','setTimeout','imageSourceType','_id','enableFrontendLog','polite','status$','backgroundColor','clickable','DeleteRangeMoveLeftCommandId','_initUserListener','cursorInfo$','message','_isVisibleUnit','statusUIPart','exhaustSavingTask','_themeService','tooltipKey','_startSheetCollabCursor','clearTimeout','_selfUnitIDs','getAncestorScale','defineProperty','_sendLocalPresence','catch','_transformUndoRedoStack','_draw','SUBMIT_CHANGESET_TIMEOUT','transformRemoteChangeset','registerRenderModule','update','updateOfflineData','TEXT','_hover','closePath','isEditing','_configService','@univerjs-pro/collaboration-client-ui','transform','_scheduleHeartbeat','find','flatMap','getTypeOfUnitDisposed$','[LogService\x20Error]:\x20','_docSkeleton','getFocusedUnit','univer-border-none\x20univer-bg-transparent','univer-text-orange-500','1.0.3','parse','_collabCursorState$','OTHER_CLIENT_EDITING','PENDING','_offsetY','_logService','enableLocalCache','_name','hovered','_initEvent','_drawTextRange','_transformPreviousActiveRange','_blockProgressWatches','_range','442185wGtAxD','runOnServer','with','NOT_COLLAB','_activeSaveTaskMap','black','error','rgb','collaboration-client-ui.collabStatus.offline','_initUnhandledRejectionListener','lineTo','isFinite','timeoutId','saveImage','SOCKET_FAILED','purple.300','_handleEvent','slice','_pendingEntities','set','_document','_docSkeletonManagerService','collaboration-client-ui.operation.update-remote-unit-presence','registerBeforeClose','focusedId','_shapes','_cursor','collaboration-client-ui.session.collaboration-timeout','get','stage','width','collaboration-client-ui.collabStatus.conflict','_startEntity','ranges','InsertColCommandId','_cachedData','_getMergeRange','addEventListener','send','from','removeItem','_initDependencies','transformStateCache','uni.network.url-service','_doCreateSocket','forEach','clearInterval','clear','loadedBlocks','OFFLINE','_hideTimer','then','_showConflictCacheClearFailedNotification','doc.mutation.rich-text-editing','loadUnit','href','_sheetSkeletonManagerService','eventID','_removeClearOtherTimer','getActiveRange','colno','transformIMECache','AWAITING_WITH_PENDING','_handleHover','_pointerMoveDisposable','setUndoRedoMutationParamsCache','SOCKET_FAILED_RETRY','socket$','save','memberID','range','rgba(','collaboration-client-ui.collabStatus.synced','sheetID','_presenceStatusRegistrations','toString','textRanges','_snapshotLoadingService','_disabled','timedOut','row','getMergeData','totalBlocks','collaboration-client-ui.session.connection-failed','show','size','univer-transition-all\x20univer-duration-200','startOffset','getSkeleton','_clearOtherTimers','_refRangeService','_labelPosition','snapshot-loading-','_initResize','search','tableId','onMouseMove','_registerPresenceStatusComponent','right','params','measureText','drawWith','COMPLETE','_dataLoaderService',',\x200.2)','decorate','default','state','OTHER_CLIENTS_EDITING','setOffsetY','filter','split','runId','_stopBlinking','spin','CONFLICT_PROCESSING','...','button','_online','requireSession','setShapeProps','_saveCache','invokeId','addClipboardHook','offsetY','source','clearOfflineData','complete','UNIVER_SHEET','_showConflictProcessingNotification','fillRule','dispose','_eventUnsubscribe','OPERATION','getCurrentSelections','asObservable','green.600','undoState','removeRemotePresence','searchParams','_syncAdapters','pipe','_collabCursorController','colorClass','m2Prime','registerCommand','saveTaskMap','startsWith','getUnhiddenWorksheets','_context','_collabSessionService','height','packageName','_disposeEntity','canRenderSelection','stringify','collaboration-client-ui.collaboration.closeRoom','kind','history','snapshot-loading-timeout','/universer-api/frontend/logs','univer-text-gray-400','_handleJoinEvent','collab-text-anchor-','values','_cursorInfo$','_urlService','1938222UucsBr','getViewport',':backup:','_localStorageService','_messageService','_docSelectionManagerService','selections','_initWindowErrorListener','_updateSubUnitFromURLParams','setItem','DeleteRangeMoveUpCommandId','shareInterval','\x20at\x20','_textBubble','_initStatusComponent','reason','getSheetBySheetId','onRendered','collabCursorState$','_removeCollabCursors','string','_colorIndex','onStarting','pageIndex','activeSheet$','indicator','getStateCache','left','prepareTransformSelections','entries','_initEntityListener','FOOTER','_transformService','Enter','collaboration-client-ui.collabStatus.fetchMiss','getUndoRedoMutationParamsCache','newValue','_colorAssignService','HEADER_MENU','fillStyle','AWAITING','origin','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','_setupBeforeClosingHandler','_disposed','arc','cursorInfo','Warning','_retryingConflictCacheUnitIDs','pageType','filename','_latestStates','findNodePositionByCharIndex','add','_createSocketURL','type','_hovered','_updateCollabCursors','_collaborationController','small','m1Prime','_initCommandExecutedListener','_instanceService','push','_getScale','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ERROR','_conflictNotification','_disposeEntitiesForType','_injector','disposeWithMe','red.300','_handleCursorUpdate','collaboration-client-ui.collaboration.single-unit.warning','getAllUnitsForType','getCollabCursors$','VIEW_MAIN','assignAColorForMemberID','_isDisposed','triggerDblclick','[RemoteUniscriptService]:\x20no\x20focused\x20unit','setAlpha','collaboration-client-ui.collabStatus.notCollab','span','_docSyncEditingCollabCursorService','_syncEditingCollabCursorService','_notificationService','_updateMessage','univer-h-8\x20univer-w-8\x20univer-rounded-lg','endRow','registerRefRange','font','_initStatusListener','presenceKind','_syncPresenceStatusComponents','_roomMembers$','_onCursorUpdate','bottom','all','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','getCurrentTypeOfUnit$','_toggleOnline','adapters$','collaboration-client-ui.snapshotLoading.timeout','join','isActive','_color','_revisionService','UNIVER_DOC','popstate','_imageIoService','_cursors','_getSessionTicket','_scene','replace','object','highlight','_backgroundColor','labelPosition','urlChange$','rgba','univer-m-0\x20univer-p-0','_transformHistoryAndStateStack','enableDocumentCollaborationUI','some','removeEventListener','_docStateChangeManagerService','debug','setStateCache','_anchor','getCurrentRevOfUnit','_clearBlockProgressWatch','getTypeOfUnitAdded$','collaboration-client-ui.conflict.title','getCurrentUnitOfType','deepClone','function','_config','_docTransformSelectionsService','_render','_univerInstanceService','collaboration-client-ui.permission.content','getParam','reload','strokeWidth','transformByState','selectedIds','getSelectionInfo','univer-text-green-500','evenodd','moveTo','redoState','column','pointer','_localCacheService','beginPath','editingUnit','collaboration-client-ui.snapshotLoading.refresh','remove','selection','1326152VFLRBh','univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-flex\x20univer-items-center\x20univer-justify-center','unit','canRenderAnchor','has','subUnitId','collaboration-client-ui.config','onPointerLeave$','options','_anchorDot','_beforeCloseService','delete','getUnit','getMember','11664fFzrGf','_onRefRangeChange','_scheduleClearOtherTimer','onCommandExecuted','getCoordRelativeToViewport','_commandService','roomMembers','startColumn','_replaceConflictNotification','_getAnchorBounding','getLocalPresence','parseInt','_adapterDisposables','UPDATE_CURSOR','unhandledrejection','SYNCED','univer-text-blue-500','event$','_blinkTimer','text','storage','_saveTaskMap','result','registerComponent','columnGroupId','getSheetId','FromArray','_showText'];_0x13ce=function(){return _0x3d600c;};return _0x13ce();}(function(_0x35d8a3,_0x3112a4){const _0x13c5f0=_0x47c1,_0x36063b=_0x35d8a3();while(!![]){try{const _0x579994=-parseInt(_0x13c5f0(0xde))/0x1+parseInt(_0x13c5f0(0x2ab))/0x2*(parseInt(_0x13c5f0(0xf1))/0x3)+parseInt(_0x13c5f0(0x2e2))/0x4+-parseInt(_0x13c5f0(0x155))/0x5+parseInt(_0x13c5f0(0x2cd))/0x6*(parseInt(_0x13c5f0(0x345))/0x7)+parseInt(_0x13c5f0(0x29c))/0x8+-parseInt(_0x13c5f0(0x1fc))/0x9;if(_0x579994===_0x3112a4)break;else _0x36063b['push'](_0x36063b['shift']());}catch(_0x3c2e1d){_0x36063b['push'](_0x36063b['shift']());}}}(_0x13ce,0x1adea));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x598bdc,CollaborationController as _0x3089d1,CollaborationSessionService as _0x5c5d11,CollaborationSocketService as _0x132b75,CollaborationStatus as _0x22ed0b,CollaborationUIEventId as _0x5e5483,CollaborationUIEventService as _0x23f66a,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x116f3b,DEFAULT_WS_SESSION_TICKET_URL as _0x249f6a,DataLoaderService as _0x282d0f,DocCollaborationEntity as _0x2c6253,ILocalCacheService as _0x232043,LOCAL_CACHE_INTERVAL as _0x64a250,LOCAL_CACHE_INTERVAL_KEY as _0x1b65ad,MemberService as _0x3b76af,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0xb23043,SessionStatus as _0x426c,UnitStatus as _0x44c09f,UniverCollaborationClientPlugin as _0x5777f7,getLocalCacheKey as _0x5e27e8}from'@univerjs-pro/collaboration-client';import{COLORS as _0x40614d,ColorKit as _0x4e862b,CommandType as _0x44859e,DOC_RANGE_TYPE as _0x86d58a,DependentOn as _0x12e8fc,Disposable as _0xf50eed,DisposableCollection as _0x4f93f4,ICommandService as _0x9de777,IConfigService as _0x5697a0,IImageIoService as _0x4f1a5d,ILocalStorageService as _0x206a35,ILogService as _0x232361,IUniverInstanceService as _0x576907,Inject as _0x47bc9a,Injector as _0x380635,LocaleService as _0x2906e7,Plugin as _0x13d753,Rectangle as _0x1f6338,RxDisposable as _0x5daa34,ThemeService as _0x1cd93d,Tools as _0x29d05b,UniverInstanceType as _0x5658b7,Workbook as _0x4d7429,createIdentifier as _0x4a0f08,debounce as _0x32a927,fromEventSubject as _0xe2d34a,generateRandomId as _0x42801a,isInternalEditorID as _0x1364a0,merge as _0x1597ec,mergeOverrideWithDependencies as _0x2c1872,registerDependencies as _0x5655ca,toDisposable as _0x4e78ef,touchDependencies as _0xdabe6f}from'@univerjs/core';import{BuiltInUIPart as _0x3f8636,IBeforeCloseService as _0x150ea4,IMessageService as _0x3ba0c5,INotificationService as _0x1acf91,IUIPartsService as _0x2528c2,IUnitPresenceUIAdapterRegistry as _0xc6dda1,connectInjector as _0x130385,useDependency as _0xb67a20,useObservable as _0x3612e2}from'@univerjs/ui';import{BehaviorSubject as _0x4dad7b,Subject as _0x26adce,combineLatest as _0x5a1a2f,debounceTime as _0x326ecd,distinctUntilChanged as _0x290e1c,filter as _0x5128c1,fromEvent as _0x11f26e,mapTo as _0x38905b,merge as _0x25ac9f,of as _0x28b600,shareReplay as _0x5fa918,switchMap as _0x17c963,takeUntil as _0xe739dc,throttle as _0xd53fb3,timer as _0x525150}from'rxjs';import{distinctUntilChanged as _0x350493,filter as _0x1248a5,map as _0x56ab65,switchMap as _0x2876bb,takeUntil as _0x52cb54,throttleTime as _0x1ee6dd}from'rxjs/operators';import{Button as _0x5ded29,MessageType as _0x1e5e0e,Tooltip as _0x5c5292,clsx as _0x3c1640}from'@univerjs/design';import{LoadingMultiIcon as _0x317d67,OffLineIcon as _0x19936b,OnLineIcon as _0x24d322,WarningIcon as _0x46f013}from'@univerjs/icons';import{createElement as _0x51f45d,useCallback as _0x256cf4,useMemo as _0x5953f2}from'react';import{jsx as _0x502d13,jsxs as _0x1b8ed2}from'react/jsx-runtime';import{CollaborationEvent as _0x402cad,ISnapshotServerService as _0x5eb425,ITransformService as _0x38ff0a,RevisionService as _0x38f3f2,SnapshotLoadStage as _0x1664ef,SnapshotLoadingService as _0x1a282d,UniverCollaborationPlugin as _0x26a8b3,isTransformMutationFailure as _0x4e7233,isTransformMutationsWithChangesetSuccess as _0x16f367}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0xf1d164}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x2785ee,DocSkeletonManagerService as _0x187841,DocStateChangeManagerService as _0x9861ab,RichTextEditingMutation as _0x4251e3,SetTextSelectionsOperation as _0x39a549,UniverDocsPlugin as _0x1932a6}from'@univerjs/docs';import{DocIMEInputManagerService as _0x386a8e,IDocClipboardService as _0x2a92b1,NodePositionConvertToCursor as _0x4e490a,NodePositionConvertToRectRange as _0x4b546b,SetDocZoomRatioOperation as _0x55bc8a,TEXT_RANGE_LAYER_INDEX as _0x13b08e,UniverDocsUIPlugin as _0x1cee98}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x2b34e2,IRenderManagerService as _0x4c7906,Rect as _0x9645cc,RegularPolygon as _0x69a902,SHEET_VIEWPORT_KEY as _0x2bab45,Shape as _0x1196df,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x212f57,UniverRenderEnginePlugin as _0x575828,Vector2 as _0x1115c4,getColor as _0x335c6d,getDocumentSkeletonColumnPagePathInfo as _0x2f5118}from'@univerjs/engine-render';import{HTTPService as _0x195ec6,ISocketService as _0x1828da,UniverNetworkPlugin as _0x5555ee,WebSocketService as _0x32fca4}from'@univerjs/network';import{deserializeRangeWithSheet as _0x5ed367,serializeRangeWithSheet as _0x56ee9}from'@univerjs/engine-formula';import{EffectRefRangId as _0x15915b,RefRangeService as _0x1d8140,SetSelectionsOperation as _0x3c2123,SetWorksheetActivateCommand as _0x5b3874,SheetsSelectionsService as _0x58b4fe,handleDeleteRangeMoveLeft as _0x5e0842,handleDeleteRangeMoveUp as _0x3160b2,handleIRemoveCol as _0x554916,handleIRemoveRow as _0x41d423,handleInsertCol as _0x507425,handleInsertRangeMoveDown as _0x22a6cf,handleInsertRangeMoveRight as _0x4dbfa6,handleInsertRow as _0x2cc458,handleMoveRange as _0x25df3b,runRefRangeMutations as _0x2b3e8d}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x11a560,getCoordByCell as _0x265f7e,getSheetObject as _0x5b30fb}from'@univerjs/sheets-ui';import{ErrorCode as _0x3ae796}from'@univerjs/protocol';function nn(_0x118997){const _0x526f29=_0x47c1;switch(_0x118997){case _0x22ed0b[_0x526f29(0x186)]:return{'icon':_0x502d13(_0x19936b,{}),'colorClass':'univer-text-red-500','i18nKey':_0x526f29(0x15d),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':'static'};case _0x22ed0b[_0x526f29(0xd3)]:return{'icon':_0x502d13(_0x19936b,{}),'colorClass':_0x526f29(0x145),'i18nKey':_0x526f29(0x174),'clickable':!0x1,'indicator':_0x526f29(0xf0)};case _0x22ed0b[_0x526f29(0x110)]:return{'icon':_0x502d13(_0x317d67,{}),'colorClass':_0x526f29(0x2bb),'i18nKey':_0x526f29(0x21e),'clickable':!0x1,'indicator':_0x526f29(0x1c7)};case _0x22ed0b[_0x526f29(0x158)]:return{'icon':_0x502d13(_0x24d322,{}),'colorClass':_0x526f29(0x1f6),'i18nKey':_0x526f29(0x24e),'clickable':!0x1,'indicator':_0x526f29(0xf0)};case _0x22ed0b[_0x526f29(0x224)]:case _0x22ed0b[_0x526f29(0x193)]:return{'icon':_0x502d13(_0x317d67,{}),'colorClass':_0x526f29(0x2bb),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x526f29(0x1c7)};case _0x22ed0b[_0x526f29(0x14a)]:return{'icon':_0x502d13(_0x317d67,{}),'colorClass':_0x526f29(0x2bb),'i18nKey':_0x526f29(0x305),'clickable':!0x1,'indicator':_0x526f29(0x1c7)};case _0x22ed0b[_0x526f29(0x2ba)]:return{'icon':_0x502d13(_0x24d322,{}),'colorClass':_0x526f29(0x290),'i18nKey':_0x526f29(0x19d),'clickable':!0x1,'indicator':_0x526f29(0xf0)};}}function rn(_0x424cfa){const _0x133c51=_0x47c1;let {status$:_0x17fe3d}=_0x424cfa,_0x5067e7=_0x3612e2(_0x17fe3d,_0x22ed0b['NOT_COLLAB']),_0x1d3573=_0xb67a20(_0x2906e7),_0x22022=_0xb67a20(_0x5c5d11),_0x3418ff=_0x5953f2(()=>nn(_0x5067e7),[_0x5067e7]),_0x511543=_0x5067e7!==_0x22ed0b[_0x133c51(0x186)],_0x9ed933=_0x1d3573['t'](_0x3418ff['i18nKey']),_0x24e014=_0x3418ff[_0x133c51(0x127)]?_0x1d3573['t'](_0x3418ff['tooltipKey']):_0x9ed933,_0x59f056=_0x256cf4(()=>{const _0x539936=_0x133c51;_0x511543||_0x22022[_0x539936(0x2f6)]();},[_0x511543,_0x22022]),_0x4bf485=_0x256cf4(_0x40375b=>{const _0x4fed0a=_0x133c51;!_0x511543&&(_0x40375b[_0x4fed0a(0x318)]===_0x4fed0a(0x21d)||_0x40375b[_0x4fed0a(0x318)]==='\x20')&&(_0x40375b[_0x4fed0a(0x306)](),_0x22022['reconnect']());},[_0x511543,_0x22022]),_0x537bf8=_0x502d13(_0x133c51(0x24f),{'className':_0x3c1640(_0x133c51(0x29e),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x3418ff[_0x133c51(0x1e4)],{'univer-animate-spin':_0x3418ff[_0x133c51(0x215)]===_0x133c51(0x1c7),'univer-animate-pulse':_0x3418ff['indicator']==='pulse'}),'aria-hidden':'true','children':_0x3418ff[_0x133c51(0xe6)]}),_0x4f6875=_0x502d13(_0x133c51(0x24f),{'className':_0x3c1640(_0x133c51(0x29e),_0x133c51(0x254),_0x133c51(0x1ab),_0x133c51(0x2ef),'dark:focus:!univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x3418ff['clickable'],'univer-cursor-default':!_0x3418ff[_0x133c51(0x11e)]}),'children':_0x537bf8});return _0x3418ff[_0x133c51(0x11e)]?_0x502d13(_0x5c5292,{'title':_0x24e014,'placement':_0x133c51(0x25d),'children':_0x502d13(_0x133c51(0x1ca),{'type':_0x133c51(0x1ca),'onClick':_0x59f056,'onKeyDown':_0x4bf485,'className':_0x3c1640('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x133c51(0x144),_0x133c51(0x275),_0x133c51(0x331)),'aria-label':_0x9ed933+'\x20-\x20'+_0x24e014,'role':_0x133c51(0x31e),'aria-live':_0x133c51(0x11b),'aria-atomic':_0x133c51(0xda),'children':_0x4f6875})}):_0x502d13(_0x5c5292,{'title':_0x24e014,'placement':_0x133c51(0x25d),'children':_0x502d13(_0x133c51(0x30e),{'className':_0x3c1640(_0x133c51(0x29d),_0x133c51(0x144),_0x133c51(0x275)),'aria-label':_0x9ed933,'role':_0x133c51(0x31e),'aria-live':_0x133c51(0x11b),'aria-atomic':_0x133c51(0xda),'children':_0x4f6875})});}function G(_0x227a1a){'@babel/helpers - typeof';const _0x4edd88=_0x47c1;return G=typeof Symbol==_0x4edd88(0x284)&&typeof Symbol['iterator']=='symbol'?function(_0x5169ac){return typeof _0x5169ac;}:function(_0x296544){const _0x219cf2=_0x4edd88;return _0x296544&&typeof Symbol==_0x219cf2(0x284)&&_0x296544['constructor']===Symbol&&_0x296544!==Symbol[_0x219cf2(0x2d1)]?_0x219cf2(0x2fd):typeof _0x296544;},G(_0x227a1a);}function an(_0x78ea44,_0x198909){const _0x1a5220=_0x47c1;if(G(_0x78ea44)!=_0x1a5220(0x26f)||!_0x78ea44)return _0x78ea44;var _0x250383=_0x78ea44[Symbol['toPrimitive']];if(_0x250383!==void 0x0){var _0x493eaf=_0x250383[_0x1a5220(0x304)](_0x78ea44,_0x198909||_0x1a5220(0x1bf));if(G(_0x493eaf)!='object')return _0x493eaf;throw TypeError(_0x1a5220(0x23d));}return(_0x198909===_0x1a5220(0x210)?String:Number)(_0x78ea44);}function on(_0x516af8){const _0x29d63b=_0x47c1;var _0x2e897a=an(_0x516af8,_0x29d63b(0x210));return G(_0x2e897a)==_0x29d63b(0x2fd)?_0x2e897a:_0x2e897a+'';}function K(_0x15b652,_0xdf758a,_0x28e2ac){const _0x4fca0e=_0x47c1;return(_0xdf758a=on(_0xdf758a))in _0x15b652?Object[_0x4fca0e(0x12c)](_0x15b652,_0xdf758a,{'value':_0x28e2ac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15b652[_0xdf758a]=_0x28e2ac,_0x15b652;}function q(_0x1c06a0,_0x1ddd5f){return function(_0x5790a8,_0x22edb9){_0x1ddd5f(_0x5790a8,_0x22edb9,_0x1c06a0);};}function J(_0xa7e0ec,_0x44bf88,_0x381da1,_0x3310c8){const _0x44a489=_0x47c1;var _0x5a7335=arguments['length'],_0x2151c2=_0x5a7335<0x3?_0x44bf88:_0x3310c8===null?_0x3310c8=Object['getOwnPropertyDescriptor'](_0x44bf88,_0x381da1):_0x3310c8,_0x38cbf9;if(typeof Reflect==_0x44a489(0x26f)&&typeof Reflect[_0x44a489(0x1be)]==_0x44a489(0x284))_0x2151c2=Reflect['decorate'](_0xa7e0ec,_0x44bf88,_0x381da1,_0x3310c8);else{for(var _0x151840=_0xa7e0ec[_0x44a489(0xf9)]-0x1;_0x151840>=0x0;_0x151840--)(_0x38cbf9=_0xa7e0ec[_0x151840])&&(_0x2151c2=(_0x5a7335<0x3?_0x38cbf9(_0x2151c2):_0x5a7335>0x3?_0x38cbf9(_0x44bf88,_0x381da1,_0x2151c2):_0x38cbf9(_0x44bf88,_0x381da1))||_0x2151c2);}return _0x5a7335>0x3&&_0x2151c2&&Object[_0x44a489(0x12c)](_0x44bf88,_0x381da1,_0x2151c2),_0x2151c2;}let Y=class extends _0xf50eed{constructor(_0x55d118,_0x5a6c91,_0x7d55da,_0xeffe5e,_0x3a0018){const _0x24a8e9=_0x47c1;super(),this['_univerInstanceService']=_0x55d118,this[_0x24a8e9(0x241)]=_0x5a6c91,this['_collaborationController']=_0x7d55da,this[_0x24a8e9(0x2ec)]=_0xeffe5e,this[_0x24a8e9(0xd2)]=_0x3a0018,K(this,_0x24a8e9(0x31a),new _0x4dad7b(_0x22ed0b[_0x24a8e9(0x158)])),K(this,_0x24a8e9(0x19f),new Map()),this[_0x24a8e9(0x20a)](),this['_initStatusListener'](),this[_0x24a8e9(0x32f)]();}[_0x43b1c2(0x1d8)](){const _0x4d15bc=_0x43b1c2;this[_0x4d15bc(0x19f)][_0x4d15bc(0x182)](_0x5e567a=>_0x5e567a[_0x4d15bc(0x1d8)]()),this[_0x4d15bc(0x19f)][_0x4d15bc(0x184)](),this[_0x4d15bc(0x31a)]['complete'](),super[_0x4d15bc(0x1d8)]();}[_0x43b1c2(0x258)](){const _0x4fff7a=_0x43b1c2;this[_0x4fff7a(0x242)](_0x25ac9f(this['_univerInstanceService'][_0x4fff7a(0x2f7)],this[_0x4fff7a(0x288)][_0x4fff7a(0x260)](_0x5658b7[_0x4fff7a(0x268)]),this[_0x4fff7a(0x288)][_0x4fff7a(0x260)](_0x5658b7[_0x4fff7a(0x1d5)]))[_0x4fff7a(0x1e2)](_0x56ab65(()=>sn(this['_univerInstanceService'])),_0x350493(),_0x17c963(_0x56af6b=>_0x56af6b?this[_0x4fff7a(0x236)]['getCollabEntity$'](_0x56af6b):_0x28b600(null)),_0x17c963(_0x43f840=>_0x43f840?_0x43f840[_0x4fff7a(0x11c)]:_0x28b600(_0x22ed0b['NOT_COLLAB'])))['subscribe'](_0x23a9f1=>{const _0x4e696c=_0x4fff7a;this['_status$'][_0x4e696c(0x2d0)](_0x23a9f1);}));}['_initStatusComponent'](){const _0x328500=_0x43b1c2;this[_0x328500(0x242)](this[_0x328500(0x2ec)]['registerComponent'](_0x3f8636[_0x328500(0x222)],()=>_0x130385(cn({'status$':this['_status$'][_0x328500(0x1dc)]()}),this[_0x328500(0x241)])));}[_0x43b1c2(0x32f)](){const _0x328abc=_0x43b1c2;let _0x58fc74=this[_0x328abc(0xd2)][_0x328abc(0x262)][_0x328abc(0x2e5)](_0x16c2ed=>{const _0x149da4=_0x328abc;this[_0x149da4(0x25a)](_0x16c2ed);});this[_0x328abc(0x242)](_0x4e78ef(()=>_0x58fc74['unsubscribe']()));}[_0x43b1c2(0x25a)](_0x312af7){const _0x57a032=_0x43b1c2;let _0x2a35d6=new Map(_0x312af7[_0x57a032(0x1c3)](_0x1cbab0=>_0x1cbab0[_0x57a032(0x124)]!=null)[_0x57a032(0x10b)](_0x42514f=>[_0x42514f[_0x57a032(0x30b)],_0x42514f]));this[_0x57a032(0x19f)][_0x57a032(0x182)]((_0x371444,_0x38befc)=>{const _0x1c29d5=_0x57a032;_0x2a35d6[_0x1c29d5(0x2a1)](_0x38befc)||(_0x371444[_0x1c29d5(0x1d8)](),this[_0x1c29d5(0x19f)][_0x1c29d5(0x2a8)](_0x38befc));}),_0x2a35d6['forEach']((_0x1c6fe0,_0xc71f5e)=>{const _0x2af426=_0x57a032;this['_presenceStatusRegistrations'][_0x2af426(0x2a1)](_0xc71f5e)||this['_registerPresenceStatusComponent'](_0x1c6fe0);});}[_0x43b1c2(0x1b6)](_0x5ab5c5){const _0x2d19f5=_0x43b1c2;let _0xd352f=_0x5ab5c5[_0x2d19f5(0x124)];if(!_0xd352f)return;let _0xaf5650=new _0x4f93f4(),_0xffce5a=new _0x4dad7b(_0x22ed0b['NOT_COLLAB']);_0xaf5650[_0x2d19f5(0x231)](_0x4e78ef(()=>_0xffce5a['complete']())),_0xaf5650[_0x2d19f5(0x231)](this[_0x2d19f5(0x2ec)][_0x2d19f5(0x2c2)](_0xd352f,()=>_0x130385(cn({'status$':_0xffce5a[_0x2d19f5(0x1dc)]()}),this['_injector'])));let _0x555f3c=this[_0x2d19f5(0x288)]['getCurrentTypeOfUnit$'](_0x5ab5c5[_0x2d19f5(0x30b)])[_0x2d19f5(0x1e2)](_0x56ab65(_0x56f847=>(_0x56f847==null?void 0x0:_0x56f847[_0x2d19f5(0xdd)]())??null),_0x350493(),_0x17c963(_0x4028eb=>_0x4028eb?this['_collaborationController'][_0x2d19f5(0xfa)](_0x4028eb):_0x28b600(null)),_0x17c963(_0x5bc89e=>(_0x5bc89e==null?void 0x0:_0x5bc89e[_0x2d19f5(0x11c)])??_0x28b600(_0x22ed0b[_0x2d19f5(0x158)])))[_0x2d19f5(0x2e5)](_0x2ac44f=>_0xffce5a[_0x2d19f5(0x2d0)](_0x2ac44f));_0xaf5650[_0x2d19f5(0x231)](_0x4e78ef(()=>_0x555f3c['unsubscribe']())),this['_presenceStatusRegistrations']['set'](_0x5ab5c5[_0x2d19f5(0x30b)],_0xaf5650);}};Y=J([q(0x0,_0x576907),q(0x1,_0x47bc9a(_0x380635)),q(0x2,_0x47bc9a(_0x3089d1)),q(0x3,_0x2528c2),q(0x4,_0x47bc9a(_0xc6dda1))],Y);function sn(_0x192510){const _0x1dfd79=_0x43b1c2;let _0x1e2580=_0x192510[_0x1dfd79(0x143)](),_0x4c92ee=_0x1e2580==null?void 0x0:_0x1e2580[_0x1dfd79(0xdd)]();if(_0x4c92ee&&!_0x1364a0(_0x4c92ee))return _0x4c92ee;let _0x1db94c=_0x192510[_0x1dfd79(0x282)](_0x5658b7[_0x1dfd79(0x268)]),_0x5af327=_0x1db94c==null?void 0x0:_0x1db94c[_0x1dfd79(0xdd)]();if(_0x5af327&&!_0x1364a0(_0x5af327))return _0x5af327;let _0x4e0353=_0x192510['getCurrentUnitOfType'](_0x5658b7[_0x1dfd79(0x1d5)]);if(_0x4e0353)return _0x4e0353[_0x1dfd79(0xdd)]();let _0x5e8461=_0x192510[_0x1dfd79(0x246)](_0x5658b7['UNIVER_DOC'])[_0x1dfd79(0x13e)](_0xab463b=>!_0x1364a0(_0xab463b['getUnitId']()));return _0x5e8461?_0x5e8461[_0x1dfd79(0xdd)]():null;}function cn(_0x2c09df){let {status$:_0x24bf84}=_0x2c09df;return function(){return _0x502d13(rn,{'status$':_0x24bf84});};}var ln=_0x43b1c2(0x13b),un=_0x43b1c2(0x146);const X={'id':_0x43b1c2(0x16b),'type':_0x44859e[_0x43b1c2(0x1da)],'handler':(_0x285c1c,_0xd6c387)=>{const _0xd760d5=_0x43b1c2;let _0x2afe35=_0x285c1c[_0xd760d5(0x171)](_0xc6dda1)[_0xd760d5(0x171)](_0xd6c387[_0xd760d5(0x30b)]);if(!_0x2afe35)return!0x1;switch(_0xd6c387[_0xd760d5(0x134)][_0xd760d5(0x233)]){case _0xd760d5(0x168):return _0x2afe35[_0xd760d5(0x314)](_0xd6c387[_0xd760d5(0x134)][_0xd760d5(0x1c0)]),!0x0;case _0xd760d5(0x29a):return _0x2afe35[_0xd760d5(0x1df)](_0xd6c387[_0xd760d5(0x134)]['unitId'],_0xd6c387[_0xd760d5(0x134)][_0xd760d5(0x10a)]),!0x0;case'clear':return _0x2afe35[_0xd760d5(0x10e)](_0xd6c387['update'][_0xd760d5(0x31f)]),!0x0;default:return!0x1;}}},dn={};let fn=class extends _0x5daa34{constructor(_0x580342,_0x4c43cb){const _0x159c96=_0x43b1c2;super(),this[_0x159c96(0x30f)]=_0x580342,this[_0x159c96(0x26a)]=_0x4c43cb,this[_0x159c96(0x344)]();}[_0x43b1c2(0x344)](){const _0x356756=_0x43b1c2;let _0x4fc7e8=this;this[_0x356756(0x242)](this['_docClipboardService'][_0x356756(0x1d0)]({'onBeforePasteImage':async _0x472d16=>{const _0x1a190d=_0x356756;let _0x4f6b87=await _0x4fc7e8[_0x1a190d(0x26a)][_0x1a190d(0x162)](_0x472d16);return _0x4f6b87?{'source':_0x4f6b87[_0x1a190d(0x1d2)],'imageSourceType':_0x4f6b87[_0x1a190d(0x118)]}:null;}}));}};fn=J([q(0x0,_0x2a92b1),q(0x1,_0x4f1a5d)],fn);const pn=[_0x43b1c2(0x164),'jiqing.500',_0x43b1c2(0x1dd),_0x43b1c2(0x243),'blue.400','yellow.400'];var mn=class extends _0xf50eed{constructor(..._0x360d01){const _0x4dfa23=_0x43b1c2;super(..._0x360d01),K(this,'_assignedColors',new Map()),K(this,_0x4dfa23(0x211),0x0);}[_0x43b1c2(0x249)](_0x9b2508){const _0x157f60=_0x43b1c2;if(this[_0x157f60(0x2e1)][_0x157f60(0x2a1)](_0x9b2508))return this[_0x157f60(0x2e1)][_0x157f60(0x171)](_0x9b2508);let _0x40b135=pn[this[_0x157f60(0x211)]];return this[_0x157f60(0x211)]=(this[_0x157f60(0x211)]+0x1)%pn[_0x157f60(0xf9)],this['_assignedColors'][_0x157f60(0x168)](_0x9b2508,_0x40b135),_0x40b135;}};function hn(_0x2f2473){const _0x1a687c=_0x43b1c2;let _0x30fd7e='';for(let _0x4cad38 of _0x2f2473){let {startOffset:_0x36d869,endOffset:_0x3af13b,isActive:_0x312c7b,rangeType:_0x34429b,segmentId:_0x185e5c,segmentPage:_0x37d4c6}=_0x4cad38;_0x30fd7e[_0x1a687c(0xf9)]&&(_0x30fd7e+=','),_0x30fd7e+=_0x36d869+':'+_0x3af13b+':'+(_0x312c7b?'1':'0')+':'+_0x34429b+':'+_0x185e5c+':'+_0x37d4c6;}return _0x30fd7e;}function gn(_0x512b45){const _0x550a0e=_0x43b1c2;let _0xd58ad6=_0x512b45[_0x550a0e(0x1c4)](','),_0x58802b=[];for(let _0x46a4ed of _0xd58ad6){let [_0x2a4dbe,_0x246131,_0x3e6ae8,_0x3d6b2c,_0x127824,_0x47a8a4]=_0x46a4ed[_0x550a0e(0x1c4)](':');_0x58802b[_0x550a0e(0x23b)]({'startOffset':Number(_0x2a4dbe),'endOffset':Number(_0x246131),'collapsed':_0x2a4dbe===_0x246131,'isActive':_0x3e6ae8==='1','rangeType':_0x3d6b2c===_0x86d58a[_0x550a0e(0x136)]?_0x86d58a[_0x550a0e(0x136)]:_0x86d58a[_0x550a0e(0xfb)],'segmentId':typeof _0x127824==_0x550a0e(0x210)?String(_0x127824):'','segmentPage':Number(_0x47a8a4??-0x1)});}return _0x58802b[_0x550a0e(0x278)](_0x58f0df=>_0x58f0df[_0x550a0e(0x265)])||(_0x58802b[0x0]['isActive']=!0x0),_0x58802b;}var _n=class extends _0x5daa34{constructor(..._0x71f029){const _0x5945c0=_0x43b1c2;super(..._0x71f029),K(this,'_collabCursorState$',new _0x4dad7b(null)),K(this,_0x5945c0(0x20e),this[_0x5945c0(0x148)][_0x5945c0(0x1dc)]());}['syncEditingCollabCursor'](_0x213d96){let {unitID:_0x5e43cf,memberID:_0x2db8da,textRanges:_0x3150eb}=_0x213d96,_0x1178cf=hn(_0x3150eb);if(_0x1178cf==='')return;let _0x17bdb1={'unitID':_0x5e43cf,'memberID':_0x2db8da,'selection':_0x1178cf};this['_collabCursorState$']['next'](_0x17bdb1);}};let vn=class extends _0x5daa34{get[_0x43b1c2(0x22a)](){return this['_cursorInfo$']['getValue']();}get[_0x43b1c2(0x2b1)](){const _0x4b3171=_0x43b1c2;return this[_0x4b3171(0x25b)][_0x4b3171(0x30d)]();}constructor(_0x5187b4,_0x114c88,_0x190de5,_0x5e649d,_0x562b51,_0x38055b,_0x4fbe38,_0x4a7610,_0x33ecd7){const _0x1a7e9a=_0x43b1c2;super(),this[_0x1a7e9a(0x2fc)]=_0x5187b4,this[_0x1a7e9a(0x111)]=_0x114c88,this[_0x1a7e9a(0x241)]=_0x190de5,this[_0x1a7e9a(0x221)]=_0x5e649d,this[_0x1a7e9a(0x336)]=_0x562b51,this[_0x1a7e9a(0x251)]=_0x38055b,this[_0x1a7e9a(0x21c)]=_0x4fbe38,this[_0x1a7e9a(0x288)]=_0x4a7610,this[_0x1a7e9a(0x2b0)]=_0x33ecd7,K(this,_0x1a7e9a(0x1cb),!0x1),K(this,_0x1a7e9a(0x344),!0x1),K(this,'_cursorInfo$',new _0x4dad7b(new Map())),K(this,_0x1a7e9a(0x121),this[_0x1a7e9a(0x1fa)][_0x1a7e9a(0x1dc)]()),K(this,_0x1a7e9a(0x25b),new _0x4dad7b([])),K(this,'roomMembers$',this[_0x1a7e9a(0x25b)][_0x1a7e9a(0x1e2)](_0x326ecd(0x12c))),K(this,_0x1a7e9a(0xe3),_0x32a927(_0x3c9640=>{const _0x4b1887=_0x1a7e9a;let _0x445c96={'eventID':_0x402cad['UPDATE_CURSOR'],'data':{'unitID':this[_0x4b1887(0x2fc)],'memberID':this[_0x4b1887(0x111)]['getMemberID'](),'selection':hn(_0x3c9640)}};this[_0x4b1887(0x111)][_0x4b1887(0x17b)](_0x445c96,this['unitID']);},0x64));}[_0x43b1c2(0x1d8)](){const _0x5d1d11=_0x43b1c2;super['dispose'](),this[_0x5d1d11(0x1fa)][_0x5d1d11(0x2d0)](new Map()),this[_0x5d1d11(0x1fa)]['complete'](),this[_0x5d1d11(0x25b)]['next']([]),this['_roomMembers$'][_0x5d1d11(0x1d4)]();}['init'](){const _0x3b9dc0=_0x43b1c2;this[_0x3b9dc0(0x344)]||(this['_init']=!0x0,this[_0x3b9dc0(0x111)][_0x3b9dc0(0xef)][_0x3b9dc0(0x1e2)](_0xe739dc(this[_0x3b9dc0(0x303)]))[_0x3b9dc0(0x2e5)](_0x4e0cb2=>{const _0x2ba12c=_0x3b9dc0;_0x4e0cb2===_0x426c[_0x2ba12c(0x2f2)]?this[_0x2ba12c(0x261)]():this[_0x2ba12c(0xe0)]();}),this[_0x3b9dc0(0x111)][_0x3b9dc0(0x2bc)][_0x3b9dc0(0x1e2)](_0xe739dc(this[_0x3b9dc0(0x303)]))[_0x3b9dc0(0x2e5)](_0x49080e=>{const _0x2febe6=_0x3b9dc0;let _0x2106ab=_0x49080e[_0x2febe6(0x18e)];_0x2106ab===_0x402cad[_0x2febe6(0x2b8)]&&this[_0x2febe6(0x25c)](_0x49080e),_0x2106ab===_0x402cad[_0x2febe6(0x101)]&&this[_0x2febe6(0x33a)](_0x49080e);}),this[_0x3b9dc0(0x242)](this[_0x3b9dc0(0x2b0)][_0x3b9dc0(0x2ae)](_0x4663f2=>{const _0x2f2e04=_0x3b9dc0;let _0x2c8282=_0x4663f2[_0x2f2e04(0x1b8)];_0x2c8282!=null&&this[_0x2f2e04(0x1cb)]&&_0x4663f2['id']===_0x39a549['id']&&_0x2c8282[_0x2f2e04(0x31f)]===this[_0x2f2e04(0x2fc)]&&_0x2c8282[_0x2f2e04(0x139)]===!0x1&&_0x2c8282['ranges'][_0x2f2e04(0xf9)]>0x0&&this[_0x2f2e04(0xe3)](_0x2c8282[_0x2f2e04(0x176)]);})),this[_0x3b9dc0(0x251)][_0x3b9dc0(0x20e)][_0x3b9dc0(0x1e2)](_0xe739dc(this['dispose$']))[_0x3b9dc0(0x2e5)](_0x2bc36b=>{const _0x5dfd72=_0x3b9dc0;if((_0x2bc36b==null?void 0x0:_0x2bc36b[_0x5dfd72(0x2fc)])!==this[_0x5dfd72(0x2fc)])return;let _0x2ddd98={'eventID':_0x402cad['UPDATE_CURSOR'],'data':_0x2bc36b};this[_0x5dfd72(0x25c)](_0x2ddd98);}),this['disposeWithMe'](this[_0x3b9dc0(0x2b0)][_0x3b9dc0(0x2ae)](_0x78934e=>{const _0x311b81=_0x3b9dc0;if(_0x78934e[_0x311b81(0x1b8)]==null)return;let _0x30fccc=_0x78934e['params'];if(_0x78934e['id']!==_0x4251e3['id']||_0x30fccc['unitId']!==this[_0x311b81(0x2fc)])return;let _0x4bb6cd={'id':_0x311b81(0x18a),'params':_0x30fccc},_0x25b8ab=this[_0x311b81(0x22a)];for(let [_0x39afda,_0x40e66c]of _0x25b8ab){let _0x98c7e0={'id':_0x311b81(0x18a),'params':{'unitId':this[_0x311b81(0x2fc)],'actions':null,'textRanges':_0x40e66c[_0x311b81(0x176)]}},_0x5c043a=this[_0x311b81(0x21c)]['transformMutation'](_0x4bb6cd,_0x98c7e0,!0x1);if(_0x4e7233(_0x5c043a))throw _0x5c043a[_0x311b81(0x15b)];_0x25b8ab[_0x311b81(0x168)](_0x39afda,{..._0x40e66c,'ranges':_0x5c043a['m2Prime'][_0x311b81(0x1b8)][_0x311b81(0x1a1)]});}queueMicrotask(()=>{const _0x34b619=_0x311b81;this['_cursorInfo$'][_0x34b619(0x2d0)](_0x25b8ab);});})));}[_0x43b1c2(0x25c)](_0x57a9a1){const _0x33ed0a=_0x43b1c2;var _0x31b4a9;let {memberID:_0x216b62,selection:_0x427f32}=_0x57a9a1['data'],_0x9fc780=gn(_0x427f32),_0xae0990=((_0x31b4a9=this[_0x33ed0a(0x336)][_0x33ed0a(0x2aa)](this[_0x33ed0a(0x2fc)],_0x216b62))==null?void 0x0:_0x31b4a9[_0x33ed0a(0x2f8)])??'Unknown\x20user',_0x12c4df={'color':this[_0x33ed0a(0x221)][_0x33ed0a(0x249)](_0x216b62),'name':_0xae0990,'ranges':_0x9fc780},_0x4e0166=this[_0x33ed0a(0x22a)];_0x4e0166[_0x33ed0a(0x168)](_0x216b62,_0x12c4df),this[_0x33ed0a(0x1fa)][_0x33ed0a(0x2d0)](_0x4e0166);}[_0x43b1c2(0x33a)](_0x1206bd){const _0x24bac1=_0x43b1c2;let {memberID:_0x4e08cf}=_0x1206bd['data'],_0x322d25=this[_0x24bac1(0x22a)];_0x322d25[_0x24bac1(0x2a8)](_0x4e08cf),this[_0x24bac1(0x1fa)][_0x24bac1(0x2d0)](_0x322d25);}[_0x43b1c2(0x261)](){const _0x365929=_0x43b1c2;var _0x1218d3;if(this[_0x365929(0x1cb)]=!0x0,((_0x1218d3=this[_0x365929(0x288)][_0x365929(0x143)]())==null?void 0x0:_0x1218d3[_0x365929(0xdd)]())!==this[_0x365929(0x2fc)])return;let _0x8700c6=this[_0x365929(0x241)]['get'](_0x2785ee)[_0x365929(0xfc)]();Array[_0x365929(0xe1)](_0x8700c6)&&_0x8700c6[_0x365929(0xf9)]>0x0&&this[_0x365929(0xe3)](_0x8700c6);}[_0x43b1c2(0xe0)](){const _0x19bf68=_0x43b1c2;this[_0x19bf68(0x1cb)]=!0x1;}};vn=J([q(0x2,_0x47bc9a(_0x380635)),q(0x3,_0x47bc9a(mn)),q(0x4,_0x47bc9a(_0x3b76af)),q(0x5,_0x47bc9a(_n)),q(0x6,_0x38ff0a),q(0x7,_0x576907),q(0x8,_0x9de777)],vn);const yn=()=>{let _0x292845=[],_0x4695ca=!0x1;return _0xd46c73=>{const _0x7d4db7=_0x47c1;_0x292845[_0x7d4db7(0x23b)](_0xd46c73),_0x4695ca||(_0x4695ca=!0x0,setTimeout(()=>{_0x292845['forEach'](_0x313d02=>_0x313d02()),_0x292845=[],_0x4695ca=!0x1;}));};};let bn=class extends _0x5daa34{get[_0x43b1c2(0x22a)](){const _0x1adae7=_0x43b1c2;return this[_0x1adae7(0x1fa)][_0x1adae7(0x30d)]();}get[_0x43b1c2(0x2b1)](){return this['_roomMembers$']['getValue']();}constructor(_0x557d4c,_0x20d24d,_0x3f5a8c,_0x13747e,_0x534d9f,_0x4d426c,_0x41dff0,_0x33e5bd){const _0x1b3da5=_0x43b1c2;super(),this[_0x1b3da5(0x2fc)]=_0x557d4c,this[_0x1b3da5(0x111)]=_0x20d24d,this[_0x1b3da5(0x241)]=_0x3f5a8c,this['_colorAssignService']=_0x13747e,this['_memberService']=_0x534d9f,this['_univerInstanceService']=_0x4d426c,this['_commandService']=_0x41dff0,this[_0x1b3da5(0x1af)]=_0x33e5bd,K(this,_0x1b3da5(0x1cb),!0x1),K(this,_0x1b3da5(0x344),!0x1),K(this,_0x1b3da5(0x1fa),new _0x4dad7b(new Map())),K(this,'cursorInfo$',this[_0x1b3da5(0x1fa)][_0x1b3da5(0x1dc)]()),K(this,_0x1b3da5(0x25b),new _0x4dad7b([])),K(this,'roomMembers$',this[_0x1b3da5(0x25b)][_0x1b3da5(0x1e2)](_0x326ecd(0x12c))),K(this,'_updateLocalCursor',_0x32a927((_0x5d3cad,_0xf39b4c)=>{const _0xe0404e=_0x1b3da5;let _0x226627={'eventID':_0x402cad[_0xe0404e(0x2b8)],'data':{'unitID':this['unitID'],'memberID':this[_0xe0404e(0x111)]['getMemberID'](),'selection':_0x56ee9(_0x5d3cad,_0xf39b4c[_0xe0404e(0x19b)])}};this[_0xe0404e(0x111)]['send'](_0x226627,this['unitID']);},0x64));}[_0x43b1c2(0x1d8)](){const _0x5ddba8=_0x43b1c2;super['dispose'](),this[_0x5ddba8(0x1fa)][_0x5ddba8(0x2d0)](new Map()),this['_cursorInfo$'][_0x5ddba8(0x1d4)](),this['_roomMembers$'][_0x5ddba8(0x2d0)]([]),this['_roomMembers$'][_0x5ddba8(0x1d4)]();}['init'](){const _0x360d7b=_0x43b1c2;this[_0x360d7b(0x344)]||(this[_0x360d7b(0x344)]=!0x0,this['_session'][_0x360d7b(0xef)][_0x360d7b(0x1e2)](_0xe739dc(this[_0x360d7b(0x303)]))[_0x360d7b(0x2e5)](_0x32d20e=>{const _0x23a961=_0x360d7b;_0x32d20e===_0x426c[_0x23a961(0x2f2)]?this[_0x23a961(0x261)]():this[_0x23a961(0xe0)]();}),this[_0x360d7b(0x111)][_0x360d7b(0x2bc)][_0x360d7b(0x1e2)](_0xe739dc(this[_0x360d7b(0x303)]))[_0x360d7b(0x2e5)](_0x5f31f6=>{const _0x139419=_0x360d7b;let _0x363c1d=_0x5f31f6[_0x139419(0x18e)];_0x363c1d===_0x402cad[_0x139419(0x2b8)]&&this[_0x139419(0x25c)](_0x5f31f6),_0x363c1d===_0x402cad[_0x139419(0x101)]&&this[_0x139419(0x33a)](_0x5f31f6);}),this[_0x360d7b(0x2ac)](),this[_0x360d7b(0x242)](this[_0x360d7b(0x2b0)][_0x360d7b(0x2ae)](_0x1001a3=>{const _0x2ad5c4=_0x360d7b;if(this[_0x2ad5c4(0x1cb)]&&_0x1001a3['id']===_0x3c2123['id']&&_0x1001a3[_0x2ad5c4(0x1b8)][_0x2ad5c4(0x31f)]===this[_0x2ad5c4(0x2fc)]){let _0x5a5647=_0x1001a3[_0x2ad5c4(0x1b8)];this[_0x2ad5c4(0xe3)](_0x5a5647['subUnitId'],_0x5a5647[_0x2ad5c4(0x202)][0x0]);}})));}['_onCursorUpdate'](_0x4a3240){const _0x314624=_0x43b1c2;var _0x14639c;let {memberID:_0x49c729,selection:_0x197dd8}=_0x4a3240[_0x314624(0xf6)],{sheetName:_0x55c891,range:_0x3239c2}=_0x5ed367(_0x197dd8),_0x2922a2={'name':((_0x14639c=this[_0x314624(0x336)][_0x314624(0x2aa)](this['unitID'],_0x49c729))==null?void 0x0:_0x14639c[_0x314624(0x2f8)])??'Unknown\x20user','range':this[_0x314624(0x179)](_0x55c891,_0x3239c2),'sheetID':_0x55c891,'color':this[_0x314624(0x221)]['assignAColorForMemberID'](_0x49c729),'selection':_0x197dd8},_0x8d3e2c=this[_0x314624(0x22a)];_0x8d3e2c[_0x314624(0x168)](_0x49c729,_0x2922a2),this[_0x314624(0x1fa)]['next'](_0x8d3e2c);}[_0x43b1c2(0x33a)](_0x5db4ae){const _0x275b06=_0x43b1c2;let {memberID:_0x2eb6e0}=_0x5db4ae[_0x275b06(0xf6)],_0x3485d3=this[_0x275b06(0x22a)];_0x3485d3[_0x275b06(0x2a8)](_0x2eb6e0),this['_cursorInfo$'][_0x275b06(0x2d0)](_0x3485d3);}[_0x43b1c2(0x179)](_0x6e8797,_0x389d0d){const _0x13cd4c=_0x43b1c2;var _0x3e5c42;let _0x3f7b5c=(_0x3e5c42=this['_univerInstanceService'][_0x13cd4c(0x2a9)](this[_0x13cd4c(0x2fc)],_0x5658b7['UNIVER_SHEET']))==null||(_0x3e5c42=_0x3e5c42[_0x13cd4c(0x20c)](_0x6e8797))==null?void 0x0:_0x3e5c42[_0x13cd4c(0x1a6)]();return(_0x3f7b5c==null?void 0x0:_0x3f7b5c['find'](_0x1526fe=>_0x1f6338[_0x13cd4c(0x315)](_0x1526fe,_0x389d0d)))||_0x389d0d;}['_onRefRangeChange'](){const _0x3b8bee=_0x43b1c2;let _0x2d6505=new _0x4f93f4(),_0x4b4910=yn(),_0x2708fe=()=>{const _0x5b1226=_0x47c1;_0x2d6505[_0x5b1226(0x1d8)]();let _0x1fc366=(_0x33f2ed,_0x5210be,_0x1195c2,_0x390b61)=>{const _0x4cec7c=_0x5b1226;let _0x471c79=[];switch(_0x33f2ed['id']){case _0x15915b[_0x4cec7c(0x11f)]:_0x471c79=_0x5e0842(_0x33f2ed,_0x390b61);break;case _0x15915b[_0x4cec7c(0x206)]:_0x471c79=_0x3160b2(_0x33f2ed,_0x390b61);break;case _0x15915b[_0x4cec7c(0x177)]:_0x471c79=_0x507425(_0x33f2ed,_0x390b61);break;case _0x15915b['InsertRangeMoveDownCommandId']:_0x471c79=_0x22a6cf(_0x33f2ed,_0x390b61);break;case _0x15915b['InsertRangeMoveRightCommandId']:_0x471c79=_0x4dbfa6(_0x33f2ed,_0x390b61);break;case _0x15915b[_0x4cec7c(0x2eb)]:_0x471c79=_0x2cc458(_0x33f2ed,_0x390b61);break;case _0x15915b[_0x4cec7c(0x2e0)]:_0x471c79=_0x25df3b(_0x33f2ed,_0x390b61);break;case _0x15915b['RemoveColCommandId']:_0x471c79=_0x554916(_0x33f2ed,_0x390b61);break;case _0x15915b[_0x4cec7c(0x327)]:_0x471c79=_0x41d423(_0x33f2ed,_0x390b61);}let _0x430810=_0x2b3e8d(_0x471c79,_0x390b61),_0xe795a0=this[_0x4cec7c(0x22a)][_0x4cec7c(0x171)](_0x5210be);if(_0xe795a0&&_0x430810){let _0x1ab940={..._0xe795a0,'range':_0x430810};this[_0x4cec7c(0x22a)][_0x4cec7c(0x168)](_0x5210be,_0x1ab940),_0x4b4910(()=>{const _0x4f8cc4=_0x4cec7c;let _0x32e92e=this[_0x4f8cc4(0x1af)]['registerRefRange'](_0x430810,_0x1d8c56=>(_0x32e92e[_0x4f8cc4(0x1d8)](),_0x1fc366(_0x1d8c56,_0x5210be,_0x1195c2,_0x430810)));_0x2d6505['add'](_0x32e92e);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x149164,_0x39ba12)=>{const _0x274991=_0x5b1226;let {range:_0x5ed220,sheetID:_0xdd2e62}=_0x149164,_0x176a1f=this[_0x274991(0x1af)][_0x274991(0x256)](_0x5ed220,_0x19b315=>(_0x176a1f['dispose'](),_0x1fc366(_0x19b315,_0x39ba12,_0xdd2e62,_0x5ed220)));_0x2d6505[_0x274991(0x231)](_0x176a1f);});};this[_0x3b8bee(0x242)](_0x4e78ef(this[_0x3b8bee(0x1fa)][_0x3b8bee(0x2e5)](()=>{_0x2708fe();})));}[_0x43b1c2(0x261)](){const _0x4958df=_0x43b1c2;var _0xc15967,_0x4c7def;if(this[_0x4958df(0x1cb)]=!0x0,((_0xc15967=this[_0x4958df(0x288)]['getFocusedUnit']())==null?void 0x0:_0xc15967[_0x4958df(0xdd)]())!==this[_0x4958df(0x2fc)])return;let _0x3da3dd=(_0x4c7def=this[_0x4958df(0x241)]['get'](_0x58b4fe)[_0x4958df(0x1db)]())==null?void 0x0:_0x4c7def[0x0],_0x20425c=this[_0x4958df(0x288)][_0x4958df(0x282)](_0x5658b7[_0x4958df(0x1d5)])[_0x4958df(0x2fb)]();_0x3da3dd&&_0x20425c&&this[_0x4958df(0xe3)](_0x20425c[_0x4958df(0x2c4)](),_0x3da3dd);}[_0x43b1c2(0xe0)](){const _0x3aa51f=_0x43b1c2;this[_0x3aa51f(0x1cb)]=!0x1;}};bn=J([q(0x2,_0x47bc9a(_0x380635)),q(0x3,_0x47bc9a(mn)),q(0x4,_0x47bc9a(_0x3b76af)),q(0x5,_0x576907),q(0x6,_0x9de777),q(0x7,_0x47bc9a(_0x1d8140))],bn);let Z=class extends _0x5daa34{constructor(_0x4cee2b,_0x5813b3,_0x3fafb7){const _0x3cd88f=_0x43b1c2;super(),this[_0x3cd88f(0x288)]=_0x4cee2b,this[_0x3cd88f(0x241)]=_0x5813b3,this[_0x3cd88f(0x1eb)]=_0x3fafb7,K(this,_0x3cd88f(0x2e7),new Map()),K(this,'_entityInit$',new _0x26adce()),this[_0x3cd88f(0x344)]();}[_0x43b1c2(0x1d8)](){const _0xed2050=_0x43b1c2;super[_0xed2050(0x1d8)](),this[_0xed2050(0xfd)][_0xed2050(0x1d4)](),this[_0xed2050(0x2e7)][_0xed2050(0x182)](_0x5c4283=>_0x5c4283[_0xed2050(0x1d8)]());}[_0x43b1c2(0x247)](_0x5b5107){const _0x46cd59=_0x43b1c2;let _0x140409=this[_0x46cd59(0x2e7)][_0x46cd59(0x171)](_0x5b5107);return _0x140409?_0x140409[_0x46cd59(0x121)]:this[_0x46cd59(0xfd)][_0x46cd59(0x1e2)](_0x5128c1(_0x105f72=>_0x105f72['unitID']===_0x5b5107),_0x17c963(_0x2d1d47=>_0x2d1d47[_0x46cd59(0x121)]));}['_init'](){const _0x525dcd=_0x43b1c2;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5658b7[_0x525dcd(0x1d5)])[_0x525dcd(0x1e2)](_0xe739dc(this['dispose$']))[_0x525dcd(0x2e5)](async _0x4d67d7=>{const _0x4eeb77=_0x525dcd;let _0x321855=_0x4d67d7['unit']['getUnitId'](),_0x43ecb8=await this[_0x4eeb77(0x128)](_0x321855);this['_entityInit$'][_0x4eeb77(0x2d0)](_0x43ecb8),this['_entities'][_0x4eeb77(0x168)](_0x321855,_0x43ecb8);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5658b7['UNIVER_DOC'])[_0x525dcd(0x1e2)](_0xe739dc(this[_0x525dcd(0x303)]))[_0x525dcd(0x1e2)](_0x5128c1(_0x54a957=>!_0x54a957['unit'][_0x525dcd(0xdd)]()[_0x525dcd(0x1e8)]('__')))[_0x525dcd(0x2e5)](async _0x53cb07=>{const _0x14de62=_0x525dcd;let {unit:_0x13090c}=_0x53cb07,_0x144afd=_0x13090c['getUnitId'](),_0x29a8cb=await this[_0x14de62(0x2fa)](_0x144afd);this[_0x14de62(0xfd)]['next'](_0x29a8cb),this[_0x14de62(0x2e7)][_0x14de62(0x168)](_0x144afd,_0x29a8cb);}),_0x25ac9f(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5658b7[_0x525dcd(0x268)]),this[_0x525dcd(0x288)]['getTypeOfUnitDisposed$'](_0x5658b7[_0x525dcd(0x1d5)]))['pipe'](_0xe739dc(this[_0x525dcd(0x303)]))[_0x525dcd(0x2e5)](_0x573080=>{const _0x184271=_0x525dcd;let _0x35385d=_0x573080[_0x184271(0xdd)](),_0x1cd49d=this[_0x184271(0x2e7)][_0x184271(0x171)](_0x35385d);_0x1cd49d&&(_0x1cd49d[_0x184271(0x1d8)](),this[_0x184271(0x2e7)][_0x184271(0x2a8)](_0x35385d));});}async['_startSheetCollabCursor'](_0x31fbb9){const _0x26ad18=_0x43b1c2;let _0x271760=await this[_0x26ad18(0x1eb)]['requireSession'](_0x31fbb9),_0x28fc36=this['_injector'][_0x26ad18(0x337)](bn,_0x31fbb9,_0x271760);return _0x28fc36[_0x26ad18(0x332)](),_0x28fc36;}async[_0x43b1c2(0x2fa)](_0xe1cd8d){const _0x638818=_0x43b1c2;let _0x45ecb7=await this[_0x638818(0x1eb)][_0x638818(0x1cc)](_0xe1cd8d),_0x5509a9=this[_0x638818(0x241)][_0x638818(0x337)](vn,_0xe1cd8d,_0x45ecb7);return _0x5509a9[_0x638818(0x332)](),_0x5509a9;}};Z=J([q(0x0,_0x576907),q(0x1,_0x47bc9a(_0x380635)),q(0x2,_0x47bc9a(_0x5c5d11))],Z);function xn(_0x2c6e4c,_0x211a9c){const _0x48a6a6=_0x43b1c2;_0x2c6e4c[_0x48a6a6(0x199)](),_0x2c6e4c[_0x48a6a6(0x257)]=_0x48a6a6(0x317);let _0x586329=_0x2c6e4c['measureText'](_0x211a9c)[_0x48a6a6(0x173)];return _0x2c6e4c[_0x48a6a6(0x31d)](),Math[_0x48a6a6(0xe4)](_0x586329+0x8,0xc8);}function Sn(_0x1e9891,_0x469e1d){const _0x5385a3=_0x43b1c2;let {radius:_0x1acf34,width:_0x46ed92,height:_0x25727e}=_0x469e1d;_0x1acf34??=0x0,_0x46ed92??=0x1e,_0x25727e??=0x1e;let _0x325097=0x0,_0x52315d=0x0,_0x4fbb95=0x0;_0x325097=_0x52315d=_0x4fbb95=Math[_0x5385a3(0xe4)](_0x1acf34,_0x46ed92/0x2,_0x25727e/0x2),_0x1e9891[_0x5385a3(0x297)](),_0x1e9891[_0x5385a3(0x292)](_0x325097,0x0),_0x1e9891[_0x5385a3(0x15f)](_0x46ed92-_0x52315d,0x0),_0x1e9891[_0x5385a3(0x229)](_0x46ed92-_0x52315d,_0x52315d,_0x52315d,Math['PI']*0x3/0x2,0x0,!0x1),_0x1e9891['lineTo'](_0x46ed92,_0x25727e-_0x4fbb95),_0x1e9891[_0x5385a3(0x229)](_0x46ed92-_0x4fbb95,_0x25727e-_0x4fbb95,_0x4fbb95,0x0,Math['PI']/0x2,!0x1),_0x1e9891[_0x5385a3(0x15f)](0x0,_0x25727e),_0x1e9891[_0x5385a3(0x15f)](0x0,_0x325097),_0x1e9891[_0x5385a3(0x229)](_0x325097,_0x325097,_0x325097,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1e9891[_0x5385a3(0x138)](),_0x469e1d[_0x5385a3(0x30a)]&&(_0x1e9891[_0x5385a3(0x199)](),_0x1e9891[_0x5385a3(0x223)]=_0x469e1d[_0x5385a3(0x30a)],_0x469e1d[_0x5385a3(0x1d7)]===_0x5385a3(0x291)?_0x1e9891[_0x5385a3(0x30a)]('evenodd'):_0x1e9891[_0x5385a3(0x30a)](),_0x1e9891[_0x5385a3(0x31d)]());}var Cn=class e extends _0x1196df{constructor(_0x1ea3ce,_0x5137b0){const _0x908674=_0x43b1c2;super(_0x1ea3ce,_0x5137b0),K(this,_0x908674(0x34d),void 0x0),K(this,_0x908674(0x2be),void 0x0),this[_0x908674(0x34d)]=_0x5137b0==null?void 0x0:_0x5137b0['color'],this[_0x908674(0x2be)]=_0x5137b0==null?void 0x0:_0x5137b0['text'];}static[_0x43b1c2(0x1ba)](_0x47f21d,_0x414314){const _0x3851a2=_0x43b1c2;let {text:_0x1199f9,color:_0x38e67e}=_0x414314;_0x47f21d[_0x3851a2(0x199)](),_0x47f21d['font']=_0x3851a2(0x10f);let _0x51e31c=_0x47f21d[_0x3851a2(0x1b9)](_0x1199f9)[_0x3851a2(0x173)];if(Sn(_0x47f21d,{'height':0x14,'radius':0x4,'width':xn(_0x47f21d,_0x1199f9),'fill':_0x38e67e,'evented':!0x1}),_0x47f21d[_0x3851a2(0x223)]=_0x3851a2(0x10c),_0x51e31c>0xc0){let _0x3032c9='',_0x35e47b=0x0;for(let _0x51260a of _0x1199f9){let _0x3d99f3=_0x47f21d[_0x3851a2(0x1b9)](_0x51260a)[_0x3851a2(0x173)];if(_0x35e47b+_0x3d99f3<=0xc0-_0x47f21d[_0x3851a2(0x1b9)](_0x3851a2(0x1c9))[_0x3851a2(0x173)])_0x3032c9+=_0x51260a,_0x35e47b+=_0x3d99f3;else{_0x3032c9+=_0x3851a2(0x1c9);break;}}_0x47f21d[_0x3851a2(0xe5)](_0x3032c9,0x4,0xf);}else _0x47f21d['fillText'](_0x1199f9,0x4,0xf);_0x47f21d['restore']();}[_0x43b1c2(0x130)](_0xbe3027){const _0x2faa93=_0x43b1c2;e[_0x2faa93(0x1ba)](_0xbe3027,this);}};const wn=_0x43b1c2(0x1f8);var Tn=class{constructor(_0x4af36a,_0xe807d3,_0x584721,_0x1c2d44){const _0x136371=_0x43b1c2;this[_0x136371(0x16f)]=_0x4af36a,this[_0x136371(0x26d)]=_0xe807d3,this[_0x136371(0x142)]=_0x584721,this[_0x136371(0x169)]=_0x1c2d44,K(this,_0x136371(0x16e),[]),K(this,'_anchor',null),K(this,'_textBubble',null),K(this,_0x136371(0x2a6),null),K(this,'_hideTimer',null),K(this,_0x136371(0x1d9),null),this[_0x136371(0x287)]();}set[_0x43b1c2(0x137)](_0x543928){const _0x34b007=_0x43b1c2;_0x543928?(this[_0x34b007(0x2a6)]&&this[_0x34b007(0x2a6)]['hide'](),this[_0x34b007(0x209)]&&this[_0x34b007(0x209)]['show']()):(this[_0x34b007(0x2a6)]&&this[_0x34b007(0x2a6)][_0x34b007(0x1a9)](),this[_0x34b007(0x209)]&&this[_0x34b007(0x209)][_0x34b007(0x339)]());}[_0x43b1c2(0x1d8)](){const _0x1809ab=_0x43b1c2;for(let _0x43b571 of this['_shapes'])_0x43b571[_0x1809ab(0x1d8)]();this[_0x1809ab(0x209)]&&this[_0x1809ab(0x209)]['dispose'](),this['_anchorDot']&&this[_0x1809ab(0x2a6)][_0x1809ab(0x1d8)](),this['_anchor']&&this[_0x1809ab(0x27d)]['dispose'](),this[_0x1809ab(0x1d9)]&&this[_0x1809ab(0x1d9)]();}[_0x43b1c2(0x287)](){const _0x59f6ef=_0x43b1c2;let {_docSkeleton:_0x17fd07,_document:_0x2e621b}=this,{color:_0x497d78,name:_0x29ee0e,ranges:_0x5ebcec}=this[_0x59f6ef(0x16f)],_0x49ad4c=_0x2e621b[_0x59f6ef(0x2db)](),{docsLeft:_0x4dd476,docsTop:_0x1106ab}=_0x49ad4c,_0x15802c=new _0x4e490a(_0x49ad4c,_0x17fd07);for(let {startOffset:_0xa021f2,endOffset:_0x160bf6,rangeType:_0x4c74cf,segmentId:_0x200a77,segmentPage:_0x3179fc,collapsed:_0x117026,isActive:_0x221870}of _0x5ebcec){let _0x5012ee=_0x17fd07[_0x59f6ef(0x230)](_0xa021f2,!0x0,_0x200a77,_0x3179fc),_0xcb2fb9=_0x17fd07[_0x59f6ef(0x230)](_0x160bf6,!0x0,_0x200a77,_0x3179fc);_0xcb2fb9??=_0x17fd07[_0x59f6ef(0x230)](_0x160bf6-0x1,!0x1,_0x200a77,_0x3179fc);let _0xa12ae2=En(_0x5012ee,_0xcb2fb9);if(_0x221870&&_0xa12ae2[_0x59f6ef(0x2a0)]){let {contentBoxPointGroup:_0x3aaedc}=_0x15802c[_0x59f6ef(0x323)](_0xcb2fb9,_0xcb2fb9);if(_0x3aaedc['length']===0x0)continue;this['_drawAnchor'](_0x497d78,_0x3aaedc,_0x4dd476,_0x1106ab,_0x29ee0e),this[_0x59f6ef(0x1d9)]=this[_0x59f6ef(0x194)]();}if(_0x5012ee&&_0xcb2fb9){if(_0x4c74cf===_0x86d58a[_0x59f6ef(0xfb)]){let {pointGroup:_0x532c09}=new _0x4b546b(_0x49ad4c,_0x17fd07)[_0x59f6ef(0x323)](_0x5012ee,_0xcb2fb9)??{};if(_0x532c09==null||_0x532c09[_0x59f6ef(0xf9)]===0x0)continue;this['_drawRectRange'](_0x497d78,_0x532c09,_0x4dd476,_0x1106ab);}else{if(!_0x117026&&_0xa12ae2[_0x59f6ef(0x1ef)]){let {borderBoxPointGroup:_0x2a3ee0}=_0x15802c[_0x59f6ef(0x323)](_0x5012ee,_0xcb2fb9);if(_0x2a3ee0[_0x59f6ef(0xf9)]===0x0)continue;this[_0x59f6ef(0x151)](_0x497d78,_0x2a3ee0,_0x4dd476,_0x1106ab);}}}}}[_0x43b1c2(0xee)](_0x58c072,_0x508570,_0x480489,_0x13831a,_0x5d9ac9){const _0x2719ac=_0x43b1c2;let {left:_0x48332b,top:_0x4952fa,height:_0x45122c}=this[_0x2719ac(0x2b4)](_0x508570),_0x1088e5=1.5/this['_getScale'](),_0x5cd443=new _0x9645cc(wn+_0x42801a(0x6),{'left':_0x48332b+_0x480489-_0x1088e5,'top':_0x4952fa+_0x13831a,'height':_0x45122c,'width':1.5,'fill':_0x58c072||_0x335c6d(_0x40614d[_0x2719ac(0x15a)],0x0),'strokeWidth':_0x1088e5,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x2719ac(0x27d)]=_0x5cd443,this[_0x2719ac(0x26d)][_0x2719ac(0xeb)](_0x5cd443,_0x13b08e);let _0x26a814=new _0x9645cc(wn+_0x42801a(0x6),{'left':_0x48332b+_0x480489-_0x1088e5,'top':_0x4952fa+_0x13831a-0x2,'height':0x4,'width':0x4,'fill':_0x58c072||_0x335c6d(_0x40614d[_0x2719ac(0x15a)],0x0),'strokeWidth':0x0,'stroke':_0x58c072||_0x335c6d(_0x40614d[_0x2719ac(0x15a)],0x0),'evented':!0x1});this['_anchorDot']=_0x26a814,this['_scene'][_0x2719ac(0xeb)](_0x26a814,_0x13b08e);let _0x4a15c9=new Cn(wn+_0x42801a(0x6),{'left':_0x48332b+_0x480489-_0x1088e5,'top':_0x4952fa+_0x13831a-0x14,'text':_0x5d9ac9,'color':_0x58c072});this[_0x2719ac(0x209)]=_0x4a15c9,this[_0x2719ac(0x26d)][_0x2719ac(0xeb)](_0x4a15c9,_0x13b08e),this[_0x2719ac(0x137)]=!0x1;}['_handleHover'](){const _0x446195=_0x43b1c2;let _0x31d7d2=this[_0x446195(0x27d)][_0x446195(0x34b)]['subscribeEvent'](()=>{const _0x1811ea=_0x446195;this[_0x1811ea(0x137)]=!0x0;}),_0x46627a=this[_0x446195(0x27d)][_0x446195(0x2a4)][_0x446195(0x2f1)](()=>{const _0x24dd81=_0x446195;this[_0x24dd81(0x187)]&&clearTimeout(this['_hideTimer']),this[_0x24dd81(0x187)]=setTimeout(()=>{const _0x1f439b=_0x24dd81;this[_0x1f439b(0x137)]=!0x1;},0x7d0);});return()=>{const _0x1bfd85=_0x446195;_0x31d7d2[_0x1bfd85(0x2e3)](),_0x46627a[_0x1bfd85(0x2e3)]();};}['_drawTextRange'](_0x2b5b7c,_0x4b1579,_0x4d0df8,_0x3f832e){const _0x504934=_0x43b1c2;let _0x3a3720=0.2,_0x20974f=new _0x4e862b(_0x2b5b7c)[_0x504934(0x24d)](_0x3a3720)['toRgbString'](),_0x3ae4ea=new _0x69a902('collab-text-range-'+_0x42801a(0x6),{'pointsGroup':_0x4b1579,'fill':_0x20974f||_0x335c6d(_0x40614d[_0x504934(0x15a)],_0x3a3720),'left':_0x4d0df8,'top':_0x3f832e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x504934(0x16e)]['push'](_0x3ae4ea),this[_0x504934(0x26d)][_0x504934(0xeb)](_0x3ae4ea,_0x13b08e);}[_0x43b1c2(0x104)](_0x374b33,_0x585585,_0x4e5e20,_0xa30081){const _0x497686=_0x43b1c2;let _0x41f18e=0.2,_0x12b228=new _0x4e862b(_0x374b33)['setAlpha'](_0x41f18e)[_0x497686(0x31c)](),_0x343a6a=new _0x69a902(_0x497686(0x32b)+_0x42801a(0x6),{'pointsGroup':_0x585585,'fill':_0x12b228||_0x335c6d(_0x40614d[_0x497686(0x15a)],_0x41f18e),'left':_0x4e5e20,'top':_0xa30081,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x497686(0x23b)](_0x343a6a),this[_0x497686(0x26d)]['addObject'](_0x343a6a,_0x13b08e);}[_0x43b1c2(0x2b4)](_0x306cf7){let _0x1051c9=_0x306cf7[0x0],_0x235833=_0x1051c9[0x0],_0x5d71a2=_0x1051c9[0x2],{x:_0x551bd3,y:_0x2aed63}=_0x235833,{x:_0x411400,y:_0xe82c4e}=_0x5d71a2;return{'left':_0x551bd3,'top':_0x2aed63,'width':_0x411400-_0x551bd3,'height':_0xe82c4e-_0x2aed63};}[_0x43b1c2(0x23c)](){const _0x5eec79=_0x43b1c2;let {scaleX:_0x816082,scaleY:_0x51d789}=this[_0x5eec79(0x26d)][_0x5eec79(0x12b)]();return Math['max'](_0x816082,_0x51d789);}};function En(_0x4d3982,_0x4dcc64){const _0x1fb85d=_0x43b1c2;if(!_0x4dcc64)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x4d3982||_0x4d3982['pageType']!==_0x4dcc64['pageType']||(_0x4d3982[_0x1fb85d(0x22d)]===_0x2b34e2[_0x1fb85d(0x2f4)]||_0x4d3982[_0x1fb85d(0x22d)]===_0x2b34e2[_0x1fb85d(0x21b)])&&_0x4d3982[_0x1fb85d(0x34c)]!==_0x4dcc64[_0x1fb85d(0x34c)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x2f07a2=_0x2f5118(_0x4d3982),_0x164ca5=_0x2f5118(_0x4dcc64);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x2f07a2==null||_0x164ca5==null?_0x2f07a2==null&&_0x164ca5==null:_0x2f07a2[_0x1fb85d(0x213)]===_0x164ca5[_0x1fb85d(0x213)]&&_0x2f07a2[_0x1fb85d(0x2c3)]===_0x164ca5[_0x1fb85d(0x2c3)]&&_0x2f07a2['columnIndex']===_0x164ca5[_0x1fb85d(0x334)]};}let Dn=class extends _0x5daa34{constructor(_0x1af58,_0x53fbea,_0x5ceef7,_0xac9236,_0x9b29b7){const _0x1efcb6=_0x43b1c2;super(),this[_0x1efcb6(0x1ea)]=_0x1af58,this[_0x1efcb6(0x16a)]=_0x53fbea,this[_0x1efcb6(0x1e3)]=_0x5ceef7,this[_0x1efcb6(0x2b0)]=_0xac9236,this[_0x1efcb6(0x126)]=_0x9b29b7,K(this,_0x1efcb6(0x342),[]),K(this,_0x1efcb6(0x26b),[]),this[_0x1efcb6(0x344)]();}[_0x43b1c2(0x344)](){const _0x9baef9=_0x43b1c2;let _0x2646f3=this[_0x9baef9(0x1ea)][_0x9baef9(0x31f)],_0x2b80c9=this[_0x9baef9(0x16a)];this[_0x9baef9(0x242)](_0x5a1a2f([this[_0x9baef9(0x1e3)][_0x9baef9(0x247)](_0x2646f3),this[_0x9baef9(0x126)][_0x9baef9(0xf2)]])[_0x9baef9(0x1e2)](_0x56ab65(([_0x2a10c6,_0x28430d])=>({'skeleton':_0x2b80c9['getSkeleton'](),'cursors':[..._0x2a10c6['values']()][_0x9baef9(0x13f)](_0x22f3e6=>({..._0x22f3e6,'color':this[_0x9baef9(0x126)][_0x9baef9(0x2d6)](_0x22f3e6[_0x9baef9(0x34d)])}))})))[_0x9baef9(0x2e5)](_0x3ba769=>{const _0x5e0afc=_0x9baef9;if(this[_0x5e0afc(0x20f)](),_0x3ba769){let {skeleton:_0x13ef87,cursors:_0x36a227}=_0x3ba769;this[_0x5e0afc(0x235)](_0x13ef87,_0x36a227);}})),this[_0x9baef9(0x1b2)](),this[_0x9baef9(0x239)]();}[_0x43b1c2(0x235)](_0x2cce9e,_0x4d19ee){const _0x3313b5=_0x43b1c2;let {scene:_0x35e7db,mainComponent:_0x42c77e}=this[_0x3313b5(0x1ea)],_0x483f6e=_0x4d19ee[_0x3313b5(0x10b)](_0x211116=>new Tn(_0x211116,_0x35e7db,_0x2cce9e,_0x42c77e));this[_0x3313b5(0x342)]=_0x483f6e,this[_0x3313b5(0x26b)]=_0x4d19ee;}[_0x43b1c2(0x340)](){const _0x9b18dc=_0x43b1c2;this['_removeCollabCursors']();let {scene:_0x1ed8eb,mainComponent:_0x470207}=this[_0x9b18dc(0x1ea)],_0x247f5f=this[_0x9b18dc(0x16a)][_0x9b18dc(0x1ad)](),_0x51c924=this[_0x9b18dc(0x26b)]['map'](_0x4f5df7=>new Tn(_0x4f5df7,_0x1ed8eb,_0x247f5f,_0x470207));this[_0x9b18dc(0x342)]=_0x51c924;}[_0x43b1c2(0x20f)](){const _0x472484=_0x43b1c2;this[_0x472484(0x342)][_0x472484(0x182)](_0x449b99=>_0x449b99[_0x472484(0x1d8)]()),this[_0x472484(0x342)]=[];}[_0x43b1c2(0x239)](){const _0x54f2c4=_0x43b1c2;let _0x5128c6=[_0x55bc8a['id']];this[_0x54f2c4(0x242)](this[_0x54f2c4(0x2b0)][_0x54f2c4(0x2ae)](_0x1ad213=>{const _0x149ee3=_0x54f2c4;_0x5128c6[_0x149ee3(0x34a)](_0x1ad213['id'])&&_0x1ad213[_0x149ee3(0x1b8)]['unitId']===this[_0x149ee3(0x1ea)][_0x149ee3(0x31f)]&&this[_0x149ee3(0x340)]();}));}[_0x43b1c2(0x1b2)](){const _0x102a53=_0x43b1c2;this[_0x102a53(0x242)](_0xe2d34a(this[_0x102a53(0x1ea)]['engine']['onTransformChange$'])[_0x102a53(0x1e2)](_0x1248a5(_0x35fc8b=>_0x35fc8b[_0x102a53(0x233)]===_0x212f57[_0x102a53(0x330)]),_0x1ee6dd(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Dn=J([q(0x1,_0x47bc9a(_0x187841)),q(0x2,_0x47bc9a(Z)),q(0x3,_0x9de777),q(0x4,_0x47bc9a(_0x1cd93d))],Dn);var On=class extends _0x1196df{constructor(_0x3107db,_0x317e93){const _0x4beed2=_0x43b1c2;super(_0x3107db,_0x317e93),K(this,_0x4beed2(0x266),void 0x0),K(this,_0x4beed2(0x234),!0x1),K(this,_0x4beed2(0x154),void 0x0),K(this,_0x4beed2(0x14e),''),K(this,_0x4beed2(0x1b0),_0x4beed2(0x2d3)),K(this,_0x4beed2(0x271),void 0x0),K(this,_0x4beed2(0x2c6),void 0x0),K(this,_0x4beed2(0x32e),void 0x0),K(this,_0x4beed2(0x33b),0x4),K(this,_0x4beed2(0x2bd),void 0x0),K(this,_0x4beed2(0x2de),void 0x0),K(this,'_isBlinkVisible',!0x0),K(this,_0x4beed2(0x14b),0x0),K(this,'_labelHorizontalPosition',_0x4beed2(0x1b7)),_0x317e93&&(this[_0x4beed2(0x1cd)](_0x317e93),_0x317e93['highlight']&&(_0x317e93[_0x4beed2(0x2d9)]??this[_0x4beed2(0x33b)])&&this['_startBlinking'](_0x317e93[_0x4beed2(0x2d9)]??this[_0x4beed2(0x33b)])),this[_0x4beed2(0x34b)][_0x4beed2(0x2f1)](()=>this[_0x4beed2(0x1cd)]({'hovered':!0x0})),this[_0x4beed2(0x2a4)][_0x4beed2(0x2f1)](()=>this[_0x4beed2(0x1cd)]({'hovered':!0x1}));}[_0x43b1c2(0x1c2)](_0xddef9d){this['_offsetY']=_0xddef9d;}[_0x43b1c2(0x1cd)](_0x1c2abb){const _0x36b70f=_0x43b1c2;this[_0x36b70f(0x266)]=_0x1c2abb[_0x36b70f(0x34d)]??this[_0x36b70f(0x266)],this[_0x36b70f(0x234)]=_0x1c2abb[_0x36b70f(0x14f)]??this[_0x36b70f(0x234)],this[_0x36b70f(0x154)]=_0x1c2abb[_0x36b70f(0x19b)]??this[_0x36b70f(0x154)],this[_0x36b70f(0x14e)]=_0x1c2abb[_0x36b70f(0x2f8)]??this[_0x36b70f(0x14e)],this[_0x36b70f(0x1b0)]=_0x1c2abb[_0x36b70f(0x272)]??this[_0x36b70f(0x1b0)],this[_0x36b70f(0x271)]=_0x1c2abb[_0x36b70f(0x11d)]??this[_0x36b70f(0x271)],this['_showText']=_0x1c2abb[_0x36b70f(0x301)]??this[_0x36b70f(0x2c6)],this[_0x36b70f(0x109)]=_0x1c2abb[_0x36b70f(0x32c)]??this[_0x36b70f(0x109)],_0x1c2abb['highlightSecond']!==void 0x0&&(this[_0x36b70f(0x33b)]=_0x1c2abb[_0x36b70f(0x2d9)]),_0x1c2abb[_0x36b70f(0x270)]!==void 0x0&&(this[_0x36b70f(0x32e)]=_0x1c2abb['highlight']),_0x1c2abb['offsetY']!==void 0x0&&(this['_offsetY']=_0x1c2abb[_0x36b70f(0x1d1)]),this[_0x36b70f(0x28d)]({'width':_0x1c2abb[_0x36b70f(0x173)],'height':_0x1c2abb[_0x36b70f(0x1ec)]});}['onMouseMove'](_0x524a33){const _0x4d886b=_0x43b1c2;let {row:_0x13d121,column:_0x56cede}=_0x524a33;if(_0x13d121>=this[_0x4d886b(0x154)]['startRow']&&_0x13d121<=this[_0x4d886b(0x154)][_0x4d886b(0x255)]&&_0x56cede>=this['_range'][_0x4d886b(0x2b2)]&&_0x56cede<=this[_0x4d886b(0x154)][_0x4d886b(0x313)]){this[_0x4d886b(0x1cd)]({'hovered':!0x0});return;}this[_0x4d886b(0x1cd)]({'hovered':!0x1});}[_0x43b1c2(0x2d2)](_0x59eb3b){const _0xf00e3b=_0x43b1c2;this['_stopBlinking'](),this[_0xf00e3b(0x312)]=!0x0,this[_0xf00e3b(0x2de)]=window[_0xf00e3b(0x322)](()=>{const _0x2fad1a=_0xf00e3b;this[_0x2fad1a(0x312)]=!this[_0x2fad1a(0x312)],this['makeDirty'](!0x0);},0x1f4),this[_0xf00e3b(0x2bd)]=window['setTimeout'](()=>{const _0x450996=_0xf00e3b;this[_0x450996(0x1c6)](),this['_isBlinkVisible']=!0x0,this[_0x450996(0xe9)](!0x0);},_0x59eb3b*0x3e8);}['_stopBlinking'](){const _0x5f4a4a=_0x43b1c2;this[_0x5f4a4a(0x2de)]&&=(window[_0x5f4a4a(0x183)](this[_0x5f4a4a(0x2de)]),void 0x0),this['_blinkTimer']&&=(window[_0x5f4a4a(0x129)](this[_0x5f4a4a(0x2bd)]),void 0x0);}[_0x43b1c2(0x24b)](_0x209a84){return!0x1;}[_0x43b1c2(0x1d8)](){const _0x4ebf07=_0x43b1c2;this[_0x4ebf07(0x1c6)](),super['dispose']();}['_draw'](_0x26f6ac){const _0x5309c7=_0x43b1c2;let _0xcc27c9=this['_color'],_0x473db4=this[_0x5309c7(0x271)];if(this[_0x5309c7(0x32e)]&&!this[_0x5309c7(0x312)]&&(_0xcc27c9=this[_0x5309c7(0xdc)](this[_0x5309c7(0x266)]),_0x473db4=this[_0x5309c7(0x271)]?this['_getLighterColor'](this['_backgroundColor']):void 0x0),_0x9645cc[_0x5309c7(0x1ba)](_0x26f6ac,{'width':this['width'],'height':this['height'],'strokeWidth':this[_0x5309c7(0x28c)]||1.5,'stroke':_0xcc27c9,'evented':!0x1,'fill':_0x473db4}),this[_0x5309c7(0x234)]||this[_0x5309c7(0x2c6)]){_0x26f6ac[_0x5309c7(0x199)]();let _0x5bbc27=this[_0x5309c7(0x109)]===_0x5309c7(0x217)?-xn(_0x26f6ac,this[_0x5309c7(0x14e)]):this['width'];_0x26f6ac[_0x5309c7(0x13c)](0x1,0x0,0x0,0x1,_0x5bbc27,(this[_0x5309c7(0x1b0)]===_0x5309c7(0x25d)?0x0:-0x14)+(this[_0x5309c7(0x14b)]??0x0)),Cn['drawWith'](_0x26f6ac,{'text':this[_0x5309c7(0x14e)],'color':_0xcc27c9}),_0x26f6ac[_0x5309c7(0x31d)]();}}['_getLighterColor'](_0x55ade0){const _0x5575a8=_0x43b1c2;return _0x55ade0['startsWith']('#')?_0x5575a8(0x19c)+Number[_0x5575a8(0x2b6)](_0x55ade0[_0x5575a8(0x166)](0x1,0x3),0x10)+',\x20'+Number[_0x5575a8(0x2b6)](_0x55ade0[_0x5575a8(0x166)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x55ade0[_0x5575a8(0x166)](0x5,0x7),0x10)+',\x200.2)':_0x55ade0[_0x5575a8(0x1e8)](_0x5575a8(0x274))?_0x55ade0[_0x5575a8(0x26e)](/[\d.]+\)$/g,_0x5575a8(0x333)):_0x55ade0['startsWith']('rgb')?_0x55ade0['replace'](_0x5575a8(0x15c),_0x5575a8(0x274))[_0x5575a8(0x26e)](')',_0x5575a8(0x1bd)):_0x55ade0;}};let kn=class extends _0x5daa34{constructor(_0x1143d0,_0x14713b,_0x4f3157,_0x71a417){const _0x32f903=_0x43b1c2;super(),this[_0x32f903(0x1ea)]=_0x1143d0,this['_sheetSkeletonManagerService']=_0x14713b,this[_0x32f903(0x1e3)]=_0x4f3157,this[_0x32f903(0x126)]=_0x71a417,K(this,_0x32f903(0x26b),new Set()),K(this,_0x32f903(0xec),null),K(this,_0x32f903(0x195),null),this[_0x32f903(0x344)]();}[_0x43b1c2(0x344)](){const _0x10ad48=_0x43b1c2;this[_0x10ad48(0x18d)][_0x10ad48(0x116)][_0x10ad48(0x1e2)](_0x52cb54(this[_0x10ad48(0x303)]),_0x2876bb(_0x300b32=>{const _0x380465=_0x10ad48;if(_0x300b32){let _0x4ee38a=_0x300b32[_0x380465(0xd7)];return _0x5a1a2f(this[_0x380465(0x1e3)]['getCollabCursors$'](this[_0x380465(0x1ea)][_0x380465(0x31f)]),this['_themeService'][_0x380465(0xf2)])[_0x380465(0x1e2)](_0x56ab65(([_0x5ae48a,_0x473d77])=>{const _0x193d42=_0x380465;let _0x5d7ae7=new Map();return _0x5ae48a[_0x193d42(0x182)]((_0x245a9f,_0x17738b)=>{const _0x354812=_0x193d42;if(_0x245a9f[_0x354812(0x19e)]===_0x4ee38a){let _0x288a31={..._0x245a9f};_0x288a31[_0x354812(0x34d)]=this['_themeService'][_0x354812(0x2d6)](_0x245a9f[_0x354812(0x34d)]),_0x5d7ae7[_0x354812(0x168)](_0x17738b,_0x288a31);}}),{'skeleton':_0x300b32,'cursors':_0x5d7ae7};}));}return _0x28b600({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5f5d10,cursors:_0x1b0759})=>{const _0x94976c=_0x10ad48;this[_0x94976c(0x20f)](),_0x5f5d10&&this[_0x94976c(0x235)](_0x5f5d10,_0x1b0759);}),this[_0x10ad48(0x242)](this[_0x10ad48(0x18d)][_0x10ad48(0x116)][_0x10ad48(0x1e2)](_0x52cb54(this['dispose$']))[_0x10ad48(0x2e5)](_0x2efbc0=>{const _0xf1ea59=_0x10ad48;var _0x288c68;if(_0x2efbc0==null)return;(_0x288c68=this[_0xf1ea59(0x195)])==null||_0x288c68[_0xf1ea59(0x2e3)](),this[_0xf1ea59(0x195)]=null;let {skeleton:_0x15ca8e}=_0x2efbc0,{scene:_0x17c928}=this[_0xf1ea59(0x1ea)];this[_0xf1ea59(0x195)]=_0x17c928[_0xf1ea59(0x105)][_0xf1ea59(0x2f1)](_0x32a927(_0x46ee21=>{const _0x3e244a=_0xf1ea59;var _0xea07a5,_0x1c8e45;let {offsetX:_0xf5fb04,offsetY:_0x3e4fbe}=_0x46ee21,{x:_0x5ac40b,y:_0x2f7e60}=_0x17c928[_0x3e244a(0x2af)](_0x1115c4[_0x3e244a(0x2c5)]([_0xf5fb04,_0x3e4fbe])),{scaleX:_0x44302a,scaleY:_0x208907}=_0x17c928[_0x3e244a(0x12b)](),_0x19453c=_0x17c928[_0x3e244a(0x1fd)](_0x2bab45[_0x3e244a(0x248)]),_0x189be4=_0x17c928[_0x3e244a(0xd6)](_0x1115c4['FromArray']([_0x5ac40b,_0x2f7e60]),_0x19453c),_0x12d1d0=_0x15ca8e[_0x3e244a(0x2ce)](_0xf5fb04,_0x3e4fbe,_0x44302a,_0x208907,_0x189be4);(((_0xea07a5=this['_lastPointer'])==null?void 0x0:_0xea07a5[_0x3e244a(0x294)])!==_0x12d1d0[_0x3e244a(0x294)]||((_0x1c8e45=this[_0x3e244a(0xec)])==null?void 0x0:_0x1c8e45[_0x3e244a(0x1a5)])!==_0x12d1d0[_0x3e244a(0x1a5)])&&this[_0x3e244a(0x26b)][_0x3e244a(0x182)](_0x8d7aa3=>{const _0x383626=_0x3e244a;_0x8d7aa3[_0x383626(0x1b5)](_0x12d1d0);});},0x64));})),this[_0x10ad48(0x242)](_0x4e78ef(()=>{const _0x8a9442=_0x10ad48;var _0x4a101c;(_0x4a101c=this[_0x8a9442(0x195)])==null||_0x4a101c['unsubscribe'](),this[_0x8a9442(0x195)]=null;}));}[_0x43b1c2(0x235)](_0x51b23b,_0x428603){const _0x114ced=_0x43b1c2;let _0xe167c9=this[_0x114ced(0x18d)]['getCurrentSkeleton']();if(!_0xe167c9)return;let _0x32fff9=this[_0x114ced(0x33d)]();if(!_0x32fff9)return;this[_0x114ced(0x26b)][_0x114ced(0x182)](_0x4ed385=>{const _0x475cfe=_0x114ced;_0x4ed385[_0x475cfe(0xe9)]();});let {scene:_0x53305c}=_0x32fff9,_0x49f348=An(Array['from'](_0x428603[_0x114ced(0x1f9)]()))[_0x114ced(0x10b)](_0x3e04ba=>{const _0x84c413=_0x114ced;let {color:_0x1fcbd7,range:_0x37413c,name:_0x2ec27b,selection:_0xc20f71,sheetID:_0x274f8b}=_0x3e04ba,{startColumn:_0x36c96d,startRow:_0x208d28,endColumn:_0x4f0b96,endRow:_0xc4d714}=_0x37413c,_0x3fc24e=_0x265f7e(_0x208d28,_0x36c96d,_0x53305c,_0xe167c9),_0x421c9f=_0x265f7e(_0xc4d714,_0x4f0b96,_0x53305c,_0xe167c9),{columnHeaderHeightAndMarginTop:_0x2cb13f}=_0xe167c9,{startX:_0x3687a3,startY:_0x21aad0}=_0x3fc24e,{endX:_0x53c60e,endY:_0x452937}=_0x421c9f,_0x48dbfa=_0x53c60e-_0x3687a3,_0x274439=_0x452937-_0x21aad0;return new On(_0x2ec27b,{'labelPosition':_0x21aad0-_0x2cb13f>=0x14?_0x84c413(0x2d3):_0x84c413(0x25d),'sheetID':_0x274f8b,'range':_0x37413c,'color':_0x1fcbd7,'name':_0x2ec27b,'selection':_0xc20f71,'left':_0x3687a3,'top':_0x21aad0,'width':_0x48dbfa,'height':_0x274439,'evented':!0x1,'zIndex':0x1389});});_0x53305c[_0x114ced(0x113)](_0x49f348,0x1),this[_0x114ced(0x26b)]=new Set(_0x49f348);}[_0x43b1c2(0x20f)](){const _0x5b1706=_0x43b1c2;var _0x2b4e4b;(_0x2b4e4b=this[_0x5b1706(0x26b)])==null||_0x2b4e4b[_0x5b1706(0x182)](_0x9e239=>_0x9e239['dispose']());}['_getSheetObject'](){const _0x3c6be8=_0x43b1c2;return _0x5b30fb(this[_0x3c6be8(0x1ea)]['unit'],this[_0x3c6be8(0x1ea)]);}};kn=J([q(0x1,_0x47bc9a(_0x11a560)),q(0x2,_0x47bc9a(Z)),q(0x3,_0x47bc9a(_0x1cd93d))],kn);function An(_0x46bd1f){const _0x201138=_0x43b1c2;let _0x3464d6=new Map();return _0x46bd1f[_0x201138(0x182)](_0x324eac=>{const _0x5cdf4d=_0x201138;if(_0x3464d6[_0x5cdf4d(0x2a1)](_0x324eac[_0x5cdf4d(0x29b)])){let _0x1dec30=_0x3464d6[_0x5cdf4d(0x171)](_0x324eac[_0x5cdf4d(0x29b)]);_0x1dec30[_0x5cdf4d(0x2f8)]+=',\x20'+_0x324eac[_0x5cdf4d(0x2f8)];}else _0x3464d6[_0x5cdf4d(0x168)](_0x324eac[_0x5cdf4d(0x29b)],_0x324eac);}),Array[_0x201138(0x17c)](_0x3464d6[_0x201138(0x1f9)]());}function jn(_0xee848e){const _0x5b10f0=_0x43b1c2;return typeof _0xee848e==_0x5b10f0(0x26f)&&!!_0xee848e;}function Mn(_0x101f9f){const _0x2e481d=_0x43b1c2;return _0x101f9f[_0x2e481d(0x18e)]===_0x402cad[_0x2e481d(0x2b8)]&&_0x2e481d(0xf6)in _0x101f9f&&jn(_0x101f9f['data'])&&typeof _0x101f9f[_0x2e481d(0xf6)]['memberID']==_0x2e481d(0x210)&&typeof _0x101f9f[_0x2e481d(0xf6)][_0x2e481d(0x29b)]==_0x2e481d(0x210);}function Nn(_0x3afd93){const _0x4e1ec3=_0x43b1c2;return _0x3afd93[_0x4e1ec3(0x18e)]===_0x402cad['USERS_LEAVE']&&_0x4e1ec3(0xf6)in _0x3afd93&&jn(_0x3afd93[_0x4e1ec3(0xf6)])&&typeof _0x3afd93[_0x4e1ec3(0xf6)][_0x4e1ec3(0x19a)]=='string';}function Pn(_0x579250,_0x466d28){const _0x3c7986=_0x43b1c2;let _0x36f0c0;try{_0x36f0c0=JSON[_0x3c7986(0x147)](_0x579250);}catch{return null;}if(!jn(_0x36f0c0)||typeof _0x36f0c0[_0x3c7986(0x1f2)]!=_0x3c7986(0x210)||typeof _0x36f0c0[_0x3c7986(0x31f)]!=_0x3c7986(0x210)||typeof _0x36f0c0[_0x3c7986(0x2a2)]!=_0x3c7986(0x210))return null;let _0x5325a0=typeof _0x36f0c0[_0x3c7986(0x30b)]=='number'?_0x36f0c0['unitType']:_0x466d28;if(_0x5325a0==null)return null;let _0x1a32c7=jn(_0x36f0c0[_0x3c7986(0x295)])&&typeof _0x36f0c0[_0x3c7986(0x295)]['x']==_0x3c7986(0x310)&&Number[_0x3c7986(0x160)](_0x36f0c0[_0x3c7986(0x295)]['x'])&&typeof _0x36f0c0['pointer']['y']==_0x3c7986(0x310)&&Number[_0x3c7986(0x160)](_0x36f0c0[_0x3c7986(0x295)]['y'])?{'x':_0x36f0c0[_0x3c7986(0x295)]['x'],'y':_0x36f0c0[_0x3c7986(0x295)]['y']}:null;return{'kind':_0x36f0c0[_0x3c7986(0x1f2)],'unitType':_0x5325a0,'unitId':_0x36f0c0[_0x3c7986(0x31f)],'subUnitId':_0x36f0c0[_0x3c7986(0x2a2)],'selectedIds':Array['isArray'](_0x36f0c0[_0x3c7986(0x28e)])?_0x36f0c0[_0x3c7986(0x28e)][_0x3c7986(0x1c3)](_0x41a8d2=>typeof _0x41a8d2==_0x3c7986(0x210)):[],'focusedId':typeof _0x36f0c0[_0x3c7986(0x16d)]==_0x3c7986(0x210)?_0x36f0c0[_0x3c7986(0x16d)]:null,'pointer':_0x1a32c7};}function Fn(_0x4e3029,_0x1facbb,_0x401865){const _0x5abf91=_0x43b1c2;return{'kind':_0x1facbb,'unitType':_0x4e3029,'unitId':_0x401865[_0x5abf91(0x31f)],'subUnitId':_0x401865['subUnitId'],'selectedIds':Array[_0x5abf91(0x17c)](_0x401865[_0x5abf91(0x28e)]),'focusedId':_0x401865[_0x5abf91(0x16d)],'pointer':_0x401865[_0x5abf91(0x295)]?{..._0x401865['pointer']}:null};}let In=class extends _0x5daa34{constructor(_0x32fe07,_0x357b2a,_0x315bff,_0x473e56,_0x14cf61,_0x1fb08b){const _0x2ef80c=_0x43b1c2;super(),this['unitId']=_0x32fe07,this[_0x2ef80c(0x111)]=_0x357b2a,this['_adapter']=_0x315bff,this[_0x2ef80c(0x221)]=_0x473e56,this[_0x2ef80c(0x336)]=_0x14cf61,this['_commandService']=_0x1fb08b,K(this,_0x2ef80c(0x1cb),!0x1),K(this,'_initialized',!0x1);}get[_0x43b1c2(0x30b)](){const _0x296046=_0x43b1c2;return this[_0x296046(0x33f)][_0x296046(0x30b)];}[_0x43b1c2(0x1d8)](){const _0xb53ed5=_0x43b1c2;this[_0xb53ed5(0x114)](),super[_0xb53ed5(0x1d8)]();}[_0x43b1c2(0x332)](){const _0x3143f7=_0x43b1c2;this['_initialized']||(this[_0x3143f7(0xfe)]=!0x0,this['_session'][_0x3143f7(0xef)][_0x3143f7(0x1e2)](_0xe739dc(this[_0x3143f7(0x303)]))[_0x3143f7(0x2e5)](_0x1abf32=>{const _0x1d54d0=_0x3143f7;if(_0x1abf32===_0x426c[_0x1d54d0(0x2f2)]){this['_online']=!0x0;let _0x2812df=this[_0x1d54d0(0x33f)][_0x1d54d0(0x2b5)](this[_0x1d54d0(0x31f)]);_0x2812df&&this[_0x1d54d0(0x12d)](_0x2812df);return;}this[_0x1d54d0(0x1cb)]=!0x1,this[_0x1d54d0(0x114)]();}),this['_session'][_0x3143f7(0x2bc)][_0x3143f7(0x1e2)](_0xe739dc(this[_0x3143f7(0x303)]))[_0x3143f7(0x2e5)](_0x190f23=>{const _0x51c582=_0x3143f7;Mn(_0x190f23)?this['_handleCursorUpdate'](_0x190f23):Nn(_0x190f23)&&this[_0x51c582(0x32a)](_0x190f23[_0x51c582(0xf6)][_0x51c582(0x19a)]);}),this['_adapter'][_0x3143f7(0xe8)][_0x3143f7(0x1e2)](_0x5128c1(_0x3dc054=>this[_0x3143f7(0x1cb)]&&_0x3dc054['unitId']===this['unitId']),_0xd53fb3(_0xe45f73=>_0x525150(_0xe45f73[_0x3143f7(0x207)]),{'leading':!0x0,'trailing':!0x0}),_0xe739dc(this[_0x3143f7(0x303)]))[_0x3143f7(0x2e5)](_0x2373db=>this[_0x3143f7(0x12d)](_0x2373db)));}[_0x43b1c2(0x12d)](_0x2b3c1e){const _0x4c0df9=_0x43b1c2;let _0x4a6b21=this[_0x4c0df9(0x111)]['getMemberID']();if(!_0x4a6b21||!this[_0x4c0df9(0x1cb)])return;let _0x3f319d={'eventID':_0x402cad[_0x4c0df9(0x2b8)],'data':{'unitID':this[_0x4c0df9(0x31f)],'memberID':_0x4a6b21,'selection':JSON[_0x4c0df9(0x1f0)](Fn(this['unitType'],this[_0x4c0df9(0x33f)][_0x4c0df9(0x259)],_0x2b3c1e))}};this[_0x4c0df9(0x111)][_0x4c0df9(0x17b)](_0x3f319d,this[_0x4c0df9(0x31f)])['catch'](()=>void 0x0);}[_0x43b1c2(0x244)](_0x5785a7){const _0x5975fd=_0x43b1c2;let {memberID:_0x2a0bab,selection:_0x57f94a}=_0x5785a7[_0x5975fd(0xf6)];if(_0x2a0bab===this['_session'][_0x5975fd(0x2cb)]())return;let _0x52b616=Pn(_0x57f94a,this['unitType']);if(!_0x52b616||_0x52b616['kind']!==this[_0x5975fd(0x33f)][_0x5975fd(0x259)]||_0x52b616[_0x5975fd(0x30b)]!==this['unitType']||_0x52b616['unitId']!==this[_0x5975fd(0x31f)])return;let _0x1ab106=this[_0x5975fd(0x336)]['getMember'](this[_0x5975fd(0x31f)],_0x2a0bab),_0x1469ac={'unitId':_0x52b616[_0x5975fd(0x31f)],'subUnitId':_0x52b616[_0x5975fd(0x2a2)],'selectedIds':_0x52b616['selectedIds'],'focusedId':_0x52b616['focusedId'],'pointer':_0x52b616[_0x5975fd(0x295)],'memberId':_0x2a0bab,'color':this[_0x5975fd(0x221)][_0x5975fd(0x249)](_0x2a0bab),'name':(_0x1ab106==null?void 0x0:_0x1ab106[_0x5975fd(0x2f8)])??_0x2a0bab};this[_0x5975fd(0x2b0)]['executeCommand'](X['id'],{'unitType':this[_0x5975fd(0x30b)],'update':{'type':'set','state':_0x1469ac}})[_0x5975fd(0x12e)](()=>void 0x0);}[_0x43b1c2(0x32a)](_0x2b5094){const _0x472ede=_0x43b1c2;this['_commandService'][_0x472ede(0xf3)](X['id'],{'unitType':this[_0x472ede(0x30b)],'update':{'type':_0x472ede(0x29a),'unitId':this[_0x472ede(0x31f)],'memberId':_0x2b5094}})[_0x472ede(0x12e)](()=>void 0x0);}[_0x43b1c2(0x114)](){const _0x480c0d=_0x43b1c2;this[_0x480c0d(0x2b0)][_0x480c0d(0xf3)](X['id'],{'unitType':this[_0x480c0d(0x30b)],'update':{'type':'clear','unitId':this[_0x480c0d(0x31f)]}})[_0x480c0d(0x12e)](()=>void 0x0);}};In=J([q(0x3,_0x47bc9a(mn)),q(0x4,_0x47bc9a(_0x3b76af)),q(0x5,_0x47bc9a(_0x9de777))],In);let Ln=class extends _0x5daa34{constructor(_0x49a471,_0x437926,_0xfb2a8b,_0x5106b7){const _0x51de1d=_0x43b1c2;super(),this[_0x51de1d(0x288)]=_0x49a471,this[_0x51de1d(0x241)]=_0x437926,this[_0x51de1d(0x1eb)]=_0xfb2a8b,this[_0x51de1d(0xe7)]=_0x5106b7,K(this,_0x51de1d(0x24a),!0x1),K(this,_0x51de1d(0x2e7),new Map()),K(this,_0x51de1d(0x167),new Map()),K(this,_0x51de1d(0x2b7),new Map()),this[_0x51de1d(0x344)]();}['dispose'](){const _0x16d311=_0x43b1c2;this[_0x16d311(0x24a)]=!0x0,this[_0x16d311(0x2b7)][_0x16d311(0x182)](_0x24dcb8=>_0x24dcb8[_0x16d311(0x1d8)]()),this[_0x16d311(0x2b7)][_0x16d311(0x184)](),this[_0x16d311(0x2e7)][_0x16d311(0x182)](_0xeda9b1=>_0xeda9b1[_0x16d311(0x1d8)]()),this['_entities'][_0x16d311(0x184)](),this['_pendingEntities'][_0x16d311(0x184)](),super[_0x16d311(0x1d8)]();}[_0x43b1c2(0x344)](){const _0x2966da=_0x43b1c2;this[_0x2966da(0xe7)]['adapters$'][_0x2966da(0x1e2)](_0xe739dc(this[_0x2966da(0x303)]))[_0x2966da(0x2e5)](_0x37f980=>this[_0x2966da(0x1e1)](_0x37f980));}['_syncAdapters'](_0x2d10a7){const _0x1b2ef6=_0x43b1c2;let _0x187ba0=new Set(_0x2d10a7[_0x1b2ef6(0x10b)](_0x887123=>_0x887123[_0x1b2ef6(0x30b)]));this[_0x1b2ef6(0x2b7)][_0x1b2ef6(0x182)]((_0x1ca091,_0x382981)=>{const _0x27d374=_0x1b2ef6;_0x187ba0[_0x27d374(0x2a1)](_0x382981)||(_0x1ca091[_0x27d374(0x1d8)](),this[_0x27d374(0x2b7)][_0x27d374(0x2a8)](_0x382981),this[_0x27d374(0x240)](_0x382981));}),_0x2d10a7[_0x1b2ef6(0x182)](_0x1f46d7=>{const _0x4807d3=_0x1b2ef6;this[_0x4807d3(0x2b7)][_0x4807d3(0x2a1)](_0x1f46d7[_0x4807d3(0x30b)])||this[_0x4807d3(0x346)](_0x1f46d7);});}[_0x43b1c2(0x346)](_0x268ae6){const _0x4ea23e=_0x43b1c2;let _0x453bf0=new _0x4f93f4();this[_0x4ea23e(0x2b7)]['set'](_0x268ae6[_0x4ea23e(0x30b)],_0x453bf0),_0x453bf0[_0x4ea23e(0x231)](_0x268ae6[_0x4ea23e(0x302)]()),this[_0x4ea23e(0x288)][_0x4ea23e(0x246)](_0x268ae6[_0x4ea23e(0x30b)])[_0x4ea23e(0x182)](_0x28c787=>this[_0x4ea23e(0x175)](_0x28c787[_0x4ea23e(0xdd)](),_0x268ae6)[_0x4ea23e(0x12e)](()=>void 0x0));let _0x3bfb6a=this[_0x4ea23e(0x288)][_0x4ea23e(0x280)](_0x268ae6[_0x4ea23e(0x30b)])['subscribe'](({unit:_0x51a4a3})=>this['_startEntity'](_0x51a4a3[_0x4ea23e(0xdd)](),_0x268ae6)[_0x4ea23e(0x12e)](()=>void 0x0));_0x453bf0[_0x4ea23e(0x231)](_0x4e78ef(()=>_0x3bfb6a['unsubscribe']()));let _0x56d8df=this[_0x4ea23e(0x288)][_0x4ea23e(0x140)](_0x268ae6[_0x4ea23e(0x30b)])[_0x4ea23e(0x2e5)](_0x45045c=>this[_0x4ea23e(0x1ee)](_0x45045c[_0x4ea23e(0xdd)]()));_0x453bf0[_0x4ea23e(0x231)](_0x4e78ef(()=>_0x56d8df[_0x4ea23e(0x2e3)]()));}async[_0x43b1c2(0x175)](_0x3c40cd,_0x5e7e89){const _0x9d164c=_0x43b1c2;if(this[_0x9d164c(0x2e7)][_0x9d164c(0x2a1)](_0x3c40cd)||this[_0x9d164c(0x167)][_0x9d164c(0x2a1)](_0x3c40cd))return;let _0x48a772={};this[_0x9d164c(0x167)][_0x9d164c(0x168)](_0x3c40cd,_0x48a772);let _0x1a086e=await this[_0x9d164c(0x1eb)]['requireSession'](_0x3c40cd)[_0x9d164c(0x12e)](_0x313bc7=>{const _0x2ac277=_0x9d164c;throw this['_pendingEntities']['get'](_0x3c40cd)===_0x48a772&&this[_0x2ac277(0x167)][_0x2ac277(0x2a8)](_0x3c40cd),_0x313bc7;});if(this[_0x9d164c(0x24a)]||this[_0x9d164c(0x167)][_0x9d164c(0x171)](_0x3c40cd)!==_0x48a772||this[_0x9d164c(0xe7)][_0x9d164c(0x171)](_0x5e7e89[_0x9d164c(0x30b)])!==_0x5e7e89){this[_0x9d164c(0x167)][_0x9d164c(0x171)](_0x3c40cd)===_0x48a772&&this[_0x9d164c(0x167)][_0x9d164c(0x2a8)](_0x3c40cd);return;}let _0x593084=this[_0x9d164c(0x241)][_0x9d164c(0x337)](In,_0x3c40cd,_0x1a086e,_0x5e7e89);_0x593084[_0x9d164c(0x332)](),this[_0x9d164c(0x167)][_0x9d164c(0x2a8)](_0x3c40cd),this[_0x9d164c(0x2e7)][_0x9d164c(0x168)](_0x3c40cd,_0x593084);}['_disposeEntity'](_0x3ae56f){const _0xca2d35=_0x43b1c2;this[_0xca2d35(0x167)][_0xca2d35(0x2a8)](_0x3ae56f);let _0x168857=this[_0xca2d35(0x2e7)]['get'](_0x3ae56f);_0x168857&&(_0x168857[_0xca2d35(0x1d8)](),this['_entities'][_0xca2d35(0x2a8)](_0x3ae56f));}[_0x43b1c2(0x240)](_0x525a67){const _0x270435=_0x43b1c2;this[_0x270435(0x288)]['getAllUnitsForType'](_0x525a67)[_0x270435(0x182)](_0x378f9d=>this[_0x270435(0x167)][_0x270435(0x2a8)](_0x378f9d[_0x270435(0xdd)]())),Array['from'](this[_0x270435(0x2e7)][_0x270435(0x219)]())['forEach'](([_0xf845c8,_0x5aee18])=>{const _0x37b598=_0x270435;_0x5aee18['unitType']===_0x525a67&&this[_0x37b598(0x1ee)](_0xf845c8);});}};Ln=J([q(0x0,_0x576907),q(0x1,_0x47bc9a(_0x380635)),q(0x2,_0x47bc9a(_0x5c5d11)),q(0x3,_0x47bc9a(_0xc6dda1))],Ln);const Rn={'toast':_0x43b1c2(0x226),'actionButton':_0x43b1c2(0x2e4)};let zn=class extends _0xf50eed{constructor(_0x12dc6e,_0xf0fae5,_0x3bbf6d,_0x23cb66,_0x1f0093,_0x13aa39){const _0x4a588c=_0x43b1c2;super(),this[_0x4a588c(0x2a7)]=_0x12dc6e,this[_0x4a588c(0x296)]=_0xf0fae5,this[_0x4a588c(0x326)]=_0x3bbf6d,this[_0x4a588c(0x200)]=_0x23cb66,this[_0x4a588c(0x252)]=_0x1f0093,this[_0x4a588c(0xd8)]=_0x13aa39,K(this,'_conflictNotification',null),K(this,_0x4a588c(0x22c),new Set()),this[_0x4a588c(0x227)](),this[_0x4a588c(0x150)]();}[_0x43b1c2(0x1d8)](){const _0x5feff5=_0x43b1c2;var _0x4e3016;(_0x4e3016=this[_0x5feff5(0x23f)])==null||_0x4e3016[_0x5feff5(0x1d8)](),this[_0x5feff5(0x23f)]=null,super[_0x5feff5(0x1d8)]();}[_0x43b1c2(0x227)](){const _0x3b7a6b=_0x43b1c2;this[_0x3b7a6b(0x242)](this['_beforeCloseService'][_0x3b7a6b(0x16c)](()=>{const _0x32e7c7=_0x3b7a6b;if(this[_0x32e7c7(0x296)][_0x32e7c7(0x1e7)]['size'])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x43b1c2(0x150)](){const _0xb287b7=_0x43b1c2;this['disposeWithMe'](this['_collaborationUIEventService'][_0xb287b7(0x2bc)]['subscribe'](_0x591a4b=>{const _0x3202e8=_0xb287b7;_0x591a4b['id']===_0x5e5483[_0x3202e8(0x149)]&&this[_0x3202e8(0x200)][_0x3202e8(0x1a9)]({'type':_0x1e5e0e['Warning'],'content':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x245))}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0xdf)]&&this[_0x3202e8(0x200)][_0x3202e8(0x1a9)]({'type':_0x1e5e0e[_0x3202e8(0x22b)],'content':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x1f1))}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0x2e6)]&&this[_0x3202e8(0x2b3)]({'title':this[_0x3202e8(0xd8)]['t']('collaboration-client-ui.permission.title'),'content':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x289)),'type':_0x3202e8(0x15b),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this['_localeService']['t'](_0x3202e8(0x299)),'onClick':_0x33bba2=>{const _0x3555df=_0x3202e8;_0x33bba2[_0x3555df(0x306)](),window['location'][_0x3555df(0x28b)]();}}}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0x1c8)]&&this[_0x3202e8(0x1d6)](),_0x591a4b['id']===_0x5e5483['CONFLICT_CACHE_CLEAR_FAILED']&&_0x591a4b[_0x3202e8(0x2fc)]&&this[_0x3202e8(0x189)](_0x591a4b[_0x3202e8(0x2fc)]),_0x591a4b['id']===_0x5e5483['CONFLICT']&&this[_0x3202e8(0x2b3)]({'title':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x281)),'content':this[_0x3202e8(0xd8)]['t']('collaboration-client-ui.conflict.content'),'type':_0x3202e8(0x15b),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x299)),'onClick':_0x11f089=>{const _0x2813c9=_0x3202e8;_0x11f089[_0x2813c9(0x306)](),window[_0x2813c9(0x2f5)][_0x2813c9(0x28b)]();}}}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0xd4)]&&this[_0x3202e8(0x200)][_0x3202e8(0x1a9)]({'type':_0x1e5e0e['Warning'],'content':this[_0x3202e8(0xd8)]['t'](_0x591a4b['data']||'')}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0x197)]&&this['_messageService']['show']({'type':_0x1e5e0e[_0x3202e8(0x22b)],'content':this['_localeService']['t']('collaboration-client-ui.session.will-retry')}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0x163)]&&this['_messageService'][_0x3202e8(0x1a9)]({'type':_0x1e5e0e[_0x3202e8(0xff)],'content':this[_0x3202e8(0xd8)]['t']('collaboration-client-ui.session.connection-failed')}),_0x591a4b['id']===_0x5e5483[_0x3202e8(0x131)]&&this[_0x3202e8(0x200)][_0x3202e8(0x1a9)]({'type':_0x1e5e0e[_0x3202e8(0xff)],'content':this[_0x3202e8(0xd8)]['t'](_0x3202e8(0x170))});}));}[_0x43b1c2(0x1d6)](){const _0x4eddea=_0x43b1c2;this['_replaceConflictNotification']({'title':this[_0x4eddea(0xd8)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x4eddea(0xd8)]['t'](_0x4eddea(0x2f0)),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x43b1c2(0x189)](_0x272bc2){const _0x34c343=_0x43b1c2;this[_0x34c343(0x2b3)]({'title':this[_0x34c343(0xd8)]['t'](_0x34c343(0x281)),'content':this['_localeService']['t'](_0x34c343(0x329)),'type':_0x34c343(0x15b),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this[_0x34c343(0xd8)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x5e6ba4=>{const _0x5f4e76=_0x34c343;_0x5e6ba4[_0x5f4e76(0x306)](),this[_0x5f4e76(0x2ea)](_0x272bc2);}}});}['_retryConflictCacheClear'](_0x2658f6){const _0x34fea7=_0x43b1c2;this['_retryingConflictCacheUnitIDs'][_0x34fea7(0x2a1)](_0x2658f6)||(this['_retryingConflictCacheUnitIDs'][_0x34fea7(0x231)](_0x2658f6),this[_0x34fea7(0x1d6)](),this[_0x34fea7(0x296)][_0x34fea7(0x1d3)](_0x2658f6)['then'](()=>window[_0x34fea7(0x2f5)][_0x34fea7(0x28b)]())[_0x34fea7(0x12e)](()=>this[_0x34fea7(0x189)](_0x2658f6))[_0x34fea7(0x33c)](()=>this[_0x34fea7(0x22c)]['delete'](_0x2658f6)));}[_0x43b1c2(0x2b3)](_0x246f04){const _0x453f87=_0x43b1c2;var _0x36ca45;(_0x36ca45=this[_0x453f87(0x23f)])==null||_0x36ca45[_0x453f87(0x1d8)](),this['_conflictNotification']=this[_0x453f87(0x252)][_0x453f87(0x1a9)](_0x246f04);}};zn=J([q(0x0,_0x150ea4),q(0x1,_0x232043),q(0x2,_0x47bc9a(_0x23f66a)),q(0x3,_0x3ba0c5),q(0x4,_0x1acf91),q(0x5,_0x47bc9a(_0x2906e7))],zn);const Q=_0x4a0f08(_0x43b1c2(0x180));let Bn=class extends _0x5daa34{constructor(_0x4c4e10,_0x446463,_0x65eee8,_0x1d236b){const _0x562106=_0x43b1c2;super(),this[_0x562106(0x1fb)]=_0x4c4e10,this['_logService']=_0x446463,this['_commandService']=_0x65eee8,this[_0x562106(0x1bc)]=_0x1d236b,this[_0x562106(0x344)]()[_0x562106(0x12e)](_0x1fee96=>this[_0x562106(0x14c)][_0x562106(0x15b)](_0x562106(0x2ed),_0x1fee96));}async[_0x43b1c2(0x344)](){const _0x5bc871=_0x43b1c2;let _0x33d1dc=this[_0x5bc871(0x1fb)]['getParam'](_0x5bc871(0x29f)),_0x5744e3=this[_0x5bc871(0x1fb)][_0x5bc871(0x28a)](_0x5bc871(0x233)),_0x24bace=this[_0x5bc871(0x1fb)]['getParam'](_0x5bc871(0x100));if(!_0x33d1dc||!_0x5744e3){this[_0x5bc871(0x14c)][_0x5bc871(0x27b)](_0x5bc871(0x2ed),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x38a28e=await this[_0x5bc871(0x1bc)][_0x5bc871(0x18b)](_0x33d1dc,Number(_0x5744e3),_0x24bace);this[_0x5bc871(0x228)]||_0x38a28e&&_0x38a28e instanceof _0x4d7429&&await this['_setupSubUnitSync'](_0x38a28e);}async[_0x43b1c2(0x325)](_0x4b196d){const _0x3bdd41=_0x43b1c2;await this['_updateSubUnitFromURLParams'](_0x4b196d,!0x0),!this['_disposed']&&(_0x4b196d[_0x3bdd41(0x214)][_0x3bdd41(0x1e2)](_0xe739dc(this[_0x3bdd41(0x303)]))['subscribe'](_0x23472e=>{const _0x938467=_0x3bdd41;_0x23472e&&this[_0x938467(0x309)](_0x23472e);}),this[_0x3bdd41(0x1fb)][_0x3bdd41(0x273)][_0x3bdd41(0x1e2)](_0xe739dc(this[_0x3bdd41(0x303)]))[_0x3bdd41(0x2e5)](()=>{const _0x29f932=_0x3bdd41;this[_0x29f932(0x204)](_0x4b196d)['catch'](_0x455d17=>this[_0x29f932(0x14c)]['error'](_0x29f932(0x2ed),_0x455d17));}));}['_updateURLWithCurrentState'](_0x494b33,_0x4f14a4=!0x1){const _0x45b32a=_0x43b1c2;let _0x3f1584=this[_0x45b32a(0x1fb)][_0x45b32a(0x28a)](_0x45b32a(0x100));_0x494b33[_0x45b32a(0x2c4)]()!==_0x3f1584&&this[_0x45b32a(0x1fb)][_0x45b32a(0x31b)](_0x45b32a(0x100),_0x494b33['getSheetId'](),_0x4f14a4);}async[_0x43b1c2(0x204)](_0x51a17f,_0xce8d03=!0x1){const _0x179db9=_0x43b1c2;var _0x5dbb8a;let _0x3958eb=this['_urlService'][_0x179db9(0x28a)](_0x179db9(0x100));if(!_0x3958eb||!_0x51a17f[_0x179db9(0x20c)](_0x3958eb)){let _0x347748=_0x51a17f[_0x179db9(0x1e9)]()[0x0],_0x2f8f17=_0x51a17f[_0x179db9(0x20c)](_0x347748);if(!_0x2f8f17||(this[_0x179db9(0x309)](_0x2f8f17,!0x0),this[_0x179db9(0x228)]))return;await this[_0x179db9(0x2b0)]['executeCommand'](_0x5b3874['id'],{'unitId':_0x51a17f[_0x179db9(0xdd)](),'subUnitId':_0x347748});return;}(_0xce8d03||((_0x5dbb8a=_0x51a17f['getActiveSheet']())==null?void 0x0:_0x5dbb8a[_0x179db9(0x2c4)]())!==_0x3958eb)&&await this[_0x179db9(0x2b0)]['executeCommand'](_0x5b3874['id'],{'unitId':_0x51a17f[_0x179db9(0xdd)](),'subUnitId':_0x3958eb});}};Bn=J([q(0x0,Q),q(0x1,_0x232361),q(0x2,_0x9de777),q(0x3,_0x47bc9a(_0x282d0f))],Bn);let Vn=class{constructor(_0x52f84d,_0x37190d){const _0x511b75=_0x43b1c2;this[_0x511b75(0x21c)]=_0x52f84d,this['_renderManagerService']=_0x37190d;}['transformIMECache'](_0x2c9ade){const _0x834dfc=_0x43b1c2;this[_0x834dfc(0x12f)](_0x2c9ade),this[_0x834dfc(0x152)](_0x2c9ade);}[_0x43b1c2(0x132)](_0x23f73a){const _0x2f0c84=_0x43b1c2;let {unitID:_0x1eb368}=_0x23f73a,{redoCache:_0x29b414}=this['_renderManagerService'][_0x2f0c84(0x2f9)](_0x1eb368)[_0x2f0c84(0x157)](_0x386a8e)[_0x2f0c84(0x21f)]();if(_0x29b414[_0x2f0c84(0xf9)]===0x0)return _0x23f73a;let _0x54a657=_0x29d05b[_0x2f0c84(0x283)](_0x23f73a[_0x2f0c84(0x343)][0x0]);for(let _0x3f2f87=0x0;_0x3f2f87<_0x29b414[_0x2f0c84(0xf9)];_0x3f2f87++){let _0x51750d={'id':_0x2f0c84(0x18a),'params':{..._0x29b414[_0x3f2f87]}},_0x5d3477=this[_0x2f0c84(0x21c)][_0x2f0c84(0x2e8)](_0x54a657,_0x51750d,!0x1);if(_0x4e7233(_0x5d3477))throw _0x5d3477[_0x2f0c84(0x15b)];_0x54a657=_0x5d3477[_0x2f0c84(0x238)];}return{..._0x29d05b[_0x2f0c84(0x283)](_0x23f73a),'mutations':[_0x54a657]};}[_0x43b1c2(0x12f)](_0x1a949a){const _0x2f3f3e=_0x43b1c2;let {unitID:_0x16a4dc}=_0x1a949a,_0xca3a0a=this[_0x2f3f3e(0x321)]['getRenderUnitById'](_0x16a4dc)[_0x2f3f3e(0x157)](_0x386a8e),{undoCache:_0x444a35,redoCache:_0x5c703d}=_0xca3a0a[_0x2f3f3e(0x21f)]();if(_0x444a35['length']===0x0||_0x5c703d[_0x2f3f3e(0xf9)]===0x0)return;let _0x6bf4d2=[],_0x571609=[],_0x8f9f60=_0x29d05b[_0x2f3f3e(0x283)](_0x1a949a[_0x2f3f3e(0x343)][0x0]),_0x156120=_0x29d05b[_0x2f3f3e(0x283)](_0x1a949a[_0x2f3f3e(0x343)][0x0]);for(let _0x2e5292=_0x444a35['length']-0x1;_0x2e5292>=0x0;_0x2e5292--){let _0x3990d3={'id':_0x2f3f3e(0x18a),'params':{..._0x444a35[_0x2e5292]}},_0x27f514={'id':'doc.mutation.rich-text-editing','params':{..._0x5c703d[_0x2e5292]}},_0x20b5a8=this[_0x2f3f3e(0x21c)][_0x2f3f3e(0x2e8)](_0x8f9f60,_0x3990d3,!0x1),_0x53f41a=this[_0x2f3f3e(0x21c)][_0x2f3f3e(0x2e8)](_0x156120,_0x27f514,!0x1);if(_0x4e7233(_0x20b5a8))throw _0x20b5a8['error'];if(_0x4e7233(_0x53f41a))throw _0x53f41a[_0x2f3f3e(0x15b)];_0x6bf4d2[_0x2f3f3e(0x2d7)](_0x20b5a8['m2Prime'][_0x2f3f3e(0x1b8)]),_0x571609['unshift'](_0x53f41a[_0x2f3f3e(0x1e5)][_0x2f3f3e(0x1b8)]),_0x8f9f60=_0x20b5a8['m1Prime'],_0x156120=_0x53f41a[_0x2f3f3e(0x238)];}_0xca3a0a[_0x2f3f3e(0x196)]({'undoCache':_0x6bf4d2,'redoCache':_0x571609});}[_0x43b1c2(0x152)](_0x4d6009){const _0x2a811e=_0x43b1c2;let {unitID:_0x48ad77}=_0x4d6009,_0x16b1b1=this[_0x2a811e(0x321)][_0x2a811e(0x2f9)](_0x48ad77)[_0x2a811e(0x157)](_0x386a8e),_0x28967d=_0x16b1b1[_0x2a811e(0x190)]();if(_0x28967d==null)return;let _0x4c386c=[{'id':_0x2a811e(0x18a),'params':{'unitId':_0x4d6009[_0x2a811e(0x2fc)],'actions':null,'textRanges':[_0x28967d]}}],_0x29cf09=this[_0x2a811e(0x21c)][_0x2a811e(0x2d5)](_0x4d6009,_0x4c386c);if(!_0x16f367(_0x29cf09))throw _0x29cf09['error'];let _0x32a93d=_0x29cf09[_0x2a811e(0x1e5)][0x0][_0x2a811e(0x1b8)][_0x2a811e(0x1a1)];Array[_0x2a811e(0xe1)](_0x32a93d)&&_0x32a93d[_0x2a811e(0xf9)]&&_0x16b1b1['setActiveRange'](_0x32a93d[0x0]);}};Vn=J([q(0x0,_0x38ff0a),q(0x1,_0x4c7906)],Vn);let Hn=class{constructor(_0xc9c8de,_0x2d4833,_0x5afc75){const _0x2a0068=_0x43b1c2;this['_injector']=_0xc9c8de,this[_0x2a0068(0x21c)]=_0x2d4833,this[_0x2a0068(0x27a)]=_0x5afc75;}[_0x43b1c2(0x17f)](_0x2466a7){const _0x17bd12=_0x43b1c2;this[_0x17bd12(0x276)](_0x2466a7);}['transformRemoteChangeset'](_0x3bd6a9){const _0x282a4f=_0x43b1c2;let {unitID:_0x5c7b00}=_0x3bd6a9,{collaboration:_0x31234a}=this['_docStateChangeManagerService'][_0x282a4f(0x216)](_0x5c7b00);if(_0x31234a[_0x282a4f(0xf9)]===0x0)return _0x3bd6a9;let _0x368da3=_0x29d05b[_0x282a4f(0x283)](_0x3bd6a9[_0x282a4f(0x343)][0x0]);for(let _0x35e6b6=0x0;_0x35e6b6<_0x31234a[_0x282a4f(0xf9)];_0x35e6b6++){let _0x195aaa={'id':_0x282a4f(0x18a),'params':{'unitId':_0x31234a[_0x35e6b6]['unitId'],..._0x31234a[_0x35e6b6][_0x282a4f(0x293)]}},_0x34a8bf=this[_0x282a4f(0x21c)]['transformMutation'](_0x368da3,_0x195aaa,!0x1);if(_0x4e7233(_0x34a8bf))throw _0x34a8bf[_0x282a4f(0x15b)];_0x368da3=_0x34a8bf[_0x282a4f(0x238)];}return{..._0x29d05b[_0x282a4f(0x283)](_0x3bd6a9),'mutations':[_0x368da3]};}[_0x43b1c2(0x276)](_0x4a10da){const _0x4ae265=_0x43b1c2;let {unitID:_0x3e8111}=_0x4a10da,{history:_0x58a9a7,collaboration:_0x17dc29}=this[_0x4ae265(0x27a)][_0x4ae265(0x216)](_0x3e8111);if(_0x58a9a7[_0x4ae265(0xf9)]===0x0&&_0x17dc29[_0x4ae265(0xf9)]===0x0)return;let _0x4039ac=[],_0x469551=[],_0x2d1331=_0x29d05b['deepClone'](_0x4a10da[_0x4ae265(0x343)][0x0]),_0x1361aa=_0x29d05b[_0x4ae265(0x283)](_0x4a10da['mutations'][0x0]);for(let _0x1e58f3=_0x58a9a7[_0x4ae265(0xf9)]-0x1;_0x1e58f3>=0x0;_0x1e58f3--){let _0x101eaa={'id':_0x4ae265(0x18a),'params':{'unitId':_0x58a9a7[_0x1e58f3]['unitId'],..._0x58a9a7[_0x1e58f3]['undoState']}},_0x161ee3={'id':_0x4ae265(0x18a),'params':{'unitId':_0x58a9a7[_0x1e58f3]['unitId'],..._0x58a9a7[_0x1e58f3][_0x4ae265(0x293)]}},_0x4e62ab=this[_0x4ae265(0x21c)][_0x4ae265(0x2e8)](_0x2d1331,_0x101eaa,!0x1),_0x270fea=this[_0x4ae265(0x21c)][_0x4ae265(0x2e8)](_0x1361aa,_0x161ee3,!0x1);if(_0x4e7233(_0x4e62ab))throw _0x4e62ab[_0x4ae265(0x15b)];if(_0x4e7233(_0x270fea))throw _0x270fea[_0x4ae265(0x15b)];_0x4039ac[_0x4ae265(0x2d7)]({..._0x58a9a7[_0x1e58f3],'undoState':_0x4e62ab[_0x4ae265(0x1e5)][_0x4ae265(0x1b8)],'redoState':_0x270fea[_0x4ae265(0x1e5)]['params']}),_0x2d1331=_0x4e62ab[_0x4ae265(0x238)],_0x1361aa=_0x270fea[_0x4ae265(0x238)];}_0x2d1331=_0x29d05b[_0x4ae265(0x283)](_0x4a10da[_0x4ae265(0x343)][0x0]),_0x1361aa=_0x29d05b[_0x4ae265(0x283)](_0x4a10da[_0x4ae265(0x343)][0x0]);for(let _0x34d747=_0x17dc29[_0x4ae265(0xf9)]-0x1;_0x34d747>=0x0;_0x34d747--){let _0x49e51e={'id':_0x4ae265(0x18a),'params':{'unitId':_0x17dc29[_0x34d747][_0x4ae265(0x31f)],..._0x17dc29[_0x34d747][_0x4ae265(0x1de)]}},_0x4203b3={'id':_0x4ae265(0x18a),'params':{'unitId':_0x17dc29[_0x34d747][_0x4ae265(0x31f)],..._0x17dc29[_0x34d747][_0x4ae265(0x293)]}},_0x35736a=this[_0x4ae265(0x21c)]['transformMutation'](_0x2d1331,_0x49e51e,!0x1),_0x5e3e28=this[_0x4ae265(0x21c)][_0x4ae265(0x2e8)](_0x1361aa,_0x4203b3,!0x1);if(_0x4e7233(_0x35736a))throw _0x35736a[_0x4ae265(0x15b)];if(_0x4e7233(_0x5e3e28))throw _0x5e3e28[_0x4ae265(0x15b)];_0x469551[_0x4ae265(0x2d7)]({..._0x17dc29[_0x34d747],'undoState':_0x35736a[_0x4ae265(0x1e5)][_0x4ae265(0x1b8)],'redoState':_0x5e3e28[_0x4ae265(0x1e5)][_0x4ae265(0x1b8)]}),_0x2d1331=_0x35736a['m1Prime'],_0x1361aa=_0x5e3e28[_0x4ae265(0x238)];}this[_0x4ae265(0x27a)][_0x4ae265(0x27c)](_0x3e8111,{'history':_0x4039ac,'collaboration':_0x469551});}};Hn=J([q(0x0,_0x47bc9a(_0x380635)),q(0x1,_0x38ff0a),q(0x2,_0x47bc9a(_0x9861ab))],Hn);let Un=class{constructor(_0x3adf69,_0x482cf0){const _0xb95746=_0x43b1c2;this[_0xb95746(0x201)]=_0x3adf69,this[_0xb95746(0x21c)]=_0x482cf0;}[_0x43b1c2(0x218)](_0x54d8b9){const _0x176c53=_0x43b1c2;var _0x3bb445;let _0x143a8d=this[_0x176c53(0x201)][_0x176c53(0xfc)]()??[],_0x50353d=this[_0x176c53(0x201)][_0x176c53(0x28f)]();if(_0x143a8d['length']===0x0||_0x50353d==null)return null;let _0x4e3e8d=_0x54d8b9['unitID'],_0x356a5d=[{'id':_0x176c53(0x18a),'params':{'unitId':_0x4e3e8d,'actions':null,'textRanges':_0x143a8d}}],_0x1d625a=this[_0x176c53(0x21c)][_0x176c53(0x2d5)](_0x54d8b9,_0x356a5d);if(!_0x16f367(_0x1d625a))throw _0x1d625a[_0x176c53(0x15b)];let _0x395c26=(_0x3bb445=_0x1d625a[_0x176c53(0x1e5)][0x0])==null?void 0x0:_0x3bb445['params'],_0x4c50ac=_0x395c26&&typeof _0x395c26=='object'&&_0x176c53(0x1a1)in _0x395c26?_0x395c26['textRanges']:null;if(!Kn(_0x4c50ac))return null;let _0x5c1d98=Wn(_0x54d8b9['mutations']['some'](_0x2952bd=>qn(_0x2952bd['params']))?_0x4c50ac['filter'](_0xaf7760=>!(_0x176c53(0x1b4)in _0xaf7760)):_0x4c50ac,{..._0x50353d,'options':_0x50353d[_0x176c53(0x2a5)]?{..._0x50353d[_0x176c53(0x2a5)],'wholeDocument':!0x1}:void 0x0}),_0x5f2c32={'unitId':_0x4e3e8d,'subUnitId':_0x4e3e8d};this[_0x176c53(0x201)]['replaceSelectionInfoWithoutRefresh'](_0x5c1d98,_0x5f2c32);let _0x2d6159=!0x0;return{'commit':()=>{_0x2d6159=!0x1;},'rollback':()=>{const _0xbc5221=_0x176c53;_0x2d6159&&(_0x2d6159=!0x1,this[_0xbc5221(0x201)]['replaceSelectionInfoWithoutRefresh'](_0x50353d,_0x5f2c32));}};}};Un=J([q(0x0,_0x47bc9a(_0x2785ee)),q(0x1,_0x38ff0a)],Un);function Wn(_0x2b72b1,_0x1cb22e){const _0xfc41de=_0x43b1c2;let _0x1be7d0=[],_0x5f00c8=[];for(let _0x2481f9 of _0x2b72b1)Gn(_0x2481f9)?_0x5f00c8['push'](_0x2481f9):_0x1be7d0[_0xfc41de(0x23b)](_0x2481f9);return{..._0x1cb22e,'textRanges':_0x1be7d0,'rectRanges':_0x5f00c8};}function Gn(_0x4bb5dc){return'tableId'in _0x4bb5dc;}function Kn(_0x34d4e4){const _0x1f1dfc=_0x43b1c2;return Array[_0x1f1dfc(0xe1)](_0x34d4e4)&&_0x34d4e4['every'](_0x4a087a=>typeof _0x4a087a==_0x1f1dfc(0x26f)&&!!_0x4a087a&&_0x1f1dfc(0x1ac)in _0x4a087a&&_0x1f1dfc(0x2ee)in _0x4a087a);}function qn(_0x1d7895){const _0xafcc66=_0x43b1c2;return _0x1d7895===_0xafcc66(0x307)?!0x0:Array[_0xafcc66(0xe1)](_0x1d7895)?_0x1d7895['some'](_0x28d94e=>qn(_0x28d94e)):!_0x1d7895||typeof _0x1d7895!=_0xafcc66(0x26f)?!0x1:Object[_0xafcc66(0x1f9)](_0x1d7895)[_0xafcc66(0x278)](_0x33902e=>qn(_0x33902e));}let Jn=class extends _0xf50eed{constructor(_0x572bdd,_0x35d15d,_0x544ab3,_0x4109b1,_0x22c3f7,_0x57f70b,_0x2e6559){const _0x42b1e2=_0x43b1c2;super(),this[_0x42b1e2(0x236)]=_0x572bdd,this['_docTransformIMECacheService']=_0x35d15d,this[_0x42b1e2(0x324)]=_0x544ab3,this['_docTransformSelectionsService']=_0x4109b1,this['_docSyncEditingCollabCursorService']=_0x22c3f7,this['_messageService']=_0x57f70b,this[_0x42b1e2(0xd8)]=_0x2e6559,K(this,_0x42b1e2(0x31a),new _0x4dad7b(_0x22ed0b[_0x42b1e2(0x158)])),this[_0x42b1e2(0x21a)]();}[_0x43b1c2(0x21a)](){const _0x32cfa6=_0x43b1c2;this[_0x32cfa6(0x242)](this[_0x32cfa6(0x236)][_0x32cfa6(0x308)][_0x32cfa6(0x2e5)](_0x4fadeb=>{const _0x2d628d=_0x32cfa6;_0x4fadeb instanceof _0x2c6253&&_0x4fadeb[_0x2d628d(0x2cf)]({'onTransformIME':_0x45e4e8=>this[_0x2d628d(0x349)][_0x2d628d(0x192)](_0x45e4e8),'onTransformState':_0x5f1bce=>this[_0x2d628d(0x324)][_0x2d628d(0x17f)](_0x5f1bce),'onPrepareTransformSelections':_0x37194c=>this[_0x2d628d(0x286)]['prepareTransformSelections'](_0x37194c),'onSyncEditingCollabCursor':_0x146b87=>this[_0x2d628d(0x250)][_0x2d628d(0x338)](_0x146b87),'onTransformRemoteChangesetByIMECache':_0x7de16c=>this[_0x2d628d(0x349)][_0x2d628d(0x132)](_0x7de16c),'onTransformRemoteChangesetByStateCache':_0x29d637=>this[_0x2d628d(0x324)][_0x2d628d(0x132)](_0x29d637)});}));}};Jn=J([q(0x0,_0x47bc9a(_0x3089d1)),q(0x1,_0x47bc9a(Vn)),q(0x2,_0x47bc9a(Hn)),q(0x3,_0x47bc9a(Un)),q(0x4,_0x47bc9a(_n)),q(0x5,_0x3ba0c5),q(0x6,_0x47bc9a(_0x2906e7))],Jn);let Yn=class extends _0xf50eed{constructor(_0x1ad00f,_0x396791,_0x42ecd4,_0x40641c){const _0x1b85d5=_0x43b1c2;super(),this[_0x1b85d5(0x241)]=_0x1ad00f,this[_0x1b85d5(0x320)]=_0x396791,this[_0x1b85d5(0x14c)]=_0x42ecd4,this[_0x1b85d5(0x2e9)]=_0x40641c,K(this,'_memberID',void 0x0),this['_init']();}[_0x43b1c2(0x344)](){const _0x24800a=_0x43b1c2;this[_0x24800a(0x203)](),this[_0x24800a(0x15e)](),this[_0x24800a(0x2f3)](),this[_0x24800a(0x120)]();}[_0x43b1c2(0x120)](){const _0x16c57e=_0x43b1c2;this[_0x16c57e(0x242)](this['_collaborationSessionService'][_0x16c57e(0x198)][_0x16c57e(0x2e5)](_0x4cec35=>{const _0x408633=_0x16c57e;this[_0x408633(0xd5)]=_0x4cec35==null?void 0x0:_0x4cec35['memberID'];}));}[_0x43b1c2(0x203)](){const _0x1df493=_0x43b1c2;let _0x3b7245=_0x195d32=>{const _0x5d1afb=_0x47c1;var _0x15fe50;this['_uploadLog'](_0x5d1afb(0x15b),'[Window\x20Error]:\x20'+_0x195d32[_0x5d1afb(0x122)]+_0x5d1afb(0x208)+_0x195d32[_0x5d1afb(0x22e)]+':'+_0x195d32[_0x5d1afb(0xf7)]+':'+_0x195d32[_0x5d1afb(0x191)]+'\x0a'+(((_0x15fe50=_0x195d32[_0x5d1afb(0x15b)])==null?void 0x0:_0x15fe50['stack'])||''));};window['addEventListener'](_0x1df493(0x15b),_0x3b7245),this[_0x1df493(0x242)](()=>{const _0x55d599=_0x1df493;window[_0x55d599(0x279)](_0x55d599(0x15b),_0x3b7245);});}[_0x43b1c2(0x15e)](){const _0x1eeeeb=_0x43b1c2;let _0x10ec8d=_0x49d125=>{const _0x55fddd=_0x47c1;this[_0x55fddd(0x347)](_0x55fddd(0x15b),_0x55fddd(0xf5)+_0x49d125[_0x55fddd(0x20b)]);};window['addEventListener'](_0x1eeeeb(0x2b9),_0x10ec8d),this['disposeWithMe'](()=>{const _0x1b3e6e=_0x1eeeeb;window[_0x1b3e6e(0x279)]('unhandledrejection',_0x10ec8d);});}[_0x43b1c2(0x2f3)](){const _0x1d058e=_0x43b1c2;let _0x466571=this['_logService'][_0x1d058e(0x15b)]['bind'](this[_0x1d058e(0x14c)]);this[_0x1d058e(0x14c)][_0x1d058e(0x15b)]=(..._0x5392c4)=>{const _0x380942=_0x1d058e;let _0x593a53=_0x5392c4[_0x380942(0x10b)](_0x314367=>_0x314367 instanceof Error?_0x314367[_0x380942(0x122)]+'\x0a'+_0x314367[_0x380942(0x2ff)]:String(_0x314367))[_0x380942(0x264)]('\x20');this[_0x380942(0x347)]('error',_0x380942(0x141)+_0x593a53),_0x466571(..._0x5392c4);},this[_0x1d058e(0x242)](()=>{const _0x50e72f=_0x1d058e;this[_0x50e72f(0x14c)][_0x50e72f(0x15b)]=_0x466571;});}[_0x43b1c2(0x347)](_0x1062a3,_0x787471){const _0x47e76e=_0x43b1c2;try{let _0x43d9f2={'userId':this[_0x47e76e(0xd5)],'logLabel':_0x1062a3,'content':_0x787471};this[_0x47e76e(0x320)][_0x47e76e(0x33e)](_0x47e76e(0x1f5),{'body':_0x43d9f2})[_0x47e76e(0x12e)](()=>{});}catch{}}};Yn=J([q(0x0,_0x47bc9a(_0x380635)),q(0x1,_0x47bc9a(_0x195ec6)),q(0x2,_0x232361),q(0x3,_0x47bc9a(_0x5c5d11))],Yn);function Xn({state$:_0x27a60c}){const _0x1ae441=_0x43b1c2;let _0x57040b=_0x3612e2(_0x27a60c,null,!0x0);return _0x57040b?_0x1b8ed2(_0x1ae441(0x30e),{'data-u-comp':_0x1ae441(0x1f4),'role':_0x1ae441(0x108),'className':_0x1ae441(0x25f),'children':[_0x502d13(_0x46f013,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x502d13(_0x1ae441(0x24f),{'children':_0x57040b[_0x1ae441(0x2cc)]}),_0x502d13(_0x5ded29,{'size':_0x1ae441(0x237),'variant':_0x1ae441(0xed),'onClick':()=>window[_0x1ae441(0x2f5)]['reload'](),'children':_0x57040b[_0x1ae441(0x311)]})]}):null;}const Zn=_0x43b1c2(0x1b1);let Qn=class extends _0xf50eed{constructor(_0x988c3f,_0x50c697,_0x1541c2,_0x2fac29,_0x10e115,_0x9da614){const _0x105f59=_0x43b1c2;super(),this[_0x105f59(0x1a2)]=_0x988c3f,this[_0x105f59(0x200)]=_0x50c697,this[_0x105f59(0xd8)]=_0x1541c2,this['_injector']=_0x2fac29,this[_0x105f59(0x1fb)]=_0x9da614,K(this,_0x105f59(0x348),new _0x4dad7b(null)),K(this,'_messageIds',new Set()),K(this,'_blockProgressWatches',new Map()),K(this,_0x105f59(0x22f),new Map()),K(this,'timeoutState$',this[_0x105f59(0x348)][_0x105f59(0x1dc)]());let _0x16d577=()=>_0x51f45d(Xn,{'state$':this['timeoutState$']});this[_0x105f59(0x242)](_0x10e115[_0x105f59(0x2c2)](_0x3f8636[_0x105f59(0x10d)],()=>_0x130385(_0x16d577,this[_0x105f59(0x241)]))),this[_0x105f59(0x242)](this[_0x105f59(0x1a2)][_0x105f59(0x2fe)][_0x105f59(0x2e5)](_0x3c16f4=>{const _0x47c89e=_0x105f59;this[_0x47c89e(0x22f)]=_0x3c16f4,_0x3c16f4[_0x47c89e(0x182)](_0x4a714e=>this[_0x47c89e(0x253)](_0x4a714e));})),this[_0x105f59(0x242)](this[_0x105f59(0x1fb)][_0x105f59(0x273)]['subscribe'](()=>{const _0x9375a7=_0x105f59;this[_0x9375a7(0x22f)][_0x9375a7(0x182)](_0x477cd8=>this[_0x9375a7(0x253)](_0x477cd8));}));}['dispose'](){const _0x124e02=_0x43b1c2;this[_0x124e02(0x107)][_0x124e02(0x182)](_0x262829=>this['_messageService'][_0x124e02(0x29a)](_0x262829)),this['_messageIds']['clear'](),this['_blockProgressWatches'][_0x124e02(0x182)](({timeoutId:_0xeead1a})=>clearTimeout(_0xeead1a)),this[_0x124e02(0x153)][_0x124e02(0x184)](),this['_timeoutState$'][_0x124e02(0x1d4)](),super[_0x124e02(0x1d8)]();}[_0x43b1c2(0x253)](_0x1b9366){const _0xbd4997=_0x43b1c2;let _0x4aceb1=''+Zn+_0x1b9366[_0xbd4997(0x31f)];if(_0x1b9366['stage']===_0x1664ef[_0xbd4997(0x1bb)]){this[_0xbd4997(0x27f)](_0x1b9366['unitId']),this['_clearTimeoutState'](_0x1b9366[_0xbd4997(0x31f)]),this[_0xbd4997(0x200)]['remove'](_0x4aceb1),this[_0xbd4997(0x107)]['delete'](_0x4aceb1);return;}if(!this[_0xbd4997(0x123)](_0x1b9366[_0xbd4997(0x31f)])){this[_0xbd4997(0x27f)](_0x1b9366[_0xbd4997(0x31f)]),this[_0xbd4997(0x2dc)](_0x1b9366[_0xbd4997(0x31f)]),this['_messageService'][_0xbd4997(0x29a)](_0x4aceb1),this[_0xbd4997(0x107)][_0xbd4997(0x2a8)](_0x4aceb1);return;}if(_0x1b9366[_0xbd4997(0x172)]===_0x1664ef[_0xbd4997(0x23e)]){this[_0xbd4997(0x27f)](_0x1b9366[_0xbd4997(0x31f)]),this[_0xbd4997(0x2dc)](_0x1b9366[_0xbd4997(0x31f)]),this[_0xbd4997(0x200)]['show']({'id':_0x4aceb1,'type':_0x1e5e0e[_0xbd4997(0xff)],'content':this[_0xbd4997(0xd8)]['t'](_0xbd4997(0x1a8))}),this[_0xbd4997(0x107)]['delete'](_0x4aceb1);return;}if(_0x1b9366[_0xbd4997(0x172)]!==_0x1664ef[_0xbd4997(0x112)]||_0x1b9366['totalBlocks']<=0xa){this[_0xbd4997(0x27f)](_0x1b9366[_0xbd4997(0x31f)]),this[_0xbd4997(0x200)][_0xbd4997(0x29a)](_0x4aceb1),this[_0xbd4997(0x107)][_0xbd4997(0x2a8)](_0x4aceb1);return;}this[_0xbd4997(0x2da)](_0x1b9366)||(this['_messageService'][_0xbd4997(0x1a9)]({'id':_0x4aceb1,'type':_0x1e5e0e[_0xbd4997(0x328)],'duration':0x1/0x0,'content':this[_0xbd4997(0xd8)]['t'](_0xbd4997(0x21e))+'\x20'+_0x1b9366[_0xbd4997(0x185)]+'/'+_0x1b9366[_0xbd4997(0x1a7)]}),this['_messageIds']['add'](_0x4aceb1));}['_watchBlockProgress'](_0x2df134){const _0x556339=_0x43b1c2;let _0x6d4d7d=this['_blockProgressWatches'][_0x556339(0x171)](_0x2df134[_0x556339(0x31f)]);if((_0x6d4d7d==null?void 0x0:_0x6d4d7d[_0x556339(0x185)])===_0x2df134[_0x556339(0x185)])return _0x6d4d7d[_0x556339(0x1a4)];this[_0x556339(0x27f)](_0x2df134['unitId']);let _0x32fda9=setTimeout(()=>{const _0x353b39=_0x556339;let _0x4aa99f=this[_0x353b39(0x153)][_0x353b39(0x171)](_0x2df134['unitId']);if(!_0x4aa99f||_0x4aa99f[_0x353b39(0x161)]!==_0x32fda9)return;_0x4aa99f['timedOut']=!0x0;let _0x32ded6=''+Zn+_0x2df134[_0x353b39(0x31f)];this[_0x353b39(0x200)][_0x353b39(0x29a)](_0x32ded6),this[_0x353b39(0x107)][_0x353b39(0x2a8)](_0x32ded6),this['_timeoutState$'][_0x353b39(0x2d0)]({'unitId':_0x2df134['unitId'],'content':this[_0x353b39(0xd8)]['t'](_0x353b39(0x263),String(_0x2df134[_0x353b39(0x185)]),String(_0x2df134['totalBlocks'])),'refreshLabel':this[_0x353b39(0xd8)]['t'](_0x353b39(0x299))});},0xea60);return this['_blockProgressWatches'][_0x556339(0x168)](_0x2df134['unitId'],{'loadedBlocks':_0x2df134[_0x556339(0x185)],'timedOut':!0x1,'timeoutId':_0x32fda9}),!0x1;}[_0x43b1c2(0x27f)](_0xe1ac38){const _0x5dccc8=_0x43b1c2;let _0x2e35f2=this[_0x5dccc8(0x153)]['get'](_0xe1ac38);_0x2e35f2&&(clearTimeout(_0x2e35f2[_0x5dccc8(0x161)]),this[_0x5dccc8(0x153)][_0x5dccc8(0x2a8)](_0xe1ac38),this[_0x5dccc8(0x2dc)](_0xe1ac38));}[_0x43b1c2(0x2dc)](_0x4a816e){const _0x3e7578=_0x43b1c2;var _0x255ad6;((_0x255ad6=this['_timeoutState$']['value'])==null?void 0x0:_0x255ad6[_0x3e7578(0x31f)])===_0x4a816e&&this[_0x3e7578(0x348)]['next'](null);}[_0x43b1c2(0x123)](_0xb854d9){const _0x23f73b=_0x43b1c2;let _0x35b89a=this[_0x23f73b(0x1fb)][_0x23f73b(0x28a)](_0x23f73b(0x29f));return!_0x35b89a||_0x35b89a===_0xb854d9;}};Qn=J([q(0x0,_0x47bc9a(_0x1a282d)),q(0x1,_0x3ba0c5),q(0x2,_0x47bc9a(_0x2906e7)),q(0x3,_0x47bc9a(_0x380635)),q(0x4,_0x2528c2),q(0x5,Q)],Qn);let $n=class extends _0xf50eed{constructor(_0x25b9e7,_0x51116e,_0x4bef05){const _0x3c3723=_0x43b1c2;var _0x2b04af;super(),this['_configService']=_0x25b9e7,this['_localStorageService']=_0x51116e,this[_0x3c3723(0x267)]=_0x4bef05,K(this,_0x3c3723(0x178),new Map()),K(this,_0x3c3723(0x2c0),new Map()),K(this,_0x3c3723(0x159),new Map()),K(this,_0x3c3723(0x1a3),!0x1),this[_0x3c3723(0x1a3)]=!((_0x2b04af=this[_0x3c3723(0x13a)][_0x3c3723(0xf8)](_0x598bdc))!=null&&_0x2b04af[_0x3c3723(0x2c8)]);}[_0x43b1c2(0x2ca)](){const _0x34e526=_0x43b1c2;this[_0x34e526(0x1a3)]=!0x0;}[_0x43b1c2(0x14d)](){this['_disabled']=!0x1;}get[_0x43b1c2(0x1e7)](){const _0x4aaf41=_0x43b1c2;return this[_0x4aaf41(0x2c0)];}[_0x43b1c2(0x1d8)](){const _0xaa6049=_0x43b1c2;this[_0xaa6049(0x125)]()[_0xaa6049(0x188)](()=>super[_0xaa6049(0x1d8)]());}async[_0x43b1c2(0xdb)](_0x554acd){const _0x57baa1=_0x43b1c2;return this[_0x57baa1(0x1a3)]?null:this[_0x57baa1(0x1ff)]['getItem'](_0x5e27e8(_0x554acd));}async['saveOfflineData'](_0x379dcf,_0x4ad9e6){const _0x23fe6e=_0x43b1c2;let _0x1e4518=this[_0x23fe6e(0x1ff)][_0x23fe6e(0x205)](_0x5e27e8(_0x379dcf),_0x4ad9e6);return this['_trackActiveSaveTask'](_0x379dcf,_0x1e4518),!!await _0x1e4518;}async[_0x43b1c2(0x106)](_0xa7ea3c,_0x475aa5){const _0x389006=_0x43b1c2;let _0x45699e=this['_cachedData'][_0x389006(0x171)](_0xa7ea3c)??await this[_0x389006(0x1ff)]['getItem'](_0x5e27e8(_0xa7ea3c));if(!_0x45699e)return;let _0x183ee4=Date['now'](),_0x1739e5=new Date(_0x183ee4)[_0x389006(0x341)]();await this['_localStorageService'][_0x389006(0x205)](_0x5e27e8(_0xa7ea3c)+_0x389006(0x1fe)+_0x183ee4,{'reason':_0x475aa5,'createdAt':_0x1739e5,'data':_0x45699e});}async['clearOfflineData'](_0x4e1197){const _0x2e9c71=_0x43b1c2;let _0x3b78d5=this['_saveTaskMap'][_0x2e9c71(0x171)](_0x4e1197);_0x3b78d5!==void 0x0&&(window[_0x2e9c71(0x129)](_0x3b78d5),this[_0x2e9c71(0x2c0)][_0x2e9c71(0x2a8)](_0x4e1197));let _0x44c444=this[_0x2e9c71(0x159)][_0x2e9c71(0x171)](_0x4e1197);_0x44c444&&await Promise['allSettled'](_0x44c444),this[_0x2e9c71(0x178)][_0x2e9c71(0x2a8)](_0x4e1197),await this['_localStorageService'][_0x2e9c71(0x17d)](_0x5e27e8(_0x4e1197));}[_0x43b1c2(0x135)](_0x514842,_0x1903f1,_0x4bc1e6,_0x574c12){const _0x24e528=_0x43b1c2;let _0x4ddece=this[_0x24e528(0x267)][_0x24e528(0x27e)](_0x514842);this[_0x24e528(0x178)][_0x24e528(0x168)](_0x514842,{'unitID':_0x514842,'type':_0x1903f1,'awaitingChangeset':_0x4bc1e6,'mutations':_0x574c12,'rev':_0x4ddece}),this[_0x24e528(0x2c0)][_0x24e528(0x2a1)](_0x514842)||this['_scheduleSaving'](_0x514842);}[_0x43b1c2(0x2d4)](_0xd441a5){const _0x54b748=_0x43b1c2;let _0x2e61a0=this[_0x54b748(0xf4)]();_0x2e61a0===0x0?this['_saveCache'](_0xd441a5):this['_saveTaskMap'][_0x54b748(0x168)](_0xd441a5,window[_0x54b748(0x117)](()=>this[_0x54b748(0x1ce)](_0xd441a5),_0x2e61a0));}[_0x43b1c2(0xf4)](){const _0x1cab97=_0x43b1c2;return this[_0x1cab97(0x13a)][_0x1cab97(0xf8)](_0x1b65ad)??_0x64a250;}[_0x43b1c2(0x1ce)](_0x3001c5){const _0x878a58=_0x43b1c2;let _0x58d401=this[_0x878a58(0x2c0)]['get'](_0x3001c5);_0x58d401!==void 0x0&&window['clearTimeout'](_0x58d401);let _0x75209f=this[_0x878a58(0x1ff)][_0x878a58(0x205)](_0x5e27e8(_0x3001c5),this['_cachedData'][_0x878a58(0x171)](_0x3001c5))[_0x878a58(0x188)](()=>this[_0x878a58(0x2c0)]['delete'](_0x3001c5));return this['_trackActiveSaveTask'](_0x3001c5,_0x75209f),_0x75209f;}['_trackActiveSaveTask'](_0x210570,_0x52da42){const _0x2fbeb9=_0x43b1c2;let _0x4eb012=this[_0x2fbeb9(0x159)][_0x2fbeb9(0x171)](_0x210570);_0x4eb012||(_0x4eb012=new Set(),this['_activeSaveTaskMap'][_0x2fbeb9(0x168)](_0x210570,_0x4eb012)),_0x4eb012[_0x2fbeb9(0x231)](_0x52da42);let _0x465790=()=>{const _0x56425e=_0x2fbeb9;_0x4eb012['delete'](_0x52da42),_0x4eb012[_0x56425e(0x1aa)]===0x0&&this[_0x56425e(0x159)][_0x56425e(0x2a8)](_0x210570);};_0x52da42['then'](_0x465790,_0x465790);}async['exhaustSavingTask'](){const _0x137a85=_0x43b1c2;let _0x138fd6=[];this[_0x137a85(0x2c0)][_0x137a85(0x182)]((_0x7750cc,_0x3f8da5)=>{const _0x31acb6=_0x137a85;window[_0x31acb6(0x129)](_0x7750cc),_0x138fd6[_0x31acb6(0x23b)](this[_0x31acb6(0x1ce)](_0x3f8da5)[_0x31acb6(0x188)](()=>{const _0x338b9d=_0x31acb6;this['_saveTaskMap'][_0x338b9d(0x2a8)](_0x3f8da5);}));}),await Promise[_0x137a85(0x25e)](_0x138fd6);}};$n=J([q(0x0,_0x5697a0),q(0x1,_0x206a35),q(0x2,_0x47bc9a(_0x38f3f2))],$n);var er=class extends _0x5daa34{constructor(){const _0x1281a2=_0x43b1c2;super(),K(this,_0x1281a2(0x273),void 0x0),this[_0x1281a2(0x273)]=_0x11f26e(window,_0x1281a2(0x269))[_0x1281a2(0x1e2)](_0xe739dc(this[_0x1281a2(0x303)]),_0x5fa918({'bufferSize':0x1,'refCount':!0x0}),_0x38905b(void 0x0));}['setParam'](_0x2afca4,_0x2fc21b,_0x129be0=!0x1){const _0x187175=_0x43b1c2;let _0x1ef695=new URL(window[_0x187175(0x2f5)][_0x187175(0x18c)]);_0x1ef695[_0x187175(0x1e0)]['set'](_0x2afca4,_0x2fc21b),_0x129be0?window[_0x187175(0x1f3)][_0x187175(0x2c7)]('','',_0x1ef695[_0x187175(0x1a0)]()):window[_0x187175(0x1f3)][_0x187175(0x300)]('','',_0x1ef695['toString']());}['removeParam'](_0x2e66b2,_0x1bf4bc=!0x1){const _0x5f02f9=_0x43b1c2;let _0x72544b=new URL(window[_0x5f02f9(0x2f5)]['href']);_0x72544b['searchParams']['delete'](_0x2e66b2),_0x1bf4bc?window[_0x5f02f9(0x1f3)][_0x5f02f9(0x2c7)]('','',_0x72544b[_0x5f02f9(0x1a0)]()):window[_0x5f02f9(0x1f3)][_0x5f02f9(0x300)]('','',_0x72544b['toString']());}[_0x43b1c2(0x28a)](_0xadcd12){const _0xb05535=_0x43b1c2;return new URL(window[_0xb05535(0x2f5)]['href'])['searchParams']['get'](_0xadcd12)??void 0x0;}};let $=class extends _0x13d753{constructor(_0x1fc3c4=dn,_0x507974,_0x3555a5,_0x26866c,_0x414c62){const _0x1dc562=_0x43b1c2;super(),this['_config']=_0x1fc3c4,this[_0x1dc562(0x321)]=_0x507974,this[_0x1dc562(0x241)]=_0x3555a5,this[_0x1dc562(0x13a)]=_0x26866c,this[_0x1dc562(0x2b0)]=_0x414c62;let {..._0x2ae6e6}=_0x1597ec({},dn,this[_0x1dc562(0x285)]);this[_0x1dc562(0x13a)]['setConfig'](_0x1dc562(0x2a3),_0x2ae6e6);}[_0x43b1c2(0x212)](){const _0x5253fa=_0x43b1c2;this[_0x5253fa(0x102)](),this['disposeWithMe'](this[_0x5253fa(0x2b0)][_0x5253fa(0x1e6)](X)),this['_initDependencies']();}[_0x43b1c2(0x20d)](){const _0xac3897=_0x43b1c2;this[_0xac3897(0x316)]();}[_0x43b1c2(0x102)](){const _0x379faf=_0x43b1c2;var _0x4e5447;let _0x30678c=[[mn],[Q,{'useClass':er}],[_0x1828da,{'useClass':_0x32fca4}],[_0x232043,{'useClass':$n}],[Y],[zn],[Z],[Ln],[Bn],[Qn]];this['_config']['enableDocumentCollaborationUI']!==!0x1&&_0x30678c['push']([Un],[Vn],[Hn],[_n],[Jn],[fn]),this[_0x379faf(0x285)][_0x379faf(0x11a)]&&_0x30678c['push']([Yn]),_0x5655ca(this[_0x379faf(0x241)],_0x2c1872(_0x30678c,(_0x4e5447=this[_0x379faf(0x285)])==null?void 0x0:_0x4e5447['override']));}[_0x43b1c2(0x316)](){const _0x342b92=_0x43b1c2;this[_0x342b92(0x285)][_0x342b92(0x277)]!==!0x1&&this['disposeWithMe'](this['_renderManagerService'][_0x342b92(0x133)](_0x5658b7['UNIVER_DOC'],[Dn])),this[_0x342b92(0x242)](this[_0x342b92(0x321)][_0x342b92(0x133)](_0x5658b7[_0x342b92(0x1d5)],[kn]));}[_0x43b1c2(0x17e)](){const _0x2e416a=_0x43b1c2;_0xdabe6f(this[_0x2e416a(0x241)],[[Z],[Ln],[Y],[zn],[Bn],[Qn]]),this[_0x2e416a(0x285)][_0x2e416a(0x277)]!==!0x1&&_0xdabe6f(this['_injector'],[[Jn],[fn]]),this[_0x2e416a(0x285)][_0x2e416a(0x11a)]&&_0xdabe6f(this['_injector'],[[Yn]]);}};K($,'pluginName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),K($,_0x43b1c2(0x1ed),ln),K($,_0x43b1c2(0x30c),un),$=J([_0x12e8fc(_0xf1d164,_0x1932a6,_0x575828,_0x5555ee,_0x26a8b3,_0x1cee98,_0x5777f7),q(0x1,_0x4c7906),q(0x2,_0x47bc9a(_0x380635)),q(0x3,_0x5697a0),q(0x4,_0x9de777)],$);let tr=class extends _0x132b75{constructor(_0x3561d7,_0x3f50e9,_0x4e6756,_0x1f11cb,_0x15c4fb){super(_0x3561d7,_0x3f50e9,_0x4e6756,_0x1f11cb,_0x15c4fb);}async['createSocket'](_0x531ce9){const _0x30c083=_0x43b1c2;let _0xea3089=await this[_0x30c083(0x26c)](),_0x27cc35=this[_0x30c083(0x232)](_0x531ce9,_0xea3089);return this[_0x30c083(0x181)](_0x27cc35);}['_createSocketURL'](_0x52d965,_0x1c8f4a){const _0x489fd0=_0x43b1c2;let _0x42ef4f=typeof window>'u'?new URL(_0x52d965):new URL(_0x52d965,window[_0x489fd0(0x2f5)][_0x489fd0(0x225)]);_0x42ef4f[_0x489fd0(0x1e0)]['set'](_0x489fd0(0x115),_0x1c8f4a);let _0x27dd3f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x489fd0(0x2f5)][_0x489fd0(0x1b3)]);return _0x27dd3f['get'](_0x489fd0(0x1c5))&&_0x42ef4f[_0x489fd0(0x1e0)]['set']('runId',_0x27dd3f['get'](_0x489fd0(0x1c5))),_0x42ef4f['toString']();}async[_0x43b1c2(0x26c)](){const _0x48454e=_0x43b1c2;var _0x255878;let _0x4830c4=this[_0x48454e(0x13a)][_0x48454e(0xf8)](_0x598bdc),_0x97d77=(_0x4830c4==null?void 0x0:_0x4830c4[_0x48454e(0x2c9)])??_0x249f6a;return((_0x255878=(await this[_0x48454e(0x320)][_0x48454e(0x171)](_0x97d77,{'headers':{'Content-Type':'application/json'}}))[_0x48454e(0x103)])==null?void 0x0:_0x255878['ticket'])??'';}};tr=J([q(0x0,_0x47bc9a(_0x380635)),q(0x1,_0x47bc9a(_0x195ec6)),q(0x2,_0x5697a0),q(0x3,_0x232361),q(0x4,_0x5eb425)],tr);let nr=class extends _0xf50eed{constructor(_0x5e3241,_0x3f5ffd,_0x5eca9e){const _0x874e00=_0x43b1c2;super(),this[_0x874e00(0x23a)]=_0x5e3241,this[_0x874e00(0x320)]=_0x3f5ffd,this['_configService']=_0x5eca9e;}async[_0x43b1c2(0x156)](_0x226c2f,_0x562453,_0x4d2469,..._0x172925){const _0x43b7f9=_0x43b1c2;let _0x1c29a7=this[_0x43b7f9(0x23a)][_0x43b7f9(0x143)]();if(!_0x1c29a7)throw Error(_0x43b7f9(0x24c));let _0x124963=(this['_configService'][_0x43b7f9(0xf8)](_0xb23043)??_0x116f3b)+'/'+_0x226c2f+'/run/'+_0x562453,_0x1207e7={'scriptId':_0x226c2f,'runId':new URL(window[_0x43b7f9(0x2f5)]['href'])[_0x43b7f9(0x1e0)][_0x43b7f9(0x171)]('runId')??'','function':_0x562453,'unitId':_0x1c29a7[_0x43b7f9(0xdd)](),'argsOfFunction':JSON[_0x43b7f9(0x1f0)](_0x172925),'invokeId':_0x4d2469[_0x43b7f9(0x1cf)]??'','executionId':_0x4d2469['executionId']??''};try{let _0x182bd8=await this[_0x43b7f9(0x320)]['post'](_0x124963,{'body':_0x1207e7});return _0x182bd8[_0x43b7f9(0x103)][_0x43b7f9(0x15b)]&&_0x182bd8[_0x43b7f9(0x103)][_0x43b7f9(0x15b)]['code']!==_0x3ae796['OK']?_0x43b7f9(0xe2):_0x182bd8[_0x43b7f9(0x103)][_0x43b7f9(0x2c1)];}catch{return _0x43b7f9(0xe2);}}};nr=J([q(0x0,_0x576907),q(0x1,_0x47bc9a(_0x195ec6)),q(0x2,_0x5697a0)],nr);const rr=0x7530,ir='ACTIVE_UNIT_EVENT_CHANNEL';var ar=class extends _0xf50eed{constructor(){const _0x14ea6c=_0x43b1c2;super(),K(this,_0x14ea6c(0x119),_0x42801a()),K(this,_0x14ea6c(0x12a),new Set()),K(this,_0x14ea6c(0x335),new Map()),K(this,'_heartbeatTimer',null),K(this,_0x14ea6c(0x1ae),new Map()),K(this,'_unitStatus',new Map()),this['_init']();}[_0x43b1c2(0x1d8)](){const _0x54faf1=_0x43b1c2;super[_0x54faf1(0x1d8)](),this[_0x54faf1(0x1ae)][_0x54faf1(0x182)]((_0x42d027,_0x1289db)=>this[_0x54faf1(0x18f)](_0x1289db)),this[_0x54faf1(0x2d8)]&&window['clearInterval'](this[_0x54faf1(0x2d8)]);}['getUnitStatus$'](_0x443d7b){const _0x50fb4d=_0x43b1c2;return this[_0x50fb4d(0x319)](_0x443d7b)['pipe'](_0x290e1c());}[_0x43b1c2(0x298)](_0x1ed884){const _0x425ea6=_0x43b1c2;this[_0x425ea6(0x12a)][_0x425ea6(0x1aa)]===0x0&&this['_scheduleHeartbeat'](),this[_0x425ea6(0x12a)][_0x425ea6(0x231)](_0x1ed884),this[_0x425ea6(0xea)]({'type':0x0,'memberID':this[_0x425ea6(0x119)],'unitIDs':[_0x1ed884],'isForwarded':!0x1});}[_0x43b1c2(0xd9)](_0x3d1c1b){const _0x28afc7=_0x43b1c2;this[_0x28afc7(0x12a)]['delete'](_0x3d1c1b),this[_0x28afc7(0x12a)][_0x28afc7(0x1aa)]===0x0&&this[_0x28afc7(0x2d8)]&&window[_0x28afc7(0x183)](this[_0x28afc7(0x2d8)]);}[_0x43b1c2(0x344)](){const _0x43efd0=_0x43b1c2;this[_0x43efd0(0x242)](_0x4e78ef(_0x11f26e(window,_0x43efd0(0x2bf))['subscribe'](_0x30935a=>{const _0x27565e=_0x43efd0;if(_0x30935a[_0x27565e(0x318)]!==ir||!_0x30935a['newValue'])return;let _0x100962=JSON['parse'](_0x30935a[_0x27565e(0x220)]);this[_0x27565e(0x165)](_0x100962);}))),window[_0x43efd0(0x17a)]('unload',()=>this[_0x43efd0(0xea)]({'type':0x1,'memberID':this[_0x43efd0(0x119)],'unitIDs':Array[_0x43efd0(0x17c)](this['_selfUnitIDs'])}));}[_0x43b1c2(0x165)](_0x2035d7){const _0x50121a=_0x43b1c2;switch(_0x2035d7['type']){case 0x0:this['_handleJoinEvent'](_0x2035d7);break;case 0x1:this[_0x50121a(0x2df)](_0x2035d7);break;case 0x2:this['_handleHeartbeatEvent'](_0x2035d7);}}[_0x43b1c2(0x1f7)](_0x5289da){const _0x239a89=_0x43b1c2;let {unitIDs:_0x454fee,memberID:_0x2a246f,isForwarded:_0x4cf1e0}=_0x5289da;_0x454fee[_0x239a89(0x182)](_0x50f355=>{const _0x42ea87=_0x239a89;if(!_0x4cf1e0&&this['_unitOnClients'][_0x42ea87(0x2a1)](_0x50f355)&&this[_0x42ea87(0x319)](_0x50f355)[_0x42ea87(0x2d0)](_0x44c09f[_0x42ea87(0x1c1)]),!this[_0x42ea87(0x335)][_0x42ea87(0x2a1)](_0x50f355)||!this[_0x42ea87(0x335)][_0x42ea87(0x171)](_0x50f355)['has'](_0x2a246f)){let _0x51a0da=this[_0x42ea87(0x335)][_0x42ea87(0x171)](_0x50f355)||new Set();_0x51a0da[_0x42ea87(0x231)](_0x2a246f),this[_0x42ea87(0x335)][_0x42ea87(0x168)](_0x50f355,_0x51a0da),this[_0x42ea87(0x2ad)](_0x2a246f);}}),_0x4cf1e0||this[_0x239a89(0xea)]({'type':0x0,'memberID':this[_0x239a89(0x119)],'unitIDs':[...this[_0x239a89(0x12a)]],'isForwarded':!0x0});}[_0x43b1c2(0x2ad)](_0x5d05b6){const _0x26b510=_0x43b1c2;this[_0x26b510(0x18f)](_0x5d05b6);let _0x3d76c0=window[_0x26b510(0x117)](()=>{const _0x15f649=_0x26b510;this[_0x15f649(0x335)][_0x15f649(0x182)](_0x11e5ab=>{const _0x5b1804=_0x15f649;_0x11e5ab[_0x5b1804(0x2a8)](_0x5d05b6);});},rr*0x2);this['_clearOtherTimers'][_0x26b510(0x168)](_0x5d05b6,_0x3d76c0);}[_0x43b1c2(0x18f)](_0x13beec){const _0x27e77d=_0x43b1c2;if(this[_0x27e77d(0x1ae)][_0x27e77d(0x2a1)](_0x13beec)){let _0x408c63=this['_clearOtherTimers']['get'](_0x13beec);_0x408c63&&window[_0x27e77d(0x129)](_0x408c63),this['_clearOtherTimers'][_0x27e77d(0x168)](_0x13beec,null);}}[_0x43b1c2(0x2df)](_0x477a9c){const _0x4222a6=_0x43b1c2;let {memberID:_0x422243,unitIDs:_0x4d6107}=_0x477a9c;_0x4d6107['forEach'](_0xb0cca7=>{const _0x46d447=_0x47c1;var _0x4215b5;let _0x3367c7=this[_0x46d447(0x335)][_0x46d447(0x171)](_0xb0cca7);_0x3367c7&&(_0x3367c7[_0x46d447(0x2a8)](_0x422243),(_0x4215b5=this[_0x46d447(0x319)](_0xb0cca7))==null||_0x4215b5[_0x46d447(0x2d0)](_0x3367c7[_0x46d447(0x1aa)]===0x0?_0x44c09f[_0x46d447(0x32d)]:_0x44c09f[_0x46d447(0x1c1)]));}),this[_0x4222a6(0x18f)](_0x422243);}[_0x43b1c2(0x2dd)](_0xf922c2){const _0x226d57=_0x43b1c2;this[_0x226d57(0x2ad)](_0xf922c2[_0x226d57(0x19a)]);}[_0x43b1c2(0xea)](_0x1942b0){const _0x1d3698=_0x43b1c2;localStorage[_0x1d3698(0x205)](ir,JSON[_0x1d3698(0x1f0)](_0x1942b0));}[_0x43b1c2(0x13d)](){const _0x5579a7=_0x43b1c2;this[_0x5579a7(0x2d8)]=window[_0x5579a7(0x322)](()=>{const _0x21391b=_0x5579a7;this[_0x21391b(0xea)]({'type':0x2,'memberID':this[_0x21391b(0x119)]});},rr);}['_ensureSubject'](_0x419726){const _0x3b8e96=_0x43b1c2;return this['_unitStatus'][_0x3b8e96(0x2a1)](_0x419726)||this['_unitStatus'][_0x3b8e96(0x168)](_0x419726,new _0x4dad7b(_0x44c09f[_0x3b8e96(0x32d)])),this['_unitStatus'][_0x3b8e96(0x171)](_0x419726);}};export{tr as BrowserCollaborationSocketService,Y as DesktopCollaborationStatusDisplayController,Q as IURLService,nr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ar as WebBrowserSingleActiveUnitService};