@univerjs-pro/collaboration-client-ui 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -0
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -0
  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 -0
  11. package/lib/cjs/locale/it-IT.js +1 -0
  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 -0
  15. package/lib/cjs/locale/pt-BR.js +1 -0
  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 -0
  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 -0
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -0
  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 -0
  32. package/lib/es/locale/it-IT.js +1 -0
  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 -0
  36. package/lib/es/locale/pt-BR.js +1 -0
  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 -0
  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 -0
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -0
  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 -0
  53. package/lib/locale/it-IT.js +1 -0
  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 -0
  57. package/lib/locale/pt-BR.js +1 -0
  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 -0
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +1 -0
  65. package/lib/types/locale/ar-SA.d.ts +3 -0
  66. package/lib/types/locale/ca-ES.d.ts +1 -1
  67. package/lib/types/locale/de-DE.d.ts +3 -0
  68. package/lib/types/locale/en-US.d.ts +42 -40
  69. package/lib/types/locale/es-ES.d.ts +1 -1
  70. package/lib/types/locale/fr-FR.d.ts +1 -1
  71. package/lib/types/locale/id-ID.d.ts +3 -0
  72. package/lib/types/locale/it-IT.d.ts +3 -0
  73. package/lib/types/locale/pl-PL.d.ts +3 -0
  74. package/lib/types/locale/pt-BR.d.ts +3 -0
  75. package/lib/types/locale/ru-RU.d.ts +1 -1
  76. package/lib/types/locale/zh-HK.d.ts +3 -0
  77. package/lib/types/locale/zh-TW.d.ts +1 -1
  78. package/lib/umd/facade.js +1 -1
  79. package/lib/umd/index.js +1 -1
  80. package/lib/umd/locale/ar-SA.js +1 -0
  81. package/lib/umd/locale/ca-ES.js +1 -1
  82. package/lib/umd/locale/de-DE.js +1 -0
  83. package/lib/umd/locale/en-US.js +1 -1
  84. package/lib/umd/locale/es-ES.js +1 -1
  85. package/lib/umd/locale/fa-IR.js +1 -1
  86. package/lib/umd/locale/fr-FR.js +1 -1
  87. package/lib/umd/locale/id-ID.js +1 -0
  88. package/lib/umd/locale/it-IT.js +1 -0
  89. package/lib/umd/locale/ja-JP.js +1 -1
  90. package/lib/umd/locale/ko-KR.js +1 -1
  91. package/lib/umd/locale/pl-PL.js +1 -0
  92. package/lib/umd/locale/pt-BR.js +1 -0
  93. package/lib/umd/locale/ru-RU.js +1 -1
  94. package/lib/umd/locale/sk-SK.js +1 -1
  95. package/lib/umd/locale/vi-VN.js +1 -1
  96. package/lib/umd/locale/zh-CN.js +1 -1
  97. package/lib/umd/locale/zh-HK.js +1 -0
  98. package/lib/umd/locale/zh-TW.js +1 -1
  99. package/package.json +17 -17
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x1422(){const _0xb70928=['1840924jeWjGq','FUniver','385902aCCXia','913pIByiq','runOnServer','RemoteUniscriptService','extend','1013832RdYjji','4208sDPABt','_injector','105020thlEAG','5lNIkvO','7848738EYfiul','1883rnHczJ','19857MyyoRp','106oVxzDH'];_0x1422=function(){return _0xb70928;};return _0x1422();}const _0x227745=_0x5ddf;(function(_0x2c967f,_0x1edff1){const _0x53c648=_0x5ddf,_0x203ddd=_0x2c967f();while(!![]){try{const _0x313831=parseInt(_0x53c648(0xf4))/0x1*(-parseInt(_0x53c648(0xf5))/0x2)+-parseInt(_0x53c648(0xed))/0x3+parseInt(_0x53c648(0xe6))/0x4*(parseInt(_0x53c648(0xf1))/0x5)+-parseInt(_0x53c648(0xe8))/0x6+parseInt(_0x53c648(0xf3))/0x7*(parseInt(_0x53c648(0xee))/0x8)+parseInt(_0x53c648(0xf2))/0x9+-parseInt(_0x53c648(0xf0))/0xa*(-parseInt(_0x53c648(0xe9))/0xb);if(_0x313831===_0x1edff1)break;else _0x203ddd['push'](_0x203ddd['shift']());}catch(_0x3d72f9){_0x203ddd['push'](_0x203ddd['shift']());}}}(_0x1422,0xd97a7));function _0x5ddf(_0x39ab41,_0x434e1d){_0x39ab41=_0x39ab41-0xe6;const _0x142273=_0x1422();let _0x5ddfd0=_0x142273[_0x39ab41];return _0x5ddfd0;}let e=require(`@univerjs-pro/collaboration-client-ui`),t=require(`@univerjs/core/facade`);var n=class extends t[_0x227745(0xe7)]{[_0x227745(0xea)](_0x100d8a,_0x236af7,..._0x419c63){const _0x627b83=_0x227745;return this[_0x627b83(0xef)]['get'](e[_0x627b83(0xeb)])[_0x627b83(0xea)](_0x100d8a,_0x236af7,{},..._0x419c63);}};t[_0x227745(0xe7)][_0x227745(0xec)](n);
1
+ function _0x166a(){const _0x3a6da7=['extend','66KCtjNX','get','_injector','260fCTIYR','runOnServer','153rrdEFs','179400oykCoA','282bzebkO','FUniver','596080TKWBZl','1402MfFbUU','1357803yppCYK','RemoteUniscriptService','2641680xbIBQc','7357WCptGI','1035856lEsQYL'];_0x166a=function(){return _0x3a6da7;};return _0x166a();}const _0x3f5920=_0x5e05;(function(_0xcd8ad3,_0x4221d2){const _0x6584d4=_0x5e05,_0xe55012=_0xcd8ad3();while(!![]){try{const _0x35fccd=-parseInt(_0x6584d4(0x7f))/0x1*(parseInt(_0x6584d4(0x86))/0x2)+parseInt(_0x6584d4(0x76))/0x3+parseInt(_0x6584d4(0x7a))/0x4+parseInt(_0x6584d4(0x78))/0x5+parseInt(_0x6584d4(0x83))/0x6*(-parseInt(_0x6584d4(0x79))/0x7)+-parseInt(_0x6584d4(0x82))/0x8*(parseInt(_0x6584d4(0x81))/0x9)+-parseInt(_0x6584d4(0x85))/0xa*(parseInt(_0x6584d4(0x7c))/0xb);if(_0x35fccd===_0x4221d2)break;else _0xe55012['push'](_0xe55012['shift']());}catch(_0x40390f){_0xe55012['push'](_0xe55012['shift']());}}}(_0x166a,0x41c3b));let e=require('@univerjs-pro/collaboration-client-ui'),t=require('@univerjs/core/facade');function _0x5e05(_0x3d09e3,_0x350e02){_0x3d09e3=_0x3d09e3-0x76;const _0x166a02=_0x166a();let _0x5e051a=_0x166a02[_0x3d09e3];return _0x5e051a;}var n=class extends t[_0x3f5920(0x84)]{[_0x3f5920(0x80)](_0x51976e,_0x2f294f,..._0x571eb9){const _0x5e7614=_0x3f5920;return this[_0x5e7614(0x7e)][_0x5e7614(0x7d)](e[_0x5e7614(0x77)])[_0x5e7614(0x80)](_0x51976e,_0x2f294f,{},..._0x571eb9);}};t[_0x3f5920(0x84)][_0x3f5920(0x7b)](n);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5eb250=_0x190c;(function(_0x2e33b9,_0x2ce6f2){const _0x2a9ad9=_0x190c,_0x5f4f66=_0x2e33b9();while(!![]){try{const _0x5cfc48=parseInt(_0x2a9ad9(0x1aa))/0x1+parseInt(_0x2a9ad9(0x234))/0x2*(parseInt(_0x2a9ad9(0x33f))/0x3)+-parseInt(_0x2a9ad9(0x39e))/0x4+-parseInt(_0x2a9ad9(0x3c7))/0x5+-parseInt(_0x2a9ad9(0x17c))/0x6+parseInt(_0x2a9ad9(0x3a5))/0x7*(parseInt(_0x2a9ad9(0x2e1))/0x8)+-parseInt(_0x2a9ad9(0x28d))/0x9;if(_0x5cfc48===_0x2ce6f2)break;else _0x5f4f66['push'](_0x5f4f66['shift']());}catch(_0x55bdb5){_0x5f4f66['push'](_0x5f4f66['shift']());}}}(_0x26e0,0x3cd2a),Object[_0x5eb250(0x1f4)](exports,Symbol[_0x5eb250(0x286)],{'value':_0x5eb250(0x322)}));let e=require(`@univerjs-pro/collaboration-client`),t=require(`@univerjs/core`),n=require(`@univerjs/ui`),r=require(`rxjs`),i=require(`@univerjs/design`),a=require(`@univerjs/icons`),o=require(`react`),s=require(`react/jsx-runtime`),c=require(`@univerjs/rpc`),l=require(`@univerjs/sheets`),u=require(`@univerjs/engine-render`),d=require(`@univerjs/network`),f=require(`@univerjs/docs-ui`),p=require(`@univerjs/drawing`),m=require(`@univerjs-pro/collaboration`),h=require(`@univerjs/docs`),g=require(`@univerjs/engine-formula`),_=require(`rxjs/operators`),v=require(`@univerjs/sheets-ui`),y=require(`@univerjs/protocol`);function b(_0x21f2ef){const _0x1c0e85=_0x5eb250;switch(_0x21f2ef){case e['CollaborationStatus'][_0x1c0e85(0x2bd)]:return{'icon':(0x0,s['jsx'])(a[_0x1c0e85(0x271)],{}),'colorClass':_0x1c0e85(0x3c1),'i18nKey':_0x1c0e85(0x15b),'tooltipKey':_0x1c0e85(0x340),'clickable':!0x0,'indicator':_0x1c0e85(0x3a0)};case e[_0x1c0e85(0x1a0)]['CONFLICT']:return{'icon':(0x0,s[_0x1c0e85(0x177)])(a['OffLineIcon'],{}),'colorClass':_0x1c0e85(0x244),'i18nKey':_0x1c0e85(0x317),'clickable':!0x1,'indicator':_0x1c0e85(0x3a0)};case e[_0x1c0e85(0x1a0)][_0x1c0e85(0x20d)]:return{'icon':(0x0,s[_0x1c0e85(0x177)])(a[_0x1c0e85(0x3db)],{}),'colorClass':_0x1c0e85(0x3dd),'i18nKey':_0x1c0e85(0x23c),'clickable':!0x1,'indicator':'spin'};case e[_0x1c0e85(0x1a0)][_0x1c0e85(0x32a)]:return{'icon':(0x0,s['jsx'])(a['OnLineIcon'],{}),'colorClass':_0x1c0e85(0x189),'i18nKey':_0x1c0e85(0x272),'clickable':!0x1,'indicator':_0x1c0e85(0x3a0)};case e['CollaborationStatus'][_0x1c0e85(0x34f)]:case e[_0x1c0e85(0x1a0)][_0x1c0e85(0x25e)]:return{'icon':(0x0,s['jsx'])(a['LoadingMultiIcon'],{}),'colorClass':_0x1c0e85(0x3dd),'i18nKey':'collabStatus.syncing','clickable':!0x1,'indicator':_0x1c0e85(0x160)};case e['CollaborationStatus'][_0x1c0e85(0x174)]:case e[_0x1c0e85(0x1a0)][_0x1c0e85(0x1ed)]:return{'icon':(0x0,s[_0x1c0e85(0x177)])(a[_0x1c0e85(0x246)],{}),'colorClass':_0x1c0e85(0x21d),'i18nKey':_0x1c0e85(0x29c),'clickable':!0x1,'indicator':_0x1c0e85(0x3a0)};}}function x(_0x2c09a3){const _0x5ed2a5=_0x5eb250;let {status$:_0xf53d87}=_0x2c09a3,_0x4bc9fa=(0x0,n['useObservable'])(_0xf53d87,e[_0x5ed2a5(0x1a0)][_0x5ed2a5(0x32a)]),_0x3be75d=(0x0,n['useDependency'])(t[_0x5ed2a5(0x38b)]),_0x52e468=(0x0,n['useDependency'])(e['CollaborationSessionService']),_0x1cf16e=(0x0,o[_0x5ed2a5(0x19b)])(()=>b(_0x4bc9fa),[_0x4bc9fa]),_0x3ab924=_0x4bc9fa!==e[_0x5ed2a5(0x1a0)][_0x5ed2a5(0x2bd)],_0x420040=_0x3be75d['t'](_0x1cf16e[_0x5ed2a5(0x30e)]),_0x1593a6=_0x1cf16e[_0x5ed2a5(0x27f)]?_0x3be75d['t'](_0x1cf16e[_0x5ed2a5(0x27f)]):_0x420040,_0x530df5=(0x0,o[_0x5ed2a5(0x3ef)])(()=>{const _0x373928=_0x5ed2a5;_0x3ab924||_0x52e468[_0x373928(0x1f2)]();},[_0x3ab924,_0x52e468]),_0x554498=(0x0,o[_0x5ed2a5(0x3ef)])(_0x34979d=>{const _0x312c33=_0x5ed2a5;!_0x3ab924&&(_0x34979d[_0x312c33(0x2f4)]===_0x312c33(0x1f0)||_0x34979d[_0x312c33(0x2f4)]==='\x20')&&(_0x34979d[_0x312c33(0x35f)](),_0x52e468[_0x312c33(0x1f2)]());},[_0x3ab924,_0x52e468]),_0x3d9480=(0x0,s[_0x5ed2a5(0x177)])(_0x5ed2a5(0x3cb),{'className':(0x0,i[_0x5ed2a5(0x2a2)])(_0x5ed2a5(0x33c),_0x5ed2a5(0x2e2),_0x1cf16e[_0x5ed2a5(0x37d)],{'univer-animate-spin':_0x1cf16e['indicator']===_0x5ed2a5(0x160),'univer-animate-pulse':_0x1cf16e['indicator']===_0x5ed2a5(0x2e0)}),'aria-hidden':_0x5ed2a5(0x294),'children':_0x1cf16e[_0x5ed2a5(0x333)]}),_0x59be42=(0x0,s[_0x5ed2a5(0x177)])(_0x5ed2a5(0x3cb),{'className':(0x0,i[_0x5ed2a5(0x2a2)])(_0x5ed2a5(0x33c),_0x5ed2a5(0x1c4),_0x5ed2a5(0x2c9),_0x5ed2a5(0x20c),_0x5ed2a5(0x30d),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x1cf16e[_0x5ed2a5(0x365)],'univer-cursor-default':!_0x1cf16e[_0x5ed2a5(0x365)]}),'children':_0x3d9480});return _0x1cf16e['clickable']?(0x0,s[_0x5ed2a5(0x177)])(i[_0x5ed2a5(0x2e8)],{'title':_0x1593a6,'placement':_0x5ed2a5(0x2aa),'children':(0x0,s[_0x5ed2a5(0x177)])(_0x5ed2a5(0x38a),{'type':_0x5ed2a5(0x38a),'onClick':_0x530df5,'onKeyDown':_0x554498,'className':(0x0,i['clsx'])(_0x5ed2a5(0x188),_0x5ed2a5(0x1ef),_0x5ed2a5(0x362),_0x5ed2a5(0x382)),'aria-label':_0x420040+'\x20-\x20'+_0x1593a6,'role':_0x5ed2a5(0x315),'aria-live':'polite','aria-atomic':_0x5ed2a5(0x294),'children':_0x59be42})}):(0x0,s[_0x5ed2a5(0x177)])(i[_0x5ed2a5(0x2e8)],{'title':_0x1593a6,'placement':_0x5ed2a5(0x2aa),'children':(0x0,s[_0x5ed2a5(0x177)])(_0x5ed2a5(0x347),{'className':(0x0,i[_0x5ed2a5(0x2a2)])(_0x5ed2a5(0x188),_0x5ed2a5(0x1ef),_0x5ed2a5(0x362)),'aria-label':_0x420040,'role':_0x5ed2a5(0x315),'aria-live':_0x5ed2a5(0x37a),'aria-atomic':_0x5ed2a5(0x294),'children':_0x59be42})});}function S(_0x56046e){'@babel/helpers - typeof';const _0x2298c7=_0x5eb250;return S=typeof Symbol==_0x2298c7(0x17b)&&typeof Symbol['iterator']==_0x2298c7(0x368)?function(_0x21cdbf){return typeof _0x21cdbf;}:function(_0x5c4bfb){const _0x2893a8=_0x2298c7;return _0x5c4bfb&&typeof Symbol==_0x2893a8(0x17b)&&_0x5c4bfb['constructor']===Symbol&&_0x5c4bfb!==Symbol[_0x2893a8(0x23e)]?_0x2893a8(0x368):typeof _0x5c4bfb;},S(_0x56046e);}function ee(_0x3f331c,_0x1e2d15){const _0x5afe44=_0x5eb250;if(S(_0x3f331c)!=_0x5afe44(0x23b)||!_0x3f331c)return _0x3f331c;var _0x31bbbe=_0x3f331c[Symbol[_0x5afe44(0x3b8)]];if(_0x31bbbe!==void 0x0){var _0x307cfa=_0x31bbbe[_0x5afe44(0x19a)](_0x3f331c,_0x1e2d15||'default');if(S(_0x307cfa)!=_0x5afe44(0x23b))return _0x307cfa;throw TypeError(_0x5afe44(0x2bb));}return(_0x1e2d15==='string'?String:Number)(_0x3f331c);}function te(_0x36a170){const _0x281780=_0x5eb250;var _0x58e16c=ee(_0x36a170,_0x281780(0x395));return S(_0x58e16c)==_0x281780(0x368)?_0x58e16c:_0x58e16c+'';}function C(_0xe6c014,_0x1eebb1,_0x47ecb4){const _0x42f7e6=_0x5eb250;return(_0x1eebb1=te(_0x1eebb1))in _0xe6c014?Object[_0x42f7e6(0x1f4)](_0xe6c014,_0x1eebb1,{'value':_0x47ecb4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe6c014[_0x1eebb1]=_0x47ecb4,_0xe6c014;}function w(_0x354791,_0x172ceb){return function(_0x3bb4d2,_0x53fb0a){_0x172ceb(_0x3bb4d2,_0x53fb0a,_0x354791);};}function T(_0x1ee720,_0x52db36,_0x1d9247,_0xcf2e0e){const _0x29cc00=_0x5eb250;var _0x133558=arguments['length'],_0x241f04=_0x133558<0x3?_0x52db36:_0xcf2e0e===null?_0xcf2e0e=Object[_0x29cc00(0x36f)](_0x52db36,_0x1d9247):_0xcf2e0e,_0x4fe00e;if(typeof Reflect=='object'&&typeof Reflect[_0x29cc00(0x354)]==_0x29cc00(0x17b))_0x241f04=Reflect[_0x29cc00(0x354)](_0x1ee720,_0x52db36,_0x1d9247,_0xcf2e0e);else{for(var _0x5d29c2=_0x1ee720[_0x29cc00(0x2ab)]-0x1;_0x5d29c2>=0x0;_0x5d29c2--)(_0x4fe00e=_0x1ee720[_0x5d29c2])&&(_0x241f04=(_0x133558<0x3?_0x4fe00e(_0x241f04):_0x133558>0x3?_0x4fe00e(_0x52db36,_0x1d9247,_0x241f04):_0x4fe00e(_0x52db36,_0x1d9247))||_0x241f04);}return _0x133558>0x3&&_0x241f04&&Object[_0x29cc00(0x1f4)](_0x52db36,_0x1d9247,_0x241f04),_0x241f04;}let E=class extends t[_0x5eb250(0x1e3)]{constructor(_0x28d45a,_0x52a373,_0x41c7ec,_0x464d3e){const _0x29c34d=_0x5eb250;super(),this['_univerInstanceService']=_0x28d45a,this[_0x29c34d(0x193)]=_0x52a373,this[_0x29c34d(0x283)]=_0x41c7ec,this[_0x29c34d(0x2cd)]=_0x464d3e,C(this,_0x29c34d(0x3d9),new r[(_0x29c34d(0x1ba))](e[_0x29c34d(0x1a0)][_0x29c34d(0x32a)])),this[_0x29c34d(0x37e)](),this['_initStatusListener']();}['_initStatusListener'](){const _0x59384f=_0x5eb250;this[_0x59384f(0x1c9)](this[_0x59384f(0x2e6)][_0x59384f(0x273)]['pipe']((0x0,r['switchMap'])(()=>{const _0xfe7fb=_0x59384f;let _0x46515a=this[_0xfe7fb(0x2e6)]['getFocusedUnit']();return _0x46515a?this['_collaborationController'][_0xfe7fb(0x1ea)](_0x46515a[_0xfe7fb(0x3b9)]()):(0x0,r['of'])(null);}),(0x0,r['switchMap'])(_0x4d91e4=>_0x4d91e4?_0x4d91e4[_0x59384f(0x204)]:(0x0,r['of'])(e[_0x59384f(0x1a0)][_0x59384f(0x32a)])))[_0x59384f(0x3e7)](_0x2253c9=>{const _0x5caadb=_0x59384f;this[_0x5caadb(0x3d9)][_0x5caadb(0x1cc)](_0x2253c9);}));}[_0x5eb250(0x37e)](){const _0x3c8291=_0x5eb250;this['disposeWithMe'](this[_0x3c8291(0x2cd)]['registerComponent'](n[_0x3c8291(0x380)][_0x3c8291(0x1c7)],()=>(0x0,n[_0x3c8291(0x2c5)])(ne({'status$':this[_0x3c8291(0x3d9)]['asObservable']()}),this[_0x3c8291(0x193)])));}};E=T([w(0x0,t[_0x5eb250(0x335)]),w(0x1,(0x0,t[_0x5eb250(0x235)])(t[_0x5eb250(0x2b1)])),w(0x2,(0x0,t[_0x5eb250(0x235)])(e['CollaborationController'])),w(0x3,n[_0x5eb250(0x2e5)])],E);function ne(_0x713fc5){let {status$:_0x56ebab}=_0x713fc5;return function(){const _0x26e867=_0x190c;return(0x0,s[_0x26e867(0x177)])(x,{'status$':_0x56ebab});};}const D=(0x0,t[_0x5eb250(0x1af)])(_0x5eb250(0x2cb));let O=class extends t['RxDisposable']{constructor(_0x2709c6,_0x6f6217,_0x305803,_0x30400e,_0x3c4792){const _0x77d9dc=_0x5eb250;super(),this[_0x77d9dc(0x3d2)]=_0x2709c6,this[_0x77d9dc(0x20a)]=_0x6f6217,this[_0x77d9dc(0x327)]=_0x305803,this[_0x77d9dc(0x1bf)]=_0x30400e,_0x3c4792?_0x3c4792==null||_0x3c4792['whenReady']()[_0x77d9dc(0x289)](()=>this[_0x77d9dc(0x163)]()):(this['_logService'][_0x77d9dc(0x2a0)](_0x77d9dc(0x38c),_0x77d9dc(0x350)),this[_0x77d9dc(0x163)]());}async['_init'](){const _0x2f8226=_0x5eb250;let _0x328468=this['_urlService'][_0x2f8226(0x2f8)](_0x2f8226(0x2f0)),_0x2f1b81=this[_0x2f8226(0x3d2)]['getParam'](_0x2f8226(0x1f8)),_0x47f7d8=this[_0x2f8226(0x3d2)][_0x2f8226(0x2f8)](_0x2f8226(0x187));if(!_0x328468||!_0x2f1b81){this[_0x2f8226(0x20a)][_0x2f8226(0x2a0)](_0x2f8226(0x38c),_0x2f8226(0x260));return;}let _0x269af6=await this[_0x2f8226(0x1bf)]['loadUnit'](_0x328468,Number(_0x2f1b81),_0x47f7d8);_0x269af6&&_0x269af6 instanceof t['Workbook']&&this[_0x2f8226(0x336)](_0x269af6);}async['_setupSubUnitSync'](_0x45ef6a){const _0x5d04d1=_0x5eb250;await this[_0x5d04d1(0x1a3)](_0x45ef6a),_0x45ef6a['activeSheet$']['pipe']((0x0,r[_0x5d04d1(0x249)])(this['dispose$']))['subscribe'](_0x539021=>{const _0x41c2ff=_0x5d04d1;_0x539021&&this[_0x41c2ff(0x279)](_0x539021);}),this[_0x5d04d1(0x3d2)][_0x5d04d1(0x295)][_0x5d04d1(0x2ca)]((0x0,r[_0x5d04d1(0x249)])(this[_0x5d04d1(0x2d8)]))[_0x5d04d1(0x3e7)](()=>this['_updateSubUnitFromURLParams'](_0x45ef6a));}[_0x5eb250(0x279)](_0x4e8b68,_0x2e4b8b=!0x1){const _0x487afc=_0x5eb250;let _0x29f909=this[_0x487afc(0x3d2)][_0x487afc(0x2f8)](_0x487afc(0x187));_0x4e8b68['getSheetId']()!==_0x29f909&&this[_0x487afc(0x3d2)][_0x487afc(0x297)](_0x487afc(0x187),_0x4e8b68[_0x487afc(0x215)](),_0x2e4b8b);}async[_0x5eb250(0x1a3)](_0xc4f153){const _0x14e300=_0x5eb250;var _0x5b6a98;let _0x3ba085=this['_urlService'][_0x14e300(0x2f8)](_0x14e300(0x187));if(!_0x3ba085||!_0xc4f153[_0x14e300(0x18e)](_0x3ba085)){let _0x30a10c=_0xc4f153[_0x14e300(0x1a1)]()[0x0],_0x18e982=_0xc4f153['getSheetBySheetId'](_0x30a10c);if(!_0x18e982)return;this[_0x14e300(0x279)](_0x18e982,!0x0),await this['_commandService'][_0x14e300(0x2f1)](l[_0x14e300(0x31a)]['id'],{'unitId':_0xc4f153['getUnitId'](),'subUnitId':_0x30a10c});return;}((_0x5b6a98=_0xc4f153['getActiveSheet']())==null?void 0x0:_0x5b6a98['getSheetId']())!==_0x3ba085&&await this['_commandService']['executeCommand'](l[_0x14e300(0x31a)]['id'],{'unitId':_0xc4f153['getUnitId'](),'subUnitId':_0x3ba085});}};O=T([w(0x0,D),w(0x1,t[_0x5eb250(0x3c2)]),w(0x2,t[_0x5eb250(0x1f3)]),w(0x3,(0x0,t[_0x5eb250(0x235)])(e[_0x5eb250(0x1eb)])),w(0x4,(0x0,t['Optional'])(c[_0x5eb250(0x319)]))],O);var re=_0x5eb250(0x253),ie=_0x5eb250(0x1b3);let k=class extends t[_0x5eb250(0x1a5)]{constructor(_0x543ed6,_0x5d9f89){super(),this['_docClipboardService']=_0x543ed6,this['_imageIoService']=_0x5d9f89,this['_init']();}[_0x5eb250(0x163)](){const _0x58ac3e=_0x5eb250;let _0x282e4d=this;this[_0x58ac3e(0x1c9)](this[_0x58ac3e(0x2c0)][_0x58ac3e(0x2f5)]({'onBeforePasteImage':async _0x33f07e=>{const _0x1a49f6=_0x58ac3e;let _0x56e91c=await _0x282e4d[_0x1a49f6(0x392)][_0x1a49f6(0x325)](_0x33f07e);return _0x56e91c?{'source':_0x56e91c['source'],'imageSourceType':_0x56e91c[_0x1a49f6(0x251)]}:null;}}));}};k=T([w(0x0,f[_0x5eb250(0x17e)]),w(0x1,p[_0x5eb250(0x242)])],k);const ae=[_0x5eb250(0x32f),_0x5eb250(0x1f5),_0x5eb250(0x2d2),'red.300',_0x5eb250(0x3d6),'yellow.400'];var A=class extends t[_0x5eb250(0x1e3)]{constructor(..._0x1f8a36){const _0x32c62b=_0x5eb250;super(..._0x1f8a36),C(this,_0x32c62b(0x162),new Map()),C(this,_0x32c62b(0x377),0x0);}[_0x5eb250(0x2d1)](_0x59e8e3){const _0x495739=_0x5eb250;if(this[_0x495739(0x162)][_0x495739(0x2b7)](_0x59e8e3))return this['_assignedColors'][_0x495739(0x1ae)](_0x59e8e3);let _0x156d83=ae[this['_colorIndex']];return this[_0x495739(0x377)]=(this[_0x495739(0x377)]+0x1)%ae['length'],this[_0x495739(0x162)][_0x495739(0x1b2)](_0x59e8e3,_0x156d83),_0x156d83;}};function j(_0x2febb5){const _0x5b87c2=_0x5eb250;let _0x3e0d35='';for(let _0x4ce0b8 of _0x2febb5){let {startOffset:_0x5e8c00,endOffset:_0x426110,isActive:_0x5d4301,rangeType:_0x412612,segmentId:_0x49620b,segmentPage:_0x298f8a}=_0x4ce0b8;_0x3e0d35[_0x5b87c2(0x2ab)]&&(_0x3e0d35+=','),_0x3e0d35+=_0x5e8c00+':'+_0x426110+':'+(_0x5d4301?'1':'0')+':'+_0x412612+':'+_0x49620b+':'+_0x298f8a;}return _0x3e0d35;}function oe(_0xe1b9e8){const _0x2ae83f=_0x5eb250;let _0x14ddcb=_0xe1b9e8[_0x2ae83f(0x3eb)](','),_0x94d851=[];for(let _0x42626e of _0x14ddcb){let [_0x37549a,_0x241e4e,_0x5f6d8e,_0x4dff3f,_0x5d10a5,_0x3dee5b]=_0x42626e[_0x2ae83f(0x3eb)](':');_0x94d851[_0x2ae83f(0x2f7)]({'startOffset':Number(_0x37549a),'endOffset':Number(_0x241e4e),'collapsed':_0x37549a===_0x241e4e,'isActive':_0x5f6d8e==='1','rangeType':_0x4dff3f===t[_0x2ae83f(0x222)][_0x2ae83f(0x2d6)]?t[_0x2ae83f(0x222)][_0x2ae83f(0x2d6)]:t[_0x2ae83f(0x222)][_0x2ae83f(0x2b3)],'segmentId':typeof _0x5d10a5=='string'?String(_0x5d10a5):'','segmentPage':Number(_0x3dee5b==null?-0x1:_0x3dee5b)});}return _0x94d851[_0x2ae83f(0x230)](_0x2be355=>_0x2be355[_0x2ae83f(0x348)])||(_0x94d851[0x0]['isActive']=!0x0),_0x94d851;}var M=class extends t[_0x5eb250(0x1a5)]{constructor(..._0x1965d6){const _0x292743=_0x5eb250;super(..._0x1965d6),C(this,_0x292743(0x192),new r[(_0x292743(0x1ba))](null)),C(this,_0x292743(0x304),this[_0x292743(0x192)]['asObservable']());}[_0x5eb250(0x2c2)](_0x5a15b0){const _0x5b1fe8=_0x5eb250;let {unitID:_0x45895c,memberID:_0x1777b7,textRanges:_0x5bb67f}=_0x5a15b0,_0x2b4da0=j(_0x5bb67f);if(_0x2b4da0==='')return;let _0x52f181={'unitID':_0x45895c,'memberID':_0x1777b7,'selection':_0x2b4da0};this[_0x5b1fe8(0x192)][_0x5b1fe8(0x1cc)](_0x52f181);}};let N=class extends t[_0x5eb250(0x1a5)]{get['cursorInfo'](){const _0x22f1e6=_0x5eb250;return this[_0x22f1e6(0x168)][_0x22f1e6(0x3d1)]();}get['roomMembers'](){const _0x4eaea5=_0x5eb250;return this[_0x4eaea5(0x155)]['getValue']();}constructor(_0x34fdc7,_0x94e6ec,_0x539a60,_0x3308d7,_0x48507c,_0x348112,_0x47577e,_0x4e7dde,_0x4e7e27){const _0x1d856d=_0x5eb250;super(),this[_0x1d856d(0x370)]=_0x34fdc7,this['_session']=_0x94e6ec,this[_0x1d856d(0x193)]=_0x539a60,this[_0x1d856d(0x334)]=_0x3308d7,this[_0x1d856d(0x38d)]=_0x48507c,this['_syncEditingCollabCursorService']=_0x348112,this[_0x1d856d(0x2d0)]=_0x47577e,this[_0x1d856d(0x2e6)]=_0x4e7dde,this[_0x1d856d(0x327)]=_0x4e7e27,C(this,_0x1d856d(0x1c1),!0x1),C(this,_0x1d856d(0x163),!0x1),C(this,'_cursorInfo$',new r[(_0x1d856d(0x1ba))](new Map())),C(this,'cursorInfo$',this[_0x1d856d(0x168)]['asObservable']()),C(this,_0x1d856d(0x155),new r[(_0x1d856d(0x1ba))]([])),C(this,'roomMembers$',this[_0x1d856d(0x155)][_0x1d856d(0x2ca)]((0x0,r[_0x1d856d(0x24c)])(0x12c))),C(this,_0x1d856d(0x26e),(0x0,t['debounce'])(_0x5c94d5=>{const _0x13fedb=_0x1d856d;let _0x4c64b8={'eventID':m[_0x13fedb(0x1d2)][_0x13fedb(0x2f3)],'data':{'unitID':this[_0x13fedb(0x370)],'memberID':this[_0x13fedb(0x3c9)][_0x13fedb(0x386)](),'selection':j(_0x5c94d5)}};this[_0x13fedb(0x3c9)][_0x13fedb(0x158)](_0x4c64b8,this[_0x13fedb(0x370)]);},0x64));}[_0x5eb250(0x1d9)](){const _0x1f72a9=_0x5eb250;super[_0x1f72a9(0x1d9)](),this[_0x1f72a9(0x168)][_0x1f72a9(0x1cc)](new Map()),this[_0x1f72a9(0x168)]['complete'](),this[_0x1f72a9(0x155)][_0x1f72a9(0x1cc)]([]),this[_0x1f72a9(0x155)]['complete']();}[_0x5eb250(0x19f)](){const _0x1b23fe=_0x5eb250;this[_0x1b23fe(0x163)]||(this[_0x1b23fe(0x163)]=!0x0,this[_0x1b23fe(0x3c9)][_0x1b23fe(0x1dd)][_0x1b23fe(0x2ca)]((0x0,r[_0x1b23fe(0x249)])(this['dispose$']))[_0x1b23fe(0x3e7)](_0x1896ee=>{const _0x5e2143=_0x1b23fe;_0x1896ee===e[_0x5e2143(0x228)]['ONLINE']?this[_0x5e2143(0x250)]():this[_0x5e2143(0x1e5)]();}),this[_0x1b23fe(0x3c9)][_0x1b23fe(0x275)]['pipe']((0x0,r[_0x1b23fe(0x249)])(this['dispose$']))['subscribe'](_0x4ebb81=>{const _0xa2e5ef=_0x1b23fe;let _0x421946=_0x4ebb81[_0xa2e5ef(0x2b2)];_0x421946===m['CollaborationEvent'][_0xa2e5ef(0x2f3)]&&this[_0xa2e5ef(0x207)](_0x4ebb81),_0x421946===m['CollaborationEvent'][_0xa2e5ef(0x2bc)]&&this[_0xa2e5ef(0x3be)](_0x4ebb81);}),this[_0x1b23fe(0x1c9)](this['_commandService']['onCommandExecuted'](_0x181e69=>{const _0x46c5d9=_0x1b23fe;let _0x5ea039=_0x181e69[_0x46c5d9(0x3bf)];_0x5ea039!=null&&this[_0x46c5d9(0x1c1)]&&_0x181e69['id']===h[_0x46c5d9(0x3dc)]['id']&&_0x5ea039['unitId']===this[_0x46c5d9(0x370)]&&_0x5ea039[_0x46c5d9(0x2ce)]===!0x1&&_0x5ea039['ranges'][_0x46c5d9(0x2ab)]>0x0&&this[_0x46c5d9(0x26e)](_0x5ea039[_0x46c5d9(0x157)]);})),this[_0x1b23fe(0x3e0)][_0x1b23fe(0x304)][_0x1b23fe(0x2ca)]((0x0,r[_0x1b23fe(0x249)])(this[_0x1b23fe(0x2d8)]))[_0x1b23fe(0x3e7)](_0x10e928=>{const _0x3e0843=_0x1b23fe;if((_0x10e928==null?void 0x0:_0x10e928['unitID'])!==this[_0x3e0843(0x370)])return;let _0x4dc21d={'eventID':m[_0x3e0843(0x1d2)][_0x3e0843(0x2f3)],'data':_0x10e928};this[_0x3e0843(0x207)](_0x4dc21d);}),this[_0x1b23fe(0x1c9)](this[_0x1b23fe(0x327)][_0x1b23fe(0x3ed)](_0x2ef8a1=>{const _0x23e8ff=_0x1b23fe;if(_0x2ef8a1[_0x23e8ff(0x3bf)]==null)return;let _0x238d05=_0x2ef8a1['params'];if(_0x2ef8a1['id']!==h['RichTextEditingMutation']['id']||_0x238d05[_0x23e8ff(0x27b)]!==this[_0x23e8ff(0x370)])return;let _0x29c9eb={'id':_0x23e8ff(0x2d9),'params':_0x238d05},_0x5d83f4=this[_0x23e8ff(0x32e)];for(let [_0xb2cd6,_0x1d2bd4]of _0x5d83f4){let _0x287b99={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x23e8ff(0x370)],'actions':null,'textRanges':_0x1d2bd4[_0x23e8ff(0x157)]}},_0x48a3f5=this[_0x23e8ff(0x2d0)]['transformMutation'](_0x29c9eb,_0x287b99,!0x1);if((0x0,m[_0x23e8ff(0x274)])(_0x48a3f5))throw _0x48a3f5['error'];_0x5d83f4['set'](_0xb2cd6,{..._0x1d2bd4,'ranges':_0x48a3f5['m2Prime'][_0x23e8ff(0x3bf)][_0x23e8ff(0x18d)]});}queueMicrotask(()=>{const _0x4c6724=_0x23e8ff;this[_0x4c6724(0x168)][_0x4c6724(0x1cc)](_0x5d83f4);});})));}[_0x5eb250(0x207)](_0x381514){const _0x12c098=_0x5eb250;var _0x3d7f99,_0x1a5473;let {memberID:_0xada898,selection:_0x479722}=_0x381514[_0x12c098(0x27c)],_0x51795e=oe(_0x479722),_0x59d890=(_0x3d7f99=(_0x1a5473=this[_0x12c098(0x38d)][_0x12c098(0x2cc)](this[_0x12c098(0x370)],_0xada898))==null?void 0x0:_0x1a5473['name'])==null?_0x12c098(0x211):_0x3d7f99,_0xfc4669={'color':this[_0x12c098(0x334)][_0x12c098(0x2d1)](_0xada898),'name':_0x59d890,'ranges':_0x51795e},_0x149f9f=this[_0x12c098(0x32e)];_0x149f9f[_0x12c098(0x1b2)](_0xada898,_0xfc4669),this['_cursorInfo$']['next'](_0x149f9f);}[_0x5eb250(0x3be)](_0x19412b){const _0x4dbdec=_0x5eb250;let {memberID:_0x238f15}=_0x19412b[_0x4dbdec(0x27c)],_0x4bdc19=this[_0x4dbdec(0x32e)];_0x4bdc19[_0x4dbdec(0x3ee)](_0x238f15),this['_cursorInfo$'][_0x4dbdec(0x1cc)](_0x4bdc19);}['_toggleOnline'](){const _0x53718f=_0x5eb250;var _0x5323b4;if(this[_0x53718f(0x1c1)]=!0x0,((_0x5323b4=this[_0x53718f(0x2e6)][_0x53718f(0x308)]())==null?void 0x0:_0x5323b4[_0x53718f(0x3b9)]())!==this[_0x53718f(0x370)])return;let _0x4b328d=this[_0x53718f(0x193)]['get'](h[_0x53718f(0x309)])['getDocRanges']();Array[_0x53718f(0x396)](_0x4b328d)&&_0x4b328d['length']>0x0&&this[_0x53718f(0x26e)](_0x4b328d);}[_0x5eb250(0x1e5)](){const _0x4f8907=_0x5eb250;this[_0x4f8907(0x1c1)]=!0x1;}};N=T([w(0x2,(0x0,t['Inject'])(t[_0x5eb250(0x2b1)])),w(0x3,(0x0,t[_0x5eb250(0x235)])(A)),w(0x4,(0x0,t[_0x5eb250(0x235)])(e[_0x5eb250(0x1e6)])),w(0x5,(0x0,t[_0x5eb250(0x235)])(M)),w(0x6,m[_0x5eb250(0x2ef)]),w(0x7,t[_0x5eb250(0x335)]),w(0x8,t[_0x5eb250(0x1f3)])],N);const se=()=>{let _0x49018a=[],_0x206322=!0x1;return _0x13b50b=>{const _0x2bdaf4=_0x190c;_0x49018a[_0x2bdaf4(0x2f7)](_0x13b50b),_0x206322||(_0x206322=!0x0,setTimeout(()=>{const _0x5663b9=_0x2bdaf4;_0x49018a[_0x5663b9(0x346)](_0x18cdc5=>_0x18cdc5()),_0x49018a=[],_0x206322=!0x1;}));};};let P=class extends t['RxDisposable']{get[_0x5eb250(0x32e)](){const _0x57de30=_0x5eb250;return this['_cursorInfo$'][_0x57de30(0x3d1)]();}get[_0x5eb250(0x287)](){const _0x4d1745=_0x5eb250;return this[_0x4d1745(0x155)][_0x4d1745(0x3d1)]();}constructor(_0x4a12bb,_0x5c4547,_0x145cf4,_0xe288e0,_0x10749c,_0x4e2724,_0x1eb0a8,_0x46e3b1){const _0x4e175c=_0x5eb250;super(),this['unitID']=_0x4a12bb,this[_0x4e175c(0x3c9)]=_0x5c4547,this['_injector']=_0x145cf4,this[_0x4e175c(0x334)]=_0xe288e0,this[_0x4e175c(0x38d)]=_0x10749c,this[_0x4e175c(0x2e6)]=_0x4e2724,this[_0x4e175c(0x327)]=_0x1eb0a8,this[_0x4e175c(0x3b4)]=_0x46e3b1,C(this,'_online',!0x1),C(this,_0x4e175c(0x163),!0x1),C(this,_0x4e175c(0x168),new r[(_0x4e175c(0x1ba))](new Map())),C(this,_0x4e175c(0x25b),this[_0x4e175c(0x168)][_0x4e175c(0x259)]()),C(this,_0x4e175c(0x155),new r['BehaviorSubject']([])),C(this,_0x4e175c(0x1ee),this[_0x4e175c(0x155)][_0x4e175c(0x2ca)]((0x0,r[_0x4e175c(0x24c)])(0x12c))),C(this,'_updateLocalCursor',(0x0,t[_0x4e175c(0x1b6)])((_0x25e911,_0x2bb190)=>{const _0x972923=_0x4e175c;let _0x564a9c={'eventID':m[_0x972923(0x1d2)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x972923(0x370)],'memberID':this[_0x972923(0x3c9)][_0x972923(0x386)](),'selection':(0x0,g[_0x972923(0x3b2)])(_0x25e911,_0x2bb190[_0x972923(0x1e0)])}};this['_session'][_0x972923(0x158)](_0x564a9c,this['unitID']);},0x64));}[_0x5eb250(0x1d9)](){const _0x47404e=_0x5eb250;super[_0x47404e(0x1d9)](),this[_0x47404e(0x168)]['next'](new Map()),this['_cursorInfo$'][_0x47404e(0x1f6)](),this[_0x47404e(0x155)][_0x47404e(0x1cc)]([]),this[_0x47404e(0x155)][_0x47404e(0x1f6)]();}[_0x5eb250(0x19f)](){const _0x35bc28=_0x5eb250;this[_0x35bc28(0x163)]||(this[_0x35bc28(0x163)]=!0x0,this['_session'][_0x35bc28(0x1dd)][_0x35bc28(0x2ca)]((0x0,r['takeUntil'])(this[_0x35bc28(0x2d8)]))[_0x35bc28(0x3e7)](_0x516a8c=>{const _0x1cea51=_0x35bc28;_0x516a8c===e[_0x1cea51(0x228)][_0x1cea51(0x176)]?this[_0x1cea51(0x250)]():this[_0x1cea51(0x1e5)]();}),this[_0x35bc28(0x3c9)]['event$']['pipe']((0x0,r[_0x35bc28(0x249)])(this[_0x35bc28(0x2d8)]))['subscribe'](_0x130286=>{const _0x1aac68=_0x35bc28;let _0x43d528=_0x130286[_0x1aac68(0x2b2)];_0x43d528===m[_0x1aac68(0x1d2)]['UPDATE_CURSOR']&&this[_0x1aac68(0x207)](_0x130286),_0x43d528===m[_0x1aac68(0x1d2)][_0x1aac68(0x2bc)]&&this[_0x1aac68(0x3be)](_0x130286);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService'][_0x35bc28(0x3ed)](_0x123d3c=>{const _0x4be9da=_0x35bc28;if(this[_0x4be9da(0x1c1)]&&_0x123d3c['id']===l[_0x4be9da(0x29e)]['id']&&_0x123d3c[_0x4be9da(0x3bf)]['unitId']===this[_0x4be9da(0x370)]){let _0x4640a0=_0x123d3c['params'];this[_0x4be9da(0x26e)](_0x4640a0[_0x4be9da(0x23d)],_0x4640a0[_0x4be9da(0x266)][0x0]);}})));}['_onCursorUpdate'](_0x5dc92c){const _0x16ca54=_0x5eb250;var _0x48779f,_0x2c3e43;let {memberID:_0x2ffab5,selection:_0x1491ab}=_0x5dc92c[_0x16ca54(0x27c)],{sheetName:_0x45c736,range:_0x35a359}=(0x0,g[_0x16ca54(0x241)])(_0x1491ab),_0x495ec3={'name':(_0x48779f=(_0x2c3e43=this['_memberService'][_0x16ca54(0x2cc)](this['unitID'],_0x2ffab5))==null?void 0x0:_0x2c3e43[_0x16ca54(0x3e4)])==null?'Unknown\x20user':_0x48779f,'range':this['_getMergeRange'](_0x45c736,_0x35a359),'sheetID':_0x45c736,'color':this[_0x16ca54(0x334)][_0x16ca54(0x2d1)](_0x2ffab5),'selection':_0x1491ab},_0x75135=this[_0x16ca54(0x32e)];_0x75135[_0x16ca54(0x1b2)](_0x2ffab5,_0x495ec3),this['_cursorInfo$'][_0x16ca54(0x1cc)](_0x75135);}[_0x5eb250(0x3be)](_0x2ed14d){const _0x49f462=_0x5eb250;let {memberID:_0xba37ef}=_0x2ed14d[_0x49f462(0x27c)],_0x318d63=this[_0x49f462(0x32e)];_0x318d63['delete'](_0xba37ef),this['_cursorInfo$'][_0x49f462(0x1cc)](_0x318d63);}[_0x5eb250(0x2c4)](_0x3408ef,_0x19bfd4){const _0x5f5cdb=_0x5eb250;var _0x51737c;let _0x2d613e=(_0x51737c=this[_0x5f5cdb(0x2e6)][_0x5f5cdb(0x24a)](this[_0x5f5cdb(0x370)]))==null||(_0x51737c=_0x51737c[_0x5f5cdb(0x18e)](_0x3408ef))==null?void 0x0:_0x51737c[_0x5f5cdb(0x38f)]();return(_0x2d613e==null?void 0x0:_0x2d613e[_0x5f5cdb(0x280)](_0x13d86c=>t['Rectangle'][_0x5f5cdb(0x3b3)](_0x13d86c,_0x19bfd4)))||_0x19bfd4;}[_0x5eb250(0x37c)](){const _0x540d77=_0x5eb250;let _0x5812ee=new t[(_0x540d77(0x35b))](),_0x36c8a8=se(),_0x5bb56b=()=>{const _0x28ec26=_0x540d77;_0x5812ee[_0x28ec26(0x1d9)]();let _0x2e54bc=(_0x47375f,_0x62538,_0x28280d,_0xb2092f)=>{const _0x462028=_0x28ec26;let _0x538749=[];switch(_0x47375f['id']){case l['EffectRefRangId'][_0x462028(0x29a)]:_0x538749=(0x0,l['handleDeleteRangeMoveLeft'])(_0x47375f,_0xb2092f);break;case l[_0x462028(0x2a1)][_0x462028(0x300)]:_0x538749=(0x0,l['handleDeleteRangeMoveUp'])(_0x47375f,_0xb2092f);break;case l[_0x462028(0x2a1)][_0x462028(0x3d0)]:_0x538749=(0x0,l[_0x462028(0x363)])(_0x47375f,_0xb2092f);break;case l['EffectRefRangId'][_0x462028(0x1ac)]:_0x538749=(0x0,l[_0x462028(0x1ad)])(_0x47375f,_0xb2092f);break;case l[_0x462028(0x2a1)][_0x462028(0x2bf)]:_0x538749=(0x0,l[_0x462028(0x18c)])(_0x47375f,_0xb2092f);break;case l['EffectRefRangId'][_0x462028(0x1b4)]:_0x538749=(0x0,l[_0x462028(0x2de)])(_0x47375f,_0xb2092f);break;case l[_0x462028(0x2a1)][_0x462028(0x381)]:_0x538749=(0x0,l[_0x462028(0x3e6)])(_0x47375f,_0xb2092f);break;case l[_0x462028(0x2a1)][_0x462028(0x195)]:_0x538749=(0x0,l[_0x462028(0x2d7)])(_0x47375f,_0xb2092f);break;case l[_0x462028(0x2a1)][_0x462028(0x31b)]:_0x538749=(0x0,l[_0x462028(0x15f)])(_0x47375f,_0xb2092f);break;}let _0x881933=(0x0,l[_0x462028(0x312)])(_0x538749,_0xb2092f),_0x245511=this['cursorInfo']['get'](_0x62538);if(_0x245511&&_0x881933){let _0xa20353={..._0x245511,'range':_0x881933};this[_0x462028(0x32e)][_0x462028(0x1b2)](_0x62538,_0xa20353),_0x36c8a8(()=>{const _0x1e8cef=_0x462028;let _0x5002a9=this[_0x1e8cef(0x3b4)]['registerRefRange'](_0x881933,_0x397df6=>(_0x5002a9['dispose'](),_0x2e54bc(_0x397df6,_0x62538,_0x28280d,_0x881933)));_0x5812ee[_0x1e8cef(0x1bd)](_0x5002a9);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x28ec26(0x346)]((_0x4326e1,_0x5b02bf)=>{const _0x3885fd=_0x28ec26;let {range:_0x15cbf9,sheetID:_0x54afab}=_0x4326e1,_0x15314a=this[_0x3885fd(0x3b4)][_0x3885fd(0x17f)](_0x15cbf9,_0x336137=>(_0x15314a[_0x3885fd(0x1d9)](),_0x2e54bc(_0x336137,_0x5b02bf,_0x54afab,_0x15cbf9)));_0x5812ee[_0x3885fd(0x1bd)](_0x15314a);});};this['disposeWithMe']((0x0,t[_0x540d77(0x170)])(this[_0x540d77(0x168)]['subscribe'](()=>{_0x5bb56b();})));}['_toggleOnline'](){const _0x4233cb=_0x5eb250;var _0x4a4032,_0x3eca07;if(this['_online']=!0x0,((_0x4a4032=this[_0x4233cb(0x2e6)][_0x4233cb(0x308)]())==null?void 0x0:_0x4a4032[_0x4233cb(0x3b9)]())!==this['unitID'])return;let _0x39eb74=(_0x3eca07=this[_0x4233cb(0x193)]['get'](l[_0x4233cb(0x349)])['getCurrentSelections']())==null?void 0x0:_0x3eca07[0x0],_0x3b7822=this['_univerInstanceService'][_0x4233cb(0x1fa)](t[_0x4233cb(0x1dc)]['UNIVER_SHEET'])['getActiveSheet']();_0x39eb74&&_0x3b7822&&this['_updateLocalCursor'](_0x3b7822['getSheetId'](),_0x39eb74);}[_0x5eb250(0x1e5)](){const _0xb0afcb=_0x5eb250;this[_0xb0afcb(0x1c1)]=!0x1;}};P=T([w(0x2,(0x0,t[_0x5eb250(0x235)])(t['Injector'])),w(0x3,(0x0,t['Inject'])(A)),w(0x4,(0x0,t[_0x5eb250(0x235)])(e[_0x5eb250(0x1e6)])),w(0x5,t['IUniverInstanceService']),w(0x6,t[_0x5eb250(0x1f3)]),w(0x7,(0x0,t[_0x5eb250(0x235)])(l[_0x5eb250(0x208)]))],P);let F=class extends t[_0x5eb250(0x1a5)]{constructor(_0x53b63b,_0x58940a,_0x313bac){const _0x44b131=_0x5eb250;super(),this[_0x44b131(0x2e6)]=_0x53b63b,this[_0x44b131(0x193)]=_0x58940a,this[_0x44b131(0x2c1)]=_0x313bac,C(this,_0x44b131(0x1ec),new Map()),C(this,_0x44b131(0x1f1),new r[(_0x44b131(0x1df))]()),this[_0x44b131(0x163)]();}[_0x5eb250(0x1d9)](){const _0x295fde=_0x5eb250;super[_0x295fde(0x1d9)](),this['_entityInit$']['complete'](),this[_0x295fde(0x1ec)][_0x295fde(0x346)](_0x38d468=>_0x38d468[_0x295fde(0x1d9)]());}['getCollabCursors$'](_0x2edb7e){const _0x3f57e9=_0x5eb250;return this[_0x3f57e9(0x1ec)]['has'](_0x2edb7e)?this[_0x3f57e9(0x1ec)][_0x3f57e9(0x1ae)](_0x2edb7e)[_0x3f57e9(0x25b)]:this[_0x3f57e9(0x1f1)]['pipe']((0x0,r['filter'])(_0x38f884=>_0x38f884['unitID']===_0x2edb7e),(0x0,r[_0x3f57e9(0x39d)])(_0x29b896=>_0x29b896['cursorInfo$']));}[_0x5eb250(0x163)](){const _0x336e85=_0x5eb250;this[_0x336e85(0x2e6)][_0x336e85(0x276)](t[_0x336e85(0x1dc)]['UNIVER_SHEET'])[_0x336e85(0x2ca)]((0x0,r[_0x336e85(0x249)])(this[_0x336e85(0x2d8)]))[_0x336e85(0x3e7)](async _0x58ba66=>{const _0x479aea=_0x336e85;let _0x578b32=_0x58ba66['unit'][_0x479aea(0x3b9)](),_0x41659a=await this['_startSheetCollabCursor'](_0x578b32);this[_0x479aea(0x1f1)][_0x479aea(0x1cc)](_0x41659a),this['_entities']['set'](_0x578b32,_0x41659a);}),this[_0x336e85(0x2e6)]['getTypeOfUnitAdded$'](t['UniverInstanceType']['UNIVER_DOC'])[_0x336e85(0x2ca)]((0x0,r[_0x336e85(0x249)])(this[_0x336e85(0x2d8)]))[_0x336e85(0x2ca)]((0x0,r[_0x336e85(0x28f)])(_0x4639da=>!_0x4639da[_0x336e85(0x2f0)][_0x336e85(0x3b9)]()[_0x336e85(0x3a9)]('__')))['subscribe'](async _0x49d578=>{const _0x2d1867=_0x336e85;let {unit:_0x460234}=_0x49d578,_0x40b5c1=_0x460234['getUnitId'](),_0x95c271=await this[_0x2d1867(0x39b)](_0x40b5c1);this[_0x2d1867(0x1f1)]['next'](_0x95c271),this['_entities']['set'](_0x40b5c1,_0x95c271);}),(0x0,r[_0x336e85(0x29f)])(this[_0x336e85(0x2e6)]['getTypeOfUnitDisposed$'](t[_0x336e85(0x1dc)][_0x336e85(0x173)]),this['_univerInstanceService'][_0x336e85(0x1d5)](t[_0x336e85(0x1dc)]['UNIVER_SHEET']))['pipe']((0x0,r['takeUntil'])(this['dispose$']))['subscribe'](_0x1d51a4=>{const _0x2a210c=_0x336e85;let _0x23ce31=_0x1d51a4['getUnitId'](),_0x4c199e=this[_0x2a210c(0x1ec)][_0x2a210c(0x1ae)](_0x23ce31);_0x4c199e&&(_0x4c199e['dispose'](),this['_entities']['delete'](_0x23ce31));});}async[_0x5eb250(0x303)](_0x4a375f){const _0x286753=_0x5eb250;let _0x5cff98=await this['_collabSessionService'][_0x286753(0x1b5)](_0x4a375f),_0x415336=this[_0x286753(0x193)]['createInstance'](P,_0x4a375f,_0x5cff98);return _0x415336[_0x286753(0x19f)](),_0x415336;}async[_0x5eb250(0x39b)](_0x4e1243){const _0x12af30=_0x5eb250;let _0x84630=await this[_0x12af30(0x2c1)]['requireSession'](_0x4e1243),_0x231b5d=this[_0x12af30(0x193)]['createInstance'](N,_0x4e1243,_0x84630);return _0x231b5d[_0x12af30(0x19f)](),_0x231b5d;}};F=T([w(0x0,t['IUniverInstanceService']),w(0x1,(0x0,t[_0x5eb250(0x235)])(t[_0x5eb250(0x2b1)])),w(0x2,(0x0,t[_0x5eb250(0x235)])(e[_0x5eb250(0x233)]))],F);function ce(_0x277913,_0x1124b1){const _0x3d4b61=_0x5eb250;var _0x31d635,_0x378150,_0x195337;let {radius:_0x337481,width:_0x2c763a,height:_0x3940d0}=_0x1124b1;_0x337481=(_0x31d635=_0x337481)==null?0x0:_0x31d635,_0x2c763a=(_0x378150=_0x2c763a)==null?0x1e:_0x378150,_0x3940d0=(_0x195337=_0x3940d0)==null?0x1e:_0x195337;let _0x4a6e81=0x0,_0x1adda2=0x0,_0x4e1e44=0x0;_0x4a6e81=_0x1adda2=_0x4e1e44=Math[_0x3d4b61(0x35a)](_0x337481,_0x2c763a/0x2,_0x3940d0/0x2),_0x277913['beginPath'](),_0x277913[_0x3d4b61(0x320)](_0x4a6e81,0x0),_0x277913['lineTo'](_0x2c763a-_0x1adda2,0x0),_0x277913['arc'](_0x2c763a-_0x1adda2,_0x1adda2,_0x1adda2,Math['PI']*0x3/0x2,0x0,!0x1),_0x277913['lineTo'](_0x2c763a,_0x3940d0-_0x4e1e44),_0x277913['arc'](_0x2c763a-_0x4e1e44,_0x3940d0-_0x4e1e44,_0x4e1e44,0x0,Math['PI']/0x2,!0x1),_0x277913['lineTo'](0x0,_0x3940d0),_0x277913[_0x3d4b61(0x3c6)](0x0,_0x4a6e81),_0x277913[_0x3d4b61(0x360)](_0x4a6e81,_0x4a6e81,_0x4a6e81,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x277913[_0x3d4b61(0x256)](),_0x1124b1[_0x3d4b61(0x15d)]&&(_0x277913[_0x3d4b61(0x227)](),_0x277913['fillStyle']=_0x1124b1[_0x3d4b61(0x15d)],_0x1124b1[_0x3d4b61(0x323)]===_0x3d4b61(0x224)?_0x277913[_0x3d4b61(0x15d)]('evenodd'):_0x277913['fill'](),_0x277913[_0x3d4b61(0x290)]());}var le=class e extends u['Shape']{constructor(_0x23ffa2,_0x387aaa){const _0x73496d=_0x5eb250;super(_0x23ffa2,_0x387aaa),C(this,_0x73496d(0x3af),void 0x0),C(this,_0x73496d(0x26f),void 0x0),this[_0x73496d(0x3af)]=_0x387aaa==null?void 0x0:_0x387aaa[_0x73496d(0x3af)],this[_0x73496d(0x26f)]=_0x387aaa==null?void 0x0:_0x387aaa['text'];}static['drawWith'](_0x309402,_0x1ee534){const _0x55e642=_0x5eb250;let {text:_0x54adab,color:_0x5c6079}=_0x1ee534;_0x309402[_0x55e642(0x227)](),_0x309402['font']=_0x55e642(0x245);let _0x4aa30f=_0x309402[_0x55e642(0x247)](_0x54adab)[_0x55e642(0x33d)];if(ce(_0x309402,{'height':0x14,'radius':0x4,'width':Math[_0x55e642(0x35a)](_0x4aa30f+0x8,0xc8),'fill':_0x5c6079,'evented':!0x1}),_0x309402[_0x55e642(0x264)]=_0x55e642(0x306),_0x4aa30f>0xc0){let _0x132a79='',_0x49ea5d=0x0;for(let _0x163821 of _0x54adab){let _0xbe7d80=_0x309402[_0x55e642(0x247)](_0x163821)[_0x55e642(0x33d)];if(_0x49ea5d+_0xbe7d80<=0xc0-_0x309402['measureText'](_0x55e642(0x384))['width'])_0x132a79+=_0x163821,_0x49ea5d+=_0xbe7d80;else{_0x132a79+=_0x55e642(0x384);break;}}_0x309402['fillText'](_0x132a79,0x4,0xf);}else _0x309402[_0x55e642(0x1a2)](_0x54adab,0x4,0xf);_0x309402[_0x55e642(0x290)]();}['_draw'](_0x439d66){const _0x458d4e=_0x5eb250;e[_0x458d4e(0x351)](_0x439d66,this);}};const I=_0x5eb250(0x277);function _0x26e0(){const _0x57e921=['show','currentSkeleton$','AWAITING','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','drawWith','sessionTicket','error','decorate','fromEventSubject','_initCommandInterceptor','packageName','transformMutation','transform','min','DisposableCollection','_saveTaskMap','_initDependencies','_docSkeleton','preventDefault','arc','clearInterval','univer-m-0\x20univer-p-0','handleInsertCol','getSkeleton','clickable','touchDependencies','startColumn','symbol','hide','getOffsetConfig','fromEvent','MessageType','_startBlinking','DocIMEInputManagerService','getOwnPropertyDescriptor','unitID','colno','_render','transformByState','max','_clearOtherTimers','/universer-api/license/formula/limit/start','_colorIndex','_send','isFormulaId','polite','enableLocalCache','_onRefRangeChange','colorClass','_initStatusComponent','_scheduleClearOtherTimer','BuiltInUIPart','MoveRangeCommandId','univer-appearance-none','enableFrontendLog','...','_handleLeaveEvent','getMemberID','endRow','unshift','_heartbeatTimer','button','LocaleService','[CollaborationDataLoaderController]','_memberService','onPointerLeave$','getMergeData','_updateCollabCursors','registerDependencies','_imageIoService','SUCCESS','row','string','isArray','_stopBlinking','getLocalCacheKey','_currentUsage','SetFormulaCalculationNotificationMutation','_startDocCollabCursor','getCoordByCell','switchMap','1973344IIJJBK','_messageService','static','collab-text-range-','_backgroundColor','currentTheme$','onMouseMove','3829HqXFSM','FormulaExecutedStateType','_initUserListener','searchParams','startsWith','isFormulaString','onRendered',',\x200.2)','_isBlinkVisible','_renderManagerService','color','hovered','Success','serializeRangeWithSheet','contains','_refRangeService','_anchorDot','SUBMIT_CHANGESET_TIMEOUT','history','toPrimitive','getUnitId','_docSkeletonManagerService','Plugin','runOnServer','pluginName','_onCursorDelete','params','ColorKit','univer-text-red-500','ILogService','limitInfo','_blinkIntervalTimer','_highlightSecond','lineTo','47230McFdps','size','_session','_localStorageService','span','RemoteUniscriptService','popstate','getUnitStatus$','memberID','InsertColCommandId','getValue','_urlService','backgroundColor','endColumn','wsSessionTicketUrl','blue.400','TEXT_RANGE_LAYER_INDEX','_cachedData','_status$','_color','LoadingMultiIcon','SetTextSelectionsOperation','univer-text-blue-500','_revisionService','NodePositionConvertToRectRange','_syncEditingCollabCursorService','setStateCache','Vector2','_removeCollabCursors','name','CollaborationDataLoaderController','handleMoveRange','subscribe','releaseFormulaLimitUrl','_offsetY','addObject','split','override','onCommandExecuted','delete','useCallback','_roomMembers$','transformStateCache','ranges','send','href','getItem','collabStatus.offline','_doCreateSocket','fill','/universer-api/license/formula/limit/done','handleIRemoveRow','spin','socket$','_assignedColors','_init','search','CollaborationUIEventService','ticket','_drawRectRange','_cursorInfo$','Shape','IConfigService','IMessageService','join','distinctUntilChanged','ILocalCacheService','startRow','toDisposable','location','replaceDocRanges','UNIVER_DOC','SYNCED','_handleHover','ONLINE','jsx','transformMutationsWithChangeset','CollaborationUIEventId','ILocalStorageService','function','1522272vATOOs','combineLatest','IDocClipboardService','registerRefRange','parse','UNIVER_SHEET','toString','currentUsage','mergeOverrideWithDependencies','offsetY','rgba(255,\x20255,\x20255,\x200.01)','subunit','univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-text-gray-400','rgb','_ensureSubject','handleInsertRangeMoveRight','textRanges','getSheetBySheetId','DocStateChangeManagerService','startFormulaLimitUrl','_unitOnClients','_collabCursorState$','_injector','labelPosition','RemoveColCommandId','onStarting','ThemeService','setShapeProps','_initResize','call','useMemo','rgba(','HTTPService','_setFormulaLimitStatus','init','CollaborationStatus','getUnhiddenWorksheets','fillText','_updateSubUnitFromURLParams','SOCKET_FAILED','RxDisposable','formula.calculation.waiting','getViewport','_draw','triggerDblclick','453677QMPkeF','isTransformMutationsWithChangesetSuccess','InsertRangeMoveDownCommandId','handleInsertRangeMoveDown','get','createIdentifier','undoState','_scheduleSaving','set','0.24.0','InsertRowCommandId','requireSession','debounce','getFormulaLimitStatusUrl','showText','shareReplay','BehaviorSubject','column','functionsExecutedState','add','_pollingInterval','_dataLoaderService','highlightSecond','_online','all','UnitStatus','univer-h-8\x20univer-w-8\x20univer-rounded-lg','SheetSkeletonManagerService','slice','HEADER_MENU','OTHER_CLIENTS_EDITING','disposeWithMe','_collabCursorController','newValue','next','_docSyncEditingCollabCursorService','_transformPreviousActiveRange','m2Prime','body','_drawAnchor','CollaborationEvent','_hideTimer','getDocRanges','getTypeOfUnitDisposed$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','disposeUnit','m1Prime','dispose','collaboration.closeRoom','getRenderById','UniverInstanceType','sessionStatus$','_labelPosition','Subject','range','_lastResponseTimestamp','_sheetSkeletonManagerService','Disposable','getVpScrollXYInfoByPosToVp','_toggleOffline','MemberService','_range','onLocalMutation','NodePositionConvertToCursor','getCollabEntity$','DataLoaderService','_entities','PENDING','roomMembers$','univer-border-none\x20univer-bg-transparent','Enter','_entityInit$','reconnect','ICommandService','defineProperty','jiqing.500','complete','/universer-api/frontend/logs','type','mapTo','getCurrentUnitOfType','_uploadLog','_checkCalculationAvailable','_hasFormulaInDirtyRanges','Error','transformRemoteChangeset','_handleHeartbeatEvent','makeDirty','runId','loadOfflineData','status$','_maxFormulaLimit','_cursorShapes','_onCursorUpdate','RefRangeService','[Unhandled\x20Rejection]:\x20','_logService','WebSocketService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','FETCH_MISS','getUndoRedoMutationParamsCache','replaceState','CONFLICT','Unknown\x20user','highlight','createSocket','session.connection-failed','getSheetId','_getAnchorBounding','_collaborationSessionService','_notificationService','CollaborationController','onPointerEnter$','addObjects','_checkAndWaitForCalculationPermission','univer-text-green-500','from','_applyCommand','redoState','_getSaveTimeout','DOC_RANGE_TYPE','getCellMatrix','evenodd','JOIN_ROOM_FAILED','PERMISSION_DENIED','save','SessionStatus','height','_initWindowErrorListener','dirtyRanges','_saveCache','storage','stack','_getLighterColor','some','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_docStateChangeManagerService','CollaborationSessionService','346BMvjbL','Inject','post','START_CALCULATION','deepClone','[Window\x20Error]:\x20','getStateCache','object','collabStatus.fetchMiss','subUnitId','prototype','_shapes','_clearPolling','deserializeRangeWithSheet','IImageIoService','_localCacheService','univer-text-orange-500','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','OnLineIcon','measureText','getSheetObject','takeUntil','getUniverSheetInstance','_cursors','debounceTime','NO_OTHER_CLIENTS_EDITING','ISnapshotServerService','transformSelections','_toggleOnline','imageSourceType','_themeService','@univerjs-pro/collaboration-client-ui','INotificationService','toRgbString','closePath','_initEntityListener','mutations','asObservable','CanceledError','cursorInfo$','_disabled','_memberID','AWAITING_WITH_PENDING','_anchor','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_docTransformStateCacheService','DocSkeletonManagerService','_pointerMoveDisposable','fillStyle','saveOfflineData','selections','removeEventListener','entityInit$','RegularPolygon','_docTransformSelectionsService','_beforeCloseService','saveTaskMap','_handleJoinEvent','_updateLocalCursor','text','addHandlerCallback','OffLineIcon','collabStatus.notCollab','focused$','isTransformMutationFailure','event$','getTypeOfUnitAdded$','collab-text-anchor-','origin','_updateURLWithCurrentState','_localeService','unitId','data','RevisionService','_drawTextRange','tooltipKey','find','_lastPointer','rgba','_collaborationController','application/json','result','toStringTag','roomMembers','_transformUndoRedoStack','then','_unitStatus','?taskId=','transformIMECache','204237DwpQOB','_highlight','filter','restore','CollaborationSocketService','map','_name','true','urlChange$','permission.content','setParam','FromArray','_initUnhandledRejectionListener','DeleteRangeMoveLeftCommandId','_getScale','collabStatus.synced','now','SetSelectionsOperation','merge','debug','EffectRefRangId','clsx','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Rect','COLORS','beforeCommandExecuted','_hover','_textBubble','_collaborationUIEventService','bottom','length','registerRenderModule','getCellPositionByOffset','_taskIds','exhaustSavingTask','_scheduleHeartbeat','Injector','eventID','RECT','BrowserCollaborationSocketService','_cursor','_handleEvent','has','executionId','parseInt','findNodePositionByCharIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','USERS_LEAVE','OFFLINE','_context','InsertRangeMoveRightCommandId','_docClipboardService','_collabSessionService','syncEditingCollabCursor','setInterval','_getMergeRange','connectInjector','_instanceService','_getSheetObject','top','univer-transition-all\x20univer-duration-200','pipe','uni.network.url-service','getMember','_uiPartsService','isEditing','Loading','_transformService','assignAColorForMemberID','green.600','_createSocketURL','SOCKET_FAILED_RETRY','getAncestorScale','TEXT','handleIRemoveCol','dispose$','doc.mutation.rich-text-editing','_monkeyPatchLogService','session.collaboration-timeout','_showGuardMessage','session.will-retry','handleInsertRow','values','pulse','4232Yamexd','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_id','lineno','IUIPartsService','_univerInstanceService','[LogService\x20Error]:\x20','Tooltip','subscribeEvent','_removeClearOtherTimer','_docTransformIMECacheService','filename','pushState','_selfUnitIDs','ITransformService','unit','executeCommand','MUTATION','UPDATE_CURSOR','key','addClipboardHook','removeParam','push','getParam','code','_initEvent','throttleTime','black','_transformHistoryAndStateStack','shift','_registerRenderDependencies','DeleteRangeMoveUpCommandId','OTHER_CLIENT_EDITING','_refreshCollabCursors','_startSheetCollabCursor','collabCursorState$','IRenderManagerService','#FFF','selection','getFocusedUnit','DocSelectionManagerService','totalFormulasToCalculate','_scene','_eventUnsubscribe','dark:focus:univer-ring-offset-gray-800','i18nKey','_showText','_blinkTimer','unhandledrejection','runRefRangeMutations','getRangePointData','_httpService','status','actions','collabStatus.conflict','with','IRemoteInstanceService','SetWorksheetActivateCommand','RemoveRowCommandId','_releaseCalculationLimit','_hovered','_configService','getColor','moveTo','Warning','Module','fillRule','SHEET_VIEWPORT_KEY','saveImage','_startCalculationLimit','_commandService','_registerDependencies','bind','NOT_COLLAB','setTimeout','unsubscribe','addEventListener','cursorInfo','purple.300','_config','_initCommandExecutedListener','setOffsetY','icon','_colorAssignService','IUniverInstanceService','_setupSubUnitSync','catch','getRelativeToViewportCoord','getConfig','Failed','stringify','univer-flex\x20univer-items-center\x20univer-justify-center','width','generateRandomId','4947ayhyWS','collab-client.tooltip.reconnect','reason','Tools','clearTimeout','_setupBeforeClosingHandler','LOCAL_CACHE_INTERVAL','forEach','div','isActive','SheetsSelectionsService','replace','setItem','permission.title'];_0x26e0=function(){return _0x57e921;};return _0x26e0();}var ue=class{constructor(_0x318651,_0x37d7e3,_0x4f2d8d,_0x252108){const _0x51dd12=_0x5eb250;this['_cursor']=_0x318651,this['_scene']=_0x37d7e3,this[_0x51dd12(0x35e)]=_0x4f2d8d,this['_document']=_0x252108,C(this,'_shapes',[]),C(this,'_anchor',null),C(this,_0x51dd12(0x2a8),null),C(this,'_anchorDot',null),C(this,_0x51dd12(0x1d3),null),C(this,_0x51dd12(0x30c),null),this[_0x51dd12(0x372)]();}set[_0x5eb250(0x2a7)](_0x186a24){const _0x266fdf=_0x5eb250;_0x186a24?(this[_0x266fdf(0x3b5)]&&this[_0x266fdf(0x3b5)][_0x266fdf(0x369)](),this[_0x266fdf(0x2a8)]&&this[_0x266fdf(0x2a8)][_0x266fdf(0x34d)]()):(this[_0x266fdf(0x3b5)]&&this[_0x266fdf(0x3b5)]['show'](),this['_textBubble']&&this[_0x266fdf(0x2a8)]['hide']());}['dispose'](){const _0x24b454=_0x5eb250;for(let _0x1fcb3d of this[_0x24b454(0x23f)])_0x1fcb3d['dispose']();this[_0x24b454(0x2a8)]&&this[_0x24b454(0x2a8)][_0x24b454(0x1d9)](),this[_0x24b454(0x3b5)]&&this[_0x24b454(0x3b5)][_0x24b454(0x1d9)](),this['_anchor']&&this[_0x24b454(0x25f)][_0x24b454(0x1d9)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x5eb250(0x372)](){const _0x4cde1b=_0x5eb250;let {_docSkeleton:_0x39cc47,_document:_0x7d96dc}=this,{color:_0x2dad47,name:_0x295db4,ranges:_0x52b0d9}=this[_0x4cde1b(0x2b5)],_0x5b81f1=_0x7d96dc[_0x4cde1b(0x36a)](),{docsLeft:_0x203ce4,docsTop:_0x5a6934}=_0x5b81f1,_0x52d1af=new f[(_0x4cde1b(0x1e9))](_0x5b81f1,_0x39cc47);for(let {startOffset:_0x36f90d,endOffset:_0xc2411c,rangeType:_0x251775,segmentId:_0x1a6ad7,segmentPage:_0x4d0784,collapsed:_0x5ab450,isActive:_0x194bef}of _0x52b0d9){let _0x1fb9bb=_0x39cc47[_0x4cde1b(0x2ba)](_0x36f90d,!0x0,_0x1a6ad7,_0x4d0784),_0x3d4e31=_0x39cc47[_0x4cde1b(0x2ba)](_0xc2411c,!0x0,_0x1a6ad7,_0x4d0784);if(_0x3d4e31==null&&(_0x3d4e31=_0x39cc47['findNodePositionByCharIndex'](_0xc2411c-0x1,!0x1,_0x1a6ad7,_0x4d0784)),_0x194bef){let {contentBoxPointGroup:_0xa13d13}=_0x52d1af['getRangePointData'](_0x3d4e31,_0x3d4e31);if(_0xa13d13[_0x4cde1b(0x2ab)]===0x0)continue;this['_drawAnchor'](_0x2dad47,_0xa13d13,_0x203ce4,_0x5a6934,_0x295db4),this[_0x4cde1b(0x30c)]=this['_handleHover']();}if(_0x1fb9bb&&_0x3d4e31){if(_0x251775===t[_0x4cde1b(0x222)]['RECT']){var _0x383087;let {pointGroup:_0xffaa25}=(_0x383087=new f[(_0x4cde1b(0x3df))](_0x5b81f1,_0x39cc47)[_0x4cde1b(0x313)](_0x1fb9bb,_0x3d4e31))==null?{}:_0x383087;if(_0xffaa25==null||_0xffaa25['length']===0x0)continue;this[_0x4cde1b(0x167)](_0x2dad47,_0xffaa25,_0x203ce4,_0x5a6934);}else{if(!_0x5ab450){let {borderBoxPointGroup:_0x4a276d}=_0x52d1af['getRangePointData'](_0x1fb9bb,_0x3d4e31);if(_0x4a276d[_0x4cde1b(0x2ab)]===0x0)continue;this[_0x4cde1b(0x27e)](_0x2dad47,_0x4a276d,_0x203ce4,_0x5a6934);}}}}}[_0x5eb250(0x1d1)](_0x2e578f,_0xb390a8,_0x10e5fe,_0x1ac054,_0x1081d3){const _0x2a0cd7=_0x5eb250;let {left:_0x35a9a4,top:_0x270178,height:_0x4b243e}=this[_0x2a0cd7(0x216)](_0xb390a8),_0x14cb8e=1.5/this[_0x2a0cd7(0x29b)](),_0x1fecba=new u[(_0x2a0cd7(0x2a4))](I+(0x0,t[_0x2a0cd7(0x33e)])(0x6),{'left':_0x35a9a4+_0x10e5fe-_0x14cb8e,'top':_0x270178+_0x1ac054,'height':_0x4b243e,'width':1.5,'fill':_0x2e578f||(0x0,u[_0x2a0cd7(0x31f)])(t['COLORS'][_0x2a0cd7(0x2fc)],0x0),'strokeWidth':_0x14cb8e,'stroke':_0x2a0cd7(0x186),'evented':!0x0});this[_0x2a0cd7(0x25f)]=_0x1fecba,this[_0x2a0cd7(0x30b)]['addObject'](_0x1fecba,f[_0x2a0cd7(0x3d7)]);let _0x489868=new u[(_0x2a0cd7(0x2a4))](I+(0x0,t['generateRandomId'])(0x6),{'left':_0x35a9a4+_0x10e5fe-_0x14cb8e,'top':_0x270178+_0x1ac054-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x2e578f||(0x0,u[_0x2a0cd7(0x31f)])(t['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x2e578f||(0x0,u[_0x2a0cd7(0x31f)])(t[_0x2a0cd7(0x2a5)][_0x2a0cd7(0x2fc)],0x0),'evented':!0x1});this[_0x2a0cd7(0x3b5)]=_0x489868,this['_scene'][_0x2a0cd7(0x3ea)](_0x489868,f['TEXT_RANGE_LAYER_INDEX']);let _0xd9b611=new le(I+(0x0,t[_0x2a0cd7(0x33e)])(0x6),{'left':_0x35a9a4+_0x10e5fe-_0x14cb8e,'top':_0x270178+_0x1ac054-0x14,'text':_0x1081d3,'color':_0x2e578f});this[_0x2a0cd7(0x2a8)]=_0xd9b611,this[_0x2a0cd7(0x30b)][_0x2a0cd7(0x3ea)](_0xd9b611,f[_0x2a0cd7(0x3d7)]),this['_hover']=!0x1;}[_0x5eb250(0x175)](){const _0x44f35e=_0x5eb250;let _0x570468=this['_anchor'][_0x44f35e(0x21a)][_0x44f35e(0x2e9)](()=>{this['_hover']=!0x0;}),_0x29b1ed=this[_0x44f35e(0x25f)][_0x44f35e(0x38e)]['subscribeEvent'](()=>{const _0x385e8e=_0x44f35e;this[_0x385e8e(0x1d3)]&&clearTimeout(this[_0x385e8e(0x1d3)]),this[_0x385e8e(0x1d3)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x43539b=_0x44f35e;_0x570468[_0x43539b(0x32c)](),_0x29b1ed[_0x43539b(0x32c)]();};}[_0x5eb250(0x27e)](_0x45bad8,_0x425d20,_0x219d5d,_0x33ef81){const _0x5a48f3=_0x5eb250;let _0x186304=0.2,_0x3e00c9=new t[(_0x5a48f3(0x3c0))](_0x45bad8)['setAlpha'](_0x186304)['toRgbString'](),_0x340206=new u[(_0x5a48f3(0x269))](_0x5a48f3(0x3a1)+(0x0,t[_0x5a48f3(0x33e)])(0x6),{'pointsGroup':_0x425d20,'fill':_0x3e00c9||(0x0,u[_0x5a48f3(0x31f)])(t[_0x5a48f3(0x2a5)][_0x5a48f3(0x2fc)],_0x186304),'left':_0x219d5d,'top':_0x33ef81,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5a48f3(0x23f)][_0x5a48f3(0x2f7)](_0x340206),this[_0x5a48f3(0x30b)][_0x5a48f3(0x3ea)](_0x340206,f['TEXT_RANGE_LAYER_INDEX']);}[_0x5eb250(0x167)](_0x4bdca1,_0x10f6a4,_0x317579,_0x25aec7){const _0x36a71d=_0x5eb250;let _0x1b28d7=0.2,_0x348db0=new t['ColorKit'](_0x4bdca1)['setAlpha'](_0x1b28d7)[_0x36a71d(0x255)](),_0x44f9af=new u['RegularPolygon']('collab-rect-range-'+(0x0,t[_0x36a71d(0x33e)])(0x6),{'pointsGroup':_0x10f6a4,'fill':_0x348db0||(0x0,u[_0x36a71d(0x31f)])(t[_0x36a71d(0x2a5)][_0x36a71d(0x2fc)],_0x1b28d7),'left':_0x317579,'top':_0x25aec7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x36a71d(0x23f)][_0x36a71d(0x2f7)](_0x44f9af),this[_0x36a71d(0x30b)]['addObject'](_0x44f9af,f[_0x36a71d(0x3d7)]);}[_0x5eb250(0x216)](_0x39edae){let _0x427bbc=_0x39edae[0x0],_0x36dafe=_0x427bbc[0x0],_0x60028a=_0x427bbc[0x2],{x:_0x4715d8,y:_0x140e3e}=_0x36dafe,{x:_0x39bde6,y:_0x4e25c6}=_0x60028a;return{'left':_0x4715d8,'top':_0x140e3e,'width':_0x39bde6-_0x4715d8,'height':_0x4e25c6-_0x140e3e};}[_0x5eb250(0x29b)](){const _0x5708e0=_0x5eb250;let {scaleX:_0x471dfa,scaleY:_0xe04925}=this[_0x5708e0(0x30b)][_0x5708e0(0x2d5)]();return Math[_0x5708e0(0x374)](_0x471dfa,_0xe04925);}};let L=class extends t[_0x5eb250(0x1a5)]{constructor(_0x103622,_0x25b35e,_0x4a25aa,_0x513898,_0x4bee6b){const _0x599ab8=_0x5eb250;super(),this[_0x599ab8(0x2be)]=_0x103622,this[_0x599ab8(0x3ba)]=_0x25b35e,this['_collabCursorController']=_0x4a25aa,this[_0x599ab8(0x327)]=_0x513898,this[_0x599ab8(0x252)]=_0x4bee6b,C(this,_0x599ab8(0x206),[]),C(this,_0x599ab8(0x24b),[]),this['_init']();}['_init'](){const _0xf13582=_0x5eb250;let _0x1efafd=this[_0xf13582(0x2be)][_0xf13582(0x27b)],_0x311158=this[_0xf13582(0x3ba)];this[_0xf13582(0x1c9)]((0x0,r[_0xf13582(0x17d)])([this[_0xf13582(0x1ca)]['getCollabCursors$'](_0x1efafd),this['_themeService'][_0xf13582(0x3a3)]])[_0xf13582(0x2ca)]((0x0,_[_0xf13582(0x292)])(([_0x2bcd39,_0x5e485b])=>({'skeleton':_0x311158['getSkeleton'](),'cursors':[..._0x2bcd39[_0xf13582(0x2df)]()]['flatMap'](_0x61c81b=>({..._0x61c81b,'color':this[_0xf13582(0x252)]['getColorFromTheme'](_0x61c81b[_0xf13582(0x3af)])}))})))[_0xf13582(0x3e7)](_0xf07684=>{const _0x495fd4=_0xf13582;if(this[_0x495fd4(0x3e3)](),_0xf07684){let {skeleton:_0x297c86,cursors:_0x58fcf2}=_0xf07684;this[_0x495fd4(0x390)](_0x297c86,_0x58fcf2);}})),this[_0xf13582(0x199)](),this['_initCommandExecutedListener']();}[_0x5eb250(0x390)](_0x12eec7,_0x3ee491){const _0x35e9b0=_0x5eb250;let {scene:_0x41daaf,mainComponent:_0x46844c}=this[_0x35e9b0(0x2be)],_0x50db43=_0x3ee491[_0x35e9b0(0x292)](_0x1a0590=>new ue(_0x1a0590,_0x41daaf,_0x12eec7,_0x46844c));this['_cursorShapes']=_0x50db43,this['_cursors']=_0x3ee491;}[_0x5eb250(0x302)](){const _0x383f83=_0x5eb250;this[_0x383f83(0x3e3)]();let {scene:_0x2ee664,mainComponent:_0x40fb1f}=this[_0x383f83(0x2be)],_0x2f68d2=this[_0x383f83(0x3ba)][_0x383f83(0x364)](),_0x2efd61=this[_0x383f83(0x24b)][_0x383f83(0x292)](_0x50caa6=>new ue(_0x50caa6,_0x2ee664,_0x2f68d2,_0x40fb1f));this[_0x383f83(0x206)]=_0x2efd61;}[_0x5eb250(0x3e3)](){const _0x7a4902=_0x5eb250;this[_0x7a4902(0x206)][_0x7a4902(0x346)](_0x36ad56=>_0x36ad56[_0x7a4902(0x1d9)]()),this['_cursorShapes']=[];}[_0x5eb250(0x331)](){const _0x2e34c8=_0x5eb250;let _0x62f8de=[f['SetDocZoomRatioOperation']['id']];this[_0x2e34c8(0x1c9)](this['_commandService']['onCommandExecuted'](_0x1b4690=>{const _0x1eda3a=_0x2e34c8;_0x62f8de['includes'](_0x1b4690['id'])&&_0x1b4690[_0x1eda3a(0x3bf)][_0x1eda3a(0x27b)]===this[_0x1eda3a(0x2be)][_0x1eda3a(0x27b)]&&this[_0x1eda3a(0x302)]();}));}[_0x5eb250(0x199)](){const _0x21014c=_0x5eb250;this[_0x21014c(0x1c9)]((0x0,t[_0x21014c(0x355)])(this[_0x21014c(0x2be)]['engine']['onTransformChange$'])[_0x21014c(0x2ca)]((0x0,_[_0x21014c(0x28f)])(_0x2f59a8=>_0x2f59a8[_0x21014c(0x1f8)]===u[_0x21014c(0x231)]['resize']),(0x0,_[_0x21014c(0x2fb)])(0x10))[_0x21014c(0x3e7)](()=>{this['_refreshCollabCursors']();}));}};L=T([w(0x1,(0x0,t[_0x5eb250(0x235)])(h[_0x5eb250(0x262)])),w(0x2,(0x0,t[_0x5eb250(0x235)])(F)),w(0x3,t[_0x5eb250(0x1f3)]),w(0x4,(0x0,t[_0x5eb250(0x235)])(t[_0x5eb250(0x197)]))],L);var R=class extends u[_0x5eb250(0x169)]{constructor(_0x2b2f6e,_0x2316c4){const _0x1e05d0=_0x5eb250;if(super(_0x2b2f6e,_0x2316c4),C(this,_0x1e05d0(0x3da),void 0x0),C(this,_0x1e05d0(0x31d),!0x1),C(this,_0x1e05d0(0x1e7),void 0x0),C(this,_0x1e05d0(0x293),''),C(this,_0x1e05d0(0x1de),_0x1e05d0(0x2c8)),C(this,_0x1e05d0(0x3a2),void 0x0),C(this,_0x1e05d0(0x30f),void 0x0),C(this,_0x1e05d0(0x28e),void 0x0),C(this,_0x1e05d0(0x3c5),0x4),C(this,_0x1e05d0(0x310),void 0x0),C(this,_0x1e05d0(0x3c4),void 0x0),C(this,_0x1e05d0(0x3ad),!0x0),C(this,_0x1e05d0(0x3e9),0x0),_0x2316c4){var _0x154edd;if(this[_0x1e05d0(0x198)](_0x2316c4),_0x2316c4['highlight']&&((_0x154edd=_0x2316c4[_0x1e05d0(0x1c0)])==null?this[_0x1e05d0(0x3c5)]:_0x154edd)){var _0x1ca60c;this[_0x1e05d0(0x36d)]((_0x1ca60c=_0x2316c4[_0x1e05d0(0x1c0)])==null?this['_highlightSecond']:_0x1ca60c);}}this['onPointerEnter$'][_0x1e05d0(0x2e9)](()=>this[_0x1e05d0(0x198)]({'hovered':!0x0})),this[_0x1e05d0(0x38e)]['subscribeEvent'](()=>this[_0x1e05d0(0x198)]({'hovered':!0x1}));}[_0x5eb250(0x332)](_0x43a142){const _0x50cc21=_0x5eb250;this[_0x50cc21(0x3e9)]=_0x43a142;}[_0x5eb250(0x198)](_0x1d2505){const _0x5017ef=_0x5eb250;var _0x38e204,_0x10008e,_0x1d5905,_0x399bbc,_0x44140b,_0x22808a,_0x59e81a;this[_0x5017ef(0x3da)]=(_0x38e204=_0x1d2505[_0x5017ef(0x3af)])==null?this[_0x5017ef(0x3da)]:_0x38e204,this['_hovered']=(_0x10008e=_0x1d2505[_0x5017ef(0x3b0)])==null?this[_0x5017ef(0x31d)]:_0x10008e,this['_range']=(_0x1d5905=_0x1d2505[_0x5017ef(0x1e0)])==null?this['_range']:_0x1d5905,this['_name']=(_0x399bbc=_0x1d2505[_0x5017ef(0x3e4)])==null?this['_name']:_0x399bbc,this[_0x5017ef(0x1de)]=(_0x44140b=_0x1d2505[_0x5017ef(0x194)])==null?this['_labelPosition']:_0x44140b,this[_0x5017ef(0x3a2)]=(_0x22808a=_0x1d2505[_0x5017ef(0x3d3)])==null?this[_0x5017ef(0x3a2)]:_0x22808a,this[_0x5017ef(0x30f)]=(_0x59e81a=_0x1d2505[_0x5017ef(0x1b8)])==null?this[_0x5017ef(0x30f)]:_0x59e81a,_0x1d2505[_0x5017ef(0x1c0)]!==void 0x0&&(this[_0x5017ef(0x3c5)]=_0x1d2505[_0x5017ef(0x1c0)]),_0x1d2505[_0x5017ef(0x212)]!==void 0x0&&(this[_0x5017ef(0x28e)]=_0x1d2505[_0x5017ef(0x212)]),_0x1d2505[_0x5017ef(0x185)]!==void 0x0&&(this[_0x5017ef(0x3e9)]=_0x1d2505[_0x5017ef(0x185)]),this[_0x5017ef(0x373)]({'width':_0x1d2505[_0x5017ef(0x33d)],'height':_0x1d2505[_0x5017ef(0x229)]});}[_0x5eb250(0x3a4)](_0x596dd2){const _0x2463d6=_0x5eb250;let {row:_0x5d3293,column:_0x3179b9}=_0x596dd2;if(_0x5d3293>=this['_range']['startRow']&&_0x5d3293<=this['_range'][_0x2463d6(0x387)]&&_0x3179b9>=this[_0x2463d6(0x1e7)][_0x2463d6(0x367)]&&_0x3179b9<=this['_range'][_0x2463d6(0x3d4)]){this[_0x2463d6(0x198)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5eb250(0x36d)](_0x5c1d75){const _0x4a959f=_0x5eb250;this[_0x4a959f(0x397)](),this[_0x4a959f(0x3ad)]=!0x0,this[_0x4a959f(0x3c4)]=window[_0x4a959f(0x2c3)](()=>{const _0x2d7793=_0x4a959f;this['_isBlinkVisible']=!this[_0x2d7793(0x3ad)],this[_0x2d7793(0x201)](!0x0);},0x1f4),this[_0x4a959f(0x310)]=window[_0x4a959f(0x32b)](()=>{const _0x5092c1=_0x4a959f;this[_0x5092c1(0x397)](),this[_0x5092c1(0x3ad)]=!0x0,this['makeDirty'](!0x0);},_0x5c1d75*0x3e8);}[_0x5eb250(0x397)](){const _0x4a33d0=_0x5eb250;this['_blinkIntervalTimer']&&(window[_0x4a33d0(0x361)](this[_0x4a33d0(0x3c4)]),this[_0x4a33d0(0x3c4)]=void 0x0),this[_0x4a33d0(0x310)]&&(window[_0x4a33d0(0x343)](this[_0x4a33d0(0x310)]),this[_0x4a33d0(0x310)]=void 0x0);}[_0x5eb250(0x1a9)](_0x453486){return!0x1;}[_0x5eb250(0x1d9)](){this['_stopBlinking'](),super['dispose']();}[_0x5eb250(0x1a8)](_0x108d6e){const _0x5b0048=_0x5eb250;let _0x5b5a73=this['_color'],_0x2402df=this[_0x5b0048(0x3a2)];if(this['_highlight']&&!this[_0x5b0048(0x3ad)]&&(_0x5b5a73=this[_0x5b0048(0x22f)](this[_0x5b0048(0x3da)]),_0x2402df=this[_0x5b0048(0x3a2)]?this[_0x5b0048(0x22f)](this[_0x5b0048(0x3a2)]):void 0x0),u['Rect']['drawWith'](_0x108d6e,{'width':this[_0x5b0048(0x33d)],'height':this[_0x5b0048(0x229)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x5b5a73,'evented':!0x1,'fill':_0x2402df}),this[_0x5b0048(0x31d)]||this[_0x5b0048(0x30f)]){var _0x276857;_0x108d6e['save'](),_0x108d6e[_0x5b0048(0x359)](0x1,0x0,0x0,0x1,this[_0x5b0048(0x33d)],(this[_0x5b0048(0x1de)]===_0x5b0048(0x2aa)?0x0:-0x14)+((_0x276857=this[_0x5b0048(0x3e9)])==null?0x0:_0x276857)),le[_0x5b0048(0x351)](_0x108d6e,{'text':this[_0x5b0048(0x293)],'color':_0x5b5a73}),_0x108d6e[_0x5b0048(0x290)]();}}[_0x5eb250(0x22f)](_0x14147c){const _0x346591=_0x5eb250;return _0x14147c[_0x346591(0x3a9)]('#')?_0x346591(0x19c)+Number[_0x346591(0x2b9)](_0x14147c[_0x346591(0x1c6)](0x1,0x3),0x10)+',\x20'+Number[_0x346591(0x2b9)](_0x14147c['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x346591(0x2b9)](_0x14147c[_0x346591(0x1c6)](0x5,0x7),0x10)+_0x346591(0x3ac):_0x14147c[_0x346591(0x3a9)]('rgba')?_0x14147c[_0x346591(0x34a)](/[\d.]+\)$/g,'0.2)'):_0x14147c[_0x346591(0x3a9)](_0x346591(0x18a))?_0x14147c[_0x346591(0x34a)](_0x346591(0x18a),_0x346591(0x282))[_0x346591(0x34a)](')',',\x200.2)'):_0x14147c;}};let z=class extends t[_0x5eb250(0x1a5)]{constructor(_0x543c80,_0x1b91d3,_0x476aed,_0x150beb){const _0x48d49c=_0x5eb250;super(),this['_context']=_0x543c80,this[_0x48d49c(0x1e2)]=_0x1b91d3,this['_collabCursorController']=_0x476aed,this['_themeService']=_0x150beb,C(this,_0x48d49c(0x24b),new Set()),C(this,_0x48d49c(0x281),null),C(this,'_pointerMoveDisposable',null),this[_0x48d49c(0x163)]();}['_init'](){const _0x861941=_0x5eb250;this[_0x861941(0x1e2)][_0x861941(0x34e)][_0x861941(0x2ca)]((0x0,_[_0x861941(0x249)])(this[_0x861941(0x2d8)]),(0x0,_[_0x861941(0x39d)])(_0x33fc8c=>{const _0x79e760=_0x861941;if(_0x33fc8c){let _0x813d38=_0x33fc8c['sheetId'];return(0x0,r[_0x79e760(0x17d)])(this['_collabCursorController']['getCollabCursors$'](this[_0x79e760(0x2be)]['unitId']),this['_themeService'][_0x79e760(0x3a3)])[_0x79e760(0x2ca)]((0x0,_[_0x79e760(0x292)])(([_0x4f775d,_0x5628c9])=>{const _0x10ea33=_0x79e760;let _0x366e0c=new Map();return _0x4f775d[_0x10ea33(0x346)]((_0x120d1f,_0x1ce11c)=>{const _0x63e7b8=_0x10ea33;if(_0x120d1f['sheetID']===_0x813d38){let _0x30a19f={..._0x120d1f};_0x30a19f[_0x63e7b8(0x3af)]=this['_themeService']['getColorFromTheme'](_0x120d1f['color']),_0x366e0c[_0x63e7b8(0x1b2)](_0x1ce11c,_0x30a19f);}}),{'skeleton':_0x33fc8c,'cursors':_0x366e0c};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x861941(0x3e7)](({skeleton:_0x5e20ea,cursors:_0x44f944})=>{const _0x5d0d39=_0x861941;this[_0x5d0d39(0x3e3)](),_0x5e20ea&&this[_0x5d0d39(0x390)](_0x5e20ea,_0x44f944);}),this[_0x861941(0x1c9)](this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe']((0x0,_['takeUntil'])(this[_0x861941(0x2d8)]))['subscribe'](_0x5478fa=>{const _0x158407=_0x861941;var _0x4a4e5e;if(_0x5478fa==null)return;(_0x4a4e5e=this[_0x158407(0x263)])==null||_0x4a4e5e[_0x158407(0x32c)](),this['_pointerMoveDisposable']=null;let {skeleton:_0x3b6eb5}=_0x5478fa,{scene:_0x383f07}=this['_context'];this[_0x158407(0x263)]=_0x383f07['onPointerMove$'][_0x158407(0x2e9)]((0x0,t[_0x158407(0x1b6)])(_0x2aae0b=>{const _0x280b00=_0x158407;var _0x7f48ca,_0x5de689;let {offsetX:_0x5a1907,offsetY:_0x1bb96c}=_0x2aae0b,{x:_0xbf5995,y:_0x555e2c}=_0x383f07[_0x280b00(0x338)](u[_0x280b00(0x3e2)][_0x280b00(0x298)]([_0x5a1907,_0x1bb96c])),{scaleX:_0x52fc31,scaleY:_0x499daa}=_0x383f07['getAncestorScale'](),_0x27af0f=_0x383f07[_0x280b00(0x1a7)](u[_0x280b00(0x324)]['VIEW_MAIN']),_0x51fd2a=_0x383f07[_0x280b00(0x1e4)](u['Vector2'][_0x280b00(0x298)]([_0xbf5995,_0x555e2c]),_0x27af0f),_0x279d78=_0x3b6eb5[_0x280b00(0x2ad)](_0x5a1907,_0x1bb96c,_0x52fc31,_0x499daa,_0x51fd2a);((_0x7f48ca=this['_lastPointer'])==null?void 0x0:_0x7f48ca[_0x280b00(0x1bb)])===_0x279d78['column']&&((_0x5de689=this[_0x280b00(0x281)])==null?void 0x0:_0x5de689[_0x280b00(0x394)])===_0x279d78[_0x280b00(0x394)]||this[_0x280b00(0x24b)][_0x280b00(0x346)](_0xefe152=>{const _0x25d725=_0x280b00;_0xefe152[_0x25d725(0x3a4)](_0x279d78);});},0x64));})),this[_0x861941(0x1c9)]((0x0,t[_0x861941(0x170)])(()=>{const _0x2cf39a=_0x861941;var _0x370d3d;(_0x370d3d=this['_pointerMoveDisposable'])==null||_0x370d3d[_0x2cf39a(0x32c)](),this[_0x2cf39a(0x263)]=null;}));}[_0x5eb250(0x390)](_0x8ce6f,_0x1b4882){const _0x1d0a5c=_0x5eb250;let _0x3fd374=this['_sheetSkeletonManagerService']['getCurrentSkeleton']();if(!_0x3fd374)return;let _0x51aff7=this['_getSheetObject']();if(!_0x51aff7)return;this['_cursors'][_0x1d0a5c(0x346)](_0x40fc50=>{const _0x2a534d=_0x1d0a5c;_0x40fc50[_0x2a534d(0x201)]();});let {scene:_0x2b07d5}=_0x51aff7,_0x245a62=de(Array[_0x1d0a5c(0x21e)](_0x1b4882[_0x1d0a5c(0x2df)]()))[_0x1d0a5c(0x292)](_0x5accd3=>{const _0x2e0950=_0x1d0a5c;let {color:_0x9eb2bc,range:_0x13b591,name:_0x5f481b,selection:_0x1a939a,sheetID:_0x2e17d6}=_0x5accd3,{startColumn:_0x40482c,startRow:_0x2c735a,endColumn:_0x24de2a,endRow:_0xb6f8d5}=_0x13b591,_0x5b67c3=(0x0,v[_0x2e0950(0x39c)])(_0x2c735a,_0x40482c,_0x2b07d5,_0x3fd374),_0x5172e0=(0x0,v[_0x2e0950(0x39c)])(_0xb6f8d5,_0x24de2a,_0x2b07d5,_0x3fd374),{columnHeaderHeightAndMarginTop:_0x388dea}=_0x3fd374,{startX:_0x2e3f3b,startY:_0x334bb6}=_0x5b67c3,{endX:_0x5ca545,endY:_0x5092c4}=_0x5172e0,_0x3b7622=_0x5ca545-_0x2e3f3b,_0x3b1110=_0x5092c4-_0x334bb6;return new R(_0x5f481b,{'labelPosition':_0x334bb6-_0x388dea>=0x14?_0x2e0950(0x2c8):_0x2e0950(0x2aa),'sheetID':_0x2e17d6,'range':_0x13b591,'color':_0x9eb2bc,'name':_0x5f481b,'selection':_0x1a939a,'left':_0x2e3f3b,'top':_0x334bb6,'width':_0x3b7622,'height':_0x3b1110,'evented':!0x1,'zIndex':0x1389});});_0x2b07d5[_0x1d0a5c(0x21b)](_0x245a62,0x1),this[_0x1d0a5c(0x24b)]=new Set(_0x245a62);}[_0x5eb250(0x3e3)](){const _0x166798=_0x5eb250;var _0x567684;(_0x567684=this[_0x166798(0x24b)])==null||_0x567684[_0x166798(0x346)](_0x446cf2=>_0x446cf2[_0x166798(0x1d9)]());}[_0x5eb250(0x2c7)](){const _0x3aeb0f=_0x5eb250;return(0x0,v[_0x3aeb0f(0x248)])(this[_0x3aeb0f(0x2be)]['unit'],this['_context']);}};z=T([w(0x1,(0x0,t[_0x5eb250(0x235)])(v[_0x5eb250(0x1c5)])),w(0x2,(0x0,t[_0x5eb250(0x235)])(F)),w(0x3,(0x0,t[_0x5eb250(0x235)])(t[_0x5eb250(0x197)]))],z);function de(_0x1a8126){const _0x4b418f=_0x5eb250;let _0x8e48ef=new Map();return _0x1a8126[_0x4b418f(0x346)](_0x570798=>{const _0x4ddf4c=_0x4b418f;if(_0x8e48ef[_0x4ddf4c(0x2b7)](_0x570798[_0x4ddf4c(0x307)])){let _0x2c1032=_0x8e48ef[_0x4ddf4c(0x1ae)](_0x570798['selection']);_0x2c1032['name']+=',\x20'+_0x570798[_0x4ddf4c(0x3e4)];}else _0x8e48ef[_0x4ddf4c(0x1b2)](_0x570798[_0x4ddf4c(0x307)],_0x570798);}),Array[_0x4b418f(0x21e)](_0x8e48ef[_0x4b418f(0x2df)]());}let B=class extends t['Disposable']{constructor(_0x3f0eeb,_0x291cf4,_0x23341f,_0x425bb7,_0x3968f4,_0x30d4b3){const _0x25a0d3=_0x5eb250;super(),this['_beforeCloseService']=_0x3f0eeb,this['_localCacheService']=_0x291cf4,this['_collaborationUIEventService']=_0x23341f,this[_0x25a0d3(0x39f)]=_0x425bb7,this['_notificationService']=_0x3968f4,this[_0x25a0d3(0x27a)]=_0x30d4b3,this[_0x25a0d3(0x344)](),this[_0x25a0d3(0x2fa)]();}[_0x5eb250(0x344)](){const _0x46de4b=_0x5eb250;this[_0x46de4b(0x1c9)](this[_0x46de4b(0x26b)]['registerBeforeClose'](()=>{const _0x1b9f02=_0x46de4b;if(this[_0x1b9f02(0x243)][_0x1b9f02(0x26c)][_0x1b9f02(0x3c8)])return this[_0x1b9f02(0x27a)]['t']('collaboration.offline-data-not-saved');}));}[_0x5eb250(0x2fa)](){const _0x481433=_0x5eb250;this[_0x481433(0x1c9)](this[_0x481433(0x2a9)][_0x481433(0x275)][_0x481433(0x3e7)](_0xd5992d=>{const _0x5cb048=_0x481433;_0xd5992d['id']===e['CollaborationUIEventId'][_0x5cb048(0x301)]&&this[_0x5cb048(0x39f)][_0x5cb048(0x34d)]({'type':i[_0x5cb048(0x36c)][_0x5cb048(0x321)],'content':this[_0x5cb048(0x27a)]['t']('collaboration.single-unit.warning')}),_0xd5992d['id']===e[_0x5cb048(0x179)]['CLOSE_ROOM']&&this[_0x5cb048(0x39f)][_0x5cb048(0x34d)]({'type':i['MessageType'][_0x5cb048(0x321)],'content':this[_0x5cb048(0x27a)]['t'](_0x5cb048(0x1da))}),_0xd5992d['id']===e[_0x5cb048(0x179)][_0x5cb048(0x226)]&&this[_0x5cb048(0x218)]['show']({'title':this[_0x5cb048(0x27a)]['t'](_0x5cb048(0x34c)),'content':this['_localeService']['t'](_0x5cb048(0x296)),'type':_0x5cb048(0x353),'duration':0x0}),_0xd5992d['id']===e[_0x5cb048(0x179)][_0x5cb048(0x210)]&&this['_messageService'][_0x5cb048(0x34d)]({'type':i[_0x5cb048(0x36c)][_0x5cb048(0x1fe)],'content':this['_localeService']['t'](_0x5cb048(0x1da))+'('+_0xd5992d[_0x5cb048(0x27c)]+')'}),_0xd5992d['id']===e[_0x5cb048(0x179)][_0x5cb048(0x225)]&&this[_0x5cb048(0x39f)]['show']({'type':i[_0x5cb048(0x36c)]['Warning'],'content':this[_0x5cb048(0x27a)]['t'](_0xd5992d[_0x5cb048(0x27c)]||'')}),_0xd5992d['id']===e[_0x5cb048(0x179)][_0x5cb048(0x2d4)]&&this['_messageService'][_0x5cb048(0x34d)]({'type':i[_0x5cb048(0x36c)][_0x5cb048(0x321)],'content':this['_localeService']['t'](_0x5cb048(0x2dd))}),_0xd5992d['id']===e[_0x5cb048(0x179)][_0x5cb048(0x1a4)]&&this['_messageService'][_0x5cb048(0x34d)]({'type':i['MessageType'][_0x5cb048(0x1fe)],'content':this[_0x5cb048(0x27a)]['t'](_0x5cb048(0x214))}),_0xd5992d['id']===e[_0x5cb048(0x179)][_0x5cb048(0x3b6)]&&this[_0x5cb048(0x39f)][_0x5cb048(0x34d)]({'type':i[_0x5cb048(0x36c)][_0x5cb048(0x1fe)],'content':this[_0x5cb048(0x27a)]['t'](_0x5cb048(0x2db))});}));}};B=T([w(0x0,n['IBeforeCloseService']),w(0x1,e[_0x5eb250(0x16e)]),w(0x2,(0x0,t['Inject'])(e[_0x5eb250(0x165)])),w(0x3,n['IMessageService']),w(0x4,n[_0x5eb250(0x254)]),w(0x5,(0x0,t[_0x5eb250(0x235)])(t[_0x5eb250(0x38b)]))],B);const V='collaboration-client-ui.config';Symbol(V);const H={};let U=class{constructor(_0x211f8b,_0x274659){const _0x44ba87=_0x5eb250;this[_0x44ba87(0x2d0)]=_0x211f8b,this[_0x44ba87(0x3ae)]=_0x274659;}['transformIMECache'](_0x5ebd65){const _0x4ce408=_0x5eb250;this[_0x4ce408(0x288)](_0x5ebd65),this[_0x4ce408(0x1ce)](_0x5ebd65);}[_0x5eb250(0x1ff)](_0x1856b5){const _0x5d6321=_0x5eb250;let {unitID:_0x11666c}=_0x1856b5,{redoCache:_0x54b673}=this[_0x5d6321(0x3ae)]['getRenderById'](_0x11666c)['with'](f[_0x5d6321(0x36e)])[_0x5d6321(0x20e)]();if(_0x54b673[_0x5d6321(0x2ab)]===0x0)return _0x1856b5;let _0x4e40cd=t[_0x5d6321(0x342)][_0x5d6321(0x238)](_0x1856b5['mutations'][0x0]);for(let _0x251e5c=0x0;_0x251e5c<_0x54b673['length'];_0x251e5c++){let _0x5638f8={'id':'doc.mutation.rich-text-editing','params':{..._0x54b673[_0x251e5c]}},_0x59dae5=this[_0x5d6321(0x2d0)][_0x5d6321(0x358)](_0x4e40cd,_0x5638f8,!0x1);if((0x0,m[_0x5d6321(0x274)])(_0x59dae5))throw _0x59dae5['error'];_0x4e40cd=_0x59dae5[_0x5d6321(0x1d8)];}return{...t['Tools'][_0x5d6321(0x238)](_0x1856b5),'mutations':[_0x4e40cd]};}[_0x5eb250(0x288)](_0x3c40fb){const _0x558781=_0x5eb250;let {unitID:_0x4d6139}=_0x3c40fb,_0x591b16=this[_0x558781(0x3ae)]['getRenderById'](_0x4d6139)[_0x558781(0x318)](f[_0x558781(0x36e)]),{undoCache:_0x37ac0e,redoCache:_0x33f5b7}=_0x591b16[_0x558781(0x20e)]();if(_0x37ac0e[_0x558781(0x2ab)]===0x0||_0x33f5b7[_0x558781(0x2ab)]===0x0)return;let _0xb802ad=[],_0x3c28ce=[],_0x54eaff=t['Tools'][_0x558781(0x238)](_0x3c40fb[_0x558781(0x258)][0x0]),_0x187b2=t[_0x558781(0x342)][_0x558781(0x238)](_0x3c40fb['mutations'][0x0]);for(let _0x2f3be7=_0x37ac0e[_0x558781(0x2ab)]-0x1;_0x2f3be7>=0x0;_0x2f3be7--){let _0x2b45c4={'id':_0x558781(0x2d9),'params':{..._0x37ac0e[_0x2f3be7]}},_0x4340a1={'id':_0x558781(0x2d9),'params':{..._0x33f5b7[_0x2f3be7]}},_0x168184=this[_0x558781(0x2d0)][_0x558781(0x358)](_0x54eaff,_0x2b45c4,!0x1),_0x49fe7c=this[_0x558781(0x2d0)]['transformMutation'](_0x187b2,_0x4340a1,!0x1);if((0x0,m[_0x558781(0x274)])(_0x168184))throw _0x168184[_0x558781(0x353)];if((0x0,m['isTransformMutationFailure'])(_0x49fe7c))throw _0x49fe7c[_0x558781(0x353)];_0xb802ad['unshift'](_0x168184[_0x558781(0x1cf)][_0x558781(0x3bf)]),_0x3c28ce[_0x558781(0x388)](_0x49fe7c['m2Prime'][_0x558781(0x3bf)]),_0x54eaff=_0x168184[_0x558781(0x1d8)],_0x187b2=_0x49fe7c[_0x558781(0x1d8)];}_0x591b16['setUndoRedoMutationParamsCache']({'undoCache':_0xb802ad,'redoCache':_0x3c28ce});}['_transformPreviousActiveRange'](_0x5909c2){const _0x48fe65=_0x5eb250;let {unitID:_0x4d0bbe}=_0x5909c2,_0x2f7ba0=this[_0x48fe65(0x3ae)][_0x48fe65(0x1db)](_0x4d0bbe)['with'](f[_0x48fe65(0x36e)]),_0x10191a=_0x2f7ba0['getActiveRange']();if(_0x10191a==null)return;let _0x2640d3=[{'id':_0x48fe65(0x2d9),'params':{'unitId':_0x5909c2['unitID'],'actions':null,'textRanges':[_0x10191a]}}],_0x540b89=this[_0x48fe65(0x2d0)][_0x48fe65(0x178)](_0x5909c2,_0x2640d3);if(!(0x0,m[_0x48fe65(0x1ab)])(_0x540b89))throw _0x540b89[_0x48fe65(0x353)];let _0x3ac982=_0x540b89['m2Prime'][0x0][_0x48fe65(0x3bf)]['textRanges'];Array['isArray'](_0x3ac982)&&_0x3ac982[_0x48fe65(0x2ab)]&&_0x2f7ba0['setActiveRange'](_0x3ac982[0x0]);}};U=T([w(0x0,m[_0x5eb250(0x2ef)]),w(0x1,u['IRenderManagerService'])],U);let W=class{constructor(_0x5eeb3d,_0x32f93b,_0x51f90b){const _0x350434=_0x5eb250;this[_0x350434(0x193)]=_0x5eeb3d,this[_0x350434(0x2d0)]=_0x32f93b,this[_0x350434(0x232)]=_0x51f90b;}[_0x5eb250(0x156)](_0x7978a3){const _0xe9030a=_0x5eb250;this[_0xe9030a(0x2fd)](_0x7978a3);}[_0x5eb250(0x1ff)](_0x276060){const _0xf896f1=_0x5eb250;let {unitID:_0x2cb467}=_0x276060,{collaboration:_0x5517e5}=this[_0xf896f1(0x232)][_0xf896f1(0x23a)](_0x2cb467);if(_0x5517e5['length']===0x0)return _0x276060;let _0x833e40=t[_0xf896f1(0x342)][_0xf896f1(0x238)](_0x276060[_0xf896f1(0x258)][0x0]);for(let _0x24f91d=0x0;_0x24f91d<_0x5517e5[_0xf896f1(0x2ab)];_0x24f91d++){let _0x44c510={'id':_0xf896f1(0x2d9),'params':{'unitId':_0x5517e5[_0x24f91d]['unitId'],..._0x5517e5[_0x24f91d][_0xf896f1(0x220)]}},_0x336b29=this[_0xf896f1(0x2d0)][_0xf896f1(0x358)](_0x833e40,_0x44c510,!0x1);if((0x0,m[_0xf896f1(0x274)])(_0x336b29))throw _0x336b29[_0xf896f1(0x353)];_0x833e40=_0x336b29[_0xf896f1(0x1d8)];}return{...t[_0xf896f1(0x342)][_0xf896f1(0x238)](_0x276060),'mutations':[_0x833e40]};}['_transformHistoryAndStateStack'](_0x42b118){const _0x232575=_0x5eb250;let {unitID:_0x34fdaa}=_0x42b118,{history:_0x32587b,collaboration:_0x4dbe76}=this['_docStateChangeManagerService']['getStateCache'](_0x34fdaa);if(_0x32587b[_0x232575(0x2ab)]===0x0&&_0x4dbe76['length']===0x0)return;let _0x1e7f9e=[],_0xc4550=[],_0x3a1896=t[_0x232575(0x342)][_0x232575(0x238)](_0x42b118[_0x232575(0x258)][0x0]),_0x501f87=t[_0x232575(0x342)][_0x232575(0x238)](_0x42b118['mutations'][0x0]);for(let _0x4a23ef=_0x32587b[_0x232575(0x2ab)]-0x1;_0x4a23ef>=0x0;_0x4a23ef--){let _0x5312f3={'id':_0x232575(0x2d9),'params':{'unitId':_0x32587b[_0x4a23ef]['unitId'],..._0x32587b[_0x4a23ef][_0x232575(0x1b0)]}},_0x213fb2={'id':_0x232575(0x2d9),'params':{'unitId':_0x32587b[_0x4a23ef][_0x232575(0x27b)],..._0x32587b[_0x4a23ef][_0x232575(0x220)]}},_0x222574=this[_0x232575(0x2d0)]['transformMutation'](_0x3a1896,_0x5312f3,!0x1),_0x5bb923=this[_0x232575(0x2d0)]['transformMutation'](_0x501f87,_0x213fb2,!0x1);if((0x0,m[_0x232575(0x274)])(_0x222574))throw _0x222574[_0x232575(0x353)];if((0x0,m[_0x232575(0x274)])(_0x5bb923))throw _0x5bb923[_0x232575(0x353)];_0x1e7f9e[_0x232575(0x388)]({..._0x32587b[_0x4a23ef],'undoState':_0x222574[_0x232575(0x1cf)][_0x232575(0x3bf)],'redoState':_0x5bb923[_0x232575(0x1cf)][_0x232575(0x3bf)]}),_0x3a1896=_0x222574[_0x232575(0x1d8)],_0x501f87=_0x5bb923[_0x232575(0x1d8)];}_0x3a1896=t[_0x232575(0x342)][_0x232575(0x238)](_0x42b118['mutations'][0x0]),_0x501f87=t[_0x232575(0x342)][_0x232575(0x238)](_0x42b118[_0x232575(0x258)][0x0]);for(let _0x2433f2=_0x4dbe76[_0x232575(0x2ab)]-0x1;_0x2433f2>=0x0;_0x2433f2--){let _0xdd1b6d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4dbe76[_0x2433f2][_0x232575(0x27b)],..._0x4dbe76[_0x2433f2][_0x232575(0x1b0)]}},_0x28400b={'id':_0x232575(0x2d9),'params':{'unitId':_0x4dbe76[_0x2433f2][_0x232575(0x27b)],..._0x4dbe76[_0x2433f2]['redoState']}},_0x44bc42=this[_0x232575(0x2d0)]['transformMutation'](_0x3a1896,_0xdd1b6d,!0x1),_0x4a401e=this[_0x232575(0x2d0)][_0x232575(0x358)](_0x501f87,_0x28400b,!0x1);if((0x0,m[_0x232575(0x274)])(_0x44bc42))throw _0x44bc42[_0x232575(0x353)];if((0x0,m[_0x232575(0x274)])(_0x4a401e))throw _0x4a401e[_0x232575(0x353)];_0xc4550['unshift']({..._0x4dbe76[_0x2433f2],'undoState':_0x44bc42[_0x232575(0x1cf)]['params'],'redoState':_0x4a401e['m2Prime'][_0x232575(0x3bf)]}),_0x3a1896=_0x44bc42[_0x232575(0x1d8)],_0x501f87=_0x4a401e[_0x232575(0x1d8)];}this[_0x232575(0x232)][_0x232575(0x3e1)](_0x34fdaa,{'history':_0x1e7f9e,'collaboration':_0xc4550});}};W=T([w(0x0,(0x0,t[_0x5eb250(0x235)])(t['Injector'])),w(0x1,m[_0x5eb250(0x2ef)]),w(0x2,(0x0,t[_0x5eb250(0x235)])(f[_0x5eb250(0x18f)]))],W);let G=class{constructor(_0x29cbed,_0x47c34e){const _0x24d238=_0x5eb250;this[_0x24d238(0x193)]=_0x29cbed,this[_0x24d238(0x2d0)]=_0x47c34e;}[_0x5eb250(0x24f)](_0x4a5723){const _0x46be4c=_0x5eb250;var _0x5f490f;let _0x5732f3=this[_0x46be4c(0x193)]['get'](h['DocSelectionManagerService']),_0x59d63d=(_0x5f490f=_0x5732f3[_0x46be4c(0x1d4)]())==null?[]:_0x5f490f;if(_0x59d63d[_0x46be4c(0x2ab)]===0x0)return;let _0x5f4809=_0x4a5723['unitID'],_0x8ef60b=[{'id':_0x46be4c(0x2d9),'params':{'unitId':_0x5f4809,'actions':null,'textRanges':_0x59d63d}}],_0x5956ac=this[_0x46be4c(0x2d0)]['transformMutationsWithChangeset'](_0x4a5723,_0x8ef60b);if(!(0x0,m[_0x46be4c(0x1ab)])(_0x5956ac))throw _0x5956ac[_0x46be4c(0x353)];let _0x1fa02e=_0x5956ac['m2Prime'][0x0][_0x46be4c(0x3bf)][_0x46be4c(0x18d)];Array['isArray'](_0x1fa02e)&&_0x1fa02e[_0x46be4c(0x2ab)]&&_0x5732f3[_0x46be4c(0x172)](_0x1fa02e,{'unitId':_0x5f4809,'subUnitId':_0x5f4809},!0x1);}};G=T([w(0x0,(0x0,t['Inject'])(t[_0x5eb250(0x2b1)])),w(0x1,m['ITransformService'])],G);let K=class extends t[_0x5eb250(0x1e3)]{constructor(_0x330a62,_0x498c0d,_0x3152f3,_0x411943,_0x254085,_0x38a015,_0x921c88,_0x1cc4be){const _0x46ffd0=_0x5eb250;super(),this[_0x46ffd0(0x232)]=_0x330a62,this[_0x46ffd0(0x283)]=_0x498c0d,this[_0x46ffd0(0x2eb)]=_0x3152f3,this[_0x46ffd0(0x261)]=_0x411943,this[_0x46ffd0(0x26a)]=_0x254085,this[_0x46ffd0(0x1cd)]=_0x38a015,this[_0x46ffd0(0x39f)]=_0x921c88,this['_localeService']=_0x1cc4be,C(this,_0x46ffd0(0x3d9),new r['BehaviorSubject'](e[_0x46ffd0(0x1a0)][_0x46ffd0(0x32a)])),this[_0x46ffd0(0x257)]();}['_initEntityListener'](){const _0x444799=_0x5eb250;this['disposeWithMe'](this[_0x444799(0x283)][_0x444799(0x268)][_0x444799(0x3e7)](_0x30a9f3=>{const _0x2c4166=_0x444799;let _0x59aa7b=this['_docStateChangeManagerService']['docStateChange$'][_0x2c4166(0x3e7)](_0x5092ae=>{const _0x2d16b6=_0x2c4166;if(_0x5092ae==null)return;let {unitId:_0x547777,redoState:_0x180e89,commandId:_0x15e6c3}=_0x5092ae;if(_0x547777!==_0x30a9f3['unitID'])return;let _0x10bf23={'id':_0x15e6c3,'type':t['CommandType'][_0x2d16b6(0x2f2)],'params':{'unitId':_0x547777,'actions':_0x180e89[_0x2d16b6(0x316)],'textRanges':null}};_0x30a9f3[_0x2d16b6(0x1e8)](_0x10bf23);});_0x30a9f3['disposeWithMe'](_0x59aa7b),_0x30a9f3 instanceof e['DocCollaborationEntity']&&_0x30a9f3[_0x2c4166(0x270)]({'onTransformIME':_0x5d2481=>this[_0x2c4166(0x2eb)][_0x2c4166(0x28c)](_0x5d2481),'onTransformState':_0x3e5ac0=>this[_0x2c4166(0x261)][_0x2c4166(0x156)](_0x3e5ac0),'onTransformSelections':_0x213de5=>this[_0x2c4166(0x26a)][_0x2c4166(0x24f)](_0x213de5),'onSyncEditingCollabCursor':_0x5c4709=>this[_0x2c4166(0x1cd)][_0x2c4166(0x2c2)](_0x5c4709),'onTransformRemoteChangesetByIMECache':_0x124878=>this['_docTransformIMECacheService'][_0x2c4166(0x1ff)](_0x124878),'onTransformRemoteChangesetByStateCache':_0xe374ea=>this['_docTransformStateCacheService'][_0x2c4166(0x1ff)](_0xe374ea)});}));}};K=T([w(0x0,(0x0,t[_0x5eb250(0x235)])(f[_0x5eb250(0x18f)])),w(0x1,(0x0,t[_0x5eb250(0x235)])(e[_0x5eb250(0x219)])),w(0x2,(0x0,t[_0x5eb250(0x235)])(U)),w(0x3,(0x0,t[_0x5eb250(0x235)])(W)),w(0x4,(0x0,t[_0x5eb250(0x235)])(G)),w(0x5,(0x0,t[_0x5eb250(0x235)])(M)),w(0x6,n[_0x5eb250(0x16b)]),w(0x7,(0x0,t[_0x5eb250(0x235)])(t['LocaleService']))],K);let q=class extends t['Disposable']{constructor(_0x25376c,_0x5bdc90,_0x3bcd9c,_0x5ccf4d){const _0x4c79fe=_0x5eb250;super(),this['_injector']=_0x25376c,this[_0x4c79fe(0x314)]=_0x5bdc90,this[_0x4c79fe(0x20a)]=_0x3bcd9c,this[_0x4c79fe(0x217)]=_0x5ccf4d,C(this,_0x4c79fe(0x25d),void 0x0),this[_0x4c79fe(0x163)]();}[_0x5eb250(0x163)](){const _0x450ce3=_0x5eb250;this['_initWindowErrorListener'](),this[_0x450ce3(0x299)](),this[_0x450ce3(0x2da)](),this[_0x450ce3(0x3a7)]();}[_0x5eb250(0x3a7)](){const _0x58fab7=_0x5eb250;this['disposeWithMe'](this[_0x58fab7(0x217)][_0x58fab7(0x161)][_0x58fab7(0x3e7)](_0x2431d4=>{const _0x2e3cca=_0x58fab7;this[_0x2e3cca(0x25d)]=_0x2431d4==null?void 0x0:_0x2431d4[_0x2e3cca(0x3cf)];}));}[_0x5eb250(0x22a)](){const _0x5ffa88=_0x5eb250;let _0x535121=_0x1fec11=>{const _0x25e7ab=_0x190c;var _0x3d3000;this[_0x25e7ab(0x1fb)](_0x25e7ab(0x353),_0x25e7ab(0x239)+_0x1fec11['message']+'\x20at\x20'+_0x1fec11[_0x25e7ab(0x2ec)]+':'+_0x1fec11[_0x25e7ab(0x2e4)]+':'+_0x1fec11[_0x25e7ab(0x371)]+'\x0a'+(((_0x3d3000=_0x1fec11[_0x25e7ab(0x353)])==null?void 0x0:_0x3d3000['stack'])||''));};window[_0x5ffa88(0x32d)]('error',_0x535121),this['disposeWithMe'](()=>{const _0x15dfc6=_0x5ffa88;window[_0x15dfc6(0x267)]('error',_0x535121);});}[_0x5eb250(0x299)](){const _0x5e1658=_0x5eb250;let _0x420bfd=_0x5b3eb0=>{const _0x12a974=_0x190c;this['_uploadLog']('error',_0x12a974(0x209)+_0x5b3eb0[_0x12a974(0x341)]);};window['addEventListener'](_0x5e1658(0x311),_0x420bfd),this[_0x5e1658(0x1c9)](()=>{const _0x53999e=_0x5e1658;window[_0x53999e(0x267)](_0x53999e(0x311),_0x420bfd);});}[_0x5eb250(0x2da)](){const _0x36a57c=_0x5eb250;let _0x2c449a=this[_0x36a57c(0x20a)][_0x36a57c(0x353)][_0x36a57c(0x329)](this[_0x36a57c(0x20a)]);this['_logService'][_0x36a57c(0x353)]=(..._0x3a745f)=>{const _0x20b5e9=_0x36a57c;let _0x1fbf0f=_0x3a745f[_0x20b5e9(0x292)](_0x3fdcf7=>_0x3fdcf7 instanceof Error?_0x3fdcf7['message']+'\x0a'+_0x3fdcf7[_0x20b5e9(0x22e)]:String(_0x3fdcf7))[_0x20b5e9(0x16c)]('\x20');this[_0x20b5e9(0x1fb)](_0x20b5e9(0x353),_0x20b5e9(0x2e7)+_0x1fbf0f),_0x2c449a(..._0x3a745f);},this[_0x36a57c(0x1c9)](()=>{const _0x2cb955=_0x36a57c;this[_0x2cb955(0x20a)][_0x2cb955(0x353)]=_0x2c449a;});}[_0x5eb250(0x1fb)](_0x415ecf,_0x2243a9){const _0x2b856d=_0x5eb250;try{let _0x569cdb={'userId':this[_0x2b856d(0x25d)],'logLabel':_0x415ecf,'content':_0x2243a9};this[_0x2b856d(0x314)]['post'](_0x2b856d(0x1f7),{'body':_0x569cdb})[_0x2b856d(0x337)](()=>{});}catch{}}};q=T([w(0x0,(0x0,t[_0x5eb250(0x235)])(t[_0x5eb250(0x2b1)])),w(0x1,(0x0,t[_0x5eb250(0x235)])(d[_0x5eb250(0x19d)])),w(0x2,t['ILogService']),w(0x3,(0x0,t[_0x5eb250(0x235)])(e['CollaborationSessionService']))],q);function fe(_0xbc1f56){const _0x15f8ea=_0x5eb250;var _0x5c49c1,_0xbeeb40;let _0x188d47=(_0x5c49c1=_0xbc1f56['stageInfo'])==null?void 0x0:_0x5c49c1['stage'],_0x4aacf5=((_0xbeeb40=_0xbc1f56['stageInfo'])==null?void 0x0:_0xbeeb40[_0x15f8ea(0x30a)])||0x0;return _0x188d47===g['FormulaExecuteStageType'][_0x15f8ea(0x237)]&&_0x4aacf5>0x0;}function _0x190c(_0x309f2d,_0x73521){_0x309f2d=_0x309f2d-0x155;const _0x26e069=_0x26e0();let _0x190c36=_0x26e069[_0x309f2d];return _0x190c36;}function pe(_0x173f9f){const _0x80064f=_0x5eb250;return _0x173f9f[_0x80064f(0x1bc)]===g[_0x80064f(0x3a6)][_0x80064f(0x393)];}let J=class extends t[_0x5eb250(0x1e3)]{constructor(_0x1bda0e,_0x17a406,_0x186223,_0x21a6e1,_0x54a3c0,_0x1614e7,_0x30dfed){const _0x57c971=_0x5eb250;super(),this[_0x57c971(0x39f)]=_0x1bda0e,this[_0x57c971(0x327)]=_0x17a406,this[_0x57c971(0x31e)]=_0x186223,this[_0x57c971(0x314)]=_0x21a6e1,this['_univerInstanceService']=_0x54a3c0,this['_logService']=_0x1614e7,this[_0x57c971(0x27a)]=_0x30dfed,C(this,_0x57c971(0x1be),null),C(this,_0x57c971(0x205),0x0),C(this,'_currentUsage',0x0),C(this,_0x57c971(0x2ae),[]),C(this,_0x57c971(0x1e1),0x0),this[_0x57c971(0x356)]();}[_0x5eb250(0x356)](){const _0x3bdd08=_0x5eb250;this['disposeWithMe'](this[_0x3bdd08(0x327)][_0x3bdd08(0x2a6)]((_0xf0ac23,_0x56d558)=>{const _0x4a57cc=_0x3bdd08;var _0x226af3;if(_0xf0ac23['id']!==g['SetFormulaCalculationStartMutation']['id'])return;let _0x1d3995=_0xf0ac23[_0x4a57cc(0x3bf)];if(this[_0x4a57cc(0x1fd)]((_0x226af3=_0x1d3995[_0x4a57cc(0x22b)])==null?[]:_0x226af3)&&!this['_checkCalculationAvailable']())throw this[_0x4a57cc(0x21c)](_0xf0ac23,_0x56d558),this[_0x4a57cc(0x2dc)](),new t[(_0x4a57cc(0x25a))]();})),this[_0x3bdd08(0x1c9)](this[_0x3bdd08(0x327)][_0x3bdd08(0x3ed)]((_0x95c9ec,_0x256ac8)=>{const _0x1f8f95=_0x3bdd08;if(_0x95c9ec['id']!==g[_0x1f8f95(0x39a)]['id'])return;let _0x1f1127=_0x95c9ec[_0x1f8f95(0x3bf)];if(fe(_0x1f1127)){let _0x171e9f=(0x0,t['generateRandomId'])();this[_0x1f8f95(0x2ae)][_0x1f8f95(0x2f7)](_0x171e9f),this['_startCalculationLimit'](_0x171e9f);}else{if(pe(_0x1f1127)&&this[_0x1f8f95(0x2ae)][_0x1f8f95(0x2ab)]>0x0){let _0xc95d16=this[_0x1f8f95(0x2ae)][_0x1f8f95(0x2fe)]();this[_0x1f8f95(0x31c)](_0xc95d16);}}}));}[_0x5eb250(0x1d9)](){const _0x2a7b53=_0x5eb250;super[_0x2a7b53(0x1d9)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x2a7b53(0x399)]=0x0,this[_0x2a7b53(0x205)]=0x0,this[_0x2a7b53(0x1e1)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x2c835c,_0xbbb204){const _0x4d61ef=_0x5eb250;for(let _0x55d3c3=0x0;_0x55d3c3<0x1e;_0x55d3c3++)try{if(await this['_getFormulaLimitStatus'](),this[_0x4d61ef(0x1fc)]()){this['_applyCommand'](_0x2c835c,_0xbbb204),this[_0x4d61ef(0x39f)][_0x4d61ef(0x34d)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':i['MessageType'][_0x4d61ef(0x3b1)]});return;}await new Promise(_0x577ae8=>{const _0x13a308=_0x4d61ef;this[_0x13a308(0x1be)]=window[_0x13a308(0x32b)](_0x577ae8,0x3e8);});}catch(_0x237425){this['_logService'][_0x4d61ef(0x353)](_0x237425);}this[_0x4d61ef(0x39f)][_0x4d61ef(0x34d)]({'content':this[_0x4d61ef(0x27a)]['t']('formula.calculation.unable'),'type':i[_0x4d61ef(0x36c)]['Error']});}[_0x5eb250(0x21f)](_0xfea4bd,_0x222963){const _0x4f3639=_0x5eb250;try{this[_0x4f3639(0x327)][_0x4f3639(0x2f1)](_0xfea4bd['id'],_0xfea4bd[_0x4f3639(0x3bf)],_0x222963);}catch(_0x59d413){this[_0x4f3639(0x20a)][_0x4f3639(0x353)](_0x59d413);}}[_0x5eb250(0x19e)](_0x5a1d80,_0x585ece){const _0x49d212=_0x5eb250;_0x585ece<this[_0x49d212(0x1e1)]||(this[_0x49d212(0x1e1)]=_0x585ece,this[_0x49d212(0x205)]=Number[_0x49d212(0x2b9)](_0x5a1d80['maxFormulaLimit']),this[_0x49d212(0x399)]=Number[_0x49d212(0x2b9)](_0x5a1d80[_0x49d212(0x183)]));}async[_0x5eb250(0x326)](_0x40ab6b){const _0x47adc1=_0x5eb250;let _0x1275f2=Date[_0x47adc1(0x29d)]();try{var _0x22dca4,_0x1f1215;let _0x14173c=((_0x22dca4=this['_configService'][_0x47adc1(0x339)](e[_0x47adc1(0x2a3)]))==null?void 0x0:_0x22dca4[_0x47adc1(0x190)])||_0x47adc1(0x376),_0x2d9a05=(await this[_0x47adc1(0x314)]['post'](_0x14173c,{'body':JSON[_0x47adc1(0x33b)]({'taskId':_0x40ab6b})}))[_0x47adc1(0x1d0)];if(((_0x1f1215=_0x2d9a05[_0x47adc1(0x353)])==null?void 0x0:_0x1f1215['code'])!==y['ErrorCode']['OK'])return;this[_0x47adc1(0x19e)](_0x2d9a05[_0x47adc1(0x3c3)],_0x1275f2);}catch(_0x132a59){this[_0x47adc1(0x20a)]['error'](_0x132a59);}}async['_getFormulaLimitStatus'](_0x5aaee0){const _0x377ebf=_0x5eb250;let _0x4ee888=Date[_0x377ebf(0x29d)]();try{var _0x4c03ea,_0x2e386c;let _0x425ac6=((_0x4c03ea=this[_0x377ebf(0x31e)]['getConfig'](e[_0x377ebf(0x2a3)]))==null?void 0x0:_0x4c03ea[_0x377ebf(0x1b7)])||'/universer-api/license/formula/limit/status',_0x30fd01=_0x5aaee0?_0x425ac6+_0x377ebf(0x28b)+encodeURIComponent(_0x5aaee0):_0x425ac6,_0x1c0efd=(await this['_httpService'][_0x377ebf(0x1ae)](_0x30fd01))['body'];if(((_0x2e386c=_0x1c0efd[_0x377ebf(0x353)])==null?void 0x0:_0x2e386c[_0x377ebf(0x2f9)])!==y['ErrorCode']['OK'])return;this[_0x377ebf(0x19e)](_0x1c0efd['limitInfo'],_0x4ee888);}catch(_0x5cc018){this['_logService'][_0x377ebf(0x353)](_0x5cc018);}}async[_0x5eb250(0x31c)](_0x503f90){const _0x3c9864=_0x5eb250;let _0x3ab2a7=Date[_0x3c9864(0x29d)]();try{var _0x13530a,_0x42eae7;let _0xf9b019=((_0x13530a=this[_0x3c9864(0x31e)]['getConfig'](e[_0x3c9864(0x2a3)]))==null?void 0x0:_0x13530a[_0x3c9864(0x3e8)])||_0x3c9864(0x15e),_0x3753ee=(await this['_httpService']['post'](_0xf9b019,{'body':JSON[_0x3c9864(0x33b)]({'taskId':_0x503f90})}))[_0x3c9864(0x1d0)];if(((_0x42eae7=_0x3753ee[_0x3c9864(0x353)])==null?void 0x0:_0x42eae7[_0x3c9864(0x2f9)])!==y['ErrorCode']['OK'])return;this[_0x3c9864(0x19e)](_0x3753ee['limitInfo'],_0x3ab2a7);}catch(_0x428225){this['_logService']['error'](_0x428225);}}[_0x5eb250(0x1fc)](){const _0x57ab38=_0x5eb250;return this[_0x57ab38(0x205)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x57ab38(0x399)]>0x0;}[_0x5eb250(0x240)](){const _0x25ffe2=_0x5eb250;this['_pollingInterval']&&(clearTimeout(this[_0x25ffe2(0x1be)]),this['_pollingInterval']=null);}[_0x5eb250(0x2dc)](){const _0x212cee=_0x5eb250;this[_0x212cee(0x39f)][_0x212cee(0x34d)]({'content':this['_localeService']['t'](_0x212cee(0x1a6)),'type':i['MessageType'][_0x212cee(0x2cf)]});}['_hasFormulaInDirtyRanges'](_0x593acb){const _0x282179=_0x5eb250;for(let _0x4832c6 of _0x593acb){let {unitId:_0x547357,sheetId:_0x5a664e,range:_0x5f1cf1}=_0x4832c6,_0x1dc662=this[_0x282179(0x2e6)]['getUnit'](_0x547357);if(!_0x1dc662)continue;let _0x941de0=_0x1dc662[_0x282179(0x18e)](_0x5a664e);if(!_0x941de0)continue;let _0xd93235=_0x941de0[_0x282179(0x223)]();for(let _0x390ee5=_0x5f1cf1[_0x282179(0x16f)];_0x390ee5<=_0x5f1cf1[_0x282179(0x387)];_0x390ee5++)for(let _0x7fd8=_0x5f1cf1[_0x282179(0x367)];_0x7fd8<=_0x5f1cf1[_0x282179(0x3d4)];_0x7fd8++){let _0x2890f4=_0xd93235[_0x282179(0x3d1)](_0x390ee5,_0x7fd8);if(_0x2890f4&&((0x0,t[_0x282179(0x3aa)])(_0x2890f4['f'])||(0x0,t[_0x282179(0x379)])(_0x2890f4['si'])))return!0x0;}}return!0x1;}};J=T([w(0x0,(0x0,t['Inject'])(n[_0x5eb250(0x16b)])),w(0x1,t[_0x5eb250(0x1f3)]),w(0x2,t[_0x5eb250(0x16a)]),w(0x3,(0x0,t[_0x5eb250(0x235)])(d['HTTPService'])),w(0x4,t[_0x5eb250(0x335)]),w(0x5,t[_0x5eb250(0x3c2)]),w(0x6,(0x0,t[_0x5eb250(0x235)])(t[_0x5eb250(0x38b)]))],J);let Y=class extends t[_0x5eb250(0x1e3)]{constructor(_0x307411,_0xd0175b,_0x1f788f){const _0x369b38=_0x5eb250;super(),this['_configService']=_0x307411,this[_0x369b38(0x3ca)]=_0xd0175b,this[_0x369b38(0x3de)]=_0x1f788f,C(this,_0x369b38(0x3d8),new Map()),C(this,_0x369b38(0x35c),new Map()),C(this,_0x369b38(0x25c),!0x1);}['disableLocalCache'](){const _0x184370=_0x5eb250;this[_0x184370(0x25c)]=!0x0;}[_0x5eb250(0x37b)](){const _0x11e808=_0x5eb250;this[_0x11e808(0x25c)]=!0x1;}get['saveTaskMap'](){const _0x2c68a8=_0x5eb250;return this[_0x2c68a8(0x35c)];}['dispose'](){const _0x34fa74=_0x5eb250;this[_0x34fa74(0x2af)]()['then'](()=>super[_0x34fa74(0x1d9)]());}async[_0x5eb250(0x203)](_0x5adbff){const _0x42901c=_0x5eb250;return this[_0x42901c(0x25c)]?null:this['_localStorageService'][_0x42901c(0x15a)]((0x0,e[_0x42901c(0x398)])(_0x5adbff));}async[_0x5eb250(0x265)](_0x52c8f4,_0x440ed8){const _0x206b48=_0x5eb250;return!!this[_0x206b48(0x3ca)][_0x206b48(0x34b)](_0x52c8f4,_0x440ed8);}['updateOfflineData'](_0xe796c4,_0x14dd58,_0x3e68d1,_0x13e9de){const _0x5dfb76=_0x5eb250;let _0x4db733=this[_0x5dfb76(0x3de)]['getCurrentRevOfUnit'](_0xe796c4);this['_cachedData'][_0x5dfb76(0x1b2)](_0xe796c4,{'unitID':_0xe796c4,'type':_0x14dd58,'awaitingChangeset':_0x3e68d1,'mutations':_0x13e9de,'rev':_0x4db733}),this[_0x5dfb76(0x35c)][_0x5dfb76(0x2b7)](_0xe796c4)||this[_0x5dfb76(0x1b1)](_0xe796c4);}['_scheduleSaving'](_0x47d268){const _0x3ee57c=_0x5eb250;let _0xd6f1b5=this[_0x3ee57c(0x221)]();_0xd6f1b5===0x0?this[_0x3ee57c(0x22c)](_0x47d268):this[_0x3ee57c(0x35c)][_0x3ee57c(0x1b2)](_0x47d268,setTimeout(()=>this[_0x3ee57c(0x22c)](_0x47d268),_0xd6f1b5));}[_0x5eb250(0x221)](){const _0x4f8182=_0x5eb250;var _0x2c9b1c;return(_0x2c9b1c=this[_0x4f8182(0x31e)][_0x4f8182(0x339)](e['LOCAL_CACHE_INTERVAL_KEY']))==null?e[_0x4f8182(0x345)]:_0x2c9b1c;}[_0x5eb250(0x22c)](_0xfeb816){const _0x9b4493=_0x5eb250;let _0x1a4643=this['_saveTaskMap']['get'](_0xfeb816);return _0x1a4643!==void 0x0&&window[_0x9b4493(0x343)](_0x1a4643),this['_localStorageService']['setItem']((0x0,e[_0x9b4493(0x398)])(_0xfeb816),this['_cachedData']['get'](_0xfeb816))[_0x9b4493(0x289)](()=>this[_0x9b4493(0x35c)][_0x9b4493(0x3ee)](_0xfeb816));}async[_0x5eb250(0x2af)](){const _0x2a6b1=_0x5eb250;let _0x3e8213=[];this[_0x2a6b1(0x35c)][_0x2a6b1(0x346)]((_0x137b40,_0x2ce450)=>{const _0x2083ce=_0x2a6b1;window[_0x2083ce(0x343)](_0x137b40),_0x3e8213['push'](this['_saveCache'](_0x2ce450)[_0x2083ce(0x289)](()=>{const _0x3e3400=_0x2083ce;this[_0x3e3400(0x35c)]['delete'](_0x2ce450);}));}),await Promise[_0x2a6b1(0x1c2)](_0x3e8213);}};Y=T([w(0x0,t[_0x5eb250(0x16a)]),w(0x1,t[_0x5eb250(0x17a)]),w(0x2,(0x0,t['Inject'])(m[_0x5eb250(0x27d)]))],Y);var X=class extends t[_0x5eb250(0x1a5)]{constructor(){const _0x26ce88=_0x5eb250;super(),C(this,_0x26ce88(0x295),void 0x0),this[_0x26ce88(0x295)]=(0x0,r[_0x26ce88(0x36b)])(window,_0x26ce88(0x3cd))['pipe']((0x0,r['takeUntil'])(this['dispose$']),(0x0,r[_0x26ce88(0x1b9)])(0x1),(0x0,r[_0x26ce88(0x1f9)])(void 0x0));}['setParam'](_0x3696f2,_0x49d226,_0x2c192a=!0x1){const _0x43bbc8=_0x5eb250;let _0x517c71=new URL(window[_0x43bbc8(0x171)][_0x43bbc8(0x159)]);_0x517c71[_0x43bbc8(0x3a8)][_0x43bbc8(0x1b2)](_0x3696f2,_0x49d226),_0x2c192a?window[_0x43bbc8(0x3b7)][_0x43bbc8(0x20f)]('','',_0x517c71[_0x43bbc8(0x182)]()):window['history']['pushState']('','',_0x517c71[_0x43bbc8(0x182)]());}[_0x5eb250(0x2f6)](_0x3cb135,_0x2093c3=!0x1){const _0x5b8865=_0x5eb250;let _0x2cb62c=new URL(window['location'][_0x5b8865(0x159)]);_0x2cb62c[_0x5b8865(0x3a8)][_0x5b8865(0x3ee)](_0x3cb135),_0x2093c3?window[_0x5b8865(0x3b7)][_0x5b8865(0x20f)]('','',_0x2cb62c[_0x5b8865(0x182)]()):window['history'][_0x5b8865(0x2ed)]('','',_0x2cb62c[_0x5b8865(0x182)]());}[_0x5eb250(0x2f8)](_0x3a0d2f){const _0x508514=_0x5eb250;var _0x4d9795;return(_0x4d9795=new URL(window[_0x508514(0x171)][_0x508514(0x159)])['searchParams'][_0x508514(0x1ae)](_0x3a0d2f))==null?void 0x0:_0x4d9795;}};let Z=class extends t[_0x5eb250(0x3bb)]{constructor(_0x2d5247=H,_0x41bd3d,_0x2553de,_0x282f72){const _0x196835=_0x5eb250;super(),this['_config']=_0x2d5247,this[_0x196835(0x3ae)]=_0x41bd3d,this[_0x196835(0x193)]=_0x2553de,this[_0x196835(0x31e)]=_0x282f72;let {..._0x34aedb}=(0x0,t['merge'])({},H,this[_0x196835(0x330)]);this[_0x196835(0x31e)]['setConfig'](V,_0x34aedb);}[_0x5eb250(0x196)](){const _0x17fb8=_0x5eb250;this[_0x17fb8(0x328)](),this[_0x17fb8(0x35d)]();}[_0x5eb250(0x3ab)](){const _0x250730=_0x5eb250;this[_0x250730(0x2ff)]();}[_0x5eb250(0x328)](){const _0x58d989=_0x5eb250;var _0x488ddb;let _0x3ee668=[[A],[J],[G],[U],[W],[M],[D,{'useClass':X}],[d['ISocketService'],{'useClass':d[_0x58d989(0x20b)]}],[e[_0x58d989(0x16e)],{'useClass':Y}],[E],[K],[B],[F],[k],[O]];this[_0x58d989(0x330)][_0x58d989(0x383)]&&_0x3ee668['push']([q]),(0x0,t[_0x58d989(0x391)])(this[_0x58d989(0x193)],(0x0,t[_0x58d989(0x184)])(_0x3ee668,(_0x488ddb=this[_0x58d989(0x330)])==null?void 0x0:_0x488ddb[_0x58d989(0x3ec)]));}[_0x5eb250(0x2ff)](){const _0x3bec20=_0x5eb250;this[_0x3bec20(0x1c9)](this['_renderManagerService'][_0x3bec20(0x2ac)](t['UniverInstanceType'][_0x3bec20(0x173)],[L])),this[_0x3bec20(0x1c9)](this[_0x3bec20(0x3ae)][_0x3bec20(0x2ac)](t[_0x3bec20(0x1dc)][_0x3bec20(0x181)],[z]));}[_0x5eb250(0x35d)](){const _0x229c88=_0x5eb250;(0x0,t[_0x229c88(0x366)])(this[_0x229c88(0x193)],[[F],[E],[K],[B],[O],[J]]),this['_config'][_0x229c88(0x383)]&&(0x0,t[_0x229c88(0x366)])(this[_0x229c88(0x193)],[[q]]);}};C(Z,_0x5eb250(0x3bd),'UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),C(Z,_0x5eb250(0x357),re),C(Z,'version',ie),Z=T([(0x0,t['DependentOn'])(e['UniverCollaborationClientPlugin']),w(0x1,u[_0x5eb250(0x305)]),w(0x2,(0x0,t[_0x5eb250(0x235)])(t[_0x5eb250(0x2b1)])),w(0x3,t[_0x5eb250(0x16a)])],Z);let Q=class extends e[_0x5eb250(0x291)]{constructor(_0x155774,_0x25e6ed,_0x4ff6a6,_0x4b6dd0,_0x2b76f9){super(_0x155774,_0x25e6ed,_0x4ff6a6,_0x4b6dd0,_0x2b76f9);}async[_0x5eb250(0x213)](_0xf5a34c){const _0x3bc997=_0x5eb250;let _0x501f8a=await this['_getSessionTicket'](),_0x10d362=this[_0x3bc997(0x2d3)](_0xf5a34c,_0x501f8a);return this[_0x3bc997(0x15c)](_0x10d362);}[_0x5eb250(0x2d3)](_0x3ddfc5,_0x22a841){const _0x41eed1=_0x5eb250;let _0x2edf72=typeof window>'u'?new URL(_0x3ddfc5):new URL(_0x3ddfc5,window[_0x41eed1(0x171)][_0x41eed1(0x278)]);_0x2edf72[_0x41eed1(0x3a8)][_0x41eed1(0x1b2)](_0x41eed1(0x352),_0x22a841);let _0x527170=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x41eed1(0x171)][_0x41eed1(0x164)]);return _0x527170['get'](_0x41eed1(0x202))&&_0x2edf72[_0x41eed1(0x3a8)][_0x41eed1(0x1b2)](_0x41eed1(0x202),_0x527170['get'](_0x41eed1(0x202))),_0x2edf72[_0x41eed1(0x182)]();}async['_getSessionTicket'](){const _0xfba233=_0x5eb250;var _0x27ede1,_0x55b3a5,_0x1e3281;let _0x4a2a4d=this[_0xfba233(0x31e)]['getConfig'](e[_0xfba233(0x2a3)]),_0x221065=(_0x27ede1=_0x4a2a4d==null?void 0x0:_0x4a2a4d[_0xfba233(0x3d5)])==null?e['DEFAULT_WS_SESSION_TICKET_URL']:_0x27ede1;return(_0x55b3a5=(_0x1e3281=(await this['_httpService']['get'](_0x221065,{'headers':{'Content-Type':_0xfba233(0x284)}}))['body'])==null?void 0x0:_0x1e3281[_0xfba233(0x166)])==null?'':_0x55b3a5;}};Q=T([w(0x0,(0x0,t[_0x5eb250(0x235)])(t['Injector'])),w(0x1,(0x0,t[_0x5eb250(0x235)])(d[_0x5eb250(0x19d)])),w(0x2,t[_0x5eb250(0x16a)]),w(0x3,t[_0x5eb250(0x3c2)]),w(0x4,m[_0x5eb250(0x24e)])],Q);let $=class extends t[_0x5eb250(0x1e3)]{constructor(_0x4f0741,_0x1e4224,_0x4a12d0){const _0x2a36b8=_0x5eb250;super(),this[_0x2a36b8(0x2c6)]=_0x4f0741,this[_0x2a36b8(0x314)]=_0x1e4224,this[_0x2a36b8(0x31e)]=_0x4a12d0;}async[_0x5eb250(0x3bc)](_0x29a55b,_0x2ca636,_0x2b7a7b,..._0x48a49d){const _0x2397fb=_0x5eb250;var _0x1fd29e,_0x1863a8,_0x211f51,_0x68ef69;let _0x2c098a=this[_0x2397fb(0x2c6)][_0x2397fb(0x308)]();if(!_0x2c098a)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x20c328=((_0x1fd29e=this[_0x2397fb(0x31e)][_0x2397fb(0x339)](e[_0x2397fb(0x1d6)]))==null?e['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']:_0x1fd29e)+'/'+_0x29a55b+'/run/'+_0x2ca636,_0x409dcb={'scriptId':_0x29a55b,'runId':(_0x1863a8=new URL(window[_0x2397fb(0x171)][_0x2397fb(0x159)])[_0x2397fb(0x3a8)][_0x2397fb(0x1ae)]('runId'))==null?'':_0x1863a8,'function':_0x2ca636,'unitId':_0x2c098a[_0x2397fb(0x3b9)](),'argsOfFunction':JSON[_0x2397fb(0x33b)](_0x48a49d),'invokeId':(_0x211f51=_0x2b7a7b['invokeId'])==null?'':_0x211f51,'executionId':(_0x68ef69=_0x2b7a7b[_0x2397fb(0x2b8)])==null?'':_0x68ef69};try{let _0x2bdd0e=await this['_httpService'][_0x2397fb(0x236)](_0x20c328,{'body':_0x409dcb});return _0x2bdd0e[_0x2397fb(0x1d0)]['error']&&_0x2bdd0e[_0x2397fb(0x1d0)][_0x2397fb(0x353)][_0x2397fb(0x2f9)]!==y['ErrorCode']['OK']?'Failed':_0x2bdd0e['body'][_0x2397fb(0x285)];}catch{return _0x2397fb(0x33a);}}};$=T([w(0x0,t['IUniverInstanceService']),w(0x1,(0x0,t[_0x5eb250(0x235)])(d[_0x5eb250(0x19d)])),w(0x2,t[_0x5eb250(0x16a)])],$);const me=0x7530,he='ACTIVE_UNIT_EVENT_CHANNEL';var ge=class extends t[_0x5eb250(0x1e3)]{constructor(){const _0xc52965=_0x5eb250;super(),C(this,_0xc52965(0x2e3),(0x0,t[_0xc52965(0x33e)])()),C(this,'_selfUnitIDs',new Set()),C(this,_0xc52965(0x191),new Map()),C(this,_0xc52965(0x389),null),C(this,'_clearOtherTimers',new Map()),C(this,_0xc52965(0x28a),new Map()),this[_0xc52965(0x163)]();}[_0x5eb250(0x1d9)](){const _0x5a3b22=_0x5eb250;super[_0x5a3b22(0x1d9)](),this['_clearOtherTimers'][_0x5a3b22(0x346)]((_0x5a26bd,_0x49206f)=>this[_0x5a3b22(0x2ea)](_0x49206f)),this[_0x5a3b22(0x389)]&&window[_0x5a3b22(0x361)](this[_0x5a3b22(0x389)]);}[_0x5eb250(0x3ce)](_0x1df028){const _0x26fa79=_0x5eb250;return this[_0x26fa79(0x18b)](_0x1df028)[_0x26fa79(0x2ca)]((0x0,r[_0x26fa79(0x16d)])());}['editingUnit'](_0x427712){const _0x1c3cae=_0x5eb250;this[_0x1c3cae(0x2ee)]['size']===0x0&&this[_0x1c3cae(0x2b0)](),this[_0x1c3cae(0x2ee)][_0x1c3cae(0x1bd)](_0x427712),this[_0x1c3cae(0x378)]({'type':0x0,'memberID':this[_0x1c3cae(0x2e3)],'unitIDs':[_0x427712],'isForwarded':!0x1});}[_0x5eb250(0x1d7)](_0x2ab03b){const _0x3aee97=_0x5eb250;this['_selfUnitIDs'][_0x3aee97(0x3ee)](_0x2ab03b),this[_0x3aee97(0x2ee)][_0x3aee97(0x3c8)]===0x0&&this[_0x3aee97(0x389)]&&window['clearInterval'](this[_0x3aee97(0x389)]);}['_init'](){const _0x27a23b=_0x5eb250;this[_0x27a23b(0x1c9)]((0x0,t['toDisposable'])((0x0,r['fromEvent'])(window,_0x27a23b(0x22d))[_0x27a23b(0x3e7)](_0x33e56d=>{const _0x28e5de=_0x27a23b;if(_0x33e56d['key']!==he||!_0x33e56d[_0x28e5de(0x1cb)])return;let _0x36d72c=JSON[_0x28e5de(0x180)](_0x33e56d[_0x28e5de(0x1cb)]);this[_0x28e5de(0x2b6)](_0x36d72c);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x27a23b(0x2e3)],'unitIDs':Array[_0x27a23b(0x21e)](this['_selfUnitIDs'])}));}[_0x5eb250(0x2b6)](_0x187e74){const _0x54eb83=_0x5eb250;switch(_0x187e74['type']){case 0x0:this[_0x54eb83(0x26d)](_0x187e74);break;case 0x1:this[_0x54eb83(0x385)](_0x187e74);break;case 0x2:this[_0x54eb83(0x200)](_0x187e74);break;}}[_0x5eb250(0x26d)](_0x1e34bf){const _0x3c0485=_0x5eb250;let {unitIDs:_0x172668,memberID:_0x203b87,isForwarded:_0x51e8b2}=_0x1e34bf;_0x172668[_0x3c0485(0x346)](_0x39b487=>{const _0x36566e=_0x3c0485;if(!_0x51e8b2&&this[_0x36566e(0x191)][_0x36566e(0x2b7)](_0x39b487)&&this['_ensureSubject'](_0x39b487)[_0x36566e(0x1cc)](e[_0x36566e(0x1c3)][_0x36566e(0x1c8)]),!this[_0x36566e(0x191)][_0x36566e(0x2b7)](_0x39b487)||!this['_unitOnClients'][_0x36566e(0x1ae)](_0x39b487)[_0x36566e(0x2b7)](_0x203b87)){let _0x28666a=this['_unitOnClients'][_0x36566e(0x1ae)](_0x39b487)||new Set();_0x28666a[_0x36566e(0x1bd)](_0x203b87),this['_unitOnClients'][_0x36566e(0x1b2)](_0x39b487,_0x28666a),this[_0x36566e(0x37f)](_0x203b87);}}),_0x51e8b2||this[_0x3c0485(0x378)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3c0485(0x2ee)]],'isForwarded':!0x0});}[_0x5eb250(0x37f)](_0x3447a9){const _0x446b43=_0x5eb250;this[_0x446b43(0x2ea)](_0x3447a9);let _0x3f06a2=window[_0x446b43(0x32b)](()=>{const _0x26c9d5=_0x446b43;this[_0x26c9d5(0x191)]['forEach'](_0x41c954=>{const _0x22ae54=_0x26c9d5;_0x41c954[_0x22ae54(0x3ee)](_0x3447a9);});},me*0x2);this[_0x446b43(0x375)][_0x446b43(0x1b2)](_0x3447a9,_0x3f06a2);}[_0x5eb250(0x2ea)](_0x43af2b){const _0x3471f1=_0x5eb250;if(this['_clearOtherTimers'][_0x3471f1(0x2b7)](_0x43af2b)){let _0x108962=this[_0x3471f1(0x375)]['get'](_0x43af2b);_0x108962&&window[_0x3471f1(0x343)](_0x108962),this['_clearOtherTimers'][_0x3471f1(0x1b2)](_0x43af2b,null);}}[_0x5eb250(0x385)](_0x3ef7fc){const _0x2832fe=_0x5eb250;let {memberID:_0x2df456,unitIDs:_0x2bf2dc}=_0x3ef7fc;_0x2bf2dc[_0x2832fe(0x346)](_0x1d15cb=>{const _0x42239d=_0x2832fe;var _0x107c8f;let _0x5405c6=this[_0x42239d(0x191)]['get'](_0x1d15cb);_0x5405c6&&(_0x5405c6['delete'](_0x2df456),(_0x107c8f=this[_0x42239d(0x18b)](_0x1d15cb))==null||_0x107c8f[_0x42239d(0x1cc)](_0x5405c6[_0x42239d(0x3c8)]===0x0?e[_0x42239d(0x1c3)][_0x42239d(0x24d)]:e['UnitStatus'][_0x42239d(0x1c8)]));}),this[_0x2832fe(0x2ea)](_0x2df456);}[_0x5eb250(0x200)](_0x353f7a){const _0x1a0b1f=_0x5eb250;this[_0x1a0b1f(0x37f)](_0x353f7a[_0x1a0b1f(0x3cf)]);}[_0x5eb250(0x378)](_0x3e086f){const _0x12509d=_0x5eb250;localStorage[_0x12509d(0x34b)](he,JSON[_0x12509d(0x33b)](_0x3e086f));}[_0x5eb250(0x2b0)](){const _0x39c097=_0x5eb250;this[_0x39c097(0x389)]=window[_0x39c097(0x2c3)](()=>{const _0xceed91=_0x39c097;this[_0xceed91(0x378)]({'type':0x2,'memberID':this['_id']});},me);}[_0x5eb250(0x18b)](_0x5d834d){const _0x4fa9ef=_0x5eb250;return this[_0x4fa9ef(0x28a)][_0x4fa9ef(0x2b7)](_0x5d834d)||this[_0x4fa9ef(0x28a)][_0x4fa9ef(0x1b2)](_0x5d834d,new r[(_0x4fa9ef(0x1ba))](e['UnitStatus'][_0x4fa9ef(0x24d)])),this[_0x4fa9ef(0x28a)][_0x4fa9ef(0x1ae)](_0x5d834d);}};Object['defineProperty'](exports,_0x5eb250(0x2b4),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x5eb250(0x1f4)](exports,_0x5eb250(0x3e5),{'enumerable':!0x0,'get':function(){return O;}}),Object[_0x5eb250(0x1f4)](exports,'DesktopCollaborationStatusDisplayController',{'enumerable':!0x0,'get':function(){return E;}}),exports['IURLService']=D,Object[_0x5eb250(0x1f4)](exports,_0x5eb250(0x3cc),{'enumerable':!0x0,'get':function(){return $;}}),exports['SheetCollabCursorShape']=R,Object[_0x5eb250(0x1f4)](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return Z;}}),exports['WebBrowserSingleActiveUnitService']=ge,exports['WebURLService']=X;
1
+ const _0xbf25c6=_0x2506;(function(_0x54e248,_0x3cfcdf){const _0x20b966=_0x2506,_0x656935=_0x54e248();while(!![]){try{const _0x26837b=parseInt(_0x20b966(0x1c0))/0x1*(parseInt(_0x20b966(0x1b7))/0x2)+parseInt(_0x20b966(0x150))/0x3+parseInt(_0x20b966(0x28e))/0x4+-parseInt(_0x20b966(0x212))/0x5+-parseInt(_0x20b966(0x36d))/0x6*(parseInt(_0x20b966(0x28f))/0x7)+-parseInt(_0x20b966(0x1e4))/0x8+-parseInt(_0x20b966(0xd8))/0x9*(parseInt(_0x20b966(0x134))/0xa);if(_0x26837b===_0x3cfcdf)break;else _0x656935['push'](_0x656935['shift']());}catch(_0x22a39){_0x656935['push'](_0x656935['shift']());}}}(_0x35dd,0x2bd8a),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0xbf25c6(0x1bd)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs/rpc'),u=require('@univerjs/sheets'),d=require('@univerjs/engine-render'),f=require('@univerjs/network'),p=require('@univerjs/docs-ui'),m=require('@univerjs/drawing'),h=require('@univerjs-pro/collaboration'),g=require('@univerjs/docs'),_=require('@univerjs/engine-formula'),v=require('@univerjs/sheets-ui'),y=require('@univerjs/protocol');function b(_0x3507c4){const _0x5bfe23=_0xbf25c6;switch(_0x3507c4){case e[_0x5bfe23(0x117)][_0x5bfe23(0x1d4)]:return{'icon':(0x0,c['jsx'])(o[_0x5bfe23(0x2f2)],{}),'colorClass':'univer-text-red-500','i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x5bfe23(0x10a),'clickable':!0x0,'indicator':_0x5bfe23(0x29d)};case e[_0x5bfe23(0x117)][_0x5bfe23(0x279)]:return{'icon':(0x0,c[_0x5bfe23(0x143)])(o[_0x5bfe23(0x2f2)],{}),'colorClass':_0x5bfe23(0x263),'i18nKey':_0x5bfe23(0x335),'clickable':!0x1,'indicator':_0x5bfe23(0x29d)};case e[_0x5bfe23(0x117)][_0x5bfe23(0x163)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':_0x5bfe23(0x20c),'i18nKey':_0x5bfe23(0x25e),'clickable':!0x1,'indicator':'spin'};case e['CollaborationStatus'][_0x5bfe23(0x368)]:return{'icon':(0x0,c[_0x5bfe23(0x143)])(o['OnLineIcon'],{}),'colorClass':_0x5bfe23(0x1bb),'i18nKey':_0x5bfe23(0x29a),'clickable':!0x1,'indicator':_0x5bfe23(0x29d)};case e[_0x5bfe23(0x117)][_0x5bfe23(0xff)]:case e[_0x5bfe23(0x117)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,c[_0x5bfe23(0x143)])(o['LoadingMultiIcon'],{}),'colorClass':_0x5bfe23(0x20c),'i18nKey':_0x5bfe23(0x27c),'clickable':!0x1,'indicator':_0x5bfe23(0x15d)};case e[_0x5bfe23(0x117)][_0x5bfe23(0x160)]:return{'icon':(0x0,c['jsx'])(o[_0x5bfe23(0x24a)],{}),'colorClass':_0x5bfe23(0x20c),'i18nKey':_0x5bfe23(0x27c),'clickable':!0x1,'indicator':_0x5bfe23(0x15d)};case e[_0x5bfe23(0x117)][_0x5bfe23(0x19f)]:return{'icon':(0x0,c['jsx'])(o['OnLineIcon'],{}),'colorClass':_0x5bfe23(0x14c),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x5bfe23(0x29d)};}}function x(_0xef3450){const _0x3a2f8e=_0xbf25c6;let {status$:_0x5c8e13}=_0xef3450,_0x4947e2=(0x0,n[_0x3a2f8e(0x28c)])(_0x5c8e13,e['CollaborationStatus'][_0x3a2f8e(0x368)]),_0x1c1d42=(0x0,n[_0x3a2f8e(0xdc)])(t[_0x3a2f8e(0x334)]),_0x423549=(0x0,n[_0x3a2f8e(0xdc)])(e['CollaborationSessionService']),_0x1de2d2=(0x0,s[_0x3a2f8e(0x35b)])(()=>b(_0x4947e2),[_0x4947e2]),_0x44c916=_0x4947e2!==e['CollaborationStatus'][_0x3a2f8e(0x1d4)],_0x58e00a=_0x1c1d42['t'](_0x1de2d2[_0x3a2f8e(0x233)]),_0x25813f=_0x1de2d2[_0x3a2f8e(0x29b)]?_0x1c1d42['t'](_0x1de2d2[_0x3a2f8e(0x29b)]):_0x58e00a,_0x3c515b=(0x0,s[_0x3a2f8e(0x26f)])(()=>{const _0x163040=_0x3a2f8e;_0x44c916||_0x423549[_0x163040(0xe0)]();},[_0x44c916,_0x423549]),_0x4b6f4a=(0x0,s[_0x3a2f8e(0x26f)])(_0x254300=>{const _0x13b916=_0x3a2f8e;!_0x44c916&&(_0x254300['key']===_0x13b916(0x1c9)||_0x254300[_0x13b916(0x2fa)]==='\x20')&&(_0x254300[_0x13b916(0x360)](),_0x423549[_0x13b916(0xe0)]());},[_0x44c916,_0x423549]),_0xf08096=(0x0,c['jsx'])(_0x3a2f8e(0x116),{'className':(0x0,a['clsx'])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x3a2f8e(0x234),_0x1de2d2[_0x3a2f8e(0x2db)],{'univer-animate-spin':_0x1de2d2[_0x3a2f8e(0x18a)]===_0x3a2f8e(0x15d),'univer-animate-pulse':_0x1de2d2[_0x3a2f8e(0x18a)]===_0x3a2f8e(0x155)}),'aria-hidden':'true','children':_0x1de2d2[_0x3a2f8e(0x21f)]}),_0x191c39=(0x0,c[_0x3a2f8e(0x143)])(_0x3a2f8e(0x116),{'className':(0x0,a['clsx'])(_0x3a2f8e(0x207),_0x3a2f8e(0x24c),_0x3a2f8e(0x2cb),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2',_0x3a2f8e(0x125),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x1de2d2[_0x3a2f8e(0x194)],'univer-cursor-default':!_0x1de2d2[_0x3a2f8e(0x194)]}),'children':_0xf08096});return _0x1de2d2[_0x3a2f8e(0x194)]?(0x0,c[_0x3a2f8e(0x143)])(a[_0x3a2f8e(0x338)],{'title':_0x25813f,'placement':_0x3a2f8e(0x118),'children':(0x0,c[_0x3a2f8e(0x143)])(_0x3a2f8e(0x2e9),{'type':_0x3a2f8e(0x2e9),'onClick':_0x3c515b,'onKeyDown':_0x4b6f4a,'className':(0x0,a[_0x3a2f8e(0x1fc)])(_0x3a2f8e(0x361),'univer-border-none\x20univer-bg-transparent',_0x3a2f8e(0x2d3),_0x3a2f8e(0x2d7)),'aria-label':_0x58e00a+'\x20-\x20'+_0x25813f,'role':_0x3a2f8e(0x1d6),'aria-live':_0x3a2f8e(0x300),'aria-atomic':_0x3a2f8e(0x322),'children':_0x191c39})}):(0x0,c[_0x3a2f8e(0x143)])(a[_0x3a2f8e(0x338)],{'title':_0x25813f,'placement':_0x3a2f8e(0x118),'children':(0x0,c[_0x3a2f8e(0x143)])(_0x3a2f8e(0x319),{'className':(0x0,a[_0x3a2f8e(0x1fc)])(_0x3a2f8e(0x361),'univer-border-none\x20univer-bg-transparent',_0x3a2f8e(0x2d3)),'aria-label':_0x58e00a,'role':_0x3a2f8e(0x1d6),'aria-live':'polite','aria-atomic':_0x3a2f8e(0x322),'children':_0x191c39})});}function S(_0xea93d0){'@babel/helpers - typeof';const _0x52508d=_0xbf25c6;return S=typeof Symbol==_0x52508d(0x306)&&typeof Symbol[_0x52508d(0x19a)]==_0x52508d(0x1ed)?function(_0x425297){return typeof _0x425297;}:function(_0x57f663){const _0x4dae33=_0x52508d;return _0x57f663&&typeof Symbol==_0x4dae33(0x306)&&_0x57f663[_0x4dae33(0x190)]===Symbol&&_0x57f663!==Symbol[_0x4dae33(0x254)]?'symbol':typeof _0x57f663;},S(_0xea93d0);}function ee(_0x246f26,_0x5f2275){const _0x5af5e9=_0xbf25c6;if(S(_0x246f26)!='object'||!_0x246f26)return _0x246f26;var _0x3541da=_0x246f26[Symbol[_0x5af5e9(0x108)]];if(_0x3541da!==void 0x0){var _0x288e99=_0x3541da[_0x5af5e9(0x1aa)](_0x246f26,_0x5f2275||'default');if(S(_0x288e99)!='object')return _0x288e99;throw TypeError(_0x5af5e9(0xdf));}return(_0x5f2275===_0x5af5e9(0x343)?String:Number)(_0x246f26);}function te(_0x89839f){const _0x5510a2=_0xbf25c6;var _0x43f742=ee(_0x89839f,_0x5510a2(0x343));return S(_0x43f742)==_0x5510a2(0x1ed)?_0x43f742:_0x43f742+'';}function C(_0x117c48,_0x2d288a,_0x27b987){const _0x3d61d4=_0xbf25c6;return(_0x2d288a=te(_0x2d288a))in _0x117c48?Object[_0x3d61d4(0x35a)](_0x117c48,_0x2d288a,{'value':_0x27b987,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x117c48[_0x2d288a]=_0x27b987,_0x117c48;}function w(_0x1fdd0c,_0x45b294){return function(_0x5668b5,_0x2a0095){_0x45b294(_0x5668b5,_0x2a0095,_0x1fdd0c);};}function T(_0x6ad23c,_0x210bdb,_0x13686e,_0x1b0355){const _0x16c8ae=_0xbf25c6;var _0x2ca8d5=arguments['length'],_0x4a11e4=_0x2ca8d5<0x3?_0x210bdb:_0x1b0355===null?_0x1b0355=Object[_0x16c8ae(0x106)](_0x210bdb,_0x13686e):_0x1b0355,_0x1ce9ea;if(typeof Reflect==_0x16c8ae(0x36f)&&typeof Reflect[_0x16c8ae(0x269)]==_0x16c8ae(0x306))_0x4a11e4=Reflect[_0x16c8ae(0x269)](_0x6ad23c,_0x210bdb,_0x13686e,_0x1b0355);else{for(var _0x59b729=_0x6ad23c[_0x16c8ae(0x217)]-0x1;_0x59b729>=0x0;_0x59b729--)(_0x1ce9ea=_0x6ad23c[_0x59b729])&&(_0x4a11e4=(_0x2ca8d5<0x3?_0x1ce9ea(_0x4a11e4):_0x2ca8d5>0x3?_0x1ce9ea(_0x210bdb,_0x13686e,_0x4a11e4):_0x1ce9ea(_0x210bdb,_0x13686e))||_0x4a11e4);}return _0x2ca8d5>0x3&&_0x4a11e4&&Object[_0x16c8ae(0x35a)](_0x210bdb,_0x13686e,_0x4a11e4),_0x4a11e4;}let E=class extends t[_0xbf25c6(0x229)]{constructor(_0x4662a8,_0x1d3290,_0x2b8c67,_0x4052f4){const _0x134d15=_0xbf25c6;super(),this['_univerInstanceService']=_0x4662a8,this['_injector']=_0x1d3290,this[_0x134d15(0x169)]=_0x2b8c67,this[_0x134d15(0xd5)]=_0x4052f4,C(this,_0x134d15(0x255),new r[(_0x134d15(0x2da))](e[_0x134d15(0x117)][_0x134d15(0x368)])),this[_0x134d15(0xdb)](),this[_0x134d15(0x2ae)]();}[_0xbf25c6(0x2ae)](){const _0x5403ea=_0xbf25c6;this[_0x5403ea(0x154)]((0x0,r['merge'])(this[_0x5403ea(0x355)][_0x5403ea(0x35c)],this['_univerInstanceService'][_0x5403ea(0x33a)](t[_0x5403ea(0xd6)][_0x5403ea(0x375)]),this[_0x5403ea(0x355)]['getCurrentTypeOfUnit$'](t[_0x5403ea(0xd6)][_0x5403ea(0x18d)]))['pipe']((0x0,i[_0x5403ea(0x2b3)])(()=>ne(this['_univerInstanceService'])),(0x0,i[_0x5403ea(0x184)])(),(0x0,r['switchMap'])(_0x324319=>_0x324319?this['_collaborationController']['getCollabEntity$'](_0x324319):(0x0,r['of'])(null)),(0x0,r['switchMap'])(_0x2e4ede=>_0x2e4ede?_0x2e4ede[_0x5403ea(0x264)]:(0x0,r['of'])(e[_0x5403ea(0x117)][_0x5403ea(0x368)])))[_0x5403ea(0x230)](_0x546a00=>{const _0x4721a6=_0x5403ea;this['_status$'][_0x4721a6(0x1e2)](_0x546a00);}));}[_0xbf25c6(0xdb)](){const _0x26ad1b=_0xbf25c6;this[_0x26ad1b(0x154)](this[_0x26ad1b(0xd5)][_0x26ad1b(0x374)](n['BuiltInUIPart'][_0x26ad1b(0x2ea)],()=>(0x0,n[_0x26ad1b(0xeb)])(re({'status$':this[_0x26ad1b(0x255)][_0x26ad1b(0x175)]()}),this['_injector'])));}};E=T([w(0x0,t[_0xbf25c6(0x1d8)]),w(0x1,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x1f5)])),w(0x2,(0x0,t[_0xbf25c6(0x142)])(e[_0xbf25c6(0x2b1)])),w(0x3,n[_0xbf25c6(0x13f)])],E);function ne(_0xb3afde){const _0x3b66e2=_0xbf25c6;let _0x129f76=_0xb3afde[_0x3b66e2(0x12b)](),_0x2e8030=_0x129f76==null?void 0x0:_0x129f76[_0x3b66e2(0x191)]();if(_0x2e8030&&!(0x0,t[_0x3b66e2(0x378)])(_0x2e8030))return _0x2e8030;let _0x241521=_0xb3afde[_0x3b66e2(0x247)](t[_0x3b66e2(0xd6)][_0x3b66e2(0x375)]),_0x298440=_0x241521==null?void 0x0:_0x241521[_0x3b66e2(0x191)]();if(_0x298440&&!(0x0,t[_0x3b66e2(0x378)])(_0x298440))return _0x298440;let _0x187bf5=_0xb3afde[_0x3b66e2(0x247)](t['UniverInstanceType'][_0x3b66e2(0x18d)]);if(_0x187bf5)return _0x187bf5[_0x3b66e2(0x191)]();let _0x4c9729=_0xb3afde[_0x3b66e2(0x29f)](t[_0x3b66e2(0xd6)][_0x3b66e2(0x375)])[_0x3b66e2(0x1de)](_0x26142b=>!(0x0,t[_0x3b66e2(0x378)])(_0x26142b['getUnitId']()));return _0x4c9729?_0x4c9729[_0x3b66e2(0x191)]():null;}function re(_0x520bcb){let {status$:_0x411b8f}=_0x520bcb;return function(){const _0x55512b=_0x2506;return(0x0,c[_0x55512b(0x143)])(x,{'status$':_0x411b8f});};}const D=(0x0,t['createIdentifier'])(_0xbf25c6(0x216));let O=class extends t['RxDisposable']{constructor(_0x10667e,_0x3b4623,_0x3213c6,_0x5cb07b,_0x11f775){const _0x779f9a=_0xbf25c6;super(),this['_urlService']=_0x10667e,this['_logService']=_0x3b4623,this[_0x779f9a(0x2fb)]=_0x3213c6,this[_0x779f9a(0x291)]=_0x5cb07b,_0x11f775?_0x11f775==null||_0x11f775[_0x779f9a(0x21d)]()[_0x779f9a(0x198)](()=>this[_0x779f9a(0x2b2)]()):(this[_0x779f9a(0x177)][_0x779f9a(0x102)](_0x779f9a(0x295),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x779f9a(0x2b2)]());}async[_0xbf25c6(0x2b2)](){const _0x45a7cd=_0xbf25c6;let _0x341c60=this[_0x45a7cd(0x367)][_0x45a7cd(0x26a)](_0x45a7cd(0x2bc)),_0x2f6bdc=this[_0x45a7cd(0x367)][_0x45a7cd(0x26a)]('type'),_0x3e2456=this[_0x45a7cd(0x367)][_0x45a7cd(0x26a)](_0x45a7cd(0x219));if(!_0x341c60||!_0x2f6bdc){this[_0x45a7cd(0x177)][_0x45a7cd(0x102)](_0x45a7cd(0x295),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x1db315=await this[_0x45a7cd(0x291)][_0x45a7cd(0x37c)](_0x341c60,Number(_0x2f6bdc),_0x3e2456);_0x1db315&&_0x1db315 instanceof t[_0x45a7cd(0x25f)]&&this[_0x45a7cd(0x323)](_0x1db315);}async[_0xbf25c6(0x323)](_0x494bd8){const _0x130d98=_0xbf25c6;await this[_0x130d98(0x158)](_0x494bd8),_0x494bd8['activeSheet$']['pipe']((0x0,r[_0x130d98(0x1a8)])(this['dispose$']))[_0x130d98(0x230)](_0x1956e8=>{const _0x2bd3b0=_0x130d98;_0x1956e8&&this[_0x2bd3b0(0x1ca)](_0x1956e8);}),this[_0x130d98(0x367)][_0x130d98(0x341)]['pipe']((0x0,r['takeUntil'])(this[_0x130d98(0x187)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x494bd8));}[_0xbf25c6(0x1ca)](_0x236dd2,_0x46de0c=!0x1){const _0x37c0c4=_0xbf25c6;let _0xbc66df=this[_0x37c0c4(0x367)]['getParam'](_0x37c0c4(0x219));_0x236dd2[_0x37c0c4(0x129)]()!==_0xbc66df&&this['_urlService'][_0x37c0c4(0x133)](_0x37c0c4(0x219),_0x236dd2[_0x37c0c4(0x129)](),_0x46de0c);}async[_0xbf25c6(0x158)](_0x8488aa){const _0x387c58=_0xbf25c6;var _0xdb9fcf;let _0x5055f5=this[_0x387c58(0x367)][_0x387c58(0x26a)](_0x387c58(0x219));if(!_0x5055f5||!_0x8488aa[_0x387c58(0x284)](_0x5055f5)){let _0x24d0c2=_0x8488aa['getUnhiddenWorksheets']()[0x0],_0xd3b1ac=_0x8488aa[_0x387c58(0x284)](_0x24d0c2);if(!_0xd3b1ac)return;this[_0x387c58(0x1ca)](_0xd3b1ac,!0x0),await this[_0x387c58(0x2fb)][_0x387c58(0x25c)](u['SetWorksheetActivateCommand']['id'],{'unitId':_0x8488aa['getUnitId'](),'subUnitId':_0x24d0c2});return;}((_0xdb9fcf=_0x8488aa['getActiveSheet']())==null?void 0x0:_0xdb9fcf['getSheetId']())!==_0x5055f5&&await this[_0x387c58(0x2fb)][_0x387c58(0x25c)](u[_0x387c58(0x2b4)]['id'],{'unitId':_0x8488aa[_0x387c58(0x191)](),'subUnitId':_0x5055f5});}};O=T([w(0x0,D),w(0x1,t['ILogService']),w(0x2,t[_0xbf25c6(0x245)]),w(0x3,(0x0,t[_0xbf25c6(0x142)])(e[_0xbf25c6(0x1a1)])),w(0x4,(0x0,t[_0xbf25c6(0x2f4)])(l[_0xbf25c6(0x30f)]))],O);var ie=_0xbf25c6(0x195),ae=_0xbf25c6(0x174);let k=class extends t[_0xbf25c6(0x266)]{constructor(_0x2e757c,_0x319002){const _0x16515c=_0xbf25c6;super(),this[_0x16515c(0x145)]=_0x2e757c,this[_0x16515c(0x34d)]=_0x319002,this[_0x16515c(0x2b2)]();}[_0xbf25c6(0x2b2)](){const _0x5121d4=_0xbf25c6;let _0x3e9c57=this;this['disposeWithMe'](this['_docClipboardService'][_0x5121d4(0x10c)]({'onBeforePasteImage':async _0x5d8173=>{const _0x55f692=_0x5121d4;let _0x441a0e=await _0x3e9c57[_0x55f692(0x34d)][_0x55f692(0x32b)](_0x5d8173);return _0x441a0e?{'source':_0x441a0e[_0x55f692(0xf7)],'imageSourceType':_0x441a0e[_0x55f692(0x253)]}:null;}}));}};k=T([w(0x0,p[_0xbf25c6(0x222)]),w(0x1,m['IImageIoService'])],k);const A=[_0xbf25c6(0x21c),'jiqing.500',_0xbf25c6(0x100),_0xbf25c6(0x2fd),_0xbf25c6(0x321),_0xbf25c6(0x2cf)];var j=class extends t['Disposable']{constructor(..._0x2cac1a){const _0x39dfed=_0xbf25c6;super(..._0x2cac1a),C(this,'_assignedColors',new Map()),C(this,_0x39dfed(0x27b),0x0);}[_0xbf25c6(0x33f)](_0x1a19ed){const _0xe25441=_0xbf25c6;if(this[_0xe25441(0x364)][_0xe25441(0x17f)](_0x1a19ed))return this['_assignedColors'][_0xe25441(0x277)](_0x1a19ed);let _0x2ad5b1=A[this[_0xe25441(0x27b)]];return this[_0xe25441(0x27b)]=(this[_0xe25441(0x27b)]+0x1)%A[_0xe25441(0x217)],this['_assignedColors']['set'](_0x1a19ed,_0x2ad5b1),_0x2ad5b1;}};function M(_0x148349){let _0x13cec='';for(let _0x90018f of _0x148349){let {startOffset:_0x1e1957,endOffset:_0x5af00c,isActive:_0x22ce96,rangeType:_0x4b8752,segmentId:_0x59ec0d,segmentPage:_0x104b0f}=_0x90018f;_0x13cec['length']&&(_0x13cec+=','),_0x13cec+=_0x1e1957+':'+_0x5af00c+':'+(_0x22ce96?'1':'0')+':'+_0x4b8752+':'+_0x59ec0d+':'+_0x104b0f;}return _0x13cec;}function oe(_0x11e643){const _0x399a44=_0xbf25c6;let _0x221c09=_0x11e643['split'](','),_0x453c10=[];for(let _0x1f02de of _0x221c09){let [_0x4842fd,_0x3dc13a,_0x217ff0,_0xf3b061,_0x53cba1,_0x29cb51]=_0x1f02de[_0x399a44(0x2ad)](':');_0x453c10['push']({'startOffset':Number(_0x4842fd),'endOffset':Number(_0x3dc13a),'collapsed':_0x4842fd===_0x3dc13a,'isActive':_0x217ff0==='1','rangeType':_0xf3b061===t[_0x399a44(0x157)][_0x399a44(0xf5)]?t[_0x399a44(0x157)]['TEXT']:t[_0x399a44(0x157)][_0x399a44(0x377)],'segmentId':typeof _0x53cba1==_0x399a44(0x343)?String(_0x53cba1):'','segmentPage':Number(_0x29cb51==null?-0x1:_0x29cb51)});}return _0x453c10[_0x399a44(0x370)](_0x37e877=>_0x37e877[_0x399a44(0x235)])||(_0x453c10[0x0][_0x399a44(0x235)]=!0x0),_0x453c10;}function _0x2506(_0x4a01ff,_0x49b0c8){_0x4a01ff=_0x4a01ff-0xd2;const _0x35dd1d=_0x35dd();let _0x250663=_0x35dd1d[_0x4a01ff];return _0x250663;}var N=class extends t[_0xbf25c6(0x266)]{constructor(..._0x329d33){const _0x321ac0=_0xbf25c6;super(..._0x329d33),C(this,_0x321ac0(0x1dd),new r[(_0x321ac0(0x2da))](null)),C(this,_0x321ac0(0x2ba),this[_0x321ac0(0x1dd)]['asObservable']());}[_0xbf25c6(0x2c0)](_0x408bb0){const _0x3827e2=_0xbf25c6;let {unitID:_0x741450,memberID:_0x1e70b9,textRanges:_0x1d6d55}=_0x408bb0,_0x27f546=M(_0x1d6d55);if(_0x27f546==='')return;let _0x299052={'unitID':_0x741450,'memberID':_0x1e70b9,'selection':_0x27f546};this[_0x3827e2(0x1dd)][_0x3827e2(0x1e2)](_0x299052);}};let P=class extends t[_0xbf25c6(0x266)]{get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0xbf25c6(0x19d)](){const _0x3a9c87=_0xbf25c6;return this[_0x3a9c87(0xef)]['getValue']();}constructor(_0x30b442,_0x597a5c,_0x230dde,_0x7688cc,_0x3b228d,_0x9f748b,_0x1a99a1,_0x4129ca,_0x435db3){const _0x4f7361=_0xbf25c6;super(),this[_0x4f7361(0x132)]=_0x30b442,this[_0x4f7361(0x196)]=_0x597a5c,this[_0x4f7361(0x231)]=_0x230dde,this['_colorAssignService']=_0x7688cc,this[_0x4f7361(0x165)]=_0x3b228d,this[_0x4f7361(0x15a)]=_0x9f748b,this[_0x4f7361(0x1ad)]=_0x1a99a1,this['_univerInstanceService']=_0x4129ca,this['_commandService']=_0x435db3,C(this,'_online',!0x1),C(this,_0x4f7361(0x2b2),!0x1),C(this,_0x4f7361(0x2d2),new r[(_0x4f7361(0x2da))](new Map())),C(this,_0x4f7361(0x11c),this[_0x4f7361(0x2d2)][_0x4f7361(0x175)]()),C(this,_0x4f7361(0xef),new r[(_0x4f7361(0x2da))]([])),C(this,_0x4f7361(0x114),this[_0x4f7361(0xef)][_0x4f7361(0x33d)]((0x0,r['debounceTime'])(0x12c))),C(this,_0x4f7361(0x202),(0x0,t[_0x4f7361(0xe8)])(_0x80b93f=>{const _0x5d5564=_0x4f7361;let _0x3769ce={'eventID':h['CollaborationEvent'][_0x5d5564(0x225)],'data':{'unitID':this[_0x5d5564(0x132)],'memberID':this[_0x5d5564(0x196)][_0x5d5564(0x112)](),'selection':M(_0x80b93f)}};this['_session']['send'](_0x3769ce,this[_0x5d5564(0x132)]);},0x64));}[_0xbf25c6(0x130)](){const _0x2f3f1e=_0xbf25c6;super[_0x2f3f1e(0x130)](),this[_0x2f3f1e(0x2d2)]['next'](new Map()),this['_cursorInfo$'][_0x2f3f1e(0x11b)](),this[_0x2f3f1e(0xef)][_0x2f3f1e(0x1e2)]([]),this[_0x2f3f1e(0xef)]['complete']();}[_0xbf25c6(0x173)](){const _0x516be9=_0xbf25c6;this[_0x516be9(0x2b2)]||(this[_0x516be9(0x2b2)]=!0x0,this[_0x516be9(0x196)][_0x516be9(0x110)][_0x516be9(0x33d)]((0x0,r[_0x516be9(0x1a8)])(this[_0x516be9(0x187)]))[_0x516be9(0x230)](_0xe1982a=>{const _0x475ecf=_0x516be9;_0xe1982a===e['SessionStatus'][_0x475ecf(0x2af)]?this[_0x475ecf(0x37a)]():this[_0x475ecf(0x21b)]();}),this[_0x516be9(0x196)][_0x516be9(0x10d)][_0x516be9(0x33d)]((0x0,r[_0x516be9(0x1a8)])(this['dispose$']))[_0x516be9(0x230)](_0x74cc15=>{const _0xba0a8c=_0x516be9;let _0x284676=_0x74cc15[_0xba0a8c(0x246)];_0x284676===h['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x74cc15),_0x284676===h[_0xba0a8c(0x1e9)][_0xba0a8c(0xe5)]&&this['_onCursorDelete'](_0x74cc15);}),this['disposeWithMe'](this[_0x516be9(0x2fb)][_0x516be9(0x2ed)](_0x38b717=>{const _0x440aee=_0x516be9;let _0x2b06c4=_0x38b717[_0x440aee(0x159)];_0x2b06c4!=null&&this['_online']&&_0x38b717['id']===g[_0x440aee(0x164)]['id']&&_0x2b06c4[_0x440aee(0x1e3)]===this['unitID']&&_0x2b06c4[_0x440aee(0x251)]===!0x1&&_0x2b06c4['ranges'][_0x440aee(0x217)]>0x0&&this['_updateLocalCursor'](_0x2b06c4[_0x440aee(0x185)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x516be9(0x33d)]((0x0,r[_0x516be9(0x1a8)])(this[_0x516be9(0x187)]))[_0x516be9(0x230)](_0x5d785c=>{const _0x380c6e=_0x516be9;if((_0x5d785c==null?void 0x0:_0x5d785c[_0x380c6e(0x132)])!==this[_0x380c6e(0x132)])return;let _0x1daf94={'eventID':h[_0x380c6e(0x1e9)][_0x380c6e(0x225)],'data':_0x5d785c};this['_onCursorUpdate'](_0x1daf94);}),this[_0x516be9(0x154)](this[_0x516be9(0x2fb)][_0x516be9(0x2ed)](_0x27fcb5=>{const _0xa682b9=_0x516be9;if(_0x27fcb5[_0xa682b9(0x159)]==null)return;let _0x346053=_0x27fcb5[_0xa682b9(0x159)];if(_0x27fcb5['id']!==g[_0xa682b9(0x2cc)]['id']||_0x346053[_0xa682b9(0x1e3)]!==this[_0xa682b9(0x132)])return;let _0x1da36e={'id':_0xa682b9(0xe7),'params':_0x346053},_0x2c0a0a=this[_0xa682b9(0x22b)];for(let [_0x4883cf,_0x36c367]of _0x2c0a0a){let _0x38458c={'id':_0xa682b9(0xe7),'params':{'unitId':this[_0xa682b9(0x132)],'actions':null,'textRanges':_0x36c367[_0xa682b9(0x185)]}},_0x4dbda9=this['_transformService'][_0xa682b9(0x1fe)](_0x1da36e,_0x38458c,!0x1);if((0x0,h[_0xa682b9(0x22c)])(_0x4dbda9))throw _0x4dbda9['error'];_0x2c0a0a['set'](_0x4883cf,{..._0x36c367,'ranges':_0x4dbda9[_0xa682b9(0x272)][_0xa682b9(0x159)]['textRanges']});}queueMicrotask(()=>{const _0x1d8f49=_0xa682b9;this[_0x1d8f49(0x2d2)][_0x1d8f49(0x1e2)](_0x2c0a0a);});})));}['_onCursorUpdate'](_0xcabe72){const _0x4881d4=_0xbf25c6;var _0x14c6a0,_0x3c5159;let {memberID:_0x278b1c,selection:_0x37238b}=_0xcabe72[_0x4881d4(0x350)],_0x8b7f79=oe(_0x37238b),_0x1f4f20=(_0x14c6a0=(_0x3c5159=this['_memberService']['getMember'](this[_0x4881d4(0x132)],_0x278b1c))==null?void 0x0:_0x3c5159[_0x4881d4(0x2f1)])==null?_0x4881d4(0x2ac):_0x14c6a0,_0x72c134={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x278b1c),'name':_0x1f4f20,'ranges':_0x8b7f79},_0x2020bd=this[_0x4881d4(0x22b)];_0x2020bd[_0x4881d4(0x1fb)](_0x278b1c,_0x72c134),this['_cursorInfo$'][_0x4881d4(0x1e2)](_0x2020bd);}['_onCursorDelete'](_0x2018e6){const _0x3720ca=_0xbf25c6;let {memberID:_0x1c8365}=_0x2018e6[_0x3720ca(0x350)],_0x4c283b=this[_0x3720ca(0x22b)];_0x4c283b[_0x3720ca(0x151)](_0x1c8365),this[_0x3720ca(0x2d2)][_0x3720ca(0x1e2)](_0x4c283b);}[_0xbf25c6(0x37a)](){const _0x132e5b=_0xbf25c6;var _0x40d190;if(this['_online']=!0x0,((_0x40d190=this[_0x132e5b(0x355)][_0x132e5b(0x12b)]())==null?void 0x0:_0x40d190[_0x132e5b(0x191)]())!==this[_0x132e5b(0x132)])return;let _0x6c2b2d=this[_0x132e5b(0x231)][_0x132e5b(0x277)](g[_0x132e5b(0x34b)])[_0x132e5b(0x34f)]();Array['isArray'](_0x6c2b2d)&&_0x6c2b2d[_0x132e5b(0x217)]>0x0&&this[_0x132e5b(0x202)](_0x6c2b2d);}[_0xbf25c6(0x21b)](){const _0x426eec=_0xbf25c6;this[_0x426eec(0x29e)]=!0x1;}};P=T([w(0x2,(0x0,t['Inject'])(t[_0xbf25c6(0x1f5)])),w(0x3,(0x0,t['Inject'])(j)),w(0x4,(0x0,t['Inject'])(e[_0xbf25c6(0xe1)])),w(0x5,(0x0,t[_0xbf25c6(0x142)])(N)),w(0x6,h[_0xbf25c6(0xd2)]),w(0x7,t['IUniverInstanceService']),w(0x8,t['ICommandService'])],P);const se=()=>{let _0x35716e=[],_0x568fb8=!0x1;return _0x3019c7=>{const _0x5666f6=_0x2506;_0x35716e[_0x5666f6(0x1b3)](_0x3019c7),_0x568fb8||(_0x568fb8=!0x0,setTimeout(()=>{const _0x2455f7=_0x5666f6;_0x35716e[_0x2455f7(0x1a7)](_0x1dbdb7=>_0x1dbdb7()),_0x35716e=[],_0x568fb8=!0x1;}));};};let F=class extends t['RxDisposable']{get[_0xbf25c6(0x22b)](){const _0x1d5992=_0xbf25c6;return this[_0x1d5992(0x2d2)][_0x1d5992(0x197)]();}get[_0xbf25c6(0x19d)](){const _0x206aa7=_0xbf25c6;return this[_0x206aa7(0xef)][_0x206aa7(0x197)]();}constructor(_0x35d3a3,_0x58e58,_0x241364,_0x493892,_0x4ea9c5,_0xe21636,_0x49e07b,_0x257bd3){const _0x511b7f=_0xbf25c6;super(),this[_0x511b7f(0x132)]=_0x35d3a3,this[_0x511b7f(0x196)]=_0x58e58,this[_0x511b7f(0x231)]=_0x241364,this[_0x511b7f(0x23d)]=_0x493892,this[_0x511b7f(0x165)]=_0x4ea9c5,this['_univerInstanceService']=_0xe21636,this[_0x511b7f(0x2fb)]=_0x49e07b,this[_0x511b7f(0x33c)]=_0x257bd3,C(this,_0x511b7f(0x29e),!0x1),C(this,_0x511b7f(0x2b2),!0x1),C(this,'_cursorInfo$',new r[(_0x511b7f(0x2da))](new Map())),C(this,_0x511b7f(0x11c),this['_cursorInfo$'][_0x511b7f(0x175)]()),C(this,_0x511b7f(0xef),new r[(_0x511b7f(0x2da))]([])),C(this,_0x511b7f(0x114),this[_0x511b7f(0xef)][_0x511b7f(0x33d)]((0x0,r[_0x511b7f(0x2fe)])(0x12c))),C(this,_0x511b7f(0x202),(0x0,t[_0x511b7f(0xe8)])((_0x4c5b3b,_0x404bc8)=>{const _0xea48bc=_0x511b7f;let _0x4c2734={'eventID':h[_0xea48bc(0x1e9)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0xea48bc(0x196)][_0xea48bc(0x112)](),'selection':(0x0,_['serializeRangeWithSheet'])(_0x4c5b3b,_0x404bc8['range'])}};this[_0xea48bc(0x196)][_0xea48bc(0x183)](_0x4c2734,this[_0xea48bc(0x132)]);},0x64));}['dispose'](){const _0x4d6b7c=_0xbf25c6;super['dispose'](),this[_0x4d6b7c(0x2d2)][_0x4d6b7c(0x1e2)](new Map()),this[_0x4d6b7c(0x2d2)][_0x4d6b7c(0x11b)](),this[_0x4d6b7c(0xef)][_0x4d6b7c(0x1e2)]([]),this['_roomMembers$'][_0x4d6b7c(0x11b)]();}[_0xbf25c6(0x173)](){const _0x336106=_0xbf25c6;this[_0x336106(0x2b2)]||(this['_init']=!0x0,this[_0x336106(0x196)][_0x336106(0x110)][_0x336106(0x33d)]((0x0,r[_0x336106(0x1a8)])(this[_0x336106(0x187)]))[_0x336106(0x230)](_0x34797c=>{const _0x5064ea=_0x336106;_0x34797c===e['SessionStatus'][_0x5064ea(0x2af)]?this[_0x5064ea(0x37a)]():this[_0x5064ea(0x21b)]();}),this[_0x336106(0x196)][_0x336106(0x10d)][_0x336106(0x33d)]((0x0,r[_0x336106(0x1a8)])(this[_0x336106(0x187)]))[_0x336106(0x230)](_0x282f81=>{const _0x945ddc=_0x336106;let _0x20a5a0=_0x282f81[_0x945ddc(0x246)];_0x20a5a0===h[_0x945ddc(0x1e9)][_0x945ddc(0x225)]&&this[_0x945ddc(0x2c1)](_0x282f81),_0x20a5a0===h[_0x945ddc(0x1e9)][_0x945ddc(0xe5)]&&this[_0x945ddc(0x11a)](_0x282f81);}),this[_0x336106(0x2de)](),this[_0x336106(0x154)](this[_0x336106(0x2fb)][_0x336106(0x2ed)](_0x34fe2e=>{const _0x570a15=_0x336106;if(this[_0x570a15(0x29e)]&&_0x34fe2e['id']===u[_0x570a15(0x309)]['id']&&_0x34fe2e['params'][_0x570a15(0x1e3)]===this[_0x570a15(0x132)]){let _0x19010a=_0x34fe2e[_0x570a15(0x159)];this[_0x570a15(0x202)](_0x19010a[_0x570a15(0x340)],_0x19010a[_0x570a15(0x1a3)][0x0]);}})));}[_0xbf25c6(0x2c1)](_0x1d6bfd){const _0x582721=_0xbf25c6;var _0x278262,_0xd24678;let {memberID:_0x9f15e8,selection:_0x3b8f20}=_0x1d6bfd[_0x582721(0x350)],{sheetName:_0x44b7a1,range:_0x3aacb0}=(0x0,_[_0x582721(0x1df)])(_0x3b8f20),_0x29bbaf={'name':(_0x278262=(_0xd24678=this[_0x582721(0x165)]['getMember'](this['unitID'],_0x9f15e8))==null?void 0x0:_0xd24678[_0x582721(0x2f1)])==null?'Unknown\x20user':_0x278262,'range':this[_0x582721(0x182)](_0x44b7a1,_0x3aacb0),'sheetID':_0x44b7a1,'color':this['_colorAssignService'][_0x582721(0x33f)](_0x9f15e8),'selection':_0x3b8f20},_0x54a129=this['cursorInfo'];_0x54a129[_0x582721(0x1fb)](_0x9f15e8,_0x29bbaf),this['_cursorInfo$'][_0x582721(0x1e2)](_0x54a129);}[_0xbf25c6(0x11a)](_0x32f08b){const _0x53782e=_0xbf25c6;let {memberID:_0x45bee8}=_0x32f08b['data'],_0x4a02f9=this[_0x53782e(0x22b)];_0x4a02f9[_0x53782e(0x151)](_0x45bee8),this[_0x53782e(0x2d2)]['next'](_0x4a02f9);}['_getMergeRange'](_0x2d1771,_0x40ccf0){const _0x2cb1e3=_0xbf25c6;var _0x1b2174;let _0x21a03e=(_0x1b2174=this['_univerInstanceService'][_0x2cb1e3(0x1e8)](this[_0x2cb1e3(0x132)]))==null||(_0x1b2174=_0x1b2174[_0x2cb1e3(0x284)](_0x2d1771))==null?void 0x0:_0x1b2174['getMergeData']();return(_0x21a03e==null?void 0x0:_0x21a03e[_0x2cb1e3(0x1de)](_0x1f9f99=>t[_0x2cb1e3(0x241)][_0x2cb1e3(0x1f2)](_0x1f9f99,_0x40ccf0)))||_0x40ccf0;}[_0xbf25c6(0x2de)](){const _0x56fb7c=_0xbf25c6;let _0xa6fd83=new t['DisposableCollection'](),_0x37ca38=se(),_0x136893=()=>{const _0x5c78d9=_0x2506;_0xa6fd83[_0x5c78d9(0x130)]();let _0x340f4d=(_0x417812,_0x140976,_0x247c93,_0x55e29c)=>{const _0x1bf567=_0x5c78d9;let _0x6e6eeb=[];switch(_0x417812['id']){case u[_0x1bf567(0x16d)][_0x1bf567(0x294)]:_0x6e6eeb=(0x0,u[_0x1bf567(0x363)])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)]['DeleteRangeMoveUpCommandId']:_0x6e6eeb=(0x0,u[_0x1bf567(0xf6)])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)]['InsertColCommandId']:_0x6e6eeb=(0x0,u['handleInsertCol'])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)][_0x1bf567(0xee)]:_0x6e6eeb=(0x0,u[_0x1bf567(0x265)])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)]['InsertRangeMoveRightCommandId']:_0x6e6eeb=(0x0,u['handleInsertRangeMoveRight'])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)][_0x1bf567(0x292)]:_0x6e6eeb=(0x0,u[_0x1bf567(0x270)])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)]['MoveRangeCommandId']:_0x6e6eeb=(0x0,u['handleMoveRange'])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)]['RemoveColCommandId']:_0x6e6eeb=(0x0,u['handleIRemoveCol'])(_0x417812,_0x55e29c);break;case u['EffectRefRangId'][_0x1bf567(0x283)]:_0x6e6eeb=(0x0,u[_0x1bf567(0xf9)])(_0x417812,_0x55e29c);break;}let _0x401ff6=(0x0,u[_0x1bf567(0x122)])(_0x6e6eeb,_0x55e29c),_0x1c39d4=this[_0x1bf567(0x22b)][_0x1bf567(0x277)](_0x140976);if(_0x1c39d4&&_0x401ff6){let _0x5ce53f={..._0x1c39d4,'range':_0x401ff6};this[_0x1bf567(0x22b)][_0x1bf567(0x1fb)](_0x140976,_0x5ce53f),_0x37ca38(()=>{const _0x56af83=_0x1bf567;let _0x326566=this[_0x56af83(0x33c)][_0x56af83(0x312)](_0x401ff6,_0x1deedd=>(_0x326566[_0x56af83(0x130)](),_0x340f4d(_0x1deedd,_0x140976,_0x247c93,_0x401ff6)));_0xa6fd83[_0x56af83(0x1ab)](_0x326566);});}return{'redos':[],'undos':[]};};this[_0x5c78d9(0x22b)][_0x5c78d9(0x1a7)]((_0x20913a,_0x44a26b)=>{const _0x233c36=_0x5c78d9;let {range:_0x2a3f26,sheetID:_0x36f973}=_0x20913a,_0x49360a=this[_0x233c36(0x33c)][_0x233c36(0x312)](_0x2a3f26,_0xea1841=>(_0x49360a['dispose'](),_0x340f4d(_0xea1841,_0x44a26b,_0x36f973,_0x2a3f26)));_0xa6fd83[_0x233c36(0x1ab)](_0x49360a);});};this[_0x56fb7c(0x154)]((0x0,t[_0x56fb7c(0x2f0)])(this[_0x56fb7c(0x2d2)][_0x56fb7c(0x230)](()=>{_0x136893();})));}[_0xbf25c6(0x37a)](){const _0x9e65f7=_0xbf25c6;var _0x1d2dcb,_0x42355e;if(this[_0x9e65f7(0x29e)]=!0x0,((_0x1d2dcb=this[_0x9e65f7(0x355)][_0x9e65f7(0x12b)]())==null?void 0x0:_0x1d2dcb[_0x9e65f7(0x191)]())!==this[_0x9e65f7(0x132)])return;let _0x299993=(_0x42355e=this[_0x9e65f7(0x231)][_0x9e65f7(0x277)](u[_0x9e65f7(0x298)])['getCurrentSelections']())==null?void 0x0:_0x42355e[0x0],_0x1f8cf8=this['_univerInstanceService'][_0x9e65f7(0x247)](t['UniverInstanceType'][_0x9e65f7(0x18d)])[_0x9e65f7(0x2c6)]();_0x299993&&_0x1f8cf8&&this['_updateLocalCursor'](_0x1f8cf8['getSheetId'](),_0x299993);}[_0xbf25c6(0x21b)](){this['_online']=!0x1;}};F=T([w(0x2,(0x0,t['Inject'])(t[_0xbf25c6(0x1f5)])),w(0x3,(0x0,t[_0xbf25c6(0x142)])(j)),w(0x4,(0x0,t[_0xbf25c6(0x142)])(e[_0xbf25c6(0xe1)])),w(0x5,t['IUniverInstanceService']),w(0x6,t['ICommandService']),w(0x7,(0x0,t[_0xbf25c6(0x142)])(u[_0xbf25c6(0x139)]))],F);let I=class extends t[_0xbf25c6(0x266)]{constructor(_0x5154f9,_0x30e25d,_0x59f95c){const _0x3b4b98=_0xbf25c6;super(),this['_univerInstanceService']=_0x5154f9,this[_0x3b4b98(0x231)]=_0x30e25d,this['_collabSessionService']=_0x59f95c,C(this,_0x3b4b98(0x2b5),new Map()),C(this,_0x3b4b98(0xf4),new r[(_0x3b4b98(0x339))]()),this[_0x3b4b98(0x2b2)]();}[_0xbf25c6(0x130)](){const _0x37e2db=_0xbf25c6;super[_0x37e2db(0x130)](),this[_0x37e2db(0xf4)]['complete'](),this[_0x37e2db(0x2b5)][_0x37e2db(0x1a7)](_0x574281=>_0x574281[_0x37e2db(0x130)]());}[_0xbf25c6(0x18c)](_0x12d16f){const _0x47edfb=_0xbf25c6;return this['_entities'][_0x47edfb(0x17f)](_0x12d16f)?this['_entities'][_0x47edfb(0x277)](_0x12d16f)[_0x47edfb(0x11c)]:this[_0x47edfb(0xf4)][_0x47edfb(0x33d)]((0x0,r[_0x47edfb(0xd7)])(_0x49b93c=>_0x49b93c[_0x47edfb(0x132)]===_0x12d16f),(0x0,r[_0x47edfb(0x258)])(_0x27ded0=>_0x27ded0['cursorInfo$']));}[_0xbf25c6(0x2b2)](){const _0x22f546=_0xbf25c6;this[_0x22f546(0x355)]['getTypeOfUnitAdded$'](t[_0x22f546(0xd6)][_0x22f546(0x18d)])[_0x22f546(0x33d)]((0x0,r[_0x22f546(0x1a8)])(this['dispose$']))[_0x22f546(0x230)](async _0x497741=>{const _0x5a9db0=_0x22f546;let _0x497c47=_0x497741[_0x5a9db0(0x2bc)][_0x5a9db0(0x191)](),_0x572bde=await this[_0x5a9db0(0x31b)](_0x497c47);this[_0x5a9db0(0xf4)][_0x5a9db0(0x1e2)](_0x572bde),this[_0x5a9db0(0x2b5)]['set'](_0x497c47,_0x572bde);}),this['_univerInstanceService'][_0x22f546(0x171)](t[_0x22f546(0xd6)]['UNIVER_DOC'])['pipe']((0x0,r[_0x22f546(0x1a8)])(this[_0x22f546(0x187)]))[_0x22f546(0x33d)]((0x0,r[_0x22f546(0xd7)])(_0x7cc93a=>!_0x7cc93a['unit'][_0x22f546(0x191)]()[_0x22f546(0x20f)]('__')))['subscribe'](async _0x1f1dc5=>{const _0x56f8eb=_0x22f546;let {unit:_0x4b18f3}=_0x1f1dc5,_0x456f99=_0x4b18f3[_0x56f8eb(0x191)](),_0x4c746f=await this[_0x56f8eb(0x124)](_0x456f99);this[_0x56f8eb(0xf4)][_0x56f8eb(0x1e2)](_0x4c746f),this[_0x56f8eb(0x2b5)]['set'](_0x456f99,_0x4c746f);}),(0x0,r[_0x22f546(0x32c)])(this[_0x22f546(0x355)][_0x22f546(0x223)](t[_0x22f546(0xd6)][_0x22f546(0x375)]),this[_0x22f546(0x355)]['getTypeOfUnitDisposed$'](t[_0x22f546(0xd6)][_0x22f546(0x18d)]))['pipe']((0x0,r[_0x22f546(0x1a8)])(this[_0x22f546(0x187)]))[_0x22f546(0x230)](_0x55923b=>{const _0x5df6a6=_0x22f546;let _0x415878=_0x55923b['getUnitId'](),_0x4f0988=this[_0x5df6a6(0x2b5)]['get'](_0x415878);_0x4f0988&&(_0x4f0988[_0x5df6a6(0x130)](),this[_0x5df6a6(0x2b5)]['delete'](_0x415878));});}async[_0xbf25c6(0x31b)](_0x262860){const _0x3cb504=_0xbf25c6;let _0xa3bb2=await this[_0x3cb504(0x14d)]['requireSession'](_0x262860),_0x3c1260=this['_injector'][_0x3cb504(0x275)](F,_0x262860,_0xa3bb2);return _0x3c1260[_0x3cb504(0x173)](),_0x3c1260;}async[_0xbf25c6(0x124)](_0x2ac9da){const _0x16d002=_0xbf25c6;let _0x3fa843=await this[_0x16d002(0x14d)][_0x16d002(0x342)](_0x2ac9da),_0x34efc0=this['_injector'][_0x16d002(0x275)](P,_0x2ac9da,_0x3fa843);return _0x34efc0[_0x16d002(0x173)](),_0x34efc0;}};I=T([w(0x0,t[_0xbf25c6(0x1d8)]),w(0x1,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x1f5)])),w(0x2,(0x0,t['Inject'])(e['CollaborationSessionService']))],I);function ce(_0xf23a0f,_0xfa0c48){const _0x301cad=_0xbf25c6;var _0x193f2a,_0x42b6a1,_0x5c6b7f;let {radius:_0x808a33,width:_0x55d83d,height:_0x3e9557}=_0xfa0c48;_0x808a33=(_0x193f2a=_0x808a33)==null?0x0:_0x193f2a,_0x55d83d=(_0x42b6a1=_0x55d83d)==null?0x1e:_0x42b6a1,_0x3e9557=(_0x5c6b7f=_0x3e9557)==null?0x1e:_0x5c6b7f;let _0x399d5f=0x0,_0x5b9683=0x0,_0x167554=0x0;_0x399d5f=_0x5b9683=_0x167554=Math['min'](_0x808a33,_0x55d83d/0x2,_0x3e9557/0x2),_0xf23a0f[_0x301cad(0x179)](),_0xf23a0f['moveTo'](_0x399d5f,0x0),_0xf23a0f[_0x301cad(0x1cb)](_0x55d83d-_0x5b9683,0x0),_0xf23a0f[_0x301cad(0x282)](_0x55d83d-_0x5b9683,_0x5b9683,_0x5b9683,Math['PI']*0x3/0x2,0x0,!0x1),_0xf23a0f[_0x301cad(0x1cb)](_0x55d83d,_0x3e9557-_0x167554),_0xf23a0f[_0x301cad(0x282)](_0x55d83d-_0x167554,_0x3e9557-_0x167554,_0x167554,0x0,Math['PI']/0x2,!0x1),_0xf23a0f['lineTo'](0x0,_0x3e9557),_0xf23a0f[_0x301cad(0x1cb)](0x0,_0x399d5f),_0xf23a0f[_0x301cad(0x282)](_0x399d5f,_0x399d5f,_0x399d5f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xf23a0f[_0x301cad(0x11e)](),_0xfa0c48[_0x301cad(0x11f)]&&(_0xf23a0f[_0x301cad(0x366)](),_0xf23a0f['fillStyle']=_0xfa0c48[_0x301cad(0x11f)],_0xfa0c48[_0x301cad(0x28d)]===_0x301cad(0x1f3)?_0xf23a0f[_0x301cad(0x11f)](_0x301cad(0x1f3)):_0xf23a0f['fill'](),_0xf23a0f[_0x301cad(0x193)]());}var le=class e extends d[_0xbf25c6(0x2d8)]{constructor(_0xcea263,_0x5ceb56){const _0x3bde76=_0xbf25c6;super(_0xcea263,_0x5ceb56),C(this,'color',void 0x0),C(this,_0x3bde76(0x2f8),void 0x0),this['color']=_0x5ceb56==null?void 0x0:_0x5ceb56[_0x3bde76(0x24f)],this[_0x3bde76(0x2f8)]=_0x5ceb56==null?void 0x0:_0x5ceb56['text'];}static[_0xbf25c6(0x2dc)](_0x2a1d79,_0x2dad17){const _0x458659=_0xbf25c6;let {text:_0x14f97d,color:_0x375638}=_0x2dad17;_0x2a1d79[_0x458659(0x366)](),_0x2a1d79['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x393981=_0x2a1d79['measureText'](_0x14f97d)[_0x458659(0x1b6)];if(ce(_0x2a1d79,{'height':0x14,'radius':0x4,'width':Math[_0x458659(0x1d9)](_0x393981+0x8,0xc8),'fill':_0x375638,'evented':!0x1}),_0x2a1d79['fillStyle']=_0x458659(0x221),_0x393981>0xc0){let _0x4822eb='',_0x3e8f4b=0x0;for(let _0x408870 of _0x14f97d){let _0x27525f=_0x2a1d79[_0x458659(0x354)](_0x408870)[_0x458659(0x1b6)];if(_0x3e8f4b+_0x27525f<=0xc0-_0x2a1d79['measureText'](_0x458659(0x115))['width'])_0x4822eb+=_0x408870,_0x3e8f4b+=_0x27525f;else{_0x4822eb+=_0x458659(0x115);break;}}_0x2a1d79[_0x458659(0x14e)](_0x4822eb,0x4,0xf);}else _0x2a1d79[_0x458659(0x14e)](_0x14f97d,0x4,0xf);_0x2a1d79[_0x458659(0x193)]();}[_0xbf25c6(0x30c)](_0x4f98d2){const _0x1f8f73=_0xbf25c6;e[_0x1f8f73(0x2dc)](_0x4f98d2,this);}};const L=_0xbf25c6(0x332);var ue=class{constructor(_0x2b2617,_0x4b6f68,_0x544221,_0x2e1174){const _0x454ae8=_0xbf25c6;this[_0x454ae8(0x373)]=_0x2b2617,this['_scene']=_0x4b6f68,this[_0x454ae8(0x346)]=_0x544221,this[_0x454ae8(0x16a)]=_0x2e1174,C(this,'_shapes',[]),C(this,'_anchor',null),C(this,_0x454ae8(0xd9),null),C(this,_0x454ae8(0xf0),null),C(this,_0x454ae8(0x267),null),C(this,_0x454ae8(0x2c4),null),this['_render']();}set[_0xbf25c6(0x303)](_0x4fd62c){const _0x328886=_0xbf25c6;_0x4fd62c?(this[_0x328886(0xf0)]&&this['_anchorDot'][_0x328886(0x290)](),this['_textBubble']&&this[_0x328886(0xd9)][_0x328886(0x31c)]()):(this['_anchorDot']&&this[_0x328886(0xf0)][_0x328886(0x31c)](),this[_0x328886(0xd9)]&&this[_0x328886(0xd9)][_0x328886(0x290)]());}[_0xbf25c6(0x130)](){const _0x1782ac=_0xbf25c6;for(let _0x5e12e8 of this[_0x1782ac(0x146)])_0x5e12e8['dispose']();this['_textBubble']&&this[_0x1782ac(0xd9)][_0x1782ac(0x130)](),this['_anchorDot']&&this[_0x1782ac(0xf0)][_0x1782ac(0x130)](),this[_0x1782ac(0x200)]&&this[_0x1782ac(0x200)][_0x1782ac(0x130)](),this[_0x1782ac(0x2c4)]&&this[_0x1782ac(0x2c4)]();}[_0xbf25c6(0x24e)](){const _0x182550=_0xbf25c6;let {_docSkeleton:_0x4db983,_document:_0x4dd758}=this,{color:_0x4feb84,name:_0x3e1d60,ranges:_0x5f0215}=this['_cursor'],_0x5a5cee=_0x4dd758[_0x182550(0x1f0)](),{docsLeft:_0x10a9e8,docsTop:_0x3141b5}=_0x5a5cee,_0x58bbe7=new p[(_0x182550(0x1cc))](_0x5a5cee,_0x4db983);for(let {startOffset:_0x327d1b,endOffset:_0x4bb998,rangeType:_0x46f076,segmentId:_0x529ae8,segmentPage:_0x4d757d,collapsed:_0x5d14a5,isActive:_0x4e46c3}of _0x5f0215){let _0x48e347=_0x4db983[_0x182550(0x1b8)](_0x327d1b,!0x0,_0x529ae8,_0x4d757d),_0x58e9ed=_0x4db983[_0x182550(0x1b8)](_0x4bb998,!0x0,_0x529ae8,_0x4d757d);if(_0x58e9ed==null&&(_0x58e9ed=_0x4db983[_0x182550(0x1b8)](_0x4bb998-0x1,!0x1,_0x529ae8,_0x4d757d)),_0x4e46c3){let {contentBoxPointGroup:_0x58921d}=_0x58bbe7[_0x182550(0x17d)](_0x58e9ed,_0x58e9ed);if(_0x58921d[_0x182550(0x217)]===0x0)continue;this[_0x182550(0x156)](_0x4feb84,_0x58921d,_0x10a9e8,_0x3141b5,_0x3e1d60),this[_0x182550(0x2c4)]=this['_handleHover']();}if(_0x48e347&&_0x58e9ed){if(_0x46f076===t['DOC_RANGE_TYPE']['RECT']){var _0x4ec0cc;let {pointGroup:_0x4e3b54}=(_0x4ec0cc=new p[(_0x182550(0x273))](_0x5a5cee,_0x4db983)[_0x182550(0x17d)](_0x48e347,_0x58e9ed))==null?{}:_0x4ec0cc;if(_0x4e3b54==null||_0x4e3b54[_0x182550(0x217)]===0x0)continue;this['_drawRectRange'](_0x4feb84,_0x4e3b54,_0x10a9e8,_0x3141b5);}else{if(!_0x5d14a5){let {borderBoxPointGroup:_0x579feb}=_0x58bbe7[_0x182550(0x17d)](_0x48e347,_0x58e9ed);if(_0x579feb[_0x182550(0x217)]===0x0)continue;this[_0x182550(0x351)](_0x4feb84,_0x579feb,_0x10a9e8,_0x3141b5);}}}}}[_0xbf25c6(0x156)](_0x3e3139,_0x283714,_0x31271b,_0x212a65,_0x43d30f){const _0x3898b5=_0xbf25c6;let {left:_0x107db6,top:_0x2f9528,height:_0x2571d3}=this['_getAnchorBounding'](_0x283714),_0x184dd9=1.5/this[_0x3898b5(0x274)](),_0x2e010d=new d['Rect'](L+(0x0,t[_0x3898b5(0x1ef)])(0x6),{'left':_0x107db6+_0x31271b-_0x184dd9,'top':_0x2f9528+_0x212a65,'height':_0x2571d3,'width':1.5,'fill':_0x3e3139||(0x0,d[_0x3898b5(0x250)])(t[_0x3898b5(0x224)]['black'],0x0),'strokeWidth':_0x184dd9,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this['_anchor']=_0x2e010d,this['_scene'][_0x3898b5(0x288)](_0x2e010d,p[_0x3898b5(0x336)]);let _0x2d0709=new d[(_0x3898b5(0x1c4))](L+(0x0,t[_0x3898b5(0x1ef)])(0x6),{'left':_0x107db6+_0x31271b-_0x184dd9,'top':_0x2f9528+_0x212a65-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x3e3139||(0x0,d[_0x3898b5(0x250)])(t['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x3e3139||(0x0,d[_0x3898b5(0x250)])(t[_0x3898b5(0x224)][_0x3898b5(0x1c7)],0x0),'evented':!0x1});this[_0x3898b5(0xf0)]=_0x2d0709,this[_0x3898b5(0x349)][_0x3898b5(0x288)](_0x2d0709,p[_0x3898b5(0x336)]);let _0x498042=new le(L+(0x0,t['generateRandomId'])(0x6),{'left':_0x107db6+_0x31271b-_0x184dd9,'top':_0x2f9528+_0x212a65-0x14,'text':_0x43d30f,'color':_0x3e3139});this[_0x3898b5(0xd9)]=_0x498042,this[_0x3898b5(0x349)]['addObject'](_0x498042,p[_0x3898b5(0x336)]),this['_hover']=!0x1;}[_0xbf25c6(0x149)](){const _0x1119e5=_0xbf25c6;let _0xfdaf40=this[_0x1119e5(0x200)][_0x1119e5(0x356)][_0x1119e5(0xf1)](()=>{this['_hover']=!0x0;}),_0x2e561e=this[_0x1119e5(0x200)][_0x1119e5(0x135)][_0x1119e5(0xf1)](()=>{const _0x2769c0=_0x1119e5;this[_0x2769c0(0x267)]&&clearTimeout(this[_0x2769c0(0x267)]),this[_0x2769c0(0x267)]=setTimeout(()=>{const _0x44d188=_0x2769c0;this[_0x44d188(0x303)]=!0x1;},0x7d0);});return()=>{const _0x39fa44=_0x1119e5;_0xfdaf40[_0x39fa44(0x1f6)](),_0x2e561e[_0x39fa44(0x1f6)]();};}[_0xbf25c6(0x351)](_0x1f560c,_0x1723e4,_0x5e4dd3,_0x23e581){const _0xb38840=_0xbf25c6;let _0x23cf15=0.2,_0x4d1734=new t[(_0xb38840(0x141))](_0x1f560c)[_0xb38840(0x17e)](_0x23cf15)['toRgbString'](),_0x3f67bb=new d[(_0xb38840(0x369))](_0xb38840(0x13d)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x1723e4,'fill':_0x4d1734||(0x0,d['getColor'])(t[_0xb38840(0x224)][_0xb38840(0x1c7)],_0x23cf15),'left':_0x5e4dd3,'top':_0x23e581,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xb38840(0x146)][_0xb38840(0x1b3)](_0x3f67bb),this['_scene'][_0xb38840(0x288)](_0x3f67bb,p[_0xb38840(0x336)]);}[_0xbf25c6(0x2ab)](_0x5695bd,_0x41eb3b,_0x6de7ee,_0xb76989){const _0x199823=_0xbf25c6;let _0x115f7c=0.2,_0x2cff6b=new t[(_0x199823(0x141))](_0x5695bd)[_0x199823(0x17e)](_0x115f7c)[_0x199823(0x1cd)](),_0x43106c=new d['RegularPolygon'](_0x199823(0x12e)+(0x0,t[_0x199823(0x1ef)])(0x6),{'pointsGroup':_0x41eb3b,'fill':_0x2cff6b||(0x0,d['getColor'])(t['COLORS'][_0x199823(0x1c7)],_0x115f7c),'left':_0x6de7ee,'top':_0xb76989,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x199823(0x1b3)](_0x43106c),this[_0x199823(0x349)][_0x199823(0x288)](_0x43106c,p[_0x199823(0x336)]);}['_getAnchorBounding'](_0x432683){let _0x3571f9=_0x432683[0x0],_0x28aebe=_0x3571f9[0x0],_0x4a4777=_0x3571f9[0x2],{x:_0x13caaa,y:_0xa38f64}=_0x28aebe,{x:_0x4c4326,y:_0x4305c5}=_0x4a4777;return{'left':_0x13caaa,'top':_0xa38f64,'width':_0x4c4326-_0x13caaa,'height':_0x4305c5-_0xa38f64};}[_0xbf25c6(0x274)](){const _0x553328=_0xbf25c6;let {scaleX:_0x2948b9,scaleY:_0x23998}=this[_0x553328(0x349)][_0x553328(0x23c)]();return Math[_0x553328(0x1f7)](_0x2948b9,_0x23998);}};let R=class extends t[_0xbf25c6(0x266)]{constructor(_0x32e144,_0xd537ba,_0x3968b1,_0x10fd1b,_0xb0dde8){const _0x416cae=_0xbf25c6;super(),this[_0x416cae(0x15e)]=_0x32e144,this[_0x416cae(0x20a)]=_0xd537ba,this[_0x416cae(0x376)]=_0x3968b1,this['_commandService']=_0x10fd1b,this[_0x416cae(0x236)]=_0xb0dde8,C(this,_0x416cae(0x27a),[]),C(this,_0x416cae(0x214),[]),this['_init']();}['_init'](){const _0xa684ea=_0xbf25c6;let _0x3abdb5=this[_0xa684ea(0x15e)][_0xa684ea(0x1e3)],_0x2d219e=this[_0xa684ea(0x20a)];this[_0xa684ea(0x154)]((0x0,r[_0xa684ea(0x2c8)])([this[_0xa684ea(0x376)][_0xa684ea(0x18c)](_0x3abdb5),this[_0xa684ea(0x236)][_0xa684ea(0xe4)]])[_0xa684ea(0x33d)]((0x0,i[_0xa684ea(0x2b3)])(([_0x4ef9d8,_0x1b12bd])=>({'skeleton':_0x2d219e[_0xa684ea(0x1eb)](),'cursors':[..._0x4ef9d8[_0xa684ea(0x1a0)]()][_0xa684ea(0x2e7)](_0x38fc79=>({..._0x38fc79,'color':this['_themeService'][_0xa684ea(0x111)](_0x38fc79[_0xa684ea(0x24f)])}))})))[_0xa684ea(0x230)](_0x3236d1=>{const _0x1901c4=_0xa684ea;if(this['_removeCollabCursors'](),_0x3236d1){let {skeleton:_0x408eb0,cursors:_0x351a71}=_0x3236d1;this[_0x1901c4(0x104)](_0x408eb0,_0x351a71);}})),this[_0xa684ea(0x1c5)](),this[_0xa684ea(0x345)]();}[_0xbf25c6(0x104)](_0x2b1d96,_0x11b352){const _0x3ef480=_0xbf25c6;let {scene:_0x59f0ab,mainComponent:_0x5eb8b3}=this[_0x3ef480(0x15e)],_0x135bbd=_0x11b352[_0x3ef480(0x2b3)](_0x430465=>new ue(_0x430465,_0x59f0ab,_0x2b1d96,_0x5eb8b3));this[_0x3ef480(0x27a)]=_0x135bbd,this[_0x3ef480(0x214)]=_0x11b352;}[_0xbf25c6(0x1dc)](){const _0x5967c7=_0xbf25c6;this[_0x5967c7(0x1a4)]();let {scene:_0x55847c,mainComponent:_0x256025}=this[_0x5967c7(0x15e)],_0x1565f=this[_0x5967c7(0x20a)][_0x5967c7(0x1eb)](),_0x1a1a5a=this['_cursors'][_0x5967c7(0x2b3)](_0x22d678=>new ue(_0x22d678,_0x55847c,_0x1565f,_0x256025));this[_0x5967c7(0x27a)]=_0x1a1a5a;}[_0xbf25c6(0x1a4)](){const _0x3ec549=_0xbf25c6;this[_0x3ec549(0x27a)][_0x3ec549(0x1a7)](_0x232b67=>_0x232b67[_0x3ec549(0x130)]()),this[_0x3ec549(0x27a)]=[];}[_0xbf25c6(0x345)](){const _0x2d711f=_0xbf25c6;let _0x2f9917=[p[_0x2d711f(0x293)]['id']];this['disposeWithMe'](this[_0x2d711f(0x2fb)][_0x2d711f(0x2ed)](_0xe94e88=>{const _0x5ed735=_0x2d711f;_0x2f9917[_0x5ed735(0x30d)](_0xe94e88['id'])&&_0xe94e88[_0x5ed735(0x159)]['unitId']===this[_0x5ed735(0x15e)][_0x5ed735(0x1e3)]&&this[_0x5ed735(0x1dc)]();}));}[_0xbf25c6(0x1c5)](){const _0x1e9d0c=_0xbf25c6;this[_0x1e9d0c(0x154)]((0x0,t[_0x1e9d0c(0x358)])(this[_0x1e9d0c(0x15e)]['engine'][_0x1e9d0c(0x326)])[_0x1e9d0c(0x33d)]((0x0,i['filter'])(_0x55bb16=>_0x55bb16[_0x1e9d0c(0x1ae)]===d['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1e9d0c(0x188)]),(0x0,i['throttleTime'])(0x10))[_0x1e9d0c(0x230)](()=>{const _0x514036=_0x1e9d0c;this[_0x514036(0x1dc)]();}));}};R=T([w(0x1,(0x0,t['Inject'])(g['DocSkeletonManagerService'])),w(0x2,(0x0,t[_0xbf25c6(0x142)])(I)),w(0x3,t[_0xbf25c6(0x245)]),w(0x4,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0xfc)]))],R);var z=class extends d['Shape']{constructor(_0x3d041c,_0x3936a3){const _0x2658a7=_0xbf25c6;if(super(_0x3d041c,_0x3936a3),C(this,_0x2658a7(0x13b),void 0x0),C(this,'_hovered',!0x1),C(this,'_range',void 0x0),C(this,_0x2658a7(0x19b),''),C(this,'_labelPosition','top'),C(this,_0x2658a7(0x2e3),void 0x0),C(this,_0x2658a7(0x17b),void 0x0),C(this,_0x2658a7(0x152),void 0x0),C(this,_0x2658a7(0x24b),0x4),C(this,'_blinkTimer',void 0x0),C(this,_0x2658a7(0x2c9),void 0x0),C(this,_0x2658a7(0x2e6),!0x0),C(this,_0x2658a7(0x1ec),0x0),_0x3936a3){var _0xa8f903;if(this[_0x2658a7(0x31a)](_0x3936a3),_0x3936a3[_0x2658a7(0x299)]&&((_0xa8f903=_0x3936a3['highlightSecond'])==null?this['_highlightSecond']:_0xa8f903)){var _0x5828e4;this['_startBlinking']((_0x5828e4=_0x3936a3[_0x2658a7(0x365)])==null?this[_0x2658a7(0x24b)]:_0x5828e4);}}this['onPointerEnter$'][_0x2658a7(0xf1)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2658a7(0x135)][_0x2658a7(0xf1)](()=>this[_0x2658a7(0x31a)]({'hovered':!0x1}));}[_0xbf25c6(0x144)](_0x2ab9f5){this['_offsetY']=_0x2ab9f5;}[_0xbf25c6(0x31a)](_0x5cff87){const _0x14b738=_0xbf25c6;var _0x3d069a,_0x103e1b,_0x1a758c,_0x37ed37,_0x3656e7,_0x23c169,_0x14f941;this[_0x14b738(0x13b)]=(_0x3d069a=_0x5cff87[_0x14b738(0x24f)])==null?this[_0x14b738(0x13b)]:_0x3d069a,this[_0x14b738(0x35d)]=(_0x103e1b=_0x5cff87[_0x14b738(0x1bf)])==null?this['_hovered']:_0x103e1b,this[_0x14b738(0x2b0)]=(_0x1a758c=_0x5cff87['range'])==null?this['_range']:_0x1a758c,this['_name']=(_0x37ed37=_0x5cff87[_0x14b738(0x2f1)])==null?this[_0x14b738(0x19b)]:_0x37ed37,this[_0x14b738(0x2a6)]=(_0x3656e7=_0x5cff87[_0x14b738(0x1be)])==null?this[_0x14b738(0x2a6)]:_0x3656e7,this[_0x14b738(0x2e3)]=(_0x23c169=_0x5cff87[_0x14b738(0x311)])==null?this['_backgroundColor']:_0x23c169,this['_showText']=(_0x14f941=_0x5cff87['showText'])==null?this[_0x14b738(0x17b)]:_0x14f941,_0x5cff87['highlightSecond']!==void 0x0&&(this[_0x14b738(0x24b)]=_0x5cff87[_0x14b738(0x365)]),_0x5cff87[_0x14b738(0x299)]!==void 0x0&&(this[_0x14b738(0x152)]=_0x5cff87[_0x14b738(0x299)]),_0x5cff87[_0x14b738(0x161)]!==void 0x0&&(this['_offsetY']=_0x5cff87['offsetY']),this['transformByState']({'width':_0x5cff87[_0x14b738(0x1b6)],'height':_0x5cff87['height']});}[_0xbf25c6(0x2e4)](_0x103a7e){const _0x12b521=_0xbf25c6;let {row:_0x100712,column:_0x45ff2f}=_0x103a7e;if(_0x100712>=this['_range'][_0x12b521(0x35e)]&&_0x100712<=this[_0x12b521(0x2b0)][_0x12b521(0xfa)]&&_0x45ff2f>=this['_range'][_0x12b521(0x1f9)]&&_0x45ff2f<=this[_0x12b521(0x2b0)][_0x12b521(0x310)]){this[_0x12b521(0x31a)]({'hovered':!0x0});return;}this[_0x12b521(0x31a)]({'hovered':!0x1});}[_0xbf25c6(0x1c3)](_0x5551af){const _0x1ba2aa=_0xbf25c6;this['_stopBlinking'](),this[_0x1ba2aa(0x2e6)]=!0x0,this[_0x1ba2aa(0x2c9)]=window[_0x1ba2aa(0xe6)](()=>{const _0x2b1adf=_0x1ba2aa;this[_0x2b1adf(0x2e6)]=!this[_0x2b1adf(0x2e6)],this['makeDirty'](!0x0);},0x1f4),this['_blinkTimer']=window[_0x1ba2aa(0x18f)](()=>{const _0x363b5d=_0x1ba2aa;this[_0x363b5d(0x313)](),this[_0x363b5d(0x2e6)]=!0x0,this[_0x363b5d(0x315)](!0x0);},_0x5551af*0x3e8);}[_0xbf25c6(0x313)](){const _0x19998c=_0xbf25c6;this['_blinkIntervalTimer']&&(window[_0x19998c(0x257)](this[_0x19998c(0x2c9)]),this['_blinkIntervalTimer']=void 0x0),this['_blinkTimer']&&(window[_0x19998c(0x36a)](this[_0x19998c(0x2c2)]),this['_blinkTimer']=void 0x0);}[_0xbf25c6(0x140)](_0x33ad25){return!0x1;}[_0xbf25c6(0x130)](){const _0x31af15=_0xbf25c6;this[_0x31af15(0x313)](),super[_0x31af15(0x130)]();}['_draw'](_0x581bdc){const _0x171a3f=_0xbf25c6;let _0x21867a=this[_0x171a3f(0x13b)],_0x3f205f=this[_0x171a3f(0x2e3)];if(this[_0x171a3f(0x152)]&&!this[_0x171a3f(0x2e6)]&&(_0x21867a=this[_0x171a3f(0x249)](this[_0x171a3f(0x13b)]),_0x3f205f=this[_0x171a3f(0x2e3)]?this['_getLighterColor'](this[_0x171a3f(0x2e3)]):void 0x0),d[_0x171a3f(0x1c4)]['drawWith'](_0x581bdc,{'width':this[_0x171a3f(0x1b6)],'height':this[_0x171a3f(0x2fc)],'strokeWidth':this[_0x171a3f(0x2ec)]||1.5,'stroke':_0x21867a,'evented':!0x1,'fill':_0x3f205f}),this[_0x171a3f(0x35d)]||this['_showText']){var _0x3f6e6a;_0x581bdc[_0x171a3f(0x366)](),_0x581bdc[_0x171a3f(0x2a5)](0x1,0x0,0x0,0x1,this[_0x171a3f(0x1b6)],(this[_0x171a3f(0x2a6)]===_0x171a3f(0x118)?0x0:-0x14)+((_0x3f6e6a=this[_0x171a3f(0x1ec)])==null?0x0:_0x3f6e6a)),le[_0x171a3f(0x2dc)](_0x581bdc,{'text':this[_0x171a3f(0x19b)],'color':_0x21867a}),_0x581bdc[_0x171a3f(0x193)]();}}[_0xbf25c6(0x249)](_0x5e5f4a){const _0x1e20e4=_0xbf25c6;return _0x5e5f4a[_0x1e20e4(0x20f)]('#')?'rgba('+Number[_0x1e20e4(0x103)](_0x5e5f4a['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x1e20e4(0x103)](_0x5e5f4a['slice'](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x5e5f4a['slice'](0x5,0x7),0x10)+_0x1e20e4(0xf8):_0x5e5f4a[_0x1e20e4(0x20f)](_0x1e20e4(0x271))?_0x5e5f4a['replace'](/[\d.]+\)$/g,_0x1e20e4(0x362)):_0x5e5f4a['startsWith'](_0x1e20e4(0x2e5))?_0x5e5f4a[_0x1e20e4(0x278)](_0x1e20e4(0x2e5),_0x1e20e4(0x271))[_0x1e20e4(0x278)](')',',\x200.2)'):_0x5e5f4a;}};let B=class extends t[_0xbf25c6(0x266)]{constructor(_0x5d4552,_0x53b810,_0x37318a,_0x1ae0c6){const _0x58cb6e=_0xbf25c6;super(),this['_context']=_0x5d4552,this['_sheetSkeletonManagerService']=_0x53b810,this[_0x58cb6e(0x376)]=_0x37318a,this[_0x58cb6e(0x236)]=_0x1ae0c6,C(this,_0x58cb6e(0x214),new Set()),C(this,'_lastPointer',null),C(this,_0x58cb6e(0x166),null),this['_init']();}['_init'](){const _0x2ed5d4=_0xbf25c6;this[_0x2ed5d4(0x2f3)][_0x2ed5d4(0x2a7)]['pipe']((0x0,i[_0x2ed5d4(0x1a8)])(this[_0x2ed5d4(0x187)]),(0x0,i[_0x2ed5d4(0x258)])(_0x37b1bb=>{const _0x7b980e=_0x2ed5d4;if(_0x37b1bb){let _0x1fa0ad=_0x37b1bb[_0x7b980e(0x1e0)];return(0x0,r['combineLatest'])(this[_0x7b980e(0x376)][_0x7b980e(0x18c)](this[_0x7b980e(0x15e)][_0x7b980e(0x1e3)]),this['_themeService'][_0x7b980e(0xe4)])[_0x7b980e(0x33d)]((0x0,i[_0x7b980e(0x2b3)])(([_0x1b7e3c,_0x9c6ee8])=>{let _0x1e3ebd=new Map();return _0x1b7e3c['forEach']((_0x324671,_0x1cb62e)=>{const _0x3fbf13=_0x2506;if(_0x324671[_0x3fbf13(0x268)]===_0x1fa0ad){let _0x5f37c1={..._0x324671};_0x5f37c1['color']=this['_themeService'][_0x3fbf13(0x111)](_0x324671[_0x3fbf13(0x24f)]),_0x1e3ebd[_0x3fbf13(0x1fb)](_0x1cb62e,_0x5f37c1);}}),{'skeleton':_0x37b1bb,'cursors':_0x1e3ebd};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x2ed5d4(0x230)](({skeleton:_0x2aea28,cursors:_0x31f51a})=>{const _0x5a67a2=_0x2ed5d4;this[_0x5a67a2(0x1a4)](),_0x2aea28&&this[_0x5a67a2(0x104)](_0x2aea28,_0x31f51a);}),this['disposeWithMe'](this[_0x2ed5d4(0x2f3)][_0x2ed5d4(0x2a7)]['pipe']((0x0,i['takeUntil'])(this[_0x2ed5d4(0x187)]))[_0x2ed5d4(0x230)](_0x1f4cae=>{const _0x43c3c3=_0x2ed5d4;var _0x17ba40;if(_0x1f4cae==null)return;(_0x17ba40=this[_0x43c3c3(0x166)])==null||_0x17ba40['unsubscribe'](),this['_pointerMoveDisposable']=null;let {skeleton:_0x8a9422}=_0x1f4cae,{scene:_0x27ed9d}=this[_0x43c3c3(0x15e)];this['_pointerMoveDisposable']=_0x27ed9d[_0x43c3c3(0x2d1)][_0x43c3c3(0xf1)]((0x0,t['debounce'])(_0x2d2223=>{const _0xbb24c8=_0x43c3c3;var _0x198004,_0x5d1cdd;let {offsetX:_0x2fb4dc,offsetY:_0x33e028}=_0x2d2223,{x:_0x2ccb22,y:_0x5aee12}=_0x27ed9d[_0xbb24c8(0x2b7)](d[_0xbb24c8(0x262)]['FromArray']([_0x2fb4dc,_0x33e028])),{scaleX:_0x2ea853,scaleY:_0x1a8e3e}=_0x27ed9d[_0xbb24c8(0x23c)](),_0x2e4f14=_0x27ed9d[_0xbb24c8(0x101)](d['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x58803a=_0x27ed9d[_0xbb24c8(0x1ff)](d['Vector2'][_0xbb24c8(0x27e)]([_0x2ccb22,_0x5aee12]),_0x2e4f14),_0x3eaa8b=_0x8a9422[_0xbb24c8(0x113)](_0x2fb4dc,_0x33e028,_0x2ea853,_0x1a8e3e,_0x58803a);((_0x198004=this[_0xbb24c8(0x317)])==null?void 0x0:_0x198004[_0xbb24c8(0x30e)])===_0x3eaa8b['column']&&((_0x5d1cdd=this['_lastPointer'])==null?void 0x0:_0x5d1cdd['row'])===_0x3eaa8b[_0xbb24c8(0x1b9)]||this[_0xbb24c8(0x214)][_0xbb24c8(0x1a7)](_0xb0f52d=>{const _0x3faca5=_0xbb24c8;_0xb0f52d[_0x3faca5(0x2e4)](_0x3eaa8b);});},0x64));})),this[_0x2ed5d4(0x154)]((0x0,t[_0x2ed5d4(0x2f0)])(()=>{var _0x1874f9;(_0x1874f9=this['_pointerMoveDisposable'])==null||_0x1874f9['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}['_updateCollabCursors'](_0x685879,_0x316428){const _0x4d67d6=_0xbf25c6;let _0x5e1f2e=this['_sheetSkeletonManagerService'][_0x4d67d6(0x22d)]();if(!_0x5e1f2e)return;let _0x19f291=this[_0x4d67d6(0x1a6)]();if(!_0x19f291)return;this[_0x4d67d6(0x214)]['forEach'](_0x5ef0d2=>{_0x5ef0d2['makeDirty']();});let {scene:_0xff9591}=_0x19f291,_0x2a03dd=de(Array[_0x4d67d6(0x240)](_0x316428[_0x4d67d6(0x1a0)]()))[_0x4d67d6(0x2b3)](_0x50483b=>{const _0x152787=_0x4d67d6;let {color:_0x27b497,range:_0x3e2b47,name:_0x33ae8f,selection:_0x451274,sheetID:_0x1f21b4}=_0x50483b,{startColumn:_0x29d265,startRow:_0x6aa454,endColumn:_0x13199b,endRow:_0x2afac9}=_0x3e2b47,_0x4c814f=(0x0,v['getCoordByCell'])(_0x6aa454,_0x29d265,_0xff9591,_0x5e1f2e),_0x1b99b9=(0x0,v['getCoordByCell'])(_0x2afac9,_0x13199b,_0xff9591,_0x5e1f2e),{columnHeaderHeightAndMarginTop:_0xc52d96}=_0x5e1f2e,{startX:_0x15acb6,startY:_0x291770}=_0x4c814f,{endX:_0x47f64b,endY:_0xffe47}=_0x1b99b9,_0x53812e=_0x47f64b-_0x15acb6,_0x4e41d7=_0xffe47-_0x291770;return new z(_0x33ae8f,{'labelPosition':_0x291770-_0xc52d96>=0x14?_0x152787(0x353):'bottom','sheetID':_0x1f21b4,'range':_0x3e2b47,'color':_0x27b497,'name':_0x33ae8f,'selection':_0x451274,'left':_0x15acb6,'top':_0x291770,'width':_0x53812e,'height':_0x4e41d7,'evented':!0x1,'zIndex':0x1389});});_0xff9591[_0x4d67d6(0x26e)](_0x2a03dd,0x1),this[_0x4d67d6(0x214)]=new Set(_0x2a03dd);}[_0xbf25c6(0x1a4)](){const _0x3835a9=_0xbf25c6;var _0x14ee43;(_0x14ee43=this[_0x3835a9(0x214)])==null||_0x14ee43[_0x3835a9(0x1a7)](_0x5d9d12=>_0x5d9d12['dispose']());}[_0xbf25c6(0x1a6)](){const _0x319140=_0xbf25c6;return(0x0,v[_0x319140(0x209)])(this[_0x319140(0x15e)][_0x319140(0x2bc)],this['_context']);}};B=T([w(0x1,(0x0,t[_0xbf25c6(0x142)])(v[_0xbf25c6(0x318)])),w(0x2,(0x0,t[_0xbf25c6(0x142)])(I)),w(0x3,(0x0,t[_0xbf25c6(0x142)])(t['ThemeService']))],B);function de(_0x50f714){const _0x4dbf64=_0xbf25c6;let _0x47389f=new Map();return _0x50f714['forEach'](_0x57cb3d=>{const _0xb5781c=_0x2506;if(_0x47389f[_0xb5781c(0x17f)](_0x57cb3d[_0xb5781c(0x2a1)])){let _0x3fe330=_0x47389f[_0xb5781c(0x277)](_0x57cb3d[_0xb5781c(0x2a1)]);_0x3fe330[_0xb5781c(0x2f1)]+=',\x20'+_0x57cb3d['name'];}else _0x47389f['set'](_0x57cb3d[_0xb5781c(0x2a1)],_0x57cb3d);}),Array[_0x4dbf64(0x240)](_0x47389f[_0x4dbf64(0x1a0)]());}let V=class extends t['Disposable']{constructor(_0x555eea,_0x3c4b29,_0x29470b,_0x58ca8a,_0x3e3ead,_0x30a5a9){const _0x290b65=_0xbf25c6;super(),this[_0x290b65(0x32a)]=_0x555eea,this['_localCacheService']=_0x3c4b29,this[_0x290b65(0xe2)]=_0x29470b,this['_messageService']=_0x58ca8a,this[_0x290b65(0x16f)]=_0x3e3ead,this[_0x290b65(0x1b0)]=_0x30a5a9,this[_0x290b65(0x119)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x55643c=_0xbf25c6;this[_0x55643c(0x154)](this[_0x55643c(0x32a)]['registerBeforeClose'](()=>{const _0x3890e9=_0x55643c;if(this[_0x3890e9(0x1d1)][_0x3890e9(0x34a)][_0x3890e9(0x162)])return this[_0x3890e9(0x1b0)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0xbf25c6(0x105)](){this['disposeWithMe'](this['_collaborationUIEventService']['event$']['subscribe'](_0x555dc3=>{const _0x5470eb=_0x2506;_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x1d7)]&&this[_0x5470eb(0x15f)]['show']({'type':a[_0x5470eb(0x1a9)]['Warning'],'content':this[_0x5470eb(0x1b0)]['t'](_0x5470eb(0x137))}),_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x22f)]&&this[_0x5470eb(0x15f)][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)][_0x5470eb(0x32f)],'content':this[_0x5470eb(0x1b0)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x32d)]&&this['_notificationService']['show']({'title':this[_0x5470eb(0x1b0)]['t'](_0x5470eb(0x27f)),'content':this[_0x5470eb(0x1b0)]['t'](_0x5470eb(0x206)),'type':_0x5470eb(0x2d5),'duration':0x0}),_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x279)]&&this[_0x5470eb(0x15f)][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)][_0x5470eb(0x1db)],'content':this['_localeService']['t'](_0x5470eb(0x37b))+'('+_0x555dc3[_0x5470eb(0x350)]+')'}),_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x333)]&&this['_messageService'][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)]['Warning'],'content':this[_0x5470eb(0x1b0)]['t'](_0x555dc3['data']||'')}),_0x555dc3['id']===e[_0x5470eb(0x2a3)]['SOCKET_FAILED_RETRY']&&this[_0x5470eb(0x15f)][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)][_0x5470eb(0x32f)],'content':this[_0x5470eb(0x1b0)]['t']('collaboration-client-ui.session.will-retry')}),_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x330)]&&this[_0x5470eb(0x15f)][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)][_0x5470eb(0x1db)],'content':this[_0x5470eb(0x1b0)]['t'](_0x5470eb(0x280))}),_0x555dc3['id']===e[_0x5470eb(0x2a3)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5470eb(0x15f)][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)][_0x5470eb(0x1db)],'content':this[_0x5470eb(0x1b0)]['t'](_0x5470eb(0x2a8))});}));}};V=T([w(0x0,n[_0xbf25c6(0x1af)]),w(0x1,e[_0xbf25c6(0x33e)]),w(0x2,(0x0,t[_0xbf25c6(0x142)])(e['CollaborationUIEventService'])),w(0x3,n['IMessageService']),w(0x4,n[_0xbf25c6(0x203)]),w(0x5,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x334)]))],V);const H={};let U=class{constructor(_0x1ab5b8,_0x5ca840){const _0x250b8c=_0xbf25c6;this[_0x250b8c(0x1ad)]=_0x1ab5b8,this[_0x250b8c(0x12a)]=_0x5ca840;}[_0xbf25c6(0x359)](_0x4820a1){const _0x4ef7cd=_0xbf25c6;this['_transformUndoRedoStack'](_0x4820a1),this[_0x4ef7cd(0x148)](_0x4820a1);}[_0xbf25c6(0x2a4)](_0x54ffbb){const _0x541466=_0xbf25c6;let {unitID:_0x58248c}=_0x54ffbb,{redoCache:_0x3bc9d9}=this[_0x541466(0x12a)]['getRenderById'](_0x58248c)[_0x541466(0x31e)](p[_0x541466(0x1fa)])[_0x541466(0x2b9)]();if(_0x3bc9d9[_0x541466(0x217)]===0x0)return _0x54ffbb;let _0x53383c=t[_0x541466(0x1b5)][_0x541466(0x347)](_0x54ffbb['mutations'][0x0]);for(let _0x46ae67=0x0;_0x46ae67<_0x3bc9d9[_0x541466(0x217)];_0x46ae67++){let _0x10f8a3={'id':_0x541466(0xe7),'params':{..._0x3bc9d9[_0x46ae67]}},_0x1a4d74=this[_0x541466(0x1ad)]['transformMutation'](_0x53383c,_0x10f8a3,!0x1);if((0x0,h[_0x541466(0x22c)])(_0x1a4d74))throw _0x1a4d74[_0x541466(0x2d5)];_0x53383c=_0x1a4d74[_0x541466(0x189)];}return{...t['Tools'][_0x541466(0x347)](_0x54ffbb),'mutations':[_0x53383c]};}[_0xbf25c6(0x1a2)](_0xe497d5){const _0x414656=_0xbf25c6;let {unitID:_0x3185cd}=_0xe497d5,_0x3661fc=this[_0x414656(0x12a)][_0x414656(0x304)](_0x3185cd)[_0x414656(0x31e)](p[_0x414656(0x1fa)]),{undoCache:_0x11cf74,redoCache:_0xe8f8fc}=_0x3661fc['getUndoRedoMutationParamsCache']();if(_0x11cf74[_0x414656(0x217)]===0x0||_0xe8f8fc[_0x414656(0x217)]===0x0)return;let _0x4cbc36=[],_0x4db468=[],_0x61f4dc=t[_0x414656(0x1b5)][_0x414656(0x347)](_0xe497d5[_0x414656(0x2e8)][0x0]),_0x869b32=t[_0x414656(0x1b5)][_0x414656(0x347)](_0xe497d5[_0x414656(0x2e8)][0x0]);for(let _0xc0524e=_0x11cf74[_0x414656(0x217)]-0x1;_0xc0524e>=0x0;_0xc0524e--){let _0x5e6518={'id':'doc.mutation.rich-text-editing','params':{..._0x11cf74[_0xc0524e]}},_0x522f8f={'id':_0x414656(0xe7),'params':{..._0xe8f8fc[_0xc0524e]}},_0x1dde7c=this[_0x414656(0x1ad)][_0x414656(0x1fe)](_0x61f4dc,_0x5e6518,!0x1),_0x356b18=this[_0x414656(0x1ad)][_0x414656(0x1fe)](_0x869b32,_0x522f8f,!0x1);if((0x0,h[_0x414656(0x22c)])(_0x1dde7c))throw _0x1dde7c[_0x414656(0x2d5)];if((0x0,h[_0x414656(0x22c)])(_0x356b18))throw _0x356b18[_0x414656(0x2d5)];_0x4cbc36[_0x414656(0x2a2)](_0x1dde7c[_0x414656(0x272)][_0x414656(0x159)]),_0x4db468[_0x414656(0x2a2)](_0x356b18[_0x414656(0x272)][_0x414656(0x159)]),_0x61f4dc=_0x1dde7c[_0x414656(0x189)],_0x869b32=_0x356b18[_0x414656(0x189)];}_0x3661fc[_0x414656(0x243)]({'undoCache':_0x4cbc36,'redoCache':_0x4db468});}[_0xbf25c6(0x148)](_0x57bdfc){const _0xd6238=_0xbf25c6;let {unitID:_0x44455a}=_0x57bdfc,_0xdf0ca=this[_0xd6238(0x12a)][_0xd6238(0x304)](_0x44455a)[_0xd6238(0x31e)](p[_0xd6238(0x1fa)]),_0x3a2288=_0xdf0ca[_0xd6238(0x109)]();if(_0x3a2288==null)return;let _0x440525=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x57bdfc[_0xd6238(0x132)],'actions':null,'textRanges':[_0x3a2288]}}],_0x1c8ccd=this[_0xd6238(0x1ad)][_0xd6238(0x324)](_0x57bdfc,_0x440525);if(!(0x0,h['isTransformMutationsWithChangesetSuccess'])(_0x1c8ccd))throw _0x1c8ccd[_0xd6238(0x2d5)];let _0x2f9835=_0x1c8ccd[_0xd6238(0x272)][0x0][_0xd6238(0x159)][_0xd6238(0xf2)];Array[_0xd6238(0x2c5)](_0x2f9835)&&_0x2f9835[_0xd6238(0x217)]&&_0xdf0ca['setActiveRange'](_0x2f9835[0x0]);}};U=T([w(0x0,h[_0xbf25c6(0xd2)]),w(0x1,d['IRenderManagerService'])],U);let W=class{constructor(_0x494da5,_0x7cf39d,_0x580672){const _0x24116f=_0xbf25c6;this[_0x24116f(0x231)]=_0x494da5,this[_0x24116f(0x1ad)]=_0x7cf39d,this[_0x24116f(0x327)]=_0x580672;}[_0xbf25c6(0x2d6)](_0x24020e){const _0x246268=_0xbf25c6;this[_0x246268(0x1d3)](_0x24020e);}['transformRemoteChangeset'](_0x231d15){const _0xc77b7=_0xbf25c6;let {unitID:_0x160a5b}=_0x231d15,{collaboration:_0x146f48}=this['_docStateChangeManagerService'][_0xc77b7(0x13a)](_0x160a5b);if(_0x146f48[_0xc77b7(0x217)]===0x0)return _0x231d15;let _0x3e8f97=t[_0xc77b7(0x1b5)][_0xc77b7(0x347)](_0x231d15['mutations'][0x0]);for(let _0x4619de=0x0;_0x4619de<_0x146f48[_0xc77b7(0x217)];_0x4619de++){let _0x2fec5c={'id':_0xc77b7(0xe7),'params':{'unitId':_0x146f48[_0x4619de]['unitId'],..._0x146f48[_0x4619de][_0xc77b7(0x314)]}},_0x30795e=this[_0xc77b7(0x1ad)][_0xc77b7(0x1fe)](_0x3e8f97,_0x2fec5c,!0x1);if((0x0,h[_0xc77b7(0x22c)])(_0x30795e))throw _0x30795e[_0xc77b7(0x2d5)];_0x3e8f97=_0x30795e[_0xc77b7(0x189)];}return{...t[_0xc77b7(0x1b5)][_0xc77b7(0x347)](_0x231d15),'mutations':[_0x3e8f97]};}['_transformHistoryAndStateStack'](_0x2c95d5){const _0xbd4d15=_0xbf25c6;let {unitID:_0x882c38}=_0x2c95d5,{history:_0x15a226,collaboration:_0x33c84c}=this[_0xbd4d15(0x327)][_0xbd4d15(0x13a)](_0x882c38);if(_0x15a226[_0xbd4d15(0x217)]===0x0&&_0x33c84c['length']===0x0)return;let _0x51c2bf=[],_0x4434f4=[],_0x213b47=t['Tools'][_0xbd4d15(0x347)](_0x2c95d5[_0xbd4d15(0x2e8)][0x0]),_0x46fe22=t[_0xbd4d15(0x1b5)][_0xbd4d15(0x347)](_0x2c95d5['mutations'][0x0]);for(let _0x2a0194=_0x15a226[_0xbd4d15(0x217)]-0x1;_0x2a0194>=0x0;_0x2a0194--){let _0x120a8c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x15a226[_0x2a0194][_0xbd4d15(0x1e3)],..._0x15a226[_0x2a0194][_0xbd4d15(0x2f9)]}},_0x511a49={'id':_0xbd4d15(0xe7),'params':{'unitId':_0x15a226[_0x2a0194][_0xbd4d15(0x1e3)],..._0x15a226[_0x2a0194]['redoState']}},_0x22eef1=this[_0xbd4d15(0x1ad)]['transformMutation'](_0x213b47,_0x120a8c,!0x1),_0x11615f=this[_0xbd4d15(0x1ad)][_0xbd4d15(0x1fe)](_0x46fe22,_0x511a49,!0x1);if((0x0,h['isTransformMutationFailure'])(_0x22eef1))throw _0x22eef1['error'];if((0x0,h['isTransformMutationFailure'])(_0x11615f))throw _0x11615f[_0xbd4d15(0x2d5)];_0x51c2bf[_0xbd4d15(0x2a2)]({..._0x15a226[_0x2a0194],'undoState':_0x22eef1[_0xbd4d15(0x272)][_0xbd4d15(0x159)],'redoState':_0x11615f[_0xbd4d15(0x272)][_0xbd4d15(0x159)]}),_0x213b47=_0x22eef1[_0xbd4d15(0x189)],_0x46fe22=_0x11615f['m1Prime'];}_0x213b47=t[_0xbd4d15(0x1b5)][_0xbd4d15(0x347)](_0x2c95d5['mutations'][0x0]),_0x46fe22=t[_0xbd4d15(0x1b5)][_0xbd4d15(0x347)](_0x2c95d5[_0xbd4d15(0x2e8)][0x0]);for(let _0x27aafa=_0x33c84c['length']-0x1;_0x27aafa>=0x0;_0x27aafa--){let _0xf83ed6={'id':_0xbd4d15(0xe7),'params':{'unitId':_0x33c84c[_0x27aafa][_0xbd4d15(0x1e3)],..._0x33c84c[_0x27aafa][_0xbd4d15(0x2f9)]}},_0x2bf928={'id':_0xbd4d15(0xe7),'params':{'unitId':_0x33c84c[_0x27aafa][_0xbd4d15(0x1e3)],..._0x33c84c[_0x27aafa][_0xbd4d15(0x314)]}},_0x52c8a7=this[_0xbd4d15(0x1ad)]['transformMutation'](_0x213b47,_0xf83ed6,!0x1),_0x43efe6=this[_0xbd4d15(0x1ad)][_0xbd4d15(0x1fe)](_0x46fe22,_0x2bf928,!0x1);if((0x0,h['isTransformMutationFailure'])(_0x52c8a7))throw _0x52c8a7[_0xbd4d15(0x2d5)];if((0x0,h['isTransformMutationFailure'])(_0x43efe6))throw _0x43efe6[_0xbd4d15(0x2d5)];_0x4434f4[_0xbd4d15(0x2a2)]({..._0x33c84c[_0x27aafa],'undoState':_0x52c8a7[_0xbd4d15(0x272)][_0xbd4d15(0x159)],'redoState':_0x43efe6[_0xbd4d15(0x272)][_0xbd4d15(0x159)]}),_0x213b47=_0x52c8a7[_0xbd4d15(0x189)],_0x46fe22=_0x43efe6[_0xbd4d15(0x189)];}this[_0xbd4d15(0x327)][_0xbd4d15(0x1cf)](_0x882c38,{'history':_0x51c2bf,'collaboration':_0x4434f4});}};W=T([w(0x0,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x1f5)])),w(0x1,h[_0xbf25c6(0xd2)]),w(0x2,(0x0,t['Inject'])(p[_0xbf25c6(0x2bf)]))],W);let G=class{constructor(_0xafe37e,_0x54a3b9){const _0x16d2ff=_0xbf25c6;this[_0x16d2ff(0x231)]=_0xafe37e,this[_0x16d2ff(0x1ad)]=_0x54a3b9;}['transformSelections'](_0x4ff200){const _0x19d51d=_0xbf25c6;var _0x455b6e;let _0x9ba296=this['_injector']['get'](g[_0x19d51d(0x34b)]),_0x55d777=(_0x455b6e=_0x9ba296[_0x19d51d(0x34f)]())==null?[]:_0x455b6e;if(_0x55d777['length']===0x0)return;let _0x44220c=_0x4ff200[_0x19d51d(0x132)],_0x913a1f=[{'id':_0x19d51d(0xe7),'params':{'unitId':_0x44220c,'actions':null,'textRanges':_0x55d777}}],_0x2a50d7=this[_0x19d51d(0x1ad)]['transformMutationsWithChangeset'](_0x4ff200,_0x913a1f);if(!(0x0,h[_0x19d51d(0x1da)])(_0x2a50d7))throw _0x2a50d7[_0x19d51d(0x2d5)];let _0x3e5d28=_0x2a50d7['m2Prime'][0x0][_0x19d51d(0x159)][_0x19d51d(0xf2)];Array[_0x19d51d(0x2c5)](_0x3e5d28)&&_0x3e5d28[_0x19d51d(0x217)]&&_0x9ba296[_0x19d51d(0x11d)](_0x3e5d28,{'unitId':_0x44220c,'subUnitId':_0x44220c},!0x1);}};G=T([w(0x0,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x1f5)])),w(0x1,h[_0xbf25c6(0xd2)])],G);let K=class extends t[_0xbf25c6(0x229)]{constructor(_0x103d01,_0x1c0efe,_0x2c0c7e,_0x5cfa6d,_0x43ea80,_0x2f4cd2,_0x548d62,_0x5ce631){const _0x6db45=_0xbf25c6;super(),this[_0x6db45(0x327)]=_0x103d01,this[_0x6db45(0x169)]=_0x1c0efe,this[_0x6db45(0xda)]=_0x2c0c7e,this[_0x6db45(0x107)]=_0x5cfa6d,this[_0x6db45(0xe3)]=_0x43ea80,this[_0x6db45(0x2ee)]=_0x2f4cd2,this[_0x6db45(0x15f)]=_0x548d62,this[_0x6db45(0x1b0)]=_0x5ce631,C(this,'_status$',new r['BehaviorSubject'](e['CollaborationStatus']['NOT_COLLAB'])),this['_initEntityListener']();}[_0xbf25c6(0x180)](){const _0x43b89c=_0xbf25c6;this['disposeWithMe'](this[_0x43b89c(0x169)][_0x43b89c(0x1ea)][_0x43b89c(0x230)](_0x5b69d9=>{const _0x42759f=_0x43b89c;let _0x4712d1=this[_0x42759f(0x327)][_0x42759f(0x252)][_0x42759f(0x230)](_0x5deb0d=>{const _0x4ead50=_0x42759f;if(_0x5deb0d==null)return;let {unitId:_0x5f510c,redoState:_0x4a1a72,commandId:_0x485505}=_0x5deb0d;if(_0x5f510c!==_0x5b69d9[_0x4ead50(0x132)])return;let _0x5c4d02={'id':_0x485505,'type':t[_0x4ead50(0x36c)][_0x4ead50(0x296)],'params':{'unitId':_0x5f510c,'actions':_0x4a1a72[_0x4ead50(0x126)],'textRanges':null}};_0x5b69d9[_0x4ead50(0x19e)](_0x5c4d02);});_0x5b69d9['disposeWithMe'](_0x4712d1),_0x5b69d9 instanceof e[_0x42759f(0x2f5)]&&_0x5b69d9[_0x42759f(0x26b)]({'onTransformIME':_0x2a9ddc=>this[_0x42759f(0xda)][_0x42759f(0x359)](_0x2a9ddc),'onTransformState':_0x38951e=>this[_0x42759f(0x107)][_0x42759f(0x2d6)](_0x38951e),'onTransformSelections':_0x1c654b=>this['_docTransformSelectionsService'][_0x42759f(0x20b)](_0x1c654b),'onSyncEditingCollabCursor':_0x1ee4eb=>this[_0x42759f(0x2ee)][_0x42759f(0x2c0)](_0x1ee4eb),'onTransformRemoteChangesetByIMECache':_0x19e9da=>this['_docTransformIMECacheService'][_0x42759f(0x2a4)](_0x19e9da),'onTransformRemoteChangesetByStateCache':_0x263342=>this[_0x42759f(0x107)]['transformRemoteChangeset'](_0x263342)});}));}};K=T([w(0x0,(0x0,t['Inject'])(p['DocStateChangeManagerService'])),w(0x1,(0x0,t['Inject'])(e['CollaborationController'])),w(0x2,(0x0,t[_0xbf25c6(0x142)])(U)),w(0x3,(0x0,t[_0xbf25c6(0x142)])(W)),w(0x4,(0x0,t[_0xbf25c6(0x142)])(G)),w(0x5,(0x0,t[_0xbf25c6(0x142)])(N)),w(0x6,n[_0xbf25c6(0x21a)]),w(0x7,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x334)]))],K);let q=class extends t[_0xbf25c6(0x229)]{constructor(_0x67f322,_0x464b73,_0x2cf257,_0xdf8df7){const _0x1d5488=_0xbf25c6;super(),this[_0x1d5488(0x231)]=_0x67f322,this[_0x1d5488(0xfd)]=_0x464b73,this[_0x1d5488(0x177)]=_0x2cf257,this[_0x1d5488(0x24d)]=_0xdf8df7,C(this,_0x1d5488(0x1c2),void 0x0),this[_0x1d5488(0x2b2)]();}['_init'](){const _0x5c87f5=_0xbf25c6;this['_initWindowErrorListener'](),this[_0x5c87f5(0xed)](),this[_0x5c87f5(0x2ce)](),this[_0x5c87f5(0x16b)]();}[_0xbf25c6(0x16b)](){const _0x2528bc=_0xbf25c6;this[_0x2528bc(0x154)](this[_0x2528bc(0x24d)][_0x2528bc(0x128)][_0x2528bc(0x230)](_0x17b44f=>{const _0x1d80f6=_0x2528bc;this[_0x1d80f6(0x1c2)]=_0x17b44f==null?void 0x0:_0x17b44f['memberID'];}));}[_0xbf25c6(0x228)](){const _0x503a32=_0xbf25c6;let _0x5d698a=_0x148475=>{const _0x343cb8=_0x2506;var _0x254bec;this[_0x343cb8(0x123)]('error',_0x343cb8(0x2c7)+_0x148475[_0x343cb8(0x10e)]+_0x343cb8(0xfb)+_0x148475[_0x343cb8(0x1ee)]+':'+_0x148475[_0x343cb8(0x260)]+':'+_0x148475[_0x343cb8(0x16e)]+'\x0a'+(((_0x254bec=_0x148475[_0x343cb8(0x2d5)])==null?void 0x0:_0x254bec[_0x343cb8(0xf3)])||''));};window[_0x503a32(0x2eb)](_0x503a32(0x2d5),_0x5d698a),this[_0x503a32(0x154)](()=>{const _0x1813bf=_0x503a32;window[_0x1813bf(0x18b)](_0x1813bf(0x2d5),_0x5d698a);});}['_initUnhandledRejectionListener'](){const _0x49206c=_0xbf25c6;let _0x57adf5=_0x5b5825=>{const _0x5a7882=_0x2506;this['_uploadLog'](_0x5a7882(0x2d5),_0x5a7882(0x1c6)+_0x5b5825[_0x5a7882(0x2a0)]);};window[_0x49206c(0x2eb)](_0x49206c(0x2bd),_0x57adf5),this[_0x49206c(0x154)](()=>{const _0x3953db=_0x49206c;window[_0x3953db(0x18b)](_0x3953db(0x2bd),_0x57adf5);});}[_0xbf25c6(0x2ce)](){const _0x5ebf53=_0xbf25c6;let _0x482f5e=this[_0x5ebf53(0x177)][_0x5ebf53(0x2d5)][_0x5ebf53(0x239)](this[_0x5ebf53(0x177)]);this[_0x5ebf53(0x177)]['error']=(..._0x2e1f35)=>{const _0x4ba533=_0x5ebf53;let _0x7aee6d=_0x2e1f35[_0x4ba533(0x2b3)](_0x215d80=>_0x215d80 instanceof Error?_0x215d80[_0x4ba533(0x10e)]+'\x0a'+_0x215d80['stack']:String(_0x215d80))['join']('\x20');this['_uploadLog'](_0x4ba533(0x2d5),_0x4ba533(0x22a)+_0x7aee6d),_0x482f5e(..._0x2e1f35);},this[_0x5ebf53(0x154)](()=>{const _0x5626af=_0x5ebf53;this[_0x5626af(0x177)][_0x5626af(0x2d5)]=_0x482f5e;});}[_0xbf25c6(0x123)](_0x404afe,_0x2ee9ee){const _0x3d056a=_0xbf25c6;try{let _0x10d047={'userId':this[_0x3d056a(0x1c2)],'logLabel':_0x404afe,'content':_0x2ee9ee};this[_0x3d056a(0xfd)][_0x3d056a(0x1d5)]('/universer-api/frontend/logs',{'body':_0x10d047})[_0x3d056a(0x307)](()=>{});}catch{}}};function _0x35dd(){const _0x56ddc5=['getRenderById','_disabled','function','catch','searchParams','SetSelectionsOperation','_maxFormulaLimit','HTTPService','_draw','includes','column','IRemoteInstanceService','endColumn','backgroundColor','registerRefRange','_stopBlinking','redoState','makeDirty','_ensureSubject','_lastPointer','SheetSkeletonManagerService','div','setShapeProps','_startSheetCollabCursor','show','_saveCache','with','_handleLeaveEvent','_initDependencies','blue.400','true','_setupSubUnitSync','transformMutationsWithChangeset','/universer-api/license/formula/limit/start','onTransformChange$','_docStateChangeManagerService','SetFormulaCalculationNotificationMutation','FormulaExecuteStageType','_beforeCloseService','saveImage','merge','PERMISSION_DENIED','packageName','Warning','SOCKET_FAILED','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','collab-text-anchor-','JOIN_ROOM_FAILED','LocaleService','collaboration-client-ui.collabStatus.conflict','TEXT_RANGE_LAYER_INDEX','_removeClearOtherTimer','Tooltip','Subject','getCurrentTypeOfUnit$','newValue','_refRangeService','pipe','ILocalCacheService','assignAColorForMemberID','subUnitId','urlChange$','requireSession','string','body','_initCommandExecutedListener','_docSkeleton','deepClone','_registerRenderDependencies','_scene','saveTaskMap','DocSelectionManagerService','wsSessionTicketUrl','_imageIoService','ticket','getDocRanges','data','_drawTextRange','onRendered','top','measureText','_univerInstanceService','onPointerEnter$','_unitOnClients','fromEventSubject','transformIMECache','defineProperty','useMemo','focused$','_hovered','startRow','RevisionService','preventDefault','univer-inline-flex\x20univer-items-center\x20univer-justify-center','0.2)','handleDeleteRangeMoveLeft','_assignedColors','highlightSecond','save','_urlService','NOT_COLLAB','RegularPolygon','clearTimeout','unload','CommandType','66iMkGTT','UniverCollaborationClientPlugin','object','some','loadOfflineData','replaceState','_cursor','registerComponent','UNIVER_DOC','_collabCursorController','RECT','isInternalEditorID','_selfUnitIDs','_toggleOnline','collaboration-client-ui.collaboration.closeRoom','loadUnit','ITransformService','collaboration-client-ui.config','LOCAL_CACHE_INTERVAL','_uiPartsService','UniverInstanceType','filter','16695SDGLlS','_textBubble','_docTransformIMECacheService','_initStatusComponent','useDependency','parse','getLocalCacheKey','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','reconnect','MemberService','_collaborationUIEventService','_docTransformSelectionsService','currentTheme$','USERS_LEAVE','setInterval','doc.mutation.rich-text-editing','debounce','WebURLService','removeParam','connectInjector','code','_initUnhandledRejectionListener','InsertRangeMoveDownCommandId','_roomMembers$','_anchorDot','subscribeEvent','textRanges','stack','_entityInit$','TEXT','handleDeleteRangeMoveUp','source',',\x200.2)','handleIRemoveRow','endRow','\x20at\x20','ThemeService','_httpService','Success','AWAITING','green.600','getViewport','debug','parseInt','_updateCollabCursors','_initEvent','getOwnPropertyDescriptor','_docTransformStateCacheService','toPrimitive','getActiveRange','collaboration-client-ui.collabClient.tooltip.reconnect','shareReplay','addClipboardHook','event$','message','_clearPolling','sessionStatus$','getColorFromTheme','getMemberID','getCellPositionByOffset','roomMembers$','...','span','CollaborationStatus','bottom','_setupBeforeClosingHandler','_onCursorDelete','complete','cursorInfo$','replaceDocRanges','closePath','fill','/universer-api/license/formula/limit/status','updateOfflineData','runRefRangeMutations','_uploadLog','_startDocCollabCursor','dark:focus:univer-ring-offset-gray-800','actions','all','socket$','getSheetId','_renderManagerService','getFocusedUnit','_applyCommand','onStarting','collab-rect-range-','ILogService','dispose','setConfig','unitID','setParam','880uEzUeB','onPointerLeave$','totalFormulasToCalculate','collaboration-client-ui.collaboration.single-unit.warning','[RemoteUniscriptService]:\x20no\x20focused\x20unit','RefRangeService','getStateCache','_color','currentUsage','collab-text-range-','_localStorageService','IUIPartsService','triggerDblclick','ColorKit','Inject','jsx','setOffsetY','_docClipboardService','_shapes','toString','_transformPreviousActiveRange','_handleHover','_setFormulaLimitStatus','runId','univer-text-green-500','_collabSessionService','fillText','collaboration-client-ui.formula.calculation.started','624237QbFovF','delete','_highlight','getConfig','disposeWithMe','pulse','_drawAnchor','DOC_RANGE_TYPE','_updateSubUnitFromURLParams','params','_syncEditingCollabCursorService','_clearOtherTimers','disposeUnit','spin','_context','_messageService','PENDING','offsetY','size','FETCH_MISS','SetTextSelectionsOperation','_memberService','_pointerMoveDisposable','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','stageInfo','_collaborationController','_document','_initUserListener','search','EffectRefRangId','colno','_notificationService','_taskIds','getTypeOfUnitAdded$','ILocalStorageService','init','0.25.0','asObservable','_startCalculationLimit','_logService','disableLocalCache','beginPath','getFormulaLimitStatusUrl','_showText','collaboration-client-ui.formula.calculation.waiting','getRangePointData','setAlpha','has','_initEntityListener','_config','_getMergeRange','send','distinctUntilChanged','ranges','maxFormulaLimit','dispose$','resize','m1Prime','indicator','removeEventListener','getCollabCursors$','UNIVER_SHEET','getUnit','setTimeout','constructor','getUnitId','_cachedData','restore','clickable','@univerjs-pro/collaboration-client-ui','_session','getValue','then','popstate','iterator','_name','_createSocketURL','roomMembers','onLocalMutation','SYNCED','values','DataLoaderService','_transformUndoRedoStack','selections','_removeCollabCursors','getCellMatrix','_getSheetObject','forEach','takeUntil','MessageType','call','add','_configService','_transformService','type','IBeforeCloseService','_localeService','/run/','storage','push','UnitStatus','Tools','width','2gNPENV','findNodePositionByCharIndex','row','_lastResponseTimestamp','univer-text-gray-400','_id','Module','labelPosition','hovered','206051fzGJYj','OTHER_CLIENTS_EDITING','_memberID','_startBlinking','Rect','_initResize','[Unhandled\x20Rejection]:\x20','black','CanceledError','Enter','_updateURLWithCurrentState','lineTo','NodePositionConvertToCursor','toRgbString','WebSocketService','setStateCache','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_localCacheService','beforeCommandExecuted','_transformHistoryAndStateStack','OFFLINE','post','status','OTHER_CLIENT_EDITING','IUniverInstanceService','min','isTransformMutationsWithChangesetSuccess','Error','_refreshCollabCursors','_collabCursorState$','find','deserializeRangeWithSheet','sheetId','IConfigService','next','unitId','2275008FxbovB','ACTIVE_UNIT_EVENT_CHANNEL','releaseFormulaLimitUrl','_instanceService','getUniverSheetInstance','CollaborationEvent','entityInit$','getSkeleton','_offsetY','symbol','filename','generateRandomId','getOffsetConfig','_revisionService','contains','evenodd','SheetCollabCursorShape','Injector','unsubscribe','max','exhaustSavingTask','startColumn','DocIMEInputManagerService','set','clsx','IRenderManagerService','transformMutation','getVpScrollXYInfoByPosToVp','_anchor','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_updateLocalCursor','INotificationService','_saveTaskMap','UniverCollaborationClientUIPlugin','collaboration-client-ui.permission.content','univer-flex\x20univer-items-center\x20univer-justify-center','ISnapshotServerService','getSheetObject','_docSkeletonManagerService','transformSelections','univer-text-blue-500','_checkAndWaitForCalculationPermission','executionId','startsWith','WebBrowserSingleActiveUnitService','dirtyRanges','333550bVrptd','_getSessionTicket','_cursors','registerDependencies','uni.network.url-service','length','_handleHeartbeatEvent','subunit','IMessageService','_toggleOffline','purple.300','whenReady','_checkCalculationAvailable','icon','CollaborationSessionService','#FFF','IDocClipboardService','getTypeOfUnitDisposed$','COLORS','UPDATE_CURSOR','_handleJoinEvent','enableLocalCache','_initWindowErrorListener','Disposable','[LogService\x20Error]:\x20','cursorInfo','isTransformMutationFailure','getCurrentSkeleton','override','CLOSE_ROOM','subscribe','_injector','isFormulaString','i18nKey','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','isActive','_themeService','enableFrontendLog','limitInfo','bind','pushState','fromEvent','getAncestorScale','_colorAssignService','origin','stringify','from','Rectangle','_registerDependencies','setUndoRedoMutationParamsCache','_initCommandInterceptor','ICommandService','eventID','getCurrentUnitOfType','FormulaExecutedStateType','_getLighterColor','LoadingMultiIcon','_highlightSecond','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_collaborationSessionService','_render','color','getColor','isEditing','docStateChange$','imageSourceType','prototype','_status$','application/json','clearInterval','switchMap','Loading','getUnitStatus$','_send','executeCommand','NO_OTHER_CLIENTS_EDITING','collaboration-client-ui.collabStatus.fetchMiss','Workbook','lineno','history','Vector2','univer-text-orange-500','status$','handleInsertRangeMoveDown','RxDisposable','_hideTimer','sheetID','decorate','getParam','addHandlerCallback','_releaseCalculationLimit','now','addObjects','useCallback','handleInsertRow','rgba','m2Prime','NodePositionConvertToRectRange','_getScale','createInstance','_scheduleHeartbeat','get','replace','CONFLICT','_cursorShapes','_colorIndex','collaboration-client-ui.collabStatus.syncing','isFormulaId','FromArray','collaboration-client-ui.permission.title','collaboration-client-ui.session.connection-failed','_hasFormulaInDirtyRanges','arc','RemoveRowCommandId','getSheetBySheetId','_showGuardMessage','ErrorCode','mergeOverrideWithDependencies','addObject','START_CALCULATION','_unitStatus','mapTo','useObservable','fillRule','1193388DpAAdQ','11809plXHFN','hide','_dataLoaderService','InsertRowCommandId','SetDocZoomRatioOperation','DeleteRangeMoveLeftCommandId','[CollaborationDataLoaderController]','MUTATION','version','SheetsSelectionsService','highlight','collaboration-client-ui.collabStatus.notCollab','tooltipKey','stage','static','_online','getAllUnitsForType','reason','selection','unshift','CollaborationUIEventId','transformRemoteChangeset','transform','_labelPosition','currentSkeleton$','collaboration-client-ui.session.collaboration-timeout','startFormulaLimitUrl','SUCCESS','_drawRectRange','Unknown\x20user','split','_initStatusListener','ONLINE','_range','CollaborationController','_init','map','SetWorksheetActivateCommand','_entities','_scheduleSaving','getRelativeToViewportCoord','_currentUsage','getUndoRedoMutationParamsCache','collabCursorState$','setItem','unit','unhandledrejection','CollaborationSocketService','DocStateChangeManagerService','syncEditingCollabCursor','_onCursorUpdate','_blinkTimer','_doCreateSocket','_eventUnsubscribe','isArray','getActiveSheet','[Window\x20Error]:\x20','combineLatest','_blinkIntervalTimer','saveOfflineData','univer-transition-all\x20univer-duration-200','RichTextEditingMutation','touchDependencies','_monkeyPatchLogService','yellow.400','result','onPointerMove$','_cursorInfo$','univer-m-0\x20univer-p-0','href','error','transformStateCache','univer-appearance-none','Shape','Plugin','BehaviorSubject','colorClass','drawWith','Failed','_onRefRangeChange','_handleEvent','location','CollaborationDataLoaderController','_heartbeatTimer','_backgroundColor','onMouseMove','rgb','_isBlinkVisible','flatMap','mutations','button','HEADER_MENU','addEventListener','strokeWidth','onCommandExecuted','_docSyncEditingCollabCursorService','_getSaveTimeout','toDisposable','name','OffLineIcon','_sheetSkeletonManagerService','Optional','DocCollaborationEntity','_scheduleClearOtherTimer','BrowserCollaborationSocketService','text','undoState','key','_commandService','height','red.300','debounceTime','_getFormulaLimitStatus','polite','_pollingInterval','RemoteUniscriptService','_hover'];_0x35dd=function(){return _0x56ddc5;};return _0x35dd();}q=T([w(0x0,(0x0,t[_0xbf25c6(0x142)])(t['Injector'])),w(0x1,(0x0,t[_0xbf25c6(0x142)])(f['HTTPService'])),w(0x2,t[_0xbf25c6(0x12f)]),w(0x3,(0x0,t[_0xbf25c6(0x142)])(e[_0xbf25c6(0x220)]))],q);function fe(_0x50d4e4){const _0xcec512=_0xbf25c6;var _0x108f4a,_0x475bee;let _0x308077=(_0x108f4a=_0x50d4e4[_0xcec512(0x168)])==null?void 0x0:_0x108f4a[_0xcec512(0x29c)],_0x1fa13c=((_0x475bee=_0x50d4e4[_0xcec512(0x168)])==null?void 0x0:_0x475bee[_0xcec512(0x136)])||0x0;return _0x308077===_[_0xcec512(0x329)][_0xcec512(0x289)]&&_0x1fa13c>0x0;}function pe(_0x46b230){const _0x2716ee=_0xbf25c6;return _0x46b230['functionsExecutedState']===_[_0x2716ee(0x248)][_0x2716ee(0x2aa)];}let J=class extends t['Disposable']{constructor(_0x535af3,_0x3c0c28,_0x2bfc8b,_0xdd8382,_0x1007ac,_0x266dea,_0x4e5eb6){const _0x1a86cb=_0xbf25c6;super(),this[_0x1a86cb(0x15f)]=_0x535af3,this[_0x1a86cb(0x2fb)]=_0x3c0c28,this['_configService']=_0x2bfc8b,this[_0x1a86cb(0xfd)]=_0xdd8382,this[_0x1a86cb(0x355)]=_0x1007ac,this['_logService']=_0x266dea,this[_0x1a86cb(0x1b0)]=_0x4e5eb6,C(this,'_pollingInterval',null),C(this,_0x1a86cb(0x30a),0x0),C(this,'_currentUsage',0x0),C(this,_0x1a86cb(0x170),[]),C(this,_0x1a86cb(0x1ba),0x0),this[_0x1a86cb(0x244)]();}[_0xbf25c6(0x244)](){const _0xd85bf2=_0xbf25c6;this[_0xd85bf2(0x154)](this['_commandService'][_0xd85bf2(0x1d2)]((_0x1cd49c,_0x37c0dd)=>{const _0x8f6235=_0xd85bf2;var _0x42bae9;if(_0x1cd49c['id']!==_['SetFormulaCalculationStartMutation']['id'])return;let _0x22da15=_0x1cd49c['params'];if(this['_hasFormulaInDirtyRanges']((_0x42bae9=_0x22da15[_0x8f6235(0x211)])==null?[]:_0x42bae9)&&!this[_0x8f6235(0x21e)]())throw this[_0x8f6235(0x20d)](_0x1cd49c,_0x37c0dd),this[_0x8f6235(0x285)](),new t[(_0x8f6235(0x1c8))]();})),this[_0xd85bf2(0x154)](this[_0xd85bf2(0x2fb)][_0xd85bf2(0x2ed)]((_0x31ed96,_0x5c3b64)=>{const _0x5af32e=_0xd85bf2;if(_0x31ed96['id']!==_[_0x5af32e(0x328)]['id'])return;let _0x3856e9=_0x31ed96['params'];if(fe(_0x3856e9)){let _0x3cf7f9=(0x0,t[_0x5af32e(0x1ef)])();this[_0x5af32e(0x170)]['push'](_0x3cf7f9),this[_0x5af32e(0x176)](_0x3cf7f9);}else{if(pe(_0x3856e9)&&this[_0x5af32e(0x170)][_0x5af32e(0x217)]>0x0){let _0x557795=this[_0x5af32e(0x170)]['shift']();this['_releaseCalculationLimit'](_0x557795);}}}));}[_0xbf25c6(0x130)](){const _0x47cf22=_0xbf25c6;super[_0x47cf22(0x130)](),this[_0x47cf22(0x10f)](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x47cf22(0x30a)]=0x0,this[_0x47cf22(0x1ba)]=0x0;}async[_0xbf25c6(0x20d)](_0x5b92fd,_0xb030bc){const _0x35e3d9=_0xbf25c6;for(let _0x14f2d5=0x0;_0x14f2d5<0x1e;_0x14f2d5++)try{if(await this[_0x35e3d9(0x2ff)](),this[_0x35e3d9(0x21e)]()){this[_0x35e3d9(0x12c)](_0x5b92fd,_0xb030bc),this[_0x35e3d9(0x15f)][_0x35e3d9(0x31c)]({'content':this['_localeService']['t'](_0x35e3d9(0x14f)),'type':a[_0x35e3d9(0x1a9)][_0x35e3d9(0xfe)]});return;}await new Promise(_0x5406d2=>{const _0x1d01ad=_0x35e3d9;this[_0x1d01ad(0x301)]=window[_0x1d01ad(0x18f)](_0x5406d2,0x3e8);});}catch(_0x1ffa69){this['_logService'][_0x35e3d9(0x2d5)](_0x1ffa69);}this[_0x35e3d9(0x15f)][_0x35e3d9(0x31c)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.unable'),'type':a[_0x35e3d9(0x1a9)][_0x35e3d9(0x1db)]});}[_0xbf25c6(0x12c)](_0x3ea6c3,_0x414655){const _0x59bcbc=_0xbf25c6;try{this[_0x59bcbc(0x2fb)][_0x59bcbc(0x25c)](_0x3ea6c3['id'],_0x3ea6c3[_0x59bcbc(0x159)],_0x414655);}catch(_0x216a41){this[_0x59bcbc(0x177)][_0x59bcbc(0x2d5)](_0x216a41);}}[_0xbf25c6(0x14a)](_0x142fb9,_0x441706){const _0x202b8b=_0xbf25c6;_0x441706<this[_0x202b8b(0x1ba)]||(this[_0x202b8b(0x1ba)]=_0x441706,this['_maxFormulaLimit']=Number['parseInt'](_0x142fb9[_0x202b8b(0x186)]),this[_0x202b8b(0x2b8)]=Number['parseInt'](_0x142fb9[_0x202b8b(0x13c)]));}async[_0xbf25c6(0x176)](_0x4da6a0){const _0x7be27e=_0xbf25c6;let _0x580654=Date[_0x7be27e(0x26d)]();try{var _0xb9abc1,_0x5515f4;let _0x873280=((_0xb9abc1=this['_configService'][_0x7be27e(0x153)](e[_0x7be27e(0x331)]))==null?void 0x0:_0xb9abc1[_0x7be27e(0x2a9)])||_0x7be27e(0x325),_0x35e7c3=(await this['_httpService']['post'](_0x873280,{'body':JSON[_0x7be27e(0x23f)]({'taskId':_0x4da6a0})}))[_0x7be27e(0x344)];if(((_0x5515f4=_0x35e7c3[_0x7be27e(0x2d5)])==null?void 0x0:_0x5515f4[_0x7be27e(0xec)])!==y[_0x7be27e(0x286)]['OK'])return;this[_0x7be27e(0x14a)](_0x35e7c3[_0x7be27e(0x238)],_0x580654);}catch(_0x524a2f){this[_0x7be27e(0x177)][_0x7be27e(0x2d5)](_0x524a2f);}}async[_0xbf25c6(0x2ff)](_0x342cb9){const _0x25a24a=_0xbf25c6;let _0x535ef8=Date[_0x25a24a(0x26d)]();try{var _0xdc8ee0,_0x217e39;let _0x32fadd=((_0xdc8ee0=this[_0x25a24a(0x1ac)]['getConfig'](e[_0x25a24a(0x331)]))==null?void 0x0:_0xdc8ee0[_0x25a24a(0x17a)])||_0x25a24a(0x120),_0x3e0963=_0x342cb9?_0x32fadd+'?taskId='+encodeURIComponent(_0x342cb9):_0x32fadd,_0x1543ac=(await this[_0x25a24a(0xfd)][_0x25a24a(0x277)](_0x3e0963))[_0x25a24a(0x344)];if(((_0x217e39=_0x1543ac[_0x25a24a(0x2d5)])==null?void 0x0:_0x217e39[_0x25a24a(0xec)])!==y[_0x25a24a(0x286)]['OK'])return;this['_setFormulaLimitStatus'](_0x1543ac[_0x25a24a(0x238)],_0x535ef8);}catch(_0x27cd10){this[_0x25a24a(0x177)]['error'](_0x27cd10);}}async[_0xbf25c6(0x26c)](_0x124662){const _0x253545=_0xbf25c6;let _0x552901=Date['now']();try{var _0x28b920,_0x1de1fb;let _0x5d3a89=((_0x28b920=this[_0x253545(0x1ac)][_0x253545(0x153)](e[_0x253545(0x331)]))==null?void 0x0:_0x28b920[_0x253545(0x1e6)])||'/universer-api/license/formula/limit/done',_0x2942a5=(await this[_0x253545(0xfd)]['post'](_0x5d3a89,{'body':JSON[_0x253545(0x23f)]({'taskId':_0x124662})}))['body'];if(((_0x1de1fb=_0x2942a5[_0x253545(0x2d5)])==null?void 0x0:_0x1de1fb[_0x253545(0xec)])!==y[_0x253545(0x286)]['OK'])return;this[_0x253545(0x14a)](_0x2942a5['limitInfo'],_0x552901);}catch(_0x2cf919){this[_0x253545(0x177)][_0x253545(0x2d5)](_0x2cf919);}}[_0xbf25c6(0x21e)](){const _0x283b79=_0xbf25c6;return this[_0x283b79(0x30a)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x283b79(0x2b8)]>0x0;}['_clearPolling'](){const _0x28a112=_0xbf25c6;this[_0x28a112(0x301)]&&(clearTimeout(this[_0x28a112(0x301)]),this[_0x28a112(0x301)]=null);}['_showGuardMessage'](){const _0x5c8cc6=_0xbf25c6;this[_0x5c8cc6(0x15f)][_0x5c8cc6(0x31c)]({'content':this[_0x5c8cc6(0x1b0)]['t'](_0x5c8cc6(0x17c)),'type':a['MessageType'][_0x5c8cc6(0x259)]});}[_0xbf25c6(0x281)](_0x27c47b){const _0x66416c=_0xbf25c6;for(let _0x1e141f of _0x27c47b){let {unitId:_0x106ad7,sheetId:_0x429a08,range:_0x509895}=_0x1e141f,_0x2a1bba=this['_univerInstanceService'][_0x66416c(0x18e)](_0x106ad7);if(!_0x2a1bba)continue;let _0x4edc61=_0x2a1bba[_0x66416c(0x284)](_0x429a08);if(!_0x4edc61)continue;let _0x8c0854=_0x4edc61[_0x66416c(0x1a5)]();for(let _0x3ed06d=_0x509895[_0x66416c(0x35e)];_0x3ed06d<=_0x509895[_0x66416c(0xfa)];_0x3ed06d++)for(let _0x1951cc=_0x509895[_0x66416c(0x1f9)];_0x1951cc<=_0x509895['endColumn'];_0x1951cc++){let _0x4f6d8c=_0x8c0854[_0x66416c(0x197)](_0x3ed06d,_0x1951cc);if(_0x4f6d8c&&((0x0,t[_0x66416c(0x232)])(_0x4f6d8c['f'])||(0x0,t[_0x66416c(0x27d)])(_0x4f6d8c['si'])))return!0x0;}}return!0x1;}};J=T([w(0x0,(0x0,t[_0xbf25c6(0x142)])(n[_0xbf25c6(0x21a)])),w(0x1,t[_0xbf25c6(0x245)]),w(0x2,t[_0xbf25c6(0x1e1)]),w(0x3,(0x0,t[_0xbf25c6(0x142)])(f[_0xbf25c6(0x30b)])),w(0x4,t['IUniverInstanceService']),w(0x5,t[_0xbf25c6(0x12f)]),w(0x6,(0x0,t[_0xbf25c6(0x142)])(t['LocaleService']))],J);let Y=class extends t['Disposable']{constructor(_0x16dddc,_0x57285e,_0x2e133d){const _0x1f91ea=_0xbf25c6;super(),this[_0x1f91ea(0x1ac)]=_0x16dddc,this['_localStorageService']=_0x57285e,this[_0x1f91ea(0x1f1)]=_0x2e133d,C(this,_0x1f91ea(0x192),new Map()),C(this,'_saveTaskMap',new Map()),C(this,'_disabled',!0x1);}[_0xbf25c6(0x178)](){this['_disabled']=!0x0;}[_0xbf25c6(0x227)](){const _0x496542=_0xbf25c6;this[_0x496542(0x305)]=!0x1;}get[_0xbf25c6(0x34a)](){const _0x5368b3=_0xbf25c6;return this[_0x5368b3(0x204)];}[_0xbf25c6(0x130)](){const _0x1de605=_0xbf25c6;this['exhaustSavingTask']()[_0x1de605(0x198)](()=>super[_0x1de605(0x130)]());}async[_0xbf25c6(0x371)](_0x1f7adc){const _0x40302d=_0xbf25c6;return this['_disabled']?null:this['_localStorageService']['getItem']((0x0,e[_0x40302d(0xde)])(_0x1f7adc));}async[_0xbf25c6(0x2ca)](_0x342d2a,_0x5abf83){const _0x49d55b=_0xbf25c6;return!!this['_localStorageService'][_0x49d55b(0x2bb)](_0x342d2a,_0x5abf83);}[_0xbf25c6(0x121)](_0x3cb7d1,_0x5b5c5e,_0x5e2b4f,_0x4a3538){const _0x3a3d57=_0xbf25c6;let _0xa79e66=this[_0x3a3d57(0x1f1)]['getCurrentRevOfUnit'](_0x3cb7d1);this[_0x3a3d57(0x192)]['set'](_0x3cb7d1,{'unitID':_0x3cb7d1,'type':_0x5b5c5e,'awaitingChangeset':_0x5e2b4f,'mutations':_0x4a3538,'rev':_0xa79e66}),this[_0x3a3d57(0x204)][_0x3a3d57(0x17f)](_0x3cb7d1)||this[_0x3a3d57(0x2b6)](_0x3cb7d1);}[_0xbf25c6(0x2b6)](_0x24fa7b){const _0x4f8ebd=_0xbf25c6;let _0x208e08=this[_0x4f8ebd(0x2ef)]();_0x208e08===0x0?this['_saveCache'](_0x24fa7b):this[_0x4f8ebd(0x204)][_0x4f8ebd(0x1fb)](_0x24fa7b,setTimeout(()=>this[_0x4f8ebd(0x31d)](_0x24fa7b),_0x208e08));}['_getSaveTimeout'](){const _0x246641=_0xbf25c6;var _0x23cb43;return(_0x23cb43=this['_configService']['getConfig'](e['LOCAL_CACHE_INTERVAL_KEY']))==null?e[_0x246641(0xd4)]:_0x23cb43;}[_0xbf25c6(0x31d)](_0x1ca945){const _0x485e1d=_0xbf25c6;let _0x379a70=this[_0x485e1d(0x204)][_0x485e1d(0x277)](_0x1ca945);return _0x379a70!==void 0x0&&window[_0x485e1d(0x36a)](_0x379a70),this[_0x485e1d(0x13e)][_0x485e1d(0x2bb)]((0x0,e[_0x485e1d(0xde)])(_0x1ca945),this[_0x485e1d(0x192)]['get'](_0x1ca945))[_0x485e1d(0x198)](()=>this['_saveTaskMap'][_0x485e1d(0x151)](_0x1ca945));}async[_0xbf25c6(0x1f8)](){const _0x48c8da=_0xbf25c6;let _0x16632e=[];this[_0x48c8da(0x204)][_0x48c8da(0x1a7)]((_0xfb39e3,_0x2e85c1)=>{const _0x187202=_0x48c8da;window[_0x187202(0x36a)](_0xfb39e3),_0x16632e[_0x187202(0x1b3)](this[_0x187202(0x31d)](_0x2e85c1)[_0x187202(0x198)](()=>{const _0x8ce965=_0x187202;this[_0x8ce965(0x204)]['delete'](_0x2e85c1);}));}),await Promise[_0x48c8da(0x127)](_0x16632e);}};Y=T([w(0x0,t[_0xbf25c6(0x1e1)]),w(0x1,t[_0xbf25c6(0x172)]),w(0x2,(0x0,t['Inject'])(h[_0xbf25c6(0x35f)]))],Y);var X=class extends t[_0xbf25c6(0x266)]{constructor(){const _0x5d99c9=_0xbf25c6;super(),C(this,_0x5d99c9(0x341),void 0x0),this[_0x5d99c9(0x341)]=(0x0,r[_0x5d99c9(0x23b)])(window,_0x5d99c9(0x199))[_0x5d99c9(0x33d)]((0x0,r[_0x5d99c9(0x1a8)])(this['dispose$']),(0x0,r[_0x5d99c9(0x10b)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x5d99c9(0x28b)])(void 0x0));}[_0xbf25c6(0x133)](_0x596d3f,_0x15a09a,_0x19033f=!0x1){const _0x3fe0c8=_0xbf25c6;let _0x3b003b=new URL(window[_0x3fe0c8(0x2e0)][_0x3fe0c8(0x2d4)]);_0x3b003b[_0x3fe0c8(0x308)][_0x3fe0c8(0x1fb)](_0x596d3f,_0x15a09a),_0x19033f?window[_0x3fe0c8(0x261)][_0x3fe0c8(0x372)]('','',_0x3b003b[_0x3fe0c8(0x147)]()):window[_0x3fe0c8(0x261)][_0x3fe0c8(0x23a)]('','',_0x3b003b[_0x3fe0c8(0x147)]());}[_0xbf25c6(0xea)](_0x30d96e,_0x16fbd0=!0x1){const _0xa9e500=_0xbf25c6;let _0x6084f9=new URL(window['location']['href']);_0x6084f9[_0xa9e500(0x308)]['delete'](_0x30d96e),_0x16fbd0?window[_0xa9e500(0x261)][_0xa9e500(0x372)]('','',_0x6084f9[_0xa9e500(0x147)]()):window['history'][_0xa9e500(0x23a)]('','',_0x6084f9[_0xa9e500(0x147)]());}[_0xbf25c6(0x26a)](_0x21f713){const _0x4b155e=_0xbf25c6;var _0x2f53d7;return(_0x2f53d7=new URL(window[_0x4b155e(0x2e0)][_0x4b155e(0x2d4)])['searchParams']['get'](_0x21f713))==null?void 0x0:_0x2f53d7;}};let Z=class extends t[_0xbf25c6(0x2d9)]{constructor(_0x3ab8f0=H,_0x1d2f96,_0x75e9c,_0x30beb5){const _0x21c602=_0xbf25c6;super(),this['_config']=_0x3ab8f0,this[_0x21c602(0x12a)]=_0x1d2f96,this[_0x21c602(0x231)]=_0x75e9c,this['_configService']=_0x30beb5;let {..._0x236cc5}=(0x0,t[_0x21c602(0x32c)])({},H,this[_0x21c602(0x181)]);this[_0x21c602(0x1ac)][_0x21c602(0x131)](_0x21c602(0xd3),_0x236cc5);}[_0xbf25c6(0x12d)](){const _0xe7dcb4=_0xbf25c6;this[_0xe7dcb4(0x242)](),this[_0xe7dcb4(0x320)]();}[_0xbf25c6(0x352)](){const _0x5c9a0c=_0xbf25c6;this[_0x5c9a0c(0x348)]();}[_0xbf25c6(0x242)](){const _0x2a31e6=_0xbf25c6;var _0x52b77e;let _0x883254=[[j],[J],[G],[U],[W],[N],[D,{'useClass':X}],[f['ISocketService'],{'useClass':f[_0x2a31e6(0x1ce)]}],[e[_0x2a31e6(0x33e)],{'useClass':Y}],[E],[K],[V],[I],[k],[O]];this[_0x2a31e6(0x181)]['enableFrontendLog']&&_0x883254[_0x2a31e6(0x1b3)]([q]),(0x0,t[_0x2a31e6(0x215)])(this['_injector'],(0x0,t[_0x2a31e6(0x287)])(_0x883254,(_0x52b77e=this[_0x2a31e6(0x181)])==null?void 0x0:_0x52b77e[_0x2a31e6(0x22e)]));}[_0xbf25c6(0x348)](){const _0x34d00a=_0xbf25c6;this['disposeWithMe'](this[_0x34d00a(0x12a)]['registerRenderModule'](t[_0x34d00a(0xd6)][_0x34d00a(0x375)],[R])),this[_0x34d00a(0x154)](this[_0x34d00a(0x12a)]['registerRenderModule'](t[_0x34d00a(0xd6)][_0x34d00a(0x18d)],[B]));}[_0xbf25c6(0x320)](){const _0x564e40=_0xbf25c6;(0x0,t[_0x564e40(0x2cd)])(this['_injector'],[[I],[E],[K],[V],[O],[J],[k]]),this[_0x564e40(0x181)][_0x564e40(0x237)]&&(0x0,t[_0x564e40(0x2cd)])(this[_0x564e40(0x231)],[[q]]);}};C(Z,'pluginName',_0xbf25c6(0x167)),C(Z,_0xbf25c6(0x32e),ie),C(Z,_0xbf25c6(0x297),ae),Z=T([(0x0,t['DependentOn'])(e[_0xbf25c6(0x36e)]),w(0x1,d[_0xbf25c6(0x1fd)]),w(0x2,(0x0,t['Inject'])(t[_0xbf25c6(0x1f5)])),w(0x3,t[_0xbf25c6(0x1e1)])],Z);let Q=class extends e[_0xbf25c6(0x2be)]{constructor(_0x132321,_0x110ce4,_0x5ea9ea,_0x5b69b6,_0x3c7fcd){super(_0x132321,_0x110ce4,_0x5ea9ea,_0x5b69b6,_0x3c7fcd);}async['createSocket'](_0x52e688){const _0x4088df=_0xbf25c6;let _0x5e7b2f=await this[_0x4088df(0x213)](),_0x36fc0d=this[_0x4088df(0x19c)](_0x52e688,_0x5e7b2f);return this[_0x4088df(0x2c3)](_0x36fc0d);}[_0xbf25c6(0x19c)](_0x555a53,_0x44f8cb){const _0x5b7ec0=_0xbf25c6;let _0x34c2cd=typeof window>'u'?new URL(_0x555a53):new URL(_0x555a53,window[_0x5b7ec0(0x2e0)][_0x5b7ec0(0x23e)]);_0x34c2cd['searchParams'][_0x5b7ec0(0x1fb)]('sessionTicket',_0x44f8cb);let _0x379861=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x5b7ec0(0x16c)]);return _0x379861[_0x5b7ec0(0x277)](_0x5b7ec0(0x14b))&&_0x34c2cd['searchParams'][_0x5b7ec0(0x1fb)](_0x5b7ec0(0x14b),_0x379861[_0x5b7ec0(0x277)](_0x5b7ec0(0x14b))),_0x34c2cd[_0x5b7ec0(0x147)]();}async[_0xbf25c6(0x213)](){const _0x3372d3=_0xbf25c6;var _0x44117f,_0x2b336c,_0x15b27e;let _0x482989=this[_0x3372d3(0x1ac)]['getConfig'](e[_0x3372d3(0x331)]),_0x239f85=(_0x44117f=_0x482989==null?void 0x0:_0x482989[_0x3372d3(0x34c)])==null?e['DEFAULT_WS_SESSION_TICKET_URL']:_0x44117f;return(_0x2b336c=(_0x15b27e=(await this[_0x3372d3(0xfd)][_0x3372d3(0x277)](_0x239f85,{'headers':{'Content-Type':_0x3372d3(0x256)}}))[_0x3372d3(0x344)])==null?void 0x0:_0x15b27e[_0x3372d3(0x34e)])==null?'':_0x2b336c;}};Q=T([w(0x0,(0x0,t[_0xbf25c6(0x142)])(t['Injector'])),w(0x1,(0x0,t['Inject'])(f[_0xbf25c6(0x30b)])),w(0x2,t[_0xbf25c6(0x1e1)]),w(0x3,t[_0xbf25c6(0x12f)]),w(0x4,h[_0xbf25c6(0x208)])],Q);let $=class extends t[_0xbf25c6(0x229)]{constructor(_0x29cd3b,_0x32b69b,_0x19fc4d){const _0x43c779=_0xbf25c6;super(),this[_0x43c779(0x1e7)]=_0x29cd3b,this[_0x43c779(0xfd)]=_0x32b69b,this[_0x43c779(0x1ac)]=_0x19fc4d;}async['runOnServer'](_0x1fca1f,_0x3e1c9b,_0x5ecafb,..._0x570bba){const _0x483a6c=_0xbf25c6;var _0xda936f,_0x41417a,_0xf2f388,_0x300903;let _0x1d6c80=this[_0x483a6c(0x1e7)]['getFocusedUnit']();if(!_0x1d6c80)throw Error(_0x483a6c(0x138));let _0x27dff5=((_0xda936f=this[_0x483a6c(0x1ac)][_0x483a6c(0x153)](e[_0x483a6c(0x201)]))==null?e[_0x483a6c(0x1d0)]:_0xda936f)+'/'+_0x1fca1f+_0x483a6c(0x1b1)+_0x3e1c9b,_0x309f6b={'scriptId':_0x1fca1f,'runId':(_0x41417a=new URL(window[_0x483a6c(0x2e0)][_0x483a6c(0x2d4)])['searchParams'][_0x483a6c(0x277)](_0x483a6c(0x14b)))==null?'':_0x41417a,'function':_0x3e1c9b,'unitId':_0x1d6c80[_0x483a6c(0x191)](),'argsOfFunction':JSON[_0x483a6c(0x23f)](_0x570bba),'invokeId':(_0xf2f388=_0x5ecafb['invokeId'])==null?'':_0xf2f388,'executionId':(_0x300903=_0x5ecafb[_0x483a6c(0x20e)])==null?'':_0x300903};try{let _0x5a5a28=await this[_0x483a6c(0xfd)][_0x483a6c(0x1d5)](_0x27dff5,{'body':_0x309f6b});return _0x5a5a28[_0x483a6c(0x344)][_0x483a6c(0x2d5)]&&_0x5a5a28[_0x483a6c(0x344)][_0x483a6c(0x2d5)][_0x483a6c(0xec)]!==y[_0x483a6c(0x286)]['OK']?_0x483a6c(0x2dd):_0x5a5a28[_0x483a6c(0x344)][_0x483a6c(0x2d0)];}catch{return _0x483a6c(0x2dd);}}};$=T([w(0x0,t[_0xbf25c6(0x1d8)]),w(0x1,(0x0,t['Inject'])(f['HTTPService'])),w(0x2,t[_0xbf25c6(0x1e1)])],$);const me=0x7530,he=_0xbf25c6(0x1e5);var ge=class extends t['Disposable']{constructor(){const _0x116dde=_0xbf25c6;super(),C(this,'_id',(0x0,t['generateRandomId'])()),C(this,'_selfUnitIDs',new Set()),C(this,'_unitOnClients',new Map()),C(this,_0x116dde(0x2e2),null),C(this,'_clearOtherTimers',new Map()),C(this,_0x116dde(0x28a),new Map()),this[_0x116dde(0x2b2)]();}[_0xbf25c6(0x130)](){const _0x1e9ddf=_0xbf25c6;super['dispose'](),this[_0x1e9ddf(0x15b)][_0x1e9ddf(0x1a7)]((_0x7718df,_0x4a2c30)=>this[_0x1e9ddf(0x337)](_0x4a2c30)),this[_0x1e9ddf(0x2e2)]&&window[_0x1e9ddf(0x257)](this[_0x1e9ddf(0x2e2)]);}[_0xbf25c6(0x25a)](_0x33bd91){const _0x45fd87=_0xbf25c6;return this[_0x45fd87(0x316)](_0x33bd91)[_0x45fd87(0x33d)]((0x0,r[_0x45fd87(0x184)])());}['editingUnit'](_0x5b8952){const _0x49f49d=_0xbf25c6;this['_selfUnitIDs'][_0x49f49d(0x162)]===0x0&&this[_0x49f49d(0x276)](),this[_0x49f49d(0x379)][_0x49f49d(0x1ab)](_0x5b8952),this['_send']({'type':0x0,'memberID':this[_0x49f49d(0x1bc)],'unitIDs':[_0x5b8952],'isForwarded':!0x1});}[_0xbf25c6(0x15c)](_0x5a1b70){const _0x262aae=_0xbf25c6;this['_selfUnitIDs'][_0x262aae(0x151)](_0x5a1b70),this[_0x262aae(0x379)]['size']===0x0&&this[_0x262aae(0x2e2)]&&window[_0x262aae(0x257)](this[_0x262aae(0x2e2)]);}[_0xbf25c6(0x2b2)](){const _0x318689=_0xbf25c6;this[_0x318689(0x154)]((0x0,t[_0x318689(0x2f0)])((0x0,r['fromEvent'])(window,_0x318689(0x1b2))[_0x318689(0x230)](_0x4276e8=>{const _0xea288e=_0x318689;if(_0x4276e8[_0xea288e(0x2fa)]!==he||!_0x4276e8[_0xea288e(0x33b)])return;let _0x460aa1=JSON[_0xea288e(0xdd)](_0x4276e8[_0xea288e(0x33b)]);this['_handleEvent'](_0x460aa1);}))),window[_0x318689(0x2eb)](_0x318689(0x36b),()=>this[_0x318689(0x25b)]({'type':0x1,'memberID':this[_0x318689(0x1bc)],'unitIDs':Array[_0x318689(0x240)](this['_selfUnitIDs'])}));}[_0xbf25c6(0x2df)](_0x4cb941){const _0x54c8d5=_0xbf25c6;switch(_0x4cb941[_0x54c8d5(0x1ae)]){case 0x0:this[_0x54c8d5(0x226)](_0x4cb941);break;case 0x1:this[_0x54c8d5(0x31f)](_0x4cb941);break;case 0x2:this['_handleHeartbeatEvent'](_0x4cb941);break;}}[_0xbf25c6(0x226)](_0x12eaea){const _0x5abf58=_0xbf25c6;let {unitIDs:_0x508be8,memberID:_0x27d5a9,isForwarded:_0xa65191}=_0x12eaea;_0x508be8[_0x5abf58(0x1a7)](_0x45e92f=>{const _0x2c19e1=_0x5abf58;if(!_0xa65191&&this[_0x2c19e1(0x357)][_0x2c19e1(0x17f)](_0x45e92f)&&this['_ensureSubject'](_0x45e92f)['next'](e[_0x2c19e1(0x1b4)][_0x2c19e1(0x1c1)]),!this['_unitOnClients']['has'](_0x45e92f)||!this[_0x2c19e1(0x357)][_0x2c19e1(0x277)](_0x45e92f)[_0x2c19e1(0x17f)](_0x27d5a9)){let _0x64b5d=this[_0x2c19e1(0x357)][_0x2c19e1(0x277)](_0x45e92f)||new Set();_0x64b5d[_0x2c19e1(0x1ab)](_0x27d5a9),this['_unitOnClients'][_0x2c19e1(0x1fb)](_0x45e92f,_0x64b5d),this[_0x2c19e1(0x2f6)](_0x27d5a9);}}),_0xa65191||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x5abf58(0x379)]],'isForwarded':!0x0});}[_0xbf25c6(0x2f6)](_0x56d64f){const _0x4787d0=_0xbf25c6;this[_0x4787d0(0x337)](_0x56d64f);let _0x1d5bd5=window[_0x4787d0(0x18f)](()=>{const _0x3fb0c6=_0x4787d0;this[_0x3fb0c6(0x357)][_0x3fb0c6(0x1a7)](_0x4e374d=>{const _0x21f335=_0x3fb0c6;_0x4e374d[_0x21f335(0x151)](_0x56d64f);});},me*0x2);this['_clearOtherTimers'][_0x4787d0(0x1fb)](_0x56d64f,_0x1d5bd5);}[_0xbf25c6(0x337)](_0x4513f5){const _0x4c07ac=_0xbf25c6;if(this[_0x4c07ac(0x15b)]['has'](_0x4513f5)){let _0x312b88=this[_0x4c07ac(0x15b)][_0x4c07ac(0x277)](_0x4513f5);_0x312b88&&window[_0x4c07ac(0x36a)](_0x312b88),this[_0x4c07ac(0x15b)][_0x4c07ac(0x1fb)](_0x4513f5,null);}}[_0xbf25c6(0x31f)](_0x239921){const _0x4df2b6=_0xbf25c6;let {memberID:_0x102c36,unitIDs:_0x45937d}=_0x239921;_0x45937d[_0x4df2b6(0x1a7)](_0x561e20=>{const _0x505654=_0x4df2b6;var _0x4b22d0;let _0x3ff008=this['_unitOnClients'][_0x505654(0x277)](_0x561e20);_0x3ff008&&(_0x3ff008[_0x505654(0x151)](_0x102c36),(_0x4b22d0=this['_ensureSubject'](_0x561e20))==null||_0x4b22d0[_0x505654(0x1e2)](_0x3ff008[_0x505654(0x162)]===0x0?e[_0x505654(0x1b4)]['NO_OTHER_CLIENTS_EDITING']:e[_0x505654(0x1b4)][_0x505654(0x1c1)]));}),this[_0x4df2b6(0x337)](_0x102c36);}[_0xbf25c6(0x218)](_0x45f6fa){const _0x1321a0=_0xbf25c6;this[_0x1321a0(0x2f6)](_0x45f6fa['memberID']);}[_0xbf25c6(0x25b)](_0x57c68b){const _0x13e395=_0xbf25c6;localStorage[_0x13e395(0x2bb)](he,JSON[_0x13e395(0x23f)](_0x57c68b));}['_scheduleHeartbeat'](){const _0x19543b=_0xbf25c6;this[_0x19543b(0x2e2)]=window[_0x19543b(0xe6)](()=>{const _0x158d58=_0x19543b;this[_0x158d58(0x25b)]({'type':0x2,'memberID':this[_0x158d58(0x1bc)]});},me);}[_0xbf25c6(0x316)](_0x55f710){const _0x44c825=_0xbf25c6;return this[_0x44c825(0x28a)]['has'](_0x55f710)||this[_0x44c825(0x28a)]['set'](_0x55f710,new r[(_0x44c825(0x2da))](e[_0x44c825(0x1b4)][_0x44c825(0x25d)])),this[_0x44c825(0x28a)]['get'](_0x55f710);}};Object['defineProperty'](exports,_0xbf25c6(0x2f7),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0xbf25c6(0x35a)](exports,_0xbf25c6(0x2e1),{'enumerable':!0x0,'get':function(){return O;}}),Object[_0xbf25c6(0x35a)](exports,'DesktopCollaborationStatusDisplayController',{'enumerable':!0x0,'get':function(){return E;}}),exports['IURLService']=D,Object[_0xbf25c6(0x35a)](exports,_0xbf25c6(0x302),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0xbf25c6(0x1f4)]=z,Object[_0xbf25c6(0x35a)](exports,_0xbf25c6(0x205),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0xbf25c6(0x210)]=ge,exports[_0xbf25c6(0xe9)]=X;
@@ -0,0 +1 @@
1
+ function _0x2e7f(){const _0xf9c20f=['exports','10ZBkVMF','6800982jDPoYl','فشل\x20الاتصال،\x20يرجى\x20التحقق\x20من\x20شبكتك.','بدأ\x20حساب\x20الصيغة.','إجراءاتك\x20تتعارض\x20مع\x20أذونات\x20الخادم.\x20يرجى\x20حفظ\x20تعديلاتك\x20المحلية\x20في\x20مكان\x20آخر\x20حيث\x20سيتم\x20تجاهلها\x20بعد\x20تحديث\x20الصفحة.','7XHIIJj','غرفة\x20التعاون\x20ممتلئة.\x20سيتم\x20حفظ\x20تعديلاتك\x20محليًا.','2kJRVfU','تمت\x20المزامنة','انقر\x20لإعادة\x20الاتصال','2343272mBvnBR','فتحت\x20نفس\x20الملف\x20في\x20علامة\x20تبويب\x20أخرى.\x20في\x20حالة\x20فقدان\x20البيانات،\x20لا\x20يمكنك\x20التحرير\x20في\x20علامة\x20التبويب\x20هذه.','تم\x20إلغاء\x20امتيازات\x20التحرير\x20لأنه\x20تم\x20إغلاق\x20غرفة\x20التعاون.','انتهت\x20صلاحية\x20تسجيل\x20الدخول\x20الخاص\x20بك،\x20انقر\x20فوق\x20موافق\x20لإعادة\x20تسجيل\x20الدخول،\x20وانقر\x20فوق\x20إلغاء\x20لحفظ\x20تعديلاتك\x20المحلية.','1147701JFQHSY','1089772YSXOWk','9500211HlsMbv','جارٍ\x20المزامنة...','الخادم\x20لا\x20يستجيب\x20لطلب\x20التعاون\x20الخاص\x20بك.\x20سيتم\x20حفظ\x20تعديلاتك\x20محليًا.','غير\x20قادر\x20على\x20إجراء\x20حساب\x20الصيغة\x20في\x20هذا\x20الوقت.\x20يرجى\x20المحاولة\x20مرة\x20أخرى\x20لاحقًا.','غير\x20متصل،\x20سيتم\x20حفظ\x20التعديلات\x20محليًا','فشل\x20الاتصال،\x20سنعيد\x20المحاولة\x20بعد\x20قليل.','2776760UCXWQj','5710805uGWVUe','قائمة\x20انتظار\x20حساب\x20الصيغة\x20ممتلئة،\x20في\x20انتظار\x20خانة\x20متاحة...','ملف\x20محلي','خطأ\x20في\x20المصادقة','تعارضات\x20التحرير'];_0x2e7f=function(){return _0xf9c20f;};return _0x2e7f();}function _0x5c3e(_0x5e420a,_0x481fb0){_0x5e420a=_0x5e420a-0x12e;const _0x2e7f8a=_0x2e7f();let _0x5c3e0d=_0x2e7f8a[_0x5e420a];return _0x5c3e0d;}const _0x2e7d88=_0x5c3e;(function(_0x1a747d,_0x5a1de6){const _0x1e57f9=_0x5c3e,_0x507373=_0x1a747d();while(!![]){try{const _0x5b5e27=-parseInt(_0x1e57f9(0x143))/0x1+-parseInt(_0x1e57f9(0x13b))/0x2*(parseInt(_0x1e57f9(0x142))/0x3)+parseInt(_0x1e57f9(0x14a))/0x4+parseInt(_0x1e57f9(0x12e))/0x5+-parseInt(_0x1e57f9(0x135))/0x6+parseInt(_0x1e57f9(0x139))/0x7*(parseInt(_0x1e57f9(0x13e))/0x8)+-parseInt(_0x1e57f9(0x144))/0x9*(-parseInt(_0x1e57f9(0x134))/0xa);if(_0x5b5e27===_0x5a1de6)break;else _0x507373['push'](_0x507373['shift']());}catch(_0x45c565){_0x507373['push'](_0x507373['shift']());}}}(_0x2e7f,0x8d5bb));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x2e7d88(0x13d)}},'collabStatus':{'fetchMiss':'جارٍ\x20مزامنة\x20بيانات\x20الخادم...','conflict':_0x2e7d88(0x132),'notCollab':_0x2e7d88(0x130),'synced':_0x2e7d88(0x13c),'syncing':_0x2e7d88(0x145),'offline':_0x2e7d88(0x148)},'session':{'connection-failed':_0x2e7d88(0x136),'will-retry':_0x2e7d88(0x149),'room-full':_0x2e7d88(0x13a),'collaboration-timeout':_0x2e7d88(0x146)},'conflict':{'title':'تعارض\x20في\x20التعاون','content':'هناك\x20تعارض\x20بين\x20نسختك\x20المحلية\x20والنسخة\x20على\x20الخادم.\x20يرجى\x20حفظ\x20تعديلاتك\x20المحلية،\x20لأنها\x20ستُفقد\x20عند\x20إعادة\x20تحميل\x20الصفحة.'},'permission':{'title':_0x2e7d88(0x131),'content':_0x2e7d88(0x138)},'collaboration':{'offline-data-not-saved':'لديك\x20تعديلات\x20غير\x20متصلة\x20لم\x20يتم\x20حفظها\x20على\x20الخادم.\x20يرجى\x20التحقق\x20من\x20شبكتك\x20والمحاولة\x20مرة\x20أخرى.','single-unit':{'warning':_0x2e7d88(0x13f)},'closeRoom':_0x2e7d88(0x140)},'auth':{'needGotoLoginAlert':_0x2e7d88(0x141)},'formula':{'calculation':{'started':_0x2e7d88(0x137),'waiting':_0x2e7d88(0x12f),'unable':_0x2e7d88(0x147)}}}};module[_0x2e7d88(0x133)]=e;