@univerjs-pro/collaboration-client-ui 1.0.0-beta.0 → 1.0.0-beta.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 (104) 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 +10 -22
  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/commands/operations/update-remote-unit-presence.operation.d.ts +25 -0
  66. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +2 -4
  67. package/lib/types/controllers/collab-cursor/unit-presence-collab-cursor-entity.d.ts +38 -0
  68. package/lib/types/controllers/collab-cursor/unit-presence-collab-cursor.controller.d.ts +21 -0
  69. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +8 -13
  70. package/lib/types/controllers/data-loader/data-loader.controller.d.ts +1 -2
  71. package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +3 -15
  72. package/lib/types/locale/en-US.d.ts +0 -1
  73. package/lib/types/models/cursor.d.ts +0 -25
  74. package/lib/types/plugin.d.ts +3 -2
  75. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +3 -3
  76. package/lib/types/views/components/SnapshotLoadingTimeout.d.ts +0 -4
  77. package/lib/types/views/shapes/doc-collab-cursor.d.ts +6 -1
  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 +17 -21
  100. package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +0 -31
  101. package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +0 -21
  102. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +0 -34
  103. package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +0 -21
  104. package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +0 -15
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3bc3ed=_0xb747;(function(_0x5e039a,_0x144b39){const _0x5efd46=_0xb747,_0x2062c9=_0x5e039a();while(!![]){try{const _0x5471a6=parseInt(_0x5efd46(0x3e6))/0x1+parseInt(_0x5efd46(0x218))/0x2+parseInt(_0x5efd46(0x3ed))/0x3+-parseInt(_0x5efd46(0x1f8))/0x4+parseInt(_0x5efd46(0x3b5))/0x5*(-parseInt(_0x5efd46(0x3b4))/0x6)+-parseInt(_0x5efd46(0x37c))/0x7+parseInt(_0x5efd46(0x2b9))/0x8;if(_0x5471a6===_0x144b39)break;else _0x2062c9['push'](_0x2062c9['shift']());}catch(_0x421bc8){_0x2062c9['push'](_0x2062c9['shift']());}}}(_0x29fa,0x5c33d));import{BOARD_TOP_RIGHT_MENU_LEADING_PART as _0x52a79c,IBoardElementStateService as _0x141412,getBoardElementRenderObjectKey as _0x15af57}from'@univerjs-pro/boards-ui';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3d763c,CollaborationController as _0x37bcf2,CollaborationSessionService as _0x48f983,CollaborationSocketService as _0x58047a,CollaborationStatus as _0x331606,CollaborationUIEventId as _0x5e38ec,CollaborationUIEventService as _0x36c2f5,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x210c45,DEFAULT_WS_SESSION_TICKET_URL as _0x2d3b4c,DataLoaderService as _0x21830c,DocCollaborationEntity as _0x42f238,ILocalCacheService as _0x571f9b,LOCAL_CACHE_INTERVAL as _0x44bde3,LOCAL_CACHE_INTERVAL_KEY as _0x4fb8cb,MemberService as _0x1dadcd,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0xc1e12a,SessionStatus as _0x5ea676,UnitStatus as _0x14eb9b,UniverCollaborationClientPlugin as _0x38b492,getLocalCacheKey as _0x419d06}from'@univerjs-pro/collaboration-client';import{COLORS as _0x21d29b,CanceledError as _0x4e0243,ColorKit as _0x489bde,DOC_RANGE_TYPE as _0x41cd22,DependentOn as _0x1e8dea,Disposable as _0x1b14aa,DisposableCollection as _0x5b1175,ICommandService as _0x581e85,IConfigService as _0x3f2cb5,IImageIoService as _0x281c7f,ILocalStorageService as _0x1352c2,ILogService as _0x483e73,IUniverInstanceService as _0x449dc1,Inject as _0x4d1fed,Injector as _0x57f253,LocaleService as _0x2d2bf4,Optional as _0x122b91,Plugin as _0x5172e1,PluginService as _0x25f263,Rectangle as _0x186f70,RxDisposable as _0x2c69b2,ThemeService as _0x8d2d0f,Tools as _0x5e4224,UniverInstanceType as _0x410a65,Workbook as _0x3b5356,createIdentifier as _0x1f7596,debounce as _0x57d052,fromEventSubject as _0x4b7ade,generateRandomId as _0x1294de,isFormulaId as _0x26cc3f,isFormulaString as _0x158c7b,isInternalEditorID as _0x3ccad3,merge as _0x437a63,mergeOverrideWithDependencies as _0x437474,registerDependencies as _0x50dcc9,toDisposable as _0x9b2c48,touchDependencies as _0x2e8102}from'@univerjs/core';import{BuiltInUIPart as _0x504019,IBeforeCloseService as _0x5149b9,IMessageService as _0x454719,INotificationService as _0x546073,IShortcutService as _0x184422,IUIPartsService as _0x175ddd,connectInjector as _0x2aafc2,useDependency as _0x364691,useObservable as _0x40d51c}from'@univerjs/ui';import{BehaviorSubject as _0x5c73ce,Subject as _0x5ded12,combineLatest as _0x20eef1,debounceTime as _0x4598fc,distinctUntilChanged as _0x13c171,filter as _0x10eeb,fromEvent as _0x237140,mapTo as _0x382d75,merge as _0x739bae,of as _0x6a4fab,shareReplay as _0x1b1f07,switchMap as _0x3c42c4,takeUntil as _0x18a3e8}from'rxjs';import{distinctUntilChanged as _0x57b04f,filter as _0x39b3f9,map as _0x8474ef,switchMap as _0x338146,takeUntil as _0x17f81b,throttleTime as _0x312d34}from'rxjs/operators';import{Button as _0x320797,MessageType as _0x4703d3,Tooltip as _0x3b2a4f,clsx as _0x142495}from'@univerjs/design';import{LoadingMultiIcon as _0x5116a6,OffLineIcon as _0x5df0b1,OnLineIcon as _0x48ae2e,WarningIcon as _0x590f24}from'@univerjs/icons';import{createElement as _0x13edf8,useCallback as _0x14706a,useMemo as _0x473967}from'react';import{Fragment as _0x5cf6b0,jsx as _0x1332bc,jsxs as _0x89ce4a}from'react/jsx-runtime';import{CollaborationEvent as _0x5db27d,ISnapshotServerService as _0x58c39f,ITransformService as _0x1ca2f6,RevisionService as _0x731ae8,SnapshotLoadStage as _0x28cb8d,SnapshotLoadingService as _0x114337,UniverCollaborationPlugin as _0x285ff7,isTransformMutationFailure as _0x4a2b76,isTransformMutationsWithChangesetSuccess as _0x257abb}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x2566dd}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x514f9f,DocSkeletonManagerService as _0x258d37,DocStateChangeManagerService as _0x358cad,RichTextEditingMutation as _0x175756,SetTextSelectionsOperation as _0x306fe8,UniverDocsPlugin as _0x282738}from'@univerjs/docs';import{DocIMEInputManagerService as _0x52a25d,IDocClipboardService as _0x568477,NodePositionConvertToCursor as _0x4641fe,NodePositionConvertToRectRange as _0x2d87b3,SetDocZoomRatioOperation as _0x4447c9,TEXT_RANGE_LAYER_INDEX as _0x5b3e02,UniverDocsUIPlugin as _0x8f0a5a}from'@univerjs/docs-ui';import{IRenderManagerService as _0x4b25cc,Rect as _0x18e662,RegularPolygon as _0x60c9b6,SHEET_VIEWPORT_KEY as _0x55e659,Shape as _0x301f9c,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x38414a,UniverRenderEnginePlugin as _0x295a3d,Vector2 as _0x195cd0,getColor as _0x46dc64}from'@univerjs/engine-render';import{HTTPService as _0x1365bf,ISocketService as _0x13621c,UniverNetworkPlugin as _0x544056,WebSocketService as _0x2a48b1}from'@univerjs/network';import{FormulaExecuteStageType as _0x144f31,FormulaExecutedStateType as _0x1e8a08,SetFormulaCalculationNotificationMutation as _0x85d638,SetFormulaCalculationStartMutation as _0x150725,deserializeRangeWithSheet as _0x428444,serializeRangeWithSheet as _0x3fc7ee}from'@univerjs/engine-formula';import{EffectRefRangId as _0x4ee3b0,RefRangeService as _0x46b02d,SetSelectionsOperation as _0x148457,SetWorksheetActivateCommand as _0x40784d,SheetsSelectionsService as _0x1265bd,handleDeleteRangeMoveLeft as _0x390f96,handleDeleteRangeMoveUp as _0x121ffe,handleIRemoveCol as _0x54040f,handleIRemoveRow as _0x4a00ed,handleInsertCol as _0x14d9b5,handleInsertRangeMoveDown as _0x52df76,handleInsertRangeMoveRight as _0x5abb5e,handleInsertRow as _0x384857,handleMoveRange as _0x65e08,runRefRangeMutations as _0x13d8bd}from'@univerjs/sheets';import{ISlideDrawingStateService as _0x3f17c0,buildDrawingOKey as _0x5f12b3}from'@univerjs-pro/slides-ui';import{ISheetLoadingRenderService as _0x233bcb,SheetSkeletonManagerService as _0x7009c4,getCoordByCell as _0x5cd088,getSheetObject as _0x56ed87}from'@univerjs/sheets-ui';import{IRemoteInstanceService as _0x3e11b5}from'@univerjs/rpc';import{ErrorCode as _0x4f2945}from'@univerjs/protocol';function mn(_0x25b66a){const _0x519b41=_0xb747;switch(_0x25b66a){case _0x331606['OFFLINE']:return{'icon':_0x1332bc(_0x5df0b1,{}),'colorClass':_0x519b41(0x2ab),'i18nKey':_0x519b41(0x43b),'tooltipKey':_0x519b41(0x431),'clickable':!0x0,'indicator':_0x519b41(0x3bc)};case _0x331606[_0x519b41(0x2ea)]:return{'icon':_0x1332bc(_0x5df0b1,{}),'colorClass':_0x519b41(0x362),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x519b41(0x3bc)};case _0x331606[_0x519b41(0x2fe)]:return{'icon':_0x1332bc(_0x5116a6,{}),'colorClass':_0x519b41(0x3fc),'i18nKey':_0x519b41(0x3a1),'clickable':!0x1,'indicator':_0x519b41(0x2c4)};case _0x331606[_0x519b41(0x2e6)]:return{'icon':_0x1332bc(_0x48ae2e,{}),'colorClass':_0x519b41(0x1c2),'i18nKey':_0x519b41(0x391),'clickable':!0x1,'indicator':_0x519b41(0x3bc)};case _0x331606[_0x519b41(0x235)]:case _0x331606[_0x519b41(0x350)]:return{'icon':_0x1332bc(_0x5116a6,{}),'colorClass':_0x519b41(0x3fc),'i18nKey':_0x519b41(0x3f6),'clickable':!0x1,'indicator':_0x519b41(0x2c4)};case _0x331606[_0x519b41(0x331)]:return{'icon':_0x1332bc(_0x5116a6,{}),'colorClass':_0x519b41(0x3fc),'i18nKey':_0x519b41(0x3f6),'clickable':!0x1,'indicator':_0x519b41(0x2c4)};case _0x331606[_0x519b41(0x44b)]:return{'icon':_0x1332bc(_0x48ae2e,{}),'colorClass':_0x519b41(0x439),'i18nKey':_0x519b41(0x1ff),'clickable':!0x1,'indicator':_0x519b41(0x3bc)};}}function hn(_0x1181f4){const _0x143834=_0xb747;let {status$:_0x2c49c0}=_0x1181f4,_0xe16119=_0x40d51c(_0x2c49c0,_0x331606['NOT_COLLAB']),_0x1f0c57=_0x364691(_0x2d2bf4),_0x44b81b=_0x364691(_0x48f983),_0x47b2aa=_0x473967(()=>mn(_0xe16119),[_0xe16119]),_0xabd03a=_0xe16119!==_0x331606['OFFLINE'],_0x4288b8=_0x1f0c57['t'](_0x47b2aa[_0x143834(0x3ea)]),_0x4365b8=_0x47b2aa[_0x143834(0x2f7)]?_0x1f0c57['t'](_0x47b2aa[_0x143834(0x2f7)]):_0x4288b8,_0xb91f3f=_0x14706a(()=>{const _0x5221df=_0x143834;_0xabd03a||_0x44b81b[_0x5221df(0x24f)]();},[_0xabd03a,_0x44b81b]),_0x34fb44=_0x14706a(_0x54b024=>{const _0x5c97fa=_0x143834;!_0xabd03a&&(_0x54b024['key']===_0x5c97fa(0x285)||_0x54b024[_0x5c97fa(0x35d)]==='\x20')&&(_0x54b024[_0x5c97fa(0x236)](),_0x44b81b['reconnect']());},[_0xabd03a,_0x44b81b]),_0x4b59da=_0x1332bc(_0x143834(0x40a),{'className':_0x142495(_0x143834(0x2b6),_0x143834(0x410),_0x47b2aa[_0x143834(0x208)],{'univer-animate-spin':_0x47b2aa[_0x143834(0x35b)]===_0x143834(0x2c4),'univer-animate-pulse':_0x47b2aa[_0x143834(0x35b)]==='pulse'}),'aria-hidden':'true','children':_0x47b2aa[_0x143834(0x41a)]}),_0x50e168=_0x1332bc(_0x143834(0x40a),{'className':_0x142495(_0x143834(0x2b6),_0x143834(0x2d6),_0x143834(0x3e2),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2',_0x143834(0x443),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x47b2aa[_0x143834(0x254)],'univer-cursor-default':!_0x47b2aa[_0x143834(0x254)]}),'children':_0x4b59da});return _0x47b2aa[_0x143834(0x254)]?_0x1332bc(_0x3b2a4f,{'title':_0x4365b8,'placement':_0x143834(0x223),'children':_0x1332bc(_0x143834(0x398),{'type':_0x143834(0x398),'onClick':_0xb91f3f,'onKeyDown':_0x34fb44,'className':_0x142495(_0x143834(0x2ca),'univer-border-none\x20univer-bg-transparent',_0x143834(0x355),_0x143834(0x3a4)),'aria-label':_0x4288b8+_0x143834(0x445)+_0x4365b8,'role':_0x143834(0x295),'aria-live':_0x143834(0x283),'aria-atomic':_0x143834(0x1fc),'children':_0x50e168})}):_0x1332bc(_0x3b2a4f,{'title':_0x4365b8,'placement':_0x143834(0x223),'children':_0x1332bc(_0x143834(0x274),{'className':_0x142495(_0x143834(0x2ca),'univer-border-none\x20univer-bg-transparent','univer-m-0\x20univer-p-0'),'aria-label':_0x4288b8,'role':'status','aria-live':_0x143834(0x283),'aria-atomic':_0x143834(0x1fc),'children':_0x50e168})});}function K(_0x25310a){'@babel/helpers - typeof';return K=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x3b7d41){return typeof _0x3b7d41;}:function(_0x51b19b){const _0xb88116=_0xb747;return _0x51b19b&&typeof Symbol==_0xb88116(0x312)&&_0x51b19b['constructor']===Symbol&&_0x51b19b!==Symbol[_0xb88116(0x225)]?_0xb88116(0x2c8):typeof _0x51b19b;},K(_0x25310a);}function gn(_0x3521fb,_0x342c4b){const _0x543e4f=_0xb747;if(K(_0x3521fb)!=_0x543e4f(0x364)||!_0x3521fb)return _0x3521fb;var _0x52936a=_0x3521fb[Symbol[_0x543e4f(0x449)]];if(_0x52936a!==void 0x0){var _0x26bb09=_0x52936a[_0x543e4f(0x1c9)](_0x3521fb,_0x342c4b||_0x543e4f(0x289));if(K(_0x26bb09)!=_0x543e4f(0x364))return _0x26bb09;throw TypeError(_0x543e4f(0x313));}return(_0x342c4b==='string'?String:Number)(_0x3521fb);}function _n(_0x4d7e34){const _0x2eb7e0=_0xb747;var _0x3a4d96=gn(_0x4d7e34,_0x2eb7e0(0x2e9));return K(_0x3a4d96)=='symbol'?_0x3a4d96:_0x3a4d96+'';}function q(_0x1c03b1,_0xf87d8b,_0x430c60){return(_0xf87d8b=_n(_0xf87d8b))in _0x1c03b1?Object['defineProperty'](_0x1c03b1,_0xf87d8b,{'value':_0x430c60,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c03b1[_0xf87d8b]=_0x430c60,_0x1c03b1;}function J(_0xdba0e6,_0x3c99a8){return function(_0x4b304a,_0x40fbff){_0x3c99a8(_0x4b304a,_0x40fbff,_0xdba0e6);};}function Y(_0x460c89,_0x1f351c,_0x52342f,_0x5812bb){const _0x50ce09=_0xb747;var _0xbacc05=arguments[_0x50ce09(0x1f0)],_0x45e42a=_0xbacc05<0x3?_0x1f351c:_0x5812bb===null?_0x5812bb=Object[_0x50ce09(0x3d4)](_0x1f351c,_0x52342f):_0x5812bb,_0x15c168;if(typeof Reflect==_0x50ce09(0x364)&&typeof Reflect[_0x50ce09(0x1db)]=='function')_0x45e42a=Reflect['decorate'](_0x460c89,_0x1f351c,_0x52342f,_0x5812bb);else{for(var _0x556e49=_0x460c89['length']-0x1;_0x556e49>=0x0;_0x556e49--)(_0x15c168=_0x460c89[_0x556e49])&&(_0x45e42a=(_0xbacc05<0x3?_0x15c168(_0x45e42a):_0xbacc05>0x3?_0x15c168(_0x1f351c,_0x52342f,_0x45e42a):_0x15c168(_0x1f351c,_0x52342f))||_0x45e42a);}return _0xbacc05>0x3&&_0x45e42a&&Object[_0x50ce09(0x2a3)](_0x1f351c,_0x52342f,_0x45e42a),_0x45e42a;}let X=class extends _0x1b14aa{constructor(_0x1b2b7d,_0xe4eb82,_0x3ede15,_0x59bfa7){const _0x3238b7=_0xb747;super(),this['_univerInstanceService']=_0x1b2b7d,this[_0x3238b7(0x33f)]=_0xe4eb82,this[_0x3238b7(0x29b)]=_0x3ede15,this['_uiPartsService']=_0x59bfa7,q(this,_0x3238b7(0x3c1),new _0x5c73ce(_0x331606[_0x3238b7(0x2e6)])),this[_0x3238b7(0x237)](),this[_0x3238b7(0x266)]();}['_initStatusListener'](){const _0x237fc5=_0xb747;this['disposeWithMe'](_0x739bae(this[_0x237fc5(0x3a6)][_0x237fc5(0x38f)],this[_0x237fc5(0x3a6)][_0x237fc5(0x397)](_0x410a65[_0x237fc5(0x1d8)]),this['_univerInstanceService'][_0x237fc5(0x397)](_0x410a65[_0x237fc5(0x3a0)]))[_0x237fc5(0x320)](_0x8474ef(()=>yn(this[_0x237fc5(0x3a6)])),_0x57b04f(),_0x3c42c4(_0x331d99=>_0x331d99?this[_0x237fc5(0x29b)][_0x237fc5(0x40e)](_0x331d99):_0x6a4fab(null)),_0x3c42c4(_0x1f324f=>_0x1f324f?_0x1f324f['status$']:_0x6a4fab(_0x331606['NOT_COLLAB'])))['subscribe'](_0x2cbf8e=>{const _0x579685=_0x237fc5;this[_0x579685(0x3c1)]['next'](_0x2cbf8e);}));}[_0x3bc3ed(0x237)](){const _0x44ee32=_0x3bc3ed;this[_0x44ee32(0x239)](this['_uiPartsService'][_0x44ee32(0x36b)](_0x504019[_0x44ee32(0x1d4)],()=>_0x2aafc2(xn({'status$':this[_0x44ee32(0x3c1)]['asObservable']()}),this['_injector'])));}};X=Y([J(0x0,_0x449dc1),J(0x1,_0x4d1fed(_0x57f253)),J(0x2,_0x4d1fed(_0x37bcf2)),J(0x3,_0x175ddd)],X);let vn=class extends _0x1b14aa{constructor(_0x318ae7,_0x161684,_0x46498e,_0x14466a){const _0x31e742=_0x3bc3ed;super(),this[_0x31e742(0x3a6)]=_0x318ae7,this[_0x31e742(0x33f)]=_0x161684,this[_0x31e742(0x29b)]=_0x46498e,this[_0x31e742(0x424)]=_0x14466a,q(this,_0x31e742(0x3c1),new _0x5c73ce(_0x331606[_0x31e742(0x2e6)])),this['_initStatusComponent'](),this[_0x31e742(0x266)]();}[_0x3bc3ed(0x266)](){const _0x27f8d8=_0x3bc3ed;this[_0x27f8d8(0x239)](_0x739bae(_0x6a4fab(null),this[_0x27f8d8(0x3a6)][_0x27f8d8(0x397)](_0x410a65[_0x27f8d8(0x3f9)]))[_0x27f8d8(0x320)](_0x8474ef(()=>bn(this['_univerInstanceService'])),_0x57b04f(),_0x3c42c4(_0x48eeeb=>_0x48eeeb?this[_0x27f8d8(0x29b)]['getCollabEntity$'](_0x48eeeb):_0x6a4fab(null)),_0x3c42c4(_0x3a3c5b=>_0x3a3c5b?_0x3a3c5b[_0x27f8d8(0x422)]:_0x6a4fab(_0x331606[_0x27f8d8(0x2e6)])))[_0x27f8d8(0x1f2)](_0x51de0f=>{const _0x122a79=_0x27f8d8;this[_0x122a79(0x3c1)][_0x122a79(0x36a)](_0x51de0f);}));}[_0x3bc3ed(0x237)](){const _0xf2b0eb=_0x3bc3ed;this[_0xf2b0eb(0x239)](this['_uiPartsService'][_0xf2b0eb(0x36b)](_0x52a79c,()=>_0x2aafc2(xn({'status$':this[_0xf2b0eb(0x3c1)][_0xf2b0eb(0x2ae)]()}),this['_injector'])));}};vn=Y([J(0x0,_0x449dc1),J(0x1,_0x4d1fed(_0x57f253)),J(0x2,_0x4d1fed(_0x37bcf2)),J(0x3,_0x175ddd)],vn);function yn(_0x58fbf9){const _0x3ac337=_0x3bc3ed;let _0x587d25=_0x58fbf9[_0x3ac337(0x267)](),_0x13e5e3=_0x587d25==null?void 0x0:_0x587d25[_0x3ac337(0x275)]();if(_0x13e5e3&&!_0x3ccad3(_0x13e5e3))return _0x13e5e3;let _0x75c6ae=_0x58fbf9[_0x3ac337(0x3bb)](_0x410a65['UNIVER_DOC']),_0x51d9a1=_0x75c6ae==null?void 0x0:_0x75c6ae[_0x3ac337(0x275)]();if(_0x51d9a1&&!_0x3ccad3(_0x51d9a1))return _0x51d9a1;let _0x29f8eb=_0x58fbf9['getCurrentUnitOfType'](_0x410a65['UNIVER_SHEET']);if(_0x29f8eb)return _0x29f8eb[_0x3ac337(0x275)]();let _0x57ab74=_0x58fbf9[_0x3ac337(0x325)](_0x410a65[_0x3ac337(0x1d8)])['find'](_0x345e95=>!_0x3ccad3(_0x345e95[_0x3ac337(0x275)]()));return _0x57ab74?_0x57ab74[_0x3ac337(0x275)]():null;}function bn(_0x575515){const _0x3a4125=_0x3bc3ed;let _0x3b3fe6=_0x575515[_0x3a4125(0x3bb)](_0x410a65[_0x3a4125(0x3f9)]);return(_0x3b3fe6==null?void 0x0:_0x3b3fe6[_0x3a4125(0x275)]())??null;}function xn(_0x1ba24d){let {status$:_0x4e9aa2}=_0x1ba24d;return function(){return _0x1332bc(hn,{'status$':_0x4e9aa2});};}var Sn=_0x3bc3ed(0x417),Cn=_0x3bc3ed(0x229);const wn={};let Tn=class extends _0x2c69b2{constructor(_0x35ddba,_0x234625){const _0x5f0653=_0x3bc3ed;super(),this[_0x5f0653(0x2c0)]=_0x35ddba,this[_0x5f0653(0x2b0)]=_0x234625,this[_0x5f0653(0x3a5)]();}['_init'](){const _0x424d06=_0x3bc3ed;let _0x590a4b=this;this[_0x424d06(0x239)](this[_0x424d06(0x2c0)][_0x424d06(0x3fa)]({'onBeforePasteImage':async _0x15b137=>{const _0x1ecae8=_0x424d06;let _0x4df53e=await _0x590a4b[_0x1ecae8(0x2b0)][_0x1ecae8(0x24a)](_0x15b137);return _0x4df53e?{'source':_0x4df53e[_0x1ecae8(0x3f4)],'imageSourceType':_0x4df53e['imageSourceType']}:null;}}));}};Tn=Y([J(0x0,_0x568477),J(0x1,_0x281c7f)],Tn);function En(_0x4347f4,_0x2fc0fc){const _0x4c8edd=_0x3bc3ed;_0x4347f4[_0x4c8edd(0x1f3)](),_0x4347f4[_0x4c8edd(0x2fd)]=_0x4c8edd(0x32e);let _0x585fcd=_0x4347f4[_0x4c8edd(0x3eb)](_0x2fc0fc)[_0x4c8edd(0x2fc)];return _0x4347f4[_0x4c8edd(0x400)](),Math['min'](_0x585fcd+0x8,0xc8);}function Dn(_0x538da8,_0x109952){const _0x15fcca=_0x3bc3ed;let {radius:_0x54c4b8,width:_0x125b7a,height:_0x3140ab}=_0x109952;_0x54c4b8??=0x0,_0x125b7a??=0x1e,_0x3140ab??=0x1e;let _0x95f7b6=0x0,_0x2c0ef9=0x0,_0x8b3c83=0x0;_0x95f7b6=_0x2c0ef9=_0x8b3c83=Math[_0x15fcca(0x2aa)](_0x54c4b8,_0x125b7a/0x2,_0x3140ab/0x2),_0x538da8[_0x15fcca(0x3e9)](),_0x538da8[_0x15fcca(0x353)](_0x95f7b6,0x0),_0x538da8['lineTo'](_0x125b7a-_0x2c0ef9,0x0),_0x538da8[_0x15fcca(0x3f0)](_0x125b7a-_0x2c0ef9,_0x2c0ef9,_0x2c0ef9,Math['PI']*0x3/0x2,0x0,!0x1),_0x538da8[_0x15fcca(0x34e)](_0x125b7a,_0x3140ab-_0x8b3c83),_0x538da8[_0x15fcca(0x3f0)](_0x125b7a-_0x8b3c83,_0x3140ab-_0x8b3c83,_0x8b3c83,0x0,Math['PI']/0x2,!0x1),_0x538da8['lineTo'](0x0,_0x3140ab),_0x538da8[_0x15fcca(0x34e)](0x0,_0x95f7b6),_0x538da8['arc'](_0x95f7b6,_0x95f7b6,_0x95f7b6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x538da8[_0x15fcca(0x42e)](),_0x109952[_0x15fcca(0x20f)]&&(_0x538da8['save'](),_0x538da8[_0x15fcca(0x427)]=_0x109952['fill'],_0x109952['fillRule']===_0x15fcca(0x22f)?_0x538da8['fill'](_0x15fcca(0x22f)):_0x538da8[_0x15fcca(0x20f)](),_0x538da8['restore']());}var On=class e extends _0x301f9c{constructor(_0x237373,_0x42dade){const _0x159e7c=_0x3bc3ed;super(_0x237373,_0x42dade),q(this,'color',void 0x0),q(this,'text',void 0x0),this[_0x159e7c(0x2b3)]=_0x42dade==null?void 0x0:_0x42dade[_0x159e7c(0x2b3)],this['text']=_0x42dade==null?void 0x0:_0x42dade['text'];}static[_0x3bc3ed(0x27e)](_0x48c813,_0x2ec224){const _0x2cf42a=_0x3bc3ed;let {text:_0x4ff622,color:_0x479fe1}=_0x2ec224;_0x48c813[_0x2cf42a(0x1f3)](),_0x48c813['font']=_0x2cf42a(0x377);let _0xfb3243=_0x48c813[_0x2cf42a(0x3eb)](_0x4ff622)[_0x2cf42a(0x2fc)];if(Dn(_0x48c813,{'height':0x14,'radius':0x4,'width':En(_0x48c813,_0x4ff622),'fill':_0x479fe1,'evented':!0x1}),_0x48c813[_0x2cf42a(0x427)]=_0x2cf42a(0x2b5),_0xfb3243>0xc0){let _0x4a4036='',_0x1c8a3f=0x0;for(let _0x3bb987 of _0x4ff622){let _0x40b66d=_0x48c813[_0x2cf42a(0x3eb)](_0x3bb987)[_0x2cf42a(0x2fc)];if(_0x1c8a3f+_0x40b66d<=0xc0-_0x48c813[_0x2cf42a(0x3eb)](_0x2cf42a(0x3ee))['width'])_0x4a4036+=_0x3bb987,_0x1c8a3f+=_0x40b66d;else{_0x4a4036+=_0x2cf42a(0x3ee);break;}}_0x48c813['fillText'](_0x4a4036,0x4,0xf);}else _0x48c813[_0x2cf42a(0x1d5)](_0x4ff622,0x4,0xf);_0x48c813[_0x2cf42a(0x400)]();}[_0x3bc3ed(0x3ba)](_0x6d6058){e['drawWith'](_0x6d6058,this);}};const kn=0x138a;var An=class extends _0x301f9c{constructor(_0x2a878c,_0x2b9d5f){const _0x11b617=_0x3bc3ed;super(_0x2a878c,{..._0x2b9d5f,'evented':!0x1}),q(this,_0x11b617(0x2fb),_0x11b617(0x2a7)),q(this,_0x11b617(0x231),''),q(this,_0x11b617(0x3a7),!0x0),_0x2b9d5f&&this[_0x11b617(0x284)](_0x2b9d5f);}['setShapeProps'](_0x4e3a1a){const _0x1ccae9=_0x3bc3ed;this['_color']=_0x4e3a1a[_0x1ccae9(0x2b3)]??this[_0x1ccae9(0x2fb)],this[_0x1ccae9(0x231)]=_0x4e3a1a[_0x1ccae9(0x270)]??this[_0x1ccae9(0x231)],this[_0x1ccae9(0x3a7)]=_0x4e3a1a[_0x1ccae9(0x39c)]??this[_0x1ccae9(0x3a7)],this['evented']=!0x1,this[_0x1ccae9(0x2a9)]({'left':_0x4e3a1a[_0x1ccae9(0x321)]??this[_0x1ccae9(0x321)],'top':_0x4e3a1a['top']??this[_0x1ccae9(0x305)],'width':_0x4e3a1a[_0x1ccae9(0x2fc)]??this[_0x1ccae9(0x2fc)],'height':_0x4e3a1a[_0x1ccae9(0x1ed)]??this[_0x1ccae9(0x1ed)],'angle':_0x4e3a1a['angle']??this[_0x1ccae9(0x3cb)]});}[_0x3bc3ed(0x3ba)](_0x46c8b5){const _0x3b221d=_0x3bc3ed;_0x46c8b5['save'](),_0x46c8b5[_0x3b221d(0x232)]=this[_0x3b221d(0x2fb)],_0x46c8b5[_0x3b221d(0x389)]=this[_0x3b221d(0x3ad)]||1.5,_0x46c8b5['setLineDash']([0x6,0x4]),_0x46c8b5[_0x3b221d(0x395)](0x0,0x0,this[_0x3b221d(0x2fc)],this[_0x3b221d(0x1ed)]),_0x46c8b5[_0x3b221d(0x400)](),this[_0x3b221d(0x3a7)]&&(_0x46c8b5[_0x3b221d(0x1f3)](),_0x46c8b5[_0x3b221d(0x35c)](0x1,0x0,0x0,0x1,this[_0x3b221d(0x2fc)],-0x14),On['drawWith'](_0x46c8b5,{'text':this[_0x3b221d(0x231)],'color':this[_0x3b221d(0x2fb)]}),_0x46c8b5[_0x3b221d(0x400)]());}};const jn=[_0x3bc3ed(0x1cd),'jiqing.500',_0x3bc3ed(0x3b9),_0x3bc3ed(0x282),'blue.400',_0x3bc3ed(0x3b6)];var Z=class extends _0x1b14aa{constructor(..._0x16ecc9){const _0x4bbea1=_0x3bc3ed;super(..._0x16ecc9),q(this,_0x4bbea1(0x293),new Map()),q(this,'_colorIndex',0x0);}[_0x3bc3ed(0x35e)](_0x44f0ba){const _0x6018e=_0x3bc3ed;if(this[_0x6018e(0x293)]['has'](_0x44f0ba))return this[_0x6018e(0x293)][_0x6018e(0x240)](_0x44f0ba);let _0x32a2aa=jn[this[_0x6018e(0x3d6)]];return this['_colorIndex']=(this[_0x6018e(0x3d6)]+0x1)%jn['length'],this['_assignedColors'][_0x6018e(0x34c)](_0x44f0ba,_0x32a2aa),_0x32a2aa;}};function Mn(_0x300c73){const _0x36596b=_0x3bc3ed;let _0xd6e918;try{_0xd6e918=JSON[_0x36596b(0x2e5)](_0x300c73);}catch{return null;}if(typeof _0xd6e918!=_0x36596b(0x364)||!_0xd6e918)return null;let _0x4ab509=_0xd6e918;if(_0x4ab509[_0x36596b(0x3d9)]!==_0x36596b(0x1ee)||typeof _0x4ab509[_0x36596b(0x2e4)]!=_0x36596b(0x2e9)||typeof _0x4ab509['subUnitId']!=_0x36596b(0x2e9))return null;let _0x58a2ce=Array[_0x36596b(0x298)](_0x4ab509[_0x36596b(0x370)])?_0x4ab509[_0x36596b(0x370)][_0x36596b(0x259)](_0x205c36=>typeof _0x205c36=='string'):[],_0x2acd5f=typeof _0x4ab509[_0x36596b(0x448)]=='string'?_0x4ab509['focusedId']:null;return{'kind':_0x36596b(0x1ee),'unitId':_0x4ab509[_0x36596b(0x2e4)],'subUnitId':_0x4ab509[_0x36596b(0x2dd)],'selectedIds':_0x58a2ce,'focusedId':_0x2acd5f};}let Nn=class extends _0x2c69b2{get[_0x3bc3ed(0x2e0)](){const _0x3b154e=_0x3bc3ed;return this[_0x3b154e(0x27f)][_0x3b154e(0x303)]();}get[_0x3bc3ed(0x23a)](){const _0x2c0854=_0x3bc3ed;return this[_0x2c0854(0x290)][_0x2c0854(0x303)]();}constructor(_0x12fc30,_0x14bd61,_0x13d77f,_0x14a7d9,_0x390445){const _0x150307=_0x3bc3ed;super(),this['unitID']=_0x12fc30,this[_0x150307(0x388)]=_0x14bd61,this['_colorAssignService']=_0x13d77f,this[_0x150307(0x1d6)]=_0x14a7d9,this['_boardElementStateService']=_0x390445,q(this,_0x150307(0x2bc),!0x1),q(this,_0x150307(0x3a5),!0x1),q(this,'_cursorInfo$',new _0x5c73ce(new Map())),q(this,_0x150307(0x301),this['_cursorInfo$'][_0x150307(0x2ae)]()),q(this,_0x150307(0x290),new _0x5c73ce([])),q(this,_0x150307(0x2d4),this[_0x150307(0x290)][_0x150307(0x320)](_0x4598fc(0x12c))),q(this,_0x150307(0x26f),_0x57d052(_0x3acda3=>{const _0x5e0080=_0x150307;let _0x40f9f4=_0x3acda3['context'];if(!_0x40f9f4||_0x40f9f4[_0x5e0080(0x2e4)]!==this[_0x5e0080(0x2cc)])return;let _0x31e315={'kind':'board-element-selection','unitId':_0x40f9f4[_0x5e0080(0x2e4)],'subUnitId':_0x40f9f4['subUnitId'],'selectedIds':_0x3acda3['selectedIds']['filter'](_0x23158b=>typeof _0x23158b==_0x5e0080(0x2e9)),'focusedId':_0x3acda3[_0x5e0080(0x448)]},_0x5473eb={'eventID':_0x5db27d[_0x5e0080(0x415)],'data':{'unitID':this[_0x5e0080(0x2cc)],'memberID':this[_0x5e0080(0x388)]['getMemberID'](),'selection':JSON['stringify'](_0x31e315)}};this[_0x5e0080(0x388)][_0x5e0080(0x31b)](_0x5473eb,this['unitID']);},0x64));}[_0x3bc3ed(0x44f)](){const _0x462bc3=_0x3bc3ed;super['dispose'](),this['_cursorInfo$'][_0x462bc3(0x36a)](new Map()),this['_cursorInfo$'][_0x462bc3(0x429)](),this[_0x462bc3(0x290)][_0x462bc3(0x36a)]([]),this[_0x462bc3(0x290)][_0x462bc3(0x429)]();}[_0x3bc3ed(0x435)](){const _0x41b3cb=_0x3bc3ed;this[_0x41b3cb(0x3a5)]||(this[_0x41b3cb(0x3a5)]=!0x0,this[_0x41b3cb(0x388)][_0x41b3cb(0x2d9)][_0x41b3cb(0x320)](_0x18a3e8(this['dispose$']))[_0x41b3cb(0x1f2)](_0x22e38a=>{const _0x1c7933=_0x41b3cb;_0x22e38a===_0x5ea676[_0x1c7933(0x324)]?this[_0x1c7933(0x3d5)]():this[_0x1c7933(0x27d)]();}),this[_0x41b3cb(0x388)][_0x41b3cb(0x316)][_0x41b3cb(0x320)](_0x18a3e8(this[_0x41b3cb(0x263)]))[_0x41b3cb(0x1f2)](_0x50a9eb=>{const _0x361642=_0x41b3cb;let _0x39d291=_0x50a9eb[_0x361642(0x2bf)];_0x39d291===_0x5db27d[_0x361642(0x415)]&&this[_0x361642(0x411)](_0x50a9eb),_0x39d291===_0x5db27d[_0x361642(0x1fb)]&&this[_0x361642(0x2cb)](_0x50a9eb);}),this['_boardElementStateService'][_0x41b3cb(0x24d)][_0x41b3cb(0x320)](_0x18a3e8(this[_0x41b3cb(0x263)]))[_0x41b3cb(0x1f2)](_0x5581d5=>{const _0x42c828=_0x41b3cb;this[_0x42c828(0x2bc)]&&this[_0x42c828(0x26f)](_0x5581d5);}));}['_onCursorUpdate'](_0x5a2efd){const _0x25f826=_0x3bc3ed;var _0x1ae32a,_0x22cc2e,_0x462665;let {memberID:_0x48c525,selection:_0x2e1b4b}=_0x5a2efd['data'];if(_0x48c525===((_0x1ae32a=(_0x22cc2e=this[_0x25f826(0x388)])[_0x25f826(0x36d)])==null?void 0x0:_0x1ae32a['call'](_0x22cc2e)))return;let _0x483a15=Mn(_0x2e1b4b);if(!_0x483a15||_0x483a15['unitId']!==this[_0x25f826(0x2cc)])return;let _0x483e8a=((_0x462665=this['_memberService'][_0x25f826(0x230)](this[_0x25f826(0x2cc)],_0x48c525))==null?void 0x0:_0x462665['name'])??'Unknown\x20user',_0x55e4af={'color':this[_0x25f826(0x404)]['assignAColorForMemberID'](_0x48c525),'name':_0x483e8a,'unitId':_0x483a15[_0x25f826(0x2e4)],'subUnitId':_0x483a15[_0x25f826(0x2dd)],'selectedIds':_0x483a15[_0x25f826(0x370)],'focusedId':_0x483a15[_0x25f826(0x448)],'selection':_0x2e1b4b},_0x3ef086=new Map(this[_0x25f826(0x2e0)]);_0x3ef086[_0x25f826(0x34c)](_0x48c525,_0x55e4af),this[_0x25f826(0x27f)]['next'](_0x3ef086);}['_onCursorDelete'](_0x3706ae){const _0x5abd22=_0x3bc3ed;let {memberID:_0x307388}=_0x3706ae[_0x5abd22(0x276)],_0x269b66=new Map(this['cursorInfo']);_0x269b66[_0x5abd22(0x3aa)](_0x307388),this['_cursorInfo$'][_0x5abd22(0x36a)](_0x269b66);}['_toggleOnline'](){const _0x124837=_0x3bc3ed;this[_0x124837(0x2bc)]=!0x0,this['_updateLocalCursor'](this['_boardElementStateService']['getSnapshot']());}[_0x3bc3ed(0x27d)](){const _0x526202=_0x3bc3ed;this[_0x526202(0x2bc)]=!0x1;}};Nn=Y([J(0x2,_0x4d1fed(Z)),J(0x3,_0x4d1fed(_0x1dadcd)),J(0x4,_0x4d1fed(_0x141412))],Nn);function Pn(_0x43d814){const _0x49eedd=_0x3bc3ed;let _0x5443a2='';for(let _0x10987c of _0x43d814){let {startOffset:_0x39d6bf,endOffset:_0x337437,isActive:_0x27383d,rangeType:_0x4bb8ba,segmentId:_0x563691,segmentPage:_0xab0892}=_0x10987c;_0x5443a2[_0x49eedd(0x1f0)]&&(_0x5443a2+=','),_0x5443a2+=_0x39d6bf+':'+_0x337437+':'+(_0x27383d?'1':'0')+':'+_0x4bb8ba+':'+_0x563691+':'+_0xab0892;}return _0x5443a2;}function Fn(_0x18f009){const _0x4d432e=_0x3bc3ed;let _0x4d81ab=_0x18f009[_0x4d432e(0x31f)](','),_0xd9e650=[];for(let _0x3887c8 of _0x4d81ab){let [_0x4cc7be,_0x14a3e5,_0x2ea2a2,_0x3f8ba2,_0x2fe050,_0x1930bf]=_0x3887c8[_0x4d432e(0x31f)](':');_0xd9e650[_0x4d432e(0x368)]({'startOffset':Number(_0x4cc7be),'endOffset':Number(_0x14a3e5),'collapsed':_0x4cc7be===_0x14a3e5,'isActive':_0x2ea2a2==='1','rangeType':_0x3f8ba2===_0x41cd22[_0x4d432e(0x216)]?_0x41cd22[_0x4d432e(0x216)]:_0x41cd22[_0x4d432e(0x3ce)],'segmentId':typeof _0x2fe050==_0x4d432e(0x2e9)?String(_0x2fe050):'','segmentPage':Number(_0x1930bf??-0x1)});}return _0xd9e650[_0x4d432e(0x3e8)](_0x1701a1=>_0x1701a1[_0x4d432e(0x34a)])||(_0xd9e650[0x0][_0x4d432e(0x34a)]=!0x0),_0xd9e650;}var In=class extends _0x2c69b2{constructor(..._0x5cd7b6){const _0x3bc77a=_0x3bc3ed;super(..._0x5cd7b6),q(this,'_collabCursorState$',new _0x5c73ce(null)),q(this,_0x3bc77a(0x2eb),this[_0x3bc77a(0x250)][_0x3bc77a(0x2ae)]());}[_0x3bc3ed(0x3ae)](_0x32a724){const _0x1b30ba=_0x3bc3ed;let {unitID:_0x3af6df,memberID:_0xc4478f,textRanges:_0x447f5a}=_0x32a724,_0x50e084=Pn(_0x447f5a);if(_0x50e084==='')return;let _0x3b84b3={'unitID':_0x3af6df,'memberID':_0xc4478f,'selection':_0x50e084};this[_0x1b30ba(0x250)][_0x1b30ba(0x36a)](_0x3b84b3);}};let Ln=class extends _0x2c69b2{get[_0x3bc3ed(0x2e0)](){const _0x22ea84=_0x3bc3ed;return this['_cursorInfo$'][_0x22ea84(0x303)]();}get[_0x3bc3ed(0x23a)](){const _0x29a5b9=_0x3bc3ed;return this['_roomMembers$'][_0x29a5b9(0x303)]();}constructor(_0x349f4b,_0x3a3ab2,_0x415820,_0x41e6fb,_0x46c3f9,_0x4d304c,_0x5ea6b2,_0x22445f,_0x5edff9){const _0x57edbe=_0x3bc3ed;super(),this[_0x57edbe(0x2cc)]=_0x349f4b,this[_0x57edbe(0x388)]=_0x3a3ab2,this['_injector']=_0x415820,this['_colorAssignService']=_0x41e6fb,this[_0x57edbe(0x1d6)]=_0x46c3f9,this['_syncEditingCollabCursorService']=_0x4d304c,this['_transformService']=_0x5ea6b2,this[_0x57edbe(0x3a6)]=_0x22445f,this['_commandService']=_0x5edff9,q(this,'_online',!0x1),q(this,_0x57edbe(0x3a5),!0x1),q(this,'_cursorInfo$',new _0x5c73ce(new Map())),q(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),q(this,_0x57edbe(0x290),new _0x5c73ce([])),q(this,_0x57edbe(0x2d4),this[_0x57edbe(0x290)][_0x57edbe(0x320)](_0x4598fc(0x12c))),q(this,'_updateLocalCursor',_0x57d052(_0x36b223=>{const _0x332412=_0x57edbe;let _0x1a7f02={'eventID':_0x5db27d[_0x332412(0x415)],'data':{'unitID':this[_0x332412(0x2cc)],'memberID':this[_0x332412(0x388)][_0x332412(0x36d)](),'selection':Pn(_0x36b223)}};this[_0x332412(0x388)][_0x332412(0x31b)](_0x1a7f02,this[_0x332412(0x2cc)]);},0x64));}['dispose'](){const _0x16502a=_0x3bc3ed;super[_0x16502a(0x44f)](),this[_0x16502a(0x27f)][_0x16502a(0x36a)](new Map()),this[_0x16502a(0x27f)][_0x16502a(0x429)](),this[_0x16502a(0x290)][_0x16502a(0x36a)]([]),this[_0x16502a(0x290)]['complete']();}[_0x3bc3ed(0x435)](){const _0x4aae20=_0x3bc3ed;this[_0x4aae20(0x3a5)]||(this[_0x4aae20(0x3a5)]=!0x0,this[_0x4aae20(0x388)][_0x4aae20(0x2d9)][_0x4aae20(0x320)](_0x18a3e8(this[_0x4aae20(0x263)]))[_0x4aae20(0x1f2)](_0x3c47b1=>{const _0x32f4a0=_0x4aae20;_0x3c47b1===_0x5ea676[_0x32f4a0(0x324)]?this[_0x32f4a0(0x3d5)]():this[_0x32f4a0(0x27d)]();}),this['_session'][_0x4aae20(0x316)]['pipe'](_0x18a3e8(this[_0x4aae20(0x263)]))['subscribe'](_0x3de843=>{const _0x1c7641=_0x4aae20;let _0x54485c=_0x3de843[_0x1c7641(0x2bf)];_0x54485c===_0x5db27d[_0x1c7641(0x415)]&&this[_0x1c7641(0x411)](_0x3de843),_0x54485c===_0x5db27d[_0x1c7641(0x1fb)]&&this['_onCursorDelete'](_0x3de843);}),this[_0x4aae20(0x239)](this[_0x4aae20(0x20e)][_0x4aae20(0x222)](_0x1b52a5=>{const _0x5a6ffe=_0x4aae20;let _0x2589d5=_0x1b52a5[_0x5a6ffe(0x278)];_0x2589d5!=null&&this[_0x5a6ffe(0x2bc)]&&_0x1b52a5['id']===_0x306fe8['id']&&_0x2589d5[_0x5a6ffe(0x2e4)]===this[_0x5a6ffe(0x2cc)]&&_0x2589d5[_0x5a6ffe(0x264)]===!0x1&&_0x2589d5['ranges'][_0x5a6ffe(0x1f0)]>0x0&&this[_0x5a6ffe(0x26f)](_0x2589d5[_0x5a6ffe(0x407)]);})),this[_0x4aae20(0x1f7)]['collabCursorState$'][_0x4aae20(0x320)](_0x18a3e8(this[_0x4aae20(0x263)]))[_0x4aae20(0x1f2)](_0x14e3c7=>{const _0x582753=_0x4aae20;if((_0x14e3c7==null?void 0x0:_0x14e3c7[_0x582753(0x2cc)])!==this[_0x582753(0x2cc)])return;let _0x3242ea={'eventID':_0x5db27d[_0x582753(0x415)],'data':_0x14e3c7};this[_0x582753(0x411)](_0x3242ea);}),this['disposeWithMe'](this['_commandService'][_0x4aae20(0x222)](_0xbbc817=>{const _0x566d45=_0x4aae20;if(_0xbbc817[_0x566d45(0x278)]==null)return;let _0x55ae69=_0xbbc817[_0x566d45(0x278)];if(_0xbbc817['id']!==_0x175756['id']||_0x55ae69[_0x566d45(0x2e4)]!==this[_0x566d45(0x2cc)])return;let _0x30b4f0={'id':'doc.mutation.rich-text-editing','params':_0x55ae69},_0x35480b=this[_0x566d45(0x2e0)];for(let [_0x14151d,_0x3c76a9]of _0x35480b){let _0x557450={'id':_0x566d45(0x22b),'params':{'unitId':this[_0x566d45(0x2cc)],'actions':null,'textRanges':_0x3c76a9['ranges']}},_0x54e680=this['_transformService'][_0x566d45(0x344)](_0x30b4f0,_0x557450,!0x1);if(_0x4a2b76(_0x54e680))throw _0x54e680[_0x566d45(0x3d0)];_0x35480b[_0x566d45(0x34c)](_0x14151d,{..._0x3c76a9,'ranges':_0x54e680[_0x566d45(0x26c)][_0x566d45(0x278)]['textRanges']});}queueMicrotask(()=>{const _0x902783=_0x566d45;this['_cursorInfo$'][_0x902783(0x36a)](_0x35480b);});})));}[_0x3bc3ed(0x411)](_0x500b18){const _0x1eca0e=_0x3bc3ed;var _0x3f714a;let {memberID:_0x4704fa,selection:_0x11a30b}=_0x500b18['data'],_0x7df61e=Fn(_0x11a30b),_0xa2d65a=((_0x3f714a=this['_memberService'][_0x1eca0e(0x230)](this[_0x1eca0e(0x2cc)],_0x4704fa))==null?void 0x0:_0x3f714a[_0x1eca0e(0x270)])??_0x1eca0e(0x242),_0x433a04={'color':this['_colorAssignService'][_0x1eca0e(0x35e)](_0x4704fa),'name':_0xa2d65a,'ranges':_0x7df61e},_0x297601=this[_0x1eca0e(0x2e0)];_0x297601['set'](_0x4704fa,_0x433a04),this[_0x1eca0e(0x27f)][_0x1eca0e(0x36a)](_0x297601);}[_0x3bc3ed(0x2cb)](_0x5fa6){const _0x24e73b=_0x3bc3ed;let {memberID:_0x42d6bc}=_0x5fa6[_0x24e73b(0x276)],_0x8dff9e=this[_0x24e73b(0x2e0)];_0x8dff9e[_0x24e73b(0x3aa)](_0x42d6bc),this['_cursorInfo$'][_0x24e73b(0x36a)](_0x8dff9e);}['_toggleOnline'](){const _0x4d8aa6=_0x3bc3ed;var _0x48d8cb;if(this[_0x4d8aa6(0x2bc)]=!0x0,((_0x48d8cb=this['_univerInstanceService'][_0x4d8aa6(0x267)]())==null?void 0x0:_0x48d8cb['getUnitId']())!==this[_0x4d8aa6(0x2cc)])return;let _0x8a59cf=this[_0x4d8aa6(0x33f)][_0x4d8aa6(0x240)](_0x514f9f)['getDocRanges']();Array[_0x4d8aa6(0x298)](_0x8a59cf)&&_0x8a59cf[_0x4d8aa6(0x1f0)]>0x0&&this[_0x4d8aa6(0x26f)](_0x8a59cf);}[_0x3bc3ed(0x27d)](){this['_online']=!0x1;}};Ln=Y([J(0x2,_0x4d1fed(_0x57f253)),J(0x3,_0x4d1fed(Z)),J(0x4,_0x4d1fed(_0x1dadcd)),J(0x5,_0x4d1fed(In)),J(0x6,_0x1ca2f6),J(0x7,_0x449dc1),J(0x8,_0x581e85)],Ln);const Rn=()=>{let _0x1cae59=[],_0x586564=!0x1;return _0x960c71=>{const _0x351f78=_0xb747;_0x1cae59[_0x351f78(0x368)](_0x960c71),_0x586564||(_0x586564=!0x0,setTimeout(()=>{_0x1cae59['forEach'](_0x1189c2=>_0x1189c2()),_0x1cae59=[],_0x586564=!0x1;}));};};let zn=class extends _0x2c69b2{get['cursorInfo'](){const _0x49f39e=_0x3bc3ed;return this[_0x49f39e(0x27f)][_0x49f39e(0x303)]();}get[_0x3bc3ed(0x23a)](){const _0x1e7c0c=_0x3bc3ed;return this[_0x1e7c0c(0x290)][_0x1e7c0c(0x303)]();}constructor(_0x2fd024,_0x595728,_0x17ae97,_0x1afde6,_0x31ae2c,_0x18dc13,_0x2a87ba,_0x9f6eb2){const _0x20b242=_0x3bc3ed;super(),this[_0x20b242(0x2cc)]=_0x2fd024,this[_0x20b242(0x388)]=_0x595728,this[_0x20b242(0x33f)]=_0x17ae97,this['_colorAssignService']=_0x1afde6,this[_0x20b242(0x1d6)]=_0x31ae2c,this[_0x20b242(0x3a6)]=_0x18dc13,this['_commandService']=_0x2a87ba,this['_refRangeService']=_0x9f6eb2,q(this,_0x20b242(0x2bc),!0x1),q(this,'_init',!0x1),q(this,_0x20b242(0x27f),new _0x5c73ce(new Map())),q(this,_0x20b242(0x301),this[_0x20b242(0x27f)][_0x20b242(0x2ae)]()),q(this,_0x20b242(0x290),new _0x5c73ce([])),q(this,_0x20b242(0x2d4),this[_0x20b242(0x290)]['pipe'](_0x4598fc(0x12c))),q(this,'_updateLocalCursor',_0x57d052((_0x512afc,_0x5a74cc)=>{const _0x46526a=_0x20b242;let _0x192ce2={'eventID':_0x5db27d[_0x46526a(0x415)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x46526a(0x36d)](),'selection':_0x3fc7ee(_0x512afc,_0x5a74cc[_0x46526a(0x327)])}};this['_session'][_0x46526a(0x31b)](_0x192ce2,this[_0x46526a(0x2cc)]);},0x64));}['dispose'](){const _0x3e42cf=_0x3bc3ed;super['dispose'](),this[_0x3e42cf(0x27f)][_0x3e42cf(0x36a)](new Map()),this[_0x3e42cf(0x27f)][_0x3e42cf(0x429)](),this[_0x3e42cf(0x290)]['next']([]),this[_0x3e42cf(0x290)][_0x3e42cf(0x429)]();}['init'](){const _0x1bfbf0=_0x3bc3ed;this[_0x1bfbf0(0x3a5)]||(this[_0x1bfbf0(0x3a5)]=!0x0,this[_0x1bfbf0(0x388)]['sessionStatus$']['pipe'](_0x18a3e8(this[_0x1bfbf0(0x263)]))[_0x1bfbf0(0x1f2)](_0x52f50c=>{const _0x4e6b02=_0x1bfbf0;_0x52f50c===_0x5ea676[_0x4e6b02(0x324)]?this[_0x4e6b02(0x3d5)]():this[_0x4e6b02(0x27d)]();}),this[_0x1bfbf0(0x388)][_0x1bfbf0(0x316)][_0x1bfbf0(0x320)](_0x18a3e8(this[_0x1bfbf0(0x263)]))[_0x1bfbf0(0x1f2)](_0x1f8267=>{const _0x438688=_0x1bfbf0;let _0x7de95d=_0x1f8267[_0x438688(0x2bf)];_0x7de95d===_0x5db27d['UPDATE_CURSOR']&&this[_0x438688(0x411)](_0x1f8267),_0x7de95d===_0x5db27d[_0x438688(0x1fb)]&&this[_0x438688(0x2cb)](_0x1f8267);}),this['_onRefRangeChange'](),this[_0x1bfbf0(0x239)](this[_0x1bfbf0(0x20e)][_0x1bfbf0(0x222)](_0x20ed6c=>{const _0x2dd7e7=_0x1bfbf0;if(this[_0x2dd7e7(0x2bc)]&&_0x20ed6c['id']===_0x148457['id']&&_0x20ed6c[_0x2dd7e7(0x278)][_0x2dd7e7(0x2e4)]===this[_0x2dd7e7(0x2cc)]){let _0x561ee0=_0x20ed6c[_0x2dd7e7(0x278)];this[_0x2dd7e7(0x26f)](_0x561ee0[_0x2dd7e7(0x2dd)],_0x561ee0[_0x2dd7e7(0x1e9)][0x0]);}})));}[_0x3bc3ed(0x411)](_0x5c0abc){const _0x3fcb32=_0x3bc3ed;var _0x143fbd;let {memberID:_0x22b167,selection:_0x3f0be1}=_0x5c0abc['data'],{sheetName:_0x461508,range:_0x1b578a}=_0x428444(_0x3f0be1),_0x437159={'name':((_0x143fbd=this[_0x3fcb32(0x1d6)][_0x3fcb32(0x230)](this[_0x3fcb32(0x2cc)],_0x22b167))==null?void 0x0:_0x143fbd[_0x3fcb32(0x270)])??_0x3fcb32(0x242),'range':this[_0x3fcb32(0x361)](_0x461508,_0x1b578a),'sheetID':_0x461508,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x22b167),'selection':_0x3f0be1},_0x16ef49=this[_0x3fcb32(0x2e0)];_0x16ef49[_0x3fcb32(0x34c)](_0x22b167,_0x437159),this['_cursorInfo$'][_0x3fcb32(0x36a)](_0x16ef49);}[_0x3bc3ed(0x2cb)](_0x28e2bb){const _0x32dea8=_0x3bc3ed;let {memberID:_0x577e78}=_0x28e2bb[_0x32dea8(0x276)],_0x2925c5=this[_0x32dea8(0x2e0)];_0x2925c5[_0x32dea8(0x3aa)](_0x577e78),this[_0x32dea8(0x27f)]['next'](_0x2925c5);}[_0x3bc3ed(0x361)](_0x25e86,_0x4829fa){const _0x160bea=_0x3bc3ed;var _0x180534;let _0x201c4a=(_0x180534=this[_0x160bea(0x3a6)]['getUnit'](this[_0x160bea(0x2cc)],_0x410a65[_0x160bea(0x3a0)]))==null||(_0x180534=_0x180534[_0x160bea(0x1dd)](_0x25e86))==null?void 0x0:_0x180534[_0x160bea(0x1e3)]();return(_0x201c4a==null?void 0x0:_0x201c4a[_0x160bea(0x329)](_0x3c0802=>_0x186f70['contains'](_0x3c0802,_0x4829fa)))||_0x4829fa;}['_onRefRangeChange'](){const _0x4abfe3=_0x3bc3ed;let _0x1aa2c3=new _0x5b1175(),_0x40c69f=Rn(),_0x2277ce=()=>{const _0x55f578=_0xb747;_0x1aa2c3[_0x55f578(0x44f)]();let _0x23fb68=(_0x1e80e3,_0x3b9376,_0x457c24,_0x24e545)=>{const _0x542762=_0x55f578;let _0x41e4ef=[];switch(_0x1e80e3['id']){case _0x4ee3b0[_0x542762(0x2e7)]:_0x41e4ef=_0x390f96(_0x1e80e3,_0x24e545);break;case _0x4ee3b0[_0x542762(0x23c)]:_0x41e4ef=_0x121ffe(_0x1e80e3,_0x24e545);break;case _0x4ee3b0[_0x542762(0x3a2)]:_0x41e4ef=_0x14d9b5(_0x1e80e3,_0x24e545);break;case _0x4ee3b0['InsertRangeMoveDownCommandId']:_0x41e4ef=_0x52df76(_0x1e80e3,_0x24e545);break;case _0x4ee3b0['InsertRangeMoveRightCommandId']:_0x41e4ef=_0x5abb5e(_0x1e80e3,_0x24e545);break;case _0x4ee3b0[_0x542762(0x2f3)]:_0x41e4ef=_0x384857(_0x1e80e3,_0x24e545);break;case _0x4ee3b0[_0x542762(0x30c)]:_0x41e4ef=_0x65e08(_0x1e80e3,_0x24e545);break;case _0x4ee3b0['RemoveColCommandId']:_0x41e4ef=_0x54040f(_0x1e80e3,_0x24e545);break;case _0x4ee3b0['RemoveRowCommandId']:_0x41e4ef=_0x4a00ed(_0x1e80e3,_0x24e545);break;}let _0x37aaee=_0x13d8bd(_0x41e4ef,_0x24e545),_0x284324=this['cursorInfo']['get'](_0x3b9376);if(_0x284324&&_0x37aaee){let _0x2c9926={..._0x284324,'range':_0x37aaee};this[_0x542762(0x2e0)][_0x542762(0x34c)](_0x3b9376,_0x2c9926),_0x40c69f(()=>{const _0x2badaf=_0x542762;let _0x28fa80=this[_0x2badaf(0x41c)][_0x2badaf(0x226)](_0x37aaee,_0x303ec3=>(_0x28fa80['dispose'](),_0x23fb68(_0x303ec3,_0x3b9376,_0x457c24,_0x37aaee)));_0x1aa2c3['add'](_0x28fa80);});}return{'redos':[],'undos':[]};};this[_0x55f578(0x2e0)]['forEach']((_0x1391a7,_0x551d9e)=>{const _0x8d8c7a=_0x55f578;let {range:_0x5a2408,sheetID:_0x202eaf}=_0x1391a7,_0x13a2e3=this['_refRangeService'][_0x8d8c7a(0x226)](_0x5a2408,_0x334854=>(_0x13a2e3[_0x8d8c7a(0x44f)](),_0x23fb68(_0x334854,_0x551d9e,_0x202eaf,_0x5a2408)));_0x1aa2c3[_0x8d8c7a(0x31d)](_0x13a2e3);});};this[_0x4abfe3(0x239)](_0x9b2c48(this['_cursorInfo$']['subscribe'](()=>{_0x2277ce();})));}[_0x3bc3ed(0x3d5)](){const _0x5e1931=_0x3bc3ed;var _0x35fad2,_0x16764a;if(this[_0x5e1931(0x2bc)]=!0x0,((_0x35fad2=this['_univerInstanceService'][_0x5e1931(0x267)]())==null?void 0x0:_0x35fad2[_0x5e1931(0x275)]())!==this[_0x5e1931(0x2cc)])return;let _0x486de5=(_0x16764a=this[_0x5e1931(0x33f)][_0x5e1931(0x240)](_0x1265bd)[_0x5e1931(0x24b)]())==null?void 0x0:_0x16764a[0x0],_0x1bbeb7=this[_0x5e1931(0x3a6)][_0x5e1931(0x3bb)](_0x410a65[_0x5e1931(0x3a0)])['getActiveSheet']();_0x486de5&&_0x1bbeb7&&this[_0x5e1931(0x26f)](_0x1bbeb7[_0x5e1931(0x22c)](),_0x486de5);}['_toggleOffline'](){const _0x394b18=_0x3bc3ed;this[_0x394b18(0x2bc)]=!0x1;}};zn=Y([J(0x2,_0x4d1fed(_0x57f253)),J(0x3,_0x4d1fed(Z)),J(0x4,_0x4d1fed(_0x1dadcd)),J(0x5,_0x449dc1),J(0x6,_0x581e85),J(0x7,_0x4d1fed(_0x46b02d))],zn);function Bn(_0x513e30){const _0x56897d=_0x3bc3ed;let _0x29f007;try{_0x29f007=JSON['parse'](_0x513e30);}catch{return null;}if(typeof _0x29f007!=_0x56897d(0x364)||!_0x29f007)return null;let _0x4c59c4=_0x29f007;if(_0x4c59c4['kind']!=='slide-element-selection'||typeof _0x4c59c4[_0x56897d(0x2e4)]!=_0x56897d(0x2e9)||typeof _0x4c59c4[_0x56897d(0x2dd)]!=_0x56897d(0x2e9))return null;let _0xe86a3a=Array[_0x56897d(0x298)](_0x4c59c4[_0x56897d(0x370)])?_0x4c59c4[_0x56897d(0x370)][_0x56897d(0x259)](_0x5be16f=>typeof _0x5be16f==_0x56897d(0x2e9)):[],_0x28acb5=typeof _0x4c59c4['focusedId']==_0x56897d(0x2e9)?_0x4c59c4[_0x56897d(0x448)]:null;return{'kind':_0x56897d(0x28a),'unitId':_0x4c59c4[_0x56897d(0x2e4)],'subUnitId':_0x4c59c4[_0x56897d(0x2dd)],'selectedIds':_0xe86a3a,'focusedId':_0x28acb5};}function _0xb747(_0x48d97d,_0x1d45f){_0x48d97d=_0x48d97d-0x1c2;const _0x29faf4=_0x29fa();let _0xb747b4=_0x29faf4[_0x48d97d];return _0xb747b4;}let Vn=class extends _0x2c69b2{get[_0x3bc3ed(0x2e0)](){const _0x1cba97=_0x3bc3ed;return this['_cursorInfo$'][_0x1cba97(0x303)]();}get[_0x3bc3ed(0x23a)](){const _0x4f5446=_0x3bc3ed;return this['_roomMembers$'][_0x4f5446(0x303)]();}constructor(_0x36eaef,_0x1cb057,_0x4c60d2,_0x1a9751,_0x2d6c13){const _0x6d3987=_0x3bc3ed;super(),this[_0x6d3987(0x2cc)]=_0x36eaef,this[_0x6d3987(0x388)]=_0x1cb057,this[_0x6d3987(0x404)]=_0x4c60d2,this[_0x6d3987(0x1d6)]=_0x1a9751,this[_0x6d3987(0x2cf)]=_0x2d6c13,q(this,_0x6d3987(0x2bc),!0x1),q(this,_0x6d3987(0x3a5),!0x1),q(this,_0x6d3987(0x27f),new _0x5c73ce(new Map())),q(this,_0x6d3987(0x301),this['_cursorInfo$'][_0x6d3987(0x2ae)]()),q(this,_0x6d3987(0x290),new _0x5c73ce([])),q(this,_0x6d3987(0x2d4),this[_0x6d3987(0x290)][_0x6d3987(0x320)](_0x4598fc(0x12c))),q(this,_0x6d3987(0x26f),_0x57d052(_0x305e53=>{const _0x4ac21c=_0x6d3987;let _0x27b493=_0x305e53[_0x4ac21c(0x386)];if(!_0x27b493||_0x27b493[_0x4ac21c(0x2e4)]!==this['unitID'])return;let _0x2a614a={'kind':_0x4ac21c(0x28a),'unitId':_0x27b493[_0x4ac21c(0x2e4)],'subUnitId':_0x27b493['subUnitId'],'selectedIds':_0x305e53[_0x4ac21c(0x370)][_0x4ac21c(0x259)](_0x420aa0=>typeof _0x420aa0=='string'),'focusedId':_0x305e53[_0x4ac21c(0x448)]},_0x53e453={'eventID':_0x5db27d[_0x4ac21c(0x415)],'data':{'unitID':this[_0x4ac21c(0x2cc)],'memberID':this[_0x4ac21c(0x388)][_0x4ac21c(0x36d)](),'selection':JSON[_0x4ac21c(0x1f6)](_0x2a614a)}};this[_0x4ac21c(0x388)][_0x4ac21c(0x31b)](_0x53e453,this[_0x4ac21c(0x2cc)]);},0x64));}[_0x3bc3ed(0x44f)](){const _0x4ce692=_0x3bc3ed;super[_0x4ce692(0x44f)](),this['_cursorInfo$'][_0x4ce692(0x36a)](new Map()),this[_0x4ce692(0x27f)][_0x4ce692(0x429)](),this[_0x4ce692(0x290)][_0x4ce692(0x36a)]([]),this[_0x4ce692(0x290)]['complete']();}['init'](){const _0xebed91=_0x3bc3ed;this['_init']||(this[_0xebed91(0x3a5)]=!0x0,this['_session'][_0xebed91(0x2d9)]['pipe'](_0x18a3e8(this['dispose$']))[_0xebed91(0x1f2)](_0x3cef38=>{const _0x36a5ad=_0xebed91;_0x3cef38===_0x5ea676[_0x36a5ad(0x324)]?this[_0x36a5ad(0x3d5)]():this[_0x36a5ad(0x27d)]();}),this[_0xebed91(0x388)][_0xebed91(0x316)][_0xebed91(0x320)](_0x18a3e8(this[_0xebed91(0x263)]))['subscribe'](_0x493371=>{const _0xbe56fd=_0xebed91;let _0xb91c85=_0x493371[_0xbe56fd(0x2bf)];_0xb91c85===_0x5db27d[_0xbe56fd(0x415)]&&this[_0xbe56fd(0x411)](_0x493371),_0xb91c85===_0x5db27d['USERS_LEAVE']&&this['_onCursorDelete'](_0x493371);}),this['_slideDrawingStateService'][_0xebed91(0x24d)][_0xebed91(0x320)](_0x18a3e8(this[_0xebed91(0x263)]))[_0xebed91(0x1f2)](_0x3c36e2=>{const _0x1bc06c=_0xebed91;this[_0x1bc06c(0x2bc)]&&this['_updateLocalCursor'](_0x3c36e2);}));}[_0x3bc3ed(0x411)](_0x3270e7){const _0x4db486=_0x3bc3ed;var _0x2f1e18,_0x5aab99,_0x41fed1;let {memberID:_0x4013f2,selection:_0x5a6341}=_0x3270e7[_0x4db486(0x276)];if(_0x4013f2===((_0x2f1e18=(_0x5aab99=this[_0x4db486(0x388)])['getMemberID'])==null?void 0x0:_0x2f1e18[_0x4db486(0x1c9)](_0x5aab99)))return;let _0x3aa75a=Bn(_0x5a6341);if(!_0x3aa75a||_0x3aa75a['unitId']!==this[_0x4db486(0x2cc)])return;let _0x1fd031=((_0x41fed1=this[_0x4db486(0x1d6)]['getMember'](this[_0x4db486(0x2cc)],_0x4013f2))==null?void 0x0:_0x41fed1[_0x4db486(0x270)])??_0x4db486(0x242),_0x45eb79={'color':this[_0x4db486(0x404)][_0x4db486(0x35e)](_0x4013f2),'name':_0x1fd031,'unitId':_0x3aa75a[_0x4db486(0x2e4)],'subUnitId':_0x3aa75a[_0x4db486(0x2dd)],'selectedIds':_0x3aa75a['selectedIds'],'focusedId':_0x3aa75a[_0x4db486(0x448)],'selection':_0x5a6341},_0x3b11d4=new Map(this[_0x4db486(0x2e0)]);_0x3b11d4[_0x4db486(0x34c)](_0x4013f2,_0x45eb79),this[_0x4db486(0x27f)][_0x4db486(0x36a)](_0x3b11d4);}[_0x3bc3ed(0x2cb)](_0x284d1d){const _0x5b694d=_0x3bc3ed;let {memberID:_0xdd8902}=_0x284d1d[_0x5b694d(0x276)],_0xff4d66=new Map(this['cursorInfo']);_0xff4d66['delete'](_0xdd8902),this['_cursorInfo$'][_0x5b694d(0x36a)](_0xff4d66);}[_0x3bc3ed(0x3d5)](){const _0x2cdbdb=_0x3bc3ed;this[_0x2cdbdb(0x2bc)]=!0x0,this['_updateLocalCursor'](this[_0x2cdbdb(0x2cf)]['getSnapshot']());}['_toggleOffline'](){const _0x4cfc67=_0x3bc3ed;this[_0x4cfc67(0x2bc)]=!0x1;}};Vn=Y([J(0x2,_0x4d1fed(Z)),J(0x3,_0x4d1fed(_0x1dadcd)),J(0x4,_0x4d1fed(_0x3f17c0))],Vn);let Q=class extends _0x2c69b2{constructor(_0x428da4,_0x214c21,_0x3233c0){const _0x2b7efe=_0x3bc3ed;super(),this['_univerInstanceService']=_0x428da4,this[_0x2b7efe(0x33f)]=_0x214c21,this[_0x2b7efe(0x3ab)]=_0x3233c0,q(this,'_entities',new Map()),q(this,_0x2b7efe(0x418),new _0x5ded12()),this[_0x2b7efe(0x3a5)]();}['dispose'](){const _0xc011e2=_0x3bc3ed;super[_0xc011e2(0x44f)](),this['_entityInit$'][_0xc011e2(0x429)](),this[_0xc011e2(0x3e4)][_0xc011e2(0x348)](_0x33279c=>_0x33279c[_0xc011e2(0x44f)]());}[_0x3bc3ed(0x27a)](_0x21399f){const _0x595eab=_0x3bc3ed;return this[_0x595eab(0x3e4)]['has'](_0x21399f)?this[_0x595eab(0x3e4)][_0x595eab(0x240)](_0x21399f)[_0x595eab(0x301)]:this[_0x595eab(0x418)][_0x595eab(0x320)](_0x10eeb(_0x48a705=>_0x48a705[_0x595eab(0x2cc)]===_0x21399f),_0x3c42c4(_0x111478=>_0x111478[_0x595eab(0x301)]));}[_0x3bc3ed(0x3a5)](){const _0x5d700b=_0x3bc3ed;this[_0x5d700b(0x3a6)][_0x5d700b(0x3c6)](_0x410a65[_0x5d700b(0x3a0)])['pipe'](_0x18a3e8(this[_0x5d700b(0x263)]))[_0x5d700b(0x1f2)](async _0x51d9d2=>{const _0x5c0616=_0x5d700b;let _0x1b5b39=_0x51d9d2['unit'][_0x5c0616(0x275)](),_0x1c8f37=await this[_0x5c0616(0x241)](_0x1b5b39);this[_0x5c0616(0x418)]['next'](_0x1c8f37),this[_0x5c0616(0x3e4)][_0x5c0616(0x34c)](_0x1b5b39,_0x1c8f37);}),this[_0x5d700b(0x3a6)][_0x5d700b(0x3c6)](_0x410a65[_0x5d700b(0x1d8)])[_0x5d700b(0x320)](_0x18a3e8(this[_0x5d700b(0x263)]))[_0x5d700b(0x320)](_0x10eeb(_0x45a07b=>!_0x45a07b['unit'][_0x5d700b(0x275)]()[_0x5d700b(0x1da)]('__')))[_0x5d700b(0x1f2)](async _0x31c843=>{const _0x277e3f=_0x5d700b;let {unit:_0xee090f}=_0x31c843,_0x11f2ca=_0xee090f[_0x277e3f(0x275)](),_0x39cd85=await this[_0x277e3f(0x243)](_0x11f2ca);this['_entityInit$'][_0x277e3f(0x36a)](_0x39cd85),this[_0x277e3f(0x3e4)][_0x277e3f(0x34c)](_0x11f2ca,_0x39cd85);}),this['_univerInstanceService'][_0x5d700b(0x3c6)](_0x410a65['UNIVER_SLIDE'])['pipe'](_0x18a3e8(this[_0x5d700b(0x263)]))[_0x5d700b(0x1f2)](async _0x5850a9=>{const _0x501c82=_0x5d700b;let _0x327013=_0x5850a9[_0x501c82(0x207)][_0x501c82(0x275)](),_0x29ca6e=await this[_0x501c82(0x393)](_0x327013);this['_entityInit$'][_0x501c82(0x36a)](_0x29ca6e),this['_entities']['set'](_0x327013,_0x29ca6e);}),this[_0x5d700b(0x3a6)]['getTypeOfUnitAdded$'](_0x410a65[_0x5d700b(0x3f9)])['pipe'](_0x18a3e8(this[_0x5d700b(0x263)]))[_0x5d700b(0x1f2)](async _0x36abec=>{const _0x22c3e5=_0x5d700b;let _0x8b293d=_0x36abec[_0x22c3e5(0x207)]['getUnitId'](),_0x5333a9=await this['_startBoardCollabCursor'](_0x8b293d);this['_entityInit$'][_0x22c3e5(0x36a)](_0x5333a9),this[_0x22c3e5(0x3e4)][_0x22c3e5(0x34c)](_0x8b293d,_0x5333a9);}),_0x739bae(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x410a65[_0x5d700b(0x1d8)]),this[_0x5d700b(0x3a6)][_0x5d700b(0x354)](_0x410a65['UNIVER_SHEET']),this['_univerInstanceService'][_0x5d700b(0x354)](_0x410a65['UNIVER_SLIDE']),this[_0x5d700b(0x3a6)][_0x5d700b(0x354)](_0x410a65[_0x5d700b(0x3f9)]))[_0x5d700b(0x320)](_0x18a3e8(this[_0x5d700b(0x263)]))[_0x5d700b(0x1f2)](_0x2664fa=>{const _0xf051f4=_0x5d700b;let _0x534e6d=_0x2664fa[_0xf051f4(0x275)](),_0x59374d=this[_0xf051f4(0x3e4)][_0xf051f4(0x240)](_0x534e6d);_0x59374d&&(_0x59374d[_0xf051f4(0x44f)](),this[_0xf051f4(0x3e4)][_0xf051f4(0x3aa)](_0x534e6d));});}async[_0x3bc3ed(0x241)](_0x26d84b){const _0x4683bc=_0x3bc3ed;let _0x4e1088=await this['_collabSessionService'][_0x4683bc(0x2b4)](_0x26d84b),_0x319a96=this[_0x4683bc(0x33f)][_0x4683bc(0x1f4)](zn,_0x26d84b,_0x4e1088);return _0x319a96[_0x4683bc(0x435)](),_0x319a96;}async[_0x3bc3ed(0x243)](_0x4e8ddf){const _0x45887a=_0x3bc3ed;let _0x3ef4ce=await this[_0x45887a(0x3ab)][_0x45887a(0x2b4)](_0x4e8ddf),_0x4545fc=this[_0x45887a(0x33f)][_0x45887a(0x1f4)](Ln,_0x4e8ddf,_0x3ef4ce);return _0x4545fc[_0x45887a(0x435)](),_0x4545fc;}async[_0x3bc3ed(0x393)](_0x13da26){const _0x1e5895=_0x3bc3ed;let _0x1304f9=await this[_0x1e5895(0x3ab)][_0x1e5895(0x2b4)](_0x13da26),_0xdce84c=this[_0x1e5895(0x33f)][_0x1e5895(0x1f4)](Vn,_0x13da26,_0x1304f9);return _0xdce84c[_0x1e5895(0x435)](),_0xdce84c;}async[_0x3bc3ed(0x258)](_0x408d47){const _0x3a1af5=_0x3bc3ed;let _0x118526=await this[_0x3a1af5(0x3ab)]['requireSession'](_0x408d47),_0x22b954=this[_0x3a1af5(0x33f)][_0x3a1af5(0x1f4)](Nn,_0x408d47,_0x118526);return _0x22b954[_0x3a1af5(0x435)](),_0x22b954;}};Q=Y([J(0x0,_0x449dc1),J(0x1,_0x4d1fed(_0x57f253)),J(0x2,_0x4d1fed(_0x48f983))],Q);let Hn=class extends _0x2c69b2{constructor(_0x5d4151,_0x4f17b8,_0x4c95ef){const _0x4d0917=_0x3bc3ed;super(),this[_0x4d0917(0x1d0)]=_0x5d4151,this[_0x4d0917(0x37d)]=_0x4f17b8,this[_0x4d0917(0x291)]=_0x4c95ef,q(this,_0x4d0917(0x1c7),new Set()),q(this,_0x4d0917(0x34b),!0x1),q(this,_0x4d0917(0x2f2),!0x1),q(this,_0x4d0917(0x326),new Map()),this[_0x4d0917(0x3a5)]();}[_0x3bc3ed(0x44f)](){const _0x7894c8=_0x3bc3ed;this['_removeCollabCursors'](),super[_0x7894c8(0x44f)]();}[_0x3bc3ed(0x3a5)](){const _0xcbae5=_0x3bc3ed;let _0x1dd12e=this[_0xcbae5(0x37d)][_0xcbae5(0x27a)](this[_0xcbae5(0x1d0)][_0xcbae5(0x2e4)]);this[_0xcbae5(0x239)](_0x9b2c48(_0x20eef1([_0x1dd12e,this[_0xcbae5(0x1d0)][_0xcbae5(0x207)][_0xcbae5(0x430)],this[_0xcbae5(0x291)][_0xcbae5(0x30e)]])[_0xcbae5(0x320)](_0x18a3e8(this[_0xcbae5(0x263)]))[_0xcbae5(0x1f2)](([_0x24afa3])=>{const _0x42420d=_0xcbae5;let _0x574ab5=this['_context']['unit']['getActivePageId'](),_0x49ad99=new Map();_0x24afa3[_0x42420d(0x348)]((_0xd1117a,_0x4d28b3)=>{const _0x2c4fb7=_0x42420d;_0xd1117a[_0x2c4fb7(0x2dd)]===_0x574ab5&&_0x49ad99[_0x2c4fb7(0x34c)](_0x4d28b3,{..._0xd1117a,'color':this[_0x2c4fb7(0x291)]['getColorFromTheme'](_0xd1117a[_0x2c4fb7(0x2b3)])});}),this[_0x42420d(0x326)]=_0x49ad99,this[_0x42420d(0x1f1)]();})));let _0x240539=this['_context']['scene'];this[_0xcbae5(0x239)](_0x9b2c48(_0x240539[_0xcbae5(0x402)][_0xcbae5(0x320)](_0x18a3e8(this[_0xcbae5(0x263)]))['subscribe'](()=>{const _0x45839f=_0xcbae5;this[_0x45839f(0x2f2)]||this[_0x45839f(0x1f1)]();})));}[_0x3bc3ed(0x1f1)](){const _0x4d2624=_0x3bc3ed;this[_0x4d2624(0x34b)]||(this[_0x4d2624(0x34b)]=!0x0,Promise[_0x4d2624(0x253)]()[_0x4d2624(0x1ce)](()=>{const _0x401f09=_0x4d2624;this[_0x401f09(0x34b)]=!0x1,this[_0x401f09(0x3b8)]();}));}[_0x3bc3ed(0x3b8)](){const _0x36e82f=_0x3bc3ed;this[_0x36e82f(0x378)]();let _0x2511ea=this['_context'][_0x36e82f(0x207)][_0x36e82f(0x2fa)](),_0x3632d2=[];if(this[_0x36e82f(0x326)][_0x36e82f(0x348)]((_0x797379,_0x3bf3a2)=>{const _0x27b00e=_0x36e82f;_0x797379[_0x27b00e(0x2dd)]===_0x2511ea&&_0x797379['selectedIds'][_0x27b00e(0x348)](_0x3e2bc5=>{const _0x5cc99a=_0x27b00e;let _0x197ca5=_0x15af57(_0x797379['unitId'],_0x3e2bc5),_0x570fac=this['_getSceneObjectByKey'](_0x197ca5);if(!_0x570fac)return;let _0x534201=this['_getObjectBounds'](_0x570fac);_0x3632d2[_0x5cc99a(0x368)](new An(_0x5cc99a(0x333)+_0x3bf3a2+'-'+_0x3e2bc5,{..._0x797379,'left':_0x534201[_0x5cc99a(0x321)],'top':_0x534201[_0x5cc99a(0x305)],'width':_0x534201[_0x5cc99a(0x2fc)],'height':_0x534201[_0x5cc99a(0x1ed)],'angle':_0x570fac['angle'],'evented':!0x1,'zIndex':kn}));});}),_0x3632d2[_0x36e82f(0x1f0)]===0x0){this[_0x36e82f(0x1d0)][_0x36e82f(0x27c)][_0x36e82f(0x20c)](!0x0);return;}this[_0x36e82f(0x2f2)]=!0x0,this[_0x36e82f(0x1d0)]['scene'][_0x36e82f(0x3f8)](_0x3632d2,kn),this[_0x36e82f(0x2f2)]=!0x1,this['_cursors']=new Set(_0x3632d2),this[_0x36e82f(0x1d0)]['scene']['makeDirty'](!0x0);}[_0x3bc3ed(0x378)](){const _0x4e9fba=_0x3bc3ed;let _0x1581bb=Array[_0x4e9fba(0x1e4)](this[_0x4e9fba(0x1c7)]);if(_0x1581bb[_0x4e9fba(0x1f0)]===0x0)return;let _0xe70cf8=this[_0x4e9fba(0x1d0)]['scene'];_0x4e9fba(0x2b8)in _0xe70cf8&&typeof _0xe70cf8['removeObjects']=='function'?_0xe70cf8[_0x4e9fba(0x2b8)](_0x1581bb):_0x1581bb[_0x4e9fba(0x348)](_0x206d30=>{const _0x14bde3=_0x4e9fba;_0x14bde3(0x3dd)in _0xe70cf8&&typeof _0xe70cf8[_0x14bde3(0x3dd)]==_0x14bde3(0x312)?_0xe70cf8[_0x14bde3(0x3dd)](_0x206d30):_0x206d30[_0x14bde3(0x44f)]();}),this[_0x4e9fba(0x1c7)][_0x4e9fba(0x3c7)](),_0xe70cf8['makeDirty'](!0x0);}['_getSceneObjectByKey'](_0x1326ce){const _0x22e5a5=_0x3bc3ed;var _0x585ff4;let _0x37ee1f=this[_0x22e5a5(0x1d0)][_0x22e5a5(0x27c)];return((_0x585ff4=_0x37ee1f[_0x22e5a5(0x3fd)])==null?void 0x0:_0x585ff4[_0x22e5a5(0x1c9)](_0x37ee1f,_0x1326ce))??_0x37ee1f[_0x22e5a5(0x30b)](_0x1326ce)??null;}['_getObjectBounds'](_0x4421fa){const _0x5880ac=_0x3bc3ed;var _0x32a218;let _0x5b2ae=_0x4421fa;return((_0x32a218=_0x5b2ae['getRealBound'])==null?void 0x0:_0x32a218['call'](_0x5b2ae))??{'left':_0x4421fa[_0x5880ac(0x321)],'top':_0x4421fa[_0x5880ac(0x305)],'width':_0x4421fa[_0x5880ac(0x2fc)],'height':_0x4421fa[_0x5880ac(0x1ed)]};}};Hn=Y([J(0x1,_0x4d1fed(Q)),J(0x2,_0x4d1fed(_0x8d2d0f))],Hn);const Un=_0x3bc3ed(0x3e3);var Wn=class{constructor(_0x5e4d72,_0x85aefc,_0x3e4c6c,_0xccde00){const _0x119c38=_0x3bc3ed;this[_0x119c38(0x2a8)]=_0x5e4d72,this[_0x119c38(0x36e)]=_0x85aefc,this['_docSkeleton']=_0x3e4c6c,this['_document']=_0xccde00,q(this,_0x119c38(0x307),[]),q(this,_0x119c38(0x23f),null),q(this,'_textBubble',null),q(this,'_anchorDot',null),q(this,_0x119c38(0x202),null),q(this,'_eventUnsubscribe',null),this['_render']();}set['_hover'](_0xa68aa8){const _0x424e8c=_0x3bc3ed;_0xa68aa8?(this[_0x424e8c(0x2b1)]&&this[_0x424e8c(0x2b1)][_0x424e8c(0x3a9)](),this[_0x424e8c(0x447)]&&this[_0x424e8c(0x447)][_0x424e8c(0x20a)]()):(this['_anchorDot']&&this[_0x424e8c(0x2b1)][_0x424e8c(0x20a)](),this[_0x424e8c(0x447)]&&this[_0x424e8c(0x447)][_0x424e8c(0x3a9)]());}[_0x3bc3ed(0x44f)](){const _0xaaff00=_0x3bc3ed;for(let _0x5c1dbb of this[_0xaaff00(0x307)])_0x5c1dbb[_0xaaff00(0x44f)]();this[_0xaaff00(0x447)]&&this['_textBubble']['dispose'](),this[_0xaaff00(0x2b1)]&&this[_0xaaff00(0x2b1)][_0xaaff00(0x44f)](),this[_0xaaff00(0x23f)]&&this[_0xaaff00(0x23f)][_0xaaff00(0x44f)](),this[_0xaaff00(0x347)]&&this['_eventUnsubscribe']();}[_0x3bc3ed(0x3b8)](){const _0x2b4674=_0x3bc3ed;let {_docSkeleton:_0x44f599,_document:_0x190e12}=this,{color:_0xac1dcb,name:_0x5b7794,ranges:_0x195365}=this[_0x2b4674(0x2a8)],_0x52ba9a=_0x190e12['getOffsetConfig'](),{docsLeft:_0x316a68,docsTop:_0x4b4eaa}=_0x52ba9a,_0x38fbb7=new _0x4641fe(_0x52ba9a,_0x44f599);for(let {startOffset:_0x56c292,endOffset:_0xa73ce1,rangeType:_0x6d60f2,segmentId:_0x5cdd2d,segmentPage:_0x41c388,collapsed:_0x464509,isActive:_0x3c80ed}of _0x195365){let _0x461e06=_0x44f599[_0x2b4674(0x41e)](_0x56c292,!0x0,_0x5cdd2d,_0x41c388),_0x5418b9=_0x44f599[_0x2b4674(0x41e)](_0xa73ce1,!0x0,_0x5cdd2d,_0x41c388);if(_0x5418b9??=_0x44f599[_0x2b4674(0x41e)](_0xa73ce1-0x1,!0x1,_0x5cdd2d,_0x41c388),_0x3c80ed){let {contentBoxPointGroup:_0x354e49}=_0x38fbb7['getRangePointData'](_0x5418b9,_0x5418b9);if(_0x354e49['length']===0x0)continue;this[_0x2b4674(0x3c5)](_0xac1dcb,_0x354e49,_0x316a68,_0x4b4eaa,_0x5b7794),this['_eventUnsubscribe']=this[_0x2b4674(0x2e1)]();}if(_0x461e06&&_0x5418b9){if(_0x6d60f2===_0x41cd22['RECT']){let {pointGroup:_0x38f317}=new _0x2d87b3(_0x52ba9a,_0x44f599)[_0x2b4674(0x201)](_0x461e06,_0x5418b9)??{};if(_0x38f317==null||_0x38f317[_0x2b4674(0x1f0)]===0x0)continue;this[_0x2b4674(0x39a)](_0xac1dcb,_0x38f317,_0x316a68,_0x4b4eaa);}else{if(!_0x464509){let {borderBoxPointGroup:_0x2edc8c}=_0x38fbb7['getRangePointData'](_0x461e06,_0x5418b9);if(_0x2edc8c['length']===0x0)continue;this[_0x2b4674(0x2f6)](_0xac1dcb,_0x2edc8c,_0x316a68,_0x4b4eaa);}}}}}[_0x3bc3ed(0x3c5)](_0x23a71c,_0x959673,_0x242882,_0x5ecce4,_0x2ad5e0){const _0x574f50=_0x3bc3ed;let {left:_0x206558,top:_0x5c0079,height:_0x8ae80c}=this[_0x574f50(0x37f)](_0x959673),_0x354c44=1.5/this[_0x574f50(0x28f)](),_0x4f5b5e=new _0x18e662(Un+_0x1294de(0x6),{'left':_0x206558+_0x242882-_0x354c44,'top':_0x5c0079+_0x5ecce4,'height':_0x8ae80c,'width':1.5,'fill':_0x23a71c||_0x46dc64(_0x21d29b[_0x574f50(0x214)],0x0),'strokeWidth':_0x354c44,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x574f50(0x23f)]=_0x4f5b5e,this[_0x574f50(0x36e)][_0x574f50(0x29f)](_0x4f5b5e,_0x5b3e02);let _0x5950af=new _0x18e662(Un+_0x1294de(0x6),{'left':_0x206558+_0x242882-_0x354c44,'top':_0x5c0079+_0x5ecce4-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x23a71c||_0x46dc64(_0x21d29b[_0x574f50(0x214)],0x0),'strokeWidth':0x0,'stroke':_0x23a71c||_0x46dc64(_0x21d29b[_0x574f50(0x214)],0x0),'evented':!0x1});this[_0x574f50(0x2b1)]=_0x5950af,this[_0x574f50(0x36e)]['addObject'](_0x5950af,_0x5b3e02);let _0x46a714=new On(Un+_0x1294de(0x6),{'left':_0x206558+_0x242882-_0x354c44,'top':_0x5c0079+_0x5ecce4-0x14,'text':_0x2ad5e0,'color':_0x23a71c});this[_0x574f50(0x447)]=_0x46a714,this[_0x574f50(0x36e)][_0x574f50(0x29f)](_0x46a714,_0x5b3e02),this['_hover']=!0x1;}[_0x3bc3ed(0x2e1)](){const _0x39d50c=_0x3bc3ed;let _0x311e7f=this[_0x39d50c(0x23f)][_0x39d50c(0x292)][_0x39d50c(0x220)](()=>{this['_hover']=!0x0;}),_0x4d5a07=this['_anchor'][_0x39d50c(0x26b)]['subscribeEvent'](()=>{const _0x3c23b8=_0x39d50c;this['_hideTimer']&&clearTimeout(this[_0x3c23b8(0x202)]),this['_hideTimer']=setTimeout(()=>{const _0x2ee1b0=_0x3c23b8;this[_0x2ee1b0(0x1c5)]=!0x1;},0x7d0);});return()=>{const _0x5711d4=_0x39d50c;_0x311e7f[_0x5711d4(0x373)](),_0x4d5a07[_0x5711d4(0x373)]();};}[_0x3bc3ed(0x2f6)](_0x13cef2,_0x35c646,_0x49bce2,_0x36fdbf){const _0x5a9950=_0x3bc3ed;let _0x2cc486=0.2,_0x5bcbab=new _0x489bde(_0x13cef2)[_0x5a9950(0x2c2)](_0x2cc486)['toRgbString'](),_0x41c36e=new _0x60c9b6(_0x5a9950(0x384)+_0x1294de(0x6),{'pointsGroup':_0x35c646,'fill':_0x5bcbab||_0x46dc64(_0x21d29b[_0x5a9950(0x214)],_0x2cc486),'left':_0x49bce2,'top':_0x36fdbf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5a9950(0x307)]['push'](_0x41c36e),this['_scene'][_0x5a9950(0x29f)](_0x41c36e,_0x5b3e02);}[_0x3bc3ed(0x39a)](_0x3c880c,_0x544ca5,_0x1c78f4,_0x3371d2){const _0x503c45=_0x3bc3ed;let _0x148f39=0.2,_0x4a9be2=new _0x489bde(_0x3c880c)[_0x503c45(0x2c2)](_0x148f39)[_0x503c45(0x3df)](),_0x532f7d=new _0x60c9b6(_0x503c45(0x210)+_0x1294de(0x6),{'pointsGroup':_0x544ca5,'fill':_0x4a9be2||_0x46dc64(_0x21d29b[_0x503c45(0x214)],_0x148f39),'left':_0x1c78f4,'top':_0x3371d2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x503c45(0x307)][_0x503c45(0x368)](_0x532f7d),this['_scene']['addObject'](_0x532f7d,_0x5b3e02);}[_0x3bc3ed(0x37f)](_0x1b997f){let _0x8f631c=_0x1b997f[0x0],_0x4cf0ef=_0x8f631c[0x0],_0x5e958a=_0x8f631c[0x2],{x:_0x4b652a,y:_0xc63a50}=_0x4cf0ef,{x:_0x62cca2,y:_0xf573f2}=_0x5e958a;return{'left':_0x4b652a,'top':_0xc63a50,'width':_0x62cca2-_0x4b652a,'height':_0xf573f2-_0xc63a50};}['_getScale'](){const _0x56e298=_0x3bc3ed;let {scaleX:_0x951ad4,scaleY:_0x3b45c2}=this[_0x56e298(0x36e)][_0x56e298(0x3af)]();return Math[_0x56e298(0x221)](_0x951ad4,_0x3b45c2);}};let Gn=class extends _0x2c69b2{constructor(_0x1d8457,_0x30530e,_0xd515ce,_0x45200d,_0xed9d85){const _0x3f91fc=_0x3bc3ed;super(),this['_context']=_0x1d8457,this['_docSkeletonManagerService']=_0x30530e,this['_collabCursorController']=_0xd515ce,this[_0x3f91fc(0x20e)]=_0x45200d,this[_0x3f91fc(0x291)]=_0xed9d85,q(this,_0x3f91fc(0x29c),[]),q(this,'_cursors',[]),this['_init']();}[_0x3bc3ed(0x3a5)](){const _0x1ebe48=_0x3bc3ed;let _0x427c58=this[_0x1ebe48(0x1d0)][_0x1ebe48(0x2e4)],_0x1ab34c=this[_0x1ebe48(0x299)];this[_0x1ebe48(0x239)](_0x20eef1([this[_0x1ebe48(0x37d)][_0x1ebe48(0x27a)](_0x427c58),this[_0x1ebe48(0x291)]['currentTheme$']])[_0x1ebe48(0x320)](_0x8474ef(([_0x4c1793,_0x5724cb])=>({'skeleton':_0x1ab34c[_0x1ebe48(0x39d)](),'cursors':[..._0x4c1793['values']()][_0x1ebe48(0x381)](_0x3ac881=>({..._0x3ac881,'color':this[_0x1ebe48(0x291)][_0x1ebe48(0x257)](_0x3ac881[_0x1ebe48(0x2b3)])}))})))['subscribe'](_0x302591=>{const _0x4db321=_0x1ebe48;if(this['_removeCollabCursors'](),_0x302591){let {skeleton:_0x53464c,cursors:_0x42f185}=_0x302591;this[_0x4db321(0x24e)](_0x53464c,_0x42f185);}})),this[_0x1ebe48(0x1e5)](),this[_0x1ebe48(0x2a2)]();}[_0x3bc3ed(0x24e)](_0x2c000b,_0x244854){const _0x5e4b03=_0x3bc3ed;let {scene:_0x2de4b5,mainComponent:_0x44032f}=this['_context'],_0x267ff4=_0x244854['map'](_0x182860=>new Wn(_0x182860,_0x2de4b5,_0x2c000b,_0x44032f));this[_0x5e4b03(0x29c)]=_0x267ff4,this[_0x5e4b03(0x1c7)]=_0x244854;}['_refreshCollabCursors'](){const _0x2f3617=_0x3bc3ed;this[_0x2f3617(0x378)]();let {scene:_0x3a9d88,mainComponent:_0x5ac8b3}=this['_context'],_0x3d9a68=this['_docSkeletonManagerService']['getSkeleton'](),_0x3f5961=this['_cursors'][_0x2f3617(0x2f4)](_0x11297e=>new Wn(_0x11297e,_0x3a9d88,_0x3d9a68,_0x5ac8b3));this['_cursorShapes']=_0x3f5961;}[_0x3bc3ed(0x378)](){const _0x5b1f7c=_0x3bc3ed;this[_0x5b1f7c(0x29c)]['forEach'](_0x390f66=>_0x390f66[_0x5b1f7c(0x44f)]()),this[_0x5b1f7c(0x29c)]=[];}[_0x3bc3ed(0x2a2)](){const _0x4370ed=_0x3bc3ed;let _0x3434ff=[_0x4447c9['id']];this[_0x4370ed(0x239)](this[_0x4370ed(0x20e)][_0x4370ed(0x222)](_0x46d34a=>{const _0x17710a=_0x4370ed;_0x3434ff[_0x17710a(0x39e)](_0x46d34a['id'])&&_0x46d34a['params'][_0x17710a(0x2e4)]===this[_0x17710a(0x1d0)][_0x17710a(0x2e4)]&&this[_0x17710a(0x360)]();}));}[_0x3bc3ed(0x1e5)](){const _0x2dea0b=_0x3bc3ed;this['disposeWithMe'](_0x4b7ade(this['_context'][_0x2dea0b(0x36c)]['onTransformChange$'])[_0x2dea0b(0x320)](_0x39b3f9(_0x163696=>_0x163696[_0x2dea0b(0x1cb)]===_0x38414a[_0x2dea0b(0x357)]),_0x312d34(0x10))[_0x2dea0b(0x1f2)](()=>{this['_refreshCollabCursors']();}));}};Gn=Y([J(0x1,_0x4d1fed(_0x258d37)),J(0x2,_0x4d1fed(Q)),J(0x3,_0x581e85),J(0x4,_0x4d1fed(_0x8d2d0f))],Gn);var Kn=class extends _0x301f9c{constructor(_0x4e15ca,_0x5165d7){const _0x5131c0=_0x3bc3ed;super(_0x4e15ca,_0x5165d7),q(this,_0x5131c0(0x2fb),void 0x0),q(this,'_hovered',!0x1),q(this,_0x5131c0(0x43c),void 0x0),q(this,_0x5131c0(0x231),''),q(this,'_labelPosition',_0x5131c0(0x305)),q(this,_0x5131c0(0x2be),void 0x0),q(this,_0x5131c0(0x3a7),void 0x0),q(this,'_highlight',void 0x0),q(this,_0x5131c0(0x1d9),0x4),q(this,_0x5131c0(0x3d2),void 0x0),q(this,_0x5131c0(0x2f1),void 0x0),q(this,'_isBlinkVisible',!0x0),q(this,_0x5131c0(0x21e),0x0),q(this,'_labelHorizontalPosition',_0x5131c0(0x271)),_0x5165d7&&(this[_0x5131c0(0x284)](_0x5165d7),_0x5165d7[_0x5131c0(0x245)]&&(_0x5165d7[_0x5131c0(0x35a)]??this[_0x5131c0(0x1d9)])&&this[_0x5131c0(0x1ca)](_0x5165d7[_0x5131c0(0x35a)]??this[_0x5131c0(0x1d9)])),this[_0x5131c0(0x292)][_0x5131c0(0x220)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5131c0(0x26b)][_0x5131c0(0x220)](()=>this[_0x5131c0(0x284)]({'hovered':!0x1}));}[_0x3bc3ed(0x308)](_0x48a2b0){const _0x187644=_0x3bc3ed;this[_0x187644(0x21e)]=_0x48a2b0;}[_0x3bc3ed(0x284)](_0x131081){const _0x533e30=_0x3bc3ed;this[_0x533e30(0x2fb)]=_0x131081[_0x533e30(0x2b3)]??this[_0x533e30(0x2fb)],this['_hovered']=_0x131081[_0x533e30(0x338)]??this[_0x533e30(0x358)],this[_0x533e30(0x43c)]=_0x131081[_0x533e30(0x327)]??this[_0x533e30(0x43c)],this[_0x533e30(0x231)]=_0x131081[_0x533e30(0x270)]??this[_0x533e30(0x231)],this[_0x533e30(0x437)]=_0x131081[_0x533e30(0x20d)]??this[_0x533e30(0x437)],this[_0x533e30(0x2be)]=_0x131081[_0x533e30(0x25c)]??this['_backgroundColor'],this[_0x533e30(0x3a7)]=_0x131081[_0x533e30(0x39c)]??this[_0x533e30(0x3a7)],this['_labelHorizontalPosition']=_0x131081[_0x533e30(0x3b1)]??this[_0x533e30(0x40b)],_0x131081[_0x533e30(0x35a)]!==void 0x0&&(this['_highlightSecond']=_0x131081[_0x533e30(0x35a)]),_0x131081[_0x533e30(0x245)]!==void 0x0&&(this[_0x533e30(0x2df)]=_0x131081[_0x533e30(0x245)]),_0x131081[_0x533e30(0x387)]!==void 0x0&&(this['_offsetY']=_0x131081[_0x533e30(0x387)]),this['transformByState']({'width':_0x131081[_0x533e30(0x2fc)],'height':_0x131081[_0x533e30(0x1ed)]});}[_0x3bc3ed(0x251)](_0x5c7d6d){const _0x342fdf=_0x3bc3ed;let {row:_0x3c5f5b,column:_0x5a5d7d}=_0x5c7d6d;if(_0x3c5f5b>=this['_range'][_0x342fdf(0x22d)]&&_0x3c5f5b<=this['_range'][_0x342fdf(0x380)]&&_0x5a5d7d>=this[_0x342fdf(0x43c)][_0x342fdf(0x38c)]&&_0x5a5d7d<=this['_range']['endColumn']){this[_0x342fdf(0x284)]({'hovered':!0x0});return;}this[_0x342fdf(0x284)]({'hovered':!0x1});}[_0x3bc3ed(0x1ca)](_0x3a900b){const _0x1afc93=_0x3bc3ed;this[_0x1afc93(0x272)](),this[_0x1afc93(0x1ec)]=!0x0,this[_0x1afc93(0x2f1)]=window[_0x1afc93(0x2ce)](()=>{const _0x53e089=_0x1afc93;this[_0x53e089(0x1ec)]=!this[_0x53e089(0x1ec)],this['makeDirty'](!0x0);},0x1f4),this[_0x1afc93(0x3d2)]=window[_0x1afc93(0x269)](()=>{const _0x1d648a=_0x1afc93;this[_0x1d648a(0x272)](),this['_isBlinkVisible']=!0x0,this[_0x1d648a(0x20c)](!0x0);},_0x3a900b*0x3e8);}['_stopBlinking'](){const _0x4f0629=_0x3bc3ed;this['_blinkIntervalTimer']&&=(window[_0x4f0629(0x433)](this[_0x4f0629(0x2f1)]),void 0x0),this[_0x4f0629(0x3d2)]&&=(window[_0x4f0629(0x21d)](this[_0x4f0629(0x3d2)]),void 0x0);}[_0x3bc3ed(0x2f0)](_0x319ea0){return!0x1;}[_0x3bc3ed(0x44f)](){const _0x3835aa=_0x3bc3ed;this[_0x3835aa(0x272)](),super[_0x3835aa(0x44f)]();}['_draw'](_0x793bb9){const _0x100b88=_0x3bc3ed;let _0x332d68=this['_color'],_0x4da41f=this['_backgroundColor'];if(this['_highlight']&&!this[_0x100b88(0x1ec)]&&(_0x332d68=this[_0x100b88(0x434)](this[_0x100b88(0x2fb)]),_0x4da41f=this[_0x100b88(0x2be)]?this[_0x100b88(0x434)](this[_0x100b88(0x2be)]):void 0x0),_0x18e662[_0x100b88(0x27e)](_0x793bb9,{'width':this['width'],'height':this['height'],'strokeWidth':this[_0x100b88(0x3ad)]||1.5,'stroke':_0x332d68,'evented':!0x1,'fill':_0x4da41f}),this[_0x100b88(0x358)]||this[_0x100b88(0x3a7)]){_0x793bb9[_0x100b88(0x1f3)]();let _0x2af37a=this[_0x100b88(0x40b)]===_0x100b88(0x321)?-En(_0x793bb9,this[_0x100b88(0x231)]):this['width'];_0x793bb9['transform'](0x1,0x0,0x0,0x1,_0x2af37a,(this[_0x100b88(0x437)]===_0x100b88(0x223)?0x0:-0x14)+(this[_0x100b88(0x21e)]??0x0)),On[_0x100b88(0x27e)](_0x793bb9,{'text':this[_0x100b88(0x231)],'color':_0x332d68}),_0x793bb9[_0x100b88(0x400)]();}}[_0x3bc3ed(0x434)](_0x4a7e1b){const _0x2edbfe=_0x3bc3ed;return _0x4a7e1b['startsWith']('#')?_0x2edbfe(0x20b)+Number['parseInt'](_0x4a7e1b[_0x2edbfe(0x1de)](0x1,0x3),0x10)+',\x20'+Number[_0x2edbfe(0x420)](_0x4a7e1b[_0x2edbfe(0x1de)](0x3,0x5),0x10)+',\x20'+Number[_0x2edbfe(0x420)](_0x4a7e1b[_0x2edbfe(0x1de)](0x5,0x7),0x10)+_0x2edbfe(0x252):_0x4a7e1b['startsWith'](_0x2edbfe(0x426))?_0x4a7e1b[_0x2edbfe(0x438)](/[\d.]+\)$/g,_0x2edbfe(0x1e6)):_0x4a7e1b[_0x2edbfe(0x1da)]('rgb')?_0x4a7e1b[_0x2edbfe(0x438)]('rgb',_0x2edbfe(0x426))[_0x2edbfe(0x438)](')',_0x2edbfe(0x252)):_0x4a7e1b;}};let qn=class extends _0x2c69b2{constructor(_0x536ed2,_0x35c7df,_0x25b020,_0x2bdd66){const _0x4733f7=_0x3bc3ed;super(),this[_0x4733f7(0x1d0)]=_0x536ed2,this[_0x4733f7(0x2c6)]=_0x35c7df,this['_collabCursorController']=_0x25b020,this[_0x4733f7(0x291)]=_0x2bdd66,q(this,_0x4733f7(0x1c7),new Set()),q(this,'_lastPointer',null),q(this,'_pointerMoveDisposable',null),this[_0x4733f7(0x3a5)]();}[_0x3bc3ed(0x3a5)](){const _0x2e586e=_0x3bc3ed;this['_sheetSkeletonManagerService'][_0x2e586e(0x379)][_0x2e586e(0x320)](_0x17f81b(this[_0x2e586e(0x263)]),_0x338146(_0x5bbde4=>{const _0x591a30=_0x2e586e;if(_0x5bbde4){let _0x202dc4=_0x5bbde4[_0x591a30(0x30f)];return _0x20eef1(this[_0x591a30(0x37d)][_0x591a30(0x27a)](this['_context']['unitId']),this[_0x591a30(0x291)]['currentTheme$'])[_0x591a30(0x320)](_0x8474ef(([_0x179d52,_0x1b4972])=>{const _0x2fea10=_0x591a30;let _0x5afc79=new Map();return _0x179d52[_0x2fea10(0x348)]((_0xe34b33,_0x587929)=>{const _0x154ea6=_0x2fea10;if(_0xe34b33['sheetID']===_0x202dc4){let _0x405604={..._0xe34b33};_0x405604['color']=this[_0x154ea6(0x291)][_0x154ea6(0x257)](_0xe34b33['color']),_0x5afc79[_0x154ea6(0x34c)](_0x587929,_0x405604);}}),{'skeleton':_0x5bbde4,'cursors':_0x5afc79};}));}return _0x6a4fab({'skeleton':null,'cursors':new Map()});}))[_0x2e586e(0x1f2)](({skeleton:_0x38f3ba,cursors:_0x5017c2})=>{const _0x16a6e1=_0x2e586e;this[_0x16a6e1(0x378)](),_0x38f3ba&&this[_0x16a6e1(0x24e)](_0x38f3ba,_0x5017c2);}),this['disposeWithMe'](this['_sheetSkeletonManagerService'][_0x2e586e(0x379)][_0x2e586e(0x320)](_0x17f81b(this['dispose$']))[_0x2e586e(0x1f2)](_0x323160=>{const _0x38d4c9=_0x2e586e;var _0x3eefad;if(_0x323160==null)return;(_0x3eefad=this[_0x38d4c9(0x2ac)])==null||_0x3eefad[_0x38d4c9(0x373)](),this[_0x38d4c9(0x2ac)]=null;let {skeleton:_0x4e090a}=_0x323160,{scene:_0x2efb28}=this[_0x38d4c9(0x1d0)];this[_0x38d4c9(0x2ac)]=_0x2efb28[_0x38d4c9(0x294)][_0x38d4c9(0x220)](_0x57d052(_0x2fc3a3=>{const _0x517f79=_0x38d4c9;var _0x4fad57,_0x5e8224;let {offsetX:_0x187ca8,offsetY:_0x441a5e}=_0x2fc3a3,{x:_0x592ded,y:_0x2256aa}=_0x2efb28[_0x517f79(0x322)](_0x195cd0['FromArray']([_0x187ca8,_0x441a5e])),{scaleX:_0x5407ac,scaleY:_0x59cffc}=_0x2efb28['getAncestorScale'](),_0x380414=_0x2efb28[_0x517f79(0x22e)](_0x55e659[_0x517f79(0x337)]),_0x1bc0b9=_0x2efb28[_0x517f79(0x32a)](_0x195cd0[_0x517f79(0x297)]([_0x592ded,_0x2256aa]),_0x380414),_0x26f5d5=_0x4e090a[_0x517f79(0x300)](_0x187ca8,_0x441a5e,_0x5407ac,_0x59cffc,_0x1bc0b9);(((_0x4fad57=this['_lastPointer'])==null?void 0x0:_0x4fad57[_0x517f79(0x25a)])!==_0x26f5d5[_0x517f79(0x25a)]||((_0x5e8224=this[_0x517f79(0x432)])==null?void 0x0:_0x5e8224['row'])!==_0x26f5d5[_0x517f79(0x2ed)])&&this[_0x517f79(0x1c7)][_0x517f79(0x348)](_0x5c275d=>{const _0x476a17=_0x517f79;_0x5c275d[_0x476a17(0x251)](_0x26f5d5);});},0x64));})),this[_0x2e586e(0x239)](_0x9b2c48(()=>{var _0x5e64d9;(_0x5e64d9=this['_pointerMoveDisposable'])==null||_0x5e64d9['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}['_updateCollabCursors'](_0x13da6e,_0x4f194e){const _0x4d2df2=_0x3bc3ed;let _0x2c2e64=this[_0x4d2df2(0x2c6)]['getCurrentSkeleton']();if(!_0x2c2e64)return;let _0x39c798=this[_0x4d2df2(0x3fe)]();if(!_0x39c798)return;this['_cursors'][_0x4d2df2(0x348)](_0x1e263a=>{const _0x30ea2f=_0x4d2df2;_0x1e263a[_0x30ea2f(0x20c)]();});let {scene:_0x3ce150}=_0x39c798,_0x3debda=Jn(Array[_0x4d2df2(0x1e4)](_0x4f194e[_0x4d2df2(0x28b)]()))[_0x4d2df2(0x2f4)](_0x403c08=>{const _0x1a93b8=_0x4d2df2;let {color:_0x3da4ff,range:_0x3bd35b,name:_0x58126d,selection:_0x1a92bf,sheetID:_0x2f4aa7}=_0x403c08,{startColumn:_0x3a7b45,startRow:_0x20e406,endColumn:_0x19a54b,endRow:_0x4da65e}=_0x3bd35b,_0x4c41d4=_0x5cd088(_0x20e406,_0x3a7b45,_0x3ce150,_0x2c2e64),_0x149fb9=_0x5cd088(_0x4da65e,_0x19a54b,_0x3ce150,_0x2c2e64),{columnHeaderHeightAndMarginTop:_0x55e685}=_0x2c2e64,{startX:_0x1fcb7a,startY:_0x2551cb}=_0x4c41d4,{endX:_0x23cf3c,endY:_0x9f67c0}=_0x149fb9,_0x51d092=_0x23cf3c-_0x1fcb7a,_0x5cd5f4=_0x9f67c0-_0x2551cb;return new Kn(_0x58126d,{'labelPosition':_0x2551cb-_0x55e685>=0x14?_0x1a93b8(0x305):_0x1a93b8(0x223),'sheetID':_0x2f4aa7,'range':_0x3bd35b,'color':_0x3da4ff,'name':_0x58126d,'selection':_0x1a92bf,'left':_0x1fcb7a,'top':_0x2551cb,'width':_0x51d092,'height':_0x5cd5f4,'evented':!0x1,'zIndex':0x1389});});_0x3ce150[_0x4d2df2(0x3f8)](_0x3debda,0x1),this[_0x4d2df2(0x1c7)]=new Set(_0x3debda);}[_0x3bc3ed(0x378)](){const _0x53bb8d=_0x3bc3ed;var _0x4ff1af;(_0x4ff1af=this[_0x53bb8d(0x1c7)])==null||_0x4ff1af['forEach'](_0x3e55de=>_0x3e55de[_0x53bb8d(0x44f)]());}[_0x3bc3ed(0x3fe)](){const _0x56bfe6=_0x3bc3ed;return _0x56ed87(this[_0x56bfe6(0x1d0)][_0x56bfe6(0x207)],this['_context']);}};qn=Y([J(0x1,_0x4d1fed(_0x7009c4)),J(0x2,_0x4d1fed(Q)),J(0x3,_0x4d1fed(_0x8d2d0f))],qn);function Jn(_0xa538fc){const _0x9bb303=_0x3bc3ed;let _0x55a497=new Map();return _0xa538fc[_0x9bb303(0x348)](_0x57c52b=>{const _0x11a199=_0x9bb303;if(_0x55a497[_0x11a199(0x1e8)](_0x57c52b[_0x11a199(0x280)])){let _0x1aad54=_0x55a497[_0x11a199(0x240)](_0x57c52b[_0x11a199(0x280)]);_0x1aad54[_0x11a199(0x270)]+=',\x20'+_0x57c52b[_0x11a199(0x270)];}else _0x55a497[_0x11a199(0x34c)](_0x57c52b[_0x11a199(0x280)],_0x57c52b);}),Array[_0x9bb303(0x1e4)](_0x55a497[_0x9bb303(0x28b)]());}let Yn=class extends _0x2c69b2{constructor(_0x4c852c,_0xd3f486,_0x2db897){const _0x2f6edc=_0x3bc3ed;super(),this[_0x2f6edc(0x1d0)]=_0x4c852c,this[_0x2f6edc(0x37d)]=_0xd3f486,this[_0x2f6edc(0x291)]=_0x2db897,q(this,_0x2f6edc(0x1c7),new Set()),q(this,'_renderScheduled',!0x1),q(this,_0x2f6edc(0x2f2),!0x1),q(this,_0x2f6edc(0x326),new Map()),this[_0x2f6edc(0x3a5)]();}[_0x3bc3ed(0x44f)](){const _0xf99bf5=_0x3bc3ed;this[_0xf99bf5(0x378)](),super[_0xf99bf5(0x44f)]();}[_0x3bc3ed(0x3a5)](){const _0x519c08=_0x3bc3ed;let _0x1ccab2=this[_0x519c08(0x1d0)][_0x519c08(0x207)][_0x519c08(0x31a)][_0x519c08(0x366)],_0x439a1b=this[_0x519c08(0x37d)]['getCollabCursors$'](this[_0x519c08(0x1d0)][_0x519c08(0x2e4)]);this[_0x519c08(0x239)](_0x9b2c48(_0x20eef1([_0x439a1b,_0x1ccab2,this[_0x519c08(0x291)][_0x519c08(0x30e)]])['pipe'](_0x18a3e8(this[_0x519c08(0x263)]))[_0x519c08(0x1f2)](([_0x113163,_0x135967])=>{const _0x9b3d55=_0x519c08;let _0x2e0401=new Map();_0x113163[_0x9b3d55(0x348)]((_0x2d7b7b,_0x4421ae)=>{const _0x48ac31=_0x9b3d55;_0x2d7b7b[_0x48ac31(0x2dd)]===_0x135967&&_0x2e0401['set'](_0x4421ae,{..._0x2d7b7b,'color':this[_0x48ac31(0x291)][_0x48ac31(0x257)](_0x2d7b7b[_0x48ac31(0x2b3)])});}),this[_0x9b3d55(0x326)]=_0x2e0401,this[_0x9b3d55(0x1f1)]();})));let _0x5ac6b8=this['_context'][_0x519c08(0x27c)];this[_0x519c08(0x239)](_0x9b2c48(_0x5ac6b8[_0x519c08(0x402)][_0x519c08(0x320)](_0x18a3e8(this[_0x519c08(0x263)]))[_0x519c08(0x1f2)](()=>{const _0x3c2250=_0x519c08;this[_0x3c2250(0x2f2)]||this['_scheduleRender']();})));}[_0x3bc3ed(0x1f1)](){const _0x16de38=_0x3bc3ed;this['_renderScheduled']||(this[_0x16de38(0x34b)]=!0x0,Promise['resolve']()[_0x16de38(0x1ce)](()=>{const _0x25df6c=_0x16de38;this[_0x25df6c(0x34b)]=!0x1,this[_0x25df6c(0x3b8)]();}));}[_0x3bc3ed(0x3b8)](){const _0x324afc=_0x3bc3ed;var _0x548e2f;this['_removeCollabCursors']();let _0x5c9f9c=(_0x548e2f=this[_0x324afc(0x1d0)][_0x324afc(0x207)][_0x324afc(0x31a)][_0x324afc(0x340)]())==null?void 0x0:_0x548e2f[_0x324afc(0x403)]();if(!_0x5c9f9c)return;let _0x95a2d6=[];if(this[_0x324afc(0x326)][_0x324afc(0x348)]((_0x299237,_0x4b74f7)=>{const _0x524fdd=_0x324afc;_0x299237[_0x524fdd(0x2dd)]===_0x5c9f9c&&_0x299237[_0x524fdd(0x370)][_0x524fdd(0x348)](_0x21bc22=>{const _0x1d6f18=_0x524fdd;let _0x4af230=_0x5f12b3(_0x299237[_0x1d6f18(0x2e4)],_0x299237[_0x1d6f18(0x2dd)],_0x21bc22),_0x749889=this[_0x1d6f18(0x341)](_0x4af230);if(!_0x749889)return;let _0x1d486d=this['_getObjectBounds'](_0x749889);_0x95a2d6[_0x1d6f18(0x368)](new An(_0x1d6f18(0x215)+_0x4b74f7+'-'+_0x21bc22,{..._0x299237,'left':_0x1d486d[_0x1d6f18(0x321)],'top':_0x1d486d[_0x1d6f18(0x305)],'width':_0x1d486d[_0x1d6f18(0x2fc)],'height':_0x1d486d[_0x1d6f18(0x1ed)],'angle':_0x749889[_0x1d6f18(0x3cb)],'evented':!0x1,'zIndex':kn}));});}),_0x95a2d6[_0x324afc(0x1f0)]===0x0){this[_0x324afc(0x1d0)]['scene'][_0x324afc(0x20c)](!0x0);return;}this[_0x324afc(0x2f2)]=!0x0,this[_0x324afc(0x1d0)][_0x324afc(0x27c)][_0x324afc(0x3f8)](_0x95a2d6,kn),this[_0x324afc(0x2f2)]=!0x1,this['_cursors']=new Set(_0x95a2d6),this[_0x324afc(0x1d0)][_0x324afc(0x27c)]['makeDirty'](!0x0);}[_0x3bc3ed(0x378)](){const _0x455516=_0x3bc3ed;let _0x1ca6d7=Array[_0x455516(0x1e4)](this[_0x455516(0x1c7)]);if(_0x1ca6d7[_0x455516(0x1f0)]===0x0)return;let _0x876e7f=this[_0x455516(0x1d0)][_0x455516(0x27c)];'removeObjects'in _0x876e7f&&typeof _0x876e7f['removeObjects']==_0x455516(0x312)?_0x876e7f['removeObjects'](_0x1ca6d7):_0x1ca6d7[_0x455516(0x348)](_0x3752cf=>{const _0x3cb8b7=_0x455516;_0x3cb8b7(0x3dd)in _0x876e7f&&typeof _0x876e7f[_0x3cb8b7(0x3dd)]==_0x3cb8b7(0x312)?_0x876e7f[_0x3cb8b7(0x3dd)](_0x3752cf):_0x3752cf[_0x3cb8b7(0x44f)]();}),this['_cursors'][_0x455516(0x3c7)](),_0x876e7f[_0x455516(0x20c)](!0x0);}[_0x3bc3ed(0x341)](_0x4182e4){const _0x1791f2=_0x3bc3ed;var _0x3d817c;let _0x1e26a7=this[_0x1791f2(0x1d0)][_0x1791f2(0x27c)];return((_0x3d817c=_0x1e26a7['getObjectIncludeInGroup'])==null?void 0x0:_0x3d817c[_0x1791f2(0x1c9)](_0x1e26a7,_0x4182e4))??_0x1e26a7[_0x1791f2(0x30b)](_0x4182e4)??null;}[_0x3bc3ed(0x2f8)](_0x515b52){const _0x51b7f8=_0x3bc3ed;var _0x3f6f04;let _0x248695=_0x515b52;return((_0x3f6f04=_0x248695[_0x51b7f8(0x1e2)])==null?void 0x0:_0x3f6f04[_0x51b7f8(0x1c9)](_0x248695))??{'left':_0x515b52[_0x51b7f8(0x321)],'top':_0x515b52['top'],'width':_0x515b52['width'],'height':_0x515b52[_0x51b7f8(0x1ed)]};}};Yn=Y([J(0x1,_0x4d1fed(Q)),J(0x2,_0x4d1fed(_0x8d2d0f))],Yn);let Xn=class extends _0x1b14aa{constructor(_0x14b9be,_0x18e031,_0x31e3e1,_0x2c3a4d,_0x28c080,_0x1784a6){const _0x196457=_0x3bc3ed;super(),this['_beforeCloseService']=_0x14b9be,this['_localCacheService']=_0x18e031,this[_0x196457(0x3d1)]=_0x31e3e1,this[_0x196457(0x43a)]=_0x2c3a4d,this[_0x196457(0x1e7)]=_0x28c080,this[_0x196457(0x43f)]=_0x1784a6,this[_0x196457(0x2bb)](),this[_0x196457(0x311)]();}['_setupBeforeClosingHandler'](){const _0xc8ab1b=_0x3bc3ed;this[_0xc8ab1b(0x239)](this[_0xc8ab1b(0x246)]['registerBeforeClose'](()=>{const _0x3e598a=_0xc8ab1b;if(this[_0x3e598a(0x44e)][_0x3e598a(0x206)][_0x3e598a(0x336)])return this[_0x3e598a(0x43f)]['t'](_0x3e598a(0x446));}));}[_0x3bc3ed(0x311)](){const _0x5b29c2=_0x3bc3ed;this[_0x5b29c2(0x239)](this[_0x5b29c2(0x3d1)][_0x5b29c2(0x316)][_0x5b29c2(0x1f2)](_0x13f9ca=>{const _0x1c7735=_0x5b29c2;_0x13f9ca['id']===_0x5e38ec[_0x1c7735(0x23b)]&&this[_0x1c7735(0x43a)][_0x1c7735(0x20a)]({'type':_0x4703d3[_0x1c7735(0x25d)],'content':this['_localeService']['t'](_0x1c7735(0x413))}),_0x13f9ca['id']===_0x5e38ec['CLOSE_ROOM']&&this[_0x1c7735(0x43a)][_0x1c7735(0x20a)]({'type':_0x4703d3[_0x1c7735(0x25d)],'content':this[_0x1c7735(0x43f)]['t'](_0x1c7735(0x436))}),_0x13f9ca['id']===_0x5e38ec[_0x1c7735(0x42d)]&&this[_0x1c7735(0x1e7)]['show']({'title':this['_localeService']['t']('collaboration-client-ui.permission.title'),'content':this['_localeService']['t'](_0x1c7735(0x310)),'type':'error','duration':0x0}),_0x13f9ca['id']===_0x5e38ec[_0x1c7735(0x2ea)]&&this['_notificationService'][_0x1c7735(0x20a)]({'title':this[_0x1c7735(0x43f)]['t'](_0x1c7735(0x2e3)),'content':this[_0x1c7735(0x43f)]['t'](_0x1c7735(0x1fa)),'type':_0x1c7735(0x3d0),'duration':0x0}),_0x13f9ca['id']===_0x5e38ec[_0x1c7735(0x3ec)]&&this[_0x1c7735(0x43a)][_0x1c7735(0x20a)]({'type':_0x4703d3[_0x1c7735(0x25d)],'content':this['_localeService']['t'](_0x13f9ca[_0x1c7735(0x276)]||'')}),_0x13f9ca['id']===_0x5e38ec['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x1c7735(0x20a)]({'type':_0x4703d3[_0x1c7735(0x25d)],'content':this[_0x1c7735(0x43f)]['t'](_0x1c7735(0x2d3))}),_0x13f9ca['id']===_0x5e38ec[_0x1c7735(0x260)]&&this[_0x1c7735(0x43a)][_0x1c7735(0x20a)]({'type':_0x4703d3[_0x1c7735(0x309)],'content':this[_0x1c7735(0x43f)]['t']('collaboration-client-ui.session.connection-failed')}),_0x13f9ca['id']===_0x5e38ec['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x1c7735(0x43a)]['show']({'type':_0x4703d3['Error'],'content':this[_0x1c7735(0x43f)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};Xn=Y([J(0x0,_0x5149b9),J(0x1,_0x571f9b),J(0x2,_0x4d1fed(_0x36c2f5)),J(0x3,_0x454719),J(0x4,_0x546073),J(0x5,_0x4d1fed(_0x2d2bf4))],Xn);const Zn=_0x1f7596('uni.network.url-service');let Qn=class extends _0x2c69b2{constructor(_0x2d5511,_0x414d10,_0x3029d1,_0x14a989,_0x40ea57){const _0x20c956=_0x3bc3ed;super(),this[_0x20c956(0x32c)]=_0x2d5511,this[_0x20c956(0x21c)]=_0x414d10,this['_commandService']=_0x3029d1,this[_0x20c956(0x23d)]=_0x14a989,_0x40ea57?_0x40ea57['whenReady']()[_0x20c956(0x1ce)](()=>this[_0x20c956(0x3a5)]()):(this['_logService'][_0x20c956(0x212)](_0x20c956(0x39f),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0x50d436=_0x3bc3ed;let _0x30abbd=this[_0x50d436(0x32c)][_0x50d436(0x1f5)](_0x50d436(0x207)),_0x5661fe=this[_0x50d436(0x32c)][_0x50d436(0x1f5)](_0x50d436(0x1cb)),_0x295dcb=this[_0x50d436(0x32c)][_0x50d436(0x1f5)](_0x50d436(0x262));if(!_0x30abbd||!_0x5661fe){this[_0x50d436(0x21c)]['debug'](_0x50d436(0x39f),_0x50d436(0x2d1));return;}let _0x2aed91=await this[_0x50d436(0x23d)][_0x50d436(0x3f1)](_0x30abbd,Number(_0x5661fe),_0x295dcb);_0x2aed91&&_0x2aed91 instanceof _0x3b5356&&this[_0x50d436(0x2f5)](_0x2aed91);}async[_0x3bc3ed(0x2f5)](_0x53f0ec){const _0x15e2a9=_0x3bc3ed;await this[_0x15e2a9(0x2ba)](_0x53f0ec),_0x53f0ec[_0x15e2a9(0x273)][_0x15e2a9(0x320)](_0x18a3e8(this['dispose$']))['subscribe'](_0x38da23=>{const _0x208367=_0x15e2a9;_0x38da23&&this[_0x208367(0x33b)](_0x38da23);}),this[_0x15e2a9(0x32c)][_0x15e2a9(0x209)][_0x15e2a9(0x320)](_0x18a3e8(this[_0x15e2a9(0x263)]))[_0x15e2a9(0x1f2)](()=>this[_0x15e2a9(0x2ba)](_0x53f0ec));}[_0x3bc3ed(0x33b)](_0x5223bb,_0x175d12=!0x1){const _0x136336=_0x3bc3ed;let _0x50ded4=this['_urlService'][_0x136336(0x1f5)](_0x136336(0x262));_0x5223bb[_0x136336(0x22c)]()!==_0x50ded4&&this['_urlService'][_0x136336(0x256)](_0x136336(0x262),_0x5223bb[_0x136336(0x22c)](),_0x175d12);}async[_0x3bc3ed(0x2ba)](_0x4c4549){const _0x297840=_0x3bc3ed;var _0x2bf47d;let _0x3b3da3=this[_0x297840(0x32c)][_0x297840(0x1f5)](_0x297840(0x262));if(!_0x3b3da3||!_0x4c4549[_0x297840(0x1dd)](_0x3b3da3)){let _0x134c02=_0x4c4549[_0x297840(0x204)]()[0x0],_0x22ba2e=_0x4c4549['getSheetBySheetId'](_0x134c02);if(!_0x22ba2e)return;this['_updateURLWithCurrentState'](_0x22ba2e,!0x0),await this[_0x297840(0x20e)]['executeCommand'](_0x40784d['id'],{'unitId':_0x4c4549[_0x297840(0x275)](),'subUnitId':_0x134c02});return;}((_0x2bf47d=_0x4c4549[_0x297840(0x304)]())==null?void 0x0:_0x2bf47d[_0x297840(0x22c)]())!==_0x3b3da3&&await this['_commandService'][_0x297840(0x29e)](_0x40784d['id'],{'unitId':_0x4c4549[_0x297840(0x275)](),'subUnitId':_0x3b3da3});}};Qn=Y([J(0x0,Zn),J(0x1,_0x483e73),J(0x2,_0x581e85),J(0x3,_0x4d1fed(_0x21830c)),J(0x4,_0x122b91(_0x3e11b5))],Qn);let $n=class{constructor(_0x4d45cc,_0x53cb0f){const _0x452398=_0x3bc3ed;this[_0x452398(0x442)]=_0x4d45cc,this['_renderManagerService']=_0x53cb0f;}[_0x3bc3ed(0x28c)](_0x3fefb0){const _0x8880c8=_0x3bc3ed;this[_0x8880c8(0x233)](_0x3fefb0),this[_0x8880c8(0x382)](_0x3fefb0);}[_0x3bc3ed(0x21f)](_0x4e0855){const _0x5eb7d6=_0x3bc3ed;let {unitID:_0x289a68}=_0x4e0855,{redoCache:_0x11b46a}=this[_0x5eb7d6(0x3f3)][_0x5eb7d6(0x2a1)](_0x289a68)[_0x5eb7d6(0x2ff)](_0x52a25d)[_0x5eb7d6(0x332)]();if(_0x11b46a['length']===0x0)return _0x4e0855;let _0x5072e0=_0x5e4224[_0x5eb7d6(0x421)](_0x4e0855[_0x5eb7d6(0x1e1)][0x0]);for(let _0x4de80f=0x0;_0x4de80f<_0x11b46a[_0x5eb7d6(0x1f0)];_0x4de80f++){let _0xb8b082={'id':'doc.mutation.rich-text-editing','params':{..._0x11b46a[_0x4de80f]}},_0xd51162=this[_0x5eb7d6(0x442)]['transformMutation'](_0x5072e0,_0xb8b082,!0x1);if(_0x4a2b76(_0xd51162))throw _0xd51162['error'];_0x5072e0=_0xd51162[_0x5eb7d6(0x211)];}return{..._0x5e4224[_0x5eb7d6(0x421)](_0x4e0855),'mutations':[_0x5072e0]};}[_0x3bc3ed(0x233)](_0x1046ab){const _0x1db8c9=_0x3bc3ed;let {unitID:_0x592a44}=_0x1046ab,_0x14a9c6=this[_0x1db8c9(0x3f3)][_0x1db8c9(0x2a1)](_0x592a44)['with'](_0x52a25d),{undoCache:_0xa1b871,redoCache:_0x54aad0}=_0x14a9c6['getUndoRedoMutationParamsCache']();if(_0xa1b871[_0x1db8c9(0x1f0)]===0x0||_0x54aad0[_0x1db8c9(0x1f0)]===0x0)return;let _0x11aa13=[],_0x28a157=[],_0x455203=_0x5e4224['deepClone'](_0x1046ab['mutations'][0x0]),_0x162885=_0x5e4224[_0x1db8c9(0x421)](_0x1046ab['mutations'][0x0]);for(let _0xaa348c=_0xa1b871[_0x1db8c9(0x1f0)]-0x1;_0xaa348c>=0x0;_0xaa348c--){let _0x5f3b09={'id':_0x1db8c9(0x22b),'params':{..._0xa1b871[_0xaa348c]}},_0x5dd8d7={'id':_0x1db8c9(0x22b),'params':{..._0x54aad0[_0xaa348c]}},_0x33a673=this[_0x1db8c9(0x442)][_0x1db8c9(0x344)](_0x455203,_0x5f3b09,!0x1),_0x1e8736=this[_0x1db8c9(0x442)]['transformMutation'](_0x162885,_0x5dd8d7,!0x1);if(_0x4a2b76(_0x33a673))throw _0x33a673[_0x1db8c9(0x3d0)];if(_0x4a2b76(_0x1e8736))throw _0x1e8736[_0x1db8c9(0x3d0)];_0x11aa13[_0x1db8c9(0x1dc)](_0x33a673['m2Prime'][_0x1db8c9(0x278)]),_0x28a157[_0x1db8c9(0x1dc)](_0x1e8736[_0x1db8c9(0x26c)][_0x1db8c9(0x278)]),_0x455203=_0x33a673[_0x1db8c9(0x211)],_0x162885=_0x1e8736[_0x1db8c9(0x211)];}_0x14a9c6['setUndoRedoMutationParamsCache']({'undoCache':_0x11aa13,'redoCache':_0x28a157});}[_0x3bc3ed(0x382)](_0xdb421){const _0x3e013d=_0x3bc3ed;let {unitID:_0x1dd963}=_0xdb421,_0x727147=this['_renderManagerService'][_0x3e013d(0x2a1)](_0x1dd963)[_0x3e013d(0x2ff)](_0x52a25d),_0x173c17=_0x727147['getActiveRange']();if(_0x173c17==null)return;let _0x5c75e5=[{'id':_0x3e013d(0x22b),'params':{'unitId':_0xdb421[_0x3e013d(0x2cc)],'actions':null,'textRanges':[_0x173c17]}}],_0x309a1d=this[_0x3e013d(0x442)][_0x3e013d(0x255)](_0xdb421,_0x5c75e5);if(!_0x257abb(_0x309a1d))throw _0x309a1d[_0x3e013d(0x3d0)];let _0x21dcdc=_0x309a1d[_0x3e013d(0x26c)][0x0]['params'][_0x3e013d(0x3a3)];Array[_0x3e013d(0x298)](_0x21dcdc)&&_0x21dcdc[_0x3e013d(0x1f0)]&&_0x727147[_0x3e013d(0x3c2)](_0x21dcdc[0x0]);}};$n=Y([J(0x0,_0x1ca2f6),J(0x1,_0x4b25cc)],$n);let er=class{constructor(_0x3c3647,_0x4efff0,_0x5e74b9){const _0x3019d5=_0x3bc3ed;this[_0x3019d5(0x33f)]=_0x3c3647,this['_transformService']=_0x4efff0,this[_0x3019d5(0x414)]=_0x5e74b9;}[_0x3bc3ed(0x22a)](_0x2dfd3f){const _0xab5ad2=_0x3bc3ed;this[_0xab5ad2(0x261)](_0x2dfd3f);}['transformRemoteChangeset'](_0x1ea195){const _0x1e1e65=_0x3bc3ed;let {unitID:_0xd5fa5a}=_0x1ea195,{collaboration:_0x1873ec}=this[_0x1e1e65(0x414)][_0x1e1e65(0x1d3)](_0xd5fa5a);if(_0x1873ec['length']===0x0)return _0x1ea195;let _0x4a17c9=_0x5e4224[_0x1e1e65(0x421)](_0x1ea195['mutations'][0x0]);for(let _0x4964b6=0x0;_0x4964b6<_0x1873ec[_0x1e1e65(0x1f0)];_0x4964b6++){let _0x132d97={'id':_0x1e1e65(0x22b),'params':{'unitId':_0x1873ec[_0x4964b6]['unitId'],..._0x1873ec[_0x4964b6][_0x1e1e65(0x323)]}},_0x50141f=this[_0x1e1e65(0x442)][_0x1e1e65(0x344)](_0x4a17c9,_0x132d97,!0x1);if(_0x4a2b76(_0x50141f))throw _0x50141f[_0x1e1e65(0x3d0)];_0x4a17c9=_0x50141f[_0x1e1e65(0x211)];}return{..._0x5e4224[_0x1e1e65(0x421)](_0x1ea195),'mutations':[_0x4a17c9]};}[_0x3bc3ed(0x261)](_0xb4c3a5){const _0x2eb1d2=_0x3bc3ed;let {unitID:_0x597821}=_0xb4c3a5,{history:_0x57ea75,collaboration:_0x148dac}=this['_docStateChangeManagerService'][_0x2eb1d2(0x1d3)](_0x597821);if(_0x57ea75[_0x2eb1d2(0x1f0)]===0x0&&_0x148dac['length']===0x0)return;let _0x3702fc=[],_0x24ce2a=[],_0x220fe2=_0x5e4224[_0x2eb1d2(0x421)](_0xb4c3a5['mutations'][0x0]),_0x2df8f6=_0x5e4224[_0x2eb1d2(0x421)](_0xb4c3a5[_0x2eb1d2(0x1e1)][0x0]);for(let _0x2e62c1=_0x57ea75[_0x2eb1d2(0x1f0)]-0x1;_0x2e62c1>=0x0;_0x2e62c1--){let _0x254736={'id':_0x2eb1d2(0x22b),'params':{'unitId':_0x57ea75[_0x2e62c1]['unitId'],..._0x57ea75[_0x2e62c1][_0x2eb1d2(0x3ef)]}},_0x17b9ef={'id':_0x2eb1d2(0x22b),'params':{'unitId':_0x57ea75[_0x2e62c1][_0x2eb1d2(0x2e4)],..._0x57ea75[_0x2e62c1]['redoState']}},_0x38c1ce=this['_transformService'][_0x2eb1d2(0x344)](_0x220fe2,_0x254736,!0x1),_0xb06764=this['_transformService'][_0x2eb1d2(0x344)](_0x2df8f6,_0x17b9ef,!0x1);if(_0x4a2b76(_0x38c1ce))throw _0x38c1ce['error'];if(_0x4a2b76(_0xb06764))throw _0xb06764['error'];_0x3702fc[_0x2eb1d2(0x1dc)]({..._0x57ea75[_0x2e62c1],'undoState':_0x38c1ce[_0x2eb1d2(0x26c)]['params'],'redoState':_0xb06764[_0x2eb1d2(0x26c)]['params']}),_0x220fe2=_0x38c1ce['m1Prime'],_0x2df8f6=_0xb06764[_0x2eb1d2(0x211)];}_0x220fe2=_0x5e4224['deepClone'](_0xb4c3a5['mutations'][0x0]),_0x2df8f6=_0x5e4224['deepClone'](_0xb4c3a5[_0x2eb1d2(0x1e1)][0x0]);for(let _0x252a45=_0x148dac['length']-0x1;_0x252a45>=0x0;_0x252a45--){let _0x2687e0={'id':_0x2eb1d2(0x22b),'params':{'unitId':_0x148dac[_0x252a45][_0x2eb1d2(0x2e4)],..._0x148dac[_0x252a45][_0x2eb1d2(0x3ef)]}},_0x395869={'id':_0x2eb1d2(0x22b),'params':{'unitId':_0x148dac[_0x252a45][_0x2eb1d2(0x2e4)],..._0x148dac[_0x252a45][_0x2eb1d2(0x323)]}},_0x5e8b4d=this[_0x2eb1d2(0x442)]['transformMutation'](_0x220fe2,_0x2687e0,!0x1),_0x382f98=this[_0x2eb1d2(0x442)][_0x2eb1d2(0x344)](_0x2df8f6,_0x395869,!0x1);if(_0x4a2b76(_0x5e8b4d))throw _0x5e8b4d['error'];if(_0x4a2b76(_0x382f98))throw _0x382f98['error'];_0x24ce2a[_0x2eb1d2(0x1dc)]({..._0x148dac[_0x252a45],'undoState':_0x5e8b4d[_0x2eb1d2(0x26c)][_0x2eb1d2(0x278)],'redoState':_0x382f98[_0x2eb1d2(0x26c)]['params']}),_0x220fe2=_0x5e8b4d[_0x2eb1d2(0x211)],_0x2df8f6=_0x382f98['m1Prime'];}this[_0x2eb1d2(0x414)][_0x2eb1d2(0x41d)](_0x597821,{'history':_0x3702fc,'collaboration':_0x24ce2a});}};er=Y([J(0x0,_0x4d1fed(_0x57f253)),J(0x1,_0x1ca2f6),J(0x2,_0x4d1fed(_0x358cad))],er);let tr=class{constructor(_0x22b54d,_0x4af991){this['_injector']=_0x22b54d,this['_transformService']=_0x4af991;}[_0x3bc3ed(0x351)](_0x31fbce){const _0x473301=_0x3bc3ed;let _0x2cb7d4=this[_0x473301(0x33f)][_0x473301(0x240)](_0x514f9f),_0x66a348=_0x2cb7d4[_0x473301(0x279)]()??[];if(_0x66a348[_0x473301(0x1f0)]===0x0)return;let _0x1aba75=_0x31fbce[_0x473301(0x2cc)],_0x4d65c8=[{'id':_0x473301(0x22b),'params':{'unitId':_0x1aba75,'actions':null,'textRanges':_0x66a348}}],_0x88affd=this[_0x473301(0x442)][_0x473301(0x255)](_0x31fbce,_0x4d65c8);if(!_0x257abb(_0x88affd))throw _0x88affd[_0x473301(0x3d0)];let _0x328711=_0x88affd[_0x473301(0x26c)][0x0]['params'][_0x473301(0x3a3)];Array['isArray'](_0x328711)&&_0x328711[_0x473301(0x1f0)]&&_0x2cb7d4[_0x473301(0x3d7)](_0x328711,{'unitId':_0x1aba75,'subUnitId':_0x1aba75},!0x1);}};tr=Y([J(0x0,_0x4d1fed(_0x57f253)),J(0x1,_0x1ca2f6)],tr);let nr=class extends _0x1b14aa{constructor(_0x3c4861,_0x47e915,_0x406186,_0x5a33f8,_0x518e06,_0x69a3bf,_0x418d8d){const _0x116171=_0x3bc3ed;super(),this[_0x116171(0x29b)]=_0x3c4861,this['_docTransformIMECacheService']=_0x47e915,this[_0x116171(0x244)]=_0x406186,this[_0x116171(0x41b)]=_0x5a33f8,this[_0x116171(0x3a8)]=_0x518e06,this[_0x116171(0x43a)]=_0x69a3bf,this[_0x116171(0x43f)]=_0x418d8d,q(this,_0x116171(0x3c1),new _0x5c73ce(_0x331606[_0x116171(0x2e6)])),this[_0x116171(0x249)]();}[_0x3bc3ed(0x249)](){const _0x479168=_0x3bc3ed;this[_0x479168(0x239)](this[_0x479168(0x29b)][_0x479168(0x416)][_0x479168(0x1f2)](_0x557805=>{const _0x28647a=_0x479168;_0x557805 instanceof _0x42f238&&_0x557805[_0x28647a(0x3bd)]({'onTransformIME':_0x2ee79b=>this[_0x28647a(0x2ef)][_0x28647a(0x28c)](_0x2ee79b),'onTransformState':_0x156cdc=>this[_0x28647a(0x244)][_0x28647a(0x22a)](_0x156cdc),'onTransformSelections':_0x4fa632=>this[_0x28647a(0x41b)][_0x28647a(0x351)](_0x4fa632),'onSyncEditingCollabCursor':_0x58ea9f=>this[_0x28647a(0x3a8)][_0x28647a(0x3ae)](_0x58ea9f),'onTransformRemoteChangesetByIMECache':_0x58caf8=>this[_0x28647a(0x2ef)][_0x28647a(0x21f)](_0x58caf8),'onTransformRemoteChangesetByStateCache':_0x2bb3fe=>this[_0x28647a(0x244)][_0x28647a(0x21f)](_0x2bb3fe)});}));}};nr=Y([J(0x0,_0x4d1fed(_0x37bcf2)),J(0x1,_0x4d1fed($n)),J(0x2,_0x4d1fed(er)),J(0x3,_0x4d1fed(tr)),J(0x4,_0x4d1fed(In)),J(0x5,_0x454719),J(0x6,_0x4d1fed(_0x2d2bf4))],nr);let rr=class extends _0x1b14aa{constructor(_0x44a12d,_0x39866e,_0x1d74f9,_0x3bec87){const _0x6aa203=_0x3bc3ed;super(),this[_0x6aa203(0x33f)]=_0x44a12d,this['_httpService']=_0x39866e,this['_logService']=_0x1d74f9,this[_0x6aa203(0x42a)]=_0x3bec87,q(this,_0x6aa203(0x3c8),void 0x0),this[_0x6aa203(0x3a5)]();}[_0x3bc3ed(0x3a5)](){this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this['_initUserListener']();}[_0x3bc3ed(0x203)](){const _0x312b89=_0x3bc3ed;this['disposeWithMe'](this[_0x312b89(0x42a)][_0x312b89(0x2db)][_0x312b89(0x1f2)](_0x2f4960=>{const _0x884d54=_0x312b89;this[_0x884d54(0x3c8)]=_0x2f4960==null?void 0x0:_0x2f4960[_0x884d54(0x26d)];}));}[_0x3bc3ed(0x1c4)](){const _0x3fe429=_0x3bc3ed;let _0xeb903=_0x3880cb=>{const _0x4188c9=_0xb747;var _0x35a70c;this[_0x4188c9(0x412)](_0x4188c9(0x3d0),_0x4188c9(0x425)+_0x3880cb[_0x4188c9(0x31c)]+'\x20at\x20'+_0x3880cb[_0x4188c9(0x25e)]+':'+_0x3880cb[_0x4188c9(0x3cd)]+':'+_0x3880cb[_0x4188c9(0x227)]+'\x0a'+(((_0x35a70c=_0x3880cb[_0x4188c9(0x3d0)])==null?void 0x0:_0x35a70c[_0x4188c9(0x444)])||''));};window[_0x3fe429(0x3dc)](_0x3fe429(0x3d0),_0xeb903),this['disposeWithMe'](()=>{const _0x2d8ae0=_0x3fe429;window['removeEventListener'](_0x2d8ae0(0x3d0),_0xeb903);});}[_0x3bc3ed(0x3f2)](){const _0x2f6e74=_0x3bc3ed;let _0x2dcadb=_0x52ea8c=>{const _0x4360ad=_0xb747;this[_0x4360ad(0x412)](_0x4360ad(0x3d0),'[Unhandled\x20Rejection]:\x20'+_0x52ea8c[_0x4360ad(0x43e)]);};window['addEventListener'](_0x2f6e74(0x2a4),_0x2dcadb),this['disposeWithMe'](()=>{const _0x54281b=_0x2f6e74;window[_0x54281b(0x3c0)](_0x54281b(0x2a4),_0x2dcadb);});}['_monkeyPatchLogService'](){const _0x31efc2=_0x3bc3ed;let _0x41a52e=this['_logService']['error'][_0x31efc2(0x440)](this['_logService']);this['_logService']['error']=(..._0x1be56f)=>{const _0x1036d0=_0x31efc2;let _0x47309a=_0x1be56f[_0x1036d0(0x2f4)](_0x275a3e=>_0x275a3e instanceof Error?_0x275a3e[_0x1036d0(0x31c)]+'\x0a'+_0x275a3e[_0x1036d0(0x444)]:String(_0x275a3e))['join']('\x20');this[_0x1036d0(0x412)](_0x1036d0(0x3d0),_0x1036d0(0x33d)+_0x47309a),_0x41a52e(..._0x1be56f);},this[_0x31efc2(0x239)](()=>{const _0x146c95=_0x31efc2;this[_0x146c95(0x21c)][_0x146c95(0x3d0)]=_0x41a52e;});}[_0x3bc3ed(0x412)](_0x2c1122,_0x1f53e4){const _0x405dab=_0x3bc3ed;try{let _0x3a0ad1={'userId':this['_memberID'],'logLabel':_0x2c1122,'content':_0x1f53e4};this[_0x405dab(0x217)][_0x405dab(0x287)](_0x405dab(0x306),{'body':_0x3a0ad1})['catch'](()=>{});}catch{}}};rr=Y([J(0x0,_0x4d1fed(_0x57f253)),J(0x1,_0x4d1fed(_0x1365bf)),J(0x2,_0x483e73),J(0x3,_0x4d1fed(_0x48f983))],rr);function ir({state$:_0x1ae72a,interactionBlocked$:_0x1b9f56}){const _0x1ac62d=_0x3bc3ed;return _0x89ce4a(_0x5cf6b0,{'children':[_0x40d51c(_0x1b9f56,!0x1,!0x0)&&_0x1332bc(_0x1ac62d(0x274),{'data-u-comp':_0x1ac62d(0x39b),'aria-hidden':!0x0,'className':_0x1ac62d(0x228)}),_0x1332bc(ar,{'state$':_0x1ae72a})]});}function ar({state$:_0x3717e7}){const _0x4a3ca9=_0x3bc3ed;let _0x40d7f8=_0x40d51c(_0x3717e7,null,!0x0);return _0x40d7f8?_0x89ce4a(_0x4a3ca9(0x274),{'data-u-comp':_0x4a3ca9(0x352),'role':_0x4a3ca9(0x2c1),'className':_0x4a3ca9(0x2ec),'children':[_0x1332bc(_0x590f24,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x1332bc(_0x4a3ca9(0x40a),{'children':_0x40d7f8['content']}),_0x1332bc(_0x320797,{'size':_0x4a3ca9(0x36f),'variant':_0x4a3ca9(0x392),'onClick':()=>window['location']['reload'](),'children':_0x40d7f8[_0x4a3ca9(0x2a0)]})]}):null;}const or='snapshot-loading-';let sr=class extends _0x1b14aa{constructor(_0x4712bc,_0xf1dd4e,_0x2f9974,_0x1da482,_0x5e6779,_0x457525,_0x519573,_0x4e1f23){const _0x3409c1=_0x3bc3ed;super(),this['_snapshotLoadingService']=_0x4712bc,this[_0x3409c1(0x43a)]=_0xf1dd4e,this[_0x3409c1(0x43f)]=_0x2f9974,this[_0x3409c1(0x33f)]=_0x1da482,this[_0x3409c1(0x372)]=_0x5e6779,this[_0x3409c1(0x41f)]=_0x519573,this[_0x3409c1(0x32c)]=_0x4e1f23,q(this,_0x3409c1(0x2c9),new _0x5c73ce(null)),q(this,_0x3409c1(0x1c8),new _0x5c73ce(!0x1)),q(this,_0x3409c1(0x219),new Set()),q(this,'_blockProgressWatches',new Map()),q(this,_0x3409c1(0x423),new Set()),q(this,_0x3409c1(0x374),new Map()),q(this,'_previewUnitId',void 0x0),q(this,'_shortcutBlock',void 0x0),q(this,_0x3409c1(0x318),void 0x0),q(this,_0x3409c1(0x359),this['_timeoutState$'][_0x3409c1(0x2ae)]());let _0xa51b25=()=>_0x13edf8(ir,{'state$':this[_0x3409c1(0x359)],'interactionBlocked$':this[_0x3409c1(0x1c8)]});this['disposeWithMe'](_0x457525[_0x3409c1(0x36b)](_0x504019[_0x3409c1(0x3cf)],()=>_0x2aafc2(_0xa51b25,this[_0x3409c1(0x33f)]))),this[_0x3409c1(0x239)](this['_snapshotLoadingService'][_0x3409c1(0x24d)][_0x3409c1(0x1f2)](_0x24f26b=>{const _0x1415b0=_0x3409c1;this[_0x1415b0(0x374)]=_0x24f26b,_0x24f26b['forEach'](_0x48bf58=>{const _0x1115cf=_0x1415b0;this[_0x1115cf(0x2cd)](_0x48bf58),this[_0x1115cf(0x234)](_0x48bf58);});})),this['disposeWithMe'](this[_0x3409c1(0x32c)][_0x3409c1(0x209)][_0x3409c1(0x1f2)](()=>{const _0x1aa391=_0x3409c1;this[_0x1aa391(0x374)][_0x1aa391(0x348)](_0x29bbee=>{const _0x58846d=_0x1aa391;this['_updateMessage'](_0x29bbee),this[_0x58846d(0x234)](_0x29bbee);});}));}[_0x3bc3ed(0x44f)](){const _0x153dc6=_0x3bc3ed;var _0x52a590;if(this[_0x153dc6(0x219)][_0x153dc6(0x348)](_0x4c8fbc=>this['_messageService'][_0x153dc6(0x317)](_0x4c8fbc)),this[_0x153dc6(0x219)][_0x153dc6(0x3c7)](),this[_0x153dc6(0x3f7)]){var _0x2aff06;(_0x2aff06=this['_sheetLoadingRenderService'])==null||_0x2aff06[_0x153dc6(0x3a9)](this[_0x153dc6(0x3f7)]);}this[_0x153dc6(0x3f7)]=void 0x0,this[_0x153dc6(0x213)][_0x153dc6(0x348)](({timeoutId:_0x3f1fc5})=>clearTimeout(_0x3f1fc5)),this[_0x153dc6(0x213)]['clear'](),(_0x52a590=this['_shortcutBlock'])==null||_0x52a590[_0x153dc6(0x44f)](),this[_0x153dc6(0x3e0)]=void 0x0,this[_0x153dc6(0x2c9)][_0x153dc6(0x429)](),this[_0x153dc6(0x1c8)]['complete'](),super[_0x153dc6(0x44f)]();}[_0x3bc3ed(0x2cd)](_0x310da8){const _0x1b8736=_0x3bc3ed;let _0x987796=''+or+_0x310da8[_0x1b8736(0x2e4)];if(_0x310da8[_0x1b8736(0x394)]===_0x28cb8d['COMPLETE']){if(this[_0x1b8736(0x40c)](_0x310da8[_0x1b8736(0x2e4)]),this['_isVisibleUnit'](_0x310da8[_0x1b8736(0x2e4)])&&this[_0x1b8736(0x3f7)]===_0x310da8[_0x1b8736(0x2e4)]){this[_0x1b8736(0x43a)]['show']({'id':_0x987796,'type':_0x4703d3[_0x1b8736(0x319)],'duration':0x1/0x0,'content':this[_0x1b8736(0x43f)]['t'](_0x1b8736(0x43d))}),this['_messageIds'][_0x1b8736(0x31d)](_0x987796);return;}this[_0x1b8736(0x302)](_0x310da8['unitId']),this[_0x1b8736(0x43a)][_0x1b8736(0x317)](_0x987796),this[_0x1b8736(0x219)]['delete'](_0x987796);return;}if(!this[_0x1b8736(0x3ac)](_0x310da8[_0x1b8736(0x2e4)])){this[_0x1b8736(0x40c)](_0x310da8[_0x1b8736(0x2e4)]),this[_0x1b8736(0x302)](_0x310da8[_0x1b8736(0x2e4)]),this[_0x1b8736(0x43a)][_0x1b8736(0x317)](_0x987796),this[_0x1b8736(0x219)][_0x1b8736(0x3aa)](_0x987796);return;}if(_0x310da8['stage']===_0x28cb8d[_0x1b8736(0x3cc)]){this['_clearBlockProgressWatch'](_0x310da8['unitId']),this[_0x1b8736(0x302)](_0x310da8['unitId']),this[_0x1b8736(0x43a)][_0x1b8736(0x20a)]({'id':_0x987796,'type':_0x4703d3['Error'],'content':this[_0x1b8736(0x43f)]['t'](_0x1b8736(0x1e0))}),this[_0x1b8736(0x219)][_0x1b8736(0x3aa)](_0x987796);return;}if(_0x310da8['stage']!==_0x28cb8d[_0x1b8736(0x3e1)]||_0x310da8[_0x1b8736(0x277)]<=0xa){this['_clearBlockProgressWatch'](_0x310da8[_0x1b8736(0x2e4)]),this[_0x1b8736(0x43a)][_0x1b8736(0x317)](_0x987796),this[_0x1b8736(0x219)]['delete'](_0x987796);return;}this['_watchBlockProgress'](_0x310da8)||(this[_0x1b8736(0x43a)][_0x1b8736(0x20a)]({'id':_0x987796,'type':_0x4703d3[_0x1b8736(0x319)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x1b8736(0x3a1))+'\x20'+_0x310da8[_0x1b8736(0x288)]+'/'+_0x310da8['totalBlocks']}),this[_0x1b8736(0x219)][_0x1b8736(0x31d)](_0x987796));}[_0x3bc3ed(0x21a)](_0x4738e5){const _0x169c8a=_0x3bc3ed;let _0x23e0f9=this[_0x169c8a(0x213)]['get'](_0x4738e5[_0x169c8a(0x2e4)]);if((_0x23e0f9==null?void 0x0:_0x23e0f9[_0x169c8a(0x288)])===_0x4738e5['loadedBlocks'])return _0x23e0f9[_0x169c8a(0x3fb)];this[_0x169c8a(0x40c)](_0x4738e5[_0x169c8a(0x2e4)]);let _0x4b2e38=setTimeout(()=>{const _0x57cd15=_0x169c8a;let _0x216fbb=this[_0x57cd15(0x213)][_0x57cd15(0x240)](_0x4738e5[_0x57cd15(0x2e4)]);if(!_0x216fbb||_0x216fbb[_0x57cd15(0x38e)]!==_0x4b2e38)return;_0x216fbb[_0x57cd15(0x3fb)]=!0x0;let _0x7391c7=''+or+_0x4738e5[_0x57cd15(0x2e4)];this[_0x57cd15(0x43a)][_0x57cd15(0x317)](_0x7391c7),this[_0x57cd15(0x219)][_0x57cd15(0x3aa)](_0x7391c7),this['_timeoutState$']['next']({'unitId':_0x4738e5[_0x57cd15(0x2e4)],'content':this['_localeService']['t'](_0x57cd15(0x247),String(_0x4738e5[_0x57cd15(0x288)]),String(_0x4738e5['totalBlocks'])),'refreshLabel':this[_0x57cd15(0x43f)]['t'](_0x57cd15(0x38d))});},0xea60);return this[_0x169c8a(0x213)][_0x169c8a(0x34c)](_0x4738e5[_0x169c8a(0x2e4)],{'loadedBlocks':_0x4738e5['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x4b2e38}),!0x1;}[_0x3bc3ed(0x40c)](_0x4a43c9){const _0x5cf08d=_0x3bc3ed;let _0x3b92c9=this[_0x5cf08d(0x213)][_0x5cf08d(0x240)](_0x4a43c9);_0x3b92c9&&(clearTimeout(_0x3b92c9[_0x5cf08d(0x38e)]),this['_blockProgressWatches'][_0x5cf08d(0x3aa)](_0x4a43c9),this[_0x5cf08d(0x302)](_0x4a43c9));}[_0x3bc3ed(0x302)](_0x166639){const _0x46c511=_0x3bc3ed;var _0x8df358;((_0x8df358=this[_0x46c511(0x2c9)][_0x46c511(0x268)])==null?void 0x0:_0x8df358[_0x46c511(0x2e4)])===_0x166639&&this[_0x46c511(0x2c9)][_0x46c511(0x36a)](null);}['_updateSheetPreview'](_0x4758d7){const _0x14655a=_0x3bc3ed;if(_0x4758d7[_0x14655a(0x394)]===_0x28cb8d[_0x14655a(0x44c)]&&this[_0x14655a(0x423)][_0x14655a(0x3aa)](_0x4758d7[_0x14655a(0x2e4)]),!this['_isVisibleUnit'](_0x4758d7[_0x14655a(0x2e4)])){this[_0x14655a(0x314)](_0x4758d7[_0x14655a(0x2e4)]);return;}if(_0x4758d7['stage']===_0x28cb8d[_0x14655a(0x3cc)]||_0x4758d7[_0x14655a(0x277)]<=0xa){this['_hidePreview'](_0x4758d7[_0x14655a(0x2e4)]);return;}if(_0x4758d7[_0x14655a(0x394)]===_0x28cb8d[_0x14655a(0x37e)]){this[_0x14655a(0x339)](_0x4758d7['unitId']);return;}if(_0x4758d7[_0x14655a(0x394)]===_0x28cb8d[_0x14655a(0x3e1)]&&_0x4758d7[_0x14655a(0x34f)]&&_0x4758d7[_0x14655a(0x2d0)]){let _0x4304c0=this[_0x14655a(0x3ff)]();if(!_0x4304c0)return;this[_0x14655a(0x3f7)]&&this[_0x14655a(0x3f7)]!==_0x4758d7['unitId']&&this[_0x14655a(0x314)](this['_previewUnitId']),_0x4304c0[_0x14655a(0x32f)](_0x4758d7[_0x14655a(0x34f)],_0x4758d7[_0x14655a(0x2d0)]),this[_0x14655a(0x3f7)]=_0x4758d7[_0x14655a(0x2e4)],this[_0x14655a(0x238)](!0x0),_0x4758d7['previewReady']&&_0x4304c0[_0x14655a(0x20a)](_0x4758d7['workbookShell'],_0x4758d7[_0x14655a(0x2d0)],_0x4758d7[_0x14655a(0x3b0)]);}}['_handoffPreview'](_0x468398){const _0x1d1d77=_0x3bc3ed;if(this[_0x1d1d77(0x3f7)]!==_0x468398||this[_0x1d1d77(0x423)]['has'](_0x468398))return;let _0x2f9491=this[_0x1d1d77(0x318)];_0x2f9491&&(this['_handoffUnitIds'][_0x1d1d77(0x31d)](_0x468398),_0x2f9491[_0x1d1d77(0x44d)](_0x468398,0x2710)[_0x1d1d77(0x1ce)](_0x152f00=>{const _0x14412b=_0x1d1d77;if(this[_0x14412b(0x3f7)]!==_0x468398)return;if(_0x152f00){let _0x58bbfe=''+or+_0x468398;this['_messageService'][_0x14412b(0x317)](_0x58bbfe),this[_0x14412b(0x219)]['delete'](_0x58bbfe),this['_previewUnitId']=void 0x0,this[_0x14412b(0x238)](!0x1);return;}let _0x56f1fc=''+or+_0x468398;this[_0x14412b(0x43a)]['remove'](_0x56f1fc),this['_messageIds'][_0x14412b(0x3aa)](_0x56f1fc),this['_timeoutState$']['next']({'unitId':_0x468398,'content':this['_localeService']['t'](_0x14412b(0x1e0)),'refreshLabel':this[_0x14412b(0x43f)]['t'](_0x14412b(0x38d))});}));}['_hidePreview'](_0x27cd8f){const _0x108042=_0x3bc3ed;var _0x2c44c9;this[_0x108042(0x3f7)]===_0x27cd8f&&((_0x2c44c9=this[_0x108042(0x318)])==null||_0x2c44c9[_0x108042(0x3a9)](_0x27cd8f),this[_0x108042(0x3f7)]=void 0x0,this[_0x108042(0x238)](!0x1));}['_setInteractionBlocked'](_0x485c5b){const _0x26121c=_0x3bc3ed;if(_0x485c5b!==this[_0x26121c(0x1c8)][_0x26121c(0x268)]){if(_0x485c5b)this[_0x26121c(0x3e0)]=this['_shortcutService'][_0x26121c(0x399)]();else{var _0x3d417a;(_0x3d417a=this[_0x26121c(0x3e0)])==null||_0x3d417a['dispose'](),this[_0x26121c(0x3e0)]=void 0x0;}this[_0x26121c(0x1c8)][_0x26121c(0x36a)](_0x485c5b);}}[_0x3bc3ed(0x3ac)](_0x53f3fd){const _0x3f14b9=_0x3bc3ed;let _0x18ca95=this[_0x3f14b9(0x32c)][_0x3f14b9(0x1f5)](_0x3f14b9(0x207));return!_0x18ca95||_0x18ca95===_0x53f3fd;}[_0x3bc3ed(0x3ff)](){const _0x1adb04=_0x3bc3ed;return this[_0x1adb04(0x318)]?this[_0x1adb04(0x318)]:(this[_0x1adb04(0x372)][_0x1adb04(0x3b3)](_0x410a65[_0x1adb04(0x3a0)]),this[_0x1adb04(0x33f)][_0x1adb04(0x1e8)](_0x233bcb)&&(this['_sheetLoadingRenderService']=this[_0x1adb04(0x33f)]['get'](_0x233bcb)),this[_0x1adb04(0x318)]);}};sr=Y([J(0x0,_0x4d1fed(_0x114337)),J(0x1,_0x454719),J(0x2,_0x4d1fed(_0x2d2bf4)),J(0x3,_0x4d1fed(_0x57f253)),J(0x4,_0x4d1fed(_0x25f263)),J(0x5,_0x175ddd),J(0x6,_0x184422),J(0x7,Zn)],sr);function cr(_0x54a82f){const _0x286f59=_0x3bc3ed;var _0x4cdb86,_0x4f10a1;let _0x5cd15c=(_0x4cdb86=_0x54a82f[_0x286f59(0x1df)])==null?void 0x0:_0x4cdb86[_0x286f59(0x394)],_0xe4be92=((_0x4f10a1=_0x54a82f[_0x286f59(0x1df)])==null?void 0x0:_0x4f10a1[_0x286f59(0x405)])||0x0;return _0x5cd15c===_0x144f31['START_CALCULATION']&&_0xe4be92>0x0;}function lr(_0x2281be){const _0x5daa91=_0x3bc3ed;return _0x2281be[_0x5daa91(0x33c)]===_0x1e8a08[_0x5daa91(0x2bd)];}let ur=class extends _0x1b14aa{constructor(_0x523af4,_0x4ba366,_0x7cdf25,_0x47d378,_0x1f4cc7,_0x4b3150,_0x392443){const _0x550366=_0x3bc3ed;super(),this[_0x550366(0x43a)]=_0x523af4,this[_0x550366(0x20e)]=_0x4ba366,this[_0x550366(0x376)]=_0x7cdf25,this['_httpService']=_0x47d378,this['_univerInstanceService']=_0x1f4cc7,this['_logService']=_0x4b3150,this[_0x550366(0x43f)]=_0x392443,q(this,_0x550366(0x3e7),null),q(this,'_maxFormulaLimit',0x0),q(this,_0x550366(0x1d1),0x0),q(this,_0x550366(0x38b),[]),q(this,_0x550366(0x383),0x0),this['_initCommandInterceptor']();}[_0x3bc3ed(0x25b)](){const _0x5aad4c=_0x3bc3ed;this[_0x5aad4c(0x239)](this['_commandService'][_0x5aad4c(0x375)]((_0x431372,_0x5101f6)=>{const _0x313019=_0x5aad4c;if(_0x431372['id']!==_0x150725['id'])return;let _0x54a50a=_0x431372[_0x313019(0x278)];if(this[_0x313019(0x33a)](_0x54a50a[_0x313019(0x3d3)]??[])&&!this[_0x313019(0x401)]())throw this[_0x313019(0x2af)](_0x431372,_0x5101f6),this['_showGuardMessage'](),new _0x4e0243();})),this[_0x5aad4c(0x239)](this[_0x5aad4c(0x20e)][_0x5aad4c(0x222)]((_0x15544b,_0x695b81)=>{const _0xa0d39a=_0x5aad4c;if(_0x15544b['id']!==_0x85d638['id'])return;let _0x2ac2c0=_0x15544b[_0xa0d39a(0x278)];if(cr(_0x2ac2c0)){let _0xa2d33e=_0x1294de();this['_taskIds'][_0xa0d39a(0x368)](_0xa2d33e),this[_0xa0d39a(0x1ea)](_0xa2d33e);}else{if(lr(_0x2ac2c0)&&this['_taskIds'][_0xa0d39a(0x1f0)]>0x0){let _0x590e29=this[_0xa0d39a(0x38b)][_0xa0d39a(0x38a)]();this[_0xa0d39a(0x224)](_0x590e29);}}}));}[_0x3bc3ed(0x44f)](){const _0x21062c=_0x3bc3ed;super[_0x21062c(0x44f)](),this[_0x21062c(0x3be)](),this[_0x21062c(0x38b)]=[],this[_0x21062c(0x1d1)]=0x0,this[_0x21062c(0x1cc)]=0x0,this[_0x21062c(0x383)]=0x0;}async[_0x3bc3ed(0x2af)](_0x3cf023,_0x4ed464){const _0x239952=_0x3bc3ed;for(let _0x2c8755=0x0;_0x2c8755<0x1e;_0x2c8755++)try{if(await this[_0x239952(0x21b)](),this[_0x239952(0x401)]()){this[_0x239952(0x1fe)](_0x3cf023,_0x4ed464),this[_0x239952(0x43a)][_0x239952(0x20a)]({'content':this[_0x239952(0x43f)]['t']('collaboration-client-ui.formula.calculation.started'),'type':_0x4703d3['Success']});return;}await new Promise(_0x4c2c98=>{const _0x12683c=_0x239952;this[_0x12683c(0x3e7)]=window[_0x12683c(0x269)](_0x4c2c98,0x3e8);});}catch(_0x2fa360){this['_logService'][_0x239952(0x3d0)](_0x2fa360);}this[_0x239952(0x43a)][_0x239952(0x20a)]({'content':this[_0x239952(0x43f)]['t'](_0x239952(0x2d7)),'type':_0x4703d3[_0x239952(0x309)]});}['_applyCommand'](_0x5c78d4,_0x24592f){const _0x376a93=_0x3bc3ed;try{this[_0x376a93(0x20e)][_0x376a93(0x29e)](_0x5c78d4['id'],_0x5c78d4['params'],_0x24592f);}catch(_0x26311e){this[_0x376a93(0x21c)][_0x376a93(0x3d0)](_0x26311e);}}[_0x3bc3ed(0x1c6)](_0x189f8a,_0x108a6c){const _0x4ffc9c=_0x3bc3ed;_0x108a6c<this[_0x4ffc9c(0x383)]||(this[_0x4ffc9c(0x383)]=_0x108a6c,this[_0x4ffc9c(0x1cc)]=Number['parseInt'](_0x189f8a[_0x4ffc9c(0x205)]),this[_0x4ffc9c(0x1d1)]=Number[_0x4ffc9c(0x420)](_0x189f8a[_0x4ffc9c(0x42f)]));}async[_0x3bc3ed(0x1ea)](_0x4d3316){const _0xf349b=_0x3bc3ed;let _0xed3c19=Date[_0xf349b(0x2a5)]();try{var _0x551a25,_0x2d7a2a;let _0x73930c=((_0x551a25=this[_0xf349b(0x376)][_0xf349b(0x363)](_0x3d763c))==null?void 0x0:_0x551a25[_0xf349b(0x24c)])||_0xf349b(0x27b),_0x544cfc=(await this[_0xf349b(0x217)][_0xf349b(0x287)](_0x73930c,{'body':JSON['stringify']({'taskId':_0x4d3316})}))[_0xf349b(0x1cf)];if(((_0x2d7a2a=_0x544cfc['error'])==null?void 0x0:_0x2d7a2a['code'])!==_0x4f2945['OK'])return;this['_setFormulaLimitStatus'](_0x544cfc[_0xf349b(0x42b)],_0xed3c19);}catch(_0x1d7faf){this[_0xf349b(0x21c)][_0xf349b(0x3d0)](_0x1d7faf);}}async[_0x3bc3ed(0x21b)](_0x1fd273){const _0x5a1455=_0x3bc3ed;let _0x3b03ff=Date[_0x5a1455(0x2a5)]();try{var _0x270e62,_0x5c0e7e;let _0x392ba3=((_0x270e62=this[_0x5a1455(0x376)]['getConfig'](_0x3d763c))==null?void 0x0:_0x270e62[_0x5a1455(0x265)])||_0x5a1455(0x385),_0x58dbc8=_0x1fd273?_0x392ba3+_0x5a1455(0x408)+encodeURIComponent(_0x1fd273):_0x392ba3,_0x409aa0=(await this[_0x5a1455(0x217)]['get'](_0x58dbc8))['body'];if(((_0x5c0e7e=_0x409aa0[_0x5a1455(0x3d0)])==null?void 0x0:_0x5c0e7e['code'])!==_0x4f2945['OK'])return;this[_0x5a1455(0x1c6)](_0x409aa0[_0x5a1455(0x42b)],_0x3b03ff);}catch(_0x4d86b7){this[_0x5a1455(0x21c)][_0x5a1455(0x3d0)](_0x4d86b7);}}async[_0x3bc3ed(0x224)](_0xf8d101){const _0x2bc968=_0x3bc3ed;let _0xd4d382=Date[_0x2bc968(0x2a5)]();try{var _0x5daea5,_0xca0e35;let _0x30c330=((_0x5daea5=this['_configService'][_0x2bc968(0x363)](_0x3d763c))==null?void 0x0:_0x5daea5[_0x2bc968(0x349)])||_0x2bc968(0x2a6),_0x2fe715=(await this['_httpService'][_0x2bc968(0x287)](_0x30c330,{'body':JSON[_0x2bc968(0x1f6)]({'taskId':_0xf8d101})}))[_0x2bc968(0x1cf)];if(((_0xca0e35=_0x2fe715[_0x2bc968(0x3d0)])==null?void 0x0:_0xca0e35[_0x2bc968(0x200)])!==_0x4f2945['OK'])return;this[_0x2bc968(0x1c6)](_0x2fe715[_0x2bc968(0x42b)],_0xd4d382);}catch(_0x73a886){this[_0x2bc968(0x21c)][_0x2bc968(0x3d0)](_0x73a886);}}[_0x3bc3ed(0x401)](){const _0x300650=_0x3bc3ed;return this[_0x300650(0x1cc)]===0x0||this[_0x300650(0x1cc)]-this[_0x300650(0x1d1)]>0x0;}[_0x3bc3ed(0x3be)](){const _0x49ebc1=_0x3bc3ed;this[_0x49ebc1(0x3e7)]&&=(clearTimeout(this['_pollingInterval']),null);}['_showGuardMessage'](){const _0x1c1b6e=_0x3bc3ed;this[_0x1c1b6e(0x43a)]['show']({'content':this['_localeService']['t'](_0x1c1b6e(0x3e5)),'type':_0x4703d3['Loading']});}[_0x3bc3ed(0x33a)](_0x271ea0){const _0x546e02=_0x3bc3ed;for(let _0x31f3d5 of _0x271ea0){let {unitId:_0x29fdc2,sheetId:_0x161a42,range:_0x414483}=_0x31f3d5,_0x32cb8f=this['_univerInstanceService'][_0x546e02(0x32b)](_0x29fdc2,_0x410a65[_0x546e02(0x3a0)]);if(!_0x32cb8f)continue;let _0x234ab3=_0x32cb8f[_0x546e02(0x1dd)](_0x161a42);if(!_0x234ab3)continue;let _0x3d38d9=_0x234ab3[_0x546e02(0x428)]();for(let _0x200292=_0x414483[_0x546e02(0x22d)];_0x200292<=_0x414483[_0x546e02(0x380)];_0x200292++)for(let _0x14f8fd=_0x414483['startColumn'];_0x14f8fd<=_0x414483[_0x546e02(0x34d)];_0x14f8fd++){let _0x5d8c67=_0x3d38d9[_0x546e02(0x303)](_0x200292,_0x14f8fd);if(_0x5d8c67&&(_0x158c7b(_0x5d8c67['f'])||_0x26cc3f(_0x5d8c67['si'])))return!0x0;}}return!0x1;}};ur=Y([J(0x0,_0x4d1fed(_0x454719)),J(0x1,_0x581e85),J(0x2,_0x3f2cb5),J(0x3,_0x4d1fed(_0x1365bf)),J(0x4,_0x449dc1),J(0x5,_0x483e73),J(0x6,_0x4d1fed(_0x2d2bf4))],ur);let dr=class extends _0x1b14aa{constructor(_0x50e506,_0x2bcb83,_0x7a7498){const _0x62d4b=_0x3bc3ed;super(),this[_0x62d4b(0x376)]=_0x50e506,this[_0x62d4b(0x286)]=_0x2bcb83,this[_0x62d4b(0x29d)]=_0x7a7498,q(this,'_cachedData',new Map()),q(this,_0x62d4b(0x26a),new Map()),q(this,_0x62d4b(0x369),!0x1);}[_0x3bc3ed(0x3de)](){const _0x55d592=_0x3bc3ed;this[_0x55d592(0x369)]=!0x0;}[_0x3bc3ed(0x367)](){this['_disabled']=!0x1;}get[_0x3bc3ed(0x206)](){return this['_saveTaskMap'];}[_0x3bc3ed(0x44f)](){const _0x20211a=_0x3bc3ed;this[_0x20211a(0x37a)]()['then'](()=>super[_0x20211a(0x44f)]());}async['loadOfflineData'](_0x17d259){const _0x48b5e0=_0x3bc3ed;return this[_0x48b5e0(0x369)]?null:this[_0x48b5e0(0x286)]['getItem'](_0x419d06(_0x17d259));}async['saveOfflineData'](_0x5a7abe,_0x32036b){const _0x24e200=_0x3bc3ed;return!!this[_0x24e200(0x286)][_0x24e200(0x3bf)](_0x419d06(_0x5a7abe),_0x32036b);}async[_0x3bc3ed(0x334)](_0x2ad4e3,_0x256d4a){const _0x39f6af=_0x3bc3ed;let _0x54fe65=this['_cachedData']['get'](_0x2ad4e3)??await this[_0x39f6af(0x286)][_0x39f6af(0x345)](_0x419d06(_0x2ad4e3));if(!_0x54fe65)return;let _0x157b4b=Date[_0x39f6af(0x2a5)](),_0x465261=new Date(_0x157b4b)[_0x39f6af(0x42c)]();await this[_0x39f6af(0x286)][_0x39f6af(0x3bf)](_0x419d06(_0x2ad4e3)+_0x39f6af(0x419)+_0x157b4b,{'reason':_0x256d4a,'createdAt':_0x465261,'data':_0x54fe65});}[_0x3bc3ed(0x40f)](_0x1678cc,_0x3b0adf,_0x433f7f,_0x1b5968){const _0x4976f7=_0x3bc3ed;let _0x4ccb9c=this['_revisionService'][_0x4976f7(0x2c7)](_0x1678cc);this[_0x4976f7(0x1c3)][_0x4976f7(0x34c)](_0x1678cc,{'unitID':_0x1678cc,'type':_0x3b0adf,'awaitingChangeset':_0x433f7f,'mutations':_0x1b5968,'rev':_0x4ccb9c}),this[_0x4976f7(0x26a)][_0x4976f7(0x1e8)](_0x1678cc)||this[_0x4976f7(0x26e)](_0x1678cc);}[_0x3bc3ed(0x26e)](_0x546d98){const _0x4123d3=_0x3bc3ed;let _0x32324b=this[_0x4123d3(0x1d7)]();_0x32324b===0x0?this[_0x4123d3(0x3c9)](_0x546d98):this[_0x4123d3(0x26a)][_0x4123d3(0x34c)](_0x546d98,window[_0x4123d3(0x269)](()=>this[_0x4123d3(0x3c9)](_0x546d98),_0x32324b));}[_0x3bc3ed(0x1d7)](){const _0x32b84d=_0x3bc3ed;return this[_0x32b84d(0x376)][_0x32b84d(0x363)](_0x4fb8cb)??_0x44bde3;}[_0x3bc3ed(0x3c9)](_0x481edb){const _0x5cea94=_0x3bc3ed;let _0x45050b=this['_saveTaskMap']['get'](_0x481edb);return _0x45050b!==void 0x0&&window[_0x5cea94(0x21d)](_0x45050b),this[_0x5cea94(0x286)][_0x5cea94(0x3bf)](_0x419d06(_0x481edb),this[_0x5cea94(0x1c3)][_0x5cea94(0x240)](_0x481edb))[_0x5cea94(0x1ce)](()=>this[_0x5cea94(0x26a)]['delete'](_0x481edb));}async[_0x3bc3ed(0x37a)](){const _0x48b669=_0x3bc3ed;let _0x2cad35=[];this['_saveTaskMap']['forEach']((_0x4540c9,_0x17ef2a)=>{const _0x3203a8=_0xb747;window[_0x3203a8(0x21d)](_0x4540c9),_0x2cad35[_0x3203a8(0x368)](this['_saveCache'](_0x17ef2a)[_0x3203a8(0x1ce)](()=>{const _0x1b6be1=_0x3203a8;this[_0x1b6be1(0x26a)]['delete'](_0x17ef2a);}));}),await Promise[_0x48b669(0x281)](_0x2cad35);}};dr=Y([J(0x0,_0x3f2cb5),J(0x1,_0x1352c2),J(0x2,_0x4d1fed(_0x731ae8))],dr);var fr=class extends _0x2c69b2{constructor(){const _0x2e021a=_0x3bc3ed;super(),q(this,_0x2e021a(0x209),void 0x0),this['urlChange$']=_0x237140(window,_0x2e021a(0x40d))[_0x2e021a(0x320)](_0x18a3e8(this[_0x2e021a(0x263)]),_0x1b1f07({'bufferSize':0x1,'refCount':!0x0}),_0x382d75(void 0x0));}[_0x3bc3ed(0x256)](_0x117efd,_0x1c3cb4,_0x2d9537=!0x1){const _0x4fb5cd=_0x3bc3ed;let _0x416705=new URL(window[_0x4fb5cd(0x33e)][_0x4fb5cd(0x328)]);_0x416705[_0x4fb5cd(0x28e)][_0x4fb5cd(0x34c)](_0x117efd,_0x1c3cb4),_0x2d9537?window[_0x4fb5cd(0x335)][_0x4fb5cd(0x25f)]('','',_0x416705[_0x4fb5cd(0x1ef)]()):window[_0x4fb5cd(0x335)]['pushState']('','',_0x416705['toString']());}['removeParam'](_0x4acb2d,_0x583b0d=!0x1){const _0x275b4b=_0x3bc3ed;let _0x38f68d=new URL(window['location'][_0x275b4b(0x328)]);_0x38f68d[_0x275b4b(0x28e)][_0x275b4b(0x3aa)](_0x4acb2d),_0x583b0d?window[_0x275b4b(0x335)][_0x275b4b(0x25f)]('','',_0x38f68d['toString']()):window['history'][_0x275b4b(0x2ee)]('','',_0x38f68d[_0x275b4b(0x1ef)]());}[_0x3bc3ed(0x1f5)](_0x1fec10){const _0x344e31=_0x3bc3ed;return new URL(window[_0x344e31(0x33e)]['href'])[_0x344e31(0x28e)][_0x344e31(0x240)](_0x1fec10)??void 0x0;}};let $=class extends _0x5172e1{constructor(_0x51da59=wn,_0x62ffa3,_0x380e41,_0x155ea2){const _0x255380=_0x3bc3ed;super(),this[_0x255380(0x441)]=_0x51da59,this[_0x255380(0x3f3)]=_0x62ffa3,this[_0x255380(0x33f)]=_0x380e41,this[_0x255380(0x376)]=_0x155ea2;let {..._0x27d869}=_0x437a63({},wn,this[_0x255380(0x441)]);this[_0x255380(0x376)][_0x255380(0x2b2)](_0x255380(0x3d8),_0x27d869);}[_0x3bc3ed(0x35f)](){const _0x5b26ee=_0x3bc3ed;this[_0x5b26ee(0x1eb)](),this[_0x5b26ee(0x1f9)]();}['onRendered'](){const _0x39fd26=_0x3bc3ed;this[_0x39fd26(0x1fd)]();}['_registerDependencies'](){const _0x21cd31=_0x3bc3ed;var _0x104552;let _0x339904=[[Z],[ur],[Zn,{'useClass':fr}],[_0x13621c,{'useClass':_0x2a48b1}],[_0x571f9b,{'useClass':dr}],[X],[vn],[Xn],[Q],[Qn],[sr]];this['_config']['enableDocumentCollaborationUI']!==!0x1&&_0x339904[_0x21cd31(0x368)]([tr],[$n],[er],[In],[nr],[Tn]),this[_0x21cd31(0x441)][_0x21cd31(0x2d5)]&&_0x339904[_0x21cd31(0x368)]([rr]),_0x50dcc9(this[_0x21cd31(0x33f)],_0x437474(_0x339904,(_0x104552=this[_0x21cd31(0x441)])==null?void 0x0:_0x104552[_0x21cd31(0x44a)]));}['_registerRenderDependencies'](){const _0x37f781=_0x3bc3ed;this[_0x37f781(0x441)][_0x37f781(0x2e8)]!==!0x1&&this['disposeWithMe'](this[_0x37f781(0x3f3)]['registerRenderModule'](_0x410a65[_0x37f781(0x1d8)],[Gn])),this[_0x37f781(0x239)](this['_renderManagerService'][_0x37f781(0x32d)](_0x410a65[_0x37f781(0x3a0)],[qn])),this['disposeWithMe'](this[_0x37f781(0x3f3)]['registerRenderModule'](_0x410a65[_0x37f781(0x3f5)],[Yn])),this[_0x37f781(0x239)](this[_0x37f781(0x3f3)][_0x37f781(0x32d)](_0x410a65['UNIVER_BOARD'],[Hn]));}[_0x3bc3ed(0x1f9)](){const _0x53bf28=_0x3bc3ed;_0x2e8102(this[_0x53bf28(0x33f)],[[Q],[X],[vn],[Xn],[Qn],[ur],[sr]]),this[_0x53bf28(0x441)][_0x53bf28(0x2e8)]!==!0x1&&_0x2e8102(this[_0x53bf28(0x33f)],[[nr],[Tn]]),this['_config']['enableFrontendLog']&&_0x2e8102(this[_0x53bf28(0x33f)],[[rr]]);}};q($,'pluginName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),q($,_0x3bc3ed(0x3ca),Sn),q($,'version',Cn),$=Y([_0x1e8dea(_0x2566dd,_0x282738,_0x295a3d,_0x544056,_0x285ff7,_0x8f0a5a,_0x38b492),J(0x1,_0x4b25cc),J(0x2,_0x4d1fed(_0x57f253)),J(0x3,_0x3f2cb5)],$);let pr=class extends _0x58047a{constructor(_0x3a5880,_0x13c053,_0x1d7420,_0x3cade5,_0x3da178){super(_0x3a5880,_0x13c053,_0x1d7420,_0x3cade5,_0x3da178);}async[_0x3bc3ed(0x23e)](_0x535c5c){const _0x7330ce=_0x3bc3ed;let _0x49d285=await this['_getSessionTicket'](),_0x13584d=this[_0x7330ce(0x3da)](_0x535c5c,_0x49d285);return this[_0x7330ce(0x2c5)](_0x13584d);}['_createSocketURL'](_0x1fc5d1,_0x10975f){const _0x4ade1c=_0x3bc3ed;let _0x5ad0c4=typeof window>'u'?new URL(_0x1fc5d1):new URL(_0x1fc5d1,window[_0x4ade1c(0x33e)][_0x4ade1c(0x365)]);_0x5ad0c4['searchParams'][_0x4ade1c(0x34c)](_0x4ade1c(0x248),_0x10975f);let _0x5807de=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x4ade1c(0x2d2)]);return _0x5807de[_0x4ade1c(0x240)]('runId')&&_0x5ad0c4[_0x4ade1c(0x28e)][_0x4ade1c(0x34c)]('runId',_0x5807de[_0x4ade1c(0x240)](_0x4ade1c(0x3c3))),_0x5ad0c4[_0x4ade1c(0x1ef)]();}async[_0x3bc3ed(0x343)](){const _0x34942d=_0x3bc3ed;var _0x1d7742;let _0x184873=this[_0x34942d(0x376)][_0x34942d(0x363)](_0x3d763c),_0x9d8095=(_0x184873==null?void 0x0:_0x184873[_0x34942d(0x296)])??_0x2d3b4c;return((_0x1d7742=(await this['_httpService'][_0x34942d(0x240)](_0x9d8095,{'headers':{'Content-Type':_0x34942d(0x2b7)}}))[_0x34942d(0x1cf)])==null?void 0x0:_0x1d7742['ticket'])??'';}};pr=Y([J(0x0,_0x4d1fed(_0x57f253)),J(0x1,_0x4d1fed(_0x1365bf)),J(0x2,_0x3f2cb5),J(0x3,_0x483e73),J(0x4,_0x58c39f)],pr);let mr=class extends _0x1b14aa{constructor(_0x515ffa,_0x3d7550,_0x527644){const _0x497899=_0x3bc3ed;super(),this[_0x497899(0x371)]=_0x515ffa,this[_0x497899(0x217)]=_0x3d7550,this[_0x497899(0x376)]=_0x527644;}async[_0x3bc3ed(0x31e)](_0x865b81,_0xeb52c8,_0x4cc1bc,..._0x2b96b7){const _0x976f40=_0x3bc3ed;let _0x4ce593=this['_instanceService']['getFocusedUnit']();if(!_0x4ce593)throw Error(_0x976f40(0x30d));let _0x19bf31=(this[_0x976f40(0x376)]['getConfig'](_0xc1e12a)??_0x210c45)+'/'+_0x865b81+_0x976f40(0x2c3)+_0xeb52c8,_0x575845={'scriptId':_0x865b81,'runId':new URL(window[_0x976f40(0x33e)]['href'])[_0x976f40(0x28e)][_0x976f40(0x240)](_0x976f40(0x3c3))??'','function':_0xeb52c8,'unitId':_0x4ce593[_0x976f40(0x275)](),'argsOfFunction':JSON['stringify'](_0x2b96b7),'invokeId':_0x4cc1bc[_0x976f40(0x390)]??'','executionId':_0x4cc1bc[_0x976f40(0x2f9)]??''};try{let _0x2c8672=await this[_0x976f40(0x217)][_0x976f40(0x287)](_0x19bf31,{'body':_0x575845});return _0x2c8672[_0x976f40(0x1cf)]['error']&&_0x2c8672[_0x976f40(0x1cf)]['error']['code']!==_0x4f2945['OK']?_0x976f40(0x2e2):_0x2c8672[_0x976f40(0x1cf)]['result'];}catch{return _0x976f40(0x2e2);}}};function _0x29fa(){const _0x5989f2=['searchParams','_getScale','_roomMembers$','_themeService','onPointerEnter$','_assignedColors','onPointerMove$','status','wsSessionTicketUrl','FromArray','isArray','_docSkeletonManagerService','_scheduleClearOtherTimer','_collaborationController','_cursorShapes','_revisionService','executeCommand','addObject','refreshLabel','getRenderUnitById','_initCommandExecutedListener','defineProperty','unhandledrejection','now','/universer-api/license/formula/limit/done','#4f46e5','_cursor','transformByState','min','univer-text-red-500','_pointerMoveDisposable','NO_OTHER_CLIENTS_EDITING','asObservable','_checkAndWaitForCalculationPermission','_imageIoService','_anchorDot','setConfig','color','requireSession','#FFF','univer-flex\x20univer-items-center\x20univer-justify-center','application/json','removeObjects','23888tijZKc','_updateSubUnitFromURLParams','_setupBeforeClosingHandler','_online','SUCCESS','_backgroundColor','eventID','_docClipboardService','alert','setAlpha','/run/','spin','_doCreateSocket','_sheetSkeletonManagerService','getCurrentRevOfUnit','symbol','_timeoutState$','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_onCursorDelete','unitID','_updateMessage','setInterval','_slideDrawingStateService','activeSheetId','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','search','collaboration-client-ui.session.will-retry','roomMembers$','enableFrontendLog','univer-h-8\x20univer-w-8\x20univer-rounded-lg','collaboration-client-ui.formula.calculation.unable','_send','sessionStatus$','unload','socket$','_unitOnClients','subUnitId','_heartbeatTimer','_highlight','cursorInfo','_handleHover','Failed','collaboration-client-ui.conflict.title','unitId','parse','NOT_COLLAB','DeleteRangeMoveLeftCommandId','enableDocumentCollaborationUI','string','CONFLICT','collabCursorState$','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','row','pushState','_docTransformIMECacheService','triggerDblclick','_blinkIntervalTimer','_isApplyingOverlays','InsertRowCommandId','map','_setupSubUnitSync','_drawTextRange','tooltipKey','_getObjectBounds','executionId','getActivePageId','_color','width','font','FETCH_MISS','with','getCellIndexByOffset','cursorInfo$','_clearTimeoutState','getValue','getActiveSheet','top','/universer-api/frontend/logs','_shapes','setOffsetY','Error','_handleJoinEvent','getObject','MoveRangeCommandId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','currentTheme$','sheetId','collaboration-client-ui.permission.content','_initEvent','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_hidePreview','_handleHeartbeatEvent','event$','remove','_sheetLoadingRenderService','Loading','pageManager','send','message','add','runOnServer','split','pipe','left','getCoordRelativeToViewport','redoState','ONLINE','getAllUnitsForType','_latestCursors','range','href','find','getScrollXYInfoByViewport','getUnit','_urlService','registerRenderModule','bold\x2013px\x20Arial,\x20sans-serif','showSkeleton','_handleEvent','PENDING','getUndoRedoMutationParamsCache','board-collab-cursor-','backupOfflineData','history','size','VIEW_MAIN','hovered','_handoffPreview','_hasFormulaInDirtyRanges','_updateURLWithCurrentState','functionsExecutedState','[LogService\x20Error]:\x20','location','_injector','getActiveSlide','_getSceneObjectByKey','newValue','_getSessionTicket','transformMutation','getItem','_handleLeaveEvent','_eventUnsubscribe','forEach','releaseFormulaLimitUrl','isActive','_renderScheduled','set','endColumn','lineTo','workbookShell','AWAITING_WITH_PENDING','transformSelections','snapshot-loading-timeout','moveTo','getTypeOfUnitDisposed$','univer-m-0\x20univer-p-0','disposeUnit','resize','_hovered','timeoutState$','highlightSecond','indicator','transform','key','assignAColorForMemberID','onStarting','_refreshCollabCursors','_getMergeRange','univer-text-orange-500','getConfig','object','origin','activeSlideId$','enableLocalCache','push','_disabled','next','registerComponent','engine','getMemberID','_scene','small','selectedIds','_instanceService','_pluginService','unsubscribe','_latestStates','beforeCommandExecuted','_configService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_removeCollabCursors','currentSkeleton$','exhaustSavingTask','_clearOtherTimers','1929970trhjjS','_collabCursorController','COMPLETE','_getAnchorBounding','endRow','flatMap','_transformPreviousActiveRange','_lastResponseTimestamp','collab-text-range-','/universer-api/license/formula/limit/status','context','offsetY','_session','lineWidth','shift','_taskIds','startColumn','collaboration-client-ui.snapshotLoading.refresh','timeoutId','focused$','invokeId','collaboration-client-ui.collabStatus.notCollab','primary','_startSlideCollabCursor','stage','strokeRect','ACTIVE_UNIT_EVENT_CHANNEL','getCurrentTypeOfUnit$','button','forceDisable','_drawRectRange','snapshot-loading-interaction-guard','showText','getSkeleton','includes','[CollaborationDataLoaderController]','UNIVER_SHEET','collaboration-client-ui.collabStatus.fetchMiss','InsertColCommandId','textRanges','univer-appearance-none','_init','_univerInstanceService','_showText','_docSyncEditingCollabCursorService','hide','delete','_collabSessionService','_isVisibleUnit','strokeWidth','syncEditingCollabCursor','getAncestorScale','previewCellData','labelHorizontalPosition','OTHER_CLIENTS_EDITING','startPluginsForType','993132EMpZju','5wbWkuH','yellow.400','editingUnit','_render','green.600','_draw','getCurrentUnitOfType','static','addHandlerCallback','_clearPolling','setItem','removeEventListener','_status$','setActiveRange','runId','_selfUnitIDs','_drawAnchor','getTypeOfUnitAdded$','clear','_memberID','_saveCache','packageName','angle','ERROR','lineno','RECT','GLOBAL','error','_collaborationUIEventService','_blinkTimer','dirtyRanges','getOwnPropertyDescriptor','_toggleOnline','_colorIndex','replaceDocRanges','collaboration-client-ui.config','kind','_createSocketURL','_scheduleHeartbeat','addEventListener','removeObject','disableLocalCache','toRgbString','_shortcutBlock','LOADING_BLOCKS','univer-transition-all\x20univer-duration-200','collab-text-anchor-','_entities','collaboration-client-ui.formula.calculation.waiting','613835nmkMnf','_pollingInterval','some','beginPath','i18nKey','measureText','JOIN_ROOM_FAILED','1862604NgDTHv','...','undoState','arc','loadUnit','_initUnhandledRejectionListener','_renderManagerService','source','UNIVER_SLIDE','collaboration-client-ui.collabStatus.syncing','_previewUnitId','addObjects','UNIVER_BOARD','addClipboardHook','timedOut','univer-text-blue-500','getObjectIncludeInGroup','_getSheetObject','_getSheetLoadingRenderService','restore','_checkCalculationAvailable','addObject$','getId','_colorAssignService','totalFormulasToCalculate','_id','ranges','?taskId=','_removeClearOtherTimer','span','_labelHorizontalPosition','_clearBlockProgressWatch','popstate','getCollabEntity$','updateOfflineData','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_onCursorUpdate','_uploadLog','collaboration-client-ui.collaboration.single-unit.warning','_docStateChangeManagerService','UPDATE_CURSOR','entityInit$','@univerjs-pro/collaboration-client-ui','_entityInit$',':backup:','icon','_docTransformSelectionsService','_refRangeService','setStateCache','findNodePositionByCharIndex','_shortcutService','parseInt','deepClone','status$','_handoffUnitIds','_uiPartsService','[Window\x20Error]:\x20','rgba','fillStyle','getCellMatrix','complete','_collaborationSessionService','limitInfo','toISOString','PERMISSION_DENIED','closePath','currentUsage','theme$','collaboration-client-ui.collabClient.tooltip.reconnect','_lastPointer','clearInterval','_getLighterColor','init','collaboration-client-ui.collaboration.closeRoom','_labelPosition','replace','univer-text-green-500','_messageService','collaboration-client-ui.collabStatus.offline','_range','collaboration-client-ui.snapshotLoading.loadingSheet','reason','_localeService','bind','_config','_transformService','dark:focus:!univer-ring-offset-gray-800','stack','\x20-\x20','collaboration-client-ui.collaboration.offline-data-not-saved','_textBubble','focusedId','toPrimitive','override','SYNCED','LOADING_SNAPSHOT','handoff','_localCacheService','dispose','univer-text-gray-400','_cachedData','_initWindowErrorListener','_hover','_setFormulaLimitStatus','_cursors','_interactionBlocked$','call','_startBlinking','type','_maxFormulaLimit','purple.300','then','body','_context','_currentUsage','_ensureSubject','getStateCache','HEADER_MENU','fillText','_memberService','_getSaveTimeout','UNIVER_DOC','_highlightSecond','startsWith','decorate','unshift','getSheetBySheetId','slice','stageInfo','collaboration-client-ui.session.connection-failed','mutations','getRealBound','getMergeData','from','_initResize','0.2)','_notificationService','has','selections','_startCalculationLimit','_registerDependencies','_isBlinkVisible','height','board-element-selection','toString','length','_scheduleRender','subscribe','save','createInstance','getParam','stringify','_syncEditingCollabCursorService','1915320DugHPb','_initDependencies','collaboration-client-ui.conflict.content','USERS_LEAVE','true','_registerRenderDependencies','_applyCommand','collaboration-client-ui.collabStatus.synced','code','getRangePointData','_hideTimer','_initUserListener','getUnhiddenWorksheets','maxFormulaLimit','saveTaskMap','unit','colorClass','urlChange$','show','rgba(','makeDirty','labelPosition','_commandService','fill','collab-rect-range-','m1Prime','debug','_blockProgressWatches','black','slide-collab-cursor-','TEXT','_httpService','120068aJTTFW','_messageIds','_watchBlockProgress','_getFormulaLimitStatus','_logService','clearTimeout','_offsetY','transformRemoteChangeset','subscribeEvent','max','onCommandExecuted','bottom','_releaseCalculationLimit','prototype','registerRefRange','colno','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','1.0.0-beta.0','transformStateCache','doc.mutation.rich-text-editing','getSheetId','startRow','getViewport','evenodd','getMember','_name','strokeStyle','_transformUndoRedoStack','_updateSheetPreview','AWAITING','preventDefault','_initStatusComponent','_setInteractionBlocked','disposeWithMe','roomMembers','OTHER_CLIENT_EDITING','DeleteRangeMoveUpCommandId','_dataLoaderService','createSocket','_anchor','get','_startSheetCollabCursor','Unknown\x20user','_startDocCollabCursor','_docTransformStateCacheService','highlight','_beforeCloseService','collaboration-client-ui.snapshotLoading.timeout','sessionTicket','_initEntityListener','saveImage','getCurrentSelections','startFormulaLimitUrl','state$','_updateCollabCursors','reconnect','_collabCursorState$','onMouseMove',',\x200.2)','resolve','clickable','transformMutationsWithChangeset','setParam','getColorFromTheme','_startBoardCollabCursor','filter','column','_initCommandInterceptor','backgroundColor','Warning','filename','replaceState','SOCKET_FAILED','_transformHistoryAndStateStack','subunit','dispose$','isEditing','getFormulaLimitStatusUrl','_initStatusListener','getFocusedUnit','value','setTimeout','_saveTaskMap','onPointerLeave$','m2Prime','memberID','_scheduleSaving','_updateLocalCursor','name','right','_stopBlinking','activeSheet$','div','getUnitId','data','totalBlocks','params','getDocRanges','getCollabCursors$','/universer-api/license/formula/limit/start','scene','_toggleOffline','drawWith','_cursorInfo$','selection','all','red.300','polite','setShapeProps','Enter','_localStorageService','post','loadedBlocks','default','slide-element-selection','values','transformIMECache','_unitStatus'];_0x29fa=function(){return _0x5989f2;};return _0x29fa();}mr=Y([J(0x0,_0x449dc1),J(0x1,_0x4d1fed(_0x1365bf)),J(0x2,_0x3f2cb5)],mr);const hr=0x7530,gr=_0x3bc3ed(0x396);var _r=class extends _0x1b14aa{constructor(){const _0x28ae4e=_0x3bc3ed;super(),q(this,_0x28ae4e(0x406),_0x1294de()),q(this,_0x28ae4e(0x3c4),new Set()),q(this,_0x28ae4e(0x2dc),new Map()),q(this,_0x28ae4e(0x2de),null),q(this,'_clearOtherTimers',new Map()),q(this,_0x28ae4e(0x28d),new Map()),this[_0x28ae4e(0x3a5)]();}[_0x3bc3ed(0x44f)](){const _0x5b257a=_0x3bc3ed;super['dispose'](),this[_0x5b257a(0x37b)][_0x5b257a(0x348)]((_0x41efdc,_0x29cb13)=>this[_0x5b257a(0x409)](_0x29cb13)),this[_0x5b257a(0x2de)]&&window[_0x5b257a(0x433)](this[_0x5b257a(0x2de)]);}['getUnitStatus$'](_0x9a05ce){return this['_ensureSubject'](_0x9a05ce)['pipe'](_0x13c171());}[_0x3bc3ed(0x3b7)](_0xd885ec){const _0x298b62=_0x3bc3ed;this[_0x298b62(0x3c4)][_0x298b62(0x336)]===0x0&&this[_0x298b62(0x3db)](),this[_0x298b62(0x3c4)][_0x298b62(0x31d)](_0xd885ec),this[_0x298b62(0x2d8)]({'type':0x0,'memberID':this[_0x298b62(0x406)],'unitIDs':[_0xd885ec],'isForwarded':!0x1});}[_0x3bc3ed(0x356)](_0x5e044e){const _0x16e7ad=_0x3bc3ed;this[_0x16e7ad(0x3c4)][_0x16e7ad(0x3aa)](_0x5e044e),this[_0x16e7ad(0x3c4)][_0x16e7ad(0x336)]===0x0&&this[_0x16e7ad(0x2de)]&&window[_0x16e7ad(0x433)](this[_0x16e7ad(0x2de)]);}['_init'](){const _0x381acd=_0x3bc3ed;this[_0x381acd(0x239)](_0x9b2c48(_0x237140(window,'storage')[_0x381acd(0x1f2)](_0x448aef=>{const _0x41b17c=_0x381acd;if(_0x448aef[_0x41b17c(0x35d)]!==gr||!_0x448aef[_0x41b17c(0x342)])return;let _0x2ecb3f=JSON[_0x41b17c(0x2e5)](_0x448aef[_0x41b17c(0x342)]);this[_0x41b17c(0x330)](_0x2ecb3f);}))),window[_0x381acd(0x3dc)](_0x381acd(0x2da),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x381acd(0x3c4)])}));}['_handleEvent'](_0x57ce53){const _0x40b719=_0x3bc3ed;switch(_0x57ce53[_0x40b719(0x1cb)]){case 0x0:this[_0x40b719(0x30a)](_0x57ce53);break;case 0x1:this[_0x40b719(0x346)](_0x57ce53);break;case 0x2:this[_0x40b719(0x315)](_0x57ce53);break;}}[_0x3bc3ed(0x30a)](_0x467bdc){const _0x3c1248=_0x3bc3ed;let {unitIDs:_0x525eee,memberID:_0x36c4cc,isForwarded:_0x18854d}=_0x467bdc;_0x525eee[_0x3c1248(0x348)](_0x26a9a9=>{const _0x58c3f9=_0x3c1248;if(!_0x18854d&&this['_unitOnClients']['has'](_0x26a9a9)&&this[_0x58c3f9(0x1d2)](_0x26a9a9)[_0x58c3f9(0x36a)](_0x14eb9b[_0x58c3f9(0x3b2)]),!this['_unitOnClients'][_0x58c3f9(0x1e8)](_0x26a9a9)||!this[_0x58c3f9(0x2dc)][_0x58c3f9(0x240)](_0x26a9a9)[_0x58c3f9(0x1e8)](_0x36c4cc)){let _0xaa987=this[_0x58c3f9(0x2dc)][_0x58c3f9(0x240)](_0x26a9a9)||new Set();_0xaa987[_0x58c3f9(0x31d)](_0x36c4cc),this['_unitOnClients'][_0x58c3f9(0x34c)](_0x26a9a9,_0xaa987),this['_scheduleClearOtherTimer'](_0x36c4cc);}}),_0x18854d||this[_0x3c1248(0x2d8)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3c1248(0x3c4)]],'isForwarded':!0x0});}[_0x3bc3ed(0x29a)](_0x2f29e5){const _0x1273e4=_0x3bc3ed;this[_0x1273e4(0x409)](_0x2f29e5);let _0x6d9140=window[_0x1273e4(0x269)](()=>{const _0x9b4956=_0x1273e4;this[_0x9b4956(0x2dc)][_0x9b4956(0x348)](_0x2337e0=>{const _0x196b2e=_0x9b4956;_0x2337e0[_0x196b2e(0x3aa)](_0x2f29e5);});},hr*0x2);this[_0x1273e4(0x37b)][_0x1273e4(0x34c)](_0x2f29e5,_0x6d9140);}[_0x3bc3ed(0x409)](_0x2f1bf2){const _0xfc3d7e=_0x3bc3ed;if(this['_clearOtherTimers'][_0xfc3d7e(0x1e8)](_0x2f1bf2)){let _0xdca9a4=this['_clearOtherTimers'][_0xfc3d7e(0x240)](_0x2f1bf2);_0xdca9a4&&window['clearTimeout'](_0xdca9a4),this[_0xfc3d7e(0x37b)][_0xfc3d7e(0x34c)](_0x2f1bf2,null);}}[_0x3bc3ed(0x346)](_0x4edbd5){const _0x56987d=_0x3bc3ed;let {memberID:_0x31b525,unitIDs:_0x59b7f3}=_0x4edbd5;_0x59b7f3[_0x56987d(0x348)](_0x2de971=>{const _0x1645c5=_0x56987d;var _0x333b70;let _0x3628e7=this[_0x1645c5(0x2dc)][_0x1645c5(0x240)](_0x2de971);_0x3628e7&&(_0x3628e7['delete'](_0x31b525),(_0x333b70=this[_0x1645c5(0x1d2)](_0x2de971))==null||_0x333b70['next'](_0x3628e7['size']===0x0?_0x14eb9b[_0x1645c5(0x2ad)]:_0x14eb9b['OTHER_CLIENTS_EDITING']));}),this[_0x56987d(0x409)](_0x31b525);}[_0x3bc3ed(0x315)](_0x551e8d){const _0x6aed9f=_0x3bc3ed;this[_0x6aed9f(0x29a)](_0x551e8d['memberID']);}[_0x3bc3ed(0x2d8)](_0x32b253){const _0x4736b2=_0x3bc3ed;localStorage[_0x4736b2(0x3bf)](gr,JSON[_0x4736b2(0x1f6)](_0x32b253));}['_scheduleHeartbeat'](){const _0x5f35b7=_0x3bc3ed;this[_0x5f35b7(0x2de)]=window[_0x5f35b7(0x2ce)](()=>{const _0x2eb15a=_0x5f35b7;this[_0x2eb15a(0x2d8)]({'type':0x2,'memberID':this[_0x2eb15a(0x406)]});},hr);}[_0x3bc3ed(0x1d2)](_0x37f497){const _0x466e7a=_0x3bc3ed;return this['_unitStatus'][_0x466e7a(0x1e8)](_0x37f497)||this['_unitStatus'][_0x466e7a(0x34c)](_0x37f497,new _0x5c73ce(_0x14eb9b[_0x466e7a(0x2ad)])),this[_0x466e7a(0x28d)][_0x466e7a(0x240)](_0x37f497);}};export{pr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,Zn as IURLService,mr as RemoteUniscriptService,Kn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,_r as WebBrowserSingleActiveUnitService};
1
+ const _0xf63dae=_0x344a;(function(_0x5910c1,_0xbefa0a){const _0x25dd4c=_0x344a,_0x578e23=_0x5910c1();while(!![]){try{const _0x291d5a=-parseInt(_0x25dd4c(0x32a))/0x1+-parseInt(_0x25dd4c(0x2b8))/0x2*(parseInt(_0x25dd4c(0x249))/0x3)+-parseInt(_0x25dd4c(0x302))/0x4*(parseInt(_0x25dd4c(0x298))/0x5)+-parseInt(_0x25dd4c(0x2ca))/0x6+parseInt(_0x25dd4c(0x2bc))/0x7*(-parseInt(_0x25dd4c(0x3a4))/0x8)+parseInt(_0x25dd4c(0x395))/0x9*(-parseInt(_0x25dd4c(0x352))/0xa)+-parseInt(_0x25dd4c(0x291))/0xb*(-parseInt(_0x25dd4c(0x3a0))/0xc);if(_0x291d5a===_0xbefa0a)break;else _0x578e23['push'](_0x578e23['shift']());}catch(_0x2bdc02){_0x578e23['push'](_0x578e23['shift']());}}}(_0x52e2,0x6acae));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x24157f,CollaborationController as _0x317854,CollaborationSessionService as _0x4fcc23,CollaborationSocketService as _0x567fd6,CollaborationStatus as _0x1a7a96,CollaborationUIEventId as _0x7adcc8,CollaborationUIEventService as _0x51003b,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1b850a,DEFAULT_WS_SESSION_TICKET_URL as _0x94ea70,DataLoaderService as _0x4cff11,DocCollaborationEntity as _0x271008,ILocalCacheService as _0x705847,LOCAL_CACHE_INTERVAL as _0x4d1ffd,LOCAL_CACHE_INTERVAL_KEY as _0x4b282a,MemberService as _0xb4ed64,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x265f46,SessionStatus as _0x5d9759,UnitStatus as _0x42cab2,UniverCollaborationClientPlugin as _0xb80cfd,getLocalCacheKey as _0x203753}from'@univerjs-pro/collaboration-client';import{COLORS as _0x3a1a2f,CanceledError as _0x4d67df,ColorKit as _0x5b87d7,CommandType as _0x6f28d7,DOC_RANGE_TYPE as _0x486842,DependentOn as _0x234aa0,Disposable as _0x5a96ee,DisposableCollection as _0x54a82f,ICommandService as _0x1fc91d,IConfigService as _0x12fe7f,IImageIoService as _0x44a88b,ILocalStorageService as _0x29102b,ILogService as _0x585c40,IUniverInstanceService as _0x4bc33c,Inject as _0x231ef2,Injector as _0x5e0363,LocaleService as _0x44175a,Plugin as _0x4652d0,Rectangle as _0x51cdea,RxDisposable as _0x3517ee,ThemeService as _0x1e4fb9,Tools as _0x26d374,UniverInstanceType as _0xe0fbed,Workbook as _0x463149,createIdentifier as _0x38c0c9,debounce as _0x480a,fromEventSubject as _0x467067,generateRandomId as _0x10b3a5,isFormulaId as _0x2314ee,isFormulaString as _0x500a0d,isInternalEditorID as _0x3d84cb,merge as _0x3c577a,mergeOverrideWithDependencies as _0x58eb67,registerDependencies as _0x4390af,toDisposable as _0x499979,touchDependencies as _0xe9ee62}from'@univerjs/core';import{BuiltInUIPart as _0x15bcc2,IBeforeCloseService as _0x1c6f4d,IMessageService as _0x3f19ee,INotificationService as _0x2b012d,IUIPartsService as _0xad308e,IUnitPresenceUIAdapterRegistry as _0x442b35,connectInjector as _0x231a0d,useDependency as _0x10c808,useObservable as _0x340e40}from'@univerjs/ui';import{BehaviorSubject as _0x45225c,Subject as _0x10b674,combineLatest as _0x277223,debounceTime as _0x14f51d,distinctUntilChanged as _0x3d929e,filter as _0x380b6d,fromEvent as _0x145df2,mapTo as _0x5b3108,merge as _0x4f7818,of as _0x153693,shareReplay as _0x217c0d,switchMap as _0x135751,takeUntil as _0x472a9e,throttle as _0x5c898a,timer as _0xf70f90}from'rxjs';import{distinctUntilChanged as _0x72d672,filter as _0x50c397,map as _0x53bebe,switchMap as _0x4d069a,takeUntil as _0x5a7e08,throttleTime as _0x56e9e9}from'rxjs/operators';import{Button as _0x1039f2,MessageType as _0x5ba788,Tooltip as _0x534b99,clsx as _0x69887f}from'@univerjs/design';import{LoadingMultiIcon as _0x11daae,OffLineIcon as _0x5f349e,OnLineIcon as _0x391900,WarningIcon as _0x2829bf}from'@univerjs/icons';import{createElement as _0x2fbf51,useCallback as _0x18fd4a,useMemo as _0x274796}from'react';import{jsx as _0x5f4004,jsxs as _0x1fc652}from'react/jsx-runtime';import{CollaborationEvent as _0x218a26,ISnapshotServerService as _0x2afbb0,ITransformService as _0x1699e4,RevisionService as _0x54835a,SnapshotLoadStage as _0x45da0f,SnapshotLoadingService as _0x5e6e20,UniverCollaborationPlugin as _0x4ebbdf,isTransformMutationFailure as _0x384fa8,isTransformMutationsWithChangesetSuccess as _0xdedc4e}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x19087e}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x4dbc30,DocSkeletonManagerService as _0x28ea5c,DocStateChangeManagerService as _0x1fdb55,RichTextEditingMutation as _0xc6fa07,SetTextSelectionsOperation as _0x1531dd,UniverDocsPlugin as _0x2d8236}from'@univerjs/docs';import{DocIMEInputManagerService as _0x3a91f1,IDocClipboardService as _0x48c255,NodePositionConvertToCursor as _0x2fbd6e,NodePositionConvertToRectRange as _0x23d799,SetDocZoomRatioOperation as _0x690aef,TEXT_RANGE_LAYER_INDEX as _0x175b26,UniverDocsUIPlugin as _0x49e0ac}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x4a5ed0,IRenderManagerService as _0xe22447,Rect as _0x3e2804,RegularPolygon as _0x7fe91,SHEET_VIEWPORT_KEY as _0x135daf,Shape as _0x27a4b3,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0xac25e5,UniverRenderEnginePlugin as _0x2b6320,Vector2 as _0x39de27,getColor as _0x226e21,getDocumentSkeletonColumnPagePathInfo as _0x5a3d01}from'@univerjs/engine-render';import{HTTPService as _0x207123,ISocketService as _0x123d47,UniverNetworkPlugin as _0x4fc43f,WebSocketService as _0x5419f5}from'@univerjs/network';import{FormulaExecuteStageType as _0x460d05,FormulaExecutedStateType as _0xcb4f45,SetFormulaCalculationNotificationMutation as _0x2b37bf,SetFormulaCalculationStartMutation as _0x50ec48,deserializeRangeWithSheet as _0x4949f7,serializeRangeWithSheet as _0x5d869e}from'@univerjs/engine-formula';import{EffectRefRangId as _0x16b730,RefRangeService as _0x761472,SetSelectionsOperation as _0x59276,SetWorksheetActivateCommand as _0x6f73cb,SheetsSelectionsService as _0x10dbfe,handleDeleteRangeMoveLeft as _0x44fb13,handleDeleteRangeMoveUp as _0x1cee8c,handleIRemoveCol as _0x3c8caf,handleIRemoveRow as _0x58352f,handleInsertCol as _0x150afc,handleInsertRangeMoveDown as _0x423039,handleInsertRangeMoveRight as _0x57e0f9,handleInsertRow as _0x1e1075,handleMoveRange as _0x347455,runRefRangeMutations as _0x1485d9}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x365c31,getCoordByCell as _0x28e0af,getSheetObject as _0x29132e}from'@univerjs/sheets-ui';import{ErrorCode as _0x59d7db}from'@univerjs/protocol';function ln(_0x4dcd1c){const _0x56ef5c=_0x344a;switch(_0x4dcd1c){case _0x1a7a96[_0x56ef5c(0x1fe)]:return{'icon':_0x5f4004(_0x5f349e,{}),'colorClass':'univer-text-red-500','i18nKey':_0x56ef5c(0x1a5),'tooltipKey':_0x56ef5c(0x1cf),'clickable':!0x0,'indicator':_0x56ef5c(0x2c5)};case _0x1a7a96[_0x56ef5c(0x2b4)]:return{'icon':_0x5f4004(_0x5f349e,{}),'colorClass':'univer-text-orange-500','i18nKey':_0x56ef5c(0x30c),'clickable':!0x1,'indicator':_0x56ef5c(0x2c5)};case _0x1a7a96['FETCH_MISS']:return{'icon':_0x5f4004(_0x11daae,{}),'colorClass':_0x56ef5c(0x375),'i18nKey':_0x56ef5c(0x267),'clickable':!0x1,'indicator':'spin'};case _0x1a7a96[_0x56ef5c(0x371)]:return{'icon':_0x5f4004(_0x391900,{}),'colorClass':'univer-text-gray-400','i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x56ef5c(0x2c5)};case _0x1a7a96['AWAITING']:case _0x1a7a96['AWAITING_WITH_PENDING']:return{'icon':_0x5f4004(_0x11daae,{}),'colorClass':_0x56ef5c(0x375),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case _0x1a7a96['PENDING']:return{'icon':_0x5f4004(_0x11daae,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x56ef5c(0x2f7),'clickable':!0x1,'indicator':_0x56ef5c(0x191)};case _0x1a7a96['SYNCED']:return{'icon':_0x5f4004(_0x391900,{}),'colorClass':_0x56ef5c(0x3ba),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':'static'};}}function un(_0x15dd22){const _0x12a1f3=_0x344a;let {status$:_0x50f4f7}=_0x15dd22,_0x2b1d6d=_0x340e40(_0x50f4f7,_0x1a7a96[_0x12a1f3(0x371)]),_0x380c9a=_0x10c808(_0x44175a),_0x312a80=_0x10c808(_0x4fcc23),_0x33fcf2=_0x274796(()=>ln(_0x2b1d6d),[_0x2b1d6d]),_0x4bb7bd=_0x2b1d6d!==_0x1a7a96[_0x12a1f3(0x1fe)],_0x44ca14=_0x380c9a['t'](_0x33fcf2[_0x12a1f3(0x3e6)]),_0x4ba68b=_0x33fcf2[_0x12a1f3(0x214)]?_0x380c9a['t'](_0x33fcf2[_0x12a1f3(0x214)]):_0x44ca14,_0x162723=_0x18fd4a(()=>{const _0x517fcd=_0x12a1f3;_0x4bb7bd||_0x312a80[_0x517fcd(0x264)]();},[_0x4bb7bd,_0x312a80]),_0xd8d24e=_0x18fd4a(_0x260097=>{const _0x569df7=_0x12a1f3;!_0x4bb7bd&&(_0x260097['key']===_0x569df7(0x1b3)||_0x260097[_0x569df7(0x182)]==='\x20')&&(_0x260097[_0x569df7(0x1bc)](),_0x312a80[_0x569df7(0x264)]());},[_0x4bb7bd,_0x312a80]),_0x33388e=_0x5f4004(_0x12a1f3(0x3d3),{'className':_0x69887f(_0x12a1f3(0x1b1),_0x12a1f3(0x2c9),_0x33fcf2[_0x12a1f3(0x27d)],{'univer-animate-spin':_0x33fcf2[_0x12a1f3(0x2cd)]===_0x12a1f3(0x191),'univer-animate-pulse':_0x33fcf2['indicator']===_0x12a1f3(0x3c6)}),'aria-hidden':_0x12a1f3(0x171),'children':_0x33fcf2[_0x12a1f3(0x372)]}),_0x4874c0=_0x5f4004(_0x12a1f3(0x3d3),{'className':_0x69887f(_0x12a1f3(0x1b1),_0x12a1f3(0x343),_0x12a1f3(0x2c3),_0x12a1f3(0x24a),'dark:focus:!univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x33fcf2[_0x12a1f3(0x349)],'univer-cursor-default':!_0x33fcf2[_0x12a1f3(0x349)]}),'children':_0x33388e});return _0x33fcf2['clickable']?_0x5f4004(_0x534b99,{'title':_0x4ba68b,'placement':_0x12a1f3(0x256),'children':_0x5f4004(_0x12a1f3(0x1f9),{'type':_0x12a1f3(0x1f9),'onClick':_0x162723,'onKeyDown':_0xd8d24e,'className':_0x69887f(_0x12a1f3(0x385),_0x12a1f3(0x362),_0x12a1f3(0x2ae),_0x12a1f3(0x3ac)),'aria-label':_0x44ca14+_0x12a1f3(0x274)+_0x4ba68b,'role':_0x12a1f3(0x167),'aria-live':_0x12a1f3(0x1f3),'aria-atomic':_0x12a1f3(0x171),'children':_0x4874c0})}):_0x5f4004(_0x534b99,{'title':_0x4ba68b,'placement':_0x12a1f3(0x256),'children':_0x5f4004('div',{'className':_0x69887f(_0x12a1f3(0x385),_0x12a1f3(0x362),'univer-m-0\x20univer-p-0'),'aria-label':_0x44ca14,'role':_0x12a1f3(0x167),'aria-live':_0x12a1f3(0x1f3),'aria-atomic':_0x12a1f3(0x171),'children':_0x4874c0})});}function K(_0x3066bd){'@babel/helpers - typeof';const _0x10fed5=_0x344a;return K=typeof Symbol==_0x10fed5(0x287)&&typeof Symbol[_0x10fed5(0x1ab)]==_0x10fed5(0x3b8)?function(_0x50926a){return typeof _0x50926a;}:function(_0x26b869){const _0x3ab46c=_0x10fed5;return _0x26b869&&typeof Symbol==_0x3ab46c(0x287)&&_0x26b869[_0x3ab46c(0x295)]===Symbol&&_0x26b869!==Symbol['prototype']?_0x3ab46c(0x3b8):typeof _0x26b869;},K(_0x3066bd);}function dn(_0x4ea468,_0x20d4bb){const _0x351924=_0x344a;if(K(_0x4ea468)!=_0x351924(0x1f8)||!_0x4ea468)return _0x4ea468;var _0xfb9ab1=_0x4ea468[Symbol[_0x351924(0x1cb)]];if(_0xfb9ab1!==void 0x0){var _0x408a41=_0xfb9ab1[_0x351924(0x313)](_0x4ea468,_0x20d4bb||'default');if(K(_0x408a41)!=_0x351924(0x1f8))return _0x408a41;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x20d4bb===_0x351924(0x23c)?String:Number)(_0x4ea468);}function fn(_0x3f5769){const _0x429133=_0x344a;var _0x2c71e6=dn(_0x3f5769,_0x429133(0x23c));return K(_0x2c71e6)==_0x429133(0x3b8)?_0x2c71e6:_0x2c71e6+'';}function q(_0x280250,_0x1d7327,_0x11816c){const _0x348185=_0x344a;return(_0x1d7327=fn(_0x1d7327))in _0x280250?Object[_0x348185(0x23b)](_0x280250,_0x1d7327,{'value':_0x11816c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x280250[_0x1d7327]=_0x11816c,_0x280250;}function J(_0x3ba4c1,_0x1b009b){return function(_0x1ae3d4,_0x533bd9){_0x1b009b(_0x1ae3d4,_0x533bd9,_0x3ba4c1);};}function Y(_0x1b42ba,_0xeee4f7,_0x229689,_0x47c383){const _0x438963=_0x344a;var _0x4e6afc=arguments[_0x438963(0x3c7)],_0x196872=_0x4e6afc<0x3?_0xeee4f7:_0x47c383===null?_0x47c383=Object['getOwnPropertyDescriptor'](_0xeee4f7,_0x229689):_0x47c383,_0x1cb0d7;if(typeof Reflect=='object'&&typeof Reflect[_0x438963(0x1bf)]=='function')_0x196872=Reflect[_0x438963(0x1bf)](_0x1b42ba,_0xeee4f7,_0x229689,_0x47c383);else{for(var _0x2b221d=_0x1b42ba[_0x438963(0x3c7)]-0x1;_0x2b221d>=0x0;_0x2b221d--)(_0x1cb0d7=_0x1b42ba[_0x2b221d])&&(_0x196872=(_0x4e6afc<0x3?_0x1cb0d7(_0x196872):_0x4e6afc>0x3?_0x1cb0d7(_0xeee4f7,_0x229689,_0x196872):_0x1cb0d7(_0xeee4f7,_0x229689))||_0x196872);}return _0x4e6afc>0x3&&_0x196872&&Object[_0x438963(0x23b)](_0xeee4f7,_0x229689,_0x196872),_0x196872;}let X=class extends _0x5a96ee{constructor(_0x17647b,_0x3aa318,_0x213097,_0xc15bbb,_0x106d04){const _0x3fbb7e=_0x344a;super(),this[_0x3fbb7e(0x324)]=_0x17647b,this[_0x3fbb7e(0x1b0)]=_0x3aa318,this[_0x3fbb7e(0x2cc)]=_0x213097,this[_0x3fbb7e(0x21b)]=_0xc15bbb,this[_0x3fbb7e(0x166)]=_0x106d04,q(this,'_status$',new _0x45225c(_0x1a7a96[_0x3fbb7e(0x371)])),q(this,'_presenceStatusRegistrations',new Map()),this[_0x3fbb7e(0x2d7)](),this[_0x3fbb7e(0x341)](),this[_0x3fbb7e(0x19a)]();}['dispose'](){const _0x2d93ae=_0x344a;this['_presenceStatusRegistrations'][_0x2d93ae(0x23d)](_0x40ea7d=>_0x40ea7d[_0x2d93ae(0x3d8)]()),this[_0x2d93ae(0x2e9)][_0x2d93ae(0x344)](),this[_0x2d93ae(0x17d)]['complete'](),super['dispose']();}[_0xf63dae(0x341)](){const _0x55abc9=_0xf63dae;this[_0x55abc9(0x1e1)](_0x4f7818(this[_0x55abc9(0x324)]['focused$'],this[_0x55abc9(0x324)]['getCurrentTypeOfUnit$'](_0xe0fbed[_0x55abc9(0x24e)]),this[_0x55abc9(0x324)][_0x55abc9(0x386)](_0xe0fbed[_0x55abc9(0x379)]))[_0x55abc9(0x297)](_0x53bebe(()=>pn(this['_univerInstanceService'])),_0x72d672(),_0x135751(_0x4d9aa5=>_0x4d9aa5?this['_collaborationController'][_0x55abc9(0x25f)](_0x4d9aa5):_0x153693(null)),_0x135751(_0x2422f9=>_0x2422f9?_0x2422f9['status$']:_0x153693(_0x1a7a96['NOT_COLLAB'])))[_0x55abc9(0x257)](_0x1c56ad=>{const _0x387662=_0x55abc9;this[_0x387662(0x17d)][_0x387662(0x22d)](_0x1c56ad);}));}[_0xf63dae(0x2d7)](){const _0x594b05=_0xf63dae;this[_0x594b05(0x1e1)](this[_0x594b05(0x21b)][_0x594b05(0x185)](_0x15bcc2[_0x594b05(0x1e2)],()=>_0x231a0d(mn({'status$':this[_0x594b05(0x17d)]['asObservable']()}),this[_0x594b05(0x1b0)])));}[_0xf63dae(0x19a)](){const _0x109006=_0xf63dae;let _0x51a1d0=this[_0x109006(0x166)]['adapters$'][_0x109006(0x257)](_0x2ced72=>{const _0x1f2381=_0x109006;this[_0x1f2381(0x26b)](_0x2ced72);});this[_0x109006(0x1e1)](_0x499979(()=>_0x51a1d0['unsubscribe']()));}['_syncPresenceStatusComponents'](_0x1ca82b){const _0x2ca868=_0xf63dae;let _0x1aee84=new Map(_0x1ca82b[_0x2ca868(0x1c6)](_0x1e7066=>_0x1e7066[_0x2ca868(0x278)]!=null)['map'](_0x509add=>[_0x509add[_0x2ca868(0x1f0)],_0x509add]));this[_0x2ca868(0x2e9)]['forEach']((_0x39ad7b,_0xaecd78)=>{const _0x30bfe4=_0x2ca868;_0x1aee84[_0x30bfe4(0x1a6)](_0xaecd78)||(_0x39ad7b[_0x30bfe4(0x3d8)](),this[_0x30bfe4(0x2e9)][_0x30bfe4(0x1d5)](_0xaecd78));}),_0x1aee84[_0x2ca868(0x23d)]((_0x7b03f5,_0x3ef000)=>{const _0x48b002=_0x2ca868;this[_0x48b002(0x2e9)][_0x48b002(0x1a6)](_0x3ef000)||this[_0x48b002(0x285)](_0x7b03f5);});}[_0xf63dae(0x285)](_0x333810){const _0x2c77f2=_0xf63dae;let _0x2540ea=_0x333810[_0x2c77f2(0x278)];if(!_0x2540ea)return;let _0x575803=new _0x54a82f(),_0x389e1d=new _0x45225c(_0x1a7a96[_0x2c77f2(0x371)]);_0x575803['add'](_0x499979(()=>_0x389e1d[_0x2c77f2(0x36b)]())),_0x575803[_0x2c77f2(0x2e1)](this[_0x2c77f2(0x21b)]['registerComponent'](_0x2540ea,()=>_0x231a0d(mn({'status$':_0x389e1d[_0x2c77f2(0x241)]()}),this[_0x2c77f2(0x1b0)])));let _0x3143c6=this[_0x2c77f2(0x324)][_0x2c77f2(0x386)](_0x333810['unitType'])[_0x2c77f2(0x297)](_0x53bebe(_0x1a65e4=>(_0x1a65e4==null?void 0x0:_0x1a65e4[_0x2c77f2(0x21d)]())??null),_0x72d672(),_0x135751(_0x238a34=>_0x238a34?this[_0x2c77f2(0x2cc)][_0x2c77f2(0x25f)](_0x238a34):_0x153693(null)),_0x135751(_0x5739c9=>(_0x5739c9==null?void 0x0:_0x5739c9[_0x2c77f2(0x2ec)])??_0x153693(_0x1a7a96[_0x2c77f2(0x371)])))[_0x2c77f2(0x257)](_0x482fe9=>_0x389e1d[_0x2c77f2(0x22d)](_0x482fe9));_0x575803[_0x2c77f2(0x2e1)](_0x499979(()=>_0x3143c6[_0x2c77f2(0x307)]())),this['_presenceStatusRegistrations']['set'](_0x333810[_0x2c77f2(0x1f0)],_0x575803);}};X=Y([J(0x0,_0x4bc33c),J(0x1,_0x231ef2(_0x5e0363)),J(0x2,_0x231ef2(_0x317854)),J(0x3,_0xad308e),J(0x4,_0x231ef2(_0x442b35))],X);function pn(_0x43bec9){const _0x163cae=_0xf63dae;let _0x3079dd=_0x43bec9[_0x163cae(0x2ef)](),_0x1e2f83=_0x3079dd==null?void 0x0:_0x3079dd[_0x163cae(0x21d)]();if(_0x1e2f83&&!_0x3d84cb(_0x1e2f83))return _0x1e2f83;let _0x3e71aa=_0x43bec9['getCurrentUnitOfType'](_0xe0fbed[_0x163cae(0x24e)]),_0x2c2a79=_0x3e71aa==null?void 0x0:_0x3e71aa[_0x163cae(0x21d)]();if(_0x2c2a79&&!_0x3d84cb(_0x2c2a79))return _0x2c2a79;let _0x5eb208=_0x43bec9['getCurrentUnitOfType'](_0xe0fbed[_0x163cae(0x379)]);if(_0x5eb208)return _0x5eb208[_0x163cae(0x21d)]();let _0x23d832=_0x43bec9['getAllUnitsForType'](_0xe0fbed[_0x163cae(0x24e)])[_0x163cae(0x288)](_0x46bd02=>!_0x3d84cb(_0x46bd02[_0x163cae(0x21d)]()));return _0x23d832?_0x23d832[_0x163cae(0x21d)]():null;}function mn(_0x15f54f){let {status$:_0x42572c}=_0x15f54f;return function(){return _0x5f4004(un,{'status$':_0x42572c});};}var hn=_0xf63dae(0x179),gn=_0xf63dae(0x320);const _n={'id':_0xf63dae(0x226),'type':_0x6f28d7['OPERATION'],'handler':(_0x409f8e,_0x552444)=>{const _0x3359f3=_0xf63dae;let _0x3a19d7=_0x409f8e['get'](_0x442b35)['get'](_0x552444[_0x3359f3(0x1f0)]);if(!_0x3a19d7)return!0x1;switch(_0x552444[_0x3359f3(0x2b9)][_0x3359f3(0x1b5)]){case _0x3359f3(0x363):return _0x3a19d7[_0x3359f3(0x378)](_0x552444[_0x3359f3(0x2b9)][_0x3359f3(0x27f)]),!0x0;case _0x3359f3(0x38a):return _0x3a19d7[_0x3359f3(0x2e6)](_0x552444[_0x3359f3(0x2b9)][_0x3359f3(0x377)],_0x552444[_0x3359f3(0x2b9)]['memberId']),!0x0;case _0x3359f3(0x344):return _0x3a19d7[_0x3359f3(0x32b)](_0x552444[_0x3359f3(0x2b9)][_0x3359f3(0x377)]),!0x0;default:return!0x1;}}},vn={};let yn=class extends _0x3517ee{constructor(_0x1a17aa,_0x19337b){const _0x33c05c=_0xf63dae;super(),this[_0x33c05c(0x28e)]=_0x1a17aa,this[_0x33c05c(0x27b)]=_0x19337b,this[_0x33c05c(0x16f)]();}[_0xf63dae(0x16f)](){const _0x5e1d94=_0xf63dae;let _0x2ed9c5=this;this[_0x5e1d94(0x1e1)](this[_0x5e1d94(0x28e)]['addClipboardHook']({'onBeforePasteImage':async _0x3537ec=>{const _0x30ceab=_0x5e1d94;let _0x26f228=await _0x2ed9c5[_0x30ceab(0x27b)][_0x30ceab(0x21a)](_0x3537ec);return _0x26f228?{'source':_0x26f228[_0x30ceab(0x1e3)],'imageSourceType':_0x26f228['imageSourceType']}:null;}}));}};yn=Y([J(0x0,_0x48c255),J(0x1,_0x44a88b)],yn);const bn=['purple.300',_0xf63dae(0x200),_0xf63dae(0x203),_0xf63dae(0x32e),'blue.400',_0xf63dae(0x3bb)];var xn=class extends _0x5a96ee{constructor(..._0x21b02f){const _0x440d36=_0xf63dae;super(..._0x21b02f),q(this,_0x440d36(0x212),new Map()),q(this,_0x440d36(0x3a9),0x0);}[_0xf63dae(0x3b1)](_0xf788f6){const _0x20530d=_0xf63dae;if(this[_0x20530d(0x212)]['has'](_0xf788f6))return this[_0x20530d(0x212)][_0x20530d(0x18a)](_0xf788f6);let _0x78bb98=bn[this[_0x20530d(0x3a9)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%bn[_0x20530d(0x3c7)],this[_0x20530d(0x212)][_0x20530d(0x363)](_0xf788f6,_0x78bb98),_0x78bb98;}};function Sn(_0x23df1e){const _0x3c1ab4=_0xf63dae;let _0x4e131f='';for(let _0x58f985 of _0x23df1e){let {startOffset:_0x3db29e,endOffset:_0x59c0cc,isActive:_0x1f9d4f,rangeType:_0x48a2b7,segmentId:_0x49a4ed,segmentPage:_0x3142a3}=_0x58f985;_0x4e131f[_0x3c1ab4(0x3c7)]&&(_0x4e131f+=','),_0x4e131f+=_0x3db29e+':'+_0x59c0cc+':'+(_0x1f9d4f?'1':'0')+':'+_0x48a2b7+':'+_0x49a4ed+':'+_0x3142a3;}return _0x4e131f;}function Cn(_0x3d1b1e){const _0x4fa930=_0xf63dae;let _0x27462e=_0x3d1b1e[_0x4fa930(0x31d)](','),_0x301742=[];for(let _0x48dacb of _0x27462e){let [_0x25b56c,_0x243dc6,_0x28241a,_0x3c95fa,_0x142014,_0x1c3b59]=_0x48dacb[_0x4fa930(0x31d)](':');_0x301742[_0x4fa930(0x28f)]({'startOffset':Number(_0x25b56c),'endOffset':Number(_0x243dc6),'collapsed':_0x25b56c===_0x243dc6,'isActive':_0x28241a==='1','rangeType':_0x3c95fa===_0x486842[_0x4fa930(0x17b)]?_0x486842[_0x4fa930(0x17b)]:_0x486842[_0x4fa930(0x399)],'segmentId':typeof _0x142014==_0x4fa930(0x23c)?String(_0x142014):'','segmentPage':Number(_0x1c3b59??-0x1)});}return _0x301742[_0x4fa930(0x18c)](_0x4d94d0=>_0x4d94d0[_0x4fa930(0x19d)])||(_0x301742[0x0][_0x4fa930(0x19d)]=!0x0),_0x301742;}var wn=class extends _0x3517ee{constructor(..._0x3e08cb){const _0x38edfb=_0xf63dae;super(..._0x3e08cb),q(this,'_collabCursorState$',new _0x45225c(null)),q(this,_0x38edfb(0x3be),this[_0x38edfb(0x18b)]['asObservable']());}[_0xf63dae(0x34d)](_0xa12ee4){const _0x529a50=_0xf63dae;let {unitID:_0xebd0f2,memberID:_0x27af7b,textRanges:_0x44294}=_0xa12ee4,_0x3e6e73=Sn(_0x44294);if(_0x3e6e73==='')return;let _0x36b53e={'unitID':_0xebd0f2,'memberID':_0x27af7b,'selection':_0x3e6e73};this[_0x529a50(0x18b)][_0x529a50(0x22d)](_0x36b53e);}};let Tn=class extends _0x3517ee{get[_0xf63dae(0x314)](){const _0x3f5238=_0xf63dae;return this[_0x3f5238(0x1b8)][_0x3f5238(0x33d)]();}get[_0xf63dae(0x36c)](){const _0x5da83c=_0xf63dae;return this[_0x5da83c(0x36e)][_0x5da83c(0x33d)]();}constructor(_0x590af2,_0x56cfc1,_0x2c1908,_0x1e4823,_0x2c8556,_0x331fc9,_0x5b274e,_0x3e5b39,_0x33e09d){const _0x1ce6f9=_0xf63dae;super(),this[_0x1ce6f9(0x25a)]=_0x590af2,this[_0x1ce6f9(0x364)]=_0x56cfc1,this[_0x1ce6f9(0x1b0)]=_0x2c1908,this[_0x1ce6f9(0x1d6)]=_0x1e4823,this[_0x1ce6f9(0x205)]=_0x2c8556,this[_0x1ce6f9(0x196)]=_0x331fc9,this[_0x1ce6f9(0x2e8)]=_0x5b274e,this[_0x1ce6f9(0x324)]=_0x3e5b39,this[_0x1ce6f9(0x338)]=_0x33e09d,q(this,_0x1ce6f9(0x229),!0x1),q(this,_0x1ce6f9(0x16f),!0x1),q(this,_0x1ce6f9(0x1b8),new _0x45225c(new Map())),q(this,_0x1ce6f9(0x2a4),this[_0x1ce6f9(0x1b8)][_0x1ce6f9(0x241)]()),q(this,'_roomMembers$',new _0x45225c([])),q(this,'roomMembers$',this['_roomMembers$'][_0x1ce6f9(0x297)](_0x14f51d(0x12c))),q(this,'_updateLocalCursor',_0x480a(_0x25ec92=>{const _0x51baf0=_0x1ce6f9;let _0x402d90={'eventID':_0x218a26[_0x51baf0(0x1ad)],'data':{'unitID':this[_0x51baf0(0x25a)],'memberID':this[_0x51baf0(0x364)][_0x51baf0(0x3a8)](),'selection':Sn(_0x25ec92)}};this['_session'][_0x51baf0(0x1ff)](_0x402d90,this[_0x51baf0(0x25a)]);},0x64));}[_0xf63dae(0x3d8)](){const _0x3497f6=_0xf63dae;super[_0x3497f6(0x3d8)](),this[_0x3497f6(0x1b8)]['next'](new Map()),this['_cursorInfo$'][_0x3497f6(0x36b)](),this['_roomMembers$'][_0x3497f6(0x22d)]([]),this[_0x3497f6(0x36e)][_0x3497f6(0x36b)]();}[_0xf63dae(0x279)](){const _0x911115=_0xf63dae;this[_0x911115(0x16f)]||(this[_0x911115(0x16f)]=!0x0,this[_0x911115(0x364)][_0x911115(0x327)][_0x911115(0x297)](_0x472a9e(this['dispose$']))[_0x911115(0x257)](_0x159830=>{const _0x133e25=_0x911115;_0x159830===_0x5d9759[_0x133e25(0x370)]?this[_0x133e25(0x317)]():this[_0x133e25(0x380)]();}),this['_session'][_0x911115(0x2a2)][_0x911115(0x297)](_0x472a9e(this[_0x911115(0x283)]))[_0x911115(0x257)](_0x1a862b=>{const _0x1d000e=_0x911115;let _0x16b13b=_0x1a862b[_0x1d000e(0x305)];_0x16b13b===_0x218a26[_0x1d000e(0x1ad)]&&this['_onCursorUpdate'](_0x1a862b),_0x16b13b===_0x218a26[_0x1d000e(0x300)]&&this[_0x1d000e(0x218)](_0x1a862b);}),this[_0x911115(0x1e1)](this['_commandService'][_0x911115(0x3b2)](_0x3931f8=>{const _0x4d2361=_0x911115;let _0x547b05=_0x3931f8[_0x4d2361(0x3a1)];_0x547b05!=null&&this[_0x4d2361(0x229)]&&_0x3931f8['id']===_0x1531dd['id']&&_0x547b05[_0x4d2361(0x377)]===this[_0x4d2361(0x25a)]&&_0x547b05['isEditing']===!0x1&&_0x547b05[_0x4d2361(0x359)]['length']>0x0&&this[_0x4d2361(0x2b2)](_0x547b05[_0x4d2361(0x359)]);})),this[_0x911115(0x196)][_0x911115(0x3be)][_0x911115(0x297)](_0x472a9e(this[_0x911115(0x283)]))[_0x911115(0x257)](_0x3496fb=>{const _0xa82805=_0x911115;if((_0x3496fb==null?void 0x0:_0x3496fb[_0xa82805(0x25a)])!==this[_0xa82805(0x25a)])return;let _0x45133d={'eventID':_0x218a26[_0xa82805(0x1ad)],'data':_0x3496fb};this[_0xa82805(0x319)](_0x45133d);}),this['disposeWithMe'](this[_0x911115(0x338)][_0x911115(0x3b2)](_0x740bf2=>{const _0x2716a3=_0x911115;if(_0x740bf2['params']==null)return;let _0x3cc807=_0x740bf2[_0x2716a3(0x3a1)];if(_0x740bf2['id']!==_0xc6fa07['id']||_0x3cc807[_0x2716a3(0x377)]!==this[_0x2716a3(0x25a)])return;let _0x919ac6={'id':_0x2716a3(0x3c3),'params':_0x3cc807},_0x26524a=this[_0x2716a3(0x314)];for(let [_0x40d5b4,_0x123d74]of _0x26524a){let _0x91f439={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2716a3(0x25a)],'actions':null,'textRanges':_0x123d74[_0x2716a3(0x359)]}},_0x395356=this[_0x2716a3(0x2e8)]['transformMutation'](_0x919ac6,_0x91f439,!0x1);if(_0x384fa8(_0x395356))throw _0x395356[_0x2716a3(0x2aa)];_0x26524a['set'](_0x40d5b4,{..._0x123d74,'ranges':_0x395356['m2Prime']['params'][_0x2716a3(0x271)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x26524a);});})));}[_0xf63dae(0x319)](_0xfd4fab){const _0x10b53b=_0xf63dae;var _0x51f8df;let {memberID:_0x54b283,selection:_0x4b74cd}=_0xfd4fab[_0x10b53b(0x2fa)],_0x49a2f2=Cn(_0x4b74cd),_0x4a4258=((_0x51f8df=this[_0x10b53b(0x205)]['getMember'](this[_0x10b53b(0x25a)],_0x54b283))==null?void 0x0:_0x51f8df[_0x10b53b(0x39c)])??_0x10b53b(0x180),_0x5a1c54={'color':this['_colorAssignService'][_0x10b53b(0x3b1)](_0x54b283),'name':_0x4a4258,'ranges':_0x49a2f2},_0x392127=this[_0x10b53b(0x314)];_0x392127[_0x10b53b(0x363)](_0x54b283,_0x5a1c54),this['_cursorInfo$'][_0x10b53b(0x22d)](_0x392127);}['_onCursorDelete'](_0x271012){const _0x475253=_0xf63dae;let {memberID:_0x3bb66a}=_0x271012[_0x475253(0x2fa)],_0x13033a=this[_0x475253(0x314)];_0x13033a[_0x475253(0x1d5)](_0x3bb66a),this['_cursorInfo$'][_0x475253(0x22d)](_0x13033a);}[_0xf63dae(0x317)](){const _0x3ef234=_0xf63dae;var _0x20b944;if(this[_0x3ef234(0x229)]=!0x0,((_0x20b944=this[_0x3ef234(0x324)]['getFocusedUnit']())==null?void 0x0:_0x20b944[_0x3ef234(0x21d)]())!==this[_0x3ef234(0x25a)])return;let _0x502570=this[_0x3ef234(0x1b0)]['get'](_0x4dbc30)['getDocRanges']();Array['isArray'](_0x502570)&&_0x502570[_0x3ef234(0x3c7)]>0x0&&this[_0x3ef234(0x2b2)](_0x502570);}['_toggleOffline'](){this['_online']=!0x1;}};Tn=Y([J(0x2,_0x231ef2(_0x5e0363)),J(0x3,_0x231ef2(xn)),J(0x4,_0x231ef2(_0xb4ed64)),J(0x5,_0x231ef2(wn)),J(0x6,_0x1699e4),J(0x7,_0x4bc33c),J(0x8,_0x1fc91d)],Tn);const En=()=>{let _0x40a00f=[],_0x18ddc1=!0x1;return _0x22bec3=>{const _0x56972e=_0x344a;_0x40a00f[_0x56972e(0x28f)](_0x22bec3),_0x18ddc1||(_0x18ddc1=!0x0,setTimeout(()=>{const _0x25659f=_0x56972e;_0x40a00f[_0x25659f(0x23d)](_0x206a4a=>_0x206a4a()),_0x40a00f=[],_0x18ddc1=!0x1;}));};};let Dn=class extends _0x3517ee{get[_0xf63dae(0x314)](){const _0x39e708=_0xf63dae;return this[_0x39e708(0x1b8)][_0x39e708(0x33d)]();}get[_0xf63dae(0x36c)](){const _0x3a1379=_0xf63dae;return this[_0x3a1379(0x36e)][_0x3a1379(0x33d)]();}constructor(_0x163439,_0x1ba193,_0x49e2a,_0x37cb63,_0x296291,_0x41da59,_0x4ca514,_0x5755de){const _0x8145db=_0xf63dae;super(),this[_0x8145db(0x25a)]=_0x163439,this['_session']=_0x1ba193,this['_injector']=_0x49e2a,this['_colorAssignService']=_0x37cb63,this['_memberService']=_0x296291,this[_0x8145db(0x324)]=_0x41da59,this[_0x8145db(0x338)]=_0x4ca514,this['_refRangeService']=_0x5755de,q(this,_0x8145db(0x229),!0x1),q(this,_0x8145db(0x16f),!0x1),q(this,_0x8145db(0x1b8),new _0x45225c(new Map())),q(this,_0x8145db(0x2a4),this[_0x8145db(0x1b8)]['asObservable']()),q(this,_0x8145db(0x36e),new _0x45225c([])),q(this,_0x8145db(0x361),this[_0x8145db(0x36e)][_0x8145db(0x297)](_0x14f51d(0x12c))),q(this,_0x8145db(0x2b2),_0x480a((_0x1a4686,_0x42b4ca)=>{const _0x43c1d4=_0x8145db;let _0x4332a7={'eventID':_0x218a26['UPDATE_CURSOR'],'data':{'unitID':this[_0x43c1d4(0x25a)],'memberID':this[_0x43c1d4(0x364)]['getMemberID'](),'selection':_0x5d869e(_0x1a4686,_0x42b4ca[_0x43c1d4(0x373)])}};this[_0x43c1d4(0x364)][_0x43c1d4(0x1ff)](_0x4332a7,this[_0x43c1d4(0x25a)]);},0x64));}[_0xf63dae(0x3d8)](){const _0x2d0612=_0xf63dae;super['dispose'](),this[_0x2d0612(0x1b8)][_0x2d0612(0x22d)](new Map()),this['_cursorInfo$']['complete'](),this[_0x2d0612(0x36e)][_0x2d0612(0x22d)]([]),this[_0x2d0612(0x36e)][_0x2d0612(0x36b)]();}[_0xf63dae(0x279)](){const _0x535470=_0xf63dae;this['_init']||(this[_0x535470(0x16f)]=!0x0,this['_session'][_0x535470(0x327)][_0x535470(0x297)](_0x472a9e(this[_0x535470(0x283)]))[_0x535470(0x257)](_0xb4d421=>{const _0x36d446=_0x535470;_0xb4d421===_0x5d9759['ONLINE']?this[_0x36d446(0x317)]():this[_0x36d446(0x380)]();}),this[_0x535470(0x364)][_0x535470(0x2a2)][_0x535470(0x297)](_0x472a9e(this[_0x535470(0x283)]))[_0x535470(0x257)](_0x4878a4=>{const _0x135fac=_0x535470;let _0x18b0e6=_0x4878a4[_0x135fac(0x305)];_0x18b0e6===_0x218a26[_0x135fac(0x1ad)]&&this[_0x135fac(0x319)](_0x4878a4),_0x18b0e6===_0x218a26[_0x135fac(0x300)]&&this[_0x135fac(0x218)](_0x4878a4);}),this[_0x535470(0x208)](),this[_0x535470(0x1e1)](this[_0x535470(0x338)][_0x535470(0x3b2)](_0x479158=>{const _0x370a61=_0x535470;if(this['_online']&&_0x479158['id']===_0x59276['id']&&_0x479158[_0x370a61(0x3a1)][_0x370a61(0x377)]===this[_0x370a61(0x25a)]){let _0x24bfdb=_0x479158[_0x370a61(0x3a1)];this['_updateLocalCursor'](_0x24bfdb[_0x370a61(0x1b6)],_0x24bfdb[_0x370a61(0x376)][0x0]);}})));}[_0xf63dae(0x319)](_0x311c20){const _0x2dee9c=_0xf63dae;var _0x54aef1;let {memberID:_0x2fe4a2,selection:_0x33fa1d}=_0x311c20['data'],{sheetName:_0x6a5e83,range:_0x1f1fe1}=_0x4949f7(_0x33fa1d),_0x1ee4e3={'name':((_0x54aef1=this[_0x2dee9c(0x205)][_0x2dee9c(0x2ff)](this['unitID'],_0x2fe4a2))==null?void 0x0:_0x54aef1[_0x2dee9c(0x39c)])??_0x2dee9c(0x180),'range':this[_0x2dee9c(0x3c1)](_0x6a5e83,_0x1f1fe1),'sheetID':_0x6a5e83,'color':this[_0x2dee9c(0x1d6)][_0x2dee9c(0x3b1)](_0x2fe4a2),'selection':_0x33fa1d},_0xcf0c37=this[_0x2dee9c(0x314)];_0xcf0c37[_0x2dee9c(0x363)](_0x2fe4a2,_0x1ee4e3),this[_0x2dee9c(0x1b8)]['next'](_0xcf0c37);}[_0xf63dae(0x218)](_0x3f0ff2){const _0x291d4e=_0xf63dae;let {memberID:_0x1684c7}=_0x3f0ff2[_0x291d4e(0x2fa)],_0x308098=this[_0x291d4e(0x314)];_0x308098[_0x291d4e(0x1d5)](_0x1684c7),this[_0x291d4e(0x1b8)][_0x291d4e(0x22d)](_0x308098);}['_getMergeRange'](_0x27898b,_0x585404){const _0x268daf=_0xf63dae;var _0x4caaae;let _0x1393cc=(_0x4caaae=this[_0x268daf(0x324)]['getUnit'](this[_0x268daf(0x25a)],_0xe0fbed['UNIVER_SHEET']))==null||(_0x4caaae=_0x4caaae['getSheetBySheetId'](_0x27898b))==null?void 0x0:_0x4caaae['getMergeData']();return(_0x1393cc==null?void 0x0:_0x1393cc[_0x268daf(0x288)](_0x17c566=>_0x51cdea[_0x268daf(0x310)](_0x17c566,_0x585404)))||_0x585404;}[_0xf63dae(0x208)](){const _0x2ad4a9=_0xf63dae;let _0x56d143=new _0x54a82f(),_0x1e11a4=En(),_0x3e4ba7=()=>{const _0x3bea76=_0x344a;_0x56d143[_0x3bea76(0x3d8)]();let _0x5b3d02=(_0x373c4e,_0x2461df,_0x5a82ce,_0x460349)=>{const _0x16006f=_0x3bea76;let _0x2b6f4e=[];switch(_0x373c4e['id']){case _0x16b730[_0x16006f(0x27a)]:_0x2b6f4e=_0x44fb13(_0x373c4e,_0x460349);break;case _0x16b730['DeleteRangeMoveUpCommandId']:_0x2b6f4e=_0x1cee8c(_0x373c4e,_0x460349);break;case _0x16b730[_0x16006f(0x228)]:_0x2b6f4e=_0x150afc(_0x373c4e,_0x460349);break;case _0x16b730[_0x16006f(0x2ed)]:_0x2b6f4e=_0x423039(_0x373c4e,_0x460349);break;case _0x16b730[_0x16006f(0x1c4)]:_0x2b6f4e=_0x57e0f9(_0x373c4e,_0x460349);break;case _0x16b730[_0x16006f(0x2b0)]:_0x2b6f4e=_0x1e1075(_0x373c4e,_0x460349);break;case _0x16b730[_0x16006f(0x1e4)]:_0x2b6f4e=_0x347455(_0x373c4e,_0x460349);break;case _0x16b730[_0x16006f(0x1e7)]:_0x2b6f4e=_0x3c8caf(_0x373c4e,_0x460349);break;case _0x16b730[_0x16006f(0x2a5)]:_0x2b6f4e=_0x58352f(_0x373c4e,_0x460349);break;}let _0x3aadbc=_0x1485d9(_0x2b6f4e,_0x460349),_0x28fd5e=this[_0x16006f(0x314)][_0x16006f(0x18a)](_0x2461df);if(_0x28fd5e&&_0x3aadbc){let _0x325a3b={..._0x28fd5e,'range':_0x3aadbc};this[_0x16006f(0x314)][_0x16006f(0x363)](_0x2461df,_0x325a3b),_0x1e11a4(()=>{const _0x29f81e=_0x16006f;let _0x1551bb=this[_0x29f81e(0x221)][_0x29f81e(0x391)](_0x3aadbc,_0x460ed7=>(_0x1551bb['dispose'](),_0x5b3d02(_0x460ed7,_0x2461df,_0x5a82ce,_0x3aadbc)));_0x56d143[_0x29f81e(0x2e1)](_0x1551bb);});}return{'redos':[],'undos':[]};};this[_0x3bea76(0x314)][_0x3bea76(0x23d)]((_0x504a65,_0x9bb85b)=>{const _0x1f2fda=_0x3bea76;let {range:_0x5d27f1,sheetID:_0x4ade7e}=_0x504a65,_0x5a8dd0=this[_0x1f2fda(0x221)][_0x1f2fda(0x391)](_0x5d27f1,_0x5ccb6b=>(_0x5a8dd0[_0x1f2fda(0x3d8)](),_0x5b3d02(_0x5ccb6b,_0x9bb85b,_0x4ade7e,_0x5d27f1)));_0x56d143[_0x1f2fda(0x2e1)](_0x5a8dd0);});};this[_0x2ad4a9(0x1e1)](_0x499979(this[_0x2ad4a9(0x1b8)][_0x2ad4a9(0x257)](()=>{_0x3e4ba7();})));}[_0xf63dae(0x317)](){const _0x3b5dd3=_0xf63dae;var _0xbd933,_0x16b081;if(this[_0x3b5dd3(0x229)]=!0x0,((_0xbd933=this[_0x3b5dd3(0x324)][_0x3b5dd3(0x2ef)]())==null?void 0x0:_0xbd933[_0x3b5dd3(0x21d)]())!==this[_0x3b5dd3(0x25a)])return;let _0x1d6e76=(_0x16b081=this[_0x3b5dd3(0x1b0)][_0x3b5dd3(0x18a)](_0x10dbfe)[_0x3b5dd3(0x2c1)]())==null?void 0x0:_0x16b081[0x0],_0x7ef76=this['_univerInstanceService'][_0x3b5dd3(0x3cb)](_0xe0fbed[_0x3b5dd3(0x379)])[_0x3b5dd3(0x219)]();_0x1d6e76&&_0x7ef76&&this[_0x3b5dd3(0x2b2)](_0x7ef76[_0x3b5dd3(0x18d)](),_0x1d6e76);}[_0xf63dae(0x380)](){const _0x25607e=_0xf63dae;this[_0x25607e(0x229)]=!0x1;}};Dn=Y([J(0x2,_0x231ef2(_0x5e0363)),J(0x3,_0x231ef2(xn)),J(0x4,_0x231ef2(_0xb4ed64)),J(0x5,_0x4bc33c),J(0x6,_0x1fc91d),J(0x7,_0x231ef2(_0x761472))],Dn);let Z=class extends _0x3517ee{constructor(_0x81c4,_0x10f65c,_0xa45ea6){const _0x44e1f2=_0xf63dae;super(),this['_univerInstanceService']=_0x81c4,this[_0x44e1f2(0x1b0)]=_0x10f65c,this[_0x44e1f2(0x389)]=_0xa45ea6,q(this,_0x44e1f2(0x35f),new Map()),q(this,_0x44e1f2(0x266),new _0x10b674()),this[_0x44e1f2(0x16f)]();}[_0xf63dae(0x3d8)](){const _0xe83c52=_0xf63dae;super[_0xe83c52(0x3d8)](),this['_entityInit$'][_0xe83c52(0x36b)](),this[_0xe83c52(0x35f)][_0xe83c52(0x23d)](_0x1dbdb6=>_0x1dbdb6[_0xe83c52(0x3d8)]());}['getCollabCursors$'](_0x5111fe){const _0x46e08f=_0xf63dae;let _0x159fb1=this[_0x46e08f(0x35f)][_0x46e08f(0x18a)](_0x5111fe);return _0x159fb1?_0x159fb1[_0x46e08f(0x2a4)]:this[_0x46e08f(0x266)][_0x46e08f(0x297)](_0x380b6d(_0xe75da0=>_0xe75da0[_0x46e08f(0x25a)]===_0x5111fe),_0x135751(_0x21f3b0=>_0x21f3b0[_0x46e08f(0x2a4)]));}[_0xf63dae(0x16f)](){const _0x3c0554=_0xf63dae;this[_0x3c0554(0x324)][_0x3c0554(0x2a6)](_0xe0fbed['UNIVER_SHEET'])[_0x3c0554(0x297)](_0x472a9e(this[_0x3c0554(0x283)]))[_0x3c0554(0x257)](async _0x493c66=>{const _0x4786fb=_0x3c0554;let _0x4de022=_0x493c66[_0x4786fb(0x195)]['getUnitId'](),_0x36b504=await this[_0x4786fb(0x367)](_0x4de022);this['_entityInit$']['next'](_0x36b504),this[_0x4786fb(0x35f)]['set'](_0x4de022,_0x36b504);}),this[_0x3c0554(0x324)]['getTypeOfUnitAdded$'](_0xe0fbed[_0x3c0554(0x24e)])[_0x3c0554(0x297)](_0x472a9e(this[_0x3c0554(0x283)]))[_0x3c0554(0x297)](_0x380b6d(_0x5c5570=>!_0x5c5570['unit'][_0x3c0554(0x21d)]()['startsWith']('__')))[_0x3c0554(0x257)](async _0x3972c2=>{const _0x4946ab=_0x3c0554;let {unit:_0x2bfa94}=_0x3972c2,_0x1fa2eb=_0x2bfa94['getUnitId'](),_0x1a7e38=await this['_startDocCollabCursor'](_0x1fa2eb);this[_0x4946ab(0x266)][_0x4946ab(0x22d)](_0x1a7e38),this[_0x4946ab(0x35f)][_0x4946ab(0x363)](_0x1fa2eb,_0x1a7e38);}),_0x4f7818(this[_0x3c0554(0x324)][_0x3c0554(0x27e)](_0xe0fbed['UNIVER_DOC']),this[_0x3c0554(0x324)][_0x3c0554(0x27e)](_0xe0fbed[_0x3c0554(0x379)]))[_0x3c0554(0x297)](_0x472a9e(this[_0x3c0554(0x283)]))[_0x3c0554(0x257)](_0xb8ab47=>{const _0x216433=_0x3c0554;let _0x32938b=_0xb8ab47[_0x216433(0x21d)](),_0x47dcb1=this['_entities'][_0x216433(0x18a)](_0x32938b);_0x47dcb1&&(_0x47dcb1[_0x216433(0x3d8)](),this[_0x216433(0x35f)][_0x216433(0x1d5)](_0x32938b));});}async[_0xf63dae(0x367)](_0x68b268){const _0x51339a=_0xf63dae;let _0x227ed2=await this[_0x51339a(0x389)]['requireSession'](_0x68b268),_0x1d2b8a=this[_0x51339a(0x1b0)]['createInstance'](Dn,_0x68b268,_0x227ed2);return _0x1d2b8a[_0x51339a(0x279)](),_0x1d2b8a;}async['_startDocCollabCursor'](_0xaf61bb){const _0x4cc01a=_0xf63dae;let _0x2ba052=await this[_0x4cc01a(0x389)][_0x4cc01a(0x284)](_0xaf61bb),_0x5a4997=this['_injector'][_0x4cc01a(0x28b)](Tn,_0xaf61bb,_0x2ba052);return _0x5a4997[_0x4cc01a(0x279)](),_0x5a4997;}};Z=Y([J(0x0,_0x4bc33c),J(0x1,_0x231ef2(_0x5e0363)),J(0x2,_0x231ef2(_0x4fcc23))],Z);function On(_0x1334db,_0x37c04b){const _0x9e6529=_0xf63dae;_0x1334db[_0x9e6529(0x277)](),_0x1334db['font']=_0x9e6529(0x1ee);let _0xb8929=_0x1334db[_0x9e6529(0x3ca)](_0x37c04b)['width'];return _0x1334db[_0x9e6529(0x32f)](),Math[_0x9e6529(0x1cc)](_0xb8929+0x8,0xc8);}function kn(_0x5b54f8,_0x1f4d27){const _0x1703a2=_0xf63dae;let {radius:_0x144465,width:_0x154154,height:_0x3fb0bc}=_0x1f4d27;_0x144465??=0x0,_0x154154??=0x1e,_0x3fb0bc??=0x1e;let _0x6dab30=0x0,_0x519d46=0x0,_0x21822a=0x0;_0x6dab30=_0x519d46=_0x21822a=Math[_0x1703a2(0x1cc)](_0x144465,_0x154154/0x2,_0x3fb0bc/0x2),_0x5b54f8['beginPath'](),_0x5b54f8['moveTo'](_0x6dab30,0x0),_0x5b54f8['lineTo'](_0x154154-_0x519d46,0x0),_0x5b54f8[_0x1703a2(0x2c0)](_0x154154-_0x519d46,_0x519d46,_0x519d46,Math['PI']*0x3/0x2,0x0,!0x1),_0x5b54f8[_0x1703a2(0x1c8)](_0x154154,_0x3fb0bc-_0x21822a),_0x5b54f8['arc'](_0x154154-_0x21822a,_0x3fb0bc-_0x21822a,_0x21822a,0x0,Math['PI']/0x2,!0x1),_0x5b54f8[_0x1703a2(0x1c8)](0x0,_0x3fb0bc),_0x5b54f8['lineTo'](0x0,_0x6dab30),_0x5b54f8[_0x1703a2(0x2c0)](_0x6dab30,_0x6dab30,_0x6dab30,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5b54f8[_0x1703a2(0x22b)](),_0x1f4d27[_0x1703a2(0x38b)]&&(_0x5b54f8[_0x1703a2(0x277)](),_0x5b54f8[_0x1703a2(0x30d)]=_0x1f4d27['fill'],_0x1f4d27[_0x1703a2(0x2a0)]===_0x1703a2(0x326)?_0x5b54f8[_0x1703a2(0x38b)](_0x1703a2(0x326)):_0x5b54f8[_0x1703a2(0x38b)](),_0x5b54f8[_0x1703a2(0x32f)]());}var An=class e extends _0x27a4b3{constructor(_0x576a9f,_0x79322b){const _0x571300=_0xf63dae;super(_0x576a9f,_0x79322b),q(this,_0x571300(0x19f),void 0x0),q(this,_0x571300(0x35a),void 0x0),this[_0x571300(0x19f)]=_0x79322b==null?void 0x0:_0x79322b[_0x571300(0x19f)],this[_0x571300(0x35a)]=_0x79322b==null?void 0x0:_0x79322b['text'];}static[_0xf63dae(0x26f)](_0x4cb528,_0x227869){const _0x1e5b7e=_0xf63dae;let {text:_0x4f33ea,color:_0x53533b}=_0x227869;_0x4cb528[_0x1e5b7e(0x277)](),_0x4cb528[_0x1e5b7e(0x189)]=_0x1e5b7e(0x34b);let _0x22dca3=_0x4cb528['measureText'](_0x4f33ea)[_0x1e5b7e(0x17e)];if(kn(_0x4cb528,{'height':0x14,'radius':0x4,'width':On(_0x4cb528,_0x4f33ea),'fill':_0x53533b,'evented':!0x1}),_0x4cb528[_0x1e5b7e(0x30d)]=_0x1e5b7e(0x253),_0x22dca3>0xc0){let _0x43ea6b='',_0x86cbd8=0x0;for(let _0x42bc0f of _0x4f33ea){let _0x59ac6d=_0x4cb528[_0x1e5b7e(0x3ca)](_0x42bc0f)['width'];if(_0x86cbd8+_0x59ac6d<=0xc0-_0x4cb528[_0x1e5b7e(0x3ca)](_0x1e5b7e(0x296))['width'])_0x43ea6b+=_0x42bc0f,_0x86cbd8+=_0x59ac6d;else{_0x43ea6b+=_0x1e5b7e(0x296);break;}}_0x4cb528['fillText'](_0x43ea6b,0x4,0xf);}else _0x4cb528[_0x1e5b7e(0x2f3)](_0x4f33ea,0x4,0xf);_0x4cb528['restore']();}[_0xf63dae(0x254)](_0x1abe11){const _0x318add=_0xf63dae;e[_0x318add(0x26f)](_0x1abe11,this);}};const jn=_0xf63dae(0x1ac);var Mn=class{constructor(_0x58cbd7,_0x539d4a,_0x5a69ff,_0x278ffb){const _0x2b8737=_0xf63dae;this[_0x2b8737(0x351)]=_0x58cbd7,this['_scene']=_0x539d4a,this['_docSkeleton']=_0x5a69ff,this[_0x2b8737(0x194)]=_0x278ffb,q(this,_0x2b8737(0x2f6),[]),q(this,_0x2b8737(0x1db),null),q(this,_0x2b8737(0x1fc),null),q(this,_0x2b8737(0x355),null),q(this,'_hideTimer',null),q(this,_0x2b8737(0x1ec),null),this[_0x2b8737(0x2be)]();}set[_0xf63dae(0x2d6)](_0x14833c){const _0x3f44e1=_0xf63dae;_0x14833c?(this['_anchorDot']&&this[_0x3f44e1(0x355)][_0x3f44e1(0x3bc)](),this[_0x3f44e1(0x1fc)]&&this['_textBubble']['show']()):(this[_0x3f44e1(0x355)]&&this[_0x3f44e1(0x355)][_0x3f44e1(0x1a9)](),this[_0x3f44e1(0x1fc)]&&this[_0x3f44e1(0x1fc)][_0x3f44e1(0x3bc)]());}[_0xf63dae(0x3d8)](){const _0x3a9912=_0xf63dae;for(let _0x373034 of this['_shapes'])_0x373034[_0x3a9912(0x3d8)]();this['_textBubble']&&this['_textBubble']['dispose'](),this['_anchorDot']&&this[_0x3a9912(0x355)]['dispose'](),this[_0x3a9912(0x1db)]&&this[_0x3a9912(0x1db)][_0x3a9912(0x3d8)](),this[_0x3a9912(0x1ec)]&&this['_eventUnsubscribe']();}[_0xf63dae(0x2be)](){const _0x493963=_0xf63dae;let {_docSkeleton:_0x30558e,_document:_0x41ee3a}=this,{color:_0x4ebc1f,name:_0x29c09a,ranges:_0x473198}=this[_0x493963(0x351)],_0x44bdcb=_0x41ee3a[_0x493963(0x36f)](),{docsLeft:_0x26bc35,docsTop:_0x219860}=_0x44bdcb,_0x3097f3=new _0x2fbd6e(_0x44bdcb,_0x30558e);for(let {startOffset:_0x25a18c,endOffset:_0x2a0298,rangeType:_0xa9eec2,segmentId:_0x3053cb,segmentPage:_0x21e491,collapsed:_0x6822f5,isActive:_0x46c525}of _0x473198){let _0x3f9928=_0x30558e['findNodePositionByCharIndex'](_0x25a18c,!0x0,_0x3053cb,_0x21e491),_0xea0da0=_0x30558e[_0x493963(0x170)](_0x2a0298,!0x0,_0x3053cb,_0x21e491);_0xea0da0??=_0x30558e[_0x493963(0x170)](_0x2a0298-0x1,!0x1,_0x3053cb,_0x21e491);let _0x56035c=Nn(_0x3f9928,_0xea0da0);if(_0x46c525&&_0x56035c[_0x493963(0x2c6)]){let {contentBoxPointGroup:_0x33e2ef}=_0x3097f3[_0x493963(0x3e4)](_0xea0da0,_0xea0da0);if(_0x33e2ef[_0x493963(0x3c7)]===0x0)continue;this[_0x493963(0x1e0)](_0x4ebc1f,_0x33e2ef,_0x26bc35,_0x219860,_0x29c09a),this[_0x493963(0x1ec)]=this[_0x493963(0x2dd)]();}if(_0x3f9928&&_0xea0da0){if(_0xa9eec2===_0x486842[_0x493963(0x399)]){let {pointGroup:_0x1309e8}=new _0x23d799(_0x44bdcb,_0x30558e)[_0x493963(0x3e4)](_0x3f9928,_0xea0da0)??{};if(_0x1309e8==null||_0x1309e8[_0x493963(0x3c7)]===0x0)continue;this[_0x493963(0x37e)](_0x4ebc1f,_0x1309e8,_0x26bc35,_0x219860);}else{if(!_0x6822f5&&_0x56035c[_0x493963(0x16b)]){let {borderBoxPointGroup:_0x14dcaf}=_0x3097f3[_0x493963(0x3e4)](_0x3f9928,_0xea0da0);if(_0x14dcaf['length']===0x0)continue;this[_0x493963(0x392)](_0x4ebc1f,_0x14dcaf,_0x26bc35,_0x219860);}}}}}[_0xf63dae(0x1e0)](_0x456db7,_0x5d50fb,_0x1c2987,_0x4d7fbd,_0x367aa4){const _0x3a88af=_0xf63dae;let {left:_0x31847b,top:_0x39f421,height:_0x4c5dcc}=this[_0x3a88af(0x3b9)](_0x5d50fb),_0x297224=1.5/this[_0x3a88af(0x2f8)](),_0x2aea98=new _0x3e2804(jn+_0x10b3a5(0x6),{'left':_0x31847b+_0x1c2987-_0x297224,'top':_0x39f421+_0x4d7fbd,'height':_0x4c5dcc,'width':1.5,'fill':_0x456db7||_0x226e21(_0x3a1a2f[_0x3a88af(0x3b7)],0x0),'strokeWidth':_0x297224,'stroke':_0x3a88af(0x236),'evented':!0x0});this[_0x3a88af(0x1db)]=_0x2aea98,this[_0x3a88af(0x29d)][_0x3a88af(0x18f)](_0x2aea98,_0x175b26);let _0x33050c=new _0x3e2804(jn+_0x10b3a5(0x6),{'left':_0x31847b+_0x1c2987-_0x297224,'top':_0x39f421+_0x4d7fbd-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x456db7||_0x226e21(_0x3a1a2f[_0x3a88af(0x3b7)],0x0),'strokeWidth':0x0,'stroke':_0x456db7||_0x226e21(_0x3a1a2f['black'],0x0),'evented':!0x1});this[_0x3a88af(0x355)]=_0x33050c,this['_scene'][_0x3a88af(0x18f)](_0x33050c,_0x175b26);let _0x1d0c94=new An(jn+_0x10b3a5(0x6),{'left':_0x31847b+_0x1c2987-_0x297224,'top':_0x39f421+_0x4d7fbd-0x14,'text':_0x367aa4,'color':_0x456db7});this[_0x3a88af(0x1fc)]=_0x1d0c94,this['_scene'][_0x3a88af(0x18f)](_0x1d0c94,_0x175b26),this['_hover']=!0x1;}[_0xf63dae(0x2dd)](){const _0x45f4aa=_0xf63dae;let _0x20b742=this['_anchor'][_0x45f4aa(0x23a)]['subscribeEvent'](()=>{const _0x3d443d=_0x45f4aa;this[_0x3d443d(0x2d6)]=!0x0;}),_0x329ee4=this[_0x45f4aa(0x1db)]['onPointerLeave$'][_0x45f4aa(0x1d1)](()=>{const _0x2eae87=_0x45f4aa;this[_0x2eae87(0x242)]&&clearTimeout(this['_hideTimer']),this[_0x2eae87(0x242)]=setTimeout(()=>{const _0x2d5e27=_0x2eae87;this[_0x2d5e27(0x2d6)]=!0x1;},0x7d0);});return()=>{const _0x56a1a7=_0x45f4aa;_0x20b742['unsubscribe'](),_0x329ee4[_0x56a1a7(0x307)]();};}['_drawTextRange'](_0x3514ae,_0x434f63,_0x5d3bb8,_0x4c6145){const _0x1c1e39=_0xf63dae;let _0x37fab9=0.2,_0x3ed846=new _0x5b87d7(_0x3514ae)[_0x1c1e39(0x202)](_0x37fab9)['toRgbString'](),_0x310118=new _0x7fe91(_0x1c1e39(0x176)+_0x10b3a5(0x6),{'pointsGroup':_0x434f63,'fill':_0x3ed846||_0x226e21(_0x3a1a2f[_0x1c1e39(0x3b7)],_0x37fab9),'left':_0x5d3bb8,'top':_0x4c6145,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1c1e39(0x28f)](_0x310118),this[_0x1c1e39(0x29d)][_0x1c1e39(0x18f)](_0x310118,_0x175b26);}['_drawRectRange'](_0x585ce2,_0x18c770,_0x19f115,_0x59dfb9){const _0x215d90=_0xf63dae;let _0x35ff9c=0.2,_0x5f368c=new _0x5b87d7(_0x585ce2)[_0x215d90(0x202)](_0x35ff9c)[_0x215d90(0x3d1)](),_0x29492e=new _0x7fe91(_0x215d90(0x265)+_0x10b3a5(0x6),{'pointsGroup':_0x18c770,'fill':_0x5f368c||_0x226e21(_0x3a1a2f[_0x215d90(0x3b7)],_0x35ff9c),'left':_0x19f115,'top':_0x59dfb9,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x215d90(0x28f)](_0x29492e),this[_0x215d90(0x29d)][_0x215d90(0x18f)](_0x29492e,_0x175b26);}['_getAnchorBounding'](_0x2fcd38){let _0x1524d8=_0x2fcd38[0x0],_0x5a39db=_0x1524d8[0x0],_0x4e3f49=_0x1524d8[0x2],{x:_0x3fd809,y:_0x38d96e}=_0x5a39db,{x:_0x2f41d7,y:_0x4af46e}=_0x4e3f49;return{'left':_0x3fd809,'top':_0x38d96e,'width':_0x2f41d7-_0x3fd809,'height':_0x4af46e-_0x38d96e};}['_getScale'](){const _0x55dbd4=_0xf63dae;let {scaleX:_0x5b48cb,scaleY:_0x52391d}=this[_0x55dbd4(0x29d)][_0x55dbd4(0x17f)]();return Math['max'](_0x5b48cb,_0x52391d);}};function Nn(_0x483181,_0x3c6857){const _0x1adb1b=_0xf63dae;if(!_0x3c6857)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x483181||_0x483181[_0x1adb1b(0x3d4)]!==_0x3c6857[_0x1adb1b(0x3d4)]||(_0x483181[_0x1adb1b(0x3d4)]===_0x4a5ed0['HEADER']||_0x483181['pageType']===_0x4a5ed0[_0x1adb1b(0x225)])&&_0x483181[_0x1adb1b(0x2f4)]!==_0x3c6857[_0x1adb1b(0x2f4)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x212d89=_0x5a3d01(_0x483181),_0x297851=_0x5a3d01(_0x3c6857);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x212d89==null||_0x297851==null?_0x212d89==null&&_0x297851==null:_0x212d89[_0x1adb1b(0x31c)]===_0x297851[_0x1adb1b(0x31c)]&&_0x212d89[_0x1adb1b(0x1f2)]===_0x297851[_0x1adb1b(0x1f2)]&&_0x212d89[_0x1adb1b(0x222)]===_0x297851[_0x1adb1b(0x222)]};}let Pn=class extends _0x3517ee{constructor(_0x2778c8,_0x51ce71,_0x14fc82,_0x2c8e46,_0x12e69b){const _0x43f917=_0xf63dae;super(),this[_0x43f917(0x1c9)]=_0x2778c8,this['_docSkeletonManagerService']=_0x51ce71,this[_0x43f917(0x1b2)]=_0x14fc82,this[_0x43f917(0x338)]=_0x2c8e46,this['_themeService']=_0x12e69b,q(this,'_cursorShapes',[]),q(this,'_cursors',[]),this[_0x43f917(0x16f)]();}[_0xf63dae(0x16f)](){const _0x408257=_0xf63dae;let _0x578348=this[_0x408257(0x1c9)]['unitId'],_0x55f254=this[_0x408257(0x332)];this[_0x408257(0x1e1)](_0x277223([this['_collabCursorController'][_0x408257(0x357)](_0x578348),this['_themeService']['currentTheme$']])[_0x408257(0x297)](_0x53bebe(([_0x252988,_0x55d498])=>({'skeleton':_0x55f254[_0x408257(0x2db)](),'cursors':[..._0x252988['values']()][_0x408257(0x3af)](_0xc73e5f=>({..._0xc73e5f,'color':this[_0x408257(0x33a)]['getColorFromTheme'](_0xc73e5f['color'])}))})))[_0x408257(0x257)](_0x48b45b=>{const _0x533289=_0x408257;if(this[_0x533289(0x17a)](),_0x48b45b){let {skeleton:_0x392593,cursors:_0x2b6813}=_0x48b45b;this[_0x533289(0x339)](_0x392593,_0x2b6813);}})),this['_initResize'](),this[_0x408257(0x1a8)]();}['_updateCollabCursors'](_0x13f20d,_0x4f5484){const _0x179605=_0xf63dae;let {scene:_0x76fab,mainComponent:_0x93029}=this[_0x179605(0x1c9)],_0xb157d3=_0x4f5484[_0x179605(0x2e4)](_0x5b011e=>new Mn(_0x5b011e,_0x76fab,_0x13f20d,_0x93029));this[_0x179605(0x35d)]=_0xb157d3,this[_0x179605(0x2cb)]=_0x4f5484;}['_refreshCollabCursors'](){const _0x4822b4=_0xf63dae;this['_removeCollabCursors']();let {scene:_0xfb8d5,mainComponent:_0x52f837}=this[_0x4822b4(0x1c9)],_0x11042b=this['_docSkeletonManagerService']['getSkeleton'](),_0xa0acb0=this[_0x4822b4(0x2cb)]['map'](_0x2d47be=>new Mn(_0x2d47be,_0xfb8d5,_0x11042b,_0x52f837));this[_0x4822b4(0x35d)]=_0xa0acb0;}[_0xf63dae(0x17a)](){const _0xb175fb=_0xf63dae;this['_cursorShapes'][_0xb175fb(0x23d)](_0x14642b=>_0x14642b[_0xb175fb(0x3d8)]()),this[_0xb175fb(0x35d)]=[];}['_initCommandExecutedListener'](){const _0x5af0fe=_0xf63dae;let _0x3a76b2=[_0x690aef['id']];this[_0x5af0fe(0x1e1)](this[_0x5af0fe(0x338)][_0x5af0fe(0x3b2)](_0x1e22d9=>{const _0x465b04=_0x5af0fe;_0x3a76b2[_0x465b04(0x272)](_0x1e22d9['id'])&&_0x1e22d9[_0x465b04(0x3a1)][_0x465b04(0x377)]===this['_context'][_0x465b04(0x377)]&&this[_0x465b04(0x31a)]();}));}[_0xf63dae(0x247)](){const _0x331593=_0xf63dae;this[_0x331593(0x1e1)](_0x467067(this[_0x331593(0x1c9)]['engine'][_0x331593(0x35e)])[_0x331593(0x297)](_0x50c397(_0x4dafb6=>_0x4dafb6[_0x331593(0x1b5)]===_0xac25e5[_0x331593(0x20c)]),_0x56e9e9(0x10))[_0x331593(0x257)](()=>{const _0x3182f1=_0x331593;this[_0x3182f1(0x31a)]();}));}};Pn=Y([J(0x1,_0x231ef2(_0x28ea5c)),J(0x2,_0x231ef2(Z)),J(0x3,_0x1fc91d),J(0x4,_0x231ef2(_0x1e4fb9))],Pn);function _0x344a(_0x44b9fa,_0x5c8e10){_0x44b9fa=_0x44b9fa-0x165;const _0x52e24d=_0x52e2();let _0x344a48=_0x52e24d[_0x44b9fa];return _0x344a48;}var Fn=class extends _0x27a4b3{constructor(_0x4c9df4,_0x16d9ee){const _0x389a9a=_0xf63dae;super(_0x4c9df4,_0x16d9ee),q(this,_0x389a9a(0x20a),void 0x0),q(this,_0x389a9a(0x1f4),!0x1),q(this,_0x389a9a(0x293),void 0x0),q(this,_0x389a9a(0x3dd),''),q(this,'_labelPosition',_0x389a9a(0x269)),q(this,_0x389a9a(0x3d0),void 0x0),q(this,_0x389a9a(0x1fb),void 0x0),q(this,'_highlight',void 0x0),q(this,'_highlightSecond',0x4),q(this,_0x389a9a(0x34f),void 0x0),q(this,_0x389a9a(0x25b),void 0x0),q(this,_0x389a9a(0x216),!0x0),q(this,_0x389a9a(0x383),0x0),q(this,_0x389a9a(0x2f5),'right'),_0x16d9ee&&(this['setShapeProps'](_0x16d9ee),_0x16d9ee[_0x389a9a(0x2de)]&&(_0x16d9ee[_0x389a9a(0x1d7)]??this[_0x389a9a(0x2d0)])&&this[_0x389a9a(0x33b)](_0x16d9ee['highlightSecond']??this[_0x389a9a(0x2d0)])),this['onPointerEnter$'][_0x389a9a(0x1d1)](()=>this[_0x389a9a(0x175)]({'hovered':!0x0})),this[_0x389a9a(0x328)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1}));}[_0xf63dae(0x1ce)](_0x939319){const _0x1b0d44=_0xf63dae;this[_0x1b0d44(0x383)]=_0x939319;}[_0xf63dae(0x175)](_0x1e696b){const _0x246d1d=_0xf63dae;this[_0x246d1d(0x20a)]=_0x1e696b[_0x246d1d(0x19f)]??this[_0x246d1d(0x20a)],this['_hovered']=_0x1e696b['hovered']??this[_0x246d1d(0x1f4)],this[_0x246d1d(0x293)]=_0x1e696b[_0x246d1d(0x373)]??this[_0x246d1d(0x293)],this[_0x246d1d(0x3dd)]=_0x1e696b[_0x246d1d(0x39c)]??this[_0x246d1d(0x3dd)],this[_0x246d1d(0x2dc)]=_0x1e696b[_0x246d1d(0x3d6)]??this[_0x246d1d(0x2dc)],this[_0x246d1d(0x3d0)]=_0x1e696b['backgroundColor']??this['_backgroundColor'],this['_showText']=_0x1e696b[_0x246d1d(0x36d)]??this[_0x246d1d(0x1fb)],this[_0x246d1d(0x2f5)]=_0x1e696b[_0x246d1d(0x268)]??this['_labelHorizontalPosition'],_0x1e696b['highlightSecond']!==void 0x0&&(this[_0x246d1d(0x2d0)]=_0x1e696b[_0x246d1d(0x1d7)]),_0x1e696b[_0x246d1d(0x2de)]!==void 0x0&&(this['_highlight']=_0x1e696b[_0x246d1d(0x2de)]),_0x1e696b['offsetY']!==void 0x0&&(this[_0x246d1d(0x383)]=_0x1e696b[_0x246d1d(0x3aa)]),this[_0x246d1d(0x3a5)]({'width':_0x1e696b[_0x246d1d(0x17e)],'height':_0x1e696b[_0x246d1d(0x2a7)]});}[_0xf63dae(0x311)](_0x72e7b3){const _0x30201c=_0xf63dae;let {row:_0x4e1dea,column:_0xc16db3}=_0x72e7b3;if(_0x4e1dea>=this['_range'][_0x30201c(0x23e)]&&_0x4e1dea<=this['_range'][_0x30201c(0x3a7)]&&_0xc16db3>=this[_0x30201c(0x293)]['startColumn']&&_0xc16db3<=this['_range'][_0x30201c(0x390)]){this[_0x30201c(0x175)]({'hovered':!0x0});return;}this[_0x30201c(0x175)]({'hovered':!0x1});}['_startBlinking'](_0x490cb5){const _0x31cc7e=_0xf63dae;this['_stopBlinking'](),this[_0x31cc7e(0x216)]=!0x0,this[_0x31cc7e(0x25b)]=window[_0x31cc7e(0x252)](()=>{const _0x5be8c7=_0x31cc7e;this[_0x5be8c7(0x216)]=!this[_0x5be8c7(0x216)],this[_0x5be8c7(0x3c2)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x31cc7e(0x337)](()=>{const _0x2f4941=_0x31cc7e;this['_stopBlinking'](),this[_0x2f4941(0x216)]=!0x0,this[_0x2f4941(0x3c2)](!0x0);},_0x490cb5*0x3e8);}[_0xf63dae(0x16e)](){const _0x2579c8=_0xf63dae;this[_0x2579c8(0x25b)]&&=(window[_0x2579c8(0x3dc)](this[_0x2579c8(0x25b)]),void 0x0),this[_0x2579c8(0x34f)]&&=(window[_0x2579c8(0x1c1)](this[_0x2579c8(0x34f)]),void 0x0);}[_0xf63dae(0x37f)](_0x1e852d){return!0x1;}['dispose'](){const _0x4fc4de=_0xf63dae;this['_stopBlinking'](),super[_0x4fc4de(0x3d8)]();}[_0xf63dae(0x254)](_0x4acc8b){const _0x4b6705=_0xf63dae;let _0x2a372f=this['_color'],_0x236cca=this[_0x4b6705(0x3d0)];if(this['_highlight']&&!this[_0x4b6705(0x216)]&&(_0x2a372f=this[_0x4b6705(0x24b)](this[_0x4b6705(0x20a)]),_0x236cca=this['_backgroundColor']?this[_0x4b6705(0x24b)](this[_0x4b6705(0x3d0)]):void 0x0),_0x3e2804[_0x4b6705(0x26f)](_0x4acc8b,{'width':this['width'],'height':this[_0x4b6705(0x2a7)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x2a372f,'evented':!0x1,'fill':_0x236cca}),this[_0x4b6705(0x1f4)]||this[_0x4b6705(0x1fb)]){_0x4acc8b['save']();let _0x5371c5=this[_0x4b6705(0x2f5)]===_0x4b6705(0x39a)?-On(_0x4acc8b,this[_0x4b6705(0x3dd)]):this[_0x4b6705(0x17e)];_0x4acc8b[_0x4b6705(0x2f2)](0x1,0x0,0x0,0x1,_0x5371c5,(this[_0x4b6705(0x2dc)]===_0x4b6705(0x256)?0x0:-0x14)+(this[_0x4b6705(0x383)]??0x0)),An['drawWith'](_0x4acc8b,{'text':this[_0x4b6705(0x3dd)],'color':_0x2a372f}),_0x4acc8b[_0x4b6705(0x32f)]();}}[_0xf63dae(0x24b)](_0x52e4f2){const _0x50b8ed=_0xf63dae;return _0x52e4f2[_0x50b8ed(0x2c8)]('#')?_0x50b8ed(0x384)+Number['parseInt'](_0x52e4f2['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x50b8ed(0x290)](_0x52e4f2[_0x50b8ed(0x3cd)](0x3,0x5),0x10)+',\x20'+Number[_0x50b8ed(0x290)](_0x52e4f2['slice'](0x5,0x7),0x10)+_0x50b8ed(0x24f):_0x52e4f2[_0x50b8ed(0x2c8)](_0x50b8ed(0x29b))?_0x52e4f2[_0x50b8ed(0x37a)](/[\d.]+\)$/g,'0.2)'):_0x52e4f2[_0x50b8ed(0x2c8)](_0x50b8ed(0x286))?_0x52e4f2['replace']('rgb',_0x50b8ed(0x29b))[_0x50b8ed(0x37a)](')',_0x50b8ed(0x24f)):_0x52e4f2;}};let In=class extends _0x3517ee{constructor(_0x3dc8ae,_0xb113d2,_0x33798e,_0x3c79d5){const _0x315b39=_0xf63dae;super(),this[_0x315b39(0x1c9)]=_0x3dc8ae,this[_0x315b39(0x1dc)]=_0xb113d2,this[_0x315b39(0x1b2)]=_0x33798e,this[_0x315b39(0x33a)]=_0x3c79d5,q(this,_0x315b39(0x2cb),new Set()),q(this,_0x315b39(0x1f5),null),q(this,_0x315b39(0x192),null),this[_0x315b39(0x16f)]();}[_0xf63dae(0x16f)](){const _0x5516a0=_0xf63dae;this['_sheetSkeletonManagerService'][_0x5516a0(0x26e)][_0x5516a0(0x297)](_0x5a7e08(this[_0x5516a0(0x283)]),_0x4d069a(_0x7580bd=>{const _0x140264=_0x5516a0;if(_0x7580bd){let _0x4a75e0=_0x7580bd[_0x140264(0x35b)];return _0x277223(this[_0x140264(0x1b2)]['getCollabCursors$'](this[_0x140264(0x1c9)][_0x140264(0x377)]),this[_0x140264(0x33a)][_0x140264(0x1dd)])[_0x140264(0x297)](_0x53bebe(([_0xe04b09,_0xddb322])=>{const _0x1e3939=_0x140264;let _0x5cbbd2=new Map();return _0xe04b09[_0x1e3939(0x23d)]((_0xbd7f54,_0x383513)=>{const _0x36ff72=_0x1e3939;if(_0xbd7f54[_0x36ff72(0x259)]===_0x4a75e0){let _0x2d80c2={..._0xbd7f54};_0x2d80c2['color']=this[_0x36ff72(0x33a)][_0x36ff72(0x187)](_0xbd7f54[_0x36ff72(0x19f)]),_0x5cbbd2[_0x36ff72(0x363)](_0x383513,_0x2d80c2);}}),{'skeleton':_0x7580bd,'cursors':_0x5cbbd2};}));}return _0x153693({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x39ddc8,cursors:_0xf8bf61})=>{const _0x2c820e=_0x5516a0;this['_removeCollabCursors'](),_0x39ddc8&&this[_0x2c820e(0x339)](_0x39ddc8,_0xf8bf61);}),this[_0x5516a0(0x1e1)](this[_0x5516a0(0x1dc)][_0x5516a0(0x26e)][_0x5516a0(0x297)](_0x5a7e08(this[_0x5516a0(0x283)]))[_0x5516a0(0x257)](_0x206776=>{const _0x2ebadd=_0x5516a0;var _0x87ded9;if(_0x206776==null)return;(_0x87ded9=this[_0x2ebadd(0x192)])==null||_0x87ded9[_0x2ebadd(0x307)](),this['_pointerMoveDisposable']=null;let {skeleton:_0x13848e}=_0x206776,{scene:_0x8d6c53}=this[_0x2ebadd(0x1c9)];this[_0x2ebadd(0x192)]=_0x8d6c53['onPointerMove$'][_0x2ebadd(0x1d1)](_0x480a(_0x4362ac=>{const _0x52c8d5=_0x2ebadd;var _0x57d84c,_0x27acef;let {offsetX:_0x3a46ff,offsetY:_0x4326e7}=_0x4362ac,{x:_0x5c171c,y:_0x383515}=_0x8d6c53[_0x52c8d5(0x24c)](_0x39de27[_0x52c8d5(0x183)]([_0x3a46ff,_0x4326e7])),{scaleX:_0x544ed1,scaleY:_0x3b9be1}=_0x8d6c53[_0x52c8d5(0x17f)](),_0x239c85=_0x8d6c53['getViewport'](_0x135daf[_0x52c8d5(0x374)]),_0x5e8a00=_0x8d6c53[_0x52c8d5(0x331)](_0x39de27[_0x52c8d5(0x183)]([_0x5c171c,_0x383515]),_0x239c85),_0x88ba39=_0x13848e[_0x52c8d5(0x1b7)](_0x3a46ff,_0x4326e7,_0x544ed1,_0x3b9be1,_0x5e8a00);(((_0x57d84c=this[_0x52c8d5(0x1f5)])==null?void 0x0:_0x57d84c[_0x52c8d5(0x33c)])!==_0x88ba39[_0x52c8d5(0x33c)]||((_0x27acef=this[_0x52c8d5(0x1f5)])==null?void 0x0:_0x27acef[_0x52c8d5(0x2ee)])!==_0x88ba39[_0x52c8d5(0x2ee)])&&this['_cursors'][_0x52c8d5(0x23d)](_0x5863df=>{const _0x48fecf=_0x52c8d5;_0x5863df[_0x48fecf(0x311)](_0x88ba39);});},0x64));})),this['disposeWithMe'](_0x499979(()=>{const _0x415047=_0x5516a0;var _0x59fee0;(_0x59fee0=this[_0x415047(0x192)])==null||_0x59fee0[_0x415047(0x307)](),this[_0x415047(0x192)]=null;}));}[_0xf63dae(0x339)](_0x4bfad7,_0x477362){const _0x259aa3=_0xf63dae;let _0x348dce=this['_sheetSkeletonManagerService'][_0x259aa3(0x1a1)]();if(!_0x348dce)return;let _0x50ae98=this['_getSheetObject']();if(!_0x50ae98)return;this[_0x259aa3(0x2cb)][_0x259aa3(0x23d)](_0x3aea3c=>{const _0x3952ed=_0x259aa3;_0x3aea3c[_0x3952ed(0x3c2)]();});let {scene:_0x161268}=_0x50ae98,_0x1fbf39=Ln(Array['from'](_0x477362[_0x259aa3(0x22e)]()))['map'](_0xcee145=>{const _0x190a88=_0x259aa3;let {color:_0x456eb9,range:_0x594fb8,name:_0x4ed970,selection:_0x2cdb14,sheetID:_0x59f03a}=_0xcee145,{startColumn:_0x14fc4c,startRow:_0x2591c1,endColumn:_0x40e960,endRow:_0x234249}=_0x594fb8,_0x23555e=_0x28e0af(_0x2591c1,_0x14fc4c,_0x161268,_0x348dce),_0x11a6fe=_0x28e0af(_0x234249,_0x40e960,_0x161268,_0x348dce),{columnHeaderHeightAndMarginTop:_0x35e19b}=_0x348dce,{startX:_0x12f092,startY:_0x3de46f}=_0x23555e,{endX:_0x2f5a0a,endY:_0x5d0b2d}=_0x11a6fe,_0x3ead57=_0x2f5a0a-_0x12f092,_0x1d1b73=_0x5d0b2d-_0x3de46f;return new Fn(_0x4ed970,{'labelPosition':_0x3de46f-_0x35e19b>=0x14?_0x190a88(0x269):'bottom','sheetID':_0x59f03a,'range':_0x594fb8,'color':_0x456eb9,'name':_0x4ed970,'selection':_0x2cdb14,'left':_0x12f092,'top':_0x3de46f,'width':_0x3ead57,'height':_0x1d1b73,'evented':!0x1,'zIndex':0x1389});});_0x161268[_0x259aa3(0x1b4)](_0x1fbf39,0x1),this['_cursors']=new Set(_0x1fbf39);}[_0xf63dae(0x17a)](){const _0xe038c2=_0xf63dae;var _0x21f1fc;(_0x21f1fc=this[_0xe038c2(0x2cb)])==null||_0x21f1fc[_0xe038c2(0x23d)](_0x1eda2d=>_0x1eda2d[_0xe038c2(0x3d8)]());}[_0xf63dae(0x22c)](){const _0x511d62=_0xf63dae;return _0x29132e(this['_context'][_0x511d62(0x195)],this['_context']);}};In=Y([J(0x1,_0x231ef2(_0x365c31)),J(0x2,_0x231ef2(Z)),J(0x3,_0x231ef2(_0x1e4fb9))],In);function Ln(_0x45cb03){const _0x2a2d8d=_0xf63dae;let _0x1e6cb2=new Map();return _0x45cb03['forEach'](_0x3e7545=>{const _0x165a7b=_0x344a;if(_0x1e6cb2[_0x165a7b(0x1a6)](_0x3e7545[_0x165a7b(0x381)])){let _0x1742b1=_0x1e6cb2[_0x165a7b(0x18a)](_0x3e7545[_0x165a7b(0x381)]);_0x1742b1[_0x165a7b(0x39c)]+=',\x20'+_0x3e7545['name'];}else _0x1e6cb2[_0x165a7b(0x363)](_0x3e7545[_0x165a7b(0x381)],_0x3e7545);}),Array['from'](_0x1e6cb2[_0x2a2d8d(0x22e)]());}function Rn(_0x49df70){const _0x17b6d9=_0xf63dae;return typeof _0x49df70==_0x17b6d9(0x1f8)&&!!_0x49df70;}function zn(_0x2d9bda){const _0x58f1d1=_0xf63dae;return _0x2d9bda[_0x58f1d1(0x305)]===_0x218a26[_0x58f1d1(0x1ad)]&&_0x58f1d1(0x2fa)in _0x2d9bda&&Rn(_0x2d9bda[_0x58f1d1(0x2fa)])&&typeof _0x2d9bda['data'][_0x58f1d1(0x345)]=='string'&&typeof _0x2d9bda[_0x58f1d1(0x2fa)][_0x58f1d1(0x381)]==_0x58f1d1(0x23c);}function Bn(_0x531652){const _0x275f4b=_0xf63dae;return _0x531652[_0x275f4b(0x305)]===_0x218a26[_0x275f4b(0x300)]&&'data'in _0x531652&&Rn(_0x531652[_0x275f4b(0x2fa)])&&typeof _0x531652[_0x275f4b(0x2fa)]['memberID']==_0x275f4b(0x23c);}function Vn(_0x4aa15b,_0x2b0cd3){const _0x683950=_0xf63dae;let _0x22bb37;try{_0x22bb37=JSON[_0x683950(0x235)](_0x4aa15b);}catch{return null;}if(!Rn(_0x22bb37)||typeof _0x22bb37[_0x683950(0x2d3)]!=_0x683950(0x23c)||typeof _0x22bb37[_0x683950(0x377)]!=_0x683950(0x23c)||typeof _0x22bb37[_0x683950(0x1b6)]!=_0x683950(0x23c))return null;let _0x510ea8=typeof _0x22bb37[_0x683950(0x1f0)]==_0x683950(0x358)?_0x22bb37['unitType']:_0x2b0cd3;if(_0x510ea8==null)return null;let _0x55e343=Rn(_0x22bb37[_0x683950(0x28c)])&&typeof _0x22bb37[_0x683950(0x28c)]['x']==_0x683950(0x358)&&Number['isFinite'](_0x22bb37[_0x683950(0x28c)]['x'])&&typeof _0x22bb37[_0x683950(0x28c)]['y']==_0x683950(0x358)&&Number[_0x683950(0x193)](_0x22bb37[_0x683950(0x28c)]['y'])?{'x':_0x22bb37['pointer']['x'],'y':_0x22bb37[_0x683950(0x28c)]['y']}:null;return{'kind':_0x22bb37[_0x683950(0x2d3)],'unitType':_0x510ea8,'unitId':_0x22bb37[_0x683950(0x377)],'subUnitId':_0x22bb37[_0x683950(0x1b6)],'selectedIds':Array[_0x683950(0x174)](_0x22bb37[_0x683950(0x394)])?_0x22bb37['selectedIds'][_0x683950(0x1c6)](_0x513371=>typeof _0x513371==_0x683950(0x23c)):[],'focusedId':typeof _0x22bb37[_0x683950(0x261)]==_0x683950(0x23c)?_0x22bb37[_0x683950(0x261)]:null,'pointer':_0x55e343};}function Hn(_0x2a9cb6,_0x492e2f,_0x275f0f){const _0x4ee3e7=_0xf63dae;return{'kind':_0x492e2f,'unitType':_0x2a9cb6,'unitId':_0x275f0f[_0x4ee3e7(0x377)],'subUnitId':_0x275f0f[_0x4ee3e7(0x1b6)],'selectedIds':Array['from'](_0x275f0f['selectedIds']),'focusedId':_0x275f0f[_0x4ee3e7(0x261)],'pointer':_0x275f0f[_0x4ee3e7(0x28c)]?{..._0x275f0f[_0x4ee3e7(0x28c)]}:null};}let Un=class extends _0x3517ee{constructor(_0x29d7b1,_0x1f2e1a,_0xe8e9d1,_0x282df7,_0x31a40e,_0x37d3b9){const _0x1ee016=_0xf63dae;super(),this[_0x1ee016(0x377)]=_0x29d7b1,this[_0x1ee016(0x364)]=_0x1f2e1a,this['_adapter']=_0xe8e9d1,this[_0x1ee016(0x1d6)]=_0x282df7,this[_0x1ee016(0x205)]=_0x31a40e,this[_0x1ee016(0x338)]=_0x37d3b9,q(this,_0x1ee016(0x229),!0x1),q(this,_0x1ee016(0x39d),!0x1);}get[_0xf63dae(0x1f0)](){const _0x748853=_0xf63dae;return this[_0x748853(0x1ae)][_0x748853(0x1f0)];}[_0xf63dae(0x3d8)](){const _0x5dc78b=_0xf63dae;this[_0x5dc78b(0x2f9)](),super[_0x5dc78b(0x3d8)]();}[_0xf63dae(0x279)](){const _0x2555a1=_0xf63dae;this[_0x2555a1(0x39d)]||(this[_0x2555a1(0x39d)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0x472a9e(this['dispose$']))['subscribe'](_0x180c43=>{const _0x4510f4=_0x2555a1;if(_0x180c43===_0x5d9759[_0x4510f4(0x370)]){this[_0x4510f4(0x229)]=!0x0;let _0x1a1a13=this[_0x4510f4(0x1ae)][_0x4510f4(0x1d4)](this['unitId']);_0x1a1a13&&this[_0x4510f4(0x289)](_0x1a1a13);return;}this[_0x4510f4(0x229)]=!0x1,this['_clearRemotePresences']();}),this[_0x2555a1(0x364)][_0x2555a1(0x2a2)][_0x2555a1(0x297)](_0x472a9e(this[_0x2555a1(0x283)]))[_0x2555a1(0x257)](_0x388961=>{const _0x43f9c6=_0x2555a1;zn(_0x388961)?this[_0x43f9c6(0x2f0)](_0x388961):Bn(_0x388961)&&this['_removeRemotePresence'](_0x388961[_0x43f9c6(0x2fa)][_0x43f9c6(0x345)]);}),this['_adapter'][_0x2555a1(0x1fd)][_0x2555a1(0x297)](_0x380b6d(_0x570245=>this['_online']&&_0x570245[_0x2555a1(0x377)]===this[_0x2555a1(0x377)]),_0x5c898a(_0x14e585=>_0xf70f90(_0x14e585[_0x2555a1(0x3ad)]),{'leading':!0x0,'trailing':!0x0}),_0x472a9e(this['dispose$']))[_0x2555a1(0x257)](_0x3509a0=>this[_0x2555a1(0x289)](_0x3509a0)));}[_0xf63dae(0x289)](_0x1cf9c6){const _0x3b9474=_0xf63dae;let _0x5bda4d=this['_session'][_0x3b9474(0x3a8)]();if(!_0x5bda4d||!this[_0x3b9474(0x229)])return;let _0x3275be={'eventID':_0x218a26['UPDATE_CURSOR'],'data':{'unitID':this['unitId'],'memberID':_0x5bda4d,'selection':JSON[_0x3b9474(0x1bd)](Hn(this[_0x3b9474(0x1f0)],this['_adapter'][_0x3b9474(0x3c9)],_0x1cf9c6))}};this[_0x3b9474(0x364)][_0x3b9474(0x1ff)](_0x3275be,this[_0x3b9474(0x377)])['catch'](()=>void 0x0);}[_0xf63dae(0x2f0)](_0x568628){const _0x4fb9b5=_0xf63dae;let {memberID:_0x5b6182,selection:_0x880d9a}=_0x568628[_0x4fb9b5(0x2fa)];if(_0x5b6182===this[_0x4fb9b5(0x364)][_0x4fb9b5(0x3a8)]())return;let _0x3723f2=Vn(_0x880d9a,this[_0x4fb9b5(0x1f0)]);if(!_0x3723f2||_0x3723f2[_0x4fb9b5(0x2d3)]!==this['_adapter'][_0x4fb9b5(0x3c9)]||_0x3723f2[_0x4fb9b5(0x1f0)]!==this[_0x4fb9b5(0x1f0)]||_0x3723f2[_0x4fb9b5(0x377)]!==this[_0x4fb9b5(0x377)])return;let _0x43dac2=this[_0x4fb9b5(0x205)][_0x4fb9b5(0x2ff)](this[_0x4fb9b5(0x377)],_0x5b6182),_0x3d6cd2={'unitId':_0x3723f2[_0x4fb9b5(0x377)],'subUnitId':_0x3723f2[_0x4fb9b5(0x1b6)],'selectedIds':_0x3723f2[_0x4fb9b5(0x394)],'focusedId':_0x3723f2['focusedId'],'pointer':_0x3723f2[_0x4fb9b5(0x28c)],'memberId':_0x5b6182,'color':this[_0x4fb9b5(0x1d6)][_0x4fb9b5(0x3b1)](_0x5b6182),'name':(_0x43dac2==null?void 0x0:_0x43dac2[_0x4fb9b5(0x39c)])??_0x5b6182};this['_commandService'][_0x4fb9b5(0x17c)](_n['id'],{'unitType':this['unitType'],'update':{'type':_0x4fb9b5(0x363),'state':_0x3d6cd2}})[_0x4fb9b5(0x3db)](()=>void 0x0);}[_0xf63dae(0x1a7)](_0x4b61fa){const _0xbcd28d=_0xf63dae;this[_0xbcd28d(0x338)][_0xbcd28d(0x17c)](_n['id'],{'unitType':this['unitType'],'update':{'type':_0xbcd28d(0x38a),'unitId':this[_0xbcd28d(0x377)],'memberId':_0x4b61fa}})[_0xbcd28d(0x3db)](()=>void 0x0);}[_0xf63dae(0x2f9)](){const _0x134d28=_0xf63dae;this[_0x134d28(0x338)]['executeCommand'](_n['id'],{'unitType':this[_0x134d28(0x1f0)],'update':{'type':_0x134d28(0x344),'unitId':this[_0x134d28(0x377)]}})[_0x134d28(0x3db)](()=>void 0x0);}};Un=Y([J(0x3,_0x231ef2(xn)),J(0x4,_0x231ef2(_0xb4ed64)),J(0x5,_0x231ef2(_0x1fc91d))],Un);let Wn=class extends _0x3517ee{constructor(_0x4b5b99,_0x4a8f2f,_0x176895,_0x587cc7){const _0x378956=_0xf63dae;super(),this['_univerInstanceService']=_0x4b5b99,this['_injector']=_0x4a8f2f,this[_0x378956(0x389)]=_0x176895,this[_0x378956(0x334)]=_0x587cc7,q(this,'_isDisposed',!0x1),q(this,_0x378956(0x35f),new Map()),q(this,_0x378956(0x206),new Map()),q(this,_0x378956(0x186),new Map()),this[_0x378956(0x16f)]();}[_0xf63dae(0x3d8)](){const _0x44ea79=_0xf63dae;this['_isDisposed']=!0x0,this[_0x44ea79(0x186)][_0x44ea79(0x23d)](_0x42d79f=>_0x42d79f[_0x44ea79(0x3d8)]()),this['_adapterDisposables'][_0x44ea79(0x344)](),this[_0x44ea79(0x35f)]['forEach'](_0x392e48=>_0x392e48[_0x44ea79(0x3d8)]()),this[_0x44ea79(0x35f)]['clear'](),this[_0x44ea79(0x206)][_0x44ea79(0x344)](),super[_0x44ea79(0x3d8)]();}['_init'](){const _0x1d4b86=_0xf63dae;this['_adapterRegistry']['adapters$']['pipe'](_0x472a9e(this[_0x1d4b86(0x283)]))[_0x1d4b86(0x257)](_0x15dc9d=>this[_0x1d4b86(0x16d)](_0x15dc9d));}['_syncAdapters'](_0x56be21){const _0x4ca0d9=_0xf63dae;let _0x2da5ba=new Set(_0x56be21[_0x4ca0d9(0x2e4)](_0x44746d=>_0x44746d['unitType']));this['_adapterDisposables'][_0x4ca0d9(0x23d)]((_0x58a594,_0x29c9b5)=>{const _0x4704a5=_0x4ca0d9;_0x2da5ba['has'](_0x29c9b5)||(_0x58a594[_0x4704a5(0x3d8)](),this[_0x4704a5(0x186)][_0x4704a5(0x1d5)](_0x29c9b5),this[_0x4704a5(0x3de)](_0x29c9b5));}),_0x56be21[_0x4ca0d9(0x23d)](_0x79a5c4=>{const _0x236506=_0x4ca0d9;this['_adapterDisposables'][_0x236506(0x1a6)](_0x79a5c4['unitType'])||this[_0x236506(0x223)](_0x79a5c4);});}[_0xf63dae(0x223)](_0x9a6f7a){const _0xd4eb8c=_0xf63dae;let _0x16cdd4=new _0x54a82f();this['_adapterDisposables'][_0xd4eb8c(0x363)](_0x9a6f7a[_0xd4eb8c(0x1f0)],_0x16cdd4),_0x16cdd4['add'](_0x9a6f7a[_0xd4eb8c(0x1d9)]()),this['_univerInstanceService']['getAllUnitsForType'](_0x9a6f7a[_0xd4eb8c(0x1f0)])[_0xd4eb8c(0x23d)](_0x10b188=>this[_0xd4eb8c(0x270)](_0x10b188[_0xd4eb8c(0x21d)](),_0x9a6f7a)['catch'](()=>void 0x0));let _0x12cf9b=this[_0xd4eb8c(0x324)][_0xd4eb8c(0x2a6)](_0x9a6f7a[_0xd4eb8c(0x1f0)])[_0xd4eb8c(0x257)](({unit:_0x33bedd})=>this[_0xd4eb8c(0x270)](_0x33bedd[_0xd4eb8c(0x21d)](),_0x9a6f7a)[_0xd4eb8c(0x3db)](()=>void 0x0));_0x16cdd4['add'](_0x499979(()=>_0x12cf9b[_0xd4eb8c(0x307)]()));let _0x2c4843=this[_0xd4eb8c(0x324)]['getTypeOfUnitDisposed$'](_0x9a6f7a[_0xd4eb8c(0x1f0)])[_0xd4eb8c(0x257)](_0x1073c0=>this[_0xd4eb8c(0x239)](_0x1073c0[_0xd4eb8c(0x21d)]()));_0x16cdd4['add'](_0x499979(()=>_0x2c4843[_0xd4eb8c(0x307)]()));}async[_0xf63dae(0x270)](_0x36981e,_0x3d78d7){const _0x51d131=_0xf63dae;if(this[_0x51d131(0x35f)][_0x51d131(0x1a6)](_0x36981e)||this[_0x51d131(0x206)][_0x51d131(0x1a6)](_0x36981e))return;let _0x449383={};this['_pendingEntities'][_0x51d131(0x363)](_0x36981e,_0x449383);let _0x247323=await this[_0x51d131(0x389)][_0x51d131(0x284)](_0x36981e)[_0x51d131(0x3db)](_0x142376=>{const _0xd41abe=_0x51d131;throw this[_0xd41abe(0x206)]['get'](_0x36981e)===_0x449383&&this[_0xd41abe(0x206)][_0xd41abe(0x1d5)](_0x36981e),_0x142376;});if(this['_isDisposed']||this[_0x51d131(0x206)][_0x51d131(0x18a)](_0x36981e)!==_0x449383||this[_0x51d131(0x334)][_0x51d131(0x18a)](_0x3d78d7[_0x51d131(0x1f0)])!==_0x3d78d7){this[_0x51d131(0x206)]['get'](_0x36981e)===_0x449383&&this[_0x51d131(0x206)][_0x51d131(0x1d5)](_0x36981e);return;}let _0x43ca93=this[_0x51d131(0x1b0)][_0x51d131(0x28b)](Un,_0x36981e,_0x247323,_0x3d78d7);_0x43ca93[_0x51d131(0x279)](),this['_pendingEntities'][_0x51d131(0x1d5)](_0x36981e),this[_0x51d131(0x35f)][_0x51d131(0x363)](_0x36981e,_0x43ca93);}[_0xf63dae(0x239)](_0x3c1ff1){const _0x665e1e=_0xf63dae;this['_pendingEntities'][_0x665e1e(0x1d5)](_0x3c1ff1);let _0x5b9316=this['_entities'][_0x665e1e(0x18a)](_0x3c1ff1);_0x5b9316&&(_0x5b9316[_0x665e1e(0x3d8)](),this[_0x665e1e(0x35f)][_0x665e1e(0x1d5)](_0x3c1ff1));}['_disposeEntitiesForType'](_0x538c31){const _0x4b9f10=_0xf63dae;this[_0x4b9f10(0x324)]['getAllUnitsForType'](_0x538c31)[_0x4b9f10(0x23d)](_0x27fe53=>this[_0x4b9f10(0x206)][_0x4b9f10(0x1d5)](_0x27fe53[_0x4b9f10(0x21d)]())),Array['from'](this[_0x4b9f10(0x35f)][_0x4b9f10(0x211)]())[_0x4b9f10(0x23d)](([_0x2dd767,_0x6a9b5f])=>{const _0x20c0e7=_0x4b9f10;_0x6a9b5f[_0x20c0e7(0x1f0)]===_0x538c31&&this['_disposeEntity'](_0x2dd767);});}};Wn=Y([J(0x0,_0x4bc33c),J(0x1,_0x231ef2(_0x5e0363)),J(0x2,_0x231ef2(_0x4fcc23)),J(0x3,_0x231ef2(_0x442b35))],Wn);let Gn=class extends _0x5a96ee{constructor(_0x517ec6,_0x189a06,_0x43ac9e,_0x52c4aa,_0x4b5dfb,_0x48b158){const _0x184b21=_0xf63dae;super(),this[_0x184b21(0x1cd)]=_0x517ec6,this[_0x184b21(0x1c2)]=_0x189a06,this['_collaborationUIEventService']=_0x43ac9e,this[_0x184b21(0x348)]=_0x52c4aa,this[_0x184b21(0x28a)]=_0x4b5dfb,this[_0x184b21(0x38f)]=_0x48b158,this[_0x184b21(0x177)](),this[_0x184b21(0x39f)]();}[_0xf63dae(0x177)](){const _0x6ec773=_0xf63dae;this['disposeWithMe'](this[_0x6ec773(0x1cd)]['registerBeforeClose'](()=>{const _0x3e1ddc=_0x6ec773;if(this[_0x3e1ddc(0x1c2)]['saveTaskMap'][_0x3e1ddc(0x301)])return this[_0x3e1ddc(0x38f)]['t'](_0x3e1ddc(0x387));}));}[_0xf63dae(0x39f)](){const _0xfd270=_0xf63dae;this['disposeWithMe'](this[_0xfd270(0x2a9)]['event$'][_0xfd270(0x257)](_0x157301=>{const _0xf64787=_0xfd270;_0x157301['id']===_0x7adcc8['OTHER_CLIENT_EDITING']&&this[_0xf64787(0x348)][_0xf64787(0x1a9)]({'type':_0x5ba788[_0xf64787(0x382)],'content':this[_0xf64787(0x38f)]['t'](_0xf64787(0x19c))}),_0x157301['id']===_0x7adcc8[_0xf64787(0x1b9)]&&this[_0xf64787(0x348)][_0xf64787(0x1a9)]({'type':_0x5ba788[_0xf64787(0x382)],'content':this[_0xf64787(0x38f)]['t'](_0xf64787(0x356))}),_0x157301['id']===_0x7adcc8[_0xf64787(0x29a)]&&this[_0xf64787(0x28a)]['show']({'title':this[_0xf64787(0x38f)]['t'](_0xf64787(0x1c5)),'content':this['_localeService']['t'](_0xf64787(0x1d3)),'type':_0xf64787(0x2aa),'duration':0x0}),_0x157301['id']===_0x7adcc8['CONFLICT']&&this['_notificationService'][_0xf64787(0x1a9)]({'title':this['_localeService']['t'](_0xf64787(0x321)),'content':this[_0xf64787(0x38f)]['t'](_0xf64787(0x238)),'type':_0xf64787(0x2aa),'duration':0x0}),_0x157301['id']===_0x7adcc8[_0xf64787(0x1bb)]&&this['_messageService'][_0xf64787(0x1a9)]({'type':_0x5ba788[_0xf64787(0x382)],'content':this[_0xf64787(0x38f)]['t'](_0x157301[_0xf64787(0x2fa)]||'')}),_0x157301['id']===_0x7adcc8['SOCKET_FAILED_RETRY']&&this[_0xf64787(0x348)][_0xf64787(0x1a9)]({'type':_0x5ba788['Warning'],'content':this[_0xf64787(0x38f)]['t'](_0xf64787(0x1a2))}),_0x157301['id']===_0x7adcc8[_0xf64787(0x2fd)]&&this['_messageService'][_0xf64787(0x1a9)]({'type':_0x5ba788['Error'],'content':this[_0xf64787(0x38f)]['t'](_0xf64787(0x173))}),_0x157301['id']===_0x7adcc8[_0xf64787(0x215)]&&this[_0xf64787(0x348)]['show']({'type':_0x5ba788[_0xf64787(0x35c)],'content':this[_0xf64787(0x38f)]['t'](_0xf64787(0x220))});}));}};Gn=Y([J(0x0,_0x1c6f4d),J(0x1,_0x705847),J(0x2,_0x231ef2(_0x51003b)),J(0x3,_0x3f19ee),J(0x4,_0x2b012d),J(0x5,_0x231ef2(_0x44175a))],Gn);const Kn=_0x38c0c9(_0xf63dae(0x294));let qn=class extends _0x3517ee{constructor(_0x28bbf9,_0x337f12,_0x68e6a8,_0x1d5989){const _0x38c91e=_0xf63dae;super(),this[_0x38c91e(0x263)]=_0x28bbf9,this[_0x38c91e(0x1df)]=_0x337f12,this['_commandService']=_0x68e6a8,this[_0x38c91e(0x1e9)]=_0x1d5989,this[_0x38c91e(0x16f)]()[_0x38c91e(0x3db)](_0x3f735a=>this['_logService'][_0x38c91e(0x2aa)](_0x38c91e(0x368),_0x3f735a));}async[_0xf63dae(0x16f)](){const _0x2bd6b4=_0xf63dae;let _0x4faae7=this[_0x2bd6b4(0x263)][_0x2bd6b4(0x350)]('unit'),_0x290b9a=this[_0x2bd6b4(0x263)][_0x2bd6b4(0x350)](_0x2bd6b4(0x1b5)),_0x178ba4=this[_0x2bd6b4(0x263)][_0x2bd6b4(0x350)](_0x2bd6b4(0x282));if(!_0x4faae7||!_0x290b9a){this[_0x2bd6b4(0x1df)]['debug']('[CollaborationDataLoaderController]',_0x2bd6b4(0x197));return;}let _0x29e761=await this[_0x2bd6b4(0x1e9)][_0x2bd6b4(0x299)](_0x4faae7,Number(_0x290b9a),_0x178ba4);this['_disposed']||_0x29e761&&_0x29e761 instanceof _0x463149&&await this[_0x2bd6b4(0x233)](_0x29e761);}async[_0xf63dae(0x233)](_0x28acf1){const _0x4a71de=_0xf63dae;await this['_updateSubUnitFromURLParams'](_0x28acf1),!this['_disposed']&&(_0x28acf1[_0x4a71de(0x255)][_0x4a71de(0x297)](_0x472a9e(this['dispose$']))[_0x4a71de(0x257)](_0x3c7bb3=>{const _0x186398=_0x4a71de;_0x3c7bb3&&this[_0x186398(0x3df)](_0x3c7bb3);}),this[_0x4a71de(0x263)][_0x4a71de(0x2fe)]['pipe'](_0x472a9e(this[_0x4a71de(0x283)]))[_0x4a71de(0x257)](()=>{const _0x3f96c1=_0x4a71de;this[_0x3f96c1(0x2e3)](_0x28acf1)[_0x3f96c1(0x3db)](_0x4d8da3=>this['_logService'][_0x3f96c1(0x2aa)](_0x3f96c1(0x368),_0x4d8da3));}));}[_0xf63dae(0x3df)](_0x512fef,_0x8cef6a=!0x1){const _0x5468ea=_0xf63dae;let _0x3f9f74=this[_0x5468ea(0x263)][_0x5468ea(0x350)](_0x5468ea(0x282));_0x512fef[_0x5468ea(0x18d)]()!==_0x3f9f74&&this['_urlService']['setParam'](_0x5468ea(0x282),_0x512fef[_0x5468ea(0x18d)](),_0x8cef6a);}async[_0xf63dae(0x2e3)](_0x1e3016){const _0x24bf19=_0xf63dae;var _0x226637;let _0x4e42e1=this['_urlService'][_0x24bf19(0x350)](_0x24bf19(0x282));if(!_0x4e42e1||!_0x1e3016[_0x24bf19(0x325)](_0x4e42e1)){let _0x483912=_0x1e3016['getUnhiddenWorksheets']()[0x0],_0x4a8034=_0x1e3016[_0x24bf19(0x325)](_0x483912);if(!_0x4a8034||(this[_0x24bf19(0x3df)](_0x4a8034,!0x0),this[_0x24bf19(0x3b3)]))return;await this[_0x24bf19(0x338)][_0x24bf19(0x17c)](_0x6f73cb['id'],{'unitId':_0x1e3016[_0x24bf19(0x21d)](),'subUnitId':_0x483912});return;}((_0x226637=_0x1e3016[_0x24bf19(0x219)]())==null?void 0x0:_0x226637['getSheetId']())!==_0x4e42e1&&await this[_0x24bf19(0x338)][_0x24bf19(0x17c)](_0x6f73cb['id'],{'unitId':_0x1e3016['getUnitId'](),'subUnitId':_0x4e42e1});}};qn=Y([J(0x0,Kn),J(0x1,_0x585c40),J(0x2,_0x1fc91d),J(0x3,_0x231ef2(_0x4cff11))],qn);function _0x52e2(){const _0xd67cfc=['unsubscribe','stage','stack','pushState','disposeUnit','collaboration-client-ui.collabStatus.conflict','fillStyle','_transformUndoRedoStack','OTHER_CLIENTS_EDITING','contains','onMouseMove','_scheduleSaving','call','cursorInfo','state$','getUnit','_toggleOnline','_ensureSubject','_onCursorUpdate','_refreshCollabCursors','/universer-api/frontend/logs','pageIndex','split','backupOfflineData','collaboration-client-ui.formula.calculation.unable','1.0.0-beta.1','collaboration-client-ui.conflict.title','unhandledrejection','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_univerInstanceService','getSheetBySheetId','evenodd','sessionStatus$','onPointerLeave$','_clearOtherTimers','359724tnBJzA','clearRemotePresences','ticket','SUCCESS','red.300','restore','_registerDependencies','getScrollXYInfoByViewport','_docSkeletonManagerService','_initUserListener','_adapterRegistry','colno','getDocRanges','setTimeout','_commandService','_updateCollabCursors','_themeService','_startBlinking','column','getValue','_updateMessage','removeEventListener','_renderManagerService','_initStatusListener','_configService','univer-h-8\x20univer-w-8\x20univer-rounded-lg','clear','memberID','transformMutationsWithChangeset','_saveCache','_messageService','clickable','post','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Loading','syncEditingCollabCursor','registerCommand','_blinkTimer','getParam','_cursor','11100eQHBmh','_timeoutState$','_blockProgressWatches','_anchorDot','collaboration-client-ui.collaboration.closeRoom','getCollabCursors$','number','ranges','text','sheetId','Error','_cursorShapes','onTransformChange$','_entities','_config','roomMembers$','univer-border-none\x20univer-bg-transparent','set','_session','getConfig','_cachedData','_startSheetCollabCursor','[CollaborationDataLoaderController]','_maxFormulaLimit','totalBlocks','complete','roomMembers','showText','_roomMembers$','getOffsetConfig','ONLINE','NOT_COLLAB','icon','range','VIEW_MAIN','univer-text-blue-500','selections','unitId','setRemotePresence','UNIVER_SHEET','replace','saveOfflineData','updateOfflineData','tableSource','_drawRectRange','triggerDblclick','_toggleOffline','selection','Warning','_offsetY','rgba(','univer-inline-flex\x20univer-items-center\x20univer-justify-center','getCurrentTypeOfUnit$','collaboration-client-ui.collaboration.offline-data-not-saved','transformRemoteChangeset','_collabSessionService','remove','fill','redoState','maxFormulaLimit','dirtyRanges','_localeService','endColumn','registerRefRange','_drawTextRange','search','selectedIds','432xuzDJj','getCellMatrix','_registerRenderDependencies','functionsExecutedState','RECT','left','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','name','_initialized','_watchBlockProgress','_initEvent','28358196ySZRxu','params','history','primary','31832VwfrmQ','transformByState','_lastResponseTimestamp','endRow','getMemberID','_colorIndex','offsetY','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','univer-appearance-none','shareInterval','_localStorageService','flatMap','join','assignAColorForMemberID','onCommandExecuted','_disposed','Success','addHandlerCallback','_pollingInterval','black','symbol','_getAnchorBounding','univer-text-green-500','yellow.400','hide','/run/','collabCursorState$','collaboration-client-ui.snapshotLoading.timeout','_messageIds','_getMergeRange','makeDirty','doc.mutation.rich-text-editing','_docSelectionManagerService','_initCommandInterceptor','pulse','length','runId','presenceKind','measureText','getCurrentUnitOfType','_httpService','slice','onRendered','lineno','_backgroundColor','toRgbString','_memberID','span','pageType','setItem','labelPosition','tableId','dispose','timedOut','enableDocumentCollaborationUI','catch','clearInterval','_name','_disposeEntitiesForType','_updateURLWithCurrentState','now','_saveTaskMap','[Unhandled\x20Rejection]:\x20','content','getRangePointData','with','i18nKey','getUnitStatus$','_transformHistoryAndStateStack','_presenceAdapterRegistry','status','_docStateChangeManagerService','_doCreateSocket','transformMutation','canRenderSelection','_revisionService','_syncAdapters','_stopBlinking','_init','findNodePositionByCharIndex','true','currentUsage','collaboration-client-ui.session.connection-failed','isArray','setShapeProps','collab-text-range-','_setupBeforeClosingHandler','_setFormulaLimitStatus','@univerjs-pro/collaboration-client-ui','_removeCollabCursors','TEXT','executeCommand','_status$','width','getAncestorScale','Unknown\x20user','m1Prime','key','FromArray','options','registerComponent','_adapterDisposables','getColorFromTheme','startOffset','font','get','_collabCursorState$','some','getSheetId','transformIMECache','addObject','getUndoRedoMutationParamsCache','spin','_pointerMoveDisposable','isFinite','_document','unit','_syncEditingCollabCursorService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_docSyncEditingCollabCursorService','_applyCommand','_initPresenceStatusComponents','/universer-api/license/formula/limit/done','collaboration-client-ui.collaboration.single-unit.warning','isActive','_getSaveTimeout','color','getCurrentRevOfUnit','getCurrentSkeleton','collaboration-client-ui.session.will-retry','START_CALCULATION','_checkAndWaitForCalculationPermission','collaboration-client-ui.collabStatus.offline','has','_removeRemotePresence','_initCommandExecutedListener','show','bind','iterator','collab-text-anchor-','UPDATE_CURSOR','_adapter','setParam','_injector','univer-flex\x20univer-items-center\x20univer-justify-center','_collabCursorController','Enter','addObjects','type','subUnitId','getCellIndexByOffset','_cursorInfo$','CLOSE_ROOM','limitInfo','JOIN_ROOM_FAILED','preventDefault','stringify','reload','decorate','[Window\x20Error]:\x20','clearTimeout','_localCacheService','runOnServer','InsertRangeMoveRightCommandId','collaboration-client-ui.permission.title','filter','_transformPreviousActiveRange','lineTo','_context','stageInfo','toPrimitive','min','_beforeCloseService','setOffsetY','collaboration-client-ui.collabClient.tooltip.reconnect','getActiveRange','subscribeEvent','_startCalculationLimit','collaboration-client-ui.permission.content','getLocalPresence','delete','_colorAssignService','highlightSecond','_scheduleClearOtherTimer','activate','_scheduleHeartbeat','_anchor','_sheetSkeletonManagerService','currentTheme$','disableLocalCache','_logService','_drawAnchor','disposeWithMe','HEADER_MENU','source','MoveRangeCommandId','_heartbeatTimer','_getSessionTicket','RemoveColCommandId','setStateCache','_dataLoaderService','_handleLeaveEvent','transformStateCache','_eventUnsubscribe','ACTIVE_UNIT_EVENT_CHANNEL','bold\x2013px\x20Arial,\x20sans-serif','deepClone','unitType','entityInit$','columnGroupId','polite','_hovered','_lastPointer','from','exhaustSavingTask','object','button','_clearBlockProgressWatch','_showText','_textBubble','localPresence$','OFFLINE','send','jiqing.500','releaseFormulaLimitUrl','setAlpha','green.600','body','_memberService','_pendingEntities','_docTransformStateCacheService','_onRefRangeChange','_disabled','_color','NO_OTHER_CLIENTS_EDITING','resize','_isVisibleUnit','_currentUsage','replaceState','endOffset','entries','_assignedColors','_unitOnClients','tooltipKey','SUBMIT_CHANGESET_TIMEOUT','_isBlinkVisible','Failed','_onCursorDelete','getActiveSheet','saveImage','_uiPartsService','[LogService\x20Error]:\x20','getUnitId','\x20at\x20','createSocket','collaboration-client-ui.session.collaboration-timeout','_refRangeService','columnIndex','_bindAdapter','COMPLETE','FOOTER','collaboration-client-ui.operation.update-remote-unit-presence','getItem','InsertColCommandId','_online','href','closePath','_getSheetObject','next','values','collaboration-client-ui.formula.calculation.waiting','_handleHeartbeatEvent','_showGuardMessage','filename','_setupSubUnitSync','_latestStates','parse','rgba(255,\x20255,\x20255,\x200.01)','invokeId','collaboration-client-ui.conflict.content','_disposeEntity','onPointerEnter$','defineProperty','string','forEach','startRow','small','override','asObservable','_hideTimer','getStateCache','_handleEvent','_handleJoinEvent',':backup:','_initResize','refreshLabel','129lFpbLe','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_getLighterColor','getCoordRelativeToViewport','editingUnit','UNIVER_DOC',',\x200.2)','_clearPolling','_clearTimeoutState','setInterval','#FFF','_draw','activeSheet$','bottom','subscribe','_taskIds','sheetID','unitID','_blinkIntervalTimer','replaceDocRanges','location','mutations','getCollabEntity$','getRenderUnitById','focusedId','alert','_urlService','reconnect','collab-rect-range-','_entityInit$','collaboration-client-ui.collabStatus.fetchMiss','labelHorizontalPosition','top','_send','_syncPresenceStatusComponents','registerRenderModule','value','currentSkeleton$','drawWith','_startEntity','textRanges','includes','toISOString','\x20-\x20','undoState','_initUnhandledRejectionListener','save','statusUIPart','init','DeleteRangeMoveLeftCommandId','_imageIoService','_removeClearOtherTimer','colorClass','getTypeOfUnitDisposed$','state','_initWindowErrorListener','searchParams','subunit','dispose$','requireSession','_registerPresenceStatusComponent','rgb','function','find','_sendLocalPresence','_notificationService','createInstance','pointer','_docTransformSelectionsService','_docClipboardService','push','parseInt','11kfgmNn','_monkeyPatchLogService','_range','uni.network.url-service','constructor','...','pipe','115oFOCWJ','loadUnit','PERMISSION_DENIED','rgba','version','_scene','loadedBlocks','_id','fillRule','addEventListener','event$','_snapshotLoadingService','cursorInfo$','RemoveRowCommandId','getTypeOfUnitAdded$','height','code','_collaborationUIEventService','error','setActiveRange','unload','enableFrontendLog','univer-m-0\x20univer-p-0','/universer-api/license/formula/limit/start','InsertRowCommandId','_instanceService','_updateLocalCursor','_unitStatus','CONFLICT','then','LOADING_BLOCKS','toString','6708YosWHt','update','?taskId=','_collaborationSessionService','1435abiDjT','ERROR','_render','collaboration-client-ui.formula.calculation.started','arc','getCurrentSelections','message','univer-transition-all\x20univer-duration-200','_createSocketURL','static','canRenderAnchor','startColumn','startsWith','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','2408172ZVFZbt','_cursors','_collaborationController','indicator','transformSelections','sessionTicket','_highlightSecond','_hasFormulaInDirtyRanges','getFormulaLimitStatusUrl','kind','unshift','wsSessionTicketUrl','_hover','_initStatusComponent','_checkCalculationAvailable','reason','_uploadLog','getSkeleton','_labelPosition','_handleHover','highlight','timeoutState$','_initDependencies','add','_getFormulaLimitStatus','_updateSubUnitFromURLParams','map','every','removeRemotePresence','_initEntityListener','_transformService','_presenceStatusRegistrations','m2Prime','_docTransformIMECacheService','status$','InsertRangeMoveDownCommandId','row','getFocusedUnit','_handleCursorUpdate','setConfig','transform','fillText','segmentPage','_labelHorizontalPosition','_shapes','collaboration-client-ui.collabStatus.syncing','_getScale','_clearRemotePresences','data','/universer-api/license/formula/limit/status','_releaseCalculationLimit','SOCKET_FAILED','urlChange$','getMember','USERS_LEAVE','size','26344gvIwsW','executionId','removeParam','eventID','_selfUnitIDs'];_0x52e2=function(){return _0xd67cfc;};return _0x52e2();}let Jn=class{constructor(_0x30e68a,_0x506c1a){const _0x31f6e7=_0xf63dae;this[_0x31f6e7(0x2e8)]=_0x30e68a,this['_renderManagerService']=_0x506c1a;}[_0xf63dae(0x18e)](_0x5ddf99){const _0x2c5a88=_0xf63dae;this[_0x2c5a88(0x30e)](_0x5ddf99),this[_0x2c5a88(0x1c7)](_0x5ddf99);}[_0xf63dae(0x388)](_0x4711f2){const _0x1a0ef9=_0xf63dae;let {unitID:_0x3cc7d1}=_0x4711f2,{redoCache:_0x5c90d5}=this[_0x1a0ef9(0x340)][_0x1a0ef9(0x260)](_0x3cc7d1)['with'](_0x3a91f1)['getUndoRedoMutationParamsCache']();if(_0x5c90d5[_0x1a0ef9(0x3c7)]===0x0)return _0x4711f2;let _0xb98781=_0x26d374[_0x1a0ef9(0x1ef)](_0x4711f2[_0x1a0ef9(0x25e)][0x0]);for(let _0x268721=0x0;_0x268721<_0x5c90d5[_0x1a0ef9(0x3c7)];_0x268721++){let _0x575408={'id':_0x1a0ef9(0x3c3),'params':{..._0x5c90d5[_0x268721]}},_0x2ff2a4=this[_0x1a0ef9(0x2e8)][_0x1a0ef9(0x16a)](_0xb98781,_0x575408,!0x1);if(_0x384fa8(_0x2ff2a4))throw _0x2ff2a4[_0x1a0ef9(0x2aa)];_0xb98781=_0x2ff2a4[_0x1a0ef9(0x181)];}return{..._0x26d374[_0x1a0ef9(0x1ef)](_0x4711f2),'mutations':[_0xb98781]};}[_0xf63dae(0x30e)](_0x5010b0){const _0x20c045=_0xf63dae;let {unitID:_0x231c97}=_0x5010b0,_0x3bdbf5=this[_0x20c045(0x340)][_0x20c045(0x260)](_0x231c97)[_0x20c045(0x3e5)](_0x3a91f1),{undoCache:_0x493706,redoCache:_0x3f9776}=_0x3bdbf5[_0x20c045(0x190)]();if(_0x493706[_0x20c045(0x3c7)]===0x0||_0x3f9776[_0x20c045(0x3c7)]===0x0)return;let _0xe882e0=[],_0x4853d2=[],_0x425f60=_0x26d374['deepClone'](_0x5010b0['mutations'][0x0]),_0x51166f=_0x26d374[_0x20c045(0x1ef)](_0x5010b0[_0x20c045(0x25e)][0x0]);for(let _0x25d66a=_0x493706[_0x20c045(0x3c7)]-0x1;_0x25d66a>=0x0;_0x25d66a--){let _0x1299e6={'id':_0x20c045(0x3c3),'params':{..._0x493706[_0x25d66a]}},_0x4a1eff={'id':_0x20c045(0x3c3),'params':{..._0x3f9776[_0x25d66a]}},_0x3c1c7d=this[_0x20c045(0x2e8)]['transformMutation'](_0x425f60,_0x1299e6,!0x1),_0x1ae091=this[_0x20c045(0x2e8)]['transformMutation'](_0x51166f,_0x4a1eff,!0x1);if(_0x384fa8(_0x3c1c7d))throw _0x3c1c7d[_0x20c045(0x2aa)];if(_0x384fa8(_0x1ae091))throw _0x1ae091[_0x20c045(0x2aa)];_0xe882e0[_0x20c045(0x2d4)](_0x3c1c7d[_0x20c045(0x2ea)][_0x20c045(0x3a1)]),_0x4853d2[_0x20c045(0x2d4)](_0x1ae091[_0x20c045(0x2ea)][_0x20c045(0x3a1)]),_0x425f60=_0x3c1c7d[_0x20c045(0x181)],_0x51166f=_0x1ae091[_0x20c045(0x181)];}_0x3bdbf5['setUndoRedoMutationParamsCache']({'undoCache':_0xe882e0,'redoCache':_0x4853d2});}[_0xf63dae(0x1c7)](_0x584040){const _0x328ab9=_0xf63dae;let {unitID:_0x1d4adc}=_0x584040,_0x421110=this[_0x328ab9(0x340)][_0x328ab9(0x260)](_0x1d4adc)[_0x328ab9(0x3e5)](_0x3a91f1),_0x443c6c=_0x421110[_0x328ab9(0x1d0)]();if(_0x443c6c==null)return;let _0x2a4ff8=[{'id':_0x328ab9(0x3c3),'params':{'unitId':_0x584040['unitID'],'actions':null,'textRanges':[_0x443c6c]}}],_0x43bfd2=this[_0x328ab9(0x2e8)][_0x328ab9(0x346)](_0x584040,_0x2a4ff8);if(!_0xdedc4e(_0x43bfd2))throw _0x43bfd2[_0x328ab9(0x2aa)];let _0x68fdb8=_0x43bfd2[_0x328ab9(0x2ea)][0x0][_0x328ab9(0x3a1)]['textRanges'];Array[_0x328ab9(0x174)](_0x68fdb8)&&_0x68fdb8['length']&&_0x421110[_0x328ab9(0x2ab)](_0x68fdb8[0x0]);}};Jn=Y([J(0x0,_0x1699e4),J(0x1,_0xe22447)],Jn);let Yn=class{constructor(_0x2ee61d,_0x42408d,_0x21152f){const _0x51fdef=_0xf63dae;this[_0x51fdef(0x1b0)]=_0x2ee61d,this[_0x51fdef(0x2e8)]=_0x42408d,this[_0x51fdef(0x168)]=_0x21152f;}[_0xf63dae(0x1eb)](_0x4d2a91){const _0x3b0972=_0xf63dae;this[_0x3b0972(0x165)](_0x4d2a91);}['transformRemoteChangeset'](_0x291631){const _0x2e54dc=_0xf63dae;let {unitID:_0x269127}=_0x291631,{collaboration:_0x23ad62}=this[_0x2e54dc(0x168)]['getStateCache'](_0x269127);if(_0x23ad62['length']===0x0)return _0x291631;let _0x12b151=_0x26d374[_0x2e54dc(0x1ef)](_0x291631[_0x2e54dc(0x25e)][0x0]);for(let _0xaa2e4e=0x0;_0xaa2e4e<_0x23ad62[_0x2e54dc(0x3c7)];_0xaa2e4e++){let _0x1bed82={'id':_0x2e54dc(0x3c3),'params':{'unitId':_0x23ad62[_0xaa2e4e][_0x2e54dc(0x377)],..._0x23ad62[_0xaa2e4e][_0x2e54dc(0x38c)]}},_0x495386=this[_0x2e54dc(0x2e8)][_0x2e54dc(0x16a)](_0x12b151,_0x1bed82,!0x1);if(_0x384fa8(_0x495386))throw _0x495386[_0x2e54dc(0x2aa)];_0x12b151=_0x495386[_0x2e54dc(0x181)];}return{..._0x26d374[_0x2e54dc(0x1ef)](_0x291631),'mutations':[_0x12b151]};}[_0xf63dae(0x165)](_0x3c587e){const _0x4c8a9c=_0xf63dae;let {unitID:_0x1e88fd}=_0x3c587e,{history:_0xf6370c,collaboration:_0x1f9c64}=this['_docStateChangeManagerService'][_0x4c8a9c(0x243)](_0x1e88fd);if(_0xf6370c['length']===0x0&&_0x1f9c64[_0x4c8a9c(0x3c7)]===0x0)return;let _0x40c28f=[],_0x2abd41=[],_0x4cbfb9=_0x26d374['deepClone'](_0x3c587e[_0x4c8a9c(0x25e)][0x0]),_0x3a57c8=_0x26d374[_0x4c8a9c(0x1ef)](_0x3c587e[_0x4c8a9c(0x25e)][0x0]);for(let _0x38ad34=_0xf6370c[_0x4c8a9c(0x3c7)]-0x1;_0x38ad34>=0x0;_0x38ad34--){let _0x4af67d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf6370c[_0x38ad34][_0x4c8a9c(0x377)],..._0xf6370c[_0x38ad34][_0x4c8a9c(0x275)]}},_0x222963={'id':_0x4c8a9c(0x3c3),'params':{'unitId':_0xf6370c[_0x38ad34][_0x4c8a9c(0x377)],..._0xf6370c[_0x38ad34]['redoState']}},_0x1ffed9=this[_0x4c8a9c(0x2e8)]['transformMutation'](_0x4cbfb9,_0x4af67d,!0x1),_0x12f83c=this[_0x4c8a9c(0x2e8)][_0x4c8a9c(0x16a)](_0x3a57c8,_0x222963,!0x1);if(_0x384fa8(_0x1ffed9))throw _0x1ffed9[_0x4c8a9c(0x2aa)];if(_0x384fa8(_0x12f83c))throw _0x12f83c[_0x4c8a9c(0x2aa)];_0x40c28f[_0x4c8a9c(0x2d4)]({..._0xf6370c[_0x38ad34],'undoState':_0x1ffed9[_0x4c8a9c(0x2ea)]['params'],'redoState':_0x12f83c[_0x4c8a9c(0x2ea)][_0x4c8a9c(0x3a1)]}),_0x4cbfb9=_0x1ffed9[_0x4c8a9c(0x181)],_0x3a57c8=_0x12f83c[_0x4c8a9c(0x181)];}_0x4cbfb9=_0x26d374[_0x4c8a9c(0x1ef)](_0x3c587e[_0x4c8a9c(0x25e)][0x0]),_0x3a57c8=_0x26d374[_0x4c8a9c(0x1ef)](_0x3c587e[_0x4c8a9c(0x25e)][0x0]);for(let _0x44c3c3=_0x1f9c64[_0x4c8a9c(0x3c7)]-0x1;_0x44c3c3>=0x0;_0x44c3c3--){let _0xed3029={'id':_0x4c8a9c(0x3c3),'params':{'unitId':_0x1f9c64[_0x44c3c3][_0x4c8a9c(0x377)],..._0x1f9c64[_0x44c3c3]['undoState']}},_0x4b52e4={'id':_0x4c8a9c(0x3c3),'params':{'unitId':_0x1f9c64[_0x44c3c3]['unitId'],..._0x1f9c64[_0x44c3c3]['redoState']}},_0x53b684=this[_0x4c8a9c(0x2e8)][_0x4c8a9c(0x16a)](_0x4cbfb9,_0xed3029,!0x1),_0x48a028=this[_0x4c8a9c(0x2e8)]['transformMutation'](_0x3a57c8,_0x4b52e4,!0x1);if(_0x384fa8(_0x53b684))throw _0x53b684[_0x4c8a9c(0x2aa)];if(_0x384fa8(_0x48a028))throw _0x48a028[_0x4c8a9c(0x2aa)];_0x2abd41[_0x4c8a9c(0x2d4)]({..._0x1f9c64[_0x44c3c3],'undoState':_0x53b684['m2Prime'][_0x4c8a9c(0x3a1)],'redoState':_0x48a028[_0x4c8a9c(0x2ea)][_0x4c8a9c(0x3a1)]}),_0x4cbfb9=_0x53b684[_0x4c8a9c(0x181)],_0x3a57c8=_0x48a028[_0x4c8a9c(0x181)];}this[_0x4c8a9c(0x168)][_0x4c8a9c(0x1e8)](_0x1e88fd,{'history':_0x40c28f,'collaboration':_0x2abd41});}};Yn=Y([J(0x0,_0x231ef2(_0x5e0363)),J(0x1,_0x1699e4),J(0x2,_0x231ef2(_0x1fdb55))],Yn);let Q=class{constructor(_0x1a06ba,_0x19a740){const _0x55160e=_0xf63dae;this[_0x55160e(0x3c4)]=_0x1a06ba,this[_0x55160e(0x2e8)]=_0x19a740;}[_0xf63dae(0x2ce)](_0x38fdc0){const _0x2934fc=_0xf63dae;var _0x3696c4;let _0x573e36=this[_0x2934fc(0x3c4)][_0x2934fc(0x336)]()??[],_0x2340c9=this[_0x2934fc(0x3c4)]['getSelectionInfo']();if(_0x573e36[_0x2934fc(0x3c7)]===0x0)return;let _0x1e0990=_0x38fdc0[_0x2934fc(0x25a)],_0x266146=[{'id':_0x2934fc(0x3c3),'params':{'unitId':_0x1e0990,'actions':null,'textRanges':_0x573e36}}],_0x211b3a=this[_0x2934fc(0x2e8)]['transformMutationsWithChangeset'](_0x38fdc0,_0x266146);if(!_0xdedc4e(_0x211b3a))throw _0x211b3a[_0x2934fc(0x2aa)];let _0x49aa26=(_0x3696c4=_0x211b3a[_0x2934fc(0x2ea)][0x0])==null?void 0x0:_0x3696c4[_0x2934fc(0x3a1)],_0x10c612=_0x49aa26&&typeof _0x49aa26=='object'&&_0x2934fc(0x271)in _0x49aa26?_0x49aa26[_0x2934fc(0x271)]:null;if(!Xn(_0x10c612))return;let _0x428c4f=_0x38fdc0['mutations'][_0x2934fc(0x18c)](_0x37c9e4=>Zn(_0x37c9e4[_0x2934fc(0x3a1)]))?_0x10c612==null?void 0x0:_0x10c612[_0x2934fc(0x1c6)](_0x5b4c92=>!(_0x2934fc(0x3d7)in _0x5b4c92)):_0x10c612;Array[_0x2934fc(0x174)](_0x428c4f)&&this['_docSelectionManagerService'][_0x2934fc(0x25c)](_0x428c4f,{'unitId':_0x1e0990,'subUnitId':_0x1e0990},!0x1,_0x2340c9!=null&&_0x2340c9[_0x2934fc(0x184)]?{..._0x2340c9['options'],'wholeDocument':!0x1}:void 0x0);}};Q=Y([J(0x0,_0x231ef2(_0x4dbc30)),J(0x1,_0x1699e4)],Q);function Xn(_0x1d6344){const _0x22eba4=_0xf63dae;return Array[_0x22eba4(0x174)](_0x1d6344)&&_0x1d6344[_0x22eba4(0x2e5)](_0x341a09=>typeof _0x341a09=='object'&&!!_0x341a09&&_0x22eba4(0x188)in _0x341a09&&_0x22eba4(0x210)in _0x341a09);}function Zn(_0x1f3248){const _0x4cebdc=_0xf63dae;return _0x1f3248===_0x4cebdc(0x37d)?!0x0:Array[_0x4cebdc(0x174)](_0x1f3248)?_0x1f3248['some'](_0x12116b=>Zn(_0x12116b)):!_0x1f3248||typeof _0x1f3248!='object'?!0x1:Object['values'](_0x1f3248)['some'](_0x34efe5=>Zn(_0x34efe5));}let Qn=class extends _0x5a96ee{constructor(_0x339142,_0x434665,_0x6b0bba,_0x21971c,_0xe9294d,_0x39f309,_0x3d32f1){const _0x3429d9=_0xf63dae;super(),this[_0x3429d9(0x2cc)]=_0x339142,this[_0x3429d9(0x2eb)]=_0x434665,this[_0x3429d9(0x207)]=_0x6b0bba,this[_0x3429d9(0x28d)]=_0x21971c,this[_0x3429d9(0x198)]=_0xe9294d,this[_0x3429d9(0x348)]=_0x39f309,this[_0x3429d9(0x38f)]=_0x3d32f1,q(this,_0x3429d9(0x17d),new _0x45225c(_0x1a7a96[_0x3429d9(0x371)])),this[_0x3429d9(0x2e7)]();}[_0xf63dae(0x2e7)](){const _0x4cf7f0=_0xf63dae;this[_0x4cf7f0(0x1e1)](this[_0x4cf7f0(0x2cc)][_0x4cf7f0(0x1f1)][_0x4cf7f0(0x257)](_0x33ba2e=>{const _0x12bc03=_0x4cf7f0;_0x33ba2e instanceof _0x271008&&_0x33ba2e[_0x12bc03(0x3b5)]({'onTransformIME':_0x1a1cc2=>this[_0x12bc03(0x2eb)][_0x12bc03(0x18e)](_0x1a1cc2),'onTransformState':_0x24c74e=>this[_0x12bc03(0x207)][_0x12bc03(0x1eb)](_0x24c74e),'onTransformSelections':_0x5301f1=>this[_0x12bc03(0x28d)][_0x12bc03(0x2ce)](_0x5301f1),'onSyncEditingCollabCursor':_0x148fa3=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x148fa3),'onTransformRemoteChangesetByIMECache':_0x2cccd8=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x2cccd8),'onTransformRemoteChangesetByStateCache':_0x4e902b=>this['_docTransformStateCacheService'][_0x12bc03(0x388)](_0x4e902b)});}));}};Qn=Y([J(0x0,_0x231ef2(_0x317854)),J(0x1,_0x231ef2(Jn)),J(0x2,_0x231ef2(Yn)),J(0x3,_0x231ef2(Q)),J(0x4,_0x231ef2(wn)),J(0x5,_0x3f19ee),J(0x6,_0x231ef2(_0x44175a))],Qn);let $n=class extends _0x5a96ee{constructor(_0x2eb855,_0x1c8021,_0x1e1e8a,_0x497787){const _0x37927d=_0xf63dae;super(),this[_0x37927d(0x1b0)]=_0x2eb855,this[_0x37927d(0x3cc)]=_0x1c8021,this[_0x37927d(0x1df)]=_0x1e1e8a,this[_0x37927d(0x2bb)]=_0x497787,q(this,'_memberID',void 0x0),this['_init']();}[_0xf63dae(0x16f)](){const _0x42b25c=_0xf63dae;this[_0x42b25c(0x280)](),this[_0x42b25c(0x276)](),this[_0x42b25c(0x292)](),this['_initUserListener']();}[_0xf63dae(0x333)](){const _0x4a91eb=_0xf63dae;this[_0x4a91eb(0x1e1)](this[_0x4a91eb(0x2bb)]['socket$'][_0x4a91eb(0x257)](_0x575564=>{const _0x196683=_0x4a91eb;this[_0x196683(0x3d2)]=_0x575564==null?void 0x0:_0x575564[_0x196683(0x345)];}));}[_0xf63dae(0x280)](){const _0x305486=_0xf63dae;let _0x12d0a9=_0x285cda=>{const _0x494d60=_0x344a;var _0x417e42;this[_0x494d60(0x2da)](_0x494d60(0x2aa),_0x494d60(0x1c0)+_0x285cda[_0x494d60(0x2c2)]+_0x494d60(0x21e)+_0x285cda[_0x494d60(0x232)]+':'+_0x285cda[_0x494d60(0x3cf)]+':'+_0x285cda[_0x494d60(0x335)]+'\x0a'+(((_0x417e42=_0x285cda[_0x494d60(0x2aa)])==null?void 0x0:_0x417e42[_0x494d60(0x309)])||''));};window[_0x305486(0x2a1)]('error',_0x12d0a9),this['disposeWithMe'](()=>{const _0x65cac3=_0x305486;window[_0x65cac3(0x33f)](_0x65cac3(0x2aa),_0x12d0a9);});}['_initUnhandledRejectionListener'](){const _0x29fe7a=_0xf63dae;let _0x116454=_0x577877=>{const _0x104f2f=_0x344a;this['_uploadLog'](_0x104f2f(0x2aa),_0x104f2f(0x3e2)+_0x577877[_0x104f2f(0x2d9)]);};window['addEventListener'](_0x29fe7a(0x322),_0x116454),this[_0x29fe7a(0x1e1)](()=>{const _0x8f206b=_0x29fe7a;window[_0x8f206b(0x33f)](_0x8f206b(0x322),_0x116454);});}[_0xf63dae(0x292)](){const _0x52cede=_0xf63dae;let _0x2ac42a=this[_0x52cede(0x1df)][_0x52cede(0x2aa)][_0x52cede(0x1aa)](this[_0x52cede(0x1df)]);this[_0x52cede(0x1df)][_0x52cede(0x2aa)]=(..._0x55ff35)=>{const _0x72b854=_0x52cede;let _0x56cc69=_0x55ff35[_0x72b854(0x2e4)](_0x103f0d=>_0x103f0d instanceof Error?_0x103f0d[_0x72b854(0x2c2)]+'\x0a'+_0x103f0d[_0x72b854(0x309)]:String(_0x103f0d))[_0x72b854(0x3b0)]('\x20');this[_0x72b854(0x2da)]('error',_0x72b854(0x21c)+_0x56cc69),_0x2ac42a(..._0x55ff35);},this[_0x52cede(0x1e1)](()=>{const _0x371e29=_0x52cede;this[_0x371e29(0x1df)]['error']=_0x2ac42a;});}[_0xf63dae(0x2da)](_0x3e8653,_0x534827){const _0x29ad5e=_0xf63dae;try{let _0x4f3a17={'userId':this[_0x29ad5e(0x3d2)],'logLabel':_0x3e8653,'content':_0x534827};this['_httpService']['post'](_0x29ad5e(0x31b),{'body':_0x4f3a17})[_0x29ad5e(0x3db)](()=>{});}catch{}}};$n=Y([J(0x0,_0x231ef2(_0x5e0363)),J(0x1,_0x231ef2(_0x207123)),J(0x2,_0x585c40),J(0x3,_0x231ef2(_0x4fcc23))],$n);function er({state$:_0x181277}){const _0x199789=_0xf63dae;let _0x4887af=_0x340e40(_0x181277,null,!0x0);return _0x4887af?_0x1fc652('div',{'data-u-comp':'snapshot-loading-timeout','role':_0x199789(0x262),'className':_0x199789(0x3ab),'children':[_0x5f4004(_0x2829bf,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x5f4004(_0x199789(0x3d3),{'children':_0x4887af[_0x199789(0x3e3)]}),_0x5f4004(_0x1039f2,{'size':_0x199789(0x23f),'variant':_0x199789(0x3a3),'onClick':()=>window[_0x199789(0x25d)][_0x199789(0x1be)](),'children':_0x4887af[_0x199789(0x248)]})]}):null;}const tr='snapshot-loading-';let nr=class extends _0x5a96ee{constructor(_0x5612a8,_0x5641c6,_0x291e77,_0x5087de,_0x4ad6af,_0x3ddd86){const _0x538f65=_0xf63dae;super(),this[_0x538f65(0x2a3)]=_0x5612a8,this[_0x538f65(0x348)]=_0x5641c6,this[_0x538f65(0x38f)]=_0x291e77,this[_0x538f65(0x1b0)]=_0x5087de,this[_0x538f65(0x263)]=_0x3ddd86,q(this,_0x538f65(0x353),new _0x45225c(null)),q(this,_0x538f65(0x3c0),new Set()),q(this,'_blockProgressWatches',new Map()),q(this,_0x538f65(0x234),new Map()),q(this,_0x538f65(0x2df),this[_0x538f65(0x353)]['asObservable']());let _0x13c507=()=>_0x2fbf51(er,{'state$':this[_0x538f65(0x2df)]});this[_0x538f65(0x1e1)](_0x4ad6af[_0x538f65(0x185)](_0x15bcc2['GLOBAL'],()=>_0x231a0d(_0x13c507,this[_0x538f65(0x1b0)]))),this['disposeWithMe'](this[_0x538f65(0x2a3)][_0x538f65(0x315)][_0x538f65(0x257)](_0x5041e5=>{const _0x4a474d=_0x538f65;this['_latestStates']=_0x5041e5,_0x5041e5[_0x4a474d(0x23d)](_0x4a6688=>this[_0x4a474d(0x33e)](_0x4a6688));})),this['disposeWithMe'](this['_urlService'][_0x538f65(0x2fe)][_0x538f65(0x257)](()=>{const _0x2147f5=_0x538f65;this['_latestStates'][_0x2147f5(0x23d)](_0x212bfd=>this[_0x2147f5(0x33e)](_0x212bfd));}));}[_0xf63dae(0x3d8)](){const _0x245f11=_0xf63dae;this[_0x245f11(0x3c0)][_0x245f11(0x23d)](_0x152757=>this[_0x245f11(0x348)]['remove'](_0x152757)),this[_0x245f11(0x3c0)][_0x245f11(0x344)](),this[_0x245f11(0x354)][_0x245f11(0x23d)](({timeoutId:_0x3594b0})=>clearTimeout(_0x3594b0)),this[_0x245f11(0x354)]['clear'](),this['_timeoutState$'][_0x245f11(0x36b)](),super[_0x245f11(0x3d8)]();}['_updateMessage'](_0x21eafe){const _0x386040=_0xf63dae;let _0x3151d2=''+tr+_0x21eafe['unitId'];if(_0x21eafe[_0x386040(0x308)]===_0x45da0f[_0x386040(0x224)]){this['_clearBlockProgressWatch'](_0x21eafe[_0x386040(0x377)]),this[_0x386040(0x251)](_0x21eafe['unitId']),this['_messageService'][_0x386040(0x38a)](_0x3151d2),this[_0x386040(0x3c0)]['delete'](_0x3151d2);return;}if(!this[_0x386040(0x20d)](_0x21eafe[_0x386040(0x377)])){this['_clearBlockProgressWatch'](_0x21eafe[_0x386040(0x377)]),this['_clearTimeoutState'](_0x21eafe[_0x386040(0x377)]),this[_0x386040(0x348)]['remove'](_0x3151d2),this[_0x386040(0x3c0)][_0x386040(0x1d5)](_0x3151d2);return;}if(_0x21eafe[_0x386040(0x308)]===_0x45da0f[_0x386040(0x2bd)]){this[_0x386040(0x1fa)](_0x21eafe[_0x386040(0x377)]),this[_0x386040(0x251)](_0x21eafe[_0x386040(0x377)]),this[_0x386040(0x348)][_0x386040(0x1a9)]({'id':_0x3151d2,'type':_0x5ba788['Error'],'content':this[_0x386040(0x38f)]['t'](_0x386040(0x173))}),this['_messageIds'][_0x386040(0x1d5)](_0x3151d2);return;}if(_0x21eafe[_0x386040(0x308)]!==_0x45da0f[_0x386040(0x2b6)]||_0x21eafe['totalBlocks']<=0xa){this[_0x386040(0x1fa)](_0x21eafe['unitId']),this['_messageService']['remove'](_0x3151d2),this[_0x386040(0x3c0)]['delete'](_0x3151d2);return;}this[_0x386040(0x39e)](_0x21eafe)||(this[_0x386040(0x348)][_0x386040(0x1a9)]({'id':_0x3151d2,'type':_0x5ba788[_0x386040(0x34c)],'duration':0x1/0x0,'content':this[_0x386040(0x38f)]['t'](_0x386040(0x267))+'\x20'+_0x21eafe[_0x386040(0x29e)]+'/'+_0x21eafe[_0x386040(0x36a)]}),this['_messageIds'][_0x386040(0x2e1)](_0x3151d2));}[_0xf63dae(0x39e)](_0x53b566){const _0x54f9a0=_0xf63dae;let _0x735c14=this[_0x54f9a0(0x354)][_0x54f9a0(0x18a)](_0x53b566[_0x54f9a0(0x377)]);if((_0x735c14==null?void 0x0:_0x735c14[_0x54f9a0(0x29e)])===_0x53b566['loadedBlocks'])return _0x735c14[_0x54f9a0(0x3d9)];this[_0x54f9a0(0x1fa)](_0x53b566[_0x54f9a0(0x377)]);let _0x4ff86d=setTimeout(()=>{const _0x5e8265=_0x54f9a0;let _0x13c513=this[_0x5e8265(0x354)][_0x5e8265(0x18a)](_0x53b566[_0x5e8265(0x377)]);if(!_0x13c513||_0x13c513['timeoutId']!==_0x4ff86d)return;_0x13c513[_0x5e8265(0x3d9)]=!0x0;let _0x2565fc=''+tr+_0x53b566[_0x5e8265(0x377)];this[_0x5e8265(0x348)][_0x5e8265(0x38a)](_0x2565fc),this[_0x5e8265(0x3c0)][_0x5e8265(0x1d5)](_0x2565fc),this[_0x5e8265(0x353)][_0x5e8265(0x22d)]({'unitId':_0x53b566[_0x5e8265(0x377)],'content':this[_0x5e8265(0x38f)]['t'](_0x5e8265(0x3bf),String(_0x53b566[_0x5e8265(0x29e)]),String(_0x53b566['totalBlocks'])),'refreshLabel':this[_0x5e8265(0x38f)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this[_0x54f9a0(0x354)][_0x54f9a0(0x363)](_0x53b566[_0x54f9a0(0x377)],{'loadedBlocks':_0x53b566[_0x54f9a0(0x29e)],'timedOut':!0x1,'timeoutId':_0x4ff86d}),!0x1;}[_0xf63dae(0x1fa)](_0x15797d){const _0x1d0c79=_0xf63dae;let _0x3f5607=this[_0x1d0c79(0x354)][_0x1d0c79(0x18a)](_0x15797d);_0x3f5607&&(clearTimeout(_0x3f5607['timeoutId']),this[_0x1d0c79(0x354)][_0x1d0c79(0x1d5)](_0x15797d),this[_0x1d0c79(0x251)](_0x15797d));}[_0xf63dae(0x251)](_0x282da3){const _0x4b9f43=_0xf63dae;var _0x23c5f8;((_0x23c5f8=this[_0x4b9f43(0x353)][_0x4b9f43(0x26d)])==null?void 0x0:_0x23c5f8[_0x4b9f43(0x377)])===_0x282da3&&this[_0x4b9f43(0x353)][_0x4b9f43(0x22d)](null);}[_0xf63dae(0x20d)](_0x19c349){const _0x55a0f6=_0xf63dae;let _0x548208=this[_0x55a0f6(0x263)]['getParam'](_0x55a0f6(0x195));return!_0x548208||_0x548208===_0x19c349;}};nr=Y([J(0x0,_0x231ef2(_0x5e6e20)),J(0x1,_0x3f19ee),J(0x2,_0x231ef2(_0x44175a)),J(0x3,_0x231ef2(_0x5e0363)),J(0x4,_0xad308e),J(0x5,Kn)],nr);function rr(_0x132d76){const _0xad78b6=_0xf63dae;var _0x46bff2,_0x583c97;let _0x4eef6c=(_0x46bff2=_0x132d76[_0xad78b6(0x1ca)])==null?void 0x0:_0x46bff2[_0xad78b6(0x308)],_0x45d97d=((_0x583c97=_0x132d76[_0xad78b6(0x1ca)])==null?void 0x0:_0x583c97['totalFormulasToCalculate'])||0x0;return _0x4eef6c===_0x460d05[_0xad78b6(0x1a3)]&&_0x45d97d>0x0;}function ir(_0x27c604){const _0x414cad=_0xf63dae;return _0x27c604[_0x414cad(0x398)]===_0xcb4f45[_0x414cad(0x32d)];}let ar=class extends _0x5a96ee{constructor(_0xfd90e6,_0x348901,_0x258556,_0x4a5860,_0x2c2fd8,_0x30fab6,_0x5d7ccf){const _0x5875ca=_0xf63dae;super(),this[_0x5875ca(0x348)]=_0xfd90e6,this[_0x5875ca(0x338)]=_0x348901,this[_0x5875ca(0x342)]=_0x258556,this[_0x5875ca(0x3cc)]=_0x4a5860,this[_0x5875ca(0x324)]=_0x2c2fd8,this[_0x5875ca(0x1df)]=_0x30fab6,this[_0x5875ca(0x38f)]=_0x5d7ccf,q(this,_0x5875ca(0x3b6),null),q(this,_0x5875ca(0x369),0x0),q(this,_0x5875ca(0x20e),0x0),q(this,_0x5875ca(0x258),[]),q(this,_0x5875ca(0x3a6),0x0),this[_0x5875ca(0x3c5)]();}[_0xf63dae(0x3c5)](){const _0x438c53=_0xf63dae;this[_0x438c53(0x1e1)](this['_commandService']['beforeCommandExecuted']((_0x41c1cf,_0x3ebfa2)=>{const _0x1397c3=_0x438c53;if(_0x41c1cf['id']!==_0x50ec48['id'])return;let _0x46a6b4=_0x41c1cf[_0x1397c3(0x3a1)];if(this[_0x1397c3(0x2d1)](_0x46a6b4[_0x1397c3(0x38e)]??[])&&!this[_0x1397c3(0x2d8)]())throw this[_0x1397c3(0x1a4)](_0x41c1cf,_0x3ebfa2),this[_0x1397c3(0x231)](),new _0x4d67df();})),this[_0x438c53(0x1e1)](this[_0x438c53(0x338)]['onCommandExecuted']((_0x15b449,_0xe32f4e)=>{const _0x365976=_0x438c53;if(_0x15b449['id']!==_0x2b37bf['id'])return;let _0x295b7a=_0x15b449[_0x365976(0x3a1)];if(rr(_0x295b7a)){let _0x193d48=_0x10b3a5();this['_taskIds'][_0x365976(0x28f)](_0x193d48),this['_startCalculationLimit'](_0x193d48);}else{if(ir(_0x295b7a)&&this[_0x365976(0x258)]['length']>0x0){let _0x5c1921=this[_0x365976(0x258)]['shift']();this[_0x365976(0x2fc)](_0x5c1921);}}}));}['dispose'](){const _0x534cdc=_0xf63dae;super[_0x534cdc(0x3d8)](),this[_0x534cdc(0x250)](),this['_taskIds']=[],this[_0x534cdc(0x20e)]=0x0,this[_0x534cdc(0x369)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0xf63dae(0x1a4)](_0x4d167d,_0xb1558b){const _0x270734=_0xf63dae;for(let _0x25e1f0=0x0;_0x25e1f0<0x1e;_0x25e1f0++)try{if(await this[_0x270734(0x2e2)](),this['_checkCalculationAvailable']()){this[_0x270734(0x199)](_0x4d167d,_0xb1558b),this[_0x270734(0x348)][_0x270734(0x1a9)]({'content':this[_0x270734(0x38f)]['t'](_0x270734(0x2bf)),'type':_0x5ba788[_0x270734(0x3b4)]});return;}await new Promise(_0x399562=>{const _0x910d9a=_0x270734;this['_pollingInterval']=window[_0x910d9a(0x337)](_0x399562,0x3e8);});}catch(_0x175ef8){this[_0x270734(0x1df)][_0x270734(0x2aa)](_0x175ef8);}this[_0x270734(0x348)][_0x270734(0x1a9)]({'content':this[_0x270734(0x38f)]['t'](_0x270734(0x31f)),'type':_0x5ba788[_0x270734(0x35c)]});}[_0xf63dae(0x199)](_0x1a3722,_0x577ea6){const _0x1a2400=_0xf63dae;try{this[_0x1a2400(0x338)][_0x1a2400(0x17c)](_0x1a3722['id'],_0x1a3722['params'],_0x577ea6);}catch(_0x48b6da){this[_0x1a2400(0x1df)][_0x1a2400(0x2aa)](_0x48b6da);}}[_0xf63dae(0x178)](_0x119687,_0x12db26){const _0x4bf195=_0xf63dae;_0x12db26<this[_0x4bf195(0x3a6)]||(this[_0x4bf195(0x3a6)]=_0x12db26,this[_0x4bf195(0x369)]=Number['parseInt'](_0x119687[_0x4bf195(0x38d)]),this[_0x4bf195(0x20e)]=Number[_0x4bf195(0x290)](_0x119687[_0x4bf195(0x172)]));}async[_0xf63dae(0x1d2)](_0x45bf15){const _0x1cec0b=_0xf63dae;let _0x1673da=Date['now']();try{var _0x36495f,_0x395135;let _0x31afcf=((_0x36495f=this[_0x1cec0b(0x342)][_0x1cec0b(0x365)](_0x24157f))==null?void 0x0:_0x36495f['startFormulaLimitUrl'])||_0x1cec0b(0x2af),_0x16a089=(await this[_0x1cec0b(0x3cc)]['post'](_0x31afcf,{'body':JSON[_0x1cec0b(0x1bd)]({'taskId':_0x45bf15})}))[_0x1cec0b(0x204)];if(((_0x395135=_0x16a089[_0x1cec0b(0x2aa)])==null?void 0x0:_0x395135[_0x1cec0b(0x2a8)])!==_0x59d7db['OK'])return;this[_0x1cec0b(0x178)](_0x16a089[_0x1cec0b(0x1ba)],_0x1673da);}catch(_0x36c8ac){this[_0x1cec0b(0x1df)][_0x1cec0b(0x2aa)](_0x36c8ac);}}async['_getFormulaLimitStatus'](_0x139c3f){const _0x5b6cbc=_0xf63dae;let _0x43542f=Date['now']();try{var _0x4e1216,_0x302701;let _0x30d427=((_0x4e1216=this[_0x5b6cbc(0x342)][_0x5b6cbc(0x365)](_0x24157f))==null?void 0x0:_0x4e1216[_0x5b6cbc(0x2d2)])||_0x5b6cbc(0x2fb),_0x32d5f6=_0x139c3f?_0x30d427+_0x5b6cbc(0x2ba)+encodeURIComponent(_0x139c3f):_0x30d427,_0x484570=(await this[_0x5b6cbc(0x3cc)][_0x5b6cbc(0x18a)](_0x32d5f6))[_0x5b6cbc(0x204)];if(((_0x302701=_0x484570[_0x5b6cbc(0x2aa)])==null?void 0x0:_0x302701['code'])!==_0x59d7db['OK'])return;this[_0x5b6cbc(0x178)](_0x484570['limitInfo'],_0x43542f);}catch(_0x1a68dd){this[_0x5b6cbc(0x1df)][_0x5b6cbc(0x2aa)](_0x1a68dd);}}async[_0xf63dae(0x2fc)](_0x21c429){const _0x4328c4=_0xf63dae;let _0xb44cd5=Date[_0x4328c4(0x3e0)]();try{var _0xf925e4,_0x3a010a;let _0x2afd7b=((_0xf925e4=this['_configService'][_0x4328c4(0x365)](_0x24157f))==null?void 0x0:_0xf925e4[_0x4328c4(0x201)])||_0x4328c4(0x19b),_0x55251c=(await this['_httpService'][_0x4328c4(0x34a)](_0x2afd7b,{'body':JSON[_0x4328c4(0x1bd)]({'taskId':_0x21c429})}))['body'];if(((_0x3a010a=_0x55251c[_0x4328c4(0x2aa)])==null?void 0x0:_0x3a010a[_0x4328c4(0x2a8)])!==_0x59d7db['OK'])return;this[_0x4328c4(0x178)](_0x55251c[_0x4328c4(0x1ba)],_0xb44cd5);}catch(_0x1f8f1a){this['_logService'][_0x4328c4(0x2aa)](_0x1f8f1a);}}[_0xf63dae(0x2d8)](){const _0x28eacf=_0xf63dae;return this[_0x28eacf(0x369)]===0x0||this[_0x28eacf(0x369)]-this[_0x28eacf(0x20e)]>0x0;}['_clearPolling'](){const _0x517c45=_0xf63dae;this['_pollingInterval']&&=(clearTimeout(this[_0x517c45(0x3b6)]),null);}[_0xf63dae(0x231)](){const _0x1c85be=_0xf63dae;this[_0x1c85be(0x348)][_0x1c85be(0x1a9)]({'content':this[_0x1c85be(0x38f)]['t'](_0x1c85be(0x22f)),'type':_0x5ba788[_0x1c85be(0x34c)]});}[_0xf63dae(0x2d1)](_0x1cf8d7){const _0x118bdb=_0xf63dae;for(let _0x4b8c9c of _0x1cf8d7){let {unitId:_0x4b90e6,sheetId:_0x2794ed,range:_0x42d8d9}=_0x4b8c9c,_0x5d922a=this[_0x118bdb(0x324)][_0x118bdb(0x316)](_0x4b90e6,_0xe0fbed[_0x118bdb(0x379)]);if(!_0x5d922a)continue;let _0x1738c5=_0x5d922a[_0x118bdb(0x325)](_0x2794ed);if(!_0x1738c5)continue;let _0x113b54=_0x1738c5[_0x118bdb(0x396)]();for(let _0x4dc0df=_0x42d8d9[_0x118bdb(0x23e)];_0x4dc0df<=_0x42d8d9[_0x118bdb(0x3a7)];_0x4dc0df++)for(let _0x58a6b4=_0x42d8d9[_0x118bdb(0x2c7)];_0x58a6b4<=_0x42d8d9[_0x118bdb(0x390)];_0x58a6b4++){let _0x175a7f=_0x113b54[_0x118bdb(0x33d)](_0x4dc0df,_0x58a6b4);if(_0x175a7f&&(_0x500a0d(_0x175a7f['f'])||_0x2314ee(_0x175a7f['si'])))return!0x0;}}return!0x1;}};ar=Y([J(0x0,_0x231ef2(_0x3f19ee)),J(0x1,_0x1fc91d),J(0x2,_0x12fe7f),J(0x3,_0x231ef2(_0x207123)),J(0x4,_0x4bc33c),J(0x5,_0x585c40),J(0x6,_0x231ef2(_0x44175a))],ar);let or=class extends _0x5a96ee{constructor(_0x56a457,_0x1e8b67,_0x2351f3){const _0x3df269=_0xf63dae;super(),this[_0x3df269(0x342)]=_0x56a457,this[_0x3df269(0x3ae)]=_0x1e8b67,this[_0x3df269(0x16c)]=_0x2351f3,q(this,'_cachedData',new Map()),q(this,'_saveTaskMap',new Map()),q(this,_0x3df269(0x209),!0x1);}[_0xf63dae(0x1de)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x2d16b3=_0xf63dae;this[_0x2d16b3(0x209)]=!0x1;}get['saveTaskMap'](){const _0x189d32=_0xf63dae;return this[_0x189d32(0x3e1)];}[_0xf63dae(0x3d8)](){const _0x713238=_0xf63dae;this['exhaustSavingTask']()[_0x713238(0x2b5)](()=>super['dispose']());}async['loadOfflineData'](_0x5a84b8){return this['_disabled']?null:this['_localStorageService']['getItem'](_0x203753(_0x5a84b8));}async[_0xf63dae(0x37b)](_0x3c5592,_0x5e8ab4){const _0x3b71a7=_0xf63dae;return!!this['_localStorageService'][_0x3b71a7(0x3d5)](_0x203753(_0x3c5592),_0x5e8ab4);}async[_0xf63dae(0x31e)](_0xeba4f5,_0x199271){const _0x2ce498=_0xf63dae;let _0x192ba3=this[_0x2ce498(0x366)][_0x2ce498(0x18a)](_0xeba4f5)??await this['_localStorageService'][_0x2ce498(0x227)](_0x203753(_0xeba4f5));if(!_0x192ba3)return;let _0x37f974=Date[_0x2ce498(0x3e0)](),_0x1b4504=new Date(_0x37f974)[_0x2ce498(0x273)]();await this[_0x2ce498(0x3ae)][_0x2ce498(0x3d5)](_0x203753(_0xeba4f5)+_0x2ce498(0x246)+_0x37f974,{'reason':_0x199271,'createdAt':_0x1b4504,'data':_0x192ba3});}[_0xf63dae(0x37c)](_0x5660ef,_0x517a7b,_0xaad460,_0x47c95e){const _0x3ada12=_0xf63dae;let _0x17871c=this['_revisionService'][_0x3ada12(0x1a0)](_0x5660ef);this[_0x3ada12(0x366)][_0x3ada12(0x363)](_0x5660ef,{'unitID':_0x5660ef,'type':_0x517a7b,'awaitingChangeset':_0xaad460,'mutations':_0x47c95e,'rev':_0x17871c}),this[_0x3ada12(0x3e1)]['has'](_0x5660ef)||this['_scheduleSaving'](_0x5660ef);}[_0xf63dae(0x312)](_0x47cba9){const _0x144c8e=_0xf63dae;let _0x148bc7=this[_0x144c8e(0x19e)]();_0x148bc7===0x0?this[_0x144c8e(0x347)](_0x47cba9):this['_saveTaskMap']['set'](_0x47cba9,window['setTimeout'](()=>this['_saveCache'](_0x47cba9),_0x148bc7));}[_0xf63dae(0x19e)](){const _0x505471=_0xf63dae;return this[_0x505471(0x342)]['getConfig'](_0x4b282a)??_0x4d1ffd;}['_saveCache'](_0x201f36){const _0x5e6457=_0xf63dae;let _0x175c78=this['_saveTaskMap'][_0x5e6457(0x18a)](_0x201f36);return _0x175c78!==void 0x0&&window[_0x5e6457(0x1c1)](_0x175c78),this[_0x5e6457(0x3ae)][_0x5e6457(0x3d5)](_0x203753(_0x201f36),this[_0x5e6457(0x366)]['get'](_0x201f36))['then'](()=>this[_0x5e6457(0x3e1)]['delete'](_0x201f36));}async[_0xf63dae(0x1f7)](){const _0x1a1522=_0xf63dae;let _0x217ed6=[];this[_0x1a1522(0x3e1)][_0x1a1522(0x23d)]((_0x265e28,_0x1b7b69)=>{const _0x4c3838=_0x1a1522;window['clearTimeout'](_0x265e28),_0x217ed6[_0x4c3838(0x28f)](this['_saveCache'](_0x1b7b69)[_0x4c3838(0x2b5)](()=>{this['_saveTaskMap']['delete'](_0x1b7b69);}));}),await Promise['all'](_0x217ed6);}};or=Y([J(0x0,_0x12fe7f),J(0x1,_0x29102b),J(0x2,_0x231ef2(_0x54835a))],or);var sr=class extends _0x3517ee{constructor(){const _0xbc223c=_0xf63dae;super(),q(this,_0xbc223c(0x2fe),void 0x0),this[_0xbc223c(0x2fe)]=_0x145df2(window,'popstate')[_0xbc223c(0x297)](_0x472a9e(this[_0xbc223c(0x283)]),_0x217c0d({'bufferSize':0x1,'refCount':!0x0}),_0x5b3108(void 0x0));}[_0xf63dae(0x1af)](_0x50e0a8,_0x11fd7a,_0x332580=!0x1){const _0x23634b=_0xf63dae;let _0xdc7f81=new URL(window[_0x23634b(0x25d)]['href']);_0xdc7f81[_0x23634b(0x281)]['set'](_0x50e0a8,_0x11fd7a),_0x332580?window['history'][_0x23634b(0x20f)]('','',_0xdc7f81['toString']()):window[_0x23634b(0x3a2)][_0x23634b(0x30a)]('','',_0xdc7f81['toString']());}[_0xf63dae(0x304)](_0x54157a,_0x2018ec=!0x1){const _0x3e3372=_0xf63dae;let _0x2743b2=new URL(window[_0x3e3372(0x25d)]['href']);_0x2743b2[_0x3e3372(0x281)][_0x3e3372(0x1d5)](_0x54157a),_0x2018ec?window[_0x3e3372(0x3a2)][_0x3e3372(0x20f)]('','',_0x2743b2[_0x3e3372(0x2b7)]()):window[_0x3e3372(0x3a2)][_0x3e3372(0x30a)]('','',_0x2743b2['toString']());}['getParam'](_0x1d5e10){const _0x3b474f=_0xf63dae;return new URL(window['location'][_0x3b474f(0x22a)])[_0x3b474f(0x281)][_0x3b474f(0x18a)](_0x1d5e10)??void 0x0;}};let $=class extends _0x4652d0{constructor(_0x5a943e=vn,_0x22ec99,_0x1eaa12,_0x129baa,_0x182141){const _0x49d8b6=_0xf63dae;super(),this[_0x49d8b6(0x360)]=_0x5a943e,this[_0x49d8b6(0x340)]=_0x22ec99,this[_0x49d8b6(0x1b0)]=_0x1eaa12,this[_0x49d8b6(0x342)]=_0x129baa,this[_0x49d8b6(0x338)]=_0x182141;let {..._0x7a04e8}=_0x3c577a({},vn,this[_0x49d8b6(0x360)]);this[_0x49d8b6(0x342)][_0x49d8b6(0x2f1)]('collaboration-client-ui.config',_0x7a04e8);}['onStarting'](){const _0x2ba6f2=_0xf63dae;this[_0x2ba6f2(0x330)](),this[_0x2ba6f2(0x1e1)](this[_0x2ba6f2(0x338)][_0x2ba6f2(0x34e)](_n)),this[_0x2ba6f2(0x2e0)]();}[_0xf63dae(0x3ce)](){const _0x14716a=_0xf63dae;this[_0x14716a(0x397)]();}[_0xf63dae(0x330)](){const _0x3ff83d=_0xf63dae;var _0x571f70;let _0x32e180=[[xn],[ar],[Kn,{'useClass':sr}],[_0x123d47,{'useClass':_0x5419f5}],[_0x705847,{'useClass':or}],[X],[Gn],[Z],[Wn],[qn],[nr]];this[_0x3ff83d(0x360)][_0x3ff83d(0x3da)]!==!0x1&&_0x32e180[_0x3ff83d(0x28f)]([Q],[Jn],[Yn],[wn],[Qn],[yn]),this[_0x3ff83d(0x360)]['enableFrontendLog']&&_0x32e180[_0x3ff83d(0x28f)]([$n]),_0x4390af(this[_0x3ff83d(0x1b0)],_0x58eb67(_0x32e180,(_0x571f70=this[_0x3ff83d(0x360)])==null?void 0x0:_0x571f70[_0x3ff83d(0x240)]));}['_registerRenderDependencies'](){const _0xae2896=_0xf63dae;this[_0xae2896(0x360)][_0xae2896(0x3da)]!==!0x1&&this['disposeWithMe'](this['_renderManagerService'][_0xae2896(0x26c)](_0xe0fbed['UNIVER_DOC'],[Pn])),this['disposeWithMe'](this[_0xae2896(0x340)][_0xae2896(0x26c)](_0xe0fbed[_0xae2896(0x379)],[In]));}[_0xf63dae(0x2e0)](){const _0x39e413=_0xf63dae;_0xe9ee62(this[_0x39e413(0x1b0)],[[Z],[Wn],[X],[Gn],[qn],[ar],[nr]]),this[_0x39e413(0x360)]['enableDocumentCollaborationUI']!==!0x1&&_0xe9ee62(this['_injector'],[[Qn],[yn]]),this[_0x39e413(0x360)][_0x39e413(0x2ad)]&&_0xe9ee62(this['_injector'],[[$n]]);}};q($,'pluginName',_0xf63dae(0x39b)),q($,'packageName',hn),q($,_0xf63dae(0x29c),gn),$=Y([_0x234aa0(_0x19087e,_0x2d8236,_0x2b6320,_0x4fc43f,_0x4ebbdf,_0x49e0ac,_0xb80cfd),J(0x1,_0xe22447),J(0x2,_0x231ef2(_0x5e0363)),J(0x3,_0x12fe7f),J(0x4,_0x1fc91d)],$);let cr=class extends _0x567fd6{constructor(_0x524f5e,_0x54af4a,_0x251b6b,_0x2d2a49,_0x3044ce){super(_0x524f5e,_0x54af4a,_0x251b6b,_0x2d2a49,_0x3044ce);}async[_0xf63dae(0x21f)](_0x1c2424){const _0x31d4ca=_0xf63dae;let _0x565bbb=await this[_0x31d4ca(0x1e6)](),_0x40547c=this[_0x31d4ca(0x2c4)](_0x1c2424,_0x565bbb);return this[_0x31d4ca(0x169)](_0x40547c);}[_0xf63dae(0x2c4)](_0x3eaf4a,_0x53feff){const _0xd63643=_0xf63dae;let _0x5acfb3=typeof window>'u'?new URL(_0x3eaf4a):new URL(_0x3eaf4a,window[_0xd63643(0x25d)]['origin']);_0x5acfb3[_0xd63643(0x281)]['set'](_0xd63643(0x2cf),_0x53feff);let _0x364d46=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xd63643(0x25d)][_0xd63643(0x393)]);return _0x364d46[_0xd63643(0x18a)](_0xd63643(0x3c8))&&_0x5acfb3[_0xd63643(0x281)][_0xd63643(0x363)](_0xd63643(0x3c8),_0x364d46[_0xd63643(0x18a)](_0xd63643(0x3c8))),_0x5acfb3[_0xd63643(0x2b7)]();}async[_0xf63dae(0x1e6)](){const _0x18d032=_0xf63dae;var _0x168de9;let _0x1969fc=this['_configService'][_0x18d032(0x365)](_0x24157f),_0x30e3b9=(_0x1969fc==null?void 0x0:_0x1969fc[_0x18d032(0x2d5)])??_0x94ea70;return((_0x168de9=(await this[_0x18d032(0x3cc)][_0x18d032(0x18a)](_0x30e3b9,{'headers':{'Content-Type':'application/json'}}))[_0x18d032(0x204)])==null?void 0x0:_0x168de9[_0x18d032(0x32c)])??'';}};cr=Y([J(0x0,_0x231ef2(_0x5e0363)),J(0x1,_0x231ef2(_0x207123)),J(0x2,_0x12fe7f),J(0x3,_0x585c40),J(0x4,_0x2afbb0)],cr);let lr=class extends _0x5a96ee{constructor(_0x2da6f3,_0x275ef0,_0x518575){const _0x547bcd=_0xf63dae;super(),this['_instanceService']=_0x2da6f3,this['_httpService']=_0x275ef0,this[_0x547bcd(0x342)]=_0x518575;}async[_0xf63dae(0x1c3)](_0x2af238,_0x4bc8ae,_0x36a834,..._0x20aaee){const _0x247d38=_0xf63dae;let _0x3de584=this[_0x247d38(0x2b1)][_0x247d38(0x2ef)]();if(!_0x3de584)throw Error(_0x247d38(0x323));let _0x2dd56a=(this['_configService'][_0x247d38(0x365)](_0x265f46)??_0x1b850a)+'/'+_0x2af238+_0x247d38(0x3bd)+_0x4bc8ae,_0x2ea26e={'scriptId':_0x2af238,'runId':new URL(window[_0x247d38(0x25d)][_0x247d38(0x22a)])[_0x247d38(0x281)]['get'](_0x247d38(0x3c8))??'','function':_0x4bc8ae,'unitId':_0x3de584[_0x247d38(0x21d)](),'argsOfFunction':JSON[_0x247d38(0x1bd)](_0x20aaee),'invokeId':_0x36a834[_0x247d38(0x237)]??'','executionId':_0x36a834[_0x247d38(0x303)]??''};try{let _0x27f94a=await this[_0x247d38(0x3cc)][_0x247d38(0x34a)](_0x2dd56a,{'body':_0x2ea26e});return _0x27f94a[_0x247d38(0x204)][_0x247d38(0x2aa)]&&_0x27f94a[_0x247d38(0x204)][_0x247d38(0x2aa)][_0x247d38(0x2a8)]!==_0x59d7db['OK']?_0x247d38(0x217):_0x27f94a['body']['result'];}catch{return'Failed';}}};lr=Y([J(0x0,_0x4bc33c),J(0x1,_0x231ef2(_0x207123)),J(0x2,_0x12fe7f)],lr);const ur=0x7530,dr=_0xf63dae(0x1ed);var fr=class extends _0x5a96ee{constructor(){const _0x3563bb=_0xf63dae;super(),q(this,_0x3563bb(0x29f),_0x10b3a5()),q(this,'_selfUnitIDs',new Set()),q(this,'_unitOnClients',new Map()),q(this,'_heartbeatTimer',null),q(this,_0x3563bb(0x329),new Map()),q(this,_0x3563bb(0x2b3),new Map()),this[_0x3563bb(0x16f)]();}[_0xf63dae(0x3d8)](){const _0x2217d9=_0xf63dae;super[_0x2217d9(0x3d8)](),this[_0x2217d9(0x329)][_0x2217d9(0x23d)]((_0x18742a,_0x22b711)=>this[_0x2217d9(0x27c)](_0x22b711)),this[_0x2217d9(0x1e5)]&&window[_0x2217d9(0x3dc)](this[_0x2217d9(0x1e5)]);}[_0xf63dae(0x3e7)](_0x1528f3){const _0x41d737=_0xf63dae;return this[_0x41d737(0x318)](_0x1528f3)[_0x41d737(0x297)](_0x3d929e());}[_0xf63dae(0x24d)](_0x517b65){const _0x309791=_0xf63dae;this[_0x309791(0x306)]['size']===0x0&&this[_0x309791(0x1da)](),this['_selfUnitIDs'][_0x309791(0x2e1)](_0x517b65),this['_send']({'type':0x0,'memberID':this[_0x309791(0x29f)],'unitIDs':[_0x517b65],'isForwarded':!0x1});}[_0xf63dae(0x30b)](_0x470bd3){const _0xfa07df=_0xf63dae;this[_0xfa07df(0x306)]['delete'](_0x470bd3),this[_0xfa07df(0x306)][_0xfa07df(0x301)]===0x0&&this[_0xfa07df(0x1e5)]&&window[_0xfa07df(0x3dc)](this[_0xfa07df(0x1e5)]);}['_init'](){const _0x2363bd=_0xf63dae;this[_0x2363bd(0x1e1)](_0x499979(_0x145df2(window,'storage')[_0x2363bd(0x257)](_0x54198e=>{const _0x3c2a6b=_0x2363bd;if(_0x54198e[_0x3c2a6b(0x182)]!==dr||!_0x54198e['newValue'])return;let _0x4ee4ff=JSON[_0x3c2a6b(0x235)](_0x54198e['newValue']);this[_0x3c2a6b(0x244)](_0x4ee4ff);}))),window[_0x2363bd(0x2a1)](_0x2363bd(0x2ac),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2363bd(0x1f6)](this[_0x2363bd(0x306)])}));}[_0xf63dae(0x244)](_0x47f42c){const _0x138c7e=_0xf63dae;switch(_0x47f42c['type']){case 0x0:this['_handleJoinEvent'](_0x47f42c);break;case 0x1:this['_handleLeaveEvent'](_0x47f42c);break;case 0x2:this[_0x138c7e(0x230)](_0x47f42c);break;}}[_0xf63dae(0x245)](_0x274bd4){const _0xb91d78=_0xf63dae;let {unitIDs:_0x164d9d,memberID:_0x545130,isForwarded:_0x48708f}=_0x274bd4;_0x164d9d[_0xb91d78(0x23d)](_0x93e04b=>{const _0x69b3c1=_0xb91d78;if(!_0x48708f&&this[_0x69b3c1(0x213)][_0x69b3c1(0x1a6)](_0x93e04b)&&this[_0x69b3c1(0x318)](_0x93e04b)[_0x69b3c1(0x22d)](_0x42cab2[_0x69b3c1(0x30f)]),!this[_0x69b3c1(0x213)][_0x69b3c1(0x1a6)](_0x93e04b)||!this[_0x69b3c1(0x213)][_0x69b3c1(0x18a)](_0x93e04b)[_0x69b3c1(0x1a6)](_0x545130)){let _0x205b64=this[_0x69b3c1(0x213)][_0x69b3c1(0x18a)](_0x93e04b)||new Set();_0x205b64[_0x69b3c1(0x2e1)](_0x545130),this[_0x69b3c1(0x213)]['set'](_0x93e04b,_0x205b64),this[_0x69b3c1(0x1d8)](_0x545130);}}),_0x48708f||this[_0xb91d78(0x26a)]({'type':0x0,'memberID':this[_0xb91d78(0x29f)],'unitIDs':[...this[_0xb91d78(0x306)]],'isForwarded':!0x0});}[_0xf63dae(0x1d8)](_0x172406){const _0x436050=_0xf63dae;this[_0x436050(0x27c)](_0x172406);let _0x4d6b48=window[_0x436050(0x337)](()=>{const _0x2c4c14=_0x436050;this[_0x2c4c14(0x213)][_0x2c4c14(0x23d)](_0x11f4df=>{const _0x1faafc=_0x2c4c14;_0x11f4df[_0x1faafc(0x1d5)](_0x172406);});},ur*0x2);this[_0x436050(0x329)][_0x436050(0x363)](_0x172406,_0x4d6b48);}['_removeClearOtherTimer'](_0x2e5132){const _0x8e33e5=_0xf63dae;if(this[_0x8e33e5(0x329)][_0x8e33e5(0x1a6)](_0x2e5132)){let _0x2d618f=this[_0x8e33e5(0x329)][_0x8e33e5(0x18a)](_0x2e5132);_0x2d618f&&window[_0x8e33e5(0x1c1)](_0x2d618f),this[_0x8e33e5(0x329)]['set'](_0x2e5132,null);}}[_0xf63dae(0x1ea)](_0x1f8216){const _0xbde058=_0xf63dae;let {memberID:_0x9f8680,unitIDs:_0x12b10c}=_0x1f8216;_0x12b10c[_0xbde058(0x23d)](_0x34cf67=>{const _0x141cbc=_0xbde058;var _0x29d3d7;let _0x3d91af=this[_0x141cbc(0x213)][_0x141cbc(0x18a)](_0x34cf67);_0x3d91af&&(_0x3d91af[_0x141cbc(0x1d5)](_0x9f8680),(_0x29d3d7=this[_0x141cbc(0x318)](_0x34cf67))==null||_0x29d3d7[_0x141cbc(0x22d)](_0x3d91af[_0x141cbc(0x301)]===0x0?_0x42cab2[_0x141cbc(0x20b)]:_0x42cab2[_0x141cbc(0x30f)]));}),this['_removeClearOtherTimer'](_0x9f8680);}[_0xf63dae(0x230)](_0x27871e){const _0x3f2704=_0xf63dae;this[_0x3f2704(0x1d8)](_0x27871e['memberID']);}['_send'](_0x16bf02){const _0x1b55f3=_0xf63dae;localStorage[_0x1b55f3(0x3d5)](dr,JSON['stringify'](_0x16bf02));}['_scheduleHeartbeat'](){const _0x123bd2=_0xf63dae;this[_0x123bd2(0x1e5)]=window[_0x123bd2(0x252)](()=>{const _0x44b0d9=_0x123bd2;this[_0x44b0d9(0x26a)]({'type':0x2,'memberID':this['_id']});},ur);}[_0xf63dae(0x318)](_0x2afed7){const _0x3f2f78=_0xf63dae;return this['_unitStatus'][_0x3f2f78(0x1a6)](_0x2afed7)||this[_0x3f2f78(0x2b3)]['set'](_0x2afed7,new _0x45225c(_0x42cab2[_0x3f2f78(0x20b)])),this[_0x3f2f78(0x2b3)][_0x3f2f78(0x18a)](_0x2afed7);}};export{cr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,Kn as IURLService,lr as RemoteUniscriptService,Fn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,fr as WebBrowserSingleActiveUnitService};