@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505211607 → 0.7.0-nightly.202505231607

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 (44) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/fa-IR.js +1 -1
  5. package/lib/cjs/locale/fr-FR.js +1 -1
  6. package/lib/cjs/locale/ru-RU.js +1 -1
  7. package/lib/cjs/locale/vi-VN.js +1 -1
  8. package/lib/cjs/locale/zh-CN.js +1 -1
  9. package/lib/cjs/locale/zh-TW.js +1 -1
  10. package/lib/es/facade.js +1 -1
  11. package/lib/es/index.js +1 -1
  12. package/lib/es/locale/en-US.js +1 -1
  13. package/lib/es/locale/fa-IR.js +1 -1
  14. package/lib/es/locale/fr-FR.js +1 -1
  15. package/lib/es/locale/ru-RU.js +1 -1
  16. package/lib/es/locale/vi-VN.js +1 -1
  17. package/lib/es/locale/zh-CN.js +1 -1
  18. package/lib/es/locale/zh-TW.js +1 -1
  19. package/lib/facade.js +1 -1
  20. package/lib/index.js +1 -1
  21. package/lib/locale/en-US.js +1 -1
  22. package/lib/locale/fa-IR.js +1 -1
  23. package/lib/locale/fr-FR.js +1 -1
  24. package/lib/locale/ru-RU.js +1 -1
  25. package/lib/locale/vi-VN.js +1 -1
  26. package/lib/locale/zh-CN.js +1 -1
  27. package/lib/locale/zh-TW.js +1 -1
  28. package/lib/types/locale/en-US.d.ts +38 -2
  29. package/lib/types/locale/fa-IR.d.ts +2 -2
  30. package/lib/types/locale/fr-FR.d.ts +2 -2
  31. package/lib/types/locale/ru-RU.d.ts +2 -2
  32. package/lib/types/locale/vi-VN.d.ts +2 -2
  33. package/lib/types/locale/zh-CN.d.ts +3 -39
  34. package/lib/types/locale/zh-TW.d.ts +2 -2
  35. package/lib/umd/facade.js +1 -1
  36. package/lib/umd/index.js +1 -1
  37. package/lib/umd/locale/en-US.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ru-RU.js +1 -1
  41. package/lib/umd/locale/vi-VN.js +1 -1
  42. package/lib/umd/locale/zh-CN.js +1 -1
  43. package/lib/umd/locale/zh-TW.js +1 -1
  44. package/package.json +16 -16
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5029fa=_0x4dbf;(function(_0x12180c,_0x40a057){const _0x27f1c7=_0x4dbf,_0x59e086=_0x12180c();while(!![]){try{const _0x1d570e=-parseInt(_0x27f1c7(0xf2))/0x1+parseInt(_0x27f1c7(0x102))/0x2*(-parseInt(_0x27f1c7(0x100))/0x3)+-parseInt(_0x27f1c7(0xf8))/0x4*(-parseInt(_0x27f1c7(0xf5))/0x5)+-parseInt(_0x27f1c7(0xf3))/0x6*(-parseInt(_0x27f1c7(0xff))/0x7)+parseInt(_0x27f1c7(0xfb))/0x8*(parseInt(_0x27f1c7(0x101))/0x9)+-parseInt(_0x27f1c7(0xfc))/0xa*(-parseInt(_0x27f1c7(0xfe))/0xb)+-parseInt(_0x27f1c7(0xf7))/0xc;if(_0x1d570e===_0x40a057)break;else _0x59e086['push'](_0x59e086['shift']());}catch(_0x39bce2){_0x59e086['push'](_0x59e086['shift']());}}}(_0xb638,0xa0d35));const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x5029fa(0xf1));function _0x4dbf(_0x249072,_0x24b55d){const _0xb63812=_0xb638();return _0x4dbf=function(_0x4dbf51,_0x45b9b4){_0x4dbf51=_0x4dbf51-0xf1;let _0x37e176=_0xb63812[_0x4dbf51];return _0x37e176;},_0x4dbf(_0x249072,_0x24b55d);}class c extends e[_0x5029fa(0xfa)]{[_0x5029fa(0xf6)](_0x3a85e0,_0xd53dc,..._0x33626f){const _0x1bcc84=_0x5029fa;return this['_injector'][_0x1bcc84(0xf9)](t[_0x1bcc84(0xfd)])[_0x1bcc84(0xf6)](_0x3a85e0,_0xd53dc,{},..._0x33626f);}}function _0xb638(){const _0x57dab2=['FUniver','40eOfnaj','200bpaqQb','RemoteUniscriptService','610544GaeEHp','31178EyGUqK','3CRynaA','299817lPIOMq','1561054CplVcu','@univerjs/core/facade','429290poeMdy','348CzMkmq','extend','4455515kZjChn','runOnServer','6690264nQjKGT','4ARAqGd','get'];_0xb638=function(){return _0x57dab2;};return _0xb638();}e[_0x5029fa(0xfa)][_0x5029fa(0xf4)](c);
1
+ 'use strict';const _0x1817f9=_0x6df2;(function(_0x1bc15a,_0x4f46de){const _0x55e7ec=_0x6df2,_0x3a0cc1=_0x1bc15a();while(!![]){try{const _0x4402ad=-parseInt(_0x55e7ec(0xf4))/0x1*(parseInt(_0x55e7ec(0xec))/0x2)+parseInt(_0x55e7ec(0xea))/0x3+parseInt(_0x55e7ec(0xed))/0x4*(parseInt(_0x55e7ec(0xf1))/0x5)+-parseInt(_0x55e7ec(0xf0))/0x6+parseInt(_0x55e7ec(0xe9))/0x7+-parseInt(_0x55e7ec(0xf5))/0x8+parseInt(_0x55e7ec(0xee))/0x9;if(_0x4402ad===_0x4f46de)break;else _0x3a0cc1['push'](_0x3a0cc1['shift']());}catch(_0x2ac868){_0x3a0cc1['push'](_0x3a0cc1['shift']());}}}(_0x1a4c,0x7b05b));function _0x1a4c(){const _0xfc81bd=['53ecQqzv','7012144gFQQZN','runOnServer','2983309ypgnjH','2505024IydWGM','RemoteUniscriptService','36646KUfMUj','4IXlpYi','12594690ivxswU','FUniver','2302920fDKQJF','373755rjApyl','_injector','@univerjs-pro/collaboration-client-ui'];_0x1a4c=function(){return _0xfc81bd;};return _0x1a4c();}const t=require(_0x1817f9(0xf3)),e=require('@univerjs/core/facade');class c extends e[_0x1817f9(0xef)]{[_0x1817f9(0xe8)](_0x34ceb1,_0x239ab2,..._0x43ce03){const _0x2783a2=_0x1817f9;return this[_0x2783a2(0xf2)]['get'](t[_0x2783a2(0xeb)])['runOnServer'](_0x34ceb1,_0x239ab2,{},..._0x43ce03);}}function _0x6df2(_0x410be8,_0x167436){const _0x1a4cb7=_0x1a4c();return _0x6df2=function(_0x6df2f,_0x38a371){_0x6df2f=_0x6df2f-0xe8;let _0xf4d360=_0x1a4cb7[_0x6df2f];return _0xf4d360;},_0x6df2(_0x410be8,_0x167436);}e[_0x1817f9(0xef)]['extend'](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xbd72b5=_0x4dae;(function(_0x18bc9d,_0x1aff82){const _0x3a4475=_0x4dae,_0x901ec2=_0x18bc9d();while(!![]){try{const _0x38f962=-parseInt(_0x3a4475(0x246))/0x1+parseInt(_0x3a4475(0x341))/0x2+parseInt(_0x3a4475(0x387))/0x3*(parseInt(_0x3a4475(0x2be))/0x4)+parseInt(_0x3a4475(0x3ba))/0x5*(parseInt(_0x3a4475(0x21b))/0x6)+parseInt(_0x3a4475(0x302))/0x7+parseInt(_0x3a4475(0x349))/0x8*(parseInt(_0x3a4475(0x3d2))/0x9)+parseInt(_0x3a4475(0x334))/0xa*(-parseInt(_0x3a4475(0x19e))/0xb);if(_0x38f962===_0x1aff82)break;else _0x901ec2['push'](_0x901ec2['shift']());}catch(_0x36bf3b){_0x901ec2['push'](_0x901ec2['shift']());}}}(_0x3f5d,0xbc6bb));var Ve=Object[_0xbd72b5(0x377)],Xe=(_0x42c5a7,_0x2dd4f6,_0x296cc3)=>_0x2dd4f6 in _0x42c5a7?Ve(_0x42c5a7,_0x2dd4f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x296cc3}):_0x42c5a7[_0x2dd4f6]=_0x296cc3,h=(_0x40c544,_0x3a363e,_0x4857f4)=>Xe(_0x40c544,typeof _0x3a363e!=_0xbd72b5(0x24d)?_0x3a363e+'':_0x3a363e,_0x4857f4);Object['defineProperty'](exports,Symbol[_0xbd72b5(0x322)],{'value':_0xbd72b5(0x2ca)});const u=require(_0xbd72b5(0x1a0)),a=require(_0xbd72b5(0x1b5)),p=require(_0xbd72b5(0x331)),G=require('@univerjs/network'),b=require('@univerjs/docs-ui'),Ge=require(_0xbd72b5(0x3f3)),d=require(_0xbd72b5(0x1e8)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0xbd72b5(0x18e)),g=require('@univerjs/sheets'),$=require(_0xbd72b5(0x332)),X=require(_0xbd72b5(0x339)),P=require(_0xbd72b5(0x2aa)),T=require(_0xbd72b5(0x3ce)),D=require('@univerjs/design'),M=require(_0xbd72b5(0x1d4)),Ke=require('@univerjs/rpc');var qe=Object[_0xbd72b5(0x402)],ze=(_0x24c695,_0x17f63d,_0x2863f0,_0x23da91)=>{const _0x4f47ce=_0xbd72b5;for(var _0x51e3d2=_0x23da91>0x1?void 0x0:_0x23da91?qe(_0x17f63d,_0x2863f0):_0x17f63d,_0x502dde=_0x24c695[_0x4f47ce(0x1cf)]-0x1,_0xda8d79;_0x502dde>=0x0;_0x502dde--)(_0xda8d79=_0x24c695[_0x502dde])&&(_0x51e3d2=_0xda8d79(_0x51e3d2)||_0x51e3d2);return _0x51e3d2;},Te=(_0xc58053,_0x158940)=>(_0x51f059,_0x32d019)=>_0x158940(_0x51f059,_0x32d019,_0xc58053);let de=class extends a[_0xbd72b5(0x283)]{constructor(_0x13f3e4,_0x1fbda3){const _0xe60bd3=_0xbd72b5;super(),this[_0xe60bd3(0x2e4)]=_0x13f3e4,this[_0xe60bd3(0x2fa)]=_0x1fbda3,this[_0xe60bd3(0x1c9)]();}[_0xbd72b5(0x1c9)](){const _0x4e0f1d=_0xbd72b5,_0x48ecab=this;this['disposeWithMe'](this['_docClipboardService'][_0x4e0f1d(0x1c4)]({'onBeforePasteImage':async _0x45d53c=>{const _0x452be0=_0x4e0f1d,_0x47b1a6=await _0x48ecab['_imageIoService'][_0x452be0(0x3c0)](_0x45d53c);return _0x47b1a6?{'source':_0x47b1a6[_0x452be0(0x30e)],'imageSourceType':_0x47b1a6[_0x452be0(0x36f)]}:null;}}));}};de=ze([Te(0x0,b[_0xbd72b5(0x1e6)]),Te(0x1,Ge[_0xbd72b5(0x204)])],de);const Oe=[_0xbd72b5(0x333),_0xbd72b5(0x29f),_0xbd72b5(0x2ea),'red.300',_0xbd72b5(0x303),_0xbd72b5(0x1e7)];class me extends a[_0xbd72b5(0x1b7)]{constructor(){const _0x454ca7=_0xbd72b5;super(...arguments),h(this,_0x454ca7(0x2c5),new Map()),h(this,'_colorIndex',0x0);}[_0xbd72b5(0x35c)](_0x171714){const _0x1fe4d5=_0xbd72b5;if(this[_0x1fe4d5(0x2c5)][_0x1fe4d5(0x3c8)](_0x171714))return this['_assignedColors'][_0x1fe4d5(0x206)](_0x171714);const _0x55dad1=Oe[this[_0x1fe4d5(0x2e7)]];return this[_0x1fe4d5(0x2e7)]=(this['_colorIndex']+0x1)%Oe[_0x1fe4d5(0x1cf)],this[_0x1fe4d5(0x2c5)]['set'](_0x171714,_0x55dad1),_0x55dad1;}}function Pe(_0x31e71a){let _0x52ca4a='';for(const _0x206064 of _0x31e71a){const {startOffset:_0x4225ee,endOffset:_0x28440e,isActive:_0x54c586,rangeType:_0xeeb01b,segmentId:_0x172d60,segmentPage:_0x8463e7}=_0x206064;_0x52ca4a['length']&&(_0x52ca4a+=','),_0x52ca4a+=_0x4225ee+':'+_0x28440e+':'+(_0x54c586?'1':'0')+':'+_0xeeb01b+':'+_0x172d60+':'+_0x8463e7;}return _0x52ca4a;}function Je(_0x5aa4ca){const _0x5b611d=_0xbd72b5,_0x318107=_0x5aa4ca[_0x5b611d(0x27d)](','),_0x29470a=[];for(const _0x172ab1 of _0x318107){const [_0x3b331c,_0x5b0801,_0x4174b4,_0x4c9f3b,_0x3861a0,_0x5010af]=_0x172ab1[_0x5b611d(0x27d)](':');_0x29470a[_0x5b611d(0x2f7)]({'startOffset':Number(_0x3b331c),'endOffset':Number(_0x5b0801),'collapsed':_0x3b331c===_0x5b0801,'isActive':_0x4174b4==='1','rangeType':_0x4c9f3b===a['DOC_RANGE_TYPE']['TEXT']?a[_0x5b611d(0x2dc)][_0x5b611d(0x1cd)]:a[_0x5b611d(0x2dc)]['RECT'],'segmentId':typeof _0x3861a0==_0x5b611d(0x2ce)?String(_0x3861a0):'','segmentPage':Number(_0x5010af!=null?_0x5010af:-0x1)});}return _0x29470a[_0x5b611d(0x1eb)](_0x3141b4=>_0x3141b4[_0x5b611d(0x18f)])||(_0x29470a[0x0]['isActive']=!0x0),_0x29470a;}class Ce extends a[_0xbd72b5(0x283)]{constructor(){const _0x2ca08b=_0xbd72b5;super(...arguments),h(this,_0x2ca08b(0x3b6),new d[(_0x2ca08b(0x257))](null)),h(this,_0x2ca08b(0x38c),this[_0x2ca08b(0x3b6)][_0x2ca08b(0x30a)]());}[_0xbd72b5(0x33c)](_0x2b9770){const _0x162ca0=_0xbd72b5,{unitID:_0x30de81,memberID:_0x42dd11,textRanges:_0x5bc4f8}=_0x2b9770,_0x251247=Pe(_0x5bc4f8);if(_0x251247==='')return;const _0x101004={'unitID':_0x30de81,'memberID':_0x42dd11,'selection':_0x251247};this[_0x162ca0(0x3b6)]['next'](_0x101004);}}var Ze=Object[_0xbd72b5(0x402)],Qe=(_0x9384d2,_0x124d6f,_0x153d28,_0x32708e)=>{const _0x6a2d94=_0xbd72b5;for(var _0x40ed06=_0x32708e>0x1?void 0x0:_0x32708e?Ze(_0x124d6f,_0x153d28):_0x124d6f,_0x4388c3=_0x9384d2[_0x6a2d94(0x1cf)]-0x1,_0x4d42c9;_0x4388c3>=0x0;_0x4388c3--)(_0x4d42c9=_0x9384d2[_0x4388c3])&&(_0x40ed06=_0x4d42c9(_0x40ed06)||_0x40ed06);return _0x40ed06;},L=(_0x1d9bd8,_0x33a386)=>(_0x286cef,_0x410771)=>_0x33a386(_0x286cef,_0x410771,_0x1d9bd8);const et=0x12c,tt=0x64;let fe=class extends a[_0xbd72b5(0x283)]{constructor(_0x515242,_0x36f661,_0x5c21da,_0x74a8cb,_0x458ecc,_0x31e070,_0x4b2e5d,_0x3b6a55,_0x217f02){const _0x1cde42=_0xbd72b5;super(),h(this,_0x1cde42(0x269),!0x1),h(this,_0x1cde42(0x1c9),!0x1),h(this,_0x1cde42(0x238),new d[(_0x1cde42(0x257))](new Map())),h(this,_0x1cde42(0x267),this[_0x1cde42(0x238)][_0x1cde42(0x30a)]()),h(this,'_roomMembers$',new d[(_0x1cde42(0x257))]([])),h(this,'roomMembers$',this[_0x1cde42(0x2fc)]['pipe'](d['debounceTime'](et))),h(this,_0x1cde42(0x32a),a[_0x1cde42(0x33a)](_0x297a3c=>{const _0x36eeea=_0x1cde42,_0x2d0224={'eventID':m['CollaborationEvent'][_0x36eeea(0x254)],'data':{'unitID':this[_0x36eeea(0x22b)],'memberID':this[_0x36eeea(0x3ee)][_0x36eeea(0x3be)](),'selection':Pe(_0x297a3c)}};this[_0x36eeea(0x3ee)][_0x36eeea(0x21c)](_0x2d0224,this[_0x36eeea(0x22b)]);},tt)),(this[_0x1cde42(0x22b)]=_0x515242,this[_0x1cde42(0x3ee)]=_0x36f661,this[_0x1cde42(0x207)]=_0x5c21da,this[_0x1cde42(0x188)]=_0x74a8cb,this['_memberService']=_0x458ecc,this[_0x1cde42(0x3aa)]=_0x31e070,this[_0x1cde42(0x203)]=_0x4b2e5d,this['_univerInstanceService']=_0x3b6a55,this['_commandService']=_0x217f02);}get[_0xbd72b5(0x3a1)](){const _0x3d3344=_0xbd72b5;return this[_0x3d3344(0x238)]['getValue']();}get[_0xbd72b5(0x1a3)](){const _0x4c0d8a=_0xbd72b5;return this[_0x4c0d8a(0x2fc)][_0x4c0d8a(0x3c2)]();}['dispose'](){const _0x3bfbdf=_0xbd72b5;super[_0x3bfbdf(0x32e)](),this[_0x3bfbdf(0x238)]['next'](new Map()),this['_cursorInfo$'][_0x3bfbdf(0x2d8)](),this['_roomMembers$'][_0x3bfbdf(0x2ad)]([]),this[_0x3bfbdf(0x2fc)]['complete']();}[_0xbd72b5(0x3c1)](){const _0x20cf32=_0xbd72b5;this[_0x20cf32(0x1c9)]||(this[_0x20cf32(0x1c9)]=!0x0,this[_0x20cf32(0x3ee)][_0x20cf32(0x3d4)][_0x20cf32(0x1db)](d['takeUntil'](this[_0x20cf32(0x1a2)]))[_0x20cf32(0x1fc)](_0x339431=>{const _0x2fb5c0=_0x20cf32;_0x339431===u[_0x2fb5c0(0x19d)]['ONLINE']?this[_0x2fb5c0(0x294)]():this[_0x2fb5c0(0x21f)]();}),this['_session'][_0x20cf32(0x3cf)][_0x20cf32(0x1db)](d[_0x20cf32(0x310)](this[_0x20cf32(0x1a2)]))[_0x20cf32(0x1fc)](_0x3a74e0=>{const _0x2f4821=_0x20cf32,_0x27f829=_0x3a74e0[_0x2f4821(0x2d7)];_0x27f829===m['CollaborationEvent'][_0x2f4821(0x254)]&&this[_0x2f4821(0x34a)](_0x3a74e0),_0x27f829===m[_0x2f4821(0x297)][_0x2f4821(0x380)]&&this['_onCursorDelete'](_0x3a74e0);}),this[_0x20cf32(0x323)](this[_0x20cf32(0x29d)][_0x20cf32(0x3eb)](_0x419892=>{const _0x52c721=_0x20cf32,_0x5508c2=_0x419892['params'];_0x5508c2!=null&&this[_0x52c721(0x269)]&&_0x419892['id']===Y[_0x52c721(0x20c)]['id']&&_0x5508c2[_0x52c721(0x1f4)]===this[_0x52c721(0x22b)]&&_0x5508c2['isEditing']===!0x1&&_0x5508c2['ranges'][_0x52c721(0x1cf)]>0x0&&this[_0x52c721(0x32a)](_0x5508c2[_0x52c721(0x25e)]);})),this['_syncEditingCollabCursorService'][_0x20cf32(0x38c)]['pipe'](d[_0x20cf32(0x310)](this[_0x20cf32(0x1a2)]))['subscribe'](_0x53a743=>{const _0x435589=_0x20cf32;if((_0x53a743==null?void 0x0:_0x53a743[_0x435589(0x22b)])!==this[_0x435589(0x22b)])return;const _0x451943={'eventID':m[_0x435589(0x297)][_0x435589(0x254)],'data':_0x53a743};this[_0x435589(0x34a)](_0x451943);}),this[_0x20cf32(0x323)](this['_commandService'][_0x20cf32(0x3eb)](_0x15b758=>{const _0x50db49=_0x20cf32;if(_0x15b758[_0x50db49(0x2ed)]==null)return;const _0x2ac60e=_0x15b758['params'];if(_0x15b758['id']!==Y[_0x50db49(0x1cc)]['id']||_0x2ac60e[_0x50db49(0x1f4)]!==this[_0x50db49(0x22b)])return;const _0x2180eb={'id':_0x50db49(0x227),'params':_0x2ac60e},_0x2ed814=this[_0x50db49(0x3a1)];for(const [_0x30b101,_0x2e1059]of _0x2ed814){const _0x31311f={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x50db49(0x22b)],'actions':null,'textRanges':_0x2e1059[_0x50db49(0x25e)]}},_0x4c740e=this[_0x50db49(0x203)][_0x50db49(0x28a)](_0x2180eb,_0x31311f,!0x1);if(m[_0x50db49(0x28f)](_0x4c740e))throw _0x4c740e[_0x50db49(0x3ca)];_0x2ed814[_0x50db49(0x3c7)](_0x30b101,{..._0x2e1059,'ranges':_0x4c740e[_0x50db49(0x30f)][_0x50db49(0x2ed)]['textRanges']});}queueMicrotask(()=>{const _0x9e345a=_0x50db49;this['_cursorInfo$'][_0x9e345a(0x2ad)](_0x2ed814);});})));}[_0xbd72b5(0x34a)](_0x4af71b){const _0x5854a2=_0xbd72b5;var _0x243555,_0x693176;const {memberID:_0x1ba471,selection:_0x126689}=_0x4af71b['data'],_0x3d2198=Je(_0x126689),_0x2ccff4=(_0x693176=(_0x243555=this[_0x5854a2(0x24b)]['getMember'](this[_0x5854a2(0x22b)],_0x1ba471))==null?void 0x0:_0x243555[_0x5854a2(0x1dd)])!=null?_0x693176:_0x5854a2(0x2d2),_0x363982={'color':this['_colorAssignService'][_0x5854a2(0x35c)](_0x1ba471),'name':_0x2ccff4,'ranges':_0x3d2198},_0x5040e6=this[_0x5854a2(0x3a1)];_0x5040e6['set'](_0x1ba471,_0x363982),this[_0x5854a2(0x238)]['next'](_0x5040e6);}[_0xbd72b5(0x37f)](_0x5b1909){const _0x329284=_0xbd72b5,{memberID:_0x161bd1}=_0x5b1909[_0x329284(0x2b9)],_0x485d14=this[_0x329284(0x3a1)];_0x485d14[_0x329284(0x200)](_0x161bd1),this['_cursorInfo$'][_0x329284(0x2ad)](_0x485d14);}[_0xbd72b5(0x294)](){const _0x57854f=_0xbd72b5;var _0x80ff50;if(this[_0x57854f(0x269)]=!0x0,((_0x80ff50=this[_0x57854f(0x224)]['getFocusedUnit']())==null?void 0x0:_0x80ff50['getUnitId']())!==this['unitID'])return;const _0xf4c643=this[_0x57854f(0x207)][_0x57854f(0x206)](Y[_0x57854f(0x389)])[_0x57854f(0x2a7)]();Array[_0x57854f(0x1b6)](_0xf4c643)&&_0xf4c643[_0x57854f(0x1cf)]>0x0&&this[_0x57854f(0x32a)](_0xf4c643);}['_toggleOffline'](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),L(0x3,a[_0xbd72b5(0x1d6)](me)),L(0x4,a['Inject'](u[_0xbd72b5(0x241)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0xbd72b5(0x25b)]),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x5c7056,_0x3091d5,_0x4a0267,_0x1b76af)=>{const _0x2f1887=_0xbd72b5;for(var _0x5cbb2a=_0x1b76af>0x1?void 0x0:_0x1b76af?st(_0x3091d5,_0x4a0267):_0x3091d5,_0x19d3f6=_0x5c7056[_0x2f1887(0x1cf)]-0x1,_0x41b874;_0x19d3f6>=0x0;_0x19d3f6--)(_0x41b874=_0x5c7056[_0x19d3f6])&&(_0x5cbb2a=_0x41b874(_0x5cbb2a)||_0x5cbb2a);return _0x5cbb2a;},w=(_0x4bafed,_0x476636)=>(_0x3b7883,_0x5cb66e)=>_0x476636(_0x3b7883,_0x5cb66e,_0x4bafed);const nt=0x12c,rt=0x64,ot=()=>{let _0x27a2d0=[],_0x435914=!0x1;return _0x15d072=>{const _0x50e2df=_0x4dae;_0x27a2d0[_0x50e2df(0x2f7)](_0x15d072),_0x435914||(_0x435914=!0x0,setTimeout(()=>{const _0x3b93b2=_0x50e2df;_0x27a2d0[_0x3b93b2(0x276)](_0x43af1e=>_0x43af1e()),_0x27a2d0=[],_0x435914=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x4d4597,_0x411861,_0x4ce397,_0x1bafc0,_0x1c93a6,_0x1e4b9b,_0x3744a8,_0x53be26){const _0x5e5388=_0xbd72b5;super(),h(this,_0x5e5388(0x269),!0x1),h(this,_0x5e5388(0x1c9),!0x1),h(this,_0x5e5388(0x238),new d[(_0x5e5388(0x257))](new Map())),h(this,_0x5e5388(0x267),this[_0x5e5388(0x238)][_0x5e5388(0x30a)]()),h(this,_0x5e5388(0x2fc),new d[(_0x5e5388(0x257))]([])),h(this,_0x5e5388(0x17f),this[_0x5e5388(0x2fc)][_0x5e5388(0x1db)](d[_0x5e5388(0x3d6)](nt))),h(this,_0x5e5388(0x32a),a['debounce']((_0x83a580,_0x312eec)=>{const _0x2a89fd=_0x5e5388,_0x5bd785={'eventID':m[_0x2a89fd(0x297)][_0x2a89fd(0x254)],'data':{'unitID':this[_0x2a89fd(0x22b)],'memberID':this[_0x2a89fd(0x3ee)][_0x2a89fd(0x3be)](),'selection':Ee[_0x2a89fd(0x1b2)](_0x83a580,_0x312eec[_0x2a89fd(0x2c6)])}};this[_0x2a89fd(0x3ee)]['send'](_0x5bd785,this[_0x2a89fd(0x22b)]);},rt)),(this[_0x5e5388(0x22b)]=_0x4d4597,this[_0x5e5388(0x3ee)]=_0x411861,this[_0x5e5388(0x207)]=_0x4ce397,this[_0x5e5388(0x188)]=_0x1bafc0,this[_0x5e5388(0x24b)]=_0x1c93a6,this[_0x5e5388(0x224)]=_0x1e4b9b,this[_0x5e5388(0x29d)]=_0x3744a8,this[_0x5e5388(0x232)]=_0x53be26);}get[_0xbd72b5(0x3a1)](){const _0x2f8984=_0xbd72b5;return this[_0x2f8984(0x238)][_0x2f8984(0x3c2)]();}get[_0xbd72b5(0x1a3)](){const _0x5a500b=_0xbd72b5;return this[_0x5a500b(0x2fc)][_0x5a500b(0x3c2)]();}['dispose'](){const _0x3390ed=_0xbd72b5;super[_0x3390ed(0x32e)](),this[_0x3390ed(0x238)][_0x3390ed(0x2ad)](new Map()),this[_0x3390ed(0x238)]['complete'](),this['_roomMembers$'][_0x3390ed(0x2ad)]([]),this[_0x3390ed(0x2fc)]['complete']();}[_0xbd72b5(0x3c1)](){const _0x432249=_0xbd72b5;this[_0x432249(0x1c9)]||(this[_0x432249(0x1c9)]=!0x0,this[_0x432249(0x3ee)][_0x432249(0x3d4)][_0x432249(0x1db)](d['takeUntil'](this[_0x432249(0x1a2)]))['subscribe'](_0x3697a3=>{const _0x2ff088=_0x432249;_0x3697a3===u['SessionStatus'][_0x2ff088(0x19a)]?this[_0x2ff088(0x294)]():this['_toggleOffline']();}),this['_session']['event$'][_0x432249(0x1db)](d[_0x432249(0x310)](this['dispose$']))['subscribe'](_0x388eb7=>{const _0x58c674=_0x432249,_0x2ac031=_0x388eb7[_0x58c674(0x2d7)];_0x2ac031===m[_0x58c674(0x297)][_0x58c674(0x254)]&&this[_0x58c674(0x34a)](_0x388eb7),_0x2ac031===m[_0x58c674(0x297)][_0x58c674(0x380)]&&this[_0x58c674(0x37f)](_0x388eb7);}),this[_0x432249(0x256)](),this[_0x432249(0x323)](this['_commandService']['onCommandExecuted'](_0x44679a=>{const _0x20c6a0=_0x432249;if(this['_online']&&_0x44679a['id']===g[_0x20c6a0(0x318)]['id']&&_0x44679a[_0x20c6a0(0x2ed)]['unitId']===this[_0x20c6a0(0x22b)]){const _0xb52787=_0x44679a[_0x20c6a0(0x2ed)];this[_0x20c6a0(0x32a)](_0xb52787[_0x20c6a0(0x225)],_0xb52787['selections'][0x0]);}})));}['_onCursorUpdate'](_0x18a7d7){const _0x277638=_0xbd72b5;var _0xd9a50d,_0xa27240;const {memberID:_0x7dcf17,selection:_0x4c11c7}=_0x18a7d7[_0x277638(0x2b9)],{sheetName:_0x1e0aa9,range:_0x5dc5ae}=Ee[_0x277638(0x31d)](_0x4c11c7),_0x388847={'name':(_0xa27240=(_0xd9a50d=this[_0x277638(0x24b)][_0x277638(0x2eb)](this[_0x277638(0x22b)],_0x7dcf17))==null?void 0x0:_0xd9a50d[_0x277638(0x1dd)])!=null?_0xa27240:_0x277638(0x2d2),'range':this['_getMergeRange'](_0x1e0aa9,_0x5dc5ae),'sheetID':_0x1e0aa9,'color':this[_0x277638(0x188)][_0x277638(0x35c)](_0x7dcf17),'selection':_0x4c11c7},_0x5f08a0=this[_0x277638(0x3a1)];_0x5f08a0[_0x277638(0x3c7)](_0x7dcf17,_0x388847),this[_0x277638(0x238)][_0x277638(0x2ad)](_0x5f08a0);}['_onCursorDelete'](_0x865328){const _0x37367b=_0xbd72b5,{memberID:_0x3423ae}=_0x865328['data'],_0x446822=this[_0x37367b(0x3a1)];_0x446822[_0x37367b(0x200)](_0x3423ae),this['_cursorInfo$'][_0x37367b(0x2ad)](_0x446822);}[_0xbd72b5(0x3bd)](_0x1330b4,_0x556b21){const _0x4343da=_0xbd72b5;var _0x3c0b2e,_0x389740;const _0x2daf98=(_0x389740=(_0x3c0b2e=this[_0x4343da(0x224)][_0x4343da(0x36a)](this['unitID']))==null?void 0x0:_0x3c0b2e[_0x4343da(0x306)](_0x1330b4))==null?void 0x0:_0x389740[_0x4343da(0x296)]();return(_0x2daf98==null?void 0x0:_0x2daf98['find'](_0x4a9244=>a['Rectangle'][_0x4343da(0x3cb)](_0x4a9244,_0x556b21)))||_0x556b21;}[_0xbd72b5(0x256)](){const _0x37e45d=_0xbd72b5,_0x4edfdd=new a[(_0x37e45d(0x23a))](),_0x5f531d=ot(),_0x20db2e=()=>{const _0x22a954=_0x37e45d;_0x4edfdd[_0x22a954(0x32e)]();const _0x34f26e=(_0x73a65,_0x3f8f93,_0x236275,_0x50358c)=>{const _0x55b3ad=_0x22a954;let _0x599ccb=[];switch(_0x73a65['id']){case g['EffectRefRangId'][_0x55b3ad(0x35d)]:{_0x599ccb=g['handleDeleteRangeMoveLeft'](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)][_0x55b3ad(0x340)]:{_0x599ccb=g[_0x55b3ad(0x38e)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)][_0x55b3ad(0x21e)]:{_0x599ccb=g[_0x55b3ad(0x1f1)](_0x73a65,_0x50358c);break;}case g['EffectRefRangId'][_0x55b3ad(0x1e0)]:{_0x599ccb=g[_0x55b3ad(0x383)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)]['InsertRangeMoveRightCommandId']:{_0x599ccb=g[_0x55b3ad(0x1a6)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)]['InsertRowCommandId']:{_0x599ccb=g[_0x55b3ad(0x179)](_0x73a65,_0x50358c);break;}case g['EffectRefRangId'][_0x55b3ad(0x2f3)]:{_0x599ccb=g[_0x55b3ad(0x1d3)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)][_0x55b3ad(0x228)]:{_0x599ccb=g[_0x55b3ad(0x24e)](_0x73a65,_0x50358c);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x599ccb=g[_0x55b3ad(0x270)](_0x73a65,_0x50358c);break;}}const _0x228fd8=g[_0x55b3ad(0x23b)](_0x599ccb,_0x50358c),_0x587bd0=this[_0x55b3ad(0x3a1)][_0x55b3ad(0x206)](_0x3f8f93);if(_0x587bd0&&_0x228fd8){const _0x86e8a1={..._0x587bd0,'range':_0x228fd8};this['cursorInfo']['set'](_0x3f8f93,_0x86e8a1),_0x5f531d(()=>{const _0x4ef0ce=_0x55b3ad,_0x1b19c7=this[_0x4ef0ce(0x232)][_0x4ef0ce(0x18a)](_0x228fd8,_0x52a56a=>(_0x1b19c7['dispose'](),_0x34f26e(_0x52a56a,_0x3f8f93,_0x236275,_0x228fd8)));_0x4edfdd[_0x4ef0ce(0x1e5)](_0x1b19c7);});}return{'redos':[],'undos':[]};};this[_0x22a954(0x3a1)]['forEach']((_0x3ed5a8,_0x582f46)=>{const _0x48f4ff=_0x22a954,{range:_0x1015c7,sheetID:_0x5b0fde}=_0x3ed5a8,_0x35b844=this[_0x48f4ff(0x232)][_0x48f4ff(0x18a)](_0x1015c7,_0x1b561e=>(_0x35b844['dispose'](),_0x34f26e(_0x1b561e,_0x582f46,_0x5b0fde,_0x1015c7)));_0x4edfdd['add'](_0x35b844);});};this[_0x37e45d(0x323)](a[_0x37e45d(0x385)](this[_0x37e45d(0x238)]['subscribe'](()=>{_0x20db2e();})));}[_0xbd72b5(0x294)](){const _0x4e223b=_0xbd72b5;var _0x5f0ad9,_0x47e939;if(this[_0x4e223b(0x269)]=!0x0,((_0x5f0ad9=this[_0x4e223b(0x224)][_0x4e223b(0x397)]())==null?void 0x0:_0x5f0ad9[_0x4e223b(0x1e1)]())!==this[_0x4e223b(0x22b)])return;const _0x29e2a4=(_0x47e939=this['_injector'][_0x4e223b(0x206)](g[_0x4e223b(0x372)])[_0x4e223b(0x1ac)]())==null?void 0x0:_0x47e939[0x0],_0x27090e=this[_0x4e223b(0x224)][_0x4e223b(0x35a)](a['UniverInstanceType'][_0x4e223b(0x2c2)])['getActiveSheet']();_0x29e2a4&&_0x27090e&&this[_0x4e223b(0x32a)](_0x27090e[_0x4e223b(0x31e)](),_0x29e2a4);}[_0xbd72b5(0x21f)](){const _0x201fae=_0xbd72b5;this[_0x201fae(0x269)]=!0x1;}};Se=it([w(0x2,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),w(0x3,a[_0xbd72b5(0x1d6)](me)),w(0x4,a['Inject'](u['MemberService'])),w(0x5,a[_0xbd72b5(0x3e7)]),w(0x6,a[_0xbd72b5(0x3ea)]),w(0x7,a[_0xbd72b5(0x1d6)](g['RefRangeService']))],Se);var at=Object[_0xbd72b5(0x402)],ct=(_0x3fe832,_0x3980a4,_0x4a34a4,_0x466f8f)=>{const _0xc23e09=_0xbd72b5;for(var _0x2e7671=_0x466f8f>0x1?void 0x0:_0x466f8f?at(_0x3980a4,_0x4a34a4):_0x3980a4,_0x445039=_0x3fe832[_0xc23e09(0x1cf)]-0x1,_0x22be5c;_0x445039>=0x0;_0x445039--)(_0x22be5c=_0x3fe832[_0x445039])&&(_0x2e7671=_0x22be5c(_0x2e7671)||_0x2e7671);return _0x2e7671;},ie=(_0x5a80e6,_0x4873c7)=>(_0x24a97b,_0x271541)=>_0x4873c7(_0x24a97b,_0x271541,_0x5a80e6);function _0x4dae(_0x179816,_0x4c72b6){const _0x3f5db0=_0x3f5d();return _0x4dae=function(_0x4dae14,_0x5909dd){_0x4dae14=_0x4dae14-0x175;let _0x2abaec=_0x3f5db0[_0x4dae14];return _0x2abaec;},_0x4dae(_0x179816,_0x4c72b6);}let x=class extends a[_0xbd72b5(0x283)]{constructor(_0x36d9d6,_0x2afa9f,_0x6bc408){const _0x730ca6=_0xbd72b5;super(),h(this,_0x730ca6(0x330),new Map()),h(this,_0x730ca6(0x3fe),new d[(_0x730ca6(0x342))]()),(this[_0x730ca6(0x224)]=_0x36d9d6,this[_0x730ca6(0x207)]=_0x2afa9f,this[_0x730ca6(0x248)]=_0x6bc408,this[_0x730ca6(0x1c9)]());}[_0xbd72b5(0x32e)](){const _0x6bc764=_0xbd72b5;super[_0x6bc764(0x32e)](),this[_0x6bc764(0x3fe)][_0x6bc764(0x2d8)](),this[_0x6bc764(0x330)][_0x6bc764(0x276)](_0x51bb35=>_0x51bb35[_0x6bc764(0x32e)]());}[_0xbd72b5(0x24f)](_0x94794b){const _0x3753fd=_0xbd72b5;return this[_0x3753fd(0x330)][_0x3753fd(0x3c8)](_0x94794b)?this[_0x3753fd(0x330)][_0x3753fd(0x206)](_0x94794b)[_0x3753fd(0x267)]:this['_entityInit$'][_0x3753fd(0x1db)](d[_0x3753fd(0x1d2)](_0x12a57e=>_0x12a57e[_0x3753fd(0x22b)]===_0x94794b),d['switchMap'](_0x2c4a12=>_0x2c4a12[_0x3753fd(0x267)]));}[_0xbd72b5(0x1c9)](){const _0x2c49c9=_0xbd72b5;this[_0x2c49c9(0x224)][_0x2c49c9(0x365)](a[_0x2c49c9(0x216)]['UNIVER_SHEET'])[_0x2c49c9(0x1db)](d[_0x2c49c9(0x310)](this[_0x2c49c9(0x1a2)]))[_0x2c49c9(0x1fc)](async _0x3da504=>{const _0x2ea3c6=_0x2c49c9,_0x58026a=_0x3da504[_0x2ea3c6(0x1e1)](),_0x1ad8ff=await this[_0x2ea3c6(0x231)](_0x58026a);this['_entityInit$'][_0x2ea3c6(0x2ad)](_0x1ad8ff),this[_0x2ea3c6(0x330)][_0x2ea3c6(0x3c7)](_0x58026a,_0x1ad8ff);}),this['_univerInstanceService'][_0x2c49c9(0x365)](a[_0x2c49c9(0x216)]['UNIVER_DOC'])['pipe'](d['takeUntil'](this[_0x2c49c9(0x1a2)]))[_0x2c49c9(0x1db)](d[_0x2c49c9(0x1d2)](_0x36cf9b=>!_0x36cf9b[_0x2c49c9(0x1e1)]()['startsWith']('__')))[_0x2c49c9(0x1fc)](async _0x586db4=>{const _0x442529=_0x2c49c9,_0x1373d5=_0x586db4['getUnitId'](),_0x26ca10=await this[_0x442529(0x300)](_0x1373d5);this[_0x442529(0x3fe)][_0x442529(0x2ad)](_0x26ca10),this['_entities'][_0x442529(0x3c7)](_0x1373d5,_0x26ca10);}),d[_0x2c49c9(0x1bc)](this[_0x2c49c9(0x224)][_0x2c49c9(0x30c)](a['UniverInstanceType'][_0x2c49c9(0x211)]),this[_0x2c49c9(0x224)][_0x2c49c9(0x30c)](a['UniverInstanceType'][_0x2c49c9(0x2c2)]))[_0x2c49c9(0x1db)](d[_0x2c49c9(0x310)](this[_0x2c49c9(0x1a2)]))[_0x2c49c9(0x1fc)](_0x2e984f=>{const _0x26a163=_0x2c49c9,_0x6d1dd8=_0x2e984f[_0x26a163(0x1e1)](),_0x20edff=this['_entities'][_0x26a163(0x206)](_0x6d1dd8);_0x20edff&&(_0x20edff['dispose'](),this[_0x26a163(0x330)]['delete'](_0x6d1dd8));});}async[_0xbd72b5(0x231)](_0x1b3863){const _0x280fc7=_0xbd72b5,_0x32dad6=await this[_0x280fc7(0x248)][_0x280fc7(0x2f5)](_0x1b3863),_0x351a78=this['_injector'][_0x280fc7(0x2d3)](Se,_0x1b3863,_0x32dad6);return _0x351a78[_0x280fc7(0x3c1)](),_0x351a78;}async[_0xbd72b5(0x300)](_0x1b297f){const _0x20d794=_0xbd72b5,_0x580fde=await this['_collabSessionService']['requireSession'](_0x1b297f),_0x2af670=this['_injector'][_0x20d794(0x2d3)](fe,_0x1b297f,_0x580fde);return _0x2af670[_0x20d794(0x3c1)](),_0x2af670;}};x=ct([ie(0x0,a[_0xbd72b5(0x3e7)]),ie(0x1,a['Inject'](a[_0xbd72b5(0x338)])),ie(0x2,a['Inject'](u[_0xbd72b5(0x307)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x59b500,_0x503636){const _0xc5c964=_0xbd72b5;let {radius:_0x1a5ba2,width:_0x3edd45,height:_0x3f9989}=_0x503636;_0x1a5ba2=_0x1a5ba2!=null?_0x1a5ba2:0x0,_0x3edd45=_0x3edd45!=null?_0x3edd45:0x1e,_0x3f9989=_0x3f9989!=null?_0x3f9989:0x1e;let _0x1aa05c=0x0,_0x5222ac=0x0,_0x204d04=0x0;_0x1aa05c=_0x5222ac=_0x204d04=Math[_0xc5c964(0x2d4)](_0x1a5ba2,_0x3edd45/0x2,_0x3f9989/0x2),_0x59b500['beginPath'](),_0x59b500['moveTo'](_0x1aa05c,0x0),_0x59b500[_0xc5c964(0x27f)](_0x3edd45-_0x5222ac,0x0),_0x59b500[_0xc5c964(0x193)](_0x3edd45-_0x5222ac,_0x5222ac,_0x5222ac,Math['PI']*0x3/0x2,0x0,!0x1),_0x59b500[_0xc5c964(0x27f)](_0x3edd45,_0x3f9989-_0x204d04),_0x59b500[_0xc5c964(0x193)](_0x3edd45-_0x204d04,_0x3f9989-_0x204d04,_0x204d04,0x0,Math['PI']/0x2,!0x1),_0x59b500[_0xc5c964(0x27f)](0x0,_0x3f9989),_0x59b500[_0xc5c964(0x27f)](0x0,_0x1aa05c),_0x59b500[_0xc5c964(0x193)](_0x1aa05c,_0x1aa05c,_0x1aa05c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x59b500['closePath'](),_0x503636['fill']&&(_0x59b500[_0xc5c964(0x400)](),_0x59b500[_0xc5c964(0x346)]=_0x503636[_0xc5c964(0x403)],_0x503636[_0xc5c964(0x20a)]===_0xc5c964(0x326)?_0x59b500[_0xc5c964(0x403)](_0xc5c964(0x326)):_0x59b500[_0xc5c964(0x403)](),_0x59b500['restore']());}class ee extends p[_0xbd72b5(0x3fb)]{constructor(_0x564dc5,_0x3e475a){const _0x259655=_0xbd72b5;super(_0x564dc5,_0x3e475a),h(this,_0x259655(0x329)),h(this,_0x259655(0x363)),(this[_0x259655(0x329)]=_0x3e475a==null?void 0x0:_0x3e475a[_0x259655(0x329)],this[_0x259655(0x363)]=_0x3e475a==null?void 0x0:_0x3e475a['text']);}static[_0xbd72b5(0x31b)](_0x148dea,_0x4982bf){const _0x21ea22=_0xbd72b5,{text:_0x1aa6fc,color:_0x16c853}=_0x4982bf;_0x148dea[_0x21ea22(0x400)](),_0x148dea['font']=_0x21ea22(0x2d6);const _0x3cabca=_0x148dea['measureText'](_0x1aa6fc)[_0x21ea22(0x2d9)],_0x50e772=Math[_0x21ea22(0x2d4)](_0x3cabca+0x2*ne,Re);_t(_0x148dea,{'height':K,'radius':0x4,'width':_0x50e772,'fill':_0x16c853}),_0x148dea[_0x21ea22(0x346)]=_0x21ea22(0x26b);const _0x44989b=ne,_0x1797f4=K-lt,_0x5a9ede=Re-0x2*ne;if(_0x3cabca>_0x5a9ede){let _0x216d3d='',_0x30b8b0=0x0;for(const _0x38df26 of _0x1aa6fc){const _0xa0a15b=_0x148dea[_0x21ea22(0x316)](_0x38df26)[_0x21ea22(0x2d9)];if(_0x30b8b0+_0xa0a15b<=_0x5a9ede-_0x148dea[_0x21ea22(0x316)](_0x21ea22(0x39d))[_0x21ea22(0x2d9)])_0x216d3d+=_0x38df26,_0x30b8b0+=_0xa0a15b;else{_0x216d3d+=_0x21ea22(0x39d);break;}}_0x148dea[_0x21ea22(0x3ab)](_0x216d3d,_0x44989b,_0x1797f4);}else _0x148dea[_0x21ea22(0x3ab)](_0x1aa6fc,_0x44989b,_0x1797f4);_0x148dea[_0x21ea22(0x355)]();}[_0xbd72b5(0x1a4)](_0x301572){const _0x54c667=_0xbd72b5;ee[_0x54c667(0x31b)](_0x301572,this);}}const re=_0xbd72b5(0x35f),ht='collab-text-range-',ut=_0xbd72b5(0x192),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0xbd72b5(0x28d);class De{constructor(_0x39c466,_0x4927c4,_0x1ef832,_0x549467){const _0x2c8969=_0xbd72b5;h(this,'_shapes',[]),h(this,_0x2c8969(0x3e9),null),h(this,_0x2c8969(0x2ac),null),h(this,_0x2c8969(0x2b6),null),h(this,'_hideTimer',null),h(this,_0x2c8969(0x33e),null),(this[_0x2c8969(0x1b8)]=_0x39c466,this[_0x2c8969(0x28e)]=_0x4927c4,this[_0x2c8969(0x2c1)]=_0x1ef832,this[_0x2c8969(0x240)]=_0x549467,this['_render']());}set['_hover'](_0x57daaf){const _0x43b803=_0xbd72b5;_0x57daaf?(this[_0x43b803(0x2b6)]&&this['_anchorDot'][_0x43b803(0x25f)](),this[_0x43b803(0x2ac)]&&this[_0x43b803(0x2ac)][_0x43b803(0x17b)]()):(this[_0x43b803(0x2b6)]&&this[_0x43b803(0x2b6)][_0x43b803(0x17b)](),this[_0x43b803(0x2ac)]&&this[_0x43b803(0x2ac)]['hide']());}[_0xbd72b5(0x32e)](){const _0xf421c9=_0xbd72b5;for(const _0x29f160 of this[_0xf421c9(0x236)])_0x29f160['dispose']();this[_0xf421c9(0x2ac)]&&this['_textBubble'][_0xf421c9(0x32e)](),this[_0xf421c9(0x2b6)]&&this[_0xf421c9(0x2b6)][_0xf421c9(0x32e)](),this[_0xf421c9(0x3e9)]&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this[_0xf421c9(0x33e)]();}['_render'](){const _0x4c5c9a=_0xbd72b5;var _0x5c16c0;const {_docSkeleton:_0x5dd94d,_document:_0x72ae8f}=this,{color:_0x15f65a,name:_0x1f1aad,ranges:_0x57b2fe}=this['_cursor'],_0x614598=_0x72ae8f[_0x4c5c9a(0x26a)](),{docsLeft:_0x49c75a,docsTop:_0x3285bd}=_0x614598,_0x1497ef=new b['NodePositionConvertToCursor'](_0x614598,_0x5dd94d);for(const {startOffset:_0x14930b,endOffset:_0x34d1a2,rangeType:_0x412881,segmentId:_0x541321,segmentPage:_0x105c86,collapsed:_0x3ae9d6,isActive:_0x564ce5}of _0x57b2fe){const _0x3e532f=_0x5dd94d[_0x4c5c9a(0x26c)](_0x14930b,!0x0,_0x541321,_0x105c86);let _0x30a5be=_0x5dd94d[_0x4c5c9a(0x26c)](_0x34d1a2,!0x0,_0x541321,_0x105c86);if(_0x30a5be==null&&(_0x30a5be=_0x5dd94d['findNodePositionByCharIndex'](_0x34d1a2-0x1,!0x1,_0x541321,_0x105c86)),_0x564ce5){const {contentBoxPointGroup:_0x5bb515}=_0x1497ef[_0x4c5c9a(0x275)](_0x30a5be,_0x30a5be);if(_0x5bb515[_0x4c5c9a(0x1cf)]===0x0)continue;this['_drawAnchor'](_0x15f65a,_0x5bb515,_0x49c75a,_0x3285bd,_0x1f1aad),this[_0x4c5c9a(0x33e)]=this['_handleHover']();}if(_0x3e532f&&_0x30a5be){if(_0x412881===a[_0x4c5c9a(0x2dc)][_0x4c5c9a(0x37a)]){const _0x17228d=new b['NodePositionConvertToRectRange'](_0x614598,_0x5dd94d),{pointGroup:_0x4de92c}=(_0x5c16c0=_0x17228d['getRangePointData'](_0x3e532f,_0x30a5be))!=null?_0x5c16c0:{};if(_0x4de92c==null||_0x4de92c['length']===0x0)continue;this[_0x4c5c9a(0x265)](_0x15f65a,_0x4de92c,_0x49c75a,_0x3285bd);}else{if(!_0x3ae9d6){const {borderBoxPointGroup:_0xe4b42}=_0x1497ef[_0x4c5c9a(0x275)](_0x3e532f,_0x30a5be);if(_0xe4b42[_0x4c5c9a(0x1cf)]===0x0)continue;this['_drawTextRange'](_0x15f65a,_0xe4b42,_0x49c75a,_0x3285bd);}}}}}[_0xbd72b5(0x3e3)](_0x259d60,_0x4c984b,_0x440d67,_0x68464,_0x2365fe){const _0x4cf9f5=_0xbd72b5,_0x6f334c=this[_0x4cf9f5(0x2b3)](_0x4c984b),{left:_0x1c8915,top:_0x135ca6,height:_0x3a7723}=_0x6f334c,_0x3d9e0b=this['_getScale'](),_0x35fa00=ft/_0x3d9e0b,_0x13a059=new p['Rect'](re+a[_0x4cf9f5(0x32f)]['generateRandomId'](k),{'left':_0x1c8915+_0x440d67-_0x35fa00,'top':_0x135ca6+_0x68464,'height':_0x3a7723,'width':dt,'fill':_0x259d60||p[_0x4cf9f5(0x3d8)](a[_0x4cf9f5(0x182)]['black'],0x0),'strokeWidth':_0x35fa00,'stroke':St,'evented':!0x0});this[_0x4cf9f5(0x3e9)]=_0x13a059,this[_0x4cf9f5(0x28e)]['addObject'](_0x13a059,b[_0x4cf9f5(0x2a3)]);const _0x568ba2=new p['Rect'](re+a[_0x4cf9f5(0x32f)][_0x4cf9f5(0x1da)](k),{'left':_0x1c8915+_0x440d67-_0x35fa00,'top':_0x135ca6+_0x68464-oe/0x2,'height':oe,'width':oe,'fill':_0x259d60||p[_0x4cf9f5(0x3d8)](a[_0x4cf9f5(0x182)][_0x4cf9f5(0x2a6)],0x0),'strokeWidth':0x0,'stroke':_0x259d60||p[_0x4cf9f5(0x3d8)](a[_0x4cf9f5(0x182)][_0x4cf9f5(0x2a6)],0x0),'evented':!0x1});this[_0x4cf9f5(0x2b6)]=_0x568ba2,this[_0x4cf9f5(0x28e)][_0x4cf9f5(0x1c0)](_0x568ba2,b['TEXT_RANGE_LAYER_INDEX']);const _0x25bb2c=new ee(re+a['Tools'][_0x4cf9f5(0x1da)](k),{'left':_0x1c8915+_0x440d67-_0x35fa00,'top':_0x135ca6+_0x68464-K,'text':_0x2365fe,'color':_0x259d60});this[_0x4cf9f5(0x2ac)]=_0x25bb2c,this[_0x4cf9f5(0x28e)][_0x4cf9f5(0x1c0)](_0x25bb2c,b[_0x4cf9f5(0x2a3)]),this[_0x4cf9f5(0x281)]=!0x1;}[_0xbd72b5(0x2b8)](){const _0x2f18e9=_0xbd72b5,_0x56421b=this[_0x2f18e9(0x3e9)][_0x2f18e9(0x1f6)][_0x2f18e9(0x209)](()=>{const _0x1ea219=_0x2f18e9;this[_0x1ea219(0x281)]=!0x0;}),_0x27154c=this['_anchor'][_0x2f18e9(0x327)][_0x2f18e9(0x209)](()=>{const _0x56d794=_0x2f18e9;this[_0x56d794(0x201)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x99b3a2=_0x56d794;this[_0x99b3a2(0x281)]=!0x1;},0x7d0);});return()=>{const _0x3d8790=_0x2f18e9;_0x56421b[_0x3d8790(0x2c7)](),_0x27154c['unsubscribe']();};}[_0xbd72b5(0x1c1)](_0x4e07fb,_0x337da1,_0x4dff74,_0xf0f613){const _0x807e8e=_0xbd72b5,_0x4cec70=new a['ColorKit'](_0x4e07fb)['setAlpha'](0.2)[_0x807e8e(0x32b)](),_0x41cf9c=new p[(_0x807e8e(0x39b))](ht+a[_0x807e8e(0x32f)]['generateRandomId'](k),{'pointsGroup':_0x337da1,'fill':_0x4cec70||p['getColor'](a['COLORS'][_0x807e8e(0x2a6)],0.2),'left':_0x4dff74,'top':_0xf0f613,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x807e8e(0x236)]['push'](_0x41cf9c),this[_0x807e8e(0x28e)]['addObject'](_0x41cf9c,b[_0x807e8e(0x2a3)]);}[_0xbd72b5(0x265)](_0x5a1e29,_0x423e8d,_0x30e6b3,_0x2b17f9){const _0x117dba=_0xbd72b5,_0x39f893=new a[(_0x117dba(0x2b7))](_0x5a1e29)[_0x117dba(0x23d)](0.2)[_0x117dba(0x32b)](),_0xa8338e=new p[(_0x117dba(0x39b))](ut+a['Tools'][_0x117dba(0x1da)](k),{'pointsGroup':_0x423e8d,'fill':_0x39f893||p['getColor'](a[_0x117dba(0x182)][_0x117dba(0x2a6)],0.2),'left':_0x30e6b3,'top':_0x2b17f9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x117dba(0x236)]['push'](_0xa8338e),this[_0x117dba(0x28e)][_0x117dba(0x1c0)](_0xa8338e,b['TEXT_RANGE_LAYER_INDEX']);}[_0xbd72b5(0x2b3)](_0x2a3589){const _0x35c0b5=_0x2a3589[0x0],_0xe72882=_0x35c0b5[0x0],_0x19601c=_0x35c0b5[0x2],{x:_0x50c374,y:_0x120d1f}=_0xe72882,{x:_0x2916f9,y:_0x51a108}=_0x19601c;return{'left':_0x50c374,'top':_0x120d1f,'width':_0x2916f9-_0x50c374,'height':_0x51a108-_0x120d1f};}[_0xbd72b5(0x390)](){const _0x467b6c=_0xbd72b5,{scaleX:_0x5a9c7f,scaleY:_0x2433a0}=this[_0x467b6c(0x28e)][_0x467b6c(0x325)]();return Math[_0x467b6c(0x3a8)](_0x5a9c7f,_0x2433a0);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x347d00,_0x38b7da,_0x38e1ec,_0x4b89e9)=>{for(var _0x5b520f=_0x4b89e9>0x1?void 0x0:_0x4b89e9?It(_0x38b7da,_0x38e1ec):_0x38b7da,_0x5cd882=_0x347d00['length']-0x1,_0x505eb7;_0x5cd882>=0x0;_0x5cd882--)(_0x505eb7=_0x347d00[_0x5cd882])&&(_0x5b520f=_0x505eb7(_0x5b520f)||_0x5b520f);return _0x5b520f;},W=(_0x24d37f,_0x27c669)=>(_0x42ed43,_0x396faf)=>_0x27c669(_0x42ed43,_0x396faf,_0x24d37f);let Ie=class extends a[_0xbd72b5(0x283)]{constructor(_0x33bcb2,_0x597998,_0x39f72c,_0x4d4084,_0x58048b){const _0x4d192a=_0xbd72b5;super(),h(this,_0x4d192a(0x37b),[]),h(this,'_cursors',[]),(this[_0x4d192a(0x33b)]=_0x33bcb2,this[_0x4d192a(0x36e)]=_0x597998,this[_0x4d192a(0x17a)]=_0x39f72c,this[_0x4d192a(0x29d)]=_0x4d4084,this[_0x4d192a(0x398)]=_0x58048b,this[_0x4d192a(0x1c9)]());}[_0xbd72b5(0x1c9)](){const _0x3e798a=_0xbd72b5,_0x2f6d90=this[_0x3e798a(0x33b)][_0x3e798a(0x1f4)],_0x460e0c=this[_0x3e798a(0x36e)];this[_0x3e798a(0x323)](d[_0x3e798a(0x3f7)]([this['_collabCursorController']['getCollabCursors$'](_0x2f6d90),this[_0x3e798a(0x398)][_0x3e798a(0x3cc)]])[_0x3e798a(0x1db)]($[_0x3e798a(0x1de)](([_0xb65bad,_0x30b542])=>({'skeleton':_0x460e0c[_0x3e798a(0x19c)](),'cursors':[..._0xb65bad[_0x3e798a(0x2b1)]()][_0x3e798a(0x31f)](_0x55a3b0=>({..._0x55a3b0,'color':this['_themeService']['getColorFromTheme'](_0x55a3b0['color'])}))})))['subscribe'](_0x7b3369=>{const _0x59a960=_0x3e798a;if(this[_0x59a960(0x37c)](),_0x7b3369){const {skeleton:_0x29e8fb,cursors:_0x163891}=_0x7b3369;this[_0x59a960(0x3fc)](_0x29e8fb,_0x163891);}})),this[_0x3e798a(0x2c8)](),this['_initCommandExecutedListener']();}[_0xbd72b5(0x3fc)](_0x207d1b,_0x4dd06b){const _0x227c86=_0xbd72b5,{scene:_0x3f765a,mainComponent:_0x384c23}=this[_0x227c86(0x33b)],_0x3bfe6c=_0x4dd06b[_0x227c86(0x1de)](_0x36308c=>new De(_0x36308c,_0x3f765a,_0x207d1b,_0x384c23));this[_0x227c86(0x37b)]=_0x3bfe6c,this[_0x227c86(0x382)]=_0x4dd06b;}['_refreshCollabCursors'](){const _0x4912fb=_0xbd72b5;this['_removeCollabCursors']();const {scene:_0x2922fb,mainComponent:_0x45036a}=this['_context'],_0x76cf4c=this['_docSkeletonManagerService']['getSkeleton'](),_0x2f2201=this[_0x4912fb(0x382)]['map'](_0x1d4930=>new De(_0x1d4930,_0x2922fb,_0x76cf4c,_0x45036a));this[_0x4912fb(0x37b)]=_0x2f2201;}[_0xbd72b5(0x37c)](){const _0x1742f7=_0xbd72b5;this['_cursorShapes'][_0x1742f7(0x276)](_0x20d0c1=>_0x20d0c1[_0x1742f7(0x32e)]()),this[_0x1742f7(0x37b)]=[];}[_0xbd72b5(0x18d)](){const _0xae3eb5=_0xbd72b5,_0x274ae9=[b[_0xae3eb5(0x20e)]['id']];this[_0xae3eb5(0x323)](this[_0xae3eb5(0x29d)][_0xae3eb5(0x3eb)](_0x28b873=>{const _0x447884=_0xae3eb5;_0x274ae9[_0x447884(0x214)](_0x28b873['id'])&&_0x28b873['params'][_0x447884(0x1f4)]===this['_context'][_0x447884(0x1f4)]&&this['_refreshCollabCursors']();}));}[_0xbd72b5(0x2c8)](){const _0x3b7f4a=_0xbd72b5;this[_0x3b7f4a(0x323)](a[_0x3b7f4a(0x278)](this[_0x3b7f4a(0x33b)][_0x3b7f4a(0x366)][_0x3b7f4a(0x395)])[_0x3b7f4a(0x1db)]($['filter'](_0x238e0b=>_0x238e0b[_0x3b7f4a(0x1fa)]===p[_0x3b7f4a(0x251)][_0x3b7f4a(0x2f0)]),$[_0x3b7f4a(0x375)](0x10))[_0x3b7f4a(0x1fc)](()=>{this['_refreshCollabCursors']();}));}};Ie=vt([W(0x1,a[_0xbd72b5(0x1d6)](Y[_0xbd72b5(0x1f3)])),W(0x2,a[_0xbd72b5(0x1d6)](x)),W(0x3,a[_0xbd72b5(0x3ea)]),W(0x4,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x1e9)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0xbd72b5(0x3fb)]{constructor(_0x1e4110,_0x11aeeb){const _0x10e73d=_0xbd72b5;super(_0x1e4110,_0x11aeeb),h(this,_0x10e73d(0x1c3)),h(this,_0x10e73d(0x191),!0x1),h(this,_0x10e73d(0x28b)),h(this,_0x10e73d(0x358),''),h(this,'_labelPosition',_0x10e73d(0x39c)),h(this,_0x10e73d(0x3a7)),(_0x11aeeb&&this['setShapeProps'](_0x11aeeb),this[_0x10e73d(0x1f6)]['subscribeEvent'](()=>this[_0x10e73d(0x3ff)]({'hovered':!0x0})),this[_0x10e73d(0x327)][_0x10e73d(0x209)](()=>this[_0x10e73d(0x3ff)]({'hovered':!0x1})));}[_0xbd72b5(0x3ff)](_0x4ceca2){const _0x54c72f=_0xbd72b5;var _0x3ca022,_0x87badb,_0x380f53,_0x20df35,_0x3101de,_0x1d364a;this['_color']=(_0x3ca022=_0x4ceca2[_0x54c72f(0x329)])!=null?_0x3ca022:this['_color'],this['_hovered']=(_0x87badb=_0x4ceca2[_0x54c72f(0x2d1)])!=null?_0x87badb:this['_hovered'],this[_0x54c72f(0x28b)]=(_0x380f53=_0x4ceca2[_0x54c72f(0x2c6)])!=null?_0x380f53:this['_range'],this[_0x54c72f(0x358)]=(_0x20df35=_0x4ceca2['name'])!=null?_0x20df35:this[_0x54c72f(0x358)],this[_0x54c72f(0x2e2)]=(_0x3101de=_0x4ceca2['labelPosition'])!=null?_0x3101de:this['_labelPosition'],this['_backgroundColor']=(_0x1d364a=_0x4ceca2[_0x54c72f(0x202)])!=null?_0x1d364a:this[_0x54c72f(0x3a7)],this[_0x54c72f(0x3e6)]({'width':_0x4ceca2['width'],'height':_0x4ceca2[_0x54c72f(0x27e)]});}['onMouseMove'](_0x5e4837){const _0xfa5324=_0xbd72b5,{row:_0x59ca00,column:_0x2a9957}=_0x5e4837;if(_0x59ca00>=this['_range']['startRow']&&_0x59ca00<=this[_0xfa5324(0x28b)]['endRow']&&_0x2a9957>=this[_0xfa5324(0x28b)]['startColumn']&&_0x2a9957<=this['_range']['endColumn']){this[_0xfa5324(0x3ff)]({'hovered':!0x0});return;}this[_0xfa5324(0x3ff)]({'hovered':!0x1});}[_0xbd72b5(0x3b2)](_0x597719){return!0x1;}[_0xbd72b5(0x1a4)](_0x51497d){const _0x221ae9=_0xbd72b5;p[_0x221ae9(0x354)][_0x221ae9(0x31b)](_0x51497d,{'width':this[_0x221ae9(0x2d9)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x221ae9(0x1c3)],'evented':!0x1,'fill':this[_0x221ae9(0x3a7)]}),this[_0x221ae9(0x191)]&&(_0x51497d[_0x221ae9(0x400)](),_0x51497d[_0x221ae9(0x291)](0x1,0x0,0x0,0x1,this['width'],this[_0x221ae9(0x2e2)]==='bottom'?0x0:-0x14),ee[_0x221ae9(0x31b)](_0x51497d,{'text':this[_0x221ae9(0x358)],'color':this[_0x221ae9(0x1c3)]}),_0x51497d[_0x221ae9(0x355)]());}}var Ct=Object[_0xbd72b5(0x402)],pt=(_0x38ece9,_0x3a4a6b,_0x526db5,_0x1b858f)=>{for(var _0x24baee=_0x1b858f>0x1?void 0x0:_0x1b858f?Ct(_0x3a4a6b,_0x526db5):_0x3a4a6b,_0x385ad2=_0x38ece9['length']-0x1,_0x521acb;_0x385ad2>=0x0;_0x385ad2--)(_0x521acb=_0x38ece9[_0x385ad2])&&(_0x24baee=_0x521acb(_0x24baee)||_0x24baee);return _0x24baee;},ae=(_0x3cf39f,_0x14fa7c)=>(_0x221b65,_0x5b074b)=>_0x14fa7c(_0x221b65,_0x5b074b,_0x3cf39f);const bt=0x1389;let ve=class extends a[_0xbd72b5(0x283)]{constructor(_0x43e2d6,_0x2d355,_0x15eccb,_0x4520ed){const _0x2ed856=_0xbd72b5;super(),h(this,'_cursors',new Set()),h(this,_0x2ed856(0x35e),null),(this[_0x2ed856(0x33b)]=_0x43e2d6,this[_0x2ed856(0x3d5)]=_0x2d355,this['_collabCursorController']=_0x15eccb,this[_0x2ed856(0x398)]=_0x4520ed,this[_0x2ed856(0x1c9)]());}[_0xbd72b5(0x1c9)](){const _0x2cf5ed=_0xbd72b5;this[_0x2cf5ed(0x3d5)][_0x2cf5ed(0x22c)][_0x2cf5ed(0x1db)]($['takeUntil'](this[_0x2cf5ed(0x1a2)]),$[_0x2cf5ed(0x353)](_0x4e14cf=>{const _0x2a2ca3=_0x2cf5ed;if(_0x4e14cf){const _0x3f5d3f=_0x4e14cf['sheetId'];return d['combineLatest'](this[_0x2a2ca3(0x17a)][_0x2a2ca3(0x24f)](this[_0x2a2ca3(0x33b)][_0x2a2ca3(0x1f4)]),this[_0x2a2ca3(0x398)][_0x2a2ca3(0x3cc)])['pipe']($['map'](([_0x2a1ccc,_0x39438c])=>{const _0x42db08=_0x2a2ca3,_0x6df853=new Map();return _0x2a1ccc[_0x42db08(0x276)]((_0x51d086,_0x2658df)=>{const _0x2bc2d9=_0x42db08;if(_0x51d086[_0x2bc2d9(0x2a4)]===_0x3f5d3f){const _0x2d5a36={..._0x51d086};_0x2d5a36[_0x2bc2d9(0x329)]=this[_0x2bc2d9(0x398)][_0x2bc2d9(0x2db)](_0x51d086[_0x2bc2d9(0x329)]),_0x6df853['set'](_0x2658df,_0x2d5a36);}}),{'skeleton':_0x4e14cf,'cursors':_0x6df853};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2cf5ed(0x1fc)](({skeleton:_0x2c25e5,cursors:_0x3f3ac5})=>{const _0x274334=_0x2cf5ed;this['_removeCollabCursors'](),_0x2c25e5&&this[_0x274334(0x3fc)](_0x2c25e5,_0x3f3ac5);}),this['_sheetSkeletonManagerService'][_0x2cf5ed(0x22c)]['subscribe'](_0x20a22f=>{const _0x43f3b0=_0x2cf5ed;if(_0x20a22f==null)return;const {skeleton:_0x236c77}=_0x20a22f,{scene:_0x4318e9}=this[_0x43f3b0(0x33b)];_0x4318e9[_0x43f3b0(0x180)][_0x43f3b0(0x209)](a[_0x43f3b0(0x33a)](_0x351cf4=>{const _0x234319=_0x43f3b0;var _0x5191eb,_0x4c5980;const {offsetX:_0x5093b9,offsetY:_0x773ff3}=_0x351cf4,{x:_0x335430,y:_0x3175b6}=_0x4318e9[_0x234319(0x288)](p['Vector2'][_0x234319(0x3b9)]([_0x5093b9,_0x773ff3])),{scaleX:_0x205d3b,scaleY:_0x46596f}=_0x4318e9[_0x234319(0x325)](),_0x1c3677=_0x4318e9[_0x234319(0x1e4)](p[_0x234319(0x3db)][_0x234319(0x26e)]),_0x58d4f8=_0x4318e9['getVpScrollXYInfoByPosToVp'](p[_0x234319(0x17c)][_0x234319(0x3b9)]([_0x335430,_0x3175b6]),_0x1c3677),_0x39c605=_0x236c77['getCellPositionByOffset'](_0x5093b9,_0x773ff3,_0x205d3b,_0x46596f,_0x58d4f8);((_0x5191eb=this[_0x234319(0x35e)])==null?void 0x0:_0x5191eb['column'])===_0x39c605[_0x234319(0x264)]&&((_0x4c5980=this[_0x234319(0x35e)])==null?void 0x0:_0x4c5980[_0x234319(0x210)])===_0x39c605[_0x234319(0x210)]||this['_cursors']['forEach'](_0x246333=>{const _0x5998ba=_0x234319;_0x246333[_0x5998ba(0x194)](_0x39c605);});},0x64));});}[_0xbd72b5(0x3fc)](_0x52dc60,_0x501c20){const _0x341313=_0xbd72b5;var _0x6c3aa9;const _0x2c175c=(_0x6c3aa9=this[_0x341313(0x3d5)][_0x341313(0x36d)]())==null?void 0x0:_0x6c3aa9['skeleton'];if(!_0x2c175c)return;const _0x5ce95c=this[_0x341313(0x274)]();if(!_0x5ce95c)return;this[_0x341313(0x382)]['forEach'](_0x22c12c=>{const _0x3c44f9=_0x341313;_0x22c12c[_0x3c44f9(0x286)]();});const {scene:_0x2005b1}=_0x5ce95c,_0x203419=Et(Array[_0x341313(0x20b)](_0x501c20[_0x341313(0x2b1)]()))[_0x341313(0x1de)](_0x47a532=>{const _0x23c22e=_0x341313,{color:_0xf3e76f,range:_0x9f7d1b,name:_0x2ffe95,selection:_0x38ae94,sheetID:_0x29b868}=_0x47a532,{startColumn:_0x5bf495,startRow:_0x419750,endColumn:_0xc7110b,endRow:_0x70b226}=_0x9f7d1b,_0x714fe1=X['getCoordByCell'](_0x419750,_0x5bf495,_0x2005b1,_0x2c175c),_0x4c133a=X[_0x23c22e(0x1d0)](_0x70b226,_0xc7110b,_0x2005b1,_0x2c175c),{columnHeaderHeightAndMarginTop:_0x42e855}=_0x2c175c,{startX:_0x366635,startY:_0xa4460e}=_0x714fe1,{endX:_0x2a217a,endY:_0x513788}=_0x4c133a,_0x1ee8f9=_0x2a217a-_0x366635,_0x1579d5=_0x513788-_0xa4460e,_0x3cebdc={'labelPosition':_0xa4460e-_0x42e855>=K?_0x23c22e(0x39c):_0x23c22e(0x1ce),'sheetID':_0x29b868,'range':_0x9f7d1b,'color':_0xf3e76f,'name':_0x2ffe95,'selection':_0x38ae94,'left':_0x366635,'top':_0xa4460e,'width':_0x1ee8f9,'height':_0x1579d5,'evented':!0x1,'zIndex':bt};return new Ae(_0x2ffe95,_0x3cebdc);});_0x2005b1[_0x341313(0x2cb)](_0x203419,gt),this[_0x341313(0x382)]=new Set(_0x203419);}[_0xbd72b5(0x37c)](){const _0x461b9e=_0xbd72b5;var _0x303b7a;(_0x303b7a=this['_cursors'])==null||_0x303b7a[_0x461b9e(0x276)](_0x468b31=>_0x468b31[_0x461b9e(0x32e)]());}[_0xbd72b5(0x274)](){const _0x200256=_0xbd72b5;return X['getSheetObject'](this[_0x200256(0x33b)][_0x200256(0x292)],this[_0x200256(0x33b)]);}};ve=pt([ae(0x1,a[_0xbd72b5(0x1d6)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x1e9)]))],ve);function Et(_0x18902e){const _0x3d2b33=_0xbd72b5,_0x5df69a=new Map();return _0x18902e[_0x3d2b33(0x276)](_0x4b3af3=>{const _0x3e65c8=_0x3d2b33;if(_0x5df69a[_0x3e65c8(0x3c8)](_0x4b3af3['selection'])){const _0x212e95=_0x5df69a[_0x3e65c8(0x206)](_0x4b3af3[_0x3e65c8(0x391)]);_0x212e95[_0x3e65c8(0x1dd)]+=',\x20'+_0x4b3af3[_0x3e65c8(0x1dd)];}else _0x5df69a['set'](_0x4b3af3[_0x3e65c8(0x391)],_0x4b3af3);}),Array[_0x3d2b33(0x20b)](_0x5df69a[_0x3d2b33(0x2b1)]());}var E=function(){const _0x120a18=_0xbd72b5;return E=Object['assign']||function(_0x434c81){const _0x231345=_0x4dae;for(var _0x340861,_0x5a9f68=0x1,_0x5b7a4a=arguments[_0x231345(0x1cf)];_0x5a9f68<_0x5b7a4a;_0x5a9f68++){_0x340861=arguments[_0x5a9f68];for(var _0x4f05fd in _0x340861)Object['prototype'][_0x231345(0x2e9)]['call'](_0x340861,_0x4f05fd)&&(_0x434c81[_0x4f05fd]=_0x340861[_0x4f05fd]);}return _0x434c81;},E[_0x120a18(0x1d5)](this,arguments);},Tt=function(_0x573f4d,_0x33c2dc){const _0xf5082d=_0xbd72b5;var _0x1b3f1e={};for(var _0x4c1196 in _0x573f4d)Object[_0xf5082d(0x1b0)][_0xf5082d(0x2e9)][_0xf5082d(0x392)](_0x573f4d,_0x4c1196)&&_0x33c2dc[_0xf5082d(0x1c8)](_0x4c1196)<0x0&&(_0x1b3f1e[_0x4c1196]=_0x573f4d[_0x4c1196]);if(_0x573f4d!=null&&typeof Object[_0xf5082d(0x1ed)]==_0xf5082d(0x272)){for(var _0x4f86e9=0x0,_0x4c1196=Object[_0xf5082d(0x1ed)](_0x573f4d);_0x4f86e9<_0x4c1196[_0xf5082d(0x1cf)];_0x4f86e9++)_0x33c2dc[_0xf5082d(0x1c8)](_0x4c1196[_0x4f86e9])<0x0&&Object[_0xf5082d(0x1b0)][_0xf5082d(0x19b)]['call'](_0x573f4d,_0x4c1196[_0x4f86e9])&&(_0x1b3f1e[_0x4c1196[_0x4f86e9]]=_0x573f4d[_0x4c1196[_0x4f86e9]]);}return _0x1b3f1e;},pe=M['forwardRef'](function(_0x212ef7,_0x4c7b1c){const _0x5459bb=_0xbd72b5;var _0x209ca8=_0x212ef7[_0x5459bb(0x34e)],_0x556c98=_0x212ef7['id'],_0x27b6f7=_0x212ef7[_0x5459bb(0x2ba)],_0x31e485=_0x212ef7['extend'],_0x36444e=Tt(_0x212ef7,[_0x5459bb(0x34e),'id','className',_0x5459bb(0x20f)]),_0x3f23ad=_0x5459bb(0x3d7)[_0x5459bb(0x394)](_0x556c98,'\x20')[_0x5459bb(0x394)](_0x27b6f7||'')[_0x5459bb(0x379)](),_0x2381dd=M['useRef']('_'[_0x5459bb(0x394)](Dt()));return we(_0x209ca8,''[_0x5459bb(0x394)](_0x556c98),{'defIds':_0x209ca8['defIds'],'idSuffix':_0x2381dd[_0x5459bb(0x266)]},E({'ref':_0x4c7b1c,'className':_0x3f23ad},_0x36444e),_0x31e485);});function we(_0x26c4a7,_0xf7b250,_0x172c45,_0x4b991e,_0x2520ca){const _0x14d71f=_0xbd72b5;return M[_0x14d71f(0x208)](_0x26c4a7['tag'],E(E({'key':_0xf7b250},Ot(_0x26c4a7,_0x172c45,_0x2520ca)),_0x4b991e),(Rt(_0x26c4a7,_0x172c45)[_0x14d71f(0x313)]||[])[_0x14d71f(0x1de)](function(_0x146967,_0x4589be){const _0x40871e=_0x14d71f;return we(_0x146967,''[_0x40871e(0x394)](_0xf7b250,'-')[_0x40871e(0x394)](_0x26c4a7[_0x40871e(0x3e2)],'-')[_0x40871e(0x394)](_0x4589be),_0x172c45,void 0x0,_0x2520ca);}));}function Ot(_0x3d4a1a,_0x5b12d1,_0x2ad590){const _0x31c82b=_0xbd72b5;var _0xca343=E({},_0x3d4a1a[_0x31c82b(0x356)]);_0x2ad590!=null&&_0x2ad590[_0x31c82b(0x1d8)]&&_0xca343['fill']===_0x31c82b(0x1d8)&&(_0xca343[_0x31c82b(0x403)]=_0x2ad590[_0x31c82b(0x1d8)]),_0x3d4a1a[_0x31c82b(0x3e2)]===_0x31c82b(0x2dd)&&_0xca343['id']&&(_0xca343['id']=_0xca343['id']+_0x5b12d1['idSuffix']),Object[_0x31c82b(0x2bd)](_0xca343)[_0x31c82b(0x276)](function(_0x418125){const _0x1cc1ab=_0x31c82b;var _0x296683=_0x418125[0x0],_0x571be8=_0x418125[0x1];_0x296683===_0x1cc1ab(0x2dd)&&typeof _0x571be8==_0x1cc1ab(0x2ce)&&(_0xca343[_0x296683]=_0x571be8[_0x1cc1ab(0x3b4)](/url\(#(.*)\)/,'url(#$1'[_0x1cc1ab(0x394)](_0x5b12d1[_0x1cc1ab(0x3a3)],')')));});var _0x431888=_0x5b12d1[_0x31c82b(0x260)];return!_0x431888||_0x431888[_0x31c82b(0x1cf)]===0x0||(_0x3d4a1a[_0x31c82b(0x3e2)]===_0x31c82b(0x187)&&_0xca343[_0x31c82b(0x22d)]&&(_0xca343[_0x31c82b(0x22d)]=_0xca343[_0x31c82b(0x22d)]+_0x5b12d1[_0x31c82b(0x3a3)]),Object[_0x31c82b(0x2bd)](_0xca343)[_0x31c82b(0x276)](function(_0xe83910){const _0x2586e1=_0x31c82b;var _0x235a80=_0xe83910[0x0],_0x25b2d6=_0xe83910[0x1];typeof _0x25b2d6=='string'&&(_0xca343[_0x235a80]=_0x25b2d6[_0x2586e1(0x3b4)](/url\(#(.*)\)/,_0x2586e1(0x301)[_0x2586e1(0x394)](_0x5b12d1[_0x2586e1(0x3a3)],')')));})),_0xca343;}function Rt(_0x42b042,_0x10ac38){const _0x653a2d=_0xbd72b5;var _0x2cc150,_0x23b65d=_0x10ac38[_0x653a2d(0x260)];return!_0x23b65d||_0x23b65d[_0x653a2d(0x1cf)]===0x0?_0x42b042:_0x42b042[_0x653a2d(0x3e2)]===_0x653a2d(0x176)&&(!((_0x2cc150=_0x42b042['children'])===null||_0x2cc150===void 0x0)&&_0x2cc150[_0x653a2d(0x1cf)])?E(E({},_0x42b042),{'children':_0x42b042[_0x653a2d(0x313)]['map'](function(_0x4dca02){const _0x512d4f=_0x653a2d;return typeof _0x4dca02[_0x512d4f(0x356)]['id']==_0x512d4f(0x2ce)&&_0x23b65d&&_0x23b65d[_0x512d4f(0x1c8)](_0x4dca02[_0x512d4f(0x356)]['id'])>-0x1?E(E({},_0x4dca02),{'attrs':E(E({},_0x4dca02[_0x512d4f(0x356)]),{'id':_0x4dca02[_0x512d4f(0x356)]['id']+_0x10ac38['idSuffix']})}):_0x4dca02;})}):_0x42b042;}function Dt(){const _0x5275f9=_0xbd72b5;return Math[_0x5275f9(0x3ad)]()[_0x5275f9(0x352)](0x24)[_0x5275f9(0x249)](0x2,0x8);}pe[_0xbd72b5(0x17d)]=_0xbd72b5(0x374);var Ut={'tag':_0xbd72b5(0x262),'attrs':{'fill':_0xbd72b5(0x215),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0xbd72b5(0x197)},'children':[{'tag':'g','attrs':{'clipPath':_0xbd72b5(0x1b4)},'children':[{'tag':_0xbd72b5(0x337),'attrs':{'stroke':_0xbd72b5(0x295),'d':_0xbd72b5(0x3cd),'strokeLinecap':_0xbd72b5(0x27c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xbd72b5(0x176),'attrs':{},'children':[{'tag':_0xbd72b5(0x1e3),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0xbd72b5(0x337),'attrs':{'fill':'#fff','d':_0xbd72b5(0x3c6)}}]}]}],'defIds':[_0xbd72b5(0x321)]},ye=M[_0xbd72b5(0x31a)](function(_0x37738a,_0x14f08d){const _0x5691d2=_0xbd72b5;return M[_0x5691d2(0x208)](pe,Object[_0x5691d2(0x2ff)]({},_0x37738a,{'id':'off-line-single','ref':_0x14f08d,'icon':Ut}));});ye[_0xbd72b5(0x17d)]='OffLineSingle';var Nt={'tag':_0xbd72b5(0x262),'attrs':{'fill':_0xbd72b5(0x215),'viewBox':_0xbd72b5(0x2ee),'width':_0xbd72b5(0x197),'height':_0xbd72b5(0x197)},'children':[{'tag':'g','attrs':{'clipPath':_0xbd72b5(0x37e)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0xbd72b5(0x27c),'strokeLinejoin':_0xbd72b5(0x27c),'strokeWidth':1.2}}]},{'tag':_0xbd72b5(0x176),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xbd72b5(0x21d)},'children':[{'tag':_0xbd72b5(0x337),'attrs':{'fill':_0xbd72b5(0x3b7),'d':_0xbd72b5(0x3c6),'transform':_0xbd72b5(0x328)}}]}]}],'defIds':[_0xbd72b5(0x21d)]},$e=M[_0xbd72b5(0x31a)](function(_0x35dce7,_0x18d6ff){const _0x4c7e64=_0xbd72b5;return M[_0x4c7e64(0x208)](pe,Object[_0x4c7e64(0x2ff)]({},_0x35dce7,{'id':_0x4c7e64(0x250),'ref':_0x18d6ff,'icon':Nt}));});$e['displayName']=_0xbd72b5(0x3f8);function Mt(_0x304872){const _0x17f7f7=_0xbd72b5;switch(_0x304872){case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x3dd)]:return _0x17f7f7(0x2b5);case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x25a)]:return'collabStatus.conflict';case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x243)]:return _0x17f7f7(0x378);case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x184)]:return _0x17f7f7(0x199);case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x234)]:case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x3da)]:return'collabStatus.syncing';case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x38f)]:case u[_0x17f7f7(0x1a1)]['PENDING']:return _0x17f7f7(0x32c);}}function xe(_0x57aae4){const _0x2d1701=_0xbd72b5,{status$:_0x15b058}=_0x57aae4,_0x4690b0=T[_0x2d1701(0x1ff)](_0x15b058,u[_0x2d1701(0x1a1)]['NOT_COLLAB']),_0x58a989=T['useDependency'](a['LocaleService']),_0x181feb=T['useDependency'](u[_0x2d1701(0x307)]),_0x98b7e1=_0x4690b0!==u[_0x2d1701(0x1a1)][_0x2d1701(0x3dd)],_0x2a3f5b=_0x58a989['t'](Mt(_0x4690b0)),_0x74fb7a=_0x98b7e1?P[_0x2d1701(0x388)]($e,{}):P[_0x2d1701(0x388)](ye,{}),_0x56ce1e=M[_0x2d1701(0x31c)](()=>{const _0x5836b4=_0x2d1701;_0x98b7e1||_0x181feb[_0x5836b4(0x2a1)]();},[_0x98b7e1,_0x181feb]);function _0x154f04(){const _0x1646a4=_0x2d1701;return P[_0x1646a4(0x189)](_0x1646a4(0x2c3),{'className':_0x1646a4(0x23e),'onClick':_0x56ce1e,'children':[P[_0x1646a4(0x388)](_0x1646a4(0x2c3),{'className':D['clsx']('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x98b7e1,'univer-text-red-500':!_0x98b7e1}),'children':_0x74fb7a}),P[_0x1646a4(0x388)](_0x1646a4(0x2c3),{'className':_0x1646a4(0x384),'children':_0x2a3f5b})]});}return _0x98b7e1?_0x154f04():P[_0x2d1701(0x388)](D['Tooltip'],{'title':_0x58a989['t'](_0x2d1701(0x242)),'children':_0x154f04()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x28ccbf,_0x465938,_0x166a57,_0x13f29d)=>{for(var _0xad1b0d=_0x13f29d>0x1?void 0x0:_0x13f29d?Lt(_0x465938,_0x166a57):_0x465938,_0x1c85f3=_0x28ccbf['length']-0x1,_0x2b61d9;_0x1c85f3>=0x0;_0x1c85f3--)(_0x2b61d9=_0x28ccbf[_0x1c85f3])&&(_0xad1b0d=_0x2b61d9(_0xad1b0d)||_0xad1b0d);return _0xad1b0d;},V=(_0x353d6e,_0x489411)=>(_0x59baa8,_0x5655fa)=>_0x489411(_0x59baa8,_0x5655fa,_0x353d6e);exports[_0xbd72b5(0x3fa)]=class extends a[_0xbd72b5(0x1b7)]{constructor(_0x5b6274,_0x31cc5d,_0x1bdaa9,_0x3b5a57){const _0x6f7e03=_0xbd72b5;super(),h(this,_0x6f7e03(0x3bc),new d['BehaviorSubject'](u[_0x6f7e03(0x1a1)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x5b6274,this[_0x6f7e03(0x207)]=_0x31cc5d,this['_collaborationController']=_0x1bdaa9,this['_uiPartsService']=_0x3b5a57,this[_0x6f7e03(0x23f)](),this[_0x6f7e03(0x3c4)]());}[_0xbd72b5(0x3c4)](){const _0x11a000=_0xbd72b5;this[_0x11a000(0x323)](this[_0x11a000(0x224)][_0x11a000(0x218)]['pipe'](d[_0x11a000(0x353)](()=>{const _0xbf1857=_0x11a000,_0x28b51c=this[_0xbf1857(0x224)][_0xbf1857(0x397)]();return _0x28b51c?this['_collaborationController'][_0xbf1857(0x2e6)](_0x28b51c[_0xbf1857(0x1e1)]()):d['of'](null);}),d['switchMap'](_0x63fce0=>_0x63fce0?_0x63fce0['status$']:d['of'](u['CollaborationStatus'][_0x11a000(0x184)])))['subscribe'](_0x3a2ff9=>{const _0x482852=_0x11a000;this['_status$'][_0x482852(0x2ad)](_0x3a2ff9);}));}[_0xbd72b5(0x23f)](){const _0x17e0c1=_0xbd72b5;this[_0x17e0c1(0x323)](this[_0x17e0c1(0x1ba)][_0x17e0c1(0x3b8)](T[_0x17e0c1(0x22e)][_0x17e0c1(0x23c)],()=>T['connectInjector'](At({'status$':this[_0x17e0c1(0x3bc)][_0x17e0c1(0x30a)]()}),this[_0x17e0c1(0x207)])));}},exports[_0xbd72b5(0x3fa)]=Pt([V(0x0,a[_0xbd72b5(0x3e7)]),V(0x1,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),V(0x2,a[_0xbd72b5(0x1d6)](u[_0xbd72b5(0x335)])),V(0x3,T['IUIPartsService'])],exports[_0xbd72b5(0x3fa)]);function At(_0x25835d){const {status$:_0x41d9d2}=_0x25835d;return function(){const _0x3ed237=_0x4dae;return P[_0x3ed237(0x388)](xe,{'status$':_0x41d9d2});};}var wt=Object[_0xbd72b5(0x402)],yt=(_0x3919bd,_0x108394,_0x18ceff,_0x5404c3)=>{for(var _0x1d3689=_0x5404c3>0x1?void 0x0:_0x5404c3?wt(_0x108394,_0x18ceff):_0x108394,_0x2fd311=_0x3919bd['length']-0x1,_0x1cd51d;_0x2fd311>=0x0;_0x2fd311--)(_0x1cd51d=_0x3919bd[_0x2fd311])&&(_0x1d3689=_0x1cd51d(_0x1d3689)||_0x1d3689);return _0x1d3689;},y=(_0x2d9898,_0x282748)=>(_0x2ed767,_0x54dd88)=>_0x282748(_0x2ed767,_0x54dd88,_0x2d9898);let q=class extends a['Disposable']{constructor(_0x96815d,_0x15132f,_0x4c46fa,_0x56a7ea,_0x5d7663,_0x14abfc){const _0x317ddc=_0xbd72b5;super(),this[_0x317ddc(0x282)]=_0x96815d,this['_localCacheService']=_0x15132f,this[_0x317ddc(0x344)]=_0x4c46fa,this[_0x317ddc(0x1b9)]=_0x56a7ea,this[_0x317ddc(0x1cb)]=_0x5d7663,this[_0x317ddc(0x3bf)]=_0x14abfc,this[_0x317ddc(0x293)](),this[_0x317ddc(0x28c)]();}[_0xbd72b5(0x293)](){const _0x2a9201=_0xbd72b5;this[_0x2a9201(0x323)](this[_0x2a9201(0x282)][_0x2a9201(0x362)](()=>{const _0x44d3c6=_0x2a9201;if(this[_0x44d3c6(0x2e1)][_0x44d3c6(0x289)][_0x44d3c6(0x2c9)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0xbd72b5(0x28c)](){const _0xdafa9a=_0xbd72b5;this[_0xdafa9a(0x323)](this[_0xdafa9a(0x344)][_0xdafa9a(0x3cf)]['subscribe'](_0x39ee0d=>{const _0x1348b1=_0xdafa9a;_0x39ee0d['id']===u[_0x1348b1(0x36c)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x1348b1(0x17b)]({'type':D['MessageType'][_0x1348b1(0x3df)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x39ee0d['id']===u[_0x1348b1(0x36c)][_0x1348b1(0x319)]&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x1348b1(0x25d))}),_0x39ee0d['id']===u[_0x1348b1(0x36c)]['PERMISSION_DENIED']&&this[_0x1348b1(0x1cb)][_0x1348b1(0x17b)]({'title':this['_localeService']['t'](_0x1348b1(0x35b)),'content':this['_localeService']['t'](_0x1348b1(0x261)),'type':_0x1348b1(0x3ca),'duration':0x0}),_0x39ee0d['id']===u[_0x1348b1(0x36c)][_0x1348b1(0x25a)]&&this['_messageService']['show']({'type':D[_0x1348b1(0x3c9)][_0x1348b1(0x3d3)],'content':this[_0x1348b1(0x3bf)]['t'](_0x1348b1(0x25d))+'('+_0x39ee0d[_0x1348b1(0x2b9)]+')'}),_0x39ee0d['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x1348b1(0x1b9)]['show']({'type':D[_0x1348b1(0x3c9)]['Warning'],'content':this[_0x1348b1(0x3bf)]['t'](_0x39ee0d[_0x1348b1(0x2b9)]||'')}),_0x39ee0d['id']===u['CollaborationUIEventId'][_0x1348b1(0x1ab)]&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x1348b1(0x1f9))}),_0x39ee0d['id']===u[_0x1348b1(0x36c)][_0x1348b1(0x393)]&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D[_0x1348b1(0x3c9)][_0x1348b1(0x3d3)],'content':this[_0x1348b1(0x3bf)]['t'](_0x1348b1(0x38d))}),_0x39ee0d['id']===u[_0x1348b1(0x36c)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D[_0x1348b1(0x3c9)][_0x1348b1(0x3d3)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,T[_0xbd72b5(0x376)]),y(0x1,u[_0xbd72b5(0x22f)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,T[_0xbd72b5(0x2f8)]),y(0x4,T[_0xbd72b5(0x1fd)]),y(0x5,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x226)]))],q);const $t=_0xbd72b5(0x369),Ue={},be=a[_0xbd72b5(0x386)](_0xbd72b5(0x1fe));function _0x3f5d(){const _0xf06ba5=['_configService','_cursorInfo$','_updateURLWithCurrentState','DisposableCollection','runRefRangeMutations','HEADER_MENU','setAlpha','univer-flex\x20univer-items-center','_initStatusComponent','_document','MemberService','collab-client.tooltip.reconnect','FETCH_MISS','ILocalStorageService','setConfig','186613qUvmoJ','_scheduleClearOtherTimer','_collabSessionService','substring','IConfigService','_memberService','href','symbol','handleIRemoveCol','getCollabCursors$','on-line-single','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getItem','DocIMEInputManagerService','UPDATE_CURSOR','DocCollaborationEntity','_onRefRangeChange','BehaviorSubject','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','WebBrowserSingleActiveUnitService','CONFLICT','ITransformService','_updateSubUnitFromURLParams','collaboration.closeRoom','ranges','hide','defIds','permission.content','svg','undoState','column','_drawRectRange','current','cursorInfo$','ALREADY_EXISTS','_online','getOffsetConfig','#FFF','findNodePositionByCharIndex','textRanges','VIEW_MAIN','search','handleIRemoveRow','with','function','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_getSheetObject','getRangePointData','forEach','OTHER_CLIENTS_EDITING','fromEventSubject','USER_NOT_INVITED_CODE','setActiveRange','_saveCache','round','split','height','lineTo','disableLocalCache','_hover','_beforeCloseService','RxDisposable','getUnhiddenWorksheets','exhaustSavingTask','makeDirty','registerRenderModule','getRelativeToViewportCoord','saveTaskMap','transformMutation','_range','_initEvent','rgba(255,\x20255,\x20255,\x200.01)','_scene','isTransformMutationFailure','post','transform','unit','_setupBeforeClosingHandler','_toggleOnline','currentColor','getMergeData','CollaborationEvent','origin','_revisionService','shareReplay','CommandType','INVITE_CODE_REQUIRED','_commandService','_logService','jiqing.500','LOGIN_FAILED','reconnect','APPLY_DUPLICATED','TEXT_RANGE_LAYER_INDEX','sheetID','storage','black','getDocRanges','RevisionService','[CollaborationDataLoaderController]','react/jsx-runtime','editingUnit','_textBubble','next','_cachedData','getCurrentRevOfUnit','APPLY_REVISION_CONFILICT','values','_localStorageService','_getAnchorBounding','distinctUntilChanged','collabStatus.offline','_anchorDot','ColorKit','_handleHover','data','className','executeCommand','pushState','entries','12zONZsl','RemoteUniscriptService','_docStateChangeManagerService','_docSkeleton','UNIVER_SHEET','div','setItem','_assignedColors','range','unsubscribe','_initResize','size','Module','addObjects','actions','CollaborationDataLoaderController','string','wsSessionTicketUrl','transformMutationsWithChangeset','hovered','Unknown\x20user','createInstance','min','loadUnit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','eventID','complete','width','body','getColorFromTheme','DOC_RANGE_TYPE','mask','saveOfflineData','_docTransformIMECacheService','debug','_localCacheService','_labelPosition','getParam','_docClipboardService','key','getCollabEntity$','_colorIndex','activeSheet$','hasOwnProperty','green.600','getMember','invokeId','params','0\x200\x2017\x2016','_initDependencies','resize','unshift','setUndoRedoMutationParamsCache','MoveRangeCommandId','_initEntityListener','requireSession','getLocalCacheKey','push','IMessageService','getActiveRange','_imageIoService','YUUMI_AI_RUN_FAILED','_roomMembers$','clearTimeout','newValue','assign','_startDocCollabCursor','url(#$1','8784391DPTmZW','blue.400','EffectRefRangId','LOCAL_CACHE_INTERVAL','getSheetBySheetId','CollaborationSessionService','CHANGESET_REVISION_CONFILICT','INTERNAL_ERROR','asObservable','EMAIL_HAS_BEEN_BOUND','getTypeOfUnitDisposed$','SNAPSHOT_INVALID_SNAPSHOT','source','m2Prime','takeUntil','getConfig','YUUMI_ALL_TABLES_IS_INVALID','children','WECHAT_HAS_BEEN_BOUND','DEFAULT_WS_SESSION_TICKET_URL','measureText','setInterval','SetSelectionsOperation','CLOSE_ROOM','forwardRef','drawWith','useCallback','deserializeRangeWithSheet','getSheetId','flatMap','_heartbeatTimer','off-line-single_clip0_910_343','toStringTag','disposeWithMe','history','getAncestorScale','evenodd','onPointerLeave$','translate(.97)','color','_updateLocalCursor','toRgbString','collabStatus.synced','onLocalMutation','dispose','Tools','_entities','@univerjs/engine-render','rxjs/operators','purple.300','543870FJravT','CollaborationController','UNRECOGNIZED','path','Injector','@univerjs/sheets-ui','debounce','_context','syncEditingCollabCursor','getUnitStatus$','_eventUnsubscribe','sessionTicket','DeleteRangeMoveUpCommandId','1317316VYvsRJ','Subject','LICENSE_EXPORT_SIZE_EXCEEDED','_collaborationUIEventService','addHandlerCallback','fillStyle','unload','IRemoteInstanceService','10768336NLuDEs','_onCursorUpdate','searchParams','then','HTTPService','icon','_disabled','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_urlService','toString','switchMap','Rect','restore','attrs','setTimeout','_name','_docTransformStateCacheService','getCurrentUnitForType','permission.title','assignAColorForMemberID','DeleteRangeMoveLeftCommandId','_lastPointer','collab-text-anchor-','ILogService','_docSyncEditingCollabCursorService','registerBeforeClose','text','UNAUTHENTICATED','getTypeOfUnitAdded$','engine','_getSaveTimeout','YUUMI_RATE_OVER_LIMIT','collaboration-client-ui.config','getUniverSheetInstance','_collaborationController','CollaborationUIEventId','getCurrent','_docSkeletonManagerService','imageSourceType','parse','Optional','SheetsSelectionsService','_doCreateSocket','UniverIcon','throttleTime','IBeforeCloseService','defineProperty','collabStatus.fetchMiss','trim','RECT','_cursorShapes','_removeCollabCursors','ISnapshotServerService','url(#on-line-single_clip0_910_349)','_onCursorDelete','USERS_LEAVE','subunit','_cursors','handleInsertRangeMoveDown','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','toDisposable','createIdentifier','576579akDiPY','jsx','DocSelectionManagerService','YUUMI_URL_COL_OUT_OF_RANGE','UnitStatus','collabCursorState$','session.connection-failed','handleDeleteRangeMoveUp','SYNCED','_getScale','selection','call','SOCKET_FAILED','concat','onTransformChange$','ticket','getFocusedUnit','_themeService','_transformUndoRedoStack','_handleEvent','RegularPolygon','top','...','_transformHistoryAndStateStack','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','onStarting','cursorInfo','mergeOverrideWithDependencies','idSuffix','NO_OTHER_CLIENTS_EDITING','getStateCache','_httpService','_backgroundColor','max','_id','_syncEditingCollabCursorService','fillText','_unitOnClients','random','_scheduleSaving','_registerDependencies','_instanceService','redoState','triggerDblclick','Failed','replace','LICENSE_DISTRO_REJECTED','_collabCursorState$','#fff','registerComponent','FromArray','115rVZuEQ','transformStateCache','_status$','_getMergeRange','getMemberID','_localeService','saveImage','init','getValue','NOT_FOUND','_initStatusListener','SheetCollabCursorShape','M0\x200H16V16H0z','set','has','MessageType','error','contains','currentTheme$','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','@univerjs/ui','event$','getRenderById','CollaborationSocketService','9bBErXg','Error','sessionStatus$','_sheetSkeletonManagerService','debounceTime','univerjs-icon\x20univerjs-icon-','getColor','ISocketService','AWAITING_WITH_PENDING','SHEET_VIEWPORT_KEY','INVITE_CODE_HAS_BEEN_UES','OFFLINE','INVALID_ARGUMENT','Warning','clearInterval','transformIMECache','tag','_drawAnchor','executionId','_registerRenderDependencies','transformByState','IUniverInstanceService','PY_RUNTIME_SCRIPT_ERROR','_anchor','ICommandService','onCommandExecuted','docStateChange$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_session','ACTIVE_UNIT_EVENT_CHANNEL','_send','urlChange$','pluginName','@univerjs/drawing','LICENSE_IMPORT_SIZE_EXCEEDED','APPLY_NON_SEQUENTIAL_REVISION','CONNECTOR_DATA_TOO_LARGE','combineLatest','OnLineSingle','COMPLETION_FINISHED','DesktopCollaborationStatusDisplayController','Shape','_updateCollabCursors','_dataLoaderService','_entityInit$','setShapeProps','save','DependentOn','getOwnPropertyDescriptor','fill','m1Prime','defs','replaceState','UNDEFINED','handleInsertRow','_collabCursorController','show','Vector2','displayName','_handleLeaveEvent','roomMembers$','onPointerMove$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COLORS','runId','NOT_COLLAB','registerDependencies','_unitStatus','use','_colorAssignService','jsxs','registerRefRange','ENSURE_SNAPSHOT_EXECUTION','enableLocalCache','_initCommandExecutedListener','@univerjs/engine-formula','isActive','setStateCache','_hovered','collab-rect-range-','arc','onMouseMove','disposeUnit','_createSocketURL','1em','INVITE_CODE_ALREADY_BOUND','collabStatus.notCollab','ONLINE','propertyIsEnumerable','getSkeleton','SessionStatus','693OIpxgt','IRenderManagerService','@univerjs-pro/collaboration-client','CollaborationStatus','dispose$','roomMembers','_draw','_selfUnitIDs','handleInsertRangeMoveRight','createSocket','_transformPreviousActiveRange','_ensureSubject','YUUMI_ASYNCIO_CANCELLED','SOCKET_FAILED_RETRY','getCurrentSelections','_removeClearOtherTimer','SNAPSHOT_HAS_BEEN_REMOVED','deepClone','prototype','mutations','serializeRangeWithSheet','YUUMI_NO_CUBOID_FOR_QUESTION','url(#off-line-single_clip0_910_343)','@univerjs/core','isArray','Disposable','_cursor','_messageService','_uiPartsService','TOO_MANY_REQUESTS','merge','PERMISSION_DENIED','_config','location','addObject','_drawTextRange','YUUMI_UNABLE_LOAD_URL','_color','addClipboardHook','_handleHeartbeatEvent','Workbook','transformRemoteChangeset','indexOf','_init','fromEvent','_notificationService','RichTextEditingMutation','TEXT','bottom','length','getCoordByCell','INVALID_INVITE_CODE','filter','handleMoveRange','react','apply','Inject','APPLY_REJECT','colorChannel1','MOBILE_HAS_BEEN_BOUND','generateRandomId','pipe','_getSessionTicket','name','map','addEventListener','InsertRangeMoveDownCommandId','getUnitId','transformSelections','clipPath','getViewport','add','IDocClipboardService','yellow.400','rxjs','ThemeService','UniverCollaborationClientUIPlugin','some','getUndoRedoMutationParamsCache','getOwnPropertySymbols','_clearOtherTimers','popstate','_setupSubUnitSync','handleInsertCol','APPLY_PERMISSION_DENIED','DocSkeletonManagerService','unitId','_saveTaskMap','onPointerEnter$','isTransformMutationsWithChangesetSuccess','_docTransformSelectionsService','session.will-retry','type','BrowserCollaborationSocketService','subscribe','INotificationService','uni.network.url-service','useObservable','delete','_hideTimer','backgroundColor','_transformService','IImageIoService','all','get','_injector','createElement','subscribeEvent','fillRule','from','SetTextSelectionsOperation','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SetDocZoomRatioOperation','extend','row','UNIVER_DOC','/run/','onRendered','includes','none','UniverInstanceType','code','focused$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_renderManagerService','143106WrSsvZ','send','on-line-single_clip0_910_349','InsertColCommandId','_toggleOffline','setParam','IURLService','touchDependencies','YUUMI_SUBSCRIPTION_NOT_FOUND','_univerInstanceService','subUnitId','LocaleService','doc.mutation.rich-text-editing','RemoveColCommandId','DataLoaderService','stringify','unitID','currentSkeleton$','xlink:href','BuiltInUIPart','ILocalCacheService','_scheduleHeartbeat','_startSheetCollabCursor','_refRangeService','_handleJoinEvent','AWAITING','getActiveSheet','_shapes'];_0x3f5d=function(){return _0xf06ba5;};return _0x3f5d();}var xt=Object[_0xbd72b5(0x402)],jt=(_0x277767,_0x4d342a,_0x20c90b,_0x1b50fa)=>{const _0x3942e1=_0xbd72b5;for(var _0x253cea=_0x1b50fa>0x1?void 0x0:_0x1b50fa?xt(_0x4d342a,_0x20c90b):_0x4d342a,_0x3543b5=_0x277767[_0x3942e1(0x1cf)]-0x1,_0x3db2d2;_0x3543b5>=0x0;_0x3543b5--)(_0x3db2d2=_0x277767[_0x3543b5])&&(_0x253cea=_0x3db2d2(_0x253cea)||_0x253cea);return _0x253cea;},H=(_0x170dd3,_0x457358)=>(_0x3641cd,_0x235d2e)=>_0x457358(_0x3641cd,_0x235d2e,_0x170dd3);exports['CollaborationDataLoaderController']=class extends a[_0xbd72b5(0x283)]{constructor(_0x543940,_0x561f71,_0xd1575c,_0x15621f,_0x50534d){const _0x38ff08=_0xbd72b5;super(),this[_0x38ff08(0x351)]=_0x543940,this[_0x38ff08(0x29e)]=_0x561f71,this['_commandService']=_0xd1575c,this[_0x38ff08(0x3fd)]=_0x15621f,_0x50534d?_0x50534d==null||_0x50534d['whenReady']()[_0x38ff08(0x34c)](()=>this['_init']()):(this[_0x38ff08(0x29e)]['debug'](_0x38ff08(0x2a9),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0xbd72b5(0x1c9)](){const _0x342a06=_0xbd72b5,_0x13e363=this['_urlService'][_0x342a06(0x2e3)]('unit'),_0x4c6037=this[_0x342a06(0x351)][_0x342a06(0x2e3)](_0x342a06(0x1fa)),_0x5161d3=this[_0x342a06(0x351)][_0x342a06(0x2e3)](_0x342a06(0x381));if(!_0x13e363||!_0x4c6037){this[_0x342a06(0x29e)][_0x342a06(0x2e0)](_0x342a06(0x2a9),_0x342a06(0x181));return;}const _0x5ca0a5=await this['_dataLoaderService'][_0x342a06(0x2d5)](_0x13e363,Number(_0x4c6037),_0x5161d3);_0x5ca0a5&&_0x5ca0a5 instanceof a[_0x342a06(0x1c6)]&&this[_0x342a06(0x1f0)](_0x5ca0a5);}async[_0xbd72b5(0x1f0)](_0x2de546){const _0x3f0e13=_0xbd72b5;await this['_updateSubUnitFromURLParams'](_0x2de546),_0x2de546[_0x3f0e13(0x2e8)][_0x3f0e13(0x1db)](d[_0x3f0e13(0x310)](this[_0x3f0e13(0x1a2)]))[_0x3f0e13(0x1fc)](_0x1a602e=>{const _0x22dffa=_0x3f0e13;_0x1a602e&&this[_0x22dffa(0x239)](_0x1a602e);}),this[_0x3f0e13(0x351)][_0x3f0e13(0x3f1)][_0x3f0e13(0x1db)](d[_0x3f0e13(0x310)](this[_0x3f0e13(0x1a2)]))['subscribe'](()=>this[_0x3f0e13(0x25c)](_0x2de546));}['_updateURLWithCurrentState'](_0x2b109b,_0x6685c4=!0x1){const _0x2977eb=_0xbd72b5,_0x5a4d97=this['_urlService'][_0x2977eb(0x2e3)]('subunit');_0x2b109b[_0x2977eb(0x31e)]()!==_0x5a4d97&&this[_0x2977eb(0x351)][_0x2977eb(0x220)](_0x2977eb(0x381),_0x2b109b['getSheetId'](),_0x6685c4);}async['_updateSubUnitFromURLParams'](_0xd16c70){const _0x3f07a0=_0xbd72b5;var _0x2db716;const _0x5bb7a1=this[_0x3f07a0(0x351)][_0x3f07a0(0x2e3)](_0x3f07a0(0x381));if(!_0x5bb7a1||!_0xd16c70[_0x3f07a0(0x306)](_0x5bb7a1)){const _0x314f1e=_0xd16c70[_0x3f07a0(0x284)]()[0x0],_0x49a235=_0xd16c70[_0x3f07a0(0x306)](_0x314f1e);if(!_0x49a235)return;this[_0x3f07a0(0x239)](_0x49a235,!0x0),await this[_0x3f07a0(0x29d)][_0x3f07a0(0x2bb)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0xd16c70['getUnitId'](),'subUnitId':_0x314f1e});return;}((_0x2db716=_0xd16c70[_0x3f07a0(0x235)]())==null?void 0x0:_0x2db716[_0x3f07a0(0x31e)]())!==_0x5bb7a1&&await this['_commandService'][_0x3f07a0(0x2bb)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0xd16c70[_0x3f07a0(0x1e1)](),'subUnitId':_0x5bb7a1});}},exports[_0xbd72b5(0x2cd)]=jt([H(0x0,be),H(0x1,a[_0xbd72b5(0x360)]),H(0x2,a[_0xbd72b5(0x3ea)]),H(0x3,a[_0xbd72b5(0x1d6)](u[_0xbd72b5(0x229)])),H(0x4,a[_0xbd72b5(0x371)](Ke[_0xbd72b5(0x348)]))],exports[_0xbd72b5(0x2cd)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x4cede9,_0x3f3c89,_0x701cc0,_0x4dfab1)=>{for(var _0x56485b=_0x4dfab1>0x1?void 0x0:_0x4dfab1?Bt(_0x3f3c89,_0x701cc0):_0x3f3c89,_0x2e509c=_0x4cede9['length']-0x1,_0x3d0480;_0x2e509c>=0x0;_0x2e509c--)(_0x3d0480=_0x4cede9[_0x2e509c])&&(_0x56485b=_0x3d0480(_0x56485b)||_0x56485b);return _0x56485b;},ce=(_0x966325,_0x31a0df)=>(_0x24a56f,_0x495272)=>_0x31a0df(_0x24a56f,_0x495272,_0x966325);let z=class{constructor(_0x5d7fa7,_0x217f9d,_0x21b08d){const _0x4dc4ae=_0xbd72b5;this[_0x4dc4ae(0x207)]=_0x5d7fa7,this[_0x4dc4ae(0x203)]=_0x217f9d,this[_0x4dc4ae(0x21a)]=_0x21b08d;}['transformIMECache'](_0x50cc6b){const _0x424e78=_0xbd72b5;this[_0x424e78(0x399)](_0x50cc6b),this[_0x424e78(0x1a8)](_0x50cc6b);}[_0xbd72b5(0x1c7)](_0x40b648){const _0x525ba0=_0xbd72b5,{unitID:_0x45caa9}=_0x40b648,_0x53b2c7=this['_renderManagerService'][_0x525ba0(0x3d0)](_0x45caa9)[_0x525ba0(0x271)](b[_0x525ba0(0x253)]),{redoCache:_0x2667f9}=_0x53b2c7[_0x525ba0(0x1ec)]();if(_0x2667f9['length']===0x0)return _0x40b648;let _0x214be3=a[_0x525ba0(0x32f)][_0x525ba0(0x1af)](_0x40b648['mutations'][0x0]);for(let _0x19922a=0x0;_0x19922a<_0x2667f9[_0x525ba0(0x1cf)];_0x19922a++){const _0x26f0a6={'id':'doc.mutation.rich-text-editing','params':{..._0x2667f9[_0x19922a]}},_0x53db24=this['_transformService'][_0x525ba0(0x28a)](_0x214be3,_0x26f0a6,!0x1);if(m['isTransformMutationFailure'](_0x53db24))throw _0x53db24['error'];_0x214be3=_0x53db24['m1Prime'];}return{...a[_0x525ba0(0x32f)][_0x525ba0(0x1af)](_0x40b648),'mutations':[_0x214be3]};}[_0xbd72b5(0x399)](_0x3828c7){const _0x573043=_0xbd72b5,{unitID:_0x33ca92}=_0x3828c7,_0x3c7934=this['_renderManagerService'][_0x573043(0x3d0)](_0x33ca92)[_0x573043(0x271)](b[_0x573043(0x253)]),{undoCache:_0x1bf235,redoCache:_0x5ce001}=_0x3c7934[_0x573043(0x1ec)]();if(_0x1bf235[_0x573043(0x1cf)]===0x0||_0x5ce001['length']===0x0)return;const _0x2fce16=[],_0x1cfb64=[];let _0x127a05=a[_0x573043(0x32f)][_0x573043(0x1af)](_0x3828c7[_0x573043(0x1b1)][0x0]),_0x41dfa5=a[_0x573043(0x32f)]['deepClone'](_0x3828c7[_0x573043(0x1b1)][0x0]);for(let _0x327cf5=_0x1bf235['length']-0x1;_0x327cf5>=0x0;_0x327cf5--){const _0x3cc870={'id':_0x573043(0x227),'params':{..._0x1bf235[_0x327cf5]}},_0x845769={'id':_0x573043(0x227),'params':{..._0x5ce001[_0x327cf5]}},_0x3d12d0=this['_transformService'][_0x573043(0x28a)](_0x127a05,_0x3cc870,!0x1),_0x459665=this[_0x573043(0x203)][_0x573043(0x28a)](_0x41dfa5,_0x845769,!0x1);if(m[_0x573043(0x28f)](_0x3d12d0))throw _0x3d12d0[_0x573043(0x3ca)];if(m[_0x573043(0x28f)](_0x459665))throw _0x459665[_0x573043(0x3ca)];_0x2fce16[_0x573043(0x2f1)](_0x3d12d0[_0x573043(0x30f)][_0x573043(0x2ed)]),_0x1cfb64[_0x573043(0x2f1)](_0x459665[_0x573043(0x30f)][_0x573043(0x2ed)]),_0x127a05=_0x3d12d0[_0x573043(0x175)],_0x41dfa5=_0x459665[_0x573043(0x175)];}_0x3c7934[_0x573043(0x2f2)]({'undoCache':_0x2fce16,'redoCache':_0x1cfb64});}[_0xbd72b5(0x1a8)](_0x74b6ff){const _0x433a9e=_0xbd72b5,{unitID:_0x53bc25}=_0x74b6ff,_0x159679=this[_0x433a9e(0x21a)][_0x433a9e(0x3d0)](_0x53bc25)[_0x433a9e(0x271)](b[_0x433a9e(0x253)]),_0x301487=_0x159679[_0x433a9e(0x2f9)]();if(_0x301487==null)return;const _0x457c46=[{'id':_0x433a9e(0x227),'params':{'unitId':_0x74b6ff[_0x433a9e(0x22b)],'actions':null,'textRanges':[_0x301487]}}],_0x619a86=this[_0x433a9e(0x203)][_0x433a9e(0x2d0)](_0x74b6ff,_0x457c46);if(!m[_0x433a9e(0x1f7)](_0x619a86))throw _0x619a86[_0x433a9e(0x3ca)];const _0x2d8a96=_0x619a86['m2Prime'][0x0][_0x433a9e(0x2ed)][_0x433a9e(0x26d)];Array[_0x433a9e(0x1b6)](_0x2d8a96)&&_0x2d8a96[_0x433a9e(0x1cf)]&&_0x159679[_0x433a9e(0x27a)](_0x2d8a96[0x0]);}};z=kt([ce(0x0,a['Inject'](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p[_0xbd72b5(0x19f)])],z);var Ht=Object[_0xbd72b5(0x402)],Ft=(_0x1b4d1b,_0x441637,_0xebdf75,_0x366ad6)=>{for(var _0x2cc7d4=_0x366ad6>0x1?void 0x0:_0x366ad6?Ht(_0x441637,_0xebdf75):_0x441637,_0x2a4a73=_0x1b4d1b['length']-0x1,_0xd60df2;_0x2a4a73>=0x0;_0x2a4a73--)(_0xd60df2=_0x1b4d1b[_0x2a4a73])&&(_0x2cc7d4=_0xd60df2(_0x2cc7d4)||_0x2cc7d4);return _0x2cc7d4;},le=(_0x5cb184,_0x18279d)=>(_0x279fa7,_0x1bc23e)=>_0x18279d(_0x279fa7,_0x1bc23e,_0x5cb184);let J=class{constructor(_0x2708df,_0x85f291,_0x27f79f){this['_injector']=_0x2708df,this['_transformService']=_0x85f291,this['_docStateChangeManagerService']=_0x27f79f;}['transformStateCache'](_0x223a46){const _0x49612d=_0xbd72b5;this[_0x49612d(0x39e)](_0x223a46);}['transformRemoteChangeset'](_0x5892ac){const _0xf7caaf=_0xbd72b5,{unitID:_0x102b64}=_0x5892ac,{collaboration:_0x3b543e}=this[_0xf7caaf(0x2c0)][_0xf7caaf(0x3a5)](_0x102b64);if(_0x3b543e[_0xf7caaf(0x1cf)]===0x0)return _0x5892ac;let _0x2dd367=a[_0xf7caaf(0x32f)][_0xf7caaf(0x1af)](_0x5892ac[_0xf7caaf(0x1b1)][0x0]);for(let _0x5c205c=0x0;_0x5c205c<_0x3b543e['length'];_0x5c205c++){const _0x536441={'id':_0xf7caaf(0x227),'params':{'unitId':_0x3b543e[_0x5c205c][_0xf7caaf(0x1f4)],..._0x3b543e[_0x5c205c][_0xf7caaf(0x3b1)]}},_0x1b629c=this[_0xf7caaf(0x203)][_0xf7caaf(0x28a)](_0x2dd367,_0x536441,!0x1);if(m[_0xf7caaf(0x28f)](_0x1b629c))throw _0x1b629c[_0xf7caaf(0x3ca)];_0x2dd367=_0x1b629c[_0xf7caaf(0x175)];}return{...a[_0xf7caaf(0x32f)][_0xf7caaf(0x1af)](_0x5892ac),'mutations':[_0x2dd367]};}[_0xbd72b5(0x39e)](_0x55bf27){const _0x2a51ab=_0xbd72b5,{unitID:_0xd10394}=_0x55bf27,{history:_0x511a7e,collaboration:_0x51cb16}=this[_0x2a51ab(0x2c0)][_0x2a51ab(0x3a5)](_0xd10394);if(_0x511a7e[_0x2a51ab(0x1cf)]===0x0&&_0x51cb16[_0x2a51ab(0x1cf)]===0x0)return;const _0x178798=[],_0x264e0a=[];let _0x5a797d=a[_0x2a51ab(0x32f)][_0x2a51ab(0x1af)](_0x55bf27['mutations'][0x0]),_0x5d8d45=a['Tools'][_0x2a51ab(0x1af)](_0x55bf27[_0x2a51ab(0x1b1)][0x0]);for(let _0x5a8d8e=_0x511a7e[_0x2a51ab(0x1cf)]-0x1;_0x5a8d8e>=0x0;_0x5a8d8e--){const _0x1b8f00={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x511a7e[_0x5a8d8e][_0x2a51ab(0x1f4)],..._0x511a7e[_0x5a8d8e][_0x2a51ab(0x263)]}},_0x2faa6a={'id':_0x2a51ab(0x227),'params':{'unitId':_0x511a7e[_0x5a8d8e][_0x2a51ab(0x1f4)],..._0x511a7e[_0x5a8d8e]['redoState']}},_0x188930=this['_transformService']['transformMutation'](_0x5a797d,_0x1b8f00,!0x1),_0xb7ab01=this[_0x2a51ab(0x203)][_0x2a51ab(0x28a)](_0x5d8d45,_0x2faa6a,!0x1);if(m[_0x2a51ab(0x28f)](_0x188930))throw _0x188930['error'];if(m[_0x2a51ab(0x28f)](_0xb7ab01))throw _0xb7ab01[_0x2a51ab(0x3ca)];_0x178798[_0x2a51ab(0x2f1)]({..._0x511a7e[_0x5a8d8e],'undoState':_0x188930[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)],'redoState':_0xb7ab01[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)]}),_0x5a797d=_0x188930['m1Prime'],_0x5d8d45=_0xb7ab01['m1Prime'];}_0x5a797d=a[_0x2a51ab(0x32f)][_0x2a51ab(0x1af)](_0x55bf27[_0x2a51ab(0x1b1)][0x0]),_0x5d8d45=a[_0x2a51ab(0x32f)][_0x2a51ab(0x1af)](_0x55bf27[_0x2a51ab(0x1b1)][0x0]);for(let _0x177aaa=_0x51cb16[_0x2a51ab(0x1cf)]-0x1;_0x177aaa>=0x0;_0x177aaa--){const _0x2c9a7a={'id':_0x2a51ab(0x227),'params':{'unitId':_0x51cb16[_0x177aaa][_0x2a51ab(0x1f4)],..._0x51cb16[_0x177aaa][_0x2a51ab(0x263)]}},_0x1df7a2={'id':_0x2a51ab(0x227),'params':{'unitId':_0x51cb16[_0x177aaa][_0x2a51ab(0x1f4)],..._0x51cb16[_0x177aaa][_0x2a51ab(0x3b1)]}},_0x3eb97b=this[_0x2a51ab(0x203)][_0x2a51ab(0x28a)](_0x5a797d,_0x2c9a7a,!0x1),_0x4297f2=this[_0x2a51ab(0x203)][_0x2a51ab(0x28a)](_0x5d8d45,_0x1df7a2,!0x1);if(m['isTransformMutationFailure'](_0x3eb97b))throw _0x3eb97b['error'];if(m[_0x2a51ab(0x28f)](_0x4297f2))throw _0x4297f2[_0x2a51ab(0x3ca)];_0x264e0a[_0x2a51ab(0x2f1)]({..._0x51cb16[_0x177aaa],'undoState':_0x3eb97b[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)],'redoState':_0x4297f2[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)]}),_0x5a797d=_0x3eb97b[_0x2a51ab(0x175)],_0x5d8d45=_0x4297f2[_0x2a51ab(0x175)];}this[_0x2a51ab(0x2c0)][_0x2a51ab(0x190)](_0xd10394,{'history':_0x178798,'collaboration':_0x264e0a});}};J=Ft([le(0x0,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),le(0x1,m[_0xbd72b5(0x25b)]),le(0x2,a['Inject'](b['DocStateChangeManagerService']))],J);var Yt=Object[_0xbd72b5(0x402)],Wt=(_0x19c848,_0x15e0ba,_0x27ecd8,_0x23c443)=>{const _0xc74cfb=_0xbd72b5;for(var _0x2f8f4b=_0x23c443>0x1?void 0x0:_0x23c443?Yt(_0x15e0ba,_0x27ecd8):_0x15e0ba,_0x217a24=_0x19c848[_0xc74cfb(0x1cf)]-0x1,_0x32a888;_0x217a24>=0x0;_0x217a24--)(_0x32a888=_0x19c848[_0x217a24])&&(_0x2f8f4b=_0x32a888(_0x2f8f4b)||_0x2f8f4b);return _0x2f8f4b;},Ne=(_0x541678,_0x4ee379)=>(_0xb8f157,_0x287c83)=>_0x4ee379(_0xb8f157,_0x287c83,_0x541678);let Z=class{constructor(_0x1b8d21,_0x2fe4db){const _0x5a5fc0=_0xbd72b5;this[_0x5a5fc0(0x207)]=_0x1b8d21,this[_0x5a5fc0(0x203)]=_0x2fe4db;}[_0xbd72b5(0x1e2)](_0x57ae16){const _0x2e722c=_0xbd72b5;var _0x188fae;const _0x1d5cfe=this[_0x2e722c(0x207)][_0x2e722c(0x206)](Y['DocSelectionManagerService']),_0x419fcc=(_0x188fae=_0x1d5cfe[_0x2e722c(0x2a7)]())!=null?_0x188fae:[];if(_0x419fcc['length']===0x0)return;const _0x2adc9f=_0x57ae16[_0x2e722c(0x22b)],_0x4f6e3e=[{'id':_0x2e722c(0x227),'params':{'unitId':_0x2adc9f,'actions':null,'textRanges':_0x419fcc}}],_0x5e6c6a=this[_0x2e722c(0x203)][_0x2e722c(0x2d0)](_0x57ae16,_0x4f6e3e);if(!m[_0x2e722c(0x1f7)](_0x5e6c6a))throw _0x5e6c6a[_0x2e722c(0x3ca)];const _0x599ef5=_0x5e6c6a[_0x2e722c(0x30f)][0x0]['params'][_0x2e722c(0x26d)];Array[_0x2e722c(0x1b6)](_0x599ef5)&&_0x599ef5[_0x2e722c(0x1cf)]&&_0x1d5cfe['replaceDocRanges'](_0x599ef5,{'unitId':_0x2adc9f,'subUnitId':_0x2adc9f},!0x1);}};Z=Wt([Ne(0x0,a[_0xbd72b5(0x1d6)](a['Injector'])),Ne(0x1,m[_0xbd72b5(0x25b)])],Z);var Vt=Object[_0xbd72b5(0x402)],Xt=(_0x5eb753,_0x2940be,_0x1017b4,_0x4c85cd)=>{const _0x21c348=_0xbd72b5;for(var _0x104de7=_0x4c85cd>0x1?void 0x0:_0x4c85cd?Vt(_0x2940be,_0x1017b4):_0x2940be,_0x3bb95f=_0x5eb753[_0x21c348(0x1cf)]-0x1,_0x4665c4;_0x3bb95f>=0x0;_0x3bb95f--)(_0x4665c4=_0x5eb753[_0x3bb95f])&&(_0x104de7=_0x4665c4(_0x104de7)||_0x104de7);return _0x104de7;},N=(_0x5eb51b,_0x51dec3)=>(_0x3c99b6,_0x399e4f)=>_0x51dec3(_0x3c99b6,_0x399e4f,_0x5eb51b);let Q=class extends a[_0xbd72b5(0x1b7)]{constructor(_0x38168e,_0x56135c,_0x48132f,_0xf7e644,_0x1e6d86,_0x5663cc,_0x38fafc,_0x564baf){const _0x4ecbd6=_0xbd72b5;super(),h(this,_0x4ecbd6(0x3bc),new d[(_0x4ecbd6(0x257))](u[_0x4ecbd6(0x1a1)][_0x4ecbd6(0x184)])),(this[_0x4ecbd6(0x2c0)]=_0x38168e,this[_0x4ecbd6(0x36b)]=_0x56135c,this['_docTransformIMECacheService']=_0x48132f,this[_0x4ecbd6(0x359)]=_0xf7e644,this[_0x4ecbd6(0x1f8)]=_0x1e6d86,this[_0x4ecbd6(0x361)]=_0x5663cc,this[_0x4ecbd6(0x1b9)]=_0x38fafc,this['_localeService']=_0x564baf,this[_0x4ecbd6(0x2f4)]());}[_0xbd72b5(0x2f4)](){const _0x2db305=_0xbd72b5;this[_0x2db305(0x323)](this['_collaborationController']['entityInit$'][_0x2db305(0x1fc)](_0x1c8e61=>{const _0x48d907=_0x2db305,_0x44ba48=this[_0x48d907(0x2c0)][_0x48d907(0x3ec)][_0x48d907(0x1fc)](_0x373833=>{const _0x192821=_0x48d907;if(_0x373833==null)return;const {unitId:_0x56d7b6,redoState:_0x316ea2,commandId:_0x48ca45}=_0x373833;if(_0x56d7b6!==_0x1c8e61[_0x192821(0x22b)])return;const _0x51fa29={'id':_0x48ca45,'type':a[_0x192821(0x29b)]['MUTATION'],'params':{'unitId':_0x56d7b6,'actions':_0x316ea2[_0x192821(0x2cc)],'textRanges':null}};_0x1c8e61[_0x192821(0x32d)](_0x51fa29);});if(_0x1c8e61[_0x48d907(0x323)](_0x44ba48),_0x1c8e61 instanceof u[_0x48d907(0x255)]){const _0xc80ea={'onTransformIME':_0x1dbe80=>this[_0x48d907(0x2df)][_0x48d907(0x3e1)](_0x1dbe80),'onTransformState':_0xb85cf5=>this['_docTransformStateCacheService'][_0x48d907(0x3bb)](_0xb85cf5),'onTransformSelections':_0x2792c9=>this[_0x48d907(0x1f8)][_0x48d907(0x1e2)](_0x2792c9),'onSyncEditingCollabCursor':_0xf81c27=>this[_0x48d907(0x361)][_0x48d907(0x33c)](_0xf81c27),'onTransformRemoteChangesetByIMECache':_0x5c309a=>this[_0x48d907(0x2df)][_0x48d907(0x1c7)](_0x5c309a),'onTransformRemoteChangesetByStateCache':_0x22fc2d=>this[_0x48d907(0x359)][_0x48d907(0x1c7)](_0x22fc2d)};_0x1c8e61[_0x48d907(0x345)](_0xc80ea);}}));}};Q=Xt([N(0x0,a['Inject'](b['DocStateChangeManagerService'])),N(0x1,a[_0xbd72b5(0x1d6)](u[_0xbd72b5(0x335)])),N(0x2,a[_0xbd72b5(0x1d6)](z)),N(0x3,a[_0xbd72b5(0x1d6)](J)),N(0x4,a[_0xbd72b5(0x1d6)](Z)),N(0x5,a[_0xbd72b5(0x1d6)](Ce)),N(0x6,T[_0xbd72b5(0x2f8)]),N(0x7,a[_0xbd72b5(0x1d6)](a['LocaleService']))],Q);var Gt=Object[_0xbd72b5(0x402)],Kt=(_0x7a538a,_0x2bcff4,_0x4b7e40,_0x3fa0bd)=>{const _0x2212aa=_0xbd72b5;for(var _0x10dea4=_0x3fa0bd>0x1?void 0x0:_0x3fa0bd?Gt(_0x2bcff4,_0x4b7e40):_0x2bcff4,_0x531e97=_0x7a538a[_0x2212aa(0x1cf)]-0x1,_0x4a8d9c;_0x531e97>=0x0;_0x531e97--)(_0x4a8d9c=_0x7a538a[_0x531e97])&&(_0x10dea4=_0x4a8d9c(_0x10dea4)||_0x10dea4);return _0x10dea4;},_e=(_0x4fbdcc,_0x3b6906)=>(_0x5257b4,_0x290b57)=>_0x3b6906(_0x5257b4,_0x290b57,_0x4fbdcc);let ge=class extends a[_0xbd72b5(0x1b7)]{constructor(_0xe83aa0,_0x2b1106,_0x10bee7){const _0x2c6251=_0xbd72b5;super(),h(this,_0x2c6251(0x2ae),new Map()),h(this,_0x2c6251(0x1f5),new Map()),h(this,_0x2c6251(0x34f),!0x1),(this[_0x2c6251(0x237)]=_0xe83aa0,this[_0x2c6251(0x2b2)]=_0x2b1106,this[_0x2c6251(0x299)]=_0x10bee7);}[_0xbd72b5(0x280)](){this['_disabled']=!0x0;}[_0xbd72b5(0x18c)](){const _0x249c00=_0xbd72b5;this[_0x249c00(0x34f)]=!0x1;}get[_0xbd72b5(0x289)](){const _0x2561a6=_0xbd72b5;return this[_0x2561a6(0x1f5)];}[_0xbd72b5(0x32e)](){const _0x1692ab=_0xbd72b5;this[_0x1692ab(0x285)]()[_0x1692ab(0x34c)](()=>super[_0x1692ab(0x32e)]());}async['loadOfflineData'](_0x1a52ba){const _0x59706b=_0xbd72b5;return this['_disabled']?null:this['_localStorageService'][_0x59706b(0x252)](u['getLocalCacheKey'](_0x1a52ba));}async[_0xbd72b5(0x2de)](_0x3d33a8,_0x37e29e){const _0x1265e2=_0xbd72b5;return!!this[_0x1265e2(0x2b2)][_0x1265e2(0x2c4)](_0x3d33a8,_0x37e29e);}['updateOfflineData'](_0x5617f6,_0x4474a9,_0x2b3bb1,_0x1038ad){const _0x17755=_0xbd72b5,_0x5b3925=this[_0x17755(0x299)][_0x17755(0x2af)](_0x5617f6);this['_cachedData']['set'](_0x5617f6,{'unitID':_0x5617f6,'type':_0x4474a9,'awaitingChangeset':_0x2b3bb1,'mutations':_0x1038ad,'rev':_0x5b3925}),this[_0x17755(0x1f5)][_0x17755(0x3c8)](_0x5617f6)||this[_0x17755(0x3ae)](_0x5617f6);}[_0xbd72b5(0x3ae)](_0x59dd54){const _0x42b137=_0xbd72b5,_0x4a56db=this[_0x42b137(0x367)]();_0x4a56db===0x0?this[_0x42b137(0x27b)](_0x59dd54):this[_0x42b137(0x1f5)][_0x42b137(0x3c7)](_0x59dd54,setTimeout(()=>this['_saveCache'](_0x59dd54),_0x4a56db));}[_0xbd72b5(0x367)](){const _0x471b14=_0xbd72b5;var _0x271cf3;return(_0x271cf3=this[_0x471b14(0x237)][_0x471b14(0x311)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x271cf3:u[_0x471b14(0x305)];}[_0xbd72b5(0x27b)](_0x368234){const _0x504a71=_0xbd72b5,_0x1b566f=this['_saveTaskMap'][_0x504a71(0x206)](_0x368234);return _0x1b566f!==void 0x0&&window[_0x504a71(0x2fd)](_0x1b566f),this['_localStorageService'][_0x504a71(0x2c4)](u[_0x504a71(0x2f6)](_0x368234),this[_0x504a71(0x2ae)][_0x504a71(0x206)](_0x368234))['then'](()=>this[_0x504a71(0x1f5)][_0x504a71(0x200)](_0x368234));}async['exhaustSavingTask'](){const _0x1a6107=_0xbd72b5,_0x2383d3=[];this['_saveTaskMap'][_0x1a6107(0x276)]((_0x542afc,_0xd591f8)=>{const _0x5d6f0d=_0x1a6107;window[_0x5d6f0d(0x2fd)](_0x542afc),_0x2383d3['push'](this[_0x5d6f0d(0x27b)](_0xd591f8)[_0x5d6f0d(0x34c)](()=>{const _0x20fc08=_0x5d6f0d;this[_0x20fc08(0x1f5)][_0x20fc08(0x200)](_0xd591f8);}));}),await Promise[_0x1a6107(0x205)](_0x2383d3);}};ge=Kt([_e(0x0,a[_0xbd72b5(0x24a)]),_e(0x1,a[_0xbd72b5(0x244)]),_e(0x2,a[_0xbd72b5(0x1d6)](m[_0xbd72b5(0x2a8)]))],ge);class je extends a[_0xbd72b5(0x283)]{constructor(){const _0x946aba=_0xbd72b5;super(),h(this,'urlChange$'),this[_0x946aba(0x3f1)]=d[_0x946aba(0x1ca)](window,_0x946aba(0x1ef))[_0x946aba(0x1db)](d['takeUntil'](this[_0x946aba(0x1a2)]),d[_0x946aba(0x29a)](0x1),d['mapTo'](void 0x0));}[_0xbd72b5(0x220)](_0x511a5a,_0x3f2c50,_0x14fe0c=!0x1){const _0x484f23=_0xbd72b5,_0x260c51=new URL(window[_0x484f23(0x1bf)][_0x484f23(0x24c)]);_0x260c51[_0x484f23(0x34b)][_0x484f23(0x3c7)](_0x511a5a,_0x3f2c50),_0x14fe0c?window[_0x484f23(0x324)][_0x484f23(0x177)]('','',_0x260c51[_0x484f23(0x352)]()):window[_0x484f23(0x324)]['pushState']('','',_0x260c51[_0x484f23(0x352)]());}['removeParam'](_0x1ec3c9,_0x3dc0e1=!0x1){const _0x3f7cf9=_0xbd72b5,_0x2ee746=new URL(window['location'][_0x3f7cf9(0x24c)]);_0x2ee746[_0x3f7cf9(0x34b)]['delete'](_0x1ec3c9),_0x3dc0e1?window['history']['replaceState']('','',_0x2ee746['toString']()):window[_0x3f7cf9(0x324)][_0x3f7cf9(0x2bc)]('','',_0x2ee746[_0x3f7cf9(0x352)]());}[_0xbd72b5(0x2e3)](_0x3cd16b){const _0x90f177=_0xbd72b5;var _0x224e6a;return(_0x224e6a=new URL(window[_0x90f177(0x1bf)][_0x90f177(0x24c)])[_0x90f177(0x34b)][_0x90f177(0x206)](_0x3cd16b))!=null?_0x224e6a:void 0x0;}}var qt=Object[_0xbd72b5(0x377)],zt=Object[_0xbd72b5(0x402)],Jt=(_0x1eacb3,_0x465d40,_0x46bc55)=>_0x465d40 in _0x1eacb3?qt(_0x1eacb3,_0x465d40,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46bc55}):_0x1eacb3[_0x465d40]=_0x46bc55,Zt=(_0x57ea66,_0x11cec1,_0x4c5b97,_0x3cd338)=>{const _0x3ecd49=_0xbd72b5;for(var _0xadbdd7=_0x3cd338>0x1?void 0x0:_0x3cd338?zt(_0x11cec1,_0x4c5b97):_0x11cec1,_0x58190b=_0x57ea66[_0x3ecd49(0x1cf)]-0x1,_0x5a2619;_0x58190b>=0x0;_0x58190b--)(_0x5a2619=_0x57ea66[_0x58190b])&&(_0xadbdd7=_0x5a2619(_0xadbdd7)||_0xadbdd7);return _0xadbdd7;},he=(_0x389464,_0x5941f7)=>(_0x3732f8,_0x2a992a)=>_0x5941f7(_0x3732f8,_0x2a992a,_0x389464),Qt=(_0x35d276,_0x10a76d,_0x34277d)=>Jt(_0x35d276,_0x10a76d+'',_0x34277d);const es=_0xbd72b5(0x3ed);exports[_0xbd72b5(0x1ea)]=class extends a['Plugin']{constructor(_0xd9e77e=Ue,_0xfababc,_0x241917,_0x3ac03b){const _0x300f11=_0xbd72b5;super(),this['_config']=_0xd9e77e,this[_0x300f11(0x21a)]=_0xfababc,this[_0x300f11(0x207)]=_0x241917,this[_0x300f11(0x237)]=_0x3ac03b;const {..._0x122023}=a[_0x300f11(0x1bc)]({},Ue,this[_0x300f11(0x1be)]);this[_0x300f11(0x237)][_0x300f11(0x245)]($t,_0x122023);}[_0xbd72b5(0x3a0)](){const _0x194bc8=_0xbd72b5;this['_registerDependencies'](),this[_0x194bc8(0x2ef)]();}[_0xbd72b5(0x213)](){const _0x5c1d30=_0xbd72b5;this[_0x5c1d30(0x3e5)]();}[_0xbd72b5(0x3af)](){const _0x150a48=_0xbd72b5;var _0x2ea5e7;const _0x5955ab=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x150a48(0x3d9)],{'useClass':G['WebSocketService']}],[u[_0x150a48(0x22f)],{'useClass':ge}],[exports[_0x150a48(0x3fa)]],[Q],[q],[x],[de],[exports[_0x150a48(0x2cd)]]];a[_0x150a48(0x185)](this[_0x150a48(0x207)],a[_0x150a48(0x3a2)](_0x5955ab,(_0x2ea5e7=this[_0x150a48(0x1be)])==null?void 0x0:_0x2ea5e7['override']));}['_registerRenderDependencies'](){const _0x2e3fff=_0xbd72b5;this[_0x2e3fff(0x323)](this['_renderManagerService']['registerRenderModule'](a[_0x2e3fff(0x216)][_0x2e3fff(0x211)],[Ie])),this['disposeWithMe'](this['_renderManagerService'][_0x2e3fff(0x287)](a[_0x2e3fff(0x216)][_0x2e3fff(0x2c2)],[ve]));}[_0xbd72b5(0x2ef)](){const _0x1a2da7=_0xbd72b5;a[_0x1a2da7(0x222)](this[_0x1a2da7(0x207)],[[x],[exports[_0x1a2da7(0x3fa)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0xbd72b5(0x3f2),es),exports[_0xbd72b5(0x1ea)]=Zt([a[_0xbd72b5(0x401)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0xbd72b5(0x19f)]),he(0x2,a['Inject'](a[_0xbd72b5(0x338)])),he(0x3,a[_0xbd72b5(0x24a)])],exports[_0xbd72b5(0x1ea)]);var ts=Object[_0xbd72b5(0x402)],ss=(_0x2dc904,_0x5c55a4,_0xfccadc,_0x16a8b9)=>{for(var _0x4c3b0e=_0x16a8b9>0x1?void 0x0:_0x16a8b9?ts(_0x5c55a4,_0xfccadc):_0x5c55a4,_0x5eaa62=_0x2dc904['length']-0x1,_0x3a6c52;_0x5eaa62>=0x0;_0x5eaa62--)(_0x3a6c52=_0x2dc904[_0x5eaa62])&&(_0x4c3b0e=_0x3a6c52(_0x4c3b0e)||_0x4c3b0e);return _0x4c3b0e;},F=(_0xf07b8,_0x1bdc46)=>(_0x23398,_0x5ad8ad)=>_0x1bdc46(_0x23398,_0x5ad8ad,_0xf07b8);exports[_0xbd72b5(0x1fb)]=class extends u[_0xbd72b5(0x3d1)]{constructor(_0x15418f,_0x458c49,_0x1285d3,_0x57d5e4,_0x4085d1){super(_0x15418f,_0x458c49,_0x1285d3,_0x57d5e4,_0x4085d1);}async[_0xbd72b5(0x1a7)](_0x24420c){const _0x5ad31c=_0xbd72b5,_0x528022=await this[_0x5ad31c(0x1dc)](),_0xff0f64=this[_0x5ad31c(0x196)](_0x24420c,_0x528022);return this[_0x5ad31c(0x373)](_0xff0f64);}[_0xbd72b5(0x196)](_0x226b37,_0x42f5b5){const _0x2e606a=_0xbd72b5,_0x13af81=typeof window>'u'?new URL(_0x226b37):new URL(_0x226b37,window[_0x2e606a(0x1bf)][_0x2e606a(0x298)]);_0x13af81['searchParams'][_0x2e606a(0x3c7)](_0x2e606a(0x33f),_0x42f5b5);const _0x50b3d0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2e606a(0x1bf)][_0x2e606a(0x26f)]);return _0x50b3d0[_0x2e606a(0x206)](_0x2e606a(0x183))&&_0x13af81[_0x2e606a(0x34b)][_0x2e606a(0x3c7)](_0x2e606a(0x183),_0x50b3d0[_0x2e606a(0x206)](_0x2e606a(0x183))),_0x13af81[_0x2e606a(0x352)]();}async[_0xbd72b5(0x1dc)](){const _0x4655ed=_0xbd72b5;var _0x250379,_0xe13ce6,_0x271aba;const _0x5cdb6c=this['_configService'][_0x4655ed(0x311)](u[_0x4655ed(0x39f)]),_0x16d704=(_0x250379=_0x5cdb6c==null?void 0x0:_0x5cdb6c[_0x4655ed(0x2cf)])!=null?_0x250379:u[_0x4655ed(0x315)];return(_0x271aba=(_0xe13ce6=(await this[_0x4655ed(0x3a6)]['get'](_0x16d704,{'headers':{'Content-Type':'application/json'}}))[_0x4655ed(0x2da)])==null?void 0x0:_0xe13ce6[_0x4655ed(0x396)])!=null?_0x271aba:'';}},exports[_0xbd72b5(0x1fb)]=ss([F(0x0,a[_0xbd72b5(0x1d6)](a['Injector'])),F(0x1,a['Inject'](G[_0xbd72b5(0x34d)])),F(0x2,a['IConfigService']),F(0x3,a[_0xbd72b5(0x360)]),F(0x4,m[_0xbd72b5(0x37d)])],exports[_0xbd72b5(0x1fb)]);const Me=0x7530,Le=_0xbd72b5(0x3ef);class is extends a[_0xbd72b5(0x1b7)]{constructor(){const _0x1c8777=_0xbd72b5;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x1c8777(0x1a5),new Set()),h(this,_0x1c8777(0x3ac),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x1c8777(0x1c9)]();}[_0xbd72b5(0x32e)](){const _0x501cae=_0xbd72b5;super[_0x501cae(0x32e)](),this[_0x501cae(0x1ee)]['forEach']((_0x116fe5,_0x471c26)=>this[_0x501cae(0x1ad)](_0x471c26)),this[_0x501cae(0x320)]&&window[_0x501cae(0x3e0)](this[_0x501cae(0x320)]);}[_0xbd72b5(0x33d)](_0x2df41b){const _0x5eeffc=_0xbd72b5;return this[_0x5eeffc(0x1a9)](_0x2df41b)[_0x5eeffc(0x1db)](d[_0x5eeffc(0x2b4)]());}[_0xbd72b5(0x2ab)](_0x495b73){const _0x40889d=_0xbd72b5;this['_selfUnitIDs'][_0x40889d(0x2c9)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x40889d(0x1e5)](_0x495b73),this[_0x40889d(0x3f0)]({'type':0x0,'memberID':this[_0x40889d(0x3a9)],'unitIDs':[_0x495b73],'isForwarded':!0x1});}[_0xbd72b5(0x195)](_0x396c2d){const _0x3c23ab=_0xbd72b5;this[_0x3c23ab(0x1a5)][_0x3c23ab(0x200)](_0x396c2d),this[_0x3c23ab(0x1a5)]['size']===0x0&&this[_0x3c23ab(0x320)]&&window[_0x3c23ab(0x3e0)](this[_0x3c23ab(0x320)]);}[_0xbd72b5(0x1c9)](){const _0x1db6d5=_0xbd72b5;this[_0x1db6d5(0x323)](a[_0x1db6d5(0x385)](d[_0x1db6d5(0x1ca)](window,_0x1db6d5(0x2a5))['subscribe'](_0x587f0a=>{const _0x24fa2f=_0x1db6d5;if(_0x587f0a[_0x24fa2f(0x2e5)]!==Le||!_0x587f0a[_0x24fa2f(0x2fe)])return;const _0x15f3c4=JSON[_0x24fa2f(0x370)](_0x587f0a[_0x24fa2f(0x2fe)]);this[_0x24fa2f(0x39a)](_0x15f3c4);}))),window[_0x1db6d5(0x1df)](_0x1db6d5(0x347),()=>this[_0x1db6d5(0x3f0)]({'type':0x1,'memberID':this[_0x1db6d5(0x3a9)],'unitIDs':Array[_0x1db6d5(0x20b)](this['_selfUnitIDs'])}));}[_0xbd72b5(0x39a)](_0x27c61d){const _0x5cca73=_0xbd72b5;switch(_0x27c61d[_0x5cca73(0x1fa)]){case 0x0:this['_handleJoinEvent'](_0x27c61d);break;case 0x1:this[_0x5cca73(0x17e)](_0x27c61d);break;case 0x2:this[_0x5cca73(0x1c5)](_0x27c61d);break;}}[_0xbd72b5(0x233)](_0x1aa12e){const _0x34f88f=_0xbd72b5,{unitIDs:_0x48e43c,memberID:_0x3417bb,isForwarded:_0x52f28d}=_0x1aa12e;_0x48e43c['forEach'](_0x13d791=>{const _0x365810=_0x4dae;if(!_0x52f28d&&this['_unitOnClients'][_0x365810(0x3c8)](_0x13d791)&&this['_ensureSubject'](_0x13d791)[_0x365810(0x2ad)](u[_0x365810(0x38b)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x365810(0x3c8)](_0x13d791)||!this[_0x365810(0x3ac)][_0x365810(0x206)](_0x13d791)['has'](_0x3417bb)){const _0x43ae69=this[_0x365810(0x3ac)][_0x365810(0x206)](_0x13d791)||new Set();_0x43ae69[_0x365810(0x1e5)](_0x3417bb),this['_unitOnClients']['set'](_0x13d791,_0x43ae69),this[_0x365810(0x247)](_0x3417bb);}}),_0x52f28d||this['_send']({'type':0x0,'memberID':this[_0x34f88f(0x3a9)],'unitIDs':[...this[_0x34f88f(0x1a5)]],'isForwarded':!0x0});}[_0xbd72b5(0x247)](_0x3874af){const _0x3e96e4=_0xbd72b5;this[_0x3e96e4(0x1ad)](_0x3874af);const _0x4a11de=window[_0x3e96e4(0x357)](()=>{const _0x39fd2d=_0x3e96e4;this[_0x39fd2d(0x3ac)][_0x39fd2d(0x276)](_0x5a362d=>{const _0x57d154=_0x39fd2d;_0x5a362d[_0x57d154(0x200)](_0x3874af);});},Me*0x2);this[_0x3e96e4(0x1ee)]['set'](_0x3874af,_0x4a11de);}[_0xbd72b5(0x1ad)](_0x167b82){const _0x4ecfff=_0xbd72b5;if(this['_clearOtherTimers'][_0x4ecfff(0x3c8)](_0x167b82)){const _0x232803=this[_0x4ecfff(0x1ee)][_0x4ecfff(0x206)](_0x167b82);_0x232803&&window['clearTimeout'](_0x232803),this[_0x4ecfff(0x1ee)][_0x4ecfff(0x3c7)](_0x167b82,null);}}[_0xbd72b5(0x17e)](_0x13d506){const _0x1b243c=_0xbd72b5,{memberID:_0x588969,unitIDs:_0x1f4620}=_0x13d506;_0x1f4620[_0x1b243c(0x276)](_0x6b0de9=>{const _0x284813=_0x1b243c;var _0x5f3d3a;const _0x4a0d49=this[_0x284813(0x3ac)][_0x284813(0x206)](_0x6b0de9);_0x4a0d49&&(_0x4a0d49[_0x284813(0x200)](_0x588969),(_0x5f3d3a=this[_0x284813(0x1a9)](_0x6b0de9))==null||_0x5f3d3a[_0x284813(0x2ad)](_0x4a0d49[_0x284813(0x2c9)]===0x0?u[_0x284813(0x38b)][_0x284813(0x3a4)]:u[_0x284813(0x38b)][_0x284813(0x277)]));}),this[_0x1b243c(0x1ad)](_0x588969);}['_handleHeartbeatEvent'](_0x3a91ae){const _0x37ae13=_0xbd72b5;this[_0x37ae13(0x247)](_0x3a91ae['memberID']);}[_0xbd72b5(0x3f0)](_0x3577db){localStorage['setItem'](Le,JSON['stringify'](_0x3577db));}[_0xbd72b5(0x230)](){const _0x45b0b6=_0xbd72b5;this[_0x45b0b6(0x320)]=window[_0x45b0b6(0x317)](()=>{const _0x4c6a4a=_0x45b0b6;this[_0x4c6a4a(0x3f0)]({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x473c73){const _0x430cda=_0xbd72b5;return this[_0x430cda(0x186)][_0x430cda(0x3c8)](_0x473c73)||this[_0x430cda(0x186)][_0x430cda(0x3c7)](_0x473c73,new d[(_0x430cda(0x257))](u['UnitStatus'][_0x430cda(0x3a4)])),this[_0x430cda(0x186)][_0x430cda(0x206)](_0x473c73);}}var Be=(_0x387b03=>(_0x387b03[_0x387b03['UNDEFINED']=0x0]=_0xbd72b5(0x178),_0x387b03[_0x387b03['OK']=0x1]='OK',_0x387b03[_0x387b03['INTERNAL_ERROR']=0x2]=_0xbd72b5(0x309),_0x387b03[_0x387b03[_0xbd72b5(0x1bd)]=0x3]='PERMISSION_DENIED',_0x387b03[_0x387b03[_0xbd72b5(0x3c3)]=0x4]=_0xbd72b5(0x3c3),_0x387b03[_0x387b03[_0xbd72b5(0x364)]=0x5]=_0xbd72b5(0x364),_0x387b03[_0x387b03[_0xbd72b5(0x268)]=0x6]=_0xbd72b5(0x268),_0x387b03[_0x387b03[_0xbd72b5(0x3de)]=0x7]=_0xbd72b5(0x3de),_0x387b03[_0x387b03[_0xbd72b5(0x1bb)]=0x8]=_0xbd72b5(0x1bb),_0x387b03[_0x387b03[_0xbd72b5(0x3f9)]=0x9]='COMPLETION_FINISHED',_0x387b03[_0x387b03[_0xbd72b5(0x2a0)]=0xa]=_0xbd72b5(0x2a0),_0x387b03[_0x387b03[_0xbd72b5(0x308)]=0x1389]=_0xbd72b5(0x308),_0x387b03[_0x387b03['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0xbd72b5(0x30d),_0x387b03[_0x387b03[_0xbd72b5(0x1ae)]=0x1772]=_0xbd72b5(0x1ae),_0x387b03[_0x387b03[_0xbd72b5(0x18b)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x387b03[_0x387b03[_0xbd72b5(0x1d7)]=0x1b59]=_0xbd72b5(0x1d7),_0x387b03[_0x387b03[_0xbd72b5(0x3f5)]=0x1b5a]=_0xbd72b5(0x3f5),_0x387b03[_0x387b03['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xbd72b5(0x2b0),_0x387b03[_0x387b03[_0xbd72b5(0x1f2)]=0x1b5c]=_0xbd72b5(0x1f2),_0x387b03[_0x387b03[_0xbd72b5(0x2a2)]=0x1b5d]='APPLY_DUPLICATED',_0x387b03[_0x387b03[_0xbd72b5(0x3f6)]=0x1f41]=_0xbd72b5(0x3f6),_0x387b03[_0x387b03['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x387b03[_0x387b03[_0xbd72b5(0x350)]=0x232a]=_0xbd72b5(0x350),_0x387b03[_0x387b03[_0xbd72b5(0x3f4)]=0x232b]=_0xbd72b5(0x3f4),_0x387b03[_0x387b03[_0xbd72b5(0x343)]=0x232c]=_0xbd72b5(0x343),_0x387b03[_0x387b03[_0xbd72b5(0x3b5)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x387b03[_0x387b03[_0xbd72b5(0x1c2)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x387b03[_0x387b03[_0xbd72b5(0x38a)]=0x2712]=_0xbd72b5(0x38a),_0x387b03[_0x387b03[_0xbd72b5(0x368)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x387b03[_0x387b03[_0xbd72b5(0x223)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x387b03[_0x387b03[_0xbd72b5(0x1b3)]=0x271a]=_0xbd72b5(0x1b3),_0x387b03[_0x387b03[_0xbd72b5(0x1aa)]=0x271b]=_0xbd72b5(0x1aa),_0x387b03[_0x387b03[_0xbd72b5(0x20d)]=0x271c]=_0xbd72b5(0x20d),_0x387b03[_0x387b03[_0xbd72b5(0x312)]=0x271d]=_0xbd72b5(0x312),_0x387b03[_0x387b03[_0xbd72b5(0x258)]=0x271e]=_0xbd72b5(0x258),_0x387b03[_0x387b03[_0xbd72b5(0x2fb)]=0x271f]=_0xbd72b5(0x2fb),_0x387b03[_0x387b03[_0xbd72b5(0x3e8)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x387b03[_0x387b03['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0xbd72b5(0x3dc),_0x387b03[_0x387b03['INVALID_INVITE_CODE']=0x2ee2]=_0xbd72b5(0x1d1),_0x387b03[_0x387b03[_0xbd72b5(0x29c)]=0x2ee3]=_0xbd72b5(0x29c),_0x387b03[_0x387b03[_0xbd72b5(0x279)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x387b03[_0x387b03[_0xbd72b5(0x198)]=0x2ee5]=_0xbd72b5(0x198),_0x387b03[_0x387b03[_0xbd72b5(0x314)]=0x32c9]=_0xbd72b5(0x314),_0x387b03[_0x387b03['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0xbd72b5(0x1d9),_0x387b03[_0x387b03[_0xbd72b5(0x30b)]=0x32cb]=_0xbd72b5(0x30b),_0x387b03[_0x387b03[_0xbd72b5(0x336)]=-0x1]=_0xbd72b5(0x336),_0x387b03))(Be||{}),ns=Object[_0xbd72b5(0x402)],rs=(_0x1859b3,_0xc6139b,_0x22b538,_0x485a05)=>{for(var _0x3ab659=_0x485a05>0x1?void 0x0:_0x485a05?ns(_0xc6139b,_0x22b538):_0xc6139b,_0x20fd55=_0x1859b3['length']-0x1,_0x64700d;_0x20fd55>=0x0;_0x20fd55--)(_0x64700d=_0x1859b3[_0x20fd55])&&(_0x3ab659=_0x64700d(_0x3ab659)||_0x3ab659);return _0x3ab659;},ue=(_0x1c03b2,_0x39602d)=>(_0x3de408,_0x1ae202)=>_0x39602d(_0x3de408,_0x1ae202,_0x1c03b2);exports[_0xbd72b5(0x2bf)]=class extends a[_0xbd72b5(0x1b7)]{constructor(_0x5f047b,_0x1ef4f6,_0x575877){const _0x101138=_0xbd72b5;super(),this[_0x101138(0x3b0)]=_0x5f047b,this[_0x101138(0x3a6)]=_0x1ef4f6,this[_0x101138(0x237)]=_0x575877;}async['runOnServer'](_0x3c1929,_0x541540,_0x1616b3,..._0x2dad51){const _0x44ac50=_0xbd72b5;var _0x34e2cc,_0x12775d,_0x2ae172,_0x2151ed;const _0x4e7751=this['_instanceService']['getFocusedUnit']();if(!_0x4e7751)throw new Error(_0x44ac50(0x273));const _0x15e64a=((_0x34e2cc=this['_configService'][_0x44ac50(0x311)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x34e2cc:u[_0x44ac50(0x219)])+'/'+_0x3c1929+_0x44ac50(0x212)+_0x541540,_0x304bf8=new URL(window[_0x44ac50(0x1bf)][_0x44ac50(0x24c)]),_0x58a2e3={'scriptId':_0x3c1929,'runId':(_0x12775d=_0x304bf8[_0x44ac50(0x34b)][_0x44ac50(0x206)]('runId'))!=null?_0x12775d:'','function':_0x541540,'unitId':_0x4e7751[_0x44ac50(0x1e1)](),'argsOfFunction':JSON[_0x44ac50(0x22a)](_0x2dad51),'invokeId':(_0x2ae172=_0x1616b3[_0x44ac50(0x2ec)])!=null?_0x2ae172:'','executionId':(_0x2151ed=_0x1616b3[_0x44ac50(0x3e4)])!=null?_0x2151ed:''};try{const _0x3f02e0=await this['_httpService'][_0x44ac50(0x290)](_0x15e64a,{'body':_0x58a2e3});return _0x3f02e0[_0x44ac50(0x2da)]['error']&&_0x3f02e0[_0x44ac50(0x2da)][_0x44ac50(0x3ca)][_0x44ac50(0x217)]!==Be['OK']?_0x44ac50(0x3b3):_0x3f02e0[_0x44ac50(0x2da)]['result'];}catch{return _0x44ac50(0x3b3);}}},exports[_0xbd72b5(0x2bf)]=rs([ue(0x0,a[_0xbd72b5(0x3e7)]),ue(0x1,a['Inject'](G[_0xbd72b5(0x34d)])),ue(0x2,a[_0xbd72b5(0x24a)])],exports[_0xbd72b5(0x2bf)]),exports['CollaborationStatusDisplay']=xe,exports[_0xbd72b5(0x221)]=be,exports[_0xbd72b5(0x3c5)]=Ae,exports[_0xbd72b5(0x259)]=is,exports['WebURLService']=je;
1
+ 'use strict';const _0x16f785=_0x2ff8;(function(_0x16a99d,_0x5488bf){const _0x96d581=_0x2ff8,_0x3ee3e5=_0x16a99d();while(!![]){try{const _0x31825e=-parseInt(_0x96d581(0x33e))/0x1*(-parseInt(_0x96d581(0x155))/0x2)+parseInt(_0x96d581(0x2dd))/0x3*(parseInt(_0x96d581(0x1ce))/0x4)+parseInt(_0x96d581(0x17e))/0x5+parseInt(_0x96d581(0x1ec))/0x6*(parseInt(_0x96d581(0x1e5))/0x7)+-parseInt(_0x96d581(0x390))/0x8+-parseInt(_0x96d581(0x211))/0x9*(parseInt(_0x96d581(0x2a4))/0xa)+parseInt(_0x96d581(0x2f7))/0xb;if(_0x31825e===_0x5488bf)break;else _0x3ee3e5['push'](_0x3ee3e5['shift']());}catch(_0x367f2c){_0x3ee3e5['push'](_0x3ee3e5['shift']());}}}(_0x272c,0xb3506));var Ve=Object[_0x16f785(0x240)],Xe=(_0x1a8f89,_0x4296b1,_0x4a7bb1)=>_0x4296b1 in _0x1a8f89?Ve(_0x1a8f89,_0x4296b1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a7bb1}):_0x1a8f89[_0x4296b1]=_0x4a7bb1,h=(_0x2d59cd,_0x57012e,_0x5c6177)=>Xe(_0x2d59cd,typeof _0x57012e!=_0x16f785(0x35f)?_0x57012e+'':_0x57012e,_0x5c6177);Object[_0x16f785(0x240)](exports,Symbol[_0x16f785(0x32a)],{'value':_0x16f785(0x34c)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require(_0x16f785(0x342)),b=require(_0x16f785(0x2e6)),Ge=require('@univerjs/drawing'),d=require(_0x16f785(0x224)),Y=require(_0x16f785(0x267)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x16f785(0x3a1)),g=require('@univerjs/sheets'),$=require(_0x16f785(0x1f3)),X=require('@univerjs/sheets-ui'),P=require(_0x16f785(0x389)),T=require('@univerjs/ui'),D=require(_0x16f785(0x1a4)),M=require('react'),Ke=require(_0x16f785(0x249));var qe=Object['getOwnPropertyDescriptor'],ze=(_0x51615e,_0x15e358,_0x2a4b52,_0xbd20e4)=>{const _0x2bf844=_0x16f785;for(var _0x4ca0ff=_0xbd20e4>0x1?void 0x0:_0xbd20e4?qe(_0x15e358,_0x2a4b52):_0x15e358,_0x2e3674=_0x51615e[_0x2bf844(0x378)]-0x1,_0x120a7e;_0x2e3674>=0x0;_0x2e3674--)(_0x120a7e=_0x51615e[_0x2e3674])&&(_0x4ca0ff=_0x120a7e(_0x4ca0ff)||_0x4ca0ff);return _0x4ca0ff;},Te=(_0x2a156e,_0x17fb9e)=>(_0x3eb51e,_0x2f3a06)=>_0x17fb9e(_0x3eb51e,_0x2f3a06,_0x2a156e);let de=class extends a[_0x16f785(0x191)]{constructor(_0x942d09,_0x5b09c9){const _0x32aea7=_0x16f785;super(),this['_docClipboardService']=_0x942d09,this['_imageIoService']=_0x5b09c9,this[_0x32aea7(0x39e)]();}[_0x16f785(0x39e)](){const _0x33fbee=_0x16f785,_0x225b24=this;this[_0x33fbee(0x3b2)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x4d59d9=>{const _0x5cf6f0=_0x33fbee,_0x118428=await _0x225b24['_imageIoService'][_0x5cf6f0(0x353)](_0x4d59d9);return _0x118428?{'source':_0x118428[_0x5cf6f0(0x364)],'imageSourceType':_0x118428['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x16f785(0x30e)]),Te(0x1,Ge[_0x16f785(0x150)])],de);const Oe=[_0x16f785(0x1da),_0x16f785(0x328),'green.600',_0x16f785(0x1f6),_0x16f785(0x394),'yellow.400'];class me extends a[_0x16f785(0x1c7)]{constructor(){const _0x3bf336=_0x16f785;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x3bf336(0x245),0x0);}[_0x16f785(0x2a3)](_0x2c62da){const _0x3aa64b=_0x16f785;if(this['_assignedColors'][_0x3aa64b(0x13f)](_0x2c62da))return this[_0x3aa64b(0x286)][_0x3aa64b(0x22c)](_0x2c62da);const _0x4a22a9=Oe[this[_0x3aa64b(0x245)]];return this[_0x3aa64b(0x245)]=(this[_0x3aa64b(0x245)]+0x1)%Oe[_0x3aa64b(0x378)],this['_assignedColors'][_0x3aa64b(0x2fc)](_0x2c62da,_0x4a22a9),_0x4a22a9;}}function Pe(_0x19a59e){let _0x20641a='';for(const _0x5289db of _0x19a59e){const {startOffset:_0x5982d0,endOffset:_0x1852d4,isActive:_0xb2e67,rangeType:_0x94f2df,segmentId:_0xe02c00,segmentPage:_0xaf81c1}=_0x5289db;_0x20641a['length']&&(_0x20641a+=','),_0x20641a+=_0x5982d0+':'+_0x1852d4+':'+(_0xb2e67?'1':'0')+':'+_0x94f2df+':'+_0xe02c00+':'+_0xaf81c1;}return _0x20641a;}function Je(_0x525541){const _0x288093=_0x16f785,_0x2cf86f=_0x525541[_0x288093(0x303)](','),_0x1d607d=[];for(const _0x3ea9de of _0x2cf86f){const [_0x513919,_0xb3832b,_0x475747,_0x14b67c,_0x401088,_0x1a1a7a]=_0x3ea9de[_0x288093(0x303)](':');_0x1d607d['push']({'startOffset':Number(_0x513919),'endOffset':Number(_0xb3832b),'collapsed':_0x513919===_0xb3832b,'isActive':_0x475747==='1','rangeType':_0x14b67c===a['DOC_RANGE_TYPE'][_0x288093(0x2eb)]?a[_0x288093(0x354)][_0x288093(0x2eb)]:a[_0x288093(0x354)]['RECT'],'segmentId':typeof _0x401088==_0x288093(0x330)?String(_0x401088):'','segmentPage':Number(_0x1a1a7a!=null?_0x1a1a7a:-0x1)});}return _0x1d607d[_0x288093(0x221)](_0x213009=>_0x213009[_0x288093(0x369)])||(_0x1d607d[0x0][_0x288093(0x369)]=!0x0),_0x1d607d;}class Ce extends a[_0x16f785(0x191)]{constructor(){const _0x5c7526=_0x16f785;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,_0x5c7526(0x17b),this[_0x5c7526(0x2a2)]['asObservable']());}['syncEditingCollabCursor'](_0x147819){const _0x5d4e13=_0x16f785,{unitID:_0xdea06,memberID:_0x73f6d8,textRanges:_0x31d87d}=_0x147819,_0x1ec7a5=Pe(_0x31d87d);if(_0x1ec7a5==='')return;const _0x58f71a={'unitID':_0xdea06,'memberID':_0x73f6d8,'selection':_0x1ec7a5};this[_0x5d4e13(0x2a2)]['next'](_0x58f71a);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x2a83bf,_0x3dea9b,_0x212b33,_0x22977c)=>{const _0x3df496=_0x16f785;for(var _0x4117f3=_0x22977c>0x1?void 0x0:_0x22977c?Ze(_0x3dea9b,_0x212b33):_0x3dea9b,_0x354a54=_0x2a83bf[_0x3df496(0x378)]-0x1,_0x4e5b60;_0x354a54>=0x0;_0x354a54--)(_0x4e5b60=_0x2a83bf[_0x354a54])&&(_0x4117f3=_0x4e5b60(_0x4117f3)||_0x4117f3);return _0x4117f3;},L=(_0x12707f,_0x2d2561)=>(_0x29ee14,_0x220537)=>_0x2d2561(_0x29ee14,_0x220537,_0x12707f);const et=0x12c,tt=0x64;let fe=class extends a[_0x16f785(0x191)]{constructor(_0xcf3ad6,_0x2182cf,_0x3d0d3f,_0x7e788d,_0x10f12e,_0x19c5f5,_0x1cd5d4,_0xf52eb1,_0x445094){const _0x1f87c2=_0x16f785;super(),h(this,_0x1f87c2(0x318),!0x1),h(this,_0x1f87c2(0x39e),!0x1),h(this,'_cursorInfo$',new d[(_0x1f87c2(0x229))](new Map())),h(this,_0x1f87c2(0x2f9),this[_0x1f87c2(0x37b)][_0x1f87c2(0x257)]()),h(this,'_roomMembers$',new d[(_0x1f87c2(0x229))]([])),h(this,_0x1f87c2(0x360),this['_roomMembers$'][_0x1f87c2(0x1a6)](d['debounceTime'](et))),h(this,_0x1f87c2(0x140),a[_0x1f87c2(0x206)](_0x1eabd0=>{const _0x320360=_0x1f87c2,_0x1c76f1={'eventID':m[_0x320360(0x32e)][_0x320360(0x315)],'data':{'unitID':this[_0x320360(0x167)],'memberID':this[_0x320360(0x20c)][_0x320360(0x1db)](),'selection':Pe(_0x1eabd0)}};this[_0x320360(0x20c)][_0x320360(0x34b)](_0x1c76f1,this[_0x320360(0x167)]);},tt)),(this[_0x1f87c2(0x167)]=_0xcf3ad6,this[_0x1f87c2(0x20c)]=_0x2182cf,this[_0x1f87c2(0x1b4)]=_0x3d0d3f,this[_0x1f87c2(0x3aa)]=_0x7e788d,this[_0x1f87c2(0x1d1)]=_0x10f12e,this[_0x1f87c2(0x185)]=_0x19c5f5,this['_transformService']=_0x1cd5d4,this[_0x1f87c2(0x2ff)]=_0xf52eb1,this['_commandService']=_0x445094);}get[_0x16f785(0x189)](){const _0x36db21=_0x16f785;return this[_0x36db21(0x37b)]['getValue']();}get['roomMembers'](){const _0x3de3a9=_0x16f785;return this[_0x3de3a9(0x289)][_0x3de3a9(0x2ab)]();}[_0x16f785(0x2c5)](){const _0x3f317b=_0x16f785;super['dispose'](),this['_cursorInfo$'][_0x3f317b(0x1c3)](new Map()),this[_0x3f317b(0x37b)][_0x3f317b(0x266)](),this[_0x3f317b(0x289)][_0x3f317b(0x1c3)]([]),this[_0x3f317b(0x289)][_0x3f317b(0x266)]();}['init'](){const _0x5bd6ab=_0x16f785;this['_init']||(this[_0x5bd6ab(0x39e)]=!0x0,this[_0x5bd6ab(0x20c)][_0x5bd6ab(0x220)][_0x5bd6ab(0x1a6)](d[_0x5bd6ab(0x341)](this['dispose$']))[_0x5bd6ab(0x1fa)](_0x359d06=>{const _0x706829=_0x5bd6ab;_0x359d06===u[_0x706829(0x1a5)]['ONLINE']?this[_0x706829(0x1ff)]():this[_0x706829(0x355)]();}),this[_0x5bd6ab(0x20c)][_0x5bd6ab(0x273)][_0x5bd6ab(0x1a6)](d['takeUntil'](this[_0x5bd6ab(0x332)]))[_0x5bd6ab(0x1fa)](_0x2632ee=>{const _0x5e3655=_0x5bd6ab,_0x1dff72=_0x2632ee[_0x5e3655(0x2f6)];_0x1dff72===m[_0x5e3655(0x32e)]['UPDATE_CURSOR']&&this[_0x5e3655(0x22d)](_0x2632ee),_0x1dff72===m['CollaborationEvent'][_0x5e3655(0x1dd)]&&this['_onCursorDelete'](_0x2632ee);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x76d997=>{const _0x2ec226=_0x5bd6ab,_0x4bca9e=_0x76d997[_0x2ec226(0x1d5)];_0x4bca9e!=null&&this['_online']&&_0x76d997['id']===Y[_0x2ec226(0x31c)]['id']&&_0x4bca9e[_0x2ec226(0x1b8)]===this[_0x2ec226(0x167)]&&_0x4bca9e[_0x2ec226(0x24f)]===!0x1&&_0x4bca9e[_0x2ec226(0x279)][_0x2ec226(0x378)]>0x0&&this[_0x2ec226(0x140)](_0x4bca9e[_0x2ec226(0x279)]);})),this[_0x5bd6ab(0x185)][_0x5bd6ab(0x17b)]['pipe'](d[_0x5bd6ab(0x341)](this[_0x5bd6ab(0x332)]))[_0x5bd6ab(0x1fa)](_0x2b7100=>{const _0x142deb=_0x5bd6ab;if((_0x2b7100==null?void 0x0:_0x2b7100[_0x142deb(0x167)])!==this['unitID'])return;const _0x324404={'eventID':m[_0x142deb(0x32e)][_0x142deb(0x315)],'data':_0x2b7100};this[_0x142deb(0x22d)](_0x324404);}),this[_0x5bd6ab(0x3b2)](this[_0x5bd6ab(0x333)][_0x5bd6ab(0x34f)](_0x2e7883=>{const _0x31250d=_0x5bd6ab;if(_0x2e7883[_0x31250d(0x1d5)]==null)return;const _0xca628f=_0x2e7883[_0x31250d(0x1d5)];if(_0x2e7883['id']!==Y[_0x31250d(0x174)]['id']||_0xca628f['unitId']!==this[_0x31250d(0x167)])return;const _0x5d4c9a={'id':_0x31250d(0x275),'params':_0xca628f},_0x16357c=this[_0x31250d(0x189)];for(const [_0x2cb7f8,_0x25889e]of _0x16357c){const _0x5e7e49={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x31250d(0x167)],'actions':null,'textRanges':_0x25889e[_0x31250d(0x279)]}},_0xfd5a18=this['_transformService'][_0x31250d(0x3b0)](_0x5d4c9a,_0x5e7e49,!0x1);if(m['isTransformMutationFailure'](_0xfd5a18))throw _0xfd5a18['error'];_0x16357c['set'](_0x2cb7f8,{..._0x25889e,'ranges':_0xfd5a18[_0x31250d(0x1bd)][_0x31250d(0x1d5)][_0x31250d(0x30d)]});}queueMicrotask(()=>{const _0x41cf2e=_0x31250d;this[_0x41cf2e(0x37b)]['next'](_0x16357c);});})));}[_0x16f785(0x22d)](_0x25244e){const _0xc7a6b7=_0x16f785;var _0x3b9656,_0xe1ebbf;const {memberID:_0x2f17e3,selection:_0x125104}=_0x25244e[_0xc7a6b7(0x214)],_0xc11227=Je(_0x125104),_0x29b56c=(_0xe1ebbf=(_0x3b9656=this[_0xc7a6b7(0x1d1)][_0xc7a6b7(0x306)](this[_0xc7a6b7(0x167)],_0x2f17e3))==null?void 0x0:_0x3b9656[_0xc7a6b7(0x291)])!=null?_0xe1ebbf:_0xc7a6b7(0x226),_0xcb4a59={'color':this[_0xc7a6b7(0x3aa)][_0xc7a6b7(0x2a3)](_0x2f17e3),'name':_0x29b56c,'ranges':_0xc11227},_0x2a114b=this[_0xc7a6b7(0x189)];_0x2a114b['set'](_0x2f17e3,_0xcb4a59),this[_0xc7a6b7(0x37b)][_0xc7a6b7(0x1c3)](_0x2a114b);}['_onCursorDelete'](_0x5d3cb9){const _0x413938=_0x16f785,{memberID:_0x10d883}=_0x5d3cb9['data'],_0x2c9942=this[_0x413938(0x189)];_0x2c9942['delete'](_0x10d883),this[_0x413938(0x37b)]['next'](_0x2c9942);}['_toggleOnline'](){const _0x45c8e2=_0x16f785;var _0x2b5258;if(this[_0x45c8e2(0x318)]=!0x0,((_0x2b5258=this[_0x45c8e2(0x2ff)][_0x45c8e2(0x20a)]())==null?void 0x0:_0x2b5258['getUnitId']())!==this[_0x45c8e2(0x167)])return;const _0x109729=this[_0x45c8e2(0x1b4)][_0x45c8e2(0x22c)](Y[_0x45c8e2(0x335)])[_0x45c8e2(0x340)]();Array[_0x45c8e2(0x21a)](_0x109729)&&_0x109729[_0x45c8e2(0x378)]>0x0&&this[_0x45c8e2(0x140)](_0x109729);}[_0x16f785(0x355)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x16f785(0x2c4)](u[_0x16f785(0x160)])),L(0x5,a[_0x16f785(0x2c4)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x16f785(0x3b7)]),L(0x8,a[_0x16f785(0x199)])],fe);var st=Object[_0x16f785(0x2a8)],it=(_0x430ff9,_0x2a3560,_0x5e3cdd,_0xbc1024)=>{const _0x2c3fe1=_0x16f785;for(var _0x2e0eb7=_0xbc1024>0x1?void 0x0:_0xbc1024?st(_0x2a3560,_0x5e3cdd):_0x2a3560,_0x5a061b=_0x430ff9[_0x2c3fe1(0x378)]-0x1,_0x554fc6;_0x5a061b>=0x0;_0x5a061b--)(_0x554fc6=_0x430ff9[_0x5a061b])&&(_0x2e0eb7=_0x554fc6(_0x2e0eb7)||_0x2e0eb7);return _0x2e0eb7;},w=(_0x27a44b,_0x9e7425)=>(_0x58f15d,_0x278444)=>_0x9e7425(_0x58f15d,_0x278444,_0x27a44b);const nt=0x12c,rt=0x64,ot=()=>{let _0x1e4e5c=[],_0x2b73f2=!0x1;return _0x438936=>{const _0x57a136=_0x2ff8;_0x1e4e5c[_0x57a136(0x25f)](_0x438936),_0x2b73f2||(_0x2b73f2=!0x0,setTimeout(()=>{const _0x221254=_0x57a136;_0x1e4e5c[_0x221254(0x35e)](_0x4c2aa4=>_0x4c2aa4()),_0x1e4e5c=[],_0x2b73f2=!0x1;}));};};let Se=class extends a[_0x16f785(0x191)]{constructor(_0x3979f9,_0x1b42cb,_0x46fa44,_0x188677,_0x11ea1f,_0x4cce75,_0x2698e4,_0x168722){const _0xaf9d10=_0x16f785;super(),h(this,_0xaf9d10(0x318),!0x1),h(this,_0xaf9d10(0x39e),!0x1),h(this,_0xaf9d10(0x37b),new d[(_0xaf9d10(0x229))](new Map())),h(this,'cursorInfo$',this[_0xaf9d10(0x37b)][_0xaf9d10(0x257)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,_0xaf9d10(0x360),this[_0xaf9d10(0x289)][_0xaf9d10(0x1a6)](d[_0xaf9d10(0x336)](nt))),h(this,_0xaf9d10(0x140),a['debounce']((_0x5d3fb2,_0x2e1b83)=>{const _0x352648=_0xaf9d10,_0x3ef029={'eventID':m[_0x352648(0x32e)][_0x352648(0x315)],'data':{'unitID':this[_0x352648(0x167)],'memberID':this[_0x352648(0x20c)][_0x352648(0x1db)](),'selection':Ee[_0x352648(0x30f)](_0x5d3fb2,_0x2e1b83[_0x352648(0x3a4)])}};this[_0x352648(0x20c)]['send'](_0x3ef029,this[_0x352648(0x167)]);},rt)),(this[_0xaf9d10(0x167)]=_0x3979f9,this[_0xaf9d10(0x20c)]=_0x1b42cb,this['_injector']=_0x46fa44,this[_0xaf9d10(0x3aa)]=_0x188677,this[_0xaf9d10(0x1d1)]=_0x11ea1f,this[_0xaf9d10(0x2ff)]=_0x4cce75,this['_commandService']=_0x2698e4,this[_0xaf9d10(0x304)]=_0x168722);}get[_0x16f785(0x189)](){const _0x18c47e=_0x16f785;return this[_0x18c47e(0x37b)]['getValue']();}get[_0x16f785(0x166)](){const _0xf87345=_0x16f785;return this[_0xf87345(0x289)][_0xf87345(0x2ab)]();}[_0x16f785(0x2c5)](){const _0x518de0=_0x16f785;super[_0x518de0(0x2c5)](),this[_0x518de0(0x37b)]['next'](new Map()),this[_0x518de0(0x37b)]['complete'](),this[_0x518de0(0x289)][_0x518de0(0x1c3)]([]),this[_0x518de0(0x289)]['complete']();}[_0x16f785(0x2e4)](){const _0x4df1c9=_0x16f785;this[_0x4df1c9(0x39e)]||(this['_init']=!0x0,this[_0x4df1c9(0x20c)]['sessionStatus$'][_0x4df1c9(0x1a6)](d['takeUntil'](this[_0x4df1c9(0x332)]))[_0x4df1c9(0x1fa)](_0x57f5c7=>{const _0xf3a0de=_0x4df1c9;_0x57f5c7===u['SessionStatus'][_0xf3a0de(0x1aa)]?this[_0xf3a0de(0x1ff)]():this['_toggleOffline']();}),this[_0x4df1c9(0x20c)][_0x4df1c9(0x273)][_0x4df1c9(0x1a6)](d['takeUntil'](this[_0x4df1c9(0x332)]))[_0x4df1c9(0x1fa)](_0x33a428=>{const _0x28bb42=_0x4df1c9,_0x508afe=_0x33a428[_0x28bb42(0x2f6)];_0x508afe===m[_0x28bb42(0x32e)][_0x28bb42(0x315)]&&this['_onCursorUpdate'](_0x33a428),_0x508afe===m[_0x28bb42(0x32e)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x33a428);}),this['_onRefRangeChange'](),this[_0x4df1c9(0x3b2)](this['_commandService'][_0x4df1c9(0x34f)](_0x243d75=>{const _0x50cb00=_0x4df1c9;if(this[_0x50cb00(0x318)]&&_0x243d75['id']===g[_0x50cb00(0x198)]['id']&&_0x243d75[_0x50cb00(0x1d5)][_0x50cb00(0x1b8)]===this[_0x50cb00(0x167)]){const _0xefffc4=_0x243d75[_0x50cb00(0x1d5)];this[_0x50cb00(0x140)](_0xefffc4[_0x50cb00(0x234)],_0xefffc4['selections'][0x0]);}})));}[_0x16f785(0x22d)](_0xb444fb){const _0x17c2d1=_0x16f785;var _0x85045b,_0xd953c8;const {memberID:_0x368605,selection:_0xdd218d}=_0xb444fb[_0x17c2d1(0x214)],{sheetName:_0x233349,range:_0x5e50d1}=Ee[_0x17c2d1(0x1a2)](_0xdd218d),_0x2dbcf0={'name':(_0xd953c8=(_0x85045b=this['_memberService'][_0x17c2d1(0x306)](this[_0x17c2d1(0x167)],_0x368605))==null?void 0x0:_0x85045b[_0x17c2d1(0x291)])!=null?_0xd953c8:_0x17c2d1(0x226),'range':this['_getMergeRange'](_0x233349,_0x5e50d1),'sheetID':_0x233349,'color':this['_colorAssignService'][_0x17c2d1(0x2a3)](_0x368605),'selection':_0xdd218d},_0x5a3ea7=this[_0x17c2d1(0x189)];_0x5a3ea7['set'](_0x368605,_0x2dbcf0),this[_0x17c2d1(0x37b)][_0x17c2d1(0x1c3)](_0x5a3ea7);}[_0x16f785(0x2aa)](_0x249754){const _0x183351=_0x16f785,{memberID:_0x234290}=_0x249754[_0x183351(0x214)],_0x29f683=this[_0x183351(0x189)];_0x29f683[_0x183351(0x1be)](_0x234290),this[_0x183351(0x37b)][_0x183351(0x1c3)](_0x29f683);}['_getMergeRange'](_0x32b789,_0x47af8e){const _0x42a27f=_0x16f785;var _0x496461,_0x23e621;const _0x47da7d=(_0x23e621=(_0x496461=this[_0x42a27f(0x2ff)][_0x42a27f(0x329)](this[_0x42a27f(0x167)]))==null?void 0x0:_0x496461[_0x42a27f(0x1c0)](_0x32b789))==null?void 0x0:_0x23e621['getMergeData']();return(_0x47da7d==null?void 0x0:_0x47da7d['find'](_0x1b1d50=>a[_0x42a27f(0x28c)][_0x42a27f(0x148)](_0x1b1d50,_0x47af8e)))||_0x47af8e;}[_0x16f785(0x27a)](){const _0x1760c5=_0x16f785,_0x56f5e5=new a[(_0x1760c5(0x1e7))](),_0x55bb35=ot(),_0x5c2a0b=()=>{const _0x1efe41=_0x1760c5;_0x56f5e5[_0x1efe41(0x2c5)]();const _0x44c048=(_0x2798a3,_0x1aa921,_0x15f518,_0xfa86cc)=>{const _0x49e29d=_0x1efe41;let _0x3f0fd5=[];switch(_0x2798a3['id']){case g['EffectRefRangId'][_0x49e29d(0x2da)]:{_0x3f0fd5=g[_0x49e29d(0x2c6)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x39d)]:{_0x3f0fd5=g[_0x49e29d(0x316)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x293)]:{_0x3f0fd5=g[_0x49e29d(0x35b)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x381)]:{_0x3f0fd5=g[_0x49e29d(0x36d)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x16d)]:{_0x3f0fd5=g[_0x49e29d(0x2f0)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x222)]:{_0x3f0fd5=g[_0x49e29d(0x168)](_0x2798a3,_0xfa86cc);break;}case g['EffectRefRangId'][_0x49e29d(0x292)]:{_0x3f0fd5=g[_0x49e29d(0x2f3)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x2e7)]:{_0x3f0fd5=g[_0x49e29d(0x238)](_0x2798a3,_0xfa86cc);break;}case g['EffectRefRangId'][_0x49e29d(0x2c7)]:{_0x3f0fd5=g[_0x49e29d(0x145)](_0x2798a3,_0xfa86cc);break;}}const _0x1cc5aa=g[_0x49e29d(0x305)](_0x3f0fd5,_0xfa86cc),_0x5227bb=this[_0x49e29d(0x189)][_0x49e29d(0x22c)](_0x1aa921);if(_0x5227bb&&_0x1cc5aa){const _0x3bd12b={..._0x5227bb,'range':_0x1cc5aa};this[_0x49e29d(0x189)]['set'](_0x1aa921,_0x3bd12b),_0x55bb35(()=>{const _0x25a63f=_0x49e29d,_0x2d85d9=this[_0x25a63f(0x304)][_0x25a63f(0x154)](_0x1cc5aa,_0x89e969=>(_0x2d85d9[_0x25a63f(0x2c5)](),_0x44c048(_0x89e969,_0x1aa921,_0x15f518,_0x1cc5aa)));_0x56f5e5[_0x25a63f(0x37e)](_0x2d85d9);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x1efe41(0x35e)]((_0x564f4e,_0x200c28)=>{const _0x56e0a4=_0x1efe41,{range:_0x11be28,sheetID:_0x8087f4}=_0x564f4e,_0x1fb7e2=this[_0x56e0a4(0x304)]['registerRefRange'](_0x11be28,_0x9f7013=>(_0x1fb7e2[_0x56e0a4(0x2c5)](),_0x44c048(_0x9f7013,_0x200c28,_0x8087f4,_0x11be28)));_0x56f5e5[_0x56e0a4(0x37e)](_0x1fb7e2);});};this[_0x1760c5(0x3b2)](a[_0x1760c5(0x39f)](this[_0x1760c5(0x37b)][_0x1760c5(0x1fa)](()=>{_0x5c2a0b();})));}[_0x16f785(0x1ff)](){const _0xbb8e9a=_0x16f785;var _0x4d25de,_0x9fb203;if(this[_0xbb8e9a(0x318)]=!0x0,((_0x4d25de=this['_univerInstanceService'][_0xbb8e9a(0x20a)]())==null?void 0x0:_0x4d25de[_0xbb8e9a(0x14f)]())!==this[_0xbb8e9a(0x167)])return;const _0x215d80=(_0x9fb203=this[_0xbb8e9a(0x1b4)]['get'](g[_0xbb8e9a(0x3b8)])[_0xbb8e9a(0x1ae)]())==null?void 0x0:_0x9fb203[0x0],_0x5b0277=this['_univerInstanceService']['getCurrentUnitForType'](a[_0xbb8e9a(0x2a5)][_0xbb8e9a(0x253)])[_0xbb8e9a(0x2f4)]();_0x215d80&&_0x5b0277&&this[_0xbb8e9a(0x140)](_0x5b0277[_0xbb8e9a(0x186)](),_0x215d80);}[_0x16f785(0x355)](){const _0x37edba=_0x16f785;this[_0x37edba(0x318)]=!0x1;}};Se=it([w(0x2,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),w(0x3,a['Inject'](me)),w(0x4,a[_0x16f785(0x2c4)](u[_0x16f785(0x160)])),w(0x5,a[_0x16f785(0x3b7)]),w(0x6,a[_0x16f785(0x199)]),w(0x7,a[_0x16f785(0x2c4)](g[_0x16f785(0x2bf)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x1cac56,_0x47ac51,_0x75038f,_0x48e064)=>{const _0x4ac019=_0x16f785;for(var _0x30c016=_0x48e064>0x1?void 0x0:_0x48e064?at(_0x47ac51,_0x75038f):_0x47ac51,_0x175e77=_0x1cac56[_0x4ac019(0x378)]-0x1,_0x4eefee;_0x175e77>=0x0;_0x175e77--)(_0x4eefee=_0x1cac56[_0x175e77])&&(_0x30c016=_0x4eefee(_0x30c016)||_0x30c016);return _0x30c016;},ie=(_0x22e5e3,_0x390e8d)=>(_0xeecdb1,_0x1d8931)=>_0x390e8d(_0xeecdb1,_0x1d8931,_0x22e5e3);let x=class extends a['RxDisposable']{constructor(_0x3b3b53,_0x1d4293,_0x128ac3){const _0x148634=_0x16f785;super(),h(this,'_entities',new Map()),h(this,_0x148634(0x33c),new d[(_0x148634(0x1f0))]()),(this[_0x148634(0x2ff)]=_0x3b3b53,this[_0x148634(0x1b4)]=_0x1d4293,this[_0x148634(0x366)]=_0x128ac3,this[_0x148634(0x39e)]());}['dispose'](){const _0x8bfe2e=_0x16f785;super[_0x8bfe2e(0x2c5)](),this[_0x8bfe2e(0x33c)]['complete'](),this['_entities']['forEach'](_0x8860a6=>_0x8860a6[_0x8bfe2e(0x2c5)]());}[_0x16f785(0x3a8)](_0x311ba5){const _0x528f69=_0x16f785;return this[_0x528f69(0x2b5)]['has'](_0x311ba5)?this[_0x528f69(0x2b5)][_0x528f69(0x22c)](_0x311ba5)['cursorInfo$']:this[_0x528f69(0x33c)][_0x528f69(0x1a6)](d[_0x528f69(0x1a0)](_0x453aac=>_0x453aac[_0x528f69(0x167)]===_0x311ba5),d[_0x528f69(0x232)](_0x21da79=>_0x21da79[_0x528f69(0x2f9)]));}['_init'](){const _0x47e9cb=_0x16f785;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x47e9cb(0x2a5)][_0x47e9cb(0x253)])[_0x47e9cb(0x1a6)](d[_0x47e9cb(0x341)](this[_0x47e9cb(0x332)]))[_0x47e9cb(0x1fa)](async _0xa38dbc=>{const _0x5620b7=_0x47e9cb,_0x2740db=_0xa38dbc[_0x5620b7(0x14f)](),_0x5300ba=await this[_0x5620b7(0x20f)](_0x2740db);this[_0x5620b7(0x33c)]['next'](_0x5300ba),this[_0x5620b7(0x2b5)][_0x5620b7(0x2fc)](_0x2740db,_0x5300ba);}),this[_0x47e9cb(0x2ff)]['getTypeOfUnitAdded$'](a[_0x47e9cb(0x2a5)][_0x47e9cb(0x1e2)])[_0x47e9cb(0x1a6)](d['takeUntil'](this[_0x47e9cb(0x332)]))['pipe'](d['filter'](_0x183752=>!_0x183752[_0x47e9cb(0x14f)]()[_0x47e9cb(0x312)]('__')))[_0x47e9cb(0x1fa)](async _0x14cf32=>{const _0xf74ca=_0x47e9cb,_0x296781=_0x14cf32[_0xf74ca(0x14f)](),_0x17d65f=await this[_0xf74ca(0x26d)](_0x296781);this[_0xf74ca(0x33c)][_0xf74ca(0x1c3)](_0x17d65f),this[_0xf74ca(0x2b5)]['set'](_0x296781,_0x17d65f);}),d['merge'](this[_0x47e9cb(0x2ff)][_0x47e9cb(0x16e)](a[_0x47e9cb(0x2a5)][_0x47e9cb(0x1e2)]),this[_0x47e9cb(0x2ff)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x47e9cb(0x253)]))[_0x47e9cb(0x1a6)](d[_0x47e9cb(0x341)](this[_0x47e9cb(0x332)]))[_0x47e9cb(0x1fa)](_0x2d1b52=>{const _0x468c1f=_0x47e9cb,_0x3d48d2=_0x2d1b52[_0x468c1f(0x14f)](),_0x1451d9=this[_0x468c1f(0x2b5)][_0x468c1f(0x22c)](_0x3d48d2);_0x1451d9&&(_0x1451d9[_0x468c1f(0x2c5)](),this['_entities'][_0x468c1f(0x1be)](_0x3d48d2));});}async[_0x16f785(0x20f)](_0x2409b6){const _0x593997=_0x16f785,_0xdec18c=await this[_0x593997(0x366)][_0x593997(0x1af)](_0x2409b6),_0x73a7d7=this['_injector'][_0x593997(0x399)](Se,_0x2409b6,_0xdec18c);return _0x73a7d7[_0x593997(0x2e4)](),_0x73a7d7;}async['_startDocCollabCursor'](_0x2d23a1){const _0x2d588d=_0x16f785,_0x3a7c84=await this['_collabSessionService'][_0x2d588d(0x1af)](_0x2d23a1),_0x394ce2=this['_injector']['createInstance'](fe,_0x2d23a1,_0x3a7c84);return _0x394ce2[_0x2d588d(0x2e4)](),_0x394ce2;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),ie(0x2,a[_0x16f785(0x2c4)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x1fac5e,_0x5c0ddc){const _0x168d47=_0x16f785;let {radius:_0x4ec2cb,width:_0x1628e3,height:_0x26f4b6}=_0x5c0ddc;_0x4ec2cb=_0x4ec2cb!=null?_0x4ec2cb:0x0,_0x1628e3=_0x1628e3!=null?_0x1628e3:0x1e,_0x26f4b6=_0x26f4b6!=null?_0x26f4b6:0x1e;let _0xa7816e=0x0,_0x33d82c=0x0,_0x1f9acd=0x0;_0xa7816e=_0x33d82c=_0x1f9acd=Math[_0x168d47(0x37d)](_0x4ec2cb,_0x1628e3/0x2,_0x26f4b6/0x2),_0x1fac5e['beginPath'](),_0x1fac5e[_0x168d47(0x27c)](_0xa7816e,0x0),_0x1fac5e[_0x168d47(0x347)](_0x1628e3-_0x33d82c,0x0),_0x1fac5e[_0x168d47(0x1c5)](_0x1628e3-_0x33d82c,_0x33d82c,_0x33d82c,Math['PI']*0x3/0x2,0x0,!0x1),_0x1fac5e['lineTo'](_0x1628e3,_0x26f4b6-_0x1f9acd),_0x1fac5e[_0x168d47(0x1c5)](_0x1628e3-_0x1f9acd,_0x26f4b6-_0x1f9acd,_0x1f9acd,0x0,Math['PI']/0x2,!0x1),_0x1fac5e[_0x168d47(0x347)](0x0,_0x26f4b6),_0x1fac5e['lineTo'](0x0,_0xa7816e),_0x1fac5e[_0x168d47(0x1c5)](_0xa7816e,_0xa7816e,_0xa7816e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1fac5e[_0x168d47(0x22a)](),_0x5c0ddc[_0x168d47(0x352)]&&(_0x1fac5e[_0x168d47(0x300)](),_0x1fac5e[_0x168d47(0x181)]=_0x5c0ddc[_0x168d47(0x352)],_0x5c0ddc[_0x168d47(0x282)]===_0x168d47(0x326)?_0x1fac5e[_0x168d47(0x352)](_0x168d47(0x326)):_0x1fac5e[_0x168d47(0x352)](),_0x1fac5e[_0x168d47(0x1d9)]());}class ee extends p[_0x16f785(0x31e)]{constructor(_0x4fb5da,_0x2689fa){const _0x4a8363=_0x16f785;super(_0x4fb5da,_0x2689fa),h(this,'color'),h(this,_0x4a8363(0x373)),(this[_0x4a8363(0x3b5)]=_0x2689fa==null?void 0x0:_0x2689fa[_0x4a8363(0x3b5)],this[_0x4a8363(0x373)]=_0x2689fa==null?void 0x0:_0x2689fa[_0x4a8363(0x373)]);}static[_0x16f785(0x223)](_0x5b6b57,_0x12aa6f){const _0x170088=_0x16f785,{text:_0x4f2b93,color:_0x3e5e12}=_0x12aa6f;_0x5b6b57[_0x170088(0x300)](),_0x5b6b57['font']=_0x170088(0x3a9);const _0x1eb69c=_0x5b6b57[_0x170088(0x1f4)](_0x4f2b93)[_0x170088(0x2b6)],_0x302608=Math[_0x170088(0x37d)](_0x1eb69c+0x2*ne,Re);_t(_0x5b6b57,{'height':K,'radius':0x4,'width':_0x302608,'fill':_0x3e5e12}),_0x5b6b57[_0x170088(0x181)]=_0x170088(0x3bd);const _0xeaf044=ne,_0x180ea1=K-lt,_0x3a711f=Re-0x2*ne;if(_0x1eb69c>_0x3a711f){let _0x4957b3='',_0x261e2c=0x0;for(const _0x47ab34 of _0x4f2b93){const _0x12fddf=_0x5b6b57[_0x170088(0x1f4)](_0x47ab34)[_0x170088(0x2b6)];if(_0x261e2c+_0x12fddf<=_0x3a711f-_0x5b6b57['measureText']('...')['width'])_0x4957b3+=_0x47ab34,_0x261e2c+=_0x12fddf;else{_0x4957b3+=_0x170088(0x169);break;}}_0x5b6b57['fillText'](_0x4957b3,_0xeaf044,_0x180ea1);}else _0x5b6b57[_0x170088(0x26e)](_0x4f2b93,_0xeaf044,_0x180ea1);_0x5b6b57[_0x170088(0x1d9)]();}[_0x16f785(0x236)](_0x37224c){ee['drawWith'](_0x37224c,this);}}const re=_0x16f785(0x2bd),ht='collab-text-range-',ut=_0x16f785(0x271),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x16f785(0x18f);class De{constructor(_0x359379,_0x4944ab,_0x26f75a,_0xceec86){const _0x2e670a=_0x16f785;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,_0x2e670a(0x356),null),h(this,_0x2e670a(0x1c9),null),h(this,'_eventUnsubscribe',null),(this[_0x2e670a(0x2e9)]=_0x359379,this['_scene']=_0x4944ab,this[_0x2e670a(0x1bc)]=_0x26f75a,this[_0x2e670a(0x28b)]=_0xceec86,this[_0x2e670a(0x2d8)]());}set[_0x16f785(0x322)](_0x1edb9b){const _0x1c8da8=_0x16f785;_0x1edb9b?(this['_anchorDot']&&this[_0x1c8da8(0x356)][_0x1c8da8(0x17f)](),this['_textBubble']&&this[_0x1c8da8(0x172)]['show']()):(this[_0x1c8da8(0x356)]&&this[_0x1c8da8(0x356)]['show'](),this[_0x1c8da8(0x172)]&&this[_0x1c8da8(0x172)][_0x1c8da8(0x17f)]());}[_0x16f785(0x2c5)](){const _0x477557=_0x16f785;for(const _0x5d2257 of this[_0x477557(0x38e)])_0x5d2257[_0x477557(0x2c5)]();this['_textBubble']&&this[_0x477557(0x172)][_0x477557(0x2c5)](),this[_0x477557(0x356)]&&this[_0x477557(0x356)]['dispose'](),this['_anchor']&&this[_0x477557(0x3be)][_0x477557(0x2c5)](),this[_0x477557(0x143)]&&this[_0x477557(0x143)]();}[_0x16f785(0x2d8)](){const _0x57d8e0=_0x16f785;var _0x5aa675;const {_docSkeleton:_0x5191d1,_document:_0x66bb}=this,{color:_0xe61f4b,name:_0x31ac2b,ranges:_0x29cdd6}=this[_0x57d8e0(0x2e9)],_0x441788=_0x66bb[_0x57d8e0(0x3b3)](),{docsLeft:_0x9fbe9,docsTop:_0x6ee7ef}=_0x441788,_0x23f2bd=new b[(_0x57d8e0(0x26f))](_0x441788,_0x5191d1);for(const {startOffset:_0xf5c41e,endOffset:_0x6ea071,rangeType:_0x206fe2,segmentId:_0x29f4cc,segmentPage:_0x2746ac,collapsed:_0x2342f4,isActive:_0x146452}of _0x29cdd6){const _0x713c37=_0x5191d1[_0x57d8e0(0x1f9)](_0xf5c41e,!0x0,_0x29f4cc,_0x2746ac);let _0x16314e=_0x5191d1['findNodePositionByCharIndex'](_0x6ea071,!0x0,_0x29f4cc,_0x2746ac);if(_0x16314e==null&&(_0x16314e=_0x5191d1[_0x57d8e0(0x1f9)](_0x6ea071-0x1,!0x1,_0x29f4cc,_0x2746ac)),_0x146452){const {contentBoxPointGroup:_0x164f5a}=_0x23f2bd['getRangePointData'](_0x16314e,_0x16314e);if(_0x164f5a[_0x57d8e0(0x378)]===0x0)continue;this[_0x57d8e0(0x24a)](_0xe61f4b,_0x164f5a,_0x9fbe9,_0x6ee7ef,_0x31ac2b),this['_eventUnsubscribe']=this[_0x57d8e0(0x175)]();}if(_0x713c37&&_0x16314e){if(_0x206fe2===a['DOC_RANGE_TYPE']['RECT']){const _0x7c243d=new b[(_0x57d8e0(0x225))](_0x441788,_0x5191d1),{pointGroup:_0x855b7}=(_0x5aa675=_0x7c243d[_0x57d8e0(0x363)](_0x713c37,_0x16314e))!=null?_0x5aa675:{};if(_0x855b7==null||_0x855b7[_0x57d8e0(0x378)]===0x0)continue;this[_0x57d8e0(0x3c3)](_0xe61f4b,_0x855b7,_0x9fbe9,_0x6ee7ef);}else{if(!_0x2342f4){const {borderBoxPointGroup:_0x5c7856}=_0x23f2bd[_0x57d8e0(0x363)](_0x713c37,_0x16314e);if(_0x5c7856[_0x57d8e0(0x378)]===0x0)continue;this[_0x57d8e0(0x2b4)](_0xe61f4b,_0x5c7856,_0x9fbe9,_0x6ee7ef);}}}}}['_drawAnchor'](_0x146efb,_0x452fb3,_0x97014,_0x25329d,_0x5e729f){const _0x2e3d4f=_0x16f785,_0x446dcc=this['_getAnchorBounding'](_0x452fb3),{left:_0x5733a0,top:_0x22033b,height:_0x2e715b}=_0x446dcc,_0x310c4b=this['_getScale'](),_0x2d299c=ft/_0x310c4b,_0x51d8c6=new p[(_0x2e3d4f(0x29a))](re+a['Tools'][_0x2e3d4f(0x36f)](k),{'left':_0x5733a0+_0x97014-_0x2d299c,'top':_0x22033b+_0x25329d,'height':_0x2e715b,'width':dt,'fill':_0x146efb||p[_0x2e3d4f(0x37f)](a[_0x2e3d4f(0x308)][_0x2e3d4f(0x385)],0x0),'strokeWidth':_0x2d299c,'stroke':St,'evented':!0x0});this[_0x2e3d4f(0x3be)]=_0x51d8c6,this[_0x2e3d4f(0x313)][_0x2e3d4f(0x2fd)](_0x51d8c6,b[_0x2e3d4f(0x1d2)]);const _0x14b403=new p[(_0x2e3d4f(0x29a))](re+a['Tools']['generateRandomId'](k),{'left':_0x5733a0+_0x97014-_0x2d299c,'top':_0x22033b+_0x25329d-oe/0x2,'height':oe,'width':oe,'fill':_0x146efb||p[_0x2e3d4f(0x37f)](a[_0x2e3d4f(0x308)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x146efb||p['getColor'](a[_0x2e3d4f(0x308)][_0x2e3d4f(0x385)],0x0),'evented':!0x1});this['_anchorDot']=_0x14b403,this[_0x2e3d4f(0x313)][_0x2e3d4f(0x2fd)](_0x14b403,b[_0x2e3d4f(0x1d2)]);const _0x4bf378=new ee(re+a[_0x2e3d4f(0x320)][_0x2e3d4f(0x36f)](k),{'left':_0x5733a0+_0x97014-_0x2d299c,'top':_0x22033b+_0x25329d-K,'text':_0x5e729f,'color':_0x146efb});this[_0x2e3d4f(0x172)]=_0x4bf378,this[_0x2e3d4f(0x313)][_0x2e3d4f(0x2fd)](_0x4bf378,b[_0x2e3d4f(0x1d2)]),this[_0x2e3d4f(0x322)]=!0x1;}['_handleHover'](){const _0x37c61f=_0x16f785,_0x475465=this[_0x37c61f(0x3be)][_0x37c61f(0x242)][_0x37c61f(0x15d)](()=>{this['_hover']=!0x0;}),_0x49be56=this[_0x37c61f(0x3be)][_0x37c61f(0x3bf)][_0x37c61f(0x15d)](()=>{const _0x1400c6=_0x37c61f;this[_0x1400c6(0x1c9)]&&clearTimeout(this[_0x1400c6(0x1c9)]),this[_0x1400c6(0x1c9)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x2a7f2e=_0x37c61f;_0x475465[_0x2a7f2e(0x2ee)](),_0x49be56[_0x2a7f2e(0x2ee)]();};}['_drawTextRange'](_0x1702c7,_0x997496,_0x118aa2,_0x3c2f69){const _0x4dfc55=_0x16f785,_0x3869bb=new a['ColorKit'](_0x1702c7)[_0x4dfc55(0x21d)](0.2)[_0x4dfc55(0x272)](),_0x50b7da=new p['RegularPolygon'](ht+a[_0x4dfc55(0x320)][_0x4dfc55(0x36f)](k),{'pointsGroup':_0x997496,'fill':_0x3869bb||p[_0x4dfc55(0x37f)](a[_0x4dfc55(0x308)][_0x4dfc55(0x385)],0.2),'left':_0x118aa2,'top':_0x3c2f69,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4dfc55(0x38e)]['push'](_0x50b7da),this[_0x4dfc55(0x313)][_0x4dfc55(0x2fd)](_0x50b7da,b[_0x4dfc55(0x1d2)]);}[_0x16f785(0x3c3)](_0x9a3a07,_0x53301b,_0x1d7a45,_0x21e8e1){const _0x6c7923=_0x16f785,_0x5cfa5c=new a[(_0x6c7923(0x359))](_0x9a3a07)[_0x6c7923(0x21d)](0.2)[_0x6c7923(0x272)](),_0xfbc97c=new p[(_0x6c7923(0x375))](ut+a[_0x6c7923(0x320)][_0x6c7923(0x36f)](k),{'pointsGroup':_0x53301b,'fill':_0x5cfa5c||p[_0x6c7923(0x37f)](a[_0x6c7923(0x308)]['black'],0.2),'left':_0x1d7a45,'top':_0x21e8e1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x6c7923(0x38e)][_0x6c7923(0x25f)](_0xfbc97c),this[_0x6c7923(0x313)][_0x6c7923(0x2fd)](_0xfbc97c,b[_0x6c7923(0x1d2)]);}[_0x16f785(0x3b9)](_0x56ecb5){const _0xf0b79e=_0x56ecb5[0x0],_0x2eb986=_0xf0b79e[0x0],_0x4c86f1=_0xf0b79e[0x2],{x:_0x256158,y:_0x15947a}=_0x2eb986,{x:_0x34b241,y:_0x3db5fb}=_0x4c86f1;return{'left':_0x256158,'top':_0x15947a,'width':_0x34b241-_0x256158,'height':_0x3db5fb-_0x15947a};}[_0x16f785(0x2a7)](){const _0x26d47f=_0x16f785,{scaleX:_0x12a2c0,scaleY:_0x2c9f68}=this[_0x26d47f(0x313)][_0x26d47f(0x23b)]();return Math[_0x26d47f(0x250)](_0x12a2c0,_0x2c9f68);}}var It=Object[_0x16f785(0x2a8)],vt=(_0x10706d,_0xa8519a,_0x2a2631,_0x560a27)=>{const _0x7b2a0e=_0x16f785;for(var _0x3d5598=_0x560a27>0x1?void 0x0:_0x560a27?It(_0xa8519a,_0x2a2631):_0xa8519a,_0x4f9efe=_0x10706d[_0x7b2a0e(0x378)]-0x1,_0x3d55b8;_0x4f9efe>=0x0;_0x4f9efe--)(_0x3d55b8=_0x10706d[_0x4f9efe])&&(_0x3d5598=_0x3d55b8(_0x3d5598)||_0x3d5598);return _0x3d5598;},W=(_0xcd323d,_0x472e91)=>(_0xd9af25,_0x48a457)=>_0x472e91(_0xd9af25,_0x48a457,_0xcd323d);let Ie=class extends a['RxDisposable']{constructor(_0xa7ad43,_0x223f8b,_0x225d06,_0x1c99b0,_0x13108b){const _0x5880dc=_0x16f785;super(),h(this,_0x5880dc(0x1dc),[]),h(this,'_cursors',[]),(this['_context']=_0xa7ad43,this[_0x5880dc(0x149)]=_0x223f8b,this[_0x5880dc(0x26c)]=_0x225d06,this[_0x5880dc(0x333)]=_0x1c99b0,this[_0x5880dc(0x1d0)]=_0x13108b,this[_0x5880dc(0x39e)]());}[_0x16f785(0x39e)](){const _0x1608e7=_0x16f785,_0x395cf4=this[_0x1608e7(0x31a)][_0x1608e7(0x1b8)],_0x4ec103=this['_docSkeletonManagerService'];this['disposeWithMe'](d[_0x1608e7(0x33d)]([this[_0x1608e7(0x26c)][_0x1608e7(0x3a8)](_0x395cf4),this[_0x1608e7(0x1d0)][_0x1608e7(0x3a5)]])['pipe']($[_0x1608e7(0x1a1)](([_0xbd486d,_0x565a1d])=>({'skeleton':_0x4ec103['getSkeleton'](),'cursors':[..._0xbd486d[_0x1608e7(0x1fd)]()][_0x1608e7(0x195)](_0x49cad1=>({..._0x49cad1,'color':this[_0x1608e7(0x1d0)][_0x1608e7(0x19f)](_0x49cad1['color'])}))})))[_0x1608e7(0x1fa)](_0x4905f0=>{const _0x893461=_0x1608e7;if(this[_0x893461(0x165)](),_0x4905f0){const {skeleton:_0x3ad240,cursors:_0x3dd4d6}=_0x4905f0;this[_0x893461(0x3bb)](_0x3ad240,_0x3dd4d6);}})),this[_0x1608e7(0x3ba)](),this[_0x1608e7(0x1b5)]();}[_0x16f785(0x3bb)](_0x19152f,_0x24a59a){const _0x56c1df=_0x16f785,{scene:_0x2674bf,mainComponent:_0x2c9ee2}=this[_0x56c1df(0x31a)],_0x3e0dcf=_0x24a59a[_0x56c1df(0x1a1)](_0x508b10=>new De(_0x508b10,_0x2674bf,_0x19152f,_0x2c9ee2));this['_cursorShapes']=_0x3e0dcf,this[_0x56c1df(0x38a)]=_0x24a59a;}['_refreshCollabCursors'](){const _0x4e0900=_0x16f785;this[_0x4e0900(0x165)]();const {scene:_0xc58f03,mainComponent:_0x19c8ca}=this[_0x4e0900(0x31a)],_0x52cb4b=this['_docSkeletonManagerService'][_0x4e0900(0x180)](),_0x49a6bd=this[_0x4e0900(0x38a)][_0x4e0900(0x1a1)](_0x108d27=>new De(_0x108d27,_0xc58f03,_0x52cb4b,_0x19c8ca));this['_cursorShapes']=_0x49a6bd;}['_removeCollabCursors'](){const _0x1ec0ed=_0x16f785;this['_cursorShapes'][_0x1ec0ed(0x35e)](_0x398edb=>_0x398edb[_0x1ec0ed(0x2c5)]()),this[_0x1ec0ed(0x1dc)]=[];}[_0x16f785(0x1b5)](){const _0xb4b42=_0x16f785,_0x2c4eec=[b['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0xb4b42(0x333)][_0xb4b42(0x34f)](_0x357fb9=>{const _0x479664=_0xb4b42;_0x2c4eec[_0x479664(0x178)](_0x357fb9['id'])&&_0x357fb9[_0x479664(0x1d5)][_0x479664(0x1b8)]===this['_context'][_0x479664(0x1b8)]&&this[_0x479664(0x2bc)]();}));}[_0x16f785(0x3ba)](){const _0x33510b=_0x16f785;this[_0x33510b(0x3b2)](a['fromEventSubject'](this[_0x33510b(0x31a)][_0x33510b(0x2e8)][_0x33510b(0x215)])['pipe']($['filter'](_0x20203f=>_0x20203f['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x33510b(0x183)]),$[_0x33510b(0x15a)](0x10))['subscribe'](()=>{const _0x73b815=_0x33510b;this[_0x73b815(0x2bc)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x16f785(0x17a)])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x16f785(0x2c4)](a[_0x16f785(0x39c)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x16f785(0x31e)]{constructor(_0x5596f8,_0x5113dc){const _0x25fa1e=_0x16f785;super(_0x5596f8,_0x5113dc),h(this,_0x25fa1e(0x2c0)),h(this,_0x25fa1e(0x264),!0x1),h(this,_0x25fa1e(0x24b)),h(this,'_name',''),h(this,_0x25fa1e(0x2de),_0x25fa1e(0x357)),h(this,'_backgroundColor'),(_0x5113dc&&this['setShapeProps'](_0x5113dc),this['onPointerEnter$'][_0x25fa1e(0x15d)](()=>this[_0x25fa1e(0x171)]({'hovered':!0x0})),this[_0x25fa1e(0x3bf)][_0x25fa1e(0x15d)](()=>this[_0x25fa1e(0x171)]({'hovered':!0x1})));}[_0x16f785(0x171)](_0x56863c){const _0x43331f=_0x16f785;var _0x55217a,_0xa93e45,_0x39edf3,_0x5467d2,_0x41b220,_0x16c821;this[_0x43331f(0x2c0)]=(_0x55217a=_0x56863c['color'])!=null?_0x55217a:this['_color'],this[_0x43331f(0x264)]=(_0xa93e45=_0x56863c[_0x43331f(0x2cc)])!=null?_0xa93e45:this[_0x43331f(0x264)],this[_0x43331f(0x24b)]=(_0x39edf3=_0x56863c['range'])!=null?_0x39edf3:this[_0x43331f(0x24b)],this[_0x43331f(0x21b)]=(_0x5467d2=_0x56863c[_0x43331f(0x291)])!=null?_0x5467d2:this['_name'],this[_0x43331f(0x2de)]=(_0x41b220=_0x56863c[_0x43331f(0x288)])!=null?_0x41b220:this[_0x43331f(0x2de)],this[_0x43331f(0x1a8)]=(_0x16c821=_0x56863c[_0x43331f(0x24d)])!=null?_0x16c821:this['_backgroundColor'],this['transformByState']({'width':_0x56863c['width'],'height':_0x56863c['height']});}[_0x16f785(0x26b)](_0x2b2684){const _0x1a6d52=_0x16f785,{row:_0x5aa442,column:_0x30cb2a}=_0x2b2684;if(_0x5aa442>=this[_0x1a6d52(0x24b)][_0x1a6d52(0x2a9)]&&_0x5aa442<=this[_0x1a6d52(0x24b)][_0x1a6d52(0x297)]&&_0x30cb2a>=this[_0x1a6d52(0x24b)][_0x1a6d52(0x337)]&&_0x30cb2a<=this[_0x1a6d52(0x24b)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x16f785(0x338)](_0x8afecd){return!0x1;}[_0x16f785(0x236)](_0x17a17d){const _0x536e2b=_0x16f785;p['Rect'][_0x536e2b(0x223)](_0x17a17d,{'width':this[_0x536e2b(0x2b6)],'height':this[_0x536e2b(0x2cb)],'strokeWidth':mt,'stroke':this[_0x536e2b(0x2c0)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x536e2b(0x264)]&&(_0x17a17d['save'](),_0x17a17d[_0x536e2b(0x184)](0x1,0x0,0x0,0x1,this[_0x536e2b(0x2b6)],this[_0x536e2b(0x2de)]==='bottom'?0x0:-0x14),ee[_0x536e2b(0x223)](_0x17a17d,{'text':this[_0x536e2b(0x21b)],'color':this[_0x536e2b(0x2c0)]}),_0x17a17d[_0x536e2b(0x1d9)]());}}var Ct=Object[_0x16f785(0x2a8)],pt=(_0x42b10b,_0x12562d,_0xe82fc6,_0x3c1bfe)=>{for(var _0x222ddf=_0x3c1bfe>0x1?void 0x0:_0x3c1bfe?Ct(_0x12562d,_0xe82fc6):_0x12562d,_0x3a96c6=_0x42b10b['length']-0x1,_0x5757dc;_0x3a96c6>=0x0;_0x3a96c6--)(_0x5757dc=_0x42b10b[_0x3a96c6])&&(_0x222ddf=_0x5757dc(_0x222ddf)||_0x222ddf);return _0x222ddf;},ae=(_0x3f773d,_0x5a8e03)=>(_0x4dd48c,_0x230327)=>_0x5a8e03(_0x4dd48c,_0x230327,_0x3f773d);const bt=0x1389;let ve=class extends a[_0x16f785(0x191)]{constructor(_0x2041f5,_0x4127f3,_0x38507b,_0x21c2f9){const _0x141e33=_0x16f785;super(),h(this,_0x141e33(0x38a),new Set()),h(this,_0x141e33(0x36c),null),(this[_0x141e33(0x31a)]=_0x2041f5,this[_0x141e33(0x256)]=_0x4127f3,this[_0x141e33(0x26c)]=_0x38507b,this[_0x141e33(0x1d0)]=_0x21c2f9,this[_0x141e33(0x39e)]());}[_0x16f785(0x39e)](){const _0x59be53=_0x16f785;this[_0x59be53(0x256)][_0x59be53(0x32b)][_0x59be53(0x1a6)]($[_0x59be53(0x341)](this[_0x59be53(0x332)]),$[_0x59be53(0x232)](_0x287f62=>{const _0x12e147=_0x59be53;if(_0x287f62){const _0x30d418=_0x287f62['sheetId'];return d[_0x12e147(0x33d)](this['_collabCursorController']['getCollabCursors$'](this[_0x12e147(0x31a)][_0x12e147(0x1b8)]),this[_0x12e147(0x1d0)][_0x12e147(0x3a5)])[_0x12e147(0x1a6)]($[_0x12e147(0x1a1)](([_0x1deca4,_0x2beb63])=>{const _0x149663=new Map();return _0x1deca4['forEach']((_0x387de0,_0x2281f4)=>{const _0x3c0d73=_0x2ff8;if(_0x387de0[_0x3c0d73(0x35a)]===_0x30d418){const _0x258217={..._0x387de0};_0x258217[_0x3c0d73(0x3b5)]=this[_0x3c0d73(0x1d0)][_0x3c0d73(0x19f)](_0x387de0['color']),_0x149663['set'](_0x2281f4,_0x258217);}}),{'skeleton':_0x287f62,'cursors':_0x149663};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x59be53(0x1fa)](({skeleton:_0x44163f,cursors:_0xd14108})=>{const _0x889166=_0x59be53;this[_0x889166(0x165)](),_0x44163f&&this[_0x889166(0x3bb)](_0x44163f,_0xd14108);}),this[_0x59be53(0x256)][_0x59be53(0x32b)][_0x59be53(0x1fa)](_0x185a34=>{const _0x36a55a=_0x59be53;if(_0x185a34==null)return;const {skeleton:_0x463c08}=_0x185a34,{scene:_0x5c3834}=this[_0x36a55a(0x31a)];_0x5c3834['onPointerMove$'][_0x36a55a(0x15d)](a[_0x36a55a(0x206)](_0x57c0ce=>{const _0x385cd2=_0x36a55a;var _0x22fabf,_0x3969b7;const {offsetX:_0xf5ceee,offsetY:_0x128c01}=_0x57c0ce,{x:_0x12c387,y:_0x299bfe}=_0x5c3834[_0x385cd2(0x217)](p['Vector2'][_0x385cd2(0x1ee)]([_0xf5ceee,_0x128c01])),{scaleX:_0x5332a6,scaleY:_0x38c4a5}=_0x5c3834[_0x385cd2(0x23b)](),_0x31656d=_0x5c3834[_0x385cd2(0x1cb)](p[_0x385cd2(0x2b8)][_0x385cd2(0x278)]),_0x118555=_0x5c3834[_0x385cd2(0x2d3)](p[_0x385cd2(0x1ef)][_0x385cd2(0x1ee)]([_0x12c387,_0x299bfe]),_0x31656d),_0x471985=_0x463c08[_0x385cd2(0x2df)](_0xf5ceee,_0x128c01,_0x5332a6,_0x38c4a5,_0x118555);((_0x22fabf=this[_0x385cd2(0x36c)])==null?void 0x0:_0x22fabf[_0x385cd2(0x1b1)])===_0x471985[_0x385cd2(0x1b1)]&&((_0x3969b7=this[_0x385cd2(0x36c)])==null?void 0x0:_0x3969b7['row'])===_0x471985[_0x385cd2(0x2ad)]||this[_0x385cd2(0x38a)][_0x385cd2(0x35e)](_0x1833f4=>{const _0x13cd76=_0x385cd2;_0x1833f4[_0x13cd76(0x26b)](_0x471985);});},0x64));});}[_0x16f785(0x3bb)](_0x280243,_0x5de8f7){const _0x479d0d=_0x16f785;var _0x3a559e;const _0x452b53=(_0x3a559e=this[_0x479d0d(0x256)]['getCurrent']())==null?void 0x0:_0x3a559e[_0x479d0d(0x1b9)];if(!_0x452b53)return;const _0x2c4bfa=this['_getSheetObject']();if(!_0x2c4bfa)return;this[_0x479d0d(0x38a)][_0x479d0d(0x35e)](_0x503d8c=>{const _0x1ea071=_0x479d0d;_0x503d8c[_0x1ea071(0x18a)]();});const {scene:_0x2c1ec0}=_0x2c4bfa,_0x23e3ee=Et(Array['from'](_0x5de8f7[_0x479d0d(0x1fd)]()))['map'](_0x5704c3=>{const _0x2a8e18=_0x479d0d,{color:_0x5c9357,range:_0x462f35,name:_0x59e55d,selection:_0x9f0cd8,sheetID:_0x27b826}=_0x5704c3,{startColumn:_0x18b5fe,startRow:_0x1e0215,endColumn:_0x2efb11,endRow:_0x113346}=_0x462f35,_0x26e70c=X[_0x2a8e18(0x2ef)](_0x1e0215,_0x18b5fe,_0x2c1ec0,_0x452b53),_0x3c8e7f=X[_0x2a8e18(0x2ef)](_0x113346,_0x2efb11,_0x2c1ec0,_0x452b53),{columnHeaderHeightAndMarginTop:_0x554676}=_0x452b53,{startX:_0x209df0,startY:_0x265c42}=_0x26e70c,{endX:_0x5dfb22,endY:_0x182d1e}=_0x3c8e7f,_0xcce6e1=_0x5dfb22-_0x209df0,_0x527079=_0x182d1e-_0x265c42,_0x1fe9f3={'labelPosition':_0x265c42-_0x554676>=K?_0x2a8e18(0x357):_0x2a8e18(0x235),'sheetID':_0x27b826,'range':_0x462f35,'color':_0x5c9357,'name':_0x59e55d,'selection':_0x9f0cd8,'left':_0x209df0,'top':_0x265c42,'width':_0xcce6e1,'height':_0x527079,'evented':!0x1,'zIndex':bt};return new Ae(_0x59e55d,_0x1fe9f3);});_0x2c1ec0[_0x479d0d(0x1ab)](_0x23e3ee,gt),this[_0x479d0d(0x38a)]=new Set(_0x23e3ee);}['_removeCollabCursors'](){const _0x10a056=_0x16f785;var _0x7edb66;(_0x7edb66=this[_0x10a056(0x38a)])==null||_0x7edb66[_0x10a056(0x35e)](_0xc05268=>_0xc05268['dispose']());}['_getSheetObject'](){const _0x20e8aa=_0x16f785;return X[_0x20e8aa(0x1a7)](this[_0x20e8aa(0x31a)]['unit'],this[_0x20e8aa(0x31a)]);}};ve=pt([ae(0x1,a[_0x16f785(0x2c4)](X[_0x16f785(0x13d)])),ae(0x2,a[_0x16f785(0x2c4)](x)),ae(0x3,a[_0x16f785(0x2c4)](a[_0x16f785(0x39c)]))],ve);function Et(_0xa86d7){const _0x37c3c6=_0x16f785,_0x24d99c=new Map();return _0xa86d7['forEach'](_0x404a9a=>{const _0x3110de=_0x2ff8;if(_0x24d99c[_0x3110de(0x13f)](_0x404a9a[_0x3110de(0x14b)])){const _0x4f96d9=_0x24d99c[_0x3110de(0x22c)](_0x404a9a['selection']);_0x4f96d9[_0x3110de(0x291)]+=',\x20'+_0x404a9a[_0x3110de(0x291)];}else _0x24d99c[_0x3110de(0x2fc)](_0x404a9a['selection'],_0x404a9a);}),Array['from'](_0x24d99c[_0x37c3c6(0x1fd)]());}var E=function(){const _0x11562c=_0x16f785;return E=Object[_0x11562c(0x38c)]||function(_0x466414){const _0x52707c=_0x11562c;for(var _0x2a3fde,_0x4b3d8d=0x1,_0x21c706=arguments[_0x52707c(0x378)];_0x4b3d8d<_0x21c706;_0x4b3d8d++){_0x2a3fde=arguments[_0x4b3d8d];for(var _0x38791c in _0x2a3fde)Object[_0x52707c(0x2d2)][_0x52707c(0x309)][_0x52707c(0x387)](_0x2a3fde,_0x38791c)&&(_0x466414[_0x38791c]=_0x2a3fde[_0x38791c]);}return _0x466414;},E[_0x11562c(0x2a6)](this,arguments);},Tt=function(_0x24ad75,_0x548715){const _0x52abb5=_0x16f785;var _0x2bdf03={};for(var _0x47a47d in _0x24ad75)Object['prototype'][_0x52abb5(0x309)][_0x52abb5(0x387)](_0x24ad75,_0x47a47d)&&_0x548715[_0x52abb5(0x23e)](_0x47a47d)<0x0&&(_0x2bdf03[_0x47a47d]=_0x24ad75[_0x47a47d]);if(_0x24ad75!=null&&typeof Object[_0x52abb5(0x25c)]==_0x52abb5(0x1c2)){for(var _0x3af01f=0x0,_0x47a47d=Object[_0x52abb5(0x25c)](_0x24ad75);_0x3af01f<_0x47a47d['length'];_0x3af01f++)_0x548715[_0x52abb5(0x23e)](_0x47a47d[_0x3af01f])<0x0&&Object[_0x52abb5(0x2d2)]['propertyIsEnumerable'][_0x52abb5(0x387)](_0x24ad75,_0x47a47d[_0x3af01f])&&(_0x2bdf03[_0x47a47d[_0x3af01f]]=_0x24ad75[_0x47a47d[_0x3af01f]]);}return _0x2bdf03;},pe=M[_0x16f785(0x334)](function(_0x4bb377,_0x2b8f36){const _0x6b5138=_0x16f785;var _0x34c407=_0x4bb377['icon'],_0x5b1505=_0x4bb377['id'],_0x415d7a=_0x4bb377['className'],_0x41255e=_0x4bb377['extend'],_0x5c0d10=Tt(_0x4bb377,[_0x6b5138(0x233),'id','className','extend']),_0x1c1e54=_0x6b5138(0x252)[_0x6b5138(0x261)](_0x5b1505,'\x20')[_0x6b5138(0x261)](_0x415d7a||'')[_0x6b5138(0x28e)](),_0x4d9cb5=M[_0x6b5138(0x2d6)]('_'['concat'](Dt()));return we(_0x34c407,''['concat'](_0x5b1505),{'defIds':_0x34c407[_0x6b5138(0x156)],'idSuffix':_0x4d9cb5['current']},E({'ref':_0x2b8f36,'className':_0x1c1e54},_0x5c0d10),_0x41255e);});function we(_0x914626,_0x248e1b,_0x345832,_0x170520,_0x5e1290){const _0x151160=_0x16f785;return M[_0x151160(0x2a0)](_0x914626[_0x151160(0x1cf)],E(E({'key':_0x248e1b},Ot(_0x914626,_0x345832,_0x5e1290)),_0x170520),(Rt(_0x914626,_0x345832)[_0x151160(0x219)]||[])['map'](function(_0x73257f,_0x30d4ae){const _0x8153e3=_0x151160;return we(_0x73257f,''['concat'](_0x248e1b,'-')[_0x8153e3(0x261)](_0x914626[_0x8153e3(0x1cf)],'-')['concat'](_0x30d4ae),_0x345832,void 0x0,_0x5e1290);}));}function Ot(_0x41b033,_0x4f1ef1,_0x580973){const _0x36259a=_0x16f785;var _0x4103bb=E({},_0x41b033[_0x36259a(0x27f)]);_0x580973!=null&&_0x580973['colorChannel1']&&_0x4103bb[_0x36259a(0x352)]===_0x36259a(0x2ec)&&(_0x4103bb['fill']=_0x580973[_0x36259a(0x2ec)]),_0x41b033[_0x36259a(0x1cf)]===_0x36259a(0x1ca)&&_0x4103bb['id']&&(_0x4103bb['id']=_0x4103bb['id']+_0x4f1ef1[_0x36259a(0x164)]),Object['entries'](_0x4103bb)[_0x36259a(0x35e)](function(_0x585da){const _0x2ae1bb=_0x36259a;var _0x4de4a3=_0x585da[0x0],_0x267ab3=_0x585da[0x1];_0x4de4a3===_0x2ae1bb(0x1ca)&&typeof _0x267ab3=='string'&&(_0x4103bb[_0x4de4a3]=_0x267ab3['replace'](/url\(#(.*)\)/,'url(#$1'[_0x2ae1bb(0x261)](_0x4f1ef1[_0x2ae1bb(0x164)],')')));});var _0x2455f7=_0x4f1ef1[_0x36259a(0x156)];return!_0x2455f7||_0x2455f7[_0x36259a(0x378)]===0x0||(_0x41b033['tag']==='use'&&_0x4103bb[_0x36259a(0x152)]&&(_0x4103bb[_0x36259a(0x152)]=_0x4103bb['xlink:href']+_0x4f1ef1[_0x36259a(0x164)]),Object['entries'](_0x4103bb)[_0x36259a(0x35e)](function(_0x2c7eaf){const _0x545728=_0x36259a;var _0x1f08e2=_0x2c7eaf[0x0],_0x2ae1c5=_0x2c7eaf[0x1];typeof _0x2ae1c5=='string'&&(_0x4103bb[_0x1f08e2]=_0x2ae1c5[_0x545728(0x255)](/url\(#(.*)\)/,_0x545728(0x25a)[_0x545728(0x261)](_0x4f1ef1[_0x545728(0x164)],')')));})),_0x4103bb;}function Rt(_0x4de4fc,_0x2b944c){const _0x31c3c9=_0x16f785;var _0x169653,_0x11e2fa=_0x2b944c['defIds'];return!_0x11e2fa||_0x11e2fa[_0x31c3c9(0x378)]===0x0?_0x4de4fc:_0x4de4fc['tag']===_0x31c3c9(0x16f)&&(!((_0x169653=_0x4de4fc[_0x31c3c9(0x219)])===null||_0x169653===void 0x0)&&_0x169653['length'])?E(E({},_0x4de4fc),{'children':_0x4de4fc[_0x31c3c9(0x219)][_0x31c3c9(0x1a1)](function(_0x5cc750){const _0x41d0cc=_0x31c3c9;return typeof _0x5cc750[_0x41d0cc(0x27f)]['id']=='string'&&_0x11e2fa&&_0x11e2fa[_0x41d0cc(0x23e)](_0x5cc750[_0x41d0cc(0x27f)]['id'])>-0x1?E(E({},_0x5cc750),{'attrs':E(E({},_0x5cc750[_0x41d0cc(0x27f)]),{'id':_0x5cc750[_0x41d0cc(0x27f)]['id']+_0x2b944c['idSuffix']})}):_0x5cc750;})}):_0x4de4fc;}function Dt(){const _0x4ce866=_0x16f785;return Math[_0x4ce866(0x3c4)]()[_0x4ce866(0x23a)](0x24)[_0x4ce866(0x244)](0x2,0x8);}function _0x272c(){const _0x16e408=['YUUMI_ALL_TABLES_IS_INVALID','_initStatusListener','set','addObject','DocIMEInputManagerService','_univerInstanceService','save','CHANGESET_REVISION_CONFILICT','redoState','split','_refRangeService','runRefRangeMutations','getMember','invokeId','COLORS','hasOwnProperty','UniverCollaborationClientPlugin','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','deepClone','textRanges','IDocClipboardService','serializeRangeWithSheet','SNAPSHOT_INVALID_SNAPSHOT','UNDEFINED','startsWith','_scene','getUnhiddenWorksheets','UPDATE_CURSOR','handleDeleteRangeMoveUp','addHandlerCallback','_online','connectInjector','_context','transformSelections','SetTextSelectionsOperation','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Shape','permission.content','Tools','_removeClearOtherTimer','_hover','_revisionService','INVALID_INVITE_CODE','ENSURE_SNAPSHOT_EXECUTION','evenodd','_notificationService','jiqing.500','getUniverSheetInstance','toStringTag','currentSkeleton$','NOT_COLLAB','APPLY_NON_SEQUENTIAL_REVISION','CollaborationEvent','getUndoRedoMutationParamsCache','string','setActiveRange','dispose$','_commandService','forwardRef','DocSelectionManagerService','debounceTime','startColumn','triggerDblclick','collabStatus.offline','_handleEvent','mergeOverrideWithDependencies','_entityInit$','combineLatest','11582QwZhXL','LICENSE_IMPORT_SIZE_EXCEEDED','getDocRanges','takeUntil','@univerjs/network','Tooltip','currentColor','error','_transformUndoRedoStack','lineTo','uni.network.url-service','getItem','INTERNAL_ERROR','send','Module','#fff','off-line-single_clip0_910_343','onCommandExecuted','setItem','[CollaborationDataLoaderController]','fill','saveImage','DOC_RANGE_TYPE','_toggleOffline','_anchorDot','top','OffLineSingle','ColorKit','sheetID','handleInsertCol','_handleJoinEvent','_cachedData','forEach','symbol','roomMembers$','YUUMI_URL_COL_OUT_OF_RANGE','transformIMECache','getRangePointData','source','_handleHeartbeatEvent','_collabSessionService','_messageService','shareReplay','isActive','onRendered','origin','_lastPointer','handleInsertRangeMoveDown','RevisionService','generateRandomId','IBeforeCloseService','TOO_MANY_REQUESTS','CLOSE_ROOM','text','body','RegularPolygon','_setupSubUnitSync','getStateCache','length','_transformService','setTimeout','_cursorInfo$','RemoteUniscriptService','min','add','getColor','then','InsertRangeMoveDownCommandId','PERMISSION_DENIED','collabStatus.notCollab','_send','black','YUUMI_SUBSCRIPTION_NOT_FOUND','call','_status$','react/jsx-runtime','_cursors','path','assign','APPLY_REVISION_CONFILICT','_shapes','href','9419568HwpvSL','_docStateChangeManagerService','YUUMI_AI_RUN_FAILED','_registerRenderDependencies','blue.400','getUnitStatus$','_setupBeforeClosingHandler','setParam','unshift','createInstance','DocStateChangeManagerService','Warning','ThemeService','DeleteRangeMoveUpCommandId','_init','toDisposable','_scheduleSaving','@univerjs/engine-formula','CollaborationController','transformRemoteChangeset','range','currentTheme$','_selfUnitIDs','EMAIL_HAS_BEEN_BOUND','getCollabCursors$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_colorAssignService','getParam','MessageType','SheetCollabCursorShape','0\x200\x2016\x2016','CollaborationDataLoaderController','transformMutation','SYNCED','disposeWithMe','getOffsetConfig','_updateURLWithCurrentState','color','show','IUniverInstanceService','SheetsSelectionsService','_getAnchorBounding','_initResize','_updateCollabCursors','_beforeCloseService','#FFF','_anchor','onPointerLeave$','BrowserCollaborationSocketService','DocCollaborationEntity','docStateChange$','_drawRectRange','random','_urlService','SheetSkeletonManagerService','useCallback','has','_updateLocalCursor','collabStatus.fetchMiss','Plugin','_eventUnsubscribe','LocaleService','handleIRemoveRow','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getActiveRange','contains','_docSkeletonManagerService','pluginName','selection','transformMutationsWithChangeset','_clearOtherTimers','JOIN_ROOM_FAILED','getUnitId','IImageIoService','HEADER_MENU','xlink:href','IRemoteInstanceService','registerRefRange','56iDHajM','defIds','enableLocalCache','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','useDependency','throttleTime','PENDING','whenReady','subscribeEvent','_unitOnClients','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MemberService','type','memberID','clearTimeout','idSuffix','_removeCollabCursors','roomMembers','unitID','handleInsertRow','...','collaboration-client-ui.config','_ensureSubject','runOnServer','InsertRangeMoveRightCommandId','getTypeOfUnitDisposed$','defs','WECHAT_HAS_BEEN_BOUND','setShapeProps','_textBubble','setInterval','RichTextEditingMutation','_handleHover','DependentOn','YUUMI_UNABLE_LOAD_URL','includes','ILogService','DocSkeletonManagerService','collabCursorState$','CollaborationUIEventService','OFFLINE','2013085CeLRsw','hide','getSkeleton','fillStyle','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','resize','transform','_syncEditingCollabCursorService','getSheetId','stringify','CONFLICT','cursorInfo','makeDirty','setStateCache','CollaborationSocketService','svg','size','rgba(255,\x20255,\x20255,\x200.01)','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','RxDisposable','div','IRenderManagerService','isTransformMutationFailure','flatMap','_disabled','subunit','SetSelectionsOperation','ICommandService','focused$','INVALID_ARGUMENT','parse','IUIPartsService','_transformHistoryAndStateStack','getColorFromTheme','filter','map','deserializeRangeWithSheet','saveOfflineData','@univerjs/design','SessionStatus','pipe','getSheetObject','_backgroundColor','round','ONLINE','addObjects','1em','_docTransformStateCacheService','getCurrentSelections','requireSession','runId','column','executeCommand','_scheduleHeartbeat','_injector','_initCommandExecutedListener','_docTransformIMECacheService','CollaborationStatus','unitId','skeleton','mutations','entityInit$','_docSkeleton','m2Prime','delete','LICENSE_DISTRO_REJECTED','getSheetBySheetId','all','function','next','collabStatus.synced','arc','CONNECTOR_DATA_TOO_LARGE','Disposable','addEventListener','_hideTimer','mask','getViewport','WebSocketService','_createSocketURL','4eCbKtV','tag','_themeService','_memberService','TEXT_RANGE_LAYER_INDEX','sessionTicket','editingUnit','params','onLocalMutation','_updateSubUnitFromURLParams','replaceDocRanges','restore','purple.300','getMemberID','_cursorShapes','USERS_LEAVE','UNRECOGNIZED','0\x200\x2017\x2016','_renderManagerService','INVITE_CODE_ALREADY_BOUND','UNIVER_DOC','UnitStatus','location','4483339poAmvi','_collaborationUIEventService','DisposableCollection','UNAUTHENTICATED','distinctUntilChanged','APPLY_PERMISSION_DENIED','CollaborationUIEventId','6rxQosW','ITransformService','FromArray','Vector2','Subject','_getSessionTicket','off-line-single','rxjs/operators','measureText','displayName','red.300','_handleLeaveEvent','newValue','findNodePositionByCharIndex','subscribe','_registerDependencies','_instanceService','values','APPLY_DUPLICATED','_toggleOnline','LOCAL_CACHE_INTERVAL_KEY','ISnapshotServerService','session.will-retry','_scheduleClearOtherTimer','search','PY_RUNTIME_SCRIPT_ERROR','debounce','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','session.connection-failed','createSocket','getFocusedUnit','undoState','_session','USER_NOT_INVITED_CODE','none','_startSheetCollabCursor','jsxs','90lzRbxl','Error','disposeUnit','data','onTransformChange$','collaboration.closeRoom','getRelativeToViewportCoord','ALREADY_EXISTS','children','isArray','_name','DEFAULT_WS_SESSION_TICKET_URL','setAlpha','getRenderById','AWAITING_WITH_PENDING','sessionStatus$','some','InsertRowCommandId','drawWith','rxjs','NodePositionConvertToRectRange','Unknown\x20user','setUndoRedoMutationParamsCache','getLocalCacheKey','BehaviorSubject','closePath','_saveTaskMap','get','_onCursorUpdate','YUUMI_NO_CUBOID_FOR_QUESTION','clipPath','transformStateCache','IMessageService','switchMap','icon','subUnitId','bottom','_draw','updateOfflineData','handleIRemoveCol','_config','toString','getAncestorScale','NOT_FOUND','LICENSE_MAX_UNITS_EXCEEDED','indexOf','createIdentifier','defineProperty','Injector','onPointerEnter$','disableLocalCache','substring','_colorIndex','searchParams','_docTransformSelectionsService','mapTo','@univerjs/rpc','_drawAnchor','_range','storage','backgroundColor','UniverIcon','isEditing','max','actions','univerjs-icon\x20univerjs-icon-','UNIVER_SHEET','loadUnit','replace','_sheetSkeletonManagerService','asObservable','UniverCollaborationClientUIPlugin','on-line-single','url(#$1','/run/','getOwnPropertySymbols','_unitStatus','m1Prime','push','IConfigService','concat','getConfig','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_hovered','_getSaveTimeout','complete','@univerjs/docs','jsx','INVITE_CODE_REQUIRED','INVITE_CODE_HAS_BEEN_UES','onMouseMove','_collabCursorController','_startDocCollabCursor','fillText','NodePositionConvertToCursor','wsSessionTicketUrl','collab-rect-range-','toRgbString','event$','EffectRefRangId','doc.mutation.rich-text-editing','urlChange$','_initEntityListener','VIEW_MAIN','ranges','_onRefRangeChange','YUUMI_RATE_OVER_LIMIT','moveTo','url(#off-line-single_clip0_910_343)','merge','attrs','_collaborationController','_logService','fillRule','debug','_saveCache','CollaborationStatusDisplay','_assignedColors','clearInterval','labelPosition','_roomMembers$','loadOfflineData','_document','Rectangle','override','trim','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_localeService','name','MoveRangeCommandId','InsertColCommandId','code','_configService','APPLY_REJECT','endRow','INotificationService','_initStatusComponent','Rect','from','WebBrowserSingleActiveUnitService','onStarting','MOBILE_HAS_BEEN_BOUND','[RemoteUniscriptService]:\x20no\x20focused\x20unit','createElement','with','_collabCursorState$','assignAColorForMemberID','783220QifWfL','UniverInstanceType','apply','_getScale','getOwnPropertyDescriptor','startRow','_onCursorDelete','getValue','_id','row','_uiPartsService','_heartbeatTimer','registerComponent','ILocalCacheService','registerRenderModule','Workbook','_drawTextRange','_entities','width','SetWorksheetActivateCommand','SHEET_VIEWPORT_KEY','YUUMI_ASYNCIO_CANCELLED','exhaustSavingTask','Failed','_refreshCollabCursors','collab-text-anchor-','isTransformMutationsWithChangesetSuccess','RefRangeService','_color','ISocketService','history','_doCreateSocket','Inject','dispose','handleDeleteRangeMoveLeft','RemoveRowCommandId','_localStorageService','_dataLoaderService','M0\x200H16V16H0z','height','hovered','fromEvent','COMPLETION_FINISHED','pushState','MUTATION','registerDependencies','prototype','getVpScrollXYInfoByPosToVp','DataLoaderService','_docSyncEditingCollabCursorService','useRef','OTHER_CLIENTS_EDITING','_render','LICENSE_EXPORT_SIZE_EXCEEDED','DeleteRangeMoveLeftCommandId','LOGIN_FAILED','HTTPService','207039JEKtZA','_labelPosition','getCellPositionByOffset','_transformPreviousActiveRange','_initDependencies','Optional','_initEvent','init','_httpService','@univerjs/docs-ui','RemoveColCommandId','engine','_cursor','getCollabEntity$','TEXT','colorChannel1','OnLineSingle','unsubscribe','getCoordByCell','handleInsertRangeMoveRight','replaceState','_localCacheService','handleMoveRange','getActiveSheet','DesktopCollaborationStatusDisplayController','eventID','13846063iuGbQZ','SNAPSHOT_HAS_BEEN_REMOVED','cursorInfo$'];_0x272c=function(){return _0x16e408;};return _0x272c();}pe['displayName']=_0x16f785(0x24e);var Ut={'tag':_0x16f785(0x18d),'attrs':{'fill':_0x16f785(0x20e),'viewBox':_0x16f785(0x3ae),'width':'1em','height':_0x16f785(0x1ac)},'children':[{'tag':'g','attrs':{'clipPath':_0x16f785(0x27d)},'children':[{'tag':_0x16f785(0x38b),'attrs':{'stroke':_0x16f785(0x344),'d':_0x16f785(0x263),'strokeLinecap':_0x16f785(0x1a9),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x16f785(0x16f),'attrs':{},'children':[{'tag':_0x16f785(0x22f),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x16f785(0x38b),'attrs':{'fill':_0x16f785(0x34d),'d':_0x16f785(0x2ca)}}]}]}],'defIds':[_0x16f785(0x34e)]},ye=M[_0x16f785(0x334)](function(_0x530a03,_0x46356c){const _0x5c8bdb=_0x16f785;return M['createElement'](pe,Object[_0x5c8bdb(0x38c)]({},_0x530a03,{'id':_0x5c8bdb(0x1f2),'ref':_0x46356c,'icon':Ut}));});ye[_0x16f785(0x1f5)]=_0x16f785(0x358);function _0x2ff8(_0x3f369e,_0x2f0bb4){const _0x272cec=_0x272c();return _0x2ff8=function(_0x2ff8f8,_0x595d44){_0x2ff8f8=_0x2ff8f8-0x13d;let _0x3d13d8=_0x272cec[_0x2ff8f8];return _0x3d13d8;},_0x2ff8(_0x3f369e,_0x2f0bb4);}var Nt={'tag':_0x16f785(0x18d),'attrs':{'fill':_0x16f785(0x20e),'viewBox':_0x16f785(0x1df),'width':'1em','height':_0x16f785(0x1ac)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x16f785(0x344),'d':_0x16f785(0x190),'strokeLinecap':_0x16f785(0x1a9),'strokeLinejoin':_0x16f785(0x1a9),'strokeWidth':1.2}}]},{'tag':_0x16f785(0x16f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x16f785(0x38b),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0x16f785(0x334)](function(_0x4c8152,_0x7e9b65){const _0x42fdd6=_0x16f785;return M[_0x42fdd6(0x2a0)](pe,Object[_0x42fdd6(0x38c)]({},_0x4c8152,{'id':_0x42fdd6(0x259),'ref':_0x7e9b65,'icon':Nt}));});$e['displayName']=_0x16f785(0x2ed);function Mt(_0x1ac205){const _0x127484=_0x16f785;switch(_0x1ac205){case u[_0x127484(0x1b7)]['OFFLINE']:return _0x127484(0x339);case u[_0x127484(0x1b7)][_0x127484(0x188)]:return'collabStatus.conflict';case u[_0x127484(0x1b7)]['FETCH_MISS']:return _0x127484(0x141);case u[_0x127484(0x1b7)][_0x127484(0x32c)]:return _0x127484(0x383);case u['CollaborationStatus']['AWAITING']:case u[_0x127484(0x1b7)][_0x127484(0x21f)]:return'collabStatus.syncing';case u[_0x127484(0x1b7)][_0x127484(0x3b1)]:case u[_0x127484(0x1b7)][_0x127484(0x15b)]:return _0x127484(0x1c4);}}function xe(_0x58f04c){const _0x1980dd=_0x16f785,{status$:_0x5eca79}=_0x58f04c,_0x368b44=T['useObservable'](_0x5eca79,u[_0x1980dd(0x1b7)][_0x1980dd(0x32c)]),_0x2c80b9=T['useDependency'](a[_0x1980dd(0x144)]),_0x42565e=T[_0x1980dd(0x159)](u['CollaborationSessionService']),_0x3bc26b=_0x368b44!==u['CollaborationStatus'][_0x1980dd(0x17d)],_0x1f2038=_0x2c80b9['t'](Mt(_0x368b44)),_0x273946=_0x3bc26b?P[_0x1980dd(0x268)]($e,{}):P['jsx'](ye,{}),_0x290c0b=M[_0x1980dd(0x13e)](()=>{_0x3bc26b||_0x42565e['reconnect']();},[_0x3bc26b,_0x42565e]);function _0x516723(){const _0x28dad2=_0x1980dd;return P[_0x28dad2(0x210)](_0x28dad2(0x192),{'className':'univer-flex\x20univer-items-center','onClick':_0x290c0b,'children':[P['jsx'](_0x28dad2(0x192),{'className':D['clsx']('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x3bc26b,'univer-text-red-500':!_0x3bc26b}),'children':_0x273946}),P[_0x28dad2(0x268)](_0x28dad2(0x192),{'className':_0x28dad2(0x15f),'children':_0x1f2038})]});}return _0x3bc26b?_0x516723():P['jsx'](D[_0x1980dd(0x343)],{'title':_0x2c80b9['t']('collab-client.tooltip.reconnect'),'children':_0x516723()});}var Lt=Object[_0x16f785(0x2a8)],Pt=(_0x1cef65,_0x540e7e,_0x2d56bf,_0x15c797)=>{const _0x1f82d2=_0x16f785;for(var _0x575c88=_0x15c797>0x1?void 0x0:_0x15c797?Lt(_0x540e7e,_0x2d56bf):_0x540e7e,_0x4b5e7d=_0x1cef65[_0x1f82d2(0x378)]-0x1,_0x29d0f4;_0x4b5e7d>=0x0;_0x4b5e7d--)(_0x29d0f4=_0x1cef65[_0x4b5e7d])&&(_0x575c88=_0x29d0f4(_0x575c88)||_0x575c88);return _0x575c88;},V=(_0x492d9c,_0x17e91f)=>(_0x2c56ae,_0x578a44)=>_0x17e91f(_0x2c56ae,_0x578a44,_0x492d9c);exports[_0x16f785(0x2f5)]=class extends a['Disposable']{constructor(_0x5033d0,_0x3dc69b,_0x290935,_0x389033){const _0x5b8447=_0x16f785;super(),h(this,'_status$',new d[(_0x5b8447(0x229))](u[_0x5b8447(0x1b7)][_0x5b8447(0x32c)])),(this[_0x5b8447(0x2ff)]=_0x5033d0,this[_0x5b8447(0x1b4)]=_0x3dc69b,this['_collaborationController']=_0x290935,this['_uiPartsService']=_0x389033,this[_0x5b8447(0x299)](),this[_0x5b8447(0x2fb)]());}['_initStatusListener'](){const _0xcd6957=_0x16f785;this[_0xcd6957(0x3b2)](this['_univerInstanceService'][_0xcd6957(0x19a)][_0xcd6957(0x1a6)](d[_0xcd6957(0x232)](()=>{const _0x49001b=_0xcd6957,_0xcc36e4=this['_univerInstanceService'][_0x49001b(0x20a)]();return _0xcc36e4?this[_0x49001b(0x280)][_0x49001b(0x2ea)](_0xcc36e4['getUnitId']()):d['of'](null);}),d[_0xcd6957(0x232)](_0x55c97c=>_0x55c97c?_0x55c97c['status$']:d['of'](u[_0xcd6957(0x1b7)]['NOT_COLLAB'])))['subscribe'](_0x153cb3=>{const _0x4bdfce=_0xcd6957;this[_0x4bdfce(0x388)][_0x4bdfce(0x1c3)](_0x153cb3);}));}['_initStatusComponent'](){const _0x5f5bc1=_0x16f785;this['disposeWithMe'](this[_0x5f5bc1(0x2ae)][_0x5f5bc1(0x2b0)](T['BuiltInUIPart'][_0x5f5bc1(0x151)],()=>T[_0x5f5bc1(0x319)](At({'status$':this[_0x5f5bc1(0x388)][_0x5f5bc1(0x257)]()}),this[_0x5f5bc1(0x1b4)])));}},exports[_0x16f785(0x2f5)]=Pt([V(0x0,a[_0x16f785(0x3b7)]),V(0x1,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),V(0x2,a[_0x16f785(0x2c4)](u[_0x16f785(0x3a2)])),V(0x3,T[_0x16f785(0x19d)])],exports[_0x16f785(0x2f5)]);function At(_0xcceb11){const {status$:_0x14a6b1}=_0xcceb11;return function(){return P['jsx'](xe,{'status$':_0x14a6b1});};}var wt=Object[_0x16f785(0x2a8)],yt=(_0x26f6a3,_0x19a31b,_0x5d74c3,_0x130c07)=>{const _0x442479=_0x16f785;for(var _0x2c7899=_0x130c07>0x1?void 0x0:_0x130c07?wt(_0x19a31b,_0x5d74c3):_0x19a31b,_0x3c268b=_0x26f6a3[_0x442479(0x378)]-0x1,_0x2c1c83;_0x3c268b>=0x0;_0x3c268b--)(_0x2c1c83=_0x26f6a3[_0x3c268b])&&(_0x2c7899=_0x2c1c83(_0x2c7899)||_0x2c7899);return _0x2c7899;},y=(_0x36b4bd,_0x16ccd8)=>(_0x23295c,_0x573c31)=>_0x16ccd8(_0x23295c,_0x573c31,_0x36b4bd);let q=class extends a[_0x16f785(0x1c7)]{constructor(_0x2deb9d,_0x418b00,_0x5f23d6,_0x204ec1,_0x3045c1,_0x5ed711){const _0x405cc7=_0x16f785;super(),this[_0x405cc7(0x3bc)]=_0x2deb9d,this[_0x405cc7(0x2f2)]=_0x418b00,this[_0x405cc7(0x1e6)]=_0x5f23d6,this['_messageService']=_0x204ec1,this[_0x405cc7(0x327)]=_0x3045c1,this['_localeService']=_0x5ed711,this[_0x405cc7(0x396)](),this[_0x405cc7(0x2e3)]();}[_0x16f785(0x396)](){const _0xf6b6=_0x16f785;this[_0xf6b6(0x3b2)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x430325=_0xf6b6;if(this[_0x430325(0x2f2)]['saveTaskMap'][_0x430325(0x18e)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x16f785(0x2e3)](){const _0xeeaa34=_0x16f785;this['disposeWithMe'](this[_0xeeaa34(0x1e6)][_0xeeaa34(0x273)]['subscribe'](_0x1e74b9=>{const _0x19c228=_0xeeaa34;_0x1e74b9['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x19c228(0x367)][_0x19c228(0x3b6)]({'type':D['MessageType']['Warning'],'content':this[_0x19c228(0x290)]['t']('collaboration.single-unit.warning')}),_0x1e74b9['id']===u[_0x19c228(0x1eb)][_0x19c228(0x372)]&&this[_0x19c228(0x367)]['show']({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x19c228(0x216))}),_0x1e74b9['id']===u[_0x19c228(0x1eb)]['PERMISSION_DENIED']&&this[_0x19c228(0x327)]['show']({'title':this[_0x19c228(0x290)]['t']('permission.title'),'content':this[_0x19c228(0x290)]['t'](_0x19c228(0x31f)),'type':_0x19c228(0x345),'duration':0x0}),_0x1e74b9['id']===u[_0x19c228(0x1eb)][_0x19c228(0x188)]&&this['_messageService'][_0x19c228(0x3b6)]({'type':D[_0x19c228(0x3ac)][_0x19c228(0x212)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x1e74b9[_0x19c228(0x214)]+')'}),_0x1e74b9['id']===u['CollaborationUIEventId'][_0x19c228(0x14e)]&&this[_0x19c228(0x367)][_0x19c228(0x3b6)]({'type':D[_0x19c228(0x3ac)][_0x19c228(0x39b)],'content':this[_0x19c228(0x290)]['t'](_0x1e74b9[_0x19c228(0x214)]||'')}),_0x1e74b9['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x19c228(0x367)]['show']({'type':D[_0x19c228(0x3ac)]['Warning'],'content':this[_0x19c228(0x290)]['t'](_0x19c228(0x202))}),_0x1e74b9['id']===u[_0x19c228(0x1eb)]['SOCKET_FAILED']&&this[_0x19c228(0x367)][_0x19c228(0x3b6)]({'type':D[_0x19c228(0x3ac)][_0x19c228(0x212)],'content':this['_localeService']['t'](_0x19c228(0x208))}),_0x1e74b9['id']===u[_0x19c228(0x1eb)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x19c228(0x367)][_0x19c228(0x3b6)]({'type':D[_0x19c228(0x3ac)]['Error'],'content':this[_0x19c228(0x290)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,T[_0x16f785(0x370)]),y(0x1,u[_0x16f785(0x2b1)]),y(0x2,a[_0x16f785(0x2c4)](u[_0x16f785(0x17c)])),y(0x3,T[_0x16f785(0x231)]),y(0x4,T[_0x16f785(0x298)]),y(0x5,a[_0x16f785(0x2c4)](a[_0x16f785(0x144)]))],q);const $t=_0x16f785(0x16a),Ue={},be=a[_0x16f785(0x23f)](_0x16f785(0x348));var xt=Object[_0x16f785(0x2a8)],jt=(_0x5eb67a,_0x1e87d0,_0x566c5d,_0x2cfa0c)=>{const _0x2eafb8=_0x16f785;for(var _0x1a4ed5=_0x2cfa0c>0x1?void 0x0:_0x2cfa0c?xt(_0x1e87d0,_0x566c5d):_0x1e87d0,_0x16ba6a=_0x5eb67a[_0x2eafb8(0x378)]-0x1,_0x4802d7;_0x16ba6a>=0x0;_0x16ba6a--)(_0x4802d7=_0x5eb67a[_0x16ba6a])&&(_0x1a4ed5=_0x4802d7(_0x1a4ed5)||_0x1a4ed5);return _0x1a4ed5;},H=(_0x43b8a9,_0xba9618)=>(_0xcde2c0,_0x31f0f8)=>_0xba9618(_0xcde2c0,_0x31f0f8,_0x43b8a9);exports[_0x16f785(0x3af)]=class extends a[_0x16f785(0x191)]{constructor(_0x4c8afe,_0x18b9d9,_0x4336f0,_0x2aa1fa,_0x468469){const _0x43d419=_0x16f785;super(),this[_0x43d419(0x3c5)]=_0x4c8afe,this[_0x43d419(0x281)]=_0x18b9d9,this[_0x43d419(0x333)]=_0x4336f0,this[_0x43d419(0x2c9)]=_0x2aa1fa,_0x468469?_0x468469==null||_0x468469[_0x43d419(0x15c)]()[_0x43d419(0x380)](()=>this[_0x43d419(0x39e)]()):(this[_0x43d419(0x281)][_0x43d419(0x283)](_0x43d419(0x351),_0x43d419(0x158)),this['_init']());}async[_0x16f785(0x39e)](){const _0x24d47d=_0x16f785,_0x470195=this['_urlService']['getParam']('unit'),_0x1c5c36=this[_0x24d47d(0x3c5)]['getParam'](_0x24d47d(0x161)),_0x412ee3=this[_0x24d47d(0x3c5)][_0x24d47d(0x3ab)](_0x24d47d(0x197));if(!_0x470195||!_0x1c5c36){this[_0x24d47d(0x281)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x2e7b67=await this[_0x24d47d(0x2c9)][_0x24d47d(0x254)](_0x470195,Number(_0x1c5c36),_0x412ee3);_0x2e7b67&&_0x2e7b67 instanceof a[_0x24d47d(0x2b3)]&&this[_0x24d47d(0x376)](_0x2e7b67);}async[_0x16f785(0x376)](_0x3b9e63){const _0x5d04cf=_0x16f785;await this[_0x5d04cf(0x1d7)](_0x3b9e63),_0x3b9e63['activeSheet$']['pipe'](d[_0x5d04cf(0x341)](this[_0x5d04cf(0x332)]))[_0x5d04cf(0x1fa)](_0x22097c=>{_0x22097c&&this['_updateURLWithCurrentState'](_0x22097c);}),this['_urlService']['urlChange$'][_0x5d04cf(0x1a6)](d[_0x5d04cf(0x341)](this[_0x5d04cf(0x332)]))[_0x5d04cf(0x1fa)](()=>this[_0x5d04cf(0x1d7)](_0x3b9e63));}[_0x16f785(0x3b4)](_0x5e8b6a,_0x28507b=!0x1){const _0x5612f3=_0x16f785,_0x3cd057=this[_0x5612f3(0x3c5)][_0x5612f3(0x3ab)](_0x5612f3(0x197));_0x5e8b6a['getSheetId']()!==_0x3cd057&&this[_0x5612f3(0x3c5)][_0x5612f3(0x397)](_0x5612f3(0x197),_0x5e8b6a[_0x5612f3(0x186)](),_0x28507b);}async[_0x16f785(0x1d7)](_0x34487e){const _0x4a4f78=_0x16f785;var _0xda1429;const _0x5a965e=this[_0x4a4f78(0x3c5)][_0x4a4f78(0x3ab)]('subunit');if(!_0x5a965e||!_0x34487e[_0x4a4f78(0x1c0)](_0x5a965e)){const _0x39535b=_0x34487e[_0x4a4f78(0x314)]()[0x0],_0x2c9998=_0x34487e[_0x4a4f78(0x1c0)](_0x39535b);if(!_0x2c9998)return;this[_0x4a4f78(0x3b4)](_0x2c9998,!0x0),await this['_commandService']['executeCommand'](g[_0x4a4f78(0x2b7)]['id'],{'unitId':_0x34487e['getUnitId'](),'subUnitId':_0x39535b});return;}((_0xda1429=_0x34487e[_0x4a4f78(0x2f4)]())==null?void 0x0:_0xda1429[_0x4a4f78(0x186)]())!==_0x5a965e&&await this[_0x4a4f78(0x333)][_0x4a4f78(0x1b2)](g[_0x4a4f78(0x2b7)]['id'],{'unitId':_0x34487e[_0x4a4f78(0x14f)](),'subUnitId':_0x5a965e});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x16f785(0x179)]),H(0x2,a[_0x16f785(0x199)]),H(0x3,a[_0x16f785(0x2c4)](u[_0x16f785(0x2d4)])),H(0x4,a[_0x16f785(0x2e2)](Ke[_0x16f785(0x153)]))],exports[_0x16f785(0x3af)]);var Bt=Object[_0x16f785(0x2a8)],kt=(_0x4b4bba,_0x4557f6,_0x3d8dce,_0x27d17f)=>{for(var _0x2f5e67=_0x27d17f>0x1?void 0x0:_0x27d17f?Bt(_0x4557f6,_0x3d8dce):_0x4557f6,_0x2e49d6=_0x4b4bba['length']-0x1,_0x41a32e;_0x2e49d6>=0x0;_0x2e49d6--)(_0x41a32e=_0x4b4bba[_0x2e49d6])&&(_0x2f5e67=_0x41a32e(_0x2f5e67)||_0x2f5e67);return _0x2f5e67;},ce=(_0x5f3397,_0x1a26c4)=>(_0x4b6385,_0x551c76)=>_0x1a26c4(_0x4b6385,_0x551c76,_0x5f3397);let z=class{constructor(_0x3fca7d,_0x420dbf,_0x34a519){const _0x4f7fab=_0x16f785;this[_0x4f7fab(0x1b4)]=_0x3fca7d,this[_0x4f7fab(0x379)]=_0x420dbf,this[_0x4f7fab(0x1e0)]=_0x34a519;}[_0x16f785(0x362)](_0x5d2bea){const _0x581970=_0x16f785;this[_0x581970(0x346)](_0x5d2bea),this['_transformPreviousActiveRange'](_0x5d2bea);}[_0x16f785(0x3a3)](_0xb91daf){const _0x27f943=_0x16f785,{unitID:_0x1dcafc}=_0xb91daf,_0x259811=this[_0x27f943(0x1e0)][_0x27f943(0x21e)](_0x1dcafc)[_0x27f943(0x2a1)](b[_0x27f943(0x2fe)]),{redoCache:_0x1a1709}=_0x259811[_0x27f943(0x32f)]();if(_0x1a1709[_0x27f943(0x378)]===0x0)return _0xb91daf;let _0x3fa65b=a[_0x27f943(0x320)][_0x27f943(0x30c)](_0xb91daf[_0x27f943(0x1ba)][0x0]);for(let _0x2b9166=0x0;_0x2b9166<_0x1a1709['length'];_0x2b9166++){const _0x3fdbc1={'id':'doc.mutation.rich-text-editing','params':{..._0x1a1709[_0x2b9166]}},_0x1d07f6=this[_0x27f943(0x379)]['transformMutation'](_0x3fa65b,_0x3fdbc1,!0x1);if(m['isTransformMutationFailure'](_0x1d07f6))throw _0x1d07f6[_0x27f943(0x345)];_0x3fa65b=_0x1d07f6['m1Prime'];}return{...a[_0x27f943(0x320)][_0x27f943(0x30c)](_0xb91daf),'mutations':[_0x3fa65b]};}['_transformUndoRedoStack'](_0x3cc9ea){const _0x35af61=_0x16f785,{unitID:_0x2075ae}=_0x3cc9ea,_0x349e63=this['_renderManagerService'][_0x35af61(0x21e)](_0x2075ae)[_0x35af61(0x2a1)](b['DocIMEInputManagerService']),{undoCache:_0x213199,redoCache:_0x26674d}=_0x349e63[_0x35af61(0x32f)]();if(_0x213199[_0x35af61(0x378)]===0x0||_0x26674d[_0x35af61(0x378)]===0x0)return;const _0x4cf4d8=[],_0x43b90d=[];let _0x3498c3=a['Tools'][_0x35af61(0x30c)](_0x3cc9ea[_0x35af61(0x1ba)][0x0]),_0x27b0f4=a[_0x35af61(0x320)]['deepClone'](_0x3cc9ea[_0x35af61(0x1ba)][0x0]);for(let _0x2064a5=_0x213199[_0x35af61(0x378)]-0x1;_0x2064a5>=0x0;_0x2064a5--){const _0x1fa2fb={'id':_0x35af61(0x275),'params':{..._0x213199[_0x2064a5]}},_0x881310={'id':_0x35af61(0x275),'params':{..._0x26674d[_0x2064a5]}},_0x356bbb=this[_0x35af61(0x379)]['transformMutation'](_0x3498c3,_0x1fa2fb,!0x1),_0x194351=this[_0x35af61(0x379)][_0x35af61(0x3b0)](_0x27b0f4,_0x881310,!0x1);if(m['isTransformMutationFailure'](_0x356bbb))throw _0x356bbb[_0x35af61(0x345)];if(m[_0x35af61(0x194)](_0x194351))throw _0x194351['error'];_0x4cf4d8[_0x35af61(0x398)](_0x356bbb[_0x35af61(0x1bd)]['params']),_0x43b90d[_0x35af61(0x398)](_0x194351['m2Prime'][_0x35af61(0x1d5)]),_0x3498c3=_0x356bbb[_0x35af61(0x25e)],_0x27b0f4=_0x194351[_0x35af61(0x25e)];}_0x349e63[_0x35af61(0x227)]({'undoCache':_0x4cf4d8,'redoCache':_0x43b90d});}[_0x16f785(0x2e0)](_0x43fb3e){const _0x21fd59=_0x16f785,{unitID:_0x4011aa}=_0x43fb3e,_0x267460=this[_0x21fd59(0x1e0)][_0x21fd59(0x21e)](_0x4011aa)[_0x21fd59(0x2a1)](b[_0x21fd59(0x2fe)]),_0x3ad54b=_0x267460[_0x21fd59(0x147)]();if(_0x3ad54b==null)return;const _0xec308f=[{'id':_0x21fd59(0x275),'params':{'unitId':_0x43fb3e['unitID'],'actions':null,'textRanges':[_0x3ad54b]}}],_0x3fcca0=this[_0x21fd59(0x379)][_0x21fd59(0x14c)](_0x43fb3e,_0xec308f);if(!m[_0x21fd59(0x2be)](_0x3fcca0))throw _0x3fcca0[_0x21fd59(0x345)];const _0x292fd1=_0x3fcca0[_0x21fd59(0x1bd)][0x0]['params']['textRanges'];Array[_0x21fd59(0x21a)](_0x292fd1)&&_0x292fd1[_0x21fd59(0x378)]&&_0x267460[_0x21fd59(0x331)](_0x292fd1[0x0]);}};z=kt([ce(0x0,a[_0x16f785(0x2c4)](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object[_0x16f785(0x2a8)],Ft=(_0x30853f,_0x3e40c6,_0x57f0bd,_0x486c8b)=>{const _0x5a398b=_0x16f785;for(var _0x41dfe8=_0x486c8b>0x1?void 0x0:_0x486c8b?Ht(_0x3e40c6,_0x57f0bd):_0x3e40c6,_0x3e4392=_0x30853f[_0x5a398b(0x378)]-0x1,_0x1fe657;_0x3e4392>=0x0;_0x3e4392--)(_0x1fe657=_0x30853f[_0x3e4392])&&(_0x41dfe8=_0x1fe657(_0x41dfe8)||_0x41dfe8);return _0x41dfe8;},le=(_0x41d3ca,_0x44400b)=>(_0x12ea53,_0x291a0b)=>_0x44400b(_0x12ea53,_0x291a0b,_0x41d3ca);let J=class{constructor(_0x454e38,_0x4f5c8e,_0x4309d6){this['_injector']=_0x454e38,this['_transformService']=_0x4f5c8e,this['_docStateChangeManagerService']=_0x4309d6;}[_0x16f785(0x230)](_0x1f491e){const _0x31b5bf=_0x16f785;this[_0x31b5bf(0x19e)](_0x1f491e);}['transformRemoteChangeset'](_0xdc8800){const _0x5d19c2=_0x16f785,{unitID:_0x2beb3f}=_0xdc8800,{collaboration:_0x9f77ea}=this[_0x5d19c2(0x391)][_0x5d19c2(0x377)](_0x2beb3f);if(_0x9f77ea[_0x5d19c2(0x378)]===0x0)return _0xdc8800;let _0x36976f=a[_0x5d19c2(0x320)][_0x5d19c2(0x30c)](_0xdc8800[_0x5d19c2(0x1ba)][0x0]);for(let _0x42772b=0x0;_0x42772b<_0x9f77ea[_0x5d19c2(0x378)];_0x42772b++){const _0x2a9075={'id':_0x5d19c2(0x275),'params':{'unitId':_0x9f77ea[_0x42772b][_0x5d19c2(0x1b8)],..._0x9f77ea[_0x42772b]['redoState']}},_0x1f5a47=this[_0x5d19c2(0x379)][_0x5d19c2(0x3b0)](_0x36976f,_0x2a9075,!0x1);if(m[_0x5d19c2(0x194)](_0x1f5a47))throw _0x1f5a47['error'];_0x36976f=_0x1f5a47[_0x5d19c2(0x25e)];}return{...a[_0x5d19c2(0x320)][_0x5d19c2(0x30c)](_0xdc8800),'mutations':[_0x36976f]};}[_0x16f785(0x19e)](_0x700ea7){const _0x2d849a=_0x16f785,{unitID:_0x150ea9}=_0x700ea7,{history:_0x1b21c0,collaboration:_0x28acdc}=this[_0x2d849a(0x391)][_0x2d849a(0x377)](_0x150ea9);if(_0x1b21c0[_0x2d849a(0x378)]===0x0&&_0x28acdc[_0x2d849a(0x378)]===0x0)return;const _0x31c602=[],_0x24c895=[];let _0x2fde2e=a[_0x2d849a(0x320)]['deepClone'](_0x700ea7[_0x2d849a(0x1ba)][0x0]),_0x584db9=a[_0x2d849a(0x320)][_0x2d849a(0x30c)](_0x700ea7['mutations'][0x0]);for(let _0x37196f=_0x1b21c0['length']-0x1;_0x37196f>=0x0;_0x37196f--){const _0x108c33={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1b21c0[_0x37196f][_0x2d849a(0x1b8)],..._0x1b21c0[_0x37196f][_0x2d849a(0x20b)]}},_0x54650e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1b21c0[_0x37196f][_0x2d849a(0x1b8)],..._0x1b21c0[_0x37196f][_0x2d849a(0x302)]}},_0x4d6933=this[_0x2d849a(0x379)]['transformMutation'](_0x2fde2e,_0x108c33,!0x1),_0x50f7c1=this[_0x2d849a(0x379)][_0x2d849a(0x3b0)](_0x584db9,_0x54650e,!0x1);if(m[_0x2d849a(0x194)](_0x4d6933))throw _0x4d6933['error'];if(m[_0x2d849a(0x194)](_0x50f7c1))throw _0x50f7c1[_0x2d849a(0x345)];_0x31c602[_0x2d849a(0x398)]({..._0x1b21c0[_0x37196f],'undoState':_0x4d6933[_0x2d849a(0x1bd)][_0x2d849a(0x1d5)],'redoState':_0x50f7c1[_0x2d849a(0x1bd)][_0x2d849a(0x1d5)]}),_0x2fde2e=_0x4d6933[_0x2d849a(0x25e)],_0x584db9=_0x50f7c1[_0x2d849a(0x25e)];}_0x2fde2e=a[_0x2d849a(0x320)][_0x2d849a(0x30c)](_0x700ea7[_0x2d849a(0x1ba)][0x0]),_0x584db9=a[_0x2d849a(0x320)][_0x2d849a(0x30c)](_0x700ea7[_0x2d849a(0x1ba)][0x0]);for(let _0x55cbd9=_0x28acdc[_0x2d849a(0x378)]-0x1;_0x55cbd9>=0x0;_0x55cbd9--){const _0x1904d0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x28acdc[_0x55cbd9][_0x2d849a(0x1b8)],..._0x28acdc[_0x55cbd9][_0x2d849a(0x20b)]}},_0x27b17a={'id':_0x2d849a(0x275),'params':{'unitId':_0x28acdc[_0x55cbd9][_0x2d849a(0x1b8)],..._0x28acdc[_0x55cbd9][_0x2d849a(0x302)]}},_0x4fdc62=this['_transformService'][_0x2d849a(0x3b0)](_0x2fde2e,_0x1904d0,!0x1),_0x2881e6=this[_0x2d849a(0x379)]['transformMutation'](_0x584db9,_0x27b17a,!0x1);if(m['isTransformMutationFailure'](_0x4fdc62))throw _0x4fdc62[_0x2d849a(0x345)];if(m['isTransformMutationFailure'](_0x2881e6))throw _0x2881e6[_0x2d849a(0x345)];_0x24c895[_0x2d849a(0x398)]({..._0x28acdc[_0x55cbd9],'undoState':_0x4fdc62[_0x2d849a(0x1bd)][_0x2d849a(0x1d5)],'redoState':_0x2881e6['m2Prime']['params']}),_0x2fde2e=_0x4fdc62[_0x2d849a(0x25e)],_0x584db9=_0x2881e6[_0x2d849a(0x25e)];}this[_0x2d849a(0x391)][_0x2d849a(0x18b)](_0x150ea9,{'history':_0x31c602,'collaboration':_0x24c895});}};J=Ft([le(0x0,a['Inject'](a[_0x16f785(0x241)])),le(0x1,m['ITransformService']),le(0x2,a['Inject'](b[_0x16f785(0x39a)]))],J);var Yt=Object[_0x16f785(0x2a8)],Wt=(_0x3540be,_0x3ae685,_0x4d531a,_0x3a93e1)=>{const _0x204808=_0x16f785;for(var _0xa0ffa5=_0x3a93e1>0x1?void 0x0:_0x3a93e1?Yt(_0x3ae685,_0x4d531a):_0x3ae685,_0x500c66=_0x3540be[_0x204808(0x378)]-0x1,_0x354022;_0x500c66>=0x0;_0x500c66--)(_0x354022=_0x3540be[_0x500c66])&&(_0xa0ffa5=_0x354022(_0xa0ffa5)||_0xa0ffa5);return _0xa0ffa5;},Ne=(_0x57686f,_0x16d8ce)=>(_0x22174c,_0x19ab84)=>_0x16d8ce(_0x22174c,_0x19ab84,_0x57686f);let Z=class{constructor(_0x85e6d8,_0x37e000){const _0x45e2c9=_0x16f785;this['_injector']=_0x85e6d8,this[_0x45e2c9(0x379)]=_0x37e000;}[_0x16f785(0x31b)](_0x474923){const _0x48fdff=_0x16f785;var _0x12b496;const _0x1dfba4=this[_0x48fdff(0x1b4)]['get'](Y[_0x48fdff(0x335)]),_0x45a9fb=(_0x12b496=_0x1dfba4[_0x48fdff(0x340)]())!=null?_0x12b496:[];if(_0x45a9fb[_0x48fdff(0x378)]===0x0)return;const _0xda4211=_0x474923['unitID'],_0x3bd637=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xda4211,'actions':null,'textRanges':_0x45a9fb}}],_0xc87b78=this[_0x48fdff(0x379)][_0x48fdff(0x14c)](_0x474923,_0x3bd637);if(!m[_0x48fdff(0x2be)](_0xc87b78))throw _0xc87b78[_0x48fdff(0x345)];const _0x1c66c9=_0xc87b78[_0x48fdff(0x1bd)][0x0][_0x48fdff(0x1d5)][_0x48fdff(0x30d)];Array[_0x48fdff(0x21a)](_0x1c66c9)&&_0x1c66c9[_0x48fdff(0x378)]&&_0x1dfba4[_0x48fdff(0x1d8)](_0x1c66c9,{'unitId':_0xda4211,'subUnitId':_0xda4211},!0x1);}};Z=Wt([Ne(0x0,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),Ne(0x1,m[_0x16f785(0x1ed)])],Z);var Vt=Object[_0x16f785(0x2a8)],Xt=(_0x1f2ac5,_0x7b7f1a,_0xa1458a,_0x456628)=>{const _0x45e858=_0x16f785;for(var _0x3d7e12=_0x456628>0x1?void 0x0:_0x456628?Vt(_0x7b7f1a,_0xa1458a):_0x7b7f1a,_0x363722=_0x1f2ac5[_0x45e858(0x378)]-0x1,_0x33960a;_0x363722>=0x0;_0x363722--)(_0x33960a=_0x1f2ac5[_0x363722])&&(_0x3d7e12=_0x33960a(_0x3d7e12)||_0x3d7e12);return _0x3d7e12;},N=(_0xaed4d,_0x41e09b)=>(_0x20e0da,_0x38baef)=>_0x41e09b(_0x20e0da,_0x38baef,_0xaed4d);let Q=class extends a[_0x16f785(0x1c7)]{constructor(_0x133136,_0x112f5c,_0x2ca386,_0x240f25,_0x24ae90,_0x48462f,_0x55852e,_0x749b51){const _0x467132=_0x16f785;super(),h(this,_0x467132(0x388),new d[(_0x467132(0x229))](u[_0x467132(0x1b7)]['NOT_COLLAB'])),(this[_0x467132(0x391)]=_0x133136,this[_0x467132(0x280)]=_0x112f5c,this[_0x467132(0x1b6)]=_0x2ca386,this[_0x467132(0x1ad)]=_0x240f25,this[_0x467132(0x247)]=_0x24ae90,this['_docSyncEditingCollabCursorService']=_0x48462f,this[_0x467132(0x367)]=_0x55852e,this[_0x467132(0x290)]=_0x749b51,this[_0x467132(0x277)]());}[_0x16f785(0x277)](){const _0x1f07d7=_0x16f785;this[_0x1f07d7(0x3b2)](this['_collaborationController'][_0x1f07d7(0x1bb)]['subscribe'](_0x5a6ccb=>{const _0xdedbe3=_0x1f07d7,_0x529599=this[_0xdedbe3(0x391)][_0xdedbe3(0x3c2)][_0xdedbe3(0x1fa)](_0x29b8f7=>{const _0x2f83d3=_0xdedbe3;if(_0x29b8f7==null)return;const {unitId:_0x55c371,redoState:_0x1a56cd,commandId:_0x59391f}=_0x29b8f7;if(_0x55c371!==_0x5a6ccb['unitID'])return;const _0x3ec5d9={'id':_0x59391f,'type':a['CommandType'][_0x2f83d3(0x2d0)],'params':{'unitId':_0x55c371,'actions':_0x1a56cd[_0x2f83d3(0x251)],'textRanges':null}};_0x5a6ccb[_0x2f83d3(0x1d6)](_0x3ec5d9);});if(_0x5a6ccb[_0xdedbe3(0x3b2)](_0x529599),_0x5a6ccb instanceof u[_0xdedbe3(0x3c1)]){const _0x51a40c={'onTransformIME':_0x13043a=>this[_0xdedbe3(0x1b6)]['transformIMECache'](_0x13043a),'onTransformState':_0xd2b250=>this[_0xdedbe3(0x1ad)][_0xdedbe3(0x230)](_0xd2b250),'onTransformSelections':_0x333d54=>this[_0xdedbe3(0x247)][_0xdedbe3(0x31b)](_0x333d54),'onSyncEditingCollabCursor':_0x3054c7=>this[_0xdedbe3(0x2d5)]['syncEditingCollabCursor'](_0x3054c7),'onTransformRemoteChangesetByIMECache':_0x176d33=>this['_docTransformIMECacheService'][_0xdedbe3(0x3a3)](_0x176d33),'onTransformRemoteChangesetByStateCache':_0x58c7e8=>this[_0xdedbe3(0x1ad)][_0xdedbe3(0x3a3)](_0x58c7e8)};_0x5a6ccb[_0xdedbe3(0x317)](_0x51a40c);}}));}};Q=Xt([N(0x0,a[_0x16f785(0x2c4)](b[_0x16f785(0x39a)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a['Inject'](z)),N(0x3,a[_0x16f785(0x2c4)](J)),N(0x4,a[_0x16f785(0x2c4)](Z)),N(0x5,a[_0x16f785(0x2c4)](Ce)),N(0x6,T[_0x16f785(0x231)]),N(0x7,a[_0x16f785(0x2c4)](a[_0x16f785(0x144)]))],Q);var Gt=Object[_0x16f785(0x2a8)],Kt=(_0x1cc750,_0xa6a1c5,_0x47259a,_0x54f491)=>{const _0xc73c88=_0x16f785;for(var _0x62e594=_0x54f491>0x1?void 0x0:_0x54f491?Gt(_0xa6a1c5,_0x47259a):_0xa6a1c5,_0x4820f9=_0x1cc750[_0xc73c88(0x378)]-0x1,_0x579968;_0x4820f9>=0x0;_0x4820f9--)(_0x579968=_0x1cc750[_0x4820f9])&&(_0x62e594=_0x579968(_0x62e594)||_0x62e594);return _0x62e594;},_e=(_0x54736f,_0x3380d9)=>(_0x435910,_0x215743)=>_0x3380d9(_0x435910,_0x215743,_0x54736f);let ge=class extends a['Disposable']{constructor(_0x1f414b,_0x3b058c,_0x59d6db){const _0x4bc06c=_0x16f785;super(),h(this,'_cachedData',new Map()),h(this,_0x4bc06c(0x22b),new Map()),h(this,_0x4bc06c(0x196),!0x1),(this[_0x4bc06c(0x295)]=_0x1f414b,this[_0x4bc06c(0x2c8)]=_0x3b058c,this['_revisionService']=_0x59d6db);}[_0x16f785(0x243)](){const _0x34b487=_0x16f785;this[_0x34b487(0x196)]=!0x0;}[_0x16f785(0x157)](){this['_disabled']=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x16f785(0x2c5)](){const _0x27e16e=_0x16f785;this[_0x27e16e(0x2ba)]()[_0x27e16e(0x380)](()=>super[_0x27e16e(0x2c5)]());}async[_0x16f785(0x28a)](_0x1decfc){const _0xf15254=_0x16f785;return this[_0xf15254(0x196)]?null:this[_0xf15254(0x2c8)][_0xf15254(0x349)](u[_0xf15254(0x228)](_0x1decfc));}async[_0x16f785(0x1a3)](_0x345725,_0x11b059){const _0x3bf325=_0x16f785;return!!this[_0x3bf325(0x2c8)]['setItem'](_0x345725,_0x11b059);}[_0x16f785(0x237)](_0xfcd66f,_0x1dc7ba,_0x389987,_0x23568d){const _0x25116b=_0x16f785,_0x2f8d37=this[_0x25116b(0x323)]['getCurrentRevOfUnit'](_0xfcd66f);this[_0x25116b(0x35d)][_0x25116b(0x2fc)](_0xfcd66f,{'unitID':_0xfcd66f,'type':_0x1dc7ba,'awaitingChangeset':_0x389987,'mutations':_0x23568d,'rev':_0x2f8d37}),this[_0x25116b(0x22b)][_0x25116b(0x13f)](_0xfcd66f)||this[_0x25116b(0x3a0)](_0xfcd66f);}['_scheduleSaving'](_0x3b80a5){const _0x58664f=_0x16f785,_0xe1aa38=this[_0x58664f(0x265)]();_0xe1aa38===0x0?this[_0x58664f(0x284)](_0x3b80a5):this['_saveTaskMap'][_0x58664f(0x2fc)](_0x3b80a5,setTimeout(()=>this[_0x58664f(0x284)](_0x3b80a5),_0xe1aa38));}[_0x16f785(0x265)](){const _0x241156=_0x16f785;var _0x29d948;return(_0x29d948=this[_0x241156(0x295)][_0x241156(0x262)](u[_0x241156(0x200)]))!=null?_0x29d948:u['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0xe25a2a){const _0x10f782=_0x16f785,_0x338903=this[_0x10f782(0x22b)][_0x10f782(0x22c)](_0xe25a2a);return _0x338903!==void 0x0&&window[_0x10f782(0x163)](_0x338903),this[_0x10f782(0x2c8)][_0x10f782(0x350)](u['getLocalCacheKey'](_0xe25a2a),this['_cachedData'][_0x10f782(0x22c)](_0xe25a2a))[_0x10f782(0x380)](()=>this['_saveTaskMap'][_0x10f782(0x1be)](_0xe25a2a));}async['exhaustSavingTask'](){const _0x1fa315=_0x16f785,_0x49c80a=[];this[_0x1fa315(0x22b)][_0x1fa315(0x35e)]((_0x400991,_0x5ea1fb)=>{const _0x31f19a=_0x1fa315;window[_0x31f19a(0x163)](_0x400991),_0x49c80a[_0x31f19a(0x25f)](this[_0x31f19a(0x284)](_0x5ea1fb)[_0x31f19a(0x380)](()=>{const _0x1cdf31=_0x31f19a;this[_0x1cdf31(0x22b)][_0x1cdf31(0x1be)](_0x5ea1fb);}));}),await Promise[_0x1fa315(0x1c1)](_0x49c80a);}};ge=Kt([_e(0x0,a[_0x16f785(0x260)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x16f785(0x2c4)](m[_0x16f785(0x36e)]))],ge);class je extends a[_0x16f785(0x191)]{constructor(){const _0x26bf73=_0x16f785;super(),h(this,_0x26bf73(0x276)),this[_0x26bf73(0x276)]=d[_0x26bf73(0x2cd)](window,'popstate')[_0x26bf73(0x1a6)](d['takeUntil'](this[_0x26bf73(0x332)]),d[_0x26bf73(0x368)](0x1),d[_0x26bf73(0x248)](void 0x0));}[_0x16f785(0x397)](_0x543208,_0x15fb9f,_0x188609=!0x1){const _0x177282=_0x16f785,_0x2bbb22=new URL(window[_0x177282(0x1e4)]['href']);_0x2bbb22[_0x177282(0x246)][_0x177282(0x2fc)](_0x543208,_0x15fb9f),_0x188609?window[_0x177282(0x2c2)][_0x177282(0x2f1)]('','',_0x2bbb22[_0x177282(0x23a)]()):window[_0x177282(0x2c2)][_0x177282(0x2cf)]('','',_0x2bbb22[_0x177282(0x23a)]());}['removeParam'](_0x3adb1e,_0x585603=!0x1){const _0x1abd35=_0x16f785,_0x358a9c=new URL(window[_0x1abd35(0x1e4)]['href']);_0x358a9c[_0x1abd35(0x246)][_0x1abd35(0x1be)](_0x3adb1e),_0x585603?window['history'][_0x1abd35(0x2f1)]('','',_0x358a9c[_0x1abd35(0x23a)]()):window['history'][_0x1abd35(0x2cf)]('','',_0x358a9c[_0x1abd35(0x23a)]());}[_0x16f785(0x3ab)](_0x57be14){const _0x150a17=_0x16f785;var _0x44b2d9;return(_0x44b2d9=new URL(window[_0x150a17(0x1e4)][_0x150a17(0x38f)])[_0x150a17(0x246)][_0x150a17(0x22c)](_0x57be14))!=null?_0x44b2d9:void 0x0;}}var qt=Object[_0x16f785(0x240)],zt=Object[_0x16f785(0x2a8)],Jt=(_0x310ab9,_0x482d2b,_0xcada15)=>_0x482d2b in _0x310ab9?qt(_0x310ab9,_0x482d2b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcada15}):_0x310ab9[_0x482d2b]=_0xcada15,Zt=(_0x597054,_0x411407,_0x198d31,_0x29ad99)=>{const _0x507252=_0x16f785;for(var _0x5cf7bb=_0x29ad99>0x1?void 0x0:_0x29ad99?zt(_0x411407,_0x198d31):_0x411407,_0x4270ff=_0x597054[_0x507252(0x378)]-0x1,_0x7f27c4;_0x4270ff>=0x0;_0x4270ff--)(_0x7f27c4=_0x597054[_0x4270ff])&&(_0x5cf7bb=_0x7f27c4(_0x5cf7bb)||_0x5cf7bb);return _0x5cf7bb;},he=(_0x194906,_0x827dff)=>(_0x4a630e,_0x549367)=>_0x827dff(_0x4a630e,_0x549367,_0x194906),Qt=(_0x3f5993,_0x28a242,_0x32aba2)=>Jt(_0x3f5993,_0x28a242+'',_0x32aba2);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x16f785(0x258)]=class extends a[_0x16f785(0x142)]{constructor(_0x27be84=Ue,_0x2dabc7,_0x1cbbf7,_0x249b80){const _0x1a84e1=_0x16f785;super(),this[_0x1a84e1(0x239)]=_0x27be84,this[_0x1a84e1(0x1e0)]=_0x2dabc7,this[_0x1a84e1(0x1b4)]=_0x1cbbf7,this[_0x1a84e1(0x295)]=_0x249b80;const {..._0x2f29e5}=a[_0x1a84e1(0x27e)]({},Ue,this['_config']);this['_configService']['setConfig']($t,_0x2f29e5);}[_0x16f785(0x29d)](){const _0x43fcdb=_0x16f785;this[_0x43fcdb(0x1fb)](),this[_0x43fcdb(0x2e1)]();}[_0x16f785(0x36a)](){const _0x381e3c=_0x16f785;this[_0x381e3c(0x393)]();}[_0x16f785(0x1fb)](){const _0x3f5251=_0x16f785;var _0x2b3e32;const _0x488012=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x3f5251(0x2c1)],{'useClass':G[_0x3f5251(0x1cc)]}],[u[_0x3f5251(0x2b1)],{'useClass':ge}],[exports[_0x3f5251(0x2f5)]],[Q],[q],[x],[de],[exports[_0x3f5251(0x3af)]]];a[_0x3f5251(0x2d1)](this[_0x3f5251(0x1b4)],a[_0x3f5251(0x33b)](_0x488012,(_0x2b3e32=this['_config'])==null?void 0x0:_0x2b3e32[_0x3f5251(0x28d)]));}[_0x16f785(0x393)](){const _0x4fc7dc=_0x16f785;this[_0x4fc7dc(0x3b2)](this[_0x4fc7dc(0x1e0)][_0x4fc7dc(0x2b2)](a[_0x4fc7dc(0x2a5)][_0x4fc7dc(0x1e2)],[Ie])),this[_0x4fc7dc(0x3b2)](this[_0x4fc7dc(0x1e0)]['registerRenderModule'](a['UniverInstanceType'][_0x4fc7dc(0x253)],[ve]));}[_0x16f785(0x2e1)](){const _0x588f6f=_0x16f785;a['touchDependencies'](this[_0x588f6f(0x1b4)],[[x],[exports[_0x588f6f(0x2f5)]],[Q],[q],[exports[_0x588f6f(0x3af)]]]);}},Qt(exports[_0x16f785(0x258)],_0x16f785(0x14a),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x16f785(0x176)](u[_0x16f785(0x30a)]),he(0x1,p[_0x16f785(0x193)]),he(0x2,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),he(0x3,a[_0x16f785(0x260)])],exports[_0x16f785(0x258)]);var ts=Object[_0x16f785(0x2a8)],ss=(_0x4f4cbf,_0x2e8532,_0x42b0b0,_0x394149)=>{const _0x3b53a7=_0x16f785;for(var _0x17c049=_0x394149>0x1?void 0x0:_0x394149?ts(_0x2e8532,_0x42b0b0):_0x2e8532,_0x3cdc22=_0x4f4cbf[_0x3b53a7(0x378)]-0x1,_0x49eb61;_0x3cdc22>=0x0;_0x3cdc22--)(_0x49eb61=_0x4f4cbf[_0x3cdc22])&&(_0x17c049=_0x49eb61(_0x17c049)||_0x17c049);return _0x17c049;},F=(_0x4e2ac9,_0x257de6)=>(_0x461d4d,_0x2f907b)=>_0x257de6(_0x461d4d,_0x2f907b,_0x4e2ac9);exports['BrowserCollaborationSocketService']=class extends u[_0x16f785(0x18c)]{constructor(_0x30724b,_0x4ebfa0,_0x2b9118,_0x24b67d,_0x663411){super(_0x30724b,_0x4ebfa0,_0x2b9118,_0x24b67d,_0x663411);}async[_0x16f785(0x209)](_0x2e9bfc){const _0x2a3c37=_0x16f785,_0x2aae79=await this[_0x2a3c37(0x1f1)](),_0x48a36f=this[_0x2a3c37(0x1cd)](_0x2e9bfc,_0x2aae79);return this[_0x2a3c37(0x2c3)](_0x48a36f);}[_0x16f785(0x1cd)](_0x969840,_0x736226){const _0x1dda40=_0x16f785,_0x1d165a=typeof window>'u'?new URL(_0x969840):new URL(_0x969840,window['location'][_0x1dda40(0x36b)]);_0x1d165a[_0x1dda40(0x246)][_0x1dda40(0x2fc)](_0x1dda40(0x1d3),_0x736226);const _0x3b3753=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1dda40(0x1e4)][_0x1dda40(0x204)]);return _0x3b3753[_0x1dda40(0x22c)](_0x1dda40(0x1b0))&&_0x1d165a[_0x1dda40(0x246)][_0x1dda40(0x2fc)](_0x1dda40(0x1b0),_0x3b3753[_0x1dda40(0x22c)]('runId')),_0x1d165a[_0x1dda40(0x23a)]();}async[_0x16f785(0x1f1)](){const _0x5c3d7f=_0x16f785;var _0x3bc6c3,_0x81720a,_0x3ca8dc;const _0xe820a4=this['_configService']['getConfig'](u[_0x5c3d7f(0x182)]),_0x2e11f0=(_0x3bc6c3=_0xe820a4==null?void 0x0:_0xe820a4[_0x5c3d7f(0x270)])!=null?_0x3bc6c3:u[_0x5c3d7f(0x21c)];return(_0x3ca8dc=(_0x81720a=(await this['_httpService'][_0x5c3d7f(0x22c)](_0x2e11f0,{'headers':{'Content-Type':'application/json'}}))[_0x5c3d7f(0x374)])==null?void 0x0:_0x81720a['ticket'])!=null?_0x3ca8dc:'';}},exports[_0x16f785(0x3c0)]=ss([F(0x0,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),F(0x1,a[_0x16f785(0x2c4)](G[_0x16f785(0x2dc)])),F(0x2,a['IConfigService']),F(0x3,a['ILogService']),F(0x4,m[_0x16f785(0x201)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a[_0x16f785(0x1c7)]{constructor(){const _0xccd900=_0x16f785;super(),h(this,_0xccd900(0x2ac),a['generateRandomId']()),h(this,_0xccd900(0x3a6),new Set()),h(this,_0xccd900(0x15e),new Map()),h(this,_0xccd900(0x2af),null),h(this,_0xccd900(0x14d),new Map()),h(this,_0xccd900(0x25d),new Map()),this[_0xccd900(0x39e)]();}[_0x16f785(0x2c5)](){const _0x4d659f=_0x16f785;super['dispose'](),this[_0x4d659f(0x14d)][_0x4d659f(0x35e)]((_0x127899,_0x250352)=>this[_0x4d659f(0x321)](_0x250352)),this[_0x4d659f(0x2af)]&&window[_0x4d659f(0x287)](this[_0x4d659f(0x2af)]);}[_0x16f785(0x395)](_0x5b7baf){const _0x1193f6=_0x16f785;return this[_0x1193f6(0x16b)](_0x5b7baf)['pipe'](d[_0x1193f6(0x1e9)]());}[_0x16f785(0x1d4)](_0x5ce20c){const _0x59d9ea=_0x16f785;this[_0x59d9ea(0x3a6)]['size']===0x0&&this[_0x59d9ea(0x1b3)](),this[_0x59d9ea(0x3a6)][_0x59d9ea(0x37e)](_0x5ce20c),this[_0x59d9ea(0x384)]({'type':0x0,'memberID':this[_0x59d9ea(0x2ac)],'unitIDs':[_0x5ce20c],'isForwarded':!0x1});}[_0x16f785(0x213)](_0x96efa4){const _0x5215fe=_0x16f785;this['_selfUnitIDs'][_0x5215fe(0x1be)](_0x96efa4),this['_selfUnitIDs'][_0x5215fe(0x18e)]===0x0&&this['_heartbeatTimer']&&window[_0x5215fe(0x287)](this[_0x5215fe(0x2af)]);}[_0x16f785(0x39e)](){const _0x21a7e0=_0x16f785;this[_0x21a7e0(0x3b2)](a[_0x21a7e0(0x39f)](d[_0x21a7e0(0x2cd)](window,_0x21a7e0(0x24c))['subscribe'](_0x5863c0=>{const _0x2266b5=_0x21a7e0;if(_0x5863c0['key']!==Le||!_0x5863c0[_0x2266b5(0x1f8)])return;const _0x435861=JSON[_0x2266b5(0x19c)](_0x5863c0[_0x2266b5(0x1f8)]);this[_0x2266b5(0x33a)](_0x435861);}))),window[_0x21a7e0(0x1c8)]('unload',()=>this[_0x21a7e0(0x384)]({'type':0x1,'memberID':this[_0x21a7e0(0x2ac)],'unitIDs':Array[_0x21a7e0(0x29b)](this[_0x21a7e0(0x3a6)])}));}[_0x16f785(0x33a)](_0x4def28){const _0x314754=_0x16f785;switch(_0x4def28[_0x314754(0x161)]){case 0x0:this['_handleJoinEvent'](_0x4def28);break;case 0x1:this['_handleLeaveEvent'](_0x4def28);break;case 0x2:this['_handleHeartbeatEvent'](_0x4def28);break;}}[_0x16f785(0x35c)](_0x2bef60){const _0x35f068=_0x16f785,{unitIDs:_0x4ff722,memberID:_0x573dd9,isForwarded:_0x17cb5d}=_0x2bef60;_0x4ff722[_0x35f068(0x35e)](_0x285884=>{const _0x4c2c51=_0x35f068;if(!_0x17cb5d&&this['_unitOnClients']['has'](_0x285884)&&this[_0x4c2c51(0x16b)](_0x285884)['next'](u[_0x4c2c51(0x1e3)][_0x4c2c51(0x2d7)]),!this[_0x4c2c51(0x15e)][_0x4c2c51(0x13f)](_0x285884)||!this[_0x4c2c51(0x15e)][_0x4c2c51(0x22c)](_0x285884)['has'](_0x573dd9)){const _0x4dfec8=this[_0x4c2c51(0x15e)]['get'](_0x285884)||new Set();_0x4dfec8['add'](_0x573dd9),this[_0x4c2c51(0x15e)]['set'](_0x285884,_0x4dfec8),this[_0x4c2c51(0x203)](_0x573dd9);}}),_0x17cb5d||this['_send']({'type':0x0,'memberID':this[_0x35f068(0x2ac)],'unitIDs':[...this[_0x35f068(0x3a6)]],'isForwarded':!0x0});}[_0x16f785(0x203)](_0x20e8f9){const _0x1b2056=_0x16f785;this[_0x1b2056(0x321)](_0x20e8f9);const _0x5b2c6a=window[_0x1b2056(0x37a)](()=>{const _0x27a747=_0x1b2056;this[_0x27a747(0x15e)]['forEach'](_0x3d91dc=>{_0x3d91dc['delete'](_0x20e8f9);});},Me*0x2);this[_0x1b2056(0x14d)]['set'](_0x20e8f9,_0x5b2c6a);}[_0x16f785(0x321)](_0x528a20){const _0x5a0dd7=_0x16f785;if(this[_0x5a0dd7(0x14d)][_0x5a0dd7(0x13f)](_0x528a20)){const _0x220ecb=this[_0x5a0dd7(0x14d)]['get'](_0x528a20);_0x220ecb&&window['clearTimeout'](_0x220ecb),this[_0x5a0dd7(0x14d)][_0x5a0dd7(0x2fc)](_0x528a20,null);}}[_0x16f785(0x1f7)](_0x501f3e){const _0x2a3cbf=_0x16f785,{memberID:_0x10a3fe,unitIDs:_0x175159}=_0x501f3e;_0x175159[_0x2a3cbf(0x35e)](_0x39b704=>{const _0x1fc177=_0x2a3cbf;var _0x59bf50;const _0x310e3e=this[_0x1fc177(0x15e)]['get'](_0x39b704);_0x310e3e&&(_0x310e3e[_0x1fc177(0x1be)](_0x10a3fe),(_0x59bf50=this['_ensureSubject'](_0x39b704))==null||_0x59bf50[_0x1fc177(0x1c3)](_0x310e3e[_0x1fc177(0x18e)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus'][_0x1fc177(0x2d7)]));}),this[_0x2a3cbf(0x321)](_0x10a3fe);}[_0x16f785(0x365)](_0x4cadf6){const _0xfdcbbf=_0x16f785;this[_0xfdcbbf(0x203)](_0x4cadf6[_0xfdcbbf(0x162)]);}[_0x16f785(0x384)](_0x5a6989){const _0x3eab3f=_0x16f785;localStorage['setItem'](Le,JSON[_0x3eab3f(0x187)](_0x5a6989));}['_scheduleHeartbeat'](){const _0xd500f1=_0x16f785;this['_heartbeatTimer']=window[_0xd500f1(0x173)](()=>{const _0x5f32ac=_0xd500f1;this[_0x5f32ac(0x384)]({'type':0x2,'memberID':this[_0x5f32ac(0x2ac)]});},Me);}[_0x16f785(0x16b)](_0x366ae1){const _0x6e1591=_0x16f785;return this[_0x6e1591(0x25d)]['has'](_0x366ae1)||this[_0x6e1591(0x25d)][_0x6e1591(0x2fc)](_0x366ae1,new d[(_0x6e1591(0x229))](u[_0x6e1591(0x1e3)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x6e1591(0x22c)](_0x366ae1);}}var Be=(_0x260093=>(_0x260093[_0x260093['UNDEFINED']=0x0]=_0x16f785(0x311),_0x260093[_0x260093['OK']=0x1]='OK',_0x260093[_0x260093[_0x16f785(0x34a)]=0x2]=_0x16f785(0x34a),_0x260093[_0x260093[_0x16f785(0x382)]=0x3]=_0x16f785(0x382),_0x260093[_0x260093[_0x16f785(0x23c)]=0x4]=_0x16f785(0x23c),_0x260093[_0x260093[_0x16f785(0x1e8)]=0x5]=_0x16f785(0x1e8),_0x260093[_0x260093['ALREADY_EXISTS']=0x6]=_0x16f785(0x218),_0x260093[_0x260093[_0x16f785(0x19b)]=0x7]=_0x16f785(0x19b),_0x260093[_0x260093[_0x16f785(0x371)]=0x8]=_0x16f785(0x371),_0x260093[_0x260093[_0x16f785(0x2ce)]=0x9]=_0x16f785(0x2ce),_0x260093[_0x260093[_0x16f785(0x2db)]=0xa]=_0x16f785(0x2db),_0x260093[_0x260093[_0x16f785(0x301)]=0x1389]=_0x16f785(0x301),_0x260093[_0x260093[_0x16f785(0x310)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x260093[_0x260093[_0x16f785(0x2f8)]=0x1772]=_0x16f785(0x2f8),_0x260093[_0x260093[_0x16f785(0x325)]=0x1773]=_0x16f785(0x325),_0x260093[_0x260093[_0x16f785(0x296)]=0x1b59]=_0x16f785(0x296),_0x260093[_0x260093[_0x16f785(0x32d)]=0x1b5a]=_0x16f785(0x32d),_0x260093[_0x260093[_0x16f785(0x38d)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x260093[_0x260093[_0x16f785(0x1ea)]=0x1b5c]=_0x16f785(0x1ea),_0x260093[_0x260093['APPLY_DUPLICATED']=0x1b5d]=_0x16f785(0x1fe),_0x260093[_0x260093[_0x16f785(0x1c6)]=0x1f41]=_0x16f785(0x1c6),_0x260093[_0x260093[_0x16f785(0x23d)]=0x2329]=_0x16f785(0x23d),_0x260093[_0x260093[_0x16f785(0x31d)]=0x232a]=_0x16f785(0x31d),_0x260093[_0x260093[_0x16f785(0x33f)]=0x232b]=_0x16f785(0x33f),_0x260093[_0x260093[_0x16f785(0x2d9)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x260093[_0x260093[_0x16f785(0x1bf)]=0x232d]=_0x16f785(0x1bf),_0x260093[_0x260093[_0x16f785(0x177)]=0x2711]=_0x16f785(0x177),_0x260093[_0x260093[_0x16f785(0x361)]=0x2712]=_0x16f785(0x361),_0x260093[_0x260093[_0x16f785(0x27b)]=0x2713]=_0x16f785(0x27b),_0x260093[_0x260093['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x16f785(0x386),_0x260093[_0x260093[_0x16f785(0x22e)]=0x271a]=_0x16f785(0x22e),_0x260093[_0x260093['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x16f785(0x2b9),_0x260093[_0x260093['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x16f785(0x28f),_0x260093[_0x260093['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x16f785(0x2fa),_0x260093[_0x260093[_0x16f785(0x146)]=0x271e]=_0x16f785(0x146),_0x260093[_0x260093[_0x16f785(0x392)]=0x271f]=_0x16f785(0x392),_0x260093[_0x260093[_0x16f785(0x205)]=0x2af9]=_0x16f785(0x205),_0x260093[_0x260093['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x16f785(0x26a),_0x260093[_0x260093[_0x16f785(0x324)]=0x2ee2]=_0x16f785(0x324),_0x260093[_0x260093[_0x16f785(0x269)]=0x2ee3]=_0x16f785(0x269),_0x260093[_0x260093[_0x16f785(0x20d)]=0x2ee4]=_0x16f785(0x20d),_0x260093[_0x260093[_0x16f785(0x1e1)]=0x2ee5]=_0x16f785(0x1e1),_0x260093[_0x260093[_0x16f785(0x170)]=0x32c9]=_0x16f785(0x170),_0x260093[_0x260093[_0x16f785(0x29e)]=0x32ca]=_0x16f785(0x29e),_0x260093[_0x260093[_0x16f785(0x3a7)]=0x32cb]=_0x16f785(0x3a7),_0x260093[_0x260093[_0x16f785(0x1de)]=-0x1]=_0x16f785(0x1de),_0x260093))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x58ff56,_0x2eee59,_0x451b84,_0x2999f6)=>{const _0x516e10=_0x16f785;for(var _0x159167=_0x2999f6>0x1?void 0x0:_0x2999f6?ns(_0x2eee59,_0x451b84):_0x2eee59,_0x22bb43=_0x58ff56[_0x516e10(0x378)]-0x1,_0x34bbca;_0x22bb43>=0x0;_0x22bb43--)(_0x34bbca=_0x58ff56[_0x22bb43])&&(_0x159167=_0x34bbca(_0x159167)||_0x159167);return _0x159167;},ue=(_0x3c4c7e,_0x37a9ae)=>(_0x803ca5,_0x2ee3c0)=>_0x37a9ae(_0x803ca5,_0x2ee3c0,_0x3c4c7e);exports[_0x16f785(0x37c)]=class extends a[_0x16f785(0x1c7)]{constructor(_0x19bc5f,_0x3246de,_0x123c76){const _0x3a4ee0=_0x16f785;super(),this['_instanceService']=_0x19bc5f,this['_httpService']=_0x3246de,this[_0x3a4ee0(0x295)]=_0x123c76;}async[_0x16f785(0x16c)](_0x4ac176,_0x3c8057,_0x7beaa3,..._0x272328){const _0x12dead=_0x16f785;var _0x301ac0,_0x59b81b,_0x47ea70,_0x301af6;const _0x2514e2=this[_0x12dead(0x1fc)][_0x12dead(0x20a)]();if(!_0x2514e2)throw new Error(_0x12dead(0x29f));const _0x3d5a38=((_0x301ac0=this[_0x12dead(0x295)][_0x12dead(0x262)](u[_0x12dead(0x30b)]))!=null?_0x301ac0:u[_0x12dead(0x207)])+'/'+_0x4ac176+_0x12dead(0x25b)+_0x3c8057,_0x413ce0=new URL(window['location'][_0x12dead(0x38f)]),_0x174939={'scriptId':_0x4ac176,'runId':(_0x59b81b=_0x413ce0['searchParams'][_0x12dead(0x22c)]('runId'))!=null?_0x59b81b:'','function':_0x3c8057,'unitId':_0x2514e2[_0x12dead(0x14f)](),'argsOfFunction':JSON[_0x12dead(0x187)](_0x272328),'invokeId':(_0x47ea70=_0x7beaa3[_0x12dead(0x307)])!=null?_0x47ea70:'','executionId':(_0x301af6=_0x7beaa3['executionId'])!=null?_0x301af6:''};try{const _0x30eca9=await this[_0x12dead(0x2e5)]['post'](_0x3d5a38,{'body':_0x174939});return _0x30eca9['body'][_0x12dead(0x345)]&&_0x30eca9[_0x12dead(0x374)][_0x12dead(0x345)][_0x12dead(0x294)]!==Be['OK']?'Failed':_0x30eca9['body']['result'];}catch{return _0x12dead(0x2bb);}}},exports[_0x16f785(0x37c)]=rs([ue(0x0,a[_0x16f785(0x3b7)]),ue(0x1,a['Inject'](G[_0x16f785(0x2dc)])),ue(0x2,a[_0x16f785(0x260)])],exports[_0x16f785(0x37c)]),exports[_0x16f785(0x285)]=xe,exports['IURLService']=be,exports[_0x16f785(0x3ad)]=Ae,exports[_0x16f785(0x29c)]=is,exports['WebURLService']=je;