@univerjs-pro/collaboration-client-ui 1.0.0-alpha.7 → 1.0.0-alpha.8

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 (89) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +3 -3
  65. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +2 -2
  66. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +3 -3
  67. package/lib/types/models/cursor.d.ts +0 -2
  68. package/lib/umd/facade.js +1 -1
  69. package/lib/umd/index.js +1 -1
  70. package/lib/umd/locale/ar-SA.js +1 -1
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -1
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -1
  78. package/lib/umd/locale/it-IT.js +1 -1
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -1
  82. package/lib/umd/locale/pt-BR.js +1 -1
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -1
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +22 -21
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4fab7a=_0x1c7f;(function(_0x27c60a,_0x484f63){const _0x55e8fd=_0x1c7f,_0x2e1fef=_0x27c60a();while(!![]){try{const _0x67405d=parseInt(_0x55e8fd(0x46c))/0x1*(parseInt(_0x55e8fd(0x33b))/0x2)+-parseInt(_0x55e8fd(0x401))/0x3*(parseInt(_0x55e8fd(0x408))/0x4)+parseInt(_0x55e8fd(0x3a2))/0x5*(-parseInt(_0x55e8fd(0x380))/0x6)+parseInt(_0x55e8fd(0x1f3))/0x7*(-parseInt(_0x55e8fd(0x245))/0x8)+-parseInt(_0x55e8fd(0x422))/0x9+-parseInt(_0x55e8fd(0x34b))/0xa+parseInt(_0x55e8fd(0x1f9))/0xb*(parseInt(_0x55e8fd(0x1cd))/0xc);if(_0x67405d===_0x484f63)break;else _0x2e1fef['push'](_0x2e1fef['shift']());}catch(_0x2cb30e){_0x2e1fef['push'](_0x2e1fef['shift']());}}}(_0x19cd,0xb8f3c),Object[_0x4fab7a(0x402)](exports,Symbol[_0x4fab7a(0x2e8)],{'value':_0x4fab7a(0x2dc)}));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/design'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/engine-render'),d=require('@univerjs/network'),f=require('@univerjs/docs-ui'),p=require('@univerjs-pro/collaboration'),m=require('@univerjs/docs'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs-pro/slides-ui'),v=require('@univerjs/sheets-ui'),ee=require('@univerjs/rpc'),y=require('@univerjs/protocol');function te(_0x338e4a){const _0xa92a23=_0x4fab7a;switch(_0x338e4a){case t[_0xa92a23(0x21d)]['OFFLINE']:return{'icon':(0x0,l[_0xa92a23(0x1b7)])(s[_0xa92a23(0x3ee)],{}),'colorClass':'univer-text-red-500','i18nKey':_0xa92a23(0x2b0),'tooltipKey':_0xa92a23(0x468),'clickable':!0x0,'indicator':_0xa92a23(0x201)};case t['CollaborationStatus'][_0xa92a23(0x36b)]:return{'icon':(0x0,l['jsx'])(s[_0xa92a23(0x3ee)],{}),'colorClass':_0xa92a23(0x1de),'i18nKey':_0xa92a23(0x1f1),'clickable':!0x1,'indicator':_0xa92a23(0x201)};case t['CollaborationStatus'][_0xa92a23(0x495)]:return{'icon':(0x0,l[_0xa92a23(0x1b7)])(s[_0xa92a23(0x3c0)],{}),'colorClass':_0xa92a23(0x253),'i18nKey':_0xa92a23(0x46f),'clickable':!0x1,'indicator':'spin'};case t[_0xa92a23(0x21d)][_0xa92a23(0x48a)]:return{'icon':(0x0,l[_0xa92a23(0x1b7)])(s[_0xa92a23(0x336)],{}),'colorClass':_0xa92a23(0x31d),'i18nKey':_0xa92a23(0x2ef),'clickable':!0x1,'indicator':_0xa92a23(0x201)};case t[_0xa92a23(0x21d)][_0xa92a23(0x3eb)]:case t[_0xa92a23(0x21d)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,l[_0xa92a23(0x1b7)])(s[_0xa92a23(0x3c0)],{}),'colorClass':_0xa92a23(0x253),'i18nKey':_0xa92a23(0x212),'clickable':!0x1,'indicator':_0xa92a23(0x2a1)};case t[_0xa92a23(0x21d)][_0xa92a23(0x275)]:return{'icon':(0x0,l[_0xa92a23(0x1b7)])(s[_0xa92a23(0x3c0)],{}),'colorClass':_0xa92a23(0x253),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0xa92a23(0x2a1)};case t[_0xa92a23(0x21d)][_0xa92a23(0x43b)]:return{'icon':(0x0,l['jsx'])(s['OnLineIcon'],{}),'colorClass':_0xa92a23(0x2aa),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':'static'};}}function ne(_0x142b87){const _0x41c240=_0x4fab7a;let {status$:_0x230156}=_0x142b87,_0x5f0d28=(0x0,r[_0x41c240(0x213)])(_0x230156,t[_0x41c240(0x21d)][_0x41c240(0x48a)]),_0x4285eb=(0x0,r[_0x41c240(0x20b)])(n['LocaleService']),_0x322711=(0x0,r[_0x41c240(0x20b)])(t[_0x41c240(0x26e)]),_0x253bc5=(0x0,c[_0x41c240(0x49b)])(()=>te(_0x5f0d28),[_0x5f0d28]),_0x1f02e6=_0x5f0d28!==t[_0x41c240(0x21d)][_0x41c240(0x351)],_0x1e57bf=_0x4285eb['t'](_0x253bc5[_0x41c240(0x482)]),_0x3ccdef=_0x253bc5[_0x41c240(0x415)]?_0x4285eb['t'](_0x253bc5[_0x41c240(0x415)]):_0x1e57bf,_0x1e5d2d=(0x0,c[_0x41c240(0x385)])(()=>{_0x1f02e6||_0x322711['reconnect']();},[_0x1f02e6,_0x322711]),_0x46ac90=(0x0,c['useCallback'])(_0x15bfc8=>{const _0x217598=_0x41c240;!_0x1f02e6&&(_0x15bfc8[_0x217598(0x2b3)]==='Enter'||_0x15bfc8['key']==='\x20')&&(_0x15bfc8[_0x217598(0x427)](),_0x322711[_0x217598(0x38f)]());},[_0x1f02e6,_0x322711]),_0x51df1e=(0x0,l[_0x41c240(0x1b7)])(_0x41c240(0x453),{'className':(0x0,o[_0x41c240(0x20f)])(_0x41c240(0x473),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x253bc5['colorClass'],{'univer-animate-spin':_0x253bc5['indicator']===_0x41c240(0x2a1),'univer-animate-pulse':_0x253bc5[_0x41c240(0x2bd)]===_0x41c240(0x3b4)}),'aria-hidden':_0x41c240(0x28f),'children':_0x253bc5[_0x41c240(0x393)]}),_0x57bdc9=(0x0,l[_0x41c240(0x1b7)])(_0x41c240(0x453),{'className':(0x0,o[_0x41c240(0x20f)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x41c240(0x22a),_0x41c240(0x2fe),_0x41c240(0x3a9),_0x41c240(0x2f5),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x253bc5['clickable'],'univer-cursor-default':!_0x253bc5['clickable']}),'children':_0x51df1e});return _0x253bc5[_0x41c240(0x1e0)]?(0x0,l[_0x41c240(0x1b7)])(o[_0x41c240(0x329)],{'title':_0x3ccdef,'placement':_0x41c240(0x2a2),'children':(0x0,l[_0x41c240(0x1b7)])('button',{'type':'button','onClick':_0x1e5d2d,'onKeyDown':_0x46ac90,'className':(0x0,o[_0x41c240(0x20f)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x41c240(0x324),_0x41c240(0x386),_0x41c240(0x268)),'aria-label':_0x1e57bf+_0x41c240(0x491)+_0x3ccdef,'role':'status','aria-live':_0x41c240(0x3e6),'aria-atomic':_0x41c240(0x28f),'children':_0x57bdc9})}):(0x0,l['jsx'])(o['Tooltip'],{'title':_0x3ccdef,'placement':_0x41c240(0x2a2),'children':(0x0,l[_0x41c240(0x1b7)])('div',{'className':(0x0,o[_0x41c240(0x20f)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x41c240(0x324),_0x41c240(0x386)),'aria-label':_0x1e57bf,'role':'status','aria-live':_0x41c240(0x3e6),'aria-atomic':_0x41c240(0x28f),'children':_0x57bdc9})});}function b(_0xb012c2){'@babel/helpers - typeof';const _0x547310=_0x4fab7a;return b=typeof Symbol==_0x547310(0x270)&&typeof Symbol[_0x547310(0x2f8)]=='symbol'?function(_0x2bc2b7){return typeof _0x2bc2b7;}:function(_0x6495e1){const _0x383f60=_0x547310;return _0x6495e1&&typeof Symbol==_0x383f60(0x270)&&_0x6495e1[_0x383f60(0x2dd)]===Symbol&&_0x6495e1!==Symbol[_0x383f60(0x3ae)]?_0x383f60(0x322):typeof _0x6495e1;},b(_0xb012c2);}function re(_0x42a4e0,_0x24accc){const _0xfa57e4=_0x4fab7a;if(b(_0x42a4e0)!=_0xfa57e4(0x3ea)||!_0x42a4e0)return _0x42a4e0;var _0x28c4cc=_0x42a4e0[Symbol['toPrimitive']];if(_0x28c4cc!==void 0x0){var _0x552a8c=_0x28c4cc[_0xfa57e4(0x2c2)](_0x42a4e0,_0x24accc||_0xfa57e4(0x463));if(b(_0x552a8c)!=_0xfa57e4(0x3ea))return _0x552a8c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x24accc===_0xfa57e4(0x1ce)?String:Number)(_0x42a4e0);}function ie(_0x297d8c){const _0x3b9d55=_0x4fab7a;var _0xf4d9ad=re(_0x297d8c,_0x3b9d55(0x1ce));return b(_0xf4d9ad)==_0x3b9d55(0x322)?_0xf4d9ad:_0xf4d9ad+'';}function x(_0x507e0a,_0x1e8c96,_0x129911){const _0x2bdded=_0x4fab7a;return(_0x1e8c96=ie(_0x1e8c96))in _0x507e0a?Object[_0x2bdded(0x402)](_0x507e0a,_0x1e8c96,{'value':_0x129911,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x507e0a[_0x1e8c96]=_0x129911,_0x507e0a;}function S(_0x250ccc,_0x49263e){return function(_0x2d31af,_0x3fbe0f){_0x49263e(_0x2d31af,_0x3fbe0f,_0x250ccc);};}function C(_0x5e7503,_0x5328aa,_0x4692dd,_0x487b0c){const _0xeaad61=_0x4fab7a;var _0x593209=arguments['length'],_0xdb8547=_0x593209<0x3?_0x5328aa:_0x487b0c===null?_0x487b0c=Object[_0xeaad61(0x455)](_0x5328aa,_0x4692dd):_0x487b0c,_0x3272e3;if(typeof Reflect==_0xeaad61(0x3ea)&&typeof Reflect[_0xeaad61(0x297)]=='function')_0xdb8547=Reflect['decorate'](_0x5e7503,_0x5328aa,_0x4692dd,_0x487b0c);else{for(var _0x2c2db1=_0x5e7503[_0xeaad61(0x42e)]-0x1;_0x2c2db1>=0x0;_0x2c2db1--)(_0x3272e3=_0x5e7503[_0x2c2db1])&&(_0xdb8547=(_0x593209<0x3?_0x3272e3(_0xdb8547):_0x593209>0x3?_0x3272e3(_0x5328aa,_0x4692dd,_0xdb8547):_0x3272e3(_0x5328aa,_0x4692dd))||_0xdb8547);}return _0x593209>0x3&&_0xdb8547&&Object[_0xeaad61(0x402)](_0x5328aa,_0x4692dd,_0xdb8547),_0xdb8547;}let w=class extends n[_0x4fab7a(0x26b)]{constructor(_0x4bfaba,_0x12c79e,_0xcb5872,_0x117b6f){const _0x2ab87d=_0x4fab7a;super(),this['_univerInstanceService']=_0x4bfaba,this[_0x2ab87d(0x228)]=_0x12c79e,this['_collaborationController']=_0xcb5872,this[_0x2ab87d(0x1e9)]=_0x117b6f,x(this,'_status$',new i[(_0x2ab87d(0x1d1))](t['CollaborationStatus']['NOT_COLLAB'])),this[_0x2ab87d(0x36d)](),this['_initStatusListener']();}['_initStatusListener'](){const _0x62faf7=_0x4fab7a;this[_0x62faf7(0x3b1)]((0x0,i[_0x62faf7(0x222)])(this['_univerInstanceService'][_0x62faf7(0x1f8)],this['_univerInstanceService'][_0x62faf7(0x1db)](n[_0x62faf7(0x2de)][_0x62faf7(0x2f2)]),this[_0x62faf7(0x330)][_0x62faf7(0x1db)](n[_0x62faf7(0x2de)][_0x62faf7(0x2df)]))[_0x62faf7(0x27b)]((0x0,a[_0x62faf7(0x1c2)])(()=>ae(this['_univerInstanceService'])),(0x0,a[_0x62faf7(0x24c)])(),(0x0,i[_0x62faf7(0x35d)])(_0x28574a=>_0x28574a?this[_0x62faf7(0x286)][_0x62faf7(0x25f)](_0x28574a):(0x0,i['of'])(null)),(0x0,i[_0x62faf7(0x35d)])(_0x2a1998=>_0x2a1998?_0x2a1998[_0x62faf7(0x376)]:(0x0,i['of'])(t[_0x62faf7(0x21d)][_0x62faf7(0x48a)])))['subscribe'](_0x1cd9dd=>{const _0x5e6a92=_0x62faf7;this[_0x5e6a92(0x281)][_0x5e6a92(0x292)](_0x1cd9dd);}));}['_initStatusComponent'](){const _0x3b2995=_0x4fab7a;this[_0x3b2995(0x3b1)](this['_uiPartsService'][_0x3b2995(0x450)](r[_0x3b2995(0x291)][_0x3b2995(0x431)],()=>(0x0,r['connectInjector'])(se({'status$':this[_0x3b2995(0x281)][_0x3b2995(0x1b9)]()}),this[_0x3b2995(0x228)])));}};w=C([S(0x0,n[_0x4fab7a(0x437)]),S(0x1,(0x0,n[_0x4fab7a(0x3bb)])(n['Injector'])),S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(t[_0x4fab7a(0x333)])),S(0x3,r[_0x4fab7a(0x405)])],w);let T=class extends n[_0x4fab7a(0x26b)]{constructor(_0x506b60,_0x21d5b1,_0x42e24a,_0xe86c55){const _0x428dbd=_0x4fab7a;super(),this[_0x428dbd(0x330)]=_0x506b60,this['_injector']=_0x21d5b1,this[_0x428dbd(0x286)]=_0x42e24a,this[_0x428dbd(0x1e9)]=_0xe86c55,x(this,_0x428dbd(0x281),new i[(_0x428dbd(0x1d1))](t[_0x428dbd(0x21d)]['NOT_COLLAB'])),this[_0x428dbd(0x36d)](),this[_0x428dbd(0x2f0)]();}[_0x4fab7a(0x2f0)](){const _0x2c27b5=_0x4fab7a;this['disposeWithMe']((0x0,i[_0x2c27b5(0x222)])((0x0,i['of'])(null),this[_0x2c27b5(0x330)][_0x2c27b5(0x1db)](n['UniverInstanceType']['UNIVER_BOARD']))[_0x2c27b5(0x27b)]((0x0,a[_0x2c27b5(0x1c2)])(()=>oe(this[_0x2c27b5(0x330)])),(0x0,a['distinctUntilChanged'])(),(0x0,i[_0x2c27b5(0x35d)])(_0x599de1=>_0x599de1?this[_0x2c27b5(0x286)][_0x2c27b5(0x25f)](_0x599de1):(0x0,i['of'])(null)),(0x0,i[_0x2c27b5(0x35d)])(_0x47f6dd=>_0x47f6dd?_0x47f6dd[_0x2c27b5(0x376)]:(0x0,i['of'])(t[_0x2c27b5(0x21d)][_0x2c27b5(0x48a)])))[_0x2c27b5(0x3b6)](_0x2910d9=>{this['_status$']['next'](_0x2910d9);}));}[_0x4fab7a(0x36d)](){const _0x4b62a6=_0x4fab7a;this[_0x4b62a6(0x3b1)](this[_0x4b62a6(0x1e9)][_0x4b62a6(0x450)](e[_0x4b62a6(0x354)],()=>(0x0,r[_0x4b62a6(0x307)])(se({'status$':this[_0x4b62a6(0x281)]['asObservable']()}),this['_injector'])));}};T=C([S(0x0,n['IUniverInstanceService']),S(0x1,(0x0,n[_0x4fab7a(0x3bb)])(n['Injector'])),S(0x2,(0x0,n['Inject'])(t[_0x4fab7a(0x333)])),S(0x3,r[_0x4fab7a(0x405)])],T);function ae(_0x3321c2){const _0x5d77fb=_0x4fab7a;let _0x13f9bd=_0x3321c2[_0x5d77fb(0x481)](),_0x153f9a=_0x13f9bd==null?void 0x0:_0x13f9bd[_0x5d77fb(0x1ed)]();if(_0x153f9a&&!(0x0,n[_0x5d77fb(0x1e4)])(_0x153f9a))return _0x153f9a;let _0x5b5382=_0x3321c2[_0x5d77fb(0x244)](n[_0x5d77fb(0x2de)][_0x5d77fb(0x2f2)]),_0x9734d1=_0x5b5382==null?void 0x0:_0x5b5382[_0x5d77fb(0x1ed)]();if(_0x9734d1&&!(0x0,n[_0x5d77fb(0x1e4)])(_0x9734d1))return _0x9734d1;let _0x1c2d76=_0x3321c2[_0x5d77fb(0x244)](n['UniverInstanceType'][_0x5d77fb(0x2df)]);if(_0x1c2d76)return _0x1c2d76[_0x5d77fb(0x1ed)]();let _0x759511=_0x3321c2[_0x5d77fb(0x2f3)](n[_0x5d77fb(0x2de)]['UNIVER_DOC'])[_0x5d77fb(0x374)](_0x178dfa=>!(0x0,n[_0x5d77fb(0x1e4)])(_0x178dfa[_0x5d77fb(0x1ed)]()));return _0x759511?_0x759511[_0x5d77fb(0x1ed)]():null;}function oe(_0x23e6e2){const _0x204900=_0x4fab7a;var _0x85ff35;let _0x15f6e9=_0x23e6e2['getCurrentUnitOfType'](n[_0x204900(0x2de)]['UNIVER_BOARD']);return(_0x85ff35=_0x15f6e9==null?void 0x0:_0x15f6e9[_0x204900(0x1ed)]())==null?null:_0x85ff35;}function se(_0x12a313){let {status$:_0x4ec953}=_0x12a313;return function(){return(0x0,l['jsx'])(ne,{'status$':_0x4ec953});};}var ce=_0x4fab7a(0x480),le=_0x4fab7a(0x23e);function _0x1c7f(_0x434c48,_0x263141){_0x434c48=_0x434c48-0x196;const _0x19cd22=_0x19cd();let _0x1c7f27=_0x19cd22[_0x434c48];return _0x1c7f27;}const ue={};let E=class extends n[_0x4fab7a(0x303)]{constructor(_0x3ebf67,_0x474809){const _0x8292e0=_0x4fab7a;super(),this['_docClipboardService']=_0x3ebf67,this[_0x8292e0(0x3ca)]=_0x474809,this[_0x8292e0(0x40a)]();}['_init'](){const _0x11af76=_0x4fab7a;let _0x232be6=this;this['disposeWithMe'](this[_0x11af76(0x261)]['addClipboardHook']({'onBeforePasteImage':async _0x5a519b=>{const _0x2e58a6=_0x11af76;let _0x42a8ce=await _0x232be6[_0x2e58a6(0x3ca)][_0x2e58a6(0x1d0)](_0x5a519b);return _0x42a8ce?{'source':_0x42a8ce['source'],'imageSourceType':_0x42a8ce[_0x2e58a6(0x254)]}:null;}}));}};E=C([S(0x0,f[_0x4fab7a(0x2db)]),S(0x1,n[_0x4fab7a(0x21b)])],E);function de(_0x47bb48,_0x46c4fb){const _0x121510=_0x4fab7a;_0x47bb48[_0x121510(0x335)](),_0x47bb48[_0x121510(0x1f2)]=_0x121510(0x1eb);let _0x566719=_0x47bb48[_0x121510(0x317)](_0x46c4fb)[_0x121510(0x225)];return _0x47bb48[_0x121510(0x44f)](),Math['min'](_0x566719+0x8,0xc8);}function fe(_0x3b6189,_0xcd241c){const _0x4028bf=_0x4fab7a;var _0x2d3196,_0x8cb419,_0x3999d4;let {radius:_0x43cc24,width:_0x49eaef,height:_0x1dc722}=_0xcd241c;_0x43cc24=(_0x2d3196=_0x43cc24)==null?0x0:_0x2d3196,_0x49eaef=(_0x8cb419=_0x49eaef)==null?0x1e:_0x8cb419,_0x1dc722=(_0x3999d4=_0x1dc722)==null?0x1e:_0x3999d4;let _0x4ad280=0x0,_0x4183a7=0x0,_0x5a35ab=0x0;_0x4ad280=_0x4183a7=_0x5a35ab=Math['min'](_0x43cc24,_0x49eaef/0x2,_0x1dc722/0x2),_0x3b6189[_0x4028bf(0x339)](),_0x3b6189['moveTo'](_0x4ad280,0x0),_0x3b6189[_0x4028bf(0x30f)](_0x49eaef-_0x4183a7,0x0),_0x3b6189[_0x4028bf(0x38b)](_0x49eaef-_0x4183a7,_0x4183a7,_0x4183a7,Math['PI']*0x3/0x2,0x0,!0x1),_0x3b6189[_0x4028bf(0x30f)](_0x49eaef,_0x1dc722-_0x5a35ab),_0x3b6189[_0x4028bf(0x38b)](_0x49eaef-_0x5a35ab,_0x1dc722-_0x5a35ab,_0x5a35ab,0x0,Math['PI']/0x2,!0x1),_0x3b6189[_0x4028bf(0x30f)](0x0,_0x1dc722),_0x3b6189['lineTo'](0x0,_0x4ad280),_0x3b6189[_0x4028bf(0x38b)](_0x4ad280,_0x4ad280,_0x4ad280,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3b6189['closePath'](),_0xcd241c['fill']&&(_0x3b6189[_0x4028bf(0x335)](),_0x3b6189[_0x4028bf(0x1ba)]=_0xcd241c[_0x4028bf(0x2d8)],_0xcd241c[_0x4028bf(0x439)]==='evenodd'?_0x3b6189['fill']('evenodd'):_0x3b6189[_0x4028bf(0x2d8)](),_0x3b6189['restore']());}var D=class e extends u[_0x4fab7a(0x2f1)]{constructor(_0xc085e6,_0x253e20){const _0x4281a1=_0x4fab7a;super(_0xc085e6,_0x253e20),x(this,'color',void 0x0),x(this,_0x4281a1(0x2bb),void 0x0),this[_0x4281a1(0x28d)]=_0x253e20==null?void 0x0:_0x253e20[_0x4281a1(0x28d)],this['text']=_0x253e20==null?void 0x0:_0x253e20[_0x4281a1(0x2bb)];}static[_0x4fab7a(0x42f)](_0x146c7f,_0x12b62d){const _0x5af0cd=_0x4fab7a;let {text:_0x3f357a,color:_0x106c6c}=_0x12b62d;_0x146c7f['save'](),_0x146c7f[_0x5af0cd(0x1f2)]=_0x5af0cd(0x1b5);let _0x19b706=_0x146c7f[_0x5af0cd(0x317)](_0x3f357a)[_0x5af0cd(0x225)];if(fe(_0x146c7f,{'height':0x14,'radius':0x4,'width':de(_0x146c7f,_0x3f357a),'fill':_0x106c6c,'evented':!0x1}),_0x146c7f[_0x5af0cd(0x1ba)]=_0x5af0cd(0x3d3),_0x19b706>0xc0){let _0x3797a8='',_0x5858f8=0x0;for(let _0x2ab2fe of _0x3f357a){let _0xe70c2a=_0x146c7f[_0x5af0cd(0x317)](_0x2ab2fe)[_0x5af0cd(0x225)];if(_0x5858f8+_0xe70c2a<=0xc0-_0x146c7f[_0x5af0cd(0x317)](_0x5af0cd(0x352))['width'])_0x3797a8+=_0x2ab2fe,_0x5858f8+=_0xe70c2a;else{_0x3797a8+=_0x5af0cd(0x352);break;}}_0x146c7f[_0x5af0cd(0x302)](_0x3797a8,0x4,0xf);}else _0x146c7f[_0x5af0cd(0x302)](_0x3f357a,0x4,0xf);_0x146c7f[_0x5af0cd(0x44f)]();}['_draw'](_0x2ecc32){const _0x4fbc1e=_0x4fab7a;e[_0x4fbc1e(0x42f)](_0x2ecc32,this);}};const O=0x138a;var pe=class extends u[_0x4fab7a(0x2f1)]{constructor(_0x231916,_0x82118d){const _0x29e294=_0x4fab7a;super(_0x231916,{..._0x82118d,'evented':!0x1}),x(this,_0x29e294(0x1ee),_0x29e294(0x23f)),x(this,_0x29e294(0x216),''),x(this,_0x29e294(0x379),!0x0),_0x82118d&&this['setShapeProps'](_0x82118d);}[_0x4fab7a(0x3ce)](_0x345485){const _0x2448f6=_0x4fab7a;var _0x8141c2,_0x3f6c27,_0x23d4e9,_0x20ddfe,_0x247d12,_0xff0b5d,_0x2ac156,_0x3a8b9d;this[_0x2448f6(0x1ee)]=(_0x8141c2=_0x345485[_0x2448f6(0x28d)])==null?this[_0x2448f6(0x1ee)]:_0x8141c2,this[_0x2448f6(0x216)]=(_0x3f6c27=_0x345485[_0x2448f6(0x238)])==null?this[_0x2448f6(0x216)]:_0x3f6c27,this[_0x2448f6(0x379)]=(_0x23d4e9=_0x345485[_0x2448f6(0x256)])==null?this[_0x2448f6(0x379)]:_0x23d4e9,this['evented']=!0x1,this[_0x2448f6(0x37e)]({'left':(_0x20ddfe=_0x345485[_0x2448f6(0x2f7)])==null?this[_0x2448f6(0x2f7)]:_0x20ddfe,'top':(_0x247d12=_0x345485[_0x2448f6(0x445)])==null?this['top']:_0x247d12,'width':(_0xff0b5d=_0x345485[_0x2448f6(0x225)])==null?this['width']:_0xff0b5d,'height':(_0x2ac156=_0x345485[_0x2448f6(0x43e)])==null?this[_0x2448f6(0x43e)]:_0x2ac156,'angle':(_0x3a8b9d=_0x345485[_0x2448f6(0x211)])==null?this[_0x2448f6(0x211)]:_0x3a8b9d});}['_draw'](_0x8f937c){const _0x3fb03b=_0x4fab7a;_0x8f937c['save'](),_0x8f937c['strokeStyle']=this[_0x3fb03b(0x1ee)],_0x8f937c['lineWidth']=this[_0x3fb03b(0x203)]||1.5,_0x8f937c[_0x3fb03b(0x44b)]([0x6,0x4]),_0x8f937c[_0x3fb03b(0x410)](0x0,0x0,this['width'],this['height']),_0x8f937c[_0x3fb03b(0x44f)](),this[_0x3fb03b(0x379)]&&(_0x8f937c[_0x3fb03b(0x335)](),_0x8f937c[_0x3fb03b(0x365)](0x1,0x0,0x0,0x1,this[_0x3fb03b(0x225)],-0x14),D[_0x3fb03b(0x42f)](_0x8f937c,{'text':this['_name'],'color':this[_0x3fb03b(0x1ee)]}),_0x8f937c['restore']());}};const me=[_0x4fab7a(0x49d),'jiqing.500',_0x4fab7a(0x1f6),_0x4fab7a(0x305),'blue.400',_0x4fab7a(0x41b)];var k=class extends n['Disposable']{constructor(..._0x6c0a0c){const _0x1c40ef=_0x4fab7a;super(..._0x6c0a0c),x(this,_0x1c40ef(0x1f0),new Map()),x(this,_0x1c40ef(0x3d7),0x0);}['assignAColorForMemberID'](_0x5d52fc){const _0x599354=_0x4fab7a;if(this[_0x599354(0x1f0)]['has'](_0x5d52fc))return this[_0x599354(0x1f0)]['get'](_0x5d52fc);let _0x46a818=me[this[_0x599354(0x3d7)]];return this[_0x599354(0x3d7)]=(this[_0x599354(0x3d7)]+0x1)%me['length'],this[_0x599354(0x1f0)][_0x599354(0x207)](_0x5d52fc,_0x46a818),_0x46a818;}};function he(_0x4d322c){const _0xfefa4a=_0x4fab7a;let _0x294e12;try{_0x294e12=JSON[_0xfefa4a(0x27d)](_0x4d322c);}catch{return null;}if(typeof _0x294e12!=_0xfefa4a(0x3ea)||!_0x294e12)return null;let _0xf80389=_0x294e12;if(_0xf80389[_0xfefa4a(0x2c4)]!==_0xfefa4a(0x209)||typeof _0xf80389['unitId']!=_0xfefa4a(0x1ce)||typeof _0xf80389['subUnitId']!='string')return null;let _0x1e92e4=Array['isArray'](_0xf80389[_0xfefa4a(0x381)])?_0xf80389[_0xfefa4a(0x381)][_0xfefa4a(0x3d9)](_0x404d47=>typeof _0x404d47==_0xfefa4a(0x1ce)):[],_0x19fff7=typeof _0xf80389['focusedId']==_0xfefa4a(0x1ce)?_0xf80389['focusedId']:null;return{'kind':_0xfefa4a(0x209),'unitId':_0xf80389[_0xfefa4a(0x343)],'subUnitId':_0xf80389[_0xfefa4a(0x3d5)],'selectedIds':_0x1e92e4,'focusedId':_0x19fff7};}let A=class extends n['RxDisposable']{get[_0x4fab7a(0x417)](){const _0x4a8442=_0x4fab7a;return this[_0x4a8442(0x3b5)]['getValue']();}get[_0x4fab7a(0x273)](){const _0x579090=_0x4fab7a;return this[_0x579090(0x1ae)][_0x579090(0x2c8)]();}constructor(_0x557a07,_0x20de3d,_0x86369e,_0x3b93b1,_0x420ab7){const _0x8fba07=_0x4fab7a;super(),this[_0x8fba07(0x459)]=_0x557a07,this[_0x8fba07(0x22c)]=_0x20de3d,this[_0x8fba07(0x496)]=_0x86369e,this[_0x8fba07(0x3c1)]=_0x3b93b1,this[_0x8fba07(0x3da)]=_0x420ab7,x(this,_0x8fba07(0x25c),!0x1),x(this,_0x8fba07(0x40a),!0x1),x(this,_0x8fba07(0x3b5),new i[(_0x8fba07(0x1d1))](new Map())),x(this,_0x8fba07(0x398),this[_0x8fba07(0x3b5)][_0x8fba07(0x1b9)]()),x(this,_0x8fba07(0x1ae),new i[(_0x8fba07(0x1d1))]([])),x(this,_0x8fba07(0x3f0),this[_0x8fba07(0x1ae)]['pipe']((0x0,i[_0x8fba07(0x19f)])(0x12c))),x(this,'_updateLocalCursor',(0x0,n[_0x8fba07(0x346)])(_0x4ae321=>{const _0xf412e=_0x8fba07;let _0x2e514b=_0x4ae321[_0xf412e(0x442)];if(!_0x2e514b||_0x2e514b[_0xf412e(0x343)]!==this[_0xf412e(0x459)])return;let _0x141927={'kind':'board-element-selection','unitId':_0x2e514b[_0xf412e(0x343)],'subUnitId':_0x2e514b[_0xf412e(0x3d5)],'selectedIds':_0x4ae321[_0xf412e(0x381)][_0xf412e(0x3d9)](_0x2e864b=>typeof _0x2e864b==_0xf412e(0x1ce)),'focusedId':_0x4ae321['focusedId']},_0x19373f={'eventID':p[_0xf412e(0x331)][_0xf412e(0x301)],'data':{'unitID':this[_0xf412e(0x459)],'memberID':this[_0xf412e(0x22c)][_0xf412e(0x23a)](),'selection':JSON[_0xf412e(0x39d)](_0x141927)}};this['_session'][_0xf412e(0x2eb)](_0x19373f,this['unitID']);},0x64));}['dispose'](){const _0x5ea952=_0x4fab7a;super[_0x5ea952(0x418)](),this[_0x5ea952(0x3b5)]['next'](new Map()),this[_0x5ea952(0x3b5)][_0x5ea952(0x1c8)](),this[_0x5ea952(0x1ae)][_0x5ea952(0x292)]([]),this[_0x5ea952(0x1ae)][_0x5ea952(0x1c8)]();}['init'](){const _0x1b844a=_0x4fab7a;this['_init']||(this[_0x1b844a(0x40a)]=!0x0,this[_0x1b844a(0x22c)][_0x1b844a(0x49a)][_0x1b844a(0x27b)]((0x0,i[_0x1b844a(0x202)])(this['dispose$']))['subscribe'](_0x33e406=>{const _0x448840=_0x1b844a;_0x33e406===t[_0x448840(0x29a)]['ONLINE']?this[_0x448840(0x266)]():this[_0x448840(0x259)]();}),this[_0x1b844a(0x22c)][_0x1b844a(0x420)][_0x1b844a(0x27b)]((0x0,i['takeUntil'])(this['dispose$']))[_0x1b844a(0x3b6)](_0x32c315=>{const _0x2126d2=_0x1b844a;let _0x3ea981=_0x32c315[_0x2126d2(0x31e)];_0x3ea981===p[_0x2126d2(0x331)][_0x2126d2(0x301)]&&this[_0x2126d2(0x3ef)](_0x32c315),_0x3ea981===p[_0x2126d2(0x331)][_0x2126d2(0x41c)]&&this['_onCursorDelete'](_0x32c315);}),this[_0x1b844a(0x3da)]['state$'][_0x1b844a(0x27b)]((0x0,i['takeUntil'])(this[_0x1b844a(0x48f)]))[_0x1b844a(0x3b6)](_0x5114e5=>{const _0x516e43=_0x1b844a;this[_0x516e43(0x25c)]&&this['_updateLocalCursor'](_0x5114e5);}));}[_0x4fab7a(0x3ef)](_0x526501){const _0x3a70fb=_0x4fab7a;var _0x5b3fb8,_0xfc1e3b,_0x2e346,_0x4ffcce;let {memberID:_0x5c5050,selection:_0x415045}=_0x526501[_0x3a70fb(0x433)];if(_0x5c5050===((_0x5b3fb8=(_0xfc1e3b=this[_0x3a70fb(0x22c)])['getMemberID'])==null?void 0x0:_0x5b3fb8[_0x3a70fb(0x2c2)](_0xfc1e3b)))return;let _0x533735=he(_0x415045);if(!_0x533735||_0x533735[_0x3a70fb(0x343)]!==this[_0x3a70fb(0x459)])return;let _0x11d503=(_0x2e346=(_0x4ffcce=this[_0x3a70fb(0x3c1)][_0x3a70fb(0x2c3)](this[_0x3a70fb(0x459)],_0x5c5050))==null?void 0x0:_0x4ffcce['name'])==null?'Unknown\x20user':_0x2e346,_0x51928a={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x5c5050),'name':_0x11d503,'unitId':_0x533735[_0x3a70fb(0x343)],'subUnitId':_0x533735[_0x3a70fb(0x3d5)],'selectedIds':_0x533735[_0x3a70fb(0x381)],'focusedId':_0x533735[_0x3a70fb(0x3fe)],'selection':_0x415045},_0x59f4f2=new Map(this['cursorInfo']);_0x59f4f2[_0x3a70fb(0x207)](_0x5c5050,_0x51928a),this[_0x3a70fb(0x3b5)][_0x3a70fb(0x292)](_0x59f4f2);}[_0x4fab7a(0x3b0)](_0x1a0352){const _0x573456=_0x4fab7a;let {memberID:_0x235809}=_0x1a0352['data'],_0x2bca67=new Map(this['cursorInfo']);_0x2bca67[_0x573456(0x3dc)](_0x235809),this[_0x573456(0x3b5)][_0x573456(0x292)](_0x2bca67);}[_0x4fab7a(0x266)](){const _0x11b7cd=_0x4fab7a;this[_0x11b7cd(0x25c)]=!0x0,this[_0x11b7cd(0x369)](this[_0x11b7cd(0x3da)]['getSnapshot']());}['_toggleOffline'](){this['_online']=!0x1;}};A=C([S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(k)),S(0x3,(0x0,n[_0x4fab7a(0x3bb)])(t[_0x4fab7a(0x443)])),S(0x4,(0x0,n['Inject'])(e[_0x4fab7a(0x30a)]))],A);function ge(_0x3d760){const _0x5ddb17=_0x4fab7a;let _0x5d6c2c='';for(let _0x58c103 of _0x3d760){let {startOffset:_0x5d9bdd,endOffset:_0x2c0c5d,isActive:_0x318f27,rangeType:_0x545395,segmentId:_0x387549,segmentPage:_0x1a9df0}=_0x58c103;_0x5d6c2c[_0x5ddb17(0x42e)]&&(_0x5d6c2c+=','),_0x5d6c2c+=_0x5d9bdd+':'+_0x2c0c5d+':'+(_0x318f27?'1':'0')+':'+_0x545395+':'+_0x387549+':'+_0x1a9df0;}return _0x5d6c2c;}function _e(_0x5eb1e0){const _0xa255f2=_0x4fab7a;let _0x3b0a9d=_0x5eb1e0[_0xa255f2(0x2c5)](','),_0x21b211=[];for(let _0x23fa91 of _0x3b0a9d){let [_0x49689d,_0xd2ac85,_0x502aba,_0x31c5ae,_0x5ed286,_0x308138]=_0x23fa91['split'](':');_0x21b211['push']({'startOffset':Number(_0x49689d),'endOffset':Number(_0xd2ac85),'collapsed':_0x49689d===_0xd2ac85,'isActive':_0x502aba==='1','rangeType':_0x31c5ae===n[_0xa255f2(0x1e3)]['TEXT']?n['DOC_RANGE_TYPE'][_0xa255f2(0x33e)]:n[_0xa255f2(0x1e3)]['RECT'],'segmentId':typeof _0x5ed286==_0xa255f2(0x1ce)?String(_0x5ed286):'','segmentPage':Number(_0x308138==null?-0x1:_0x308138)});}return _0x21b211[_0xa255f2(0x29b)](_0x23ffb8=>_0x23ffb8['isActive'])||(_0x21b211[0x0]['isActive']=!0x0),_0x21b211;}var j=class extends n[_0x4fab7a(0x303)]{constructor(..._0x541bad){const _0xec0b0b=_0x4fab7a;super(..._0x541bad),x(this,_0xec0b0b(0x229),new i[(_0xec0b0b(0x1d1))](null)),x(this,_0xec0b0b(0x347),this[_0xec0b0b(0x229)][_0xec0b0b(0x1b9)]());}[_0x4fab7a(0x1a1)](_0x149d3e){const _0x78a3a3=_0x4fab7a;let {unitID:_0x316047,memberID:_0x45b1f0,textRanges:_0x481c6f}=_0x149d3e,_0x30562c=ge(_0x481c6f);if(_0x30562c==='')return;let _0x1b53fd={'unitID':_0x316047,'memberID':_0x45b1f0,'selection':_0x30562c};this[_0x78a3a3(0x229)][_0x78a3a3(0x292)](_0x1b53fd);}};let M=class extends n[_0x4fab7a(0x303)]{get['cursorInfo'](){const _0x380164=_0x4fab7a;return this['_cursorInfo$'][_0x380164(0x2c8)]();}get[_0x4fab7a(0x273)](){const _0x2e60f1=_0x4fab7a;return this['_roomMembers$'][_0x2e60f1(0x2c8)]();}constructor(_0x167c14,_0x365df0,_0x1bc554,_0x5bfae1,_0x474a08,_0x3bb396,_0x2f9553,_0x253739,_0x302518){const _0x5bf744=_0x4fab7a;super(),this[_0x5bf744(0x459)]=_0x167c14,this[_0x5bf744(0x22c)]=_0x365df0,this[_0x5bf744(0x228)]=_0x1bc554,this[_0x5bf744(0x496)]=_0x5bfae1,this[_0x5bf744(0x3c1)]=_0x474a08,this[_0x5bf744(0x1a3)]=_0x3bb396,this[_0x5bf744(0x3f5)]=_0x2f9553,this['_univerInstanceService']=_0x253739,this[_0x5bf744(0x48b)]=_0x302518,x(this,'_online',!0x1),x(this,_0x5bf744(0x40a),!0x1),x(this,'_cursorInfo$',new i['BehaviorSubject'](new Map())),x(this,_0x5bf744(0x398),this[_0x5bf744(0x3b5)]['asObservable']()),x(this,_0x5bf744(0x1ae),new i[(_0x5bf744(0x1d1))]([])),x(this,_0x5bf744(0x3f0),this[_0x5bf744(0x1ae)][_0x5bf744(0x27b)]((0x0,i[_0x5bf744(0x19f)])(0x12c))),x(this,_0x5bf744(0x369),(0x0,n['debounce'])(_0xa334b4=>{const _0x261560=_0x5bf744;let _0x36e9bf={'eventID':p[_0x261560(0x331)][_0x261560(0x301)],'data':{'unitID':this[_0x261560(0x459)],'memberID':this[_0x261560(0x22c)][_0x261560(0x23a)](),'selection':ge(_0xa334b4)}};this['_session'][_0x261560(0x2eb)](_0x36e9bf,this[_0x261560(0x459)]);},0x64));}[_0x4fab7a(0x418)](){const _0x200846=_0x4fab7a;super[_0x200846(0x418)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x200846(0x1c8)](),this[_0x200846(0x1ae)][_0x200846(0x292)]([]),this['_roomMembers$'][_0x200846(0x1c8)]();}['init'](){const _0x113431=_0x4fab7a;this['_init']||(this[_0x113431(0x40a)]=!0x0,this[_0x113431(0x22c)][_0x113431(0x49a)][_0x113431(0x27b)]((0x0,i[_0x113431(0x202)])(this[_0x113431(0x48f)]))[_0x113431(0x3b6)](_0x205c3d=>{const _0x115b89=_0x113431;_0x205c3d===t[_0x115b89(0x29a)]['ONLINE']?this[_0x115b89(0x266)]():this[_0x115b89(0x259)]();}),this[_0x113431(0x22c)][_0x113431(0x420)][_0x113431(0x27b)]((0x0,i['takeUntil'])(this['dispose$']))[_0x113431(0x3b6)](_0x291a0b=>{const _0x307e95=_0x113431;let _0x1f55d5=_0x291a0b[_0x307e95(0x31e)];_0x1f55d5===p[_0x307e95(0x331)][_0x307e95(0x301)]&&this[_0x307e95(0x3ef)](_0x291a0b),_0x1f55d5===p[_0x307e95(0x331)][_0x307e95(0x41c)]&&this[_0x307e95(0x3b0)](_0x291a0b);}),this['disposeWithMe'](this[_0x113431(0x48b)][_0x113431(0x41e)](_0x36e626=>{const _0x38eb8f=_0x113431;let _0x56b53b=_0x36e626[_0x38eb8f(0x2ce)];_0x56b53b!=null&&this[_0x38eb8f(0x25c)]&&_0x36e626['id']===m[_0x38eb8f(0x38a)]['id']&&_0x56b53b['unitId']===this['unitID']&&_0x56b53b[_0x38eb8f(0x47e)]===!0x1&&_0x56b53b[_0x38eb8f(0x2bf)][_0x38eb8f(0x42e)]>0x0&&this[_0x38eb8f(0x369)](_0x56b53b[_0x38eb8f(0x2bf)]);})),this[_0x113431(0x1a3)][_0x113431(0x347)][_0x113431(0x27b)]((0x0,i[_0x113431(0x202)])(this[_0x113431(0x48f)]))[_0x113431(0x3b6)](_0x3b97d2=>{const _0x41837b=_0x113431;if((_0x3b97d2==null?void 0x0:_0x3b97d2['unitID'])!==this[_0x41837b(0x459)])return;let _0x1cb34f={'eventID':p[_0x41837b(0x331)][_0x41837b(0x301)],'data':_0x3b97d2};this['_onCursorUpdate'](_0x1cb34f);}),this['disposeWithMe'](this[_0x113431(0x48b)][_0x113431(0x41e)](_0x421893=>{const _0x393143=_0x113431;if(_0x421893['params']==null)return;let _0x301a16=_0x421893[_0x393143(0x2ce)];if(_0x421893['id']!==m['RichTextEditingMutation']['id']||_0x301a16[_0x393143(0x343)]!==this[_0x393143(0x459)])return;let _0x2e55ce={'id':_0x393143(0x454),'params':_0x301a16},_0x1b9267=this[_0x393143(0x417)];for(let [_0x300420,_0x288d23]of _0x1b9267){let _0x3488dc={'id':_0x393143(0x454),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x288d23[_0x393143(0x2bf)]}},_0x1e49f2=this[_0x393143(0x3f5)][_0x393143(0x321)](_0x2e55ce,_0x3488dc,!0x1);if((0x0,p[_0x393143(0x208)])(_0x1e49f2))throw _0x1e49f2['error'];_0x1b9267[_0x393143(0x207)](_0x300420,{..._0x288d23,'ranges':_0x1e49f2[_0x393143(0x39a)][_0x393143(0x2ce)][_0x393143(0x46e)]});}queueMicrotask(()=>{const _0x376944=_0x393143;this[_0x376944(0x3b5)][_0x376944(0x292)](_0x1b9267);});})));}[_0x4fab7a(0x3ef)](_0x3c5581){const _0x58adf4=_0x4fab7a;var _0x321041,_0x410ce3;let {memberID:_0x491e4e,selection:_0x42a500}=_0x3c5581['data'],_0x2bfe05=_e(_0x42a500),_0x2d3993=(_0x321041=(_0x410ce3=this[_0x58adf4(0x3c1)][_0x58adf4(0x2c3)](this['unitID'],_0x491e4e))==null?void 0x0:_0x410ce3[_0x58adf4(0x238)])==null?'Unknown\x20user':_0x321041,_0x212e67={'color':this[_0x58adf4(0x496)][_0x58adf4(0x341)](_0x491e4e),'name':_0x2d3993,'ranges':_0x2bfe05},_0x448838=this[_0x58adf4(0x417)];_0x448838['set'](_0x491e4e,_0x212e67),this[_0x58adf4(0x3b5)]['next'](_0x448838);}[_0x4fab7a(0x3b0)](_0x51f1e2){const _0x5c53c2=_0x4fab7a;let {memberID:_0x52457f}=_0x51f1e2[_0x5c53c2(0x433)],_0x4ca670=this[_0x5c53c2(0x417)];_0x4ca670[_0x5c53c2(0x3dc)](_0x52457f),this[_0x5c53c2(0x3b5)][_0x5c53c2(0x292)](_0x4ca670);}['_toggleOnline'](){const _0x357064=_0x4fab7a;var _0x49901b;if(this[_0x357064(0x25c)]=!0x0,((_0x49901b=this['_univerInstanceService'][_0x357064(0x481)]())==null?void 0x0:_0x49901b[_0x357064(0x1ed)]())!==this[_0x357064(0x459)])return;let _0x915670=this[_0x357064(0x228)][_0x357064(0x2ab)](m[_0x357064(0x3a1)])[_0x357064(0x3be)]();Array['isArray'](_0x915670)&&_0x915670[_0x357064(0x42e)]>0x0&&this[_0x357064(0x369)](_0x915670);}[_0x4fab7a(0x259)](){const _0x5c5ec7=_0x4fab7a;this[_0x5c5ec7(0x25c)]=!0x1;}};M=C([S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(n['Injector'])),S(0x3,(0x0,n[_0x4fab7a(0x3bb)])(k)),S(0x4,(0x0,n[_0x4fab7a(0x3bb)])(t[_0x4fab7a(0x443)])),S(0x5,(0x0,n[_0x4fab7a(0x3bb)])(j)),S(0x6,p[_0x4fab7a(0x34a)]),S(0x7,n[_0x4fab7a(0x437)]),S(0x8,n[_0x4fab7a(0x19e)])],M);const ve=()=>{let _0x1802d8=[],_0x109983=!0x1;return _0x42a0e0=>{const _0x50764a=_0x1c7f;_0x1802d8[_0x50764a(0x344)](_0x42a0e0),_0x109983||(_0x109983=!0x0,setTimeout(()=>{const _0x8f5ae5=_0x50764a;_0x1802d8[_0x8f5ae5(0x39c)](_0x4dc552=>_0x4dc552()),_0x1802d8=[],_0x109983=!0x1;}));};};let N=class extends n[_0x4fab7a(0x303)]{get[_0x4fab7a(0x417)](){const _0x5b859e=_0x4fab7a;return this[_0x5b859e(0x3b5)][_0x5b859e(0x2c8)]();}get[_0x4fab7a(0x273)](){const _0x3ddb8a=_0x4fab7a;return this['_roomMembers$'][_0x3ddb8a(0x2c8)]();}constructor(_0x2483cb,_0x2a52bb,_0x100a7a,_0x1e3e29,_0x14f179,_0x7e2d19,_0x4ad569,_0x19c00e){const _0x8b4886=_0x4fab7a;super(),this[_0x8b4886(0x459)]=_0x2483cb,this[_0x8b4886(0x22c)]=_0x2a52bb,this[_0x8b4886(0x228)]=_0x100a7a,this[_0x8b4886(0x496)]=_0x1e3e29,this[_0x8b4886(0x3c1)]=_0x14f179,this['_univerInstanceService']=_0x7e2d19,this[_0x8b4886(0x48b)]=_0x4ad569,this[_0x8b4886(0x426)]=_0x19c00e,x(this,_0x8b4886(0x25c),!0x1),x(this,_0x8b4886(0x40a),!0x1),x(this,_0x8b4886(0x3b5),new i['BehaviorSubject'](new Map())),x(this,_0x8b4886(0x398),this[_0x8b4886(0x3b5)][_0x8b4886(0x1b9)]()),x(this,_0x8b4886(0x1ae),new i[(_0x8b4886(0x1d1))]([])),x(this,'roomMembers$',this[_0x8b4886(0x1ae)][_0x8b4886(0x27b)]((0x0,i[_0x8b4886(0x19f)])(0x12c))),x(this,_0x8b4886(0x369),(0x0,n[_0x8b4886(0x346)])((_0x2b8635,_0x121700)=>{const _0x2e2eec=_0x8b4886;let _0x3f5cc8={'eventID':p[_0x2e2eec(0x331)][_0x2e2eec(0x301)],'data':{'unitID':this[_0x2e2eec(0x459)],'memberID':this[_0x2e2eec(0x22c)]['getMemberID'](),'selection':(0x0,h[_0x2e2eec(0x45a)])(_0x2b8635,_0x121700[_0x2e2eec(0x350)])}};this[_0x2e2eec(0x22c)][_0x2e2eec(0x2eb)](_0x3f5cc8,this['unitID']);},0x64));}['dispose'](){const _0xd7d3c7=_0x4fab7a;super[_0xd7d3c7(0x418)](),this[_0xd7d3c7(0x3b5)]['next'](new Map()),this[_0xd7d3c7(0x3b5)][_0xd7d3c7(0x1c8)](),this[_0xd7d3c7(0x1ae)][_0xd7d3c7(0x292)]([]),this[_0xd7d3c7(0x1ae)][_0xd7d3c7(0x1c8)]();}['init'](){const _0x65897c=_0x4fab7a;this[_0x65897c(0x40a)]||(this[_0x65897c(0x40a)]=!0x0,this[_0x65897c(0x22c)][_0x65897c(0x49a)][_0x65897c(0x27b)]((0x0,i[_0x65897c(0x202)])(this[_0x65897c(0x48f)]))[_0x65897c(0x3b6)](_0x482fb5=>{const _0x1751e0=_0x65897c;_0x482fb5===t[_0x1751e0(0x29a)][_0x1751e0(0x32e)]?this[_0x1751e0(0x266)]():this['_toggleOffline']();}),this[_0x65897c(0x22c)][_0x65897c(0x420)][_0x65897c(0x27b)]((0x0,i[_0x65897c(0x202)])(this[_0x65897c(0x48f)]))[_0x65897c(0x3b6)](_0x48da71=>{const _0x4a5a9b=_0x65897c;let _0x3fc573=_0x48da71['eventID'];_0x3fc573===p['CollaborationEvent'][_0x4a5a9b(0x301)]&&this[_0x4a5a9b(0x3ef)](_0x48da71),_0x3fc573===p[_0x4a5a9b(0x331)][_0x4a5a9b(0x41c)]&&this[_0x4a5a9b(0x3b0)](_0x48da71);}),this['_onRefRangeChange'](),this[_0x65897c(0x3b1)](this['_commandService'][_0x65897c(0x41e)](_0xca9458=>{const _0x4ca591=_0x65897c;if(this['_online']&&_0xca9458['id']===g['SetSelectionsOperation']['id']&&_0xca9458[_0x4ca591(0x2ce)][_0x4ca591(0x343)]===this[_0x4ca591(0x459)]){let _0x200fd7=_0xca9458[_0x4ca591(0x2ce)];this[_0x4ca591(0x369)](_0x200fd7[_0x4ca591(0x3d5)],_0x200fd7['selections'][0x0]);}})));}['_onCursorUpdate'](_0x37c0b1){const _0x193eff=_0x4fab7a;var _0x2b7e7f,_0x1c2380;let {memberID:_0xc6cd74,selection:_0x453bee}=_0x37c0b1[_0x193eff(0x433)],{sheetName:_0x261ce4,range:_0x94bdac}=(0x0,h[_0x193eff(0x1fe)])(_0x453bee),_0x348b2b={'name':(_0x2b7e7f=(_0x1c2380=this['_memberService'][_0x193eff(0x2c3)](this[_0x193eff(0x459)],_0xc6cd74))==null?void 0x0:_0x1c2380['name'])==null?'Unknown\x20user':_0x2b7e7f,'range':this['_getMergeRange'](_0x261ce4,_0x94bdac),'sheetID':_0x261ce4,'color':this[_0x193eff(0x496)]['assignAColorForMemberID'](_0xc6cd74),'selection':_0x453bee},_0x7bd019=this[_0x193eff(0x417)];_0x7bd019['set'](_0xc6cd74,_0x348b2b),this[_0x193eff(0x3b5)][_0x193eff(0x292)](_0x7bd019);}[_0x4fab7a(0x3b0)](_0x421e1a){const _0x3bc248=_0x4fab7a;let {memberID:_0x744c72}=_0x421e1a[_0x3bc248(0x433)],_0x4a5788=this['cursorInfo'];_0x4a5788[_0x3bc248(0x3dc)](_0x744c72),this[_0x3bc248(0x3b5)][_0x3bc248(0x292)](_0x4a5788);}[_0x4fab7a(0x43f)](_0x3c4f9c,_0x4148ff){const _0x1bfdc3=_0x4fab7a;var _0x3fc217;let _0x38642b=(_0x3fc217=this[_0x1bfdc3(0x330)][_0x1bfdc3(0x248)](this[_0x1bfdc3(0x459)]))==null||(_0x3fc217=_0x3fc217['getSheetBySheetId'](_0x3c4f9c))==null?void 0x0:_0x3fc217[_0x1bfdc3(0x42d)]();return(_0x38642b==null?void 0x0:_0x38642b['find'](_0x3fc632=>n[_0x1bfdc3(0x250)][_0x1bfdc3(0x313)](_0x3fc632,_0x4148ff)))||_0x4148ff;}[_0x4fab7a(0x3ed)](){const _0x41b29d=_0x4fab7a;let _0x2297a4=new n[(_0x41b29d(0x223))](),_0x8635aa=ve(),_0x5909c2=()=>{const _0x256e93=_0x41b29d;_0x2297a4[_0x256e93(0x418)]();let _0x3cda37=(_0x1a34f8,_0x11fc3c,_0x1d39d1,_0x2d5296)=>{const _0xee54e=_0x256e93;let _0x295e56=[];switch(_0x1a34f8['id']){case g['EffectRefRangId'][_0xee54e(0x258)]:_0x295e56=(0x0,g[_0xee54e(0x467)])(_0x1a34f8,_0x2d5296);break;case g[_0xee54e(0x1a7)]['DeleteRangeMoveUpCommandId']:_0x295e56=(0x0,g['handleDeleteRangeMoveUp'])(_0x1a34f8,_0x2d5296);break;case g[_0xee54e(0x1a7)][_0xee54e(0x34c)]:_0x295e56=(0x0,g[_0xee54e(0x1b6)])(_0x1a34f8,_0x2d5296);break;case g[_0xee54e(0x1a7)][_0xee54e(0x3b2)]:_0x295e56=(0x0,g[_0xee54e(0x46d)])(_0x1a34f8,_0x2d5296);break;case g[_0xee54e(0x1a7)][_0xee54e(0x3f4)]:_0x295e56=(0x0,g['handleInsertRangeMoveRight'])(_0x1a34f8,_0x2d5296);break;case g[_0xee54e(0x1a7)][_0xee54e(0x3bf)]:_0x295e56=(0x0,g[_0xee54e(0x19a)])(_0x1a34f8,_0x2d5296);break;case g[_0xee54e(0x1a7)][_0xee54e(0x29f)]:_0x295e56=(0x0,g[_0xee54e(0x3a5)])(_0x1a34f8,_0x2d5296);break;case g['EffectRefRangId'][_0xee54e(0x1ca)]:_0x295e56=(0x0,g[_0xee54e(0x3c9)])(_0x1a34f8,_0x2d5296);break;case g[_0xee54e(0x1a7)][_0xee54e(0x464)]:_0x295e56=(0x0,g[_0xee54e(0x2fd)])(_0x1a34f8,_0x2d5296);break;}let _0x5203a4=(0x0,g[_0xee54e(0x310)])(_0x295e56,_0x2d5296),_0x3458b3=this['cursorInfo'][_0xee54e(0x2ab)](_0x11fc3c);if(_0x3458b3&&_0x5203a4){let _0x1a17f0={..._0x3458b3,'range':_0x5203a4};this[_0xee54e(0x417)][_0xee54e(0x207)](_0x11fc3c,_0x1a17f0),_0x8635aa(()=>{const _0x2cdd88=_0xee54e;let _0x3a6180=this[_0x2cdd88(0x426)][_0x2cdd88(0x397)](_0x5203a4,_0x448f1c=>(_0x3a6180[_0x2cdd88(0x418)](),_0x3cda37(_0x448f1c,_0x11fc3c,_0x1d39d1,_0x5203a4)));_0x2297a4[_0x2cdd88(0x1a2)](_0x3a6180);});}return{'redos':[],'undos':[]};};this[_0x256e93(0x417)][_0x256e93(0x39c)]((_0x50068d,_0x2e01a6)=>{const _0x47278f=_0x256e93;let {range:_0x170dbd,sheetID:_0xa8438e}=_0x50068d,_0xa6928b=this[_0x47278f(0x426)][_0x47278f(0x397)](_0x170dbd,_0x56528d=>(_0xa6928b[_0x47278f(0x418)](),_0x3cda37(_0x56528d,_0x2e01a6,_0xa8438e,_0x170dbd)));_0x2297a4[_0x47278f(0x1a2)](_0xa6928b);});};this[_0x41b29d(0x3b1)]((0x0,n['toDisposable'])(this['_cursorInfo$'][_0x41b29d(0x3b6)](()=>{_0x5909c2();})));}['_toggleOnline'](){const _0x2e8fb0=_0x4fab7a;var _0x5c73d9,_0x3c77c3;if(this[_0x2e8fb0(0x25c)]=!0x0,((_0x5c73d9=this['_univerInstanceService'][_0x2e8fb0(0x481)]())==null?void 0x0:_0x5c73d9[_0x2e8fb0(0x1ed)]())!==this[_0x2e8fb0(0x459)])return;let _0x29c3c6=(_0x3c77c3=this[_0x2e8fb0(0x228)][_0x2e8fb0(0x2ab)](g[_0x2e8fb0(0x241)])['getCurrentSelections']())==null?void 0x0:_0x3c77c3[0x0],_0x414a92=this['_univerInstanceService'][_0x2e8fb0(0x244)](n['UniverInstanceType'][_0x2e8fb0(0x2df)])[_0x2e8fb0(0x488)]();_0x29c3c6&&_0x414a92&&this[_0x2e8fb0(0x369)](_0x414a92[_0x2e8fb0(0x1cf)](),_0x29c3c6);}[_0x4fab7a(0x259)](){const _0x53d763=_0x4fab7a;this[_0x53d763(0x25c)]=!0x1;}};N=C([S(0x2,(0x0,n['Inject'])(n[_0x4fab7a(0x2b1)])),S(0x3,(0x0,n[_0x4fab7a(0x3bb)])(k)),S(0x4,(0x0,n[_0x4fab7a(0x3bb)])(t['MemberService'])),S(0x5,n[_0x4fab7a(0x437)]),S(0x6,n[_0x4fab7a(0x19e)]),S(0x7,(0x0,n[_0x4fab7a(0x3bb)])(g[_0x4fab7a(0x28e)]))],N);function ye(_0x53510){const _0x182d83=_0x4fab7a;let _0x133c5b;try{_0x133c5b=JSON[_0x182d83(0x27d)](_0x53510);}catch{return null;}if(typeof _0x133c5b!=_0x182d83(0x3ea)||!_0x133c5b)return null;let _0x3000f9=_0x133c5b;if(_0x3000f9['kind']!==_0x182d83(0x1bd)||typeof _0x3000f9[_0x182d83(0x343)]!=_0x182d83(0x1ce)||typeof _0x3000f9[_0x182d83(0x3d5)]!='string')return null;let _0x1b0f05=Array[_0x182d83(0x316)](_0x3000f9[_0x182d83(0x381)])?_0x3000f9['selectedIds']['filter'](_0x4080d2=>typeof _0x4080d2==_0x182d83(0x1ce)):[],_0x3d8717=typeof _0x3000f9[_0x182d83(0x3fe)]=='string'?_0x3000f9[_0x182d83(0x3fe)]:null;return{'kind':_0x182d83(0x1bd),'unitId':_0x3000f9[_0x182d83(0x343)],'subUnitId':_0x3000f9['subUnitId'],'selectedIds':_0x1b0f05,'focusedId':_0x3d8717};}let P=class extends n[_0x4fab7a(0x303)]{get[_0x4fab7a(0x417)](){const _0x4026cd=_0x4fab7a;return this['_cursorInfo$'][_0x4026cd(0x2c8)]();}get[_0x4fab7a(0x273)](){const _0x5bbbb6=_0x4fab7a;return this[_0x5bbbb6(0x1ae)][_0x5bbbb6(0x2c8)]();}constructor(_0x3fbed4,_0x1eb5b0,_0x404e33,_0x369c1c,_0x3a79ed){const _0x505aab=_0x4fab7a;super(),this[_0x505aab(0x459)]=_0x3fbed4,this['_session']=_0x1eb5b0,this['_colorAssignService']=_0x404e33,this[_0x505aab(0x3c1)]=_0x369c1c,this[_0x505aab(0x45b)]=_0x3a79ed,x(this,_0x505aab(0x25c),!0x1),x(this,_0x505aab(0x40a),!0x1),x(this,_0x505aab(0x3b5),new i[(_0x505aab(0x1d1))](new Map())),x(this,_0x505aab(0x398),this[_0x505aab(0x3b5)][_0x505aab(0x1b9)]()),x(this,_0x505aab(0x1ae),new i[(_0x505aab(0x1d1))]([])),x(this,_0x505aab(0x3f0),this[_0x505aab(0x1ae)][_0x505aab(0x27b)]((0x0,i[_0x505aab(0x19f)])(0x12c))),x(this,_0x505aab(0x369),(0x0,n['debounce'])(_0x12d98d=>{const _0x37400d=_0x505aab;let _0x14b544=_0x12d98d['context'];if(!_0x14b544||_0x14b544[_0x37400d(0x343)]!==this['unitID'])return;let _0x131267={'kind':_0x37400d(0x1bd),'unitId':_0x14b544[_0x37400d(0x343)],'subUnitId':_0x14b544['subUnitId'],'selectedIds':_0x12d98d[_0x37400d(0x381)][_0x37400d(0x3d9)](_0x3f111e=>typeof _0x3f111e==_0x37400d(0x1ce)),'focusedId':_0x12d98d['focusedId']},_0x22808f={'eventID':p['CollaborationEvent'][_0x37400d(0x301)],'data':{'unitID':this[_0x37400d(0x459)],'memberID':this[_0x37400d(0x22c)][_0x37400d(0x23a)](),'selection':JSON['stringify'](_0x131267)}};this[_0x37400d(0x22c)][_0x37400d(0x2eb)](_0x22808f,this[_0x37400d(0x459)]);},0x64));}[_0x4fab7a(0x418)](){const _0x3d81a6=_0x4fab7a;super[_0x3d81a6(0x418)](),this[_0x3d81a6(0x3b5)][_0x3d81a6(0x292)](new Map()),this[_0x3d81a6(0x3b5)][_0x3d81a6(0x1c8)](),this[_0x3d81a6(0x1ae)]['next']([]),this[_0x3d81a6(0x1ae)][_0x3d81a6(0x1c8)]();}[_0x4fab7a(0x2a7)](){const _0x536e64=_0x4fab7a;this[_0x536e64(0x40a)]||(this[_0x536e64(0x40a)]=!0x0,this[_0x536e64(0x22c)][_0x536e64(0x49a)]['pipe']((0x0,i[_0x536e64(0x202)])(this[_0x536e64(0x48f)]))[_0x536e64(0x3b6)](_0x4e16f8=>{const _0x48764a=_0x536e64;_0x4e16f8===t[_0x48764a(0x29a)]['ONLINE']?this[_0x48764a(0x266)]():this[_0x48764a(0x259)]();}),this[_0x536e64(0x22c)]['event$'][_0x536e64(0x27b)]((0x0,i['takeUntil'])(this['dispose$']))[_0x536e64(0x3b6)](_0x47cfdd=>{const _0x33f579=_0x536e64;let _0x111f6f=_0x47cfdd[_0x33f579(0x31e)];_0x111f6f===p[_0x33f579(0x331)][_0x33f579(0x301)]&&this[_0x33f579(0x3ef)](_0x47cfdd),_0x111f6f===p[_0x33f579(0x331)]['USERS_LEAVE']&&this[_0x33f579(0x3b0)](_0x47cfdd);}),this['_slideDrawingStateService'][_0x536e64(0x38e)][_0x536e64(0x27b)]((0x0,i[_0x536e64(0x202)])(this[_0x536e64(0x48f)]))[_0x536e64(0x3b6)](_0x26ce7d=>{const _0x2d2652=_0x536e64;this[_0x2d2652(0x25c)]&&this['_updateLocalCursor'](_0x26ce7d);}));}['_onCursorUpdate'](_0x3dba76){const _0x53003c=_0x4fab7a;var _0x58e9dd,_0x399fff,_0x24b78e,_0x14b142;let {memberID:_0x2386f4,selection:_0x4ddcdd}=_0x3dba76['data'];if(_0x2386f4===((_0x58e9dd=(_0x399fff=this['_session'])['getMemberID'])==null?void 0x0:_0x58e9dd[_0x53003c(0x2c2)](_0x399fff)))return;let _0x241928=ye(_0x4ddcdd);if(!_0x241928||_0x241928[_0x53003c(0x343)]!==this['unitID'])return;let _0x2daa03=(_0x24b78e=(_0x14b142=this[_0x53003c(0x3c1)]['getMember'](this[_0x53003c(0x459)],_0x2386f4))==null?void 0x0:_0x14b142[_0x53003c(0x238)])==null?_0x53003c(0x362):_0x24b78e,_0x19cb19={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x2386f4),'name':_0x2daa03,'unitId':_0x241928['unitId'],'subUnitId':_0x241928[_0x53003c(0x3d5)],'selectedIds':_0x241928[_0x53003c(0x381)],'focusedId':_0x241928[_0x53003c(0x3fe)],'selection':_0x4ddcdd},_0x258b16=new Map(this['cursorInfo']);_0x258b16['set'](_0x2386f4,_0x19cb19),this[_0x53003c(0x3b5)]['next'](_0x258b16);}['_onCursorDelete'](_0x474677){const _0x3c15a2=_0x4fab7a;let {memberID:_0x3da318}=_0x474677[_0x3c15a2(0x433)],_0x3cfad7=new Map(this[_0x3c15a2(0x417)]);_0x3cfad7[_0x3c15a2(0x3dc)](_0x3da318),this['_cursorInfo$'][_0x3c15a2(0x292)](_0x3cfad7);}[_0x4fab7a(0x266)](){const _0x2467a1=_0x4fab7a;this['_online']=!0x0,this['_updateLocalCursor'](this[_0x2467a1(0x45b)]['getSnapshot']());}[_0x4fab7a(0x259)](){const _0x3814f4=_0x4fab7a;this[_0x3814f4(0x25c)]=!0x1;}};P=C([S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(k)),S(0x3,(0x0,n[_0x4fab7a(0x3bb)])(t[_0x4fab7a(0x443)])),S(0x4,(0x0,n[_0x4fab7a(0x3bb)])(_['ISlideDrawingStateService']))],P);let F=class extends n[_0x4fab7a(0x303)]{constructor(_0x3bec3b,_0x5c1590,_0x419e62){const _0x30d81b=_0x4fab7a;super(),this[_0x30d81b(0x330)]=_0x3bec3b,this['_injector']=_0x5c1590,this[_0x30d81b(0x277)]=_0x419e62,x(this,_0x30d81b(0x3d4),new Map()),x(this,'_entityInit$',new i[(_0x30d81b(0x3cb))]()),this[_0x30d81b(0x40a)]();}[_0x4fab7a(0x418)](){const _0x30806b=_0x4fab7a;super['dispose'](),this[_0x30806b(0x315)][_0x30806b(0x1c8)](),this[_0x30806b(0x3d4)][_0x30806b(0x39c)](_0x44e723=>_0x44e723[_0x30806b(0x418)]());}['getCollabCursors$'](_0x23aeee){const _0x16fe6e=_0x4fab7a;return this['_entities'][_0x16fe6e(0x2b6)](_0x23aeee)?this['_entities']['get'](_0x23aeee)[_0x16fe6e(0x398)]:this[_0x16fe6e(0x315)][_0x16fe6e(0x27b)]((0x0,i[_0x16fe6e(0x3d9)])(_0x59494b=>_0x59494b[_0x16fe6e(0x459)]===_0x23aeee),(0x0,i['switchMap'])(_0x58a73c=>_0x58a73c[_0x16fe6e(0x398)]));}[_0x4fab7a(0x40a)](){const _0x596590=_0x4fab7a;this[_0x596590(0x330)][_0x596590(0x2e2)](n[_0x596590(0x2de)][_0x596590(0x2df)])[_0x596590(0x27b)]((0x0,i[_0x596590(0x202)])(this['dispose$']))[_0x596590(0x3b6)](async _0x1637bc=>{const _0x3825aa=_0x596590;let _0x59fed8=_0x1637bc[_0x3825aa(0x1b8)][_0x3825aa(0x1ed)](),_0x5df04e=await this[_0x3825aa(0x2d5)](_0x59fed8);this[_0x3825aa(0x315)][_0x3825aa(0x292)](_0x5df04e),this[_0x3825aa(0x3d4)]['set'](_0x59fed8,_0x5df04e);}),this[_0x596590(0x330)][_0x596590(0x2e2)](n[_0x596590(0x2de)][_0x596590(0x2f2)])[_0x596590(0x27b)]((0x0,i[_0x596590(0x202)])(this[_0x596590(0x48f)]))[_0x596590(0x27b)]((0x0,i[_0x596590(0x3d9)])(_0x54e368=>!_0x54e368[_0x596590(0x1b8)][_0x596590(0x1ed)]()['startsWith']('__')))[_0x596590(0x3b6)](async _0x480685=>{const _0x1ab6ff=_0x596590;let {unit:_0x10aba2}=_0x480685,_0x38e8fc=_0x10aba2[_0x1ab6ff(0x1ed)](),_0x1ce5bb=await this[_0x1ab6ff(0x28a)](_0x38e8fc);this[_0x1ab6ff(0x315)][_0x1ab6ff(0x292)](_0x1ce5bb),this['_entities'][_0x1ab6ff(0x207)](_0x38e8fc,_0x1ce5bb);}),this[_0x596590(0x330)][_0x596590(0x2e2)](n[_0x596590(0x2de)]['UNIVER_SLIDE'])[_0x596590(0x27b)]((0x0,i[_0x596590(0x202)])(this['dispose$']))[_0x596590(0x3b6)](async _0x1c20dc=>{const _0x429d87=_0x596590;let _0x31c513=_0x1c20dc[_0x429d87(0x1b8)][_0x429d87(0x1ed)](),_0x1c3e0d=await this[_0x429d87(0x40f)](_0x31c513);this['_entityInit$'][_0x429d87(0x292)](_0x1c3e0d),this[_0x429d87(0x3d4)][_0x429d87(0x207)](_0x31c513,_0x1c3e0d);}),this[_0x596590(0x330)][_0x596590(0x2e2)](n[_0x596590(0x2de)][_0x596590(0x24e)])[_0x596590(0x27b)]((0x0,i[_0x596590(0x202)])(this[_0x596590(0x48f)]))[_0x596590(0x3b6)](async _0x1d9fe=>{const _0x57789e=_0x596590;let _0x4d6011=_0x1d9fe['unit']['getUnitId'](),_0x1e9e7c=await this[_0x57789e(0x392)](_0x4d6011);this[_0x57789e(0x315)][_0x57789e(0x292)](_0x1e9e7c),this[_0x57789e(0x3d4)][_0x57789e(0x207)](_0x4d6011,_0x1e9e7c);}),(0x0,i[_0x596590(0x222)])(this[_0x596590(0x330)][_0x596590(0x210)](n[_0x596590(0x2de)]['UNIVER_DOC']),this[_0x596590(0x330)][_0x596590(0x210)](n[_0x596590(0x2de)][_0x596590(0x2df)]),this['_univerInstanceService'][_0x596590(0x210)](n[_0x596590(0x2de)][_0x596590(0x399)]),this[_0x596590(0x330)][_0x596590(0x210)](n[_0x596590(0x2de)][_0x596590(0x24e)]))[_0x596590(0x27b)]((0x0,i[_0x596590(0x202)])(this['dispose$']))[_0x596590(0x3b6)](_0x3441d0=>{const _0x356a38=_0x596590;let _0xb4e696=_0x3441d0[_0x356a38(0x1ed)](),_0x3bdbc9=this[_0x356a38(0x3d4)][_0x356a38(0x2ab)](_0xb4e696);_0x3bdbc9&&(_0x3bdbc9[_0x356a38(0x418)](),this[_0x356a38(0x3d4)]['delete'](_0xb4e696));});}async[_0x4fab7a(0x2d5)](_0x1dd0b3){const _0x5b672e=_0x4fab7a;let _0x31f369=await this['_collabSessionService']['requireSession'](_0x1dd0b3),_0x57cb92=this[_0x5b672e(0x228)]['createInstance'](N,_0x1dd0b3,_0x31f369);return _0x57cb92[_0x5b672e(0x2a7)](),_0x57cb92;}async[_0x4fab7a(0x28a)](_0x1cee75){const _0x55e72e=_0x4fab7a;let _0x328960=await this['_collabSessionService'][_0x55e72e(0x499)](_0x1cee75),_0x21a467=this[_0x55e72e(0x228)][_0x55e72e(0x337)](M,_0x1cee75,_0x328960);return _0x21a467[_0x55e72e(0x2a7)](),_0x21a467;}async[_0x4fab7a(0x40f)](_0x111efe){const _0x28cac2=_0x4fab7a;let _0xfbb057=await this[_0x28cac2(0x277)][_0x28cac2(0x499)](_0x111efe),_0x48d200=this[_0x28cac2(0x228)][_0x28cac2(0x337)](P,_0x111efe,_0xfbb057);return _0x48d200['init'](),_0x48d200;}async[_0x4fab7a(0x392)](_0x222623){const _0x4d5444=_0x4fab7a;let _0x3aba08=await this[_0x4d5444(0x277)]['requireSession'](_0x222623),_0x5ace26=this[_0x4d5444(0x228)]['createInstance'](A,_0x222623,_0x3aba08);return _0x5ace26[_0x4d5444(0x2a7)](),_0x5ace26;}};F=C([S(0x0,n[_0x4fab7a(0x437)]),S(0x1,(0x0,n[_0x4fab7a(0x3bb)])(n[_0x4fab7a(0x2b1)])),S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(t[_0x4fab7a(0x26e)]))],F);let I=class extends n[_0x4fab7a(0x303)]{constructor(_0x412502,_0x2228db,_0x3e2597){const _0x3bfeb3=_0x4fab7a;super(),this['_context']=_0x412502,this[_0x3bfeb3(0x2a9)]=_0x2228db,this[_0x3bfeb3(0x367)]=_0x3e2597,x(this,'_cursors',new Set()),x(this,_0x3bfeb3(0x2d3),!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,_0x3bfeb3(0x311),new Map()),this[_0x3bfeb3(0x40a)]();}[_0x4fab7a(0x418)](){const _0x1a3d2b=_0x4fab7a;this[_0x1a3d2b(0x373)](),super[_0x1a3d2b(0x418)]();}['_init'](){const _0x49a8f6=_0x4fab7a;let _0x2ed730=this['_collabCursorController']['getCollabCursors$'](this[_0x49a8f6(0x47b)][_0x49a8f6(0x343)]);this[_0x49a8f6(0x3b1)]((0x0,n[_0x49a8f6(0x2ea)])((0x0,i[_0x49a8f6(0x372)])([_0x2ed730,this[_0x49a8f6(0x47b)][_0x49a8f6(0x1b8)][_0x49a8f6(0x252)],this[_0x49a8f6(0x367)][_0x49a8f6(0x1fa)]])['pipe']((0x0,i['takeUntil'])(this['dispose$']))[_0x49a8f6(0x3b6)](([_0x14c562])=>{const _0x6e0a2c=_0x49a8f6;let _0xa719e3=this[_0x6e0a2c(0x47b)][_0x6e0a2c(0x1b8)][_0x6e0a2c(0x47f)](),_0x4ca303=new Map();_0x14c562[_0x6e0a2c(0x39c)]((_0x583b06,_0x9f779b)=>{const _0x207ba8=_0x6e0a2c;_0x583b06[_0x207ba8(0x3d5)]===_0xa719e3&&_0x4ca303[_0x207ba8(0x207)](_0x9f779b,{..._0x583b06,'color':this[_0x207ba8(0x367)][_0x207ba8(0x413)](_0x583b06[_0x207ba8(0x28d)])});}),this[_0x6e0a2c(0x311)]=_0x4ca303,this[_0x6e0a2c(0x1af)]();})));let _0x220167=this[_0x49a8f6(0x47b)][_0x49a8f6(0x234)];this[_0x49a8f6(0x3b1)]((0x0,n['toDisposable'])(_0x220167[_0x49a8f6(0x28c)][_0x49a8f6(0x27b)]((0x0,i[_0x49a8f6(0x202)])(this[_0x49a8f6(0x48f)]))[_0x49a8f6(0x3b6)](()=>{const _0x3b8522=_0x49a8f6;this[_0x3b8522(0x2a0)]||this[_0x3b8522(0x1af)]();})));}['_scheduleRender'](){const _0x3a999a=_0x4fab7a;this[_0x3a999a(0x2d3)]||(this[_0x3a999a(0x2d3)]=!0x0,Promise['resolve']()['then'](()=>{const _0x462765=_0x3a999a;this[_0x462765(0x2d3)]=!0x1,this[_0x462765(0x38c)]();}));}['_render'](){const _0x2d2d33=_0x4fab7a;this[_0x2d2d33(0x373)]();let _0x537172=this[_0x2d2d33(0x47b)][_0x2d2d33(0x1b8)][_0x2d2d33(0x47f)](),_0x4ed04d=[];if(this[_0x2d2d33(0x311)][_0x2d2d33(0x39c)]((_0x415047,_0x58e2bf)=>{const _0x351a79=_0x2d2d33;_0x415047[_0x351a79(0x3d5)]===_0x537172&&_0x415047[_0x351a79(0x381)]['forEach'](_0x482ca4=>{const _0x452406=_0x351a79;let _0x4f26c8=(0x0,e['getBoardElementRenderObjectKey'])(_0x415047[_0x452406(0x343)],_0x482ca4),_0x17cd15=this[_0x452406(0x1b3)](_0x4f26c8);if(!_0x17cd15)return;let _0x134153=this[_0x452406(0x1c9)](_0x17cd15);_0x4ed04d['push'](new pe(_0x452406(0x2cc)+_0x58e2bf+'-'+_0x482ca4,{..._0x415047,'left':_0x134153['left'],'top':_0x134153['top'],'width':_0x134153[_0x452406(0x225)],'height':_0x134153['height'],'angle':_0x17cd15[_0x452406(0x211)],'evented':!0x1,'zIndex':O}));});}),_0x4ed04d[_0x2d2d33(0x42e)]===0x0){this['_context'][_0x2d2d33(0x234)][_0x2d2d33(0x444)](!0x0);return;}this[_0x2d2d33(0x2a0)]=!0x0,this['_context'][_0x2d2d33(0x234)]['addObjects'](_0x4ed04d,O),this[_0x2d2d33(0x2a0)]=!0x1,this[_0x2d2d33(0x22d)]=new Set(_0x4ed04d),this[_0x2d2d33(0x47b)][_0x2d2d33(0x234)][_0x2d2d33(0x444)](!0x0);}['_removeCollabCursors'](){const _0x1488ac=_0x4fab7a;let _0x104474=Array['from'](this['_cursors']);if(_0x104474[_0x1488ac(0x42e)]===0x0)return;let _0x143d97=this[_0x1488ac(0x47b)]['scene'];_0x1488ac(0x3f7)in _0x143d97&&typeof _0x143d97[_0x1488ac(0x3f7)]==_0x1488ac(0x270)?_0x143d97['removeObjects'](_0x104474):_0x104474['forEach'](_0x1d9148=>{const _0x13784f=_0x1488ac;'removeObject'in _0x143d97&&typeof _0x143d97[_0x13784f(0x3b8)]==_0x13784f(0x270)?_0x143d97[_0x13784f(0x3b8)](_0x1d9148):_0x1d9148[_0x13784f(0x418)]();}),this[_0x1488ac(0x22d)][_0x1488ac(0x236)](),_0x143d97[_0x1488ac(0x444)](!0x0);}[_0x4fab7a(0x1b3)](_0x2118a0){const _0x483ed2=_0x4fab7a;var _0x7d96c2,_0x5e00b8,_0x38626f;let _0x1b1ffd=this[_0x483ed2(0x47b)][_0x483ed2(0x234)];return(_0x7d96c2=(_0x5e00b8=(_0x38626f=_0x1b1ffd[_0x483ed2(0x25e)])==null?void 0x0:_0x38626f['call'](_0x1b1ffd,_0x2118a0))==null?_0x1b1ffd['getObject'](_0x2118a0):_0x5e00b8)==null?null:_0x7d96c2;}[_0x4fab7a(0x1c9)](_0x5d41aa){const _0x1bde32=_0x4fab7a;var _0x35d754,_0x40a9ef;let _0x55d34b=_0x5d41aa;return(_0x35d754=(_0x40a9ef=_0x55d34b[_0x1bde32(0x1c3)])==null?void 0x0:_0x40a9ef[_0x1bde32(0x2c2)](_0x55d34b))==null?{'left':_0x5d41aa[_0x1bde32(0x2f7)],'top':_0x5d41aa[_0x1bde32(0x445)],'width':_0x5d41aa[_0x1bde32(0x225)],'height':_0x5d41aa[_0x1bde32(0x43e)]}:_0x35d754;}};I=C([S(0x1,(0x0,n[_0x4fab7a(0x3bb)])(F)),S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(n[_0x4fab7a(0x312)]))],I);const L=_0x4fab7a(0x320);var be=class{constructor(_0x14bea2,_0x463cc2,_0x28b9d7,_0xfad554){const _0x1a7479=_0x4fab7a;this[_0x1a7479(0x3a0)]=_0x14bea2,this[_0x1a7479(0x2e0)]=_0x463cc2,this[_0x1a7479(0x326)]=_0x28b9d7,this['_document']=_0xfad554,x(this,'_shapes',[]),x(this,_0x1a7479(0x240),null),x(this,'_textBubble',null),x(this,_0x1a7479(0x2cb),null),x(this,_0x1a7479(0x29e),null),x(this,_0x1a7479(0x1c6),null),this[_0x1a7479(0x38c)]();}set[_0x4fab7a(0x43a)](_0x2f9293){const _0x5864f8=_0x4fab7a;_0x2f9293?(this['_anchorDot']&&this['_anchorDot'][_0x5864f8(0x34e)](),this[_0x5864f8(0x20d)]&&this[_0x5864f8(0x20d)][_0x5864f8(0x237)]()):(this[_0x5864f8(0x2cb)]&&this[_0x5864f8(0x2cb)][_0x5864f8(0x237)](),this[_0x5864f8(0x20d)]&&this[_0x5864f8(0x20d)][_0x5864f8(0x34e)]());}['dispose'](){const _0x3fb8ac=_0x4fab7a;for(let _0x448ab4 of this['_shapes'])_0x448ab4[_0x3fb8ac(0x418)]();this['_textBubble']&&this[_0x3fb8ac(0x20d)][_0x3fb8ac(0x418)](),this[_0x3fb8ac(0x2cb)]&&this[_0x3fb8ac(0x2cb)][_0x3fb8ac(0x418)](),this[_0x3fb8ac(0x240)]&&this[_0x3fb8ac(0x240)][_0x3fb8ac(0x418)](),this[_0x3fb8ac(0x1c6)]&&this[_0x3fb8ac(0x1c6)]();}[_0x4fab7a(0x38c)](){const _0xafce5b=_0x4fab7a;let {_docSkeleton:_0x36f4cb,_document:_0xd9c980}=this,{color:_0x17ebc5,name:_0x2a827e,ranges:_0x17ede3}=this[_0xafce5b(0x3a0)],_0x232fbc=_0xd9c980[_0xafce5b(0x3ad)](),{docsLeft:_0x4a3bf2,docsTop:_0x4893bd}=_0x232fbc,_0x3420e0=new f['NodePositionConvertToCursor'](_0x232fbc,_0x36f4cb);for(let {startOffset:_0xc1a44c,endOffset:_0x180793,rangeType:_0x41346a,segmentId:_0x93cbca,segmentPage:_0x2c6ab5,collapsed:_0x52d15f,isActive:_0x3df84b}of _0x17ede3){let _0x4f6dbc=_0x36f4cb[_0xafce5b(0x471)](_0xc1a44c,!0x0,_0x93cbca,_0x2c6ab5),_0x489027=_0x36f4cb['findNodePositionByCharIndex'](_0x180793,!0x0,_0x93cbca,_0x2c6ab5);if(_0x489027==null&&(_0x489027=_0x36f4cb[_0xafce5b(0x471)](_0x180793-0x1,!0x1,_0x93cbca,_0x2c6ab5)),_0x3df84b){let {contentBoxPointGroup:_0x10d4e5}=_0x3420e0[_0xafce5b(0x27e)](_0x489027,_0x489027);if(_0x10d4e5['length']===0x0)continue;this[_0xafce5b(0x3bd)](_0x17ebc5,_0x10d4e5,_0x4a3bf2,_0x4893bd,_0x2a827e),this[_0xafce5b(0x1c6)]=this['_handleHover']();}if(_0x4f6dbc&&_0x489027){if(_0x41346a===n['DOC_RANGE_TYPE'][_0xafce5b(0x428)]){var _0xdb196;let {pointGroup:_0x526e86}=(_0xdb196=new f['NodePositionConvertToRectRange'](_0x232fbc,_0x36f4cb)[_0xafce5b(0x27e)](_0x4f6dbc,_0x489027))==null?{}:_0xdb196;if(_0x526e86==null||_0x526e86['length']===0x0)continue;this['_drawRectRange'](_0x17ebc5,_0x526e86,_0x4a3bf2,_0x4893bd);}else{if(!_0x52d15f){let {borderBoxPointGroup:_0x13cb4a}=_0x3420e0['getRangePointData'](_0x4f6dbc,_0x489027);if(_0x13cb4a[_0xafce5b(0x42e)]===0x0)continue;this[_0xafce5b(0x3e2)](_0x17ebc5,_0x13cb4a,_0x4a3bf2,_0x4893bd);}}}}}[_0x4fab7a(0x3bd)](_0x54cdd3,_0x363e3a,_0xae52d6,_0x2afb27,_0x50f409){const _0x33d791=_0x4fab7a;let {left:_0x46f192,top:_0x50b5a5,height:_0x5eea67}=this[_0x33d791(0x364)](_0x363e3a),_0x497f33=1.5/this[_0x33d791(0x457)](),_0x5f085a=new u['Rect'](L+(0x0,n['generateRandomId'])(0x6),{'left':_0x46f192+_0xae52d6-_0x497f33,'top':_0x50b5a5+_0x2afb27,'height':_0x5eea67,'width':1.5,'fill':_0x54cdd3||(0x0,u['getColor'])(n[_0x33d791(0x325)]['black'],0x0),'strokeWidth':_0x497f33,'stroke':_0x33d791(0x1d9),'evented':!0x0});this[_0x33d791(0x240)]=_0x5f085a,this[_0x33d791(0x2e0)]['addObject'](_0x5f085a,f[_0x33d791(0x3a3)]);let _0x17e28e=new u[(_0x33d791(0x1f4))](L+(0x0,n[_0x33d791(0x400)])(0x6),{'left':_0x46f192+_0xae52d6-_0x497f33,'top':_0x50b5a5+_0x2afb27-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x54cdd3||(0x0,u['getColor'])(n['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x54cdd3||(0x0,u['getColor'])(n['COLORS'][_0x33d791(0x409)],0x0),'evented':!0x1});this[_0x33d791(0x2cb)]=_0x17e28e,this[_0x33d791(0x2e0)]['addObject'](_0x17e28e,f[_0x33d791(0x3a3)]);let _0x321c1b=new D(L+(0x0,n[_0x33d791(0x400)])(0x6),{'left':_0x46f192+_0xae52d6-_0x497f33,'top':_0x50b5a5+_0x2afb27-0x14,'text':_0x50f409,'color':_0x54cdd3});this['_textBubble']=_0x321c1b,this[_0x33d791(0x2e0)][_0x33d791(0x377)](_0x321c1b,f[_0x33d791(0x3a3)]),this[_0x33d791(0x43a)]=!0x1;}[_0x4fab7a(0x49c)](){const _0x15882a=_0x4fab7a;let _0x11375f=this[_0x15882a(0x240)][_0x15882a(0x19c)][_0x15882a(0x429)](()=>{const _0x5d6e6d=_0x15882a;this[_0x5d6e6d(0x43a)]=!0x0;}),_0x29cf15=this[_0x15882a(0x240)][_0x15882a(0x2c7)]['subscribeEvent'](()=>{const _0x18fecc=_0x15882a;this[_0x18fecc(0x29e)]&&clearTimeout(this[_0x18fecc(0x29e)]),this[_0x18fecc(0x29e)]=setTimeout(()=>{const _0x3b42f0=_0x18fecc;this[_0x3b42f0(0x43a)]=!0x1;},0x7d0);});return()=>{const _0x1c5f0f=_0x15882a;_0x11375f[_0x1c5f0f(0x4a1)](),_0x29cf15[_0x1c5f0f(0x4a1)]();};}['_drawTextRange'](_0x284d57,_0x1c5b71,_0x11f414,_0x4b234c){const _0x2101d3=_0x4fab7a;let _0x505b37=0.2,_0x4ae71f=new n['ColorKit'](_0x284d57)[_0x2101d3(0x35c)](_0x505b37)[_0x2101d3(0x3c5)](),_0x5afa6b=new u['RegularPolygon'](_0x2101d3(0x3dd)+(0x0,n[_0x2101d3(0x400)])(0x6),{'pointsGroup':_0x1c5b71,'fill':_0x4ae71f||(0x0,u['getColor'])(n[_0x2101d3(0x325)]['black'],_0x505b37),'left':_0x11f414,'top':_0x4b234c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2101d3(0x1aa)][_0x2101d3(0x344)](_0x5afa6b),this[_0x2101d3(0x2e0)]['addObject'](_0x5afa6b,f[_0x2101d3(0x3a3)]);}[_0x4fab7a(0x2e1)](_0x3878fa,_0x3d68c2,_0x18e83f,_0xfc908d){const _0x26f9de=_0x4fab7a;let _0x5ec709=0.2,_0x576153=new n[(_0x26f9de(0x3d6))](_0x3878fa)[_0x26f9de(0x35c)](_0x5ec709)[_0x26f9de(0x3c5)](),_0x2f6c14=new u[(_0x26f9de(0x1c7))](_0x26f9de(0x462)+(0x0,n[_0x26f9de(0x400)])(0x6),{'pointsGroup':_0x3d68c2,'fill':_0x576153||(0x0,u[_0x26f9de(0x32b)])(n[_0x26f9de(0x325)][_0x26f9de(0x409)],_0x5ec709),'left':_0x18e83f,'top':_0xfc908d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x26f9de(0x1aa)]['push'](_0x2f6c14),this[_0x26f9de(0x2e0)][_0x26f9de(0x377)](_0x2f6c14,f['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x31ecd8){let _0x54e665=_0x31ecd8[0x0],_0x337d50=_0x54e665[0x0],_0xb1c861=_0x54e665[0x2],{x:_0xffdc7c,y:_0x1e831e}=_0x337d50,{x:_0xe9e34a,y:_0x301329}=_0xb1c861;return{'left':_0xffdc7c,'top':_0x1e831e,'width':_0xe9e34a-_0xffdc7c,'height':_0x301329-_0x1e831e};}[_0x4fab7a(0x457)](){const _0x10a740=_0x4fab7a;let {scaleX:_0x56a138,scaleY:_0x1dfa06}=this['_scene'][_0x10a740(0x224)]();return Math[_0x10a740(0x30d)](_0x56a138,_0x1dfa06);}};let R=class extends n[_0x4fab7a(0x303)]{constructor(_0x7d29aa,_0x999f95,_0x2dbf19,_0x2a2f65,_0x372c37){const _0x1557b0=_0x4fab7a;super(),this[_0x1557b0(0x47b)]=_0x7d29aa,this[_0x1557b0(0x2ac)]=_0x999f95,this[_0x1557b0(0x2a9)]=_0x2dbf19,this[_0x1557b0(0x48b)]=_0x2a2f65,this['_themeService']=_0x372c37,x(this,'_cursorShapes',[]),x(this,_0x1557b0(0x22d),[]),this[_0x1557b0(0x40a)]();}['_init'](){const _0x2fc52d=_0x4fab7a;let _0x470049=this[_0x2fc52d(0x47b)][_0x2fc52d(0x343)],_0x1c9c5e=this[_0x2fc52d(0x2ac)];this[_0x2fc52d(0x3b1)]((0x0,i[_0x2fc52d(0x372)])([this[_0x2fc52d(0x2a9)][_0x2fc52d(0x23c)](_0x470049),this['_themeService'][_0x2fc52d(0x1fa)]])[_0x2fc52d(0x27b)]((0x0,a[_0x2fc52d(0x1c2)])(([_0x1e3857,_0x48c6b5])=>({'skeleton':_0x1c9c5e['getSkeleton'](),'cursors':[..._0x1e3857[_0x2fc52d(0x289)]()][_0x2fc52d(0x298)](_0x3a5010=>({..._0x3a5010,'color':this[_0x2fc52d(0x367)]['getColorFromTheme'](_0x3a5010[_0x2fc52d(0x28d)])}))})))[_0x2fc52d(0x3b6)](_0x423213=>{const _0x38621a=_0x2fc52d;if(this[_0x38621a(0x373)](),_0x423213){let {skeleton:_0x30abd6,cursors:_0x3ca4f8}=_0x423213;this[_0x38621a(0x47d)](_0x30abd6,_0x3ca4f8);}})),this[_0x2fc52d(0x32c)](),this[_0x2fc52d(0x493)]();}['_updateCollabCursors'](_0x1fec66,_0x3e9096){const _0x167e01=_0x4fab7a;let {scene:_0xf392fd,mainComponent:_0x203fcb}=this[_0x167e01(0x47b)],_0x57245e=_0x3e9096[_0x167e01(0x1c2)](_0x133c82=>new be(_0x133c82,_0xf392fd,_0x1fec66,_0x203fcb));this[_0x167e01(0x36a)]=_0x57245e,this[_0x167e01(0x22d)]=_0x3e9096;}['_refreshCollabCursors'](){const _0x3dde0e=_0x4fab7a;this[_0x3dde0e(0x373)]();let {scene:_0x45d07b,mainComponent:_0x1b6e63}=this[_0x3dde0e(0x47b)],_0x47e408=this[_0x3dde0e(0x2ac)][_0x3dde0e(0x48e)](),_0x153c4a=this[_0x3dde0e(0x22d)][_0x3dde0e(0x1c2)](_0x588b69=>new be(_0x588b69,_0x45d07b,_0x47e408,_0x1b6e63));this[_0x3dde0e(0x36a)]=_0x153c4a;}['_removeCollabCursors'](){const _0x1e6beb=_0x4fab7a;this[_0x1e6beb(0x36a)]['forEach'](_0x6f55ce=>_0x6f55ce[_0x1e6beb(0x418)]()),this[_0x1e6beb(0x36a)]=[];}[_0x4fab7a(0x493)](){const _0x4846cd=_0x4fab7a;let _0x5da1fd=[f[_0x4846cd(0x3f1)]['id']];this[_0x4846cd(0x3b1)](this['_commandService']['onCommandExecuted'](_0xd4ae48=>{const _0x1b24e9=_0x4846cd;_0x5da1fd['includes'](_0xd4ae48['id'])&&_0xd4ae48['params'][_0x1b24e9(0x343)]===this[_0x1b24e9(0x47b)]['unitId']&&this[_0x1b24e9(0x388)]();}));}[_0x4fab7a(0x32c)](){const _0x2027b6=_0x4fab7a;this[_0x2027b6(0x3b1)]((0x0,n['fromEventSubject'])(this[_0x2027b6(0x47b)][_0x2027b6(0x30c)][_0x2027b6(0x32d)])[_0x2027b6(0x27b)]((0x0,a[_0x2027b6(0x3d9)])(_0x2f334b=>_0x2f334b['type']===u[_0x2027b6(0x465)]['resize']),(0x0,a[_0x2027b6(0x2ad)])(0x10))[_0x2027b6(0x3b6)](()=>{this['_refreshCollabCursors']();}));}};R=C([S(0x1,(0x0,n['Inject'])(m['DocSkeletonManagerService'])),S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(F)),S(0x3,n[_0x4fab7a(0x19e)]),S(0x4,(0x0,n[_0x4fab7a(0x3bb)])(n[_0x4fab7a(0x312)]))],R);var xe=class extends u[_0x4fab7a(0x2f1)]{constructor(_0x5633c9,_0x841ee2){const _0xd8bdee=_0x4fab7a;if(super(_0x5633c9,_0x841ee2),x(this,'_color',void 0x0),x(this,_0xd8bdee(0x39b),!0x1),x(this,_0xd8bdee(0x490),void 0x0),x(this,_0xd8bdee(0x216),''),x(this,_0xd8bdee(0x434),_0xd8bdee(0x445)),x(this,_0xd8bdee(0x366),void 0x0),x(this,_0xd8bdee(0x379),void 0x0),x(this,_0xd8bdee(0x2be),void 0x0),x(this,_0xd8bdee(0x217),0x4),x(this,_0xd8bdee(0x1e8),void 0x0),x(this,_0xd8bdee(0x3b9),void 0x0),x(this,_0xd8bdee(0x1ef),!0x0),x(this,_0xd8bdee(0x26a),0x0),x(this,_0xd8bdee(0x411),_0xd8bdee(0x2d1)),_0x841ee2){var _0x44d6da;if(this['setShapeProps'](_0x841ee2),_0x841ee2[_0xd8bdee(0x1ea)]&&((_0x44d6da=_0x841ee2[_0xd8bdee(0x2ca)])==null?this[_0xd8bdee(0x217)]:_0x44d6da)){var _0x36f398;this[_0xd8bdee(0x200)]((_0x36f398=_0x841ee2[_0xd8bdee(0x2ca)])==null?this['_highlightSecond']:_0x36f398);}}this['onPointerEnter$'][_0xd8bdee(0x429)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0xd8bdee(0x429)](()=>this[_0xd8bdee(0x3ce)]({'hovered':!0x1}));}[_0x4fab7a(0x22f)](_0x8274c9){const _0x5ed6cc=_0x4fab7a;this[_0x5ed6cc(0x26a)]=_0x8274c9;}[_0x4fab7a(0x3ce)](_0x13c5e6){const _0x49260d=_0x4fab7a;var _0x53d981,_0x135639,_0x2092dd,_0x768379,_0x170d67,_0x2d1a46,_0x5d5796,_0x3d1348;this[_0x49260d(0x1ee)]=(_0x53d981=_0x13c5e6['color'])==null?this[_0x49260d(0x1ee)]:_0x53d981,this[_0x49260d(0x39b)]=(_0x135639=_0x13c5e6[_0x49260d(0x3c6)])==null?this[_0x49260d(0x39b)]:_0x135639,this[_0x49260d(0x490)]=(_0x2092dd=_0x13c5e6[_0x49260d(0x350)])==null?this[_0x49260d(0x490)]:_0x2092dd,this[_0x49260d(0x216)]=(_0x768379=_0x13c5e6['name'])==null?this[_0x49260d(0x216)]:_0x768379,this[_0x49260d(0x434)]=(_0x170d67=_0x13c5e6[_0x49260d(0x1e5)])==null?this['_labelPosition']:_0x170d67,this[_0x49260d(0x366)]=(_0x2d1a46=_0x13c5e6[_0x49260d(0x1be)])==null?this['_backgroundColor']:_0x2d1a46,this['_showText']=(_0x5d5796=_0x13c5e6[_0x49260d(0x256)])==null?this[_0x49260d(0x379)]:_0x5d5796,this['_labelHorizontalPosition']=(_0x3d1348=_0x13c5e6['labelHorizontalPosition'])==null?this[_0x49260d(0x411)]:_0x3d1348,_0x13c5e6[_0x49260d(0x2ca)]!==void 0x0&&(this[_0x49260d(0x217)]=_0x13c5e6[_0x49260d(0x2ca)]),_0x13c5e6[_0x49260d(0x1ea)]!==void 0x0&&(this[_0x49260d(0x2be)]=_0x13c5e6[_0x49260d(0x1ea)]),_0x13c5e6[_0x49260d(0x247)]!==void 0x0&&(this[_0x49260d(0x26a)]=_0x13c5e6['offsetY']),this[_0x49260d(0x37e)]({'width':_0x13c5e6['width'],'height':_0x13c5e6[_0x49260d(0x43e)]});}[_0x4fab7a(0x2a5)](_0x38a05f){const _0x19268d=_0x4fab7a;let {row:_0x771fe0,column:_0xfe9657}=_0x38a05f;if(_0x771fe0>=this[_0x19268d(0x490)][_0x19268d(0x2e4)]&&_0x771fe0<=this['_range'][_0x19268d(0x3f3)]&&_0xfe9657>=this['_range']['startColumn']&&_0xfe9657<=this[_0x19268d(0x490)][_0x19268d(0x21e)]){this[_0x19268d(0x3ce)]({'hovered':!0x0});return;}this[_0x19268d(0x3ce)]({'hovered':!0x1});}[_0x4fab7a(0x200)](_0xddc631){const _0x383635=_0x4fab7a;this['_stopBlinking'](),this[_0x383635(0x1ef)]=!0x0,this[_0x383635(0x3b9)]=window[_0x383635(0x293)](()=>{const _0x280a05=_0x383635;this[_0x280a05(0x1ef)]=!this[_0x280a05(0x1ef)],this[_0x280a05(0x444)](!0x0);},0x1f4),this['_blinkTimer']=window['setTimeout'](()=>{const _0x5f236c=_0x383635;this[_0x5f236c(0x2b9)](),this[_0x5f236c(0x1ef)]=!0x0,this[_0x5f236c(0x444)](!0x0);},_0xddc631*0x3e8);}['_stopBlinking'](){const _0x1908a7=_0x4fab7a;this[_0x1908a7(0x3b9)]&&(window[_0x1908a7(0x3d8)](this[_0x1908a7(0x3b9)]),this[_0x1908a7(0x3b9)]=void 0x0),this[_0x1908a7(0x1e8)]&&(window[_0x1908a7(0x3af)](this[_0x1908a7(0x1e8)]),this[_0x1908a7(0x1e8)]=void 0x0);}[_0x4fab7a(0x21a)](_0x2e9eaa){return!0x1;}[_0x4fab7a(0x418)](){const _0x518dd6=_0x4fab7a;this[_0x518dd6(0x2b9)](),super[_0x518dd6(0x418)]();}[_0x4fab7a(0x3c4)](_0x1f45f6){const _0x39839f=_0x4fab7a;let _0xb3456c=this[_0x39839f(0x1ee)],_0x281ffa=this[_0x39839f(0x366)];if(this[_0x39839f(0x2be)]&&!this[_0x39839f(0x1ef)]&&(_0xb3456c=this[_0x39839f(0x260)](this[_0x39839f(0x1ee)]),_0x281ffa=this[_0x39839f(0x366)]?this[_0x39839f(0x260)](this[_0x39839f(0x366)]):void 0x0),u[_0x39839f(0x1f4)][_0x39839f(0x42f)](_0x1f45f6,{'width':this['width'],'height':this[_0x39839f(0x43e)],'strokeWidth':this[_0x39839f(0x203)]||1.5,'stroke':_0xb3456c,'evented':!0x1,'fill':_0x281ffa}),this[_0x39839f(0x39b)]||this[_0x39839f(0x379)]){var _0x596a62;_0x1f45f6[_0x39839f(0x335)]();let _0x51b1d1=this[_0x39839f(0x411)]===_0x39839f(0x2f7)?-de(_0x1f45f6,this[_0x39839f(0x216)]):this[_0x39839f(0x225)];_0x1f45f6[_0x39839f(0x365)](0x1,0x0,0x0,0x1,_0x51b1d1,(this[_0x39839f(0x434)]===_0x39839f(0x2a2)?0x0:-0x14)+((_0x596a62=this[_0x39839f(0x26a)])==null?0x0:_0x596a62)),D[_0x39839f(0x42f)](_0x1f45f6,{'text':this[_0x39839f(0x216)],'color':_0xb3456c}),_0x1f45f6['restore']();}}['_getLighterColor'](_0x474cdc){const _0x561b7a=_0x4fab7a;return _0x474cdc[_0x561b7a(0x45c)]('#')?_0x561b7a(0x39f)+Number[_0x561b7a(0x22e)](_0x474cdc['slice'](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x474cdc['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x561b7a(0x22e)](_0x474cdc[_0x561b7a(0x406)](0x5,0x7),0x10)+_0x561b7a(0x30e):_0x474cdc[_0x561b7a(0x45c)](_0x561b7a(0x19b))?_0x474cdc[_0x561b7a(0x3c8)](/[\d.]+\)$/g,_0x561b7a(0x1d8)):_0x474cdc[_0x561b7a(0x45c)]('rgb')?_0x474cdc[_0x561b7a(0x3c8)](_0x561b7a(0x3b3),_0x561b7a(0x19b))[_0x561b7a(0x3c8)](')',_0x561b7a(0x30e)):_0x474cdc;}};let z=class extends n[_0x4fab7a(0x303)]{constructor(_0x4902b5,_0x509b31,_0x17b66a,_0x5e4c0a){const _0x3aba5f=_0x4fab7a;super(),this['_context']=_0x4902b5,this['_sheetSkeletonManagerService']=_0x509b31,this[_0x3aba5f(0x2a9)]=_0x17b66a,this[_0x3aba5f(0x367)]=_0x5e4c0a,x(this,_0x3aba5f(0x22d),new Set()),x(this,'_lastPointer',null),x(this,'_pointerMoveDisposable',null),this[_0x3aba5f(0x40a)]();}[_0x4fab7a(0x40a)](){const _0x2535ca=_0x4fab7a;this[_0x2535ca(0x486)][_0x2535ca(0x1a5)][_0x2535ca(0x27b)]((0x0,a[_0x2535ca(0x202)])(this[_0x2535ca(0x48f)]),(0x0,a['switchMap'])(_0x189423=>{const _0x55a6b2=_0x2535ca;if(_0x189423){let _0x2bf537=_0x189423[_0x55a6b2(0x25a)];return(0x0,i[_0x55a6b2(0x372)])(this[_0x55a6b2(0x2a9)][_0x55a6b2(0x23c)](this[_0x55a6b2(0x47b)]['unitId']),this[_0x55a6b2(0x367)]['currentTheme$'])['pipe']((0x0,a['map'])(([_0x3f2b18,_0xa32d5b])=>{const _0x22302d=_0x55a6b2;let _0x5041d1=new Map();return _0x3f2b18[_0x22302d(0x39c)]((_0x5b8291,_0x32f57c)=>{const _0x3e1abe=_0x22302d;if(_0x5b8291[_0x3e1abe(0x45e)]===_0x2bf537){let _0xcfab83={..._0x5b8291};_0xcfab83[_0x3e1abe(0x28d)]=this['_themeService'][_0x3e1abe(0x413)](_0x5b8291[_0x3e1abe(0x28d)]),_0x5041d1[_0x3e1abe(0x207)](_0x32f57c,_0xcfab83);}}),{'skeleton':_0x189423,'cursors':_0x5041d1};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))[_0x2535ca(0x3b6)](({skeleton:_0x62570f,cursors:_0x4d93af})=>{const _0x350194=_0x2535ca;this[_0x350194(0x373)](),_0x62570f&&this[_0x350194(0x47d)](_0x62570f,_0x4d93af);}),this['disposeWithMe'](this[_0x2535ca(0x486)][_0x2535ca(0x1a5)][_0x2535ca(0x27b)]((0x0,a[_0x2535ca(0x202)])(this['dispose$']))[_0x2535ca(0x3b6)](_0x214770=>{const _0x51cad2=_0x2535ca;var _0x487cbd;if(_0x214770==null)return;(_0x487cbd=this[_0x51cad2(0x2cf)])==null||_0x487cbd[_0x51cad2(0x4a1)](),this[_0x51cad2(0x2cf)]=null;let {skeleton:_0xe45691}=_0x214770,{scene:_0x3469ab}=this[_0x51cad2(0x47b)];this[_0x51cad2(0x2cf)]=_0x3469ab[_0x51cad2(0x309)][_0x51cad2(0x429)]((0x0,n[_0x51cad2(0x346)])(_0x45c3dc=>{const _0x3c7b84=_0x51cad2;var _0x34b76e,_0x518752;let {offsetX:_0x3d0df0,offsetY:_0x3223e7}=_0x45c3dc,{x:_0x58eb9b,y:_0xbd3586}=_0x3469ab[_0x3c7b84(0x1c1)](u[_0x3c7b84(0x2e9)]['FromArray']([_0x3d0df0,_0x3223e7])),{scaleX:_0x4b4a74,scaleY:_0x2bc004}=_0x3469ab[_0x3c7b84(0x224)](),_0x2306ec=_0x3469ab[_0x3c7b84(0x2c1)](u['SHEET_VIEWPORT_KEY'][_0x3c7b84(0x231)]),_0x984678=_0x3469ab['getVpScrollXYInfoByPosToVp'](u[_0x3c7b84(0x2e9)][_0x3c7b84(0x396)]([_0x58eb9b,_0xbd3586]),_0x2306ec),_0x4207f6=_0xe45691[_0x3c7b84(0x199)](_0x3d0df0,_0x3223e7,_0x4b4a74,_0x2bc004,_0x984678);((_0x34b76e=this[_0x3c7b84(0x2fb)])==null?void 0x0:_0x34b76e[_0x3c7b84(0x3fd)])===_0x4207f6[_0x3c7b84(0x3fd)]&&((_0x518752=this['_lastPointer'])==null?void 0x0:_0x518752[_0x3c7b84(0x3de)])===_0x4207f6[_0x3c7b84(0x3de)]||this[_0x3c7b84(0x22d)]['forEach'](_0x56334e=>{const _0x453b7b=_0x3c7b84;_0x56334e[_0x453b7b(0x2a5)](_0x4207f6);});},0x64));})),this[_0x2535ca(0x3b1)]((0x0,n[_0x2535ca(0x2ea)])(()=>{const _0x518089=_0x2535ca;var _0x3b5d5b;(_0x3b5d5b=this[_0x518089(0x2cf)])==null||_0x3b5d5b[_0x518089(0x4a1)](),this['_pointerMoveDisposable']=null;}));}[_0x4fab7a(0x47d)](_0x56b16e,_0x3f030d){const _0x4cb612=_0x4fab7a;let _0x1f48b2=this[_0x4cb612(0x486)][_0x4cb612(0x359)]();if(!_0x1f48b2)return;let _0x3cf0a9=this['_getSheetObject']();if(!_0x3cf0a9)return;this[_0x4cb612(0x22d)]['forEach'](_0x1d5181=>{const _0x1bada5=_0x4cb612;_0x1d5181[_0x1bada5(0x444)]();});let {scene:_0x9788bf}=_0x3cf0a9,_0x108ef1=Se(Array[_0x4cb612(0x23b)](_0x3f030d[_0x4cb612(0x289)]()))['map'](_0x317ee9=>{const _0x460dc7=_0x4cb612;let {color:_0x2d496c,range:_0x22df7a,name:_0x59235e,selection:_0xc698a7,sheetID:_0x5839bc}=_0x317ee9,{startColumn:_0x4bacf2,startRow:_0x5d0edb,endColumn:_0x489f8c,endRow:_0x5957b7}=_0x22df7a,_0x1152cd=(0x0,v['getCoordByCell'])(_0x5d0edb,_0x4bacf2,_0x9788bf,_0x1f48b2),_0x329cd2=(0x0,v[_0x460dc7(0x239)])(_0x5957b7,_0x489f8c,_0x9788bf,_0x1f48b2),{columnHeaderHeightAndMarginTop:_0x211156}=_0x1f48b2,{startX:_0x27f73a,startY:_0x3e83cf}=_0x1152cd,{endX:_0x4451f9,endY:_0x589ee5}=_0x329cd2,_0x227d81=_0x4451f9-_0x27f73a,_0x120821=_0x589ee5-_0x3e83cf;return new xe(_0x59235e,{'labelPosition':_0x3e83cf-_0x211156>=0x14?_0x460dc7(0x445):_0x460dc7(0x2a2),'sheetID':_0x5839bc,'range':_0x22df7a,'color':_0x2d496c,'name':_0x59235e,'selection':_0xc698a7,'left':_0x27f73a,'top':_0x3e83cf,'width':_0x227d81,'height':_0x120821,'evented':!0x1,'zIndex':0x1389});});_0x9788bf[_0x4cb612(0x230)](_0x108ef1,0x1),this[_0x4cb612(0x22d)]=new Set(_0x108ef1);}[_0x4fab7a(0x373)](){const _0x232dd6=_0x4fab7a;var _0x10888e;(_0x10888e=this['_cursors'])==null||_0x10888e[_0x232dd6(0x39c)](_0x21edb5=>_0x21edb5[_0x232dd6(0x418)]());}[_0x4fab7a(0x389)](){const _0x324690=_0x4fab7a;return(0x0,v[_0x324690(0x49e)])(this[_0x324690(0x47b)][_0x324690(0x1b8)],this[_0x324690(0x47b)]);}};z=C([S(0x1,(0x0,n[_0x4fab7a(0x3bb)])(v[_0x4fab7a(0x39e)])),S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(F)),S(0x3,(0x0,n[_0x4fab7a(0x3bb)])(n[_0x4fab7a(0x312)]))],z);function Se(_0x18cace){const _0x35243a=_0x4fab7a;let _0x5bf24d=new Map();return _0x18cace[_0x35243a(0x39c)](_0x3065d6=>{const _0x33bd39=_0x35243a;if(_0x5bf24d[_0x33bd39(0x2b6)](_0x3065d6[_0x33bd39(0x1ac)])){let _0x4c8b9e=_0x5bf24d['get'](_0x3065d6[_0x33bd39(0x1ac)]);_0x4c8b9e['name']+=',\x20'+_0x3065d6[_0x33bd39(0x238)];}else _0x5bf24d[_0x33bd39(0x207)](_0x3065d6['selection'],_0x3065d6);}),Array[_0x35243a(0x23b)](_0x5bf24d[_0x35243a(0x289)]());}let B=class extends n[_0x4fab7a(0x303)]{constructor(_0x585c58,_0x1f3e1f,_0x347243){const _0xcec031=_0x4fab7a;super(),this[_0xcec031(0x47b)]=_0x585c58,this[_0xcec031(0x2a9)]=_0x1f3e1f,this['_themeService']=_0x347243,x(this,_0xcec031(0x22d),new Set()),x(this,_0xcec031(0x2d3),!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,_0xcec031(0x311),new Map()),this[_0xcec031(0x40a)]();}['dispose'](){const _0x375dc3=_0x4fab7a;this[_0x375dc3(0x373)](),super[_0x375dc3(0x418)]();}[_0x4fab7a(0x40a)](){const _0x31dbff=_0x4fab7a;let _0x5ad848=this[_0x31dbff(0x47b)]['unit']['pageManager']['activeSlideId$'],_0x6ced9b=this[_0x31dbff(0x2a9)][_0x31dbff(0x23c)](this[_0x31dbff(0x47b)]['unitId']);this[_0x31dbff(0x3b1)]((0x0,n[_0x31dbff(0x2ea)])((0x0,i[_0x31dbff(0x372)])([_0x6ced9b,_0x5ad848,this[_0x31dbff(0x367)][_0x31dbff(0x1fa)]])[_0x31dbff(0x27b)]((0x0,i[_0x31dbff(0x202)])(this[_0x31dbff(0x48f)]))['subscribe'](([_0x44a643,_0x4d3ffb])=>{const _0x5e380d=_0x31dbff;let _0x2873d5=new Map();_0x44a643[_0x5e380d(0x39c)]((_0x133eb7,_0x11b982)=>{const _0x3a4f93=_0x5e380d;_0x133eb7[_0x3a4f93(0x3d5)]===_0x4d3ffb&&_0x2873d5['set'](_0x11b982,{..._0x133eb7,'color':this[_0x3a4f93(0x367)]['getColorFromTheme'](_0x133eb7['color'])});}),this[_0x5e380d(0x311)]=_0x2873d5,this['_scheduleRender']();})));let _0x14e12c=this[_0x31dbff(0x47b)][_0x31dbff(0x234)];this[_0x31dbff(0x3b1)]((0x0,n['toDisposable'])(_0x14e12c[_0x31dbff(0x28c)][_0x31dbff(0x27b)]((0x0,i['takeUntil'])(this[_0x31dbff(0x48f)]))[_0x31dbff(0x3b6)](()=>{const _0x4cb748=_0x31dbff;this[_0x4cb748(0x2a0)]||this[_0x4cb748(0x1af)]();})));}['_scheduleRender'](){const _0x342e63=_0x4fab7a;this[_0x342e63(0x2d3)]||(this[_0x342e63(0x2d3)]=!0x0,Promise['resolve']()[_0x342e63(0x285)](()=>{const _0x1506ca=_0x342e63;this[_0x1506ca(0x2d3)]=!0x1,this['_render']();}));}['_render'](){const _0x331158=_0x4fab7a;var _0x5e970b;this[_0x331158(0x373)]();let _0x182d06=(_0x5e970b=this[_0x331158(0x47b)][_0x331158(0x1b8)][_0x331158(0x3cc)][_0x331158(0x476)]())==null?void 0x0:_0x5e970b[_0x331158(0x214)]();if(!_0x182d06)return;let _0x3f72d7=[];if(this[_0x331158(0x311)][_0x331158(0x39c)]((_0x5a6086,_0x9bf2db)=>{const _0x425cfe=_0x331158;_0x5a6086['subUnitId']===_0x182d06&&_0x5a6086[_0x425cfe(0x381)]['forEach'](_0x1b888e=>{const _0x4ee6d6=_0x425cfe;let _0x1ee795=(0x0,_[_0x4ee6d6(0x1d4)])(_0x5a6086[_0x4ee6d6(0x343)],_0x5a6086[_0x4ee6d6(0x3d5)],_0x1b888e),_0x188dd6=this[_0x4ee6d6(0x1b3)](_0x1ee795);if(!_0x188dd6)return;let _0x4443b9=this['_getObjectBounds'](_0x188dd6);_0x3f72d7[_0x4ee6d6(0x344)](new pe(_0x4ee6d6(0x3ec)+_0x9bf2db+'-'+_0x1b888e,{..._0x5a6086,'left':_0x4443b9[_0x4ee6d6(0x2f7)],'top':_0x4443b9[_0x4ee6d6(0x445)],'width':_0x4443b9[_0x4ee6d6(0x225)],'height':_0x4443b9[_0x4ee6d6(0x43e)],'angle':_0x188dd6[_0x4ee6d6(0x211)],'evented':!0x1,'zIndex':O}));});}),_0x3f72d7[_0x331158(0x42e)]===0x0){this[_0x331158(0x47b)][_0x331158(0x234)][_0x331158(0x444)](!0x0);return;}this[_0x331158(0x2a0)]=!0x0,this[_0x331158(0x47b)]['scene'][_0x331158(0x230)](_0x3f72d7,O),this[_0x331158(0x2a0)]=!0x1,this['_cursors']=new Set(_0x3f72d7),this[_0x331158(0x47b)][_0x331158(0x234)]['makeDirty'](!0x0);}['_removeCollabCursors'](){const _0x982562=_0x4fab7a;let _0x5d7db1=Array[_0x982562(0x23b)](this[_0x982562(0x22d)]);if(_0x5d7db1[_0x982562(0x42e)]===0x0)return;let _0x556817=this[_0x982562(0x47b)][_0x982562(0x234)];_0x982562(0x3f7)in _0x556817&&typeof _0x556817[_0x982562(0x3f7)]==_0x982562(0x270)?_0x556817[_0x982562(0x3f7)](_0x5d7db1):_0x5d7db1[_0x982562(0x39c)](_0x40fc3d=>{const _0x38666c=_0x982562;'removeObject'in _0x556817&&typeof _0x556817[_0x38666c(0x3b8)]==_0x38666c(0x270)?_0x556817[_0x38666c(0x3b8)](_0x40fc3d):_0x40fc3d[_0x38666c(0x418)]();}),this[_0x982562(0x22d)][_0x982562(0x236)](),_0x556817['makeDirty'](!0x0);}[_0x4fab7a(0x1b3)](_0x24e1eb){const _0x45ab54=_0x4fab7a;var _0x590c7e,_0x34af28,_0x22bb16;let _0x1d15eb=this[_0x45ab54(0x47b)]['scene'];return(_0x590c7e=(_0x34af28=(_0x22bb16=_0x1d15eb[_0x45ab54(0x25e)])==null?void 0x0:_0x22bb16[_0x45ab54(0x2c2)](_0x1d15eb,_0x24e1eb))==null?_0x1d15eb[_0x45ab54(0x2f9)](_0x24e1eb):_0x34af28)==null?null:_0x590c7e;}[_0x4fab7a(0x1c9)](_0xcd4775){const _0x2b7018=_0x4fab7a;var _0x295acb,_0x5b2383;let _0x152b8b=_0xcd4775;return(_0x295acb=(_0x5b2383=_0x152b8b[_0x2b7018(0x1c3)])==null?void 0x0:_0x5b2383[_0x2b7018(0x2c2)](_0x152b8b))==null?{'left':_0xcd4775['left'],'top':_0xcd4775[_0x2b7018(0x445)],'width':_0xcd4775['width'],'height':_0xcd4775[_0x2b7018(0x43e)]}:_0x295acb;}};B=C([S(0x1,(0x0,n['Inject'])(F)),S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(n['ThemeService']))],B);let V=class extends n[_0x4fab7a(0x26b)]{constructor(_0x137f67,_0xe49337,_0x3f7575,_0x2ff627,_0x22b890,_0x4fef42){const _0xcea1b9=_0x4fab7a;super(),this[_0xcea1b9(0x340)]=_0x137f67,this['_localCacheService']=_0xe49337,this['_collaborationUIEventService']=_0x3f7575,this[_0xcea1b9(0x1c0)]=_0x2ff627,this[_0xcea1b9(0x3fa)]=_0x22b890,this['_localeService']=_0x4fef42,this[_0xcea1b9(0x1f5)](),this[_0xcea1b9(0x345)]();}[_0x4fab7a(0x1f5)](){const _0x2f6640=_0x4fab7a;this['disposeWithMe'](this[_0x2f6640(0x340)]['registerBeforeClose'](()=>{const _0x4b8779=_0x2f6640;if(this[_0x4b8779(0x1cc)][_0x4b8779(0x40c)][_0x4b8779(0x32f)])return this[_0x4b8779(0x35f)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x4fab7a(0x345)](){const _0x1d1ec0=_0x4fab7a;this[_0x1d1ec0(0x3b1)](this[_0x1d1ec0(0x452)][_0x1d1ec0(0x420)][_0x1d1ec0(0x3b6)](_0x8088b9=>{const _0x6b36e3=_0x1d1ec0;_0x8088b9['id']===t['CollaborationUIEventId'][_0x6b36e3(0x221)]&&this['_messageService']['show']({'type':o['MessageType'][_0x6b36e3(0x44a)],'content':this[_0x6b36e3(0x35f)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x8088b9['id']===t[_0x6b36e3(0x3c3)][_0x6b36e3(0x27c)]&&this['_messageService']['show']({'type':o['MessageType'][_0x6b36e3(0x44a)],'content':this['_localeService']['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x8088b9['id']===t[_0x6b36e3(0x3c3)][_0x6b36e3(0x2c0)]&&this[_0x6b36e3(0x3fa)]['show']({'title':this[_0x6b36e3(0x35f)]['t']('collaboration-client-ui.permission.title'),'content':this[_0x6b36e3(0x35f)]['t'](_0x6b36e3(0x1f7)),'type':_0x6b36e3(0x435),'duration':0x0}),_0x8088b9['id']===t[_0x6b36e3(0x3c3)][_0x6b36e3(0x36b)]&&this[_0x6b36e3(0x3fa)]['show']({'title':this[_0x6b36e3(0x35f)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x6b36e3(0x35f)]['t'](_0x6b36e3(0x24b)),'type':_0x6b36e3(0x435),'duration':0x0}),_0x8088b9['id']===t[_0x6b36e3(0x3c3)][_0x6b36e3(0x25b)]&&this['_messageService'][_0x6b36e3(0x237)]({'type':o[_0x6b36e3(0x20a)]['Warning'],'content':this[_0x6b36e3(0x35f)]['t'](_0x8088b9[_0x6b36e3(0x433)]||'')}),_0x8088b9['id']===t[_0x6b36e3(0x3c3)]['SOCKET_FAILED_RETRY']&&this[_0x6b36e3(0x1c0)][_0x6b36e3(0x237)]({'type':o[_0x6b36e3(0x20a)][_0x6b36e3(0x44a)],'content':this['_localeService']['t'](_0x6b36e3(0x342))}),_0x8088b9['id']===t[_0x6b36e3(0x3c3)][_0x6b36e3(0x2ae)]&&this['_messageService'][_0x6b36e3(0x237)]({'type':o[_0x6b36e3(0x20a)]['Error'],'content':this[_0x6b36e3(0x35f)]['t'](_0x6b36e3(0x3e4))}),_0x8088b9['id']===t[_0x6b36e3(0x3c3)][_0x6b36e3(0x3cf)]&&this[_0x6b36e3(0x1c0)][_0x6b36e3(0x237)]({'type':o['MessageType'][_0x6b36e3(0x1fd)],'content':this['_localeService']['t'](_0x6b36e3(0x1b1))});}));}};V=C([S(0x0,r[_0x4fab7a(0x28b)]),S(0x1,t[_0x4fab7a(0x2d4)]),S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(t[_0x4fab7a(0x424)])),S(0x3,r['IMessageService']),S(0x4,r[_0x4fab7a(0x466)]),S(0x5,(0x0,n[_0x4fab7a(0x3bb)])(n[_0x4fab7a(0x198)]))],V);const H=(0x0,n[_0x4fab7a(0x280)])(_0x4fab7a(0x41d));function _0x19cd(){const _0x557994=['pulse','_cursorInfo$','subscribe','_initUnhandledRejectionListener','removeObject','_blinkIntervalTimer','toString','Inject','undoState','_drawAnchor','getDocRanges','InsertRowCommandId','LoadingMultiIcon','_memberService','SetFormulaCalculationStartMutation','CollaborationUIEventId','_draw','toRgbString','hovered','_releaseCalculationLimit','replace','handleIRemoveCol','_imageIoService','Subject','pageManager','stack','setShapeProps','SUBMIT_CHANGESET_TIMEOUT','transformSelections','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collaboration-client-ui.snapshotLoading.timeout','#FFF','_entities','subUnitId','ColorKit','_colorIndex','clearInterval','filter','_boardElementStateService','_memberID','delete','collab-text-range-','row','ISnapshotServerService','getItem','replaceDocRanges','_drawTextRange','maxFormulaLimit','collaboration-client-ui.session.connection-failed','dirtyRanges','polite','disableLocalCache','_initDependencies','_docSyncEditingCollabCursorService','object','AWAITING','slide-collab-cursor-','_onRefRangeChange','OffLineIcon','_onCursorUpdate','roomMembers$','SetDocZoomRatioOperation','_blockProgressWatches','endRow','InsertRangeMoveRightCommandId','_transformService','ILogService','removeObjects','ERROR','_ensureSubject','_notificationService','LOADING_BLOCKS','removeEventListener','column','focusedId','transformIMECache','generateRandomId','610284SOHxCz','defineProperty','collaboration-client-ui.config','_httpService','IUIPartsService','slice','href','12gCFWKO','black','_init','Fragment','saveTaskMap','ACTIVE_UNIT_EVENT_CHANNEL','startPluginsForType','_startSlideCollabCursor','strokeRect','_labelHorizontalPosition','_docTransformStateCacheService','getColorFromTheme','SnapshotLoadStage','tooltipKey','[Window\x20Error]:\x20','cursorInfo','dispose','getConfig','saveOfflineData','yellow.400','USERS_LEAVE','uni.network.url-service','onCommandExecuted','[LogService\x20Error]:\x20','event$','_clearTimeoutState','4837581IiExfz','LOCAL_CACHE_INTERVAL','CollaborationUIEventService','previewReady','_refRangeService','preventDefault','RECT','subscribeEvent','_startCalculationLimit','collaboration-client-ui.snapshotLoading.loadingSheet','mergeOverrideWithDependencies','getMergeData','length','drawWith','transformStateCache','HEADER_MENU','FormulaExecutedStateType','data','_labelPosition','error','_pluginService','IUniverInstanceService','lineno','fillRule','_hover','SYNCED','_heartbeatTimer','_updateSheetPreview','height','_getMergeRange','onRendered','_docTransformIMECacheService','context','MemberService','makeDirty','top','_disabled','entityInit$','all','/universer-api/license/formula/limit/done','Warning','setLineDash','_shortcutService','_saveTaskMap','disposeUnit','restore','registerComponent','join','_collaborationUIEventService','span','doc.mutation.rich-text-editing','getOwnPropertyDescriptor','location','_getScale','remove','unitID','serializeRangeWithSheet','_slideDrawingStateService','startsWith','_handoffUnitIds','sheetID','enableDocumentCollaborationUI','DependentOn','_hasFormulaInDirtyRanges','collab-rect-range-','default','RemoveRowCommandId','TRANSFORM_CHANGE_OBSERVABLE_TYPE','INotificationService','handleDeleteRangeMoveLeft','collaboration-client-ui.collabClient.tooltip.reconnect','handoff','setItem','onStarting','1toChPC','handleInsertRangeMoveDown','textRanges','collaboration-client-ui.collabStatus.fetchMiss','toISOString','findNodePositionByCharIndex','_scheduleHeartbeat','univer-flex\x20univer-items-center\x20univer-justify-center','origin','enableFrontendLog','getActiveSlide','_monkeyPatchLogService','_setInteractionBlocked','_config','IMessageService','_context','loadUnit','_updateCollabCursors','isEditing','getActivePageId','@univerjs-pro/collaboration-client-ui','getFocusedUnit','i18nKey','_lastResponseTimestamp','addEventListener','_handleJoinEvent','_sheetSkeletonManagerService','getLocalCacheKey','getActiveSheet','collaboration-client-ui.formula.calculation.unable','NOT_COLLAB','_commandService','mutations','enableLocalCache','getSkeleton','dispose$','_range','\x20-\x20','history','_initCommandExecutedListener','collaboration-client-ui.snapshotLoading.refresh','FETCH_MISS','_colorAssignService','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','transformMutationsWithChangeset','requireSession','sessionStatus$','useMemo','_handleHover','purple.300','getSheetObject','touchDependencies','urlChange$','unsubscribe','message','exhaustSavingTask','LocaleService','getCellPositionByOffset','handleInsertRow','rgba','onPointerEnter$','_latestStates','ICommandService','debounceTime','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','syncEditingCollabCursor','add','_syncEditingCollabCursorService','_handleHeartbeatEvent','currentSkeleton$','setActiveRange','EffectRefRangId','redoState','activeSheet$','_shapes','loadedBlocks','selection','_transformHistoryAndStateStack','_roomMembers$','_scheduleRender','SUCCESS','collaboration-client-ui.session.collaboration-timeout','_uploadLog','_getSceneObjectByKey','IRemoteInstanceService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','handleInsertCol','jsx','unit','asObservable','fillStyle','newValue','timeoutState$','slide-element-selection','backgroundColor','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_messageService','getRelativeToViewportCoord','map','getRealBound','HTTPService','_handoffPreview','_eventUnsubscribe','RegularPolygon','complete','_getObjectBounds','RemoveColCommandId','colno','_localCacheService','60hKPjZx','string','getSheetId','saveImage','BehaviorSubject','_initUserListener','type','buildDrawingOKey','runOnServer','OTHER_CLIENTS_EDITING','_removeClearOtherTimer','0.2)','rgba(255,\x20255,\x20255,\x200.01)','backupOfflineData','getCurrentTypeOfUnit$','_configService','_currentUsage','univer-text-orange-500','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','clickable','_getSheetLoadingRenderService','_initCommandInterceptor','DOC_RANGE_TYPE','isInternalEditorID','labelPosition','DocIMEInputManagerService','NO_OTHER_CLIENTS_EDITING','_blinkTimer','_uiPartsService','highlight','bold\x2013px\x20Arial,\x20sans-serif','getParam','getUnitId','_color','_isBlinkVisible','_assignedColors','collaboration-client-ui.collabStatus.conflict','font','7XyNRVP','Rect','_setupBeforeClosingHandler','green.600','collaboration-client-ui.permission.content','focused$','10730137FJOHey','currentTheme$','stageInfo','_registerRenderDependencies','Error','deserializeRangeWithSheet','beforeCommandExecuted','_startBlinking','static','takeUntil','strokeWidth','Failed','_pollingInterval','application/json','set','isTransformMutationFailure','board-element-selection','MessageType','useDependency','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_textBubble','setStateCache','clsx','getTypeOfUnitDisposed$','angle','collaboration-client-ui.collabStatus.syncing','useObservable','getId','[Unhandled\x20Rejection]:\x20','_name','_highlightSecond','timedOut','_interactionBlocked$','triggerDblclick','IImageIoService','SetFormulaCalculationNotificationMutation','CollaborationStatus','endColumn','_maxFormulaLimit','code','OTHER_CLIENT_EDITING','merge','DisposableCollection','getAncestorScale','width','UniverCollaborationClientUIPlugin','debug','_injector','_collabCursorState$','univer-h-8\x20univer-w-8\x20univer-rounded-lg','fromEvent','_session','_cursors','parseInt','setOffsetY','addObjects','VIEW_MAIN','primary','_setupSubUnitSync','scene','Loading','clear','show','name','getCoordByCell','getMemberID','from','getCollabCursors$','getStateCache','1.0.0-alpha.7','#4f46e5','_anchor','SheetsSelectionsService','startFormulaLimitUrl','_dataLoaderService','getCurrentUnitOfType','11560904cGorWh','_unitOnClients','offsetY','getUniverSheetInstance','IURLService','DesktopCollaborationStatusDisplayController','collaboration-client-ui.conflict.content','distinctUntilChanged','_send','UNIVER_BOARD','refreshLabel','Rectangle','runId','theme$','univer-text-blue-500','imageSourceType','isTransformMutationsWithChangesetSuccess','showText','_snapshotLoadingService','DeleteRangeMoveLeftCommandId','_toggleOffline','sheetId','JOIN_ROOM_FAILED','_online','post','getObjectIncludeInGroup','getCollabEntity$','_getLighterColor','_docClipboardService','_transformPreviousActiveRange','getUnit','_hidePreview','_initEntityListener','_toggleOnline','functionsExecutedState','univer-appearance-none','Plugin','_offsetY','Disposable','SheetCollabCursorShape','whenReady','CollaborationSessionService','limitInfo','function','catch','/universer-api/license/formula/limit/start','roomMembers','_instanceService','PENDING','CanceledError','_collabSessionService','removeParam','_updateURLWithCurrentState','shift','pipe','CLOSE_ROOM','parse','getRangePointData','pushState','createIdentifier','_status$','getUndoRedoMutationParamsCache','_setFormulaLimitStatus','pluginName','then','_collaborationController','ILocalStorageService','value','values','_startDocCollabCursor','IBeforeCloseService','addObject$','color','RefRangeService','true','addHandlerCallback','BuiltInUIPart','next','setInterval','transformRemoteChangeset','BrowserCollaborationSocketService','updateOfflineData','decorate','flatMap','_messageIds','SessionStatus','some','_isVisibleUnit','setTimeout','_hideTimer','MoveRangeCommandId','_isApplyingOverlays','spin','bottom','version','_checkAndWaitForCalculationPermission','onMouseMove','registerDependencies','init','deepClone','_collabCursorController','univer-text-green-500','get','_docSkeletonManagerService','throttleTime','SOCKET_FAILED','snapshot-loading-timeout','collaboration-client-ui.collabStatus.offline','Injector','setConfig','key','invokeId','IConfigService','has','_renderManagerService','_handleLeaveEvent','_stopBlinking','LOCAL_CACHE_INTERVAL_KEY','text','getSheetBySheetId','indicator','_highlight','ranges','PERMISSION_DENIED','getViewport','call','getMember','kind','split','IShortcutService','onPointerLeave$','getValue','stage','highlightSecond','_anchorDot','board-collab-cursor-','jsxs','params','_pointerMoveDisposable','workbookShell','right','_registerDependencies','_renderScheduled','ILocalCacheService','_startSheetCollabCursor','LOADING_SNAPSHOT','Tools','fill','_id','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','IDocClipboardService','Module','constructor','UniverInstanceType','UNIVER_SHEET','_scene','_drawRectRange','getTypeOfUnitAdded$','_clearPolling','startRow','content','_selfUnitIDs','memberID','toStringTag','Vector2','toDisposable','send','alert','IRenderManagerService','_cachedData','collaboration-client-ui.collabStatus.notCollab','_initStatusListener','Shape','UNIVER_DOC','getAllUnitsForType','sessionTicket','dark:focus:!univer-ring-offset-gray-800','now','left','iterator','getObject','UnitStatus','_lastPointer','wsSessionTicketUrl','handleIRemoveRow','univer-transition-all\x20univer-duration-200','_transformUndoRedoStack','_docStateChangeManagerService','UPDATE_CURSOR','fillText','RxDisposable','_showGuardMessage','red.300','registerRenderModule','connectInjector',':backup:','onPointerMove$','IBoardElementStateService','replaceState','engine','max',',\x200.2)','lineTo','runRefRangeMutations','_latestCursors','ThemeService','contains','getRenderById','_entityInit$','isArray','measureText','_collaborationSessionService','_watchBlockProgress','_timeoutState$','_scheduleSaving','unload','univer-text-gray-400','eventID','/universer-api/license/formula/limit/status','collab-text-anchor-','transformMutation','symbol','m1Prime','univer-border-none\x20univer-bg-transparent','COLORS','_docSkeleton','_doCreateSocket','Optional','Tooltip','_handleEvent','getColor','_initResize','onTransformChange$','ONLINE','size','_univerInstanceService','CollaborationEvent','_sheetLoadingRenderService','CollaborationController','_shortcutBlock','save','OnLineIcon','createInstance','collaboration-client-ui.formula.calculation.started','beginPath','_localStorageService','575554ZTRtFh','ErrorCode','_updateMessage','TEXT','_revisionService','_beforeCloseService','assignAColorForMemberID','collaboration-client-ui.session.will-retry','unitId','push','_initEvent','debounce','collabCursorState$','UniverCollaborationClientPlugin','_logService','ITransformService','10020180GVJVhE','InsertColCommandId','SnapshotLoadingService','hide','_saveCache','range','OFFLINE','...','_taskIds','BOARD_TOP_RIGHT_MENU_LEADING_PART','_clearOtherTimers','searchParams','_clearBlockProgressWatch','previewCellData','getCurrentSkeleton','snapshot-loading-','subunit','setAlpha','switchMap','CollaborationSocketService','_localeService','filename','executeCommand','Unknown\x20user','_applyCommand','_getAnchorBounding','transform','_backgroundColor','_themeService','with','_updateLocalCursor','_cursorShapes','CONFLICT','ISheetLoadingRenderService','_initStatusComponent','_checkCalculationAvailable','unshift','collaboration-client-ui.formula.calculation.waiting','PluginService','combineLatest','_removeCollabCursors','find','SetWorksheetActivateCommand','status$','addObject','activeSheetId','_showText','_updateSubUnitFromURLParams','totalBlocks','GLOBAL','_getFormulaLimitStatus','transformByState','_getSessionTicket','12zNLVLp','selectedIds','setUndoRedoMutationParamsCache','\x20at\x20','unhandledrejection','useCallback','univer-m-0\x20univer-p-0','_createSocketURL','_refreshCollabCursors','_getSheetObject','SetTextSelectionsOperation','arc','_render','popstate','state$','reconnect','_docTransformSelectionsService','_urlService','_startBoardCollabCursor','icon','_unitStatus','[CollaborationDataLoaderController]','FromArray','registerRefRange','cursorInfo$','UNIVER_SLIDE','m2Prime','_hovered','forEach','stringify','SheetSkeletonManagerService','rgba(','_cursor','DocSelectionManagerService','2031560lofDJr','TEXT_RANGE_LAYER_INDEX','forceDisable','handleMoveRange','_scheduleClearOtherTimer','body','isFormulaId','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_previewUnitId','COMPLETE','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getOffsetConfig','prototype','clearTimeout','_onCursorDelete','disposeWithMe','InsertRangeMoveDownCommandId','rgb'];_0x19cd=function(){return _0x557994;};return _0x19cd();}let U=class extends n['RxDisposable']{constructor(_0xffbb9f,_0x455b7f,_0x23e12b,_0x3f6ae6,_0x1e8e0b){const _0x9f2a85=_0x4fab7a;super(),this[_0x9f2a85(0x391)]=_0xffbb9f,this['_logService']=_0x455b7f,this[_0x9f2a85(0x48b)]=_0x23e12b,this[_0x9f2a85(0x243)]=_0x3f6ae6,_0x1e8e0b?_0x1e8e0b[_0x9f2a85(0x26d)]()['then'](()=>this[_0x9f2a85(0x40a)]()):(this[_0x9f2a85(0x349)][_0x9f2a85(0x227)](_0x9f2a85(0x395),_0x9f2a85(0x3d1)),this[_0x9f2a85(0x40a)]());}async[_0x4fab7a(0x40a)](){const _0x10772c=_0x4fab7a;let _0x2adb20=this[_0x10772c(0x391)][_0x10772c(0x1ec)](_0x10772c(0x1b8)),_0x18a4f1=this[_0x10772c(0x391)][_0x10772c(0x1ec)](_0x10772c(0x1d3)),_0x232a3c=this[_0x10772c(0x391)][_0x10772c(0x1ec)](_0x10772c(0x35b));if(!_0x2adb20||!_0x18a4f1){this[_0x10772c(0x349)][_0x10772c(0x227)](_0x10772c(0x395),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x1ca14d=await this[_0x10772c(0x243)][_0x10772c(0x47c)](_0x2adb20,Number(_0x18a4f1),_0x232a3c);_0x1ca14d&&_0x1ca14d instanceof n['Workbook']&&this[_0x10772c(0x233)](_0x1ca14d);}async[_0x4fab7a(0x233)](_0x28d8bb){const _0x4b6e87=_0x4fab7a;await this['_updateSubUnitFromURLParams'](_0x28d8bb),_0x28d8bb[_0x4b6e87(0x1a9)][_0x4b6e87(0x27b)]((0x0,i[_0x4b6e87(0x202)])(this['dispose$']))['subscribe'](_0x5930ee=>{const _0x31045e=_0x4b6e87;_0x5930ee&&this[_0x31045e(0x279)](_0x5930ee);}),this[_0x4b6e87(0x391)][_0x4b6e87(0x4a0)][_0x4b6e87(0x27b)]((0x0,i['takeUntil'])(this[_0x4b6e87(0x48f)]))[_0x4b6e87(0x3b6)](()=>this[_0x4b6e87(0x37a)](_0x28d8bb));}[_0x4fab7a(0x279)](_0x55939a,_0x4a56d5=!0x1){const _0x489841=_0x4fab7a;let _0x145f64=this['_urlService'][_0x489841(0x1ec)]('subunit');_0x55939a[_0x489841(0x1cf)]()!==_0x145f64&&this['_urlService']['setParam'](_0x489841(0x35b),_0x55939a[_0x489841(0x1cf)](),_0x4a56d5);}async[_0x4fab7a(0x37a)](_0x256880){const _0x5a8eb6=_0x4fab7a;var _0x5ed8d0;let _0xef2a22=this[_0x5a8eb6(0x391)][_0x5a8eb6(0x1ec)](_0x5a8eb6(0x35b));if(!_0xef2a22||!_0x256880[_0x5a8eb6(0x2bc)](_0xef2a22)){let _0x2ce45b=_0x256880['getUnhiddenWorksheets']()[0x0],_0x16199e=_0x256880[_0x5a8eb6(0x2bc)](_0x2ce45b);if(!_0x16199e)return;this['_updateURLWithCurrentState'](_0x16199e,!0x0),await this[_0x5a8eb6(0x48b)]['executeCommand'](g[_0x5a8eb6(0x375)]['id'],{'unitId':_0x256880[_0x5a8eb6(0x1ed)](),'subUnitId':_0x2ce45b});return;}((_0x5ed8d0=_0x256880[_0x5a8eb6(0x488)]())==null?void 0x0:_0x5ed8d0[_0x5a8eb6(0x1cf)]())!==_0xef2a22&&await this[_0x5a8eb6(0x48b)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x256880[_0x5a8eb6(0x1ed)](),'subUnitId':_0xef2a22});}};U=C([S(0x0,H),S(0x1,n[_0x4fab7a(0x3f6)]),S(0x2,n[_0x4fab7a(0x19e)]),S(0x3,(0x0,n['Inject'])(t['DataLoaderService'])),S(0x4,(0x0,n[_0x4fab7a(0x328)])(ee[_0x4fab7a(0x1b4)]))],U);let W=class{constructor(_0x2e7c3c,_0x334307){this['_transformService']=_0x2e7c3c,this['_renderManagerService']=_0x334307;}['transformIMECache'](_0x4fc64f){const _0x38fb87=_0x4fab7a;this[_0x38fb87(0x2ff)](_0x4fc64f),this['_transformPreviousActiveRange'](_0x4fc64f);}[_0x4fab7a(0x294)](_0x4ff4d5){const _0x326798=_0x4fab7a;let {unitID:_0x5bf918}=_0x4ff4d5,{redoCache:_0xa47415}=this['_renderManagerService']['getRenderById'](_0x5bf918)[_0x326798(0x368)](f[_0x326798(0x1e6)])[_0x326798(0x282)]();if(_0xa47415['length']===0x0)return _0x4ff4d5;let _0x267ba2=n[_0x326798(0x2d7)]['deepClone'](_0x4ff4d5['mutations'][0x0]);for(let _0x44a546=0x0;_0x44a546<_0xa47415['length'];_0x44a546++){let _0x3bda78={'id':'doc.mutation.rich-text-editing','params':{..._0xa47415[_0x44a546]}},_0x438a77=this[_0x326798(0x3f5)][_0x326798(0x321)](_0x267ba2,_0x3bda78,!0x1);if((0x0,p[_0x326798(0x208)])(_0x438a77))throw _0x438a77[_0x326798(0x435)];_0x267ba2=_0x438a77['m1Prime'];}return{...n[_0x326798(0x2d7)][_0x326798(0x2a8)](_0x4ff4d5),'mutations':[_0x267ba2]};}[_0x4fab7a(0x2ff)](_0x30ec25){const _0x1a8f4a=_0x4fab7a;let {unitID:_0x1a546b}=_0x30ec25,_0x30dd77=this[_0x1a8f4a(0x2b7)][_0x1a8f4a(0x314)](_0x1a546b)['with'](f[_0x1a8f4a(0x1e6)]),{undoCache:_0x5db777,redoCache:_0xfc3f9b}=_0x30dd77[_0x1a8f4a(0x282)]();if(_0x5db777[_0x1a8f4a(0x42e)]===0x0||_0xfc3f9b[_0x1a8f4a(0x42e)]===0x0)return;let _0x591d84=[],_0x1b5189=[],_0x5bedf5=n[_0x1a8f4a(0x2d7)]['deepClone'](_0x30ec25[_0x1a8f4a(0x48c)][0x0]),_0x5317b6=n[_0x1a8f4a(0x2d7)]['deepClone'](_0x30ec25[_0x1a8f4a(0x48c)][0x0]);for(let _0x18a0c1=_0x5db777['length']-0x1;_0x18a0c1>=0x0;_0x18a0c1--){let _0x1f997e={'id':_0x1a8f4a(0x454),'params':{..._0x5db777[_0x18a0c1]}},_0x5e5bdc={'id':_0x1a8f4a(0x454),'params':{..._0xfc3f9b[_0x18a0c1]}},_0x4bf19f=this[_0x1a8f4a(0x3f5)][_0x1a8f4a(0x321)](_0x5bedf5,_0x1f997e,!0x1),_0x315b8b=this[_0x1a8f4a(0x3f5)][_0x1a8f4a(0x321)](_0x5317b6,_0x5e5bdc,!0x1);if((0x0,p[_0x1a8f4a(0x208)])(_0x4bf19f))throw _0x4bf19f[_0x1a8f4a(0x435)];if((0x0,p[_0x1a8f4a(0x208)])(_0x315b8b))throw _0x315b8b[_0x1a8f4a(0x435)];_0x591d84[_0x1a8f4a(0x36f)](_0x4bf19f['m2Prime']['params']),_0x1b5189[_0x1a8f4a(0x36f)](_0x315b8b['m2Prime']['params']),_0x5bedf5=_0x4bf19f[_0x1a8f4a(0x323)],_0x5317b6=_0x315b8b['m1Prime'];}_0x30dd77[_0x1a8f4a(0x382)]({'undoCache':_0x591d84,'redoCache':_0x1b5189});}[_0x4fab7a(0x262)](_0x5a9f81){const _0x36d999=_0x4fab7a;let {unitID:_0x4cd4a1}=_0x5a9f81,_0x863d=this[_0x36d999(0x2b7)][_0x36d999(0x314)](_0x4cd4a1)['with'](f[_0x36d999(0x1e6)]),_0x2f0407=_0x863d['getActiveRange']();if(_0x2f0407==null)return;let _0x3521cd=[{'id':_0x36d999(0x454),'params':{'unitId':_0x5a9f81[_0x36d999(0x459)],'actions':null,'textRanges':[_0x2f0407]}}],_0x350dd7=this[_0x36d999(0x3f5)][_0x36d999(0x498)](_0x5a9f81,_0x3521cd);if(!(0x0,p[_0x36d999(0x255)])(_0x350dd7))throw _0x350dd7[_0x36d999(0x435)];let _0x182680=_0x350dd7[_0x36d999(0x39a)][0x0][_0x36d999(0x2ce)]['textRanges'];Array[_0x36d999(0x316)](_0x182680)&&_0x182680[_0x36d999(0x42e)]&&_0x863d[_0x36d999(0x1a6)](_0x182680[0x0]);}};W=C([S(0x0,p[_0x4fab7a(0x34a)]),S(0x1,u[_0x4fab7a(0x2ed)])],W);let G=class{constructor(_0x4a07b6,_0x43af69,_0x46ae0e){const _0x176654=_0x4fab7a;this[_0x176654(0x228)]=_0x4a07b6,this['_transformService']=_0x43af69,this[_0x176654(0x300)]=_0x46ae0e;}[_0x4fab7a(0x430)](_0x2b1dfb){const _0x3d2447=_0x4fab7a;this[_0x3d2447(0x1ad)](_0x2b1dfb);}[_0x4fab7a(0x294)](_0x5bc3f6){const _0x5ea647=_0x4fab7a;let {unitID:_0x26352a}=_0x5bc3f6,{collaboration:_0x2d3f69}=this[_0x5ea647(0x300)][_0x5ea647(0x23d)](_0x26352a);if(_0x2d3f69[_0x5ea647(0x42e)]===0x0)return _0x5bc3f6;let _0x898a12=n['Tools']['deepClone'](_0x5bc3f6[_0x5ea647(0x48c)][0x0]);for(let _0x2561cd=0x0;_0x2561cd<_0x2d3f69['length'];_0x2561cd++){let _0x40a095={'id':_0x5ea647(0x454),'params':{'unitId':_0x2d3f69[_0x2561cd][_0x5ea647(0x343)],..._0x2d3f69[_0x2561cd][_0x5ea647(0x1a8)]}},_0x28ae19=this[_0x5ea647(0x3f5)][_0x5ea647(0x321)](_0x898a12,_0x40a095,!0x1);if((0x0,p[_0x5ea647(0x208)])(_0x28ae19))throw _0x28ae19[_0x5ea647(0x435)];_0x898a12=_0x28ae19['m1Prime'];}return{...n['Tools'][_0x5ea647(0x2a8)](_0x5bc3f6),'mutations':[_0x898a12]};}[_0x4fab7a(0x1ad)](_0x1b5f5c){const _0x308438=_0x4fab7a;let {unitID:_0x292222}=_0x1b5f5c,{history:_0x275d57,collaboration:_0xb2cde2}=this[_0x308438(0x300)]['getStateCache'](_0x292222);if(_0x275d57[_0x308438(0x42e)]===0x0&&_0xb2cde2[_0x308438(0x42e)]===0x0)return;let _0xeb4a6e=[],_0x44b680=[],_0x556a34=n[_0x308438(0x2d7)]['deepClone'](_0x1b5f5c[_0x308438(0x48c)][0x0]),_0x16a6dc=n[_0x308438(0x2d7)][_0x308438(0x2a8)](_0x1b5f5c[_0x308438(0x48c)][0x0]);for(let _0x4d82e1=_0x275d57['length']-0x1;_0x4d82e1>=0x0;_0x4d82e1--){let _0xc74b00={'id':_0x308438(0x454),'params':{'unitId':_0x275d57[_0x4d82e1][_0x308438(0x343)],..._0x275d57[_0x4d82e1][_0x308438(0x3bc)]}},_0x10db29={'id':_0x308438(0x454),'params':{'unitId':_0x275d57[_0x4d82e1][_0x308438(0x343)],..._0x275d57[_0x4d82e1][_0x308438(0x1a8)]}},_0x3a2fa9=this[_0x308438(0x3f5)][_0x308438(0x321)](_0x556a34,_0xc74b00,!0x1),_0x25c0cf=this[_0x308438(0x3f5)][_0x308438(0x321)](_0x16a6dc,_0x10db29,!0x1);if((0x0,p['isTransformMutationFailure'])(_0x3a2fa9))throw _0x3a2fa9[_0x308438(0x435)];if((0x0,p[_0x308438(0x208)])(_0x25c0cf))throw _0x25c0cf['error'];_0xeb4a6e[_0x308438(0x36f)]({..._0x275d57[_0x4d82e1],'undoState':_0x3a2fa9[_0x308438(0x39a)]['params'],'redoState':_0x25c0cf[_0x308438(0x39a)]['params']}),_0x556a34=_0x3a2fa9[_0x308438(0x323)],_0x16a6dc=_0x25c0cf[_0x308438(0x323)];}_0x556a34=n[_0x308438(0x2d7)][_0x308438(0x2a8)](_0x1b5f5c[_0x308438(0x48c)][0x0]),_0x16a6dc=n[_0x308438(0x2d7)][_0x308438(0x2a8)](_0x1b5f5c[_0x308438(0x48c)][0x0]);for(let _0x3f6c21=_0xb2cde2[_0x308438(0x42e)]-0x1;_0x3f6c21>=0x0;_0x3f6c21--){let _0x411913={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xb2cde2[_0x3f6c21][_0x308438(0x343)],..._0xb2cde2[_0x3f6c21][_0x308438(0x3bc)]}},_0x20d4dc={'id':_0x308438(0x454),'params':{'unitId':_0xb2cde2[_0x3f6c21][_0x308438(0x343)],..._0xb2cde2[_0x3f6c21][_0x308438(0x1a8)]}},_0x4c794f=this[_0x308438(0x3f5)][_0x308438(0x321)](_0x556a34,_0x411913,!0x1),_0x39defd=this[_0x308438(0x3f5)][_0x308438(0x321)](_0x16a6dc,_0x20d4dc,!0x1);if((0x0,p[_0x308438(0x208)])(_0x4c794f))throw _0x4c794f[_0x308438(0x435)];if((0x0,p['isTransformMutationFailure'])(_0x39defd))throw _0x39defd[_0x308438(0x435)];_0x44b680['unshift']({..._0xb2cde2[_0x3f6c21],'undoState':_0x4c794f[_0x308438(0x39a)][_0x308438(0x2ce)],'redoState':_0x39defd['m2Prime']['params']}),_0x556a34=_0x4c794f[_0x308438(0x323)],_0x16a6dc=_0x39defd[_0x308438(0x323)];}this[_0x308438(0x300)][_0x308438(0x20e)](_0x292222,{'history':_0xeb4a6e,'collaboration':_0x44b680});}};G=C([S(0x0,(0x0,n[_0x4fab7a(0x3bb)])(n[_0x4fab7a(0x2b1)])),S(0x1,p[_0x4fab7a(0x34a)]),S(0x2,(0x0,n['Inject'])(m['DocStateChangeManagerService']))],G);let K=class{constructor(_0x85e4e8,_0x5ce4db){const _0x53cbfc=_0x4fab7a;this[_0x53cbfc(0x228)]=_0x85e4e8,this[_0x53cbfc(0x3f5)]=_0x5ce4db;}[_0x4fab7a(0x3d0)](_0x2051c7){const _0x3c63d9=_0x4fab7a;var _0x24aab9;let _0x339850=this[_0x3c63d9(0x228)][_0x3c63d9(0x2ab)](m[_0x3c63d9(0x3a1)]),_0x1ba44f=(_0x24aab9=_0x339850['getDocRanges']())==null?[]:_0x24aab9;if(_0x1ba44f['length']===0x0)return;let _0x112689=_0x2051c7[_0x3c63d9(0x459)],_0x59778b=[{'id':_0x3c63d9(0x454),'params':{'unitId':_0x112689,'actions':null,'textRanges':_0x1ba44f}}],_0x21aae2=this[_0x3c63d9(0x3f5)][_0x3c63d9(0x498)](_0x2051c7,_0x59778b);if(!(0x0,p['isTransformMutationsWithChangesetSuccess'])(_0x21aae2))throw _0x21aae2['error'];let _0x551462=_0x21aae2[_0x3c63d9(0x39a)][0x0]['params'][_0x3c63d9(0x46e)];Array[_0x3c63d9(0x316)](_0x551462)&&_0x551462['length']&&_0x339850[_0x3c63d9(0x3e1)](_0x551462,{'unitId':_0x112689,'subUnitId':_0x112689},!0x1);}};K=C([S(0x0,(0x0,n[_0x4fab7a(0x3bb)])(n['Injector'])),S(0x1,p[_0x4fab7a(0x34a)])],K);let q=class extends n[_0x4fab7a(0x26b)]{constructor(_0x1d78ed,_0x123c8d,_0x3267ec,_0x24eace,_0x27b0ac,_0x4f6f70,_0x469950){const _0x3c1c82=_0x4fab7a;super(),this['_collaborationController']=_0x1d78ed,this['_docTransformIMECacheService']=_0x123c8d,this[_0x3c1c82(0x412)]=_0x3267ec,this[_0x3c1c82(0x390)]=_0x24eace,this[_0x3c1c82(0x3e9)]=_0x27b0ac,this[_0x3c1c82(0x1c0)]=_0x4f6f70,this['_localeService']=_0x469950,x(this,'_status$',new i['BehaviorSubject'](t['CollaborationStatus'][_0x3c1c82(0x48a)])),this[_0x3c1c82(0x265)]();}[_0x4fab7a(0x265)](){const _0x3c9a8d=_0x4fab7a;this[_0x3c9a8d(0x3b1)](this[_0x3c9a8d(0x286)][_0x3c9a8d(0x447)][_0x3c9a8d(0x3b6)](_0x45a56b=>{const _0xcc26ea=_0x3c9a8d;_0x45a56b instanceof t['DocCollaborationEntity']&&_0x45a56b[_0xcc26ea(0x290)]({'onTransformIME':_0x33d430=>this[_0xcc26ea(0x441)][_0xcc26ea(0x3ff)](_0x33d430),'onTransformState':_0x48a73b=>this[_0xcc26ea(0x412)][_0xcc26ea(0x430)](_0x48a73b),'onTransformSelections':_0x3697af=>this['_docTransformSelectionsService'][_0xcc26ea(0x3d0)](_0x3697af),'onSyncEditingCollabCursor':_0x4d65db=>this[_0xcc26ea(0x3e9)][_0xcc26ea(0x1a1)](_0x4d65db),'onTransformRemoteChangesetByIMECache':_0x1669d3=>this['_docTransformIMECacheService'][_0xcc26ea(0x294)](_0x1669d3),'onTransformRemoteChangesetByStateCache':_0x37be8f=>this[_0xcc26ea(0x412)][_0xcc26ea(0x294)](_0x37be8f)});}));}};q=C([S(0x0,(0x0,n[_0x4fab7a(0x3bb)])(t[_0x4fab7a(0x333)])),S(0x1,(0x0,n['Inject'])(W)),S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(G)),S(0x3,(0x0,n['Inject'])(K)),S(0x4,(0x0,n[_0x4fab7a(0x3bb)])(j)),S(0x5,r[_0x4fab7a(0x47a)]),S(0x6,(0x0,n['Inject'])(n['LocaleService']))],q);let J=class extends n['Disposable']{constructor(_0x372d74,_0x1db51a,_0x1d3567,_0x57c10e){const _0x53be3c=_0x4fab7a;super(),this[_0x53be3c(0x228)]=_0x372d74,this['_httpService']=_0x1db51a,this['_logService']=_0x1d3567,this[_0x53be3c(0x318)]=_0x57c10e,x(this,'_memberID',void 0x0),this[_0x53be3c(0x40a)]();}[_0x4fab7a(0x40a)](){const _0x5402ab=_0x4fab7a;this['_initWindowErrorListener'](),this[_0x5402ab(0x3b7)](),this[_0x5402ab(0x477)](),this[_0x5402ab(0x1d2)]();}[_0x4fab7a(0x1d2)](){const _0x4c47b9=_0x4fab7a;this[_0x4c47b9(0x3b1)](this[_0x4c47b9(0x318)]['socket$'][_0x4c47b9(0x3b6)](_0x18fec8=>{this['_memberID']=_0x18fec8==null?void 0x0:_0x18fec8['memberID'];}));}['_initWindowErrorListener'](){const _0x5e1f57=_0x4fab7a;let _0x5b50a6=_0x299f61=>{const _0x2d1b2b=_0x1c7f;var _0xc6a0f4;this[_0x2d1b2b(0x1b2)](_0x2d1b2b(0x435),_0x2d1b2b(0x416)+_0x299f61['message']+_0x2d1b2b(0x383)+_0x299f61[_0x2d1b2b(0x360)]+':'+_0x299f61[_0x2d1b2b(0x438)]+':'+_0x299f61[_0x2d1b2b(0x1cb)]+'\x0a'+(((_0xc6a0f4=_0x299f61[_0x2d1b2b(0x435)])==null?void 0x0:_0xc6a0f4[_0x2d1b2b(0x3cd)])||''));};window['addEventListener'](_0x5e1f57(0x435),_0x5b50a6),this[_0x5e1f57(0x3b1)](()=>{const _0x28bd26=_0x5e1f57;window[_0x28bd26(0x3fc)](_0x28bd26(0x435),_0x5b50a6);});}[_0x4fab7a(0x3b7)](){const _0x43f9b4=_0x4fab7a;let _0x4c3e74=_0x5dcfa7=>{const _0x1411ec=_0x1c7f;this[_0x1411ec(0x1b2)](_0x1411ec(0x435),_0x1411ec(0x215)+_0x5dcfa7['reason']);};window[_0x43f9b4(0x484)](_0x43f9b4(0x384),_0x4c3e74),this[_0x43f9b4(0x3b1)](()=>{const _0x45276a=_0x43f9b4;window[_0x45276a(0x3fc)](_0x45276a(0x384),_0x4c3e74);});}['_monkeyPatchLogService'](){const _0x5ecce1=_0x4fab7a;let _0x44e926=this[_0x5ecce1(0x349)]['error']['bind'](this[_0x5ecce1(0x349)]);this[_0x5ecce1(0x349)][_0x5ecce1(0x435)]=(..._0x1adb5b)=>{const _0x239417=_0x5ecce1;let _0x666451=_0x1adb5b[_0x239417(0x1c2)](_0x15398b=>_0x15398b instanceof Error?_0x15398b[_0x239417(0x196)]+'\x0a'+_0x15398b['stack']:String(_0x15398b))[_0x239417(0x451)]('\x20');this['_uploadLog']('error',_0x239417(0x41f)+_0x666451),_0x44e926(..._0x1adb5b);},this[_0x5ecce1(0x3b1)](()=>{const _0x31b75b=_0x5ecce1;this['_logService'][_0x31b75b(0x435)]=_0x44e926;});}[_0x4fab7a(0x1b2)](_0x1e266f,_0xe92add){const _0x67cc64=_0x4fab7a;try{let _0x1c4dd9={'userId':this[_0x67cc64(0x3db)],'logLabel':_0x1e266f,'content':_0xe92add};this[_0x67cc64(0x404)][_0x67cc64(0x25d)]('/universer-api/frontend/logs',{'body':_0x1c4dd9})[_0x67cc64(0x271)](()=>{});}catch{}}};J=C([S(0x0,(0x0,n[_0x4fab7a(0x3bb)])(n[_0x4fab7a(0x2b1)])),S(0x1,(0x0,n[_0x4fab7a(0x3bb)])(d[_0x4fab7a(0x1c4)])),S(0x2,n[_0x4fab7a(0x3f6)]),S(0x3,(0x0,n['Inject'])(t[_0x4fab7a(0x26e)]))],J);function Ce({state$:_0x1bb288,interactionBlocked$:_0x5ba540}){const _0x45ddfc=_0x4fab7a;return(0x0,l[_0x45ddfc(0x2cd)])(l[_0x45ddfc(0x40b)],{'children':[(0x0,r[_0x45ddfc(0x213)])(_0x5ba540,!0x1,!0x0)&&(0x0,l[_0x45ddfc(0x1b7)])('div',{'data-u-comp':'snapshot-loading-interaction-guard','aria-hidden':!0x0,'className':_0x45ddfc(0x497)}),(0x0,l['jsx'])(we,{'state$':_0x1bb288})]});}function we({state$:_0x30c645}){const _0x1e45f3=_0x4fab7a;let _0x3ed20d=(0x0,r[_0x1e45f3(0x213)])(_0x30c645,null,!0x0);return _0x3ed20d?(0x0,l[_0x1e45f3(0x2cd)])('div',{'data-u-comp':_0x1e45f3(0x2af),'role':_0x1e45f3(0x2ec),'className':_0x1e45f3(0x2da),'children':[(0x0,l[_0x1e45f3(0x1b7)])(s['WarningIcon'],{'className':_0x1e45f3(0x1df)}),(0x0,l['jsx'])('span',{'children':_0x3ed20d[_0x1e45f3(0x2e5)]}),(0x0,l['jsx'])(o['Button'],{'size':'small','variant':_0x1e45f3(0x232),'onClick':()=>window[_0x1e45f3(0x456)]['reload'](),'children':_0x3ed20d[_0x1e45f3(0x24f)]})]}):null;}const Y=_0x4fab7a(0x35a);let X=class extends n[_0x4fab7a(0x26b)]{constructor(_0x5d24b5,_0x12e0b5,_0x477886,_0x33478e,_0x39eee9,_0x46fa1e,_0x228b49,_0x53a265){const _0xafed22=_0x4fab7a;super(),this['_snapshotLoadingService']=_0x5d24b5,this[_0xafed22(0x1c0)]=_0x12e0b5,this[_0xafed22(0x35f)]=_0x477886,this[_0xafed22(0x228)]=_0x33478e,this[_0xafed22(0x436)]=_0x39eee9,this[_0xafed22(0x44c)]=_0x228b49,this[_0xafed22(0x391)]=_0x53a265,x(this,'_timeoutState$',new i[(_0xafed22(0x1d1))](null)),x(this,_0xafed22(0x219),new i[(_0xafed22(0x1d1))](!0x1)),x(this,_0xafed22(0x299),new Set()),x(this,_0xafed22(0x3f2),new Map()),x(this,_0xafed22(0x45d),new Set()),x(this,_0xafed22(0x19d),new Map()),x(this,'_previewUnitId',void 0x0),x(this,_0xafed22(0x334),void 0x0),x(this,_0xafed22(0x332),void 0x0),x(this,_0xafed22(0x1bc),this[_0xafed22(0x31a)][_0xafed22(0x1b9)]());let _0x7c41a9=()=>(0x0,c['createElement'])(Ce,{'state$':this[_0xafed22(0x1bc)],'interactionBlocked$':this[_0xafed22(0x219)]});this['disposeWithMe'](_0x46fa1e['registerComponent'](r[_0xafed22(0x291)][_0xafed22(0x37c)],()=>(0x0,r[_0xafed22(0x307)])(_0x7c41a9,this[_0xafed22(0x228)]))),this['disposeWithMe'](this[_0xafed22(0x257)][_0xafed22(0x38e)][_0xafed22(0x3b6)](_0x32bdf9=>{const _0x17f9c5=_0xafed22;this[_0x17f9c5(0x19d)]=_0x32bdf9,_0x32bdf9[_0x17f9c5(0x39c)](_0x58967c=>{const _0x48326a=_0x17f9c5;this[_0x48326a(0x33d)](_0x58967c),this[_0x48326a(0x43d)](_0x58967c);});})),this[_0xafed22(0x3b1)](this[_0xafed22(0x391)]['urlChange$'][_0xafed22(0x3b6)](()=>{const _0x216bb2=_0xafed22;this[_0x216bb2(0x19d)][_0x216bb2(0x39c)](_0x5945a7=>{const _0x420cf7=_0x216bb2;this['_updateMessage'](_0x5945a7),this[_0x420cf7(0x43d)](_0x5945a7);});}));}[_0x4fab7a(0x418)](){const _0x1f1e7c=_0x4fab7a;var _0x513983;if(this[_0x1f1e7c(0x299)][_0x1f1e7c(0x39c)](_0x335217=>this[_0x1f1e7c(0x1c0)][_0x1f1e7c(0x458)](_0x335217)),this[_0x1f1e7c(0x299)][_0x1f1e7c(0x236)](),this['_previewUnitId']){var _0x2d1f51;(_0x2d1f51=this[_0x1f1e7c(0x332)])==null||_0x2d1f51[_0x1f1e7c(0x34e)](this[_0x1f1e7c(0x3aa)]);}this['_previewUnitId']=void 0x0,this[_0x1f1e7c(0x3f2)]['forEach'](({timeoutId:_0x16f081})=>clearTimeout(_0x16f081)),this[_0x1f1e7c(0x3f2)][_0x1f1e7c(0x236)](),(_0x513983=this[_0x1f1e7c(0x334)])==null||_0x513983[_0x1f1e7c(0x418)](),this[_0x1f1e7c(0x334)]=void 0x0,this['_timeoutState$'][_0x1f1e7c(0x1c8)](),this[_0x1f1e7c(0x219)]['complete'](),super[_0x1f1e7c(0x418)]();}[_0x4fab7a(0x33d)](_0x5462f9){const _0x15c3fb=_0x4fab7a;let _0x533b2a=''+Y+_0x5462f9[_0x15c3fb(0x343)];if(_0x5462f9['stage']===p[_0x15c3fb(0x414)]['COMPLETE']){if(this[_0x15c3fb(0x357)](_0x5462f9[_0x15c3fb(0x343)]),this[_0x15c3fb(0x29c)](_0x5462f9['unitId'])&&this['_previewUnitId']===_0x5462f9[_0x15c3fb(0x343)]){this[_0x15c3fb(0x1c0)]['show']({'id':_0x533b2a,'type':o['MessageType'][_0x15c3fb(0x235)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x15c3fb(0x42b))}),this[_0x15c3fb(0x299)][_0x15c3fb(0x1a2)](_0x533b2a);return;}this[_0x15c3fb(0x421)](_0x5462f9[_0x15c3fb(0x343)]),this[_0x15c3fb(0x1c0)][_0x15c3fb(0x458)](_0x533b2a),this[_0x15c3fb(0x299)][_0x15c3fb(0x3dc)](_0x533b2a);return;}if(!this[_0x15c3fb(0x29c)](_0x5462f9[_0x15c3fb(0x343)])){this[_0x15c3fb(0x357)](_0x5462f9[_0x15c3fb(0x343)]),this[_0x15c3fb(0x421)](_0x5462f9[_0x15c3fb(0x343)]),this[_0x15c3fb(0x1c0)][_0x15c3fb(0x458)](_0x533b2a),this['_messageIds']['delete'](_0x533b2a);return;}if(_0x5462f9['stage']===p[_0x15c3fb(0x414)][_0x15c3fb(0x3f8)]){this['_clearBlockProgressWatch'](_0x5462f9[_0x15c3fb(0x343)]),this['_clearTimeoutState'](_0x5462f9[_0x15c3fb(0x343)]),this[_0x15c3fb(0x1c0)][_0x15c3fb(0x237)]({'id':_0x533b2a,'type':o[_0x15c3fb(0x20a)][_0x15c3fb(0x1fd)],'content':this[_0x15c3fb(0x35f)]['t'](_0x15c3fb(0x3e4))}),this['_messageIds'][_0x15c3fb(0x3dc)](_0x533b2a);return;}if(_0x5462f9[_0x15c3fb(0x2c9)]!==p[_0x15c3fb(0x414)][_0x15c3fb(0x3fb)]||_0x5462f9[_0x15c3fb(0x37b)]<=0xa){this['_clearBlockProgressWatch'](_0x5462f9[_0x15c3fb(0x343)]),this['_messageService'][_0x15c3fb(0x458)](_0x533b2a),this['_messageIds'][_0x15c3fb(0x3dc)](_0x533b2a);return;}this['_watchBlockProgress'](_0x5462f9)||(this[_0x15c3fb(0x1c0)][_0x15c3fb(0x237)]({'id':_0x533b2a,'type':o[_0x15c3fb(0x20a)][_0x15c3fb(0x235)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x15c3fb(0x46f))+'\x20'+_0x5462f9[_0x15c3fb(0x1ab)]+'/'+_0x5462f9[_0x15c3fb(0x37b)]}),this[_0x15c3fb(0x299)][_0x15c3fb(0x1a2)](_0x533b2a));}[_0x4fab7a(0x319)](_0x3b4b20){const _0x380342=_0x4fab7a;let _0x589405=this[_0x380342(0x3f2)][_0x380342(0x2ab)](_0x3b4b20['unitId']);if((_0x589405==null?void 0x0:_0x589405['loadedBlocks'])===_0x3b4b20[_0x380342(0x1ab)])return _0x589405[_0x380342(0x218)];this[_0x380342(0x357)](_0x3b4b20[_0x380342(0x343)]);let _0x18aa6b=setTimeout(()=>{const _0x18b972=_0x380342;let _0x59d636=this[_0x18b972(0x3f2)][_0x18b972(0x2ab)](_0x3b4b20[_0x18b972(0x343)]);if(!_0x59d636||_0x59d636['timeoutId']!==_0x18aa6b)return;_0x59d636[_0x18b972(0x218)]=!0x0;let _0x4ce72b=''+Y+_0x3b4b20[_0x18b972(0x343)];this[_0x18b972(0x1c0)][_0x18b972(0x458)](_0x4ce72b),this['_messageIds']['delete'](_0x4ce72b),this[_0x18b972(0x31a)][_0x18b972(0x292)]({'unitId':_0x3b4b20[_0x18b972(0x343)],'content':this[_0x18b972(0x35f)]['t'](_0x18b972(0x3d2),String(_0x3b4b20[_0x18b972(0x1ab)]),String(_0x3b4b20[_0x18b972(0x37b)])),'refreshLabel':this[_0x18b972(0x35f)]['t'](_0x18b972(0x494))});},0xea60);return this['_blockProgressWatches'][_0x380342(0x207)](_0x3b4b20[_0x380342(0x343)],{'loadedBlocks':_0x3b4b20[_0x380342(0x1ab)],'timedOut':!0x1,'timeoutId':_0x18aa6b}),!0x1;}[_0x4fab7a(0x357)](_0x18d879){const _0x5eb286=_0x4fab7a;let _0x2f7e24=this[_0x5eb286(0x3f2)][_0x5eb286(0x2ab)](_0x18d879);_0x2f7e24&&(clearTimeout(_0x2f7e24['timeoutId']),this['_blockProgressWatches'][_0x5eb286(0x3dc)](_0x18d879),this[_0x5eb286(0x421)](_0x18d879));}[_0x4fab7a(0x421)](_0xf29f4){const _0x539396=_0x4fab7a;var _0x5d6bda;((_0x5d6bda=this['_timeoutState$'][_0x539396(0x288)])==null?void 0x0:_0x5d6bda[_0x539396(0x343)])===_0xf29f4&&this[_0x539396(0x31a)][_0x539396(0x292)](null);}[_0x4fab7a(0x43d)](_0x440884){const _0x1751c7=_0x4fab7a;if(_0x440884[_0x1751c7(0x2c9)]===p[_0x1751c7(0x414)][_0x1751c7(0x2d6)]&&this[_0x1751c7(0x45d)][_0x1751c7(0x3dc)](_0x440884[_0x1751c7(0x343)]),!this['_isVisibleUnit'](_0x440884['unitId'])){this['_hidePreview'](_0x440884[_0x1751c7(0x343)]);return;}if(_0x440884[_0x1751c7(0x2c9)]===p[_0x1751c7(0x414)]['ERROR']||_0x440884[_0x1751c7(0x37b)]<=0xa){this[_0x1751c7(0x264)](_0x440884[_0x1751c7(0x343)]);return;}if(_0x440884['stage']===p['SnapshotLoadStage'][_0x1751c7(0x3ab)]){this[_0x1751c7(0x1c5)](_0x440884[_0x1751c7(0x343)]);return;}if(_0x440884['stage']===p['SnapshotLoadStage'][_0x1751c7(0x3fb)]&&_0x440884[_0x1751c7(0x2d0)]&&_0x440884['activeSheetId']){let _0x5bfccd=this[_0x1751c7(0x1e1)]();if(!_0x5bfccd)return;this[_0x1751c7(0x3aa)]&&this[_0x1751c7(0x3aa)]!==_0x440884['unitId']&&this[_0x1751c7(0x264)](this[_0x1751c7(0x3aa)]),_0x5bfccd['showSkeleton'](_0x440884[_0x1751c7(0x2d0)],_0x440884[_0x1751c7(0x378)]),this['_previewUnitId']=_0x440884['unitId'],this['_setInteractionBlocked'](!0x0),_0x440884[_0x1751c7(0x425)]&&_0x5bfccd['show'](_0x440884[_0x1751c7(0x2d0)],_0x440884[_0x1751c7(0x378)],_0x440884[_0x1751c7(0x358)]);}}[_0x4fab7a(0x1c5)](_0x674104){const _0x16fb24=_0x4fab7a;if(this[_0x16fb24(0x3aa)]!==_0x674104||this[_0x16fb24(0x45d)][_0x16fb24(0x2b6)](_0x674104))return;let _0x40d3b6=this['_sheetLoadingRenderService'];_0x40d3b6&&(this[_0x16fb24(0x45d)]['add'](_0x674104),_0x40d3b6[_0x16fb24(0x469)](_0x674104,0x2710)['then'](_0x53b716=>{const _0x43ebf6=_0x16fb24;if(this[_0x43ebf6(0x3aa)]!==_0x674104)return;if(_0x53b716){let _0x1384c4=''+Y+_0x674104;this[_0x43ebf6(0x1c0)]['remove'](_0x1384c4),this[_0x43ebf6(0x299)][_0x43ebf6(0x3dc)](_0x1384c4),this[_0x43ebf6(0x3aa)]=void 0x0,this[_0x43ebf6(0x478)](!0x1);return;}let _0x53e77f=''+Y+_0x674104;this[_0x43ebf6(0x1c0)][_0x43ebf6(0x458)](_0x53e77f),this[_0x43ebf6(0x299)][_0x43ebf6(0x3dc)](_0x53e77f),this[_0x43ebf6(0x31a)][_0x43ebf6(0x292)]({'unitId':_0x674104,'content':this[_0x43ebf6(0x35f)]['t'](_0x43ebf6(0x3e4)),'refreshLabel':this[_0x43ebf6(0x35f)]['t']('collaboration-client-ui.snapshotLoading.refresh')});}));}[_0x4fab7a(0x264)](_0x1db48d){const _0x5b34a0=_0x4fab7a;var _0x2d3a0d;this[_0x5b34a0(0x3aa)]===_0x1db48d&&((_0x2d3a0d=this[_0x5b34a0(0x332)])==null||_0x2d3a0d['hide'](_0x1db48d),this['_previewUnitId']=void 0x0,this[_0x5b34a0(0x478)](!0x1));}[_0x4fab7a(0x478)](_0x2f8b22){const _0x39218a=_0x4fab7a;if(_0x2f8b22!==this[_0x39218a(0x219)][_0x39218a(0x288)]){if(_0x2f8b22)this[_0x39218a(0x334)]=this[_0x39218a(0x44c)][_0x39218a(0x3a4)]();else{var _0x1a4790;(_0x1a4790=this[_0x39218a(0x334)])==null||_0x1a4790[_0x39218a(0x418)](),this['_shortcutBlock']=void 0x0;}this[_0x39218a(0x219)][_0x39218a(0x292)](_0x2f8b22);}}['_isVisibleUnit'](_0x523627){const _0xb278a9=_0x4fab7a;let _0x28503b=this[_0xb278a9(0x391)]['getParam'](_0xb278a9(0x1b8));return!_0x28503b||_0x28503b===_0x523627;}[_0x4fab7a(0x1e1)](){const _0x356f61=_0x4fab7a;return this[_0x356f61(0x332)]?this[_0x356f61(0x332)]:(this['_pluginService'][_0x356f61(0x40e)](n[_0x356f61(0x2de)][_0x356f61(0x2df)]),this[_0x356f61(0x228)][_0x356f61(0x2b6)](v[_0x356f61(0x36c)])&&(this[_0x356f61(0x332)]=this['_injector'][_0x356f61(0x2ab)](v['ISheetLoadingRenderService'])),this[_0x356f61(0x332)]);}};X=C([S(0x0,(0x0,n['Inject'])(p[_0x4fab7a(0x34d)])),S(0x1,r['IMessageService']),S(0x2,(0x0,n['Inject'])(n[_0x4fab7a(0x198)])),S(0x3,(0x0,n[_0x4fab7a(0x3bb)])(n[_0x4fab7a(0x2b1)])),S(0x4,(0x0,n['Inject'])(n[_0x4fab7a(0x371)])),S(0x5,r['IUIPartsService']),S(0x6,r[_0x4fab7a(0x2c6)]),S(0x7,H)],X);function Te(_0x509284){const _0x86d652=_0x4fab7a;var _0x117eba,_0x3b5386;let _0x2a40a3=(_0x117eba=_0x509284[_0x86d652(0x1fb)])==null?void 0x0:_0x117eba[_0x86d652(0x2c9)],_0x68e23f=((_0x3b5386=_0x509284[_0x86d652(0x1fb)])==null?void 0x0:_0x3b5386['totalFormulasToCalculate'])||0x0;return _0x2a40a3===h['FormulaExecuteStageType']['START_CALCULATION']&&_0x68e23f>0x0;}function Ee(_0x4b0287){const _0x3e0dcf=_0x4fab7a;return _0x4b0287[_0x3e0dcf(0x267)]===h[_0x3e0dcf(0x432)][_0x3e0dcf(0x1b0)];}let Z=class extends n['Disposable']{constructor(_0xc1309f,_0xb050a9,_0x1cbd48,_0x4230e7,_0x5d4cd7,_0x2ba267,_0x54787c){const _0x2a4d86=_0x4fab7a;super(),this['_messageService']=_0xc1309f,this['_commandService']=_0xb050a9,this[_0x2a4d86(0x1dc)]=_0x1cbd48,this[_0x2a4d86(0x404)]=_0x4230e7,this['_univerInstanceService']=_0x5d4cd7,this['_logService']=_0x2ba267,this[_0x2a4d86(0x35f)]=_0x54787c,x(this,'_pollingInterval',null),x(this,_0x2a4d86(0x21f),0x0),x(this,_0x2a4d86(0x1dd),0x0),x(this,_0x2a4d86(0x353),[]),x(this,_0x2a4d86(0x483),0x0),this['_initCommandInterceptor']();}[_0x4fab7a(0x1e2)](){const _0x3fa215=_0x4fab7a;this[_0x3fa215(0x3b1)](this[_0x3fa215(0x48b)][_0x3fa215(0x1ff)]((_0x452e10,_0x50090a)=>{const _0x44f111=_0x3fa215;var _0x2461b0;if(_0x452e10['id']!==h[_0x44f111(0x3c2)]['id'])return;let _0x41bd68=_0x452e10[_0x44f111(0x2ce)];if(this['_hasFormulaInDirtyRanges']((_0x2461b0=_0x41bd68[_0x44f111(0x3e5)])==null?[]:_0x2461b0)&&!this[_0x44f111(0x36e)]())throw this['_checkAndWaitForCalculationPermission'](_0x452e10,_0x50090a),this['_showGuardMessage'](),new n[(_0x44f111(0x276))]();})),this[_0x3fa215(0x3b1)](this[_0x3fa215(0x48b)][_0x3fa215(0x41e)]((_0x3cbbfc,_0x1c2202)=>{const _0x4f3991=_0x3fa215;if(_0x3cbbfc['id']!==h[_0x4f3991(0x21c)]['id'])return;let _0x3e96c5=_0x3cbbfc[_0x4f3991(0x2ce)];if(Te(_0x3e96c5)){let _0x4ca2c9=(0x0,n[_0x4f3991(0x400)])();this['_taskIds'][_0x4f3991(0x344)](_0x4ca2c9),this[_0x4f3991(0x42a)](_0x4ca2c9);}else{if(Ee(_0x3e96c5)&&this[_0x4f3991(0x353)]['length']>0x0){let _0x1e61cd=this[_0x4f3991(0x353)][_0x4f3991(0x27a)]();this['_releaseCalculationLimit'](_0x1e61cd);}}}));}['dispose'](){const _0x2437c3=_0x4fab7a;super[_0x2437c3(0x418)](),this[_0x2437c3(0x2e3)](),this['_taskIds']=[],this[_0x2437c3(0x1dd)]=0x0,this[_0x2437c3(0x21f)]=0x0,this[_0x2437c3(0x483)]=0x0;}async[_0x4fab7a(0x2a4)](_0x46d8e3,_0xd3d46d){const _0x249067=_0x4fab7a;for(let _0x19ae61=0x0;_0x19ae61<0x1e;_0x19ae61++)try{if(await this['_getFormulaLimitStatus'](),this[_0x249067(0x36e)]()){this['_applyCommand'](_0x46d8e3,_0xd3d46d),this[_0x249067(0x1c0)][_0x249067(0x237)]({'content':this['_localeService']['t'](_0x249067(0x338)),'type':o[_0x249067(0x20a)]['Success']});return;}await new Promise(_0x3b3f1a=>{const _0x845716=_0x249067;this[_0x845716(0x205)]=window[_0x845716(0x29d)](_0x3b3f1a,0x3e8);});}catch(_0x3c6999){this['_logService'][_0x249067(0x435)](_0x3c6999);}this[_0x249067(0x1c0)][_0x249067(0x237)]({'content':this[_0x249067(0x35f)]['t'](_0x249067(0x489)),'type':o[_0x249067(0x20a)]['Error']});}[_0x4fab7a(0x363)](_0x2279ba,_0x377929){const _0x55c903=_0x4fab7a;try{this['_commandService'][_0x55c903(0x361)](_0x2279ba['id'],_0x2279ba[_0x55c903(0x2ce)],_0x377929);}catch(_0x58fc8c){this[_0x55c903(0x349)][_0x55c903(0x435)](_0x58fc8c);}}[_0x4fab7a(0x283)](_0x2b76d1,_0x5e1d65){const _0x7c1145=_0x4fab7a;_0x5e1d65<this[_0x7c1145(0x483)]||(this[_0x7c1145(0x483)]=_0x5e1d65,this['_maxFormulaLimit']=Number[_0x7c1145(0x22e)](_0x2b76d1[_0x7c1145(0x3e3)]),this['_currentUsage']=Number['parseInt'](_0x2b76d1['currentUsage']));}async[_0x4fab7a(0x42a)](_0x5ef1d0){const _0x4cb19c=_0x4fab7a;let _0x33e969=Date[_0x4cb19c(0x2f6)]();try{var _0x5c63b8,_0x147650;let _0xc76f0d=((_0x5c63b8=this[_0x4cb19c(0x1dc)][_0x4cb19c(0x419)](t[_0x4cb19c(0x1a0)]))==null?void 0x0:_0x5c63b8[_0x4cb19c(0x242)])||_0x4cb19c(0x272),_0x3c46f4=(await this[_0x4cb19c(0x404)][_0x4cb19c(0x25d)](_0xc76f0d,{'body':JSON[_0x4cb19c(0x39d)]({'taskId':_0x5ef1d0})}))[_0x4cb19c(0x3a7)];if(((_0x147650=_0x3c46f4[_0x4cb19c(0x435)])==null?void 0x0:_0x147650['code'])!==y[_0x4cb19c(0x33c)]['OK'])return;this[_0x4cb19c(0x283)](_0x3c46f4[_0x4cb19c(0x26f)],_0x33e969);}catch(_0x510c7e){this['_logService'][_0x4cb19c(0x435)](_0x510c7e);}}async[_0x4fab7a(0x37d)](_0x52e721){const _0x4512ec=_0x4fab7a;let _0x3e51c3=Date[_0x4512ec(0x2f6)]();try{var _0x496d8a,_0x121226;let _0x14ab9b=((_0x496d8a=this['_configService'][_0x4512ec(0x419)](t[_0x4512ec(0x1a0)]))==null?void 0x0:_0x496d8a['getFormulaLimitStatusUrl'])||_0x4512ec(0x31f),_0x303b7b=_0x52e721?_0x14ab9b+'?taskId='+encodeURIComponent(_0x52e721):_0x14ab9b,_0x104c8f=(await this[_0x4512ec(0x404)][_0x4512ec(0x2ab)](_0x303b7b))[_0x4512ec(0x3a7)];if(((_0x121226=_0x104c8f[_0x4512ec(0x435)])==null?void 0x0:_0x121226[_0x4512ec(0x220)])!==y[_0x4512ec(0x33c)]['OK'])return;this[_0x4512ec(0x283)](_0x104c8f['limitInfo'],_0x3e51c3);}catch(_0x55b47f){this[_0x4512ec(0x349)][_0x4512ec(0x435)](_0x55b47f);}}async[_0x4fab7a(0x3c7)](_0x5b3b06){const _0x41778e=_0x4fab7a;let _0xcfb367=Date[_0x41778e(0x2f6)]();try{var _0xf82baf,_0x510c34;let _0x1b3c83=((_0xf82baf=this[_0x41778e(0x1dc)]['getConfig'](t[_0x41778e(0x1a0)]))==null?void 0x0:_0xf82baf['releaseFormulaLimitUrl'])||_0x41778e(0x449),_0x2beaca=(await this['_httpService'][_0x41778e(0x25d)](_0x1b3c83,{'body':JSON[_0x41778e(0x39d)]({'taskId':_0x5b3b06})}))[_0x41778e(0x3a7)];if(((_0x510c34=_0x2beaca[_0x41778e(0x435)])==null?void 0x0:_0x510c34[_0x41778e(0x220)])!==y['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x2beaca['limitInfo'],_0xcfb367);}catch(_0x30cd29){this[_0x41778e(0x349)][_0x41778e(0x435)](_0x30cd29);}}['_checkCalculationAvailable'](){const _0x3863a9=_0x4fab7a;return this[_0x3863a9(0x21f)]===0x0?!0x0:this[_0x3863a9(0x21f)]-this[_0x3863a9(0x1dd)]>0x0;}[_0x4fab7a(0x2e3)](){const _0x204a35=_0x4fab7a;this[_0x204a35(0x205)]&&(clearTimeout(this[_0x204a35(0x205)]),this[_0x204a35(0x205)]=null);}[_0x4fab7a(0x304)](){const _0x369994=_0x4fab7a;this['_messageService'][_0x369994(0x237)]({'content':this['_localeService']['t'](_0x369994(0x370)),'type':o[_0x369994(0x20a)]['Loading']});}[_0x4fab7a(0x461)](_0x22e12d){const _0x425854=_0x4fab7a;for(let _0x437ac0 of _0x22e12d){let {unitId:_0x52ec7a,sheetId:_0x5ef456,range:_0xd8673c}=_0x437ac0,_0x5cf3df=this['_univerInstanceService'][_0x425854(0x263)](_0x52ec7a);if(!_0x5cf3df)continue;let _0x505413=_0x5cf3df['getSheetBySheetId'](_0x5ef456);if(!_0x505413)continue;let _0x30a3b7=_0x505413['getCellMatrix']();for(let _0x135f5e=_0xd8673c['startRow'];_0x135f5e<=_0xd8673c[_0x425854(0x3f3)];_0x135f5e++)for(let _0x184fbd=_0xd8673c['startColumn'];_0x184fbd<=_0xd8673c[_0x425854(0x21e)];_0x184fbd++){let _0x4bec56=_0x30a3b7[_0x425854(0x2c8)](_0x135f5e,_0x184fbd);if(_0x4bec56&&((0x0,n['isFormulaString'])(_0x4bec56['f'])||(0x0,n[_0x425854(0x3a8)])(_0x4bec56['si'])))return!0x0;}}return!0x1;}};Z=C([S(0x0,(0x0,n[_0x4fab7a(0x3bb)])(r[_0x4fab7a(0x47a)])),S(0x1,n['ICommandService']),S(0x2,n[_0x4fab7a(0x2b5)]),S(0x3,(0x0,n[_0x4fab7a(0x3bb)])(d['HTTPService'])),S(0x4,n[_0x4fab7a(0x437)]),S(0x5,n['ILogService']),S(0x6,(0x0,n[_0x4fab7a(0x3bb)])(n['LocaleService']))],Z);let De=class extends n[_0x4fab7a(0x26b)]{constructor(_0x168dec,_0x2369ec,_0x4ba5ef){const _0x3aebd7=_0x4fab7a;super(),this[_0x3aebd7(0x1dc)]=_0x168dec,this[_0x3aebd7(0x33a)]=_0x2369ec,this[_0x3aebd7(0x33f)]=_0x4ba5ef,x(this,_0x3aebd7(0x2ee),new Map()),x(this,_0x3aebd7(0x44d),new Map()),x(this,'_disabled',!0x1);}[_0x4fab7a(0x3e7)](){const _0x1760a3=_0x4fab7a;this[_0x1760a3(0x446)]=!0x0;}[_0x4fab7a(0x48d)](){const _0x2ebede=_0x4fab7a;this[_0x2ebede(0x446)]=!0x1;}get['saveTaskMap'](){const _0x5810f4=_0x4fab7a;return this[_0x5810f4(0x44d)];}['dispose'](){const _0x336e7c=_0x4fab7a;this['exhaustSavingTask']()['then'](()=>super[_0x336e7c(0x418)]());}async['loadOfflineData'](_0x2bd01d){const _0x311bfd=_0x4fab7a;return this[_0x311bfd(0x446)]?null:this[_0x311bfd(0x33a)][_0x311bfd(0x3e0)]((0x0,t['getLocalCacheKey'])(_0x2bd01d));}async[_0x4fab7a(0x41a)](_0x8c6dd6,_0x4f889d){const _0x2ec4b7=_0x4fab7a;return!!this[_0x2ec4b7(0x33a)][_0x2ec4b7(0x46a)]((0x0,t['getLocalCacheKey'])(_0x8c6dd6),_0x4f889d);}async[_0x4fab7a(0x1da)](_0x313c09,_0x1b2dcc){const _0x3b7656=_0x4fab7a;var _0x1d4000;let _0x5b23a0=(_0x1d4000=this['_cachedData'][_0x3b7656(0x2ab)](_0x313c09))==null?await this[_0x3b7656(0x33a)][_0x3b7656(0x3e0)]((0x0,t[_0x3b7656(0x487)])(_0x313c09)):_0x1d4000;if(!_0x5b23a0)return;let _0x47c380=Date[_0x3b7656(0x2f6)](),_0x6936d6=new Date(_0x47c380)[_0x3b7656(0x470)]();await this[_0x3b7656(0x33a)][_0x3b7656(0x46a)]((0x0,t[_0x3b7656(0x487)])(_0x313c09)+_0x3b7656(0x308)+_0x47c380,{'reason':_0x1b2dcc,'createdAt':_0x6936d6,'data':_0x5b23a0});}[_0x4fab7a(0x296)](_0x565356,_0x2bbeac,_0x4e68b3,_0x248eb2){const _0x5d3961=_0x4fab7a;let _0x4cfb06=this[_0x5d3961(0x33f)]['getCurrentRevOfUnit'](_0x565356);this[_0x5d3961(0x2ee)][_0x5d3961(0x207)](_0x565356,{'unitID':_0x565356,'type':_0x2bbeac,'awaitingChangeset':_0x4e68b3,'mutations':_0x248eb2,'rev':_0x4cfb06}),this[_0x5d3961(0x44d)][_0x5d3961(0x2b6)](_0x565356)||this[_0x5d3961(0x31b)](_0x565356);}['_scheduleSaving'](_0x15d6ab){const _0x1b562b=_0x4fab7a;let _0x1b009d=this['_getSaveTimeout']();_0x1b009d===0x0?this[_0x1b562b(0x34f)](_0x15d6ab):this['_saveTaskMap'][_0x1b562b(0x207)](_0x15d6ab,window['setTimeout'](()=>this['_saveCache'](_0x15d6ab),_0x1b009d));}['_getSaveTimeout'](){const _0x4fd72b=_0x4fab7a;var _0x1d29cd;return(_0x1d29cd=this[_0x4fd72b(0x1dc)]['getConfig'](t[_0x4fd72b(0x2ba)]))==null?t[_0x4fd72b(0x423)]:_0x1d29cd;}[_0x4fab7a(0x34f)](_0x145a4b){const _0x43665b=_0x4fab7a;let _0x509f35=this[_0x43665b(0x44d)]['get'](_0x145a4b);return _0x509f35!==void 0x0&&window[_0x43665b(0x3af)](_0x509f35),this['_localStorageService']['setItem']((0x0,t[_0x43665b(0x487)])(_0x145a4b),this[_0x43665b(0x2ee)]['get'](_0x145a4b))[_0x43665b(0x285)](()=>this[_0x43665b(0x44d)][_0x43665b(0x3dc)](_0x145a4b));}async[_0x4fab7a(0x197)](){const _0x40b9f8=_0x4fab7a;let _0xc18f88=[];this[_0x40b9f8(0x44d)][_0x40b9f8(0x39c)]((_0x3e7522,_0xde63b3)=>{const _0xcb164a=_0x40b9f8;window['clearTimeout'](_0x3e7522),_0xc18f88['push'](this['_saveCache'](_0xde63b3)[_0xcb164a(0x285)](()=>{const _0x41b7be=_0xcb164a;this['_saveTaskMap'][_0x41b7be(0x3dc)](_0xde63b3);}));}),await Promise[_0x40b9f8(0x448)](_0xc18f88);}};De=C([S(0x0,n[_0x4fab7a(0x2b5)]),S(0x1,n[_0x4fab7a(0x287)]),S(0x2,(0x0,n[_0x4fab7a(0x3bb)])(p['RevisionService']))],De);var Oe=class extends n[_0x4fab7a(0x303)]{constructor(){const _0x5cfc47=_0x4fab7a;super(),x(this,_0x5cfc47(0x4a0),void 0x0),this['urlChange$']=(0x0,i['fromEvent'])(window,_0x5cfc47(0x38d))['pipe']((0x0,i[_0x5cfc47(0x202)])(this[_0x5cfc47(0x48f)]),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i['mapTo'])(void 0x0));}['setParam'](_0x32c71a,_0x50f684,_0xb066a1=!0x1){const _0x4e7859=_0x4fab7a;let _0x5f545f=new URL(window['location'][_0x4e7859(0x407)]);_0x5f545f['searchParams'][_0x4e7859(0x207)](_0x32c71a,_0x50f684),_0xb066a1?window[_0x4e7859(0x492)][_0x4e7859(0x30b)]('','',_0x5f545f[_0x4e7859(0x3ba)]()):window[_0x4e7859(0x492)]['pushState']('','',_0x5f545f['toString']());}[_0x4fab7a(0x278)](_0x5b69bf,_0x1306be=!0x1){const _0x5ae66e=_0x4fab7a;let _0x5cabe5=new URL(window[_0x5ae66e(0x456)]['href']);_0x5cabe5['searchParams'][_0x5ae66e(0x3dc)](_0x5b69bf),_0x1306be?window[_0x5ae66e(0x492)][_0x5ae66e(0x30b)]('','',_0x5cabe5['toString']()):window[_0x5ae66e(0x492)][_0x5ae66e(0x27f)]('','',_0x5cabe5['toString']());}['getParam'](_0x587398){const _0x21924b=_0x4fab7a;var _0x432e80;return(_0x432e80=new URL(window[_0x21924b(0x456)][_0x21924b(0x407)])[_0x21924b(0x356)][_0x21924b(0x2ab)](_0x587398))==null?void 0x0:_0x432e80;}};let Q=class extends n[_0x4fab7a(0x269)]{constructor(_0x374986=ue,_0x1a156b,_0x522c8a,_0x482ac5){const _0x11db3b=_0x4fab7a;super(),this[_0x11db3b(0x479)]=_0x374986,this['_renderManagerService']=_0x1a156b,this[_0x11db3b(0x228)]=_0x522c8a,this['_configService']=_0x482ac5;let {..._0x20f8ad}=(0x0,n[_0x11db3b(0x222)])({},ue,this['_config']);this['_configService'][_0x11db3b(0x2b2)](_0x11db3b(0x403),_0x20f8ad);}[_0x4fab7a(0x46b)](){const _0x51bd10=_0x4fab7a;this['_registerDependencies'](),this[_0x51bd10(0x3e8)]();}[_0x4fab7a(0x440)](){const _0x3f57c5=_0x4fab7a;this[_0x3f57c5(0x1fc)]();}[_0x4fab7a(0x2d2)](){const _0x2d94e2=_0x4fab7a;var _0x5f3eb5;let _0x57df90=[[k],[Z],[H,{'useClass':Oe}],[d['ISocketService'],{'useClass':d['WebSocketService']}],[t[_0x2d94e2(0x2d4)],{'useClass':De}],[w],[T],[V],[F],[U],[X]];this['_config'][_0x2d94e2(0x45f)]!==!0x1&&_0x57df90[_0x2d94e2(0x344)]([K],[W],[G],[j],[q],[E]),this[_0x2d94e2(0x479)][_0x2d94e2(0x475)]&&_0x57df90[_0x2d94e2(0x344)]([J]),(0x0,n[_0x2d94e2(0x2a6)])(this[_0x2d94e2(0x228)],(0x0,n[_0x2d94e2(0x42c)])(_0x57df90,(_0x5f3eb5=this['_config'])==null?void 0x0:_0x5f3eb5['override']));}[_0x4fab7a(0x1fc)](){const _0x239b50=_0x4fab7a;this[_0x239b50(0x479)][_0x239b50(0x45f)]!==!0x1&&this[_0x239b50(0x3b1)](this['_renderManagerService'][_0x239b50(0x306)](n[_0x239b50(0x2de)]['UNIVER_DOC'],[R])),this['disposeWithMe'](this[_0x239b50(0x2b7)][_0x239b50(0x306)](n[_0x239b50(0x2de)][_0x239b50(0x2df)],[z])),this[_0x239b50(0x3b1)](this[_0x239b50(0x2b7)]['registerRenderModule'](n[_0x239b50(0x2de)][_0x239b50(0x399)],[B])),this[_0x239b50(0x3b1)](this['_renderManagerService'][_0x239b50(0x306)](n[_0x239b50(0x2de)]['UNIVER_BOARD'],[I]));}['_initDependencies'](){const _0x40ff55=_0x4fab7a;(0x0,n[_0x40ff55(0x49f)])(this[_0x40ff55(0x228)],[[F],[w],[T],[V],[U],[Z],[X]]),this[_0x40ff55(0x479)]['enableDocumentCollaborationUI']!==!0x1&&(0x0,n[_0x40ff55(0x49f)])(this[_0x40ff55(0x228)],[[q],[E]]),this[_0x40ff55(0x479)]['enableFrontendLog']&&(0x0,n[_0x40ff55(0x49f)])(this[_0x40ff55(0x228)],[[J]]);}};x(Q,_0x4fab7a(0x284),_0x4fab7a(0x3ac)),x(Q,'packageName',ce),x(Q,_0x4fab7a(0x2a3),le),Q=C([(0x0,n[_0x4fab7a(0x460)])(t[_0x4fab7a(0x348)]),S(0x1,u[_0x4fab7a(0x2ed)]),S(0x2,(0x0,n['Inject'])(n[_0x4fab7a(0x2b1)])),S(0x3,n['IConfigService'])],Q);let ke=class extends t[_0x4fab7a(0x35e)]{constructor(_0x34ff79,_0x4112ac,_0x5cfc54,_0x19e0a1,_0xb42ccd){super(_0x34ff79,_0x4112ac,_0x5cfc54,_0x19e0a1,_0xb42ccd);}async['createSocket'](_0x48030f){const _0x356b40=_0x4fab7a;let _0x3b4089=await this[_0x356b40(0x37f)](),_0x21d2fa=this[_0x356b40(0x387)](_0x48030f,_0x3b4089);return this[_0x356b40(0x327)](_0x21d2fa);}[_0x4fab7a(0x387)](_0x4cce5a,_0x1a7c2c){const _0x2921d5=_0x4fab7a;let _0x53d86a=typeof window>'u'?new URL(_0x4cce5a):new URL(_0x4cce5a,window[_0x2921d5(0x456)][_0x2921d5(0x474)]);_0x53d86a[_0x2921d5(0x356)][_0x2921d5(0x207)](_0x2921d5(0x2f4),_0x1a7c2c);let _0x367514=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2921d5(0x456)]['search']);return _0x367514[_0x2921d5(0x2ab)](_0x2921d5(0x251))&&_0x53d86a['searchParams'][_0x2921d5(0x207)]('runId',_0x367514['get'](_0x2921d5(0x251))),_0x53d86a[_0x2921d5(0x3ba)]();}async['_getSessionTicket'](){const _0x15e2a7=_0x4fab7a;var _0x2b76ba,_0x25fbe8,_0x134f1b;let _0x3578bc=this[_0x15e2a7(0x1dc)]['getConfig'](t[_0x15e2a7(0x1a0)]),_0x1bd547=(_0x2b76ba=_0x3578bc==null?void 0x0:_0x3578bc[_0x15e2a7(0x2fc)])==null?t['DEFAULT_WS_SESSION_TICKET_URL']:_0x2b76ba;return(_0x25fbe8=(_0x134f1b=(await this['_httpService']['get'](_0x1bd547,{'headers':{'Content-Type':_0x15e2a7(0x206)}}))[_0x15e2a7(0x3a7)])==null?void 0x0:_0x134f1b['ticket'])==null?'':_0x25fbe8;}};ke=C([S(0x0,(0x0,n[_0x4fab7a(0x3bb)])(n[_0x4fab7a(0x2b1)])),S(0x1,(0x0,n[_0x4fab7a(0x3bb)])(d[_0x4fab7a(0x1c4)])),S(0x2,n['IConfigService']),S(0x3,n[_0x4fab7a(0x3f6)]),S(0x4,p[_0x4fab7a(0x3df)])],ke);let $=class extends n[_0x4fab7a(0x26b)]{constructor(_0x195f2f,_0x2f5a00,_0x37d34e){const _0x26b22=_0x4fab7a;super(),this[_0x26b22(0x274)]=_0x195f2f,this[_0x26b22(0x404)]=_0x2f5a00,this[_0x26b22(0x1dc)]=_0x37d34e;}async[_0x4fab7a(0x1d5)](_0x36e4bd,_0x48385b,_0x79b851,..._0x31d6b1){const _0x4fa9e6=_0x4fab7a;var _0x4a9c7d,_0x1d0ab7,_0x137168,_0x1abea1;let _0x3fdc19=this[_0x4fa9e6(0x274)]['getFocusedUnit']();if(!_0x3fdc19)throw Error(_0x4fa9e6(0x20c));let _0x4c8f3e=((_0x4a9c7d=this[_0x4fa9e6(0x1dc)]['getConfig'](t['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))==null?t[_0x4fa9e6(0x1bf)]:_0x4a9c7d)+'/'+_0x36e4bd+'/run/'+_0x48385b,_0x3a080b={'scriptId':_0x36e4bd,'runId':(_0x1d0ab7=new URL(window[_0x4fa9e6(0x456)][_0x4fa9e6(0x407)])['searchParams'][_0x4fa9e6(0x2ab)](_0x4fa9e6(0x251)))==null?'':_0x1d0ab7,'function':_0x48385b,'unitId':_0x3fdc19['getUnitId'](),'argsOfFunction':JSON[_0x4fa9e6(0x39d)](_0x31d6b1),'invokeId':(_0x137168=_0x79b851[_0x4fa9e6(0x2b4)])==null?'':_0x137168,'executionId':(_0x1abea1=_0x79b851['executionId'])==null?'':_0x1abea1};try{let _0x1ce881=await this[_0x4fa9e6(0x404)][_0x4fa9e6(0x25d)](_0x4c8f3e,{'body':_0x3a080b});return _0x1ce881[_0x4fa9e6(0x3a7)]['error']&&_0x1ce881[_0x4fa9e6(0x3a7)][_0x4fa9e6(0x435)]['code']!==y[_0x4fa9e6(0x33c)]['OK']?_0x4fa9e6(0x204):_0x1ce881[_0x4fa9e6(0x3a7)]['result'];}catch{return _0x4fa9e6(0x204);}}};$=C([S(0x0,n[_0x4fab7a(0x437)]),S(0x1,(0x0,n[_0x4fab7a(0x3bb)])(d[_0x4fab7a(0x1c4)])),S(0x2,n[_0x4fab7a(0x2b5)])],$);const Ae=0x7530,je=_0x4fab7a(0x40d);var Me=class extends n[_0x4fab7a(0x26b)]{constructor(){const _0x19da58=_0x4fab7a;super(),x(this,'_id',(0x0,n[_0x19da58(0x400)])()),x(this,'_selfUnitIDs',new Set()),x(this,_0x19da58(0x246),new Map()),x(this,'_heartbeatTimer',null),x(this,_0x19da58(0x355),new Map()),x(this,_0x19da58(0x394),new Map()),this[_0x19da58(0x40a)]();}[_0x4fab7a(0x418)](){const _0x50f64f=_0x4fab7a;super['dispose'](),this[_0x50f64f(0x355)]['forEach']((_0x5adc12,_0x2feeb8)=>this['_removeClearOtherTimer'](_0x2feeb8)),this[_0x50f64f(0x43c)]&&window[_0x50f64f(0x3d8)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x2daf0e){const _0x9051b=_0x4fab7a;return this[_0x9051b(0x3f9)](_0x2daf0e)[_0x9051b(0x27b)]((0x0,i['distinctUntilChanged'])());}['editingUnit'](_0x378f41){const _0x20ac96=_0x4fab7a;this[_0x20ac96(0x2e6)]['size']===0x0&&this[_0x20ac96(0x472)](),this[_0x20ac96(0x2e6)][_0x20ac96(0x1a2)](_0x378f41),this[_0x20ac96(0x24d)]({'type':0x0,'memberID':this[_0x20ac96(0x2d9)],'unitIDs':[_0x378f41],'isForwarded':!0x1});}[_0x4fab7a(0x44e)](_0x433dec){const _0x28252e=_0x4fab7a;this[_0x28252e(0x2e6)][_0x28252e(0x3dc)](_0x433dec),this[_0x28252e(0x2e6)][_0x28252e(0x32f)]===0x0&&this[_0x28252e(0x43c)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0xbf8503=_0x4fab7a;this[_0xbf8503(0x3b1)]((0x0,n['toDisposable'])((0x0,i[_0xbf8503(0x22b)])(window,'storage')[_0xbf8503(0x3b6)](_0xb2f79e=>{const _0x2f7891=_0xbf8503;if(_0xb2f79e[_0x2f7891(0x2b3)]!==je||!_0xb2f79e[_0x2f7891(0x1bb)])return;let _0xd4c238=JSON['parse'](_0xb2f79e['newValue']);this[_0x2f7891(0x32a)](_0xd4c238);}))),window[_0xbf8503(0x484)](_0xbf8503(0x31c),()=>this[_0xbf8503(0x24d)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0xbf8503(0x23b)](this[_0xbf8503(0x2e6)])}));}[_0x4fab7a(0x32a)](_0x5be299){const _0x5a30ed=_0x4fab7a;switch(_0x5be299[_0x5a30ed(0x1d3)]){case 0x0:this['_handleJoinEvent'](_0x5be299);break;case 0x1:this[_0x5a30ed(0x2b8)](_0x5be299);break;case 0x2:this[_0x5a30ed(0x1a4)](_0x5be299);break;}}[_0x4fab7a(0x485)](_0x362185){let {unitIDs:_0x1bd973,memberID:_0x5d62b1,isForwarded:_0x1b2ff2}=_0x362185;_0x1bd973['forEach'](_0x4edd1f=>{const _0x4a146d=_0x1c7f;if(!_0x1b2ff2&&this[_0x4a146d(0x246)][_0x4a146d(0x2b6)](_0x4edd1f)&&this[_0x4a146d(0x3f9)](_0x4edd1f)['next'](t[_0x4a146d(0x2fa)][_0x4a146d(0x1d6)]),!this[_0x4a146d(0x246)][_0x4a146d(0x2b6)](_0x4edd1f)||!this[_0x4a146d(0x246)]['get'](_0x4edd1f)[_0x4a146d(0x2b6)](_0x5d62b1)){let _0x17cc8e=this[_0x4a146d(0x246)][_0x4a146d(0x2ab)](_0x4edd1f)||new Set();_0x17cc8e[_0x4a146d(0x1a2)](_0x5d62b1),this[_0x4a146d(0x246)][_0x4a146d(0x207)](_0x4edd1f,_0x17cc8e),this[_0x4a146d(0x3a6)](_0x5d62b1);}}),_0x1b2ff2||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4fab7a(0x3a6)](_0x260058){const _0x38cdf8=_0x4fab7a;this['_removeClearOtherTimer'](_0x260058);let _0x285199=window[_0x38cdf8(0x29d)](()=>{const _0x37e607=_0x38cdf8;this[_0x37e607(0x246)][_0x37e607(0x39c)](_0x29aaea=>{const _0x5bb5d7=_0x37e607;_0x29aaea[_0x5bb5d7(0x3dc)](_0x260058);});},Ae*0x2);this['_clearOtherTimers'][_0x38cdf8(0x207)](_0x260058,_0x285199);}['_removeClearOtherTimer'](_0x49f9e0){const _0x3e11be=_0x4fab7a;if(this[_0x3e11be(0x355)]['has'](_0x49f9e0)){let _0x511574=this[_0x3e11be(0x355)]['get'](_0x49f9e0);_0x511574&&window[_0x3e11be(0x3af)](_0x511574),this['_clearOtherTimers'][_0x3e11be(0x207)](_0x49f9e0,null);}}[_0x4fab7a(0x2b8)](_0x237130){const _0x208ac1=_0x4fab7a;let {memberID:_0xfe446f,unitIDs:_0x31d5f4}=_0x237130;_0x31d5f4[_0x208ac1(0x39c)](_0x154126=>{const _0x4e4110=_0x208ac1;var _0xdce954;let _0x390f43=this['_unitOnClients']['get'](_0x154126);_0x390f43&&(_0x390f43[_0x4e4110(0x3dc)](_0xfe446f),(_0xdce954=this[_0x4e4110(0x3f9)](_0x154126))==null||_0xdce954['next'](_0x390f43[_0x4e4110(0x32f)]===0x0?t['UnitStatus'][_0x4e4110(0x1e7)]:t['UnitStatus'][_0x4e4110(0x1d6)]));}),this[_0x208ac1(0x1d7)](_0xfe446f);}['_handleHeartbeatEvent'](_0x3f8f28){const _0x52cbff=_0x4fab7a;this['_scheduleClearOtherTimer'](_0x3f8f28[_0x52cbff(0x2e7)]);}[_0x4fab7a(0x24d)](_0x4cd2e5){localStorage['setItem'](je,JSON['stringify'](_0x4cd2e5));}['_scheduleHeartbeat'](){const _0x10bbd8=_0x4fab7a;this[_0x10bbd8(0x43c)]=window[_0x10bbd8(0x293)](()=>{const _0x394d4e=_0x10bbd8;this['_send']({'type':0x2,'memberID':this[_0x394d4e(0x2d9)]});},Ae);}[_0x4fab7a(0x3f9)](_0x157e9b){const _0x175b09=_0x4fab7a;return this['_unitStatus'][_0x175b09(0x2b6)](_0x157e9b)||this[_0x175b09(0x394)][_0x175b09(0x207)](_0x157e9b,new i[(_0x175b09(0x1d1))](t[_0x175b09(0x2fa)][_0x175b09(0x1e7)])),this[_0x175b09(0x394)][_0x175b09(0x2ab)](_0x157e9b);}};Object['defineProperty'](exports,_0x4fab7a(0x295),{'enumerable':!0x0,'get':function(){return ke;}}),Object[_0x4fab7a(0x402)](exports,_0x4fab7a(0x24a),{'enumerable':!0x0,'get':function(){return w;}}),exports[_0x4fab7a(0x249)]=H,Object[_0x4fab7a(0x402)](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4fab7a(0x26c)]=xe,Object[_0x4fab7a(0x402)](exports,_0x4fab7a(0x226),{'enumerable':!0x0,'get':function(){return Q;}}),exports['WebBrowserSingleActiveUnitService']=Me;
1
+ const _0x43dc4d=_0x196d;(function(_0x3f400d,_0x184743){const _0x302508=_0x196d,_0x2db733=_0x3f400d();while(!![]){try{const _0x29beff=-parseInt(_0x302508(0x1c6))/0x1*(-parseInt(_0x302508(0x29f))/0x2)+parseInt(_0x302508(0x173))/0x3*(-parseInt(_0x302508(0x2dd))/0x4)+parseInt(_0x302508(0x281))/0x5+-parseInt(_0x302508(0x430))/0x6*(-parseInt(_0x302508(0x21e))/0x7)+-parseInt(_0x302508(0x3c5))/0x8*(parseInt(_0x302508(0x26e))/0x9)+parseInt(_0x302508(0x3c7))/0xa+parseInt(_0x302508(0x30a))/0xb;if(_0x29beff===_0x184743)break;else _0x2db733['push'](_0x2db733['shift']());}catch(_0x5ef68a){_0x2db733['push'](_0x2db733['shift']());}}}(_0x1e5c,0x80e6b),Object[_0x43dc4d(0x185)](exports,Symbol[_0x43dc4d(0x175)],{'value':_0x43dc4d(0x343)}));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/design'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration'),d=require('@univerjs-pro/license'),f=require('@univerjs/docs'),p=require('@univerjs/docs-ui'),m=require('@univerjs/engine-render'),h=require('@univerjs/network'),g=require('@univerjs/engine-formula'),_=require('@univerjs/sheets'),v=require('@univerjs-pro/slides-ui'),y=require('@univerjs/sheets-ui'),ee=require('@univerjs/rpc'),b=require('@univerjs/protocol');function te(_0x88e293){const _0x233be9=_0x43dc4d;switch(_0x88e293){case t[_0x233be9(0x151)]['OFFLINE']:return{'icon':(0x0,l[_0x233be9(0x309)])(s[_0x233be9(0x340)],{}),'colorClass':_0x233be9(0x18b),'i18nKey':_0x233be9(0x2ba),'tooltipKey':_0x233be9(0x3e7),'clickable':!0x0,'indicator':_0x233be9(0x2c0)};case t['CollaborationStatus']['CONFLICT']:return{'icon':(0x0,l[_0x233be9(0x309)])(s[_0x233be9(0x340)],{}),'colorClass':_0x233be9(0x28b),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x233be9(0x2c0)};case t[_0x233be9(0x151)][_0x233be9(0x3f6)]:return{'icon':(0x0,l['jsx'])(s[_0x233be9(0x386)],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x233be9(0x2d6),'clickable':!0x1,'indicator':_0x233be9(0x3dd)};case t[_0x233be9(0x151)][_0x233be9(0x180)]:return{'icon':(0x0,l['jsx'])(s[_0x233be9(0x372)],{}),'colorClass':_0x233be9(0x350),'i18nKey':_0x233be9(0x183),'clickable':!0x1,'indicator':_0x233be9(0x2c0)};case t[_0x233be9(0x151)][_0x233be9(0x3f7)]:case t[_0x233be9(0x151)][_0x233be9(0x2a8)]:return{'icon':(0x0,l[_0x233be9(0x309)])(s[_0x233be9(0x386)],{}),'colorClass':_0x233be9(0x458),'i18nKey':_0x233be9(0x357),'clickable':!0x1,'indicator':_0x233be9(0x3dd)};case t[_0x233be9(0x151)][_0x233be9(0x263)]:return{'icon':(0x0,l[_0x233be9(0x309)])(s[_0x233be9(0x386)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x233be9(0x3dd)};case t[_0x233be9(0x151)][_0x233be9(0x391)]:return{'icon':(0x0,l['jsx'])(s[_0x233be9(0x372)],{}),'colorClass':_0x233be9(0x170),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x233be9(0x2c0)};}}function ne(_0x452f3b){const _0x594399=_0x43dc4d;let {status$:_0xc1b49}=_0x452f3b,_0x206cd5=(0x0,r[_0x594399(0x20d)])(_0xc1b49,t[_0x594399(0x151)][_0x594399(0x180)]),_0x2a234a=(0x0,r[_0x594399(0x237)])(n['LocaleService']),_0x5fda36=(0x0,r['useDependency'])(t[_0x594399(0x393)]),_0x54abbe=(0x0,c[_0x594399(0x2d8)])(()=>te(_0x206cd5),[_0x206cd5]),_0x48ccb9=_0x206cd5!==t[_0x594399(0x151)]['OFFLINE'],_0x58ba99=_0x2a234a['t'](_0x54abbe[_0x594399(0x34a)]),_0x56c476=_0x54abbe[_0x594399(0x43d)]?_0x2a234a['t'](_0x54abbe[_0x594399(0x43d)]):_0x58ba99,_0x5d8027=(0x0,c[_0x594399(0x177)])(()=>{const _0x1b1f79=_0x594399;_0x48ccb9||_0x5fda36[_0x1b1f79(0x37f)]();},[_0x48ccb9,_0x5fda36]),_0x55d62=(0x0,c[_0x594399(0x177)])(_0x4f3c7c=>{const _0x3e7a6a=_0x594399;!_0x48ccb9&&(_0x4f3c7c[_0x3e7a6a(0x407)]===_0x3e7a6a(0x43b)||_0x4f3c7c[_0x3e7a6a(0x407)]==='\x20')&&(_0x4f3c7c['preventDefault'](),_0x5fda36[_0x3e7a6a(0x37f)]());},[_0x48ccb9,_0x5fda36]),_0x3de25c=(0x0,l['jsx'])(_0x594399(0x406),{'className':(0x0,o[_0x594399(0x456)])(_0x594399(0x249),_0x594399(0x2b4),_0x54abbe[_0x594399(0x3a1)],{'univer-animate-spin':_0x54abbe['indicator']===_0x594399(0x3dd),'univer-animate-pulse':_0x54abbe[_0x594399(0x43c)]===_0x594399(0x23e)}),'aria-hidden':_0x594399(0x158),'children':_0x54abbe[_0x594399(0x352)]}),_0x54e904=(0x0,l[_0x594399(0x309)])(_0x594399(0x406),{'className':(0x0,o[_0x594399(0x456)])(_0x594399(0x249),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x594399(0x42b),_0x594399(0x38b),_0x594399(0x31c),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x54abbe[_0x594399(0x347)],'univer-cursor-default':!_0x54abbe['clickable']}),'children':_0x3de25c});return _0x54abbe['clickable']?(0x0,l[_0x594399(0x309)])(o[_0x594399(0x34e)],{'title':_0x56c476,'placement':'bottom','children':(0x0,l['jsx'])(_0x594399(0x284),{'type':'button','onClick':_0x5d8027,'onKeyDown':_0x55d62,'className':(0x0,o[_0x594399(0x456)])(_0x594399(0x3a7),'univer-border-none\x20univer-bg-transparent',_0x594399(0x159),'univer-appearance-none'),'aria-label':_0x58ba99+_0x594399(0x1a9)+_0x56c476,'role':_0x594399(0x28f),'aria-live':_0x594399(0x17f),'aria-atomic':_0x594399(0x158),'children':_0x54e904})}):(0x0,l['jsx'])(o[_0x594399(0x34e)],{'title':_0x56c476,'placement':_0x594399(0x27f),'children':(0x0,l[_0x594399(0x309)])(_0x594399(0x223),{'className':(0x0,o[_0x594399(0x456)])(_0x594399(0x3a7),_0x594399(0x2c9),_0x594399(0x159)),'aria-label':_0x58ba99,'role':'status','aria-live':_0x594399(0x17f),'aria-atomic':_0x594399(0x158),'children':_0x54e904})});}function x(_0x235054){'@babel/helpers - typeof';const _0x3744cc=_0x43dc4d;return x=typeof Symbol==_0x3744cc(0x295)&&typeof Symbol['iterator']==_0x3744cc(0x230)?function(_0x52bdfc){return typeof _0x52bdfc;}:function(_0x46e45f){const _0x1ebf25=_0x3744cc;return _0x46e45f&&typeof Symbol==_0x1ebf25(0x295)&&_0x46e45f['constructor']===Symbol&&_0x46e45f!==Symbol[_0x1ebf25(0x3a5)]?'symbol':typeof _0x46e45f;},x(_0x235054);}function re(_0x4a640d,_0x3fcc92){const _0x1eae30=_0x43dc4d;if(x(_0x4a640d)!='object'||!_0x4a640d)return _0x4a640d;var _0x1f0c80=_0x4a640d[Symbol[_0x1eae30(0x3d3)]];if(_0x1f0c80!==void 0x0){var _0x4ffa06=_0x1f0c80[_0x1eae30(0x1e0)](_0x4a640d,_0x3fcc92||_0x1eae30(0x2fe));if(x(_0x4ffa06)!='object')return _0x4ffa06;throw TypeError(_0x1eae30(0x3ed));}return(_0x3fcc92==='string'?String:Number)(_0x4a640d);}function ie(_0x5c6ef3){const _0x4e4a65=_0x43dc4d;var _0x3633d2=re(_0x5c6ef3,'string');return x(_0x3633d2)==_0x4e4a65(0x230)?_0x3633d2:_0x3633d2+'';}function S(_0x5d6a9f,_0x10b7e8,_0x475e18){return(_0x10b7e8=ie(_0x10b7e8))in _0x5d6a9f?Object['defineProperty'](_0x5d6a9f,_0x10b7e8,{'value':_0x475e18,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5d6a9f[_0x10b7e8]=_0x475e18,_0x5d6a9f;}function C(_0x967d38,_0x17f389){return function(_0x29400e,_0x5e2709){_0x17f389(_0x29400e,_0x5e2709,_0x967d38);};}function w(_0x29b73e,_0x315ab9,_0x1a9939,_0x3a8f3b){const _0x4fb300=_0x43dc4d;var _0x2ee578=arguments[_0x4fb300(0x2aa)],_0x1499d8=_0x2ee578<0x3?_0x315ab9:_0x3a8f3b===null?_0x3a8f3b=Object[_0x4fb300(0x2f4)](_0x315ab9,_0x1a9939):_0x3a8f3b,_0xb1ff91;if(typeof Reflect==_0x4fb300(0x3df)&&typeof Reflect[_0x4fb300(0x155)]==_0x4fb300(0x295))_0x1499d8=Reflect[_0x4fb300(0x155)](_0x29b73e,_0x315ab9,_0x1a9939,_0x3a8f3b);else{for(var _0x57df77=_0x29b73e[_0x4fb300(0x2aa)]-0x1;_0x57df77>=0x0;_0x57df77--)(_0xb1ff91=_0x29b73e[_0x57df77])&&(_0x1499d8=(_0x2ee578<0x3?_0xb1ff91(_0x1499d8):_0x2ee578>0x3?_0xb1ff91(_0x315ab9,_0x1a9939,_0x1499d8):_0xb1ff91(_0x315ab9,_0x1a9939))||_0x1499d8);}return _0x2ee578>0x3&&_0x1499d8&&Object['defineProperty'](_0x315ab9,_0x1a9939,_0x1499d8),_0x1499d8;}let T=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x352909,_0x286924,_0xc912a9,_0x1cc07f){const _0x1d2f59=_0x43dc4d;super(),this['_univerInstanceService']=_0x352909,this['_injector']=_0x286924,this['_collaborationController']=_0xc912a9,this[_0x1d2f59(0x196)]=_0x1cc07f,S(this,_0x1d2f59(0x24d),new i[(_0x1d2f59(0x344))](t[_0x1d2f59(0x151)][_0x1d2f59(0x180)])),this['_initStatusComponent'](),this[_0x1d2f59(0x146)]();}[_0x43dc4d(0x146)](){const _0x2c9c17=_0x43dc4d;this[_0x2c9c17(0x365)]((0x0,i[_0x2c9c17(0x418)])(this[_0x2c9c17(0x455)]['focused$'],this[_0x2c9c17(0x455)]['getCurrentTypeOfUnit$'](n[_0x2c9c17(0x35f)]['UNIVER_DOC']),this['_univerInstanceService']['getCurrentTypeOfUnit$'](n['UniverInstanceType'][_0x2c9c17(0x271)]))[_0x2c9c17(0x32a)]((0x0,a[_0x2c9c17(0x1fa)])(()=>ae(this[_0x2c9c17(0x455)])),(0x0,a['distinctUntilChanged'])(),(0x0,i[_0x2c9c17(0x44c)])(_0x1e10e2=>_0x1e10e2?this[_0x2c9c17(0x16d)][_0x2c9c17(0x3ab)](_0x1e10e2):(0x0,i['of'])(null)),(0x0,i['switchMap'])(_0x90a438=>_0x90a438?_0x90a438['status$']:(0x0,i['of'])(t['CollaborationStatus'][_0x2c9c17(0x180)])))[_0x2c9c17(0x36e)](_0x4e908b=>{const _0x4d4d91=_0x2c9c17;this[_0x4d4d91(0x24d)][_0x4d4d91(0x176)](_0x4e908b);}));}['_initStatusComponent'](){const _0x1ef07=_0x43dc4d;this['disposeWithMe'](this[_0x1ef07(0x196)]['registerComponent'](r[_0x1ef07(0x26a)][_0x1ef07(0x21c)],()=>(0x0,r[_0x1ef07(0x2c4)])(se({'status$':this['_status$'][_0x1ef07(0x34b)]()}),this[_0x1ef07(0x360)])));}};T=w([C(0x0,n['IUniverInstanceService']),C(0x1,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x2,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x34d)])),C(0x3,r[_0x43dc4d(0x432)])],T);let E=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x2448a1,_0x9811b6,_0x51aa3c,_0xe3f3d8){const _0x851e6d=_0x43dc4d;super(),this[_0x851e6d(0x455)]=_0x2448a1,this[_0x851e6d(0x360)]=_0x9811b6,this[_0x851e6d(0x16d)]=_0x51aa3c,this[_0x851e6d(0x196)]=_0xe3f3d8,S(this,'_status$',new i['BehaviorSubject'](t[_0x851e6d(0x151)][_0x851e6d(0x180)])),this['_initStatusComponent'](),this['_initStatusListener']();}[_0x43dc4d(0x146)](){const _0x376f80=_0x43dc4d;this[_0x376f80(0x365)]((0x0,i[_0x376f80(0x418)])((0x0,i['of'])(null),this['_univerInstanceService'][_0x376f80(0x35b)](n[_0x376f80(0x35f)][_0x376f80(0x3a3)]))[_0x376f80(0x32a)]((0x0,a['map'])(()=>oe(this[_0x376f80(0x455)])),(0x0,a[_0x376f80(0x38c)])(),(0x0,i[_0x376f80(0x44c)])(_0x49137f=>_0x49137f?this[_0x376f80(0x16d)][_0x376f80(0x3ab)](_0x49137f):(0x0,i['of'])(null)),(0x0,i[_0x376f80(0x44c)])(_0x48ca5f=>_0x48ca5f?_0x48ca5f['status$']:(0x0,i['of'])(t['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x308f40=>{const _0x29e4de=_0x376f80;this[_0x29e4de(0x24d)]['next'](_0x308f40);}));}[_0x43dc4d(0x210)](){const _0x4f5aed=_0x43dc4d;this[_0x4f5aed(0x365)](this[_0x4f5aed(0x196)][_0x4f5aed(0x1be)](e[_0x4f5aed(0x3d8)],()=>(0x0,r[_0x4f5aed(0x2c4)])(se({'status$':this['_status$']['asObservable']()}),this[_0x4f5aed(0x360)])));}};E=w([C(0x0,n[_0x43dc4d(0x148)]),C(0x1,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x2,(0x0,n[_0x43dc4d(0x379)])(t['CollaborationController'])),C(0x3,r[_0x43dc4d(0x432)])],E);function ae(_0x2b87b5){const _0x5eccdc=_0x43dc4d;let _0x3611c7=_0x2b87b5[_0x5eccdc(0x44b)](),_0x2bb107=_0x3611c7==null?void 0x0:_0x3611c7[_0x5eccdc(0x319)]();if(_0x2bb107&&!(0x0,n[_0x5eccdc(0x163)])(_0x2bb107))return _0x2bb107;let _0x2ffde1=_0x2b87b5[_0x5eccdc(0x36c)](n[_0x5eccdc(0x35f)][_0x5eccdc(0x3f9)]),_0x3bce41=_0x2ffde1==null?void 0x0:_0x2ffde1[_0x5eccdc(0x319)]();if(_0x3bce41&&!(0x0,n[_0x5eccdc(0x163)])(_0x3bce41))return _0x3bce41;let _0x43b2ad=_0x2b87b5[_0x5eccdc(0x36c)](n[_0x5eccdc(0x35f)][_0x5eccdc(0x271)]);if(_0x43b2ad)return _0x43b2ad[_0x5eccdc(0x319)]();let _0x465d53=_0x2b87b5[_0x5eccdc(0x1b4)](n[_0x5eccdc(0x35f)]['UNIVER_DOC'])[_0x5eccdc(0x402)](_0x588c82=>!(0x0,n[_0x5eccdc(0x163)])(_0x588c82[_0x5eccdc(0x319)]()));return _0x465d53?_0x465d53[_0x5eccdc(0x319)]():null;}function oe(_0xd5f637){const _0x1e76d1=_0x43dc4d;var _0x2cab89;let _0x447b07=_0xd5f637['getCurrentUnitOfType'](n['UniverInstanceType'][_0x1e76d1(0x3a3)]);return(_0x2cab89=_0x447b07==null?void 0x0:_0x447b07[_0x1e76d1(0x319)]())==null?null:_0x2cab89;}function se(_0x15d4a5){let {status$:_0x4311a7}=_0x15d4a5;return function(){const _0x101d27=_0x196d;return(0x0,l[_0x101d27(0x309)])(ne,{'status$':_0x4311a7});};}var ce=_0x43dc4d(0x236),le='1.0.0-alpha.8';const ue={};let D=class extends n['RxDisposable']{constructor(_0x3dd3af,_0x4bbed6){const _0x456828=_0x43dc4d;super(),this[_0x456828(0x2c5)]=_0x3dd3af,this[_0x456828(0x15e)]=_0x4bbed6,this[_0x456828(0x299)]();}[_0x43dc4d(0x299)](){const _0x3fe651=_0x43dc4d;let _0x3787dd=this;this[_0x3fe651(0x365)](this['_docClipboardService'][_0x3fe651(0x229)]({'onBeforePasteImage':async _0x224092=>{const _0x19371b=_0x3fe651;let _0x5a9dc7=await _0x3787dd[_0x19371b(0x15e)][_0x19371b(0x3ba)](_0x224092);return _0x5a9dc7?{'source':_0x5a9dc7[_0x19371b(0x32c)],'imageSourceType':_0x5a9dc7['imageSourceType']}:null;}}));}};D=w([C(0x0,p[_0x43dc4d(0x364)]),C(0x1,n[_0x43dc4d(0x324)])],D);function de(_0x12995b,_0x33ebb5){const _0x873d72=_0x43dc4d;_0x12995b[_0x873d72(0x1f1)](),_0x12995b[_0x873d72(0x348)]=_0x873d72(0x29b);let _0xbe8a9f=_0x12995b['measureText'](_0x33ebb5)[_0x873d72(0x37d)];return _0x12995b[_0x873d72(0x368)](),Math[_0x873d72(0x29c)](_0xbe8a9f+0x8,0xc8);}function fe(_0x18f5c6,_0x32620f){const _0x1f7e72=_0x43dc4d;var _0x5f4026,_0xe1fd78,_0x1a756c;let {radius:_0xce3d6,width:_0x5d36d7,height:_0x1e8e65}=_0x32620f;_0xce3d6=(_0x5f4026=_0xce3d6)==null?0x0:_0x5f4026,_0x5d36d7=(_0xe1fd78=_0x5d36d7)==null?0x1e:_0xe1fd78,_0x1e8e65=(_0x1a756c=_0x1e8e65)==null?0x1e:_0x1a756c;let _0x164398=0x0,_0x50eace=0x0,_0x512924=0x0;_0x164398=_0x50eace=_0x512924=Math[_0x1f7e72(0x29c)](_0xce3d6,_0x5d36d7/0x2,_0x1e8e65/0x2),_0x18f5c6['beginPath'](),_0x18f5c6[_0x1f7e72(0x193)](_0x164398,0x0),_0x18f5c6['lineTo'](_0x5d36d7-_0x50eace,0x0),_0x18f5c6[_0x1f7e72(0x2e8)](_0x5d36d7-_0x50eace,_0x50eace,_0x50eace,Math['PI']*0x3/0x2,0x0,!0x1),_0x18f5c6[_0x1f7e72(0x1e8)](_0x5d36d7,_0x1e8e65-_0x512924),_0x18f5c6['arc'](_0x5d36d7-_0x512924,_0x1e8e65-_0x512924,_0x512924,0x0,Math['PI']/0x2,!0x1),_0x18f5c6[_0x1f7e72(0x1e8)](0x0,_0x1e8e65),_0x18f5c6[_0x1f7e72(0x1e8)](0x0,_0x164398),_0x18f5c6[_0x1f7e72(0x2e8)](_0x164398,_0x164398,_0x164398,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x18f5c6['closePath'](),_0x32620f[_0x1f7e72(0x3f5)]&&(_0x18f5c6['save'](),_0x18f5c6[_0x1f7e72(0x442)]=_0x32620f[_0x1f7e72(0x3f5)],_0x32620f[_0x1f7e72(0x2f6)]===_0x1f7e72(0x1d4)?_0x18f5c6[_0x1f7e72(0x3f5)]('evenodd'):_0x18f5c6[_0x1f7e72(0x3f5)](),_0x18f5c6['restore']());}var O=class e extends m['Shape']{constructor(_0x1463f3,_0x4e701b){const _0x16eb5f=_0x43dc4d;super(_0x1463f3,_0x4e701b),S(this,'color',void 0x0),S(this,_0x16eb5f(0x258),void 0x0),this['color']=_0x4e701b==null?void 0x0:_0x4e701b[_0x16eb5f(0x242)],this[_0x16eb5f(0x258)]=_0x4e701b==null?void 0x0:_0x4e701b[_0x16eb5f(0x258)];}static['drawWith'](_0x3292c0,_0x49625b){const _0x54ea1b=_0x43dc4d;let {text:_0x57d1d7,color:_0xebbe40}=_0x49625b;_0x3292c0[_0x54ea1b(0x1f1)](),_0x3292c0['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x1d6ef6=_0x3292c0[_0x54ea1b(0x3ca)](_0x57d1d7)[_0x54ea1b(0x37d)];if(fe(_0x3292c0,{'height':0x14,'radius':0x4,'width':de(_0x3292c0,_0x57d1d7),'fill':_0xebbe40,'evented':!0x1}),_0x3292c0[_0x54ea1b(0x442)]=_0x54ea1b(0x325),_0x1d6ef6>0xc0){let _0x16e0a1='',_0x4473a5=0x0;for(let _0x3244fb of _0x57d1d7){let _0x24e008=_0x3292c0[_0x54ea1b(0x3ca)](_0x3244fb)['width'];if(_0x4473a5+_0x24e008<=0xc0-_0x3292c0[_0x54ea1b(0x3ca)]('...')[_0x54ea1b(0x37d)])_0x16e0a1+=_0x3244fb,_0x4473a5+=_0x24e008;else{_0x16e0a1+=_0x54ea1b(0x153);break;}}_0x3292c0[_0x54ea1b(0x411)](_0x16e0a1,0x4,0xf);}else _0x3292c0[_0x54ea1b(0x411)](_0x57d1d7,0x4,0xf);_0x3292c0[_0x54ea1b(0x368)]();}[_0x43dc4d(0x1ba)](_0x22c9f6){const _0x3a96d4=_0x43dc4d;e[_0x3a96d4(0x2c2)](_0x22c9f6,this);}};const k=0x138a;var pe=class extends m[_0x43dc4d(0x265)]{constructor(_0x4163b3,_0x436299){const _0x484b58=_0x43dc4d;super(_0x4163b3,{..._0x436299,'evented':!0x1}),S(this,_0x484b58(0x336),_0x484b58(0x19b)),S(this,_0x484b58(0x253),''),S(this,'_showText',!0x0),_0x436299&&this[_0x484b58(0x29d)](_0x436299);}[_0x43dc4d(0x29d)](_0x26610c){const _0xe3e6a9=_0x43dc4d;var _0xce2a05,_0x280e58,_0x26b0a8,_0x2f5dca,_0x31ec2f,_0x17f664,_0x495edf,_0x4f5827;this[_0xe3e6a9(0x336)]=(_0xce2a05=_0x26610c[_0xe3e6a9(0x242)])==null?this[_0xe3e6a9(0x336)]:_0xce2a05,this['_name']=(_0x280e58=_0x26610c[_0xe3e6a9(0x2c1)])==null?this['_name']:_0x280e58,this['_showText']=(_0x26b0a8=_0x26610c['showText'])==null?this[_0xe3e6a9(0x39b)]:_0x26b0a8,this['evented']=!0x1,this[_0xe3e6a9(0x194)]({'left':(_0x2f5dca=_0x26610c['left'])==null?this[_0xe3e6a9(0x1c5)]:_0x2f5dca,'top':(_0x31ec2f=_0x26610c['top'])==null?this[_0xe3e6a9(0x326)]:_0x31ec2f,'width':(_0x17f664=_0x26610c['width'])==null?this[_0xe3e6a9(0x37d)]:_0x17f664,'height':(_0x495edf=_0x26610c[_0xe3e6a9(0x1d5)])==null?this['height']:_0x495edf,'angle':(_0x4f5827=_0x26610c['angle'])==null?this[_0xe3e6a9(0x25c)]:_0x4f5827});}[_0x43dc4d(0x1ba)](_0x549648){const _0x241f41=_0x43dc4d;_0x549648[_0x241f41(0x1f1)](),_0x549648[_0x241f41(0x303)]=this[_0x241f41(0x336)],_0x549648[_0x241f41(0x1e7)]=this[_0x241f41(0x198)]||1.5,_0x549648[_0x241f41(0x216)]([0x6,0x4]),_0x549648[_0x241f41(0x362)](0x0,0x0,this[_0x241f41(0x37d)],this['height']),_0x549648[_0x241f41(0x368)](),this['_showText']&&(_0x549648['save'](),_0x549648[_0x241f41(0x32f)](0x1,0x0,0x0,0x1,this[_0x241f41(0x37d)],-0x14),O['drawWith'](_0x549648,{'text':this[_0x241f41(0x253)],'color':this[_0x241f41(0x336)]}),_0x549648[_0x241f41(0x368)]());}};const me=[_0x43dc4d(0x1b3),_0x43dc4d(0x435),_0x43dc4d(0x2bd),_0x43dc4d(0x3ae),_0x43dc4d(0x2b8),_0x43dc4d(0x3ad)];var A=class extends n[_0x43dc4d(0x3f1)]{constructor(..._0x17736b){const _0x59b583=_0x43dc4d;super(..._0x17736b),S(this,_0x59b583(0x31b),new Map()),S(this,'_colorIndex',0x0);}[_0x43dc4d(0x1fc)](_0x5dbe59){const _0x22f54a=_0x43dc4d;if(this[_0x22f54a(0x31b)][_0x22f54a(0x14f)](_0x5dbe59))return this['_assignedColors'][_0x22f54a(0x2e2)](_0x5dbe59);let _0x12d31f=me[this[_0x22f54a(0x234)]];return this[_0x22f54a(0x234)]=(this[_0x22f54a(0x234)]+0x1)%me[_0x22f54a(0x2aa)],this['_assignedColors'][_0x22f54a(0x1de)](_0x5dbe59,_0x12d31f),_0x12d31f;}};function he(_0x3c225d){const _0x457490=_0x43dc4d;let _0x12c705;try{_0x12c705=JSON['parse'](_0x3c225d);}catch{return null;}if(typeof _0x12c705!=_0x457490(0x3df)||!_0x12c705)return null;let _0x5b7938=_0x12c705;if(_0x5b7938[_0x457490(0x345)]!==_0x457490(0x1fd)||typeof _0x5b7938['unitId']!='string'||typeof _0x5b7938[_0x457490(0x433)]!=_0x457490(0x437))return null;let _0x40f881=Array[_0x457490(0x152)](_0x5b7938[_0x457490(0x426)])?_0x5b7938[_0x457490(0x426)][_0x457490(0x3e5)](_0x58b95c=>typeof _0x58b95c==_0x457490(0x437)):[],_0x30d56f=typeof _0x5b7938['focusedId']=='string'?_0x5b7938[_0x457490(0x2b7)]:null;return{'kind':_0x457490(0x1fd),'unitId':_0x5b7938[_0x457490(0x219)],'subUnitId':_0x5b7938[_0x457490(0x433)],'selectedIds':_0x40f881,'focusedId':_0x30d56f};}let j=class extends n[_0x43dc4d(0x1e5)]{get[_0x43dc4d(0x42f)](){const _0x2d2b6d=_0x43dc4d;return this[_0x2d2b6d(0x290)]['getValue']();}get[_0x43dc4d(0x3a8)](){const _0xdffed4=_0x43dc4d;return this[_0xdffed4(0x32d)][_0xdffed4(0x211)]();}constructor(_0x1d3a70,_0x3f1d03,_0x46abcc,_0x3be726,_0x58bd42){const _0x526053=_0x43dc4d;super(),this['unitID']=_0x1d3a70,this[_0x526053(0x38f)]=_0x3f1d03,this[_0x526053(0x431)]=_0x46abcc,this[_0x526053(0x35c)]=_0x3be726,this[_0x526053(0x286)]=_0x58bd42,S(this,_0x526053(0x39a),!0x1),S(this,_0x526053(0x299),!0x1),S(this,'_cursorInfo$',new i[(_0x526053(0x344))](new Map())),S(this,_0x526053(0x1a6),this[_0x526053(0x290)][_0x526053(0x34b)]()),S(this,_0x526053(0x32d),new i['BehaviorSubject']([])),S(this,_0x526053(0x3dc),this['_roomMembers$'][_0x526053(0x32a)]((0x0,i['debounceTime'])(0x12c))),S(this,'_updateLocalCursor',(0x0,n[_0x526053(0x240)])(_0x1bd54c=>{const _0x19ec38=_0x526053;let _0x3a50e5=_0x1bd54c[_0x19ec38(0x1e6)];if(!_0x3a50e5||_0x3a50e5[_0x19ec38(0x219)]!==this[_0x19ec38(0x220)])return;let _0x447de5={'kind':_0x19ec38(0x1fd),'unitId':_0x3a50e5[_0x19ec38(0x219)],'subUnitId':_0x3a50e5[_0x19ec38(0x433)],'selectedIds':_0x1bd54c[_0x19ec38(0x426)][_0x19ec38(0x3e5)](_0x2c692c=>typeof _0x2c692c==_0x19ec38(0x437)),'focusedId':_0x1bd54c['focusedId']},_0x41ba36={'eventID':u['CollaborationEvent'][_0x19ec38(0x22f)],'data':{'unitID':this[_0x19ec38(0x220)],'memberID':this['_session'][_0x19ec38(0x254)](),'selection':JSON[_0x19ec38(0x264)](_0x447de5)}};this[_0x19ec38(0x38f)][_0x19ec38(0x387)](_0x41ba36,this[_0x19ec38(0x220)]);},0x64));}[_0x43dc4d(0x453)](){const _0x52d5a8=_0x43dc4d;super[_0x52d5a8(0x453)](),this[_0x52d5a8(0x290)]['next'](new Map()),this[_0x52d5a8(0x290)]['complete'](),this[_0x52d5a8(0x32d)]['next']([]),this[_0x52d5a8(0x32d)]['complete']();}['init'](){const _0xe1ea01=_0x43dc4d;this[_0xe1ea01(0x299)]||(this[_0xe1ea01(0x299)]=!0x0,this[_0xe1ea01(0x38f)][_0xe1ea01(0x375)][_0xe1ea01(0x32a)]((0x0,i[_0xe1ea01(0x2a1)])(this[_0xe1ea01(0x3c8)]))[_0xe1ea01(0x36e)](_0x4cc260=>{const _0x168725=_0xe1ea01;_0x4cc260===t[_0x168725(0x207)]['ONLINE']?this['_toggleOnline']():this[_0x168725(0x15a)]();}),this[_0xe1ea01(0x38f)][_0xe1ea01(0x3f3)][_0xe1ea01(0x32a)]((0x0,i[_0xe1ea01(0x2a1)])(this[_0xe1ea01(0x3c8)]))[_0xe1ea01(0x36e)](_0x3b657d=>{const _0x253cf8=_0xe1ea01;let _0x481694=_0x3b657d['eventID'];_0x481694===u[_0x253cf8(0x38e)][_0x253cf8(0x22f)]&&this['_onCursorUpdate'](_0x3b657d),_0x481694===u['CollaborationEvent'][_0x253cf8(0x298)]&&this[_0x253cf8(0x20a)](_0x3b657d);}),this['_boardElementStateService'][_0xe1ea01(0x335)]['pipe']((0x0,i[_0xe1ea01(0x2a1)])(this[_0xe1ea01(0x3c8)]))[_0xe1ea01(0x36e)](_0x364e8c=>{const _0x11f5ac=_0xe1ea01;this[_0x11f5ac(0x39a)]&&this[_0x11f5ac(0x2f8)](_0x364e8c);}));}[_0x43dc4d(0x43a)](_0x474cda){const _0x5d99c9=_0x43dc4d;var _0x15a632,_0x51aa7a,_0x3aec94,_0x27c41a;let {memberID:_0x5a4819,selection:_0x5b32d4}=_0x474cda[_0x5d99c9(0x2a7)];if(_0x5a4819===((_0x15a632=(_0x51aa7a=this[_0x5d99c9(0x38f)])[_0x5d99c9(0x254)])==null?void 0x0:_0x15a632['call'](_0x51aa7a)))return;let _0xce65e2=he(_0x5b32d4);if(!_0xce65e2||_0xce65e2[_0x5d99c9(0x219)]!==this['unitID'])return;let _0x467a6d=(_0x3aec94=(_0x27c41a=this[_0x5d99c9(0x35c)]['getMember'](this[_0x5d99c9(0x220)],_0x5a4819))==null?void 0x0:_0x27c41a[_0x5d99c9(0x2c1)])==null?_0x5d99c9(0x334):_0x3aec94,_0x43938b={'color':this[_0x5d99c9(0x431)][_0x5d99c9(0x1fc)](_0x5a4819),'name':_0x467a6d,'unitId':_0xce65e2['unitId'],'subUnitId':_0xce65e2[_0x5d99c9(0x433)],'selectedIds':_0xce65e2[_0x5d99c9(0x426)],'focusedId':_0xce65e2['focusedId'],'selection':_0x5b32d4},_0x31a59e=new Map(this[_0x5d99c9(0x42f)]);_0x31a59e['set'](_0x5a4819,_0x43938b),this[_0x5d99c9(0x290)][_0x5d99c9(0x176)](_0x31a59e);}['_onCursorDelete'](_0x506358){const _0x1b52fe=_0x43dc4d;let {memberID:_0x535506}=_0x506358[_0x1b52fe(0x2a7)],_0x1eaaf1=new Map(this[_0x1b52fe(0x42f)]);_0x1eaaf1[_0x1b52fe(0x245)](_0x535506),this['_cursorInfo$']['next'](_0x1eaaf1);}[_0x43dc4d(0x19f)](){const _0x43d16e=_0x43dc4d;this[_0x43d16e(0x39a)]=!0x0,this[_0x43d16e(0x2f8)](this[_0x43d16e(0x286)][_0x43d16e(0x1d3)]());}[_0x43dc4d(0x15a)](){const _0x5c7ed8=_0x43dc4d;this[_0x5c7ed8(0x39a)]=!0x1;}};j=w([C(0x2,(0x0,n[_0x43dc4d(0x379)])(A)),C(0x3,(0x0,n['Inject'])(t[_0x43dc4d(0x381)])),C(0x4,(0x0,n[_0x43dc4d(0x379)])(e[_0x43dc4d(0x441)]))],j);function ge(_0x363f26){const _0x14f34f=_0x43dc4d;let _0x5ef43b='';for(let _0x55be4e of _0x363f26){let {startOffset:_0x109ab7,endOffset:_0xd6042f,isActive:_0xbec5bc,rangeType:_0x1b9182,segmentId:_0x3447f4,segmentPage:_0x15b579}=_0x55be4e;_0x5ef43b[_0x14f34f(0x2aa)]&&(_0x5ef43b+=','),_0x5ef43b+=_0x109ab7+':'+_0xd6042f+':'+(_0xbec5bc?'1':'0')+':'+_0x1b9182+':'+_0x3447f4+':'+_0x15b579;}return _0x5ef43b;}function _e(_0xdabaef){const _0x2270d2=_0x43dc4d;let _0x1c222f=_0xdabaef['split'](','),_0x1204de=[];for(let _0x32b404 of _0x1c222f){let [_0x4ada40,_0x3ac66e,_0x4fcc60,_0xbe1946,_0xea44b2,_0x54253e]=_0x32b404['split'](':');_0x1204de[_0x2270d2(0x39f)]({'startOffset':Number(_0x4ada40),'endOffset':Number(_0x3ac66e),'collapsed':_0x4ada40===_0x3ac66e,'isActive':_0x4fcc60==='1','rangeType':_0xbe1946===n['DOC_RANGE_TYPE'][_0x2270d2(0x3a2)]?n['DOC_RANGE_TYPE'][_0x2270d2(0x3a2)]:n[_0x2270d2(0x15f)][_0x2270d2(0x412)],'segmentId':typeof _0xea44b2=='string'?String(_0xea44b2):'','segmentPage':Number(_0x54253e==null?-0x1:_0x54253e)});}return _0x1204de[_0x2270d2(0x3c0)](_0x3a8c23=>_0x3a8c23[_0x2270d2(0x184)])||(_0x1204de[0x0][_0x2270d2(0x184)]=!0x0),_0x1204de;}var M=class extends n[_0x43dc4d(0x1e5)]{constructor(..._0x502697){const _0x4b39d6=_0x43dc4d;super(..._0x502697),S(this,_0x4b39d6(0x280),new i[(_0x4b39d6(0x344))](null)),S(this,'collabCursorState$',this[_0x4b39d6(0x280)][_0x4b39d6(0x34b)]());}[_0x43dc4d(0x205)](_0x4f0835){const _0xe0889c=_0x43dc4d;let {unitID:_0x4591fc,memberID:_0x4b92fe,textRanges:_0x585d15}=_0x4f0835,_0x507449=ge(_0x585d15);if(_0x507449==='')return;let _0x36ffbb={'unitID':_0x4591fc,'memberID':_0x4b92fe,'selection':_0x507449};this[_0xe0889c(0x280)][_0xe0889c(0x176)](_0x36ffbb);}};let N=class extends n[_0x43dc4d(0x1e5)]{get['cursorInfo'](){const _0x39e07e=_0x43dc4d;return this[_0x39e07e(0x290)]['getValue']();}get[_0x43dc4d(0x3a8)](){const _0xb29193=_0x43dc4d;return this[_0xb29193(0x32d)][_0xb29193(0x211)]();}constructor(_0x3e37f4,_0x352f8d,_0x4c7d60,_0x349aad,_0x346c2a,_0x30d389,_0x17bf5a,_0x11e5ed,_0x8e2a08){const _0x18f7e7=_0x43dc4d;super(),this[_0x18f7e7(0x220)]=_0x3e37f4,this[_0x18f7e7(0x38f)]=_0x352f8d,this[_0x18f7e7(0x360)]=_0x4c7d60,this[_0x18f7e7(0x431)]=_0x349aad,this[_0x18f7e7(0x35c)]=_0x346c2a,this['_syncEditingCollabCursorService']=_0x30d389,this[_0x18f7e7(0x2bb)]=_0x17bf5a,this[_0x18f7e7(0x455)]=_0x11e5ed,this[_0x18f7e7(0x300)]=_0x8e2a08,S(this,_0x18f7e7(0x39a),!0x1),S(this,_0x18f7e7(0x299),!0x1),S(this,_0x18f7e7(0x290),new i['BehaviorSubject'](new Map())),S(this,'cursorInfo$',this[_0x18f7e7(0x290)][_0x18f7e7(0x34b)]()),S(this,_0x18f7e7(0x32d),new i[(_0x18f7e7(0x344))]([])),S(this,_0x18f7e7(0x3dc),this[_0x18f7e7(0x32d)][_0x18f7e7(0x32a)]((0x0,i['debounceTime'])(0x12c))),S(this,'_updateLocalCursor',(0x0,n['debounce'])(_0x8d58ce=>{const _0x31a02d=_0x18f7e7;let _0x761d11={'eventID':u[_0x31a02d(0x38e)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x31a02d(0x38f)]['getMemberID'](),'selection':ge(_0x8d58ce)}};this[_0x31a02d(0x38f)][_0x31a02d(0x387)](_0x761d11,this['unitID']);},0x64));}[_0x43dc4d(0x453)](){const _0x275050=_0x43dc4d;super[_0x275050(0x453)](),this['_cursorInfo$']['next'](new Map()),this[_0x275050(0x290)]['complete'](),this[_0x275050(0x32d)][_0x275050(0x176)]([]),this['_roomMembers$'][_0x275050(0x2ca)]();}[_0x43dc4d(0x318)](){const _0x5b29dd=_0x43dc4d;this[_0x5b29dd(0x299)]||(this[_0x5b29dd(0x299)]=!0x0,this[_0x5b29dd(0x38f)][_0x5b29dd(0x375)][_0x5b29dd(0x32a)]((0x0,i[_0x5b29dd(0x2a1)])(this[_0x5b29dd(0x3c8)]))['subscribe'](_0x5b1e5c=>{const _0x572825=_0x5b29dd;_0x5b1e5c===t[_0x572825(0x207)][_0x572825(0x301)]?this[_0x572825(0x19f)]():this[_0x572825(0x15a)]();}),this[_0x5b29dd(0x38f)][_0x5b29dd(0x3f3)][_0x5b29dd(0x32a)]((0x0,i[_0x5b29dd(0x2a1)])(this['dispose$']))[_0x5b29dd(0x36e)](_0x415c33=>{const _0x2c000c=_0x5b29dd;let _0x3321c0=_0x415c33[_0x2c000c(0x1b1)];_0x3321c0===u[_0x2c000c(0x38e)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x415c33),_0x3321c0===u[_0x2c000c(0x38e)][_0x2c000c(0x298)]&&this[_0x2c000c(0x20a)](_0x415c33);}),this[_0x5b29dd(0x365)](this[_0x5b29dd(0x300)][_0x5b29dd(0x3b2)](_0x2d07f9=>{const _0x29e6ee=_0x5b29dd;let _0x48af9d=_0x2d07f9[_0x29e6ee(0x22c)];_0x48af9d!=null&&this[_0x29e6ee(0x39a)]&&_0x2d07f9['id']===f[_0x29e6ee(0x417)]['id']&&_0x48af9d[_0x29e6ee(0x219)]===this[_0x29e6ee(0x220)]&&_0x48af9d[_0x29e6ee(0x1a7)]===!0x1&&_0x48af9d['ranges']['length']>0x0&&this[_0x29e6ee(0x2f8)](_0x48af9d[_0x29e6ee(0x389)]);})),this[_0x5b29dd(0x164)][_0x5b29dd(0x37e)][_0x5b29dd(0x32a)]((0x0,i[_0x5b29dd(0x2a1)])(this[_0x5b29dd(0x3c8)]))[_0x5b29dd(0x36e)](_0x320eee=>{const _0x2f0960=_0x5b29dd;if((_0x320eee==null?void 0x0:_0x320eee[_0x2f0960(0x220)])!==this['unitID'])return;let _0x419b4f={'eventID':u[_0x2f0960(0x38e)]['UPDATE_CURSOR'],'data':_0x320eee};this['_onCursorUpdate'](_0x419b4f);}),this[_0x5b29dd(0x365)](this['_commandService'][_0x5b29dd(0x3b2)](_0x3672e9=>{const _0x4cf80a=_0x5b29dd;if(_0x3672e9[_0x4cf80a(0x22c)]==null)return;let _0x173128=_0x3672e9[_0x4cf80a(0x22c)];if(_0x3672e9['id']!==f[_0x4cf80a(0x1a3)]['id']||_0x173128[_0x4cf80a(0x219)]!==this[_0x4cf80a(0x220)])return;let _0x27b280={'id':_0x4cf80a(0x226),'params':_0x173128},_0x3fd3d8=this[_0x4cf80a(0x42f)];for(let [_0x452d97,_0x495410]of _0x3fd3d8){let _0x3c41bc={'id':_0x4cf80a(0x226),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x495410[_0x4cf80a(0x389)]}},_0x4fcbd1=this[_0x4cf80a(0x2bb)][_0x4cf80a(0x256)](_0x27b280,_0x3c41bc,!0x1);if((0x0,u[_0x4cf80a(0x3ea)])(_0x4fcbd1))throw _0x4fcbd1[_0x4cf80a(0x3e2)];_0x3fd3d8['set'](_0x452d97,{..._0x495410,'ranges':_0x4fcbd1[_0x4cf80a(0x3ec)][_0x4cf80a(0x22c)][_0x4cf80a(0x374)]});}queueMicrotask(()=>{const _0x14827c=_0x4cf80a;this[_0x14827c(0x290)][_0x14827c(0x176)](_0x3fd3d8);});})));}[_0x43dc4d(0x43a)](_0x2b00c4){const _0x4b3161=_0x43dc4d;var _0x518a7a,_0xecab1c;let {memberID:_0x317cf8,selection:_0x487997}=_0x2b00c4['data'],_0x26c696=_e(_0x487997),_0x180b02=(_0x518a7a=(_0xecab1c=this[_0x4b3161(0x35c)]['getMember'](this[_0x4b3161(0x220)],_0x317cf8))==null?void 0x0:_0xecab1c['name'])==null?_0x4b3161(0x334):_0x518a7a,_0x1cd0d4={'color':this[_0x4b3161(0x431)][_0x4b3161(0x1fc)](_0x317cf8),'name':_0x180b02,'ranges':_0x26c696},_0x352086=this[_0x4b3161(0x42f)];_0x352086[_0x4b3161(0x1de)](_0x317cf8,_0x1cd0d4),this[_0x4b3161(0x290)][_0x4b3161(0x176)](_0x352086);}[_0x43dc4d(0x20a)](_0x48c836){const _0x3c005e=_0x43dc4d;let {memberID:_0x2f7c85}=_0x48c836[_0x3c005e(0x2a7)],_0x4c7693=this['cursorInfo'];_0x4c7693[_0x3c005e(0x245)](_0x2f7c85),this[_0x3c005e(0x290)][_0x3c005e(0x176)](_0x4c7693);}['_toggleOnline'](){const _0x47dd84=_0x43dc4d;var _0x45f1e4;if(this['_online']=!0x0,((_0x45f1e4=this[_0x47dd84(0x455)]['getFocusedUnit']())==null?void 0x0:_0x45f1e4[_0x47dd84(0x319)]())!==this[_0x47dd84(0x220)])return;let _0x22c2f1=this['_injector'][_0x47dd84(0x2e2)](f['DocSelectionManagerService'])[_0x47dd84(0x1f6)]();Array[_0x47dd84(0x152)](_0x22c2f1)&&_0x22c2f1[_0x47dd84(0x2aa)]>0x0&&this[_0x47dd84(0x2f8)](_0x22c2f1);}[_0x43dc4d(0x15a)](){const _0x175218=_0x43dc4d;this[_0x175218(0x39a)]=!0x1;}};N=w([C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x3,(0x0,n['Inject'])(A)),C(0x4,(0x0,n['Inject'])(t[_0x43dc4d(0x381)])),C(0x5,(0x0,n[_0x43dc4d(0x379)])(M)),C(0x6,u['ITransformService']),C(0x7,n['IUniverInstanceService']),C(0x8,n[_0x43dc4d(0x27c)])],N);const ve=()=>{let _0x23bd8f=[],_0x38eb2f=!0x1;return _0x4066aa=>{_0x23bd8f['push'](_0x4066aa),_0x38eb2f||(_0x38eb2f=!0x0,setTimeout(()=>{_0x23bd8f['forEach'](_0x528354=>_0x528354()),_0x23bd8f=[],_0x38eb2f=!0x1;}));};};let P=class extends n[_0x43dc4d(0x1e5)]{get[_0x43dc4d(0x42f)](){const _0x1ba0e0=_0x43dc4d;return this['_cursorInfo$'][_0x1ba0e0(0x211)]();}get[_0x43dc4d(0x3a8)](){const _0x188523=_0x43dc4d;return this[_0x188523(0x32d)][_0x188523(0x211)]();}constructor(_0x23fc15,_0x54db38,_0x51f1f5,_0x5f0739,_0x3108f7,_0x40f7c7,_0xaa37a4,_0x27de59){const _0x4381ac=_0x43dc4d;super(),this[_0x4381ac(0x220)]=_0x23fc15,this[_0x4381ac(0x38f)]=_0x54db38,this[_0x4381ac(0x360)]=_0x51f1f5,this[_0x4381ac(0x431)]=_0x5f0739,this[_0x4381ac(0x35c)]=_0x3108f7,this[_0x4381ac(0x455)]=_0x40f7c7,this[_0x4381ac(0x300)]=_0xaa37a4,this['_refRangeService']=_0x27de59,S(this,'_online',!0x1),S(this,_0x4381ac(0x299),!0x1),S(this,_0x4381ac(0x290),new i[(_0x4381ac(0x344))](new Map())),S(this,'cursorInfo$',this[_0x4381ac(0x290)]['asObservable']()),S(this,'_roomMembers$',new i[(_0x4381ac(0x344))]([])),S(this,'roomMembers$',this[_0x4381ac(0x32d)][_0x4381ac(0x32a)]((0x0,i[_0x4381ac(0x436)])(0x12c))),S(this,'_updateLocalCursor',(0x0,n[_0x4381ac(0x240)])((_0x159590,_0x50c5e9)=>{const _0x130d82=_0x4381ac;let _0x231cbb={'eventID':u[_0x130d82(0x38e)][_0x130d82(0x22f)],'data':{'unitID':this[_0x130d82(0x220)],'memberID':this[_0x130d82(0x38f)][_0x130d82(0x254)](),'selection':(0x0,g[_0x130d82(0x337)])(_0x159590,_0x50c5e9[_0x130d82(0x218)])}};this[_0x130d82(0x38f)]['send'](_0x231cbb,this['unitID']);},0x64));}[_0x43dc4d(0x453)](){const _0x357675=_0x43dc4d;super[_0x357675(0x453)](),this[_0x357675(0x290)]['next'](new Map()),this[_0x357675(0x290)][_0x357675(0x2ca)](),this[_0x357675(0x32d)][_0x357675(0x176)]([]),this[_0x357675(0x32d)]['complete']();}['init'](){const _0x3ac37e=_0x43dc4d;this[_0x3ac37e(0x299)]||(this[_0x3ac37e(0x299)]=!0x0,this['_session']['sessionStatus$']['pipe']((0x0,i['takeUntil'])(this[_0x3ac37e(0x3c8)]))['subscribe'](_0x4c9eab=>{const _0x39adc5=_0x3ac37e;_0x4c9eab===t[_0x39adc5(0x207)][_0x39adc5(0x301)]?this['_toggleOnline']():this[_0x39adc5(0x15a)]();}),this[_0x3ac37e(0x38f)]['event$'][_0x3ac37e(0x32a)]((0x0,i[_0x3ac37e(0x2a1)])(this[_0x3ac37e(0x3c8)]))[_0x3ac37e(0x36e)](_0x420873=>{const _0x23eef5=_0x3ac37e;let _0x3740bc=_0x420873['eventID'];_0x3740bc===u['CollaborationEvent'][_0x23eef5(0x22f)]&&this[_0x23eef5(0x43a)](_0x420873),_0x3740bc===u[_0x23eef5(0x38e)][_0x23eef5(0x298)]&&this['_onCursorDelete'](_0x420873);}),this[_0x3ac37e(0x20b)](),this['disposeWithMe'](this['_commandService'][_0x3ac37e(0x3b2)](_0x2204b3=>{const _0x1d6bdf=_0x3ac37e;if(this[_0x1d6bdf(0x39a)]&&_0x2204b3['id']===_['SetSelectionsOperation']['id']&&_0x2204b3[_0x1d6bdf(0x22c)][_0x1d6bdf(0x219)]===this[_0x1d6bdf(0x220)]){let _0x8399ab=_0x2204b3['params'];this[_0x1d6bdf(0x2f8)](_0x8399ab[_0x1d6bdf(0x433)],_0x8399ab[_0x1d6bdf(0x1f0)][0x0]);}})));}[_0x43dc4d(0x43a)](_0x428fb9){const _0x473c5d=_0x43dc4d;var _0x2559d2,_0x943829;let {memberID:_0x52c203,selection:_0xc04fb7}=_0x428fb9[_0x473c5d(0x2a7)],{sheetName:_0x2caf83,range:_0x473fb0}=(0x0,g[_0x473c5d(0x261)])(_0xc04fb7),_0x4eff54={'name':(_0x2559d2=(_0x943829=this[_0x473c5d(0x35c)][_0x473c5d(0x1b2)](this[_0x473c5d(0x220)],_0x52c203))==null?void 0x0:_0x943829['name'])==null?_0x473c5d(0x334):_0x2559d2,'range':this[_0x473c5d(0x195)](_0x2caf83,_0x473fb0),'sheetID':_0x2caf83,'color':this[_0x473c5d(0x431)]['assignAColorForMemberID'](_0x52c203),'selection':_0xc04fb7},_0x1a574a=this[_0x473c5d(0x42f)];_0x1a574a[_0x473c5d(0x1de)](_0x52c203,_0x4eff54),this['_cursorInfo$']['next'](_0x1a574a);}[_0x43dc4d(0x20a)](_0x42ff8f){const _0x170224=_0x43dc4d;let {memberID:_0x20bc25}=_0x42ff8f['data'],_0x82410e=this['cursorInfo'];_0x82410e[_0x170224(0x245)](_0x20bc25),this['_cursorInfo$']['next'](_0x82410e);}['_getMergeRange'](_0x2f9b2,_0x22c9e5){const _0x103cc9=_0x43dc4d;var _0x3f90fe;let _0x168191=(_0x3f90fe=this[_0x103cc9(0x455)]['getUnit'](this[_0x103cc9(0x220)],n[_0x103cc9(0x35f)][_0x103cc9(0x271)]))==null||(_0x3f90fe=_0x3f90fe['getSheetBySheetId'](_0x2f9b2))==null?void 0x0:_0x3f90fe[_0x103cc9(0x3bd)]();return(_0x168191==null?void 0x0:_0x168191[_0x103cc9(0x402)](_0x2885b6=>n[_0x103cc9(0x33b)][_0x103cc9(0x446)](_0x2885b6,_0x22c9e5)))||_0x22c9e5;}[_0x43dc4d(0x20b)](){const _0x596afb=_0x43dc4d;let _0x43fa9b=new n[(_0x596afb(0x3cb))](),_0x2040ba=ve(),_0x39b041=()=>{const _0x41ed2c=_0x596afb;_0x43fa9b[_0x41ed2c(0x453)]();let _0x5cc835=(_0x216b7c,_0x38120f,_0x120f1e,_0x47899e)=>{const _0xd3f401=_0x41ed2c;let _0x234219=[];switch(_0x216b7c['id']){case _[_0xd3f401(0x14b)][_0xd3f401(0x2f5)]:_0x234219=(0x0,_[_0xd3f401(0x397)])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x30e)]:_0x234219=(0x0,_[_0xd3f401(0x255)])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x398)]:_0x234219=(0x0,_['handleInsertCol'])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x2a6)]:_0x234219=(0x0,_[_0xd3f401(0x3d1)])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x27b)]:_0x234219=(0x0,_['handleInsertRangeMoveRight'])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x36d)]:_0x234219=(0x0,_[_0xd3f401(0x3ff)])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)]['MoveRangeCommandId']:_0x234219=(0x0,_[_0xd3f401(0x1b5)])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x392)]:_0x234219=(0x0,_['handleIRemoveCol'])(_0x216b7c,_0x47899e);break;case _['EffectRefRangId'][_0xd3f401(0x1b8)]:_0x234219=(0x0,_['handleIRemoveRow'])(_0x216b7c,_0x47899e);break;}let _0x7c8ed3=(0x0,_[_0xd3f401(0x22a)])(_0x234219,_0x47899e),_0x5b8ecd=this[_0xd3f401(0x42f)][_0xd3f401(0x2e2)](_0x38120f);if(_0x5b8ecd&&_0x7c8ed3){let _0x132ff8={..._0x5b8ecd,'range':_0x7c8ed3};this['cursorInfo'][_0xd3f401(0x1de)](_0x38120f,_0x132ff8),_0x2040ba(()=>{const _0x566de5=_0xd3f401;let _0xe4ba57=this[_0x566de5(0x3d4)]['registerRefRange'](_0x7c8ed3,_0x4eeee6=>(_0xe4ba57[_0x566de5(0x453)](),_0x5cc835(_0x4eeee6,_0x38120f,_0x120f1e,_0x7c8ed3)));_0x43fa9b[_0x566de5(0x1a1)](_0xe4ba57);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x41ed2c(0x24a)]((_0x445b1b,_0xcdd84f)=>{const _0x5e4184=_0x41ed2c;let {range:_0x4ab255,sheetID:_0x43b091}=_0x445b1b,_0x5de25f=this[_0x5e4184(0x3d4)][_0x5e4184(0x269)](_0x4ab255,_0x5beea6=>(_0x5de25f[_0x5e4184(0x453)](),_0x5cc835(_0x5beea6,_0xcdd84f,_0x43b091,_0x4ab255)));_0x43fa9b[_0x5e4184(0x1a1)](_0x5de25f);});};this[_0x596afb(0x365)]((0x0,n[_0x596afb(0x2f2)])(this[_0x596afb(0x290)][_0x596afb(0x36e)](()=>{_0x39b041();})));}[_0x43dc4d(0x19f)](){const _0x51bda3=_0x43dc4d;var _0xc7aab1,_0x1c201c;if(this['_online']=!0x0,((_0xc7aab1=this['_univerInstanceService'][_0x51bda3(0x44b)]())==null?void 0x0:_0xc7aab1['getUnitId']())!==this['unitID'])return;let _0xf08643=(_0x1c201c=this[_0x51bda3(0x360)][_0x51bda3(0x2e2)](_['SheetsSelectionsService'])[_0x51bda3(0x2c3)]())==null?void 0x0:_0x1c201c[0x0],_0x3bf094=this[_0x51bda3(0x455)][_0x51bda3(0x36c)](n[_0x51bda3(0x35f)][_0x51bda3(0x271)])['getActiveSheet']();_0xf08643&&_0x3bf094&&this[_0x51bda3(0x2f8)](_0x3bf094['getSheetId'](),_0xf08643);}[_0x43dc4d(0x15a)](){const _0x523430=_0x43dc4d;this[_0x523430(0x39a)]=!0x1;}};P=w([C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x3,(0x0,n[_0x43dc4d(0x379)])(A)),C(0x4,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x381)])),C(0x5,n[_0x43dc4d(0x148)]),C(0x6,n[_0x43dc4d(0x27c)]),C(0x7,(0x0,n[_0x43dc4d(0x379)])(_['RefRangeService']))],P);function ye(_0x81562d){const _0x1db8ea=_0x43dc4d;let _0xe263a0;try{_0xe263a0=JSON[_0x1db8ea(0x367)](_0x81562d);}catch{return null;}if(typeof _0xe263a0!=_0x1db8ea(0x3df)||!_0xe263a0)return null;let _0x7763eb=_0xe263a0;if(_0x7763eb[_0x1db8ea(0x345)]!=='slide-element-selection'||typeof _0x7763eb[_0x1db8ea(0x219)]!=_0x1db8ea(0x437)||typeof _0x7763eb['subUnitId']!='string')return null;let _0x6d669a=Array[_0x1db8ea(0x152)](_0x7763eb['selectedIds'])?_0x7763eb[_0x1db8ea(0x426)][_0x1db8ea(0x3e5)](_0x4d6327=>typeof _0x4d6327==_0x1db8ea(0x437)):[],_0x556ae6=typeof _0x7763eb[_0x1db8ea(0x2b7)]==_0x1db8ea(0x437)?_0x7763eb[_0x1db8ea(0x2b7)]:null;return{'kind':_0x1db8ea(0x331),'unitId':_0x7763eb['unitId'],'subUnitId':_0x7763eb[_0x1db8ea(0x433)],'selectedIds':_0x6d669a,'focusedId':_0x556ae6};}let F=class extends n[_0x43dc4d(0x1e5)]{get[_0x43dc4d(0x42f)](){const _0x27abb0=_0x43dc4d;return this[_0x27abb0(0x290)][_0x27abb0(0x211)]();}get[_0x43dc4d(0x3a8)](){const _0x4a5c64=_0x43dc4d;return this[_0x4a5c64(0x32d)]['getValue']();}constructor(_0x112f87,_0x426660,_0x2531c7,_0x25d4a2,_0x5c6b04){const _0x167741=_0x43dc4d;super(),this[_0x167741(0x220)]=_0x112f87,this[_0x167741(0x38f)]=_0x426660,this[_0x167741(0x431)]=_0x2531c7,this[_0x167741(0x35c)]=_0x25d4a2,this['_slideDrawingStateService']=_0x5c6b04,S(this,_0x167741(0x39a),!0x1),S(this,'_init',!0x1),S(this,_0x167741(0x290),new i[(_0x167741(0x344))](new Map())),S(this,_0x167741(0x1a6),this[_0x167741(0x290)][_0x167741(0x34b)]()),S(this,_0x167741(0x32d),new i[(_0x167741(0x344))]([])),S(this,_0x167741(0x3dc),this[_0x167741(0x32d)][_0x167741(0x32a)]((0x0,i[_0x167741(0x436)])(0x12c))),S(this,_0x167741(0x2f8),(0x0,n[_0x167741(0x240)])(_0xfbf4ac=>{const _0x317d5f=_0x167741;let _0x3c9bab=_0xfbf4ac[_0x317d5f(0x1e6)];if(!_0x3c9bab||_0x3c9bab[_0x317d5f(0x219)]!==this[_0x317d5f(0x220)])return;let _0x4a0b08={'kind':_0x317d5f(0x331),'unitId':_0x3c9bab['unitId'],'subUnitId':_0x3c9bab[_0x317d5f(0x433)],'selectedIds':_0xfbf4ac[_0x317d5f(0x426)]['filter'](_0x5978b9=>typeof _0x5978b9==_0x317d5f(0x437)),'focusedId':_0xfbf4ac['focusedId']},_0x25bc0e={'eventID':u[_0x317d5f(0x38e)][_0x317d5f(0x22f)],'data':{'unitID':this[_0x317d5f(0x220)],'memberID':this[_0x317d5f(0x38f)]['getMemberID'](),'selection':JSON['stringify'](_0x4a0b08)}};this[_0x317d5f(0x38f)][_0x317d5f(0x387)](_0x25bc0e,this[_0x317d5f(0x220)]);},0x64));}[_0x43dc4d(0x453)](){const _0x42056d=_0x43dc4d;super[_0x42056d(0x453)](),this['_cursorInfo$']['next'](new Map()),this[_0x42056d(0x290)][_0x42056d(0x2ca)](),this['_roomMembers$'][_0x42056d(0x176)]([]),this[_0x42056d(0x32d)][_0x42056d(0x2ca)]();}[_0x43dc4d(0x318)](){const _0x34a899=_0x43dc4d;this[_0x34a899(0x299)]||(this['_init']=!0x0,this[_0x34a899(0x38f)][_0x34a899(0x375)]['pipe']((0x0,i['takeUntil'])(this[_0x34a899(0x3c8)]))[_0x34a899(0x36e)](_0x556f3c=>{const _0x296da4=_0x34a899;_0x556f3c===t[_0x296da4(0x207)]['ONLINE']?this[_0x296da4(0x19f)]():this[_0x296da4(0x15a)]();}),this[_0x34a899(0x38f)][_0x34a899(0x3f3)][_0x34a899(0x32a)]((0x0,i['takeUntil'])(this[_0x34a899(0x3c8)]))[_0x34a899(0x36e)](_0x334ff0=>{const _0x13214c=_0x34a899;let _0x2a8801=_0x334ff0[_0x13214c(0x1b1)];_0x2a8801===u[_0x13214c(0x38e)][_0x13214c(0x22f)]&&this[_0x13214c(0x43a)](_0x334ff0),_0x2a8801===u[_0x13214c(0x38e)][_0x13214c(0x298)]&&this['_onCursorDelete'](_0x334ff0);}),this[_0x34a899(0x18a)]['state$'][_0x34a899(0x32a)]((0x0,i[_0x34a899(0x2a1)])(this['dispose$']))[_0x34a899(0x36e)](_0x51ccee=>{this['_online']&&this['_updateLocalCursor'](_0x51ccee);}));}['_onCursorUpdate'](_0x18f9b7){const _0x251a72=_0x43dc4d;var _0xb4f4fd,_0x385cf8,_0x15c644,_0x2087bd;let {memberID:_0x36f458,selection:_0x4b4d02}=_0x18f9b7[_0x251a72(0x2a7)];if(_0x36f458===((_0xb4f4fd=(_0x385cf8=this[_0x251a72(0x38f)])[_0x251a72(0x254)])==null?void 0x0:_0xb4f4fd['call'](_0x385cf8)))return;let _0x2b7dbe=ye(_0x4b4d02);if(!_0x2b7dbe||_0x2b7dbe['unitId']!==this[_0x251a72(0x220)])return;let _0x41d8b9=(_0x15c644=(_0x2087bd=this[_0x251a72(0x35c)][_0x251a72(0x1b2)](this[_0x251a72(0x220)],_0x36f458))==null?void 0x0:_0x2087bd['name'])==null?'Unknown\x20user':_0x15c644,_0x506452={'color':this[_0x251a72(0x431)][_0x251a72(0x1fc)](_0x36f458),'name':_0x41d8b9,'unitId':_0x2b7dbe[_0x251a72(0x219)],'subUnitId':_0x2b7dbe[_0x251a72(0x433)],'selectedIds':_0x2b7dbe['selectedIds'],'focusedId':_0x2b7dbe[_0x251a72(0x2b7)],'selection':_0x4b4d02},_0x2e831b=new Map(this[_0x251a72(0x42f)]);_0x2e831b['set'](_0x36f458,_0x506452),this[_0x251a72(0x290)]['next'](_0x2e831b);}['_onCursorDelete'](_0x2bd335){const _0x13687b=_0x43dc4d;let {memberID:_0x5a1823}=_0x2bd335[_0x13687b(0x2a7)],_0xcb6880=new Map(this['cursorInfo']);_0xcb6880[_0x13687b(0x245)](_0x5a1823),this[_0x13687b(0x290)][_0x13687b(0x176)](_0xcb6880);}[_0x43dc4d(0x19f)](){const _0x44c328=_0x43dc4d;this[_0x44c328(0x39a)]=!0x0,this[_0x44c328(0x2f8)](this[_0x44c328(0x18a)][_0x44c328(0x1d3)]());}[_0x43dc4d(0x15a)](){const _0x92b769=_0x43dc4d;this[_0x92b769(0x39a)]=!0x1;}};F=w([C(0x2,(0x0,n[_0x43dc4d(0x379)])(A)),C(0x3,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x381)])),C(0x4,(0x0,n[_0x43dc4d(0x379)])(v['ISlideDrawingStateService']))],F);function _0x1e5c(){const _0x114bbb=['flatMap','registerBeforeClose','Inject','_checkCalculationAvailable','isTransformMutationsWithChangesetSuccess','_releaseCalculationLimit','width','collabCursorState$','reconnect','getActivePageId','MemberService','_isBlinkVisible','createElement','TRANSFORM_CHANGE_OBSERVABLE_TYPE','exhaustSavingTask','LoadingMultiIcon','send','urlChange$','ranges','clear','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','distinctUntilChanged','jsxs','CollaborationEvent','_session','_updateMessage','SYNCED','RemoveColCommandId','CollaborationSessionService','_lastPointer','\x20at\x20','setConfig','handleDeleteRangeMoveLeft','InsertColCommandId','currentSkeleton$','_online','_showText','_uploadLog','_initDependencies','highlightSecond','push','_lastResponseTimestamp','colorClass','TEXT','UNIVER_BOARD','SnapshotLoadStage','prototype','_getSaveTimeout','univer-inline-flex\x20univer-items-center\x20univer-justify-center','roomMembers','saveTaskMap','getRangePointData','getCollabEntity$',',\x200.2)','yellow.400','red.300','functionsExecutedState','startsWith','/universer-api/license/formula/limit/start','onCommandExecuted','_heartbeatTimer','_blinkIntervalTimer','_updateURLWithCurrentState','generateRandomId','LOCAL_CACHE_INTERVAL','engine','_isApplyingOverlays','saveImage','slice','_getSceneObjectByKey','getMergeData','_hideTimer','_handoffPreview','some','_setInteractionBlocked','_drawTextRange','collaboration-client-ui.conflict.content','RemoteUniscriptService','72weQWCg','location','2921150YHZTIV','dispose$','previewReady','measureText','DisposableCollection','collaboration-client-ui.collaboration.closeRoom','setItem','NO_OTHER_CLIENTS_EDITING','fromEvent','redoState','handleInsertRangeMoveDown','UniverCollaborationPlugin','toPrimitive','_refRangeService','_stopBlinking','_messageService','rgb','BOARD_TOP_RIGHT_MENU_LEADING_PART','_getScale','START_CALCULATION','_scheduleHeartbeat','roomMembers$','spin','_timeoutState$','object','_taskIds','_blockProgressWatches','error','removeObjects','_collaborationSessionService','filter','_getSheetObject','collaboration-client-ui.collabClient.tooltip.reconnect','stage','now','isTransformMutationFailure','popstate','m2Prime','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SnapshotLoadingService','_hover','getConfig','Disposable','removeEventListener','event$','_monkeyPatchLogService','fill','FETCH_MISS','AWAITING','previewCellData','UNIVER_DOC','executionId','whenReady','_initCommandInterceptor','_unitOnClients','MessageType','handleInsertRow','backgroundColor','_labelPosition','find','startRow','getTypeOfUnitAdded$','UniverLicensePlugin','span','key','editingUnit','_messageIds','_docTransformIMECacheService','ITransformService','onPointerEnter$','buildDrawingOKey','transformRemoteChangeset','totalBlocks','undoState','fillText','RECT','_shortcutBlock','DocSelectionManagerService','_saveCache','DependentOn','SetTextSelectionsOperation','merge','[Unhandled\x20Rejection]:\x20','loadedBlocks','pageManager','type','_renderScheduled','_anchor','_docSyncEditingCollabCursorService','search','pushState','/universer-api/frontend/logs','UnitStatus','toRgbString','_localCacheService','selectedIds','UniverDocsUIPlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_scheduleRender','column','univer-transition-all\x20univer-duration-200','transformIMECache','_docStateChangeManagerService','IURLService','cursorInfo','57828fRjasi','_colorAssignService','IUIPartsService','subUnitId','_renderManagerService','jiqing.500','debounceTime','string','runId','_logService','_onCursorUpdate','Enter','indicator','tooltipKey','mergeOverrideWithDependencies','getUndoRedoMutationParamsCache','_highlightSecond','IBoardElementStateService','fillStyle','_transformUndoRedoStack','onPointerMove$','labelPosition','contains','primary','registerRenderModule','_notificationService','collaboration-client-ui.formula.calculation.unable','getFocusedUnit','switchMap','activeSheetId','wsSessionTicketUrl','black','_hovered','DocSkeletonManagerService','deepClone','dispose','_startBlinking','_univerInstanceService','clsx','_entities','univer-text-blue-500','_drawRectRange','_registerDependencies','UNIVER_SLIDE','snapshot-loading-','timedOut','scene','getRealBound','_initStatusListener','getObjectIncludeInGroup','IUniverInstanceService','highlight','setInterval','EffectRefRangId','toString','_localStorageService','_docTransformSelectionsService','has','_config','CollaborationStatus','isArray','...','_createSocketURL','decorate','transformMutationsWithChangeset','_clearOtherTimers','true','univer-m-0\x20univer-p-0','_toggleOffline','_scheduleClearOtherTimer','isFormulaId','_transformPreviousActiveRange','_imageIoService','DOC_RANGE_TYPE','getRenderUnitById','_sheetLoadingRenderService','transformStateCache','isInternalEditorID','_syncEditingCollabCursorService','timeoutId','getColor','PERMISSION_DENIED','activeSlideId$','Workbook','stack','_highlight','_ensureSubject','_collaborationController','0.2)','_handleLeaveEvent','univer-text-green-500','clearTimeout','_applyCommand','186aJvKKP','RegularPolygon','toStringTag','next','useCallback','debug','socket$','_startCalculationLimit','getSheetId','_handleEvent','setParam','hovered','polite','NOT_COLLAB','_shortcutService','getActiveRange','collaboration-client-ui.collabStatus.notCollab','isActive','defineProperty','/universer-api/license/formula/limit/status','NodePositionConvertToCursor','_context','_setFormulaLimitStatus','_slideDrawingStateService','univer-text-red-500','href','GLOBAL','currentUsage','getLocalCacheKey','TEXT_RANGE_LAYER_INDEX','_document','ISheetLoadingRenderService','moveTo','transformByState','_getMergeRange','_uiPartsService','showSkeleton','strokeWidth','getViewport','snapshot-loading-timeout','#4f46e5','_selfUnitIDs','_getLighterColor','LOADING_BLOCKS','_toggleOnline','UniverCollaborationClientPlugin','add','_transformHistoryAndStateStack','RichTextEditingMutation',':backup:','_interactionBlocked$','cursorInfo$','isEditing','_getObjectBounds','\x20-\x20','_revisionService','WarningIcon','_docSkeleton','_startDocCollabCursor','SOCKET_FAILED','_pluginService','onStarting','eventID','getMember','purple.300','getAllUnitsForType','handleMoveRange','shareReplay','slide-collab-cursor-','RemoveRowCommandId','_getAnchorBounding','_draw','_textBubble','getCollabCursors$','selection','registerComponent','subunit','startColumn','getOffsetConfig','board-collab-cursor-','theme$','workbookShell','left','2213WgDvCr','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','result','collaboration-client-ui.formula.calculation.waiting','UniverRenderEnginePlugin','disableLocalCache','getCellIndexByOffset','row','Injector','_saveTaskMap','_instanceService','ErrorCode','SetFormulaCalculationNotificationMutation','getSnapshot','evenodd','height','_beforeCloseService','_updateCollabCursors','ILocalCacheService','_unitStatus','CollaborationUIEventService','SHEET_VIEWPORT_KEY','OTHER_CLIENTS_EDITING','_offsetY','set','_latestStates','call','parseInt','CollaborationUIEventId','ISocketService','collaboration-client-ui.config','RxDisposable','context','lineWidth','lineTo','_latestCursors','executeCommand','_handleHeartbeatEvent','SetWorksheetActivateCommand','_cursors','fromEventSubject','IRenderManagerService','selections','save','searchParams','showText','LOCAL_CACHE_INTERVAL_KEY','UniverCollaborationClientUIPlugin','getDocRanges','_anchorDot','_handleHover','loadUnit','map','addEventListener','assignAColorForMemberID','board-element-selection','_eventUnsubscribe','_initEvent','UniverUIPlugin','collaboration-client-ui.conflict.title','_setupSubUnitSync','setActiveRange','_sheetSkeletonManagerService','syncEditingCollabCursor','currentTheme$','SessionStatus','NodePositionConvertToRectRange','combineLatest','_onCursorDelete','_onRefRangeChange','backupOfflineData','useObservable','_send','FromArray','_initStatusComponent','getValue','show','ILogService','sheetID','DEFAULT_WS_SESSION_TICKET_URL','setLineDash','_startBoardCollabCursor','range','unitId','Rect','handoff','HEADER_MENU','_hidePreview','308eQvnFX','setTimeout','unitID','getItem','_entityInit$','div','CLOSE_ROOM','setUndoRedoMutationParamsCache','doc.mutation.rich-text-editing','_configService','_startSlideCollabCursor','addClipboardHook','runRefRangeMutations','ISnapshotServerService','params','message','hide','UPDATE_CURSOR','symbol','FormulaExecutedStateType','SetDocZoomRatioOperation','onRendered','_colorIndex','OTHER_CLIENT_EDITING','@univerjs-pro/collaboration-client-ui','useDependency','FormulaExecuteStageType','_dataLoaderService','bind','_urlService','_hasFormulaInDirtyRanges','collaboration-client-ui.permission.content','pulse','_pollingInterval','debounce','requireSession','color','_checkAndWaitForCalculationPermission','with','delete','endRow','m1Prime','ColorKit','univer-flex\x20univer-items-center\x20univer-justify-center','forEach','Tools','UniverNetworkPlugin','_status$','_httpService','runOnServer','_backgroundColor','dirtyRanges','LocaleService','_name','getMemberID','handleDeleteRangeMoveUp','transformMutation','lineno','text','Warning','collaboration-client-ui.session.collaboration-timeout','_doCreateSocket','angle','value','from','reason','replace','deserializeRangeWithSheet','collaboration-client-ui.session.connection-failed','PENDING','stringify','Shape','_updateSheetPreview','subscribeEvent','sessionTicket','registerRefRange','BuiltInUIPart','Error','_labelHorizontalPosition','setAlpha','248409dmcEvJ','ACTIVE_UNIT_EVENT_CHANNEL','Failed','UNIVER_SHEET','_clearTimeoutState','Fragment','newValue','_clearPolling','COLORS','clearInterval','disposeUnit','Vector2','right','InsertRangeMoveRightCommandId','ICommandService','onMouseMove','post','bottom','_collabCursorState$','1250665uopQqh','rgba','getId','button','SheetCollabCursorShape','_boardElementStateService','_removeCollabCursors','endColumn','_initResize','offsetY','univer-text-orange-500','enableDocumentCollaborationUI','Loading','activeSheet$','status','_cursorInfo$','COMPLETE','_maxFormulaLimit','getColorFromTheme','_removeClearOtherTimer','function','[Window\x20Error]:\x20','_initCommandExecutedListener','USERS_LEAVE','_init','values','bold\x2013px\x20Arial,\x20sans-serif','min','setShapeProps','_clearBlockProgressWatch','78bfMhtv','_setupBeforeClosingHandler','takeUntil','addObjects','/universer-api/license/formula/limit/done','_id','HTTPService','InsertRangeMoveDownCommandId','data','AWAITING_WITH_PENDING','small','length','replaceDocRanges','_drawAnchor','resolve','Subject','addObject','getUnit','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Button','removeObject','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','getActiveSlide','onTransformChange$','focusedId','blue.400','Optional','collaboration-client-ui.collabStatus.offline','_transformService','_range','green.600','ticket','_cursor','static','name','drawWith','getCurrentSelections','connectInjector','_docClipboardService','_updateSubUnitFromURLParams','includes','loadOfflineData','univer-border-none\x20univer-bg-transparent','complete','_showGuardMessage','_initUserListener','LOADING_SNAPSHOT','getUnitStatus$','[CollaborationDataLoaderController]','getStateCache','_shapes','createIdentifier','setOffsetY','enableFrontendLog','collaboration-client-ui.formula.calculation.started','collaboration-client-ui.collabStatus.fetchMiss','then','useMemo','_docSkeletonManagerService','SetFormulaCalculationStartMutation','collaboration-client-ui.snapshotLoading.refresh','_getFormulaLimitStatus','40996lPevjd','_initEntityListener','rgba(','getAncestorScale','collaboration-client-ui.snapshotLoading.loadingSheet','get','VIEW_MAIN','reload','_cachedData','getObject','IBeforeCloseService','arc','_blinkTimer','_scene','unsubscribe','_docTransformStateCacheService','_currentUsage','DocStateChangeManagerService','replaceState','makeDirty','_refreshCollabCursors','toDisposable','max','getOwnPropertyDescriptor','DeleteRangeMoveLeftCommandId','fillRule','_handoffUnitIds','_updateLocalCursor','beforeCommandExecuted','getTypeOfUnitDisposed$','all','isFormulaString','WebBrowserSingleActiveUnitService','default','getUnhiddenWorksheets','_commandService','ONLINE','_registerRenderDependencies','strokeStyle','getCellMatrix','_startSheetCollabCursor','history','IShortcutService','application/json','jsx','3951189HEbRmT','addObject$','Plugin','releaseFormulaLimitUrl','DeleteRangeMoveUpCommandId','body','_snapshotLoadingService','mutations','_render','getCoordRelativeToViewport','_previewUnitId','_collabSessionService','ThemeService','_collaborationUIEventService','init','getUnitId','colno','_assignedColors','dark:focus:!univer-ring-offset-gray-800','getSkeleton','UniverDocsPlugin','_cursorShapes','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','shift','onPointerLeave$','_pointerMoveDisposable','IImageIoService','#FFF','top','removeParam','size','_themeService','pipe','code','source','_roomMembers$','_isVisibleUnit','transform','unit','slide-element-selection','Success','updateOfflineData','Unknown\x20user','state$','_color','serializeRangeWithSheet','collaboration-client-ui.permission.title','_watchBlockProgress','IMessageService','Rectangle','getParam','createInstance','filename','collab-text-range-','OffLineIcon','remove','unshift','Module','BehaviorSubject','kind','_getSheetLoadingRenderService','clickable','font','_memberID','i18nKey','asObservable','_scheduleSaving','CollaborationController','Tooltip','CollaborationSocketService','univer-text-gray-400','_getSessionTicket','icon','WebSocketService','registerDependencies','_initWindowErrorListener','collaboration-client-ui.collaboration.single-unit.warning','collaboration-client-ui.collabStatus.syncing','findNodePositionByCharIndex','_collabCursorController','_handleJoinEvent','getCurrentTypeOfUnit$','_memberService','touchDependencies','toISOString','UniverInstanceType','_injector','/run/','strokeRect','getCurrentSkeleton','IDocClipboardService','disposeWithMe','_localeService','parse','restore','ILocalStorageService','DocCollaborationEntity','JOIN_ROOM_FAILED','getCurrentUnitOfType','InsertRowCommandId','subscribe','_disabled','getCoordByCell','IConfigService','OnLineIcon','CONFLICT','textRanges','sessionStatus$','DocIMEInputManagerService'];_0x1e5c=function(){return _0x114bbb;};return _0x1e5c();}let I=class extends n[_0x43dc4d(0x1e5)]{constructor(_0x257a30,_0x118452,_0x5ea921){const _0x39bdba=_0x43dc4d;super(),this[_0x39bdba(0x455)]=_0x257a30,this[_0x39bdba(0x360)]=_0x118452,this['_collabSessionService']=_0x5ea921,S(this,_0x39bdba(0x457),new Map()),S(this,_0x39bdba(0x222),new i[(_0x39bdba(0x2ae))]()),this['_init']();}[_0x43dc4d(0x453)](){const _0x205469=_0x43dc4d;super[_0x205469(0x453)](),this['_entityInit$']['complete'](),this[_0x205469(0x457)]['forEach'](_0x2ae0b5=>_0x2ae0b5[_0x205469(0x453)]());}['getCollabCursors$'](_0x5d8764){const _0x8e6db9=_0x43dc4d;return this[_0x8e6db9(0x457)][_0x8e6db9(0x14f)](_0x5d8764)?this['_entities']['get'](_0x5d8764)['cursorInfo$']:this['_entityInit$'][_0x8e6db9(0x32a)]((0x0,i[_0x8e6db9(0x3e5)])(_0x36b7e9=>_0x36b7e9[_0x8e6db9(0x220)]===_0x5d8764),(0x0,i['switchMap'])(_0x112e68=>_0x112e68[_0x8e6db9(0x1a6)]));}[_0x43dc4d(0x299)](){const _0x59e48b=_0x43dc4d;this['_univerInstanceService'][_0x59e48b(0x404)](n['UniverInstanceType'][_0x59e48b(0x271)])[_0x59e48b(0x32a)]((0x0,i['takeUntil'])(this[_0x59e48b(0x3c8)]))[_0x59e48b(0x36e)](async _0x5a037d=>{const _0x475414=_0x59e48b;let _0x23499f=_0x5a037d['unit']['getUnitId'](),_0x24c7f4=await this[_0x475414(0x305)](_0x23499f);this[_0x475414(0x222)][_0x475414(0x176)](_0x24c7f4),this[_0x475414(0x457)][_0x475414(0x1de)](_0x23499f,_0x24c7f4);}),this[_0x59e48b(0x455)][_0x59e48b(0x404)](n[_0x59e48b(0x35f)]['UNIVER_DOC'])[_0x59e48b(0x32a)]((0x0,i['takeUntil'])(this['dispose$']))[_0x59e48b(0x32a)]((0x0,i[_0x59e48b(0x3e5)])(_0x373bf6=>!_0x373bf6[_0x59e48b(0x330)][_0x59e48b(0x319)]()[_0x59e48b(0x3b0)]('__')))['subscribe'](async _0x39edba=>{const _0x16c06a=_0x59e48b;let {unit:_0x3028a5}=_0x39edba,_0x247c4e=_0x3028a5[_0x16c06a(0x319)](),_0xa28e31=await this['_startDocCollabCursor'](_0x247c4e);this[_0x16c06a(0x222)][_0x16c06a(0x176)](_0xa28e31),this['_entities'][_0x16c06a(0x1de)](_0x247c4e,_0xa28e31);}),this[_0x59e48b(0x455)]['getTypeOfUnitAdded$'](n[_0x59e48b(0x35f)][_0x59e48b(0x141)])[_0x59e48b(0x32a)]((0x0,i[_0x59e48b(0x2a1)])(this[_0x59e48b(0x3c8)]))[_0x59e48b(0x36e)](async _0x1ddb86=>{const _0x479e64=_0x59e48b;let _0x4a89cc=_0x1ddb86[_0x479e64(0x330)][_0x479e64(0x319)](),_0x5b1e2e=await this[_0x479e64(0x228)](_0x4a89cc);this[_0x479e64(0x222)][_0x479e64(0x176)](_0x5b1e2e),this[_0x479e64(0x457)][_0x479e64(0x1de)](_0x4a89cc,_0x5b1e2e);}),this[_0x59e48b(0x455)][_0x59e48b(0x404)](n[_0x59e48b(0x35f)][_0x59e48b(0x3a3)])['pipe']((0x0,i[_0x59e48b(0x2a1)])(this['dispose$']))[_0x59e48b(0x36e)](async _0x82691c=>{const _0x197cd2=_0x59e48b;let _0x305b0a=_0x82691c[_0x197cd2(0x330)][_0x197cd2(0x319)](),_0x1938c0=await this['_startBoardCollabCursor'](_0x305b0a);this[_0x197cd2(0x222)][_0x197cd2(0x176)](_0x1938c0),this[_0x197cd2(0x457)][_0x197cd2(0x1de)](_0x305b0a,_0x1938c0);}),(0x0,i['merge'])(this['_univerInstanceService'][_0x59e48b(0x2fa)](n[_0x59e48b(0x35f)][_0x59e48b(0x3f9)]),this['_univerInstanceService'][_0x59e48b(0x2fa)](n[_0x59e48b(0x35f)][_0x59e48b(0x271)]),this[_0x59e48b(0x455)][_0x59e48b(0x2fa)](n[_0x59e48b(0x35f)][_0x59e48b(0x141)]),this[_0x59e48b(0x455)][_0x59e48b(0x2fa)](n[_0x59e48b(0x35f)]['UNIVER_BOARD']))[_0x59e48b(0x32a)]((0x0,i[_0x59e48b(0x2a1)])(this[_0x59e48b(0x3c8)]))[_0x59e48b(0x36e)](_0x47493d=>{const _0x1786c5=_0x59e48b;let _0x323957=_0x47493d[_0x1786c5(0x319)](),_0x214d78=this[_0x1786c5(0x457)][_0x1786c5(0x2e2)](_0x323957);_0x214d78&&(_0x214d78[_0x1786c5(0x453)](),this[_0x1786c5(0x457)][_0x1786c5(0x245)](_0x323957));});}async[_0x43dc4d(0x305)](_0x3e9ad7){const _0x13b6c3=_0x43dc4d;let _0x44244a=await this[_0x13b6c3(0x315)][_0x13b6c3(0x241)](_0x3e9ad7),_0x28a42e=this['_injector'][_0x13b6c3(0x33d)](P,_0x3e9ad7,_0x44244a);return _0x28a42e[_0x13b6c3(0x318)](),_0x28a42e;}async[_0x43dc4d(0x1ad)](_0x2a6b02){const _0x2ec5af=_0x43dc4d;let _0x2c3096=await this['_collabSessionService'][_0x2ec5af(0x241)](_0x2a6b02),_0x1eef09=this[_0x2ec5af(0x360)][_0x2ec5af(0x33d)](N,_0x2a6b02,_0x2c3096);return _0x1eef09[_0x2ec5af(0x318)](),_0x1eef09;}async[_0x43dc4d(0x228)](_0x5c601c){const _0x2f6ee4=_0x43dc4d;let _0x47fdbf=await this[_0x2f6ee4(0x315)][_0x2f6ee4(0x241)](_0x5c601c),_0x583297=this[_0x2f6ee4(0x360)]['createInstance'](F,_0x5c601c,_0x47fdbf);return _0x583297[_0x2f6ee4(0x318)](),_0x583297;}async[_0x43dc4d(0x217)](_0x290ffa){const _0x4addc9=_0x43dc4d;let _0x16095a=await this[_0x4addc9(0x315)][_0x4addc9(0x241)](_0x290ffa),_0x120fd5=this[_0x4addc9(0x360)]['createInstance'](j,_0x290ffa,_0x16095a);return _0x120fd5[_0x4addc9(0x318)](),_0x120fd5;}};I=w([C(0x0,n[_0x43dc4d(0x148)]),C(0x1,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x2,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x393)]))],I);let L=class extends n[_0x43dc4d(0x1e5)]{constructor(_0xc02eab,_0x1c979a,_0x295f4c){const _0x2c8b11=_0x43dc4d;super(),this[_0x2c8b11(0x188)]=_0xc02eab,this[_0x2c8b11(0x359)]=_0x1c979a,this[_0x2c8b11(0x329)]=_0x295f4c,S(this,'_cursors',new Set()),S(this,_0x2c8b11(0x41d),!0x1),S(this,_0x2c8b11(0x3b9),!0x1),S(this,_0x2c8b11(0x1e9),new Map()),this[_0x2c8b11(0x299)]();}['dispose'](){const _0x3d3bca=_0x43dc4d;this[_0x3d3bca(0x287)](),super['dispose']();}[_0x43dc4d(0x299)](){const _0x586277=_0x43dc4d;let _0x56b4ff=this[_0x586277(0x359)][_0x586277(0x1bc)](this[_0x586277(0x188)]['unitId']);this[_0x586277(0x365)]((0x0,n[_0x586277(0x2f2)])((0x0,i['combineLatest'])([_0x56b4ff,this[_0x586277(0x188)][_0x586277(0x330)][_0x586277(0x1c3)],this['_themeService'][_0x586277(0x206)]])[_0x586277(0x32a)]((0x0,i[_0x586277(0x2a1)])(this[_0x586277(0x3c8)]))[_0x586277(0x36e)](([_0x3bd8fe])=>{const _0x3d340d=_0x586277;let _0x4d378e=this['_context'][_0x3d340d(0x330)][_0x3d340d(0x380)](),_0x68308d=new Map();_0x3bd8fe[_0x3d340d(0x24a)]((_0x4343d8,_0x31635b)=>{const _0xa27e3e=_0x3d340d;_0x4343d8[_0xa27e3e(0x433)]===_0x4d378e&&_0x68308d['set'](_0x31635b,{..._0x4343d8,'color':this[_0xa27e3e(0x329)]['getColorFromTheme'](_0x4343d8['color'])});}),this[_0x3d340d(0x1e9)]=_0x68308d,this[_0x3d340d(0x429)]();})));let _0x3c6807=this[_0x586277(0x188)][_0x586277(0x144)];this[_0x586277(0x365)]((0x0,n[_0x586277(0x2f2)])(_0x3c6807[_0x586277(0x30b)][_0x586277(0x32a)]((0x0,i[_0x586277(0x2a1)])(this[_0x586277(0x3c8)]))[_0x586277(0x36e)](()=>{const _0x6e2e0b=_0x586277;this['_isApplyingOverlays']||this[_0x6e2e0b(0x429)]();})));}[_0x43dc4d(0x429)](){const _0x406ac3=_0x43dc4d;this['_renderScheduled']||(this[_0x406ac3(0x41d)]=!0x0,Promise[_0x406ac3(0x2ad)]()[_0x406ac3(0x2d7)](()=>{const _0x18b334=_0x406ac3;this[_0x18b334(0x41d)]=!0x1,this[_0x18b334(0x312)]();}));}[_0x43dc4d(0x312)](){const _0x131123=_0x43dc4d;this[_0x131123(0x287)]();let _0xf98cc1=this['_context']['unit'][_0x131123(0x380)](),_0x5f1697=[];if(this['_latestCursors']['forEach']((_0x1a38b5,_0x50b07c)=>{const _0x5016ff=_0x131123;_0x1a38b5['subUnitId']===_0xf98cc1&&_0x1a38b5[_0x5016ff(0x426)]['forEach'](_0x468931=>{const _0x5c365c=_0x5016ff;let _0x1c344a=(0x0,e['getBoardElementRenderObjectKey'])(_0x1a38b5[_0x5c365c(0x219)],_0x468931),_0x52961b=this[_0x5c365c(0x3bc)](_0x1c344a);if(!_0x52961b)return;let _0x2b059f=this[_0x5c365c(0x1a8)](_0x52961b);_0x5f1697[_0x5c365c(0x39f)](new pe(_0x5c365c(0x1c2)+_0x50b07c+'-'+_0x468931,{..._0x1a38b5,'left':_0x2b059f[_0x5c365c(0x1c5)],'top':_0x2b059f[_0x5c365c(0x326)],'width':_0x2b059f['width'],'height':_0x2b059f[_0x5c365c(0x1d5)],'angle':_0x52961b['angle'],'evented':!0x1,'zIndex':k}));});}),_0x5f1697[_0x131123(0x2aa)]===0x0){this[_0x131123(0x188)][_0x131123(0x144)]['makeDirty'](!0x0);return;}this[_0x131123(0x3b9)]=!0x0,this[_0x131123(0x188)][_0x131123(0x144)][_0x131123(0x2a2)](_0x5f1697,k),this['_isApplyingOverlays']=!0x1,this[_0x131123(0x1ed)]=new Set(_0x5f1697),this['_context']['scene'][_0x131123(0x2f0)](!0x0);}[_0x43dc4d(0x287)](){const _0x236a3b=_0x43dc4d;let _0x1caa9e=Array[_0x236a3b(0x25e)](this['_cursors']);if(_0x1caa9e['length']===0x0)return;let _0x3eb232=this[_0x236a3b(0x188)]['scene'];_0x236a3b(0x3e3)in _0x3eb232&&typeof _0x3eb232[_0x236a3b(0x3e3)]==_0x236a3b(0x295)?_0x3eb232['removeObjects'](_0x1caa9e):_0x1caa9e[_0x236a3b(0x24a)](_0x5f1eb9=>{const _0x5f039e=_0x236a3b;_0x5f039e(0x2b3)in _0x3eb232&&typeof _0x3eb232[_0x5f039e(0x2b3)]==_0x5f039e(0x295)?_0x3eb232[_0x5f039e(0x2b3)](_0x5f1eb9):_0x5f1eb9['dispose']();}),this[_0x236a3b(0x1ed)][_0x236a3b(0x38a)](),_0x3eb232[_0x236a3b(0x2f0)](!0x0);}[_0x43dc4d(0x3bc)](_0x51944b){const _0x56b57a=_0x43dc4d;var _0x4a6268,_0x442dbf,_0x5b8e2d;let _0x1bcc65=this[_0x56b57a(0x188)]['scene'];return(_0x4a6268=(_0x442dbf=(_0x5b8e2d=_0x1bcc65[_0x56b57a(0x147)])==null?void 0x0:_0x5b8e2d[_0x56b57a(0x1e0)](_0x1bcc65,_0x51944b))==null?_0x1bcc65[_0x56b57a(0x2e6)](_0x51944b):_0x442dbf)==null?null:_0x4a6268;}[_0x43dc4d(0x1a8)](_0x261026){const _0x2a2cea=_0x43dc4d;var _0x451f91,_0x37b8d3;let _0x341f03=_0x261026;return(_0x451f91=(_0x37b8d3=_0x341f03[_0x2a2cea(0x145)])==null?void 0x0:_0x37b8d3[_0x2a2cea(0x1e0)](_0x341f03))==null?{'left':_0x261026['left'],'top':_0x261026[_0x2a2cea(0x326)],'width':_0x261026[_0x2a2cea(0x37d)],'height':_0x261026[_0x2a2cea(0x1d5)]}:_0x451f91;}};L=w([C(0x1,(0x0,n[_0x43dc4d(0x379)])(I)),C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x316)]))],L);const R='collab-text-anchor-';var be=class{constructor(_0x4e9d5b,_0x2a82da,_0x5b5acc,_0x2dad52){const _0x1d2af7=_0x43dc4d;this[_0x1d2af7(0x2bf)]=_0x4e9d5b,this[_0x1d2af7(0x2ea)]=_0x2a82da,this[_0x1d2af7(0x1ac)]=_0x5b5acc,this[_0x1d2af7(0x191)]=_0x2dad52,S(this,_0x1d2af7(0x2d1),[]),S(this,_0x1d2af7(0x41e),null),S(this,_0x1d2af7(0x1bb),null),S(this,_0x1d2af7(0x1f7),null),S(this,_0x1d2af7(0x3be),null),S(this,_0x1d2af7(0x1fe),null),this[_0x1d2af7(0x312)]();}set[_0x43dc4d(0x3ef)](_0x443c59){const _0x5d30a8=_0x43dc4d;_0x443c59?(this[_0x5d30a8(0x1f7)]&&this[_0x5d30a8(0x1f7)][_0x5d30a8(0x22e)](),this[_0x5d30a8(0x1bb)]&&this[_0x5d30a8(0x1bb)][_0x5d30a8(0x212)]()):(this[_0x5d30a8(0x1f7)]&&this[_0x5d30a8(0x1f7)][_0x5d30a8(0x212)](),this[_0x5d30a8(0x1bb)]&&this[_0x5d30a8(0x1bb)]['hide']());}['dispose'](){const _0x3aef73=_0x43dc4d;for(let _0x4c6c50 of this[_0x3aef73(0x2d1)])_0x4c6c50[_0x3aef73(0x453)]();this['_textBubble']&&this[_0x3aef73(0x1bb)][_0x3aef73(0x453)](),this[_0x3aef73(0x1f7)]&&this[_0x3aef73(0x1f7)][_0x3aef73(0x453)](),this[_0x3aef73(0x41e)]&&this[_0x3aef73(0x41e)][_0x3aef73(0x453)](),this['_eventUnsubscribe']&&this[_0x3aef73(0x1fe)]();}['_render'](){const _0xfcf289=_0x43dc4d;let {_docSkeleton:_0x4bdb51,_document:_0x4cc5f4}=this,{color:_0x107a75,name:_0x129fba,ranges:_0x4a08ae}=this['_cursor'],_0x28f8b0=_0x4cc5f4[_0xfcf289(0x1c1)](),{docsLeft:_0x56e70f,docsTop:_0x45f41e}=_0x28f8b0,_0x575a3b=new p[(_0xfcf289(0x187))](_0x28f8b0,_0x4bdb51);for(let {startOffset:_0x12ecf0,endOffset:_0x1c0083,rangeType:_0xba5cec,segmentId:_0x49fdae,segmentPage:_0x21693a,collapsed:_0x2cd19c,isActive:_0x45cc6c}of _0x4a08ae){let _0x2fff14=_0x4bdb51[_0xfcf289(0x358)](_0x12ecf0,!0x0,_0x49fdae,_0x21693a),_0x4543f3=_0x4bdb51[_0xfcf289(0x358)](_0x1c0083,!0x0,_0x49fdae,_0x21693a);if(_0x4543f3==null&&(_0x4543f3=_0x4bdb51['findNodePositionByCharIndex'](_0x1c0083-0x1,!0x1,_0x49fdae,_0x21693a)),_0x45cc6c){let {contentBoxPointGroup:_0x151b7d}=_0x575a3b['getRangePointData'](_0x4543f3,_0x4543f3);if(_0x151b7d[_0xfcf289(0x2aa)]===0x0)continue;this[_0xfcf289(0x2ac)](_0x107a75,_0x151b7d,_0x56e70f,_0x45f41e,_0x129fba),this[_0xfcf289(0x1fe)]=this['_handleHover']();}if(_0x2fff14&&_0x4543f3){if(_0xba5cec===n[_0xfcf289(0x15f)]['RECT']){var _0x4ca12b;let {pointGroup:_0x3b1f7f}=(_0x4ca12b=new p[(_0xfcf289(0x208))](_0x28f8b0,_0x4bdb51)[_0xfcf289(0x3aa)](_0x2fff14,_0x4543f3))==null?{}:_0x4ca12b;if(_0x3b1f7f==null||_0x3b1f7f[_0xfcf289(0x2aa)]===0x0)continue;this[_0xfcf289(0x13f)](_0x107a75,_0x3b1f7f,_0x56e70f,_0x45f41e);}else{if(!_0x2cd19c){let {borderBoxPointGroup:_0x2860d4}=_0x575a3b[_0xfcf289(0x3aa)](_0x2fff14,_0x4543f3);if(_0x2860d4['length']===0x0)continue;this[_0xfcf289(0x3c2)](_0x107a75,_0x2860d4,_0x56e70f,_0x45f41e);}}}}}[_0x43dc4d(0x2ac)](_0x36094d,_0x3885fd,_0x590783,_0x50bb28,_0x1f7610){const _0x29e309=_0x43dc4d;let {left:_0x369307,top:_0x5490e9,height:_0x2e0ee3}=this['_getAnchorBounding'](_0x3885fd),_0x273ef4=1.5/this[_0x29e309(0x3d9)](),_0x261637=new m[(_0x29e309(0x21a))](R+(0x0,n[_0x29e309(0x3b6)])(0x6),{'left':_0x369307+_0x590783-_0x273ef4,'top':_0x5490e9+_0x50bb28,'height':_0x2e0ee3,'width':1.5,'fill':_0x36094d||(0x0,m[_0x29e309(0x166)])(n[_0x29e309(0x276)]['black'],0x0),'strokeWidth':_0x273ef4,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x29e309(0x41e)]=_0x261637,this[_0x29e309(0x2ea)][_0x29e309(0x2af)](_0x261637,p[_0x29e309(0x190)]);let _0x543f72=new m['Rect'](R+(0x0,n['generateRandomId'])(0x6),{'left':_0x369307+_0x590783-_0x273ef4,'top':_0x5490e9+_0x50bb28-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x36094d||(0x0,m['getColor'])(n[_0x29e309(0x276)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x36094d||(0x0,m[_0x29e309(0x166)])(n[_0x29e309(0x276)][_0x29e309(0x44f)],0x0),'evented':!0x1});this['_anchorDot']=_0x543f72,this['_scene'][_0x29e309(0x2af)](_0x543f72,p[_0x29e309(0x190)]);let _0x431a25=new O(R+(0x0,n[_0x29e309(0x3b6)])(0x6),{'left':_0x369307+_0x590783-_0x273ef4,'top':_0x5490e9+_0x50bb28-0x14,'text':_0x1f7610,'color':_0x36094d});this[_0x29e309(0x1bb)]=_0x431a25,this[_0x29e309(0x2ea)][_0x29e309(0x2af)](_0x431a25,p[_0x29e309(0x190)]),this[_0x29e309(0x3ef)]=!0x1;}[_0x43dc4d(0x1f8)](){const _0x14d12a=_0x43dc4d;let _0x3aae56=this[_0x14d12a(0x41e)][_0x14d12a(0x40c)][_0x14d12a(0x267)](()=>{const _0x74c83c=_0x14d12a;this[_0x74c83c(0x3ef)]=!0x0;}),_0x3b0140=this['_anchor'][_0x14d12a(0x322)][_0x14d12a(0x267)](()=>{const _0x46e253=_0x14d12a;this[_0x46e253(0x3be)]&&clearTimeout(this[_0x46e253(0x3be)]),this[_0x46e253(0x3be)]=setTimeout(()=>{const _0x547790=_0x46e253;this[_0x547790(0x3ef)]=!0x1;},0x7d0);});return()=>{const _0x2999a9=_0x14d12a;_0x3aae56[_0x2999a9(0x2eb)](),_0x3b0140['unsubscribe']();};}[_0x43dc4d(0x3c2)](_0x49b425,_0x5bb3a1,_0x5299dc,_0x4c869d){const _0x2ddf9c=_0x43dc4d;let _0x31a6a9=0.2,_0x5bb503=new n['ColorKit'](_0x49b425)[_0x2ddf9c(0x26d)](_0x31a6a9)['toRgbString'](),_0x370481=new m[(_0x2ddf9c(0x174))](_0x2ddf9c(0x33f)+(0x0,n[_0x2ddf9c(0x3b6)])(0x6),{'pointsGroup':_0x5bb3a1,'fill':_0x5bb503||(0x0,m[_0x2ddf9c(0x166)])(n[_0x2ddf9c(0x276)][_0x2ddf9c(0x44f)],_0x31a6a9),'left':_0x5299dc,'top':_0x4c869d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x2ddf9c(0x39f)](_0x370481),this[_0x2ddf9c(0x2ea)][_0x2ddf9c(0x2af)](_0x370481,p[_0x2ddf9c(0x190)]);}[_0x43dc4d(0x13f)](_0x472a82,_0x9b9c9c,_0x42cdf7,_0x53ee19){const _0xb2493a=_0x43dc4d;let _0x4e3c0f=0.2,_0x2bbdeb=new n[(_0xb2493a(0x248))](_0x472a82)[_0xb2493a(0x26d)](_0x4e3c0f)[_0xb2493a(0x424)](),_0x399eac=new m[(_0xb2493a(0x174))]('collab-rect-range-'+(0x0,n[_0xb2493a(0x3b6)])(0x6),{'pointsGroup':_0x9b9c9c,'fill':_0x2bbdeb||(0x0,m[_0xb2493a(0x166)])(n[_0xb2493a(0x276)][_0xb2493a(0x44f)],_0x4e3c0f),'left':_0x42cdf7,'top':_0x53ee19,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xb2493a(0x2d1)][_0xb2493a(0x39f)](_0x399eac),this[_0xb2493a(0x2ea)]['addObject'](_0x399eac,p['TEXT_RANGE_LAYER_INDEX']);}[_0x43dc4d(0x1b9)](_0x3b3b93){let _0x4ba686=_0x3b3b93[0x0],_0x8ba3ad=_0x4ba686[0x0],_0x3c3b2d=_0x4ba686[0x2],{x:_0x1fca71,y:_0x399168}=_0x8ba3ad,{x:_0x50a3b4,y:_0x4f2f66}=_0x3c3b2d;return{'left':_0x1fca71,'top':_0x399168,'width':_0x50a3b4-_0x1fca71,'height':_0x4f2f66-_0x399168};}[_0x43dc4d(0x3d9)](){const _0x503ddd=_0x43dc4d;let {scaleX:_0x57613a,scaleY:_0x223986}=this[_0x503ddd(0x2ea)][_0x503ddd(0x2e0)]();return Math[_0x503ddd(0x2f3)](_0x57613a,_0x223986);}};let z=class extends n['RxDisposable']{constructor(_0x2132c7,_0x297d23,_0x951c15,_0x11a115,_0x47a804){const _0x29ae9a=_0x43dc4d;super(),this['_context']=_0x2132c7,this[_0x29ae9a(0x2d9)]=_0x297d23,this[_0x29ae9a(0x359)]=_0x951c15,this['_commandService']=_0x11a115,this[_0x29ae9a(0x329)]=_0x47a804,S(this,'_cursorShapes',[]),S(this,'_cursors',[]),this['_init']();}['_init'](){const _0x45f98a=_0x43dc4d;let _0x4c4c11=this[_0x45f98a(0x188)][_0x45f98a(0x219)],_0x6ab4ce=this[_0x45f98a(0x2d9)];this[_0x45f98a(0x365)]((0x0,i['combineLatest'])([this[_0x45f98a(0x359)][_0x45f98a(0x1bc)](_0x4c4c11),this['_themeService'][_0x45f98a(0x206)]])[_0x45f98a(0x32a)]((0x0,a[_0x45f98a(0x1fa)])(([_0x13f99c,_0x333704])=>({'skeleton':_0x6ab4ce[_0x45f98a(0x31d)](),'cursors':[..._0x13f99c[_0x45f98a(0x29a)]()][_0x45f98a(0x377)](_0x4ee53a=>({..._0x4ee53a,'color':this['_themeService'][_0x45f98a(0x293)](_0x4ee53a[_0x45f98a(0x242)])}))})))[_0x45f98a(0x36e)](_0x2492bf=>{const _0x12adeb=_0x45f98a;if(this[_0x12adeb(0x287)](),_0x2492bf){let {skeleton:_0x4fda76,cursors:_0x1e2737}=_0x2492bf;this[_0x12adeb(0x1d7)](_0x4fda76,_0x1e2737);}})),this[_0x45f98a(0x289)](),this[_0x45f98a(0x297)]();}[_0x43dc4d(0x1d7)](_0x32be8f,_0x52c467){const _0x2a8abe=_0x43dc4d;let {scene:_0x40d53d,mainComponent:_0x5aa847}=this[_0x2a8abe(0x188)],_0x42f2b3=_0x52c467[_0x2a8abe(0x1fa)](_0x112a94=>new be(_0x112a94,_0x40d53d,_0x32be8f,_0x5aa847));this[_0x2a8abe(0x31f)]=_0x42f2b3,this[_0x2a8abe(0x1ed)]=_0x52c467;}['_refreshCollabCursors'](){const _0x5b7189=_0x43dc4d;this['_removeCollabCursors']();let {scene:_0x366595,mainComponent:_0x304b3f}=this[_0x5b7189(0x188)],_0x4b7831=this[_0x5b7189(0x2d9)][_0x5b7189(0x31d)](),_0x506c46=this['_cursors'][_0x5b7189(0x1fa)](_0x18f564=>new be(_0x18f564,_0x366595,_0x4b7831,_0x304b3f));this[_0x5b7189(0x31f)]=_0x506c46;}[_0x43dc4d(0x287)](){const _0x14d2ba=_0x43dc4d;this[_0x14d2ba(0x31f)][_0x14d2ba(0x24a)](_0x37dc77=>_0x37dc77['dispose']()),this[_0x14d2ba(0x31f)]=[];}['_initCommandExecutedListener'](){const _0x245745=_0x43dc4d;let _0x1589cc=[p[_0x245745(0x232)]['id']];this[_0x245745(0x365)](this[_0x245745(0x300)][_0x245745(0x3b2)](_0xcef583=>{const _0x47ec00=_0x245745;_0x1589cc[_0x47ec00(0x2c7)](_0xcef583['id'])&&_0xcef583['params'][_0x47ec00(0x219)]===this[_0x47ec00(0x188)][_0x47ec00(0x219)]&&this[_0x47ec00(0x2f1)]();}));}[_0x43dc4d(0x289)](){const _0x2e9af4=_0x43dc4d;this[_0x2e9af4(0x365)]((0x0,n[_0x2e9af4(0x1ee)])(this['_context'][_0x2e9af4(0x3b8)][_0x2e9af4(0x2b6)])[_0x2e9af4(0x32a)]((0x0,a[_0x2e9af4(0x3e5)])(_0x4ee9ae=>_0x4ee9ae[_0x2e9af4(0x41c)]===m[_0x2e9af4(0x384)]['resize']),(0x0,a['throttleTime'])(0x10))[_0x2e9af4(0x36e)](()=>{const _0x3e539a=_0x2e9af4;this[_0x3e539a(0x2f1)]();}));}};z=w([C(0x1,(0x0,n['Inject'])(f[_0x43dc4d(0x451)])),C(0x2,(0x0,n[_0x43dc4d(0x379)])(I)),C(0x3,n['ICommandService']),C(0x4,(0x0,n['Inject'])(n[_0x43dc4d(0x316)]))],z);var xe=class extends m[_0x43dc4d(0x265)]{constructor(_0x3f7469,_0x58fed7){const _0x31af2b=_0x43dc4d;if(super(_0x3f7469,_0x58fed7),S(this,_0x31af2b(0x336),void 0x0),S(this,_0x31af2b(0x450),!0x1),S(this,_0x31af2b(0x2bc),void 0x0),S(this,_0x31af2b(0x253),''),S(this,'_labelPosition',_0x31af2b(0x326)),S(this,_0x31af2b(0x250),void 0x0),S(this,_0x31af2b(0x39b),void 0x0),S(this,_0x31af2b(0x16b),void 0x0),S(this,'_highlightSecond',0x4),S(this,_0x31af2b(0x2e9),void 0x0),S(this,_0x31af2b(0x3b4),void 0x0),S(this,'_isBlinkVisible',!0x0),S(this,'_offsetY',0x0),S(this,_0x31af2b(0x26c),_0x31af2b(0x27a)),_0x58fed7){var _0x758f11;if(this[_0x31af2b(0x29d)](_0x58fed7),_0x58fed7[_0x31af2b(0x149)]&&((_0x758f11=_0x58fed7[_0x31af2b(0x39e)])==null?this[_0x31af2b(0x440)]:_0x758f11)){var _0x5dc4ec;this['_startBlinking']((_0x5dc4ec=_0x58fed7[_0x31af2b(0x39e)])==null?this[_0x31af2b(0x440)]:_0x5dc4ec);}}this['onPointerEnter$'][_0x31af2b(0x267)](()=>this[_0x31af2b(0x29d)]({'hovered':!0x0})),this[_0x31af2b(0x322)][_0x31af2b(0x267)](()=>this[_0x31af2b(0x29d)]({'hovered':!0x1}));}[_0x43dc4d(0x2d3)](_0x2c4d7b){const _0x156635=_0x43dc4d;this[_0x156635(0x1dd)]=_0x2c4d7b;}[_0x43dc4d(0x29d)](_0xb3094f){const _0x50d3c9=_0x43dc4d;var _0xb50c50,_0x5de1b6,_0x455b0d,_0x2c6fdd,_0x59e4c3,_0xdad365,_0xcb90fc,_0x2e6103;this[_0x50d3c9(0x336)]=(_0xb50c50=_0xb3094f[_0x50d3c9(0x242)])==null?this[_0x50d3c9(0x336)]:_0xb50c50,this[_0x50d3c9(0x450)]=(_0x5de1b6=_0xb3094f[_0x50d3c9(0x17e)])==null?this[_0x50d3c9(0x450)]:_0x5de1b6,this[_0x50d3c9(0x2bc)]=(_0x455b0d=_0xb3094f[_0x50d3c9(0x218)])==null?this[_0x50d3c9(0x2bc)]:_0x455b0d,this['_name']=(_0x2c6fdd=_0xb3094f[_0x50d3c9(0x2c1)])==null?this[_0x50d3c9(0x253)]:_0x2c6fdd,this[_0x50d3c9(0x401)]=(_0x59e4c3=_0xb3094f[_0x50d3c9(0x445)])==null?this['_labelPosition']:_0x59e4c3,this[_0x50d3c9(0x250)]=(_0xdad365=_0xb3094f[_0x50d3c9(0x400)])==null?this['_backgroundColor']:_0xdad365,this[_0x50d3c9(0x39b)]=(_0xcb90fc=_0xb3094f[_0x50d3c9(0x1f3)])==null?this[_0x50d3c9(0x39b)]:_0xcb90fc,this['_labelHorizontalPosition']=(_0x2e6103=_0xb3094f['labelHorizontalPosition'])==null?this['_labelHorizontalPosition']:_0x2e6103,_0xb3094f[_0x50d3c9(0x39e)]!==void 0x0&&(this['_highlightSecond']=_0xb3094f[_0x50d3c9(0x39e)]),_0xb3094f[_0x50d3c9(0x149)]!==void 0x0&&(this[_0x50d3c9(0x16b)]=_0xb3094f[_0x50d3c9(0x149)]),_0xb3094f[_0x50d3c9(0x28a)]!==void 0x0&&(this['_offsetY']=_0xb3094f[_0x50d3c9(0x28a)]),this[_0x50d3c9(0x194)]({'width':_0xb3094f['width'],'height':_0xb3094f[_0x50d3c9(0x1d5)]});}[_0x43dc4d(0x27d)](_0x5f1e08){const _0x565509=_0x43dc4d;let {row:_0xe0a415,column:_0x65eb27}=_0x5f1e08;if(_0xe0a415>=this['_range']['startRow']&&_0xe0a415<=this[_0x565509(0x2bc)][_0x565509(0x246)]&&_0x65eb27>=this[_0x565509(0x2bc)]['startColumn']&&_0x65eb27<=this[_0x565509(0x2bc)][_0x565509(0x288)]){this[_0x565509(0x29d)]({'hovered':!0x0});return;}this[_0x565509(0x29d)]({'hovered':!0x1});}[_0x43dc4d(0x454)](_0x229ce2){const _0x518fd1=_0x43dc4d;this[_0x518fd1(0x3d5)](),this[_0x518fd1(0x382)]=!0x0,this[_0x518fd1(0x3b4)]=window[_0x518fd1(0x14a)](()=>{const _0x173dd3=_0x518fd1;this['_isBlinkVisible']=!this[_0x173dd3(0x382)],this[_0x173dd3(0x2f0)](!0x0);},0x1f4),this[_0x518fd1(0x2e9)]=window[_0x518fd1(0x21f)](()=>{const _0x58b6d4=_0x518fd1;this[_0x58b6d4(0x3d5)](),this[_0x58b6d4(0x382)]=!0x0,this[_0x58b6d4(0x2f0)](!0x0);},_0x229ce2*0x3e8);}['_stopBlinking'](){const _0x1c6757=_0x43dc4d;this[_0x1c6757(0x3b4)]&&(window['clearInterval'](this[_0x1c6757(0x3b4)]),this['_blinkIntervalTimer']=void 0x0),this[_0x1c6757(0x2e9)]&&(window[_0x1c6757(0x171)](this[_0x1c6757(0x2e9)]),this[_0x1c6757(0x2e9)]=void 0x0);}['triggerDblclick'](_0x1cd995){return!0x1;}['dispose'](){const _0x5f201e=_0x43dc4d;this[_0x5f201e(0x3d5)](),super[_0x5f201e(0x453)]();}['_draw'](_0x266dab){const _0x19d8ed=_0x43dc4d;let _0x5bd798=this[_0x19d8ed(0x336)],_0x16d27e=this[_0x19d8ed(0x250)];if(this[_0x19d8ed(0x16b)]&&!this[_0x19d8ed(0x382)]&&(_0x5bd798=this[_0x19d8ed(0x19d)](this[_0x19d8ed(0x336)]),_0x16d27e=this[_0x19d8ed(0x250)]?this[_0x19d8ed(0x19d)](this[_0x19d8ed(0x250)]):void 0x0),m[_0x19d8ed(0x21a)][_0x19d8ed(0x2c2)](_0x266dab,{'width':this[_0x19d8ed(0x37d)],'height':this[_0x19d8ed(0x1d5)],'strokeWidth':this[_0x19d8ed(0x198)]||1.5,'stroke':_0x5bd798,'evented':!0x1,'fill':_0x16d27e}),this[_0x19d8ed(0x450)]||this['_showText']){var _0x521cf3;_0x266dab['save']();let _0x563514=this[_0x19d8ed(0x26c)]==='left'?-de(_0x266dab,this['_name']):this['width'];_0x266dab[_0x19d8ed(0x32f)](0x1,0x0,0x0,0x1,_0x563514,(this[_0x19d8ed(0x401)]==='bottom'?0x0:-0x14)+((_0x521cf3=this[_0x19d8ed(0x1dd)])==null?0x0:_0x521cf3)),O[_0x19d8ed(0x2c2)](_0x266dab,{'text':this[_0x19d8ed(0x253)],'color':_0x5bd798}),_0x266dab['restore']();}}[_0x43dc4d(0x19d)](_0x43131e){const _0x1320b8=_0x43dc4d;return _0x43131e[_0x1320b8(0x3b0)]('#')?_0x1320b8(0x2df)+Number[_0x1320b8(0x1e1)](_0x43131e[_0x1320b8(0x3bb)](0x1,0x3),0x10)+',\x20'+Number[_0x1320b8(0x1e1)](_0x43131e[_0x1320b8(0x3bb)](0x3,0x5),0x10)+',\x20'+Number[_0x1320b8(0x1e1)](_0x43131e['slice'](0x5,0x7),0x10)+_0x1320b8(0x3ac):_0x43131e[_0x1320b8(0x3b0)](_0x1320b8(0x282))?_0x43131e['replace'](/[\d.]+\)$/g,_0x1320b8(0x16e)):_0x43131e[_0x1320b8(0x3b0)](_0x1320b8(0x3d7))?_0x43131e[_0x1320b8(0x260)](_0x1320b8(0x3d7),'rgba')['replace'](')',_0x1320b8(0x3ac)):_0x43131e;}};let B=class extends n[_0x43dc4d(0x1e5)]{constructor(_0x22e5e2,_0xc227ca,_0x4b9723,_0x4e41bf){const _0x4516be=_0x43dc4d;super(),this[_0x4516be(0x188)]=_0x22e5e2,this[_0x4516be(0x204)]=_0xc227ca,this[_0x4516be(0x359)]=_0x4b9723,this[_0x4516be(0x329)]=_0x4e41bf,S(this,_0x4516be(0x1ed),new Set()),S(this,_0x4516be(0x394),null),S(this,_0x4516be(0x323),null),this['_init']();}[_0x43dc4d(0x299)](){const _0x2c2ce6=_0x43dc4d;this[_0x2c2ce6(0x204)][_0x2c2ce6(0x399)][_0x2c2ce6(0x32a)]((0x0,a[_0x2c2ce6(0x2a1)])(this['dispose$']),(0x0,a[_0x2c2ce6(0x44c)])(_0xe40057=>{const _0x1d698c=_0x2c2ce6;if(_0xe40057){let _0x357ad9=_0xe40057['sheetId'];return(0x0,i['combineLatest'])(this[_0x1d698c(0x359)][_0x1d698c(0x1bc)](this['_context'][_0x1d698c(0x219)]),this[_0x1d698c(0x329)][_0x1d698c(0x206)])[_0x1d698c(0x32a)]((0x0,a[_0x1d698c(0x1fa)])(([_0x51b4c2,_0x94c5c4])=>{const _0x4bb11f=_0x1d698c;let _0xefdb3c=new Map();return _0x51b4c2[_0x4bb11f(0x24a)]((_0x2befe4,_0xf50121)=>{const _0x269d1d=_0x4bb11f;if(_0x2befe4[_0x269d1d(0x214)]===_0x357ad9){let _0xf361a4={..._0x2befe4};_0xf361a4[_0x269d1d(0x242)]=this[_0x269d1d(0x329)]['getColorFromTheme'](_0x2befe4['color']),_0xefdb3c[_0x269d1d(0x1de)](_0xf50121,_0xf361a4);}}),{'skeleton':_0xe40057,'cursors':_0xefdb3c};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4131a7,cursors:_0x488eb5})=>{this['_removeCollabCursors'](),_0x4131a7&&this['_updateCollabCursors'](_0x4131a7,_0x488eb5);}),this[_0x2c2ce6(0x365)](this['_sheetSkeletonManagerService'][_0x2c2ce6(0x399)][_0x2c2ce6(0x32a)]((0x0,a[_0x2c2ce6(0x2a1)])(this['dispose$']))[_0x2c2ce6(0x36e)](_0x28f142=>{const _0x45b1cc=_0x2c2ce6;var _0xd716e2;if(_0x28f142==null)return;(_0xd716e2=this['_pointerMoveDisposable'])==null||_0xd716e2[_0x45b1cc(0x2eb)](),this[_0x45b1cc(0x323)]=null;let {skeleton:_0x41cb96}=_0x28f142,{scene:_0x2f6dbc}=this[_0x45b1cc(0x188)];this['_pointerMoveDisposable']=_0x2f6dbc[_0x45b1cc(0x444)][_0x45b1cc(0x267)]((0x0,n[_0x45b1cc(0x240)])(_0x358d9a=>{const _0x560fd9=_0x45b1cc;var _0x218c51,_0x4ea860;let {offsetX:_0x3fd9c1,offsetY:_0xda6a9d}=_0x358d9a,{x:_0x2cc668,y:_0x44f18e}=_0x2f6dbc[_0x560fd9(0x313)](m['Vector2'][_0x560fd9(0x20f)]([_0x3fd9c1,_0xda6a9d])),{scaleX:_0x4ef50c,scaleY:_0x546d54}=_0x2f6dbc[_0x560fd9(0x2e0)](),_0x4c74e5=_0x2f6dbc[_0x560fd9(0x199)](m[_0x560fd9(0x1db)][_0x560fd9(0x2e3)]),_0x24a949=_0x2f6dbc['getScrollXYInfoByViewport'](m[_0x560fd9(0x279)][_0x560fd9(0x20f)]([_0x2cc668,_0x44f18e]),_0x4c74e5),_0x1896d1=_0x41cb96[_0x560fd9(0x1cc)](_0x3fd9c1,_0xda6a9d,_0x4ef50c,_0x546d54,_0x24a949);(((_0x218c51=this[_0x560fd9(0x394)])==null?void 0x0:_0x218c51[_0x560fd9(0x42a)])!==_0x1896d1[_0x560fd9(0x42a)]||((_0x4ea860=this['_lastPointer'])==null?void 0x0:_0x4ea860[_0x560fd9(0x1cd)])!==_0x1896d1[_0x560fd9(0x1cd)])&&this[_0x560fd9(0x1ed)]['forEach'](_0x2af3f1=>{const _0x58cb4f=_0x560fd9;_0x2af3f1[_0x58cb4f(0x27d)](_0x1896d1);});},0x64));})),this[_0x2c2ce6(0x365)]((0x0,n[_0x2c2ce6(0x2f2)])(()=>{const _0xce14c1=_0x2c2ce6;var _0x159d0a;(_0x159d0a=this['_pointerMoveDisposable'])==null||_0x159d0a[_0xce14c1(0x2eb)](),this[_0xce14c1(0x323)]=null;}));}[_0x43dc4d(0x1d7)](_0x5b0cbf,_0x190cb9){const _0x2b5cfc=_0x43dc4d;let _0x92773b=this[_0x2b5cfc(0x204)][_0x2b5cfc(0x363)]();if(!_0x92773b)return;let _0x55990d=this[_0x2b5cfc(0x3e6)]();if(!_0x55990d)return;this[_0x2b5cfc(0x1ed)][_0x2b5cfc(0x24a)](_0x2461ef=>{const _0x31448e=_0x2b5cfc;_0x2461ef[_0x31448e(0x2f0)]();});let {scene:_0x199047}=_0x55990d,_0x20c933=Se(Array['from'](_0x190cb9[_0x2b5cfc(0x29a)]()))[_0x2b5cfc(0x1fa)](_0x135af9=>{const _0x5dacf7=_0x2b5cfc;let {color:_0x4a2534,range:_0x230002,name:_0x5b6e44,selection:_0x456864,sheetID:_0x599b78}=_0x135af9,{startColumn:_0x3e1e26,startRow:_0x30b19f,endColumn:_0x5e290a,endRow:_0x3d70fe}=_0x230002,_0x33eae3=(0x0,y[_0x5dacf7(0x370)])(_0x30b19f,_0x3e1e26,_0x199047,_0x92773b),_0xa39793=(0x0,y[_0x5dacf7(0x370)])(_0x3d70fe,_0x5e290a,_0x199047,_0x92773b),{columnHeaderHeightAndMarginTop:_0x13ece4}=_0x92773b,{startX:_0x4df93e,startY:_0x2c589f}=_0x33eae3,{endX:_0x1429fe,endY:_0x39d0e6}=_0xa39793,_0x31f649=_0x1429fe-_0x4df93e,_0x1447b2=_0x39d0e6-_0x2c589f;return new xe(_0x5b6e44,{'labelPosition':_0x2c589f-_0x13ece4>=0x14?_0x5dacf7(0x326):'bottom','sheetID':_0x599b78,'range':_0x230002,'color':_0x4a2534,'name':_0x5b6e44,'selection':_0x456864,'left':_0x4df93e,'top':_0x2c589f,'width':_0x31f649,'height':_0x1447b2,'evented':!0x1,'zIndex':0x1389});});_0x199047['addObjects'](_0x20c933,0x1),this[_0x2b5cfc(0x1ed)]=new Set(_0x20c933);}[_0x43dc4d(0x287)](){const _0x3f9555=_0x43dc4d;var _0x3138a9;(_0x3138a9=this[_0x3f9555(0x1ed)])==null||_0x3138a9[_0x3f9555(0x24a)](_0x5c61d3=>_0x5c61d3[_0x3f9555(0x453)]());}['_getSheetObject'](){const _0x3511b8=_0x43dc4d;return(0x0,y['getSheetObject'])(this[_0x3511b8(0x188)][_0x3511b8(0x330)],this[_0x3511b8(0x188)]);}};B=w([C(0x1,(0x0,n[_0x43dc4d(0x379)])(y['SheetSkeletonManagerService'])),C(0x2,(0x0,n[_0x43dc4d(0x379)])(I)),C(0x3,(0x0,n[_0x43dc4d(0x379)])(n['ThemeService']))],B);function Se(_0x308de9){const _0x3f48d4=_0x43dc4d;let _0x1e4a2c=new Map();return _0x308de9[_0x3f48d4(0x24a)](_0x3fe58a=>{const _0x5cd41d=_0x3f48d4;if(_0x1e4a2c[_0x5cd41d(0x14f)](_0x3fe58a[_0x5cd41d(0x1bd)])){let _0x132b88=_0x1e4a2c[_0x5cd41d(0x2e2)](_0x3fe58a['selection']);_0x132b88['name']+=',\x20'+_0x3fe58a[_0x5cd41d(0x2c1)];}else _0x1e4a2c['set'](_0x3fe58a['selection'],_0x3fe58a);}),Array[_0x3f48d4(0x25e)](_0x1e4a2c[_0x3f48d4(0x29a)]());}let V=class extends n['RxDisposable']{constructor(_0x5aa928,_0xbab843,_0x3bb36c){const _0x5ca40b=_0x43dc4d;super(),this[_0x5ca40b(0x188)]=_0x5aa928,this[_0x5ca40b(0x359)]=_0xbab843,this['_themeService']=_0x3bb36c,S(this,_0x5ca40b(0x1ed),new Set()),S(this,_0x5ca40b(0x41d),!0x1),S(this,_0x5ca40b(0x3b9),!0x1),S(this,_0x5ca40b(0x1e9),new Map()),this['_init']();}['dispose'](){const _0x402e51=_0x43dc4d;this['_removeCollabCursors'](),super[_0x402e51(0x453)]();}[_0x43dc4d(0x299)](){const _0xb82515=_0x43dc4d;let _0x54db0c=this[_0xb82515(0x188)][_0xb82515(0x330)][_0xb82515(0x41b)][_0xb82515(0x168)],_0x1b88e9=this[_0xb82515(0x359)][_0xb82515(0x1bc)](this[_0xb82515(0x188)][_0xb82515(0x219)]);this[_0xb82515(0x365)]((0x0,n['toDisposable'])((0x0,i[_0xb82515(0x209)])([_0x1b88e9,_0x54db0c,this[_0xb82515(0x329)]['currentTheme$']])['pipe']((0x0,i['takeUntil'])(this[_0xb82515(0x3c8)]))[_0xb82515(0x36e)](([_0x54ab30,_0x14a58d])=>{const _0xd029ca=_0xb82515;let _0x41303d=new Map();_0x54ab30[_0xd029ca(0x24a)]((_0x4e2aeb,_0xe53583)=>{const _0x557897=_0xd029ca;_0x4e2aeb[_0x557897(0x433)]===_0x14a58d&&_0x41303d[_0x557897(0x1de)](_0xe53583,{..._0x4e2aeb,'color':this[_0x557897(0x329)][_0x557897(0x293)](_0x4e2aeb['color'])});}),this[_0xd029ca(0x1e9)]=_0x41303d,this[_0xd029ca(0x429)]();})));let _0x43841b=this['_context'][_0xb82515(0x144)];this[_0xb82515(0x365)]((0x0,n[_0xb82515(0x2f2)])(_0x43841b[_0xb82515(0x30b)][_0xb82515(0x32a)]((0x0,i[_0xb82515(0x2a1)])(this[_0xb82515(0x3c8)]))[_0xb82515(0x36e)](()=>{const _0x1a03ab=_0xb82515;this[_0x1a03ab(0x3b9)]||this[_0x1a03ab(0x429)]();})));}[_0x43dc4d(0x429)](){const _0x2815c6=_0x43dc4d;this[_0x2815c6(0x41d)]||(this[_0x2815c6(0x41d)]=!0x0,Promise[_0x2815c6(0x2ad)]()[_0x2815c6(0x2d7)](()=>{const _0x36a9b3=_0x2815c6;this[_0x36a9b3(0x41d)]=!0x1,this[_0x36a9b3(0x312)]();}));}[_0x43dc4d(0x312)](){const _0x3481bf=_0x43dc4d;var _0x188594;this['_removeCollabCursors']();let _0x5c3d42=(_0x188594=this[_0x3481bf(0x188)][_0x3481bf(0x330)]['pageManager'][_0x3481bf(0x2b5)]())==null?void 0x0:_0x188594[_0x3481bf(0x283)]();if(!_0x5c3d42)return;let _0x5a9022=[];if(this[_0x3481bf(0x1e9)][_0x3481bf(0x24a)]((_0x106a42,_0x1b44a9)=>{const _0x4166ff=_0x3481bf;_0x106a42['subUnitId']===_0x5c3d42&&_0x106a42['selectedIds'][_0x4166ff(0x24a)](_0x56bc85=>{const _0x204b8a=_0x4166ff;let _0x345052=(0x0,v[_0x204b8a(0x40d)])(_0x106a42[_0x204b8a(0x219)],_0x106a42['subUnitId'],_0x56bc85),_0x41286a=this[_0x204b8a(0x3bc)](_0x345052);if(!_0x41286a)return;let _0x174d2c=this[_0x204b8a(0x1a8)](_0x41286a);_0x5a9022[_0x204b8a(0x39f)](new pe(_0x204b8a(0x1b7)+_0x1b44a9+'-'+_0x56bc85,{..._0x106a42,'left':_0x174d2c[_0x204b8a(0x1c5)],'top':_0x174d2c[_0x204b8a(0x326)],'width':_0x174d2c[_0x204b8a(0x37d)],'height':_0x174d2c[_0x204b8a(0x1d5)],'angle':_0x41286a['angle'],'evented':!0x1,'zIndex':k}));});}),_0x5a9022[_0x3481bf(0x2aa)]===0x0){this[_0x3481bf(0x188)]['scene'][_0x3481bf(0x2f0)](!0x0);return;}this[_0x3481bf(0x3b9)]=!0x0,this['_context']['scene']['addObjects'](_0x5a9022,k),this[_0x3481bf(0x3b9)]=!0x1,this[_0x3481bf(0x1ed)]=new Set(_0x5a9022),this[_0x3481bf(0x188)][_0x3481bf(0x144)][_0x3481bf(0x2f0)](!0x0);}[_0x43dc4d(0x287)](){const _0xa0bb83=_0x43dc4d;let _0x3578f2=Array[_0xa0bb83(0x25e)](this[_0xa0bb83(0x1ed)]);if(_0x3578f2[_0xa0bb83(0x2aa)]===0x0)return;let _0x5dc832=this[_0xa0bb83(0x188)][_0xa0bb83(0x144)];_0xa0bb83(0x3e3)in _0x5dc832&&typeof _0x5dc832[_0xa0bb83(0x3e3)]=='function'?_0x5dc832[_0xa0bb83(0x3e3)](_0x3578f2):_0x3578f2['forEach'](_0x1d53c9=>{const _0x45d460=_0xa0bb83;_0x45d460(0x2b3)in _0x5dc832&&typeof _0x5dc832[_0x45d460(0x2b3)]==_0x45d460(0x295)?_0x5dc832['removeObject'](_0x1d53c9):_0x1d53c9[_0x45d460(0x453)]();}),this[_0xa0bb83(0x1ed)]['clear'](),_0x5dc832['makeDirty'](!0x0);}['_getSceneObjectByKey'](_0xcc2b6d){const _0x4a0398=_0x43dc4d;var _0x118f8e,_0x488fe0,_0x3c48d1;let _0x437966=this[_0x4a0398(0x188)]['scene'];return(_0x118f8e=(_0x488fe0=(_0x3c48d1=_0x437966['getObjectIncludeInGroup'])==null?void 0x0:_0x3c48d1['call'](_0x437966,_0xcc2b6d))==null?_0x437966[_0x4a0398(0x2e6)](_0xcc2b6d):_0x488fe0)==null?null:_0x118f8e;}[_0x43dc4d(0x1a8)](_0x58c5dc){const _0xa41477=_0x43dc4d;var _0x38405f,_0x49a63f;let _0xa39ea3=_0x58c5dc;return(_0x38405f=(_0x49a63f=_0xa39ea3[_0xa41477(0x145)])==null?void 0x0:_0x49a63f[_0xa41477(0x1e0)](_0xa39ea3))==null?{'left':_0x58c5dc['left'],'top':_0x58c5dc['top'],'width':_0x58c5dc[_0xa41477(0x37d)],'height':_0x58c5dc[_0xa41477(0x1d5)]}:_0x38405f;}};V=w([C(0x1,(0x0,n[_0x43dc4d(0x379)])(I)),C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x316)]))],V);let H=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x697671,_0x116591,_0x55766f,_0x1a5957,_0x45536e,_0x1ded08){const _0x2e9cea=_0x43dc4d;super(),this[_0x2e9cea(0x1d6)]=_0x697671,this['_localCacheService']=_0x116591,this['_collaborationUIEventService']=_0x55766f,this[_0x2e9cea(0x3d6)]=_0x1a5957,this[_0x2e9cea(0x449)]=_0x45536e,this['_localeService']=_0x1ded08,this['_setupBeforeClosingHandler'](),this[_0x2e9cea(0x1ff)]();}[_0x43dc4d(0x2a0)](){const _0x1d205d=_0x43dc4d;this[_0x1d205d(0x365)](this[_0x1d205d(0x1d6)][_0x1d205d(0x378)](()=>{const _0xead2ea=_0x1d205d;if(this[_0xead2ea(0x425)][_0xead2ea(0x3a9)][_0xead2ea(0x328)])return this[_0xead2ea(0x366)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x43dc4d(0x1ff)](){const _0x4f7d3c=_0x43dc4d;this[_0x4f7d3c(0x365)](this[_0x4f7d3c(0x317)]['event$'][_0x4f7d3c(0x36e)](_0x3e5f70=>{const _0x31c501=_0x4f7d3c;_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x235)]&&this[_0x31c501(0x3d6)][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)][_0x31c501(0x259)],'content':this[_0x31c501(0x366)]['t'](_0x31c501(0x356))}),_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x224)]&&this[_0x31c501(0x3d6)][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)][_0x31c501(0x259)],'content':this[_0x31c501(0x366)]['t'](_0x31c501(0x3cc))}),_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x167)]&&this[_0x31c501(0x449)][_0x31c501(0x212)]({'title':this[_0x31c501(0x366)]['t'](_0x31c501(0x338)),'content':this[_0x31c501(0x366)]['t'](_0x31c501(0x23d)),'type':_0x31c501(0x3e2),'duration':0x0}),_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x373)]&&this[_0x31c501(0x449)]['show']({'title':this[_0x31c501(0x366)]['t'](_0x31c501(0x201)),'content':this[_0x31c501(0x366)]['t'](_0x31c501(0x3c3)),'type':'error','duration':0x0}),_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x36b)]&&this['_messageService'][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)]['Warning'],'content':this[_0x31c501(0x366)]['t'](_0x3e5f70[_0x31c501(0x2a7)]||'')}),_0x3e5f70['id']===t[_0x31c501(0x1e2)]['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)][_0x31c501(0x259)],'content':this[_0x31c501(0x366)]['t']('collaboration-client-ui.session.will-retry')}),_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x1ae)]&&this[_0x31c501(0x3d6)][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)][_0x31c501(0x26b)],'content':this['_localeService']['t'](_0x31c501(0x262))}),_0x3e5f70['id']===t[_0x31c501(0x1e2)]['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)]['Error'],'content':this[_0x31c501(0x366)]['t'](_0x31c501(0x25a))});}));}};H=w([C(0x0,r[_0x43dc4d(0x2e7)]),C(0x1,t[_0x43dc4d(0x1d8)]),C(0x2,(0x0,n['Inject'])(t[_0x43dc4d(0x1da)])),C(0x3,r[_0x43dc4d(0x33a)]),C(0x4,r['INotificationService']),C(0x5,(0x0,n[_0x43dc4d(0x379)])(n['LocaleService']))],H);const U=(0x0,n[_0x43dc4d(0x2d2)])('uni.network.url-service');let W=class extends n[_0x43dc4d(0x1e5)]{constructor(_0x3a35a8,_0x2ff5df,_0x4acd0c,_0x445b68,_0x2acd4b){const _0x43646f=_0x43dc4d;super(),this[_0x43646f(0x23b)]=_0x3a35a8,this['_logService']=_0x2ff5df,this[_0x43646f(0x300)]=_0x4acd0c,this[_0x43646f(0x239)]=_0x445b68,_0x2acd4b?_0x2acd4b[_0x43646f(0x3fb)]()[_0x43646f(0x2d7)](()=>this[_0x43646f(0x299)]()):(this[_0x43646f(0x439)][_0x43646f(0x178)]('[CollaborationDataLoaderController]',_0x43646f(0x2b1)),this['_init']());}async['_init'](){const _0x28d8aa=_0x43dc4d;let _0x4edd36=this[_0x28d8aa(0x23b)][_0x28d8aa(0x33c)](_0x28d8aa(0x330)),_0x1c1b47=this[_0x28d8aa(0x23b)]['getParam'](_0x28d8aa(0x41c)),_0x5b2571=this['_urlService'][_0x28d8aa(0x33c)](_0x28d8aa(0x1bf));if(!_0x4edd36||!_0x1c1b47){this[_0x28d8aa(0x439)][_0x28d8aa(0x178)](_0x28d8aa(0x2cf),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x5e8648=await this['_dataLoaderService'][_0x28d8aa(0x1f9)](_0x4edd36,Number(_0x1c1b47),_0x5b2571);_0x5e8648&&_0x5e8648 instanceof n[_0x28d8aa(0x169)]&&this[_0x28d8aa(0x202)](_0x5e8648);}async['_setupSubUnitSync'](_0xb90b1){const _0x3a4ad6=_0x43dc4d;await this[_0x3a4ad6(0x2c6)](_0xb90b1),_0xb90b1[_0x3a4ad6(0x28e)][_0x3a4ad6(0x32a)]((0x0,i[_0x3a4ad6(0x2a1)])(this[_0x3a4ad6(0x3c8)]))['subscribe'](_0x3f27c9=>{const _0x2ab549=_0x3a4ad6;_0x3f27c9&&this[_0x2ab549(0x3b5)](_0x3f27c9);}),this[_0x3a4ad6(0x23b)][_0x3a4ad6(0x388)]['pipe']((0x0,i[_0x3a4ad6(0x2a1)])(this[_0x3a4ad6(0x3c8)]))[_0x3a4ad6(0x36e)](()=>this['_updateSubUnitFromURLParams'](_0xb90b1));}[_0x43dc4d(0x3b5)](_0x31c345,_0x1227b1=!0x1){const _0x518f3c=_0x43dc4d;let _0x17515f=this[_0x518f3c(0x23b)]['getParam'](_0x518f3c(0x1bf));_0x31c345[_0x518f3c(0x17b)]()!==_0x17515f&&this['_urlService']['setParam'](_0x518f3c(0x1bf),_0x31c345['getSheetId'](),_0x1227b1);}async[_0x43dc4d(0x2c6)](_0x5896b9){const _0x17ded7=_0x43dc4d;var _0x5cad6b;let _0x5aaea0=this['_urlService'][_0x17ded7(0x33c)](_0x17ded7(0x1bf));if(!_0x5aaea0||!_0x5896b9['getSheetBySheetId'](_0x5aaea0)){let _0x2c68f6=_0x5896b9[_0x17ded7(0x2ff)]()[0x0],_0x220716=_0x5896b9['getSheetBySheetId'](_0x2c68f6);if(!_0x220716)return;this[_0x17ded7(0x3b5)](_0x220716,!0x0),await this['_commandService'][_0x17ded7(0x1ea)](_[_0x17ded7(0x1ec)]['id'],{'unitId':_0x5896b9[_0x17ded7(0x319)](),'subUnitId':_0x2c68f6});return;}((_0x5cad6b=_0x5896b9['getActiveSheet']())==null?void 0x0:_0x5cad6b['getSheetId']())!==_0x5aaea0&&await this[_0x17ded7(0x300)][_0x17ded7(0x1ea)](_['SetWorksheetActivateCommand']['id'],{'unitId':_0x5896b9['getUnitId'](),'subUnitId':_0x5aaea0});}};W=w([C(0x0,U),C(0x1,n[_0x43dc4d(0x213)]),C(0x2,n[_0x43dc4d(0x27c)]),C(0x3,(0x0,n[_0x43dc4d(0x379)])(t['DataLoaderService'])),C(0x4,(0x0,n[_0x43dc4d(0x2b9)])(ee['IRemoteInstanceService']))],W);let G=class{constructor(_0x21bba4,_0x30f3bb){const _0x4c6453=_0x43dc4d;this[_0x4c6453(0x2bb)]=_0x21bba4,this[_0x4c6453(0x434)]=_0x30f3bb;}['transformIMECache'](_0x4c5f60){const _0x285ac5=_0x43dc4d;this[_0x285ac5(0x443)](_0x4c5f60),this[_0x285ac5(0x15d)](_0x4c5f60);}[_0x43dc4d(0x40e)](_0x484fcd){const _0x526cfe=_0x43dc4d;let {unitID:_0x2490c8}=_0x484fcd,{redoCache:_0x51238d}=this[_0x526cfe(0x434)][_0x526cfe(0x160)](_0x2490c8)[_0x526cfe(0x244)](p[_0x526cfe(0x376)])[_0x526cfe(0x43f)]();if(_0x51238d[_0x526cfe(0x2aa)]===0x0)return _0x484fcd;let _0x47a723=n['Tools'][_0x526cfe(0x452)](_0x484fcd[_0x526cfe(0x311)][0x0]);for(let _0x164307=0x0;_0x164307<_0x51238d[_0x526cfe(0x2aa)];_0x164307++){let _0x23d7c9={'id':'doc.mutation.rich-text-editing','params':{..._0x51238d[_0x164307]}},_0x41a3d3=this[_0x526cfe(0x2bb)]['transformMutation'](_0x47a723,_0x23d7c9,!0x1);if((0x0,u[_0x526cfe(0x3ea)])(_0x41a3d3))throw _0x41a3d3['error'];_0x47a723=_0x41a3d3[_0x526cfe(0x247)];}return{...n[_0x526cfe(0x24b)][_0x526cfe(0x452)](_0x484fcd),'mutations':[_0x47a723]};}[_0x43dc4d(0x443)](_0x7e160c){const _0x382262=_0x43dc4d;let {unitID:_0x22ae18}=_0x7e160c,_0x43a9ae=this[_0x382262(0x434)][_0x382262(0x160)](_0x22ae18)[_0x382262(0x244)](p['DocIMEInputManagerService']),{undoCache:_0xf61e3a,redoCache:_0xaba11b}=_0x43a9ae[_0x382262(0x43f)]();if(_0xf61e3a['length']===0x0||_0xaba11b[_0x382262(0x2aa)]===0x0)return;let _0x132294=[],_0x5b92da=[],_0x1f9016=n[_0x382262(0x24b)][_0x382262(0x452)](_0x7e160c[_0x382262(0x311)][0x0]),_0xdddb53=n['Tools'][_0x382262(0x452)](_0x7e160c[_0x382262(0x311)][0x0]);for(let _0x279248=_0xf61e3a[_0x382262(0x2aa)]-0x1;_0x279248>=0x0;_0x279248--){let _0x1118af={'id':_0x382262(0x226),'params':{..._0xf61e3a[_0x279248]}},_0x1fe0a7={'id':_0x382262(0x226),'params':{..._0xaba11b[_0x279248]}},_0x5d0221=this[_0x382262(0x2bb)][_0x382262(0x256)](_0x1f9016,_0x1118af,!0x1),_0x423671=this[_0x382262(0x2bb)][_0x382262(0x256)](_0xdddb53,_0x1fe0a7,!0x1);if((0x0,u['isTransformMutationFailure'])(_0x5d0221))throw _0x5d0221['error'];if((0x0,u['isTransformMutationFailure'])(_0x423671))throw _0x423671[_0x382262(0x3e2)];_0x132294[_0x382262(0x342)](_0x5d0221[_0x382262(0x3ec)]['params']),_0x5b92da[_0x382262(0x342)](_0x423671[_0x382262(0x3ec)][_0x382262(0x22c)]),_0x1f9016=_0x5d0221[_0x382262(0x247)],_0xdddb53=_0x423671[_0x382262(0x247)];}_0x43a9ae[_0x382262(0x225)]({'undoCache':_0x132294,'redoCache':_0x5b92da});}[_0x43dc4d(0x15d)](_0x5b5201){const _0x43e6ef=_0x43dc4d;let {unitID:_0x1e4e64}=_0x5b5201,_0x161125=this[_0x43e6ef(0x434)][_0x43e6ef(0x160)](_0x1e4e64)['with'](p[_0x43e6ef(0x376)]),_0x365354=_0x161125[_0x43e6ef(0x182)]();if(_0x365354==null)return;let _0x34ccb4=[{'id':_0x43e6ef(0x226),'params':{'unitId':_0x5b5201['unitID'],'actions':null,'textRanges':[_0x365354]}}],_0x312146=this['_transformService'][_0x43e6ef(0x156)](_0x5b5201,_0x34ccb4);if(!(0x0,u['isTransformMutationsWithChangesetSuccess'])(_0x312146))throw _0x312146['error'];let _0x17dff5=_0x312146[_0x43e6ef(0x3ec)][0x0][_0x43e6ef(0x22c)]['textRanges'];Array[_0x43e6ef(0x152)](_0x17dff5)&&_0x17dff5[_0x43e6ef(0x2aa)]&&_0x161125[_0x43e6ef(0x203)](_0x17dff5[0x0]);}};G=w([C(0x0,u[_0x43dc4d(0x40b)]),C(0x1,m[_0x43dc4d(0x1ef)])],G);let K=class{constructor(_0x437a3d,_0x2b5ddc,_0x3f674e){const _0xd7f186=_0x43dc4d;this[_0xd7f186(0x360)]=_0x437a3d,this[_0xd7f186(0x2bb)]=_0x2b5ddc,this['_docStateChangeManagerService']=_0x3f674e;}[_0x43dc4d(0x162)](_0x2e5025){const _0x56bd79=_0x43dc4d;this[_0x56bd79(0x1a2)](_0x2e5025);}[_0x43dc4d(0x40e)](_0x1e0df8){const _0x2876dd=_0x43dc4d;let {unitID:_0x29d79b}=_0x1e0df8,{collaboration:_0x224982}=this[_0x2876dd(0x42d)]['getStateCache'](_0x29d79b);if(_0x224982[_0x2876dd(0x2aa)]===0x0)return _0x1e0df8;let _0x4df962=n['Tools'][_0x2876dd(0x452)](_0x1e0df8[_0x2876dd(0x311)][0x0]);for(let _0x383071=0x0;_0x383071<_0x224982[_0x2876dd(0x2aa)];_0x383071++){let _0x2fde08={'id':_0x2876dd(0x226),'params':{'unitId':_0x224982[_0x383071]['unitId'],..._0x224982[_0x383071][_0x2876dd(0x3d0)]}},_0x48b1d8=this[_0x2876dd(0x2bb)]['transformMutation'](_0x4df962,_0x2fde08,!0x1);if((0x0,u['isTransformMutationFailure'])(_0x48b1d8))throw _0x48b1d8[_0x2876dd(0x3e2)];_0x4df962=_0x48b1d8[_0x2876dd(0x247)];}return{...n['Tools'][_0x2876dd(0x452)](_0x1e0df8),'mutations':[_0x4df962]};}['_transformHistoryAndStateStack'](_0x3c5a60){const _0xb4256c=_0x43dc4d;let {unitID:_0x3404e5}=_0x3c5a60,{history:_0x40317c,collaboration:_0x258175}=this[_0xb4256c(0x42d)][_0xb4256c(0x2d0)](_0x3404e5);if(_0x40317c[_0xb4256c(0x2aa)]===0x0&&_0x258175['length']===0x0)return;let _0x4d3b62=[],_0x2f4cc2=[],_0x3bdf2f=n[_0xb4256c(0x24b)]['deepClone'](_0x3c5a60[_0xb4256c(0x311)][0x0]),_0x498349=n[_0xb4256c(0x24b)][_0xb4256c(0x452)](_0x3c5a60[_0xb4256c(0x311)][0x0]);for(let _0x1cc203=_0x40317c['length']-0x1;_0x1cc203>=0x0;_0x1cc203--){let _0x2cc095={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x40317c[_0x1cc203]['unitId'],..._0x40317c[_0x1cc203][_0xb4256c(0x410)]}},_0x21e96d={'id':_0xb4256c(0x226),'params':{'unitId':_0x40317c[_0x1cc203]['unitId'],..._0x40317c[_0x1cc203][_0xb4256c(0x3d0)]}},_0x2a0dcb=this[_0xb4256c(0x2bb)][_0xb4256c(0x256)](_0x3bdf2f,_0x2cc095,!0x1),_0x48514c=this[_0xb4256c(0x2bb)]['transformMutation'](_0x498349,_0x21e96d,!0x1);if((0x0,u[_0xb4256c(0x3ea)])(_0x2a0dcb))throw _0x2a0dcb['error'];if((0x0,u[_0xb4256c(0x3ea)])(_0x48514c))throw _0x48514c[_0xb4256c(0x3e2)];_0x4d3b62['unshift']({..._0x40317c[_0x1cc203],'undoState':_0x2a0dcb[_0xb4256c(0x3ec)]['params'],'redoState':_0x48514c[_0xb4256c(0x3ec)]['params']}),_0x3bdf2f=_0x2a0dcb['m1Prime'],_0x498349=_0x48514c[_0xb4256c(0x247)];}_0x3bdf2f=n['Tools'][_0xb4256c(0x452)](_0x3c5a60[_0xb4256c(0x311)][0x0]),_0x498349=n[_0xb4256c(0x24b)]['deepClone'](_0x3c5a60[_0xb4256c(0x311)][0x0]);for(let _0x56d287=_0x258175[_0xb4256c(0x2aa)]-0x1;_0x56d287>=0x0;_0x56d287--){let _0x361334={'id':_0xb4256c(0x226),'params':{'unitId':_0x258175[_0x56d287][_0xb4256c(0x219)],..._0x258175[_0x56d287][_0xb4256c(0x410)]}},_0x50a7b8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x258175[_0x56d287][_0xb4256c(0x219)],..._0x258175[_0x56d287][_0xb4256c(0x3d0)]}},_0x1c44da=this[_0xb4256c(0x2bb)][_0xb4256c(0x256)](_0x3bdf2f,_0x361334,!0x1),_0x4eb9de=this[_0xb4256c(0x2bb)][_0xb4256c(0x256)](_0x498349,_0x50a7b8,!0x1);if((0x0,u[_0xb4256c(0x3ea)])(_0x1c44da))throw _0x1c44da['error'];if((0x0,u[_0xb4256c(0x3ea)])(_0x4eb9de))throw _0x4eb9de[_0xb4256c(0x3e2)];_0x2f4cc2[_0xb4256c(0x342)]({..._0x258175[_0x56d287],'undoState':_0x1c44da[_0xb4256c(0x3ec)]['params'],'redoState':_0x4eb9de[_0xb4256c(0x3ec)][_0xb4256c(0x22c)]}),_0x3bdf2f=_0x1c44da[_0xb4256c(0x247)],_0x498349=_0x4eb9de[_0xb4256c(0x247)];}this['_docStateChangeManagerService']['setStateCache'](_0x3404e5,{'history':_0x4d3b62,'collaboration':_0x2f4cc2});}};K=w([C(0x0,(0x0,n['Inject'])(n['Injector'])),C(0x1,u[_0x43dc4d(0x40b)]),C(0x2,(0x0,n['Inject'])(f[_0x43dc4d(0x2ee)]))],K);let q=class{constructor(_0x19e05d,_0x2525df){const _0x4cf6da=_0x43dc4d;this[_0x4cf6da(0x360)]=_0x19e05d,this[_0x4cf6da(0x2bb)]=_0x2525df;}['transformSelections'](_0x563647){const _0x17ef53=_0x43dc4d;var _0x404a24;let _0x279f57=this[_0x17ef53(0x360)][_0x17ef53(0x2e2)](f[_0x17ef53(0x414)]),_0x50bfee=(_0x404a24=_0x279f57[_0x17ef53(0x1f6)]())==null?[]:_0x404a24;if(_0x50bfee['length']===0x0)return;let _0x45d8c9=_0x563647['unitID'],_0x32ccde=[{'id':_0x17ef53(0x226),'params':{'unitId':_0x45d8c9,'actions':null,'textRanges':_0x50bfee}}],_0x1e2e1e=this[_0x17ef53(0x2bb)][_0x17ef53(0x156)](_0x563647,_0x32ccde);if(!(0x0,u[_0x17ef53(0x37b)])(_0x1e2e1e))throw _0x1e2e1e[_0x17ef53(0x3e2)];let _0x1bf67b=_0x1e2e1e[_0x17ef53(0x3ec)][0x0]['params'][_0x17ef53(0x374)];Array[_0x17ef53(0x152)](_0x1bf67b)&&_0x1bf67b[_0x17ef53(0x2aa)]&&_0x279f57[_0x17ef53(0x2ab)](_0x1bf67b,{'unitId':_0x45d8c9,'subUnitId':_0x45d8c9},!0x1);}};q=w([C(0x0,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x1,u[_0x43dc4d(0x40b)])],q);let J=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x2b1762,_0x325160,_0x3a05de,_0x3f5907,_0x565e72,_0x5d779d,_0x3f1e4c){const _0x9583a7=_0x43dc4d;super(),this['_collaborationController']=_0x2b1762,this['_docTransformIMECacheService']=_0x325160,this['_docTransformStateCacheService']=_0x3a05de,this[_0x9583a7(0x14e)]=_0x3f5907,this[_0x9583a7(0x41f)]=_0x565e72,this[_0x9583a7(0x3d6)]=_0x5d779d,this['_localeService']=_0x3f1e4c,S(this,_0x9583a7(0x24d),new i[(_0x9583a7(0x344))](t[_0x9583a7(0x151)][_0x9583a7(0x180)])),this[_0x9583a7(0x2de)]();}['_initEntityListener'](){const _0x2b98c3=_0x43dc4d;this[_0x2b98c3(0x365)](this[_0x2b98c3(0x16d)]['entityInit$'][_0x2b98c3(0x36e)](_0x484071=>{const _0x1f0ffa=_0x2b98c3;_0x484071 instanceof t[_0x1f0ffa(0x36a)]&&_0x484071['addHandlerCallback']({'onTransformIME':_0x29b326=>this[_0x1f0ffa(0x40a)][_0x1f0ffa(0x42c)](_0x29b326),'onTransformState':_0x468bd2=>this['_docTransformStateCacheService'][_0x1f0ffa(0x162)](_0x468bd2),'onTransformSelections':_0x18652a=>this[_0x1f0ffa(0x14e)]['transformSelections'](_0x18652a),'onSyncEditingCollabCursor':_0x2d9379=>this[_0x1f0ffa(0x41f)][_0x1f0ffa(0x205)](_0x2d9379),'onTransformRemoteChangesetByIMECache':_0x2005a7=>this[_0x1f0ffa(0x40a)]['transformRemoteChangeset'](_0x2005a7),'onTransformRemoteChangesetByStateCache':_0x2929fd=>this[_0x1f0ffa(0x2ec)][_0x1f0ffa(0x40e)](_0x2929fd)});}));}};function _0x196d(_0x4c5994,_0x116498){_0x4c5994=_0x4c5994-0x13f;const _0x1e5ce8=_0x1e5c();let _0x196ddf=_0x1e5ce8[_0x4c5994];return _0x196ddf;}J=w([C(0x0,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x34d)])),C(0x1,(0x0,n['Inject'])(G)),C(0x2,(0x0,n[_0x43dc4d(0x379)])(K)),C(0x3,(0x0,n[_0x43dc4d(0x379)])(q)),C(0x4,(0x0,n[_0x43dc4d(0x379)])(M)),C(0x5,r[_0x43dc4d(0x33a)]),C(0x6,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x252)]))],J);let Y=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x29bc37,_0x497cfe,_0x194c5a,_0x5a5062){const _0x5bfb52=_0x43dc4d;super(),this[_0x5bfb52(0x360)]=_0x29bc37,this['_httpService']=_0x497cfe,this[_0x5bfb52(0x439)]=_0x194c5a,this[_0x5bfb52(0x3e4)]=_0x5a5062,S(this,_0x5bfb52(0x349),void 0x0),this[_0x5bfb52(0x299)]();}[_0x43dc4d(0x299)](){const _0x329637=_0x43dc4d;this[_0x329637(0x355)](),this['_initUnhandledRejectionListener'](),this[_0x329637(0x3f4)](),this[_0x329637(0x2cc)]();}['_initUserListener'](){const _0x1f60b5=_0x43dc4d;this[_0x1f60b5(0x365)](this['_collaborationSessionService'][_0x1f60b5(0x179)][_0x1f60b5(0x36e)](_0x1f0c21=>{this['_memberID']=_0x1f0c21==null?void 0x0:_0x1f0c21['memberID'];}));}['_initWindowErrorListener'](){const _0x2ac8f=_0x43dc4d;let _0x45f43a=_0x2dd5ca=>{const _0x33597c=_0x196d;var _0x196c94;this[_0x33597c(0x39c)](_0x33597c(0x3e2),_0x33597c(0x296)+_0x2dd5ca[_0x33597c(0x22d)]+_0x33597c(0x395)+_0x2dd5ca[_0x33597c(0x33e)]+':'+_0x2dd5ca[_0x33597c(0x257)]+':'+_0x2dd5ca[_0x33597c(0x31a)]+'\x0a'+(((_0x196c94=_0x2dd5ca['error'])==null?void 0x0:_0x196c94[_0x33597c(0x16a)])||''));};window['addEventListener'](_0x2ac8f(0x3e2),_0x45f43a),this[_0x2ac8f(0x365)](()=>{const _0x5e2473=_0x2ac8f;window[_0x5e2473(0x3f2)](_0x5e2473(0x3e2),_0x45f43a);});}['_initUnhandledRejectionListener'](){const _0x5d55a6=_0x43dc4d;let _0xde55a8=_0x58a9a9=>{const _0xf0c1bd=_0x196d;this[_0xf0c1bd(0x39c)](_0xf0c1bd(0x3e2),_0xf0c1bd(0x419)+_0x58a9a9[_0xf0c1bd(0x25f)]);};window['addEventListener']('unhandledrejection',_0xde55a8),this[_0x5d55a6(0x365)](()=>{window['removeEventListener']('unhandledrejection',_0xde55a8);});}[_0x43dc4d(0x3f4)](){const _0x2b35f0=_0x43dc4d;let _0x1e48a3=this[_0x2b35f0(0x439)][_0x2b35f0(0x3e2)][_0x2b35f0(0x23a)](this[_0x2b35f0(0x439)]);this['_logService'][_0x2b35f0(0x3e2)]=(..._0x2e6c5e)=>{const _0xbe314d=_0x2b35f0;let _0x550136=_0x2e6c5e[_0xbe314d(0x1fa)](_0x4d7349=>_0x4d7349 instanceof Error?_0x4d7349[_0xbe314d(0x22d)]+'\x0a'+_0x4d7349[_0xbe314d(0x16a)]:String(_0x4d7349))['join']('\x20');this[_0xbe314d(0x39c)](_0xbe314d(0x3e2),'[LogService\x20Error]:\x20'+_0x550136),_0x1e48a3(..._0x2e6c5e);},this['disposeWithMe'](()=>{const _0x36fb7b=_0x2b35f0;this['_logService'][_0x36fb7b(0x3e2)]=_0x1e48a3;});}[_0x43dc4d(0x39c)](_0x44ecdf,_0x3abe43){const _0x1ce043=_0x43dc4d;try{let _0x1ae3f6={'userId':this[_0x1ce043(0x349)],'logLabel':_0x44ecdf,'content':_0x3abe43};this[_0x1ce043(0x24e)][_0x1ce043(0x27e)](_0x1ce043(0x422),{'body':_0x1ae3f6})['catch'](()=>{});}catch{}}};Y=w([C(0x0,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x1,(0x0,n['Inject'])(h['HTTPService'])),C(0x2,n[_0x43dc4d(0x213)]),C(0x3,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x393)]))],Y);function Ce({state$:_0x315bf2,interactionBlocked$:_0x509c51}){const _0x19f69d=_0x43dc4d;return(0x0,l[_0x19f69d(0x38d)])(l[_0x19f69d(0x273)],{'children':[(0x0,r[_0x19f69d(0x20d)])(_0x509c51,!0x1,!0x0)&&(0x0,l[_0x19f69d(0x309)])(_0x19f69d(0x223),{'data-u-comp':'snapshot-loading-interaction-guard','aria-hidden':!0x0,'className':'univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait'}),(0x0,l[_0x19f69d(0x309)])(we,{'state$':_0x315bf2})]});}function we({state$:_0x5dbd5b}){const _0xd7f47f=_0x43dc4d;let _0x10c6c2=(0x0,r[_0xd7f47f(0x20d)])(_0x5dbd5b,null,!0x0);return _0x10c6c2?(0x0,l[_0xd7f47f(0x38d)])('div',{'data-u-comp':_0xd7f47f(0x19a),'role':'alert','className':_0xd7f47f(0x1c7),'children':[(0x0,l[_0xd7f47f(0x309)])(s[_0xd7f47f(0x1ab)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,l[_0xd7f47f(0x309)])('span',{'children':_0x10c6c2['content']}),(0x0,l[_0xd7f47f(0x309)])(o[_0xd7f47f(0x2b2)],{'size':_0xd7f47f(0x2a9),'variant':_0xd7f47f(0x447),'onClick':()=>window[_0xd7f47f(0x3c6)][_0xd7f47f(0x2e4)](),'children':_0x10c6c2['refreshLabel']})]}):null;}const X=_0x43dc4d(0x142);let Z=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x230f01,_0x2deb37,_0x2da022,_0x233786,_0x351736,_0x3180f1,_0x4b114c,_0x266205){const _0x54a373=_0x43dc4d;super(),this['_snapshotLoadingService']=_0x230f01,this[_0x54a373(0x3d6)]=_0x2deb37,this[_0x54a373(0x366)]=_0x2da022,this['_injector']=_0x233786,this[_0x54a373(0x1af)]=_0x351736,this[_0x54a373(0x181)]=_0x4b114c,this[_0x54a373(0x23b)]=_0x266205,S(this,_0x54a373(0x3de),new i[(_0x54a373(0x344))](null)),S(this,_0x54a373(0x1a5),new i[(_0x54a373(0x344))](!0x1)),S(this,_0x54a373(0x409),new Set()),S(this,_0x54a373(0x3e1),new Map()),S(this,_0x54a373(0x2f7),new Set()),S(this,_0x54a373(0x1df),new Map()),S(this,_0x54a373(0x314),void 0x0),S(this,_0x54a373(0x413),void 0x0),S(this,_0x54a373(0x161),void 0x0),S(this,'timeoutState$',this[_0x54a373(0x3de)][_0x54a373(0x34b)]());let _0x5dee23=()=>(0x0,c[_0x54a373(0x383)])(Ce,{'state$':this['timeoutState$'],'interactionBlocked$':this[_0x54a373(0x1a5)]});this[_0x54a373(0x365)](_0x3180f1[_0x54a373(0x1be)](r[_0x54a373(0x26a)][_0x54a373(0x18d)],()=>(0x0,r[_0x54a373(0x2c4)])(_0x5dee23,this[_0x54a373(0x360)]))),this['disposeWithMe'](this[_0x54a373(0x310)][_0x54a373(0x335)][_0x54a373(0x36e)](_0x2c5c8f=>{const _0x5dde75=_0x54a373;this[_0x5dde75(0x1df)]=_0x2c5c8f,_0x2c5c8f[_0x5dde75(0x24a)](_0x4fb5e2=>{const _0x22d76e=_0x5dde75;this['_updateMessage'](_0x4fb5e2),this[_0x22d76e(0x266)](_0x4fb5e2);});})),this[_0x54a373(0x365)](this[_0x54a373(0x23b)][_0x54a373(0x388)][_0x54a373(0x36e)](()=>{const _0x258661=_0x54a373;this[_0x258661(0x1df)][_0x258661(0x24a)](_0x4f28b3=>{const _0x228bd1=_0x258661;this['_updateMessage'](_0x4f28b3),this[_0x228bd1(0x266)](_0x4f28b3);});}));}[_0x43dc4d(0x453)](){const _0x339154=_0x43dc4d;var _0x5a20e0;if(this[_0x339154(0x409)][_0x339154(0x24a)](_0x47cd33=>this[_0x339154(0x3d6)][_0x339154(0x341)](_0x47cd33)),this[_0x339154(0x409)][_0x339154(0x38a)](),this[_0x339154(0x314)]){var _0x118353;(_0x118353=this[_0x339154(0x161)])==null||_0x118353['hide'](this['_previewUnitId']);}this[_0x339154(0x314)]=void 0x0,this['_blockProgressWatches'][_0x339154(0x24a)](({timeoutId:_0x2cb860})=>clearTimeout(_0x2cb860)),this['_blockProgressWatches']['clear'](),(_0x5a20e0=this[_0x339154(0x413)])==null||_0x5a20e0[_0x339154(0x453)](),this[_0x339154(0x413)]=void 0x0,this[_0x339154(0x3de)][_0x339154(0x2ca)](),this['_interactionBlocked$'][_0x339154(0x2ca)](),super[_0x339154(0x453)]();}[_0x43dc4d(0x390)](_0x17e9da){const _0x3d78f7=_0x43dc4d;let _0x49bb71=''+X+_0x17e9da[_0x3d78f7(0x219)];if(_0x17e9da[_0x3d78f7(0x3e8)]===u[_0x3d78f7(0x3a4)][_0x3d78f7(0x291)]){if(this[_0x3d78f7(0x29e)](_0x17e9da['unitId']),this[_0x3d78f7(0x32e)](_0x17e9da[_0x3d78f7(0x219)])&&this[_0x3d78f7(0x314)]===_0x17e9da['unitId']){this[_0x3d78f7(0x3d6)][_0x3d78f7(0x212)]({'id':_0x49bb71,'type':o[_0x3d78f7(0x3fe)][_0x3d78f7(0x28d)],'duration':0x1/0x0,'content':this[_0x3d78f7(0x366)]['t'](_0x3d78f7(0x2e1))}),this[_0x3d78f7(0x409)][_0x3d78f7(0x1a1)](_0x49bb71);return;}this[_0x3d78f7(0x272)](_0x17e9da['unitId']),this[_0x3d78f7(0x3d6)]['remove'](_0x49bb71),this[_0x3d78f7(0x409)]['delete'](_0x49bb71);return;}if(!this[_0x3d78f7(0x32e)](_0x17e9da['unitId'])){this[_0x3d78f7(0x29e)](_0x17e9da[_0x3d78f7(0x219)]),this[_0x3d78f7(0x272)](_0x17e9da[_0x3d78f7(0x219)]),this['_messageService']['remove'](_0x49bb71),this[_0x3d78f7(0x409)][_0x3d78f7(0x245)](_0x49bb71);return;}if(_0x17e9da[_0x3d78f7(0x3e8)]===u['SnapshotLoadStage']['ERROR']){this[_0x3d78f7(0x29e)](_0x17e9da[_0x3d78f7(0x219)]),this[_0x3d78f7(0x272)](_0x17e9da[_0x3d78f7(0x219)]),this[_0x3d78f7(0x3d6)][_0x3d78f7(0x212)]({'id':_0x49bb71,'type':o['MessageType'][_0x3d78f7(0x26b)],'content':this[_0x3d78f7(0x366)]['t']('collaboration-client-ui.session.connection-failed')}),this[_0x3d78f7(0x409)][_0x3d78f7(0x245)](_0x49bb71);return;}if(_0x17e9da[_0x3d78f7(0x3e8)]!==u[_0x3d78f7(0x3a4)][_0x3d78f7(0x19e)]||_0x17e9da[_0x3d78f7(0x40f)]<=0xa){this[_0x3d78f7(0x29e)](_0x17e9da['unitId']),this[_0x3d78f7(0x3d6)]['remove'](_0x49bb71),this[_0x3d78f7(0x409)]['delete'](_0x49bb71);return;}this[_0x3d78f7(0x339)](_0x17e9da)||(this[_0x3d78f7(0x3d6)][_0x3d78f7(0x212)]({'id':_0x49bb71,'type':o[_0x3d78f7(0x3fe)][_0x3d78f7(0x28d)],'duration':0x1/0x0,'content':this[_0x3d78f7(0x366)]['t'](_0x3d78f7(0x2d6))+'\x20'+_0x17e9da[_0x3d78f7(0x41a)]+'/'+_0x17e9da[_0x3d78f7(0x40f)]}),this[_0x3d78f7(0x409)][_0x3d78f7(0x1a1)](_0x49bb71));}[_0x43dc4d(0x339)](_0x26834d){const _0x44a7c3=_0x43dc4d;let _0x44e87f=this[_0x44a7c3(0x3e1)][_0x44a7c3(0x2e2)](_0x26834d[_0x44a7c3(0x219)]);if((_0x44e87f==null?void 0x0:_0x44e87f['loadedBlocks'])===_0x26834d[_0x44a7c3(0x41a)])return _0x44e87f[_0x44a7c3(0x143)];this[_0x44a7c3(0x29e)](_0x26834d[_0x44a7c3(0x219)]);let _0x392031=setTimeout(()=>{const _0x3ad816=_0x44a7c3;let _0x555ffc=this['_blockProgressWatches'][_0x3ad816(0x2e2)](_0x26834d[_0x3ad816(0x219)]);if(!_0x555ffc||_0x555ffc[_0x3ad816(0x165)]!==_0x392031)return;_0x555ffc[_0x3ad816(0x143)]=!0x0;let _0x50d23c=''+X+_0x26834d['unitId'];this['_messageService'][_0x3ad816(0x341)](_0x50d23c),this['_messageIds']['delete'](_0x50d23c),this[_0x3ad816(0x3de)][_0x3ad816(0x176)]({'unitId':_0x26834d[_0x3ad816(0x219)],'content':this[_0x3ad816(0x366)]['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x26834d['loadedBlocks']),String(_0x26834d['totalBlocks'])),'refreshLabel':this[_0x3ad816(0x366)]['t'](_0x3ad816(0x2db))});},0xea60);return this[_0x44a7c3(0x3e1)][_0x44a7c3(0x1de)](_0x26834d[_0x44a7c3(0x219)],{'loadedBlocks':_0x26834d[_0x44a7c3(0x41a)],'timedOut':!0x1,'timeoutId':_0x392031}),!0x1;}['_clearBlockProgressWatch'](_0x2dddf1){const _0x5daf13=_0x43dc4d;let _0x5596d0=this[_0x5daf13(0x3e1)]['get'](_0x2dddf1);_0x5596d0&&(clearTimeout(_0x5596d0[_0x5daf13(0x165)]),this['_blockProgressWatches'][_0x5daf13(0x245)](_0x2dddf1),this[_0x5daf13(0x272)](_0x2dddf1));}['_clearTimeoutState'](_0x2a13d1){const _0x23233a=_0x43dc4d;var _0x47210a;((_0x47210a=this['_timeoutState$'][_0x23233a(0x25d)])==null?void 0x0:_0x47210a[_0x23233a(0x219)])===_0x2a13d1&&this[_0x23233a(0x3de)]['next'](null);}[_0x43dc4d(0x266)](_0xea3a6c){const _0x17acae=_0x43dc4d;if(_0xea3a6c[_0x17acae(0x3e8)]===u[_0x17acae(0x3a4)][_0x17acae(0x2cd)]&&this[_0x17acae(0x2f7)][_0x17acae(0x245)](_0xea3a6c[_0x17acae(0x219)]),!this[_0x17acae(0x32e)](_0xea3a6c[_0x17acae(0x219)])){this[_0x17acae(0x21d)](_0xea3a6c[_0x17acae(0x219)]);return;}if(_0xea3a6c[_0x17acae(0x3e8)]===u['SnapshotLoadStage']['ERROR']||_0xea3a6c[_0x17acae(0x40f)]<=0xa){this[_0x17acae(0x21d)](_0xea3a6c[_0x17acae(0x219)]);return;}if(_0xea3a6c['stage']===u[_0x17acae(0x3a4)][_0x17acae(0x291)]){this[_0x17acae(0x3bf)](_0xea3a6c['unitId']);return;}if(_0xea3a6c[_0x17acae(0x3e8)]===u[_0x17acae(0x3a4)][_0x17acae(0x19e)]&&_0xea3a6c['workbookShell']&&_0xea3a6c[_0x17acae(0x44d)]){let _0x20f04d=this[_0x17acae(0x346)]();if(!_0x20f04d)return;this[_0x17acae(0x314)]&&this['_previewUnitId']!==_0xea3a6c['unitId']&&this[_0x17acae(0x21d)](this[_0x17acae(0x314)]),_0x20f04d[_0x17acae(0x197)](_0xea3a6c[_0x17acae(0x1c4)],_0xea3a6c[_0x17acae(0x44d)]),this[_0x17acae(0x314)]=_0xea3a6c[_0x17acae(0x219)],this[_0x17acae(0x3c1)](!0x0),_0xea3a6c[_0x17acae(0x3c9)]&&_0x20f04d[_0x17acae(0x212)](_0xea3a6c[_0x17acae(0x1c4)],_0xea3a6c[_0x17acae(0x44d)],_0xea3a6c[_0x17acae(0x3f8)]);}}['_handoffPreview'](_0x29de9b){const _0x2c833a=_0x43dc4d;if(this[_0x2c833a(0x314)]!==_0x29de9b||this[_0x2c833a(0x2f7)][_0x2c833a(0x14f)](_0x29de9b))return;let _0x4bb4df=this[_0x2c833a(0x161)];_0x4bb4df&&(this['_handoffUnitIds'][_0x2c833a(0x1a1)](_0x29de9b),_0x4bb4df[_0x2c833a(0x21b)](_0x29de9b,0x2710)['then'](_0x2b9f45=>{const _0x2926be=_0x2c833a;if(this['_previewUnitId']!==_0x29de9b)return;if(_0x2b9f45){let _0x339799=''+X+_0x29de9b;this[_0x2926be(0x3d6)]['remove'](_0x339799),this[_0x2926be(0x409)][_0x2926be(0x245)](_0x339799),this[_0x2926be(0x314)]=void 0x0,this[_0x2926be(0x3c1)](!0x1);return;}let _0x5d8cb3=''+X+_0x29de9b;this[_0x2926be(0x3d6)][_0x2926be(0x341)](_0x5d8cb3),this['_messageIds'][_0x2926be(0x245)](_0x5d8cb3),this[_0x2926be(0x3de)][_0x2926be(0x176)]({'unitId':_0x29de9b,'content':this[_0x2926be(0x366)]['t'](_0x2926be(0x262)),'refreshLabel':this[_0x2926be(0x366)]['t'](_0x2926be(0x2db))});}));}[_0x43dc4d(0x21d)](_0x342daf){const _0x9ec437=_0x43dc4d;var _0x4b190f;this[_0x9ec437(0x314)]===_0x342daf&&((_0x4b190f=this[_0x9ec437(0x161)])==null||_0x4b190f[_0x9ec437(0x22e)](_0x342daf),this[_0x9ec437(0x314)]=void 0x0,this[_0x9ec437(0x3c1)](!0x1));}[_0x43dc4d(0x3c1)](_0x5c91fc){const _0x3a7245=_0x43dc4d;if(_0x5c91fc!==this[_0x3a7245(0x1a5)][_0x3a7245(0x25d)]){if(_0x5c91fc)this[_0x3a7245(0x413)]=this['_shortcutService']['forceDisable']();else{var _0x66d99a;(_0x66d99a=this[_0x3a7245(0x413)])==null||_0x66d99a[_0x3a7245(0x453)](),this[_0x3a7245(0x413)]=void 0x0;}this[_0x3a7245(0x1a5)][_0x3a7245(0x176)](_0x5c91fc);}}[_0x43dc4d(0x32e)](_0x520f92){const _0x3592c6=_0x43dc4d;let _0x169d15=this[_0x3592c6(0x23b)][_0x3592c6(0x33c)](_0x3592c6(0x330));return!_0x169d15||_0x169d15===_0x520f92;}[_0x43dc4d(0x346)](){const _0x3a2b92=_0x43dc4d;return this[_0x3a2b92(0x161)]?this['_sheetLoadingRenderService']:(this[_0x3a2b92(0x1af)]['startPluginsForType'](n[_0x3a2b92(0x35f)][_0x3a2b92(0x271)]),this[_0x3a2b92(0x360)][_0x3a2b92(0x14f)](y[_0x3a2b92(0x192)])&&(this[_0x3a2b92(0x161)]=this[_0x3a2b92(0x360)][_0x3a2b92(0x2e2)](y[_0x3a2b92(0x192)])),this[_0x3a2b92(0x161)]);}};Z=w([C(0x0,(0x0,n['Inject'])(u[_0x43dc4d(0x3ee)])),C(0x1,r['IMessageService']),C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x252)])),C(0x3,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x4,(0x0,n[_0x43dc4d(0x379)])(n['PluginService'])),C(0x5,r[_0x43dc4d(0x432)]),C(0x6,r[_0x43dc4d(0x307)]),C(0x7,U)],Z);function Te(_0x2da223){const _0x15fef7=_0x43dc4d;var _0x58703c,_0x29b001;let _0x9198c7=(_0x58703c=_0x2da223['stageInfo'])==null?void 0x0:_0x58703c['stage'],_0x3d161f=((_0x29b001=_0x2da223['stageInfo'])==null?void 0x0:_0x29b001['totalFormulasToCalculate'])||0x0;return _0x9198c7===g[_0x15fef7(0x238)][_0x15fef7(0x3da)]&&_0x3d161f>0x0;}function Ee(_0x460c11){const _0x423872=_0x43dc4d;return _0x460c11[_0x423872(0x3af)]===g[_0x423872(0x231)]['SUCCESS'];}let Q=class extends n['Disposable']{constructor(_0x436dc2,_0x1fe517,_0x54d013,_0x11e111,_0x50fe53,_0x3087c2,_0x28ebc2){const _0x354bf7=_0x43dc4d;super(),this[_0x354bf7(0x3d6)]=_0x436dc2,this[_0x354bf7(0x300)]=_0x1fe517,this['_configService']=_0x54d013,this[_0x354bf7(0x24e)]=_0x11e111,this[_0x354bf7(0x455)]=_0x50fe53,this[_0x354bf7(0x439)]=_0x3087c2,this[_0x354bf7(0x366)]=_0x28ebc2,S(this,_0x354bf7(0x23f),null),S(this,_0x354bf7(0x292),0x0),S(this,'_currentUsage',0x0),S(this,'_taskIds',[]),S(this,_0x354bf7(0x3a0),0x0),this[_0x354bf7(0x3fc)]();}[_0x43dc4d(0x3fc)](){const _0xb7b4c6=_0x43dc4d;this['disposeWithMe'](this[_0xb7b4c6(0x300)][_0xb7b4c6(0x2f9)]((_0x304a23,_0x3af761)=>{const _0x4bc4be=_0xb7b4c6;var _0x3107c6;if(_0x304a23['id']!==g[_0x4bc4be(0x2da)]['id'])return;let _0x1aa3b0=_0x304a23[_0x4bc4be(0x22c)];if(this[_0x4bc4be(0x23c)]((_0x3107c6=_0x1aa3b0[_0x4bc4be(0x251)])==null?[]:_0x3107c6)&&!this[_0x4bc4be(0x37a)]())throw this[_0x4bc4be(0x243)](_0x304a23,_0x3af761),this[_0x4bc4be(0x2cb)](),new n['CanceledError']();})),this[_0xb7b4c6(0x365)](this['_commandService']['onCommandExecuted']((_0xd473e,_0x16969d)=>{const _0x7aaa6d=_0xb7b4c6;if(_0xd473e['id']!==g[_0x7aaa6d(0x1d2)]['id'])return;let _0x12240a=_0xd473e['params'];if(Te(_0x12240a)){let _0x3126fe=(0x0,n[_0x7aaa6d(0x3b6)])();this[_0x7aaa6d(0x3e0)][_0x7aaa6d(0x39f)](_0x3126fe),this['_startCalculationLimit'](_0x3126fe);}else{if(Ee(_0x12240a)&&this['_taskIds'][_0x7aaa6d(0x2aa)]>0x0){let _0x17fcce=this['_taskIds'][_0x7aaa6d(0x321)]();this[_0x7aaa6d(0x37c)](_0x17fcce);}}}));}[_0x43dc4d(0x453)](){const _0x5153a2=_0x43dc4d;super[_0x5153a2(0x453)](),this[_0x5153a2(0x275)](),this[_0x5153a2(0x3e0)]=[],this[_0x5153a2(0x2ed)]=0x0,this[_0x5153a2(0x292)]=0x0,this[_0x5153a2(0x3a0)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x16d54e,_0x45eccd){const _0x5d8484=_0x43dc4d;for(let _0x3fab42=0x0;_0x3fab42<0x1e;_0x3fab42++)try{if(await this['_getFormulaLimitStatus'](),this[_0x5d8484(0x37a)]()){this[_0x5d8484(0x172)](_0x16d54e,_0x45eccd),this[_0x5d8484(0x3d6)][_0x5d8484(0x212)]({'content':this[_0x5d8484(0x366)]['t'](_0x5d8484(0x2d5)),'type':o[_0x5d8484(0x3fe)][_0x5d8484(0x332)]});return;}await new Promise(_0x45ab79=>{const _0x5aae94=_0x5d8484;this[_0x5aae94(0x23f)]=window[_0x5aae94(0x21f)](_0x45ab79,0x3e8);});}catch(_0x2e1a10){this[_0x5d8484(0x439)][_0x5d8484(0x3e2)](_0x2e1a10);}this[_0x5d8484(0x3d6)][_0x5d8484(0x212)]({'content':this['_localeService']['t'](_0x5d8484(0x44a)),'type':o[_0x5d8484(0x3fe)][_0x5d8484(0x26b)]});}[_0x43dc4d(0x172)](_0x8d023b,_0x44b3ab){const _0x2d2b4=_0x43dc4d;try{this['_commandService']['executeCommand'](_0x8d023b['id'],_0x8d023b[_0x2d2b4(0x22c)],_0x44b3ab);}catch(_0x3a0bcc){this[_0x2d2b4(0x439)][_0x2d2b4(0x3e2)](_0x3a0bcc);}}[_0x43dc4d(0x189)](_0x5b4c8e,_0x4b5876){const _0xd1edf7=_0x43dc4d;_0x4b5876<this[_0xd1edf7(0x3a0)]||(this['_lastResponseTimestamp']=_0x4b5876,this[_0xd1edf7(0x292)]=Number['parseInt'](_0x5b4c8e['maxFormulaLimit']),this[_0xd1edf7(0x2ed)]=Number['parseInt'](_0x5b4c8e[_0xd1edf7(0x18e)]));}async[_0x43dc4d(0x17a)](_0x5e2ff9){const _0x4813f8=_0x43dc4d;let _0x5dbb7c=Date[_0x4813f8(0x3e9)]();try{var _0xbd8b75,_0x48e3c2;let _0x1f28e3=((_0xbd8b75=this[_0x4813f8(0x227)][_0x4813f8(0x3f0)](t[_0x4813f8(0x428)]))==null?void 0x0:_0xbd8b75['startFormulaLimitUrl'])||_0x4813f8(0x3b1),_0x2b23df=(await this['_httpService'][_0x4813f8(0x27e)](_0x1f28e3,{'body':JSON[_0x4813f8(0x264)]({'taskId':_0x5e2ff9})}))[_0x4813f8(0x30f)];if(((_0x48e3c2=_0x2b23df['error'])==null?void 0x0:_0x48e3c2[_0x4813f8(0x32b)])!==b[_0x4813f8(0x1d1)]['OK'])return;this['_setFormulaLimitStatus'](_0x2b23df['limitInfo'],_0x5dbb7c);}catch(_0x5627a3){this['_logService']['error'](_0x5627a3);}}async[_0x43dc4d(0x2dc)](_0x52c201){const _0x2739b8=_0x43dc4d;let _0x21b682=Date[_0x2739b8(0x3e9)]();try{var _0x5a0f1,_0xc62b62;let _0x4e74af=((_0x5a0f1=this['_configService']['getConfig'](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5a0f1['getFormulaLimitStatusUrl'])||_0x2739b8(0x186),_0x43e177=_0x52c201?_0x4e74af+'?taskId='+encodeURIComponent(_0x52c201):_0x4e74af,_0x181962=(await this[_0x2739b8(0x24e)][_0x2739b8(0x2e2)](_0x43e177))[_0x2739b8(0x30f)];if(((_0xc62b62=_0x181962[_0x2739b8(0x3e2)])==null?void 0x0:_0xc62b62[_0x2739b8(0x32b)])!==b[_0x2739b8(0x1d1)]['OK'])return;this['_setFormulaLimitStatus'](_0x181962['limitInfo'],_0x21b682);}catch(_0x3f0030){this[_0x2739b8(0x439)][_0x2739b8(0x3e2)](_0x3f0030);}}async[_0x43dc4d(0x37c)](_0xb8fada){const _0x16eb51=_0x43dc4d;let _0x5302d2=Date[_0x16eb51(0x3e9)]();try{var _0x2276cb,_0x113934;let _0x59f72b=((_0x2276cb=this[_0x16eb51(0x227)][_0x16eb51(0x3f0)](t[_0x16eb51(0x428)]))==null?void 0x0:_0x2276cb[_0x16eb51(0x30d)])||_0x16eb51(0x2a3),_0x499fd1=(await this[_0x16eb51(0x24e)][_0x16eb51(0x27e)](_0x59f72b,{'body':JSON['stringify']({'taskId':_0xb8fada})}))[_0x16eb51(0x30f)];if(((_0x113934=_0x499fd1['error'])==null?void 0x0:_0x113934[_0x16eb51(0x32b)])!==b[_0x16eb51(0x1d1)]['OK'])return;this[_0x16eb51(0x189)](_0x499fd1['limitInfo'],_0x5302d2);}catch(_0xb53cac){this[_0x16eb51(0x439)][_0x16eb51(0x3e2)](_0xb53cac);}}['_checkCalculationAvailable'](){const _0x4b53b0=_0x43dc4d;return this[_0x4b53b0(0x292)]===0x0||this['_maxFormulaLimit']-this[_0x4b53b0(0x2ed)]>0x0;}[_0x43dc4d(0x275)](){const _0x2901a2=_0x43dc4d;this[_0x2901a2(0x23f)]&&(clearTimeout(this[_0x2901a2(0x23f)]),this[_0x2901a2(0x23f)]=null);}[_0x43dc4d(0x2cb)](){const _0xf7e04c=_0x43dc4d;this[_0xf7e04c(0x3d6)][_0xf7e04c(0x212)]({'content':this[_0xf7e04c(0x366)]['t'](_0xf7e04c(0x1c9)),'type':o[_0xf7e04c(0x3fe)][_0xf7e04c(0x28d)]});}[_0x43dc4d(0x23c)](_0x548117){const _0x4adaa6=_0x43dc4d;for(let _0x538ffa of _0x548117){let {unitId:_0x315b7f,sheetId:_0x5f5a71,range:_0x59545e}=_0x538ffa,_0x3977dd=this[_0x4adaa6(0x455)][_0x4adaa6(0x2b0)](_0x315b7f,n['UniverInstanceType'][_0x4adaa6(0x271)]);if(!_0x3977dd)continue;let _0x519202=_0x3977dd['getSheetBySheetId'](_0x5f5a71);if(!_0x519202)continue;let _0x454173=_0x519202[_0x4adaa6(0x304)]();for(let _0x5def6f=_0x59545e[_0x4adaa6(0x403)];_0x5def6f<=_0x59545e['endRow'];_0x5def6f++)for(let _0x569ffe=_0x59545e[_0x4adaa6(0x1c0)];_0x569ffe<=_0x59545e[_0x4adaa6(0x288)];_0x569ffe++){let _0x52e20b=_0x454173[_0x4adaa6(0x211)](_0x5def6f,_0x569ffe);if(_0x52e20b&&((0x0,n[_0x4adaa6(0x2fc)])(_0x52e20b['f'])||(0x0,n[_0x4adaa6(0x15c)])(_0x52e20b['si'])))return!0x0;}}return!0x1;}};Q=w([C(0x0,(0x0,n[_0x43dc4d(0x379)])(r[_0x43dc4d(0x33a)])),C(0x1,n[_0x43dc4d(0x27c)]),C(0x2,n[_0x43dc4d(0x371)]),C(0x3,(0x0,n[_0x43dc4d(0x379)])(h[_0x43dc4d(0x2a5)])),C(0x4,n[_0x43dc4d(0x148)]),C(0x5,n['ILogService']),C(0x6,(0x0,n[_0x43dc4d(0x379)])(n['LocaleService']))],Q);let De=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x563dc8,_0x3b08a3,_0x5d9903){const _0x23ae0e=_0x43dc4d;super(),this[_0x23ae0e(0x227)]=_0x563dc8,this[_0x23ae0e(0x14d)]=_0x3b08a3,this['_revisionService']=_0x5d9903,S(this,_0x23ae0e(0x2e5),new Map()),S(this,'_saveTaskMap',new Map()),S(this,'_disabled',!0x1);}[_0x43dc4d(0x1cb)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x2f4f61=_0x43dc4d;this[_0x2f4f61(0x36f)]=!0x1;}get['saveTaskMap'](){const _0x4ad1c5=_0x43dc4d;return this[_0x4ad1c5(0x1cf)];}[_0x43dc4d(0x453)](){const _0x5ed7c6=_0x43dc4d;this[_0x5ed7c6(0x385)]()[_0x5ed7c6(0x2d7)](()=>super['dispose']());}async[_0x43dc4d(0x2c8)](_0x55cbc3){const _0x278f10=_0x43dc4d;return this[_0x278f10(0x36f)]?null:this[_0x278f10(0x14d)]['getItem']((0x0,t[_0x278f10(0x18f)])(_0x55cbc3));}async['saveOfflineData'](_0x615601,_0x2ceb16){const _0x4d3d54=_0x43dc4d;return!!this[_0x4d3d54(0x14d)][_0x4d3d54(0x3cd)]((0x0,t[_0x4d3d54(0x18f)])(_0x615601),_0x2ceb16);}async[_0x43dc4d(0x20c)](_0x164684,_0x8ffa35){const _0x173ea4=_0x43dc4d;var _0xed7668;let _0x585d8e=(_0xed7668=this[_0x173ea4(0x2e5)][_0x173ea4(0x2e2)](_0x164684))==null?await this[_0x173ea4(0x14d)][_0x173ea4(0x221)]((0x0,t['getLocalCacheKey'])(_0x164684)):_0xed7668;if(!_0x585d8e)return;let _0x2d73c8=Date['now'](),_0x197472=new Date(_0x2d73c8)[_0x173ea4(0x35e)]();await this[_0x173ea4(0x14d)][_0x173ea4(0x3cd)]((0x0,t['getLocalCacheKey'])(_0x164684)+_0x173ea4(0x1a4)+_0x2d73c8,{'reason':_0x8ffa35,'createdAt':_0x197472,'data':_0x585d8e});}[_0x43dc4d(0x333)](_0x5d7049,_0x139595,_0x252a18,_0x54cefa){const _0x1d0076=_0x43dc4d;let _0x5f0256=this[_0x1d0076(0x1aa)]['getCurrentRevOfUnit'](_0x5d7049);this[_0x1d0076(0x2e5)]['set'](_0x5d7049,{'unitID':_0x5d7049,'type':_0x139595,'awaitingChangeset':_0x252a18,'mutations':_0x54cefa,'rev':_0x5f0256}),this[_0x1d0076(0x1cf)][_0x1d0076(0x14f)](_0x5d7049)||this[_0x1d0076(0x34c)](_0x5d7049);}[_0x43dc4d(0x34c)](_0x1c85d1){const _0x32af47=_0x43dc4d;let _0x50e7ad=this[_0x32af47(0x3a6)]();_0x50e7ad===0x0?this[_0x32af47(0x415)](_0x1c85d1):this[_0x32af47(0x1cf)][_0x32af47(0x1de)](_0x1c85d1,window[_0x32af47(0x21f)](()=>this[_0x32af47(0x415)](_0x1c85d1),_0x50e7ad));}[_0x43dc4d(0x3a6)](){const _0x428137=_0x43dc4d;var _0xde668;return(_0xde668=this[_0x428137(0x227)]['getConfig'](t[_0x428137(0x1f4)]))==null?t[_0x428137(0x3b7)]:_0xde668;}[_0x43dc4d(0x415)](_0x130847){const _0x5affcb=_0x43dc4d;let _0x1ae8f9=this[_0x5affcb(0x1cf)]['get'](_0x130847);return _0x1ae8f9!==void 0x0&&window[_0x5affcb(0x171)](_0x1ae8f9),this[_0x5affcb(0x14d)][_0x5affcb(0x3cd)]((0x0,t[_0x5affcb(0x18f)])(_0x130847),this[_0x5affcb(0x2e5)][_0x5affcb(0x2e2)](_0x130847))[_0x5affcb(0x2d7)](()=>this[_0x5affcb(0x1cf)][_0x5affcb(0x245)](_0x130847));}async[_0x43dc4d(0x385)](){const _0x31274d=_0x43dc4d;let _0x581a84=[];this[_0x31274d(0x1cf)][_0x31274d(0x24a)]((_0x5dcda2,_0xd43bbf)=>{const _0x465c6f=_0x31274d;window[_0x465c6f(0x171)](_0x5dcda2),_0x581a84['push'](this[_0x465c6f(0x415)](_0xd43bbf)[_0x465c6f(0x2d7)](()=>{const _0x7eb137=_0x465c6f;this['_saveTaskMap'][_0x7eb137(0x245)](_0xd43bbf);}));}),await Promise[_0x31274d(0x2fb)](_0x581a84);}};De=w([C(0x0,n[_0x43dc4d(0x371)]),C(0x1,n[_0x43dc4d(0x369)]),C(0x2,(0x0,n['Inject'])(u['RevisionService']))],De);var Oe=class extends n[_0x43dc4d(0x1e5)]{constructor(){const _0x41e8dd=_0x43dc4d;super(),S(this,_0x41e8dd(0x388),void 0x0),this['urlChange$']=(0x0,i[_0x41e8dd(0x3cf)])(window,_0x41e8dd(0x3eb))[_0x41e8dd(0x32a)]((0x0,i[_0x41e8dd(0x2a1)])(this[_0x41e8dd(0x3c8)]),(0x0,i[_0x41e8dd(0x1b6)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i['mapTo'])(void 0x0));}[_0x43dc4d(0x17d)](_0x371790,_0x2c3bfd,_0x382eec=!0x1){const _0x452e65=_0x43dc4d;let _0x3d6c8d=new URL(window['location'][_0x452e65(0x18c)]);_0x3d6c8d[_0x452e65(0x1f2)][_0x452e65(0x1de)](_0x371790,_0x2c3bfd),_0x382eec?window[_0x452e65(0x306)][_0x452e65(0x2ef)]('','',_0x3d6c8d[_0x452e65(0x14c)]()):window[_0x452e65(0x306)][_0x452e65(0x421)]('','',_0x3d6c8d['toString']());}[_0x43dc4d(0x327)](_0x54b905,_0x171161=!0x1){const _0x2c3914=_0x43dc4d;let _0xce78c1=new URL(window['location']['href']);_0xce78c1[_0x2c3914(0x1f2)]['delete'](_0x54b905),_0x171161?window[_0x2c3914(0x306)][_0x2c3914(0x2ef)]('','',_0xce78c1[_0x2c3914(0x14c)]()):window['history'][_0x2c3914(0x421)]('','',_0xce78c1[_0x2c3914(0x14c)]());}[_0x43dc4d(0x33c)](_0x7fe777){const _0x288825=_0x43dc4d;var _0xcf3f57;return(_0xcf3f57=new URL(window['location'][_0x288825(0x18c)])['searchParams'][_0x288825(0x2e2)](_0x7fe777))==null?void 0x0:_0xcf3f57;}};let $=class extends n[_0x43dc4d(0x30c)]{constructor(_0x8b61ad=ue,_0x52699d,_0x4ebcc5,_0x589bb9){const _0x43bced=_0x43dc4d;super(),this[_0x43bced(0x150)]=_0x8b61ad,this['_renderManagerService']=_0x52699d,this[_0x43bced(0x360)]=_0x4ebcc5,this['_configService']=_0x589bb9;let {..._0x122652}=(0x0,n[_0x43bced(0x418)])({},ue,this['_config']);this['_configService'][_0x43bced(0x396)](_0x43bced(0x1e4),_0x122652);}[_0x43dc4d(0x1b0)](){const _0x4cb24c=_0x43dc4d;this[_0x4cb24c(0x140)](),this['_initDependencies']();}[_0x43dc4d(0x233)](){const _0x2ae00c=_0x43dc4d;this[_0x2ae00c(0x302)]();}[_0x43dc4d(0x140)](){const _0x4e1c4f=_0x43dc4d;var _0x484f4e;let _0x3255ec=[[A],[Q],[U,{'useClass':Oe}],[h[_0x4e1c4f(0x1e3)],{'useClass':h[_0x4e1c4f(0x353)]}],[t[_0x4e1c4f(0x1d8)],{'useClass':De}],[T],[E],[H],[I],[W],[Z]];this[_0x4e1c4f(0x150)][_0x4e1c4f(0x28c)]!==!0x1&&_0x3255ec[_0x4e1c4f(0x39f)]([q],[G],[K],[M],[J],[D]),this[_0x4e1c4f(0x150)][_0x4e1c4f(0x2d4)]&&_0x3255ec[_0x4e1c4f(0x39f)]([Y]),(0x0,n[_0x4e1c4f(0x354)])(this[_0x4e1c4f(0x360)],(0x0,n[_0x4e1c4f(0x43e)])(_0x3255ec,(_0x484f4e=this[_0x4e1c4f(0x150)])==null?void 0x0:_0x484f4e['override']));}[_0x43dc4d(0x302)](){const _0x4425a6=_0x43dc4d;this[_0x4425a6(0x150)]['enableDocumentCollaborationUI']!==!0x1&&this['disposeWithMe'](this[_0x4425a6(0x434)][_0x4425a6(0x448)](n[_0x4425a6(0x35f)][_0x4425a6(0x3f9)],[z])),this[_0x4425a6(0x365)](this['_renderManagerService'][_0x4425a6(0x448)](n['UniverInstanceType'][_0x4425a6(0x271)],[B])),this[_0x4425a6(0x365)](this[_0x4425a6(0x434)][_0x4425a6(0x448)](n[_0x4425a6(0x35f)][_0x4425a6(0x141)],[V])),this[_0x4425a6(0x365)](this[_0x4425a6(0x434)][_0x4425a6(0x448)](n['UniverInstanceType'][_0x4425a6(0x3a3)],[L]));}[_0x43dc4d(0x39d)](){const _0x44de8b=_0x43dc4d;(0x0,n['touchDependencies'])(this['_injector'],[[I],[T],[E],[H],[W],[Q],[Z]]),this[_0x44de8b(0x150)][_0x44de8b(0x28c)]!==!0x1&&(0x0,n[_0x44de8b(0x35d)])(this[_0x44de8b(0x360)],[[J],[D]]),this[_0x44de8b(0x150)][_0x44de8b(0x2d4)]&&(0x0,n[_0x44de8b(0x35d)])(this[_0x44de8b(0x360)],[[Y]]);}};S($,'pluginName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),S($,'packageName',ce),S($,'version',le),$=w([(0x0,n[_0x43dc4d(0x416)])(d[_0x43dc4d(0x405)],f[_0x43dc4d(0x31e)],m[_0x43dc4d(0x1ca)],h[_0x43dc4d(0x24c)],u[_0x43dc4d(0x3d2)],p[_0x43dc4d(0x427)],r[_0x43dc4d(0x200)],t[_0x43dc4d(0x1a0)]),C(0x1,m[_0x43dc4d(0x1ef)]),C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x3,n[_0x43dc4d(0x371)])],$);let ke=class extends t[_0x43dc4d(0x34f)]{constructor(_0x221567,_0x5039a8,_0x5d277a,_0x22b4b0,_0x560cf0){super(_0x221567,_0x5039a8,_0x5d277a,_0x22b4b0,_0x560cf0);}async['createSocket'](_0x2b6a5f){const _0x1ffd1d=_0x43dc4d;let _0x5ec394=await this[_0x1ffd1d(0x351)](),_0xba9163=this[_0x1ffd1d(0x154)](_0x2b6a5f,_0x5ec394);return this[_0x1ffd1d(0x25b)](_0xba9163);}[_0x43dc4d(0x154)](_0x4d1bc8,_0x15adae){const _0x207851=_0x43dc4d;let _0x6df2d4=typeof window>'u'?new URL(_0x4d1bc8):new URL(_0x4d1bc8,window[_0x207851(0x3c6)]['origin']);_0x6df2d4[_0x207851(0x1f2)][_0x207851(0x1de)](_0x207851(0x268),_0x15adae);let _0x230611=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x207851(0x3c6)][_0x207851(0x420)]);return _0x230611[_0x207851(0x2e2)](_0x207851(0x438))&&_0x6df2d4[_0x207851(0x1f2)][_0x207851(0x1de)](_0x207851(0x438),_0x230611[_0x207851(0x2e2)](_0x207851(0x438))),_0x6df2d4[_0x207851(0x14c)]();}async[_0x43dc4d(0x351)](){const _0x303e03=_0x43dc4d;var _0x26df80,_0x54d02b,_0x1d9e19;let _0x12ccf8=this[_0x303e03(0x227)][_0x303e03(0x3f0)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x172e3b=(_0x26df80=_0x12ccf8==null?void 0x0:_0x12ccf8[_0x303e03(0x44e)])==null?t[_0x303e03(0x215)]:_0x26df80;return(_0x54d02b=(_0x1d9e19=(await this[_0x303e03(0x24e)][_0x303e03(0x2e2)](_0x172e3b,{'headers':{'Content-Type':_0x303e03(0x308)}}))[_0x303e03(0x30f)])==null?void 0x0:_0x1d9e19[_0x303e03(0x2be)])==null?'':_0x54d02b;}};ke=w([C(0x0,(0x0,n['Inject'])(n['Injector'])),C(0x1,(0x0,n[_0x43dc4d(0x379)])(h['HTTPService'])),C(0x2,n[_0x43dc4d(0x371)]),C(0x3,n['ILogService']),C(0x4,u[_0x43dc4d(0x22b)])],ke);let Ae=class extends n['Disposable']{constructor(_0x4f57d,_0x465885,_0x5201fa){const _0x194f25=_0x43dc4d;super(),this[_0x194f25(0x1d0)]=_0x4f57d,this[_0x194f25(0x24e)]=_0x465885,this['_configService']=_0x5201fa;}async[_0x43dc4d(0x24f)](_0x36904b,_0x2b19e3,_0x25b44b,..._0x47b9fd){const _0x15d777=_0x43dc4d;var _0x2344c9,_0x4130e5,_0x32c33b,_0x434e85;let _0x4957e2=this[_0x15d777(0x1d0)][_0x15d777(0x44b)]();if(!_0x4957e2)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x4b8ed9=((_0x2344c9=this[_0x15d777(0x227)]['getConfig'](t[_0x15d777(0x320)]))==null?t['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']:_0x2344c9)+'/'+_0x36904b+_0x15d777(0x361)+_0x2b19e3,_0x3f70af={'scriptId':_0x36904b,'runId':(_0x4130e5=new URL(window[_0x15d777(0x3c6)][_0x15d777(0x18c)])['searchParams'][_0x15d777(0x2e2)]('runId'))==null?'':_0x4130e5,'function':_0x2b19e3,'unitId':_0x4957e2[_0x15d777(0x319)](),'argsOfFunction':JSON[_0x15d777(0x264)](_0x47b9fd),'invokeId':(_0x32c33b=_0x25b44b['invokeId'])==null?'':_0x32c33b,'executionId':(_0x434e85=_0x25b44b[_0x15d777(0x3fa)])==null?'':_0x434e85};try{let _0x55e05d=await this[_0x15d777(0x24e)]['post'](_0x4b8ed9,{'body':_0x3f70af});return _0x55e05d[_0x15d777(0x30f)][_0x15d777(0x3e2)]&&_0x55e05d['body'][_0x15d777(0x3e2)][_0x15d777(0x32b)]!==b[_0x15d777(0x1d1)]['OK']?'Failed':_0x55e05d[_0x15d777(0x30f)][_0x15d777(0x1c8)];}catch{return _0x15d777(0x270);}}};Ae=w([C(0x0,n[_0x43dc4d(0x148)]),C(0x1,(0x0,n[_0x43dc4d(0x379)])(h['HTTPService'])),C(0x2,n[_0x43dc4d(0x371)])],Ae);const je=0x7530,Me=_0x43dc4d(0x26f);var Ne=class extends n[_0x43dc4d(0x3f1)]{constructor(){const _0xda6545=_0x43dc4d;super(),S(this,'_id',(0x0,n['generateRandomId'])()),S(this,'_selfUnitIDs',new Set()),S(this,_0xda6545(0x3fd),new Map()),S(this,_0xda6545(0x3b3),null),S(this,_0xda6545(0x157),new Map()),S(this,_0xda6545(0x1d9),new Map()),this[_0xda6545(0x299)]();}[_0x43dc4d(0x453)](){const _0x264dc3=_0x43dc4d;super[_0x264dc3(0x453)](),this[_0x264dc3(0x157)]['forEach']((_0x548558,_0x1b23f6)=>this[_0x264dc3(0x294)](_0x1b23f6)),this[_0x264dc3(0x3b3)]&&window['clearInterval'](this[_0x264dc3(0x3b3)]);}[_0x43dc4d(0x2ce)](_0x108110){const _0x35aa2c=_0x43dc4d;return this['_ensureSubject'](_0x108110)[_0x35aa2c(0x32a)]((0x0,i['distinctUntilChanged'])());}[_0x43dc4d(0x408)](_0x26e8d7){const _0x4edd01=_0x43dc4d;this[_0x4edd01(0x19c)][_0x4edd01(0x328)]===0x0&&this[_0x4edd01(0x3db)](),this[_0x4edd01(0x19c)][_0x4edd01(0x1a1)](_0x26e8d7),this[_0x4edd01(0x20e)]({'type':0x0,'memberID':this[_0x4edd01(0x2a4)],'unitIDs':[_0x26e8d7],'isForwarded':!0x1});}[_0x43dc4d(0x278)](_0x2d2f33){const _0x407c32=_0x43dc4d;this[_0x407c32(0x19c)][_0x407c32(0x245)](_0x2d2f33),this[_0x407c32(0x19c)][_0x407c32(0x328)]===0x0&&this[_0x407c32(0x3b3)]&&window[_0x407c32(0x277)](this[_0x407c32(0x3b3)]);}[_0x43dc4d(0x299)](){const _0x44a785=_0x43dc4d;this[_0x44a785(0x365)]((0x0,n['toDisposable'])((0x0,i[_0x44a785(0x3cf)])(window,'storage')[_0x44a785(0x36e)](_0x209052=>{const _0x238912=_0x44a785;if(_0x209052['key']!==Me||!_0x209052[_0x238912(0x274)])return;let _0x5f1258=JSON['parse'](_0x209052[_0x238912(0x274)]);this[_0x238912(0x17c)](_0x5f1258);}))),window[_0x44a785(0x1fb)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x44a785(0x2a4)],'unitIDs':Array[_0x44a785(0x25e)](this[_0x44a785(0x19c)])}));}['_handleEvent'](_0x142ecf){const _0x4496f0=_0x43dc4d;switch(_0x142ecf[_0x4496f0(0x41c)]){case 0x0:this[_0x4496f0(0x35a)](_0x142ecf);break;case 0x1:this[_0x4496f0(0x16f)](_0x142ecf);break;case 0x2:this[_0x4496f0(0x1eb)](_0x142ecf);break;}}['_handleJoinEvent'](_0x51ef66){const _0x26a2b9=_0x43dc4d;let {unitIDs:_0x3ce3e9,memberID:_0x3cae54,isForwarded:_0x138925}=_0x51ef66;_0x3ce3e9['forEach'](_0x78bcda=>{const _0x1100fe=_0x196d;if(!_0x138925&&this[_0x1100fe(0x3fd)][_0x1100fe(0x14f)](_0x78bcda)&&this[_0x1100fe(0x16c)](_0x78bcda)[_0x1100fe(0x176)](t['UnitStatus']['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x1100fe(0x14f)](_0x78bcda)||!this[_0x1100fe(0x3fd)][_0x1100fe(0x2e2)](_0x78bcda)['has'](_0x3cae54)){let _0x1777de=this[_0x1100fe(0x3fd)][_0x1100fe(0x2e2)](_0x78bcda)||new Set();_0x1777de['add'](_0x3cae54),this[_0x1100fe(0x3fd)][_0x1100fe(0x1de)](_0x78bcda,_0x1777de),this[_0x1100fe(0x15b)](_0x3cae54);}}),_0x138925||this[_0x26a2b9(0x20e)]({'type':0x0,'memberID':this[_0x26a2b9(0x2a4)],'unitIDs':[...this[_0x26a2b9(0x19c)]],'isForwarded':!0x0});}[_0x43dc4d(0x15b)](_0x5739f8){const _0x454fe8=_0x43dc4d;this[_0x454fe8(0x294)](_0x5739f8);let _0x419420=window['setTimeout'](()=>{const _0x45fb88=_0x454fe8;this['_unitOnClients'][_0x45fb88(0x24a)](_0x86892b=>{_0x86892b['delete'](_0x5739f8);});},je*0x2);this['_clearOtherTimers']['set'](_0x5739f8,_0x419420);}[_0x43dc4d(0x294)](_0x345cb0){const _0x2db992=_0x43dc4d;if(this['_clearOtherTimers'][_0x2db992(0x14f)](_0x345cb0)){let _0x453f28=this[_0x2db992(0x157)][_0x2db992(0x2e2)](_0x345cb0);_0x453f28&&window[_0x2db992(0x171)](_0x453f28),this[_0x2db992(0x157)][_0x2db992(0x1de)](_0x345cb0,null);}}[_0x43dc4d(0x16f)](_0x39eb2c){const _0x506ad9=_0x43dc4d;let {memberID:_0xeb1f70,unitIDs:_0x5a1d28}=_0x39eb2c;_0x5a1d28[_0x506ad9(0x24a)](_0x327188=>{const _0x57eb3b=_0x506ad9;var _0x44fb00;let _0x15e444=this[_0x57eb3b(0x3fd)][_0x57eb3b(0x2e2)](_0x327188);_0x15e444&&(_0x15e444[_0x57eb3b(0x245)](_0xeb1f70),(_0x44fb00=this[_0x57eb3b(0x16c)](_0x327188))==null||_0x44fb00['next'](_0x15e444[_0x57eb3b(0x328)]===0x0?t[_0x57eb3b(0x423)][_0x57eb3b(0x3ce)]:t['UnitStatus'][_0x57eb3b(0x1dc)]));}),this[_0x506ad9(0x294)](_0xeb1f70);}[_0x43dc4d(0x1eb)](_0x178350){const _0x2e8c1c=_0x43dc4d;this[_0x2e8c1c(0x15b)](_0x178350['memberID']);}['_send'](_0x5db996){const _0x422449=_0x43dc4d;localStorage['setItem'](Me,JSON[_0x422449(0x264)](_0x5db996));}[_0x43dc4d(0x3db)](){const _0x1fbe3a=_0x43dc4d;this[_0x1fbe3a(0x3b3)]=window['setInterval'](()=>{const _0x13d69f=_0x1fbe3a;this[_0x13d69f(0x20e)]({'type':0x2,'memberID':this['_id']});},je);}[_0x43dc4d(0x16c)](_0x902891){const _0x590eb8=_0x43dc4d;return this[_0x590eb8(0x1d9)][_0x590eb8(0x14f)](_0x902891)||this[_0x590eb8(0x1d9)][_0x590eb8(0x1de)](_0x902891,new i['BehaviorSubject'](t['UnitStatus']['NO_OTHER_CLIENTS_EDITING'])),this[_0x590eb8(0x1d9)][_0x590eb8(0x2e2)](_0x902891);}};Object[_0x43dc4d(0x185)](exports,'BrowserCollaborationSocketService',{'enumerable':!0x0,'get':function(){return ke;}}),Object['defineProperty'](exports,'DesktopCollaborationStatusDisplayController',{'enumerable':!0x0,'get':function(){return T;}}),exports[_0x43dc4d(0x42e)]=U,Object['defineProperty'](exports,_0x43dc4d(0x3c4),{'enumerable':!0x0,'get':function(){return Ae;}}),exports[_0x43dc4d(0x285)]=xe,Object[_0x43dc4d(0x185)](exports,_0x43dc4d(0x1f5),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x43dc4d(0x2fd)]=Ne;