@univerjs-pro/collaboration-client-ui 1.4.0 → 1.5.0

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 (86) hide show
  1. package/README.md +7 -7
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ar-SA.js +1 -1
  5. package/lib/cjs/locale/ca-ES.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/vi-VN.js +1 -1
  20. package/lib/cjs/locale/zh-CN.js +1 -1
  21. package/lib/cjs/locale/zh-HK.js +1 -1
  22. package/lib/cjs/locale/zh-TW.js +1 -1
  23. package/lib/es/facade.js +1 -1
  24. package/lib/es/index.js +1 -1
  25. package/lib/es/locale/ar-SA.js +1 -1
  26. package/lib/es/locale/ca-ES.js +1 -1
  27. package/lib/es/locale/de-DE.js +1 -1
  28. package/lib/es/locale/en-US.js +1 -1
  29. package/lib/es/locale/es-ES.js +1 -1
  30. package/lib/es/locale/fa-IR.js +1 -1
  31. package/lib/es/locale/fr-FR.js +1 -1
  32. package/lib/es/locale/id-ID.js +1 -1
  33. package/lib/es/locale/it-IT.js +1 -1
  34. package/lib/es/locale/ja-JP.js +1 -1
  35. package/lib/es/locale/ko-KR.js +1 -1
  36. package/lib/es/locale/pl-PL.js +1 -1
  37. package/lib/es/locale/pt-BR.js +1 -1
  38. package/lib/es/locale/ru-RU.js +1 -1
  39. package/lib/es/locale/sk-SK.js +1 -1
  40. package/lib/es/locale/vi-VN.js +1 -1
  41. package/lib/es/locale/zh-CN.js +1 -1
  42. package/lib/es/locale/zh-HK.js +1 -1
  43. package/lib/es/locale/zh-TW.js +1 -1
  44. package/lib/facade.js +1 -1
  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/umd/facade.js +1 -1
  66. package/lib/umd/index.js +1 -1
  67. package/lib/umd/locale/ar-SA.js +1 -1
  68. package/lib/umd/locale/ca-ES.js +1 -1
  69. package/lib/umd/locale/de-DE.js +1 -1
  70. package/lib/umd/locale/en-US.js +1 -1
  71. package/lib/umd/locale/es-ES.js +1 -1
  72. package/lib/umd/locale/fa-IR.js +1 -1
  73. package/lib/umd/locale/fr-FR.js +1 -1
  74. package/lib/umd/locale/id-ID.js +1 -1
  75. package/lib/umd/locale/it-IT.js +1 -1
  76. package/lib/umd/locale/ja-JP.js +1 -1
  77. package/lib/umd/locale/ko-KR.js +1 -1
  78. package/lib/umd/locale/pl-PL.js +1 -1
  79. package/lib/umd/locale/pt-BR.js +1 -1
  80. package/lib/umd/locale/ru-RU.js +1 -1
  81. package/lib/umd/locale/sk-SK.js +1 -1
  82. package/lib/umd/locale/vi-VN.js +1 -1
  83. package/lib/umd/locale/zh-CN.js +1 -1
  84. package/lib/umd/locale/zh-HK.js +1 -1
  85. package/lib/umd/locale/zh-TW.js +1 -1
  86. package/package.json +18 -18
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x58f188=_0x5eb5;(function(_0x5a4a42,_0x354361){const _0x17a38e=_0x5eb5,_0x54be7a=_0x5a4a42();while(!![]){try{const _0x21f62e=-parseInt(_0x17a38e(0x106))/0x1*(-parseInt(_0x17a38e(0x349))/0x2)+parseInt(_0x17a38e(0x285))/0x3+parseInt(_0x17a38e(0x10e))/0x4*(-parseInt(_0x17a38e(0x168))/0x5)+parseInt(_0x17a38e(0x11f))/0x6+parseInt(_0x17a38e(0x2b6))/0x7*(-parseInt(_0x17a38e(0x367))/0x8)+parseInt(_0x17a38e(0x125))/0x9+-parseInt(_0x17a38e(0x2ac))/0xa*(parseInt(_0x17a38e(0x165))/0xb);if(_0x21f62e===_0x354361)break;else _0x54be7a['push'](_0x54be7a['shift']());}catch(_0x12cbfc){_0x54be7a['push'](_0x54be7a['shift']());}}}(_0x1ab2,0xd8a56));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x550596,CollaborationController as _0x1dbb3d,CollaborationSessionService as _0x30f71b,CollaborationSocketService as _0x378c11,CollaborationStatus as _0x43361f,CollaborationUIEventId as _0x14f0c4,CollaborationUIEventService as _0x37388a,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x34d028,DEFAULT_WS_SESSION_TICKET_URL as _0x4141f7,DocCollaborationEntity as _0x1179ca,ILocalCacheService as _0x25089d,INetworkConditionService as _0x19e088,LOCAL_CACHE_INTERVAL as _0x12d715,LOCAL_CACHE_INTERVAL_KEY as _0x3ec5e2,MemberService as _0x404421,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4a118a,SessionStatus as _0x340ef4,UnitStatus as _0x364cab,UniverCollaborationClientPlugin as _0x1a96fb,getLocalCacheKey as _0x4ddda6}from'@univerjs-pro/collaboration-client';import{COLORS as _0x1de6f1,ColorKit as _0x3fe263,CommandType as _0x4c6046,DOC_RANGE_TYPE as _0x265b4b,DependentOn as _0x1c0be4,Disposable as _0xecbfc3,DisposableCollection as _0x1a4166,ICommandService as _0x1b514f,IConfigService as _0x417f85,IImageIoService as _0x42a826,ILocalStorageService as _0x1c6a79,ILogService as _0x24a2da,IUniverInstanceService as _0x566a4d,Inject as _0x2991cf,Injector as _0x1ca7a1,LocaleService as _0x39eb27,Plugin as _0x475d76,Rectangle as _0x5d40ca,RxDisposable as _0x2c598a,ThemeService as _0x27953a,Tools as _0x321b91,UniverInstanceType as _0x5e9dee,UserManagerService as _0x19d632,debounce as _0x1a37c7,fromEventSubject as _0x8390cb,generateRandomId as _0x595a49,isInternalEditorID as _0x279514,merge as _0xeef0e2,mergeOverrideWithDependencies as _0x1c365c,registerDependencies as _0x22dc38,toDisposable as _0x3584fe,touchDependencies as _0x4f9ebf}from'@univerjs/core';import{BuiltInUIPart as _0x52a18c,IBeforeCloseService as _0x280f2e,IMessageService as _0x359371,INotificationService as _0x293ab0,IUIPartsService as _0x46213c,IUnitPresenceUIAdapterRegistry as _0x169b8,connectInjector as _0x45d242,useDependency as _0x7416bf,useObservable as _0x210bfe}from'@univerjs/ui';import{BehaviorSubject as _0x1de63d,Subject as _0x58d881,combineLatest as _0x634e9f,debounceTime as _0x1a8019,distinctUntilChanged as _0x274b8b,filter as _0x515f21,firstValueFrom as _0x3ea189,fromEvent as _0x59813c,map as _0x36133f,merge as _0x4d7f31,of as _0x4a308e,switchMap as _0x48e296,takeUntil as _0x26bbcf,throttle as _0x270630,timeout as _0x37a570,timer as _0x3c311b}from'rxjs';import{distinctUntilChanged as _0x46a0ff,filter as _0x326080,map as _0x9f450b,switchMap as _0x34bfa8,takeUntil as _0x4e1827,throttleTime as _0x24630c}from'rxjs/operators';import{Button as _0x3c4422,MessageType as _0x7d03a2,Tooltip as _0x4217e1,clsx as _0x22bdc1}from'@univerjs/design';import{LoadingMultiIcon as _0x2e51e6,OffLineIcon as _0x2279bf,OnLineIcon as _0x422f88,WarningIcon as _0x42372b}from'@univerjs/icons';import{createElement as _0x3c5a6e,useCallback as _0x3b73a4,useMemo as _0x154176}from'react';import{jsx as _0x1158dd,jsxs as _0x5c8e89}from'react/jsx-runtime';import{CollaborationEvent as _0x2b158b,ISnapshotServerService as _0x30cc55,ITransformService as _0x2f5815,RevisionService as _0xa13a76,SnapshotLoadStage as _0x4eed71,SnapshotLoadingService as _0x4c4129,UniverCollaborationPlugin as _0x45604d,isTransformMutationFailure as _0x1f5214,isTransformMutationsWithChangesetSuccess as _0x2b9bd9}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0xa13d56}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x161ce3,DocSkeletonManagerService as _0x535cc1,DocStateChangeManagerService as _0x328f64,RichTextEditingMutation as _0x1880f9,SetTextSelectionsOperation as _0x2cf124,UniverDocsPlugin as _0x5db5a4}from'@univerjs/docs';import{DocIMEInputManagerService as _0x1fdd61,IDocClipboardService as _0x2acf86,NodePositionConvertToCursor as _0x27df77,NodePositionConvertToRectRange as _0x581bc3,SetDocZoomRatioOperation as _0x3b3b2d,TEXT_RANGE_LAYER_INDEX as _0x4f8b20,UniverDocsUIPlugin as _0x2239c4}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x2910e4,IRenderManagerService as _0x29dfc6,Rect as _0x326168,RegularPolygon as _0x2be6cc,SHEET_VIEWPORT_KEY as _0x13f2f2,Shape as _0xb7ec,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3e0223,UniverRenderEnginePlugin as _0x541626,Vector2 as _0xff2b89,getColor as _0x4c51a6,getDocumentSkeletonColumnPagePathInfo as _0xd63531}from'@univerjs/engine-render';import{HTTPEventType as _0x20236d,HTTPService as _0x48b701,ISocketService as _0x12f9c9,UniverNetworkPlugin as _0x3e6315,WebSocketService as _0x41d850}from'@univerjs/network';import{deserializeRangeWithSheet as _0x9d4898,serializeRangeWithSheet as _0x238459}from'@univerjs/engine-formula';import{EffectRefRangId as _0x1bfd11,RefRangeService as _0x373db6,SetSelectionsOperation as _0x17ef13,SheetsSelectionsService as _0x3a726c,handleDeleteRangeMoveLeft as _0x37fc31,handleDeleteRangeMoveUp as _0x479c22,handleIRemoveCol as _0x920ad,handleIRemoveRow as _0x50d406,handleInsertCol as _0x498773,handleInsertRangeMoveDown as _0xaf5e49,handleInsertRangeMoveRight as _0x322622,handleInsertRow as _0x2a5239,handleMoveRange as _0x118b47,runRefRangeMutations as _0x318438}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x33a34c,getCoordByCell as _0x5b332f,getSheetObject as _0x1d80ec}from'@univerjs/sheets-ui';import{ErrorCode as _0x2426d1}from'@univerjs/protocol';function en(_0x388221){const _0x16a615=_0x5eb5;switch(_0x388221){case _0x43361f['OFFLINE']:return{'icon':_0x1158dd(_0x2279bf,{}),'colorClass':_0x16a615(0x237),'i18nKey':_0x16a615(0x232),'tooltipKey':_0x16a615(0x2e6),'clickable':!0x0,'indicator':_0x16a615(0x108)};case _0x43361f[_0x16a615(0x26b)]:return{'icon':_0x1158dd(_0x2279bf,{}),'colorClass':_0x16a615(0x2ed),'i18nKey':_0x16a615(0x298),'clickable':!0x1,'indicator':_0x16a615(0x108)};case _0x43361f[_0x16a615(0x115)]:return{'icon':_0x1158dd(_0x2e51e6,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x16a615(0x186),'clickable':!0x1,'indicator':'spin'};case _0x43361f[_0x16a615(0x2cf)]:return{'icon':_0x1158dd(_0x422f88,{}),'colorClass':_0x16a615(0x11a),'i18nKey':_0x16a615(0x339),'clickable':!0x1,'indicator':'static'};case _0x43361f[_0x16a615(0x209)]:case _0x43361f[_0x16a615(0x1d8)]:return{'icon':_0x1158dd(_0x2e51e6,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x16a615(0x2eb),'clickable':!0x1,'indicator':_0x16a615(0x14d)};case _0x43361f[_0x16a615(0x21a)]:return{'icon':_0x1158dd(_0x2e51e6,{}),'colorClass':_0x16a615(0x1c8),'i18nKey':_0x16a615(0x2eb),'clickable':!0x1,'indicator':_0x16a615(0x14d)};case _0x43361f[_0x16a615(0x169)]:return{'icon':_0x1158dd(_0x422f88,{}),'colorClass':_0x16a615(0x346),'i18nKey':_0x16a615(0x334),'clickable':!0x1,'indicator':_0x16a615(0x108)};}}function tn(_0x329ae9){const _0x3f849c=_0x5eb5;let {status$:_0x52b329}=_0x329ae9,_0x46a46b=_0x210bfe(_0x52b329,_0x43361f[_0x3f849c(0x2cf)]),_0x54ec69=_0x7416bf(_0x39eb27),_0x4944c4=_0x7416bf(_0x30f71b),_0xd7662f=_0x154176(()=>en(_0x46a46b),[_0x46a46b]),_0x425eae=_0x46a46b!==_0x43361f[_0x3f849c(0x28d)],_0x37594a=_0x54ec69['t'](_0xd7662f['i18nKey']),_0xcb6608=_0xd7662f[_0x3f849c(0x176)]?_0x54ec69['t'](_0xd7662f[_0x3f849c(0x176)]):_0x37594a,_0x8fa423=_0x3b73a4(()=>{const _0x2e2326=_0x3f849c;_0x425eae||_0x4944c4[_0x2e2326(0x2cb)]();},[_0x425eae,_0x4944c4]),_0x4a658e=_0x3b73a4(_0x3cd3bb=>{const _0x35deef=_0x3f849c;_0x425eae||_0x3cd3bb[_0x35deef(0x322)]!==_0x35deef(0x2fa)&&_0x3cd3bb[_0x35deef(0x322)]!=='\x20'||(_0x3cd3bb[_0x35deef(0x20d)](),_0x4944c4[_0x35deef(0x2cb)]());},[_0x425eae,_0x4944c4]),_0x2a0075=_0x1158dd(_0x3f849c(0x123),{'className':_0x22bdc1('univer-flex\x20univer-items-center\x20univer-justify-center',_0x3f849c(0x230),_0xd7662f['colorClass'],{'univer-animate-spin':_0xd7662f[_0x3f849c(0x1fd)]===_0x3f849c(0x14d),'univer-animate-pulse':_0xd7662f['indicator']==='pulse'}),'aria-hidden':_0x3f849c(0x142),'children':_0xd7662f['icon']}),_0x45f343=_0x1158dd(_0x3f849c(0x123),{'className':_0x22bdc1(_0x3f849c(0x1da),_0x3f849c(0x266),_0x3f849c(0x228),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2',_0x3f849c(0x35e),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0xd7662f[_0x3f849c(0x318)],'univer-cursor-default':!_0xd7662f[_0x3f849c(0x318)]}),'children':_0x2a0075});return _0xd7662f[_0x3f849c(0x318)]?_0x1158dd(_0x4217e1,{'title':_0xcb6608,'placement':_0x3f849c(0x12b),'children':_0x1158dd(_0x3f849c(0x20a),{'type':_0x3f849c(0x20a),'onClick':_0x8fa423,'onKeyDown':_0x4a658e,'className':_0x22bdc1('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x3f849c(0xf6),'univer-m-0\x20univer-p-0',_0x3f849c(0x354)),'aria-label':_0x37594a+'\x20-\x20'+_0xcb6608,'role':_0x3f849c(0x1fc),'aria-live':_0x3f849c(0xf7),'aria-atomic':_0x3f849c(0x142),'children':_0x45f343})}):_0x1158dd(_0x4217e1,{'title':_0xcb6608,'placement':'bottom','children':_0x1158dd('div',{'className':_0x22bdc1(_0x3f849c(0x24d),_0x3f849c(0xf6),_0x3f849c(0x1e6)),'aria-label':_0x37594a,'role':_0x3f849c(0x1fc),'aria-live':_0x3f849c(0xf7),'aria-atomic':_0x3f849c(0x142),'children':_0x45f343})});}function q(_0x58627c){'@babel/helpers - typeof';const _0x5f00e0=_0x5eb5;return q=typeof Symbol==_0x5f00e0(0x30c)&&typeof Symbol[_0x5f00e0(0x1ec)]==_0x5f00e0(0x16a)?function(_0x41a9fb){return typeof _0x41a9fb;}:function(_0x2d66c5){const _0x39619a=_0x5f00e0;return _0x2d66c5&&typeof Symbol=='function'&&_0x2d66c5[_0x39619a(0x271)]===Symbol&&_0x2d66c5!==Symbol[_0x39619a(0x36b)]?_0x39619a(0x16a):typeof _0x2d66c5;},q(_0x58627c);}function nn(_0x343663,_0x395556){const _0x4ab52f=_0x5eb5;if(q(_0x343663)!=_0x4ab52f(0xf8)||!_0x343663)return _0x343663;var _0x4257e3=_0x343663[Symbol['toPrimitive']];if(_0x4257e3!==void 0x0){var _0x231b60=_0x4257e3[_0x4ab52f(0x1ea)](_0x343663,_0x395556||_0x4ab52f(0x338));if(q(_0x231b60)!=_0x4ab52f(0xf8))return _0x231b60;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x395556===_0x4ab52f(0x1b8)?String:Number)(_0x343663);}function rn(_0x44b370){const _0x9bea92=_0x5eb5;var _0x4f63dc=nn(_0x44b370,_0x9bea92(0x1b8));return q(_0x4f63dc)==_0x9bea92(0x16a)?_0x4f63dc:_0x4f63dc+'';}function J(_0x5dead2,_0x51f656,_0x378605){return(_0x51f656=rn(_0x51f656))in _0x5dead2?Object['defineProperty'](_0x5dead2,_0x51f656,{'value':_0x378605,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5dead2[_0x51f656]=_0x378605,_0x5dead2;}function Y(_0x14ac73,_0x5c6f44){return function(_0xa1e236,_0x200160){_0x5c6f44(_0xa1e236,_0x200160,_0x14ac73);};}function X(_0x31c2a1,_0xc90342,_0x4b3cdb,_0xee4835){const _0x3600cc=_0x5eb5;var _0x16ed2a=arguments[_0x3600cc(0x189)],_0x4228f7=_0x16ed2a<0x3?_0xc90342:_0xee4835===null?_0xee4835=Object[_0x3600cc(0x2ec)](_0xc90342,_0x4b3cdb):_0xee4835,_0x5939ba;if(typeof Reflect==_0x3600cc(0xf8)&&typeof Reflect[_0x3600cc(0x2e4)]=='function')_0x4228f7=Reflect[_0x3600cc(0x2e4)](_0x31c2a1,_0xc90342,_0x4b3cdb,_0xee4835);else{for(var _0x426e4a=_0x31c2a1['length']-0x1;_0x426e4a>=0x0;_0x426e4a--)(_0x5939ba=_0x31c2a1[_0x426e4a])&&(_0x4228f7=(_0x16ed2a<0x3?_0x5939ba(_0x4228f7):_0x16ed2a>0x3?_0x5939ba(_0xc90342,_0x4b3cdb,_0x4228f7):_0x5939ba(_0xc90342,_0x4b3cdb))||_0x4228f7);}return _0x16ed2a>0x3&&_0x4228f7&&Object[_0x3600cc(0x268)](_0xc90342,_0x4b3cdb,_0x4228f7),_0x4228f7;}let Z=class extends _0xecbfc3{constructor(_0x189830,_0x35a2fe,_0x258501,_0xe28a1a,_0x5ca486){const _0x277caf=_0x5eb5;super(),this['_univerInstanceService']=_0x189830,this[_0x277caf(0x32e)]=_0x35a2fe,this[_0x277caf(0x301)]=_0x258501,this['_uiPartsService']=_0xe28a1a,this[_0x277caf(0x29f)]=_0x5ca486,J(this,_0x277caf(0x2ca),new _0x1de63d(_0x43361f[_0x277caf(0x2cf)])),J(this,_0x277caf(0x21e),new Map()),this[_0x277caf(0x2a1)](),this[_0x277caf(0x2af)](),this['_initPresenceStatusComponents']();}[_0x58f188(0x17c)](){const _0x166d34=_0x58f188;this['_presenceStatusRegistrations']['forEach'](_0x26aa2c=>_0x26aa2c[_0x166d34(0x17c)]()),this['_presenceStatusRegistrations'][_0x166d34(0x20e)](),this[_0x166d34(0x2ca)][_0x166d34(0x2ff)](),super[_0x166d34(0x17c)]();}[_0x58f188(0x2af)](){const _0x3d4516=_0x58f188;this['disposeWithMe'](_0x4d7f31(this[_0x3d4516(0x23b)][_0x3d4516(0x1c2)],this[_0x3d4516(0x23b)][_0x3d4516(0x196)](_0x5e9dee[_0x3d4516(0x12e)]),this[_0x3d4516(0x23b)][_0x3d4516(0x196)](_0x5e9dee[_0x3d4516(0x1e1)]))['pipe'](_0x9f450b(()=>an(this[_0x3d4516(0x23b)])),_0x46a0ff(),_0x48e296(_0x192e25=>_0x192e25?this['_collaborationController']['getCollabEntity$'](_0x192e25):_0x4a308e(null)),_0x48e296(_0x381989=>_0x381989?_0x381989[_0x3d4516(0x2d3)]:_0x4a308e(_0x43361f[_0x3d4516(0x2cf)])))[_0x3d4516(0x2cc)](_0xe604b4=>{const _0x1177b7=_0x3d4516;this[_0x1177b7(0x2ca)][_0x1177b7(0x134)](_0xe604b4);}));}[_0x58f188(0x2a1)](){const _0xfbe795=_0x58f188;this[_0xfbe795(0x16e)](this[_0xfbe795(0x109)]['registerComponent'](_0x52a18c[_0xfbe795(0x15f)],()=>_0x45d242(on({'status$':this['_status$'][_0xfbe795(0x11e)]()}),this[_0xfbe795(0x32e)])));}[_0x58f188(0x159)](){const _0x4c1aa1=_0x58f188;let _0x360034=this[_0x4c1aa1(0x29f)][_0x4c1aa1(0x369)][_0x4c1aa1(0x2cc)](_0x3daf7a=>{this['_syncPresenceStatusComponents'](_0x3daf7a);});this['disposeWithMe'](_0x3584fe(()=>_0x360034[_0x4c1aa1(0x2ab)]()));}[_0x58f188(0xfb)](_0x3ef63e){const _0x579609=_0x58f188;let _0x44997e=new Map(_0x3ef63e[_0x579609(0x303)](_0x3e25bf=>_0x3e25bf[_0x579609(0x2c5)]!=null)[_0x579609(0x311)](_0x215f6e=>[_0x215f6e[_0x579609(0x1a1)],_0x215f6e]));this[_0x579609(0x21e)][_0x579609(0x299)]((_0x4a78cc,_0x201f1d)=>{const _0xa80cf3=_0x579609;_0x44997e[_0xa80cf3(0xfe)](_0x201f1d)||(_0x4a78cc[_0xa80cf3(0x17c)](),this[_0xa80cf3(0x21e)][_0xa80cf3(0x10c)](_0x201f1d));}),_0x44997e[_0x579609(0x299)]((_0x1e0378,_0x334318)=>{const _0x332450=_0x579609;this[_0x332450(0x21e)][_0x332450(0xfe)](_0x334318)||this[_0x332450(0x1eb)](_0x1e0378);});}[_0x58f188(0x1eb)](_0x4e924b){const _0x39b25b=_0x58f188;let _0x9ec042=_0x4e924b['statusUIPart'];if(!_0x9ec042)return;let _0x1c7822=new _0x1a4166(),_0x3cb51b=new _0x1de63d(_0x43361f['NOT_COLLAB']);_0x1c7822[_0x39b25b(0x20c)](_0x3584fe(()=>_0x3cb51b['complete']())),_0x1c7822[_0x39b25b(0x20c)](this[_0x39b25b(0x109)][_0x39b25b(0x257)](_0x9ec042,()=>_0x45d242(on({'status$':_0x3cb51b[_0x39b25b(0x11e)]()}),this['_injector'])));let _0x2758df=this['_univerInstanceService'][_0x39b25b(0x196)](_0x4e924b[_0x39b25b(0x1a1)])[_0x39b25b(0x1e3)](_0x9f450b(_0x21dac7=>(_0x21dac7==null?void 0x0:_0x21dac7[_0x39b25b(0x1b3)]())??null),_0x46a0ff(),_0x48e296(_0x49eef4=>_0x49eef4?this[_0x39b25b(0x301)][_0x39b25b(0x194)](_0x49eef4):_0x4a308e(null)),_0x48e296(_0x599fb8=>(_0x599fb8==null?void 0x0:_0x599fb8['status$'])??_0x4a308e(_0x43361f[_0x39b25b(0x2cf)])))[_0x39b25b(0x2cc)](_0x355488=>_0x3cb51b[_0x39b25b(0x134)](_0x355488));_0x1c7822['add'](_0x3584fe(()=>_0x2758df[_0x39b25b(0x2ab)]())),this['_presenceStatusRegistrations'][_0x39b25b(0x24c)](_0x4e924b['unitType'],_0x1c7822);}};Z=X([Y(0x0,_0x566a4d),Y(0x1,_0x2991cf(_0x1ca7a1)),Y(0x2,_0x2991cf(_0x1dbb3d)),Y(0x3,_0x46213c),Y(0x4,_0x2991cf(_0x169b8))],Z);function an(_0x10eab5){const _0x48181d=_0x58f188;let _0x5858b6=_0x10eab5['getFocusedUnit'](),_0x22f8b0=_0x5858b6==null?void 0x0:_0x5858b6[_0x48181d(0x1b3)]();if(_0x22f8b0&&!_0x279514(_0x22f8b0))return _0x22f8b0;let _0xe662b2=_0x10eab5['getCurrentUnitOfType'](_0x5e9dee[_0x48181d(0x12e)]),_0x2c162a=_0xe662b2==null?void 0x0:_0xe662b2['getUnitId']();if(_0x2c162a&&!_0x279514(_0x2c162a))return _0x2c162a;let _0xdaa48a=_0x10eab5[_0x48181d(0x15b)](_0x5e9dee[_0x48181d(0x1e1)]);if(_0xdaa48a)return _0xdaa48a['getUnitId']();let _0x33eb1f=_0x10eab5[_0x48181d(0x24a)](_0x5e9dee[_0x48181d(0x12e)])[_0x48181d(0x10a)](_0x3af3ee=>!_0x279514(_0x3af3ee[_0x48181d(0x1b3)]()));return _0x33eb1f?_0x33eb1f[_0x48181d(0x1b3)]():null;}function on(_0x2cd884){let {status$:_0xe1f14b}=_0x2cd884;return function(){return _0x1158dd(tn,{'status$':_0xe1f14b});};}var sn=_0x58f188(0x221),cn=_0x58f188(0x153);const ln={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':_0x4c6046[_0x58f188(0x122)],'handler':(_0x1c5275,_0x44199c)=>{const _0x48a57c=_0x58f188;let _0x20fd0b=_0x1c5275['get'](_0x169b8)['get'](_0x44199c[_0x48a57c(0x1a1)]);if(!_0x20fd0b)return!0x1;switch(_0x44199c[_0x48a57c(0x1f3)][_0x48a57c(0x269)]){case _0x48a57c(0x24c):return _0x20fd0b[_0x48a57c(0x287)](_0x44199c[_0x48a57c(0x1f3)][_0x48a57c(0x359)]),!0x0;case _0x48a57c(0x21c):return _0x20fd0b[_0x48a57c(0x291)](_0x44199c[_0x48a57c(0x1f3)][_0x48a57c(0x1db)],_0x44199c['update'][_0x48a57c(0x25b)]),!0x0;case'clear':return _0x20fd0b['clearRemotePresences'](_0x44199c[_0x48a57c(0x1f3)]['unitId']),!0x0;default:return!0x1;}}},un={};let dn=class extends _0x2c598a{constructor(_0x1b51e6,_0xaeba7e){const _0xe4f1ac=_0x58f188;super(),this['_docClipboardService']=_0x1b51e6,this['_imageIoService']=_0xaeba7e,this[_0xe4f1ac(0x144)]();}[_0x58f188(0x144)](){const _0x3b9c3f=_0x58f188;let _0x1badb3=this;this[_0x3b9c3f(0x16e)](this[_0x3b9c3f(0x31a)]['addClipboardHook']({'onBeforePasteImage':async _0x4e3da3=>{const _0x3577bf=_0x3b9c3f;let _0x359be6=await _0x1badb3[_0x3577bf(0x117)][_0x3577bf(0x13c)](_0x4e3da3);return _0x359be6?{'source':_0x359be6['source'],'imageSourceType':_0x359be6[_0x3577bf(0x36e)]}:null;}}));}};dn=X([Y(0x0,_0x2acf86),Y(0x1,_0x42a826)],dn);const fn=[_0x58f188(0x262),_0x58f188(0x29c),'green.600',_0x58f188(0x310),_0x58f188(0x2fd),_0x58f188(0x327)];var pn=class extends _0xecbfc3{constructor(..._0x3aae5e){super(..._0x3aae5e),J(this,'_assignedColors',new Map()),J(this,'_colorIndex',0x0);}[_0x58f188(0x129)](_0x156660){const _0x36ba46=_0x58f188;if(this['_assignedColors'][_0x36ba46(0xfe)](_0x156660))return this['_assignedColors'][_0x36ba46(0x203)](_0x156660);let _0x4bc8b8=fn[this[_0x36ba46(0x2bc)]];return this['_colorIndex']=(this[_0x36ba46(0x2bc)]+0x1)%fn[_0x36ba46(0x189)],this['_assignedColors']['set'](_0x156660,_0x4bc8b8),_0x4bc8b8;}};function mn(_0x164a5c){const _0x56fb23=_0x58f188;let _0xe48133='';for(let _0x41157c of _0x164a5c){let {startOffset:_0x1fe605,endOffset:_0x1423f6,isActive:_0x429bac,rangeType:_0x3fe0ee,segmentId:_0x1f73bc,segmentPage:_0x56d996}=_0x41157c;_0xe48133[_0x56fb23(0x189)]&&(_0xe48133+=','),_0xe48133+=_0x1fe605+':'+_0x1423f6+':'+(_0x429bac?'1':'0')+':'+_0x3fe0ee+':'+_0x1f73bc+':'+_0x56d996;}return _0xe48133;}function hn(_0x259c4c){const _0xed462a=_0x58f188;let _0x19b371=_0x259c4c[_0xed462a(0x149)](','),_0x2da2ea=[];for(let _0x17d391 of _0x19b371){let [_0x4e0de5,_0xde9da9,_0x160e55,_0x6ab4ca,_0x171ade,_0x5b1fa4]=_0x17d391[_0xed462a(0x149)](':');_0x2da2ea['push']({'startOffset':Number(_0x4e0de5),'endOffset':Number(_0xde9da9),'collapsed':_0x4e0de5===_0xde9da9,'isActive':_0x160e55==='1','rangeType':_0x6ab4ca===_0x265b4b[_0xed462a(0x23a)]?_0x265b4b[_0xed462a(0x23a)]:_0x265b4b[_0xed462a(0x2d1)],'segmentId':typeof _0x171ade==_0xed462a(0x1b8)?String(_0x171ade):'','segmentPage':Number(_0x5b1fa4??-0x1)});}return _0x2da2ea[_0xed462a(0x218)](_0x5a0d29=>_0x5a0d29['isActive'])||(_0x2da2ea[0x0]['isActive']=!0x0),_0x2da2ea;}var gn=class extends _0x2c598a{constructor(..._0x42b57b){const _0x91ec9f=_0x58f188;super(..._0x42b57b),J(this,_0x91ec9f(0x26e),new _0x1de63d(null)),J(this,_0x91ec9f(0x31b),this[_0x91ec9f(0x26e)][_0x91ec9f(0x11e)]());}[_0x58f188(0x10f)](_0x52df10){const _0x4f9392=_0x58f188;let {unitID:_0x4003d5,memberID:_0x438267,textRanges:_0x2f37a3}=_0x52df10,_0x2f67a7=mn(_0x2f37a3);if(_0x2f67a7==='')return;let _0x172fcb={'unitID':_0x4003d5,'memberID':_0x438267,'selection':_0x2f67a7};this[_0x4f9392(0x26e)][_0x4f9392(0x134)](_0x172fcb);}};let _n=class extends _0x2c598a{get[_0x58f188(0x27c)](){const _0x2d8323=_0x58f188;return this[_0x2d8323(0x362)][_0x2d8323(0x124)]();}get[_0x58f188(0x18b)](){const _0x3ecb4d=_0x58f188;return this['_roomMembers$'][_0x3ecb4d(0x124)]();}constructor(_0x5402e0,_0x20828d,_0x4dfe63,_0x45cfac,_0x38cda4,_0xedbc34,_0x585295,_0x507d92,_0x30f3d0){const _0x564da1=_0x58f188;super(),this[_0x564da1(0x29b)]=_0x5402e0,this['_session']=_0x20828d,this[_0x564da1(0x32e)]=_0x4dfe63,this[_0x564da1(0x36a)]=_0x45cfac,this[_0x564da1(0x242)]=_0x38cda4,this[_0x564da1(0x2ad)]=_0xedbc34,this[_0x564da1(0x270)]=_0x585295,this[_0x564da1(0x23b)]=_0x507d92,this[_0x564da1(0x290)]=_0x30f3d0,J(this,_0x564da1(0x2e8),!0x1),J(this,_0x564da1(0x144),!0x1),J(this,_0x564da1(0x362),new _0x1de63d(new Map())),J(this,'cursorInfo$',this[_0x564da1(0x362)]['asObservable']()),J(this,'_roomMembers$',new _0x1de63d([])),J(this,'roomMembers$',this[_0x564da1(0x19e)][_0x564da1(0x1e3)](_0x1a8019(0x12c))),J(this,_0x564da1(0x2e3),_0x1a37c7(_0x521f4e=>{const _0x3f39a6=_0x564da1;let _0x499fe4={'eventID':_0x2b158b[_0x3f39a6(0x155)],'data':{'unitID':this['unitID'],'memberID':this[_0x3f39a6(0x323)][_0x3f39a6(0x199)](),'selection':mn(_0x521f4e)}};this[_0x3f39a6(0x323)][_0x3f39a6(0x1bc)](_0x499fe4,this[_0x3f39a6(0x29b)]);},0x64));}[_0x58f188(0x17c)](){const _0x32f111=_0x58f188;super[_0x32f111(0x17c)](),this[_0x32f111(0x362)][_0x32f111(0x134)](new Map()),this[_0x32f111(0x362)][_0x32f111(0x2ff)](),this[_0x32f111(0x19e)][_0x32f111(0x134)]([]),this['_roomMembers$'][_0x32f111(0x2ff)]();}[_0x58f188(0x1a8)](){const _0x255212=_0x58f188;this[_0x255212(0x144)]||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](_0x26bbcf(this[_0x255212(0x1d1)]))[_0x255212(0x2cc)](_0x15439d=>{const _0x374e8a=_0x255212;_0x15439d===_0x340ef4[_0x374e8a(0x13d)]?this['_toggleOnline']():this[_0x374e8a(0x31d)]();}),this['_session']['event$'][_0x255212(0x1e3)](_0x26bbcf(this['dispose$']))[_0x255212(0x2cc)](_0x59fa7e=>{const _0xebb98e=_0x255212;let _0x1995ee=_0x59fa7e[_0xebb98e(0x14a)];_0x1995ee===_0x2b158b[_0xebb98e(0x155)]&&this[_0xebb98e(0x147)](_0x59fa7e),_0x1995ee===_0x2b158b[_0xebb98e(0x2d2)]&&this[_0xebb98e(0x306)](_0x59fa7e);}),this[_0x255212(0x16e)](this[_0x255212(0x290)][_0x255212(0x31f)](_0x390eae=>{const _0x26c0d8=_0x255212;let _0x55e5c2=_0x390eae[_0x26c0d8(0x19f)];_0x55e5c2!=null&&this[_0x26c0d8(0x2e8)]&&_0x390eae['id']===_0x2cf124['id']&&_0x55e5c2[_0x26c0d8(0x1db)]===this['unitID']&&_0x55e5c2[_0x26c0d8(0x160)]===!0x1&&_0x55e5c2['ranges'][_0x26c0d8(0x189)]>0x0&&this[_0x26c0d8(0x2e3)](_0x55e5c2['ranges']);})),this[_0x255212(0x2ad)][_0x255212(0x31b)][_0x255212(0x1e3)](_0x26bbcf(this[_0x255212(0x1d1)]))['subscribe'](_0x1c9fed=>{const _0x56a90d=_0x255212;if((_0x1c9fed==null?void 0x0:_0x1c9fed['unitID'])!==this[_0x56a90d(0x29b)])return;let _0x1762e9={'eventID':_0x2b158b[_0x56a90d(0x155)],'data':_0x1c9fed};this[_0x56a90d(0x147)](_0x1762e9);}),this[_0x255212(0x16e)](this[_0x255212(0x290)][_0x255212(0x31f)](_0x49fdda=>{const _0x390f20=_0x255212;if(_0x49fdda[_0x390f20(0x19f)]==null)return;let _0x5b5e00=_0x49fdda[_0x390f20(0x19f)];if(_0x49fdda['id']!==_0x1880f9['id']||_0x5b5e00[_0x390f20(0x1db)]!==this[_0x390f20(0x29b)])return;let _0x28da84={'id':_0x390f20(0x371),'params':_0x5b5e00},_0x2049a0=this[_0x390f20(0x27c)];for(let [_0x10013c,_0x3ee2da]of _0x2049a0){let _0x57027d={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3ee2da['ranges']}},_0x37df36=this[_0x390f20(0x270)][_0x390f20(0x25a)](_0x28da84,_0x57027d,!0x1);if(_0x1f5214(_0x37df36))throw _0x37df36[_0x390f20(0x211)];_0x2049a0['set'](_0x10013c,{..._0x3ee2da,'ranges':_0x37df36[_0x390f20(0x1f0)][_0x390f20(0x19f)]['textRanges']});}queueMicrotask(()=>{const _0x3ac846=_0x390f20;this[_0x3ac846(0x362)]['next'](_0x2049a0);});})));}[_0x58f188(0x147)](_0x2393a1){const _0x4ec451=_0x58f188;var _0xf9623b;let {memberID:_0x51dbbc,selection:_0x464e09}=_0x2393a1[_0x4ec451(0x227)],_0x3d06bb=hn(_0x464e09),_0x53f939=((_0xf9623b=this[_0x4ec451(0x242)][_0x4ec451(0x1fe)](this[_0x4ec451(0x29b)],_0x51dbbc))==null?void 0x0:_0xf9623b['name'])??_0x4ec451(0xeb),_0xe07af6={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x51dbbc),'name':_0x53f939,'ranges':_0x3d06bb},_0x214142=this[_0x4ec451(0x27c)];_0x214142['set'](_0x51dbbc,_0xe07af6),this['_cursorInfo$'][_0x4ec451(0x134)](_0x214142);}[_0x58f188(0x306)](_0x3aafa8){const _0x2a7fc3=_0x58f188;let {memberID:_0x229dff}=_0x3aafa8[_0x2a7fc3(0x227)],_0x22af64=this[_0x2a7fc3(0x27c)];_0x22af64['delete'](_0x229dff),this['_cursorInfo$']['next'](_0x22af64);}[_0x58f188(0x1c7)](){const _0xeafe3=_0x58f188;var _0x176146;if(this['_online']=!0x0,((_0x176146=this['_univerInstanceService'][_0xeafe3(0x191)]())==null?void 0x0:_0x176146[_0xeafe3(0x1b3)]())!==this[_0xeafe3(0x29b)])return;let _0x2ef2de=this[_0xeafe3(0x32e)][_0xeafe3(0x203)](_0x161ce3)[_0xeafe3(0x2c3)]();Array[_0xeafe3(0xea)](_0x2ef2de)&&_0x2ef2de[_0xeafe3(0x189)]>0x0&&this[_0xeafe3(0x2e3)](_0x2ef2de);}['_toggleOffline'](){const _0x1b7bfc=_0x58f188;this[_0x1b7bfc(0x2e8)]=!0x1;}};_n=X([Y(0x2,_0x2991cf(_0x1ca7a1)),Y(0x3,_0x2991cf(pn)),Y(0x4,_0x2991cf(_0x404421)),Y(0x5,_0x2991cf(gn)),Y(0x6,_0x2f5815),Y(0x7,_0x566a4d),Y(0x8,_0x1b514f)],_n);const vn=()=>{let _0x31b296=[],_0x21e209=!0x1;return _0x4b0993=>{_0x31b296['push'](_0x4b0993),_0x21e209||(_0x21e209=!0x0,setTimeout(()=>{const _0x46d8b1=_0x5eb5;_0x31b296[_0x46d8b1(0x299)](_0x4e3a3b=>_0x4e3a3b()),_0x31b296=[],_0x21e209=!0x1;}));};};let yn=class extends _0x2c598a{get[_0x58f188(0x27c)](){const _0x4e4690=_0x58f188;return this['_cursorInfo$'][_0x4e4690(0x124)]();}get[_0x58f188(0x18b)](){const _0x21689e=_0x58f188;return this[_0x21689e(0x19e)][_0x21689e(0x124)]();}constructor(_0x5f3d61,_0x11c646,_0x496e1b,_0x283aba,_0x18cf74,_0x33a295,_0x19d485,_0x552134){const _0x212284=_0x58f188;super(),this[_0x212284(0x29b)]=_0x5f3d61,this[_0x212284(0x323)]=_0x11c646,this[_0x212284(0x32e)]=_0x496e1b,this[_0x212284(0x36a)]=_0x283aba,this['_memberService']=_0x18cf74,this['_univerInstanceService']=_0x33a295,this[_0x212284(0x290)]=_0x19d485,this['_refRangeService']=_0x552134,J(this,'_online',!0x1),J(this,_0x212284(0x144),!0x1),J(this,_0x212284(0x362),new _0x1de63d(new Map())),J(this,_0x212284(0x206),this[_0x212284(0x362)]['asObservable']()),J(this,_0x212284(0x19e),new _0x1de63d([])),J(this,_0x212284(0x273),this['_roomMembers$'][_0x212284(0x1e3)](_0x1a8019(0x12c))),J(this,_0x212284(0x2e3),_0x1a37c7((_0x2f8684,_0x37fbbc)=>{const _0xf368e5=_0x212284;let _0x49cab6={'eventID':_0x2b158b['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0xf368e5(0x199)](),'selection':_0x238459(_0x2f8684,_0x37fbbc['range'])}};this[_0xf368e5(0x323)][_0xf368e5(0x1bc)](_0x49cab6,this[_0xf368e5(0x29b)]);},0x64));}[_0x58f188(0x17c)](){const _0x3720f7=_0x58f188;super[_0x3720f7(0x17c)](),this[_0x3720f7(0x362)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x3720f7(0x19e)][_0x3720f7(0x134)]([]),this[_0x3720f7(0x19e)]['complete']();}['init'](){const _0x536f4b=_0x58f188;this[_0x536f4b(0x144)]||(this[_0x536f4b(0x144)]=!0x0,this['_session'][_0x536f4b(0x158)][_0x536f4b(0x1e3)](_0x26bbcf(this[_0x536f4b(0x1d1)]))[_0x536f4b(0x2cc)](_0x278a93=>{const _0x2a67eb=_0x536f4b;_0x278a93===_0x340ef4[_0x2a67eb(0x13d)]?this['_toggleOnline']():this[_0x2a67eb(0x31d)]();}),this[_0x536f4b(0x323)][_0x536f4b(0x1b9)][_0x536f4b(0x1e3)](_0x26bbcf(this[_0x536f4b(0x1d1)]))['subscribe'](_0x398b18=>{const _0x4baac6=_0x536f4b;let _0xadcc1d=_0x398b18[_0x4baac6(0x14a)];_0xadcc1d===_0x2b158b['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x398b18),_0xadcc1d===_0x2b158b['USERS_LEAVE']&&this[_0x4baac6(0x306)](_0x398b18);}),this[_0x536f4b(0x15e)](),this[_0x536f4b(0x16e)](this[_0x536f4b(0x290)]['onCommandExecuted'](_0x5dab36=>{const _0x2048ce=_0x536f4b;if(this['_online']&&_0x5dab36['id']===_0x17ef13['id']&&_0x5dab36[_0x2048ce(0x19f)]['unitId']===this[_0x2048ce(0x29b)]){let _0x2c5418=_0x5dab36[_0x2048ce(0x19f)];this[_0x2048ce(0x2e3)](_0x2c5418[_0x2048ce(0x24f)],_0x2c5418[_0x2048ce(0x162)][0x0]);}})));}[_0x58f188(0x147)](_0x4ceede){const _0x1af87e=_0x58f188;var _0xab30ec;let {memberID:_0x5a22e4,selection:_0x8e7b72}=_0x4ceede[_0x1af87e(0x227)],{sheetName:_0x3df34a,range:_0x598300}=_0x9d4898(_0x8e7b72),_0x2655e4={'name':((_0xab30ec=this[_0x1af87e(0x242)][_0x1af87e(0x1fe)](this['unitID'],_0x5a22e4))==null?void 0x0:_0xab30ec[_0x1af87e(0x2ef)])??'Unknown\x20user','range':this[_0x1af87e(0x352)](_0x3df34a,_0x598300),'sheetID':_0x3df34a,'color':this[_0x1af87e(0x36a)]['assignAColorForMemberID'](_0x5a22e4),'selection':_0x8e7b72},_0x5e3087=this['cursorInfo'];_0x5e3087['set'](_0x5a22e4,_0x2655e4),this[_0x1af87e(0x362)]['next'](_0x5e3087);}[_0x58f188(0x306)](_0x6990f9){const _0x4f62c4=_0x58f188;let {memberID:_0x2f2844}=_0x6990f9[_0x4f62c4(0x227)],_0x368b3e=this['cursorInfo'];_0x368b3e[_0x4f62c4(0x10c)](_0x2f2844),this[_0x4f62c4(0x362)][_0x4f62c4(0x134)](_0x368b3e);}[_0x58f188(0x352)](_0x4dd8b0,_0x3997a7){const _0x39a125=_0x58f188;var _0x4cbe4b;let _0x5b1702=(_0x4cbe4b=this['_univerInstanceService'][_0x39a125(0x33a)](this['unitID'],_0x5e9dee[_0x39a125(0x1e1)]))==null||(_0x4cbe4b=_0x4cbe4b[_0x39a125(0x283)](_0x4dd8b0))==null?void 0x0:_0x4cbe4b[_0x39a125(0x26c)]();return(_0x5b1702==null?void 0x0:_0x5b1702[_0x39a125(0x10a)](_0x2d731e=>_0x5d40ca[_0x39a125(0x293)](_0x2d731e,_0x3997a7)))||_0x3997a7;}[_0x58f188(0x15e)](){const _0x2b1153=_0x58f188;let _0x3e8896=new _0x1a4166(),_0x5a5118=vn(),_0x2c1222=()=>{const _0x5e999e=_0x5eb5;_0x3e8896['dispose']();let _0x3fd0d5=(_0x3b0e98,_0x57b553,_0x401d0d,_0x5d2305)=>{const _0x155c67=_0x5eb5;let _0x2e7ac4=[];switch(_0x3b0e98['id']){case _0x1bfd11['DeleteRangeMoveLeftCommandId']:_0x2e7ac4=_0x37fc31(_0x3b0e98,_0x5d2305);break;case _0x1bfd11[_0x155c67(0x17a)]:_0x2e7ac4=_0x479c22(_0x3b0e98,_0x5d2305);break;case _0x1bfd11[_0x155c67(0xed)]:_0x2e7ac4=_0x498773(_0x3b0e98,_0x5d2305);break;case _0x1bfd11['InsertRangeMoveDownCommandId']:_0x2e7ac4=_0xaf5e49(_0x3b0e98,_0x5d2305);break;case _0x1bfd11[_0x155c67(0x2f0)]:_0x2e7ac4=_0x322622(_0x3b0e98,_0x5d2305);break;case _0x1bfd11[_0x155c67(0x350)]:_0x2e7ac4=_0x2a5239(_0x3b0e98,_0x5d2305);break;case _0x1bfd11[_0x155c67(0x288)]:_0x2e7ac4=_0x118b47(_0x3b0e98,_0x5d2305);break;case _0x1bfd11['RemoveColCommandId']:_0x2e7ac4=_0x920ad(_0x3b0e98,_0x5d2305);break;case _0x1bfd11[_0x155c67(0x229)]:_0x2e7ac4=_0x50d406(_0x3b0e98,_0x5d2305);}let _0x452406=_0x318438(_0x2e7ac4,_0x5d2305),_0x330aac=this['cursorInfo'][_0x155c67(0x203)](_0x57b553);if(_0x330aac&&_0x452406){let _0x55896a={..._0x330aac,'range':_0x452406};this[_0x155c67(0x27c)][_0x155c67(0x24c)](_0x57b553,_0x55896a),_0x5a5118(()=>{const _0x331ef3=_0x155c67;let _0x32d7ea=this[_0x331ef3(0x326)][_0x331ef3(0x1ff)](_0x452406,_0x4df362=>(_0x32d7ea['dispose'](),_0x3fd0d5(_0x4df362,_0x57b553,_0x401d0d,_0x452406)));_0x3e8896[_0x331ef3(0x20c)](_0x32d7ea);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x5e999e(0x299)]((_0x48a952,_0x45015a)=>{const _0x13da81=_0x5e999e;let {range:_0x3b5dca,sheetID:_0x18b41b}=_0x48a952,_0x1a0ec9=this['_refRangeService']['registerRefRange'](_0x3b5dca,_0x1d8036=>(_0x1a0ec9[_0x13da81(0x17c)](),_0x3fd0d5(_0x1d8036,_0x45015a,_0x18b41b,_0x3b5dca)));_0x3e8896[_0x13da81(0x20c)](_0x1a0ec9);});};this[_0x2b1153(0x16e)](_0x3584fe(this[_0x2b1153(0x362)][_0x2b1153(0x2cc)](()=>{_0x2c1222();})));}[_0x58f188(0x1c7)](){const _0x4140e7=_0x58f188;var _0x5a26d1,_0x11b46d;if(this[_0x4140e7(0x2e8)]=!0x0,((_0x5a26d1=this[_0x4140e7(0x23b)]['getFocusedUnit']())==null?void 0x0:_0x5a26d1[_0x4140e7(0x1b3)]())!==this[_0x4140e7(0x29b)])return;let _0x55e47a=(_0x11b46d=this[_0x4140e7(0x32e)][_0x4140e7(0x203)](_0x3a726c)[_0x4140e7(0x20b)]())==null?void 0x0:_0x11b46d[0x0],_0x152e26=this[_0x4140e7(0x23b)][_0x4140e7(0x15b)](_0x5e9dee[_0x4140e7(0x1e1)])[_0x4140e7(0x313)]();_0x55e47a&&_0x152e26&&this[_0x4140e7(0x2e3)](_0x152e26[_0x4140e7(0x295)](),_0x55e47a);}[_0x58f188(0x31d)](){const _0x47d4fb=_0x58f188;this[_0x47d4fb(0x2e8)]=!0x1;}};yn=X([Y(0x2,_0x2991cf(_0x1ca7a1)),Y(0x3,_0x2991cf(pn)),Y(0x4,_0x2991cf(_0x404421)),Y(0x5,_0x566a4d),Y(0x6,_0x1b514f),Y(0x7,_0x2991cf(_0x373db6))],yn);let Q=class extends _0x2c598a{constructor(_0x40f1f0,_0x471b28,_0x577d04){const _0x16878d=_0x58f188;super(),this[_0x16878d(0x23b)]=_0x40f1f0,this[_0x16878d(0x32e)]=_0x471b28,this['_collabSessionService']=_0x577d04,J(this,'_entities',new Map()),J(this,_0x16878d(0x26f),new _0x58d881()),this[_0x16878d(0x144)]();}['dispose'](){const _0x492222=_0x58f188;super[_0x492222(0x17c)](),this[_0x492222(0x26f)][_0x492222(0x2ff)](),this[_0x492222(0x32a)][_0x492222(0x299)](_0x2438e0=>_0x2438e0[_0x492222(0x17c)]());}[_0x58f188(0xec)](_0x51573b){const _0x53194b=_0x58f188;let _0x46e885=this[_0x53194b(0x32a)][_0x53194b(0x203)](_0x51573b);return _0x46e885?_0x46e885[_0x53194b(0x206)]:this[_0x53194b(0x26f)][_0x53194b(0x1e3)](_0x515f21(_0x5950f5=>_0x5950f5[_0x53194b(0x29b)]===_0x51573b),_0x48e296(_0x3cd8c7=>_0x3cd8c7[_0x53194b(0x206)]));}[_0x58f188(0x144)](){const _0x2fca3c=_0x58f188;this[_0x2fca3c(0x23b)][_0x2fca3c(0x34c)](_0x5e9dee[_0x2fca3c(0x1e1)])[_0x2fca3c(0x1e3)](_0x26bbcf(this[_0x2fca3c(0x1d1)]))[_0x2fca3c(0x2cc)](async _0x5171f6=>{const _0x1aabbc=_0x2fca3c;let _0x49ea80=_0x5171f6[_0x1aabbc(0x1d0)]['getUnitId'](),_0x45138a=await this['_startSheetCollabCursor'](_0x49ea80);this[_0x1aabbc(0x26f)][_0x1aabbc(0x134)](_0x45138a),this['_entities'][_0x1aabbc(0x24c)](_0x49ea80,_0x45138a);}),this[_0x2fca3c(0x23b)]['getTypeOfUnitAdded$'](_0x5e9dee['UNIVER_DOC'])[_0x2fca3c(0x1e3)](_0x26bbcf(this[_0x2fca3c(0x1d1)]))[_0x2fca3c(0x1e3)](_0x515f21(_0xbb1e40=>!_0xbb1e40[_0x2fca3c(0x1d0)][_0x2fca3c(0x1b3)]()[_0x2fca3c(0x1b6)]('__')))[_0x2fca3c(0x2cc)](async _0x71521c=>{const _0x2ef7de=_0x2fca3c;let {unit:_0x2ece5d}=_0x71521c,_0x4c45da=_0x2ece5d[_0x2ef7de(0x1b3)](),_0x14307d=await this[_0x2ef7de(0x11c)](_0x4c45da);this[_0x2ef7de(0x26f)][_0x2ef7de(0x134)](_0x14307d),this[_0x2ef7de(0x32a)][_0x2ef7de(0x24c)](_0x4c45da,_0x14307d);}),_0x4d7f31(this[_0x2fca3c(0x23b)][_0x2fca3c(0x277)](_0x5e9dee[_0x2fca3c(0x12e)]),this[_0x2fca3c(0x23b)][_0x2fca3c(0x277)](_0x5e9dee[_0x2fca3c(0x1e1)]))[_0x2fca3c(0x1e3)](_0x26bbcf(this[_0x2fca3c(0x1d1)]))[_0x2fca3c(0x2cc)](_0xc79bc8=>{const _0x9abf6=_0x2fca3c;let _0x2e3006=_0xc79bc8['getUnitId'](),_0x26269d=this['_entities'][_0x9abf6(0x203)](_0x2e3006);_0x26269d&&(_0x26269d[_0x9abf6(0x17c)](),this[_0x9abf6(0x32a)]['delete'](_0x2e3006));});}async[_0x58f188(0x12f)](_0x15bccb){const _0x27096f=_0x58f188;let _0x497650=await this[_0x27096f(0x223)]['requireSession'](_0x15bccb),_0xd3ddd5=this[_0x27096f(0x32e)]['createInstance'](yn,_0x15bccb,_0x497650);return _0xd3ddd5['init'](),_0xd3ddd5;}async[_0x58f188(0x11c)](_0x3360f){const _0x36421d=_0x58f188;let _0x8b0abc=await this[_0x36421d(0x223)][_0x36421d(0x263)](_0x3360f),_0x2e7263=this['_injector']['createInstance'](_n,_0x3360f,_0x8b0abc);return _0x2e7263[_0x36421d(0x1a8)](),_0x2e7263;}};Q=X([Y(0x0,_0x566a4d),Y(0x1,_0x2991cf(_0x1ca7a1)),Y(0x2,_0x2991cf(_0x30f71b))],Q);function bn(_0x130938,_0x141754){const _0x45c17f=_0x58f188;_0x130938[_0x45c17f(0x264)](),_0x130938['font']='bold\x2013px\x20Arial,\x20sans-serif';let _0x93bbad=_0x130938[_0x45c17f(0x193)](_0x141754)['width'];return _0x130938[_0x45c17f(0x297)](),Math[_0x45c17f(0x14f)](_0x93bbad+0x8,0xc8);}function xn(_0xe40a8,_0x5d50aa){const _0x4bb621=_0x58f188;let {radius:_0x551acb,width:_0x29fdb0,height:_0xe7920f}=_0x5d50aa;_0x551acb??=0x0,_0x29fdb0??=0x1e,_0xe7920f??=0x1e;let _0x1494c0=0x0,_0x1818cf=0x0,_0x386465=0x0;_0x1494c0=_0x1818cf=_0x386465=Math[_0x4bb621(0x14f)](_0x551acb,_0x29fdb0/0x2,_0xe7920f/0x2),_0xe40a8[_0x4bb621(0x27b)](),_0xe40a8[_0x4bb621(0x1b4)](_0x1494c0,0x0),_0xe40a8[_0x4bb621(0x183)](_0x29fdb0-_0x1818cf,0x0),_0xe40a8[_0x4bb621(0x19b)](_0x29fdb0-_0x1818cf,_0x1818cf,_0x1818cf,Math['PI']*0x3/0x2,0x0,!0x1),_0xe40a8[_0x4bb621(0x183)](_0x29fdb0,_0xe7920f-_0x386465),_0xe40a8['arc'](_0x29fdb0-_0x386465,_0xe7920f-_0x386465,_0x386465,0x0,Math['PI']/0x2,!0x1),_0xe40a8[_0x4bb621(0x183)](0x0,_0xe7920f),_0xe40a8[_0x4bb621(0x183)](0x0,_0x1494c0),_0xe40a8[_0x4bb621(0x19b)](_0x1494c0,_0x1494c0,_0x1494c0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xe40a8[_0x4bb621(0x1f2)](),_0x5d50aa[_0x4bb621(0x296)]&&(_0xe40a8[_0x4bb621(0x264)](),_0xe40a8[_0x4bb621(0x345)]=_0x5d50aa['fill'],_0x5d50aa['fillRule']===_0x4bb621(0x312)?_0xe40a8[_0x4bb621(0x296)](_0x4bb621(0x312)):_0xe40a8[_0x4bb621(0x296)](),_0xe40a8['restore']());}var Sn=class e extends _0xb7ec{constructor(_0x104002,_0x5b0b2b){const _0x1f86f8=_0x58f188;super(_0x104002,_0x5b0b2b),J(this,_0x1f86f8(0x1a6),void 0x0),J(this,_0x1f86f8(0x26a),void 0x0),this['color']=_0x5b0b2b==null?void 0x0:_0x5b0b2b[_0x1f86f8(0x1a6)],this[_0x1f86f8(0x26a)]=_0x5b0b2b==null?void 0x0:_0x5b0b2b[_0x1f86f8(0x26a)];}static[_0x58f188(0x1ed)](_0x2c8570,_0x224e4){const _0x4511e5=_0x58f188;let {text:_0x463992,color:_0x30891c}=_0x224e4;_0x2c8570[_0x4511e5(0x264)](),_0x2c8570['font']=_0x4511e5(0x198);let _0x507d6e=_0x2c8570[_0x4511e5(0x193)](_0x463992)[_0x4511e5(0x27f)];if(xn(_0x2c8570,{'height':0x14,'radius':0x4,'width':bn(_0x2c8570,_0x463992),'fill':_0x30891c,'evented':!0x1}),_0x2c8570[_0x4511e5(0x345)]=_0x4511e5(0x245),_0x507d6e>0xc0){let _0x379499='',_0xb1a0d4=0x0;for(let _0x4d9153 of _0x463992){let _0x1e9f9b=_0x2c8570[_0x4511e5(0x193)](_0x4d9153)[_0x4511e5(0x27f)];if(_0xb1a0d4+_0x1e9f9b<=0xc0-_0x2c8570[_0x4511e5(0x193)](_0x4511e5(0xf3))[_0x4511e5(0x27f)])_0x379499+=_0x4d9153,_0xb1a0d4+=_0x1e9f9b;else{_0x379499+=_0x4511e5(0xf3);break;}}_0x2c8570[_0x4511e5(0x2d8)](_0x379499,0x4,0xf);}else _0x2c8570[_0x4511e5(0x2d8)](_0x463992,0x4,0xf);_0x2c8570['restore']();}[_0x58f188(0x2a5)](_0x4a9fca){const _0x4bc690=_0x58f188;e[_0x4bc690(0x1ed)](_0x4a9fca,this);}};const Cn=_0x58f188(0x2e5);var wn=class{constructor(_0x886d23,_0x384643,_0x41bb3e,_0x2533df){const _0x47d2f3=_0x58f188;this[_0x47d2f3(0x1a7)]=_0x886d23,this[_0x47d2f3(0x35d)]=_0x384643,this[_0x47d2f3(0x1ae)]=_0x41bb3e,this[_0x47d2f3(0x224)]=_0x2533df,J(this,_0x47d2f3(0x14c),[]),J(this,'_anchor',null),J(this,_0x47d2f3(0x34d),null),J(this,_0x47d2f3(0x1e5),null),J(this,'_hideTimer',null),J(this,_0x47d2f3(0x1c9),null),this[_0x47d2f3(0x236)]();}set[_0x58f188(0x35f)](_0x3c2c44){const _0x7497d8=_0x58f188;_0x3c2c44?(this[_0x7497d8(0x1e5)]&&this[_0x7497d8(0x1e5)]['hide'](),this[_0x7497d8(0x34d)]&&this['_textBubble'][_0x7497d8(0x13b)]()):(this['_anchorDot']&&this[_0x7497d8(0x1e5)]['show'](),this[_0x7497d8(0x34d)]&&this[_0x7497d8(0x34d)]['hide']());}['dispose'](){const _0x4d0adf=_0x58f188;for(let _0x7dc984 of this[_0x4d0adf(0x14c)])_0x7dc984[_0x4d0adf(0x17c)]();this['_textBubble']&&this['_textBubble'][_0x4d0adf(0x17c)](),this[_0x4d0adf(0x1e5)]&&this[_0x4d0adf(0x1e5)][_0x4d0adf(0x17c)](),this[_0x4d0adf(0x120)]&&this[_0x4d0adf(0x120)][_0x4d0adf(0x17c)](),this[_0x4d0adf(0x1c9)]&&this[_0x4d0adf(0x1c9)]();}[_0x58f188(0x236)](){const _0xad4da8=_0x58f188;let {_docSkeleton:_0x3c8fdb,_document:_0x3292fa}=this,{color:_0x86c890,name:_0x31b534,ranges:_0x198456}=this[_0xad4da8(0x1a7)],_0x5714fc=_0x3292fa[_0xad4da8(0x103)](),{docsLeft:_0x53e076,docsTop:_0x580774}=_0x5714fc,_0x5d5c28=new _0x27df77(_0x5714fc,_0x3c8fdb);for(let {startOffset:_0xa619f9,endOffset:_0x28d96f,rangeType:_0x429c6a,segmentId:_0x440961,segmentPage:_0x5633b7,collapsed:_0x1ebaa9,isActive:_0x174baf}of _0x198456){let _0x3d7df2=_0x3c8fdb['findNodePositionByCharIndex'](_0xa619f9,!0x0,_0x440961,_0x5633b7),_0x5cd81e=_0x3c8fdb['findNodePositionByCharIndex'](_0x28d96f,!0x0,_0x440961,_0x5633b7);_0x5cd81e??=_0x3c8fdb['findNodePositionByCharIndex'](_0x28d96f-0x1,!0x1,_0x440961,_0x5633b7);let _0x36a8ed=Tn(_0x3d7df2,_0x5cd81e);if(_0x174baf&&_0x36a8ed[_0xad4da8(0x2c7)]){let {contentBoxPointGroup:_0x59e349}=_0x5d5c28[_0xad4da8(0x1d6)](_0x5cd81e,_0x5cd81e);if(_0x59e349['length']===0x0)continue;this[_0xad4da8(0x114)](_0x86c890,_0x59e349,_0x53e076,_0x580774,_0x31b534),this[_0xad4da8(0x1c9)]=this[_0xad4da8(0x254)]();}if(_0x3d7df2&&_0x5cd81e){if(_0x429c6a===_0x265b4b[_0xad4da8(0x2d1)]){let {pointGroup:_0x3db1a7}=new _0x581bc3(_0x5714fc,_0x3c8fdb)[_0xad4da8(0x1d6)](_0x3d7df2,_0x5cd81e)??{};if(_0x3db1a7==null||_0x3db1a7[_0xad4da8(0x189)]===0x0)continue;this[_0xad4da8(0x2f2)](_0x86c890,_0x3db1a7,_0x53e076,_0x580774);}else{if(!_0x1ebaa9&&_0x36a8ed[_0xad4da8(0x255)]){let {borderBoxPointGroup:_0x229b13}=_0x5d5c28[_0xad4da8(0x1d6)](_0x3d7df2,_0x5cd81e);if(_0x229b13[_0xad4da8(0x189)]===0x0)continue;this[_0xad4da8(0x222)](_0x86c890,_0x229b13,_0x53e076,_0x580774);}}}}}[_0x58f188(0x114)](_0x2f5dfd,_0xac56b5,_0x5571c6,_0x36cfe8,_0x47e3bb){const _0x2e756a=_0x58f188;let {left:_0x1ab395,top:_0x4ef19d,height:_0x2a2826}=this[_0x2e756a(0x17d)](_0xac56b5),_0x446bbe=1.5/this[_0x2e756a(0x1f7)](),_0x3228bb=new _0x326168(Cn+_0x595a49(0x6),{'left':_0x1ab395+_0x5571c6-_0x446bbe,'top':_0x4ef19d+_0x36cfe8,'height':_0x2a2826,'width':1.5,'fill':_0x2f5dfd||_0x4c51a6(_0x1de6f1['black'],0x0),'strokeWidth':_0x446bbe,'stroke':_0x2e756a(0x320),'evented':!0x0});this['_anchor']=_0x3228bb,this[_0x2e756a(0x35d)]['addObject'](_0x3228bb,_0x4f8b20);let _0x6329e6=new _0x326168(Cn+_0x595a49(0x6),{'left':_0x1ab395+_0x5571c6-_0x446bbe,'top':_0x4ef19d+_0x36cfe8-0x2,'height':0x4,'width':0x4,'fill':_0x2f5dfd||_0x4c51a6(_0x1de6f1[_0x2e756a(0x102)],0x0),'strokeWidth':0x0,'stroke':_0x2f5dfd||_0x4c51a6(_0x1de6f1[_0x2e756a(0x102)],0x0),'evented':!0x1});this['_anchorDot']=_0x6329e6,this['_scene'][_0x2e756a(0x192)](_0x6329e6,_0x4f8b20);let _0x54e29c=new Sn(Cn+_0x595a49(0x6),{'left':_0x1ab395+_0x5571c6-_0x446bbe,'top':_0x4ef19d+_0x36cfe8-0x14,'text':_0x47e3bb,'color':_0x2f5dfd});this[_0x2e756a(0x34d)]=_0x54e29c,this[_0x2e756a(0x35d)][_0x2e756a(0x192)](_0x54e29c,_0x4f8b20),this[_0x2e756a(0x35f)]=!0x1;}[_0x58f188(0x254)](){const _0x45e719=_0x58f188;let _0x1c13e4=this['_anchor']['onPointerEnter$'][_0x45e719(0x131)](()=>{const _0x1ac868=_0x45e719;this[_0x1ac868(0x35f)]=!0x0;}),_0x270ad0=this['_anchor'][_0x45e719(0x239)][_0x45e719(0x131)](()=>{const _0x563e4b=_0x45e719;this[_0x563e4b(0x2c1)]&&clearTimeout(this[_0x563e4b(0x2c1)]),this[_0x563e4b(0x2c1)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x36e146=_0x45e719;_0x1c13e4['unsubscribe'](),_0x270ad0[_0x36e146(0x2ab)]();};}['_drawTextRange'](_0x455a33,_0x39c7cd,_0x2b333c,_0x2b347a){const _0x5c5957=_0x58f188;let _0x315310=0.2,_0x2f402c=new _0x3fe263(_0x455a33)[_0x5c5957(0x33c)](_0x315310)[_0x5c5957(0xff)](),_0x15aaa3=new _0x2be6cc('collab-text-range-'+_0x595a49(0x6),{'pointsGroup':_0x39c7cd,'fill':_0x2f402c||_0x4c51a6(_0x1de6f1['black'],_0x315310),'left':_0x2b333c,'top':_0x2b347a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5c5957(0x14c)][_0x5c5957(0x2b1)](_0x15aaa3),this[_0x5c5957(0x35d)]['addObject'](_0x15aaa3,_0x4f8b20);}[_0x58f188(0x2f2)](_0x1ccb60,_0x4d4e03,_0x341add,_0x1a7e87){const _0x5721db=_0x58f188;let _0x2f875a=0.2,_0xea64fe=new _0x3fe263(_0x1ccb60)[_0x5721db(0x33c)](_0x2f875a)[_0x5721db(0xff)](),_0x269657=new _0x2be6cc(_0x5721db(0x319)+_0x595a49(0x6),{'pointsGroup':_0x4d4e03,'fill':_0xea64fe||_0x4c51a6(_0x1de6f1['black'],_0x2f875a),'left':_0x341add,'top':_0x1a7e87,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5721db(0x14c)]['push'](_0x269657),this['_scene'][_0x5721db(0x192)](_0x269657,_0x4f8b20);}[_0x58f188(0x17d)](_0x3a41e0){let _0x333aec=_0x3a41e0[0x0],_0x4e53fa=_0x333aec[0x0],_0x2f99cc=_0x333aec[0x2],{x:_0x306649,y:_0x5160ac}=_0x4e53fa,{x:_0x58e7ad,y:_0xe44fcf}=_0x2f99cc;return{'left':_0x306649,'top':_0x5160ac,'width':_0x58e7ad-_0x306649,'height':_0xe44fcf-_0x5160ac};}[_0x58f188(0x1f7)](){const _0x244b31=_0x58f188;let {scaleX:_0x370688,scaleY:_0x4c5e95}=this[_0x244b31(0x35d)][_0x244b31(0x2d9)]();return Math[_0x244b31(0x355)](_0x370688,_0x4c5e95);}};function Tn(_0x1b6322,_0x26e4fc){const _0x22f397=_0x58f188;if(!_0x26e4fc)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x1b6322||_0x1b6322[_0x22f397(0x105)]!==_0x26e4fc[_0x22f397(0x105)]||(_0x1b6322[_0x22f397(0x105)]===_0x2910e4[_0x22f397(0x35b)]||_0x1b6322[_0x22f397(0x105)]===_0x2910e4[_0x22f397(0x1d2)])&&_0x1b6322[_0x22f397(0x31e)]!==_0x26e4fc[_0x22f397(0x31e)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x3ca46b=_0xd63531(_0x1b6322),_0x1da173=_0xd63531(_0x26e4fc);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x3ca46b==null||_0x1da173==null?_0x3ca46b==null&&_0x1da173==null:_0x3ca46b[_0x22f397(0x167)]===_0x1da173['pageIndex']&&_0x3ca46b[_0x22f397(0x363)]===_0x1da173[_0x22f397(0x363)]&&_0x3ca46b[_0x22f397(0x22c)]===_0x1da173[_0x22f397(0x22c)]};}let En=class extends _0x2c598a{constructor(_0x24af9b,_0x2356c8,_0x48e770,_0x136634,_0x29a1c9){const _0x4d42ab=_0x58f188;super(),this[_0x4d42ab(0x110)]=_0x24af9b,this['_docSkeletonManagerService']=_0x2356c8,this[_0x4d42ab(0x231)]=_0x48e770,this['_commandService']=_0x136634,this[_0x4d42ab(0x272)]=_0x29a1c9,J(this,_0x4d42ab(0x1ef),[]),J(this,_0x4d42ab(0x12c),[]),this[_0x4d42ab(0x144)]();}[_0x58f188(0x144)](){const _0x40a99b=_0x58f188;let _0x3e9e8b=this[_0x40a99b(0x110)][_0x40a99b(0x1db)],_0x40b3eb=this[_0x40a99b(0x300)];this['disposeWithMe'](_0x634e9f([this[_0x40a99b(0x231)]['getCollabCursors$'](_0x3e9e8b),this[_0x40a99b(0x272)][_0x40a99b(0x2ee)]])[_0x40a99b(0x1e3)](_0x9f450b(([_0x591184,_0x260ff8])=>({'skeleton':_0x40b3eb[_0x40a99b(0x10b)](),'cursors':[..._0x591184[_0x40a99b(0x336)]()][_0x40a99b(0x215)](_0x44960=>({..._0x44960,'color':this['_themeService'][_0x40a99b(0x358)](_0x44960['color'])}))})))[_0x40a99b(0x2cc)](_0x72060=>{const _0x153930=_0x40a99b;if(this['_removeCollabCursors'](),_0x72060){let {skeleton:_0x3b8c99,cursors:_0x3173f2}=_0x72060;this[_0x153930(0x107)](_0x3b8c99,_0x3173f2);}})),this[_0x40a99b(0x2f6)](),this[_0x40a99b(0x151)]();}[_0x58f188(0x107)](_0x89bdd2,_0x4478c0){const _0x106bac=_0x58f188;let {scene:_0xa9a039,mainComponent:_0x4d2e4d}=this['_context'],_0x23c5a7=_0x4478c0[_0x106bac(0x311)](_0x1bd33a=>new wn(_0x1bd33a,_0xa9a039,_0x89bdd2,_0x4d2e4d));this['_cursorShapes']=_0x23c5a7,this['_cursors']=_0x4478c0;}[_0x58f188(0x174)](){const _0x434e44=_0x58f188;this['_removeCollabCursors']();let {scene:_0x124f13,mainComponent:_0x1d3e9d}=this[_0x434e44(0x110)],_0x36719e=this[_0x434e44(0x300)][_0x434e44(0x10b)](),_0x1c6370=this[_0x434e44(0x12c)][_0x434e44(0x311)](_0x26220c=>new wn(_0x26220c,_0x124f13,_0x36719e,_0x1d3e9d));this['_cursorShapes']=_0x1c6370;}[_0x58f188(0x2f8)](){const _0xc7f086=_0x58f188;this[_0xc7f086(0x1ef)][_0xc7f086(0x299)](_0x351b0e=>_0x351b0e['dispose']()),this[_0xc7f086(0x1ef)]=[];}['_initCommandExecutedListener'](){const _0x7e811e=_0x58f188;let _0xfc2e9e=[_0x3b3b2d['id']];this[_0x7e811e(0x16e)](this[_0x7e811e(0x290)][_0x7e811e(0x31f)](_0x246792=>{const _0x5c3df2=_0x7e811e;_0xfc2e9e[_0x5c3df2(0x1a9)](_0x246792['id'])&&_0x246792[_0x5c3df2(0x19f)][_0x5c3df2(0x1db)]===this['_context'][_0x5c3df2(0x1db)]&&this[_0x5c3df2(0x174)]();}));}[_0x58f188(0x2f6)](){const _0x5d76da=_0x58f188;this[_0x5d76da(0x16e)](_0x8390cb(this['_context'][_0x5d76da(0x30d)][_0x5d76da(0x337)])['pipe'](_0x326080(_0x389c3a=>_0x389c3a[_0x5d76da(0x269)]===_0x3e0223[_0x5d76da(0x321)]),_0x24630c(0x10))[_0x5d76da(0x2cc)](()=>{const _0xc2152b=_0x5d76da;this[_0xc2152b(0x174)]();}));}};En=X([Y(0x1,_0x2991cf(_0x535cc1)),Y(0x2,_0x2991cf(Q)),Y(0x3,_0x1b514f),Y(0x4,_0x2991cf(_0x27953a))],En);var Dn=class extends _0xb7ec{constructor(_0x4ecc75,_0x37069a){const _0x1fc89f=_0x58f188;super(_0x4ecc75,_0x37069a),J(this,_0x1fc89f(0x2db),void 0x0),J(this,'_hovered',!0x1),J(this,_0x1fc89f(0x23d),void 0x0),J(this,_0x1fc89f(0x25c),''),J(this,_0x1fc89f(0x24b),_0x1fc89f(0x130)),J(this,_0x1fc89f(0x25f),void 0x0),J(this,_0x1fc89f(0x11d),void 0x0),J(this,_0x1fc89f(0x141),void 0x0),J(this,_0x1fc89f(0x34a),0x4),J(this,_0x1fc89f(0x173),void 0x0),J(this,_0x1fc89f(0x24e),void 0x0),J(this,'_isBlinkVisible',!0x0),J(this,_0x1fc89f(0x207),0x0),J(this,_0x1fc89f(0x347),'right'),_0x37069a&&(this['setShapeProps'](_0x37069a),_0x37069a[_0x1fc89f(0x2bb)]&&(_0x37069a['highlightSecond']??this[_0x1fc89f(0x34a)])&&this[_0x1fc89f(0x276)](_0x37069a[_0x1fc89f(0x121)]??this[_0x1fc89f(0x34a)])),this[_0x1fc89f(0x2f4)][_0x1fc89f(0x131)](()=>this[_0x1fc89f(0x135)]({'hovered':!0x0})),this[_0x1fc89f(0x239)][_0x1fc89f(0x131)](()=>this[_0x1fc89f(0x135)]({'hovered':!0x1}));}[_0x58f188(0x33d)](_0x9b9c1b){const _0x3d13c8=_0x58f188;this[_0x3d13c8(0x207)]=_0x9b9c1b;}[_0x58f188(0x135)](_0x52f6e4){const _0x1dabb2=_0x58f188;this[_0x1dabb2(0x2db)]=_0x52f6e4[_0x1dabb2(0x1a6)]??this['_color'],this[_0x1dabb2(0x1bb)]=_0x52f6e4['hovered']??this[_0x1dabb2(0x1bb)],this[_0x1dabb2(0x23d)]=_0x52f6e4[_0x1dabb2(0x17b)]??this['_range'],this[_0x1dabb2(0x25c)]=_0x52f6e4[_0x1dabb2(0x2ef)]??this['_name'],this[_0x1dabb2(0x24b)]=_0x52f6e4[_0x1dabb2(0x2e2)]??this[_0x1dabb2(0x24b)],this[_0x1dabb2(0x25f)]=_0x52f6e4[_0x1dabb2(0x234)]??this['_backgroundColor'],this[_0x1dabb2(0x11d)]=_0x52f6e4[_0x1dabb2(0x314)]??this[_0x1dabb2(0x11d)],this[_0x1dabb2(0x347)]=_0x52f6e4[_0x1dabb2(0x182)]??this[_0x1dabb2(0x347)],_0x52f6e4[_0x1dabb2(0x121)]!==void 0x0&&(this[_0x1dabb2(0x34a)]=_0x52f6e4[_0x1dabb2(0x121)]),_0x52f6e4[_0x1dabb2(0x2bb)]!==void 0x0&&(this[_0x1dabb2(0x141)]=_0x52f6e4[_0x1dabb2(0x2bb)]),_0x52f6e4[_0x1dabb2(0xfa)]!==void 0x0&&(this[_0x1dabb2(0x207)]=_0x52f6e4[_0x1dabb2(0xfa)]),this['transformByState']({'width':_0x52f6e4[_0x1dabb2(0x27f)],'height':_0x52f6e4[_0x1dabb2(0xf2)]});}[_0x58f188(0x1b2)](_0x28a599){const _0x2fc069=_0x58f188;let {row:_0x5d4b7c,column:_0x150d97}=_0x28a599;_0x5d4b7c>=this[_0x2fc069(0x23d)][_0x2fc069(0x19a)]&&_0x5d4b7c<=this['_range'][_0x2fc069(0x16f)]&&_0x150d97>=this[_0x2fc069(0x23d)][_0x2fc069(0x2df)]&&_0x150d97<=this['_range'][_0x2fc069(0x233)]?this['setShapeProps']({'hovered':!0x0}):this['setShapeProps']({'hovered':!0x1});}[_0x58f188(0x276)](_0x525cb2){const _0xe90ee6=_0x58f188;this[_0xe90ee6(0x275)](),this[_0xe90ee6(0x172)]=!0x0,this['_blinkIntervalTimer']=window[_0xe90ee6(0x1cd)](()=>{const _0xe06f88=_0xe90ee6;this[_0xe06f88(0x172)]=!this[_0xe06f88(0x172)],this[_0xe06f88(0x226)](!0x0);},0x1f4),this['_blinkTimer']=window['setTimeout'](()=>{const _0x5e2435=_0xe90ee6;this[_0x5e2435(0x275)](),this[_0x5e2435(0x172)]=!0x0,this[_0x5e2435(0x226)](!0x0);},_0x525cb2*0x3e8);}['_stopBlinking'](){const _0x1c658f=_0x58f188;this[_0x1c658f(0x24e)]&&=(window['clearInterval'](this[_0x1c658f(0x24e)]),void 0x0),this[_0x1c658f(0x173)]&&=(window[_0x1c658f(0x2bf)](this[_0x1c658f(0x173)]),void 0x0);}[_0x58f188(0x34f)](_0x35f0f6){return!0x1;}[_0x58f188(0x17c)](){const _0x43a140=_0x58f188;this[_0x43a140(0x275)](),super[_0x43a140(0x17c)]();}[_0x58f188(0x2a5)](_0x49f6c2){const _0x12465a=_0x58f188;let _0x333a6d=this[_0x12465a(0x2db)],_0x35a4b4=this['_backgroundColor'];if(this[_0x12465a(0x141)]&&!this[_0x12465a(0x172)]&&(_0x333a6d=this[_0x12465a(0x27e)](this[_0x12465a(0x2db)]),_0x35a4b4=this[_0x12465a(0x25f)]?this[_0x12465a(0x27e)](this[_0x12465a(0x25f)]):void 0x0),_0x326168['drawWith'](_0x49f6c2,{'width':this[_0x12465a(0x27f)],'height':this[_0x12465a(0xf2)],'strokeWidth':this[_0x12465a(0x2e1)]||1.5,'stroke':_0x333a6d,'evented':!0x1,'fill':_0x35a4b4}),this[_0x12465a(0x1bb)]||this[_0x12465a(0x11d)]){_0x49f6c2[_0x12465a(0x264)]();let _0x1d4ee4=this[_0x12465a(0x347)]===_0x12465a(0x325)?-bn(_0x49f6c2,this[_0x12465a(0x25c)]):this[_0x12465a(0x27f)];_0x49f6c2['transform'](0x1,0x0,0x0,0x1,_0x1d4ee4,(this[_0x12465a(0x24b)]===_0x12465a(0x12b)?0x0:-0x14)+(this[_0x12465a(0x207)]??0x0)),Sn['drawWith'](_0x49f6c2,{'text':this[_0x12465a(0x25c)],'color':_0x333a6d}),_0x49f6c2[_0x12465a(0x297)]();}}['_getLighterColor'](_0x222b79){const _0x52fafd=_0x58f188;return _0x222b79['startsWith']('#')?_0x52fafd(0x259)+Number['parseInt'](_0x222b79[_0x52fafd(0x2e0)](0x1,0x3),0x10)+',\x20'+Number[_0x52fafd(0x332)](_0x222b79['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x52fafd(0x332)](_0x222b79[_0x52fafd(0x2e0)](0x5,0x7),0x10)+_0x52fafd(0x368):_0x222b79[_0x52fafd(0x1b6)](_0x52fafd(0x181))?_0x222b79[_0x52fafd(0x328)](/[\d.]+\)$/g,_0x52fafd(0x2ba)):_0x222b79[_0x52fafd(0x1b6)](_0x52fafd(0x2a8))?_0x222b79[_0x52fafd(0x328)](_0x52fafd(0x2a8),'rgba')['replace'](')',_0x52fafd(0x368)):_0x222b79;}};let On=class extends _0x2c598a{constructor(_0x45d614,_0x2bfa3d,_0x44f501,_0x4bf4ab){const _0x4cceae=_0x58f188;super(),this[_0x4cceae(0x110)]=_0x45d614,this[_0x4cceae(0x184)]=_0x2bfa3d,this[_0x4cceae(0x231)]=_0x44f501,this[_0x4cceae(0x272)]=_0x4bf4ab,J(this,_0x4cceae(0x12c),new Set()),J(this,'_lastPointer',null),J(this,_0x4cceae(0x258),null),this[_0x4cceae(0x144)]();}[_0x58f188(0x144)](){const _0x39e1ac=_0x58f188;this[_0x39e1ac(0x184)][_0x39e1ac(0x12d)][_0x39e1ac(0x1e3)](_0x4e1827(this[_0x39e1ac(0x1d1)]),_0x34bfa8(_0x64afb6=>{const _0x522f10=_0x39e1ac;if(_0x64afb6){let _0x53801a=_0x64afb6[_0x522f10(0x13a)];return _0x634e9f(this[_0x522f10(0x231)][_0x522f10(0xec)](this[_0x522f10(0x110)]['unitId']),this[_0x522f10(0x272)]['currentTheme$'])[_0x522f10(0x1e3)](_0x9f450b(([_0x19d6d2,_0x2e88ec])=>{const _0x542fc1=_0x522f10;let _0x25d97a=new Map();return _0x19d6d2[_0x542fc1(0x299)]((_0xafd655,_0xed5779)=>{const _0x3df3f9=_0x542fc1;if(_0xafd655['sheetID']===_0x53801a){let _0x2ea97c={..._0xafd655};_0x2ea97c[_0x3df3f9(0x1a6)]=this[_0x3df3f9(0x272)][_0x3df3f9(0x358)](_0xafd655[_0x3df3f9(0x1a6)]),_0x25d97a['set'](_0xed5779,_0x2ea97c);}}),{'skeleton':_0x64afb6,'cursors':_0x25d97a};}));}return _0x4a308e({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x580c55,cursors:_0x121f62})=>{const _0x3c2b12=_0x39e1ac;this['_removeCollabCursors'](),_0x580c55&&this[_0x3c2b12(0x107)](_0x580c55,_0x121f62);}),this[_0x39e1ac(0x16e)](this[_0x39e1ac(0x184)][_0x39e1ac(0x12d)][_0x39e1ac(0x1e3)](_0x4e1827(this[_0x39e1ac(0x1d1)]))[_0x39e1ac(0x2cc)](_0xa6c059=>{const _0x482fc7=_0x39e1ac;var _0x119283;if(_0xa6c059==null)return;(_0x119283=this[_0x482fc7(0x258)])==null||_0x119283['unsubscribe'](),this[_0x482fc7(0x258)]=null;let {skeleton:_0x3f6923}=_0xa6c059,{scene:_0x28d09d}=this[_0x482fc7(0x110)];this['_pointerMoveDisposable']=_0x28d09d[_0x482fc7(0x170)][_0x482fc7(0x131)](_0x1a37c7(_0x272a9a=>{const _0x44f28f=_0x482fc7;var _0x5abde9,_0x50609e;let {offsetX:_0x4fe9c2,offsetY:_0x1fe1d7}=_0x272a9a,{x:_0x463f22,y:_0x13d7cb}=_0x28d09d['getCoordRelativeToViewport'](_0xff2b89[_0x44f28f(0xf5)]([_0x4fe9c2,_0x1fe1d7])),{scaleX:_0x30b586,scaleY:_0x2b804a}=_0x28d09d[_0x44f28f(0x2d9)](),_0x53538e=_0x28d09d[_0x44f28f(0x247)](_0x13f2f2['VIEW_MAIN']),_0x60e2a4=_0x28d09d[_0x44f28f(0x2d4)](_0xff2b89[_0x44f28f(0xf5)]([_0x463f22,_0x13d7cb]),_0x53538e),_0x525126=_0x3f6923[_0x44f28f(0x15a)](_0x4fe9c2,_0x1fe1d7,_0x30b586,_0x2b804a,_0x60e2a4);(((_0x5abde9=this['_lastPointer'])==null?void 0x0:_0x5abde9[_0x44f28f(0x29d)])!==_0x525126['column']||((_0x50609e=this['_lastPointer'])==null?void 0x0:_0x50609e[_0x44f28f(0xf1)])!==_0x525126[_0x44f28f(0xf1)])&&this[_0x44f28f(0x12c)][_0x44f28f(0x299)](_0x237ae6=>{const _0x4c2a84=_0x44f28f;_0x237ae6[_0x4c2a84(0x1b2)](_0x525126);});},0x64));})),this[_0x39e1ac(0x16e)](_0x3584fe(()=>{const _0x265440=_0x39e1ac;var _0x145d13;(_0x145d13=this['_pointerMoveDisposable'])==null||_0x145d13[_0x265440(0x2ab)](),this['_pointerMoveDisposable']=null;}));}[_0x58f188(0x107)](_0x527ac4,_0xed82a9){const _0x32da60=_0x58f188;let _0x2f4304=this[_0x32da60(0x184)]['getCurrentSkeleton']();if(!_0x2f4304)return;let _0x121055=this[_0x32da60(0x2dc)]();if(!_0x121055)return;this['_cursors'][_0x32da60(0x299)](_0x264677=>{const _0x23b5b5=_0x32da60;_0x264677[_0x23b5b5(0x226)]();});let {scene:_0x5c487e}=_0x121055,_0x35e6cc=kn(Array[_0x32da60(0x23e)](_0xed82a9['values']()))[_0x32da60(0x311)](_0x39abe3=>{const _0x3cda4c=_0x32da60;let {color:_0x3b2502,range:_0x1aa2d7,name:_0x5381f1,selection:_0x191226,sheetID:_0x4b873c}=_0x39abe3,{startColumn:_0x598cab,startRow:_0x1dd3a6,endColumn:_0x2073c1,endRow:_0x53f27e}=_0x1aa2d7,_0x1b1f44=_0x5b332f(_0x1dd3a6,_0x598cab,_0x5c487e,_0x2f4304),_0x3ad1f1=_0x5b332f(_0x53f27e,_0x2073c1,_0x5c487e,_0x2f4304),{columnHeaderHeightAndMarginTop:_0x5f2953}=_0x2f4304,{startX:_0x3db25b,startY:_0x49f1e3}=_0x1b1f44,{endX:_0x359fa0,endY:_0x3405fc}=_0x3ad1f1,_0x3531f8=_0x359fa0-_0x3db25b,_0x37de38=_0x3405fc-_0x49f1e3;return new Dn(_0x5381f1,{'labelPosition':_0x49f1e3-_0x5f2953>=0x14?'top':_0x3cda4c(0x12b),'sheetID':_0x4b873c,'range':_0x1aa2d7,'color':_0x3b2502,'name':_0x5381f1,'selection':_0x191226,'left':_0x3db25b,'top':_0x49f1e3,'width':_0x3531f8,'height':_0x37de38,'evented':!0x1,'zIndex':0x1389});});_0x5c487e[_0x32da60(0x171)](_0x35e6cc,0x1),this['_cursors']=new Set(_0x35e6cc);}[_0x58f188(0x2f8)](){const _0x3363f7=_0x58f188;var _0x1f0895;(_0x1f0895=this[_0x3363f7(0x12c)])==null||_0x1f0895[_0x3363f7(0x299)](_0x5c1e57=>_0x5c1e57[_0x3363f7(0x17c)]());}[_0x58f188(0x2dc)](){const _0x30e392=_0x58f188;return _0x1d80ec(this[_0x30e392(0x110)]['unit'],this[_0x30e392(0x110)]);}};On=X([Y(0x1,_0x2991cf(_0x33a34c)),Y(0x2,_0x2991cf(Q)),Y(0x3,_0x2991cf(_0x27953a))],On);function kn(_0x306452){const _0x49c830=_0x58f188;let _0x216bd6=new Map();return _0x306452[_0x49c830(0x299)](_0x22c066=>{const _0x164f7c=_0x49c830;if(_0x216bd6[_0x164f7c(0xfe)](_0x22c066['selection'])){let _0x5af451=_0x216bd6[_0x164f7c(0x203)](_0x22c066['selection']);_0x5af451[_0x164f7c(0x2ef)]+=',\x20'+_0x22c066[_0x164f7c(0x2ef)];}else _0x216bd6[_0x164f7c(0x24c)](_0x22c066[_0x164f7c(0x28c)],_0x22c066);}),Array[_0x49c830(0x23e)](_0x216bd6[_0x49c830(0x336)]());}function An(_0x5cd683){const _0x10366e=_0x58f188;return typeof _0x5cd683==_0x10366e(0xf8)&&!!_0x5cd683;}function jn(_0x372b6a){const _0x2baf55=_0x58f188;return _0x372b6a[_0x2baf55(0x14a)]===_0x2b158b[_0x2baf55(0x155)]&&_0x2baf55(0x227)in _0x372b6a&&An(_0x372b6a[_0x2baf55(0x227)])&&typeof _0x372b6a[_0x2baf55(0x227)][_0x2baf55(0x19d)]==_0x2baf55(0x1b8)&&typeof _0x372b6a[_0x2baf55(0x227)]['selection']==_0x2baf55(0x1b8);}function Mn(_0x324e8b){const _0x1ce0d7=_0x58f188;return _0x324e8b[_0x1ce0d7(0x14a)]===_0x2b158b[_0x1ce0d7(0x2d2)]&&'data'in _0x324e8b&&An(_0x324e8b[_0x1ce0d7(0x227)])&&typeof _0x324e8b['data'][_0x1ce0d7(0x19d)]==_0x1ce0d7(0x1b8);}function Nn(_0x55d61,_0x5b6772){const _0x4b1d9b=_0x58f188;let _0x37a17a;try{_0x37a17a=JSON[_0x4b1d9b(0x308)](_0x55d61);}catch{return null;}if(!An(_0x37a17a)||typeof _0x37a17a[_0x4b1d9b(0x307)]!=_0x4b1d9b(0x1b8)||typeof _0x37a17a[_0x4b1d9b(0x1db)]!=_0x4b1d9b(0x1b8)||typeof _0x37a17a[_0x4b1d9b(0x24f)]!=_0x4b1d9b(0x1b8))return null;let _0x367c62=typeof _0x37a17a['unitType']=='number'?_0x37a17a[_0x4b1d9b(0x1a1)]:_0x5b6772;if(_0x367c62==null)return null;let _0x2ef579=An(_0x37a17a[_0x4b1d9b(0x335)])&&typeof _0x37a17a[_0x4b1d9b(0x335)]['x']==_0x4b1d9b(0x161)&&Number[_0x4b1d9b(0x344)](_0x37a17a[_0x4b1d9b(0x335)]['x'])&&typeof _0x37a17a[_0x4b1d9b(0x335)]['y']=='number'&&Number[_0x4b1d9b(0x344)](_0x37a17a['pointer']['y'])?{'x':_0x37a17a[_0x4b1d9b(0x335)]['x'],'y':_0x37a17a[_0x4b1d9b(0x335)]['y']}:null;return{'kind':_0x37a17a[_0x4b1d9b(0x307)],'unitType':_0x367c62,'unitId':_0x37a17a['unitId'],'subUnitId':_0x37a17a[_0x4b1d9b(0x24f)],'selectedIds':Array['isArray'](_0x37a17a['selectedIds'])?_0x37a17a[_0x4b1d9b(0x1a3)][_0x4b1d9b(0x303)](_0x2fd31e=>typeof _0x2fd31e==_0x4b1d9b(0x1b8)):[],'focusedId':typeof _0x37a17a[_0x4b1d9b(0x126)]==_0x4b1d9b(0x1b8)?_0x37a17a[_0x4b1d9b(0x126)]:null,'pointer':_0x2ef579};}function Pn(_0x148c0d,_0x3b9c8b,_0x273d13){const _0x7c9e7a=_0x58f188;return{'kind':_0x3b9c8b,'unitType':_0x148c0d,'unitId':_0x273d13[_0x7c9e7a(0x1db)],'subUnitId':_0x273d13[_0x7c9e7a(0x24f)],'selectedIds':Array['from'](_0x273d13[_0x7c9e7a(0x1a3)]),'focusedId':_0x273d13['focusedId'],'pointer':_0x273d13[_0x7c9e7a(0x335)]?{..._0x273d13['pointer']}:null};}let Fn=class extends _0x2c598a{constructor(_0x28aeca,_0x32e398,_0x2730bb,_0x2df8eb,_0x449711,_0x2b4157){const _0x39caef=_0x58f188;super(),this[_0x39caef(0x1db)]=_0x28aeca,this[_0x39caef(0x323)]=_0x32e398,this['_adapter']=_0x2730bb,this[_0x39caef(0x36a)]=_0x2df8eb,this[_0x39caef(0x242)]=_0x449711,this[_0x39caef(0x290)]=_0x2b4157,J(this,_0x39caef(0x2e8),!0x1),J(this,_0x39caef(0x2c4),!0x1);}get[_0x58f188(0x1a1)](){const _0x367d5a=_0x58f188;return this[_0x367d5a(0x34e)]['unitType'];}[_0x58f188(0x17c)](){const _0x34249d=_0x58f188;this[_0x34249d(0x251)](),super['dispose']();}['init'](){const _0x4d097b=_0x58f188;this[_0x4d097b(0x2c4)]||(this[_0x4d097b(0x2c4)]=!0x0,this[_0x4d097b(0x323)][_0x4d097b(0x158)][_0x4d097b(0x1e3)](_0x26bbcf(this[_0x4d097b(0x1d1)]))[_0x4d097b(0x2cc)](_0x4d91cc=>{const _0x48d08e=_0x4d097b;if(_0x4d91cc===_0x340ef4[_0x48d08e(0x13d)]){this[_0x48d08e(0x2e8)]=!0x0;let _0x452f84=this['_adapter']['getLocalPresence'](this['unitId']);_0x452f84&&this[_0x48d08e(0x1aa)](_0x452f84);}else this[_0x48d08e(0x2e8)]=!0x1,this[_0x48d08e(0x251)]();}),this[_0x4d097b(0x323)][_0x4d097b(0x1b9)][_0x4d097b(0x1e3)](_0x26bbcf(this[_0x4d097b(0x1d1)]))[_0x4d097b(0x2cc)](_0x4d0880=>{const _0x402a4e=_0x4d097b;jn(_0x4d0880)?this[_0x402a4e(0x1fa)](_0x4d0880):Mn(_0x4d0880)&&this[_0x402a4e(0x2e9)](_0x4d0880['data'][_0x402a4e(0x19d)]);}),this[_0x4d097b(0x34e)]['localPresence$']['pipe'](_0x515f21(_0x22703e=>this[_0x4d097b(0x2e8)]&&_0x22703e[_0x4d097b(0x1db)]===this[_0x4d097b(0x1db)]),_0x270630(_0x24084a=>_0x3c311b(_0x24084a['shareInterval']),{'leading':!0x0,'trailing':!0x0}),_0x26bbcf(this[_0x4d097b(0x1d1)]))[_0x4d097b(0x2cc)](_0x3ef49b=>this[_0x4d097b(0x1aa)](_0x3ef49b)));}[_0x58f188(0x1aa)](_0x599e90){const _0x479fab=_0x58f188;let _0x1a0ea8=this[_0x479fab(0x323)][_0x479fab(0x199)]();if(!_0x1a0ea8||!this[_0x479fab(0x2e8)])return;let _0x539577={'eventID':_0x2b158b['UPDATE_CURSOR'],'data':{'unitID':this[_0x479fab(0x1db)],'memberID':_0x1a0ea8,'selection':JSON['stringify'](Pn(this[_0x479fab(0x1a1)],this[_0x479fab(0x34e)][_0x479fab(0x136)],_0x599e90))}};this[_0x479fab(0x323)][_0x479fab(0x1bc)](_0x539577,this[_0x479fab(0x1db)])['catch'](()=>void 0x0);}[_0x58f188(0x1fa)](_0xec51f7){const _0x467ed1=_0x58f188;let {memberID:_0x5882b6,selection:_0x20e19b}=_0xec51f7[_0x467ed1(0x227)];if(_0x5882b6===this[_0x467ed1(0x323)]['getMemberID']())return;let _0x1866e8=Nn(_0x20e19b,this[_0x467ed1(0x1a1)]);if(!_0x1866e8||_0x1866e8[_0x467ed1(0x307)]!==this[_0x467ed1(0x34e)][_0x467ed1(0x136)]||_0x1866e8[_0x467ed1(0x1a1)]!==this[_0x467ed1(0x1a1)]||_0x1866e8['unitId']!==this[_0x467ed1(0x1db)])return;let _0x1400dc=this[_0x467ed1(0x242)][_0x467ed1(0x1fe)](this[_0x467ed1(0x1db)],_0x5882b6),_0x2b8756={'unitId':_0x1866e8['unitId'],'subUnitId':_0x1866e8[_0x467ed1(0x24f)],'selectedIds':_0x1866e8[_0x467ed1(0x1a3)],'focusedId':_0x1866e8[_0x467ed1(0x126)],'pointer':_0x1866e8[_0x467ed1(0x335)],'memberId':_0x5882b6,'color':this[_0x467ed1(0x36a)][_0x467ed1(0x129)](_0x5882b6),'name':(_0x1400dc==null?void 0x0:_0x1400dc[_0x467ed1(0x2ef)])??_0x5882b6};this[_0x467ed1(0x290)]['executeCommand'](ln['id'],{'unitType':this[_0x467ed1(0x1a1)],'update':{'type':_0x467ed1(0x24c),'state':_0x2b8756}})[_0x467ed1(0x30f)](()=>void 0x0);}['_removeRemotePresence'](_0x1e80bf){const _0x5ffd40=_0x58f188;this[_0x5ffd40(0x290)]['executeCommand'](ln['id'],{'unitType':this[_0x5ffd40(0x1a1)],'update':{'type':_0x5ffd40(0x21c),'unitId':this['unitId'],'memberId':_0x1e80bf}})[_0x5ffd40(0x30f)](()=>void 0x0);}[_0x58f188(0x251)](){const _0x20fcda=_0x58f188;this[_0x20fcda(0x290)][_0x20fcda(0x15d)](ln['id'],{'unitType':this[_0x20fcda(0x1a1)],'update':{'type':_0x20fcda(0x20e),'unitId':this[_0x20fcda(0x1db)]}})[_0x20fcda(0x30f)](()=>void 0x0);}};Fn=X([Y(0x3,_0x2991cf(pn)),Y(0x4,_0x2991cf(_0x404421)),Y(0x5,_0x2991cf(_0x1b514f))],Fn);function _0x5eb5(_0x503933,_0xa1a62a){_0x503933=_0x503933-0xea;const _0x1ab25f=_0x1ab2();let _0x5eb522=_0x1ab25f[_0x503933];return _0x5eb522;}let In=class extends _0x2c598a{constructor(_0x16a010,_0x467b56,_0x293461,_0x4f9c5c){const _0x52707f=_0x58f188;super(),this[_0x52707f(0x23b)]=_0x16a010,this[_0x52707f(0x32e)]=_0x467b56,this[_0x52707f(0x223)]=_0x293461,this[_0x52707f(0x23f)]=_0x4f9c5c,J(this,'_isDisposed',!0x1),J(this,_0x52707f(0x32a),new Map()),J(this,'_pendingEntities',new Map()),J(this,_0x52707f(0x1ce),new Map()),this[_0x52707f(0x144)]();}['dispose'](){const _0x3f0c8b=_0x58f188;this[_0x3f0c8b(0x18e)]=!0x0,this[_0x3f0c8b(0x1ce)][_0x3f0c8b(0x299)](_0x50f3c8=>_0x50f3c8['dispose']()),this[_0x3f0c8b(0x1ce)][_0x3f0c8b(0x20e)](),this[_0x3f0c8b(0x32a)]['forEach'](_0x325fe8=>_0x325fe8[_0x3f0c8b(0x17c)]()),this[_0x3f0c8b(0x32a)][_0x3f0c8b(0x20e)](),this[_0x3f0c8b(0x1f6)][_0x3f0c8b(0x20e)](),super[_0x3f0c8b(0x17c)]();}[_0x58f188(0x144)](){const _0x406305=_0x58f188;this['_adapterRegistry']['adapters$'][_0x406305(0x1e3)](_0x26bbcf(this[_0x406305(0x1d1)]))[_0x406305(0x2cc)](_0xfb89c9=>this[_0x406305(0x2f5)](_0xfb89c9));}[_0x58f188(0x2f5)](_0x50da1c){const _0x4e89cb=_0x58f188;let _0x19df0d=new Set(_0x50da1c[_0x4e89cb(0x311)](_0x4d73ff=>_0x4d73ff[_0x4e89cb(0x1a1)]));this[_0x4e89cb(0x1ce)][_0x4e89cb(0x299)]((_0x4c11e6,_0x3f72b4)=>{const _0x5a9329=_0x4e89cb;_0x19df0d['has'](_0x3f72b4)||(_0x4c11e6[_0x5a9329(0x17c)](),this['_adapterDisposables']['delete'](_0x3f72b4),this[_0x5a9329(0x248)](_0x3f72b4));}),_0x50da1c[_0x4e89cb(0x299)](_0x46eb94=>{const _0x40d578=_0x4e89cb;this['_adapterDisposables'][_0x40d578(0xfe)](_0x46eb94[_0x40d578(0x1a1)])||this[_0x40d578(0x1c1)](_0x46eb94);});}[_0x58f188(0x1c1)](_0x52fa89){const _0xdff0f4=_0x58f188;let _0x4b65c0=new _0x1a4166();this[_0xdff0f4(0x1ce)][_0xdff0f4(0x24c)](_0x52fa89[_0xdff0f4(0x1a1)],_0x4b65c0),_0x4b65c0['add'](_0x52fa89[_0xdff0f4(0x21d)]()),this[_0xdff0f4(0x23b)][_0xdff0f4(0x24a)](_0x52fa89[_0xdff0f4(0x1a1)])[_0xdff0f4(0x299)](_0x4747bf=>this[_0xdff0f4(0x28a)](_0x4747bf['getUnitId'](),_0x52fa89)['catch'](()=>void 0x0));let _0x22b73e=this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x52fa89[_0xdff0f4(0x1a1)])[_0xdff0f4(0x2cc)](({unit:_0x513c2d})=>this[_0xdff0f4(0x28a)](_0x513c2d['getUnitId'](),_0x52fa89)[_0xdff0f4(0x30f)](()=>void 0x0));_0x4b65c0[_0xdff0f4(0x20c)](_0x3584fe(()=>_0x22b73e[_0xdff0f4(0x2ab)]()));let _0x22bb1c=this['_univerInstanceService'][_0xdff0f4(0x277)](_0x52fa89[_0xdff0f4(0x1a1)])[_0xdff0f4(0x2cc)](_0x877bf1=>this[_0xdff0f4(0x2a6)](_0x877bf1[_0xdff0f4(0x1b3)]()));_0x4b65c0[_0xdff0f4(0x20c)](_0x3584fe(()=>_0x22bb1c[_0xdff0f4(0x2ab)]()));}async[_0x58f188(0x28a)](_0x743c12,_0x53057e){const _0x42ecbd=_0x58f188;if(this['_entities'][_0x42ecbd(0xfe)](_0x743c12)||this[_0x42ecbd(0x1f6)][_0x42ecbd(0xfe)](_0x743c12))return;let _0x4732bc={};this[_0x42ecbd(0x1f6)]['set'](_0x743c12,_0x4732bc);let _0x267545=await this['_collabSessionService']['requireSession'](_0x743c12)['catch'](_0x3a56da=>{const _0x4aa0d6=_0x42ecbd;throw this[_0x4aa0d6(0x1f6)][_0x4aa0d6(0x203)](_0x743c12)===_0x4732bc&&this[_0x4aa0d6(0x1f6)][_0x4aa0d6(0x10c)](_0x743c12),_0x3a56da;});if(this[_0x42ecbd(0x18e)]||this[_0x42ecbd(0x1f6)][_0x42ecbd(0x203)](_0x743c12)!==_0x4732bc||this[_0x42ecbd(0x23f)]['get'](_0x53057e[_0x42ecbd(0x1a1)])!==_0x53057e){this[_0x42ecbd(0x1f6)][_0x42ecbd(0x203)](_0x743c12)===_0x4732bc&&this[_0x42ecbd(0x1f6)][_0x42ecbd(0x10c)](_0x743c12);return;}let _0x1a2a24=this[_0x42ecbd(0x32e)]['createInstance'](Fn,_0x743c12,_0x267545,_0x53057e);_0x1a2a24[_0x42ecbd(0x1a8)](),this[_0x42ecbd(0x1f6)][_0x42ecbd(0x10c)](_0x743c12),this[_0x42ecbd(0x32a)]['set'](_0x743c12,_0x1a2a24);}[_0x58f188(0x2a6)](_0x42b0b5){const _0x41873d=_0x58f188;this[_0x41873d(0x1f6)]['delete'](_0x42b0b5);let _0x13d388=this[_0x41873d(0x32a)][_0x41873d(0x203)](_0x42b0b5);_0x13d388&&(_0x13d388[_0x41873d(0x17c)](),this[_0x41873d(0x32a)][_0x41873d(0x10c)](_0x42b0b5));}[_0x58f188(0x248)](_0x1641f0){const _0x42a9c3=_0x58f188;this[_0x42a9c3(0x23b)][_0x42a9c3(0x24a)](_0x1641f0)[_0x42a9c3(0x299)](_0xdbca8d=>this[_0x42a9c3(0x1f6)][_0x42a9c3(0x10c)](_0xdbca8d['getUnitId']())),Array[_0x42a9c3(0x23e)](this[_0x42a9c3(0x32a)][_0x42a9c3(0x13e)]())['forEach'](([_0x3cee1e,_0x4ae50f])=>{const _0x5618b1=_0x42a9c3;_0x4ae50f[_0x5618b1(0x1a1)]===_0x1641f0&&this[_0x5618b1(0x2a6)](_0x3cee1e);});}};In=X([Y(0x0,_0x566a4d),Y(0x1,_0x2991cf(_0x1ca7a1)),Y(0x2,_0x2991cf(_0x30f71b)),Y(0x3,_0x2991cf(_0x169b8))],In);const Ln={'toast':_0x58f188(0x101),'actionButton':_0x58f188(0x22e)},Rn={'title':_0x58f188(0x26d),'content':_0x58f188(0x1f4),'type':_0x58f188(0x211)},zn={'permission_rejected':{'title':_0x58f188(0x150),'content':_0x58f188(0x265),'type':_0x58f188(0x211)},'license_unit_type_rejected':{'title':'collaboration-client-ui.license.title','content':_0x58f188(0x35c),'type':'error'},'remote_revert':{'title':_0x58f188(0x351),'content':_0x58f188(0x238),'type':_0x58f188(0x1be)}};let Bn=class extends _0xecbfc3{constructor(_0x922fcb,_0x110cc8,_0x1ae856,_0x142196,_0x45aa36,_0xd265e0,_0x39f508,_0x38d209){const _0x543046=_0x58f188;var _0x1b6b41;super(),this['_beforeCloseService']=_0x922fcb,this['_localCacheService']=_0x110cc8,this['_collaborationUIEventService']=_0x1ae856,this['_messageService']=_0x142196,this[_0x543046(0x1dc)]=_0x45aa36,this['_localeService']=_0xd265e0,this[_0x543046(0x301)]=_0x39f508,this['_configService']=_0x38d209,J(this,_0x543046(0x180),null),J(this,_0x543046(0x195),new Set()),J(this,_0x543046(0x202),new Map()),J(this,_0x543046(0x143),new Map()),this[_0x543046(0x138)](),this['_initEvent'](),this[_0x543046(0x304)](),((_0x1b6b41=this['_configService'][_0x543046(0x21b)]('collaboration-client-ui.config'))==null?void 0x0:_0x1b6b41[_0x543046(0x2a9)])!==!0x1&&this[_0x543046(0x15c)]();}['dispose'](){const _0x4ab12d=_0x58f188;var _0x5ca22a;(_0x5ca22a=this[_0x4ab12d(0x180)])==null||_0x5ca22a[_0x4ab12d(0x17c)](),this[_0x4ab12d(0x180)]=null;for(let _0x4147b6 of[this[_0x4ab12d(0x202)],this[_0x4ab12d(0x143)]])_0x4147b6[_0x4ab12d(0x299)](_0x22cd08=>_0x22cd08[_0x4ab12d(0x17c)]()),_0x4147b6[_0x4ab12d(0x20e)]();super[_0x4ab12d(0x17c)]();}['_initAwaitingNotices'](){const _0x599f2a=_0x58f188;let _0x4b3723=_0x558983=>{const _0x672e5=_0x5eb5;let _0x24fcb5=new _0x1a4166();_0x24fcb5[_0x672e5(0x20c)](_0x3584fe(_0x558983[_0x672e5(0x2bd)]['subscribe']({'next':_0x3d21b6=>{const _0xcdeff=_0x672e5;_0x3d21b6['elapsedMs']>=0x4e20&&this['_showAwaitingNotice'](this[_0xcdeff(0x202)],_0x558983[_0xcdeff(0x29b)],_0xcdeff(0x1f8)),_0x3d21b6[_0xcdeff(0x366)]==='license_editing_connections_exceeded'&&this[_0xcdeff(0x28e)](this[_0xcdeff(0x143)],_0x558983[_0xcdeff(0x29b)],'collaboration-client-ui.license.editing-connections-exceeded');},'complete':()=>{const _0x5cb67c=_0x672e5;this[_0x5cb67c(0x190)](_0x558983['unitID']),_0x24fcb5['dispose']();}}))),_0x24fcb5[_0x672e5(0x20c)](_0x3584fe(_0x558983[_0x672e5(0x2d3)]['subscribe'](_0x5438a0=>{const _0x49437d=_0x672e5;_0x5438a0!==_0x43361f[_0x49437d(0x209)]&&_0x5438a0!==_0x43361f['AWAITING_WITH_PENDING']&&this[_0x49437d(0x190)](_0x558983[_0x49437d(0x29b)]);}))),this[_0x672e5(0x16e)](_0x24fcb5);};this[_0x599f2a(0x301)]['getCollabEntities']()[_0x599f2a(0x299)](_0x4b3723),this[_0x599f2a(0x16e)](_0x3584fe(this['_collaborationController'][_0x599f2a(0x286)][_0x599f2a(0x2cc)](_0x4b3723)));}['_showAwaitingNotice'](_0xb24645,_0x55b31a,_0x238a5b){const _0x8ab7a=_0x58f188;_0xb24645[_0x8ab7a(0xfe)](_0x55b31a)||_0xb24645['set'](_0x55b31a,this[_0x8ab7a(0x1dc)][_0x8ab7a(0x13b)]({'title':this[_0x8ab7a(0x116)]['t'](_0x238a5b),'type':'warning','duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}[_0x58f188(0x190)](_0x56eed6){const _0x1ac77d=_0x58f188;for(let _0x319be9 of[this[_0x1ac77d(0x202)],this['_editingConnectionsExceededNotices']]){var _0x1fd70b;(_0x1fd70b=_0x319be9['get'](_0x56eed6))==null||_0x1fd70b[_0x1ac77d(0x17c)](),_0x319be9[_0x1ac77d(0x10c)](_0x56eed6);}}[_0x58f188(0x138)](){const _0x1feed4=_0x58f188;this['disposeWithMe'](this[_0x1feed4(0x1ab)]['registerBeforeClose'](()=>{const _0x42a8a8=_0x1feed4;if(this[_0x42a8a8(0x2a4)][_0x42a8a8(0x279)][_0x42a8a8(0xee)])return this['_localeService']['t'](_0x42a8a8(0x331));}));}[_0x58f188(0x15c)](){const _0x1583ac=_0x58f188;let _0x5986ff=_0x4620ae=>{const _0x4d8b01=_0x5eb5;this[_0x4d8b01(0x16e)](_0x3584fe(_0x4620ae['conflict$']['subscribe'](_0x313f29=>this[_0x4d8b01(0x1a0)](_0x313f29))));};this[_0x1583ac(0x301)]['getCollabEntities']()['forEach'](_0x5986ff),this['disposeWithMe'](_0x3584fe(this[_0x1583ac(0x301)][_0x1583ac(0x286)][_0x1583ac(0x2cc)](_0x5986ff)));}[_0x58f188(0x1a0)](_0x3ab893){const _0x3e7a10=_0x58f188;if(!_0x3ab893[_0x3e7a10(0x113)])return;let _0x55fdd8=zn[_0x3ab893[_0x3e7a10(0x366)]]??Rn;this[_0x3e7a10(0x342)]({'title':this[_0x3e7a10(0x116)]['t'](_0x55fdd8[_0x3e7a10(0x289)]),'content':this['_localeService']['t'](_0x55fdd8['content']),'type':_0x55fdd8[_0x3e7a10(0x269)],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Ln,'action':{'label':this['_localeService']['t'](_0x3e7a10(0x1df)),'onClick':_0x81a9d7=>{const _0x1e9a9e=_0x3e7a10;_0x81a9d7[_0x1e9a9e(0x20d)](),this['_reloadPage']();}}});}[_0x58f188(0x1f1)](){const _0x479c72=_0x58f188;window['location'][_0x479c72(0x1e2)]();}['_initEvent'](){const _0x231e9b=_0x58f188;this[_0x231e9b(0x16e)](this[_0x231e9b(0x2a7)]['event$'][_0x231e9b(0x2cc)](_0x4f5a13=>{const _0x48bd8f=_0x231e9b;_0x4f5a13['id']===_0x14f0c4[_0x48bd8f(0x2d0)]&&this['_messageService']['show']({'type':_0x7d03a2[_0x48bd8f(0x145)],'content':this['_localeService']['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x4f5a13['id']===_0x14f0c4['CLOSE_ROOM']&&this[_0x48bd8f(0x315)]['show']({'type':_0x7d03a2['Warning'],'content':this[_0x48bd8f(0x116)]['t'](_0x48bd8f(0x28f))}),_0x4f5a13['id']===_0x14f0c4[_0x48bd8f(0x1cf)]&&this[_0x48bd8f(0x32c)](),_0x4f5a13['id']===_0x14f0c4[_0x48bd8f(0x1ba)]&&_0x4f5a13[_0x48bd8f(0x29b)]&&this[_0x48bd8f(0x2fb)](_0x4f5a13[_0x48bd8f(0x29b)],_0x4f5a13[_0x48bd8f(0x1b5)]??''),_0x4f5a13['id']===_0x14f0c4['JOIN_ROOM_FAILED']&&this[_0x48bd8f(0x315)]['show']({'type':_0x7d03a2[_0x48bd8f(0x145)],'content':this['_localeService']['t'](_0x4f5a13['data']||'')}),_0x4f5a13['id']===_0x14f0c4[_0x48bd8f(0x100)]&&this[_0x48bd8f(0x315)][_0x48bd8f(0x13b)]({'type':_0x7d03a2[_0x48bd8f(0x145)],'content':this['_localeService']['t'](_0x48bd8f(0x2a2))}),_0x4f5a13['id']===_0x14f0c4[_0x48bd8f(0x356)]&&this['_messageService'][_0x48bd8f(0x13b)]({'type':_0x7d03a2[_0x48bd8f(0x267)],'content':this[_0x48bd8f(0x116)]['t'](_0x48bd8f(0x243))}),_0x4f5a13['id']===_0x14f0c4[_0x48bd8f(0x241)]&&this[_0x48bd8f(0x315)]['show']({'type':_0x7d03a2[_0x48bd8f(0x267)],'content':this['_localeService']['t'](_0x48bd8f(0x28b))});}));}[_0x58f188(0x32c)](){const _0x404107=_0x58f188;this['_replaceConflictNotification']({'title':this[_0x404107(0x116)]['t'](_0x404107(0x26d)),'content':this['_localeService']['t']('collaboration-client-ui.conflict.processing'),'type':_0x404107(0x220),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x31b585,_0x42ed6e){const _0x2c3842=_0x58f188;this[_0x2c3842(0x342)]({'title':this[_0x2c3842(0x116)]['t']('collaboration-client-ui.conflict.title'),'content':this['_localeService']['t'](_0x2c3842(0x23c)),'type':_0x2c3842(0x211),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Ln,'action':{'label':this['_localeService']['t'](_0x2c3842(0x282)),'onClick':_0x3fd81a=>{const _0x8de460=_0x2c3842;_0x3fd81a[_0x8de460(0x20d)](),this['_retryConflictCacheClear'](_0x31b585,_0x42ed6e);}}});}[_0x58f188(0x1c6)](_0x1c5d5a,_0x1cc22e){const _0xe75421=_0x58f188;let _0x2f74cc=_0x1c5d5a+':'+(_0x1cc22e??'');this[_0xe75421(0x195)][_0xe75421(0xfe)](_0x2f74cc)||(this[_0xe75421(0x195)][_0xe75421(0x20c)](_0x2f74cc),this['_showConflictProcessingNotification'](),this[_0xe75421(0x2a4)]['clearOfflineData'](_0x1c5d5a,_0x1cc22e)[_0xe75421(0x260)](()=>this['_reloadPage']())['catch'](()=>this[_0xe75421(0x2fb)](_0x1c5d5a,_0x1cc22e))[_0xe75421(0x2b8)](()=>this[_0xe75421(0x195)]['delete'](_0x2f74cc)));}[_0x58f188(0x342)](_0x3ee5be){const _0xc2fc8d=_0x58f188;var _0x46c109;(_0x46c109=this[_0xc2fc8d(0x180)])==null||_0x46c109['dispose'](),this[_0xc2fc8d(0x180)]=this[_0xc2fc8d(0x1dc)][_0xc2fc8d(0x13b)](_0x3ee5be);}};Bn=X([Y(0x0,_0x280f2e),Y(0x1,_0x25089d),Y(0x2,_0x2991cf(_0x37388a)),Y(0x3,_0x359371),Y(0x4,_0x293ab0),Y(0x5,_0x2991cf(_0x39eb27)),Y(0x6,_0x2991cf(_0x1dbb3d)),Y(0x7,_0x417f85)],Bn);let Vn=class{constructor(_0x4cd913,_0x5e25ea){const _0x78f1ac=_0x58f188;this['_transformService']=_0x4cd913,this[_0x78f1ac(0x178)]=_0x5e25ea;}[_0x58f188(0x201)](_0x313b02){const _0x1c5c3a=_0x58f188;this[_0x1c5c3a(0x2fe)](_0x313b02),this[_0x1c5c3a(0x1cc)](_0x313b02);}[_0x58f188(0x2c2)](_0x187ce2){const _0x13c4fd=_0x58f188;let {unitID:_0x55ba62}=_0x187ce2,{redoCache:_0xfbae5}=this[_0x13c4fd(0x178)][_0x13c4fd(0x333)](_0x55ba62)[_0x13c4fd(0x2f3)](_0x1fdd61)[_0x13c4fd(0x17f)]();if(_0xfbae5['length']===0x0)return _0x187ce2;let _0x16867e=_0x321b91[_0x13c4fd(0x305)](_0x187ce2['mutations'][0x0]);for(let _0x35eae4=0x0;_0x35eae4<_0xfbae5['length'];_0x35eae4++){let _0x566795={'id':_0x13c4fd(0x371),'params':{..._0xfbae5[_0x35eae4]}},_0x242bcb=this[_0x13c4fd(0x270)][_0x13c4fd(0x25a)](_0x16867e,_0x566795,!0x1);if(_0x1f5214(_0x242bcb))throw _0x242bcb[_0x13c4fd(0x211)];_0x16867e=_0x242bcb[_0x13c4fd(0x1ac)];}return{..._0x321b91[_0x13c4fd(0x305)](_0x187ce2),'mutations':[_0x16867e]};}[_0x58f188(0x2fe)](_0x259b41){const _0x2808be=_0x58f188;let {unitID:_0x1afdfb}=_0x259b41,_0x4aac6b=this['_renderManagerService']['getRenderUnitById'](_0x1afdfb)[_0x2808be(0x2f3)](_0x1fdd61),{undoCache:_0x3e3b7f,redoCache:_0x186fb0}=_0x4aac6b[_0x2808be(0x17f)]();if(_0x3e3b7f['length']===0x0||_0x186fb0[_0x2808be(0x189)]===0x0)return;let _0x3233aa=[],_0x2a7f65=[],_0xd0c1d6=_0x321b91[_0x2808be(0x305)](_0x259b41[_0x2808be(0x250)][0x0]),_0x42f903=_0x321b91['deepClone'](_0x259b41['mutations'][0x0]);for(let _0x505791=_0x3e3b7f[_0x2808be(0x189)]-0x1;_0x505791>=0x0;_0x505791--){let _0x3a4a76={'id':'doc.mutation.rich-text-editing','params':{..._0x3e3b7f[_0x505791]}},_0x53cf4c={'id':'doc.mutation.rich-text-editing','params':{..._0x186fb0[_0x505791]}},_0x3ed309=this[_0x2808be(0x270)][_0x2808be(0x25a)](_0xd0c1d6,_0x3a4a76,!0x1),_0x1d665c=this[_0x2808be(0x270)]['transformMutation'](_0x42f903,_0x53cf4c,!0x1);if(_0x1f5214(_0x3ed309))throw _0x3ed309[_0x2808be(0x211)];if(_0x1f5214(_0x1d665c))throw _0x1d665c[_0x2808be(0x211)];_0x3233aa[_0x2808be(0x1f9)](_0x3ed309['m2Prime'][_0x2808be(0x19f)]),_0x2a7f65[_0x2808be(0x1f9)](_0x1d665c['m2Prime'][_0x2808be(0x19f)]),_0xd0c1d6=_0x3ed309[_0x2808be(0x1ac)],_0x42f903=_0x1d665c['m1Prime'];}_0x4aac6b[_0x2808be(0x217)]({'undoCache':_0x3233aa,'redoCache':_0x2a7f65});}[_0x58f188(0x1cc)](_0x3eb964){const _0x88e594=_0x58f188;let {unitID:_0x3de733}=_0x3eb964,_0x114559=this[_0x88e594(0x178)][_0x88e594(0x333)](_0x3de733)[_0x88e594(0x2f3)](_0x1fdd61),_0x2be1d9=_0x114559[_0x88e594(0x1e7)]();if(_0x2be1d9==null)return;let _0x4d2e67=[{'id':_0x88e594(0x371),'params':{'unitId':_0x3eb964['unitID'],'actions':null,'textRanges':[_0x2be1d9]}}],_0x57f7e3=this['_transformService'][_0x88e594(0x1b1)](_0x3eb964,_0x4d2e67);if(!_0x2b9bd9(_0x57f7e3))throw _0x57f7e3[_0x88e594(0x211)];let _0x16acd9=_0x57f7e3['m2Prime'][0x0][_0x88e594(0x19f)][_0x88e594(0x2e7)];Array['isArray'](_0x16acd9)&&_0x16acd9[_0x88e594(0x189)]&&_0x114559[_0x88e594(0x177)](_0x16acd9[0x0]);}};Vn=X([Y(0x0,_0x2f5815),Y(0x1,_0x29dfc6)],Vn);let Hn=class{constructor(_0x15611b,_0x143ac7,_0x309b2e){const _0x3a47a2=_0x58f188;this[_0x3a47a2(0x32e)]=_0x15611b,this[_0x3a47a2(0x270)]=_0x143ac7,this[_0x3a47a2(0x18a)]=_0x309b2e;}['transformStateCache'](_0x4d048f){const _0x5311ee=_0x58f188;this[_0x5311ee(0x216)](_0x4d048f);}[_0x58f188(0x2c2)](_0xbf6827){const _0x5a9b13=_0x58f188;let {unitID:_0x21b15a}=_0xbf6827,{collaboration:_0x52bbec}=this[_0x5a9b13(0x18a)][_0x5a9b13(0x1af)](_0x21b15a);if(_0x52bbec[_0x5a9b13(0x189)]===0x0)return _0xbf6827;let _0x20166c=_0x321b91['deepClone'](_0xbf6827[_0x5a9b13(0x250)][0x0]);for(let _0x39f9e9=0x0;_0x39f9e9<_0x52bbec[_0x5a9b13(0x189)];_0x39f9e9++){let _0x12e143={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x52bbec[_0x39f9e9][_0x5a9b13(0x1db)],..._0x52bbec[_0x39f9e9]['redoState']}},_0x10d474=this['_transformService'][_0x5a9b13(0x25a)](_0x20166c,_0x12e143,!0x1);if(_0x1f5214(_0x10d474))throw _0x10d474[_0x5a9b13(0x211)];_0x20166c=_0x10d474[_0x5a9b13(0x1ac)];}return{..._0x321b91[_0x5a9b13(0x305)](_0xbf6827),'mutations':[_0x20166c]};}[_0x58f188(0x216)](_0x5ed03f){const _0x2725f8=_0x58f188;let {unitID:_0x41f6bc}=_0x5ed03f,{history:_0x25a5f4,collaboration:_0x20cf21}=this[_0x2725f8(0x18a)]['getStateCache'](_0x41f6bc);if(_0x25a5f4[_0x2725f8(0x189)]===0x0&&_0x20cf21[_0x2725f8(0x189)]===0x0)return;let _0x2b8c1c=[],_0x41ae7b=[],_0x1ced39=_0x321b91[_0x2725f8(0x305)](_0x5ed03f[_0x2725f8(0x250)][0x0]),_0x320fde=_0x321b91['deepClone'](_0x5ed03f[_0x2725f8(0x250)][0x0]);for(let _0x3c2382=_0x25a5f4[_0x2725f8(0x189)]-0x1;_0x3c2382>=0x0;_0x3c2382--){let _0x3587fc={'id':_0x2725f8(0x371),'params':{'unitId':_0x25a5f4[_0x3c2382]['unitId'],..._0x25a5f4[_0x3c2382][_0x2725f8(0x370)]}},_0x18d569={'id':_0x2725f8(0x371),'params':{'unitId':_0x25a5f4[_0x3c2382]['unitId'],..._0x25a5f4[_0x3c2382][_0x2725f8(0x14e)]}},_0xdced48=this[_0x2725f8(0x270)][_0x2725f8(0x25a)](_0x1ced39,_0x3587fc,!0x1),_0x3eaf14=this['_transformService'][_0x2725f8(0x25a)](_0x320fde,_0x18d569,!0x1);if(_0x1f5214(_0xdced48))throw _0xdced48['error'];if(_0x1f5214(_0x3eaf14))throw _0x3eaf14[_0x2725f8(0x211)];_0x2b8c1c[_0x2725f8(0x1f9)]({..._0x25a5f4[_0x3c2382],'undoState':_0xdced48[_0x2725f8(0x1f0)][_0x2725f8(0x19f)],'redoState':_0x3eaf14[_0x2725f8(0x1f0)][_0x2725f8(0x19f)]}),_0x1ced39=_0xdced48['m1Prime'],_0x320fde=_0x3eaf14[_0x2725f8(0x1ac)];}_0x1ced39=_0x321b91['deepClone'](_0x5ed03f[_0x2725f8(0x250)][0x0]),_0x320fde=_0x321b91['deepClone'](_0x5ed03f[_0x2725f8(0x250)][0x0]);for(let _0x4473f3=_0x20cf21['length']-0x1;_0x4473f3>=0x0;_0x4473f3--){let _0x582c6f={'id':_0x2725f8(0x371),'params':{'unitId':_0x20cf21[_0x4473f3][_0x2725f8(0x1db)],..._0x20cf21[_0x4473f3][_0x2725f8(0x370)]}},_0x5c22a6={'id':_0x2725f8(0x371),'params':{'unitId':_0x20cf21[_0x4473f3][_0x2725f8(0x1db)],..._0x20cf21[_0x4473f3]['redoState']}},_0x19ca6b=this['_transformService'][_0x2725f8(0x25a)](_0x1ced39,_0x582c6f,!0x1),_0x524231=this['_transformService'][_0x2725f8(0x25a)](_0x320fde,_0x5c22a6,!0x1);if(_0x1f5214(_0x19ca6b))throw _0x19ca6b['error'];if(_0x1f5214(_0x524231))throw _0x524231[_0x2725f8(0x211)];_0x41ae7b[_0x2725f8(0x1f9)]({..._0x20cf21[_0x4473f3],'undoState':_0x19ca6b[_0x2725f8(0x1f0)]['params'],'redoState':_0x524231[_0x2725f8(0x1f0)]['params']}),_0x1ced39=_0x19ca6b[_0x2725f8(0x1ac)],_0x320fde=_0x524231['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x41f6bc,{'history':_0x2b8c1c,'collaboration':_0x41ae7b});}};Hn=X([Y(0x0,_0x2991cf(_0x1ca7a1)),Y(0x1,_0x2f5815),Y(0x2,_0x2991cf(_0x328f64))],Hn);let Un=class{constructor(_0x316ab6,_0x23cc21){const _0xf6d236=_0x58f188;this[_0xf6d236(0x1c4)]=_0x316ab6,this[_0xf6d236(0x270)]=_0x23cc21;}[_0x58f188(0x25e)](_0x9066f3){const _0x58f54a=_0x58f188;var _0x579bf6;let _0x10f730=this['_docSelectionManagerService'][_0x58f54a(0x2c3)]()??[],_0x362f86=this['_docSelectionManagerService'][_0x58f54a(0x36d)]();if(_0x10f730[_0x58f54a(0x189)]===0x0||_0x362f86==null)return null;let _0x1b0e26=_0x9066f3['unitID'],_0x2f460e=[{'id':_0x58f54a(0x371),'params':{'unitId':_0x1b0e26,'actions':null,'textRanges':_0x10f730}}],_0x4412d5=this[_0x58f54a(0x270)][_0x58f54a(0x1b1)](_0x9066f3,_0x2f460e);if(!_0x2b9bd9(_0x4412d5))throw _0x4412d5[_0x58f54a(0x211)];let _0x26aa29=(_0x579bf6=_0x4412d5['m2Prime'][0x0])==null?void 0x0:_0x579bf6[_0x58f54a(0x19f)],_0x39a85f=_0x26aa29&&typeof _0x26aa29==_0x58f54a(0xf8)&&'textRanges'in _0x26aa29?_0x26aa29['textRanges']:null;if(!Kn(_0x39a85f))return null;let _0x24129a=Wn(_0x9066f3['mutations'][_0x58f54a(0x218)](_0x16d8eb=>qn(_0x16d8eb[_0x58f54a(0x19f)]))?_0x39a85f[_0x58f54a(0x303)](_0x200b23=>!('tableId'in _0x200b23)):_0x39a85f,{..._0x362f86,'options':_0x362f86[_0x58f54a(0x1f5)]?{..._0x362f86['options'],'wholeDocument':!0x1}:void 0x0}),_0x32b91f={'unitId':_0x1b0e26,'subUnitId':_0x1b0e26};this[_0x58f54a(0x1c4)][_0x58f54a(0x22b)](_0x24129a,_0x32b91f);let _0x3631cf=!0x0;return{'commit':()=>{_0x3631cf=!0x1;},'rollback':()=>{const _0x38a78c=_0x58f54a;_0x3631cf&&(_0x3631cf=!0x1,this['_docSelectionManagerService'][_0x38a78c(0x22b)](_0x362f86,_0x32b91f));}};}};Un=X([Y(0x0,_0x2991cf(_0x161ce3)),Y(0x1,_0x2f5815)],Un);function Wn(_0x15b490,_0x16f09a){const _0x1ef229=_0x58f188;let _0xd00d72=[],_0x2b277d=[];for(let _0x2bdb3d of _0x15b490)Gn(_0x2bdb3d)?_0x2b277d[_0x1ef229(0x2b1)](_0x2bdb3d):_0xd00d72[_0x1ef229(0x2b1)](_0x2bdb3d);return{..._0x16f09a,'textRanges':_0xd00d72,'rectRanges':_0x2b277d};}function Gn(_0x482909){const _0x458d14=_0x58f188;return _0x458d14(0x2ea)in _0x482909;}function Kn(_0x1294c5){const _0x6ff4f4=_0x58f188;return Array[_0x6ff4f4(0xea)](_0x1294c5)&&_0x1294c5[_0x6ff4f4(0x164)](_0x5e67bb=>typeof _0x5e67bb==_0x6ff4f4(0xf8)&&!!_0x5e67bb&&_0x6ff4f4(0x128)in _0x5e67bb&&'endOffset'in _0x5e67bb);}function qn(_0x4628cd){const _0x3ef6c2=_0x58f188;return _0x4628cd===_0x3ef6c2(0x152)?!0x0:Array[_0x3ef6c2(0xea)](_0x4628cd)?_0x4628cd['some'](_0x195be2=>qn(_0x195be2)):!_0x4628cd||typeof _0x4628cd!=_0x3ef6c2(0xf8)?!0x1:Object[_0x3ef6c2(0x336)](_0x4628cd)['some'](_0x5727f8=>qn(_0x5727f8));}let Jn=class extends _0xecbfc3{constructor(_0x10a52d,_0x3966bd,_0x1a0664,_0x38974a,_0x548b95,_0x1efc6c,_0x548d8b){const _0x46af24=_0x58f188;super(),this[_0x46af24(0x301)]=_0x10a52d,this[_0x46af24(0x372)]=_0x3966bd,this[_0x46af24(0x197)]=_0x1a0664,this[_0x46af24(0x1e9)]=_0x38974a,this[_0x46af24(0xfd)]=_0x548b95,this[_0x46af24(0x315)]=_0x1efc6c,this[_0x46af24(0x116)]=_0x548d8b,J(this,_0x46af24(0x2ca),new _0x1de63d(_0x43361f[_0x46af24(0x2cf)])),this[_0x46af24(0x2aa)]();}[_0x58f188(0x2aa)](){const _0x4a3ba2=_0x58f188;this[_0x4a3ba2(0x16e)](this[_0x4a3ba2(0x301)][_0x4a3ba2(0x286)][_0x4a3ba2(0x2cc)](_0x536599=>{const _0x16042f=_0x4a3ba2;_0x536599 instanceof _0x1179ca&&_0x536599[_0x16042f(0x1e0)]({'onTransformIME':_0x4068f2=>this[_0x16042f(0x372)][_0x16042f(0x201)](_0x4068f2),'onTransformState':_0x88a161=>this[_0x16042f(0x197)][_0x16042f(0x2b0)](_0x88a161),'onPrepareTransformSelections':_0x1f5608=>this[_0x16042f(0x1e9)][_0x16042f(0x25e)](_0x1f5608),'onSyncEditingCollabCursor':_0x1f2281=>this[_0x16042f(0xfd)][_0x16042f(0x10f)](_0x1f2281),'onTransformRemoteChangesetByIMECache':_0x154d90=>this[_0x16042f(0x372)]['transformRemoteChangeset'](_0x154d90),'onTransformRemoteChangesetByStateCache':_0x87a62d=>this[_0x16042f(0x197)][_0x16042f(0x2c2)](_0x87a62d)});}));}};Jn=X([Y(0x0,_0x2991cf(_0x1dbb3d)),Y(0x1,_0x2991cf(Vn)),Y(0x2,_0x2991cf(Hn)),Y(0x3,_0x2991cf(Un)),Y(0x4,_0x2991cf(gn)),Y(0x5,_0x359371),Y(0x6,_0x2991cf(_0x39eb27))],Jn);let Yn=class extends _0xecbfc3{constructor(_0x2c6bce,_0x2ef659,_0x5ea2c6,_0x2a1cac){const _0x214b76=_0x58f188;super(),this['_injector']=_0x2c6bce,this[_0x214b76(0x111)]=_0x2ef659,this[_0x214b76(0x2c9)]=_0x5ea2c6,this[_0x214b76(0x274)]=_0x2a1cac,J(this,_0x214b76(0x29a),void 0x0),this[_0x214b76(0x144)]();}[_0x58f188(0x144)](){const _0x2ff34b=_0x58f188;this[_0x2ff34b(0x316)](),this[_0x2ff34b(0x253)](),this[_0x2ff34b(0xf4)](),this[_0x2ff34b(0x139)]();}['_initUserListener'](){const _0x253575=_0x58f188;this[_0x253575(0x16e)](this[_0x253575(0x274)][_0x253575(0x1b0)][_0x253575(0x2cc)](_0xd12c95=>{const _0x10a585=_0x253575;this[_0x10a585(0x29a)]=_0xd12c95==null?void 0x0:_0xd12c95[_0x10a585(0x19d)];}));}['_initWindowErrorListener'](){const _0x1aad2f=_0x58f188;let _0x174f8f=_0x5626e8=>{const _0x2c4ac0=_0x5eb5;var _0x2dd958;this[_0x2c4ac0(0x278)]('error',_0x2c4ac0(0x210)+_0x5626e8['message']+'\x20at\x20'+_0x5626e8[_0x2c4ac0(0x2f7)]+':'+_0x5626e8[_0x2c4ac0(0x1ad)]+':'+_0x5626e8[_0x2c4ac0(0x357)]+'\x0a'+(((_0x2dd958=_0x5626e8[_0x2c4ac0(0x211)])==null?void 0x0:_0x2dd958['stack'])||''));};window[_0x1aad2f(0x27d)]('error',_0x174f8f),this[_0x1aad2f(0x16e)](()=>{const _0x4b0518=_0x1aad2f;window[_0x4b0518(0x302)]('error',_0x174f8f);});}[_0x58f188(0x253)](){const _0x547e02=_0x58f188;let _0x4e20c8=_0x496478=>{const _0x1c9532=_0x5eb5;this[_0x1c9532(0x278)](_0x1c9532(0x211),_0x1c9532(0x1ca)+_0x496478[_0x1c9532(0x366)]);};window[_0x547e02(0x27d)](_0x547e02(0x1d4),_0x4e20c8),this[_0x547e02(0x16e)](()=>{const _0x17658c=_0x547e02;window[_0x17658c(0x302)](_0x17658c(0x1d4),_0x4e20c8);});}[_0x58f188(0xf4)](){const _0x32a78f=_0x58f188;let _0x445ae7=this['_logService']['error'][_0x32a78f(0x2a0)](this['_logService']);this[_0x32a78f(0x2c9)]['error']=(..._0x23acb5)=>{const _0x39e8ac=_0x32a78f;let _0x4deeb5=_0x23acb5[_0x39e8ac(0x311)](_0x151260=>_0x151260 instanceof Error?_0x151260[_0x39e8ac(0x2f1)]+'\x0a'+_0x151260[_0x39e8ac(0x188)]:String(_0x151260))[_0x39e8ac(0x13f)]('\x20');this['_uploadLog'](_0x39e8ac(0x211),'[LogService\x20Error]:\x20'+_0x4deeb5),_0x445ae7(..._0x23acb5);},this[_0x32a78f(0x16e)](()=>{const _0x632730=_0x32a78f;this['_logService'][_0x632730(0x211)]=_0x445ae7;});}['_uploadLog'](_0x503da3,_0x23ab6b){const _0x27128e=_0x58f188;try{let _0xd47de7={'userId':this['_memberID'],'logLabel':_0x503da3,'content':_0x23ab6b};this[_0x27128e(0x111)][_0x27128e(0x16c)](_0x27128e(0x1d3),{'body':_0xd47de7})[_0x27128e(0x30f)](()=>{});}catch{}}};Yn=X([Y(0x0,_0x2991cf(_0x1ca7a1)),Y(0x1,_0x2991cf(_0x48b701)),Y(0x2,_0x24a2da),Y(0x3,_0x2991cf(_0x30f71b))],Yn);function Xn({state$:_0x3565a6}){const _0xb97f36=_0x58f188;let _0x70b790=_0x210bfe(_0x3565a6,null,!0x0);return _0x70b790?_0x5c8e89(_0xb97f36(0x119),{'data-u-comp':_0xb97f36(0x2d7),'role':'alert','className':_0xb97f36(0x281),'children':[_0x1158dd(_0x42372b,{'className':_0xb97f36(0x2b9)}),_0x1158dd(_0xb97f36(0x123),{'children':_0x70b790[_0xb97f36(0x12a)]}),_0x1158dd(_0x3c4422,{'size':_0xb97f36(0x104),'variant':_0xb97f36(0x348),'onClick':()=>window[_0xb97f36(0x11b)]['reload'](),'children':_0x70b790[_0xb97f36(0x1c5)]})]}):null;}const Zn=_0x58f188(0x2b4);let Qn=class extends _0xecbfc3{constructor(_0x2ea29e,_0x1e6c86,_0x1f4b49,_0x220057,_0x4079de){const _0xae5268=_0x58f188;super(),this[_0xae5268(0x235)]=_0x2ea29e,this['_messageService']=_0x1e6c86,this[_0xae5268(0x116)]=_0x1f4b49,this[_0xae5268(0x32e)]=_0x220057,J(this,_0xae5268(0x246),new _0x1de63d(null)),J(this,_0xae5268(0x140),new Set()),J(this,_0xae5268(0x2ae),new Map()),J(this,_0xae5268(0x36c),this['_timeoutState$'][_0xae5268(0x11e)]());let _0x31e34e=()=>_0x3c5a6e(Xn,{'state$':this[_0xae5268(0x36c)]});this['disposeWithMe'](_0x4079de['registerComponent'](_0x52a18c[_0xae5268(0x156)],()=>_0x45d242(_0x31e34e,this[_0xae5268(0x32e)]))),this[_0xae5268(0x16e)](this['_snapshotLoadingService'][_0xae5268(0x1d9)][_0xae5268(0x2cc)](_0x4a7254=>{const _0x502002=_0xae5268;_0x4a7254[_0x502002(0x299)](_0x3058da=>this['_updateMessage'](_0x3058da));}));}[_0x58f188(0x17c)](){const _0x3cc58e=_0x58f188;this[_0x3cc58e(0x140)][_0x3cc58e(0x299)](_0x5cba89=>this[_0x3cc58e(0x315)][_0x3cc58e(0x21c)](_0x5cba89)),this[_0x3cc58e(0x140)][_0x3cc58e(0x20e)](),this[_0x3cc58e(0x2ae)]['forEach'](({timeoutId:_0xaacb4b})=>clearTimeout(_0xaacb4b)),this[_0x3cc58e(0x2ae)][_0x3cc58e(0x20e)](),this[_0x3cc58e(0x246)][_0x3cc58e(0x2ff)](),super[_0x3cc58e(0x17c)]();}['_updateMessage'](_0x3fb2c8){const _0x5f1991=_0x58f188;let _0x3aa9b2=''+Zn+_0x3fb2c8['unitId'];_0x3fb2c8[_0x5f1991(0x2b3)]===_0x4eed71[_0x5f1991(0x244)]?(this['_clearBlockProgressWatch'](_0x3fb2c8[_0x5f1991(0x1db)]),this[_0x5f1991(0x317)](_0x3fb2c8[_0x5f1991(0x1db)]),this['_messageService'][_0x5f1991(0x21c)](_0x3aa9b2),this['_messageIds'][_0x5f1991(0x10c)](_0x3aa9b2)):_0x3fb2c8['stage']===_0x4eed71[_0x5f1991(0x365)]?(this[_0x5f1991(0x208)](_0x3fb2c8[_0x5f1991(0x1db)]),this['_clearTimeoutState'](_0x3fb2c8[_0x5f1991(0x1db)]),this[_0x5f1991(0x315)][_0x5f1991(0x13b)]({'id':_0x3aa9b2,'type':_0x7d03a2[_0x5f1991(0x267)],'content':this[_0x5f1991(0x116)]['t'](_0x5f1991(0x243))}),this[_0x5f1991(0x140)][_0x5f1991(0x10c)](_0x3aa9b2)):_0x3fb2c8[_0x5f1991(0x2b3)]!==_0x4eed71['LOADING_BLOCKS']||_0x3fb2c8[_0x5f1991(0x2c8)]<=0xa?(this[_0x5f1991(0x208)](_0x3fb2c8[_0x5f1991(0x1db)]),this[_0x5f1991(0x315)][_0x5f1991(0x21c)](_0x3aa9b2),this['_messageIds'][_0x5f1991(0x10c)](_0x3aa9b2)):this[_0x5f1991(0x154)](_0x3fb2c8)||(this[_0x5f1991(0x315)]['show']({'id':_0x3aa9b2,'type':_0x7d03a2['Loading'],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x5f1991(0x186))+'\x20'+_0x3fb2c8[_0x5f1991(0x294)]+'/'+_0x3fb2c8[_0x5f1991(0x2c8)]}),this[_0x5f1991(0x140)][_0x5f1991(0x20c)](_0x3aa9b2));}[_0x58f188(0x154)](_0x3c53a7){const _0x5933f1=_0x58f188;let _0x1ce70e=this[_0x5933f1(0x2ae)][_0x5933f1(0x203)](_0x3c53a7[_0x5933f1(0x1db)]);if((_0x1ce70e==null?void 0x0:_0x1ce70e[_0x5933f1(0x294)])===_0x3c53a7[_0x5933f1(0x294)])return _0x1ce70e[_0x5933f1(0x30e)];this[_0x5933f1(0x208)](_0x3c53a7[_0x5933f1(0x1db)]);let _0x4d1683=setTimeout(()=>{const _0x5b037e=_0x5933f1;let _0x509446=this[_0x5b037e(0x2ae)][_0x5b037e(0x203)](_0x3c53a7[_0x5b037e(0x1db)]);if(!_0x509446||_0x509446[_0x5b037e(0x1e8)]!==_0x4d1683)return;_0x509446['timedOut']=!0x0;let _0xd0f2da=''+Zn+_0x3c53a7[_0x5b037e(0x1db)];this['_messageService'][_0x5b037e(0x21c)](_0xd0f2da),this[_0x5b037e(0x140)]['delete'](_0xd0f2da),this[_0x5b037e(0x246)][_0x5b037e(0x134)]({'unitId':_0x3c53a7[_0x5b037e(0x1db)],'content':this[_0x5b037e(0x116)]['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x3c53a7[_0x5b037e(0x294)]),String(_0x3c53a7[_0x5b037e(0x2c8)])),'refreshLabel':this[_0x5b037e(0x116)]['t'](_0x5b037e(0x1df))});},0xea60);return this[_0x5933f1(0x2ae)][_0x5933f1(0x24c)](_0x3c53a7['unitId'],{'loadedBlocks':_0x3c53a7['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x4d1683}),!0x1;}[_0x58f188(0x208)](_0x401cc4){const _0x166d3a=_0x58f188;let _0x575416=this['_blockProgressWatches'][_0x166d3a(0x203)](_0x401cc4);_0x575416&&(clearTimeout(_0x575416['timeoutId']),this[_0x166d3a(0x2ae)][_0x166d3a(0x10c)](_0x401cc4),this['_clearTimeoutState'](_0x401cc4));}['_clearTimeoutState'](_0x2d5dea){const _0x48f27e=_0x58f188;var _0x1f6240;((_0x1f6240=this['_timeoutState$'][_0x48f27e(0x33b)])==null?void 0x0:_0x1f6240['unitId'])===_0x2d5dea&&this['_timeoutState$']['next'](null);}};Qn=X([Y(0x0,_0x2991cf(_0x4c4129)),Y(0x1,_0x359371),Y(0x2,_0x2991cf(_0x39eb27)),Y(0x3,_0x2991cf(_0x1ca7a1)),Y(0x4,_0x46213c)],Qn);let $n=class extends _0xecbfc3{constructor(_0x8ff1b9,_0x479069,_0x31065e,_0x303e25,_0x55ebb2){const _0x393af8=_0x58f188;var _0x56140a;super(),this['_configService']=_0x8ff1b9,this['_localStorageService']=_0x479069,this[_0x393af8(0x2c0)]=_0x31065e,this[_0x393af8(0x2c9)]=_0x303e25,this[_0x393af8(0x213)]=_0x55ebb2,J(this,'_cachedData',new Map()),J(this,_0x393af8(0x146),new Map()),J(this,'_activeSaveTaskMap',new Map()),J(this,_0x393af8(0x16b),!0x1),this['_disabled']=!((_0x56140a=this[_0x393af8(0x18c)]['getConfig'](_0x550596))!=null&&_0x56140a[_0x393af8(0x2ce)]);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x58f188(0x252)](){const _0x23408a=_0x58f188;this[_0x23408a(0x16b)]=!0x1;}get[_0x58f188(0x279)](){const _0x579df5=_0x58f188;let _0x40b46e=new Map(this[_0x579df5(0x146)]);return this[_0x579df5(0x19c)][_0x579df5(0x299)]((_0x46e079,_0x329cb0)=>{const _0x3bd43b=_0x579df5;_0x40b46e['has'](_0x329cb0)||_0x40b46e[_0x3bd43b(0x24c)](_0x329cb0,0x0);}),_0x40b46e;}['dispose'](){const _0x31db53=_0x58f188;this[_0x31db53(0x22d)]||(super[_0x31db53(0x17c)](),this[_0x31db53(0x16b)]=!0x0,this[_0x31db53(0x1dd)]()[_0x31db53(0x30f)](_0x1ea803=>this['_logService']['error'](_0x1ea803)));}async[_0x58f188(0x309)](_0x49f052,_0x3c99ed){const _0x4cbb58=_0x58f188;if(this[_0x4cbb58(0x16b)])return null;let _0x387732=this[_0x4cbb58(0x2d5)](_0x3c99ed),_0x14b6ea=await this[_0x4cbb58(0x185)][_0x4cbb58(0x214)](_0x4ddda6(_0x49f052,_0x387732));return(_0x14b6ea==null?void 0x0:_0x14b6ea['unitID'])===_0x49f052&&this['_normalizeUserId'](_0x14b6ea[_0x4cbb58(0x1b5)])===_0x387732?_0x14b6ea:null;}async[_0x58f188(0x187)](_0x138764,_0x28088d,_0x4660bb){const _0x5d3b0e=_0x58f188;let _0x4fb66d=this[_0x5d3b0e(0x2d5)](_0x4660bb),_0x105c1c=_0x4ddda6(_0x138764,_0x4fb66d),_0x11bc67=this[_0x5d3b0e(0x185)][_0x5d3b0e(0x2f9)](_0x105c1c,{..._0x28088d,'unitID':_0x138764,'userId':_0x4fb66d});return this[_0x5d3b0e(0x353)](_0x105c1c,_0x11bc67),!!await _0x11bc67;}async['backupOfflineData'](_0x27b670,_0x143334,_0x2b615e){const _0x513e2d=_0x58f188;let _0x4dad20=this[_0x513e2d(0x2d5)](_0x2b615e),_0x5512d0=_0x4ddda6(_0x27b670,_0x4dad20),_0x244135=this[_0x513e2d(0x30b)][_0x513e2d(0x203)](_0x5512d0)??await this[_0x513e2d(0x185)][_0x513e2d(0x214)](_0x5512d0);if(!_0x244135||this[_0x513e2d(0x31c)](_0x244135[_0x513e2d(0x1b5)])!==_0x4dad20||_0x244135[_0x513e2d(0x29b)]!==_0x27b670)return;let _0x40e9d2=Date[_0x513e2d(0x1bf)](),_0x2bb19c=new Date(_0x40e9d2)[_0x513e2d(0x18d)]();await this[_0x513e2d(0x185)][_0x513e2d(0x2f9)](_0x5512d0+':backup:'+_0x40e9d2,{'reason':_0x143334,'createdAt':_0x2bb19c,'data':_0x244135});}async[_0x58f188(0x36f)](_0x51b0d9,_0x47992a){const _0x2fa905=_0x58f188;let _0x1a8083=this[_0x2fa905(0x2d5)](_0x47992a),_0x14d6c4=_0x4ddda6(_0x51b0d9,_0x1a8083),_0x52f754=this[_0x2fa905(0x146)]['get'](_0x14d6c4);_0x52f754!==void 0x0&&(window[_0x2fa905(0x2bf)](_0x52f754),this[_0x2fa905(0x146)]['delete'](_0x14d6c4));let _0x20abb6=this[_0x2fa905(0x19c)][_0x2fa905(0x203)](_0x14d6c4);_0x20abb6&&await Promise['allSettled'](_0x20abb6),this[_0x2fa905(0x30b)][_0x2fa905(0x10c)](_0x14d6c4),await this['_localStorageService'][_0x2fa905(0x343)](_0x14d6c4);}[_0x58f188(0x2c6)](_0x4f43e3,_0x232dbe,_0x36e133,_0x5d3e69,_0x4fba8e){const _0x355ba5=_0x58f188;if(this[_0x355ba5(0x22d)])return;let _0x111505=this['_getUserId'](_0x4fba8e),_0x1ec160=_0x4ddda6(_0x4f43e3,_0x111505),_0x32b6be=this[_0x355ba5(0x2c0)][_0x355ba5(0x33f)](_0x4f43e3);this[_0x355ba5(0x30b)]['set'](_0x1ec160,{'unitID':_0x4f43e3,'userId':_0x111505,'type':_0x232dbe,'awaitingChangeset':_0x36e133,'mutations':_0x5d3e69,'rev':_0x32b6be}),this[_0x355ba5(0x146)][_0x355ba5(0xfe)](_0x1ec160)||this[_0x355ba5(0x16d)](_0x1ec160);}[_0x58f188(0x2d5)](_0x3b0033=((()=>{const _0x461ed6=_0x58f188;var _0x20ee5c;return(_0x20ee5c=this[_0x461ed6(0x213)][_0x461ed6(0x33e)]())==null?void 0x0:_0x20ee5c[_0x461ed6(0xf9)];})())){return this['_normalizeUserId'](_0x3b0033);}[_0x58f188(0x31c)](_0x53754a){return _0x53754a===''||_0x53754a==null?void 0x0:_0x53754a;}[_0x58f188(0x16d)](_0x246ebc){const _0x1e9b3b=_0x58f188;let _0x334ff1=this[_0x1e9b3b(0x27a)]();_0x334ff1===0x0?this[_0x1e9b3b(0x148)](_0x246ebc)['catch'](_0x37b3a2=>this[_0x1e9b3b(0x2c9)][_0x1e9b3b(0x211)](_0x37b3a2)):this[_0x1e9b3b(0x146)][_0x1e9b3b(0x24c)](_0x246ebc,window[_0x1e9b3b(0x35a)](()=>{const _0x17d0b8=_0x1e9b3b;this[_0x17d0b8(0x148)](_0x246ebc)[_0x17d0b8(0x30f)](_0x3f6f45=>this[_0x17d0b8(0x2c9)][_0x17d0b8(0x211)](_0x3f6f45));},_0x334ff1));}[_0x58f188(0x27a)](){const _0x5bc28b=_0x58f188;return this['_configService'][_0x5bc28b(0x21b)](_0x3ec5e2)??_0x12d715;}[_0x58f188(0x148)](_0x3abcba){const _0x4de13c=_0x58f188;let _0x16119d=this[_0x4de13c(0x146)][_0x4de13c(0x203)](_0x3abcba);_0x16119d!==void 0x0&&window[_0x4de13c(0x2bf)](_0x16119d);let _0x2c89f2=this[_0x4de13c(0x30b)][_0x4de13c(0x203)](_0x3abcba);if(!_0x2c89f2)return Promise[_0x4de13c(0x364)]();let _0x3b8e2b=this[_0x4de13c(0x19c)]['get'](_0x3abcba),_0x132de3=Promise[_0x4de13c(0x1e4)](_0x3b8e2b?[..._0x3b8e2b]:[])['then'](()=>this[_0x4de13c(0x185)][_0x4de13c(0x2f9)](_0x3abcba,_0x2c89f2))['then'](()=>{const _0x37eafc=_0x4de13c;_0x16119d!==void 0x0&&this[_0x37eafc(0x146)][_0x37eafc(0x203)](_0x3abcba)===_0x16119d&&(this[_0x37eafc(0x146)][_0x37eafc(0x10c)](_0x3abcba),!this[_0x37eafc(0x22d)]&&this[_0x37eafc(0x30b)]['get'](_0x3abcba)!==_0x2c89f2&&this[_0x37eafc(0x16d)](_0x3abcba));});return this[_0x4de13c(0x353)](_0x3abcba,_0x132de3),_0x132de3;}[_0x58f188(0x353)](_0x356b04,_0x461e40){const _0x1a5618=_0x58f188;let _0x55f871=this[_0x1a5618(0x19c)]['get'](_0x356b04);_0x55f871||(_0x55f871=new Set(),this[_0x1a5618(0x19c)][_0x1a5618(0x24c)](_0x356b04,_0x55f871)),_0x55f871[_0x1a5618(0x20c)](_0x461e40);let _0x2ec7b5=()=>{const _0x4f74f3=_0x1a5618;_0x55f871[_0x4f74f3(0x10c)](_0x461e40),_0x55f871[_0x4f74f3(0xee)]===0x0&&this['_activeSaveTaskMap']['delete'](_0x356b04);};_0x461e40[_0x1a5618(0x260)](_0x2ec7b5,_0x2ec7b5);}async[_0x58f188(0x1dd)](){const _0x1dcb6f=_0x58f188;let _0x5aeadd=[...this[_0x1dcb6f(0x146)]['keys']()][_0x1dcb6f(0x311)](_0xbd4be5=>this['_saveCache'](_0xbd4be5));for(let _0x3dd74a of this[_0x1dcb6f(0x19c)][_0x1dcb6f(0x336)]())_0x5aeadd[_0x1dcb6f(0x2b1)](...[..._0x3dd74a][_0x1dcb6f(0x311)](_0x531cdf=>_0x531cdf[_0x1dcb6f(0x260)](()=>void 0x0)));await Promise['all'](_0x5aeadd);}};$n=X([Y(0x0,_0x417f85),Y(0x1,_0x1c6a79),Y(0x2,_0x2991cf(_0xa13a76)),Y(0x3,_0x24a2da),Y(0x4,_0x2991cf(_0x19d632))],$n);function _0x1ab2(){const _0x3f1420=['highlight','_colorIndex','changesetResend$','_registerDependencies','clearTimeout','_revisionService','_hideTimer','transformRemoteChangeset','getDocRanges','_initialized','statusUIPart','updateOfflineData','canRenderAnchor','totalBlocks','_logService','_status$','reconnect','subscribe','wsSessionTicketUrl','enableOfflineEditing','NOT_COLLAB','OTHER_CLIENT_EDITING','RECT','USERS_LEAVE','status$','getScrollXYInfoByViewport','_getUserId','_initDependencies','snapshot-loading-timeout','fillText','getAncestorScale','_heartbeatTimer','_color','_getSheetObject','storage','registerRenderModule','startColumn','slice','strokeWidth','labelPosition','_updateLocalCursor','decorate','collab-text-anchor-','collaboration-client-ui.collabClient.tooltip.reconnect','textRanges','_online','_removeRemotePresence','tableId','collaboration-client-ui.collabStatus.syncing','getOwnPropertyDescriptor','univer-text-orange-500','currentTheme$','name','InsertRangeMoveRightCommandId','message','_drawRectRange','with','onPointerEnter$','_syncAdapters','_initResize','filename','_removeCollabCursors','setItem','Enter','_showConflictCacheClearFailedNotification','online$','blue.400','_transformUndoRedoStack','complete','_docSkeletonManagerService','_collaborationController','removeEventListener','filter','_initAwaitingNotices','deepClone','_onCursorDelete','kind','parse','loadOfflineData','Failed','_cachedData','function','engine','timedOut','catch','red.300','map','evenodd','getActiveSheet','showText','_messageService','_initWindowErrorListener','_clearTimeoutState','clickable','collab-rect-range-','_docClipboardService','collabCursorState$','_normalizeUserId','_toggleOffline','segmentPage','onCommandExecuted','rgba(255,\x20255,\x20255,\x200.01)','resize','key','_session','setConfig','left','_refRangeService','yellow.400','replace','_handleLeaveEvent','_entities','_send','_showConflictProcessingNotification','_unitStatus','_injector','[RemoteUniscriptService]:\x20no\x20focused\x20unit','body','collaboration-client-ui.collaboration.offline-data-not-saved','parseInt','getRenderUnitById','collaboration-client-ui.collabStatus.synced','pointer','values','onTransformChange$','default','collaboration-client-ui.collabStatus.notCollab','getUnit','value','setAlpha','setOffsetY','getCurrentUser','getCurrentRevOfUnit','application/json','_handleEvent','_replaceConflictNotification','removeItem','isFinite','fillStyle','univer-text-green-500','_labelHorizontalPosition','primary','128266dVWaYR','_highlightSecond','_ensureSubject','getTypeOfUnitAdded$','_textBubble','_adapter','triggerDblclick','InsertRowCommandId','collaboration-client-ui.remoteRevert.title','_getMergeRange','_trackActiveSaveTask','univer-appearance-none','max','SOCKET_FAILED','colno','getColorFromTheme','state','setTimeout','HEADER','collaboration-client-ui.license.unit-type-rejected','_scene','dark:focus:!univer-ring-offset-gray-800','_hover','toString','_removeClearOtherTimer','_cursorInfo$','columnGroupId','resolve','ERROR','reason','88cXsQUg',',\x200.2)','adapters$','_colorAssignService','prototype','timeoutState$','getSelectionInfo','imageSourceType','clearOfflineData','undoState','doc.mutation.rich-text-editing','_docTransformIMECacheService','isArray','Unknown\x20user','getCollabCursors$','InsertColCommandId','size','stream','version','row','height','...','_monkeyPatchLogService','FromArray','univer-border-none\x20univer-bg-transparent','polite','object','userID','offsetY','_syncPresenceStatusComponents','clearInterval','_docSyncEditingCollabCursorService','has','toRgbString','SOCKET_FAILED_RETRY','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','black','getOffsetConfig','small','pageType','8rZFxFw','_updateCollabCursors','static','_uiPartsService','find','getSkeleton','delete','result','72LFfxxr','syncEditingCollabCursor','_context','_httpService','runOnServer','cacheCleared','_drawAnchor','FETCH_MISS','_localeService','_imageIoService','stringify','div','univer-text-gray-400','location','_startDocCollabCursor','_showText','asObservable','9307566MGrNiV','_anchor','highlightSecond','OPERATION','span','getValue','6580827CuSKbJ','focusedId','_dispose$','startOffset','assignAColorForMemberID','content','bottom','_cursors','currentSkeleton$','UNIVER_DOC','_startSheetCollabCursor','top','subscribeEvent','_handleJoinEvent','unload','next','setShapeProps','presenceKind','onRendered','_setupBeforeClosingHandler','_initUserListener','sheetId','show','saveImage','ONLINE','entries','join','_messageIds','_highlight','true','_editingConnectionsExceededNotices','_init','Warning','_saveTaskMap','_onCursorUpdate','_saveCache','split','eventID','enableDocumentCollaborationUI','_shapes','spin','redoState','min','collaboration-client-ui.permission.title','_initCommandExecutedListener','tableSource','1.4.0','_watchBlockProgress','UPDATE_CURSOR','GLOBAL','enableFrontendLog','sessionStatus$','_initPresenceStatusComponents','getCellIndexByOffset','getCurrentUnitOfType','_initConflictHandling','executeCommand','_onRefRangeChange','HEADER_MENU','isEditing','number','selections','_getSessionTicket','every','11oXHRWu','resume','pageIndex','460795UzAntS','SYNCED','symbol','_disabled','post','_scheduleSaving','disposeWithMe','endRow','onPointerMove$','addObjects','_isBlinkVisible','_blinkTimer','_refreshCollabCursors','registerCommand','tooltipKey','setActiveRange','_renderManagerService','disposeUnit','DeleteRangeMoveUpCommandId','range','dispose','_getAnchorBounding','ticket','getUndoRedoMutationParamsCache','_conflictNotification','rgba','labelHorizontalPosition','lineTo','_sheetSkeletonManagerService','_localStorageService','collaboration-client-ui.collabStatus.fetchMiss','saveOfflineData','stack','length','_docStateChangeManagerService','roomMembers','_configService','toISOString','_isDisposed','origin','_removeAwaitingNotices','getFocusedUnit','addObject','measureText','getCollabEntity$','_retryingConflictCacheUnitIDs','getCurrentTypeOfUnit$','_docTransformStateCacheService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getMemberID','startRow','arc','_activeSaveTaskMap','memberID','_roomMembers$','params','_onConflict','unitType','_selfUnitIDs','selectedIds','offline','invokeId','color','_cursor','init','includes','_sendLocalPresence','_beforeCloseService','m1Prime','lineno','_docSkeleton','getStateCache','socket$','transformMutationsWithChangeset','onMouseMove','getUnitId','moveTo','userId','startsWith','search','string','event$','CONFLICT_CACHE_CLEAR_FAILED','_hovered','send','_scheduleHeartbeat','warning','now','runId','_bindAdapter','focused$','searchParams','_docSelectionManagerService','refreshLabel','_retryConflictCacheClear','_toggleOnline','univer-text-blue-500','_eventUnsubscribe','[Unhandled\x20Rejection]:\x20','onStarting','_transformPreviousActiveRange','setInterval','_adapterDisposables','CONFLICT_PROCESSING','unit','dispose$','FOOTER','/universer-api/frontend/logs','unhandledrejection','NO_OTHER_CLIENTS_EDITING','getRangePointData','newValue','AWAITING_WITH_PENDING','state$','univer-flex\x20univer-items-center\x20univer-justify-center','unitId','_notificationService','exhaustSavingTask','_id','collaboration-client-ui.snapshotLoading.refresh','addHandlerCallback','UNIVER_SHEET','reload','pipe','allSettled','_anchorDot','univer-m-0\x20univer-p-0','getActiveRange','timeoutId','_docTransformSelectionsService','call','_registerPresenceStatusComponent','iterator','drawWith','visible','_cursorShapes','m2Prime','_reloadPage','closePath','update','collaboration-client-ui.conflict.content','options','_pendingEntities','_getScale','collaboration-client-ui.session.collaboration-timeout','unshift','_handleCursorUpdate','freeze','status','indicator','getMember','registerRefRange','pluginName','transformIMECache','_saveTimedOutNotices','get','_instanceService','_scheduleClearOtherTimer','cursorInfo$','_offsetY','_clearBlockProgressWatch','AWAITING','button','getCurrentSelections','add','preventDefault','clear','editingUnit','[Window\x20Error]:\x20','error','online','_userManagerService','getItem','flatMap','_transformHistoryAndStateStack','setUndoRedoMutationParamsCache','some','sessionTicket','PENDING','getConfig','remove','activate','_presenceStatusRegistrations','_clearOtherTimers','loading','@univerjs-pro/collaboration-client-ui','_drawTextRange','_collabSessionService','_document','createSocket','makeDirty','data','univer-transition-all\x20univer-duration-200','RemoveRowCommandId','Response','replaceSelectionInfoWithoutRefresh','columnIndex','_disposed','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','_online$','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_collabCursorController','collaboration-client-ui.collabStatus.offline','endColumn','backgroundColor','_snapshotLoadingService','_render','univer-text-red-500','collaboration-client-ui.remoteRevert.content','onPointerLeave$','TEXT','_univerInstanceService','collaboration-client-ui.conflict.clearFailed','_range','from','_adapterRegistry','collaboration-client-ui.config','LICENSE_DOMAIN_REJECTED','_memberService','collaboration-client-ui.session.connection-failed','COMPLETE','#FFF','_timeoutState$','getViewport','_disposeEntitiesForType','onLine','getAllUnitsForType','_labelPosition','set','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_blinkIntervalTimer','subUnitId','mutations','_clearRemotePresences','enableLocalCache','_initUnhandledRejectionListener','_handleHover','canRenderSelection','getUnitStatus$','registerComponent','_pointerMoveDisposable','rgba(','transformMutation','memberId','_name','_listenToOnlineEvent','prepareTransformSelections','_backgroundColor','then','OTHER_CLIENTS_EDITING','purple.300','requireSession','save','collaboration-client-ui.permission.content','univer-h-8\x20univer-w-8\x20univer-rounded-lg','Error','defineProperty','type','text','CONFLICT','getMergeData','collaboration-client-ui.conflict.title','_collabCursorState$','_entityInit$','_transformService','constructor','_themeService','roomMembers$','_collaborationSessionService','_stopBlinking','_startBlinking','getTypeOfUnitDisposed$','_uploadLog','saveTaskMap','_getSaveTimeout','beginPath','cursorInfo','addEventListener','_getLighterColor','width','_createSocketURL','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','collaboration-client-ui.conflict.retry','getSheetBySheetId','_listenToOfflineEvent','3758076SlwTFO','entityInit$','setRemotePresence','MoveRangeCommandId','title','_startEntity','collaboration-client-ui.license.domain-rejected','selection','OFFLINE','_showAwaitingNotice','collaboration-client-ui.collaboration.closeRoom','_commandService','removeRemotePresence','_registerRenderDependencies','contains','loadedBlocks','getSheetId','fill','restore','collaboration-client-ui.collabStatus.conflict','forEach','_memberID','unitID','jiqing.500','column','packageName','_presenceAdapterRegistry','bind','_initStatusComponent','collaboration-client-ui.session.will-retry','_unitOnClients','_localCacheService','_draw','_disposeEntity','_collaborationUIEventService','rgb','enableDefaultConflictUI','_initEntityListener','unsubscribe','7802330wssmbE','_syncEditingCollabCursorService','_blockProgressWatches','_initStatusListener','transformStateCache','push','_handleHeartbeatEvent','stage','snapshot-loading-','href','459291TJVbQl','_config','finally','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','0.2)'];_0x1ab2=function(){return _0x3f1420;};return _0x1ab2();}var er=class extends _0xecbfc3{get[_0x58f188(0x212)](){const _0xfa8b90=_0x58f188;return this[_0xfa8b90(0x22f)][_0xfa8b90(0x124)]();}constructor(){const _0x34bf1b=_0x58f188;super(),J(this,_0x34bf1b(0x22f),new _0x1de63d(navigator[_0x34bf1b(0x249)])),J(this,_0x34bf1b(0x2fc),this['_online$'][_0x34bf1b(0x11e)]()),this[_0x34bf1b(0x284)](),this['_listenToOnlineEvent']();}[_0x58f188(0x17c)](){const _0x342962=_0x58f188;super[_0x342962(0x17c)](),this[_0x342962(0x22f)][_0x342962(0x2ff)]();}[_0x58f188(0x25d)](){const _0xd8d460=_0x58f188;this[_0xd8d460(0x16e)](_0x4d7f31(_0x59813c(window,_0xd8d460(0x212)),_0x59813c(document,_0xd8d460(0x166)),_0x59813c(window,'focus'),_0x59813c(document,'visibilitychange')['pipe'](_0x36133f(()=>document['visibilityState']===_0xd8d460(0x1ee)),_0x515f21(_0x4a1c31=>_0x4a1c31)))['pipe'](_0x515f21(()=>navigator[_0xd8d460(0x249)]))['subscribe'](()=>this[_0xd8d460(0x22f)]['next'](!0x0)));}['_listenToOfflineEvent'](){const _0xdd787e=_0x58f188;this[_0xdd787e(0x16e)](_0x4d7f31(_0x59813c(window,_0xdd787e(0x1a4)),_0x59813c(document,_0xdd787e(0x1fb)))['subscribe'](()=>this[_0xdd787e(0x22f)][_0xdd787e(0x134)](!0x1)));}};let $=class extends _0x475d76{constructor(_0x2b4af3=un,_0x384eec,_0x15c705,_0x53031c,_0x3591ad){const _0x56d9e2=_0x58f188;super(),this['_config']=_0x2b4af3,this[_0x56d9e2(0x178)]=_0x384eec,this[_0x56d9e2(0x32e)]=_0x15c705,this[_0x56d9e2(0x18c)]=_0x53031c,this[_0x56d9e2(0x290)]=_0x3591ad;let {..._0x3729fe}=_0xeef0e2({},un,this['_config']);this[_0x56d9e2(0x18c)][_0x56d9e2(0x324)](_0x56d9e2(0x240),_0x3729fe);}[_0x58f188(0x1cb)](){const _0x58b37c=_0x58f188;this['_registerDependencies'](),this[_0x58b37c(0x16e)](this[_0x58b37c(0x290)][_0x58b37c(0x175)](ln)),this[_0x58b37c(0x2d6)]();}[_0x58f188(0x137)](){const _0x58b0cd=_0x58f188;this[_0x58b0cd(0x292)]();}[_0x58f188(0x2be)](){const _0x584ba9=_0x58f188;var _0x57eaa1;let _0x4daf4a=[[pn],[_0x12f9c9,{'useClass':_0x41d850}],[_0x25089d,{'useClass':$n}],[_0x19e088,{'useClass':er}],[Z],[Bn],[Q],[In],[Qn]];this[_0x584ba9(0x2b7)]['enableDocumentCollaborationUI']!==!0x1&&_0x4daf4a['push']([Un],[Vn],[Hn],[gn],[Jn],[dn]),this[_0x584ba9(0x2b7)][_0x584ba9(0x157)]&&_0x4daf4a[_0x584ba9(0x2b1)]([Yn]),_0x22dc38(this[_0x584ba9(0x32e)],_0x1c365c(_0x4daf4a,(_0x57eaa1=this[_0x584ba9(0x2b7)])==null?void 0x0:_0x57eaa1['override']));}[_0x58f188(0x292)](){const _0x1cc894=_0x58f188;this[_0x1cc894(0x2b7)][_0x1cc894(0x14b)]!==!0x1&&this[_0x1cc894(0x16e)](this[_0x1cc894(0x178)][_0x1cc894(0x2de)](_0x5e9dee['UNIVER_DOC'],[En])),this[_0x1cc894(0x16e)](this['_renderManagerService'][_0x1cc894(0x2de)](_0x5e9dee[_0x1cc894(0x1e1)],[On]));}[_0x58f188(0x2d6)](){const _0x3cd3e9=_0x58f188;_0x4f9ebf(this[_0x3cd3e9(0x32e)],[[Q],[In],[Z],[Bn],[Qn]]),this[_0x3cd3e9(0x2b7)][_0x3cd3e9(0x14b)]!==!0x1&&_0x4f9ebf(this[_0x3cd3e9(0x32e)],[[Jn],[dn]]),this[_0x3cd3e9(0x2b7)][_0x3cd3e9(0x157)]&&_0x4f9ebf(this['_injector'],[[Yn]]);}};J($,_0x58f188(0x200),'UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),J($,_0x58f188(0x29e),sn),J($,_0x58f188(0xf0),cn),$=X([_0x1c0be4(_0xa13d56,_0x5db5a4,_0x541626,_0x3e6315,_0x45604d,_0x2239c4,_0x1a96fb),Y(0x1,_0x29dfc6),Y(0x2,_0x2991cf(_0x1ca7a1)),Y(0x3,_0x417f85),Y(0x4,_0x1b514f)],$);let tr=class extends _0x378c11{constructor(_0x73903c,_0x25a5b5,_0x4e5d26,_0x5f3a71,_0x4ced4b){const _0x149e8d=_0x58f188;super(_0x73903c,_0x25a5b5,_0x4e5d26,_0x5f3a71,_0x4ced4b),J(this,'_dispose$',new _0x58d881()),this[_0x149e8d(0x16e)](()=>{const _0x59747a=_0x149e8d;this[_0x59747a(0x127)][_0x59747a(0x134)](),this['_dispose$'][_0x59747a(0x2ff)]();});}async[_0x58f188(0x225)](_0x9bc0ba){let _0x1f8511=await this['_getSessionTicket'](),_0x4cfd74=this['_createSocketURL'](_0x9bc0ba,_0x1f8511);return this['_doCreateSocket'](_0x4cfd74);}[_0x58f188(0x280)](_0x3b91d7,_0x734e1){const _0xa931c4=_0x58f188;let _0x10e393=typeof window>'u'?new URL(_0x3b91d7):new URL(_0x3b91d7,window[_0xa931c4(0x11b)][_0xa931c4(0x18f)]);_0x10e393[_0xa931c4(0x1c3)][_0xa931c4(0x24c)](_0xa931c4(0x219),_0x734e1);let _0x5ad441=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xa931c4(0x11b)][_0xa931c4(0x1b7)]);return _0x5ad441[_0xa931c4(0x203)]('runId')&&_0x10e393[_0xa931c4(0x1c3)][_0xa931c4(0x24c)](_0xa931c4(0x1c0),_0x5ad441[_0xa931c4(0x203)]('runId')),_0x10e393[_0xa931c4(0x360)]();}async[_0x58f188(0x163)](){const _0x712af8=_0x58f188;var _0x33dea0;let _0x2c0727=this[_0x712af8(0x18c)][_0x712af8(0x21b)](_0x550596),_0x2191d5=(_0x2c0727==null?void 0x0:_0x2c0727[_0x712af8(0x2cd)])??_0x4141f7;return((_0x33dea0=(await _0x3ea189(this[_0x712af8(0x111)][_0x712af8(0xef)]('GET',_0x2191d5,{'headers':{'Content-Type':_0x712af8(0x340)}})[_0x712af8(0x1e3)](_0x515f21(_0x34b0a9=>_0x34b0a9[_0x712af8(0x269)]===_0x20236d[_0x712af8(0x22a)]),_0x37a570(0x4e20),_0x26bbcf(this[_0x712af8(0x127)]))))[_0x712af8(0x330)])==null?void 0x0:_0x33dea0[_0x712af8(0x17e)])??'';}};tr=X([Y(0x0,_0x2991cf(_0x1ca7a1)),Y(0x1,_0x2991cf(_0x48b701)),Y(0x2,_0x417f85),Y(0x3,_0x24a2da),Y(0x4,_0x30cc55)],tr);let nr=class extends _0xecbfc3{constructor(_0x228f20,_0x25661a,_0x39095f){const _0x87db=_0x58f188;super(),this['_instanceService']=_0x228f20,this[_0x87db(0x111)]=_0x25661a,this[_0x87db(0x18c)]=_0x39095f;}async[_0x58f188(0x112)](_0x3a1d1e,_0xcae7df,_0x17e245,..._0x134b3d){const _0x502af8=_0x58f188;let _0x2a001e=this[_0x502af8(0x204)]['getFocusedUnit']();if(!_0x2a001e)throw Error(_0x502af8(0x32f));let _0xcda3fc=(this[_0x502af8(0x18c)]['getConfig'](_0x4a118a)??_0x34d028)+'/'+_0x3a1d1e+'/run/'+_0xcae7df,_0x257694={'scriptId':_0x3a1d1e,'runId':new URL(window[_0x502af8(0x11b)][_0x502af8(0x2b5)])[_0x502af8(0x1c3)]['get'](_0x502af8(0x1c0))??'','function':_0xcae7df,'unitId':_0x2a001e[_0x502af8(0x1b3)](),'argsOfFunction':JSON['stringify'](_0x134b3d),'invokeId':_0x17e245[_0x502af8(0x1a5)]??'','executionId':_0x17e245['executionId']??''};try{let _0x53354b=await this['_httpService']['post'](_0xcda3fc,{'body':_0x257694});return _0x53354b[_0x502af8(0x330)]['error']&&_0x53354b[_0x502af8(0x330)][_0x502af8(0x211)]['code']!==_0x2426d1['OK']?'Failed':_0x53354b[_0x502af8(0x330)][_0x502af8(0x10d)];}catch{return _0x502af8(0x30a);}}};nr=X([Y(0x0,_0x566a4d),Y(0x1,_0x2991cf(_0x48b701)),Y(0x2,_0x417f85)],nr);const rr=0x7530,ir='ACTIVE_UNIT_EVENT_CHANNEL';var ar=class extends _0xecbfc3{constructor(){const _0x54a14b=_0x58f188;super(),J(this,'_id',_0x595a49()),J(this,_0x54a14b(0x1a2),new Set()),J(this,'_unitOnClients',new Map()),J(this,_0x54a14b(0x2da),null),J(this,_0x54a14b(0x21f),new Map()),J(this,_0x54a14b(0x32d),new Map()),this[_0x54a14b(0x144)]();}[_0x58f188(0x17c)](){const _0x1d1539=_0x58f188;super[_0x1d1539(0x17c)](),this[_0x1d1539(0x21f)][_0x1d1539(0x299)]((_0x38883f,_0x3d5cf3)=>this[_0x1d1539(0x361)](_0x3d5cf3)),this[_0x1d1539(0x2da)]&&window[_0x1d1539(0xfc)](this[_0x1d1539(0x2da)]);}[_0x58f188(0x256)](_0x93ff19){const _0x5cc3b5=_0x58f188;return this[_0x5cc3b5(0x34b)](_0x93ff19)['pipe'](_0x274b8b());}[_0x58f188(0x20f)](_0x391d2e){const _0x499034=_0x58f188;this[_0x499034(0x1a2)]['size']===0x0&&this[_0x499034(0x1bd)](),this[_0x499034(0x1a2)][_0x499034(0x20c)](_0x391d2e),this[_0x499034(0x32b)]({'type':0x0,'memberID':this[_0x499034(0x1de)],'unitIDs':[_0x391d2e],'isForwarded':!0x1});}[_0x58f188(0x179)](_0x31ac4f){const _0x26382a=_0x58f188;this[_0x26382a(0x1a2)][_0x26382a(0x10c)](_0x31ac4f),this[_0x26382a(0x1a2)][_0x26382a(0xee)]===0x0&&this['_heartbeatTimer']&&window[_0x26382a(0xfc)](this['_heartbeatTimer']);}[_0x58f188(0x144)](){const _0x1f74bf=_0x58f188;this[_0x1f74bf(0x16e)](_0x3584fe(_0x59813c(window,_0x1f74bf(0x2dd))[_0x1f74bf(0x2cc)](_0x4c2455=>{const _0xb758e2=_0x1f74bf;if(_0x4c2455[_0xb758e2(0x322)]!==ir||!_0x4c2455[_0xb758e2(0x1d7)])return;let _0x1d6d8e=JSON[_0xb758e2(0x308)](_0x4c2455[_0xb758e2(0x1d7)]);this[_0xb758e2(0x341)](_0x1d6d8e);}))),window['addEventListener'](_0x1f74bf(0x133),()=>this[_0x1f74bf(0x32b)]({'type':0x1,'memberID':this[_0x1f74bf(0x1de)],'unitIDs':Array[_0x1f74bf(0x23e)](this[_0x1f74bf(0x1a2)])}));}[_0x58f188(0x341)](_0x5c0e6f){const _0x5775d2=_0x58f188;switch(_0x5c0e6f['type']){case 0x0:this[_0x5775d2(0x132)](_0x5c0e6f);break;case 0x1:this['_handleLeaveEvent'](_0x5c0e6f);break;case 0x2:this['_handleHeartbeatEvent'](_0x5c0e6f);}}[_0x58f188(0x132)](_0x2931c7){const _0x1f77a1=_0x58f188;let {unitIDs:_0x524831,memberID:_0x3394f1,isForwarded:_0x5532f2}=_0x2931c7;_0x524831['forEach'](_0x5bc96c=>{const _0x32f833=_0x5eb5;if(!_0x5532f2&&this[_0x32f833(0x2a3)][_0x32f833(0xfe)](_0x5bc96c)&&this[_0x32f833(0x34b)](_0x5bc96c)[_0x32f833(0x134)](_0x364cab[_0x32f833(0x261)]),!this['_unitOnClients'][_0x32f833(0xfe)](_0x5bc96c)||!this['_unitOnClients'][_0x32f833(0x203)](_0x5bc96c)[_0x32f833(0xfe)](_0x3394f1)){let _0x3829e0=this['_unitOnClients'][_0x32f833(0x203)](_0x5bc96c)||new Set();_0x3829e0['add'](_0x3394f1),this[_0x32f833(0x2a3)]['set'](_0x5bc96c,_0x3829e0),this[_0x32f833(0x205)](_0x3394f1);}}),_0x5532f2||this[_0x1f77a1(0x32b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x1f77a1(0x1a2)]],'isForwarded':!0x0});}[_0x58f188(0x205)](_0x48dba6){const _0x2f4620=_0x58f188;this[_0x2f4620(0x361)](_0x48dba6);let _0x39ab40=window[_0x2f4620(0x35a)](()=>{const _0x64ab64=_0x2f4620;this[_0x64ab64(0x2a3)][_0x64ab64(0x299)](_0x20d1bc=>{const _0x30ec43=_0x64ab64;_0x20d1bc[_0x30ec43(0x10c)](_0x48dba6);});},rr*0x2);this[_0x2f4620(0x21f)]['set'](_0x48dba6,_0x39ab40);}[_0x58f188(0x361)](_0x5111df){const _0x5b26fc=_0x58f188;if(this[_0x5b26fc(0x21f)][_0x5b26fc(0xfe)](_0x5111df)){let _0x32c8f0=this['_clearOtherTimers']['get'](_0x5111df);_0x32c8f0&&window['clearTimeout'](_0x32c8f0),this[_0x5b26fc(0x21f)][_0x5b26fc(0x24c)](_0x5111df,null);}}[_0x58f188(0x329)](_0x4ce466){const _0x416001=_0x58f188;let {memberID:_0x58d7e9,unitIDs:_0xbf388e}=_0x4ce466;_0xbf388e[_0x416001(0x299)](_0x18e862=>{const _0x55bb1a=_0x416001;var _0x17238;let _0x199982=this[_0x55bb1a(0x2a3)][_0x55bb1a(0x203)](_0x18e862);_0x199982&&(_0x199982[_0x55bb1a(0x10c)](_0x58d7e9),(_0x17238=this[_0x55bb1a(0x34b)](_0x18e862))==null||_0x17238[_0x55bb1a(0x134)](_0x199982[_0x55bb1a(0xee)]===0x0?_0x364cab['NO_OTHER_CLIENTS_EDITING']:_0x364cab[_0x55bb1a(0x261)]));}),this[_0x416001(0x361)](_0x58d7e9);}[_0x58f188(0x2b2)](_0x523404){const _0x93ae17=_0x58f188;this['_scheduleClearOtherTimer'](_0x523404[_0x93ae17(0x19d)]);}[_0x58f188(0x32b)](_0x222af6){const _0x11a2de=_0x58f188;localStorage[_0x11a2de(0x2f9)](ir,JSON[_0x11a2de(0x118)](_0x222af6));}['_scheduleHeartbeat'](){const _0x342a98=_0x58f188;this['_heartbeatTimer']=window[_0x342a98(0x1cd)](()=>{const _0xf5244a=_0x342a98;this[_0xf5244a(0x32b)]({'type':0x2,'memberID':this['_id']});},rr);}[_0x58f188(0x34b)](_0x29ed29){const _0x43b039=_0x58f188;return this['_unitStatus'][_0x43b039(0xfe)](_0x29ed29)||this[_0x43b039(0x32d)][_0x43b039(0x24c)](_0x29ed29,new _0x1de63d(_0x364cab[_0x43b039(0x1d5)])),this[_0x43b039(0x32d)][_0x43b039(0x203)](_0x29ed29);}};export{tr as BrowserCollaborationSocketService,Z as DesktopCollaborationStatusDisplayController,nr as RemoteUniscriptService,Dn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ar as WebBrowserSingleActiveUnitService};
1
+ const _0x7ea594=_0x1c2b;(function(_0x20af86,_0x623484){const _0x26b7fc=_0x1c2b,_0x2257c7=_0x20af86();while(!![]){try{const _0x52d67f=parseInt(_0x26b7fc(0x162))/0x1+-parseInt(_0x26b7fc(0x356))/0x2*(-parseInt(_0x26b7fc(0xdb))/0x3)+parseInt(_0x26b7fc(0x23f))/0x4+-parseInt(_0x26b7fc(0x17f))/0x5+parseInt(_0x26b7fc(0x16a))/0x6+parseInt(_0x26b7fc(0x160))/0x7+-parseInt(_0x26b7fc(0x1b3))/0x8;if(_0x52d67f===_0x623484)break;else _0x2257c7['push'](_0x2257c7['shift']());}catch(_0x1d0e02){_0x2257c7['push'](_0x2257c7['shift']());}}}(_0x5834,0x48880));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x14ffae,CollaborationController as _0x2279ca,CollaborationSessionService as _0x25de4e,CollaborationSocketService as _0x325a9e,CollaborationStatus as _0x65ab9a,CollaborationUIEventId as _0x1d65e1,CollaborationUIEventService as _0x603f72,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x39f491,DEFAULT_WS_SESSION_TICKET_URL as _0x4c01fe,DocCollaborationEntity as _0x1f1988,ILocalCacheService as _0x471d6f,INetworkConditionService as _0x2ae2cd,LOCAL_CACHE_INTERVAL as _0x4cb928,LOCAL_CACHE_INTERVAL_KEY as _0x78a9c6,MemberService as _0x268c3a,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5ccd97,SessionStatus as _0xa8ada1,UnitStatus as _0x24c6b1,UniverCollaborationClientPlugin as _0x512565,getLocalCacheKey as _0x156238}from'@univerjs-pro/collaboration-client';import{COLORS as _0x48f4c1,ColorKit as _0x4d3a61,CommandType as _0x4d64aa,DOC_RANGE_TYPE as _0x1b3059,DependentOn as _0x1bc7be,Disposable as _0x2c43e7,DisposableCollection as _0x200b02,ICommandService as _0x15fe51,IConfigService as _0x16ce58,IImageIoService as _0x4c0ca6,ILocalStorageService as _0x16f020,ILogService as _0x1984c9,IUniverInstanceService as _0x28a580,Inject as _0x5c888d,Injector as _0x451f97,LocaleService as _0x292d2f,Plugin as _0x36cdce,Rectangle as _0xdb208c,RxDisposable as _0x28ff85,ThemeService as _0x16edca,Tools as _0x40f052,UniverInstanceType as _0x51081c,UserManagerService as _0x3c2aea,debounce as _0xf32b8d,fromEventSubject as _0x370585,generateRandomId as _0x415285,isInternalEditorID as _0x489a17,merge as _0x54b9e6,mergeOverrideWithDependencies as _0x9b1a78,registerDependencies as _0x1d9129,toDisposable as _0x42bb3c,touchDependencies as _0x58d44e}from'@univerjs/core';import{BuiltInUIPart as _0x44eea7,IBeforeCloseService as _0x3eb2d8,IMessageService as _0x4953bc,INotificationService as _0x5b6302,IUIPartsService as _0x8a5b3a,IUnitPresenceUIAdapterRegistry as _0x14c253,connectInjector as _0x1ca99d,useDependency as _0xd60b37,useObservable as _0x6ada4b}from'@univerjs/ui';import{BehaviorSubject as _0x5a8e6e,Subject as _0x83a48d,combineLatest as _0x41dcbc,debounceTime as _0x40cc80,distinctUntilChanged as _0x3b143a,filter as _0x399a72,firstValueFrom as _0x4b2eab,fromEvent as _0x53faeb,map as _0x31e6a5,merge as _0x28759e,of as _0x13f646,switchMap as _0x4957ed,takeUntil as _0x2a3afc,throttle as _0x3dbcf7,timeout as _0x10c310,timer as _0x46c7e6}from'rxjs';import{distinctUntilChanged as _0xf1eb50,filter as _0x39dc50,map as _0x3cbcba,switchMap as _0x1da258,takeUntil as _0x4eff35,throttleTime as _0x51921d}from'rxjs/operators';import{Button as _0x301aac,MessageType as _0x3a5015,Tooltip as _0x1abd88,clsx as _0x6fa4d7}from'@univerjs/design';import{LoadingMultiIcon as _0x4dbfe2,OffLineIcon as _0x614430,OnLineIcon as _0x5a86c7,WarningIcon as _0x240f13}from'@univerjs/icons';import{createElement as _0x2317a2,useCallback as _0x328693,useMemo as _0x4813a0}from'react';import{jsx as _0x57ef67,jsxs as _0x3c0327}from'react/jsx-runtime';import{CollaborationEvent as _0x865df6,ISnapshotServerService as _0x165792,ITransformService as _0x31acf5,RevisionService as _0x19bbc1,SnapshotLoadStage as _0x2f9ccc,SnapshotLoadingService as _0x18f5c1,UniverCollaborationPlugin as _0x24cbc8,isTransformMutationFailure as _0x13597e,isTransformMutationsWithChangesetSuccess as _0x1db856}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x333558}from'@univerjs-pro/license';function _0x5834(){const _0x2c9c80=['replace','/universer-api/frontend/logs','flatMap','top','collaboration-client-ui.config','getCurrentTypeOfUnit$','_httpService','icon','collaboration-client-ui.remoteRevert.title','replaceSelectionInfoWithoutRefresh','transformStateCache','clearTimeout','_syncAdapters','labelHorizontalPosition','subUnitId','_session','@univerjs-pro/collaboration-client-ui','onCommandExecuted','reload','_collabSessionService','collaboration-client-ui.conflict.retry','getRangePointData','clearInterval','_lastPointer','exhaustSavingTask','max','ACTIVE_UNIT_EVENT_CHANNEL','_handleCursorUpdate','m2Prime','finally','_normalizeUserId','rgba','imageSourceType','searchParams','removeEventListener','registerCommand','getCurrentUnitOfType','_initStatusComponent','setTimeout','_getSaveTimeout','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getUndoRedoMutationParamsCache','_uploadLog','_initWindowErrorListener','subscribeEvent','_conflictNotification','_localCacheService','forEach','_initUserListener','preventDefault','_onConflict','min','has','width','_render','_unitStatus','small','getTypeOfUnitDisposed$','_uiPartsService','collabCursorState$','unitType','unitId','selections','save','toRgbString','beginPath','decorate','stack','getCollabEntities','name','object','getMember','_retryConflictCacheClear','push','_docTransformStateCacheService','_blockProgressWatches','collaboration-client-ui.collabStatus.conflict','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','colno','Error','stream','_cursorShapes','search','transformMutation','application/json','pageType','true','setConfig','number','collaboration-client-ui.collabStatus.fetchMiss','_refreshCollabCursors','1.5.0','_assignedColors','getCellIndexByOffset','deepClone','_heartbeatTimer','dispose','invokeId','\x20-\x20','collaboration-client-ui.remoteRevert.content','_onCursorUpdate','cursorInfo$','symbol','some','MoveRangeCommandId','onTransformChange$','columnGroupId','kind','freeze','setRemotePresence','endOffset','OTHER_CLIENT_EDITING','JOIN_ROOM_FAILED','getCurrentSkeleton','tableId','wsSessionTicketUrl','_scheduleClearOtherTimer','cacheCleared','_docStateChangeManagerService','_drawAnchor','FromArray','executionId','getRenderUnitById','_startEntity','bold\x2013px\x20Arial,\x20sans-serif','[Unhandled\x20Rejection]:\x20','override','isFinite','canRenderAnchor','isArray','univer-transition-all\x20univer-duration-200','i18nKey','getAllUnitsForType','updateOfflineData','_initUnhandledRejectionListener','collaboration-client-ui.collaboration.single-unit.warning','Unknown\x20user','onRendered','_syncEditingCollabCursorService','ERROR','OTHER_CLIENTS_EDITING','univer-appearance-none','registerComponent','_disabled','_labelHorizontalPosition','_beforeCloseService','_roomMembers$','yellow.400','_unitOnClients','timeoutState$','_removeCollabCursors','join','_doCreateSocket','runId','focused$','getMergeData','span','canRenderSelection','_dispose$','_scheduleHeartbeat','filter','_pointerMoveDisposable','selection','unload','getColorFromTheme','offsetY','_univerInstanceService','indicator','[Window\x20Error]:\x20','_getSessionTicket','labelPosition','_entities','transformMutationsWithChangeset','_startDocCollabCursor','univer-text-blue-500','_retryingConflictCacheUnitIDs','storage','_colorIndex','_showConflictProcessingNotification','_memberService','version','_ensureSubject','remove','requireSession','memberId','stringify','update','univer-m-0\x20univer-p-0','_memberID','button','type','makeDirty','_handleHeartbeatEvent','state','includes','_drawTextRange','...','2wcCGAY','value','fill','GET','memberID','then','_createSocketURL','all','_timeoutState$','1750503YfhOrQ','send','activate','_notificationService','_transformService','getActiveSheet','key','AWAITING_WITH_PENDING','univer-text-gray-400','asObservable','row','_clearTimeoutState','setAlpha','online','collaboration-client-ui.collabClient.tooltip.reconnect','\x20at\x20','_initialized','_logService','backgroundColor','fillRule','_name','_showConflictCacheClearFailedNotification','Enter','localPresence$','slice','getItem','getTypeOfUnitAdded$','_backgroundColor','collaboration-client-ui.conflict.title','disposeWithMe','_disposeEntitiesForType','_anchorDot','_removeRemotePresence','string','_docTransformSelectionsService','clearRemotePresences','_registerPresenceStatusComponent','TEXT','syncEditingCollabCursor','_collaborationUIEventService','div','_saveCache','userID','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','assignAColorForMemberID','message','mutations','createInstance','data','cursorInfo','fillText','options','license_editing_connections_exceeded','origin','_registerRenderDependencies','toString','_configService','_drawRectRange','_handleHover','getFocusedUnit','contains','location','_status$','enableOfflineEditing','getAncestorScale','_initEntityListener','endRow','_highlight','collab-text-range-','_initEvent','length','UNIVER_SHEET','getViewport','snapshot-loading-timeout','_getAnchorBounding','RemoveColCommandId','_reloadPage','addHandlerCallback','_instanceService','startColumn','_themeService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getCollabCursors$','reason','triggerDblclick','backupOfflineData','params','_cursorInfo$','_localeService','0.2)','primary','next','stage','_refRangeService','highlight','getValue','getMemberID','univer-flex\x20univer-items-center\x20univer-justify-center','_bindAdapter','post','PENDING','_injector','snapshot-loading-','startsWith','collaboration-client-ui.permission.title','_transformUndoRedoStack','_collabCursorController','pluginName','_getScale','#FFF','_cachedData','collaboration-client-ui.conflict.clearFailed','isActive','_draw','unit','redoState','_hovered','_initDependencies','getSheetBySheetId','timedOut','_stopBlinking','_scheduleSaving','_userManagerService','_anchor','_cursors','getDocRanges','_presenceAdapterRegistry','_initPresenceStatusComponents','userId','_collaborationSessionService','_isDisposed','_config','_transformPreviousActiveRange','3787490xYuuOe','get','571462zIWgxO','values','set',',\x200.2)','_getMergeRange','Failed','transformRemoteChangeset','_disposed','244428Pcnbda','_transformHistoryAndStateStack','_scene','_selfUnitIDs','code','removeItem','constructor','map','Response','_docSkeletonManagerService','unshift','executeCommand','RECT','_messageService','_eventUnsubscribe','spin','reconnect','iterator','result','onLine','univer-text-orange-500','1604985UvttTQ','_adapter','function','delete','_editingConnectionsExceededNotices','startRow','statusUIPart','_getSheetObject','setInterval','parse','_blinkIntervalTimer','_hideTimer','strokeWidth','collaboration-client-ui.permission.content','getCurrentRevOfUnit','size','status','dispose$','_init','_docTransformIMECacheService','catch','_cursor','unitID','_removeClearOtherTimer','colorClass','loading','_saveTimedOutNotices','_hover','visible','_isBlinkVisible','error','_labelPosition','DeleteRangeMoveUpCommandId','_collabCursorState$','collaboration-client-ui.snapshotLoading.timeout','removeRemotePresence','sheetId','setShapeProps','ranges','_sendLocalPresence','sheetID','_removeAwaitingNotices','saveTaskMap','univer-text-red-500','_startBlinking','_localStorageService','roomMembers','default','text','onPointerEnter$','_getUserId','LICENSE_DOMAIN_REJECTED','12067952zqmkHs','InsertColCommandId','pulse','segmentPage','_onRefRangeChange','_getLighterColor','getOffsetConfig','undoState','color','unsubscribe','find','Loading','getActiveRange','SOCKET_FAILED_RETRY','_commandService','restore','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_shapes','_onCursorDelete','_updateCollabCursors','COMPLETE','red.300','onStarting','ticket','collaboration-client-ui.collabStatus.offline','onPointerMove$','_blinkTimer','add','textRanges','_initResize','_id','addEventListener','onPointerLeave$','event$','pipe','content','registerRenderModule','toISOString','_offsetY','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_watchBlockProgress','refreshLabel','collaboration-client-ui.operation.update-remote-unit-presence','subscribe','_adapterRegistry','highlightSecond','addObject','endColumn','loadedBlocks','lineno','enableLocalCache','getSkeleton','_imageIoService','runOnServer','sessionStatus$','right','from','_disposeEntity','setItem','init','closePath','show','getCurrentSelections','static','entityInit$','setOffsetY','roomMembers$','_saveTaskMap','setStateCache','filename','collaboration-client-ui.session.collaboration-timeout','_renderManagerService','_clearRemotePresences','collaboration-client-ui.collaboration.closeRoom','allSettled','_collaborationController','_showAwaitingNotice','_handleEvent','title','_initConflictHandling','CONFLICT_PROCESSING','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collaboration-client-ui.license.title','getUnit','UPDATE_CURSOR','DeleteRangeMoveLeftCommandId','clickable','AWAITING','_listenToOnlineEvent','_colorAssignService','_docClipboardService','transformIMECache','_initStatusListener','getLocalPresence','getSelectionInfo','sessionTicket','socket$','lineTo','_docSyncEditingCollabCursorService','_context','toPrimitive','_revisionService','_initCommandExecutedListener','getSheetId','pageIndex','focusedId','collaboration-client-ui.session.will-retry','_adapterDisposables','hovered','polite','clear','_range','bottom','createSocket','body','getScrollXYInfoByViewport','collaboration-client-ui.conflict.processing','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_clearBlockProgressWatch','black','onMouseMove','_snapshotLoadingService','_online','_docSelectionManagerService','getStateCache','unhandledrejection','warning','totalBlocks','isEditing','purple.300','_presenceStatusRegistrations','_replaceConflictNotification','_sheetSkeletonManagerService','_toggleOnline','_toggleOffline','selectedIds','enableDocumentCollaborationUI','_messageIds','column','_highlightSecond','1559232YlHjBr','_syncPresenceStatusComponents','collaboration-client-ui.license.domain-rejected','_monkeyPatchLogService','call','enableFrontendLog','findNodePositionByCharIndex','resize','saveImage','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','Warning','adapters$',':backup:','packageName','arc','USERS_LEAVE','eventID','_updateLocalCursor','UNIVER_DOC','_setupBeforeClosingHandler','blue.400','currentTheme$','_online$','moveTo','measureText','resolve','newValue','getConfig','collaboration-client-ui.snapshotLoading.refresh','height','_listenToOfflineEvent','pointer','showText','evenodd','[LogService\x20Error]:\x20','_activeSaveTaskMap','with','CLOSE_ROOM','green.600','defineProperty','_pendingEntities','collaboration-client-ui.session.connection-failed','addClipboardHook','hide','_clearOtherTimers','_color','registerRefRange','timeoutId','columnIndex','getUnitId','status$','doc.mutation.rich-text-editing','tooltipKey','rgba(','_handleJoinEvent','split','univer-border-none\x20univer-bg-transparent','complete','_entityInit$','range','_initAwaitingNotices','m1Prime','focus','_textBubble','_trackActiveSaveTask','OFFLINE','resume','setUndoRedoMutationParamsCache','InsertRangeMoveRightCommandId','prepareTransformSelections','collab-text-anchor-','drawWith','ONLINE','/run/','NOT_COLLAB','_registerDependencies','rgb','dark:focus:!univer-ring-offset-gray-800','bind','saveOfflineData','parseInt','_send'];_0x5834=function(){return _0x2c9c80;};return _0x5834();}import{DocSelectionManagerService as _0x291a40,DocSkeletonManagerService as _0x12f6b5,DocStateChangeManagerService as _0x2f70c8,RichTextEditingMutation as _0x4db170,SetTextSelectionsOperation as _0x3e3d2c,UniverDocsPlugin as _0x52e451}from'@univerjs/docs';import{DocIMEInputManagerService as _0x4434b8,IDocClipboardService as _0x37f83b,NodePositionConvertToCursor as _0x3213e1,NodePositionConvertToRectRange as _0x3655aa,SetDocZoomRatioOperation as _0x43d3b6,TEXT_RANGE_LAYER_INDEX as _0x22778c,UniverDocsUIPlugin as _0x1d9f35}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x304f0a,IRenderManagerService as _0x23794e,Rect as _0x3a3ee5,RegularPolygon as _0x1a0717,SHEET_VIEWPORT_KEY as _0x1822ce,Shape as _0x41d5b2,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2dc7e5,UniverRenderEnginePlugin as _0x4540ab,Vector2 as _0x9573fe,getColor as _0x1e82d5,getDocumentSkeletonColumnPagePathInfo as _0x1b7c2a}from'@univerjs/engine-render';import{HTTPEventType as _0x42c157,HTTPService as _0x36cdaa,ISocketService as _0x1ae3e2,UniverNetworkPlugin as _0x176c33,WebSocketService as _0x29894e}from'@univerjs/network';import{deserializeRangeWithSheet as _0x3b9903,serializeRangeWithSheet as _0x2b799d}from'@univerjs/engine-formula';import{EffectRefRangId as _0x5d5430,RefRangeService as _0x3e2e64,SetSelectionsOperation as _0x5a7a11,SheetsSelectionsService as _0x3c2429,handleDeleteRangeMoveLeft as _0x33b6d7,handleDeleteRangeMoveUp as _0x1d6acb,handleIRemoveCol as _0x5e4f50,handleIRemoveRow as _0x12e3bf,handleInsertCol as _0x57c4d6,handleInsertRangeMoveDown as _0xd032ba,handleInsertRangeMoveRight as _0x2eb875,handleInsertRow as _0x29910d,handleMoveRange as _0x294967,runRefRangeMutations as _0x1ff6e1}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x2e722a,getCoordByCell as _0x17a4e6,getSheetObject as _0x27e85c}from'@univerjs/sheets-ui';import{ErrorCode as _0x34e0a6}from'@univerjs/protocol';function en(_0x2c3fec){const _0x265614=_0x1c2b;switch(_0x2c3fec){case _0x65ab9a[_0x265614(0x280)]:return{'icon':_0x57ef67(_0x614430,{}),'colorClass':_0x265614(0x1aa),'i18nKey':_0x265614(0x1cb),'tooltipKey':_0x265614(0xe9),'clickable':!0x0,'indicator':_0x265614(0x1f2)};case _0x65ab9a['CONFLICT']:return{'icon':_0x57ef67(_0x614430,{}),'colorClass':_0x265614(0x17e),'i18nKey':_0x265614(0x2dd),'clickable':!0x1,'indicator':'static'};case _0x65ab9a['FETCH_MISS']:return{'icon':_0x57ef67(_0x4dbfe2,{}),'colorClass':_0x265614(0x33f),'i18nKey':_0x265614(0x2ea),'clickable':!0x1,'indicator':'spin'};case _0x65ab9a[_0x265614(0x289)]:return{'icon':_0x57ef67(_0x5a86c7,{}),'colorClass':_0x265614(0xe3),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x265614(0x1f2)};case _0x65ab9a[_0x265614(0x20a)]:case _0x65ab9a['AWAITING_WITH_PENDING']:return{'icon':_0x57ef67(_0x4dbfe2,{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x265614(0x179)};case _0x65ab9a[_0x265614(0x13f)]:return{'icon':_0x57ef67(_0x4dbfe2,{}),'colorClass':_0x265614(0x33f),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x265614(0x179)};case _0x65ab9a['SYNCED']:return{'icon':_0x57ef67(_0x5a86c7,{}),'colorClass':'univer-text-green-500','i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x265614(0x1f2)};}}function tn(_0x36102d){const _0x3037bd=_0x1c2b;let {status$:_0x232395}=_0x36102d,_0x847496=_0x6ada4b(_0x232395,_0x65ab9a['NOT_COLLAB']),_0x5a34d3=_0xd60b37(_0x292d2f),_0x3d5beb=_0xd60b37(_0x25de4e),_0x35a3ee=_0x4813a0(()=>en(_0x847496),[_0x847496]),_0x332f82=_0x847496!==_0x65ab9a[_0x3037bd(0x280)],_0x4aa4d2=_0x5a34d3['t'](_0x35a3ee[_0x3037bd(0x314)]),_0x3a5b97=_0x35a3ee[_0x3037bd(0x273)]?_0x5a34d3['t'](_0x35a3ee[_0x3037bd(0x273)]):_0x4aa4d2,_0x529755=_0x328693(()=>{const _0x5c0a60=_0x3037bd;_0x332f82||_0x3d5beb[_0x5c0a60(0x17a)]();},[_0x332f82,_0x3d5beb]),_0x24913a=_0x328693(_0x460ceb=>{const _0x5a5b78=_0x3037bd;_0x332f82||_0x460ceb[_0x5a5b78(0xe1)]!==_0x5a5b78(0xf1)&&_0x460ceb[_0x5a5b78(0xe1)]!=='\x20'||(_0x460ceb[_0x5a5b78(0x2c2)](),_0x3d5beb['reconnect']());},[_0x332f82,_0x3d5beb]),_0x4f911a=_0x57ef67(_0x3037bd(0x32d),{'className':_0x6fa4d7(_0x3037bd(0x13c),_0x3037bd(0x228),_0x35a3ee[_0x3037bd(0x197)],{'univer-animate-spin':_0x35a3ee[_0x3037bd(0x338)]===_0x3037bd(0x179),'univer-animate-pulse':_0x35a3ee[_0x3037bd(0x338)]===_0x3037bd(0x1b5)}),'aria-hidden':_0x3037bd(0x2e7),'children':_0x35a3ee[_0x3037bd(0x298)]}),_0x5e6953=_0x57ef67(_0x3037bd(0x32d),{'className':_0x6fa4d7(_0x3037bd(0x13c),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x3037bd(0x313),_0x3037bd(0x1da),_0x3037bd(0x28c),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x35a3ee[_0x3037bd(0x209)],'univer-cursor-default':!_0x35a3ee[_0x3037bd(0x209)]}),'children':_0x4f911a});return _0x35a3ee[_0x3037bd(0x209)]?_0x57ef67(_0x1abd88,{'title':_0x3a5b97,'placement':_0x3037bd(0x223),'children':_0x57ef67(_0x3037bd(0x34e),{'type':'button','onClick':_0x529755,'onKeyDown':_0x24913a,'className':_0x6fa4d7(_0x3037bd(0x1c3),'univer-border-none\x20univer-bg-transparent',_0x3037bd(0x34c),_0x3037bd(0x31e)),'aria-label':_0x4aa4d2+_0x3037bd(0x2f3)+_0x3a5b97,'role':_0x3037bd(0x18f),'aria-live':_0x3037bd(0x220),'aria-atomic':_0x3037bd(0x2e7),'children':_0x5e6953})}):_0x57ef67(_0x1abd88,{'title':_0x3a5b97,'placement':'bottom','children':_0x57ef67('div',{'className':_0x6fa4d7(_0x3037bd(0x1c3),_0x3037bd(0x277),_0x3037bd(0x34c)),'aria-label':_0x4aa4d2,'role':'status','aria-live':_0x3037bd(0x220),'aria-atomic':_0x3037bd(0x2e7),'children':_0x5e6953})});}function q(_0x12652a){'@babel/helpers - typeof';const _0x14576c=_0x1c2b;return q=typeof Symbol==_0x14576c(0x181)&&typeof Symbol[_0x14576c(0x17b)]==_0x14576c(0x2f7)?function(_0x268ab1){return typeof _0x268ab1;}:function(_0x503e00){const _0x3fecfb=_0x14576c;return _0x503e00&&typeof Symbol=='function'&&_0x503e00[_0x3fecfb(0x170)]===Symbol&&_0x503e00!==Symbol['prototype']?'symbol':typeof _0x503e00;},q(_0x12652a);}function nn(_0x514bdb,_0x51b419){const _0x44f928=_0x1c2b;if(q(_0x514bdb)!=_0x44f928(0x2d7)||!_0x514bdb)return _0x514bdb;var _0x5a647b;if(typeof Symbol<'u'&&(_0x5a647b=_0x514bdb[Symbol[_0x44f928(0x217)]])!==void 0x0){var _0x30a2f5=_0x5a647b[_0x44f928(0x243)](_0x514bdb,_0x51b419||_0x44f928(0x1ae));if(q(_0x30a2f5)!='object')return _0x30a2f5;throw TypeError(_0x44f928(0x2b9));}return(_0x51b419===_0x44f928(0xfc)?String:Number)(_0x514bdb);}function rn(_0x23c99b){const _0xe3bd70=_0x1c2b;var _0x1ba195=nn(_0x23c99b,_0xe3bd70(0xfc));return q(_0x1ba195)==_0xe3bd70(0x2f7)?_0x1ba195:_0x1ba195+'';}function J(_0x700b3f,_0x23694f,_0x9cf47f){const _0x3dbc06=_0x1c2b;return(_0x23694f=rn(_0x23694f))in _0x700b3f?Object[_0x3dbc06(0x266)](_0x700b3f,_0x23694f,{'value':_0x9cf47f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x700b3f[_0x23694f]=_0x9cf47f,_0x700b3f;}function Y(_0x24324c,_0x1e6733){return function(_0x391541,_0x1bf390){_0x1e6733(_0x391541,_0x1bf390,_0x24324c);};}function X(_0x52a1c8,_0x50a7ce,_0x5370b7,_0x13b527){const _0x584d9f=_0x1c2b;var _0x14399b=arguments[_0x584d9f(0x121)],_0x51305b=_0x14399b<0x3?_0x50a7ce:_0x13b527===null?_0x13b527=Object['getOwnPropertyDescriptor'](_0x50a7ce,_0x5370b7):_0x13b527,_0x289e16;if(typeof Reflect==_0x584d9f(0x2d7)&&typeof Reflect[_0x584d9f(0x2d3)]==_0x584d9f(0x181))_0x51305b=Reflect['decorate'](_0x52a1c8,_0x50a7ce,_0x5370b7,_0x13b527);else{for(var _0xd9bdb1=_0x52a1c8[_0x584d9f(0x121)]-0x1;_0xd9bdb1>=0x0;_0xd9bdb1--)(_0x289e16=_0x52a1c8[_0xd9bdb1])&&(_0x51305b=(_0x14399b<0x3?_0x289e16(_0x51305b):_0x14399b>0x3?_0x289e16(_0x50a7ce,_0x5370b7,_0x51305b):_0x289e16(_0x50a7ce,_0x5370b7))||_0x51305b);}return _0x14399b>0x3&&_0x51305b&&Object[_0x584d9f(0x266)](_0x50a7ce,_0x5370b7,_0x51305b),_0x51305b;}let Z=class extends _0x2c43e7{constructor(_0x5d92b5,_0x3754b3,_0x36538f,_0x11d1dc,_0x3c7257){const _0x3ba493=_0x1c2b;super(),this[_0x3ba493(0x337)]=_0x5d92b5,this['_injector']=_0x3754b3,this[_0x3ba493(0x1fe)]=_0x36538f,this[_0x3ba493(0x2cb)]=_0x11d1dc,this['_presenceAdapterRegistry']=_0x3c7257,J(this,_0x3ba493(0x119),new _0x5a8e6e(_0x65ab9a[_0x3ba493(0x289)])),J(this,_0x3ba493(0x235),new Map()),this[_0x3ba493(0x2b6)](),this[_0x3ba493(0x20f)](),this[_0x3ba493(0x15a)]();}[_0x7ea594(0x2f1)](){const _0x23d7c9=_0x7ea594;this['_presenceStatusRegistrations']['forEach'](_0x42967f=>_0x42967f[_0x23d7c9(0x2f1)]()),this[_0x23d7c9(0x235)][_0x23d7c9(0x221)](),this[_0x23d7c9(0x119)][_0x23d7c9(0x278)](),super[_0x23d7c9(0x2f1)]();}[_0x7ea594(0x20f)](){const _0x1d1182=_0x7ea594;this[_0x1d1182(0xf8)](_0x28759e(this[_0x1d1182(0x337)][_0x1d1182(0x32b)],this[_0x1d1182(0x337)][_0x1d1182(0x296)](_0x51081c[_0x1d1182(0x251)]),this['_univerInstanceService'][_0x1d1182(0x296)](_0x51081c[_0x1d1182(0x122)]))['pipe'](_0x3cbcba(()=>an(this[_0x1d1182(0x337)])),_0xf1eb50(),_0x4957ed(_0x7df46a=>_0x7df46a?this[_0x1d1182(0x1fe)]['getCollabEntity$'](_0x7df46a):_0x13f646(null)),_0x4957ed(_0x3ae914=>_0x3ae914?_0x3ae914[_0x1d1182(0x271)]:_0x13f646(_0x65ab9a[_0x1d1182(0x289)])))[_0x1d1182(0x1de)](_0x3aa552=>{const _0x1920e8=_0x1d1182;this['_status$'][_0x1920e8(0x136)](_0x3aa552);}));}['_initStatusComponent'](){const _0x307aa0=_0x7ea594;this[_0x307aa0(0xf8)](this[_0x307aa0(0x2cb)]['registerComponent'](_0x44eea7['HEADER_MENU'],()=>_0x1ca99d(on({'status$':this[_0x307aa0(0x119)][_0x307aa0(0xe4)]()}),this['_injector'])));}[_0x7ea594(0x15a)](){const _0x359886=_0x7ea594;let _0x32d945=this[_0x359886(0x159)][_0x359886(0x24a)][_0x359886(0x1de)](_0x26ee19=>{const _0x189d1c=_0x359886;this[_0x189d1c(0x240)](_0x26ee19);});this[_0x359886(0xf8)](_0x42bb3c(()=>_0x32d945[_0x359886(0x1bc)]()));}[_0x7ea594(0x240)](_0x75179c){const _0x1959ee=_0x7ea594;let _0x3e0d45=new Map(_0x75179c[_0x1959ee(0x331)](_0x4beb3d=>_0x4beb3d[_0x1959ee(0x185)]!=null)['map'](_0x481647=>[_0x481647[_0x1959ee(0x2cd)],_0x481647]));this[_0x1959ee(0x235)][_0x1959ee(0x2c0)]((_0xb6d82d,_0x2bb700)=>{const _0x1ede26=_0x1959ee;_0x3e0d45[_0x1ede26(0x2c5)](_0x2bb700)||(_0xb6d82d[_0x1ede26(0x2f1)](),this[_0x1ede26(0x235)][_0x1ede26(0x182)](_0x2bb700));}),_0x3e0d45[_0x1959ee(0x2c0)]((_0x2df2f1,_0x47dcc3)=>{const _0x30a436=_0x1959ee;this[_0x30a436(0x235)][_0x30a436(0x2c5)](_0x47dcc3)||this[_0x30a436(0xff)](_0x2df2f1);});}[_0x7ea594(0xff)](_0x5f18c7){const _0x2feb11=_0x7ea594;let _0x56f82e=_0x5f18c7[_0x2feb11(0x185)];if(!_0x56f82e)return;let _0x340900=new _0x200b02(),_0xa0c1e6=new _0x5a8e6e(_0x65ab9a['NOT_COLLAB']);_0x340900['add'](_0x42bb3c(()=>_0xa0c1e6[_0x2feb11(0x278)]())),_0x340900['add'](this[_0x2feb11(0x2cb)][_0x2feb11(0x31f)](_0x56f82e,()=>_0x1ca99d(on({'status$':_0xa0c1e6[_0x2feb11(0xe4)]()}),this['_injector'])));let _0x573e4d=this[_0x2feb11(0x337)][_0x2feb11(0x296)](_0x5f18c7[_0x2feb11(0x2cd)])[_0x2feb11(0x1d5)](_0x3cbcba(_0x28f8f6=>(_0x28f8f6==null?void 0x0:_0x28f8f6['getUnitId']())??null),_0xf1eb50(),_0x4957ed(_0x25b37e=>_0x25b37e?this[_0x2feb11(0x1fe)]['getCollabEntity$'](_0x25b37e):_0x13f646(null)),_0x4957ed(_0x40bee6=>(_0x40bee6==null?void 0x0:_0x40bee6[_0x2feb11(0x271)])??_0x13f646(_0x65ab9a[_0x2feb11(0x289)])))[_0x2feb11(0x1de)](_0x3086d3=>_0xa0c1e6['next'](_0x3086d3));_0x340900['add'](_0x42bb3c(()=>_0x573e4d[_0x2feb11(0x1bc)]())),this[_0x2feb11(0x235)]['set'](_0x5f18c7[_0x2feb11(0x2cd)],_0x340900);}};Z=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x451f97)),Y(0x2,_0x5c888d(_0x2279ca)),Y(0x3,_0x8a5b3a),Y(0x4,_0x5c888d(_0x14c253))],Z);function an(_0x5b4e0a){const _0x1cc55d=_0x7ea594;let _0x5465d4=_0x5b4e0a[_0x1cc55d(0x116)](),_0x20b207=_0x5465d4==null?void 0x0:_0x5465d4[_0x1cc55d(0x270)]();if(_0x20b207&&!_0x489a17(_0x20b207))return _0x20b207;let _0x347aac=_0x5b4e0a[_0x1cc55d(0x2b5)](_0x51081c[_0x1cc55d(0x251)]),_0x28e997=_0x347aac==null?void 0x0:_0x347aac[_0x1cc55d(0x270)]();if(_0x28e997&&!_0x489a17(_0x28e997))return _0x28e997;let _0x32356a=_0x5b4e0a[_0x1cc55d(0x2b5)](_0x51081c[_0x1cc55d(0x122)]);if(_0x32356a)return _0x32356a['getUnitId']();let _0x3cad6e=_0x5b4e0a[_0x1cc55d(0x315)](_0x51081c[_0x1cc55d(0x251)])[_0x1cc55d(0x1bd)](_0x369b84=>!_0x489a17(_0x369b84[_0x1cc55d(0x270)]()));return _0x3cad6e?_0x3cad6e[_0x1cc55d(0x270)]():null;}function on(_0x4c20f8){let {status$:_0x28c8de}=_0x4c20f8;return function(){return _0x57ef67(tn,{'status$':_0x28c8de});};}var sn=_0x7ea594(0x2a1),cn=_0x7ea594(0x2ec);const ln={'id':_0x7ea594(0x1dd),'type':_0x4d64aa['OPERATION'],'handler':(_0xfcedd7,_0x86ffca)=>{const _0x4e519d=_0x7ea594;let _0x38fd08=_0xfcedd7[_0x4e519d(0x161)](_0x14c253)[_0x4e519d(0x161)](_0x86ffca[_0x4e519d(0x2cd)]);if(!_0x38fd08)return!0x1;switch(_0x86ffca['update'][_0x4e519d(0x34f)]){case _0x4e519d(0x164):return _0x38fd08[_0x4e519d(0x2fe)](_0x86ffca['update'][_0x4e519d(0x352)]),!0x0;case _0x4e519d(0x347):return _0x38fd08[_0x4e519d(0x1a2)](_0x86ffca[_0x4e519d(0x34b)][_0x4e519d(0x2ce)],_0x86ffca['update'][_0x4e519d(0x349)]),!0x0;case _0x4e519d(0x221):return _0x38fd08[_0x4e519d(0xfe)](_0x86ffca[_0x4e519d(0x34b)]['unitId']),!0x0;default:return!0x1;}}},un={};let dn=class extends _0x28ff85{constructor(_0x445143,_0x38156f){const _0x2905ef=_0x7ea594;super(),this['_docClipboardService']=_0x445143,this[_0x2905ef(0x1e7)]=_0x38156f,this[_0x2905ef(0x191)]();}[_0x7ea594(0x191)](){const _0x7ac97c=_0x7ea594;let _0x2c761c=this;this[_0x7ac97c(0xf8)](this[_0x7ac97c(0x20d)][_0x7ac97c(0x269)]({'onBeforePasteImage':async _0x2cf512=>{const _0x458f2a=_0x7ac97c;let _0x20aca=await _0x2c761c[_0x458f2a(0x1e7)][_0x458f2a(0x247)](_0x2cf512);return _0x20aca?{'source':_0x20aca['source'],'imageSourceType':_0x20aca[_0x458f2a(0x2b1)]}:null;}}));}};dn=X([Y(0x0,_0x37f83b),Y(0x1,_0x4c0ca6)],dn);const fn=[_0x7ea594(0x234),'jiqing.500',_0x7ea594(0x265),_0x7ea594(0x1c8),_0x7ea594(0x253),_0x7ea594(0x324)];var pn=class extends _0x2c43e7{constructor(..._0x2b08e3){const _0x1913a8=_0x7ea594;super(..._0x2b08e3),J(this,_0x1913a8(0x2ed),new Map()),J(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xafc253){const _0x32e6ff=_0x7ea594;if(this[_0x32e6ff(0x2ed)]['has'](_0xafc253))return this[_0x32e6ff(0x2ed)][_0x32e6ff(0x161)](_0xafc253);let _0x296193=fn[this[_0x32e6ff(0x342)]];return this[_0x32e6ff(0x342)]=(this[_0x32e6ff(0x342)]+0x1)%fn[_0x32e6ff(0x121)],this['_assignedColors'][_0x32e6ff(0x164)](_0xafc253,_0x296193),_0x296193;}};function mn(_0x2823df){const _0x1e1a41=_0x7ea594;let _0x2936fc='';for(let _0x3f56c4 of _0x2823df){let {startOffset:_0x6f8105,endOffset:_0x4f3326,isActive:_0x37e437,rangeType:_0x30b043,segmentId:_0x4ea1a2,segmentPage:_0x27cedf}=_0x3f56c4;_0x2936fc[_0x1e1a41(0x121)]&&(_0x2936fc+=','),_0x2936fc+=_0x6f8105+':'+_0x4f3326+':'+(_0x37e437?'1':'0')+':'+_0x30b043+':'+_0x4ea1a2+':'+_0x27cedf;}return _0x2936fc;}function hn(_0x2dd14e){const _0x25b84f=_0x7ea594;let _0x1aa50a=_0x2dd14e[_0x25b84f(0x276)](','),_0x1a8693=[];for(let _0xd69a24 of _0x1aa50a){let [_0x5aa341,_0x2b3dbf,_0x55622d,_0x327dc5,_0x5d9198,_0x3f2d55]=_0xd69a24[_0x25b84f(0x276)](':');_0x1a8693[_0x25b84f(0x2da)]({'startOffset':Number(_0x5aa341),'endOffset':Number(_0x2b3dbf),'collapsed':_0x5aa341===_0x2b3dbf,'isActive':_0x55622d==='1','rangeType':_0x327dc5===_0x1b3059[_0x25b84f(0x100)]?_0x1b3059[_0x25b84f(0x100)]:_0x1b3059['RECT'],'segmentId':typeof _0x5d9198==_0x25b84f(0xfc)?String(_0x5d9198):'','segmentPage':Number(_0x3f2d55??-0x1)});}return _0x1a8693['some'](_0x39957b=>_0x39957b[_0x25b84f(0x14b)])||(_0x1a8693[0x0][_0x25b84f(0x14b)]=!0x0),_0x1a8693;}var gn=class extends _0x28ff85{constructor(..._0x59f2f2){const _0xd5b94c=_0x7ea594;super(..._0x59f2f2),J(this,_0xd5b94c(0x1a0),new _0x5a8e6e(null)),J(this,_0xd5b94c(0x2cc),this[_0xd5b94c(0x1a0)]['asObservable']());}[_0x7ea594(0x101)](_0x11febd){const _0x29f29f=_0x7ea594;let {unitID:_0x5f1065,memberID:_0x4dbc3f,textRanges:_0x1525b5}=_0x11febd,_0x541200=mn(_0x1525b5);if(_0x541200==='')return;let _0x5567b4={'unitID':_0x5f1065,'memberID':_0x4dbc3f,'selection':_0x541200};this[_0x29f29f(0x1a0)][_0x29f29f(0x136)](_0x5567b4);}};let _n=class extends _0x28ff85{get['cursorInfo'](){const _0x2f15ee=_0x7ea594;return this[_0x2f15ee(0x132)]['getValue']();}get['roomMembers'](){const _0x2e983f=_0x7ea594;return this['_roomMembers$'][_0x2e983f(0x13a)]();}constructor(_0x3383ac,_0x513776,_0x107e2f,_0x1be66e,_0x20454d,_0x4ee1d8,_0x22828d,_0x25d356,_0xbec85c){const _0x53d79e=_0x7ea594;super(),this[_0x53d79e(0x195)]=_0x3383ac,this[_0x53d79e(0x2a0)]=_0x513776,this['_injector']=_0x107e2f,this[_0x53d79e(0x20c)]=_0x1be66e,this[_0x53d79e(0x344)]=_0x20454d,this[_0x53d79e(0x31b)]=_0x4ee1d8,this[_0x53d79e(0xdf)]=_0x22828d,this['_univerInstanceService']=_0x25d356,this[_0x53d79e(0x1c1)]=_0xbec85c,J(this,_0x53d79e(0x22d),!0x1),J(this,_0x53d79e(0x191),!0x1),J(this,_0x53d79e(0x132),new _0x5a8e6e(new Map())),J(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),J(this,'_roomMembers$',new _0x5a8e6e([])),J(this,_0x53d79e(0x1f5),this[_0x53d79e(0x323)]['pipe'](_0x40cc80(0x12c))),J(this,_0x53d79e(0x250),_0xf32b8d(_0x1e0441=>{const _0x5d50bc=_0x53d79e;let _0x1e8eda={'eventID':_0x865df6[_0x5d50bc(0x207)],'data':{'unitID':this[_0x5d50bc(0x195)],'memberID':this['_session'][_0x5d50bc(0x13b)](),'selection':mn(_0x1e0441)}};this[_0x5d50bc(0x2a0)]['send'](_0x1e8eda,this[_0x5d50bc(0x195)]);},0x64));}[_0x7ea594(0x2f1)](){const _0x231313=_0x7ea594;super[_0x231313(0x2f1)](),this[_0x231313(0x132)][_0x231313(0x136)](new Map()),this['_cursorInfo$'][_0x231313(0x278)](),this[_0x231313(0x323)][_0x231313(0x136)]([]),this[_0x231313(0x323)][_0x231313(0x278)]();}[_0x7ea594(0x1ee)](){const _0x109a0f=_0x7ea594;this[_0x109a0f(0x191)]||(this[_0x109a0f(0x191)]=!0x0,this[_0x109a0f(0x2a0)]['sessionStatus$'][_0x109a0f(0x1d5)](_0x2a3afc(this[_0x109a0f(0x190)]))[_0x109a0f(0x1de)](_0x4e703a=>{const _0x435850=_0x109a0f;_0x4e703a===_0xa8ada1[_0x435850(0x287)]?this[_0x435850(0x238)]():this['_toggleOffline']();}),this[_0x109a0f(0x2a0)][_0x109a0f(0x1d4)]['pipe'](_0x2a3afc(this['dispose$']))[_0x109a0f(0x1de)](_0x393c2d=>{const _0x4481e=_0x109a0f;let _0x42661d=_0x393c2d[_0x4481e(0x24f)];_0x42661d===_0x865df6[_0x4481e(0x207)]&&this['_onCursorUpdate'](_0x393c2d),_0x42661d===_0x865df6['USERS_LEAVE']&&this[_0x4481e(0x1c5)](_0x393c2d);}),this['disposeWithMe'](this[_0x109a0f(0x1c1)][_0x109a0f(0x2a2)](_0x2a41cb=>{const _0x2da19a=_0x109a0f;let _0x3fb878=_0x2a41cb['params'];_0x3fb878!=null&&this[_0x2da19a(0x22d)]&&_0x2a41cb['id']===_0x3e3d2c['id']&&_0x3fb878['unitId']===this[_0x2da19a(0x195)]&&_0x3fb878[_0x2da19a(0x233)]===!0x1&&_0x3fb878[_0x2da19a(0x1a5)][_0x2da19a(0x121)]>0x0&&this['_updateLocalCursor'](_0x3fb878[_0x2da19a(0x1a5)]);})),this[_0x109a0f(0x31b)]['collabCursorState$'][_0x109a0f(0x1d5)](_0x2a3afc(this[_0x109a0f(0x190)]))[_0x109a0f(0x1de)](_0xa5ebe7=>{const _0x56baf5=_0x109a0f;if((_0xa5ebe7==null?void 0x0:_0xa5ebe7[_0x56baf5(0x195)])!==this[_0x56baf5(0x195)])return;let _0x34293a={'eventID':_0x865df6[_0x56baf5(0x207)],'data':_0xa5ebe7};this[_0x56baf5(0x2f5)](_0x34293a);}),this['disposeWithMe'](this['_commandService'][_0x109a0f(0x2a2)](_0xd34417=>{const _0x1c695e=_0x109a0f;if(_0xd34417[_0x1c695e(0x131)]==null)return;let _0x15a8c5=_0xd34417[_0x1c695e(0x131)];if(_0xd34417['id']!==_0x4db170['id']||_0x15a8c5['unitId']!==this[_0x1c695e(0x195)])return;let _0x51007b={'id':'doc.mutation.rich-text-editing','params':_0x15a8c5},_0x1876db=this[_0x1c695e(0x10c)];for(let [_0x57a931,_0x187a2c]of _0x1876db){let _0x4fcb71={'id':_0x1c695e(0x272),'params':{'unitId':this[_0x1c695e(0x195)],'actions':null,'textRanges':_0x187a2c[_0x1c695e(0x1a5)]}},_0x57ee37=this[_0x1c695e(0xdf)][_0x1c695e(0x2e4)](_0x51007b,_0x4fcb71,!0x1);if(_0x13597e(_0x57ee37))throw _0x57ee37[_0x1c695e(0x19d)];_0x1876db['set'](_0x57a931,{..._0x187a2c,'ranges':_0x57ee37[_0x1c695e(0x2ad)][_0x1c695e(0x131)][_0x1c695e(0x1cf)]});}queueMicrotask(()=>{const _0x1a6bc1=_0x1c695e;this[_0x1a6bc1(0x132)][_0x1a6bc1(0x136)](_0x1876db);});})));}['_onCursorUpdate'](_0x1ec685){const _0x2d0763=_0x7ea594;var _0x4eaf7a;let {memberID:_0x15139,selection:_0x1013ae}=_0x1ec685[_0x2d0763(0x10b)],_0x5b9c6d=hn(_0x1013ae),_0x3d46f5=((_0x4eaf7a=this[_0x2d0763(0x344)][_0x2d0763(0x2d8)](this['unitID'],_0x15139))==null?void 0x0:_0x4eaf7a[_0x2d0763(0x2d6)])??'Unknown\x20user',_0x25e599={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x15139),'name':_0x3d46f5,'ranges':_0x5b9c6d},_0x34affc=this[_0x2d0763(0x10c)];_0x34affc['set'](_0x15139,_0x25e599),this[_0x2d0763(0x132)][_0x2d0763(0x136)](_0x34affc);}['_onCursorDelete'](_0x917e3e){const _0x15b4c1=_0x7ea594;let {memberID:_0x5c70d7}=_0x917e3e[_0x15b4c1(0x10b)],_0x4ebf38=this[_0x15b4c1(0x10c)];_0x4ebf38[_0x15b4c1(0x182)](_0x5c70d7),this[_0x15b4c1(0x132)][_0x15b4c1(0x136)](_0x4ebf38);}[_0x7ea594(0x238)](){const _0x543866=_0x7ea594;var _0x1cfade;if(this[_0x543866(0x22d)]=!0x0,((_0x1cfade=this[_0x543866(0x337)][_0x543866(0x116)]())==null?void 0x0:_0x1cfade[_0x543866(0x270)]())!==this['unitID'])return;let _0x7c6242=this[_0x543866(0x140)][_0x543866(0x161)](_0x291a40)['getDocRanges']();Array['isArray'](_0x7c6242)&&_0x7c6242[_0x543866(0x121)]>0x0&&this[_0x543866(0x250)](_0x7c6242);}[_0x7ea594(0x239)](){const _0x2c8878=_0x7ea594;this[_0x2c8878(0x22d)]=!0x1;}};_n=X([Y(0x2,_0x5c888d(_0x451f97)),Y(0x3,_0x5c888d(pn)),Y(0x4,_0x5c888d(_0x268c3a)),Y(0x5,_0x5c888d(gn)),Y(0x6,_0x31acf5),Y(0x7,_0x28a580),Y(0x8,_0x15fe51)],_n);const vn=()=>{let _0x40f57c=[],_0x4a075f=!0x1;return _0x538b2a=>{const _0x51f7fa=_0x1c2b;_0x40f57c[_0x51f7fa(0x2da)](_0x538b2a),_0x4a075f||(_0x4a075f=!0x0,setTimeout(()=>{const _0x534577=_0x51f7fa;_0x40f57c[_0x534577(0x2c0)](_0x5313b4=>_0x5313b4()),_0x40f57c=[],_0x4a075f=!0x1;}));};};let yn=class extends _0x28ff85{get[_0x7ea594(0x10c)](){const _0x26b1be=_0x7ea594;return this['_cursorInfo$'][_0x26b1be(0x13a)]();}get[_0x7ea594(0x1ad)](){const _0x5d613d=_0x7ea594;return this[_0x5d613d(0x323)][_0x5d613d(0x13a)]();}constructor(_0x502215,_0x498ad0,_0x5b946f,_0x20cdce,_0x17f155,_0x41f86c,_0x2e286b,_0x2b2325){const _0x164559=_0x7ea594;super(),this[_0x164559(0x195)]=_0x502215,this[_0x164559(0x2a0)]=_0x498ad0,this[_0x164559(0x140)]=_0x5b946f,this['_colorAssignService']=_0x20cdce,this[_0x164559(0x344)]=_0x17f155,this[_0x164559(0x337)]=_0x41f86c,this[_0x164559(0x1c1)]=_0x2e286b,this['_refRangeService']=_0x2b2325,J(this,'_online',!0x1),J(this,'_init',!0x1),J(this,_0x164559(0x132),new _0x5a8e6e(new Map())),J(this,_0x164559(0x2f6),this['_cursorInfo$'][_0x164559(0xe4)]()),J(this,_0x164559(0x323),new _0x5a8e6e([])),J(this,_0x164559(0x1f5),this[_0x164559(0x323)]['pipe'](_0x40cc80(0x12c))),J(this,_0x164559(0x250),_0xf32b8d((_0x4e8e1a,_0x2312fd)=>{const _0x557047=_0x164559;let _0x657b65={'eventID':_0x865df6['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x557047(0x2a0)][_0x557047(0x13b)](),'selection':_0x2b799d(_0x4e8e1a,_0x2312fd[_0x557047(0x27a)])}};this[_0x557047(0x2a0)][_0x557047(0xdc)](_0x657b65,this[_0x557047(0x195)]);},0x64));}[_0x7ea594(0x2f1)](){const _0x330030=_0x7ea594;super['dispose'](),this[_0x330030(0x132)][_0x330030(0x136)](new Map()),this['_cursorInfo$'][_0x330030(0x278)](),this[_0x330030(0x323)][_0x330030(0x136)]([]),this['_roomMembers$'][_0x330030(0x278)]();}[_0x7ea594(0x1ee)](){const _0x487e61=_0x7ea594;this['_init']||(this[_0x487e61(0x191)]=!0x0,this['_session'][_0x487e61(0x1e9)][_0x487e61(0x1d5)](_0x2a3afc(this['dispose$']))[_0x487e61(0x1de)](_0x5c819b=>{const _0x511bea=_0x487e61;_0x5c819b===_0xa8ada1[_0x511bea(0x287)]?this['_toggleOnline']():this[_0x511bea(0x239)]();}),this[_0x487e61(0x2a0)][_0x487e61(0x1d4)][_0x487e61(0x1d5)](_0x2a3afc(this[_0x487e61(0x190)]))[_0x487e61(0x1de)](_0x230cd8=>{const _0x1f7c5a=_0x487e61;let _0x5b0369=_0x230cd8['eventID'];_0x5b0369===_0x865df6['UPDATE_CURSOR']&&this[_0x1f7c5a(0x2f5)](_0x230cd8),_0x5b0369===_0x865df6[_0x1f7c5a(0x24e)]&&this['_onCursorDelete'](_0x230cd8);}),this[_0x487e61(0x1b7)](),this[_0x487e61(0xf8)](this[_0x487e61(0x1c1)][_0x487e61(0x2a2)](_0x3ef376=>{const _0x16c60f=_0x487e61;if(this[_0x16c60f(0x22d)]&&_0x3ef376['id']===_0x5a7a11['id']&&_0x3ef376[_0x16c60f(0x131)][_0x16c60f(0x2ce)]===this[_0x16c60f(0x195)]){let _0xf205c8=_0x3ef376['params'];this[_0x16c60f(0x250)](_0xf205c8['subUnitId'],_0xf205c8[_0x16c60f(0x2cf)][0x0]);}})));}[_0x7ea594(0x2f5)](_0x38dd93){const _0x12537a=_0x7ea594;var _0x5783d7;let {memberID:_0x18bb62,selection:_0x490212}=_0x38dd93[_0x12537a(0x10b)],{sheetName:_0x2dc0eb,range:_0x22adde}=_0x3b9903(_0x490212),_0x3a36f2={'name':((_0x5783d7=this[_0x12537a(0x344)][_0x12537a(0x2d8)](this[_0x12537a(0x195)],_0x18bb62))==null?void 0x0:_0x5783d7[_0x12537a(0x2d6)])??_0x12537a(0x319),'range':this['_getMergeRange'](_0x2dc0eb,_0x22adde),'sheetID':_0x2dc0eb,'color':this[_0x12537a(0x20c)][_0x12537a(0x107)](_0x18bb62),'selection':_0x490212},_0x2bdfc3=this['cursorInfo'];_0x2bdfc3[_0x12537a(0x164)](_0x18bb62,_0x3a36f2),this[_0x12537a(0x132)]['next'](_0x2bdfc3);}[_0x7ea594(0x1c5)](_0x19e880){const _0x71e809=_0x7ea594;let {memberID:_0x53d809}=_0x19e880[_0x71e809(0x10b)],_0x3f22b7=this[_0x71e809(0x10c)];_0x3f22b7[_0x71e809(0x182)](_0x53d809),this['_cursorInfo$'][_0x71e809(0x136)](_0x3f22b7);}[_0x7ea594(0x166)](_0x40d092,_0x573628){const _0x9c52a0=_0x7ea594;var _0x4f7192;let _0x348244=(_0x4f7192=this[_0x9c52a0(0x337)][_0x9c52a0(0x206)](this[_0x9c52a0(0x195)],_0x51081c['UNIVER_SHEET']))==null||(_0x4f7192=_0x4f7192[_0x9c52a0(0x151)](_0x40d092))==null?void 0x0:_0x4f7192[_0x9c52a0(0x32c)]();return(_0x348244==null?void 0x0:_0x348244[_0x9c52a0(0x1bd)](_0x3104fe=>_0xdb208c[_0x9c52a0(0x117)](_0x3104fe,_0x573628)))||_0x573628;}['_onRefRangeChange'](){const _0x297b8f=_0x7ea594;let _0x1324af=new _0x200b02(),_0x14ec77=vn(),_0x55cfe3=()=>{const _0xf560d4=_0x1c2b;_0x1324af[_0xf560d4(0x2f1)]();let _0x17cd92=(_0xecab7f,_0x33ae12,_0x18cc1c,_0x496dae)=>{const _0x466c33=_0xf560d4;let _0x4684b7=[];switch(_0xecab7f['id']){case _0x5d5430[_0x466c33(0x208)]:_0x4684b7=_0x33b6d7(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x19f)]:_0x4684b7=_0x1d6acb(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x1b4)]:_0x4684b7=_0x57c4d6(_0xecab7f,_0x496dae);break;case _0x5d5430['InsertRangeMoveDownCommandId']:_0x4684b7=_0xd032ba(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x283)]:_0x4684b7=_0x2eb875(_0xecab7f,_0x496dae);break;case _0x5d5430['InsertRowCommandId']:_0x4684b7=_0x29910d(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x2f9)]:_0x4684b7=_0x294967(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x126)]:_0x4684b7=_0x5e4f50(_0xecab7f,_0x496dae);break;case _0x5d5430['RemoveRowCommandId']:_0x4684b7=_0x12e3bf(_0xecab7f,_0x496dae);}let _0x4aaa54=_0x1ff6e1(_0x4684b7,_0x496dae),_0x39af17=this[_0x466c33(0x10c)][_0x466c33(0x161)](_0x33ae12);if(_0x39af17&&_0x4aaa54){let _0x2ff500={..._0x39af17,'range':_0x4aaa54};this[_0x466c33(0x10c)][_0x466c33(0x164)](_0x33ae12,_0x2ff500),_0x14ec77(()=>{const _0x4d2869=_0x466c33;let _0xac0034=this[_0x4d2869(0x138)][_0x4d2869(0x26d)](_0x4aaa54,_0x5d61c9=>(_0xac0034[_0x4d2869(0x2f1)](),_0x17cd92(_0x5d61c9,_0x33ae12,_0x18cc1c,_0x4aaa54)));_0x1324af[_0x4d2869(0x1ce)](_0xac0034);});}return{'redos':[],'undos':[]};};this[_0xf560d4(0x10c)][_0xf560d4(0x2c0)]((_0x37363b,_0x1db994)=>{const _0x1aa733=_0xf560d4;let {range:_0xfc7daa,sheetID:_0x1f59fd}=_0x37363b,_0x128b12=this[_0x1aa733(0x138)][_0x1aa733(0x26d)](_0xfc7daa,_0x394495=>(_0x128b12[_0x1aa733(0x2f1)](),_0x17cd92(_0x394495,_0x1db994,_0x1f59fd,_0xfc7daa)));_0x1324af[_0x1aa733(0x1ce)](_0x128b12);});};this[_0x297b8f(0xf8)](_0x42bb3c(this[_0x297b8f(0x132)][_0x297b8f(0x1de)](()=>{_0x55cfe3();})));}[_0x7ea594(0x238)](){const _0x3210ab=_0x7ea594;var _0x5a1314,_0x5a76d0;if(this[_0x3210ab(0x22d)]=!0x0,((_0x5a1314=this[_0x3210ab(0x337)][_0x3210ab(0x116)]())==null?void 0x0:_0x5a1314[_0x3210ab(0x270)]())!==this[_0x3210ab(0x195)])return;let _0x3dffe9=(_0x5a76d0=this[_0x3210ab(0x140)][_0x3210ab(0x161)](_0x3c2429)[_0x3210ab(0x1f1)]())==null?void 0x0:_0x5a76d0[0x0],_0x4ecf01=this['_univerInstanceService']['getCurrentUnitOfType'](_0x51081c[_0x3210ab(0x122)])[_0x3210ab(0xe0)]();_0x3dffe9&&_0x4ecf01&&this[_0x3210ab(0x250)](_0x4ecf01[_0x3210ab(0x21a)](),_0x3dffe9);}[_0x7ea594(0x239)](){const _0x4444c9=_0x7ea594;this[_0x4444c9(0x22d)]=!0x1;}};yn=X([Y(0x2,_0x5c888d(_0x451f97)),Y(0x3,_0x5c888d(pn)),Y(0x4,_0x5c888d(_0x268c3a)),Y(0x5,_0x28a580),Y(0x6,_0x15fe51),Y(0x7,_0x5c888d(_0x3e2e64))],yn);let Q=class extends _0x28ff85{constructor(_0x3e4aec,_0x55de7c,_0x2c8f6b){const _0x148d55=_0x7ea594;super(),this[_0x148d55(0x337)]=_0x3e4aec,this['_injector']=_0x55de7c,this[_0x148d55(0x2a4)]=_0x2c8f6b,J(this,_0x148d55(0x33c),new Map()),J(this,_0x148d55(0x279),new _0x83a48d()),this[_0x148d55(0x191)]();}[_0x7ea594(0x2f1)](){const _0x3a3de7=_0x7ea594;super[_0x3a3de7(0x2f1)](),this['_entityInit$'][_0x3a3de7(0x278)](),this[_0x3a3de7(0x33c)][_0x3a3de7(0x2c0)](_0x25ef33=>_0x25ef33[_0x3a3de7(0x2f1)]());}[_0x7ea594(0x12d)](_0xd271e4){const _0x13cda5=_0x7ea594;let _0x454a1c=this[_0x13cda5(0x33c)][_0x13cda5(0x161)](_0xd271e4);return _0x454a1c?_0x454a1c[_0x13cda5(0x2f6)]:this['_entityInit$']['pipe'](_0x399a72(_0x252b6c=>_0x252b6c[_0x13cda5(0x195)]===_0xd271e4),_0x4957ed(_0x53ed0d=>_0x53ed0d[_0x13cda5(0x2f6)]));}['_init'](){const _0x15a95b=_0x7ea594;this[_0x15a95b(0x337)][_0x15a95b(0xf5)](_0x51081c[_0x15a95b(0x122)])[_0x15a95b(0x1d5)](_0x2a3afc(this[_0x15a95b(0x190)]))[_0x15a95b(0x1de)](async _0x3a8690=>{const _0x5c2632=_0x15a95b;let _0x13211e=_0x3a8690[_0x5c2632(0x14d)][_0x5c2632(0x270)](),_0x20431c=await this['_startSheetCollabCursor'](_0x13211e);this[_0x5c2632(0x279)][_0x5c2632(0x136)](_0x20431c),this[_0x5c2632(0x33c)]['set'](_0x13211e,_0x20431c);}),this[_0x15a95b(0x337)]['getTypeOfUnitAdded$'](_0x51081c['UNIVER_DOC'])['pipe'](_0x2a3afc(this['dispose$']))[_0x15a95b(0x1d5)](_0x399a72(_0xcd8e00=>!_0xcd8e00[_0x15a95b(0x14d)][_0x15a95b(0x270)]()['startsWith']('__')))[_0x15a95b(0x1de)](async _0x44808f=>{const _0x29335d=_0x15a95b;let {unit:_0x65f9bb}=_0x44808f,_0x434a80=_0x65f9bb[_0x29335d(0x270)](),_0x2434a4=await this[_0x29335d(0x33e)](_0x434a80);this[_0x29335d(0x279)][_0x29335d(0x136)](_0x2434a4),this[_0x29335d(0x33c)]['set'](_0x434a80,_0x2434a4);}),_0x28759e(this[_0x15a95b(0x337)][_0x15a95b(0x2ca)](_0x51081c[_0x15a95b(0x251)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x51081c[_0x15a95b(0x122)]))[_0x15a95b(0x1d5)](_0x2a3afc(this['dispose$']))['subscribe'](_0x3d1da1=>{const _0x30415d=_0x15a95b;let _0x69bc4f=_0x3d1da1[_0x30415d(0x270)](),_0x338117=this['_entities'][_0x30415d(0x161)](_0x69bc4f);_0x338117&&(_0x338117[_0x30415d(0x2f1)](),this[_0x30415d(0x33c)][_0x30415d(0x182)](_0x69bc4f));});}async['_startSheetCollabCursor'](_0x182b75){const _0xfd7a2c=_0x7ea594;let _0x251e83=await this[_0xfd7a2c(0x2a4)][_0xfd7a2c(0x348)](_0x182b75),_0x31b2d2=this[_0xfd7a2c(0x140)]['createInstance'](yn,_0x182b75,_0x251e83);return _0x31b2d2[_0xfd7a2c(0x1ee)](),_0x31b2d2;}async['_startDocCollabCursor'](_0x1b1125){const _0x2714bb=_0x7ea594;let _0x479865=await this['_collabSessionService'][_0x2714bb(0x348)](_0x1b1125),_0x3b7d4b=this[_0x2714bb(0x140)]['createInstance'](_n,_0x1b1125,_0x479865);return _0x3b7d4b[_0x2714bb(0x1ee)](),_0x3b7d4b;}};Q=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x451f97)),Y(0x2,_0x5c888d(_0x25de4e))],Q);function bn(_0xfc3308,_0x56f55a){const _0x457b83=_0x7ea594;_0xfc3308[_0x457b83(0x2d0)](),_0xfc3308['font']=_0x457b83(0x30d);let _0xe7ebdc=_0xfc3308['measureText'](_0x56f55a)[_0x457b83(0x2c6)];return _0xfc3308[_0x457b83(0x1c2)](),Math[_0x457b83(0x2c4)](_0xe7ebdc+0x8,0xc8);}function xn(_0x2c33b3,_0x211605){const _0x237a2b=_0x7ea594;let {radius:_0x4962cd,width:_0x374529,height:_0x9b876c}=_0x211605;_0x4962cd??=0x0,_0x374529??=0x1e,_0x9b876c??=0x1e;let _0x14cb06=0x0,_0x4a54db=0x0,_0x291c87=0x0;_0x14cb06=_0x4a54db=_0x291c87=Math[_0x237a2b(0x2c4)](_0x4962cd,_0x374529/0x2,_0x9b876c/0x2),_0x2c33b3[_0x237a2b(0x2d2)](),_0x2c33b3[_0x237a2b(0x256)](_0x14cb06,0x0),_0x2c33b3['lineTo'](_0x374529-_0x4a54db,0x0),_0x2c33b3[_0x237a2b(0x24d)](_0x374529-_0x4a54db,_0x4a54db,_0x4a54db,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c33b3[_0x237a2b(0x214)](_0x374529,_0x9b876c-_0x291c87),_0x2c33b3[_0x237a2b(0x24d)](_0x374529-_0x291c87,_0x9b876c-_0x291c87,_0x291c87,0x0,Math['PI']/0x2,!0x1),_0x2c33b3['lineTo'](0x0,_0x9b876c),_0x2c33b3['lineTo'](0x0,_0x14cb06),_0x2c33b3[_0x237a2b(0x24d)](_0x14cb06,_0x14cb06,_0x14cb06,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c33b3[_0x237a2b(0x1ef)](),_0x211605['fill']&&(_0x2c33b3[_0x237a2b(0x2d0)](),_0x2c33b3['fillStyle']=_0x211605[_0x237a2b(0x358)],_0x211605[_0x237a2b(0xee)]===_0x237a2b(0x260)?_0x2c33b3[_0x237a2b(0x358)]('evenodd'):_0x2c33b3[_0x237a2b(0x358)](),_0x2c33b3[_0x237a2b(0x1c2)]());}var Sn=class e extends _0x41d5b2{constructor(_0x2549e5,_0xae0834){const _0x3e9f2a=_0x7ea594;super(_0x2549e5,_0xae0834),J(this,_0x3e9f2a(0x1bb),void 0x0),J(this,'text',void 0x0),this[_0x3e9f2a(0x1bb)]=_0xae0834==null?void 0x0:_0xae0834[_0x3e9f2a(0x1bb)],this[_0x3e9f2a(0x1af)]=_0xae0834==null?void 0x0:_0xae0834['text'];}static[_0x7ea594(0x286)](_0x40ce78,_0x1e554c){const _0x266765=_0x7ea594;let {text:_0x2c4433,color:_0x3e85aa}=_0x1e554c;_0x40ce78['save'](),_0x40ce78['font']=_0x266765(0x12c);let _0x1666d1=_0x40ce78[_0x266765(0x257)](_0x2c4433)[_0x266765(0x2c6)];if(xn(_0x40ce78,{'height':0x14,'radius':0x4,'width':bn(_0x40ce78,_0x2c4433),'fill':_0x3e85aa,'evented':!0x1}),_0x40ce78['fillStyle']=_0x266765(0x148),_0x1666d1>0xc0){let _0x505adf='',_0x74a67f=0x0;for(let _0xdbd9b of _0x2c4433){let _0x5e5f24=_0x40ce78[_0x266765(0x257)](_0xdbd9b)[_0x266765(0x2c6)];if(_0x74a67f+_0x5e5f24<=0xc0-_0x40ce78[_0x266765(0x257)](_0x266765(0x355))['width'])_0x505adf+=_0xdbd9b,_0x74a67f+=_0x5e5f24;else{_0x505adf+=_0x266765(0x355);break;}}_0x40ce78[_0x266765(0x10d)](_0x505adf,0x4,0xf);}else _0x40ce78[_0x266765(0x10d)](_0x2c4433,0x4,0xf);_0x40ce78[_0x266765(0x1c2)]();}[_0x7ea594(0x14c)](_0x33d723){const _0x383942=_0x7ea594;e[_0x383942(0x286)](_0x33d723,this);}};const Cn=_0x7ea594(0x285);var wn=class{constructor(_0x4304f0,_0x23c521,_0x3f807e,_0x416eac){const _0x27c34a=_0x7ea594;this[_0x27c34a(0x194)]=_0x4304f0,this[_0x27c34a(0x16c)]=_0x23c521,this['_docSkeleton']=_0x3f807e,this['_document']=_0x416eac,J(this,_0x27c34a(0x1c4),[]),J(this,_0x27c34a(0x156),null),J(this,_0x27c34a(0x27e),null),J(this,_0x27c34a(0xfa),null),J(this,_0x27c34a(0x18a),null),J(this,_0x27c34a(0x178),null),this['_render']();}set['_hover'](_0x152e7c){const _0x42b00e=_0x7ea594;_0x152e7c?(this[_0x42b00e(0xfa)]&&this[_0x42b00e(0xfa)][_0x42b00e(0x26a)](),this[_0x42b00e(0x27e)]&&this[_0x42b00e(0x27e)]['show']()):(this[_0x42b00e(0xfa)]&&this['_anchorDot'][_0x42b00e(0x1f0)](),this[_0x42b00e(0x27e)]&&this['_textBubble'][_0x42b00e(0x26a)]());}[_0x7ea594(0x2f1)](){const _0x1f534d=_0x7ea594;for(let _0x343c91 of this[_0x1f534d(0x1c4)])_0x343c91[_0x1f534d(0x2f1)]();this[_0x1f534d(0x27e)]&&this[_0x1f534d(0x27e)][_0x1f534d(0x2f1)](),this[_0x1f534d(0xfa)]&&this[_0x1f534d(0xfa)][_0x1f534d(0x2f1)](),this['_anchor']&&this['_anchor'][_0x1f534d(0x2f1)](),this[_0x1f534d(0x178)]&&this[_0x1f534d(0x178)]();}[_0x7ea594(0x2c7)](){const _0x51d250=_0x7ea594;let {_docSkeleton:_0x1ae065,_document:_0x5160a5}=this,{color:_0xfc6f80,name:_0x3f388c,ranges:_0x351c84}=this[_0x51d250(0x194)],_0x4f8639=_0x5160a5[_0x51d250(0x1b9)](),{docsLeft:_0x524c91,docsTop:_0xae0a9}=_0x4f8639,_0x4dffbe=new _0x3213e1(_0x4f8639,_0x1ae065);for(let {startOffset:_0x244dc7,endOffset:_0x341015,rangeType:_0x436b17,segmentId:_0x155fc5,segmentPage:_0x20b1a8,collapsed:_0xba91c6,isActive:_0x1d8c29}of _0x351c84){let _0x114869=_0x1ae065[_0x51d250(0x245)](_0x244dc7,!0x0,_0x155fc5,_0x20b1a8),_0x440f4f=_0x1ae065[_0x51d250(0x245)](_0x341015,!0x0,_0x155fc5,_0x20b1a8);_0x440f4f??=_0x1ae065[_0x51d250(0x245)](_0x341015-0x1,!0x1,_0x155fc5,_0x20b1a8);let _0x41d3c5=Tn(_0x114869,_0x440f4f);if(_0x1d8c29&&_0x41d3c5[_0x51d250(0x311)]){let {contentBoxPointGroup:_0x569ba3}=_0x4dffbe[_0x51d250(0x2a6)](_0x440f4f,_0x440f4f);if(_0x569ba3[_0x51d250(0x121)]===0x0)continue;this[_0x51d250(0x308)](_0xfc6f80,_0x569ba3,_0x524c91,_0xae0a9,_0x3f388c),this[_0x51d250(0x178)]=this[_0x51d250(0x115)]();}if(_0x114869&&_0x440f4f){if(_0x436b17===_0x1b3059[_0x51d250(0x176)]){let {pointGroup:_0x5f1255}=new _0x3655aa(_0x4f8639,_0x1ae065)['getRangePointData'](_0x114869,_0x440f4f)??{};if(_0x5f1255==null||_0x5f1255[_0x51d250(0x121)]===0x0)continue;this[_0x51d250(0x114)](_0xfc6f80,_0x5f1255,_0x524c91,_0xae0a9);}else{if(!_0xba91c6&&_0x41d3c5[_0x51d250(0x32e)]){let {borderBoxPointGroup:_0x1d7d57}=_0x4dffbe['getRangePointData'](_0x114869,_0x440f4f);if(_0x1d7d57[_0x51d250(0x121)]===0x0)continue;this[_0x51d250(0x354)](_0xfc6f80,_0x1d7d57,_0x524c91,_0xae0a9);}}}}}[_0x7ea594(0x308)](_0x6e23ae,_0x5b2798,_0x47f722,_0x3151b6,_0xe65ffb){const _0x3525b2=_0x7ea594;let {left:_0x5bd82b,top:_0x1e6f7c,height:_0x1db498}=this[_0x3525b2(0x125)](_0x5b2798),_0x536b69=1.5/this[_0x3525b2(0x147)](),_0x4369e0=new _0x3a3ee5(Cn+_0x415285(0x6),{'left':_0x5bd82b+_0x47f722-_0x536b69,'top':_0x1e6f7c+_0x3151b6,'height':_0x1db498,'width':1.5,'fill':_0x6e23ae||_0x1e82d5(_0x48f4c1[_0x3525b2(0x22a)],0x0),'strokeWidth':_0x536b69,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x3525b2(0x156)]=_0x4369e0,this[_0x3525b2(0x16c)]['addObject'](_0x4369e0,_0x22778c);let _0x3b006a=new _0x3a3ee5(Cn+_0x415285(0x6),{'left':_0x5bd82b+_0x47f722-_0x536b69,'top':_0x1e6f7c+_0x3151b6-0x2,'height':0x4,'width':0x4,'fill':_0x6e23ae||_0x1e82d5(_0x48f4c1[_0x3525b2(0x22a)],0x0),'strokeWidth':0x0,'stroke':_0x6e23ae||_0x1e82d5(_0x48f4c1[_0x3525b2(0x22a)],0x0),'evented':!0x1});this[_0x3525b2(0xfa)]=_0x3b006a,this[_0x3525b2(0x16c)]['addObject'](_0x3b006a,_0x22778c);let _0x45bac7=new Sn(Cn+_0x415285(0x6),{'left':_0x5bd82b+_0x47f722-_0x536b69,'top':_0x1e6f7c+_0x3151b6-0x14,'text':_0xe65ffb,'color':_0x6e23ae});this[_0x3525b2(0x27e)]=_0x45bac7,this['_scene']['addObject'](_0x45bac7,_0x22778c),this[_0x3525b2(0x19a)]=!0x1;}[_0x7ea594(0x115)](){const _0x5d78ac=_0x7ea594;let _0x131a4e=this[_0x5d78ac(0x156)][_0x5d78ac(0x1b0)][_0x5d78ac(0x2bd)](()=>{const _0x305946=_0x5d78ac;this[_0x305946(0x19a)]=!0x0;}),_0x42a67f=this['_anchor'][_0x5d78ac(0x1d3)][_0x5d78ac(0x2bd)](()=>{const _0x4d149c=_0x5d78ac;this[_0x4d149c(0x18a)]&&clearTimeout(this[_0x4d149c(0x18a)]),this[_0x4d149c(0x18a)]=setTimeout(()=>{const _0x371ef1=_0x4d149c;this[_0x371ef1(0x19a)]=!0x1;},0x7d0);});return()=>{const _0x37975e=_0x5d78ac;_0x131a4e['unsubscribe'](),_0x42a67f[_0x37975e(0x1bc)]();};}[_0x7ea594(0x354)](_0x9e2bcc,_0x1e095b,_0x5aa98e,_0x336131){const _0xcab8ef=_0x7ea594;let _0xd38558=0.2,_0x33f8e4=new _0x4d3a61(_0x9e2bcc)[_0xcab8ef(0xe7)](_0xd38558)[_0xcab8ef(0x2d1)](),_0x124a07=new _0x1a0717(_0xcab8ef(0x11f)+_0x415285(0x6),{'pointsGroup':_0x1e095b,'fill':_0x33f8e4||_0x1e82d5(_0x48f4c1['black'],_0xd38558),'left':_0x5aa98e,'top':_0x336131,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xcab8ef(0x1c4)]['push'](_0x124a07),this['_scene']['addObject'](_0x124a07,_0x22778c);}[_0x7ea594(0x114)](_0x2c96d0,_0xcee0d7,_0x350457,_0x3c3585){const _0x2d311a=_0x7ea594;let _0x42d055=0.2,_0xb13c01=new _0x4d3a61(_0x2c96d0)['setAlpha'](_0x42d055)[_0x2d311a(0x2d1)](),_0x47b339=new _0x1a0717('collab-rect-range-'+_0x415285(0x6),{'pointsGroup':_0xcee0d7,'fill':_0xb13c01||_0x1e82d5(_0x48f4c1[_0x2d311a(0x22a)],_0x42d055),'left':_0x350457,'top':_0x3c3585,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d311a(0x1c4)]['push'](_0x47b339),this['_scene'][_0x2d311a(0x1e1)](_0x47b339,_0x22778c);}[_0x7ea594(0x125)](_0x113c9b){let _0x1f28b2=_0x113c9b[0x0],_0x4f8330=_0x1f28b2[0x0],_0x2ecc43=_0x1f28b2[0x2],{x:_0x5d40cd,y:_0x1d4fc3}=_0x4f8330,{x:_0x42eaf5,y:_0x474a20}=_0x2ecc43;return{'left':_0x5d40cd,'top':_0x1d4fc3,'width':_0x42eaf5-_0x5d40cd,'height':_0x474a20-_0x1d4fc3};}[_0x7ea594(0x147)](){const _0x2460b6=_0x7ea594;let {scaleX:_0x3e335e,scaleY:_0x273543}=this[_0x2460b6(0x16c)][_0x2460b6(0x11b)]();return Math[_0x2460b6(0x2aa)](_0x3e335e,_0x273543);}};function Tn(_0x317e59,_0x353671){const _0x3d36ae=_0x7ea594;if(!_0x353671)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x317e59||_0x317e59[_0x3d36ae(0x2e6)]!==_0x353671[_0x3d36ae(0x2e6)]||(_0x317e59[_0x3d36ae(0x2e6)]===_0x304f0a['HEADER']||_0x317e59[_0x3d36ae(0x2e6)]===_0x304f0a['FOOTER'])&&_0x317e59[_0x3d36ae(0x1b6)]!==_0x353671['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x2e0e79=_0x1b7c2a(_0x317e59),_0x3d961e=_0x1b7c2a(_0x353671);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x2e0e79==null||_0x3d961e==null?_0x2e0e79==null&&_0x3d961e==null:_0x2e0e79[_0x3d36ae(0x21b)]===_0x3d961e[_0x3d36ae(0x21b)]&&_0x2e0e79[_0x3d36ae(0x2fb)]===_0x3d961e[_0x3d36ae(0x2fb)]&&_0x2e0e79[_0x3d36ae(0x26f)]===_0x3d961e['columnIndex']};}let En=class extends _0x28ff85{constructor(_0x32193d,_0x42c987,_0x429334,_0x367253,_0x1af054){const _0x141ae5=_0x7ea594;super(),this[_0x141ae5(0x216)]=_0x32193d,this[_0x141ae5(0x173)]=_0x42c987,this['_collabCursorController']=_0x429334,this['_commandService']=_0x367253,this[_0x141ae5(0x12b)]=_0x1af054,J(this,'_cursorShapes',[]),J(this,'_cursors',[]),this[_0x141ae5(0x191)]();}[_0x7ea594(0x191)](){const _0x2aef36=_0x7ea594;let _0x50a9e6=this[_0x2aef36(0x216)][_0x2aef36(0x2ce)],_0x27f188=this[_0x2aef36(0x173)];this[_0x2aef36(0xf8)](_0x41dcbc([this[_0x2aef36(0x145)][_0x2aef36(0x12d)](_0x50a9e6),this[_0x2aef36(0x12b)]['currentTheme$']])[_0x2aef36(0x1d5)](_0x3cbcba(([_0x496a77,_0x28cc30])=>({'skeleton':_0x27f188[_0x2aef36(0x1e6)](),'cursors':[..._0x496a77[_0x2aef36(0x163)]()][_0x2aef36(0x293)](_0x165330=>({..._0x165330,'color':this[_0x2aef36(0x12b)][_0x2aef36(0x335)](_0x165330[_0x2aef36(0x1bb)])}))})))[_0x2aef36(0x1de)](_0x1f1fc7=>{const _0x56941a=_0x2aef36;if(this[_0x56941a(0x327)](),_0x1f1fc7){let {skeleton:_0x50ee4e,cursors:_0x48958f}=_0x1f1fc7;this[_0x56941a(0x1c6)](_0x50ee4e,_0x48958f);}})),this[_0x2aef36(0x1d0)](),this[_0x2aef36(0x219)]();}[_0x7ea594(0x1c6)](_0x2e9511,_0x4bfd2e){const _0x3888d9=_0x7ea594;let {scene:_0x562aee,mainComponent:_0x4dd886}=this[_0x3888d9(0x216)],_0xc05d94=_0x4bfd2e[_0x3888d9(0x171)](_0x7d269=>new wn(_0x7d269,_0x562aee,_0x2e9511,_0x4dd886));this['_cursorShapes']=_0xc05d94,this[_0x3888d9(0x157)]=_0x4bfd2e;}[_0x7ea594(0x2eb)](){const _0x350bd8=_0x7ea594;this['_removeCollabCursors']();let {scene:_0xd21b3d,mainComponent:_0x26036f}=this[_0x350bd8(0x216)],_0x109d10=this['_docSkeletonManagerService'][_0x350bd8(0x1e6)](),_0x367ada=this[_0x350bd8(0x157)][_0x350bd8(0x171)](_0x29bdce=>new wn(_0x29bdce,_0xd21b3d,_0x109d10,_0x26036f));this[_0x350bd8(0x2e2)]=_0x367ada;}[_0x7ea594(0x327)](){const _0x5d8490=_0x7ea594;this[_0x5d8490(0x2e2)][_0x5d8490(0x2c0)](_0x171115=>_0x171115[_0x5d8490(0x2f1)]()),this[_0x5d8490(0x2e2)]=[];}[_0x7ea594(0x219)](){const _0x1d50eb=_0x7ea594;let _0x46a4b0=[_0x43d3b6['id']];this[_0x1d50eb(0xf8)](this[_0x1d50eb(0x1c1)][_0x1d50eb(0x2a2)](_0x53d557=>{const _0x39aedb=_0x1d50eb;_0x46a4b0[_0x39aedb(0x353)](_0x53d557['id'])&&_0x53d557[_0x39aedb(0x131)][_0x39aedb(0x2ce)]===this[_0x39aedb(0x216)][_0x39aedb(0x2ce)]&&this[_0x39aedb(0x2eb)]();}));}[_0x7ea594(0x1d0)](){const _0xf848cf=_0x7ea594;this[_0xf848cf(0xf8)](_0x370585(this['_context']['engine'][_0xf848cf(0x2fa)])['pipe'](_0x39dc50(_0x5539ac=>_0x5539ac[_0xf848cf(0x34f)]===_0x2dc7e5[_0xf848cf(0x246)]),_0x51921d(0x10))[_0xf848cf(0x1de)](()=>{this['_refreshCollabCursors']();}));}};En=X([Y(0x1,_0x5c888d(_0x12f6b5)),Y(0x2,_0x5c888d(Q)),Y(0x3,_0x15fe51),Y(0x4,_0x5c888d(_0x16edca))],En);var Dn=class extends _0x41d5b2{constructor(_0x27d293,_0x277b20){const _0xfd7c47=_0x7ea594;super(_0x27d293,_0x277b20),J(this,_0xfd7c47(0x26c),void 0x0),J(this,_0xfd7c47(0x14f),!0x1),J(this,_0xfd7c47(0x222),void 0x0),J(this,_0xfd7c47(0xef),''),J(this,_0xfd7c47(0x19e),_0xfd7c47(0x294)),J(this,_0xfd7c47(0xf6),void 0x0),J(this,'_showText',void 0x0),J(this,_0xfd7c47(0x11e),void 0x0),J(this,_0xfd7c47(0x23e),0x4),J(this,_0xfd7c47(0x1cd),void 0x0),J(this,_0xfd7c47(0x189),void 0x0),J(this,_0xfd7c47(0x19c),!0x0),J(this,'_offsetY',0x0),J(this,'_labelHorizontalPosition',_0xfd7c47(0x1ea)),_0x277b20&&(this['setShapeProps'](_0x277b20),_0x277b20[_0xfd7c47(0x139)]&&(_0x277b20[_0xfd7c47(0x1e0)]??this[_0xfd7c47(0x23e)])&&this['_startBlinking'](_0x277b20['highlightSecond']??this[_0xfd7c47(0x23e)])),this[_0xfd7c47(0x1b0)][_0xfd7c47(0x2bd)](()=>this[_0xfd7c47(0x1a4)]({'hovered':!0x0})),this['onPointerLeave$'][_0xfd7c47(0x2bd)](()=>this['setShapeProps']({'hovered':!0x1}));}[_0x7ea594(0x1f4)](_0x4784a6){const _0x388891=_0x7ea594;this[_0x388891(0x1d9)]=_0x4784a6;}['setShapeProps'](_0x59a0ec){const _0x5b1a95=_0x7ea594;this[_0x5b1a95(0x26c)]=_0x59a0ec['color']??this[_0x5b1a95(0x26c)],this[_0x5b1a95(0x14f)]=_0x59a0ec[_0x5b1a95(0x21f)]??this[_0x5b1a95(0x14f)],this[_0x5b1a95(0x222)]=_0x59a0ec[_0x5b1a95(0x27a)]??this[_0x5b1a95(0x222)],this[_0x5b1a95(0xef)]=_0x59a0ec[_0x5b1a95(0x2d6)]??this[_0x5b1a95(0xef)],this[_0x5b1a95(0x19e)]=_0x59a0ec[_0x5b1a95(0x33b)]??this['_labelPosition'],this['_backgroundColor']=_0x59a0ec[_0x5b1a95(0xed)]??this[_0x5b1a95(0xf6)],this['_showText']=_0x59a0ec[_0x5b1a95(0x25f)]??this['_showText'],this['_labelHorizontalPosition']=_0x59a0ec[_0x5b1a95(0x29e)]??this['_labelHorizontalPosition'],_0x59a0ec[_0x5b1a95(0x1e0)]!==void 0x0&&(this[_0x5b1a95(0x23e)]=_0x59a0ec[_0x5b1a95(0x1e0)]),_0x59a0ec['highlight']!==void 0x0&&(this[_0x5b1a95(0x11e)]=_0x59a0ec['highlight']),_0x59a0ec[_0x5b1a95(0x336)]!==void 0x0&&(this[_0x5b1a95(0x1d9)]=_0x59a0ec[_0x5b1a95(0x336)]),this['transformByState']({'width':_0x59a0ec[_0x5b1a95(0x2c6)],'height':_0x59a0ec[_0x5b1a95(0x25c)]});}[_0x7ea594(0x22b)](_0x392cd1){const _0x5e891e=_0x7ea594;let {row:_0x5dab29,column:_0x4c130d}=_0x392cd1;_0x5dab29>=this[_0x5e891e(0x222)][_0x5e891e(0x184)]&&_0x5dab29<=this[_0x5e891e(0x222)][_0x5e891e(0x11d)]&&_0x4c130d>=this[_0x5e891e(0x222)][_0x5e891e(0x12a)]&&_0x4c130d<=this['_range'][_0x5e891e(0x1e2)]?this['setShapeProps']({'hovered':!0x0}):this['setShapeProps']({'hovered':!0x1});}[_0x7ea594(0x1ab)](_0x58d859){const _0x98110b=_0x7ea594;this[_0x98110b(0x153)](),this['_isBlinkVisible']=!0x0,this[_0x98110b(0x189)]=window[_0x98110b(0x187)](()=>{const _0x51aef5=_0x98110b;this[_0x51aef5(0x19c)]=!this['_isBlinkVisible'],this[_0x51aef5(0x350)](!0x0);},0x1f4),this[_0x98110b(0x1cd)]=window['setTimeout'](()=>{const _0x26c27f=_0x98110b;this[_0x26c27f(0x153)](),this[_0x26c27f(0x19c)]=!0x0,this[_0x26c27f(0x350)](!0x0);},_0x58d859*0x3e8);}[_0x7ea594(0x153)](){const _0x1cdbbb=_0x7ea594;this[_0x1cdbbb(0x189)]&&=(window[_0x1cdbbb(0x2a7)](this[_0x1cdbbb(0x189)]),void 0x0),this['_blinkTimer']&&=(window[_0x1cdbbb(0x29c)](this[_0x1cdbbb(0x1cd)]),void 0x0);}[_0x7ea594(0x12f)](_0x3d5e71){return!0x1;}[_0x7ea594(0x2f1)](){const _0x8bdf1e=_0x7ea594;this[_0x8bdf1e(0x153)](),super['dispose']();}[_0x7ea594(0x14c)](_0x3fe654){const _0x5b720d=_0x7ea594;let _0x4e038f=this[_0x5b720d(0x26c)],_0x28da81=this[_0x5b720d(0xf6)];if(this[_0x5b720d(0x11e)]&&!this[_0x5b720d(0x19c)]&&(_0x4e038f=this[_0x5b720d(0x1b8)](this[_0x5b720d(0x26c)]),_0x28da81=this['_backgroundColor']?this[_0x5b720d(0x1b8)](this[_0x5b720d(0xf6)]):void 0x0),_0x3a3ee5[_0x5b720d(0x286)](_0x3fe654,{'width':this[_0x5b720d(0x2c6)],'height':this[_0x5b720d(0x25c)],'strokeWidth':this[_0x5b720d(0x18b)]||1.5,'stroke':_0x4e038f,'evented':!0x1,'fill':_0x28da81}),this[_0x5b720d(0x14f)]||this['_showText']){_0x3fe654[_0x5b720d(0x2d0)]();let _0x35240d=this[_0x5b720d(0x321)]==='left'?-bn(_0x3fe654,this[_0x5b720d(0xef)]):this[_0x5b720d(0x2c6)];_0x3fe654['transform'](0x1,0x0,0x0,0x1,_0x35240d,(this[_0x5b720d(0x19e)]===_0x5b720d(0x223)?0x0:-0x14)+(this['_offsetY']??0x0)),Sn[_0x5b720d(0x286)](_0x3fe654,{'text':this[_0x5b720d(0xef)],'color':_0x4e038f}),_0x3fe654[_0x5b720d(0x1c2)]();}}['_getLighterColor'](_0x23812d){const _0x463c3c=_0x7ea594;return _0x23812d[_0x463c3c(0x142)]('#')?_0x463c3c(0x274)+Number[_0x463c3c(0x28f)](_0x23812d[_0x463c3c(0xf3)](0x1,0x3),0x10)+',\x20'+Number[_0x463c3c(0x28f)](_0x23812d[_0x463c3c(0xf3)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x23812d[_0x463c3c(0xf3)](0x5,0x7),0x10)+',\x200.2)':_0x23812d['startsWith']('rgba')?_0x23812d[_0x463c3c(0x291)](/[\d.]+\)$/g,_0x463c3c(0x134)):_0x23812d[_0x463c3c(0x142)]('rgb')?_0x23812d['replace'](_0x463c3c(0x28b),_0x463c3c(0x2b0))[_0x463c3c(0x291)](')',_0x463c3c(0x165)):_0x23812d;}};let On=class extends _0x28ff85{constructor(_0x47c572,_0x8415c5,_0x550828,_0x5e03c0){const _0x403443=_0x7ea594;super(),this[_0x403443(0x216)]=_0x47c572,this[_0x403443(0x237)]=_0x8415c5,this[_0x403443(0x145)]=_0x550828,this[_0x403443(0x12b)]=_0x5e03c0,J(this,'_cursors',new Set()),J(this,_0x403443(0x2a8),null),J(this,_0x403443(0x332),null),this['_init']();}[_0x7ea594(0x191)](){const _0x7f410b=_0x7ea594;this[_0x7f410b(0x237)]['currentSkeleton$']['pipe'](_0x4eff35(this[_0x7f410b(0x190)]),_0x1da258(_0x24c309=>{const _0x575b96=_0x7f410b;if(_0x24c309){let _0x724074=_0x24c309[_0x575b96(0x1a3)];return _0x41dcbc(this[_0x575b96(0x145)]['getCollabCursors$'](this[_0x575b96(0x216)][_0x575b96(0x2ce)]),this['_themeService'][_0x575b96(0x254)])[_0x575b96(0x1d5)](_0x3cbcba(([_0x42f5d6,_0x2581ab])=>{const _0x1a4f06=_0x575b96;let _0x5a85cc=new Map();return _0x42f5d6[_0x1a4f06(0x2c0)]((_0x271656,_0x19308f)=>{const _0x5a3349=_0x1a4f06;if(_0x271656[_0x5a3349(0x1a7)]===_0x724074){let _0x599b15={..._0x271656};_0x599b15[_0x5a3349(0x1bb)]=this['_themeService'][_0x5a3349(0x335)](_0x271656[_0x5a3349(0x1bb)]),_0x5a85cc[_0x5a3349(0x164)](_0x19308f,_0x599b15);}}),{'skeleton':_0x24c309,'cursors':_0x5a85cc};}));}return _0x13f646({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x2fd8a2,cursors:_0x5ac67a})=>{const _0x5f47d9=_0x7f410b;this[_0x5f47d9(0x327)](),_0x2fd8a2&&this[_0x5f47d9(0x1c6)](_0x2fd8a2,_0x5ac67a);}),this[_0x7f410b(0xf8)](this[_0x7f410b(0x237)]['currentSkeleton$']['pipe'](_0x4eff35(this[_0x7f410b(0x190)]))[_0x7f410b(0x1de)](_0x3502f2=>{const _0x399bd9=_0x7f410b;var _0x1c1ad5;if(_0x3502f2==null)return;(_0x1c1ad5=this[_0x399bd9(0x332)])==null||_0x1c1ad5[_0x399bd9(0x1bc)](),this[_0x399bd9(0x332)]=null;let {skeleton:_0x45d526}=_0x3502f2,{scene:_0x28b090}=this[_0x399bd9(0x216)];this['_pointerMoveDisposable']=_0x28b090[_0x399bd9(0x1cc)][_0x399bd9(0x2bd)](_0xf32b8d(_0x9ebbdd=>{const _0x253ad6=_0x399bd9;var _0x2573fe,_0x47a667;let {offsetX:_0x14d7da,offsetY:_0x2077fb}=_0x9ebbdd,{x:_0x26f2e6,y:_0x2a9b8d}=_0x28b090['getCoordRelativeToViewport'](_0x9573fe[_0x253ad6(0x309)]([_0x14d7da,_0x2077fb])),{scaleX:_0x19c00d,scaleY:_0x9bdbf8}=_0x28b090['getAncestorScale'](),_0x23ab86=_0x28b090[_0x253ad6(0x123)](_0x1822ce['VIEW_MAIN']),_0x5782e7=_0x28b090[_0x253ad6(0x226)](_0x9573fe['FromArray']([_0x26f2e6,_0x2a9b8d]),_0x23ab86),_0xa28d5a=_0x45d526[_0x253ad6(0x2ee)](_0x14d7da,_0x2077fb,_0x19c00d,_0x9bdbf8,_0x5782e7);(((_0x2573fe=this[_0x253ad6(0x2a8)])==null?void 0x0:_0x2573fe[_0x253ad6(0x23d)])!==_0xa28d5a[_0x253ad6(0x23d)]||((_0x47a667=this[_0x253ad6(0x2a8)])==null?void 0x0:_0x47a667['row'])!==_0xa28d5a[_0x253ad6(0xe5)])&&this['_cursors'][_0x253ad6(0x2c0)](_0x302a8c=>{const _0xd06dd0=_0x253ad6;_0x302a8c[_0xd06dd0(0x22b)](_0xa28d5a);});},0x64));})),this[_0x7f410b(0xf8)](_0x42bb3c(()=>{const _0xbfde1c=_0x7f410b;var _0x5a963b;(_0x5a963b=this[_0xbfde1c(0x332)])==null||_0x5a963b['unsubscribe'](),this[_0xbfde1c(0x332)]=null;}));}[_0x7ea594(0x1c6)](_0x582bce,_0x6ceb9c){const _0x34e347=_0x7ea594;let _0x30630c=this[_0x34e347(0x237)][_0x34e347(0x302)]();if(!_0x30630c)return;let _0x1baaae=this['_getSheetObject']();if(!_0x1baaae)return;this[_0x34e347(0x157)][_0x34e347(0x2c0)](_0x51b130=>{const _0x1ec433=_0x34e347;_0x51b130[_0x1ec433(0x350)]();});let {scene:_0x152272}=_0x1baaae,_0x546e29=kn(Array[_0x34e347(0x1eb)](_0x6ceb9c[_0x34e347(0x163)]()))[_0x34e347(0x171)](_0xcb1d47=>{const _0xbe322b=_0x34e347;let {color:_0xb77db4,range:_0x10f378,name:_0x521112,selection:_0x17e0cb,sheetID:_0x5abc2e}=_0xcb1d47,{startColumn:_0xa04e8b,startRow:_0x5f3377,endColumn:_0x8f38df,endRow:_0x4ec26a}=_0x10f378,_0xe64acf=_0x17a4e6(_0x5f3377,_0xa04e8b,_0x152272,_0x30630c),_0x53de72=_0x17a4e6(_0x4ec26a,_0x8f38df,_0x152272,_0x30630c),{columnHeaderHeightAndMarginTop:_0x3fd290}=_0x30630c,{startX:_0x44d705,startY:_0x1734a2}=_0xe64acf,{endX:_0x47a19d,endY:_0x5dc403}=_0x53de72,_0x2f92f7=_0x47a19d-_0x44d705,_0x4a8ad7=_0x5dc403-_0x1734a2;return new Dn(_0x521112,{'labelPosition':_0x1734a2-_0x3fd290>=0x14?_0xbe322b(0x294):'bottom','sheetID':_0x5abc2e,'range':_0x10f378,'color':_0xb77db4,'name':_0x521112,'selection':_0x17e0cb,'left':_0x44d705,'top':_0x1734a2,'width':_0x2f92f7,'height':_0x4a8ad7,'evented':!0x1,'zIndex':0x1389});});_0x152272['addObjects'](_0x546e29,0x1),this['_cursors']=new Set(_0x546e29);}[_0x7ea594(0x327)](){const _0x183f79=_0x7ea594;var _0x40819d;(_0x40819d=this[_0x183f79(0x157)])==null||_0x40819d[_0x183f79(0x2c0)](_0x41e911=>_0x41e911[_0x183f79(0x2f1)]());}[_0x7ea594(0x186)](){const _0x461977=_0x7ea594;return _0x27e85c(this[_0x461977(0x216)][_0x461977(0x14d)],this[_0x461977(0x216)]);}};On=X([Y(0x1,_0x5c888d(_0x2e722a)),Y(0x2,_0x5c888d(Q)),Y(0x3,_0x5c888d(_0x16edca))],On);function kn(_0xa7a144){const _0x59d31b=_0x7ea594;let _0x186b25=new Map();return _0xa7a144[_0x59d31b(0x2c0)](_0x33fdab=>{const _0x8c3fde=_0x59d31b;if(_0x186b25[_0x8c3fde(0x2c5)](_0x33fdab['selection'])){let _0x4262c7=_0x186b25[_0x8c3fde(0x161)](_0x33fdab[_0x8c3fde(0x333)]);_0x4262c7['name']+=',\x20'+_0x33fdab[_0x8c3fde(0x2d6)];}else _0x186b25[_0x8c3fde(0x164)](_0x33fdab[_0x8c3fde(0x333)],_0x33fdab);}),Array[_0x59d31b(0x1eb)](_0x186b25['values']());}function An(_0x352742){return typeof _0x352742=='object'&&!!_0x352742;}function jn(_0x3e96e9){const _0x1c659c=_0x7ea594;return _0x3e96e9['eventID']===_0x865df6[_0x1c659c(0x207)]&&_0x1c659c(0x10b)in _0x3e96e9&&An(_0x3e96e9[_0x1c659c(0x10b)])&&typeof _0x3e96e9[_0x1c659c(0x10b)][_0x1c659c(0x35a)]==_0x1c659c(0xfc)&&typeof _0x3e96e9[_0x1c659c(0x10b)]['selection']==_0x1c659c(0xfc);}function Mn(_0x2d7425){const _0x34b199=_0x7ea594;return _0x2d7425[_0x34b199(0x24f)]===_0x865df6['USERS_LEAVE']&&_0x34b199(0x10b)in _0x2d7425&&An(_0x2d7425['data'])&&typeof _0x2d7425['data'][_0x34b199(0x35a)]==_0x34b199(0xfc);}function Nn(_0x47fa1c,_0x3fc24d){const _0x4025ea=_0x7ea594;let _0x46bb3d;try{_0x46bb3d=JSON[_0x4025ea(0x188)](_0x47fa1c);}catch{return null;}if(!An(_0x46bb3d)||typeof _0x46bb3d[_0x4025ea(0x2fc)]!=_0x4025ea(0xfc)||typeof _0x46bb3d[_0x4025ea(0x2ce)]!=_0x4025ea(0xfc)||typeof _0x46bb3d[_0x4025ea(0x29f)]!=_0x4025ea(0xfc))return null;let _0x983260=typeof _0x46bb3d['unitType']=='number'?_0x46bb3d['unitType']:_0x3fc24d;if(_0x983260==null)return null;let _0x2aedef=An(_0x46bb3d[_0x4025ea(0x25e)])&&typeof _0x46bb3d[_0x4025ea(0x25e)]['x']==_0x4025ea(0x2e9)&&Number[_0x4025ea(0x310)](_0x46bb3d[_0x4025ea(0x25e)]['x'])&&typeof _0x46bb3d[_0x4025ea(0x25e)]['y']=='number'&&Number['isFinite'](_0x46bb3d[_0x4025ea(0x25e)]['y'])?{'x':_0x46bb3d[_0x4025ea(0x25e)]['x'],'y':_0x46bb3d[_0x4025ea(0x25e)]['y']}:null;return{'kind':_0x46bb3d['kind'],'unitType':_0x983260,'unitId':_0x46bb3d[_0x4025ea(0x2ce)],'subUnitId':_0x46bb3d['subUnitId'],'selectedIds':Array[_0x4025ea(0x312)](_0x46bb3d[_0x4025ea(0x23a)])?_0x46bb3d[_0x4025ea(0x23a)]['filter'](_0x5a4278=>typeof _0x5a4278==_0x4025ea(0xfc)):[],'focusedId':typeof _0x46bb3d['focusedId']==_0x4025ea(0xfc)?_0x46bb3d[_0x4025ea(0x21c)]:null,'pointer':_0x2aedef};}function Pn(_0x448776,_0x21697d,_0xe9dbd2){const _0x1d4514=_0x7ea594;return{'kind':_0x21697d,'unitType':_0x448776,'unitId':_0xe9dbd2['unitId'],'subUnitId':_0xe9dbd2[_0x1d4514(0x29f)],'selectedIds':Array[_0x1d4514(0x1eb)](_0xe9dbd2[_0x1d4514(0x23a)]),'focusedId':_0xe9dbd2[_0x1d4514(0x21c)],'pointer':_0xe9dbd2['pointer']?{..._0xe9dbd2[_0x1d4514(0x25e)]}:null};}let Fn=class extends _0x28ff85{constructor(_0x141a95,_0x41479c,_0x357259,_0x12f3d2,_0x541485,_0x15eff9){const _0x1a4f5b=_0x7ea594;super(),this[_0x1a4f5b(0x2ce)]=_0x141a95,this[_0x1a4f5b(0x2a0)]=_0x41479c,this['_adapter']=_0x357259,this[_0x1a4f5b(0x20c)]=_0x12f3d2,this[_0x1a4f5b(0x344)]=_0x541485,this['_commandService']=_0x15eff9,J(this,_0x1a4f5b(0x22d),!0x1),J(this,'_initialized',!0x1);}get['unitType'](){const _0x4ad5a8=_0x7ea594;return this[_0x4ad5a8(0x180)][_0x4ad5a8(0x2cd)];}[_0x7ea594(0x2f1)](){const _0x2609b0=_0x7ea594;this[_0x2609b0(0x1fb)](),super[_0x2609b0(0x2f1)]();}[_0x7ea594(0x1ee)](){const _0x25061c=_0x7ea594;this[_0x25061c(0xeb)]||(this[_0x25061c(0xeb)]=!0x0,this['_session'][_0x25061c(0x1e9)][_0x25061c(0x1d5)](_0x2a3afc(this[_0x25061c(0x190)]))[_0x25061c(0x1de)](_0x3e4ad1=>{const _0x13f6ce=_0x25061c;if(_0x3e4ad1===_0xa8ada1[_0x13f6ce(0x287)]){this['_online']=!0x0;let _0x1b2b6c=this[_0x13f6ce(0x180)][_0x13f6ce(0x210)](this['unitId']);_0x1b2b6c&&this[_0x13f6ce(0x1a6)](_0x1b2b6c);}else this[_0x13f6ce(0x22d)]=!0x1,this[_0x13f6ce(0x1fb)]();}),this[_0x25061c(0x2a0)][_0x25061c(0x1d4)][_0x25061c(0x1d5)](_0x2a3afc(this['dispose$']))[_0x25061c(0x1de)](_0x491a89=>{const _0x2e4ae1=_0x25061c;jn(_0x491a89)?this[_0x2e4ae1(0x2ac)](_0x491a89):Mn(_0x491a89)&&this['_removeRemotePresence'](_0x491a89[_0x2e4ae1(0x10b)][_0x2e4ae1(0x35a)]);}),this[_0x25061c(0x180)][_0x25061c(0xf2)]['pipe'](_0x399a72(_0x98ee91=>this[_0x25061c(0x22d)]&&_0x98ee91['unitId']===this[_0x25061c(0x2ce)]),_0x3dbcf7(_0x4f25e2=>_0x46c7e6(_0x4f25e2['shareInterval']),{'leading':!0x0,'trailing':!0x0}),_0x2a3afc(this[_0x25061c(0x190)]))[_0x25061c(0x1de)](_0x2e077e=>this['_sendLocalPresence'](_0x2e077e)));}[_0x7ea594(0x1a6)](_0x564ec6){const _0x57afed=_0x7ea594;let _0xfe94c9=this[_0x57afed(0x2a0)][_0x57afed(0x13b)]();if(!_0xfe94c9||!this['_online'])return;let _0x5f15ef={'eventID':_0x865df6['UPDATE_CURSOR'],'data':{'unitID':this[_0x57afed(0x2ce)],'memberID':_0xfe94c9,'selection':JSON[_0x57afed(0x34a)](Pn(this[_0x57afed(0x2cd)],this[_0x57afed(0x180)]['presenceKind'],_0x564ec6))}};this[_0x57afed(0x2a0)][_0x57afed(0xdc)](_0x5f15ef,this[_0x57afed(0x2ce)])[_0x57afed(0x193)](()=>void 0x0);}[_0x7ea594(0x2ac)](_0x58ad2b){const _0x29ad3a=_0x7ea594;let {memberID:_0x42452d,selection:_0x328337}=_0x58ad2b[_0x29ad3a(0x10b)];if(_0x42452d===this[_0x29ad3a(0x2a0)][_0x29ad3a(0x13b)]())return;let _0x3379e9=Nn(_0x328337,this[_0x29ad3a(0x2cd)]);if(!_0x3379e9||_0x3379e9[_0x29ad3a(0x2fc)]!==this[_0x29ad3a(0x180)]['presenceKind']||_0x3379e9[_0x29ad3a(0x2cd)]!==this[_0x29ad3a(0x2cd)]||_0x3379e9[_0x29ad3a(0x2ce)]!==this['unitId'])return;let _0x22bf12=this['_memberService'][_0x29ad3a(0x2d8)](this['unitId'],_0x42452d),_0x5e44fb={'unitId':_0x3379e9[_0x29ad3a(0x2ce)],'subUnitId':_0x3379e9[_0x29ad3a(0x29f)],'selectedIds':_0x3379e9[_0x29ad3a(0x23a)],'focusedId':_0x3379e9[_0x29ad3a(0x21c)],'pointer':_0x3379e9['pointer'],'memberId':_0x42452d,'color':this[_0x29ad3a(0x20c)]['assignAColorForMemberID'](_0x42452d),'name':(_0x22bf12==null?void 0x0:_0x22bf12[_0x29ad3a(0x2d6)])??_0x42452d};this[_0x29ad3a(0x1c1)][_0x29ad3a(0x175)](ln['id'],{'unitType':this[_0x29ad3a(0x2cd)],'update':{'type':_0x29ad3a(0x164),'state':_0x5e44fb}})[_0x29ad3a(0x193)](()=>void 0x0);}[_0x7ea594(0xfb)](_0x5e0ab5){const _0x4f6a63=_0x7ea594;this['_commandService'][_0x4f6a63(0x175)](ln['id'],{'unitType':this[_0x4f6a63(0x2cd)],'update':{'type':'remove','unitId':this[_0x4f6a63(0x2ce)],'memberId':_0x5e0ab5}})[_0x4f6a63(0x193)](()=>void 0x0);}[_0x7ea594(0x1fb)](){const _0x4fb899=_0x7ea594;this['_commandService'][_0x4fb899(0x175)](ln['id'],{'unitType':this[_0x4fb899(0x2cd)],'update':{'type':'clear','unitId':this[_0x4fb899(0x2ce)]}})[_0x4fb899(0x193)](()=>void 0x0);}};Fn=X([Y(0x3,_0x5c888d(pn)),Y(0x4,_0x5c888d(_0x268c3a)),Y(0x5,_0x5c888d(_0x15fe51))],Fn);let In=class extends _0x28ff85{constructor(_0x59ac5c,_0x416dc7,_0x2aa420,_0x4cbd89){const _0x4d8ce7=_0x7ea594;super(),this[_0x4d8ce7(0x337)]=_0x59ac5c,this[_0x4d8ce7(0x140)]=_0x416dc7,this[_0x4d8ce7(0x2a4)]=_0x2aa420,this[_0x4d8ce7(0x1df)]=_0x4cbd89,J(this,_0x4d8ce7(0x15d),!0x1),J(this,_0x4d8ce7(0x33c),new Map()),J(this,'_pendingEntities',new Map()),J(this,'_adapterDisposables',new Map()),this[_0x4d8ce7(0x191)]();}['dispose'](){const _0x4d6dd2=_0x7ea594;this[_0x4d6dd2(0x15d)]=!0x0,this[_0x4d6dd2(0x21e)][_0x4d6dd2(0x2c0)](_0xe2e4dc=>_0xe2e4dc['dispose']()),this[_0x4d6dd2(0x21e)][_0x4d6dd2(0x221)](),this[_0x4d6dd2(0x33c)][_0x4d6dd2(0x2c0)](_0x4f65e9=>_0x4f65e9[_0x4d6dd2(0x2f1)]()),this['_entities'][_0x4d6dd2(0x221)](),this[_0x4d6dd2(0x267)][_0x4d6dd2(0x221)](),super[_0x4d6dd2(0x2f1)]();}[_0x7ea594(0x191)](){const _0x5bb7c1=_0x7ea594;this['_adapterRegistry'][_0x5bb7c1(0x24a)][_0x5bb7c1(0x1d5)](_0x2a3afc(this[_0x5bb7c1(0x190)]))[_0x5bb7c1(0x1de)](_0xb0edf4=>this[_0x5bb7c1(0x29d)](_0xb0edf4));}[_0x7ea594(0x29d)](_0x163b4f){const _0x89eca4=_0x7ea594;let _0x25b79a=new Set(_0x163b4f[_0x89eca4(0x171)](_0x506e32=>_0x506e32['unitType']));this['_adapterDisposables'][_0x89eca4(0x2c0)]((_0x145dd5,_0xccf694)=>{const _0x2782b4=_0x89eca4;_0x25b79a[_0x2782b4(0x2c5)](_0xccf694)||(_0x145dd5[_0x2782b4(0x2f1)](),this[_0x2782b4(0x21e)][_0x2782b4(0x182)](_0xccf694),this[_0x2782b4(0xf9)](_0xccf694));}),_0x163b4f[_0x89eca4(0x2c0)](_0x359f27=>{const _0x5b84d8=_0x89eca4;this[_0x5b84d8(0x21e)][_0x5b84d8(0x2c5)](_0x359f27[_0x5b84d8(0x2cd)])||this[_0x5b84d8(0x13d)](_0x359f27);});}[_0x7ea594(0x13d)](_0x402c18){const _0x436193=_0x7ea594;let _0x1b93a6=new _0x200b02();this[_0x436193(0x21e)][_0x436193(0x164)](_0x402c18['unitType'],_0x1b93a6),_0x1b93a6[_0x436193(0x1ce)](_0x402c18[_0x436193(0xdd)]()),this[_0x436193(0x337)][_0x436193(0x315)](_0x402c18[_0x436193(0x2cd)])[_0x436193(0x2c0)](_0x4fb861=>this['_startEntity'](_0x4fb861[_0x436193(0x270)](),_0x402c18)['catch'](()=>void 0x0));let _0x81043b=this[_0x436193(0x337)][_0x436193(0xf5)](_0x402c18[_0x436193(0x2cd)])['subscribe'](({unit:_0x447b52})=>this[_0x436193(0x30c)](_0x447b52[_0x436193(0x270)](),_0x402c18)[_0x436193(0x193)](()=>void 0x0));_0x1b93a6[_0x436193(0x1ce)](_0x42bb3c(()=>_0x81043b[_0x436193(0x1bc)]()));let _0x263870=this['_univerInstanceService'][_0x436193(0x2ca)](_0x402c18[_0x436193(0x2cd)])[_0x436193(0x1de)](_0x3002d6=>this['_disposeEntity'](_0x3002d6[_0x436193(0x270)]()));_0x1b93a6[_0x436193(0x1ce)](_0x42bb3c(()=>_0x263870[_0x436193(0x1bc)]()));}async[_0x7ea594(0x30c)](_0x30ae71,_0x2435bf){const _0xe463c7=_0x7ea594;if(this['_entities'][_0xe463c7(0x2c5)](_0x30ae71)||this[_0xe463c7(0x267)][_0xe463c7(0x2c5)](_0x30ae71))return;let _0x9de98c={};this['_pendingEntities']['set'](_0x30ae71,_0x9de98c);let _0x608abd=await this[_0xe463c7(0x2a4)][_0xe463c7(0x348)](_0x30ae71)['catch'](_0x2be489=>{const _0x14e9e9=_0xe463c7;throw this[_0x14e9e9(0x267)][_0x14e9e9(0x161)](_0x30ae71)===_0x9de98c&&this[_0x14e9e9(0x267)]['delete'](_0x30ae71),_0x2be489;});if(this[_0xe463c7(0x15d)]||this['_pendingEntities']['get'](_0x30ae71)!==_0x9de98c||this[_0xe463c7(0x1df)][_0xe463c7(0x161)](_0x2435bf[_0xe463c7(0x2cd)])!==_0x2435bf){this[_0xe463c7(0x267)][_0xe463c7(0x161)](_0x30ae71)===_0x9de98c&&this[_0xe463c7(0x267)][_0xe463c7(0x182)](_0x30ae71);return;}let _0x5525da=this['_injector'][_0xe463c7(0x10a)](Fn,_0x30ae71,_0x608abd,_0x2435bf);_0x5525da['init'](),this[_0xe463c7(0x267)]['delete'](_0x30ae71),this[_0xe463c7(0x33c)][_0xe463c7(0x164)](_0x30ae71,_0x5525da);}[_0x7ea594(0x1ec)](_0x2a6b20){const _0xd2b04a=_0x7ea594;this[_0xd2b04a(0x267)][_0xd2b04a(0x182)](_0x2a6b20);let _0x526d98=this[_0xd2b04a(0x33c)][_0xd2b04a(0x161)](_0x2a6b20);_0x526d98&&(_0x526d98['dispose'](),this[_0xd2b04a(0x33c)]['delete'](_0x2a6b20));}[_0x7ea594(0xf9)](_0x44304e){const _0x11dfa7=_0x7ea594;this[_0x11dfa7(0x337)][_0x11dfa7(0x315)](_0x44304e)[_0x11dfa7(0x2c0)](_0x2c6b43=>this['_pendingEntities'][_0x11dfa7(0x182)](_0x2c6b43['getUnitId']())),Array[_0x11dfa7(0x1eb)](this[_0x11dfa7(0x33c)]['entries']())[_0x11dfa7(0x2c0)](([_0x8ecc4c,_0x415f2a])=>{const _0x4abb96=_0x11dfa7;_0x415f2a[_0x4abb96(0x2cd)]===_0x44304e&&this[_0x4abb96(0x1ec)](_0x8ecc4c);});}};In=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x451f97)),Y(0x2,_0x5c888d(_0x25de4e)),Y(0x3,_0x5c888d(_0x14c253))],In);const Ln={'toast':_0x7ea594(0x248),'actionButton':_0x7ea594(0x2de)},Rn={'title':'collaboration-client-ui.conflict.title','content':'collaboration-client-ui.conflict.content','type':'error'},zn={'permission_rejected':{'title':_0x7ea594(0x143),'content':_0x7ea594(0x18c),'type':_0x7ea594(0x19d)},'license_unit_type_rejected':{'title':_0x7ea594(0x205),'content':'collaboration-client-ui.license.unit-type-rejected','type':_0x7ea594(0x19d)},'remote_revert':{'title':_0x7ea594(0x299),'content':_0x7ea594(0x2f4),'type':'warning'}};let Bn=class extends _0x2c43e7{constructor(_0x449de8,_0x1a4b07,_0x268386,_0x675eab,_0x235920,_0x2f771d,_0x42f18a,_0x2cd6c8){const _0x288b4e=_0x7ea594;var _0x38f958;super(),this['_beforeCloseService']=_0x449de8,this[_0x288b4e(0x2bf)]=_0x1a4b07,this['_collaborationUIEventService']=_0x268386,this[_0x288b4e(0x177)]=_0x675eab,this[_0x288b4e(0xde)]=_0x235920,this[_0x288b4e(0x133)]=_0x2f771d,this['_collaborationController']=_0x42f18a,this[_0x288b4e(0x113)]=_0x2cd6c8,J(this,_0x288b4e(0x2be),null),J(this,_0x288b4e(0x340),new Set()),J(this,_0x288b4e(0x199),new Map()),J(this,_0x288b4e(0x183),new Map()),this[_0x288b4e(0x252)](),this[_0x288b4e(0x120)](),this[_0x288b4e(0x27b)](),((_0x38f958=this[_0x288b4e(0x113)]['getConfig']('collaboration-client-ui.config'))==null?void 0x0:_0x38f958['enableDefaultConflictUI'])!==!0x1&&this['_initConflictHandling']();}[_0x7ea594(0x2f1)](){const _0x12a188=_0x7ea594;var _0x2a9cd5;(_0x2a9cd5=this['_conflictNotification'])==null||_0x2a9cd5[_0x12a188(0x2f1)](),this[_0x12a188(0x2be)]=null;for(let _0x358707 of[this[_0x12a188(0x199)],this['_editingConnectionsExceededNotices']])_0x358707[_0x12a188(0x2c0)](_0x4187c0=>_0x4187c0[_0x12a188(0x2f1)]()),_0x358707[_0x12a188(0x221)]();super[_0x12a188(0x2f1)]();}['_initAwaitingNotices'](){const _0x9a758b=_0x7ea594;let _0xa349d3=_0x5c5837=>{const _0x1bc8fe=_0x1c2b;let _0x5c153e=new _0x200b02();_0x5c153e[_0x1bc8fe(0x1ce)](_0x42bb3c(_0x5c5837['changesetResend$'][_0x1bc8fe(0x1de)]({'next':_0x3651ef=>{const _0x3270ed=_0x1bc8fe;_0x3651ef['elapsedMs']>=0x4e20&&this[_0x3270ed(0x1ff)](this[_0x3270ed(0x199)],_0x5c5837['unitID'],_0x3270ed(0x1f9)),_0x3651ef[_0x3270ed(0x12e)]===_0x3270ed(0x10f)&&this[_0x3270ed(0x1ff)](this[_0x3270ed(0x183)],_0x5c5837[_0x3270ed(0x195)],'collaboration-client-ui.license.editing-connections-exceeded');},'complete':()=>{const _0x25591d=_0x1bc8fe;this[_0x25591d(0x1a8)](_0x5c5837[_0x25591d(0x195)]),_0x5c153e[_0x25591d(0x2f1)]();}}))),_0x5c153e[_0x1bc8fe(0x1ce)](_0x42bb3c(_0x5c5837[_0x1bc8fe(0x271)][_0x1bc8fe(0x1de)](_0x17931f=>{const _0x5374c3=_0x1bc8fe;_0x17931f!==_0x65ab9a[_0x5374c3(0x20a)]&&_0x17931f!==_0x65ab9a[_0x5374c3(0xe2)]&&this[_0x5374c3(0x1a8)](_0x5c5837[_0x5374c3(0x195)]);}))),this['disposeWithMe'](_0x5c153e);};this[_0x9a758b(0x1fe)][_0x9a758b(0x2d5)]()[_0x9a758b(0x2c0)](_0xa349d3),this[_0x9a758b(0xf8)](_0x42bb3c(this[_0x9a758b(0x1fe)]['entityInit$'][_0x9a758b(0x1de)](_0xa349d3)));}[_0x7ea594(0x1ff)](_0x42fb62,_0x1d2743,_0x32fa37){const _0x28d920=_0x7ea594;_0x42fb62[_0x28d920(0x2c5)](_0x1d2743)||_0x42fb62['set'](_0x1d2743,this[_0x28d920(0xde)][_0x28d920(0x1f0)]({'title':this[_0x28d920(0x133)]['t'](_0x32fa37),'type':_0x28d920(0x231),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}['_removeAwaitingNotices'](_0x35a25d){const _0x310e16=_0x7ea594;for(let _0x3702bf of[this[_0x310e16(0x199)],this[_0x310e16(0x183)]]){var _0x49d80f;(_0x49d80f=_0x3702bf[_0x310e16(0x161)](_0x35a25d))==null||_0x49d80f[_0x310e16(0x2f1)](),_0x3702bf[_0x310e16(0x182)](_0x35a25d);}}[_0x7ea594(0x252)](){const _0x5f3420=_0x7ea594;this['disposeWithMe'](this[_0x5f3420(0x322)]['registerBeforeClose'](()=>{const _0x3eb6c2=_0x5f3420;if(this[_0x3eb6c2(0x2bf)]['saveTaskMap'][_0x3eb6c2(0x18e)])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x7ea594(0x202)](){const _0x414e1f=_0x7ea594;let _0x436ed3=_0x50409c=>{const _0xe75172=_0x1c2b;this[_0xe75172(0xf8)](_0x42bb3c(_0x50409c['conflict$'][_0xe75172(0x1de)](_0xe6cf56=>this[_0xe75172(0x2c3)](_0xe6cf56))));};this[_0x414e1f(0x1fe)][_0x414e1f(0x2d5)]()[_0x414e1f(0x2c0)](_0x436ed3),this[_0x414e1f(0xf8)](_0x42bb3c(this[_0x414e1f(0x1fe)][_0x414e1f(0x1f3)][_0x414e1f(0x1de)](_0x436ed3)));}[_0x7ea594(0x2c3)](_0x3d29ad){const _0x1a96e5=_0x7ea594;if(!_0x3d29ad[_0x1a96e5(0x306)])return;let _0x25a8a6=zn[_0x3d29ad['reason']]??Rn;this[_0x1a96e5(0x236)]({'title':this[_0x1a96e5(0x133)]['t'](_0x25a8a6[_0x1a96e5(0x201)]),'content':this[_0x1a96e5(0x133)]['t'](_0x25a8a6[_0x1a96e5(0x1d6)]),'type':_0x25a8a6[_0x1a96e5(0x34f)],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Ln,'action':{'label':this['_localeService']['t'](_0x1a96e5(0x25b)),'onClick':_0x3568a3=>{const _0x43197e=_0x1a96e5;_0x3568a3[_0x43197e(0x2c2)](),this[_0x43197e(0x127)]();}}});}[_0x7ea594(0x127)](){const _0x39b796=_0x7ea594;window[_0x39b796(0x118)][_0x39b796(0x2a3)]();}['_initEvent'](){const _0x445627=_0x7ea594;this[_0x445627(0xf8)](this[_0x445627(0x102)][_0x445627(0x1d4)]['subscribe'](_0xfa1cce=>{const _0x5107ad=_0x445627;_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x300)]&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015['Warning'],'content':this[_0x5107ad(0x133)]['t'](_0x5107ad(0x318))}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x264)]&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x249)],'content':this['_localeService']['t'](_0x5107ad(0x1fc))}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x203)]&&this[_0x5107ad(0x343)](),_0xfa1cce['id']===_0x1d65e1['CONFLICT_CACHE_CLEAR_FAILED']&&_0xfa1cce['unitID']&&this[_0x5107ad(0xf0)](_0xfa1cce[_0x5107ad(0x195)],_0xfa1cce['userId']??''),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x301)]&&this[_0x5107ad(0x177)]['show']({'type':_0x3a5015['Warning'],'content':this[_0x5107ad(0x133)]['t'](_0xfa1cce['data']||'')}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x1c0)]&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x249)],'content':this[_0x5107ad(0x133)]['t'](_0x5107ad(0x21d))}),_0xfa1cce['id']===_0x1d65e1['SOCKET_FAILED']&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x2e0)],'content':this['_localeService']['t'](_0x5107ad(0x268))}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x1b2)]&&this['_messageService'][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x2e0)],'content':this['_localeService']['t'](_0x5107ad(0x241))});}));}[_0x7ea594(0x343)](){const _0x229115=_0x7ea594;this[_0x229115(0x236)]({'title':this['_localeService']['t'](_0x229115(0xf7)),'content':this[_0x229115(0x133)]['t'](_0x229115(0x227)),'type':_0x229115(0x198),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x5217c8,_0x1b0fd7){const _0x49613d=_0x7ea594;this['_replaceConflictNotification']({'title':this[_0x49613d(0x133)]['t'](_0x49613d(0xf7)),'content':this[_0x49613d(0x133)]['t'](_0x49613d(0x14a)),'type':_0x49613d(0x19d),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Ln,'action':{'label':this['_localeService']['t'](_0x49613d(0x2a5)),'onClick':_0x5701d6=>{const _0x59e802=_0x49613d;_0x5701d6[_0x59e802(0x2c2)](),this['_retryConflictCacheClear'](_0x5217c8,_0x1b0fd7);}}});}[_0x7ea594(0x2d9)](_0x51b186,_0x5f2d42){const _0x26c1d9=_0x7ea594;let _0x559b8d=_0x51b186+':'+(_0x5f2d42??'');this['_retryingConflictCacheUnitIDs'][_0x26c1d9(0x2c5)](_0x559b8d)||(this[_0x26c1d9(0x340)][_0x26c1d9(0x1ce)](_0x559b8d),this['_showConflictProcessingNotification'](),this[_0x26c1d9(0x2bf)]['clearOfflineData'](_0x51b186,_0x5f2d42)[_0x26c1d9(0x35b)](()=>this[_0x26c1d9(0x127)]())[_0x26c1d9(0x193)](()=>this[_0x26c1d9(0xf0)](_0x51b186,_0x5f2d42))[_0x26c1d9(0x2ae)](()=>this[_0x26c1d9(0x340)]['delete'](_0x559b8d)));}[_0x7ea594(0x236)](_0x255a32){const _0x54c690=_0x7ea594;var _0x58bd56;(_0x58bd56=this[_0x54c690(0x2be)])==null||_0x58bd56['dispose'](),this[_0x54c690(0x2be)]=this[_0x54c690(0xde)]['show'](_0x255a32);}};Bn=X([Y(0x0,_0x3eb2d8),Y(0x1,_0x471d6f),Y(0x2,_0x5c888d(_0x603f72)),Y(0x3,_0x4953bc),Y(0x4,_0x5b6302),Y(0x5,_0x5c888d(_0x292d2f)),Y(0x6,_0x5c888d(_0x2279ca)),Y(0x7,_0x16ce58)],Bn);let Vn=class{constructor(_0x37310e,_0x473012){const _0x256cec=_0x7ea594;this['_transformService']=_0x37310e,this[_0x256cec(0x1fa)]=_0x473012;}[_0x7ea594(0x20e)](_0x4dc3e0){const _0x54e772=_0x7ea594;this[_0x54e772(0x144)](_0x4dc3e0),this[_0x54e772(0x15f)](_0x4dc3e0);}[_0x7ea594(0x168)](_0x18a28b){const _0x4eb64f=_0x7ea594;let {unitID:_0x3b89a8}=_0x18a28b,{redoCache:_0x3e0ec5}=this[_0x4eb64f(0x1fa)]['getRenderUnitById'](_0x3b89a8)[_0x4eb64f(0x263)](_0x4434b8)[_0x4eb64f(0x2ba)]();if(_0x3e0ec5[_0x4eb64f(0x121)]===0x0)return _0x18a28b;let _0x189e9d=_0x40f052[_0x4eb64f(0x2ef)](_0x18a28b['mutations'][0x0]);for(let _0x1be35c=0x0;_0x1be35c<_0x3e0ec5['length'];_0x1be35c++){let _0x395e6b={'id':_0x4eb64f(0x272),'params':{..._0x3e0ec5[_0x1be35c]}},_0xa498a3=this[_0x4eb64f(0xdf)][_0x4eb64f(0x2e4)](_0x189e9d,_0x395e6b,!0x1);if(_0x13597e(_0xa498a3))throw _0xa498a3['error'];_0x189e9d=_0xa498a3['m1Prime'];}return{..._0x40f052[_0x4eb64f(0x2ef)](_0x18a28b),'mutations':[_0x189e9d]};}[_0x7ea594(0x144)](_0x384b28){const _0x5d8f88=_0x7ea594;let {unitID:_0x26b8bc}=_0x384b28,_0x33fdcc=this[_0x5d8f88(0x1fa)][_0x5d8f88(0x30b)](_0x26b8bc)[_0x5d8f88(0x263)](_0x4434b8),{undoCache:_0xbd81e1,redoCache:_0x331baa}=_0x33fdcc['getUndoRedoMutationParamsCache']();if(_0xbd81e1[_0x5d8f88(0x121)]===0x0||_0x331baa['length']===0x0)return;let _0x5841a4=[],_0xe63e0c=[],_0x3b0c58=_0x40f052['deepClone'](_0x384b28[_0x5d8f88(0x109)][0x0]),_0xa9efbb=_0x40f052[_0x5d8f88(0x2ef)](_0x384b28[_0x5d8f88(0x109)][0x0]);for(let _0x5f3a2b=_0xbd81e1[_0x5d8f88(0x121)]-0x1;_0x5f3a2b>=0x0;_0x5f3a2b--){let _0x2325ad={'id':_0x5d8f88(0x272),'params':{..._0xbd81e1[_0x5f3a2b]}},_0x1decf0={'id':_0x5d8f88(0x272),'params':{..._0x331baa[_0x5f3a2b]}},_0x32a5f0=this[_0x5d8f88(0xdf)][_0x5d8f88(0x2e4)](_0x3b0c58,_0x2325ad,!0x1),_0x482a14=this[_0x5d8f88(0xdf)]['transformMutation'](_0xa9efbb,_0x1decf0,!0x1);if(_0x13597e(_0x32a5f0))throw _0x32a5f0[_0x5d8f88(0x19d)];if(_0x13597e(_0x482a14))throw _0x482a14[_0x5d8f88(0x19d)];_0x5841a4[_0x5d8f88(0x174)](_0x32a5f0[_0x5d8f88(0x2ad)][_0x5d8f88(0x131)]),_0xe63e0c[_0x5d8f88(0x174)](_0x482a14[_0x5d8f88(0x2ad)][_0x5d8f88(0x131)]),_0x3b0c58=_0x32a5f0[_0x5d8f88(0x27c)],_0xa9efbb=_0x482a14['m1Prime'];}_0x33fdcc[_0x5d8f88(0x282)]({'undoCache':_0x5841a4,'redoCache':_0xe63e0c});}[_0x7ea594(0x15f)](_0x3a32b8){const _0x21d8fe=_0x7ea594;let {unitID:_0x4306f4}=_0x3a32b8,_0x1d8e32=this[_0x21d8fe(0x1fa)][_0x21d8fe(0x30b)](_0x4306f4)[_0x21d8fe(0x263)](_0x4434b8),_0x5003d0=_0x1d8e32[_0x21d8fe(0x1bf)]();if(_0x5003d0==null)return;let _0x1950e8=[{'id':_0x21d8fe(0x272),'params':{'unitId':_0x3a32b8[_0x21d8fe(0x195)],'actions':null,'textRanges':[_0x5003d0]}}],_0x3664e3=this[_0x21d8fe(0xdf)][_0x21d8fe(0x33d)](_0x3a32b8,_0x1950e8);if(!_0x1db856(_0x3664e3))throw _0x3664e3[_0x21d8fe(0x19d)];let _0x4ce5e3=_0x3664e3['m2Prime'][0x0][_0x21d8fe(0x131)][_0x21d8fe(0x1cf)];Array[_0x21d8fe(0x312)](_0x4ce5e3)&&_0x4ce5e3[_0x21d8fe(0x121)]&&_0x1d8e32['setActiveRange'](_0x4ce5e3[0x0]);}};Vn=X([Y(0x0,_0x31acf5),Y(0x1,_0x23794e)],Vn);let Hn=class{constructor(_0x52c1f8,_0x1a7b65,_0x58c2f5){const _0x378016=_0x7ea594;this[_0x378016(0x140)]=_0x52c1f8,this[_0x378016(0xdf)]=_0x1a7b65,this[_0x378016(0x307)]=_0x58c2f5;}[_0x7ea594(0x29b)](_0xf12f31){const _0x68d894=_0x7ea594;this[_0x68d894(0x16b)](_0xf12f31);}['transformRemoteChangeset'](_0x210361){const _0x3ba1a5=_0x7ea594;let {unitID:_0x278d39}=_0x210361,{collaboration:_0x244c85}=this[_0x3ba1a5(0x307)][_0x3ba1a5(0x22f)](_0x278d39);if(_0x244c85[_0x3ba1a5(0x121)]===0x0)return _0x210361;let _0x311f7b=_0x40f052[_0x3ba1a5(0x2ef)](_0x210361[_0x3ba1a5(0x109)][0x0]);for(let _0x1c528a=0x0;_0x1c528a<_0x244c85[_0x3ba1a5(0x121)];_0x1c528a++){let _0x205ef1={'id':_0x3ba1a5(0x272),'params':{'unitId':_0x244c85[_0x1c528a][_0x3ba1a5(0x2ce)],..._0x244c85[_0x1c528a][_0x3ba1a5(0x14e)]}},_0x20f2b3=this[_0x3ba1a5(0xdf)]['transformMutation'](_0x311f7b,_0x205ef1,!0x1);if(_0x13597e(_0x20f2b3))throw _0x20f2b3[_0x3ba1a5(0x19d)];_0x311f7b=_0x20f2b3[_0x3ba1a5(0x27c)];}return{..._0x40f052[_0x3ba1a5(0x2ef)](_0x210361),'mutations':[_0x311f7b]};}[_0x7ea594(0x16b)](_0x14e8d1){const _0x6d91c2=_0x7ea594;let {unitID:_0x440956}=_0x14e8d1,{history:_0x2a8a36,collaboration:_0x1bcba3}=this[_0x6d91c2(0x307)][_0x6d91c2(0x22f)](_0x440956);if(_0x2a8a36[_0x6d91c2(0x121)]===0x0&&_0x1bcba3['length']===0x0)return;let _0x56e43e=[],_0x4b2adb=[],_0x5a5fdc=_0x40f052[_0x6d91c2(0x2ef)](_0x14e8d1[_0x6d91c2(0x109)][0x0]),_0x87eb35=_0x40f052[_0x6d91c2(0x2ef)](_0x14e8d1[_0x6d91c2(0x109)][0x0]);for(let _0x19870a=_0x2a8a36['length']-0x1;_0x19870a>=0x0;_0x19870a--){let _0x3686ee={'id':_0x6d91c2(0x272),'params':{'unitId':_0x2a8a36[_0x19870a]['unitId'],..._0x2a8a36[_0x19870a][_0x6d91c2(0x1ba)]}},_0x3f3fab={'id':_0x6d91c2(0x272),'params':{'unitId':_0x2a8a36[_0x19870a][_0x6d91c2(0x2ce)],..._0x2a8a36[_0x19870a][_0x6d91c2(0x14e)]}},_0x33fbf8=this[_0x6d91c2(0xdf)][_0x6d91c2(0x2e4)](_0x5a5fdc,_0x3686ee,!0x1),_0x5206eb=this['_transformService'][_0x6d91c2(0x2e4)](_0x87eb35,_0x3f3fab,!0x1);if(_0x13597e(_0x33fbf8))throw _0x33fbf8[_0x6d91c2(0x19d)];if(_0x13597e(_0x5206eb))throw _0x5206eb['error'];_0x56e43e[_0x6d91c2(0x174)]({..._0x2a8a36[_0x19870a],'undoState':_0x33fbf8[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)],'redoState':_0x5206eb[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)]}),_0x5a5fdc=_0x33fbf8['m1Prime'],_0x87eb35=_0x5206eb[_0x6d91c2(0x27c)];}_0x5a5fdc=_0x40f052['deepClone'](_0x14e8d1['mutations'][0x0]),_0x87eb35=_0x40f052['deepClone'](_0x14e8d1[_0x6d91c2(0x109)][0x0]);for(let _0x2c8869=_0x1bcba3[_0x6d91c2(0x121)]-0x1;_0x2c8869>=0x0;_0x2c8869--){let _0x57c3ef={'id':_0x6d91c2(0x272),'params':{'unitId':_0x1bcba3[_0x2c8869][_0x6d91c2(0x2ce)],..._0x1bcba3[_0x2c8869][_0x6d91c2(0x1ba)]}},_0x3ea2b9={'id':_0x6d91c2(0x272),'params':{'unitId':_0x1bcba3[_0x2c8869]['unitId'],..._0x1bcba3[_0x2c8869][_0x6d91c2(0x14e)]}},_0x5b5755=this[_0x6d91c2(0xdf)][_0x6d91c2(0x2e4)](_0x5a5fdc,_0x57c3ef,!0x1),_0x1d40bf=this[_0x6d91c2(0xdf)][_0x6d91c2(0x2e4)](_0x87eb35,_0x3ea2b9,!0x1);if(_0x13597e(_0x5b5755))throw _0x5b5755[_0x6d91c2(0x19d)];if(_0x13597e(_0x1d40bf))throw _0x1d40bf[_0x6d91c2(0x19d)];_0x4b2adb[_0x6d91c2(0x174)]({..._0x1bcba3[_0x2c8869],'undoState':_0x5b5755[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)],'redoState':_0x1d40bf[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)]}),_0x5a5fdc=_0x5b5755[_0x6d91c2(0x27c)],_0x87eb35=_0x1d40bf[_0x6d91c2(0x27c)];}this[_0x6d91c2(0x307)][_0x6d91c2(0x1f7)](_0x440956,{'history':_0x56e43e,'collaboration':_0x4b2adb});}};Hn=X([Y(0x0,_0x5c888d(_0x451f97)),Y(0x1,_0x31acf5),Y(0x2,_0x5c888d(_0x2f70c8))],Hn);let Un=class{constructor(_0x1ce080,_0x3339c9){const _0x1c0de1=_0x7ea594;this['_docSelectionManagerService']=_0x1ce080,this[_0x1c0de1(0xdf)]=_0x3339c9;}['prepareTransformSelections'](_0x78f7bf){const _0x27bc4b=_0x7ea594;var _0x42795c;let _0xffcb60=this[_0x27bc4b(0x22e)][_0x27bc4b(0x158)]()??[],_0x303c1f=this[_0x27bc4b(0x22e)][_0x27bc4b(0x211)]();if(_0xffcb60[_0x27bc4b(0x121)]===0x0||_0x303c1f==null)return null;let _0x316d05=_0x78f7bf['unitID'],_0x2c602a=[{'id':_0x27bc4b(0x272),'params':{'unitId':_0x316d05,'actions':null,'textRanges':_0xffcb60}}],_0x33fbf5=this[_0x27bc4b(0xdf)]['transformMutationsWithChangeset'](_0x78f7bf,_0x2c602a);if(!_0x1db856(_0x33fbf5))throw _0x33fbf5['error'];let _0x5388f5=(_0x42795c=_0x33fbf5['m2Prime'][0x0])==null?void 0x0:_0x42795c[_0x27bc4b(0x131)],_0x122736=_0x5388f5&&typeof _0x5388f5==_0x27bc4b(0x2d7)&&_0x27bc4b(0x1cf)in _0x5388f5?_0x5388f5[_0x27bc4b(0x1cf)]:null;if(!Kn(_0x122736))return null;let _0x409aeb=Wn(_0x78f7bf[_0x27bc4b(0x109)]['some'](_0x2de093=>qn(_0x2de093[_0x27bc4b(0x131)]))?_0x122736[_0x27bc4b(0x331)](_0x2b2975=>!(_0x27bc4b(0x303)in _0x2b2975)):_0x122736,{..._0x303c1f,'options':_0x303c1f['options']?{..._0x303c1f[_0x27bc4b(0x10e)],'wholeDocument':!0x1}:void 0x0}),_0x2d0c83={'unitId':_0x316d05,'subUnitId':_0x316d05};this['_docSelectionManagerService'][_0x27bc4b(0x29a)](_0x409aeb,_0x2d0c83);let _0x2e36f5=!0x0;return{'commit':()=>{_0x2e36f5=!0x1;},'rollback':()=>{const _0x39dba2=_0x27bc4b;_0x2e36f5&&(_0x2e36f5=!0x1,this[_0x39dba2(0x22e)]['replaceSelectionInfoWithoutRefresh'](_0x303c1f,_0x2d0c83));}};}};Un=X([Y(0x0,_0x5c888d(_0x291a40)),Y(0x1,_0x31acf5)],Un);function Wn(_0x2089cf,_0x2ea3f1){const _0x5e4d91=_0x7ea594;let _0x38cf51=[],_0x535343=[];for(let _0x346a93 of _0x2089cf)Gn(_0x346a93)?_0x535343[_0x5e4d91(0x2da)](_0x346a93):_0x38cf51['push'](_0x346a93);return{..._0x2ea3f1,'textRanges':_0x38cf51,'rectRanges':_0x535343};}function Gn(_0x59788c){return'tableId'in _0x59788c;}function Kn(_0x582dda){const _0x137b82=_0x7ea594;return Array[_0x137b82(0x312)](_0x582dda)&&_0x582dda['every'](_0x234e9c=>typeof _0x234e9c==_0x137b82(0x2d7)&&!!_0x234e9c&&'startOffset'in _0x234e9c&&_0x137b82(0x2ff)in _0x234e9c);}function qn(_0x1ba31e){const _0x518faf=_0x7ea594;return _0x1ba31e==='tableSource'?!0x0:Array[_0x518faf(0x312)](_0x1ba31e)?_0x1ba31e[_0x518faf(0x2f8)](_0xff24e6=>qn(_0xff24e6)):!_0x1ba31e||typeof _0x1ba31e!=_0x518faf(0x2d7)?!0x1:Object[_0x518faf(0x163)](_0x1ba31e)['some'](_0x3b08d8=>qn(_0x3b08d8));}let Jn=class extends _0x2c43e7{constructor(_0x1e30d8,_0x49186b,_0x3e76c1,_0x3f1ee8,_0x37dbfe,_0x4db7f3,_0x45eb84){const _0x4a0b30=_0x7ea594;super(),this['_collaborationController']=_0x1e30d8,this[_0x4a0b30(0x192)]=_0x49186b,this[_0x4a0b30(0x2db)]=_0x3e76c1,this[_0x4a0b30(0xfd)]=_0x3f1ee8,this[_0x4a0b30(0x215)]=_0x37dbfe,this['_messageService']=_0x4db7f3,this[_0x4a0b30(0x133)]=_0x45eb84,J(this,_0x4a0b30(0x119),new _0x5a8e6e(_0x65ab9a[_0x4a0b30(0x289)])),this[_0x4a0b30(0x11c)]();}[_0x7ea594(0x11c)](){const _0x20c511=_0x7ea594;this[_0x20c511(0xf8)](this[_0x20c511(0x1fe)][_0x20c511(0x1f3)]['subscribe'](_0x388eba=>{const _0x2271ab=_0x20c511;_0x388eba instanceof _0x1f1988&&_0x388eba[_0x2271ab(0x128)]({'onTransformIME':_0x4af2d2=>this[_0x2271ab(0x192)][_0x2271ab(0x20e)](_0x4af2d2),'onTransformState':_0x49d25c=>this[_0x2271ab(0x2db)]['transformStateCache'](_0x49d25c),'onPrepareTransformSelections':_0x50836b=>this[_0x2271ab(0xfd)][_0x2271ab(0x284)](_0x50836b),'onSyncEditingCollabCursor':_0xcbd3a9=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0xcbd3a9),'onTransformRemoteChangesetByIMECache':_0x430567=>this['_docTransformIMECacheService'][_0x2271ab(0x168)](_0x430567),'onTransformRemoteChangesetByStateCache':_0x14fa75=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x14fa75)});}));}};Jn=X([Y(0x0,_0x5c888d(_0x2279ca)),Y(0x1,_0x5c888d(Vn)),Y(0x2,_0x5c888d(Hn)),Y(0x3,_0x5c888d(Un)),Y(0x4,_0x5c888d(gn)),Y(0x5,_0x4953bc),Y(0x6,_0x5c888d(_0x292d2f))],Jn);let Yn=class extends _0x2c43e7{constructor(_0x2c6411,_0x5c3f2f,_0x54b7bd,_0x142cbc){const _0x58a20b=_0x7ea594;super(),this[_0x58a20b(0x140)]=_0x2c6411,this['_httpService']=_0x5c3f2f,this['_logService']=_0x54b7bd,this[_0x58a20b(0x15c)]=_0x142cbc,J(this,_0x58a20b(0x34d),void 0x0),this[_0x58a20b(0x191)]();}[_0x7ea594(0x191)](){const _0x35afc6=_0x7ea594;this[_0x35afc6(0x2bc)](),this[_0x35afc6(0x317)](),this[_0x35afc6(0x242)](),this[_0x35afc6(0x2c1)]();}[_0x7ea594(0x2c1)](){const _0x541f6a=_0x7ea594;this[_0x541f6a(0xf8)](this['_collaborationSessionService'][_0x541f6a(0x213)][_0x541f6a(0x1de)](_0x208493=>{const _0x5697c0=_0x541f6a;this[_0x5697c0(0x34d)]=_0x208493==null?void 0x0:_0x208493[_0x5697c0(0x35a)];}));}[_0x7ea594(0x2bc)](){const _0x4bc1fa=_0x7ea594;let _0x41500e=_0x2ab36e=>{const _0x1cc5d5=_0x1c2b;var _0x2db7af;this[_0x1cc5d5(0x2bb)](_0x1cc5d5(0x19d),_0x1cc5d5(0x339)+_0x2ab36e[_0x1cc5d5(0x108)]+_0x1cc5d5(0xea)+_0x2ab36e[_0x1cc5d5(0x1f8)]+':'+_0x2ab36e[_0x1cc5d5(0x1e4)]+':'+_0x2ab36e[_0x1cc5d5(0x2df)]+'\x0a'+(((_0x2db7af=_0x2ab36e['error'])==null?void 0x0:_0x2db7af[_0x1cc5d5(0x2d4)])||''));};window['addEventListener'](_0x4bc1fa(0x19d),_0x41500e),this['disposeWithMe'](()=>{const _0x4fa91d=_0x4bc1fa;window[_0x4fa91d(0x2b3)]('error',_0x41500e);});}[_0x7ea594(0x317)](){const _0x362118=_0x7ea594;let _0x2500ac=_0x1e5249=>{const _0x2a61bd=_0x1c2b;this[_0x2a61bd(0x2bb)](_0x2a61bd(0x19d),_0x2a61bd(0x30e)+_0x1e5249[_0x2a61bd(0x12e)]);};window[_0x362118(0x1d2)]('unhandledrejection',_0x2500ac),this[_0x362118(0xf8)](()=>{const _0x2722b0=_0x362118;window[_0x2722b0(0x2b3)](_0x2722b0(0x230),_0x2500ac);});}[_0x7ea594(0x242)](){const _0x137ecf=_0x7ea594;let _0x2c3c17=this[_0x137ecf(0xec)]['error'][_0x137ecf(0x28d)](this['_logService']);this[_0x137ecf(0xec)][_0x137ecf(0x19d)]=(..._0x5b6b94)=>{const _0x24995d=_0x137ecf;let _0x10212d=_0x5b6b94[_0x24995d(0x171)](_0x41816f=>_0x41816f instanceof Error?_0x41816f['message']+'\x0a'+_0x41816f[_0x24995d(0x2d4)]:String(_0x41816f))[_0x24995d(0x328)]('\x20');this[_0x24995d(0x2bb)]('error',_0x24995d(0x261)+_0x10212d),_0x2c3c17(..._0x5b6b94);},this['disposeWithMe'](()=>{const _0x1c823c=_0x137ecf;this[_0x1c823c(0xec)][_0x1c823c(0x19d)]=_0x2c3c17;});}['_uploadLog'](_0x4cc43e,_0x55f15a){const _0x4368e8=_0x7ea594;try{let _0xa657e={'userId':this[_0x4368e8(0x34d)],'logLabel':_0x4cc43e,'content':_0x55f15a};this[_0x4368e8(0x297)][_0x4368e8(0x13e)](_0x4368e8(0x292),{'body':_0xa657e})[_0x4368e8(0x193)](()=>{});}catch{}}};Yn=X([Y(0x0,_0x5c888d(_0x451f97)),Y(0x1,_0x5c888d(_0x36cdaa)),Y(0x2,_0x1984c9),Y(0x3,_0x5c888d(_0x25de4e))],Yn);function Xn({state$:_0x3a47c1}){const _0x25bb5c=_0x7ea594;let _0x2461e3=_0x6ada4b(_0x3a47c1,null,!0x0);return _0x2461e3?_0x3c0327(_0x25bb5c(0x103),{'data-u-comp':_0x25bb5c(0x124),'role':'alert','className':_0x25bb5c(0x106),'children':[_0x57ef67(_0x240f13,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x57ef67('span',{'children':_0x2461e3[_0x25bb5c(0x1d6)]}),_0x57ef67(_0x301aac,{'size':_0x25bb5c(0x2c9),'variant':_0x25bb5c(0x135),'onClick':()=>window[_0x25bb5c(0x118)]['reload'](),'children':_0x2461e3[_0x25bb5c(0x1dc)]})]}):null;}const Zn=_0x7ea594(0x141);let Qn=class extends _0x2c43e7{constructor(_0x467659,_0x5a76fa,_0x3a71f2,_0xa77185,_0x1e70bd){const _0x500e6f=_0x7ea594;super(),this[_0x500e6f(0x22c)]=_0x467659,this[_0x500e6f(0x177)]=_0x5a76fa,this[_0x500e6f(0x133)]=_0x3a71f2,this['_injector']=_0xa77185,J(this,_0x500e6f(0xda),new _0x5a8e6e(null)),J(this,'_messageIds',new Set()),J(this,_0x500e6f(0x2dc),new Map()),J(this,_0x500e6f(0x326),this[_0x500e6f(0xda)]['asObservable']());let _0x40180=()=>_0x2317a2(Xn,{'state$':this[_0x500e6f(0x326)]});this[_0x500e6f(0xf8)](_0x1e70bd['registerComponent'](_0x44eea7['GLOBAL'],()=>_0x1ca99d(_0x40180,this[_0x500e6f(0x140)]))),this[_0x500e6f(0xf8)](this['_snapshotLoadingService']['state$'][_0x500e6f(0x1de)](_0x9e017f=>{const _0x1a36cd=_0x500e6f;_0x9e017f[_0x1a36cd(0x2c0)](_0x445dcd=>this['_updateMessage'](_0x445dcd));}));}[_0x7ea594(0x2f1)](){const _0x30efe3=_0x7ea594;this[_0x30efe3(0x23c)][_0x30efe3(0x2c0)](_0x48b812=>this[_0x30efe3(0x177)][_0x30efe3(0x347)](_0x48b812)),this['_messageIds'][_0x30efe3(0x221)](),this[_0x30efe3(0x2dc)][_0x30efe3(0x2c0)](({timeoutId:_0x17fd1b})=>clearTimeout(_0x17fd1b)),this[_0x30efe3(0x2dc)][_0x30efe3(0x221)](),this[_0x30efe3(0xda)]['complete'](),super[_0x30efe3(0x2f1)]();}['_updateMessage'](_0x1bd98e){const _0x2c6cdd=_0x7ea594;let _0x1f6a13=''+Zn+_0x1bd98e['unitId'];_0x1bd98e[_0x2c6cdd(0x137)]===_0x2f9ccc[_0x2c6cdd(0x1c7)]?(this[_0x2c6cdd(0x229)](_0x1bd98e[_0x2c6cdd(0x2ce)]),this[_0x2c6cdd(0xe6)](_0x1bd98e[_0x2c6cdd(0x2ce)]),this['_messageService']['remove'](_0x1f6a13),this[_0x2c6cdd(0x23c)][_0x2c6cdd(0x182)](_0x1f6a13)):_0x1bd98e['stage']===_0x2f9ccc[_0x2c6cdd(0x31c)]?(this['_clearBlockProgressWatch'](_0x1bd98e['unitId']),this[_0x2c6cdd(0xe6)](_0x1bd98e[_0x2c6cdd(0x2ce)]),this[_0x2c6cdd(0x177)]['show']({'id':_0x1f6a13,'type':_0x3a5015[_0x2c6cdd(0x2e0)],'content':this[_0x2c6cdd(0x133)]['t'](_0x2c6cdd(0x268))}),this[_0x2c6cdd(0x23c)]['delete'](_0x1f6a13)):_0x1bd98e[_0x2c6cdd(0x137)]!==_0x2f9ccc['LOADING_BLOCKS']||_0x1bd98e[_0x2c6cdd(0x232)]<=0xa?(this[_0x2c6cdd(0x229)](_0x1bd98e['unitId']),this['_messageService'][_0x2c6cdd(0x347)](_0x1f6a13),this[_0x2c6cdd(0x23c)]['delete'](_0x1f6a13)):this['_watchBlockProgress'](_0x1bd98e)||(this[_0x2c6cdd(0x177)][_0x2c6cdd(0x1f0)]({'id':_0x1f6a13,'type':_0x3a5015[_0x2c6cdd(0x1be)],'duration':0x1/0x0,'content':this[_0x2c6cdd(0x133)]['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x1bd98e[_0x2c6cdd(0x1e3)]+'/'+_0x1bd98e[_0x2c6cdd(0x232)]}),this[_0x2c6cdd(0x23c)][_0x2c6cdd(0x1ce)](_0x1f6a13));}[_0x7ea594(0x1db)](_0x2d986f){const _0x30994d=_0x7ea594;let _0x2bd4d7=this[_0x30994d(0x2dc)][_0x30994d(0x161)](_0x2d986f['unitId']);if((_0x2bd4d7==null?void 0x0:_0x2bd4d7[_0x30994d(0x1e3)])===_0x2d986f[_0x30994d(0x1e3)])return _0x2bd4d7[_0x30994d(0x152)];this['_clearBlockProgressWatch'](_0x2d986f[_0x30994d(0x2ce)]);let _0x5e3c94=setTimeout(()=>{const _0x38dd9d=_0x30994d;let _0x3283c8=this[_0x38dd9d(0x2dc)][_0x38dd9d(0x161)](_0x2d986f[_0x38dd9d(0x2ce)]);if(!_0x3283c8||_0x3283c8['timeoutId']!==_0x5e3c94)return;_0x3283c8[_0x38dd9d(0x152)]=!0x0;let _0x24b997=''+Zn+_0x2d986f['unitId'];this[_0x38dd9d(0x177)][_0x38dd9d(0x347)](_0x24b997),this['_messageIds'][_0x38dd9d(0x182)](_0x24b997),this[_0x38dd9d(0xda)][_0x38dd9d(0x136)]({'unitId':_0x2d986f[_0x38dd9d(0x2ce)],'content':this[_0x38dd9d(0x133)]['t'](_0x38dd9d(0x1a1),String(_0x2d986f['loadedBlocks']),String(_0x2d986f[_0x38dd9d(0x232)])),'refreshLabel':this[_0x38dd9d(0x133)]['t'](_0x38dd9d(0x25b))});},0xea60);return this['_blockProgressWatches'][_0x30994d(0x164)](_0x2d986f['unitId'],{'loadedBlocks':_0x2d986f['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x5e3c94}),!0x1;}[_0x7ea594(0x229)](_0x10c29c){const _0x22e147=_0x7ea594;let _0x324d14=this[_0x22e147(0x2dc)][_0x22e147(0x161)](_0x10c29c);_0x324d14&&(clearTimeout(_0x324d14[_0x22e147(0x26e)]),this[_0x22e147(0x2dc)][_0x22e147(0x182)](_0x10c29c),this[_0x22e147(0xe6)](_0x10c29c));}['_clearTimeoutState'](_0x57038a){const _0x15a015=_0x7ea594;var _0x7bbdd0;((_0x7bbdd0=this[_0x15a015(0xda)][_0x15a015(0x357)])==null?void 0x0:_0x7bbdd0['unitId'])===_0x57038a&&this[_0x15a015(0xda)][_0x15a015(0x136)](null);}};Qn=X([Y(0x0,_0x5c888d(_0x18f5c1)),Y(0x1,_0x4953bc),Y(0x2,_0x5c888d(_0x292d2f)),Y(0x3,_0x5c888d(_0x451f97)),Y(0x4,_0x8a5b3a)],Qn);let $n=class extends _0x2c43e7{constructor(_0x1c3563,_0x7c8fc8,_0x38458f,_0x4bbea6,_0x482919){const _0x2c9f29=_0x7ea594;var _0x56a00a;super(),this[_0x2c9f29(0x113)]=_0x1c3563,this[_0x2c9f29(0x1ac)]=_0x7c8fc8,this[_0x2c9f29(0x218)]=_0x38458f,this[_0x2c9f29(0xec)]=_0x4bbea6,this[_0x2c9f29(0x155)]=_0x482919,J(this,_0x2c9f29(0x149),new Map()),J(this,_0x2c9f29(0x1f6),new Map()),J(this,_0x2c9f29(0x262),new Map()),J(this,'_disabled',!0x1),this[_0x2c9f29(0x320)]=!((_0x56a00a=this['_configService']['getConfig'](_0x14ffae))!=null&&_0x56a00a[_0x2c9f29(0x11a)]);}['disableLocalCache'](){const _0x28c4ec=_0x7ea594;this[_0x28c4ec(0x320)]=!0x0;}[_0x7ea594(0x1e5)](){this['_disabled']=!0x1;}get[_0x7ea594(0x1a9)](){const _0xcf5a2a=_0x7ea594;let _0x310ec9=new Map(this[_0xcf5a2a(0x1f6)]);return this[_0xcf5a2a(0x262)][_0xcf5a2a(0x2c0)]((_0x4ebb53,_0x335b8b)=>{const _0x3fd1d5=_0xcf5a2a;_0x310ec9[_0x3fd1d5(0x2c5)](_0x335b8b)||_0x310ec9[_0x3fd1d5(0x164)](_0x335b8b,0x0);}),_0x310ec9;}[_0x7ea594(0x2f1)](){const _0x788f87=_0x7ea594;this['_disposed']||(super['dispose'](),this[_0x788f87(0x320)]=!0x0,this['exhaustSavingTask']()[_0x788f87(0x193)](_0x2e6441=>this[_0x788f87(0xec)]['error'](_0x2e6441)));}async['loadOfflineData'](_0x12bd53,_0x2b6447){const _0x2e3e37=_0x7ea594;if(this[_0x2e3e37(0x320)])return null;let _0x2af989=this['_getUserId'](_0x2b6447),_0x1e5837=await this[_0x2e3e37(0x1ac)][_0x2e3e37(0xf4)](_0x156238(_0x12bd53,_0x2af989));return(_0x1e5837==null?void 0x0:_0x1e5837[_0x2e3e37(0x195)])===_0x12bd53&&this['_normalizeUserId'](_0x1e5837[_0x2e3e37(0x15b)])===_0x2af989?_0x1e5837:null;}async[_0x7ea594(0x28e)](_0x1d39f1,_0x479fbe,_0x569123){const _0x3bc105=_0x7ea594;let _0x185c9e=this[_0x3bc105(0x1b1)](_0x569123),_0x31a736=_0x156238(_0x1d39f1,_0x185c9e),_0x398bd8=this[_0x3bc105(0x1ac)][_0x3bc105(0x1ed)](_0x31a736,{..._0x479fbe,'unitID':_0x1d39f1,'userId':_0x185c9e});return this[_0x3bc105(0x27f)](_0x31a736,_0x398bd8),!!await _0x398bd8;}async[_0x7ea594(0x130)](_0x5c0175,_0x39f87c,_0x46f45f){const _0x344825=_0x7ea594;let _0x275ef5=this[_0x344825(0x1b1)](_0x46f45f),_0x290533=_0x156238(_0x5c0175,_0x275ef5),_0x50284d=this[_0x344825(0x149)][_0x344825(0x161)](_0x290533)??await this[_0x344825(0x1ac)][_0x344825(0xf4)](_0x290533);if(!_0x50284d||this['_normalizeUserId'](_0x50284d['userId'])!==_0x275ef5||_0x50284d[_0x344825(0x195)]!==_0x5c0175)return;let _0x1a22f3=Date['now'](),_0x5f4a31=new Date(_0x1a22f3)[_0x344825(0x1d8)]();await this[_0x344825(0x1ac)][_0x344825(0x1ed)](_0x290533+_0x344825(0x24b)+_0x1a22f3,{'reason':_0x39f87c,'createdAt':_0x5f4a31,'data':_0x50284d});}async['clearOfflineData'](_0x325bb5,_0x2ab33c){const _0x4b94a7=_0x7ea594;let _0x522f5b=this[_0x4b94a7(0x1b1)](_0x2ab33c),_0xfd0e4c=_0x156238(_0x325bb5,_0x522f5b),_0x467c0f=this[_0x4b94a7(0x1f6)]['get'](_0xfd0e4c);_0x467c0f!==void 0x0&&(window[_0x4b94a7(0x29c)](_0x467c0f),this[_0x4b94a7(0x1f6)][_0x4b94a7(0x182)](_0xfd0e4c));let _0x3d6f83=this[_0x4b94a7(0x262)][_0x4b94a7(0x161)](_0xfd0e4c);_0x3d6f83&&await Promise[_0x4b94a7(0x1fd)](_0x3d6f83),this[_0x4b94a7(0x149)][_0x4b94a7(0x182)](_0xfd0e4c),await this['_localStorageService'][_0x4b94a7(0x16f)](_0xfd0e4c);}[_0x7ea594(0x316)](_0x58c58a,_0x4012d0,_0x5c4b1f,_0xd813d2,_0x156c21){const _0x196fd9=_0x7ea594;if(this[_0x196fd9(0x169)])return;let _0x13a428=this['_getUserId'](_0x156c21),_0x4cf938=_0x156238(_0x58c58a,_0x13a428),_0xd78f18=this[_0x196fd9(0x218)][_0x196fd9(0x18d)](_0x58c58a);this[_0x196fd9(0x149)][_0x196fd9(0x164)](_0x4cf938,{'unitID':_0x58c58a,'userId':_0x13a428,'type':_0x4012d0,'awaitingChangeset':_0x5c4b1f,'mutations':_0xd813d2,'rev':_0xd78f18}),this['_saveTaskMap'][_0x196fd9(0x2c5)](_0x4cf938)||this[_0x196fd9(0x154)](_0x4cf938);}[_0x7ea594(0x1b1)](_0x47f94f=((()=>{const _0xcdafba=_0x7ea594;var _0x506f65;return(_0x506f65=this[_0xcdafba(0x155)]['getCurrentUser']())==null?void 0x0:_0x506f65[_0xcdafba(0x105)];})())){const _0x2ac8e4=_0x7ea594;return this[_0x2ac8e4(0x2af)](_0x47f94f);}[_0x7ea594(0x2af)](_0x3f98ee){return _0x3f98ee===''||_0x3f98ee==null?void 0x0:_0x3f98ee;}[_0x7ea594(0x154)](_0x433c84){const _0x47281a=_0x7ea594;let _0x18cb64=this[_0x47281a(0x2b8)]();_0x18cb64===0x0?this['_saveCache'](_0x433c84)[_0x47281a(0x193)](_0x212039=>this['_logService'][_0x47281a(0x19d)](_0x212039)):this[_0x47281a(0x1f6)]['set'](_0x433c84,window[_0x47281a(0x2b7)](()=>{const _0x1405ee=_0x47281a;this[_0x1405ee(0x104)](_0x433c84)[_0x1405ee(0x193)](_0x4ad24d=>this['_logService'][_0x1405ee(0x19d)](_0x4ad24d));},_0x18cb64));}[_0x7ea594(0x2b8)](){const _0x2b97e8=_0x7ea594;return this['_configService'][_0x2b97e8(0x25a)](_0x78a9c6)??_0x4cb928;}[_0x7ea594(0x104)](_0x59ac9d){const _0x1037a2=_0x7ea594;let _0x568fd9=this['_saveTaskMap']['get'](_0x59ac9d);_0x568fd9!==void 0x0&&window[_0x1037a2(0x29c)](_0x568fd9);let _0x413c97=this['_cachedData'][_0x1037a2(0x161)](_0x59ac9d);if(!_0x413c97)return Promise[_0x1037a2(0x258)]();let _0x13379a=this['_activeSaveTaskMap'][_0x1037a2(0x161)](_0x59ac9d),_0x5c4308=Promise[_0x1037a2(0x1fd)](_0x13379a?[..._0x13379a]:[])[_0x1037a2(0x35b)](()=>this[_0x1037a2(0x1ac)][_0x1037a2(0x1ed)](_0x59ac9d,_0x413c97))[_0x1037a2(0x35b)](()=>{const _0x35bdba=_0x1037a2;_0x568fd9!==void 0x0&&this[_0x35bdba(0x1f6)][_0x35bdba(0x161)](_0x59ac9d)===_0x568fd9&&(this['_saveTaskMap'][_0x35bdba(0x182)](_0x59ac9d),!this[_0x35bdba(0x169)]&&this['_cachedData']['get'](_0x59ac9d)!==_0x413c97&&this['_scheduleSaving'](_0x59ac9d));});return this[_0x1037a2(0x27f)](_0x59ac9d,_0x5c4308),_0x5c4308;}[_0x7ea594(0x27f)](_0xd0e68a,_0x235558){const _0x1c2e11=_0x7ea594;let _0x1e5206=this[_0x1c2e11(0x262)][_0x1c2e11(0x161)](_0xd0e68a);_0x1e5206||(_0x1e5206=new Set(),this[_0x1c2e11(0x262)][_0x1c2e11(0x164)](_0xd0e68a,_0x1e5206)),_0x1e5206[_0x1c2e11(0x1ce)](_0x235558);let _0x5766b1=()=>{const _0x531f2f=_0x1c2e11;_0x1e5206[_0x531f2f(0x182)](_0x235558),_0x1e5206[_0x531f2f(0x18e)]===0x0&&this[_0x531f2f(0x262)]['delete'](_0xd0e68a);};_0x235558[_0x1c2e11(0x35b)](_0x5766b1,_0x5766b1);}async[_0x7ea594(0x2a9)](){const _0x4c6941=_0x7ea594;let _0x2377c5=[...this[_0x4c6941(0x1f6)]['keys']()][_0x4c6941(0x171)](_0x1e929c=>this['_saveCache'](_0x1e929c));for(let _0x5e4af2 of this[_0x4c6941(0x262)][_0x4c6941(0x163)]())_0x2377c5[_0x4c6941(0x2da)](...[..._0x5e4af2][_0x4c6941(0x171)](_0x5187c4=>_0x5187c4[_0x4c6941(0x35b)](()=>void 0x0)));await Promise[_0x4c6941(0xd9)](_0x2377c5);}};$n=X([Y(0x0,_0x16ce58),Y(0x1,_0x16f020),Y(0x2,_0x5c888d(_0x19bbc1)),Y(0x3,_0x1984c9),Y(0x4,_0x5c888d(_0x3c2aea))],$n);var er=class extends _0x2c43e7{get[_0x7ea594(0xe8)](){const _0x8796a6=_0x7ea594;return this[_0x8796a6(0x255)][_0x8796a6(0x13a)]();}constructor(){const _0x1132dd=_0x7ea594;super(),J(this,_0x1132dd(0x255),new _0x5a8e6e(navigator['onLine'])),J(this,'online$',this[_0x1132dd(0x255)][_0x1132dd(0xe4)]()),this[_0x1132dd(0x25d)](),this[_0x1132dd(0x20b)]();}[_0x7ea594(0x2f1)](){const _0x286f8e=_0x7ea594;super['dispose'](),this[_0x286f8e(0x255)][_0x286f8e(0x278)]();}[_0x7ea594(0x20b)](){const _0x1758f0=_0x7ea594;this['disposeWithMe'](_0x28759e(_0x53faeb(window,_0x1758f0(0xe8)),_0x53faeb(document,_0x1758f0(0x281)),_0x53faeb(window,_0x1758f0(0x27d)),_0x53faeb(document,'visibilitychange')[_0x1758f0(0x1d5)](_0x31e6a5(()=>document['visibilityState']===_0x1758f0(0x19b)),_0x399a72(_0x403623=>_0x403623)))[_0x1758f0(0x1d5)](_0x399a72(()=>navigator[_0x1758f0(0x17d)]))[_0x1758f0(0x1de)](()=>this[_0x1758f0(0x255)]['next'](!0x0)));}['_listenToOfflineEvent'](){const _0x3b52b0=_0x7ea594;this['disposeWithMe'](_0x28759e(_0x53faeb(window,'offline'),_0x53faeb(document,_0x3b52b0(0x2fd)))[_0x3b52b0(0x1de)](()=>this[_0x3b52b0(0x255)]['next'](!0x1)));}};let $=class extends _0x36cdce{constructor(_0x2a09a4=un,_0x4e98aa,_0x50dbeb,_0x2bc342,_0x1f7ccc){const _0x1a9b04=_0x7ea594;super(),this[_0x1a9b04(0x15e)]=_0x2a09a4,this[_0x1a9b04(0x1fa)]=_0x4e98aa,this[_0x1a9b04(0x140)]=_0x50dbeb,this[_0x1a9b04(0x113)]=_0x2bc342,this[_0x1a9b04(0x1c1)]=_0x1f7ccc;let {..._0x462100}=_0x54b9e6({},un,this[_0x1a9b04(0x15e)]);this[_0x1a9b04(0x113)][_0x1a9b04(0x2e8)](_0x1a9b04(0x295),_0x462100);}[_0x7ea594(0x1c9)](){const _0x8ffc7c=_0x7ea594;this[_0x8ffc7c(0x28a)](),this[_0x8ffc7c(0xf8)](this['_commandService'][_0x8ffc7c(0x2b4)](ln)),this[_0x8ffc7c(0x150)]();}[_0x7ea594(0x31a)](){const _0x2dafe6=_0x7ea594;this[_0x2dafe6(0x111)]();}['_registerDependencies'](){const _0x202299=_0x7ea594;var _0x6dac2b;let _0x161fce=[[pn],[_0x1ae3e2,{'useClass':_0x29894e}],[_0x471d6f,{'useClass':$n}],[_0x2ae2cd,{'useClass':er}],[Z],[Bn],[Q],[In],[Qn]];this[_0x202299(0x15e)]['enableDocumentCollaborationUI']!==!0x1&&_0x161fce[_0x202299(0x2da)]([Un],[Vn],[Hn],[gn],[Jn],[dn]),this[_0x202299(0x15e)][_0x202299(0x244)]&&_0x161fce[_0x202299(0x2da)]([Yn]),_0x1d9129(this[_0x202299(0x140)],_0x9b1a78(_0x161fce,(_0x6dac2b=this[_0x202299(0x15e)])==null?void 0x0:_0x6dac2b[_0x202299(0x30f)]));}[_0x7ea594(0x111)](){const _0x253224=_0x7ea594;this['_config'][_0x253224(0x23b)]!==!0x1&&this['disposeWithMe'](this[_0x253224(0x1fa)][_0x253224(0x1d7)](_0x51081c[_0x253224(0x251)],[En])),this['disposeWithMe'](this[_0x253224(0x1fa)][_0x253224(0x1d7)](_0x51081c['UNIVER_SHEET'],[On]));}['_initDependencies'](){const _0x23c748=_0x7ea594;_0x58d44e(this[_0x23c748(0x140)],[[Q],[In],[Z],[Bn],[Qn]]),this['_config'][_0x23c748(0x23b)]!==!0x1&&_0x58d44e(this[_0x23c748(0x140)],[[Jn],[dn]]),this['_config'][_0x23c748(0x244)]&&_0x58d44e(this[_0x23c748(0x140)],[[Yn]]);}};J($,_0x7ea594(0x146),_0x7ea594(0x204)),J($,_0x7ea594(0x24c),sn),J($,_0x7ea594(0x345),cn),$=X([_0x1bc7be(_0x333558,_0x52e451,_0x4540ab,_0x176c33,_0x24cbc8,_0x1d9f35,_0x512565),Y(0x1,_0x23794e),Y(0x2,_0x5c888d(_0x451f97)),Y(0x3,_0x16ce58),Y(0x4,_0x15fe51)],$);let tr=class extends _0x325a9e{constructor(_0x1242cd,_0x3e9153,_0x5d983e,_0xf964ec,_0x20202e){const _0x15f7a8=_0x7ea594;super(_0x1242cd,_0x3e9153,_0x5d983e,_0xf964ec,_0x20202e),J(this,_0x15f7a8(0x32f),new _0x83a48d()),this['disposeWithMe'](()=>{const _0x1d308d=_0x15f7a8;this[_0x1d308d(0x32f)][_0x1d308d(0x136)](),this[_0x1d308d(0x32f)]['complete']();});}async[_0x7ea594(0x224)](_0x1a78be){const _0x4cb12a=_0x7ea594;let _0x459a80=await this[_0x4cb12a(0x33a)](),_0x109413=this[_0x4cb12a(0x35c)](_0x1a78be,_0x459a80);return this[_0x4cb12a(0x329)](_0x109413);}[_0x7ea594(0x35c)](_0x655f64,_0x53b031){const _0x497259=_0x7ea594;let _0x3e1d82=typeof window>'u'?new URL(_0x655f64):new URL(_0x655f64,window[_0x497259(0x118)][_0x497259(0x110)]);_0x3e1d82['searchParams'][_0x497259(0x164)](_0x497259(0x212),_0x53b031);let _0x526980=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x497259(0x118)][_0x497259(0x2e3)]);return _0x526980[_0x497259(0x161)]('runId')&&_0x3e1d82[_0x497259(0x2b2)][_0x497259(0x164)](_0x497259(0x32a),_0x526980[_0x497259(0x161)](_0x497259(0x32a))),_0x3e1d82[_0x497259(0x112)]();}async[_0x7ea594(0x33a)](){const _0x10f789=_0x7ea594;var _0x32cdd6;let _0x26c550=this['_configService'][_0x10f789(0x25a)](_0x14ffae),_0x229f15=(_0x26c550==null?void 0x0:_0x26c550[_0x10f789(0x304)])??_0x4c01fe;return((_0x32cdd6=(await _0x4b2eab(this[_0x10f789(0x297)][_0x10f789(0x2e1)](_0x10f789(0x359),_0x229f15,{'headers':{'Content-Type':_0x10f789(0x2e5)}})[_0x10f789(0x1d5)](_0x399a72(_0x508eab=>_0x508eab[_0x10f789(0x34f)]===_0x42c157[_0x10f789(0x172)]),_0x10c310(0x4e20),_0x2a3afc(this[_0x10f789(0x32f)]))))[_0x10f789(0x225)])==null?void 0x0:_0x32cdd6[_0x10f789(0x1ca)])??'';}};tr=X([Y(0x0,_0x5c888d(_0x451f97)),Y(0x1,_0x5c888d(_0x36cdaa)),Y(0x2,_0x16ce58),Y(0x3,_0x1984c9),Y(0x4,_0x165792)],tr);let nr=class extends _0x2c43e7{constructor(_0x8de9e,_0xf4aeec,_0x2d915d){const _0x486ea5=_0x7ea594;super(),this[_0x486ea5(0x129)]=_0x8de9e,this[_0x486ea5(0x297)]=_0xf4aeec,this[_0x486ea5(0x113)]=_0x2d915d;}async[_0x7ea594(0x1e8)](_0x2afce9,_0x42d25b,_0x5fcf9c,..._0x1b0ea5){const _0x5040cc=_0x7ea594;let _0x3f0b60=this[_0x5040cc(0x129)][_0x5040cc(0x116)]();if(!_0x3f0b60)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x56d3d9=(this[_0x5040cc(0x113)][_0x5040cc(0x25a)](_0x5ccd97)??_0x39f491)+'/'+_0x2afce9+_0x5040cc(0x288)+_0x42d25b,_0x3ffb9d={'scriptId':_0x2afce9,'runId':new URL(window[_0x5040cc(0x118)]['href'])['searchParams'][_0x5040cc(0x161)](_0x5040cc(0x32a))??'','function':_0x42d25b,'unitId':_0x3f0b60[_0x5040cc(0x270)](),'argsOfFunction':JSON['stringify'](_0x1b0ea5),'invokeId':_0x5fcf9c[_0x5040cc(0x2f2)]??'','executionId':_0x5fcf9c[_0x5040cc(0x30a)]??''};try{let _0x23bb3b=await this['_httpService'][_0x5040cc(0x13e)](_0x56d3d9,{'body':_0x3ffb9d});return _0x23bb3b['body'][_0x5040cc(0x19d)]&&_0x23bb3b[_0x5040cc(0x225)][_0x5040cc(0x19d)][_0x5040cc(0x16e)]!==_0x34e0a6['OK']?_0x5040cc(0x167):_0x23bb3b[_0x5040cc(0x225)][_0x5040cc(0x17c)];}catch{return _0x5040cc(0x167);}}};function _0x1c2b(_0x386f6c,_0x4d2827){_0x386f6c=_0x386f6c-0xd9;const _0x58344e=_0x5834();let _0x1c2b22=_0x58344e[_0x386f6c];return _0x1c2b22;}nr=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x36cdaa)),Y(0x2,_0x16ce58)],nr);const rr=0x7530,ir=_0x7ea594(0x2ab);var ar=class extends _0x2c43e7{constructor(){const _0x5083e2=_0x7ea594;super(),J(this,_0x5083e2(0x1d1),_0x415285()),J(this,_0x5083e2(0x16d),new Set()),J(this,_0x5083e2(0x325),new Map()),J(this,_0x5083e2(0x2f0),null),J(this,_0x5083e2(0x26b),new Map()),J(this,_0x5083e2(0x2c8),new Map()),this[_0x5083e2(0x191)]();}['dispose'](){const _0x4c7cc5=_0x7ea594;super[_0x4c7cc5(0x2f1)](),this[_0x4c7cc5(0x26b)][_0x4c7cc5(0x2c0)]((_0x3ec55f,_0x3b13da)=>this[_0x4c7cc5(0x196)](_0x3b13da)),this[_0x4c7cc5(0x2f0)]&&window[_0x4c7cc5(0x2a7)](this[_0x4c7cc5(0x2f0)]);}['getUnitStatus$'](_0x3a722b){const _0x89970=_0x7ea594;return this[_0x89970(0x346)](_0x3a722b)['pipe'](_0x3b143a());}['editingUnit'](_0x26c74c){const _0x594fb9=_0x7ea594;this[_0x594fb9(0x16d)][_0x594fb9(0x18e)]===0x0&&this[_0x594fb9(0x330)](),this['_selfUnitIDs'][_0x594fb9(0x1ce)](_0x26c74c),this[_0x594fb9(0x290)]({'type':0x0,'memberID':this[_0x594fb9(0x1d1)],'unitIDs':[_0x26c74c],'isForwarded':!0x1});}['disposeUnit'](_0x5b70ec){const _0x169db3=_0x7ea594;this[_0x169db3(0x16d)][_0x169db3(0x182)](_0x5b70ec),this[_0x169db3(0x16d)][_0x169db3(0x18e)]===0x0&&this[_0x169db3(0x2f0)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x4e0edd=_0x7ea594;this[_0x4e0edd(0xf8)](_0x42bb3c(_0x53faeb(window,_0x4e0edd(0x341))[_0x4e0edd(0x1de)](_0x7b570b=>{const _0x27831b=_0x4e0edd;if(_0x7b570b['key']!==ir||!_0x7b570b[_0x27831b(0x259)])return;let _0x5c7184=JSON[_0x27831b(0x188)](_0x7b570b[_0x27831b(0x259)]);this[_0x27831b(0x200)](_0x5c7184);}))),window['addEventListener'](_0x4e0edd(0x334),()=>this['_send']({'type':0x1,'memberID':this[_0x4e0edd(0x1d1)],'unitIDs':Array[_0x4e0edd(0x1eb)](this['_selfUnitIDs'])}));}[_0x7ea594(0x200)](_0x30378f){const _0x469b1a=_0x7ea594;switch(_0x30378f[_0x469b1a(0x34f)]){case 0x0:this[_0x469b1a(0x275)](_0x30378f);break;case 0x1:this['_handleLeaveEvent'](_0x30378f);break;case 0x2:this[_0x469b1a(0x351)](_0x30378f);}}[_0x7ea594(0x275)](_0x207b69){const _0x51c610=_0x7ea594;let {unitIDs:_0x525585,memberID:_0x4253d0,isForwarded:_0x5ef246}=_0x207b69;_0x525585['forEach'](_0x386751=>{const _0x4e88b4=_0x1c2b;if(!_0x5ef246&&this['_unitOnClients'][_0x4e88b4(0x2c5)](_0x386751)&&this[_0x4e88b4(0x346)](_0x386751)['next'](_0x24c6b1[_0x4e88b4(0x31d)]),!this[_0x4e88b4(0x325)][_0x4e88b4(0x2c5)](_0x386751)||!this[_0x4e88b4(0x325)][_0x4e88b4(0x161)](_0x386751)[_0x4e88b4(0x2c5)](_0x4253d0)){let _0x3c13c4=this[_0x4e88b4(0x325)]['get'](_0x386751)||new Set();_0x3c13c4[_0x4e88b4(0x1ce)](_0x4253d0),this[_0x4e88b4(0x325)][_0x4e88b4(0x164)](_0x386751,_0x3c13c4),this[_0x4e88b4(0x305)](_0x4253d0);}}),_0x5ef246||this[_0x51c610(0x290)]({'type':0x0,'memberID':this[_0x51c610(0x1d1)],'unitIDs':[...this[_0x51c610(0x16d)]],'isForwarded':!0x0});}[_0x7ea594(0x305)](_0x48677f){const _0x5b3e1f=_0x7ea594;this[_0x5b3e1f(0x196)](_0x48677f);let _0x4ad8f2=window[_0x5b3e1f(0x2b7)](()=>{const _0x708aeb=_0x5b3e1f;this[_0x708aeb(0x325)][_0x708aeb(0x2c0)](_0x540815=>{const _0xd0e07d=_0x708aeb;_0x540815[_0xd0e07d(0x182)](_0x48677f);});},rr*0x2);this['_clearOtherTimers']['set'](_0x48677f,_0x4ad8f2);}[_0x7ea594(0x196)](_0x369bf0){const _0x1a6590=_0x7ea594;if(this[_0x1a6590(0x26b)]['has'](_0x369bf0)){let _0x24052f=this[_0x1a6590(0x26b)][_0x1a6590(0x161)](_0x369bf0);_0x24052f&&window[_0x1a6590(0x29c)](_0x24052f),this['_clearOtherTimers'][_0x1a6590(0x164)](_0x369bf0,null);}}['_handleLeaveEvent'](_0x3281bd){const _0x52c42d=_0x7ea594;let {memberID:_0x52c2f5,unitIDs:_0x537e1c}=_0x3281bd;_0x537e1c[_0x52c42d(0x2c0)](_0x35ddea=>{const _0x38a0c9=_0x52c42d;var _0xfc8342;let _0x2d7f65=this[_0x38a0c9(0x325)]['get'](_0x35ddea);_0x2d7f65&&(_0x2d7f65[_0x38a0c9(0x182)](_0x52c2f5),(_0xfc8342=this[_0x38a0c9(0x346)](_0x35ddea))==null||_0xfc8342[_0x38a0c9(0x136)](_0x2d7f65[_0x38a0c9(0x18e)]===0x0?_0x24c6b1['NO_OTHER_CLIENTS_EDITING']:_0x24c6b1[_0x38a0c9(0x31d)]));}),this[_0x52c42d(0x196)](_0x52c2f5);}['_handleHeartbeatEvent'](_0x242b12){const _0x5e7fc8=_0x7ea594;this[_0x5e7fc8(0x305)](_0x242b12[_0x5e7fc8(0x35a)]);}[_0x7ea594(0x290)](_0x50477d){const _0x3ed713=_0x7ea594;localStorage[_0x3ed713(0x1ed)](ir,JSON['stringify'](_0x50477d));}[_0x7ea594(0x330)](){const _0x4243d1=_0x7ea594;this[_0x4243d1(0x2f0)]=window[_0x4243d1(0x187)](()=>{const _0x359691=_0x4243d1;this['_send']({'type':0x2,'memberID':this[_0x359691(0x1d1)]});},rr);}[_0x7ea594(0x346)](_0x1fad19){const _0x3abc27=_0x7ea594;return this['_unitStatus'][_0x3abc27(0x2c5)](_0x1fad19)||this['_unitStatus']['set'](_0x1fad19,new _0x5a8e6e(_0x24c6b1['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus']['get'](_0x1fad19);}};export{tr as BrowserCollaborationSocketService,Z as DesktopCollaborationStatusDisplayController,nr as RemoteUniscriptService,Dn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ar as WebBrowserSingleActiveUnitService};