@univerjs-pro/collaboration-client 0.4.1-nightly.202410191605 → 0.4.1-nightly.202410211606

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.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x333065=_0x2204;(function(_0x56046a,_0x509e16){const _0x1967c3=_0x2204,_0x1d6da7=_0x56046a();while(!![]){try{const _0x308623=parseInt(_0x1967c3(0x274))/0x1+parseInt(_0x1967c3(0x4cd))/0x2+-parseInt(_0x1967c3(0x1d4))/0x3+parseInt(_0x1967c3(0x1f2))/0x4*(parseInt(_0x1967c3(0x569))/0x5)+-parseInt(_0x1967c3(0x50c))/0x6*(-parseInt(_0x1967c3(0x545))/0x7)+parseInt(_0x1967c3(0x47b))/0x8+-parseInt(_0x1967c3(0x4ab))/0x9;if(_0x308623===_0x509e16)break;else _0x1d6da7['push'](_0x1d6da7['shift']());}catch(_0x58681d){_0x1d6da7['push'](_0x1d6da7['shift']());}}}(_0x577b,0xbb3a8));var Ft=Object[_0x333065(0x2e3)],Gt=(_0x457ce1,_0xb7803,_0x46e93e)=>_0xb7803 in _0x457ce1?Ft(_0x457ce1,_0xb7803,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46e93e}):_0x457ce1[_0xb7803]=_0x46e93e,u=(_0x476c02,_0x1d14b2,_0x229179)=>Gt(_0x476c02,typeof _0x1d14b2!=_0x333065(0x2e5)?_0x1d14b2+'':_0x1d14b2,_0x229179);Object[_0x333065(0x2e3)](exports,Symbol[_0x333065(0x2be)],{'value':_0x333065(0x334)});const a=require(_0x333065(0x44e)),v=require(_0x333065(0x3d9)),E=require(_0x333065(0x231)),X=require('@univerjs/design'),A=require(_0x333065(0x56b)),w=require('@univerjs/network'),_=require(_0x333065(0x558)),Yt=require(_0x333065(0x2cd)),N=require(_0x333065(0x33f)),C=require('@univerjs/sheets'),D=require(_0x333065(0x495)),se=require(_0x333065(0x585)),j=require(_0x333065(0x4e2)),et=require(_0x333065(0x3ba)),te=require(_0x333065(0x502)),P=require(_0x333065(0x3af)),Kt=require('@univerjs/rpc'),Xt=require(_0x333065(0x271)),St='SNAPSHOT_SERVER_URL_KEY',qt=_0x333065(0x55f),vt=_0x333065(0x5a2),zt=_0x333065(0x4f8),Jt=0x7d0,gt=_0x333065(0x598),Zt=_0x333065(0x33d),mt=_0x333065(0x4ea),Qt=0x7530,Ge=_0x333065(0x449),ft=0x4e20,es=0x4e20,It='RETRY_CONNECTING_MAX_COUNT',ts=0x3,pt=_0x333065(0x204),ss=0x3e8,Ct=_0x333065(0x393),is='/universer-api/comb',Et=_0x333065(0x275),ns=_0x333065(0x4ac);var bt=(_0x3b9b97=>(_0x3b9b97[_0x3b9b97[_0x333065(0x577)]=0x0]=_0x333065(0x577),_0x3b9b97[_0x3b9b97['OK']=0x1]='OK',_0x3b9b97[_0x3b9b97['INTERNAL_ERROR']=0x2]=_0x333065(0x473),_0x3b9b97[_0x3b9b97['PERMISSION_DENIED']=0x3]=_0x333065(0x1b3),_0x3b9b97[_0x3b9b97[_0x333065(0x4bc)]=0x4]='NOT_FOUND',_0x3b9b97[_0x3b9b97['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x3b9b97[_0x3b9b97['ALREADY_EXISTS']=0x6]=_0x333065(0x2ef),_0x3b9b97[_0x3b9b97[_0x333065(0x35d)]=0x7]=_0x333065(0x35d),_0x3b9b97[_0x3b9b97[_0x333065(0x4be)]=0x8]=_0x333065(0x4be),_0x3b9b97[_0x3b9b97[_0x333065(0x25f)]=0x9]='COMPLETION_FINISHED',_0x3b9b97[_0x3b9b97[_0x333065(0x49f)]=0x1389]=_0x333065(0x49f),_0x3b9b97[_0x3b9b97[_0x333065(0x208)]=0x1771]=_0x333065(0x208),_0x3b9b97[_0x3b9b97[_0x333065(0x53a)]=0x1772]=_0x333065(0x53a),_0x3b9b97[_0x3b9b97[_0x333065(0x1e0)]=0x1773]=_0x333065(0x1e0),_0x3b9b97[_0x3b9b97[_0x333065(0x4ef)]=0x1b59]=_0x333065(0x4ef),_0x3b9b97[_0x3b9b97[_0x333065(0x29c)]=0x1b5a]=_0x333065(0x29c),_0x3b9b97[_0x3b9b97[_0x333065(0x267)]=0x1b5b]=_0x333065(0x267),_0x3b9b97[_0x3b9b97[_0x333065(0x25b)]=0x1b5c]=_0x333065(0x25b),_0x3b9b97[_0x3b9b97[_0x333065(0x352)]=0x1b5d]=_0x333065(0x352),_0x3b9b97[_0x3b9b97[_0x333065(0x314)]=0x1f41]=_0x333065(0x314),_0x3b9b97[_0x3b9b97[_0x333065(0x1f5)]=0x2329]=_0x333065(0x1f5),_0x3b9b97[_0x3b9b97[_0x333065(0x3d7)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3b9b97[_0x3b9b97[_0x333065(0x307)]=0x232b]=_0x333065(0x307),_0x3b9b97[_0x3b9b97[_0x333065(0x496)]=0x232c]=_0x333065(0x496),_0x3b9b97[_0x3b9b97['LICENSE_DISTRO_REJECTED']=0x232d]=_0x333065(0x26d),_0x3b9b97[_0x3b9b97[_0x333065(0x3ea)]=0x2711]=_0x333065(0x3ea),_0x3b9b97[_0x3b9b97[_0x333065(0x560)]=0x2712]=_0x333065(0x560),_0x3b9b97[_0x3b9b97[_0x333065(0x3e0)]=0x2713]=_0x333065(0x3e0),_0x3b9b97[_0x3b9b97[_0x333065(0x486)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3b9b97[_0x3b9b97[_0x333065(0x252)]=-0x1]='UNRECOGNIZED',_0x3b9b97))(bt||{}),$=(_0x398cfc=>(_0x398cfc[_0x398cfc[_0x333065(0x2d6)]=0x0]=_0x333065(0x2d6),_0x398cfc[_0x398cfc[_0x333065(0x56f)]=0x1]='UNIVER_DOC',_0x398cfc[_0x398cfc['UNIVER_SHEET']=0x2]=_0x333065(0x42f),_0x398cfc[_0x398cfc[_0x333065(0x561)]=0x3]=_0x333065(0x561),_0x398cfc[_0x398cfc[_0x333065(0x4e7)]=0x4]=_0x333065(0x4e7),_0x398cfc[_0x398cfc[_0x333065(0x252)]=-0x1]=_0x333065(0x252),_0x398cfc))($||{}),b=(_0x14f158=>(_0x14f158[_0x14f158[_0x333065(0x3de)]=0x0]=_0x333065(0x3de),_0x14f158[_0x14f158[_0x333065(0x4d6)]=0x1]=_0x333065(0x4d6),_0x14f158[_0x14f158['JOIN']=0x2]='JOIN',_0x14f158[_0x14f158[_0x333065(0x53b)]=0x3]=_0x333065(0x53b),_0x14f158[_0x14f158[_0x333065(0x1f0)]=0x4]='INGEST',_0x14f158[_0x14f158[_0x333065(0x50e)]=0x5]='HEARTBEAT',_0x14f158[_0x14f158[_0x333065(0x4dc)]=0x6]=_0x333065(0x4dc),_0x14f158[_0x14f158['UNRECOGNIZED']=-0x1]=_0x333065(0x252),_0x14f158))(b||{}),Ye=(_0x4deb15=>(_0x4deb15[_0x4deb15[_0x333065(0x4d5)]=0x0]=_0x333065(0x4d5),_0x4deb15[_0x4deb15['OK']=0x1]='OK',_0x4deb15[_0x4deb15[_0x333065(0x4a4)]=0x2]='FAIL',_0x4deb15[_0x4deb15['UNRECOGNIZED']=-0x1]=_0x333065(0x252),_0x4deb15))(Ye||{}),Tt=(_0x31edcc=>(_0x31edcc[_0x31edcc['Undefined']=0x0]=_0x333065(0x27d),_0x31edcc[_0x31edcc[_0x333065(0x19d)]=0x1]='HttpImport',_0x31edcc[_0x31edcc[_0x333065(0x356)]=0x2]=_0x333065(0x356),_0x31edcc[_0x31edcc['UnitEmbedded']=0x3]=_0x333065(0x39a),_0x31edcc[_0x31edcc[_0x333065(0x1d0)]=0x4]=_0x333065(0x1d0),_0x31edcc[_0x31edcc[_0x333065(0x252)]=-0x1]=_0x333065(0x252),_0x31edcc))(Tt||{});const L='collaboration-client.config',rs={};function Rt(_0x5712c7){const _0x3289d1=_0x333065;var _0x127114,_0x391a53,_0x4c9375,_0x55bdc0;const _0x57ab9b=_0x5712c7['data'],_0x40fdee=JSON[_0x3289d1(0x373)](_0x57ab9b);switch(_0x40fdee[_0x3289d1(0x192)]){case b[_0x3289d1(0x50e)]:case b['HELLO']:{const _0x1426b6=_0x40fdee[_0x3289d1(0x4a9)];return{..._0x40fdee,'data':_0x1426b6,'cmd':_0x40fdee[_0x3289d1(0x192)]};}case b[_0x3289d1(0x2ed)]:{const _0x426a13=_0x40fdee['joinRsp'];return{..._0x40fdee,'data':_0x426a13,'cmd':_0x40fdee['cmd']};}case b[_0x3289d1(0x4dc)]:{const _0x421ef7=_0x40fdee[_0x3289d1(0x2bb)];switch(_0x421ef7['eventID']){case _[_0x3289d1(0x2ff)]['PERMISSION_REJ']:return{..._0x40fdee,'data':{..._0x421ef7,'data':(_0x127114=_0x421ef7[_0x3289d1(0x2b8)])==null?void 0x0:_0x127114['cs']},'cmd':_0x40fdee[_0x3289d1(0x192)]};case _[_0x3289d1(0x2ff)][_0x3289d1(0x4eb)]:return{..._0x40fdee,'data':{..._0x421ef7,'data':(_0x391a53=_0x421ef7['csAckEvent'])==null?void 0x0:_0x391a53['cs']},'cmd':_0x40fdee[_0x3289d1(0x192)]};case _[_0x3289d1(0x2ff)][_0x3289d1(0x56d)]:return{..._0x40fdee,'data':{..._0x421ef7,'data':(_0x4c9375=_0x421ef7[_0x3289d1(0x461)])==null?void 0x0:_0x4c9375['cs']},'cmd':_0x40fdee[_0x3289d1(0x192)]};case _['CollaborationEvent'][_0x3289d1(0x2f5)]:return{..._0x40fdee,'data':{..._0x421ef7,'data':(_0x55bdc0=_0x421ef7[_0x3289d1(0x443)])==null?void 0x0:_0x55bdc0['cs']},'cmd':_0x40fdee[_0x3289d1(0x192)]};case _['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x40fdee,'data':{..._0x421ef7,'data':_0x421ef7[_0x3289d1(0x534)]},'cmd':_0x40fdee['cmd']};case _[_0x3289d1(0x2ff)][_0x3289d1(0x484)]:return{..._0x40fdee,'data':{..._0x421ef7,'data':_0x421ef7[_0x3289d1(0x40d)]},'cmd':_0x40fdee[_0x3289d1(0x192)]};case _[_0x3289d1(0x2ff)]['USERS_LEAVE']:return{..._0x40fdee,'data':{..._0x421ef7,'data':_0x421ef7[_0x3289d1(0x4d0)]},'cmd':_0x40fdee[_0x3289d1(0x192)]};case _[_0x3289d1(0x2ff)][_0x3289d1(0x19e)]:return{..._0x40fdee,'data':{..._0x421ef7,'data':_0x421ef7[_0x3289d1(0x541)]},'cmd':_0x40fdee[_0x3289d1(0x192)]};case _[_0x3289d1(0x2ff)][_0x3289d1(0x38b)]:case _[_0x3289d1(0x2ff)]['LIVESHARE_OPERATION']:return{..._0x40fdee,'data':{..._0x421ef7,'data':_0x421ef7[_0x3289d1(0x4b7)]},'cmd':_0x40fdee['cmd']};case _[_0x3289d1(0x2ff)][_0x3289d1(0x3d5)]:return{..._0x40fdee,'data':{..._0x421ef7,'data':_0x421ef7['liveShareNewHost']},'cmd':_0x40fdee[_0x3289d1(0x192)]};case _[_0x3289d1(0x2ff)][_0x3289d1(0x19a)]:return{..._0x40fdee,'data':_0x421ef7,'cmd':_0x40fdee['cmd']};case _['CollaborationEvent'][_0x3289d1(0x2a2)]:return{..._0x40fdee,'data':{..._0x421ef7,'data':_0x421ef7[_0x3289d1(0x179)]},'cmd':_0x40fdee['cmd']};case _[_0x3289d1(0x2ff)][_0x3289d1(0x342)]:return{..._0x40fdee,'data':{..._0x421ef7,'data':_0x421ef7[_0x3289d1(0x588)]},'cmd':_0x40fdee['cmd']};case _[_0x3289d1(0x2ff)][_0x3289d1(0x52f)]:return{..._0x40fdee,'data':{..._0x421ef7,'data':_0x421ef7['shouldCloseConn']},'cmd':_0x40fdee[_0x3289d1(0x192)]};default:return _0x40fdee;}}default:return _0x40fdee;}}function Ot(_0x452e35){const _0x930c47=_0x333065;switch(_0x452e35['cmd']){case b['HEARTBEAT']:case b[_0x930c47(0x4d6)]:return JSON['stringify']({'cmd':_0x452e35[_0x930c47(0x192)],'routeKey':_0x452e35[_0x930c47(0x452)]});case b['INGEST']:{let _0x564030;switch(_0x452e35[_0x930c47(0x549)]['eventID']){case _[_0x930c47(0x2ff)][_0x930c47(0x2e6)]:{_0x564030={'eventID':_[_0x930c47(0x2ff)]['UPDATE_CURSOR'],'updateCursorEvent':_0x452e35[_0x930c47(0x549)]['data']};break;}case _[_0x930c47(0x2ff)][_0x930c47(0x59d)]:{_0x564030={'eventID':_[_0x930c47(0x2ff)]['USERS_LEAVE'],'leaveEvent':_0x452e35[_0x930c47(0x549)]['data']};break;}case _[_0x930c47(0x2ff)][_0x930c47(0x484)]:{_0x564030={'eventID':_[_0x930c47(0x2ff)][_0x930c47(0x484)],'joinEvent':_0x452e35[_0x930c47(0x549)][_0x930c47(0x549)]};break;}case _[_0x930c47(0x2ff)][_0x930c47(0x19e)]:{_0x564030={'eventID':_[_0x930c47(0x2ff)][_0x930c47(0x19e)],'liveShareNewHost':_0x452e35[_0x930c47(0x549)][_0x930c47(0x549)]};break;}case _[_0x930c47(0x2ff)][_0x930c47(0x54c)]:{_0x564030={'eventID':_[_0x930c47(0x2ff)][_0x930c47(0x54c)],'liveShareOperation':_0x452e35[_0x930c47(0x549)][_0x930c47(0x549)]};break;}case _[_0x930c47(0x2ff)][_0x930c47(0x3d5)]:{_0x564030={'eventID':_[_0x930c47(0x2ff)][_0x930c47(0x3d5)],'liveShareTerminate':_0x452e35[_0x930c47(0x549)]['data']};break;}case _[_0x930c47(0x2ff)]['LIVESHARE_REQUEST_HOST']:{_0x564030={'eventID':_['CollaborationEvent'][_0x930c47(0x1e1)],'liveShareRequestHost':_0x452e35[_0x930c47(0x549)]['data']};break;}case _[_0x930c47(0x2ff)][_0x930c47(0x38b)]:{_0x564030={'eventID':_[_0x930c47(0x2ff)][_0x930c47(0x38b)]};break;}default:_0x564030={'eventID':_0x452e35[_0x930c47(0x549)][_0x930c47(0x285)]};}return JSON['stringify']({'cmd':_0x452e35[_0x930c47(0x192)],'routeKey':_0x452e35[_0x930c47(0x452)],'collaMsg':_0x564030});}case b[_0x930c47(0x2ed)]:return JSON[_0x930c47(0x184)]({'cmd':_0x452e35[_0x930c47(0x192)],'routeKey':_0x452e35[_0x930c47(0x452)],'joinReq':_0x452e35[_0x930c47(0x549)]});case b[_0x930c47(0x53b)]:return JSON[_0x930c47(0x184)]({'cmd':_0x452e35['cmd'],'routeKey':_0x452e35[_0x930c47(0x452)],'leaveReq':_0x452e35['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var os=Object['defineProperty'],as=Object[_0x333065(0x378)],cs=(_0x230d4b,_0x453e91,_0x4d7570,_0x160e34)=>{const _0x10e314=_0x333065;for(var _0x47e193=_0x160e34>0x1?void 0x0:_0x160e34?as(_0x453e91,_0x4d7570):_0x453e91,_0x173ca5=_0x230d4b[_0x10e314(0x255)]-0x1,_0x2190c5;_0x173ca5>=0x0;_0x173ca5--)(_0x2190c5=_0x230d4b[_0x173ca5])&&(_0x47e193=(_0x160e34?_0x2190c5(_0x453e91,_0x4d7570,_0x47e193):_0x2190c5(_0x47e193))||_0x47e193);return _0x160e34&&_0x47e193&&os(_0x453e91,_0x4d7570,_0x47e193),_0x47e193;},ae=(_0x1855bc,_0x20676a)=>(_0x21ec77,_0x1b40c6)=>_0x20676a(_0x21ec77,_0x1b40c6,_0x1855bc);const Ke=a[_0x333065(0x1bd)](_0x333065(0x302));function ls(_0x12cb3a,_0x1c3470,_0x315d5f){const _0x21e5d4=_0x333065;return _0x12cb3a+'/'+_0x1c3470+_0x21e5d4(0x488)+_0x315d5f+_0x21e5d4(0x4a0);}exports[_0x333065(0x1c0)]=class extends a[_0x333065(0x1cc)]{constructor(_0x2789c4,_0xd37d59,_0x14a211,_0x2ce85d,_0x413417){const _0x1d0a4b=_0x333065;super(),this[_0x1d0a4b(0x3dd)]=_0x2789c4,this[_0x1d0a4b(0x2c3)]=_0xd37d59,this['_configService']=_0x14a211,this[_0x1d0a4b(0x566)]=_0x2ce85d,this['_snapshotServerService']=_0x413417;}[_0x333065(0x1e4)](_0x555e9f){const _0x15dca9=_0x333065,_0x158cf0=this[_0x15dca9(0x2c3)][_0x15dca9(0x1e4)](_0x555e9f);if(!_0x158cf0)throw new Error(_0x15dca9(0x21a));const _0x563cd1=new a[(_0x15dca9(0x365))](),_0x16e413=new v[(_0x15dca9(0x1df))]();_0x563cd1[_0x15dca9(0x440)](_0x158cf0[_0x15dca9(0x34c)]['subscribe'](_0x3b9c91=>_0x16e413[_0x15dca9(0x580)](_0x3b9c91))),_0x563cd1[_0x15dca9(0x440)](a[_0x15dca9(0x227)](()=>_0x16e413[_0x15dca9(0x2de)]()));const _0x3d6ab1=new v['Subject']();_0x563cd1['add'](_0x158cf0[_0x15dca9(0x30b)]['subscribe'](_0x10a74b=>_0x3d6ab1[_0x15dca9(0x580)](_0x10a74b))),_0x563cd1[_0x15dca9(0x440)](a[_0x15dca9(0x227)](()=>_0x3d6ab1[_0x15dca9(0x2de)]()));const _0x41c34b=new v[(_0x15dca9(0x1df))]();_0x563cd1[_0x15dca9(0x440)](_0x158cf0['message$'][_0x15dca9(0x242)](_0x177b05=>{const _0xc0cc31=_0x15dca9,_0x9a664e=Rt(_0x177b05);_0x41c34b[_0xc0cc31(0x580)](_0x9a664e);})),_0x563cd1['add'](a[_0x15dca9(0x227)](()=>_0x41c34b[_0x15dca9(0x2de)]()));let _0x162f0d;const _0x565a51=()=>{const _0x46889d=_0x15dca9;_0x3d6ab1[_0x46889d(0x580)](new Event('connection\x20error')),_0x16e413['next'](new CloseEvent(_0x46889d(0x506))),_0x162f0d[_0x46889d(0x2c1)]();};return _0x162f0d={'memberID':'','close$':_0x16e413['asObservable'](),'error$':_0x3d6ab1[_0x15dca9(0x205)](),'open$':_0x158cf0[_0x15dca9(0x319)],'message$':_0x41c34b[_0x15dca9(0x205)](),'send':_0x20a805=>{const _0x5c79ff=_0x15dca9;if(_0x20a805[_0x5c79ff(0x192)]===b[_0x5c79ff(0x1f0)]){if(_0x20a805[_0x5c79ff(0x549)][_0x5c79ff(0x285)]===_[_0x5c79ff(0x2ff)][_0x5c79ff(0x230)]){this[_0x5c79ff(0x262)](_0x162f0d,_0x20a805[_0x5c79ff(0x549)])['catch'](_0x27ef78=>{const _0x3d116a=_0x5c79ff;this[_0x3d116a(0x566)][_0x3d116a(0x297)](_0x27ef78),_0x565a51();});return;}if(_0x20a805[_0x5c79ff(0x549)]['eventID']===_[_0x5c79ff(0x2ff)][_0x5c79ff(0x22e)]){const _0x552f21=_0x20a805['data'];this[_0x5c79ff(0x178)](_0x552f21)[_0x5c79ff(0x3b8)](_0x23b325=>{const _0x16e9db=_0x5c79ff;_0x41c34b[_0x16e9db(0x580)]({'cmd':b[_0x16e9db(0x4dc)],'code':Ye['OK'],'routeKey':_0x552f21[_0x16e9db(0x549)][_0x16e9db(0x47f)],'routeType':'','data':{'eventID':_[_0x16e9db(0x2ff)][_0x16e9db(0x1d7)],'data':{'changesets':_0x23b325}}});})[_0x5c79ff(0x32d)](_0x1a0737=>{const _0x5219e3=_0x5c79ff;this['_logService'][_0x5219e3(0x297)](_0x1a0737),_0x565a51();});return;}}_0x158cf0[_0x5c79ff(0x531)](Ot(_0x20a805));},'close':()=>{_0x158cf0['close'](),_0x563cd1['dispose']();}},_0x162f0d;}async[_0x333065(0x262)](_0x59614a,_0xa22447){const _0x3dff37=_0x333065;var _0x33a501,_0x318d16;const {unitType:_0x39432d,unitID:_0x353613,changeset:_0x49167d}=_0xa22447['data'],_0x592f8a={'unitID':_0x353613,'memberID':_0x59614a['memberID'],'type':_0x39432d,'changeset':_[_0x3dff37(0x555)](_0x49167d)},_0x19f9fb=this[_0x3dff37(0x446)][_0x3dff37(0x180)](Ct),_0x19530c=this[_0x3dff37(0x446)]['getConfig'](L),_0x583796=ls((_0x318d16=(_0x33a501=_0x19530c==null?void 0x0:_0x19530c[_0x3dff37(0x1b8)])!=null?_0x33a501:_0x19f9fb)!=null?_0x318d16:is,_0x39432d,_0x353613);try{await this[_0x3dff37(0x3dd)][_0x3dff37(0x2e4)](_0x583796,{'body':_0x592f8a});}catch(_0x575424){throw this[_0x3dff37(0x566)][_0x3dff37(0x297)](_0x3dff37(0x4d2),_0x3dff37(0x1db)),_0x575424;}}async[_0x333065(0x178)](_0x1d200b){const _0x553a0c=_0x333065,{unitID:_0x31a6fa,from:_0x4951a6,to:_0x3e8bed,unitType:_0x2284b2}=_0x1d200b[_0x553a0c(0x549)];return(await this[_0x553a0c(0x296)][_0x553a0c(0x559)]({'metadata':void 0x0},{'unitID':_0x31a6fa,'type':_0x2284b2,'from':_0x4951a6,'to':_0x3e8bed}))[_0x553a0c(0x493)];}},exports['CollaborationSocketService']=cs([ae(0x0,a['Inject'](w['HTTPService'])),ae(0x1,a[_0x333065(0x520)](w[_0x333065(0x345)])),ae(0x2,a[_0x333065(0x256)]),ae(0x3,a[_0x333065(0x176)]),ae(0x4,_['ISnapshotServerService'])],exports[_0x333065(0x1c0)]);const hs=_0x333065(0x532);function _s(_0x361413){return JSON['stringify'](_0x361413)['length'];}class Xe{constructor(){const _0x21acdc=_0x333065;u(this,_0x21acdc(0x4df),new v['Subject']()),u(this,_0x21acdc(0x37d),this[_0x21acdc(0x4df)][_0x21acdc(0x205)]());}[_0x333065(0x348)](_0x1f84ee){const _0x5e36dc=_0x333065;this[_0x5e36dc(0x4df)][_0x5e36dc(0x580)](_0x1f84ee);}}var us=Object[_0x333065(0x2e3)],ds=Object[_0x333065(0x378)],Ss=(_0x16538e,_0x93adc4,_0x52a047,_0x503420)=>{const _0x1a8c47=_0x333065;for(var _0x37f990=_0x503420>0x1?void 0x0:_0x503420?ds(_0x93adc4,_0x52a047):_0x93adc4,_0x535e9b=_0x16538e[_0x1a8c47(0x255)]-0x1,_0x327d61;_0x535e9b>=0x0;_0x535e9b--)(_0x327d61=_0x16538e[_0x535e9b])&&(_0x37f990=(_0x503420?_0x327d61(_0x93adc4,_0x52a047,_0x37f990):_0x327d61(_0x37f990))||_0x37f990);return _0x503420&&_0x37f990&&us(_0x93adc4,_0x52a047,_0x37f990),_0x37f990;},tt=(_0x3f226f,_0x468c11)=>(_0x59139e,_0x46c360)=>_0x468c11(_0x59139e,_0x46c360,_0x3f226f);let q=class extends a[_0x333065(0x1cc)]{constructor(_0x5e5a52,_0x56d989){const _0x5e0c84=_0x333065;super(),u(this,_0x5e0c84(0x25d),new Map()),(this[_0x5e0c84(0x295)]=_0x5e5a52,this['_userManagerService']=_0x56d989,this['disposeWithMe'](a[_0x5e0c84(0x227)](v['merge'](this[_0x5e0c84(0x295)][_0x5e0c84(0x34a)](a[_0x5e0c84(0x298)][_0x5e0c84(0x42f)])['pipe'](E['map'](_0x3d8622=>_0x3d8622[_0x5e0c84(0x18e)]())),this[_0x5e0c84(0x295)][_0x5e0c84(0x34a)](a[_0x5e0c84(0x298)][_0x5e0c84(0x56f)])[_0x5e0c84(0x32e)](E[_0x5e0c84(0x501)](_0x33a399=>_0x33a399[_0x5e0c84(0x18e)]())),this[_0x5e0c84(0x295)][_0x5e0c84(0x34a)](a[_0x5e0c84(0x298)]['UNIVER_SLIDE'])[_0x5e0c84(0x32e)](E[_0x5e0c84(0x501)](_0x3ec57a=>_0x3ec57a['getUnitId']())))['subscribe'](_0x56270c=>this[_0x5e0c84(0x430)](_0x56270c)))));}['setCurrentUser'](_0x33c323){this['_userManagerService']['setCurrentUser'](_0x33c323);}[_0x333065(0x2a1)](){const _0x20852f=_0x333065;return this[_0x20852f(0x2dc)]['getCurrentUser']();}[_0x333065(0x424)](_0x22fdd1,_0x2f2707){const _0x4bb2b1=_0x333065;let _0x885347=this[_0x4bb2b1(0x25d)][_0x4bb2b1(0x3c0)](_0x22fdd1);_0x885347||(_0x885347=new vs(),this[_0x4bb2b1(0x25d)]['set'](_0x22fdd1,_0x885347)),_0x885347[_0x4bb2b1(0x424)](_0x2f2707);}[_0x333065(0x185)](_0x3e1fb9,_0x25abd7){const _0x1e34ea=_0x333065,_0x12b1b8=this[_0x1e34ea(0x25d)][_0x1e34ea(0x3c0)](_0x3e1fb9);_0x12b1b8&&_0x12b1b8[_0x1e34ea(0x185)](_0x25abd7);}[_0x333065(0x44b)](_0x23cf67){const _0x37445d=_0x333065;return this[_0x37445d(0x25d)][_0x37445d(0x3c0)](_0x23cf67);}[_0x333065(0x2f1)](_0x4b5afc,_0x2ba2d0){const _0x133938=_0x333065,_0x3673a4=this[_0x133938(0x25d)]['get'](_0x4b5afc);if(_0x3673a4)return _0x3673a4[_0x133938(0x2f1)](_0x2ba2d0);}[_0x333065(0x430)](_0x45c9ea){const _0x1fbdb8=_0x333065,_0x1151b4=this[_0x1fbdb8(0x25d)][_0x1fbdb8(0x3c0)](_0x45c9ea);_0x1151b4&&(_0x1151b4['dispose'](),this[_0x1fbdb8(0x25d)]['delete'](_0x45c9ea));}[_0x333065(0x487)](){const _0x2a0d63=_0x333065;this[_0x2a0d63(0x25d)][_0x2a0d63(0x1f8)](_0x3c7e99=>_0x3c7e99[_0x2a0d63(0x487)]()),this[_0x2a0d63(0x25d)][_0x2a0d63(0x2f0)]();}};q=Ss([tt(0x0,a[_0x333065(0x3c1)]),tt(0x1,a[_0x333065(0x520)](a[_0x333065(0x324)]))],q);class vs extends a[_0x333065(0x1cc)]{constructor(){super(...arguments),u(this,'_members',new Map());}[_0x333065(0x487)](){const _0x45aa98=_0x333065;this['_members'][_0x45aa98(0x2f0)]();}[_0x333065(0x424)](_0x593baf){const _0x5d1131=_0x333065;this[_0x5d1131(0x5a4)]['set'](_0x593baf['memberID'],_0x593baf);}[_0x333065(0x185)](_0x58375b){const _0x4f3ef3=_0x333065;this[_0x4f3ef3(0x5a4)][_0x4f3ef3(0x3cb)](_0x58375b);}[_0x333065(0x2f1)](_0xfd1d72){const _0x28b743=_0x333065;return this[_0x28b743(0x5a4)][_0x28b743(0x3c0)](_0xfd1d72);}}var gs=Object[_0x333065(0x2e3)],ms=Object['getOwnPropertyDescriptor'],fs=(_0x430185,_0x2edc1d,_0x55c65a,_0x2f473a)=>{for(var _0x103b9f=_0x2f473a>0x1?void 0x0:_0x2f473a?ms(_0x2edc1d,_0x55c65a):_0x2edc1d,_0x251fa6=_0x430185['length']-0x1,_0x22ba3a;_0x251fa6>=0x0;_0x251fa6--)(_0x22ba3a=_0x430185[_0x251fa6])&&(_0x103b9f=(_0x2f473a?_0x22ba3a(_0x2edc1d,_0x55c65a,_0x103b9f):_0x22ba3a(_0x103b9f))||_0x103b9f);return _0x2f473a&&_0x103b9f&&gs(_0x2edc1d,_0x55c65a,_0x103b9f),_0x103b9f;},V=(_0x40cbea,_0x3851a0)=>(_0x172e2c,_0x353c4c)=>_0x3851a0(_0x172e2c,_0x353c4c,_0x40cbea),H=(_0xca3a9c=>(_0xca3a9c[_0xca3a9c['IDLE']=0x0]=_0x333065(0x413),_0xca3a9c[_0xca3a9c['JOINING']=0x1]=_0x333065(0x1ee),_0xca3a9c[_0xca3a9c[_0x333065(0x407)]=0x2]=_0x333065(0x407),_0xca3a9c[_0xca3a9c[_0x333065(0x551)]=0x3]=_0x333065(0x551),_0xca3a9c))(H||{});exports[_0x333065(0x420)]=class extends a['RxDisposable']{constructor(_0x39f259,_0x83f4c5,_0x5381df,_0x1ab9ec,_0x278378,_0x3a43d2,_0x605220,_0x24f796,_0xde1d0,_0x279f7d){const _0x461cdb=_0x333065;super(),u(this,_0x461cdb(0x27b),new v[(_0x461cdb(0x4da))](0x0)),u(this,_0x461cdb(0x19b),this[_0x461cdb(0x27b)][_0x461cdb(0x205)]()),u(this,_0x461cdb(0x492),new v[(_0x461cdb(0x1df))]()),u(this,'event$',this[_0x461cdb(0x492)]['asObservable']()),u(this,_0x461cdb(0x26e)),u(this,_0x461cdb(0x428)),u(this,_0x461cdb(0x18b)),u(this,'_shouldReportTelemetry',!0x1),u(this,_0x461cdb(0x2f9),null),(this[_0x461cdb(0x4cc)]=_0x39f259,this[_0x461cdb(0x566)]=_0x5381df,this[_0x461cdb(0x197)]=_0x1ab9ec,this[_0x461cdb(0x3fa)]=_0x278378,this[_0x461cdb(0x446)]=_0x3a43d2,this[_0x461cdb(0x40f)]=_0x605220,this[_0x461cdb(0x23a)]=_0x24f796,this[_0x461cdb(0x1e2)]=_0xde1d0,this['_telemetryService']=_0x279f7d,this[_0x461cdb(0x260)]=!!this['_telemetryService'],_0x83f4c5[_0x461cdb(0x32e)](v[_0x461cdb(0x500)](this[_0x461cdb(0x3ec)]))[_0x461cdb(0x242)](_0x267662=>{const _0x1f3fe0=_0x461cdb;var _0x56c961;typeof _0x267662>'u'||(this[_0x1f3fe0(0x26e)]=_0x267662,_0x267662?(this[_0x1f3fe0(0x1a4)](_0x267662),this[_0x1f3fe0(0x428)]=_0x267662['message$'][_0x1f3fe0(0x242)](_0x12c626=>{const _0x13024d=_0x1f3fe0;_0x12c626['routeKey']===this['_unitID']&&this[_0x13024d(0x17a)](_0x12c626);})):(this[_0x1f3fe0(0x4fc)](),this[_0x1f3fe0(0x27b)][_0x1f3fe0(0x580)](0x2),(_0x56c961=this[_0x1f3fe0(0x428)])==null||_0x56c961[_0x1f3fe0(0x353)](),this[_0x1f3fe0(0x428)]=null));}),this[_0x461cdb(0x1c8)](this[_0x461cdb(0x197)][_0x461cdb(0x4fd)](()=>{const _0x28647a=_0x461cdb;var _0x35ac3e;(_0x35ac3e=this[_0x28647a(0x26e)])==null||_0x35ac3e['send']({'cmd':b['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x269060=_0x333065;return this[_0x269060(0x27b)][_0x269060(0x41d)]();}[_0x333065(0x499)](){const _0x294d5d=_0x333065;var _0xa367df,_0x534741;return(_0x534741=(_0xa367df=this['_socket'])==null?void 0x0:_0xa367df[_0x294d5d(0x22a)])!=null?_0x534741:null;}[_0x333065(0x487)](){const _0x3996e6=_0x333065;super['dispose'](),this[_0x3996e6(0x3ec)][_0x3996e6(0x580)](),this['dispose$']['complete']();}[_0x333065(0x2c1)](){const _0x308a2e=_0x333065;var _0x56b382,_0x3bffbd;this[_0x308a2e(0x4fc)](),(_0x56b382=this[_0x308a2e(0x26e)])==null||_0x56b382['send']({'cmd':b[_0x308a2e(0x53b)],'data':{'roomID':this[_0x308a2e(0x4cc)]}}),(_0x3bffbd=this[_0x308a2e(0x26e)])==null||_0x3bffbd[_0x308a2e(0x2c1)](),this[_0x308a2e(0x492)][_0x308a2e(0x2de)](),this['_sessionStatus$'][_0x308a2e(0x2de)](),this['dispose']();}['_onCombEvent'](_0xe55ed6){const _0x37bb22=_0x333065;_0xe55ed6[_0x37bb22(0x192)]===b[_0x37bb22(0x2ed)]?this['_onJoinRoomEvent'](_0xe55ed6):_0xe55ed6['cmd']===b[_0x37bb22(0x4dc)]&&this[_0x37bb22(0x283)](_0xe55ed6);}[_0x333065(0x1a4)](_0x110cad){const _0xba1472=_0x333065;this['_sessionStatus$'][_0xba1472(0x580)](0x1),_0x110cad[_0xba1472(0x531)]({'cmd':b[_0xba1472(0x2ed)],'routeKey':this[_0xba1472(0x4cc)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x333065(0x199)](_0x1a514c){const _0x3503c2=_0x333065;var _0xd7efa0;if(_0x1a514c[_0x3503c2(0x2b4)]===Ye['FAIL']){this['_messageService'][_0x3503c2(0x38e)]({'type':X['MessageType'][_0x3503c2(0x341)],'content':this[_0x3503c2(0x40f)]['t'](_0x3503c2(0x211))}),this[_0x3503c2(0x27b)][_0x3503c2(0x580)](0x2);return;}this[_0x3503c2(0x27b)][_0x3503c2(0x580)](0x3);const _0x303838=(_0xd7efa0=_0x1a514c[_0x3503c2(0x549)][_0x3503c2(0x309)][this[_0x3503c2(0x4cc)]])==null?void 0x0:_0xd7efa0[_0x3503c2(0x599)];_0x303838&&_0x303838['forEach'](_0x267f3c=>this[_0x3503c2(0x23a)][_0x3503c2(0x424)](this[_0x3503c2(0x4cc)],_0x267f3c));}[_0x333065(0x283)](_0x5430a5){const _0x5aab89=_0x333065;try{const _0x46ad65=_0x5430a5[_0x5aab89(0x549)];switch(_0x46ad65[_0x5aab89(0x285)]){case _['CollaborationEvent'][_0x5aab89(0x484)]:this[_0x5aab89(0x4b6)](_0x46ad65),this[_0x5aab89(0x492)][_0x5aab89(0x580)](_0x46ad65);break;case _['CollaborationEvent']['USERS_LEAVE']:this[_0x5aab89(0x512)](_0x46ad65),this[_0x5aab89(0x492)][_0x5aab89(0x580)](_0x46ad65);break;case _[_0x5aab89(0x2ff)][_0x5aab89(0x4eb)]:this[_0x5aab89(0x3d3)](),this[_0x5aab89(0x1b5)](),this[_0x5aab89(0x492)][_0x5aab89(0x580)](_0x46ad65);break;case _[_0x5aab89(0x2ff)]['MSG_FOR_ERROR']:this[_0x5aab89(0x566)][_0x5aab89(0x297)](_0x5aab89(0x44c)+JSON[_0x5aab89(0x184)](_0x46ad65)),this[_0x5aab89(0x492)][_0x5aab89(0x580)](_0x46ad65);break;case _[_0x5aab89(0x2ff)][_0x5aab89(0x2a2)]:this[_0x5aab89(0x1e2)]['onCommentUpdate'](_0x46ad65[_0x5aab89(0x549)]),this[_0x5aab89(0x492)][_0x5aab89(0x580)](_0x46ad65);break;default:this[_0x5aab89(0x492)]['next'](_0x46ad65);}}catch(_0x5d4c10){this['_logService'][_0x5aab89(0x297)](_0x5d4c10,_0x5430a5);}}[_0x333065(0x4b6)](_0x819a3){const _0x48907c=_0x333065;this[_0x48907c(0x23a)][_0x48907c(0x424)](this['_unitID'],_0x819a3[_0x48907c(0x549)]);}[_0x333065(0x512)](_0x3ab227){const _0x4a3286=_0x333065;this[_0x4a3286(0x23a)][_0x4a3286(0x185)](this[_0x4a3286(0x4cc)],_0x3ab227[_0x4a3286(0x549)][_0x4a3286(0x22a)]);}async[_0x333065(0x531)](_0x3c7938,_0x5dad7c){const _0x249964=_0x333065;if(this['sessionStatus']!==0x3||!this[_0x249964(0x26e)])throw new Error(_0x249964(0x1ed));try{_0x3c7938[_0x249964(0x285)]===_['CollaborationEvent'][_0x249964(0x230)]&&(this[_0x249964(0x236)](),this['_startTelemetryCollaborationNewChangeset'](_0x3c7938)),this['_socket'][_0x249964(0x531)]({'cmd':b['INGEST'],'routeKey':_0x5dad7c,'routeType':'','data':_0x3c7938});}catch(_0x24d5f0){this['_logService'][_0x249964(0x297)](_0x24d5f0);}}[_0x333065(0x236)](){const _0x5908f0=_0x333065;var _0x173e06;this['_collaborationTimeoutTimer']=window[_0x5908f0(0x58a)](()=>{const _0x4b87cc=_0x5908f0;this[_0x4b87cc(0x18b)]=null,this[_0x4b87cc(0x3fa)][_0x4b87cc(0x38e)]({'type':X[_0x4b87cc(0x24d)]['Error'],'content':this[_0x4b87cc(0x40f)]['t'](_0x4b87cc(0x400))});},(_0x173e06=this['_configService']['getConfig'](Ge))!=null?_0x173e06:ft);}[_0x333065(0x1b5)](){const _0x479ec9=_0x333065;this[_0x479ec9(0x18b)]&&(clearTimeout(this[_0x479ec9(0x18b)]),this[_0x479ec9(0x18b)]=null);}[_0x333065(0x3c6)](_0x226d5c){const _0x22b95=_0x333065;if(!this[_0x22b95(0x260)])return;const {data:_0x30b575}=_0x226d5c,{unitID:_0x46a360,changeset:_0x343437}=_0x30b575,{mutations:_0x19c675,type:_0x175938}=_0x343437;this[_0x22b95(0x2f9)]={'unitId':_0x46a360,'type':_0x175938,'startTime':performance[_0x22b95(0x51d)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x19c675)};}[_0x333065(0x3d3)](){const _0x381392=_0x333065;if(this[_0x381392(0x260)]){if(!this[_0x381392(0x2f9)]){this[_0x381392(0x566)]['error'](_0x381392(0x4d2),_0x381392(0x1ae));return;}this[_0x381392(0x2f9)][_0x381392(0x51e)]=performance[_0x381392(0x51d)](),this[_0x381392(0x2f9)][_0x381392(0x409)]=this[_0x381392(0x2f9)]['stopTime']-this[_0x381392(0x2f9)]['startTime'],this[_0x381392(0x24a)][_0x381392(0x423)](hs,this['_telemetryInfo']),this[_0x381392(0x2f9)]=null;}}[_0x333065(0x4fc)](){const _0x140ae4=_0x333065;this[_0x140ae4(0x2f9)]=null;}},exports[_0x333065(0x420)]=fs([V(0x2,a[_0x333065(0x176)]),V(0x3,A[_0x333065(0x45c)]),V(0x4,A[_0x333065(0x3dc)]),V(0x5,a[_0x333065(0x256)]),V(0x6,a[_0x333065(0x520)](a[_0x333065(0x282)])),V(0x7,a[_0x333065(0x520)](q)),V(0x8,a[_0x333065(0x520)](Xe)),V(0x9,a[_0x333065(0x280)](Yt[_0x333065(0x202)]))],exports[_0x333065(0x420)]);var Is=Object[_0x333065(0x2e3)],ps=Object[_0x333065(0x378)],Cs=(_0x29396f,_0x483bf3,_0x41509b,_0x35c9b7)=>{const _0x3130cb=_0x333065;for(var _0x51d01f=_0x35c9b7>0x1?void 0x0:_0x35c9b7?ps(_0x483bf3,_0x41509b):_0x483bf3,_0x2163bf=_0x29396f[_0x3130cb(0x255)]-0x1,_0x1172ea;_0x2163bf>=0x0;_0x2163bf--)(_0x1172ea=_0x29396f[_0x2163bf])&&(_0x51d01f=(_0x35c9b7?_0x1172ea(_0x483bf3,_0x41509b,_0x51d01f):_0x1172ea(_0x51d01f))||_0x51d01f);return _0x35c9b7&&_0x51d01f&&Is(_0x483bf3,_0x41509b,_0x51d01f),_0x51d01f;},Z=(_0x304309,_0x363424)=>(_0xaa9391,_0x9ede8d)=>_0x363424(_0xaa9391,_0x9ede8d,_0x304309);exports[_0x333065(0x418)]=class extends a['Disposable']{constructor(_0x3e2f40,_0xe77c68,_0x301b1d,_0x85ece,_0x8fb290,_0x3794e2){const _0x2abc3c=_0x333065;super(),u(this,'_socket$',new v['BehaviorSubject'](void 0x0)),u(this,_0x2abc3c(0x57a),this[_0x2abc3c(0x36e)][_0x2abc3c(0x205)]()),u(this,_0x2abc3c(0x22d),null),u(this,'_sessions',new Map()),u(this,'_status$',new v[(_0x2abc3c(0x4da))](H['IDLE'])),u(this,_0x2abc3c(0x462),this['_status$'][_0x2abc3c(0x205)]()),u(this,_0x2abc3c(0x1b2),!0x1),u(this,_0x2abc3c(0x429)),u(this,'_retryCount',0x0),u(this,'_sendHeartbeatTimer'),u(this,_0x2abc3c(0x23b)),(this['_injector']=_0x3e2f40,this[_0x2abc3c(0x40f)]=_0xe77c68,this[_0x2abc3c(0x3fa)]=_0x301b1d,this[_0x2abc3c(0x566)]=_0x85ece,this[_0x2abc3c(0x446)]=_0x8fb290,this[_0x2abc3c(0x1f6)]=_0x3794e2,this[_0x2abc3c(0x2c2)]());}get[_0x333065(0x26e)](){const _0x1daf2a=_0x333065;return this['_socket$'][_0x1daf2a(0x41d)]();}[_0x333065(0x2c2)](){const _0x44baf1=_0x333065;this['_listenToOfflineEvent'](),this[_0x44baf1(0x2d1)]();}[_0x333065(0x487)](){const _0xb8ae9b=_0x333065;super[_0xb8ae9b(0x487)](),this[_0xb8ae9b(0x2da)][_0xb8ae9b(0x1f8)](_0x216722=>_0x216722['dispose']()),this[_0xb8ae9b(0x2da)][_0xb8ae9b(0x2f0)](),this[_0xb8ae9b(0x2fa)][_0xb8ae9b(0x2de)]();}async['requireSession'](_0x46e44b){const _0x3734a6=_0x333065;if(this['_sessions'][_0x3734a6(0x438)](_0x46e44b))return this[_0x3734a6(0x2da)][_0x3734a6(0x3c0)](_0x46e44b);this[_0x3734a6(0x586)]();const _0x3ae619=this['_injector'][_0x3734a6(0x2ca)](exports[_0x3734a6(0x420)],_0x46e44b,this[_0x3734a6(0x36e)]['asObservable']());return this[_0x3734a6(0x2da)][_0x3734a6(0x24c)](_0x46e44b,_0x3ae619),_0x3ae619;}[_0x333065(0x3b4)](_0xb61c7b){const _0x18db7f=_0x333065;var _0x525a4e;const _0x350a5f=this[_0x18db7f(0x2da)][_0x18db7f(0x3c0)](_0xb61c7b);_0x350a5f&&(this[_0x18db7f(0x2da)][_0x18db7f(0x3cb)](_0xb61c7b),_0x350a5f[_0x18db7f(0x2c1)]()),this[_0x18db7f(0x2da)][_0x18db7f(0x233)]||(_0x525a4e=this[_0x18db7f(0x26e)])==null||_0x525a4e['close']();}['reconnect'](){const _0x202c3f=_0x333065;this[_0x202c3f(0x510)]=0x0,this[_0x202c3f(0x429)]!=null&&(clearTimeout(this[_0x202c3f(0x429)]),this[_0x202c3f(0x429)]=null),this['_tryReconnect']();}[_0x333065(0x2db)](){const _0x2ead03=_0x333065;var _0x253693,_0x648fed;const _0x261e9b=this[_0x2ead03(0x446)]['getConfig'](gt),_0x190cbf=this[_0x2ead03(0x446)][_0x2ead03(0x180)](L),_0x1cfd4a=(_0x648fed=(_0x253693=_0x190cbf==null?void 0x0:_0x190cbf['collabWebSocketUrl'])!=null?_0x253693:_0x261e9b)!=null?_0x648fed:Zt,_0x1d2826=this['_socketService'][_0x2ead03(0x1e4)](_0x1cfd4a);return this[_0x2ead03(0x22d)]=_0x1d2826,_0x1d2826;}[_0x333065(0x586)](){const _0x213068=_0x333065;var _0x4ca34a,_0x4fa216;try{const _0x21af34=(_0x4fa216=(_0x4ca34a=this[_0x213068(0x26e)])!=null?_0x4ca34a:this['_candidateSocket'])!=null?_0x4fa216:this[_0x213068(0x2db)]();if(_0x21af34){const _0x121525=_0x21af34['send'];_0x21af34[_0x213068(0x531)]=_0xefc0c6=>(this[_0x213068(0x4ae)](),_0x121525['apply'](_0x21af34,[_0xefc0c6])),_0x21af34['message$'][_0x213068(0x242)](_0x4512f8=>this[_0x213068(0x17f)](_0x21af34,_0x4512f8)),_0x21af34[_0x213068(0x30b)][_0x213068(0x32e)](E[_0x213068(0x4c8)](0x1))[_0x213068(0x242)](_0x3ed48b=>this[_0x213068(0x566)]['error'](_0x213068(0x2d2),_0x3ed48b)),_0x21af34[_0x213068(0x319)][_0x213068(0x32e)](E[_0x213068(0x4c8)](0x1))[_0x213068(0x242)](()=>{const _0x146cf1=_0x213068;this[_0x146cf1(0x277)](_0x21af34);}),_0x21af34[_0x213068(0x34c)][_0x213068(0x32e)](E[_0x213068(0x4c8)](0x1))[_0x213068(0x242)](_0x56ce51=>{const _0x12484a=_0x213068;this[_0x12484a(0x566)][_0x12484a(0x597)](_0x12484a(0x375),_0x12484a(0x210),_0x56ce51),this['_onConnectionFailed']();});}}catch(_0x2cf0ae){this[_0x213068(0x566)]['error'](_0x2cf0ae),this[_0x213068(0x4f4)]();}}[_0x333065(0x277)](_0x327791){const _0x44ceb6=_0x333065;this[_0x44ceb6(0x566)][_0x44ceb6(0x597)](_0x44ceb6(0x375),_0x44ceb6(0x38c)),_0x327791['send']({'cmd':b['HELLO']}),this[_0x44ceb6(0x4ae)]();}['_listenToOfflineEvent'](){const _0x5f154b=_0x333065;window['addEventListener']('offline',()=>this[_0x5f154b(0x589)]());}[_0x333065(0x589)](){const _0x51444f=_0x333065;this[_0x51444f(0x1b2)]=!0x1,this[_0x51444f(0x22d)]=null,this['_status$']['next'](H[_0x51444f(0x407)]),this[_0x51444f(0x36e)][_0x51444f(0x580)](null),this[_0x51444f(0x23d)](),this[_0x51444f(0x3ee)]();}[_0x333065(0x4f4)](){const _0x131e37=_0x333065;var _0x34d7c6;this[_0x131e37(0x589)](),this[_0x131e37(0x510)]<((_0x34d7c6=this[_0x131e37(0x446)]['getConfig'](It))!=null?_0x34d7c6:ts)?(this[_0x131e37(0x3fa)]['show']({'key':_0x131e37(0x3bf),'type':X['MessageType'][_0x131e37(0x341)],'content':this[_0x131e37(0x40f)]['t'](_0x131e37(0x214))}),this['_tryReconnect']()):this[_0x131e37(0x3fa)]['show']({'key':_0x131e37(0x3bf),'type':X['MessageType'][_0x131e37(0x2a0)],'content':this[_0x131e37(0x40f)]['t']('session.connection-failed')});}[_0x333065(0x2d1)](){const _0x771896=_0x333065,_0x5a3a0c=()=>{const _0x5248eb=_0x2204;this[_0x5248eb(0x26e)]||this[_0x5248eb(0x46b)]();},_0x5d0055=()=>{const _0x6889be=_0x2204;this[_0x6889be(0x26e)]||document[_0x6889be(0x522)]==='hidden'||this[_0x6889be(0x46b)]();};window[_0x771896(0x3a5)]('online',_0x5a3a0c),document[_0x771896(0x3a5)]('visibilitychange',_0x5d0055);}['_tryReconnect'](){const _0x242eb7=_0x333065;var _0x468922;const _0x522cdf=this['_retryCount'],_0x27cd99=this[_0x242eb7(0x446)][_0x242eb7(0x180)](L),_0x410b8d=_0x522cdf===0x0?0x0:((_0x468922=_0x27cd99==null?void 0x0:_0x27cd99[_0x242eb7(0x468)])!=null?_0x468922:es)*0x2**_0x522cdf;this['_retryConnectingTimer']=window[_0x242eb7(0x58a)](()=>{const _0x2654d6=_0x242eb7;clearTimeout(this[_0x2654d6(0x429)]),this[_0x2654d6(0x429)]=null,this[_0x2654d6(0x586)]();},_0x410b8d),this['_retryCount']+=0x1;}['_onMessage'](_0x687bc0,_0x4545f3){const _0x58290b=_0x333065,{cmd:_0x53da1f}=_0x4545f3;_0x53da1f===b[_0x58290b(0x4d6)]&&!this[_0x58290b(0x1b2)]&&(_0x687bc0['memberID']=_0x4545f3[_0x58290b(0x549)][_0x58290b(0x22a)],this['_socket$'][_0x58290b(0x580)](_0x687bc0),this[_0x58290b(0x2fa)]['next'](H[_0x58290b(0x551)]),this[_0x58290b(0x1b2)]=!0x0,this[_0x58290b(0x22d)]=null),_0x53da1f===b['HEARTBEAT']&&this['_clearTimeoutTimer'](),this[_0x58290b(0x4ae)]();}[_0x333065(0x4ae)](){const _0x19b14e=_0x333065;var _0x3ac1cb;this[_0x19b14e(0x3ee)](),this['_sendHeartbeatTimer']=window[_0x19b14e(0x58a)](()=>this['_sendHeartbeat'](),(_0x3ac1cb=this[_0x19b14e(0x446)][_0x19b14e(0x180)](mt))!=null?_0x3ac1cb:Qt);}['_sendHeartbeat'](){const _0x2405f1=_0x333065;this[_0x2405f1(0x26e)][_0x2405f1(0x531)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x3b5292=_0x333065;var _0x4ae87d;this[_0x3b5292(0x23b)]=window[_0x3b5292(0x58a)](()=>this[_0x3b5292(0x4f4)](),(_0x4ae87d=this[_0x3b5292(0x446)]['getConfig'](Ge))!=null?_0x4ae87d:ft);}['_clearHeartbeatTimer'](){const _0x537da6=_0x333065;this[_0x537da6(0x53f)]!=null&&(clearTimeout(this[_0x537da6(0x53f)]),this[_0x537da6(0x53f)]=null);}[_0x333065(0x23d)](){const _0x84f130=_0x333065;this[_0x84f130(0x23b)]!=null&&(clearTimeout(this[_0x84f130(0x23b)]),this[_0x84f130(0x23b)]=null);}},exports[_0x333065(0x418)]=Cs([Z(0x0,a[_0x333065(0x520)](a[_0x333065(0x347)])),Z(0x1,a[_0x333065(0x520)](a[_0x333065(0x282)])),Z(0x2,A['IMessageService']),Z(0x3,a[_0x333065(0x176)]),Z(0x4,a['IConfigService']),Z(0x5,Ke)],exports[_0x333065(0x418)]);var O=[];for(var Ue=0x0;Ue<0x100;++Ue)O[_0x333065(0x2b7)]((Ue+0x100)['toString'](0x10)[_0x333065(0x471)](0x1));function Es(_0x5f2758,_0x54147c=0x0){const _0x3a768d=_0x333065;return(O[_0x5f2758[_0x54147c+0x0]]+O[_0x5f2758[_0x54147c+0x1]]+O[_0x5f2758[_0x54147c+0x2]]+O[_0x5f2758[_0x54147c+0x3]]+'-'+O[_0x5f2758[_0x54147c+0x4]]+O[_0x5f2758[_0x54147c+0x5]]+'-'+O[_0x5f2758[_0x54147c+0x6]]+O[_0x5f2758[_0x54147c+0x7]]+'-'+O[_0x5f2758[_0x54147c+0x8]]+O[_0x5f2758[_0x54147c+0x9]]+'-'+O[_0x5f2758[_0x54147c+0xa]]+O[_0x5f2758[_0x54147c+0xb]]+O[_0x5f2758[_0x54147c+0xc]]+O[_0x5f2758[_0x54147c+0xd]]+O[_0x5f2758[_0x54147c+0xe]]+O[_0x5f2758[_0x54147c+0xf]])[_0x3a768d(0x381)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x371cbf=_0x333065;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x371cbf(0x483)]&&crypto['getRandomValues'][_0x371cbf(0x264)](crypto),!Se))throw new Error(_0x371cbf(0x582));return Se(bs);}var Rs=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x333065(0x384)]['bind'](crypto);const st={'randomUUID':Rs};function Os(_0x745e98,_0x3ac555,_0x23c909){const _0x3ea7a1=_0x333065;if(st[_0x3ea7a1(0x384)]&&!_0x3ac555&&!_0x745e98)return st[_0x3ea7a1(0x384)]();_0x745e98=_0x745e98||{};var _0x2427a4=_0x745e98['random']||(_0x745e98[_0x3ea7a1(0x21e)]||Ts)();return _0x2427a4[0x6]=_0x2427a4[0x6]&0xf|0x40,_0x2427a4[0x8]=_0x2427a4[0x8]&0x3f|0x80,Es(_0x2427a4);}var Ds=Object[_0x333065(0x2e3)],ys=Object['getOwnPropertyDescriptor'],Us=(_0x1026c1,_0x48ec09,_0x3ce986,_0x2d80f2)=>{const _0x5c32c4=_0x333065;for(var _0x129ab2=_0x2d80f2>0x1?void 0x0:_0x2d80f2?ys(_0x48ec09,_0x3ce986):_0x48ec09,_0x1c2a18=_0x1026c1[_0x5c32c4(0x255)]-0x1,_0x3183d5;_0x1c2a18>=0x0;_0x1c2a18--)(_0x3183d5=_0x1026c1[_0x1c2a18])&&(_0x129ab2=(_0x2d80f2?_0x3183d5(_0x48ec09,_0x3ce986,_0x129ab2):_0x3183d5(_0x129ab2))||_0x129ab2);return _0x2d80f2&&_0x129ab2&&Ds(_0x48ec09,_0x3ce986,_0x129ab2),_0x129ab2;},Pe=(_0x5aef09,_0x394e63)=>(_0x5ad9c9,_0x46f6f7)=>_0x394e63(_0x5ad9c9,_0x46f6f7,_0x5aef09);let fe=class{constructor(_0x46a8e8,_0x1e612b,_0x890cd4){const _0x24d1c1=_0x333065;this[_0x24d1c1(0x564)]=_0x46a8e8,this[_0x24d1c1(0x20c)]=_0x1e612b,this['_renderManagerService']=_0x890cd4;}[_0x333065(0x3c2)](_0x80954f){const _0x5b3a8b=_0x333065;this[_0x5b3a8b(0x2d5)](_0x80954f),this[_0x5b3a8b(0x1b1)](_0x80954f);}[_0x333065(0x43b)](_0x1dfdf3){const _0x48e009=_0x333065,{unitID:_0x1d7b44}=_0x1dfdf3,_0x4f36ed=this[_0x48e009(0x191)]['getRenderById'](_0x1d7b44)[_0x48e009(0x45f)](N[_0x48e009(0x55a)]),{redoCache:_0x249f19}=_0x4f36ed[_0x48e009(0x3f7)]();if(_0x249f19[_0x48e009(0x255)]===0x0)return _0x1dfdf3;let _0x4f14c9=a['Tools']['deepClone'](_0x1dfdf3[_0x48e009(0x4c9)][0x0]);for(let _0x411872=0x0;_0x411872<_0x249f19[_0x48e009(0x255)];_0x411872++){const _0x1f439b={'id':_0x48e009(0x317),'params':{..._0x249f19[_0x411872]}},_0xd34bde=this[_0x48e009(0x20c)][_0x48e009(0x28d)](_0x4f14c9,_0x1f439b,!0x1);if(_[_0x48e009(0x2cb)](_0xd34bde))throw _0xd34bde[_0x48e009(0x297)];_0x4f14c9=_0xd34bde[_0x48e009(0x1b9)];}return{...a[_0x48e009(0x36b)]['deepClone'](_0x1dfdf3),'mutations':[_0x4f14c9]};}[_0x333065(0x2d5)](_0x20d456){const _0x39507a=_0x333065,{unitID:_0x4fced5}=_0x20d456,_0x247811=this[_0x39507a(0x191)]['getRenderById'](_0x4fced5)['with'](N[_0x39507a(0x55a)]),{undoCache:_0xef4a0c,redoCache:_0x5d7e55}=_0x247811[_0x39507a(0x3f7)]();if(_0xef4a0c[_0x39507a(0x255)]===0x0||_0x5d7e55['length']===0x0)return;const _0x2cb5fc=[],_0x3a8353=[];let _0xc93680=a['Tools']['deepClone'](_0x20d456[_0x39507a(0x4c9)][0x0]),_0x30fa3a=a[_0x39507a(0x36b)][_0x39507a(0x4bd)](_0x20d456[_0x39507a(0x4c9)][0x0]);for(let _0x13afb2=_0xef4a0c['length']-0x1;_0x13afb2>=0x0;_0x13afb2--){const _0x2dab12={'id':_0x39507a(0x317),'params':{..._0xef4a0c[_0x13afb2]}},_0x305dc8={'id':_0x39507a(0x317),'params':{..._0x5d7e55[_0x13afb2]}},_0x577ab8=this[_0x39507a(0x20c)][_0x39507a(0x28d)](_0xc93680,_0x2dab12,!0x1),_0x178655=this['_transformService'][_0x39507a(0x28d)](_0x30fa3a,_0x305dc8,!0x1);if(_[_0x39507a(0x2cb)](_0x577ab8))throw _0x577ab8[_0x39507a(0x297)];if(_[_0x39507a(0x2cb)](_0x178655))throw _0x178655[_0x39507a(0x297)];_0x2cb5fc['unshift'](_0x577ab8[_0x39507a(0x54e)]['params']),_0x3a8353[_0x39507a(0x362)](_0x178655['m2Prime'][_0x39507a(0x3d6)]),_0xc93680=_0x577ab8[_0x39507a(0x1b9)],_0x30fa3a=_0x178655[_0x39507a(0x1b9)];}_0x247811[_0x39507a(0x44d)]({'undoCache':_0x2cb5fc,'redoCache':_0x3a8353});}[_0x333065(0x1b1)](_0x4049d8){const _0x33206c=_0x333065,{unitID:_0x6c4ed5}=_0x4049d8,_0x429b4a=this[_0x33206c(0x191)][_0x33206c(0x30e)](_0x6c4ed5)[_0x33206c(0x45f)](N[_0x33206c(0x55a)]),_0x38d3d7=_0x429b4a[_0x33206c(0x1a7)]();if(_0x38d3d7==null)return;const _0x2201d7=[{'id':_0x33206c(0x317),'params':{'unitId':_0x4049d8[_0x33206c(0x47f)],'actions':null,'textRanges':[_0x38d3d7]}}],_0x330497=this['_transformService']['transformMutationsWithChangeset'](_0x4049d8,_0x2201d7);if(!_[_0x33206c(0x41b)](_0x330497))throw _0x330497['error'];const _0x1af417=_0x330497[_0x33206c(0x54e)][0x0][_0x33206c(0x3d6)][_0x33206c(0x3a6)];Array[_0x33206c(0x281)](_0x1af417)&&_0x1af417[_0x33206c(0x255)]&&_0x429b4a[_0x33206c(0x288)](_0x1af417[0x0]);}};fe=Us([Pe(0x0,a[_0x333065(0x520)](a[_0x333065(0x347)])),Pe(0x1,_['ITransformService']),Pe(0x2,D[_0x333065(0x42a)])],fe);var Ps=Object[_0x333065(0x2e3)],ws=Object[_0x333065(0x378)],Ns=(_0x18c5db,_0x1f585b,_0x4f962c,_0x4af168)=>{const _0x5657d6=_0x333065;for(var _0x4eaa32=_0x4af168>0x1?void 0x0:_0x4af168?ws(_0x1f585b,_0x4f962c):_0x1f585b,_0x4b0642=_0x18c5db[_0x5657d6(0x255)]-0x1,_0x3f481b;_0x4b0642>=0x0;_0x4b0642--)(_0x3f481b=_0x18c5db[_0x4b0642])&&(_0x4eaa32=(_0x4af168?_0x3f481b(_0x1f585b,_0x4f962c,_0x4eaa32):_0x3f481b(_0x4eaa32))||_0x4eaa32);return _0x4af168&&_0x4eaa32&&Ps(_0x1f585b,_0x4f962c,_0x4eaa32),_0x4eaa32;},ce=(_0x34cfaa,_0x197037)=>(_0x32af39,_0x7ed0c3)=>_0x197037(_0x32af39,_0x7ed0c3,_0x34cfaa);exports[_0x333065(0x3f9)]=class extends a['Disposable']{constructor(_0x417129,_0x57f12e,_0x1254b1,_0x4c9f80,_0x218cde){const _0x21e9fb=_0x333065;super(),u(this,_0x21e9fb(0x215),new Map()),u(this,_0x21e9fb(0x485),new Map()),u(this,_0x21e9fb(0x1c4),!0x1),(this[_0x21e9fb(0x446)]=_0x417129,this[_0x21e9fb(0x50a)]=_0x57f12e,this['_beforeCloseService']=_0x1254b1,this['_localeService']=_0x4c9f80,this['_revisionService']=_0x218cde,this[_0x21e9fb(0x465)]());}[_0x333065(0x361)](){const _0x2ae870=_0x333065;this[_0x2ae870(0x1c4)]=!0x0;}[_0x333065(0x1ba)](){const _0x11fd86=_0x333065;this[_0x11fd86(0x1c4)]=!0x1;}[_0x333065(0x487)](){const _0x206b54=_0x333065;this[_0x206b54(0x3fd)]()[_0x206b54(0x3b8)](()=>super[_0x206b54(0x487)]());}async[_0x333065(0x3c8)](_0x3f9403){const _0x3ca179=_0x333065;return this[_0x3ca179(0x1c4)]?null:this[_0x3ca179(0x50a)][_0x3ca179(0x2a3)](it(_0x3f9403));}async['saveOfflineData'](_0x47500e,_0xe73f0a){const _0xe7af67=_0x333065;return!!this['_localStorageService'][_0xe7af67(0x20b)](_0x47500e,_0xe73f0a);}['updateOfflineData'](_0x339023,_0x11338a,_0x1a406e,_0x4e6235){const _0x16ef33=_0x333065,_0x4f03ea=this[_0x16ef33(0x31d)][_0x16ef33(0x3db)](_0x339023);this[_0x16ef33(0x215)][_0x16ef33(0x24c)](_0x339023,{'unitID':_0x339023,'type':_0x11338a,'awaitingChangeset':_0x1a406e,'mutations':_0x4e6235,'rev':_0x4f03ea}),this[_0x16ef33(0x485)][_0x16ef33(0x438)](_0x339023)||this[_0x16ef33(0x48d)](_0x339023);}[_0x333065(0x48d)](_0x3d0a32){const _0x305789=_0x333065,_0x60c4b=this[_0x305789(0x294)]();_0x60c4b===0x0?this['_saveCache'](_0x3d0a32):this[_0x305789(0x485)]['set'](_0x3d0a32,setTimeout(()=>this[_0x305789(0x451)](_0x3d0a32),_0x60c4b));}[_0x333065(0x294)](){const _0x9ed955=_0x333065;var _0x3b4a5c;return(_0x3b4a5c=this[_0x9ed955(0x446)][_0x9ed955(0x180)](pt))!=null?_0x3b4a5c:ss;}['_saveCache'](_0xfd5535){const _0xc59ac8=_0x333065,_0x462f35=this[_0xc59ac8(0x485)]['get'](_0xfd5535);return _0x462f35!==void 0x0&&window[_0xc59ac8(0x536)](_0x462f35),this['_localStorageService'][_0xc59ac8(0x20b)](it(_0xfd5535),this[_0xc59ac8(0x215)][_0xc59ac8(0x3c0)](_0xfd5535))['then'](()=>this[_0xc59ac8(0x485)][_0xc59ac8(0x3cb)](_0xfd5535));}async['exhaustSavingTask'](){const _0x5e4ae7=_0x333065,_0xee0e1f=[];this['_saveTaskMap'][_0x5e4ae7(0x1f8)]((_0x35fac3,_0x291740)=>{const _0x44878a=_0x5e4ae7;window[_0x44878a(0x536)](_0x35fac3),_0xee0e1f[_0x44878a(0x2b7)](this[_0x44878a(0x451)](_0x291740)[_0x44878a(0x3b8)](()=>{const _0x47afc6=_0x44878a;this[_0x47afc6(0x485)][_0x47afc6(0x3cb)](_0x291740);}));}),await Promise[_0x5e4ae7(0x2aa)](_0xee0e1f);}[_0x333065(0x465)](){const _0x257ca5=_0x333065;this[_0x257ca5(0x1c8)](this[_0x257ca5(0x197)][_0x257ca5(0x21b)](()=>{const _0x125694=_0x257ca5;if(this[_0x125694(0x485)]['size'])return this[_0x125694(0x40f)]['t'](_0x125694(0x23c));}));}},exports[_0x333065(0x3f9)]=Ns([ce(0x0,a['IConfigService']),ce(0x1,a[_0x333065(0x201)]),ce(0x2,A[_0x333065(0x45c)]),ce(0x3,a['Inject'](a['LocaleService'])),ce(0x4,a[_0x333065(0x520)](_[_0x333065(0x3ac)]))],exports[_0x333065(0x3f9)]);function it(_0x1f735d){const _0x178a03=_0x333065;return _0x178a03(0x326)+_0x1f735d;}var Ms=Object[_0x333065(0x2e3)],As=Object['getOwnPropertyDescriptor'],Ls=(_0x353996,_0x3f4338,_0xdbc137,_0x46c7a3)=>{for(var _0x9624fc=_0x46c7a3>0x1?void 0x0:_0x46c7a3?As(_0x3f4338,_0xdbc137):_0x3f4338,_0x4ae137=_0x353996['length']-0x1,_0x2450e1;_0x4ae137>=0x0;_0x4ae137--)(_0x2450e1=_0x353996[_0x4ae137])&&(_0x9624fc=(_0x46c7a3?_0x2450e1(_0x3f4338,_0xdbc137,_0x9624fc):_0x2450e1(_0x9624fc))||_0x9624fc);return _0x46c7a3&&_0x9624fc&&Ms(_0x3f4338,_0xdbc137,_0x9624fc),_0x9624fc;},we=(_0x266627,_0x18b3bc)=>(_0x53faf3,_0x4b96cb)=>_0x18b3bc(_0x53faf3,_0x4b96cb,_0x266627);function js(_0x36c7a8){const {unitID:_0x21daf7,mutations:_0x1d9604}=_0x36c7a8;return{'unitId':_0x21daf7,'subUnitId':_0x1d9604[0x0]['params']['subUnitId']};}let Ie=class{constructor(_0x5d8036,_0x3312d1,_0x19c516){const _0x2b4a22=_0x333065;this[_0x2b4a22(0x564)]=_0x5d8036,this['_transformService']=_0x3312d1,this[_0x2b4a22(0x4cf)]=_0x19c516;}[_0x333065(0x5a1)](_0x211f54){const _0x3474ac=_0x333065;var _0x3b8adf,_0x5caab0,_0xd687a2,_0x1fef9c;const _0x100fad=this['_injector']['get'](C[_0x3474ac(0x3b9)]),{unitId:_0x486f9d,subUnitId:_0x5dcafe}=js(_0x211f54),_0x2be24c=_0x100fad[_0x3474ac(0x56a)](_0x486f9d)['getCurrentSelections'](),_0x17d506=(_0x5caab0=(_0x3b8adf=this['_instanceService'][_0x3474ac(0x4a6)](_0x486f9d))==null?void 0x0:_0x3b8adf['getActiveSheet']())==null?void 0x0:_0x5caab0['getSheetId']();if(_0x2be24c[_0x3474ac(0x255)]===0x0||!_0x486f9d||!_0x5dcafe)return;const _0x10c985=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x486f9d,'subUnitId':_0x17d506,'selections':a[_0x3474ac(0x36b)][_0x3474ac(0x4bd)](_0x2be24c)}}],_0x407da3=this[_0x3474ac(0x20c)][_0x3474ac(0x51f)](_0x211f54,_0x10c985);if(!_[_0x3474ac(0x41b)](_0x407da3))throw _0x407da3[_0x3474ac(0x297)];const _0x53e60b=(_0x1fef9c=(_0xd687a2=_0x407da3[_0x3474ac(0x54e)][0x0])==null?void 0x0:_0xd687a2[_0x3474ac(0x3d6)])==null?void 0x0:_0x1fef9c[_0x3474ac(0x1a2)];if(Array[_0x3474ac(0x281)](_0x53e60b)&&_0x53e60b[_0x3474ac(0x255)]){if(_0x53e60b[_0x3474ac(0x255)]===_0x10c985[0x0][_0x3474ac(0x3d6)]['selections']['length']&&_0x53e60b['every']((_0x5b50cc,_0x40522f)=>a[_0x3474ac(0x41e)]['equals'](_0x5b50cc[_0x3474ac(0x29f)],_0x10c985[0x0][_0x3474ac(0x3d6)][_0x3474ac(0x1a2)][_0x40522f][_0x3474ac(0x29f)])))return;this[_0x3474ac(0x564)][_0x3474ac(0x3c0)](a[_0x3474ac(0x377)])[_0x3474ac(0x357)](C['SetSelectionsOperation']['id'],{'unitId':_0x486f9d,'subUnitId':_0x17d506,'selections':_0x53e60b});}}};Ie=Ls([we(0x0,a[_0x333065(0x520)](a['Injector'])),we(0x1,_[_0x333065(0x50b)]),we(0x2,a[_0x333065(0x3c1)])],Ie);const Re=a[_0x333065(0x1bd)](_0x333065(0x2a4));var Dt=(_0xf7029e=>(_0xf7029e[_0xf7029e[_0x333065(0x444)]=0x0]=_0x333065(0x444),_0xf7029e[_0xf7029e[_0x333065(0x39c)]=0x1]='OTHER_CLIENTS_EDITING',_0xf7029e))(Dt||{});const nt=0x7530,rt=_0x333065(0x43d);class $s extends a[_0x333065(0x1cc)]{constructor(){const _0x1df441=_0x333065;super(),u(this,'_id',a[_0x1df441(0x36b)][_0x1df441(0x24f)]()),u(this,_0x1df441(0x1cd),new Set()),u(this,_0x1df441(0x4c7),new Map()),u(this,_0x1df441(0x287),null),u(this,_0x1df441(0x4b3),new Map()),u(this,_0x1df441(0x460),new Map()),this[_0x1df441(0x52a)]();}['dispose'](){const _0x47e4ff=_0x333065;super['dispose'](),this['_clearOtherTimers'][_0x47e4ff(0x1f8)]((_0x201009,_0x49606e)=>this[_0x47e4ff(0x3f0)](_0x49606e)),this['_heartbeatTimer']&&window[_0x47e4ff(0x4a3)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x10fab1){const _0x14289b=_0x333065;return this[_0x14289b(0x371)](_0x10fab1)[_0x14289b(0x32e)](v['distinctUntilChanged']());}[_0x333065(0x503)](_0x1195d1){const _0x26aeb0=_0x333065;this['_selfUnitIDs'][_0x26aeb0(0x233)]===0x0&&this[_0x26aeb0(0x525)](),this[_0x26aeb0(0x1cd)][_0x26aeb0(0x440)](_0x1195d1),this[_0x26aeb0(0x1f1)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1195d1],'isForwarded':!0x1});}[_0x333065(0x1cb)](_0x3fffe1){const _0x40af56=_0x333065;this[_0x40af56(0x1cd)]['delete'](_0x3fffe1),this[_0x40af56(0x1cd)][_0x40af56(0x233)]===0x0&&this[_0x40af56(0x287)]&&window[_0x40af56(0x4a3)](this['_heartbeatTimer']);}[_0x333065(0x52a)](){const _0x406ce2=_0x333065;this['disposeWithMe'](a[_0x406ce2(0x227)](v['fromEvent'](window,_0x406ce2(0x189))[_0x406ce2(0x242)](_0x1bdcdd=>{const _0x30d1cc=_0x406ce2;if(_0x1bdcdd[_0x30d1cc(0x25c)]!==rt||!_0x1bdcdd[_0x30d1cc(0x34f)])return;const _0x216254=JSON[_0x30d1cc(0x373)](_0x1bdcdd['newValue']);this[_0x30d1cc(0x518)](_0x216254);}))),window[_0x406ce2(0x3a5)](_0x406ce2(0x1ec),()=>this[_0x406ce2(0x1f1)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x406ce2(0x387)](this[_0x406ce2(0x1cd)])}));}[_0x333065(0x518)](_0x11a851){const _0x54ab16=_0x333065;switch(_0x11a851[_0x54ab16(0x3c3)]){case 0x0:this[_0x54ab16(0x45a)](_0x11a851);break;case 0x1:this['_handleLeaveEvent'](_0x11a851);break;case 0x2:this[_0x54ab16(0x3c9)](_0x11a851);break;}}[_0x333065(0x45a)](_0x104618){const _0x7835c2=_0x333065,{unitIDs:_0x22b208,memberID:_0x2d9f12,isForwarded:_0x6bad72}=_0x104618;_0x22b208['forEach'](_0x489a77=>{const _0xcb1410=_0x2204;if(!_0x6bad72&&this[_0xcb1410(0x4c7)][_0xcb1410(0x438)](_0x489a77)&&this['_ensureSubject'](_0x489a77)[_0xcb1410(0x580)](0x1),!this[_0xcb1410(0x4c7)][_0xcb1410(0x438)](_0x489a77)||!this[_0xcb1410(0x4c7)][_0xcb1410(0x3c0)](_0x489a77)['has'](_0x2d9f12)){const _0x49ec0c=this['_unitOnClients'][_0xcb1410(0x3c0)](_0x489a77)||new Set();_0x49ec0c[_0xcb1410(0x440)](_0x2d9f12),this[_0xcb1410(0x4c7)][_0xcb1410(0x24c)](_0x489a77,_0x49ec0c),this[_0xcb1410(0x273)](_0x2d9f12);}}),_0x6bad72||this[_0x7835c2(0x1f1)]({'type':0x0,'memberID':this[_0x7835c2(0x2c5)],'unitIDs':[...this[_0x7835c2(0x1cd)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x16920c){const _0x41fd9f=_0x333065;this['_removeClearOtherTimer'](_0x16920c);const _0x3f1483=window[_0x41fd9f(0x58a)](()=>{const _0xe4f778=_0x41fd9f;this['_unitOnClients'][_0xe4f778(0x1f8)](_0xc97d42=>{const _0x4af245=_0xe4f778;_0xc97d42[_0x4af245(0x3cb)](_0x16920c);});},nt*0x2);this[_0x41fd9f(0x4b3)][_0x41fd9f(0x24c)](_0x16920c,_0x3f1483);}['_removeClearOtherTimer'](_0x301ceb){const _0x47a7d4=_0x333065;if(this[_0x47a7d4(0x4b3)][_0x47a7d4(0x438)](_0x301ceb)){const _0x56bced=this[_0x47a7d4(0x4b3)]['get'](_0x301ceb);_0x56bced&&window[_0x47a7d4(0x536)](_0x56bced),this[_0x47a7d4(0x4b3)][_0x47a7d4(0x24c)](_0x301ceb,null);}}[_0x333065(0x2e2)](_0x216cf2){const _0x435105=_0x333065,{memberID:_0x5c0115,unitIDs:_0x5b09c5}=_0x216cf2;_0x5b09c5[_0x435105(0x1f8)](_0x58c7b3=>{const _0x37b1e8=_0x435105;var _0x338b1c;const _0x297398=this[_0x37b1e8(0x4c7)]['get'](_0x58c7b3);_0x297398&&(_0x297398[_0x37b1e8(0x3cb)](_0x5c0115),(_0x338b1c=this[_0x37b1e8(0x371)](_0x58c7b3))==null||_0x338b1c['next'](_0x297398[_0x37b1e8(0x233)]===0x0?0x0:0x1));}),this[_0x435105(0x3f0)](_0x5c0115);}[_0x333065(0x3c9)](_0x225e6e){const _0x3e0ce3=_0x333065;this['_scheduleClearOtherTimer'](_0x225e6e[_0x3e0ce3(0x22a)]);}[_0x333065(0x1f1)](_0x24b43b){const _0x4d31d2=_0x333065;localStorage['setItem'](rt,JSON[_0x4d31d2(0x184)](_0x24b43b));}['_scheduleHeartbeat'](){const _0x480a1a=_0x333065;this[_0x480a1a(0x287)]=window[_0x480a1a(0x20d)](()=>{const _0x325812=_0x480a1a;this['_send']({'type':0x2,'memberID':this[_0x325812(0x2c5)]});},nt);}['_ensureSubject'](_0x267498){const _0x4ff826=_0x333065;return this['_unitStatus']['has'](_0x267498)||this['_unitStatus'][_0x4ff826(0x24c)](_0x267498,new v[(_0x4ff826(0x4da))](0x0)),this[_0x4ff826(0x460)]['get'](_0x267498);}}function yt(_0x5bfef3){const _0xcaca=_0x333065;let _0x1f3a07='';for(const _0x5ace0e of _0x5bfef3){const {startOffset:_0x163ec0,endOffset:_0x20bf60,isActive:_0x222bf0}=_0x5ace0e;_0x1f3a07[_0xcaca(0x255)]&&(_0x1f3a07+=','),_0x1f3a07+=_0x163ec0+':'+_0x20bf60+':'+(_0x222bf0?'1':'0');}return _0x1f3a07;}function Hs(_0x20e0d7){const _0x11cf44=_0x333065,_0x485014=_0x20e0d7['split'](','),_0x153cc6=[];for(const _0x2cbfb2 of _0x485014){const [_0x35e9de,_0x5b5586,_0x1887f9]=_0x2cbfb2['split'](':');_0x153cc6[_0x11cf44(0x2b7)]({'startOffset':Number(_0x35e9de),'endOffset':Number(_0x5b5586),'collapsed':_0x35e9de===_0x5b5586,'isActive':_0x1887f9==='1'});}return _0x153cc6[_0x11cf44(0x49e)](_0x5c639d=>_0x5c639d[_0x11cf44(0x4b8)])||(_0x153cc6[0x0][_0x11cf44(0x4b8)]=!0x0),_0x153cc6;}class qe extends a[_0x333065(0x475)]{constructor(){const _0x16f70c=_0x333065;super(...arguments),u(this,'_collabCursorState$',new v['BehaviorSubject'](null)),u(this,'collabCursorState$',this[_0x16f70c(0x257)][_0x16f70c(0x205)]());}[_0x333065(0x414)](_0x361cd1){const _0x44c1cb=_0x333065,{unitID:_0x4af26e,memberID:_0x536470,textRanges:_0x329f38}=_0x361cd1,_0x4e0a4d=yt(_0x329f38),_0xa65109={'unitID':_0x4af26e,'memberID':_0x536470,'selection':_0x4e0a4d};this['_collabCursorState$'][_0x44c1cb(0x580)](_0xa65109);}}var xs=Object[_0x333065(0x2e3)],ks=Object[_0x333065(0x378)],Bs=(_0x3e6669,_0x495c86,_0xc7a44e,_0x3a642b)=>{const _0x344973=_0x333065;for(var _0x40889f=_0x3a642b>0x1?void 0x0:_0x3a642b?ks(_0x495c86,_0xc7a44e):_0x495c86,_0x9226a2=_0x3e6669[_0x344973(0x255)]-0x1,_0x12028f;_0x9226a2>=0x0;_0x9226a2--)(_0x12028f=_0x3e6669[_0x9226a2])&&(_0x40889f=(_0x3a642b?_0x12028f(_0x495c86,_0xc7a44e,_0x40889f):_0x12028f(_0x40889f))||_0x40889f);return _0x3a642b&&_0x40889f&&xs(_0x495c86,_0xc7a44e,_0x40889f),_0x40889f;},ot=(_0x355b11,_0x1639e8)=>(_0x313383,_0x2d0244)=>_0x1639e8(_0x313383,_0x2d0244,_0x355b11);let pe=class{constructor(_0x26abbb,_0x2ee69b){const _0x517436=_0x333065;this[_0x517436(0x564)]=_0x26abbb,this[_0x517436(0x20c)]=_0x2ee69b;}[_0x333065(0x5a1)](_0x203203){const _0x4e8ba5=_0x333065;var _0x239ec9;const _0x3869da=this['_injector'][_0x4e8ba5(0x3c0)](se[_0x4e8ba5(0x398)]),_0x457ad4=(_0x239ec9=_0x3869da[_0x4e8ba5(0x31a)]())!=null?_0x239ec9:[];if(_0x457ad4['length']===0x0)return;const _0x51cf93=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x203203[_0x4e8ba5(0x47f)],'actions':null,'textRanges':_0x457ad4}}],_0x13c87d=this[_0x4e8ba5(0x20c)][_0x4e8ba5(0x51f)](_0x203203,_0x51cf93);if(!_['isTransformMutationsWithChangesetSuccess'](_0x13c87d))throw _0x13c87d[_0x4e8ba5(0x297)];const _0x354c9d=_0x13c87d['m2Prime'][0x0][_0x4e8ba5(0x3d6)][_0x4e8ba5(0x3a6)];Array['isArray'](_0x354c9d)&&_0x354c9d[_0x4e8ba5(0x255)]&&_0x3869da[_0x4e8ba5(0x188)](_0x354c9d,!0x1);}};pe=Bs([ot(0x0,a['Inject'](a['Injector'])),ot(0x1,_[_0x333065(0x50b)])],pe);const Vs=new Set([C[_0x333065(0x49d)]['id']]);function at(_0x2aef77,_0x13ac63,_0x325d4e,_0x4ccd26,_0x18efff){const _0x36f536=_0x333065;var _0x155056,_0x4845eb,_0xf5d253,_0xff44ff;const _0x2d4707=[];for(const _0x88e9ee of _0x2aef77)if(Vs[_0x36f536(0x438)](_0x88e9ee['id'])){if(_0x2d4707[_0x36f536(0x255)]>0x0)break;_0x2d4707[_0x36f536(0x2b7)](_0x88e9ee);break;}else _0x2d4707[_0x36f536(0x2b7)](_0x88e9ee);const _0x3a1de7=(_0x4845eb=(_0x155056=_0x18efff[_0x36f536(0x2a1)]())==null?void 0x0:_0x155056[_0x36f536(0x1b0)])!=null?_0x4845eb:_0x36f536(0x52d),_0x389e2f=(_0xff44ff=(_0xf5d253=_0x18efff[_0x36f536(0x2a1)]())==null?void 0x0:_0xf5d253['memberID'])!=null?_0xff44ff:_0x36f536(0x52d);return{'changeset':{'unitID':_0x13ac63,'type':_[_0x36f536(0x2c4)](_0x325d4e[_0x36f536(0x57c)](_0x13ac63)),'baseRev':_0x4ccd26['getCurrentRevOfUnit'](_0x13ac63),'revision':0x0,'userID':_0x3a1de7,'memberID':_0x389e2f,'mutations':_0x2d4707},'pendingMutations':_0x2aef77[_0x36f536(0x471)](_0x2d4707[_0x36f536(0x255)])};}function Ws(_0x38f0ec,_0x4fbcc2,_0x440220,_0x5beec2,_0x413afb){const _0x2dfd54=_0x333065;var _0xc59353,_0x2ba223,_0x5112a8,_0x15840d;const _0x541580=[_0x38f0ec[_0x2dfd54(0x240)]((_0x23b92e,_0x50da56)=>{const _0x39fa02=_0x2dfd54;var _0x541dbe;const {id:_0x238f0f}=_0x23b92e,{id:_0x186b40,type:_0x125939}=_0x50da56,_0x791d47=(_0x541dbe=_0x23b92e['params'])!=null?_0x541dbe:{'actions':null},_0x30fb20=_0x50da56[_0x39fa02(0x3d6)];if(_0x238f0f&&_0x238f0f!==_0x186b40)throw new Error(_0x39fa02(0x53d)+_0x238f0f+'\x20-\x20'+_0x186b40+'.');return{..._0x23b92e,'id':_0x186b40,'type':_0x125939,'params':{'unitId':_0x30fb20['unitId'],'textRanges':_0x30fb20[_0x39fa02(0x3a6)],'actions':a[_0x39fa02(0x18f)][_0x39fa02(0x278)](_0x791d47[_0x39fa02(0x3e6)],_0x30fb20['actions'])}};},{})],_0x1d1573=(_0x2ba223=(_0xc59353=_0x413afb[_0x2dfd54(0x2a1)]())==null?void 0x0:_0xc59353['userID'])!=null?_0x2ba223:_0x2dfd54(0x52d),_0x182ac7=(_0x15840d=(_0x5112a8=_0x413afb[_0x2dfd54(0x2a1)]())==null?void 0x0:_0x5112a8[_0x2dfd54(0x22a)])!=null?_0x15840d:'unknown';return{'changeset':{'unitID':_0x4fbcc2,'type':_[_0x2dfd54(0x2c4)](_0x440220[_0x2dfd54(0x57c)](_0x4fbcc2)),'baseRev':_0x5beec2[_0x2dfd54(0x3db)](_0x4fbcc2),'revision':0x0,'userID':_0x1d1573,'memberID':_0x182ac7,'mutations':_0x541580},'pendingMutations':[]};}const Fs={'id':C[_0x333065(0x1a0)]['id'],'type':a[_0x333065(0x511)][_0x333065(0x45b)],'params':{}};var Gs=Object[_0x333065(0x2e3)],Ys=Object[_0x333065(0x378)],z=(_0x13cd5a,_0x2d6afe,_0x51ecd6,_0x52de81)=>{const _0x4972ea=_0x333065;for(var _0x9e71bf=_0x52de81>0x1?void 0x0:_0x52de81?Ys(_0x2d6afe,_0x51ecd6):_0x2d6afe,_0x179de2=_0x13cd5a[_0x4972ea(0x255)]-0x1,_0x1e73e3;_0x179de2>=0x0;_0x179de2--)(_0x1e73e3=_0x13cd5a[_0x179de2])&&(_0x9e71bf=(_0x52de81?_0x1e73e3(_0x2d6afe,_0x51ecd6,_0x9e71bf):_0x1e73e3(_0x9e71bf))||_0x9e71bf);return _0x52de81&&_0x9e71bf&&Gs(_0x2d6afe,_0x51ecd6,_0x9e71bf),_0x9e71bf;},m=(_0x301ac5,_0xd581ea)=>(_0x17524b,_0x275b94)=>_0xd581ea(_0x17524b,_0x275b94,_0x301ac5),U=(_0x4b0007=>(_0x4b0007[_0x333065(0x2c7)]=_0x333065(0x1c9),_0x4b0007[_0x333065(0x1f3)]=_0x333065(0x221),_0x4b0007[_0x333065(0x395)]='pending',_0x4b0007[_0x333065(0x596)]=_0x333065(0x553),_0x4b0007[_0x333065(0x3cd)]=_0x333065(0x4e1),_0x4b0007['FETCH_MISS']=_0x333065(0x47d),_0x4b0007[_0x333065(0x40c)]=_0x333065(0x4e6),_0x4b0007[_0x333065(0x407)]='offline',_0x4b0007))(U||{});class J{constructor(_0x1150a7,_0x1a2d77,_0x3d4d2e,_0x1bede7,_0x2f339c,_0x479ceb,_0x47b153,_0x4b31bd,_0x42e3da){const _0x352683=_0x333065;u(this,_0x352683(0x1d6),null),u(this,_0x352683(0x3f2),[]),(this[_0x352683(0x47f)]=_0x1150a7,this[_0x352683(0x3c3)]=_0x1a2d77,this[_0x352683(0x49a)]=_0x2f339c,this[_0x352683(0x243)]=_0x479ceb,this['_undoRedoService']=_0x47b153,this[_0x352683(0x31d)]=_0x4b31bd,this[_0x352683(0x48a)]=_0x42e3da,this[_0x352683(0x1d6)]=_0x3d4d2e,this['_pendingMutations']=_0x1bede7);}[_0x333065(0x336)](_0x331606){const _0x1ba04e=_0x333065,_0x4f1a95=this['_revisionService'][_0x1ba04e(0x3db)](this['unitID']);return _0x331606['revision']>_0x4f1a95+0x1?(this[_0x1ba04e(0x49a)][_0x1ba04e(0x270)]({'from':_0x4f1a95,'to':_0x331606[_0x1ba04e(0x364)]-0x1}),!0x0):!0x1;}[_0x333065(0x538)](_0x46de0e){const _0x418c99=_0x333065;this['_undoRedoService'][_0x418c99(0x30f)](this['unitID'],_0x46de0e);}[_0x333065(0x1e9)](_0x3b9029){const _0x3ecc9f=_0x333065;var _0x20cce3,_0x1bf089;(_0x1bf089=(_0x20cce3=this[_0x3ecc9f(0x49a)])[_0x3ecc9f(0x2f2)])==null||_0x1bf089[_0x3ecc9f(0x300)](_0x20cce3,_0x3b9029);}['_transformIMECache'](_0x4187e0){const _0x2cae24=_0x333065;var _0x2cc152,_0x4374d2;return(_0x4374d2=(_0x2cc152=this['_handler'])[_0x2cae24(0x32a)])==null?void 0x0:_0x4374d2[_0x2cae24(0x300)](_0x2cc152,_0x4187e0);}[_0x333065(0x4d3)](_0x53510e){const _0x3c6624=_0x333065;var _0x1b2336,_0xe6160a,_0x45424e;return(_0x45424e=(_0xe6160a=(_0x1b2336=this['_handler'])[_0x3c6624(0x546)])==null?void 0x0:_0xe6160a[_0x3c6624(0x300)](_0x1b2336,_0x53510e))!=null?_0x45424e:_0x53510e;}['_syncEditingCollabCursor'](_0xf11aef){const _0x3a5102=_0x333065;var _0x39c7d0,_0x4b29f8;if(this[_0x3a5102(0x3c3)]===$[_0x3a5102(0x56f)]){const {unitID:_0x1f861b,mutations:_0x507818,memberID:_0x43a139}=_0xf11aef,_0x1cfc4a=_0x507818[0x0][_0x3a5102(0x3d6)][_0x3a5102(0x3a6)];Array[_0x3a5102(0x281)](_0x1cfc4a)&&_0x1cfc4a['length']>0x0&&((_0x4b29f8=(_0x39c7d0=this[_0x3a5102(0x49a)])['onSyncEditingCollabCursor'])==null||_0x4b29f8[_0x3a5102(0x300)](_0x39c7d0,{'unitID':_0x1f861b,'memberID':_0x43a139,'textRanges':_0x1cfc4a}));}}[_0x333065(0x331)](){const _0x3700e5=_0x333065;this['_localCacheService']['updateOfflineData'](this[_0x3700e5(0x47f)],this[_0x3700e5(0x3c3)],this[_0x3700e5(0x1d6)],this[_0x3700e5(0x3f2)]);}['_getCurrentRevision'](){const _0x5ad83a=_0x333065;return this['_revisionService'][_0x5ad83a(0x3db)](this[_0x5ad83a(0x47f)]);}[_0x333065(0x447)](){const _0x2e5551=_0x333065;this[_0x2e5551(0x31d)]['incrementRevOfUnit'](this[_0x2e5551(0x47f)]);}[_0x333065(0x28f)](_0x420acf){const _0x29e08b=_0x333065;var _0x5cd520;const _0x532174=this[_0x29e08b(0x4d3)](_0x420acf),_0x37e4a9=a['sequenceExecute'](_0x532174[_0x29e08b(0x4c9)],this[_0x29e08b(0x243)],{'fromCollab':!0x0});if(!_0x37e4a9['result'])throw _0x37e4a9[_0x29e08b(0x297)]instanceof Error?_0x37e4a9[_0x29e08b(0x297)]:new Error((_0x5cd520=_0x37e4a9['error'])!=null?_0x5cd520:_0x29e08b(0x56e));this[_0x29e08b(0x3ad)](_0x532174),this[_0x29e08b(0x538)](_0x420acf),this[_0x29e08b(0x1e9)](_0x532174),this[_0x29e08b(0x562)](_0x532174),this[_0x29e08b(0x447)]();}}let ie=class extends J{constructor(_0x4a8a23,_0x28b2df,_0x4ed024,_0x33001f,_0x3a0495,_0x47c17f,_0x3c5dd7,_0x1b930a,_0xc554d6,_0x528baf){const _0x11bb93=_0x333065;super(_0x4a8a23,_0x28b2df,null,[],_0x4ed024,_0x1b930a,_0x3c5dd7,_0x33001f,_0x3a0495),u(this,_0x11bb93(0x47e),_0x11bb93(0x221)),(this[_0x11bb93(0x564)]=_0x47c17f,this[_0x11bb93(0x566)]=_0xc554d6,this[_0x11bb93(0x20c)]=_0x528baf);}['appendMutation'](_0x167284){const _0x2894cf=_0x333065,_0x74541b=this[_0x2894cf(0x564)]['createInstance'](k,this['unitID'],this[_0x2894cf(0x3c3)],[_0x167284],this[_0x2894cf(0x49a)]);return _0x74541b[_0x2894cf(0x432)](),_0x74541b[_0x2894cf(0x331)](),_0x74541b;}[_0x333065(0x43e)](_0x396490){const _0x5fd18a=_0x333065;if(this[_0x5fd18a(0x336)](_0x396490))return this[_0x5fd18a(0x564)]['createInstance'](x,this['unitID'],this['type'],null,[],null,[_0x396490],this[_0x5fd18a(0x49a)]);try{const _0x4b2e56=this['_transformService']['transformMutationsWithChangeset'](_0x396490,[Fs]);if(_['isTransformMutationsWithChangesetSuccess'](_0x4b2e56)){const {c1Prime:_0x44f827}=_0x4b2e56;return this[_0x5fd18a(0x28f)](_0x44f827),this;}throw _0x4b2e56['error'];}catch(_0x2f907d){return this[_0x5fd18a(0x566)]['error'](_0x2f907d),this[_0x5fd18a(0x48f)](!0x1);}}[_0x333065(0x48f)](_0x27f6cd){const _0x449ee8=_0x333065;return this['_injector'][_0x449ee8(0x2ca)](F,this[_0x449ee8(0x47f)],this[_0x449ee8(0x3c3)],null,[],this[_0x449ee8(0x49a)],_0x27f6cd);}['onRemoteAck'](){const _0x1a6f48=_0x333065;throw new Error(_0x1a6f48(0x304));}[_0x333065(0x53c)](){const _0x2c9300=_0x333065;throw new Error(_0x2c9300(0x29b));}[_0x333065(0x33a)](){const _0x3706e9=_0x333065;return this[_0x3706e9(0x564)]['createInstance'](G,this[_0x3706e9(0x47f)],this[_0x3706e9(0x3c3)],null,[],this[_0x3706e9(0x49a)]);}['toggleOnline'](){return this;}[_0x333065(0x4b9)](){const _0x46e8ab=_0x333065;throw new Error(_0x46e8ab(0x578));}[_0x333065(0x583)](){const _0x41d639=_0x333065,_0x5be84f=this['_revisionService'][_0x41d639(0x3db)](this[_0x41d639(0x47f)]);return this[_0x41d639(0x49a)]['onMissingChangesets']({'from':_0x5be84f,'to':0x0}),this[_0x41d639(0x564)][_0x41d639(0x2ca)](x,this[_0x41d639(0x47f)],this['type'],null,[],null,[],this['_handler']);}};ie=z([m(0x3,a[_0x333065(0x520)](_[_0x333065(0x3ac)])),m(0x4,a['Inject'](exports[_0x333065(0x3f9)])),m(0x5,a[_0x333065(0x520)](a[_0x333065(0x347)])),m(0x6,a[_0x333065(0x4de)]),m(0x7,a[_0x333065(0x377)]),m(0x8,a[_0x333065(0x176)]),m(0x9,_[_0x333065(0x50b)])],ie);let k=class extends J{constructor(_0x3b24bb,_0x1057d6,_0x137891,_0x545a48,_0x46733c,_0x37b572,_0x580f94,_0x25fc67,_0x531865,_0xbdf9c7,_0xf7e53,_0x402a5f,_0x4db4ad,_0x56f857){const _0x867e81=_0x333065;super(_0x3b24bb,_0x1057d6,null,_0x137891,_0x545a48,_0xbdf9c7,_0x56f857,_0x37b572,_0x580f94),u(this,_0x867e81(0x47e),_0x867e81(0x2f7)),u(this,_0x867e81(0x343),null),u(this,_0x867e81(0x3f8),null),(this['_injector']=_0x46733c,this[_0x867e81(0x23a)]=_0x25fc67,this[_0x867e81(0x566)]=_0x531865,this[_0x867e81(0x446)]=_0xf7e53,this[_0x867e81(0x20c)]=_0x402a5f,this[_0x867e81(0x295)]=_0x4db4ad);}[_0x333065(0x59b)](_0x5c0952){const _0x18890b=_0x333065;return this[_0x18890b(0x3f2)][_0x18890b(0x2b7)](_0x5c0952),this[_0x18890b(0x331)](),this;}['onRemoteChangeset'](_0x36f2eb){const _0xbab6f5=_0x333065;if(this[_0xbab6f5(0x336)](_0x36f2eb))return this[_0xbab6f5(0x31e)](),this['_injector'][_0xbab6f5(0x2ca)](x,this[_0xbab6f5(0x47f)],this[_0xbab6f5(0x3c3)],null,this[_0xbab6f5(0x3f2)],null,[_0x36f2eb],this[_0xbab6f5(0x49a)]);try{const _0x4479e2=this[_0xbab6f5(0x20c)][_0xbab6f5(0x51f)](_0x36f2eb,this[_0xbab6f5(0x3f2)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x4479e2)){const {c1Prime:_0x476415,m2Prime:_0x2d3c8e}=_0x4479e2;this[_0xbab6f5(0x28f)](_0x476415);const _0xaf22af=this[_0xbab6f5(0x564)][_0xbab6f5(0x2ca)](k,this['unitID'],this[_0xbab6f5(0x3c3)],_0x2d3c8e,this[_0xbab6f5(0x49a)]);return this[_0xbab6f5(0x31e)](),_0xaf22af[_0xbab6f5(0x432)](this[_0xbab6f5(0x343)]?Math[_0xbab6f5(0x417)](0x0,new Date()['getTime']()-this[_0xbab6f5(0x343)]):this[_0xbab6f5(0x4a1)]()),_0xaf22af;}throw _0x4479e2[_0xbab6f5(0x297)];}catch(_0x5c0d88){return this[_0xbab6f5(0x566)][_0xbab6f5(0x297)](_0x5c0d88),this[_0xbab6f5(0x48f)](!0x1);}}[_0x333065(0x2ba)](){const _0x16e1bc=_0x333065;throw new Error(_0x16e1bc(0x248));}['onRemoteRej'](){const _0x5bc4cb=_0x333065;throw new Error(_0x5bc4cb(0x1e7));}[_0x333065(0x33a)](){const _0x3f45a7=_0x333065;return this[_0x3f45a7(0x31e)](),this[_0x3f45a7(0x564)][_0x3f45a7(0x2ca)](G,this[_0x3f45a7(0x47f)],this[_0x3f45a7(0x3c3)],null,this[_0x3f45a7(0x3f2)],this[_0x3f45a7(0x49a)]);}[_0x333065(0x48c)](){return this;}['_schedule'](_0x4bd866){const _0x1aef5b=_0x333065,_0xcbe482=_0x4bd866!=null?_0x4bd866:this['_getSendChangesetTimeout']();this[_0x1aef5b(0x343)]=new Date()[_0x1aef5b(0x203)](),this['_sendingTimer']=window[_0x1aef5b(0x58a)](()=>{const _0x17c859=_0x1aef5b;this['_clearScheduledTask']();let _0x121cb7=null;switch(this['type']){case $[_0x17c859(0x42f)]:{_0x121cb7=at(this['_pendingMutations'],this[_0x17c859(0x47f)],this['_univerInstanceService'],this[_0x17c859(0x31d)],this[_0x17c859(0x23a)]);break;}case $[_0x17c859(0x56f)]:{this[_0x17c859(0x3f2)]['every'](_0x50ae74=>_0x50ae74['id']===se['RichTextEditingMutation']['id'])?_0x121cb7=Ws(this[_0x17c859(0x3f2)],this['unitID'],this[_0x17c859(0x295)],this[_0x17c859(0x31d)],this[_0x17c859(0x23a)]):_0x121cb7=at(this['_pendingMutations'],this['unitID'],this[_0x17c859(0x295)],this['_revisionService'],this[_0x17c859(0x23a)]);break;}default:throw new Error(_0x17c859(0x4cb)+this[_0x17c859(0x3c3)]+'\x20in\x20_schedule.');}const {changeset:_0x22f99e,pendingMutations:_0xcc3804}=_0x121cb7;this[_0x17c859(0x49a)][_0x17c859(0x472)](_0x22f99e);const _0x2490d2=_0xcc3804[_0x17c859(0x255)]?this[_0x17c859(0x564)][_0x17c859(0x2ca)](B,this[_0x17c859(0x47f)],this[_0x17c859(0x3c3)],_0x22f99e,_0xcc3804,this[_0x17c859(0x49a)]):this[_0x17c859(0x564)][_0x17c859(0x2ca)](W,this[_0x17c859(0x47f)],this[_0x17c859(0x3c3)],_0x22f99e,this[_0x17c859(0x49a)]);_0x2490d2[_0x17c859(0x331)](),this[_0x17c859(0x49a)][_0x17c859(0x250)](this,_0x2490d2);},_0xcbe482);}[_0x333065(0x4a1)](){const _0x55bb47=_0x333065;var _0x84db2;const _0x114d6c=this[_0x55bb47(0x446)][_0x55bb47(0x180)](L);return(_0x84db2=_0x114d6c==null?void 0x0:_0x114d6c[_0x55bb47(0x258)])!=null?_0x84db2:Jt;}[_0x333065(0x4b9)](){const _0x3941a1=_0x333065;throw new Error(_0x3941a1(0x3b0));}[_0x333065(0x31e)](){const _0x40cf1b=_0x333065;this[_0x40cf1b(0x3f8)]!=null&&(clearTimeout(this[_0x40cf1b(0x3f8)]),this[_0x40cf1b(0x3f8)]=null);}[_0x333065(0x48f)](_0x4dd35d){const _0x3965b8=_0x333065;return this[_0x3965b8(0x31e)](),this[_0x3965b8(0x564)]['createInstance'](F,this[_0x3965b8(0x47f)],this[_0x3965b8(0x3c3)],null,this['_pendingMutations'],this['_handler'],_0x4dd35d);}};k=z([m(0x4,a[_0x333065(0x520)](a[_0x333065(0x347)])),m(0x5,a['Inject'](_['RevisionService'])),m(0x6,a['Inject'](exports[_0x333065(0x3f9)])),m(0x7,a[_0x333065(0x520)](q)),m(0x8,a[_0x333065(0x176)]),m(0x9,a[_0x333065(0x377)]),m(0xa,a['IConfigService']),m(0xb,_[_0x333065(0x50b)]),m(0xc,a[_0x333065(0x3c1)]),m(0xd,a['IUndoRedoService'])],k);let W=class extends J{constructor(_0x3a423f,_0x560a16,_0x2ce43a,_0x5bac01,_0x2566af,_0x41d4b6,_0x9e1aeb,_0x51c311,_0x356966,_0x39b3ce,_0x657bfd){const _0xba83c1=_0x333065;super(_0x3a423f,_0x560a16,_0x2ce43a,[],_0x5bac01,_0x51c311,_0x657bfd,_0x41d4b6,_0x9e1aeb),u(this,_0xba83c1(0x47e),_0xba83c1(0x553)),(this[_0xba83c1(0x564)]=_0x2566af,this[_0xba83c1(0x566)]=_0x356966,this['_transformService']=_0x39b3ce);}[_0x333065(0x59b)](_0x40f30c){const _0x3a779a=_0x333065,_0x526ff3=this[_0x3a779a(0x564)]['createInstance'](B,this[_0x3a779a(0x47f)],this[_0x3a779a(0x3c3)],this[_0x3a779a(0x1d6)],[_0x40f30c],this[_0x3a779a(0x49a)]);return _0x526ff3[_0x3a779a(0x331)](),_0x526ff3;}[_0x333065(0x43e)](_0x386b12){const _0x4de36d=_0x333065;if(this[_0x4de36d(0x336)](_0x386b12))return this[_0x4de36d(0x564)][_0x4de36d(0x2ca)](x,this['unitID'],this['type'],this[_0x4de36d(0x1d6)],[],null,[_0x386b12],this[_0x4de36d(0x49a)]);try{const _0x55c93f=this[_0x4de36d(0x20c)][_0x4de36d(0x3f4)]([_0x386b12],[this['_awaitingChangeset']],!0x1);if(_[_0x4de36d(0x519)](_0x55c93f)){const {c1Prime:_0x574fd9,c2Prime:_0x296a82}=_0x55c93f;this[_0x4de36d(0x28f)](_0x574fd9[0x0]),_0x296a82[0x0]['baseRev']=this[_0x4de36d(0x4e5)]();const _0x422432=this['_injector'][_0x4de36d(0x2ca)](W,this[_0x4de36d(0x47f)],this[_0x4de36d(0x3c3)],_0x296a82[0x0],this['_handler']);return _0x422432[_0x4de36d(0x331)](),_0x422432;}return this[_0x4de36d(0x48f)](!0x1);}catch(_0x3084bb){return this[_0x4de36d(0x566)][_0x4de36d(0x297)](_0x3084bb),this['_onConflict'](!0x1);}}['onRemoteAck'](_0xf0d4d){const _0x61d21d=_0x333065,_0x461d7e=this[_0x61d21d(0x31d)][_0x61d21d(0x3db)](this[_0x61d21d(0x47f)]);if(_0xf0d4d[_0x61d21d(0x364)]<_0x461d7e-0x1)return this;if(this[_0x61d21d(0x336)](_0xf0d4d))return this[_0x61d21d(0x564)][_0x61d21d(0x2ca)](x,this[_0x61d21d(0x47f)],this[_0x61d21d(0x3c3)],null,[],this[_0x61d21d(0x1d6)],[],this[_0x61d21d(0x49a)]);this[_0x61d21d(0x447)]();const _0x9c12f0=this['_injector'][_0x61d21d(0x2ca)](ie,this[_0x61d21d(0x47f)],this['type'],this['_handler']);return _0x9c12f0[_0x61d21d(0x331)](),_0x9c12f0;}['onRemoteRej'](_0xe8497c){const _0x368eb0=_0x333065;return this[_0x368eb0(0x48f)](!!(_0xe8497c!=null&&_0xe8497c[_0x368eb0(0x3e7)]));}[_0x333065(0x33a)](){const _0xb03186=_0x333065;return this[_0xb03186(0x564)][_0xb03186(0x2ca)](G,this[_0xb03186(0x47f)],this['type'],this[_0xb03186(0x1d6)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x333065(0x4b9)](){const _0x2d1386=_0x333065;this[_0x2d1386(0x49a)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x333065(0x48f)](_0x33ad05){const _0x593e4f=_0x333065;return this['_injector']['createInstance'](F,this[_0x593e4f(0x47f)],this[_0x593e4f(0x3c3)],this[_0x593e4f(0x1d6)],[],this[_0x593e4f(0x49a)],_0x33ad05);}};W=z([m(0x4,a[_0x333065(0x520)](a[_0x333065(0x347)])),m(0x5,a[_0x333065(0x520)](_[_0x333065(0x3ac)])),m(0x6,a[_0x333065(0x520)](exports[_0x333065(0x3f9)])),m(0x7,a[_0x333065(0x377)]),m(0x8,a[_0x333065(0x176)]),m(0x9,_[_0x333065(0x50b)]),m(0xa,a[_0x333065(0x4de)])],W);let B=class extends J{constructor(_0x251109,_0x5bd4b9,_0x2b9bfd,_0x4c5399,_0x256b7b,_0x2cdd4e,_0x3f0cef,_0x451aaf,_0x2a0ef1,_0x33128b,_0x29de87,_0x1ec73e){const _0xa67360=_0x333065;super(_0x251109,_0x5bd4b9,_0x2b9bfd,_0x4c5399,_0x256b7b,_0x2a0ef1,_0x1ec73e,_0x3f0cef,_0x451aaf),u(this,_0xa67360(0x47e),'awaiting_with_pending'),(this['_injector']=_0x2cdd4e,this[_0xa67360(0x566)]=_0x33128b,this[_0xa67360(0x20c)]=_0x29de87);}[_0x333065(0x59b)](_0x27292c){const _0x5e9216=_0x333065;return this[_0x5e9216(0x3f2)]['push'](_0x27292c),this;}[_0x333065(0x43e)](_0x5f3616){const _0x1d99c1=_0x333065;if(this['_checkMissing'](_0x5f3616))return this[_0x1d99c1(0x564)]['createInstance'](x,this['unitID'],this['type'],this[_0x1d99c1(0x1d6)],this[_0x1d99c1(0x3f2)],null,[_0x5f3616],this['_handler']);try{const _0x54c9fe=this[_0x1d99c1(0x20c)][_0x1d99c1(0x3f4)]([_0x5f3616],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x54c9fe)){const {c1Prime:_0x157164,c2Prime:_0x4e93e3}=_0x54c9fe,_0x9ba70e=this[_0x1d99c1(0x20c)][_0x1d99c1(0x51f)](_0x157164[0x0],this[_0x1d99c1(0x3f2)]);if(_[_0x1d99c1(0x41b)](_0x9ba70e)){const {c1Prime:_0x51dbcd,m2Prime:_0x49f16f}=_0x9ba70e;return this[_0x1d99c1(0x28f)](_0x51dbcd),_0x4e93e3[0x0]['baseRev']=this[_0x1d99c1(0x4e5)](),this[_0x1d99c1(0x564)][_0x1d99c1(0x2ca)](B,this[_0x1d99c1(0x47f)],this[_0x1d99c1(0x3c3)],_0x4e93e3[0x0],_0x49f16f,this[_0x1d99c1(0x49a)]);}throw _0x9ba70e['error'];}throw _0x54c9fe[_0x1d99c1(0x297)];}catch(_0x5399be){return this[_0x1d99c1(0x566)]['error'](_0x5399be),this['_onConflict'](!0x1);}}[_0x333065(0x2ba)](_0x47af1d){const _0x25a0a7=_0x333065;if(this[_0x25a0a7(0x336)](_0x47af1d))return this[_0x25a0a7(0x564)][_0x25a0a7(0x2ca)](x,this[_0x25a0a7(0x47f)],this[_0x25a0a7(0x3c3)],null,this[_0x25a0a7(0x3f2)],this[_0x25a0a7(0x1d6)],[],this[_0x25a0a7(0x49a)]);this['_incrementRevisionNumber']();const _0x2d60d1=this['_injector'][_0x25a0a7(0x2ca)](k,this[_0x25a0a7(0x47f)],this[_0x25a0a7(0x3c3)],this['_pendingMutations'],this['_handler']);return _0x2d60d1[_0x25a0a7(0x432)](),_0x2d60d1['_updateLocalCache'](),_0x2d60d1;}[_0x333065(0x53c)](_0x177659){const _0x226d5d=_0x333065;return this[_0x226d5d(0x48f)](!!(_0x177659!=null&&_0x177659[_0x226d5d(0x3e7)]));}[_0x333065(0x33a)](){const _0x327190=_0x333065;return this[_0x327190(0x564)]['createInstance'](G,this[_0x327190(0x47f)],this['type'],this[_0x327190(0x1d6)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x333065(0x4b9)](){const _0x194c64=_0x333065;this[_0x194c64(0x49a)]['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x4c9317){const _0x49fe46=_0x333065;return this['_injector'][_0x49fe46(0x2ca)](F,this[_0x49fe46(0x47f)],this[_0x49fe46(0x3c3)],null,this[_0x49fe46(0x3f2)],this[_0x49fe46(0x49a)],_0x4c9317);}};B=z([m(0x5,a['Inject'](a[_0x333065(0x347)])),m(0x6,a[_0x333065(0x520)](_['RevisionService'])),m(0x7,a[_0x333065(0x520)](exports[_0x333065(0x3f9)])),m(0x8,a[_0x333065(0x377)]),m(0x9,a[_0x333065(0x176)]),m(0xa,_['ITransformService']),m(0xb,a[_0x333065(0x4de)])],B);let F=class extends J{constructor(_0x1f48bf,_0x1e000e,_0x2e8df0,_0x14bb1c,_0x560052,_0x5d02db=!0x1,_0xdfee1e,_0x2cb0bc,_0x30fc78,_0x441c1b,_0x3bd616,_0x406517,_0x514b7f){const _0x288309=_0x333065;super(_0x1f48bf,_0x1e000e,_0x2e8df0,_0x14bb1c,_0x560052,_0x2cb0bc,_0x30fc78,_0x3bd616,_0x441c1b),u(this,_0x288309(0x47e),'conflict'),(this['_isPermissionRej']=_0x5d02db,this[_0x288309(0x261)]=_0xdfee1e,this[_0x288309(0x40f)]=_0x406517,this['_notificationService']=_0x514b7f,this[_0x288309(0x442)](),this['_clearLocalCache'](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x333065(0x43e)](){return this;}['onRemoteAck'](){return this;}[_0x333065(0x53c)](){return this;}[_0x333065(0x33a)](){return this;}[_0x333065(0x48c)](){return this;}[_0x333065(0x4b9)](){const _0x41491a=_0x333065;throw new Error(_0x41491a(0x572));}[_0x333065(0x408)](){const _0x5892c5=_0x333065;this[_0x5892c5(0x48a)]['updateOfflineData'](this[_0x5892c5(0x47f)],this[_0x5892c5(0x3c3)],null,[]);}[_0x333065(0x442)](){const _0x39e43f=_0x333065;this[_0x39e43f(0x3b5)]?this['_notificationService'][_0x39e43f(0x38e)]({'title':this[_0x39e43f(0x40f)]['t'](_0x39e43f(0x392)),'content':this['_localeService']['t'](_0x39e43f(0x33b)),'type':_0x39e43f(0x297),'duration':0x0}):this[_0x39e43f(0x2d0)]['show']({'title':this[_0x39e43f(0x40f)]['t'](_0x39e43f(0x1de)),'content':this[_0x39e43f(0x40f)]['t'](_0x39e43f(0x366)),'type':_0x39e43f(0x297),'duration':0x0});}[_0x333065(0x4a7)](){const _0x5850cd=_0x333065;this[_0x5850cd(0x261)]['updatePermissionPoint'](new C[(_0x5850cd(0x2eb))](this[_0x5850cd(0x47f)])['id'],!0x1);}};F=z([m(0x6,a[_0x333065(0x520)](a[_0x333065(0x38f)])),m(0x7,a[_0x333065(0x377)]),m(0x8,a[_0x333065(0x4de)]),m(0x9,a[_0x333065(0x520)](exports[_0x333065(0x3f9)])),m(0xa,a[_0x333065(0x520)](_['RevisionService'])),m(0xb,a['Inject'](a[_0x333065(0x282)])),m(0xc,A['INotificationService'])],F);let G=class extends J{constructor(_0xab3c6b,_0x5e65c4,_0x1ca90b,_0x3d9f3f,_0x113f68,_0x394f2c,_0x512da7,_0x82890f,_0x1fab66,_0x1d5bad){const _0x5cc246=_0x333065;super(_0xab3c6b,_0x5e65c4,_0x1ca90b,_0x3d9f3f,_0x113f68,_0x1fab66,_0x1d5bad,_0x512da7,_0x82890f),u(this,_0x5cc246(0x47e),_0x5cc246(0x29d)),this['_injector']=_0x394f2c;}[_0x333065(0x59b)](_0x1af425){const _0x563e4e=_0x333065;return this[_0x563e4e(0x3f2)]['push'](_0x1af425),this[_0x563e4e(0x331)](),this;}[_0x333065(0x43e)](_0x2228b1){const _0x3a41bf=_0x333065;throw new Error(_0x3a41bf(0x477));}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}[_0x333065(0x48c)](){const _0x5832f6=_0x333065,{_injector:_0x228dba,_pendingMutations:_0x431c8f,_awaitingChangeset:_0x4e8af0,unitID:_0x570578,_handler:_0x111331,type:_0x51d066}=this,_0x6a404e=Ut(_0x228dba,_0x570578,_0x51d066,_0x4e8af0,_0x431c8f,_0x111331);return _0x6a404e instanceof k?_0x6a404e[_0x5832f6(0x432)]():(_0x6a404e instanceof B||_0x6a404e instanceof W)&&_0x6a404e[_0x5832f6(0x4b9)](),_0x6a404e;}[_0x333065(0x4b9)](){const _0x2d0593=_0x333065;throw new Error(_0x2d0593(0x498));}};G=z([m(0x5,a[_0x333065(0x520)](a[_0x333065(0x347)])),m(0x6,a[_0x333065(0x520)](_[_0x333065(0x3ac)])),m(0x7,a[_0x333065(0x520)](exports[_0x333065(0x3f9)])),m(0x8,a['ICommandService']),m(0x9,a[_0x333065(0x4de)])],G);let x=class extends J{constructor(_0x105ee2,_0x12d8bb,_0x55455d,_0x4280bc,_0x15527e,_0x3df290,_0x36c183,_0x261569,_0x6937e1,_0x126ed7,_0xc570f5,_0x195b20,_0x19f7d2,_0x300499){const _0x38089c=_0x333065;super(_0x105ee2,_0x12d8bb,_0x55455d,_0x4280bc,_0x36c183,_0x195b20,_0x19f7d2,_0x6937e1,_0x126ed7),u(this,'status',_0x38089c(0x47d)),(this[_0x38089c(0x4f9)]=_0x15527e,this['_queuedRemoteChangesets']=_0x3df290,this[_0x38089c(0x564)]=_0x261569,this[_0x38089c(0x566)]=_0xc570f5,this['_transformService']=_0x300499);}[_0x333065(0x35f)](_0xd48ee2){const _0x5c1ce6=_0x333065;try{const _0x420fe2=[..._0xd48ee2,...this[_0x5c1ce6(0x505)]],_0x2e382e=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x5c1ce6(0x2ce)](_0x52b12e=>!!_0x52b12e);let _0x500bfd,_0xeab684;if(_0x2e382e['length']){const _0x27de13=this[_0x5c1ce6(0x20c)][_0x5c1ce6(0x3f4)](_0x420fe2,_0x2e382e,!0x1);if(!_[_0x5c1ce6(0x519)](_0x27de13))throw _0x27de13[_0x5c1ce6(0x297)];_0x500bfd=_0x27de13['c1Prime'],_0xeab684=_0x27de13[_0x5c1ce6(0x52b)];}else _0x500bfd=_0x420fe2,_0xeab684=[];let _0x61722a=this['_pendingMutations'];_0x500bfd[_0x5c1ce6(0x1f8)](_0x1b1e51=>{const _0x303c8a=_0x5c1ce6;let _0x49bbc1;if(_0x61722a[_0x303c8a(0x255)]){const _0x1b3702=this[_0x303c8a(0x20c)][_0x303c8a(0x51f)](_0x1b1e51,_0x61722a);if(!_[_0x303c8a(0x41b)](_0x1b3702))throw _0x1b3702['error'];_0x49bbc1=_0x1b3702[_0x303c8a(0x360)],_0x61722a=_0x1b3702[_0x303c8a(0x54e)];}else _0x49bbc1=_0x1b1e51;this[_0x303c8a(0x28f)](_0x49bbc1);}),this[_0x5c1ce6(0x4f9)]&&this[_0x5c1ce6(0x447)](),this[_0x5c1ce6(0x1d6)]&&_0xeab684[_0x5c1ce6(0x255)]&&(_0xeab684[0x0]['baseRev']=this[_0x5c1ce6(0x4e5)]());let _0x34b585;if(this[_0x5c1ce6(0x1d6)]&&_0x61722a[_0x5c1ce6(0x255)]!==0x0)_0x34b585=this[_0x5c1ce6(0x564)][_0x5c1ce6(0x2ca)](B,this[_0x5c1ce6(0x47f)],this[_0x5c1ce6(0x3c3)],_0xeab684[0x0],_0x61722a,this[_0x5c1ce6(0x49a)]);else{if(this[_0x5c1ce6(0x1d6)]&&_0x61722a['length']===0x0)_0xeab684[0x0][_0x5c1ce6(0x427)]=this['_getCurrentRevision'](),_0x34b585=this[_0x5c1ce6(0x564)][_0x5c1ce6(0x2ca)](W,this[_0x5c1ce6(0x47f)],this[_0x5c1ce6(0x3c3)],_0xeab684[0x0],this[_0x5c1ce6(0x49a)]);else{if(_0x61722a[_0x5c1ce6(0x255)]!==0x0){const _0x1a39db=this[_0x5c1ce6(0x564)][_0x5c1ce6(0x2ca)](k,this['unitID'],this['type'],_0x61722a,this[_0x5c1ce6(0x49a)]);_0x1a39db['_schedule'](),_0x34b585=_0x1a39db;}else _0x34b585=this[_0x5c1ce6(0x564)][_0x5c1ce6(0x2ca)](ie,this[_0x5c1ce6(0x47f)],this[_0x5c1ce6(0x3c3)],this[_0x5c1ce6(0x49a)]);}}return _0x34b585['_updateLocalCache'](),_0x34b585;}catch(_0x2f7d83){return this[_0x5c1ce6(0x566)][_0x5c1ce6(0x297)]('[FetchMissState]',_0x5c1ce6(0x504),_0x2f7d83),this[_0x5c1ce6(0x564)][_0x5c1ce6(0x2ca)](F,this['unitID'],this[_0x5c1ce6(0x3c3)],this[_0x5c1ce6(0x1d6)],this[_0x5c1ce6(0x3f2)],this['_handler'],!0x1);}}[_0x333065(0x4b9)](){const _0x38f04a=_0x333065;throw new Error(_0x38f04a(0x481));}[_0x333065(0x59b)](_0x260d34){const _0x4991ef=_0x333065;return this[_0x4991ef(0x3f2)]['push'](_0x260d34),this;}['onRemoteChangeset'](_0x2b712d){const _0x1afd57=_0x333065;return this[_0x1afd57(0x505)][_0x1afd57(0x2b7)](_0x2b712d),this;}[_0x333065(0x2ba)](_0x553b8e){const _0x16d669=_0x333065;if(this['_awaitingChangeset'])return this[_0x16d669(0x4f9)]=this[_0x16d669(0x1d6)],this[_0x16d669(0x1d6)]=null,this;throw new Error(_0x16d669(0x530));}[_0x333065(0x53c)](_0x1a01d7){const _0x22e2c2=_0x333065;return this[_0x22e2c2(0x48f)](!!(_0x1a01d7!=null&&_0x1a01d7[_0x22e2c2(0x3e7)]));}[_0x333065(0x33a)](){const _0x2b1fb9=_0x333065;return this['_injector'][_0x2b1fb9(0x2ca)](G,this[_0x2b1fb9(0x47f)],this[_0x2b1fb9(0x3c3)],this[_0x2b1fb9(0x1d6)],this[_0x2b1fb9(0x3f2)],this[_0x2b1fb9(0x49a)]);}[_0x333065(0x48c)](){return this;}['_onConflict'](_0x35cdd9){const _0x83897=_0x333065;return this['_injector'][_0x83897(0x2ca)](F,this[_0x83897(0x47f)],this[_0x83897(0x3c3)],this[_0x83897(0x1d6)],this['_pendingMutations'],this['_handler'],_0x35cdd9);}};x=z([m(0x7,a[_0x333065(0x520)](a[_0x333065(0x347)])),m(0x8,a[_0x333065(0x520)](_[_0x333065(0x3ac)])),m(0x9,a['Inject'](exports[_0x333065(0x3f9)])),m(0xa,a[_0x333065(0x176)]),m(0xb,a[_0x333065(0x377)]),m(0xc,a['IUndoRedoService']),m(0xd,_[_0x333065(0x50b)])],x);function Ut(_0x1a52e2,_0x2e39c0,_0x582189,_0x1e6404,_0x271d50,_0x535445){const _0x193302=_0x333065;return _0x1e6404&&_0x271d50['length']?_0x1a52e2['createInstance'](B,_0x2e39c0,_0x582189,_0x1e6404,_0x271d50,_0x535445):_0x1e6404?_0x1a52e2[_0x193302(0x2ca)](W,_0x2e39c0,_0x582189,_0x1e6404,_0x535445):_0x271d50[_0x193302(0x255)]?_0x1a52e2[_0x193302(0x2ca)](k,_0x2e39c0,_0x582189,_0x271d50,_0x535445):_0x1a52e2[_0x193302(0x2ca)](ie,_0x2e39c0,_0x582189,_0x535445);}var Ks=Object['defineProperty'],Xs=Object['getOwnPropertyDescriptor'],ze=(_0x56ae46,_0x2ddf48,_0x16453a,_0x1fb084)=>{const _0x3b0563=_0x333065;for(var _0x111263=_0x1fb084>0x1?void 0x0:_0x1fb084?Xs(_0x2ddf48,_0x16453a):_0x2ddf48,_0x8b4653=_0x56ae46[_0x3b0563(0x255)]-0x1,_0x10ad7c;_0x8b4653>=0x0;_0x8b4653--)(_0x10ad7c=_0x56ae46[_0x8b4653])&&(_0x111263=(_0x1fb084?_0x10ad7c(_0x2ddf48,_0x16453a,_0x111263):_0x10ad7c(_0x111263))||_0x111263);return _0x1fb084&&_0x111263&&Ks(_0x2ddf48,_0x16453a,_0x111263),_0x111263;},p=(_0x107248,_0x5189ed)=>(_0x244866,_0x1d738c)=>_0x5189ed(_0x244866,_0x1d738c,_0x107248);exports[_0x333065(0x35c)]=class extends a['RxDisposable']{constructor(_0x4f2aa3,_0x57ce5b,_0x3d338d,_0x31d601,_0x2e4680,_0x4e4f6e,_0x3132c2,_0xf147e8,_0x188d6e,_0xfb3095,_0x55bc42,_0x5cbf3f,_0x8a778){const _0x52af60=_0x333065;super(),u(this,_0x52af60(0x388),new v[(_0x52af60(0x4da))](null)),u(this,_0x52af60(0x339),this[_0x52af60(0x388)][_0x52af60(0x205)]()),u(this,_0x52af60(0x1e6)),u(this,_0x52af60(0x253),!0x1),u(this,_0x52af60(0x3c4),''),u(this,_0x52af60(0x4c1),0x0),u(this,'status$',this[_0x52af60(0x339)][_0x52af60(0x32e)](v['map'](_0x1a16e1=>_0x1a16e1?_0x1a16e1[_0x52af60(0x47e)]:U['OFFLINE']),v[_0x52af60(0x18a)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x52af60(0x587),[]),(this[_0x52af60(0x47f)]=_0x4f2aa3,this[_0x52af60(0x44f)]=_0x57ce5b,this[_0x52af60(0x593)]=_0x3d338d,this['_injector']=_0x31d601,this[_0x52af60(0x48a)]=_0x2e4680,this[_0x52af60(0x23f)]=_0x4e4f6e,this[_0x52af60(0x40f)]=_0x3132c2,this[_0x52af60(0x31d)]=_0xf147e8,this[_0x52af60(0x566)]=_0x188d6e,this[_0x52af60(0x243)]=_0xfb3095,this['_messageService']=_0x55bc42,this[_0x52af60(0x261)]=_0x5cbf3f,this[_0x52af60(0x3ff)]=_0x8a778);}get[_0x333065(0x200)](){const _0x40f8f5=_0x333065;return this[_0x40f8f5(0x1e6)];}async[_0x333065(0x22f)](){const _0x3d6110=_0x333065;if(this['state'])throw new Error(_0x3d6110(0x226));await this[_0x3d6110(0x52a)]();}[_0x333065(0x2e1)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0xcdb97d=_0x2204;this[_0xcdb97d(0x253)]=!0x1,this[_0xcdb97d(0x4d8)]();});}['_updateState'](_0x1fd57e){const _0x56583b=_0x333065;this[_0x56583b(0x1e6)]=_0x1fd57e,this[_0x56583b(0x388)][_0x56583b(0x580)](_0x1fd57e);}async[_0x333065(0x52a)](){const _0x2a0e68=_0x333065;var _0x431be6;this['_updateState'](await this['_createInitialState']()),this[_0x2a0e68(0x3ff)]&&((_0x431be6=this[_0x2a0e68(0x3ff)])==null||_0x431be6[_0x2a0e68(0x503)](this[_0x2a0e68(0x47f)]),this['disposeWithMe'](this[_0x2a0e68(0x3ff)][_0x2a0e68(0x4b1)](this[_0x2a0e68(0x47f)])['subscribe'](_0x462a3f=>{const _0x2c5d0e=_0x2a0e68;this[_0x2c5d0e(0x566)][_0x2c5d0e(0x597)]('[CollaborationEntity]',_0x2c5d0e(0x2f6),_0x462a3f),_0x462a3f===Dt['OTHER_CLIENTS_EDITING']?(this['_messageService'][_0x2c5d0e(0x38e)]({'content':this[_0x2c5d0e(0x40f)]['t'](_0x2c5d0e(0x2fd)),'type':X['MessageType'][_0x2c5d0e(0x341)]}),this[_0x2c5d0e(0x261)][_0x2c5d0e(0x194)](new C[(_0x2c5d0e(0x2eb))](this[_0x2c5d0e(0x47f)])['id'],!0x1)):this[_0x2c5d0e(0x261)]['updatePermissionPoint'](new C[(_0x2c5d0e(0x2eb))](this[_0x2c5d0e(0x47f)])['id'],!0x0);})));let _0xe47516=!0x1;return this[_0x2a0e68(0x1c8)](this[_0x2a0e68(0x44f)]['sessionStatus$'][_0x2a0e68(0x242)](_0x3ac3f7=>{const _0x5592f3=_0x2a0e68;_0x3ac3f7===H['ONLINE']?this['_toggleOnline'](_0xe47516):_0x3ac3f7===H[_0x5592f3(0x407)]&&(_0xe47516=!0x0,this[_0x5592f3(0x2ab)]());})),this['disposeWithMe'](this[_0x2a0e68(0x44f)][_0x2a0e68(0x476)]['subscribe'](_0x1fab6c=>{const _0x43f85d=_0x2a0e68;try{switch(_0x1fab6c[_0x43f85d(0x285)]){case _[_0x43f85d(0x2ff)][_0x43f85d(0x56d)]:{this['_onRemoteChangeset'](_['parseProtocolChangeset'](_0x1fab6c[_0x43f85d(0x549)]));break;}case _[_0x43f85d(0x2ff)]['CHANGESET_ACK']:{this[_0x43f85d(0x42b)](_0x1fab6c[_0x43f85d(0x549)]);break;}case _[_0x43f85d(0x2ff)]['CHANGESET_REJ']:{this[_0x43f85d(0x209)]();break;}case _[_0x43f85d(0x2ff)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x43f85d(0x455)](_0x1fab6c['data'][_0x43f85d(0x493)][_0x43f85d(0x501)](_0x57d99e=>_[_0x43f85d(0x52e)](_0x57d99e)));break;}case _[_0x43f85d(0x2ff)][_0x43f85d(0x50d)]:this[_0x43f85d(0x209)]({'isPermissionRej':!0x0});}}catch(_0x3efe12){throw console['error'](_0x43f85d(0x181),_0x3efe12),_0x3efe12;}})),this[_0x2a0e68(0x1e6)];}[_0x333065(0x1f9)](){const _0x20c195=_0x333065;this[_0x20c195(0x1ca)]=!0x1;}[_0x333065(0x27a)](){const _0x173980=_0x333065;if(this['_transitionLocked'])throw new Error(_0x173980(0x4c4));this[_0x173980(0x1ca)]=!0x0;}['_onLocalMutation'](_0x28f9a3){const _0x18809b=_0x333065;this[_0x18809b(0x27a)](),this['_updateState'](this['_state'][_0x18809b(0x59b)](_0x28f9a3)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x4d8fd5){const _0x4fd01e=_0x333065;if(!(_0x4d8fd5[_0x4fd01e(0x364)]<=this[_0x4fd01e(0x31d)][_0x4fd01e(0x3db)](this['unitID']))){if(this['_collaborationPaused']){this[_0x4fd01e(0x587)]['push'](_0x4d8fd5);return;}this[_0x4fd01e(0x4c6)](_0x4d8fd5);}}['_exhaustRemoteChangesetQueue'](){const _0xfeaa7b=_0x333065;this['_remoteChangesetQueue'][_0xfeaa7b(0x1f8)](_0x2b1031=>this[_0xfeaa7b(0x4c6)](_0x2b1031)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x1d1c05){const _0x444cec=_0x333065,_0x5d7e02=this[_0x444cec(0x23f)]['interceptor'][_0x444cec(0x224)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x444cec(0x2e8)])(_0x1d1c05[_0x444cec(0x4c9)],null)||_0x1d1c05[_0x444cec(0x4c9)],_0x55c255={..._0x1d1c05,'mutations':_0x5d7e02};this['_lockTransition'](),this[_0x444cec(0x213)](this['_state']['onRemoteChangeset'](_0x55c255)),this[_0x444cec(0x1f9)]();}['_onRemoteACK'](_0x39d5e){const _0xb2333d=_0x333065;this[_0xb2333d(0x27a)](),this[_0xb2333d(0x213)](this['_state'][_0xb2333d(0x2ba)](_0x39d5e)),this[_0xb2333d(0x1f9)]();}['_onRemoteRejected'](_0x2869e3){const _0xd0fdd6=_0x333065;this[_0xd0fdd6(0x27a)](),this[_0xd0fdd6(0x213)](this[_0xd0fdd6(0x1e6)][_0xd0fdd6(0x53c)](_0x2869e3)),this[_0xd0fdd6(0x1f9)]();}[_0x333065(0x455)](_0x213da1){const _0x42c3be=_0x333065;if(!(this[_0x42c3be(0x1e6)]instanceof x))throw new TypeError(_0x42c3be(0x2ee));const _0x2ad9a2=_0x213da1[_0x42c3be(0x501)](_0x206afe=>{const _0x1d1dc9=_0x42c3be,_0x3905cd=this[_0x1d1dc9(0x23f)][_0x1d1dc9(0x31b)]['fetchThroughInterceptors'](this[_0x1d1dc9(0x23f)][_0x1d1dc9(0x31b)][_0x1d1dc9(0x396)]()['COMPRESS_MUTATION_APPLY'])(_0x206afe[_0x1d1dc9(0x4c9)],null)||_0x206afe[_0x1d1dc9(0x4c9)];return{..._0x206afe,'mutations':_0x3905cd};});this[_0x42c3be(0x27a)](),this[_0x42c3be(0x213)](this[_0x42c3be(0x1e6)][_0x42c3be(0x35f)](_0x2ad9a2)),this[_0x42c3be(0x1f9)]();}[_0x333065(0x2ab)](){const _0x16e247=_0x333065;this[_0x16e247(0x27a)](),this[_0x16e247(0x213)](this[_0x16e247(0x1e6)][_0x16e247(0x33a)]()),this[_0x16e247(0x1f9)]();}['_toggleOnline'](_0x44e746=!0x1){const _0x56a555=_0x333065;this['_lockTransition'](),this[_0x56a555(0x213)](this[_0x56a555(0x1e6)]['toggleOnline']()),this[_0x56a555(0x1f9)]();const _0x56ae90=this[_0x56a555(0x1e6)];_0x44e746&&_0x56ae90 instanceof ie&&(this[_0x56a555(0x27a)](),this['_updateState'](_0x56ae90[_0x56a555(0x583)]()),this[_0x56a555(0x1f9)]());}async['_createInitialState'](){return new Promise(_0x40d57f=>{const _0x578c60=_0x2204;this[_0x578c60(0x44f)]['sessionStatus$']['pipe'](v[_0x578c60(0x4c8)](0x1))[_0x578c60(0x242)](async _0x26e35c=>{const _0x4dc235=_0x578c60;_0x40d57f(await this[_0x4dc235(0x31c)](_0x26e35c===H['ONLINE']));});});}['_createHandler'](){const _0x496fc7=_0x333065,_0x31a691=this[_0x496fc7(0x47f)];return{'onStateChange':(_0x393149,_0x1c30cf)=>{const _0x5c8606=_0x496fc7;if(_0x393149!==this[_0x5c8606(0x1e6)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x393149[_0x5c8606(0x47e)]+_0x5c8606(0x1ef)+_0x1c30cf[_0x5c8606(0x47e)]+_0x5c8606(0x299)+this[_0x5c8606(0x1e6)][_0x5c8606(0x47e)]);this['_updateState'](_0x1c30cf);},'onSendChangeset':_0x173272=>{const _0x7ec9d8=_0x496fc7;_0x173272[_0x7ec9d8(0x51b)]||(_0x173272['sid']=this[_0x7ec9d8(0x3c4)],_0x173272[_0x7ec9d8(0x31f)]=++this[_0x7ec9d8(0x4c1)]);const _0x17c199={'eventID':_['CollaborationEvent'][_0x7ec9d8(0x230)],'data':{'unitID':_0x173272['unitID'],'unitType':this[_0x7ec9d8(0x593)],'changeset':_0x173272,'memberID':this[_0x7ec9d8(0x44f)]['getMemberID']()}};this[_0x7ec9d8(0x44f)]['send'](_0x17c199,this['unitID']);},'onMissingChangesets':({from:_0x2bdcf8,to:_0x3b7b90})=>{const _0x3906e5=_0x496fc7;this[_0x3906e5(0x566)][_0x3906e5(0x597)]('[CollaborationEntity]',_0x3906e5(0x234)+_0x2bdcf8+_0x3906e5(0x1aa)+_0x3b7b90);const _0x57afb2={'eventID':_['CollaborationEvent'][_0x3906e5(0x22e)],'data':{'unitID':_0x31a691,'unitType':this[_0x3906e5(0x593)],'from':_0x2bdcf8,'to':_0x3b7b90}};this[_0x3906e5(0x44f)][_0x3906e5(0x531)](_0x57afb2,this[_0x3906e5(0x47f)]);}};}async['_createInitialStateImpl'](_0x21223f){const _0x373949=_0x333065;var _0x441218,_0x865bd3;const _0x541ffe=await this[_0x373949(0x48a)][_0x373949(0x3c8)](this[_0x373949(0x47f)]),_0x2a17b7=(_0x441218=_0x541ffe==null?void 0x0:_0x541ffe['mutations'])!=null?_0x441218:[],_0x2e09fa=(_0x865bd3=_0x541ffe==null?void 0x0:_0x541ffe[_0x373949(0x557)])!=null?_0x865bd3:null,_0x3b7a94=!!(_0x2e09fa!=null&&_0x2e09fa[_0x373949(0x51b)])&&!!(_0x2e09fa!=null&&_0x2e09fa['reqId']);this[_0x373949(0x3c4)]=_0x3b7a94?_0x2e09fa[_0x373949(0x51b)]:Os(),this['_changesetReqId']=_0x3b7a94?_0x2e09fa[_0x373949(0x31f)]:0x0;const _0x417eec=this[_0x373949(0x47f)];try{this[_0x373949(0x372)](_0x2e09fa,_0x2a17b7);}catch(_0x7e4255){this['_logService'][_0x373949(0x297)](_0x7e4255);}const _0x6b46d8=this[_0x373949(0x43f)]();if(_0x21223f){const _0x4f3353=Ut(this[_0x373949(0x564)],_0x417eec,this[_0x373949(0x593)],_0x2e09fa,_0x2a17b7,_0x6b46d8);return _0x4f3353 instanceof k?_0x4f3353[_0x373949(0x432)]():(_0x4f3353 instanceof B||_0x4f3353 instanceof W)&&_0x4f3353[_0x373949(0x4b9)](),_0x4f3353;}return this[_0x373949(0x564)]['createInstance'](G,_0x417eec,this[_0x373949(0x593)],_0x2e09fa,_0x2a17b7,_0x6b46d8);}[_0x333065(0x372)](_0x1d37bb,_0x464ea7){const _0x696d08=_0x333065;var _0x3be6c2,_0x3ba062;const _0x5b59a3=this['_compressMutationService']['interceptor'][_0x696d08(0x224)](this['_compressMutationService'][_0x696d08(0x31b)][_0x696d08(0x396)]()[_0x696d08(0x2e8)]);(_0x3be6c2=_0x5b59a3((_0x1d37bb==null?void 0x0:_0x1d37bb[_0x696d08(0x4c9)])||[],null))==null||_0x3be6c2['forEach'](_0x22d55c=>this[_0x696d08(0x243)][_0x696d08(0x357)](_0x22d55c['id'],_0x22d55c[_0x696d08(0x3d6)])),(_0x3ba062=_0x5b59a3(_0x464ea7||[],null))==null||_0x3ba062['forEach'](_0xe19392=>this[_0x696d08(0x243)][_0x696d08(0x357)](_0xe19392['id'],_0xe19392['params']));}},exports[_0x333065(0x35c)]=ze([p(0x3,a[_0x333065(0x520)](a[_0x333065(0x347)])),p(0x4,a[_0x333065(0x520)](exports[_0x333065(0x3f9)])),p(0x5,a[_0x333065(0x520)](_[_0x333065(0x308)])),p(0x6,a['Inject'](a[_0x333065(0x282)])),p(0x7,a[_0x333065(0x520)](_[_0x333065(0x3ac)])),p(0x8,a[_0x333065(0x176)]),p(0x9,a['ICommandService']),p(0xa,A['IMessageService']),p(0xb,a['IPermissionService']),p(0xc,a[_0x333065(0x280)](Re))],exports['CollaborationEntity']),exports[_0x333065(0x4aa)]=class extends exports[_0x333065(0x35c)]{constructor(_0x19e6a6,_0x5843b0,_0x3c5f74,_0xbf292a,_0x2b1896,_0x1791d8,_0x3b8b3f,_0x3eddb3,_0x596078,_0x146aa3,_0x4aa15a,_0xd26a0a,_0x3e20a6,_0x224113,_0x2ed69c,_0x29b3bc,_0x363ce3){const _0x213401=_0x333065;super(_0x19e6a6,_0x3c5f74,_0x5843b0,_0xbf292a,_0x2b1896,_0x1791d8,_0x3b8b3f,_0x3eddb3,_0x3e20a6,_0x224113,_0x2ed69c,_0x29b3bc,_0x363ce3),this[_0x213401(0x47f)]=_0x19e6a6,this[_0x213401(0x3c3)]=_0x5843b0,this[_0x213401(0x497)]=_0x596078,this[_0x213401(0x467)]=_0x146aa3,this[_0x213401(0x17c)]=_0x4aa15a,this[_0x213401(0x177)]=_0xd26a0a;}['_createHandler'](){const _0x429575=_0x333065,_0x114a45=super[_0x429575(0x43f)]();return _0x114a45['onTransformIME']=_0x160259=>this['_docTransformIMECacheService'][_0x429575(0x3c2)](_0x160259),_0x114a45[_0x429575(0x2f2)]=_0x468668=>this[_0x429575(0x17c)]['transformSelections'](_0x468668),_0x114a45['onSyncEditingCollabCursor']=_0x4fde9a=>this[_0x429575(0x177)][_0x429575(0x414)](_0x4fde9a),_0x114a45[_0x429575(0x546)]=_0x571591=>this[_0x429575(0x467)][_0x429575(0x43b)](_0x571591),_0x114a45;}async['_init'](){const _0x4b0b0e=_0x333065,_0x35ea3a=await super[_0x4b0b0e(0x52a)]();return this[_0x4b0b0e(0x497)][_0x4b0b0e(0x21f)][_0x4b0b0e(0x32e)](v[_0x4b0b0e(0x500)](this[_0x4b0b0e(0x3ec)]))[_0x4b0b0e(0x242)](_0x865885=>{const _0x10318a=_0x4b0b0e;if(_0x865885==null)return;const {unitId:_0x49ddf4,redoState:_0xbd178a,commandId:_0xa7dd92}=_0x865885;if(_0x49ddf4!==this['unitID'])return;const _0x2d6b8f={'id':_0xa7dd92,'type':a[_0x10318a(0x511)][_0x10318a(0x45b)],'params':{'unitId':_0x49ddf4,'actions':_0xbd178a[_0x10318a(0x3e6)],'textRanges':null}};this[_0x10318a(0x4e4)](_0x2d6b8f);}),_0x35ea3a;}},exports[_0x333065(0x4aa)]=ze([p(0x3,a[_0x333065(0x520)](a[_0x333065(0x347)])),p(0x4,a[_0x333065(0x520)](exports['LocalCacheService'])),p(0x5,a[_0x333065(0x520)](_['CompressMutationService'])),p(0x6,a['Inject'](a[_0x333065(0x282)])),p(0x7,a[_0x333065(0x520)](_[_0x333065(0x3ac)])),p(0x8,a[_0x333065(0x520)](N[_0x333065(0x51a)])),p(0x9,a[_0x333065(0x520)](fe)),p(0xa,a['Inject'](pe)),p(0xb,a[_0x333065(0x520)](qe)),p(0xc,a['ILogService']),p(0xd,a[_0x333065(0x377)]),p(0xe,A[_0x333065(0x3dc)]),p(0xf,a[_0x333065(0x38f)]),p(0x10,a[_0x333065(0x280)](Re))],exports[_0x333065(0x4aa)]),exports[_0x333065(0x195)]=class extends exports[_0x333065(0x35c)]{constructor(_0x351334,_0x3a6070,_0x5c5d92,_0x4fd3db,_0x21f61c,_0x57b511,_0x41ddb2,_0x3f5b9a,_0x270628,_0x36e7b0,_0x15423e,_0x1f691d,_0xe8b69d,_0x1eedf9){const _0x9c6fe1=_0x333065;super(_0x351334,_0x5c5d92,_0x3a6070,_0x4fd3db,_0x21f61c,_0x57b511,_0x41ddb2,_0x3f5b9a,_0x36e7b0,_0x15423e,_0x1f691d,_0xe8b69d,_0x1eedf9),this['unitID']=_0x351334,this[_0x9c6fe1(0x3c3)]=_0x3a6070,this[_0x9c6fe1(0x3e1)]=_0x270628;}[_0x333065(0x43f)](){const _0x527681=_0x333065,_0x3b08f9=super['_createHandler']();return _0x3b08f9[_0x527681(0x2f2)]=_0x414848=>this[_0x527681(0x3e1)][_0x527681(0x5a1)](_0x414848),_0x3b08f9;}async['_init'](){const _0x12aca3=_0x333065,_0x11027f=await super[_0x12aca3(0x52a)]();return this[_0x12aca3(0x1c8)](this[_0x12aca3(0x243)][_0x12aca3(0x41f)]((_0x581c53,_0x7f6ec3)=>{const _0x278614=_0x12aca3;if(_0x581c53['type']!==a[_0x278614(0x511)][_0x278614(0x45b)]||_0x7f6ec3!=null&&_0x7f6ec3[_0x278614(0x35e)]||_0x7f6ec3!=null&&_0x7f6ec3[_0x278614(0x399)])return;const _0x290f70=_0x581c53[_0x278614(0x3d6)];if((_0x290f70==null?void 0x0:_0x290f70[_0x278614(0x346)])!==this[_0x278614(0x47f)])return;const _0x150bbd=_0x581c53,_0x3295fe=this[_0x278614(0x23f)][_0x278614(0x31b)][_0x278614(0x224)](this[_0x278614(0x23f)][_0x278614(0x31b)][_0x278614(0x396)]()[_0x278614(0x3da)])([_0x150bbd],null)||[_0x150bbd];this['_onLocalMutation'](_0x3295fe[0x0]);})),_0x11027f;}},exports[_0x333065(0x195)]=ze([p(0x3,a[_0x333065(0x520)](a[_0x333065(0x347)])),p(0x4,a[_0x333065(0x520)](exports[_0x333065(0x3f9)])),p(0x5,a[_0x333065(0x520)](_['CompressMutationService'])),p(0x6,a['Inject'](a[_0x333065(0x282)])),p(0x7,a[_0x333065(0x520)](_[_0x333065(0x3ac)])),p(0x8,a[_0x333065(0x520)](Ie)),p(0x9,a['ILogService']),p(0xa,a[_0x333065(0x377)]),p(0xb,A[_0x333065(0x3dc)]),p(0xc,a[_0x333065(0x38f)]),p(0xd,a[_0x333065(0x280)](Re))],exports[_0x333065(0x195)]);var qs=Object[_0x333065(0x2e3)],zs=Object[_0x333065(0x378)],Js=(_0x4d1321,_0x3ed958,_0xd2889a,_0x462d67)=>{const _0x2d1c82=_0x333065;for(var _0x18a02f=_0x462d67>0x1?void 0x0:_0x462d67?zs(_0x3ed958,_0xd2889a):_0x3ed958,_0x34bf87=_0x4d1321[_0x2d1c82(0x255)]-0x1,_0x28bb05;_0x34bf87>=0x0;_0x34bf87--)(_0x28bb05=_0x4d1321[_0x34bf87])&&(_0x18a02f=(_0x462d67?_0x28bb05(_0x3ed958,_0xd2889a,_0x18a02f):_0x28bb05(_0x18a02f))||_0x18a02f);return _0x462d67&&_0x18a02f&&qs(_0x3ed958,_0xd2889a,_0x18a02f),_0x18a02f;},Ne=(_0x3ff9c4,_0x5a4554)=>(_0x2486df,_0x348231)=>_0x5a4554(_0x2486df,_0x348231,_0x3ff9c4);exports[_0x333065(0x225)]=class extends a[_0x333065(0x475)]{constructor(_0x79ac19,_0x5d4a9e,_0x2fbd5a){const _0xbc19cc=_0x333065;super(),u(this,_0xbc19cc(0x3aa),new Map()),u(this,_0xbc19cc(0x237),new v[(_0xbc19cc(0x1df))]()),(this[_0xbc19cc(0x564)]=_0x79ac19,this[_0xbc19cc(0x4e0)]=_0x5d4a9e,this['_univerInstanceService']=_0x2fbd5a,this[_0xbc19cc(0x52a)]());}[_0x333065(0x487)](){const _0x3ca40f=_0x333065;super[_0x3ca40f(0x487)](),this[_0x3ca40f(0x3aa)][_0x3ca40f(0x1f8)](_0x32b7b0=>_0x32b7b0[_0x3ca40f(0x487)]()),this[_0x3ca40f(0x3aa)][_0x3ca40f(0x2f0)]();}[_0x333065(0x573)](_0x5ccb0d){var _0xac0c07;return(_0xac0c07=this['_entities']['get'](_0x5ccb0d))!=null?_0xac0c07:null;}['getCollabEntity$'](_0x1d6a4a){const _0x195b27=_0x333065,_0x3170b0=this['getCollabEntity'](_0x1d6a4a);return _0x3170b0?v['of'](_0x3170b0):this[_0x195b27(0x237)]['pipe'](E[_0x195b27(0x2ce)](_0x53c538=>_0x53c538[_0x195b27(0x47f)]===_0x1d6a4a));}[_0x333065(0x52a)](){const _0x3a0f01=_0x333065;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x3a0f01(0x298)][_0x3a0f01(0x42f)])[_0x3a0f01(0x32e)](v['takeUntil'](this[_0x3a0f01(0x3ec)]),E[_0x3a0f01(0x292)](0x10))[_0x3a0f01(0x242)](async _0x232542=>{const _0x5909bd=_0x3a0f01,_0x3576ed=_0x232542[_0x5909bd(0x18e)](),_0x17598c=await this['_startCollaboration'](_0x3576ed,$['UNIVER_SHEET']);this[_0x5909bd(0x3aa)][_0x5909bd(0x24c)](_0x3576ed,_0x17598c);}),this[_0x3a0f01(0x295)][_0x3a0f01(0x38d)](a['UniverInstanceType'][_0x3a0f01(0x56f)])['pipe'](v[_0x3a0f01(0x500)](this['dispose$']),E[_0x3a0f01(0x292)](0x10))[_0x3a0f01(0x32e)](E[_0x3a0f01(0x2ce)](_0x22e4db=>!_0x22e4db[_0x3a0f01(0x18e)]()[_0x3a0f01(0x3d8)]('__')))['subscribe'](async _0x1e48f6=>{const _0x60efc4=_0x3a0f01,_0x5d6c72=_0x1e48f6[_0x60efc4(0x18e)](),_0x1a7b16=await this[_0x60efc4(0x3ab)](_0x5d6c72,$[_0x60efc4(0x56f)]);this[_0x60efc4(0x3aa)][_0x60efc4(0x24c)](_0x5d6c72,_0x1a7b16);}),v[_0x3a0f01(0x4f3)](this[_0x3a0f01(0x295)][_0x3a0f01(0x34a)](a[_0x3a0f01(0x298)][_0x3a0f01(0x42f)]),this['_univerInstanceService'][_0x3a0f01(0x34a)](a[_0x3a0f01(0x298)][_0x3a0f01(0x56f)]))['pipe'](v['takeUntil'](this[_0x3a0f01(0x3ec)]))['subscribe'](_0x55aa65=>{const _0xc2f559=_0x3a0f01,_0x4c6914=_0x55aa65[_0xc2f559(0x18e)](),_0x36b16b=this[_0xc2f559(0x3aa)][_0xc2f559(0x3c0)](_0x4c6914);_0x36b16b&&(_0x36b16b[_0xc2f559(0x487)](),this[_0xc2f559(0x3aa)][_0xc2f559(0x3cb)](_0x4c6914));});}async[_0x333065(0x3ab)](_0x4a9c8d,_0x4e9e86){const _0x11c5aa=_0x333065,_0x23e33a=await this[_0x11c5aa(0x4e0)][_0x11c5aa(0x425)](_0x4a9c8d),_0x4ccd73=this[_0x11c5aa(0x564)][_0x11c5aa(0x2ca)](this[_0x11c5aa(0x2ac)](_0x4e9e86),_0x4a9c8d,_0x4e9e86,_0x23e33a);return await _0x4ccd73[_0x11c5aa(0x22f)](),this[_0x11c5aa(0x237)][_0x11c5aa(0x580)](_0x4ccd73),_0x4ccd73;}[_0x333065(0x2ac)](_0x40271c){const _0x120b95=_0x333065;switch(_0x40271c){case $[_0x120b95(0x56f)]:return exports[_0x120b95(0x4aa)];case $[_0x120b95(0x42f)]:return exports[_0x120b95(0x195)];default:throw new Error(_0x120b95(0x515)+_0x40271c);}}},exports[_0x333065(0x225)]=Js([Ne(0x0,a['Inject'](a['Injector'])),Ne(0x1,a[_0x333065(0x520)](exports[_0x333065(0x418)])),Ne(0x2,a[_0x333065(0x3c1)])],exports[_0x333065(0x225)]);const ct=[_0x333065(0x1f7),_0x333065(0x43a),_0x333065(0x27f),_0x333065(0x303),_0x333065(0x1a5),_0x333065(0x27e)];class Je extends a[_0x333065(0x1cc)]{constructor(){const _0x570bb7=_0x333065;super(...arguments),u(this,_0x570bb7(0x32c),new Map()),u(this,_0x570bb7(0x4fb),0x0);}['assignAColorForMemberID'](_0x590986){const _0x5c7b6a=_0x333065;if(this[_0x5c7b6a(0x32c)][_0x5c7b6a(0x438)](_0x590986))return this['_assignedColors']['get'](_0x590986);const _0x1214c4=ct[this[_0x5c7b6a(0x4fb)]];return this[_0x5c7b6a(0x4fb)]=(this[_0x5c7b6a(0x4fb)]+0x1)%ct[_0x5c7b6a(0x255)],this[_0x5c7b6a(0x32c)][_0x5c7b6a(0x24c)](_0x590986,_0x1214c4),_0x1214c4;}}var Zs=Object['defineProperty'],Qs=Object['getOwnPropertyDescriptor'],ei=(_0x21bd13,_0x2b4116,_0x402ff7,_0x39bed7)=>{const _0x4ecfb5=_0x333065;for(var _0x304de6=_0x39bed7>0x1?void 0x0:_0x39bed7?Qs(_0x2b4116,_0x402ff7):_0x2b4116,_0x39670a=_0x21bd13[_0x4ecfb5(0x255)]-0x1,_0x43c9f0;_0x39670a>=0x0;_0x39670a--)(_0x43c9f0=_0x21bd13[_0x39670a])&&(_0x304de6=(_0x39bed7?_0x43c9f0(_0x2b4116,_0x402ff7,_0x304de6):_0x43c9f0(_0x304de6))||_0x304de6);return _0x39bed7&&_0x304de6&&Zs(_0x2b4116,_0x402ff7,_0x304de6),_0x304de6;},K=(_0x252a6c,_0x260736)=>(_0x279176,_0x4a105f)=>_0x260736(_0x279176,_0x4a105f,_0x252a6c);const ti=0x12c,si=0x64;let ke=class extends a[_0x333065(0x475)]{constructor(_0x1d9ff6,_0x541448,_0x14472d,_0x5b7235,_0x399194,_0x27a262,_0x4c6166,_0x908b9c,_0x46eaf3){const _0x39d9e0=_0x333065;super(),u(this,'_online',!0x1),u(this,_0x39d9e0(0x52a),!0x1),u(this,_0x39d9e0(0x198),new v['BehaviorSubject'](new Map())),u(this,_0x39d9e0(0x1ad),this[_0x39d9e0(0x198)][_0x39d9e0(0x205)]()),u(this,_0x39d9e0(0x174),new v[(_0x39d9e0(0x4da))]([])),u(this,_0x39d9e0(0x4c5),this[_0x39d9e0(0x174)]['pipe'](v[_0x39d9e0(0x376)](ti))),u(this,'_updateLocalCursor',a[_0x39d9e0(0x514)](_0x548c54=>{const _0x3ec347=_0x39d9e0,_0x1cbd0c={'eventID':_[_0x3ec347(0x2ff)][_0x3ec347(0x2e6)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x3ec347(0x499)](),'selection':yt(_0x548c54)}};this['_session'][_0x3ec347(0x531)](_0x1cbd0c,this[_0x3ec347(0x47f)]);},si)),(this['unitID']=_0x1d9ff6,this[_0x39d9e0(0x2a7)]=_0x541448,this[_0x39d9e0(0x564)]=_0x14472d,this['_colorAssignService']=_0x5b7235,this[_0x39d9e0(0x23a)]=_0x399194,this[_0x39d9e0(0x1be)]=_0x27a262,this[_0x39d9e0(0x20c)]=_0x4c6166,this[_0x39d9e0(0x295)]=_0x908b9c,this[_0x39d9e0(0x243)]=_0x46eaf3);}get[_0x333065(0x2bf)](){const _0xe159a0=_0x333065;return this[_0xe159a0(0x198)][_0xe159a0(0x41d)]();}get['roomMembers'](){const _0x460908=_0x333065;return this[_0x460908(0x174)][_0x460908(0x41d)]();}['dispose'](){const _0x42fdfa=_0x333065;super[_0x42fdfa(0x487)](),this[_0x42fdfa(0x198)]['next'](new Map()),this[_0x42fdfa(0x198)]['complete'](),this[_0x42fdfa(0x174)][_0x42fdfa(0x580)]([]),this[_0x42fdfa(0x174)][_0x42fdfa(0x2de)]();}['init'](){const _0x268db9=_0x333065;this[_0x268db9(0x52a)]||(this[_0x268db9(0x52a)]=!0x0,this[_0x268db9(0x2a7)]['sessionStatus$'][_0x268db9(0x32e)](v[_0x268db9(0x500)](this[_0x268db9(0x3ec)]))[_0x268db9(0x242)](_0x222040=>{const _0x34cc86=_0x268db9;_0x222040===H[_0x34cc86(0x551)]?this[_0x34cc86(0x591)]():this[_0x34cc86(0x2ab)]();}),this[_0x268db9(0x2a7)][_0x268db9(0x476)][_0x268db9(0x32e)](v[_0x268db9(0x500)](this[_0x268db9(0x3ec)]))[_0x268db9(0x242)](_0x1529f0=>{const _0x4ead2b=_0x268db9,_0x4ac342=_0x1529f0[_0x4ead2b(0x285)];_0x4ac342===_[_0x4ead2b(0x2ff)][_0x4ead2b(0x2e6)]&&this['_onCursorUpdate'](_0x1529f0),_0x4ac342===_[_0x4ead2b(0x2ff)][_0x4ead2b(0x59d)]&&this[_0x4ead2b(0x26b)](_0x1529f0);}),this['disposeWithMe'](this[_0x268db9(0x243)][_0x268db9(0x41f)](_0x4c645d=>{const _0x14a064=_0x268db9,_0xc70ef3=_0x4c645d['params'];_0xc70ef3!=null&&this[_0x14a064(0x26a)]&&_0x4c645d['id']===se[_0x14a064(0x457)]['id']&&_0xc70ef3[_0x14a064(0x346)]===this[_0x14a064(0x47f)]&&_0xc70ef3[_0x14a064(0x190)]===!0x1&&this['_updateLocalCursor'](_0xc70ef3['ranges']);})),this['_syncEditingCollabCursorService'][_0x268db9(0x2b5)]['pipe'](v[_0x268db9(0x500)](this[_0x268db9(0x3ec)]))['subscribe'](_0xdc8208=>{const _0x3d33d6=_0x268db9;if((_0xdc8208==null?void 0x0:_0xdc8208[_0x3d33d6(0x47f)])!==this[_0x3d33d6(0x47f)])return;const _0x38b590={'eventID':_[_0x3d33d6(0x2ff)]['UPDATE_CURSOR'],'data':_0xdc8208};this[_0x3d33d6(0x1d1)](_0x38b590);}),this['disposeWithMe'](this[_0x268db9(0x243)]['onCommandExecuted'](_0x296540=>{const _0x9f678=_0x268db9;if(_0x296540[_0x9f678(0x3d6)]==null)return;const _0x54d5d9=_0x296540[_0x9f678(0x3d6)];if(_0x296540['id']!==se[_0x9f678(0x332)]['id']||_0x54d5d9['unitId']!==this[_0x9f678(0x47f)])return;const _0x113e77={'id':_0x9f678(0x317),'params':_0x54d5d9},_0x17988a=this[_0x9f678(0x2bf)];for(const [_0x1a9c65,_0x24250a]of _0x17988a){const _0x5c04d9={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x9f678(0x47f)],'actions':null,'textRanges':_0x24250a[_0x9f678(0x1c1)]}},_0x56843c=this[_0x9f678(0x20c)]['transformMutation'](_0x113e77,_0x5c04d9,!0x1);if(_[_0x9f678(0x2cb)](_0x56843c))throw _0x56843c[_0x9f678(0x297)];_0x17988a[_0x9f678(0x24c)](_0x1a9c65,{..._0x24250a,'ranges':_0x56843c[_0x9f678(0x54e)]['params'][_0x9f678(0x3a6)]});}queueMicrotask(()=>{const _0x35ad87=_0x9f678;this[_0x35ad87(0x198)][_0x35ad87(0x580)](_0x17988a);});})));}[_0x333065(0x1d1)](_0x54174d){const _0x248e3a=_0x333065;var _0x965e03,_0x4f73c9;const {memberID:_0x2e2224,selection:_0x2de03f}=_0x54174d[_0x248e3a(0x549)],_0x54fdf4=Hs(_0x2de03f),_0x3b0065=(_0x4f73c9=(_0x965e03=this[_0x248e3a(0x23a)]['getMember'](this[_0x248e3a(0x47f)],_0x2e2224))==null?void 0x0:_0x965e03[_0x248e3a(0x3f1)])!=null?_0x4f73c9:_0x248e3a(0x570),_0x58ce94={'color':this[_0x248e3a(0x4ba)][_0x248e3a(0x1d5)](_0x2e2224),'name':_0x3b0065,'ranges':_0x54fdf4},_0x595e68=this[_0x248e3a(0x2bf)];_0x595e68['set'](_0x2e2224,_0x58ce94),this[_0x248e3a(0x198)][_0x248e3a(0x580)](_0x595e68);}[_0x333065(0x26b)](_0x277ee0){const _0x4c9aa2=_0x333065,{memberID:_0x4a1130}=_0x277ee0[_0x4c9aa2(0x549)],_0x3a97ef=this[_0x4c9aa2(0x2bf)];_0x3a97ef[_0x4c9aa2(0x3cb)](_0x4a1130),this[_0x4c9aa2(0x198)][_0x4c9aa2(0x580)](_0x3a97ef);}[_0x333065(0x591)](){const _0x388388=_0x333065;var _0xb407ad;if(this[_0x388388(0x26a)]=!0x0,((_0xb407ad=this[_0x388388(0x295)][_0x388388(0x4fa)]())==null?void 0x0:_0xb407ad[_0x388388(0x18e)]())!==this['unitID'])return;const _0x447d77=this[_0x388388(0x564)][_0x388388(0x3c0)](se[_0x388388(0x398)])[_0x388388(0x31a)]();Array['isArray'](_0x447d77)&&_0x447d77[_0x388388(0x255)]>0x0&&this[_0x388388(0x380)](_0x447d77);}[_0x333065(0x2ab)](){this['_online']=!0x1;}};ke=ei([K(0x2,a['Inject'](a[_0x333065(0x347)])),K(0x3,a['Inject'](Je)),K(0x4,a['Inject'](q)),K(0x5,a[_0x333065(0x520)](qe)),K(0x6,_[_0x333065(0x50b)]),K(0x7,a[_0x333065(0x3c1)]),K(0x8,a[_0x333065(0x377)])],ke);var ii=Object['defineProperty'],ni=Object[_0x333065(0x378)],ri=(_0x1da252,_0x86794,_0x1a3731,_0xe3cc10)=>{const _0x28e9a2=_0x333065;for(var _0x524944=_0xe3cc10>0x1?void 0x0:_0xe3cc10?ni(_0x86794,_0x1a3731):_0x86794,_0x2ed391=_0x1da252[_0x28e9a2(0x255)]-0x1,_0x15c876;_0x2ed391>=0x0;_0x2ed391--)(_0x15c876=_0x1da252[_0x2ed391])&&(_0x524944=(_0xe3cc10?_0x15c876(_0x86794,_0x1a3731,_0x524944):_0x15c876(_0x524944))||_0x524944);return _0xe3cc10&&_0x524944&&ii(_0x86794,_0x1a3731,_0x524944),_0x524944;},Q=(_0x23bb52,_0x258d5c)=>(_0x53324f,_0x32f109)=>_0x258d5c(_0x53324f,_0x32f109,_0x23bb52);const oi=0x12c,ai=0x64,ci=()=>{let _0xa23128=[],_0x3a3c5c=!0x1;return _0x7774e0=>{const _0x2e6f7b=_0x2204;_0xa23128[_0x2e6f7b(0x2b7)](_0x7774e0),_0x3a3c5c||(_0x3a3c5c=!0x0,setTimeout(()=>{const _0x28648b=_0x2e6f7b;_0xa23128[_0x28648b(0x1f8)](_0xed2e30=>_0xed2e30()),_0xa23128=[],_0x3a3c5c=!0x1;}));};};let Be=class extends a[_0x333065(0x475)]{constructor(_0x38c998,_0x32bc78,_0x586e80,_0x45836b,_0x8442c8,_0x54f32e,_0xf90aae,_0xd79b15){const _0x56e4d6=_0x333065;super(),u(this,_0x56e4d6(0x26a),!0x1),u(this,_0x56e4d6(0x52a),!0x1),u(this,_0x56e4d6(0x198),new v['BehaviorSubject'](new Map())),u(this,'cursorInfo$',this[_0x56e4d6(0x198)][_0x56e4d6(0x205)]()),u(this,_0x56e4d6(0x174),new v['BehaviorSubject']([])),u(this,_0x56e4d6(0x4c5),this[_0x56e4d6(0x174)][_0x56e4d6(0x32e)](v[_0x56e4d6(0x376)](oi))),u(this,_0x56e4d6(0x380),a['debounce']((_0x5cb3ab,_0x5b79bc)=>{const _0x4e2660=_0x56e4d6,_0x4479ee={'eventID':_['CollaborationEvent'][_0x4e2660(0x2e6)],'data':{'unitID':this[_0x4e2660(0x47f)],'memberID':this['_session'][_0x4e2660(0x499)](),'selection':et[_0x4e2660(0x54f)](_0x5cb3ab,_0x5b79bc['range'])}};this[_0x4e2660(0x2a7)][_0x4e2660(0x531)](_0x4479ee,this[_0x4e2660(0x47f)]);},ai)),(this[_0x56e4d6(0x47f)]=_0x38c998,this['_session']=_0x32bc78,this['_injector']=_0x586e80,this['_colorAssignService']=_0x45836b,this[_0x56e4d6(0x23a)]=_0x8442c8,this[_0x56e4d6(0x295)]=_0x54f32e,this['_commandService']=_0xf90aae,this[_0x56e4d6(0x238)]=_0xd79b15);}get[_0x333065(0x2bf)](){const _0x3bb284=_0x333065;return this[_0x3bb284(0x198)][_0x3bb284(0x41d)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x333065(0x487)](){const _0x88f6da=_0x333065;super[_0x88f6da(0x487)](),this[_0x88f6da(0x198)][_0x88f6da(0x580)](new Map()),this[_0x88f6da(0x198)]['complete'](),this[_0x88f6da(0x174)][_0x88f6da(0x580)]([]),this['_roomMembers$']['complete']();}[_0x333065(0x22f)](){const _0x44d100=_0x333065;this[_0x44d100(0x52a)]||(this[_0x44d100(0x52a)]=!0x0,this[_0x44d100(0x2a7)][_0x44d100(0x19b)][_0x44d100(0x32e)](v[_0x44d100(0x500)](this[_0x44d100(0x3ec)]))[_0x44d100(0x242)](_0x21d4cb=>{const _0x3c282e=_0x44d100;_0x21d4cb===H[_0x3c282e(0x551)]?this[_0x3c282e(0x591)]():this[_0x3c282e(0x2ab)]();}),this[_0x44d100(0x2a7)][_0x44d100(0x476)][_0x44d100(0x32e)](v[_0x44d100(0x500)](this[_0x44d100(0x3ec)]))[_0x44d100(0x242)](_0x5d2f3f=>{const _0x1fc6f1=_0x44d100,_0x426481=_0x5d2f3f[_0x1fc6f1(0x285)];_0x426481===_[_0x1fc6f1(0x2ff)][_0x1fc6f1(0x2e6)]&&this[_0x1fc6f1(0x1d1)](_0x5d2f3f),_0x426481===_[_0x1fc6f1(0x2ff)]['USERS_LEAVE']&&this[_0x1fc6f1(0x26b)](_0x5d2f3f);}),this[_0x44d100(0x368)](),this['disposeWithMe'](this[_0x44d100(0x243)]['onCommandExecuted'](_0x2cb9aa=>{const _0x727e4c=_0x44d100;if(this[_0x727e4c(0x26a)]&&_0x2cb9aa['id']===C[_0x727e4c(0x478)]['id']&&_0x2cb9aa[_0x727e4c(0x3d6)][_0x727e4c(0x346)]===this[_0x727e4c(0x47f)]){const _0x30403e=_0x2cb9aa[_0x727e4c(0x3d6)];this[_0x727e4c(0x380)](_0x30403e['subUnitId'],_0x30403e[_0x727e4c(0x1a2)][0x0]);}})));}[_0x333065(0x1d1)](_0x11b9f3){const _0x156640=_0x333065;var _0xf2051d,_0x360cec;const {memberID:_0x50c6ce,selection:_0x2814e0}=_0x11b9f3['data'],{sheetName:_0x3f79ef,range:_0x23e8af}=et[_0x156640(0x53e)](_0x2814e0),_0x4a5863={'name':(_0x360cec=(_0xf2051d=this[_0x156640(0x23a)]['getMember'](this[_0x156640(0x47f)],_0x50c6ce))==null?void 0x0:_0xf2051d[_0x156640(0x3f1)])!=null?_0x360cec:'Unknown\x20user','range':this['_getMergeRange'](_0x3f79ef,_0x23e8af),'sheetID':_0x3f79ef,'color':this[_0x156640(0x4ba)][_0x156640(0x1d5)](_0x50c6ce),'selection':_0x2814e0},_0x320975=this[_0x156640(0x2bf)];_0x320975[_0x156640(0x24c)](_0x50c6ce,_0x4a5863),this[_0x156640(0x198)]['next'](_0x320975);}['_onCursorDelete'](_0x2a219e){const _0xf24650=_0x333065,{memberID:_0x268f78}=_0x2a219e['data'],_0x55f8f5=this[_0xf24650(0x2bf)];_0x55f8f5['delete'](_0x268f78),this[_0xf24650(0x198)]['next'](_0x55f8f5);}[_0x333065(0x38a)](_0x16da96,_0x5d01dc){const _0x55eece=_0x333065;var _0x1bdd07,_0x5569ff;const _0x14e41b=(_0x5569ff=(_0x1bdd07=this['_univerInstanceService'][_0x55eece(0x349)](this[_0x55eece(0x47f)]))==null?void 0x0:_0x1bdd07[_0x55eece(0x4ff)](_0x16da96))==null?void 0x0:_0x5569ff[_0x55eece(0x29e)]();return(_0x14e41b==null?void 0x0:_0x14e41b[_0x55eece(0x2d4)](_0x153f1c=>a[_0x55eece(0x41e)]['contains'](_0x153f1c,_0x5d01dc)))||_0x5d01dc;}[_0x333065(0x368)](){const _0x34a2d1=_0x333065,_0x17b4c8=new a['DisposableCollection'](),_0x330106=ci(),_0x798969=()=>{const _0x411793=_0x2204;_0x17b4c8[_0x411793(0x487)]();const _0x47ae14=(_0x47db20,_0x3e08c0,_0x31cf75,_0x1ebbe9)=>{const _0x2083d8=_0x411793;let _0x2c90b0=[];switch(_0x47db20['id']){case C[_0x2083d8(0x321)][_0x2083d8(0x565)]:{_0x2c90b0=C[_0x2083d8(0x265)](_0x47db20,_0x1ebbe9);break;}case C[_0x2083d8(0x321)][_0x2083d8(0x3ed)]:{_0x2c90b0=C['handleDeleteRangeMoveUp'](_0x47db20,_0x1ebbe9);break;}case C['EffectRefRangId'][_0x2083d8(0x34d)]:{_0x2c90b0=C[_0x2083d8(0x1fd)](_0x47db20,_0x1ebbe9);break;}case C['EffectRefRangId'][_0x2083d8(0x459)]:{_0x2c90b0=C[_0x2083d8(0x58c)](_0x47db20,_0x1ebbe9);break;}case C[_0x2083d8(0x321)][_0x2083d8(0x3e4)]:{_0x2c90b0=C[_0x2083d8(0x42d)](_0x47db20,_0x1ebbe9);break;}case C['EffectRefRangId'][_0x2083d8(0x1c6)]:{_0x2c90b0=C[_0x2083d8(0x552)](_0x47db20,_0x1ebbe9);break;}case C[_0x2083d8(0x321)][_0x2083d8(0x4f1)]:{_0x2c90b0=C[_0x2083d8(0x323)](_0x47db20,_0x1ebbe9);break;}case C[_0x2083d8(0x321)][_0x2083d8(0x369)]:{_0x2c90b0=C[_0x2083d8(0x3b6)](_0x47db20,_0x1ebbe9);break;}case C[_0x2083d8(0x321)][_0x2083d8(0x3ef)]:{_0x2c90b0=C['handleIRemoveRow'](_0x47db20,_0x1ebbe9);break;}}const _0x131763=C[_0x2083d8(0x2b0)](_0x2c90b0,_0x1ebbe9),_0x3a914a=this[_0x2083d8(0x2bf)][_0x2083d8(0x3c0)](_0x3e08c0);if(_0x3a914a&&_0x131763){const _0x4716ab={..._0x3a914a,'range':_0x131763};this[_0x2083d8(0x2bf)][_0x2083d8(0x24c)](_0x3e08c0,_0x4716ab),_0x330106(()=>{const _0x4bf412=_0x2083d8,_0x5b0640=this['_refRangeService'][_0x4bf412(0x2ec)](_0x131763,_0x4f1ff1=>(_0x5b0640[_0x4bf412(0x487)](),_0x47ae14(_0x4f1ff1,_0x3e08c0,_0x31cf75,_0x131763)));_0x17b4c8[_0x4bf412(0x440)](_0x5b0640);});}return{'redos':[],'undos':[]};};this[_0x411793(0x2bf)][_0x411793(0x1f8)]((_0x4ea87f,_0x2beed3)=>{const _0xab2e2d=_0x411793,{range:_0x4daa07,sheetID:_0x6c2016}=_0x4ea87f,_0x1668ca=this['_refRangeService'][_0xab2e2d(0x2ec)](_0x4daa07,_0x1f3360=>(_0x1668ca[_0xab2e2d(0x487)](),_0x47ae14(_0x1f3360,_0x2beed3,_0x6c2016,_0x4daa07)));_0x17b4c8[_0xab2e2d(0x440)](_0x1668ca);});};this['disposeWithMe'](a[_0x34a2d1(0x227)](this[_0x34a2d1(0x198)][_0x34a2d1(0x242)](()=>{_0x798969();})));}[_0x333065(0x591)](){const _0x2dff72=_0x333065;var _0x2ca11e,_0x52f641;if(this['_online']=!0x0,((_0x2ca11e=this[_0x2dff72(0x295)][_0x2dff72(0x4fa)]())==null?void 0x0:_0x2ca11e[_0x2dff72(0x18e)]())!==this[_0x2dff72(0x47f)])return;const _0x2d6240=(_0x52f641=this[_0x2dff72(0x564)][_0x2dff72(0x3c0)](C['SheetsSelectionsService'])[_0x2dff72(0x17e)]())==null?void 0x0:_0x52f641[0x0],_0x1b95aa=this[_0x2dff72(0x295)][_0x2dff72(0x46c)](a[_0x2dff72(0x298)]['UNIVER_SHEET'])[_0x2dff72(0x175)]();_0x2d6240&&_0x1b95aa&&this['_updateLocalCursor'](_0x1b95aa['getSheetId'](),_0x2d6240);}[_0x333065(0x2ab)](){const _0x48caf6=_0x333065;this[_0x48caf6(0x26a)]=!0x1;}};Be=ri([Q(0x2,a['Inject'](a['Injector'])),Q(0x3,a['Inject'](Je)),Q(0x4,a[_0x333065(0x520)](q)),Q(0x5,a[_0x333065(0x3c1)]),Q(0x6,a[_0x333065(0x377)]),Q(0x7,a['Inject'](C[_0x333065(0x51c)]))],Be);var li=Object[_0x333065(0x2e3)],hi=Object[_0x333065(0x378)],_i=(_0x42de84,_0x3155cd,_0x4f1517,_0x579e9a)=>{for(var _0x4d621f=_0x579e9a>0x1?void 0x0:_0x579e9a?hi(_0x3155cd,_0x4f1517):_0x3155cd,_0x441b4c=_0x42de84['length']-0x1,_0x55d369;_0x441b4c>=0x0;_0x441b4c--)(_0x55d369=_0x42de84[_0x441b4c])&&(_0x4d621f=(_0x579e9a?_0x55d369(_0x3155cd,_0x4f1517,_0x4d621f):_0x55d369(_0x4d621f))||_0x4d621f);return _0x579e9a&&_0x4d621f&&li(_0x3155cd,_0x4f1517,_0x4d621f),_0x4d621f;},Me=(_0x32cdee,_0x522cb0)=>(_0x4be23c,_0x232d1e)=>_0x522cb0(_0x4be23c,_0x232d1e,_0x32cdee);let ne=class extends a[_0x333065(0x475)]{constructor(_0x12985f,_0x28c031,_0x3fc041){const _0x102289=_0x333065;super(),u(this,_0x102289(0x3aa),new Map()),u(this,_0x102289(0x237),new v[(_0x102289(0x1df))]()),(this[_0x102289(0x295)]=_0x12985f,this[_0x102289(0x564)]=_0x28c031,this[_0x102289(0x4e0)]=_0x3fc041,this[_0x102289(0x52a)]());}['dispose'](){const _0x350320=_0x333065;super[_0x350320(0x487)](),this[_0x350320(0x237)]['complete'](),this[_0x350320(0x3aa)][_0x350320(0x1f8)](_0x29c61a=>_0x29c61a[_0x350320(0x487)]());}[_0x333065(0x4e8)](_0x319867){const _0x2adfb1=_0x333065;return this[_0x2adfb1(0x3aa)][_0x2adfb1(0x438)](_0x319867)?this[_0x2adfb1(0x3aa)][_0x2adfb1(0x3c0)](_0x319867)[_0x2adfb1(0x1ad)]:this['_entityInit$']['pipe'](v[_0x2adfb1(0x2ce)](_0x40ba46=>_0x40ba46[_0x2adfb1(0x47f)]===_0x319867),v['switchMap'](_0x43f2e9=>_0x43f2e9[_0x2adfb1(0x1ad)]));}[_0x333065(0x52a)](){const _0x4fcb60=_0x333065;this[_0x4fcb60(0x295)][_0x4fcb60(0x38d)](a[_0x4fcb60(0x298)][_0x4fcb60(0x42f)])[_0x4fcb60(0x32e)](v[_0x4fcb60(0x500)](this[_0x4fcb60(0x3ec)]))[_0x4fcb60(0x242)](async _0x25fb70=>{const _0x277582=_0x4fcb60,_0x4d1f77=_0x25fb70[_0x277582(0x18e)](),_0x3e64e9=await this[_0x277582(0x57f)](_0x4d1f77);this['_entityInit$'][_0x277582(0x580)](_0x3e64e9),this[_0x277582(0x3aa)][_0x277582(0x24c)](_0x4d1f77,_0x3e64e9);}),this[_0x4fcb60(0x295)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x4fcb60(0x56f)])[_0x4fcb60(0x32e)](v[_0x4fcb60(0x500)](this[_0x4fcb60(0x3ec)]))[_0x4fcb60(0x32e)](v[_0x4fcb60(0x2ce)](_0x3eb291=>!_0x3eb291[_0x4fcb60(0x18e)]()[_0x4fcb60(0x3d8)]('__')))[_0x4fcb60(0x242)](async _0x1f605c=>{const _0x5b1302=_0x4fcb60,_0x887651=_0x1f605c['getUnitId'](),_0x5c1267=await this[_0x5b1302(0x4b0)](_0x887651);this[_0x5b1302(0x237)][_0x5b1302(0x580)](_0x5c1267),this[_0x5b1302(0x3aa)][_0x5b1302(0x24c)](_0x887651,_0x5c1267);}),v[_0x4fcb60(0x4f3)](this[_0x4fcb60(0x295)][_0x4fcb60(0x34a)](a[_0x4fcb60(0x298)][_0x4fcb60(0x56f)]),this[_0x4fcb60(0x295)]['getTypeOfUnitDisposed$'](a[_0x4fcb60(0x298)][_0x4fcb60(0x42f)]))[_0x4fcb60(0x32e)](v['takeUntil'](this[_0x4fcb60(0x3ec)]))[_0x4fcb60(0x242)](_0x92f023=>{const _0x2d2f15=_0x4fcb60,_0xe359fc=_0x92f023[_0x2d2f15(0x18e)](),_0x286022=this[_0x2d2f15(0x3aa)][_0x2d2f15(0x3c0)](_0xe359fc);_0x286022&&(_0x286022[_0x2d2f15(0x487)](),this['_entities'][_0x2d2f15(0x3cb)](_0xe359fc));});}async['_startSheetCollabCursor'](_0x5f2d77){const _0x2416af=_0x333065,_0x202d38=await this[_0x2416af(0x4e0)][_0x2416af(0x425)](_0x5f2d77),_0x4ef4ef=this[_0x2416af(0x564)]['createInstance'](Be,_0x5f2d77,_0x202d38);return _0x4ef4ef[_0x2416af(0x22f)](),_0x4ef4ef;}async['_startDocCollabCursor'](_0x2acd3f){const _0x205abf=_0x333065,_0x4f76ae=await this[_0x205abf(0x4e0)][_0x205abf(0x425)](_0x2acd3f),_0x3b833d=this[_0x205abf(0x564)][_0x205abf(0x2ca)](ke,_0x2acd3f,_0x4f76ae);return _0x3b833d[_0x205abf(0x22f)](),_0x3b833d;}};ne=_i([Me(0x0,a[_0x333065(0x3c1)]),Me(0x1,a[_0x333065(0x520)](a['Injector'])),Me(0x2,a['Inject'](exports[_0x333065(0x418)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x273f69,_0x4ca4a8){const _0x4f490c=_0x333065;let {radius:_0x81ea80,width:_0x566ce4,height:_0x713263}=_0x4ca4a8;_0x81ea80=_0x81ea80!=null?_0x81ea80:0x0,_0x566ce4=_0x566ce4!=null?_0x566ce4:0x1e,_0x713263=_0x713263!=null?_0x713263:0x1e;let _0x2e1181=0x0,_0x3e998c=0x0,_0x3e6650=0x0;_0x2e1181=_0x3e998c=_0x3e6650=Math[_0x4f490c(0x35b)](_0x81ea80,_0x566ce4/0x2,_0x713263/0x2),_0x273f69[_0x4f490c(0x241)](),_0x273f69[_0x4f490c(0x568)](_0x2e1181,0x0),_0x273f69[_0x4f490c(0x1eb)](_0x566ce4-_0x3e998c,0x0),_0x273f69[_0x4f490c(0x2b1)](_0x566ce4-_0x3e998c,_0x3e998c,_0x3e998c,Math['PI']*0x3/0x2,0x0,!0x1),_0x273f69[_0x4f490c(0x1eb)](_0x566ce4,_0x713263-_0x3e6650),_0x273f69['arc'](_0x566ce4-_0x3e6650,_0x713263-_0x3e6650,_0x3e6650,0x0,Math['PI']/0x2,!0x1),_0x273f69[_0x4f490c(0x1eb)](0x0,_0x713263),_0x273f69[_0x4f490c(0x1eb)](0x0,_0x2e1181),_0x273f69[_0x4f490c(0x2b1)](_0x2e1181,_0x2e1181,_0x2e1181,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x273f69['closePath'](),_0x4ca4a8[_0x4f490c(0x40a)]&&(_0x273f69['save'](),_0x273f69[_0x4f490c(0x48e)]=_0x4ca4a8[_0x4f490c(0x40a)],_0x4ca4a8[_0x4f490c(0x441)]==='evenodd'?_0x273f69[_0x4f490c(0x40a)](_0x4f490c(0x1ce)):_0x273f69['fill'](),_0x273f69['restore']());}class Oe extends D[_0x333065(0x3ae)]{constructor(_0x300c6a,_0x573fc3){const _0x191424=_0x333065;super(_0x300c6a,_0x573fc3),u(this,_0x191424(0x527)),u(this,'text'),(this[_0x191424(0x527)]=_0x573fc3==null?void 0x0:_0x573fc3[_0x191424(0x527)],this[_0x191424(0x289)]=_0x573fc3==null?void 0x0:_0x573fc3['text']);}static[_0x333065(0x35a)](_0x3891d2,_0x45d170){const _0x22200f=_0x333065,{text:_0x52229d,color:_0x15e000}=_0x45d170;_0x3891d2[_0x22200f(0x320)](),_0x3891d2['font']=_0x22200f(0x2e0);const _0xfc7822=_0x3891d2['measureText'](_0x52229d)['width'],_0x55c48f=Math[_0x22200f(0x35b)](_0xfc7822+0x2*Ae,lt);di(_0x3891d2,{'height':de,'radius':0x4,'width':_0x55c48f,'fill':_0x15e000,'evented':!0x1}),_0x3891d2['fillStyle']=_0x22200f(0x1da);const _0x3508c8=Ae,_0x3d367f=de-ui,_0x485c5c=lt-0x2*Ae;if(_0xfc7822>_0x485c5c){let _0x51abc8='',_0x24bf66=0x0;for(const _0x35bb13 of _0x52229d){const _0x2a8150=_0x3891d2[_0x22200f(0x279)](_0x35bb13)['width'];if(_0x24bf66+_0x2a8150<=_0x485c5c-_0x3891d2[_0x22200f(0x279)](_0x22200f(0x563))[_0x22200f(0x448)])_0x51abc8+=_0x35bb13,_0x24bf66+=_0x2a8150;else{_0x51abc8+=_0x22200f(0x563);break;}}_0x3891d2[_0x22200f(0x3b3)](_0x51abc8,_0x3508c8,_0x3d367f);}else _0x3891d2[_0x22200f(0x3b3)](_0x52229d,_0x3508c8,_0x3d367f);_0x3891d2[_0x22200f(0x354)]();}[_0x333065(0x318)](_0x4b5e92){const _0x2d5469=_0x333065;Oe[_0x2d5469(0x35a)](_0x4b5e92,this);}}const Le=_0x333065(0x1dd),Si='collab-text-range-',vi=_0x333065(0x3a4),le=0x6,gi=1.5,je=0x4,mi=1.5,fi=_0x333065(0x554);class ht{constructor(_0xed2e8a,_0x118ef6,_0x15adcd,_0x3ebd99){const _0x1bc0e1=_0x333065;u(this,_0x1bc0e1(0x327),[]),u(this,_0x1bc0e1(0x187),null),u(this,_0x1bc0e1(0x22b),null),u(this,'_anchorDot',null),u(this,_0x1bc0e1(0x186),null),u(this,'_eventUnsubscribe',null),(this[_0x1bc0e1(0x490)]=_0xed2e8a,this[_0x1bc0e1(0x43c)]=_0x118ef6,this[_0x1bc0e1(0x2e7)]=_0x15adcd,this[_0x1bc0e1(0x1a6)]=_0x3ebd99,this[_0x1bc0e1(0x379)]());}set[_0x333065(0x37f)](_0x522904){const _0x342680=_0x333065;_0x522904?(this['_anchorDot']&&this['_anchorDot'][_0x342680(0x52c)](),this[_0x342680(0x22b)]&&this[_0x342680(0x22b)][_0x342680(0x38e)]()):(this[_0x342680(0x4e9)]&&this[_0x342680(0x4e9)]['show'](),this[_0x342680(0x22b)]&&this[_0x342680(0x22b)]['hide']());}[_0x333065(0x487)](){const _0x41e181=_0x333065;for(const _0x439ce4 of this[_0x41e181(0x327)])_0x439ce4['dispose']();this['_textBubble']&&this[_0x41e181(0x22b)]['dispose'](),this[_0x41e181(0x4e9)]&&this[_0x41e181(0x4e9)][_0x41e181(0x487)](),this[_0x41e181(0x187)]&&this[_0x41e181(0x187)][_0x41e181(0x487)](),this[_0x41e181(0x543)]&&this[_0x41e181(0x543)]();}['_render'](){const _0x245a62=_0x333065;var _0x51f6cb;const {_docSkeleton:_0x10c41a,_document:_0x351c2a}=this,{color:_0x1e3705,name:_0x5381f4,ranges:_0x424692}=this[_0x245a62(0x490)],_0x4d1c7b=_0x351c2a[_0x245a62(0x1d3)](),{docsLeft:_0xa2f2ca,docsTop:_0x3b4d50}=_0x4d1c7b,_0x3d102c=new N[(_0x245a62(0x245))](_0x4d1c7b,_0x10c41a);for(const {startOffset:_0x6b6be1,endOffset:_0x4dd5dc,collapsed:_0x1e7298,isActive:_0x49f654}of _0x424692){const _0xd1dbd8=_0x10c41a[_0x245a62(0x276)](_0x6b6be1),_0x24939c=_0x10c41a['findNodePositionByCharIndex'](_0x4dd5dc);if(_0x49f654){const {contentBoxPointGroup:_0x4e0b95}=_0x3d102c[_0x245a62(0x183)](_0x24939c,_0x24939c);if(_0x4e0b95[_0x245a62(0x255)]===0x0)continue;this['_drawAnchor'](_0x1e3705,_0x4e0b95,_0xa2f2ca,_0x3b4d50,_0x5381f4),this[_0x245a62(0x543)]=this[_0x245a62(0x222)]();}if(!_0x1e7298&&_0xd1dbd8&&_0x24939c){if(N['isValidRectRange'](_0xd1dbd8,_0x24939c)){const _0x2cd607=new N[(_0x245a62(0x2b3))](_0x4d1c7b,_0x10c41a),{pointGroup:_0x7877e1}=(_0x51f6cb=_0x2cd607['getRangePointData'](_0xd1dbd8,_0x24939c))!=null?_0x51f6cb:{};if(_0x7877e1==null||_0x7877e1[_0x245a62(0x255)]===0x0)continue;this[_0x245a62(0x56c)](_0x1e3705,_0x7877e1,_0xa2f2ca,_0x3b4d50);}else{const {contentBoxPointGroup:_0xbbdb7e}=_0x3d102c['getRangePointData'](_0xd1dbd8,_0x24939c);if(_0xbbdb7e[_0x245a62(0x255)]===0x0)continue;this[_0x245a62(0x3be)](_0x1e3705,_0xbbdb7e,_0xa2f2ca,_0x3b4d50);}}}}[_0x333065(0x3ca)](_0xf30d78,_0x1a8346,_0x3d4323,_0x219255,_0x580f46){const _0xe1485f=_0x333065,_0x44d436=this[_0xe1485f(0x55e)](_0x1a8346),{left:_0x478d6b,top:_0x223871,height:_0x3ede07}=_0x44d436,_0x1e4225=this[_0xe1485f(0x330)](),_0x3af3ac=mi/_0x1e4225,_0x4cc295=new D[(_0xe1485f(0x454))](Le+a[_0xe1485f(0x36b)][_0xe1485f(0x24f)](le),{'left':_0x478d6b+_0x3d4323-_0x3af3ac,'top':_0x223871+_0x219255,'height':_0x3ede07,'width':gi,'fill':_0xf30d78||D[_0xe1485f(0x2a8)](a['COLORS'][_0xe1485f(0x47c)],0x0),'strokeWidth':_0x3af3ac,'stroke':fi,'evented':!0x0});this[_0xe1485f(0x187)]=_0x4cc295,this[_0xe1485f(0x43c)]['addObject'](_0x4cc295,N[_0xe1485f(0x4b4)]);const _0x2d8426=new D[(_0xe1485f(0x454))](Le+a[_0xe1485f(0x36b)][_0xe1485f(0x24f)](le),{'left':_0x478d6b+_0x3d4323-_0x3af3ac,'top':_0x223871+_0x219255-je/0x2,'height':je,'width':je,'fill':_0xf30d78||D[_0xe1485f(0x2a8)](a[_0xe1485f(0x539)][_0xe1485f(0x47c)],0x0),'strokeWidth':0x0,'stroke':_0xf30d78||D['getColor'](a[_0xe1485f(0x539)][_0xe1485f(0x47c)],0x0),'evented':!0x1});this[_0xe1485f(0x4e9)]=_0x2d8426,this['_scene'][_0xe1485f(0x1a3)](_0x2d8426,N[_0xe1485f(0x4b4)]);const _0x1a1ed5=new Oe(Le+a[_0xe1485f(0x36b)]['generateRandomId'](le),{'left':_0x478d6b+_0x3d4323-_0x3af3ac,'top':_0x223871+_0x219255-de,'text':_0x580f46,'color':_0xf30d78});this[_0xe1485f(0x22b)]=_0x1a1ed5,this[_0xe1485f(0x43c)]['addObject'](_0x1a1ed5,N[_0xe1485f(0x4b4)]),this[_0xe1485f(0x37f)]=!0x1;}[_0x333065(0x222)](){const _0x5b9f13=_0x333065,_0x4724aa=this[_0x5b9f13(0x187)]['onPointerEnter$'][_0x5b9f13(0x1cf)](()=>{this['_hover']=!0x0;}),_0x1f9d35=this[_0x5b9f13(0x187)][_0x5b9f13(0x4a8)][_0x5b9f13(0x1cf)](()=>{const _0x2c1b03=_0x5b9f13;this[_0x2c1b03(0x186)]&&clearTimeout(this[_0x2c1b03(0x186)]),this[_0x2c1b03(0x186)]=setTimeout(()=>{const _0x53ea62=_0x2c1b03;this[_0x53ea62(0x37f)]=!0x1;},0x7d0);});return()=>{const _0x370f2b=_0x5b9f13;_0x4724aa['unsubscribe'](),_0x1f9d35[_0x370f2b(0x353)]();};}[_0x333065(0x3be)](_0x170237,_0x2cb8f2,_0x443c8a,_0x198d57){const _0x166b0e=_0x333065,_0x254a97=new a[(_0x166b0e(0x463))](_0x170237)[_0x166b0e(0x32b)](0.2)['toRgbString'](),_0x493dae=new D[(_0x166b0e(0x3e3))](Si+a[_0x166b0e(0x36b)]['generateRandomId'](le),{'pointsGroup':_0x2cb8f2,'fill':_0x254a97||D['getColor'](a[_0x166b0e(0x539)][_0x166b0e(0x47c)],0.2),'left':_0x443c8a,'top':_0x198d57,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x166b0e(0x327)]['push'](_0x493dae),this[_0x166b0e(0x43c)]['addObject'](_0x493dae,N[_0x166b0e(0x4b4)]);}[_0x333065(0x56c)](_0x190dd5,_0x1cc14a,_0x555ded,_0x2d1e59){const _0x12dfd5=_0x333065,_0x411ad8=new a[(_0x12dfd5(0x463))](_0x190dd5)['setAlpha'](0.2)[_0x12dfd5(0x28a)](),_0x282f4b=new D[(_0x12dfd5(0x3e3))](vi+a[_0x12dfd5(0x36b)][_0x12dfd5(0x24f)](le),{'pointsGroup':_0x1cc14a,'fill':_0x411ad8||D[_0x12dfd5(0x2a8)](a[_0x12dfd5(0x539)][_0x12dfd5(0x47c)],0.2),'left':_0x555ded,'top':_0x2d1e59,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x12dfd5(0x2b7)](_0x282f4b),this[_0x12dfd5(0x43c)]['addObject'](_0x282f4b,N[_0x12dfd5(0x4b4)]);}[_0x333065(0x55e)](_0x1fe4b0){const _0x5676ac=_0x1fe4b0[0x0],_0x11fdfe=_0x5676ac[0x0],_0x26e90f=_0x5676ac[0x2],{x:_0x283d13,y:_0x31ea3d}=_0x11fdfe,{x:_0x1cdcb1,y:_0x37338a}=_0x26e90f;return{'left':_0x283d13,'top':_0x31ea3d,'width':_0x1cdcb1-_0x283d13,'height':_0x37338a-_0x31ea3d};}[_0x333065(0x330)](){const _0xb33a9c=_0x333065,{scaleX:_0x386ddf,scaleY:_0x4b1168}=this['_scene'][_0xb33a9c(0x340)]();return Math['max'](_0x386ddf,_0x4b1168);}}var Ii=Object[_0x333065(0x2e3)],pi=Object[_0x333065(0x378)],Ci=(_0x48c64f,_0x2a7c71,_0x4fb042,_0x52d81f)=>{for(var _0x319402=_0x52d81f>0x1?void 0x0:_0x52d81f?pi(_0x2a7c71,_0x4fb042):_0x2a7c71,_0x5e91bb=_0x48c64f['length']-0x1,_0x4d6c7a;_0x5e91bb>=0x0;_0x5e91bb--)(_0x4d6c7a=_0x48c64f[_0x5e91bb])&&(_0x319402=(_0x52d81f?_0x4d6c7a(_0x2a7c71,_0x4fb042,_0x319402):_0x4d6c7a(_0x319402))||_0x319402);return _0x52d81f&&_0x319402&&Ii(_0x2a7c71,_0x4fb042,_0x319402),_0x319402;},ve=(_0x3ffd4c,_0x2af47a)=>(_0x1e8637,_0x53762c)=>_0x2af47a(_0x1e8637,_0x53762c,_0x3ffd4c);function _0x2204(_0x27f120,_0x5abd3a){const _0x577b17=_0x577b();return _0x2204=function(_0x2204ae,_0x5defe8){_0x2204ae=_0x2204ae-0x174;let _0x1e807e=_0x577b17[_0x2204ae];return _0x1e807e;},_0x2204(_0x27f120,_0x5abd3a);}let Ve=class extends a[_0x333065(0x475)]{constructor(_0x256362,_0x1a41a7,_0x372ace,_0x2ee585,_0x53a87f){const _0x235a64=_0x333065;super(),u(this,_0x235a64(0x46a),[]),u(this,_0x235a64(0x445),[]),(this[_0x235a64(0x1a1)]=_0x256362,this[_0x235a64(0x41c)]=_0x1a41a7,this[_0x235a64(0x2b2)]=_0x372ace,this[_0x235a64(0x243)]=_0x2ee585,this[_0x235a64(0x37a)]=_0x53a87f,this[_0x235a64(0x52a)]());}[_0x333065(0x52a)](){const _0x202c97=_0x333065,_0x27717d=this[_0x202c97(0x1a1)]['unitId'],_0x19140c=this[_0x202c97(0x41c)];this[_0x202c97(0x1c8)](v[_0x202c97(0x4f7)]([this['_collabCursorController'][_0x202c97(0x4e8)](_0x27717d),this[_0x202c97(0x37a)]['currentTheme$']])[_0x202c97(0x32e)](E[_0x202c97(0x501)](([_0x247e67,_0x2442ae])=>({'skeleton':_0x19140c[_0x202c97(0x3b2)](),'cursors':[..._0x247e67['values']()]['flatMap'](_0x453534=>({..._0x453534,'color':_0x2442ae[_0x453534['color']]}))})))[_0x202c97(0x242)](_0x32fb17=>{const _0x5b6e8f=_0x202c97;if(this[_0x5b6e8f(0x59a)](),_0x32fb17){const {skeleton:_0x255c38,cursors:_0x938b08}=_0x32fb17;this[_0x5b6e8f(0x28e)](_0x255c38,_0x938b08);}})),this[_0x202c97(0x57d)](),this[_0x202c97(0x3bd)]();}[_0x333065(0x28e)](_0x6f6b0,_0x5d4915){const _0x348e87=_0x333065,{scene:_0x264ad6,mainComponent:_0xcccbb8}=this[_0x348e87(0x1a1)],_0xdf391e=_0x5d4915[_0x348e87(0x501)](_0x3f150c=>new ht(_0x3f150c,_0x264ad6,_0x6f6b0,_0xcccbb8));this[_0x348e87(0x46a)]=_0xdf391e,this[_0x348e87(0x445)]=_0x5d4915;}[_0x333065(0x2ae)](){const _0x4d9502=_0x333065;this['_removeCollabCursors']();const {scene:_0x27b400,mainComponent:_0x4c8fb6}=this['_context'],_0x35c4fa=this[_0x4d9502(0x41c)][_0x4d9502(0x3b2)](),_0x2b3b15=this[_0x4d9502(0x445)]['map'](_0x4d2d70=>new ht(_0x4d2d70,_0x27b400,_0x35c4fa,_0x4c8fb6));this[_0x4d9502(0x46a)]=_0x2b3b15;}['_removeCollabCursors'](){const _0x2d9889=_0x333065;this[_0x2d9889(0x46a)][_0x2d9889(0x1f8)](_0x84559b=>_0x84559b[_0x2d9889(0x487)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1dbd86=_0x333065,_0x1041c3=[N[_0x1dbd86(0x402)]['id']];this[_0x1dbd86(0x1c8)](this[_0x1dbd86(0x243)][_0x1dbd86(0x41f)](_0x2fc0bd=>{const _0x126763=_0x1dbd86;_0x1041c3[_0x126763(0x4f0)](_0x2fc0bd['id'])&&_0x2fc0bd['params']['unitId']===this[_0x126763(0x1a1)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x333065(0x57d)](){const _0x1855c8=_0x333065;this[_0x1855c8(0x1c8)](a['fromEventSubject'](this[_0x1855c8(0x1a1)]['engine'][_0x1855c8(0x4a2)])['pipe'](E['filter'](_0xbc4bab=>_0xbc4bab[_0x1855c8(0x3c3)]===D[_0x1855c8(0x1d2)][_0x1855c8(0x3b1)]),E[_0x1855c8(0x3a7)](0x10))[_0x1855c8(0x242)](()=>{const _0x1f2fc0=_0x1855c8;this[_0x1f2fc0(0x2ae)]();}));}};Ve=Ci([ve(0x1,a[_0x333065(0x520)](se[_0x333065(0x575)])),ve(0x2,a['Inject'](ne)),ve(0x3,a[_0x333065(0x377)]),ve(0x4,a[_0x333065(0x520)](a['ThemeService']))],Ve);const Ei=0x1,bi=1.5;class Pt extends D[_0x333065(0x3ae)]{constructor(_0x1635f,_0x40acd5){const _0x504900=_0x333065;super(_0x1635f,_0x40acd5),u(this,_0x504900(0x59f)),u(this,_0x504900(0x1a8),!0x1),u(this,_0x504900(0x513)),u(this,_0x504900(0x491),''),u(this,_0x504900(0x1c5),_0x504900(0x3f5)),u(this,'_backgroundColor'),(_0x40acd5&&this[_0x504900(0x232)](_0x40acd5),this[_0x504900(0x2d3)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x504900(0x4a8)]['subscribeEvent'](()=>this[_0x504900(0x232)]({'hovered':!0x1})));}[_0x333065(0x232)](_0x1e23cc){const _0x2e9805=_0x333065;var _0x5da52d,_0x338863,_0x48204b,_0x2c6620,_0x50573d,_0x1b6f40;this[_0x2e9805(0x59f)]=(_0x5da52d=_0x1e23cc[_0x2e9805(0x527)])!=null?_0x5da52d:this[_0x2e9805(0x59f)],this[_0x2e9805(0x1a8)]=(_0x338863=_0x1e23cc[_0x2e9805(0x306)])!=null?_0x338863:this[_0x2e9805(0x1a8)],this['_range']=(_0x48204b=_0x1e23cc['range'])!=null?_0x48204b:this[_0x2e9805(0x513)],this[_0x2e9805(0x491)]=(_0x2c6620=_0x1e23cc[_0x2e9805(0x3f1)])!=null?_0x2c6620:this[_0x2e9805(0x491)],this['_labelPosition']=(_0x50573d=_0x1e23cc[_0x2e9805(0x508)])!=null?_0x50573d:this['_labelPosition'],this[_0x2e9805(0x1af)]=(_0x1b6f40=_0x1e23cc['backgroundColor'])!=null?_0x1b6f40:this[_0x2e9805(0x1af)],this['transformByState']({'width':_0x1e23cc[_0x2e9805(0x448)],'height':_0x1e23cc[_0x2e9805(0x3a8)]});}['onMouseMove'](_0x40dfac){const _0x457513=_0x333065,{row:_0xe71c95,column:_0x594986}=_0x40dfac;if(_0xe71c95>=this['_range']['startRow']&&_0xe71c95<=this[_0x457513(0x513)][_0x457513(0x2e9)]&&_0x594986>=this[_0x457513(0x513)][_0x457513(0x21d)]&&_0x594986<=this[_0x457513(0x513)][_0x457513(0x229)]){this[_0x457513(0x232)]({'hovered':!0x0});return;}this[_0x457513(0x232)]({'hovered':!0x1});}[_0x333065(0x436)](_0x7122f6){return!0x1;}[_0x333065(0x318)](_0x1ee268){const _0x512820=_0x333065;D['Rect'][_0x512820(0x35a)](_0x1ee268,{'width':this[_0x512820(0x448)],'height':this['height'],'strokeWidth':bi,'stroke':this[_0x512820(0x59f)],'evented':!0x1,'fill':this[_0x512820(0x1af)]}),this[_0x512820(0x1a8)]&&(_0x1ee268[_0x512820(0x320)](),_0x1ee268['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x512820(0x37c)?0x0:-de),Oe[_0x512820(0x35a)](_0x1ee268,{'text':this[_0x512820(0x491)],'color':this[_0x512820(0x59f)]}),_0x1ee268[_0x512820(0x354)]());}}var Ti=Object[_0x333065(0x2e3)],Ri=Object['getOwnPropertyDescriptor'],Oi=(_0x4fa362,_0x3c97af,_0x3dadb6,_0x576d6e)=>{for(var _0x1ab24f=_0x576d6e>0x1?void 0x0:_0x576d6e?Ri(_0x3c97af,_0x3dadb6):_0x3c97af,_0x3f90be=_0x4fa362['length']-0x1,_0x22a7b9;_0x3f90be>=0x0;_0x3f90be--)(_0x22a7b9=_0x4fa362[_0x3f90be])&&(_0x1ab24f=(_0x576d6e?_0x22a7b9(_0x3c97af,_0x3dadb6,_0x1ab24f):_0x22a7b9(_0x1ab24f))||_0x1ab24f);return _0x576d6e&&_0x1ab24f&&Ti(_0x3c97af,_0x3dadb6,_0x1ab24f),_0x1ab24f;},$e=(_0x148dd0,_0x28b293)=>(_0x185ea0,_0x3b3110)=>_0x28b293(_0x185ea0,_0x3b3110,_0x148dd0);const Di=0x1389;let We=class extends a['RxDisposable']{constructor(_0x53ce5e,_0x57c827,_0x5d7520,_0x3ba5cf){const _0x422dfc=_0x333065;super(),u(this,_0x422dfc(0x445),new Set()),u(this,_0x422dfc(0x39b),null),(this[_0x422dfc(0x1a1)]=_0x53ce5e,this['_sheetSkeletonManagerService']=_0x57c827,this[_0x422dfc(0x2b2)]=_0x5d7520,this['_themeService']=_0x3ba5cf,this[_0x422dfc(0x52a)]());}[_0x333065(0x52a)](){const _0x3dcd6f=_0x333065;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3dcd6f(0x32e)](E[_0x3dcd6f(0x500)](this[_0x3dcd6f(0x3ec)]),E[_0x3dcd6f(0x310)](_0xf1dd4a=>{const _0x1cf6f2=_0x3dcd6f;if(_0xf1dd4a){const _0x266e49=_0xf1dd4a[_0x1cf6f2(0x182)];return v[_0x1cf6f2(0x4f7)](this[_0x1cf6f2(0x2b2)]['getCollabCursors$'](this[_0x1cf6f2(0x1a1)][_0x1cf6f2(0x346)]),this['_themeService'][_0x1cf6f2(0x576)])[_0x1cf6f2(0x32e)](E['map'](([_0x270465,_0x2988f5])=>{const _0x411617=_0x1cf6f2,_0x5170a1=new Map();return _0x270465[_0x411617(0x1f8)]((_0x2bd725,_0x3a33ec)=>{const _0x527fb9=_0x411617;if(_0x2bd725[_0x527fb9(0x59e)]===_0x266e49){const _0x44fce0={..._0x2bd725};_0x44fce0[_0x527fb9(0x527)]=_0x2988f5[_0x2bd725['color']],_0x5170a1['set'](_0x3a33ec,_0x44fce0);}}),{'skeleton':_0xf1dd4a,'cursors':_0x5170a1};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x3dcd6f(0x242)](({skeleton:_0x41f351,cursors:_0x4ac103})=>{this['_removeCollabCursors'](),_0x41f351&&this['_updateCollabCursors'](_0x41f351,_0x4ac103);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x1d79d2=>{const _0x1f784e=_0x3dcd6f;if(_0x1d79d2==null)return;const {skeleton:_0x118072}=_0x1d79d2,{scene:_0x2b1766}=this[_0x1f784e(0x1a1)];_0x2b1766[_0x1f784e(0x590)][_0x1f784e(0x1cf)](a[_0x1f784e(0x514)](_0x4b03c7=>{const _0x49e157=_0x1f784e;var _0xaece7a,_0x1fde6e;const {offsetX:_0xa3941,offsetY:_0x1a1e59}=_0x4b03c7,{x:_0x4f6f81,y:_0x9794a4}=_0x2b1766[_0x49e157(0x595)](D[_0x49e157(0x389)][_0x49e157(0x3df)]([_0xa3941,_0x1a1e59])),{scaleX:_0xc5d32,scaleY:_0x21f80c}=_0x2b1766[_0x49e157(0x340)](),_0x4dd458=_0x2b1766[_0x49e157(0x3e8)](te[_0x49e157(0x1ea)]['VIEW_MAIN']),_0x1467f3=_0x2b1766[_0x49e157(0x55b)](D[_0x49e157(0x389)]['FromArray']([_0x4f6f81,_0x9794a4]),_0x4dd458),_0x34e580=_0x118072['getCellPositionByOffset'](_0xa3941,_0x1a1e59,_0xc5d32,_0x21f80c,_0x1467f3);((_0xaece7a=this[_0x49e157(0x39b)])==null?void 0x0:_0xaece7a[_0x49e157(0x2dd)])===_0x34e580[_0x49e157(0x2dd)]&&((_0x1fde6e=this['_lastPointer'])==null?void 0x0:_0x1fde6e['row'])===_0x34e580[_0x49e157(0x1fb)]||this[_0x49e157(0x445)]['forEach'](_0x534c25=>{const _0x8cf1d7=_0x49e157;_0x534c25[_0x8cf1d7(0x3cf)](_0x34e580);});},0x64));});}['_updateCollabCursors'](_0x47f056,_0x50cf20){const _0x19b51f=_0x333065;var _0x26a30c;const _0x279ec8=(_0x26a30c=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x26a30c[_0x19b51f(0x431)];if(!_0x279ec8)return;const _0x106b62=this[_0x19b51f(0x29a)]();if(!_0x106b62)return;this[_0x19b51f(0x445)][_0x19b51f(0x1f8)](_0x5c3fc6=>{const _0x39f0e4=_0x19b51f;_0x5c3fc6[_0x39f0e4(0x4dd)]();});const {scene:_0x95e120}=_0x106b62,_0x1d00ab=yi(Array[_0x19b51f(0x387)](_0x50cf20[_0x19b51f(0x266)]()))[_0x19b51f(0x501)](_0x160878=>{const _0x46f511=_0x19b51f,{color:_0x459b7a,range:_0x53e9a9,name:_0xb54c1,selection:_0x33ee29,sheetID:_0x38f76e}=_0x160878,{startColumn:_0x40946f,startRow:_0x5924be,endColumn:_0x539727,endRow:_0x3c88a6}=_0x53e9a9,_0xaafb28=te['getCoordByCell'](_0x5924be,_0x40946f,_0x95e120,_0x279ec8),_0x52660c=te['getCoordByCell'](_0x3c88a6,_0x539727,_0x95e120,_0x279ec8),{columnHeaderHeightAndMarginTop:_0x343dee}=_0x279ec8,{startX:_0x5c7ecc,startY:_0x517fb0}=_0xaafb28,{endX:_0x178daf,endY:_0x2b3e5a}=_0x52660c,_0x47e91e=_0x178daf-_0x5c7ecc,_0x3db527=_0x2b3e5a-_0x517fb0,_0x124aea={'labelPosition':_0x517fb0-_0x343dee>=de?_0x46f511(0x3f5):'bottom','sheetID':_0x38f76e,'range':_0x53e9a9,'color':_0x459b7a,'name':_0xb54c1,'selection':_0x33ee29,'left':_0x5c7ecc,'top':_0x517fb0,'width':_0x47e91e,'height':_0x3db527,'evented':!0x1,'zIndex':Di};return new Pt(_0xb54c1,_0x124aea);});_0x95e120[_0x19b51f(0x411)](_0x1d00ab,Ei),this[_0x19b51f(0x445)]=new Set(_0x1d00ab);}[_0x333065(0x59a)](){const _0x389c2e=_0x333065;var _0x41fdaa;(_0x41fdaa=this[_0x389c2e(0x445)])==null||_0x41fdaa[_0x389c2e(0x1f8)](_0x3fe40a=>_0x3fe40a[_0x389c2e(0x487)]());}[_0x333065(0x29a)](){const _0x129d74=_0x333065;return te[_0x129d74(0x437)](this[_0x129d74(0x1a1)][_0x129d74(0x1c2)],this[_0x129d74(0x1a1)]);}};We=Oi([$e(0x1,a[_0x333065(0x520)](te[_0x333065(0x249)])),$e(0x2,a[_0x333065(0x520)](ne)),$e(0x3,a[_0x333065(0x520)](a[_0x333065(0x42c)]))],We);function yi(_0x209afe){const _0x854470=_0x333065,_0x204c0a=new Map();return _0x209afe[_0x854470(0x1f8)](_0x1a62b8=>{const _0x305c69=_0x854470;if(_0x204c0a[_0x305c69(0x438)](_0x1a62b8[_0x305c69(0x2af)])){const _0x134106=_0x204c0a['get'](_0x1a62b8[_0x305c69(0x2af)]);_0x134106[_0x305c69(0x3f1)]+=',\x20'+_0x1a62b8[_0x305c69(0x3f1)];}else _0x204c0a[_0x305c69(0x24c)](_0x1a62b8['selection'],_0x1a62b8);}),Array[_0x854470(0x387)](_0x204c0a[_0x854470(0x266)]());}var M=function(){const _0x363922=_0x333065;return M=Object[_0x363922(0x489)]||function(_0x227bfe){const _0x473192=_0x363922;for(var _0x1c3fb0,_0x5e6c51=0x1,_0x3fbf69=arguments['length'];_0x5e6c51<_0x3fbf69;_0x5e6c51++){_0x1c3fb0=arguments[_0x5e6c51];for(var _0x5358f9 in _0x1c3fb0)Object[_0x473192(0x57b)][_0x473192(0x3b7)][_0x473192(0x300)](_0x1c3fb0,_0x5358f9)&&(_0x227bfe[_0x5358f9]=_0x1c3fb0[_0x5358f9]);}return _0x227bfe;},M[_0x363922(0x218)](this,arguments);},Ui=function(_0x6e0903,_0x234919){const _0x4e4222=_0x333065;var _0x5880b6={};for(var _0x56475d in _0x6e0903)Object['prototype']['hasOwnProperty'][_0x4e4222(0x300)](_0x6e0903,_0x56475d)&&_0x234919[_0x4e4222(0x464)](_0x56475d)<0x0&&(_0x5880b6[_0x56475d]=_0x6e0903[_0x56475d]);if(_0x6e0903!=null&&typeof Object[_0x4e4222(0x2c8)]==_0x4e4222(0x529)){for(var _0x571c01=0x0,_0x56475d=Object[_0x4e4222(0x2c8)](_0x6e0903);_0x571c01<_0x56475d['length'];_0x571c01++)_0x234919[_0x4e4222(0x464)](_0x56475d[_0x571c01])<0x0&&Object[_0x4e4222(0x57b)][_0x4e4222(0x410)][_0x4e4222(0x300)](_0x6e0903,_0x56475d[_0x571c01])&&(_0x5880b6[_0x56475d[_0x571c01]]=_0x6e0903[_0x56475d[_0x571c01]]);}return _0x5880b6;},Ze=P[_0x333065(0x259)](function(_0x21d39e,_0x29c319){const _0x1c2680=_0x333065;var _0x49a462=_0x21d39e[_0x1c2680(0x235)],_0x4e504d=_0x21d39e['id'],_0x568e63=_0x21d39e[_0x1c2680(0x48b)],_0x5efda9=_0x21d39e[_0x1c2680(0x2f4)],_0x3671de=Ui(_0x21d39e,['icon','id','className','extend']),_0x227b74='univerjs-icon\x20univerjs-icon-'['concat'](_0x4e504d,'\x20')['concat'](_0x568e63||'')[_0x1c2680(0x39f)](),_0x4198f9=P[_0x1c2680(0x3d1)]('_'[_0x1c2680(0x34b)](Ni()));return wt(_0x49a462,''['concat'](_0x4e504d),{'defIds':_0x49a462[_0x1c2680(0x37e)],'idSuffix':_0x4198f9['current']},M({'ref':_0x29c319,'className':_0x227b74},_0x3671de),_0x5efda9);});function _0x577b(){const _0x5dbc64=['updateCollaborator','actions','isPermissionRej','getViewport','number','YUUMI_UNABLE_LOAD_URL','objects','dispose$','DeleteRangeMoveUpCommandId','_clearHeartbeatTimer','RemoveRowCommandId','_removeClearOtherTimer','name','_pendingMutations','registerComponent','transformChangesets','top','collaborators','getUndoRedoMutationParamsCache','_sendingTimer','LocalCacheService','_messageService','useDependency','string','exhaustSavingTask','BASE64','_singleActiveUnitService','session.collaboration-timeout','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','SetDocZoomRatioOperation','_collaborationSessionService','urlChange$','focused$','getParam','OFFLINE','_clearLocalCache','duration','fill','isInternalEditorID','CONFLICT','joinEvent','idSuffix','_localeService','propertyIsEnumerable','addObjects','getSheetId','IDLE','syncEditingCollabCursor','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','/role','max','CollaborationSessionService','objectType','useCallback','isTransformMutationsWithChangesetSuccess','_docSkeletonManagerService','getValue','Rectangle','onCommandExecuted','CollaborationSession','localeService','list','capture','updateMember','requireSession','rev','baseRev','_socketMessageSubscription','_retryConnectingTimer','IRenderManagerService','_onRemoteACK','ThemeService','handleInsertRangeMoveRight','withCredentials','UNIVER_SHEET','_removeRoom','skeleton','_schedule','/universer-api/stream/file/upload','resourceIDs','DataLoaderController','triggerDblclick','getSheetObject','has','enableOfflineEditing','jiqing500','transformRemoteChangeset','_scene','ACTIVE_UNIT_EVENT_CHANNEL','onRemoteChangeset','_createHandler','add','fillRule','_showConflictNotification','csRejEvent','NO_OTHER_CLIENTS_EDITING','_cursors','_configService','_incrementRevisionNumber','width','HEARTBEAT_TIMEOUT','collabStatus.fetchMiss','getRoom','save\x20fail\x20reason\x20is\x20','setUndoRedoMutationParamsCache','@univerjs/core','session','on-line-single','_saveCache','routeKey','ImageSourceType','Rect','_onFetchMissResult','random','SetTextSelectionsOperation','/-/object/list','InsertRangeMoveDownCommandId','_handleJoinEvent','MUTATION','IBeforeCloseService','getLatestCsReqIdBySid','responseType','with','_unitStatus','newCsEvent','status$','ColorKit','indexOf','_setupBeforeClosingHandler','IContextService','_docTransformIMECacheService','retryConnectingInterval','FETCH_MISS','_cursorShapes','reconnect','getCurrentUnitForType','_setupSubUnitSync','_urlService','onReady','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','slice','onSendChangeset','INTERNAL_ERROR','objectID','RxDisposable','event$','[OfflineState]:\x20received\x20changeset.','SetSelectionsOperation','_getAPIPrefix','&source=','5405792KkeJcI','black','fetch_missing','status','unitID','RETRY_CONNECTING_MAX_COUNT_KEY','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','LocalUndoRedoService','getRandomValues','USERS_ENTER','_saveTaskMap','YUUMI_SUBSCRIPTION_NOT_FOUND','dispose','/unit/','assign','_localCacheService','className','toggleOnline','_scheduleSaving','fillStyle','_onConflict','_cursor','_name','_event$','changesets','toString','@univerjs/engine-render','LICENSE_EXPORT_SIZE_EXCEEDED','_docStateChangeManagerService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','getMemberID','_handler','[DataLoaderController]','url','InsertSheetMutation','some','CHANGESET_REVISION_CONFILICT','/new_changes','_getSendChangesetTimeout','onTransformChange$','clearInterval','FAIL','_initUnitPermissionChange','getUnit','_disableEditing','onPointerLeave$','infoRsp','DocCollaborationEntity','29062521YfAfsg','/universer-api/oidc/authpage','defs','_rescheduleHeartbeat','SEND_CHANGESET_TIMEOUT_KEY','_startDocCollabCursor','getUnitStatus$','0\x200\x2016\x2016','_clearOtherTimers','TEXT_RANGE_LAYER_INDEX','reject','_onUserJoin','liveShareOperation','isActive','resend','_colorAssignService','location','NOT_FOUND','deepClone','TOO_MANY_REQUESTS','UNIVER_COLLABORATION_CLIENT_PLUGIN','DEFAULT_FILE_NAME','_changesetReqId','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','image/png','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','roomMembers$','_applyRemoteChangeset','_unitOnClients','take','mutations','isTransformMutationsWithChangesetFailure','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_unitID','2118130rTSzic','AuthzIoHttpService','_instanceService','leaveEvent','image/gif','[CollaborationSession]','_transformRemoteChangesetByIMECache','ImageIoService','UNKNOWN_CODE','HELLO','collaboration.closeRoom','_exhaustRemoteChangesetQueue','patch','BehaviorSubject','batchAllowed','RECV','makeDirty','IUndoRedoService','_commentUpdate$','_collabSessionService','awaiting_with_pending','@univerjs/drawing','registerHTTPInterceptor','_onLocalMutation','_getCurrentRevision','conflict','UNIVER_PROJECT','getCollabCursors$','_anchorDot','HEARTBEAT_INTERVAL','CHANGESET_ACK','getImage','UniverCollaborationPlugin','saveSnapshot','APPLY_REJECT','includes','MoveRangeCommandId','originalMeta','merge','_onConnectionFailed','onlineStatus','putCollaborators','combineLatest','SEND_CHANGESET_TIMEOUT','_acknowledgedAwaitingChangeset','getFocusedUnit','_colorIndex','_throwTelemetryCollaborationNewChangeset','registerOnClose','/allowed','getSheetBySheetId','takeUntil','map','@univerjs/sheets-ui','editingUnit','failed\x20to\x20apply\x20missed\x20changesets!','_queuedRemoteChangesets','connection\x20error','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','labelPosition','univer-online-status-icon','_localStorageService','ITransformService','102QsnhbF','PERMISSION_REJ','HEARTBEAT','socketService','_retryCount','CommandType','_onUserLeave','_range','debounce','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','mapTo','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','_handleEvent','isTransformChangesetsSuccess','DocStateChangeManagerService','sid','RefRangeService','now','stopTime','transformMutationsWithChangeset','Inject','_getRedoStack','visibilityState','_updateSubUnitFromURLParams','[CollaborationUndoRedoService]','_scheduleHeartbeat','loadSheet','color','setParam','function','_init','c2Prime','hide','unknown','parseProtocolChangeset','SHOULD_CLOSE_CONN','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','send','collaboration_new_changeset','0\x200\x2017\x2016','updateCursorEvent','method','clearTimeout','confirm','_transformUndoredo','COLORS','SNAPSHOT_HAS_BEEN_REMOVED','LEAVE','onRemoteRej','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','deserializeRangeWithSheet','_sendHeartbeatTimer','searchParams','liveShareNewHost','_decreaseWaiting','_eventUnsubscribe','/fetchmissing?from=','215005iWhMPb','onTransformRemoteChangesetByIMECache','subunit','_getDownloadEndpointURL','data','signUrlServerUrl','_imageSourceCache','LIVESHARE_OPERATION','x-univer-host','m2Prime','serializeRangeWithSheet','[UniverCollaborationClientPlugin]','ONLINE','handleInsertRow','awaiting','rgba(255,\x20255,\x20255,\x200.01)','parseChangesetToProtocol','currentColor','awaitingChangeset','@univerjs-pro/collaboration','fetchMissingChangesets','DocIMEInputManagerService','getVpScrollXYInfoByPosToVp','LOCAL_CACHE_INTERVAL_KEY','children','_getAnchorBounding','/universer-api/snapshot','YUUMI_URL_COL_OUT_OF_RANGE','UNIVER_SLIDE','_syncEditingCollabCursor','...','_injector','DeleteRangeMoveLeftCommandId','_logService','univer-online-status-title','moveTo','505TzbNOK','getWorkbookSelections','@univerjs/ui','_drawRectRange','NEW_CHANGESETS','[CollaborationState]:\x20apply\x20error!','UNIVER_DOC','Unknown\x20user','roles','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntity','Workbook','DocSkeletonManagerService','currentTheme$','UNDEFINED','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/rev/','socket$','prototype','getUnitType','_initResize','/object','_startSheetCollabCursor','next','refreshPermission','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','fetchMiss','colorChannel1','@univerjs/docs','_tryEnsureSocket','_remoteChangesetQueue','updatePermissionObjEvent','_onOffline','setTimeout','IUIPartsService','handleInsertRangeMoveDown','removeParam','getImageSourceCache','SnapshotServerOverHTTPService','onPointerMove$','_toggleOnline','addImageSourceCache','_type','&assign=','getRelativeToViewportCoord','AWAITING','debug','COLLAB_WEB_SOCKET_URL','members','_removeCollabCursors','appendMutation','use','USERS_LEAVE','sheetID','_color','_initStatusComponent','transformSelections','SNAPSHOT_URL_KEY','_config','_members','_roomMembers$','getActiveSheet','ILogService','_docSyncEditingCollabCursorService','_fetchMissChangesets','commentUpdateEvent','_onCombEvent','copyFileMeta','_docTransformSelectionsService','collabStatus.conflict','getCurrentSelections','_onMessage','getConfig','Error\x20on\x20receiving\x20event','sheetId','getRangePointData','stringify','removeMember','_hideTimer','_anchor','replaceTextRanges','storage','shareReplay','_collaborationTimeoutTimer','loginUrlKey','/collaborator','getUnitId','JSONX','isEditing','_renderManagerService','cmd','entries','updatePermissionPoint','SheetCollaborationEntity','getSheetBlock','_beforeCloseService','_cursorInfo$','_onJoinRoomEvent','MSG_FOR_ERROR','sessionStatus$','&to=','HttpImport','LIVESHARE_NEW_HOST','_loadSheet','EmptyMutation','_context','selections','addObject','_joinRoom','blue400','_document','getActiveRange','_hovered','path','\x20to\x20','image/jpeg','_getAPIPrefixPath','cursorInfo$','telemetry\x20info\x20is\x20not\x20initialized','_backgroundColor','userID','_transformPreviousActiveRange','_socketReady','PERMISSION_DENIED','saveImage','_clearCollaborationTimeoutTimer','SheetPermissionInitController','_change$','collabSubmitChangesetUrl','m1Prime','enableLocalCache','touchDependencies','CollaborationStatusDisplay','createIdentifier','_syncEditingCollabCursorService','enableAuthServer','CollaborationSocketService','ranges','unit','_HTTPService','_disabled','_labelPosition','InsertRowCommandId','_substituteRedoStack','disposeWithMe','not_collab','_transitionLocked','disposeUnit','Disposable','_selfUnitIDs','evenodd','subscribeEvent','UnitSnapshot','_onCursorUpdate','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getOffsetConfig','584214ordClT','assignAColorForMemberID','_awaitingChangeset','PSEUDO_FETCH_MISSING_RESULT','UUID','DependentOn','#FFF','submit\x20changeset\x20error!','override','collab-text-anchor-','conflict.title','Subject','ENSURE_SNAPSHOT_EXECUTION','LIVESHARE_REQUEST_HOST','_commentService','encode','createSocket','setConfig','_state','[PendingState]:\x20received\x20rejection.','unitId\x20is\x20not\x20found','_transformSelections','VIEWPORT_KEY','lineTo','unload','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','JOINING','\x0aAfter:\x20','INGEST','_send','23572mWlswP','SYNCED','downloadEndpointUrl','LICENSE_MAX_UNITS_EXCEEDED','_socketService','purple300','forEach','_unlockTransition','ThresholdInterceptorFactory','row','ImageUploadStatusType','handleInsertCol','deleteCollaborator','/object/','state','ILocalStorageService','ITelemetryService','getTime','LOCAL_CACHE_INTERVAL','asObservable','?size=','encodeURIComponent','SNAPSHOT_INVALID_SNAPSHOT','_onRemoteRejected','update','setItem','_transformService','setInterval','change$','/universer-api/authz','socket\x20close','session.room-full','_waitCount','_updateState','session.will-retry','_cachedData','univer-online-status','saveChangeset','apply','AUTHZ_URL_KEY','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','registerBeforeClose','div','startColumn','rng','docStateChange$','onlineStatusIcon','synced','_handleHover','Univer','fetchThroughInterceptors','CollaborationController','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','toDisposable','_getSignURL','endColumn','memberID','_textBubble','target','_candidateSocket','FETCH_MISSING','init','SUBMIT_CHANGESET','rxjs/operators','setShapeProps','size','fetching\x20missing\x20changesets\x20from\x20','icon','_scheduleCollaborationTimeoutTimer','_entityInit$','_refRangeService','pluginName','_memberService','_timeoutTimer','collaboration-client.offline-data-not-saved','_clearTimeoutTimer','createElement','_compressMutationService','reduce','beginPath','subscribe','_commandService','_registerRenderDependencies','NodePositionConvertToCursor','url(#on-line-single_clip0_910_349)','body','[PendingState]:\x20received\x20acknowledgement.','SheetSkeletonManagerService','_telemetryService','createCollaborator','set','MessageType','off-line-single_clip0_910_343','generateRandomId','onStateChange','readAsDataURL','UNRECOGNIZED','_collaborationPaused','SUCCUSS','length','IConfigService','_collabCursorState$','sendChangesetTimeout','forwardRef','/-/object/-/batch_allowed','APPLY_PERMISSION_DENIED','key','_roomMembers','onStarting','COMPLETION_FINISHED','_shouldReportTelemetry','_permissionService','_submitChangeset','replace','bind','handleDeleteRangeMoveLeft','values','APPLY_REVISION_CONFILICT','_replaceFileID','attrs','_online','_onCursorDelete','getAttachHeader','LICENSE_DISTRO_REJECTED','_socket','/universer-api/file/{fileID}/sign-url','onMissingChangesets','@univerjs-pro/license','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_scheduleClearOtherTimer','1338658nIhMVW','LOGIN_URL_KEY','findNodePositionByCharIndex','_onConnectionOpen','compose','measureText','_lockTransition','_sessionStatus$','_snapshotService','Undefined','gold400','verdancy600','Optional','isArray','LocaleService','_onRecvEvent','collab-client.tooltip.reconnect','eventID','uni.network.url-service','_heartbeatTimer','setActiveRange','text','toRgbString','pushState','transformStack\x20failed!','transformMutation','_updateCollabCursors','_executeRemoteChangeset','_initStatusListener','UniverCollaborationClientPlugin','delay','ERROR_IMAGE','_getSaveTimeout','_univerInstanceService','_snapshotServerService','error','UniverInstanceType','\x0aCurrent:\x20','_getSheetObject','[SyncedState]:\x20received\x20rejection.','APPLY_NON_SEQUENTIAL_REVISION','offline','getMergeData','range','Error','getCurrentUser','COMMENT_UPDATE','getItem','univer-pro.collaboration-client.single-active-unit-service','_httpService','SheetCollabCursorShape','_session','getColor','href','all','_toggleOffline','_getCtorByUniverType','headers','_refreshCollabCursors','selection','runRefRangeMutations','arc','_collabCursorController','NodePositionConvertToRectRange','code','collabCursorState$','registerRenderModule','push','permissionRejEvent','CommentService','onRemoteAck','collaMsg','online','DesktopCollaborationStatusDisplayController','toStringTag','cursorInfo','univer-online','close','_initEventListeners','_ws','mapDocumentTypeToUniverType','_id','FileId','NOT_COLLAB','getOwnPropertySymbols','_initRequestHeader','createInstance','isTransformMutationFailure','_getUploadFileURL','@univerjs/telemetry','filter','displayName','_notificationService','_listenToOnlineEvent','[CollaborationSessionService]:\x20socket\x20error','onPointerEnter$','find','_transformUndoRedoStack','UNIVER_UNKNOWN','_clearUndo','getUnitOnRev','_getSnapshotAPIPrefix','_sessions','_createSocket','_userManagerService','column','complete','snapshot','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','pauseCollaboration','_handleLeaveEvent','defineProperty','post','symbol','UPDATE_CURSOR','_docSkeleton','COMPRESS_MUTATION_APPLY','endRow','initWorkbookPermissionChange','WorkbookEditablePermission','registerRefRange','JOIN','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','ALREADY_EXISTS','clear','getMember','onTransformSelections','none','extend','CHANGESET_REJ','editing\x20status\x20changed\x20to','pending','ERROR_EXCEED_SIZE','_telemetryInfo','_status$','tag','_substituteUndoStack','collaboration.single-unit.warning','image/jpg','CollaborationEvent','call','history','univer-pro.collaboration-client-socket-service','red300','[SyncedState]:\x20received\x20acknowledgement.','sheets','hovered','LICENSE_IMPORT_SIZE_EXCEEDED','CompressMutationService','roomInfos','enableSingleActiveInstanceLock','error$','auth.needGotoLoginAlert','getCollabEntity$','getRenderById','transformUndoRedo','switchMap','_initMergeInterceptor','_uiPartsService','_clearRedo','CONNECTOR_DATA_TOO_LARGE','collaboratorID','reverse','doc.mutation.rich-text-editing','_draw','open$','getDocRanges','interceptor','_createInitialStateImpl','_revisionService','_clearScheduledTask','reqId','save','EffectRefRangId','#fff','handleMoveRange','UserManagerService','POST','unit-cache-','_shapes','svg','requestParams','onTransformIME','setAlpha','_assignedColors','catch','pipe','connectInjector','_getScale','_updateLocalCache','RichTextEditingMutation','_collaborationController','Module','snapshotServerUrl','_checkMissing','OffLineSingle','{fileID}','state$','toggleOffline','permission.content','OnLineSingle','ws://127.0.0.1:8000/universer-api/comb/connect','textEncoder','@univerjs/docs-ui','getAncestorScale','Warning','UPDATE_PERMISSION_OBJ','_scheduleTimestamp','BuiltInUIPart','WebSocketService','unitId','Injector','onCommentUpdate','getUniverSheetInstance','getTypeOfUnitDisposed$','concat','close$','InsertColCommandId','CollaborationStatus','newValue','image/bmp','COLLAB_SUBMIT_CHANGESET_URL_KEY','APPLY_DUPLICATED','unsubscribe','restore','1em','HttpExport','executeCommand','append','put','drawWith','min','CollaborationEntity','INVALID_ARGUMENT','fromCollab','onMissedChangesetFetched','c1Prime','disableLocalCache','unshift','collabStatus.syncing','revision','DisposableCollection','conflict.content','getResourcesRequest','_onRefRangeChange','RemoveColCommandId','ISnapshotServerService','Tools','clipPath','IAuthzIoService','_socket$','_updateStatus','replaceState','_ensureSubject','_replayCachedMutations','parse','_undoStacks','[CollaborationSessionService]','debounceTime','ICommandService','getOwnPropertyDescriptor','_render','_themeService','HTTPService','bottom','commentUpdate$','defIds','_hover','_updateLocalCursor','toLowerCase','_getUndoStack','_initCloseConn','randomUUID','SNAPSHOT_SERVER_URL_KEY','on-line-single_clip0_910_349','from','_state$','Vector2','_getMergeRange','LIVESHARE_FETCH_OPERATIONS','socket\x20open.','getTypeOfUnitAdded$','show','IPermissionService','round','MergeInterceptorFactory','permission.title','COLLAB_SUBMIT_CHANGESET_URL','collabStatus.synced','PENDING','getInterceptPoints','SetWorksheetActivateCommand','DocSelectionManagerService','onlyLocal','UnitEmbedded','_lastPointer','OTHER_CLIENTS_EDITING','allowed','XHRHTTPImplementation','trim','xlink:href','src','_updateURLWithCurrentState','Tooltip','collab-rect-range-','addEventListener','textRanges','throttleTime','height','univer-offline','_entities','_startCollaboration','RevisionService','_transformIMECache','Shape','react','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','resize','getSkeleton','fillText','closeSession','_isPermissionRej','handleIRemoveCol','hasOwnProperty','then','SheetsSelectionsService','@univerjs/engine-formula','HTTPRequest','_transformStack','_initCommandExecutedListener','_drawTextRange','collaboration-session-retry','get','IUniverInstanceService','transformIMECache','type','_changesetSessionId','_initModules','_startTelemetryCollaborationNewChangeset','_getLoginPath','loadOfflineData','_handleHeartbeatEvent','_drawAnchor','delete','collabStatus.offline','AWAITING_WITH_PENDING','mergeOverrideWithDependencies','onMouseMove','M0\x200H16V16H0z','useRef','HEARTBEAT_INTERVAL_KEY','_stopTelemetryCollaborationNewChangeset','useObservable','LIVESHARE_TERMINATE','params','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','startsWith','rxjs','COMPRESS_MUTATION_SEND','getCurrentRevOfUnit','IMessageService','_http','UNKNOWN_CMD','FromArray','YUUMI_RATE_OVER_LIMIT','_sheetTransformSelectionsService','UniverIcon','RegularPolygon','InsertRangeMoveRightCommandId'];_0x577b=function(){return _0x5dbc64;};return _0x577b();}function wt(_0x2601e4,_0x1660d8,_0xcc46d5,_0x18dbba,_0x868cb6){const _0x28e7f0=_0x333065;return P[_0x28e7f0(0x23e)](_0x2601e4[_0x28e7f0(0x2fb)],M(M({'key':_0x1660d8},Pi(_0x2601e4,_0xcc46d5,_0x868cb6)),_0x18dbba),(wi(_0x2601e4,_0xcc46d5)[_0x28e7f0(0x55d)]||[])[_0x28e7f0(0x501)](function(_0x1ce4b1,_0x478b82){const _0x4f12b6=_0x28e7f0;return wt(_0x1ce4b1,''['concat'](_0x1660d8,'-')[_0x4f12b6(0x34b)](_0x2601e4[_0x4f12b6(0x2fb)],'-')[_0x4f12b6(0x34b)](_0x478b82),_0xcc46d5,void 0x0,_0x868cb6);}));}function Pi(_0x387a9d,_0x6a59f7,_0x32aebe){const _0x481fdc=_0x333065;var _0x414ad7=M({},_0x387a9d['attrs']);_0x32aebe!=null&&_0x32aebe[_0x481fdc(0x584)]&&_0x414ad7['fill']===_0x481fdc(0x584)&&(_0x414ad7[_0x481fdc(0x40a)]=_0x32aebe[_0x481fdc(0x584)]);var _0x5a4171=_0x6a59f7['defIds'];return!_0x5a4171||_0x5a4171[_0x481fdc(0x255)]===0x0||(_0x387a9d[_0x481fdc(0x2fb)]===_0x481fdc(0x59c)&&_0x414ad7[_0x481fdc(0x3a0)]&&(_0x414ad7[_0x481fdc(0x3a0)]=_0x414ad7[_0x481fdc(0x3a0)]+_0x6a59f7[_0x481fdc(0x40e)]),Object['entries'](_0x414ad7)[_0x481fdc(0x1f8)](function(_0x49427a){const _0x178ed7=_0x481fdc;var _0x10c4cb=_0x49427a[0x0],_0x4dd7de=_0x49427a[0x1];typeof _0x4dd7de==_0x178ed7(0x3fc)&&(_0x414ad7[_0x10c4cb]=_0x4dd7de['replace'](/url\(#(.*)\)/,'url(#$1'[_0x178ed7(0x34b)](_0x6a59f7[_0x178ed7(0x40e)],')')));})),_0x414ad7;}function wi(_0x19992d,_0x3719b0){const _0x1f5d06=_0x333065;var _0xfff9d4,_0x5acb1c=_0x3719b0[_0x1f5d06(0x37e)];return!_0x5acb1c||_0x5acb1c[_0x1f5d06(0x255)]===0x0?_0x19992d:_0x19992d[_0x1f5d06(0x2fb)]===_0x1f5d06(0x4ad)&&(!((_0xfff9d4=_0x19992d['children'])===null||_0xfff9d4===void 0x0)&&_0xfff9d4[_0x1f5d06(0x255)])?M(M({},_0x19992d),{'children':_0x19992d['children']['map'](function(_0x5667c4){const _0x372bc6=_0x1f5d06;return typeof _0x5667c4[_0x372bc6(0x269)]['id']=='string'&&_0x5acb1c&&_0x5acb1c['indexOf'](_0x5667c4['attrs']['id'])>-0x1?M(M({},_0x5667c4),{'attrs':M(M({},_0x5667c4['attrs']),{'id':_0x5667c4['attrs']['id']+_0x3719b0[_0x372bc6(0x40e)]})}):_0x5667c4;})}):_0x19992d;}function Ni(){const _0x12203d=_0x333065;return Math[_0x12203d(0x456)]()['toString'](0x24)['substring'](0x2,0x8);}Ze[_0x333065(0x2cf)]=_0x333065(0x3e2);var Mi={'tag':_0x333065(0x328),'attrs':{'fill':'none','viewBox':_0x333065(0x4b2),'width':_0x333065(0x355),'height':_0x333065(0x355)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x333065(0x1a9),'attrs':{'stroke':_0x333065(0x556),'d':_0x333065(0x507),'strokeLinecap':_0x333065(0x390),'strokeLinejoin':_0x333065(0x390),'strokeWidth':1.2}}]},{'tag':_0x333065(0x4ad),'attrs':{},'children':[{'tag':_0x333065(0x36c),'attrs':{'id':_0x333065(0x24e)},'children':[{'tag':_0x333065(0x1a9),'attrs':{'fill':_0x333065(0x322),'d':_0x333065(0x3d0)}}]}]}],'defIds':[_0x333065(0x24e)]},Nt=P['forwardRef'](function(_0xb93765,_0x4c5ee5){const _0x11c7c8=_0x333065;return P['createElement'](Ze,Object[_0x11c7c8(0x489)]({},_0xb93765,{'id':'off-line-single','ref':_0x4c5ee5,'icon':Mi}));});Nt[_0x333065(0x2cf)]=_0x333065(0x337);var Ai={'tag':_0x333065(0x328),'attrs':{'fill':_0x333065(0x2f3),'viewBox':_0x333065(0x533),'width':'1em','height':_0x333065(0x355)},'children':[{'tag':'g','attrs':{'clipPath':_0x333065(0x246)},'children':[{'tag':_0x333065(0x1a9),'attrs':{'stroke':_0x333065(0x556),'d':_0x333065(0x517),'strokeLinecap':_0x333065(0x390),'strokeLinejoin':_0x333065(0x390),'strokeWidth':1.2}}]},{'tag':_0x333065(0x4ad),'attrs':{},'children':[{'tag':_0x333065(0x36c),'attrs':{'id':_0x333065(0x386)},'children':[{'tag':_0x333065(0x1a9),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Mt=P['forwardRef'](function(_0x37b0c9,_0x3f7d6e){const _0x3f562f=_0x333065;return P[_0x3f562f(0x23e)](Ze,Object[_0x3f562f(0x489)]({},_0x37b0c9,{'id':_0x3f562f(0x450),'ref':_0x3f7d6e,'icon':Ai}));});Mt[_0x333065(0x2cf)]=_0x333065(0x33c);function At(_0x9ae10a){const _0x477c88=_0x333065;var _0x431867,_0x18b20a,_0x3b7ebf='';if(typeof _0x9ae10a==_0x477c88(0x3fc)||typeof _0x9ae10a==_0x477c88(0x3e9))_0x3b7ebf+=_0x9ae10a;else{if(typeof _0x9ae10a=='object'){if(Array['isArray'](_0x9ae10a)){var _0x1f38cd=_0x9ae10a[_0x477c88(0x255)];for(_0x431867=0x0;_0x431867<_0x1f38cd;_0x431867++)_0x9ae10a[_0x431867]&&(_0x18b20a=At(_0x9ae10a[_0x431867]))&&(_0x3b7ebf&&(_0x3b7ebf+='\x20'),_0x3b7ebf+=_0x18b20a);}else{for(_0x18b20a in _0x9ae10a)_0x9ae10a[_0x18b20a]&&(_0x3b7ebf&&(_0x3b7ebf+='\x20'),_0x3b7ebf+=_0x18b20a);}}}return _0x3b7ebf;}function Li(){for(var _0xece99a,_0x243cdd,_0x43ed76=0x0,_0x521f23='',_0x44741e=arguments['length'];_0x43ed76<_0x44741e;_0x43ed76++)(_0xece99a=arguments[_0x43ed76])&&(_0x243cdd=At(_0xece99a))&&(_0x521f23&&(_0x521f23+='\x20'),_0x521f23+=_0x243cdd);return _0x521f23;}const ji=_0x333065(0x509),$i=_0x333065(0x567),Hi=_0x333065(0x216),xi=_0x333065(0x2c0),ki=_0x333065(0x3a9),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x577170){const _0x51b3ad=_0x333065;switch(_0x577170){case U['OFFLINE']:return _0x51b3ad(0x3cc);case U['CONFLICT']:return _0x51b3ad(0x17d);case U[_0x51b3ad(0x469)]:return _0x51b3ad(0x44a);case U[_0x51b3ad(0x2c7)]:return'collabStatus.notCollab';case U['PENDING']:case U[_0x51b3ad(0x596)]:case U[_0x51b3ad(0x3cd)]:return _0x51b3ad(0x363);case U[_0x51b3ad(0x1f3)]:return _0x51b3ad(0x394);}}function Lt(_0x4dc430){const _0x79d5ef=_0x333065,{status$:_0x4b2f33}=_0x4dc430,_0x5616a7=A[_0x79d5ef(0x3d4)](_0x4b2f33,U['NOT_COLLAB']),_0x530575=a[_0x79d5ef(0x3fb)](a[_0x79d5ef(0x282)]),_0xacc3a2=a[_0x79d5ef(0x3fb)](exports[_0x79d5ef(0x418)]),_0x2f00e7=_0x5616a7!==U['OFFLINE'],_0x48e47a=_0x530575['t'](Bi(_0x5616a7)),_0x14ffd2=Li(he[_0x79d5ef(0x4f5)],{[he[_0x79d5ef(0x2bc)]]:_0x2f00e7,[he['offline']]:!_0x2f00e7}),_0x653b71=_0x2f00e7?P['createElement'](Mt,null):P[_0x79d5ef(0x23e)](Nt,null),_0x146265=P[_0x79d5ef(0x41a)](()=>{_0x2f00e7||_0xacc3a2['reconnect']();},[_0x2f00e7,_0xacc3a2]);function _0x59df47(){const _0x3a9ba0=_0x79d5ef;return P[_0x3a9ba0(0x23e)](_0x3a9ba0(0x21c),{'className':_0x14ffd2,'onClick':_0x146265},P[_0x3a9ba0(0x23e)](_0x3a9ba0(0x21c),{'className':he[_0x3a9ba0(0x220)]},_0x653b71),P['createElement']('div',{'className':he['onlineStatusTitle']},_0x48e47a));}return _0x2f00e7?_0x59df47():P[_0x79d5ef(0x23e)](X[_0x79d5ef(0x3a3)],{'title':_0x530575['t'](_0x79d5ef(0x284))},_0x59df47());}var Vi=Object[_0x333065(0x2e3)],Wi=Object['getOwnPropertyDescriptor'],Fi=(_0x25b376,_0x2d22e7,_0x471d98,_0x1c0571)=>{for(var _0xccff2e=_0x1c0571>0x1?void 0x0:_0x1c0571?Wi(_0x2d22e7,_0x471d98):_0x2d22e7,_0x152692=_0x25b376['length']-0x1,_0x1116f4;_0x152692>=0x0;_0x152692--)(_0x1116f4=_0x25b376[_0x152692])&&(_0xccff2e=(_0x1c0571?_0x1116f4(_0x2d22e7,_0x471d98,_0xccff2e):_0x1116f4(_0xccff2e))||_0xccff2e);return _0x1c0571&&_0xccff2e&&Vi(_0x2d22e7,_0x471d98,_0xccff2e),_0xccff2e;},ge=(_0x4355e8,_0x249c5a)=>(_0x163efb,_0x4b7122)=>_0x249c5a(_0x163efb,_0x4b7122,_0x4355e8);exports[_0x333065(0x2bd)]=class extends a[_0x333065(0x1cc)]{constructor(_0x4ad2be,_0x1a3f38,_0x4e085e,_0x2fec25){const _0x128fde=_0x333065;super(),u(this,_0x128fde(0x2fa),new v[(_0x128fde(0x4da))](U[_0x128fde(0x2c7)])),(this[_0x128fde(0x295)]=_0x4ad2be,this[_0x128fde(0x312)]=_0x1a3f38,this[_0x128fde(0x564)]=_0x4e085e,this[_0x128fde(0x333)]=_0x2fec25,this[_0x128fde(0x5a0)](),this[_0x128fde(0x290)]());}[_0x333065(0x290)](){const _0xf0342c=_0x333065;this[_0xf0342c(0x1c8)](this[_0xf0342c(0x295)]['focused$'][_0xf0342c(0x32e)](v['switchMap'](()=>{const _0x5d0fa3=_0xf0342c,_0x7fc701=this[_0x5d0fa3(0x295)][_0x5d0fa3(0x4fa)]();return _0x7fc701?this[_0x5d0fa3(0x333)][_0x5d0fa3(0x30d)](_0x7fc701[_0x5d0fa3(0x18e)]()):v['of'](null);}),v[_0xf0342c(0x310)](_0xe1e671=>_0xe1e671?_0xe1e671[_0xf0342c(0x462)]:v['of'](U[_0xf0342c(0x2c7)])))[_0xf0342c(0x242)](_0x4b4b45=>{const _0x30639f=_0xf0342c;this[_0x30639f(0x2fa)][_0x30639f(0x580)](_0x4b4b45);}));}[_0x333065(0x5a0)](){const _0x3f1d3e=_0x333065;this[_0x3f1d3e(0x1c8)](this[_0x3f1d3e(0x312)][_0x3f1d3e(0x3f3)](A[_0x3f1d3e(0x344)]['HEADER_MENU'],()=>a[_0x3f1d3e(0x32f)](Gi({'status$':this[_0x3f1d3e(0x2fa)][_0x3f1d3e(0x205)]()}),this[_0x3f1d3e(0x564)])));}},exports[_0x333065(0x2bd)]=Fi([ge(0x0,a[_0x333065(0x3c1)]),ge(0x1,A[_0x333065(0x58b)]),ge(0x2,a['Inject'](a['Injector'])),ge(0x3,a[_0x333065(0x520)](exports[_0x333065(0x225)]))],exports[_0x333065(0x2bd)]);function Gi(_0x418d72){const {status$:_0x5de475}=_0x418d72;return function(){const _0x4435c9=_0x2204;return P[_0x4435c9(0x23e)](Lt,{'status$':_0x5de475});};}const Qe=a[_0x333065(0x1bd)](_0x333065(0x286));var Yi=Object[_0x333065(0x2e3)],Ki=Object['getOwnPropertyDescriptor'],Xi=(_0x4a6582,_0x469374,_0x5c7438,_0x1fcc1e)=>{const _0x559df2=_0x333065;for(var _0x1674d0=_0x1fcc1e>0x1?void 0x0:_0x1fcc1e?Ki(_0x469374,_0x5c7438):_0x469374,_0x530319=_0x4a6582[_0x559df2(0x255)]-0x1,_0x420ad2;_0x530319>=0x0;_0x530319--)(_0x420ad2=_0x4a6582[_0x530319])&&(_0x1674d0=(_0x1fcc1e?_0x420ad2(_0x469374,_0x5c7438,_0x1674d0):_0x420ad2(_0x1674d0))||_0x1674d0);return _0x1fcc1e&&_0x1674d0&&Yi(_0x469374,_0x5c7438,_0x1674d0),_0x1674d0;},ee=(_0x309e2e,_0xb0e988)=>(_0x420602,_0xce8285)=>_0xb0e988(_0x420602,_0xce8285,_0x309e2e);exports[_0x333065(0x435)]=class extends a[_0x333065(0x475)]{constructor(_0x309bb7,_0x4dc0fe,_0x354366,_0x357947,_0x4b138a,_0x2e1430){const _0x2cf9bd=_0x333065;super(),this[_0x2cf9bd(0x46e)]=_0x309bb7,this['_logService']=_0x4dc0fe,this[_0x2cf9bd(0x243)]=_0x354366,this['_localCacheService']=_0x357947,this[_0x2cf9bd(0x27c)]=_0x4b138a,_0x2e1430?_0x2e1430==null||_0x2e1430['whenReady']()['then'](()=>this[_0x2cf9bd(0x52a)]()):(this[_0x2cf9bd(0x566)][_0x2cf9bd(0x597)](_0x2cf9bd(0x49b),_0x2cf9bd(0x470)),this[_0x2cf9bd(0x52a)]());}async[_0x333065(0x52a)](){const _0x41140f=_0x333065,_0x49b460=this[_0x41140f(0x46e)][_0x41140f(0x406)](_0x41140f(0x1c2)),_0x2dff7a=this[_0x41140f(0x46e)][_0x41140f(0x406)]('type');if(!_0x49b460||!_0x2dff7a){this['_logService'][_0x41140f(0x597)](_0x41140f(0x49b),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2dff7a)){case $[_0x41140f(0x42f)]:{const _0x9d1ec9=await this[_0x41140f(0x19f)](_0x49b460);this[_0x41140f(0x46d)](_0x9d1ec9);break;}case $[_0x41140f(0x56f)]:{await this['_loadDoc'](_0x49b460);break;}default:{this[_0x41140f(0x566)][_0x41140f(0x297)](_0x41140f(0x49b),_0x41140f(0x272));break;}}}async['_setupSubUnitSync'](_0x2bb31d){const _0x4f7e98=_0x333065;await this[_0x4f7e98(0x523)](_0x2bb31d),_0x2bb31d['activeSheet$'][_0x4f7e98(0x32e)](v[_0x4f7e98(0x500)](this[_0x4f7e98(0x3ec)]))[_0x4f7e98(0x242)](_0x21b741=>{const _0x1348cb=_0x4f7e98;_0x21b741&&this[_0x1348cb(0x3a2)](_0x21b741);}),this['_urlService'][_0x4f7e98(0x404)][_0x4f7e98(0x32e)](v[_0x4f7e98(0x500)](this[_0x4f7e98(0x3ec)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x2bb31d));}[_0x333065(0x3a2)](_0x1f8b7f,_0x114d9e=!0x1){const _0x56cc79=_0x333065,_0x529ebc=this['_urlService'][_0x56cc79(0x406)](_0x56cc79(0x547));_0x1f8b7f['getSheetId']()!==_0x529ebc&&this[_0x56cc79(0x46e)]['setParam'](_0x56cc79(0x547),_0x1f8b7f[_0x56cc79(0x412)](),_0x114d9e);}async[_0x333065(0x523)](_0x538423){const _0x51f66e=_0x333065;var _0xcbb747;const _0x1c1b09=this['_urlService'][_0x51f66e(0x406)](_0x51f66e(0x547));if(!_0x1c1b09||!_0x538423['getSheetBySheetId'](_0x1c1b09)){const _0x3e413a=_0x538423['getUnhiddenWorksheets']()[0x0],_0x2da3e9=_0x538423[_0x51f66e(0x4ff)](_0x3e413a);if(!_0x2da3e9)return;this[_0x51f66e(0x3a2)](_0x2da3e9,!0x0),await this[_0x51f66e(0x243)][_0x51f66e(0x357)](C[_0x51f66e(0x397)]['id'],{'unitId':_0x538423[_0x51f66e(0x18e)](),'subUnitId':_0x3e413a});return;}((_0xcbb747=_0x538423[_0x51f66e(0x175)]())==null?void 0x0:_0xcbb747['getSheetId']())!==_0x1c1b09&&await this['_commandService'][_0x51f66e(0x357)](C[_0x51f66e(0x397)]['id'],{'unitId':_0x538423[_0x51f66e(0x18e)](),'subUnitId':_0x1c1b09});}async['_loadSheet'](_0x3127cb){const _0xd3a7f2=_0x333065;let _0x105c53=0x0;const _0x5a63b4=await this[_0xd3a7f2(0x48a)][_0xd3a7f2(0x3c8)](_0x3127cb);return _0x5a63b4&&(_0x5a63b4[_0xd3a7f2(0x557)]||_0x5a63b4[_0xd3a7f2(0x4c9)]['length']!==0x0)&&(_0x105c53=_0x5a63b4[_0xd3a7f2(0x426)]),_0x105c53===0x0&&this[_0xd3a7f2(0x566)][_0xd3a7f2(0x597)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xd3a7f2(0x27c)][_0xd3a7f2(0x526)](_0x3127cb,_0x105c53);}async['_loadDoc'](_0x11d605){const _0x20283a=_0x333065;let _0x1c96a7=0x0;const _0x242d23=await this['_localCacheService'][_0x20283a(0x3c8)](_0x11d605);return _0x242d23&&(_0x242d23[_0x20283a(0x557)]||_0x242d23['mutations'][_0x20283a(0x255)]!==0x0)&&(_0x1c96a7=_0x242d23[_0x20283a(0x426)]),_0x1c96a7===0x0&&this[_0x20283a(0x566)][_0x20283a(0x597)](_0x20283a(0x49b),_0x20283a(0x401)),this[_0x20283a(0x27c)]['loadDoc'](_0x11d605,_0x1c96a7);}},exports[_0x333065(0x435)]=Xi([ee(0x0,Qe),ee(0x1,a[_0x333065(0x176)]),ee(0x2,a[_0x333065(0x377)]),ee(0x3,a['Inject'](exports[_0x333065(0x3f9)])),ee(0x4,a[_0x333065(0x520)](_['SnapshotService'])),ee(0x5,a[_0x333065(0x280)](Kt['IRemoteInstanceService']))],exports[_0x333065(0x435)]);var qi=Object[_0x333065(0x2e3)],zi=Object[_0x333065(0x378)],Ji=(_0x29d639,_0x1d24e3,_0x468723,_0x378ec3)=>{for(var _0x2b585a=_0x378ec3>0x1?void 0x0:_0x378ec3?zi(_0x1d24e3,_0x468723):_0x1d24e3,_0x539dec=_0x29d639['length']-0x1,_0x2cb9b8;_0x539dec>=0x0;_0x539dec--)(_0x2cb9b8=_0x29d639[_0x539dec])&&(_0x2b585a=(_0x378ec3?_0x2cb9b8(_0x1d24e3,_0x468723,_0x2b585a):_0x2cb9b8(_0x2b585a))||_0x2b585a);return _0x378ec3&&_0x2b585a&&qi(_0x1d24e3,_0x468723,_0x2b585a),_0x2b585a;},_t=(_0xd81815,_0x49029c)=>(_0x42dc8e,_0x366782)=>_0x49029c(_0x42dc8e,_0x366782,_0xd81815);const Zi=_0x333065(0x4c0),Qi=_0x333065(0x223);let Ce=class extends a['Disposable']{constructor(_0x435a04,_0x2dfbbf){const _0x16b717=_0x333065;super(),this[_0x16b717(0x295)]=_0x435a04,this['_configService']=_0x2dfbbf,this[_0x16b717(0x52a)]();}[_0x333065(0x52a)](){const _0x336755=_0x333065;this['disposeWithMe'](this['_univerInstanceService'][_0x336755(0x405)][_0x336755(0x242)](()=>{const _0x15ce32=_0x336755;var _0x1c8c89;const _0x4eb85f=this[_0x15ce32(0x295)][_0x15ce32(0x4fa)]();let _0x5529f5=(_0x1c8c89=this['_configService']['getConfig'](Zi))!=null?_0x1c8c89:Qi;_0x4eb85f instanceof a[_0x15ce32(0x574)]&&(_0x5529f5=_0x4eb85f['name']),document['title']=_0x5529f5;}));}};Ce=Ji([_t(0x0,a[_0x333065(0x3c1)]),_t(0x1,a[_0x333065(0x256)])],Ce);var en=Object[_0x333065(0x2e3)],tn=Object['getOwnPropertyDescriptor'],sn=(_0x4091b0,_0x21c9ec,_0x2d8d4e,_0x536ed5)=>{for(var _0x3e447a=_0x536ed5>0x1?void 0x0:_0x536ed5?tn(_0x21c9ec,_0x2d8d4e):_0x21c9ec,_0x48fd85=_0x4091b0['length']-0x1,_0x1adfc9;_0x48fd85>=0x0;_0x48fd85--)(_0x1adfc9=_0x4091b0[_0x48fd85])&&(_0x3e447a=(_0x536ed5?_0x1adfc9(_0x21c9ec,_0x2d8d4e,_0x3e447a):_0x1adfc9(_0x3e447a))||_0x3e447a);return _0x536ed5&&_0x3e447a&&en(_0x21c9ec,_0x2d8d4e,_0x3e447a),_0x3e447a;},He=(_0xe81bf2,_0x5ccd13)=>(_0x4dbe9b,_0x28b7da)=>_0x5ccd13(_0x4dbe9b,_0x28b7da,_0xe81bf2);let Ee=class{constructor(_0x272cc4,_0x48e18e,_0x4c3318){const _0x13485a=_0x333065;this[_0x13485a(0x446)]=_0x272cc4,this[_0x13485a(0x2a5)]=_0x48e18e,this[_0x13485a(0x421)]=_0x4c3318,this[_0x13485a(0x22f)]();}[_0x333065(0x22f)](){const _0x5ab483=_0x333065;this[_0x5ab483(0x2a5)][_0x5ab483(0x4e3)]({'priority':0x1,'interceptor':(_0x396911,_0x362e67)=>_0x362e67(_0x396911)[_0x5ab483(0x32e)](v['concatMap'](async _0x175c07=>{const _0x1900f8=_0x5ab483,_0x4dd96f=_0x175c07;if(_0x4dd96f[_0x1900f8(0x47e)]===0x191&&window[_0x1900f8(0x537)](this[_0x1900f8(0x421)]['t'](_0x1900f8(0x30c)))){const _0x41200a=window[_0x1900f8(0x207)](window[_0x1900f8(0x4bb)]['href']);window[_0x1900f8(0x4bb)][_0x1900f8(0x2a9)]=this[_0x1900f8(0x3c7)]()+'?url='+_0x41200a;}return _0x4dd96f;}))});}[_0x333065(0x3c7)](){const _0x578944=_0x333065;var _0x7c6047,_0x472c76;const _0x4146d2=this['_configService'][_0x578944(0x180)](Et),_0x35fce7=this[_0x578944(0x446)][_0x578944(0x180)](L);return(_0x472c76=(_0x7c6047=_0x35fce7==null?void 0x0:_0x35fce7[_0x578944(0x18c)])!=null?_0x7c6047:_0x4146d2)!=null?_0x472c76:ns;}};Ee=sn([He(0x0,a[_0x333065(0x256)]),He(0x1,a[_0x333065(0x520)](w[_0x333065(0x37b)])),He(0x2,a['Inject'](a[_0x333065(0x282)]))],Ee);var nn=Object[_0x333065(0x2e3)],rn=Object[_0x333065(0x378)],on=(_0x18f4bc,_0x66880b,_0x1def0e,_0x30dbd8)=>{const _0x7f461f=_0x333065;for(var _0x5326e2=_0x30dbd8>0x1?void 0x0:_0x30dbd8?rn(_0x66880b,_0x1def0e):_0x66880b,_0x55d1fc=_0x18f4bc[_0x7f461f(0x255)]-0x1,_0x5c48cf;_0x55d1fc>=0x0;_0x55d1fc--)(_0x5c48cf=_0x18f4bc[_0x55d1fc])&&(_0x5326e2=(_0x30dbd8?_0x5c48cf(_0x66880b,_0x1def0e,_0x5326e2):_0x5c48cf(_0x5326e2))||_0x5326e2);return _0x30dbd8&&_0x5326e2&&nn(_0x66880b,_0x1def0e,_0x5326e2),_0x5326e2;},ut=(_0x2f5c94,_0x333e1b)=>(_0x1d8f2b,_0x5cfc07)=>_0x333e1b(_0x1d8f2b,_0x5cfc07,_0x2f5c94);const jt=_0x333065(0x219),an=_0x333065(0x20f);exports[_0x333065(0x4ce)]=class extends a[_0x333065(0x1cc)]{constructor(_0x573f67,_0x17e59f){const _0x59db88=_0x333065;super(),this[_0x59db88(0x1c3)]=_0x573f67,this[_0x59db88(0x446)]=_0x17e59f,this['_initMergeInterceptor']();}[_0x333065(0x311)](){const _0x13a4c7=_0x333065,_0x43a5c9=this;this[_0x13a4c7(0x1c8)](this[_0x13a4c7(0x1c3)][_0x13a4c7(0x4e3)]({'priority':0x3e7,'interceptor':w[_0x13a4c7(0x391)]({'isMatch'(_0x2b5afe){const _0x827f08=_0x13a4c7;var _0x28180f;if(_0x2b5afe[_0x827f08(0x535)]===_0x827f08(0x325)&&((_0x28180f=_0x2b5afe[_0x827f08(0x329)])!=null&&_0x28180f[_0x827f08(0x247)])){const {objectID:_0x59a90e,objectType:_0x475323}=_0x2b5afe[_0x827f08(0x329)][_0x827f08(0x247)]||{};if(!_0x59a90e||_0x475323===void 0x0)return!0x1;const _0x2f6f8b=_0x43a5c9[_0x827f08(0x1ac)]()+'/'+_0x475323+'/object/'+_0x59a90e+_0x827f08(0x4fe);if(_0x2b5afe[_0x827f08(0x49c)]===_0x2f6f8b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x519c43){const _0x39a064=_0x13a4c7;var _0x504e7e;return(_0x504e7e=_0x519c43['requestParams'])==null?void 0x0:_0x504e7e[_0x39a064(0x247)];},'mergeParamsToRequest'(_0x26d1ff,_0x494498){const _0x5ccd42=_0x13a4c7,_0x3d9215=_0x43a5c9['_getAPIPrefixPath']()+_0x5ccd42(0x25a),_0x1f3417=_0x26d1ff[_0x5ccd42(0x240)]((_0x3871da,_0x1797cf)=>{const _0x20d61b=_0x5ccd42,{unitID:_0x3a7803,objectID:_0x35c8a0,objectType:_0x84864c,actions:_0x1c5f6d}=_0x1797cf;return _0x3871da[_0x3a7803]||(_0x3871da[_0x3a7803]={}),_0x3871da[_0x3a7803][_0x35c8a0]||(_0x3871da[_0x3a7803][_0x35c8a0]={'objectID':_0x35c8a0,'objectType':_0x84864c,'actions':[]}),_0x3871da[_0x3a7803][_0x35c8a0][_0x20d61b(0x3e6)]['push'](..._0x1c5f6d),_0x3871da;},{}),_0x3c414d=[];for(const _0x2e8f3a in _0x1f3417)for(const _0x47514c in _0x1f3417[_0x2e8f3a]){const {actions:_0x4cb8d1,objectType:_0x277b58}=_0x1f3417[_0x2e8f3a][_0x47514c],_0x19aca0=[...new Set(_0x4cb8d1)];_0x3c414d[_0x5ccd42(0x2b7)]({'unitID':_0x2e8f3a,'objectID':_0x47514c,'objectType':_0x277b58,'actions':_0x19aca0});}return new w[(_0x5ccd42(0x3bb))](_0x5ccd42(0x325),_0x3d9215,{'headers':_0x494498['headers'],'withCredentials':_0x494498[_0x5ccd42(0x42e)],'responseType':_0x494498[_0x5ccd42(0x45e)],'body':{'requests':_0x3c414d}});}},{'distributeResult'(_0x37662e,_0x26312b){const {objectActions:_0x1010d1}=_0x37662e;return _0x26312b['map'](_0x3a8eb5=>{const _0x4170e1=_0x2204,{unitID:_0x5c0db4,objectID:_0x14d5a1,actions:_0x9ce42a}=_0x3a8eb5,_0x1d4524=_0x1010d1[_0x4170e1(0x2d4)](_0x216641=>_0x216641[_0x4170e1(0x47f)]===_0x5c0db4&&_0x216641[_0x4170e1(0x474)]===_0x14d5a1),_0x11317a=_0x9ce42a[_0x4170e1(0x501)](_0x12116a=>_0x1d4524==null?void 0x0:_0x1d4524[_0x4170e1(0x3e6)]['find'](_0x17434b=>_0x17434b['action']===_0x12116a))[_0x4170e1(0x2ce)](_0xf7b088=>!!_0xf7b088);return{'config':_0x3a8eb5,'result':{'actions':_0x11317a,'error':_0x37662e[_0x4170e1(0x297)]}};});}})}));}['_getAPIPrefixPath'](){const _0x4f43ed=_0x333065;var _0x3fdd19,_0x4c1e5c;const _0xd2d444=this[_0x4f43ed(0x446)]['getConfig'](jt),_0x1c0c2a=this[_0x4f43ed(0x446)][_0x4f43ed(0x180)](L);return(_0x4c1e5c=(_0x3fdd19=_0x1c0c2a==null?void 0x0:_0x1c0c2a['authzUrl'])!=null?_0x3fdd19:_0xd2d444)!=null?_0x4c1e5c:an;}async['create'](_0x1be72e){const _0x56d3bc=_0x333065,_0x51832a=this[_0x56d3bc(0x1ac)]()+'/'+_0x1be72e['objectType']+_0x56d3bc(0x57e);return(await this[_0x56d3bc(0x1c3)]['post'](_0x51832a,{'body':_0x1be72e}))[_0x56d3bc(0x247)]['objectID']||'';}async[_0x333065(0x422)](_0x1070c5){const _0x447928=_0x333065,_0x481c1d=this[_0x447928(0x1ac)]()+_0x447928(0x458);return(await this['_HTTPService']['post'](_0x481c1d,{'body':_0x1070c5}))[_0x447928(0x247)][_0x447928(0x3eb)];}async[_0x333065(0x20a)](_0x2ffa02){const _0x17fedb=_0x333065,_0x30f719=this[_0x17fedb(0x1ac)]()+'/'+_0x2ffa02[_0x17fedb(0x419)]+_0x17fedb(0x1ff)+_0x2ffa02[_0x17fedb(0x474)];await this[_0x17fedb(0x1c3)][_0x17fedb(0x359)](_0x30f719,{'body':_0x2ffa02});}async[_0x333065(0x39d)](_0x5c2659){const _0x51a21d=_0x333065,_0x309923=this[_0x51a21d(0x1ac)]()+'/'+_0x5c2659[_0x51a21d(0x419)]+_0x51a21d(0x1ff)+_0x5c2659[_0x51a21d(0x474)]+'/allowed';return(await this[_0x51a21d(0x1c3)][_0x51a21d(0x2e4)](_0x309923,{'body':_0x5c2659}))[_0x51a21d(0x247)][_0x51a21d(0x3e6)];}async[_0x333065(0x4db)](_0x5039ff){const _0x44062d=_0x333065,_0x4ffbf1=this['_getAPIPrefixPath']()+_0x44062d(0x25a);return(await this[_0x44062d(0x1c3)]['post'](_0x4ffbf1,{'body':{'requests':_0x5039ff}}))[_0x44062d(0x247)]['objectActions'];}async['listRoles'](_0x2b9ab6){const _0x210fac=_0x333065,_0x485f28=this[_0x210fac(0x1ac)]()+'/'+_0x2b9ab6[_0x210fac(0x419)]+_0x210fac(0x416),_0x4ae66a=await this['_HTTPService'][_0x210fac(0x2e4)](_0x485f28,{'body':_0x2b9ab6});return{'roles':_0x4ae66a[_0x210fac(0x247)][_0x210fac(0x571)],'actions':_0x4ae66a['body'][_0x210fac(0x3e6)]};}async[_0x333065(0x1fe)](_0x3a278e){const _0xca43f7=_0x333065,_0x306e0d=this['_getAPIPrefixPath']()+_0xca43f7(0x18d);await this[_0xca43f7(0x1c3)][_0xca43f7(0x3cb)](_0x306e0d,{'params':{'collaboratorID':_0x3a278e[_0xca43f7(0x315)],'objectID':_0x3a278e[_0xca43f7(0x474)],'unitID':_0x3a278e['unitID']}});}async[_0x333065(0x3e5)](_0x5ffcff){const _0x507326=_0x333065,_0x282bae=this[_0x507326(0x1ac)]()+_0x507326(0x18d);await this[_0x507326(0x1c3)][_0x507326(0x4d9)](_0x282bae,{'body':_0x5ffcff});}async[_0x333065(0x24b)](_0x1b4ec2){const _0x254166=_0x333065,_0x5e1715=this[_0x254166(0x1ac)]()+_0x254166(0x18d);await this[_0x254166(0x1c3)][_0x254166(0x2e4)](_0x5e1715,{'body':_0x1b4ec2});}async['listCollaborators'](_0x53ffe8){const _0xbc9856=_0x333065,_0x51cf37=this['_getAPIPrefixPath']()+_0xbc9856(0x18d);return(await this['_HTTPService'][_0xbc9856(0x3c0)](_0x51cf37,{'params':{'objectID':_0x53ffe8[_0xbc9856(0x474)],'unitID':_0x53ffe8[_0xbc9856(0x47f)]}}))['body'][_0xbc9856(0x3f6)];}async[_0x333065(0x4f6)](_0x188085){const _0x3d2f77=_0x333065,_0x2d5af4=this['_getAPIPrefixPath']()+_0x3d2f77(0x18d);await this['_HTTPService'][_0x3d2f77(0x359)](_0x2d5af4,{'body':_0x188085});}},exports[_0x333065(0x4ce)]=on([ut(0x0,a[_0x333065(0x520)](w[_0x333065(0x37b)])),ut(0x1,a['Inject'](a[_0x333065(0x256)]))],exports[_0x333065(0x4ce)]);var cn=Object[_0x333065(0x2e3)],ln=Object[_0x333065(0x378)],hn=(_0x4a49f8,_0xdd7ef7,_0x487098,_0x4ea38f)=>{const _0x7c488b=_0x333065;for(var _0x1a4e13=_0x4ea38f>0x1?void 0x0:_0x4ea38f?ln(_0xdd7ef7,_0x487098):_0xdd7ef7,_0x4f24a7=_0x4a49f8[_0x7c488b(0x255)]-0x1,_0x2f2291;_0x4f24a7>=0x0;_0x4f24a7--)(_0x2f2291=_0x4a49f8[_0x4f24a7])&&(_0x1a4e13=(_0x4ea38f?_0x2f2291(_0xdd7ef7,_0x487098,_0x1a4e13):_0x2f2291(_0x1a4e13))||_0x1a4e13);return _0x4ea38f&&_0x1a4e13&&cn(_0xdd7ef7,_0x487098,_0x1a4e13),_0x1a4e13;},_n=(_0x28db71,_0x57777f)=>(_0x2c4fc2,_0x3b07de)=>_0x57777f(_0x2c4fc2,_0x3b07de,_0x28db71);let be=class{constructor(_0x2197d7){const _0x44540e=_0x333065;this[_0x44540e(0x2a5)]=_0x2197d7,this[_0x44540e(0x2c9)]();}[_0x333065(0x2c9)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x4b11af,_0x1d55f2)=>{const _0x3db28c=_0x2204,_0x1b202b=_0x4b11af[_0x3db28c(0x2ad)],_0x54c59e=Xt[_0x3db28c(0x26c)]();return _0x54c59e&&_0x1b202b[_0x3db28c(0x24c)](_0x3db28c(0x54d),_0x54c59e),_0x1d55f2(_0x4b11af);}});}};be=hn([_n(0x0,a[_0x333065(0x520)](w[_0x333065(0x37b)]))],be);var un=Object[_0x333065(0x2e3)],dn=Object[_0x333065(0x378)],Sn=(_0x1faae7,_0x116b05,_0x6753aa,_0x354aa6)=>{const _0xaa3302=_0x333065;for(var _0x1838fa=_0x354aa6>0x1?void 0x0:_0x354aa6?dn(_0x116b05,_0x6753aa):_0x116b05,_0x1b3c12=_0x1faae7[_0xaa3302(0x255)]-0x1,_0x5a91e7;_0x1b3c12>=0x0;_0x1b3c12--)(_0x5a91e7=_0x1faae7[_0x1b3c12])&&(_0x1838fa=(_0x354aa6?_0x5a91e7(_0x116b05,_0x6753aa,_0x1838fa):_0x5a91e7(_0x1838fa))||_0x1838fa);return _0x354aa6&&_0x1838fa&&un(_0x116b05,_0x6753aa,_0x1838fa),_0x1838fa;},xe=(_0x40a9ce,_0x416654)=>(_0x2fcf05,_0x16470c)=>_0x416654(_0x2fcf05,_0x16470c,_0x40a9ce);const vn=[_0x333065(0x4c3),_0x333065(0x1ab),_0x333065(0x2fe),_0x333065(0x4d1),_0x333065(0x350)],gn=0x5*0x400*0x400,mn=_0x333065(0x4c2),fn=_0x333065(0x433),In='EXCHANGE_SIGN_URL_SERVER_URL_KEY',pn=_0x333065(0x26f);exports['ImageIoService']=class{constructor(_0x2362fe,_0xfa4bcc,_0x3705d1){const _0x3c2bc7=_0x333065;u(this,_0x3c2bc7(0x212),0x0),u(this,_0x3c2bc7(0x1b7),new v[(_0x3c2bc7(0x1df))]()),u(this,_0x3c2bc7(0x20e),this[_0x3c2bc7(0x1b7)]),u(this,_0x3c2bc7(0x54b),new Map()),(this['_httpService']=_0x2362fe,this[_0x3c2bc7(0x446)]=_0xfa4bcc,this[_0x3c2bc7(0x295)]=_0x3705d1);}['setWaitCount'](_0x4d674c){const _0x5e0563=_0x333065;this['_waitCount']=_0x4d674c,this[_0x5e0563(0x1b7)][_0x5e0563(0x580)](_0x4d674c);}[_0x333065(0x58e)](_0x26a6b8,_0x59705a){const _0x1ae527=_0x333065;if(_0x59705a===j[_0x1ae527(0x453)][_0x1ae527(0x3fe)]){const _0x46ea00=new Image();return _0x46ea00[_0x1ae527(0x3a1)]=_0x26a6b8,_0x46ea00;}return this[_0x1ae527(0x54b)][_0x1ae527(0x3c0)](_0x26a6b8);}[_0x333065(0x592)](_0x5a9111,_0x4efad8,_0x217494){const _0xeb7391=_0x333065;_0x4efad8===j[_0xeb7391(0x453)]['BASE64']||_0x217494==null||this[_0xeb7391(0x54b)]['set'](_0x5a9111,_0x217494);}async[_0x333065(0x4ec)](_0x53c9f1){const _0x4daefb=_0x333065;try{const _0x3c27f6=this[_0x4daefb(0x268)](this[_0x4daefb(0x228)](),''+_0x53c9f1),_0x591d10=(await this[_0x4daefb(0x2a5)][_0x4daefb(0x3c0)](_0x3c27f6))[_0x4daefb(0x247)];if(_0x591d10[_0x4daefb(0x297)]&&_0x591d10[_0x4daefb(0x297)]['code']===bt['OK']){const _0x7b25f9=new URL(_0x591d10[_0x4daefb(0x49c)],this[_0x4daefb(0x548)]())['toString']();return Promise['resolve'](_0x7b25f9);}return Promise['reject'](_0x591d10[_0x4daefb(0x297)]);}catch(_0x2fa603){return Promise[_0x4daefb(0x4b5)](_0x2fa603);}}async[_0x333065(0x1b4)](_0x3b4e23){const _0x133810=_0x333065;let _0x1b78c4='';if(!vn['includes'](_0x3b4e23['type']))return this[_0x133810(0x542)](),Promise['reject'](new Error(j[_0x133810(0x1fc)]['ERROR_IMAGE_TYPE']));if(_0x3b4e23[_0x133810(0x233)]>gn)return this[_0x133810(0x542)](),Promise['reject'](new Error(j[_0x133810(0x1fc)][_0x133810(0x2f8)]));try{const _0x4ba897=new FormData();_0x4ba897[_0x133810(0x358)]('file',_0x3b4e23);const _0x1e83f9=this['_univerInstanceService'][_0x133810(0x4fa)](),_0x133a07=_0x1e83f9==null?void 0x0:_0x1e83f9['getUnitId']();if(!_0x133a07)throw new Error(_0x133810(0x1e8));const _0x3c532c=this[_0x133810(0x2cc)]()+_0x133810(0x206)+_0x3b4e23[_0x133810(0x233)][_0x133810(0x494)]()+_0x133810(0x47a)+Tt[_0x133810(0x39a)]+_0x133810(0x594)+encodeURIComponent(_0x133a07),_0x11db5c=await(await fetch(_0x3c532c,{'method':_0x133810(0x325),'body':_0x4ba897}))['json']();if(typeof _0x11db5c[_0x133810(0x2c6)]!=_0x133810(0x3fc))return this[_0x133810(0x542)](),Promise[_0x133810(0x4b5)](new Error(j[_0x133810(0x1fc)][_0x133810(0x293)]));_0x1b78c4=_0x11db5c[_0x133810(0x2c6)];}catch{return this[_0x133810(0x542)](),Promise['reject'](new Error(j['ImageUploadStatusType'][_0x133810(0x293)]));}return new Promise((_0x11b488,_0x463aed)=>{const _0x5007f7=_0x133810,_0x3fe392=new FileReader();_0x3fe392[_0x5007f7(0x251)](_0x3b4e23),_0x3fe392['onload']=_0x355a1c=>{const _0x498214=_0x5007f7;var _0x33b214;const _0x5a7a24=(_0x33b214=_0x355a1c[_0x498214(0x22c)])==null?void 0x0:_0x33b214['result'];if(_0x5a7a24==null){this[_0x498214(0x542)](),_0x463aed(new Error(j[_0x498214(0x1fc)][_0x498214(0x293)]));return;}const _0x3471bb=a[_0x498214(0x36b)][_0x498214(0x24f)](0x6);_0x11b488({'imageId':_0x3471bb,'imageSourceType':j[_0x498214(0x453)][_0x498214(0x1d8)],'source':_0x1b78c4,'base64Cache':_0x5a7a24,'status':j['ImageUploadStatusType'][_0x498214(0x254)]}),this[_0x498214(0x542)]();};});}[_0x333065(0x2cc)](){const _0x4a97c8=_0x333065;var _0x26c49d,_0x5591ae;const _0x2b1b67=this[_0x4a97c8(0x446)][_0x4a97c8(0x180)](mn),_0x2196fc=this[_0x4a97c8(0x446)][_0x4a97c8(0x180)](L);return(_0x5591ae=(_0x26c49d=_0x2196fc==null?void 0x0:_0x2196fc['uploadFileServerUrl'])!=null?_0x26c49d:_0x2b1b67)!=null?_0x5591ae:fn;}['_getSignURL'](){const _0x5ef846=_0x333065;var _0xae8dd7,_0x58e1ec;const _0x5fec97=this['_configService'][_0x5ef846(0x180)](In),_0xb57317=this[_0x5ef846(0x446)][_0x5ef846(0x180)](L);return(_0x58e1ec=(_0xae8dd7=_0xb57317==null?void 0x0:_0xb57317[_0x5ef846(0x54a)])!=null?_0xae8dd7:_0x5fec97)!=null?_0x58e1ec:pn;}['_getDownloadEndpointURL'](){const _0x5e7739=_0x333065;var _0x50ab35;const _0x51dbea=this[_0x5e7739(0x446)][_0x5e7739(0x180)](L);return(_0x50ab35=_0x51dbea==null?void 0x0:_0x51dbea[_0x5e7739(0x1f4)])!=null?_0x50ab35:location['origin'];}[_0x333065(0x268)](_0x76dd9b,_0x5999fe){const _0x5172aa=_0x333065;return _0x76dd9b[_0x5172aa(0x263)](_0x5172aa(0x338),_0x5999fe);}['_decreaseWaiting'](){const _0x46da6c=_0x333065;this[_0x46da6c(0x212)]-=0x1,this[_0x46da6c(0x1b7)][_0x46da6c(0x580)](this[_0x46da6c(0x212)]);}},exports[_0x333065(0x4d4)]=Sn([xe(0x0,a['Inject'](w['HTTPService'])),xe(0x1,a['IConfigService']),xe(0x2,a[_0x333065(0x520)](a['IUniverInstanceService']))],exports[_0x333065(0x4d4)]);var Cn=Object[_0x333065(0x2e3)],En=Object[_0x333065(0x378)],bn=(_0x3cd53a,_0x473366,_0xefde50,_0x1be71f)=>{const _0x550caf=_0x333065;for(var _0xdbd090=_0x1be71f>0x1?void 0x0:_0x1be71f?En(_0x473366,_0xefde50):_0x473366,_0x207bad=_0x3cd53a[_0x550caf(0x255)]-0x1,_0x5a0fb9;_0x207bad>=0x0;_0x207bad--)(_0x5a0fb9=_0x3cd53a[_0x207bad])&&(_0xdbd090=(_0x1be71f?_0x5a0fb9(_0x473366,_0xefde50,_0xdbd090):_0x5a0fb9(_0xdbd090))||_0xdbd090);return _0x1be71f&&_0xdbd090&&Cn(_0x473366,_0xefde50,_0xdbd090),_0xdbd090;},_e=(_0x13b262,_0x36cb6c)=>(_0x175a59,_0x2473c2)=>_0x36cb6c(_0x175a59,_0x2473c2,_0x13b262);let Te=class extends a['RxDisposable']{constructor(_0x5bae35,_0x58973f,_0x15aa32,_0x223cdc,_0x544404){const _0x1aecf5=_0x333065;super(),this[_0x1aecf5(0x564)]=_0x5bae35,this[_0x1aecf5(0x295)]=_0x58973f,this[_0x1aecf5(0x261)]=_0x15aa32,this[_0x1aecf5(0x403)]=_0x223cdc,this[_0x1aecf5(0x40f)]=_0x544404,this['_initUnitPermissionChange'](),this[_0x1aecf5(0x383)]();}['_initCloseConn'](){const _0x2b6259=_0x333065,_0x26fe36=async _0x8c05e6=>{const _0x3a1b65=_0x2204;(await this['_collaborationSessionService'][_0x3a1b65(0x425)](_0x8c05e6))[_0x3a1b65(0x476)][_0x3a1b65(0x32e)](E[_0x3a1b65(0x2ce)](_0x643ba7=>_0x643ba7['eventID']===_[_0x3a1b65(0x2ff)][_0x3a1b65(0x52f)]),E['takeUntil'](this[_0x3a1b65(0x3ec)]))['subscribe'](_0xf45ddc=>{const _0xc5e719=_0x3a1b65,_0x8e3d62=_0xf45ddc,{reason:_0x48b0ba}=_0x8e3d62[_0xc5e719(0x549)];this[_0xc5e719(0x564)]['get'](A[_0xc5e719(0x3dc)])[_0xc5e719(0x38e)]({'type':X[_0xc5e719(0x24d)][_0xc5e719(0x2a0)],'content':this[_0xc5e719(0x40f)]['t'](_0xc5e719(0x4d7))+'('+_0x48b0ba+')'}),this[_0xc5e719(0x261)]['updatePermissionPoint'](new C[(_0xc5e719(0x2eb))](_0x8c05e6)['id'],!0x1),this['_collaborationSessionService'][_0xc5e719(0x3b4)](_0x8c05e6);});};v[_0x2b6259(0x4f3)](this['_univerInstanceService'][_0x2b6259(0x38d)](a['UniverInstanceType'][_0x2b6259(0x42f)]),this[_0x2b6259(0x295)][_0x2b6259(0x38d)](a[_0x2b6259(0x298)]['UNIVER_DOC']))[_0x2b6259(0x32e)](E[_0x2b6259(0x501)](_0x365c62=>_0x365c62[_0x2b6259(0x18e)]()),E[_0x2b6259(0x2ce)](_0x21c351=>!a['isInternalEditorID'](_0x21c351)),E[_0x2b6259(0x500)](this['dispose$']))['subscribe'](_0x522577=>{_0x26fe36(_0x522577);});}[_0x333065(0x4a5)](){const _0x21c5d3=_0x333065,_0x380583=async _0x506bf8=>{const _0x11c45d=_0x2204;(await this[_0x11c45d(0x403)][_0x11c45d(0x425)](_0x506bf8))[_0x11c45d(0x476)][_0x11c45d(0x32e)](E[_0x11c45d(0x2ce)](_0x7a7d35=>_0x7a7d35['eventID']===_[_0x11c45d(0x2ff)][_0x11c45d(0x342)]),E[_0x11c45d(0x500)](this[_0x11c45d(0x3ec)]))[_0x11c45d(0x242)](_0x1a116e=>{const _0x208d15=_0x11c45d,_0x82a620=_0x1a116e,{objectId:_0x314229}=_0x82a620[_0x208d15(0x549)],_0x1f8c07=this[_0x208d15(0x564)][_0x208d15(0x3c0)](te[_0x208d15(0x1b6)]);_0x314229===_0x506bf8?_0x1f8c07[_0x208d15(0x2ea)](_0x506bf8):_0x1f8c07[_0x208d15(0x581)](_0x506bf8,_0x314229);});};v[_0x21c5d3(0x4f3)](this[_0x21c5d3(0x295)][_0x21c5d3(0x38d)](a[_0x21c5d3(0x298)][_0x21c5d3(0x42f)]),this[_0x21c5d3(0x295)]['getTypeOfUnitAdded$'](a[_0x21c5d3(0x298)]['UNIVER_DOC']))[_0x21c5d3(0x32e)](E[_0x21c5d3(0x501)](_0x2bf48c=>_0x2bf48c[_0x21c5d3(0x18e)]()),E[_0x21c5d3(0x2ce)](_0x555b03=>!a[_0x21c5d3(0x40b)](_0x555b03)),E[_0x21c5d3(0x500)](this[_0x21c5d3(0x3ec)]))[_0x21c5d3(0x242)](_0x4f909a=>{_0x380583(_0x4f909a);});}};Te=bn([_e(0x0,a[_0x333065(0x520)](a[_0x333065(0x347)])),_e(0x1,a[_0x333065(0x3c1)]),_e(0x2,a[_0x333065(0x38f)]),_e(0x3,a[_0x333065(0x520)](exports['CollaborationSessionService'])),_e(0x4,a[_0x333065(0x520)](a[_0x333065(0x282)]))],Te);var Tn=Object[_0x333065(0x2e3)],Rn=Object[_0x333065(0x378)],On=(_0x21b570,_0x22bb7c,_0x6caf05,_0x2aa030)=>{const _0x3bf2f0=_0x333065;for(var _0x328445=_0x2aa030>0x1?void 0x0:_0x2aa030?Rn(_0x22bb7c,_0x6caf05):_0x22bb7c,_0x4d255c=_0x21b570[_0x3bf2f0(0x255)]-0x1,_0x30d3fa;_0x4d255c>=0x0;_0x4d255c--)(_0x30d3fa=_0x21b570[_0x4d255c])&&(_0x328445=(_0x2aa030?_0x30d3fa(_0x22bb7c,_0x6caf05,_0x328445):_0x30d3fa(_0x328445))||_0x328445);return _0x2aa030&&_0x328445&&Tn(_0x22bb7c,_0x6caf05,_0x328445),_0x328445;},dt=(_0x2646cb,_0x2854eb)=>(_0x41d756,_0x27ad08)=>_0x2854eb(_0x41d756,_0x27ad08,_0x2646cb);exports[_0x333065(0x58f)]=class{constructor(_0xc0c4d3,_0x58a468){const _0x4619e5=_0x333065;this['_configService']=_0xc0c4d3,this[_0x4619e5(0x2a5)]=_0x58a468;}async[_0x333065(0x2d8)](_0x56ec06,_0x1bd557){const _0x3905f8=_0x333065;var _0x20784f;const {unitID:_0x102693,type:_0x411dff,revision:_0x4b031f=0x0}=_0x1bd557,_0x1bbf46=this[_0x3905f8(0x2d9)]()+'/'+_0x411dff+_0x3905f8(0x488)+_0x102693+_0x3905f8(0x579)+_0x4b031f,_0x27c017=(await this[_0x3905f8(0x2a5)][_0x3905f8(0x3c0)](_0x1bbf46))[_0x3905f8(0x247)],_0x4f06a0=(_0x20784f=_0x27c017[_0x3905f8(0x2df)])==null?void 0x0:_0x20784f['workbook'];if(_0x4f06a0){const _0xe9a579=_0x4f06a0==null?void 0x0:_0x4f06a0['originalMeta'],_0x5c068f=_[_0x3905f8(0x33e)][_0x3905f8(0x1e3)](_['b64DecodeUnicode'](_0xe9a579));_0x4f06a0[_0x3905f8(0x4f2)]=_0x5c068f,Object[_0x3905f8(0x193)](_0x4f06a0[_0x3905f8(0x305)])[_0x3905f8(0x1f8)](([,_0x161601])=>{const _0x243e3a=_0x3905f8,_0xc740c6=_0x161601[_0x243e3a(0x4f2)],_0x2a0e9e=_[_0x243e3a(0x33e)]['encode'](_['b64DecodeUnicode'](_0xc740c6));_0x161601['originalMeta']=_0x2a0e9e;});}return _0x27c017;}async[_0x333065(0x196)](_0x102909,_0x424a11){const _0xa62522=_0x333065,{unitID:_0x5e980c,type:_0x1d2b44,blockID:_0x5e4c4c}=_0x424a11,_0x5d0657=this[_0xa62522(0x479)]()+'/'+_0x1d2b44+_0xa62522(0x488)+_0x5e980c+'/block/'+_0x5e4c4c;return(await this[_0xa62522(0x2a5)][_0xa62522(0x3c0)](_0x5d0657))[_0xa62522(0x247)];}async['getDeserializedSheetBlock'](_0x28920c,_0x59b9a9){const _0x3f6e70=_0x333065,{unitID:_0x35efc6,type:_0x2a22d0,blockID:_0x1b8ad8}=_0x59b9a9,_0x390bb3=this[_0x3f6e70(0x479)]()+'/block/'+_0x2a22d0+'/unit/'+_0x35efc6+'/block/'+_0x1b8ad8;return(await this[_0x3f6e70(0x2a5)]['get'](_0x390bb3))['body'];}async[_0x333065(0x559)](_0x16c18e,_0xba11a0){const _0x38de44=_0x333065,{unitID:_0x1285f7,type:_0x57dc3e,from:_0x43a2cc,to:_0x56704a}=_0xba11a0,_0x5f24b7=this[_0x38de44(0x479)]()+'/'+_0x57dc3e+'/unit/'+_0x1285f7+_0x38de44(0x544)+_0x43a2cc+_0x38de44(0x19c)+_0x56704a;return(await this[_0x38de44(0x2a5)][_0x38de44(0x3c0)](_0x5f24b7))[_0x38de44(0x247)];}[_0x333065(0x2d9)](){const _0x3a6873=_0x333065;var _0x3322d7;return(_0x3322d7=this[_0x3a6873(0x446)][_0x3a6873(0x180)](vt))!=null?_0x3322d7:this[_0x3a6873(0x479)]();}[_0x333065(0x479)](){const _0x2896e9=_0x333065;var _0x3aa1cb,_0x3494e6;const _0x4830c3=this[_0x2896e9(0x446)]['getConfig'](St),_0xbf381c=this[_0x2896e9(0x446)][_0x2896e9(0x180)](L);return(_0x3494e6=(_0x3aa1cb=_0xbf381c==null?void 0x0:_0xbf381c[_0x2896e9(0x335)])!=null?_0x3aa1cb:_0x4830c3)!=null?_0x3494e6:qt;}async[_0x333065(0x367)](_0x433336,_0x3bc97d){const _0xa30b11=_0x333065,_0x250756='/universer-api/snapshot/'+_0x3bc97d[_0xa30b11(0x3c3)]+_0xa30b11(0x488)+_0x3bc97d[_0xa30b11(0x47f)]+'/resources';return(await this[_0xa30b11(0x2a5)]['get'](_0x250756,{'params':{'resourceId':JSON[_0xa30b11(0x184)](_0x3bc97d[_0xa30b11(0x434)])}}))[_0xa30b11(0x247)];}[_0x333065(0x4ee)](){const _0x1c3034=_0x333065;throw new Error(_0x1c3034(0x415));}['saveSheetBlock'](){const _0x2384c8=_0x333065;throw new Error(_0x2384c8(0x415));}[_0x333065(0x217)](){const _0x91c012=_0x333065;throw new Error(_0x91c012(0x415));}[_0x333065(0x17b)](){const _0x32029b=_0x333065;throw new Error(_0x32029b(0x415));}[_0x333065(0x45d)](){const _0xa247ac=_0x333065;throw new Error(_0xa247ac(0x415));}},exports[_0x333065(0x58f)]=On([dt(0x0,a['IConfigService']),dt(0x1,a['Inject'](w[_0x333065(0x37b)]))],exports[_0x333065(0x58f)]);var Dn=Object[_0x333065(0x2e3)],yn=Object['getOwnPropertyDescriptor'],Un=(_0x10b679,_0x15154e,_0x37a00c,_0x10faf8)=>{const _0x40e7c0=_0x333065;for(var _0x4ab562=_0x10faf8>0x1?void 0x0:_0x10faf8?yn(_0x15154e,_0x37a00c):_0x15154e,_0x56a0e1=_0x10b679[_0x40e7c0(0x255)]-0x1,_0x32b1a9;_0x56a0e1>=0x0;_0x56a0e1--)(_0x32b1a9=_0x10b679[_0x56a0e1])&&(_0x4ab562=(_0x10faf8?_0x32b1a9(_0x15154e,_0x37a00c,_0x4ab562):_0x32b1a9(_0x4ab562))||_0x4ab562);return _0x10faf8&&_0x4ab562&&Dn(_0x15154e,_0x37a00c,_0x4ab562),_0x4ab562;},ue=(_0x31b098,_0x467965)=>(_0x410038,_0x598d81)=>_0x467965(_0x410038,_0x598d81,_0x31b098);let Fe=class extends a[_0x333065(0x482)]{constructor(_0x30cb9d,_0x2f2a6d,_0x2b14bc,_0x4cff87,_0x2b59f4){const _0x162525=_0x333065;super(_0x30cb9d,_0x2f2a6d,_0x2b14bc),this[_0x162525(0x20c)]=_0x4cff87,this[_0x162525(0x566)]=_0x2b59f4;}[_0x333065(0x30f)](_0x41cd1,_0x1c1db4){const _0x4d1c42=_0x333065,_0x1dc625=this[_0x4d1c42(0x382)](_0x41cd1);if(_0x1dc625)try{const _0x2f586d=this[_0x4d1c42(0x3bc)](_0x1dc625,_0x1c1db4);this[_0x4d1c42(0x2fc)](_0x41cd1,_0x2f586d);}catch(_0x567fc0){this[_0x4d1c42(0x566)][_0x4d1c42(0x297)](_0x4d1c42(0x524),_0x567fc0),this[_0x4d1c42(0x2d7)](_0x41cd1);}const _0x3f6c04=this[_0x4d1c42(0x521)](_0x41cd1);if(_0x3f6c04)try{const _0x41061c=this['_transformStack'](_0x3f6c04,_0x1c1db4);this['_substituteRedoStack'](_0x41cd1,_0x41061c);}catch(_0xf15990){this[_0x4d1c42(0x566)]['error'](_0xf15990),this[_0x4d1c42(0x313)](_0x41cd1);}}['_clearUndo'](_0x145f8c){const _0x1bade8=_0x333065,_0x32248f=this[_0x1bade8(0x382)](_0x145f8c);_0x32248f&&(_0x32248f[_0x1bade8(0x255)]=0x0,this[_0x1bade8(0x36f)]());}['_clearRedo'](_0x2bf5de){const _0x22c798=_0x333065,_0x33700f=this[_0x22c798(0x521)](_0x2bf5de);_0x33700f&&(_0x33700f[_0x22c798(0x255)]=0x0,this[_0x22c798(0x36f)]());}['_substituteUndoStack'](_0x45e7d8,_0x1a5bbf){const _0x1af540=_0x333065;this[_0x1af540(0x374)][_0x1af540(0x24c)](_0x45e7d8,_0x1a5bbf),this['_updateStatus']();}[_0x333065(0x1c7)](_0x21b20d,_0x3587f9){const _0x5417b4=_0x333065;this['_redoStacks'][_0x5417b4(0x24c)](_0x21b20d,_0x3587f9),this[_0x5417b4(0x36f)]();}[_0x333065(0x3bc)](_0x13b37a,_0xa7906a){const _0x38cbe8=_0x333065,_0x16ae53=[];let _0x49ae02=_0xa7906a,_0x3a8d5f=_0xa7906a;for(let _0x40d867=_0x13b37a[_0x38cbe8(0x255)]-0x1;_0x40d867>=0x0;_0x40d867--){const {unitID:_0xec8f33,undoMutations:_0x11b9b8,redoMutations:_0x107317}=_0x13b37a[_0x40d867],_0x558afe=this[_0x38cbe8(0x20c)][_0x38cbe8(0x51f)](_0x49ae02,_0x11b9b8),_0x2b4c20=this[_0x38cbe8(0x20c)][_0x38cbe8(0x51f)](_0x3a8d5f,_0x107317);if(_[_0x38cbe8(0x4ca)](_0x558afe)||_[_0x38cbe8(0x4ca)](_0x2b4c20)){this['_logService'][_0x38cbe8(0x297)]('[CollaborationUndoRedoService]',_0x38cbe8(0x28c),_0x558afe,_0x2b4c20);break;}_0x49ae02=_0x558afe[_0x38cbe8(0x360)],_0x3a8d5f=_0x2b4c20['c1Prime'],_0x16ae53['push']({'unitID':_0xec8f33,'undoMutations':_0x558afe[_0x38cbe8(0x54e)],'redoMutations':_0x2b4c20['m2Prime']});}return _0x16ae53[_0x38cbe8(0x316)]();}};Fe=Un([ue(0x0,a[_0x333065(0x3c1)]),ue(0x1,a[_0x333065(0x377)]),ue(0x2,a[_0x333065(0x466)]),ue(0x3,_[_0x333065(0x50b)]),ue(0x4,a[_0x333065(0x176)])],Fe);class $t extends a[_0x333065(0x475)]{constructor(){const _0x561a72=_0x333065;super(),u(this,_0x561a72(0x404)),this[_0x561a72(0x404)]=v['fromEvent'](window,'popstate')['pipe'](v[_0x561a72(0x500)](this[_0x561a72(0x3ec)]),v[_0x561a72(0x18a)](0x1),v[_0x561a72(0x516)](void 0x0));}[_0x333065(0x528)](_0x481208,_0x2a2311,_0x4e5b29=!0x1){const _0x21d16f=_0x333065,_0x398c85=new URL(window[_0x21d16f(0x4bb)]['href']);_0x398c85[_0x21d16f(0x540)][_0x21d16f(0x24c)](_0x481208,_0x2a2311),_0x4e5b29?window[_0x21d16f(0x301)]['replaceState']('','',_0x398c85[_0x21d16f(0x494)]()):window[_0x21d16f(0x301)][_0x21d16f(0x28b)]('','',_0x398c85[_0x21d16f(0x494)]());}[_0x333065(0x58d)](_0x411c57,_0x3bbc83=!0x1){const _0x3fc6b5=_0x333065,_0x37b091=new URL(window[_0x3fc6b5(0x4bb)]['href']);_0x37b091[_0x3fc6b5(0x540)]['delete'](_0x411c57),_0x3bbc83?window[_0x3fc6b5(0x301)][_0x3fc6b5(0x370)]('','',_0x37b091[_0x3fc6b5(0x494)]()):window[_0x3fc6b5(0x301)]['pushState']('','',_0x37b091[_0x3fc6b5(0x494)]());}['getParam'](_0x3411dc){const _0x29904a=_0x333065;var _0x5f3c35;return(_0x5f3c35=new URL(window[_0x29904a(0x4bb)][_0x29904a(0x2a9)])['searchParams']['get'](_0x3411dc))!=null?_0x5f3c35:void 0x0;}}var Ht=Object[_0x333065(0x2e3)],Pn=Object['getOwnPropertyDescriptor'],wn=(_0x30ab66,_0x479f15,_0x1b917b)=>_0x479f15 in _0x30ab66?Ht(_0x30ab66,_0x479f15,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b917b}):_0x30ab66[_0x479f15]=_0x1b917b,Nn=(_0xa8de70,_0x2cd41c,_0x5ebbf3,_0x29696d)=>{const _0x539730=_0x333065;for(var _0xd1e6ea=_0x29696d>0x1?void 0x0:_0x29696d?Pn(_0x2cd41c,_0x5ebbf3):_0x2cd41c,_0x9e900f=_0xa8de70[_0x539730(0x255)]-0x1,_0x2f06f3;_0x9e900f>=0x0;_0x9e900f--)(_0x2f06f3=_0xa8de70[_0x9e900f])&&(_0xd1e6ea=(_0x29696d?_0x2f06f3(_0x2cd41c,_0x5ebbf3,_0xd1e6ea):_0x2f06f3(_0xd1e6ea))||_0xd1e6ea);return _0x29696d&&_0xd1e6ea&&Ht(_0x2cd41c,_0x5ebbf3,_0xd1e6ea),_0xd1e6ea;},me=(_0x38130d,_0x1dbe32)=>(_0x5643bb,_0x5b2a6b)=>_0x1dbe32(_0x5643bb,_0x5b2a6b,_0x38130d),Mn=(_0x1d8f3d,_0x54085f,_0x5946dd)=>wn(_0x1d8f3d,_0x54085f+'',_0x5946dd);const An=_0x333065(0x4bf);exports[_0x333065(0x291)]=class extends a['Plugin']{constructor(_0x362374=rs,_0x525f03,_0x50d81e,_0x3cf978,_0x41ebcb){const _0x451eed=_0x333065;super(),this[_0x451eed(0x5a3)]=_0x362374,this[_0x451eed(0x566)]=_0x525f03,this[_0x451eed(0x191)]=_0x50d81e,this[_0x451eed(0x564)]=_0x3cf978,this[_0x451eed(0x446)]=_0x41ebcb;const {..._0xca91d9}=this[_0x451eed(0x5a3)];this['_configService'][_0x451eed(0x1e5)](L,_0xca91d9);}[_0x333065(0x25e)](){const _0x4de4f7=_0x333065;this['_registerDependencies'](),a[_0x4de4f7(0x1bb)](this[_0x4de4f7(0x564)],[[ne],[exports['DataLoaderController']],[Te]]);}[_0x333065(0x46f)](){const _0x5956c8=_0x333065;a[_0x5956c8(0x1bb)](this[_0x5956c8(0x564)],[[Ce]]);}['onRendered'](){const _0x24cb18=_0x333065;this[_0x24cb18(0x244)]();}['_registerDependencies'](){const _0x54661d=_0x333065;var _0x527ef7,_0x418b38,_0xfb9ab7,_0x139240;this[_0x54661d(0x564)][_0x54661d(0x438)](a[_0x54661d(0x4de)])&&this[_0x54661d(0x566)][_0x54661d(0x297)](_0x54661d(0x550),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0xa7837b=[[a[_0x54661d(0x4de)],{'useClass':Fe}],[exports[_0x54661d(0x418)]],[Je],[w[_0x54661d(0x37b)]],[Qe,{'useClass':$t}],[q],[exports[_0x54661d(0x3f9)]],[w[_0x54661d(0x345)]],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x418b38=(_0x527ef7=this[_0x54661d(0x5a3)])==null?void 0x0:_0x527ef7[_0x54661d(0x50f)])!=null?_0x418b38:exports[_0x54661d(0x1c0)]}],[w['IHTTPImplementation'],{'useClass':w[_0x54661d(0x39e)]}],[_[_0x54661d(0x36a)],{'useClass':exports[_0x54661d(0x58f)]}],[a[_0x54661d(0x36d)],{'useClass':exports[_0x54661d(0x4ce)]}],[j['IImageIoService'],{'useClass':exports[_0x54661d(0x4d4)]}],[exports[_0x54661d(0x225)]],[exports[_0x54661d(0x435)]],[exports[_0x54661d(0x2bd)]],[Ce],[ne]];(_0xfb9ab7=this[_0x54661d(0x5a3)])!=null&&_0xfb9ab7[_0x54661d(0x30a)]&&_0xa7837b[_0x54661d(0x2b7)]([Re,{'useClass':$s}]),_0xa7837b=a[_0x54661d(0x3ce)](_0xa7837b,(_0x139240=this[_0x54661d(0x5a3)])==null?void 0x0:_0x139240[_0x54661d(0x1dc)]),_0xa7837b[_0x54661d(0x1f8)](_0x18f5ee=>this[_0x54661d(0x564)][_0x54661d(0x440)](_0x18f5ee)),this[_0x54661d(0x3c5)]();}[_0x333065(0x244)](){const _0x2dc5e3=_0x333065;this[_0x2dc5e3(0x1c8)](this[_0x2dc5e3(0x191)][_0x2dc5e3(0x2b6)](a[_0x2dc5e3(0x298)][_0x2dc5e3(0x56f)],[Ve])),this[_0x2dc5e3(0x1c8)](this[_0x2dc5e3(0x191)][_0x2dc5e3(0x2b6)](a['UniverInstanceType'][_0x2dc5e3(0x42f)],[We]));}[_0x333065(0x3c5)](){const _0x1e3416=_0x333065;var _0x2e96a4,_0x2367f5;this[_0x1e3416(0x564)][_0x1e3416(0x3c0)](w[_0x1e3416(0x37b)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':w[_0x1e3416(0x1fa)]({'maxParallel':0x6})}),this[_0x1e3416(0x564)][_0x1e3416(0x3c0)](be),(_0x2e96a4=this[_0x1e3416(0x5a3)])!=null&&_0x2e96a4[_0x1e3416(0x439)]||this[_0x1e3416(0x564)][_0x1e3416(0x3c0)](exports['LocalCacheService'])[_0x1e3416(0x361)](),(_0x2367f5=this[_0x1e3416(0x5a3)])!=null&&_0x2367f5[_0x1e3416(0x1bf)]&&this[_0x1e3416(0x564)][_0x1e3416(0x3c0)](Ee),this[_0x1e3416(0x564)]['get'](exports[_0x1e3416(0x225)]),this['_injector'][_0x1e3416(0x438)](exports[_0x1e3416(0x2bd)])&&this[_0x1e3416(0x564)][_0x1e3416(0x3c0)](exports[_0x1e3416(0x2bd)]);}},Mn(exports[_0x333065(0x291)],_0x333065(0x239),An),exports[_0x333065(0x291)]=Nn([a[_0x333065(0x1d9)](_[_0x333065(0x4ed)]),me(0x1,a[_0x333065(0x176)]),me(0x2,D[_0x333065(0x42a)]),me(0x3,a[_0x333065(0x520)](a[_0x333065(0x347)])),me(0x4,a['IConfigService'])],exports[_0x333065(0x291)]),exports[_0x333065(0x219)]=jt,exports[_0x333065(0x351)]=Ct,exports['COLLAB_WEB_SOCKET_URL_KEY']=gt,exports[_0x333065(0x34e)]=U,exports[_0x333065(0x1bc)]=Lt,exports[_0x333065(0x2b9)]=Xe,exports[_0x333065(0x3d2)]=mt,exports['HEARTBEAT_TIMEOUT_KEY']=Ge,exports['ICollaborationSocketService']=Ke,exports['IURLService']=Qe,exports[_0x333065(0x55c)]=pt,exports[_0x333065(0x275)]=Et,exports[_0x333065(0x480)]=It,exports[_0x333065(0x4af)]=zt,exports[_0x333065(0x385)]=St,exports[_0x333065(0x5a2)]=vt,exports['SessionStatus']=H,exports[_0x333065(0x2a6)]=Pt,exports['WebURLService']=$t,exports['deserializeToCombResponse']=Rt,exports['serializeCombRequest']=Ot;
1
+ 'use strict';const _0x58f906=_0x31a9;(function(_0x4e1272,_0x4c8368){const _0x548146=_0x31a9,_0x484802=_0x4e1272();while(!![]){try{const _0x5538b8=-parseInt(_0x548146(0x488))/0x1+parseInt(_0x548146(0x215))/0x2*(-parseInt(_0x548146(0x185))/0x3)+-parseInt(_0x548146(0x471))/0x4+parseInt(_0x548146(0x1ec))/0x5*(parseInt(_0x548146(0x4ac))/0x6)+parseInt(_0x548146(0x49f))/0x7+parseInt(_0x548146(0x2c1))/0x8*(-parseInt(_0x548146(0x253))/0x9)+parseInt(_0x548146(0x555))/0xa;if(_0x5538b8===_0x4c8368)break;else _0x484802['push'](_0x484802['shift']());}catch(_0x55fde1){_0x484802['push'](_0x484802['shift']());}}}(_0x4c51,0x6da0e));var Ft=Object[_0x58f906(0x503)],Gt=(_0x51c320,_0x392b4b,_0x1736a2)=>_0x392b4b in _0x51c320?Ft(_0x51c320,_0x392b4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1736a2}):_0x51c320[_0x392b4b]=_0x1736a2,u=(_0x5ad0c2,_0x3b6f9f,_0x74c32b)=>Gt(_0x5ad0c2,typeof _0x3b6f9f!='symbol'?_0x3b6f9f+'':_0x3b6f9f,_0x74c32b);Object[_0x58f906(0x503)](exports,Symbol[_0x58f906(0x502)],{'value':_0x58f906(0x198)});const a=require(_0x58f906(0x2da)),v=require(_0x58f906(0x2f8)),E=require('rxjs/operators'),X=require(_0x58f906(0x4ba)),A=require(_0x58f906(0x1b0)),w=require(_0x58f906(0x358)),_=require('@univerjs-pro/collaboration'),Yt=require('@univerjs/telemetry'),N=require(_0x58f906(0x26d)),C=require(_0x58f906(0x4ec)),D=require(_0x58f906(0x19f)),se=require(_0x58f906(0x4d4)),j=require(_0x58f906(0x16f)),et=require(_0x58f906(0x448)),te=require(_0x58f906(0x37b)),P=require(_0x58f906(0x3c6)),Kt=require(_0x58f906(0x392)),Xt=require(_0x58f906(0x4b9)),St=_0x58f906(0x2f7),qt='/universer-api/snapshot',vt=_0x58f906(0x1df),zt=_0x58f906(0x4fe),Jt=0x7d0,gt='COLLAB_WEB_SOCKET_URL',Zt='ws://127.0.0.1:8000/universer-api/comb/connect',mt=_0x58f906(0x517),Qt=0x7530,Ge=_0x58f906(0x2d2),ft=0x4e20,es=0x4e20,It='RETRY_CONNECTING_MAX_COUNT',ts=0x3,pt=_0x58f906(0x404),ss=0x3e8,Ct=_0x58f906(0x312),is=_0x58f906(0x1c1),Et=_0x58f906(0x224),ns=_0x58f906(0x1a7);var bt=(_0x40a224=>(_0x40a224[_0x40a224[_0x58f906(0x507)]=0x0]='UNDEFINED',_0x40a224[_0x40a224['OK']=0x1]='OK',_0x40a224[_0x40a224[_0x58f906(0x4f2)]=0x2]=_0x58f906(0x4f2),_0x40a224[_0x40a224[_0x58f906(0x1d8)]=0x3]=_0x58f906(0x1d8),_0x40a224[_0x40a224[_0x58f906(0x4f8)]=0x4]='NOT_FOUND',_0x40a224[_0x40a224['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x40a224[_0x40a224[_0x58f906(0x157)]=0x6]=_0x58f906(0x157),_0x40a224[_0x40a224[_0x58f906(0x3f6)]=0x7]=_0x58f906(0x3f6),_0x40a224[_0x40a224[_0x58f906(0x2d4)]=0x8]=_0x58f906(0x2d4),_0x40a224[_0x40a224['COMPLETION_FINISHED']=0x9]=_0x58f906(0x34d),_0x40a224[_0x40a224[_0x58f906(0x37c)]=0x1389]=_0x58f906(0x37c),_0x40a224[_0x40a224[_0x58f906(0x45c)]=0x1771]=_0x58f906(0x45c),_0x40a224[_0x40a224[_0x58f906(0x374)]=0x1772]=_0x58f906(0x374),_0x40a224[_0x40a224[_0x58f906(0x203)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x40a224[_0x40a224[_0x58f906(0x544)]=0x1b59]=_0x58f906(0x544),_0x40a224[_0x40a224[_0x58f906(0x351)]=0x1b5a]=_0x58f906(0x351),_0x40a224[_0x40a224[_0x58f906(0x3ba)]=0x1b5b]=_0x58f906(0x3ba),_0x40a224[_0x40a224['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x58f906(0x394),_0x40a224[_0x40a224[_0x58f906(0x380)]=0x1b5d]=_0x58f906(0x380),_0x40a224[_0x40a224[_0x58f906(0x4bb)]=0x1f41]=_0x58f906(0x4bb),_0x40a224[_0x40a224[_0x58f906(0x413)]=0x2329]=_0x58f906(0x413),_0x40a224[_0x40a224['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x40a224[_0x40a224[_0x58f906(0x2a2)]=0x232b]=_0x58f906(0x2a2),_0x40a224[_0x40a224[_0x58f906(0x2b8)]=0x232c]=_0x58f906(0x2b8),_0x40a224[_0x40a224['LICENSE_DISTRO_REJECTED']=0x232d]=_0x58f906(0x51e),_0x40a224[_0x40a224['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x58f906(0x233),_0x40a224[_0x40a224['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x40a224[_0x40a224[_0x58f906(0x378)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x40a224[_0x40a224[_0x58f906(0x4a4)]=0x2714]=_0x58f906(0x4a4),_0x40a224[_0x40a224['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x40a224))(bt||{}),$=(_0x30748b=>(_0x30748b[_0x30748b[_0x58f906(0x3c0)]=0x0]='UNIVER_UNKNOWN',_0x30748b[_0x30748b[_0x58f906(0x368)]=0x1]=_0x58f906(0x368),_0x30748b[_0x30748b[_0x58f906(0x3d6)]=0x2]=_0x58f906(0x3d6),_0x30748b[_0x30748b[_0x58f906(0x4c2)]=0x3]=_0x58f906(0x4c2),_0x30748b[_0x30748b['UNIVER_PROJECT']=0x4]=_0x58f906(0x325),_0x30748b[_0x30748b[_0x58f906(0x2f2)]=-0x1]='UNRECOGNIZED',_0x30748b))($||{}),b=(_0x3cd6e3=>(_0x3cd6e3[_0x3cd6e3['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x3cd6e3[_0x3cd6e3[_0x58f906(0x4cb)]=0x1]=_0x58f906(0x4cb),_0x3cd6e3[_0x3cd6e3[_0x58f906(0x464)]=0x2]=_0x58f906(0x464),_0x3cd6e3[_0x3cd6e3['LEAVE']=0x3]=_0x58f906(0x3f2),_0x3cd6e3[_0x3cd6e3['INGEST']=0x4]=_0x58f906(0x15f),_0x3cd6e3[_0x3cd6e3[_0x58f906(0x1c4)]=0x5]=_0x58f906(0x1c4),_0x3cd6e3[_0x3cd6e3[_0x58f906(0x55a)]=0x6]=_0x58f906(0x55a),_0x3cd6e3[_0x3cd6e3[_0x58f906(0x2f2)]=-0x1]='UNRECOGNIZED',_0x3cd6e3))(b||{}),Ye=(_0x50dd3d=>(_0x50dd3d[_0x50dd3d[_0x58f906(0x1f0)]=0x0]=_0x58f906(0x1f0),_0x50dd3d[_0x50dd3d['OK']=0x1]='OK',_0x50dd3d[_0x50dd3d[_0x58f906(0x361)]=0x2]='FAIL',_0x50dd3d[_0x50dd3d[_0x58f906(0x2f2)]=-0x1]=_0x58f906(0x2f2),_0x50dd3d))(Ye||{}),Tt=(_0x2f0ff6=>(_0x2f0ff6[_0x2f0ff6[_0x58f906(0x1fa)]=0x0]='Undefined',_0x2f0ff6[_0x2f0ff6[_0x58f906(0x320)]=0x1]='HttpImport',_0x2f0ff6[_0x2f0ff6[_0x58f906(0x44b)]=0x2]='HttpExport',_0x2f0ff6[_0x2f0ff6[_0x58f906(0x33a)]=0x3]=_0x58f906(0x33a),_0x2f0ff6[_0x2f0ff6[_0x58f906(0x3c1)]=0x4]=_0x58f906(0x3c1),_0x2f0ff6[_0x2f0ff6[_0x58f906(0x2f2)]=-0x1]=_0x58f906(0x2f2),_0x2f0ff6))(Tt||{});const L='collaboration-client.config',rs={};function Rt(_0x260e45){const _0x349d55=_0x58f906;var _0x1530ce,_0x16e321,_0xb34bb0,_0x404b59;const _0x37741f=_0x260e45[_0x349d55(0x460)],_0x2e9c33=JSON[_0x349d55(0x307)](_0x37741f);switch(_0x2e9c33[_0x349d55(0x326)]){case b['HEARTBEAT']:case b[_0x349d55(0x4cb)]:{const _0x2dbade=_0x2e9c33[_0x349d55(0x15c)];return{..._0x2e9c33,'data':_0x2dbade,'cmd':_0x2e9c33[_0x349d55(0x326)]};}case b[_0x349d55(0x464)]:{const _0x70fe91=_0x2e9c33[_0x349d55(0x501)];return{..._0x2e9c33,'data':_0x70fe91,'cmd':_0x2e9c33[_0x349d55(0x326)]};}case b[_0x349d55(0x55a)]:{const _0x436d4d=_0x2e9c33[_0x349d55(0x1c5)];switch(_0x436d4d[_0x349d55(0x1e5)]){case _[_0x349d55(0x4e6)]['PERMISSION_REJ']:return{..._0x2e9c33,'data':{..._0x436d4d,'data':(_0x1530ce=_0x436d4d[_0x349d55(0x532)])==null?void 0x0:_0x1530ce['cs']},'cmd':_0x2e9c33['cmd']};case _[_0x349d55(0x4e6)][_0x349d55(0x412)]:return{..._0x2e9c33,'data':{..._0x436d4d,'data':(_0x16e321=_0x436d4d[_0x349d55(0x44a)])==null?void 0x0:_0x16e321['cs']},'cmd':_0x2e9c33[_0x349d55(0x326)]};case _[_0x349d55(0x4e6)][_0x349d55(0x1f9)]:return{..._0x2e9c33,'data':{..._0x436d4d,'data':(_0xb34bb0=_0x436d4d[_0x349d55(0x552)])==null?void 0x0:_0xb34bb0['cs']},'cmd':_0x2e9c33[_0x349d55(0x326)]};case _[_0x349d55(0x4e6)][_0x349d55(0x55e)]:return{..._0x2e9c33,'data':{..._0x436d4d,'data':(_0x404b59=_0x436d4d[_0x349d55(0x2b1)])==null?void 0x0:_0x404b59['cs']},'cmd':_0x2e9c33[_0x349d55(0x326)]};case _[_0x349d55(0x4e6)][_0x349d55(0x403)]:return{..._0x2e9c33,'data':{..._0x436d4d,'data':_0x436d4d['updateCursorEvent']},'cmd':_0x2e9c33['cmd']};case _[_0x349d55(0x4e6)][_0x349d55(0x357)]:return{..._0x2e9c33,'data':{..._0x436d4d,'data':_0x436d4d['joinEvent']},'cmd':_0x2e9c33[_0x349d55(0x326)]};case _['CollaborationEvent'][_0x349d55(0x44d)]:return{..._0x2e9c33,'data':{..._0x436d4d,'data':_0x436d4d['leaveEvent']},'cmd':_0x2e9c33[_0x349d55(0x326)]};case _[_0x349d55(0x4e6)][_0x349d55(0x1b5)]:return{..._0x2e9c33,'data':{..._0x436d4d,'data':_0x436d4d[_0x349d55(0x513)]},'cmd':_0x2e9c33[_0x349d55(0x326)]};case _[_0x349d55(0x4e6)][_0x349d55(0x2ad)]:case _[_0x349d55(0x4e6)][_0x349d55(0x22d)]:return{..._0x2e9c33,'data':{..._0x436d4d,'data':_0x436d4d[_0x349d55(0x42e)]},'cmd':_0x2e9c33['cmd']};case _[_0x349d55(0x4e6)][_0x349d55(0x540)]:return{..._0x2e9c33,'data':{..._0x436d4d,'data':_0x436d4d['liveShareNewHost']},'cmd':_0x2e9c33[_0x349d55(0x326)]};case _[_0x349d55(0x4e6)][_0x349d55(0x186)]:return{..._0x2e9c33,'data':_0x436d4d,'cmd':_0x2e9c33[_0x349d55(0x326)]};case _[_0x349d55(0x4e6)][_0x349d55(0x438)]:return{..._0x2e9c33,'data':{..._0x436d4d,'data':_0x436d4d['commentUpdateEvent']},'cmd':_0x2e9c33[_0x349d55(0x326)]};case _['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x2e9c33,'data':{..._0x436d4d,'data':_0x436d4d[_0x349d55(0x44f)]},'cmd':_0x2e9c33[_0x349d55(0x326)]};case _[_0x349d55(0x4e6)]['SHOULD_CLOSE_CONN']:return{..._0x2e9c33,'data':{..._0x436d4d,'data':_0x436d4d['shouldCloseConn']},'cmd':_0x2e9c33['cmd']};default:return _0x2e9c33;}}default:return _0x2e9c33;}}function Ot(_0x2ffd1f){const _0x1daacf=_0x58f906;switch(_0x2ffd1f['cmd']){case b[_0x1daacf(0x1c4)]:case b[_0x1daacf(0x4cb)]:return JSON['stringify']({'cmd':_0x2ffd1f[_0x1daacf(0x326)],'routeKey':_0x2ffd1f['routeKey']});case b[_0x1daacf(0x15f)]:{let _0x306d15;switch(_0x2ffd1f[_0x1daacf(0x460)][_0x1daacf(0x1e5)]){case _[_0x1daacf(0x4e6)][_0x1daacf(0x403)]:{_0x306d15={'eventID':_['CollaborationEvent'][_0x1daacf(0x403)],'updateCursorEvent':_0x2ffd1f[_0x1daacf(0x460)][_0x1daacf(0x460)]};break;}case _[_0x1daacf(0x4e6)][_0x1daacf(0x44d)]:{_0x306d15={'eventID':_[_0x1daacf(0x4e6)][_0x1daacf(0x44d)],'leaveEvent':_0x2ffd1f[_0x1daacf(0x460)][_0x1daacf(0x460)]};break;}case _['CollaborationEvent'][_0x1daacf(0x357)]:{_0x306d15={'eventID':_[_0x1daacf(0x4e6)][_0x1daacf(0x357)],'joinEvent':_0x2ffd1f[_0x1daacf(0x460)][_0x1daacf(0x460)]};break;}case _[_0x1daacf(0x4e6)][_0x1daacf(0x1b5)]:{_0x306d15={'eventID':_[_0x1daacf(0x4e6)][_0x1daacf(0x1b5)],'liveShareNewHost':_0x2ffd1f[_0x1daacf(0x460)][_0x1daacf(0x460)]};break;}case _['CollaborationEvent']['LIVESHARE_OPERATION']:{_0x306d15={'eventID':_[_0x1daacf(0x4e6)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x2ffd1f[_0x1daacf(0x460)][_0x1daacf(0x460)]};break;}case _['CollaborationEvent'][_0x1daacf(0x540)]:{_0x306d15={'eventID':_[_0x1daacf(0x4e6)][_0x1daacf(0x540)],'liveShareTerminate':_0x2ffd1f[_0x1daacf(0x460)][_0x1daacf(0x460)]};break;}case _[_0x1daacf(0x4e6)][_0x1daacf(0x463)]:{_0x306d15={'eventID':_[_0x1daacf(0x4e6)][_0x1daacf(0x463)],'liveShareRequestHost':_0x2ffd1f[_0x1daacf(0x460)][_0x1daacf(0x460)]};break;}case _[_0x1daacf(0x4e6)][_0x1daacf(0x2ad)]:{_0x306d15={'eventID':_['CollaborationEvent'][_0x1daacf(0x2ad)]};break;}default:_0x306d15={'eventID':_0x2ffd1f[_0x1daacf(0x460)]['eventID']};}return JSON[_0x1daacf(0x29f)]({'cmd':_0x2ffd1f['cmd'],'routeKey':_0x2ffd1f[_0x1daacf(0x259)],'collaMsg':_0x306d15});}case b[_0x1daacf(0x464)]:return JSON['stringify']({'cmd':_0x2ffd1f[_0x1daacf(0x326)],'routeKey':_0x2ffd1f['routeKey'],'joinReq':_0x2ffd1f[_0x1daacf(0x460)]});case b[_0x1daacf(0x3f2)]:return JSON[_0x1daacf(0x29f)]({'cmd':_0x2ffd1f[_0x1daacf(0x326)],'routeKey':_0x2ffd1f[_0x1daacf(0x259)],'leaveReq':_0x2ffd1f[_0x1daacf(0x460)]});default:throw new Error(_0x1daacf(0x299));}}var os=Object['defineProperty'],as=Object[_0x58f906(0x365)],cs=(_0x181acf,_0x5a6a57,_0x269ef7,_0x2d66ad)=>{for(var _0x1daa9a=_0x2d66ad>0x1?void 0x0:_0x2d66ad?as(_0x5a6a57,_0x269ef7):_0x5a6a57,_0x511b13=_0x181acf['length']-0x1,_0x109383;_0x511b13>=0x0;_0x511b13--)(_0x109383=_0x181acf[_0x511b13])&&(_0x1daa9a=(_0x2d66ad?_0x109383(_0x5a6a57,_0x269ef7,_0x1daa9a):_0x109383(_0x1daa9a))||_0x1daa9a);return _0x2d66ad&&_0x1daa9a&&os(_0x5a6a57,_0x269ef7,_0x1daa9a),_0x1daa9a;},ae=(_0x13f97b,_0x233a1b)=>(_0x3e6153,_0x24662b)=>_0x233a1b(_0x3e6153,_0x24662b,_0x13f97b);const Ke=a[_0x58f906(0x500)](_0x58f906(0x4af));function ls(_0xf44a05,_0xc4eef5,_0x3eae84){const _0x4724e2=_0x58f906;return _0xf44a05+'/'+_0xc4eef5+'/unit/'+_0x3eae84+_0x4724e2(0x509);}exports[_0x58f906(0x31b)]=class extends a['Disposable']{constructor(_0x904221,_0x2fc575,_0xddf940,_0x3fa952,_0xf831f5){const _0x19ff87=_0x58f906;super(),this['_http']=_0x904221,this[_0x19ff87(0x4b1)]=_0x2fc575,this[_0x19ff87(0x47d)]=_0xddf940,this[_0x19ff87(0x343)]=_0x3fa952,this[_0x19ff87(0x18b)]=_0xf831f5;}[_0x58f906(0x524)](_0x11f6b8){const _0xfe915f=_0x58f906,_0x402e87=this[_0xfe915f(0x4b1)]['createSocket'](_0x11f6b8);if(!_0x402e87)throw new Error(_0xfe915f(0x3db));const _0x1370a9=new a['DisposableCollection'](),_0x3688e0=new v[(_0xfe915f(0x208))]();_0x1370a9['add'](_0x402e87[_0xfe915f(0x345)][_0xfe915f(0x4b6)](_0x10c2db=>_0x3688e0[_0xfe915f(0x1e9)](_0x10c2db))),_0x1370a9[_0xfe915f(0x1f8)](a['toDisposable'](()=>_0x3688e0[_0xfe915f(0x335)]()));const _0x2d3868=new v['Subject']();_0x1370a9[_0xfe915f(0x1f8)](_0x402e87['error$'][_0xfe915f(0x4b6)](_0x51e19f=>_0x2d3868['next'](_0x51e19f))),_0x1370a9[_0xfe915f(0x1f8)](a[_0xfe915f(0x1c2)](()=>_0x2d3868[_0xfe915f(0x335)]()));const _0x25c415=new v[(_0xfe915f(0x208))]();_0x1370a9[_0xfe915f(0x1f8)](_0x402e87[_0xfe915f(0x30e)][_0xfe915f(0x4b6)](_0x7bd8af=>{const _0x6e49d5=_0xfe915f,_0x6d0e44=Rt(_0x7bd8af);_0x25c415[_0x6e49d5(0x1e9)](_0x6d0e44);})),_0x1370a9['add'](a[_0xfe915f(0x1c2)](()=>_0x25c415[_0xfe915f(0x335)]()));let _0x2b8a9;const _0x5121af=()=>{const _0x3eafa7=_0xfe915f;_0x2d3868[_0x3eafa7(0x1e9)](new Event(_0x3eafa7(0x372))),_0x3688e0[_0x3eafa7(0x1e9)](new CloseEvent(_0x3eafa7(0x372))),_0x2b8a9[_0x3eafa7(0x18d)]();};return _0x2b8a9={'memberID':'','close$':_0x3688e0[_0xfe915f(0x41d)](),'error$':_0x2d3868[_0xfe915f(0x41d)](),'open$':_0x402e87[_0xfe915f(0x35c)],'message$':_0x25c415[_0xfe915f(0x41d)](),'send':_0x59beb9=>{const _0x4583f5=_0xfe915f;if(_0x59beb9[_0x4583f5(0x326)]===b[_0x4583f5(0x15f)]){if(_0x59beb9[_0x4583f5(0x460)][_0x4583f5(0x1e5)]===_[_0x4583f5(0x4e6)][_0x4583f5(0x353)]){this['_submitChangeset'](_0x2b8a9,_0x59beb9[_0x4583f5(0x460)])[_0x4583f5(0x235)](_0x2582e3=>{const _0x31348b=_0x4583f5;this[_0x31348b(0x343)][_0x31348b(0x1cc)](_0x2582e3),_0x5121af();});return;}if(_0x59beb9[_0x4583f5(0x460)][_0x4583f5(0x1e5)]===_[_0x4583f5(0x4e6)]['FETCH_MISSING']){const _0x8e12dd=_0x59beb9['data'];this[_0x4583f5(0x238)](_0x8e12dd)[_0x4583f5(0x182)](_0x543a72=>{const _0x481032=_0x4583f5;_0x25c415['next']({'cmd':b[_0x481032(0x55a)],'code':Ye['OK'],'routeKey':_0x8e12dd['data'][_0x481032(0x168)],'routeType':'','data':{'eventID':_[_0x481032(0x4e6)][_0x481032(0x3c8)],'data':{'changesets':_0x543a72}}});})['catch'](_0x5d0c3e=>{const _0x196ecb=_0x4583f5;this['_logService'][_0x196ecb(0x1cc)](_0x5d0c3e),_0x5121af();});return;}}_0x402e87[_0x4583f5(0x15a)](Ot(_0x59beb9));},'close':()=>{const _0xdb398d=_0xfe915f;_0x402e87[_0xdb398d(0x18d)](),_0x1370a9[_0xdb398d(0x45f)]();}},_0x2b8a9;}async[_0x58f906(0x390)](_0x5ce59d,_0x44098c){const _0x34df7a=_0x58f906;var _0x422eaa,_0x256876;const {unitType:_0x46cc0b,unitID:_0x220644,changeset:_0x5b55c5}=_0x44098c[_0x34df7a(0x460)],_0x3db18b={'unitID':_0x220644,'memberID':_0x5ce59d[_0x34df7a(0x52f)],'type':_0x46cc0b,'changeset':_['parseChangesetToProtocol'](_0x5b55c5)},_0x459bf2=this['_configService'][_0x34df7a(0x2bc)](Ct),_0xda622e=this[_0x34df7a(0x47d)][_0x34df7a(0x2bc)](L),_0x4006a9=ls((_0x256876=(_0x422eaa=_0xda622e==null?void 0x0:_0xda622e[_0x34df7a(0x30b)])!=null?_0x422eaa:_0x459bf2)!=null?_0x256876:is,_0x46cc0b,_0x220644);try{await this[_0x34df7a(0x3de)][_0x34df7a(0x46a)](_0x4006a9,{'body':_0x3db18b});}catch(_0x3f64a9){throw this[_0x34df7a(0x343)][_0x34df7a(0x1cc)](_0x34df7a(0x428),'submit\x20changeset\x20error!'),_0x3f64a9;}}async[_0x58f906(0x238)](_0x5acf8d){const _0x787e27=_0x58f906,{unitID:_0x224033,from:_0x5b8fe2,to:_0xaf1bf8,unitType:_0x306238}=_0x5acf8d[_0x787e27(0x460)];return(await this[_0x787e27(0x18b)][_0x787e27(0x4a9)]({'metadata':void 0x0},{'unitID':_0x224033,'type':_0x306238,'from':_0x5b8fe2,'to':_0xaf1bf8}))['changesets'];}},exports['CollaborationSocketService']=cs([ae(0x0,a[_0x58f906(0x200)](w[_0x58f906(0x33f)])),ae(0x1,a['Inject'](w[_0x58f906(0x54e)])),ae(0x2,a['IConfigService']),ae(0x3,a[_0x58f906(0x3f7)]),ae(0x4,_[_0x58f906(0x44e)])],exports[_0x58f906(0x31b)]);const hs=_0x58f906(0x483);function _s(_0x4d28be){const _0x1a7338=_0x58f906;return JSON['stringify'](_0x4d28be)[_0x1a7338(0x4b8)];}class Xe{constructor(){const _0x46a61e=_0x58f906;u(this,_0x46a61e(0x466),new v[(_0x46a61e(0x208))]()),u(this,_0x46a61e(0x263),this[_0x46a61e(0x466)][_0x46a61e(0x41d)]());}[_0x58f906(0x4e3)](_0x201033){const _0xb52a41=_0x58f906;this['_commentUpdate$'][_0xb52a41(0x1e9)](_0x201033);}}var us=Object['defineProperty'],ds=Object[_0x58f906(0x365)],Ss=(_0x413934,_0x516de1,_0x5143aa,_0x29decf)=>{const _0x2de7bd=_0x58f906;for(var _0x2edcfa=_0x29decf>0x1?void 0x0:_0x29decf?ds(_0x516de1,_0x5143aa):_0x516de1,_0x1258b8=_0x413934[_0x2de7bd(0x4b8)]-0x1,_0x295713;_0x1258b8>=0x0;_0x1258b8--)(_0x295713=_0x413934[_0x1258b8])&&(_0x2edcfa=(_0x29decf?_0x295713(_0x516de1,_0x5143aa,_0x2edcfa):_0x295713(_0x2edcfa))||_0x2edcfa);return _0x29decf&&_0x2edcfa&&us(_0x516de1,_0x5143aa,_0x2edcfa),_0x2edcfa;},tt=(_0x92a4cd,_0x5f59a8)=>(_0x180646,_0x32e43e)=>_0x5f59a8(_0x180646,_0x32e43e,_0x92a4cd);let q=class extends a[_0x58f906(0x279)]{constructor(_0x41462e,_0x2947d7){const _0x3b564f=_0x58f906;super(),u(this,_0x3b564f(0x504),new Map()),(this[_0x3b564f(0x1c7)]=_0x41462e,this['_userManagerService']=_0x2947d7,this['disposeWithMe'](a['toDisposable'](v[_0x3b564f(0x386)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3b564f(0x3d5)](E['map'](_0x4d4166=>_0x4d4166['getUnitId']())),this[_0x3b564f(0x1c7)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_DOC'])['pipe'](E[_0x3b564f(0x50a)](_0x1aa81f=>_0x1aa81f['getUnitId']())),this[_0x3b564f(0x1c7)]['getTypeOfUnitDisposed$'](a[_0x3b564f(0x23d)][_0x3b564f(0x4c2)])[_0x3b564f(0x3d5)](E[_0x3b564f(0x50a)](_0x150b07=>_0x150b07[_0x3b564f(0x56a)]())))['subscribe'](_0x1c17f4=>this[_0x3b564f(0x393)](_0x1c17f4)))));}[_0x58f906(0x3d1)](_0x4166e5){const _0x3a3af4=_0x58f906;this[_0x3a3af4(0x376)][_0x3a3af4(0x3d1)](_0x4166e5);}[_0x58f906(0x24d)](){const _0xe53ac9=_0x58f906;return this[_0xe53ac9(0x376)][_0xe53ac9(0x24d)]();}[_0x58f906(0x363)](_0x10d4b6,_0x5a7ffa){const _0x537700=_0x58f906;let _0x26e018=this['_roomMembers'][_0x537700(0x406)](_0x10d4b6);_0x26e018||(_0x26e018=new vs(),this[_0x537700(0x504)][_0x537700(0x473)](_0x10d4b6,_0x26e018)),_0x26e018[_0x537700(0x363)](_0x5a7ffa);}[_0x58f906(0x439)](_0xff98c5,_0x5d28fc){const _0x19e0c7=_0x58f906,_0x3a8ba0=this[_0x19e0c7(0x504)][_0x19e0c7(0x406)](_0xff98c5);_0x3a8ba0&&_0x3a8ba0[_0x19e0c7(0x439)](_0x5d28fc);}[_0x58f906(0x272)](_0xfb92f8){const _0x22abfd=_0x58f906;return this['_roomMembers'][_0x22abfd(0x406)](_0xfb92f8);}[_0x58f906(0x2c6)](_0x54c5b0,_0x552790){const _0x1ce986=_0x58f906,_0x4c67cb=this[_0x1ce986(0x504)][_0x1ce986(0x406)](_0x54c5b0);if(_0x4c67cb)return _0x4c67cb[_0x1ce986(0x2c6)](_0x552790);}[_0x58f906(0x393)](_0x56d622){const _0x3d73ec=_0x58f906,_0x5e61c8=this[_0x3d73ec(0x504)]['get'](_0x56d622);_0x5e61c8&&(_0x5e61c8[_0x3d73ec(0x45f)](),this['_roomMembers']['delete'](_0x56d622));}['dispose'](){const _0x29acb3=_0x58f906;this['_roomMembers'][_0x29acb3(0x18c)](_0x2814e1=>_0x2814e1['dispose']()),this[_0x29acb3(0x504)][_0x29acb3(0x418)]();}};q=Ss([tt(0x0,a['IUniverInstanceService']),tt(0x1,a[_0x58f906(0x200)](a[_0x58f906(0x490)]))],q);class vs extends a[_0x58f906(0x279)]{constructor(){const _0x5c65a6=_0x58f906;super(...arguments),u(this,_0x5c65a6(0x2b7),new Map());}['dispose'](){this['_members']['clear']();}[_0x58f906(0x363)](_0x65e225){const _0x27e92f=_0x58f906;this[_0x27e92f(0x2b7)][_0x27e92f(0x473)](_0x65e225[_0x27e92f(0x52f)],_0x65e225);}['removeMember'](_0xc1f71){const _0x19da1a=_0x58f906;this[_0x19da1a(0x2b7)]['delete'](_0xc1f71);}[_0x58f906(0x2c6)](_0x5f059e){const _0x5e1292=_0x58f906;return this[_0x5e1292(0x2b7)][_0x5e1292(0x406)](_0x5f059e);}}var gs=Object[_0x58f906(0x503)],ms=Object[_0x58f906(0x365)],fs=(_0x3a04e0,_0x1e654e,_0x59b8df,_0x2fa4ea)=>{const _0x4018fb=_0x58f906;for(var _0x416f84=_0x2fa4ea>0x1?void 0x0:_0x2fa4ea?ms(_0x1e654e,_0x59b8df):_0x1e654e,_0x30dfed=_0x3a04e0[_0x4018fb(0x4b8)]-0x1,_0x57e496;_0x30dfed>=0x0;_0x30dfed--)(_0x57e496=_0x3a04e0[_0x30dfed])&&(_0x416f84=(_0x2fa4ea?_0x57e496(_0x1e654e,_0x59b8df,_0x416f84):_0x57e496(_0x416f84))||_0x416f84);return _0x2fa4ea&&_0x416f84&&gs(_0x1e654e,_0x59b8df,_0x416f84),_0x416f84;},V=(_0x38c562,_0x3d0930)=>(_0x3061a7,_0x48c61a)=>_0x3d0930(_0x3061a7,_0x48c61a,_0x38c562),H=(_0x58b896=>(_0x58b896[_0x58b896['IDLE']=0x0]=_0x58f906(0x53f),_0x58b896[_0x58b896[_0x58f906(0x465)]=0x1]=_0x58f906(0x465),_0x58b896[_0x58b896['OFFLINE']=0x2]='OFFLINE',_0x58b896[_0x58b896[_0x58f906(0x415)]=0x3]='ONLINE',_0x58b896))(H||{});exports['CollaborationSession']=class extends a[_0x58f906(0x3d0)]{constructor(_0xc1adb9,_0x11a204,_0x489cd9,_0x4c9ce7,_0x217c0f,_0x6dc4e8,_0x55ba34,_0x4840e0,_0x397dcb,_0x28d653){const _0x2587e6=_0x58f906;super(),u(this,_0x2587e6(0x333),new v[(_0x2587e6(0x379))](0x0)),u(this,_0x2587e6(0x2c3),this[_0x2587e6(0x333)][_0x2587e6(0x41d)]()),u(this,_0x2587e6(0x442),new v[(_0x2587e6(0x208))]()),u(this,_0x2587e6(0x191),this[_0x2587e6(0x442)][_0x2587e6(0x41d)]()),u(this,_0x2587e6(0x558)),u(this,_0x2587e6(0x1da)),u(this,_0x2587e6(0x576)),u(this,_0x2587e6(0x454),!0x1),u(this,'_telemetryInfo',null),(this[_0x2587e6(0x317)]=_0xc1adb9,this[_0x2587e6(0x343)]=_0x489cd9,this[_0x2587e6(0x4e4)]=_0x4c9ce7,this['_messageService']=_0x217c0f,this[_0x2587e6(0x47d)]=_0x6dc4e8,this[_0x2587e6(0x3ad)]=_0x55ba34,this[_0x2587e6(0x4bd)]=_0x4840e0,this[_0x2587e6(0x3af)]=_0x397dcb,this['_telemetryService']=_0x28d653,this[_0x2587e6(0x454)]=!!this[_0x2587e6(0x3e4)],_0x11a204[_0x2587e6(0x3d5)](v[_0x2587e6(0x230)](this[_0x2587e6(0x40a)]))[_0x2587e6(0x4b6)](_0xa2c73c=>{const _0x552c38=_0x2587e6;var _0x51b293;typeof _0xa2c73c>'u'||(this[_0x552c38(0x558)]=_0xa2c73c,_0xa2c73c?(this['_joinRoom'](_0xa2c73c),this[_0x552c38(0x1da)]=_0xa2c73c[_0x552c38(0x30e)]['subscribe'](_0x1233ce=>{const _0x4931ae=_0x552c38;_0x1233ce[_0x4931ae(0x259)]===this[_0x4931ae(0x317)]&&this[_0x4931ae(0x3ed)](_0x1233ce);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x552c38(0x333)][_0x552c38(0x1e9)](0x2),(_0x51b293=this[_0x552c38(0x1da)])==null||_0x51b293['unsubscribe'](),this[_0x552c38(0x1da)]=null));}),this['disposeWithMe'](this[_0x2587e6(0x4e4)]['registerOnClose'](()=>{const _0x223dd7=_0x2587e6;var _0x3d67c4;(_0x3d67c4=this[_0x223dd7(0x558)])==null||_0x3d67c4[_0x223dd7(0x15a)]({'cmd':b[_0x223dd7(0x3f2)],'data':{'roomID':this[_0x223dd7(0x317)]}});})));}get['sessionStatus'](){const _0x7ebbfd=_0x58f906;return this[_0x7ebbfd(0x333)][_0x7ebbfd(0x328)]();}[_0x58f906(0x2ca)](){const _0x159a6a=_0x58f906;var _0x16bccf,_0x4329a5;return(_0x4329a5=(_0x16bccf=this[_0x159a6a(0x558)])==null?void 0x0:_0x16bccf[_0x159a6a(0x52f)])!=null?_0x4329a5:null;}[_0x58f906(0x45f)](){const _0xebab94=_0x58f906;super['dispose'](),this[_0xebab94(0x40a)][_0xebab94(0x1e9)](),this['dispose$']['complete']();}['close'](){const _0x1ad98e=_0x58f906;var _0x8d0f35,_0x471798;this[_0x1ad98e(0x531)](),(_0x8d0f35=this[_0x1ad98e(0x558)])==null||_0x8d0f35[_0x1ad98e(0x15a)]({'cmd':b[_0x1ad98e(0x3f2)],'data':{'roomID':this['_unitID']}}),(_0x471798=this[_0x1ad98e(0x558)])==null||_0x471798['close'](),this[_0x1ad98e(0x442)][_0x1ad98e(0x335)](),this[_0x1ad98e(0x333)][_0x1ad98e(0x335)](),this[_0x1ad98e(0x45f)]();}[_0x58f906(0x3ed)](_0x4db6c4){const _0x453136=_0x58f906;_0x4db6c4[_0x453136(0x326)]===b[_0x453136(0x464)]?this[_0x453136(0x3eb)](_0x4db6c4):_0x4db6c4[_0x453136(0x326)]===b[_0x453136(0x55a)]&&this[_0x453136(0x3ab)](_0x4db6c4);}[_0x58f906(0x366)](_0x1d0580){const _0x40771d=_0x58f906;this[_0x40771d(0x333)][_0x40771d(0x1e9)](0x1),_0x1d0580[_0x40771d(0x15a)]({'cmd':b[_0x40771d(0x464)],'routeKey':this[_0x40771d(0x317)],'routeType':'','data':{'rooms':[{'roomID':this[_0x40771d(0x317)]}]}});}['_onJoinRoomEvent'](_0x1c3d23){const _0x486581=_0x58f906;var _0x2873e5;if(_0x1c3d23[_0x486581(0x264)]===Ye[_0x486581(0x361)]){this['_messageService'][_0x486581(0x246)]({'type':X[_0x486581(0x51a)]['Warning'],'content':this[_0x486581(0x3ad)]['t'](_0x486581(0x447))}),this[_0x486581(0x333)]['next'](0x2);return;}this[_0x486581(0x333)][_0x486581(0x1e9)](0x3);const _0x676e10=(_0x2873e5=_0x1c3d23['data'][_0x486581(0x391)][this[_0x486581(0x317)]])==null?void 0x0:_0x2873e5[_0x486581(0x274)];_0x676e10&&_0x676e10[_0x486581(0x18c)](_0x2f83b2=>this['_memberService'][_0x486581(0x363)](this[_0x486581(0x317)],_0x2f83b2));}[_0x58f906(0x3ab)](_0x188ed9){const _0xa80d7d=_0x58f906;try{const _0x3b4580=_0x188ed9['data'];switch(_0x3b4580[_0xa80d7d(0x1e5)]){case _[_0xa80d7d(0x4e6)][_0xa80d7d(0x357)]:this[_0xa80d7d(0x2cb)](_0x3b4580),this[_0xa80d7d(0x442)][_0xa80d7d(0x1e9)](_0x3b4580);break;case _['CollaborationEvent'][_0xa80d7d(0x44d)]:this[_0xa80d7d(0x34c)](_0x3b4580),this[_0xa80d7d(0x442)][_0xa80d7d(0x1e9)](_0x3b4580);break;case _[_0xa80d7d(0x4e6)][_0xa80d7d(0x412)]:this[_0xa80d7d(0x346)](),this[_0xa80d7d(0x255)](),this[_0xa80d7d(0x442)][_0xa80d7d(0x1e9)](_0x3b4580);break;case _[_0xa80d7d(0x4e6)][_0xa80d7d(0x186)]:this[_0xa80d7d(0x343)][_0xa80d7d(0x1cc)](_0xa80d7d(0x19e)+JSON[_0xa80d7d(0x29f)](_0x3b4580)),this[_0xa80d7d(0x442)][_0xa80d7d(0x1e9)](_0x3b4580);break;case _[_0xa80d7d(0x4e6)][_0xa80d7d(0x438)]:this[_0xa80d7d(0x3af)][_0xa80d7d(0x4e3)](_0x3b4580[_0xa80d7d(0x460)]),this[_0xa80d7d(0x442)][_0xa80d7d(0x1e9)](_0x3b4580);break;default:this['_event$'][_0xa80d7d(0x1e9)](_0x3b4580);}}catch(_0x46743d){this[_0xa80d7d(0x343)][_0xa80d7d(0x1cc)](_0x46743d,_0x188ed9);}}['_onUserJoin'](_0x5de871){const _0x16d981=_0x58f906;this[_0x16d981(0x4bd)][_0x16d981(0x363)](this[_0x16d981(0x317)],_0x5de871[_0x16d981(0x460)]);}[_0x58f906(0x34c)](_0x22b48d){const _0x20edc1=_0x58f906;this[_0x20edc1(0x4bd)][_0x20edc1(0x439)](this[_0x20edc1(0x317)],_0x22b48d[_0x20edc1(0x460)][_0x20edc1(0x52f)]);}async[_0x58f906(0x15a)](_0x14a6ee,_0x44f4fb){const _0x36ef84=_0x58f906;if(this[_0x36ef84(0x1ea)]!==0x3||!this[_0x36ef84(0x558)])throw new Error(_0x36ef84(0x2e9));try{_0x14a6ee[_0x36ef84(0x1e5)]===_['CollaborationEvent'][_0x36ef84(0x353)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x36ef84(0x43c)](_0x14a6ee)),this[_0x36ef84(0x558)][_0x36ef84(0x15a)]({'cmd':b[_0x36ef84(0x15f)],'routeKey':_0x44f4fb,'routeType':'','data':_0x14a6ee});}catch(_0x2f611c){this['_logService'][_0x36ef84(0x1cc)](_0x2f611c);}}[_0x58f906(0x427)](){const _0x2bcdec=_0x58f906;var _0x36961c;this[_0x2bcdec(0x576)]=window[_0x2bcdec(0x3ce)](()=>{const _0x3d3d16=_0x2bcdec;this[_0x3d3d16(0x576)]=null,this[_0x3d3d16(0x205)]['show']({'type':X[_0x3d3d16(0x51a)]['Error'],'content':this[_0x3d3d16(0x3ad)]['t'](_0x3d3d16(0x39c))});},(_0x36961c=this[_0x2bcdec(0x47d)][_0x2bcdec(0x2bc)](Ge))!=null?_0x36961c:ft);}[_0x58f906(0x255)](){const _0x13d568=_0x58f906;this[_0x13d568(0x576)]&&(clearTimeout(this[_0x13d568(0x576)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x56e3cf){const _0x5e75dd=_0x58f906;if(!this[_0x5e75dd(0x454)])return;const {data:_0x44d356}=_0x56e3cf,{unitID:_0x29c634,changeset:_0x217661}=_0x44d356,{mutations:_0x1cf3a0,type:_0x2d6646}=_0x217661;this[_0x5e75dd(0x183)]={'unitId':_0x29c634,'type':_0x2d6646,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_s(_0x1cf3a0)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x1c6f18=_0x58f906;if(this[_0x1c6f18(0x454)]){if(!this['_telemetryInfo']){this['_logService'][_0x1c6f18(0x1cc)](_0x1c6f18(0x428),_0x1c6f18(0x249));return;}this['_telemetryInfo'][_0x1c6f18(0x377)]=performance[_0x1c6f18(0x155)](),this[_0x1c6f18(0x183)][_0x1c6f18(0x1d0)]=this[_0x1c6f18(0x183)][_0x1c6f18(0x377)]-this['_telemetryInfo'][_0x1c6f18(0x3d3)],this[_0x1c6f18(0x3e4)][_0x1c6f18(0x1d3)](hs,this[_0x1c6f18(0x183)]),this['_telemetryInfo']=null;}}[_0x58f906(0x531)](){const _0x4e691b=_0x58f906;this[_0x4e691b(0x183)]=null;}},exports[_0x58f906(0x3c5)]=fs([V(0x2,a[_0x58f906(0x3f7)]),V(0x3,A[_0x58f906(0x222)]),V(0x4,A[_0x58f906(0x54d)]),V(0x5,a[_0x58f906(0x304)]),V(0x6,a[_0x58f906(0x200)](a[_0x58f906(0x36a)])),V(0x7,a['Inject'](q)),V(0x8,a[_0x58f906(0x200)](Xe)),V(0x9,a[_0x58f906(0x2d6)](Yt['ITelemetryService']))],exports[_0x58f906(0x3c5)]);var Is=Object[_0x58f906(0x503)],ps=Object['getOwnPropertyDescriptor'],Cs=(_0x7dd4b3,_0x52c544,_0x5f24d0,_0x555806)=>{const _0x3f1534=_0x58f906;for(var _0x3d7130=_0x555806>0x1?void 0x0:_0x555806?ps(_0x52c544,_0x5f24d0):_0x52c544,_0x4daf94=_0x7dd4b3[_0x3f1534(0x4b8)]-0x1,_0x562ece;_0x4daf94>=0x0;_0x4daf94--)(_0x562ece=_0x7dd4b3[_0x4daf94])&&(_0x3d7130=(_0x555806?_0x562ece(_0x52c544,_0x5f24d0,_0x3d7130):_0x562ece(_0x3d7130))||_0x3d7130);return _0x555806&&_0x3d7130&&Is(_0x52c544,_0x5f24d0,_0x3d7130),_0x3d7130;},Z=(_0x37bb6a,_0x4a411a)=>(_0x2ad1ce,_0x48d87e)=>_0x4a411a(_0x2ad1ce,_0x48d87e,_0x37bb6a);exports[_0x58f906(0x369)]=class extends a[_0x58f906(0x279)]{constructor(_0x3ac2b4,_0x827c76,_0x562d28,_0x409bce,_0x3f6ed2,_0x57f58b){const _0x44bd38=_0x58f906;super(),u(this,'_socket$',new v[(_0x44bd38(0x379))](void 0x0)),u(this,_0x44bd38(0x4c6),this[_0x44bd38(0x449)]['asObservable']()),u(this,_0x44bd38(0x2d0),null),u(this,_0x44bd38(0x2e8),new Map()),u(this,_0x44bd38(0x20d),new v[(_0x44bd38(0x379))](H[_0x44bd38(0x53f)])),u(this,'status$',this[_0x44bd38(0x20d)]['asObservable']()),u(this,'_socketReady',!0x1),u(this,'_retryConnectingTimer'),u(this,_0x44bd38(0x4cd),0x0),u(this,_0x44bd38(0x27f)),u(this,_0x44bd38(0x350)),(this[_0x44bd38(0x375)]=_0x3ac2b4,this[_0x44bd38(0x3ad)]=_0x827c76,this[_0x44bd38(0x205)]=_0x562d28,this['_logService']=_0x409bce,this[_0x44bd38(0x47d)]=_0x3f6ed2,this[_0x44bd38(0x522)]=_0x57f58b,this[_0x44bd38(0x396)]());}get[_0x58f906(0x558)](){const _0xfb2157=_0x58f906;return this[_0xfb2157(0x449)][_0xfb2157(0x328)]();}[_0x58f906(0x396)](){const _0x5295b4=_0x58f906;this[_0x5295b4(0x1fb)](),this['_listenToOnlineEvent']();}[_0x58f906(0x45f)](){const _0x290232=_0x58f906;super[_0x290232(0x45f)](),this[_0x290232(0x2e8)]['forEach'](_0x225803=>_0x225803[_0x290232(0x45f)]()),this[_0x290232(0x2e8)][_0x290232(0x418)](),this[_0x290232(0x20d)][_0x290232(0x335)]();}async['requireSession'](_0x2b6cd9){const _0x324fb4=_0x58f906;if(this[_0x324fb4(0x2e8)]['has'](_0x2b6cd9))return this['_sessions'][_0x324fb4(0x406)](_0x2b6cd9);this['_tryEnsureSocket']();const _0x434337=this[_0x324fb4(0x375)]['createInstance'](exports[_0x324fb4(0x3c5)],_0x2b6cd9,this[_0x324fb4(0x449)]['asObservable']());return this[_0x324fb4(0x2e8)]['set'](_0x2b6cd9,_0x434337),_0x434337;}[_0x58f906(0x29d)](_0x4069e0){const _0x80f36a=_0x58f906;var _0x206dda;const _0x595956=this[_0x80f36a(0x2e8)][_0x80f36a(0x406)](_0x4069e0);_0x595956&&(this[_0x80f36a(0x2e8)][_0x80f36a(0x2d7)](_0x4069e0),_0x595956[_0x80f36a(0x18d)]()),this[_0x80f36a(0x2e8)][_0x80f36a(0x2c5)]||(_0x206dda=this[_0x80f36a(0x558)])==null||_0x206dda[_0x80f36a(0x18d)]();}[_0x58f906(0x3d4)](){const _0x27ae60=_0x58f906;this[_0x27ae60(0x4cd)]=0x0,this[_0x27ae60(0x158)]!=null&&(clearTimeout(this[_0x27ae60(0x158)]),this[_0x27ae60(0x158)]=null),this[_0x27ae60(0x25e)]();}[_0x58f906(0x31a)](){const _0x1ca0f1=_0x58f906;var _0x36c081,_0x42ba40;const _0x202692=this[_0x1ca0f1(0x47d)]['getConfig'](gt),_0x38b81c=this[_0x1ca0f1(0x47d)]['getConfig'](L),_0xc0fe6c=(_0x42ba40=(_0x36c081=_0x38b81c==null?void 0x0:_0x38b81c['collabWebSocketUrl'])!=null?_0x36c081:_0x202692)!=null?_0x42ba40:Zt,_0x35158c=this[_0x1ca0f1(0x522)][_0x1ca0f1(0x524)](_0xc0fe6c);return this[_0x1ca0f1(0x2d0)]=_0x35158c,_0x35158c;}[_0x58f906(0x1b1)](){const _0x18c2e7=_0x58f906;var _0x5aaf96,_0x360f2d;try{const _0x374f7a=(_0x360f2d=(_0x5aaf96=this[_0x18c2e7(0x558)])!=null?_0x5aaf96:this[_0x18c2e7(0x2d0)])!=null?_0x360f2d:this[_0x18c2e7(0x31a)]();if(_0x374f7a){const _0x60a226=_0x374f7a[_0x18c2e7(0x15a)];_0x374f7a[_0x18c2e7(0x15a)]=_0x7e9dcc=>(this[_0x18c2e7(0x43d)](),_0x60a226[_0x18c2e7(0x1a3)](_0x374f7a,[_0x7e9dcc])),_0x374f7a[_0x18c2e7(0x30e)][_0x18c2e7(0x4b6)](_0x4c5ffc=>this['_onMessage'](_0x374f7a,_0x4c5ffc)),_0x374f7a[_0x18c2e7(0x4be)]['pipe'](E[_0x18c2e7(0x34f)](0x1))['subscribe'](_0x2eeee7=>this[_0x18c2e7(0x343)][_0x18c2e7(0x1cc)](_0x18c2e7(0x568),_0x2eeee7)),_0x374f7a[_0x18c2e7(0x35c)][_0x18c2e7(0x3d5)](E[_0x18c2e7(0x34f)](0x1))['subscribe'](()=>{const _0x1f7965=_0x18c2e7;this[_0x1f7965(0x22b)](_0x374f7a);}),_0x374f7a['close$'][_0x18c2e7(0x3d5)](E['take'](0x1))[_0x18c2e7(0x4b6)](_0x5149c6=>{const _0x37808a=_0x18c2e7;this[_0x37808a(0x343)][_0x37808a(0x1e7)](_0x37808a(0x1ba),_0x37808a(0x399),_0x5149c6),this[_0x37808a(0x313)]();});}}catch(_0x33633f){this['_logService']['error'](_0x33633f),this[_0x18c2e7(0x313)]();}}[_0x58f906(0x22b)](_0x1587b5){const _0xac3ee4=_0x58f906;this[_0xac3ee4(0x343)]['debug'](_0xac3ee4(0x1ba),_0xac3ee4(0x3be)),_0x1587b5[_0xac3ee4(0x15a)]({'cmd':b[_0xac3ee4(0x4cb)]}),this[_0xac3ee4(0x43d)]();}[_0x58f906(0x1fb)](){const _0x15cecb=_0x58f906;window[_0x15cecb(0x4d0)](_0x15cecb(0x2ea),()=>this[_0x15cecb(0x2fb)]());}[_0x58f906(0x2fb)](){const _0x710c0d=_0x58f906;this['_socketReady']=!0x1,this['_candidateSocket']=null,this[_0x710c0d(0x20d)][_0x710c0d(0x1e9)](H[_0x710c0d(0x55b)]),this[_0x710c0d(0x449)]['next'](null),this['_clearTimeoutTimer'](),this[_0x710c0d(0x177)]();}['_onConnectionFailed'](){const _0x2ef3b8=_0x58f906;var _0x287324;this[_0x2ef3b8(0x2fb)](),this[_0x2ef3b8(0x4cd)]<((_0x287324=this['_configService'][_0x2ef3b8(0x2bc)](It))!=null?_0x287324:ts)?(this[_0x2ef3b8(0x205)]['show']({'key':_0x2ef3b8(0x3c7),'type':X[_0x2ef3b8(0x51a)][_0x2ef3b8(0x29a)],'content':this[_0x2ef3b8(0x3ad)]['t']('session.will-retry')}),this[_0x2ef3b8(0x25e)]()):this[_0x2ef3b8(0x205)][_0x2ef3b8(0x246)]({'key':_0x2ef3b8(0x3c7),'type':X['MessageType'][_0x2ef3b8(0x508)],'content':this[_0x2ef3b8(0x3ad)]['t']('session.connection-failed')});}[_0x58f906(0x4f1)](){const _0x2efd98=_0x58f906,_0x51d2c4=()=>{const _0x3a54b3=_0x31a9;this[_0x3a54b3(0x558)]||this['reconnect']();},_0x5c60de=()=>{const _0xcaf3ff=_0x31a9;this[_0xcaf3ff(0x558)]||document['visibilityState']===_0xcaf3ff(0x452)||this[_0xcaf3ff(0x3d4)]();};window[_0x2efd98(0x4d0)](_0x2efd98(0x287),_0x51d2c4),document['addEventListener'](_0x2efd98(0x202),_0x5c60de);}[_0x58f906(0x25e)](){const _0x80cdda=_0x58f906;var _0x1fe27c;const _0x1a0e4f=this[_0x80cdda(0x4cd)],_0xd4b85f=this[_0x80cdda(0x47d)][_0x80cdda(0x2bc)](L),_0xc0c6fb=_0x1a0e4f===0x0?0x0:((_0x1fe27c=_0xd4b85f==null?void 0x0:_0xd4b85f['retryConnectingInterval'])!=null?_0x1fe27c:es)*0x2**_0x1a0e4f;this[_0x80cdda(0x158)]=window[_0x80cdda(0x3ce)](()=>{const _0x2f8ee7=_0x80cdda;clearTimeout(this[_0x2f8ee7(0x158)]),this[_0x2f8ee7(0x158)]=null,this[_0x2f8ee7(0x1b1)]();},_0xc0c6fb),this[_0x80cdda(0x4cd)]+=0x1;}[_0x58f906(0x43f)](_0x3743bd,_0x4d9484){const _0x146c12=_0x58f906,{cmd:_0x332e1d}=_0x4d9484;_0x332e1d===b[_0x146c12(0x4cb)]&&!this[_0x146c12(0x54b)]&&(_0x3743bd[_0x146c12(0x52f)]=_0x4d9484[_0x146c12(0x460)]['memberID'],this[_0x146c12(0x449)][_0x146c12(0x1e9)](_0x3743bd),this[_0x146c12(0x20d)]['next'](H[_0x146c12(0x415)]),this['_socketReady']=!0x0,this[_0x146c12(0x2d0)]=null),_0x332e1d===b[_0x146c12(0x1c4)]&&this['_clearTimeoutTimer'](),this[_0x146c12(0x43d)]();}['_rescheduleHeartbeat'](){const _0x4531bf=_0x58f906;var _0x2ad6b5;this['_clearHeartbeatTimer'](),this[_0x4531bf(0x27f)]=window[_0x4531bf(0x3ce)](()=>this[_0x4531bf(0x309)](),(_0x2ad6b5=this['_configService'][_0x4531bf(0x2bc)](mt))!=null?_0x2ad6b5:Qt);}[_0x58f906(0x309)](){const _0x22b8b7=_0x58f906;this[_0x22b8b7(0x558)][_0x22b8b7(0x15a)]({'cmd':b[_0x22b8b7(0x1c4)]}),this[_0x22b8b7(0x470)]();}[_0x58f906(0x470)](){const _0x461084=_0x58f906;var _0x3db1a3;this[_0x461084(0x350)]=window[_0x461084(0x3ce)](()=>this[_0x461084(0x313)](),(_0x3db1a3=this['_configService'][_0x461084(0x2bc)](Ge))!=null?_0x3db1a3:ft);}[_0x58f906(0x177)](){const _0x469779=_0x58f906;this[_0x469779(0x27f)]!=null&&(clearTimeout(this[_0x469779(0x27f)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x248794=_0x58f906;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x248794(0x350)]),this[_0x248794(0x350)]=null);}},exports[_0x58f906(0x369)]=Cs([Z(0x0,a[_0x58f906(0x200)](a[_0x58f906(0x433)])),Z(0x1,a[_0x58f906(0x200)](a['LocaleService'])),Z(0x2,A[_0x58f906(0x54d)]),Z(0x3,a['ILogService']),Z(0x4,a[_0x58f906(0x304)]),Z(0x5,Ke)],exports['CollaborationSessionService']);var O=[];for(var Ue=0x0;Ue<0x100;++Ue)O[_0x58f906(0x166)]((Ue+0x100)[_0x58f906(0x462)](0x10)[_0x58f906(0x31e)](0x1));function Es(_0x162711,_0x2fead8=0x0){const _0x33cca6=_0x58f906;return(O[_0x162711[_0x2fead8+0x0]]+O[_0x162711[_0x2fead8+0x1]]+O[_0x162711[_0x2fead8+0x2]]+O[_0x162711[_0x2fead8+0x3]]+'-'+O[_0x162711[_0x2fead8+0x4]]+O[_0x162711[_0x2fead8+0x5]]+'-'+O[_0x162711[_0x2fead8+0x6]]+O[_0x162711[_0x2fead8+0x7]]+'-'+O[_0x162711[_0x2fead8+0x8]]+O[_0x162711[_0x2fead8+0x9]]+'-'+O[_0x162711[_0x2fead8+0xa]]+O[_0x162711[_0x2fead8+0xb]]+O[_0x162711[_0x2fead8+0xc]]+O[_0x162711[_0x2fead8+0xd]]+O[_0x162711[_0x2fead8+0xe]]+O[_0x162711[_0x2fead8+0xf]])[_0x33cca6(0x3a6)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x48cd7c=_0x58f906;if(!Se&&(Se=typeof crypto<'u'&&crypto['getRandomValues']&&crypto['getRandomValues'][_0x48cd7c(0x305)](crypto),!Se))throw new Error(_0x48cd7c(0x300));return Se(bs);}var Rs=typeof crypto<'u'&&crypto[_0x58f906(0x1ef)]&&crypto[_0x58f906(0x1ef)][_0x58f906(0x305)](crypto);const st={'randomUUID':Rs};function Os(_0x5c0a63,_0x3915cd,_0xa640d8){const _0x25a8f6=_0x58f906;if(st[_0x25a8f6(0x1ef)]&&!_0x3915cd&&!_0x5c0a63)return st['randomUUID']();_0x5c0a63=_0x5c0a63||{};var _0x216eaa=_0x5c0a63[_0x25a8f6(0x3b3)]||(_0x5c0a63[_0x25a8f6(0x567)]||Ts)();return _0x216eaa[0x6]=_0x216eaa[0x6]&0xf|0x40,_0x216eaa[0x8]=_0x216eaa[0x8]&0x3f|0x80,Es(_0x216eaa);}var Ds=Object[_0x58f906(0x503)],ys=Object[_0x58f906(0x365)],Us=(_0x177c04,_0x110ee2,_0x46ba43,_0x337f73)=>{const _0x1af279=_0x58f906;for(var _0x3a4faa=_0x337f73>0x1?void 0x0:_0x337f73?ys(_0x110ee2,_0x46ba43):_0x110ee2,_0x765cb=_0x177c04[_0x1af279(0x4b8)]-0x1,_0x14a7c2;_0x765cb>=0x0;_0x765cb--)(_0x14a7c2=_0x177c04[_0x765cb])&&(_0x3a4faa=(_0x337f73?_0x14a7c2(_0x110ee2,_0x46ba43,_0x3a4faa):_0x14a7c2(_0x3a4faa))||_0x3a4faa);return _0x337f73&&_0x3a4faa&&Ds(_0x110ee2,_0x46ba43,_0x3a4faa),_0x3a4faa;},Pe=(_0x57acf4,_0x250bab)=>(_0x38fb6e,_0x4cd022)=>_0x250bab(_0x38fb6e,_0x4cd022,_0x57acf4);let fe=class{constructor(_0x2a54b4,_0x51c175,_0x258dda){const _0x1cf00c=_0x58f906;this[_0x1cf00c(0x375)]=_0x2a54b4,this[_0x1cf00c(0x417)]=_0x51c175,this[_0x1cf00c(0x1f2)]=_0x258dda;}[_0x58f906(0x4b0)](_0xa23b2b){const _0x110768=_0x58f906;this[_0x110768(0x2a4)](_0xa23b2b),this[_0x110768(0x330)](_0xa23b2b);}[_0x58f906(0x2fc)](_0x1dd7d4){const _0x283c94=_0x58f906,{unitID:_0x3e3e29}=_0x1dd7d4,_0x3e2841=this[_0x283c94(0x1f2)][_0x283c94(0x27e)](_0x3e3e29)[_0x283c94(0x247)](N[_0x283c94(0x19b)]),{redoCache:_0x1768c2}=_0x3e2841[_0x283c94(0x3a0)]();if(_0x1768c2[_0x283c94(0x4b8)]===0x0)return _0x1dd7d4;let _0x3ac131=a['Tools'][_0x283c94(0x4a7)](_0x1dd7d4[_0x283c94(0x425)][0x0]);for(let _0x1f28a2=0x0;_0x1f28a2<_0x1768c2[_0x283c94(0x4b8)];_0x1f28a2++){const _0x38e946={'id':_0x283c94(0x3b7),'params':{..._0x1768c2[_0x1f28a2]}},_0x9aa86a=this['_transformService'][_0x283c94(0x189)](_0x3ac131,_0x38e946,!0x1);if(_[_0x283c94(0x4a1)](_0x9aa86a))throw _0x9aa86a[_0x283c94(0x1cc)];_0x3ac131=_0x9aa86a['m1Prime'];}return{...a[_0x283c94(0x4d7)][_0x283c94(0x4a7)](_0x1dd7d4),'mutations':[_0x3ac131]};}[_0x58f906(0x2a4)](_0x565abc){const _0x1b31a6=_0x58f906,{unitID:_0x3d0e4a}=_0x565abc,_0x4212b6=this[_0x1b31a6(0x1f2)]['getRenderById'](_0x3d0e4a)[_0x1b31a6(0x247)](N['DocIMEInputManagerService']),{undoCache:_0x35f9e1,redoCache:_0x567754}=_0x4212b6[_0x1b31a6(0x3a0)]();if(_0x35f9e1[_0x1b31a6(0x4b8)]===0x0||_0x567754[_0x1b31a6(0x4b8)]===0x0)return;const _0x2dec51=[],_0x2bad0b=[];let _0x2098b9=a[_0x1b31a6(0x4d7)][_0x1b31a6(0x4a7)](_0x565abc[_0x1b31a6(0x425)][0x0]),_0x90f7f=a[_0x1b31a6(0x4d7)][_0x1b31a6(0x4a7)](_0x565abc[_0x1b31a6(0x425)][0x0]);for(let _0x5a50f6=_0x35f9e1[_0x1b31a6(0x4b8)]-0x1;_0x5a50f6>=0x0;_0x5a50f6--){const _0x55b0da={'id':_0x1b31a6(0x3b7),'params':{..._0x35f9e1[_0x5a50f6]}},_0x13fcd2={'id':_0x1b31a6(0x3b7),'params':{..._0x567754[_0x5a50f6]}},_0x5776d7=this['_transformService'][_0x1b31a6(0x189)](_0x2098b9,_0x55b0da,!0x1),_0x30413e=this[_0x1b31a6(0x417)]['transformMutation'](_0x90f7f,_0x13fcd2,!0x1);if(_['isTransformMutationFailure'](_0x5776d7))throw _0x5776d7[_0x1b31a6(0x1cc)];if(_[_0x1b31a6(0x4a1)](_0x30413e))throw _0x30413e[_0x1b31a6(0x1cc)];_0x2dec51[_0x1b31a6(0x44c)](_0x5776d7[_0x1b31a6(0x310)][_0x1b31a6(0x2bd)]),_0x2bad0b[_0x1b31a6(0x44c)](_0x30413e[_0x1b31a6(0x310)][_0x1b31a6(0x2bd)]),_0x2098b9=_0x5776d7[_0x1b31a6(0x4aa)],_0x90f7f=_0x30413e['m1Prime'];}_0x4212b6[_0x1b31a6(0x2fa)]({'undoCache':_0x2dec51,'redoCache':_0x2bad0b});}[_0x58f906(0x330)](_0x442cf3){const _0x4953e1=_0x58f906,{unitID:_0x1b7c3f}=_0x442cf3,_0x30f2d6=this[_0x4953e1(0x1f2)][_0x4953e1(0x27e)](_0x1b7c3f)[_0x4953e1(0x247)](N[_0x4953e1(0x19b)]),_0x468b02=_0x30f2d6['getActiveRange']();if(_0x468b02==null)return;const _0x1ffb95=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x442cf3[_0x4953e1(0x168)],'actions':null,'textRanges':[_0x468b02]}}],_0xc916e1=this[_0x4953e1(0x417)]['transformMutationsWithChangeset'](_0x442cf3,_0x1ffb95);if(!_[_0x4953e1(0x332)](_0xc916e1))throw _0xc916e1['error'];const _0x4ba5b3=_0xc916e1[_0x4953e1(0x310)][0x0][_0x4953e1(0x2bd)]['textRanges'];Array[_0x4953e1(0x156)](_0x4ba5b3)&&_0x4ba5b3[_0x4953e1(0x4b8)]&&_0x30f2d6['setActiveRange'](_0x4ba5b3[0x0]);}};fe=Us([Pe(0x0,a[_0x58f906(0x200)](a[_0x58f906(0x433)])),Pe(0x1,_[_0x58f906(0x20c)]),Pe(0x2,D['IRenderManagerService'])],fe);var Ps=Object[_0x58f906(0x503)],ws=Object[_0x58f906(0x365)],Ns=(_0xeba825,_0x226089,_0x4af7a0,_0x839a96)=>{const _0x1a6406=_0x58f906;for(var _0x26705d=_0x839a96>0x1?void 0x0:_0x839a96?ws(_0x226089,_0x4af7a0):_0x226089,_0x55fc0b=_0xeba825[_0x1a6406(0x4b8)]-0x1,_0x2aca82;_0x55fc0b>=0x0;_0x55fc0b--)(_0x2aca82=_0xeba825[_0x55fc0b])&&(_0x26705d=(_0x839a96?_0x2aca82(_0x226089,_0x4af7a0,_0x26705d):_0x2aca82(_0x26705d))||_0x26705d);return _0x839a96&&_0x26705d&&Ps(_0x226089,_0x4af7a0,_0x26705d),_0x26705d;},ce=(_0x278086,_0x1a6d6c)=>(_0x3bb8d5,_0x870616)=>_0x1a6d6c(_0x3bb8d5,_0x870616,_0x278086);exports['LocalCacheService']=class extends a['Disposable']{constructor(_0x58f338,_0x11c466,_0x588813,_0x2296d6,_0xe5e64d){const _0x348890=_0x58f906;super(),u(this,_0x348890(0x55c),new Map()),u(this,'_saveTaskMap',new Map()),u(this,_0x348890(0x195),!0x1),(this[_0x348890(0x47d)]=_0x58f338,this['_localStorageService']=_0x11c466,this[_0x348890(0x4e4)]=_0x588813,this['_localeService']=_0x2296d6,this[_0x348890(0x276)]=_0xe5e64d,this[_0x348890(0x543)]());}[_0x58f906(0x2b6)](){const _0x39213a=_0x58f906;this[_0x39213a(0x195)]=!0x0;}[_0x58f906(0x3a9)](){const _0x2dedc7=_0x58f906;this[_0x2dedc7(0x195)]=!0x1;}[_0x58f906(0x45f)](){const _0x469577=_0x58f906;this[_0x469577(0x4b7)]()['then'](()=>super[_0x469577(0x45f)]());}async[_0x58f906(0x237)](_0x2120f2){const _0x534640=_0x58f906;return this[_0x534640(0x195)]?null:this['_localStorageService'][_0x534640(0x506)](it(_0x2120f2));}async['saveOfflineData'](_0x15e2d9,_0xe409a){const _0x5d5d74=_0x58f906;return!!this[_0x5d5d74(0x52c)][_0x5d5d74(0x1e0)](_0x15e2d9,_0xe409a);}['updateOfflineData'](_0xa36c9d,_0x4393f4,_0x53ecf1,_0x13b5e7){const _0x56995b=_0x58f906,_0x2a56f2=this[_0x56995b(0x276)][_0x56995b(0x204)](_0xa36c9d);this['_cachedData'][_0x56995b(0x473)](_0xa36c9d,{'unitID':_0xa36c9d,'type':_0x4393f4,'awaitingChangeset':_0x53ecf1,'mutations':_0x13b5e7,'rev':_0x2a56f2}),this[_0x56995b(0x47e)][_0x56995b(0x3ee)](_0xa36c9d)||this[_0x56995b(0x1ed)](_0xa36c9d);}[_0x58f906(0x1ed)](_0x522a8f){const _0x417bfa=_0x58f906,_0x46fb54=this[_0x417bfa(0x4ed)]();_0x46fb54===0x0?this[_0x417bfa(0x20a)](_0x522a8f):this[_0x417bfa(0x47e)][_0x417bfa(0x473)](_0x522a8f,setTimeout(()=>this[_0x417bfa(0x20a)](_0x522a8f),_0x46fb54));}['_getSaveTimeout'](){const _0xb00549=_0x58f906;var _0x375846;return(_0x375846=this[_0xb00549(0x47d)][_0xb00549(0x2bc)](pt))!=null?_0x375846:ss;}['_saveCache'](_0x2362dc){const _0x28fd23=_0x58f906,_0x4e206a=this[_0x28fd23(0x47e)][_0x28fd23(0x406)](_0x2362dc);return _0x4e206a!==void 0x0&&window[_0x28fd23(0x3bc)](_0x4e206a),this[_0x28fd23(0x52c)]['setItem'](it(_0x2362dc),this[_0x28fd23(0x55c)][_0x28fd23(0x406)](_0x2362dc))[_0x28fd23(0x182)](()=>this[_0x28fd23(0x47e)][_0x28fd23(0x2d7)](_0x2362dc));}async[_0x58f906(0x4b7)](){const _0x256081=_0x58f906,_0x378d8f=[];this[_0x256081(0x47e)][_0x256081(0x18c)]((_0x3a604f,_0x567d20)=>{const _0x2fac5a=_0x256081;window[_0x2fac5a(0x3bc)](_0x3a604f),_0x378d8f['push'](this['_saveCache'](_0x567d20)[_0x2fac5a(0x182)](()=>{const _0x17b3e8=_0x2fac5a;this[_0x17b3e8(0x47e)]['delete'](_0x567d20);}));}),await Promise['all'](_0x378d8f);}[_0x58f906(0x543)](){const _0x4e1e4a=_0x58f906;this[_0x4e1e4a(0x2af)](this[_0x4e1e4a(0x4e4)]['registerBeforeClose'](()=>{const _0x50dfb0=_0x4e1e4a;if(this[_0x50dfb0(0x47e)][_0x50dfb0(0x2c5)])return this[_0x50dfb0(0x3ad)]['t']('collaboration-client.offline-data-not-saved');}));}},exports['LocalCacheService']=Ns([ce(0x0,a[_0x58f906(0x304)]),ce(0x1,a['ILocalStorageService']),ce(0x2,A[_0x58f906(0x222)]),ce(0x3,a[_0x58f906(0x200)](a[_0x58f906(0x36a)])),ce(0x4,a[_0x58f906(0x200)](_[_0x58f906(0x2e1)]))],exports[_0x58f906(0x533)]);function it(_0x389aef){return'unit-cache-'+_0x389aef;}var Ms=Object[_0x58f906(0x503)],As=Object[_0x58f906(0x365)],Ls=(_0x51b0ee,_0x543562,_0x1e27b5,_0x49fc5a)=>{const _0x5a6721=_0x58f906;for(var _0x40c73a=_0x49fc5a>0x1?void 0x0:_0x49fc5a?As(_0x543562,_0x1e27b5):_0x543562,_0x4dc5f7=_0x51b0ee[_0x5a6721(0x4b8)]-0x1,_0x54553a;_0x4dc5f7>=0x0;_0x4dc5f7--)(_0x54553a=_0x51b0ee[_0x4dc5f7])&&(_0x40c73a=(_0x49fc5a?_0x54553a(_0x543562,_0x1e27b5,_0x40c73a):_0x54553a(_0x40c73a))||_0x40c73a);return _0x49fc5a&&_0x40c73a&&Ms(_0x543562,_0x1e27b5,_0x40c73a),_0x40c73a;},we=(_0x293822,_0x2e9a68)=>(_0x264741,_0x567ac4)=>_0x2e9a68(_0x264741,_0x567ac4,_0x293822);function js(_0x396e11){const _0x351a78=_0x58f906,{unitID:_0x12027f,mutations:_0x482018}=_0x396e11;return{'unitId':_0x12027f,'subUnitId':_0x482018[0x0]['params'][_0x351a78(0x4d2)]};}let Ie=class{constructor(_0x230941,_0x36c58d,_0x10a53a){const _0x6acdab=_0x58f906;this[_0x6acdab(0x375)]=_0x230941,this[_0x6acdab(0x417)]=_0x36c58d,this[_0x6acdab(0x251)]=_0x10a53a;}[_0x58f906(0x1b3)](_0x589466){const _0x51d90a=_0x58f906;var _0x385e1e,_0x7852cb,_0xc82e48,_0x3ec5c5;const _0x10b4b6=this[_0x51d90a(0x375)][_0x51d90a(0x406)](C[_0x51d90a(0x175)]),{unitId:_0x4170f5,subUnitId:_0x5e00a8}=js(_0x589466),_0x5a3bdb=_0x10b4b6[_0x51d90a(0x4f5)](_0x4170f5)[_0x51d90a(0x457)](),_0x1cd840=(_0x7852cb=(_0x385e1e=this[_0x51d90a(0x251)][_0x51d90a(0x37d)](_0x4170f5))==null?void 0x0:_0x385e1e[_0x51d90a(0x344)]())==null?void 0x0:_0x7852cb['getSheetId']();if(_0x5a3bdb['length']===0x0||!_0x4170f5||!_0x5e00a8)return;const _0x391824=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x4170f5,'subUnitId':_0x1cd840,'selections':a[_0x51d90a(0x4d7)]['deepClone'](_0x5a3bdb)}}],_0x22b33b=this[_0x51d90a(0x417)][_0x51d90a(0x4cc)](_0x589466,_0x391824);if(!_[_0x51d90a(0x332)](_0x22b33b))throw _0x22b33b[_0x51d90a(0x1cc)];const _0x9584f5=(_0x3ec5c5=(_0xc82e48=_0x22b33b[_0x51d90a(0x310)][0x0])==null?void 0x0:_0xc82e48[_0x51d90a(0x2bd)])==null?void 0x0:_0x3ec5c5['selections'];if(Array[_0x51d90a(0x156)](_0x9584f5)&&_0x9584f5[_0x51d90a(0x4b8)]){if(_0x9584f5[_0x51d90a(0x4b8)]===_0x391824[0x0][_0x51d90a(0x2bd)][_0x51d90a(0x499)][_0x51d90a(0x4b8)]&&_0x9584f5[_0x51d90a(0x1ff)]((_0x686916,_0x3cac5c)=>a['Rectangle']['equals'](_0x686916[_0x51d90a(0x35f)],_0x391824[0x0][_0x51d90a(0x2bd)][_0x51d90a(0x499)][_0x3cac5c][_0x51d90a(0x35f)])))return;this[_0x51d90a(0x375)][_0x51d90a(0x406)](a[_0x51d90a(0x484)])[_0x51d90a(0x315)](C[_0x51d90a(0x21d)]['id'],{'unitId':_0x4170f5,'subUnitId':_0x1cd840,'selections':_0x9584f5});}}};Ie=Ls([we(0x0,a[_0x58f906(0x200)](a[_0x58f906(0x433)])),we(0x1,_[_0x58f906(0x20c)]),we(0x2,a[_0x58f906(0x497)])],Ie);const Re=a[_0x58f906(0x500)]('univer-pro.collaboration-client.single-active-unit-service');var Dt=(_0x1a0c98=>(_0x1a0c98[_0x1a0c98[_0x58f906(0x20e)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x1a0c98[_0x1a0c98[_0x58f906(0x4a5)]=0x1]='OTHER_CLIENTS_EDITING',_0x1a0c98))(Dt||{});const nt=0x7530,rt=_0x58f906(0x265);class $s extends a[_0x58f906(0x279)]{constructor(){const _0x4199fe=_0x58f906;super(),u(this,_0x4199fe(0x2e3),a[_0x4199fe(0x4d7)][_0x4199fe(0x3a7)]()),u(this,'_selfUnitIDs',new Set()),u(this,'_unitOnClients',new Map()),u(this,_0x4199fe(0x22e),null),u(this,_0x4199fe(0x28c),new Map()),u(this,_0x4199fe(0x48f),new Map()),this[_0x4199fe(0x30d)]();}[_0x58f906(0x45f)](){const _0x3ec892=_0x58f906;super[_0x3ec892(0x45f)](),this[_0x3ec892(0x28c)]['forEach']((_0x30c673,_0x30cf6e)=>this[_0x3ec892(0x25a)](_0x30cf6e)),this['_heartbeatTimer']&&window[_0x3ec892(0x27a)](this[_0x3ec892(0x22e)]);}['getUnitStatus$'](_0x54c82f){const _0x230d62=_0x58f906;return this['_ensureSubject'](_0x54c82f)[_0x230d62(0x3d5)](v[_0x230d62(0x3e8)]());}[_0x58f906(0x3e1)](_0x5ee419){const _0x5daed4=_0x58f906;this[_0x5daed4(0x45a)][_0x5daed4(0x2c5)]===0x0&&this['_scheduleHeartbeat'](),this[_0x5daed4(0x45a)]['add'](_0x5ee419),this[_0x5daed4(0x16a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5ee419],'isForwarded':!0x1});}[_0x58f906(0x1ae)](_0x2cab82){const _0x2863db=_0x58f906;this['_selfUnitIDs'][_0x2863db(0x2d7)](_0x2cab82),this[_0x2863db(0x45a)][_0x2863db(0x2c5)]===0x0&&this[_0x2863db(0x22e)]&&window[_0x2863db(0x27a)](this[_0x2863db(0x22e)]);}['_init'](){const _0x4bb8a1=_0x58f906;this[_0x4bb8a1(0x2af)](a[_0x4bb8a1(0x1c2)](v[_0x4bb8a1(0x4d6)](window,_0x4bb8a1(0x164))[_0x4bb8a1(0x4b6)](_0x53cb19=>{const _0x9c4a44=_0x4bb8a1;if(_0x53cb19[_0x9c4a44(0x3fb)]!==rt||!_0x53cb19[_0x9c4a44(0x1ab)])return;const _0x50c367=JSON[_0x9c4a44(0x307)](_0x53cb19[_0x9c4a44(0x1ab)]);this[_0x9c4a44(0x1a4)](_0x50c367);}))),window['addEventListener']('unload',()=>this[_0x4bb8a1(0x16a)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4bb8a1(0x17f)](this[_0x4bb8a1(0x45a)])}));}[_0x58f906(0x1a4)](_0x4f4ea4){const _0x47389e=_0x58f906;switch(_0x4f4ea4[_0x47389e(0x24a)]){case 0x0:this[_0x47389e(0x319)](_0x4f4ea4);break;case 0x1:this['_handleLeaveEvent'](_0x4f4ea4);break;case 0x2:this['_handleHeartbeatEvent'](_0x4f4ea4);break;}}[_0x58f906(0x319)](_0x21ae47){const _0x585d9c=_0x58f906,{unitIDs:_0x59417f,memberID:_0x5d782f,isForwarded:_0x59e358}=_0x21ae47;_0x59417f[_0x585d9c(0x18c)](_0x406274=>{const _0x4f58b4=_0x585d9c;if(!_0x59e358&&this[_0x4f58b4(0x4e0)]['has'](_0x406274)&&this['_ensureSubject'](_0x406274)[_0x4f58b4(0x1e9)](0x1),!this[_0x4f58b4(0x4e0)][_0x4f58b4(0x3ee)](_0x406274)||!this[_0x4f58b4(0x4e0)][_0x4f58b4(0x406)](_0x406274)[_0x4f58b4(0x3ee)](_0x5d782f)){const _0x423c3d=this[_0x4f58b4(0x4e0)]['get'](_0x406274)||new Set();_0x423c3d[_0x4f58b4(0x1f8)](_0x5d782f),this['_unitOnClients']['set'](_0x406274,_0x423c3d),this[_0x4f58b4(0x50b)](_0x5d782f);}}),_0x59e358||this['_send']({'type':0x0,'memberID':this[_0x585d9c(0x2e3)],'unitIDs':[...this[_0x585d9c(0x45a)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x32aceb){const _0x5c812c=_0x58f906;this[_0x5c812c(0x25a)](_0x32aceb);const _0x13e13f=window[_0x5c812c(0x3ce)](()=>{const _0x19d5ce=_0x5c812c;this[_0x19d5ce(0x4e0)]['forEach'](_0x204452=>{const _0x2ab8a9=_0x19d5ce;_0x204452[_0x2ab8a9(0x2d7)](_0x32aceb);});},nt*0x2);this[_0x5c812c(0x28c)][_0x5c812c(0x473)](_0x32aceb,_0x13e13f);}[_0x58f906(0x25a)](_0x2d8b91){const _0x24ce93=_0x58f906;if(this[_0x24ce93(0x28c)][_0x24ce93(0x3ee)](_0x2d8b91)){const _0x5d07ae=this[_0x24ce93(0x28c)]['get'](_0x2d8b91);_0x5d07ae&&window[_0x24ce93(0x3bc)](_0x5d07ae),this['_clearOtherTimers'][_0x24ce93(0x473)](_0x2d8b91,null);}}[_0x58f906(0x562)](_0x5d16e1){const _0x813f89=_0x58f906,{memberID:_0x43b27e,unitIDs:_0x44ad05}=_0x5d16e1;_0x44ad05[_0x813f89(0x18c)](_0x2cf19e=>{const _0x5db81a=_0x813f89;var _0x52f009;const _0x4daa1a=this[_0x5db81a(0x4e0)][_0x5db81a(0x406)](_0x2cf19e);_0x4daa1a&&(_0x4daa1a[_0x5db81a(0x2d7)](_0x43b27e),(_0x52f009=this[_0x5db81a(0x4d5)](_0x2cf19e))==null||_0x52f009[_0x5db81a(0x1e9)](_0x4daa1a[_0x5db81a(0x2c5)]===0x0?0x0:0x1));}),this[_0x813f89(0x25a)](_0x43b27e);}[_0x58f906(0x329)](_0x3d3db1){const _0x3dfab8=_0x58f906;this[_0x3dfab8(0x50b)](_0x3d3db1['memberID']);}[_0x58f906(0x16a)](_0x1e333b){localStorage['setItem'](rt,JSON['stringify'](_0x1e333b));}[_0x58f906(0x226)](){const _0x3136d5=_0x58f906;this[_0x3136d5(0x22e)]=window[_0x3136d5(0x160)](()=>{const _0x4e0aef=_0x3136d5;this[_0x4e0aef(0x16a)]({'type':0x2,'memberID':this['_id']});},nt);}[_0x58f906(0x4d5)](_0x13d051){const _0x187759=_0x58f906;return this[_0x187759(0x48f)][_0x187759(0x3ee)](_0x13d051)||this[_0x187759(0x48f)]['set'](_0x13d051,new v[(_0x187759(0x379))](0x0)),this[_0x187759(0x48f)][_0x187759(0x406)](_0x13d051);}}function yt(_0x43e1fa){const _0x5f48ed=_0x58f906;let _0x1df670='';for(const _0x47f368 of _0x43e1fa){const {startOffset:_0xc5da8a,endOffset:_0x3236e0,isActive:_0x4a9fe7}=_0x47f368;_0x1df670[_0x5f48ed(0x4b8)]&&(_0x1df670+=','),_0x1df670+=_0xc5da8a+':'+_0x3236e0+':'+(_0x4a9fe7?'1':'0');}return _0x1df670;}function Hs(_0x102575){const _0x195173=_0x58f906,_0x339d78=_0x102575[_0x195173(0x17a)](','),_0x166887=[];for(const _0x56b7b6 of _0x339d78){const [_0x29be29,_0x1c3ef1,_0x3a5836]=_0x56b7b6[_0x195173(0x17a)](':');_0x166887['push']({'startOffset':Number(_0x29be29),'endOffset':Number(_0x1c3ef1),'collapsed':_0x29be29===_0x1c3ef1,'isActive':_0x3a5836==='1'});}return _0x166887[_0x195173(0x4c4)](_0x483f6f=>_0x483f6f['isActive'])||(_0x166887[0x0][_0x195173(0x401)]=!0x0),_0x166887;}class qe extends a[_0x58f906(0x3d0)]{constructor(){const _0x263e6e=_0x58f906;super(...arguments),u(this,_0x263e6e(0x570),new v[(_0x263e6e(0x379))](null)),u(this,'collabCursorState$',this['_collabCursorState$'][_0x263e6e(0x41d)]());}[_0x58f906(0x3cd)](_0x3025fb){const _0x3365f1=_0x58f906,{unitID:_0x5c2055,memberID:_0x436b61,textRanges:_0x181680}=_0x3025fb,_0x3dec7b=yt(_0x181680),_0x4b2a7d={'unitID':_0x5c2055,'memberID':_0x436b61,'selection':_0x3dec7b};this[_0x3365f1(0x570)]['next'](_0x4b2a7d);}}var xs=Object['defineProperty'],ks=Object[_0x58f906(0x365)],Bs=(_0x455d58,_0x469a06,_0x4cca91,_0x52d950)=>{const _0x2dc9a3=_0x58f906;for(var _0x3949aa=_0x52d950>0x1?void 0x0:_0x52d950?ks(_0x469a06,_0x4cca91):_0x469a06,_0x255c85=_0x455d58[_0x2dc9a3(0x4b8)]-0x1,_0x4cf7db;_0x255c85>=0x0;_0x255c85--)(_0x4cf7db=_0x455d58[_0x255c85])&&(_0x3949aa=(_0x52d950?_0x4cf7db(_0x469a06,_0x4cca91,_0x3949aa):_0x4cf7db(_0x3949aa))||_0x3949aa);return _0x52d950&&_0x3949aa&&xs(_0x469a06,_0x4cca91,_0x3949aa),_0x3949aa;},ot=(_0x55a53a,_0xbde9bf)=>(_0x18f9f3,_0x3dcb19)=>_0xbde9bf(_0x18f9f3,_0x3dcb19,_0x55a53a);let pe=class{constructor(_0x4d69e9,_0x1e6976){const _0x3f67c3=_0x58f906;this[_0x3f67c3(0x375)]=_0x4d69e9,this[_0x3f67c3(0x417)]=_0x1e6976;}[_0x58f906(0x1b3)](_0x107ae9){const _0x4d4542=_0x58f906;var _0x1b395a;const _0x298a8=this[_0x4d4542(0x375)][_0x4d4542(0x406)](se['DocSelectionManagerService']),_0x5d0e2e=(_0x1b395a=_0x298a8[_0x4d4542(0x2cf)]())!=null?_0x1b395a:[];if(_0x5d0e2e[_0x4d4542(0x4b8)]===0x0)return;const _0x3a086d=[{'id':_0x4d4542(0x3b7),'params':{'unitId':_0x107ae9['unitID'],'actions':null,'textRanges':_0x5d0e2e}}],_0x16665b=this[_0x4d4542(0x417)][_0x4d4542(0x4cc)](_0x107ae9,_0x3a086d);if(!_['isTransformMutationsWithChangesetSuccess'](_0x16665b))throw _0x16665b[_0x4d4542(0x1cc)];const _0x44b12c=_0x16665b[_0x4d4542(0x310)][0x0][_0x4d4542(0x2bd)]['textRanges'];Array[_0x4d4542(0x156)](_0x44b12c)&&_0x44b12c[_0x4d4542(0x4b8)]&&_0x298a8[_0x4d4542(0x2f9)](_0x44b12c,!0x1);}};pe=Bs([ot(0x0,a[_0x58f906(0x200)](a[_0x58f906(0x433)])),ot(0x1,_[_0x58f906(0x20c)])],pe);const Vs=new Set([C[_0x58f906(0x32b)]['id']]);function at(_0x3fb1e2,_0x182133,_0x38a6f7,_0x3a83b8,_0x5beb35){const _0x3ee271=_0x58f906;var _0x5af8ef,_0x3c4715,_0x16d02e,_0x51d374;const _0xd5a711=[];for(const _0x9a4131 of _0x3fb1e2)if(Vs['has'](_0x9a4131['id'])){if(_0xd5a711[_0x3ee271(0x4b8)]>0x0)break;_0xd5a711[_0x3ee271(0x166)](_0x9a4131);break;}else _0xd5a711[_0x3ee271(0x166)](_0x9a4131);const _0x585690=(_0x3c4715=(_0x5af8ef=_0x5beb35[_0x3ee271(0x24d)]())==null?void 0x0:_0x5af8ef['userID'])!=null?_0x3c4715:_0x3ee271(0x446),_0x3880e7=(_0x51d374=(_0x16d02e=_0x5beb35[_0x3ee271(0x24d)]())==null?void 0x0:_0x16d02e['memberID'])!=null?_0x51d374:_0x3ee271(0x446);return{'changeset':{'unitID':_0x182133,'type':_[_0x3ee271(0x4eb)](_0x38a6f7[_0x3ee271(0x4e5)](_0x182133)),'baseRev':_0x3a83b8[_0x3ee271(0x204)](_0x182133),'revision':0x0,'userID':_0x585690,'memberID':_0x3880e7,'mutations':_0xd5a711},'pendingMutations':_0x3fb1e2[_0x3ee271(0x31e)](_0xd5a711[_0x3ee271(0x4b8)])};}function Ws(_0x1fb360,_0xfc01c5,_0x4a9103,_0x3fe7a9,_0x43e292){const _0x72b48a=_0x58f906;var _0xc594b5,_0x42e04a,_0xca3453,_0x51d472;const _0x2699c9=[_0x1fb360[_0x72b48a(0x23b)]((_0x5857d3,_0x261673)=>{const _0x3d99ca=_0x72b48a;var _0x4abfe8;const {id:_0x5283e}=_0x5857d3,{id:_0x153b08,type:_0x170d2c}=_0x261673,_0x293ce7=(_0x4abfe8=_0x5857d3[_0x3d99ca(0x2bd)])!=null?_0x4abfe8:{'actions':null},_0x380d26=_0x261673[_0x3d99ca(0x2bd)];if(_0x5283e&&_0x5283e!==_0x153b08)throw new Error(_0x3d99ca(0x2a6)+_0x5283e+_0x3d99ca(0x2c2)+_0x153b08+'.');return{..._0x5857d3,'id':_0x153b08,'type':_0x170d2c,'params':{'unitId':_0x380d26[_0x3d99ca(0x553)],'textRanges':_0x380d26[_0x3d99ca(0x510)],'actions':a[_0x3d99ca(0x43e)][_0x3d99ca(0x4f6)](_0x293ce7[_0x3d99ca(0x22c)],_0x380d26[_0x3d99ca(0x22c)])}};},{})],_0x357e07=(_0x42e04a=(_0xc594b5=_0x43e292[_0x72b48a(0x24d)]())==null?void 0x0:_0xc594b5[_0x72b48a(0x354)])!=null?_0x42e04a:_0x72b48a(0x446),_0x1cc99e=(_0x51d472=(_0xca3453=_0x43e292[_0x72b48a(0x24d)]())==null?void 0x0:_0xca3453[_0x72b48a(0x52f)])!=null?_0x51d472:_0x72b48a(0x446);return{'changeset':{'unitID':_0xfc01c5,'type':_[_0x72b48a(0x4eb)](_0x4a9103[_0x72b48a(0x4e5)](_0xfc01c5)),'baseRev':_0x3fe7a9[_0x72b48a(0x204)](_0xfc01c5),'revision':0x0,'userID':_0x357e07,'memberID':_0x1cc99e,'mutations':_0x2699c9},'pendingMutations':[]};}const Fs={'id':C['EmptyMutation']['id'],'type':a[_0x58f906(0x295)][_0x58f906(0x1b6)],'params':{}};var Gs=Object['defineProperty'],Ys=Object[_0x58f906(0x365)],z=(_0x52a70d,_0x18bc8a,_0xd300e3,_0x2835e9)=>{const _0x2907fd=_0x58f906;for(var _0x45a499=_0x2835e9>0x1?void 0x0:_0x2835e9?Ys(_0x18bc8a,_0xd300e3):_0x18bc8a,_0x1ad2f3=_0x52a70d[_0x2907fd(0x4b8)]-0x1,_0x1a5e40;_0x1ad2f3>=0x0;_0x1ad2f3--)(_0x1a5e40=_0x52a70d[_0x1ad2f3])&&(_0x45a499=(_0x2835e9?_0x1a5e40(_0x18bc8a,_0xd300e3,_0x45a499):_0x1a5e40(_0x45a499))||_0x45a499);return _0x2835e9&&_0x45a499&&Gs(_0x18bc8a,_0xd300e3,_0x45a499),_0x45a499;},m=(_0x4967e9,_0x1bf06d)=>(_0x3ac7b8,_0x3fdcef)=>_0x1bf06d(_0x3ac7b8,_0x3fdcef,_0x4967e9),U=(_0x275354=>(_0x275354[_0x58f906(0x33b)]=_0x58f906(0x31f),_0x275354['SYNCED']='synced',_0x275354[_0x58f906(0x4fb)]=_0x58f906(0x165),_0x275354['AWAITING']='awaiting',_0x275354[_0x58f906(0x424)]='awaiting_with_pending',_0x275354['FETCH_MISS']='fetch_missing',_0x275354[_0x58f906(0x33c)]='conflict',_0x275354['OFFLINE']=_0x58f906(0x2ea),_0x275354))(U||{});class J{constructor(_0x4fbfe7,_0x3b00f7,_0xaa2156,_0x3da013,_0x270ca6,_0x279c21,_0x192c84,_0xeb7bc7,_0x669eae){const _0xde78a7=_0x58f906;u(this,_0xde78a7(0x3bf),null),u(this,_0xde78a7(0x521),[]),(this[_0xde78a7(0x168)]=_0x4fbfe7,this[_0xde78a7(0x24a)]=_0x3b00f7,this[_0xde78a7(0x4f9)]=_0x270ca6,this[_0xde78a7(0x2ac)]=_0x279c21,this[_0xde78a7(0x221)]=_0x192c84,this[_0xde78a7(0x276)]=_0xeb7bc7,this['_localCacheService']=_0x669eae,this[_0xde78a7(0x3bf)]=_0xaa2156,this['_pendingMutations']=_0x3da013);}[_0x58f906(0x49b)](_0x3c6205){const _0x3b4ca8=_0x58f906,_0x1ddb0e=this[_0x3b4ca8(0x276)][_0x3b4ca8(0x204)](this['unitID']);return _0x3c6205[_0x3b4ca8(0x577)]>_0x1ddb0e+0x1?(this['_handler'][_0x3b4ca8(0x2a5)]({'from':_0x1ddb0e,'to':_0x3c6205[_0x3b4ca8(0x577)]-0x1}),!0x0):!0x1;}[_0x58f906(0x173)](_0x40f0df){const _0x40c456=_0x58f906;this['_undoRedoService'][_0x40c456(0x1f6)](this[_0x40c456(0x168)],_0x40f0df);}[_0x58f906(0x297)](_0x5b1ae8){const _0x301309=_0x58f906;var _0x2fea15,_0x2d6d91;(_0x2d6d91=(_0x2fea15=this[_0x301309(0x4f9)])[_0x301309(0x32f)])==null||_0x2d6d91[_0x301309(0x3fd)](_0x2fea15,_0x5b1ae8);}[_0x58f906(0x48b)](_0x4ed3c3){const _0x491ea9=_0x58f906;var _0x11da44,_0x3a8f59;return(_0x3a8f59=(_0x11da44=this[_0x491ea9(0x4f9)])[_0x491ea9(0x47c)])==null?void 0x0:_0x3a8f59[_0x491ea9(0x3fd)](_0x11da44,_0x4ed3c3);}['_transformRemoteChangesetByIMECache'](_0xddbd){const _0x3139ba=_0x58f906;var _0x1d9874,_0x583d36,_0x634cb9;return(_0x634cb9=(_0x583d36=(_0x1d9874=this[_0x3139ba(0x4f9)])[_0x3139ba(0x444)])==null?void 0x0:_0x583d36['call'](_0x1d9874,_0xddbd))!=null?_0x634cb9:_0xddbd;}[_0x58f906(0x323)](_0xef889a){const _0x573567=_0x58f906;var _0x4297b7,_0xa4d92;if(this[_0x573567(0x24a)]===$[_0x573567(0x368)]){const {unitID:_0x10b2db,mutations:_0x56aa37,memberID:_0x170c16}=_0xef889a,_0x42e4e2=_0x56aa37[0x0][_0x573567(0x2bd)][_0x573567(0x510)];Array[_0x573567(0x156)](_0x42e4e2)&&_0x42e4e2['length']>0x0&&((_0xa4d92=(_0x4297b7=this[_0x573567(0x4f9)])[_0x573567(0x2b2)])==null||_0xa4d92[_0x573567(0x3fd)](_0x4297b7,{'unitID':_0x10b2db,'memberID':_0x170c16,'textRanges':_0x42e4e2}));}}[_0x58f906(0x25b)](){const _0x50561d=_0x58f906;this[_0x50561d(0x3e5)][_0x50561d(0x2ff)](this[_0x50561d(0x168)],this[_0x50561d(0x24a)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x58f906(0x40e)](){const _0x4001f0=_0x58f906;return this[_0x4001f0(0x276)][_0x4001f0(0x204)](this[_0x4001f0(0x168)]);}[_0x58f906(0x48c)](){const _0x41b4f6=_0x58f906;this['_revisionService'][_0x41b4f6(0x2a9)](this[_0x41b4f6(0x168)]);}['_executeRemoteChangeset'](_0x14cce2){const _0x484d7d=_0x58f906;var _0xba4ffe;const _0x230723=this[_0x484d7d(0x1a9)](_0x14cce2),_0x3ab092=a['sequenceExecute'](_0x230723[_0x484d7d(0x425)],this[_0x484d7d(0x2ac)],{'fromCollab':!0x0});if(!_0x3ab092[_0x484d7d(0x231)])throw _0x3ab092['error']instanceof Error?_0x3ab092[_0x484d7d(0x1cc)]:new Error((_0xba4ffe=_0x3ab092[_0x484d7d(0x1cc)])!=null?_0xba4ffe:_0x484d7d(0x397));this['_transformIMECache'](_0x230723),this[_0x484d7d(0x173)](_0x14cce2),this[_0x484d7d(0x297)](_0x230723),this['_syncEditingCollabCursor'](_0x230723),this[_0x484d7d(0x48c)]();}}let ie=class extends J{constructor(_0x3a1f7f,_0x33c3c3,_0x417716,_0x50cb40,_0x201340,_0x205c9e,_0xe31c70,_0x18b653,_0x2f0ff9,_0x1d3848){const _0x445649=_0x58f906;super(_0x3a1f7f,_0x33c3c3,null,[],_0x417716,_0x18b653,_0xe31c70,_0x50cb40,_0x201340),u(this,_0x445649(0x53e),'synced'),(this[_0x445649(0x375)]=_0x205c9e,this[_0x445649(0x343)]=_0x2f0ff9,this[_0x445649(0x417)]=_0x1d3848);}[_0x58f906(0x2dd)](_0x4e7c9){const _0x679262=_0x58f906,_0x2f7a27=this[_0x679262(0x375)]['createInstance'](k,this[_0x679262(0x168)],this[_0x679262(0x24a)],[_0x4e7c9],this[_0x679262(0x4f9)]);return _0x2f7a27['_schedule'](),_0x2f7a27['_updateLocalCache'](),_0x2f7a27;}['onRemoteChangeset'](_0x48a33a){const _0x5b0959=_0x58f906;if(this[_0x5b0959(0x49b)](_0x48a33a))return this['_injector'][_0x5b0959(0x1bb)](x,this['unitID'],this[_0x5b0959(0x24a)],null,[],null,[_0x48a33a],this[_0x5b0959(0x4f9)]);try{const _0x193460=this[_0x5b0959(0x417)][_0x5b0959(0x4cc)](_0x48a33a,[Fs]);if(_['isTransformMutationsWithChangesetSuccess'](_0x193460)){const {c1Prime:_0x11d576}=_0x193460;return this[_0x5b0959(0x479)](_0x11d576),this;}throw _0x193460['error'];}catch(_0x4e289b){return this[_0x5b0959(0x343)][_0x5b0959(0x1cc)](_0x4e289b),this[_0x5b0959(0x571)](!0x1);}}['_onConflict'](_0x3a9e85){const _0xffeec8=_0x58f906;return this[_0xffeec8(0x375)][_0xffeec8(0x1bb)](F,this[_0xffeec8(0x168)],this[_0xffeec8(0x24a)],null,[],this[_0xffeec8(0x4f9)],_0x3a9e85);}[_0x58f906(0x40b)](){const _0x55b7a8=_0x58f906;throw new Error(_0x55b7a8(0x302));}[_0x58f906(0x370)](){const _0x3d3766=_0x58f906;throw new Error(_0x3d3766(0x21b));}[_0x58f906(0x3a3)](){const _0x169fae=_0x58f906;return this['_injector'][_0x169fae(0x1bb)](G,this['unitID'],this[_0x169fae(0x24a)],null,[],this[_0x169fae(0x4f9)]);}[_0x58f906(0x4ae)](){return this;}[_0x58f906(0x4c3)](){const _0x47918d=_0x58f906;throw new Error(_0x47918d(0x443));}['fetchMiss'](){const _0x2caa45=_0x58f906,_0x314647=this[_0x2caa45(0x276)][_0x2caa45(0x204)](this[_0x2caa45(0x168)]);return this[_0x2caa45(0x4f9)][_0x2caa45(0x2a5)]({'from':_0x314647,'to':0x0}),this[_0x2caa45(0x375)][_0x2caa45(0x1bb)](x,this[_0x2caa45(0x168)],this[_0x2caa45(0x24a)],null,[],null,[],this[_0x2caa45(0x4f9)]);}};ie=z([m(0x3,a[_0x58f906(0x200)](_['RevisionService'])),m(0x4,a['Inject'](exports[_0x58f906(0x533)])),m(0x5,a[_0x58f906(0x200)](a[_0x58f906(0x433)])),m(0x6,a['IUndoRedoService']),m(0x7,a['ICommandService']),m(0x8,a[_0x58f906(0x3f7)]),m(0x9,_[_0x58f906(0x20c)])],ie);let k=class extends J{constructor(_0x5e7d42,_0xc4ff8a,_0xbb5a51,_0x10c2bb,_0x547325,_0x26a9d4,_0x20e744,_0x39924f,_0x1aee3d,_0x4065dc,_0x3221dc,_0x4d2217,_0xdfbdc7,_0x57c6d8){const _0x240205=_0x58f906;super(_0x5e7d42,_0xc4ff8a,null,_0xbb5a51,_0x10c2bb,_0x4065dc,_0x57c6d8,_0x26a9d4,_0x20e744),u(this,_0x240205(0x53e),_0x240205(0x165)),u(this,_0x240205(0x52a),null),u(this,_0x240205(0x564),null),(this[_0x240205(0x375)]=_0x547325,this[_0x240205(0x4bd)]=_0x39924f,this['_logService']=_0x1aee3d,this['_configService']=_0x3221dc,this['_transformService']=_0x4d2217,this[_0x240205(0x1c7)]=_0xdfbdc7);}[_0x58f906(0x2dd)](_0x1aaf0f){const _0x2b06fc=_0x58f906;return this['_pendingMutations'][_0x2b06fc(0x166)](_0x1aaf0f),this[_0x2b06fc(0x25b)](),this;}[_0x58f906(0x32d)](_0x50e89f){const _0x593fe6=_0x58f906;if(this[_0x593fe6(0x49b)](_0x50e89f))return this[_0x593fe6(0x3b0)](),this[_0x593fe6(0x375)][_0x593fe6(0x1bb)](x,this['unitID'],this[_0x593fe6(0x24a)],null,this['_pendingMutations'],null,[_0x50e89f],this['_handler']);try{const _0x402f77=this[_0x593fe6(0x417)][_0x593fe6(0x4cc)](_0x50e89f,this[_0x593fe6(0x521)]);if(_[_0x593fe6(0x332)](_0x402f77)){const {c1Prime:_0x25b465,m2Prime:_0xd2c40b}=_0x402f77;this[_0x593fe6(0x479)](_0x25b465);const _0x325e04=this[_0x593fe6(0x375)]['createInstance'](k,this['unitID'],this[_0x593fe6(0x24a)],_0xd2c40b,this['_handler']);return this[_0x593fe6(0x3b0)](),_0x325e04['_schedule'](this[_0x593fe6(0x52a)]?Math['max'](0x0,new Date()[_0x593fe6(0x422)]()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x325e04;}throw _0x402f77[_0x593fe6(0x1cc)];}catch(_0x4747ce){return this[_0x593fe6(0x343)]['error'](_0x4747ce),this[_0x593fe6(0x571)](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x58f906(0x3a3)](){const _0x51458f=_0x58f906;return this[_0x51458f(0x3b0)](),this['_injector'][_0x51458f(0x1bb)](G,this['unitID'],this[_0x51458f(0x24a)],null,this[_0x51458f(0x521)],this[_0x51458f(0x4f9)]);}[_0x58f906(0x4ae)](){return this;}[_0x58f906(0x495)](_0x307fcd){const _0xa1e101=_0x58f906,_0x45e25d=_0x307fcd!=null?_0x307fcd:this[_0xa1e101(0x197)]();this[_0xa1e101(0x52a)]=new Date()[_0xa1e101(0x422)](),this['_sendingTimer']=window[_0xa1e101(0x3ce)](()=>{const _0x12c0d7=_0xa1e101;this[_0x12c0d7(0x3b0)]();let _0x42c68f=null;switch(this['type']){case $[_0x12c0d7(0x3d6)]:{_0x42c68f=at(this[_0x12c0d7(0x521)],this[_0x12c0d7(0x168)],this[_0x12c0d7(0x1c7)],this[_0x12c0d7(0x276)],this[_0x12c0d7(0x4bd)]);break;}case $[_0x12c0d7(0x368)]:{this[_0x12c0d7(0x521)][_0x12c0d7(0x1ff)](_0x43be04=>_0x43be04['id']===se[_0x12c0d7(0x4e7)]['id'])?_0x42c68f=Ws(this[_0x12c0d7(0x521)],this['unitID'],this[_0x12c0d7(0x1c7)],this[_0x12c0d7(0x276)],this['_memberService']):_0x42c68f=at(this['_pendingMutations'],this[_0x12c0d7(0x168)],this[_0x12c0d7(0x1c7)],this['_revisionService'],this[_0x12c0d7(0x4bd)]);break;}default:throw new Error(_0x12c0d7(0x25c)+this[_0x12c0d7(0x24a)]+'\x20in\x20_schedule.');}const {changeset:_0x16620c,pendingMutations:_0x54b872}=_0x42c68f;this[_0x12c0d7(0x4f9)][_0x12c0d7(0x46b)](_0x16620c);const _0x957194=_0x54b872['length']?this['_injector'][_0x12c0d7(0x1bb)](B,this[_0x12c0d7(0x168)],this[_0x12c0d7(0x24a)],_0x16620c,_0x54b872,this['_handler']):this['_injector'][_0x12c0d7(0x1bb)](W,this[_0x12c0d7(0x168)],this[_0x12c0d7(0x24a)],_0x16620c,this[_0x12c0d7(0x4f9)]);_0x957194[_0x12c0d7(0x25b)](),this[_0x12c0d7(0x4f9)][_0x12c0d7(0x453)](this,_0x957194);},_0x45e25d);}[_0x58f906(0x197)](){const _0x308a50=_0x58f906;var _0x2d779e;const _0xba5a96=this[_0x308a50(0x47d)][_0x308a50(0x2bc)](L);return(_0x2d779e=_0xba5a96==null?void 0x0:_0xba5a96[_0x308a50(0x536)])!=null?_0x2d779e:Jt;}['resend'](){const _0x5de9f6=_0x58f906;throw new Error(_0x5de9f6(0x33d));}[_0x58f906(0x3b0)](){const _0x3969cd=_0x58f906;this[_0x3969cd(0x564)]!=null&&(clearTimeout(this[_0x3969cd(0x564)]),this[_0x3969cd(0x564)]=null);}[_0x58f906(0x571)](_0x592dd6){const _0xe816d=_0x58f906;return this[_0xe816d(0x3b0)](),this['_injector'][_0xe816d(0x1bb)](F,this[_0xe816d(0x168)],this['type'],null,this[_0xe816d(0x521)],this[_0xe816d(0x4f9)],_0x592dd6);}};k=z([m(0x4,a[_0x58f906(0x200)](a['Injector'])),m(0x5,a[_0x58f906(0x200)](_[_0x58f906(0x2e1)])),m(0x6,a[_0x58f906(0x200)](exports['LocalCacheService'])),m(0x7,a[_0x58f906(0x200)](q)),m(0x8,a[_0x58f906(0x3f7)]),m(0x9,a[_0x58f906(0x484)]),m(0xa,a[_0x58f906(0x304)]),m(0xb,_['ITransformService']),m(0xc,a[_0x58f906(0x497)]),m(0xd,a[_0x58f906(0x362)])],k);let W=class extends J{constructor(_0x151d1c,_0x39fb5c,_0x2e99ef,_0x178e21,_0x379721,_0x50ac61,_0x14b625,_0x3d5ad5,_0x42f670,_0x480cb1,_0x299afd){const _0x606b13=_0x58f906;super(_0x151d1c,_0x39fb5c,_0x2e99ef,[],_0x178e21,_0x3d5ad5,_0x299afd,_0x50ac61,_0x14b625),u(this,_0x606b13(0x53e),_0x606b13(0x19d)),(this[_0x606b13(0x375)]=_0x379721,this[_0x606b13(0x343)]=_0x42f670,this[_0x606b13(0x417)]=_0x480cb1);}[_0x58f906(0x2dd)](_0x2b3809){const _0x3e8b56=_0x58f906,_0x2763ce=this[_0x3e8b56(0x375)][_0x3e8b56(0x1bb)](B,this[_0x3e8b56(0x168)],this[_0x3e8b56(0x24a)],this[_0x3e8b56(0x3bf)],[_0x2b3809],this[_0x3e8b56(0x4f9)]);return _0x2763ce[_0x3e8b56(0x25b)](),_0x2763ce;}[_0x58f906(0x32d)](_0x1feefc){const _0x154108=_0x58f906;if(this[_0x154108(0x49b)](_0x1feefc))return this[_0x154108(0x375)][_0x154108(0x1bb)](x,this[_0x154108(0x168)],this[_0x154108(0x24a)],this[_0x154108(0x3bf)],[],null,[_0x1feefc],this[_0x154108(0x4f9)]);try{const _0x358cf1=this[_0x154108(0x417)]['transformChangesets']([_0x1feefc],[this[_0x154108(0x3bf)]],!0x1);if(_[_0x154108(0x28f)](_0x358cf1)){const {c1Prime:_0x201614,c2Prime:_0x3d2f1d}=_0x358cf1;this[_0x154108(0x479)](_0x201614[0x0]),_0x3d2f1d[0x0]['baseRev']=this['_getCurrentRevision']();const _0x821fbd=this['_injector'][_0x154108(0x1bb)](W,this[_0x154108(0x168)],this[_0x154108(0x24a)],_0x3d2f1d[0x0],this[_0x154108(0x4f9)]);return _0x821fbd[_0x154108(0x25b)](),_0x821fbd;}return this[_0x154108(0x571)](!0x1);}catch(_0x22feb6){return this[_0x154108(0x343)][_0x154108(0x1cc)](_0x22feb6),this['_onConflict'](!0x1);}}[_0x58f906(0x40b)](_0x494f07){const _0x4d103f=_0x58f906,_0x1d72d5=this['_revisionService'][_0x4d103f(0x204)](this[_0x4d103f(0x168)]);if(_0x494f07[_0x4d103f(0x577)]<_0x1d72d5-0x1)return this;if(this[_0x4d103f(0x49b)](_0x494f07))return this['_injector'][_0x4d103f(0x1bb)](x,this[_0x4d103f(0x168)],this[_0x4d103f(0x24a)],null,[],this['_awaitingChangeset'],[],this[_0x4d103f(0x4f9)]);this['_incrementRevisionNumber']();const _0x4610f0=this[_0x4d103f(0x375)]['createInstance'](ie,this[_0x4d103f(0x168)],this[_0x4d103f(0x24a)],this[_0x4d103f(0x4f9)]);return _0x4610f0[_0x4d103f(0x25b)](),_0x4610f0;}[_0x58f906(0x370)](_0x2f2afe){const _0x55e958=_0x58f906;return this[_0x55e958(0x571)](!!(_0x2f2afe!=null&&_0x2f2afe[_0x55e958(0x1e1)]));}['toggleOffline'](){const _0xe06441=_0x58f906;return this['_injector']['createInstance'](G,this[_0xe06441(0x168)],this['type'],this[_0xe06441(0x3bf)],[],this[_0xe06441(0x4f9)]);}[_0x58f906(0x4ae)](){return this;}['resend'](){const _0x393ee5=_0x58f906;this[_0x393ee5(0x4f9)][_0x393ee5(0x46b)](this['_awaitingChangeset']);}[_0x58f906(0x571)](_0x5ba40d){const _0x424dca=_0x58f906;return this[_0x424dca(0x375)][_0x424dca(0x1bb)](F,this[_0x424dca(0x168)],this['type'],this[_0x424dca(0x3bf)],[],this[_0x424dca(0x4f9)],_0x5ba40d);}};W=z([m(0x4,a[_0x58f906(0x200)](a['Injector'])),m(0x5,a[_0x58f906(0x200)](_[_0x58f906(0x2e1)])),m(0x6,a[_0x58f906(0x200)](exports[_0x58f906(0x533)])),m(0x7,a[_0x58f906(0x484)]),m(0x8,a[_0x58f906(0x3f7)]),m(0x9,_[_0x58f906(0x20c)]),m(0xa,a[_0x58f906(0x362)])],W);let B=class extends J{constructor(_0x3c18f5,_0xc864c5,_0xf5352e,_0x10180a,_0x2b505e,_0x192856,_0x3b1af9,_0x2d48d9,_0x171a17,_0x5eec6f,_0x238e5f,_0x15c7c7){const _0x27815b=_0x58f906;super(_0x3c18f5,_0xc864c5,_0xf5352e,_0x10180a,_0x2b505e,_0x171a17,_0x15c7c7,_0x3b1af9,_0x2d48d9),u(this,_0x27815b(0x53e),_0x27815b(0x273)),(this['_injector']=_0x192856,this[_0x27815b(0x343)]=_0x5eec6f,this[_0x27815b(0x417)]=_0x238e5f);}['appendMutation'](_0x54791c){const _0x54be84=_0x58f906;return this[_0x54be84(0x521)][_0x54be84(0x166)](_0x54791c),this;}[_0x58f906(0x32d)](_0x13737e){const _0x48f1f0=_0x58f906;if(this[_0x48f1f0(0x49b)](_0x13737e))return this['_injector']['createInstance'](x,this[_0x48f1f0(0x168)],this[_0x48f1f0(0x24a)],this[_0x48f1f0(0x3bf)],this[_0x48f1f0(0x521)],null,[_0x13737e],this[_0x48f1f0(0x4f9)]);try{const _0x2f20a5=this[_0x48f1f0(0x417)][_0x48f1f0(0x461)]([_0x13737e],[this['_awaitingChangeset']],!0x1);if(_[_0x48f1f0(0x28f)](_0x2f20a5)){const {c1Prime:_0xa59d11,c2Prime:_0x496208}=_0x2f20a5,_0x27e8c9=this[_0x48f1f0(0x417)][_0x48f1f0(0x4cc)](_0xa59d11[0x0],this[_0x48f1f0(0x521)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x27e8c9)){const {c1Prime:_0x12f431,m2Prime:_0x42f625}=_0x27e8c9;return this[_0x48f1f0(0x479)](_0x12f431),_0x496208[0x0][_0x48f1f0(0x49c)]=this['_getCurrentRevision'](),this[_0x48f1f0(0x375)]['createInstance'](B,this[_0x48f1f0(0x168)],this[_0x48f1f0(0x24a)],_0x496208[0x0],_0x42f625,this['_handler']);}throw _0x27e8c9['error'];}throw _0x2f20a5[_0x48f1f0(0x1cc)];}catch(_0x1adfce){return this['_logService'][_0x48f1f0(0x1cc)](_0x1adfce),this[_0x48f1f0(0x571)](!0x1);}}[_0x58f906(0x40b)](_0x309385){const _0x35bb52=_0x58f906;if(this[_0x35bb52(0x49b)](_0x309385))return this[_0x35bb52(0x375)][_0x35bb52(0x1bb)](x,this['unitID'],this['type'],null,this[_0x35bb52(0x521)],this[_0x35bb52(0x3bf)],[],this[_0x35bb52(0x4f9)]);this[_0x35bb52(0x48c)]();const _0xcd6e71=this['_injector'][_0x35bb52(0x1bb)](k,this[_0x35bb52(0x168)],this[_0x35bb52(0x24a)],this[_0x35bb52(0x521)],this[_0x35bb52(0x4f9)]);return _0xcd6e71[_0x35bb52(0x495)](),_0xcd6e71[_0x35bb52(0x25b)](),_0xcd6e71;}['onRemoteRej'](_0x59777b){const _0x3b8ff2=_0x58f906;return this[_0x3b8ff2(0x571)](!!(_0x59777b!=null&&_0x59777b[_0x3b8ff2(0x1e1)]));}['toggleOffline'](){const _0x5e8dc9=_0x58f906;return this[_0x5e8dc9(0x375)]['createInstance'](G,this[_0x5e8dc9(0x168)],this[_0x5e8dc9(0x24a)],this[_0x5e8dc9(0x3bf)],this[_0x5e8dc9(0x521)],this[_0x5e8dc9(0x4f9)]);}[_0x58f906(0x4ae)](){return this;}['resend'](){const _0x48dd27=_0x58f906;this[_0x48dd27(0x4f9)][_0x48dd27(0x46b)](this[_0x48dd27(0x3bf)]);}[_0x58f906(0x571)](_0x131abf){const _0x20eb6c=_0x58f906;return this[_0x20eb6c(0x375)][_0x20eb6c(0x1bb)](F,this[_0x20eb6c(0x168)],this[_0x20eb6c(0x24a)],null,this[_0x20eb6c(0x521)],this[_0x20eb6c(0x4f9)],_0x131abf);}};B=z([m(0x5,a[_0x58f906(0x200)](a['Injector'])),m(0x6,a[_0x58f906(0x200)](_[_0x58f906(0x2e1)])),m(0x7,a[_0x58f906(0x200)](exports[_0x58f906(0x533)])),m(0x8,a[_0x58f906(0x484)]),m(0x9,a[_0x58f906(0x3f7)]),m(0xa,_[_0x58f906(0x20c)]),m(0xb,a[_0x58f906(0x362)])],B);let F=class extends J{constructor(_0x146019,_0x4a1a4c,_0x19de3a,_0x202455,_0x52a92e,_0x394cf5=!0x1,_0x2e9806,_0xf7bb39,_0x27c175,_0x1c24d,_0x30edd1,_0x5b6fdc,_0xb19a0f){const _0x51a05a=_0x58f906;super(_0x146019,_0x4a1a4c,_0x19de3a,_0x202455,_0x52a92e,_0xf7bb39,_0x27c175,_0x30edd1,_0x1c24d),u(this,_0x51a05a(0x53e),_0x51a05a(0x569)),(this[_0x51a05a(0x1e3)]=_0x394cf5,this[_0x51a05a(0x2e0)]=_0x2e9806,this[_0x51a05a(0x3ad)]=_0x5b6fdc,this[_0x51a05a(0x436)]=_0xb19a0f,this['_showConflictNotification'](),this[_0x51a05a(0x211)](),this[_0x51a05a(0x1ce)]());}['appendMutation'](){return this;}[_0x58f906(0x32d)](){return this;}[_0x58f906(0x40b)](){return this;}['onRemoteRej'](){return this;}[_0x58f906(0x3a3)](){return this;}[_0x58f906(0x4ae)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x8af96e=_0x58f906;this[_0x8af96e(0x3e5)][_0x8af96e(0x2ff)](this[_0x8af96e(0x168)],this['type'],null,[]);}['_showConflictNotification'](){const _0x1f83d0=_0x58f906;this[_0x1f83d0(0x1e3)]?this[_0x1f83d0(0x436)][_0x1f83d0(0x246)]({'title':this['_localeService']['t'](_0x1f83d0(0x55f)),'content':this[_0x1f83d0(0x3ad)]['t'](_0x1f83d0(0x207)),'type':'error','duration':0x0}):this[_0x1f83d0(0x436)][_0x1f83d0(0x246)]({'title':this[_0x1f83d0(0x3ad)]['t'](_0x1f83d0(0x194)),'content':this[_0x1f83d0(0x3ad)]['t'](_0x1f83d0(0x3c4)),'type':_0x1f83d0(0x1cc),'duration':0x0});}[_0x58f906(0x1ce)](){const _0x56bf53=_0x58f906;this[_0x56bf53(0x2e0)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};F=z([m(0x6,a[_0x58f906(0x200)](a[_0x58f906(0x3ef)])),m(0x7,a['ICommandService']),m(0x8,a[_0x58f906(0x362)]),m(0x9,a[_0x58f906(0x200)](exports['LocalCacheService'])),m(0xa,a[_0x58f906(0x200)](_['RevisionService'])),m(0xb,a[_0x58f906(0x200)](a[_0x58f906(0x36a)])),m(0xc,A[_0x58f906(0x541)])],F);function _0x4c51(){const _0x2244d8=['setTimeout','_getUploadFileURL','RxDisposable','setCurrentUser','top','startTime','reconnect','pipe','UNIVER_SHEET','number','getSheetBlock','LocalUndoRedoService','_change$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','FETCH_MISSING','registerComponent','_http','SetWorksheetActivateCommand','FileId','editingUnit','_onCursorUpdate','startColumn','_telemetryService','_localCacheService','getUniverSheetInstance','PERMISSION_REJ','distinctUntilChanged','_onCursorDelete','color','_onJoinRoomEvent','fetchThroughInterceptors','_onCombEvent','has','IPermissionService','_getAnchorBounding','_render','LEAVE','closePath','ImageIoService','setAlpha','INVALID_ARGUMENT','ILogService','_getAPIPrefixPath','current','image/bmp','key','/object','call','ranges','_updateURLWithCurrentState','_handleHover','isActive','HTTPRequest','UPDATE_CURSOR','LOCAL_CACHE_INTERVAL','getColor','get','beginPath','WorkbookEditablePermission','fetching\x20missing\x20changesets\x20from\x20','dispose$','onRemoteAck','POST','COLLAB_SUBMIT_CHANGESET_URL_KEY','_getCurrentRevision','isInternalEditorID','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','/object/','CHANGESET_ACK','LICENSE_MAX_UNITS_EXCEEDED','IUIPartsService','ONLINE','enableAuthServer','_transformService','clear','/-/object/-/batch_allowed','_labelPosition','_initRequestHeader','_docSkeleton','asObservable','univerjs-icon\x20univerjs-icon-','UniverCollaborationClientPlugin','_acknowledgedAwaitingChangeset','hide','getTime','update','AWAITING_WITH_PENDING','mutations','AWAITING','_scheduleCollaborationTimeoutTimer','[CollaborationSession]','_drawAnchor','_startDocCollabCursor','HEARTBEAT_INTERVAL_KEY','IURLService','collaboration.closeRoom','liveShareOperation','1em','image/png','#fff','_getRedoStack','Injector','transform','IAuthzIoService','_notificationService','throttleTime','COMMENT_UPDATE','removeMember','objectID','create','_startTelemetryCollaborationNewChangeset','_rescheduleHeartbeat','JSONX','_onMessage','workbook','_collaborationSessionService','_event$','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformRemoteChangesetByIMECache','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','unknown','session.room-full','@univerjs/engine-formula','_socket$','csAckEvent','HttpExport','unshift','USERS_LEAVE','ISnapshotServerService','updatePermissionObjEvent','originalMeta','_imageSourceCache','hidden','onStateChange','_shouldReportTelemetry','deserializeToCombResponse','onMouseMove','getCurrentSelections','action','_drawRectRange','_selfUnitIDs','replace','SNAPSHOT_INVALID_SNAPSHOT','c2Prime','_cursor','dispose','data','transformChangesets','toString','LIVESHARE_REQUEST_HOST','JOIN','JOINING','_commentUpdate$','IContextService','ERROR_IMAGE_TYPE','DocCollaborationEntity','post','onSendChangeset','ImageUploadStatusType','roomMembers','IHTTPImplementation','pushState','_waitForHeartbeatResponse','252320ngybhP','headers','set','findNodePositionByCharIndex','_onLocalMutation','getTypeOfUnitDisposed$','onRendered','labelPosition','_executeRemoteChangeset','height','flatMap','onTransformIME','_configService','_saveTaskMap','url','socketService','_getSnapshotAPIPrefix','unit','collaboration_new_changeset','ICommandService','_decreaseWaiting','Rectangle','_changesetReqId','542077vrCEKZ','subunit','SHOULD_CLOSE_CONN','_transformIMECache','_incrementRevisionNumber','responseType','NodePositionConvertToCursor','_unitStatus','UserManagerService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_initUnitPermissionChange','uploadFileServerUrl','/fetchmissing?from=','_schedule','AUTHZ_URL_KEY','IUniverInstanceService','copyFileMeta','selections','getImageSourceCache','_checkMissing','baseRev','_name','prototype','797706CthHQL','InsertRangeMoveRightCommandId','isTransformMutationFailure','awaitingChangeset','deserializeRangeWithSheet','YUUMI_SUBSCRIPTION_NOT_FOUND','OTHER_CLIENTS_EDITING','univer-online','deepClone','fillRule','fetchMissingChangesets','m1Prime','loadSheet','465216VvHEyO','_unlockTransition','toggleOnline','univer-pro.collaboration-client-socket-service','transformIMECache','_ws','roomMembers$','getSheetObject','collab-text-anchor-','on-line-single_clip0_910_349','subscribe','exhaustSavingTask','length','@univerjs-pro/license','@univerjs/design','CONNECTOR_DATA_TOO_LARGE','_cursorShapes','_memberService','error$','_waitCount','handleInsertRow','COMPRESS_MUTATION_APPLY','UNIVER_SLIDE','resend','some','Unknown\x20user','socket$','getAncestorScale','_updateLocalCursor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','setParam','HELLO','transformMutationsWithChangeset','_retryCount','collaboratorID','localeService','addEventListener','textEncoder','subUnitId','SnapshotServerOverHTTPService','@univerjs/docs','_ensureSubject','fromEvent','Tools','rev','getMergeData','_clearRedo','deleteCollaborator','_startCollaboration','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','session','FETCH_MISS','_unitOnClients','_createHandler','FromArray','onCommentUpdate','_beforeCloseService','getUnitType','CollaborationEvent','RichTextEditingMutation','activeSheet$','DesktopCollaborationStatusDisplayController','...','mapDocumentTypeToUniverType','@univerjs/sheets','_getSaveTimeout','_initCloseConn','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_startSheetCollabCursor','_listenToOnlineEvent','INTERNAL_ERROR','_registerDependencies','getRelativeToViewportCoord','getWorkbookSelections','compose','_draw','NOT_FOUND','_handler','fillText','PENDING','url(#on-line-single_clip0_910_349)','interceptor','SEND_CHANGESET_TIMEOUT','debounce','createIdentifier','joinRsp','toStringTag','defineProperty','_roomMembers','replaceState','getItem','UNDEFINED','Error','/new_changes','map','_scheduleClearOtherTimer','?size=','readAsDataURL','_remoteChangesetQueue','x-univer-host','textRanges','/role','[CollaborationEntity]','liveShareNewHost','name','min','pluginName','HEARTBEAT_INTERVAL','DocStateChangeManagerService','setWaitCount','MessageType','addObject','_replayCachedMutations','div','LICENSE_DISTRO_REJECTED','changesets','onlineStatusTitle','_pendingMutations','_socketService','shareReplay','createSocket','_onRefRangeChange','xlink:href','#FFF','fetchMiss','_docStateChangeManagerService','_scheduleTimestamp','_online','_localStorageService','/resources','DEFAULT_FILE_NAME','memberID','hasOwnProperty','_throwTelemetryCollaborationNewChangeset','permissionRejEvent','LocalCacheService','purple300','idSuffix','sendChangesetTimeout','[FetchMissState]','_getDownloadEndpointURL','collabCursorState$','entries','\x20to\x20','contains','_state$','status','IDLE','LIVESHARE_TERMINATE','INotificationService','extend','_setupBeforeClosingHandler','APPLY_REJECT','TRANSFORM_CHANGE_OBSERVABLE_TYPE','onlineStatus','_hovered','string','backgroundColor','_config','_socketReady','_undoStacks','IMessageService','WebSocketService','_collabCursorController','Tooltip','_toggleOffline','newCsEvent','unitId','getCurrentUnitForType','16326680OvMjov','black','_assignedColors','_socket','change$','RECV','OFFLINE','_cachedData','_createInitialStateImpl','CHANGESET_REJ','permission.title','collabStatus.conflict','_shapes','_handleLeaveEvent','path','_sendingTimer','CollaborationStatus','list','rng','[CollaborationSessionService]:\x20socket\x20error','conflict','getUnitId','_changesetSessionId','collabStatus.syncing','defs','\x0aAfter:\x20','/allowed','_collabCursorState$','_onConflict','combineLatest','_hideTimer','currentTheme$','univer-online-status-title','_collaborationTimeoutTimer','revision','encodeURIComponent','now','isArray','ALREADY_EXISTS','_retryConnectingTimer','AuthzIoHttpService','send','_backgroundColor','infoRsp','_toggleOnline','CollaborationController','INGEST','setInterval','function','getFocusedUnit','collabStatus.notCollab','storage','pending','push','onCommandExecuted','unitID','updatePermissionPoint','_send','toRgbString','registerHTTPInterceptor','_initCommandExecutedListener','focused$','@univerjs/drawing','body','_docSyncEditingCollabCursorService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_transformUndoredo','history','SheetsSelectionsService','/universer-api/authz','_clearHeartbeatTimer','HEADER_MENU','roles','split','on-line-single','_updateCollabCursors','collaborators','_transformStack','from','setShapeProps','encode','then','_telemetryInfo','handleMoveRange','138zpOiXO','MSG_FOR_ERROR','_applyRemoteChangeset','snapshot','transformMutation','_docSkeletonManagerService','_snapshotServerService','forEach','close','UniverIcon','InsertRangeMoveDownCommandId','pauseCollaboration','event$','touchDependencies','listCollaborators','conflict.title','_disabled','image/jpg','_getSendChangesetTimeout','Module','getSkeleton','save','DocIMEInputManagerService','_lockTransition','awaiting','save\x20fail\x20reason\x20is\x20','@univerjs/engine-render','image/gif','saveChangeset','_onRemoteChangeset','apply','_handleEvent','ThresholdInterceptorFactory','_removeCollabCursors','/universer-api/oidc/authpage','_createInitialState','_transformRemoteChangesetByIMECache','resourceIDs','newValue','batchAllowed','RefRangeService','disposeUnit','getTypeOfUnitAdded$','@univerjs/ui','_tryEnsureSocket','width','transformSelections','_docTransformIMECacheService','LIVESHARE_NEW_HOST','MUTATION','\x0aCurrent:\x20','getCollabEntity','off-line-single','[CollaborationSessionService]','createInstance','Rect','_exhaustRemoteChangesetQueue','_updateState','startRow','_eventUnsubscribe','/universer-api/comb','toDisposable','_color','HEARTBEAT','collaMsg','includes','_univerInstanceService','getLatestCsReqIdBySid','_substituteRedoStack','enableSingleActiveInstanceLock','isTransformMutationsWithChangesetFailure','error','SheetCollabCursorShape','_disableEditing','_docTransformSelectionsService','duration','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_colorIndex','capture','popstate','_getMergeRange','file','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','PERMISSION_DENIED','getUnitStatus$','_socketMessageSubscription','Vector2','SessionStatus','[OfflineState]:\x20received\x20rejection.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','SNAPSHOT_URL_KEY','setItem','isPermissionRej','cursorInfo','_isPermissionRej','_anchor','eventID','substring','debug','handleInsertRangeMoveDown','next','sessionStatus','put','10bhOuoY','_scheduleSaving','switchMap','randomUUID','UNKNOWN_CODE','M0\x200H16V16H0z','_renderManagerService','updateCollaborator','XHRHTTPImplementation','_HTTPService','transformUndoRedo','unitId\x20is\x20not\x20found','add','NEW_CHANGESETS','Undefined','_listenToOfflineEvent','_cursors','handleInsertRangeMoveRight','serializeCombRequest','every','Inject','off-line-single_clip0_910_343','visibilitychange','ENSURE_SNAPSHOT_EXECUTION','getCurrentRevOfUnit','_messageService','_urlService','permission.content','Subject','SheetCollaborationEntity','_saveCache','setConfig','ITransformService','_status$','NO_OTHER_CLIENTS_EDITING','target','Workbook','_clearLocalCache','isEditing','_getLoginPath','TEXT_RANGE_LAYER_INDEX','10814tDgFAJ','_scene','univer-online-status-icon','?url=','_substituteUndoStack','_entityInit$','[SyncedState]:\x20received\x20rejection.','fillStyle','SetSelectionsOperation','allowed','SUCCUSS','_collaborationController','_undoRedoService','IBeforeCloseService','_updateSubUnitFromURLParams','LOGIN_URL_KEY','_sheetSkeletonManagerService','_scheduleHeartbeat','_getAPIPrefix','unsubscribe','ImageSourceType','_httpService','_onConnectionOpen','actions','LIVESHARE_OPERATION','_heartbeatTimer','currentColor','takeUntil','result','MergeInterceptorFactory','YUUMI_UNABLE_LOAD_URL','SetTextSelectionsOperation','catch','gold400','loadOfflineData','_fetchMissChangesets','transformByState','_hover','reduce','row','UniverInstanceType','loginUrlKey','getCurrent','onlineStatusIcon','_compressMutationService','_getScale','Plugin','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','c1Prime','show','with','DocSelectionManagerService','telemetry\x20info\x20is\x20not\x20initialized','type','authzUrl','_registerRenderDependencies','getCurrentUser','href','ERROR_IMAGE','handleIRemoveCol','_instanceService','fill','873bjcaFL','ICollaborationSocketService','_clearCollaborationTimeoutTimer','_getSheetObject','SheetSkeletonManagerService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','routeKey','_removeClearOtherTimer','_updateLocalCache','[PendingState]:\x20unhandled\x20univer\x20type:\x20','SheetPermissionInitController','_tryReconnect','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_sheetTransformSelectionsService','_textBubble','_syncEditingCollabCursorService','commentUpdate$','code','ACTIVE_UNIT_EVENT_CHANNEL','_singleActiveUnitService','registerRenderModule','none','getCollabCursors$','_session','measureText','_context','@univerjs/docs-ui','concat','round','requestParams','_range','getRoom','awaiting_with_pending','members','sheets','_revisionService','auth.needGotoLoginAlert','location','Disposable','clearInterval','displayName','_onRemoteACK','_entities','getRenderById','_sendHeartbeatTimer','createElement','WebURLService','_transitionLocked','tag','_themeService','DisposableCollection','getCellPositionByOffset','online','reqId','/universer-api/stream/file/upload','sheetID','failed\x20to\x20apply\x20missed\x20changesets!','_clearOtherTimers','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','use','isTransformChangesetsSuccess','/collaborator','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','origin','blue400','BuiltInUIPart','CommandType','_clearUndo','_transformSelections','univer-online-status','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','Warning','makeDirty','BASE64','closeSession','_state','stringify','MoveRangeCommandId','handleDeleteRangeMoveUp','LICENSE_IMPORT_SIZE_EXCEEDED','method','_transformUndoRedoStack','onMissingChangesets','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','onStarting','_cursorInfo$','incrementRevOfUnit','_initResize','UUID','_commandService','LIVESHARE_FETCH_OPERATIONS','bottom','disposeWithMe','evenodd','csRejEvent','onSyncEditingCollabCursor','children','icon','SnapshotService','disableLocalCache','_members','LICENSE_EXPORT_SIZE_EXCEEDED','getSheetBySheetId','Error\x20on\x20receiving\x20event','_getSignURL','getConfig','params','delay','_snapshotService','ThemeService','49384pJOlNX','\x20-\x20','sessionStatus$','onMissedChangesetFetched','size','getMember','max','saveSnapshot','_type','getMemberID','_onUserJoin','getUnitOnRev','title','getParam','getDocRanges','_candidateSocket','red300','HEARTBEAT_TIMEOUT','HEARTBEAT_TIMEOUT_KEY','TOO_MANY_REQUESTS','state$','Optional','delete','init','getSheetId','@univerjs/core','getInterceptPoints','uni.network.url-service','appendMutation','column','/universer-api/snapshot/','_permissionService','RevisionService','font','_id','svg','forwardRef','IRenderManagerService','COLORS','_sessions','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','offline','CollaborationEntity','className','IRemoteInstanceService','EffectRefRangId','indexOf','drawWith','assignAColorForMemberID','UNRECOGNIZED','Shape','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_getCtorByUniverType','COMPRESS_MUTATION_SEND','SNAPSHOT_SERVER_URL_KEY','rxjs','replaceTextRanges','setUndoRedoMutationParamsCache','_onOffline','transformRemoteChangeset','getRangePointData','whenReady','updateOfflineData','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_initStatusComponent','[SyncedState]:\x20received\x20acknowledgement.','_updateStatus','IConfigService','bind','lineTo','parse','ColorKit','_sendHeartbeat','sid','collabSubmitChangesetUrl','getCollabEntity$','_init','message$','saveSheetBlock','m2Prime','useObservable','COLLAB_SUBMIT_CHANGESET_URL','_onConnectionFailed','addImageSourceCache','executeCommand','values','_unitID','assign','_handleJoinEvent','_createSocket','CollaborationSocketService','engine','arc','slice','not_collab','HttpImport','hovered','_colorAssignService','_syncEditingCollabCursor','onTransformChange$','UNIVER_PROJECT','cmd','serializeRangeWithSheet','getValue','_handleHeartbeatEvent','_loadDoc','InsertSheetMutation','DeleteRangeMoveUpCommandId','onRemoteChangeset','transformStack\x20failed!','onTransformSelections','_transformPreviousActiveRange','_refRangeService','isTransformMutationsWithChangesetSuccess','_sessionStatus$','subscribeEvent','complete','getCoordByCell','url(#$1','reverse','status$','UnitEmbedded','NOT_COLLAB','CONFLICT','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_drawTextRange','HTTPService','Univer','debounceTime','sheetId','_logService','getActiveSheet','close$','_stopTelemetryCollaborationNewChangeset','signUrlServerUrl','verdancy600','_setupSubUnitSync','translate(.97)','UNIVER_COLLABORATION_CLIENT_PLUGIN','_onUserLeave','COMPLETION_FINISHED','_uiPartsService','take','_timeoutTimer','APPLY_NON_SEQUENTIAL_REVISION','_anchorDot','SUBMIT_CHANGESET','userID','filter','startsWith','USERS_ENTER','@univerjs/network','handleInsertCol','_onRemoteRejected','/block/','open$','_getUndoStack','urlChange$','range','restore','FAIL','IUndoRedoService','updateMember','initWorkbookPermissionChange','getOwnPropertyDescriptor','_joinRoom','object','UNIVER_DOC','CollaborationSessionService','LocaleService','getImage','/unit/','_queuedRemoteChangesets','colorChannel1','reject','onRemoteRej','runRefRangeMutations','connection\x20error','RegularPolygon','SNAPSHOT_HAS_BEEN_REMOVED','_injector','_userManagerService','stopTime','YUUMI_RATE_OVER_LIMIT','BehaviorSubject','parseProtocolChangeset','@univerjs/sheets-ui','CHANGESET_REVISION_CONFILICT','getUnit','text','[DataLoaderController]','APPLY_DUPLICATED','_collaborationPaused','_replaceFileID','objectActions','onPointerEnter$','DataLoaderController','merge','useDependency','_collabSessionService','resize','univer-offline','registerRefRange','VIEW_MAIN','_onFetchMissResult','objectType','attrs','_submitChangeset','roomInfos','@univerjs/rpc','_removeRoom','APPLY_PERMISSION_DENIED','_initMergeInterceptor','_initEventListeners','[CollaborationState]:\x20apply\x20error!','getVpScrollXYInfoByPosToVp','socket\x20close','resolve','OffLineSingle','session.collaboration-timeout','concatMap','SetDocZoomRatioOperation','_redoStacks','getUndoRedoMutationParamsCache','CompressMutationService','getOwnPropertySymbols','toggleOffline','InsertColCommandId','requireSession','toLowerCase','generateRandomId','currentSkeleton$','enableLocalCache','cursorInfo$','_onRecvEvent','_refreshCollabCursors','_localeService','[OfflineState]:\x20received\x20changeset.','_commentService','_clearScheduledTask','moveTo','[OfflineState]:\x20received\x20acknowledgement.','random','RemoveColCommandId','_roomMembers$','defIds','doc.mutation.rich-text-editing','searchParams','append','APPLY_REVISION_CONFILICT','selection','clearTimeout','DeleteRangeMoveLeftCommandId','socket\x20open.','_awaitingChangeset','UNIVER_UNKNOWN','UnitSnapshot','endColumn','&to=','conflict.content','CollaborationSession','react','collaboration-session-retry','PSEUDO_FETCH_MISSING_RESULT','VIEWPORT_KEY','LOCAL_CACHE_INTERVAL_KEY','collab-text-range-','handleDeleteRangeMoveLeft','syncEditingCollabCursor'];_0x4c51=function(){return _0x2244d8;};return _0x4c51();}let G=class extends J{constructor(_0x1a840a,_0x250ac2,_0x224f6f,_0x1020fd,_0x395738,_0x3c63f0,_0x16d73a,_0x245da8,_0x486112,_0x483a0a){const _0x649eb5=_0x58f906;super(_0x1a840a,_0x250ac2,_0x224f6f,_0x1020fd,_0x395738,_0x486112,_0x483a0a,_0x16d73a,_0x245da8),u(this,_0x649eb5(0x53e),_0x649eb5(0x2ea)),this[_0x649eb5(0x375)]=_0x3c63f0;}['appendMutation'](_0x211a73){const _0x4d2922=_0x58f906;return this[_0x4d2922(0x521)][_0x4d2922(0x166)](_0x211a73),this[_0x4d2922(0x25b)](),this;}[_0x58f906(0x32d)](_0x23b04e){const _0x5935ce=_0x58f906;throw new Error(_0x5935ce(0x3ae));}[_0x58f906(0x40b)](){const _0x3a6327=_0x58f906;throw new Error(_0x3a6327(0x3b2));}[_0x58f906(0x370)](){const _0x9e103c=_0x58f906;throw new Error(_0x9e103c(0x1dd));}[_0x58f906(0x3a3)](){return this;}[_0x58f906(0x4ae)](){const _0x4c6f66=_0x58f906,{_injector:_0x5b3729,_pendingMutations:_0x1e6b24,_awaitingChangeset:_0x129d65,unitID:_0x319abb,_handler:_0x4a0a5b,type:_0x544360}=this,_0x497bed=Ut(_0x5b3729,_0x319abb,_0x544360,_0x129d65,_0x1e6b24,_0x4a0a5b);return _0x497bed instanceof k?_0x497bed['_schedule']():(_0x497bed instanceof B||_0x497bed instanceof W)&&_0x497bed[_0x4c6f66(0x4c3)](),_0x497bed;}[_0x58f906(0x4c3)](){const _0x13432e=_0x58f906;throw new Error(_0x13432e(0x1de));}};G=z([m(0x5,a['Inject'](a[_0x58f906(0x433)])),m(0x6,a[_0x58f906(0x200)](_[_0x58f906(0x2e1)])),m(0x7,a[_0x58f906(0x200)](exports[_0x58f906(0x533)])),m(0x8,a[_0x58f906(0x484)]),m(0x9,a[_0x58f906(0x362)])],G);let x=class extends J{constructor(_0x13869e,_0x2fa134,_0xb26b7d,_0x35c4da,_0x5f122a,_0x7ba583,_0x373bb7,_0x542a93,_0x531aff,_0xf94e2e,_0x2067f2,_0x1a492f,_0x335b8b,_0x255295){const _0x18aa9b=_0x58f906;super(_0x13869e,_0x2fa134,_0xb26b7d,_0x35c4da,_0x373bb7,_0x1a492f,_0x335b8b,_0x531aff,_0xf94e2e),u(this,_0x18aa9b(0x53e),'fetch_missing'),(this[_0x18aa9b(0x420)]=_0x5f122a,this[_0x18aa9b(0x36d)]=_0x7ba583,this[_0x18aa9b(0x375)]=_0x542a93,this[_0x18aa9b(0x343)]=_0x2067f2,this[_0x18aa9b(0x417)]=_0x255295);}['onMissedChangesetFetched'](_0x136953){const _0x3e2fda=_0x58f906;try{const _0x32aff6=[..._0x136953,...this['_queuedRemoteChangesets']],_0x3d3c0c=[this[_0x3e2fda(0x3bf)]||this[_0x3e2fda(0x420)]]['filter'](_0x557a54=>!!_0x557a54);let _0x53872d,_0x1aa975;if(_0x3d3c0c[_0x3e2fda(0x4b8)]){const _0x132d95=this[_0x3e2fda(0x417)][_0x3e2fda(0x461)](_0x32aff6,_0x3d3c0c,!0x1);if(!_['isTransformChangesetsSuccess'](_0x132d95))throw _0x132d95[_0x3e2fda(0x1cc)];_0x53872d=_0x132d95[_0x3e2fda(0x245)],_0x1aa975=_0x132d95[_0x3e2fda(0x45d)];}else _0x53872d=_0x32aff6,_0x1aa975=[];let _0x5e73fc=this['_pendingMutations'];_0x53872d['forEach'](_0x2f2763=>{const _0x23ea97=_0x3e2fda;let _0x129d80;if(_0x5e73fc['length']){const _0x4d5942=this[_0x23ea97(0x417)][_0x23ea97(0x4cc)](_0x2f2763,_0x5e73fc);if(!_[_0x23ea97(0x332)](_0x4d5942))throw _0x4d5942['error'];_0x129d80=_0x4d5942['c1Prime'],_0x5e73fc=_0x4d5942[_0x23ea97(0x310)];}else _0x129d80=_0x2f2763;this[_0x23ea97(0x479)](_0x129d80);}),this[_0x3e2fda(0x420)]&&this[_0x3e2fda(0x48c)](),this[_0x3e2fda(0x3bf)]&&_0x1aa975[_0x3e2fda(0x4b8)]&&(_0x1aa975[0x0][_0x3e2fda(0x49c)]=this['_getCurrentRevision']());let _0x3dc723;if(this[_0x3e2fda(0x3bf)]&&_0x5e73fc[_0x3e2fda(0x4b8)]!==0x0)_0x3dc723=this[_0x3e2fda(0x375)]['createInstance'](B,this[_0x3e2fda(0x168)],this[_0x3e2fda(0x24a)],_0x1aa975[0x0],_0x5e73fc,this['_handler']);else{if(this['_awaitingChangeset']&&_0x5e73fc[_0x3e2fda(0x4b8)]===0x0)_0x1aa975[0x0][_0x3e2fda(0x49c)]=this[_0x3e2fda(0x40e)](),_0x3dc723=this[_0x3e2fda(0x375)]['createInstance'](W,this[_0x3e2fda(0x168)],this[_0x3e2fda(0x24a)],_0x1aa975[0x0],this['_handler']);else{if(_0x5e73fc[_0x3e2fda(0x4b8)]!==0x0){const _0x5c98c5=this[_0x3e2fda(0x375)][_0x3e2fda(0x1bb)](k,this[_0x3e2fda(0x168)],this[_0x3e2fda(0x24a)],_0x5e73fc,this[_0x3e2fda(0x4f9)]);_0x5c98c5['_schedule'](),_0x3dc723=_0x5c98c5;}else _0x3dc723=this['_injector'][_0x3e2fda(0x1bb)](ie,this[_0x3e2fda(0x168)],this[_0x3e2fda(0x24a)],this[_0x3e2fda(0x4f9)]);}}return _0x3dc723[_0x3e2fda(0x25b)](),_0x3dc723;}catch(_0x2bf157){return this[_0x3e2fda(0x343)][_0x3e2fda(0x1cc)](_0x3e2fda(0x537),_0x3e2fda(0x28b),_0x2bf157),this[_0x3e2fda(0x375)]['createInstance'](F,this[_0x3e2fda(0x168)],this[_0x3e2fda(0x24a)],this[_0x3e2fda(0x3bf)],this[_0x3e2fda(0x521)],this[_0x3e2fda(0x4f9)],!0x1);}}[_0x58f906(0x4c3)](){const _0x5514a1=_0x58f906;throw new Error(_0x5514a1(0x258));}[_0x58f906(0x2dd)](_0x24c25f){const _0x433c95=_0x58f906;return this[_0x433c95(0x521)][_0x433c95(0x166)](_0x24c25f),this;}[_0x58f906(0x32d)](_0x5df13f){const _0x45578b=_0x58f906;return this[_0x45578b(0x36d)][_0x45578b(0x166)](_0x5df13f),this;}[_0x58f906(0x40b)](_0x133c13){const _0x5054d7=_0x58f906;if(this[_0x5054d7(0x3bf)])return this[_0x5054d7(0x420)]=this[_0x5054d7(0x3bf)],this[_0x5054d7(0x3bf)]=null,this;throw new Error(_0x5054d7(0x25f));}['onRemoteRej'](_0x498b15){const _0x4ff3d3=_0x58f906;return this['_onConflict'](!!(_0x498b15!=null&&_0x498b15[_0x4ff3d3(0x1e1)]));}['toggleOffline'](){const _0x3731f4=_0x58f906;return this['_injector'][_0x3731f4(0x1bb)](G,this['unitID'],this['type'],this[_0x3731f4(0x3bf)],this[_0x3731f4(0x521)],this[_0x3731f4(0x4f9)]);}['toggleOnline'](){return this;}[_0x58f906(0x571)](_0x236dd2){const _0xbedb4f=_0x58f906;return this[_0xbedb4f(0x375)][_0xbedb4f(0x1bb)](F,this['unitID'],this[_0xbedb4f(0x24a)],this['_awaitingChangeset'],this[_0xbedb4f(0x521)],this[_0xbedb4f(0x4f9)],_0x236dd2);}};x=z([m(0x7,a[_0x58f906(0x200)](a[_0x58f906(0x433)])),m(0x8,a[_0x58f906(0x200)](_[_0x58f906(0x2e1)])),m(0x9,a['Inject'](exports[_0x58f906(0x533)])),m(0xa,a['ILogService']),m(0xb,a[_0x58f906(0x484)]),m(0xc,a['IUndoRedoService']),m(0xd,_[_0x58f906(0x20c)])],x);function Ut(_0x1a4623,_0x131538,_0x275d65,_0x53e3f9,_0x4dc1b8,_0x50b24d){const _0xeb6712=_0x58f906;return _0x53e3f9&&_0x4dc1b8[_0xeb6712(0x4b8)]?_0x1a4623[_0xeb6712(0x1bb)](B,_0x131538,_0x275d65,_0x53e3f9,_0x4dc1b8,_0x50b24d):_0x53e3f9?_0x1a4623[_0xeb6712(0x1bb)](W,_0x131538,_0x275d65,_0x53e3f9,_0x50b24d):_0x4dc1b8['length']?_0x1a4623[_0xeb6712(0x1bb)](k,_0x131538,_0x275d65,_0x4dc1b8,_0x50b24d):_0x1a4623[_0xeb6712(0x1bb)](ie,_0x131538,_0x275d65,_0x50b24d);}var Ks=Object[_0x58f906(0x503)],Xs=Object[_0x58f906(0x365)],ze=(_0x4c6848,_0x20df80,_0x390665,_0x2948aa)=>{const _0x34c9ef=_0x58f906;for(var _0x3021b0=_0x2948aa>0x1?void 0x0:_0x2948aa?Xs(_0x20df80,_0x390665):_0x20df80,_0x5d2cbb=_0x4c6848[_0x34c9ef(0x4b8)]-0x1,_0x48fcd1;_0x5d2cbb>=0x0;_0x5d2cbb--)(_0x48fcd1=_0x4c6848[_0x5d2cbb])&&(_0x3021b0=(_0x2948aa?_0x48fcd1(_0x20df80,_0x390665,_0x3021b0):_0x48fcd1(_0x3021b0))||_0x3021b0);return _0x2948aa&&_0x3021b0&&Ks(_0x20df80,_0x390665,_0x3021b0),_0x3021b0;},p=(_0xc5bd67,_0x1ae334)=>(_0x2e1236,_0xac95d1)=>_0x1ae334(_0x2e1236,_0xac95d1,_0xc5bd67);exports[_0x58f906(0x2eb)]=class extends a[_0x58f906(0x3d0)]{constructor(_0x4c11e1,_0x3fc280,_0x583626,_0x16ac62,_0x441026,_0x5eb45f,_0x2fbc7d,_0x37d122,_0x347a5f,_0x4c2d15,_0x5ed680,_0x1667d2,_0xf90ca8){const _0x4aa55d=_0x58f906;super(),u(this,_0x4aa55d(0x53d),new v['BehaviorSubject'](null)),u(this,'state$',this[_0x4aa55d(0x53d)][_0x4aa55d(0x41d)]()),u(this,_0x4aa55d(0x29e)),u(this,_0x4aa55d(0x381),!0x1),u(this,'_changesetSessionId',''),u(this,_0x4aa55d(0x487),0x0),u(this,'status$',this[_0x4aa55d(0x2d5)][_0x4aa55d(0x3d5)](v['map'](_0x2cbaf9=>_0x2cbaf9?_0x2cbaf9[_0x4aa55d(0x53e)]:U[_0x4aa55d(0x55b)]),v[_0x4aa55d(0x523)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x4aa55d(0x50e),[]),(this[_0x4aa55d(0x168)]=_0x4c11e1,this['session']=_0x3fc280,this[_0x4aa55d(0x2c9)]=_0x583626,this['_injector']=_0x16ac62,this[_0x4aa55d(0x3e5)]=_0x441026,this['_compressMutationService']=_0x5eb45f,this[_0x4aa55d(0x3ad)]=_0x2fbc7d,this[_0x4aa55d(0x276)]=_0x37d122,this[_0x4aa55d(0x343)]=_0x347a5f,this[_0x4aa55d(0x2ac)]=_0x4c2d15,this['_messageService']=_0x5ed680,this[_0x4aa55d(0x2e0)]=_0x1667d2,this[_0x4aa55d(0x266)]=_0xf90ca8);}get['state'](){const _0x3f774e=_0x58f906;return this[_0x3f774e(0x29e)];}async[_0x58f906(0x2d8)](){const _0x48e28d=_0x58f906;if(this['state'])throw new Error(_0x48e28d(0x291));await this['_init']();}[_0x58f906(0x190)](){const _0x27e86b=_0x58f906;return this[_0x27e86b(0x381)]=!0x0,a[_0x27e86b(0x1c2)](()=>{const _0x293cda=_0x27e86b;this[_0x293cda(0x381)]=!0x1,this[_0x293cda(0x1bd)]();});}[_0x58f906(0x1be)](_0x3d79db){const _0x350395=_0x58f906;this['_state']=_0x3d79db,this[_0x350395(0x53d)][_0x350395(0x1e9)](_0x3d79db);}async[_0x58f906(0x30d)](){const _0x4f69b3=_0x58f906;var _0x42db3c;this['_updateState'](await this[_0x4f69b3(0x1a8)]()),this[_0x4f69b3(0x266)]&&((_0x42db3c=this['_singleActiveUnitService'])==null||_0x42db3c['editingUnit'](this[_0x4f69b3(0x168)]),this[_0x4f69b3(0x2af)](this[_0x4f69b3(0x266)][_0x4f69b3(0x1d9)](this[_0x4f69b3(0x168)])[_0x4f69b3(0x4b6)](_0x53748c=>{const _0x20827b=_0x4f69b3;this['_logService'][_0x20827b(0x1e7)](_0x20827b(0x512),'editing\x20status\x20changed\x20to',_0x53748c),_0x53748c===Dt['OTHER_CLIENTS_EDITING']?(this['_messageService'][_0x20827b(0x246)]({'content':this[_0x20827b(0x3ad)]['t']('collaboration.single-unit.warning'),'type':X['MessageType'][_0x20827b(0x29a)]}),this[_0x20827b(0x2e0)][_0x20827b(0x169)](new C['WorkbookEditablePermission'](this[_0x20827b(0x168)])['id'],!0x1)):this['_permissionService'][_0x20827b(0x169)](new C[(_0x20827b(0x408))](this['unitID'])['id'],!0x0);})));let _0x3e5364=!0x1;return this[_0x4f69b3(0x2af)](this[_0x4f69b3(0x4de)][_0x4f69b3(0x2c3)]['subscribe'](_0x450294=>{const _0x29ce64=_0x4f69b3;_0x450294===H[_0x29ce64(0x415)]?this[_0x29ce64(0x15d)](_0x3e5364):_0x450294===H[_0x29ce64(0x55b)]&&(_0x3e5364=!0x0,this[_0x29ce64(0x551)]());})),this[_0x4f69b3(0x2af)](this[_0x4f69b3(0x4de)][_0x4f69b3(0x191)][_0x4f69b3(0x4b6)](_0xa87f2e=>{const _0x35e4c0=_0x4f69b3;try{switch(_0xa87f2e['eventID']){case _['CollaborationEvent'][_0x35e4c0(0x1f9)]:{this[_0x35e4c0(0x1a2)](_[_0x35e4c0(0x37a)](_0xa87f2e[_0x35e4c0(0x460)]));break;}case _['CollaborationEvent'][_0x35e4c0(0x412)]:{this[_0x35e4c0(0x27c)](_0xa87f2e[_0x35e4c0(0x460)]);break;}case _[_0x35e4c0(0x4e6)][_0x35e4c0(0x55e)]:{this[_0x35e4c0(0x35a)]();break;}case _[_0x35e4c0(0x4e6)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x35e4c0(0x38d)](_0xa87f2e[_0x35e4c0(0x460)][_0x35e4c0(0x51f)][_0x35e4c0(0x50a)](_0x1f2a5e=>_[_0x35e4c0(0x37a)](_0x1f2a5e)));break;}case _[_0x35e4c0(0x4e6)][_0x35e4c0(0x3e7)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x498f6d){throw console[_0x35e4c0(0x1cc)](_0x35e4c0(0x2ba),_0x498f6d),_0x498f6d;}})),this['_state'];}[_0x58f906(0x4ad)](){const _0x5e151c=_0x58f906;this[_0x5e151c(0x282)]=!0x1;}[_0x58f906(0x19c)](){const _0x55e5ae=_0x58f906;if(this['_transitionLocked'])throw new Error(_0x55e5ae(0x1d7));this[_0x55e5ae(0x282)]=!0x0;}[_0x58f906(0x475)](_0x30311c){const _0x1cb06a=_0x58f906;this[_0x1cb06a(0x19c)](),this[_0x1cb06a(0x1be)](this[_0x1cb06a(0x29e)]['appendMutation'](_0x30311c)),this['_unlockTransition']();}[_0x58f906(0x1a2)](_0x5150cc){const _0x31ad30=_0x58f906;if(!(_0x5150cc['revision']<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x31ad30(0x168)]))){if(this[_0x31ad30(0x381)]){this[_0x31ad30(0x50e)][_0x31ad30(0x166)](_0x5150cc);return;}this[_0x31ad30(0x187)](_0x5150cc);}}['_exhaustRemoteChangesetQueue'](){const _0xb5293b=_0x58f906;this['_remoteChangesetQueue']['forEach'](_0x457066=>this[_0xb5293b(0x187)](_0x457066)),this[_0xb5293b(0x50e)]=[];}[_0x58f906(0x187)](_0x15d001){const _0x8643e3=_0x58f906,_0x1a41db=this[_0x8643e3(0x241)][_0x8643e3(0x4fd)][_0x8643e3(0x3ec)](this[_0x8643e3(0x241)][_0x8643e3(0x4fd)][_0x8643e3(0x2db)]()[_0x8643e3(0x4c1)])(_0x15d001[_0x8643e3(0x425)],null)||_0x15d001[_0x8643e3(0x425)],_0x5e0da4={..._0x15d001,'mutations':_0x1a41db};this['_lockTransition'](),this['_updateState'](this['_state']['onRemoteChangeset'](_0x5e0da4)),this['_unlockTransition']();}['_onRemoteACK'](_0x43e267){const _0x2901cb=_0x58f906;this[_0x2901cb(0x19c)](),this[_0x2901cb(0x1be)](this[_0x2901cb(0x29e)][_0x2901cb(0x40b)](_0x43e267)),this[_0x2901cb(0x4ad)]();}[_0x58f906(0x35a)](_0x4364be){const _0x14388f=_0x58f906;this[_0x14388f(0x19c)](),this[_0x14388f(0x1be)](this[_0x14388f(0x29e)][_0x14388f(0x370)](_0x4364be)),this['_unlockTransition']();}[_0x58f906(0x38d)](_0x548a63){const _0xc5f402=_0x58f906;if(!(this['_state']instanceof x))throw new TypeError(_0xc5f402(0x445));const _0x2f6b30=_0x548a63[_0xc5f402(0x50a)](_0x48103c=>{const _0x4395f6=_0xc5f402,_0x2c9247=this['_compressMutationService'][_0x4395f6(0x4fd)][_0x4395f6(0x3ec)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x4395f6(0x4c1)])(_0x48103c[_0x4395f6(0x425)],null)||_0x48103c['mutations'];return{..._0x48103c,'mutations':_0x2c9247};});this[_0xc5f402(0x19c)](),this[_0xc5f402(0x1be)](this[_0xc5f402(0x29e)][_0xc5f402(0x2c4)](_0x2f6b30)),this[_0xc5f402(0x4ad)]();}[_0x58f906(0x551)](){const _0x4d71f3=_0x58f906;this['_lockTransition'](),this[_0x4d71f3(0x1be)](this[_0x4d71f3(0x29e)][_0x4d71f3(0x3a3)]()),this[_0x4d71f3(0x4ad)]();}[_0x58f906(0x15d)](_0x5c6e69=!0x1){const _0x1ac1bf=_0x58f906;this['_lockTransition'](),this[_0x1ac1bf(0x1be)](this[_0x1ac1bf(0x29e)][_0x1ac1bf(0x4ae)]()),this[_0x1ac1bf(0x4ad)]();const _0x4a870d=this[_0x1ac1bf(0x29e)];_0x5c6e69&&_0x4a870d instanceof ie&&(this[_0x1ac1bf(0x19c)](),this[_0x1ac1bf(0x1be)](_0x4a870d[_0x1ac1bf(0x528)]()),this[_0x1ac1bf(0x4ad)]());}async[_0x58f906(0x1a8)](){return new Promise(_0x278f7b=>{const _0x608176=_0x31a9;this[_0x608176(0x4de)][_0x608176(0x2c3)]['pipe'](v[_0x608176(0x34f)](0x1))[_0x608176(0x4b6)](async _0x1f72a1=>{_0x278f7b(await this['_createInitialStateImpl'](_0x1f72a1===H['ONLINE']));});});}[_0x58f906(0x4e1)](){const _0x3ef330=_0x58f906,_0x34fee2=this[_0x3ef330(0x168)];return{'onStateChange':(_0x20c7df,_0xf19c6d)=>{const _0x492f3e=_0x3ef330;if(_0x20c7df!==this[_0x492f3e(0x29e)])throw new Error(_0x492f3e(0x491)+_0x20c7df['status']+_0x492f3e(0x56e)+_0xf19c6d['status']+_0x492f3e(0x1b7)+this['_state'][_0x492f3e(0x53e)]);this['_updateState'](_0xf19c6d);},'onSendChangeset':_0x2658f6=>{const _0x4f8dde=_0x3ef330;_0x2658f6[_0x4f8dde(0x30a)]||(_0x2658f6['sid']=this[_0x4f8dde(0x56b)],_0x2658f6[_0x4f8dde(0x288)]=++this[_0x4f8dde(0x487)]);const _0x577602={'eventID':_['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x2658f6[_0x4f8dde(0x168)],'unitType':this[_0x4f8dde(0x2c9)],'changeset':_0x2658f6,'memberID':this[_0x4f8dde(0x4de)][_0x4f8dde(0x2ca)]()}};this[_0x4f8dde(0x4de)][_0x4f8dde(0x15a)](_0x577602,this[_0x4f8dde(0x168)]);},'onMissingChangesets':({from:_0x1a1958,to:_0x29a744})=>{const _0x416c94=_0x3ef330;this[_0x416c94(0x343)][_0x416c94(0x1e7)]('[CollaborationEntity]',_0x416c94(0x409)+_0x1a1958+_0x416c94(0x53b)+_0x29a744);const _0xa279ae={'eventID':_[_0x416c94(0x4e6)][_0x416c94(0x3dc)],'data':{'unitID':_0x34fee2,'unitType':this[_0x416c94(0x2c9)],'from':_0x1a1958,'to':_0x29a744}};this['session']['send'](_0xa279ae,this[_0x416c94(0x168)]);}};}async[_0x58f906(0x55d)](_0x36b69b){const _0x1ac6ca=_0x58f906;var _0x33b068,_0x1b8911;const _0x56ef96=await this['_localCacheService'][_0x1ac6ca(0x237)](this[_0x1ac6ca(0x168)]),_0xed1798=(_0x33b068=_0x56ef96==null?void 0x0:_0x56ef96['mutations'])!=null?_0x33b068:[],_0x18d641=(_0x1b8911=_0x56ef96==null?void 0x0:_0x56ef96[_0x1ac6ca(0x4a2)])!=null?_0x1b8911:null,_0x56f2fc=!!(_0x18d641!=null&&_0x18d641[_0x1ac6ca(0x30a)])&&!!(_0x18d641!=null&&_0x18d641['reqId']);this[_0x1ac6ca(0x56b)]=_0x56f2fc?_0x18d641[_0x1ac6ca(0x30a)]:Os(),this[_0x1ac6ca(0x487)]=_0x56f2fc?_0x18d641[_0x1ac6ca(0x288)]:0x0;const _0x3482f9=this[_0x1ac6ca(0x168)];try{this[_0x1ac6ca(0x51c)](_0x18d641,_0xed1798);}catch(_0x4203d4){this[_0x1ac6ca(0x343)][_0x1ac6ca(0x1cc)](_0x4203d4);}const _0x6d102c=this[_0x1ac6ca(0x4e1)]();if(_0x36b69b){const _0x1280a5=Ut(this['_injector'],_0x3482f9,this[_0x1ac6ca(0x2c9)],_0x18d641,_0xed1798,_0x6d102c);return _0x1280a5 instanceof k?_0x1280a5['_schedule']():(_0x1280a5 instanceof B||_0x1280a5 instanceof W)&&_0x1280a5[_0x1ac6ca(0x4c3)](),_0x1280a5;}return this[_0x1ac6ca(0x375)][_0x1ac6ca(0x1bb)](G,_0x3482f9,this[_0x1ac6ca(0x2c9)],_0x18d641,_0xed1798,_0x6d102c);}['_replayCachedMutations'](_0x2c8183,_0x10ad8b){const _0x4ee844=_0x58f906;var _0x1f9bb9,_0x18885b;const _0x467f22=this[_0x4ee844(0x241)][_0x4ee844(0x4fd)][_0x4ee844(0x3ec)](this['_compressMutationService']['interceptor'][_0x4ee844(0x2db)]()['COMPRESS_MUTATION_APPLY']);(_0x1f9bb9=_0x467f22((_0x2c8183==null?void 0x0:_0x2c8183['mutations'])||[],null))==null||_0x1f9bb9[_0x4ee844(0x18c)](_0x848bc5=>this[_0x4ee844(0x2ac)][_0x4ee844(0x315)](_0x848bc5['id'],_0x848bc5[_0x4ee844(0x2bd)])),(_0x18885b=_0x467f22(_0x10ad8b||[],null))==null||_0x18885b[_0x4ee844(0x18c)](_0xbc9651=>this[_0x4ee844(0x2ac)][_0x4ee844(0x315)](_0xbc9651['id'],_0xbc9651[_0x4ee844(0x2bd)]));}},exports['CollaborationEntity']=ze([p(0x3,a[_0x58f906(0x200)](a['Injector'])),p(0x4,a[_0x58f906(0x200)](exports['LocalCacheService'])),p(0x5,a[_0x58f906(0x200)](_['CompressMutationService'])),p(0x6,a['Inject'](a[_0x58f906(0x36a)])),p(0x7,a[_0x58f906(0x200)](_[_0x58f906(0x2e1)])),p(0x8,a[_0x58f906(0x3f7)]),p(0x9,a[_0x58f906(0x484)]),p(0xa,A[_0x58f906(0x54d)]),p(0xb,a['IPermissionService']),p(0xc,a['Optional'](Re))],exports['CollaborationEntity']),exports[_0x58f906(0x469)]=class extends exports[_0x58f906(0x2eb)]{constructor(_0x5176f9,_0x5e80d6,_0x34edfd,_0x96a029,_0x4da627,_0x4b6847,_0x20b2b7,_0xb9a90,_0x597407,_0x1c2191,_0xab1dfe,_0x2c1bc5,_0x1d926e,_0x84a71e,_0x4edeec,_0x2c3895,_0x31a47d){const _0x260ab0=_0x58f906;super(_0x5176f9,_0x34edfd,_0x5e80d6,_0x96a029,_0x4da627,_0x4b6847,_0x20b2b7,_0xb9a90,_0x1d926e,_0x84a71e,_0x4edeec,_0x2c3895,_0x31a47d),this[_0x260ab0(0x168)]=_0x5176f9,this['type']=_0x5e80d6,this[_0x260ab0(0x529)]=_0x597407,this[_0x260ab0(0x1b4)]=_0x1c2191,this['_docTransformSelectionsService']=_0xab1dfe,this[_0x260ab0(0x171)]=_0x2c1bc5;}[_0x58f906(0x4e1)](){const _0x3b501c=_0x58f906,_0x3daa27=super[_0x3b501c(0x4e1)]();return _0x3daa27[_0x3b501c(0x47c)]=_0x4047db=>this[_0x3b501c(0x1b4)][_0x3b501c(0x4b0)](_0x4047db),_0x3daa27[_0x3b501c(0x32f)]=_0x417095=>this[_0x3b501c(0x1cf)][_0x3b501c(0x1b3)](_0x417095),_0x3daa27[_0x3b501c(0x2b2)]=_0x3b12a9=>this[_0x3b501c(0x171)][_0x3b501c(0x3cd)](_0x3b12a9),_0x3daa27['onTransformRemoteChangesetByIMECache']=_0x4829e9=>this[_0x3b501c(0x1b4)]['transformRemoteChangeset'](_0x4829e9),_0x3daa27;}async['_init'](){const _0x2d8339=_0x58f906,_0x3f9f19=await super[_0x2d8339(0x30d)]();return this[_0x2d8339(0x529)]['docStateChange$'][_0x2d8339(0x3d5)](v['takeUntil'](this[_0x2d8339(0x40a)]))[_0x2d8339(0x4b6)](_0x511029=>{const _0x2f81c3=_0x2d8339;if(_0x511029==null)return;const {unitId:_0x34483d,redoState:_0x9b0cd6,commandId:_0x40d9c2}=_0x511029;if(_0x34483d!==this[_0x2f81c3(0x168)])return;const _0x286cac={'id':_0x40d9c2,'type':a[_0x2f81c3(0x295)][_0x2f81c3(0x1b6)],'params':{'unitId':_0x34483d,'actions':_0x9b0cd6[_0x2f81c3(0x22c)],'textRanges':null}};this[_0x2f81c3(0x475)](_0x286cac);}),_0x3f9f19;}},exports['DocCollaborationEntity']=ze([p(0x3,a[_0x58f906(0x200)](a['Injector'])),p(0x4,a[_0x58f906(0x200)](exports[_0x58f906(0x533)])),p(0x5,a[_0x58f906(0x200)](_[_0x58f906(0x3a1)])),p(0x6,a[_0x58f906(0x200)](a[_0x58f906(0x36a)])),p(0x7,a[_0x58f906(0x200)](_[_0x58f906(0x2e1)])),p(0x8,a[_0x58f906(0x200)](N[_0x58f906(0x518)])),p(0x9,a[_0x58f906(0x200)](fe)),p(0xa,a[_0x58f906(0x200)](pe)),p(0xb,a[_0x58f906(0x200)](qe)),p(0xc,a[_0x58f906(0x3f7)]),p(0xd,a[_0x58f906(0x484)]),p(0xe,A[_0x58f906(0x54d)]),p(0xf,a[_0x58f906(0x3ef)]),p(0x10,a['Optional'](Re))],exports['DocCollaborationEntity']),exports['SheetCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x1bb834,_0x26b624,_0x17836e,_0x1a63d8,_0x21632f,_0x3fb505,_0x427d28,_0x478eee,_0x3dda76,_0x50b0db,_0x113b67,_0x44a480,_0x16b6be,_0x49f79c){const _0x5035a8=_0x58f906;super(_0x1bb834,_0x17836e,_0x26b624,_0x1a63d8,_0x21632f,_0x3fb505,_0x427d28,_0x478eee,_0x50b0db,_0x113b67,_0x44a480,_0x16b6be,_0x49f79c),this[_0x5035a8(0x168)]=_0x1bb834,this[_0x5035a8(0x24a)]=_0x26b624,this[_0x5035a8(0x260)]=_0x3dda76;}['_createHandler'](){const _0x30cf0b=_0x58f906,_0x1b574b=super[_0x30cf0b(0x4e1)]();return _0x1b574b['onTransformSelections']=_0x472789=>this[_0x30cf0b(0x260)][_0x30cf0b(0x1b3)](_0x472789),_0x1b574b;}async[_0x58f906(0x30d)](){const _0x4ac687=_0x58f906,_0x66e5e3=await super[_0x4ac687(0x30d)]();return this[_0x4ac687(0x2af)](this[_0x4ac687(0x2ac)]['onCommandExecuted']((_0x5eb7d6,_0x1f1758)=>{const _0xa395c3=_0x4ac687;if(_0x5eb7d6[_0xa395c3(0x24a)]!==a['CommandType'][_0xa395c3(0x1b6)]||_0x1f1758!=null&&_0x1f1758['fromCollab']||_0x1f1758!=null&&_0x1f1758['onlyLocal'])return;const _0xd8f084=_0x5eb7d6[_0xa395c3(0x2bd)];if((_0xd8f084==null?void 0x0:_0xd8f084[_0xa395c3(0x553)])!==this[_0xa395c3(0x168)])return;const _0xacb3e1=_0x5eb7d6,_0x345b4e=this[_0xa395c3(0x241)]['interceptor'][_0xa395c3(0x3ec)](this[_0xa395c3(0x241)]['interceptor'][_0xa395c3(0x2db)]()[_0xa395c3(0x2f6)])([_0xacb3e1],null)||[_0xacb3e1];this['_onLocalMutation'](_0x345b4e[0x0]);})),_0x66e5e3;}},exports[_0x58f906(0x209)]=ze([p(0x3,a[_0x58f906(0x200)](a[_0x58f906(0x433)])),p(0x4,a[_0x58f906(0x200)](exports[_0x58f906(0x533)])),p(0x5,a[_0x58f906(0x200)](_[_0x58f906(0x3a1)])),p(0x6,a[_0x58f906(0x200)](a[_0x58f906(0x36a)])),p(0x7,a[_0x58f906(0x200)](_['RevisionService'])),p(0x8,a[_0x58f906(0x200)](Ie)),p(0x9,a[_0x58f906(0x3f7)]),p(0xa,a['ICommandService']),p(0xb,A[_0x58f906(0x54d)]),p(0xc,a[_0x58f906(0x3ef)]),p(0xd,a[_0x58f906(0x2d6)](Re))],exports[_0x58f906(0x209)]);var qs=Object[_0x58f906(0x503)],zs=Object[_0x58f906(0x365)],Js=(_0x5caaf7,_0x12ce96,_0x23c932,_0x30bd7f)=>{const _0xa04e95=_0x58f906;for(var _0x228667=_0x30bd7f>0x1?void 0x0:_0x30bd7f?zs(_0x12ce96,_0x23c932):_0x12ce96,_0x2d223a=_0x5caaf7[_0xa04e95(0x4b8)]-0x1,_0x1414d1;_0x2d223a>=0x0;_0x2d223a--)(_0x1414d1=_0x5caaf7[_0x2d223a])&&(_0x228667=(_0x30bd7f?_0x1414d1(_0x12ce96,_0x23c932,_0x228667):_0x1414d1(_0x228667))||_0x228667);return _0x30bd7f&&_0x228667&&qs(_0x12ce96,_0x23c932,_0x228667),_0x228667;},Ne=(_0x5c2db4,_0x1af650)=>(_0x4fd1db,_0x532878)=>_0x1af650(_0x4fd1db,_0x532878,_0x5c2db4);exports[_0x58f906(0x15e)]=class extends a[_0x58f906(0x3d0)]{constructor(_0x250242,_0x178c39,_0x396e25){const _0x21a510=_0x58f906;super(),u(this,_0x21a510(0x27d),new Map()),u(this,_0x21a510(0x21a),new v[(_0x21a510(0x208))]()),(this['_injector']=_0x250242,this[_0x21a510(0x388)]=_0x178c39,this[_0x21a510(0x1c7)]=_0x396e25,this[_0x21a510(0x30d)]());}['dispose'](){const _0x509ab7=_0x58f906;super[_0x509ab7(0x45f)](),this[_0x509ab7(0x27d)]['forEach'](_0x1177d8=>_0x1177d8[_0x509ab7(0x45f)]()),this[_0x509ab7(0x27d)][_0x509ab7(0x418)]();}[_0x58f906(0x1b8)](_0x1f2b94){const _0x185acf=_0x58f906;var _0x4353ce;return(_0x4353ce=this[_0x185acf(0x27d)][_0x185acf(0x406)](_0x1f2b94))!=null?_0x4353ce:null;}[_0x58f906(0x30c)](_0x117f75){const _0x2e248a=_0x58f906,_0x8902e1=this[_0x2e248a(0x1b8)](_0x117f75);return _0x8902e1?v['of'](_0x8902e1):this[_0x2e248a(0x21a)]['pipe'](E[_0x2e248a(0x355)](_0x36a674=>_0x36a674['unitID']===_0x117f75));}['_init'](){const _0x2b737b=_0x58f906;this[_0x2b737b(0x1c7)]['getTypeOfUnitAdded$'](a[_0x2b737b(0x23d)][_0x2b737b(0x3d6)])[_0x2b737b(0x3d5)](v[_0x2b737b(0x230)](this[_0x2b737b(0x40a)]),E[_0x2b737b(0x2be)](0x10))['subscribe'](async _0x253b0e=>{const _0x44975c=_0x2b737b,_0x401174=_0x253b0e[_0x44975c(0x56a)](),_0x58adc3=await this[_0x44975c(0x4dc)](_0x401174,$[_0x44975c(0x3d6)]);this[_0x44975c(0x27d)][_0x44975c(0x473)](_0x401174,_0x58adc3);}),this[_0x2b737b(0x1c7)]['getTypeOfUnitAdded$'](a[_0x2b737b(0x23d)][_0x2b737b(0x368)])['pipe'](v[_0x2b737b(0x230)](this['dispose$']),E['delay'](0x10))[_0x2b737b(0x3d5)](E[_0x2b737b(0x355)](_0x124a16=>!_0x124a16[_0x2b737b(0x56a)]()[_0x2b737b(0x356)]('__')))[_0x2b737b(0x4b6)](async _0x4322c1=>{const _0x50314b=_0x2b737b,_0x260d2b=_0x4322c1[_0x50314b(0x56a)](),_0x2b84a3=await this[_0x50314b(0x4dc)](_0x260d2b,$['UNIVER_DOC']);this[_0x50314b(0x27d)][_0x50314b(0x473)](_0x260d2b,_0x2b84a3);}),v[_0x2b737b(0x386)](this[_0x2b737b(0x1c7)]['getTypeOfUnitDisposed$'](a[_0x2b737b(0x23d)][_0x2b737b(0x3d6)]),this[_0x2b737b(0x1c7)][_0x2b737b(0x476)](a['UniverInstanceType'][_0x2b737b(0x368)]))[_0x2b737b(0x3d5)](v[_0x2b737b(0x230)](this[_0x2b737b(0x40a)]))[_0x2b737b(0x4b6)](_0x4a1108=>{const _0x5dd413=_0x2b737b,_0x4b4468=_0x4a1108['getUnitId'](),_0x233579=this['_entities'][_0x5dd413(0x406)](_0x4b4468);_0x233579&&(_0x233579[_0x5dd413(0x45f)](),this[_0x5dd413(0x27d)][_0x5dd413(0x2d7)](_0x4b4468));});}async['_startCollaboration'](_0x2bc3b8,_0x3a7fea){const _0x4c8d09=_0x58f906,_0x14cc96=await this['_collabSessionService']['requireSession'](_0x2bc3b8),_0x3bfc22=this[_0x4c8d09(0x375)][_0x4c8d09(0x1bb)](this['_getCtorByUniverType'](_0x3a7fea),_0x2bc3b8,_0x3a7fea,_0x14cc96);return await _0x3bfc22[_0x4c8d09(0x2d8)](),this[_0x4c8d09(0x21a)][_0x4c8d09(0x1e9)](_0x3bfc22),_0x3bfc22;}[_0x58f906(0x2f5)](_0x317f52){const _0x17ec59=_0x58f906;switch(_0x317f52){case $[_0x17ec59(0x368)]:return exports[_0x17ec59(0x469)];case $[_0x17ec59(0x3d6)]:return exports[_0x17ec59(0x209)];default:throw new Error(_0x17ec59(0x172)+_0x317f52);}}},exports[_0x58f906(0x15e)]=Js([Ne(0x0,a[_0x58f906(0x200)](a['Injector'])),Ne(0x1,a['Inject'](exports[_0x58f906(0x369)])),Ne(0x2,a['IUniverInstanceService'])],exports[_0x58f906(0x15e)]);const ct=[_0x58f906(0x534),'jiqing500',_0x58f906(0x348),_0x58f906(0x2d1),_0x58f906(0x293),_0x58f906(0x236)];class Je extends a[_0x58f906(0x279)]{constructor(){const _0x1b22e9=_0x58f906;super(...arguments),u(this,_0x1b22e9(0x557),new Map()),u(this,_0x1b22e9(0x1d2),0x0);}['assignAColorForMemberID'](_0x5cb88d){const _0x1f13c0=_0x58f906;if(this['_assignedColors'][_0x1f13c0(0x3ee)](_0x5cb88d))return this[_0x1f13c0(0x557)][_0x1f13c0(0x406)](_0x5cb88d);const _0x40621d=ct[this[_0x1f13c0(0x1d2)]];return this[_0x1f13c0(0x1d2)]=(this[_0x1f13c0(0x1d2)]+0x1)%ct[_0x1f13c0(0x4b8)],this['_assignedColors'][_0x1f13c0(0x473)](_0x5cb88d,_0x40621d),_0x40621d;}}var Zs=Object['defineProperty'],Qs=Object[_0x58f906(0x365)],ei=(_0x3587ed,_0x53ff89,_0x223955,_0x294308)=>{for(var _0x1908a6=_0x294308>0x1?void 0x0:_0x294308?Qs(_0x53ff89,_0x223955):_0x53ff89,_0x5db3d5=_0x3587ed['length']-0x1,_0x383457;_0x5db3d5>=0x0;_0x5db3d5--)(_0x383457=_0x3587ed[_0x5db3d5])&&(_0x1908a6=(_0x294308?_0x383457(_0x53ff89,_0x223955,_0x1908a6):_0x383457(_0x1908a6))||_0x1908a6);return _0x294308&&_0x1908a6&&Zs(_0x53ff89,_0x223955,_0x1908a6),_0x1908a6;},K=(_0x2dc3a6,_0x3a04fe)=>(_0x1e0931,_0x318f37)=>_0x3a04fe(_0x1e0931,_0x318f37,_0x2dc3a6);const ti=0x12c,si=0x64;let ke=class extends a[_0x58f906(0x3d0)]{constructor(_0xb48f20,_0x115e76,_0xf5c345,_0x185d38,_0x52357c,_0x1d9a0b,_0x1cf4e2,_0xef7356,_0x37879f){const _0x7190a8=_0x58f906;super(),u(this,'_online',!0x1),u(this,_0x7190a8(0x30d),!0x1),u(this,_0x7190a8(0x2a8),new v['BehaviorSubject'](new Map())),u(this,_0x7190a8(0x3aa),this['_cursorInfo$'][_0x7190a8(0x41d)]()),u(this,_0x7190a8(0x3b5),new v[(_0x7190a8(0x379))]([])),u(this,_0x7190a8(0x4b2),this[_0x7190a8(0x3b5)]['pipe'](v[_0x7190a8(0x341)](ti))),u(this,'_updateLocalCursor',a['debounce'](_0x44bf27=>{const _0xa26efd=_0x7190a8,_0x12b910={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0xa26efd(0x168)],'memberID':this[_0xa26efd(0x26a)][_0xa26efd(0x2ca)](),'selection':yt(_0x44bf27)}};this[_0xa26efd(0x26a)][_0xa26efd(0x15a)](_0x12b910,this[_0xa26efd(0x168)]);},si)),(this[_0x7190a8(0x168)]=_0xb48f20,this[_0x7190a8(0x26a)]=_0x115e76,this[_0x7190a8(0x375)]=_0xf5c345,this[_0x7190a8(0x322)]=_0x185d38,this[_0x7190a8(0x4bd)]=_0x52357c,this[_0x7190a8(0x262)]=_0x1d9a0b,this[_0x7190a8(0x417)]=_0x1cf4e2,this[_0x7190a8(0x1c7)]=_0xef7356,this[_0x7190a8(0x2ac)]=_0x37879f);}get['cursorInfo'](){const _0xbe7558=_0x58f906;return this[_0xbe7558(0x2a8)]['getValue']();}get[_0x58f906(0x46d)](){const _0x3587ea=_0x58f906;return this[_0x3587ea(0x3b5)][_0x3587ea(0x328)]();}[_0x58f906(0x45f)](){const _0x31ad67=_0x58f906;super[_0x31ad67(0x45f)](),this['_cursorInfo$'][_0x31ad67(0x1e9)](new Map()),this[_0x31ad67(0x2a8)][_0x31ad67(0x335)](),this[_0x31ad67(0x3b5)]['next']([]),this['_roomMembers$']['complete']();}[_0x58f906(0x2d8)](){const _0x3b0e70=_0x58f906;this['_init']||(this['_init']=!0x0,this['_session'][_0x3b0e70(0x2c3)][_0x3b0e70(0x3d5)](v[_0x3b0e70(0x230)](this[_0x3b0e70(0x40a)]))[_0x3b0e70(0x4b6)](_0x2a9128=>{const _0x2eac65=_0x3b0e70;_0x2a9128===H[_0x2eac65(0x415)]?this[_0x2eac65(0x15d)]():this[_0x2eac65(0x551)]();}),this['_session']['event$'][_0x3b0e70(0x3d5)](v['takeUntil'](this[_0x3b0e70(0x40a)]))['subscribe'](_0x49c7d4=>{const _0x285f39=_0x3b0e70,_0x586a28=_0x49c7d4['eventID'];_0x586a28===_['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x285f39(0x3e2)](_0x49c7d4),_0x586a28===_[_0x285f39(0x4e6)][_0x285f39(0x44d)]&&this[_0x285f39(0x3e9)](_0x49c7d4);}),this['disposeWithMe'](this[_0x3b0e70(0x2ac)][_0x3b0e70(0x167)](_0x29280b=>{const _0xc4ac3c=_0x3b0e70,_0x1855b0=_0x29280b[_0xc4ac3c(0x2bd)];_0x1855b0!=null&&this[_0xc4ac3c(0x52b)]&&_0x29280b['id']===se[_0xc4ac3c(0x234)]['id']&&_0x1855b0[_0xc4ac3c(0x553)]===this[_0xc4ac3c(0x168)]&&_0x1855b0[_0xc4ac3c(0x212)]===!0x1&&this[_0xc4ac3c(0x4c8)](_0x1855b0[_0xc4ac3c(0x3fe)]);})),this[_0x3b0e70(0x262)][_0x3b0e70(0x539)][_0x3b0e70(0x3d5)](v[_0x3b0e70(0x230)](this[_0x3b0e70(0x40a)]))['subscribe'](_0x21259b=>{const _0x8ed762=_0x3b0e70;if((_0x21259b==null?void 0x0:_0x21259b[_0x8ed762(0x168)])!==this[_0x8ed762(0x168)])return;const _0x32c027={'eventID':_[_0x8ed762(0x4e6)]['UPDATE_CURSOR'],'data':_0x21259b};this[_0x8ed762(0x3e2)](_0x32c027);}),this[_0x3b0e70(0x2af)](this['_commandService'][_0x3b0e70(0x167)](_0xe8b751=>{const _0x1437b7=_0x3b0e70;if(_0xe8b751['params']==null)return;const _0x56a776=_0xe8b751[_0x1437b7(0x2bd)];if(_0xe8b751['id']!==se[_0x1437b7(0x4e7)]['id']||_0x56a776[_0x1437b7(0x553)]!==this[_0x1437b7(0x168)])return;const _0x10045a={'id':_0x1437b7(0x3b7),'params':_0x56a776},_0x54f220=this[_0x1437b7(0x1e2)];for(const [_0xf03b15,_0x482abb]of _0x54f220){const _0x483167={'id':_0x1437b7(0x3b7),'params':{'unitId':this[_0x1437b7(0x168)],'actions':null,'textRanges':_0x482abb[_0x1437b7(0x3fe)]}},_0x352ec5=this[_0x1437b7(0x417)][_0x1437b7(0x189)](_0x10045a,_0x483167,!0x1);if(_[_0x1437b7(0x4a1)](_0x352ec5))throw _0x352ec5[_0x1437b7(0x1cc)];_0x54f220['set'](_0xf03b15,{..._0x482abb,'ranges':_0x352ec5[_0x1437b7(0x310)][_0x1437b7(0x2bd)][_0x1437b7(0x510)]});}queueMicrotask(()=>{const _0x5b8a5f=_0x1437b7;this[_0x5b8a5f(0x2a8)][_0x5b8a5f(0x1e9)](_0x54f220);});})));}[_0x58f906(0x3e2)](_0x509b5b){const _0x5aa236=_0x58f906;var _0x4681b1,_0x32a2cf;const {memberID:_0x335f9e,selection:_0x4d25f3}=_0x509b5b[_0x5aa236(0x460)],_0x3b262b=Hs(_0x4d25f3),_0x15d7e6=(_0x32a2cf=(_0x4681b1=this[_0x5aa236(0x4bd)][_0x5aa236(0x2c6)](this[_0x5aa236(0x168)],_0x335f9e))==null?void 0x0:_0x4681b1[_0x5aa236(0x514)])!=null?_0x32a2cf:_0x5aa236(0x4c5),_0x53d166={'color':this['_colorAssignService'][_0x5aa236(0x2f1)](_0x335f9e),'name':_0x15d7e6,'ranges':_0x3b262b},_0x524ac7=this[_0x5aa236(0x1e2)];_0x524ac7[_0x5aa236(0x473)](_0x335f9e,_0x53d166),this[_0x5aa236(0x2a8)][_0x5aa236(0x1e9)](_0x524ac7);}[_0x58f906(0x3e9)](_0x545c84){const _0x1cfbbc=_0x58f906,{memberID:_0x2458ff}=_0x545c84[_0x1cfbbc(0x460)],_0x1a66dd=this['cursorInfo'];_0x1a66dd[_0x1cfbbc(0x2d7)](_0x2458ff),this[_0x1cfbbc(0x2a8)]['next'](_0x1a66dd);}[_0x58f906(0x15d)](){const _0x4f091d=_0x58f906;var _0x188180;if(this[_0x4f091d(0x52b)]=!0x0,((_0x188180=this[_0x4f091d(0x1c7)][_0x4f091d(0x162)]())==null?void 0x0:_0x188180[_0x4f091d(0x56a)]())!==this[_0x4f091d(0x168)])return;const _0x59242a=this[_0x4f091d(0x375)][_0x4f091d(0x406)](se[_0x4f091d(0x248)])['getDocRanges']();Array[_0x4f091d(0x156)](_0x59242a)&&_0x59242a[_0x4f091d(0x4b8)]>0x0&&this['_updateLocalCursor'](_0x59242a);}['_toggleOffline'](){this['_online']=!0x1;}};ke=ei([K(0x2,a['Inject'](a['Injector'])),K(0x3,a['Inject'](Je)),K(0x4,a['Inject'](q)),K(0x5,a[_0x58f906(0x200)](qe)),K(0x6,_[_0x58f906(0x20c)]),K(0x7,a[_0x58f906(0x497)]),K(0x8,a['ICommandService'])],ke);var ii=Object[_0x58f906(0x503)],ni=Object[_0x58f906(0x365)],ri=(_0x2b465f,_0x48e4d6,_0x40b33d,_0x32d514)=>{for(var _0x3a8eb7=_0x32d514>0x1?void 0x0:_0x32d514?ni(_0x48e4d6,_0x40b33d):_0x48e4d6,_0x41f700=_0x2b465f['length']-0x1,_0x3220f3;_0x41f700>=0x0;_0x41f700--)(_0x3220f3=_0x2b465f[_0x41f700])&&(_0x3a8eb7=(_0x32d514?_0x3220f3(_0x48e4d6,_0x40b33d,_0x3a8eb7):_0x3220f3(_0x3a8eb7))||_0x3a8eb7);return _0x32d514&&_0x3a8eb7&&ii(_0x48e4d6,_0x40b33d,_0x3a8eb7),_0x3a8eb7;},Q=(_0x507cd4,_0x3f1029)=>(_0x89f52b,_0x36c557)=>_0x3f1029(_0x89f52b,_0x36c557,_0x507cd4);const oi=0x12c,ai=0x64,ci=()=>{let _0x1ee496=[],_0x348f2e=!0x1;return _0x1b4bab=>{const _0x375295=_0x31a9;_0x1ee496[_0x375295(0x166)](_0x1b4bab),_0x348f2e||(_0x348f2e=!0x0,setTimeout(()=>{const _0x2a614a=_0x375295;_0x1ee496[_0x2a614a(0x18c)](_0x1163d1=>_0x1163d1()),_0x1ee496=[],_0x348f2e=!0x1;}));};};let Be=class extends a[_0x58f906(0x3d0)]{constructor(_0x43b9b9,_0x2d8a58,_0x3b0d03,_0x30ff53,_0x45fc82,_0x346807,_0x490b0d,_0xd9b072){const _0x28fca2=_0x58f906;super(),u(this,'_online',!0x1),u(this,'_init',!0x1),u(this,'_cursorInfo$',new v['BehaviorSubject'](new Map())),u(this,'cursorInfo$',this[_0x28fca2(0x2a8)][_0x28fca2(0x41d)]()),u(this,'_roomMembers$',new v[(_0x28fca2(0x379))]([])),u(this,_0x28fca2(0x4b2),this[_0x28fca2(0x3b5)][_0x28fca2(0x3d5)](v['debounceTime'](oi))),u(this,'_updateLocalCursor',a[_0x28fca2(0x4ff)]((_0x2c95f6,_0x1ee528)=>{const _0x226e38=_0x28fca2,_0x4c97d2={'eventID':_[_0x226e38(0x4e6)][_0x226e38(0x403)],'data':{'unitID':this[_0x226e38(0x168)],'memberID':this['_session'][_0x226e38(0x2ca)](),'selection':et[_0x226e38(0x327)](_0x2c95f6,_0x1ee528[_0x226e38(0x35f)])}};this[_0x226e38(0x26a)][_0x226e38(0x15a)](_0x4c97d2,this['unitID']);},ai)),(this[_0x28fca2(0x168)]=_0x43b9b9,this[_0x28fca2(0x26a)]=_0x2d8a58,this[_0x28fca2(0x375)]=_0x3b0d03,this[_0x28fca2(0x322)]=_0x30ff53,this[_0x28fca2(0x4bd)]=_0x45fc82,this[_0x28fca2(0x1c7)]=_0x346807,this[_0x28fca2(0x2ac)]=_0x490b0d,this[_0x28fca2(0x331)]=_0xd9b072);}get['cursorInfo'](){const _0x14f6d1=_0x58f906;return this[_0x14f6d1(0x2a8)][_0x14f6d1(0x328)]();}get[_0x58f906(0x46d)](){const _0x2ca9cb=_0x58f906;return this[_0x2ca9cb(0x3b5)][_0x2ca9cb(0x328)]();}['dispose'](){const _0x51beb3=_0x58f906;super[_0x51beb3(0x45f)](),this[_0x51beb3(0x2a8)][_0x51beb3(0x1e9)](new Map()),this['_cursorInfo$'][_0x51beb3(0x335)](),this[_0x51beb3(0x3b5)][_0x51beb3(0x1e9)]([]),this[_0x51beb3(0x3b5)][_0x51beb3(0x335)]();}[_0x58f906(0x2d8)](){const _0x12917d=_0x58f906;this[_0x12917d(0x30d)]||(this['_init']=!0x0,this['_session'][_0x12917d(0x2c3)][_0x12917d(0x3d5)](v[_0x12917d(0x230)](this[_0x12917d(0x40a)]))['subscribe'](_0x36cb2c=>{const _0x3ed51b=_0x12917d;_0x36cb2c===H[_0x3ed51b(0x415)]?this[_0x3ed51b(0x15d)]():this[_0x3ed51b(0x551)]();}),this[_0x12917d(0x26a)][_0x12917d(0x191)][_0x12917d(0x3d5)](v[_0x12917d(0x230)](this[_0x12917d(0x40a)]))[_0x12917d(0x4b6)](_0x314dde=>{const _0x516586=_0x12917d,_0x2f4a40=_0x314dde['eventID'];_0x2f4a40===_['CollaborationEvent'][_0x516586(0x403)]&&this['_onCursorUpdate'](_0x314dde),_0x2f4a40===_[_0x516586(0x4e6)][_0x516586(0x44d)]&&this[_0x516586(0x3e9)](_0x314dde);}),this[_0x12917d(0x525)](),this[_0x12917d(0x2af)](this[_0x12917d(0x2ac)][_0x12917d(0x167)](_0x38b526=>{const _0xa2628c=_0x12917d;if(this[_0xa2628c(0x52b)]&&_0x38b526['id']===C[_0xa2628c(0x21d)]['id']&&_0x38b526[_0xa2628c(0x2bd)]['unitId']===this[_0xa2628c(0x168)]){const _0x8de687=_0x38b526['params'];this[_0xa2628c(0x4c8)](_0x8de687[_0xa2628c(0x4d2)],_0x8de687[_0xa2628c(0x499)][0x0]);}})));}[_0x58f906(0x3e2)](_0x641e66){const _0x4490f8=_0x58f906;var _0x369d9d,_0x443dee;const {memberID:_0x3e939c,selection:_0x342f59}=_0x641e66[_0x4490f8(0x460)],{sheetName:_0x3d75db,range:_0x1a88df}=et[_0x4490f8(0x4a3)](_0x342f59),_0x4e327b={'name':(_0x443dee=(_0x369d9d=this[_0x4490f8(0x4bd)]['getMember'](this[_0x4490f8(0x168)],_0x3e939c))==null?void 0x0:_0x369d9d[_0x4490f8(0x514)])!=null?_0x443dee:_0x4490f8(0x4c5),'range':this[_0x4490f8(0x1d5)](_0x3d75db,_0x1a88df),'sheetID':_0x3d75db,'color':this[_0x4490f8(0x322)]['assignAColorForMemberID'](_0x3e939c),'selection':_0x342f59},_0x28cc57=this[_0x4490f8(0x1e2)];_0x28cc57[_0x4490f8(0x473)](_0x3e939c,_0x4e327b),this[_0x4490f8(0x2a8)][_0x4490f8(0x1e9)](_0x28cc57);}[_0x58f906(0x3e9)](_0x506b7b){const _0x56d025=_0x58f906,{memberID:_0x54ca0a}=_0x506b7b[_0x56d025(0x460)],_0x2b04a1=this[_0x56d025(0x1e2)];_0x2b04a1['delete'](_0x54ca0a),this['_cursorInfo$']['next'](_0x2b04a1);}[_0x58f906(0x1d5)](_0x1fac44,_0x494ba5){const _0x40442d=_0x58f906;var _0xa0c01,_0xdbaecf;const _0x4877cc=(_0xdbaecf=(_0xa0c01=this[_0x40442d(0x1c7)][_0x40442d(0x3e6)](this['unitID']))==null?void 0x0:_0xa0c01[_0x40442d(0x2b9)](_0x1fac44))==null?void 0x0:_0xdbaecf[_0x40442d(0x4d9)]();return(_0x4877cc==null?void 0x0:_0x4877cc['find'](_0x3485bf=>a[_0x40442d(0x486)][_0x40442d(0x53c)](_0x3485bf,_0x494ba5)))||_0x494ba5;}[_0x58f906(0x525)](){const _0x2d6fb5=_0x58f906,_0xa76df9=new a[(_0x2d6fb5(0x285))](),_0xb656cd=ci(),_0x4cd938=()=>{const _0x20e363=_0x2d6fb5;_0xa76df9['dispose']();const _0x2770ec=(_0x51649d,_0x317983,_0x226fa1,_0x865a7)=>{const _0x581178=_0x31a9;let _0x42eca6=[];switch(_0x51649d['id']){case C[_0x581178(0x2ee)][_0x581178(0x3bd)]:{_0x42eca6=C[_0x581178(0x3cc)](_0x51649d,_0x865a7);break;}case C[_0x581178(0x2ee)][_0x581178(0x32c)]:{_0x42eca6=C[_0x581178(0x2a1)](_0x51649d,_0x865a7);break;}case C[_0x581178(0x2ee)][_0x581178(0x3a4)]:{_0x42eca6=C[_0x581178(0x359)](_0x51649d,_0x865a7);break;}case C[_0x581178(0x2ee)][_0x581178(0x18f)]:{_0x42eca6=C[_0x581178(0x1e8)](_0x51649d,_0x865a7);break;}case C[_0x581178(0x2ee)][_0x581178(0x4a0)]:{_0x42eca6=C[_0x581178(0x1fd)](_0x51649d,_0x865a7);break;}case C[_0x581178(0x2ee)]['InsertRowCommandId']:{_0x42eca6=C[_0x581178(0x4c0)](_0x51649d,_0x865a7);break;}case C[_0x581178(0x2ee)][_0x581178(0x2a0)]:{_0x42eca6=C[_0x581178(0x184)](_0x51649d,_0x865a7);break;}case C[_0x581178(0x2ee)][_0x581178(0x3b4)]:{_0x42eca6=C[_0x581178(0x250)](_0x51649d,_0x865a7);break;}case C[_0x581178(0x2ee)]['RemoveRowCommandId']:{_0x42eca6=C['handleIRemoveRow'](_0x51649d,_0x865a7);break;}}const _0x1ca75c=C[_0x581178(0x371)](_0x42eca6,_0x865a7),_0xe20ad9=this[_0x581178(0x1e2)][_0x581178(0x406)](_0x317983);if(_0xe20ad9&&_0x1ca75c){const _0xc44237={..._0xe20ad9,'range':_0x1ca75c};this['cursorInfo'][_0x581178(0x473)](_0x317983,_0xc44237),_0xb656cd(()=>{const _0x4513f6=_0x581178,_0x399454=this[_0x4513f6(0x331)]['registerRefRange'](_0x1ca75c,_0x49b0d5=>(_0x399454['dispose'](),_0x2770ec(_0x49b0d5,_0x317983,_0x226fa1,_0x1ca75c)));_0xa76df9['add'](_0x399454);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x20e363(0x18c)]((_0xc268ab,_0x3701d6)=>{const _0x19f1e5=_0x20e363,{range:_0x4e9457,sheetID:_0x4f2fa3}=_0xc268ab,_0x103610=this[_0x19f1e5(0x331)][_0x19f1e5(0x38b)](_0x4e9457,_0x149008=>(_0x103610[_0x19f1e5(0x45f)](),_0x2770ec(_0x149008,_0x3701d6,_0x4f2fa3,_0x4e9457)));_0xa76df9['add'](_0x103610);});};this[_0x2d6fb5(0x2af)](a['toDisposable'](this[_0x2d6fb5(0x2a8)][_0x2d6fb5(0x4b6)](()=>{_0x4cd938();})));}[_0x58f906(0x15d)](){const _0x5f0d60=_0x58f906;var _0x4b8347,_0x556521;if(this[_0x5f0d60(0x52b)]=!0x0,((_0x4b8347=this[_0x5f0d60(0x1c7)][_0x5f0d60(0x162)]())==null?void 0x0:_0x4b8347[_0x5f0d60(0x56a)]())!==this[_0x5f0d60(0x168)])return;const _0x3c96a4=(_0x556521=this['_injector']['get'](C[_0x5f0d60(0x175)])[_0x5f0d60(0x457)]())==null?void 0x0:_0x556521[0x0],_0x35b1cf=this[_0x5f0d60(0x1c7)][_0x5f0d60(0x554)](a[_0x5f0d60(0x23d)][_0x5f0d60(0x3d6)])[_0x5f0d60(0x344)]();_0x3c96a4&&_0x35b1cf&&this[_0x5f0d60(0x4c8)](_0x35b1cf[_0x5f0d60(0x2d9)](),_0x3c96a4);}[_0x58f906(0x551)](){this['_online']=!0x1;}};Be=ri([Q(0x2,a[_0x58f906(0x200)](a[_0x58f906(0x433)])),Q(0x3,a[_0x58f906(0x200)](Je)),Q(0x4,a['Inject'](q)),Q(0x5,a[_0x58f906(0x497)]),Q(0x6,a[_0x58f906(0x484)]),Q(0x7,a[_0x58f906(0x200)](C[_0x58f906(0x1ad)]))],Be);var li=Object[_0x58f906(0x503)],hi=Object[_0x58f906(0x365)],_i=(_0x587bdf,_0x1526c0,_0x4b08cd,_0x493a27)=>{for(var _0x593e35=_0x493a27>0x1?void 0x0:_0x493a27?hi(_0x1526c0,_0x4b08cd):_0x1526c0,_0x5b6171=_0x587bdf['length']-0x1,_0x3edc41;_0x5b6171>=0x0;_0x5b6171--)(_0x3edc41=_0x587bdf[_0x5b6171])&&(_0x593e35=(_0x493a27?_0x3edc41(_0x1526c0,_0x4b08cd,_0x593e35):_0x3edc41(_0x593e35))||_0x593e35);return _0x493a27&&_0x593e35&&li(_0x1526c0,_0x4b08cd,_0x593e35),_0x593e35;},Me=(_0x4badb5,_0x5d265f)=>(_0x16e393,_0x4b1951)=>_0x5d265f(_0x16e393,_0x4b1951,_0x4badb5);let ne=class extends a[_0x58f906(0x3d0)]{constructor(_0x86fadc,_0x3c03b0,_0x491b47){const _0x106e28=_0x58f906;super(),u(this,_0x106e28(0x27d),new Map()),u(this,_0x106e28(0x21a),new v[(_0x106e28(0x208))]()),(this[_0x106e28(0x1c7)]=_0x86fadc,this[_0x106e28(0x375)]=_0x3c03b0,this[_0x106e28(0x388)]=_0x491b47,this[_0x106e28(0x30d)]());}[_0x58f906(0x45f)](){const _0x10a520=_0x58f906;super[_0x10a520(0x45f)](),this['_entityInit$'][_0x10a520(0x335)](),this[_0x10a520(0x27d)]['forEach'](_0x4778aa=>_0x4778aa['dispose']());}[_0x58f906(0x269)](_0x22ce87){const _0x15fe02=_0x58f906;return this[_0x15fe02(0x27d)][_0x15fe02(0x3ee)](_0x22ce87)?this[_0x15fe02(0x27d)][_0x15fe02(0x406)](_0x22ce87)[_0x15fe02(0x3aa)]:this['_entityInit$'][_0x15fe02(0x3d5)](v[_0x15fe02(0x355)](_0x559eb7=>_0x559eb7['unitID']===_0x22ce87),v[_0x15fe02(0x1ee)](_0x58bfc9=>_0x58bfc9[_0x15fe02(0x3aa)]));}[_0x58f906(0x30d)](){const _0x2e7aec=_0x58f906;this[_0x2e7aec(0x1c7)][_0x2e7aec(0x1af)](a[_0x2e7aec(0x23d)][_0x2e7aec(0x3d6)])[_0x2e7aec(0x3d5)](v[_0x2e7aec(0x230)](this['dispose$']))[_0x2e7aec(0x4b6)](async _0x4a609a=>{const _0x3b862f=_0x2e7aec,_0x2c387f=_0x4a609a[_0x3b862f(0x56a)](),_0x5b6e10=await this[_0x3b862f(0x4f0)](_0x2c387f);this['_entityInit$']['next'](_0x5b6e10),this['_entities'][_0x3b862f(0x473)](_0x2c387f,_0x5b6e10);}),this[_0x2e7aec(0x1c7)][_0x2e7aec(0x1af)](a['UniverInstanceType'][_0x2e7aec(0x368)])[_0x2e7aec(0x3d5)](v['takeUntil'](this[_0x2e7aec(0x40a)]))[_0x2e7aec(0x3d5)](v['filter'](_0x400e1f=>!_0x400e1f[_0x2e7aec(0x56a)]()[_0x2e7aec(0x356)]('__')))[_0x2e7aec(0x4b6)](async _0x5eb335=>{const _0x29892a=_0x2e7aec,_0x4ee496=_0x5eb335[_0x29892a(0x56a)](),_0x5dc1d9=await this[_0x29892a(0x42a)](_0x4ee496);this['_entityInit$']['next'](_0x5dc1d9),this['_entities']['set'](_0x4ee496,_0x5dc1d9);}),v[_0x2e7aec(0x386)](this[_0x2e7aec(0x1c7)][_0x2e7aec(0x476)](a['UniverInstanceType'][_0x2e7aec(0x368)]),this['_univerInstanceService'][_0x2e7aec(0x476)](a[_0x2e7aec(0x23d)][_0x2e7aec(0x3d6)]))[_0x2e7aec(0x3d5)](v[_0x2e7aec(0x230)](this[_0x2e7aec(0x40a)]))[_0x2e7aec(0x4b6)](_0xfc8411=>{const _0x41508e=_0x2e7aec,_0x5736b2=_0xfc8411[_0x41508e(0x56a)](),_0x502948=this[_0x41508e(0x27d)][_0x41508e(0x406)](_0x5736b2);_0x502948&&(_0x502948[_0x41508e(0x45f)](),this[_0x41508e(0x27d)][_0x41508e(0x2d7)](_0x5736b2));});}async[_0x58f906(0x4f0)](_0x1f4921){const _0x394125=_0x58f906,_0x42779f=await this[_0x394125(0x388)][_0x394125(0x3a5)](_0x1f4921),_0x39e25b=this[_0x394125(0x375)][_0x394125(0x1bb)](Be,_0x1f4921,_0x42779f);return _0x39e25b['init'](),_0x39e25b;}async[_0x58f906(0x42a)](_0x5a305b){const _0x1b7977=_0x58f906,_0x45d696=await this['_collabSessionService'][_0x1b7977(0x3a5)](_0x5a305b),_0x1cd03e=this[_0x1b7977(0x375)][_0x1b7977(0x1bb)](ke,_0x5a305b,_0x45d696);return _0x1cd03e[_0x1b7977(0x2d8)](),_0x1cd03e;}};ne=_i([Me(0x0,a[_0x58f906(0x497)]),Me(0x1,a[_0x58f906(0x200)](a[_0x58f906(0x433)])),Me(0x2,a[_0x58f906(0x200)](exports[_0x58f906(0x369)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x3915d3,_0x56d62a){const _0x10846e=_0x58f906;let {radius:_0x45d7b2,width:_0x401792,height:_0x488636}=_0x56d62a;_0x45d7b2=_0x45d7b2!=null?_0x45d7b2:0x0,_0x401792=_0x401792!=null?_0x401792:0x1e,_0x488636=_0x488636!=null?_0x488636:0x1e;let _0x4e5135=0x0,_0x2d5ab6=0x0,_0x2e5021=0x0;_0x4e5135=_0x2d5ab6=_0x2e5021=Math['min'](_0x45d7b2,_0x401792/0x2,_0x488636/0x2),_0x3915d3[_0x10846e(0x407)](),_0x3915d3[_0x10846e(0x3b1)](_0x4e5135,0x0),_0x3915d3['lineTo'](_0x401792-_0x2d5ab6,0x0),_0x3915d3[_0x10846e(0x31d)](_0x401792-_0x2d5ab6,_0x2d5ab6,_0x2d5ab6,Math['PI']*0x3/0x2,0x0,!0x1),_0x3915d3[_0x10846e(0x306)](_0x401792,_0x488636-_0x2e5021),_0x3915d3['arc'](_0x401792-_0x2e5021,_0x488636-_0x2e5021,_0x2e5021,0x0,Math['PI']/0x2,!0x1),_0x3915d3[_0x10846e(0x306)](0x0,_0x488636),_0x3915d3[_0x10846e(0x306)](0x0,_0x4e5135),_0x3915d3[_0x10846e(0x31d)](_0x4e5135,_0x4e5135,_0x4e5135,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3915d3[_0x10846e(0x3f3)](),_0x56d62a['fill']&&(_0x3915d3[_0x10846e(0x19a)](),_0x3915d3[_0x10846e(0x21c)]=_0x56d62a[_0x10846e(0x252)],_0x56d62a[_0x10846e(0x4a8)]===_0x10846e(0x2b0)?_0x3915d3[_0x10846e(0x252)](_0x10846e(0x2b0)):_0x3915d3['fill'](),_0x3915d3['restore']());}class Oe extends D['Shape']{constructor(_0x1bf84e,_0x591c51){const _0x174861=_0x58f906;super(_0x1bf84e,_0x591c51),u(this,'color'),u(this,_0x174861(0x37e)),(this[_0x174861(0x3ea)]=_0x591c51==null?void 0x0:_0x591c51[_0x174861(0x3ea)],this[_0x174861(0x37e)]=_0x591c51==null?void 0x0:_0x591c51['text']);}static[_0x58f906(0x2f0)](_0x63a9ba,_0xf1cbdb){const _0x3bb2d7=_0x58f906,{text:_0x4c9e44,color:_0x33b3e6}=_0xf1cbdb;_0x63a9ba[_0x3bb2d7(0x19a)](),_0x63a9ba[_0x3bb2d7(0x2e2)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2cd09c=_0x63a9ba[_0x3bb2d7(0x26b)](_0x4c9e44)['width'],_0x2ae6e1=Math[_0x3bb2d7(0x515)](_0x2cd09c+0x2*Ae,lt);di(_0x63a9ba,{'height':de,'radius':0x4,'width':_0x2ae6e1,'fill':_0x33b3e6,'evented':!0x1}),_0x63a9ba[_0x3bb2d7(0x21c)]=_0x3bb2d7(0x527);const _0x417140=Ae,_0x36b4f5=de-ui,_0x47f713=lt-0x2*Ae;if(_0x2cd09c>_0x47f713){let _0x474e2e='',_0x81987=0x0;for(const _0x5318cc of _0x4c9e44){const _0x508e45=_0x63a9ba[_0x3bb2d7(0x26b)](_0x5318cc)[_0x3bb2d7(0x1b2)];if(_0x81987+_0x508e45<=_0x47f713-_0x63a9ba[_0x3bb2d7(0x26b)](_0x3bb2d7(0x4ea))[_0x3bb2d7(0x1b2)])_0x474e2e+=_0x5318cc,_0x81987+=_0x508e45;else{_0x474e2e+='...';break;}}_0x63a9ba[_0x3bb2d7(0x4fa)](_0x474e2e,_0x417140,_0x36b4f5);}else _0x63a9ba[_0x3bb2d7(0x4fa)](_0x4c9e44,_0x417140,_0x36b4f5);_0x63a9ba[_0x3bb2d7(0x360)]();}[_0x58f906(0x4f7)](_0x32dc1e){Oe['drawWith'](_0x32dc1e,this);}}const Le=_0x58f906(0x4b4),Si=_0x58f906(0x3cb),vi='collab-rect-range-',le=0x6,gi=1.5,je=0x4,mi=1.5,fi='rgba(255,\x20255,\x20255,\x200.01)';class ht{constructor(_0x412c1a,_0x36ee18,_0x5359c2,_0x1f6f35){const _0x45abe6=_0x58f906;u(this,_0x45abe6(0x561),[]),u(this,_0x45abe6(0x1e4),null),u(this,'_textBubble',null),u(this,_0x45abe6(0x352),null),u(this,_0x45abe6(0x573),null),u(this,_0x45abe6(0x1c0),null),(this[_0x45abe6(0x45e)]=_0x412c1a,this[_0x45abe6(0x216)]=_0x36ee18,this[_0x45abe6(0x41c)]=_0x5359c2,this['_document']=_0x1f6f35,this[_0x45abe6(0x3f1)]());}set[_0x58f906(0x23a)](_0x1c5382){const _0x3310d5=_0x58f906;_0x1c5382?(this[_0x3310d5(0x352)]&&this[_0x3310d5(0x352)][_0x3310d5(0x421)](),this[_0x3310d5(0x261)]&&this['_textBubble']['show']()):(this[_0x3310d5(0x352)]&&this[_0x3310d5(0x352)][_0x3310d5(0x246)](),this['_textBubble']&&this[_0x3310d5(0x261)][_0x3310d5(0x421)]());}['dispose'](){const _0x4dc01d=_0x58f906;for(const _0x1a63b7 of this[_0x4dc01d(0x561)])_0x1a63b7['dispose']();this['_textBubble']&&this[_0x4dc01d(0x261)][_0x4dc01d(0x45f)](),this[_0x4dc01d(0x352)]&&this['_anchorDot'][_0x4dc01d(0x45f)](),this[_0x4dc01d(0x1e4)]&&this[_0x4dc01d(0x1e4)][_0x4dc01d(0x45f)](),this[_0x4dc01d(0x1c0)]&&this['_eventUnsubscribe']();}[_0x58f906(0x3f1)](){const _0x3cbafe=_0x58f906;var _0x451f3b;const {_docSkeleton:_0x28f1ad,_document:_0x3dbd49}=this,{color:_0x58a82f,name:_0x499138,ranges:_0x551d64}=this[_0x3cbafe(0x45e)],_0x43827f=_0x3dbd49['getOffsetConfig'](),{docsLeft:_0x578b07,docsTop:_0x592c4d}=_0x43827f,_0x2ba632=new N[(_0x3cbafe(0x48e))](_0x43827f,_0x28f1ad);for(const {startOffset:_0x28143f,endOffset:_0x30c042,collapsed:_0x23a634,isActive:_0x25a554}of _0x551d64){const _0x262317=_0x28f1ad[_0x3cbafe(0x474)](_0x28143f),_0x409091=_0x28f1ad[_0x3cbafe(0x474)](_0x30c042);if(_0x25a554){const {contentBoxPointGroup:_0x360924}=_0x2ba632[_0x3cbafe(0x2fd)](_0x409091,_0x409091);if(_0x360924[_0x3cbafe(0x4b8)]===0x0)continue;this[_0x3cbafe(0x429)](_0x58a82f,_0x360924,_0x578b07,_0x592c4d,_0x499138),this[_0x3cbafe(0x1c0)]=this[_0x3cbafe(0x400)]();}if(!_0x23a634&&_0x262317&&_0x409091){if(N['isValidRectRange'](_0x262317,_0x409091)){const _0x48642c=new N['NodePositionConvertToRectRange'](_0x43827f,_0x28f1ad),{pointGroup:_0x318894}=(_0x451f3b=_0x48642c['getRangePointData'](_0x262317,_0x409091))!=null?_0x451f3b:{};if(_0x318894==null||_0x318894[_0x3cbafe(0x4b8)]===0x0)continue;this[_0x3cbafe(0x459)](_0x58a82f,_0x318894,_0x578b07,_0x592c4d);}else{const {contentBoxPointGroup:_0xf11a35}=_0x2ba632['getRangePointData'](_0x262317,_0x409091);if(_0xf11a35[_0x3cbafe(0x4b8)]===0x0)continue;this['_drawTextRange'](_0x58a82f,_0xf11a35,_0x578b07,_0x592c4d);}}}}[_0x58f906(0x429)](_0x47526f,_0x25174c,_0x1e6f4d,_0x50fd02,_0x1a1f9f){const _0x359e67=_0x58f906,_0x4f1367=this[_0x359e67(0x3f0)](_0x25174c),{left:_0x27dd8e,top:_0x34b5f0,height:_0x1a88fb}=_0x4f1367,_0x409e8d=this[_0x359e67(0x242)](),_0x1fc9d9=mi/_0x409e8d,_0xf582db=new D[(_0x359e67(0x1bc))](Le+a['Tools'][_0x359e67(0x3a7)](le),{'left':_0x27dd8e+_0x1e6f4d-_0x1fc9d9,'top':_0x34b5f0+_0x50fd02,'height':_0x1a88fb,'width':gi,'fill':_0x47526f||D[_0x359e67(0x405)](a[_0x359e67(0x2e7)]['black'],0x0),'strokeWidth':_0x1fc9d9,'stroke':fi,'evented':!0x0});this[_0x359e67(0x1e4)]=_0xf582db,this['_scene'][_0x359e67(0x51b)](_0xf582db,N[_0x359e67(0x214)]);const _0x222186=new D[(_0x359e67(0x1bc))](Le+a[_0x359e67(0x4d7)]['generateRandomId'](le),{'left':_0x27dd8e+_0x1e6f4d-_0x1fc9d9,'top':_0x34b5f0+_0x50fd02-je/0x2,'height':je,'width':je,'fill':_0x47526f||D['getColor'](a[_0x359e67(0x2e7)][_0x359e67(0x556)],0x0),'strokeWidth':0x0,'stroke':_0x47526f||D[_0x359e67(0x405)](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x359e67(0x352)]=_0x222186,this[_0x359e67(0x216)][_0x359e67(0x51b)](_0x222186,N[_0x359e67(0x214)]);const _0x4b07fe=new Oe(Le+a['Tools']['generateRandomId'](le),{'left':_0x27dd8e+_0x1e6f4d-_0x1fc9d9,'top':_0x34b5f0+_0x50fd02-de,'text':_0x1a1f9f,'color':_0x47526f});this['_textBubble']=_0x4b07fe,this['_scene'][_0x359e67(0x51b)](_0x4b07fe,N['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x58f906(0x400)](){const _0x1707b7=_0x58f906,_0x9832db=this['_anchor'][_0x1707b7(0x384)][_0x1707b7(0x334)](()=>{const _0x15feb1=_0x1707b7;this[_0x15feb1(0x23a)]=!0x0;}),_0x5e6c24=this[_0x1707b7(0x1e4)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x1ec253=_0x1707b7;this[_0x1ec253(0x573)]&&clearTimeout(this[_0x1ec253(0x573)]),this[_0x1ec253(0x573)]=setTimeout(()=>{const _0x2043d7=_0x1ec253;this[_0x2043d7(0x23a)]=!0x1;},0x7d0);});return()=>{const _0x377be1=_0x1707b7;_0x9832db[_0x377be1(0x228)](),_0x5e6c24[_0x377be1(0x228)]();};}[_0x58f906(0x33e)](_0x26f96b,_0x28f473,_0x2fb8c5,_0x478358){const _0xc80cc5=_0x58f906,_0x26f753=new a['ColorKit'](_0x26f96b)[_0xc80cc5(0x3f5)](0.2)[_0xc80cc5(0x16b)](),_0x3f5f50=new D[(_0xc80cc5(0x373))](Si+a[_0xc80cc5(0x4d7)]['generateRandomId'](le),{'pointsGroup':_0x28f473,'fill':_0x26f753||D[_0xc80cc5(0x405)](a[_0xc80cc5(0x2e7)][_0xc80cc5(0x556)],0.2),'left':_0x2fb8c5,'top':_0x478358,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xc80cc5(0x561)][_0xc80cc5(0x166)](_0x3f5f50),this[_0xc80cc5(0x216)][_0xc80cc5(0x51b)](_0x3f5f50,N[_0xc80cc5(0x214)]);}[_0x58f906(0x459)](_0x127b8a,_0x38a4b3,_0x4673c0,_0x3d9a41){const _0x3d5250=_0x58f906,_0x2f0e01=new a[(_0x3d5250(0x308))](_0x127b8a)[_0x3d5250(0x3f5)](0.2)['toRgbString'](),_0x48c96b=new D[(_0x3d5250(0x373))](vi+a[_0x3d5250(0x4d7)]['generateRandomId'](le),{'pointsGroup':_0x38a4b3,'fill':_0x2f0e01||D[_0x3d5250(0x405)](a['COLORS']['black'],0.2),'left':_0x4673c0,'top':_0x3d9a41,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3d5250(0x561)][_0x3d5250(0x166)](_0x48c96b),this[_0x3d5250(0x216)][_0x3d5250(0x51b)](_0x48c96b,N[_0x3d5250(0x214)]);}[_0x58f906(0x3f0)](_0x1a3580){const _0x43d528=_0x1a3580[0x0],_0x46488e=_0x43d528[0x0],_0x187e02=_0x43d528[0x2],{x:_0x4c251c,y:_0x186813}=_0x46488e,{x:_0x87ef4b,y:_0x23dc8f}=_0x187e02;return{'left':_0x4c251c,'top':_0x186813,'width':_0x87ef4b-_0x4c251c,'height':_0x23dc8f-_0x186813};}['_getScale'](){const _0x42aecd=_0x58f906,{scaleX:_0xdf4d0f,scaleY:_0x487410}=this[_0x42aecd(0x216)][_0x42aecd(0x4c7)]();return Math[_0x42aecd(0x2c7)](_0xdf4d0f,_0x487410);}}var Ii=Object['defineProperty'],pi=Object[_0x58f906(0x365)],Ci=(_0x196399,_0xceec95,_0x1cc58d,_0x1b80b0)=>{const _0xd9a9a1=_0x58f906;for(var _0x4e1d73=_0x1b80b0>0x1?void 0x0:_0x1b80b0?pi(_0xceec95,_0x1cc58d):_0xceec95,_0xae1288=_0x196399[_0xd9a9a1(0x4b8)]-0x1,_0x37bbef;_0xae1288>=0x0;_0xae1288--)(_0x37bbef=_0x196399[_0xae1288])&&(_0x4e1d73=(_0x1b80b0?_0x37bbef(_0xceec95,_0x1cc58d,_0x4e1d73):_0x37bbef(_0x4e1d73))||_0x4e1d73);return _0x1b80b0&&_0x4e1d73&&Ii(_0xceec95,_0x1cc58d,_0x4e1d73),_0x4e1d73;},ve=(_0x33f195,_0xea7f04)=>(_0x22dff6,_0x2de548)=>_0xea7f04(_0x22dff6,_0x2de548,_0x33f195);let Ve=class extends a[_0x58f906(0x3d0)]{constructor(_0x4af3e9,_0x8e23df,_0xc6ef5b,_0x36086c,_0x2fcf2d){const _0x2ce361=_0x58f906;super(),u(this,_0x2ce361(0x4bc),[]),u(this,_0x2ce361(0x1fc),[]),(this[_0x2ce361(0x26c)]=_0x4af3e9,this[_0x2ce361(0x18a)]=_0x8e23df,this[_0x2ce361(0x54f)]=_0xc6ef5b,this[_0x2ce361(0x2ac)]=_0x36086c,this[_0x2ce361(0x284)]=_0x2fcf2d,this[_0x2ce361(0x30d)]());}['_init'](){const _0xea3d31=_0x58f906,_0x1c22c0=this[_0xea3d31(0x26c)][_0xea3d31(0x553)],_0x90e975=this['_docSkeletonManagerService'];this[_0xea3d31(0x2af)](v['combineLatest']([this['_collabCursorController'][_0xea3d31(0x269)](_0x1c22c0),this[_0xea3d31(0x284)][_0xea3d31(0x574)]])[_0xea3d31(0x3d5)](E[_0xea3d31(0x50a)](([_0x5b9978,_0x12d897])=>({'skeleton':_0x90e975[_0xea3d31(0x199)](),'cursors':[..._0x5b9978[_0xea3d31(0x316)]()][_0xea3d31(0x47b)](_0x1f4e3f=>({..._0x1f4e3f,'color':_0x12d897[_0x1f4e3f[_0xea3d31(0x3ea)]]}))})))[_0xea3d31(0x4b6)](_0x10a5d7=>{const _0x277caf=_0xea3d31;if(this['_removeCollabCursors'](),_0x10a5d7){const {skeleton:_0x3cda1e,cursors:_0x446a8c}=_0x10a5d7;this[_0x277caf(0x17c)](_0x3cda1e,_0x446a8c);}})),this[_0xea3d31(0x2aa)](),this[_0xea3d31(0x16d)]();}[_0x58f906(0x17c)](_0x3ea2a9,_0x29ab40){const _0x114d0c=_0x58f906,{scene:_0x2699ed,mainComponent:_0x425710}=this[_0x114d0c(0x26c)],_0x5cc6e9=_0x29ab40[_0x114d0c(0x50a)](_0xa895d=>new ht(_0xa895d,_0x2699ed,_0x3ea2a9,_0x425710));this[_0x114d0c(0x4bc)]=_0x5cc6e9,this[_0x114d0c(0x1fc)]=_0x29ab40;}[_0x58f906(0x3ac)](){const _0x2802e5=_0x58f906;this[_0x2802e5(0x1a6)]();const {scene:_0x31bd90,mainComponent:_0x1a74fe}=this['_context'],_0x1fd6ec=this['_docSkeletonManagerService']['getSkeleton'](),_0x16f0de=this['_cursors'][_0x2802e5(0x50a)](_0x5c2dc0=>new ht(_0x5c2dc0,_0x31bd90,_0x1fd6ec,_0x1a74fe));this[_0x2802e5(0x4bc)]=_0x16f0de;}['_removeCollabCursors'](){const _0x28d664=_0x58f906;this[_0x28d664(0x4bc)][_0x28d664(0x18c)](_0x38b562=>_0x38b562[_0x28d664(0x45f)]()),this[_0x28d664(0x4bc)]=[];}[_0x58f906(0x16d)](){const _0x1313ad=_0x58f906,_0x42a704=[N[_0x1313ad(0x39e)]['id']];this['disposeWithMe'](this[_0x1313ad(0x2ac)][_0x1313ad(0x167)](_0x30254c=>{const _0x5b5ba1=_0x1313ad;_0x42a704[_0x5b5ba1(0x1c6)](_0x30254c['id'])&&_0x30254c[_0x5b5ba1(0x2bd)]['unitId']===this[_0x5b5ba1(0x26c)]['unitId']&&this[_0x5b5ba1(0x3ac)]();}));}[_0x58f906(0x2aa)](){const _0x3c6ee4=_0x58f906;this[_0x3c6ee4(0x2af)](a['fromEventSubject'](this['_context'][_0x3c6ee4(0x31c)][_0x3c6ee4(0x324)])['pipe'](E['filter'](_0xfe93b8=>_0xfe93b8[_0x3c6ee4(0x24a)]===D[_0x3c6ee4(0x545)][_0x3c6ee4(0x389)]),E[_0x3c6ee4(0x437)](0x10))[_0x3c6ee4(0x4b6)](()=>{const _0x5207e5=_0x3c6ee4;this[_0x5207e5(0x3ac)]();}));}};Ve=Ci([ve(0x1,a['Inject'](se['DocSkeletonManagerService'])),ve(0x2,a[_0x58f906(0x200)](ne)),ve(0x3,a[_0x58f906(0x484)]),ve(0x4,a[_0x58f906(0x200)](a['ThemeService']))],Ve);const Ei=0x1,bi=1.5;class Pt extends D[_0x58f906(0x2f3)]{constructor(_0x45893e,_0x40113b){const _0x4e160e=_0x58f906;super(_0x45893e,_0x40113b),u(this,_0x4e160e(0x1c3)),u(this,_0x4e160e(0x547),!0x1),u(this,_0x4e160e(0x271)),u(this,_0x4e160e(0x49d),''),u(this,'_labelPosition',_0x4e160e(0x3d2)),u(this,_0x4e160e(0x15b)),(_0x40113b&&this['setShapeProps'](_0x40113b),this[_0x4e160e(0x384)]['subscribeEvent'](()=>this[_0x4e160e(0x180)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4e160e(0x334)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x58f906(0x180)](_0x3c8473){const _0x550547=_0x58f906;var _0x5accd2,_0x2cd4c5,_0x549fb4,_0xe7b14b,_0x401717,_0x449043;this[_0x550547(0x1c3)]=(_0x5accd2=_0x3c8473['color'])!=null?_0x5accd2:this[_0x550547(0x1c3)],this[_0x550547(0x547)]=(_0x2cd4c5=_0x3c8473[_0x550547(0x321)])!=null?_0x2cd4c5:this[_0x550547(0x547)],this['_range']=(_0x549fb4=_0x3c8473['range'])!=null?_0x549fb4:this[_0x550547(0x271)],this['_name']=(_0xe7b14b=_0x3c8473[_0x550547(0x514)])!=null?_0xe7b14b:this[_0x550547(0x49d)],this[_0x550547(0x41a)]=(_0x401717=_0x3c8473[_0x550547(0x478)])!=null?_0x401717:this['_labelPosition'],this[_0x550547(0x15b)]=(_0x449043=_0x3c8473[_0x550547(0x549)])!=null?_0x449043:this[_0x550547(0x15b)],this[_0x550547(0x239)]({'width':_0x3c8473[_0x550547(0x1b2)],'height':_0x3c8473['height']});}['onMouseMove'](_0x5ef2d3){const _0x3095de=_0x58f906,{row:_0x27e436,column:_0x46da47}=_0x5ef2d3;if(_0x27e436>=this[_0x3095de(0x271)][_0x3095de(0x1bf)]&&_0x27e436<=this[_0x3095de(0x271)]['endRow']&&_0x46da47>=this['_range'][_0x3095de(0x3e3)]&&_0x46da47<=this[_0x3095de(0x271)][_0x3095de(0x3c2)]){this[_0x3095de(0x180)]({'hovered':!0x0});return;}this[_0x3095de(0x180)]({'hovered':!0x1});}['triggerDblclick'](_0x182f34){return!0x1;}[_0x58f906(0x4f7)](_0x3e67ce){const _0x39d82a=_0x58f906;D[_0x39d82a(0x1bc)]['drawWith'](_0x3e67ce,{'width':this[_0x39d82a(0x1b2)],'height':this[_0x39d82a(0x47a)],'strokeWidth':bi,'stroke':this[_0x39d82a(0x1c3)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x39d82a(0x547)]&&(_0x3e67ce[_0x39d82a(0x19a)](),_0x3e67ce[_0x39d82a(0x434)](0x1,0x0,0x0,0x1,this[_0x39d82a(0x1b2)],this['_labelPosition']===_0x39d82a(0x2ae)?0x0:-de),Oe['drawWith'](_0x3e67ce,{'text':this[_0x39d82a(0x49d)],'color':this[_0x39d82a(0x1c3)]}),_0x3e67ce[_0x39d82a(0x360)]());}}var Ti=Object['defineProperty'],Ri=Object[_0x58f906(0x365)],Oi=(_0x43e25a,_0x13dba9,_0x25608c,_0x4f7b3e)=>{const _0x333227=_0x58f906;for(var _0x60b6c8=_0x4f7b3e>0x1?void 0x0:_0x4f7b3e?Ri(_0x13dba9,_0x25608c):_0x13dba9,_0x38049c=_0x43e25a[_0x333227(0x4b8)]-0x1,_0x2c797b;_0x38049c>=0x0;_0x38049c--)(_0x2c797b=_0x43e25a[_0x38049c])&&(_0x60b6c8=(_0x4f7b3e?_0x2c797b(_0x13dba9,_0x25608c,_0x60b6c8):_0x2c797b(_0x60b6c8))||_0x60b6c8);return _0x4f7b3e&&_0x60b6c8&&Ti(_0x13dba9,_0x25608c,_0x60b6c8),_0x60b6c8;},$e=(_0x455a4d,_0x4bae8c)=>(_0x9c491d,_0x2ae33b)=>_0x4bae8c(_0x9c491d,_0x2ae33b,_0x455a4d);const Di=0x1389;let We=class extends a[_0x58f906(0x3d0)]{constructor(_0x2851dd,_0x25aba9,_0x2636eb,_0x46da63){const _0x557374=_0x58f906;super(),u(this,'_cursors',new Set()),u(this,'_lastPointer',null),(this[_0x557374(0x26c)]=_0x2851dd,this[_0x557374(0x225)]=_0x25aba9,this[_0x557374(0x54f)]=_0x2636eb,this['_themeService']=_0x46da63,this['_init']());}[_0x58f906(0x30d)](){const _0x5e93cc=_0x58f906;this[_0x5e93cc(0x225)]['currentSkeleton$'][_0x5e93cc(0x3d5)](E[_0x5e93cc(0x230)](this[_0x5e93cc(0x40a)]),E[_0x5e93cc(0x1ee)](_0x413026=>{const _0x27962d=_0x5e93cc;if(_0x413026){const _0x1ab096=_0x413026[_0x27962d(0x342)];return v[_0x27962d(0x572)](this['_collabCursorController'][_0x27962d(0x269)](this[_0x27962d(0x26c)][_0x27962d(0x553)]),this[_0x27962d(0x284)][_0x27962d(0x574)])['pipe'](E[_0x27962d(0x50a)](([_0x1cbdeb,_0x3588bf])=>{const _0xaaad80=new Map();return _0x1cbdeb['forEach']((_0x56f15a,_0xe393d5)=>{const _0x3f0408=_0x31a9;if(_0x56f15a[_0x3f0408(0x28a)]===_0x1ab096){const _0x169e49={..._0x56f15a};_0x169e49['color']=_0x3588bf[_0x56f15a[_0x3f0408(0x3ea)]],_0xaaad80[_0x3f0408(0x473)](_0xe393d5,_0x169e49);}}),{'skeleton':_0x413026,'cursors':_0xaaad80};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x5e93cc(0x4b6)](({skeleton:_0x4920dc,cursors:_0x52f707})=>{const _0x35e93f=_0x5e93cc;this[_0x35e93f(0x1a6)](),_0x4920dc&&this[_0x35e93f(0x17c)](_0x4920dc,_0x52f707);}),this['_sheetSkeletonManagerService'][_0x5e93cc(0x3a8)][_0x5e93cc(0x4b6)](_0x308060=>{const _0x1d69bf=_0x5e93cc;if(_0x308060==null)return;const {skeleton:_0x2a37eb}=_0x308060,{scene:_0x4f7f75}=this['_context'];_0x4f7f75['onPointerMove$'][_0x1d69bf(0x334)](a['debounce'](_0x16c43e=>{const _0x5be248=_0x1d69bf;var _0x45b64d,_0x1a4b8a;const {offsetX:_0x456aaf,offsetY:_0x3a46ac}=_0x16c43e,{x:_0x2f5457,y:_0x5d93e9}=_0x4f7f75[_0x5be248(0x4f4)](D[_0x5be248(0x1db)][_0x5be248(0x4e2)]([_0x456aaf,_0x3a46ac])),{scaleX:_0x4f981e,scaleY:_0x2c044d}=_0x4f7f75[_0x5be248(0x4c7)](),_0x51c6e9=_0x4f7f75['getViewport'](te[_0x5be248(0x3c9)][_0x5be248(0x38c)]),_0x30bca6=_0x4f7f75[_0x5be248(0x398)](D[_0x5be248(0x1db)][_0x5be248(0x4e2)]([_0x2f5457,_0x5d93e9]),_0x51c6e9),_0x33fabb=_0x2a37eb[_0x5be248(0x286)](_0x456aaf,_0x3a46ac,_0x4f981e,_0x2c044d,_0x30bca6);((_0x45b64d=this['_lastPointer'])==null?void 0x0:_0x45b64d['column'])===_0x33fabb[_0x5be248(0x2de)]&&((_0x1a4b8a=this['_lastPointer'])==null?void 0x0:_0x1a4b8a[_0x5be248(0x23c)])===_0x33fabb[_0x5be248(0x23c)]||this['_cursors'][_0x5be248(0x18c)](_0x2ff5c5=>{const _0x445859=_0x5be248;_0x2ff5c5[_0x445859(0x456)](_0x33fabb);});},0x64));});}['_updateCollabCursors'](_0x11626c,_0x19d61a){const _0x44fd44=_0x58f906;var _0x46fcda;const _0x17b76a=(_0x46fcda=this['_sheetSkeletonManagerService'][_0x44fd44(0x23f)]())==null?void 0x0:_0x46fcda['skeleton'];if(!_0x17b76a)return;const _0x5b866e=this[_0x44fd44(0x256)]();if(!_0x5b866e)return;this[_0x44fd44(0x1fc)][_0x44fd44(0x18c)](_0x2cfe77=>{const _0x142226=_0x44fd44;_0x2cfe77[_0x142226(0x29b)]();});const {scene:_0x3009ce}=_0x5b866e,_0x36ac76=yi(Array[_0x44fd44(0x17f)](_0x19d61a[_0x44fd44(0x316)]()))[_0x44fd44(0x50a)](_0x205007=>{const _0x5ac8de=_0x44fd44,{color:_0x5bdc38,range:_0xba63c3,name:_0x43aba0,selection:_0x157b27,sheetID:_0x98b581}=_0x205007,{startColumn:_0x59a0c3,startRow:_0x9422dc,endColumn:_0x2b3e98,endRow:_0x4ce124}=_0xba63c3,_0x3e8a51=te[_0x5ac8de(0x336)](_0x9422dc,_0x59a0c3,_0x3009ce,_0x17b76a),_0x117b99=te[_0x5ac8de(0x336)](_0x4ce124,_0x2b3e98,_0x3009ce,_0x17b76a),{columnHeaderHeightAndMarginTop:_0x5e2749}=_0x17b76a,{startX:_0x96ca20,startY:_0x371aa0}=_0x3e8a51,{endX:_0x317b9d,endY:_0x368ce2}=_0x117b99,_0x416257=_0x317b9d-_0x96ca20,_0x46a1b3=_0x368ce2-_0x371aa0,_0x114216={'labelPosition':_0x371aa0-_0x5e2749>=de?_0x5ac8de(0x3d2):_0x5ac8de(0x2ae),'sheetID':_0x98b581,'range':_0xba63c3,'color':_0x5bdc38,'name':_0x43aba0,'selection':_0x157b27,'left':_0x96ca20,'top':_0x371aa0,'width':_0x416257,'height':_0x46a1b3,'evented':!0x1,'zIndex':Di};return new Pt(_0x43aba0,_0x114216);});_0x3009ce['addObjects'](_0x36ac76,Ei),this[_0x44fd44(0x1fc)]=new Set(_0x36ac76);}[_0x58f906(0x1a6)](){const _0x1ee175=_0x58f906;var _0x14ce86;(_0x14ce86=this[_0x1ee175(0x1fc)])==null||_0x14ce86['forEach'](_0x3cfcb1=>_0x3cfcb1[_0x1ee175(0x45f)]());}[_0x58f906(0x256)](){const _0x696557=_0x58f906;return te[_0x696557(0x4b3)](this[_0x696557(0x26c)]['unit'],this[_0x696557(0x26c)]);}};We=Oi([$e(0x1,a[_0x58f906(0x200)](te[_0x58f906(0x257)])),$e(0x2,a[_0x58f906(0x200)](ne)),$e(0x3,a['Inject'](a[_0x58f906(0x2c0)]))],We);function yi(_0x58ac27){const _0x1c95c1=_0x58f906,_0x9d8e21=new Map();return _0x58ac27['forEach'](_0x53133e=>{const _0x3c6430=_0x31a9;if(_0x9d8e21['has'](_0x53133e[_0x3c6430(0x3bb)])){const _0x574e24=_0x9d8e21[_0x3c6430(0x406)](_0x53133e[_0x3c6430(0x3bb)]);_0x574e24['name']+=',\x20'+_0x53133e[_0x3c6430(0x514)];}else _0x9d8e21['set'](_0x53133e['selection'],_0x53133e);}),Array[_0x1c95c1(0x17f)](_0x9d8e21[_0x1c95c1(0x316)]());}var M=function(){const _0x1fa77f=_0x58f906;return M=Object[_0x1fa77f(0x318)]||function(_0x11fc6e){const _0x514c8d=_0x1fa77f;for(var _0x496fb5,_0x2981c9=0x1,_0x3b2ac0=arguments['length'];_0x2981c9<_0x3b2ac0;_0x2981c9++){_0x496fb5=arguments[_0x2981c9];for(var _0x3e8dc0 in _0x496fb5)Object[_0x514c8d(0x49e)][_0x514c8d(0x530)][_0x514c8d(0x3fd)](_0x496fb5,_0x3e8dc0)&&(_0x11fc6e[_0x3e8dc0]=_0x496fb5[_0x3e8dc0]);}return _0x11fc6e;},M[_0x1fa77f(0x1a3)](this,arguments);},Ui=function(_0x482261,_0x5b6ef7){const _0x1f1d74=_0x58f906;var _0x2e44e9={};for(var _0xe92ae4 in _0x482261)Object[_0x1f1d74(0x49e)][_0x1f1d74(0x530)]['call'](_0x482261,_0xe92ae4)&&_0x5b6ef7[_0x1f1d74(0x2ef)](_0xe92ae4)<0x0&&(_0x2e44e9[_0xe92ae4]=_0x482261[_0xe92ae4]);if(_0x482261!=null&&typeof Object[_0x1f1d74(0x3a2)]==_0x1f1d74(0x161)){for(var _0x520398=0x0,_0xe92ae4=Object['getOwnPropertySymbols'](_0x482261);_0x520398<_0xe92ae4[_0x1f1d74(0x4b8)];_0x520398++)_0x5b6ef7[_0x1f1d74(0x2ef)](_0xe92ae4[_0x520398])<0x0&&Object[_0x1f1d74(0x49e)]['propertyIsEnumerable'][_0x1f1d74(0x3fd)](_0x482261,_0xe92ae4[_0x520398])&&(_0x2e44e9[_0xe92ae4[_0x520398]]=_0x482261[_0xe92ae4[_0x520398]]);}return _0x2e44e9;},Ze=P[_0x58f906(0x2e5)](function(_0x5dff1f,_0x597395){const _0x27d452=_0x58f906;var _0x2329d5=_0x5dff1f[_0x27d452(0x2b4)],_0x383035=_0x5dff1f['id'],_0xa282a9=_0x5dff1f['className'],_0x3dbaea=_0x5dff1f['extend'],_0x506b05=Ui(_0x5dff1f,['icon','id',_0x27d452(0x2ec),_0x27d452(0x542)]),_0x27231b=_0x27d452(0x41e)[_0x27d452(0x26e)](_0x383035,'\x20')['concat'](_0xa282a9||'')['trim'](),_0x4c2cdf=P['useRef']('_'['concat'](Ni()));return wt(_0x2329d5,''[_0x27d452(0x26e)](_0x383035),{'defIds':_0x2329d5['defIds'],'idSuffix':_0x4c2cdf[_0x27d452(0x3f9)]},M({'ref':_0x597395,'className':_0x27231b},_0x506b05),_0x3dbaea);});function wt(_0x3b2595,_0x236593,_0x403a43,_0x278c54,_0x17dfa7){const _0x54a573=_0x58f906;return P['createElement'](_0x3b2595[_0x54a573(0x283)],M(M({'key':_0x236593},Pi(_0x3b2595,_0x403a43,_0x17dfa7)),_0x278c54),(wi(_0x3b2595,_0x403a43)[_0x54a573(0x2b3)]||[])[_0x54a573(0x50a)](function(_0x5945a9,_0x52af97){const _0x4189cd=_0x54a573;return wt(_0x5945a9,''[_0x4189cd(0x26e)](_0x236593,'-')[_0x4189cd(0x26e)](_0x3b2595[_0x4189cd(0x283)],'-')[_0x4189cd(0x26e)](_0x52af97),_0x403a43,void 0x0,_0x17dfa7);}));}function Pi(_0x28fde9,_0xbef19e,_0x4c73cb){const _0x6f52aa=_0x58f906;var _0x5ed70d=M({},_0x28fde9[_0x6f52aa(0x38f)]);_0x4c73cb!=null&&_0x4c73cb[_0x6f52aa(0x36e)]&&_0x5ed70d['fill']==='colorChannel1'&&(_0x5ed70d[_0x6f52aa(0x252)]=_0x4c73cb[_0x6f52aa(0x36e)]);var _0x47acd4=_0xbef19e[_0x6f52aa(0x3b6)];return!_0x47acd4||_0x47acd4[_0x6f52aa(0x4b8)]===0x0||(_0x28fde9[_0x6f52aa(0x283)]===_0x6f52aa(0x28e)&&_0x5ed70d[_0x6f52aa(0x526)]&&(_0x5ed70d[_0x6f52aa(0x526)]=_0x5ed70d[_0x6f52aa(0x526)]+_0xbef19e[_0x6f52aa(0x535)]),Object[_0x6f52aa(0x53a)](_0x5ed70d)[_0x6f52aa(0x18c)](function(_0x19660c){const _0x4b4fa3=_0x6f52aa;var _0x1434dd=_0x19660c[0x0],_0x266555=_0x19660c[0x1];typeof _0x266555==_0x4b4fa3(0x548)&&(_0x5ed70d[_0x1434dd]=_0x266555[_0x4b4fa3(0x45b)](/url\(#(.*)\)/,_0x4b4fa3(0x337)[_0x4b4fa3(0x26e)](_0xbef19e['idSuffix'],')')));})),_0x5ed70d;}function wi(_0x29d40e,_0x1c2113){const _0x346719=_0x58f906;var _0x21af9d,_0x34b146=_0x1c2113[_0x346719(0x3b6)];return!_0x34b146||_0x34b146['length']===0x0?_0x29d40e:_0x29d40e[_0x346719(0x283)]===_0x346719(0x56d)&&(!((_0x21af9d=_0x29d40e[_0x346719(0x2b3)])===null||_0x21af9d===void 0x0)&&_0x21af9d[_0x346719(0x4b8)])?M(M({},_0x29d40e),{'children':_0x29d40e[_0x346719(0x2b3)]['map'](function(_0xde61b3){const _0x5ddfcf=_0x346719;return typeof _0xde61b3['attrs']['id']==_0x5ddfcf(0x548)&&_0x34b146&&_0x34b146[_0x5ddfcf(0x2ef)](_0xde61b3['attrs']['id'])>-0x1?M(M({},_0xde61b3),{'attrs':M(M({},_0xde61b3[_0x5ddfcf(0x38f)]),{'id':_0xde61b3[_0x5ddfcf(0x38f)]['id']+_0x1c2113[_0x5ddfcf(0x535)]})}):_0xde61b3;})}):_0x29d40e;}function Ni(){const _0x45ed7d=_0x58f906;return Math[_0x45ed7d(0x3b3)]()[_0x45ed7d(0x462)](0x24)[_0x45ed7d(0x1e6)](0x2,0x8);}Ze[_0x58f906(0x27b)]=_0x58f906(0x18e);var Mi={'tag':_0x58f906(0x2e4),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x58f906(0x42f)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x58f906(0x563),'attrs':{'stroke':_0x58f906(0x22f),'d':_0x58f906(0x4dd),'strokeLinecap':_0x58f906(0x26f),'strokeLinejoin':_0x58f906(0x26f),'strokeWidth':1.2}}]},{'tag':_0x58f906(0x56d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x58f906(0x563),'attrs':{'fill':_0x58f906(0x431),'d':_0x58f906(0x1f1)}}]}]}],'defIds':[_0x58f906(0x201)]},Nt=P[_0x58f906(0x2e5)](function(_0x5ab320,_0x1f1f46){const _0x3ac726=_0x58f906;return P[_0x3ac726(0x280)](Ze,Object[_0x3ac726(0x318)]({},_0x5ab320,{'id':_0x3ac726(0x1b9),'ref':_0x1f1f46,'icon':Mi}));});Nt[_0x58f906(0x27b)]=_0x58f906(0x39b);var Ai={'tag':_0x58f906(0x2e4),'attrs':{'fill':_0x58f906(0x268),'viewBox':'0\x200\x2017\x2016','width':_0x58f906(0x42f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x58f906(0x4fc)},'children':[{'tag':_0x58f906(0x563),'attrs':{'stroke':_0x58f906(0x22f),'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':_0x58f906(0x26f),'strokeLinejoin':_0x58f906(0x26f),'strokeWidth':1.2}}]},{'tag':_0x58f906(0x56d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x58f906(0x563),'attrs':{'fill':_0x58f906(0x431),'d':'M0\x200H16V16H0z','transform':_0x58f906(0x34a)}}]}]}],'defIds':[_0x58f906(0x4b5)]},Mt=P[_0x58f906(0x2e5)](function(_0x2b1ee4,_0x4a688f){const _0x2c0150=_0x58f906;return P[_0x2c0150(0x280)](Ze,Object['assign']({},_0x2b1ee4,{'id':_0x2c0150(0x17b),'ref':_0x4a688f,'icon':Ai}));});Mt[_0x58f906(0x27b)]='OnLineSingle';function At(_0x465784){const _0x12ea29=_0x58f906;var _0x5823da,_0x41bcc4,_0x14fa48='';if(typeof _0x465784==_0x12ea29(0x548)||typeof _0x465784==_0x12ea29(0x3d7))_0x14fa48+=_0x465784;else{if(typeof _0x465784==_0x12ea29(0x367)){if(Array['isArray'](_0x465784)){var _0x4aa315=_0x465784[_0x12ea29(0x4b8)];for(_0x5823da=0x0;_0x5823da<_0x4aa315;_0x5823da++)_0x465784[_0x5823da]&&(_0x41bcc4=At(_0x465784[_0x5823da]))&&(_0x14fa48&&(_0x14fa48+='\x20'),_0x14fa48+=_0x41bcc4);}else{for(_0x41bcc4 in _0x465784)_0x465784[_0x41bcc4]&&(_0x14fa48&&(_0x14fa48+='\x20'),_0x14fa48+=_0x41bcc4);}}}return _0x14fa48;}function Li(){const _0x16a884=_0x58f906;for(var _0x220219,_0x4e115b,_0x5486c6=0x0,_0x1f82e2='',_0x13198c=arguments[_0x16a884(0x4b8)];_0x5486c6<_0x13198c;_0x5486c6++)(_0x220219=arguments[_0x5486c6])&&(_0x4e115b=At(_0x220219))&&(_0x1f82e2&&(_0x1f82e2+='\x20'),_0x1f82e2+=_0x4e115b);return _0x1f82e2;}const ji=_0x58f906(0x217),$i=_0x58f906(0x575),Hi=_0x58f906(0x298),xi=_0x58f906(0x4a6),ki=_0x58f906(0x38a),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x34a44c){const _0x42f398=_0x58f906;switch(_0x34a44c){case U[_0x42f398(0x55b)]:return'collabStatus.offline';case U[_0x42f398(0x33c)]:return _0x42f398(0x560);case U[_0x42f398(0x4df)]:return'collabStatus.fetchMiss';case U[_0x42f398(0x33b)]:return _0x42f398(0x163);case U['PENDING']:case U[_0x42f398(0x426)]:case U[_0x42f398(0x424)]:return _0x42f398(0x56c);case U['SYNCED']:return'collabStatus.synced';}}function Lt(_0x505c6c){const _0x50f7b0=_0x58f906,{status$:_0x381d28}=_0x505c6c,_0x3e6ca2=A[_0x50f7b0(0x311)](_0x381d28,U[_0x50f7b0(0x33b)]),_0x3af05f=a[_0x50f7b0(0x387)](a[_0x50f7b0(0x36a)]),_0x4d773a=a['useDependency'](exports[_0x50f7b0(0x369)]),_0x128185=_0x3e6ca2!==U[_0x50f7b0(0x55b)],_0x4dfe5d=_0x3af05f['t'](Bi(_0x3e6ca2)),_0x1bb8bd=Li(he[_0x50f7b0(0x546)],{[he[_0x50f7b0(0x287)]]:_0x128185,[he[_0x50f7b0(0x2ea)]]:!_0x128185}),_0x2243d4=_0x128185?P['createElement'](Mt,null):P[_0x50f7b0(0x280)](Nt,null),_0x376233=P['useCallback'](()=>{_0x128185||_0x4d773a['reconnect']();},[_0x128185,_0x4d773a]);function _0x4585ce(){const _0x39c870=_0x50f7b0;return P[_0x39c870(0x280)](_0x39c870(0x51d),{'className':_0x1bb8bd,'onClick':_0x376233},P[_0x39c870(0x280)](_0x39c870(0x51d),{'className':he[_0x39c870(0x240)]},_0x2243d4),P[_0x39c870(0x280)](_0x39c870(0x51d),{'className':he[_0x39c870(0x520)]},_0x4dfe5d));}return _0x128185?_0x4585ce():P[_0x50f7b0(0x280)](X[_0x50f7b0(0x550)],{'title':_0x3af05f['t']('collab-client.tooltip.reconnect')},_0x4585ce());}var Vi=Object[_0x58f906(0x503)],Wi=Object[_0x58f906(0x365)],Fi=(_0x2a6683,_0x17f799,_0x5246ec,_0x2a8e48)=>{const _0x2925b1=_0x58f906;for(var _0x4c2e55=_0x2a8e48>0x1?void 0x0:_0x2a8e48?Wi(_0x17f799,_0x5246ec):_0x17f799,_0x1a08fa=_0x2a6683[_0x2925b1(0x4b8)]-0x1,_0x24f286;_0x1a08fa>=0x0;_0x1a08fa--)(_0x24f286=_0x2a6683[_0x1a08fa])&&(_0x4c2e55=(_0x2a8e48?_0x24f286(_0x17f799,_0x5246ec,_0x4c2e55):_0x24f286(_0x4c2e55))||_0x4c2e55);return _0x2a8e48&&_0x4c2e55&&Vi(_0x17f799,_0x5246ec,_0x4c2e55),_0x4c2e55;},ge=(_0x5e6b75,_0x554f85)=>(_0x5739ec,_0x5ae24a)=>_0x554f85(_0x5739ec,_0x5ae24a,_0x5e6b75);function _0x31a9(_0x1246eb,_0x4562a0){const _0x4c51c6=_0x4c51();return _0x31a9=function(_0x31a921,_0x13b1ed){_0x31a921=_0x31a921-0x155;let _0x3c8ab2=_0x4c51c6[_0x31a921];return _0x3c8ab2;},_0x31a9(_0x1246eb,_0x4562a0);}exports[_0x58f906(0x4e9)]=class extends a[_0x58f906(0x279)]{constructor(_0x2c9bc3,_0xe5e97b,_0x364429,_0x55fe9d){const _0x415ba6=_0x58f906;super(),u(this,_0x415ba6(0x20d),new v[(_0x415ba6(0x379))](U['NOT_COLLAB'])),(this[_0x415ba6(0x1c7)]=_0x2c9bc3,this[_0x415ba6(0x34e)]=_0xe5e97b,this[_0x415ba6(0x375)]=_0x364429,this[_0x415ba6(0x220)]=_0x55fe9d,this[_0x415ba6(0x301)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x53fcbf=_0x58f906;this[_0x53fcbf(0x2af)](this[_0x53fcbf(0x1c7)]['focused$']['pipe'](v['switchMap'](()=>{const _0x398cc6=_0x53fcbf,_0xfb1905=this[_0x398cc6(0x1c7)]['getFocusedUnit']();return _0xfb1905?this[_0x398cc6(0x220)]['getCollabEntity$'](_0xfb1905[_0x398cc6(0x56a)]()):v['of'](null);}),v[_0x53fcbf(0x1ee)](_0x3662b3=>_0x3662b3?_0x3662b3[_0x53fcbf(0x339)]:v['of'](U[_0x53fcbf(0x33b)])))['subscribe'](_0x47bd06=>{const _0x56029b=_0x53fcbf;this[_0x56029b(0x20d)][_0x56029b(0x1e9)](_0x47bd06);}));}[_0x58f906(0x301)](){const _0x2883d3=_0x58f906;this[_0x2883d3(0x2af)](this['_uiPartsService'][_0x2883d3(0x3dd)](A[_0x2883d3(0x294)][_0x2883d3(0x178)],()=>a['connectInjector'](Gi({'status$':this[_0x2883d3(0x20d)][_0x2883d3(0x41d)]()}),this[_0x2883d3(0x375)])));}},exports[_0x58f906(0x4e9)]=Fi([ge(0x0,a[_0x58f906(0x497)]),ge(0x1,A[_0x58f906(0x414)]),ge(0x2,a[_0x58f906(0x200)](a['Injector'])),ge(0x3,a['Inject'](exports[_0x58f906(0x15e)]))],exports[_0x58f906(0x4e9)]);function Gi(_0x5cad69){const {status$:_0x14f16a}=_0x5cad69;return function(){const _0x2cd36b=_0x31a9;return P[_0x2cd36b(0x280)](Lt,{'status$':_0x14f16a});};}const Qe=a[_0x58f906(0x500)](_0x58f906(0x2dc));var Yi=Object[_0x58f906(0x503)],Ki=Object[_0x58f906(0x365)],Xi=(_0x58f41f,_0x3cfc68,_0xcf6f8c,_0x42cc78)=>{const _0x492557=_0x58f906;for(var _0x32eec0=_0x42cc78>0x1?void 0x0:_0x42cc78?Ki(_0x3cfc68,_0xcf6f8c):_0x3cfc68,_0x5e6635=_0x58f41f[_0x492557(0x4b8)]-0x1,_0x1f2d99;_0x5e6635>=0x0;_0x5e6635--)(_0x1f2d99=_0x58f41f[_0x5e6635])&&(_0x32eec0=(_0x42cc78?_0x1f2d99(_0x3cfc68,_0xcf6f8c,_0x32eec0):_0x1f2d99(_0x32eec0))||_0x32eec0);return _0x42cc78&&_0x32eec0&&Yi(_0x3cfc68,_0xcf6f8c,_0x32eec0),_0x32eec0;},ee=(_0x2d3359,_0x2e6636)=>(_0x50e4be,_0x5b991b)=>_0x2e6636(_0x50e4be,_0x5b991b,_0x2d3359);exports[_0x58f906(0x385)]=class extends a['RxDisposable']{constructor(_0x1ff52e,_0x5ea23d,_0x404005,_0x3f135b,_0x34cb0b,_0x4a3d2a){const _0x1e758e=_0x58f906;super(),this[_0x1e758e(0x206)]=_0x1ff52e,this[_0x1e758e(0x343)]=_0x5ea23d,this[_0x1e758e(0x2ac)]=_0x404005,this[_0x1e758e(0x3e5)]=_0x3f135b,this['_snapshotService']=_0x34cb0b,_0x4a3d2a?_0x4a3d2a==null||_0x4a3d2a[_0x1e758e(0x2fe)]()[_0x1e758e(0x182)](()=>this[_0x1e758e(0x30d)]()):(this['_logService'][_0x1e758e(0x1e7)](_0x1e758e(0x37f),_0x1e758e(0x4c9)),this[_0x1e758e(0x30d)]());}async[_0x58f906(0x30d)](){const _0x155b33=_0x58f906,_0x54e6f8=this[_0x155b33(0x206)][_0x155b33(0x2ce)](_0x155b33(0x482)),_0x3361b5=this[_0x155b33(0x206)][_0x155b33(0x2ce)](_0x155b33(0x24a));if(!_0x54e6f8||!_0x3361b5){this[_0x155b33(0x343)][_0x155b33(0x1e7)](_0x155b33(0x37f),_0x155b33(0x4ef));return;}switch(Number(_0x3361b5)){case $['UNIVER_SHEET']:{const _0x42c203=await this['_loadSheet'](_0x54e6f8);this[_0x155b33(0x349)](_0x42c203);break;}case $[_0x155b33(0x368)]:{await this[_0x155b33(0x32a)](_0x54e6f8);break;}default:{this[_0x155b33(0x343)][_0x155b33(0x1cc)](_0x155b33(0x37f),_0x155b33(0x28d));break;}}}async[_0x58f906(0x349)](_0x3148c0){const _0x1cd2a0=_0x58f906;await this['_updateSubUnitFromURLParams'](_0x3148c0),_0x3148c0[_0x1cd2a0(0x4e8)][_0x1cd2a0(0x3d5)](v[_0x1cd2a0(0x230)](this[_0x1cd2a0(0x40a)]))[_0x1cd2a0(0x4b6)](_0x223fbc=>{_0x223fbc&&this['_updateURLWithCurrentState'](_0x223fbc);}),this[_0x1cd2a0(0x206)]['urlChange$'][_0x1cd2a0(0x3d5)](v[_0x1cd2a0(0x230)](this['dispose$']))[_0x1cd2a0(0x4b6)](()=>this[_0x1cd2a0(0x223)](_0x3148c0));}['_updateURLWithCurrentState'](_0x2b861b,_0x35d3f6=!0x1){const _0x2fbd48=_0x58f906,_0x4c76f1=this[_0x2fbd48(0x206)][_0x2fbd48(0x2ce)](_0x2fbd48(0x489));_0x2b861b[_0x2fbd48(0x2d9)]()!==_0x4c76f1&&this[_0x2fbd48(0x206)]['setParam']('subunit',_0x2b861b['getSheetId'](),_0x35d3f6);}async[_0x58f906(0x223)](_0x59f05e){const _0x186b32=_0x58f906;var _0x23382b;const _0x5a6196=this[_0x186b32(0x206)][_0x186b32(0x2ce)](_0x186b32(0x489));if(!_0x5a6196||!_0x59f05e['getSheetBySheetId'](_0x5a6196)){const _0x4b99c6=_0x59f05e['getUnhiddenWorksheets']()[0x0],_0x428931=_0x59f05e['getSheetBySheetId'](_0x4b99c6);if(!_0x428931)return;this[_0x186b32(0x3ff)](_0x428931,!0x0),await this[_0x186b32(0x2ac)]['executeCommand'](C[_0x186b32(0x3df)]['id'],{'unitId':_0x59f05e[_0x186b32(0x56a)](),'subUnitId':_0x4b99c6});return;}((_0x23382b=_0x59f05e['getActiveSheet']())==null?void 0x0:_0x23382b[_0x186b32(0x2d9)]())!==_0x5a6196&&await this[_0x186b32(0x2ac)][_0x186b32(0x315)](C[_0x186b32(0x3df)]['id'],{'unitId':_0x59f05e[_0x186b32(0x56a)](),'subUnitId':_0x5a6196});}async['_loadSheet'](_0x12b79a){const _0x479d9f=_0x58f906;let _0x528def=0x0;const _0x13e71e=await this[_0x479d9f(0x3e5)]['loadOfflineData'](_0x12b79a);return _0x13e71e&&(_0x13e71e[_0x479d9f(0x4a2)]||_0x13e71e[_0x479d9f(0x425)][_0x479d9f(0x4b8)]!==0x0)&&(_0x528def=_0x13e71e['rev']),_0x528def===0x0&&this[_0x479d9f(0x343)][_0x479d9f(0x1e7)]('[DataLoaderController]',_0x479d9f(0x244)),this[_0x479d9f(0x2bf)][_0x479d9f(0x4ab)](_0x12b79a,_0x528def);}async[_0x58f906(0x32a)](_0x3b13b4){const _0x3a9e5f=_0x58f906;let _0x5d8c9d=0x0;const _0xa2f611=await this[_0x3a9e5f(0x3e5)][_0x3a9e5f(0x237)](_0x3b13b4);return _0xa2f611&&(_0xa2f611[_0x3a9e5f(0x4a2)]||_0xa2f611['mutations'][_0x3a9e5f(0x4b8)]!==0x0)&&(_0x5d8c9d=_0xa2f611[_0x3a9e5f(0x4d8)]),_0x5d8c9d===0x0&&this['_logService'][_0x3a9e5f(0x1e7)]('[DataLoaderController]',_0x3a9e5f(0x244)),this[_0x3a9e5f(0x2bf)]['loadDoc'](_0x3b13b4,_0x5d8c9d);}},exports['DataLoaderController']=Xi([ee(0x0,Qe),ee(0x1,a[_0x58f906(0x3f7)]),ee(0x2,a[_0x58f906(0x484)]),ee(0x3,a[_0x58f906(0x200)](exports[_0x58f906(0x533)])),ee(0x4,a[_0x58f906(0x200)](_[_0x58f906(0x2b5)])),ee(0x5,a['Optional'](Kt[_0x58f906(0x2ed)]))],exports['DataLoaderController']);var qi=Object[_0x58f906(0x503)],zi=Object[_0x58f906(0x365)],Ji=(_0xe43282,_0x11e7a7,_0x5e34c3,_0xca5c13)=>{const _0x3e89a9=_0x58f906;for(var _0x45d379=_0xca5c13>0x1?void 0x0:_0xca5c13?zi(_0x11e7a7,_0x5e34c3):_0x11e7a7,_0x1d5fb6=_0xe43282[_0x3e89a9(0x4b8)]-0x1,_0x393370;_0x1d5fb6>=0x0;_0x1d5fb6--)(_0x393370=_0xe43282[_0x1d5fb6])&&(_0x45d379=(_0xca5c13?_0x393370(_0x11e7a7,_0x5e34c3,_0x45d379):_0x393370(_0x45d379))||_0x45d379);return _0xca5c13&&_0x45d379&&qi(_0x11e7a7,_0x5e34c3,_0x45d379),_0x45d379;},_t=(_0xfebaec,_0x1c5f5a)=>(_0x250004,_0x1617b4)=>_0x1c5f5a(_0x250004,_0x1617b4,_0xfebaec);const Zi=_0x58f906(0x52e),Qi=_0x58f906(0x340);let Ce=class extends a[_0x58f906(0x279)]{constructor(_0x1cce50,_0x124d20){const _0x585969=_0x58f906;super(),this[_0x585969(0x1c7)]=_0x1cce50,this[_0x585969(0x47d)]=_0x124d20,this[_0x585969(0x30d)]();}[_0x58f906(0x30d)](){const _0x2df7d9=_0x58f906;this[_0x2df7d9(0x2af)](this['_univerInstanceService'][_0x2df7d9(0x16e)][_0x2df7d9(0x4b6)](()=>{const _0x44afb2=_0x2df7d9;var _0x3d6c02;const _0x3c0a10=this['_univerInstanceService'][_0x44afb2(0x162)]();let _0x10cf42=(_0x3d6c02=this[_0x44afb2(0x47d)][_0x44afb2(0x2bc)](Zi))!=null?_0x3d6c02:Qi;_0x3c0a10 instanceof a[_0x44afb2(0x210)]&&(_0x10cf42=_0x3c0a10[_0x44afb2(0x514)]),document[_0x44afb2(0x2cd)]=_0x10cf42;}));}};Ce=Ji([_t(0x0,a[_0x58f906(0x497)]),_t(0x1,a[_0x58f906(0x304)])],Ce);var en=Object[_0x58f906(0x503)],tn=Object[_0x58f906(0x365)],sn=(_0x245487,_0x1b456,_0x1729d1,_0x83ed0c)=>{const _0x25b226=_0x58f906;for(var _0x4b0595=_0x83ed0c>0x1?void 0x0:_0x83ed0c?tn(_0x1b456,_0x1729d1):_0x1b456,_0x47171f=_0x245487[_0x25b226(0x4b8)]-0x1,_0x56f5bc;_0x47171f>=0x0;_0x47171f--)(_0x56f5bc=_0x245487[_0x47171f])&&(_0x4b0595=(_0x83ed0c?_0x56f5bc(_0x1b456,_0x1729d1,_0x4b0595):_0x56f5bc(_0x4b0595))||_0x4b0595);return _0x83ed0c&&_0x4b0595&&en(_0x1b456,_0x1729d1,_0x4b0595),_0x4b0595;},He=(_0x239736,_0x2c96a7)=>(_0x3e2925,_0x105ed6)=>_0x2c96a7(_0x3e2925,_0x105ed6,_0x239736);let Ee=class{constructor(_0x273519,_0x24b0be,_0x152dfe){const _0x138434=_0x58f906;this[_0x138434(0x47d)]=_0x273519,this[_0x138434(0x22a)]=_0x24b0be,this[_0x138434(0x4cf)]=_0x152dfe,this[_0x138434(0x2d8)]();}[_0x58f906(0x2d8)](){const _0x48e62b=_0x58f906;this[_0x48e62b(0x22a)][_0x48e62b(0x16c)]({'priority':0x1,'interceptor':(_0x285f05,_0x177333)=>_0x177333(_0x285f05)[_0x48e62b(0x3d5)](v[_0x48e62b(0x39d)](async _0x9893de=>{const _0x3532fa=_0x48e62b,_0x332e6a=_0x9893de;if(_0x332e6a[_0x3532fa(0x53e)]===0x191&&window['confirm'](this[_0x3532fa(0x4cf)]['t'](_0x3532fa(0x277)))){const _0x53965b=window[_0x3532fa(0x578)](window['location'][_0x3532fa(0x24e)]);window[_0x3532fa(0x278)][_0x3532fa(0x24e)]=this[_0x3532fa(0x213)]()+_0x3532fa(0x218)+_0x53965b;}return _0x332e6a;}))});}[_0x58f906(0x213)](){const _0x58d2b7=_0x58f906;var _0x291151,_0xe86260;const _0x1327ed=this[_0x58d2b7(0x47d)][_0x58d2b7(0x2bc)](Et),_0x42ef96=this[_0x58d2b7(0x47d)][_0x58d2b7(0x2bc)](L);return(_0xe86260=(_0x291151=_0x42ef96==null?void 0x0:_0x42ef96[_0x58d2b7(0x23e)])!=null?_0x291151:_0x1327ed)!=null?_0xe86260:ns;}};Ee=sn([He(0x0,a[_0x58f906(0x304)]),He(0x1,a[_0x58f906(0x200)](w['HTTPService'])),He(0x2,a['Inject'](a[_0x58f906(0x36a)]))],Ee);var nn=Object['defineProperty'],rn=Object[_0x58f906(0x365)],on=(_0xf26819,_0x899e,_0x2e36a7,_0x1f8011)=>{for(var _0x25cd0b=_0x1f8011>0x1?void 0x0:_0x1f8011?rn(_0x899e,_0x2e36a7):_0x899e,_0x4849df=_0xf26819['length']-0x1,_0x3a3d8e;_0x4849df>=0x0;_0x4849df--)(_0x3a3d8e=_0xf26819[_0x4849df])&&(_0x25cd0b=(_0x1f8011?_0x3a3d8e(_0x899e,_0x2e36a7,_0x25cd0b):_0x3a3d8e(_0x25cd0b))||_0x25cd0b);return _0x1f8011&&_0x25cd0b&&nn(_0x899e,_0x2e36a7,_0x25cd0b),_0x25cd0b;},ut=(_0x3e5d07,_0x40619a)=>(_0x34bd1a,_0x30a8f7)=>_0x40619a(_0x34bd1a,_0x30a8f7,_0x3e5d07);const jt=_0x58f906(0x496),an=_0x58f906(0x176);exports[_0x58f906(0x159)]=class extends a['Disposable']{constructor(_0x66833c,_0x6148da){const _0x5c1dd8=_0x58f906;super(),this[_0x5c1dd8(0x1f5)]=_0x66833c,this[_0x5c1dd8(0x47d)]=_0x6148da,this[_0x5c1dd8(0x395)]();}[_0x58f906(0x395)](){const _0x1a0b54=_0x58f906,_0x52e872=this;this[_0x1a0b54(0x2af)](this[_0x1a0b54(0x1f5)][_0x1a0b54(0x16c)]({'priority':0x3e7,'interceptor':w[_0x1a0b54(0x232)]({'isMatch'(_0x31ccbd){const _0x838c1b=_0x1a0b54;var _0x30ef06;if(_0x31ccbd[_0x838c1b(0x2a3)]===_0x838c1b(0x40c)&&((_0x30ef06=_0x31ccbd['requestParams'])!=null&&_0x30ef06[_0x838c1b(0x170)])){const {objectID:_0x1434d4,objectType:_0x137694}=_0x31ccbd[_0x838c1b(0x270)][_0x838c1b(0x170)]||{};if(!_0x1434d4||_0x137694===void 0x0)return!0x1;const _0x31653a=_0x52e872['_getAPIPrefixPath']()+'/'+_0x137694+_0x838c1b(0x411)+_0x1434d4+_0x838c1b(0x56f);if(_0x31ccbd[_0x838c1b(0x47f)]===_0x31653a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x524dce){const _0x2c5e39=_0x1a0b54;var _0x1e2eee;return(_0x1e2eee=_0x524dce[_0x2c5e39(0x270)])==null?void 0x0:_0x1e2eee[_0x2c5e39(0x170)];},'mergeParamsToRequest'(_0x699dbe,_0x371de6){const _0x267486=_0x1a0b54,_0x2dbf0c=_0x52e872[_0x267486(0x3f8)]()+_0x267486(0x419),_0x283aed=_0x699dbe['reduce']((_0x50e3b9,_0x165b85)=>{const _0x4887cf=_0x267486,{unitID:_0x3fbb86,objectID:_0x310262,objectType:_0x556151,actions:_0x2903e7}=_0x165b85;return _0x50e3b9[_0x3fbb86]||(_0x50e3b9[_0x3fbb86]={}),_0x50e3b9[_0x3fbb86][_0x310262]||(_0x50e3b9[_0x3fbb86][_0x310262]={'objectID':_0x310262,'objectType':_0x556151,'actions':[]}),_0x50e3b9[_0x3fbb86][_0x310262][_0x4887cf(0x22c)][_0x4887cf(0x166)](..._0x2903e7),_0x50e3b9;},{}),_0x55ab39=[];for(const _0x4ac9d0 in _0x283aed)for(const _0x225e81 in _0x283aed[_0x4ac9d0]){const {actions:_0x545f4c,objectType:_0x2f9814}=_0x283aed[_0x4ac9d0][_0x225e81],_0x1fb853=[...new Set(_0x545f4c)];_0x55ab39[_0x267486(0x166)]({'unitID':_0x4ac9d0,'objectID':_0x225e81,'objectType':_0x2f9814,'actions':_0x1fb853});}return new w[(_0x267486(0x402))]('POST',_0x2dbf0c,{'headers':_0x371de6[_0x267486(0x472)],'withCredentials':_0x371de6['withCredentials'],'responseType':_0x371de6[_0x267486(0x48d)],'body':{'requests':_0x55ab39}});}},{'distributeResult'(_0x4abb0f,_0x4bf945){const _0x43e6ce=_0x1a0b54,{objectActions:_0x223af4}=_0x4abb0f;return _0x4bf945[_0x43e6ce(0x50a)](_0x216097=>{const _0x4aa565=_0x43e6ce,{unitID:_0x4b251e,objectID:_0x5b05dc,actions:_0x11137c}=_0x216097,_0x3b44bd=_0x223af4['find'](_0x57d047=>_0x57d047[_0x4aa565(0x168)]===_0x4b251e&&_0x57d047[_0x4aa565(0x43a)]===_0x5b05dc),_0x5e08ca=_0x11137c[_0x4aa565(0x50a)](_0x642910=>_0x3b44bd==null?void 0x0:_0x3b44bd[_0x4aa565(0x22c)]['find'](_0x1ebceb=>_0x1ebceb[_0x4aa565(0x458)]===_0x642910))[_0x4aa565(0x355)](_0x470ad2=>!!_0x470ad2);return{'config':_0x216097,'result':{'actions':_0x5e08ca,'error':_0x4abb0f['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x3b867b=_0x58f906;var _0x49a5e5,_0x5c872b;const _0x34e1a5=this['_configService']['getConfig'](jt),_0x5369b2=this[_0x3b867b(0x47d)][_0x3b867b(0x2bc)](L);return(_0x5c872b=(_0x49a5e5=_0x5369b2==null?void 0x0:_0x5369b2[_0x3b867b(0x24b)])!=null?_0x49a5e5:_0x34e1a5)!=null?_0x5c872b:an;}async[_0x58f906(0x43b)](_0x3fcb05){const _0x528117=_0x58f906,_0x43fea8=this[_0x528117(0x3f8)]()+'/'+_0x3fcb05[_0x528117(0x38e)]+_0x528117(0x3fc);return(await this[_0x528117(0x1f5)][_0x528117(0x46a)](_0x43fea8,{'body':_0x3fcb05}))['body'][_0x528117(0x43a)]||'';}async[_0x58f906(0x566)](_0x288d6e){const _0x214437=_0x58f906,_0x97804e=this[_0x214437(0x3f8)]()+'/-/object/list';return(await this[_0x214437(0x1f5)]['post'](_0x97804e,{'body':_0x288d6e}))[_0x214437(0x170)]['objects'];}async[_0x58f906(0x423)](_0x4c903c){const _0x1f5aa8=_0x58f906,_0x38386f=this[_0x1f5aa8(0x3f8)]()+'/'+_0x4c903c[_0x1f5aa8(0x38e)]+_0x1f5aa8(0x411)+_0x4c903c['objectID'];await this['_HTTPService'][_0x1f5aa8(0x1eb)](_0x38386f,{'body':_0x4c903c});}async[_0x58f906(0x21e)](_0x496c12){const _0x3219cb=_0x58f906,_0x53af68=this[_0x3219cb(0x3f8)]()+'/'+_0x496c12[_0x3219cb(0x38e)]+'/object/'+_0x496c12[_0x3219cb(0x43a)]+_0x3219cb(0x56f);return(await this['_HTTPService'][_0x3219cb(0x46a)](_0x53af68,{'body':_0x496c12}))[_0x3219cb(0x170)][_0x3219cb(0x22c)];}async[_0x58f906(0x1ac)](_0x1293a0){const _0x353a22=_0x58f906,_0x5e3fdb=this[_0x353a22(0x3f8)]()+_0x353a22(0x419);return(await this['_HTTPService'][_0x353a22(0x46a)](_0x5e3fdb,{'body':{'requests':_0x1293a0}}))[_0x353a22(0x170)][_0x353a22(0x383)];}async['listRoles'](_0x37d603){const _0x323de7=_0x58f906,_0xf5064c=this['_getAPIPrefixPath']()+'/'+_0x37d603[_0x323de7(0x38e)]+_0x323de7(0x511),_0x185f49=await this[_0x323de7(0x1f5)][_0x323de7(0x46a)](_0xf5064c,{'body':_0x37d603});return{'roles':_0x185f49[_0x323de7(0x170)][_0x323de7(0x179)],'actions':_0x185f49[_0x323de7(0x170)][_0x323de7(0x22c)]};}async[_0x58f906(0x4db)](_0x2a16dd){const _0x1a33e4=_0x58f906,_0x2f0e71=this['_getAPIPrefixPath']()+_0x1a33e4(0x290);await this[_0x1a33e4(0x1f5)][_0x1a33e4(0x2d7)](_0x2f0e71,{'params':{'collaboratorID':_0x2a16dd[_0x1a33e4(0x4ce)],'objectID':_0x2a16dd[_0x1a33e4(0x43a)],'unitID':_0x2a16dd[_0x1a33e4(0x168)]}});}async[_0x58f906(0x1f3)](_0x5ea84c){const _0x2c1aaf=_0x58f906,_0x5cabff=this[_0x2c1aaf(0x3f8)]()+'/collaborator';await this[_0x2c1aaf(0x1f5)]['patch'](_0x5cabff,{'body':_0x5ea84c});}async['createCollaborator'](_0x3a2190){const _0x90e61e=_0x58f906,_0xbfcc3a=this[_0x90e61e(0x3f8)]()+_0x90e61e(0x290);await this['_HTTPService'][_0x90e61e(0x46a)](_0xbfcc3a,{'body':_0x3a2190});}async[_0x58f906(0x193)](_0x3a1181){const _0x11b4c9=_0x58f906,_0xe37f6=this[_0x11b4c9(0x3f8)]()+_0x11b4c9(0x290);return(await this[_0x11b4c9(0x1f5)][_0x11b4c9(0x406)](_0xe37f6,{'params':{'objectID':_0x3a1181[_0x11b4c9(0x43a)],'unitID':_0x3a1181[_0x11b4c9(0x168)]}}))[_0x11b4c9(0x170)][_0x11b4c9(0x17d)];}async['putCollaborators'](_0x28025f){const _0x3b7815=_0x58f906,_0x72533b=this[_0x3b7815(0x3f8)]()+'/collaborator';await this[_0x3b7815(0x1f5)][_0x3b7815(0x1eb)](_0x72533b,{'body':_0x28025f});}},exports[_0x58f906(0x159)]=on([ut(0x0,a[_0x58f906(0x200)](w[_0x58f906(0x33f)])),ut(0x1,a['Inject'](a[_0x58f906(0x304)]))],exports[_0x58f906(0x159)]);var cn=Object['defineProperty'],ln=Object[_0x58f906(0x365)],hn=(_0x122e9c,_0x516504,_0x1024de,_0x5dab49)=>{const _0x5cfd7a=_0x58f906;for(var _0x4e7bb1=_0x5dab49>0x1?void 0x0:_0x5dab49?ln(_0x516504,_0x1024de):_0x516504,_0x1aaa78=_0x122e9c[_0x5cfd7a(0x4b8)]-0x1,_0x2847ef;_0x1aaa78>=0x0;_0x1aaa78--)(_0x2847ef=_0x122e9c[_0x1aaa78])&&(_0x4e7bb1=(_0x5dab49?_0x2847ef(_0x516504,_0x1024de,_0x4e7bb1):_0x2847ef(_0x4e7bb1))||_0x4e7bb1);return _0x5dab49&&_0x4e7bb1&&cn(_0x516504,_0x1024de,_0x4e7bb1),_0x4e7bb1;},_n=(_0x35e94f,_0x1a0f9e)=>(_0xf7aa39,_0x2ff46e)=>_0x1a0f9e(_0xf7aa39,_0x2ff46e,_0x35e94f);let be=class{constructor(_0x3250fc){const _0x534290=_0x58f906;this['_httpService']=_0x3250fc,this[_0x534290(0x41b)]();}[_0x58f906(0x41b)](){const _0x1e74e3=_0x58f906;this[_0x1e74e3(0x22a)]['registerHTTPInterceptor']({'interceptor':(_0x3347f2,_0x291b0c)=>{const _0x5b2a11=_0x1e74e3,_0x159da1=_0x3347f2[_0x5b2a11(0x472)],_0x2731a2=Xt['getAttachHeader']();return _0x2731a2&&_0x159da1[_0x5b2a11(0x473)](_0x5b2a11(0x50f),_0x2731a2),_0x291b0c(_0x3347f2);}});}};be=hn([_n(0x0,a[_0x58f906(0x200)](w[_0x58f906(0x33f)]))],be);var un=Object[_0x58f906(0x503)],dn=Object[_0x58f906(0x365)],Sn=(_0x1ed934,_0x16df4e,_0x4b6166,_0x2b22be)=>{const _0x31da43=_0x58f906;for(var _0x221e67=_0x2b22be>0x1?void 0x0:_0x2b22be?dn(_0x16df4e,_0x4b6166):_0x16df4e,_0x427149=_0x1ed934[_0x31da43(0x4b8)]-0x1,_0x2122f8;_0x427149>=0x0;_0x427149--)(_0x2122f8=_0x1ed934[_0x427149])&&(_0x221e67=(_0x2b22be?_0x2122f8(_0x16df4e,_0x4b6166,_0x221e67):_0x2122f8(_0x221e67))||_0x221e67);return _0x2b22be&&_0x221e67&&un(_0x16df4e,_0x4b6166,_0x221e67),_0x221e67;},xe=(_0xeca557,_0x2b7028)=>(_0x3d3022,_0x426d7c)=>_0x2b7028(_0x3d3022,_0x426d7c,_0xeca557);const vn=[_0x58f906(0x430),'image/jpeg',_0x58f906(0x196),_0x58f906(0x1a0),_0x58f906(0x3fa)],gn=0x5*0x400*0x400,mn='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',fn=_0x58f906(0x289),In=_0x58f906(0x2f4),pn='/universer-api/file/{fileID}/sign-url';exports[_0x58f906(0x3f4)]=class{constructor(_0x595474,_0x28f057,_0x17a849){const _0x498686=_0x58f906;u(this,'_waitCount',0x0),u(this,_0x498686(0x3da),new v['Subject']()),u(this,_0x498686(0x559),this[_0x498686(0x3da)]),u(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x595474,this[_0x498686(0x47d)]=_0x28f057,this[_0x498686(0x1c7)]=_0x17a849);}[_0x58f906(0x519)](_0x20539f){const _0x19edcb=_0x58f906;this[_0x19edcb(0x4bf)]=_0x20539f,this[_0x19edcb(0x3da)]['next'](_0x20539f);}[_0x58f906(0x49a)](_0x3f4ec4,_0x3a92a1){const _0xff1ef0=_0x58f906;if(_0x3a92a1===j[_0xff1ef0(0x229)]['BASE64']){const _0x25b4ea=new Image();return _0x25b4ea['src']=_0x3f4ec4,_0x25b4ea;}return this[_0xff1ef0(0x451)][_0xff1ef0(0x406)](_0x3f4ec4);}[_0x58f906(0x314)](_0x106f2e,_0x92dcb8,_0x301055){const _0x2426a7=_0x58f906;_0x92dcb8===j[_0x2426a7(0x229)][_0x2426a7(0x29c)]||_0x301055==null||this['_imageSourceCache']['set'](_0x106f2e,_0x301055);}async[_0x58f906(0x36b)](_0xe902b0){const _0x5adbfa=_0x58f906;try{const _0x24280d=this['_replaceFileID'](this[_0x5adbfa(0x2bb)](),''+_0xe902b0),_0x577a1e=(await this['_httpService']['get'](_0x24280d))['body'];if(_0x577a1e['error']&&_0x577a1e[_0x5adbfa(0x1cc)][_0x5adbfa(0x264)]===bt['OK']){const _0x383fb2=new URL(_0x577a1e[_0x5adbfa(0x47f)],this[_0x5adbfa(0x538)]())[_0x5adbfa(0x462)]();return Promise[_0x5adbfa(0x39a)](_0x383fb2);}return Promise[_0x5adbfa(0x36f)](_0x577a1e[_0x5adbfa(0x1cc)]);}catch(_0x290834){return Promise[_0x5adbfa(0x36f)](_0x290834);}}async['saveImage'](_0x761672){const _0x2d14da=_0x58f906;let _0xe0a49='';if(!vn['includes'](_0x761672[_0x2d14da(0x24a)]))return this[_0x2d14da(0x485)](),Promise['reject'](new Error(j['ImageUploadStatusType'][_0x2d14da(0x468)]));if(_0x761672[_0x2d14da(0x2c5)]>gn)return this[_0x2d14da(0x485)](),Promise['reject'](new Error(j[_0x2d14da(0x46c)]['ERROR_EXCEED_SIZE']));try{const _0x3bcaf5=new FormData();_0x3bcaf5[_0x2d14da(0x3b9)](_0x2d14da(0x1d6),_0x761672);const _0x308ef1=this['_univerInstanceService'][_0x2d14da(0x162)](),_0x309e5f=_0x308ef1==null?void 0x0:_0x308ef1[_0x2d14da(0x56a)]();if(!_0x309e5f)throw new Error(_0x2d14da(0x1f7));const _0x57a0dc=this[_0x2d14da(0x3cf)]()+_0x2d14da(0x50c)+_0x761672[_0x2d14da(0x2c5)][_0x2d14da(0x462)]()+'&source='+Tt[_0x2d14da(0x33a)]+'&assign='+encodeURIComponent(_0x309e5f),_0x2624d9=await(await fetch(_0x57a0dc,{'method':_0x2d14da(0x40c),'body':_0x3bcaf5}))['json']();if(typeof _0x2624d9[_0x2d14da(0x3e0)]!=_0x2d14da(0x548))return this[_0x2d14da(0x485)](),Promise['reject'](new Error(j[_0x2d14da(0x46c)]['ERROR_IMAGE']));_0xe0a49=_0x2624d9[_0x2d14da(0x3e0)];}catch{return this['_decreaseWaiting'](),Promise[_0x2d14da(0x36f)](new Error(j[_0x2d14da(0x46c)][_0x2d14da(0x24f)]));}return new Promise((_0x28950c,_0x2e8488)=>{const _0x215025=_0x2d14da,_0x23dfcf=new FileReader();_0x23dfcf[_0x215025(0x50d)](_0x761672),_0x23dfcf['onload']=_0xb387e4=>{const _0x413db8=_0x215025;var _0x349317;const _0x2e3153=(_0x349317=_0xb387e4[_0x413db8(0x20f)])==null?void 0x0:_0x349317[_0x413db8(0x231)];if(_0x2e3153==null){this[_0x413db8(0x485)](),_0x2e8488(new Error(j[_0x413db8(0x46c)][_0x413db8(0x24f)]));return;}const _0x23b5ef=a[_0x413db8(0x4d7)][_0x413db8(0x3a7)](0x6);_0x28950c({'imageId':_0x23b5ef,'imageSourceType':j[_0x413db8(0x229)][_0x413db8(0x2ab)],'source':_0xe0a49,'base64Cache':_0x2e3153,'status':j['ImageUploadStatusType'][_0x413db8(0x21f)]}),this['_decreaseWaiting']();};});}[_0x58f906(0x3cf)](){const _0x1aeac7=_0x58f906;var _0x409a5d,_0x1cd35c;const _0x40f579=this['_configService'][_0x1aeac7(0x2bc)](mn),_0x5c20bb=this['_configService'][_0x1aeac7(0x2bc)](L);return(_0x1cd35c=(_0x409a5d=_0x5c20bb==null?void 0x0:_0x5c20bb[_0x1aeac7(0x493)])!=null?_0x409a5d:_0x40f579)!=null?_0x1cd35c:fn;}[_0x58f906(0x2bb)](){const _0xdf65f2=_0x58f906;var _0x3537f8,_0x3089ba;const _0x2a6b11=this[_0xdf65f2(0x47d)][_0xdf65f2(0x2bc)](In),_0x4f3ad1=this[_0xdf65f2(0x47d)][_0xdf65f2(0x2bc)](L);return(_0x3089ba=(_0x3537f8=_0x4f3ad1==null?void 0x0:_0x4f3ad1[_0xdf65f2(0x347)])!=null?_0x3537f8:_0x2a6b11)!=null?_0x3089ba:pn;}[_0x58f906(0x538)](){const _0x2b5bf8=_0x58f906;var _0x311700;const _0x503d55=this[_0x2b5bf8(0x47d)][_0x2b5bf8(0x2bc)](L);return(_0x311700=_0x503d55==null?void 0x0:_0x503d55['downloadEndpointUrl'])!=null?_0x311700:location[_0x2b5bf8(0x292)];}[_0x58f906(0x382)](_0x156780,_0xae3c99){const _0x2b7b3d=_0x58f906;return _0x156780[_0x2b7b3d(0x45b)]('{fileID}',_0xae3c99);}[_0x58f906(0x485)](){const _0x3c1174=_0x58f906;this['_waitCount']-=0x1,this['_change$'][_0x3c1174(0x1e9)](this[_0x3c1174(0x4bf)]);}},exports[_0x58f906(0x3f4)]=Sn([xe(0x0,a[_0x58f906(0x200)](w[_0x58f906(0x33f)])),xe(0x1,a[_0x58f906(0x304)]),xe(0x2,a[_0x58f906(0x200)](a[_0x58f906(0x497)]))],exports[_0x58f906(0x3f4)]);var Cn=Object['defineProperty'],En=Object[_0x58f906(0x365)],bn=(_0x289e8a,_0x3d8fb6,_0x3aff96,_0x16d698)=>{const _0x22017f=_0x58f906;for(var _0x47af8f=_0x16d698>0x1?void 0x0:_0x16d698?En(_0x3d8fb6,_0x3aff96):_0x3d8fb6,_0x2e09e3=_0x289e8a[_0x22017f(0x4b8)]-0x1,_0x2c248d;_0x2e09e3>=0x0;_0x2e09e3--)(_0x2c248d=_0x289e8a[_0x2e09e3])&&(_0x47af8f=(_0x16d698?_0x2c248d(_0x3d8fb6,_0x3aff96,_0x47af8f):_0x2c248d(_0x47af8f))||_0x47af8f);return _0x16d698&&_0x47af8f&&Cn(_0x3d8fb6,_0x3aff96,_0x47af8f),_0x47af8f;},_e=(_0x4a1f35,_0x456fda)=>(_0x524755,_0x4f728b)=>_0x456fda(_0x524755,_0x4f728b,_0x4a1f35);let Te=class extends a['RxDisposable']{constructor(_0x557b84,_0x354803,_0x29b5f1,_0x57f432,_0x4ef1b8){const _0x4c4892=_0x58f906;super(),this['_injector']=_0x557b84,this['_univerInstanceService']=_0x354803,this['_permissionService']=_0x29b5f1,this[_0x4c4892(0x441)]=_0x57f432,this[_0x4c4892(0x3ad)]=_0x4ef1b8,this[_0x4c4892(0x492)](),this['_initCloseConn']();}[_0x58f906(0x4ee)](){const _0x33427f=_0x58f906,_0x20cfb0=async _0x48e7f2=>{const _0x40e9f7=_0x31a9;(await this[_0x40e9f7(0x441)][_0x40e9f7(0x3a5)](_0x48e7f2))[_0x40e9f7(0x191)][_0x40e9f7(0x3d5)](E[_0x40e9f7(0x355)](_0x1c54ee=>_0x1c54ee[_0x40e9f7(0x1e5)]===_[_0x40e9f7(0x4e6)][_0x40e9f7(0x48a)]),E[_0x40e9f7(0x230)](this['dispose$']))[_0x40e9f7(0x4b6)](_0x3bb17b=>{const _0x1ea3ee=_0x40e9f7,_0x5ec8de=_0x3bb17b,{reason:_0x577b2a}=_0x5ec8de[_0x1ea3ee(0x460)];this['_injector']['get'](A[_0x1ea3ee(0x54d)])[_0x1ea3ee(0x246)]({'type':X[_0x1ea3ee(0x51a)][_0x1ea3ee(0x508)],'content':this[_0x1ea3ee(0x3ad)]['t'](_0x1ea3ee(0x42d))+'('+_0x577b2a+')'}),this[_0x1ea3ee(0x2e0)][_0x1ea3ee(0x169)](new C['WorkbookEditablePermission'](_0x48e7f2)['id'],!0x1),this[_0x1ea3ee(0x441)][_0x1ea3ee(0x29d)](_0x48e7f2);});};v['merge'](this[_0x33427f(0x1c7)][_0x33427f(0x1af)](a[_0x33427f(0x23d)][_0x33427f(0x3d6)]),this[_0x33427f(0x1c7)][_0x33427f(0x1af)](a['UniverInstanceType'][_0x33427f(0x368)]))[_0x33427f(0x3d5)](E[_0x33427f(0x50a)](_0x158ea8=>_0x158ea8[_0x33427f(0x56a)]()),E[_0x33427f(0x355)](_0x26e175=>!a[_0x33427f(0x40f)](_0x26e175)),E[_0x33427f(0x230)](this['dispose$']))[_0x33427f(0x4b6)](_0x4b2888=>{_0x20cfb0(_0x4b2888);});}[_0x58f906(0x492)](){const _0x213ddd=_0x58f906,_0x12a276=async _0x3cfd1f=>{const _0x25bb60=_0x31a9;(await this['_collaborationSessionService'][_0x25bb60(0x3a5)](_0x3cfd1f))[_0x25bb60(0x191)]['pipe'](E[_0x25bb60(0x355)](_0x3e83da=>_0x3e83da['eventID']===_[_0x25bb60(0x4e6)]['UPDATE_PERMISSION_OBJ']),E[_0x25bb60(0x230)](this[_0x25bb60(0x40a)]))['subscribe'](_0x4cc7a8=>{const _0x159a7f=_0x25bb60,_0x27ff41=_0x4cc7a8,{objectId:_0x4dcf0a}=_0x27ff41[_0x159a7f(0x460)],_0x4ceb12=this[_0x159a7f(0x375)]['get'](te[_0x159a7f(0x25d)]);_0x4dcf0a===_0x3cfd1f?_0x4ceb12[_0x159a7f(0x364)](_0x3cfd1f):_0x4ceb12['refreshPermission'](_0x3cfd1f,_0x4dcf0a);});};v[_0x213ddd(0x386)](this['_univerInstanceService'][_0x213ddd(0x1af)](a['UniverInstanceType'][_0x213ddd(0x3d6)]),this[_0x213ddd(0x1c7)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x213ddd(0x368)]))[_0x213ddd(0x3d5)](E[_0x213ddd(0x50a)](_0x3753c0=>_0x3753c0[_0x213ddd(0x56a)]()),E[_0x213ddd(0x355)](_0x3c6a71=>!a[_0x213ddd(0x40f)](_0x3c6a71)),E['takeUntil'](this[_0x213ddd(0x40a)]))['subscribe'](_0x3960c9=>{_0x12a276(_0x3960c9);});}};Te=bn([_e(0x0,a[_0x58f906(0x200)](a[_0x58f906(0x433)])),_e(0x1,a[_0x58f906(0x497)]),_e(0x2,a[_0x58f906(0x3ef)]),_e(0x3,a['Inject'](exports[_0x58f906(0x369)])),_e(0x4,a['Inject'](a[_0x58f906(0x36a)]))],Te);var Tn=Object[_0x58f906(0x503)],Rn=Object[_0x58f906(0x365)],On=(_0x3135c1,_0x30e6d7,_0x637ba9,_0x1defd9)=>{for(var _0x5196f4=_0x1defd9>0x1?void 0x0:_0x1defd9?Rn(_0x30e6d7,_0x637ba9):_0x30e6d7,_0xe3bf4e=_0x3135c1['length']-0x1,_0x1f10d1;_0xe3bf4e>=0x0;_0xe3bf4e--)(_0x1f10d1=_0x3135c1[_0xe3bf4e])&&(_0x5196f4=(_0x1defd9?_0x1f10d1(_0x30e6d7,_0x637ba9,_0x5196f4):_0x1f10d1(_0x5196f4))||_0x5196f4);return _0x1defd9&&_0x5196f4&&Tn(_0x30e6d7,_0x637ba9,_0x5196f4),_0x5196f4;},dt=(_0xdec100,_0x32ba99)=>(_0x3f079a,_0x3d7e43)=>_0x32ba99(_0x3f079a,_0x3d7e43,_0xdec100);exports[_0x58f906(0x4d3)]=class{constructor(_0x34da86,_0x3d8806){const _0x292047=_0x58f906;this['_configService']=_0x34da86,this[_0x292047(0x22a)]=_0x3d8806;}async[_0x58f906(0x2cc)](_0x1c6caf,_0x5e33e5){const _0x24ae6e=_0x58f906;var _0x371489;const {unitID:_0x6b73cf,type:_0x40cbd7,revision:_0x35f83b=0x0}=_0x5e33e5,_0x8d67bb=this[_0x24ae6e(0x481)]()+'/'+_0x40cbd7+_0x24ae6e(0x36c)+_0x6b73cf+'/rev/'+_0x35f83b,_0x21b50c=(await this[_0x24ae6e(0x22a)][_0x24ae6e(0x406)](_0x8d67bb))[_0x24ae6e(0x170)],_0x14a5e2=(_0x371489=_0x21b50c[_0x24ae6e(0x188)])==null?void 0x0:_0x371489[_0x24ae6e(0x440)];if(_0x14a5e2){const _0x534e65=_0x14a5e2==null?void 0x0:_0x14a5e2['originalMeta'],_0x47d2c4=_['textEncoder'][_0x24ae6e(0x181)](_['b64DecodeUnicode'](_0x534e65));_0x14a5e2['originalMeta']=_0x47d2c4,Object[_0x24ae6e(0x53a)](_0x14a5e2[_0x24ae6e(0x275)])[_0x24ae6e(0x18c)](([,_0x3a71a2])=>{const _0x2e4acc=_0x24ae6e,_0x4e36af=_0x3a71a2[_0x2e4acc(0x450)],_0x2129a1=_[_0x2e4acc(0x4d1)][_0x2e4acc(0x181)](_['b64DecodeUnicode'](_0x4e36af));_0x3a71a2['originalMeta']=_0x2129a1;});}return _0x21b50c;}async[_0x58f906(0x3d8)](_0x4619c1,_0x150c19){const _0xfa0578=_0x58f906,{unitID:_0x38ed82,type:_0xc7b54f,blockID:_0x91dd67}=_0x150c19,_0x43ff8d=this[_0xfa0578(0x227)]()+'/'+_0xc7b54f+'/unit/'+_0x38ed82+_0xfa0578(0x35b)+_0x91dd67;return(await this['_httpService'][_0xfa0578(0x406)](_0x43ff8d))[_0xfa0578(0x170)];}async['getDeserializedSheetBlock'](_0x40e12b,_0x3852ae){const _0x2242cd=_0x58f906,{unitID:_0x1391c4,type:_0x441eb8,blockID:_0x2e1887}=_0x3852ae,_0x2f2b5d=this['_getAPIPrefix']()+_0x2242cd(0x35b)+_0x441eb8+_0x2242cd(0x36c)+_0x1391c4+_0x2242cd(0x35b)+_0x2e1887;return(await this['_httpService']['get'](_0x2f2b5d))['body'];}async[_0x58f906(0x4a9)](_0x18f9bf,_0x3575b7){const _0x2cded2=_0x58f906,{unitID:_0x2e27de,type:_0x49a207,from:_0x2af235,to:_0x22bb10}=_0x3575b7,_0x5071c7=this['_getAPIPrefix']()+'/'+_0x49a207+_0x2cded2(0x36c)+_0x2e27de+_0x2cded2(0x494)+_0x2af235+_0x2cded2(0x3c3)+_0x22bb10;return(await this[_0x2cded2(0x22a)][_0x2cded2(0x406)](_0x5071c7))['body'];}[_0x58f906(0x481)](){const _0x1e432b=_0x58f906;var _0x4569d4;return(_0x4569d4=this[_0x1e432b(0x47d)]['getConfig'](vt))!=null?_0x4569d4:this[_0x1e432b(0x227)]();}[_0x58f906(0x227)](){const _0x24eed5=_0x58f906;var _0xc0b102,_0x283c1c;const _0x4a3827=this[_0x24eed5(0x47d)][_0x24eed5(0x2bc)](St),_0x4ff57d=this['_configService']['getConfig'](L);return(_0x283c1c=(_0xc0b102=_0x4ff57d==null?void 0x0:_0x4ff57d['snapshotServerUrl'])!=null?_0xc0b102:_0x4a3827)!=null?_0x283c1c:qt;}async['getResourcesRequest'](_0x4512b0,_0x396c0b){const _0x224693=_0x58f906,_0x26b18e=_0x224693(0x2df)+_0x396c0b['type']+_0x224693(0x36c)+_0x396c0b['unitID']+_0x224693(0x52d);return(await this['_httpService'][_0x224693(0x406)](_0x26b18e,{'params':{'resourceId':JSON[_0x224693(0x29f)](_0x396c0b[_0x224693(0x1aa)])}}))['body'];}[_0x58f906(0x2c8)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x58f906(0x30f)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x58f906(0x1a1)](){const _0x201a8b=_0x58f906;throw new Error(_0x201a8b(0x410));}[_0x58f906(0x498)](){const _0x39ddb1=_0x58f906;throw new Error(_0x39ddb1(0x410));}[_0x58f906(0x1c8)](){const _0x96596f=_0x58f906;throw new Error(_0x96596f(0x410));}},exports[_0x58f906(0x4d3)]=On([dt(0x0,a[_0x58f906(0x304)]),dt(0x1,a[_0x58f906(0x200)](w['HTTPService']))],exports[_0x58f906(0x4d3)]);var Dn=Object['defineProperty'],yn=Object[_0x58f906(0x365)],Un=(_0x3728bc,_0x3763cc,_0x94a1fa,_0x3c9cf8)=>{for(var _0xfce0df=_0x3c9cf8>0x1?void 0x0:_0x3c9cf8?yn(_0x3763cc,_0x94a1fa):_0x3763cc,_0x5845a3=_0x3728bc['length']-0x1,_0x3678bc;_0x5845a3>=0x0;_0x5845a3--)(_0x3678bc=_0x3728bc[_0x5845a3])&&(_0xfce0df=(_0x3c9cf8?_0x3678bc(_0x3763cc,_0x94a1fa,_0xfce0df):_0x3678bc(_0xfce0df))||_0xfce0df);return _0x3c9cf8&&_0xfce0df&&Dn(_0x3763cc,_0x94a1fa,_0xfce0df),_0xfce0df;},ue=(_0x394e0e,_0x1e8213)=>(_0x554539,_0x5f185a)=>_0x1e8213(_0x554539,_0x5f185a,_0x394e0e);let Fe=class extends a[_0x58f906(0x3d9)]{constructor(_0x4445c1,_0x16f9e1,_0x3d67f5,_0x31189f,_0x1f6f03){const _0x542f10=_0x58f906;super(_0x4445c1,_0x16f9e1,_0x3d67f5),this[_0x542f10(0x417)]=_0x31189f,this['_logService']=_0x1f6f03;}[_0x58f906(0x1f6)](_0x386d1c,_0x71478f){const _0x411ac8=_0x58f906,_0x26531c=this[_0x411ac8(0x35d)](_0x386d1c);if(_0x26531c)try{const _0x281392=this[_0x411ac8(0x17e)](_0x26531c,_0x71478f);this[_0x411ac8(0x219)](_0x386d1c,_0x281392);}catch(_0x391985){this[_0x411ac8(0x343)]['error']('[CollaborationUndoRedoService]',_0x391985),this[_0x411ac8(0x296)](_0x386d1c);}const _0x48d335=this[_0x411ac8(0x432)](_0x386d1c);if(_0x48d335)try{const _0x1bdd25=this[_0x411ac8(0x17e)](_0x48d335,_0x71478f);this[_0x411ac8(0x1c9)](_0x386d1c,_0x1bdd25);}catch(_0x5d2527){this[_0x411ac8(0x343)][_0x411ac8(0x1cc)](_0x5d2527),this[_0x411ac8(0x4da)](_0x386d1c);}}[_0x58f906(0x296)](_0x583a5e){const _0x11af82=_0x58f906,_0x4240c4=this[_0x11af82(0x35d)](_0x583a5e);_0x4240c4&&(_0x4240c4[_0x11af82(0x4b8)]=0x0,this[_0x11af82(0x303)]());}[_0x58f906(0x4da)](_0x5a64e5){const _0x49746c=_0x58f906,_0x5bdfbd=this['_getRedoStack'](_0x5a64e5);_0x5bdfbd&&(_0x5bdfbd[_0x49746c(0x4b8)]=0x0,this['_updateStatus']());}[_0x58f906(0x219)](_0x1a75a6,_0x58187f){const _0x40e101=_0x58f906;this[_0x40e101(0x54c)][_0x40e101(0x473)](_0x1a75a6,_0x58187f),this[_0x40e101(0x303)]();}[_0x58f906(0x1c9)](_0x5d4da7,_0x3987d0){const _0x2e676d=_0x58f906;this[_0x2e676d(0x39f)][_0x2e676d(0x473)](_0x5d4da7,_0x3987d0),this[_0x2e676d(0x303)]();}['_transformStack'](_0x97425c,_0x96074c){const _0x2fae0c=_0x58f906,_0x526091=[];let _0x1ca9ca=_0x96074c,_0x559a66=_0x96074c;for(let _0x5bbf2f=_0x97425c[_0x2fae0c(0x4b8)]-0x1;_0x5bbf2f>=0x0;_0x5bbf2f--){const {unitID:_0x5bc190,undoMutations:_0xaa470b,redoMutations:_0x15cdb7}=_0x97425c[_0x5bbf2f],_0x1cd1e9=this['_transformService'][_0x2fae0c(0x4cc)](_0x1ca9ca,_0xaa470b),_0x2cc3b2=this['_transformService']['transformMutationsWithChangeset'](_0x559a66,_0x15cdb7);if(_[_0x2fae0c(0x1cb)](_0x1cd1e9)||_[_0x2fae0c(0x1cb)](_0x2cc3b2)){this[_0x2fae0c(0x343)]['error']('[CollaborationUndoRedoService]',_0x2fae0c(0x32e),_0x1cd1e9,_0x2cc3b2);break;}_0x1ca9ca=_0x1cd1e9['c1Prime'],_0x559a66=_0x2cc3b2['c1Prime'],_0x526091[_0x2fae0c(0x166)]({'unitID':_0x5bc190,'undoMutations':_0x1cd1e9[_0x2fae0c(0x310)],'redoMutations':_0x2cc3b2[_0x2fae0c(0x310)]});}return _0x526091[_0x2fae0c(0x338)]();}};Fe=Un([ue(0x0,a[_0x58f906(0x497)]),ue(0x1,a['ICommandService']),ue(0x2,a[_0x58f906(0x467)]),ue(0x3,_[_0x58f906(0x20c)]),ue(0x4,a[_0x58f906(0x3f7)])],Fe);class $t extends a[_0x58f906(0x3d0)]{constructor(){const _0x430468=_0x58f906;super(),u(this,'urlChange$'),this[_0x430468(0x35e)]=v[_0x430468(0x4d6)](window,_0x430468(0x1d4))[_0x430468(0x3d5)](v[_0x430468(0x230)](this[_0x430468(0x40a)]),v[_0x430468(0x523)](0x1),v['mapTo'](void 0x0));}[_0x58f906(0x4ca)](_0x25fa02,_0x44c4bc,_0x2cd921=!0x1){const _0x309b8f=_0x58f906,_0x5ca625=new URL(window[_0x309b8f(0x278)][_0x309b8f(0x24e)]);_0x5ca625[_0x309b8f(0x3b8)][_0x309b8f(0x473)](_0x25fa02,_0x44c4bc),_0x2cd921?window[_0x309b8f(0x174)]['replaceState']('','',_0x5ca625[_0x309b8f(0x462)]()):window[_0x309b8f(0x174)]['pushState']('','',_0x5ca625[_0x309b8f(0x462)]());}['removeParam'](_0x2ffa4d,_0x565631=!0x1){const _0x5d4eb9=_0x58f906,_0x570733=new URL(window[_0x5d4eb9(0x278)]['href']);_0x570733[_0x5d4eb9(0x3b8)][_0x5d4eb9(0x2d7)](_0x2ffa4d),_0x565631?window[_0x5d4eb9(0x174)][_0x5d4eb9(0x505)]('','',_0x570733[_0x5d4eb9(0x462)]()):window['history'][_0x5d4eb9(0x46f)]('','',_0x570733[_0x5d4eb9(0x462)]());}[_0x58f906(0x2ce)](_0x4fbac4){const _0x5cd543=_0x58f906;var _0x1fe39d;return(_0x1fe39d=new URL(window[_0x5cd543(0x278)][_0x5cd543(0x24e)])['searchParams'][_0x5cd543(0x406)](_0x4fbac4))!=null?_0x1fe39d:void 0x0;}}var Ht=Object['defineProperty'],Pn=Object[_0x58f906(0x365)],wn=(_0x5bbba8,_0x144eb8,_0x2c1ce5)=>_0x144eb8 in _0x5bbba8?Ht(_0x5bbba8,_0x144eb8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c1ce5}):_0x5bbba8[_0x144eb8]=_0x2c1ce5,Nn=(_0x17b6f0,_0x1c715b,_0x2df126,_0x46f58b)=>{const _0x3f50c3=_0x58f906;for(var _0x30e3c5=_0x46f58b>0x1?void 0x0:_0x46f58b?Pn(_0x1c715b,_0x2df126):_0x1c715b,_0x16ef6c=_0x17b6f0[_0x3f50c3(0x4b8)]-0x1,_0xea10a6;_0x16ef6c>=0x0;_0x16ef6c--)(_0xea10a6=_0x17b6f0[_0x16ef6c])&&(_0x30e3c5=(_0x46f58b?_0xea10a6(_0x1c715b,_0x2df126,_0x30e3c5):_0xea10a6(_0x30e3c5))||_0x30e3c5);return _0x46f58b&&_0x30e3c5&&Ht(_0x1c715b,_0x2df126,_0x30e3c5),_0x30e3c5;},me=(_0x4bce29,_0x199eb1)=>(_0xd25aed,_0x1bb7be)=>_0x199eb1(_0xd25aed,_0x1bb7be,_0x4bce29),Mn=(_0x32eb6f,_0x2ee47,_0x4b1a47)=>wn(_0x32eb6f,_0x2ee47+'',_0x4b1a47);const An=_0x58f906(0x34b);exports[_0x58f906(0x41f)]=class extends a[_0x58f906(0x243)]{constructor(_0x34bdc3=rs,_0x25535f,_0x549079,_0x1716e0,_0x29c9dc){const _0x342914=_0x58f906;super(),this['_config']=_0x34bdc3,this['_logService']=_0x25535f,this['_renderManagerService']=_0x549079,this['_injector']=_0x1716e0,this[_0x342914(0x47d)]=_0x29c9dc;const {..._0x43a486}=this['_config'];this['_configService'][_0x342914(0x20b)](L,_0x43a486);}[_0x58f906(0x2a7)](){const _0x5b9100=_0x58f906;this[_0x5b9100(0x4f3)](),a[_0x5b9100(0x192)](this['_injector'],[[ne],[exports[_0x5b9100(0x385)]],[Te]]);}['onReady'](){a['touchDependencies'](this['_injector'],[[Ce]]);}[_0x58f906(0x477)](){const _0x3bed31=_0x58f906;this[_0x3bed31(0x24c)]();}[_0x58f906(0x4f3)](){const _0x132dd9=_0x58f906;var _0x3db765,_0xed1bf5,_0x3d532e,_0x32536d;this[_0x132dd9(0x375)][_0x132dd9(0x3ee)](a[_0x132dd9(0x362)])&&this[_0x132dd9(0x343)]['error']('[UniverCollaborationClientPlugin]',_0x132dd9(0x1d1));let _0x42301c=[[a[_0x132dd9(0x362)],{'useClass':Fe}],[exports[_0x132dd9(0x369)]],[Je],[w[_0x132dd9(0x33f)]],[Qe,{'useClass':$t}],[q],[exports['LocalCacheService']],[w[_0x132dd9(0x54e)]],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0xed1bf5=(_0x3db765=this[_0x132dd9(0x54a)])==null?void 0x0:_0x3db765[_0x132dd9(0x480)])!=null?_0xed1bf5:exports[_0x132dd9(0x31b)]}],[w[_0x132dd9(0x46e)],{'useClass':w[_0x132dd9(0x1f4)]}],[_['ISnapshotServerService'],{'useClass':exports[_0x132dd9(0x4d3)]}],[a[_0x132dd9(0x435)],{'useClass':exports[_0x132dd9(0x159)]}],[j['IImageIoService'],{'useClass':exports[_0x132dd9(0x3f4)]}],[exports['CollaborationController']],[exports[_0x132dd9(0x385)]],[exports[_0x132dd9(0x4e9)]],[Ce],[ne]];(_0x3d532e=this[_0x132dd9(0x54a)])!=null&&_0x3d532e[_0x132dd9(0x1ca)]&&_0x42301c[_0x132dd9(0x166)]([Re,{'useClass':$s}]),_0x42301c=a['mergeOverrideWithDependencies'](_0x42301c,(_0x32536d=this[_0x132dd9(0x54a)])==null?void 0x0:_0x32536d['override']),_0x42301c[_0x132dd9(0x18c)](_0x7e8cb4=>this[_0x132dd9(0x375)]['add'](_0x7e8cb4)),this['_initModules']();}[_0x58f906(0x24c)](){const _0x23e817=_0x58f906;this[_0x23e817(0x2af)](this[_0x23e817(0x1f2)][_0x23e817(0x267)](a[_0x23e817(0x23d)][_0x23e817(0x368)],[Ve])),this[_0x23e817(0x2af)](this[_0x23e817(0x1f2)][_0x23e817(0x267)](a[_0x23e817(0x23d)][_0x23e817(0x3d6)],[We]));}['_initModules'](){const _0x23e536=_0x58f906;var _0x331720,_0x111cc8;this[_0x23e536(0x375)][_0x23e536(0x406)](w['HTTPService'])[_0x23e536(0x16c)]({'priority':0x14,'interceptor':w[_0x23e536(0x1a5)]({'maxParallel':0x6})}),this[_0x23e536(0x375)][_0x23e536(0x406)](be),(_0x331720=this[_0x23e536(0x54a)])!=null&&_0x331720['enableOfflineEditing']||this['_injector'][_0x23e536(0x406)](exports[_0x23e536(0x533)])[_0x23e536(0x2b6)](),(_0x111cc8=this[_0x23e536(0x54a)])!=null&&_0x111cc8[_0x23e536(0x416)]&&this[_0x23e536(0x375)][_0x23e536(0x406)](Ee),this[_0x23e536(0x375)]['get'](exports['CollaborationController']),this[_0x23e536(0x375)][_0x23e536(0x3ee)](exports[_0x23e536(0x4e9)])&&this[_0x23e536(0x375)]['get'](exports[_0x23e536(0x4e9)]);}},Mn(exports[_0x58f906(0x41f)],_0x58f906(0x516),An),exports[_0x58f906(0x41f)]=Nn([a['DependentOn'](_['UniverCollaborationPlugin']),me(0x1,a[_0x58f906(0x3f7)]),me(0x2,D[_0x58f906(0x2e6)]),me(0x3,a[_0x58f906(0x200)](a[_0x58f906(0x433)])),me(0x4,a[_0x58f906(0x304)])],exports[_0x58f906(0x41f)]),exports[_0x58f906(0x496)]=jt,exports[_0x58f906(0x40d)]=Ct,exports['COLLAB_WEB_SOCKET_URL_KEY']=gt,exports[_0x58f906(0x565)]=U,exports['CollaborationStatusDisplay']=Lt,exports['CommentService']=Xe,exports[_0x58f906(0x42b)]=mt,exports[_0x58f906(0x2d3)]=Ge,exports[_0x58f906(0x254)]=Ke,exports[_0x58f906(0x42c)]=Qe,exports[_0x58f906(0x3ca)]=pt,exports[_0x58f906(0x224)]=Et,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=It,exports['SEND_CHANGESET_TIMEOUT_KEY']=zt,exports[_0x58f906(0x2f7)]=St,exports[_0x58f906(0x1df)]=vt,exports[_0x58f906(0x1dc)]=H,exports[_0x58f906(0x1cd)]=Pt,exports[_0x58f906(0x281)]=$t,exports[_0x58f906(0x455)]=Rt,exports[_0x58f906(0x1fe)]=Ot;