@univerjs-pro/collaboration-client-ui 0.25.1 → 1.0.0-alpha.1

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 (99) 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 +6 -6
  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/config.schema.d.ts → config/config.d.ts} +8 -0
  66. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +3 -2
  67. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +34 -0
  68. package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +21 -0
  69. package/lib/types/controllers/entity-ui/collaboration-entity-ui.controller.d.ts +1 -3
  70. package/lib/types/index.d.ts +3 -2
  71. package/lib/types/locale/types.d.ts +3 -0
  72. package/lib/types/models/cursor.d.ts +23 -0
  73. package/lib/types/plugin.d.ts +1 -1
  74. package/lib/types/services/local-cache/web-local-cache.service.d.ts +1 -0
  75. package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +1 -1
  76. package/lib/types/views/components/CollabStatus.d.ts +1 -1
  77. package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +15 -0
  78. package/lib/umd/facade.js +1 -1
  79. package/lib/umd/index.js +1 -1
  80. package/lib/umd/locale/ar-SA.js +1 -1
  81. package/lib/umd/locale/ca-ES.js +1 -1
  82. package/lib/umd/locale/de-DE.js +1 -1
  83. package/lib/umd/locale/en-US.js +1 -1
  84. package/lib/umd/locale/es-ES.js +1 -1
  85. package/lib/umd/locale/fa-IR.js +1 -1
  86. package/lib/umd/locale/fr-FR.js +1 -1
  87. package/lib/umd/locale/id-ID.js +1 -1
  88. package/lib/umd/locale/it-IT.js +1 -1
  89. package/lib/umd/locale/ja-JP.js +1 -1
  90. package/lib/umd/locale/ko-KR.js +1 -1
  91. package/lib/umd/locale/pl-PL.js +1 -1
  92. package/lib/umd/locale/pt-BR.js +1 -1
  93. package/lib/umd/locale/ru-RU.js +1 -1
  94. package/lib/umd/locale/sk-SK.js +1 -1
  95. package/lib/umd/locale/vi-VN.js +1 -1
  96. package/lib/umd/locale/zh-CN.js +1 -1
  97. package/lib/umd/locale/zh-HK.js +1 -1
  98. package/lib/umd/locale/zh-TW.js +1 -1
  99. package/package.json +23 -21
package/lib/index.css CHANGED
@@ -79,8 +79,8 @@
79
79
  border-style: none;
80
80
  }
81
81
 
82
- .univer-bg-gray-700 {
83
- background-color: var(--univer-gray-700);
82
+ .\!univer-bg-gray-700 {
83
+ background-color: var(--univer-gray-700) !important;
84
84
  }
85
85
 
86
86
  .univer-bg-primary-500 {
@@ -183,10 +183,10 @@
183
183
  --univer-tw-ring-offset-width: 2px;
184
184
  }
185
185
 
186
- .dark\:hover\:univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
187
- background-color: var(--univer-gray-700);
186
+ .dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
187
+ background-color: var(--univer-gray-700) !important;
188
188
  }
189
189
 
190
- .dark\:focus\:univer-ring-offset-gray-800:focus:where(.univer-dark, .univer-dark *) {
191
- --univer-tw-ring-offset-color: var(--univer-gray-800);
190
+ .dark\:focus\:\!univer-ring-offset-gray-800:focus:where(.univer-dark, .univer-dark *) {
191
+ --univer-tw-ring-offset-color: var(--univer-gray-800) !important;
192
192
  }
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4f3698=_0x501c;(function(_0x4b9554,_0x30f4a3){const _0x3b8f80=_0x501c,_0x36ee5b=_0x4b9554();while(!![]){try{const _0x2bd02b=parseInt(_0x3b8f80(0x23d))/0x1*(parseInt(_0x3b8f80(0x353))/0x2)+parseInt(_0x3b8f80(0x336))/0x3*(parseInt(_0x3b8f80(0x1cc))/0x4)+-parseInt(_0x3b8f80(0x37c))/0x5*(-parseInt(_0x3b8f80(0x36c))/0x6)+-parseInt(_0x3b8f80(0x242))/0x7*(parseInt(_0x3b8f80(0x21f))/0x8)+-parseInt(_0x3b8f80(0x1c7))/0x9+-parseInt(_0x3b8f80(0x382))/0xa+parseInt(_0x3b8f80(0x2d8))/0xb*(parseInt(_0x3b8f80(0x1e9))/0xc);if(_0x2bd02b===_0x30f4a3)break;else _0x36ee5b['push'](_0x36ee5b['shift']());}catch(_0x67c75e){_0x36ee5b['push'](_0x36ee5b['shift']());}}}(_0x53b6,0x1dd4b));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x20d072,CollaborationController as _0x32bb3a,CollaborationSessionService as _0x295742,CollaborationSocketService as _0x4210a9,CollaborationStatus as _0x33faa6,CollaborationUIEventId as _0xcc4607,CollaborationUIEventService as _0x522545,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1a23e,DEFAULT_WS_SESSION_TICKET_URL as _0x43d47c,DataLoaderService as _0x18d7e1,DocCollaborationEntity as _0x3c4914,ILocalCacheService as _0x346440,LOCAL_CACHE_INTERVAL as _0x33f454,LOCAL_CACHE_INTERVAL_KEY as _0x3c08a2,MemberService as _0x5d2148,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5d41fa,SessionStatus as _0x3c46b2,UnitStatus as _0x4261be,UniverCollaborationClientPlugin as _0x596c83,getLocalCacheKey as _0x199006}from'@univerjs-pro/collaboration-client';import{COLORS as _0x5ca256,CanceledError as _0x32abe0,ColorKit as _0x5f4a6f,CommandType as _0xce570f,DOC_RANGE_TYPE as _0xf9eaf4,DependentOn as _0x51300c,Disposable as _0x135205,DisposableCollection as _0x97351b,ICommandService as _0x475d4a,IConfigService as _0x270179,ILocalStorageService as _0xa60d24,ILogService as _0x533956,IUniverInstanceService as _0x299f08,Inject as _0x3a3495,Injector as _0xd0a80,LocaleService as _0x2912dd,Optional as _0x472906,Plugin as _0x59834f,Rectangle as _0x5794ce,RxDisposable as _0x2d8708,ThemeService as _0x52719a,Tools as _0x4cf666,UniverInstanceType as _0x38e1b9,Workbook as _0x6bf8b9,createIdentifier as _0x5749bf,debounce as _0x2d6517,fromEventSubject as _0x3ad556,generateRandomId as _0x56a70c,isFormulaId as _0x447415,isFormulaString as _0x2bb093,isInternalEditorID as _0xc673b0,merge as _0x37c9d2,mergeOverrideWithDependencies as _0x39b30f,registerDependencies as _0x4b9c32,toDisposable as _0x305b33,touchDependencies as _0x235764}from'@univerjs/core';import{BuiltInUIPart as _0x5a07a6,IBeforeCloseService as _0x1724e1,IMessageService as _0x304c5a,INotificationService as _0x31a1f5,IUIPartsService as _0x104675,connectInjector as _0x2b7294,useDependency as _0x274de2,useObservable as _0x1072e8}from'@univerjs/ui';import{BehaviorSubject as _0x5a0bca,Subject as _0x17e895,combineLatest as _0x1738da,debounceTime as _0x4ee250,distinctUntilChanged as _0x265cf8,filter as _0x318dbb,fromEvent as _0x47437f,mapTo as _0x16301b,merge as _0x599df5,of as _0x3ef51b,shareReplay as _0xc9ccec,switchMap as _0x4881ed,takeUntil as _0x506d73}from'rxjs';import{distinctUntilChanged as _0x4a54aa,filter as _0x5bdf60,map as _0x66062e,switchMap as _0x5a5de0,takeUntil as _0x119f17,throttleTime as _0x4c8a96}from'rxjs/operators';import{MessageType as _0x1082da,Tooltip as _0xa581fd,clsx as _0x55471b}from'@univerjs/design';import{LoadingMultiIcon as _0x552515,OffLineIcon as _0x2306f2,OnLineIcon as _0x2f4ad2}from'@univerjs/icons';import{useCallback as _0x633efb,useMemo as _0x227c46}from'react';import{jsx as _0x2092b2}from'react/jsx-runtime';import{IRemoteInstanceService as _0x1798c1}from'@univerjs/rpc';import{EffectRefRangId as _0x48cbdd,RefRangeService as _0x4de819,SetSelectionsOperation as _0x1df243,SetWorksheetActivateCommand as _0x1347aa,SheetsSelectionsService as _0x5dfef0,handleDeleteRangeMoveLeft as _0x2f0aa7,handleDeleteRangeMoveUp as _0x3119fa,handleIRemoveCol as _0x35be56,handleIRemoveRow as _0x3acad2,handleInsertCol as _0x673428,handleInsertRangeMoveDown as _0x34436c,handleInsertRangeMoveRight as _0xfb1dc5,handleInsertRow as _0x25f7b8,handleMoveRange as _0x355e03,runRefRangeMutations as _0x4ea892}from'@univerjs/sheets';import{IRenderManagerService as _0x5e34fe,Rect as _0x457c5d,RegularPolygon as _0x9150e2,SHEET_VIEWPORT_KEY as _0x3c4818,Shape as _0x30d899,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4df35f,Vector2 as _0x2d9a69,getColor as _0x5d813f}from'@univerjs/engine-render';import{HTTPService as _0x19b345,ISocketService as _0x18f3b8,WebSocketService as _0x188c00}from'@univerjs/network';import{DocIMEInputManagerService as _0xf0b0b6,DocStateChangeManagerService as _0x1d3cc9,IDocClipboardService as _0xac46d5,NodePositionConvertToCursor as _0x22692b,NodePositionConvertToRectRange as _0x2db32d,SetDocZoomRatioOperation as _0x54470e,TEXT_RANGE_LAYER_INDEX as _0x424c1f}from'@univerjs/docs-ui';import{IImageIoService as _0x3a00ef}from'@univerjs/drawing';import{CollaborationEvent as _0x18d6f7,ISnapshotServerService as _0x5a0c2c,ITransformService as _0x36830a,RevisionService as _0x4e73e6,isTransformMutationFailure as _0x28c447,isTransformMutationsWithChangesetSuccess as _0x1ab105}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x1eff78,DocSkeletonManagerService as _0xa6e1bc,RichTextEditingMutation as _0x3504f7,SetTextSelectionsOperation as _0x2f5396}from'@univerjs/docs';import{FormulaExecuteStageType as _0x5261a0,FormulaExecutedStateType as _0xb906a6,SetFormulaCalculationNotificationMutation as _0x2205b6,SetFormulaCalculationStartMutation as _0x37747b,deserializeRangeWithSheet as _0x23a1fc,serializeRangeWithSheet as _0x138433}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x389d4c,getCoordByCell as _0x2a0576,getSheetObject as _0x5378e7}from'@univerjs/sheets-ui';import{ErrorCode as _0x1bd35a}from'@univerjs/protocol';function Yt(_0x4ed50d){const _0x52f760=_0x501c;switch(_0x4ed50d){case _0x33faa6['OFFLINE']:return{'icon':_0x2092b2(_0x2306f2,{}),'colorClass':_0x52f760(0x35e),'i18nKey':_0x52f760(0x1f9),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x52f760(0x2bd)};case _0x33faa6[_0x52f760(0x2d2)]:return{'icon':_0x2092b2(_0x2306f2,{}),'colorClass':_0x52f760(0x282),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x52f760(0x2bd)};case _0x33faa6['FETCH_MISS']:return{'icon':_0x2092b2(_0x552515,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x52f760(0x341),'clickable':!0x1,'indicator':'spin'};case _0x33faa6[_0x52f760(0x21a)]:return{'icon':_0x2092b2(_0x2f4ad2,{}),'colorClass':'univer-text-gray-400','i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x52f760(0x2bd)};case _0x33faa6[_0x52f760(0x207)]:case _0x33faa6[_0x52f760(0x3a3)]:return{'icon':_0x2092b2(_0x552515,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x52f760(0x1e1),'clickable':!0x1,'indicator':'spin'};case _0x33faa6['PENDING']:return{'icon':_0x2092b2(_0x552515,{}),'colorClass':_0x52f760(0x39f),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case _0x33faa6[_0x52f760(0x380)]:return{'icon':_0x2092b2(_0x2f4ad2,{}),'colorClass':'univer-text-green-500','i18nKey':_0x52f760(0x24f),'clickable':!0x1,'indicator':'static'};}}function Xt(_0x4e5137){const _0x53ad31=_0x501c;let {status$:_0x30895b}=_0x4e5137,_0x5116ca=_0x1072e8(_0x30895b,_0x33faa6[_0x53ad31(0x21a)]),_0x4e376a=_0x274de2(_0x2912dd),_0x209e2b=_0x274de2(_0x295742),_0x176385=_0x227c46(()=>Yt(_0x5116ca),[_0x5116ca]),_0x47be40=_0x5116ca!==_0x33faa6[_0x53ad31(0x265)],_0x1654c5=_0x4e376a['t'](_0x176385[_0x53ad31(0x285)]),_0x3e9d1c=_0x176385[_0x53ad31(0x25e)]?_0x4e376a['t'](_0x176385[_0x53ad31(0x25e)]):_0x1654c5,_0x1992e4=_0x633efb(()=>{const _0x47612e=_0x53ad31;_0x47be40||_0x209e2b[_0x47612e(0x295)]();},[_0x47be40,_0x209e2b]),_0xbb9f45=_0x633efb(_0x4df6d5=>{const _0x2581e5=_0x53ad31;!_0x47be40&&(_0x4df6d5[_0x2581e5(0x1fb)]===_0x2581e5(0x290)||_0x4df6d5['key']==='\x20')&&(_0x4df6d5['preventDefault'](),_0x209e2b[_0x2581e5(0x295)]());},[_0x47be40,_0x209e2b]),_0x486761=_0x2092b2(_0x53ad31(0x22d),{'className':_0x55471b(_0x53ad31(0x239),_0x53ad31(0x339),_0x176385[_0x53ad31(0x316)],{'univer-animate-spin':_0x176385[_0x53ad31(0x398)]==='spin','univer-animate-pulse':_0x176385[_0x53ad31(0x398)]===_0x53ad31(0x276)}),'aria-hidden':_0x53ad31(0x210),'children':_0x176385[_0x53ad31(0x2b3)]}),_0x2d9dd3=_0x2092b2('span',{'className':_0x55471b(_0x53ad31(0x239),_0x53ad31(0x33f),_0x53ad31(0x20e),_0x53ad31(0x1ee),'dark:focus:univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x176385[_0x53ad31(0x28b)],'univer-cursor-default':!_0x176385[_0x53ad31(0x28b)]}),'children':_0x486761});return _0x176385[_0x53ad31(0x28b)]?_0x2092b2(_0xa581fd,{'title':_0x3e9d1c,'placement':'bottom','children':_0x2092b2(_0x53ad31(0x315),{'type':'button','onClick':_0x1992e4,'onKeyDown':_0xbb9f45,'className':_0x55471b(_0x53ad31(0x301),_0x53ad31(0x211),_0x53ad31(0x21c),'univer-appearance-none'),'aria-label':_0x1654c5+_0x53ad31(0x227)+_0x3e9d1c,'role':_0x53ad31(0x1bc),'aria-live':'polite','aria-atomic':_0x53ad31(0x210),'children':_0x2d9dd3})}):_0x2092b2(_0xa581fd,{'title':_0x3e9d1c,'placement':'bottom','children':_0x2092b2(_0x53ad31(0x2d9),{'className':_0x55471b(_0x53ad31(0x301),_0x53ad31(0x211),_0x53ad31(0x21c)),'aria-label':_0x1654c5,'role':_0x53ad31(0x1bc),'aria-live':_0x53ad31(0x1ae),'aria-atomic':'true','children':_0x2d9dd3})});}function W(_0x296f5f){'@babel/helpers - typeof';const _0x4f58f5=_0x501c;return W=typeof Symbol==_0x4f58f5(0x1f3)&&typeof Symbol[_0x4f58f5(0x20c)]==_0x4f58f5(0x314)?function(_0x5b16c5){return typeof _0x5b16c5;}:function(_0x44f682){const _0x5d63b8=_0x4f58f5;return _0x44f682&&typeof Symbol==_0x5d63b8(0x1f3)&&_0x44f682[_0x5d63b8(0x2ab)]===Symbol&&_0x44f682!==Symbol[_0x5d63b8(0x2b4)]?_0x5d63b8(0x314):typeof _0x44f682;},W(_0x296f5f);}function Zt(_0x44f353,_0x446e03){const _0x33cfe6=_0x501c;if(W(_0x44f353)!=_0x33cfe6(0x24a)||!_0x44f353)return _0x44f353;var _0x39d216=_0x44f353[Symbol[_0x33cfe6(0x26f)]];if(_0x39d216!==void 0x0){var _0xbbde09=_0x39d216[_0x33cfe6(0x1f5)](_0x44f353,_0x446e03||_0x33cfe6(0x1fe));if(W(_0xbbde09)!=_0x33cfe6(0x24a))return _0xbbde09;throw TypeError(_0x33cfe6(0x225));}return(_0x446e03===_0x33cfe6(0x212)?String:Number)(_0x44f353);}function Qt(_0x3667f7){const _0x4857b1=_0x501c;var _0x1bac6e=Zt(_0x3667f7,_0x4857b1(0x212));return W(_0x1bac6e)==_0x4857b1(0x314)?_0x1bac6e:_0x1bac6e+'';}function G(_0x4174a5,_0x2abf0d,_0x4b80aa){const _0x56cb30=_0x501c;return(_0x2abf0d=Qt(_0x2abf0d))in _0x4174a5?Object[_0x56cb30(0x22e)](_0x4174a5,_0x2abf0d,{'value':_0x4b80aa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4174a5[_0x2abf0d]=_0x4b80aa,_0x4174a5;}function K(_0x809356,_0x48e17a){return function(_0x1424b6,_0x15c4fe){_0x48e17a(_0x1424b6,_0x15c4fe,_0x809356);};}function q(_0x20be7a,_0x8d9ccb,_0x5f08e4,_0x16d67a){const _0x819814=_0x501c;var _0x46006a=arguments[_0x819814(0x2ac)],_0x13de66=_0x46006a<0x3?_0x8d9ccb:_0x16d67a===null?_0x16d67a=Object['getOwnPropertyDescriptor'](_0x8d9ccb,_0x5f08e4):_0x16d67a,_0xa25620;if(typeof Reflect==_0x819814(0x24a)&&typeof Reflect[_0x819814(0x28c)]==_0x819814(0x1f3))_0x13de66=Reflect[_0x819814(0x28c)](_0x20be7a,_0x8d9ccb,_0x5f08e4,_0x16d67a);else{for(var _0x26054f=_0x20be7a[_0x819814(0x2ac)]-0x1;_0x26054f>=0x0;_0x26054f--)(_0xa25620=_0x20be7a[_0x26054f])&&(_0x13de66=(_0x46006a<0x3?_0xa25620(_0x13de66):_0x46006a>0x3?_0xa25620(_0x8d9ccb,_0x5f08e4,_0x13de66):_0xa25620(_0x8d9ccb,_0x5f08e4))||_0x13de66);}return _0x46006a>0x3&&_0x13de66&&Object[_0x819814(0x22e)](_0x8d9ccb,_0x5f08e4,_0x13de66),_0x13de66;}let J=class extends _0x135205{constructor(_0x48f0f1,_0x409737,_0x9dcc28,_0xc0676b){const _0x5623c6=_0x501c;super(),this['_univerInstanceService']=_0x48f0f1,this[_0x5623c6(0x370)]=_0x409737,this[_0x5623c6(0x297)]=_0x9dcc28,this[_0x5623c6(0x2c4)]=_0xc0676b,G(this,_0x5623c6(0x36b),new _0x5a0bca(_0x33faa6[_0x5623c6(0x21a)])),this[_0x5623c6(0x1ac)](),this[_0x5623c6(0x261)]();}[_0x4f3698(0x261)](){const _0x2c7e92=_0x4f3698;this[_0x2c7e92(0x2c6)](_0x599df5(this['_univerInstanceService']['focused$'],this[_0x2c7e92(0x366)]['getCurrentTypeOfUnit$'](_0x38e1b9['UNIVER_DOC']),this[_0x2c7e92(0x366)][_0x2c7e92(0x31b)](_0x38e1b9[_0x2c7e92(0x35a)]))['pipe'](_0x66062e(()=>$t(this[_0x2c7e92(0x366)])),_0x4a54aa(),_0x4881ed(_0x3571c8=>_0x3571c8?this['_collaborationController']['getCollabEntity$'](_0x3571c8):_0x3ef51b(null)),_0x4881ed(_0x1611b1=>_0x1611b1?_0x1611b1[_0x2c7e92(0x374)]:_0x3ef51b(_0x33faa6['NOT_COLLAB'])))['subscribe'](_0x21ff5e=>{const _0x3b6ffb=_0x2c7e92;this[_0x3b6ffb(0x36b)]['next'](_0x21ff5e);}));}['_initStatusComponent'](){const _0x5cf24e=_0x4f3698;this[_0x5cf24e(0x2c6)](this[_0x5cf24e(0x2c4)][_0x5cf24e(0x1de)](_0x5a07a6['HEADER_MENU'],()=>_0x2b7294(en({'status$':this['_status$'][_0x5cf24e(0x2f6)]()}),this[_0x5cf24e(0x370)])));}};J=q([K(0x0,_0x299f08),K(0x1,_0x3a3495(_0xd0a80)),K(0x2,_0x3a3495(_0x32bb3a)),K(0x3,_0x104675)],J);function $t(_0x4a847b){const _0x2bb8ed=_0x4f3698;let _0x1b48e0=_0x4a847b[_0x2bb8ed(0x2e4)](),_0x26eb99=_0x1b48e0==null?void 0x0:_0x1b48e0[_0x2bb8ed(0x219)]();if(_0x26eb99&&!_0xc673b0(_0x26eb99))return _0x26eb99;let _0x2f99e9=_0x4a847b[_0x2bb8ed(0x36e)](_0x38e1b9[_0x2bb8ed(0x221)]),_0x4428cb=_0x2f99e9==null?void 0x0:_0x2f99e9['getUnitId']();if(_0x4428cb&&!_0xc673b0(_0x4428cb))return _0x4428cb;let _0x1eecfc=_0x4a847b[_0x2bb8ed(0x36e)](_0x38e1b9[_0x2bb8ed(0x35a)]);if(_0x1eecfc)return _0x1eecfc['getUnitId']();let _0x3e6946=_0x4a847b[_0x2bb8ed(0x1ce)](_0x38e1b9[_0x2bb8ed(0x221)])[_0x2bb8ed(0x307)](_0x3a98fd=>!_0xc673b0(_0x3a98fd['getUnitId']()));return _0x3e6946?_0x3e6946[_0x2bb8ed(0x219)]():null;}function en(_0x54c59b){let {status$:_0x2dca96}=_0x54c59b;return function(){return _0x2092b2(Xt,{'status$':_0x2dca96});};}const tn=_0x5749bf(_0x4f3698(0x2f2));let Y=class extends _0x2d8708{constructor(_0xb89e61,_0xd38b14,_0x33e868,_0x44e0a7,_0x1fa823){const _0x2e0161=_0x4f3698;super(),this[_0x2e0161(0x357)]=_0xb89e61,this['_logService']=_0xd38b14,this['_commandService']=_0x33e868,this[_0x2e0161(0x347)]=_0x44e0a7,_0x1fa823?_0x1fa823==null||_0x1fa823[_0x2e0161(0x2f1)]()[_0x2e0161(0x2c2)](()=>this['_init']()):(this[_0x2e0161(0x2d0)]['debug']('[CollaborationDataLoaderController]',_0x2e0161(0x24b)),this[_0x2e0161(0x372)]());}async[_0x4f3698(0x372)](){const _0x14a8da=_0x4f3698;let _0x289e53=this['_urlService'][_0x14a8da(0x218)]('unit'),_0x2269e2=this[_0x14a8da(0x357)][_0x14a8da(0x218)]('type'),_0x28387a=this['_urlService']['getParam']('subunit');if(!_0x289e53||!_0x2269e2){this[_0x14a8da(0x2d0)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x35dc7b=await this[_0x14a8da(0x347)][_0x14a8da(0x1c3)](_0x289e53,Number(_0x2269e2),_0x28387a);_0x35dc7b&&_0x35dc7b instanceof _0x6bf8b9&&this['_setupSubUnitSync'](_0x35dc7b);}async[_0x4f3698(0x356)](_0x359ca5){const _0x376ca1=_0x4f3698;await this[_0x376ca1(0x23a)](_0x359ca5),_0x359ca5[_0x376ca1(0x19e)]['pipe'](_0x506d73(this['dispose$']))['subscribe'](_0x423b80=>{_0x423b80&&this['_updateURLWithCurrentState'](_0x423b80);}),this['_urlService'][_0x376ca1(0x272)][_0x376ca1(0x2af)](_0x506d73(this['dispose$']))[_0x376ca1(0x1f2)](()=>this['_updateSubUnitFromURLParams'](_0x359ca5));}['_updateURLWithCurrentState'](_0x55001f,_0x861e50=!0x1){const _0x2ed813=_0x4f3698;let _0x545dd5=this[_0x2ed813(0x357)][_0x2ed813(0x218)](_0x2ed813(0x2b6));_0x55001f['getSheetId']()!==_0x545dd5&&this[_0x2ed813(0x357)][_0x2ed813(0x338)](_0x2ed813(0x2b6),_0x55001f[_0x2ed813(0x1be)](),_0x861e50);}async[_0x4f3698(0x23a)](_0x37173a){const _0x5c69fe=_0x4f3698;var _0x5a8192;let _0x5b1dca=this[_0x5c69fe(0x357)]['getParam']('subunit');if(!_0x5b1dca||!_0x37173a[_0x5c69fe(0x37e)](_0x5b1dca)){let _0x2f987d=_0x37173a[_0x5c69fe(0x284)]()[0x0],_0x9e6f8=_0x37173a[_0x5c69fe(0x37e)](_0x2f987d);if(!_0x9e6f8)return;this[_0x5c69fe(0x289)](_0x9e6f8,!0x0),await this[_0x5c69fe(0x378)][_0x5c69fe(0x20b)](_0x1347aa['id'],{'unitId':_0x37173a[_0x5c69fe(0x219)](),'subUnitId':_0x2f987d});return;}((_0x5a8192=_0x37173a[_0x5c69fe(0x38b)]())==null?void 0x0:_0x5a8192[_0x5c69fe(0x1be)]())!==_0x5b1dca&&await this['_commandService'][_0x5c69fe(0x20b)](_0x1347aa['id'],{'unitId':_0x37173a[_0x5c69fe(0x219)](),'subUnitId':_0x5b1dca});}};Y=q([K(0x0,tn),K(0x1,_0x533956),K(0x2,_0x475d4a),K(0x3,_0x3a3495(_0x18d7e1)),K(0x4,_0x472906(_0x1798c1))],Y);var nn=_0x4f3698(0x2a7),rn=_0x4f3698(0x249);let an=class extends _0x2d8708{constructor(_0x633360,_0x28aa44){const _0x4c1c60=_0x4f3698;super(),this[_0x4c1c60(0x234)]=_0x633360,this[_0x4c1c60(0x191)]=_0x28aa44,this['_init']();}[_0x4f3698(0x372)](){const _0x469a20=_0x4f3698;let _0x535ccb=this;this['disposeWithMe'](this[_0x469a20(0x234)][_0x469a20(0x30b)]({'onBeforePasteImage':async _0x2157b2=>{const _0x2e3a41=_0x469a20;let _0x306820=await _0x535ccb[_0x2e3a41(0x191)][_0x2e3a41(0x2fa)](_0x2157b2);return _0x306820?{'source':_0x306820[_0x2e3a41(0x2a2)],'imageSourceType':_0x306820[_0x2e3a41(0x29c)]}:null;}}));}};an=q([K(0x0,_0xac46d5),K(0x1,_0x3a00ef)],an);const on=[_0x4f3698(0x1e6),_0x4f3698(0x2ec),'green.600',_0x4f3698(0x32e),'blue.400','yellow.400'];var sn=class extends _0x135205{constructor(..._0x2be2c4){const _0x533eb5=_0x4f3698;super(..._0x2be2c4),G(this,_0x533eb5(0x318),new Map()),G(this,_0x533eb5(0x322),0x0);}[_0x4f3698(0x2c5)](_0x1a9cb1){const _0x4f2aa0=_0x4f3698;if(this[_0x4f2aa0(0x318)][_0x4f2aa0(0x2cc)](_0x1a9cb1))return this['_assignedColors'][_0x4f2aa0(0x1d3)](_0x1a9cb1);let _0x438428=on[this[_0x4f2aa0(0x322)]];return this[_0x4f2aa0(0x322)]=(this['_colorIndex']+0x1)%on['length'],this[_0x4f2aa0(0x318)][_0x4f2aa0(0x2da)](_0x1a9cb1,_0x438428),_0x438428;}};function cn(_0x4c47a6){const _0x1956a6=_0x4f3698;let _0x427caa='';for(let _0x51ae84 of _0x4c47a6){let {startOffset:_0x2303d8,endOffset:_0xc25500,isActive:_0x331231,rangeType:_0x8d6b3b,segmentId:_0x539c40,segmentPage:_0x4f8d1b}=_0x51ae84;_0x427caa[_0x1956a6(0x2ac)]&&(_0x427caa+=','),_0x427caa+=_0x2303d8+':'+_0xc25500+':'+(_0x331231?'1':'0')+':'+_0x8d6b3b+':'+_0x539c40+':'+_0x4f8d1b;}return _0x427caa;}function ln(_0x98f10a){const _0x48f54e=_0x4f3698;let _0x282165=_0x98f10a[_0x48f54e(0x300)](','),_0x4d1681=[];for(let _0x546531 of _0x282165){let [_0xf8a293,_0x5bd66a,_0x2e62fc,_0x1c8b71,_0x10ffb9,_0x2ae9c9]=_0x546531[_0x48f54e(0x300)](':');_0x4d1681[_0x48f54e(0x277)]({'startOffset':Number(_0xf8a293),'endOffset':Number(_0x5bd66a),'collapsed':_0xf8a293===_0x5bd66a,'isActive':_0x2e62fc==='1','rangeType':_0x1c8b71===_0xf9eaf4[_0x48f54e(0x280)]?_0xf9eaf4[_0x48f54e(0x280)]:_0xf9eaf4[_0x48f54e(0x204)],'segmentId':typeof _0x10ffb9==_0x48f54e(0x212)?String(_0x10ffb9):'','segmentPage':Number(_0x2ae9c9==null?-0x1:_0x2ae9c9)});}return _0x4d1681[_0x48f54e(0x2d4)](_0x475386=>_0x475386[_0x48f54e(0x306)])||(_0x4d1681[0x0]['isActive']=!0x0),_0x4d1681;}var un=class extends _0x2d8708{constructor(..._0x3d81c7){const _0x28a4fa=_0x4f3698;super(..._0x3d81c7),G(this,_0x28a4fa(0x367),new _0x5a0bca(null)),G(this,_0x28a4fa(0x2a6),this[_0x28a4fa(0x367)][_0x28a4fa(0x2f6)]());}[_0x4f3698(0x2ca)](_0x2ae03f){const _0x3aff0d=_0x4f3698;let {unitID:_0x1c3d44,memberID:_0x56200f,textRanges:_0x41c9fd}=_0x2ae03f,_0x332eb0=cn(_0x41c9fd);if(_0x332eb0==='')return;let _0x117d49={'unitID':_0x1c3d44,'memberID':_0x56200f,'selection':_0x332eb0};this[_0x3aff0d(0x367)]['next'](_0x117d49);}};let dn=class extends _0x2d8708{get[_0x4f3698(0x18d)](){const _0x2f9ab2=_0x4f3698;return this[_0x2f9ab2(0x25c)]['getValue']();}get[_0x4f3698(0x2d3)](){const _0x39f7ed=_0x4f3698;return this[_0x39f7ed(0x30a)]['getValue']();}constructor(_0x5e0b42,_0x4b28b4,_0x2fb402,_0x37da9c,_0x14711c,_0x443ca7,_0x501ae6,_0x4010b6,_0x3919e0){const _0x59bf0a=_0x4f3698;super(),this[_0x59bf0a(0x39a)]=_0x5e0b42,this['_session']=_0x4b28b4,this[_0x59bf0a(0x370)]=_0x2fb402,this['_colorAssignService']=_0x37da9c,this[_0x59bf0a(0x1a2)]=_0x14711c,this[_0x59bf0a(0x2fc)]=_0x443ca7,this['_transformService']=_0x501ae6,this[_0x59bf0a(0x366)]=_0x4010b6,this[_0x59bf0a(0x378)]=_0x3919e0,G(this,_0x59bf0a(0x1f7),!0x1),G(this,_0x59bf0a(0x372),!0x1),G(this,_0x59bf0a(0x25c),new _0x5a0bca(new Map())),G(this,_0x59bf0a(0x28a),this[_0x59bf0a(0x25c)][_0x59bf0a(0x2f6)]()),G(this,_0x59bf0a(0x30a),new _0x5a0bca([])),G(this,_0x59bf0a(0x23f),this[_0x59bf0a(0x30a)][_0x59bf0a(0x2af)](_0x4ee250(0x12c))),G(this,_0x59bf0a(0x2e0),_0x2d6517(_0xd6c39=>{const _0x5857a3=_0x59bf0a;let _0x4f79b5={'eventID':_0x18d6f7[_0x5857a3(0x1a0)],'data':{'unitID':this['unitID'],'memberID':this[_0x5857a3(0x1d0)][_0x5857a3(0x193)](),'selection':cn(_0xd6c39)}};this[_0x5857a3(0x1d0)][_0x5857a3(0x232)](_0x4f79b5,this['unitID']);},0x64));}[_0x4f3698(0x359)](){const _0x54f2e9=_0x4f3698;super[_0x54f2e9(0x359)](),this['_cursorInfo$'][_0x54f2e9(0x1c8)](new Map()),this[_0x54f2e9(0x25c)][_0x54f2e9(0x2cb)](),this[_0x54f2e9(0x30a)]['next']([]),this['_roomMembers$']['complete']();}[_0x4f3698(0x1d7)](){const _0xc9cd8d=_0x4f3698;this[_0xc9cd8d(0x372)]||(this[_0xc9cd8d(0x372)]=!0x0,this[_0xc9cd8d(0x1d0)][_0xc9cd8d(0x291)][_0xc9cd8d(0x2af)](_0x506d73(this[_0xc9cd8d(0x18c)]))[_0xc9cd8d(0x1f2)](_0x54a354=>{const _0x3e2bd2=_0xc9cd8d;_0x54a354===_0x3c46b2['ONLINE']?this['_toggleOnline']():this[_0x3e2bd2(0x259)]();}),this[_0xc9cd8d(0x1d0)][_0xc9cd8d(0x2fe)][_0xc9cd8d(0x2af)](_0x506d73(this[_0xc9cd8d(0x18c)]))[_0xc9cd8d(0x1f2)](_0x1713c7=>{const _0x313cf6=_0xc9cd8d;let _0x1eb29f=_0x1713c7['eventID'];_0x1eb29f===_0x18d6f7[_0x313cf6(0x1a0)]&&this[_0x313cf6(0x340)](_0x1713c7),_0x1eb29f===_0x18d6f7['USERS_LEAVE']&&this['_onCursorDelete'](_0x1713c7);}),this['disposeWithMe'](this['_commandService'][_0xc9cd8d(0x25a)](_0x43fa1e=>{const _0x494ac5=_0xc9cd8d;let _0x23b4df=_0x43fa1e['params'];_0x23b4df!=null&&this[_0x494ac5(0x1f7)]&&_0x43fa1e['id']===_0x2f5396['id']&&_0x23b4df['unitId']===this[_0x494ac5(0x39a)]&&_0x23b4df[_0x494ac5(0x236)]===!0x1&&_0x23b4df['ranges']['length']>0x0&&this[_0x494ac5(0x2e0)](_0x23b4df[_0x494ac5(0x2f4)]);})),this[_0xc9cd8d(0x2fc)][_0xc9cd8d(0x2a6)][_0xc9cd8d(0x2af)](_0x506d73(this[_0xc9cd8d(0x18c)]))[_0xc9cd8d(0x1f2)](_0x383d3e=>{const _0x30aba5=_0xc9cd8d;if((_0x383d3e==null?void 0x0:_0x383d3e[_0x30aba5(0x39a)])!==this[_0x30aba5(0x39a)])return;let _0x28f436={'eventID':_0x18d6f7[_0x30aba5(0x1a0)],'data':_0x383d3e};this[_0x30aba5(0x340)](_0x28f436);}),this[_0xc9cd8d(0x2c6)](this[_0xc9cd8d(0x378)][_0xc9cd8d(0x25a)](_0x3c3f6d=>{const _0x1681a9=_0xc9cd8d;if(_0x3c3f6d[_0x1681a9(0x386)]==null)return;let _0xefa12c=_0x3c3f6d['params'];if(_0x3c3f6d['id']!==_0x3504f7['id']||_0xefa12c[_0x1681a9(0x201)]!==this['unitID'])return;let _0x45dca7={'id':_0x1681a9(0x278),'params':_0xefa12c},_0xbe42eb=this[_0x1681a9(0x18d)];for(let [_0x5909bc,_0x3ae28b]of _0xbe42eb){let _0x277382={'id':_0x1681a9(0x278),'params':{'unitId':this[_0x1681a9(0x39a)],'actions':null,'textRanges':_0x3ae28b[_0x1681a9(0x2f4)]}},_0x1ecafb=this[_0x1681a9(0x2be)]['transformMutation'](_0x45dca7,_0x277382,!0x1);if(_0x28c447(_0x1ecafb))throw _0x1ecafb['error'];_0xbe42eb[_0x1681a9(0x2da)](_0x5909bc,{..._0x3ae28b,'ranges':_0x1ecafb[_0x1681a9(0x24c)]['params'][_0x1681a9(0x228)]});}queueMicrotask(()=>{const _0x3dbbe6=_0x1681a9;this[_0x3dbbe6(0x25c)][_0x3dbbe6(0x1c8)](_0xbe42eb);});})));}['_onCursorUpdate'](_0x47ac41){const _0x3dd497=_0x4f3698;var _0x1fff92,_0x5c9ff2;let {memberID:_0x30bff2,selection:_0x1677f2}=_0x47ac41[_0x3dd497(0x363)],_0x5bfe7b=ln(_0x1677f2),_0x1ca0ac=(_0x1fff92=(_0x5c9ff2=this[_0x3dd497(0x1a2)]['getMember'](this[_0x3dd497(0x39a)],_0x30bff2))==null?void 0x0:_0x5c9ff2[_0x3dd497(0x38c)])==null?_0x3dd497(0x240):_0x1fff92,_0x840786={'color':this[_0x3dd497(0x327)]['assignAColorForMemberID'](_0x30bff2),'name':_0x1ca0ac,'ranges':_0x5bfe7b},_0x396274=this['cursorInfo'];_0x396274['set'](_0x30bff2,_0x840786),this[_0x3dd497(0x25c)][_0x3dd497(0x1c8)](_0x396274);}[_0x4f3698(0x388)](_0x33cc9b){const _0x509014=_0x4f3698;let {memberID:_0xdf492f}=_0x33cc9b['data'],_0x438595=this[_0x509014(0x18d)];_0x438595[_0x509014(0x229)](_0xdf492f),this['_cursorInfo$'][_0x509014(0x1c8)](_0x438595);}[_0x4f3698(0x1d1)](){const _0x23749c=_0x4f3698;var _0x93565c;if(this['_online']=!0x0,((_0x93565c=this[_0x23749c(0x366)]['getFocusedUnit']())==null?void 0x0:_0x93565c[_0x23749c(0x219)]())!==this['unitID'])return;let _0x1452c0=this['_injector']['get'](_0x1eff78)['getDocRanges']();Array['isArray'](_0x1452c0)&&_0x1452c0[_0x23749c(0x2ac)]>0x0&&this[_0x23749c(0x2e0)](_0x1452c0);}['_toggleOffline'](){const _0x44a6e5=_0x4f3698;this[_0x44a6e5(0x1f7)]=!0x1;}};dn=q([K(0x2,_0x3a3495(_0xd0a80)),K(0x3,_0x3a3495(sn)),K(0x4,_0x3a3495(_0x5d2148)),K(0x5,_0x3a3495(un)),K(0x6,_0x36830a),K(0x7,_0x299f08),K(0x8,_0x475d4a)],dn);const fn=()=>{let _0x3380a8=[],_0x278b50=!0x1;return _0x433964=>{const _0x2c977f=_0x501c;_0x3380a8[_0x2c977f(0x277)](_0x433964),_0x278b50||(_0x278b50=!0x0,setTimeout(()=>{const _0x2bfd68=_0x2c977f;_0x3380a8[_0x2bfd68(0x251)](_0x347267=>_0x347267()),_0x3380a8=[],_0x278b50=!0x1;}));};};let pn=class extends _0x2d8708{get[_0x4f3698(0x18d)](){const _0x42718b=_0x4f3698;return this[_0x42718b(0x25c)][_0x42718b(0x23e)]();}get[_0x4f3698(0x2d3)](){const _0x523dc6=_0x4f3698;return this[_0x523dc6(0x30a)]['getValue']();}constructor(_0xa3d359,_0x129591,_0x34e61d,_0x444f75,_0x7c2b53,_0x160412,_0x32ce61,_0x1cb195){const _0x4d73b8=_0x4f3698;super(),this[_0x4d73b8(0x39a)]=_0xa3d359,this[_0x4d73b8(0x1d0)]=_0x129591,this['_injector']=_0x34e61d,this[_0x4d73b8(0x327)]=_0x444f75,this[_0x4d73b8(0x1a2)]=_0x7c2b53,this[_0x4d73b8(0x366)]=_0x160412,this[_0x4d73b8(0x378)]=_0x32ce61,this['_refRangeService']=_0x1cb195,G(this,_0x4d73b8(0x1f7),!0x1),G(this,_0x4d73b8(0x372),!0x1),G(this,_0x4d73b8(0x25c),new _0x5a0bca(new Map())),G(this,'cursorInfo$',this[_0x4d73b8(0x25c)]['asObservable']()),G(this,_0x4d73b8(0x30a),new _0x5a0bca([])),G(this,_0x4d73b8(0x23f),this[_0x4d73b8(0x30a)][_0x4d73b8(0x2af)](_0x4ee250(0x12c))),G(this,_0x4d73b8(0x2e0),_0x2d6517((_0x279869,_0x39a6f3)=>{const _0x5ec4b0=_0x4d73b8;let _0x34483f={'eventID':_0x18d6f7['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x5ec4b0(0x1d0)][_0x5ec4b0(0x193)](),'selection':_0x138433(_0x279869,_0x39a6f3[_0x5ec4b0(0x1dd)])}};this[_0x5ec4b0(0x1d0)][_0x5ec4b0(0x232)](_0x34483f,this[_0x5ec4b0(0x39a)]);},0x64));}['dispose'](){const _0x344727=_0x4f3698;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x344727(0x25c)]['complete'](),this[_0x344727(0x30a)][_0x344727(0x1c8)]([]),this[_0x344727(0x30a)][_0x344727(0x2cb)]();}[_0x4f3698(0x1d7)](){const _0x20b005=_0x4f3698;this['_init']||(this['_init']=!0x0,this[_0x20b005(0x1d0)][_0x20b005(0x291)][_0x20b005(0x2af)](_0x506d73(this[_0x20b005(0x18c)]))['subscribe'](_0x2f70b7=>{const _0x17e08f=_0x20b005;_0x2f70b7===_0x3c46b2['ONLINE']?this[_0x17e08f(0x1d1)]():this['_toggleOffline']();}),this['_session'][_0x20b005(0x2fe)][_0x20b005(0x2af)](_0x506d73(this[_0x20b005(0x18c)]))[_0x20b005(0x1f2)](_0x44c4f6=>{const _0x8fd939=_0x20b005;let _0x2df4ca=_0x44c4f6[_0x8fd939(0x30d)];_0x2df4ca===_0x18d6f7[_0x8fd939(0x1a0)]&&this[_0x8fd939(0x340)](_0x44c4f6),_0x2df4ca===_0x18d6f7[_0x8fd939(0x255)]&&this[_0x8fd939(0x388)](_0x44c4f6);}),this['_onRefRangeChange'](),this[_0x20b005(0x2c6)](this[_0x20b005(0x378)][_0x20b005(0x25a)](_0x45ebc7=>{const _0x126cff=_0x20b005;if(this['_online']&&_0x45ebc7['id']===_0x1df243['id']&&_0x45ebc7[_0x126cff(0x386)]['unitId']===this[_0x126cff(0x39a)]){let _0x807535=_0x45ebc7[_0x126cff(0x386)];this[_0x126cff(0x2e0)](_0x807535[_0x126cff(0x350)],_0x807535[_0x126cff(0x35b)][0x0]);}})));}[_0x4f3698(0x340)](_0x1206a6){const _0x27d566=_0x4f3698;var _0x33424b,_0x497b78;let {memberID:_0x4ff6e3,selection:_0x55b175}=_0x1206a6[_0x27d566(0x363)],{sheetName:_0x12761c,range:_0x353c87}=_0x23a1fc(_0x55b175),_0x2cf1f4={'name':(_0x33424b=(_0x497b78=this[_0x27d566(0x1a2)]['getMember'](this[_0x27d566(0x39a)],_0x4ff6e3))==null?void 0x0:_0x497b78[_0x27d566(0x38c)])==null?_0x27d566(0x240):_0x33424b,'range':this[_0x27d566(0x22f)](_0x12761c,_0x353c87),'sheetID':_0x12761c,'color':this[_0x27d566(0x327)][_0x27d566(0x2c5)](_0x4ff6e3),'selection':_0x55b175},_0x57a88e=this[_0x27d566(0x18d)];_0x57a88e['set'](_0x4ff6e3,_0x2cf1f4),this[_0x27d566(0x25c)][_0x27d566(0x1c8)](_0x57a88e);}[_0x4f3698(0x388)](_0x5ee77d){const _0xc7839a=_0x4f3698;let {memberID:_0x3ff488}=_0x5ee77d[_0xc7839a(0x363)],_0x21e8b9=this[_0xc7839a(0x18d)];_0x21e8b9[_0xc7839a(0x229)](_0x3ff488),this[_0xc7839a(0x25c)][_0xc7839a(0x1c8)](_0x21e8b9);}[_0x4f3698(0x22f)](_0x195dc7,_0xb1ba5a){const _0xb4fc9e=_0x4f3698;var _0x31d516;let _0xf4cc19=(_0x31d516=this[_0xb4fc9e(0x366)][_0xb4fc9e(0x352)](this[_0xb4fc9e(0x39a)]))==null||(_0x31d516=_0x31d516[_0xb4fc9e(0x37e)](_0x195dc7))==null?void 0x0:_0x31d516[_0xb4fc9e(0x18f)]();return(_0xf4cc19==null?void 0x0:_0xf4cc19['find'](_0x3abdc1=>_0x5794ce['contains'](_0x3abdc1,_0xb1ba5a)))||_0xb1ba5a;}[_0x4f3698(0x27c)](){const _0x14b3a6=_0x4f3698;let _0x2bc697=new _0x97351b(),_0x2faedc=fn(),_0x44f511=()=>{const _0x4e9e29=_0x501c;_0x2bc697[_0x4e9e29(0x359)]();let _0x811f09=(_0x2752b9,_0x449351,_0x49ec7,_0x33eef7)=>{const _0xd60f7e=_0x4e9e29;let _0x2f3b28=[];switch(_0x2752b9['id']){case _0x48cbdd[_0xd60f7e(0x19b)]:_0x2f3b28=_0x2f0aa7(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x33e)]:_0x2f3b28=_0x3119fa(_0x2752b9,_0x33eef7);break;case _0x48cbdd['InsertColCommandId']:_0x2f3b28=_0x673428(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x2b5)]:_0x2f3b28=_0x34436c(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x1cd)]:_0x2f3b28=_0xfb1dc5(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x199)]:_0x2f3b28=_0x25f7b8(_0x2752b9,_0x33eef7);break;case _0x48cbdd['MoveRangeCommandId']:_0x2f3b28=_0x355e03(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x1f0)]:_0x2f3b28=_0x35be56(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x329)]:_0x2f3b28=_0x3acad2(_0x2752b9,_0x33eef7);break;}let _0x39ae5e=_0x4ea892(_0x2f3b28,_0x33eef7),_0x551ff9=this[_0xd60f7e(0x18d)]['get'](_0x449351);if(_0x551ff9&&_0x39ae5e){let _0x308b39={..._0x551ff9,'range':_0x39ae5e};this[_0xd60f7e(0x18d)][_0xd60f7e(0x2da)](_0x449351,_0x308b39),_0x2faedc(()=>{const _0x3dea55=_0xd60f7e;let _0x2763be=this['_refRangeService'][_0x3dea55(0x1c6)](_0x39ae5e,_0x307e70=>(_0x2763be[_0x3dea55(0x359)](),_0x811f09(_0x307e70,_0x449351,_0x49ec7,_0x39ae5e)));_0x2bc697[_0x3dea55(0x2e3)](_0x2763be);});}return{'redos':[],'undos':[]};};this[_0x4e9e29(0x18d)][_0x4e9e29(0x251)]((_0x195644,_0x2ad164)=>{const _0x3abf6c=_0x4e9e29;let {range:_0x9c34c4,sheetID:_0x100a03}=_0x195644,_0x1d1c18=this[_0x3abf6c(0x1b8)][_0x3abf6c(0x1c6)](_0x9c34c4,_0x4b1ed1=>(_0x1d1c18[_0x3abf6c(0x359)](),_0x811f09(_0x4b1ed1,_0x2ad164,_0x100a03,_0x9c34c4)));_0x2bc697[_0x3abf6c(0x2e3)](_0x1d1c18);});};this[_0x14b3a6(0x2c6)](_0x305b33(this[_0x14b3a6(0x25c)][_0x14b3a6(0x1f2)](()=>{_0x44f511();})));}[_0x4f3698(0x1d1)](){const _0x1591c5=_0x4f3698;var _0x20aa24,_0x53e180;if(this['_online']=!0x0,((_0x20aa24=this[_0x1591c5(0x366)][_0x1591c5(0x2e4)]())==null?void 0x0:_0x20aa24[_0x1591c5(0x219)]())!==this[_0x1591c5(0x39a)])return;let _0x24692c=(_0x53e180=this[_0x1591c5(0x370)]['get'](_0x5dfef0)['getCurrentSelections']())==null?void 0x0:_0x53e180[0x0],_0x3585eb=this['_univerInstanceService']['getCurrentUnitOfType'](_0x38e1b9[_0x1591c5(0x35a)])['getActiveSheet']();_0x24692c&&_0x3585eb&&this[_0x1591c5(0x2e0)](_0x3585eb[_0x1591c5(0x1be)](),_0x24692c);}['_toggleOffline'](){const _0x27281a=_0x4f3698;this[_0x27281a(0x1f7)]=!0x1;}};pn=q([K(0x2,_0x3a3495(_0xd0a80)),K(0x3,_0x3a3495(sn)),K(0x4,_0x3a3495(_0x5d2148)),K(0x5,_0x299f08),K(0x6,_0x475d4a),K(0x7,_0x3a3495(_0x4de819))],pn);let X=class extends _0x2d8708{constructor(_0x31194c,_0x124c2f,_0x1ee3f1){const _0xd01cd1=_0x4f3698;super(),this['_univerInstanceService']=_0x31194c,this[_0xd01cd1(0x370)]=_0x124c2f,this[_0xd01cd1(0x262)]=_0x1ee3f1,G(this,_0xd01cd1(0x246),new Map()),G(this,_0xd01cd1(0x213),new _0x17e895()),this[_0xd01cd1(0x372)]();}['dispose'](){const _0xe53ee9=_0x4f3698;super[_0xe53ee9(0x359)](),this[_0xe53ee9(0x213)][_0xe53ee9(0x2cb)](),this['_entities'][_0xe53ee9(0x251)](_0x583b2b=>_0x583b2b[_0xe53ee9(0x359)]());}[_0x4f3698(0x28f)](_0x3a7997){const _0x460e1a=_0x4f3698;return this['_entities'][_0x460e1a(0x2cc)](_0x3a7997)?this[_0x460e1a(0x246)]['get'](_0x3a7997)[_0x460e1a(0x28a)]:this[_0x460e1a(0x213)]['pipe'](_0x318dbb(_0x50c3dd=>_0x50c3dd[_0x460e1a(0x39a)]===_0x3a7997),_0x4881ed(_0x1300b3=>_0x1300b3[_0x460e1a(0x28a)]));}['_init'](){const _0x2f403d=_0x4f3698;this[_0x2f403d(0x366)][_0x2f403d(0x394)](_0x38e1b9[_0x2f403d(0x35a)])[_0x2f403d(0x2af)](_0x506d73(this[_0x2f403d(0x18c)]))[_0x2f403d(0x1f2)](async _0x2a207c=>{const _0x42defa=_0x2f403d;let _0x51b628=_0x2a207c['unit'][_0x42defa(0x219)](),_0x534772=await this[_0x42defa(0x34a)](_0x51b628);this['_entityInit$'][_0x42defa(0x1c8)](_0x534772),this[_0x42defa(0x246)][_0x42defa(0x2da)](_0x51b628,_0x534772);}),this[_0x2f403d(0x366)][_0x2f403d(0x394)](_0x38e1b9[_0x2f403d(0x221)])[_0x2f403d(0x2af)](_0x506d73(this['dispose$']))[_0x2f403d(0x2af)](_0x318dbb(_0x3aa579=>!_0x3aa579[_0x2f403d(0x1e8)][_0x2f403d(0x219)]()['startsWith']('__')))['subscribe'](async _0x2a4cb7=>{const _0xbbd42=_0x2f403d;let {unit:_0x12c895}=_0x2a4cb7,_0x2e5397=_0x12c895[_0xbbd42(0x219)](),_0x59d0f5=await this[_0xbbd42(0x2c1)](_0x2e5397);this[_0xbbd42(0x213)]['next'](_0x59d0f5),this['_entities'][_0xbbd42(0x2da)](_0x2e5397,_0x59d0f5);}),_0x599df5(this[_0x2f403d(0x366)][_0x2f403d(0x2f9)](_0x38e1b9[_0x2f403d(0x221)]),this[_0x2f403d(0x366)][_0x2f403d(0x2f9)](_0x38e1b9[_0x2f403d(0x35a)]))['pipe'](_0x506d73(this['dispose$']))[_0x2f403d(0x1f2)](_0x339186=>{const _0x30a3ee=_0x2f403d;let _0x143435=_0x339186[_0x30a3ee(0x219)](),_0x10bc0a=this[_0x30a3ee(0x246)][_0x30a3ee(0x1d3)](_0x143435);_0x10bc0a&&(_0x10bc0a['dispose'](),this[_0x30a3ee(0x246)][_0x30a3ee(0x229)](_0x143435));});}async[_0x4f3698(0x34a)](_0x244b87){const _0x1853b6=_0x4f3698;let _0x4a67c5=await this['_collabSessionService'][_0x1853b6(0x373)](_0x244b87),_0x1c3c16=this[_0x1853b6(0x370)][_0x1853b6(0x34b)](pn,_0x244b87,_0x4a67c5);return _0x1c3c16[_0x1853b6(0x1d7)](),_0x1c3c16;}async[_0x4f3698(0x2c1)](_0x3a61b0){const _0x659916=_0x4f3698;let _0x5210c7=await this[_0x659916(0x262)]['requireSession'](_0x3a61b0),_0x3fbd9b=this[_0x659916(0x370)]['createInstance'](dn,_0x3a61b0,_0x5210c7);return _0x3fbd9b['init'](),_0x3fbd9b;}};X=q([K(0x0,_0x299f08),K(0x1,_0x3a3495(_0xd0a80)),K(0x2,_0x3a3495(_0x295742))],X);function mn(_0x138773,_0xccc95d){const _0x3de7d8=_0x4f3698;var _0x897876,_0x2b9ee1,_0x153fa1;let {radius:_0x30513e,width:_0x398c8a,height:_0x7ca106}=_0xccc95d;_0x30513e=(_0x897876=_0x30513e)==null?0x0:_0x897876,_0x398c8a=(_0x2b9ee1=_0x398c8a)==null?0x1e:_0x2b9ee1,_0x7ca106=(_0x153fa1=_0x7ca106)==null?0x1e:_0x153fa1;let _0x338c13=0x0,_0x234f30=0x0,_0x17e42b=0x0;_0x338c13=_0x234f30=_0x17e42b=Math['min'](_0x30513e,_0x398c8a/0x2,_0x7ca106/0x2),_0x138773[_0x3de7d8(0x36d)](),_0x138773[_0x3de7d8(0x1ff)](_0x338c13,0x0),_0x138773[_0x3de7d8(0x274)](_0x398c8a-_0x234f30,0x0),_0x138773[_0x3de7d8(0x29e)](_0x398c8a-_0x234f30,_0x234f30,_0x234f30,Math['PI']*0x3/0x2,0x0,!0x1),_0x138773[_0x3de7d8(0x274)](_0x398c8a,_0x7ca106-_0x17e42b),_0x138773[_0x3de7d8(0x29e)](_0x398c8a-_0x17e42b,_0x7ca106-_0x17e42b,_0x17e42b,0x0,Math['PI']/0x2,!0x1),_0x138773['lineTo'](0x0,_0x7ca106),_0x138773['lineTo'](0x0,_0x338c13),_0x138773['arc'](_0x338c13,_0x338c13,_0x338c13,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x138773['closePath'](),_0xccc95d['fill']&&(_0x138773['save'](),_0x138773[_0x3de7d8(0x1f6)]=_0xccc95d[_0x3de7d8(0x2ed)],_0xccc95d[_0x3de7d8(0x1e0)]===_0x3de7d8(0x39d)?_0x138773[_0x3de7d8(0x2ed)](_0x3de7d8(0x39d)):_0x138773['fill'](),_0x138773[_0x3de7d8(0x217)]());}var hn=class e extends _0x30d899{constructor(_0x13546c,_0x28a692){const _0x1bf314=_0x4f3698;super(_0x13546c,_0x28a692),G(this,_0x1bf314(0x2b9),void 0x0),G(this,_0x1bf314(0x20f),void 0x0),this[_0x1bf314(0x2b9)]=_0x28a692==null?void 0x0:_0x28a692[_0x1bf314(0x2b9)],this[_0x1bf314(0x20f)]=_0x28a692==null?void 0x0:_0x28a692['text'];}static['drawWith'](_0x1ed143,_0x37b654){const _0x1f0e7b=_0x4f3698;let {text:_0x5d8744,color:_0x4edf8c}=_0x37b654;_0x1ed143[_0x1f0e7b(0x1e5)](),_0x1ed143[_0x1f0e7b(0x2b1)]=_0x1f0e7b(0x253);let _0x53e549=_0x1ed143[_0x1f0e7b(0x1e4)](_0x5d8744)[_0x1f0e7b(0x26b)];if(mn(_0x1ed143,{'height':0x14,'radius':0x4,'width':Math[_0x1f0e7b(0x3a5)](_0x53e549+0x8,0xc8),'fill':_0x4edf8c,'evented':!0x1}),_0x1ed143[_0x1f0e7b(0x1f6)]=_0x1f0e7b(0x358),_0x53e549>0xc0){let _0x53d59d='',_0xc30863=0x0;for(let _0xb6246b of _0x5d8744){let _0x5e09fc=_0x1ed143['measureText'](_0xb6246b)[_0x1f0e7b(0x26b)];if(_0xc30863+_0x5e09fc<=0xc0-_0x1ed143['measureText']('...')[_0x1f0e7b(0x26b)])_0x53d59d+=_0xb6246b,_0xc30863+=_0x5e09fc;else{_0x53d59d+=_0x1f0e7b(0x399);break;}}_0x1ed143['fillText'](_0x53d59d,0x4,0xf);}else _0x1ed143[_0x1f0e7b(0x26e)](_0x5d8744,0x4,0xf);_0x1ed143[_0x1f0e7b(0x217)]();}[_0x4f3698(0x2f5)](_0x2cc0dd){const _0x50268b=_0x4f3698;e[_0x50268b(0x2c7)](_0x2cc0dd,this);}};const gn=_0x4f3698(0x19d);var _n=class{constructor(_0x5435dc,_0x1b5f16,_0x331e33,_0x48df4c){const _0xc9f8e7=_0x4f3698;this[_0xc9f8e7(0x337)]=_0x5435dc,this['_scene']=_0x1b5f16,this[_0xc9f8e7(0x390)]=_0x331e33,this['_document']=_0x48df4c,G(this,_0xc9f8e7(0x2e2),[]),G(this,_0xc9f8e7(0x35f),null),G(this,_0xc9f8e7(0x371),null),G(this,_0xc9f8e7(0x33a),null),G(this,_0xc9f8e7(0x304),null),G(this,_0xc9f8e7(0x2d5),null),this['_render']();}set['_hover'](_0x454842){const _0x199eed=_0x4f3698;_0x454842?(this[_0x199eed(0x33a)]&&this[_0x199eed(0x33a)][_0x199eed(0x345)](),this[_0x199eed(0x371)]&&this[_0x199eed(0x371)][_0x199eed(0x2dc)]()):(this[_0x199eed(0x33a)]&&this['_anchorDot'][_0x199eed(0x2dc)](),this[_0x199eed(0x371)]&&this[_0x199eed(0x371)][_0x199eed(0x345)]());}[_0x4f3698(0x359)](){const _0x8c0cd6=_0x4f3698;for(let _0x140449 of this['_shapes'])_0x140449[_0x8c0cd6(0x359)]();this[_0x8c0cd6(0x371)]&&this[_0x8c0cd6(0x371)]['dispose'](),this['_anchorDot']&&this[_0x8c0cd6(0x33a)][_0x8c0cd6(0x359)](),this[_0x8c0cd6(0x35f)]&&this[_0x8c0cd6(0x35f)][_0x8c0cd6(0x359)](),this[_0x8c0cd6(0x2d5)]&&this['_eventUnsubscribe']();}[_0x4f3698(0x296)](){const _0x4f32ae=_0x4f3698;let {_docSkeleton:_0x3c556c,_document:_0x260dab}=this,{color:_0x2ed274,name:_0xc7d77,ranges:_0x540a4a}=this[_0x4f32ae(0x337)],_0x2a9613=_0x260dab[_0x4f32ae(0x2bb)](),{docsLeft:_0x3bb93d,docsTop:_0x3d6c95}=_0x2a9613,_0x5e4841=new _0x22692b(_0x2a9613,_0x3c556c);for(let {startOffset:_0x24b0cf,endOffset:_0x255c96,rangeType:_0x1a76dd,segmentId:_0x5b5930,segmentPage:_0x280a3a,collapsed:_0x43de30,isActive:_0x34152d}of _0x540a4a){let _0x171339=_0x3c556c[_0x4f32ae(0x26c)](_0x24b0cf,!0x0,_0x5b5930,_0x280a3a),_0x3fdfe3=_0x3c556c[_0x4f32ae(0x26c)](_0x255c96,!0x0,_0x5b5930,_0x280a3a);if(_0x3fdfe3==null&&(_0x3fdfe3=_0x3c556c[_0x4f32ae(0x26c)](_0x255c96-0x1,!0x1,_0x5b5930,_0x280a3a)),_0x34152d){let {contentBoxPointGroup:_0x5311c2}=_0x5e4841[_0x4f32ae(0x343)](_0x3fdfe3,_0x3fdfe3);if(_0x5311c2['length']===0x0)continue;this[_0x4f32ae(0x1b2)](_0x2ed274,_0x5311c2,_0x3bb93d,_0x3d6c95,_0xc7d77),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x171339&&_0x3fdfe3){if(_0x1a76dd===_0xf9eaf4[_0x4f32ae(0x204)]){var _0x32caf8;let {pointGroup:_0x5cd79a}=(_0x32caf8=new _0x2db32d(_0x2a9613,_0x3c556c)[_0x4f32ae(0x343)](_0x171339,_0x3fdfe3))==null?{}:_0x32caf8;if(_0x5cd79a==null||_0x5cd79a[_0x4f32ae(0x2ac)]===0x0)continue;this['_drawRectRange'](_0x2ed274,_0x5cd79a,_0x3bb93d,_0x3d6c95);}else{if(!_0x43de30){let {borderBoxPointGroup:_0x15e412}=_0x5e4841[_0x4f32ae(0x343)](_0x171339,_0x3fdfe3);if(_0x15e412[_0x4f32ae(0x2ac)]===0x0)continue;this[_0x4f32ae(0x20d)](_0x2ed274,_0x15e412,_0x3bb93d,_0x3d6c95);}}}}}[_0x4f3698(0x1b2)](_0x174448,_0x422673,_0x5e4003,_0x3f1149,_0x1d8928){const _0x34bbb7=_0x4f3698;let {left:_0xfa6486,top:_0x49d3c2,height:_0x40a02c}=this['_getAnchorBounding'](_0x422673),_0x3de79b=1.5/this['_getScale'](),_0x5803a5=new _0x457c5d(gn+_0x56a70c(0x6),{'left':_0xfa6486+_0x5e4003-_0x3de79b,'top':_0x49d3c2+_0x3f1149,'height':_0x40a02c,'width':1.5,'fill':_0x174448||_0x5d813f(_0x5ca256[_0x34bbb7(0x2ee)],0x0),'strokeWidth':_0x3de79b,'stroke':_0x34bbb7(0x31d),'evented':!0x0});this['_anchor']=_0x5803a5,this[_0x34bbb7(0x30e)][_0x34bbb7(0x331)](_0x5803a5,_0x424c1f);let _0x477082=new _0x457c5d(gn+_0x56a70c(0x6),{'left':_0xfa6486+_0x5e4003-_0x3de79b,'top':_0x49d3c2+_0x3f1149-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x174448||_0x5d813f(_0x5ca256[_0x34bbb7(0x2ee)],0x0),'strokeWidth':0x0,'stroke':_0x174448||_0x5d813f(_0x5ca256[_0x34bbb7(0x2ee)],0x0),'evented':!0x1});this[_0x34bbb7(0x33a)]=_0x477082,this[_0x34bbb7(0x30e)][_0x34bbb7(0x331)](_0x477082,_0x424c1f);let _0x3f68f4=new hn(gn+_0x56a70c(0x6),{'left':_0xfa6486+_0x5e4003-_0x3de79b,'top':_0x49d3c2+_0x3f1149-0x14,'text':_0x1d8928,'color':_0x174448});this['_textBubble']=_0x3f68f4,this['_scene'][_0x34bbb7(0x331)](_0x3f68f4,_0x424c1f),this[_0x34bbb7(0x258)]=!0x1;}['_handleHover'](){const _0x57a1b2=_0x4f3698;let _0x4efe73=this[_0x57a1b2(0x35f)][_0x57a1b2(0x31c)][_0x57a1b2(0x377)](()=>{const _0x47335b=_0x57a1b2;this[_0x47335b(0x258)]=!0x0;}),_0x5b0947=this['_anchor'][_0x57a1b2(0x1f8)]['subscribeEvent'](()=>{const _0x43b400=_0x57a1b2;this[_0x43b400(0x304)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{_0x4efe73['unsubscribe'](),_0x5b0947['unsubscribe']();};}['_drawTextRange'](_0x22055b,_0x1f8402,_0x2f30be,_0x54c96e){const _0x58c967=_0x4f3698;let _0x280ccd=0.2,_0x1cf9f1=new _0x5f4a6f(_0x22055b)[_0x58c967(0x2cf)](_0x280ccd)[_0x58c967(0x32b)](),_0x10ea2a=new _0x9150e2('collab-text-range-'+_0x56a70c(0x6),{'pointsGroup':_0x1f8402,'fill':_0x1cf9f1||_0x5d813f(_0x5ca256[_0x58c967(0x2ee)],_0x280ccd),'left':_0x2f30be,'top':_0x54c96e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x58c967(0x2e2)]['push'](_0x10ea2a),this[_0x58c967(0x30e)][_0x58c967(0x331)](_0x10ea2a,_0x424c1f);}[_0x4f3698(0x1ed)](_0x5060be,_0x472c1a,_0x35cad9,_0x59ca54){const _0x3e8ae3=_0x4f3698;let _0x25d9d8=0.2,_0x59bc0e=new _0x5f4a6f(_0x5060be)[_0x3e8ae3(0x2cf)](_0x25d9d8)[_0x3e8ae3(0x32b)](),_0x2ac63c=new _0x9150e2('collab-rect-range-'+_0x56a70c(0x6),{'pointsGroup':_0x472c1a,'fill':_0x59bc0e||_0x5d813f(_0x5ca256['black'],_0x25d9d8),'left':_0x35cad9,'top':_0x59ca54,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3e8ae3(0x2e2)][_0x3e8ae3(0x277)](_0x2ac63c),this[_0x3e8ae3(0x30e)]['addObject'](_0x2ac63c,_0x424c1f);}[_0x4f3698(0x1d4)](_0x25c0e6){let _0x489130=_0x25c0e6[0x0],_0x3c9918=_0x489130[0x0],_0x212065=_0x489130[0x2],{x:_0x3222cf,y:_0x300294}=_0x3c9918,{x:_0x361976,y:_0x12ed32}=_0x212065;return{'left':_0x3222cf,'top':_0x300294,'width':_0x361976-_0x3222cf,'height':_0x12ed32-_0x300294};}[_0x4f3698(0x22b)](){const _0x10c51b=_0x4f3698;let {scaleX:_0x461773,scaleY:_0x103f10}=this[_0x10c51b(0x30e)][_0x10c51b(0x21d)]();return Math['max'](_0x461773,_0x103f10);}};let vn=class extends _0x2d8708{constructor(_0x3c8d5b,_0x49778f,_0x35d66d,_0xc4bc48,_0x22c7ae){const _0x1e630a=_0x4f3698;super(),this['_context']=_0x3c8d5b,this[_0x1e630a(0x244)]=_0x49778f,this[_0x1e630a(0x32a)]=_0x35d66d,this['_commandService']=_0xc4bc48,this[_0x1e630a(0x2a8)]=_0x22c7ae,G(this,_0x1e630a(0x26d),[]),G(this,_0x1e630a(0x312),[]),this[_0x1e630a(0x372)]();}[_0x4f3698(0x372)](){const _0x5b9f9a=_0x4f3698;let _0x41aa6c=this['_context'][_0x5b9f9a(0x201)],_0x3f827a=this[_0x5b9f9a(0x244)];this[_0x5b9f9a(0x2c6)](_0x1738da([this['_collabCursorController'][_0x5b9f9a(0x28f)](_0x41aa6c),this[_0x5b9f9a(0x2a8)]['currentTheme$']])[_0x5b9f9a(0x2af)](_0x66062e(([_0x4298ac,_0x143c19])=>({'skeleton':_0x3f827a[_0x5b9f9a(0x1aa)](),'cursors':[..._0x4298ac[_0x5b9f9a(0x344)]()][_0x5b9f9a(0x36a)](_0x478dd8=>({..._0x478dd8,'color':this[_0x5b9f9a(0x2a8)][_0x5b9f9a(0x247)](_0x478dd8[_0x5b9f9a(0x2b9)])}))})))[_0x5b9f9a(0x1f2)](_0xbaf165=>{const _0x230a7d=_0x5b9f9a;if(this['_removeCollabCursors'](),_0xbaf165){let {skeleton:_0x3a8e38,cursors:_0x354f96}=_0xbaf165;this[_0x230a7d(0x1ba)](_0x3a8e38,_0x354f96);}})),this[_0x5b9f9a(0x215)](),this[_0x5b9f9a(0x33d)]();}[_0x4f3698(0x1ba)](_0x133499,_0x1f99d5){const _0x4530a9=_0x4f3698;let {scene:_0x2910c7,mainComponent:_0x295048}=this['_context'],_0x372c89=_0x1f99d5[_0x4530a9(0x1fc)](_0x4a222f=>new _n(_0x4a222f,_0x2910c7,_0x133499,_0x295048));this[_0x4530a9(0x26d)]=_0x372c89,this[_0x4530a9(0x312)]=_0x1f99d5;}[_0x4f3698(0x19a)](){const _0x234383=_0x4f3698;this[_0x234383(0x391)]();let {scene:_0x1d8edd,mainComponent:_0x173741}=this[_0x234383(0x396)],_0x27742b=this[_0x234383(0x244)][_0x234383(0x1aa)](),_0x144662=this[_0x234383(0x312)][_0x234383(0x1fc)](_0x5321a3=>new _n(_0x5321a3,_0x1d8edd,_0x27742b,_0x173741));this[_0x234383(0x26d)]=_0x144662;}[_0x4f3698(0x391)](){const _0x50c52d=_0x4f3698;this[_0x50c52d(0x26d)][_0x50c52d(0x251)](_0x17a0a1=>_0x17a0a1[_0x50c52d(0x359)]()),this['_cursorShapes']=[];}[_0x4f3698(0x33d)](){const _0x136d27=_0x4f3698;let _0x5f2cfc=[_0x54470e['id']];this[_0x136d27(0x2c6)](this[_0x136d27(0x378)][_0x136d27(0x25a)](_0x5f4347=>{const _0x209b68=_0x136d27;_0x5f2cfc[_0x209b68(0x303)](_0x5f4347['id'])&&_0x5f4347['params']['unitId']===this[_0x209b68(0x396)][_0x209b68(0x201)]&&this[_0x209b68(0x19a)]();}));}['_initResize'](){const _0x2c0294=_0x4f3698;this[_0x2c0294(0x2c6)](_0x3ad556(this[_0x2c0294(0x396)][_0x2c0294(0x1bd)][_0x2c0294(0x2a1)])[_0x2c0294(0x2af)](_0x5bdf60(_0x29b2fe=>_0x29b2fe[_0x2c0294(0x1d9)]===_0x4df35f[_0x2c0294(0x1a6)]),_0x4c8a96(0x10))['subscribe'](()=>{const _0x1410af=_0x2c0294;this[_0x1410af(0x19a)]();}));}};vn=q([K(0x1,_0x3a3495(_0xa6e1bc)),K(0x2,_0x3a3495(X)),K(0x3,_0x475d4a),K(0x4,_0x3a3495(_0x52719a))],vn);var yn=class extends _0x30d899{constructor(_0x2cc58e,_0x45dcab){const _0x244e00=_0x4f3698;if(super(_0x2cc58e,_0x45dcab),G(this,_0x244e00(0x2fb),void 0x0),G(this,_0x244e00(0x385),!0x1),G(this,_0x244e00(0x2a5),void 0x0),G(this,_0x244e00(0x220),''),G(this,_0x244e00(0x266),'top'),G(this,_0x244e00(0x2d6),void 0x0),G(this,_0x244e00(0x1f1),void 0x0),G(this,_0x244e00(0x317),void 0x0),G(this,_0x244e00(0x231),0x4),G(this,_0x244e00(0x321),void 0x0),G(this,'_blinkIntervalTimer',void 0x0),G(this,_0x244e00(0x20a),!0x0),G(this,_0x244e00(0x18b),0x0),_0x45dcab){var _0x4cdfc7;if(this[_0x244e00(0x1ab)](_0x45dcab),_0x45dcab['highlight']&&((_0x4cdfc7=_0x45dcab[_0x244e00(0x216)])==null?this[_0x244e00(0x231)]:_0x4cdfc7)){var _0x208e40;this[_0x244e00(0x268)]((_0x208e40=_0x45dcab[_0x244e00(0x216)])==null?this[_0x244e00(0x231)]:_0x208e40);}}this['onPointerEnter$'][_0x244e00(0x377)](()=>this[_0x244e00(0x1ab)]({'hovered':!0x0})),this['onPointerLeave$'][_0x244e00(0x377)](()=>this[_0x244e00(0x1ab)]({'hovered':!0x1}));}[_0x4f3698(0x31a)](_0x21857e){const _0x5ce4e0=_0x4f3698;this[_0x5ce4e0(0x18b)]=_0x21857e;}[_0x4f3698(0x1ab)](_0x2bc806){const _0x60b780=_0x4f3698;var _0x3be727,_0x11c4a3,_0x5d3d92,_0xfc51dc,_0x1aba87,_0x3e5a01,_0x15f101;this[_0x60b780(0x2fb)]=(_0x3be727=_0x2bc806['color'])==null?this[_0x60b780(0x2fb)]:_0x3be727,this[_0x60b780(0x385)]=(_0x11c4a3=_0x2bc806[_0x60b780(0x293)])==null?this['_hovered']:_0x11c4a3,this['_range']=(_0x5d3d92=_0x2bc806[_0x60b780(0x1dd)])==null?this[_0x60b780(0x2a5)]:_0x5d3d92,this[_0x60b780(0x220)]=(_0xfc51dc=_0x2bc806[_0x60b780(0x38c)])==null?this[_0x60b780(0x220)]:_0xfc51dc,this['_labelPosition']=(_0x1aba87=_0x2bc806[_0x60b780(0x25b)])==null?this[_0x60b780(0x266)]:_0x1aba87,this[_0x60b780(0x2d6)]=(_0x3e5a01=_0x2bc806['backgroundColor'])==null?this[_0x60b780(0x2d6)]:_0x3e5a01,this[_0x60b780(0x1f1)]=(_0x15f101=_0x2bc806[_0x60b780(0x310)])==null?this[_0x60b780(0x1f1)]:_0x15f101,_0x2bc806[_0x60b780(0x216)]!==void 0x0&&(this[_0x60b780(0x231)]=_0x2bc806[_0x60b780(0x216)]),_0x2bc806[_0x60b780(0x3a6)]!==void 0x0&&(this[_0x60b780(0x317)]=_0x2bc806[_0x60b780(0x3a6)]),_0x2bc806[_0x60b780(0x298)]!==void 0x0&&(this[_0x60b780(0x18b)]=_0x2bc806[_0x60b780(0x298)]),this[_0x60b780(0x2d1)]({'width':_0x2bc806[_0x60b780(0x26b)],'height':_0x2bc806[_0x60b780(0x332)]});}[_0x4f3698(0x271)](_0x21b393){const _0x1e0ec9=_0x4f3698;let {row:_0x3a5830,column:_0x51c254}=_0x21b393;if(_0x3a5830>=this[_0x1e0ec9(0x2a5)]['startRow']&&_0x3a5830<=this[_0x1e0ec9(0x2a5)][_0x1e0ec9(0x29f)]&&_0x51c254>=this[_0x1e0ec9(0x2a5)][_0x1e0ec9(0x33b)]&&_0x51c254<=this[_0x1e0ec9(0x2a5)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x4f3698(0x268)](_0xc2db2d){const _0x41f981=_0x4f3698;this['_stopBlinking'](),this[_0x41f981(0x20a)]=!0x0,this[_0x41f981(0x2a3)]=window['setInterval'](()=>{const _0x4a1ab7=_0x41f981;this['_isBlinkVisible']=!this[_0x4a1ab7(0x20a)],this[_0x4a1ab7(0x1b1)](!0x0);},0x1f4),this[_0x41f981(0x321)]=window[_0x41f981(0x2b8)](()=>{const _0x397b1f=_0x41f981;this[_0x397b1f(0x287)](),this[_0x397b1f(0x20a)]=!0x0,this[_0x397b1f(0x1b1)](!0x0);},_0xc2db2d*0x3e8);}['_stopBlinking'](){const _0x17eae2=_0x4f3698;this[_0x17eae2(0x2a3)]&&(window[_0x17eae2(0x2ff)](this['_blinkIntervalTimer']),this[_0x17eae2(0x2a3)]=void 0x0),this[_0x17eae2(0x321)]&&(window[_0x17eae2(0x260)](this[_0x17eae2(0x321)]),this['_blinkTimer']=void 0x0);}['triggerDblclick'](_0x277453){return!0x1;}[_0x4f3698(0x359)](){const _0x816085=_0x4f3698;this[_0x816085(0x287)](),super[_0x816085(0x359)]();}[_0x4f3698(0x2f5)](_0x2b36a4){const _0x45a0cc=_0x4f3698;let _0x363696=this['_color'],_0x40b8cf=this[_0x45a0cc(0x2d6)];if(this[_0x45a0cc(0x317)]&&!this[_0x45a0cc(0x20a)]&&(_0x363696=this[_0x45a0cc(0x34c)](this['_color']),_0x40b8cf=this[_0x45a0cc(0x2d6)]?this['_getLighterColor'](this[_0x45a0cc(0x2d6)]):void 0x0),_0x457c5d[_0x45a0cc(0x2c7)](_0x2b36a4,{'width':this[_0x45a0cc(0x26b)],'height':this[_0x45a0cc(0x332)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x363696,'evented':!0x1,'fill':_0x40b8cf}),this[_0x45a0cc(0x385)]||this[_0x45a0cc(0x1f1)]){var _0x40cbd1;_0x2b36a4[_0x45a0cc(0x1e5)](),_0x2b36a4[_0x45a0cc(0x1c9)](0x1,0x0,0x0,0x1,this[_0x45a0cc(0x26b)],(this[_0x45a0cc(0x266)]==='bottom'?0x0:-0x14)+((_0x40cbd1=this[_0x45a0cc(0x18b)])==null?0x0:_0x40cbd1)),hn[_0x45a0cc(0x2c7)](_0x2b36a4,{'text':this[_0x45a0cc(0x220)],'color':_0x363696}),_0x2b36a4[_0x45a0cc(0x217)]();}}['_getLighterColor'](_0x45a403){const _0x53e49b=_0x4f3698;return _0x45a403[_0x53e49b(0x32f)]('#')?_0x53e49b(0x2ba)+Number[_0x53e49b(0x368)](_0x45a403['slice'](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x45a403[_0x53e49b(0x206)](0x3,0x5),0x10)+',\x20'+Number[_0x53e49b(0x368)](_0x45a403[_0x53e49b(0x206)](0x5,0x7),0x10)+_0x53e49b(0x25f):_0x45a403[_0x53e49b(0x32f)](_0x53e49b(0x309))?_0x45a403[_0x53e49b(0x2b7)](/[\d.]+\)$/g,_0x53e49b(0x28d)):_0x45a403['startsWith'](_0x53e49b(0x292))?_0x45a403['replace'](_0x53e49b(0x292),_0x53e49b(0x309))[_0x53e49b(0x2b7)](')',_0x53e49b(0x25f)):_0x45a403;}};let bn=class extends _0x2d8708{constructor(_0x45c7fb,_0x3048c2,_0x23f070,_0x9cd91a){const _0x3b48c7=_0x4f3698;super(),this[_0x3b48c7(0x396)]=_0x45c7fb,this[_0x3b48c7(0x31f)]=_0x3048c2,this[_0x3b48c7(0x32a)]=_0x23f070,this['_themeService']=_0x9cd91a,G(this,_0x3b48c7(0x312),new Set()),G(this,_0x3b48c7(0x335),null),G(this,_0x3b48c7(0x1fd),null),this[_0x3b48c7(0x372)]();}[_0x4f3698(0x372)](){const _0x34af4d=_0x4f3698;this[_0x34af4d(0x31f)]['currentSkeleton$']['pipe'](_0x119f17(this['dispose$']),_0x5a5de0(_0x4f9631=>{const _0x35cd3c=_0x34af4d;if(_0x4f9631){let _0x10a996=_0x4f9631[_0x35cd3c(0x384)];return _0x1738da(this[_0x35cd3c(0x32a)][_0x35cd3c(0x28f)](this['_context']['unitId']),this[_0x35cd3c(0x2a8)][_0x35cd3c(0x34f)])[_0x35cd3c(0x2af)](_0x66062e(([_0x1cd479,_0x255117])=>{let _0x1f2a8d=new Map();return _0x1cd479['forEach']((_0x419346,_0x14a9b6)=>{const _0x3a4894=_0x501c;if(_0x419346['sheetID']===_0x10a996){let _0x1b8029={..._0x419346};_0x1b8029[_0x3a4894(0x2b9)]=this['_themeService'][_0x3a4894(0x247)](_0x419346[_0x3a4894(0x2b9)]),_0x1f2a8d['set'](_0x14a9b6,_0x1b8029);}}),{'skeleton':_0x4f9631,'cursors':_0x1f2a8d};}));}return _0x3ef51b({'skeleton':null,'cursors':new Map()});}))[_0x34af4d(0x1f2)](({skeleton:_0x289202,cursors:_0x4a8ca9})=>{const _0x49b5e0=_0x34af4d;this['_removeCollabCursors'](),_0x289202&&this[_0x49b5e0(0x1ba)](_0x289202,_0x4a8ca9);}),this[_0x34af4d(0x2c6)](this[_0x34af4d(0x31f)][_0x34af4d(0x36f)][_0x34af4d(0x2af)](_0x119f17(this[_0x34af4d(0x18c)]))[_0x34af4d(0x1f2)](_0xbce744=>{const _0x23f7da=_0x34af4d;var _0x329b8c;if(_0xbce744==null)return;(_0x329b8c=this['_pointerMoveDisposable'])==null||_0x329b8c[_0x23f7da(0x281)](),this[_0x23f7da(0x1fd)]=null;let {skeleton:_0xe7633b}=_0xbce744,{scene:_0x405cb3}=this[_0x23f7da(0x396)];this[_0x23f7da(0x1fd)]=_0x405cb3['onPointerMove$'][_0x23f7da(0x377)](_0x2d6517(_0x3cc5d3=>{const _0xbf49fe=_0x23f7da;var _0x21486b,_0x2b3bf0;let {offsetX:_0x1f294e,offsetY:_0x4926f4}=_0x3cc5d3,{x:_0x2ee5fb,y:_0x315665}=_0x405cb3['getRelativeToViewportCoord'](_0x2d9a69[_0xbf49fe(0x354)]([_0x1f294e,_0x4926f4])),{scaleX:_0x23051e,scaleY:_0x26ab87}=_0x405cb3['getAncestorScale'](),_0x4c0a82=_0x405cb3[_0xbf49fe(0x1bf)](_0x3c4818['VIEW_MAIN']),_0x5aec73=_0x405cb3[_0xbf49fe(0x286)](_0x2d9a69[_0xbf49fe(0x354)]([_0x2ee5fb,_0x315665]),_0x4c0a82),_0x3097f8=_0xe7633b[_0xbf49fe(0x38d)](_0x1f294e,_0x4926f4,_0x23051e,_0x26ab87,_0x5aec73);((_0x21486b=this[_0xbf49fe(0x335)])==null?void 0x0:_0x21486b['column'])===_0x3097f8[_0xbf49fe(0x2e9)]&&((_0x2b3bf0=this['_lastPointer'])==null?void 0x0:_0x2b3bf0[_0xbf49fe(0x263)])===_0x3097f8[_0xbf49fe(0x263)]||this['_cursors'][_0xbf49fe(0x251)](_0x326a14=>{const _0x538025=_0xbf49fe;_0x326a14[_0x538025(0x271)](_0x3097f8);});},0x64));})),this[_0x34af4d(0x2c6)](_0x305b33(()=>{const _0x24b107=_0x34af4d;var _0x5016c7;(_0x5016c7=this['_pointerMoveDisposable'])==null||_0x5016c7[_0x24b107(0x281)](),this[_0x24b107(0x1fd)]=null;}));}[_0x4f3698(0x1ba)](_0x4f2f1e,_0x183ad1){const _0x1c48a5=_0x4f3698;let _0x51f2d2=this[_0x1c48a5(0x31f)][_0x1c48a5(0x1e7)]();if(!_0x51f2d2)return;let _0x2d2771=this['_getSheetObject']();if(!_0x2d2771)return;this[_0x1c48a5(0x312)][_0x1c48a5(0x251)](_0x36cafc=>{const _0x4e39d8=_0x1c48a5;_0x36cafc[_0x4e39d8(0x1b1)]();});let {scene:_0x37a6bb}=_0x2d2771,_0x57b908=xn(Array[_0x1c48a5(0x27a)](_0x183ad1['values']()))[_0x1c48a5(0x1fc)](_0x445b09=>{const _0x42e5fe=_0x1c48a5;let {color:_0xa0d156,range:_0x2e4141,name:_0x2fe135,selection:_0x2fe7b8,sheetID:_0x3862de}=_0x445b09,{startColumn:_0x333edc,startRow:_0xff6973,endColumn:_0x328300,endRow:_0x2ccc8b}=_0x2e4141,_0x1feda3=_0x2a0576(_0xff6973,_0x333edc,_0x37a6bb,_0x51f2d2),_0x3b9c0a=_0x2a0576(_0x2ccc8b,_0x328300,_0x37a6bb,_0x51f2d2),{columnHeaderHeightAndMarginTop:_0x476b27}=_0x51f2d2,{startX:_0x35a3be,startY:_0x41844a}=_0x1feda3,{endX:_0x3797a3,endY:_0x292826}=_0x3b9c0a,_0x182912=_0x3797a3-_0x35a3be,_0x247602=_0x292826-_0x41844a;return new yn(_0x2fe135,{'labelPosition':_0x41844a-_0x476b27>=0x14?_0x42e5fe(0x2f7):_0x42e5fe(0x1b7),'sheetID':_0x3862de,'range':_0x2e4141,'color':_0xa0d156,'name':_0x2fe135,'selection':_0x2fe7b8,'left':_0x35a3be,'top':_0x41844a,'width':_0x182912,'height':_0x247602,'evented':!0x1,'zIndex':0x1389});});_0x37a6bb[_0x1c48a5(0x226)](_0x57b908,0x1),this[_0x1c48a5(0x312)]=new Set(_0x57b908);}[_0x4f3698(0x391)](){const _0x3e22de=_0x4f3698;var _0xdcf49;(_0xdcf49=this['_cursors'])==null||_0xdcf49[_0x3e22de(0x251)](_0x40a014=>_0x40a014[_0x3e22de(0x359)]());}[_0x4f3698(0x2ef)](){const _0x3a8643=_0x4f3698;return _0x5378e7(this[_0x3a8643(0x396)]['unit'],this[_0x3a8643(0x396)]);}};bn=q([K(0x1,_0x3a3495(_0x389d4c)),K(0x2,_0x3a3495(X)),K(0x3,_0x3a3495(_0x52719a))],bn);function _0x53b6(){const _0x1008f2=['univer-text-orange-500','_initEntityListener','getUnhiddenWorksheets','i18nKey','getVpScrollXYInfoByPosToVp','_stopBlinking','ticket','_updateURLWithCurrentState','cursorInfo$','clickable','decorate','0.2)','_handleHeartbeatEvent','getCollabCursors$','Enter','sessionStatus$','rgb','hovered','[Unhandled\x20Rejection]:\x20','reconnect','_render','_collaborationController','offsetY','PERMISSION_DENIED','executionId','override','imageSourceType','_disabled','arc','endRow','_localStorageService','onTransformChange$','source','_blinkIntervalTimer','setInterval','_range','collabCursorState$','@univerjs-pro/collaboration-client-ui','_themeService','_setupBeforeClosingHandler','with','constructor','length','runOnServer','registerRenderModule','pipe','currentUsage','font','onLocalMutation','icon','prototype','InsertRangeMoveDownCommandId','subunit','replace','setTimeout','color','rgba(','getOffsetConfig','transformStateCache','static','_transformService','entityInit$','_currentUsage','_startDocCollabCursor','then','popstate','_uiPartsService','assignAColorForMemberID','disposeWithMe','drawWith','JOIN_ROOM_FAILED','_handleJoinEvent','syncEditingCollabCursor','complete','has','runId','_selfUnitIDs','setAlpha','_logService','transformByState','CONFLICT','roomMembers','some','_eventUnsubscribe','_backgroundColor','socket$','5068943YsLQdx','div','set','_unitOnClients','show','_collaborationUIEventService','message','_localeService','_updateLocalCursor','reason','_shapes','add','getFocusedUnit','undoState','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','unshift','MUTATION','column','_handleLeaveEvent','getDocRanges','jiqing.500','fill','black','_getSheetObject','_cachedData','whenReady','uni.network.url-service','parse','ranges','_draw','asObservable','top','selection','getTypeOfUnitDisposed$','saveImage','_color','_syncEditingCollabCursorService','collaboration-client-ui.session.will-retry','event$','clearInterval','split','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_setFormulaLimitStatus','includes','_hideTimer','Loading','isActive','find','redoState','rgba','_roomMembers$','addClipboardHook','mutations','eventID','_scene','/run/','showText','_registerRenderDependencies','_cursors','setConfig','symbol','button','colorClass','_highlight','_assignedColors','unhandledrejection','setOffsetY','getCurrentTypeOfUnit$','onPointerEnter$','rgba(255,\x20255,\x20255,\x200.01)','memberID','_sheetSkeletonManagerService','registerBeforeClose','_blinkTimer','_colorIndex','_docTransformStateCacheService','_configService','createSocket','Success','_colorAssignService','_initCommandInterceptor','RemoveRowCommandId','_collabCursorController','toRgbString','_beforeCloseService','_instanceService','red.300','startsWith','deepClone','addObject','height','/universer-api/license/formula/limit/done','getItem','_lastPointer','423tCzJoN','_cursor','setParam','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_anchorDot','startColumn','_lastResponseTimestamp','_initCommandExecutedListener','DeleteRangeMoveUpCommandId','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_onCursorUpdate','collaboration-client-ui.collabStatus.fetchMiss','_createSocketURL','getRangePointData','values','hide','origin','_dataLoaderService','OTHER_CLIENT_EDITING','_uploadLog','_startSheetCollabCursor','createInstance','_getLighterColor','_docTransformIMECacheService','loadOfflineData','currentTheme$','subUnitId','_unitStatus','getUniverSheetInstance','27338IkJFsM','FromArray','SOCKET_FAILED','_setupSubUnitSync','_urlService','#FFF','dispose','UNIVER_SHEET','selections','saveOfflineData','application/json','univer-text-red-500','_anchor','_showGuardMessage','size','_scheduleClearOtherTimer','data','sessionTicket','packageName','_univerInstanceService','_collabCursorState$','parseInt','_registerDependencies','flatMap','_status$','390MHUonC','beginPath','getCurrentUnitOfType','currentSkeleton$','_injector','_textBubble','_init','requireSession','status$','location','stageInfo','subscribeEvent','_commandService','limitInfo','_getFormulaLimitStatus','_docSyncEditingCollabCursorService','3185YVSFNf','_saveTaskMap','getSheetBySheetId','getUnit','SYNCED','_notificationService','2420880IJjXNm','exhaustSavingTask','sheetId','_hovered','params','_checkCalculationAvailable','_onCursorDelete','bind','stage','getActiveSheet','name','getCellPositionByOffset','_docStateChangeManagerService','stringify','_docSkeleton','_removeCollabCursors','collaboration-client-ui.collaboration.single-unit.warning','_startCalculationLimit','getTypeOfUnitAdded$','_initUnhandledRejectionListener','_context','disableLocalCache','indicator','...','unitID','_scheduleHeartbeat','_send','evenodd','code','univer-text-blue-500','updateOfflineData','[LogService\x20Error]:\x20','_removeClearOtherTimer','AWAITING_WITH_PENDING','_collaborationSessionService','min','highlight','_hasFormulaInDirtyRanges','getStateCache','_offsetY','dispose$','cursorInfo','_transformHistoryAndStateStack','getMergeData','now','_imageIoService','OTHER_CLIENTS_EDITING','getMemberID','search','_initUserListener','transformMutation','/universer-api/license/formula/limit/start','collaboration-client-ui.permission.title','InsertRowCommandId','_refreshCollabCursors','DeleteRangeMoveLeftCommandId','m1Prime','collab-text-anchor-','activeSheet$','functionsExecutedState','UPDATE_CURSOR','setActiveRange','_memberService','releaseFormulaLimitUrl','transformRemoteChangeset','NO_OTHER_CLIENTS_EDITING','resize','version','post','onRendered','getSkeleton','setShapeProps','_initStatusComponent','_taskIds','polite','setItem','_ensureSubject','makeDirty','_drawAnchor','collaboration-client-ui.formula.calculation.unable','_id','_getSessionTicket','getConfig','bottom','_refRangeService','endColumn','_updateCollabCursors','_transformUndoRedoStack','status','engine','getSheetId','getViewport','actions','_initEvent','catch','loadUnit','body','_memberID','registerRefRange','1804806fLBPNR','next','transform','/universer-api/license/formula/limit/status','error','4476XBdJEP','InsertRangeMoveRightCommandId','getAllUnitsForType','_getSaveTimeout','_session','_toggleOnline','CLOSE_ROOM','get','_getAnchorBounding','editingUnit','replaceState','init','collaboration-client-ui.config','type','storage','_doCreateSocket','_revisionService','range','registerComponent','docStateChange$','fillRule','collaboration-client-ui.collabStatus.syncing','getUndoRedoMutationParamsCache','saveTaskMap','measureText','save','purple.300','getCurrentSkeleton','unit','12CpYfcB','Error','_releaseCalculationLimit','\x20at\x20','_drawRectRange','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_docTransformSelectionsService','RemoveColCommandId','_showText','subscribe','function','href','call','fillStyle','_online','onPointerLeave$','collaboration-client-ui.collabStatus.offline','shift','key','map','_pointerMoveDisposable','default','moveTo','_maxFormulaLimit','unitId','newValue','_heartbeatTimer','RECT','transformSelections','slice','AWAITING','_clearPolling','_saveCache','_isBlinkVisible','executeCommand','iterator','_drawTextRange','univer-transition-all\x20univer-duration-200','text','true','univer-border-none\x20univer-bg-transparent','string','_entityInit$','getRenderById','_initResize','highlightSecond','restore','getParam','getUnitId','NOT_COLLAB','_config','univer-m-0\x20univer-p-0','getAncestorScale','SOCKET_FAILED_RETRY','56menUaO','_name','UNIVER_DOC','collaboration-client-ui.session.connection-failed','_httpService','_messageService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','addObjects','\x20-\x20','textRanges','delete','_pollingInterval','_getScale','addEventListener','span','defineProperty','_getMergeRange','_clearOtherTimers','_highlightSecond','send','removeParam','_docClipboardService','stack','isEditing','_scheduleSaving','removeEventListener','univer-flex\x20univer-items-center\x20univer-justify-center','_updateSubUnitFromURLParams','_monkeyPatchLogService','all','1mLbBut','getValue','roomMembers$','Unknown\x20user','colno','108857BwBgcI','searchParams','_docSkeletonManagerService','unload','_entities','getColorFromTheme','addHandlerCallback','0.25.1','object','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','m2Prime','/universer-api/frontend/logs','transformMutationsWithChangeset','collaboration-client-ui.collabStatus.synced','setUndoRedoMutationParamsCache','forEach','filename','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','transformIMECache','USERS_LEAVE','lineno','Failed','_hover','_toggleOffline','onCommandExecuted','labelPosition','_cursorInfo$','_renderManagerService','tooltipKey',',\x200.2)','clearTimeout','_initStatusListener','_collabSessionService','row','_initDependencies','OFFLINE','_labelPosition','_initWindowErrorListener','_startBlinking','collaboration-client-ui.formula.calculation.waiting','_applyCommand','width','findNodePositionByCharIndex','_cursorShapes','fillText','toPrimitive','history','onMouseMove','urlChange$','toString','lineTo','collaboration-client-ui.collaboration.closeRoom','pulse','push','doc.mutation.rich-text-editing','SUCCESS','from','enableFrontendLog','_onRefRangeChange','Warning','_transformPreviousActiveRange','isArray','TEXT','unsubscribe'];_0x53b6=function(){return _0x1008f2;};return _0x53b6();}function xn(_0x48d36){const _0x3e1d74=_0x4f3698;let _0x11d9f6=new Map();return _0x48d36[_0x3e1d74(0x251)](_0x4fa309=>{const _0x462d35=_0x3e1d74;if(_0x11d9f6[_0x462d35(0x2cc)](_0x4fa309[_0x462d35(0x2f8)])){let _0xf62dc=_0x11d9f6[_0x462d35(0x1d3)](_0x4fa309[_0x462d35(0x2f8)]);_0xf62dc[_0x462d35(0x38c)]+=',\x20'+_0x4fa309[_0x462d35(0x38c)];}else _0x11d9f6[_0x462d35(0x2da)](_0x4fa309[_0x462d35(0x2f8)],_0x4fa309);}),Array[_0x3e1d74(0x27a)](_0x11d9f6['values']());}let Z=class extends _0x135205{constructor(_0x31adc8,_0xe9918f,_0x326ac4,_0x34b749,_0x38354c,_0x193b28){const _0x3e8324=_0x4f3698;super(),this[_0x3e8324(0x32c)]=_0x31adc8,this['_localCacheService']=_0xe9918f,this[_0x3e8324(0x2dd)]=_0x326ac4,this[_0x3e8324(0x224)]=_0x34b749,this[_0x3e8324(0x381)]=_0x38354c,this[_0x3e8324(0x2df)]=_0x193b28,this[_0x3e8324(0x2a9)](),this[_0x3e8324(0x1c1)]();}[_0x4f3698(0x2a9)](){const _0x5a7216=_0x4f3698;this[_0x5a7216(0x2c6)](this[_0x5a7216(0x32c)][_0x5a7216(0x320)](()=>{const _0x14ab75=_0x5a7216;if(this['_localCacheService'][_0x14ab75(0x1e3)][_0x14ab75(0x361)])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x4f3698(0x1c1)](){const _0x101de3=_0x4f3698;this[_0x101de3(0x2c6)](this[_0x101de3(0x2dd)][_0x101de3(0x2fe)][_0x101de3(0x1f2)](_0x5e8a1c=>{const _0x3d6098=_0x101de3;_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x348)]&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x27d)],'content':this['_localeService']['t'](_0x3d6098(0x392))}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x1d2)]&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da['Warning'],'content':this[_0x3d6098(0x2df)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x299)]&&this['_notificationService'][_0x3d6098(0x2dc)]({'title':this['_localeService']['t'](_0x3d6098(0x198)),'content':this['_localeService']['t']('collaboration-client-ui.permission.content'),'type':_0x3d6098(0x1cb),'duration':0x0}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x2d2)]&&this['_messageService'][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x1ea)],'content':this['_localeService']['t'](_0x3d6098(0x275))+'('+_0x5e8a1c[_0x3d6098(0x363)]+')'}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x2c8)]&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x27d)],'content':this['_localeService']['t'](_0x5e8a1c[_0x3d6098(0x363)]||'')}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x21e)]&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x27d)],'content':this[_0x3d6098(0x2df)]['t'](_0x3d6098(0x2fd))}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x355)]&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x1ea)],'content':this[_0x3d6098(0x2df)]['t'](_0x3d6098(0x222))}),_0x5e8a1c['id']===_0xcc4607['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x1ea)],'content':this[_0x3d6098(0x2df)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};Z=q([K(0x0,_0x1724e1),K(0x1,_0x346440),K(0x2,_0x3a3495(_0x522545)),K(0x3,_0x304c5a),K(0x4,_0x31a1f5),K(0x5,_0x3a3495(_0x2912dd))],Z);const Sn={};let Cn=class{constructor(_0x58fb38,_0x39a835){const _0x1aedc3=_0x4f3698;this[_0x1aedc3(0x2be)]=_0x58fb38,this[_0x1aedc3(0x25d)]=_0x39a835;}[_0x4f3698(0x254)](_0x3da0e8){const _0x4ba774=_0x4f3698;this[_0x4ba774(0x1bb)](_0x3da0e8),this[_0x4ba774(0x27e)](_0x3da0e8);}['transformRemoteChangeset'](_0x3fb319){const _0x435179=_0x4f3698;let {unitID:_0xe1687d}=_0x3fb319,{redoCache:_0x3e3d9f}=this[_0x435179(0x25d)][_0x435179(0x214)](_0xe1687d)[_0x435179(0x2aa)](_0xf0b0b6)[_0x435179(0x1e2)]();if(_0x3e3d9f[_0x435179(0x2ac)]===0x0)return _0x3fb319;let _0x19f2e2=_0x4cf666['deepClone'](_0x3fb319[_0x435179(0x30c)][0x0]);for(let _0x272147=0x0;_0x272147<_0x3e3d9f[_0x435179(0x2ac)];_0x272147++){let _0x45c8d4={'id':_0x435179(0x278),'params':{..._0x3e3d9f[_0x272147]}},_0x5c6d7a=this[_0x435179(0x2be)]['transformMutation'](_0x19f2e2,_0x45c8d4,!0x1);if(_0x28c447(_0x5c6d7a))throw _0x5c6d7a[_0x435179(0x1cb)];_0x19f2e2=_0x5c6d7a[_0x435179(0x19c)];}return{..._0x4cf666[_0x435179(0x330)](_0x3fb319),'mutations':[_0x19f2e2]};}[_0x4f3698(0x1bb)](_0x21aaac){const _0x7d940b=_0x4f3698;let {unitID:_0xf9f23b}=_0x21aaac,_0x23eb92=this[_0x7d940b(0x25d)][_0x7d940b(0x214)](_0xf9f23b)[_0x7d940b(0x2aa)](_0xf0b0b6),{undoCache:_0x25b7db,redoCache:_0x46ffd9}=_0x23eb92[_0x7d940b(0x1e2)]();if(_0x25b7db[_0x7d940b(0x2ac)]===0x0||_0x46ffd9[_0x7d940b(0x2ac)]===0x0)return;let _0x5cf7e1=[],_0x1f71de=[],_0x418b71=_0x4cf666[_0x7d940b(0x330)](_0x21aaac[_0x7d940b(0x30c)][0x0]),_0x1b5db6=_0x4cf666[_0x7d940b(0x330)](_0x21aaac[_0x7d940b(0x30c)][0x0]);for(let _0x4839d8=_0x25b7db[_0x7d940b(0x2ac)]-0x1;_0x4839d8>=0x0;_0x4839d8--){let _0x419292={'id':_0x7d940b(0x278),'params':{..._0x25b7db[_0x4839d8]}},_0x228955={'id':_0x7d940b(0x278),'params':{..._0x46ffd9[_0x4839d8]}},_0x33a83c=this[_0x7d940b(0x2be)][_0x7d940b(0x196)](_0x418b71,_0x419292,!0x1),_0x2b26b2=this[_0x7d940b(0x2be)][_0x7d940b(0x196)](_0x1b5db6,_0x228955,!0x1);if(_0x28c447(_0x33a83c))throw _0x33a83c[_0x7d940b(0x1cb)];if(_0x28c447(_0x2b26b2))throw _0x2b26b2['error'];_0x5cf7e1['unshift'](_0x33a83c[_0x7d940b(0x24c)]['params']),_0x1f71de[_0x7d940b(0x2e7)](_0x2b26b2[_0x7d940b(0x24c)][_0x7d940b(0x386)]),_0x418b71=_0x33a83c[_0x7d940b(0x19c)],_0x1b5db6=_0x2b26b2[_0x7d940b(0x19c)];}_0x23eb92[_0x7d940b(0x250)]({'undoCache':_0x5cf7e1,'redoCache':_0x1f71de});}['_transformPreviousActiveRange'](_0x2dfd7){const _0x3a86d8=_0x4f3698;let {unitID:_0x1d5038}=_0x2dfd7,_0x1ff75c=this[_0x3a86d8(0x25d)]['getRenderById'](_0x1d5038)[_0x3a86d8(0x2aa)](_0xf0b0b6),_0x4827c0=_0x1ff75c['getActiveRange']();if(_0x4827c0==null)return;let _0x27ef35=[{'id':_0x3a86d8(0x278),'params':{'unitId':_0x2dfd7[_0x3a86d8(0x39a)],'actions':null,'textRanges':[_0x4827c0]}}],_0x30399a=this[_0x3a86d8(0x2be)][_0x3a86d8(0x24e)](_0x2dfd7,_0x27ef35);if(!_0x1ab105(_0x30399a))throw _0x30399a[_0x3a86d8(0x1cb)];let _0x28aac8=_0x30399a['m2Prime'][0x0]['params'][_0x3a86d8(0x228)];Array[_0x3a86d8(0x27f)](_0x28aac8)&&_0x28aac8[_0x3a86d8(0x2ac)]&&_0x1ff75c[_0x3a86d8(0x1a1)](_0x28aac8[0x0]);}};Cn=q([K(0x0,_0x36830a),K(0x1,_0x5e34fe)],Cn);let wn=class{constructor(_0x441260,_0x54ba24,_0x294189){const _0x27e610=_0x4f3698;this[_0x27e610(0x370)]=_0x441260,this['_transformService']=_0x54ba24,this[_0x27e610(0x38e)]=_0x294189;}[_0x4f3698(0x2bc)](_0x3cc980){const _0x5e209f=_0x4f3698;this[_0x5e209f(0x18e)](_0x3cc980);}[_0x4f3698(0x1a4)](_0x4ca341){const _0x1a09bd=_0x4f3698;let {unitID:_0x239c7a}=_0x4ca341,{collaboration:_0x26c4a6}=this[_0x1a09bd(0x38e)][_0x1a09bd(0x18a)](_0x239c7a);if(_0x26c4a6[_0x1a09bd(0x2ac)]===0x0)return _0x4ca341;let _0x2bc472=_0x4cf666[_0x1a09bd(0x330)](_0x4ca341['mutations'][0x0]);for(let _0x265637=0x0;_0x265637<_0x26c4a6[_0x1a09bd(0x2ac)];_0x265637++){let _0x1a15c8={'id':_0x1a09bd(0x278),'params':{'unitId':_0x26c4a6[_0x265637][_0x1a09bd(0x201)],..._0x26c4a6[_0x265637][_0x1a09bd(0x308)]}},_0x44d6d5=this['_transformService'][_0x1a09bd(0x196)](_0x2bc472,_0x1a15c8,!0x1);if(_0x28c447(_0x44d6d5))throw _0x44d6d5[_0x1a09bd(0x1cb)];_0x2bc472=_0x44d6d5[_0x1a09bd(0x19c)];}return{..._0x4cf666[_0x1a09bd(0x330)](_0x4ca341),'mutations':[_0x2bc472]};}[_0x4f3698(0x18e)](_0x2b2ebe){const _0x28445c=_0x4f3698;let {unitID:_0x439529}=_0x2b2ebe,{history:_0x38dcda,collaboration:_0xd2b3a4}=this[_0x28445c(0x38e)][_0x28445c(0x18a)](_0x439529);if(_0x38dcda[_0x28445c(0x2ac)]===0x0&&_0xd2b3a4[_0x28445c(0x2ac)]===0x0)return;let _0x6c2e3=[],_0xb9a315=[],_0x401749=_0x4cf666['deepClone'](_0x2b2ebe[_0x28445c(0x30c)][0x0]),_0x5ab64f=_0x4cf666[_0x28445c(0x330)](_0x2b2ebe[_0x28445c(0x30c)][0x0]);for(let _0x416539=_0x38dcda[_0x28445c(0x2ac)]-0x1;_0x416539>=0x0;_0x416539--){let _0x585d8a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38dcda[_0x416539]['unitId'],..._0x38dcda[_0x416539][_0x28445c(0x2e5)]}},_0x1e1854={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38dcda[_0x416539][_0x28445c(0x201)],..._0x38dcda[_0x416539][_0x28445c(0x308)]}},_0x130a24=this[_0x28445c(0x2be)][_0x28445c(0x196)](_0x401749,_0x585d8a,!0x1),_0x22fee6=this[_0x28445c(0x2be)]['transformMutation'](_0x5ab64f,_0x1e1854,!0x1);if(_0x28c447(_0x130a24))throw _0x130a24[_0x28445c(0x1cb)];if(_0x28c447(_0x22fee6))throw _0x22fee6[_0x28445c(0x1cb)];_0x6c2e3[_0x28445c(0x2e7)]({..._0x38dcda[_0x416539],'undoState':_0x130a24[_0x28445c(0x24c)][_0x28445c(0x386)],'redoState':_0x22fee6[_0x28445c(0x24c)][_0x28445c(0x386)]}),_0x401749=_0x130a24['m1Prime'],_0x5ab64f=_0x22fee6['m1Prime'];}_0x401749=_0x4cf666['deepClone'](_0x2b2ebe[_0x28445c(0x30c)][0x0]),_0x5ab64f=_0x4cf666[_0x28445c(0x330)](_0x2b2ebe[_0x28445c(0x30c)][0x0]);for(let _0x50cfc7=_0xd2b3a4['length']-0x1;_0x50cfc7>=0x0;_0x50cfc7--){let _0x5e14f7={'id':_0x28445c(0x278),'params':{'unitId':_0xd2b3a4[_0x50cfc7][_0x28445c(0x201)],..._0xd2b3a4[_0x50cfc7]['undoState']}},_0x14af3d={'id':_0x28445c(0x278),'params':{'unitId':_0xd2b3a4[_0x50cfc7][_0x28445c(0x201)],..._0xd2b3a4[_0x50cfc7][_0x28445c(0x308)]}},_0x29cd37=this[_0x28445c(0x2be)][_0x28445c(0x196)](_0x401749,_0x5e14f7,!0x1),_0x341152=this['_transformService'][_0x28445c(0x196)](_0x5ab64f,_0x14af3d,!0x1);if(_0x28c447(_0x29cd37))throw _0x29cd37[_0x28445c(0x1cb)];if(_0x28c447(_0x341152))throw _0x341152[_0x28445c(0x1cb)];_0xb9a315[_0x28445c(0x2e7)]({..._0xd2b3a4[_0x50cfc7],'undoState':_0x29cd37[_0x28445c(0x24c)]['params'],'redoState':_0x341152[_0x28445c(0x24c)][_0x28445c(0x386)]}),_0x401749=_0x29cd37[_0x28445c(0x19c)],_0x5ab64f=_0x341152[_0x28445c(0x19c)];}this[_0x28445c(0x38e)]['setStateCache'](_0x439529,{'history':_0x6c2e3,'collaboration':_0xb9a315});}};wn=q([K(0x0,_0x3a3495(_0xd0a80)),K(0x1,_0x36830a),K(0x2,_0x3a3495(_0x1d3cc9))],wn);let Tn=class{constructor(_0x50c6d2,_0x262ba2){const _0x5510f3=_0x4f3698;this['_injector']=_0x50c6d2,this[_0x5510f3(0x2be)]=_0x262ba2;}[_0x4f3698(0x205)](_0x215c61){const _0x5dfd7e=_0x4f3698;var _0x59ce87;let _0x12db7f=this['_injector']['get'](_0x1eff78),_0x373e53=(_0x59ce87=_0x12db7f[_0x5dfd7e(0x2eb)]())==null?[]:_0x59ce87;if(_0x373e53[_0x5dfd7e(0x2ac)]===0x0)return;let _0x257600=_0x215c61[_0x5dfd7e(0x39a)],_0x17c191=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x257600,'actions':null,'textRanges':_0x373e53}}],_0x58e629=this[_0x5dfd7e(0x2be)][_0x5dfd7e(0x24e)](_0x215c61,_0x17c191);if(!_0x1ab105(_0x58e629))throw _0x58e629[_0x5dfd7e(0x1cb)];let _0x4880dc=_0x58e629[_0x5dfd7e(0x24c)][0x0][_0x5dfd7e(0x386)][_0x5dfd7e(0x228)];Array[_0x5dfd7e(0x27f)](_0x4880dc)&&_0x4880dc[_0x5dfd7e(0x2ac)]&&_0x12db7f['replaceDocRanges'](_0x4880dc,{'unitId':_0x257600,'subUnitId':_0x257600},!0x1);}};Tn=q([K(0x0,_0x3a3495(_0xd0a80)),K(0x1,_0x36830a)],Tn);function _0x501c(_0x5490c6,_0x296aae){_0x5490c6=_0x5490c6-0x18a;const _0x53b672=_0x53b6();let _0x501c58=_0x53b672[_0x5490c6];return _0x501c58;}let En=class extends _0x135205{constructor(_0x48857d,_0xc9b89d,_0x4f35f3,_0x243f45,_0x187b56,_0x2a7bce,_0x412349,_0x2bf4a8){const _0x5185e3=_0x4f3698;super(),this[_0x5185e3(0x38e)]=_0x48857d,this['_collaborationController']=_0xc9b89d,this[_0x5185e3(0x34d)]=_0x4f35f3,this['_docTransformStateCacheService']=_0x243f45,this[_0x5185e3(0x1ef)]=_0x187b56,this[_0x5185e3(0x37b)]=_0x2a7bce,this[_0x5185e3(0x224)]=_0x412349,this['_localeService']=_0x2bf4a8,G(this,_0x5185e3(0x36b),new _0x5a0bca(_0x33faa6[_0x5185e3(0x21a)])),this[_0x5185e3(0x283)]();}[_0x4f3698(0x283)](){const _0x2a813a=_0x4f3698;this[_0x2a813a(0x2c6)](this[_0x2a813a(0x297)][_0x2a813a(0x2bf)][_0x2a813a(0x1f2)](_0x1f8502=>{const _0x255afa=_0x2a813a;let _0x35dc65=this[_0x255afa(0x38e)][_0x255afa(0x1df)]['subscribe'](_0x1588ef=>{const _0x12d921=_0x255afa;if(_0x1588ef==null)return;let {unitId:_0x3ba9a9,redoState:_0x4cc488,commandId:_0x4d7a68}=_0x1588ef;if(_0x3ba9a9!==_0x1f8502[_0x12d921(0x39a)])return;let _0x2d2f3f={'id':_0x4d7a68,'type':_0xce570f[_0x12d921(0x2e8)],'params':{'unitId':_0x3ba9a9,'actions':_0x4cc488[_0x12d921(0x1c0)],'textRanges':null}};_0x1f8502[_0x12d921(0x2b2)](_0x2d2f3f);});_0x1f8502[_0x255afa(0x2c6)](_0x35dc65),_0x1f8502 instanceof _0x3c4914&&_0x1f8502[_0x255afa(0x248)]({'onTransformIME':_0x33b654=>this['_docTransformIMECacheService'][_0x255afa(0x254)](_0x33b654),'onTransformState':_0x21a303=>this[_0x255afa(0x323)][_0x255afa(0x2bc)](_0x21a303),'onTransformSelections':_0x3f160c=>this['_docTransformSelectionsService'][_0x255afa(0x205)](_0x3f160c),'onSyncEditingCollabCursor':_0x100d53=>this['_docSyncEditingCollabCursorService'][_0x255afa(0x2ca)](_0x100d53),'onTransformRemoteChangesetByIMECache':_0x2bab10=>this[_0x255afa(0x34d)]['transformRemoteChangeset'](_0x2bab10),'onTransformRemoteChangesetByStateCache':_0x48e4ad=>this[_0x255afa(0x323)][_0x255afa(0x1a4)](_0x48e4ad)});}));}};En=q([K(0x0,_0x3a3495(_0x1d3cc9)),K(0x1,_0x3a3495(_0x32bb3a)),K(0x2,_0x3a3495(Cn)),K(0x3,_0x3a3495(wn)),K(0x4,_0x3a3495(Tn)),K(0x5,_0x3a3495(un)),K(0x6,_0x304c5a),K(0x7,_0x3a3495(_0x2912dd))],En);let Dn=class extends _0x135205{constructor(_0x3ccb38,_0x4f02ce,_0x29d4e2,_0xd3eda4){const _0x484739=_0x4f3698;super(),this['_injector']=_0x3ccb38,this['_httpService']=_0x4f02ce,this[_0x484739(0x2d0)]=_0x29d4e2,this[_0x484739(0x3a4)]=_0xd3eda4,G(this,_0x484739(0x1c5),void 0x0),this['_init']();}[_0x4f3698(0x372)](){const _0x7eafdf=_0x4f3698;this['_initWindowErrorListener'](),this[_0x7eafdf(0x395)](),this[_0x7eafdf(0x23b)](),this[_0x7eafdf(0x195)]();}[_0x4f3698(0x195)](){const _0x2b4a5e=_0x4f3698;this[_0x2b4a5e(0x2c6)](this[_0x2b4a5e(0x3a4)][_0x2b4a5e(0x2d7)][_0x2b4a5e(0x1f2)](_0x154a83=>{const _0x1bc939=_0x2b4a5e;this[_0x1bc939(0x1c5)]=_0x154a83==null?void 0x0:_0x154a83[_0x1bc939(0x31e)];}));}[_0x4f3698(0x267)](){const _0x518a8c=_0x4f3698;let _0x42f8e2=_0x1e7f0b=>{const _0x347028=_0x501c;var _0xf7154a;this[_0x347028(0x349)](_0x347028(0x1cb),'[Window\x20Error]:\x20'+_0x1e7f0b[_0x347028(0x2de)]+_0x347028(0x1ec)+_0x1e7f0b[_0x347028(0x252)]+':'+_0x1e7f0b[_0x347028(0x256)]+':'+_0x1e7f0b[_0x347028(0x241)]+'\x0a'+(((_0xf7154a=_0x1e7f0b[_0x347028(0x1cb)])==null?void 0x0:_0xf7154a[_0x347028(0x235)])||''));};window['addEventListener'](_0x518a8c(0x1cb),_0x42f8e2),this[_0x518a8c(0x2c6)](()=>{const _0x1aecdc=_0x518a8c;window['removeEventListener'](_0x1aecdc(0x1cb),_0x42f8e2);});}[_0x4f3698(0x395)](){const _0x4ba611=_0x4f3698;let _0x4b402b=_0x476f7f=>{const _0x40cb5c=_0x501c;this[_0x40cb5c(0x349)](_0x40cb5c(0x1cb),_0x40cb5c(0x294)+_0x476f7f[_0x40cb5c(0x2e1)]);};window[_0x4ba611(0x22c)](_0x4ba611(0x319),_0x4b402b),this[_0x4ba611(0x2c6)](()=>{const _0x42b069=_0x4ba611;window[_0x42b069(0x238)](_0x42b069(0x319),_0x4b402b);});}[_0x4f3698(0x23b)](){const _0x3f197f=_0x4f3698;let _0xdd5a93=this[_0x3f197f(0x2d0)][_0x3f197f(0x1cb)][_0x3f197f(0x389)](this[_0x3f197f(0x2d0)]);this[_0x3f197f(0x2d0)][_0x3f197f(0x1cb)]=(..._0x405112)=>{const _0x5b90ed=_0x3f197f;let _0x4749bc=_0x405112[_0x5b90ed(0x1fc)](_0x118183=>_0x118183 instanceof Error?_0x118183[_0x5b90ed(0x2de)]+'\x0a'+_0x118183[_0x5b90ed(0x235)]:String(_0x118183))['join']('\x20');this[_0x5b90ed(0x349)](_0x5b90ed(0x1cb),_0x5b90ed(0x3a1)+_0x4749bc),_0xdd5a93(..._0x405112);},this[_0x3f197f(0x2c6)](()=>{const _0x13f67f=_0x3f197f;this[_0x13f67f(0x2d0)][_0x13f67f(0x1cb)]=_0xdd5a93;});}[_0x4f3698(0x349)](_0x57d5bc,_0x539f06){const _0x434f16=_0x4f3698;try{let _0x31702a={'userId':this['_memberID'],'logLabel':_0x57d5bc,'content':_0x539f06};this[_0x434f16(0x223)][_0x434f16(0x1a8)](_0x434f16(0x24d),{'body':_0x31702a})[_0x434f16(0x1c2)](()=>{});}catch{}}};Dn=q([K(0x0,_0x3a3495(_0xd0a80)),K(0x1,_0x3a3495(_0x19b345)),K(0x2,_0x533956),K(0x3,_0x3a3495(_0x295742))],Dn);function On(_0x25e4fb){const _0x3207f0=_0x4f3698;var _0xd56142,_0x5eba53;let _0x1e0b16=(_0xd56142=_0x25e4fb[_0x3207f0(0x376)])==null?void 0x0:_0xd56142[_0x3207f0(0x38a)],_0x50e388=((_0x5eba53=_0x25e4fb[_0x3207f0(0x376)])==null?void 0x0:_0x5eba53['totalFormulasToCalculate'])||0x0;return _0x1e0b16===_0x5261a0['START_CALCULATION']&&_0x50e388>0x0;}function kn(_0x60a800){const _0x45a699=_0x4f3698;return _0x60a800[_0x45a699(0x19f)]===_0xb906a6[_0x45a699(0x279)];}let Q=class extends _0x135205{constructor(_0x347a2d,_0xd38230,_0x16bd85,_0x5c87ee,_0x24bd13,_0x529593,_0x365174){const _0xef0826=_0x4f3698;super(),this['_messageService']=_0x347a2d,this[_0xef0826(0x378)]=_0xd38230,this['_configService']=_0x16bd85,this['_httpService']=_0x5c87ee,this[_0xef0826(0x366)]=_0x24bd13,this[_0xef0826(0x2d0)]=_0x529593,this[_0xef0826(0x2df)]=_0x365174,G(this,'_pollingInterval',null),G(this,_0xef0826(0x200),0x0),G(this,_0xef0826(0x2c0),0x0),G(this,_0xef0826(0x1ad),[]),G(this,'_lastResponseTimestamp',0x0),this[_0xef0826(0x328)]();}['_initCommandInterceptor'](){const _0x41da6a=_0x4f3698;this[_0x41da6a(0x2c6)](this[_0x41da6a(0x378)]['beforeCommandExecuted']((_0xad0611,_0xd91185)=>{const _0x4a9878=_0x41da6a;var _0x21a533;if(_0xad0611['id']!==_0x37747b['id'])return;let _0x4a0166=_0xad0611[_0x4a9878(0x386)];if(this[_0x4a9878(0x3a7)]((_0x21a533=_0x4a0166['dirtyRanges'])==null?[]:_0x21a533)&&!this[_0x4a9878(0x387)]())throw this['_checkAndWaitForCalculationPermission'](_0xad0611,_0xd91185),this['_showGuardMessage'](),new _0x32abe0();})),this['disposeWithMe'](this[_0x41da6a(0x378)][_0x41da6a(0x25a)]((_0x5502b9,_0x12ee05)=>{const _0x2974dc=_0x41da6a;if(_0x5502b9['id']!==_0x2205b6['id'])return;let _0x531178=_0x5502b9[_0x2974dc(0x386)];if(On(_0x531178)){let _0x3139d7=_0x56a70c();this[_0x2974dc(0x1ad)]['push'](_0x3139d7),this['_startCalculationLimit'](_0x3139d7);}else{if(kn(_0x531178)&&this['_taskIds'][_0x2974dc(0x2ac)]>0x0){let _0x3eb04b=this[_0x2974dc(0x1ad)][_0x2974dc(0x1fa)]();this[_0x2974dc(0x1eb)](_0x3eb04b);}}}));}[_0x4f3698(0x359)](){const _0x5a548d=_0x4f3698;super[_0x5a548d(0x359)](),this[_0x5a548d(0x208)](),this[_0x5a548d(0x1ad)]=[],this[_0x5a548d(0x2c0)]=0x0,this[_0x5a548d(0x200)]=0x0,this[_0x5a548d(0x33c)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x1e8c17,_0xf95df5){const _0x33823a=_0x4f3698;for(let _0x1bba1d=0x0;_0x1bba1d<0x1e;_0x1bba1d++)try{if(await this[_0x33823a(0x37a)](),this['_checkCalculationAvailable']()){this[_0x33823a(0x26a)](_0x1e8c17,_0xf95df5),this[_0x33823a(0x224)][_0x33823a(0x2dc)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.started'),'type':_0x1082da[_0x33823a(0x326)]});return;}await new Promise(_0x57f223=>{const _0xf99a63=_0x33823a;this['_pollingInterval']=window[_0xf99a63(0x2b8)](_0x57f223,0x3e8);});}catch(_0x324ef5){this['_logService'][_0x33823a(0x1cb)](_0x324ef5);}this['_messageService'][_0x33823a(0x2dc)]({'content':this['_localeService']['t'](_0x33823a(0x1b3)),'type':_0x1082da[_0x33823a(0x1ea)]});}['_applyCommand'](_0x2f508d,_0x3c9328){const _0x2be4d7=_0x4f3698;try{this[_0x2be4d7(0x378)][_0x2be4d7(0x20b)](_0x2f508d['id'],_0x2f508d[_0x2be4d7(0x386)],_0x3c9328);}catch(_0xf746a2){this[_0x2be4d7(0x2d0)][_0x2be4d7(0x1cb)](_0xf746a2);}}[_0x4f3698(0x302)](_0x4cebf5,_0x2cb254){const _0x5563c9=_0x4f3698;_0x2cb254<this[_0x5563c9(0x33c)]||(this[_0x5563c9(0x33c)]=_0x2cb254,this['_maxFormulaLimit']=Number[_0x5563c9(0x368)](_0x4cebf5['maxFormulaLimit']),this[_0x5563c9(0x2c0)]=Number[_0x5563c9(0x368)](_0x4cebf5[_0x5563c9(0x2b0)]));}async[_0x4f3698(0x393)](_0x576ab5){const _0x31e1b8=_0x4f3698;let _0x1f97ff=Date[_0x31e1b8(0x190)]();try{var _0x315d91,_0x169262;let _0x2c8127=((_0x315d91=this[_0x31e1b8(0x324)][_0x31e1b8(0x1b6)](_0x20d072))==null?void 0x0:_0x315d91['startFormulaLimitUrl'])||_0x31e1b8(0x197),_0x2c3a62=(await this[_0x31e1b8(0x223)][_0x31e1b8(0x1a8)](_0x2c8127,{'body':JSON[_0x31e1b8(0x38f)]({'taskId':_0x576ab5})}))[_0x31e1b8(0x1c4)];if(((_0x169262=_0x2c3a62['error'])==null?void 0x0:_0x169262[_0x31e1b8(0x39e)])!==_0x1bd35a['OK'])return;this[_0x31e1b8(0x302)](_0x2c3a62[_0x31e1b8(0x379)],_0x1f97ff);}catch(_0xed1852){this[_0x31e1b8(0x2d0)][_0x31e1b8(0x1cb)](_0xed1852);}}async[_0x4f3698(0x37a)](_0x40c54f){const _0x5a988c=_0x4f3698;let _0x216e68=Date['now']();try{var _0x4f0328,_0x2d07dd;let _0x4174b8=((_0x4f0328=this[_0x5a988c(0x324)][_0x5a988c(0x1b6)](_0x20d072))==null?void 0x0:_0x4f0328['getFormulaLimitStatusUrl'])||_0x5a988c(0x1ca),_0x233661=_0x40c54f?_0x4174b8+'?taskId='+encodeURIComponent(_0x40c54f):_0x4174b8,_0x25fa13=(await this['_httpService'][_0x5a988c(0x1d3)](_0x233661))['body'];if(((_0x2d07dd=_0x25fa13['error'])==null?void 0x0:_0x2d07dd[_0x5a988c(0x39e)])!==_0x1bd35a['OK'])return;this[_0x5a988c(0x302)](_0x25fa13['limitInfo'],_0x216e68);}catch(_0x419b8b){this[_0x5a988c(0x2d0)][_0x5a988c(0x1cb)](_0x419b8b);}}async['_releaseCalculationLimit'](_0x45ef92){const _0x20e5f3=_0x4f3698;let _0xec5646=Date[_0x20e5f3(0x190)]();try{var _0x1c3aa5,_0x24db15;let _0x4d6365=((_0x1c3aa5=this['_configService'][_0x20e5f3(0x1b6)](_0x20d072))==null?void 0x0:_0x1c3aa5[_0x20e5f3(0x1a3)])||_0x20e5f3(0x333),_0x36713e=(await this[_0x20e5f3(0x223)]['post'](_0x4d6365,{'body':JSON[_0x20e5f3(0x38f)]({'taskId':_0x45ef92})}))[_0x20e5f3(0x1c4)];if(((_0x24db15=_0x36713e[_0x20e5f3(0x1cb)])==null?void 0x0:_0x24db15[_0x20e5f3(0x39e)])!==_0x1bd35a['OK'])return;this[_0x20e5f3(0x302)](_0x36713e[_0x20e5f3(0x379)],_0xec5646);}catch(_0x5bf391){this[_0x20e5f3(0x2d0)]['error'](_0x5bf391);}}[_0x4f3698(0x387)](){const _0xf9a5f7=_0x4f3698;return this[_0xf9a5f7(0x200)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x4f3698(0x208)](){const _0x44f612=_0x4f3698;this[_0x44f612(0x22a)]&&(clearTimeout(this[_0x44f612(0x22a)]),this[_0x44f612(0x22a)]=null);}[_0x4f3698(0x360)](){const _0x92a9a8=_0x4f3698;this['_messageService']['show']({'content':this[_0x92a9a8(0x2df)]['t'](_0x92a9a8(0x269)),'type':_0x1082da[_0x92a9a8(0x305)]});}[_0x4f3698(0x3a7)](_0x942313){const _0x40c340=_0x4f3698;for(let _0x79ffac of _0x942313){let {unitId:_0x1e4ed7,sheetId:_0x5093a2,range:_0x28b361}=_0x79ffac,_0x81b8b1=this['_univerInstanceService'][_0x40c340(0x37f)](_0x1e4ed7);if(!_0x81b8b1)continue;let _0x5297c9=_0x81b8b1['getSheetBySheetId'](_0x5093a2);if(!_0x5297c9)continue;let _0x5b451e=_0x5297c9['getCellMatrix']();for(let _0x5089fe=_0x28b361['startRow'];_0x5089fe<=_0x28b361[_0x40c340(0x29f)];_0x5089fe++)for(let _0x1627b6=_0x28b361[_0x40c340(0x33b)];_0x1627b6<=_0x28b361[_0x40c340(0x1b9)];_0x1627b6++){let _0xb76eb6=_0x5b451e[_0x40c340(0x23e)](_0x5089fe,_0x1627b6);if(_0xb76eb6&&(_0x2bb093(_0xb76eb6['f'])||_0x447415(_0xb76eb6['si'])))return!0x0;}}return!0x1;}};Q=q([K(0x0,_0x3a3495(_0x304c5a)),K(0x1,_0x475d4a),K(0x2,_0x270179),K(0x3,_0x3a3495(_0x19b345)),K(0x4,_0x299f08),K(0x5,_0x533956),K(0x6,_0x3a3495(_0x2912dd))],Q);let An=class extends _0x135205{constructor(_0x408ff1,_0x25289a,_0x41bb17){const _0x22d1cb=_0x4f3698;super(),this[_0x22d1cb(0x324)]=_0x408ff1,this[_0x22d1cb(0x2a0)]=_0x25289a,this[_0x22d1cb(0x1dc)]=_0x41bb17,G(this,_0x22d1cb(0x2f0),new Map()),G(this,_0x22d1cb(0x37d),new Map()),G(this,_0x22d1cb(0x29d),!0x1);}[_0x4f3698(0x397)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x31d77b=_0x4f3698;this[_0x31d77b(0x29d)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x4f3698(0x359)](){const _0x4b8134=_0x4f3698;this[_0x4b8134(0x383)]()[_0x4b8134(0x2c2)](()=>super[_0x4b8134(0x359)]());}async[_0x4f3698(0x34e)](_0x1d3466){const _0xc17ff5=_0x4f3698;return this['_disabled']?null:this[_0xc17ff5(0x2a0)][_0xc17ff5(0x334)](_0x199006(_0x1d3466));}async[_0x4f3698(0x35c)](_0x3dc96c,_0x2e6228){const _0x122ed5=_0x4f3698;return!!this['_localStorageService'][_0x122ed5(0x1af)](_0x3dc96c,_0x2e6228);}[_0x4f3698(0x3a0)](_0x28bf4d,_0x1aae23,_0x3c51bf,_0x5003b7){const _0x1d0ef4=_0x4f3698;let _0x5c767e=this['_revisionService']['getCurrentRevOfUnit'](_0x28bf4d);this[_0x1d0ef4(0x2f0)][_0x1d0ef4(0x2da)](_0x28bf4d,{'unitID':_0x28bf4d,'type':_0x1aae23,'awaitingChangeset':_0x3c51bf,'mutations':_0x5003b7,'rev':_0x5c767e}),this['_saveTaskMap'][_0x1d0ef4(0x2cc)](_0x28bf4d)||this['_scheduleSaving'](_0x28bf4d);}[_0x4f3698(0x237)](_0x28e357){const _0x2655a6=_0x4f3698;let _0x2d0cf0=this[_0x2655a6(0x1cf)]();_0x2d0cf0===0x0?this['_saveCache'](_0x28e357):this['_saveTaskMap'][_0x2655a6(0x2da)](_0x28e357,setTimeout(()=>this[_0x2655a6(0x209)](_0x28e357),_0x2d0cf0));}[_0x4f3698(0x1cf)](){var _0x32058f;return(_0x32058f=this['_configService']['getConfig'](_0x3c08a2))==null?_0x33f454:_0x32058f;}[_0x4f3698(0x209)](_0x2dad8e){const _0x41d159=_0x4f3698;let _0x1397eb=this[_0x41d159(0x37d)][_0x41d159(0x1d3)](_0x2dad8e);return _0x1397eb!==void 0x0&&window['clearTimeout'](_0x1397eb),this[_0x41d159(0x2a0)][_0x41d159(0x1af)](_0x199006(_0x2dad8e),this[_0x41d159(0x2f0)][_0x41d159(0x1d3)](_0x2dad8e))[_0x41d159(0x2c2)](()=>this[_0x41d159(0x37d)][_0x41d159(0x229)](_0x2dad8e));}async['exhaustSavingTask'](){const _0x358681=_0x4f3698;let _0x620dc4=[];this[_0x358681(0x37d)][_0x358681(0x251)]((_0x16ca3c,_0x2bb5d6)=>{const _0x49bdee=_0x358681;window[_0x49bdee(0x260)](_0x16ca3c),_0x620dc4['push'](this[_0x49bdee(0x209)](_0x2bb5d6)[_0x49bdee(0x2c2)](()=>{const _0x2218d4=_0x49bdee;this[_0x2218d4(0x37d)][_0x2218d4(0x229)](_0x2bb5d6);}));}),await Promise[_0x358681(0x23c)](_0x620dc4);}};An=q([K(0x0,_0x270179),K(0x1,_0xa60d24),K(0x2,_0x3a3495(_0x4e73e6))],An);var jn=class extends _0x2d8708{constructor(){const _0x195177=_0x4f3698;super(),G(this,_0x195177(0x272),void 0x0),this['urlChange$']=_0x47437f(window,_0x195177(0x2c3))[_0x195177(0x2af)](_0x506d73(this[_0x195177(0x18c)]),_0xc9ccec({'bufferSize':0x1,'refCount':!0x0}),_0x16301b(void 0x0));}[_0x4f3698(0x338)](_0x5c241a,_0x14f53c,_0x3ce0cc=!0x1){const _0x1d8ffc=_0x4f3698;let _0xf9932f=new URL(window[_0x1d8ffc(0x375)][_0x1d8ffc(0x1f4)]);_0xf9932f[_0x1d8ffc(0x243)][_0x1d8ffc(0x2da)](_0x5c241a,_0x14f53c),_0x3ce0cc?window[_0x1d8ffc(0x270)][_0x1d8ffc(0x1d6)]('','',_0xf9932f['toString']()):window[_0x1d8ffc(0x270)]['pushState']('','',_0xf9932f[_0x1d8ffc(0x273)]());}[_0x4f3698(0x233)](_0x998847,_0x147ebf=!0x1){const _0x3d56ad=_0x4f3698;let _0x2553bf=new URL(window[_0x3d56ad(0x375)]['href']);_0x2553bf[_0x3d56ad(0x243)]['delete'](_0x998847),_0x147ebf?window[_0x3d56ad(0x270)][_0x3d56ad(0x1d6)]('','',_0x2553bf[_0x3d56ad(0x273)]()):window[_0x3d56ad(0x270)]['pushState']('','',_0x2553bf[_0x3d56ad(0x273)]());}[_0x4f3698(0x218)](_0x124af9){const _0x783306=_0x4f3698;var _0x356046;return(_0x356046=new URL(window[_0x783306(0x375)][_0x783306(0x1f4)])[_0x783306(0x243)][_0x783306(0x1d3)](_0x124af9))==null?void 0x0:_0x356046;}};let $=class extends _0x59834f{constructor(_0x56e2da=Sn,_0x51145f,_0x5f44c6,_0x54f2d6){const _0x5a6084=_0x4f3698;super(),this[_0x5a6084(0x21b)]=_0x56e2da,this[_0x5a6084(0x25d)]=_0x51145f,this['_injector']=_0x5f44c6,this[_0x5a6084(0x324)]=_0x54f2d6;let {..._0x5660cc}=_0x37c9d2({},Sn,this[_0x5a6084(0x21b)]);this[_0x5a6084(0x324)][_0x5a6084(0x313)](_0x5a6084(0x1d8),_0x5660cc);}['onStarting'](){const _0x16f6e2=_0x4f3698;this[_0x16f6e2(0x369)](),this[_0x16f6e2(0x264)]();}[_0x4f3698(0x1a9)](){const _0x18acff=_0x4f3698;this[_0x18acff(0x311)]();}['_registerDependencies'](){const _0x39310c=_0x4f3698;var _0x358d25;let _0x16faa7=[[sn],[Q],[Tn],[Cn],[wn],[un],[tn,{'useClass':jn}],[_0x18f3b8,{'useClass':_0x188c00}],[_0x346440,{'useClass':An}],[J],[En],[Z],[X],[an],[Y]];this['_config']['enableFrontendLog']&&_0x16faa7[_0x39310c(0x277)]([Dn]),_0x4b9c32(this[_0x39310c(0x370)],_0x39b30f(_0x16faa7,(_0x358d25=this['_config'])==null?void 0x0:_0x358d25[_0x39310c(0x29b)]));}[_0x4f3698(0x311)](){const _0x5f3d4f=_0x4f3698;this[_0x5f3d4f(0x2c6)](this['_renderManagerService']['registerRenderModule'](_0x38e1b9[_0x5f3d4f(0x221)],[vn])),this[_0x5f3d4f(0x2c6)](this['_renderManagerService'][_0x5f3d4f(0x2ae)](_0x38e1b9[_0x5f3d4f(0x35a)],[bn]));}[_0x4f3698(0x264)](){const _0x176c79=_0x4f3698;_0x235764(this[_0x176c79(0x370)],[[X],[J],[En],[Z],[Y],[Q],[an]]),this['_config'][_0x176c79(0x27b)]&&_0x235764(this[_0x176c79(0x370)],[[Dn]]);}};G($,'pluginName',_0x4f3698(0x2e6)),G($,_0x4f3698(0x365),nn),G($,_0x4f3698(0x1a7),rn),$=q([_0x51300c(_0x596c83),K(0x1,_0x5e34fe),K(0x2,_0x3a3495(_0xd0a80)),K(0x3,_0x270179)],$);let Mn=class extends _0x4210a9{constructor(_0x3fc126,_0x2cd491,_0x3e377b,_0x4ab80d,_0x2339ec){super(_0x3fc126,_0x2cd491,_0x3e377b,_0x4ab80d,_0x2339ec);}async[_0x4f3698(0x325)](_0x7366f6){const _0x2c622c=_0x4f3698;let _0x559c9e=await this['_getSessionTicket'](),_0x138e6c=this[_0x2c622c(0x342)](_0x7366f6,_0x559c9e);return this[_0x2c622c(0x1db)](_0x138e6c);}[_0x4f3698(0x342)](_0x4dd64b,_0x28e54b){const _0x22220f=_0x4f3698;let _0x590e38=typeof window>'u'?new URL(_0x4dd64b):new URL(_0x4dd64b,window[_0x22220f(0x375)][_0x22220f(0x346)]);_0x590e38[_0x22220f(0x243)][_0x22220f(0x2da)](_0x22220f(0x364),_0x28e54b);let _0x39d316=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x22220f(0x375)][_0x22220f(0x194)]);return _0x39d316[_0x22220f(0x1d3)](_0x22220f(0x2cd))&&_0x590e38['searchParams']['set'](_0x22220f(0x2cd),_0x39d316[_0x22220f(0x1d3)]('runId')),_0x590e38['toString']();}async[_0x4f3698(0x1b5)](){const _0x45c629=_0x4f3698;var _0x4a43db,_0x137519,_0x2038b2;let _0x494d61=this[_0x45c629(0x324)][_0x45c629(0x1b6)](_0x20d072),_0xd2e8b=(_0x4a43db=_0x494d61==null?void 0x0:_0x494d61['wsSessionTicketUrl'])==null?_0x43d47c:_0x4a43db;return(_0x137519=(_0x2038b2=(await this[_0x45c629(0x223)][_0x45c629(0x1d3)](_0xd2e8b,{'headers':{'Content-Type':_0x45c629(0x35d)}}))[_0x45c629(0x1c4)])==null?void 0x0:_0x2038b2[_0x45c629(0x288)])==null?'':_0x137519;}};Mn=q([K(0x0,_0x3a3495(_0xd0a80)),K(0x1,_0x3a3495(_0x19b345)),K(0x2,_0x270179),K(0x3,_0x533956),K(0x4,_0x5a0c2c)],Mn);let Nn=class extends _0x135205{constructor(_0x5074e4,_0x40b258,_0x100634){const _0x4451ed=_0x4f3698;super(),this[_0x4451ed(0x32d)]=_0x5074e4,this[_0x4451ed(0x223)]=_0x40b258,this[_0x4451ed(0x324)]=_0x100634;}async[_0x4f3698(0x2ad)](_0x3eee3b,_0x4c3a35,_0x55d060,..._0x5b707a){const _0x42589c=_0x4f3698;var _0x487e03,_0x35915c,_0x47e233,_0x46445d;let _0x36e972=this[_0x42589c(0x32d)][_0x42589c(0x2e4)]();if(!_0x36e972)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x16f118=((_0x487e03=this[_0x42589c(0x324)][_0x42589c(0x1b6)](_0x5d41fa))==null?_0x1a23e:_0x487e03)+'/'+_0x3eee3b+_0x42589c(0x30f)+_0x4c3a35,_0x2e220a={'scriptId':_0x3eee3b,'runId':(_0x35915c=new URL(window['location'][_0x42589c(0x1f4)])['searchParams']['get'](_0x42589c(0x2cd)))==null?'':_0x35915c,'function':_0x4c3a35,'unitId':_0x36e972['getUnitId'](),'argsOfFunction':JSON[_0x42589c(0x38f)](_0x5b707a),'invokeId':(_0x47e233=_0x55d060['invokeId'])==null?'':_0x47e233,'executionId':(_0x46445d=_0x55d060[_0x42589c(0x29a)])==null?'':_0x46445d};try{let _0x2b45bf=await this[_0x42589c(0x223)][_0x42589c(0x1a8)](_0x16f118,{'body':_0x2e220a});return _0x2b45bf['body']['error']&&_0x2b45bf[_0x42589c(0x1c4)]['error']['code']!==_0x1bd35a['OK']?_0x42589c(0x257):_0x2b45bf[_0x42589c(0x1c4)]['result'];}catch{return _0x42589c(0x257);}}};Nn=q([K(0x0,_0x299f08),K(0x1,_0x3a3495(_0x19b345)),K(0x2,_0x270179)],Nn);const Pn=0x7530,Fn='ACTIVE_UNIT_EVENT_CHANNEL';var In=class extends _0x135205{constructor(){const _0x5e7b87=_0x4f3698;super(),G(this,_0x5e7b87(0x1b4),_0x56a70c()),G(this,_0x5e7b87(0x2ce),new Set()),G(this,_0x5e7b87(0x2db),new Map()),G(this,_0x5e7b87(0x203),null),G(this,_0x5e7b87(0x230),new Map()),G(this,_0x5e7b87(0x351),new Map()),this[_0x5e7b87(0x372)]();}[_0x4f3698(0x359)](){const _0x5b7e48=_0x4f3698;super[_0x5b7e48(0x359)](),this[_0x5b7e48(0x230)]['forEach']((_0x5aa86a,_0xc4d880)=>this[_0x5b7e48(0x3a2)](_0xc4d880)),this[_0x5b7e48(0x203)]&&window[_0x5b7e48(0x2ff)](this[_0x5b7e48(0x203)]);}['getUnitStatus$'](_0x373936){const _0x5aca04=_0x4f3698;return this[_0x5aca04(0x1b0)](_0x373936)[_0x5aca04(0x2af)](_0x265cf8());}[_0x4f3698(0x1d5)](_0xf55e06){const _0x383879=_0x4f3698;this[_0x383879(0x2ce)][_0x383879(0x361)]===0x0&&this[_0x383879(0x39b)](),this[_0x383879(0x2ce)]['add'](_0xf55e06),this[_0x383879(0x39c)]({'type':0x0,'memberID':this[_0x383879(0x1b4)],'unitIDs':[_0xf55e06],'isForwarded':!0x1});}['disposeUnit'](_0x4240dd){const _0x2da36e=_0x4f3698;this[_0x2da36e(0x2ce)][_0x2da36e(0x229)](_0x4240dd),this[_0x2da36e(0x2ce)][_0x2da36e(0x361)]===0x0&&this[_0x2da36e(0x203)]&&window[_0x2da36e(0x2ff)](this[_0x2da36e(0x203)]);}[_0x4f3698(0x372)](){const _0x235bc0=_0x4f3698;this[_0x235bc0(0x2c6)](_0x305b33(_0x47437f(window,_0x235bc0(0x1da))[_0x235bc0(0x1f2)](_0x39238f=>{const _0x39ba99=_0x235bc0;if(_0x39238f[_0x39ba99(0x1fb)]!==Fn||!_0x39238f[_0x39ba99(0x202)])return;let _0x215e84=JSON[_0x39ba99(0x2f3)](_0x39238f['newValue']);this['_handleEvent'](_0x215e84);}))),window[_0x235bc0(0x22c)](_0x235bc0(0x245),()=>this[_0x235bc0(0x39c)]({'type':0x1,'memberID':this[_0x235bc0(0x1b4)],'unitIDs':Array[_0x235bc0(0x27a)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x3a4c73){const _0x303dbc=_0x4f3698;switch(_0x3a4c73[_0x303dbc(0x1d9)]){case 0x0:this[_0x303dbc(0x2c9)](_0x3a4c73);break;case 0x1:this[_0x303dbc(0x2ea)](_0x3a4c73);break;case 0x2:this[_0x303dbc(0x28e)](_0x3a4c73);break;}}[_0x4f3698(0x2c9)](_0x3a8038){const _0x5d4dec=_0x4f3698;let {unitIDs:_0x49f388,memberID:_0x29f1c5,isForwarded:_0x16c0d7}=_0x3a8038;_0x49f388[_0x5d4dec(0x251)](_0x59d5d2=>{const _0x720f34=_0x5d4dec;if(!_0x16c0d7&&this['_unitOnClients']['has'](_0x59d5d2)&&this['_ensureSubject'](_0x59d5d2)[_0x720f34(0x1c8)](_0x4261be[_0x720f34(0x192)]),!this[_0x720f34(0x2db)][_0x720f34(0x2cc)](_0x59d5d2)||!this[_0x720f34(0x2db)]['get'](_0x59d5d2)[_0x720f34(0x2cc)](_0x29f1c5)){let _0x3c760f=this[_0x720f34(0x2db)][_0x720f34(0x1d3)](_0x59d5d2)||new Set();_0x3c760f[_0x720f34(0x2e3)](_0x29f1c5),this['_unitOnClients'][_0x720f34(0x2da)](_0x59d5d2,_0x3c760f),this[_0x720f34(0x362)](_0x29f1c5);}}),_0x16c0d7||this[_0x5d4dec(0x39c)]({'type':0x0,'memberID':this[_0x5d4dec(0x1b4)],'unitIDs':[...this[_0x5d4dec(0x2ce)]],'isForwarded':!0x0});}[_0x4f3698(0x362)](_0x21d997){const _0x512f84=_0x4f3698;this[_0x512f84(0x3a2)](_0x21d997);let _0x1b7d2e=window[_0x512f84(0x2b8)](()=>{const _0x3d8b5f=_0x512f84;this[_0x3d8b5f(0x2db)][_0x3d8b5f(0x251)](_0x8fca49=>{const _0x478dac=_0x3d8b5f;_0x8fca49[_0x478dac(0x229)](_0x21d997);});},Pn*0x2);this[_0x512f84(0x230)]['set'](_0x21d997,_0x1b7d2e);}['_removeClearOtherTimer'](_0x2c3a15){const _0x4c7d7a=_0x4f3698;if(this[_0x4c7d7a(0x230)][_0x4c7d7a(0x2cc)](_0x2c3a15)){let _0x29f9ac=this[_0x4c7d7a(0x230)]['get'](_0x2c3a15);_0x29f9ac&&window[_0x4c7d7a(0x260)](_0x29f9ac),this[_0x4c7d7a(0x230)][_0x4c7d7a(0x2da)](_0x2c3a15,null);}}[_0x4f3698(0x2ea)](_0x127e08){const _0x6d9c1a=_0x4f3698;let {memberID:_0x35088e,unitIDs:_0x4adc66}=_0x127e08;_0x4adc66[_0x6d9c1a(0x251)](_0x19de0e=>{const _0x3dbc2b=_0x6d9c1a;var _0x40f5e2;let _0x4c8785=this['_unitOnClients'][_0x3dbc2b(0x1d3)](_0x19de0e);_0x4c8785&&(_0x4c8785['delete'](_0x35088e),(_0x40f5e2=this[_0x3dbc2b(0x1b0)](_0x19de0e))==null||_0x40f5e2['next'](_0x4c8785[_0x3dbc2b(0x361)]===0x0?_0x4261be[_0x3dbc2b(0x1a5)]:_0x4261be['OTHER_CLIENTS_EDITING']));}),this[_0x6d9c1a(0x3a2)](_0x35088e);}[_0x4f3698(0x28e)](_0x44bd9b){const _0x595a72=_0x4f3698;this[_0x595a72(0x362)](_0x44bd9b[_0x595a72(0x31e)]);}[_0x4f3698(0x39c)](_0x528934){const _0x431d49=_0x4f3698;localStorage[_0x431d49(0x1af)](Fn,JSON[_0x431d49(0x38f)](_0x528934));}['_scheduleHeartbeat'](){const _0x547d0f=_0x4f3698;this['_heartbeatTimer']=window[_0x547d0f(0x2a4)](()=>{const _0x39b08d=_0x547d0f;this[_0x39b08d(0x39c)]({'type':0x2,'memberID':this['_id']});},Pn);}[_0x4f3698(0x1b0)](_0xa43bf){const _0x396f11=_0x4f3698;return this[_0x396f11(0x351)]['has'](_0xa43bf)||this[_0x396f11(0x351)][_0x396f11(0x2da)](_0xa43bf,new _0x5a0bca(_0x4261be[_0x396f11(0x1a5)])),this[_0x396f11(0x351)][_0x396f11(0x1d3)](_0xa43bf);}};export{Mn as BrowserCollaborationSocketService,Y as CollaborationDataLoaderController,J as DesktopCollaborationStatusDisplayController,tn as IURLService,Nn as RemoteUniscriptService,yn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,In as WebBrowserSingleActiveUnitService,jn as WebURLService};
1
+ const _0x4fce49=_0x2954;(function(_0x1f08be,_0x4f7172){const _0x1ff221=_0x2954,_0x65282e=_0x1f08be();while(!![]){try{const _0x554d27=parseInt(_0x1ff221(0x2b6))/0x1+parseInt(_0x1ff221(0x1ff))/0x2+parseInt(_0x1ff221(0x145))/0x3*(-parseInt(_0x1ff221(0x1cd))/0x4)+parseInt(_0x1ff221(0x23c))/0x5+parseInt(_0x1ff221(0x1f9))/0x6*(parseInt(_0x1ff221(0x225))/0x7)+parseInt(_0x1ff221(0x226))/0x8+parseInt(_0x1ff221(0xfc))/0x9*(-parseInt(_0x1ff221(0x138))/0xa);if(_0x554d27===_0x4f7172)break;else _0x65282e['push'](_0x65282e['shift']());}catch(_0xf80208){_0x65282e['push'](_0x65282e['shift']());}}}(_0x3b21,0x2a389));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x444960,CollaborationController as _0x7bdb56,CollaborationSessionService as _0x1f6015,CollaborationSocketService as _0x3b89cd,CollaborationStatus as _0x47e920,CollaborationUIEventId as _0x10468e,CollaborationUIEventService as _0xe59bf2,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x38aa17,DEFAULT_WS_SESSION_TICKET_URL as _0x28d880,DataLoaderService as _0x44aa7a,DocCollaborationEntity as _0x500196,ILocalCacheService as _0x223121,LOCAL_CACHE_INTERVAL as _0xb5c7a6,LOCAL_CACHE_INTERVAL_KEY as _0x531d40,MemberService as _0x4baa64,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x47a206,SessionStatus as _0x9424b9,UnitStatus as _0x3191c3,UniverCollaborationClientPlugin as _0x54299c,getLocalCacheKey as _0x32c6e5}from'@univerjs-pro/collaboration-client';import{COLORS as _0x3b0241,CanceledError as _0x21b9c7,ColorKit as _0x4ad359,DOC_RANGE_TYPE as _0x3ab031,DependentOn as _0x471b5a,Disposable as _0x3b1408,DisposableCollection as _0x2e2922,ICommandService as _0x3d1e31,IConfigService as _0x4745e9,ILocalStorageService as _0x485df1,ILogService as _0x821e06,IUniverInstanceService as _0x512649,Inject as _0x5e7f17,Injector as _0x396982,LocaleService as _0x2f08d4,Optional as _0xce12c1,Plugin as _0x5449b2,Rectangle as _0x357f70,RxDisposable as _0x3ba365,ThemeService as _0x3ba539,Tools as _0x4453b6,UniverInstanceType as _0x991a39,Workbook as _0x2a7d79,createIdentifier as _0x5310e2,debounce as _0x58951d,fromEventSubject as _0x4e813d,generateRandomId as _0x1321c7,isFormulaId as _0x3fbf1e,isFormulaString as _0x74776e,isInternalEditorID as _0xc2e873,merge as _0x5e0eaa,mergeOverrideWithDependencies as _0x572182,registerDependencies as _0x375ff6,toDisposable as _0xf76a73,touchDependencies as _0x4afc34}from'@univerjs/core';import{BuiltInUIPart as _0x3d8486,IBeforeCloseService as _0x1ad179,IMessageService as _0x5f57d5,INotificationService as _0x46bdef,IUIPartsService as _0x1b99ce,connectInjector as _0x394512,useDependency as _0x5e4cdb,useObservable as _0x490604}from'@univerjs/ui';import{BehaviorSubject as _0x12f80d,Subject as _0x12ea0c,combineLatest as _0xeb1450,debounceTime as _0x23d81c,distinctUntilChanged as _0x5203c4,filter as _0x393b4e,fromEvent as _0x3cf39d,mapTo as _0x896674,merge as _0x2deeef,of as _0x349657,shareReplay as _0x3784af,switchMap as _0x2ffe1d,takeUntil as _0x340706}from'rxjs';import{distinctUntilChanged as _0x4411d8,filter as _0x39cf12,map as _0x2cc7a2,switchMap as _0x4ecc19,takeUntil as _0x53e7b7,throttleTime as _0x1b75d1}from'rxjs/operators';import{MessageType as _0x5d4565,Tooltip as _0x187211,clsx as _0x290b16}from'@univerjs/design';import{LoadingMultiIcon as _0xfba207,OffLineIcon as _0xa03e15,OnLineIcon as _0x37d270}from'@univerjs/icons';import{useCallback as _0x2d91be,useMemo as _0x113765}from'react';import{jsx as _0xbaa0cf}from'react/jsx-runtime';import{IRemoteInstanceService as _0x3c41a0}from'@univerjs/rpc';import{EffectRefRangId as _0x43c900,RefRangeService as _0x432654,SetSelectionsOperation as _0x2c4cb0,SetWorksheetActivateCommand as _0x49b308,SheetsSelectionsService as _0x4b2ff9,handleDeleteRangeMoveLeft as _0x43b111,handleDeleteRangeMoveUp as _0x58a433,handleIRemoveCol as _0x597f88,handleIRemoveRow as _0x36085e,handleInsertCol as _0x2dd4cb,handleInsertRangeMoveDown as _0x53d2fe,handleInsertRangeMoveRight as _0x18b63c,handleInsertRow as _0x40f9e7,handleMoveRange as _0x245987,runRefRangeMutations as _0x5dc49d}from'@univerjs/sheets';import{IRenderManagerService as _0x5de006,Rect as _0x2aadca,RegularPolygon as _0x541921,SHEET_VIEWPORT_KEY as _0x27e8ed,Shape as _0x1f2d3f,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x48c482,Vector2 as _0x343cd2,getColor as _0x530790}from'@univerjs/engine-render';function _0x2954(_0x1d60f6,_0xed1871){_0x1d60f6=_0x1d60f6-0xa7;const _0x3b21c4=_0x3b21();let _0x295490=_0x3b21c4[_0x1d60f6];return _0x295490;}import{HTTPService as _0x3c0cc7,ISocketService as _0x2390f3,WebSocketService as _0x311ee6}from'@univerjs/network';import{DocIMEInputManagerService as _0x10a1c7,IDocClipboardService as _0x1ac5b9,NodePositionConvertToCursor as _0x5e5781,NodePositionConvertToRectRange as _0x337625,SetDocZoomRatioOperation as _0x38eb92,TEXT_RANGE_LAYER_INDEX as _0x316337}from'@univerjs/docs-ui';import{IImageIoService as _0x29c8af}from'@univerjs/drawing';import{CollaborationEvent as _0x548cc2,ISnapshotServerService as _0x40f7a1,ITransformService as _0x8dea2,RevisionService as _0x4a2529,isTransformMutationFailure as _0x20ccdb,isTransformMutationsWithChangesetSuccess as _0x1c0730}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x27e270,DocSkeletonManagerService as _0x2b9af4,DocStateChangeManagerService as _0x274af1,RichTextEditingMutation as _0x267473,SetTextSelectionsOperation as _0x3e0925}from'@univerjs/docs';import{FormulaExecuteStageType as _0x1fcf5c,FormulaExecutedStateType as _0x39cb1e,SetFormulaCalculationNotificationMutation as _0x303f99,SetFormulaCalculationStartMutation as _0x5de206,deserializeRangeWithSheet as _0x29280a,serializeRangeWithSheet as _0x4a216b}from'@univerjs/engine-formula';import{ISlideDrawingStateService as _0x450161,buildDrawingOKey as _0xd51333}from'@univerjs-pro/slides-ui';import{SheetSkeletonManagerService as _0x3ba684,getCoordByCell as _0x42e801,getSheetObject as _0x2ff902}from'@univerjs/sheets-ui';import{ErrorCode as _0x1cfe9f}from'@univerjs/protocol';function Xt(_0x1cfc2a){const _0x5c05a4=_0x2954;switch(_0x1cfc2a){case _0x47e920[_0x5c05a4(0x1bd)]:return{'icon':_0xbaa0cf(_0xa03e15,{}),'colorClass':_0x5c05a4(0xac),'i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x5c05a4(0x28f)};case _0x47e920[_0x5c05a4(0x195)]:return{'icon':_0xbaa0cf(_0xa03e15,{}),'colorClass':'univer-text-orange-500','i18nKey':_0x5c05a4(0xc0),'clickable':!0x1,'indicator':_0x5c05a4(0x28f)};case _0x47e920[_0x5c05a4(0x273)]:return{'icon':_0xbaa0cf(_0xfba207,{}),'colorClass':_0x5c05a4(0xef),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x5c05a4(0x223)};case _0x47e920[_0x5c05a4(0xff)]:return{'icon':_0xbaa0cf(_0x37d270,{}),'colorClass':'univer-text-gray-400','i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x5c05a4(0x28f)};case _0x47e920[_0x5c05a4(0x13b)]:case _0x47e920[_0x5c05a4(0x250)]:return{'icon':_0xbaa0cf(_0xfba207,{}),'colorClass':_0x5c05a4(0xef),'i18nKey':_0x5c05a4(0xf2),'clickable':!0x1,'indicator':_0x5c05a4(0x223)};case _0x47e920['PENDING']:return{'icon':_0xbaa0cf(_0xfba207,{}),'colorClass':_0x5c05a4(0xef),'i18nKey':_0x5c05a4(0xf2),'clickable':!0x1,'indicator':_0x5c05a4(0x223)};case _0x47e920[_0x5c05a4(0x27c)]:return{'icon':_0xbaa0cf(_0x37d270,{}),'colorClass':'univer-text-green-500','i18nKey':_0x5c05a4(0xf4),'clickable':!0x1,'indicator':_0x5c05a4(0x28f)};}}function Zt(_0x4afaa5){const _0x50a40e=_0x2954;let {status$:_0x11cdb3}=_0x4afaa5,_0x51b854=_0x490604(_0x11cdb3,_0x47e920['NOT_COLLAB']),_0x37ec7e=_0x5e4cdb(_0x2f08d4),_0x3bdc65=_0x5e4cdb(_0x1f6015),_0x5c4dc3=_0x113765(()=>Xt(_0x51b854),[_0x51b854]),_0x3c23f4=_0x51b854!==_0x47e920[_0x50a40e(0x1bd)],_0x3c732b=_0x37ec7e['t'](_0x5c4dc3[_0x50a40e(0x16c)]),_0x2ff5e1=_0x5c4dc3[_0x50a40e(0x28d)]?_0x37ec7e['t'](_0x5c4dc3['tooltipKey']):_0x3c732b,_0x4d3140=_0x2d91be(()=>{const _0x3f22d0=_0x50a40e;_0x3c23f4||_0x3bdc65[_0x3f22d0(0x1ef)]();},[_0x3c23f4,_0x3bdc65]),_0x4f524d=_0x2d91be(_0x28a53a=>{const _0x212a7d=_0x50a40e;!_0x3c23f4&&(_0x28a53a['key']===_0x212a7d(0x146)||_0x28a53a[_0x212a7d(0x2d4)]==='\x20')&&(_0x28a53a[_0x212a7d(0x1d1)](),_0x3bdc65[_0x212a7d(0x1ef)]());},[_0x3c23f4,_0x3bdc65]),_0x4a3581=_0xbaa0cf('span',{'className':_0x290b16(_0x50a40e(0x221),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x5c4dc3[_0x50a40e(0x1a9)],{'univer-animate-spin':_0x5c4dc3['indicator']==='spin','univer-animate-pulse':_0x5c4dc3[_0x50a40e(0x24f)]===_0x50a40e(0x291)}),'aria-hidden':_0x50a40e(0x1f7),'children':_0x5c4dc3[_0x50a40e(0x2d7)]}),_0x9f6161=_0xbaa0cf(_0x50a40e(0x10c),{'className':_0x290b16(_0x50a40e(0x221),_0x50a40e(0x17b),_0x50a40e(0x265),_0x50a40e(0x1fb),_0x50a40e(0x28e),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x5c4dc3[_0x50a40e(0x2dc)],'univer-cursor-default':!_0x5c4dc3[_0x50a40e(0x2dc)]}),'children':_0x4a3581});return _0x5c4dc3[_0x50a40e(0x2dc)]?_0xbaa0cf(_0x187211,{'title':_0x2ff5e1,'placement':'bottom','children':_0xbaa0cf(_0x50a40e(0x25b),{'type':_0x50a40e(0x25b),'onClick':_0x4d3140,'onKeyDown':_0x4f524d,'className':_0x290b16(_0x50a40e(0x12e),'univer-border-none\x20univer-bg-transparent',_0x50a40e(0xb6),_0x50a40e(0xf1)),'aria-label':_0x3c732b+_0x50a40e(0x2f0)+_0x2ff5e1,'role':_0x50a40e(0xec),'aria-live':'polite','aria-atomic':'true','children':_0x9f6161})}):_0xbaa0cf(_0x187211,{'title':_0x2ff5e1,'placement':_0x50a40e(0x242),'children':_0xbaa0cf('div',{'className':_0x290b16(_0x50a40e(0x12e),_0x50a40e(0x139),'univer-m-0\x20univer-p-0'),'aria-label':_0x3c732b,'role':_0x50a40e(0xec),'aria-live':_0x50a40e(0x2ed),'aria-atomic':'true','children':_0x9f6161})});}function W(_0x1e324e){'@babel/helpers - typeof';const _0x20f33f=_0x2954;return W=typeof Symbol==_0x20f33f(0x228)&&typeof Symbol[_0x20f33f(0x1e1)]=='symbol'?function(_0x26e0ae){return typeof _0x26e0ae;}:function(_0x22a270){const _0xc257c4=_0x20f33f;return _0x22a270&&typeof Symbol==_0xc257c4(0x228)&&_0x22a270[_0xc257c4(0x25e)]===Symbol&&_0x22a270!==Symbol[_0xc257c4(0x182)]?_0xc257c4(0x2c9):typeof _0x22a270;},W(_0x1e324e);}function Qt(_0x139d59,_0x5f1593){const _0x5a128e=_0x2954;if(W(_0x139d59)!='object'||!_0x139d59)return _0x139d59;var _0x334034=_0x139d59[Symbol[_0x5a128e(0x108)]];if(_0x334034!==void 0x0){var _0x568668=_0x334034[_0x5a128e(0x2e8)](_0x139d59,_0x5f1593||_0x5a128e(0x29a));if(W(_0x568668)!=_0x5a128e(0x11a))return _0x568668;throw TypeError(_0x5a128e(0x243));}return(_0x5f1593===_0x5a128e(0x1a0)?String:Number)(_0x139d59);}function $t(_0x168aee){const _0x293723=_0x2954;var _0x3a9b16=Qt(_0x168aee,_0x293723(0x1a0));return W(_0x3a9b16)==_0x293723(0x2c9)?_0x3a9b16:_0x3a9b16+'';}function G(_0x5ddaed,_0x40fc7e,_0x25c2ec){const _0x305383=_0x2954;return(_0x40fc7e=$t(_0x40fc7e))in _0x5ddaed?Object[_0x305383(0x22d)](_0x5ddaed,_0x40fc7e,{'value':_0x25c2ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5ddaed[_0x40fc7e]=_0x25c2ec,_0x5ddaed;}function K(_0x30bb07,_0x4fcc3b){return function(_0x18aaa3,_0x2a13d8){_0x4fcc3b(_0x18aaa3,_0x2a13d8,_0x30bb07);};}function q(_0x3274db,_0x40d06a,_0x42b97b,_0x2ab0a9){const _0x2d12ee=_0x2954;var _0x448a20=arguments[_0x2d12ee(0x26a)],_0x3eef50=_0x448a20<0x3?_0x40d06a:_0x2ab0a9===null?_0x2ab0a9=Object[_0x2d12ee(0x14d)](_0x40d06a,_0x42b97b):_0x2ab0a9,_0x1277d6;if(typeof Reflect==_0x2d12ee(0x11a)&&typeof Reflect['decorate']==_0x2d12ee(0x228))_0x3eef50=Reflect[_0x2d12ee(0x156)](_0x3274db,_0x40d06a,_0x42b97b,_0x2ab0a9);else{for(var _0x1eaeb8=_0x3274db[_0x2d12ee(0x26a)]-0x1;_0x1eaeb8>=0x0;_0x1eaeb8--)(_0x1277d6=_0x3274db[_0x1eaeb8])&&(_0x3eef50=(_0x448a20<0x3?_0x1277d6(_0x3eef50):_0x448a20>0x3?_0x1277d6(_0x40d06a,_0x42b97b,_0x3eef50):_0x1277d6(_0x40d06a,_0x42b97b))||_0x3eef50);}return _0x448a20>0x3&&_0x3eef50&&Object['defineProperty'](_0x40d06a,_0x42b97b,_0x3eef50),_0x3eef50;}let J=class extends _0x3b1408{constructor(_0x5edff3,_0x88eed,_0x1cd54e,_0x3f7862){const _0x39741e=_0x2954;super(),this[_0x39741e(0x2cd)]=_0x5edff3,this[_0x39741e(0x1ee)]=_0x88eed,this[_0x39741e(0xb3)]=_0x1cd54e,this[_0x39741e(0xd5)]=_0x3f7862,G(this,_0x39741e(0x101),new _0x12f80d(_0x47e920['NOT_COLLAB'])),this['_initStatusComponent'](),this[_0x39741e(0x18c)]();}[_0x4fce49(0x18c)](){const _0x16f1b2=_0x4fce49;this['disposeWithMe'](_0x2deeef(this[_0x16f1b2(0x2cd)][_0x16f1b2(0x203)],this[_0x16f1b2(0x2cd)]['getCurrentTypeOfUnit$'](_0x991a39[_0x16f1b2(0x202)]),this[_0x16f1b2(0x2cd)][_0x16f1b2(0x154)](_0x991a39[_0x16f1b2(0xc3)]))[_0x16f1b2(0x1fd)](_0x2cc7a2(()=>en(this[_0x16f1b2(0x2cd)])),_0x4411d8(),_0x2ffe1d(_0x2e5aaf=>_0x2e5aaf?this[_0x16f1b2(0xb3)][_0x16f1b2(0x133)](_0x2e5aaf):_0x349657(null)),_0x2ffe1d(_0x5bd9d4=>_0x5bd9d4?_0x5bd9d4[_0x16f1b2(0x194)]:_0x349657(_0x47e920[_0x16f1b2(0xff)])))[_0x16f1b2(0x14c)](_0x23897f=>{this['_status$']['next'](_0x23897f);}));}[_0x4fce49(0x191)](){const _0x2941c2=_0x4fce49;this[_0x2941c2(0x20b)](this[_0x2941c2(0xd5)]['registerComponent'](_0x3d8486[_0x2941c2(0x293)],()=>_0x394512(tn({'status$':this[_0x2941c2(0x101)]['asObservable']()}),this[_0x2941c2(0x1ee)])));}};J=q([K(0x0,_0x512649),K(0x1,_0x5e7f17(_0x396982)),K(0x2,_0x5e7f17(_0x7bdb56)),K(0x3,_0x1b99ce)],J);function en(_0x36face){const _0x46645a=_0x4fce49;let _0x4a3117=_0x36face[_0x46645a(0x187)](),_0x3ab195=_0x4a3117==null?void 0x0:_0x4a3117['getUnitId']();if(_0x3ab195&&!_0xc2e873(_0x3ab195))return _0x3ab195;let _0x32ec6e=_0x36face[_0x46645a(0x237)](_0x991a39[_0x46645a(0x202)]),_0x7dbc9a=_0x32ec6e==null?void 0x0:_0x32ec6e[_0x46645a(0x2b0)]();if(_0x7dbc9a&&!_0xc2e873(_0x7dbc9a))return _0x7dbc9a;let _0xd5ec86=_0x36face[_0x46645a(0x237)](_0x991a39[_0x46645a(0xc3)]);if(_0xd5ec86)return _0xd5ec86[_0x46645a(0x2b0)]();let _0x2bc4e8=_0x36face['getAllUnitsForType'](_0x991a39['UNIVER_DOC'])[_0x46645a(0x2b9)](_0x4e5489=>!_0xc2e873(_0x4e5489[_0x46645a(0x2b0)]()));return _0x2bc4e8?_0x2bc4e8['getUnitId']():null;}function tn(_0x10b6ab){let {status$:_0x2d0757}=_0x10b6ab;return function(){return _0xbaa0cf(Zt,{'status$':_0x2d0757});};}const nn=_0x5310e2(_0x4fce49(0xbf));let Y=class extends _0x3ba365{constructor(_0x3893d2,_0x57b356,_0x5e5cbe,_0x1ff4a8,_0x5cda35){const _0x2aaf9e=_0x4fce49;super(),this[_0x2aaf9e(0x252)]=_0x3893d2,this[_0x2aaf9e(0x2c5)]=_0x57b356,this[_0x2aaf9e(0x21c)]=_0x5e5cbe,this['_dataLoaderService']=_0x1ff4a8,_0x5cda35?_0x5cda35==null||_0x5cda35['whenReady']()[_0x2aaf9e(0x238)](()=>this['_init']()):(this[_0x2aaf9e(0x2c5)][_0x2aaf9e(0x162)](_0x2aaf9e(0x105),_0x2aaf9e(0x2bc)),this['_init']());}async[_0x4fce49(0x2ad)](){const _0xc09159=_0x4fce49;let _0x51fd89=this[_0xc09159(0x252)]['getParam']('unit'),_0x5ed38a=this[_0xc09159(0x252)][_0xc09159(0xd0)](_0xc09159(0x20a)),_0x364ca7=this[_0xc09159(0x252)][_0xc09159(0xd0)]('subunit');if(!_0x51fd89||!_0x5ed38a){this[_0xc09159(0x2c5)]['debug'](_0xc09159(0x105),_0xc09159(0xd7));return;}let _0x58fb9d=await this[_0xc09159(0x2cc)][_0xc09159(0x22e)](_0x51fd89,Number(_0x5ed38a),_0x364ca7);_0x58fb9d&&_0x58fb9d instanceof _0x2a7d79&&this['_setupSubUnitSync'](_0x58fb9d);}async[_0x4fce49(0x1e0)](_0x2692b8){const _0x339ded=_0x4fce49;await this[_0x339ded(0x254)](_0x2692b8),_0x2692b8[_0x339ded(0x1a7)][_0x339ded(0x1fd)](_0x340706(this[_0x339ded(0x1ce)]))[_0x339ded(0x14c)](_0x1bf677=>{_0x1bf677&&this['_updateURLWithCurrentState'](_0x1bf677);}),this[_0x339ded(0x252)][_0x339ded(0x1b9)][_0x339ded(0x1fd)](_0x340706(this['dispose$']))['subscribe'](()=>this[_0x339ded(0x254)](_0x2692b8));}['_updateURLWithCurrentState'](_0x163fa3,_0x102a34=!0x1){const _0x4ad7de=_0x4fce49;let _0x4e3894=this['_urlService']['getParam'](_0x4ad7de(0x2a8));_0x163fa3[_0x4ad7de(0x104)]()!==_0x4e3894&&this[_0x4ad7de(0x252)][_0x4ad7de(0x1b0)](_0x4ad7de(0x2a8),_0x163fa3[_0x4ad7de(0x104)](),_0x102a34);}async[_0x4fce49(0x254)](_0x171a72){const _0x5cd2d6=_0x4fce49;var _0x385664;let _0xde665c=this[_0x5cd2d6(0x252)][_0x5cd2d6(0xd0)]('subunit');if(!_0xde665c||!_0x171a72[_0x5cd2d6(0x1f3)](_0xde665c)){let _0x51c761=_0x171a72[_0x5cd2d6(0x177)]()[0x0],_0x41de18=_0x171a72[_0x5cd2d6(0x1f3)](_0x51c761);if(!_0x41de18)return;this[_0x5cd2d6(0x144)](_0x41de18,!0x0),await this[_0x5cd2d6(0x21c)]['executeCommand'](_0x49b308['id'],{'unitId':_0x171a72['getUnitId'](),'subUnitId':_0x51c761});return;}((_0x385664=_0x171a72[_0x5cd2d6(0x1e7)]())==null?void 0x0:_0x385664[_0x5cd2d6(0x104)]())!==_0xde665c&&await this['_commandService'][_0x5cd2d6(0x295)](_0x49b308['id'],{'unitId':_0x171a72[_0x5cd2d6(0x2b0)](),'subUnitId':_0xde665c});}};Y=q([K(0x0,nn),K(0x1,_0x821e06),K(0x2,_0x3d1e31),K(0x3,_0x5e7f17(_0x44aa7a)),K(0x4,_0xce12c1(_0x3c41a0))],Y);var rn=_0x4fce49(0x2d3),an=_0x4fce49(0x19d);const on={};let sn=class extends _0x3ba365{constructor(_0x230c7d,_0x7d8748){const _0x4b1db3=_0x4fce49;super(),this[_0x4b1db3(0x263)]=_0x230c7d,this[_0x4b1db3(0xb8)]=_0x7d8748,this['_init']();}[_0x4fce49(0x2ad)](){const _0x2ae6f7=_0x4fce49;let _0x4db7d3=this;this[_0x2ae6f7(0x20b)](this[_0x2ae6f7(0x263)][_0x2ae6f7(0x2bb)]({'onBeforePasteImage':async _0x541b2c=>{const _0x3817d5=_0x2ae6f7;let _0x1f71ce=await _0x4db7d3[_0x3817d5(0xb8)][_0x3817d5(0x1aa)](_0x541b2c);return _0x1f71ce?{'source':_0x1f71ce[_0x3817d5(0x2e1)],'imageSourceType':_0x1f71ce[_0x3817d5(0xb2)]}:null;}}));}};sn=q([K(0x0,_0x1ac5b9),K(0x1,_0x29c8af)],sn);const cn=[_0x4fce49(0x166),_0x4fce49(0x257),_0x4fce49(0x1f0),_0x4fce49(0x2aa),'blue.400',_0x4fce49(0x10f)];var ln=class extends _0x3b1408{constructor(..._0x14f1c6){const _0x277438=_0x4fce49;super(..._0x14f1c6),G(this,_0x277438(0x271),new Map()),G(this,_0x277438(0x1be),0x0);}[_0x4fce49(0x124)](_0xb30276){const _0x2d7d3c=_0x4fce49;if(this[_0x2d7d3c(0x271)][_0x2d7d3c(0x140)](_0xb30276))return this['_assignedColors'][_0x2d7d3c(0x1c2)](_0xb30276);let _0x38cccc=cn[this['_colorIndex']];return this[_0x2d7d3c(0x1be)]=(this[_0x2d7d3c(0x1be)]+0x1)%cn['length'],this[_0x2d7d3c(0x271)]['set'](_0xb30276,_0x38cccc),_0x38cccc;}};function un(_0x4e878e){const _0x15d391=_0x4fce49;let _0x57392d='';for(let _0x9ff5e7 of _0x4e878e){let {startOffset:_0x4659af,endOffset:_0x3e7690,isActive:_0x4faf55,rangeType:_0x1456fc,segmentId:_0x83c483,segmentPage:_0x37998b}=_0x9ff5e7;_0x57392d[_0x15d391(0x26a)]&&(_0x57392d+=','),_0x57392d+=_0x4659af+':'+_0x3e7690+':'+(_0x4faf55?'1':'0')+':'+_0x1456fc+':'+_0x83c483+':'+_0x37998b;}return _0x57392d;}function dn(_0xbfe546){const _0x1e7050=_0x4fce49;let _0x160287=_0xbfe546[_0x1e7050(0xf9)](','),_0x13e66e=[];for(let _0x5360eb of _0x160287){let [_0x52ca8a,_0x137a86,_0x1d437c,_0x53048a,_0x4c4a91,_0x36bda4]=_0x5360eb[_0x1e7050(0xf9)](':');_0x13e66e['push']({'startOffset':Number(_0x52ca8a),'endOffset':Number(_0x137a86),'collapsed':_0x52ca8a===_0x137a86,'isActive':_0x1d437c==='1','rangeType':_0x53048a===_0x3ab031[_0x1e7050(0x220)]?_0x3ab031[_0x1e7050(0x220)]:_0x3ab031['RECT'],'segmentId':typeof _0x4c4a91==_0x1e7050(0x1a0)?String(_0x4c4a91):'','segmentPage':Number(_0x36bda4==null?-0x1:_0x36bda4)});}return _0x13e66e[_0x1e7050(0x174)](_0x490a82=>_0x490a82[_0x1e7050(0x25d)])||(_0x13e66e[0x0][_0x1e7050(0x25d)]=!0x0),_0x13e66e;}var fn=class extends _0x3ba365{constructor(..._0x4c0a1d){const _0x41e527=_0x4fce49;super(..._0x4c0a1d),G(this,_0x41e527(0x17c),new _0x12f80d(null)),G(this,_0x41e527(0x2e0),this[_0x41e527(0x17c)][_0x41e527(0xeb)]());}[_0x4fce49(0x227)](_0x579e4f){const _0x3b62c1=_0x4fce49;let {unitID:_0xde35b1,memberID:_0x351650,textRanges:_0x41c187}=_0x579e4f,_0x356a02=un(_0x41c187);if(_0x356a02==='')return;let _0x7e662c={'unitID':_0xde35b1,'memberID':_0x351650,'selection':_0x356a02};this[_0x3b62c1(0x17c)][_0x3b62c1(0x2ba)](_0x7e662c);}};let pn=class extends _0x3ba365{get[_0x4fce49(0x1dc)](){const _0x23161b=_0x4fce49;return this[_0x23161b(0x2a0)][_0x23161b(0x179)]();}get['roomMembers'](){const _0xc76382=_0x4fce49;return this[_0xc76382(0x186)][_0xc76382(0x179)]();}constructor(_0x3c6798,_0x3c2230,_0x519510,_0x5cd4fa,_0x73fbc5,_0x3a1f37,_0x3d406a,_0x450ac8,_0x368102){const _0x22b751=_0x4fce49;super(),this[_0x22b751(0x19b)]=_0x3c6798,this[_0x22b751(0x2c8)]=_0x3c2230,this['_injector']=_0x519510,this[_0x22b751(0x2cb)]=_0x5cd4fa,this[_0x22b751(0xb0)]=_0x73fbc5,this['_syncEditingCollabCursorService']=_0x3a1f37,this[_0x22b751(0xb4)]=_0x3d406a,this[_0x22b751(0x2cd)]=_0x450ac8,this[_0x22b751(0x21c)]=_0x368102,G(this,_0x22b751(0x17a),!0x1),G(this,'_init',!0x1),G(this,_0x22b751(0x2a0),new _0x12f80d(new Map())),G(this,_0x22b751(0x234),this['_cursorInfo$']['asObservable']()),G(this,_0x22b751(0x186),new _0x12f80d([])),G(this,_0x22b751(0x19f),this[_0x22b751(0x186)]['pipe'](_0x23d81c(0x12c))),G(this,_0x22b751(0xc6),_0x58951d(_0xe2f8aa=>{const _0x175d6d=_0x22b751;let _0xd7c9cd={'eventID':_0x548cc2[_0x175d6d(0xb9)],'data':{'unitID':this[_0x175d6d(0x19b)],'memberID':this[_0x175d6d(0x2c8)][_0x175d6d(0x1bf)](),'selection':un(_0xe2f8aa)}};this[_0x175d6d(0x2c8)][_0x175d6d(0x260)](_0xd7c9cd,this['unitID']);},0x64));}[_0x4fce49(0x2a9)](){const _0x2f5643=_0x4fce49;super[_0x2f5643(0x2a9)](),this['_cursorInfo$'][_0x2f5643(0x2ba)](new Map()),this[_0x2f5643(0x2a0)][_0x2f5643(0x2e6)](),this[_0x2f5643(0x186)][_0x2f5643(0x2ba)]([]),this[_0x2f5643(0x186)][_0x2f5643(0x2e6)]();}[_0x4fce49(0x1db)](){const _0x24cd1c=_0x4fce49;this[_0x24cd1c(0x2ad)]||(this[_0x24cd1c(0x2ad)]=!0x0,this[_0x24cd1c(0x2c8)][_0x24cd1c(0x1fe)][_0x24cd1c(0x1fd)](_0x340706(this[_0x24cd1c(0x1ce)]))[_0x24cd1c(0x14c)](_0x4fe08c=>{const _0x4648b4=_0x24cd1c;_0x4fe08c===_0x9424b9[_0x4648b4(0xbc)]?this[_0x4648b4(0x169)]():this['_toggleOffline']();}),this['_session'][_0x24cd1c(0x197)]['pipe'](_0x340706(this[_0x24cd1c(0x1ce)]))[_0x24cd1c(0x14c)](_0x4e6b6a=>{const _0x4727af=_0x24cd1c;let _0x21725b=_0x4e6b6a[_0x4727af(0xed)];_0x21725b===_0x548cc2[_0x4727af(0xb9)]&&this[_0x4727af(0x121)](_0x4e6b6a),_0x21725b===_0x548cc2[_0x4727af(0x1d7)]&&this[_0x4727af(0x21b)](_0x4e6b6a);}),this[_0x24cd1c(0x20b)](this['_commandService'][_0x24cd1c(0x1a8)](_0x26eead=>{const _0xd84c50=_0x24cd1c;let _0x3f3741=_0x26eead[_0xd84c50(0x1dd)];_0x3f3741!=null&&this[_0xd84c50(0x17a)]&&_0x26eead['id']===_0x3e0925['id']&&_0x3f3741[_0xd84c50(0x246)]===this[_0xd84c50(0x19b)]&&_0x3f3741[_0xd84c50(0x15b)]===!0x1&&_0x3f3741[_0xd84c50(0xdc)][_0xd84c50(0x26a)]>0x0&&this[_0xd84c50(0xc6)](_0x3f3741['ranges']);})),this[_0x24cd1c(0x16a)][_0x24cd1c(0x2e0)]['pipe'](_0x340706(this[_0x24cd1c(0x1ce)]))[_0x24cd1c(0x14c)](_0x21a217=>{const _0x3d2365=_0x24cd1c;if((_0x21a217==null?void 0x0:_0x21a217[_0x3d2365(0x19b)])!==this[_0x3d2365(0x19b)])return;let _0x4e3552={'eventID':_0x548cc2[_0x3d2365(0xb9)],'data':_0x21a217};this[_0x3d2365(0x121)](_0x4e3552);}),this[_0x24cd1c(0x20b)](this['_commandService'][_0x24cd1c(0x1a8)](_0x4721b2=>{const _0x180b4b=_0x24cd1c;if(_0x4721b2[_0x180b4b(0x1dd)]==null)return;let _0x464c8c=_0x4721b2['params'];if(_0x4721b2['id']!==_0x267473['id']||_0x464c8c['unitId']!==this[_0x180b4b(0x19b)])return;let _0x3fa41c={'id':_0x180b4b(0xab),'params':_0x464c8c},_0x1c6cd7=this['cursorInfo'];for(let [_0x56314e,_0x4674cd]of _0x1c6cd7){let _0xafcde2={'id':_0x180b4b(0xab),'params':{'unitId':this[_0x180b4b(0x19b)],'actions':null,'textRanges':_0x4674cd[_0x180b4b(0xdc)]}},_0x5b71c9=this[_0x180b4b(0xb4)][_0x180b4b(0x150)](_0x3fa41c,_0xafcde2,!0x1);if(_0x20ccdb(_0x5b71c9))throw _0x5b71c9[_0x180b4b(0xf8)];_0x1c6cd7[_0x180b4b(0x170)](_0x56314e,{..._0x4674cd,'ranges':_0x5b71c9[_0x180b4b(0x2ac)][_0x180b4b(0x1dd)][_0x180b4b(0xc2)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x1c6cd7);});})));}[_0x4fce49(0x121)](_0x4d392a){const _0x34934f=_0x4fce49;var _0x5d43f6,_0x1b6e69;let {memberID:_0x4daf02,selection:_0x5afd80}=_0x4d392a['data'],_0x1432ce=dn(_0x5afd80),_0x25818b=(_0x5d43f6=(_0x1b6e69=this[_0x34934f(0xb0)][_0x34934f(0x219)](this['unitID'],_0x4daf02))==null?void 0x0:_0x1b6e69[_0x34934f(0x2d8)])==null?_0x34934f(0xa7):_0x5d43f6,_0x66f9ba={'color':this[_0x34934f(0x2cb)]['assignAColorForMemberID'](_0x4daf02),'name':_0x25818b,'ranges':_0x1432ce},_0x25c00c=this[_0x34934f(0x1dc)];_0x25c00c['set'](_0x4daf02,_0x66f9ba),this[_0x34934f(0x2a0)]['next'](_0x25c00c);}['_onCursorDelete'](_0x14e3d7){const _0x3d966b=_0x4fce49;let {memberID:_0x39c78a}=_0x14e3d7[_0x3d966b(0x288)],_0x2fbfcc=this[_0x3d966b(0x1dc)];_0x2fbfcc['delete'](_0x39c78a),this[_0x3d966b(0x2a0)][_0x3d966b(0x2ba)](_0x2fbfcc);}[_0x4fce49(0x169)](){const _0x49746c=_0x4fce49;var _0x45eb0c;if(this[_0x49746c(0x17a)]=!0x0,((_0x45eb0c=this[_0x49746c(0x2cd)][_0x49746c(0x187)]())==null?void 0x0:_0x45eb0c[_0x49746c(0x2b0)]())!==this[_0x49746c(0x19b)])return;let _0x206fd1=this[_0x49746c(0x1ee)]['get'](_0x27e270)[_0x49746c(0x27e)]();Array[_0x49746c(0xfb)](_0x206fd1)&&_0x206fd1[_0x49746c(0x26a)]>0x0&&this['_updateLocalCursor'](_0x206fd1);}[_0x4fce49(0x213)](){const _0x4558dc=_0x4fce49;this[_0x4558dc(0x17a)]=!0x1;}};pn=q([K(0x2,_0x5e7f17(_0x396982)),K(0x3,_0x5e7f17(ln)),K(0x4,_0x5e7f17(_0x4baa64)),K(0x5,_0x5e7f17(fn)),K(0x6,_0x8dea2),K(0x7,_0x512649),K(0x8,_0x3d1e31)],pn);const mn=()=>{let _0x6b6b1e=[],_0x33cb15=!0x1;return _0x277a90=>{const _0x10866d=_0x2954;_0x6b6b1e[_0x10866d(0xe9)](_0x277a90),_0x33cb15||(_0x33cb15=!0x0,setTimeout(()=>{_0x6b6b1e['forEach'](_0x1e1ee9=>_0x1e1ee9()),_0x6b6b1e=[],_0x33cb15=!0x1;}));};};let hn=class extends _0x3ba365{get[_0x4fce49(0x1dc)](){const _0x5e3037=_0x4fce49;return this[_0x5e3037(0x2a0)][_0x5e3037(0x179)]();}get[_0x4fce49(0x11e)](){const _0x5c5b79=_0x4fce49;return this[_0x5c5b79(0x186)][_0x5c5b79(0x179)]();}constructor(_0x2780c1,_0x223f5f,_0x59a644,_0x2a1514,_0x2a79c0,_0x4035a8,_0x2a323e,_0x3b88a5){const _0x18c41c=_0x4fce49;super(),this[_0x18c41c(0x19b)]=_0x2780c1,this[_0x18c41c(0x2c8)]=_0x223f5f,this[_0x18c41c(0x1ee)]=_0x59a644,this[_0x18c41c(0x2cb)]=_0x2a1514,this[_0x18c41c(0xb0)]=_0x2a79c0,this[_0x18c41c(0x2cd)]=_0x4035a8,this[_0x18c41c(0x21c)]=_0x2a323e,this[_0x18c41c(0x17d)]=_0x3b88a5,G(this,_0x18c41c(0x17a),!0x1),G(this,'_init',!0x1),G(this,_0x18c41c(0x2a0),new _0x12f80d(new Map())),G(this,_0x18c41c(0x234),this[_0x18c41c(0x2a0)][_0x18c41c(0xeb)]()),G(this,_0x18c41c(0x186),new _0x12f80d([])),G(this,_0x18c41c(0x19f),this[_0x18c41c(0x186)][_0x18c41c(0x1fd)](_0x23d81c(0x12c))),G(this,'_updateLocalCursor',_0x58951d((_0x10ae18,_0x4d1bb3)=>{const _0xeba372=_0x18c41c;let _0x841834={'eventID':_0x548cc2[_0xeba372(0xb9)],'data':{'unitID':this[_0xeba372(0x19b)],'memberID':this[_0xeba372(0x2c8)][_0xeba372(0x1bf)](),'selection':_0x4a216b(_0x10ae18,_0x4d1bb3['range'])}};this['_session'][_0xeba372(0x260)](_0x841834,this[_0xeba372(0x19b)]);},0x64));}[_0x4fce49(0x2a9)](){const _0x5ccbfa=_0x4fce49;super[_0x5ccbfa(0x2a9)](),this['_cursorInfo$'][_0x5ccbfa(0x2ba)](new Map()),this[_0x5ccbfa(0x2a0)][_0x5ccbfa(0x2e6)](),this[_0x5ccbfa(0x186)][_0x5ccbfa(0x2ba)]([]),this[_0x5ccbfa(0x186)][_0x5ccbfa(0x2e6)]();}[_0x4fce49(0x1db)](){const _0x4e4967=_0x4fce49;this[_0x4e4967(0x2ad)]||(this['_init']=!0x0,this[_0x4e4967(0x2c8)][_0x4e4967(0x1fe)][_0x4e4967(0x1fd)](_0x340706(this[_0x4e4967(0x1ce)]))[_0x4e4967(0x14c)](_0x4ecad6=>{const _0x19d115=_0x4e4967;_0x4ecad6===_0x9424b9[_0x19d115(0xbc)]?this[_0x19d115(0x169)]():this[_0x19d115(0x213)]();}),this[_0x4e4967(0x2c8)][_0x4e4967(0x197)]['pipe'](_0x340706(this[_0x4e4967(0x1ce)]))[_0x4e4967(0x14c)](_0x49c27d=>{const _0x3ee228=_0x4e4967;let _0x4f11ff=_0x49c27d[_0x3ee228(0xed)];_0x4f11ff===_0x548cc2[_0x3ee228(0xb9)]&&this[_0x3ee228(0x121)](_0x49c27d),_0x4f11ff===_0x548cc2[_0x3ee228(0x1d7)]&&this[_0x3ee228(0x21b)](_0x49c27d);}),this['_onRefRangeChange'](),this[_0x4e4967(0x20b)](this['_commandService'][_0x4e4967(0x1a8)](_0x3b0a06=>{const _0x1491fa=_0x4e4967;if(this[_0x1491fa(0x17a)]&&_0x3b0a06['id']===_0x2c4cb0['id']&&_0x3b0a06['params']['unitId']===this[_0x1491fa(0x19b)]){let _0x688482=_0x3b0a06['params'];this[_0x1491fa(0xc6)](_0x688482[_0x1491fa(0xea)],_0x688482['selections'][0x0]);}})));}[_0x4fce49(0x121)](_0xf46ee0){const _0x2906b0=_0x4fce49;var _0x2dd849,_0x284d0d;let {memberID:_0x355b75,selection:_0x509920}=_0xf46ee0['data'],{sheetName:_0xd27ffb,range:_0x90f17}=_0x29280a(_0x509920),_0x2b932d={'name':(_0x2dd849=(_0x284d0d=this[_0x2906b0(0xb0)][_0x2906b0(0x219)](this['unitID'],_0x355b75))==null?void 0x0:_0x284d0d[_0x2906b0(0x2d8)])==null?_0x2906b0(0xa7):_0x2dd849,'range':this['_getMergeRange'](_0xd27ffb,_0x90f17),'sheetID':_0xd27ffb,'color':this[_0x2906b0(0x2cb)][_0x2906b0(0x124)](_0x355b75),'selection':_0x509920},_0x5d42fd=this[_0x2906b0(0x1dc)];_0x5d42fd[_0x2906b0(0x170)](_0x355b75,_0x2b932d),this[_0x2906b0(0x2a0)]['next'](_0x5d42fd);}[_0x4fce49(0x21b)](_0x4e12bc){const _0x13ad1a=_0x4fce49;let {memberID:_0x1f4817}=_0x4e12bc[_0x13ad1a(0x288)],_0x1a340e=this[_0x13ad1a(0x1dc)];_0x1a340e[_0x13ad1a(0x1b8)](_0x1f4817),this[_0x13ad1a(0x2a0)][_0x13ad1a(0x2ba)](_0x1a340e);}[_0x4fce49(0x268)](_0x4b1b87,_0x568990){const _0x320c7b=_0x4fce49;var _0x55a39c;let _0x453812=(_0x55a39c=this[_0x320c7b(0x2cd)]['getUniverSheetInstance'](this['unitID']))==null||(_0x55a39c=_0x55a39c['getSheetBySheetId'](_0x4b1b87))==null?void 0x0:_0x55a39c['getMergeData']();return(_0x453812==null?void 0x0:_0x453812[_0x320c7b(0x2b9)](_0x1b58f8=>_0x357f70['contains'](_0x1b58f8,_0x568990)))||_0x568990;}[_0x4fce49(0x255)](){const _0x154bad=_0x4fce49;let _0x18c84f=new _0x2e2922(),_0x15094e=mn(),_0x38ba55=()=>{const _0x21a2b7=_0x2954;_0x18c84f['dispose']();let _0x304dba=(_0x1e9d6d,_0x53b38a,_0x5392d0,_0x43ad0e)=>{const _0x1f57b5=_0x2954;let _0x236ec2=[];switch(_0x1e9d6d['id']){case _0x43c900['DeleteRangeMoveLeftCommandId']:_0x236ec2=_0x43b111(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x276)]:_0x236ec2=_0x58a433(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x280)]:_0x236ec2=_0x2dd4cb(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0xaa)]:_0x236ec2=_0x53d2fe(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0xe0)]:_0x236ec2=_0x18b63c(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x148)]:_0x236ec2=_0x40f9e7(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x132)]:_0x236ec2=_0x245987(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x114)]:_0x236ec2=_0x597f88(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x2d6)]:_0x236ec2=_0x36085e(_0x1e9d6d,_0x43ad0e);break;}let _0x37a28d=_0x5dc49d(_0x236ec2,_0x43ad0e),_0x362682=this[_0x1f57b5(0x1dc)][_0x1f57b5(0x1c2)](_0x53b38a);if(_0x362682&&_0x37a28d){let _0x51494d={..._0x362682,'range':_0x37a28d};this[_0x1f57b5(0x1dc)][_0x1f57b5(0x170)](_0x53b38a,_0x51494d),_0x15094e(()=>{const _0xa93b5c=_0x1f57b5;let _0x369835=this[_0xa93b5c(0x17d)][_0xa93b5c(0x1a4)](_0x37a28d,_0x55b998=>(_0x369835[_0xa93b5c(0x2a9)](),_0x304dba(_0x55b998,_0x53b38a,_0x5392d0,_0x37a28d)));_0x18c84f[_0xa93b5c(0x208)](_0x369835);});}return{'redos':[],'undos':[]};};this[_0x21a2b7(0x1dc)]['forEach']((_0xf8f1e6,_0x2f490e)=>{const _0x2b94b5=_0x21a2b7;let {range:_0x284b5b,sheetID:_0x56932d}=_0xf8f1e6,_0x369c81=this[_0x2b94b5(0x17d)][_0x2b94b5(0x1a4)](_0x284b5b,_0x40f127=>(_0x369c81[_0x2b94b5(0x2a9)](),_0x304dba(_0x40f127,_0x2f490e,_0x56932d,_0x284b5b)));_0x18c84f[_0x2b94b5(0x208)](_0x369c81);});};this['disposeWithMe'](_0xf76a73(this['_cursorInfo$'][_0x154bad(0x14c)](()=>{_0x38ba55();})));}[_0x4fce49(0x169)](){const _0x248524=_0x4fce49;var _0x23e64c,_0x14c159;if(this[_0x248524(0x17a)]=!0x0,((_0x23e64c=this[_0x248524(0x2cd)][_0x248524(0x187)]())==null?void 0x0:_0x23e64c['getUnitId']())!==this[_0x248524(0x19b)])return;let _0x12945f=(_0x14c159=this['_injector'][_0x248524(0x1c2)](_0x4b2ff9)[_0x248524(0x27d)]())==null?void 0x0:_0x14c159[0x0],_0x3f57e3=this['_univerInstanceService']['getCurrentUnitOfType'](_0x991a39['UNIVER_SHEET'])[_0x248524(0x1e7)]();_0x12945f&&_0x3f57e3&&this[_0x248524(0xc6)](_0x3f57e3['getSheetId'](),_0x12945f);}[_0x4fce49(0x213)](){this['_online']=!0x1;}};hn=q([K(0x2,_0x5e7f17(_0x396982)),K(0x3,_0x5e7f17(ln)),K(0x4,_0x5e7f17(_0x4baa64)),K(0x5,_0x512649),K(0x6,_0x3d1e31),K(0x7,_0x5e7f17(_0x432654))],hn);function gn(_0x1073eb){const _0x441b6b=_0x4fce49;let _0x362f0a;try{_0x362f0a=JSON[_0x441b6b(0x24e)](_0x1073eb);}catch{return null;}if(typeof _0x362f0a!='object'||!_0x362f0a)return null;let _0x4d313a=_0x362f0a;if(_0x4d313a[_0x441b6b(0x1c1)]!==_0x441b6b(0x2de)||typeof _0x4d313a['unitId']!=_0x441b6b(0x1a0)||typeof _0x4d313a['subUnitId']!='string')return null;let _0x2ebcd9=Array[_0x441b6b(0xfb)](_0x4d313a[_0x441b6b(0x152)])?_0x4d313a['selectedIds'][_0x441b6b(0x178)](_0x50c713=>typeof _0x50c713==_0x441b6b(0x1a0)):[],_0x40591e=typeof _0x4d313a[_0x441b6b(0x173)]==_0x441b6b(0x1a0)?_0x4d313a['focusedId']:null;return{'kind':_0x441b6b(0x2de),'unitId':_0x4d313a[_0x441b6b(0x246)],'subUnitId':_0x4d313a[_0x441b6b(0xea)],'selectedIds':_0x2ebcd9,'focusedId':_0x40591e};}let _n=class extends _0x3ba365{get['cursorInfo'](){const _0x3d7735=_0x4fce49;return this[_0x3d7735(0x2a0)][_0x3d7735(0x179)]();}get['roomMembers'](){const _0x231b1b=_0x4fce49;return this[_0x231b1b(0x186)][_0x231b1b(0x179)]();}constructor(_0x5f57f6,_0xdbc7b6,_0x46d339,_0x13136d,_0x4382bf){const _0x492db5=_0x4fce49;super(),this[_0x492db5(0x19b)]=_0x5f57f6,this['_session']=_0xdbc7b6,this[_0x492db5(0x2cb)]=_0x46d339,this[_0x492db5(0xb0)]=_0x13136d,this[_0x492db5(0x183)]=_0x4382bf,G(this,_0x492db5(0x17a),!0x1),G(this,_0x492db5(0x2ad),!0x1),G(this,_0x492db5(0x2a0),new _0x12f80d(new Map())),G(this,_0x492db5(0x234),this[_0x492db5(0x2a0)][_0x492db5(0xeb)]()),G(this,'_roomMembers$',new _0x12f80d([])),G(this,'roomMembers$',this[_0x492db5(0x186)][_0x492db5(0x1fd)](_0x23d81c(0x12c))),G(this,'_updateLocalCursor',_0x58951d(_0x4e9496=>{const _0x131c88=_0x492db5;let _0x1a73c9=_0x4e9496[_0x131c88(0x1c8)];if(!_0x1a73c9||_0x1a73c9[_0x131c88(0x246)]!==this[_0x131c88(0x19b)])return;let _0x2a49f3={'kind':_0x131c88(0x2de),'unitId':_0x1a73c9[_0x131c88(0x246)],'subUnitId':_0x1a73c9[_0x131c88(0xea)],'selectedIds':_0x4e9496[_0x131c88(0x152)][_0x131c88(0x178)](_0x274bfc=>typeof _0x274bfc==_0x131c88(0x1a0)),'focusedId':_0x4e9496[_0x131c88(0x173)]},_0x253ad9={'eventID':_0x548cc2['UPDATE_CURSOR'],'data':{'unitID':this[_0x131c88(0x19b)],'memberID':this[_0x131c88(0x2c8)]['getMemberID'](),'selection':JSON['stringify'](_0x2a49f3)}};this[_0x131c88(0x2c8)][_0x131c88(0x260)](_0x253ad9,this[_0x131c88(0x19b)]);},0x64));}[_0x4fce49(0x2a9)](){const _0xa7f67b=_0x4fce49;super[_0xa7f67b(0x2a9)](),this[_0xa7f67b(0x2a0)][_0xa7f67b(0x2ba)](new Map()),this[_0xa7f67b(0x2a0)]['complete'](),this[_0xa7f67b(0x186)][_0xa7f67b(0x2ba)]([]),this[_0xa7f67b(0x186)][_0xa7f67b(0x2e6)]();}[_0x4fce49(0x1db)](){const _0xafc683=_0x4fce49;this[_0xafc683(0x2ad)]||(this['_init']=!0x0,this[_0xafc683(0x2c8)][_0xafc683(0x1fe)]['pipe'](_0x340706(this[_0xafc683(0x1ce)]))['subscribe'](_0x26c7f1=>{const _0x2174e5=_0xafc683;_0x26c7f1===_0x9424b9[_0x2174e5(0xbc)]?this[_0x2174e5(0x169)]():this[_0x2174e5(0x213)]();}),this[_0xafc683(0x2c8)][_0xafc683(0x197)][_0xafc683(0x1fd)](_0x340706(this[_0xafc683(0x1ce)]))[_0xafc683(0x14c)](_0x25c2b7=>{const _0x592618=_0xafc683;let _0x5d9016=_0x25c2b7[_0x592618(0xed)];_0x5d9016===_0x548cc2[_0x592618(0xb9)]&&this[_0x592618(0x121)](_0x25c2b7),_0x5d9016===_0x548cc2['USERS_LEAVE']&&this[_0x592618(0x21b)](_0x25c2b7);}),this[_0xafc683(0x183)]['state$'][_0xafc683(0x1fd)](_0x340706(this[_0xafc683(0x1ce)]))[_0xafc683(0x14c)](_0x6e05df=>{const _0x6d870d=_0xafc683;this[_0x6d870d(0x17a)]&&this[_0x6d870d(0xc6)](_0x6e05df);}));}[_0x4fce49(0x121)](_0x2d3436){const _0x54efed=_0x4fce49;var _0x101601,_0x34d659,_0x1bb01e,_0x3e9a5c;let {memberID:_0x519f49,selection:_0x3f384c}=_0x2d3436[_0x54efed(0x288)];if(_0x519f49===((_0x101601=(_0x34d659=this[_0x54efed(0x2c8)])['getMemberID'])==null?void 0x0:_0x101601['call'](_0x34d659)))return;let _0x5e778a=gn(_0x3f384c);if(!_0x5e778a||_0x5e778a[_0x54efed(0x246)]!==this[_0x54efed(0x19b)])return;let _0x3a3383=(_0x1bb01e=(_0x3e9a5c=this[_0x54efed(0xb0)]['getMember'](this['unitID'],_0x519f49))==null?void 0x0:_0x3e9a5c[_0x54efed(0x2d8)])==null?_0x54efed(0xa7):_0x1bb01e,_0xa15408={'color':this[_0x54efed(0x2cb)][_0x54efed(0x124)](_0x519f49),'name':_0x3a3383,'unitId':_0x5e778a[_0x54efed(0x246)],'subUnitId':_0x5e778a['subUnitId'],'selectedIds':_0x5e778a['selectedIds'],'focusedId':_0x5e778a[_0x54efed(0x173)],'selection':_0x3f384c},_0x7beef1=new Map(this[_0x54efed(0x1dc)]);_0x7beef1['set'](_0x519f49,_0xa15408),this[_0x54efed(0x2a0)][_0x54efed(0x2ba)](_0x7beef1);}[_0x4fce49(0x21b)](_0x55e3d1){const _0xcbd59b=_0x4fce49;let {memberID:_0x30cd0f}=_0x55e3d1[_0xcbd59b(0x288)],_0x262186=new Map(this[_0xcbd59b(0x1dc)]);_0x262186[_0xcbd59b(0x1b8)](_0x30cd0f),this['_cursorInfo$'][_0xcbd59b(0x2ba)](_0x262186);}[_0x4fce49(0x169)](){const _0x5715a6=_0x4fce49;this['_online']=!0x0,this[_0x5715a6(0xc6)](this[_0x5715a6(0x183)]['getSnapshot']());}[_0x4fce49(0x213)](){const _0x37dfd4=_0x4fce49;this[_0x37dfd4(0x17a)]=!0x1;}};_n=q([K(0x2,_0x5e7f17(ln)),K(0x3,_0x5e7f17(_0x4baa64)),K(0x4,_0x5e7f17(_0x450161))],_n);let X=class extends _0x3ba365{constructor(_0x54b75f,_0x47d97d,_0x3209ee){const _0x1d3cc9=_0x4fce49;super(),this[_0x1d3cc9(0x2cd)]=_0x54b75f,this['_injector']=_0x47d97d,this[_0x1d3cc9(0x1ad)]=_0x3209ee,G(this,_0x1d3cc9(0x2df),new Map()),G(this,_0x1d3cc9(0x15c),new _0x12ea0c()),this[_0x1d3cc9(0x2ad)]();}[_0x4fce49(0x2a9)](){const _0x584b4f=_0x4fce49;super['dispose'](),this[_0x584b4f(0x15c)][_0x584b4f(0x2e6)](),this[_0x584b4f(0x2df)][_0x584b4f(0x2ca)](_0x462b2f=>_0x462b2f['dispose']());}[_0x4fce49(0x1d6)](_0x262914){const _0x46e02e=_0x4fce49;return this['_entities'][_0x46e02e(0x140)](_0x262914)?this[_0x46e02e(0x2df)][_0x46e02e(0x1c2)](_0x262914)['cursorInfo$']:this[_0x46e02e(0x15c)][_0x46e02e(0x1fd)](_0x393b4e(_0x2e1808=>_0x2e1808[_0x46e02e(0x19b)]===_0x262914),_0x2ffe1d(_0x6891cb=>_0x6891cb['cursorInfo$']));}[_0x4fce49(0x2ad)](){const _0x4f8343=_0x4fce49;this[_0x4f8343(0x2cd)][_0x4f8343(0x11b)](_0x991a39[_0x4f8343(0xc3)])[_0x4f8343(0x1fd)](_0x340706(this[_0x4f8343(0x1ce)]))[_0x4f8343(0x14c)](async _0x54ff4e=>{const _0x1a013e=_0x4f8343;let _0xa13e91=_0x54ff4e[_0x1a013e(0x248)][_0x1a013e(0x2b0)](),_0x46b172=await this[_0x1a013e(0x1b5)](_0xa13e91);this[_0x1a013e(0x15c)]['next'](_0x46b172),this[_0x1a013e(0x2df)][_0x1a013e(0x170)](_0xa13e91,_0x46b172);}),this[_0x4f8343(0x2cd)]['getTypeOfUnitAdded$'](_0x991a39[_0x4f8343(0x202)])[_0x4f8343(0x1fd)](_0x340706(this['dispose$']))[_0x4f8343(0x1fd)](_0x393b4e(_0x378878=>!_0x378878[_0x4f8343(0x248)][_0x4f8343(0x2b0)]()[_0x4f8343(0x245)]('__')))[_0x4f8343(0x14c)](async _0x1fdd56=>{const _0x2ce0b1=_0x4f8343;let {unit:_0x290416}=_0x1fdd56,_0xffd6e0=_0x290416['getUnitId'](),_0x5369f7=await this[_0x2ce0b1(0x247)](_0xffd6e0);this[_0x2ce0b1(0x15c)][_0x2ce0b1(0x2ba)](_0x5369f7),this[_0x2ce0b1(0x2df)][_0x2ce0b1(0x170)](_0xffd6e0,_0x5369f7);}),this[_0x4f8343(0x2cd)][_0x4f8343(0x11b)](_0x991a39[_0x4f8343(0x161)])[_0x4f8343(0x1fd)](_0x340706(this[_0x4f8343(0x1ce)]))[_0x4f8343(0x14c)](async _0x3938bb=>{const _0x4f63e6=_0x4f8343;let _0x565ac2=_0x3938bb[_0x4f63e6(0x248)]['getUnitId'](),_0x65a5c8=await this[_0x4f63e6(0xe6)](_0x565ac2);this[_0x4f63e6(0x15c)][_0x4f63e6(0x2ba)](_0x65a5c8),this[_0x4f63e6(0x2df)][_0x4f63e6(0x170)](_0x565ac2,_0x65a5c8);}),_0x2deeef(this[_0x4f8343(0x2cd)][_0x4f8343(0x274)](_0x991a39[_0x4f8343(0x202)]),this[_0x4f8343(0x2cd)][_0x4f8343(0x274)](_0x991a39[_0x4f8343(0xc3)]),this[_0x4f8343(0x2cd)][_0x4f8343(0x274)](_0x991a39[_0x4f8343(0x161)]))[_0x4f8343(0x1fd)](_0x340706(this[_0x4f8343(0x1ce)]))[_0x4f8343(0x14c)](_0x310a0a=>{const _0x38face=_0x4f8343;let _0x48871f=_0x310a0a[_0x38face(0x2b0)](),_0x2d2bca=this['_entities'][_0x38face(0x1c2)](_0x48871f);_0x2d2bca&&(_0x2d2bca[_0x38face(0x2a9)](),this[_0x38face(0x2df)][_0x38face(0x1b8)](_0x48871f));});}async[_0x4fce49(0x1b5)](_0x5178c4){const _0xc5adee=_0x4fce49;let _0xaf8c48=await this['_collabSessionService'][_0xc5adee(0xd3)](_0x5178c4),_0x292bf2=this[_0xc5adee(0x1ee)]['createInstance'](hn,_0x5178c4,_0xaf8c48);return _0x292bf2[_0xc5adee(0x1db)](),_0x292bf2;}async[_0x4fce49(0x247)](_0x13be23){const _0x2699e1=_0x4fce49;let _0x2db2a6=await this[_0x2699e1(0x1ad)][_0x2699e1(0xd3)](_0x13be23),_0xcb3ea3=this['_injector'][_0x2699e1(0x1d9)](pn,_0x13be23,_0x2db2a6);return _0xcb3ea3[_0x2699e1(0x1db)](),_0xcb3ea3;}async[_0x4fce49(0xe6)](_0x50291a){const _0x1ba0ac=_0x4fce49;let _0x5a3df6=await this[_0x1ba0ac(0x1ad)][_0x1ba0ac(0xd3)](_0x50291a),_0xcf46c5=this['_injector'][_0x1ba0ac(0x1d9)](_n,_0x50291a,_0x5a3df6);return _0xcf46c5[_0x1ba0ac(0x1db)](),_0xcf46c5;}};X=q([K(0x0,_0x512649),K(0x1,_0x5e7f17(_0x396982)),K(0x2,_0x5e7f17(_0x1f6015))],X);function vn(_0x2c50a3,_0x476132){const _0x31b260=_0x4fce49;var _0x5b7370,_0x2d38b2,_0x48cbac;let {radius:_0x43ad01,width:_0x4d98e1,height:_0x167171}=_0x476132;_0x43ad01=(_0x5b7370=_0x43ad01)==null?0x0:_0x5b7370,_0x4d98e1=(_0x2d38b2=_0x4d98e1)==null?0x1e:_0x2d38b2,_0x167171=(_0x48cbac=_0x167171)==null?0x1e:_0x48cbac;let _0x3286b2=0x0,_0x519b45=0x0,_0x1563e3=0x0;_0x3286b2=_0x519b45=_0x1563e3=Math[_0x31b260(0xca)](_0x43ad01,_0x4d98e1/0x2,_0x167171/0x2),_0x2c50a3[_0x31b260(0x172)](),_0x2c50a3[_0x31b260(0x130)](_0x3286b2,0x0),_0x2c50a3[_0x31b260(0x2b5)](_0x4d98e1-_0x519b45,0x0),_0x2c50a3[_0x31b260(0x129)](_0x4d98e1-_0x519b45,_0x519b45,_0x519b45,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c50a3[_0x31b260(0x2b5)](_0x4d98e1,_0x167171-_0x1563e3),_0x2c50a3[_0x31b260(0x129)](_0x4d98e1-_0x1563e3,_0x167171-_0x1563e3,_0x1563e3,0x0,Math['PI']/0x2,!0x1),_0x2c50a3[_0x31b260(0x2b5)](0x0,_0x167171),_0x2c50a3[_0x31b260(0x2b5)](0x0,_0x3286b2),_0x2c50a3[_0x31b260(0x129)](_0x3286b2,_0x3286b2,_0x3286b2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c50a3[_0x31b260(0xb1)](),_0x476132[_0x31b260(0x180)]&&(_0x2c50a3[_0x31b260(0x2d0)](),_0x2c50a3[_0x31b260(0x1ba)]=_0x476132[_0x31b260(0x180)],_0x476132['fillRule']===_0x31b260(0x244)?_0x2c50a3[_0x31b260(0x180)](_0x31b260(0x244)):_0x2c50a3[_0x31b260(0x180)](),_0x2c50a3[_0x31b260(0xdb)]());}var yn=class e extends _0x1f2d3f{constructor(_0x52dbaf,_0xe4b8e7){const _0x5b6fa1=_0x4fce49;super(_0x52dbaf,_0xe4b8e7),G(this,_0x5b6fa1(0x184),void 0x0),G(this,'text',void 0x0),this[_0x5b6fa1(0x184)]=_0xe4b8e7==null?void 0x0:_0xe4b8e7['color'],this['text']=_0xe4b8e7==null?void 0x0:_0xe4b8e7[_0x5b6fa1(0xe3)];}static['drawWith'](_0x3f5d0a,_0x4ce034){const _0x240462=_0x4fce49;let {text:_0x57c756,color:_0x49a559}=_0x4ce034;_0x3f5d0a[_0x240462(0x2d0)](),_0x3f5d0a[_0x240462(0xf6)]=_0x240462(0x1c6);let _0x264dc7=_0x3f5d0a[_0x240462(0x231)](_0x57c756)[_0x240462(0x19a)];if(vn(_0x3f5d0a,{'height':0x14,'radius':0x4,'width':Math[_0x240462(0xca)](_0x264dc7+0x8,0xc8),'fill':_0x49a559,'evented':!0x1}),_0x3f5d0a[_0x240462(0x1ba)]=_0x240462(0xc5),_0x264dc7>0xc0){let _0x3e3e55='',_0x2700b=0x0;for(let _0x4cf10b of _0x57c756){let _0x3062e2=_0x3f5d0a[_0x240462(0x231)](_0x4cf10b)[_0x240462(0x19a)];if(_0x2700b+_0x3062e2<=0xc0-_0x3f5d0a[_0x240462(0x231)](_0x240462(0x21e))[_0x240462(0x19a)])_0x3e3e55+=_0x4cf10b,_0x2700b+=_0x3062e2;else{_0x3e3e55+=_0x240462(0x21e);break;}}_0x3f5d0a['fillText'](_0x3e3e55,0x4,0xf);}else _0x3f5d0a[_0x240462(0x1c0)](_0x57c756,0x4,0xf);_0x3f5d0a[_0x240462(0xdb)]();}[_0x4fce49(0x122)](_0x1bb0eb){const _0x95b8d9=_0x4fce49;e[_0x95b8d9(0x275)](_0x1bb0eb,this);}};const bn=_0x4fce49(0x12b);var xn=class{constructor(_0x4ab6ce,_0x2b5957,_0x1a15e1,_0x5ad0ae){const _0xefc12d=_0x4fce49;this[_0xefc12d(0x1f6)]=_0x4ab6ce,this[_0xefc12d(0x266)]=_0x2b5957,this[_0xefc12d(0x2db)]=_0x1a15e1,this[_0xefc12d(0x13f)]=_0x5ad0ae,G(this,_0xefc12d(0x259),[]),G(this,_0xefc12d(0x2b2),null),G(this,_0xefc12d(0x2eb),null),G(this,'_anchorDot',null),G(this,'_hideTimer',null),G(this,'_eventUnsubscribe',null),this[_0xefc12d(0x2c1)]();}set[_0x4fce49(0x2a1)](_0x2669ec){const _0x1684cd=_0x4fce49;_0x2669ec?(this['_anchorDot']&&this[_0x1684cd(0x1df)][_0x1684cd(0x125)](),this[_0x1684cd(0x2eb)]&&this[_0x1684cd(0x2eb)][_0x1684cd(0x229)]()):(this[_0x1684cd(0x1df)]&&this[_0x1684cd(0x1df)][_0x1684cd(0x229)](),this[_0x1684cd(0x2eb)]&&this[_0x1684cd(0x2eb)]['hide']());}[_0x4fce49(0x2a9)](){const _0xb3c5e3=_0x4fce49;for(let _0x30e740 of this[_0xb3c5e3(0x259)])_0x30e740[_0xb3c5e3(0x2a9)]();this[_0xb3c5e3(0x2eb)]&&this[_0xb3c5e3(0x2eb)]['dispose'](),this[_0xb3c5e3(0x1df)]&&this[_0xb3c5e3(0x1df)][_0xb3c5e3(0x2a9)](),this[_0xb3c5e3(0x2b2)]&&this[_0xb3c5e3(0x2b2)]['dispose'](),this[_0xb3c5e3(0x1a6)]&&this[_0xb3c5e3(0x1a6)]();}[_0x4fce49(0x2c1)](){const _0x4eaa0b=_0x4fce49;let {_docSkeleton:_0x201da,_document:_0x1652eb}=this,{color:_0x389d99,name:_0x549ce0,ranges:_0x8dff56}=this[_0x4eaa0b(0x1f6)],_0x2dcd9f=_0x1652eb['getOffsetConfig'](),{docsLeft:_0x4ff92e,docsTop:_0x36c13b}=_0x2dcd9f,_0x19b95f=new _0x5e5781(_0x2dcd9f,_0x201da);for(let {startOffset:_0x3eca5d,endOffset:_0x3f81a0,rangeType:_0x1d8396,segmentId:_0x17cb93,segmentPage:_0x5938e8,collapsed:_0x522608,isActive:_0x142aed}of _0x8dff56){let _0x4b280d=_0x201da[_0x4eaa0b(0x1af)](_0x3eca5d,!0x0,_0x17cb93,_0x5938e8),_0x27533f=_0x201da['findNodePositionByCharIndex'](_0x3f81a0,!0x0,_0x17cb93,_0x5938e8);if(_0x27533f==null&&(_0x27533f=_0x201da[_0x4eaa0b(0x1af)](_0x3f81a0-0x1,!0x1,_0x17cb93,_0x5938e8)),_0x142aed){let {contentBoxPointGroup:_0x4dcc85}=_0x19b95f[_0x4eaa0b(0x2f2)](_0x27533f,_0x27533f);if(_0x4dcc85[_0x4eaa0b(0x26a)]===0x0)continue;this[_0x4eaa0b(0x26d)](_0x389d99,_0x4dcc85,_0x4ff92e,_0x36c13b,_0x549ce0),this['_eventUnsubscribe']=this[_0x4eaa0b(0x1b1)]();}if(_0x4b280d&&_0x27533f){if(_0x1d8396===_0x3ab031[_0x4eaa0b(0x1de)]){var _0x58101e;let {pointGroup:_0x254772}=(_0x58101e=new _0x337625(_0x2dcd9f,_0x201da)['getRangePointData'](_0x4b280d,_0x27533f))==null?{}:_0x58101e;if(_0x254772==null||_0x254772[_0x4eaa0b(0x26a)]===0x0)continue;this[_0x4eaa0b(0x126)](_0x389d99,_0x254772,_0x4ff92e,_0x36c13b);}else{if(!_0x522608){let {borderBoxPointGroup:_0x5f2d78}=_0x19b95f[_0x4eaa0b(0x2f2)](_0x4b280d,_0x27533f);if(_0x5f2d78[_0x4eaa0b(0x26a)]===0x0)continue;this[_0x4eaa0b(0x2c3)](_0x389d99,_0x5f2d78,_0x4ff92e,_0x36c13b);}}}}}[_0x4fce49(0x26d)](_0xc3c0bf,_0x4be809,_0x870bd9,_0x2d89b0,_0x30c488){const _0x5c37aa=_0x4fce49;let {left:_0x38ec70,top:_0x534294,height:_0x3366f1}=this[_0x5c37aa(0x2b4)](_0x4be809),_0x2dc919=1.5/this[_0x5c37aa(0x25f)](),_0x1fecae=new _0x2aadca(bn+_0x1321c7(0x6),{'left':_0x38ec70+_0x870bd9-_0x2dc919,'top':_0x534294+_0x2d89b0,'height':_0x3366f1,'width':1.5,'fill':_0xc3c0bf||_0x530790(_0x3b0241[_0x5c37aa(0x2dd)],0x0),'strokeWidth':_0x2dc919,'stroke':_0x5c37aa(0x15e),'evented':!0x0});this[_0x5c37aa(0x2b2)]=_0x1fecae,this[_0x5c37aa(0x266)][_0x5c37aa(0x2ce)](_0x1fecae,_0x316337);let _0x3f3dda=new _0x2aadca(bn+_0x1321c7(0x6),{'left':_0x38ec70+_0x870bd9-_0x2dc919,'top':_0x534294+_0x2d89b0-0x4/0x2,'height':0x4,'width':0x4,'fill':_0xc3c0bf||_0x530790(_0x3b0241[_0x5c37aa(0x2dd)],0x0),'strokeWidth':0x0,'stroke':_0xc3c0bf||_0x530790(_0x3b0241[_0x5c37aa(0x2dd)],0x0),'evented':!0x1});this[_0x5c37aa(0x1df)]=_0x3f3dda,this[_0x5c37aa(0x266)][_0x5c37aa(0x2ce)](_0x3f3dda,_0x316337);let _0xb3a785=new yn(bn+_0x1321c7(0x6),{'left':_0x38ec70+_0x870bd9-_0x2dc919,'top':_0x534294+_0x2d89b0-0x14,'text':_0x30c488,'color':_0xc3c0bf});this[_0x5c37aa(0x2eb)]=_0xb3a785,this[_0x5c37aa(0x266)][_0x5c37aa(0x2ce)](_0xb3a785,_0x316337),this['_hover']=!0x1;}[_0x4fce49(0x1b1)](){const _0x20f852=_0x4fce49;let _0x5e7d31=this['_anchor']['onPointerEnter$']['subscribeEvent'](()=>{const _0x4ba9d0=_0x2954;this[_0x4ba9d0(0x2a1)]=!0x0;}),_0x4b35f8=this[_0x20f852(0x2b2)][_0x20f852(0x210)][_0x20f852(0x136)](()=>{const _0x5da5f8=_0x20f852;this[_0x5da5f8(0x16b)]&&clearTimeout(this[_0x5da5f8(0x16b)]),this[_0x5da5f8(0x16b)]=setTimeout(()=>{const _0x40521d=_0x5da5f8;this[_0x40521d(0x2a1)]=!0x1;},0x7d0);});return()=>{const _0x2bcecc=_0x20f852;_0x5e7d31[_0x2bcecc(0x21d)](),_0x4b35f8['unsubscribe']();};}['_drawTextRange'](_0x154007,_0x2b332b,_0x1ea690,_0x58a6b8){const _0x498c6c=_0x4fce49;let _0x4da217=0.2,_0x3a4823=new _0x4ad359(_0x154007)[_0x498c6c(0x188)](_0x4da217)['toRgbString'](),_0x222967=new _0x541921('collab-text-range-'+_0x1321c7(0x6),{'pointsGroup':_0x2b332b,'fill':_0x3a4823||_0x530790(_0x3b0241['black'],_0x4da217),'left':_0x1ea690,'top':_0x58a6b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x498c6c(0x259)][_0x498c6c(0xe9)](_0x222967),this[_0x498c6c(0x266)][_0x498c6c(0x2ce)](_0x222967,_0x316337);}[_0x4fce49(0x126)](_0x5db178,_0x510104,_0x223ef1,_0x2cbf70){const _0x3ddbb7=_0x4fce49;let _0xd8c9b=0.2,_0xe40474=new _0x4ad359(_0x5db178)[_0x3ddbb7(0x188)](_0xd8c9b)['toRgbString'](),_0x595bf2=new _0x541921('collab-rect-range-'+_0x1321c7(0x6),{'pointsGroup':_0x510104,'fill':_0xe40474||_0x530790(_0x3b0241[_0x3ddbb7(0x2dd)],_0xd8c9b),'left':_0x223ef1,'top':_0x2cbf70,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3ddbb7(0x259)][_0x3ddbb7(0xe9)](_0x595bf2),this[_0x3ddbb7(0x266)][_0x3ddbb7(0x2ce)](_0x595bf2,_0x316337);}[_0x4fce49(0x2b4)](_0x54545e){let _0x31af32=_0x54545e[0x0],_0x1a0086=_0x31af32[0x0],_0x175f6d=_0x31af32[0x2],{x:_0x318f64,y:_0x2227da}=_0x1a0086,{x:_0x20e359,y:_0xdadbb8}=_0x175f6d;return{'left':_0x318f64,'top':_0x2227da,'width':_0x20e359-_0x318f64,'height':_0xdadbb8-_0x2227da};}['_getScale'](){const _0x4f84cd=_0x4fce49;let {scaleX:_0x4e9c02,scaleY:_0x151a54}=this[_0x4f84cd(0x266)][_0x4f84cd(0xb7)]();return Math[_0x4f84cd(0x171)](_0x4e9c02,_0x151a54);}};let Sn=class extends _0x3ba365{constructor(_0x1edb74,_0x30738b,_0x268708,_0x577ff9,_0x596be6){const _0x13174b=_0x4fce49;super(),this[_0x13174b(0x1e5)]=_0x1edb74,this['_docSkeletonManagerService']=_0x30738b,this[_0x13174b(0x1a1)]=_0x268708,this['_commandService']=_0x577ff9,this[_0x13174b(0xd1)]=_0x596be6,G(this,'_cursorShapes',[]),G(this,_0x13174b(0x120),[]),this[_0x13174b(0x2ad)]();}[_0x4fce49(0x2ad)](){const _0x35146f=_0x4fce49;let _0x20dc0c=this[_0x35146f(0x1e5)]['unitId'],_0x524ee4=this[_0x35146f(0xf0)];this['disposeWithMe'](_0xeb1450([this[_0x35146f(0x1a1)][_0x35146f(0x1d6)](_0x20dc0c),this['_themeService'][_0x35146f(0x290)]])[_0x35146f(0x1fd)](_0x2cc7a2(([_0x881d9a,_0x4bba2f])=>({'skeleton':_0x524ee4[_0x35146f(0x262)](),'cursors':[..._0x881d9a[_0x35146f(0x1c7)]()]['flatMap'](_0x2d1018=>({..._0x2d1018,'color':this[_0x35146f(0xd1)][_0x35146f(0x131)](_0x2d1018[_0x35146f(0x184)])}))})))[_0x35146f(0x14c)](_0x5f3528=>{const _0x1fa2fc=_0x35146f;if(this[_0x1fa2fc(0xe4)](),_0x5f3528){let {skeleton:_0x5e4c56,cursors:_0x55f5d3}=_0x5f3528;this[_0x1fa2fc(0x16f)](_0x5e4c56,_0x55f5d3);}})),this[_0x35146f(0xf3)](),this['_initCommandExecutedListener']();}[_0x4fce49(0x16f)](_0x202cf8,_0x237744){const _0x34808f=_0x4fce49;let {scene:_0x1e29e8,mainComponent:_0x14cec9}=this[_0x34808f(0x1e5)],_0x3bb1a1=_0x237744[_0x34808f(0x117)](_0x550003=>new xn(_0x550003,_0x1e29e8,_0x202cf8,_0x14cec9));this[_0x34808f(0x292)]=_0x3bb1a1,this['_cursors']=_0x237744;}[_0x4fce49(0x2e5)](){const _0xa8c45=_0x4fce49;this[_0xa8c45(0xe4)]();let {scene:_0x7d777,mainComponent:_0x855dd6}=this[_0xa8c45(0x1e5)],_0x3217eb=this[_0xa8c45(0xf0)][_0xa8c45(0x262)](),_0x4dc9ca=this[_0xa8c45(0x120)][_0xa8c45(0x117)](_0x21e134=>new xn(_0x21e134,_0x7d777,_0x3217eb,_0x855dd6));this[_0xa8c45(0x292)]=_0x4dc9ca;}[_0x4fce49(0xe4)](){const _0xee2a98=_0x4fce49;this[_0xee2a98(0x292)][_0xee2a98(0x2ca)](_0x1c8590=>_0x1c8590[_0xee2a98(0x2a9)]()),this['_cursorShapes']=[];}[_0x4fce49(0x13a)](){const _0x466f8f=_0x4fce49;let _0x179545=[_0x38eb92['id']];this[_0x466f8f(0x20b)](this['_commandService'][_0x466f8f(0x1a8)](_0x16dfe7=>{const _0x59ce42=_0x466f8f;_0x179545[_0x59ce42(0x1fc)](_0x16dfe7['id'])&&_0x16dfe7[_0x59ce42(0x1dd)][_0x59ce42(0x246)]===this['_context'][_0x59ce42(0x246)]&&this[_0x59ce42(0x2e5)]();}));}[_0x4fce49(0xf3)](){const _0x1c13f1=_0x4fce49;this[_0x1c13f1(0x20b)](_0x4e813d(this[_0x1c13f1(0x1e5)]['engine'][_0x1c13f1(0x25c)])[_0x1c13f1(0x1fd)](_0x39cf12(_0x159d14=>_0x159d14[_0x1c13f1(0x20a)]===_0x48c482[_0x1c13f1(0xaf)]),_0x1b75d1(0x10))[_0x1c13f1(0x14c)](()=>{const _0x200352=_0x1c13f1;this[_0x200352(0x2e5)]();}));}};Sn=q([K(0x1,_0x5e7f17(_0x2b9af4)),K(0x2,_0x5e7f17(X)),K(0x3,_0x3d1e31),K(0x4,_0x5e7f17(_0x3ba539))],Sn);var Cn=class extends _0x1f2d3f{constructor(_0x5a8ee4,_0x887db2){const _0x287d06=_0x4fce49;if(super(_0x5a8ee4,_0x887db2),G(this,'_color',void 0x0),G(this,_0x287d06(0x217),!0x1),G(this,_0x287d06(0x1c5),void 0x0),G(this,_0x287d06(0x10d),''),G(this,_0x287d06(0x2ee),_0x287d06(0x158)),G(this,_0x287d06(0xc9),void 0x0),G(this,_0x287d06(0xba),void 0x0),G(this,_0x287d06(0xd8),void 0x0),G(this,'_highlightSecond',0x4),G(this,_0x287d06(0x27f),void 0x0),G(this,_0x287d06(0x218),void 0x0),G(this,_0x287d06(0x26b),!0x0),G(this,'_offsetY',0x0),_0x887db2){var _0x23e4d0;if(this[_0x287d06(0x235)](_0x887db2),_0x887db2[_0x287d06(0xe7)]&&((_0x23e4d0=_0x887db2[_0x287d06(0x10b)])==null?this['_highlightSecond']:_0x23e4d0)){var _0x3824ee;this['_startBlinking']((_0x3824ee=_0x887db2['highlightSecond'])==null?this['_highlightSecond']:_0x3824ee);}}this[_0x287d06(0xde)][_0x287d06(0x136)](()=>this[_0x287d06(0x235)]({'hovered':!0x0})),this[_0x287d06(0x210)][_0x287d06(0x136)](()=>this[_0x287d06(0x235)]({'hovered':!0x1}));}['setOffsetY'](_0x2d3564){const _0x2fc3bd=_0x4fce49;this[_0x2fc3bd(0x278)]=_0x2d3564;}['setShapeProps'](_0x5b3b3e){const _0x32566f=_0x4fce49;var _0x30751e,_0x20d2d9,_0x55a43b,_0xf6179f,_0x1e4946,_0x1f4ac1,_0x4aae57;this[_0x32566f(0x298)]=(_0x30751e=_0x5b3b3e[_0x32566f(0x184)])==null?this[_0x32566f(0x298)]:_0x30751e,this[_0x32566f(0x217)]=(_0x20d2d9=_0x5b3b3e[_0x32566f(0x2bd)])==null?this[_0x32566f(0x217)]:_0x20d2d9,this['_range']=(_0x55a43b=_0x5b3b3e[_0x32566f(0x2cf)])==null?this[_0x32566f(0x1c5)]:_0x55a43b,this[_0x32566f(0x10d)]=(_0xf6179f=_0x5b3b3e[_0x32566f(0x2d8)])==null?this['_name']:_0xf6179f,this[_0x32566f(0x2ee)]=(_0x1e4946=_0x5b3b3e[_0x32566f(0x190)])==null?this['_labelPosition']:_0x1e4946,this[_0x32566f(0xc9)]=(_0x1f4ac1=_0x5b3b3e[_0x32566f(0x267)])==null?this[_0x32566f(0xc9)]:_0x1f4ac1,this[_0x32566f(0xba)]=(_0x4aae57=_0x5b3b3e['showText'])==null?this[_0x32566f(0xba)]:_0x4aae57,_0x5b3b3e[_0x32566f(0x10b)]!==void 0x0&&(this[_0x32566f(0x222)]=_0x5b3b3e['highlightSecond']),_0x5b3b3e[_0x32566f(0xe7)]!==void 0x0&&(this[_0x32566f(0xd8)]=_0x5b3b3e[_0x32566f(0xe7)]),_0x5b3b3e[_0x32566f(0x27a)]!==void 0x0&&(this['_offsetY']=_0x5b3b3e[_0x32566f(0x27a)]),this[_0x32566f(0xc1)]({'width':_0x5b3b3e['width'],'height':_0x5b3b3e['height']});}[_0x4fce49(0x149)](_0x61577){const _0x57b133=_0x4fce49;let {row:_0x547dff,column:_0x39d703}=_0x61577;if(_0x547dff>=this['_range']['startRow']&&_0x547dff<=this[_0x57b133(0x1c5)]['endRow']&&_0x39d703>=this[_0x57b133(0x1c5)][_0x57b133(0x11d)]&&_0x39d703<=this[_0x57b133(0x1c5)]['endColumn']){this[_0x57b133(0x235)]({'hovered':!0x0});return;}this[_0x57b133(0x235)]({'hovered':!0x1});}['_startBlinking'](_0x79ba38){const _0x18dcfa=_0x4fce49;this[_0x18dcfa(0x13e)](),this[_0x18dcfa(0x26b)]=!0x0,this[_0x18dcfa(0x218)]=window['setInterval'](()=>{const _0x293949=_0x18dcfa;this['_isBlinkVisible']=!this[_0x293949(0x26b)],this[_0x293949(0x11c)](!0x0);},0x1f4),this[_0x18dcfa(0x27f)]=window['setTimeout'](()=>{const _0x16ef2c=_0x18dcfa;this['_stopBlinking'](),this[_0x16ef2c(0x26b)]=!0x0,this['makeDirty'](!0x0);},_0x79ba38*0x3e8);}[_0x4fce49(0x13e)](){const _0x1b4b00=_0x4fce49;this[_0x1b4b00(0x218)]&&(window['clearInterval'](this[_0x1b4b00(0x218)]),this['_blinkIntervalTimer']=void 0x0),this['_blinkTimer']&&(window[_0x1b4b00(0x175)](this[_0x1b4b00(0x27f)]),this[_0x1b4b00(0x27f)]=void 0x0);}[_0x4fce49(0x1e6)](_0x44046d){return!0x1;}[_0x4fce49(0x2a9)](){this['_stopBlinking'](),super['dispose']();}[_0x4fce49(0x122)](_0x3068d4){const _0x2739d2=_0x4fce49;let _0x2b7395=this[_0x2739d2(0x298)],_0x310b41=this[_0x2739d2(0xc9)];if(this['_highlight']&&!this[_0x2739d2(0x26b)]&&(_0x2b7395=this[_0x2739d2(0x1b6)](this[_0x2739d2(0x298)]),_0x310b41=this['_backgroundColor']?this['_getLighterColor'](this[_0x2739d2(0xc9)]):void 0x0),_0x2aadca[_0x2739d2(0x275)](_0x3068d4,{'width':this[_0x2739d2(0x19a)],'height':this[_0x2739d2(0xbd)],'strokeWidth':this[_0x2739d2(0x1b4)]||1.5,'stroke':_0x2b7395,'evented':!0x1,'fill':_0x310b41}),this[_0x2739d2(0x217)]||this['_showText']){var _0x367590;_0x3068d4[_0x2739d2(0x2d0)](),_0x3068d4[_0x2739d2(0x107)](0x1,0x0,0x0,0x1,this[_0x2739d2(0x19a)],(this[_0x2739d2(0x2ee)]===_0x2739d2(0x242)?0x0:-0x14)+((_0x367590=this[_0x2739d2(0x278)])==null?0x0:_0x367590)),yn[_0x2739d2(0x275)](_0x3068d4,{'text':this['_name'],'color':_0x2b7395}),_0x3068d4[_0x2739d2(0xdb)]();}}[_0x4fce49(0x1b6)](_0x2b469a){const _0xc8061c=_0x4fce49;return _0x2b469a[_0xc8061c(0x245)]('#')?_0xc8061c(0xfd)+Number['parseInt'](_0x2b469a[_0xc8061c(0x11f)](0x1,0x3),0x10)+',\x20'+Number[_0xc8061c(0x16e)](_0x2b469a[_0xc8061c(0x11f)](0x3,0x5),0x10)+',\x20'+Number[_0xc8061c(0x16e)](_0x2b469a[_0xc8061c(0x11f)](0x5,0x7),0x10)+_0xc8061c(0x230):_0x2b469a[_0xc8061c(0x245)]('rgba')?_0x2b469a[_0xc8061c(0x14f)](/[\d.]+\)$/g,_0xc8061c(0x1ca)):_0x2b469a[_0xc8061c(0x245)](_0xc8061c(0xe5))?_0x2b469a[_0xc8061c(0x14f)](_0xc8061c(0xe5),_0xc8061c(0x198))[_0xc8061c(0x14f)](')',_0xc8061c(0x230)):_0x2b469a;}};let wn=class extends _0x3ba365{constructor(_0x32506c,_0x3f57b2,_0x56ba23,_0x55ec6a){const _0x12a577=_0x4fce49;super(),this[_0x12a577(0x1e5)]=_0x32506c,this[_0x12a577(0x181)]=_0x3f57b2,this[_0x12a577(0x1a1)]=_0x56ba23,this[_0x12a577(0xd1)]=_0x55ec6a,G(this,_0x12a577(0x120),new Set()),G(this,'_lastPointer',null),G(this,_0x12a577(0x1ac),null),this['_init']();}['_init'](){const _0x3c02d9=_0x4fce49;this[_0x3c02d9(0x181)][_0x3c02d9(0xc8)][_0x3c02d9(0x1fd)](_0x53e7b7(this['dispose$']),_0x4ecc19(_0xcd0967=>{const _0x27b217=_0x3c02d9;if(_0xcd0967){let _0x274cb0=_0xcd0967[_0x27b217(0x258)];return _0xeb1450(this['_collabCursorController'][_0x27b217(0x1d6)](this['_context'][_0x27b217(0x246)]),this[_0x27b217(0xd1)][_0x27b217(0x290)])[_0x27b217(0x1fd)](_0x2cc7a2(([_0x4ec3e9,_0x73939])=>{const _0x1bb193=_0x27b217;let _0x3483ad=new Map();return _0x4ec3e9[_0x1bb193(0x2ca)]((_0x448056,_0x1f6416)=>{const _0x497ee8=_0x1bb193;if(_0x448056[_0x497ee8(0x281)]===_0x274cb0){let _0x3de86e={..._0x448056};_0x3de86e[_0x497ee8(0x184)]=this['_themeService'][_0x497ee8(0x131)](_0x448056[_0x497ee8(0x184)]),_0x3483ad[_0x497ee8(0x170)](_0x1f6416,_0x3de86e);}}),{'skeleton':_0xcd0967,'cursors':_0x3483ad};}));}return _0x349657({'skeleton':null,'cursors':new Map()});}))[_0x3c02d9(0x14c)](({skeleton:_0x3338d7,cursors:_0x29ba84})=>{const _0x39db5a=_0x3c02d9;this[_0x39db5a(0xe4)](),_0x3338d7&&this[_0x39db5a(0x16f)](_0x3338d7,_0x29ba84);}),this[_0x3c02d9(0x20b)](this['_sheetSkeletonManagerService'][_0x3c02d9(0xc8)][_0x3c02d9(0x1fd)](_0x53e7b7(this[_0x3c02d9(0x1ce)]))[_0x3c02d9(0x14c)](_0x33d7dd=>{const _0x58cf3c=_0x3c02d9;var _0x36363d;if(_0x33d7dd==null)return;(_0x36363d=this[_0x58cf3c(0x1ac)])==null||_0x36363d['unsubscribe'](),this[_0x58cf3c(0x1ac)]=null;let {skeleton:_0x3f8f71}=_0x33d7dd,{scene:_0xcec31f}=this[_0x58cf3c(0x1e5)];this[_0x58cf3c(0x1ac)]=_0xcec31f[_0x58cf3c(0x155)][_0x58cf3c(0x136)](_0x58951d(_0x2b1eda=>{const _0x4e21b3=_0x58cf3c;var _0x5ef715,_0x41f949;let {offsetX:_0x4d31a2,offsetY:_0x1eddc3}=_0x2b1eda,{x:_0x5195b9,y:_0x10cc71}=_0xcec31f[_0x4e21b3(0x287)](_0x343cd2[_0x4e21b3(0x1da)]([_0x4d31a2,_0x1eddc3])),{scaleX:_0x390208,scaleY:_0x49fb54}=_0xcec31f[_0x4e21b3(0xb7)](),_0x1362ed=_0xcec31f['getViewport'](_0x27e8ed[_0x4e21b3(0x23d)]),_0x260e0b=_0xcec31f['getVpScrollXYInfoByPosToVp'](_0x343cd2['FromArray']([_0x5195b9,_0x10cc71]),_0x1362ed),_0x29a157=_0x3f8f71[_0x4e21b3(0x20f)](_0x4d31a2,_0x1eddc3,_0x390208,_0x49fb54,_0x260e0b);((_0x5ef715=this[_0x4e21b3(0x1a3)])==null?void 0x0:_0x5ef715['column'])===_0x29a157[_0x4e21b3(0x10a)]&&((_0x41f949=this['_lastPointer'])==null?void 0x0:_0x41f949['row'])===_0x29a157[_0x4e21b3(0xd2)]||this[_0x4e21b3(0x120)][_0x4e21b3(0x2ca)](_0x42dc65=>{const _0x1c7b99=_0x4e21b3;_0x42dc65[_0x1c7b99(0x149)](_0x29a157);});},0x64));})),this[_0x3c02d9(0x20b)](_0xf76a73(()=>{const _0x1dce72=_0x3c02d9;var _0x191031;(_0x191031=this[_0x1dce72(0x1ac)])==null||_0x191031[_0x1dce72(0x21d)](),this['_pointerMoveDisposable']=null;}));}['_updateCollabCursors'](_0x5dba6d,_0x219c87){const _0x417b7b=_0x4fce49;let _0x1b3522=this[_0x417b7b(0x181)][_0x417b7b(0x212)]();if(!_0x1b3522)return;let _0x46306b=this['_getSheetObject']();if(!_0x46306b)return;this[_0x417b7b(0x120)][_0x417b7b(0x2ca)](_0x2c5eae=>{const _0x326eae=_0x417b7b;_0x2c5eae[_0x326eae(0x11c)]();});let {scene:_0x518636}=_0x46306b,_0x28600a=Tn(Array[_0x417b7b(0x2b7)](_0x219c87[_0x417b7b(0x1c7)]()))[_0x417b7b(0x117)](_0x52fb5d=>{const _0x189528=_0x417b7b;let {color:_0x734d0a,range:_0x2c4be6,name:_0x30fb54,selection:_0x556a98,sheetID:_0x4468b4}=_0x52fb5d,{startColumn:_0x40e44d,startRow:_0x5f4a6b,endColumn:_0x12e20f,endRow:_0x1fdb75}=_0x2c4be6,_0x3eb971=_0x42e801(_0x5f4a6b,_0x40e44d,_0x518636,_0x1b3522),_0x75c4aa=_0x42e801(_0x1fdb75,_0x12e20f,_0x518636,_0x1b3522),{columnHeaderHeightAndMarginTop:_0x444dcd}=_0x1b3522,{startX:_0x5c31b0,startY:_0x501215}=_0x3eb971,{endX:_0x4b2b64,endY:_0x5f0596}=_0x75c4aa,_0x1c5a08=_0x4b2b64-_0x5c31b0,_0x2d665f=_0x5f0596-_0x501215;return new Cn(_0x30fb54,{'labelPosition':_0x501215-_0x444dcd>=0x14?_0x189528(0x158):_0x189528(0x242),'sheetID':_0x4468b4,'range':_0x2c4be6,'color':_0x734d0a,'name':_0x30fb54,'selection':_0x556a98,'left':_0x5c31b0,'top':_0x501215,'width':_0x1c5a08,'height':_0x2d665f,'evented':!0x1,'zIndex':0x1389});});_0x518636[_0x417b7b(0x2c2)](_0x28600a,0x1),this[_0x417b7b(0x120)]=new Set(_0x28600a);}[_0x4fce49(0xe4)](){const _0x3c55c5=_0x4fce49;var _0x270ab7;(_0x270ab7=this[_0x3c55c5(0x120)])==null||_0x270ab7[_0x3c55c5(0x2ca)](_0x568d7a=>_0x568d7a[_0x3c55c5(0x2a9)]());}[_0x4fce49(0x109)](){const _0x44fe5d=_0x4fce49;return _0x2ff902(this[_0x44fe5d(0x1e5)][_0x44fe5d(0x248)],this['_context']);}};wn=q([K(0x1,_0x5e7f17(_0x3ba684)),K(0x2,_0x5e7f17(X)),K(0x3,_0x5e7f17(_0x3ba539))],wn);function Tn(_0x4636f4){const _0xe44888=_0x4fce49;let _0x38ccdc=new Map();return _0x4636f4[_0xe44888(0x2ca)](_0x38d5e7=>{const _0x7c59ff=_0xe44888;if(_0x38ccdc[_0x7c59ff(0x140)](_0x38d5e7[_0x7c59ff(0x23a)])){let _0x566708=_0x38ccdc[_0x7c59ff(0x1c2)](_0x38d5e7['selection']);_0x566708[_0x7c59ff(0x2d8)]+=',\x20'+_0x38d5e7[_0x7c59ff(0x2d8)];}else _0x38ccdc[_0x7c59ff(0x170)](_0x38d5e7['selection'],_0x38d5e7);}),Array['from'](_0x38ccdc[_0xe44888(0x1c7)]());}const En=0x138a;var Dn=class extends _0x1f2d3f{constructor(_0x16551b,_0x14c98e){const _0x46b614=_0x4fce49;super(_0x16551b,{..._0x14c98e,'evented':!0x1}),G(this,_0x46b614(0x298),'#4f46e5'),G(this,_0x46b614(0x10d),''),G(this,_0x46b614(0xba),!0x0),_0x14c98e&&this['setShapeProps'](_0x14c98e);}[_0x4fce49(0x235)](_0x54a6f3){const _0x5c204f=_0x4fce49;var _0x579eb5,_0x246073,_0x545796,_0x2c5dd8,_0x2feb85,_0x593a40,_0x1d7ea3,_0x3563ba;this[_0x5c204f(0x298)]=(_0x579eb5=_0x54a6f3[_0x5c204f(0x184)])==null?this['_color']:_0x579eb5,this[_0x5c204f(0x10d)]=(_0x246073=_0x54a6f3[_0x5c204f(0x2d8)])==null?this[_0x5c204f(0x10d)]:_0x246073,this['_showText']=(_0x545796=_0x54a6f3[_0x5c204f(0x12c)])==null?this[_0x5c204f(0xba)]:_0x545796,this[_0x5c204f(0x2d5)]=!0x1,this[_0x5c204f(0xc1)]({'left':(_0x2c5dd8=_0x54a6f3[_0x5c204f(0x2e2)])==null?this[_0x5c204f(0x2e2)]:_0x2c5dd8,'top':(_0x2feb85=_0x54a6f3['top'])==null?this[_0x5c204f(0x158)]:_0x2feb85,'width':(_0x593a40=_0x54a6f3['width'])==null?this['width']:_0x593a40,'height':(_0x1d7ea3=_0x54a6f3[_0x5c204f(0xbd)])==null?this['height']:_0x1d7ea3,'angle':(_0x3563ba=_0x54a6f3[_0x5c204f(0x285)])==null?this[_0x5c204f(0x285)]:_0x3563ba});}[_0x4fce49(0x122)](_0xe4acbc){const _0x5f456b=_0x4fce49;_0xe4acbc['save'](),_0xe4acbc[_0x5f456b(0x299)]=this[_0x5f456b(0x298)],_0xe4acbc['lineWidth']=this[_0x5f456b(0x1b4)]||1.5,_0xe4acbc['setLineDash']([0x6,0x4]),_0xe4acbc[_0x5f456b(0x189)](0x0,0x0,this[_0x5f456b(0x19a)],this[_0x5f456b(0xbd)]),_0xe4acbc['restore'](),this[_0x5f456b(0xba)]&&(_0xe4acbc[_0x5f456b(0x2d0)](),_0xe4acbc['transform'](0x1,0x0,0x0,0x1,this[_0x5f456b(0x19a)],-0x14),yn[_0x5f456b(0x275)](_0xe4acbc,{'text':this[_0x5f456b(0x10d)],'color':this[_0x5f456b(0x298)]}),_0xe4acbc[_0x5f456b(0xdb)]());}};let On=class extends _0x3ba365{constructor(_0x3e92d8,_0x54f5b1,_0x5c7b17){const _0x389ec3=_0x4fce49;super(),this[_0x389ec3(0x1e5)]=_0x3e92d8,this[_0x389ec3(0x1a1)]=_0x54f5b1,this[_0x389ec3(0xd1)]=_0x5c7b17,G(this,'_cursors',new Set()),G(this,_0x389ec3(0x253),!0x1),G(this,'_isApplyingOverlays',!0x1),G(this,_0x389ec3(0x2d2),new Map()),this['_init']();}['dispose'](){const _0x5b7981=_0x4fce49;this[_0x5b7981(0xe4)](),super['dispose']();}[_0x4fce49(0x2ad)](){const _0x14f6cc=_0x4fce49;let _0x308d8d=this['_context'][_0x14f6cc(0x248)][_0x14f6cc(0x1cf)][_0x14f6cc(0xe2)],_0x3dae86=this[_0x14f6cc(0x1a1)][_0x14f6cc(0x1d6)](this[_0x14f6cc(0x1e5)][_0x14f6cc(0x246)]);this[_0x14f6cc(0x20b)](_0xf76a73(_0xeb1450([_0x3dae86,_0x308d8d,this['_themeService']['currentTheme$']])[_0x14f6cc(0x1fd)](_0x340706(this['dispose$']))['subscribe'](([_0x244a68,_0xe5be18])=>{const _0x20b7c6=_0x14f6cc;let _0x14251e=new Map();_0x244a68[_0x20b7c6(0x2ca)]((_0x477e63,_0x4dfdd5)=>{const _0x1e9791=_0x20b7c6;_0x477e63['subUnitId']===_0xe5be18&&_0x14251e[_0x1e9791(0x170)](_0x4dfdd5,{..._0x477e63,'color':this[_0x1e9791(0xd1)][_0x1e9791(0x131)](_0x477e63[_0x1e9791(0x184)])});}),this['_latestCursors']=_0x14251e,this[_0x20b7c6(0x18b)]();})));let _0x11796d=this[_0x14f6cc(0x1e5)][_0x14f6cc(0x2b8)];this[_0x14f6cc(0x20b)](_0xf76a73(_0x11796d[_0x14f6cc(0x1d0)]['pipe'](_0x340706(this['dispose$']))['subscribe'](()=>{const _0x4decf3=_0x14f6cc;this[_0x4decf3(0x27b)]||this[_0x4decf3(0x18b)]();})));}[_0x4fce49(0x18b)](){const _0xd2cc63=_0x4fce49;this[_0xd2cc63(0x253)]||(this['_renderScheduled']=!0x0,Promise['resolve']()[_0xd2cc63(0x238)](()=>{const _0x1821fe=_0xd2cc63;this[_0x1821fe(0x253)]=!0x1,this[_0x1821fe(0x2c1)]();}));}['_render'](){const _0x40c763=_0x4fce49;var _0x591661;this[_0x40c763(0xe4)]();let _0x39a862=(_0x591661=this[_0x40c763(0x1e5)]['unit'][_0x40c763(0x1cf)][_0x40c763(0x2ab)]())==null?void 0x0:_0x591661['getId']();if(!_0x39a862)return;let _0x29c1c9=[];if(this['_latestCursors'][_0x40c763(0x2ca)]((_0x58d56d,_0x274a2c)=>{const _0x4a953f=_0x40c763;_0x58d56d[_0x4a953f(0xea)]===_0x39a862&&_0x58d56d[_0x4a953f(0x152)][_0x4a953f(0x2ca)](_0x120902=>{const _0x62ae32=_0x4a953f;let _0x571525=_0xd51333(_0x58d56d['unitId'],_0x58d56d[_0x62ae32(0xea)],_0x120902),_0xab062e=this[_0x62ae32(0xf5)](_0x571525);if(!_0xab062e)return;let _0x3173f9=this[_0x62ae32(0x272)](_0xab062e);_0x29c1c9['push'](new Dn(_0x62ae32(0x13c)+_0x274a2c+'-'+_0x120902,{..._0x58d56d,'left':_0x3173f9[_0x62ae32(0x2e2)],'top':_0x3173f9[_0x62ae32(0x158)],'width':_0x3173f9[_0x62ae32(0x19a)],'height':_0x3173f9[_0x62ae32(0xbd)],'angle':_0xab062e[_0x62ae32(0x285)],'evented':!0x1,'zIndex':En}));});}),_0x29c1c9[_0x40c763(0x26a)]===0x0){this[_0x40c763(0x1e5)][_0x40c763(0x2b8)][_0x40c763(0x11c)](!0x0);return;}this[_0x40c763(0x27b)]=!0x0,this[_0x40c763(0x1e5)][_0x40c763(0x2b8)][_0x40c763(0x2c2)](_0x29c1c9,En),this[_0x40c763(0x27b)]=!0x1,this[_0x40c763(0x120)]=new Set(_0x29c1c9),this[_0x40c763(0x1e5)][_0x40c763(0x2b8)]['makeDirty'](!0x0);}[_0x4fce49(0xe4)](){const _0x1a0bb6=_0x4fce49;let _0x2908d9=Array[_0x1a0bb6(0x2b7)](this[_0x1a0bb6(0x120)]);if(_0x2908d9['length']===0x0)return;let _0x10799a=this[_0x1a0bb6(0x1e5)][_0x1a0bb6(0x2b8)];_0x1a0bb6(0x1f4)in _0x10799a&&typeof _0x10799a[_0x1a0bb6(0x1f4)]==_0x1a0bb6(0x228)?_0x10799a[_0x1a0bb6(0x1f4)](_0x2908d9):_0x2908d9[_0x1a0bb6(0x2ca)](_0xeefbdd=>{const _0x53482f=_0x1a0bb6;_0x53482f(0x2f1)in _0x10799a&&typeof _0x10799a[_0x53482f(0x2f1)]=='function'?_0x10799a['removeObject'](_0xeefbdd):_0xeefbdd[_0x53482f(0x2a9)]();}),this[_0x1a0bb6(0x120)]['clear'](),_0x10799a[_0x1a0bb6(0x11c)](!0x0);}[_0x4fce49(0xf5)](_0x320c31){const _0x220f86=_0x4fce49;var _0x885607,_0x3edec8,_0xa6e79a;let _0x38debc=this[_0x220f86(0x1e5)][_0x220f86(0x2b8)];return(_0x885607=(_0x3edec8=(_0xa6e79a=_0x38debc[_0x220f86(0x1fa)])==null?void 0x0:_0xa6e79a[_0x220f86(0x2e8)](_0x38debc,_0x320c31))==null?_0x38debc[_0x220f86(0x167)](_0x320c31):_0x3edec8)==null?null:_0x885607;}['_getObjectBounds'](_0x25b6fa){const _0x52f449=_0x4fce49;var _0x891fc4,_0x552bfb;let _0x15584f=_0x25b6fa;return(_0x891fc4=(_0x552bfb=_0x15584f[_0x52f449(0x2a2)])==null?void 0x0:_0x552bfb[_0x52f449(0x2e8)](_0x15584f))==null?{'left':_0x25b6fa['left'],'top':_0x25b6fa[_0x52f449(0x158)],'width':_0x25b6fa[_0x52f449(0x19a)],'height':_0x25b6fa['height']}:_0x891fc4;}};On=q([K(0x1,_0x5e7f17(X)),K(0x2,_0x5e7f17(_0x3ba539))],On);let Z=class extends _0x3b1408{constructor(_0x322ec9,_0x4289c1,_0x2281b8,_0x397fff,_0x25e7a8,_0x51a7dd){const _0x34da28=_0x4fce49;super(),this['_beforeCloseService']=_0x322ec9,this[_0x34da28(0x1b3)]=_0x4289c1,this['_collaborationUIEventService']=_0x2281b8,this['_messageService']=_0x397fff,this[_0x34da28(0x1ec)]=_0x25e7a8,this[_0x34da28(0x241)]=_0x51a7dd,this[_0x34da28(0x29d)](),this['_initEvent']();}[_0x4fce49(0x29d)](){const _0x21a9a4=_0x4fce49;this[_0x21a9a4(0x20b)](this[_0x21a9a4(0x16d)][_0x21a9a4(0xce)](()=>{const _0x4ebbe9=_0x21a9a4;if(this[_0x4ebbe9(0x1b3)][_0x4ebbe9(0x1cb)][_0x4ebbe9(0x2e4)])return this[_0x4ebbe9(0x241)]['t'](_0x4ebbe9(0x240));}));}[_0x4fce49(0x118)](){const _0x43f4d6=_0x4fce49;this[_0x43f4d6(0x20b)](this[_0x43f4d6(0x1e8)][_0x43f4d6(0x197)][_0x43f4d6(0x14c)](_0x4beb44=>{const _0x1023df=_0x43f4d6;_0x4beb44['id']===_0x10468e[_0x1023df(0x1d2)]&&this[_0x1023df(0x270)][_0x1023df(0x229)]({'type':_0x5d4565[_0x1023df(0x196)],'content':this[_0x1023df(0x241)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x4beb44['id']===_0x10468e[_0x1023df(0x164)]&&this[_0x1023df(0x270)][_0x1023df(0x229)]({'type':_0x5d4565['Warning'],'content':this['_localeService']['t'](_0x1023df(0x123))}),_0x4beb44['id']===_0x10468e[_0x1023df(0xbb)]&&this[_0x1023df(0x1ec)][_0x1023df(0x229)]({'title':this[_0x1023df(0x241)]['t']('collaboration-client-ui.permission.title'),'content':this[_0x1023df(0x241)]['t'](_0x1023df(0x157)),'type':_0x1023df(0xf8),'duration':0x0}),_0x4beb44['id']===_0x10468e[_0x1023df(0x195)]&&this['_notificationService']['show']({'title':this[_0x1023df(0x241)]['t'](_0x1023df(0x1f8)),'content':this['_localeService']['t'](_0x1023df(0x216)),'type':_0x1023df(0xf8),'duration':0x0}),_0x4beb44['id']===_0x10468e[_0x1023df(0xcf)]&&this[_0x1023df(0x270)]['show']({'type':_0x5d4565[_0x1023df(0x196)],'content':this[_0x1023df(0x241)]['t'](_0x4beb44[_0x1023df(0x288)]||'')}),_0x4beb44['id']===_0x10468e['SOCKET_FAILED_RETRY']&&this[_0x1023df(0x270)]['show']({'type':_0x5d4565['Warning'],'content':this[_0x1023df(0x241)]['t'](_0x1023df(0x224))}),_0x4beb44['id']===_0x10468e[_0x1023df(0x20c)]&&this[_0x1023df(0x270)][_0x1023df(0x229)]({'type':_0x5d4565[_0x1023df(0x165)],'content':this['_localeService']['t'](_0x1023df(0x28c))}),_0x4beb44['id']===_0x10468e[_0x1023df(0xcd)]&&this[_0x1023df(0x270)][_0x1023df(0x229)]({'type':_0x5d4565[_0x1023df(0x165)],'content':this[_0x1023df(0x241)]['t'](_0x1023df(0xdf))});}));}};Z=q([K(0x0,_0x1ad179),K(0x1,_0x223121),K(0x2,_0x5e7f17(_0xe59bf2)),K(0x3,_0x5f57d5),K(0x4,_0x46bdef),K(0x5,_0x5e7f17(_0x2f08d4))],Z);let kn=class{constructor(_0x444536,_0x220c32){const _0x46d350=_0x4fce49;this[_0x46d350(0xb4)]=_0x444536,this[_0x46d350(0x296)]=_0x220c32;}['transformIMECache'](_0xcde99c){const _0x2d37a5=_0x4fce49;this[_0x2d37a5(0x14e)](_0xcde99c),this[_0x2d37a5(0x264)](_0xcde99c);}[_0x4fce49(0x289)](_0x901ef3){const _0x50b70b=_0x4fce49;let {unitID:_0x38bc14}=_0x901ef3,{redoCache:_0x291fef}=this[_0x50b70b(0x296)][_0x50b70b(0x2a7)](_0x38bc14)[_0x50b70b(0x192)](_0x10a1c7)['getUndoRedoMutationParamsCache']();if(_0x291fef[_0x50b70b(0x26a)]===0x0)return _0x901ef3;let _0x381f47=_0x4453b6[_0x50b70b(0x22a)](_0x901ef3[_0x50b70b(0x239)][0x0]);for(let _0x5b2129=0x0;_0x5b2129<_0x291fef['length'];_0x5b2129++){let _0x2e399e={'id':_0x50b70b(0xab),'params':{..._0x291fef[_0x5b2129]}},_0x433e99=this[_0x50b70b(0xb4)][_0x50b70b(0x150)](_0x381f47,_0x2e399e,!0x1);if(_0x20ccdb(_0x433e99))throw _0x433e99[_0x50b70b(0xf8)];_0x381f47=_0x433e99[_0x50b70b(0x24d)];}return{..._0x4453b6[_0x50b70b(0x22a)](_0x901ef3),'mutations':[_0x381f47]};}[_0x4fce49(0x14e)](_0x2f0330){const _0x28c891=_0x4fce49;let {unitID:_0x38378d}=_0x2f0330,_0x547875=this[_0x28c891(0x296)][_0x28c891(0x2a7)](_0x38378d)[_0x28c891(0x192)](_0x10a1c7),{undoCache:_0x4a17c0,redoCache:_0x4f3521}=_0x547875[_0x28c891(0x2e7)]();if(_0x4a17c0[_0x28c891(0x26a)]===0x0||_0x4f3521[_0x28c891(0x26a)]===0x0)return;let _0x11cf5e=[],_0x4620ba=[],_0x2ffdda=_0x4453b6['deepClone'](_0x2f0330[_0x28c891(0x239)][0x0]),_0x5ed558=_0x4453b6[_0x28c891(0x22a)](_0x2f0330['mutations'][0x0]);for(let _0x4c386b=_0x4a17c0[_0x28c891(0x26a)]-0x1;_0x4c386b>=0x0;_0x4c386b--){let _0x140dc7={'id':_0x28c891(0xab),'params':{..._0x4a17c0[_0x4c386b]}},_0x517a99={'id':_0x28c891(0xab),'params':{..._0x4f3521[_0x4c386b]}},_0x34ac82=this[_0x28c891(0xb4)][_0x28c891(0x150)](_0x2ffdda,_0x140dc7,!0x1),_0x3a1d01=this[_0x28c891(0xb4)][_0x28c891(0x150)](_0x5ed558,_0x517a99,!0x1);if(_0x20ccdb(_0x34ac82))throw _0x34ac82[_0x28c891(0xf8)];if(_0x20ccdb(_0x3a1d01))throw _0x3a1d01[_0x28c891(0xf8)];_0x11cf5e[_0x28c891(0x19e)](_0x34ac82[_0x28c891(0x2ac)][_0x28c891(0x1dd)]),_0x4620ba[_0x28c891(0x19e)](_0x3a1d01[_0x28c891(0x2ac)][_0x28c891(0x1dd)]),_0x2ffdda=_0x34ac82[_0x28c891(0x24d)],_0x5ed558=_0x3a1d01[_0x28c891(0x24d)];}_0x547875[_0x28c891(0x2a6)]({'undoCache':_0x11cf5e,'redoCache':_0x4620ba});}['_transformPreviousActiveRange'](_0x2e892e){const _0x406731=_0x4fce49;let {unitID:_0x28d529}=_0x2e892e,_0x1d4d95=this['_renderManagerService'][_0x406731(0x2a7)](_0x28d529)[_0x406731(0x192)](_0x10a1c7),_0x4027c5=_0x1d4d95[_0x406731(0x1ae)]();if(_0x4027c5==null)return;let _0x35039a=[{'id':_0x406731(0xab),'params':{'unitId':_0x2e892e[_0x406731(0x19b)],'actions':null,'textRanges':[_0x4027c5]}}],_0x19f006=this['_transformService'][_0x406731(0x23f)](_0x2e892e,_0x35039a);if(!_0x1c0730(_0x19f006))throw _0x19f006[_0x406731(0xf8)];let _0x5b7cc6=_0x19f006[_0x406731(0x2ac)][0x0][_0x406731(0x1dd)]['textRanges'];Array[_0x406731(0xfb)](_0x5b7cc6)&&_0x5b7cc6[_0x406731(0x26a)]&&_0x1d4d95[_0x406731(0x1b2)](_0x5b7cc6[0x0]);}};kn=q([K(0x0,_0x8dea2),K(0x1,_0x5de006)],kn);let An=class{constructor(_0x15c845,_0x46d620,_0x3eeb2f){const _0x1e1063=_0x4fce49;this[_0x1e1063(0x1ee)]=_0x15c845,this[_0x1e1063(0xb4)]=_0x46d620,this[_0x1e1063(0xe1)]=_0x3eeb2f;}[_0x4fce49(0x251)](_0x4bcb80){const _0xd1387=_0x4fce49;this[_0xd1387(0x25a)](_0x4bcb80);}[_0x4fce49(0x289)](_0x2ebcd6){const _0xb7ec1d=_0x4fce49;let {unitID:_0x11179b}=_0x2ebcd6,{collaboration:_0xd97aef}=this['_docStateChangeManagerService'][_0xb7ec1d(0x207)](_0x11179b);if(_0xd97aef['length']===0x0)return _0x2ebcd6;let _0x31589c=_0x4453b6[_0xb7ec1d(0x22a)](_0x2ebcd6[_0xb7ec1d(0x239)][0x0]);for(let _0x3b7e2c=0x0;_0x3b7e2c<_0xd97aef['length'];_0x3b7e2c++){let _0x3c9dc8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xd97aef[_0x3b7e2c][_0xb7ec1d(0x246)],..._0xd97aef[_0x3b7e2c]['redoState']}},_0x4d40f2=this[_0xb7ec1d(0xb4)]['transformMutation'](_0x31589c,_0x3c9dc8,!0x1);if(_0x20ccdb(_0x4d40f2))throw _0x4d40f2[_0xb7ec1d(0xf8)];_0x31589c=_0x4d40f2[_0xb7ec1d(0x24d)];}return{..._0x4453b6[_0xb7ec1d(0x22a)](_0x2ebcd6),'mutations':[_0x31589c]};}[_0x4fce49(0x25a)](_0x23be74){const _0x5771b1=_0x4fce49;let {unitID:_0x408cb3}=_0x23be74,{history:_0x1fb4e7,collaboration:_0x1df0f8}=this[_0x5771b1(0xe1)]['getStateCache'](_0x408cb3);if(_0x1fb4e7[_0x5771b1(0x26a)]===0x0&&_0x1df0f8['length']===0x0)return;let _0xedb32b=[],_0x2036ab=[],_0x4527bb=_0x4453b6[_0x5771b1(0x22a)](_0x23be74[_0x5771b1(0x239)][0x0]),_0x1e572c=_0x4453b6[_0x5771b1(0x22a)](_0x23be74[_0x5771b1(0x239)][0x0]);for(let _0x403276=_0x1fb4e7['length']-0x1;_0x403276>=0x0;_0x403276--){let _0x2a6ab9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1fb4e7[_0x403276][_0x5771b1(0x246)],..._0x1fb4e7[_0x403276][_0x5771b1(0x2ae)]}},_0x2ec484={'id':_0x5771b1(0xab),'params':{'unitId':_0x1fb4e7[_0x403276][_0x5771b1(0x246)],..._0x1fb4e7[_0x403276][_0x5771b1(0x294)]}},_0x58a5fc=this[_0x5771b1(0xb4)][_0x5771b1(0x150)](_0x4527bb,_0x2a6ab9,!0x1),_0x53d42f=this[_0x5771b1(0xb4)][_0x5771b1(0x150)](_0x1e572c,_0x2ec484,!0x1);if(_0x20ccdb(_0x58a5fc))throw _0x58a5fc[_0x5771b1(0xf8)];if(_0x20ccdb(_0x53d42f))throw _0x53d42f[_0x5771b1(0xf8)];_0xedb32b[_0x5771b1(0x19e)]({..._0x1fb4e7[_0x403276],'undoState':_0x58a5fc[_0x5771b1(0x2ac)][_0x5771b1(0x1dd)],'redoState':_0x53d42f[_0x5771b1(0x2ac)]['params']}),_0x4527bb=_0x58a5fc['m1Prime'],_0x1e572c=_0x53d42f['m1Prime'];}_0x4527bb=_0x4453b6[_0x5771b1(0x22a)](_0x23be74[_0x5771b1(0x239)][0x0]),_0x1e572c=_0x4453b6[_0x5771b1(0x22a)](_0x23be74[_0x5771b1(0x239)][0x0]);for(let _0x42d77a=_0x1df0f8[_0x5771b1(0x26a)]-0x1;_0x42d77a>=0x0;_0x42d77a--){let _0xfa5862={'id':_0x5771b1(0xab),'params':{'unitId':_0x1df0f8[_0x42d77a][_0x5771b1(0x246)],..._0x1df0f8[_0x42d77a][_0x5771b1(0x2ae)]}},_0xd9976f={'id':_0x5771b1(0xab),'params':{'unitId':_0x1df0f8[_0x42d77a][_0x5771b1(0x246)],..._0x1df0f8[_0x42d77a][_0x5771b1(0x294)]}},_0x4f2a36=this[_0x5771b1(0xb4)][_0x5771b1(0x150)](_0x4527bb,_0xfa5862,!0x1),_0x4f1a04=this['_transformService']['transformMutation'](_0x1e572c,_0xd9976f,!0x1);if(_0x20ccdb(_0x4f2a36))throw _0x4f2a36[_0x5771b1(0xf8)];if(_0x20ccdb(_0x4f1a04))throw _0x4f1a04[_0x5771b1(0xf8)];_0x2036ab[_0x5771b1(0x19e)]({..._0x1df0f8[_0x42d77a],'undoState':_0x4f2a36['m2Prime'][_0x5771b1(0x1dd)],'redoState':_0x4f1a04[_0x5771b1(0x2ac)]['params']}),_0x4527bb=_0x4f2a36[_0x5771b1(0x24d)],_0x1e572c=_0x4f1a04[_0x5771b1(0x24d)];}this[_0x5771b1(0xe1)][_0x5771b1(0x2bf)](_0x408cb3,{'history':_0xedb32b,'collaboration':_0x2036ab});}};An=q([K(0x0,_0x5e7f17(_0x396982)),K(0x1,_0x8dea2),K(0x2,_0x5e7f17(_0x274af1))],An);let jn=class{constructor(_0x34f5fa,_0xf5c376){const _0xcd498d=_0x4fce49;this['_injector']=_0x34f5fa,this[_0xcd498d(0xb4)]=_0xf5c376;}[_0x4fce49(0xd6)](_0xd47e9c){const _0x3e3d4d=_0x4fce49;var _0x2d5b2a;let _0x43d159=this[_0x3e3d4d(0x1ee)][_0x3e3d4d(0x1c2)](_0x27e270),_0x5b314d=(_0x2d5b2a=_0x43d159[_0x3e3d4d(0x27e)]())==null?[]:_0x2d5b2a;if(_0x5b314d['length']===0x0)return;let _0x702b35=_0xd47e9c['unitID'],_0x484be9=[{'id':_0x3e3d4d(0xab),'params':{'unitId':_0x702b35,'actions':null,'textRanges':_0x5b314d}}],_0x915d6f=this[_0x3e3d4d(0xb4)][_0x3e3d4d(0x23f)](_0xd47e9c,_0x484be9);if(!_0x1c0730(_0x915d6f))throw _0x915d6f[_0x3e3d4d(0xf8)];let _0x183de1=_0x915d6f[_0x3e3d4d(0x2ac)][0x0][_0x3e3d4d(0x1dd)][_0x3e3d4d(0xc2)];Array[_0x3e3d4d(0xfb)](_0x183de1)&&_0x183de1['length']&&_0x43d159[_0x3e3d4d(0x26f)](_0x183de1,{'unitId':_0x702b35,'subUnitId':_0x702b35},!0x1);}};jn=q([K(0x0,_0x5e7f17(_0x396982)),K(0x1,_0x8dea2)],jn);let Mn=class extends _0x3b1408{constructor(_0x5aa350,_0x3af044,_0x50b8e6,_0x187070,_0x265902,_0x2bfae0,_0x480628){const _0x5fba95=_0x4fce49;super(),this[_0x5fba95(0xb3)]=_0x5aa350,this[_0x5fba95(0x2d1)]=_0x3af044,this[_0x5fba95(0x18a)]=_0x50b8e6,this[_0x5fba95(0x282)]=_0x187070,this[_0x5fba95(0x113)]=_0x265902,this[_0x5fba95(0x270)]=_0x2bfae0,this['_localeService']=_0x480628,G(this,_0x5fba95(0x101),new _0x12f80d(_0x47e920['NOT_COLLAB'])),this[_0x5fba95(0x236)]();}['_initEntityListener'](){const _0x116ecb=_0x4fce49;this[_0x116ecb(0x20b)](this[_0x116ecb(0xb3)][_0x116ecb(0x29e)]['subscribe'](_0x3b2f2b=>{const _0x506367=_0x116ecb;_0x3b2f2b instanceof _0x500196&&_0x3b2f2b[_0x506367(0x2c6)]({'onTransformIME':_0x3e69fd=>this[_0x506367(0x2d1)][_0x506367(0x22b)](_0x3e69fd),'onTransformState':_0x549a2e=>this['_docTransformStateCacheService'][_0x506367(0x251)](_0x549a2e),'onTransformSelections':_0x4b1f20=>this[_0x506367(0x282)][_0x506367(0xd6)](_0x4b1f20),'onSyncEditingCollabCursor':_0x48544f=>this['_docSyncEditingCollabCursorService'][_0x506367(0x227)](_0x48544f),'onTransformRemoteChangesetByIMECache':_0x4560be=>this[_0x506367(0x2d1)][_0x506367(0x289)](_0x4560be),'onTransformRemoteChangesetByStateCache':_0x2e319e=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x2e319e)});}));}};Mn=q([K(0x0,_0x5e7f17(_0x7bdb56)),K(0x1,_0x5e7f17(kn)),K(0x2,_0x5e7f17(An)),K(0x3,_0x5e7f17(jn)),K(0x4,_0x5e7f17(fn)),K(0x5,_0x5f57d5),K(0x6,_0x5e7f17(_0x2f08d4))],Mn);let Nn=class extends _0x3b1408{constructor(_0x39cae1,_0x102211,_0x89d49b,_0x3bbb8c){const _0x4f4cba=_0x4fce49;super(),this[_0x4f4cba(0x1ee)]=_0x39cae1,this['_httpService']=_0x102211,this[_0x4f4cba(0x2c5)]=_0x89d49b,this[_0x4f4cba(0xfa)]=_0x3bbb8c,G(this,_0x4f4cba(0x277),void 0x0),this['_init']();}['_init'](){const _0x26dfc1=_0x4fce49;this[_0x26dfc1(0x269)](),this[_0x26dfc1(0x2c4)](),this[_0x26dfc1(0xf7)](),this[_0x26dfc1(0x17e)]();}['_initUserListener'](){const _0x43a2b4=_0x4fce49;this[_0x43a2b4(0x20b)](this['_collaborationSessionService'][_0x43a2b4(0x106)][_0x43a2b4(0x14c)](_0x2cbc97=>{this['_memberID']=_0x2cbc97==null?void 0x0:_0x2cbc97['memberID'];}));}[_0x4fce49(0x269)](){let _0x39cd82=_0xc7609b=>{const _0x31649a=_0x2954;var _0x28bea5;this[_0x31649a(0x193)](_0x31649a(0xf8),_0x31649a(0x1f5)+_0xc7609b[_0x31649a(0x18e)]+'\x20at\x20'+_0xc7609b[_0x31649a(0xa9)]+':'+_0xc7609b['lineno']+':'+_0xc7609b['colno']+'\x0a'+(((_0x28bea5=_0xc7609b[_0x31649a(0xf8)])==null?void 0x0:_0x28bea5[_0x31649a(0x100)])||''));};window['addEventListener']('error',_0x39cd82),this['disposeWithMe'](()=>{const _0x407d62=_0x2954;window[_0x407d62(0x2c0)](_0x407d62(0xf8),_0x39cd82);});}[_0x4fce49(0x2c4)](){const _0x38a6d1=_0x4fce49;let _0x34fd3e=_0x2b2382=>{const _0x1b0d2e=_0x2954;this[_0x1b0d2e(0x193)]('error',_0x1b0d2e(0x261)+_0x2b2382[_0x1b0d2e(0x28a)]);};window[_0x38a6d1(0x137)](_0x38a6d1(0x2e9),_0x34fd3e),this['disposeWithMe'](()=>{const _0x1ae888=_0x38a6d1;window[_0x1ae888(0x2c0)](_0x1ae888(0x2e9),_0x34fd3e);});}[_0x4fce49(0xf7)](){const _0x548c0c=_0x4fce49;let _0x23681b=this[_0x548c0c(0x2c5)]['error'][_0x548c0c(0xbe)](this['_logService']);this[_0x548c0c(0x2c5)][_0x548c0c(0xf8)]=(..._0x24cbc6)=>{const _0x37a679=_0x548c0c;let _0x2a965b=_0x24cbc6[_0x37a679(0x117)](_0x464d1d=>_0x464d1d instanceof Error?_0x464d1d['message']+'\x0a'+_0x464d1d[_0x37a679(0x100)]:String(_0x464d1d))['join']('\x20');this['_uploadLog'](_0x37a679(0xf8),_0x37a679(0x1ea)+_0x2a965b),_0x23681b(..._0x24cbc6);},this[_0x548c0c(0x20b)](()=>{const _0x20199f=_0x548c0c;this['_logService'][_0x20199f(0xf8)]=_0x23681b;});}[_0x4fce49(0x193)](_0x13f443,_0x265139){const _0x5985bb=_0x4fce49;try{let _0x1f480a={'userId':this['_memberID'],'logLabel':_0x13f443,'content':_0x265139};this[_0x5985bb(0x1e3)]['post'](_0x5985bb(0x23b),{'body':_0x1f480a})[_0x5985bb(0xb5)](()=>{});}catch{}}};Nn=q([K(0x0,_0x5e7f17(_0x396982)),K(0x1,_0x5e7f17(_0x3c0cc7)),K(0x2,_0x821e06),K(0x3,_0x5e7f17(_0x1f6015))],Nn);function Pn(_0x4d59d0){const _0x17d9bf=_0x4fce49;var _0x432b83,_0xc06c56;let _0x4e3f9f=(_0x432b83=_0x4d59d0[_0x17d9bf(0x1d8)])==null?void 0x0:_0x432b83[_0x17d9bf(0x141)],_0x583c0c=((_0xc06c56=_0x4d59d0['stageInfo'])==null?void 0x0:_0xc06c56['totalFormulasToCalculate'])||0x0;return _0x4e3f9f===_0x1fcf5c['START_CALCULATION']&&_0x583c0c>0x0;}function Fn(_0x5415da){const _0x355596=_0x4fce49;return _0x5415da['functionsExecutedState']===_0x39cb1e[_0x355596(0x176)];}let Q=class extends _0x3b1408{constructor(_0x2de71d,_0x2b12da,_0x4e0543,_0x4663c4,_0x45e5ae,_0x635040,_0x26db7e){const _0x410f0f=_0x4fce49;super(),this['_messageService']=_0x2de71d,this[_0x410f0f(0x21c)]=_0x2b12da,this[_0x410f0f(0x26c)]=_0x4e0543,this[_0x410f0f(0x1e3)]=_0x4663c4,this[_0x410f0f(0x2cd)]=_0x45e5ae,this[_0x410f0f(0x2c5)]=_0x635040,this[_0x410f0f(0x241)]=_0x26db7e,G(this,_0x410f0f(0x206),null),G(this,_0x410f0f(0x209),0x0),G(this,_0x410f0f(0x143),0x0),G(this,_0x410f0f(0x1e9),[]),G(this,_0x410f0f(0x23e),0x0),this['_initCommandInterceptor']();}[_0x4fce49(0x15a)](){const _0x2e9e28=_0x4fce49;this[_0x2e9e28(0x20b)](this[_0x2e9e28(0x21c)]['beforeCommandExecuted']((_0x5d7eca,_0x4572c4)=>{const _0x2b4773=_0x2e9e28;var _0x5ce2fa;if(_0x5d7eca['id']!==_0x5de206['id'])return;let _0x1b3e05=_0x5d7eca[_0x2b4773(0x1dd)];if(this[_0x2b4773(0xd4)]((_0x5ce2fa=_0x1b3e05[_0x2b4773(0xa8)])==null?[]:_0x5ce2fa)&&!this[_0x2b4773(0x112)]())throw this[_0x2b4773(0x283)](_0x5d7eca,_0x4572c4),this['_showGuardMessage'](),new _0x21b9c7();})),this['disposeWithMe'](this[_0x2e9e28(0x21c)][_0x2e9e28(0x1a8)]((_0x3d861c,_0x5c283a)=>{const _0x3585af=_0x2e9e28;if(_0x3d861c['id']!==_0x303f99['id'])return;let _0x185090=_0x3d861c[_0x3585af(0x1dd)];if(Pn(_0x185090)){let _0x22bbaa=_0x1321c7();this[_0x3585af(0x1e9)][_0x3585af(0xe9)](_0x22bbaa),this[_0x3585af(0xee)](_0x22bbaa);}else{if(Fn(_0x185090)&&this[_0x3585af(0x1e9)][_0x3585af(0x26a)]>0x0){let _0xf012c2=this['_taskIds'][_0x3585af(0x24b)]();this['_releaseCalculationLimit'](_0xf012c2);}}}));}[_0x4fce49(0x2a9)](){const _0x1f3489=_0x4fce49;super[_0x1f3489(0x2a9)](),this[_0x1f3489(0x111)](),this['_taskIds']=[],this[_0x1f3489(0x143)]=0x0,this[_0x1f3489(0x209)]=0x0,this[_0x1f3489(0x23e)]=0x0;}async[_0x4fce49(0x283)](_0x14c0be,_0x4dea90){const _0x7b7163=_0x4fce49;for(let _0x41913f=0x0;_0x41913f<0x1e;_0x41913f++)try{if(await this[_0x7b7163(0x160)](),this[_0x7b7163(0x112)]()){this['_applyCommand'](_0x14c0be,_0x4dea90),this[_0x7b7163(0x270)][_0x7b7163(0x229)]({'content':this[_0x7b7163(0x241)]['t'](_0x7b7163(0x279)),'type':_0x5d4565['Success']});return;}await new Promise(_0x45e537=>{const _0x32f63a=_0x7b7163;this[_0x32f63a(0x206)]=window['setTimeout'](_0x45e537,0x3e8);});}catch(_0x1c80ed){this[_0x7b7163(0x2c5)]['error'](_0x1c80ed);}this[_0x7b7163(0x270)][_0x7b7163(0x229)]({'content':this[_0x7b7163(0x241)]['t']('collaboration-client-ui.formula.calculation.unable'),'type':_0x5d4565[_0x7b7163(0x165)]});}[_0x4fce49(0x2a4)](_0x4ec924,_0x5f0015){const _0x6ea5e=_0x4fce49;try{this[_0x6ea5e(0x21c)][_0x6ea5e(0x295)](_0x4ec924['id'],_0x4ec924['params'],_0x5f0015);}catch(_0x17603f){this[_0x6ea5e(0x2c5)][_0x6ea5e(0xf8)](_0x17603f);}}[_0x4fce49(0x1bb)](_0xeab1c1,_0x57fc11){const _0x24a6ea=_0x4fce49;_0x57fc11<this['_lastResponseTimestamp']||(this[_0x24a6ea(0x23e)]=_0x57fc11,this[_0x24a6ea(0x209)]=Number[_0x24a6ea(0x16e)](_0xeab1c1[_0x24a6ea(0x28b)]),this['_currentUsage']=Number[_0x24a6ea(0x16e)](_0xeab1c1[_0x24a6ea(0x21f)]));}async[_0x4fce49(0xee)](_0x34422a){const _0x21e4b1=_0x4fce49;let _0x28a6e5=Date[_0x21e4b1(0x1e4)]();try{var _0xa2b0d5,_0x19d377;let _0x4dd6b1=((_0xa2b0d5=this[_0x21e4b1(0x26c)][_0x21e4b1(0x103)](_0x444960))==null?void 0x0:_0xa2b0d5[_0x21e4b1(0x147)])||_0x21e4b1(0x20d),_0x504711=(await this[_0x21e4b1(0x1e3)][_0x21e4b1(0x20e)](_0x4dd6b1,{'body':JSON[_0x21e4b1(0x1d3)]({'taskId':_0x34422a})}))[_0x21e4b1(0x284)];if(((_0x19d377=_0x504711[_0x21e4b1(0xf8)])==null?void 0x0:_0x19d377[_0x21e4b1(0x232)])!==_0x1cfe9f['OK'])return;this[_0x21e4b1(0x1bb)](_0x504711[_0x21e4b1(0x215)],_0x28a6e5);}catch(_0x3fdba0){this[_0x21e4b1(0x2c5)][_0x21e4b1(0xf8)](_0x3fdba0);}}async[_0x4fce49(0x160)](_0x1766de){const _0x113896=_0x4fce49;let _0x2b2015=Date[_0x113896(0x1e4)]();try{var _0x3e2e47,_0x2f5c69;let _0x1d065b=((_0x3e2e47=this[_0x113896(0x26c)][_0x113896(0x103)](_0x444960))==null?void 0x0:_0x3e2e47[_0x113896(0x18f)])||_0x113896(0x17f),_0x429df5=_0x1766de?_0x1d065b+_0x113896(0x22f)+encodeURIComponent(_0x1766de):_0x1d065b,_0x438a7c=(await this[_0x113896(0x1e3)][_0x113896(0x1c2)](_0x429df5))['body'];if(((_0x2f5c69=_0x438a7c[_0x113896(0xf8)])==null?void 0x0:_0x2f5c69['code'])!==_0x1cfe9f['OK'])return;this[_0x113896(0x1bb)](_0x438a7c[_0x113896(0x215)],_0x2b2015);}catch(_0x37d104){this['_logService'][_0x113896(0xf8)](_0x37d104);}}async[_0x4fce49(0x142)](_0x175e7f){const _0x40bac2=_0x4fce49;let _0xdbc42c=Date[_0x40bac2(0x1e4)]();try{var _0x12368c,_0x19a956;let _0x4d22a6=((_0x12368c=this[_0x40bac2(0x26c)][_0x40bac2(0x103)](_0x444960))==null?void 0x0:_0x12368c[_0x40bac2(0x102)])||'/universer-api/license/formula/limit/done',_0x2a7c2b=(await this[_0x40bac2(0x1e3)][_0x40bac2(0x20e)](_0x4d22a6,{'body':JSON[_0x40bac2(0x1d3)]({'taskId':_0x175e7f})}))['body'];if(((_0x19a956=_0x2a7c2b[_0x40bac2(0xf8)])==null?void 0x0:_0x19a956[_0x40bac2(0x232)])!==_0x1cfe9f['OK'])return;this[_0x40bac2(0x1bb)](_0x2a7c2b[_0x40bac2(0x215)],_0xdbc42c);}catch(_0x2a943b){this[_0x40bac2(0x2c5)]['error'](_0x2a943b);}}[_0x4fce49(0x112)](){const _0x5b77a6=_0x4fce49;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x5b77a6(0x143)]>0x0;}[_0x4fce49(0x111)](){const _0x354ba9=_0x4fce49;this['_pollingInterval']&&(clearTimeout(this['_pollingInterval']),this[_0x354ba9(0x206)]=null);}[_0x4fce49(0x233)](){const _0x2d52da=_0x4fce49;this[_0x2d52da(0x270)][_0x2d52da(0x229)]({'content':this[_0x2d52da(0x241)]['t'](_0x2d52da(0x15d)),'type':_0x5d4565['Loading']});}[_0x4fce49(0xd4)](_0x36cb2a){const _0xfb1d0f=_0x4fce49;for(let _0x3a899f of _0x36cb2a){let {unitId:_0x53d2e3,sheetId:_0x1b2e45,range:_0x2ed713}=_0x3a899f,_0x2b49de=this[_0xfb1d0f(0x2cd)][_0xfb1d0f(0x2ec)](_0x53d2e3);if(!_0x2b49de)continue;let _0x569661=_0x2b49de[_0xfb1d0f(0x1f3)](_0x1b2e45);if(!_0x569661)continue;let _0x22a9c9=_0x569661[_0xfb1d0f(0x14b)]();for(let _0x1d93ae=_0x2ed713[_0xfb1d0f(0x1a5)];_0x1d93ae<=_0x2ed713['endRow'];_0x1d93ae++)for(let _0x56a147=_0x2ed713['startColumn'];_0x56a147<=_0x2ed713[_0xfb1d0f(0x26e)];_0x56a147++){let _0x470a2e=_0x22a9c9['getValue'](_0x1d93ae,_0x56a147);if(_0x470a2e&&(_0x74776e(_0x470a2e['f'])||_0x3fbf1e(_0x470a2e['si'])))return!0x0;}}return!0x1;}};Q=q([K(0x0,_0x5e7f17(_0x5f57d5)),K(0x1,_0x3d1e31),K(0x2,_0x4745e9),K(0x3,_0x5e7f17(_0x3c0cc7)),K(0x4,_0x512649),K(0x5,_0x821e06),K(0x6,_0x5e7f17(_0x2f08d4))],Q);let In=class extends _0x3b1408{constructor(_0x815aab,_0x3623a1,_0x4d62c0){const _0x37aff0=_0x4fce49;super(),this[_0x37aff0(0x26c)]=_0x815aab,this[_0x37aff0(0x22c)]=_0x3623a1,this[_0x37aff0(0xad)]=_0x4d62c0,G(this,_0x37aff0(0x2ef),new Map()),G(this,'_saveTaskMap',new Map()),G(this,_0x37aff0(0x24a),!0x1);}[_0x4fce49(0x2d9)](){const _0x1f5fd7=_0x4fce49;this[_0x1f5fd7(0x24a)]=!0x0;}[_0x4fce49(0x286)](){const _0x2d51cf=_0x4fce49;this[_0x2d51cf(0x24a)]=!0x1;}get[_0x4fce49(0x1cb)](){const _0x1b419d=_0x4fce49;return this[_0x1b419d(0x19c)];}['dispose'](){const _0x328e18=_0x4fce49;this[_0x328e18(0x18d)]()[_0x328e18(0x238)](()=>super[_0x328e18(0x2a9)]());}async['loadOfflineData'](_0x19bc05){const _0x15009b=_0x4fce49;return this['_disabled']?null:this[_0x15009b(0x22c)]['getItem'](_0x32c6e5(_0x19bc05));}async['saveOfflineData'](_0x527fe8,_0x1abedf){const _0x3c6db5=_0x4fce49;return!!this[_0x3c6db5(0x22c)][_0x3c6db5(0xc4)](_0x32c6e5(_0x527fe8),_0x1abedf);}async[_0x4fce49(0x211)](_0x486963,_0x4ac7f6){const _0x30f0fe=_0x4fce49;var _0x426284;let _0x171ddc=(_0x426284=this[_0x30f0fe(0x2ef)][_0x30f0fe(0x1c2)](_0x486963))==null?await this[_0x30f0fe(0x22c)][_0x30f0fe(0x205)](_0x32c6e5(_0x486963)):_0x426284;if(!_0x171ddc)return;let _0x4f4c8e=Date[_0x30f0fe(0x1e4)](),_0x334a98=new Date(_0x4f4c8e)['toISOString']();await this[_0x30f0fe(0x22c)]['setItem'](_0x32c6e5(_0x486963)+_0x30f0fe(0x29f)+_0x4f4c8e,{'reason':_0x4ac7f6,'createdAt':_0x334a98,'data':_0x171ddc});}[_0x4fce49(0xc7)](_0x590804,_0x34de74,_0x3295b6,_0x49cec5){const _0x393740=_0x4fce49;let _0x301985=this[_0x393740(0xad)][_0x393740(0x29c)](_0x590804);this['_cachedData'][_0x393740(0x170)](_0x590804,{'unitID':_0x590804,'type':_0x34de74,'awaitingChangeset':_0x3295b6,'mutations':_0x49cec5,'rev':_0x301985}),this['_saveTaskMap']['has'](_0x590804)||this[_0x393740(0x110)](_0x590804);}[_0x4fce49(0x110)](_0x203c9d){const _0x4b6e7c=_0x4fce49;let _0x56d558=this['_getSaveTimeout']();_0x56d558===0x0?this[_0x4b6e7c(0x1b7)](_0x203c9d):this[_0x4b6e7c(0x19c)][_0x4b6e7c(0x170)](_0x203c9d,setTimeout(()=>this['_saveCache'](_0x203c9d),_0x56d558));}['_getSaveTimeout'](){const _0x227796=_0x4fce49;var _0x8e3407;return(_0x8e3407=this[_0x227796(0x26c)][_0x227796(0x103)](_0x531d40))==null?_0xb5c7a6:_0x8e3407;}[_0x4fce49(0x1b7)](_0x3f6d6d){const _0x5a100f=_0x4fce49;let _0x434c81=this['_saveTaskMap'][_0x5a100f(0x1c2)](_0x3f6d6d);return _0x434c81!==void 0x0&&window['clearTimeout'](_0x434c81),this[_0x5a100f(0x22c)][_0x5a100f(0xc4)](_0x32c6e5(_0x3f6d6d),this[_0x5a100f(0x2ef)][_0x5a100f(0x1c2)](_0x3f6d6d))[_0x5a100f(0x238)](()=>this['_saveTaskMap'][_0x5a100f(0x1b8)](_0x3f6d6d));}async[_0x4fce49(0x18d)](){const _0x3811c3=_0x4fce49;let _0x497fa8=[];this[_0x3811c3(0x19c)][_0x3811c3(0x2ca)]((_0x50ea3f,_0x49b759)=>{const _0x4153e0=_0x3811c3;window[_0x4153e0(0x175)](_0x50ea3f),_0x497fa8[_0x4153e0(0xe9)](this[_0x4153e0(0x1b7)](_0x49b759)[_0x4153e0(0x238)](()=>{const _0x358a3a=_0x4153e0;this[_0x358a3a(0x19c)][_0x358a3a(0x1b8)](_0x49b759);}));}),await Promise['all'](_0x497fa8);}};In=q([K(0x0,_0x4745e9),K(0x1,_0x485df1),K(0x2,_0x5e7f17(_0x4a2529))],In);var Ln=class extends _0x3ba365{constructor(){const _0x1587e9=_0x4fce49;super(),G(this,_0x1587e9(0x1b9),void 0x0),this[_0x1587e9(0x1b9)]=_0x3cf39d(window,_0x1587e9(0xcb))['pipe'](_0x340706(this[_0x1587e9(0x1ce)]),_0x3784af({'bufferSize':0x1,'refCount':!0x0}),_0x896674(void 0x0));}[_0x4fce49(0x1b0)](_0x2a115c,_0x1c0b37,_0x3bc568=!0x1){const _0x8bd64a=_0x4fce49;let _0x14c7b2=new URL(window[_0x8bd64a(0x128)][_0x8bd64a(0xd9)]);_0x14c7b2[_0x8bd64a(0x204)]['set'](_0x2a115c,_0x1c0b37),_0x3bc568?window[_0x8bd64a(0x119)][_0x8bd64a(0x2af)]('','',_0x14c7b2[_0x8bd64a(0x127)]()):window[_0x8bd64a(0x119)][_0x8bd64a(0x1cc)]('','',_0x14c7b2[_0x8bd64a(0x127)]());}[_0x4fce49(0x163)](_0x5db0ae,_0x2139b5=!0x1){const _0x39ea19=_0x4fce49;let _0x365d59=new URL(window[_0x39ea19(0x128)][_0x39ea19(0xd9)]);_0x365d59[_0x39ea19(0x204)][_0x39ea19(0x1b8)](_0x5db0ae),_0x2139b5?window[_0x39ea19(0x119)][_0x39ea19(0x2af)]('','',_0x365d59[_0x39ea19(0x127)]()):window['history'][_0x39ea19(0x1cc)]('','',_0x365d59['toString']());}['getParam'](_0x2eb9d8){const _0x529ef2=_0x4fce49;var _0x5741eb;return(_0x5741eb=new URL(window[_0x529ef2(0x128)]['href'])[_0x529ef2(0x204)][_0x529ef2(0x1c2)](_0x2eb9d8))==null?void 0x0:_0x5741eb;}};let $=class extends _0x5449b2{constructor(_0x5b81f5=on,_0x4529fe,_0x5641b4,_0x2aa39e){const _0x225241=_0x4fce49;super(),this['_config']=_0x5b81f5,this[_0x225241(0x296)]=_0x4529fe,this[_0x225241(0x1ee)]=_0x5641b4,this[_0x225241(0x26c)]=_0x2aa39e;let {..._0x4a84b4}=_0x5e0eaa({},on,this[_0x225241(0xae)]);this[_0x225241(0x26c)][_0x225241(0x12d)]('collaboration-client-ui.config',_0x4a84b4);}[_0x4fce49(0x134)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x4fce49(0xda)](){const _0x436ed8=_0x4fce49;this[_0x436ed8(0x1f1)]();}[_0x4fce49(0x12a)](){const _0x1db67c=_0x4fce49;var _0x596b5f;let _0x1f77d0=[[ln],[Q],[nn,{'useClass':Ln}],[_0x2390f3,{'useClass':_0x311ee6}],[_0x223121,{'useClass':In}],[J],[Z],[X],[Y]];this[_0x1db67c(0xae)][_0x1db67c(0x29b)]!==!0x1&&_0x1f77d0[_0x1db67c(0xe9)]([jn],[kn],[An],[fn],[Mn],[sn]),this['_config'][_0x1db67c(0x135)]&&_0x1f77d0['push']([Nn]),_0x375ff6(this[_0x1db67c(0x1ee)],_0x572182(_0x1f77d0,(_0x596b5f=this[_0x1db67c(0xae)])==null?void 0x0:_0x596b5f[_0x1db67c(0x168)]));}['_registerRenderDependencies'](){const _0x17c352=_0x4fce49;this[_0x17c352(0xae)][_0x17c352(0x29b)]!==!0x1&&this[_0x17c352(0x20b)](this[_0x17c352(0x296)][_0x17c352(0xcc)](_0x991a39[_0x17c352(0x202)],[Sn])),this[_0x17c352(0x20b)](this['_renderManagerService'][_0x17c352(0xcc)](_0x991a39[_0x17c352(0xc3)],[wn])),this[_0x17c352(0x20b)](this[_0x17c352(0x296)][_0x17c352(0xcc)](_0x991a39[_0x17c352(0x161)],[On]));}[_0x4fce49(0x201)](){const _0x298444=_0x4fce49;_0x4afc34(this[_0x298444(0x1ee)],[[X],[J],[Z],[Y],[Q]]),this[_0x298444(0xae)][_0x298444(0x29b)]!==!0x1&&_0x4afc34(this['_injector'],[[Mn],[sn]]),this[_0x298444(0xae)][_0x298444(0x135)]&&_0x4afc34(this['_injector'],[[Nn]]);}};G($,_0x4fce49(0x1d5),'UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),G($,_0x4fce49(0x21a),rn),G($,_0x4fce49(0x200),an),$=q([_0x471b5a(_0x54299c),K(0x1,_0x5de006),K(0x2,_0x5e7f17(_0x396982)),K(0x3,_0x4745e9)],$);let Rn=class extends _0x3b89cd{constructor(_0x3554a0,_0x3a3eec,_0x17b40f,_0x14499e,_0x6a13c3){super(_0x3554a0,_0x3a3eec,_0x17b40f,_0x14499e,_0x6a13c3);}async['createSocket'](_0x21d76b){const _0x21499e=_0x4fce49;let _0x4e014f=await this['_getSessionTicket'](),_0x28de6f=this['_createSocketURL'](_0x21d76b,_0x4e014f);return this[_0x21499e(0x2b1)](_0x28de6f);}[_0x4fce49(0x214)](_0x249c5d,_0x4f68e0){const _0x32f888=_0x4fce49;let _0x4aba1f=typeof window>'u'?new URL(_0x249c5d):new URL(_0x249c5d,window[_0x32f888(0x128)][_0x32f888(0x2c7)]);_0x4aba1f[_0x32f888(0x204)][_0x32f888(0x170)](_0x32f888(0x1a2),_0x4f68e0);let _0xbbb18f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x32f888(0x128)][_0x32f888(0x2a5)]);return _0xbbb18f[_0x32f888(0x1c2)](_0x32f888(0x1ed))&&_0x4aba1f[_0x32f888(0x204)]['set'](_0x32f888(0x1ed),_0xbbb18f[_0x32f888(0x1c2)](_0x32f888(0x1ed))),_0x4aba1f['toString']();}async[_0x4fce49(0x1e2)](){const _0x15f830=_0x4fce49;var _0x3893ae,_0x3741c3,_0x4dc2c7;let _0x33d7ba=this[_0x15f830(0x26c)][_0x15f830(0x103)](_0x444960),_0x63724=(_0x3893ae=_0x33d7ba==null?void 0x0:_0x33d7ba[_0x15f830(0x256)])==null?_0x28d880:_0x3893ae;return(_0x3741c3=(_0x4dc2c7=(await this[_0x15f830(0x1e3)][_0x15f830(0x1c2)](_0x63724,{'headers':{'Content-Type':_0x15f830(0x1c4)}}))[_0x15f830(0x284)])==null?void 0x0:_0x4dc2c7[_0x15f830(0x297)])==null?'':_0x3741c3;}};function _0x3b21(){const _0x27b904=['collaboration-client-ui.collaboration.offline-data-not-saved','_localeService','bottom','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','evenodd','startsWith','unitId','_startDocCollabCursor','unit','NO_OTHER_CLIENTS_EDITING','_disabled','shift','_clearOtherTimers','m1Prime','parse','indicator','AWAITING_WITH_PENDING','transformStateCache','_urlService','_renderScheduled','_updateSubUnitFromURLParams','_onRefRangeChange','wsSessionTicketUrl','jiqing.500','sheetId','_shapes','_transformHistoryAndStateStack','button','onTransformChange$','isActive','constructor','_getScale','send','[Unhandled\x20Rejection]:\x20','getSkeleton','_docClipboardService','_transformPreviousActiveRange','univer-transition-all\x20univer-duration-200','_scene','backgroundColor','_getMergeRange','_initWindowErrorListener','length','_isBlinkVisible','_configService','_drawAnchor','endColumn','replaceDocRanges','_messageService','_assignedColors','_getObjectBounds','FETCH_MISS','getTypeOfUnitDisposed$','drawWith','DeleteRangeMoveUpCommandId','_memberID','_offsetY','collaboration-client-ui.formula.calculation.started','offsetY','_isApplyingOverlays','SYNCED','getCurrentSelections','getDocRanges','_blinkTimer','InsertColCommandId','sheetID','_docTransformSelectionsService','_checkAndWaitForCalculationPermission','body','angle','enableLocalCache','getRelativeToViewportCoord','data','transformRemoteChangeset','reason','maxFormulaLimit','collaboration-client-ui.session.connection-failed','tooltipKey','dark:focus:!univer-ring-offset-gray-800','static','currentTheme$','pulse','_cursorShapes','HEADER_MENU','redoState','executeCommand','_renderManagerService','ticket','_color','strokeStyle','default','enableDocumentCollaborationUI','getCurrentRevOfUnit','_setupBeforeClosingHandler','entityInit$',':backup:','_cursorInfo$','_hover','getRealBound','_scheduleHeartbeat','_applyCommand','search','setUndoRedoMutationParamsCache','getRenderById','subunit','dispose','red.300','getActiveSlide','m2Prime','_init','undoState','replaceState','getUnitId','_doCreateSocket','_anchor','_heartbeatTimer','_getAnchorBounding','lineTo','261203ToDHaJ','from','scene','find','next','addClipboardHook','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','hovered','disposeUnit','setStateCache','removeEventListener','_render','addObjects','_drawTextRange','_initUnhandledRejectionListener','_logService','addHandlerCallback','origin','_session','symbol','forEach','_colorAssignService','_dataLoaderService','_univerInstanceService','addObject','range','save','_docTransformIMECacheService','_latestCursors','@univerjs-pro/collaboration-client-ui','key','evented','RemoveRowCommandId','icon','name','disableLocalCache','_handleJoinEvent','_docSkeleton','clickable','black','slide-element-selection','_entities','collabCursorState$','source','left','ACTIVE_UNIT_EVENT_CHANNEL','size','_refreshCollabCursors','complete','getUndoRedoMutationParamsCache','call','unhandledrejection','_handleEvent','_textBubble','getUnit','polite','_labelPosition','_cachedData','\x20-\x20','removeObject','getRangePointData','_instanceService','Unknown\x20user','dirtyRanges','filename','InsertRangeMoveDownCommandId','doc.mutation.rich-text-editing','univer-text-red-500','_revisionService','_config','resize','_memberService','closePath','imageSourceType','_collaborationController','_transformService','catch','univer-m-0\x20univer-p-0','getAncestorScale','_imageIoService','UPDATE_CURSOR','_showText','PERMISSION_DENIED','ONLINE','height','bind','uni.network.url-service','collaboration-client-ui.collabStatus.conflict','transformByState','textRanges','UNIVER_SHEET','setItem','#FFF','_updateLocalCursor','updateOfflineData','currentSkeleton$','_backgroundColor','min','popstate','registerRenderModule','SUBMIT_CHANGESET_TIMEOUT','registerBeforeClose','JOIN_ROOM_FAILED','getParam','_themeService','row','requireSession','_hasFormulaInDirtyRanges','_uiPartsService','transformSelections','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_highlight','href','onRendered','restore','ranges','Failed','onPointerEnter$','collaboration-client-ui.session.collaboration-timeout','InsertRangeMoveRightCommandId','_docStateChangeManagerService','activeSlideId$','text','_removeCollabCursors','rgb','_startSlideCollabCursor','highlight','_scheduleClearOtherTimer','push','subUnitId','asObservable','status','eventID','_startCalculationLimit','univer-text-blue-500','_docSkeletonManagerService','univer-appearance-none','collaboration-client-ui.collabStatus.syncing','_initResize','collaboration-client-ui.collabStatus.synced','_getSceneObjectByKey','font','_monkeyPatchLogService','error','split','_collaborationSessionService','isArray','3861TXHuiS','rgba(','_selfUnitIDs','NOT_COLLAB','stack','_status$','releaseFormulaLimitUrl','getConfig','getSheetId','[CollaborationDataLoaderController]','socket$','transform','toPrimitive','_getSheetObject','column','highlightSecond','span','_name','OTHER_CLIENTS_EDITING','yellow.400','_scheduleSaving','_clearPolling','_checkCalculationAvailable','_docSyncEditingCollabCursorService','RemoveColCommandId','_removeClearOtherTimer','newValue','map','_initEvent','history','object','getTypeOfUnitAdded$','makeDirty','startColumn','roomMembers','slice','_cursors','_onCursorUpdate','_draw','collaboration-client-ui.collaboration.closeRoom','assignAColorForMemberID','hide','_drawRectRange','toString','location','arc','_registerDependencies','collab-text-anchor-','showText','setConfig','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_send','moveTo','getColorFromTheme','MoveRangeCommandId','getCollabEntity$','onStarting','enableFrontendLog','subscribeEvent','addEventListener','17150nIEWHw','univer-border-none\x20univer-bg-transparent','_initCommandExecutedListener','AWAITING','slide-collab-cursor-','_handleHeartbeatEvent','_stopBlinking','_document','has','stage','_releaseCalculationLimit','_currentUsage','_updateURLWithCurrentState','15693sczkjq','Enter','startFormulaLimitUrl','InsertRowCommandId','onMouseMove','getUnitStatus$','getCellMatrix','subscribe','getOwnPropertyDescriptor','_transformUndoRedoStack','replace','transformMutation','setInterval','selectedIds','_handleLeaveEvent','getCurrentTypeOfUnit$','onPointerMove$','decorate','collaboration-client-ui.permission.content','top','runOnServer','_initCommandInterceptor','isEditing','_entityInit$','collaboration-client-ui.formula.calculation.waiting','rgba(255,\x20255,\x20255,\x200.01)','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_getFormulaLimitStatus','UNIVER_SLIDE','debug','removeParam','CLOSE_ROOM','Error','purple.300','getObject','override','_toggleOnline','_syncEditingCollabCursorService','_hideTimer','i18nKey','_beforeCloseService','parseInt','_updateCollabCursors','set','max','beginPath','focusedId','some','clearTimeout','SUCCESS','getUnhiddenWorksheets','filter','getValue','_online','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_collabCursorState$','_refRangeService','_initUserListener','/universer-api/license/formula/limit/status','fill','_sheetSkeletonManagerService','prototype','_slideDrawingStateService','color','clearInterval','_roomMembers$','getFocusedUnit','setAlpha','strokeRect','_docTransformStateCacheService','_scheduleRender','_initStatusListener','exhaustSavingTask','message','getFormulaLimitStatusUrl','labelPosition','_initStatusComponent','with','_uploadLog','status$','CONFLICT','Warning','event$','rgba','unload','width','unitID','_saveTaskMap','1.0.0-alpha.1','unshift','roomMembers$','string','_collabCursorController','sessionTicket','_lastPointer','registerRefRange','startRow','_eventUnsubscribe','activeSheet$','onCommandExecuted','colorClass','saveImage','_id','_pointerMoveDisposable','_collabSessionService','getActiveRange','findNodePositionByCharIndex','setParam','_handleHover','setActiveRange','_localCacheService','strokeWidth','_startSheetCollabCursor','_getLighterColor','_saveCache','delete','urlChange$','fillStyle','_setFormulaLimitStatus','invokeId','OFFLINE','_colorIndex','getMemberID','fillText','kind','get','/run/','application/json','_range','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','values','context','_unitOnClients','0.2)','saveTaskMap','pushState','80fbLKAz','dispose$','pageManager','addObject$','preventDefault','OTHER_CLIENT_EDITING','stringify','_ensureSubject','pluginName','getCollabCursors$','USERS_LEAVE','stageInfo','createInstance','FromArray','init','cursorInfo','params','RECT','_anchorDot','_setupSubUnitSync','iterator','_getSessionTicket','_httpService','now','_context','triggerDblclick','getActiveSheet','_collaborationUIEventService','_taskIds','[LogService\x20Error]:\x20','memberID','_notificationService','runId','_injector','reconnect','green.600','_registerRenderDependencies','_unitStatus','getSheetBySheetId','removeObjects','[Window\x20Error]:\x20','_cursor','true','collaboration-client-ui.conflict.title','34278hhFAgY','getObjectIncludeInGroup','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','includes','pipe','sessionStatus$','294098ELEJUu','version','_initDependencies','UNIVER_DOC','focused$','searchParams','getItem','_pollingInterval','getStateCache','add','_maxFormulaLimit','type','disposeWithMe','SOCKET_FAILED','/universer-api/license/formula/limit/start','post','getCellPositionByOffset','onPointerLeave$','backupOfflineData','getCurrentSkeleton','_toggleOffline','_createSocketURL','limitInfo','collaboration-client-ui.conflict.content','_hovered','_blinkIntervalTimer','getMember','packageName','_onCursorDelete','_commandService','unsubscribe','...','currentUsage','TEXT','univer-flex\x20univer-items-center\x20univer-justify-center','_highlightSecond','spin','collaboration-client-ui.session.will-retry','357PvpJES','785800kuwkIk','syncEditingCollabCursor','function','show','deepClone','transformIMECache','_localStorageService','defineProperty','loadUnit','?taskId=',',\x200.2)','measureText','code','_showGuardMessage','cursorInfo$','setShapeProps','_initEntityListener','getCurrentUnitOfType','then','mutations','selection','/universer-api/frontend/logs','1077260dzIvaB','VIEW_MAIN','_lastResponseTimestamp','transformMutationsWithChangeset'];_0x3b21=function(){return _0x27b904;};return _0x3b21();}Rn=q([K(0x0,_0x5e7f17(_0x396982)),K(0x1,_0x5e7f17(_0x3c0cc7)),K(0x2,_0x4745e9),K(0x3,_0x821e06),K(0x4,_0x40f7a1)],Rn);let zn=class extends _0x3b1408{constructor(_0xfedb5,_0x319430,_0x2ffcba){const _0x5e0f04=_0x4fce49;super(),this[_0x5e0f04(0x2f3)]=_0xfedb5,this[_0x5e0f04(0x1e3)]=_0x319430,this['_configService']=_0x2ffcba;}async[_0x4fce49(0x159)](_0x5bd561,_0xff4bc6,_0x46e866,..._0x4f1847){const _0x18c8b7=_0x4fce49;var _0x1b4f25,_0x53fa61,_0xa83477,_0x37a488;let _0x3368cf=this[_0x18c8b7(0x2f3)][_0x18c8b7(0x187)]();if(!_0x3368cf)throw Error(_0x18c8b7(0x15f));let _0x35a3f9=((_0x1b4f25=this['_configService'][_0x18c8b7(0x103)](_0x47a206))==null?_0x38aa17:_0x1b4f25)+'/'+_0x5bd561+_0x18c8b7(0x1c3)+_0xff4bc6,_0x40482e={'scriptId':_0x5bd561,'runId':(_0x53fa61=new URL(window[_0x18c8b7(0x128)][_0x18c8b7(0xd9)])[_0x18c8b7(0x204)]['get'](_0x18c8b7(0x1ed)))==null?'':_0x53fa61,'function':_0xff4bc6,'unitId':_0x3368cf[_0x18c8b7(0x2b0)](),'argsOfFunction':JSON[_0x18c8b7(0x1d3)](_0x4f1847),'invokeId':(_0xa83477=_0x46e866[_0x18c8b7(0x1bc)])==null?'':_0xa83477,'executionId':(_0x37a488=_0x46e866['executionId'])==null?'':_0x37a488};try{let _0x168497=await this[_0x18c8b7(0x1e3)]['post'](_0x35a3f9,{'body':_0x40482e});return _0x168497['body'][_0x18c8b7(0xf8)]&&_0x168497['body'][_0x18c8b7(0xf8)][_0x18c8b7(0x232)]!==_0x1cfe9f['OK']?_0x18c8b7(0xdd):_0x168497[_0x18c8b7(0x284)]['result'];}catch{return _0x18c8b7(0xdd);}}};zn=q([K(0x0,_0x512649),K(0x1,_0x5e7f17(_0x3c0cc7)),K(0x2,_0x4745e9)],zn);const Bn=0x7530,Vn=_0x4fce49(0x2e3);var Hn=class extends _0x3b1408{constructor(){const _0x2e8872=_0x4fce49;super(),G(this,_0x2e8872(0x1ab),_0x1321c7()),G(this,_0x2e8872(0xfe),new Set()),G(this,_0x2e8872(0x1c9),new Map()),G(this,'_heartbeatTimer',null),G(this,_0x2e8872(0x24c),new Map()),G(this,_0x2e8872(0x1f2),new Map()),this[_0x2e8872(0x2ad)]();}['dispose'](){const _0xb551ad=_0x4fce49;super[_0xb551ad(0x2a9)](),this['_clearOtherTimers']['forEach']((_0x32421c,_0x2846b2)=>this[_0xb551ad(0x115)](_0x2846b2)),this['_heartbeatTimer']&&window[_0xb551ad(0x185)](this[_0xb551ad(0x2b3)]);}[_0x4fce49(0x14a)](_0x4e4491){const _0x100321=_0x4fce49;return this[_0x100321(0x1d4)](_0x4e4491)[_0x100321(0x1fd)](_0x5203c4());}['editingUnit'](_0xe2e06){const _0x1a4642=_0x4fce49;this['_selfUnitIDs']['size']===0x0&&this[_0x1a4642(0x2a3)](),this[_0x1a4642(0xfe)][_0x1a4642(0x208)](_0xe2e06),this[_0x1a4642(0x12f)]({'type':0x0,'memberID':this[_0x1a4642(0x1ab)],'unitIDs':[_0xe2e06],'isForwarded':!0x1});}[_0x4fce49(0x2be)](_0x28e8bb){const _0x5971b0=_0x4fce49;this['_selfUnitIDs'][_0x5971b0(0x1b8)](_0x28e8bb),this[_0x5971b0(0xfe)][_0x5971b0(0x2e4)]===0x0&&this[_0x5971b0(0x2b3)]&&window[_0x5971b0(0x185)](this[_0x5971b0(0x2b3)]);}[_0x4fce49(0x2ad)](){const _0x569e85=_0x4fce49;this[_0x569e85(0x20b)](_0xf76a73(_0x3cf39d(window,'storage')[_0x569e85(0x14c)](_0x4398e8=>{const _0x43a6eb=_0x569e85;if(_0x4398e8[_0x43a6eb(0x2d4)]!==Vn||!_0x4398e8[_0x43a6eb(0x116)])return;let _0x475498=JSON[_0x43a6eb(0x24e)](_0x4398e8[_0x43a6eb(0x116)]);this[_0x43a6eb(0x2ea)](_0x475498);}))),window['addEventListener'](_0x569e85(0x199),()=>this[_0x569e85(0x12f)]({'type':0x1,'memberID':this[_0x569e85(0x1ab)],'unitIDs':Array[_0x569e85(0x2b7)](this[_0x569e85(0xfe)])}));}['_handleEvent'](_0x134545){const _0x412598=_0x4fce49;switch(_0x134545[_0x412598(0x20a)]){case 0x0:this[_0x412598(0x2da)](_0x134545);break;case 0x1:this[_0x412598(0x153)](_0x134545);break;case 0x2:this[_0x412598(0x13d)](_0x134545);break;}}[_0x4fce49(0x2da)](_0x4f95b2){const _0x423d60=_0x4fce49;let {unitIDs:_0x43f51b,memberID:_0x181d3a,isForwarded:_0x11c853}=_0x4f95b2;_0x43f51b[_0x423d60(0x2ca)](_0x20d1aa=>{const _0x1fbbf9=_0x423d60;if(!_0x11c853&&this[_0x1fbbf9(0x1c9)][_0x1fbbf9(0x140)](_0x20d1aa)&&this[_0x1fbbf9(0x1d4)](_0x20d1aa)['next'](_0x3191c3['OTHER_CLIENTS_EDITING']),!this[_0x1fbbf9(0x1c9)][_0x1fbbf9(0x140)](_0x20d1aa)||!this['_unitOnClients'][_0x1fbbf9(0x1c2)](_0x20d1aa)[_0x1fbbf9(0x140)](_0x181d3a)){let _0x306a7c=this[_0x1fbbf9(0x1c9)]['get'](_0x20d1aa)||new Set();_0x306a7c[_0x1fbbf9(0x208)](_0x181d3a),this['_unitOnClients']['set'](_0x20d1aa,_0x306a7c),this[_0x1fbbf9(0xe8)](_0x181d3a);}}),_0x11c853||this[_0x423d60(0x12f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x423d60(0xfe)]],'isForwarded':!0x0});}[_0x4fce49(0xe8)](_0x1f6b51){const _0x33d6a6=_0x4fce49;this[_0x33d6a6(0x115)](_0x1f6b51);let _0x250158=window['setTimeout'](()=>{const _0x401b44=_0x33d6a6;this['_unitOnClients'][_0x401b44(0x2ca)](_0x5409fa=>{_0x5409fa['delete'](_0x1f6b51);});},Bn*0x2);this['_clearOtherTimers'][_0x33d6a6(0x170)](_0x1f6b51,_0x250158);}['_removeClearOtherTimer'](_0x6045a9){const _0x555a6d=_0x4fce49;if(this['_clearOtherTimers'][_0x555a6d(0x140)](_0x6045a9)){let _0x521e9d=this[_0x555a6d(0x24c)][_0x555a6d(0x1c2)](_0x6045a9);_0x521e9d&&window[_0x555a6d(0x175)](_0x521e9d),this[_0x555a6d(0x24c)][_0x555a6d(0x170)](_0x6045a9,null);}}['_handleLeaveEvent'](_0x46909c){const _0x127ef9=_0x4fce49;let {memberID:_0x32e1ac,unitIDs:_0x542c83}=_0x46909c;_0x542c83[_0x127ef9(0x2ca)](_0x2fc3d1=>{const _0x18bf7f=_0x127ef9;var _0x584eaa;let _0x56eefc=this[_0x18bf7f(0x1c9)][_0x18bf7f(0x1c2)](_0x2fc3d1);_0x56eefc&&(_0x56eefc[_0x18bf7f(0x1b8)](_0x32e1ac),(_0x584eaa=this[_0x18bf7f(0x1d4)](_0x2fc3d1))==null||_0x584eaa[_0x18bf7f(0x2ba)](_0x56eefc[_0x18bf7f(0x2e4)]===0x0?_0x3191c3[_0x18bf7f(0x249)]:_0x3191c3[_0x18bf7f(0x10e)]));}),this[_0x127ef9(0x115)](_0x32e1ac);}[_0x4fce49(0x13d)](_0xd3c01){const _0x300cf3=_0x4fce49;this['_scheduleClearOtherTimer'](_0xd3c01[_0x300cf3(0x1eb)]);}[_0x4fce49(0x12f)](_0x2f5ba3){const _0x541d8a=_0x4fce49;localStorage[_0x541d8a(0xc4)](Vn,JSON[_0x541d8a(0x1d3)](_0x2f5ba3));}['_scheduleHeartbeat'](){const _0x21a131=_0x4fce49;this[_0x21a131(0x2b3)]=window[_0x21a131(0x151)](()=>{const _0xbdc02f=_0x21a131;this[_0xbdc02f(0x12f)]({'type':0x2,'memberID':this[_0xbdc02f(0x1ab)]});},Bn);}[_0x4fce49(0x1d4)](_0x230f4d){const _0x4c7377=_0x4fce49;return this[_0x4c7377(0x1f2)][_0x4c7377(0x140)](_0x230f4d)||this[_0x4c7377(0x1f2)][_0x4c7377(0x170)](_0x230f4d,new _0x12f80d(_0x3191c3[_0x4c7377(0x249)])),this['_unitStatus'][_0x4c7377(0x1c2)](_0x230f4d);}};export{Rn as BrowserCollaborationSocketService,Y as CollaborationDataLoaderController,J as DesktopCollaborationStatusDisplayController,nn as IURLService,zn as RemoteUniscriptService,Cn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,Hn as WebBrowserSingleActiveUnitService,Ln as WebURLService};