@univerjs-pro/collaboration-client-ui 1.1.0 → 1.2.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 (94) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.css +4 -0
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/config/config.d.ts +3 -3
  66. package/lib/types/controllers/collaboration-client-ui.controller.d.ts +24 -3
  67. package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +2 -6
  68. package/lib/types/index.d.ts +0 -1
  69. package/lib/types/locale/en-US.d.ts +4 -0
  70. package/lib/umd/facade.js +1 -1
  71. package/lib/umd/index.js +1 -1
  72. package/lib/umd/locale/ar-SA.js +1 -1
  73. package/lib/umd/locale/ca-ES.js +1 -1
  74. package/lib/umd/locale/de-DE.js +1 -1
  75. package/lib/umd/locale/en-US.js +1 -1
  76. package/lib/umd/locale/es-ES.js +1 -1
  77. package/lib/umd/locale/fa-IR.js +1 -1
  78. package/lib/umd/locale/fr-FR.js +1 -1
  79. package/lib/umd/locale/id-ID.js +1 -1
  80. package/lib/umd/locale/it-IT.js +1 -1
  81. package/lib/umd/locale/ja-JP.js +1 -1
  82. package/lib/umd/locale/ko-KR.js +1 -1
  83. package/lib/umd/locale/pl-PL.js +1 -1
  84. package/lib/umd/locale/pt-BR.js +1 -1
  85. package/lib/umd/locale/ru-RU.js +1 -1
  86. package/lib/umd/locale/sk-SK.js +1 -1
  87. package/lib/umd/locale/vi-VN.js +1 -1
  88. package/lib/umd/locale/zh-CN.js +1 -1
  89. package/lib/umd/locale/zh-HK.js +1 -1
  90. package/lib/umd/locale/zh-TW.js +1 -1
  91. package/package.json +17 -18
  92. package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -17
  93. package/lib/types/services/url/url.service.d.ts +0 -12
  94. package/lib/types/services/url/web-url.service.d.ts +0 -10
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4a4f45=_0xd371;(function(_0x330247,_0x2e18a1){const _0xed7684=_0xd371,_0x461daf=_0x330247();while(!![]){try{const _0x41023d=parseInt(_0xed7684(0x399))/0x1+parseInt(_0xed7684(0x350))/0x2+-parseInt(_0xed7684(0x2b0))/0x3*(parseInt(_0xed7684(0x335))/0x4)+parseInt(_0xed7684(0x269))/0x5*(parseInt(_0xed7684(0x37c))/0x6)+parseInt(_0xed7684(0x385))/0x7*(parseInt(_0xed7684(0x21f))/0x8)+parseInt(_0xed7684(0x417))/0x9*(parseInt(_0xed7684(0x425))/0xa)+parseInt(_0xed7684(0x28d))/0xb*(-parseInt(_0xed7684(0x391))/0xc);if(_0x41023d===_0x2e18a1)break;else _0x461daf['push'](_0x461daf['shift']());}catch(_0x2d1242){_0x461daf['push'](_0x461daf['shift']());}}}(_0x55ab,0x2a2a9),Object['defineProperty'](exports,Symbol[_0x4a4f45(0x2e9)],{'value':_0x4a4f45(0x38c)}));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-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x2cd692){const _0x395757=_0x4a4f45;switch(_0x2cd692){case e[_0x395757(0x24e)][_0x395757(0x3ef)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x31a)],{}),'colorClass':_0x395757(0x22e),'i18nKey':_0x395757(0x13b),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':'static'};case e['CollaborationStatus'][_0x395757(0x17e)]:return{'icon':(0x0,c['jsx'])(o[_0x395757(0x31a)],{}),'colorClass':_0x395757(0x3f3),'i18nKey':_0x395757(0x297),'clickable':!0x1,'indicator':'static'};case e[_0x395757(0x24e)][_0x395757(0x2b5)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x415)],{}),'colorClass':_0x395757(0x272),'i18nKey':_0x395757(0x29f),'clickable':!0x1,'indicator':_0x395757(0x206)};case e[_0x395757(0x24e)][_0x395757(0x274)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x1a2)],{}),'colorClass':_0x395757(0x3bc),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x395757(0x2bc)};case e[_0x395757(0x24e)][_0x395757(0x2bb)]:case e[_0x395757(0x24e)][_0x395757(0x2d0)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':_0x395757(0x272),'i18nKey':_0x395757(0x407),'clickable':!0x1,'indicator':_0x395757(0x206)};case e[_0x395757(0x24e)][_0x395757(0x3f5)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x395757(0x206)};case e['CollaborationStatus'][_0x395757(0x1b5)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x1a2)],{}),'colorClass':_0x395757(0x128),'i18nKey':_0x395757(0x346),'clickable':!0x1,'indicator':_0x395757(0x2bc)};}}function te(_0x34483b){const _0x3c1898=_0x4a4f45;let {status$:_0x461a0d}=_0x34483b,_0x409f25=(0x0,n['useObservable'])(_0x461a0d,e[_0x3c1898(0x24e)][_0x3c1898(0x274)]),_0x551d31=(0x0,n[_0x3c1898(0x384)])(t[_0x3c1898(0x188)]),_0x482046=(0x0,n[_0x3c1898(0x384)])(e[_0x3c1898(0x3f7)]),_0x40d828=(0x0,s[_0x3c1898(0x2b3)])(()=>ee(_0x409f25),[_0x409f25]),_0x1cd47f=_0x409f25!==e[_0x3c1898(0x24e)][_0x3c1898(0x3ef)],_0x15901b=_0x551d31['t'](_0x40d828[_0x3c1898(0x27a)]),_0x2862ea=_0x40d828['tooltipKey']?_0x551d31['t'](_0x40d828[_0x3c1898(0x298)]):_0x15901b,_0x1222a7=(0x0,s[_0x3c1898(0x3ca)])(()=>{const _0x1baf6a=_0x3c1898;_0x1cd47f||_0x482046[_0x1baf6a(0x1ac)]();},[_0x1cd47f,_0x482046]),_0x57982d=(0x0,s[_0x3c1898(0x3ca)])(_0x389dde=>{const _0x27b867=_0x3c1898;!_0x1cd47f&&(_0x389dde[_0x27b867(0x3d9)]===_0x27b867(0x39a)||_0x389dde[_0x27b867(0x3d9)]==='\x20')&&(_0x389dde['preventDefault'](),_0x482046[_0x27b867(0x1ac)]());},[_0x1cd47f,_0x482046]),_0xa78277=(0x0,c['jsx'])(_0x3c1898(0x2e3),{'className':(0x0,a['clsx'])(_0x3c1898(0x226),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x40d828[_0x3c1898(0x124)],{'univer-animate-spin':_0x40d828[_0x3c1898(0x1f3)]===_0x3c1898(0x206),'univer-animate-pulse':_0x40d828[_0x3c1898(0x1f3)]==='pulse'}),'aria-hidden':'true','children':_0x40d828[_0x3c1898(0x419)]}),_0x419966=(0x0,c['jsx'])('span',{'className':(0x0,a[_0x3c1898(0x40d)])(_0x3c1898(0x226),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x3c1898(0x1db),_0x3c1898(0x2d4),_0x3c1898(0x20f),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x40d828[_0x3c1898(0x329)],'univer-cursor-default':!_0x40d828[_0x3c1898(0x329)]}),'children':_0xa78277});return _0x40d828['clickable']?(0x0,c[_0x3c1898(0x12b)])(a[_0x3c1898(0x1ee)],{'title':_0x2862ea,'placement':_0x3c1898(0x1ef),'children':(0x0,c[_0x3c1898(0x12b)])(_0x3c1898(0x1c6),{'type':_0x3c1898(0x1c6),'onClick':_0x1222a7,'onKeyDown':_0x57982d,'className':(0x0,a['clsx'])(_0x3c1898(0x351),'univer-border-none\x20univer-bg-transparent',_0x3c1898(0x160),'univer-appearance-none'),'aria-label':_0x15901b+_0x3c1898(0x1bd)+_0x2862ea,'role':_0x3c1898(0x30b),'aria-live':_0x3c1898(0x2a3),'aria-atomic':'true','children':_0x419966})}):(0x0,c[_0x3c1898(0x12b)])(a[_0x3c1898(0x1ee)],{'title':_0x2862ea,'placement':'bottom','children':(0x0,c[_0x3c1898(0x12b)])('div',{'className':(0x0,a[_0x3c1898(0x40d)])(_0x3c1898(0x351),'univer-border-none\x20univer-bg-transparent',_0x3c1898(0x160)),'aria-label':_0x15901b,'role':_0x3c1898(0x30b),'aria-live':_0x3c1898(0x2a3),'aria-atomic':_0x3c1898(0x16e),'children':_0x419966})});}function y(_0x54fb50){'@babel/helpers - typeof';const _0x2fe7d4=_0x4a4f45;return y=typeof Symbol==_0x2fe7d4(0x1b1)&&typeof Symbol[_0x2fe7d4(0x203)]==_0x2fe7d4(0x218)?function(_0x17f07f){return typeof _0x17f07f;}:function(_0x5c75d8){const _0xfa0bff=_0x2fe7d4;return _0x5c75d8&&typeof Symbol==_0xfa0bff(0x1b1)&&_0x5c75d8['constructor']===Symbol&&_0x5c75d8!==Symbol[_0xfa0bff(0x259)]?_0xfa0bff(0x218):typeof _0x5c75d8;},y(_0x54fb50);}function ne(_0x2adea8,_0x129518){const _0x1efe18=_0x4a4f45;if(y(_0x2adea8)!=_0x1efe18(0x362)||!_0x2adea8)return _0x2adea8;var _0x2328c5=_0x2adea8[Symbol['toPrimitive']];if(_0x2328c5!==void 0x0){var _0x1e1e94=_0x2328c5[_0x1efe18(0x358)](_0x2adea8,_0x129518||_0x1efe18(0x3f9));if(y(_0x1e1e94)!=_0x1efe18(0x362))return _0x1e1e94;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x129518==='string'?String:Number)(_0x2adea8);}function re(_0x4ec88c){const _0x45252c=_0x4a4f45;var _0x1af578=ne(_0x4ec88c,_0x45252c(0x2cf));return y(_0x1af578)=='symbol'?_0x1af578:_0x1af578+'';}function b(_0x29c31d,_0x58990d,_0x3a6fe1){const _0x5cfe4e=_0x4a4f45;return(_0x58990d=re(_0x58990d))in _0x29c31d?Object[_0x5cfe4e(0x2e7)](_0x29c31d,_0x58990d,{'value':_0x3a6fe1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x29c31d[_0x58990d]=_0x3a6fe1,_0x29c31d;}function x(_0x4bd34c,_0x1aa596){return function(_0x328e4a,_0x236249){_0x1aa596(_0x328e4a,_0x236249,_0x4bd34c);};}function S(_0x454497,_0x388ad3,_0xed2651,_0x30c0f2){const _0xd373bf=_0x4a4f45;var _0x5840cb=arguments[_0xd373bf(0x18e)],_0x47d545=_0x5840cb<0x3?_0x388ad3:_0x30c0f2===null?_0x30c0f2=Object[_0xd373bf(0x360)](_0x388ad3,_0xed2651):_0x30c0f2,_0x19439c;if(typeof Reflect==_0xd373bf(0x362)&&typeof Reflect[_0xd373bf(0x30c)]==_0xd373bf(0x1b1))_0x47d545=Reflect[_0xd373bf(0x30c)](_0x454497,_0x388ad3,_0xed2651,_0x30c0f2);else{for(var _0x46b324=_0x454497[_0xd373bf(0x18e)]-0x1;_0x46b324>=0x0;_0x46b324--)(_0x19439c=_0x454497[_0x46b324])&&(_0x47d545=(_0x5840cb<0x3?_0x19439c(_0x47d545):_0x5840cb>0x3?_0x19439c(_0x388ad3,_0xed2651,_0x47d545):_0x19439c(_0x388ad3,_0xed2651))||_0x47d545);}return _0x5840cb>0x3&&_0x47d545&&Object[_0xd373bf(0x2e7)](_0x388ad3,_0xed2651,_0x47d545),_0x47d545;}let C=class extends t[_0x4a4f45(0x423)]{constructor(_0x42df4f,_0x3b28b5,_0x54a749,_0x4b6e91,_0x6c67e7){const _0x32b76f=_0x4a4f45;super(),this[_0x32b76f(0x25c)]=_0x42df4f,this[_0x32b76f(0x38f)]=_0x3b28b5,this['_collaborationController']=_0x54a749,this[_0x32b76f(0x24a)]=_0x4b6e91,this[_0x32b76f(0x159)]=_0x6c67e7,b(this,_0x32b76f(0x356),new r[(_0x32b76f(0x154))](e[_0x32b76f(0x24e)]['NOT_COLLAB'])),b(this,_0x32b76f(0x33b),new Map()),this[_0x32b76f(0x25f)](),this[_0x32b76f(0x2eb)](),this[_0x32b76f(0x320)]();}[_0x4a4f45(0x288)](){const _0x755723=_0x4a4f45;this['_presenceStatusRegistrations'][_0x755723(0x22c)](_0xf5bf97=>_0xf5bf97[_0x755723(0x288)]()),this[_0x755723(0x33b)][_0x755723(0x337)](),this[_0x755723(0x356)][_0x755723(0x2c6)](),super['dispose']();}['_initStatusListener'](){const _0x2ef0cd=_0x4a4f45;this[_0x2ef0cd(0x2ad)]((0x0,r[_0x2ef0cd(0x42a)])(this['_univerInstanceService']['focused$'],this[_0x2ef0cd(0x25c)][_0x2ef0cd(0x135)](t[_0x2ef0cd(0x397)][_0x2ef0cd(0x19b)]),this[_0x2ef0cd(0x25c)][_0x2ef0cd(0x135)](t['UniverInstanceType'][_0x2ef0cd(0x379)]))[_0x2ef0cd(0x237)]((0x0,i[_0x2ef0cd(0x19c)])(()=>ie(this[_0x2ef0cd(0x25c)])),(0x0,i[_0x2ef0cd(0x1ea)])(),(0x0,r[_0x2ef0cd(0x3cd)])(_0x12b9cc=>_0x12b9cc?this['_collaborationController'][_0x2ef0cd(0x359)](_0x12b9cc):(0x0,r['of'])(null)),(0x0,r[_0x2ef0cd(0x3cd)])(_0x42a8bf=>_0x42a8bf?_0x42a8bf[_0x2ef0cd(0x145)]:(0x0,r['of'])(e['CollaborationStatus'][_0x2ef0cd(0x274)])))[_0x2ef0cd(0x195)](_0x59ccd5=>{const _0x3f5780=_0x2ef0cd;this[_0x3f5780(0x356)]['next'](_0x59ccd5);}));}[_0x4a4f45(0x25f)](){const _0x4cf645=_0x4a4f45;this[_0x4cf645(0x2ad)](this[_0x4cf645(0x24a)][_0x4cf645(0x2fe)](n[_0x4cf645(0x2f5)][_0x4cf645(0x16c)],()=>(0x0,n['connectInjector'])(w({'status$':this[_0x4cf645(0x356)]['asObservable']()}),this[_0x4cf645(0x38f)])));}[_0x4a4f45(0x320)](){const _0x161911=_0x4a4f45;let _0x3197a6=this[_0x161911(0x159)][_0x161911(0x153)]['subscribe'](_0x41baab=>{const _0x80738=_0x161911;this[_0x80738(0x198)](_0x41baab);});this[_0x161911(0x2ad)]((0x0,t[_0x161911(0x2be)])(()=>_0x3197a6[_0x161911(0x372)]()));}[_0x4a4f45(0x198)](_0x1b5424){const _0x5e5ba6=_0x4a4f45;let _0x17d3c9=new Map(_0x1b5424[_0x5e5ba6(0x3e3)](_0x158c64=>_0x158c64[_0x5e5ba6(0x1ed)]!=null)['map'](_0x5b841d=>[_0x5b841d[_0x5e5ba6(0x348)],_0x5b841d]));this[_0x5e5ba6(0x33b)][_0x5e5ba6(0x22c)]((_0x4be28a,_0x624dc2)=>{const _0x4460c6=_0x5e5ba6;_0x17d3c9[_0x4460c6(0x33a)](_0x624dc2)||(_0x4be28a[_0x4460c6(0x288)](),this[_0x4460c6(0x33b)][_0x4460c6(0x426)](_0x624dc2));}),_0x17d3c9['forEach']((_0x560373,_0x7265c5)=>{const _0x4e5069=_0x5e5ba6;this[_0x4e5069(0x33b)]['has'](_0x7265c5)||this[_0x4e5069(0x277)](_0x560373);});}[_0x4a4f45(0x277)](_0x1b70d8){const _0x387324=_0x4a4f45;let _0x2cfc79=_0x1b70d8['statusUIPart'];if(!_0x2cfc79)return;let _0x23d796=new t[(_0x387324(0x403))](),_0x57d1c8=new r[(_0x387324(0x154))](e[_0x387324(0x24e)][_0x387324(0x274)]);_0x23d796['add']((0x0,t[_0x387324(0x2be)])(()=>_0x57d1c8[_0x387324(0x2c6)]())),_0x23d796[_0x387324(0x307)](this[_0x387324(0x24a)][_0x387324(0x2fe)](_0x2cfc79,()=>(0x0,n[_0x387324(0x282)])(w({'status$':_0x57d1c8[_0x387324(0x34c)]()}),this[_0x387324(0x38f)])));let _0x57b21f=this[_0x387324(0x25c)][_0x387324(0x135)](_0x1b70d8['unitType'])[_0x387324(0x237)]((0x0,i['map'])(_0x3e6f2b=>(_0x3e6f2b==null?void 0x0:_0x3e6f2b[_0x387324(0x370)]())??null),(0x0,i[_0x387324(0x1ea)])(),(0x0,r[_0x387324(0x3cd)])(_0xf83c07=>_0xf83c07?this[_0x387324(0x3d5)]['getCollabEntity$'](_0xf83c07):(0x0,r['of'])(null)),(0x0,r[_0x387324(0x3cd)])(_0x177378=>(_0x177378==null?void 0x0:_0x177378[_0x387324(0x145)])??(0x0,r['of'])(e[_0x387324(0x24e)][_0x387324(0x274)])))[_0x387324(0x195)](_0x55886b=>_0x57d1c8['next'](_0x55886b));_0x23d796[_0x387324(0x307)]((0x0,t['toDisposable'])(()=>_0x57b21f['unsubscribe']())),this['_presenceStatusRegistrations'][_0x387324(0x1a1)](_0x1b70d8[_0x387324(0x348)],_0x23d796);}};C=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t['Injector'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e['CollaborationController'])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t[_0x4a4f45(0x289)])(n[_0x4a4f45(0x1b7)]))],C);function ie(_0xe42414){const _0x3557f0=_0x4a4f45;let _0x1fa9a9=_0xe42414['getFocusedUnit'](),_0x5988d2=_0x1fa9a9==null?void 0x0:_0x1fa9a9[_0x3557f0(0x370)]();if(_0x5988d2&&!(0x0,t[_0x3557f0(0x2b7)])(_0x5988d2))return _0x5988d2;let _0x41530e=_0xe42414['getCurrentUnitOfType'](t[_0x3557f0(0x397)]['UNIVER_DOC']),_0x4b93b8=_0x41530e==null?void 0x0:_0x41530e[_0x3557f0(0x370)]();if(_0x4b93b8&&!(0x0,t['isInternalEditorID'])(_0x4b93b8))return _0x4b93b8;let _0x27de35=_0xe42414[_0x3557f0(0x2dc)](t[_0x3557f0(0x397)]['UNIVER_SHEET']);if(_0x27de35)return _0x27de35['getUnitId']();let _0x1f54eb=_0xe42414[_0x3557f0(0x413)](t[_0x3557f0(0x397)][_0x3557f0(0x19b)])['find'](_0x1417aa=>!(0x0,t['isInternalEditorID'])(_0x1417aa[_0x3557f0(0x370)]()));return _0x1f54eb?_0x1f54eb['getUnitId']():null;}function w(_0x2d65bd){let {status$:_0x3da216}=_0x2d65bd;return function(){const _0x55ff28=_0xd371;return(0x0,c[_0x55ff28(0x12b)])(te,{'status$':_0x3da216});};}var ae=_0x4a4f45(0x319),oe=_0x4a4f45(0x1c1);const T={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':t[_0x4a4f45(0x150)][_0x4a4f45(0x240)],'handler':(_0x5c041b,_0x48cc48)=>{const _0x28064b=_0x4a4f45;let _0x23d72c=_0x5c041b[_0x28064b(0x39f)](n[_0x28064b(0x1b7)])[_0x28064b(0x39f)](_0x48cc48[_0x28064b(0x348)]);if(!_0x23d72c)return!0x1;switch(_0x48cc48['update']['type']){case _0x28064b(0x1a1):return _0x23d72c['setRemotePresence'](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x1a0)]),!0x0;case _0x28064b(0x221):return _0x23d72c[_0x28064b(0x352)](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x3ad)],_0x48cc48[_0x28064b(0x410)][_0x28064b(0x1f0)]),!0x0;case'clear':return _0x23d72c[_0x28064b(0x1f5)](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x3ad)]),!0x0;default:return!0x1;}}},se={};let E=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x31eff7,_0x3fc7e2){const _0x4001f5=_0x4a4f45;super(),this['_docClipboardService']=_0x31eff7,this['_imageIoService']=_0x3fc7e2,this[_0x4001f5(0x332)]();}[_0x4a4f45(0x332)](){const _0x1f5eb7=_0x4a4f45;let _0x2cc5e7=this;this[_0x1f5eb7(0x2ad)](this[_0x1f5eb7(0x1e8)]['addClipboardHook']({'onBeforePasteImage':async _0x282680=>{const _0x437040=_0x1f5eb7;let _0x377d76=await _0x2cc5e7[_0x437040(0x28f)]['saveImage'](_0x282680);return _0x377d76?{'source':_0x377d76[_0x437040(0x167)],'imageSourceType':_0x377d76[_0x437040(0x3b4)]}:null;}}));}};function _0x55ab(){const _0x370281=['_textBubble','EffectRefRangId','_dispose$','_onCursorUpdate','handleInsertCol','[Unhandled\x20Rejection]:\x20','transformMutationsWithChangeset','registerComponent','_anchor','_startDocCollabCursor','_offsetY','purple.300','getItem','params','_revisionService','message','add','_uploadLog','getTypeOfUnitAdded$','visible','status','decorate','collabCursorState$','isActive','ColorKit','resize','jsxs','_adapterRegistry','userId','_assignedColors','find','_clearTimeoutState','setItem','_cursorInfo$','@univerjs-pro/collaboration-client-ui','OffLineIcon','right','Subject','getCoordRelativeToViewport','_getAnchorBounding','LOADING_BLOCKS','_initPresenceStatusComponents','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','timer','subunit','_getSaveTimeout','enableUrlUnitLoader','isEditing','_updateSubUnitFromURLParams','MoveRangeCommandId','clickable','_normalizeUserId','bold\x2013px\x20Arial,\x20sans-serif','UPDATE_CURSOR','_unitOnClients','transform','_range','assignAColorForMemberID','requireSession','_init','top','keys','716664nOPocd','_registerRenderDependencies','clear','highlightSecond','SheetCollabCursorShape','has','_presenceStatusRegistrations','replace','_beforeCloseService','selection','_highlightSecond','getOffsetConfig','onPointerMove$','collaboration-client-ui.session.collaboration-timeout','transformMutation','IURLService','MessageType','collaboration-client-ui.collabStatus.synced','isArray','unitType','_transformService','RevisionService','SHEET_VIEWPORT_KEY','asObservable','startsWith','isTransformMutationsWithChangesetSuccess','Rectangle','182420RGcsAv','univer-inline-flex\x20univer-items-center\x20univer-justify-center','removeRemotePresence','fromEventSubject','_docTransformIMECacheService','range','_status$','_handleHeartbeatEvent','call','getCollabEntity$','black','getMergeData','allSettled','endColumn','serializeRangeWithSheet','number','getOwnPropertyDescriptor','selectedIds','object','div','rgba','getLocalPresence','_disposed','timeoutId','_initDependencies','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','useObservable','_syncAdapters','setActiveRange','ILocalCacheService','_disabled','...','getUnitId','removeParam','unsubscribe','_pointerMoveDisposable','_memberService','hide','getDocumentSkeletonColumnPagePathInfo','tableId','column','UNIVER_SHEET','_handleLeaveEvent','memberID','171246utFbOp','getCurrentUser','text','_collabCursorState$','socket$','getColorFromTheme','IConfigService','_getScale','useDependency','5754OBMwCQ','GLOBAL','mergeOverrideWithDependencies','DeleteRangeMoveUpCommandId','newValue','loadedBlocks','_online','Module','online$','_docSkeleton','_injector','_render','5683596qHJHyX','_transformHistoryAndStateStack','getValue','save','_blinkIntervalTimer','_watchBlockProgress','UniverInstanceType','_showConflictCacheClearFailedNotification','48378OqRXXM','Enter','getUnitStatus$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN',',\x200.2)','fillStyle','get','catch','highlight','_updateURLWithCurrentState','_showConflictProcessingNotification','_blockProgressWatches','selections','_retryConflictCacheClear','_updateMessage','reason','[RemoteUniscriptService]:\x20no\x20focused\x20unit','unshift','alert','onMouseMove','unitId','_drawAnchor','code','IBeforeCloseService','_disposeEntity','push','name','imageSourceType','_cachedData','getTypeOfUnitDisposed$','onCommandExecuted','_scheduleClearOtherTimer','_labelHorizontalPosition','createInstance','_handleCursorUpdate','univer-text-gray-400','_clearRemotePresences','makeDirty','_scheduleSaving','presenceKind','override','Workbook','backupOfflineData','addEventListener','InsertRangeMoveRightCommandId','_send','collab-rect-range-','_labelPosition','[LogService\x20Error]:\x20','useCallback','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_docStateChangeManagerService','switchMap','focus','_stopBlinking','slice','/run/','_urlService','ILogService','snapshot-loading-','_collaborationController','getRenderUnitById','_getUserId','_clearOtherTimers','key','parseInt','size','_onCursorDelete','_selfUnitIDs','currentSkeleton$','columnIndex','color','with','lineTo','filter','Tools','_refreshCollabCursors','ERROR','NO_OTHER_CLIENTS_EDITING','USERS_LEAVE','_roomMembers$','_heartbeatTimer','_docSkeletonManagerService','CONFLICT_PROCESSING','getViewport','ErrorCode','OFFLINE','split','dispose$','SessionStatus','univer-text-orange-500','IRenderManagerService','PENDING','CONFLICT_CACHE_CLEAR_FAILED','CollaborationSessionService','mutations','default','_logService','filename','activeSheet$','transformByState','getCurrentSelections','_snapshotLoadingService','_initEntityListener','_listenToOnlineEvent','some','DisposableCollection','createSocket','_collabCursorController','wsSessionTicketUrl','collaboration-client-ui.collabStatus.syncing','prepareTransformSelections','replaceSelectionInfoWithoutRefresh','_disposeEntitiesForType','_saveTaskMap','values','clsx','every','setTimeout','update','FromArray','MemberService','getAllUnitsForType','pointer','LoadingMultiIcon','_retryingConflictCacheUnitIDs','135fyuWrU','setStateCache','icon','startColumn','_setupBeforeClosingHandler','textRanges','collaboration-client-ui.conflict.title','_id','roomMembers$','_colorIndex','_docTransformSelectionsService','_removeCollabCursors','Disposable','_blinkTimer','161030wuKqKz','delete','_initWindowErrorListener','kind','_sheetSkeletonManagerService','merge','visibilityState','#FFF','init','takeUntil','rgba(','endRow','_adapterDisposables','colorClass','_toggleOnline','colno','getColor','univer-text-green-500','_messageIds','loadUnit','jsx','parse','_instanceService','0.2)','Failed','_scheduleHeartbeat','_updateCollabCursors','startRow','_renderManagerService','_listenToOfflineEvent','getCurrentTypeOfUnit$','_document','triggerDblclick','_cursors','min','pushState','collaboration-client-ui.collabStatus.offline','\x20at\x20','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','next','search','_isBlinkVisible','ISocketService','_syncEditingCollabCursorService','debounce','now','status$','currentTheme$','addObjects','type','enableOfflineEditing','createIdentifier','_commandService','IImageIoService','DocSelectionManagerService','HTTPEventType','showText','CommandType','location','href','adapters$','BehaviorSubject','shareReplay','getParam','disableLocalCache','Unknown\x20user','_presenceAdapterRegistry','deepClone','saveTaskMap','fromEvent','onLine','_initUnhandledRejectionListener','stack','univer-m-0\x20univer-p-0','enableFrontendLog','BrowserCollaborationSocketService','getLocalCacheKey','_onRefRangeChange','flatMap','toISOString','source','_messageService','DOC_RANGE_TYPE','getActiveSheet','collaboration-client-ui.collaboration.closeRoom','HEADER_MENU','_getSheetObject','true','HEADER','eventID','_collaborationSessionService','bind','_notificationService','_docTransformStateCacheService','UnitStatus','engine','_startSheetCollabCursor','/universer-api/frontend/logs','Warning','_removeRemotePresence','getScrollXYInfoByViewport','SetTextSelectionsOperation','_memberID','CONFLICT','_localCacheService','getSheetBySheetId','unit','getSkeleton','state$','doc.mutation.rich-text-editing','DocIMEInputManagerService','runRefRangeMutations','clearTimeout','LocaleService','getConfig','getAncestorScale','SetWorksheetActivateCommand','data','executeCommand','length','searchParams','entityInit$','measureText','_themeService','UniverRenderEnginePlugin','SheetsSelectionsService','subscribe','_docSyncEditingCollabCursorService','getCollabCursors$','_syncPresenceStatusComponents','replaceState','fillText','UNIVER_DOC','map','HTTPService','SOCKET_FAILED_RETRY','setConfig','state','set','OnLineIcon','rgb','_adapter','getDocRanges','handleDeleteRangeMoveUp','runId','getFocusedUnit','_userManagerService','_scene','addHandlerCallback','reconnect','WebBrowserSingleActiveUnitService','transformRemoteChangeset','getMemberID','_clearBlockProgressWatch','function','redoState','offsetY','Shape','SYNCED','row','IUnitPresenceUIAdapterRegistry','_replaceConflictNotification','subUnitId','InsertRangeMoveDownCommandId','pageIndex','CollaborationUIEventService','\x20-\x20','roomMembers','addObject','Plugin','1.1.0','_colorAssignService','_initResize','_latestStates','startOffset','button','UniverLicensePlugin','_trackActiveSaveTask','lineno','_bindAdapter','ACTIVE_UNIT_EVENT_CHANNEL','Error','RegularPolygon','offline','storage','getUndoRedoMutationParamsCache','collaboration-client-ui.conflict.clearFailed','DEFAULT_WS_SESSION_TICKET_URL','_refRangeService','loadOfflineData','_context','toString','SetSelectionsOperation','editingUnit','onPointerEnter$','_pendingEntities','univer-transition-all\x20univer-duration-200','setParam','_hideTimer','ICommandService','registerCommand','focusedId','post','collaboration-client-ui.session.will-retry','_session',':backup:','syncEditingCollabCursor','_showText','_name','_docClipboardService','getMember','distinctUntilChanged','handleInsertRow','transformStateCache','statusUIPart','Tooltip','bottom','memberId','_ensureSubject','_sendLocalPresence','indicator','toRgbString','clearRemotePresences','getSheetObject','stream','disposeUnit','findNodePositionByCharIndex','exhaustSavingTask','VIEW_MAIN','UniverCollaborationClientPlugin','online','Rect','IUniverInstanceService','UniverCollaborationPlugin','saveOfflineData','[CollaborationDataLoaderController]','iterator','subscribeEvent','_drawRectRange','spin','_saveCache','snapshot-loading-timeout','restore','ITransformService','touchDependencies','shareInterval','Loading','send','dark:focus:!univer-ring-offset-gray-800','registerDependencies','_drawTextRange','event$','_toggleOffline','_initEvent','width','urlChange$','visibilitychange','symbol','labelPosition','options','combineLatest','_docSelectionManagerService','height','CollaborationController','2936ibnyXx','NodePositionConvertToCursor','remove','IUIPartsService','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','getStateCache','evenodd','univer-flex\x20univer-items-center\x20univer-justify-center','unload','enableDocumentCollaborationUI','registerRenderModule','setShapeProps','preventDefault','forEach','sheetID','univer-text-red-500','red.300','setInterval','UserManagerService','reload','getCurrentRevOfUnit','timeoutState$','columnGroupId','userID','pipe','_getSessionTicket','OTHER_CLIENTS_EDITING','registerRefRange','_dataLoaderService','_startBlinking','handleDeleteRangeMoveLeft','_localStorageService','_activeSaveTaskMap','OPERATION','from','moveTo','CollaborationEvent','SnapshotLoadStage','getRangePointData','unitID','_cursorShapes','_online$','_localeService','_uiPartsService','LOCAL_CACHE_INTERVAL_KEY','yellow.400','ILocalStorageService','CollaborationStatus','updateOfflineData','_unitStatus','CLOSE_ROOM','transformIMECache','drawWith','undoState','_removeClearOtherTimer','collaboration-client-ui.session.connection-failed','SetDocZoomRatioOperation','beginPath','prototype','_startEntity','content','_univerInstanceService','collaboration-client-ui.conflict.content','handleIRemoveRow','_initStatusComponent','ThemeService','finally','TEXT_RANGE_LAYER_INDEX','collaboration-client-ui.config','_shapes','DesktopCollaborationStatusDisplayController','includes','_updateLocalCursor','_lastPointer','25buyLkG','FOOTER','stringify','pageType','join','Injector','collaboration-client-ui.collaboration.single-unit.warning','debounceTime','UniverDocsPlugin','univer-text-blue-500','DocCollaborationEntity','NOT_COLLAB','sheetId','cursorInfo','_registerPresenceStatusComponent','_getLighterColor','body','i18nKey','_collabSessionService','_anchorDot','ISnapshotServerService','sessionTicket','error','RichTextEditingMutation','_configService','connectInjector','DocumentSkeletonPageType','_initialized','DataLoaderService','_doCreateSocket','_draw','dispose','Inject','all','IMessageService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','11royWuo','generateRandomId','_imageIoService','rgba(255,\x20255,\x20255,\x200.01)','timeout','_entityInit$','_highlight','setUndoRedoMutationParamsCache','show','cursorInfo$','collaboration-client-ui.collabStatus.conflict','tooltipKey','_handleHover','canRenderSelection','CollaborationUIEventId','clearInterval','_handleJoinEvent','_color','collaboration-client-ui.collabStatus.fetchMiss','handleInsertRangeMoveDown','getUnhiddenWorksheets','_conflictNotification','polite','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','JOIN_ROOM_FAILED','RxDisposable','collaboration-client-ui.snapshotLoading.refresh','_timeoutState$','setAlpha','_createSocketURL','history','_monkeyPatchLogService','disposeWithMe','enableLocalCache','primary','3SQPiFi','then','RemoveColCommandId','useMemo','sessionStatus$','FETCH_MISS','_backgroundColor','isInternalEditorID','_transformUndoRedoStack','_config','createElement','AWAITING','static','_eventUnsubscribe','toDisposable','Vector2','_entities','PERMISSION_DENIED','_cursor','CollaborationSocketService','ranges','arc','complete','InsertRowCommandId','RemoveRowCommandId','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getCoordByCell','font','_hovered','_collaborationUIEventService','_httpService','string','AWAITING_WITH_PENDING','small','collaboration-client-ui.conflict.processing','DocStateChangeManagerService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_initUserListener','Button','stage','setOffsetY','version','executionId','segmentPage','getCurrentUnitOfType','isFinite','getSheetId','removeItem','_isVisibleUnit','GET','isTransformMutationFailure','span','m1Prime','fillRule','backgroundColor','defineProperty','ONLINE','toStringTag','collaboration-client-ui.permission.title','_initStatusListener','_hover','m2Prime','COLORS','clearOfflineData','DeleteRangeMoveLeftCommandId','removeEventListener','closePath','UniverDocsUIPlugin','fill','BuiltInUIPart','timedOut'];_0x55ab=function(){return _0x370281;};return _0x55ab();}E=S([x(0x0,f['IDocClipboardService']),x(0x1,t[_0x4a4f45(0x14c)])],E);const ce=[_0x4a4f45(0x302),'jiqing.500','green.600',_0x4a4f45(0x22f),'blue.400',_0x4a4f45(0x24c)];var D=class extends t[_0x4a4f45(0x423)]{constructor(..._0x2b1df9){const _0xf9a30b=_0x4a4f45;super(..._0x2b1df9),b(this,_0xf9a30b(0x314),new Map()),b(this,_0xf9a30b(0x420),0x0);}[_0x4a4f45(0x330)](_0x21f9e0){const _0x599a0e=_0x4a4f45;if(this[_0x599a0e(0x314)][_0x599a0e(0x33a)](_0x21f9e0))return this[_0x599a0e(0x314)][_0x599a0e(0x39f)](_0x21f9e0);let _0x2b084f=ce[this[_0x599a0e(0x420)]];return this[_0x599a0e(0x420)]=(this[_0x599a0e(0x420)]+0x1)%ce[_0x599a0e(0x18e)],this[_0x599a0e(0x314)][_0x599a0e(0x1a1)](_0x21f9e0,_0x2b084f),_0x2b084f;}};function le(_0x1e5f15){const _0x5dcd73=_0x4a4f45;let _0x308d98='';for(let _0x51b984 of _0x1e5f15){let {startOffset:_0x11dc60,endOffset:_0xc31610,isActive:_0x2abfbe,rangeType:_0x12fd55,segmentId:_0x5cb9a4,segmentPage:_0x2be2a5}=_0x51b984;_0x308d98[_0x5dcd73(0x18e)]&&(_0x308d98+=','),_0x308d98+=_0x11dc60+':'+_0xc31610+':'+(_0x2abfbe?'1':'0')+':'+_0x12fd55+':'+_0x5cb9a4+':'+_0x2be2a5;}return _0x308d98;}function ue(_0xb33801){const _0x132f2f=_0x4a4f45;let _0x32d9d5=_0xb33801[_0x132f2f(0x3f0)](','),_0x32d372=[];for(let _0xe90c58 of _0x32d9d5){let [_0x5318ad,_0xd0f37d,_0x2c64fa,_0x5894b5,_0x1be126,_0x20a9f3]=_0xe90c58['split'](':');_0x32d372[_0x132f2f(0x3b2)]({'startOffset':Number(_0x5318ad),'endOffset':Number(_0xd0f37d),'collapsed':_0x5318ad===_0xd0f37d,'isActive':_0x2c64fa==='1','rangeType':_0x5894b5===t['DOC_RANGE_TYPE']['TEXT']?t[_0x132f2f(0x169)]['TEXT']:t[_0x132f2f(0x169)]['RECT'],'segmentId':typeof _0x1be126==_0x132f2f(0x2cf)?String(_0x1be126):'','segmentPage':Number(_0x20a9f3??-0x1)});}return _0x32d372[_0x132f2f(0x402)](_0x7e9c09=>_0x7e9c09[_0x132f2f(0x30e)])||(_0x32d372[0x0][_0x132f2f(0x30e)]=!0x0),_0x32d372;}var O=class extends t[_0x4a4f45(0x2a6)]{constructor(..._0x3d167d){const _0x250455=_0x4a4f45;super(..._0x3d167d),b(this,_0x250455(0x37f),new r[(_0x250455(0x154))](null)),b(this,_0x250455(0x30d),this[_0x250455(0x37f)][_0x250455(0x34c)]());}[_0x4a4f45(0x1e5)](_0x1e688e){const _0x81accb=_0x4a4f45;let {unitID:_0x5d794f,memberID:_0x25f41d,textRanges:_0x561a70}=_0x1e688e,_0x3541b6=le(_0x561a70);if(_0x3541b6==='')return;let _0xbd380d={'unitID':_0x5d794f,'memberID':_0x25f41d,'selection':_0x3541b6};this[_0x81accb(0x37f)][_0x81accb(0x13e)](_0xbd380d);}};let k=class extends t[_0x4a4f45(0x2a6)]{get['cursorInfo'](){const _0x2db7f4=_0x4a4f45;return this[_0x2db7f4(0x318)]['getValue']();}get[_0x4a4f45(0x1be)](){const _0x21b22b=_0x4a4f45;return this['_roomMembers$'][_0x21b22b(0x393)]();}constructor(_0x4b2878,_0x4919c1,_0x1d7c48,_0x4cb815,_0x2816af,_0x36be6c,_0x5ef2d8,_0x523a7f,_0x291068){const _0x174991=_0x4a4f45;super(),this[_0x174991(0x246)]=_0x4b2878,this[_0x174991(0x1e3)]=_0x4919c1,this[_0x174991(0x38f)]=_0x1d7c48,this[_0x174991(0x1c2)]=_0x4cb815,this['_memberService']=_0x2816af,this[_0x174991(0x142)]=_0x36be6c,this[_0x174991(0x349)]=_0x5ef2d8,this['_univerInstanceService']=_0x523a7f,this['_commandService']=_0x291068,b(this,_0x174991(0x38b),!0x1),b(this,_0x174991(0x332),!0x1),b(this,_0x174991(0x318),new r[(_0x174991(0x154))](new Map())),b(this,'cursorInfo$',this[_0x174991(0x318)][_0x174991(0x34c)]()),b(this,'_roomMembers$',new r[(_0x174991(0x154))]([])),b(this,_0x174991(0x41f),this[_0x174991(0x3e9)][_0x174991(0x237)]((0x0,r[_0x174991(0x270)])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x174991(0x143)])(_0x3c2750=>{const _0x547b91=_0x174991;let _0x560f06={'eventID':l['CollaborationEvent'][_0x547b91(0x32c)],'data':{'unitID':this[_0x547b91(0x246)],'memberID':this[_0x547b91(0x1e3)]['getMemberID'](),'selection':le(_0x3c2750)}};this[_0x547b91(0x1e3)][_0x547b91(0x20e)](_0x560f06,this[_0x547b91(0x246)]);},0x64));}[_0x4a4f45(0x288)](){const _0x5e16ba=_0x4a4f45;super[_0x5e16ba(0x288)](),this[_0x5e16ba(0x318)][_0x5e16ba(0x13e)](new Map()),this[_0x5e16ba(0x318)][_0x5e16ba(0x2c6)](),this['_roomMembers$']['next']([]),this[_0x5e16ba(0x3e9)][_0x5e16ba(0x2c6)]();}[_0x4a4f45(0x42d)](){const _0x5772e7=_0x4a4f45;this['_init']||(this[_0x5772e7(0x332)]=!0x0,this[_0x5772e7(0x1e3)]['sessionStatus$']['pipe']((0x0,r[_0x5772e7(0x42e)])(this[_0x5772e7(0x3f1)]))[_0x5772e7(0x195)](_0x446ed7=>{const _0x41646a=_0x5772e7;_0x446ed7===e[_0x41646a(0x3f2)][_0x41646a(0x2e8)]?this['_toggleOnline']():this[_0x41646a(0x213)]();}),this['_session'][_0x5772e7(0x212)][_0x5772e7(0x237)]((0x0,r[_0x5772e7(0x42e)])(this['dispose$']))[_0x5772e7(0x195)](_0x28ab5e=>{const _0x4ad7d1=_0x5772e7;let _0x41b323=_0x28ab5e[_0x4ad7d1(0x170)];_0x41b323===l[_0x4ad7d1(0x243)]['UPDATE_CURSOR']&&this[_0x4ad7d1(0x2fa)](_0x28ab5e),_0x41b323===l[_0x4ad7d1(0x243)][_0x4ad7d1(0x3e8)]&&this[_0x4ad7d1(0x3dc)](_0x28ab5e);}),this[_0x5772e7(0x2ad)](this['_commandService']['onCommandExecuted'](_0x59123d=>{const _0x3f879d=_0x5772e7;let _0xcae9c8=_0x59123d['params'];_0xcae9c8!=null&&this[_0x3f879d(0x38b)]&&_0x59123d['id']===d[_0x3f879d(0x17c)]['id']&&_0xcae9c8['unitId']===this[_0x3f879d(0x246)]&&_0xcae9c8[_0x3f879d(0x326)]===!0x1&&_0xcae9c8[_0x3f879d(0x2c4)][_0x3f879d(0x18e)]>0x0&&this[_0x3f879d(0x267)](_0xcae9c8[_0x3f879d(0x2c4)]);})),this[_0x5772e7(0x142)][_0x5772e7(0x30d)][_0x5772e7(0x237)]((0x0,r[_0x5772e7(0x42e)])(this[_0x5772e7(0x3f1)]))[_0x5772e7(0x195)](_0x3dc332=>{const _0x48fcc3=_0x5772e7;if((_0x3dc332==null?void 0x0:_0x3dc332['unitID'])!==this[_0x48fcc3(0x246)])return;let _0x1c5046={'eventID':l[_0x48fcc3(0x243)][_0x48fcc3(0x32c)],'data':_0x3dc332};this[_0x48fcc3(0x2fa)](_0x1c5046);}),this[_0x5772e7(0x2ad)](this['_commandService'][_0x5772e7(0x3b7)](_0xf6126d=>{const _0x6f955c=_0x5772e7;if(_0xf6126d[_0x6f955c(0x304)]==null)return;let _0x1086e9=_0xf6126d[_0x6f955c(0x304)];if(_0xf6126d['id']!==d[_0x6f955c(0x280)]['id']||_0x1086e9[_0x6f955c(0x3ad)]!==this[_0x6f955c(0x246)])return;let _0x24ba9d={'id':_0x6f955c(0x184),'params':_0x1086e9},_0x38cf9a=this[_0x6f955c(0x276)];for(let [_0x18067d,_0x1d4bfb]of _0x38cf9a){let _0x4d7a99={'id':_0x6f955c(0x184),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1d4bfb[_0x6f955c(0x2c4)]}},_0x220865=this[_0x6f955c(0x349)][_0x6f955c(0x343)](_0x24ba9d,_0x4d7a99,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x220865))throw _0x220865[_0x6f955c(0x27f)];_0x38cf9a[_0x6f955c(0x1a1)](_0x18067d,{..._0x1d4bfb,'ranges':_0x220865[_0x6f955c(0x2ed)][_0x6f955c(0x304)][_0x6f955c(0x41c)]});}queueMicrotask(()=>{const _0x3cef99=_0x6f955c;this['_cursorInfo$'][_0x3cef99(0x13e)](_0x38cf9a);});})));}[_0x4a4f45(0x2fa)](_0x4541f8){const _0x116a84=_0x4a4f45;var _0x5b59e;let {memberID:_0x11035a,selection:_0x208c8d}=_0x4541f8[_0x116a84(0x18c)],_0x460567=ue(_0x208c8d),_0x406d73=((_0x5b59e=this[_0x116a84(0x374)]['getMember'](this[_0x116a84(0x246)],_0x11035a))==null?void 0x0:_0x5b59e[_0x116a84(0x3b3)])??'Unknown\x20user',_0x13ab5f={'color':this[_0x116a84(0x1c2)]['assignAColorForMemberID'](_0x11035a),'name':_0x406d73,'ranges':_0x460567},_0x557f0d=this[_0x116a84(0x276)];_0x557f0d[_0x116a84(0x1a1)](_0x11035a,_0x13ab5f),this[_0x116a84(0x318)]['next'](_0x557f0d);}[_0x4a4f45(0x3dc)](_0x1ecae2){const _0xff2642=_0x4a4f45;let {memberID:_0x37b8ec}=_0x1ecae2[_0xff2642(0x18c)],_0x2eabe9=this[_0xff2642(0x276)];_0x2eabe9[_0xff2642(0x426)](_0x37b8ec),this[_0xff2642(0x318)][_0xff2642(0x13e)](_0x2eabe9);}[_0x4a4f45(0x125)](){const _0x5d25b5=_0x4a4f45;var _0x5be400;if(this[_0x5d25b5(0x38b)]=!0x0,((_0x5be400=this[_0x5d25b5(0x25c)]['getFocusedUnit']())==null?void 0x0:_0x5be400['getUnitId']())!==this[_0x5d25b5(0x246)])return;let _0x34a535=this['_injector'][_0x5d25b5(0x39f)](d[_0x5d25b5(0x14d)])[_0x5d25b5(0x1a5)]();Array[_0x5d25b5(0x347)](_0x34a535)&&_0x34a535[_0x5d25b5(0x18e)]>0x0&&this[_0x5d25b5(0x267)](_0x34a535);}[_0x4a4f45(0x213)](){const _0x42e937=_0x4a4f45;this[_0x42e937(0x38b)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x3,(0x0,t[_0x4a4f45(0x289)])(D)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(e['MemberService'])),x(0x5,(0x0,t[_0x4a4f45(0x289)])(O)),x(0x6,l['ITransformService']),x(0x7,t[_0x4a4f45(0x1ff)]),x(0x8,t[_0x4a4f45(0x1de)])],k);const de=()=>{let _0x4fc1e2=[],_0x36c0ae=!0x1;return _0x1d75de=>{_0x4fc1e2['push'](_0x1d75de),_0x36c0ae||(_0x36c0ae=!0x0,setTimeout(()=>{const _0x20fbc4=_0xd371;_0x4fc1e2[_0x20fbc4(0x22c)](_0x535936=>_0x535936()),_0x4fc1e2=[],_0x36c0ae=!0x1;}));};};let A=class extends t[_0x4a4f45(0x2a6)]{get[_0x4a4f45(0x276)](){const _0x44f9d9=_0x4a4f45;return this[_0x44f9d9(0x318)][_0x44f9d9(0x393)]();}get[_0x4a4f45(0x1be)](){const _0x13ba9d=_0x4a4f45;return this[_0x13ba9d(0x3e9)][_0x13ba9d(0x393)]();}constructor(_0x32762e,_0x5569fe,_0x515b63,_0x15309d,_0x128800,_0x574992,_0x47c929,_0x173fa9){const _0x2613cc=_0x4a4f45;super(),this[_0x2613cc(0x246)]=_0x32762e,this[_0x2613cc(0x1e3)]=_0x5569fe,this[_0x2613cc(0x38f)]=_0x515b63,this[_0x2613cc(0x1c2)]=_0x15309d,this['_memberService']=_0x128800,this[_0x2613cc(0x25c)]=_0x574992,this[_0x2613cc(0x14b)]=_0x47c929,this[_0x2613cc(0x1d3)]=_0x173fa9,b(this,_0x2613cc(0x38b),!0x1),b(this,_0x2613cc(0x332),!0x1),b(this,'_cursorInfo$',new r[(_0x2613cc(0x154))](new Map())),b(this,_0x2613cc(0x296),this[_0x2613cc(0x318)][_0x2613cc(0x34c)]()),b(this,'_roomMembers$',new r['BehaviorSubject']([])),b(this,'roomMembers$',this[_0x2613cc(0x3e9)]['pipe']((0x0,r['debounceTime'])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x2613cc(0x143)])((_0x2eaa11,_0x114ac7)=>{const _0xb26ae2=_0x2613cc;let _0x609b64={'eventID':l['CollaborationEvent'][_0xb26ae2(0x32c)],'data':{'unitID':this[_0xb26ae2(0x246)],'memberID':this[_0xb26ae2(0x1e3)][_0xb26ae2(0x1af)](),'selection':(0x0,h[_0xb26ae2(0x35e)])(_0x2eaa11,_0x114ac7[_0xb26ae2(0x355)])}};this[_0xb26ae2(0x1e3)][_0xb26ae2(0x20e)](_0x609b64,this[_0xb26ae2(0x246)]);},0x64));}[_0x4a4f45(0x288)](){const _0x15bcb7=_0x4a4f45;super[_0x15bcb7(0x288)](),this[_0x15bcb7(0x318)][_0x15bcb7(0x13e)](new Map()),this[_0x15bcb7(0x318)][_0x15bcb7(0x2c6)](),this['_roomMembers$']['next']([]),this[_0x15bcb7(0x3e9)][_0x15bcb7(0x2c6)]();}[_0x4a4f45(0x42d)](){const _0x1b225b=_0x4a4f45;this['_init']||(this[_0x1b225b(0x332)]=!0x0,this['_session'][_0x1b225b(0x2b4)][_0x1b225b(0x237)]((0x0,r[_0x1b225b(0x42e)])(this['dispose$']))[_0x1b225b(0x195)](_0x21749b=>{const _0x127d43=_0x1b225b;_0x21749b===e[_0x127d43(0x3f2)][_0x127d43(0x2e8)]?this[_0x127d43(0x125)]():this[_0x127d43(0x213)]();}),this['_session'][_0x1b225b(0x212)][_0x1b225b(0x237)]((0x0,r['takeUntil'])(this[_0x1b225b(0x3f1)]))[_0x1b225b(0x195)](_0x378080=>{const _0x2af9cd=_0x1b225b;let _0x22dc81=_0x378080[_0x2af9cd(0x170)];_0x22dc81===l[_0x2af9cd(0x243)][_0x2af9cd(0x32c)]&&this[_0x2af9cd(0x2fa)](_0x378080),_0x22dc81===l[_0x2af9cd(0x243)][_0x2af9cd(0x3e8)]&&this['_onCursorDelete'](_0x378080);}),this['_onRefRangeChange'](),this[_0x1b225b(0x2ad)](this[_0x1b225b(0x14b)][_0x1b225b(0x3b7)](_0x356d62=>{const _0x2d904d=_0x1b225b;if(this['_online']&&_0x356d62['id']===g[_0x2d904d(0x1d7)]['id']&&_0x356d62['params']['unitId']===this['unitID']){let _0x4f51b5=_0x356d62['params'];this[_0x2d904d(0x267)](_0x4f51b5[_0x2d904d(0x1b9)],_0x4f51b5[_0x2d904d(0x3a5)][0x0]);}})));}[_0x4a4f45(0x2fa)](_0x5352d4){const _0x557bca=_0x4a4f45;var _0x4a22bc;let {memberID:_0x15c422,selection:_0x3c5e0b}=_0x5352d4[_0x557bca(0x18c)],{sheetName:_0x9529ff,range:_0x18e602}=(0x0,h['deserializeRangeWithSheet'])(_0x3c5e0b),_0xffb8f9={'name':((_0x4a22bc=this[_0x557bca(0x374)][_0x557bca(0x1e9)](this[_0x557bca(0x246)],_0x15c422))==null?void 0x0:_0x4a22bc['name'])??_0x557bca(0x158),'range':this['_getMergeRange'](_0x9529ff,_0x18e602),'sheetID':_0x9529ff,'color':this[_0x557bca(0x1c2)][_0x557bca(0x330)](_0x15c422),'selection':_0x3c5e0b},_0x398560=this[_0x557bca(0x276)];_0x398560[_0x557bca(0x1a1)](_0x15c422,_0xffb8f9),this['_cursorInfo$']['next'](_0x398560);}['_onCursorDelete'](_0x5dac19){const _0x541e66=_0x4a4f45;let {memberID:_0x42297d}=_0x5dac19['data'],_0x6e1bed=this['cursorInfo'];_0x6e1bed['delete'](_0x42297d),this[_0x541e66(0x318)]['next'](_0x6e1bed);}['_getMergeRange'](_0x3b136d,_0xb17499){const _0x564510=_0x4a4f45;var _0xee7b34;let _0x5de63f=(_0xee7b34=this['_univerInstanceService']['getUnit'](this[_0x564510(0x246)],t[_0x564510(0x397)]['UNIVER_SHEET']))==null||(_0xee7b34=_0xee7b34[_0x564510(0x180)](_0x3b136d))==null?void 0x0:_0xee7b34[_0x564510(0x35b)]();return(_0x5de63f==null?void 0x0:_0x5de63f[_0x564510(0x315)](_0xff3d51=>t[_0x564510(0x34f)]['contains'](_0xff3d51,_0xb17499)))||_0xb17499;}[_0x4a4f45(0x164)](){const _0x495b40=_0x4a4f45;let _0x324baf=new t[(_0x495b40(0x403))](),_0x106283=de(),_0xf4949f=()=>{const _0x27dcd0=_0x495b40;_0x324baf[_0x27dcd0(0x288)]();let _0x3cc5ff=(_0x3b5dc7,_0x576e59,_0x259a51,_0x3ac3b2)=>{const _0x33644d=_0x27dcd0;let _0x3bbe4c=[];switch(_0x3b5dc7['id']){case g[_0x33644d(0x2f8)][_0x33644d(0x2f0)]:_0x3bbe4c=(0x0,g[_0x33644d(0x23d)])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x388)]:_0x3bbe4c=(0x0,g[_0x33644d(0x1a6)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)]['InsertColCommandId']:_0x3bbe4c=(0x0,g[_0x33644d(0x2fb)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x1ba)]:_0x3bbe4c=(0x0,g[_0x33644d(0x2a0)])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x3c5)]:_0x3bbe4c=(0x0,g['handleInsertRangeMoveRight'])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x2c7)]:_0x3bbe4c=(0x0,g[_0x33644d(0x1eb)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x328)]:_0x3bbe4c=(0x0,g['handleMoveRange'])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x2b2)]:_0x3bbe4c=(0x0,g['handleIRemoveCol'])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x2c8)]:_0x3bbe4c=(0x0,g[_0x33644d(0x25e)])(_0x3b5dc7,_0x3ac3b2);}let _0x160d3f=(0x0,g[_0x33644d(0x186)])(_0x3bbe4c,_0x3ac3b2),_0x2314f7=this[_0x33644d(0x276)]['get'](_0x576e59);if(_0x2314f7&&_0x160d3f){let _0x4579c6={..._0x2314f7,'range':_0x160d3f};this[_0x33644d(0x276)][_0x33644d(0x1a1)](_0x576e59,_0x4579c6),_0x106283(()=>{const _0x1128a2=_0x33644d;let _0xba3b9e=this['_refRangeService'][_0x1128a2(0x23a)](_0x160d3f,_0x469439=>(_0xba3b9e[_0x1128a2(0x288)](),_0x3cc5ff(_0x469439,_0x576e59,_0x259a51,_0x160d3f)));_0x324baf[_0x1128a2(0x307)](_0xba3b9e);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x27dcd0(0x22c)]((_0x507285,_0x33193e)=>{const _0x477a62=_0x27dcd0;let {range:_0x351f68,sheetID:_0x34d6c1}=_0x507285,_0x39bf87=this[_0x477a62(0x1d3)]['registerRefRange'](_0x351f68,_0x59f482=>(_0x39bf87['dispose'](),_0x3cc5ff(_0x59f482,_0x33193e,_0x34d6c1,_0x351f68)));_0x324baf[_0x477a62(0x307)](_0x39bf87);});};this[_0x495b40(0x2ad)]((0x0,t[_0x495b40(0x2be)])(this['_cursorInfo$'][_0x495b40(0x195)](()=>{_0xf4949f();})));}[_0x4a4f45(0x125)](){const _0x427341=_0x4a4f45;var _0x498241,_0x4e7e2c;if(this[_0x427341(0x38b)]=!0x0,((_0x498241=this[_0x427341(0x25c)]['getFocusedUnit']())==null?void 0x0:_0x498241[_0x427341(0x370)]())!==this[_0x427341(0x246)])return;let _0x3a6b8b=(_0x4e7e2c=this[_0x427341(0x38f)][_0x427341(0x39f)](g[_0x427341(0x194)])[_0x427341(0x3fe)]())==null?void 0x0:_0x4e7e2c[0x0],_0x5b30aa=this['_univerInstanceService'][_0x427341(0x2dc)](t[_0x427341(0x397)][_0x427341(0x379)])['getActiveSheet']();_0x3a6b8b&&_0x5b30aa&&this[_0x427341(0x267)](_0x5b30aa['getSheetId'](),_0x3a6b8b);}[_0x4a4f45(0x213)](){const _0x2bc825=_0x4a4f45;this[_0x2bc825(0x38b)]=!0x1;}};A=S([x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t['Inject'])(e['MemberService'])),x(0x5,t[_0x4a4f45(0x1ff)]),x(0x6,t['ICommandService']),x(0x7,(0x0,t['Inject'])(g['RefRangeService']))],A);let j=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x1a253a,_0x140719,_0x4edd12){const _0x2efd49=_0x4a4f45;super(),this['_univerInstanceService']=_0x1a253a,this[_0x2efd49(0x38f)]=_0x140719,this[_0x2efd49(0x27b)]=_0x4edd12,b(this,_0x2efd49(0x2c0),new Map()),b(this,_0x2efd49(0x292),new r[(_0x2efd49(0x31c))]()),this[_0x2efd49(0x332)]();}[_0x4a4f45(0x288)](){super['dispose'](),this['_entityInit$']['complete'](),this['_entities']['forEach'](_0x5ea41c=>_0x5ea41c['dispose']());}[_0x4a4f45(0x197)](_0x421b68){const _0x5e0014=_0x4a4f45;let _0x296a61=this['_entities'][_0x5e0014(0x39f)](_0x421b68);return _0x296a61?_0x296a61[_0x5e0014(0x296)]:this[_0x5e0014(0x292)]['pipe']((0x0,r['filter'])(_0x50e24e=>_0x50e24e[_0x5e0014(0x246)]===_0x421b68),(0x0,r[_0x5e0014(0x3cd)])(_0x2f0c71=>_0x2f0c71[_0x5e0014(0x296)]));}[_0x4a4f45(0x332)](){const _0x12f294=_0x4a4f45;this[_0x12f294(0x25c)][_0x12f294(0x309)](t['UniverInstanceType'][_0x12f294(0x379)])[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this['dispose$']))[_0x12f294(0x195)](async _0x11bfac=>{const _0x14e08e=_0x12f294;let _0x3853bd=_0x11bfac['unit'][_0x14e08e(0x370)](),_0x3d5d44=await this[_0x14e08e(0x177)](_0x3853bd);this['_entityInit$'][_0x14e08e(0x13e)](_0x3d5d44),this[_0x14e08e(0x2c0)][_0x14e08e(0x1a1)](_0x3853bd,_0x3d5d44);}),this['_univerInstanceService'][_0x12f294(0x309)](t[_0x12f294(0x397)][_0x12f294(0x19b)])[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this['dispose$']))['pipe']((0x0,r[_0x12f294(0x3e3)])(_0x1143ff=>!_0x1143ff[_0x12f294(0x181)][_0x12f294(0x370)]()[_0x12f294(0x34d)]('__')))['subscribe'](async _0x482311=>{const _0x6e7596=_0x12f294;let {unit:_0x53557c}=_0x482311,_0x28d39c=_0x53557c[_0x6e7596(0x370)](),_0x1c53aa=await this[_0x6e7596(0x300)](_0x28d39c);this[_0x6e7596(0x292)]['next'](_0x1c53aa),this[_0x6e7596(0x2c0)][_0x6e7596(0x1a1)](_0x28d39c,_0x1c53aa);}),(0x0,r[_0x12f294(0x42a)])(this['_univerInstanceService'][_0x12f294(0x3b6)](t[_0x12f294(0x397)][_0x12f294(0x19b)]),this[_0x12f294(0x25c)][_0x12f294(0x3b6)](t[_0x12f294(0x397)]['UNIVER_SHEET']))[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this[_0x12f294(0x3f1)]))['subscribe'](_0x18af87=>{const _0x30c7cf=_0x12f294;let _0x26baa1=_0x18af87[_0x30c7cf(0x370)](),_0xec1094=this[_0x30c7cf(0x2c0)][_0x30c7cf(0x39f)](_0x26baa1);_0xec1094&&(_0xec1094['dispose'](),this['_entities']['delete'](_0x26baa1));});}async['_startSheetCollabCursor'](_0x50af62){const _0x165cc4=_0x4a4f45;let _0x4aacdb=await this['_collabSessionService'][_0x165cc4(0x331)](_0x50af62),_0x55ab29=this[_0x165cc4(0x38f)]['createInstance'](A,_0x50af62,_0x4aacdb);return _0x55ab29[_0x165cc4(0x42d)](),_0x55ab29;}async[_0x4a4f45(0x300)](_0x5eac98){const _0x4689bf=_0x4a4f45;let _0x3aa895=await this[_0x4689bf(0x27b)][_0x4689bf(0x331)](_0x5eac98),_0x4fa006=this['_injector'][_0x4689bf(0x3ba)](k,_0x5eac98,_0x3aa895);return _0x4fa006['init'](),_0x4fa006;}};j=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e['CollaborationSessionService']))],j);function fe(_0x1d3f27,_0x490817){const _0x3ccec1=_0x4a4f45;_0x1d3f27[_0x3ccec1(0x394)](),_0x1d3f27[_0x3ccec1(0x2cb)]=_0x3ccec1(0x32b);let _0x4c63db=_0x1d3f27[_0x3ccec1(0x191)](_0x490817)[_0x3ccec1(0x215)];return _0x1d3f27[_0x3ccec1(0x209)](),Math['min'](_0x4c63db+0x8,0xc8);}function pe(_0x520813,_0x26b6e7){const _0xec80b0=_0x4a4f45;let {radius:_0x4a975f,width:_0x4bdeb1,height:_0x5732d9}=_0x26b6e7;_0x4a975f??=0x0,_0x4bdeb1??=0x1e,_0x5732d9??=0x1e;let _0x563fd5=0x0,_0x578b02=0x0,_0x476972=0x0;_0x563fd5=_0x578b02=_0x476972=Math[_0xec80b0(0x139)](_0x4a975f,_0x4bdeb1/0x2,_0x5732d9/0x2),_0x520813[_0xec80b0(0x258)](),_0x520813[_0xec80b0(0x242)](_0x563fd5,0x0),_0x520813[_0xec80b0(0x3e2)](_0x4bdeb1-_0x578b02,0x0),_0x520813['arc'](_0x4bdeb1-_0x578b02,_0x578b02,_0x578b02,Math['PI']*0x3/0x2,0x0,!0x1),_0x520813[_0xec80b0(0x3e2)](_0x4bdeb1,_0x5732d9-_0x476972),_0x520813[_0xec80b0(0x2c5)](_0x4bdeb1-_0x476972,_0x5732d9-_0x476972,_0x476972,0x0,Math['PI']/0x2,!0x1),_0x520813[_0xec80b0(0x3e2)](0x0,_0x5732d9),_0x520813[_0xec80b0(0x3e2)](0x0,_0x563fd5),_0x520813[_0xec80b0(0x2c5)](_0x563fd5,_0x563fd5,_0x563fd5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x520813[_0xec80b0(0x2f2)](),_0x26b6e7[_0xec80b0(0x2f4)]&&(_0x520813[_0xec80b0(0x394)](),_0x520813[_0xec80b0(0x39e)]=_0x26b6e7[_0xec80b0(0x2f4)],_0x26b6e7[_0xec80b0(0x2e5)]===_0xec80b0(0x225)?_0x520813[_0xec80b0(0x2f4)]('evenodd'):_0x520813[_0xec80b0(0x2f4)](),_0x520813['restore']());}var me=class e extends p[_0x4a4f45(0x1b4)]{constructor(_0x46191b,_0x2aba63){const _0x11ae79=_0x4a4f45;super(_0x46191b,_0x2aba63),b(this,_0x11ae79(0x3e0),void 0x0),b(this,_0x11ae79(0x37e),void 0x0),this[_0x11ae79(0x3e0)]=_0x2aba63==null?void 0x0:_0x2aba63['color'],this[_0x11ae79(0x37e)]=_0x2aba63==null?void 0x0:_0x2aba63['text'];}static[_0x4a4f45(0x253)](_0x2329f1,_0x52c315){const _0x4ab9f4=_0x4a4f45;let {text:_0x5cf9ef,color:_0x2c15b6}=_0x52c315;_0x2329f1[_0x4ab9f4(0x394)](),_0x2329f1[_0x4ab9f4(0x2cb)]=_0x4ab9f4(0x3cb);let _0x2651f4=_0x2329f1['measureText'](_0x5cf9ef)[_0x4ab9f4(0x215)];if(pe(_0x2329f1,{'height':0x14,'radius':0x4,'width':fe(_0x2329f1,_0x5cf9ef),'fill':_0x2c15b6,'evented':!0x1}),_0x2329f1[_0x4ab9f4(0x39e)]=_0x4ab9f4(0x42c),_0x2651f4>0xc0){let _0x573f9f='',_0x2c7a83=0x0;for(let _0x43bc53 of _0x5cf9ef){let _0x18b305=_0x2329f1[_0x4ab9f4(0x191)](_0x43bc53)[_0x4ab9f4(0x215)];if(_0x2c7a83+_0x18b305<=0xc0-_0x2329f1[_0x4ab9f4(0x191)](_0x4ab9f4(0x36f))[_0x4ab9f4(0x215)])_0x573f9f+=_0x43bc53,_0x2c7a83+=_0x18b305;else{_0x573f9f+=_0x4ab9f4(0x36f);break;}}_0x2329f1[_0x4ab9f4(0x19a)](_0x573f9f,0x4,0xf);}else _0x2329f1['fillText'](_0x5cf9ef,0x4,0xf);_0x2329f1[_0x4ab9f4(0x209)]();}[_0x4a4f45(0x287)](_0x16c650){const _0x4ac63d=_0x4a4f45;e[_0x4ac63d(0x253)](_0x16c650,this);}};const M='collab-text-anchor-';var he=class{constructor(_0x170b0b,_0x1eafbb,_0x59d56e,_0x1224ad){const _0x4bb6f2=_0x4a4f45;this[_0x4bb6f2(0x2c2)]=_0x170b0b,this[_0x4bb6f2(0x1aa)]=_0x1eafbb,this[_0x4bb6f2(0x38e)]=_0x59d56e,this[_0x4bb6f2(0x136)]=_0x1224ad,b(this,'_shapes',[]),b(this,_0x4bb6f2(0x2ff),null),b(this,_0x4bb6f2(0x2f7),null),b(this,_0x4bb6f2(0x27c),null),b(this,_0x4bb6f2(0x1dd),null),b(this,'_eventUnsubscribe',null),this[_0x4bb6f2(0x390)]();}set[_0x4a4f45(0x2ec)](_0x7a760e){const _0xb056fa=_0x4a4f45;_0x7a760e?(this[_0xb056fa(0x27c)]&&this[_0xb056fa(0x27c)][_0xb056fa(0x375)](),this[_0xb056fa(0x2f7)]&&this[_0xb056fa(0x2f7)][_0xb056fa(0x295)]()):(this[_0xb056fa(0x27c)]&&this['_anchorDot']['show'](),this[_0xb056fa(0x2f7)]&&this[_0xb056fa(0x2f7)]['hide']());}[_0x4a4f45(0x288)](){const _0x304655=_0x4a4f45;for(let _0x17ac91 of this[_0x304655(0x264)])_0x17ac91[_0x304655(0x288)]();this[_0x304655(0x2f7)]&&this[_0x304655(0x2f7)][_0x304655(0x288)](),this[_0x304655(0x27c)]&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x304655(0x2ff)][_0x304655(0x288)](),this[_0x304655(0x2bd)]&&this[_0x304655(0x2bd)]();}[_0x4a4f45(0x390)](){const _0x5c8d62=_0x4a4f45;let {_docSkeleton:_0x2915db,_document:_0x5c1df3}=this,{color:_0x26ace0,name:_0x1baeef,ranges:_0x53f4a9}=this['_cursor'],_0x2ab6dd=_0x5c1df3[_0x5c8d62(0x340)](),{docsLeft:_0x226219,docsTop:_0x23b73a}=_0x2ab6dd,_0x2c7b2d=new f[(_0x5c8d62(0x220))](_0x2ab6dd,_0x2915db);for(let {startOffset:_0x595069,endOffset:_0x26ed45,rangeType:_0xb0da95,segmentId:_0xad9a15,segmentPage:_0x199d81,collapsed:_0x305818,isActive:_0x440809}of _0x53f4a9){let _0x6a89b0=_0x2915db[_0x5c8d62(0x1f9)](_0x595069,!0x0,_0xad9a15,_0x199d81),_0x40cc85=_0x2915db[_0x5c8d62(0x1f9)](_0x26ed45,!0x0,_0xad9a15,_0x199d81);_0x40cc85??=_0x2915db[_0x5c8d62(0x1f9)](_0x26ed45-0x1,!0x1,_0xad9a15,_0x199d81);let _0x3a749c=ge(_0x6a89b0,_0x40cc85);if(_0x440809&&_0x3a749c['canRenderAnchor']){let {contentBoxPointGroup:_0x28c027}=_0x2c7b2d[_0x5c8d62(0x245)](_0x40cc85,_0x40cc85);if(_0x28c027[_0x5c8d62(0x18e)]===0x0)continue;this[_0x5c8d62(0x3ae)](_0x26ace0,_0x28c027,_0x226219,_0x23b73a,_0x1baeef),this[_0x5c8d62(0x2bd)]=this[_0x5c8d62(0x299)]();}if(_0x6a89b0&&_0x40cc85){if(_0xb0da95===t['DOC_RANGE_TYPE']['RECT']){let {pointGroup:_0x3b7926}=new f['NodePositionConvertToRectRange'](_0x2ab6dd,_0x2915db)['getRangePointData'](_0x6a89b0,_0x40cc85)??{};if(_0x3b7926==null||_0x3b7926[_0x5c8d62(0x18e)]===0x0)continue;this[_0x5c8d62(0x205)](_0x26ace0,_0x3b7926,_0x226219,_0x23b73a);}else{if(!_0x305818&&_0x3a749c[_0x5c8d62(0x29a)]){let {borderBoxPointGroup:_0x2b8bf3}=_0x2c7b2d[_0x5c8d62(0x245)](_0x6a89b0,_0x40cc85);if(_0x2b8bf3['length']===0x0)continue;this['_drawTextRange'](_0x26ace0,_0x2b8bf3,_0x226219,_0x23b73a);}}}}}[_0x4a4f45(0x3ae)](_0x32e06f,_0x425852,_0x3559f5,_0x41d143,_0x5637d3){const _0x4713ec=_0x4a4f45;let {left:_0x35e8f1,top:_0xae5ed3,height:_0x13472a}=this[_0x4713ec(0x31e)](_0x425852),_0x2e6b10=1.5/this[_0x4713ec(0x383)](),_0x10b784=new p[(_0x4713ec(0x1fe))](M+(0x0,t['generateRandomId'])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143,'height':_0x13472a,'width':1.5,'fill':_0x32e06f||(0x0,p[_0x4713ec(0x127)])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'strokeWidth':_0x2e6b10,'stroke':_0x4713ec(0x290),'evented':!0x0});this[_0x4713ec(0x2ff)]=_0x10b784,this['_scene'][_0x4713ec(0x1bf)](_0x10b784,f[_0x4713ec(0x262)]);let _0x597173=new p[(_0x4713ec(0x1fe))](M+(0x0,t[_0x4713ec(0x28e)])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143-0x2,'height':0x4,'width':0x4,'fill':_0x32e06f||(0x0,p[_0x4713ec(0x127)])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'strokeWidth':0x0,'stroke':_0x32e06f||(0x0,p['getColor'])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'evented':!0x1});this[_0x4713ec(0x27c)]=_0x597173,this['_scene'][_0x4713ec(0x1bf)](_0x597173,f[_0x4713ec(0x262)]);let _0x223dd4=new me(M+(0x0,t[_0x4713ec(0x28e)])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143-0x14,'text':_0x5637d3,'color':_0x32e06f});this[_0x4713ec(0x2f7)]=_0x223dd4,this[_0x4713ec(0x1aa)][_0x4713ec(0x1bf)](_0x223dd4,f[_0x4713ec(0x262)]),this[_0x4713ec(0x2ec)]=!0x1;}[_0x4a4f45(0x299)](){const _0x3704bf=_0x4a4f45;let _0x5ee5f9=this[_0x3704bf(0x2ff)]['onPointerEnter$'][_0x3704bf(0x204)](()=>{const _0x2bf1ad=_0x3704bf;this[_0x2bf1ad(0x2ec)]=!0x0;}),_0x5144ed=this[_0x3704bf(0x2ff)]['onPointerLeave$'][_0x3704bf(0x204)](()=>{const _0x2f133e=_0x3704bf;this['_hideTimer']&&clearTimeout(this[_0x2f133e(0x1dd)]),this[_0x2f133e(0x1dd)]=setTimeout(()=>{const _0x5776ae=_0x2f133e;this[_0x5776ae(0x2ec)]=!0x1;},0x7d0);});return()=>{const _0xd9794c=_0x3704bf;_0x5ee5f9[_0xd9794c(0x372)](),_0x5144ed[_0xd9794c(0x372)]();};}[_0x4a4f45(0x211)](_0x47b5c9,_0x31f42e,_0x18e2e2,_0x161985){const _0x137fc8=_0x4a4f45;let _0x58cc20=0.2,_0x27c79c=new t[(_0x137fc8(0x30f))](_0x47b5c9)['setAlpha'](_0x58cc20)[_0x137fc8(0x1f4)](),_0x207830=new p[(_0x137fc8(0x1cd))]('collab-text-range-'+(0x0,t[_0x137fc8(0x28e)])(0x6),{'pointsGroup':_0x31f42e,'fill':_0x27c79c||(0x0,p[_0x137fc8(0x127)])(t[_0x137fc8(0x2ee)][_0x137fc8(0x35a)],_0x58cc20),'left':_0x18e2e2,'top':_0x161985,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x137fc8(0x264)][_0x137fc8(0x3b2)](_0x207830),this[_0x137fc8(0x1aa)][_0x137fc8(0x1bf)](_0x207830,f[_0x137fc8(0x262)]);}[_0x4a4f45(0x205)](_0x7c1cce,_0x23a6bb,_0x13901b,_0x538ecb){const _0x332ac5=_0x4a4f45;let _0x4d60ea=0.2,_0x5c3c49=new t[(_0x332ac5(0x30f))](_0x7c1cce)[_0x332ac5(0x2a9)](_0x4d60ea)['toRgbString'](),_0x4d5a44=new p[(_0x332ac5(0x1cd))](_0x332ac5(0x3c7)+(0x0,t[_0x332ac5(0x28e)])(0x6),{'pointsGroup':_0x23a6bb,'fill':_0x5c3c49||(0x0,p['getColor'])(t[_0x332ac5(0x2ee)][_0x332ac5(0x35a)],_0x4d60ea),'left':_0x13901b,'top':_0x538ecb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x332ac5(0x264)][_0x332ac5(0x3b2)](_0x4d5a44),this[_0x332ac5(0x1aa)]['addObject'](_0x4d5a44,f[_0x332ac5(0x262)]);}[_0x4a4f45(0x31e)](_0x196953){let _0x5f5121=_0x196953[0x0],_0x37c0c9=_0x5f5121[0x0],_0x502ebb=_0x5f5121[0x2],{x:_0x28dfda,y:_0x58375d}=_0x37c0c9,{x:_0x1a96ad,y:_0x4f4137}=_0x502ebb;return{'left':_0x28dfda,'top':_0x58375d,'width':_0x1a96ad-_0x28dfda,'height':_0x4f4137-_0x58375d};}['_getScale'](){const _0x4b45bf=_0x4a4f45;let {scaleX:_0x5c2042,scaleY:_0x167745}=this[_0x4b45bf(0x1aa)][_0x4b45bf(0x18a)]();return Math['max'](_0x5c2042,_0x167745);}};function ge(_0x3c1d8e,_0x493391){const _0xa841bf=_0x4a4f45;if(!_0x493391)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x3c1d8e||_0x3c1d8e[_0xa841bf(0x26c)]!==_0x493391[_0xa841bf(0x26c)]||(_0x3c1d8e[_0xa841bf(0x26c)]===p[_0xa841bf(0x283)][_0xa841bf(0x16f)]||_0x3c1d8e[_0xa841bf(0x26c)]===p[_0xa841bf(0x283)][_0xa841bf(0x26a)])&&_0x3c1d8e[_0xa841bf(0x2db)]!==_0x493391[_0xa841bf(0x2db)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x584844=(0x0,p[_0xa841bf(0x376)])(_0x3c1d8e),_0x130270=(0x0,p[_0xa841bf(0x376)])(_0x493391);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x584844==null||_0x130270==null?_0x584844==null&&_0x130270==null:_0x584844['pageIndex']===_0x130270[_0xa841bf(0x1bb)]&&_0x584844[_0xa841bf(0x235)]===_0x130270['columnGroupId']&&_0x584844[_0xa841bf(0x3df)]===_0x130270[_0xa841bf(0x3df)]};}let N=class extends t['RxDisposable']{constructor(_0x42edbc,_0x242ec9,_0x429d25,_0x495860,_0x18bf59){const _0x152097=_0x4a4f45;super(),this[_0x152097(0x1d5)]=_0x42edbc,this[_0x152097(0x3eb)]=_0x242ec9,this[_0x152097(0x405)]=_0x429d25,this[_0x152097(0x14b)]=_0x495860,this[_0x152097(0x192)]=_0x18bf59,b(this,_0x152097(0x247),[]),b(this,_0x152097(0x138),[]),this[_0x152097(0x332)]();}[_0x4a4f45(0x332)](){const _0x1d92e8=_0x4a4f45;let _0x38f7f9=this[_0x1d92e8(0x1d5)][_0x1d92e8(0x3ad)],_0x58ca86=this[_0x1d92e8(0x3eb)];this[_0x1d92e8(0x2ad)]((0x0,r[_0x1d92e8(0x21b)])([this[_0x1d92e8(0x405)][_0x1d92e8(0x197)](_0x38f7f9),this['_themeService']['currentTheme$']])[_0x1d92e8(0x237)]((0x0,i[_0x1d92e8(0x19c)])(([_0x51d531,_0x114a7c])=>({'skeleton':_0x58ca86[_0x1d92e8(0x182)](),'cursors':[..._0x51d531[_0x1d92e8(0x40c)]()][_0x1d92e8(0x165)](_0x4dc791=>({..._0x4dc791,'color':this[_0x1d92e8(0x192)][_0x1d92e8(0x381)](_0x4dc791[_0x1d92e8(0x3e0)])}))})))[_0x1d92e8(0x195)](_0x11675a=>{const _0x1a9957=_0x1d92e8;if(this[_0x1a9957(0x422)](),_0x11675a){let {skeleton:_0x3e31be,cursors:_0x3f1ea6}=_0x11675a;this[_0x1a9957(0x131)](_0x3e31be,_0x3f1ea6);}})),this[_0x1d92e8(0x1c3)](),this['_initCommandExecutedListener']();}[_0x4a4f45(0x131)](_0x3ad94f,_0x59396f){const _0x40e461=_0x4a4f45;let {scene:_0xa99f9d,mainComponent:_0x5f556c}=this['_context'],_0x1cf36a=_0x59396f[_0x40e461(0x19c)](_0x36e5a5=>new he(_0x36e5a5,_0xa99f9d,_0x3ad94f,_0x5f556c));this['_cursorShapes']=_0x1cf36a,this[_0x40e461(0x138)]=_0x59396f;}[_0x4a4f45(0x3e5)](){const _0x1dbd98=_0x4a4f45;this[_0x1dbd98(0x422)]();let {scene:_0x48ca0f,mainComponent:_0x10cda5}=this[_0x1dbd98(0x1d5)],_0x3475ee=this[_0x1dbd98(0x3eb)]['getSkeleton'](),_0xed9ca9=this[_0x1dbd98(0x138)][_0x1dbd98(0x19c)](_0x45ebfb=>new he(_0x45ebfb,_0x48ca0f,_0x3475ee,_0x10cda5));this[_0x1dbd98(0x247)]=_0xed9ca9;}[_0x4a4f45(0x422)](){const _0x25b4a8=_0x4a4f45;this[_0x25b4a8(0x247)][_0x25b4a8(0x22c)](_0x5267d9=>_0x5267d9[_0x25b4a8(0x288)]()),this[_0x25b4a8(0x247)]=[];}['_initCommandExecutedListener'](){const _0x48c9c0=_0x4a4f45;let _0x143a32=[f[_0x48c9c0(0x257)]['id']];this['disposeWithMe'](this[_0x48c9c0(0x14b)][_0x48c9c0(0x3b7)](_0x42a258=>{const _0x105e9f=_0x48c9c0;_0x143a32[_0x105e9f(0x266)](_0x42a258['id'])&&_0x42a258['params'][_0x105e9f(0x3ad)]===this[_0x105e9f(0x1d5)][_0x105e9f(0x3ad)]&&this[_0x105e9f(0x3e5)]();}));}[_0x4a4f45(0x1c3)](){const _0x5c742a=_0x4a4f45;this[_0x5c742a(0x2ad)]((0x0,t[_0x5c742a(0x353)])(this[_0x5c742a(0x1d5)][_0x5c742a(0x176)]['onTransformChange$'])[_0x5c742a(0x237)]((0x0,i[_0x5c742a(0x3e3)])(_0x18755d=>_0x18755d['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x5c742a(0x310)]),(0x0,i['throttleTime'])(0x10))[_0x5c742a(0x195)](()=>{const _0xc8cf99=_0x5c742a;this[_0xc8cf99(0x3e5)]();}));}};N=S([x(0x1,(0x0,t[_0x4a4f45(0x289)])(d['DocSkeletonManagerService'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(j)),x(0x3,t['ICommandService']),x(0x4,(0x0,t[_0x4a4f45(0x289)])(t['ThemeService']))],N);var _e=class extends p[_0x4a4f45(0x1b4)]{constructor(_0x41186d,_0x17d4e2){const _0x39c818=_0x4a4f45;super(_0x41186d,_0x17d4e2),b(this,_0x39c818(0x29e),void 0x0),b(this,_0x39c818(0x2cc),!0x1),b(this,'_range',void 0x0),b(this,_0x39c818(0x1e7),''),b(this,_0x39c818(0x3c8),'top'),b(this,_0x39c818(0x2b6),void 0x0),b(this,_0x39c818(0x1e6),void 0x0),b(this,_0x39c818(0x293),void 0x0),b(this,_0x39c818(0x33f),0x4),b(this,_0x39c818(0x424),void 0x0),b(this,_0x39c818(0x395),void 0x0),b(this,_0x39c818(0x140),!0x0),b(this,_0x39c818(0x301),0x0),b(this,_0x39c818(0x3b9),_0x39c818(0x31b)),_0x17d4e2&&(this[_0x39c818(0x22a)](_0x17d4e2),_0x17d4e2[_0x39c818(0x3a1)]&&(_0x17d4e2['highlightSecond']??this[_0x39c818(0x33f)])&&this[_0x39c818(0x23c)](_0x17d4e2[_0x39c818(0x338)]??this[_0x39c818(0x33f)])),this[_0x39c818(0x1d9)][_0x39c818(0x204)](()=>this[_0x39c818(0x22a)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x39c818(0x22a)]({'hovered':!0x1}));}[_0x4a4f45(0x2d8)](_0x5981f6){const _0x2cd10e=_0x4a4f45;this[_0x2cd10e(0x301)]=_0x5981f6;}['setShapeProps'](_0x37ae4a){const _0x122aa3=_0x4a4f45;this[_0x122aa3(0x29e)]=_0x37ae4a[_0x122aa3(0x3e0)]??this[_0x122aa3(0x29e)],this[_0x122aa3(0x2cc)]=_0x37ae4a['hovered']??this[_0x122aa3(0x2cc)],this[_0x122aa3(0x32f)]=_0x37ae4a[_0x122aa3(0x355)]??this[_0x122aa3(0x32f)],this[_0x122aa3(0x1e7)]=_0x37ae4a[_0x122aa3(0x3b3)]??this[_0x122aa3(0x1e7)],this[_0x122aa3(0x3c8)]=_0x37ae4a[_0x122aa3(0x219)]??this['_labelPosition'],this['_backgroundColor']=_0x37ae4a[_0x122aa3(0x2e6)]??this[_0x122aa3(0x2b6)],this['_showText']=_0x37ae4a[_0x122aa3(0x14f)]??this[_0x122aa3(0x1e6)],this[_0x122aa3(0x3b9)]=_0x37ae4a['labelHorizontalPosition']??this[_0x122aa3(0x3b9)],_0x37ae4a[_0x122aa3(0x338)]!==void 0x0&&(this[_0x122aa3(0x33f)]=_0x37ae4a[_0x122aa3(0x338)]),_0x37ae4a['highlight']!==void 0x0&&(this[_0x122aa3(0x293)]=_0x37ae4a['highlight']),_0x37ae4a[_0x122aa3(0x1b3)]!==void 0x0&&(this[_0x122aa3(0x301)]=_0x37ae4a[_0x122aa3(0x1b3)]),this[_0x122aa3(0x3fd)]({'width':_0x37ae4a[_0x122aa3(0x215)],'height':_0x37ae4a[_0x122aa3(0x21d)]});}[_0x4a4f45(0x3ac)](_0x150459){const _0x431cb0=_0x4a4f45;let {row:_0x1a77ae,column:_0x5ab0d0}=_0x150459;_0x1a77ae>=this[_0x431cb0(0x32f)][_0x431cb0(0x132)]&&_0x1a77ae<=this[_0x431cb0(0x32f)][_0x431cb0(0x430)]&&_0x5ab0d0>=this[_0x431cb0(0x32f)][_0x431cb0(0x41a)]&&_0x5ab0d0<=this[_0x431cb0(0x32f)][_0x431cb0(0x35d)]?this[_0x431cb0(0x22a)]({'hovered':!0x0}):this[_0x431cb0(0x22a)]({'hovered':!0x1});}[_0x4a4f45(0x23c)](_0x1b8b09){const _0x47274e=_0x4a4f45;this[_0x47274e(0x3cf)](),this[_0x47274e(0x140)]=!0x0,this[_0x47274e(0x395)]=window[_0x47274e(0x230)](()=>{const _0x427118=_0x47274e;this[_0x427118(0x140)]=!this[_0x427118(0x140)],this[_0x427118(0x3be)](!0x0);},0x1f4),this[_0x47274e(0x424)]=window[_0x47274e(0x40f)](()=>{const _0x42336e=_0x47274e;this[_0x42336e(0x3cf)](),this['_isBlinkVisible']=!0x0,this['makeDirty'](!0x0);},_0x1b8b09*0x3e8);}['_stopBlinking'](){const _0x3c401d=_0x4a4f45;this[_0x3c401d(0x395)]&&=(window[_0x3c401d(0x29c)](this[_0x3c401d(0x395)]),void 0x0),this['_blinkTimer']&&=(window['clearTimeout'](this[_0x3c401d(0x424)]),void 0x0);}[_0x4a4f45(0x137)](_0x5d26d8){return!0x1;}['dispose'](){const _0xe3dd68=_0x4a4f45;this[_0xe3dd68(0x3cf)](),super[_0xe3dd68(0x288)]();}[_0x4a4f45(0x287)](_0x2caef9){const _0x6c7b35=_0x4a4f45;let _0x1f3a9a=this[_0x6c7b35(0x29e)],_0x8e81c6=this[_0x6c7b35(0x2b6)];if(this[_0x6c7b35(0x293)]&&!this[_0x6c7b35(0x140)]&&(_0x1f3a9a=this[_0x6c7b35(0x278)](this[_0x6c7b35(0x29e)]),_0x8e81c6=this[_0x6c7b35(0x2b6)]?this['_getLighterColor'](this['_backgroundColor']):void 0x0),p[_0x6c7b35(0x1fe)][_0x6c7b35(0x253)](_0x2caef9,{'width':this['width'],'height':this[_0x6c7b35(0x21d)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x1f3a9a,'evented':!0x1,'fill':_0x8e81c6}),this[_0x6c7b35(0x2cc)]||this[_0x6c7b35(0x1e6)]){_0x2caef9[_0x6c7b35(0x394)]();let _0x37ccac=this[_0x6c7b35(0x3b9)]==='left'?-fe(_0x2caef9,this[_0x6c7b35(0x1e7)]):this[_0x6c7b35(0x215)];_0x2caef9[_0x6c7b35(0x32e)](0x1,0x0,0x0,0x1,_0x37ccac,(this['_labelPosition']===_0x6c7b35(0x1ef)?0x0:-0x14)+(this['_offsetY']??0x0)),me[_0x6c7b35(0x253)](_0x2caef9,{'text':this[_0x6c7b35(0x1e7)],'color':_0x1f3a9a}),_0x2caef9[_0x6c7b35(0x209)]();}}['_getLighterColor'](_0x437556){const _0x2b3e6f=_0x4a4f45;return _0x437556[_0x2b3e6f(0x34d)]('#')?_0x2b3e6f(0x42f)+Number['parseInt'](_0x437556[_0x2b3e6f(0x3d0)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x437556[_0x2b3e6f(0x3d0)](0x3,0x5),0x10)+',\x20'+Number[_0x2b3e6f(0x3da)](_0x437556['slice'](0x5,0x7),0x10)+_0x2b3e6f(0x39d):_0x437556[_0x2b3e6f(0x34d)](_0x2b3e6f(0x364))?_0x437556[_0x2b3e6f(0x33c)](/[\d.]+\)$/g,_0x2b3e6f(0x12e)):_0x437556[_0x2b3e6f(0x34d)](_0x2b3e6f(0x1a3))?_0x437556[_0x2b3e6f(0x33c)](_0x2b3e6f(0x1a3),_0x2b3e6f(0x364))[_0x2b3e6f(0x33c)](')',_0x2b3e6f(0x39d)):_0x437556;}};let P=class extends t['RxDisposable']{constructor(_0x4d1fcd,_0x4f6954,_0x1c735d,_0x33d32e){const _0x5364be=_0x4a4f45;super(),this[_0x5364be(0x1d5)]=_0x4d1fcd,this['_sheetSkeletonManagerService']=_0x4f6954,this[_0x5364be(0x405)]=_0x1c735d,this[_0x5364be(0x192)]=_0x33d32e,b(this,_0x5364be(0x138),new Set()),b(this,_0x5364be(0x268),null),b(this,_0x5364be(0x373),null),this[_0x5364be(0x332)]();}[_0x4a4f45(0x332)](){const _0x290410=_0x4a4f45;this[_0x290410(0x429)][_0x290410(0x3de)][_0x290410(0x237)]((0x0,i[_0x290410(0x42e)])(this[_0x290410(0x3f1)]),(0x0,i[_0x290410(0x3cd)])(_0x31349b=>{const _0x584042=_0x290410;if(_0x31349b){let _0x30d8ef=_0x31349b[_0x584042(0x275)];return(0x0,r['combineLatest'])(this[_0x584042(0x405)][_0x584042(0x197)](this[_0x584042(0x1d5)][_0x584042(0x3ad)]),this[_0x584042(0x192)][_0x584042(0x146)])[_0x584042(0x237)]((0x0,i[_0x584042(0x19c)])(([_0x2998b7,_0x2df2ed])=>{const _0x42182b=_0x584042;let _0x1108a0=new Map();return _0x2998b7[_0x42182b(0x22c)]((_0x4000f0,_0x2c10c2)=>{const _0x404fdd=_0x42182b;if(_0x4000f0[_0x404fdd(0x22d)]===_0x30d8ef){let _0x5258ef={..._0x4000f0};_0x5258ef[_0x404fdd(0x3e0)]=this['_themeService']['getColorFromTheme'](_0x4000f0[_0x404fdd(0x3e0)]),_0x1108a0[_0x404fdd(0x1a1)](_0x2c10c2,_0x5258ef);}}),{'skeleton':_0x31349b,'cursors':_0x1108a0};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x290410(0x195)](({skeleton:_0x442e2c,cursors:_0x1c34df})=>{const _0x1e66b1=_0x290410;this[_0x1e66b1(0x422)](),_0x442e2c&&this[_0x1e66b1(0x131)](_0x442e2c,_0x1c34df);}),this[_0x290410(0x2ad)](this[_0x290410(0x429)]['currentSkeleton$'][_0x290410(0x237)]((0x0,i[_0x290410(0x42e)])(this[_0x290410(0x3f1)]))[_0x290410(0x195)](_0xba16ad=>{const _0x42106d=_0x290410;var _0x372a05;if(_0xba16ad==null)return;(_0x372a05=this[_0x42106d(0x373)])==null||_0x372a05[_0x42106d(0x372)](),this[_0x42106d(0x373)]=null;let {skeleton:_0x3c6c88}=_0xba16ad,{scene:_0x12ed39}=this[_0x42106d(0x1d5)];this['_pointerMoveDisposable']=_0x12ed39[_0x42106d(0x341)]['subscribeEvent']((0x0,t['debounce'])(_0x4a0b32=>{const _0x56b531=_0x42106d;var _0x1d7c24,_0x5f4703;let {offsetX:_0x4d53e1,offsetY:_0x34acc4}=_0x4a0b32,{x:_0x55a8e0,y:_0x3d3c81}=_0x12ed39[_0x56b531(0x31d)](p[_0x56b531(0x2bf)][_0x56b531(0x411)]([_0x4d53e1,_0x34acc4])),{scaleX:_0x5d1640,scaleY:_0x3b33be}=_0x12ed39['getAncestorScale'](),_0x22174d=_0x12ed39[_0x56b531(0x3ed)](p[_0x56b531(0x34b)][_0x56b531(0x1fb)]),_0x1790b0=_0x12ed39[_0x56b531(0x17b)](p[_0x56b531(0x2bf)][_0x56b531(0x411)]([_0x55a8e0,_0x3d3c81]),_0x22174d),_0x26e7f0=_0x3c6c88['getCellIndexByOffset'](_0x4d53e1,_0x34acc4,_0x5d1640,_0x3b33be,_0x1790b0);(((_0x1d7c24=this[_0x56b531(0x268)])==null?void 0x0:_0x1d7c24[_0x56b531(0x378)])!==_0x26e7f0[_0x56b531(0x378)]||((_0x5f4703=this[_0x56b531(0x268)])==null?void 0x0:_0x5f4703['row'])!==_0x26e7f0[_0x56b531(0x1b6)])&&this[_0x56b531(0x138)][_0x56b531(0x22c)](_0x1b9381=>{const _0x5b0c7c=_0x56b531;_0x1b9381[_0x5b0c7c(0x3ac)](_0x26e7f0);});},0x64));})),this[_0x290410(0x2ad)]((0x0,t[_0x290410(0x2be)])(()=>{const _0x40b2cb=_0x290410;var _0x505048;(_0x505048=this['_pointerMoveDisposable'])==null||_0x505048['unsubscribe'](),this[_0x40b2cb(0x373)]=null;}));}[_0x4a4f45(0x131)](_0x5c2b0b,_0x3cfd48){const _0x342ff8=_0x4a4f45;let _0x25a824=this[_0x342ff8(0x429)]['getCurrentSkeleton']();if(!_0x25a824)return;let _0x1e769e=this[_0x342ff8(0x16d)]();if(!_0x1e769e)return;this[_0x342ff8(0x138)]['forEach'](_0x342aa7=>{_0x342aa7['makeDirty']();});let {scene:_0x2be782}=_0x1e769e,_0x3421c1=ve(Array[_0x342ff8(0x241)](_0x3cfd48[_0x342ff8(0x40c)]()))[_0x342ff8(0x19c)](_0x5e268b=>{const _0x40df01=_0x342ff8;let {color:_0x2dc04d,range:_0x9f7cc2,name:_0x148129,selection:_0x2e2157,sheetID:_0x4d19ab}=_0x5e268b,{startColumn:_0x5e1f6d,startRow:_0x27d8c2,endColumn:_0x4e3a93,endRow:_0x130b98}=_0x9f7cc2,_0x2eb2de=(0x0,_[_0x40df01(0x2ca)])(_0x27d8c2,_0x5e1f6d,_0x2be782,_0x25a824),_0x4e8159=(0x0,_[_0x40df01(0x2ca)])(_0x130b98,_0x4e3a93,_0x2be782,_0x25a824),{columnHeaderHeightAndMarginTop:_0xb6c76a}=_0x25a824,{startX:_0x55766c,startY:_0x1ef2bf}=_0x2eb2de,{endX:_0x3a631f,endY:_0x168385}=_0x4e8159,_0xabcaf0=_0x3a631f-_0x55766c,_0x1d4f8f=_0x168385-_0x1ef2bf;return new _e(_0x148129,{'labelPosition':_0x1ef2bf-_0xb6c76a>=0x14?_0x40df01(0x333):_0x40df01(0x1ef),'sheetID':_0x4d19ab,'range':_0x9f7cc2,'color':_0x2dc04d,'name':_0x148129,'selection':_0x2e2157,'left':_0x55766c,'top':_0x1ef2bf,'width':_0xabcaf0,'height':_0x1d4f8f,'evented':!0x1,'zIndex':0x1389});});_0x2be782[_0x342ff8(0x147)](_0x3421c1,0x1),this[_0x342ff8(0x138)]=new Set(_0x3421c1);}[_0x4a4f45(0x422)](){const _0x416f36=_0x4a4f45;var _0x3cae27;(_0x3cae27=this[_0x416f36(0x138)])==null||_0x3cae27[_0x416f36(0x22c)](_0x294592=>_0x294592[_0x416f36(0x288)]());}[_0x4a4f45(0x16d)](){const _0x4b5b8c=_0x4a4f45;return(0x0,_[_0x4b5b8c(0x1f6)])(this['_context'][_0x4b5b8c(0x181)],this[_0x4b5b8c(0x1d5)]);}};P=S([x(0x1,(0x0,t[_0x4a4f45(0x289)])(_['SheetSkeletonManagerService'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(j)),x(0x3,(0x0,t['Inject'])(t[_0x4a4f45(0x260)]))],P);function ve(_0x23ff7d){const _0x2e056b=_0x4a4f45;let _0x4b0f16=new Map();return _0x23ff7d[_0x2e056b(0x22c)](_0x37a9b5=>{const _0x5d4b04=_0x2e056b;if(_0x4b0f16['has'](_0x37a9b5[_0x5d4b04(0x33e)])){let _0x24be63=_0x4b0f16[_0x5d4b04(0x39f)](_0x37a9b5['selection']);_0x24be63[_0x5d4b04(0x3b3)]+=',\x20'+_0x37a9b5[_0x5d4b04(0x3b3)];}else _0x4b0f16[_0x5d4b04(0x1a1)](_0x37a9b5[_0x5d4b04(0x33e)],_0x37a9b5);}),Array[_0x2e056b(0x241)](_0x4b0f16[_0x2e056b(0x40c)]());}function F(_0x2557fe){const _0x165389=_0x4a4f45;return typeof _0x2557fe==_0x165389(0x362)&&!!_0x2557fe;}function ye(_0x3aeaa8){const _0x597b77=_0x4a4f45;return _0x3aeaa8[_0x597b77(0x170)]===l['CollaborationEvent'][_0x597b77(0x32c)]&&_0x597b77(0x18c)in _0x3aeaa8&&F(_0x3aeaa8['data'])&&typeof _0x3aeaa8[_0x597b77(0x18c)][_0x597b77(0x37b)]==_0x597b77(0x2cf)&&typeof _0x3aeaa8[_0x597b77(0x18c)][_0x597b77(0x33e)]==_0x597b77(0x2cf);}function be(_0x962d4c){const _0xb3398=_0x4a4f45;return _0x962d4c[_0xb3398(0x170)]===l['CollaborationEvent'][_0xb3398(0x3e8)]&&_0xb3398(0x18c)in _0x962d4c&&F(_0x962d4c[_0xb3398(0x18c)])&&typeof _0x962d4c[_0xb3398(0x18c)]['memberID']==_0xb3398(0x2cf);}function xe(_0x553dc1,_0x506db6){const _0x23b906=_0x4a4f45;let _0x2c0d9e;try{_0x2c0d9e=JSON[_0x23b906(0x12c)](_0x553dc1);}catch{return null;}if(!F(_0x2c0d9e)||typeof _0x2c0d9e['kind']!=_0x23b906(0x2cf)||typeof _0x2c0d9e['unitId']!=_0x23b906(0x2cf)||typeof _0x2c0d9e[_0x23b906(0x1b9)]!=_0x23b906(0x2cf))return null;let _0x246c4c=typeof _0x2c0d9e[_0x23b906(0x348)]==_0x23b906(0x35f)?_0x2c0d9e['unitType']:_0x506db6;if(_0x246c4c==null)return null;let _0x1fe041=F(_0x2c0d9e[_0x23b906(0x414)])&&typeof _0x2c0d9e[_0x23b906(0x414)]['x']==_0x23b906(0x35f)&&Number[_0x23b906(0x2dd)](_0x2c0d9e[_0x23b906(0x414)]['x'])&&typeof _0x2c0d9e[_0x23b906(0x414)]['y']==_0x23b906(0x35f)&&Number['isFinite'](_0x2c0d9e[_0x23b906(0x414)]['y'])?{'x':_0x2c0d9e['pointer']['x'],'y':_0x2c0d9e[_0x23b906(0x414)]['y']}:null;return{'kind':_0x2c0d9e[_0x23b906(0x428)],'unitType':_0x246c4c,'unitId':_0x2c0d9e[_0x23b906(0x3ad)],'subUnitId':_0x2c0d9e[_0x23b906(0x1b9)],'selectedIds':Array[_0x23b906(0x347)](_0x2c0d9e[_0x23b906(0x361)])?_0x2c0d9e['selectedIds']['filter'](_0x272bc2=>typeof _0x272bc2==_0x23b906(0x2cf)):[],'focusedId':typeof _0x2c0d9e[_0x23b906(0x1e0)]==_0x23b906(0x2cf)?_0x2c0d9e[_0x23b906(0x1e0)]:null,'pointer':_0x1fe041};}function Se(_0x4a793c,_0x391008,_0x250696){const _0x1df1bc=_0x4a4f45;return{'kind':_0x391008,'unitType':_0x4a793c,'unitId':_0x250696['unitId'],'subUnitId':_0x250696['subUnitId'],'selectedIds':Array[_0x1df1bc(0x241)](_0x250696[_0x1df1bc(0x361)]),'focusedId':_0x250696['focusedId'],'pointer':_0x250696[_0x1df1bc(0x414)]?{..._0x250696['pointer']}:null};}let I=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x20b663,_0x1fd7db,_0x2fe18b,_0x509b06,_0x8ec3f7,_0x2886b0){const _0x5e1373=_0x4a4f45;super(),this[_0x5e1373(0x3ad)]=_0x20b663,this[_0x5e1373(0x1e3)]=_0x1fd7db,this['_adapter']=_0x2fe18b,this[_0x5e1373(0x1c2)]=_0x509b06,this['_memberService']=_0x8ec3f7,this[_0x5e1373(0x14b)]=_0x2886b0,b(this,_0x5e1373(0x38b),!0x1),b(this,_0x5e1373(0x284),!0x1);}get[_0x4a4f45(0x348)](){const _0xd05126=_0x4a4f45;return this[_0xd05126(0x1a4)]['unitType'];}[_0x4a4f45(0x288)](){const _0x3914e8=_0x4a4f45;this[_0x3914e8(0x3bd)](),super[_0x3914e8(0x288)]();}[_0x4a4f45(0x42d)](){const _0x1493f5=_0x4a4f45;this[_0x1493f5(0x284)]||(this[_0x1493f5(0x284)]=!0x0,this[_0x1493f5(0x1e3)][_0x1493f5(0x2b4)][_0x1493f5(0x237)]((0x0,r['takeUntil'])(this[_0x1493f5(0x3f1)]))[_0x1493f5(0x195)](_0x15594d=>{const _0x3a4afd=_0x1493f5;if(_0x15594d===e[_0x3a4afd(0x3f2)][_0x3a4afd(0x2e8)]){this[_0x3a4afd(0x38b)]=!0x0;let _0x1fa123=this[_0x3a4afd(0x1a4)][_0x3a4afd(0x365)](this['unitId']);_0x1fa123&&this[_0x3a4afd(0x1f2)](_0x1fa123);}else this[_0x3a4afd(0x38b)]=!0x1,this[_0x3a4afd(0x3bd)]();}),this['_session'][_0x1493f5(0x212)][_0x1493f5(0x237)]((0x0,r[_0x1493f5(0x42e)])(this['dispose$']))[_0x1493f5(0x195)](_0x1cb9ee=>{const _0x5c5cf5=_0x1493f5;ye(_0x1cb9ee)?this['_handleCursorUpdate'](_0x1cb9ee):be(_0x1cb9ee)&&this[_0x5c5cf5(0x17a)](_0x1cb9ee['data']['memberID']);}),this['_adapter']['localPresence$']['pipe']((0x0,r[_0x1493f5(0x3e3)])(_0x299746=>this[_0x1493f5(0x38b)]&&_0x299746['unitId']===this[_0x1493f5(0x3ad)]),(0x0,r['throttle'])(_0x3815c8=>(0x0,r[_0x1493f5(0x322)])(_0x3815c8[_0x1493f5(0x20c)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r['takeUntil'])(this[_0x1493f5(0x3f1)]))[_0x1493f5(0x195)](_0x1faba4=>this[_0x1493f5(0x1f2)](_0x1faba4)));}[_0x4a4f45(0x1f2)](_0xcc52e9){const _0x3fed8c=_0x4a4f45;let _0x18cc98=this['_session'][_0x3fed8c(0x1af)]();if(!_0x18cc98||!this[_0x3fed8c(0x38b)])return;let _0x48e846={'eventID':l[_0x3fed8c(0x243)][_0x3fed8c(0x32c)],'data':{'unitID':this[_0x3fed8c(0x3ad)],'memberID':_0x18cc98,'selection':JSON[_0x3fed8c(0x26b)](Se(this[_0x3fed8c(0x348)],this[_0x3fed8c(0x1a4)][_0x3fed8c(0x3c0)],_0xcc52e9))}};this[_0x3fed8c(0x1e3)]['send'](_0x48e846,this[_0x3fed8c(0x3ad)])[_0x3fed8c(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x3bb)](_0x1cfe8b){const _0x51fb4e=_0x4a4f45;let {memberID:_0x28f4d6,selection:_0x1c6598}=_0x1cfe8b['data'];if(_0x28f4d6===this['_session'][_0x51fb4e(0x1af)]())return;let _0xe45f27=xe(_0x1c6598,this[_0x51fb4e(0x348)]);if(!_0xe45f27||_0xe45f27[_0x51fb4e(0x428)]!==this['_adapter'][_0x51fb4e(0x3c0)]||_0xe45f27[_0x51fb4e(0x348)]!==this[_0x51fb4e(0x348)]||_0xe45f27[_0x51fb4e(0x3ad)]!==this['unitId'])return;let _0x38578e=this[_0x51fb4e(0x374)][_0x51fb4e(0x1e9)](this[_0x51fb4e(0x3ad)],_0x28f4d6),_0x2d6378={'unitId':_0xe45f27['unitId'],'subUnitId':_0xe45f27[_0x51fb4e(0x1b9)],'selectedIds':_0xe45f27[_0x51fb4e(0x361)],'focusedId':_0xe45f27['focusedId'],'pointer':_0xe45f27[_0x51fb4e(0x414)],'memberId':_0x28f4d6,'color':this[_0x51fb4e(0x1c2)][_0x51fb4e(0x330)](_0x28f4d6),'name':(_0x38578e==null?void 0x0:_0x38578e[_0x51fb4e(0x3b3)])??_0x28f4d6};this[_0x51fb4e(0x14b)][_0x51fb4e(0x18d)](T['id'],{'unitType':this[_0x51fb4e(0x348)],'update':{'type':_0x51fb4e(0x1a1),'state':_0x2d6378}})[_0x51fb4e(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x17a)](_0x483d30){const _0x2cb2cd=_0x4a4f45;this[_0x2cb2cd(0x14b)][_0x2cb2cd(0x18d)](T['id'],{'unitType':this[_0x2cb2cd(0x348)],'update':{'type':_0x2cb2cd(0x221),'unitId':this[_0x2cb2cd(0x3ad)],'memberId':_0x483d30}})[_0x2cb2cd(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x3bd)](){const _0x732d07=_0x4a4f45;this[_0x732d07(0x14b)][_0x732d07(0x18d)](T['id'],{'unitType':this[_0x732d07(0x348)],'update':{'type':'clear','unitId':this[_0x732d07(0x3ad)]}})['catch'](()=>void 0x0);}};I=S([x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x412)])),x(0x5,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x1de)]))],I);let L=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x52a63e,_0x45c1,_0x3adea9,_0x4d0b0a){const _0x3190d8=_0x4a4f45;super(),this[_0x3190d8(0x25c)]=_0x52a63e,this[_0x3190d8(0x38f)]=_0x45c1,this[_0x3190d8(0x27b)]=_0x3adea9,this['_adapterRegistry']=_0x4d0b0a,b(this,'_isDisposed',!0x1),b(this,_0x3190d8(0x2c0),new Map()),b(this,_0x3190d8(0x1da),new Map()),b(this,_0x3190d8(0x123),new Map()),this[_0x3190d8(0x332)]();}[_0x4a4f45(0x288)](){const _0x10249e=_0x4a4f45;this['_isDisposed']=!0x0,this['_adapterDisposables'][_0x10249e(0x22c)](_0xd79bd6=>_0xd79bd6[_0x10249e(0x288)]()),this['_adapterDisposables'][_0x10249e(0x337)](),this[_0x10249e(0x2c0)][_0x10249e(0x22c)](_0x373b4c=>_0x373b4c['dispose']()),this[_0x10249e(0x2c0)][_0x10249e(0x337)](),this['_pendingEntities'][_0x10249e(0x337)](),super['dispose']();}[_0x4a4f45(0x332)](){const _0x54bc5f=_0x4a4f45;this[_0x54bc5f(0x312)][_0x54bc5f(0x153)][_0x54bc5f(0x237)]((0x0,r['takeUntil'])(this[_0x54bc5f(0x3f1)]))['subscribe'](_0x4e0503=>this[_0x54bc5f(0x36b)](_0x4e0503));}['_syncAdapters'](_0x88669f){const _0x39bfad=_0x4a4f45;let _0x5f27a0=new Set(_0x88669f[_0x39bfad(0x19c)](_0x30a1d6=>_0x30a1d6[_0x39bfad(0x348)]));this[_0x39bfad(0x123)][_0x39bfad(0x22c)]((_0x385dc9,_0x28584e)=>{const _0x2b3ab4=_0x39bfad;_0x5f27a0[_0x2b3ab4(0x33a)](_0x28584e)||(_0x385dc9['dispose'](),this[_0x2b3ab4(0x123)]['delete'](_0x28584e),this['_disposeEntitiesForType'](_0x28584e));}),_0x88669f[_0x39bfad(0x22c)](_0xf8948b=>{const _0x2673bf=_0x39bfad;this[_0x2673bf(0x123)][_0x2673bf(0x33a)](_0xf8948b[_0x2673bf(0x348)])||this[_0x2673bf(0x1ca)](_0xf8948b);});}['_bindAdapter'](_0x253833){const _0x25fb7e=_0x4a4f45;let _0x5d34d3=new t[(_0x25fb7e(0x403))]();this['_adapterDisposables'][_0x25fb7e(0x1a1)](_0x253833[_0x25fb7e(0x348)],_0x5d34d3),_0x5d34d3[_0x25fb7e(0x307)](_0x253833['activate']()),this[_0x25fb7e(0x25c)][_0x25fb7e(0x413)](_0x253833[_0x25fb7e(0x348)])['forEach'](_0x415a73=>this[_0x25fb7e(0x25a)](_0x415a73[_0x25fb7e(0x370)](),_0x253833)[_0x25fb7e(0x3a0)](()=>void 0x0));let _0x49a3f7=this[_0x25fb7e(0x25c)][_0x25fb7e(0x309)](_0x253833['unitType'])[_0x25fb7e(0x195)](({unit:_0x5bb258})=>this[_0x25fb7e(0x25a)](_0x5bb258[_0x25fb7e(0x370)](),_0x253833)[_0x25fb7e(0x3a0)](()=>void 0x0));_0x5d34d3[_0x25fb7e(0x307)]((0x0,t['toDisposable'])(()=>_0x49a3f7[_0x25fb7e(0x372)]()));let _0x4bd6e3=this[_0x25fb7e(0x25c)][_0x25fb7e(0x3b6)](_0x253833[_0x25fb7e(0x348)])[_0x25fb7e(0x195)](_0x5c88f8=>this[_0x25fb7e(0x3b1)](_0x5c88f8[_0x25fb7e(0x370)]()));_0x5d34d3[_0x25fb7e(0x307)]((0x0,t[_0x25fb7e(0x2be)])(()=>_0x4bd6e3[_0x25fb7e(0x372)]()));}async[_0x4a4f45(0x25a)](_0x1eaeb6,_0x1acb1c){const _0x2d9959=_0x4a4f45;if(this[_0x2d9959(0x2c0)][_0x2d9959(0x33a)](_0x1eaeb6)||this[_0x2d9959(0x1da)][_0x2d9959(0x33a)](_0x1eaeb6))return;let _0x37ee38={};this[_0x2d9959(0x1da)][_0x2d9959(0x1a1)](_0x1eaeb6,_0x37ee38);let _0x523026=await this[_0x2d9959(0x27b)][_0x2d9959(0x331)](_0x1eaeb6)[_0x2d9959(0x3a0)](_0x20c3b1=>{const _0x75fd7d=_0x2d9959;throw this['_pendingEntities'][_0x75fd7d(0x39f)](_0x1eaeb6)===_0x37ee38&&this[_0x75fd7d(0x1da)][_0x75fd7d(0x426)](_0x1eaeb6),_0x20c3b1;});if(this['_isDisposed']||this[_0x2d9959(0x1da)][_0x2d9959(0x39f)](_0x1eaeb6)!==_0x37ee38||this[_0x2d9959(0x312)][_0x2d9959(0x39f)](_0x1acb1c['unitType'])!==_0x1acb1c){this[_0x2d9959(0x1da)][_0x2d9959(0x39f)](_0x1eaeb6)===_0x37ee38&&this[_0x2d9959(0x1da)]['delete'](_0x1eaeb6);return;}let _0x368c4b=this[_0x2d9959(0x38f)][_0x2d9959(0x3ba)](I,_0x1eaeb6,_0x523026,_0x1acb1c);_0x368c4b[_0x2d9959(0x42d)](),this['_pendingEntities']['delete'](_0x1eaeb6),this[_0x2d9959(0x2c0)]['set'](_0x1eaeb6,_0x368c4b);}[_0x4a4f45(0x3b1)](_0x46debd){const _0x23296b=_0x4a4f45;this[_0x23296b(0x1da)][_0x23296b(0x426)](_0x46debd);let _0x5b4c23=this[_0x23296b(0x2c0)]['get'](_0x46debd);_0x5b4c23&&(_0x5b4c23[_0x23296b(0x288)](),this[_0x23296b(0x2c0)][_0x23296b(0x426)](_0x46debd));}[_0x4a4f45(0x40a)](_0x51e3e8){const _0x4efc63=_0x4a4f45;this[_0x4efc63(0x25c)][_0x4efc63(0x413)](_0x51e3e8)[_0x4efc63(0x22c)](_0x461fbe=>this[_0x4efc63(0x1da)][_0x4efc63(0x426)](_0x461fbe[_0x4efc63(0x370)]())),Array[_0x4efc63(0x241)](this[_0x4efc63(0x2c0)]['entries']())['forEach'](([_0x27715d,_0x2f9be6])=>{const _0x56ac8a=_0x4efc63;_0x2f9be6[_0x56ac8a(0x348)]===_0x51e3e8&&this['_disposeEntity'](_0x27715d);});}};L=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x3f7)])),x(0x3,(0x0,t[_0x4a4f45(0x289)])(n['IUnitPresenceUIAdapterRegistry']))],L);const R={'toast':_0x4a4f45(0x321),'actionButton':_0x4a4f45(0x2a4)};let z=class extends t['Disposable']{constructor(_0x18e033,_0x5d0519,_0xdd899d,_0x18b193,_0x3c99ef,_0x1c0d41){const _0x1dc027=_0x4a4f45;super(),this[_0x1dc027(0x33d)]=_0x18e033,this[_0x1dc027(0x17f)]=_0x5d0519,this['_collaborationUIEventService']=_0xdd899d,this[_0x1dc027(0x168)]=_0x18b193,this[_0x1dc027(0x173)]=_0x3c99ef,this[_0x1dc027(0x249)]=_0x1c0d41,b(this,'_conflictNotification',null),b(this,'_retryingConflictCacheUnitIDs',new Set()),this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x4a4f45(0x288)](){const _0x873c24=_0x4a4f45;var _0x12e612;(_0x12e612=this[_0x873c24(0x2a2)])==null||_0x12e612[_0x873c24(0x288)](),this[_0x873c24(0x2a2)]=null,super[_0x873c24(0x288)]();}[_0x4a4f45(0x41b)](){const _0x34b142=_0x4a4f45;this[_0x34b142(0x2ad)](this[_0x34b142(0x33d)]['registerBeforeClose'](()=>{const _0x449bd5=_0x34b142;if(this[_0x449bd5(0x17f)]['saveTaskMap'][_0x449bd5(0x3db)])return this[_0x449bd5(0x249)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x4a4f45(0x214)](){const _0x5cc62f=_0x4a4f45;this[_0x5cc62f(0x2ad)](this[_0x5cc62f(0x2cd)][_0x5cc62f(0x212)][_0x5cc62f(0x195)](_0x4375a1=>{const _0x5bd7b1=_0x5cc62f;_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['OTHER_CLIENT_EDITING']&&this[_0x5bd7b1(0x168)]['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this['_localeService']['t'](_0x5bd7b1(0x26f))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x251)]&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x16b))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x2c1)]&&this[_0x5bd7b1(0x1b8)]({'title':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x2ea)),'content':this['_localeService']['t']('collaboration-client-ui.permission.content'),'type':_0x5bd7b1(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x2a7)),'onClick':_0x25a6e2=>{const _0x29ca9a=_0x5bd7b1;_0x25a6e2[_0x29ca9a(0x22b)](),window[_0x29ca9a(0x151)][_0x29ca9a(0x232)]();}}}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x3ec)]&&this[_0x5bd7b1(0x3a3)](),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x3f6)]&&_0x4375a1[_0x5bd7b1(0x246)]&&this[_0x5bd7b1(0x398)](_0x4375a1['unitID'],_0x4375a1[_0x5bd7b1(0x313)]??''),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['CONFLICT']&&this['_replaceConflictNotification']({'title':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x41d)),'content':this['_localeService']['t'](_0x5bd7b1(0x25d)),'type':_0x5bd7b1(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this['_localeService']['t'](_0x5bd7b1(0x2a7)),'onClick':_0x4fc7e2=>{const _0x121ddc=_0x5bd7b1;_0x4fc7e2[_0x121ddc(0x22b)](),window[_0x121ddc(0x151)][_0x121ddc(0x232)]();}}}),_0x4375a1['id']===e['CollaborationUIEventId'][_0x5bd7b1(0x2a5)]&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a['MessageType'][_0x5bd7b1(0x179)],'content':this[_0x5bd7b1(0x249)]['t'](_0x4375a1[_0x5bd7b1(0x18c)]||'')}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x19e)]&&this['_messageService']['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this['_localeService']['t'](_0x5bd7b1(0x1e2))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['SOCKET_FAILED']&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x1cc)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x256))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5bd7b1(0x168)]['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x1cc)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x342))});}));}[_0x4a4f45(0x3a3)](){const _0x58a63d=_0x4a4f45;this['_replaceConflictNotification']({'title':this[_0x58a63d(0x249)]['t'](_0x58a63d(0x41d)),'content':this[_0x58a63d(0x249)]['t'](_0x58a63d(0x2d2)),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x4a4f45(0x398)](_0x4d3e7d,_0x387412){const _0x5f42de=_0x4a4f45;this['_replaceConflictNotification']({'title':this[_0x5f42de(0x249)]['t'](_0x5f42de(0x41d)),'content':this['_localeService']['t'](_0x5f42de(0x1d1)),'type':_0x5f42de(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x5f42de(0x249)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x2a9a46=>{const _0x14f8c6=_0x5f42de;_0x2a9a46[_0x14f8c6(0x22b)](),this['_retryConflictCacheClear'](_0x4d3e7d,_0x387412);}}});}[_0x4a4f45(0x3a6)](_0x3ec285,_0x4263fa){const _0x4acf1c=_0x4a4f45;let _0x1c71f4=_0x3ec285+':'+(_0x4263fa??'');this[_0x4acf1c(0x416)][_0x4acf1c(0x33a)](_0x1c71f4)||(this[_0x4acf1c(0x416)][_0x4acf1c(0x307)](_0x1c71f4),this['_showConflictProcessingNotification'](),this[_0x4acf1c(0x17f)][_0x4acf1c(0x2ef)](_0x3ec285,_0x4263fa)[_0x4acf1c(0x2b1)](()=>window[_0x4acf1c(0x151)]['reload']())[_0x4acf1c(0x3a0)](()=>this[_0x4acf1c(0x398)](_0x3ec285,_0x4263fa))[_0x4acf1c(0x261)](()=>this[_0x4acf1c(0x416)]['delete'](_0x1c71f4)));}[_0x4a4f45(0x1b8)](_0x1f85f9){const _0x19f842=_0x4a4f45;var _0x2e2be2;(_0x2e2be2=this[_0x19f842(0x2a2)])==null||_0x2e2be2[_0x19f842(0x288)](),this['_conflictNotification']=this[_0x19f842(0x173)][_0x19f842(0x295)](_0x1f85f9);}};z=S([x(0x0,n[_0x4a4f45(0x3b0)]),x(0x1,e[_0x4a4f45(0x36d)]),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x1bc)])),x(0x3,n[_0x4a4f45(0x28b)]),x(0x4,n['INotificationService']),x(0x5,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)]))],z);const B=(0x0,t[_0x4a4f45(0x14a)])('uni.network.url-service');let V=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x148202,_0x2ca1fc,_0x5aec71,_0xa7c55){const _0x351ca7=_0x4a4f45;super(),this[_0x351ca7(0x3d2)]=_0x148202,this[_0x351ca7(0x3fa)]=_0x2ca1fc,this[_0x351ca7(0x14b)]=_0x5aec71,this[_0x351ca7(0x23b)]=_0xa7c55,this[_0x351ca7(0x332)]()[_0x351ca7(0x3a0)](_0x5cdbb7=>this['_logService'][_0x351ca7(0x27f)](_0x351ca7(0x202),_0x5cdbb7));}async[_0x4a4f45(0x332)](){const _0x4a3205=_0x4a4f45;let _0x291e23=this[_0x4a3205(0x3d2)]['getParam'](_0x4a3205(0x181)),_0x202cb0=this[_0x4a3205(0x3d2)][_0x4a3205(0x156)](_0x4a3205(0x148)),_0x212c78=this['_urlService'][_0x4a3205(0x156)](_0x4a3205(0x323));if(!_0x291e23||!_0x202cb0){this[_0x4a3205(0x3fa)]['debug'](_0x4a3205(0x202),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x3abb55=await this['_dataLoaderService'][_0x4a3205(0x12a)](_0x291e23,Number(_0x202cb0),_0x212c78);this[_0x4a3205(0x366)]||_0x3abb55&&_0x3abb55 instanceof t[_0x4a3205(0x3c2)]&&await this['_setupSubUnitSync'](_0x3abb55);}async['_setupSubUnitSync'](_0x19e42d){const _0x1a7541=_0x4a4f45;await this[_0x1a7541(0x327)](_0x19e42d,!0x0),!this[_0x1a7541(0x366)]&&(_0x19e42d[_0x1a7541(0x3fc)][_0x1a7541(0x237)]((0x0,r[_0x1a7541(0x42e)])(this[_0x1a7541(0x3f1)]))[_0x1a7541(0x195)](_0x534508=>{const _0x59949f=_0x1a7541;_0x534508&&this[_0x59949f(0x3a2)](_0x534508);}),this[_0x1a7541(0x3d2)][_0x1a7541(0x216)][_0x1a7541(0x237)]((0x0,r[_0x1a7541(0x42e)])(this[_0x1a7541(0x3f1)]))['subscribe'](()=>{const _0x46025c=_0x1a7541;this[_0x46025c(0x327)](_0x19e42d)[_0x46025c(0x3a0)](_0x106dbf=>this['_logService'][_0x46025c(0x27f)](_0x46025c(0x202),_0x106dbf));}));}[_0x4a4f45(0x3a2)](_0x3b7104,_0x4e086c=!0x1){const _0x54e462=_0x4a4f45;let _0x5b29b5=this[_0x54e462(0x3d2)][_0x54e462(0x156)](_0x54e462(0x323));_0x3b7104[_0x54e462(0x2de)]()!==_0x5b29b5&&this['_urlService']['setParam'](_0x54e462(0x323),_0x3b7104['getSheetId'](),_0x4e086c);}async[_0x4a4f45(0x327)](_0x3c7466,_0x522c3f=!0x1){const _0x38a84a=_0x4a4f45;var _0x2636a7;let _0x277e11=this[_0x38a84a(0x3d2)][_0x38a84a(0x156)](_0x38a84a(0x323));if(!_0x277e11||!_0x3c7466['getSheetBySheetId'](_0x277e11)){let _0x17af8e=_0x3c7466[_0x38a84a(0x2a1)]()[0x0],_0x24b23f=_0x3c7466[_0x38a84a(0x180)](_0x17af8e);if(!_0x24b23f||(this[_0x38a84a(0x3a2)](_0x24b23f,!0x0),this[_0x38a84a(0x366)]))return;await this[_0x38a84a(0x14b)][_0x38a84a(0x18d)](g[_0x38a84a(0x18b)]['id'],{'unitId':_0x3c7466[_0x38a84a(0x370)](),'subUnitId':_0x17af8e});}else(_0x522c3f||((_0x2636a7=_0x3c7466[_0x38a84a(0x16a)]())==null?void 0x0:_0x2636a7[_0x38a84a(0x2de)]())!==_0x277e11)&&await this[_0x38a84a(0x14b)][_0x38a84a(0x18d)](g[_0x38a84a(0x18b)]['id'],{'unitId':_0x3c7466[_0x38a84a(0x370)](),'subUnitId':_0x277e11});}};V=S([x(0x0,B),x(0x1,t[_0x4a4f45(0x3d3)]),x(0x2,t['ICommandService']),x(0x3,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x285)]))],V);let H=class{constructor(_0x4ff303,_0x4859f2){const _0x55de85=_0x4a4f45;this[_0x55de85(0x349)]=_0x4ff303,this['_renderManagerService']=_0x4859f2;}[_0x4a4f45(0x252)](_0x517178){this['_transformUndoRedoStack'](_0x517178),this['_transformPreviousActiveRange'](_0x517178);}['transformRemoteChangeset'](_0x227496){const _0x400f67=_0x4a4f45;let {unitID:_0x196f88}=_0x227496,{redoCache:_0x28041e}=this[_0x400f67(0x133)][_0x400f67(0x3d6)](_0x196f88)[_0x400f67(0x3e1)](f[_0x400f67(0x185)])[_0x400f67(0x1d0)]();if(_0x28041e['length']===0x0)return _0x227496;let _0x176789=t['Tools'][_0x400f67(0x15a)](_0x227496[_0x400f67(0x3f8)][0x0]);for(let _0x4400ad=0x0;_0x4400ad<_0x28041e[_0x400f67(0x18e)];_0x4400ad++){let _0x162437={'id':_0x400f67(0x184),'params':{..._0x28041e[_0x4400ad]}},_0x1b9168=this[_0x400f67(0x349)]['transformMutation'](_0x176789,_0x162437,!0x1);if((0x0,l[_0x400f67(0x2e2)])(_0x1b9168))throw _0x1b9168['error'];_0x176789=_0x1b9168[_0x400f67(0x2e4)];}return{...t['Tools'][_0x400f67(0x15a)](_0x227496),'mutations':[_0x176789]};}[_0x4a4f45(0x2b8)](_0x3f9f12){const _0x307652=_0x4a4f45;let {unitID:_0xee5135}=_0x3f9f12,_0x5cff29=this[_0x307652(0x133)][_0x307652(0x3d6)](_0xee5135)[_0x307652(0x3e1)](f['DocIMEInputManagerService']),{undoCache:_0x14df95,redoCache:_0x35c333}=_0x5cff29['getUndoRedoMutationParamsCache']();if(_0x14df95['length']===0x0||_0x35c333['length']===0x0)return;let _0x52e331=[],_0x59cbdb=[],_0xdca74b=t[_0x307652(0x3e4)][_0x307652(0x15a)](_0x3f9f12['mutations'][0x0]),_0x5246d4=t[_0x307652(0x3e4)][_0x307652(0x15a)](_0x3f9f12[_0x307652(0x3f8)][0x0]);for(let _0xc488f4=_0x14df95['length']-0x1;_0xc488f4>=0x0;_0xc488f4--){let _0x47ae2c={'id':'doc.mutation.rich-text-editing','params':{..._0x14df95[_0xc488f4]}},_0x2e3055={'id':_0x307652(0x184),'params':{..._0x35c333[_0xc488f4]}},_0x404489=this[_0x307652(0x349)]['transformMutation'](_0xdca74b,_0x47ae2c,!0x1),_0x3ec91b=this[_0x307652(0x349)]['transformMutation'](_0x5246d4,_0x2e3055,!0x1);if((0x0,l[_0x307652(0x2e2)])(_0x404489))throw _0x404489[_0x307652(0x27f)];if((0x0,l[_0x307652(0x2e2)])(_0x3ec91b))throw _0x3ec91b['error'];_0x52e331['unshift'](_0x404489[_0x307652(0x2ed)][_0x307652(0x304)]),_0x59cbdb[_0x307652(0x3aa)](_0x3ec91b[_0x307652(0x2ed)][_0x307652(0x304)]),_0xdca74b=_0x404489[_0x307652(0x2e4)],_0x5246d4=_0x3ec91b['m1Prime'];}_0x5cff29[_0x307652(0x294)]({'undoCache':_0x52e331,'redoCache':_0x59cbdb});}['_transformPreviousActiveRange'](_0x4e1b72){const _0x46a475=_0x4a4f45;let {unitID:_0x10c8fb}=_0x4e1b72,_0x393e7b=this[_0x46a475(0x133)][_0x46a475(0x3d6)](_0x10c8fb)['with'](f[_0x46a475(0x185)]),_0x482d10=_0x393e7b['getActiveRange']();if(_0x482d10==null)return;let _0x175c08=[{'id':_0x46a475(0x184),'params':{'unitId':_0x4e1b72[_0x46a475(0x246)],'actions':null,'textRanges':[_0x482d10]}}],_0x1d7b17=this['_transformService']['transformMutationsWithChangeset'](_0x4e1b72,_0x175c08);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x1d7b17))throw _0x1d7b17[_0x46a475(0x27f)];let _0x26cf9b=_0x1d7b17[_0x46a475(0x2ed)][0x0][_0x46a475(0x304)][_0x46a475(0x41c)];Array[_0x46a475(0x347)](_0x26cf9b)&&_0x26cf9b[_0x46a475(0x18e)]&&_0x393e7b[_0x46a475(0x36c)](_0x26cf9b[0x0]);}};H=S([x(0x0,l[_0x4a4f45(0x20a)]),x(0x1,p[_0x4a4f45(0x3f4)])],H);let U=class{constructor(_0x3a2a12,_0x318d25,_0x194436){const _0x20458e=_0x4a4f45;this['_injector']=_0x3a2a12,this[_0x20458e(0x349)]=_0x318d25,this[_0x20458e(0x3cc)]=_0x194436;}[_0x4a4f45(0x1ec)](_0x2bf66e){this['_transformHistoryAndStateStack'](_0x2bf66e);}[_0x4a4f45(0x1ae)](_0xffd64a){const _0x126f48=_0x4a4f45;let {unitID:_0x3590b1}=_0xffd64a,{collaboration:_0x7e588c}=this[_0x126f48(0x3cc)]['getStateCache'](_0x3590b1);if(_0x7e588c[_0x126f48(0x18e)]===0x0)return _0xffd64a;let _0x201d2e=t[_0x126f48(0x3e4)]['deepClone'](_0xffd64a['mutations'][0x0]);for(let _0x19d0c8=0x0;_0x19d0c8<_0x7e588c['length'];_0x19d0c8++){let _0x37ca66={'id':_0x126f48(0x184),'params':{'unitId':_0x7e588c[_0x19d0c8][_0x126f48(0x3ad)],..._0x7e588c[_0x19d0c8]['redoState']}},_0xf9fe2e=this[_0x126f48(0x349)][_0x126f48(0x343)](_0x201d2e,_0x37ca66,!0x1);if((0x0,l[_0x126f48(0x2e2)])(_0xf9fe2e))throw _0xf9fe2e['error'];_0x201d2e=_0xf9fe2e[_0x126f48(0x2e4)];}return{...t['Tools'][_0x126f48(0x15a)](_0xffd64a),'mutations':[_0x201d2e]};}[_0x4a4f45(0x392)](_0x3a155e){const _0x115f17=_0x4a4f45;let {unitID:_0x382fdb}=_0x3a155e,{history:_0x5722ba,collaboration:_0x814124}=this['_docStateChangeManagerService'][_0x115f17(0x224)](_0x382fdb);if(_0x5722ba[_0x115f17(0x18e)]===0x0&&_0x814124[_0x115f17(0x18e)]===0x0)return;let _0x1a6276=[],_0x20184b=[],_0x27f6c3=t[_0x115f17(0x3e4)][_0x115f17(0x15a)](_0x3a155e[_0x115f17(0x3f8)][0x0]),_0x2a4f77=t['Tools'][_0x115f17(0x15a)](_0x3a155e[_0x115f17(0x3f8)][0x0]);for(let _0x223814=_0x5722ba['length']-0x1;_0x223814>=0x0;_0x223814--){let _0xf449ac={'id':_0x115f17(0x184),'params':{'unitId':_0x5722ba[_0x223814][_0x115f17(0x3ad)],..._0x5722ba[_0x223814][_0x115f17(0x254)]}},_0x46e08f={'id':_0x115f17(0x184),'params':{'unitId':_0x5722ba[_0x223814][_0x115f17(0x3ad)],..._0x5722ba[_0x223814][_0x115f17(0x1b2)]}},_0x3e39bc=this[_0x115f17(0x349)]['transformMutation'](_0x27f6c3,_0xf449ac,!0x1),_0x3590af=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x2a4f77,_0x46e08f,!0x1);if((0x0,l[_0x115f17(0x2e2)])(_0x3e39bc))throw _0x3e39bc['error'];if((0x0,l[_0x115f17(0x2e2)])(_0x3590af))throw _0x3590af[_0x115f17(0x27f)];_0x1a6276[_0x115f17(0x3aa)]({..._0x5722ba[_0x223814],'undoState':_0x3e39bc['m2Prime']['params'],'redoState':_0x3590af[_0x115f17(0x2ed)][_0x115f17(0x304)]}),_0x27f6c3=_0x3e39bc[_0x115f17(0x2e4)],_0x2a4f77=_0x3590af[_0x115f17(0x2e4)];}_0x27f6c3=t['Tools']['deepClone'](_0x3a155e[_0x115f17(0x3f8)][0x0]),_0x2a4f77=t[_0x115f17(0x3e4)][_0x115f17(0x15a)](_0x3a155e['mutations'][0x0]);for(let _0x4c3546=_0x814124[_0x115f17(0x18e)]-0x1;_0x4c3546>=0x0;_0x4c3546--){let _0xe83481={'id':_0x115f17(0x184),'params':{'unitId':_0x814124[_0x4c3546]['unitId'],..._0x814124[_0x4c3546][_0x115f17(0x254)]}},_0x258cd7={'id':_0x115f17(0x184),'params':{'unitId':_0x814124[_0x4c3546][_0x115f17(0x3ad)],..._0x814124[_0x4c3546]['redoState']}},_0xffaa02=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x27f6c3,_0xe83481,!0x1),_0x57b208=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x2a4f77,_0x258cd7,!0x1);if((0x0,l['isTransformMutationFailure'])(_0xffaa02))throw _0xffaa02['error'];if((0x0,l[_0x115f17(0x2e2)])(_0x57b208))throw _0x57b208['error'];_0x20184b[_0x115f17(0x3aa)]({..._0x814124[_0x4c3546],'undoState':_0xffaa02[_0x115f17(0x2ed)][_0x115f17(0x304)],'redoState':_0x57b208['m2Prime']['params']}),_0x27f6c3=_0xffaa02[_0x115f17(0x2e4)],_0x2a4f77=_0x57b208[_0x115f17(0x2e4)];}this[_0x115f17(0x3cc)][_0x115f17(0x418)](_0x382fdb,{'history':_0x1a6276,'collaboration':_0x20184b});}};U=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x1,l['ITransformService']),x(0x2,(0x0,t['Inject'])(d[_0x4a4f45(0x2d3)]))],U);let W=class{constructor(_0x3409b3,_0x4a7848){const _0x97e219=_0x4a4f45;this[_0x97e219(0x21c)]=_0x3409b3,this[_0x97e219(0x349)]=_0x4a7848;}[_0x4a4f45(0x408)](_0xe277f5){const _0x331135=_0x4a4f45;var _0x211b0c;let _0x259d04=this[_0x331135(0x21c)][_0x331135(0x1a5)]()??[],_0x3eec76=this[_0x331135(0x21c)]['getSelectionInfo']();if(_0x259d04[_0x331135(0x18e)]===0x0||_0x3eec76==null)return null;let _0x5418b8=_0xe277f5[_0x331135(0x246)],_0x408d1e=[{'id':_0x331135(0x184),'params':{'unitId':_0x5418b8,'actions':null,'textRanges':_0x259d04}}],_0x3358b6=this[_0x331135(0x349)][_0x331135(0x2fd)](_0xe277f5,_0x408d1e);if(!(0x0,l[_0x331135(0x34e)])(_0x3358b6))throw _0x3358b6[_0x331135(0x27f)];let _0x94cd98=(_0x211b0c=_0x3358b6[_0x331135(0x2ed)][0x0])==null?void 0x0:_0x211b0c[_0x331135(0x304)],_0x51688b=_0x94cd98&&typeof _0x94cd98==_0x331135(0x362)&&'textRanges'in _0x94cd98?_0x94cd98[_0x331135(0x41c)]:null;if(!Te(_0x51688b))return null;let _0x3b6b7f=Ce(_0xe277f5['mutations'][_0x331135(0x402)](_0x219425=>G(_0x219425[_0x331135(0x304)]))?_0x51688b[_0x331135(0x3e3)](_0xc96a9e=>!('tableId'in _0xc96a9e)):_0x51688b,{..._0x3eec76,'options':_0x3eec76[_0x331135(0x21a)]?{..._0x3eec76[_0x331135(0x21a)],'wholeDocument':!0x1}:void 0x0}),_0x40272b={'unitId':_0x5418b8,'subUnitId':_0x5418b8};this[_0x331135(0x21c)][_0x331135(0x409)](_0x3b6b7f,_0x40272b);let _0x3cf833=!0x0;return{'commit':()=>{_0x3cf833=!0x1;},'rollback':()=>{const _0x2eed0f=_0x331135;_0x3cf833&&(_0x3cf833=!0x1,this[_0x2eed0f(0x21c)][_0x2eed0f(0x409)](_0x3eec76,_0x40272b));}};}};function _0xd371(_0x3fa9bc,_0x4056a6){_0x3fa9bc=_0x3fa9bc-0x123;const _0x55abbb=_0x55ab();let _0xd371fe=_0x55abbb[_0x3fa9bc];return _0xd371fe;}W=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(d[_0x4a4f45(0x14d)])),x(0x1,l['ITransformService'])],W);function Ce(_0x527871,_0x1563cd){const _0x5c518b=_0x4a4f45;let _0x2a3490=[],_0x11596e=[];for(let _0x7a829b of _0x527871)we(_0x7a829b)?_0x11596e[_0x5c518b(0x3b2)](_0x7a829b):_0x2a3490['push'](_0x7a829b);return{..._0x1563cd,'textRanges':_0x2a3490,'rectRanges':_0x11596e};}function we(_0xea31d8){const _0x3edfd0=_0x4a4f45;return _0x3edfd0(0x377)in _0xea31d8;}function Te(_0x22b595){const _0x398376=_0x4a4f45;return Array['isArray'](_0x22b595)&&_0x22b595[_0x398376(0x40e)](_0x370c36=>typeof _0x370c36==_0x398376(0x362)&&!!_0x370c36&&_0x398376(0x1c5)in _0x370c36&&'endOffset'in _0x370c36);}function G(_0x207e9c){const _0x2f9841=_0x4a4f45;return _0x207e9c==='tableSource'?!0x0:Array['isArray'](_0x207e9c)?_0x207e9c[_0x2f9841(0x402)](_0x4190a8=>G(_0x4190a8)):!_0x207e9c||typeof _0x207e9c!=_0x2f9841(0x362)?!0x1:Object['values'](_0x207e9c)[_0x2f9841(0x402)](_0x4ef745=>G(_0x4ef745));}let K=class extends t[_0x4a4f45(0x423)]{constructor(_0x514a16,_0x1165ec,_0x4728f1,_0x141df9,_0x5435a9,_0x77ff1,_0x31c8cc){const _0x3bfcef=_0x4a4f45;super(),this[_0x3bfcef(0x3d5)]=_0x514a16,this[_0x3bfcef(0x354)]=_0x1165ec,this[_0x3bfcef(0x174)]=_0x4728f1,this[_0x3bfcef(0x421)]=_0x141df9,this[_0x3bfcef(0x196)]=_0x5435a9,this['_messageService']=_0x77ff1,this[_0x3bfcef(0x249)]=_0x31c8cc,b(this,_0x3bfcef(0x356),new r['BehaviorSubject'](e[_0x3bfcef(0x24e)]['NOT_COLLAB'])),this[_0x3bfcef(0x400)]();}[_0x4a4f45(0x400)](){const _0x31e03b=_0x4a4f45;this[_0x31e03b(0x2ad)](this[_0x31e03b(0x3d5)][_0x31e03b(0x190)][_0x31e03b(0x195)](_0x3f6ce1=>{const _0x3cf5f2=_0x31e03b;_0x3f6ce1 instanceof e[_0x3cf5f2(0x273)]&&_0x3f6ce1[_0x3cf5f2(0x1ab)]({'onTransformIME':_0x5d77c1=>this[_0x3cf5f2(0x354)][_0x3cf5f2(0x252)](_0x5d77c1),'onTransformState':_0x95d58c=>this[_0x3cf5f2(0x174)][_0x3cf5f2(0x1ec)](_0x95d58c),'onPrepareTransformSelections':_0x4a8f4f=>this['_docTransformSelectionsService'][_0x3cf5f2(0x408)](_0x4a8f4f),'onSyncEditingCollabCursor':_0x524b9c=>this[_0x3cf5f2(0x196)][_0x3cf5f2(0x1e5)](_0x524b9c),'onTransformRemoteChangesetByIMECache':_0x49a091=>this['_docTransformIMECacheService'][_0x3cf5f2(0x1ae)](_0x49a091),'onTransformRemoteChangesetByStateCache':_0x1ce727=>this[_0x3cf5f2(0x174)]['transformRemoteChangeset'](_0x1ce727)});}));}};K=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x21e)])),x(0x1,(0x0,t['Inject'])(H)),x(0x2,(0x0,t[_0x4a4f45(0x289)])(U)),x(0x3,(0x0,t['Inject'])(W)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(O)),x(0x5,n[_0x4a4f45(0x28b)]),x(0x6,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)]))],K);let q=class extends t[_0x4a4f45(0x423)]{constructor(_0x204f3b,_0x1fc7f0,_0xfafa10,_0xb6a38b){const _0x3d318a=_0x4a4f45;super(),this['_injector']=_0x204f3b,this['_httpService']=_0x1fc7f0,this[_0x3d318a(0x3fa)]=_0xfafa10,this[_0x3d318a(0x171)]=_0xb6a38b,b(this,'_memberID',void 0x0),this[_0x3d318a(0x332)]();}[_0x4a4f45(0x332)](){const _0x2d3fa1=_0x4a4f45;this[_0x2d3fa1(0x427)](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x2d3fa1(0x2d5)]();}['_initUserListener'](){const _0x3d5e9b=_0x4a4f45;this[_0x3d5e9b(0x2ad)](this[_0x3d5e9b(0x171)][_0x3d5e9b(0x380)][_0x3d5e9b(0x195)](_0x1be1e3=>{const _0x4b8538=_0x3d5e9b;this[_0x4b8538(0x17d)]=_0x1be1e3==null?void 0x0:_0x1be1e3[_0x4b8538(0x37b)];}));}['_initWindowErrorListener'](){const _0x5dfc1a=_0x4a4f45;let _0x1830b0=_0x27a435=>{const _0x488aad=_0xd371;var _0x18232d;this['_uploadLog'](_0x488aad(0x27f),'[Window\x20Error]:\x20'+_0x27a435[_0x488aad(0x306)]+_0x488aad(0x13c)+_0x27a435[_0x488aad(0x3fb)]+':'+_0x27a435[_0x488aad(0x1c9)]+':'+_0x27a435[_0x488aad(0x126)]+'\x0a'+(((_0x18232d=_0x27a435[_0x488aad(0x27f)])==null?void 0x0:_0x18232d[_0x488aad(0x15f)])||''));};window[_0x5dfc1a(0x3c4)]('error',_0x1830b0),this[_0x5dfc1a(0x2ad)](()=>{const _0x5c4e70=_0x5dfc1a;window[_0x5c4e70(0x2f1)](_0x5c4e70(0x27f),_0x1830b0);});}[_0x4a4f45(0x15e)](){const _0x2dcec5=_0x4a4f45;let _0x1f3a38=_0x304541=>{const _0x247c63=_0xd371;this[_0x247c63(0x308)](_0x247c63(0x27f),_0x247c63(0x2fc)+_0x304541[_0x247c63(0x3a8)]);};window[_0x2dcec5(0x3c4)]('unhandledrejection',_0x1f3a38),this[_0x2dcec5(0x2ad)](()=>{window['removeEventListener']('unhandledrejection',_0x1f3a38);});}[_0x4a4f45(0x2ac)](){const _0x8aba54=_0x4a4f45;let _0x53395a=this[_0x8aba54(0x3fa)][_0x8aba54(0x27f)][_0x8aba54(0x172)](this[_0x8aba54(0x3fa)]);this[_0x8aba54(0x3fa)]['error']=(..._0x41a7b8)=>{const _0x36e8f8=_0x8aba54;let _0x5e5e5d=_0x41a7b8[_0x36e8f8(0x19c)](_0x539260=>_0x539260 instanceof Error?_0x539260[_0x36e8f8(0x306)]+'\x0a'+_0x539260[_0x36e8f8(0x15f)]:String(_0x539260))[_0x36e8f8(0x26d)]('\x20');this[_0x36e8f8(0x308)]('error',_0x36e8f8(0x3c9)+_0x5e5e5d),_0x53395a(..._0x41a7b8);},this[_0x8aba54(0x2ad)](()=>{const _0x2b13e6=_0x8aba54;this['_logService'][_0x2b13e6(0x27f)]=_0x53395a;});}[_0x4a4f45(0x308)](_0x5ee3a8,_0x334508){const _0x1a7c14=_0x4a4f45;try{let _0x1131fa={'userId':this[_0x1a7c14(0x17d)],'logLabel':_0x5ee3a8,'content':_0x334508};this[_0x1a7c14(0x2ce)][_0x1a7c14(0x1e1)](_0x1a7c14(0x178),{'body':_0x1131fa})[_0x1a7c14(0x3a0)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t['Inject'])(t['Injector'])),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m[_0x4a4f45(0x19d)])),x(0x2,t[_0x4a4f45(0x3d3)]),x(0x3,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x3f7)]))],q);function Ee({state$:_0x34c713}){const _0x4cb41b=_0x4a4f45;let _0x3491fd=(0x0,n[_0x4cb41b(0x36a)])(_0x34c713,null,!0x0);return _0x3491fd?(0x0,c[_0x4cb41b(0x311)])(_0x4cb41b(0x363),{'data-u-comp':_0x4cb41b(0x208),'role':_0x4cb41b(0x3ab),'className':_0x4cb41b(0x13d),'children':[(0x0,c[_0x4cb41b(0x12b)])(o['WarningIcon'],{'className':_0x4cb41b(0x223)}),(0x0,c[_0x4cb41b(0x12b)])(_0x4cb41b(0x2e3),{'children':_0x3491fd[_0x4cb41b(0x25b)]}),(0x0,c[_0x4cb41b(0x12b)])(a[_0x4cb41b(0x2d6)],{'size':_0x4cb41b(0x2d1),'variant':_0x4cb41b(0x2af),'onClick':()=>window[_0x4cb41b(0x151)][_0x4cb41b(0x232)](),'children':_0x3491fd['refreshLabel']})]}):null;}const De=_0x4a4f45(0x3d4);let J=class extends t[_0x4a4f45(0x423)]{constructor(_0xe11f2d,_0x439ea,_0x54259b,_0x146f61,_0x2cd888,_0x4a994e){const _0x7c7a1e=_0x4a4f45;super(),this[_0x7c7a1e(0x3ff)]=_0xe11f2d,this[_0x7c7a1e(0x168)]=_0x439ea,this[_0x7c7a1e(0x249)]=_0x54259b,this[_0x7c7a1e(0x38f)]=_0x146f61,this['_urlService']=_0x4a994e,b(this,_0x7c7a1e(0x2a8),new r[(_0x7c7a1e(0x154))](null)),b(this,_0x7c7a1e(0x129),new Set()),b(this,_0x7c7a1e(0x3a4),new Map()),b(this,_0x7c7a1e(0x1c4),new Map()),b(this,_0x7c7a1e(0x234),this['_timeoutState$'][_0x7c7a1e(0x34c)]());let _0x5966ac=()=>(0x0,s[_0x7c7a1e(0x2ba)])(Ee,{'state$':this['timeoutState$']});this[_0x7c7a1e(0x2ad)](_0x2cd888['registerComponent'](n[_0x7c7a1e(0x2f5)][_0x7c7a1e(0x386)],()=>(0x0,n[_0x7c7a1e(0x282)])(_0x5966ac,this['_injector']))),this[_0x7c7a1e(0x2ad)](this['_snapshotLoadingService'][_0x7c7a1e(0x183)]['subscribe'](_0xe2d9cf=>{const _0x4a0cb5=_0x7c7a1e;this[_0x4a0cb5(0x1c4)]=_0xe2d9cf,_0xe2d9cf[_0x4a0cb5(0x22c)](_0x29bca2=>this[_0x4a0cb5(0x3a7)](_0x29bca2));})),this[_0x7c7a1e(0x2ad)](this[_0x7c7a1e(0x3d2)]['urlChange$'][_0x7c7a1e(0x195)](()=>{const _0x583d09=_0x7c7a1e;this[_0x583d09(0x1c4)][_0x583d09(0x22c)](_0x28738f=>this['_updateMessage'](_0x28738f));}));}[_0x4a4f45(0x288)](){const _0x34a479=_0x4a4f45;this[_0x34a479(0x129)][_0x34a479(0x22c)](_0x126896=>this[_0x34a479(0x168)][_0x34a479(0x221)](_0x126896)),this[_0x34a479(0x129)][_0x34a479(0x337)](),this[_0x34a479(0x3a4)]['forEach'](({timeoutId:_0x584748})=>clearTimeout(_0x584748)),this[_0x34a479(0x3a4)]['clear'](),this[_0x34a479(0x2a8)]['complete'](),super['dispose']();}['_updateMessage'](_0x5b668e){const _0x65bdbd=_0x4a4f45;let _0x4c5896=''+De+_0x5b668e['unitId'];_0x5b668e['stage']===l[_0x65bdbd(0x244)]['COMPLETE']?(this[_0x65bdbd(0x1b0)](_0x5b668e[_0x65bdbd(0x3ad)]),this['_clearTimeoutState'](_0x5b668e[_0x65bdbd(0x3ad)]),this['_messageService'][_0x65bdbd(0x221)](_0x4c5896),this['_messageIds'][_0x65bdbd(0x426)](_0x4c5896)):this[_0x65bdbd(0x2e0)](_0x5b668e[_0x65bdbd(0x3ad)])?_0x5b668e['stage']===l[_0x65bdbd(0x244)][_0x65bdbd(0x3e6)]?(this[_0x65bdbd(0x1b0)](_0x5b668e[_0x65bdbd(0x3ad)]),this[_0x65bdbd(0x316)](_0x5b668e['unitId']),this['_messageService'][_0x65bdbd(0x295)]({'id':_0x4c5896,'type':a[_0x65bdbd(0x345)]['Error'],'content':this[_0x65bdbd(0x249)]['t'](_0x65bdbd(0x256))}),this['_messageIds'][_0x65bdbd(0x426)](_0x4c5896)):_0x5b668e[_0x65bdbd(0x2d7)]!==l[_0x65bdbd(0x244)][_0x65bdbd(0x31f)]||_0x5b668e['totalBlocks']<=0xa?(this['_clearBlockProgressWatch'](_0x5b668e['unitId']),this[_0x65bdbd(0x168)][_0x65bdbd(0x221)](_0x4c5896),this[_0x65bdbd(0x129)]['delete'](_0x4c5896)):this[_0x65bdbd(0x396)](_0x5b668e)||(this[_0x65bdbd(0x168)][_0x65bdbd(0x295)]({'id':_0x4c5896,'type':a['MessageType'][_0x65bdbd(0x20d)],'duration':0x1/0x0,'content':this[_0x65bdbd(0x249)]['t'](_0x65bdbd(0x29f))+'\x20'+_0x5b668e['loadedBlocks']+'/'+_0x5b668e['totalBlocks']}),this['_messageIds'][_0x65bdbd(0x307)](_0x4c5896)):(this['_clearBlockProgressWatch'](_0x5b668e[_0x65bdbd(0x3ad)]),this[_0x65bdbd(0x316)](_0x5b668e[_0x65bdbd(0x3ad)]),this['_messageService'][_0x65bdbd(0x221)](_0x4c5896),this['_messageIds']['delete'](_0x4c5896));}[_0x4a4f45(0x396)](_0x40842f){const _0x32ddf2=_0x4a4f45;let _0x30397f=this[_0x32ddf2(0x3a4)][_0x32ddf2(0x39f)](_0x40842f[_0x32ddf2(0x3ad)]);if((_0x30397f==null?void 0x0:_0x30397f[_0x32ddf2(0x38a)])===_0x40842f['loadedBlocks'])return _0x30397f[_0x32ddf2(0x2f6)];this['_clearBlockProgressWatch'](_0x40842f[_0x32ddf2(0x3ad)]);let _0x7e779c=setTimeout(()=>{const _0x362ee7=_0x32ddf2;let _0x24e1b1=this['_blockProgressWatches'][_0x362ee7(0x39f)](_0x40842f[_0x362ee7(0x3ad)]);if(!_0x24e1b1||_0x24e1b1['timeoutId']!==_0x7e779c)return;_0x24e1b1[_0x362ee7(0x2f6)]=!0x0;let _0x51ef51=''+De+_0x40842f[_0x362ee7(0x3ad)];this[_0x362ee7(0x168)][_0x362ee7(0x221)](_0x51ef51),this[_0x362ee7(0x129)][_0x362ee7(0x426)](_0x51ef51),this[_0x362ee7(0x2a8)]['next']({'unitId':_0x40842f[_0x362ee7(0x3ad)],'content':this['_localeService']['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x40842f[_0x362ee7(0x38a)]),String(_0x40842f['totalBlocks'])),'refreshLabel':this[_0x362ee7(0x249)]['t'](_0x362ee7(0x2a7))});},0xea60);return this[_0x32ddf2(0x3a4)][_0x32ddf2(0x1a1)](_0x40842f['unitId'],{'loadedBlocks':_0x40842f['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x7e779c}),!0x1;}['_clearBlockProgressWatch'](_0x2a7776){const _0x194038=_0x4a4f45;let _0x2a0af7=this[_0x194038(0x3a4)]['get'](_0x2a7776);_0x2a0af7&&(clearTimeout(_0x2a0af7[_0x194038(0x367)]),this[_0x194038(0x3a4)]['delete'](_0x2a7776),this[_0x194038(0x316)](_0x2a7776));}[_0x4a4f45(0x316)](_0x575b0a){const _0x1c1f65=_0x4a4f45;var _0x199725;((_0x199725=this[_0x1c1f65(0x2a8)]['value'])==null?void 0x0:_0x199725[_0x1c1f65(0x3ad)])===_0x575b0a&&this[_0x1c1f65(0x2a8)][_0x1c1f65(0x13e)](null);}[_0x4a4f45(0x2e0)](_0x5b22a2){const _0x5d828a=_0x4a4f45;let _0x145a66=this[_0x5d828a(0x3d2)][_0x5d828a(0x156)](_0x5d828a(0x181));return!_0x145a66||_0x145a66===_0x5b22a2;}};J=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(l['SnapshotLoadingService'])),x(0x1,n['IMessageService']),x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)])),x(0x3,(0x0,t['Inject'])(t[_0x4a4f45(0x26e)])),x(0x4,n[_0x4a4f45(0x222)]),x(0x5,B)],J);let Y=class extends t[_0x4a4f45(0x423)]{constructor(_0x38af05,_0x2dc3d9,_0x36af13,_0xcdab5,_0x56a748){const _0x5ac1ad=_0x4a4f45;var _0x32231e;super(),this[_0x5ac1ad(0x281)]=_0x38af05,this['_localStorageService']=_0x2dc3d9,this[_0x5ac1ad(0x305)]=_0x36af13,this[_0x5ac1ad(0x3fa)]=_0xcdab5,this[_0x5ac1ad(0x1a9)]=_0x56a748,b(this,_0x5ac1ad(0x3b5),new Map()),b(this,'_saveTaskMap',new Map()),b(this,_0x5ac1ad(0x23f),new Map()),b(this,_0x5ac1ad(0x36e),!0x1),this[_0x5ac1ad(0x36e)]=!((_0x32231e=this[_0x5ac1ad(0x281)][_0x5ac1ad(0x189)](e[_0x5ac1ad(0x369)]))!=null&&_0x32231e[_0x5ac1ad(0x149)]);}[_0x4a4f45(0x157)](){const _0x4b7296=_0x4a4f45;this[_0x4b7296(0x36e)]=!0x0;}[_0x4a4f45(0x2ae)](){const _0x29f0b1=_0x4a4f45;this[_0x29f0b1(0x36e)]=!0x1;}get[_0x4a4f45(0x15b)](){const _0x39d93d=_0x4a4f45;let _0x1efe4d=new Map(this[_0x39d93d(0x40b)]);return this[_0x39d93d(0x23f)]['forEach']((_0x1a46d6,_0x1dc761)=>{const _0x17a24f=_0x39d93d;_0x1efe4d[_0x17a24f(0x33a)](_0x1dc761)||_0x1efe4d[_0x17a24f(0x1a1)](_0x1dc761,0x0);}),_0x1efe4d;}[_0x4a4f45(0x288)](){const _0x214dad=_0x4a4f45;this[_0x214dad(0x366)]||(super[_0x214dad(0x288)](),this[_0x214dad(0x36e)]=!0x0,this[_0x214dad(0x1fa)]()[_0x214dad(0x3a0)](_0x12499a=>this[_0x214dad(0x3fa)][_0x214dad(0x27f)](_0x12499a)));}async[_0x4a4f45(0x1d4)](_0x8eedc4,_0x346ab6){const _0x22ee99=_0x4a4f45;if(this[_0x22ee99(0x36e)])return null;let _0x171d88=this[_0x22ee99(0x3d7)](_0x346ab6),_0x2da613=await this[_0x22ee99(0x23e)]['getItem']((0x0,e[_0x22ee99(0x163)])(_0x8eedc4,_0x171d88));return(_0x2da613==null?void 0x0:_0x2da613[_0x22ee99(0x246)])===_0x8eedc4&&this[_0x22ee99(0x32a)](_0x2da613[_0x22ee99(0x313)])===_0x171d88?_0x2da613:null;}async[_0x4a4f45(0x201)](_0x532db,_0x41a133,_0x263768){const _0x13c7a4=_0x4a4f45;let _0x1dd45b=this[_0x13c7a4(0x3d7)](_0x263768),_0x211b00=(0x0,e[_0x13c7a4(0x163)])(_0x532db,_0x1dd45b),_0x42d93c=this[_0x13c7a4(0x23e)][_0x13c7a4(0x317)](_0x211b00,{..._0x41a133,'unitID':_0x532db,'userId':_0x1dd45b});return this[_0x13c7a4(0x1c8)](_0x211b00,_0x42d93c),!!await _0x42d93c;}async[_0x4a4f45(0x3c3)](_0xba4426,_0x3f0a7c,_0x6124d){const _0x259e93=_0x4a4f45;let _0xe3e556=this[_0x259e93(0x3d7)](_0x6124d),_0x2d31d0=(0x0,e['getLocalCacheKey'])(_0xba4426,_0xe3e556),_0x223aeb=this[_0x259e93(0x3b5)][_0x259e93(0x39f)](_0x2d31d0)??await this[_0x259e93(0x23e)][_0x259e93(0x303)](_0x2d31d0);if(!_0x223aeb||this[_0x259e93(0x32a)](_0x223aeb[_0x259e93(0x313)])!==_0xe3e556||_0x223aeb[_0x259e93(0x246)]!==_0xba4426)return;let _0x5e21e9=Date[_0x259e93(0x144)](),_0x725eda=new Date(_0x5e21e9)[_0x259e93(0x166)]();await this[_0x259e93(0x23e)][_0x259e93(0x317)](_0x2d31d0+_0x259e93(0x1e4)+_0x5e21e9,{'reason':_0x3f0a7c,'createdAt':_0x725eda,'data':_0x223aeb});}async[_0x4a4f45(0x2ef)](_0x6f9556,_0x45da4c){const _0x213d66=_0x4a4f45;let _0x3da780=this[_0x213d66(0x3d7)](_0x45da4c),_0x4e2637=(0x0,e[_0x213d66(0x163)])(_0x6f9556,_0x3da780),_0x346b32=this['_saveTaskMap'][_0x213d66(0x39f)](_0x4e2637);_0x346b32!==void 0x0&&(window[_0x213d66(0x187)](_0x346b32),this[_0x213d66(0x40b)][_0x213d66(0x426)](_0x4e2637));let _0x4c4cbb=this[_0x213d66(0x23f)]['get'](_0x4e2637);_0x4c4cbb&&await Promise[_0x213d66(0x35c)](_0x4c4cbb),this[_0x213d66(0x3b5)][_0x213d66(0x426)](_0x4e2637),await this[_0x213d66(0x23e)][_0x213d66(0x2df)](_0x4e2637);}[_0x4a4f45(0x24f)](_0x2b9b3a,_0x2d95ef,_0xaffed1,_0x482034,_0x38aa9f){const _0x1db4bb=_0x4a4f45;if(this[_0x1db4bb(0x366)])return;let _0x371fbb=this[_0x1db4bb(0x3d7)](_0x38aa9f),_0x45ac2e=(0x0,e[_0x1db4bb(0x163)])(_0x2b9b3a,_0x371fbb),_0x49146e=this['_revisionService'][_0x1db4bb(0x233)](_0x2b9b3a);this[_0x1db4bb(0x3b5)][_0x1db4bb(0x1a1)](_0x45ac2e,{'unitID':_0x2b9b3a,'userId':_0x371fbb,'type':_0x2d95ef,'awaitingChangeset':_0xaffed1,'mutations':_0x482034,'rev':_0x49146e}),this[_0x1db4bb(0x40b)][_0x1db4bb(0x33a)](_0x45ac2e)||this[_0x1db4bb(0x3bf)](_0x45ac2e);}[_0x4a4f45(0x3d7)](_0x14c7a0=((()=>{const _0x2e3b58=_0x4a4f45;var _0x3cfe14;return(_0x3cfe14=this[_0x2e3b58(0x1a9)][_0x2e3b58(0x37d)]())==null?void 0x0:_0x3cfe14[_0x2e3b58(0x236)];})())){const _0x3570d1=_0x4a4f45;return this[_0x3570d1(0x32a)](_0x14c7a0);}['_normalizeUserId'](_0x688ba4){return _0x688ba4===''||_0x688ba4==null?void 0x0:_0x688ba4;}[_0x4a4f45(0x3bf)](_0x570d61){const _0x1282df=_0x4a4f45;let _0x4c4e03=this[_0x1282df(0x324)]();_0x4c4e03===0x0?this['_saveCache'](_0x570d61)[_0x1282df(0x3a0)](_0x47fe71=>this['_logService'][_0x1282df(0x27f)](_0x47fe71)):this[_0x1282df(0x40b)]['set'](_0x570d61,window[_0x1282df(0x40f)](()=>{const _0x146f1e=_0x1282df;this[_0x146f1e(0x207)](_0x570d61)[_0x146f1e(0x3a0)](_0x4a59d6=>this[_0x146f1e(0x3fa)][_0x146f1e(0x27f)](_0x4a59d6));},_0x4c4e03));}[_0x4a4f45(0x324)](){const _0xd45e81=_0x4a4f45;return this[_0xd45e81(0x281)][_0xd45e81(0x189)](e[_0xd45e81(0x24b)])??e['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x259b3e){const _0x35664b=_0x4a4f45;let _0x506f35=this['_saveTaskMap'][_0x35664b(0x39f)](_0x259b3e);_0x506f35!==void 0x0&&window['clearTimeout'](_0x506f35);let _0x1caa40=this[_0x35664b(0x3b5)][_0x35664b(0x39f)](_0x259b3e);if(!_0x1caa40)return Promise['resolve']();let _0x10caf6=this['_activeSaveTaskMap'][_0x35664b(0x39f)](_0x259b3e),_0x157ddb=Promise[_0x35664b(0x35c)](_0x10caf6?[..._0x10caf6]:[])[_0x35664b(0x2b1)](()=>this['_localStorageService'][_0x35664b(0x317)](_0x259b3e,_0x1caa40))[_0x35664b(0x2b1)](()=>{const _0x1dbdcd=_0x35664b;_0x506f35!==void 0x0&&this[_0x1dbdcd(0x40b)]['get'](_0x259b3e)===_0x506f35&&(this[_0x1dbdcd(0x40b)][_0x1dbdcd(0x426)](_0x259b3e),!this[_0x1dbdcd(0x366)]&&this[_0x1dbdcd(0x3b5)]['get'](_0x259b3e)!==_0x1caa40&&this['_scheduleSaving'](_0x259b3e));});return this[_0x35664b(0x1c8)](_0x259b3e,_0x157ddb),_0x157ddb;}['_trackActiveSaveTask'](_0x59d6cc,_0xc82421){const _0x49ec83=_0x4a4f45;let _0x2aedb3=this[_0x49ec83(0x23f)]['get'](_0x59d6cc);_0x2aedb3||(_0x2aedb3=new Set(),this['_activeSaveTaskMap'][_0x49ec83(0x1a1)](_0x59d6cc,_0x2aedb3)),_0x2aedb3[_0x49ec83(0x307)](_0xc82421);let _0x2a1df6=()=>{const _0x6c355d=_0x49ec83;_0x2aedb3['delete'](_0xc82421),_0x2aedb3[_0x6c355d(0x3db)]===0x0&&this[_0x6c355d(0x23f)][_0x6c355d(0x426)](_0x59d6cc);};_0xc82421[_0x49ec83(0x2b1)](_0x2a1df6,_0x2a1df6);}async[_0x4a4f45(0x1fa)](){const _0x194cf7=_0x4a4f45;let _0x357335=[...this['_saveTaskMap'][_0x194cf7(0x334)]()][_0x194cf7(0x19c)](_0x361fa1=>this[_0x194cf7(0x207)](_0x361fa1));for(let _0x4fbb41 of this[_0x194cf7(0x23f)][_0x194cf7(0x40c)]())_0x357335[_0x194cf7(0x3b2)](...[..._0x4fbb41][_0x194cf7(0x19c)](_0x2b5178=>_0x2b5178['then'](()=>void 0x0)));await Promise[_0x194cf7(0x28a)](_0x357335);}};Y=S([x(0x0,t[_0x4a4f45(0x382)]),x(0x1,t[_0x4a4f45(0x24d)]),x(0x2,(0x0,t['Inject'])(l[_0x4a4f45(0x34a)])),x(0x3,t[_0x4a4f45(0x3d3)]),x(0x4,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x231)]))],Y);var Oe=class extends t[_0x4a4f45(0x423)]{get['online'](){const _0x4219e0=_0x4a4f45;return this[_0x4219e0(0x248)]['getValue']();}constructor(){const _0x3b9828=_0x4a4f45;super(),b(this,_0x3b9828(0x248),new r[(_0x3b9828(0x154))](navigator[_0x3b9828(0x15d)])),b(this,_0x3b9828(0x38d),this[_0x3b9828(0x248)][_0x3b9828(0x34c)]()),this[_0x3b9828(0x134)](),this['_listenToOnlineEvent']();}['dispose'](){const _0x327a5b=_0x4a4f45;super[_0x327a5b(0x288)](),this[_0x327a5b(0x248)][_0x327a5b(0x2c6)]();}[_0x4a4f45(0x401)](){const _0x3d3313=_0x4a4f45;this[_0x3d3313(0x2ad)]((0x0,r[_0x3d3313(0x42a)])((0x0,r[_0x3d3313(0x15c)])(window,_0x3d3313(0x1fd)),(0x0,r[_0x3d3313(0x15c)])(window,_0x3d3313(0x3ce)),(0x0,r[_0x3d3313(0x15c)])(document,_0x3d3313(0x217))[_0x3d3313(0x237)]((0x0,r['map'])(()=>document[_0x3d3313(0x42b)]===_0x3d3313(0x30a)),(0x0,r['filter'])(_0x307779=>_0x307779)))[_0x3d3313(0x237)]((0x0,r[_0x3d3313(0x3e3)])(()=>navigator[_0x3d3313(0x15d)]))['subscribe'](()=>this[_0x3d3313(0x248)][_0x3d3313(0x13e)](!0x0)));}['_listenToOfflineEvent'](){const _0x5622ff=_0x4a4f45;this[_0x5622ff(0x2ad)]((0x0,r[_0x5622ff(0x15c)])(window,_0x5622ff(0x1ce))[_0x5622ff(0x195)](()=>this[_0x5622ff(0x248)][_0x5622ff(0x13e)](!0x1)));}},ke=class extends t[_0x4a4f45(0x2a6)]{constructor(){const _0x403981=_0x4a4f45;super(),b(this,'urlChange$',void 0x0),this[_0x403981(0x216)]=(0x0,r['fromEvent'])(window,'popstate')[_0x403981(0x237)]((0x0,r[_0x403981(0x42e)])(this['dispose$']),(0x0,r[_0x403981(0x155)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r['mapTo'])(void 0x0));}[_0x4a4f45(0x1dc)](_0x43e528,_0x3b641f,_0x24bba9=!0x1){const _0x46e856=_0x4a4f45;let _0x4430f5=new URL(window[_0x46e856(0x151)][_0x46e856(0x152)]);_0x4430f5[_0x46e856(0x18f)]['set'](_0x43e528,_0x3b641f),_0x24bba9?window['history'][_0x46e856(0x199)]('','',_0x4430f5[_0x46e856(0x1d6)]()):window[_0x46e856(0x2ab)]['pushState']('','',_0x4430f5[_0x46e856(0x1d6)]());}[_0x4a4f45(0x371)](_0x5a2a28,_0x330b4b=!0x1){const _0x1d0f6d=_0x4a4f45;let _0x6f2d8a=new URL(window[_0x1d0f6d(0x151)][_0x1d0f6d(0x152)]);_0x6f2d8a[_0x1d0f6d(0x18f)][_0x1d0f6d(0x426)](_0x5a2a28),_0x330b4b?window[_0x1d0f6d(0x2ab)][_0x1d0f6d(0x199)]('','',_0x6f2d8a['toString']()):window[_0x1d0f6d(0x2ab)][_0x1d0f6d(0x13a)]('','',_0x6f2d8a[_0x1d0f6d(0x1d6)]());}[_0x4a4f45(0x156)](_0x2004f5){const _0x3052bc=_0x4a4f45;return new URL(window[_0x3052bc(0x151)]['href'])['searchParams']['get'](_0x2004f5)??void 0x0;}};let X=class extends t[_0x4a4f45(0x1c0)]{constructor(_0x3da32f=se,_0x2aafa4,_0x43a89e,_0x579ff0,_0x4ee110){const _0x23420d=_0x4a4f45;super(),this[_0x23420d(0x2b9)]=_0x3da32f,this[_0x23420d(0x133)]=_0x2aafa4,this['_injector']=_0x43a89e,this[_0x23420d(0x281)]=_0x579ff0,this[_0x23420d(0x14b)]=_0x4ee110;let {..._0x403682}=(0x0,t[_0x23420d(0x42a)])({},se,this[_0x23420d(0x2b9)]);this[_0x23420d(0x281)][_0x23420d(0x19f)](_0x23420d(0x263),_0x403682);}['onStarting'](){const _0x3dd58a=_0x4a4f45;this['_registerDependencies'](),this['disposeWithMe'](this[_0x3dd58a(0x14b)][_0x3dd58a(0x1df)](T)),this['_initDependencies']();}['onRendered'](){const _0x165ac2=_0x4a4f45;this[_0x165ac2(0x336)]();}['_registerDependencies'](){const _0x10b9df=_0x4a4f45;var _0x2be72d;let _0x2874c3=[[D],[B,{'useClass':ke}],[m[_0x10b9df(0x141)],{'useClass':m['WebSocketService']}],[e[_0x10b9df(0x36d)],{'useClass':Y}],[e['INetworkConditionService'],{'useClass':Oe}],[C],[z],[j],[L],[J]];this[_0x10b9df(0x2b9)][_0x10b9df(0x325)]!==!0x1&&_0x2874c3[_0x10b9df(0x3b2)]([V]),this['_config'][_0x10b9df(0x228)]!==!0x1&&_0x2874c3['push']([W],[H],[U],[O],[K],[E]),this[_0x10b9df(0x2b9)][_0x10b9df(0x161)]&&_0x2874c3[_0x10b9df(0x3b2)]([q]),(0x0,t[_0x10b9df(0x210)])(this[_0x10b9df(0x38f)],(0x0,t[_0x10b9df(0x387)])(_0x2874c3,(_0x2be72d=this[_0x10b9df(0x2b9)])==null?void 0x0:_0x2be72d[_0x10b9df(0x3c1)]));}[_0x4a4f45(0x336)](){const _0x357469=_0x4a4f45;this[_0x357469(0x2b9)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x357469(0x2ad)](this[_0x357469(0x133)][_0x357469(0x229)](t[_0x357469(0x397)][_0x357469(0x19b)],[N])),this[_0x357469(0x2ad)](this['_renderManagerService'][_0x357469(0x229)](t[_0x357469(0x397)]['UNIVER_SHEET'],[P]));}[_0x4a4f45(0x368)](){const _0x17dd17=_0x4a4f45;(0x0,t['touchDependencies'])(this[_0x17dd17(0x38f)],[[j],[L],[C],[z],[J]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x325)]!==!0x1&&(0x0,t[_0x17dd17(0x20b)])(this['_injector'],[[V]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x228)]!==!0x1&&(0x0,t[_0x17dd17(0x20b)])(this[_0x17dd17(0x38f)],[[K],[E]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x161)]&&(0x0,t[_0x17dd17(0x20b)])(this[_0x17dd17(0x38f)],[[q]]);}};b(X,'pluginName',_0x4a4f45(0x39c)),b(X,'packageName',ae),b(X,_0x4a4f45(0x2d9),oe),X=S([(0x0,t['DependentOn'])(u[_0x4a4f45(0x1c7)],d[_0x4a4f45(0x271)],p[_0x4a4f45(0x193)],m['UniverNetworkPlugin'],l[_0x4a4f45(0x200)],f[_0x4a4f45(0x2f3)],e[_0x4a4f45(0x1fc)]),x(0x1,p[_0x4a4f45(0x3f4)]),x(0x2,(0x0,t['Inject'])(t[_0x4a4f45(0x26e)])),x(0x3,t[_0x4a4f45(0x382)]),x(0x4,t['ICommandService'])],X);let Z=class extends e[_0x4a4f45(0x2c3)]{constructor(_0x2f849c,_0x3c2cc0,_0x1cf1a4,_0x3bc697,_0x4e4ce5){const _0x4f7d50=_0x4a4f45;super(_0x2f849c,_0x3c2cc0,_0x1cf1a4,_0x3bc697,_0x4e4ce5),b(this,_0x4f7d50(0x2f9),new r[(_0x4f7d50(0x31c))]()),this['disposeWithMe'](()=>{const _0x5d0b03=_0x4f7d50;this['_dispose$']['next'](),this[_0x5d0b03(0x2f9)][_0x5d0b03(0x2c6)]();});}async[_0x4a4f45(0x404)](_0x197413){const _0x435a58=_0x4a4f45;let _0x199427=await this[_0x435a58(0x238)](),_0x3fb6a6=this[_0x435a58(0x2aa)](_0x197413,_0x199427);return this[_0x435a58(0x286)](_0x3fb6a6);}[_0x4a4f45(0x2aa)](_0x195acc,_0x42683d){const _0x535021=_0x4a4f45;let _0x4dfc92=typeof window>'u'?new URL(_0x195acc):new URL(_0x195acc,window[_0x535021(0x151)]['origin']);_0x4dfc92['searchParams'][_0x535021(0x1a1)](_0x535021(0x27e),_0x42683d);let _0x294e38=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x535021(0x151)][_0x535021(0x13f)]);return _0x294e38[_0x535021(0x39f)](_0x535021(0x1a7))&&_0x4dfc92[_0x535021(0x18f)]['set'](_0x535021(0x1a7),_0x294e38[_0x535021(0x39f)](_0x535021(0x1a7))),_0x4dfc92[_0x535021(0x1d6)]();}async[_0x4a4f45(0x238)](){const _0x60113d=_0x4a4f45;var _0x55b8a8;let _0x2f0cd1=this[_0x60113d(0x281)]['getConfig'](e[_0x60113d(0x369)]),_0x22bf8a=(_0x2f0cd1==null?void 0x0:_0x2f0cd1[_0x60113d(0x406)])??e[_0x60113d(0x1d2)];return((_0x55b8a8=(await(0x0,r['firstValueFrom'])(this['_httpService'][_0x60113d(0x1f7)](_0x60113d(0x2e1),_0x22bf8a,{'headers':{'Content-Type':'application/json'}})[_0x60113d(0x237)]((0x0,r[_0x60113d(0x3e3)])(_0x21eac0=>_0x21eac0['type']===m[_0x60113d(0x14e)]['Response']),(0x0,r[_0x60113d(0x291)])(0x4e20),(0x0,r[_0x60113d(0x42e)])(this['_dispose$']))))['body'])==null?void 0x0:_0x55b8a8['ticket'])??'';}};Z=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(t['Injector'])),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m[_0x4a4f45(0x19d)])),x(0x2,t[_0x4a4f45(0x382)]),x(0x3,t[_0x4a4f45(0x3d3)]),x(0x4,l[_0x4a4f45(0x27d)])],Z);let Q=class extends t[_0x4a4f45(0x423)]{constructor(_0x5ed176,_0x2e34b3,_0x5baab8){const _0x3e69e6=_0x4a4f45;super(),this[_0x3e69e6(0x12d)]=_0x5ed176,this[_0x3e69e6(0x2ce)]=_0x2e34b3,this[_0x3e69e6(0x281)]=_0x5baab8;}async['runOnServer'](_0x2e2e0e,_0x562788,_0xbceb11,..._0x21d732){const _0x26f5ea=_0x4a4f45;let _0x47f7c7=this[_0x26f5ea(0x12d)][_0x26f5ea(0x1a8)]();if(!_0x47f7c7)throw Error(_0x26f5ea(0x3a9));let _0xb9fd=(this[_0x26f5ea(0x281)][_0x26f5ea(0x189)](e[_0x26f5ea(0x28c)])??e[_0x26f5ea(0x2c9)])+'/'+_0x2e2e0e+_0x26f5ea(0x3d1)+_0x562788,_0x23c991={'scriptId':_0x2e2e0e,'runId':new URL(window[_0x26f5ea(0x151)][_0x26f5ea(0x152)])[_0x26f5ea(0x18f)][_0x26f5ea(0x39f)](_0x26f5ea(0x1a7))??'','function':_0x562788,'unitId':_0x47f7c7['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x21d732),'invokeId':_0xbceb11['invokeId']??'','executionId':_0xbceb11[_0x26f5ea(0x2da)]??''};try{let _0x18bea5=await this['_httpService']['post'](_0xb9fd,{'body':_0x23c991});return _0x18bea5['body'][_0x26f5ea(0x27f)]&&_0x18bea5[_0x26f5ea(0x279)]['error'][_0x26f5ea(0x3af)]!==v[_0x26f5ea(0x3ee)]['OK']?_0x26f5ea(0x12f):_0x18bea5[_0x26f5ea(0x279)]['result'];}catch{return _0x26f5ea(0x12f);}}};Q=S([x(0x0,t[_0x4a4f45(0x1ff)]),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m['HTTPService'])),x(0x2,t[_0x4a4f45(0x382)])],Q);const Ae=0x7530,$=_0x4a4f45(0x1cb);var je=class extends t[_0x4a4f45(0x423)]{constructor(){const _0xa1375f=_0x4a4f45;super(),b(this,_0xa1375f(0x41e),(0x0,t[_0xa1375f(0x28e)])()),b(this,_0xa1375f(0x3dd),new Set()),b(this,_0xa1375f(0x32d),new Map()),b(this,'_heartbeatTimer',null),b(this,_0xa1375f(0x3d8),new Map()),b(this,_0xa1375f(0x250),new Map()),this[_0xa1375f(0x332)]();}[_0x4a4f45(0x288)](){const _0x28ce97=_0x4a4f45;super[_0x28ce97(0x288)](),this[_0x28ce97(0x3d8)]['forEach']((_0x493197,_0x5e414b)=>this[_0x28ce97(0x255)](_0x5e414b)),this['_heartbeatTimer']&&window[_0x28ce97(0x29c)](this[_0x28ce97(0x3ea)]);}[_0x4a4f45(0x39b)](_0x16d92d){const _0x364090=_0x4a4f45;return this[_0x364090(0x1f1)](_0x16d92d)[_0x364090(0x237)]((0x0,r[_0x364090(0x1ea)])());}[_0x4a4f45(0x1d8)](_0x3aceeb){const _0x489911=_0x4a4f45;this[_0x489911(0x3dd)][_0x489911(0x3db)]===0x0&&this['_scheduleHeartbeat'](),this[_0x489911(0x3dd)]['add'](_0x3aceeb),this[_0x489911(0x3c6)]({'type':0x0,'memberID':this[_0x489911(0x41e)],'unitIDs':[_0x3aceeb],'isForwarded':!0x1});}[_0x4a4f45(0x1f8)](_0x1e5e2f){const _0xf60f93=_0x4a4f45;this[_0xf60f93(0x3dd)][_0xf60f93(0x426)](_0x1e5e2f),this[_0xf60f93(0x3dd)][_0xf60f93(0x3db)]===0x0&&this[_0xf60f93(0x3ea)]&&window['clearInterval'](this[_0xf60f93(0x3ea)]);}[_0x4a4f45(0x332)](){const _0x30c3ae=_0x4a4f45;this[_0x30c3ae(0x2ad)]((0x0,t['toDisposable'])((0x0,r[_0x30c3ae(0x15c)])(window,_0x30c3ae(0x1cf))[_0x30c3ae(0x195)](_0x48276c=>{const _0x126b7e=_0x30c3ae;if(_0x48276c[_0x126b7e(0x3d9)]!==$||!_0x48276c['newValue'])return;let _0x25506a=JSON[_0x126b7e(0x12c)](_0x48276c[_0x126b7e(0x389)]);this['_handleEvent'](_0x25506a);}))),window[_0x30c3ae(0x3c4)](_0x30c3ae(0x227),()=>this[_0x30c3ae(0x3c6)]({'type':0x1,'memberID':this[_0x30c3ae(0x41e)],'unitIDs':Array[_0x30c3ae(0x241)](this[_0x30c3ae(0x3dd)])}));}['_handleEvent'](_0xb75273){const _0x3b1e1d=_0x4a4f45;switch(_0xb75273['type']){case 0x0:this[_0x3b1e1d(0x29d)](_0xb75273);break;case 0x1:this[_0x3b1e1d(0x37a)](_0xb75273);break;case 0x2:this['_handleHeartbeatEvent'](_0xb75273);}}[_0x4a4f45(0x29d)](_0x2fbe3a){const _0x4df67f=_0x4a4f45;let {unitIDs:_0x2a1b71,memberID:_0x763abd,isForwarded:_0x3b45d6}=_0x2fbe3a;_0x2a1b71[_0x4df67f(0x22c)](_0x7b44e5=>{const _0x1af68e=_0x4df67f;if(!_0x3b45d6&&this['_unitOnClients']['has'](_0x7b44e5)&&this['_ensureSubject'](_0x7b44e5)['next'](e[_0x1af68e(0x175)][_0x1af68e(0x239)]),!this['_unitOnClients'][_0x1af68e(0x33a)](_0x7b44e5)||!this[_0x1af68e(0x32d)][_0x1af68e(0x39f)](_0x7b44e5)[_0x1af68e(0x33a)](_0x763abd)){let _0x1ae58f=this['_unitOnClients']['get'](_0x7b44e5)||new Set();_0x1ae58f[_0x1af68e(0x307)](_0x763abd),this['_unitOnClients'][_0x1af68e(0x1a1)](_0x7b44e5,_0x1ae58f),this[_0x1af68e(0x3b8)](_0x763abd);}}),_0x3b45d6||this[_0x4df67f(0x3c6)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5ae461){const _0x4cef02=_0x4a4f45;this[_0x4cef02(0x255)](_0x5ae461);let _0x1f27ff=window[_0x4cef02(0x40f)](()=>{const _0x4f2b4c=_0x4cef02;this[_0x4f2b4c(0x32d)][_0x4f2b4c(0x22c)](_0x3f9149=>{_0x3f9149['delete'](_0x5ae461);});},Ae*0x2);this['_clearOtherTimers']['set'](_0x5ae461,_0x1f27ff);}[_0x4a4f45(0x255)](_0x121b13){const _0x17d4b4=_0x4a4f45;if(this['_clearOtherTimers'][_0x17d4b4(0x33a)](_0x121b13)){let _0x29c707=this['_clearOtherTimers']['get'](_0x121b13);_0x29c707&&window[_0x17d4b4(0x187)](_0x29c707),this['_clearOtherTimers'][_0x17d4b4(0x1a1)](_0x121b13,null);}}[_0x4a4f45(0x37a)](_0x3793c0){const _0x425d7a=_0x4a4f45;let {memberID:_0x256bf3,unitIDs:_0x929b38}=_0x3793c0;_0x929b38[_0x425d7a(0x22c)](_0x4b1607=>{const _0x27f2c8=_0x425d7a;var _0x1ef224;let _0x202303=this['_unitOnClients'][_0x27f2c8(0x39f)](_0x4b1607);_0x202303&&(_0x202303[_0x27f2c8(0x426)](_0x256bf3),(_0x1ef224=this[_0x27f2c8(0x1f1)](_0x4b1607))==null||_0x1ef224[_0x27f2c8(0x13e)](_0x202303[_0x27f2c8(0x3db)]===0x0?e[_0x27f2c8(0x175)]['NO_OTHER_CLIENTS_EDITING']:e[_0x27f2c8(0x175)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x256bf3);}[_0x4a4f45(0x357)](_0x172f34){this['_scheduleClearOtherTimer'](_0x172f34['memberID']);}['_send'](_0x3ca964){const _0x526402=_0x4a4f45;localStorage['setItem']($,JSON[_0x526402(0x26b)](_0x3ca964));}[_0x4a4f45(0x130)](){const _0x348af6=_0x4a4f45;this['_heartbeatTimer']=window[_0x348af6(0x230)](()=>{const _0x8189fb=_0x348af6;this[_0x8189fb(0x3c6)]({'type':0x2,'memberID':this[_0x8189fb(0x41e)]});},Ae);}[_0x4a4f45(0x1f1)](_0x23f14c){const _0x44d1fc=_0x4a4f45;return this[_0x44d1fc(0x250)][_0x44d1fc(0x33a)](_0x23f14c)||this[_0x44d1fc(0x250)]['set'](_0x23f14c,new r['BehaviorSubject'](e['UnitStatus'][_0x44d1fc(0x3e7)])),this[_0x44d1fc(0x250)][_0x44d1fc(0x39f)](_0x23f14c);}};Object[_0x4a4f45(0x2e7)](exports,_0x4a4f45(0x162),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x4a4f45(0x265),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x4a4f45(0x344)]=B,Object[_0x4a4f45(0x2e7)](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x4a4f45(0x339)]=_e,Object[_0x4a4f45(0x2e7)](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x4a4f45(0x1ad)]=je;
1
+ const _0x38a3cb=_0x121f;(function(_0x413574,_0x2ae16){const _0x4f3c11=_0x121f,_0x1f4026=_0x413574();while(!![]){try{const _0xe915f=parseInt(_0x4f3c11(0x190))/0x1*(-parseInt(_0x4f3c11(0x105))/0x2)+parseInt(_0x4f3c11(0x2d5))/0x3+parseInt(_0x4f3c11(0x347))/0x4+-parseInt(_0x4f3c11(0x31b))/0x5*(parseInt(_0x4f3c11(0x2e4))/0x6)+parseInt(_0x4f3c11(0x241))/0x7+parseInt(_0x4f3c11(0x19a))/0x8+-parseInt(_0x4f3c11(0x3cf))/0x9*(parseInt(_0x4f3c11(0x28d))/0xa);if(_0xe915f===_0x2ae16)break;else _0x1f4026['push'](_0x1f4026['shift']());}catch(_0x57e0ac){_0x1f4026['push'](_0x1f4026['shift']());}}}(_0x4b94,0x5ba24),Object[_0x38a3cb(0x33e)](exports,Symbol[_0x38a3cb(0x2f4)],{'value':_0x38a3cb(0x3e9)}));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-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x43e6a0){const _0x27c66d=_0x38a3cb;switch(_0x43e6a0){case e['CollaborationStatus'][_0x27c66d(0x390)]:return{'icon':(0x0,c[_0x27c66d(0x27c)])(o['OffLineIcon'],{}),'colorClass':_0x27c66d(0x16d),'i18nKey':_0x27c66d(0x39d),'tooltipKey':_0x27c66d(0x356),'clickable':!0x0,'indicator':_0x27c66d(0x2a2)};case e[_0x27c66d(0x30d)][_0x27c66d(0x350)]:return{'icon':(0x0,c['jsx'])(o[_0x27c66d(0x1dd)],{}),'colorClass':_0x27c66d(0x295),'i18nKey':_0x27c66d(0x25f),'clickable':!0x1,'indicator':_0x27c66d(0x2a2)};case e[_0x27c66d(0x30d)][_0x27c66d(0x127)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':_0x27c66d(0x1ff),'i18nKey':_0x27c66d(0x374),'clickable':!0x1,'indicator':_0x27c66d(0x25d)};case e[_0x27c66d(0x30d)][_0x27c66d(0x26b)]:return{'icon':(0x0,c['jsx'])(o[_0x27c66d(0x333)],{}),'colorClass':_0x27c66d(0x2f6),'i18nKey':_0x27c66d(0x360),'clickable':!0x1,'indicator':'static'};case e['CollaborationStatus'][_0x27c66d(0x336)]:case e[_0x27c66d(0x30d)][_0x27c66d(0x230)]:return{'icon':(0x0,c[_0x27c66d(0x27c)])(o['LoadingMultiIcon'],{}),'colorClass':_0x27c66d(0x1ff),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case e[_0x27c66d(0x30d)][_0x27c66d(0x161)]:return{'icon':(0x0,c[_0x27c66d(0x27c)])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x27c66d(0x2ff),'clickable':!0x1,'indicator':_0x27c66d(0x25d)};case e['CollaborationStatus'][_0x27c66d(0x341)]:return{'icon':(0x0,c[_0x27c66d(0x27c)])(o['OnLineIcon'],{}),'colorClass':'univer-text-green-500','i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x27c66d(0x2a2)};}}function te(_0x28b759){const _0x1ccb9a=_0x38a3cb;let {status$:_0x302442}=_0x28b759,_0x621eee=(0x0,n[_0x1ccb9a(0x302)])(_0x302442,e[_0x1ccb9a(0x30d)][_0x1ccb9a(0x26b)]),_0xeb58d2=(0x0,n[_0x1ccb9a(0x14a)])(t['LocaleService']),_0x154077=(0x0,n[_0x1ccb9a(0x14a)])(e['CollaborationSessionService']),_0x218d20=(0x0,s['useMemo'])(()=>ee(_0x621eee),[_0x621eee]),_0x38e0c1=_0x621eee!==e[_0x1ccb9a(0x30d)][_0x1ccb9a(0x390)],_0x3e23b9=_0xeb58d2['t'](_0x218d20[_0x1ccb9a(0x34e)]),_0x1a4adc=_0x218d20['tooltipKey']?_0xeb58d2['t'](_0x218d20[_0x1ccb9a(0x2ca)]):_0x3e23b9,_0x401e9d=(0x0,s[_0x1ccb9a(0x349)])(()=>{_0x38e0c1||_0x154077['reconnect']();},[_0x38e0c1,_0x154077]),_0x57fd6a=(0x0,s[_0x1ccb9a(0x349)])(_0x43c991=>{const _0x5aefbf=_0x1ccb9a;!_0x38e0c1&&(_0x43c991[_0x5aefbf(0x24e)]==='Enter'||_0x43c991[_0x5aefbf(0x24e)]==='\x20')&&(_0x43c991[_0x5aefbf(0x1ee)](),_0x154077['reconnect']());},[_0x38e0c1,_0x154077]),_0x7eda1b=(0x0,c[_0x1ccb9a(0x27c)])('span',{'className':(0x0,a[_0x1ccb9a(0x18a)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x1ccb9a(0x2b7),_0x218d20[_0x1ccb9a(0x1f9)],{'univer-animate-spin':_0x218d20[_0x1ccb9a(0x32d)]==='spin','univer-animate-pulse':_0x218d20[_0x1ccb9a(0x32d)]===_0x1ccb9a(0x243)}),'aria-hidden':_0x1ccb9a(0x348),'children':_0x218d20['icon']}),_0x2e05ab=(0x0,c[_0x1ccb9a(0x27c)])(_0x1ccb9a(0x391),{'className':(0x0,a[_0x1ccb9a(0x18a)])(_0x1ccb9a(0x131),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x1ccb9a(0x285),_0x1ccb9a(0x205),_0x1ccb9a(0x2f7),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x218d20['clickable'],'univer-cursor-default':!_0x218d20[_0x1ccb9a(0x191)]}),'children':_0x7eda1b});return _0x218d20['clickable']?(0x0,c['jsx'])(a[_0x1ccb9a(0x2e3)],{'title':_0x1a4adc,'placement':_0x1ccb9a(0x13a),'children':(0x0,c[_0x1ccb9a(0x27c)])('button',{'type':_0x1ccb9a(0x117),'onClick':_0x401e9d,'onKeyDown':_0x57fd6a,'className':(0x0,a[_0x1ccb9a(0x18a)])(_0x1ccb9a(0x188),_0x1ccb9a(0x244),_0x1ccb9a(0x23b),_0x1ccb9a(0x3de)),'aria-label':_0x3e23b9+_0x1ccb9a(0x2cb)+_0x1a4adc,'role':_0x1ccb9a(0x3f3),'aria-live':_0x1ccb9a(0x219),'aria-atomic':_0x1ccb9a(0x348),'children':_0x2e05ab})}):(0x0,c[_0x1ccb9a(0x27c)])(a[_0x1ccb9a(0x2e3)],{'title':_0x1a4adc,'placement':_0x1ccb9a(0x13a),'children':(0x0,c['jsx'])(_0x1ccb9a(0x37d),{'className':(0x0,a[_0x1ccb9a(0x18a)])(_0x1ccb9a(0x188),_0x1ccb9a(0x244),_0x1ccb9a(0x23b)),'aria-label':_0x3e23b9,'role':_0x1ccb9a(0x3f3),'aria-live':_0x1ccb9a(0x219),'aria-atomic':_0x1ccb9a(0x348),'children':_0x2e05ab})});}function y(_0x5dc9a8){'@babel/helpers - typeof';const _0x26c096=_0x38a3cb;return y=typeof Symbol==_0x26c096(0x1d7)&&typeof Symbol[_0x26c096(0x1c0)]==_0x26c096(0x30e)?function(_0xb7292e){return typeof _0xb7292e;}:function(_0x5566c5){const _0x24b320=_0x26c096;return _0x5566c5&&typeof Symbol==_0x24b320(0x1d7)&&_0x5566c5[_0x24b320(0x209)]===Symbol&&_0x5566c5!==Symbol['prototype']?_0x24b320(0x30e):typeof _0x5566c5;},y(_0x5dc9a8);}function ne(_0xb266e4,_0x32ddc7){const _0x487047=_0x38a3cb;if(y(_0xb266e4)!=_0x487047(0x2cd)||!_0xb266e4)return _0xb266e4;var _0x3c2691=_0xb266e4[Symbol['toPrimitive']];if(_0x3c2691!==void 0x0){var _0x21a182=_0x3c2691[_0x487047(0x1e9)](_0xb266e4,_0x32ddc7||_0x487047(0x201));if(y(_0x21a182)!=_0x487047(0x2cd))return _0x21a182;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x32ddc7===_0x487047(0x28f)?String:Number)(_0xb266e4);}function re(_0x4b871a){const _0x19c0af=_0x38a3cb;var _0x4fb13e=ne(_0x4b871a,_0x19c0af(0x28f));return y(_0x4fb13e)==_0x19c0af(0x30e)?_0x4fb13e:_0x4fb13e+'';}function _0x121f(_0x576338,_0x2211f1){_0x576338=_0x576338-0xfe;const _0x4b94a3=_0x4b94();let _0x121f88=_0x4b94a3[_0x576338];return _0x121f88;}function b(_0x27a272,_0x3af6b1,_0x10f9b5){const _0x1b1af1=_0x38a3cb;return(_0x3af6b1=re(_0x3af6b1))in _0x27a272?Object[_0x1b1af1(0x33e)](_0x27a272,_0x3af6b1,{'value':_0x10f9b5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27a272[_0x3af6b1]=_0x10f9b5,_0x27a272;}function x(_0x377d95,_0x46876a){return function(_0x1839c8,_0x559594){_0x46876a(_0x1839c8,_0x559594,_0x377d95);};}function S(_0x55e964,_0x2ffd37,_0x29f98b,_0x1811a3){const _0x16a8ac=_0x38a3cb;var _0x357c9c=arguments['length'],_0x39bd52=_0x357c9c<0x3?_0x2ffd37:_0x1811a3===null?_0x1811a3=Object[_0x16a8ac(0x358)](_0x2ffd37,_0x29f98b):_0x1811a3,_0x564e03;if(typeof Reflect==_0x16a8ac(0x2cd)&&typeof Reflect[_0x16a8ac(0x2e8)]==_0x16a8ac(0x1d7))_0x39bd52=Reflect[_0x16a8ac(0x2e8)](_0x55e964,_0x2ffd37,_0x29f98b,_0x1811a3);else{for(var _0x1db79a=_0x55e964['length']-0x1;_0x1db79a>=0x0;_0x1db79a--)(_0x564e03=_0x55e964[_0x1db79a])&&(_0x39bd52=(_0x357c9c<0x3?_0x564e03(_0x39bd52):_0x357c9c>0x3?_0x564e03(_0x2ffd37,_0x29f98b,_0x39bd52):_0x564e03(_0x2ffd37,_0x29f98b))||_0x39bd52);}return _0x357c9c>0x3&&_0x39bd52&&Object[_0x16a8ac(0x33e)](_0x2ffd37,_0x29f98b,_0x39bd52),_0x39bd52;}let C=class extends t[_0x38a3cb(0x251)]{constructor(_0x2ae562,_0x4a5dcf,_0x5e1b1a,_0x186508,_0x5f4c07){const _0x4ff772=_0x38a3cb;super(),this['_univerInstanceService']=_0x2ae562,this[_0x4ff772(0x3c6)]=_0x4a5dcf,this[_0x4ff772(0x3f7)]=_0x5e1b1a,this[_0x4ff772(0x195)]=_0x186508,this['_presenceAdapterRegistry']=_0x5f4c07,b(this,_0x4ff772(0x2a6),new r[(_0x4ff772(0x1a0))](e[_0x4ff772(0x30d)]['NOT_COLLAB'])),b(this,_0x4ff772(0x242),new Map()),this[_0x4ff772(0x25e)](),this[_0x4ff772(0x324)](),this[_0x4ff772(0x404)]();}[_0x38a3cb(0x15a)](){const _0x445543=_0x38a3cb;this[_0x445543(0x242)][_0x445543(0x1b2)](_0x2816a3=>_0x2816a3[_0x445543(0x15a)]()),this[_0x445543(0x242)][_0x445543(0x229)](),this[_0x445543(0x2a6)][_0x445543(0x240)](),super[_0x445543(0x15a)]();}[_0x38a3cb(0x324)](){const _0x3c103f=_0x38a3cb;this[_0x3c103f(0x166)]((0x0,r['merge'])(this[_0x3c103f(0x273)][_0x3c103f(0x3f0)],this[_0x3c103f(0x273)][_0x3c103f(0x13d)](t[_0x3c103f(0x2f8)][_0x3c103f(0x3f1)]),this[_0x3c103f(0x273)][_0x3c103f(0x13d)](t[_0x3c103f(0x2f8)][_0x3c103f(0x310)]))[_0x3c103f(0x263)]((0x0,i['map'])(()=>ie(this[_0x3c103f(0x273)])),(0x0,i['distinctUntilChanged'])(),(0x0,r[_0x3c103f(0x220)])(_0x37cd75=>_0x37cd75?this['_collaborationController'][_0x3c103f(0x2d1)](_0x37cd75):(0x0,r['of'])(null)),(0x0,r['switchMap'])(_0x410ea9=>_0x410ea9?_0x410ea9[_0x3c103f(0x138)]:(0x0,r['of'])(e[_0x3c103f(0x30d)][_0x3c103f(0x26b)])))[_0x3c103f(0x329)](_0x2d4af1=>{const _0x3372dd=_0x3c103f;this[_0x3372dd(0x2a6)][_0x3372dd(0x1af)](_0x2d4af1);}));}[_0x38a3cb(0x25e)](){const _0x3ccfda=_0x38a3cb;this[_0x3ccfda(0x166)](this[_0x3ccfda(0x195)]['registerComponent'](n['BuiltInUIPart']['HEADER_MENU'],()=>(0x0,n['connectInjector'])(w({'status$':this[_0x3ccfda(0x2a6)][_0x3ccfda(0x234)]()}),this[_0x3ccfda(0x3c6)])));}[_0x38a3cb(0x404)](){const _0x1730d1=_0x38a3cb;let _0x2d8aab=this['_presenceAdapterRegistry'][_0x1730d1(0x307)][_0x1730d1(0x329)](_0x45356f=>{const _0x55ec6e=_0x1730d1;this[_0x55ec6e(0x3a8)](_0x45356f);});this[_0x1730d1(0x166)]((0x0,t['toDisposable'])(()=>_0x2d8aab[_0x1730d1(0x30b)]()));}[_0x38a3cb(0x3a8)](_0x368c95){const _0x3d3d6a=_0x38a3cb;let _0x494809=new Map(_0x368c95[_0x3d3d6a(0x193)](_0x4a0803=>_0x4a0803['statusUIPart']!=null)['map'](_0x4e2af4=>[_0x4e2af4[_0x3d3d6a(0x318)],_0x4e2af4]));this['_presenceStatusRegistrations']['forEach']((_0x41ea66,_0x1cfa23)=>{const _0x163fd8=_0x3d3d6a;_0x494809['has'](_0x1cfa23)||(_0x41ea66[_0x163fd8(0x15a)](),this[_0x163fd8(0x242)][_0x163fd8(0x3fb)](_0x1cfa23));}),_0x494809['forEach']((_0x47098c,_0x5332fb)=>{const _0x3070ba=_0x3d3d6a;this['_presenceStatusRegistrations']['has'](_0x5332fb)||this[_0x3070ba(0x1b1)](_0x47098c);});}[_0x38a3cb(0x1b1)](_0x449ca7){const _0x2973c3=_0x38a3cb;let _0x444b0e=_0x449ca7[_0x2973c3(0x14d)];if(!_0x444b0e)return;let _0xb64864=new t[(_0x2973c3(0x31e))](),_0x2a9773=new r[(_0x2973c3(0x1a0))](e['CollaborationStatus'][_0x2973c3(0x26b)]);_0xb64864[_0x2973c3(0x354)]((0x0,t[_0x2973c3(0x3f8)])(()=>_0x2a9773['complete']())),_0xb64864[_0x2973c3(0x354)](this[_0x2973c3(0x195)][_0x2973c3(0x123)](_0x444b0e,()=>(0x0,n[_0x2973c3(0x301)])(w({'status$':_0x2a9773[_0x2973c3(0x234)]()}),this['_injector'])));let _0x3b28a9=this['_univerInstanceService'][_0x2973c3(0x13d)](_0x449ca7['unitType'])[_0x2973c3(0x263)]((0x0,i['map'])(_0x1a2fe2=>(_0x1a2fe2==null?void 0x0:_0x1a2fe2[_0x2973c3(0x14f)]())??null),(0x0,i[_0x2973c3(0x136)])(),(0x0,r[_0x2973c3(0x220)])(_0x1527c8=>_0x1527c8?this[_0x2973c3(0x3f7)][_0x2973c3(0x2d1)](_0x1527c8):(0x0,r['of'])(null)),(0x0,r[_0x2973c3(0x220)])(_0x5f2952=>(_0x5f2952==null?void 0x0:_0x5f2952[_0x2973c3(0x138)])??(0x0,r['of'])(e[_0x2973c3(0x30d)]['NOT_COLLAB'])))[_0x2973c3(0x329)](_0x106e89=>_0x2a9773[_0x2973c3(0x1af)](_0x106e89));_0xb64864['add']((0x0,t[_0x2973c3(0x3f8)])(()=>_0x3b28a9[_0x2973c3(0x30b)]())),this[_0x2973c3(0x242)][_0x2973c3(0x3b8)](_0x449ca7[_0x2973c3(0x318)],_0xb64864);}};C=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x2,(0x0,t[_0x38a3cb(0x361)])(e[_0x38a3cb(0x14b)])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t[_0x38a3cb(0x361)])(n['IUnitPresenceUIAdapterRegistry']))],C);function ie(_0x4a5312){const _0x12304e=_0x38a3cb;let _0x191c24=_0x4a5312[_0x12304e(0x37b)](),_0x5e8d4c=_0x191c24==null?void 0x0:_0x191c24[_0x12304e(0x14f)]();if(_0x5e8d4c&&!(0x0,t[_0x12304e(0x272)])(_0x5e8d4c))return _0x5e8d4c;let _0x4cfe27=_0x4a5312['getCurrentUnitOfType'](t[_0x12304e(0x2f8)]['UNIVER_DOC']),_0x58c06f=_0x4cfe27==null?void 0x0:_0x4cfe27[_0x12304e(0x14f)]();if(_0x58c06f&&!(0x0,t[_0x12304e(0x272)])(_0x58c06f))return _0x58c06f;let _0x2b2122=_0x4a5312['getCurrentUnitOfType'](t[_0x12304e(0x2f8)][_0x12304e(0x310)]);if(_0x2b2122)return _0x2b2122[_0x12304e(0x14f)]();let _0x1f9c94=_0x4a5312[_0x12304e(0x299)](t['UniverInstanceType']['UNIVER_DOC'])[_0x12304e(0x168)](_0x189432=>!(0x0,t[_0x12304e(0x272)])(_0x189432[_0x12304e(0x14f)]()));return _0x1f9c94?_0x1f9c94['getUnitId']():null;}function w(_0x5a9855){let {status$:_0x1188b5}=_0x5a9855;return function(){return(0x0,c['jsx'])(te,{'status$':_0x1188b5});};}var ae=_0x38a3cb(0x1d1),oe=_0x38a3cb(0x1ea);const T={'id':_0x38a3cb(0x215),'type':t[_0x38a3cb(0x355)][_0x38a3cb(0x31d)],'handler':(_0x310c8b,_0x56f14a)=>{const _0x19de3a=_0x38a3cb;let _0x5c9577=_0x310c8b[_0x19de3a(0x255)](n[_0x19de3a(0x150)])[_0x19de3a(0x255)](_0x56f14a[_0x19de3a(0x318)]);if(!_0x5c9577)return!0x1;switch(_0x56f14a[_0x19de3a(0x3bb)][_0x19de3a(0x378)]){case _0x19de3a(0x3b8):return _0x5c9577[_0x19de3a(0x325)](_0x56f14a[_0x19de3a(0x3bb)][_0x19de3a(0x187)]),!0x0;case _0x19de3a(0x165):return _0x5c9577[_0x19de3a(0x141)](_0x56f14a[_0x19de3a(0x3bb)][_0x19de3a(0x2ec)],_0x56f14a[_0x19de3a(0x3bb)]['memberId']),!0x0;case'clear':return _0x5c9577[_0x19de3a(0x2d3)](_0x56f14a[_0x19de3a(0x3bb)]['unitId']),!0x0;default:return!0x1;}}},se={};let E=class extends t[_0x38a3cb(0x3b0)]{constructor(_0x291077,_0x48030d){const _0x2a2772=_0x38a3cb;super(),this['_docClipboardService']=_0x291077,this[_0x2a2772(0x3ae)]=_0x48030d,this[_0x2a2772(0x119)]();}['_init'](){const _0x93d162=_0x38a3cb;let _0x594053=this;this[_0x93d162(0x166)](this[_0x93d162(0x3c5)][_0x93d162(0x1ae)]({'onBeforePasteImage':async _0x4c427e=>{const _0x1f5c11=_0x93d162;let _0xec16b9=await _0x594053[_0x1f5c11(0x3ae)][_0x1f5c11(0x218)](_0x4c427e);return _0xec16b9?{'source':_0xec16b9[_0x1f5c11(0x237)],'imageSourceType':_0xec16b9[_0x1f5c11(0x22d)]}:null;}}));}};E=S([x(0x0,f[_0x38a3cb(0x33a)]),x(0x1,t[_0x38a3cb(0x3e1)])],E);const ce=[_0x38a3cb(0x3e4),'jiqing.500',_0x38a3cb(0x264),_0x38a3cb(0x148),_0x38a3cb(0x15b),_0x38a3cb(0x34b)];var D=class extends t['Disposable']{constructor(..._0x308026){const _0x139c3c=_0x38a3cb;super(..._0x308026),b(this,'_assignedColors',new Map()),b(this,_0x139c3c(0x106),0x0);}[_0x38a3cb(0x321)](_0x54bd8b){const _0x113842=_0x38a3cb;if(this[_0x113842(0x30a)][_0x113842(0x3ab)](_0x54bd8b))return this[_0x113842(0x30a)][_0x113842(0x255)](_0x54bd8b);let _0x36e08c=ce[this[_0x113842(0x106)]];return this['_colorIndex']=(this[_0x113842(0x106)]+0x1)%ce['length'],this[_0x113842(0x30a)]['set'](_0x54bd8b,_0x36e08c),_0x36e08c;}};function le(_0x372151){let _0x10c3c7='';for(let _0x9229a8 of _0x372151){let {startOffset:_0x32995a,endOffset:_0x42e527,isActive:_0x42315d,rangeType:_0x57abbc,segmentId:_0x5e4421,segmentPage:_0x55d393}=_0x9229a8;_0x10c3c7['length']&&(_0x10c3c7+=','),_0x10c3c7+=_0x32995a+':'+_0x42e527+':'+(_0x42315d?'1':'0')+':'+_0x57abbc+':'+_0x5e4421+':'+_0x55d393;}return _0x10c3c7;}function ue(_0x48ac4e){const _0x2118e0=_0x38a3cb;let _0x30365d=_0x48ac4e['split'](','),_0x51d49d=[];for(let _0x1bf19 of _0x30365d){let [_0x31f82e,_0x1df1c5,_0x147662,_0x7e50c0,_0x289334,_0x20290a]=_0x1bf19[_0x2118e0(0x19e)](':');_0x51d49d[_0x2118e0(0x159)]({'startOffset':Number(_0x31f82e),'endOffset':Number(_0x1df1c5),'collapsed':_0x31f82e===_0x1df1c5,'isActive':_0x147662==='1','rangeType':_0x7e50c0===t[_0x2118e0(0x27b)]['TEXT']?t[_0x2118e0(0x27b)]['TEXT']:t['DOC_RANGE_TYPE'][_0x2118e0(0x290)],'segmentId':typeof _0x289334=='string'?String(_0x289334):'','segmentPage':Number(_0x20290a??-0x1)});}return _0x51d49d['some'](_0x35acf2=>_0x35acf2['isActive'])||(_0x51d49d[0x0][_0x2118e0(0x1f8)]=!0x0),_0x51d49d;}var O=class extends t[_0x38a3cb(0x3b0)]{constructor(..._0x12abdf){const _0x34890a=_0x38a3cb;super(..._0x12abdf),b(this,'_collabCursorState$',new r[(_0x34890a(0x1a0))](null)),b(this,_0x34890a(0x217),this[_0x34890a(0x331)][_0x34890a(0x234)]());}[_0x38a3cb(0x2da)](_0x51d25b){const _0x4115bf=_0x38a3cb;let {unitID:_0x3c6b1d,memberID:_0x5389da,textRanges:_0xa54a7a}=_0x51d25b,_0x435eed=le(_0xa54a7a);if(_0x435eed==='')return;let _0x251993={'unitID':_0x3c6b1d,'memberID':_0x5389da,'selection':_0x435eed};this[_0x4115bf(0x331)][_0x4115bf(0x1af)](_0x251993);}};let k=class extends t[_0x38a3cb(0x3b0)]{get[_0x38a3cb(0x3aa)](){const _0x5d78f9=_0x38a3cb;return this[_0x5d78f9(0x292)][_0x5d78f9(0x202)]();}get['roomMembers'](){const _0x5060b5=_0x38a3cb;return this[_0x5060b5(0x1db)][_0x5060b5(0x202)]();}constructor(_0x182a86,_0xf5c9dd,_0x5bbf5d,_0xbd2f15,_0x3f1c6d,_0x5c3dba,_0x43bd3e,_0x34cee1,_0x2bcecf){const _0x201c58=_0x38a3cb;super(),this['unitID']=_0x182a86,this['_session']=_0xf5c9dd,this[_0x201c58(0x3c6)]=_0x5bbf5d,this[_0x201c58(0x3be)]=_0xbd2f15,this[_0x201c58(0x1e6)]=_0x3f1c6d,this[_0x201c58(0x23e)]=_0x5c3dba,this['_transformService']=_0x43bd3e,this[_0x201c58(0x273)]=_0x34cee1,this['_commandService']=_0x2bcecf,b(this,_0x201c58(0x1fe),!0x1),b(this,'_init',!0x1),b(this,_0x201c58(0x292),new r[(_0x201c58(0x1a0))](new Map())),b(this,_0x201c58(0x1cf),this[_0x201c58(0x292)][_0x201c58(0x234)]()),b(this,_0x201c58(0x1db),new r[(_0x201c58(0x1a0))]([])),b(this,'roomMembers$',this[_0x201c58(0x1db)][_0x201c58(0x263)]((0x0,r['debounceTime'])(0x12c))),b(this,_0x201c58(0x10a),(0x0,t[_0x201c58(0x36b)])(_0x304238=>{const _0xd0a60=_0x201c58;let _0x3107f5={'eventID':l[_0xd0a60(0x26d)][_0xd0a60(0x23f)],'data':{'unitID':this['unitID'],'memberID':this[_0xd0a60(0x151)][_0xd0a60(0x210)](),'selection':le(_0x304238)}};this['_session'][_0xd0a60(0x1b8)](_0x3107f5,this[_0xd0a60(0x2fa)]);},0x64));}[_0x38a3cb(0x15a)](){const _0x3663d4=_0x38a3cb;super[_0x3663d4(0x15a)](),this[_0x3663d4(0x292)][_0x3663d4(0x1af)](new Map()),this[_0x3663d4(0x292)]['complete'](),this[_0x3663d4(0x1db)][_0x3663d4(0x1af)]([]),this['_roomMembers$'][_0x3663d4(0x240)]();}[_0x38a3cb(0x134)](){const _0x45a180=_0x38a3cb;this[_0x45a180(0x119)]||(this[_0x45a180(0x119)]=!0x0,this[_0x45a180(0x151)][_0x45a180(0x1cc)]['pipe']((0x0,r[_0x45a180(0x1c6)])(this['dispose$']))[_0x45a180(0x329)](_0x162cdf=>{const _0x2bbdec=_0x45a180;_0x162cdf===e[_0x2bbdec(0x147)][_0x2bbdec(0x36f)]?this['_toggleOnline']():this[_0x2bbdec(0x133)]();}),this[_0x45a180(0x151)][_0x45a180(0x345)][_0x45a180(0x263)]((0x0,r[_0x45a180(0x1c6)])(this['dispose$']))[_0x45a180(0x329)](_0x3cdbd6=>{const _0xbab4ff=_0x45a180;let _0x33bba6=_0x3cdbd6['eventID'];_0x33bba6===l['CollaborationEvent'][_0xbab4ff(0x23f)]&&this[_0xbab4ff(0x17a)](_0x3cdbd6),_0x33bba6===l['CollaborationEvent'][_0xbab4ff(0x26a)]&&this['_onCursorDelete'](_0x3cdbd6);}),this[_0x45a180(0x166)](this['_commandService'][_0x45a180(0x17d)](_0x198636=>{const _0x3d7b89=_0x45a180;let _0x41d508=_0x198636[_0x3d7b89(0x1b4)];_0x41d508!=null&&this[_0x3d7b89(0x1fe)]&&_0x198636['id']===d[_0x3d7b89(0x1d3)]['id']&&_0x41d508[_0x3d7b89(0x2ec)]===this[_0x3d7b89(0x2fa)]&&_0x41d508[_0x3d7b89(0x2eb)]===!0x1&&_0x41d508[_0x3d7b89(0x3da)][_0x3d7b89(0x154)]>0x0&&this[_0x3d7b89(0x10a)](_0x41d508[_0x3d7b89(0x3da)]);})),this[_0x45a180(0x23e)]['collabCursorState$'][_0x45a180(0x263)]((0x0,r[_0x45a180(0x1c6)])(this['dispose$']))[_0x45a180(0x329)](_0x58a71d=>{const _0x54d20a=_0x45a180;if((_0x58a71d==null?void 0x0:_0x58a71d[_0x54d20a(0x2fa)])!==this[_0x54d20a(0x2fa)])return;let _0x2b3ec1={'eventID':l['CollaborationEvent'][_0x54d20a(0x23f)],'data':_0x58a71d};this['_onCursorUpdate'](_0x2b3ec1);}),this[_0x45a180(0x166)](this[_0x45a180(0x3f2)][_0x45a180(0x17d)](_0x2f5b0f=>{const _0x735701=_0x45a180;if(_0x2f5b0f[_0x735701(0x1b4)]==null)return;let _0x3fdb2f=_0x2f5b0f[_0x735701(0x1b4)];if(_0x2f5b0f['id']!==d[_0x735701(0x2c3)]['id']||_0x3fdb2f['unitId']!==this[_0x735701(0x2fa)])return;let _0x2931f9={'id':_0x735701(0x281),'params':_0x3fdb2f},_0x4d2c21=this[_0x735701(0x3aa)];for(let [_0x538d5f,_0x1290ae]of _0x4d2c21){let _0x333956={'id':_0x735701(0x281),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1290ae['ranges']}},_0x37dbf1=this[_0x735701(0x2a5)][_0x735701(0x2c6)](_0x2931f9,_0x333956,!0x1);if((0x0,l[_0x735701(0x3d6)])(_0x37dbf1))throw _0x37dbf1[_0x735701(0x1f7)];_0x4d2c21[_0x735701(0x3b8)](_0x538d5f,{..._0x1290ae,'ranges':_0x37dbf1[_0x735701(0x33f)][_0x735701(0x1b4)][_0x735701(0x34d)]});}queueMicrotask(()=>{const _0x43d9ae=_0x735701;this[_0x43d9ae(0x292)][_0x43d9ae(0x1af)](_0x4d2c21);});})));}[_0x38a3cb(0x17a)](_0x3a61ef){const _0x2bec48=_0x38a3cb;var _0x3b36c2;let {memberID:_0x578be1,selection:_0x7c5c46}=_0x3a61ef[_0x2bec48(0x256)],_0x15b9ea=ue(_0x7c5c46),_0x4219c3=((_0x3b36c2=this['_memberService'][_0x2bec48(0x208)](this[_0x2bec48(0x2fa)],_0x578be1))==null?void 0x0:_0x3b36c2[_0x2bec48(0x3c8)])??_0x2bec48(0x28a),_0x3dd6b6={'color':this[_0x2bec48(0x3be)][_0x2bec48(0x321)](_0x578be1),'name':_0x4219c3,'ranges':_0x15b9ea},_0x13bf08=this['cursorInfo'];_0x13bf08['set'](_0x578be1,_0x3dd6b6),this[_0x2bec48(0x292)][_0x2bec48(0x1af)](_0x13bf08);}[_0x38a3cb(0x2ed)](_0x56de3c){const _0x4a6c6c=_0x38a3cb;let {memberID:_0x471178}=_0x56de3c[_0x4a6c6c(0x256)],_0x756eb4=this[_0x4a6c6c(0x3aa)];_0x756eb4[_0x4a6c6c(0x3fb)](_0x471178),this[_0x4a6c6c(0x292)]['next'](_0x756eb4);}[_0x38a3cb(0x2a1)](){const _0x3a3440=_0x38a3cb;var _0x4d50cf;if(this['_online']=!0x0,((_0x4d50cf=this['_univerInstanceService'][_0x3a3440(0x37b)]())==null?void 0x0:_0x4d50cf[_0x3a3440(0x14f)]())!==this[_0x3a3440(0x2fa)])return;let _0x7300c3=this[_0x3a3440(0x3c6)]['get'](d['DocSelectionManagerService'])[_0x3a3440(0x228)]();Array[_0x3a3440(0x266)](_0x7300c3)&&_0x7300c3[_0x3a3440(0x154)]>0x0&&this[_0x3a3440(0x10a)](_0x7300c3);}['_toggleOffline'](){const _0x107f8e=_0x38a3cb;this[_0x107f8e(0x1fe)]=!0x1;}};k=S([x(0x2,(0x0,t['Inject'])(t[_0x38a3cb(0x291)])),x(0x3,(0x0,t[_0x38a3cb(0x361)])(D)),x(0x4,(0x0,t[_0x38a3cb(0x361)])(e[_0x38a3cb(0x22c)])),x(0x5,(0x0,t['Inject'])(O)),x(0x6,l[_0x38a3cb(0x344)]),x(0x7,t['IUniverInstanceService']),x(0x8,t[_0x38a3cb(0x34c)])],k);const de=()=>{let _0x3f72f7=[],_0x20917e=!0x1;return _0x5d8980=>{const _0xf7e43d=_0x121f;_0x3f72f7[_0xf7e43d(0x159)](_0x5d8980),_0x20917e||(_0x20917e=!0x0,setTimeout(()=>{const _0x4c411d=_0xf7e43d;_0x3f72f7[_0x4c411d(0x1b2)](_0x1def8a=>_0x1def8a()),_0x3f72f7=[],_0x20917e=!0x1;}));};};let A=class extends t[_0x38a3cb(0x3b0)]{get['cursorInfo'](){const _0x2542bf=_0x38a3cb;return this['_cursorInfo$'][_0x2542bf(0x202)]();}get[_0x38a3cb(0x362)](){const _0x225cc8=_0x38a3cb;return this[_0x225cc8(0x1db)]['getValue']();}constructor(_0x508fe0,_0x1adf15,_0x3f6dec,_0x2d5fa3,_0xc89d7b,_0x4ef1b5,_0x322ee6,_0x11c37d){const _0x4906bc=_0x38a3cb;super(),this[_0x4906bc(0x2fa)]=_0x508fe0,this['_session']=_0x1adf15,this['_injector']=_0x3f6dec,this[_0x4906bc(0x3be)]=_0x2d5fa3,this[_0x4906bc(0x1e6)]=_0xc89d7b,this[_0x4906bc(0x273)]=_0x4ef1b5,this[_0x4906bc(0x3f2)]=_0x322ee6,this['_refRangeService']=_0x11c37d,b(this,'_online',!0x1),b(this,'_init',!0x1),b(this,'_cursorInfo$',new r[(_0x4906bc(0x1a0))](new Map())),b(this,_0x4906bc(0x1cf),this['_cursorInfo$'][_0x4906bc(0x234)]()),b(this,_0x4906bc(0x1db),new r[(_0x4906bc(0x1a0))]([])),b(this,_0x4906bc(0x320),this[_0x4906bc(0x1db)]['pipe']((0x0,r[_0x4906bc(0x14e)])(0x12c))),b(this,_0x4906bc(0x10a),(0x0,t[_0x4906bc(0x36b)])((_0x42038c,_0x974c2e)=>{const _0x5a3cab=_0x4906bc;let _0x17cf09={'eventID':l[_0x5a3cab(0x26d)][_0x5a3cab(0x23f)],'data':{'unitID':this['unitID'],'memberID':this[_0x5a3cab(0x151)][_0x5a3cab(0x210)](),'selection':(0x0,h[_0x5a3cab(0x2ac)])(_0x42038c,_0x974c2e['range'])}};this[_0x5a3cab(0x151)][_0x5a3cab(0x1b8)](_0x17cf09,this[_0x5a3cab(0x2fa)]);},0x64));}[_0x38a3cb(0x15a)](){const _0x5e6adc=_0x38a3cb;super[_0x5e6adc(0x15a)](),this[_0x5e6adc(0x292)][_0x5e6adc(0x1af)](new Map()),this[_0x5e6adc(0x292)][_0x5e6adc(0x240)](),this[_0x5e6adc(0x1db)]['next']([]),this[_0x5e6adc(0x1db)][_0x5e6adc(0x240)]();}['init'](){const _0x5e8bdd=_0x38a3cb;this['_init']||(this[_0x5e8bdd(0x119)]=!0x0,this['_session'][_0x5e8bdd(0x1cc)][_0x5e8bdd(0x263)]((0x0,r['takeUntil'])(this['dispose$']))['subscribe'](_0x507f54=>{const _0x593f6c=_0x5e8bdd;_0x507f54===e[_0x593f6c(0x147)][_0x593f6c(0x36f)]?this[_0x593f6c(0x2a1)]():this[_0x593f6c(0x133)]();}),this[_0x5e8bdd(0x151)]['event$']['pipe']((0x0,r[_0x5e8bdd(0x1c6)])(this[_0x5e8bdd(0x20a)]))[_0x5e8bdd(0x329)](_0x59ef84=>{const _0x525f8d=_0x5e8bdd;let _0x3edb2a=_0x59ef84['eventID'];_0x3edb2a===l[_0x525f8d(0x26d)][_0x525f8d(0x23f)]&&this[_0x525f8d(0x17a)](_0x59ef84),_0x3edb2a===l['CollaborationEvent'][_0x525f8d(0x26a)]&&this['_onCursorDelete'](_0x59ef84);}),this['_onRefRangeChange'](),this[_0x5e8bdd(0x166)](this['_commandService'][_0x5e8bdd(0x17d)](_0x58cf95=>{const _0x26a145=_0x5e8bdd;if(this['_online']&&_0x58cf95['id']===g[_0x26a145(0x402)]['id']&&_0x58cf95[_0x26a145(0x1b4)][_0x26a145(0x2ec)]===this[_0x26a145(0x2fa)]){let _0xa63e1d=_0x58cf95['params'];this[_0x26a145(0x10a)](_0xa63e1d[_0x26a145(0x2d7)],_0xa63e1d['selections'][0x0]);}})));}[_0x38a3cb(0x17a)](_0x3b8a9c){const _0x5f1639=_0x38a3cb;var _0x17f7ee;let {memberID:_0x3a1d8b,selection:_0x944c1b}=_0x3b8a9c[_0x5f1639(0x256)],{sheetName:_0x58537c,range:_0x40bece}=(0x0,h[_0x5f1639(0x174)])(_0x944c1b),_0x26c363={'name':((_0x17f7ee=this[_0x5f1639(0x1e6)][_0x5f1639(0x208)](this[_0x5f1639(0x2fa)],_0x3a1d8b))==null?void 0x0:_0x17f7ee[_0x5f1639(0x3c8)])??'Unknown\x20user','range':this[_0x5f1639(0x108)](_0x58537c,_0x40bece),'sheetID':_0x58537c,'color':this[_0x5f1639(0x3be)][_0x5f1639(0x321)](_0x3a1d8b),'selection':_0x944c1b},_0x2ec615=this[_0x5f1639(0x3aa)];_0x2ec615[_0x5f1639(0x3b8)](_0x3a1d8b,_0x26c363),this[_0x5f1639(0x292)][_0x5f1639(0x1af)](_0x2ec615);}['_onCursorDelete'](_0x1b708d){const _0x533cff=_0x38a3cb;let {memberID:_0x2e3009}=_0x1b708d[_0x533cff(0x256)],_0x4553bd=this[_0x533cff(0x3aa)];_0x4553bd[_0x533cff(0x3fb)](_0x2e3009),this[_0x533cff(0x292)]['next'](_0x4553bd);}[_0x38a3cb(0x108)](_0x83bc7e,_0x2ac440){const _0x27db27=_0x38a3cb;var _0x13948b;let _0x12b43d=(_0x13948b=this[_0x27db27(0x273)][_0x27db27(0x1ad)](this[_0x27db27(0x2fa)],t[_0x27db27(0x2f8)]['UNIVER_SHEET']))==null||(_0x13948b=_0x13948b[_0x27db27(0x102)](_0x83bc7e))==null?void 0x0:_0x13948b[_0x27db27(0x315)]();return(_0x12b43d==null?void 0x0:_0x12b43d[_0x27db27(0x168)](_0x3611e9=>t[_0x27db27(0x2c2)][_0x27db27(0x20e)](_0x3611e9,_0x2ac440)))||_0x2ac440;}[_0x38a3cb(0x1d8)](){const _0x37f812=_0x38a3cb;let _0x47a9de=new t['DisposableCollection'](),_0x118f55=de(),_0x225676=()=>{const _0x305882=_0x121f;_0x47a9de[_0x305882(0x15a)]();let _0x206bf4=(_0x32a56e,_0x5f209e,_0xaa8bf4,_0x323bc5)=>{const _0x39349c=_0x305882;let _0x4209de=[];switch(_0x32a56e['id']){case g['EffectRefRangId'][_0x39349c(0x395)]:_0x4209de=(0x0,g[_0x39349c(0x372)])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)]['DeleteRangeMoveUpCommandId']:_0x4209de=(0x0,g['handleDeleteRangeMoveUp'])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)][_0x39349c(0x16b)]:_0x4209de=(0x0,g['handleInsertCol'])(_0x32a56e,_0x323bc5);break;case g['EffectRefRangId'][_0x39349c(0x3d8)]:_0x4209de=(0x0,g[_0x39349c(0x16f)])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)][_0x39349c(0x1cb)]:_0x4209de=(0x0,g[_0x39349c(0x2ee)])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)][_0x39349c(0x271)]:_0x4209de=(0x0,g[_0x39349c(0x156)])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)][_0x39349c(0x139)]:_0x4209de=(0x0,g['handleMoveRange'])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)][_0x39349c(0x2f3)]:_0x4209de=(0x0,g[_0x39349c(0x316)])(_0x32a56e,_0x323bc5);break;case g['EffectRefRangId'][_0x39349c(0x125)]:_0x4209de=(0x0,g['handleIRemoveRow'])(_0x32a56e,_0x323bc5);}let _0x5c8101=(0x0,g['runRefRangeMutations'])(_0x4209de,_0x323bc5),_0x505a80=this[_0x39349c(0x3aa)][_0x39349c(0x255)](_0x5f209e);if(_0x505a80&&_0x5c8101){let _0x2668d3={..._0x505a80,'range':_0x5c8101};this['cursorInfo'][_0x39349c(0x3b8)](_0x5f209e,_0x2668d3),_0x118f55(()=>{const _0x51ff75=_0x39349c;let _0x54828e=this[_0x51ff75(0x11f)][_0x51ff75(0x259)](_0x5c8101,_0x145204=>(_0x54828e[_0x51ff75(0x15a)](),_0x206bf4(_0x145204,_0x5f209e,_0xaa8bf4,_0x5c8101)));_0x47a9de[_0x51ff75(0x354)](_0x54828e);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x305882(0x1b2)]((_0x1a4435,_0x55faf7)=>{const _0x1637b1=_0x305882;let {range:_0x14753a,sheetID:_0x11a2cb}=_0x1a4435,_0x4c130e=this[_0x1637b1(0x11f)][_0x1637b1(0x259)](_0x14753a,_0x1e23e4=>(_0x4c130e[_0x1637b1(0x15a)](),_0x206bf4(_0x1e23e4,_0x55faf7,_0x11a2cb,_0x14753a)));_0x47a9de[_0x1637b1(0x354)](_0x4c130e);});};this['disposeWithMe']((0x0,t[_0x37f812(0x3f8)])(this['_cursorInfo$'][_0x37f812(0x329)](()=>{_0x225676();})));}[_0x38a3cb(0x2a1)](){const _0x56ec2d=_0x38a3cb;var _0x3d9650,_0x682cc7;if(this[_0x56ec2d(0x1fe)]=!0x0,((_0x3d9650=this[_0x56ec2d(0x273)][_0x56ec2d(0x37b)]())==null?void 0x0:_0x3d9650['getUnitId']())!==this['unitID'])return;let _0x53eace=(_0x682cc7=this[_0x56ec2d(0x3c6)][_0x56ec2d(0x255)](g[_0x56ec2d(0x32a)])[_0x56ec2d(0x39a)]())==null?void 0x0:_0x682cc7[0x0],_0x4f0cce=this['_univerInstanceService'][_0x56ec2d(0x2d4)](t['UniverInstanceType'][_0x56ec2d(0x310)])['getActiveSheet']();_0x53eace&&_0x4f0cce&&this[_0x56ec2d(0x10a)](_0x4f0cce[_0x56ec2d(0x170)](),_0x53eace);}[_0x38a3cb(0x133)](){const _0xfea574=_0x38a3cb;this[_0xfea574(0x1fe)]=!0x1;}};A=S([x(0x2,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x3,(0x0,t[_0x38a3cb(0x361)])(D)),x(0x4,(0x0,t[_0x38a3cb(0x361)])(e[_0x38a3cb(0x22c)])),x(0x5,t[_0x38a3cb(0x339)]),x(0x6,t[_0x38a3cb(0x34c)]),x(0x7,(0x0,t[_0x38a3cb(0x361)])(g[_0x38a3cb(0x2e7)]))],A);let j=class extends t[_0x38a3cb(0x3b0)]{constructor(_0x3b0706,_0x25a0dd,_0x5f0dae){const _0x5ef461=_0x38a3cb;super(),this['_univerInstanceService']=_0x3b0706,this[_0x5ef461(0x3c6)]=_0x25a0dd,this[_0x5ef461(0x212)]=_0x5f0dae,b(this,_0x5ef461(0x1b6),new Map()),b(this,_0x5ef461(0x12a),new r['Subject']()),this['_init']();}[_0x38a3cb(0x15a)](){const _0x37455b=_0x38a3cb;super['dispose'](),this[_0x37455b(0x12a)]['complete'](),this[_0x37455b(0x1b6)][_0x37455b(0x1b2)](_0x45a131=>_0x45a131[_0x37455b(0x15a)]());}[_0x38a3cb(0x3ef)](_0x210ef7){const _0x2fbf67=_0x38a3cb;let _0x1bf434=this[_0x2fbf67(0x1b6)][_0x2fbf67(0x255)](_0x210ef7);return _0x1bf434?_0x1bf434[_0x2fbf67(0x1cf)]:this[_0x2fbf67(0x12a)][_0x2fbf67(0x263)]((0x0,r[_0x2fbf67(0x193)])(_0x4c54cd=>_0x4c54cd[_0x2fbf67(0x2fa)]===_0x210ef7),(0x0,r[_0x2fbf67(0x220)])(_0x396d64=>_0x396d64[_0x2fbf67(0x1cf)]));}[_0x38a3cb(0x119)](){const _0xf25de7=_0x38a3cb;this[_0xf25de7(0x273)][_0xf25de7(0x2fb)](t[_0xf25de7(0x2f8)]['UNIVER_SHEET'])[_0xf25de7(0x263)]((0x0,r[_0xf25de7(0x1c6)])(this['dispose$']))['subscribe'](async _0x3fd157=>{const _0x14fed9=_0xf25de7;let _0x515adb=_0x3fd157[_0x14fed9(0x3c1)][_0x14fed9(0x14f)](),_0x23d00c=await this[_0x14fed9(0x1c7)](_0x515adb);this[_0x14fed9(0x12a)]['next'](_0x23d00c),this['_entities'][_0x14fed9(0x3b8)](_0x515adb,_0x23d00c);}),this[_0xf25de7(0x273)][_0xf25de7(0x2fb)](t['UniverInstanceType'][_0xf25de7(0x3f1)])[_0xf25de7(0x263)]((0x0,r[_0xf25de7(0x1c6)])(this[_0xf25de7(0x20a)]))[_0xf25de7(0x263)]((0x0,r[_0xf25de7(0x193)])(_0x2c3fdf=>!_0x2c3fdf[_0xf25de7(0x3c1)][_0xf25de7(0x14f)]()[_0xf25de7(0x2a0)]('__')))[_0xf25de7(0x329)](async _0x14d9b1=>{const _0x187f32=_0xf25de7;let {unit:_0x563f6a}=_0x14d9b1,_0x570c72=_0x563f6a['getUnitId'](),_0x3cae86=await this[_0x187f32(0x1be)](_0x570c72);this['_entityInit$'][_0x187f32(0x1af)](_0x3cae86),this[_0x187f32(0x1b6)][_0x187f32(0x3b8)](_0x570c72,_0x3cae86);}),(0x0,r[_0xf25de7(0x20c)])(this[_0xf25de7(0x273)][_0xf25de7(0x384)](t[_0xf25de7(0x2f8)]['UNIVER_DOC']),this[_0xf25de7(0x273)][_0xf25de7(0x384)](t[_0xf25de7(0x2f8)]['UNIVER_SHEET']))[_0xf25de7(0x263)]((0x0,r[_0xf25de7(0x1c6)])(this[_0xf25de7(0x20a)]))[_0xf25de7(0x329)](_0x12fcf4=>{const _0x5dc2f1=_0xf25de7;let _0xea9fba=_0x12fcf4[_0x5dc2f1(0x14f)](),_0x6a6492=this[_0x5dc2f1(0x1b6)][_0x5dc2f1(0x255)](_0xea9fba);_0x6a6492&&(_0x6a6492[_0x5dc2f1(0x15a)](),this[_0x5dc2f1(0x1b6)][_0x5dc2f1(0x3fb)](_0xea9fba));});}async[_0x38a3cb(0x1c7)](_0x459011){const _0x446ccd=_0x38a3cb;let _0x47869b=await this[_0x446ccd(0x212)][_0x446ccd(0x172)](_0x459011),_0x325d4f=this[_0x446ccd(0x3c6)][_0x446ccd(0x2b1)](A,_0x459011,_0x47869b);return _0x325d4f[_0x446ccd(0x134)](),_0x325d4f;}async['_startDocCollabCursor'](_0x39d11b){const _0x1b18b8=_0x38a3cb;let _0x2aaeb1=await this[_0x1b18b8(0x212)][_0x1b18b8(0x172)](_0x39d11b),_0x3971b2=this['_injector']['createInstance'](k,_0x39d11b,_0x2aaeb1);return _0x3971b2[_0x1b18b8(0x134)](),_0x3971b2;}};j=S([x(0x0,t[_0x38a3cb(0x339)]),x(0x1,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x2,(0x0,t[_0x38a3cb(0x361)])(e['CollaborationSessionService']))],j);function fe(_0x2f52d0,_0x29de5b){const _0x8061f0=_0x38a3cb;_0x2f52d0['save'](),_0x2f52d0[_0x8061f0(0x1bb)]=_0x8061f0(0x1ca);let _0x3ab8ec=_0x2f52d0[_0x8061f0(0x1a2)](_0x29de5b)[_0x8061f0(0x13f)];return _0x2f52d0[_0x8061f0(0x1ed)](),Math[_0x8061f0(0x3f6)](_0x3ab8ec+0x8,0xc8);}function pe(_0x42cfc8,_0x488f69){const _0x5439fe=_0x38a3cb;let {radius:_0xc90543,width:_0x40b148,height:_0x4b6a27}=_0x488f69;_0xc90543??=0x0,_0x40b148??=0x1e,_0x4b6a27??=0x1e;let _0x220d25=0x0,_0x46bd35=0x0,_0x4069f0=0x0;_0x220d25=_0x46bd35=_0x4069f0=Math[_0x5439fe(0x3f6)](_0xc90543,_0x40b148/0x2,_0x4b6a27/0x2),_0x42cfc8[_0x5439fe(0x328)](),_0x42cfc8[_0x5439fe(0x13b)](_0x220d25,0x0),_0x42cfc8[_0x5439fe(0x283)](_0x40b148-_0x46bd35,0x0),_0x42cfc8[_0x5439fe(0x126)](_0x40b148-_0x46bd35,_0x46bd35,_0x46bd35,Math['PI']*0x3/0x2,0x0,!0x1),_0x42cfc8[_0x5439fe(0x283)](_0x40b148,_0x4b6a27-_0x4069f0),_0x42cfc8[_0x5439fe(0x126)](_0x40b148-_0x4069f0,_0x4b6a27-_0x4069f0,_0x4069f0,0x0,Math['PI']/0x2,!0x1),_0x42cfc8[_0x5439fe(0x283)](0x0,_0x4b6a27),_0x42cfc8['lineTo'](0x0,_0x220d25),_0x42cfc8[_0x5439fe(0x126)](_0x220d25,_0x220d25,_0x220d25,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x42cfc8[_0x5439fe(0x221)](),_0x488f69['fill']&&(_0x42cfc8['save'](),_0x42cfc8[_0x5439fe(0x2c9)]=_0x488f69['fill'],_0x488f69[_0x5439fe(0x1e1)]==='evenodd'?_0x42cfc8['fill'](_0x5439fe(0x296)):_0x42cfc8[_0x5439fe(0x2ab)](),_0x42cfc8['restore']());}var M=class e extends p[_0x38a3cb(0x1a1)]{constructor(_0x4dcd0d,_0x2faaaf){const _0xa810f0=_0x38a3cb;super(_0x4dcd0d,_0x2faaaf),b(this,_0xa810f0(0x30c),void 0x0),b(this,_0xa810f0(0x235),void 0x0),this[_0xa810f0(0x30c)]=_0x2faaaf==null?void 0x0:_0x2faaaf[_0xa810f0(0x30c)],this['text']=_0x2faaaf==null?void 0x0:_0x2faaaf['text'];}static[_0x38a3cb(0x262)](_0x3b901e,_0x4a0ce9){const _0x409395=_0x38a3cb;let {text:_0x4ff479,color:_0x38087f}=_0x4a0ce9;_0x3b901e[_0x409395(0x327)](),_0x3b901e[_0x409395(0x1bb)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x24b31f=_0x3b901e[_0x409395(0x1a2)](_0x4ff479)['width'];if(pe(_0x3b901e,{'height':0x14,'radius':0x4,'width':fe(_0x3b901e,_0x4ff479),'fill':_0x38087f,'evented':!0x1}),_0x3b901e['fillStyle']=_0x409395(0x1c3),_0x24b31f>0xc0){let _0x1fa035='',_0x3481de=0x0;for(let _0x31b2d2 of _0x4ff479){let _0x304fd7=_0x3b901e['measureText'](_0x31b2d2)['width'];if(_0x3481de+_0x304fd7<=0xc0-_0x3b901e['measureText'](_0x409395(0x1a6))[_0x409395(0x13f)])_0x1fa035+=_0x31b2d2,_0x3481de+=_0x304fd7;else{_0x1fa035+=_0x409395(0x1a6);break;}}_0x3b901e[_0x409395(0x2a7)](_0x1fa035,0x4,0xf);}else _0x3b901e[_0x409395(0x2a7)](_0x4ff479,0x4,0xf);_0x3b901e[_0x409395(0x1ed)]();}[_0x38a3cb(0x36a)](_0x371533){const _0x4b8c5b=_0x38a3cb;e[_0x4b8c5b(0x262)](_0x371533,this);}};const N='collab-text-anchor-';var P=class{constructor(_0x170324,_0x24f4e1,_0x874d93,_0x3afdf0){const _0x34ab98=_0x38a3cb;this[_0x34ab98(0x199)]=_0x170324,this[_0x34ab98(0x11d)]=_0x24f4e1,this[_0x34ab98(0x3c0)]=_0x874d93,this[_0x34ab98(0x1e3)]=_0x3afdf0,b(this,_0x34ab98(0x2b0),[]),b(this,_0x34ab98(0xfe),null),b(this,_0x34ab98(0x18d),null),b(this,_0x34ab98(0x39b),null),b(this,_0x34ab98(0x15d),null),b(this,_0x34ab98(0x2df),null),this[_0x34ab98(0x1c2)]();}set[_0x38a3cb(0x401)](_0x210bf0){const _0x5ce728=_0x38a3cb;_0x210bf0?(this[_0x5ce728(0x39b)]&&this['_anchorDot']['hide'](),this[_0x5ce728(0x18d)]&&this[_0x5ce728(0x18d)]['show']()):(this['_anchorDot']&&this[_0x5ce728(0x39b)][_0x5ce728(0x386)](),this[_0x5ce728(0x18d)]&&this[_0x5ce728(0x18d)][_0x5ce728(0x239)]());}[_0x38a3cb(0x15a)](){const _0x295241=_0x38a3cb;for(let _0x566f1e of this[_0x295241(0x2b0)])_0x566f1e[_0x295241(0x15a)]();this[_0x295241(0x18d)]&&this[_0x295241(0x18d)][_0x295241(0x15a)](),this['_anchorDot']&&this[_0x295241(0x39b)][_0x295241(0x15a)](),this['_anchor']&&this[_0x295241(0xfe)][_0x295241(0x15a)](),this[_0x295241(0x2df)]&&this[_0x295241(0x2df)]();}[_0x38a3cb(0x1c2)](){const _0x4da488=_0x38a3cb;let {_docSkeleton:_0xcf6cca,_document:_0x47fbe5}=this,{color:_0x137b65,name:_0x1fe1be,ranges:_0x10dfb7}=this['_cursor'],_0x1dbdc9=_0x47fbe5['getOffsetConfig'](),{docsLeft:_0x525a7b,docsTop:_0x559d82}=_0x1dbdc9,_0x5c0d98=new f['NodePositionConvertToCursor'](_0x1dbdc9,_0xcf6cca);for(let {startOffset:_0x223ff4,endOffset:_0x11cb0a,rangeType:_0x11a853,segmentId:_0x1daca4,segmentPage:_0x1cf97c,collapsed:_0x4a9397,isActive:_0x3697b0}of _0x10dfb7){let _0x251a78=_0xcf6cca[_0x4da488(0x114)](_0x223ff4,!0x0,_0x1daca4,_0x1cf97c),_0x5b9040=_0xcf6cca[_0x4da488(0x114)](_0x11cb0a,!0x0,_0x1daca4,_0x1cf97c);_0x5b9040??=_0xcf6cca[_0x4da488(0x114)](_0x11cb0a-0x1,!0x1,_0x1daca4,_0x1cf97c);let _0x1222d5=me(_0x251a78,_0x5b9040);if(_0x3697b0&&_0x1222d5[_0x4da488(0x227)]){let {contentBoxPointGroup:_0x8fd4bf}=_0x5c0d98['getRangePointData'](_0x5b9040,_0x5b9040);if(_0x8fd4bf[_0x4da488(0x154)]===0x0)continue;this[_0x4da488(0x124)](_0x137b65,_0x8fd4bf,_0x525a7b,_0x559d82,_0x1fe1be),this['_eventUnsubscribe']=this[_0x4da488(0x2f0)]();}if(_0x251a78&&_0x5b9040){if(_0x11a853===t['DOC_RANGE_TYPE']['RECT']){let {pointGroup:_0x2d9010}=new f[(_0x4da488(0x380))](_0x1dbdc9,_0xcf6cca)[_0x4da488(0x32c)](_0x251a78,_0x5b9040)??{};if(_0x2d9010==null||_0x2d9010['length']===0x0)continue;this[_0x4da488(0x2bf)](_0x137b65,_0x2d9010,_0x525a7b,_0x559d82);}else{if(!_0x4a9397&&_0x1222d5[_0x4da488(0x343)]){let {borderBoxPointGroup:_0x859c65}=_0x5c0d98[_0x4da488(0x32c)](_0x251a78,_0x5b9040);if(_0x859c65['length']===0x0)continue;this[_0x4da488(0x1f4)](_0x137b65,_0x859c65,_0x525a7b,_0x559d82);}}}}}[_0x38a3cb(0x124)](_0x29ef43,_0x4f59d4,_0xd512cd,_0x42d3dc,_0x56e424){const _0x185549=_0x38a3cb;let {left:_0x4c5c3d,top:_0x13740c,height:_0x75bc2c}=this[_0x185549(0x20b)](_0x4f59d4),_0x510052=1.5/this[_0x185549(0x3af)](),_0x5b1ee2=new p['Rect'](N+(0x0,t[_0x185549(0x332)])(0x6),{'left':_0x4c5c3d+_0xd512cd-_0x510052,'top':_0x13740c+_0x42d3dc,'height':_0x75bc2c,'width':1.5,'fill':_0x29ef43||(0x0,p[_0x185549(0x2cf)])(t[_0x185549(0x3f9)]['black'],0x0),'strokeWidth':_0x510052,'stroke':_0x185549(0x265),'evented':!0x0});this[_0x185549(0xfe)]=_0x5b1ee2,this['_scene'][_0x185549(0x17f)](_0x5b1ee2,f['TEXT_RANGE_LAYER_INDEX']);let _0x56045b=new p[(_0x185549(0x232))](N+(0x0,t[_0x185549(0x332)])(0x6),{'left':_0x4c5c3d+_0xd512cd-_0x510052,'top':_0x13740c+_0x42d3dc-0x2,'height':0x4,'width':0x4,'fill':_0x29ef43||(0x0,p[_0x185549(0x2cf)])(t[_0x185549(0x3f9)][_0x185549(0x3e0)],0x0),'strokeWidth':0x0,'stroke':_0x29ef43||(0x0,p[_0x185549(0x2cf)])(t['COLORS']['black'],0x0),'evented':!0x1});this[_0x185549(0x39b)]=_0x56045b,this['_scene'][_0x185549(0x17f)](_0x56045b,f['TEXT_RANGE_LAYER_INDEX']);let _0x38d93c=new M(N+(0x0,t['generateRandomId'])(0x6),{'left':_0x4c5c3d+_0xd512cd-_0x510052,'top':_0x13740c+_0x42d3dc-0x14,'text':_0x56e424,'color':_0x29ef43});this[_0x185549(0x18d)]=_0x38d93c,this[_0x185549(0x11d)]['addObject'](_0x38d93c,f['TEXT_RANGE_LAYER_INDEX']),this[_0x185549(0x401)]=!0x1;}['_handleHover'](){const _0x57867c=_0x38a3cb;let _0x2e0636=this[_0x57867c(0xfe)][_0x57867c(0x153)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x26416b=this['_anchor'][_0x57867c(0x10d)][_0x57867c(0x37f)](()=>{const _0x45c4bc=_0x57867c;this[_0x45c4bc(0x15d)]&&clearTimeout(this['_hideTimer']),this[_0x45c4bc(0x15d)]=setTimeout(()=>{const _0x144e03=_0x45c4bc;this[_0x144e03(0x401)]=!0x1;},0x7d0);});return()=>{const _0x3ba665=_0x57867c;_0x2e0636[_0x3ba665(0x30b)](),_0x26416b[_0x3ba665(0x30b)]();};}['_drawTextRange'](_0x5e9c03,_0x3a8514,_0x2c58b2,_0x5a3aa1){const _0x9473c5=_0x38a3cb;let _0x346318=0.2,_0x4af422=new t['ColorKit'](_0x5e9c03)[_0x9473c5(0x22f)](_0x346318)[_0x9473c5(0x116)](),_0x25820d=new p[(_0x9473c5(0x135))](_0x9473c5(0x3ee)+(0x0,t[_0x9473c5(0x332)])(0x6),{'pointsGroup':_0x3a8514,'fill':_0x4af422||(0x0,p[_0x9473c5(0x2cf)])(t[_0x9473c5(0x3f9)][_0x9473c5(0x3e0)],_0x346318),'left':_0x2c58b2,'top':_0x5a3aa1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x9473c5(0x159)](_0x25820d),this[_0x9473c5(0x11d)]['addObject'](_0x25820d,f[_0x9473c5(0x2dd)]);}[_0x38a3cb(0x2bf)](_0x57bf06,_0xb12918,_0x478706,_0x5583d3){const _0x15a642=_0x38a3cb;let _0x411b92=0.2,_0x3f628c=new t[(_0x15a642(0x149))](_0x57bf06)[_0x15a642(0x22f)](_0x411b92)[_0x15a642(0x116)](),_0x403267=new p[(_0x15a642(0x135))](_0x15a642(0x389)+(0x0,t[_0x15a642(0x332)])(0x6),{'pointsGroup':_0xb12918,'fill':_0x3f628c||(0x0,p[_0x15a642(0x2cf)])(t[_0x15a642(0x3f9)][_0x15a642(0x3e0)],_0x411b92),'left':_0x478706,'top':_0x5583d3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15a642(0x2b0)]['push'](_0x403267),this[_0x15a642(0x11d)][_0x15a642(0x17f)](_0x403267,f['TEXT_RANGE_LAYER_INDEX']);}[_0x38a3cb(0x20b)](_0x5d5ecc){let _0x3b93c3=_0x5d5ecc[0x0],_0x2ac2f5=_0x3b93c3[0x0],_0x3f524c=_0x3b93c3[0x2],{x:_0x596098,y:_0x373f10}=_0x2ac2f5,{x:_0x182331,y:_0x24b080}=_0x3f524c;return{'left':_0x596098,'top':_0x373f10,'width':_0x182331-_0x596098,'height':_0x24b080-_0x373f10};}[_0x38a3cb(0x3af)](){const _0x2d4507=_0x38a3cb;let {scaleX:_0x15d0c4,scaleY:_0x3920d6}=this[_0x2d4507(0x11d)][_0x2d4507(0x338)]();return Math['max'](_0x15d0c4,_0x3920d6);}};function me(_0x2ef809,_0x2d79dc){const _0x11b67e=_0x38a3cb;if(!_0x2d79dc)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x2ef809||_0x2ef809[_0x11b67e(0x1de)]!==_0x2d79dc[_0x11b67e(0x1de)]||(_0x2ef809[_0x11b67e(0x1de)]===p['DocumentSkeletonPageType']['HEADER']||_0x2ef809['pageType']===p['DocumentSkeletonPageType'][_0x11b67e(0x1ab)])&&_0x2ef809[_0x11b67e(0x10f)]!==_0x2d79dc['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x3627df=(0x0,p[_0x11b67e(0x3a7)])(_0x2ef809),_0x5892f2=(0x0,p['getDocumentSkeletonColumnPagePathInfo'])(_0x2d79dc);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x3627df==null||_0x5892f2==null?_0x3627df==null&&_0x5892f2==null:_0x3627df['pageIndex']===_0x5892f2[_0x11b67e(0x385)]&&_0x3627df['columnGroupId']===_0x5892f2['columnGroupId']&&_0x3627df[_0x11b67e(0x38b)]===_0x5892f2['columnIndex']};}let F=class extends t[_0x38a3cb(0x3b0)]{constructor(_0x3774f5,_0x5cf879,_0x220601,_0xfd889d,_0x459127){const _0xe4b77f=_0x38a3cb;super(),this[_0xe4b77f(0x171)]=_0x3774f5,this[_0xe4b77f(0x2f2)]=_0x5cf879,this[_0xe4b77f(0x1fd)]=_0x220601,this[_0xe4b77f(0x3f2)]=_0xfd889d,this[_0xe4b77f(0x278)]=_0x459127,b(this,'_cursorShapes',[]),b(this,_0xe4b77f(0x3e6),[]),this[_0xe4b77f(0x119)]();}[_0x38a3cb(0x119)](){const _0xe3c45b=_0x38a3cb;let _0x12ae43=this['_context']['unitId'],_0x5668e6=this[_0xe3c45b(0x2f2)];this['disposeWithMe']((0x0,r[_0xe3c45b(0x23a)])([this[_0xe3c45b(0x1fd)][_0xe3c45b(0x3ef)](_0x12ae43),this[_0xe3c45b(0x278)][_0xe3c45b(0x10e)]])['pipe']((0x0,i[_0xe3c45b(0x2f1)])(([_0x5b59fb,_0xc20438])=>({'skeleton':_0x5668e6[_0xe3c45b(0x1f3)](),'cursors':[..._0x5b59fb[_0xe3c45b(0x24c)]()][_0xe3c45b(0x2d0)](_0x54e882=>({..._0x54e882,'color':this[_0xe3c45b(0x278)][_0xe3c45b(0x245)](_0x54e882['color'])}))})))['subscribe'](_0x2d1ff2=>{const _0x3b157a=_0xe3c45b;if(this[_0x3b157a(0x1eb)](),_0x2d1ff2){let {skeleton:_0x95263a,cursors:_0x3569ea}=_0x2d1ff2;this[_0x3b157a(0x274)](_0x95263a,_0x3569ea);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x38a3cb(0x274)](_0x21b78e,_0x34091c){const _0xfc0a7=_0x38a3cb;let {scene:_0x5a507a,mainComponent:_0x1ff2f1}=this[_0xfc0a7(0x171)],_0x1871b8=_0x34091c[_0xfc0a7(0x2f1)](_0x4ecb59=>new P(_0x4ecb59,_0x5a507a,_0x21b78e,_0x1ff2f1));this[_0xfc0a7(0x2e0)]=_0x1871b8,this[_0xfc0a7(0x3e6)]=_0x34091c;}[_0x38a3cb(0x351)](){const _0xf7aae0=_0x38a3cb;this[_0xf7aae0(0x1eb)]();let {scene:_0x5ad835,mainComponent:_0x55f7bb}=this[_0xf7aae0(0x171)],_0x5886c8=this[_0xf7aae0(0x2f2)]['getSkeleton'](),_0x8c42f9=this[_0xf7aae0(0x3e6)][_0xf7aae0(0x2f1)](_0x394d6f=>new P(_0x394d6f,_0x5ad835,_0x5886c8,_0x55f7bb));this['_cursorShapes']=_0x8c42f9;}['_removeCollabCursors'](){const _0x154058=_0x38a3cb;this[_0x154058(0x2e0)][_0x154058(0x1b2)](_0xfe04c1=>_0xfe04c1[_0x154058(0x15a)]()),this['_cursorShapes']=[];}[_0x38a3cb(0x284)](){const _0xdad781=_0x38a3cb;let _0x27b609=[f[_0xdad781(0x2a4)]['id']];this[_0xdad781(0x166)](this[_0xdad781(0x3f2)][_0xdad781(0x17d)](_0x18d38e=>{const _0x54f2f1=_0xdad781;_0x27b609[_0x54f2f1(0x1a8)](_0x18d38e['id'])&&_0x18d38e[_0x54f2f1(0x1b4)][_0x54f2f1(0x2ec)]===this[_0x54f2f1(0x171)][_0x54f2f1(0x2ec)]&&this[_0x54f2f1(0x351)]();}));}[_0x38a3cb(0x2c0)](){const _0x50016a=_0x38a3cb;this[_0x50016a(0x166)]((0x0,t[_0x50016a(0x1fb)])(this[_0x50016a(0x171)][_0x50016a(0x38f)][_0x50016a(0x21c)])[_0x50016a(0x263)]((0x0,i['filter'])(_0xc2e3d5=>_0xc2e3d5[_0x50016a(0x378)]===p[_0x50016a(0x289)]['resize']),(0x0,i['throttleTime'])(0x10))[_0x50016a(0x329)](()=>{const _0x3a5b21=_0x50016a;this[_0x3a5b21(0x351)]();}));}};F=S([x(0x1,(0x0,t[_0x38a3cb(0x361)])(d[_0x38a3cb(0x1b0)])),x(0x2,(0x0,t[_0x38a3cb(0x361)])(j)),x(0x3,t[_0x38a3cb(0x34c)]),x(0x4,(0x0,t['Inject'])(t[_0x38a3cb(0x24d)]))],F);var I=class extends p['Shape']{constructor(_0x5283e8,_0xbcded2){const _0xb36048=_0x38a3cb;super(_0x5283e8,_0xbcded2),b(this,_0xb36048(0x3a1),void 0x0),b(this,_0xb36048(0x3a3),!0x1),b(this,_0xb36048(0x146),void 0x0),b(this,_0xb36048(0x3d5),''),b(this,_0xb36048(0x340),_0xb36048(0x1ac)),b(this,'_backgroundColor',void 0x0),b(this,_0xb36048(0x177),void 0x0),b(this,_0xb36048(0x2aa),void 0x0),b(this,_0xb36048(0x37e),0x4),b(this,_0xb36048(0x3a9),void 0x0),b(this,_0xb36048(0x27a),void 0x0),b(this,'_isBlinkVisible',!0x0),b(this,_0xb36048(0x196),0x0),b(this,_0xb36048(0x279),_0xb36048(0x369)),_0xbcded2&&(this['setShapeProps'](_0xbcded2),_0xbcded2[_0xb36048(0x101)]&&(_0xbcded2['highlightSecond']??this[_0xb36048(0x37e)])&&this['_startBlinking'](_0xbcded2['highlightSecond']??this[_0xb36048(0x37e)])),this[_0xb36048(0x153)][_0xb36048(0x37f)](()=>this[_0xb36048(0x155)]({'hovered':!0x0})),this[_0xb36048(0x10d)][_0xb36048(0x37f)](()=>this[_0xb36048(0x155)]({'hovered':!0x1}));}[_0x38a3cb(0x2b3)](_0x1febda){const _0x2ec053=_0x38a3cb;this[_0x2ec053(0x196)]=_0x1febda;}[_0x38a3cb(0x155)](_0x1c1e3a){const _0x624d38=_0x38a3cb;this[_0x624d38(0x3a1)]=_0x1c1e3a[_0x624d38(0x30c)]??this[_0x624d38(0x3a1)],this[_0x624d38(0x3a3)]=_0x1c1e3a[_0x624d38(0x33c)]??this[_0x624d38(0x3a3)],this['_range']=_0x1c1e3a['range']??this[_0x624d38(0x146)],this['_name']=_0x1c1e3a[_0x624d38(0x3c8)]??this[_0x624d38(0x3d5)],this[_0x624d38(0x340)]=_0x1c1e3a[_0x624d38(0x38e)]??this['_labelPosition'],this['_backgroundColor']=_0x1c1e3a[_0x624d38(0x2a3)]??this[_0x624d38(0x178)],this[_0x624d38(0x177)]=_0x1c1e3a[_0x624d38(0x1fc)]??this[_0x624d38(0x177)],this[_0x624d38(0x279)]=_0x1c1e3a[_0x624d38(0x297)]??this[_0x624d38(0x279)],_0x1c1e3a[_0x624d38(0x3ba)]!==void 0x0&&(this[_0x624d38(0x37e)]=_0x1c1e3a[_0x624d38(0x3ba)]),_0x1c1e3a[_0x624d38(0x101)]!==void 0x0&&(this['_highlight']=_0x1c1e3a[_0x624d38(0x101)]),_0x1c1e3a['offsetY']!==void 0x0&&(this[_0x624d38(0x196)]=_0x1c1e3a[_0x624d38(0x312)]),this[_0x624d38(0x140)]({'width':_0x1c1e3a[_0x624d38(0x13f)],'height':_0x1c1e3a[_0x624d38(0x267)]});}[_0x38a3cb(0x29a)](_0x1ce281){const _0x43b8ee=_0x38a3cb;let {row:_0x537157,column:_0x4955f6}=_0x1ce281;_0x537157>=this[_0x43b8ee(0x146)][_0x43b8ee(0x28b)]&&_0x537157<=this[_0x43b8ee(0x146)][_0x43b8ee(0x26c)]&&_0x4955f6>=this[_0x43b8ee(0x146)][_0x43b8ee(0x29e)]&&_0x4955f6<=this[_0x43b8ee(0x146)][_0x43b8ee(0x20d)]?this[_0x43b8ee(0x155)]({'hovered':!0x0}):this[_0x43b8ee(0x155)]({'hovered':!0x1});}[_0x38a3cb(0x3dd)](_0xe76c50){const _0x44ba8a=_0x38a3cb;this[_0x44ba8a(0x326)](),this['_isBlinkVisible']=!0x0,this['_blinkIntervalTimer']=window[_0x44ba8a(0x2e5)](()=>{const _0xf569cd=_0x44ba8a;this[_0xf569cd(0x388)]=!this[_0xf569cd(0x388)],this['makeDirty'](!0x0);},0x1f4),this[_0x44ba8a(0x3a9)]=window['setTimeout'](()=>{const _0x484256=_0x44ba8a;this[_0x484256(0x326)](),this[_0x484256(0x388)]=!0x0,this[_0x484256(0x1f2)](!0x0);},_0xe76c50*0x3e8);}['_stopBlinking'](){const _0x5cfeaa=_0x38a3cb;this['_blinkIntervalTimer']&&=(window[_0x5cfeaa(0x2b8)](this[_0x5cfeaa(0x27a)]),void 0x0),this[_0x5cfeaa(0x3a9)]&&=(window['clearTimeout'](this[_0x5cfeaa(0x3a9)]),void 0x0);}[_0x38a3cb(0x233)](_0x42ff1b){return!0x1;}[_0x38a3cb(0x15a)](){const _0x22f288=_0x38a3cb;this[_0x22f288(0x326)](),super[_0x22f288(0x15a)]();}[_0x38a3cb(0x36a)](_0x57f0e1){const _0x2f557c=_0x38a3cb;let _0x57dcc9=this['_color'],_0x4eab0f=this[_0x2f557c(0x178)];if(this[_0x2f557c(0x2aa)]&&!this['_isBlinkVisible']&&(_0x57dcc9=this[_0x2f557c(0x399)](this[_0x2f557c(0x3a1)]),_0x4eab0f=this['_backgroundColor']?this[_0x2f557c(0x399)](this['_backgroundColor']):void 0x0),p[_0x2f557c(0x232)][_0x2f557c(0x262)](_0x57f0e1,{'width':this[_0x2f557c(0x13f)],'height':this[_0x2f557c(0x267)],'strokeWidth':this[_0x2f557c(0x286)]||1.5,'stroke':_0x57dcc9,'evented':!0x1,'fill':_0x4eab0f}),this[_0x2f557c(0x3a3)]||this[_0x2f557c(0x177)]){_0x57f0e1[_0x2f557c(0x327)]();let _0x373e4e=this[_0x2f557c(0x279)]==='left'?-fe(_0x57f0e1,this['_name']):this[_0x2f557c(0x13f)];_0x57f0e1[_0x2f557c(0x26e)](0x1,0x0,0x0,0x1,_0x373e4e,(this[_0x2f557c(0x340)]==='bottom'?0x0:-0x14)+(this['_offsetY']??0x0)),M[_0x2f557c(0x262)](_0x57f0e1,{'text':this['_name'],'color':_0x57dcc9}),_0x57f0e1['restore']();}}[_0x38a3cb(0x399)](_0x41a9e9){const _0xd65657=_0x38a3cb;return _0x41a9e9[_0xd65657(0x2a0)]('#')?_0xd65657(0x12c)+Number[_0xd65657(0x257)](_0x41a9e9[_0xd65657(0x21d)](0x1,0x3),0x10)+',\x20'+Number[_0xd65657(0x257)](_0x41a9e9[_0xd65657(0x21d)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x41a9e9[_0xd65657(0x21d)](0x5,0x7),0x10)+_0xd65657(0x13c):_0x41a9e9[_0xd65657(0x2a0)](_0xd65657(0x3b4))?_0x41a9e9['replace'](/[\d.]+\)$/g,_0xd65657(0x39f)):_0x41a9e9[_0xd65657(0x2a0)]('rgb')?_0x41a9e9[_0xd65657(0x313)]('rgb',_0xd65657(0x3b4))['replace'](')',_0xd65657(0x13c)):_0x41a9e9;}};let L=class extends t[_0x38a3cb(0x3b0)]{constructor(_0x431061,_0xfc0093,_0x32cba7,_0x271360){const _0x30e91c=_0x38a3cb;super(),this['_context']=_0x431061,this[_0x30e91c(0x12e)]=_0xfc0093,this[_0x30e91c(0x1fd)]=_0x32cba7,this[_0x30e91c(0x278)]=_0x271360,b(this,_0x30e91c(0x3e6),new Set()),b(this,_0x30e91c(0x2fe),null),b(this,_0x30e91c(0x157),null),this['_init']();}[_0x38a3cb(0x119)](){const _0x3f2d1a=_0x38a3cb;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe']((0x0,i[_0x3f2d1a(0x1c6)])(this['dispose$']),(0x0,i[_0x3f2d1a(0x220)])(_0x53fadb=>{const _0x3e5ebf=_0x3f2d1a;if(_0x53fadb){let _0x385c08=_0x53fadb[_0x3e5ebf(0x3d0)];return(0x0,r[_0x3e5ebf(0x23a)])(this[_0x3e5ebf(0x1fd)][_0x3e5ebf(0x3ef)](this[_0x3e5ebf(0x171)][_0x3e5ebf(0x2ec)]),this['_themeService']['currentTheme$'])[_0x3e5ebf(0x263)]((0x0,i[_0x3e5ebf(0x2f1)])(([_0x1e305c,_0x319b83])=>{const _0x2b4854=_0x3e5ebf;let _0x58a78e=new Map();return _0x1e305c[_0x2b4854(0x1b2)]((_0x1fb053,_0xb7f64d)=>{const _0x3cd3dc=_0x2b4854;if(_0x1fb053[_0x3cd3dc(0x15e)]===_0x385c08){let _0x4e201a={..._0x1fb053};_0x4e201a[_0x3cd3dc(0x30c)]=this[_0x3cd3dc(0x278)][_0x3cd3dc(0x245)](_0x1fb053[_0x3cd3dc(0x30c)]),_0x58a78e[_0x3cd3dc(0x3b8)](_0xb7f64d,_0x4e201a);}}),{'skeleton':_0x53fadb,'cursors':_0x58a78e};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x45f3a2,cursors:_0x51ced1})=>{const _0x5074c0=_0x3f2d1a;this[_0x5074c0(0x1eb)](),_0x45f3a2&&this[_0x5074c0(0x274)](_0x45f3a2,_0x51ced1);}),this[_0x3f2d1a(0x166)](this[_0x3f2d1a(0x12e)][_0x3f2d1a(0x142)][_0x3f2d1a(0x263)]((0x0,i['takeUntil'])(this[_0x3f2d1a(0x20a)]))[_0x3f2d1a(0x329)](_0xd615ab=>{const _0x5767f3=_0x3f2d1a;var _0x5c7d98;if(_0xd615ab==null)return;(_0x5c7d98=this[_0x5767f3(0x157)])==null||_0x5c7d98['unsubscribe'](),this[_0x5767f3(0x157)]=null;let {skeleton:_0x29e130}=_0xd615ab,{scene:_0x1831c6}=this[_0x5767f3(0x171)];this[_0x5767f3(0x157)]=_0x1831c6[_0x5767f3(0x3a5)][_0x5767f3(0x37f)]((0x0,t[_0x5767f3(0x36b)])(_0x283302=>{const _0x3a84ec=_0x5767f3;var _0x203929,_0x298735;let {offsetX:_0x31f065,offsetY:_0x5137d1}=_0x283302,{x:_0x4f6846,y:_0x723215}=_0x1831c6[_0x3a84ec(0x17e)](p[_0x3a84ec(0x373)]['FromArray']([_0x31f065,_0x5137d1])),{scaleX:_0x441f89,scaleY:_0x1225a6}=_0x1831c6['getAncestorScale'](),_0x1315dd=_0x1831c6[_0x3a84ec(0x31c)](p[_0x3a84ec(0x305)][_0x3a84ec(0x211)]),_0x1fe407=_0x1831c6[_0x3a84ec(0x11a)](p[_0x3a84ec(0x373)][_0x3a84ec(0x184)]([_0x4f6846,_0x723215]),_0x1315dd),_0x213666=_0x29e130[_0x3a84ec(0x397)](_0x31f065,_0x5137d1,_0x441f89,_0x1225a6,_0x1fe407);(((_0x203929=this[_0x3a84ec(0x2fe)])==null?void 0x0:_0x203929[_0x3a84ec(0x34a)])!==_0x213666['column']||((_0x298735=this[_0x3a84ec(0x2fe)])==null?void 0x0:_0x298735[_0x3a84ec(0x1d0)])!==_0x213666[_0x3a84ec(0x1d0)])&&this[_0x3a84ec(0x3e6)][_0x3a84ec(0x1b2)](_0x8eea0f=>{const _0x18fc46=_0x3a84ec;_0x8eea0f[_0x18fc46(0x29a)](_0x213666);});},0x64));})),this['disposeWithMe']((0x0,t['toDisposable'])(()=>{const _0x2dd299=_0x3f2d1a;var _0x235d45;(_0x235d45=this[_0x2dd299(0x157)])==null||_0x235d45[_0x2dd299(0x30b)](),this['_pointerMoveDisposable']=null;}));}[_0x38a3cb(0x274)](_0x11ea3b,_0x4d31ee){const _0x4049b2=_0x38a3cb;let _0x2d846d=this[_0x4049b2(0x12e)][_0x4049b2(0x3bf)]();if(!_0x2d846d)return;let _0x555634=this[_0x4049b2(0x3cb)]();if(!_0x555634)return;this[_0x4049b2(0x3e6)]['forEach'](_0x145318=>{const _0x41925c=_0x4049b2;_0x145318[_0x41925c(0x1f2)]();});let {scene:_0x1f6cf9}=_0x555634,_0x3b0246=he(Array['from'](_0x4d31ee['values']()))['map'](_0x48d21a=>{const _0x4491da=_0x4049b2;let {color:_0x3cd185,range:_0x3ea553,name:_0x5eaf1a,selection:_0x283fc4,sheetID:_0x437b0b}=_0x48d21a,{startColumn:_0x45733a,startRow:_0x59488a,endColumn:_0x398b7f,endRow:_0x1d24ec}=_0x3ea553,_0x21a651=(0x0,_[_0x4491da(0x309)])(_0x59488a,_0x45733a,_0x1f6cf9,_0x2d846d),_0x147fe6=(0x0,_[_0x4491da(0x309)])(_0x1d24ec,_0x398b7f,_0x1f6cf9,_0x2d846d),{columnHeaderHeightAndMarginTop:_0x4d1b31}=_0x2d846d,{startX:_0x177de0,startY:_0x50be90}=_0x21a651,{endX:_0x74b326,endY:_0x3d5bd2}=_0x147fe6,_0x48c55d=_0x74b326-_0x177de0,_0x33ef5f=_0x3d5bd2-_0x50be90;return new I(_0x5eaf1a,{'labelPosition':_0x50be90-_0x4d1b31>=0x14?_0x4491da(0x1ac):_0x4491da(0x13a),'sheetID':_0x437b0b,'range':_0x3ea553,'color':_0x3cd185,'name':_0x5eaf1a,'selection':_0x283fc4,'left':_0x177de0,'top':_0x50be90,'width':_0x48c55d,'height':_0x33ef5f,'evented':!0x1,'zIndex':0x1389});});_0x1f6cf9[_0x4049b2(0x2bc)](_0x3b0246,0x1),this[_0x4049b2(0x3e6)]=new Set(_0x3b0246);}['_removeCollabCursors'](){const _0x3dc29b=_0x38a3cb;var _0x3314dc;(_0x3314dc=this[_0x3dc29b(0x3e6)])==null||_0x3314dc[_0x3dc29b(0x1b2)](_0x418542=>_0x418542[_0x3dc29b(0x15a)]());}[_0x38a3cb(0x3cb)](){const _0xddc9d8=_0x38a3cb;return(0x0,_['getSheetObject'])(this[_0xddc9d8(0x171)][_0xddc9d8(0x3c1)],this[_0xddc9d8(0x171)]);}};L=S([x(0x1,(0x0,t['Inject'])(_['SheetSkeletonManagerService'])),x(0x2,(0x0,t['Inject'])(j)),x(0x3,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x24d)]))],L);function he(_0x5e7a64){const _0x13f1d0=_0x38a3cb;let _0x267f66=new Map();return _0x5e7a64[_0x13f1d0(0x1b2)](_0x51c32a=>{const _0x598b00=_0x13f1d0;if(_0x267f66[_0x598b00(0x3ab)](_0x51c32a[_0x598b00(0x19d)])){let _0x48c519=_0x267f66[_0x598b00(0x255)](_0x51c32a[_0x598b00(0x19d)]);_0x48c519[_0x598b00(0x3c8)]+=',\x20'+_0x51c32a[_0x598b00(0x3c8)];}else _0x267f66[_0x598b00(0x3b8)](_0x51c32a['selection'],_0x51c32a);}),Array['from'](_0x267f66[_0x13f1d0(0x24c)]());}function R(_0x973b56){const _0x23e5fd=_0x38a3cb;return typeof _0x973b56==_0x23e5fd(0x2cd)&&!!_0x973b56;}function ge(_0x4f4d8f){const _0x6bbd5e=_0x38a3cb;return _0x4f4d8f[_0x6bbd5e(0x27f)]===l[_0x6bbd5e(0x26d)]['UPDATE_CURSOR']&&_0x6bbd5e(0x256)in _0x4f4d8f&&R(_0x4f4d8f[_0x6bbd5e(0x256)])&&typeof _0x4f4d8f['data'][_0x6bbd5e(0x3fe)]==_0x6bbd5e(0x28f)&&typeof _0x4f4d8f['data'][_0x6bbd5e(0x19d)]=='string';}function _e(_0xd033bf){const _0x4b1ae8=_0x38a3cb;return _0xd033bf['eventID']===l['CollaborationEvent']['USERS_LEAVE']&&'data'in _0xd033bf&&R(_0xd033bf[_0x4b1ae8(0x256)])&&typeof _0xd033bf[_0x4b1ae8(0x256)][_0x4b1ae8(0x3fe)]==_0x4b1ae8(0x28f);}function _0x4b94(){const _0x45cfc7=['endRow','CollaborationEvent','transform','_pendingEntities','application/json','InsertRowCommandId','isInternalEditorID','_univerInstanceService','_updateCollabCursors','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_isDisposed','shareInterval','_themeService','_labelHorizontalPosition','_blinkIntervalTimer','DOC_RANGE_TYPE','jsx','/run/','_clearTimeoutState','eventID','_messageIds','doc.mutation.rich-text-editing','visibilitychange','lineTo','_initCommandExecutedListener','univer-transition-all\x20univer-duration-200','strokeWidth','permission_rejected','Tools','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Unknown\x20user','startRow','_unitOnClients','2990BeEeIv','_heartbeatTimer','string','RECT','Injector','_cursorInfo$','Warning','enableDocumentCollaborationUI','univer-text-orange-500','evenodd','labelHorizontalPosition','_transformPreviousActiveRange','getAllUnitsForType','onMouseMove','enableFrontendLog','post','ticket','startColumn','IRenderManagerService','startsWith','_toggleOnline','static','backgroundColor','SetDocZoomRatioOperation','_transformService','_status$','fillText','getActiveRange','_disposed','_highlight','fill','serializeRangeWithSheet','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_docSyncEditingCollabCursorService','exhaustSavingTask','_shapes','createInstance','_scheduleSaving','setOffsetY','unhandledrejection','online',':backup:','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','clearInterval','warning','totalBlocks','newValue','addObjects','createElement','_online$','_drawRectRange','_initResize','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','Rectangle','RichTextEditingMutation','_removeClearOtherTimer','setConfig','transformMutation','OTHER_CLIENTS_EDITING','timedOut','fillStyle','tooltipKey','\x20-\x20','registerBeforeClose','object','SnapshotLoadingService','getColor','flatMap','getCollabEntity$','collaboration-client-ui.conflict.clearFailed','clearRemotePresences','getCurrentUnitOfType','1003752HoOAme','_docTransformStateCacheService','subUnitId','IBeforeCloseService','wsSessionTicketUrl','syncEditingCollabCursor','transformMutationsWithChangeset','_saveTaskMap','TEXT_RANGE_LAYER_INDEX','refreshLabel','_eventUnsubscribe','_cursorShapes','CollaborationUIEventId','deepClone','Tooltip','3138fXgOVm','setInterval','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RefRangeService','decorate','online$','ISocketService','isEditing','unitId','_onCursorDelete','handleInsertRangeMoveRight','_syncAdapters','_handleHover','map','_docSkeletonManagerService','RemoveColCommandId','toStringTag','fromEvent','univer-text-gray-400','dark:focus:!univer-ring-offset-gray-800','UniverInstanceType','_reloadPage','unitID','getTypeOfUnitAdded$','every','number','_lastPointer','collaboration-client-ui.collabStatus.syncing','_scheduleHeartbeat','connectInjector','useObservable','prepareTransformSelections','_snapshotLoadingService','SHEET_VIEWPORT_KEY','setItem','adapters$','_initUserListener','getCoordByCell','_assignedColors','unsubscribe','color','CollaborationStatus','symbol','pluginName','UNIVER_SHEET','search','offsetY','replace','/universer-api/frontend/logs','getMergeData','handleIRemoveCol','MessageType','unitType','undoState','_localCacheService','4435YBIKlF','getViewport','OPERATION','DisposableCollection','_handleHeartbeatEvent','roomMembers$','assignAColorForMemberID','onStarting','presenceKind','_initStatusListener','setRemotePresence','_stopBlinking','save','beginPath','subscribe','SheetsSelectionsService','stack','getRangePointData','indicator','allSettled','socket$','message','_collabCursorState$','generateRandomId','OnLineIcon','Failed','\x20at\x20','AWAITING','reload','getAncestorScale','IUniverInstanceService','IDocClipboardService','registerDependencies','hovered','now','defineProperty','m2Prime','_labelPosition','SYNCED','_initEvent','canRenderSelection','ITransformService','event$','collaboration-client-ui.session.connection-failed','2237204doADZj','true','useCallback','column','yellow.400','ICommandService','textRanges','i18nKey','LocaleService','CONFLICT','_refreshCollabCursors','_notificationService','_showConflictCacheClearFailedNotification','add','CommandType','collaboration-client-ui.collabClient.tooltip.reconnect','clearTimeout','getOwnPropertyDescriptor','DependentOn','enableLocalCache','from','_selfUnitIDs','disableLocalCache','_logService','_collaborationUIEventService','collaboration-client-ui.collabStatus.notCollab','Inject','roomMembers','_trackActiveSaveTask','_messageService','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','getLocalCacheKey','_conflictNotification','firstValueFrom','right','_draw','debounce','_monkeyPatchLogService','_bindAdapter','_configService','ONLINE','UniverDocsUIPlugin','_registerDependencies','handleDeleteRangeMoveLeft','Vector2','collaboration-client-ui.collabStatus.fetchMiss','href','then','EffectRefRangId','type','collaboration-client-ui.collaboration.closeRoom','_watchBlockProgress','getFocusedUnit','registerRenderModule','div','_highlightSecond','subscribeEvent','NodePositionConvertToRectRange','SOCKET_FAILED_RETRY','endOffset','_listenToOnlineEvent','getTypeOfUnitDisposed$','pageIndex','show','ISnapshotServerService','_isBlinkVisible','collab-rect-range-','_replaceConflictNotification','columnIndex','_beforeCloseService','transformIMECache','labelPosition','engine','OFFLINE','span','runId','isFinite','reason','DeleteRangeMoveLeftCommandId','JOIN_ROOM_FAILED','getCellIndexByOffset','getSelectionInfo','_getLighterColor','getCurrentSelections','_anchorDot','_instanceService','collaboration-client-ui.collabStatus.offline','stringify','0.2)','timeout','_color','_adapterDisposables','_hovered','getCollabEntities','onPointerMove$','_disabled','getDocumentSkeletonColumnPagePathInfo','_syncPresenceStatusComponents','_blinkTimer','cursorInfo','has','Loading','invokeId','_imageIoService','_getScale','RxDisposable','Subject','_updateMessage','[LogService\x20Error]:\x20','rgba','searchParams','_localStorageService','UniverDocsPlugin','set','ErrorCode','highlightSecond','update','collaboration-client-ui.config','value','_colorAssignService','getCurrentSkeleton','_docSkeleton','unit','permission','_retryingConflictCacheUnitIDs','localPresence$','_docClipboardService','_injector','collaboration-client-ui.','name','DEFAULT_WS_SESSION_TICKET_URL','CollaborationSessionService','_getSheetObject','snapshot-loading-timeout','timer','WebSocketService','7317KdQkJP','sheetId','_disposeEntity','_send','getUnitStatus$','_startEntity','_name','isTransformMutationFailure','all','InsertRangeMoveDownCommandId','_registerRenderDependencies','ranges','UniverCollaborationClientPlugin','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','_startBlinking','univer-appearance-none','remoteRevert','black','IImageIoService','setUndoRedoMutationParamsCache','focusedId','purple.300','_blockProgressWatches','_cursors','_getUserId','_initWindowErrorListener','Module','selectedIds','_saveCache','ERROR','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collab-text-range-','getCollabCursors$','focused$','UNIVER_DOC','_commandService','status','mergeOverrideWithDependencies','visible','min','_collaborationController','toDisposable','COLORS','addEventListener','delete','_clearOtherTimers','isTransformMutationsWithChangesetSuccess','memberID','timeoutId','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','_hover','SetSelectionsOperation','collaboration-client-ui.collaboration.offline-data-not-saved','_initPresenceStatusComponents','_anchor','UniverNetworkPlugin','_initDependencies','highlight','getSheetBySheetId','override','_id','10VAVxoR','_colorIndex','_revisionService','_getMergeRange','INetworkConditionService','_updateLocalCursor','_clearRemotePresences','setActiveRange','onPointerLeave$','currentTheme$','segmentPage','BuiltInUIPart','_config','saveOfflineData','_saveTimedOutMessages','findNodePositionByCharIndex','cacheCleared','toRgbString','button','userId','_init','getScrollXYInfoByViewport','body','CollaborationSocketService','_scene','enableOfflineEditing','_refRangeService','activate','_onConflict','redoState','registerComponent','_drawAnchor','RemoveRowCommandId','arc','FETCH_MISS','HTTPService','loadedBlocks','_entityInit$','_getSaveTimeout','rgba(','SnapshotLoadStage','_sheetSkeletonManagerService','_adapter','conflict','univer-flex\x20univer-items-center\x20univer-justify-center','_retryConflictCacheClear','_toggleOffline','init','RegularPolygon','distinctUntilChanged','OTHER_CLIENT_EDITING','status$','MoveRangeCommandId','bottom','moveTo',',\x200.2)','getCurrentTypeOfUnit$','alert','width','transformByState','removeRemotePresence','currentSkeleton$','visibilityState','_initEntityListener','IMessageService','_range','SessionStatus','red.300','ColorKit','useDependency','CollaborationController','_removeSaveTimedOutMessage','statusUIPart','debounceTime','getUnitId','IUnitPresenceUIAdapterRegistry','_session','_ensureSubject','onPointerEnter$','length','setShapeProps','handleInsertRow','_pointerMoveDisposable','entityInit$','push','dispose','blue.400','_unitStatus','_hideTimer','sheetID','storage','DocCollaborationEntity','PENDING','WebBrowserSingleActiveUnitService','getLocalPresence','_transformHistoryAndStateStack','remove','disposeWithMe','toISOString','find','changesetResend$','_memberID','InsertColCommandId','pointer','univer-text-red-500','_initSaveTimedOutMessage','handleInsertRangeMoveDown','getSheetId','_context','requireSession','transformRemoteChangeset','deserializeRangeWithSheet','executeCommand','clearOfflineData','_showText','_backgroundColor','_initialized','_onCursorUpdate','_handleEvent','conflict$','onCommandExecuted','getCoordRelativeToViewport','addObject','unload','keys','collaboration-client-ui.snapshotLoading.refresh','_initUnhandledRejectionListener','FromArray','.content','small','state','univer-inline-flex\x20univer-items-center\x20univer-justify-center','collaboration-client-ui.collaboration.single-unit.warning','clsx','_httpService','primary','_textBubble','result','_removeRemotePresence','119017scoewc','clickable','_normalizeUserId','filter','_getSessionTicket','_uiPartsService','_offsetY','_handleCursorUpdate','remote_revert','_cursor','1223504NzxblC','state$','_activeSaveTaskMap','selection','split','_sendLocalPresence','BehaviorSubject','Shape','measureText','_uploadLog','getCurrentUser','_dispose$','...','_showConflictProcessingNotification','includes','version','getCurrentRevOfUnit','FOOTER','top','getUnit','addClipboardHook','next','DocSkeletonManagerService','_registerPresenceStatusComponent','forEach','replaceSelectionInfoWithoutRefresh','params','removeEventListener','_entities','_scheduleClearOtherTimer','send','_timeoutState$','_createSocketURL','font','_setupBeforeClosingHandler','Error','_startDocCollabCursor','_clearBlockProgressWatch','iterator','tableId','_render','#FFF','with','lineno','takeUntil','_startSheetCollabCursor','timeoutState$','Response','bold\x2013px\x20Arial,\x20sans-serif','InsertRangeMoveRightCommandId','sessionStatus$','[Unhandled\x20Rejection]:\x20','getItem','cursorInfo$','row','@univerjs-pro/collaboration-client-ui','LOCAL_CACHE_INTERVAL','SetTextSelectionsOperation','onRendered','join','_renderManagerService','function','_onRefRangeChange','some','ILogService','_roomMembers$','location','OffLineIcon','pageType','m1Prime','_handleLeaveEvent','fillRule','stream','_document','removeItem','getRenderUnitById','_memberService','resolve','_showSaveTimedOutMessage','call','1.2.0','_removeCollabCursors','focus','restore','preventDefault','RemoteUniscriptService','_transformUndoRedoStack','UniverRenderEnginePlugin','makeDirty','getSkeleton','_drawTextRange','throttle','Plugin','error','isActive','colorClass','getConfig','fromEventSubject','showText','_collabCursorController','_online','univer-text-blue-500','setTimeout','default','getValue','mutations','IUIPartsService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','CLOSE_ROOM','_docStateChangeManagerService','getMember','constructor','dispose$','_getAnchorBounding','merge','endColumn','contains','colno','getMemberID','VIEW_MAIN','_collabSessionService','elapsedMs','GET','collaboration-client-ui.operation.update-remote-unit-presence','_disposeEntitiesForType','collabCursorState$','saveImage','polite','IConfigService','HTTPEventType','onTransformChange$','slice','_docTransformSelectionsService','UniverCollaborationClientUIPlugin','switchMap','closePath','registerCommand','CollaborationUIEventService','_initConflictHandling','stage','_docTransformIMECacheService','canRenderAnchor','getDocRanges','clear','_listenToOfflineEvent','UniverCollaborationPlugin','MemberService','imageSourceType','_docSelectionManagerService','setAlpha','AWAITING_WITH_PENDING','touchDependencies','Rect','triggerDblclick','asObservable','text','UnitStatus','source','_localeService','hide','combineLatest','univer-m-0\x20univer-p-0','createSocket','DesktopCollaborationStatusDisplayController','_syncEditingCollabCursorService','UPDATE_CURSOR','complete','4414074RKSiqj','_presenceStatusRegistrations','pulse','univer-border-none\x20univer-bg-transparent','getColorFromTheme','UserManagerService','code','_adapterRegistry','_cachedData','LOCAL_CACHE_INTERVAL_KEY','catch','values','ThemeService','key','DocIMEInputManagerService','size','Disposable','collaboration-client-ui.conflict.title','parse','INotificationService','get','data','parseInt','kind','registerRefRange','finally','saveTaskMap','startOffset','spin','_initStatusComponent','collaboration-client-ui.collabStatus.conflict','options','transformStateCache','drawWith','pipe','green.600','rgba(255,\x20255,\x20255,\x200.01)','isArray','height','userID','unshift','USERS_LEAVE','NOT_COLLAB'];_0x4b94=function(){return _0x45cfc7;};return _0x4b94();}function ve(_0x276035,_0x2b3d69){const _0xe8a158=_0x38a3cb;let _0xca6b0a;try{_0xca6b0a=JSON[_0xe8a158(0x253)](_0x276035);}catch{return null;}if(!R(_0xca6b0a)||typeof _0xca6b0a[_0xe8a158(0x258)]!=_0xe8a158(0x28f)||typeof _0xca6b0a[_0xe8a158(0x2ec)]!=_0xe8a158(0x28f)||typeof _0xca6b0a[_0xe8a158(0x2d7)]!=_0xe8a158(0x28f))return null;let _0x308813=typeof _0xca6b0a[_0xe8a158(0x318)]==_0xe8a158(0x2fd)?_0xca6b0a[_0xe8a158(0x318)]:_0x2b3d69;if(_0x308813==null)return null;let _0x13d260=R(_0xca6b0a[_0xe8a158(0x16c)])&&typeof _0xca6b0a[_0xe8a158(0x16c)]['x']==_0xe8a158(0x2fd)&&Number[_0xe8a158(0x393)](_0xca6b0a['pointer']['x'])&&typeof _0xca6b0a[_0xe8a158(0x16c)]['y']==_0xe8a158(0x2fd)&&Number['isFinite'](_0xca6b0a[_0xe8a158(0x16c)]['y'])?{'x':_0xca6b0a[_0xe8a158(0x16c)]['x'],'y':_0xca6b0a['pointer']['y']}:null;return{'kind':_0xca6b0a[_0xe8a158(0x258)],'unitType':_0x308813,'unitId':_0xca6b0a[_0xe8a158(0x2ec)],'subUnitId':_0xca6b0a[_0xe8a158(0x2d7)],'selectedIds':Array[_0xe8a158(0x266)](_0xca6b0a['selectedIds'])?_0xca6b0a['selectedIds'][_0xe8a158(0x193)](_0x35a304=>typeof _0x35a304==_0xe8a158(0x28f)):[],'focusedId':typeof _0xca6b0a[_0xe8a158(0x3e3)]==_0xe8a158(0x28f)?_0xca6b0a[_0xe8a158(0x3e3)]:null,'pointer':_0x13d260};}function ye(_0x58a065,_0x475f07,_0x1b08b2){const _0x4a3d15=_0x38a3cb;return{'kind':_0x475f07,'unitType':_0x58a065,'unitId':_0x1b08b2['unitId'],'subUnitId':_0x1b08b2[_0x4a3d15(0x2d7)],'selectedIds':Array[_0x4a3d15(0x35b)](_0x1b08b2[_0x4a3d15(0x3ea)]),'focusedId':_0x1b08b2['focusedId'],'pointer':_0x1b08b2[_0x4a3d15(0x16c)]?{..._0x1b08b2['pointer']}:null};}let z=class extends t['RxDisposable']{constructor(_0x13da31,_0x2aa9d0,_0x53e3ac,_0x5a956e,_0xccc6b4,_0x1e2811){const _0x4126f0=_0x38a3cb;super(),this[_0x4126f0(0x2ec)]=_0x13da31,this['_session']=_0x2aa9d0,this[_0x4126f0(0x12f)]=_0x53e3ac,this[_0x4126f0(0x3be)]=_0x5a956e,this['_memberService']=_0xccc6b4,this[_0x4126f0(0x3f2)]=_0x1e2811,b(this,_0x4126f0(0x1fe),!0x1),b(this,_0x4126f0(0x179),!0x1);}get['unitType'](){const _0x226571=_0x38a3cb;return this[_0x226571(0x12f)]['unitType'];}['dispose'](){const _0x178c69=_0x38a3cb;this[_0x178c69(0x10b)](),super[_0x178c69(0x15a)]();}['init'](){const _0x1dc03e=_0x38a3cb;this['_initialized']||(this[_0x1dc03e(0x179)]=!0x0,this[_0x1dc03e(0x151)][_0x1dc03e(0x1cc)][_0x1dc03e(0x263)]((0x0,r['takeUntil'])(this['dispose$']))[_0x1dc03e(0x329)](_0x42e99c=>{const _0x43b507=_0x1dc03e;if(_0x42e99c===e['SessionStatus'][_0x43b507(0x36f)]){this[_0x43b507(0x1fe)]=!0x0;let _0x1bcd93=this['_adapter'][_0x43b507(0x163)](this[_0x43b507(0x2ec)]);_0x1bcd93&&this[_0x43b507(0x19f)](_0x1bcd93);}else this[_0x43b507(0x1fe)]=!0x1,this[_0x43b507(0x10b)]();}),this[_0x1dc03e(0x151)][_0x1dc03e(0x345)][_0x1dc03e(0x263)]((0x0,r[_0x1dc03e(0x1c6)])(this[_0x1dc03e(0x20a)]))['subscribe'](_0xdbce8e=>{const _0x4a8b9a=_0x1dc03e;ge(_0xdbce8e)?this[_0x4a8b9a(0x197)](_0xdbce8e):_e(_0xdbce8e)&&this['_removeRemotePresence'](_0xdbce8e[_0x4a8b9a(0x256)][_0x4a8b9a(0x3fe)]);}),this['_adapter'][_0x1dc03e(0x3c4)][_0x1dc03e(0x263)]((0x0,r[_0x1dc03e(0x193)])(_0x462de8=>this[_0x1dc03e(0x1fe)]&&_0x462de8[_0x1dc03e(0x2ec)]===this['unitId']),(0x0,r[_0x1dc03e(0x1f5)])(_0x4affa6=>(0x0,r[_0x1dc03e(0x3cd)])(_0x4affa6[_0x1dc03e(0x277)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r['takeUntil'])(this[_0x1dc03e(0x20a)]))[_0x1dc03e(0x329)](_0x52677b=>this[_0x1dc03e(0x19f)](_0x52677b)));}['_sendLocalPresence'](_0xf725f7){const _0x7b8884=_0x38a3cb;let _0x5f4c7c=this[_0x7b8884(0x151)]['getMemberID']();if(!_0x5f4c7c||!this[_0x7b8884(0x1fe)])return;let _0xdbbee={'eventID':l[_0x7b8884(0x26d)][_0x7b8884(0x23f)],'data':{'unitID':this[_0x7b8884(0x2ec)],'memberID':_0x5f4c7c,'selection':JSON[_0x7b8884(0x39e)](ye(this[_0x7b8884(0x318)],this[_0x7b8884(0x12f)][_0x7b8884(0x323)],_0xf725f7))}};this[_0x7b8884(0x151)][_0x7b8884(0x1b8)](_0xdbbee,this[_0x7b8884(0x2ec)])[_0x7b8884(0x24b)](()=>void 0x0);}['_handleCursorUpdate'](_0x2baf37){const _0x1d3638=_0x38a3cb;let {memberID:_0x3fd54b,selection:_0x1a5ed9}=_0x2baf37[_0x1d3638(0x256)];if(_0x3fd54b===this[_0x1d3638(0x151)]['getMemberID']())return;let _0x3df284=ve(_0x1a5ed9,this['unitType']);if(!_0x3df284||_0x3df284[_0x1d3638(0x258)]!==this[_0x1d3638(0x12f)]['presenceKind']||_0x3df284[_0x1d3638(0x318)]!==this[_0x1d3638(0x318)]||_0x3df284[_0x1d3638(0x2ec)]!==this[_0x1d3638(0x2ec)])return;let _0x1368f5=this[_0x1d3638(0x1e6)][_0x1d3638(0x208)](this[_0x1d3638(0x2ec)],_0x3fd54b),_0x106bb0={'unitId':_0x3df284['unitId'],'subUnitId':_0x3df284[_0x1d3638(0x2d7)],'selectedIds':_0x3df284[_0x1d3638(0x3ea)],'focusedId':_0x3df284[_0x1d3638(0x3e3)],'pointer':_0x3df284[_0x1d3638(0x16c)],'memberId':_0x3fd54b,'color':this[_0x1d3638(0x3be)]['assignAColorForMemberID'](_0x3fd54b),'name':(_0x1368f5==null?void 0x0:_0x1368f5[_0x1d3638(0x3c8)])??_0x3fd54b};this[_0x1d3638(0x3f2)][_0x1d3638(0x175)](T['id'],{'unitType':this[_0x1d3638(0x318)],'update':{'type':_0x1d3638(0x3b8),'state':_0x106bb0}})[_0x1d3638(0x24b)](()=>void 0x0);}[_0x38a3cb(0x18f)](_0x5a29a0){const _0x91c657=_0x38a3cb;this[_0x91c657(0x3f2)][_0x91c657(0x175)](T['id'],{'unitType':this['unitType'],'update':{'type':'remove','unitId':this[_0x91c657(0x2ec)],'memberId':_0x5a29a0}})[_0x91c657(0x24b)](()=>void 0x0);}['_clearRemotePresences'](){const _0x3c4bd5=_0x38a3cb;this['_commandService'][_0x3c4bd5(0x175)](T['id'],{'unitType':this['unitType'],'update':{'type':_0x3c4bd5(0x229),'unitId':this[_0x3c4bd5(0x2ec)]}})[_0x3c4bd5(0x24b)](()=>void 0x0);}};z=S([x(0x3,(0x0,t[_0x38a3cb(0x361)])(D)),x(0x4,(0x0,t[_0x38a3cb(0x361)])(e[_0x38a3cb(0x22c)])),x(0x5,(0x0,t['Inject'])(t['ICommandService']))],z);let B=class extends t['RxDisposable']{constructor(_0x15f717,_0x2f1a81,_0xdaec1e,_0x4309b3){const _0x3cccc4=_0x38a3cb;super(),this['_univerInstanceService']=_0x15f717,this[_0x3cccc4(0x3c6)]=_0x2f1a81,this['_collabSessionService']=_0xdaec1e,this['_adapterRegistry']=_0x4309b3,b(this,_0x3cccc4(0x276),!0x1),b(this,_0x3cccc4(0x1b6),new Map()),b(this,_0x3cccc4(0x26f),new Map()),b(this,_0x3cccc4(0x3a2),new Map()),this[_0x3cccc4(0x119)]();}[_0x38a3cb(0x15a)](){const _0xe65b0a=_0x38a3cb;this['_isDisposed']=!0x0,this[_0xe65b0a(0x3a2)][_0xe65b0a(0x1b2)](_0x24b3df=>_0x24b3df[_0xe65b0a(0x15a)]()),this['_adapterDisposables'][_0xe65b0a(0x229)](),this['_entities']['forEach'](_0x53b8ad=>_0x53b8ad[_0xe65b0a(0x15a)]()),this[_0xe65b0a(0x1b6)][_0xe65b0a(0x229)](),this['_pendingEntities'][_0xe65b0a(0x229)](),super[_0xe65b0a(0x15a)]();}[_0x38a3cb(0x119)](){const _0x528976=_0x38a3cb;this[_0x528976(0x248)][_0x528976(0x307)][_0x528976(0x263)]((0x0,r[_0x528976(0x1c6)])(this[_0x528976(0x20a)]))[_0x528976(0x329)](_0x151a66=>this[_0x528976(0x2ef)](_0x151a66));}[_0x38a3cb(0x2ef)](_0x5c384f){const _0x360377=_0x38a3cb;let _0x421f6d=new Set(_0x5c384f[_0x360377(0x2f1)](_0x142252=>_0x142252[_0x360377(0x318)]));this[_0x360377(0x3a2)]['forEach']((_0x16389d,_0x5f6ac)=>{const _0x59f5e3=_0x360377;_0x421f6d[_0x59f5e3(0x3ab)](_0x5f6ac)||(_0x16389d[_0x59f5e3(0x15a)](),this[_0x59f5e3(0x3a2)]['delete'](_0x5f6ac),this[_0x59f5e3(0x216)](_0x5f6ac));}),_0x5c384f[_0x360377(0x1b2)](_0x19be35=>{const _0x57ce14=_0x360377;this[_0x57ce14(0x3a2)][_0x57ce14(0x3ab)](_0x19be35[_0x57ce14(0x318)])||this[_0x57ce14(0x36d)](_0x19be35);});}['_bindAdapter'](_0x15a154){const _0x5acdd8=_0x38a3cb;let _0x37a833=new t[(_0x5acdd8(0x31e))]();this['_adapterDisposables']['set'](_0x15a154[_0x5acdd8(0x318)],_0x37a833),_0x37a833[_0x5acdd8(0x354)](_0x15a154[_0x5acdd8(0x120)]()),this[_0x5acdd8(0x273)][_0x5acdd8(0x299)](_0x15a154[_0x5acdd8(0x318)])[_0x5acdd8(0x1b2)](_0x364980=>this[_0x5acdd8(0x3d4)](_0x364980['getUnitId'](),_0x15a154)[_0x5acdd8(0x24b)](()=>void 0x0));let _0x2dd888=this['_univerInstanceService'][_0x5acdd8(0x2fb)](_0x15a154[_0x5acdd8(0x318)])[_0x5acdd8(0x329)](({unit:_0x5e2784})=>this[_0x5acdd8(0x3d4)](_0x5e2784[_0x5acdd8(0x14f)](),_0x15a154)['catch'](()=>void 0x0));_0x37a833[_0x5acdd8(0x354)]((0x0,t[_0x5acdd8(0x3f8)])(()=>_0x2dd888[_0x5acdd8(0x30b)]()));let _0x2da49d=this[_0x5acdd8(0x273)]['getTypeOfUnitDisposed$'](_0x15a154[_0x5acdd8(0x318)])[_0x5acdd8(0x329)](_0x5a6aa2=>this[_0x5acdd8(0x3d1)](_0x5a6aa2[_0x5acdd8(0x14f)]()));_0x37a833['add']((0x0,t['toDisposable'])(()=>_0x2da49d[_0x5acdd8(0x30b)]()));}async['_startEntity'](_0x3dc44f,_0x75dc53){const _0x26aba4=_0x38a3cb;if(this[_0x26aba4(0x1b6)][_0x26aba4(0x3ab)](_0x3dc44f)||this['_pendingEntities'][_0x26aba4(0x3ab)](_0x3dc44f))return;let _0x41a123={};this[_0x26aba4(0x26f)][_0x26aba4(0x3b8)](_0x3dc44f,_0x41a123);let _0x167174=await this[_0x26aba4(0x212)][_0x26aba4(0x172)](_0x3dc44f)['catch'](_0x1ba7d9=>{const _0x493da9=_0x26aba4;throw this['_pendingEntities'][_0x493da9(0x255)](_0x3dc44f)===_0x41a123&&this[_0x493da9(0x26f)]['delete'](_0x3dc44f),_0x1ba7d9;});if(this[_0x26aba4(0x276)]||this[_0x26aba4(0x26f)][_0x26aba4(0x255)](_0x3dc44f)!==_0x41a123||this[_0x26aba4(0x248)]['get'](_0x75dc53[_0x26aba4(0x318)])!==_0x75dc53){this[_0x26aba4(0x26f)][_0x26aba4(0x255)](_0x3dc44f)===_0x41a123&&this[_0x26aba4(0x26f)]['delete'](_0x3dc44f);return;}let _0x4d0b6b=this[_0x26aba4(0x3c6)][_0x26aba4(0x2b1)](z,_0x3dc44f,_0x167174,_0x75dc53);_0x4d0b6b['init'](),this[_0x26aba4(0x26f)][_0x26aba4(0x3fb)](_0x3dc44f),this['_entities'][_0x26aba4(0x3b8)](_0x3dc44f,_0x4d0b6b);}[_0x38a3cb(0x3d1)](_0x397139){const _0x5c133c=_0x38a3cb;this[_0x5c133c(0x26f)][_0x5c133c(0x3fb)](_0x397139);let _0x58eed9=this['_entities'][_0x5c133c(0x255)](_0x397139);_0x58eed9&&(_0x58eed9[_0x5c133c(0x15a)](),this['_entities']['delete'](_0x397139));}['_disposeEntitiesForType'](_0x511a99){const _0x3dd05f=_0x38a3cb;this['_univerInstanceService']['getAllUnitsForType'](_0x511a99)[_0x3dd05f(0x1b2)](_0x46a105=>this[_0x3dd05f(0x26f)][_0x3dd05f(0x3fb)](_0x46a105[_0x3dd05f(0x14f)]())),Array[_0x3dd05f(0x35b)](this[_0x3dd05f(0x1b6)]['entries']())[_0x3dd05f(0x1b2)](([_0x2375ee,_0x4c8248])=>{const _0x56173d=_0x3dd05f;_0x4c8248[_0x56173d(0x318)]===_0x511a99&&this['_disposeEntity'](_0x2375ee);});}};B=S([x(0x0,t[_0x38a3cb(0x339)]),x(0x1,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x2,(0x0,t[_0x38a3cb(0x361)])(e['CollaborationSessionService'])),x(0x3,(0x0,t['Inject'])(n[_0x38a3cb(0x150)]))],B);const be={'toast':_0x38a3cb(0x2c1),'actionButton':_0x38a3cb(0x400)};let V=class extends t['Disposable']{constructor(_0x5cf72f,_0x57a78e,_0x1bc15f,_0x39e7bb,_0x6add05,_0x14edf6,_0x4d7f10,_0x2ca268){const _0x274aa3=_0x38a3cb;var _0xe4bae7;super(),this[_0x274aa3(0x38c)]=_0x5cf72f,this[_0x274aa3(0x31a)]=_0x57a78e,this[_0x274aa3(0x35f)]=_0x1bc15f,this[_0x274aa3(0x364)]=_0x39e7bb,this['_notificationService']=_0x6add05,this[_0x274aa3(0x238)]=_0x14edf6,this[_0x274aa3(0x3f7)]=_0x4d7f10,this['_configService']=_0x2ca268,b(this,_0x274aa3(0x367),null),b(this,_0x274aa3(0x3c3),new Set()),b(this,_0x274aa3(0x113),new Map()),this[_0x274aa3(0x1bc)](),this[_0x274aa3(0x342)](),this[_0x274aa3(0x16e)](),((_0xe4bae7=this[_0x274aa3(0x36e)][_0x274aa3(0x1fa)](_0x274aa3(0x3bc)))==null?void 0x0:_0xe4bae7['enableDefaultConflictUI'])!==!0x1&&this[_0x274aa3(0x224)]();}['dispose'](){const _0x28eef3=_0x38a3cb;var _0x127bf1;(_0x127bf1=this[_0x28eef3(0x367)])==null||_0x127bf1[_0x28eef3(0x15a)](),this['_conflictNotification']=null,this['_saveTimedOutMessages']['forEach'](_0x164681=>_0x164681[_0x28eef3(0x15a)]()),this[_0x28eef3(0x113)][_0x28eef3(0x229)](),super[_0x28eef3(0x15a)]();}[_0x38a3cb(0x16e)](){const _0x28b3de=_0x38a3cb;let _0x95927f=_0xfbeb7b=>{const _0x1a9484=_0x121f;let _0x33a61f=new t[(_0x1a9484(0x31e))]();_0x33a61f[_0x1a9484(0x354)]((0x0,t[_0x1a9484(0x3f8)])(_0xfbeb7b[_0x1a9484(0x169)][_0x1a9484(0x329)]({'next':_0x46d1fd=>{const _0x2804f9=_0x1a9484;_0x46d1fd[_0x2804f9(0x213)]>=0x4e20&&this['_showSaveTimedOutMessage'](_0xfbeb7b[_0x2804f9(0x2fa)]);},'complete':()=>{const _0x4d65fb=_0x1a9484;this[_0x4d65fb(0x14c)](_0xfbeb7b[_0x4d65fb(0x2fa)]),_0x33a61f[_0x4d65fb(0x15a)]();}}))),_0x33a61f[_0x1a9484(0x354)]((0x0,t[_0x1a9484(0x3f8)])(_0xfbeb7b['status$'][_0x1a9484(0x329)](_0x50c6d5=>{const _0x3e4227=_0x1a9484;_0x50c6d5!==e['CollaborationStatus'][_0x3e4227(0x336)]&&_0x50c6d5!==e[_0x3e4227(0x30d)][_0x3e4227(0x230)]&&this[_0x3e4227(0x14c)](_0xfbeb7b[_0x3e4227(0x2fa)]);}))),this['disposeWithMe'](_0x33a61f);};this[_0x28b3de(0x3f7)][_0x28b3de(0x3a4)]()['forEach'](_0x95927f),this[_0x28b3de(0x166)]((0x0,t[_0x28b3de(0x3f8)])(this[_0x28b3de(0x3f7)][_0x28b3de(0x158)][_0x28b3de(0x329)](_0x95927f)));}[_0x38a3cb(0x1e8)](_0x53f299){const _0x3f0cb3=_0x38a3cb;this[_0x3f0cb3(0x113)][_0x3f0cb3(0x3ab)](_0x53f299)||this['_saveTimedOutMessages'][_0x3f0cb3(0x3b8)](_0x53f299,this[_0x3f0cb3(0x352)][_0x3f0cb3(0x386)]({'title':this[_0x3f0cb3(0x238)]['t']('collaboration-client-ui.session.collaboration-timeout'),'type':_0x3f0cb3(0x2b9),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}[_0x38a3cb(0x14c)](_0x370d42){const _0x5ee67c=_0x38a3cb;var _0x2f53d7;(_0x2f53d7=this[_0x5ee67c(0x113)]['get'](_0x370d42))==null||_0x2f53d7['dispose'](),this['_saveTimedOutMessages'][_0x5ee67c(0x3fb)](_0x370d42);}[_0x38a3cb(0x1bc)](){const _0x53b25f=_0x38a3cb;this[_0x53b25f(0x166)](this['_beforeCloseService'][_0x53b25f(0x2cc)](()=>{const _0x238f77=_0x53b25f;if(this[_0x238f77(0x31a)][_0x238f77(0x25b)][_0x238f77(0x250)])return this['_localeService']['t'](_0x238f77(0x403));}));}[_0x38a3cb(0x224)](){const _0x7c784b=_0x38a3cb;let _0x4ad069=_0xab9a9=>{const _0x5113a2=_0x121f;this[_0x5113a2(0x166)]((0x0,t[_0x5113a2(0x3f8)])(_0xab9a9[_0x5113a2(0x17c)][_0x5113a2(0x329)](_0x262725=>this[_0x5113a2(0x121)](_0x262725))));};this['_collaborationController'][_0x7c784b(0x3a4)]()[_0x7c784b(0x1b2)](_0x4ad069),this[_0x7c784b(0x166)]((0x0,t[_0x7c784b(0x3f8)])(this[_0x7c784b(0x3f7)]['entityInit$'][_0x7c784b(0x329)](_0x4ad069)));}[_0x38a3cb(0x121)](_0x6a932f){const _0x5216ef=_0x38a3cb;if(!_0x6a932f[_0x5216ef(0x115)])return;let _0x59fec4=_0x6a932f[_0x5216ef(0x394)]===_0x5216ef(0x198)?_0x5216ef(0x3df):_0x6a932f[_0x5216ef(0x394)]===_0x5216ef(0x287)?_0x5216ef(0x3c2):_0x5216ef(0x130);this[_0x5216ef(0x38a)]({'title':this['_localeService']['t'](_0x5216ef(0x3c7)+_0x59fec4+'.title'),'content':this['_localeService']['t'](_0x5216ef(0x3c7)+_0x59fec4+_0x5216ef(0x185)),'type':_0x6a932f[_0x5216ef(0x394)]===_0x5216ef(0x198)?_0x5216ef(0x2b9):_0x5216ef(0x1f7),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':be,'action':{'label':this[_0x5216ef(0x238)]['t'](_0x5216ef(0x182)),'onClick':_0x59edab=>{const _0x52e2e0=_0x5216ef;_0x59edab[_0x52e2e0(0x1ee)](),this['_reloadPage']();}}});}[_0x38a3cb(0x2f9)](){const _0x3756a1=_0x38a3cb;window['location'][_0x3756a1(0x337)]();}['_initEvent'](){const _0x43f726=_0x38a3cb;this[_0x43f726(0x166)](this['_collaborationUIEventService'][_0x43f726(0x345)][_0x43f726(0x329)](_0xcb9039=>{const _0xa3e2b0=_0x43f726;_0xcb9039['id']===e[_0xa3e2b0(0x2e1)][_0xa3e2b0(0x137)]&&this[_0xa3e2b0(0x364)][_0xa3e2b0(0x386)]({'type':a[_0xa3e2b0(0x317)][_0xa3e2b0(0x293)],'content':this['_localeService']['t'](_0xa3e2b0(0x189))}),_0xcb9039['id']===e['CollaborationUIEventId'][_0xa3e2b0(0x206)]&&this[_0xa3e2b0(0x364)][_0xa3e2b0(0x386)]({'type':a['MessageType'][_0xa3e2b0(0x293)],'content':this[_0xa3e2b0(0x238)]['t'](_0xa3e2b0(0x379))}),_0xcb9039['id']===e[_0xa3e2b0(0x2e1)]['CONFLICT_PROCESSING']&&this[_0xa3e2b0(0x1a7)](),_0xcb9039['id']===e[_0xa3e2b0(0x2e1)]['CONFLICT_CACHE_CLEAR_FAILED']&&_0xcb9039[_0xa3e2b0(0x2fa)]&&this[_0xa3e2b0(0x353)](_0xcb9039['unitID'],_0xcb9039['userId']??''),_0xcb9039['id']===e[_0xa3e2b0(0x2e1)][_0xa3e2b0(0x396)]&&this[_0xa3e2b0(0x364)]['show']({'type':a[_0xa3e2b0(0x317)][_0xa3e2b0(0x293)],'content':this['_localeService']['t'](_0xcb9039[_0xa3e2b0(0x256)]||'')}),_0xcb9039['id']===e[_0xa3e2b0(0x2e1)][_0xa3e2b0(0x381)]&&this[_0xa3e2b0(0x364)][_0xa3e2b0(0x386)]({'type':a[_0xa3e2b0(0x317)][_0xa3e2b0(0x293)],'content':this[_0xa3e2b0(0x238)]['t']('collaboration-client-ui.session.will-retry')}),_0xcb9039['id']===e['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0xa3e2b0(0x364)][_0xa3e2b0(0x386)]({'type':a[_0xa3e2b0(0x317)][_0xa3e2b0(0x1bd)],'content':this[_0xa3e2b0(0x238)]['t'](_0xa3e2b0(0x346))});}));}[_0x38a3cb(0x1a7)](){const _0x279d26=_0x38a3cb;this['_replaceConflictNotification']({'title':this[_0x279d26(0x238)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x279d26(0x238)]['t']('collaboration-client-ui.conflict.processing'),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x38a3cb(0x353)](_0x473e27,_0x10f540){const _0x1ebd28=_0x38a3cb;this['_replaceConflictNotification']({'title':this['_localeService']['t'](_0x1ebd28(0x252)),'content':this[_0x1ebd28(0x238)]['t'](_0x1ebd28(0x2d2)),'type':_0x1ebd28(0x1f7),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':be,'action':{'label':this['_localeService']['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x5e535f=>{const _0x4a71da=_0x1ebd28;_0x5e535f[_0x4a71da(0x1ee)](),this[_0x4a71da(0x132)](_0x473e27,_0x10f540);}}});}[_0x38a3cb(0x132)](_0xb3f68e,_0x41c68e){const _0x411e94=_0x38a3cb;let _0x23c232=_0xb3f68e+':'+(_0x41c68e??'');this['_retryingConflictCacheUnitIDs'][_0x411e94(0x3ab)](_0x23c232)||(this[_0x411e94(0x3c3)][_0x411e94(0x354)](_0x23c232),this[_0x411e94(0x1a7)](),this[_0x411e94(0x31a)]['clearOfflineData'](_0xb3f68e,_0x41c68e)[_0x411e94(0x376)](()=>this[_0x411e94(0x2f9)]())[_0x411e94(0x24b)](()=>this[_0x411e94(0x353)](_0xb3f68e,_0x41c68e))[_0x411e94(0x25a)](()=>this[_0x411e94(0x3c3)][_0x411e94(0x3fb)](_0x23c232)));}['_replaceConflictNotification'](_0x338f1e){const _0x570a16=_0x38a3cb;var _0x4b2838;(_0x4b2838=this[_0x570a16(0x367)])==null||_0x4b2838[_0x570a16(0x15a)](),this['_conflictNotification']=this['_notificationService'][_0x570a16(0x386)](_0x338f1e);}};V=S([x(0x0,n[_0x38a3cb(0x2d8)]),x(0x1,e['ILocalCacheService']),x(0x2,(0x0,t['Inject'])(e[_0x38a3cb(0x223)])),x(0x3,n[_0x38a3cb(0x145)]),x(0x4,n[_0x38a3cb(0x254)]),x(0x5,(0x0,t['Inject'])(t['LocaleService'])),x(0x6,(0x0,t['Inject'])(e[_0x38a3cb(0x14b)])),x(0x7,t[_0x38a3cb(0x21a)])],V);let H=class{constructor(_0x907c7f,_0x18cd7f){const _0x2a5431=_0x38a3cb;this['_transformService']=_0x907c7f,this[_0x2a5431(0x1d6)]=_0x18cd7f;}['transformIMECache'](_0xee12ae){const _0x3eae32=_0x38a3cb;this[_0x3eae32(0x1f0)](_0xee12ae),this[_0x3eae32(0x298)](_0xee12ae);}['transformRemoteChangeset'](_0x17c248){const _0x3d5452=_0x38a3cb;let {unitID:_0x22a1eb}=_0x17c248,{redoCache:_0x553acc}=this[_0x3d5452(0x1d6)][_0x3d5452(0x1e5)](_0x22a1eb)['with'](f[_0x3d5452(0x24f)])['getUndoRedoMutationParamsCache']();if(_0x553acc[_0x3d5452(0x154)]===0x0)return _0x17c248;let _0x28db22=t[_0x3d5452(0x288)]['deepClone'](_0x17c248[_0x3d5452(0x203)][0x0]);for(let _0x5e5923=0x0;_0x5e5923<_0x553acc[_0x3d5452(0x154)];_0x5e5923++){let _0x18f5c7={'id':_0x3d5452(0x281),'params':{..._0x553acc[_0x5e5923]}},_0x138ff9=this['_transformService'][_0x3d5452(0x2c6)](_0x28db22,_0x18f5c7,!0x1);if((0x0,l[_0x3d5452(0x3d6)])(_0x138ff9))throw _0x138ff9[_0x3d5452(0x1f7)];_0x28db22=_0x138ff9['m1Prime'];}return{...t[_0x3d5452(0x288)][_0x3d5452(0x2e2)](_0x17c248),'mutations':[_0x28db22]};}[_0x38a3cb(0x1f0)](_0x2d0c75){const _0x5283de=_0x38a3cb;let {unitID:_0x10eb2a}=_0x2d0c75,_0x4db222=this[_0x5283de(0x1d6)][_0x5283de(0x1e5)](_0x10eb2a)[_0x5283de(0x1c4)](f[_0x5283de(0x24f)]),{undoCache:_0x506fa2,redoCache:_0x470876}=_0x4db222['getUndoRedoMutationParamsCache']();if(_0x506fa2[_0x5283de(0x154)]===0x0||_0x470876[_0x5283de(0x154)]===0x0)return;let _0x244bd9=[],_0x5bef49=[],_0x387c89=t[_0x5283de(0x288)][_0x5283de(0x2e2)](_0x2d0c75[_0x5283de(0x203)][0x0]),_0x4e02c9=t[_0x5283de(0x288)][_0x5283de(0x2e2)](_0x2d0c75[_0x5283de(0x203)][0x0]);for(let _0x572106=_0x506fa2[_0x5283de(0x154)]-0x1;_0x572106>=0x0;_0x572106--){let _0x43993c={'id':_0x5283de(0x281),'params':{..._0x506fa2[_0x572106]}},_0x2ac699={'id':_0x5283de(0x281),'params':{..._0x470876[_0x572106]}},_0x1ddc6a=this['_transformService'][_0x5283de(0x2c6)](_0x387c89,_0x43993c,!0x1),_0x15a035=this[_0x5283de(0x2a5)][_0x5283de(0x2c6)](_0x4e02c9,_0x2ac699,!0x1);if((0x0,l[_0x5283de(0x3d6)])(_0x1ddc6a))throw _0x1ddc6a[_0x5283de(0x1f7)];if((0x0,l['isTransformMutationFailure'])(_0x15a035))throw _0x15a035[_0x5283de(0x1f7)];_0x244bd9[_0x5283de(0x269)](_0x1ddc6a[_0x5283de(0x33f)][_0x5283de(0x1b4)]),_0x5bef49[_0x5283de(0x269)](_0x15a035[_0x5283de(0x33f)]['params']),_0x387c89=_0x1ddc6a[_0x5283de(0x1df)],_0x4e02c9=_0x15a035['m1Prime'];}_0x4db222[_0x5283de(0x3e2)]({'undoCache':_0x244bd9,'redoCache':_0x5bef49});}['_transformPreviousActiveRange'](_0xb26e6e){const _0x43d502=_0x38a3cb;let {unitID:_0x5b3114}=_0xb26e6e,_0x26e9c1=this[_0x43d502(0x1d6)]['getRenderUnitById'](_0x5b3114)[_0x43d502(0x1c4)](f[_0x43d502(0x24f)]),_0x4f4e79=_0x26e9c1[_0x43d502(0x2a8)]();if(_0x4f4e79==null)return;let _0x589a30=[{'id':_0x43d502(0x281),'params':{'unitId':_0xb26e6e[_0x43d502(0x2fa)],'actions':null,'textRanges':[_0x4f4e79]}}],_0x2bd9c9=this[_0x43d502(0x2a5)][_0x43d502(0x2db)](_0xb26e6e,_0x589a30);if(!(0x0,l[_0x43d502(0x3fd)])(_0x2bd9c9))throw _0x2bd9c9[_0x43d502(0x1f7)];let _0x4c41af=_0x2bd9c9['m2Prime'][0x0][_0x43d502(0x1b4)][_0x43d502(0x34d)];Array[_0x43d502(0x266)](_0x4c41af)&&_0x4c41af[_0x43d502(0x154)]&&_0x26e9c1[_0x43d502(0x10c)](_0x4c41af[0x0]);}};H=S([x(0x0,l[_0x38a3cb(0x344)]),x(0x1,p['IRenderManagerService'])],H);let U=class{constructor(_0x219bfe,_0x2e574d,_0x399293){const _0xe487e6=_0x38a3cb;this[_0xe487e6(0x3c6)]=_0x219bfe,this[_0xe487e6(0x2a5)]=_0x2e574d,this[_0xe487e6(0x207)]=_0x399293;}[_0x38a3cb(0x261)](_0xa77118){const _0x4ccd8f=_0x38a3cb;this[_0x4ccd8f(0x164)](_0xa77118);}[_0x38a3cb(0x173)](_0x450093){const _0x8a8cd7=_0x38a3cb;let {unitID:_0x4c860a}=_0x450093,{collaboration:_0x1def66}=this['_docStateChangeManagerService']['getStateCache'](_0x4c860a);if(_0x1def66['length']===0x0)return _0x450093;let _0xadbb90=t[_0x8a8cd7(0x288)][_0x8a8cd7(0x2e2)](_0x450093[_0x8a8cd7(0x203)][0x0]);for(let _0x24a4b5=0x0;_0x24a4b5<_0x1def66[_0x8a8cd7(0x154)];_0x24a4b5++){let _0x3f2eb9={'id':_0x8a8cd7(0x281),'params':{'unitId':_0x1def66[_0x24a4b5][_0x8a8cd7(0x2ec)],..._0x1def66[_0x24a4b5]['redoState']}},_0x243787=this['_transformService'][_0x8a8cd7(0x2c6)](_0xadbb90,_0x3f2eb9,!0x1);if((0x0,l[_0x8a8cd7(0x3d6)])(_0x243787))throw _0x243787[_0x8a8cd7(0x1f7)];_0xadbb90=_0x243787['m1Prime'];}return{...t[_0x8a8cd7(0x288)][_0x8a8cd7(0x2e2)](_0x450093),'mutations':[_0xadbb90]};}[_0x38a3cb(0x164)](_0x3aa416){const _0x407258=_0x38a3cb;let {unitID:_0x45fdef}=_0x3aa416,{history:_0x38a6c1,collaboration:_0x1d40c2}=this[_0x407258(0x207)]['getStateCache'](_0x45fdef);if(_0x38a6c1[_0x407258(0x154)]===0x0&&_0x1d40c2[_0x407258(0x154)]===0x0)return;let _0x53cdc7=[],_0x3e54dc=[],_0x42d053=t[_0x407258(0x288)][_0x407258(0x2e2)](_0x3aa416['mutations'][0x0]),_0x48f7b1=t[_0x407258(0x288)][_0x407258(0x2e2)](_0x3aa416[_0x407258(0x203)][0x0]);for(let _0x45a7a0=_0x38a6c1[_0x407258(0x154)]-0x1;_0x45a7a0>=0x0;_0x45a7a0--){let _0x39ca41={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38a6c1[_0x45a7a0][_0x407258(0x2ec)],..._0x38a6c1[_0x45a7a0][_0x407258(0x319)]}},_0x1d35f1={'id':_0x407258(0x281),'params':{'unitId':_0x38a6c1[_0x45a7a0][_0x407258(0x2ec)],..._0x38a6c1[_0x45a7a0][_0x407258(0x122)]}},_0xc79aaa=this[_0x407258(0x2a5)][_0x407258(0x2c6)](_0x42d053,_0x39ca41,!0x1),_0x49cbb4=this[_0x407258(0x2a5)]['transformMutation'](_0x48f7b1,_0x1d35f1,!0x1);if((0x0,l['isTransformMutationFailure'])(_0xc79aaa))throw _0xc79aaa[_0x407258(0x1f7)];if((0x0,l[_0x407258(0x3d6)])(_0x49cbb4))throw _0x49cbb4[_0x407258(0x1f7)];_0x53cdc7[_0x407258(0x269)]({..._0x38a6c1[_0x45a7a0],'undoState':_0xc79aaa[_0x407258(0x33f)]['params'],'redoState':_0x49cbb4[_0x407258(0x33f)][_0x407258(0x1b4)]}),_0x42d053=_0xc79aaa[_0x407258(0x1df)],_0x48f7b1=_0x49cbb4[_0x407258(0x1df)];}_0x42d053=t[_0x407258(0x288)][_0x407258(0x2e2)](_0x3aa416[_0x407258(0x203)][0x0]),_0x48f7b1=t[_0x407258(0x288)]['deepClone'](_0x3aa416['mutations'][0x0]);for(let _0x1204e4=_0x1d40c2['length']-0x1;_0x1204e4>=0x0;_0x1204e4--){let _0x3658dc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d40c2[_0x1204e4][_0x407258(0x2ec)],..._0x1d40c2[_0x1204e4]['undoState']}},_0x1242b5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d40c2[_0x1204e4][_0x407258(0x2ec)],..._0x1d40c2[_0x1204e4][_0x407258(0x122)]}},_0x5f526b=this[_0x407258(0x2a5)][_0x407258(0x2c6)](_0x42d053,_0x3658dc,!0x1),_0x69de4d=this['_transformService'][_0x407258(0x2c6)](_0x48f7b1,_0x1242b5,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x5f526b))throw _0x5f526b[_0x407258(0x1f7)];if((0x0,l[_0x407258(0x3d6)])(_0x69de4d))throw _0x69de4d[_0x407258(0x1f7)];_0x3e54dc[_0x407258(0x269)]({..._0x1d40c2[_0x1204e4],'undoState':_0x5f526b[_0x407258(0x33f)][_0x407258(0x1b4)],'redoState':_0x69de4d[_0x407258(0x33f)][_0x407258(0x1b4)]}),_0x42d053=_0x5f526b[_0x407258(0x1df)],_0x48f7b1=_0x69de4d[_0x407258(0x1df)];}this['_docStateChangeManagerService']['setStateCache'](_0x45fdef,{'history':_0x53cdc7,'collaboration':_0x3e54dc});}};U=S([x(0x0,(0x0,t['Inject'])(t[_0x38a3cb(0x291)])),x(0x1,l[_0x38a3cb(0x344)]),x(0x2,(0x0,t[_0x38a3cb(0x361)])(d['DocStateChangeManagerService']))],U);let W=class{constructor(_0x50cb7e,_0x43a248){const _0x367d48=_0x38a3cb;this[_0x367d48(0x22e)]=_0x50cb7e,this['_transformService']=_0x43a248;}['prepareTransformSelections'](_0x2966f7){const _0x50b1a4=_0x38a3cb;var _0x394a84;let _0x2ba3c1=this[_0x50b1a4(0x22e)][_0x50b1a4(0x228)]()??[],_0x379be5=this[_0x50b1a4(0x22e)][_0x50b1a4(0x398)]();if(_0x2ba3c1[_0x50b1a4(0x154)]===0x0||_0x379be5==null)return null;let _0x2e88c8=_0x2966f7['unitID'],_0x2ecf7d=[{'id':_0x50b1a4(0x281),'params':{'unitId':_0x2e88c8,'actions':null,'textRanges':_0x2ba3c1}}],_0x38f9b6=this[_0x50b1a4(0x2a5)]['transformMutationsWithChangeset'](_0x2966f7,_0x2ecf7d);if(!(0x0,l[_0x50b1a4(0x3fd)])(_0x38f9b6))throw _0x38f9b6[_0x50b1a4(0x1f7)];let _0xf4370=(_0x394a84=_0x38f9b6[_0x50b1a4(0x33f)][0x0])==null?void 0x0:_0x394a84[_0x50b1a4(0x1b4)],_0x5a9f31=_0xf4370&&typeof _0xf4370==_0x50b1a4(0x2cd)&&_0x50b1a4(0x34d)in _0xf4370?_0xf4370[_0x50b1a4(0x34d)]:null;if(!Ce(_0x5a9f31))return null;let _0x30d965=xe(_0x2966f7[_0x50b1a4(0x203)][_0x50b1a4(0x1d9)](_0x4f1e19=>G(_0x4f1e19[_0x50b1a4(0x1b4)]))?_0x5a9f31[_0x50b1a4(0x193)](_0x47f29c=>!(_0x50b1a4(0x1c1)in _0x47f29c)):_0x5a9f31,{..._0x379be5,'options':_0x379be5['options']?{..._0x379be5[_0x50b1a4(0x260)],'wholeDocument':!0x1}:void 0x0}),_0x15cb4c={'unitId':_0x2e88c8,'subUnitId':_0x2e88c8};this['_docSelectionManagerService']['replaceSelectionInfoWithoutRefresh'](_0x30d965,_0x15cb4c);let _0xad7bf6=!0x0;return{'commit':()=>{_0xad7bf6=!0x1;},'rollback':()=>{const _0x57c5bb=_0x50b1a4;_0xad7bf6&&(_0xad7bf6=!0x1,this[_0x57c5bb(0x22e)][_0x57c5bb(0x1b3)](_0x379be5,_0x15cb4c));}};}};W=S([x(0x0,(0x0,t[_0x38a3cb(0x361)])(d['DocSelectionManagerService'])),x(0x1,l['ITransformService'])],W);function xe(_0x367884,_0x2b63a1){const _0x1bdc5a=_0x38a3cb;let _0x4e273d=[],_0x3e00eb=[];for(let _0x30f022 of _0x367884)Se(_0x30f022)?_0x3e00eb[_0x1bdc5a(0x159)](_0x30f022):_0x4e273d[_0x1bdc5a(0x159)](_0x30f022);return{..._0x2b63a1,'textRanges':_0x4e273d,'rectRanges':_0x3e00eb};}function Se(_0x432fd3){const _0x5a5bb5=_0x38a3cb;return _0x5a5bb5(0x1c1)in _0x432fd3;}function Ce(_0x299250){const _0x42d439=_0x38a3cb;return Array[_0x42d439(0x266)](_0x299250)&&_0x299250[_0x42d439(0x2fc)](_0x489bd8=>typeof _0x489bd8==_0x42d439(0x2cd)&&!!_0x489bd8&&_0x42d439(0x25c)in _0x489bd8&&_0x42d439(0x382)in _0x489bd8);}function G(_0x5925df){const _0x37689f=_0x38a3cb;return _0x5925df==='tableSource'?!0x0:Array[_0x37689f(0x266)](_0x5925df)?_0x5925df[_0x37689f(0x1d9)](_0x59d274=>G(_0x59d274)):!_0x5925df||typeof _0x5925df!=_0x37689f(0x2cd)?!0x1:Object[_0x37689f(0x24c)](_0x5925df)['some'](_0x2eb8c7=>G(_0x2eb8c7));}let K=class extends t[_0x38a3cb(0x251)]{constructor(_0x410a24,_0x1e047b,_0x3f5910,_0x2928c8,_0xa49f22,_0x3e7cae,_0x3055cb){const _0x52030d=_0x38a3cb;super(),this[_0x52030d(0x3f7)]=_0x410a24,this[_0x52030d(0x226)]=_0x1e047b,this[_0x52030d(0x2d6)]=_0x3f5910,this[_0x52030d(0x21e)]=_0x2928c8,this[_0x52030d(0x2ae)]=_0xa49f22,this[_0x52030d(0x364)]=_0x3e7cae,this['_localeService']=_0x3055cb,b(this,_0x52030d(0x2a6),new r['BehaviorSubject'](e[_0x52030d(0x30d)][_0x52030d(0x26b)])),this['_initEntityListener']();}[_0x38a3cb(0x144)](){const _0x2fbc4c=_0x38a3cb;this[_0x2fbc4c(0x166)](this[_0x2fbc4c(0x3f7)]['entityInit$']['subscribe'](_0x22ad0a=>{const _0x514d5f=_0x2fbc4c;_0x22ad0a instanceof e[_0x514d5f(0x160)]&&_0x22ad0a['addHandlerCallback']({'onTransformIME':_0x4d6885=>this['_docTransformIMECacheService'][_0x514d5f(0x38d)](_0x4d6885),'onTransformState':_0x461144=>this[_0x514d5f(0x2d6)][_0x514d5f(0x261)](_0x461144),'onPrepareTransformSelections':_0x16092c=>this[_0x514d5f(0x21e)][_0x514d5f(0x303)](_0x16092c),'onSyncEditingCollabCursor':_0x2b2f01=>this[_0x514d5f(0x2ae)][_0x514d5f(0x2da)](_0x2b2f01),'onTransformRemoteChangesetByIMECache':_0x4ac54d=>this[_0x514d5f(0x226)][_0x514d5f(0x173)](_0x4ac54d),'onTransformRemoteChangesetByStateCache':_0x527f2d=>this['_docTransformStateCacheService'][_0x514d5f(0x173)](_0x527f2d)});}));}};K=S([x(0x0,(0x0,t[_0x38a3cb(0x361)])(e[_0x38a3cb(0x14b)])),x(0x1,(0x0,t[_0x38a3cb(0x361)])(H)),x(0x2,(0x0,t[_0x38a3cb(0x361)])(U)),x(0x3,(0x0,t[_0x38a3cb(0x361)])(W)),x(0x4,(0x0,t[_0x38a3cb(0x361)])(O)),x(0x5,n[_0x38a3cb(0x145)]),x(0x6,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x34f)]))],K);let q=class extends t[_0x38a3cb(0x251)]{constructor(_0x2e00fb,_0x567f09,_0x4fb469,_0x3ea4f2){const _0x4a2bf4=_0x38a3cb;super(),this['_injector']=_0x2e00fb,this[_0x4a2bf4(0x18b)]=_0x567f09,this[_0x4a2bf4(0x35e)]=_0x4fb469,this['_collaborationSessionService']=_0x3ea4f2,b(this,_0x4a2bf4(0x16a),void 0x0),this['_init']();}[_0x38a3cb(0x119)](){const _0x1aac22=_0x38a3cb;this[_0x1aac22(0x3e8)](),this[_0x1aac22(0x183)](),this[_0x1aac22(0x36c)](),this[_0x1aac22(0x308)]();}[_0x38a3cb(0x308)](){const _0x568e9d=_0x38a3cb;this[_0x568e9d(0x166)](this['_collaborationSessionService'][_0x568e9d(0x32f)][_0x568e9d(0x329)](_0x516320=>{const _0x3db092=_0x568e9d;this[_0x3db092(0x16a)]=_0x516320==null?void 0x0:_0x516320['memberID'];}));}['_initWindowErrorListener'](){const _0x3ca3fd=_0x38a3cb;let _0x9790ba=_0x48af5f=>{const _0xb1dd9=_0x121f;var _0x120dbf;this['_uploadLog'](_0xb1dd9(0x1f7),'[Window\x20Error]:\x20'+_0x48af5f['message']+_0xb1dd9(0x335)+_0x48af5f['filename']+':'+_0x48af5f[_0xb1dd9(0x1c5)]+':'+_0x48af5f[_0xb1dd9(0x20f)]+'\x0a'+(((_0x120dbf=_0x48af5f[_0xb1dd9(0x1f7)])==null?void 0x0:_0x120dbf[_0xb1dd9(0x32b)])||''));};window[_0x3ca3fd(0x3fa)]('error',_0x9790ba),this['disposeWithMe'](()=>{const _0x158cd1=_0x3ca3fd;window[_0x158cd1(0x1b5)](_0x158cd1(0x1f7),_0x9790ba);});}[_0x38a3cb(0x183)](){const _0x2e75a9=_0x38a3cb;let _0x1237af=_0x584b69=>{const _0x5b61c2=_0x121f;this['_uploadLog']('error',_0x5b61c2(0x1cd)+_0x584b69[_0x5b61c2(0x394)]);};window[_0x2e75a9(0x3fa)](_0x2e75a9(0x2b4),_0x1237af),this[_0x2e75a9(0x166)](()=>{const _0x12ddc2=_0x2e75a9;window[_0x12ddc2(0x1b5)](_0x12ddc2(0x2b4),_0x1237af);});}[_0x38a3cb(0x36c)](){const _0x2f7023=_0x38a3cb;let _0x37dc33=this[_0x2f7023(0x35e)][_0x2f7023(0x1f7)]['bind'](this[_0x2f7023(0x35e)]);this[_0x2f7023(0x35e)]['error']=(..._0x341d9c)=>{const _0x346607=_0x2f7023;let _0x67b719=_0x341d9c[_0x346607(0x2f1)](_0x1d295a=>_0x1d295a instanceof Error?_0x1d295a[_0x346607(0x330)]+'\x0a'+_0x1d295a[_0x346607(0x32b)]:String(_0x1d295a))[_0x346607(0x1d5)]('\x20');this[_0x346607(0x1a3)]('error',_0x346607(0x3b3)+_0x67b719),_0x37dc33(..._0x341d9c);},this[_0x2f7023(0x166)](()=>{const _0xbfb9e7=_0x2f7023;this[_0xbfb9e7(0x35e)]['error']=_0x37dc33;});}[_0x38a3cb(0x1a3)](_0x18198b,_0x25afcf){const _0x463e82=_0x38a3cb;try{let _0x13d1f9={'userId':this[_0x463e82(0x16a)],'logLabel':_0x18198b,'content':_0x25afcf};this[_0x463e82(0x18b)][_0x463e82(0x29c)](_0x463e82(0x314),{'body':_0x13d1f9})['catch'](()=>{});}catch{}}};q=S([x(0x0,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x1,(0x0,t[_0x38a3cb(0x361)])(m[_0x38a3cb(0x128)])),x(0x2,t[_0x38a3cb(0x1da)]),x(0x3,(0x0,t['Inject'])(e[_0x38a3cb(0x3ca)]))],q);function we({state$:_0x284aa4}){const _0x2f095d=_0x38a3cb;let _0x10b334=(0x0,n[_0x2f095d(0x302)])(_0x284aa4,null,!0x0);return _0x10b334?(0x0,c['jsxs'])(_0x2f095d(0x37d),{'data-u-comp':_0x2f095d(0x3cc),'role':_0x2f095d(0x13e),'className':_0x2f095d(0x365),'children':[(0x0,c[_0x2f095d(0x27c)])(o['WarningIcon'],{'className':_0x2f095d(0x3dc)}),(0x0,c[_0x2f095d(0x27c)])('span',{'children':_0x10b334['content']}),(0x0,c[_0x2f095d(0x27c)])(a['Button'],{'size':_0x2f095d(0x186),'variant':_0x2f095d(0x18c),'onClick':()=>window[_0x2f095d(0x1dc)]['reload'](),'children':_0x10b334[_0x2f095d(0x2de)]})]}):null;}const Te='snapshot-loading-';let J=class extends t[_0x38a3cb(0x251)]{constructor(_0x412d7b,_0x50d3af,_0xff4933,_0x1a8692,_0x5cf638){const _0x453006=_0x38a3cb;super(),this[_0x453006(0x304)]=_0x412d7b,this['_messageService']=_0x50d3af,this[_0x453006(0x238)]=_0xff4933,this[_0x453006(0x3c6)]=_0x1a8692,b(this,_0x453006(0x1b9),new r[(_0x453006(0x1a0))](null)),b(this,_0x453006(0x280),new Set()),b(this,_0x453006(0x3e5),new Map()),b(this,'timeoutState$',this[_0x453006(0x1b9)][_0x453006(0x234)]());let _0xe6fe0b=()=>(0x0,s[_0x453006(0x2bd)])(we,{'state$':this[_0x453006(0x1c8)]});this[_0x453006(0x166)](_0x5cf638['registerComponent'](n[_0x453006(0x110)]['GLOBAL'],()=>(0x0,n['connectInjector'])(_0xe6fe0b,this[_0x453006(0x3c6)]))),this[_0x453006(0x166)](this[_0x453006(0x304)][_0x453006(0x19b)][_0x453006(0x329)](_0x70c3d6=>{const _0x5c829c=_0x453006;_0x70c3d6[_0x5c829c(0x1b2)](_0x4d6f7a=>this[_0x5c829c(0x3b2)](_0x4d6f7a));}));}[_0x38a3cb(0x15a)](){const _0x564cff=_0x38a3cb;this['_messageIds']['forEach'](_0x44dac1=>this[_0x564cff(0x364)][_0x564cff(0x165)](_0x44dac1)),this['_messageIds'][_0x564cff(0x229)](),this[_0x564cff(0x3e5)][_0x564cff(0x1b2)](({timeoutId:_0x4e84be})=>clearTimeout(_0x4e84be)),this['_blockProgressWatches']['clear'](),this[_0x564cff(0x1b9)][_0x564cff(0x240)](),super['dispose']();}[_0x38a3cb(0x3b2)](_0x429dfe){const _0x47499d=_0x38a3cb;let _0x3f92d6=''+Te+_0x429dfe[_0x47499d(0x2ec)];_0x429dfe[_0x47499d(0x225)]===l[_0x47499d(0x12d)]['COMPLETE']?(this[_0x47499d(0x1bf)](_0x429dfe[_0x47499d(0x2ec)]),this[_0x47499d(0x27e)](_0x429dfe[_0x47499d(0x2ec)]),this[_0x47499d(0x364)][_0x47499d(0x165)](_0x3f92d6),this['_messageIds'][_0x47499d(0x3fb)](_0x3f92d6)):_0x429dfe[_0x47499d(0x225)]===l['SnapshotLoadStage'][_0x47499d(0x3ec)]?(this[_0x47499d(0x1bf)](_0x429dfe[_0x47499d(0x2ec)]),this[_0x47499d(0x27e)](_0x429dfe[_0x47499d(0x2ec)]),this[_0x47499d(0x364)]['show']({'id':_0x3f92d6,'type':a[_0x47499d(0x317)][_0x47499d(0x1bd)],'content':this['_localeService']['t'](_0x47499d(0x346))}),this[_0x47499d(0x280)][_0x47499d(0x3fb)](_0x3f92d6)):_0x429dfe[_0x47499d(0x225)]!==l[_0x47499d(0x12d)]['LOADING_BLOCKS']||_0x429dfe[_0x47499d(0x2ba)]<=0xa?(this[_0x47499d(0x1bf)](_0x429dfe[_0x47499d(0x2ec)]),this[_0x47499d(0x364)][_0x47499d(0x165)](_0x3f92d6),this[_0x47499d(0x280)][_0x47499d(0x3fb)](_0x3f92d6)):this[_0x47499d(0x37a)](_0x429dfe)||(this['_messageService'][_0x47499d(0x386)]({'id':_0x3f92d6,'type':a[_0x47499d(0x317)][_0x47499d(0x3ac)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x47499d(0x374))+'\x20'+_0x429dfe[_0x47499d(0x129)]+'/'+_0x429dfe['totalBlocks']}),this[_0x47499d(0x280)][_0x47499d(0x354)](_0x3f92d6));}[_0x38a3cb(0x37a)](_0x4e7b63){const _0x57eaf8=_0x38a3cb;let _0x299b73=this[_0x57eaf8(0x3e5)]['get'](_0x4e7b63[_0x57eaf8(0x2ec)]);if((_0x299b73==null?void 0x0:_0x299b73[_0x57eaf8(0x129)])===_0x4e7b63[_0x57eaf8(0x129)])return _0x299b73['timedOut'];this[_0x57eaf8(0x1bf)](_0x4e7b63[_0x57eaf8(0x2ec)]);let _0x535c33=setTimeout(()=>{const _0x8a8aa2=_0x57eaf8;let _0x2e50eb=this[_0x8a8aa2(0x3e5)][_0x8a8aa2(0x255)](_0x4e7b63[_0x8a8aa2(0x2ec)]);if(!_0x2e50eb||_0x2e50eb[_0x8a8aa2(0x3ff)]!==_0x535c33)return;_0x2e50eb[_0x8a8aa2(0x2c8)]=!0x0;let _0x8cc85c=''+Te+_0x4e7b63[_0x8a8aa2(0x2ec)];this[_0x8a8aa2(0x364)][_0x8a8aa2(0x165)](_0x8cc85c),this['_messageIds'][_0x8a8aa2(0x3fb)](_0x8cc85c),this['_timeoutState$'][_0x8a8aa2(0x1af)]({'unitId':_0x4e7b63[_0x8a8aa2(0x2ec)],'content':this[_0x8a8aa2(0x238)]['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x4e7b63['loadedBlocks']),String(_0x4e7b63[_0x8a8aa2(0x2ba)])),'refreshLabel':this['_localeService']['t'](_0x8a8aa2(0x182))});},0xea60);return this[_0x57eaf8(0x3e5)][_0x57eaf8(0x3b8)](_0x4e7b63[_0x57eaf8(0x2ec)],{'loadedBlocks':_0x4e7b63[_0x57eaf8(0x129)],'timedOut':!0x1,'timeoutId':_0x535c33}),!0x1;}[_0x38a3cb(0x1bf)](_0x4d5651){const _0x523cd6=_0x38a3cb;let _0x35cc3f=this[_0x523cd6(0x3e5)][_0x523cd6(0x255)](_0x4d5651);_0x35cc3f&&(clearTimeout(_0x35cc3f[_0x523cd6(0x3ff)]),this[_0x523cd6(0x3e5)][_0x523cd6(0x3fb)](_0x4d5651),this[_0x523cd6(0x27e)](_0x4d5651));}[_0x38a3cb(0x27e)](_0x8da7e7){const _0x1e79f4=_0x38a3cb;var _0x24ee0d;((_0x24ee0d=this['_timeoutState$'][_0x1e79f4(0x3bd)])==null?void 0x0:_0x24ee0d['unitId'])===_0x8da7e7&&this[_0x1e79f4(0x1b9)][_0x1e79f4(0x1af)](null);}};J=S([x(0x0,(0x0,t[_0x38a3cb(0x361)])(l[_0x38a3cb(0x2ce)])),x(0x1,n[_0x38a3cb(0x145)]),x(0x2,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x34f)])),x(0x3,(0x0,t['Inject'])(t['Injector'])),x(0x4,n[_0x38a3cb(0x204)])],J);let Y=class extends t[_0x38a3cb(0x251)]{constructor(_0x5b495c,_0x2a3575,_0x2b4d9c,_0x21eadf,_0x25dd2a){const _0x5bbef1=_0x38a3cb;var _0x987226;super(),this[_0x5bbef1(0x36e)]=_0x5b495c,this[_0x5bbef1(0x3b6)]=_0x2a3575,this['_revisionService']=_0x2b4d9c,this[_0x5bbef1(0x35e)]=_0x21eadf,this['_userManagerService']=_0x25dd2a,b(this,'_cachedData',new Map()),b(this,'_saveTaskMap',new Map()),b(this,'_activeSaveTaskMap',new Map()),b(this,_0x5bbef1(0x3a6),!0x1),this[_0x5bbef1(0x3a6)]=!((_0x987226=this['_configService'][_0x5bbef1(0x1fa)](e[_0x5bbef1(0x2e6)]))!=null&&_0x987226[_0x5bbef1(0x11e)]);}[_0x38a3cb(0x35d)](){const _0x552897=_0x38a3cb;this[_0x552897(0x3a6)]=!0x0;}[_0x38a3cb(0x35a)](){const _0x5bb7f8=_0x38a3cb;this[_0x5bb7f8(0x3a6)]=!0x1;}get[_0x38a3cb(0x25b)](){const _0x3f174b=_0x38a3cb;let _0x55edc1=new Map(this[_0x3f174b(0x2dc)]);return this[_0x3f174b(0x19c)][_0x3f174b(0x1b2)]((_0x2c9c7e,_0x331fe)=>{_0x55edc1['has'](_0x331fe)||_0x55edc1['set'](_0x331fe,0x0);}),_0x55edc1;}[_0x38a3cb(0x15a)](){const _0x210634=_0x38a3cb;this[_0x210634(0x2a9)]||(super[_0x210634(0x15a)](),this[_0x210634(0x3a6)]=!0x0,this[_0x210634(0x2af)]()[_0x210634(0x24b)](_0x11657b=>this[_0x210634(0x35e)][_0x210634(0x1f7)](_0x11657b)));}async['loadOfflineData'](_0x4a3db4,_0x310076){const _0x560a2d=_0x38a3cb;if(this[_0x560a2d(0x3a6)])return null;let _0x2366aa=this[_0x560a2d(0x3e7)](_0x310076),_0x575bbc=await this['_localStorageService']['getItem']((0x0,e[_0x560a2d(0x366)])(_0x4a3db4,_0x2366aa));return(_0x575bbc==null?void 0x0:_0x575bbc[_0x560a2d(0x2fa)])===_0x4a3db4&&this[_0x560a2d(0x192)](_0x575bbc[_0x560a2d(0x118)])===_0x2366aa?_0x575bbc:null;}async[_0x38a3cb(0x112)](_0x471bf1,_0x176d7c,_0x427e37){const _0x10700c=_0x38a3cb;let _0x40c742=this[_0x10700c(0x3e7)](_0x427e37),_0x154c48=(0x0,e[_0x10700c(0x366)])(_0x471bf1,_0x40c742),_0x3e6e33=this[_0x10700c(0x3b6)][_0x10700c(0x306)](_0x154c48,{..._0x176d7c,'unitID':_0x471bf1,'userId':_0x40c742});return this[_0x10700c(0x363)](_0x154c48,_0x3e6e33),!!await _0x3e6e33;}async['backupOfflineData'](_0x57d90e,_0x2be2e5,_0x1a5908){const _0x28af52=_0x38a3cb;let _0x4f7b56=this['_getUserId'](_0x1a5908),_0xf0874d=(0x0,e[_0x28af52(0x366)])(_0x57d90e,_0x4f7b56),_0x22d5b8=this[_0x28af52(0x249)][_0x28af52(0x255)](_0xf0874d)??await this['_localStorageService'][_0x28af52(0x1ce)](_0xf0874d);if(!_0x22d5b8||this[_0x28af52(0x192)](_0x22d5b8[_0x28af52(0x118)])!==_0x4f7b56||_0x22d5b8['unitID']!==_0x57d90e)return;let _0x118228=Date[_0x28af52(0x33d)](),_0x4551da=new Date(_0x118228)[_0x28af52(0x167)]();await this[_0x28af52(0x3b6)]['setItem'](_0xf0874d+_0x28af52(0x2b6)+_0x118228,{'reason':_0x2be2e5,'createdAt':_0x4551da,'data':_0x22d5b8});}async[_0x38a3cb(0x176)](_0x530746,_0x8cb64d){const _0x3324d7=_0x38a3cb;let _0x3674d1=this['_getUserId'](_0x8cb64d),_0x255e6e=(0x0,e[_0x3324d7(0x366)])(_0x530746,_0x3674d1),_0x45282b=this[_0x3324d7(0x2dc)][_0x3324d7(0x255)](_0x255e6e);_0x45282b!==void 0x0&&(window[_0x3324d7(0x357)](_0x45282b),this['_saveTaskMap'][_0x3324d7(0x3fb)](_0x255e6e));let _0x4fca57=this[_0x3324d7(0x19c)]['get'](_0x255e6e);_0x4fca57&&await Promise[_0x3324d7(0x32e)](_0x4fca57),this[_0x3324d7(0x249)][_0x3324d7(0x3fb)](_0x255e6e),await this['_localStorageService'][_0x3324d7(0x1e4)](_0x255e6e);}['updateOfflineData'](_0x566717,_0x4c7010,_0x62558d,_0x25db1d,_0x33b94d){const _0x4ad075=_0x38a3cb;if(this[_0x4ad075(0x2a9)])return;let _0x4696ee=this[_0x4ad075(0x3e7)](_0x33b94d),_0x2cd48c=(0x0,e[_0x4ad075(0x366)])(_0x566717,_0x4696ee),_0xd039a5=this[_0x4ad075(0x107)][_0x4ad075(0x1aa)](_0x566717);this[_0x4ad075(0x249)][_0x4ad075(0x3b8)](_0x2cd48c,{'unitID':_0x566717,'userId':_0x4696ee,'type':_0x4c7010,'awaitingChangeset':_0x62558d,'mutations':_0x25db1d,'rev':_0xd039a5}),this[_0x4ad075(0x2dc)][_0x4ad075(0x3ab)](_0x2cd48c)||this[_0x4ad075(0x2b2)](_0x2cd48c);}['_getUserId'](_0x323e7d=((()=>{const _0x529f25=_0x38a3cb;var _0x5cf296;return(_0x5cf296=this['_userManagerService'][_0x529f25(0x1a4)]())==null?void 0x0:_0x5cf296[_0x529f25(0x268)];})())){const _0x5e601e=_0x38a3cb;return this[_0x5e601e(0x192)](_0x323e7d);}[_0x38a3cb(0x192)](_0x382e43){return _0x382e43===''||_0x382e43==null?void 0x0:_0x382e43;}['_scheduleSaving'](_0x51fb4b){const _0x4f2236=_0x38a3cb;let _0x3ef2c1=this[_0x4f2236(0x12b)]();_0x3ef2c1===0x0?this[_0x4f2236(0x3eb)](_0x51fb4b)[_0x4f2236(0x24b)](_0x213d92=>this[_0x4f2236(0x35e)][_0x4f2236(0x1f7)](_0x213d92)):this[_0x4f2236(0x2dc)][_0x4f2236(0x3b8)](_0x51fb4b,window[_0x4f2236(0x200)](()=>{const _0x4a8436=_0x4f2236;this[_0x4a8436(0x3eb)](_0x51fb4b)[_0x4a8436(0x24b)](_0x5a443e=>this[_0x4a8436(0x35e)]['error'](_0x5a443e));},_0x3ef2c1));}[_0x38a3cb(0x12b)](){const _0x22f0f1=_0x38a3cb;return this['_configService']['getConfig'](e[_0x22f0f1(0x24a)])??e[_0x22f0f1(0x1d2)];}[_0x38a3cb(0x3eb)](_0x3b9cb4){const _0x4a8033=_0x38a3cb;let _0x56e88e=this[_0x4a8033(0x2dc)][_0x4a8033(0x255)](_0x3b9cb4);_0x56e88e!==void 0x0&&window['clearTimeout'](_0x56e88e);let _0x29ccac=this['_cachedData'][_0x4a8033(0x255)](_0x3b9cb4);if(!_0x29ccac)return Promise[_0x4a8033(0x1e7)]();let _0x427991=this[_0x4a8033(0x19c)][_0x4a8033(0x255)](_0x3b9cb4),_0x591d29=Promise[_0x4a8033(0x32e)](_0x427991?[..._0x427991]:[])[_0x4a8033(0x376)](()=>this['_localStorageService'][_0x4a8033(0x306)](_0x3b9cb4,_0x29ccac))[_0x4a8033(0x376)](()=>{const _0x537ab2=_0x4a8033;_0x56e88e!==void 0x0&&this[_0x537ab2(0x2dc)][_0x537ab2(0x255)](_0x3b9cb4)===_0x56e88e&&(this[_0x537ab2(0x2dc)][_0x537ab2(0x3fb)](_0x3b9cb4),!this['_disposed']&&this['_cachedData'][_0x537ab2(0x255)](_0x3b9cb4)!==_0x29ccac&&this['_scheduleSaving'](_0x3b9cb4));});return this['_trackActiveSaveTask'](_0x3b9cb4,_0x591d29),_0x591d29;}[_0x38a3cb(0x363)](_0x14c7c9,_0x15995e){const _0x15b4db=_0x38a3cb;let _0x4d34aa=this['_activeSaveTaskMap'][_0x15b4db(0x255)](_0x14c7c9);_0x4d34aa||(_0x4d34aa=new Set(),this[_0x15b4db(0x19c)]['set'](_0x14c7c9,_0x4d34aa)),_0x4d34aa[_0x15b4db(0x354)](_0x15995e);let _0x55c57d=()=>{const _0x257e00=_0x15b4db;_0x4d34aa[_0x257e00(0x3fb)](_0x15995e),_0x4d34aa[_0x257e00(0x250)]===0x0&&this[_0x257e00(0x19c)][_0x257e00(0x3fb)](_0x14c7c9);};_0x15995e[_0x15b4db(0x376)](_0x55c57d,_0x55c57d);}async[_0x38a3cb(0x2af)](){const _0x56fbcf=_0x38a3cb;let _0x2d8929=[...this[_0x56fbcf(0x2dc)][_0x56fbcf(0x181)]()][_0x56fbcf(0x2f1)](_0x51cbaa=>this[_0x56fbcf(0x3eb)](_0x51cbaa));for(let _0x5f3b86 of this[_0x56fbcf(0x19c)][_0x56fbcf(0x24c)]())_0x2d8929[_0x56fbcf(0x159)](...[..._0x5f3b86][_0x56fbcf(0x2f1)](_0x1ece28=>_0x1ece28[_0x56fbcf(0x376)](()=>void 0x0)));await Promise[_0x56fbcf(0x3d7)](_0x2d8929);}};Y=S([x(0x0,t[_0x38a3cb(0x21a)]),x(0x1,t['ILocalStorageService']),x(0x2,(0x0,t[_0x38a3cb(0x361)])(l['RevisionService'])),x(0x3,t[_0x38a3cb(0x1da)]),x(0x4,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x246)]))],Y);var Ee=class extends t[_0x38a3cb(0x251)]{get[_0x38a3cb(0x2b5)](){const _0x2c1519=_0x38a3cb;return this[_0x2c1519(0x2be)]['getValue']();}constructor(){const _0x57e1ff=_0x38a3cb;super(),b(this,_0x57e1ff(0x2be),new r[(_0x57e1ff(0x1a0))](navigator['onLine'])),b(this,_0x57e1ff(0x2e9),this[_0x57e1ff(0x2be)][_0x57e1ff(0x234)]()),this[_0x57e1ff(0x22a)](),this['_listenToOnlineEvent']();}[_0x38a3cb(0x15a)](){const _0x2fcaf3=_0x38a3cb;super[_0x2fcaf3(0x15a)](),this[_0x2fcaf3(0x2be)]['complete']();}[_0x38a3cb(0x383)](){const _0xd3986b=_0x38a3cb;this[_0xd3986b(0x166)]((0x0,r[_0xd3986b(0x20c)])((0x0,r[_0xd3986b(0x2f5)])(window,_0xd3986b(0x2b5)),(0x0,r[_0xd3986b(0x2f5)])(window,_0xd3986b(0x1ec)),(0x0,r[_0xd3986b(0x2f5)])(document,_0xd3986b(0x282))['pipe']((0x0,r[_0xd3986b(0x2f1)])(()=>document[_0xd3986b(0x143)]===_0xd3986b(0x3f5)),(0x0,r[_0xd3986b(0x193)])(_0x4de623=>_0x4de623)))[_0xd3986b(0x263)]((0x0,r[_0xd3986b(0x193)])(()=>navigator['onLine']))[_0xd3986b(0x329)](()=>this[_0xd3986b(0x2be)]['next'](!0x0)));}[_0x38a3cb(0x22a)](){const _0x464915=_0x38a3cb;this['disposeWithMe']((0x0,r[_0x464915(0x2f5)])(window,'offline')[_0x464915(0x329)](()=>this[_0x464915(0x2be)][_0x464915(0x1af)](!0x1)));}};let X=class extends t[_0x38a3cb(0x1f6)]{constructor(_0x56f3e1=se,_0x345d32,_0x447a1d,_0x1d19ef,_0x5410c5){const _0x2455ac=_0x38a3cb;super(),this[_0x2455ac(0x111)]=_0x56f3e1,this[_0x2455ac(0x1d6)]=_0x345d32,this[_0x2455ac(0x3c6)]=_0x447a1d,this[_0x2455ac(0x36e)]=_0x1d19ef,this[_0x2455ac(0x3f2)]=_0x5410c5;let {..._0x2a08b0}=(0x0,t[_0x2455ac(0x20c)])({},se,this[_0x2455ac(0x111)]);this[_0x2455ac(0x36e)][_0x2455ac(0x2c5)](_0x2455ac(0x3bc),_0x2a08b0);}[_0x38a3cb(0x322)](){const _0x392ec7=_0x38a3cb;this[_0x392ec7(0x371)](),this[_0x392ec7(0x166)](this[_0x392ec7(0x3f2)][_0x392ec7(0x222)](T)),this[_0x392ec7(0x100)]();}[_0x38a3cb(0x1d4)](){const _0x293d9f=_0x38a3cb;this[_0x293d9f(0x3d9)]();}['_registerDependencies'](){const _0x109f3f=_0x38a3cb;var _0x4bda2d;let _0x588dc1=[[D],[m[_0x109f3f(0x2ea)],{'useClass':m[_0x109f3f(0x3ce)]}],[e['ILocalCacheService'],{'useClass':Y}],[e[_0x109f3f(0x109)],{'useClass':Ee}],[C],[V],[j],[B],[J]];this['_config'][_0x109f3f(0x294)]!==!0x1&&_0x588dc1[_0x109f3f(0x159)]([W],[H],[U],[O],[K],[E]),this[_0x109f3f(0x111)][_0x109f3f(0x29b)]&&_0x588dc1[_0x109f3f(0x159)]([q]),(0x0,t[_0x109f3f(0x33b)])(this['_injector'],(0x0,t[_0x109f3f(0x3f4)])(_0x588dc1,(_0x4bda2d=this[_0x109f3f(0x111)])==null?void 0x0:_0x4bda2d[_0x109f3f(0x103)]));}[_0x38a3cb(0x3d9)](){const _0x169e55=_0x38a3cb;this['_config'][_0x169e55(0x294)]!==!0x1&&this[_0x169e55(0x166)](this[_0x169e55(0x1d6)][_0x169e55(0x37c)](t[_0x169e55(0x2f8)]['UNIVER_DOC'],[F])),this[_0x169e55(0x166)](this[_0x169e55(0x1d6)]['registerRenderModule'](t[_0x169e55(0x2f8)]['UNIVER_SHEET'],[L]));}[_0x38a3cb(0x100)](){const _0x89fb2d=_0x38a3cb;(0x0,t[_0x89fb2d(0x231)])(this[_0x89fb2d(0x3c6)],[[j],[B],[C],[V],[J]]),this[_0x89fb2d(0x111)][_0x89fb2d(0x294)]!==!0x1&&(0x0,t[_0x89fb2d(0x231)])(this['_injector'],[[K],[E]]),this[_0x89fb2d(0x111)]['enableFrontendLog']&&(0x0,t[_0x89fb2d(0x231)])(this['_injector'],[[q]]);}};b(X,_0x38a3cb(0x30f),_0x38a3cb(0x3ed)),b(X,'packageName',ae),b(X,_0x38a3cb(0x1a9),oe),X=S([(0x0,t[_0x38a3cb(0x359)])(u['UniverLicensePlugin'],d[_0x38a3cb(0x3b7)],p[_0x38a3cb(0x1f1)],m[_0x38a3cb(0xff)],l[_0x38a3cb(0x22b)],f[_0x38a3cb(0x370)],e[_0x38a3cb(0x3db)]),x(0x1,p[_0x38a3cb(0x29f)]),x(0x2,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x3,t[_0x38a3cb(0x21a)]),x(0x4,t[_0x38a3cb(0x34c)])],X);let Z=class extends e[_0x38a3cb(0x11c)]{constructor(_0x32d507,_0x21cd56,_0x18e4dc,_0x32a6f3,_0x115bef){const _0x2506cd=_0x38a3cb;super(_0x32d507,_0x21cd56,_0x18e4dc,_0x32a6f3,_0x115bef),b(this,_0x2506cd(0x1a5),new r[(_0x2506cd(0x3b1))]()),this[_0x2506cd(0x166)](()=>{const _0x2a77af=_0x2506cd;this[_0x2a77af(0x1a5)][_0x2a77af(0x1af)](),this['_dispose$'][_0x2a77af(0x240)]();});}async[_0x38a3cb(0x23c)](_0x813783){const _0x152f91=_0x38a3cb;let _0x3581ff=await this[_0x152f91(0x194)](),_0x1e3fe6=this['_createSocketURL'](_0x813783,_0x3581ff);return this['_doCreateSocket'](_0x1e3fe6);}[_0x38a3cb(0x1ba)](_0x217b1d,_0x1c8baa){const _0x2abc5e=_0x38a3cb;let _0x23a5e4=typeof window>'u'?new URL(_0x217b1d):new URL(_0x217b1d,window[_0x2abc5e(0x1dc)]['origin']);_0x23a5e4[_0x2abc5e(0x3b5)][_0x2abc5e(0x3b8)]('sessionTicket',_0x1c8baa);let _0x24b14a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x2abc5e(0x311)]);return _0x24b14a['get'](_0x2abc5e(0x392))&&_0x23a5e4[_0x2abc5e(0x3b5)][_0x2abc5e(0x3b8)](_0x2abc5e(0x392),_0x24b14a['get'](_0x2abc5e(0x392))),_0x23a5e4['toString']();}async[_0x38a3cb(0x194)](){const _0x568996=_0x38a3cb;var _0xeabe8a;let _0x242e8d=this[_0x568996(0x36e)][_0x568996(0x1fa)](e[_0x568996(0x2e6)]),_0x460bfe=(_0x242e8d==null?void 0x0:_0x242e8d[_0x568996(0x2d9)])??e[_0x568996(0x3c9)];return((_0xeabe8a=(await(0x0,r[_0x568996(0x368)])(this[_0x568996(0x18b)][_0x568996(0x1e2)](_0x568996(0x214),_0x460bfe,{'headers':{'Content-Type':_0x568996(0x270)}})['pipe']((0x0,r['filter'])(_0x164dd0=>_0x164dd0['type']===m[_0x568996(0x21b)][_0x568996(0x1c9)]),(0x0,r[_0x568996(0x3a0)])(0x4e20),(0x0,r['takeUntil'])(this[_0x568996(0x1a5)]))))[_0x568996(0x11b)])==null?void 0x0:_0xeabe8a[_0x568996(0x29d)])??'';}};Z=S([x(0x0,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x1,(0x0,t[_0x38a3cb(0x361)])(m['HTTPService'])),x(0x2,t[_0x38a3cb(0x21a)]),x(0x3,t[_0x38a3cb(0x1da)]),x(0x4,l[_0x38a3cb(0x387)])],Z);let Q=class extends t[_0x38a3cb(0x251)]{constructor(_0x4d06c6,_0x236948,_0xd88cd){const _0x187e7a=_0x38a3cb;super(),this[_0x187e7a(0x39c)]=_0x4d06c6,this[_0x187e7a(0x18b)]=_0x236948,this[_0x187e7a(0x36e)]=_0xd88cd;}async['runOnServer'](_0x1fe9fb,_0x2185b8,_0xaf4a35,..._0x3bca78){const _0x3936d8=_0x38a3cb;let _0x247dad=this[_0x3936d8(0x39c)]['getFocusedUnit']();if(!_0x247dad)throw Error(_0x3936d8(0x2ad));let _0x1dfe22=(this['_configService']['getConfig'](e['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY'])??e[_0x3936d8(0x275)])+'/'+_0x1fe9fb+_0x3936d8(0x27d)+_0x2185b8,_0x2bd98f={'scriptId':_0x1fe9fb,'runId':new URL(window[_0x3936d8(0x1dc)][_0x3936d8(0x375)])['searchParams']['get']('runId')??'','function':_0x2185b8,'unitId':_0x247dad['getUnitId'](),'argsOfFunction':JSON[_0x3936d8(0x39e)](_0x3bca78),'invokeId':_0xaf4a35[_0x3936d8(0x3ad)]??'','executionId':_0xaf4a35['executionId']??''};try{let _0x5869ff=await this['_httpService'][_0x3936d8(0x29c)](_0x1dfe22,{'body':_0x2bd98f});return _0x5869ff[_0x3936d8(0x11b)][_0x3936d8(0x1f7)]&&_0x5869ff['body'][_0x3936d8(0x1f7)][_0x3936d8(0x247)]!==v[_0x3936d8(0x3b9)]['OK']?'Failed':_0x5869ff['body'][_0x3936d8(0x18e)];}catch{return _0x3936d8(0x334);}}};Q=S([x(0x0,t[_0x38a3cb(0x339)]),x(0x1,(0x0,t[_0x38a3cb(0x361)])(m['HTTPService'])),x(0x2,t[_0x38a3cb(0x21a)])],Q);const De=0x7530,$='ACTIVE_UNIT_EVENT_CHANNEL';var Oe=class extends t[_0x38a3cb(0x251)]{constructor(){const _0x3d32ee=_0x38a3cb;super(),b(this,_0x3d32ee(0x104),(0x0,t[_0x3d32ee(0x332)])()),b(this,_0x3d32ee(0x35c),new Set()),b(this,_0x3d32ee(0x28c),new Map()),b(this,'_heartbeatTimer',null),b(this,_0x3d32ee(0x3fc),new Map()),b(this,'_unitStatus',new Map()),this[_0x3d32ee(0x119)]();}[_0x38a3cb(0x15a)](){const _0x404539=_0x38a3cb;super[_0x404539(0x15a)](),this[_0x404539(0x3fc)][_0x404539(0x1b2)]((_0x1b86d4,_0x3c4811)=>this[_0x404539(0x2c4)](_0x3c4811)),this[_0x404539(0x28e)]&&window[_0x404539(0x2b8)](this['_heartbeatTimer']);}[_0x38a3cb(0x3d3)](_0x182d20){const _0x3c45a4=_0x38a3cb;return this[_0x3c45a4(0x152)](_0x182d20)[_0x3c45a4(0x263)]((0x0,r['distinctUntilChanged'])());}['editingUnit'](_0x1046a5){const _0x198182=_0x38a3cb;this[_0x198182(0x35c)][_0x198182(0x250)]===0x0&&this[_0x198182(0x300)](),this[_0x198182(0x35c)]['add'](_0x1046a5),this['_send']({'type':0x0,'memberID':this[_0x198182(0x104)],'unitIDs':[_0x1046a5],'isForwarded':!0x1});}['disposeUnit'](_0x57ca6f){const _0x3d8ff4=_0x38a3cb;this[_0x3d8ff4(0x35c)][_0x3d8ff4(0x3fb)](_0x57ca6f),this[_0x3d8ff4(0x35c)][_0x3d8ff4(0x250)]===0x0&&this[_0x3d8ff4(0x28e)]&&window[_0x3d8ff4(0x2b8)](this[_0x3d8ff4(0x28e)]);}[_0x38a3cb(0x119)](){const _0x342781=_0x38a3cb;this[_0x342781(0x166)]((0x0,t['toDisposable'])((0x0,r[_0x342781(0x2f5)])(window,_0x342781(0x15f))[_0x342781(0x329)](_0x48af46=>{const _0x2388e7=_0x342781;if(_0x48af46[_0x2388e7(0x24e)]!==$||!_0x48af46[_0x2388e7(0x2bb)])return;let _0x28f816=JSON[_0x2388e7(0x253)](_0x48af46[_0x2388e7(0x2bb)]);this['_handleEvent'](_0x28f816);}))),window[_0x342781(0x3fa)](_0x342781(0x180),()=>this['_send']({'type':0x1,'memberID':this[_0x342781(0x104)],'unitIDs':Array[_0x342781(0x35b)](this['_selfUnitIDs'])}));}[_0x38a3cb(0x17b)](_0x5bbbed){const _0x368063=_0x38a3cb;switch(_0x5bbbed['type']){case 0x0:this['_handleJoinEvent'](_0x5bbbed);break;case 0x1:this[_0x368063(0x1e0)](_0x5bbbed);break;case 0x2:this[_0x368063(0x31f)](_0x5bbbed);}}['_handleJoinEvent'](_0x247952){const _0x56d672=_0x38a3cb;let {unitIDs:_0x2c39c2,memberID:_0x2a03e5,isForwarded:_0x5bf2b2}=_0x247952;_0x2c39c2['forEach'](_0x4e9f38=>{const _0x38ae11=_0x121f;if(!_0x5bf2b2&&this[_0x38ae11(0x28c)]['has'](_0x4e9f38)&&this[_0x38ae11(0x152)](_0x4e9f38)[_0x38ae11(0x1af)](e['UnitStatus'][_0x38ae11(0x2c7)]),!this[_0x38ae11(0x28c)][_0x38ae11(0x3ab)](_0x4e9f38)||!this['_unitOnClients'][_0x38ae11(0x255)](_0x4e9f38)['has'](_0x2a03e5)){let _0x283ef5=this[_0x38ae11(0x28c)][_0x38ae11(0x255)](_0x4e9f38)||new Set();_0x283ef5[_0x38ae11(0x354)](_0x2a03e5),this['_unitOnClients']['set'](_0x4e9f38,_0x283ef5),this['_scheduleClearOtherTimer'](_0x2a03e5);}}),_0x5bf2b2||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x56d672(0x35c)]],'isForwarded':!0x0});}[_0x38a3cb(0x1b7)](_0x3f0156){const _0x2d932f=_0x38a3cb;this[_0x2d932f(0x2c4)](_0x3f0156);let _0x328c72=window['setTimeout'](()=>{const _0x4a04c4=_0x2d932f;this[_0x4a04c4(0x28c)][_0x4a04c4(0x1b2)](_0x3383b3=>{_0x3383b3['delete'](_0x3f0156);});},De*0x2);this[_0x2d932f(0x3fc)][_0x2d932f(0x3b8)](_0x3f0156,_0x328c72);}[_0x38a3cb(0x2c4)](_0x37eea9){const _0x591097=_0x38a3cb;if(this[_0x591097(0x3fc)][_0x591097(0x3ab)](_0x37eea9)){let _0x47cf87=this[_0x591097(0x3fc)][_0x591097(0x255)](_0x37eea9);_0x47cf87&&window[_0x591097(0x357)](_0x47cf87),this['_clearOtherTimers'][_0x591097(0x3b8)](_0x37eea9,null);}}['_handleLeaveEvent'](_0x1e1d06){const _0x44f4eb=_0x38a3cb;let {memberID:_0x5e74a6,unitIDs:_0x18cacc}=_0x1e1d06;_0x18cacc[_0x44f4eb(0x1b2)](_0x508fd1=>{const _0x2f7a2a=_0x44f4eb;var _0x36fd03;let _0x991df3=this[_0x2f7a2a(0x28c)][_0x2f7a2a(0x255)](_0x508fd1);_0x991df3&&(_0x991df3[_0x2f7a2a(0x3fb)](_0x5e74a6),(_0x36fd03=this['_ensureSubject'](_0x508fd1))==null||_0x36fd03[_0x2f7a2a(0x1af)](_0x991df3[_0x2f7a2a(0x250)]===0x0?e[_0x2f7a2a(0x236)]['NO_OTHER_CLIENTS_EDITING']:e[_0x2f7a2a(0x236)][_0x2f7a2a(0x2c7)]));}),this[_0x44f4eb(0x2c4)](_0x5e74a6);}['_handleHeartbeatEvent'](_0x39c2d4){const _0x4c188f=_0x38a3cb;this['_scheduleClearOtherTimer'](_0x39c2d4[_0x4c188f(0x3fe)]);}['_send'](_0x12443d){const _0x471ba9=_0x38a3cb;localStorage[_0x471ba9(0x306)]($,JSON['stringify'](_0x12443d));}[_0x38a3cb(0x300)](){const _0x4e6642=_0x38a3cb;this[_0x4e6642(0x28e)]=window[_0x4e6642(0x2e5)](()=>{const _0x303805=_0x4e6642;this[_0x303805(0x3d2)]({'type':0x2,'memberID':this['_id']});},De);}[_0x38a3cb(0x152)](_0x39855d){const _0x491284=_0x38a3cb;return this[_0x491284(0x15c)][_0x491284(0x3ab)](_0x39855d)||this[_0x491284(0x15c)][_0x491284(0x3b8)](_0x39855d,new r[(_0x491284(0x1a0))](e[_0x491284(0x236)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x491284(0x15c)][_0x491284(0x255)](_0x39855d);}};Object[_0x38a3cb(0x33e)](exports,'BrowserCollaborationSocketService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x38a3cb(0x33e)](exports,_0x38a3cb(0x23d),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x38a3cb(0x33e)](exports,_0x38a3cb(0x1ef),{'enumerable':!0x0,'get':function(){return Q;}}),exports['SheetCollabCursorShape']=I,Object[_0x38a3cb(0x33e)](exports,_0x38a3cb(0x21f),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x38a3cb(0x162)]=Oe;