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

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 _0x2914c=_0x190c;(function(_0x3d04bd,_0x285ad6){const _0x4b5fbb=_0x190c,_0x24c827=_0x3d04bd();while(!![]){try{const _0x4d1963=parseInt(_0x4b5fbb(0x2df))/0x1+parseInt(_0x4b5fbb(0x1b7))/0x2+parseInt(_0x4b5fbb(0x4f0))/0x3*(-parseInt(_0x4b5fbb(0x5aa))/0x4)+parseInt(_0x4b5fbb(0x2da))/0x5+parseInt(_0x4b5fbb(0x31b))/0x6+-parseInt(_0x4b5fbb(0x243))/0x7+parseInt(_0x4b5fbb(0x425))/0x8*(-parseInt(_0x4b5fbb(0x1c4))/0x9);if(_0x4d1963===_0x285ad6)break;else _0x24c827['push'](_0x24c827['shift']());}catch(_0x146d86){_0x24c827['push'](_0x24c827['shift']());}}}(_0x21e9,0x38737));var Ft=Object[_0x2914c(0x4a2)],Gt=(_0x9efa2b,_0x59b2a1,_0x548691)=>_0x59b2a1 in _0x9efa2b?Ft(_0x9efa2b,_0x59b2a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x548691}):_0x9efa2b[_0x59b2a1]=_0x548691,u=(_0x334889,_0x3e3e4a,_0x409014)=>Gt(_0x334889,typeof _0x3e3e4a!=_0x2914c(0x484)?_0x3e3e4a+'':_0x3e3e4a,_0x409014);Object[_0x2914c(0x4a2)](exports,Symbol[_0x2914c(0x29d)],{'value':_0x2914c(0x2a7)});const a=require(_0x2914c(0x4df)),v=require(_0x2914c(0x3b3)),E=require(_0x2914c(0x2f4)),X=require(_0x2914c(0x4da)),A=require(_0x2914c(0x3b8)),w=require('@univerjs/network'),_=require(_0x2914c(0x4c9)),Yt=require('@univerjs/telemetry'),N=require(_0x2914c(0x3fb)),C=require(_0x2914c(0x2b3)),D=require(_0x2914c(0x5d9)),se=require(_0x2914c(0x3fe)),j=require(_0x2914c(0x4f2)),et=require(_0x2914c(0x4cc)),te=require('@univerjs/sheets-ui'),P=require(_0x2914c(0x4e1)),Kt=require(_0x2914c(0x326)),Xt=require(_0x2914c(0x392)),St=_0x2914c(0x497),qt='/universer-api/snapshot',vt=_0x2914c(0x37e),zt=_0x2914c(0x2e5),Jt=0x7d0,gt=_0x2914c(0x32a),Zt=_0x2914c(0x447),mt=_0x2914c(0x3d9),Qt=0x7530,Ge=_0x2914c(0x451),ft=0x4e20,es=0x4e20,It='RETRY_CONNECTING_MAX_COUNT',ts=0x3,pt=_0x2914c(0x298),ss=0x3e8,Ct=_0x2914c(0x342),is=_0x2914c(0x4f1),Et=_0x2914c(0x3c0),ns='/universer-api/oidc/authpage';var bt=(_0x3a54fb=>(_0x3a54fb[_0x3a54fb[_0x2914c(0x24d)]=0x0]='UNDEFINED',_0x3a54fb[_0x3a54fb['OK']=0x1]='OK',_0x3a54fb[_0x3a54fb[_0x2914c(0x4af)]=0x2]=_0x2914c(0x4af),_0x3a54fb[_0x3a54fb['PERMISSION_DENIED']=0x3]=_0x2914c(0x43c),_0x3a54fb[_0x3a54fb[_0x2914c(0x1f6)]=0x4]=_0x2914c(0x1f6),_0x3a54fb[_0x3a54fb[_0x2914c(0x25a)]=0x5]=_0x2914c(0x25a),_0x3a54fb[_0x3a54fb[_0x2914c(0x37a)]=0x6]=_0x2914c(0x37a),_0x3a54fb[_0x3a54fb[_0x2914c(0x20c)]=0x7]=_0x2914c(0x20c),_0x3a54fb[_0x3a54fb['TOO_MANY_REQUESTS']=0x8]=_0x2914c(0x337),_0x3a54fb[_0x3a54fb[_0x2914c(0x1fa)]=0x9]=_0x2914c(0x1fa),_0x3a54fb[_0x3a54fb[_0x2914c(0x3d5)]=0x1389]=_0x2914c(0x3d5),_0x3a54fb[_0x3a54fb['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x2914c(0x422),_0x3a54fb[_0x3a54fb[_0x2914c(0x228)]=0x1772]=_0x2914c(0x228),_0x3a54fb[_0x3a54fb['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x2914c(0x371),_0x3a54fb[_0x3a54fb['APPLY_REJECT']=0x1b59]=_0x2914c(0x488),_0x3a54fb[_0x3a54fb[_0x2914c(0x4e5)]=0x1b5a]=_0x2914c(0x4e5),_0x3a54fb[_0x3a54fb[_0x2914c(0x569)]=0x1b5b]=_0x2914c(0x569),_0x3a54fb[_0x3a54fb['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x2914c(0x2cb),_0x3a54fb[_0x3a54fb[_0x2914c(0x473)]=0x1b5d]=_0x2914c(0x473),_0x3a54fb[_0x3a54fb[_0x2914c(0x3f2)]=0x1f41]=_0x2914c(0x3f2),_0x3a54fb[_0x3a54fb[_0x2914c(0x382)]=0x2329]=_0x2914c(0x382),_0x3a54fb[_0x3a54fb[_0x2914c(0x1f1)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3a54fb[_0x3a54fb[_0x2914c(0x1ec)]=0x232b]=_0x2914c(0x1ec),_0x3a54fb[_0x3a54fb['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x2914c(0x492),_0x3a54fb[_0x3a54fb[_0x2914c(0x22d)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3a54fb[_0x3a54fb[_0x2914c(0x2dd)]=0x2711]=_0x2914c(0x2dd),_0x3a54fb[_0x3a54fb[_0x2914c(0x31d)]=0x2712]=_0x2914c(0x31d),_0x3a54fb[_0x3a54fb[_0x2914c(0x3be)]=0x2713]=_0x2914c(0x3be),_0x3a54fb[_0x3a54fb[_0x2914c(0x505)]=0x2714]=_0x2914c(0x505),_0x3a54fb[_0x3a54fb['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3a54fb))(bt||{}),$=(_0x186865=>(_0x186865[_0x186865[_0x2914c(0x48b)]=0x0]=_0x2914c(0x48b),_0x186865[_0x186865[_0x2914c(0x1e3)]=0x1]='UNIVER_DOC',_0x186865[_0x186865[_0x2914c(0x55c)]=0x2]=_0x2914c(0x55c),_0x186865[_0x186865[_0x2914c(0x3de)]=0x3]=_0x2914c(0x3de),_0x186865[_0x186865[_0x2914c(0x524)]=0x4]=_0x2914c(0x524),_0x186865[_0x186865['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x186865))($||{}),b=(_0x189fc8=>(_0x189fc8[_0x189fc8['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x189fc8[_0x189fc8[_0x2914c(0x533)]=0x1]=_0x2914c(0x533),_0x189fc8[_0x189fc8[_0x2914c(0x1b5)]=0x2]=_0x2914c(0x1b5),_0x189fc8[_0x189fc8[_0x2914c(0x494)]=0x3]='LEAVE',_0x189fc8[_0x189fc8[_0x2914c(0x29b)]=0x4]=_0x2914c(0x29b),_0x189fc8[_0x189fc8['HEARTBEAT']=0x5]=_0x2914c(0x58e),_0x189fc8[_0x189fc8[_0x2914c(0x437)]=0x6]='RECV',_0x189fc8[_0x189fc8[_0x2914c(0x45e)]=-0x1]='UNRECOGNIZED',_0x189fc8))(b||{}),Ye=(_0x820c7e=>(_0x820c7e[_0x820c7e[_0x2914c(0x36e)]=0x0]=_0x2914c(0x36e),_0x820c7e[_0x820c7e['OK']=0x1]='OK',_0x820c7e[_0x820c7e['FAIL']=0x2]='FAIL',_0x820c7e[_0x820c7e[_0x2914c(0x45e)]=-0x1]=_0x2914c(0x45e),_0x820c7e))(Ye||{}),Tt=(_0x1f19cb=>(_0x1f19cb[_0x1f19cb[_0x2914c(0x552)]=0x0]=_0x2914c(0x552),_0x1f19cb[_0x1f19cb[_0x2914c(0x2e3)]=0x1]=_0x2914c(0x2e3),_0x1f19cb[_0x1f19cb[_0x2914c(0x55d)]=0x2]=_0x2914c(0x55d),_0x1f19cb[_0x1f19cb[_0x2914c(0x3db)]=0x3]='UnitEmbedded',_0x1f19cb[_0x1f19cb['UnitSnapshot']=0x4]=_0x2914c(0x4f7),_0x1f19cb[_0x1f19cb[_0x2914c(0x45e)]=-0x1]=_0x2914c(0x45e),_0x1f19cb))(Tt||{});const L=_0x2914c(0x3a2),rs={};function Rt(_0x7c3d54){const _0x19a450=_0x2914c;var _0x2922f3,_0x11bbec,_0x53628e,_0x411e60;const _0x116b04=_0x7c3d54[_0x19a450(0x498)],_0x35f18e=JSON['parse'](_0x116b04);switch(_0x35f18e[_0x19a450(0x40c)]){case b[_0x19a450(0x58e)]:case b[_0x19a450(0x533)]:{const _0x1d8e0a=_0x35f18e[_0x19a450(0x445)];return{..._0x35f18e,'data':_0x1d8e0a,'cmd':_0x35f18e[_0x19a450(0x40c)]};}case b['JOIN']:{const _0x500afd=_0x35f18e[_0x19a450(0x576)];return{..._0x35f18e,'data':_0x500afd,'cmd':_0x35f18e[_0x19a450(0x40c)]};}case b[_0x19a450(0x437)]:{const _0x45a2d0=_0x35f18e[_0x19a450(0x5da)];switch(_0x45a2d0[_0x19a450(0x57f)]){case _['CollaborationEvent'][_0x19a450(0x345)]:return{..._0x35f18e,'data':{..._0x45a2d0,'data':(_0x2922f3=_0x45a2d0[_0x19a450(0x34a)])==null?void 0x0:_0x2922f3['cs']},'cmd':_0x35f18e['cmd']};case _[_0x19a450(0x5bf)][_0x19a450(0x4d6)]:return{..._0x35f18e,'data':{..._0x45a2d0,'data':(_0x11bbec=_0x45a2d0['csAckEvent'])==null?void 0x0:_0x11bbec['cs']},'cmd':_0x35f18e['cmd']};case _[_0x19a450(0x5bf)]['NEW_CHANGESETS']:return{..._0x35f18e,'data':{..._0x45a2d0,'data':(_0x53628e=_0x45a2d0[_0x19a450(0x516)])==null?void 0x0:_0x53628e['cs']},'cmd':_0x35f18e[_0x19a450(0x40c)]};case _['CollaborationEvent'][_0x19a450(0x276)]:return{..._0x35f18e,'data':{..._0x45a2d0,'data':(_0x411e60=_0x45a2d0[_0x19a450(0x2e6)])==null?void 0x0:_0x411e60['cs']},'cmd':_0x35f18e[_0x19a450(0x40c)]};case _[_0x19a450(0x5bf)]['UPDATE_CURSOR']:return{..._0x35f18e,'data':{..._0x45a2d0,'data':_0x45a2d0[_0x19a450(0x2bf)]},'cmd':_0x35f18e[_0x19a450(0x40c)]};case _['CollaborationEvent']['USERS_ENTER']:return{..._0x35f18e,'data':{..._0x45a2d0,'data':_0x45a2d0[_0x19a450(0x590)]},'cmd':_0x35f18e[_0x19a450(0x40c)]};case _[_0x19a450(0x5bf)]['USERS_LEAVE']:return{..._0x35f18e,'data':{..._0x45a2d0,'data':_0x45a2d0[_0x19a450(0x4cd)]},'cmd':_0x35f18e[_0x19a450(0x40c)]};case _[_0x19a450(0x5bf)]['LIVESHARE_NEW_HOST']:return{..._0x35f18e,'data':{..._0x45a2d0,'data':_0x45a2d0[_0x19a450(0x3e3)]},'cmd':_0x35f18e[_0x19a450(0x40c)]};case _['CollaborationEvent'][_0x19a450(0x358)]:case _[_0x19a450(0x5bf)][_0x19a450(0x1e0)]:return{..._0x35f18e,'data':{..._0x45a2d0,'data':_0x45a2d0[_0x19a450(0x5c3)]},'cmd':_0x35f18e[_0x19a450(0x40c)]};case _['CollaborationEvent'][_0x19a450(0x297)]:return{..._0x35f18e,'data':{..._0x45a2d0,'data':_0x45a2d0['liveShareNewHost']},'cmd':_0x35f18e[_0x19a450(0x40c)]};case _['CollaborationEvent'][_0x19a450(0x2d4)]:return{..._0x35f18e,'data':_0x45a2d0,'cmd':_0x35f18e[_0x19a450(0x40c)]};case _[_0x19a450(0x5bf)][_0x19a450(0x434)]:return{..._0x35f18e,'data':{..._0x45a2d0,'data':_0x45a2d0[_0x19a450(0x5c2)]},'cmd':_0x35f18e[_0x19a450(0x40c)]};case _['CollaborationEvent'][_0x19a450(0x331)]:return{..._0x35f18e,'data':{..._0x45a2d0,'data':_0x45a2d0[_0x19a450(0x1bf)]},'cmd':_0x35f18e[_0x19a450(0x40c)]};case _[_0x19a450(0x5bf)]['SHOULD_CLOSE_CONN']:return{..._0x35f18e,'data':{..._0x45a2d0,'data':_0x45a2d0[_0x19a450(0x48e)]},'cmd':_0x35f18e[_0x19a450(0x40c)]};default:return _0x35f18e;}}default:return _0x35f18e;}}function Ot(_0x4e3ef1){const _0x35d45d=_0x2914c;switch(_0x4e3ef1[_0x35d45d(0x40c)]){case b[_0x35d45d(0x58e)]:case b['HELLO']:return JSON['stringify']({'cmd':_0x4e3ef1[_0x35d45d(0x40c)],'routeKey':_0x4e3ef1['routeKey']});case b['INGEST']:{let _0x181afc;switch(_0x4e3ef1[_0x35d45d(0x498)][_0x35d45d(0x57f)]){case _[_0x35d45d(0x5bf)][_0x35d45d(0x4ba)]:{_0x181afc={'eventID':_[_0x35d45d(0x5bf)][_0x35d45d(0x4ba)],'updateCursorEvent':_0x4e3ef1[_0x35d45d(0x498)]['data']};break;}case _[_0x35d45d(0x5bf)][_0x35d45d(0x397)]:{_0x181afc={'eventID':_['CollaborationEvent'][_0x35d45d(0x397)],'leaveEvent':_0x4e3ef1[_0x35d45d(0x498)][_0x35d45d(0x498)]};break;}case _[_0x35d45d(0x5bf)]['USERS_ENTER']:{_0x181afc={'eventID':_[_0x35d45d(0x5bf)][_0x35d45d(0x42d)],'joinEvent':_0x4e3ef1['data'][_0x35d45d(0x498)]};break;}case _[_0x35d45d(0x5bf)][_0x35d45d(0x571)]:{_0x181afc={'eventID':_[_0x35d45d(0x5bf)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x4e3ef1[_0x35d45d(0x498)]['data']};break;}case _[_0x35d45d(0x5bf)]['LIVESHARE_OPERATION']:{_0x181afc={'eventID':_[_0x35d45d(0x5bf)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x4e3ef1[_0x35d45d(0x498)][_0x35d45d(0x498)]};break;}case _['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x181afc={'eventID':_['CollaborationEvent'][_0x35d45d(0x297)],'liveShareTerminate':_0x4e3ef1['data'][_0x35d45d(0x498)]};break;}case _[_0x35d45d(0x5bf)][_0x35d45d(0x52f)]:{_0x181afc={'eventID':_['CollaborationEvent'][_0x35d45d(0x52f)],'liveShareRequestHost':_0x4e3ef1[_0x35d45d(0x498)][_0x35d45d(0x498)]};break;}case _[_0x35d45d(0x5bf)][_0x35d45d(0x358)]:{_0x181afc={'eventID':_[_0x35d45d(0x5bf)][_0x35d45d(0x358)]};break;}default:_0x181afc={'eventID':_0x4e3ef1[_0x35d45d(0x498)][_0x35d45d(0x57f)]};}return JSON[_0x35d45d(0x2d0)]({'cmd':_0x4e3ef1[_0x35d45d(0x40c)],'routeKey':_0x4e3ef1[_0x35d45d(0x502)],'collaMsg':_0x181afc});}case b[_0x35d45d(0x1b5)]:return JSON[_0x35d45d(0x2d0)]({'cmd':_0x4e3ef1[_0x35d45d(0x40c)],'routeKey':_0x4e3ef1[_0x35d45d(0x502)],'joinReq':_0x4e3ef1[_0x35d45d(0x498)]});case b[_0x35d45d(0x494)]:return JSON[_0x35d45d(0x2d0)]({'cmd':_0x4e3ef1['cmd'],'routeKey':_0x4e3ef1[_0x35d45d(0x502)],'leaveReq':_0x4e3ef1[_0x35d45d(0x498)]});default:throw new Error(_0x35d45d(0x296));}}var os=Object[_0x2914c(0x4a2)],as=Object[_0x2914c(0x5df)],cs=(_0x54a5f7,_0x5f338b,_0x5effb3,_0x219dd5)=>{for(var _0x2acaf9=_0x219dd5>0x1?void 0x0:_0x219dd5?as(_0x5f338b,_0x5effb3):_0x5f338b,_0x54063e=_0x54a5f7['length']-0x1,_0x2a2402;_0x54063e>=0x0;_0x54063e--)(_0x2a2402=_0x54a5f7[_0x54063e])&&(_0x2acaf9=(_0x219dd5?_0x2a2402(_0x5f338b,_0x5effb3,_0x2acaf9):_0x2a2402(_0x2acaf9))||_0x2acaf9);return _0x219dd5&&_0x2acaf9&&os(_0x5f338b,_0x5effb3,_0x2acaf9),_0x2acaf9;},ae=(_0x14d485,_0x533b99)=>(_0x3fddc8,_0x480819)=>_0x533b99(_0x3fddc8,_0x480819,_0x14d485);const Ke=a[_0x2914c(0x4e8)](_0x2914c(0x501));function ls(_0x34baae,_0x301eea,_0x1e8e28){const _0xd4903=_0x2914c;return _0x34baae+'/'+_0x301eea+_0xd4903(0x283)+_0x1e8e28+_0xd4903(0x38a);}exports[_0x2914c(0x5e2)]=class extends a['Disposable']{constructor(_0x40b89d,_0x370404,_0x5cb6b0,_0x2aead1,_0x5cfd4f){const _0xc5a4da=_0x2914c;super(),this[_0xc5a4da(0x1c8)]=_0x40b89d,this[_0xc5a4da(0x3c2)]=_0x370404,this[_0xc5a4da(0x288)]=_0x5cb6b0,this[_0xc5a4da(0x483)]=_0x2aead1,this[_0xc5a4da(0x44c)]=_0x5cfd4f;}[_0x2914c(0x4d4)](_0x472dc7){const _0x2cc304=_0x2914c,_0x22d3e6=this[_0x2cc304(0x3c2)][_0x2cc304(0x4d4)](_0x472dc7);if(!_0x22d3e6)throw new Error(_0x2cc304(0x1f0));const _0x34b7bf=new a[(_0x2cc304(0x3a4))](),_0x3767ba=new v[(_0x2cc304(0x430))]();_0x34b7bf[_0x2cc304(0x287)](_0x22d3e6[_0x2cc304(0x256)][_0x2cc304(0x24b)](_0x20d857=>_0x3767ba[_0x2cc304(0x49a)](_0x20d857))),_0x34b7bf['add'](a['toDisposable'](()=>_0x3767ba[_0x2cc304(0x343)]()));const _0x1627a7=new v['Subject']();_0x34b7bf[_0x2cc304(0x287)](_0x22d3e6[_0x2cc304(0x51c)][_0x2cc304(0x24b)](_0x7bebbe=>_0x1627a7['next'](_0x7bebbe))),_0x34b7bf[_0x2cc304(0x287)](a[_0x2cc304(0x1d3)](()=>_0x1627a7[_0x2cc304(0x343)]()));const _0x2542ed=new v[(_0x2cc304(0x430))]();_0x34b7bf[_0x2cc304(0x287)](_0x22d3e6[_0x2cc304(0x5e6)][_0x2cc304(0x24b)](_0x157b2c=>{const _0x36a789=Rt(_0x157b2c);_0x2542ed['next'](_0x36a789);})),_0x34b7bf[_0x2cc304(0x287)](a[_0x2cc304(0x1d3)](()=>_0x2542ed[_0x2cc304(0x343)]()));let _0x8f18d3;const _0x4cfc65=()=>{const _0xd25bc=_0x2cc304;_0x1627a7[_0xd25bc(0x49a)](new Event(_0xd25bc(0x24e))),_0x3767ba['next'](new CloseEvent(_0xd25bc(0x24e))),_0x8f18d3['close']();};return _0x8f18d3={'memberID':'','close$':_0x3767ba[_0x2cc304(0x33d)](),'error$':_0x1627a7[_0x2cc304(0x33d)](),'open$':_0x22d3e6[_0x2cc304(0x490)],'message$':_0x2542ed['asObservable'](),'send':_0x3e8fba=>{const _0x4f5641=_0x2cc304;if(_0x3e8fba[_0x4f5641(0x40c)]===b[_0x4f5641(0x29b)]){if(_0x3e8fba['data']['eventID']===_[_0x4f5641(0x5bf)][_0x4f5641(0x5c6)]){this[_0x4f5641(0x384)](_0x8f18d3,_0x3e8fba[_0x4f5641(0x498)])['catch'](_0x443516=>{const _0x208132=_0x4f5641;this[_0x208132(0x483)][_0x208132(0x219)](_0x443516),_0x4cfc65();});return;}if(_0x3e8fba[_0x4f5641(0x498)][_0x4f5641(0x57f)]===_[_0x4f5641(0x5bf)][_0x4f5641(0x453)]){const _0x27a957=_0x3e8fba[_0x4f5641(0x498)];this[_0x4f5641(0x3ec)](_0x27a957)[_0x4f5641(0x22c)](_0x5dd9de=>{const _0x5b9a8f=_0x4f5641;_0x2542ed[_0x5b9a8f(0x49a)]({'cmd':b[_0x5b9a8f(0x437)],'code':Ye['OK'],'routeKey':_0x27a957['data'][_0x5b9a8f(0x3a9)],'routeType':'','data':{'eventID':_[_0x5b9a8f(0x5bf)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5dd9de}}});})['catch'](_0x286bbb=>{const _0x3c3350=_0x4f5641;this[_0x3c3350(0x483)][_0x3c3350(0x219)](_0x286bbb),_0x4cfc65();});return;}}_0x22d3e6[_0x4f5641(0x225)](Ot(_0x3e8fba));},'close':()=>{const _0x3b89f5=_0x2cc304;_0x22d3e6['close'](),_0x34b7bf[_0x3b89f5(0x377)]();}},_0x8f18d3;}async[_0x2914c(0x384)](_0x4cc38b,_0x288186){const _0x576e81=_0x2914c;var _0x49dc55,_0x2044bf;const {unitType:_0x4e08ca,unitID:_0x5a3b4a,changeset:_0x432f0c}=_0x288186[_0x576e81(0x498)],_0x2c9e98={'unitID':_0x5a3b4a,'memberID':_0x4cc38b['memberID'],'type':_0x4e08ca,'changeset':_[_0x576e81(0x236)](_0x432f0c)},_0x4372da=this['_configService'][_0x576e81(0x36c)](Ct),_0x4cd1d1=this[_0x576e81(0x288)][_0x576e81(0x36c)](L),_0x3dcc75=ls((_0x2044bf=(_0x49dc55=_0x4cd1d1==null?void 0x0:_0x4cd1d1[_0x576e81(0x554)])!=null?_0x49dc55:_0x4372da)!=null?_0x2044bf:is,_0x4e08ca,_0x5a3b4a);try{await this['_http'][_0x576e81(0x564)](_0x3dcc75,{'body':_0x2c9e98});}catch(_0x7728f4){throw this['_logService'][_0x576e81(0x219)]('[CollaborationSession]',_0x576e81(0x3da)),_0x7728f4;}}async[_0x2914c(0x3ec)](_0x22627e){const _0x87a2c8=_0x2914c,{unitID:_0x13f878,from:_0x1a176d,to:_0x16c93b,unitType:_0x362d5d}=_0x22627e[_0x87a2c8(0x498)];return(await this['_snapshotServerService'][_0x87a2c8(0x1ff)]({'metadata':void 0x0},{'unitID':_0x13f878,'type':_0x362d5d,'from':_0x1a176d,'to':_0x16c93b}))[_0x87a2c8(0x370)];}},exports[_0x2914c(0x5e2)]=cs([ae(0x0,a[_0x2914c(0x5d4)](w[_0x2914c(0x548)])),ae(0x1,a['Inject'](w['WebSocketService'])),ae(0x2,a[_0x2914c(0x4b3)]),ae(0x3,a['ILogService']),ae(0x4,_['ISnapshotServerService'])],exports['CollaborationSocketService']);const hs=_0x2914c(0x231);function _s(_0x3ba22d){const _0x4c97da=_0x2914c;return JSON[_0x4c97da(0x2d0)](_0x3ba22d)[_0x4c97da(0x286)];}class Xe{constructor(){const _0x148e87=_0x2914c;u(this,_0x148e87(0x529),new v[(_0x148e87(0x430))]()),u(this,_0x148e87(0x584),this[_0x148e87(0x529)]['asObservable']());}[_0x2914c(0x5ea)](_0x5e99d0){const _0x33e39f=_0x2914c;this[_0x33e39f(0x529)][_0x33e39f(0x49a)](_0x5e99d0);}}function _0x21e9(){const _0x4d2397=['_localCacheService','attrs','LIVESHARE_NEW_HOST','[SyncedState]:\x20received\x20rejection.','deserializeToCombResponse','on-line-single_clip0_910_349','addObject','joinRsp','collabStatus.syncing','_shouldReportTelemetry','&to=','setAlpha','exhaustSavingTask','_unitID','pluginName','_members','eventID','AuthzIoHttpService','IUndoRedoService','requestParams','/object/','commentUpdate$','size','_initCloseConn','enableSingleActiveInstanceLock','HTTPRequest','put','createElement','CollaborationStatus','purple300','_initCommandExecutedListener','HEARTBEAT','clearInterval','joinEvent','_labelPosition','getFocusedUnit','name','signUrlServerUrl','_hover','setConfig','jiqing500','getSheetBlock','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_getScale','ERROR_EXCEED_SIZE','shareReplay','c2Prime','getRelativeToViewportCoord','displayName','/allowed','_saveCache','getItem','LocalUndoRedoService','propertyIsEnumerable','removeMember','_replayCachedMutations','/resources','touchDependencies','setShapeProps','4HzxyTX','_cursor','_revisionService','DocSelectionManagerService','onlineStatusTitle','fromCollab','every','_unitStatus','\x20in\x20_schedule.','onRendered','BehaviorSubject','IContextService','snapshotServerUrl','getVpScrollXYInfoByPosToVp','isTransformChangesetsSuccess','syncEditingCollabCursor','take','Rect','univer-online-status-icon','has','_instanceService','CollaborationEvent','duration','substring','commentUpdateEvent','liveShareOperation','_waitCount','DataLoaderController','SUBMIT_CHANGESET','_socket$','addEventListener','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','href','ILocalStorageService','distinctUntilChanged','_hovered','/collaborator','max','Univer','_handleJoinEvent','_commandService','SHOULD_CLOSE_CONN','Inject','generateRandomId','ColorKit','startTime','OnLineSingle','@univerjs/engine-render','collaMsg','[CollaborationSessionService]','CollaborationController','isArray','EffectRefRangId','getOwnPropertyDescriptor','create','endColumn','CollaborationSocketService','/role','interceptor','_assignedColors','message$','userID','collabWebSocketUrl','_clearUndo','onCommentUpdate','black','MessageType','image/jpeg','_initMergeInterceptor','JOIN','_themeService','836366ACsUgI','refreshPermission','assign','docStateChange$','/-/object/-/batch_allowed','conflict.content','_scheduleClearOtherTimer','searchParams','updatePermissionObjEvent','_throwTelemetryCollaborationNewChangeset','_cursors','_substituteUndoStack','fromEventSubject','88344MfNxBj','IAuthzIoService','roomInfos','InsertSheetMutation','_http','focused$','forEach','contains','_univerInstanceService','icon','getActiveRange','_sessions','svg','_render','ICommandService','toDisposable','pending','currentSkeleton$','_imageSourceCache','InsertRangeMoveDownCommandId','_permissionService','RegularPolygon','unsubscribe','registerRenderModule','_getCtorByUniverType','runRefRangeMutations','_replaceFileID','_drawTextRange','LIVESHARE_OPERATION','onRemoteRej','createInstance','UNIVER_DOC','SheetsSelectionsService','RefRangeService','off-line-single_clip0_910_343','off-line-single','_onConnectionOpen','_context','getUniverSheetInstance','session','LICENSE_IMPORT_SIZE_EXCEEDED','onRemoteChangeset','round','_updateStatus','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_state','confirm','_socketReady','idSuffix','NOT_FOUND','_schedule','transformSelections','_init','COMPLETION_FINISHED','_backgroundColor','RevisionService','unit-cache-','SetDocZoomRatioOperation','fetchMissingChangesets','resize','registerRefRange','IUniverInstanceService','handleMoveRange','forwardRef','actions','transform','_ensureSubject','objectType','\x20-\x20','collab-rect-range-','image/bmp','INVALID_ARGUMENT','resend','_anchor','updateCollaborator','collab-client.tooltip.reconnect','activeSheet$','storage','COLORS','_onMessage','_startTelemetryCollaborationNewChangeset','deepClone','getInterceptPoints','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','error','setInterval','onSendChangeset','getRenderById','random','_clearScheduledTask','_state$','_onCombEvent','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getUnitStatus$','onRemoteAck','_send','send','div','IHTTPImplementation','SNAPSHOT_HAS_BEEN_REMOVED','[CollaborationEntity]','switchMap','_name','then','LICENSE_DISTRO_REJECTED','_clearHeartbeatTimer','unshift','setWaitCount','collaboration_new_changeset','collab-text-range-','ERROR_IMAGE','fill','_scene','parseChangesetToProtocol','SheetPermissionInitController','stopTime','_transformRemoteChangesetByIMECache','_transitionLocked','_undoStacks','getCurrentUnitForType','_createInitialState','getDeserializedSheetBlock','close','rng','reduce','reverse','1030967WmWoCH','getUnit','UUID','auth.needGotoLoginAlert','HEADER_MENU','origin','_transformService','_substituteRedoStack','subscribe','get','UNDEFINED','connection\x20error','parseProtocolChangeset','Unknown\x20user','patch','localeService','assignAColorForMemberID','_sheetSkeletonManagerService','_onConnectionFailed','close$','Shape','restore','text','UNAUTHENTICATED','/universer-api/stream/file/upload','hidden','&source=','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Vector2','apply','collabStatus.fetchMiss','_updateCollabCursors','_memberService','_cachedData','_rescheduleHeartbeat','_startSheetCollabCursor','makeDirty','_clearTimeoutTimer','_getSheetObject','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','serializeCombRequest','Warning','key','getImage','newValue','_candidateSocket','originalMeta','handleInsertRow','editingUnit','_getSaveTimeout','addObjects','CHANGESET_REJ','_getAPIPrefix','save','getResourcesRequest','getParam','IImageIoService','getCurrentRevOfUnit','merge','startRow','Tools','transformMutationsWithChangeset','_initEventListeners','getMember','/unit/','cursorInfo','onTransformSelections','length','add','_configService','className','_tryEnsureSocket','ImageIoService','_exhaustRemoteChangesetQueue','addImageSourceCache','handleIRemoveRow','_hideTimer','_entityInit$','_joinRoom','FileId','...','_unlockTransition','getUnitOnRev','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','LIVESHARE_TERMINATE','LOCAL_CACHE_INTERVAL','getCollabEntity','status','INGEST','dispose$','toStringTag','_onFetchMissResult','_timeoutTimer','_listenToOnlineEvent','univer-online','getSkeleton','ImageSourceType','HEARTBEAT_INTERVAL_KEY','_renderManagerService','body','Module','BASE64','closeSession','parse','_onUserJoin','concat','_toggleOnline','snapshot','SheetCollabCursorShape','transformChangesets','useRef','_collaborationTimeoutTimer','@univerjs/sheets','_colorAssignService','awaitingChangeset','Tooltip','lineTo','_socketMessageSubscription','_sessionStatus$','socketService','getSheetBySheetId','_localStorageService','isInternalEditorID','path','updateCursorEvent','width','roomMembers$','m2Prime','subunit','getRoom','IDLE','getOffsetConfig','doc.mutation.rich-text-editing','VIEWPORT_KEY','defs','from','APPLY_PERMISSION_DENIED','_handleHover','session.room-full','transformMutation','engine','stringify','fetch_missing','serializeRangeWithSheet','withCredentials','MSG_FOR_ERROR','ImageUploadStatusType','DependentOn','sid','IURLService','getCurrentUser','150245rZHEHK','/object','resolve','YUUMI_UNABLE_LOAD_URL','colorChannel1','220936AzEHmZ','_event$','pipe','requireSession','HttpImport','combineLatest','SEND_CHANGESET_TIMEOUT','csRejEvent','CollaborationEntity','unload','_handleLeaveEvent','session.connection-failed','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','SheetCollaborationEntity','_anchorDot','transformUndoRedo','_urlService','putCollaborators','min','_socket','indexOf','rxjs/operators','OFFLINE','sheetId','copyFileMeta','range','_checkMissing','bottom','/-/object/list','collabStatus.synced','delete','hide','replaceState','textEncoder','textRanges','#fff','baseRev','_localeService','debounce','collab-text-anchor-','transformIMECache','_selfUnitIDs','x-univer-host','AWAITING_WITH_PENDING','_retryCount','debounceTime','getTypeOfUnitDisposed$','_loadSheet','#FFF','bind','_injector','handleDeleteRangeMoveUp','state','ThresholdInterceptorFactory','_id','column','skeleton','Plugin','result','url(#$1','2125488AfpmVy','MergeInterceptorFactory','YUUMI_URL_COL_OUT_OF_RANGE','_createSocket','closePath','_color','enableLocalCache','setTimeout','IPermissionService','WorkbookEditablePermission','RxDisposable','@univerjs/rpc','title','handleIRemoveCol','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','COLLAB_WEB_SOCKET_URL','JSONX','handleDeleteRangeMoveLeft','IBeforeCloseService','onTransformChange$','append','[UniverCollaborationClientPlugin]','UPDATE_PERMISSION_OBJ','_range','_isPermissionRej','_executeRemoteChangeset','replaceTextRanges','onPointerEnter$','TOO_MANY_REQUESTS','roles','event$','Rectangle','M0\x200H16V16H0z','disposeUnit','asObservable','[CollaborationUndoRedoService]','_onRemoteChangeset','_onRecvEvent','_initUnitPermissionChange','COLLAB_SUBMIT_CHANGESET_URL','complete','url(#on-line-single_clip0_910_349)','PERMISSION_REJ','isTransformMutationsWithChangesetFailure','_startCollaboration','1em','startsWith','permissionRejEvent','useCallback','setParam','revision','awaiting_with_pending','NEW_CHANGESETS','getOwnPropertySymbols','_socketService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','prototype','ranges','type','list','DesktopCollaborationStatusDisplayController','LIVESHARE_FETCH_OPERATIONS','onlineStatus','getCollabEntity$','_collaborationPaused','headers','ThemeService','save\x20fail\x20reason\x20is\x20','DocIMEInputManagerService','permission.content','rgba(255,\x20255,\x20255,\x200.01)','_docTransformSelectionsService','socket$','onMissedChangesetFetched','enableAuthServer','_transformPreviousActiveRange','_getSendChangesetTimeout','getRangePointData','encode','_eventUnsubscribe','_queuedRemoteChangesets','getConfig','arc','UNKNOWN_CODE','authzUrl','changesets','ENSURE_SNAPSHOT_EXECUTION','LocaleService','font','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getViewport','reconnect','dispose','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[OfflineState]:\x20received\x20acknowledgement.','ALREADY_EXISTS','_toggleOffline','_collabCursorController','_scheduleTimestamp','SNAPSHOT_URL_KEY','responseType','updatePermissionPoint','deleteCollaborator','LICENSE_MAX_UNITS_EXCEEDED','location','_submitChangeset','CommentService','_status$','debug','_updateURLWithCurrentState','code','/new_changes','Disposable','_scheduleCollaborationTimeoutTimer','_docSkeletonManagerService','_getSnapshotAPIPrefix','fetchMiss','univer-online-status-title','_transformStack','@univerjs-pro/license','\x0aCurrent:\x20','AUTHZ_URL_KEY','toLowerCase','includes','USERS_LEAVE','_sendHeartbeat','_onOffline','m1Prime','values','getUnitType','SetWorksheetActivateCommand','_createInitialStateImpl','onlineStatusIcon','getColor','mapDocumentTypeToUniverType','collaboration-client.config','_createHandler','DisposableCollection','BuiltInUIPart','_awaitingChangeset','split','_cursorShapes','unitID','loadOfflineData','InsertRangeMoveRightCommandId','onload','memberID','resourceIDs','params','_uiPartsService','getValue','DocStateChangeManagerService','rxjs','visibilitychange','_singleActiveUnitService','_decreaseWaiting','\x20to\x20','@univerjs/ui','TEXT_RANGE_LAYER_INDEX','_transformSelections','onTransformIME','?url=','saveOfflineData','YUUMI_RATE_OVER_LIMIT','UniverCollaborationClientPlugin','LOGIN_URL_KEY','now','_ws','translate(.97)','registerOnClose','_initStatusComponent','defIds','_updateLocalCursor','_remoteChangesetQueue','_updateState','session.will-retry','_getLoginPath','updateOfflineData','fetchThroughInterceptors','_initStatusListener','_retryConnectingTimer','transformByState','getSheetObject','_telemetryService','_clearOtherTimers','_loadDoc','CHANGESET_REVISION_CONFILICT','b64DecodeUnicode','_HTTPService','NodePositionConvertToCursor','HEARTBEAT_INTERVAL','submit\x20changeset\x20error!','UnitEmbedded','getWorkbookSelections','NO_OTHER_CLIENTS_EDITING','UNIVER_SLIDE','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','DocCollaborationEntity','collabStatus.notCollab','_drawRectRange','liveShareNewHost','concatMap','toggleOnline','synced','?size=','setUndoRedoMutationParamsCache','_showConflictNotification','listCollaborators','deserializeRangeWithSheet','_fetchMissChangesets','UniverInstanceType','_waitForHeartbeatResponse','DEFAULT_FILE_NAME','labelPosition','executeCommand','CONNECTOR_DATA_TOO_LARGE','univer-offline','_changesetReqId','onMouseMove','online','POST','getUnitId','/rev/','_onCursorUpdate','@univerjs/docs-ui','setCurrentUser','transformRemoteChangeset','@univerjs/docs','updateMember','objects','_httpService','_roomMembers$','red300','_onJoinRoomEvent','0\x200\x2017\x2016','tag','_onRemoteACK','show','PENDING','onlyLocal','_setupSubUnitSync','cmd','SessionStatus','workbook','_lockTransition','SYNCED','InsertRowCommandId','loginUrlKey','currentTheme$','_acknowledgedAwaitingChangeset','saveSheetBlock','handleInsertCol','clearTimeout','onStateChange','randomUUID','mapTo','_colorIndex','unitId','set','_handler','_online','[OfflineState]:\x20received\x20changeset.','useDependency','SNAPSHOT_INVALID_SNAPSHOT','/block/','downloadEndpointUrl','520rMGQlx','_getCurrentRevision','_removeCollabCursors','NOT_COLLAB','_commentService','height','call','_getUndoStack','USERS_ENTER','rev','slice','Subject','[CollaborationState]:\x20apply\x20error!','takeUntil','mutations','COMMENT_UPDATE','conflict','sheets','RECV','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_removeClearOtherTimer','_initResize','_compressMutationService','PERMISSION_DENIED','_collabCursorState$','/fetchmissing?from=','_getAPIPrefixPath','_updateSubUnitFromURLParams','RemoveRowCommandId','SEND_CHANGESET_TIMEOUT_KEY','ITelemetryService','image/jpg','infoRsp','fillText','ws://127.0.0.1:8000/universer-api/comb/connect','_incrementRevisionNumber','disposeWithMe','toggleOffline','isTransformMutationFailure','_snapshotServerService','onPointerLeave$','collaboration.single-unit.warning','_collaborationController','_getMergeRange','HEARTBEAT_TIMEOUT','onSyncEditingCollabCursor','FETCH_MISSING','_docStateChangeManagerService','beginPath','ITransformService','_sheetTransformSelectionsService','CommandType','loadSheet','CollaborationSession','_getDownloadEndpointURL','collaboration.closeRoom','file','UNRECOGNIZED','_telemetryInfo','SetSelectionsOperation','AWAITING','RichTextEditingMutation','_refRangeService','getUnhiddenWorksheets','awaiting','with','LocalCacheService','appendMutation','_changesetSessionId','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_registerDependencies','method','_syncEditingCollabCursorService','_heartbeatTimer','_initModules','evenodd','subUnitId','sendChangesetTimeout','APPLY_DUPLICATED','_userManagerService','ONLINE','xlink:href','pushState','[CollaborationSessionService]:\x20socket\x20error','_config','COMPRESS_MUTATION_APPLY','uni.network.url-service','EXCHANGE_SIGN_URL_SERVER_URL_KEY','whenReady','WebSocketService','_getAnchorBounding','number','target','_notificationService','_logService','symbol','ILogService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_tryReconnect','APPLY_REJECT','ICollaborationSocketService','_saveTaskMap','UNIVER_UNKNOWN','isTransformMutationsWithChangesetSuccess','filter','shouldCloseConn','selection','open$','selections','LICENSE_EXPORT_SIZE_EXCEEDED','OffLineSingle','LEAVE','color','CompressMutationService','SNAPSHOT_SERVER_URL_KEY','data','getMemberID','next','DocSkeletonManagerService','_collabSessionService','_pendingMutations','collaboration-session-retry','replace','useObservable','onTransformRemoteChangesetByIMECache','defineProperty','drawWith','getCollabCursors$','_lastPointer','getMergeData','IRemoteInstanceService','_setupBeforeClosingHandler','_textBubble','createCollaborator','failed\x20to\x20apply\x20missed\x20changesets!','_sendHeartbeatTimer','row','SnapshotServerOverHTTPService','INTERNAL_ERROR','collaborators','_document','FETCH_MISS','IConfigService','clear','Error','override','[PendingState]:\x20received\x20rejection.','_onConflict','mergeOverrideWithDependencies','UPDATE_CURSOR','univerjs-icon\x20univerjs-icon-','isActive','getAttachHeader','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','object','_onCursorDelete','_unitOnClients','clipPath','ERROR_IMAGE_TYPE','history','SheetSkeletonManagerService','getCellPositionByOffset','registerHTTPInterceptor','permission.title','@univerjs-pro/collaboration','roomMembers','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','@univerjs/engine-formula','leaveEvent','FromArray','getActiveSheet','telemetry\x20info\x20is\x20not\x20initialized','findNodePositionByCharIndex','_transformIMECache','OTHER_CLIENTS_EDITING','createSocket','flatMap','CHANGESET_ACK','initWorkbookPermissionChange','toRgbString','_getRedoStack','@univerjs/design','_docTransformIMECacheService','currentColor','getTypeOfUnitAdded$','_beforeCloseService','@univerjs/core','_cursorInfo$','react','toString','_clearCollaborationTimeoutTimer','extend','APPLY_NON_SEQUENTIAL_REVISION','univer-online-status','_transformUndoredo','createIdentifier','members','init','none','_clearLocalCache','push','ACTIVE_UNIT_EVENT_CHANNEL','blue400','20616jHGFAy','/universer-api/comb','@univerjs/drawing','SUCCUSS','collabCursorState$','conflict.title','delay','UnitSnapshot','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','CollaborationSessionService','incrementRevOfUnit','image/png','JOINING','_handleHeartbeatEvent','saveChangeset','top','univer-pro.collaboration-client-socket-service','routeKey','offline','_scheduleHeartbeat','YUUMI_SUBSCRIPTION_NOT_FOUND','PSEUDO_FETCH_MISSING_RESULT','_onRemoteRejected','_redoStacks','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_disableEditing','_transformUndoRedoStack','cursorInfo$','[DataLoaderController]','COMPRESS_MUTATION_SEND','urlChange$','_change$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','setItem','MoveRangeCommandId','_disabled','_onLocalMutation','newCsEvent','_registerRenderDependencies','status$','handleInsertRangeMoveRight','c1Prime','_initRequestHeader','error$','_undoRedoService','loadDoc','sessionStatus$','json','url','on-line-single','CONFLICT','UNIVER_PROJECT','gold400','MUTATION','socket\x20close','_handleEvent','_commentUpdate$','[PendingState]:\x20received\x20acknowledgement.','_clearRedo','_stopTelemetryCollaborationNewChangeset','isPermissionRej','Error\x20on\x20receiving\x20event','LIVESHARE_REQUEST_HOST','getTime','unit','unknown','HELLO','_shapes','_drawAnchor','subscribeEvent','DeleteRangeMoveLeftCommandId','_entities','INotificationService','fillStyle','map','use','disableLocalCache','_startDocCollabCursor','_syncEditingCollabCursor','_refreshCollabCursors','_messageService','string','[OfflineState]:\x20received\x20rejection.','Injector','onCommandExecuted','_scheduleSaving','_applyRemoteChangeset','HTTPService','_roomMembers','visibilityState','_type','_getSignURL','getDocRanges','verdancy600','socket\x20open.','getRandomValues','_updateLocalCache','Undefined','readAsDataURL','collabSubmitChangesetUrl','current','fromEvent','children','reqId','objectID','_sendingTimer','find','UNIVER_SHEET','HttpExport','saveImage','setActiveRange','change$','IMessageService','onMissingChangesets','Optional','post','enableOfflineEditing','reject','getSheetId','collaboration-client.offline-data-not-saved','APPLY_REVISION_CONFILICT','_collaborationSessionService','_docSyncEditingCollabCursorService','_draw','_session','_removeRoom'];_0x21e9=function(){return _0x4d2397;};return _0x21e9();}var us=Object['defineProperty'],ds=Object['getOwnPropertyDescriptor'],Ss=(_0x27367e,_0x5b3b14,_0x5ac817,_0x5903f)=>{for(var _0x53b155=_0x5903f>0x1?void 0x0:_0x5903f?ds(_0x5b3b14,_0x5ac817):_0x5b3b14,_0x20853f=_0x27367e['length']-0x1,_0x588682;_0x20853f>=0x0;_0x20853f--)(_0x588682=_0x27367e[_0x20853f])&&(_0x53b155=(_0x5903f?_0x588682(_0x5b3b14,_0x5ac817,_0x53b155):_0x588682(_0x53b155))||_0x53b155);return _0x5903f&&_0x53b155&&us(_0x5b3b14,_0x5ac817,_0x53b155),_0x53b155;},tt=(_0x35ea80,_0x20cae8)=>(_0xb977d3,_0x1f378b)=>_0x20cae8(_0xb977d3,_0x1f378b,_0x35ea80);let q=class extends a[_0x2914c(0x38b)]{constructor(_0xb3b05e,_0x3202a9){const _0x32a380=_0x2914c;super(),u(this,_0x32a380(0x549),new Map()),(this[_0x32a380(0x1cc)]=_0xb3b05e,this[_0x32a380(0x474)]=_0x3202a9,this[_0x32a380(0x449)](a[_0x32a380(0x1d3)](v[_0x32a380(0x27d)](this[_0x32a380(0x1cc)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x32a380(0x55c)])[_0x32a380(0x2e1)](E[_0x32a380(0x53b)](_0x39f953=>_0x39f953[_0x32a380(0x3f8)]())),this[_0x32a380(0x1cc)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x32a380(0x1e3)])[_0x32a380(0x2e1)](E[_0x32a380(0x53b)](_0x2fc223=>_0x2fc223[_0x32a380(0x3f8)]())),this[_0x32a380(0x1cc)][_0x32a380(0x30d)](a[_0x32a380(0x3ed)][_0x32a380(0x3de)])[_0x32a380(0x2e1)](E[_0x32a380(0x53b)](_0x488f7a=>_0x488f7a[_0x32a380(0x3f8)]())))[_0x32a380(0x24b)](_0x479ff1=>this['_removeRoom'](_0x479ff1)))));}[_0x2914c(0x3fc)](_0x308741){const _0x32f6c7=_0x2914c;this[_0x32f6c7(0x474)][_0x32f6c7(0x3fc)](_0x308741);}[_0x2914c(0x2d9)](){const _0x52b049=_0x2914c;return this['_userManagerService'][_0x52b049(0x2d9)]();}[_0x2914c(0x3ff)](_0x4df13b,_0x344820){const _0x39be82=_0x2914c;let _0x4cc309=this[_0x39be82(0x549)][_0x39be82(0x24c)](_0x4df13b);_0x4cc309||(_0x4cc309=new vs(),this[_0x39be82(0x549)]['set'](_0x4df13b,_0x4cc309)),_0x4cc309[_0x39be82(0x3ff)](_0x344820);}[_0x2914c(0x5a5)](_0x40795d,_0x1c24a5){const _0x32584f=_0x2914c,_0x19caa4=this['_roomMembers'][_0x32584f(0x24c)](_0x40795d);_0x19caa4&&_0x19caa4[_0x32584f(0x5a5)](_0x1c24a5);}[_0x2914c(0x2c4)](_0xb68cf4){const _0x2e04ff=_0x2914c;return this[_0x2e04ff(0x549)]['get'](_0xb68cf4);}[_0x2914c(0x282)](_0x353566,_0x281539){const _0x49c096=_0x2914c,_0x5968f1=this[_0x49c096(0x549)]['get'](_0x353566);if(_0x5968f1)return _0x5968f1[_0x49c096(0x282)](_0x281539);}[_0x2914c(0x56e)](_0x3f6c61){const _0x2f63eb=_0x2914c,_0x50af7a=this[_0x2f63eb(0x549)][_0x2f63eb(0x24c)](_0x3f6c61);_0x50af7a&&(_0x50af7a[_0x2f63eb(0x377)](),this[_0x2f63eb(0x549)]['delete'](_0x3f6c61));}['dispose'](){const _0x2059a3=_0x2914c;this[_0x2059a3(0x549)][_0x2059a3(0x1ca)](_0xe5c10=>_0xe5c10[_0x2059a3(0x377)]()),this['_roomMembers'][_0x2059a3(0x4b4)]();}};q=Ss([tt(0x0,a[_0x2914c(0x202)]),tt(0x1,a[_0x2914c(0x5d4)](a['UserManagerService']))],q);class vs extends a[_0x2914c(0x38b)]{constructor(){const _0x170c5f=_0x2914c;super(...arguments),u(this,_0x170c5f(0x57e),new Map());}['dispose'](){const _0x810f43=_0x2914c;this[_0x810f43(0x57e)][_0x810f43(0x4b4)]();}[_0x2914c(0x3ff)](_0x33ba93){const _0x520936=_0x2914c;this[_0x520936(0x57e)][_0x520936(0x41d)](_0x33ba93[_0x520936(0x3ad)],_0x33ba93);}[_0x2914c(0x5a5)](_0x346ec9){const _0x25be07=_0x2914c;this[_0x25be07(0x57e)][_0x25be07(0x2fd)](_0x346ec9);}[_0x2914c(0x282)](_0x26cbbc){const _0x4c9bd6=_0x2914c;return this['_members'][_0x4c9bd6(0x24c)](_0x26cbbc);}}var gs=Object['defineProperty'],ms=Object[_0x2914c(0x5df)],fs=(_0x2c1946,_0x5342b4,_0x1b8d85,_0x382689)=>{for(var _0x7bce64=_0x382689>0x1?void 0x0:_0x382689?ms(_0x5342b4,_0x1b8d85):_0x5342b4,_0x35620a=_0x2c1946['length']-0x1,_0x34155a;_0x35620a>=0x0;_0x35620a--)(_0x34155a=_0x2c1946[_0x35620a])&&(_0x7bce64=(_0x382689?_0x34155a(_0x5342b4,_0x1b8d85,_0x7bce64):_0x34155a(_0x7bce64))||_0x7bce64);return _0x382689&&_0x7bce64&&gs(_0x5342b4,_0x1b8d85,_0x7bce64),_0x7bce64;},V=(_0x365f85,_0x4677c8)=>(_0x4d867d,_0x315742)=>_0x4677c8(_0x4d867d,_0x315742,_0x365f85),H=(_0x237e55=>(_0x237e55[_0x237e55[_0x2914c(0x2c5)]=0x0]='IDLE',_0x237e55[_0x237e55[_0x2914c(0x4fd)]=0x1]=_0x2914c(0x4fd),_0x237e55[_0x237e55[_0x2914c(0x2f5)]=0x2]='OFFLINE',_0x237e55[_0x237e55[_0x2914c(0x475)]=0x3]=_0x2914c(0x475),_0x237e55))(H||{});exports[_0x2914c(0x45a)]=class extends a[_0x2914c(0x325)]{constructor(_0x9e5270,_0x409e6a,_0x1fbe19,_0x1cc1a3,_0x37185c,_0x32701f,_0x18054d,_0x4d791b,_0x3c80a5,_0x2fa0ca){const _0x1d8ef4=_0x2914c;super(),u(this,'_sessionStatus$',new v[(_0x1d8ef4(0x5b4))](0x0)),u(this,'sessionStatus$',this[_0x1d8ef4(0x2b9)]['asObservable']()),u(this,_0x1d8ef4(0x2e0),new v['Subject']()),u(this,_0x1d8ef4(0x339),this['_event$'][_0x1d8ef4(0x33d)]()),u(this,'_socket'),u(this,'_socketMessageSubscription'),u(this,_0x1d8ef4(0x2b2)),u(this,_0x1d8ef4(0x578),!0x1),u(this,_0x1d8ef4(0x45f),null),(this[_0x1d8ef4(0x57c)]=_0x9e5270,this[_0x1d8ef4(0x483)]=_0x1fbe19,this[_0x1d8ef4(0x4de)]=_0x1cc1a3,this[_0x1d8ef4(0x541)]=_0x37185c,this[_0x1d8ef4(0x288)]=_0x32701f,this[_0x1d8ef4(0x304)]=_0x18054d,this[_0x1d8ef4(0x263)]=_0x4d791b,this['_commentService']=_0x3c80a5,this[_0x1d8ef4(0x3d2)]=_0x2fa0ca,this[_0x1d8ef4(0x578)]=!!this[_0x1d8ef4(0x3d2)],_0x409e6a['pipe'](v[_0x1d8ef4(0x432)](this[_0x1d8ef4(0x29c)]))['subscribe'](_0x5d1189=>{const _0x4e0a76=_0x1d8ef4;var _0x36fd4e;typeof _0x5d1189>'u'||(this[_0x4e0a76(0x2f2)]=_0x5d1189,_0x5d1189?(this[_0x4e0a76(0x291)](_0x5d1189),this[_0x4e0a76(0x2b8)]=_0x5d1189[_0x4e0a76(0x5e6)][_0x4e0a76(0x24b)](_0x725cf8=>{const _0xc5f489=_0x4e0a76;_0x725cf8[_0xc5f489(0x502)]===this[_0xc5f489(0x57c)]&&this[_0xc5f489(0x220)](_0x725cf8);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x4e0a76(0x2b9)][_0x4e0a76(0x49a)](0x2),(_0x36fd4e=this[_0x4e0a76(0x2b8)])==null||_0x36fd4e[_0x4e0a76(0x1da)](),this[_0x4e0a76(0x2b8)]=null));}),this['disposeWithMe'](this['_beforeCloseService'][_0x1d8ef4(0x3c4)](()=>{const _0x5e5276=_0x1d8ef4;var _0x153dfc;(_0x153dfc=this[_0x5e5276(0x2f2)])==null||_0x153dfc[_0x5e5276(0x225)]({'cmd':b[_0x5e5276(0x494)],'data':{'roomID':this[_0x5e5276(0x57c)]}});})));}get['sessionStatus'](){const _0x276a9d=_0x2914c;return this['_sessionStatus$'][_0x276a9d(0x3b1)]();}[_0x2914c(0x499)](){var _0x1ebdca,_0x1c2863;return(_0x1c2863=(_0x1ebdca=this['_socket'])==null?void 0x0:_0x1ebdca['memberID'])!=null?_0x1c2863:null;}[_0x2914c(0x377)](){const _0x2660c6=_0x2914c;super[_0x2660c6(0x377)](),this['dispose$'][_0x2660c6(0x49a)](),this[_0x2660c6(0x29c)]['complete']();}['close'](){const _0x11fd23=_0x2914c;var _0x495d49,_0x5992da;this[_0x11fd23(0x1c0)](),(_0x495d49=this['_socket'])==null||_0x495d49[_0x11fd23(0x225)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x11fd23(0x57c)]}}),(_0x5992da=this[_0x11fd23(0x2f2)])==null||_0x5992da[_0x11fd23(0x23f)](),this['_event$'][_0x11fd23(0x343)](),this[_0x11fd23(0x2b9)][_0x11fd23(0x343)](),this[_0x11fd23(0x377)]();}[_0x2914c(0x220)](_0x191c6e){const _0x394d58=_0x2914c;_0x191c6e[_0x394d58(0x40c)]===b[_0x394d58(0x1b5)]?this[_0x394d58(0x404)](_0x191c6e):_0x191c6e[_0x394d58(0x40c)]===b['RECV']&&this[_0x394d58(0x340)](_0x191c6e);}[_0x2914c(0x291)](_0x2bf097){const _0x2c0b62=_0x2914c;this[_0x2c0b62(0x2b9)]['next'](0x1),_0x2bf097['send']({'cmd':b[_0x2c0b62(0x1b5)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x2914c(0x404)](_0x392051){const _0x4b9fd5=_0x2914c;var _0xadec5f;if(_0x392051[_0x4b9fd5(0x389)]===Ye['FAIL']){this[_0x4b9fd5(0x541)][_0x4b9fd5(0x408)]({'type':X[_0x4b9fd5(0x1b2)][_0x4b9fd5(0x26c)],'content':this[_0x4b9fd5(0x304)]['t'](_0x4b9fd5(0x2cd))}),this[_0x4b9fd5(0x2b9)][_0x4b9fd5(0x49a)](0x2);return;}this[_0x4b9fd5(0x2b9)]['next'](0x3);const _0x50feaf=(_0xadec5f=_0x392051[_0x4b9fd5(0x498)][_0x4b9fd5(0x1c6)][this['_unitID']])==null?void 0x0:_0xadec5f[_0x4b9fd5(0x4e9)];_0x50feaf&&_0x50feaf[_0x4b9fd5(0x1ca)](_0x527587=>this['_memberService'][_0x4b9fd5(0x3ff)](this[_0x4b9fd5(0x57c)],_0x527587));}[_0x2914c(0x340)](_0x5bcecb){const _0x1e67dd=_0x2914c;try{const _0x424bb9=_0x5bcecb[_0x1e67dd(0x498)];switch(_0x424bb9[_0x1e67dd(0x57f)]){case _['CollaborationEvent'][_0x1e67dd(0x42d)]:this[_0x1e67dd(0x2ab)](_0x424bb9),this[_0x1e67dd(0x2e0)][_0x1e67dd(0x49a)](_0x424bb9);break;case _[_0x1e67dd(0x5bf)][_0x1e67dd(0x397)]:this['_onUserLeave'](_0x424bb9),this[_0x1e67dd(0x2e0)]['next'](_0x424bb9);break;case _[_0x1e67dd(0x5bf)][_0x1e67dd(0x4d6)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x1e67dd(0x49a)](_0x424bb9);break;case _[_0x1e67dd(0x5bf)]['MSG_FOR_ERROR']:this[_0x1e67dd(0x483)][_0x1e67dd(0x219)](_0x1e67dd(0x35e)+JSON[_0x1e67dd(0x2d0)](_0x424bb9)),this[_0x1e67dd(0x2e0)][_0x1e67dd(0x49a)](_0x424bb9);break;case _[_0x1e67dd(0x5bf)][_0x1e67dd(0x434)]:this[_0x1e67dd(0x429)][_0x1e67dd(0x5ea)](_0x424bb9[_0x1e67dd(0x498)]),this['_event$'][_0x1e67dd(0x49a)](_0x424bb9);break;default:this[_0x1e67dd(0x2e0)][_0x1e67dd(0x49a)](_0x424bb9);}}catch(_0x2cf576){this['_logService'][_0x1e67dd(0x219)](_0x2cf576,_0x5bcecb);}}[_0x2914c(0x2ab)](_0x4857b9){const _0x293259=_0x2914c;this[_0x293259(0x263)]['updateMember'](this['_unitID'],_0x4857b9['data']);}['_onUserLeave'](_0xd990be){const _0x165999=_0x2914c;this[_0x165999(0x263)][_0x165999(0x5a5)](this[_0x165999(0x57c)],_0xd990be['data'][_0x165999(0x3ad)]);}async[_0x2914c(0x225)](_0x390972,_0x3e25b6){const _0x279c0f=_0x2914c;if(this['sessionStatus']!==0x3||!this[_0x279c0f(0x2f2)])throw new Error(_0x279c0f(0x3df));try{_0x390972[_0x279c0f(0x57f)]===_['CollaborationEvent'][_0x279c0f(0x5c6)]&&(this[_0x279c0f(0x38c)](),this[_0x279c0f(0x215)](_0x390972)),this[_0x279c0f(0x2f2)][_0x279c0f(0x225)]({'cmd':b[_0x279c0f(0x29b)],'routeKey':_0x3e25b6,'routeType':'','data':_0x390972});}catch(_0x25b26d){this[_0x279c0f(0x483)]['error'](_0x25b26d);}}[_0x2914c(0x38c)](){const _0x3ed3a4=_0x2914c;var _0x4a3409;this[_0x3ed3a4(0x2b2)]=window[_0x3ed3a4(0x322)](()=>{const _0x1a0a2a=_0x3ed3a4;this[_0x1a0a2a(0x2b2)]=null,this[_0x1a0a2a(0x541)][_0x1a0a2a(0x408)]({'type':X[_0x1a0a2a(0x1b2)]['Error'],'content':this[_0x1a0a2a(0x304)]['t']('session.collaboration-timeout')});},(_0x4a3409=this['_configService'][_0x3ed3a4(0x36c)](Ge))!=null?_0x4a3409:ft);}[_0x2914c(0x4e3)](){const _0xc863fb=_0x2914c;this[_0xc863fb(0x2b2)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x4da406){if(!this['_shouldReportTelemetry'])return;const {data:_0x112814}=_0x4da406,{unitID:_0x5d83cf,changeset:_0x4191ac}=_0x112814,{mutations:_0x50825c,type:_0x378999}=_0x4191ac;this['_telemetryInfo']={'unitId':_0x5d83cf,'type':_0x378999,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_s(_0x50825c)};}[_0x2914c(0x52c)](){const _0x3293b5=_0x2914c;if(this[_0x3293b5(0x578)]){if(!this[_0x3293b5(0x45f)]){this[_0x3293b5(0x483)][_0x3293b5(0x219)]('[CollaborationSession]',_0x3293b5(0x4d0));return;}this[_0x3293b5(0x45f)][_0x3293b5(0x238)]=performance[_0x3293b5(0x3c1)](),this[_0x3293b5(0x45f)][_0x3293b5(0x5c0)]=this[_0x3293b5(0x45f)][_0x3293b5(0x238)]-this[_0x3293b5(0x45f)][_0x3293b5(0x5d7)],this[_0x3293b5(0x3d2)]['capture'](hs,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x2914c(0x1c0)](){const _0x57180b=_0x2914c;this[_0x57180b(0x45f)]=null;}},exports['CollaborationSession']=fs([V(0x2,a['ILogService']),V(0x3,A[_0x2914c(0x32d)]),V(0x4,A[_0x2914c(0x561)]),V(0x5,a[_0x2914c(0x4b3)]),V(0x6,a['Inject'](a['LocaleService'])),V(0x7,a['Inject'](q)),V(0x8,a[_0x2914c(0x5d4)](Xe)),V(0x9,a[_0x2914c(0x563)](Yt[_0x2914c(0x443)]))],exports[_0x2914c(0x45a)]);var Is=Object[_0x2914c(0x4a2)],ps=Object[_0x2914c(0x5df)],Cs=(_0x32db92,_0x11c862,_0x592379,_0x1fa71f)=>{const _0x3530c2=_0x2914c;for(var _0x3f393f=_0x1fa71f>0x1?void 0x0:_0x1fa71f?ps(_0x11c862,_0x592379):_0x11c862,_0x58e650=_0x32db92[_0x3530c2(0x286)]-0x1,_0x25bd3a;_0x58e650>=0x0;_0x58e650--)(_0x25bd3a=_0x32db92[_0x58e650])&&(_0x3f393f=(_0x1fa71f?_0x25bd3a(_0x11c862,_0x592379,_0x3f393f):_0x25bd3a(_0x3f393f))||_0x3f393f);return _0x1fa71f&&_0x3f393f&&Is(_0x11c862,_0x592379,_0x3f393f),_0x3f393f;},Z=(_0x448741,_0x52364a)=>(_0x29a3bb,_0x3a71a8)=>_0x52364a(_0x29a3bb,_0x3a71a8,_0x448741);exports[_0x2914c(0x4fa)]=class extends a['Disposable']{constructor(_0x14fb74,_0x120633,_0x32afcb,_0x1f4ccd,_0x1e8f5c,_0x32d51f){const _0x1c4202=_0x2914c;super(),u(this,_0x1c4202(0x5c7),new v['BehaviorSubject'](void 0x0)),u(this,_0x1c4202(0x363),this['_socket$'][_0x1c4202(0x33d)]()),u(this,_0x1c4202(0x270),null),u(this,_0x1c4202(0x1cf),new Map()),u(this,_0x1c4202(0x386),new v[(_0x1c4202(0x5b4))](H[_0x1c4202(0x2c5)])),u(this,_0x1c4202(0x518),this['_status$'][_0x1c4202(0x33d)]()),u(this,_0x1c4202(0x1f4),!0x1),u(this,_0x1c4202(0x3cf)),u(this,_0x1c4202(0x30b),0x0),u(this,_0x1c4202(0x4ac)),u(this,_0x1c4202(0x29f)),(this['_injector']=_0x14fb74,this['_localeService']=_0x120633,this['_messageService']=_0x32afcb,this[_0x1c4202(0x483)]=_0x1f4ccd,this[_0x1c4202(0x288)]=_0x1e8f5c,this['_socketService']=_0x32d51f,this[_0x1c4202(0x281)]());}get[_0x2914c(0x2f2)](){const _0x24fb94=_0x2914c;return this[_0x24fb94(0x5c7)][_0x24fb94(0x3b1)]();}[_0x2914c(0x281)](){const _0x2a6c07=_0x2914c;this['_listenToOfflineEvent'](),this[_0x2a6c07(0x2a0)]();}[_0x2914c(0x377)](){const _0x2d6a48=_0x2914c;super[_0x2d6a48(0x377)](),this[_0x2d6a48(0x1cf)][_0x2d6a48(0x1ca)](_0x63eacd=>_0x63eacd[_0x2d6a48(0x377)]()),this['_sessions'][_0x2d6a48(0x4b4)](),this[_0x2d6a48(0x386)]['complete']();}async['requireSession'](_0x333d9d){const _0x5f0c67=_0x2914c;if(this[_0x5f0c67(0x1cf)][_0x5f0c67(0x5bd)](_0x333d9d))return this[_0x5f0c67(0x1cf)][_0x5f0c67(0x24c)](_0x333d9d);this[_0x5f0c67(0x28a)]();const _0x12df49=this[_0x5f0c67(0x311)]['createInstance'](exports['CollaborationSession'],_0x333d9d,this[_0x5f0c67(0x5c7)][_0x5f0c67(0x33d)]());return this[_0x5f0c67(0x1cf)][_0x5f0c67(0x41d)](_0x333d9d,_0x12df49),_0x12df49;}['closeSession'](_0x3337d4){const _0x56bdd0=_0x2914c;var _0x5b8b32;const _0x4a3e28=this[_0x56bdd0(0x1cf)][_0x56bdd0(0x24c)](_0x3337d4);_0x4a3e28&&(this['_sessions'][_0x56bdd0(0x2fd)](_0x3337d4),_0x4a3e28[_0x56bdd0(0x23f)]()),this[_0x56bdd0(0x1cf)][_0x56bdd0(0x585)]||(_0x5b8b32=this[_0x56bdd0(0x2f2)])==null||_0x5b8b32['close']();}[_0x2914c(0x376)](){const _0x2842c6=_0x2914c;this[_0x2842c6(0x30b)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x2842c6(0x3cf)]=null),this[_0x2842c6(0x487)]();}[_0x2914c(0x31e)](){const _0x301e7f=_0x2914c;var _0x15b372,_0x3d7e1b;const _0x301e2c=this['_configService'][_0x301e7f(0x36c)](gt),_0x597fb7=this[_0x301e7f(0x288)][_0x301e7f(0x36c)](L),_0x293bea=(_0x3d7e1b=(_0x15b372=_0x597fb7==null?void 0x0:_0x597fb7[_0x301e7f(0x5e8)])!=null?_0x15b372:_0x301e2c)!=null?_0x3d7e1b:Zt,_0x2c30cd=this[_0x301e7f(0x351)][_0x301e7f(0x4d4)](_0x293bea);return this[_0x301e7f(0x270)]=_0x2c30cd,_0x2c30cd;}['_tryEnsureSocket'](){const _0x573087=_0x2914c;var _0x56fc79,_0x449c82;try{const _0x24c5b1=(_0x449c82=(_0x56fc79=this[_0x573087(0x2f2)])!=null?_0x56fc79:this[_0x573087(0x270)])!=null?_0x449c82:this['_createSocket']();if(_0x24c5b1){const _0x15d112=_0x24c5b1[_0x573087(0x225)];_0x24c5b1[_0x573087(0x225)]=_0xfd0bb0=>(this['_rescheduleHeartbeat'](),_0x15d112[_0x573087(0x260)](_0x24c5b1,[_0xfd0bb0])),_0x24c5b1[_0x573087(0x5e6)][_0x573087(0x24b)](_0x20db28=>this[_0x573087(0x214)](_0x24c5b1,_0x20db28)),_0x24c5b1[_0x573087(0x51c)][_0x573087(0x2e1)](E['take'](0x1))[_0x573087(0x24b)](_0x4f43fa=>this[_0x573087(0x483)]['error'](_0x573087(0x478),_0x4f43fa)),_0x24c5b1[_0x573087(0x490)][_0x573087(0x2e1)](E[_0x573087(0x5ba)](0x1))[_0x573087(0x24b)](()=>{this['_onConnectionOpen'](_0x24c5b1);}),_0x24c5b1[_0x573087(0x256)]['pipe'](E[_0x573087(0x5ba)](0x1))[_0x573087(0x24b)](_0x94471a=>{const _0x2a3e53=_0x573087;this[_0x2a3e53(0x483)][_0x2a3e53(0x387)](_0x2a3e53(0x5db),_0x2a3e53(0x527),_0x94471a),this[_0x2a3e53(0x255)]();});}}catch(_0x55cb9c){this[_0x573087(0x483)][_0x573087(0x219)](_0x55cb9c),this[_0x573087(0x255)]();}}[_0x2914c(0x1e8)](_0x450774){const _0x24cce2=_0x2914c;this[_0x24cce2(0x483)]['debug'](_0x24cce2(0x5db),_0x24cce2(0x54f)),_0x450774[_0x24cce2(0x225)]({'cmd':b['HELLO']}),this[_0x24cce2(0x265)]();}['_listenToOfflineEvent'](){const _0xf14f07=_0x2914c;window['addEventListener']('offline',()=>this[_0xf14f07(0x399)]());}[_0x2914c(0x399)](){const _0x50d111=_0x2914c;this[_0x50d111(0x1f4)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x50d111(0x49a)](H[_0x50d111(0x2f5)]),this['_socket$'][_0x50d111(0x49a)](null),this['_clearTimeoutTimer'](),this[_0x50d111(0x22e)]();}[_0x2914c(0x255)](){const _0x34770c=_0x2914c;var _0x590173;this['_onOffline'](),this[_0x34770c(0x30b)]<((_0x590173=this[_0x34770c(0x288)]['getConfig'](It))!=null?_0x590173:ts)?(this[_0x34770c(0x541)][_0x34770c(0x408)]({'key':_0x34770c(0x49e),'type':X[_0x34770c(0x1b2)][_0x34770c(0x26c)],'content':this['_localeService']['t'](_0x34770c(0x3ca))}),this[_0x34770c(0x487)]()):this[_0x34770c(0x541)][_0x34770c(0x408)]({'key':_0x34770c(0x49e),'type':X['MessageType']['Error'],'content':this[_0x34770c(0x304)]['t'](_0x34770c(0x2ea))});}[_0x2914c(0x2a0)](){const _0xa4fd8e=_0x2914c,_0x3f9773=()=>{this['_socket']||this['reconnect']();},_0x18cefc=()=>{const _0x31d79b=_0x190c;this['_socket']||document[_0x31d79b(0x54a)]===_0x31d79b(0x25c)||this[_0x31d79b(0x376)]();};window['addEventListener'](_0xa4fd8e(0x3f6),_0x3f9773),document['addEventListener'](_0xa4fd8e(0x3b4),_0x18cefc);}[_0x2914c(0x487)](){const _0x4e6020=_0x2914c;var _0x552700;const _0x23b61e=this[_0x4e6020(0x30b)],_0x163c1d=this[_0x4e6020(0x288)][_0x4e6020(0x36c)](L),_0x13abef=_0x23b61e===0x0?0x0:((_0x552700=_0x163c1d==null?void 0x0:_0x163c1d['retryConnectingInterval'])!=null?_0x552700:es)*0x2**_0x23b61e;this[_0x4e6020(0x3cf)]=window[_0x4e6020(0x322)](()=>{const _0x24680e=_0x4e6020;clearTimeout(this[_0x24680e(0x3cf)]),this['_retryConnectingTimer']=null,this[_0x24680e(0x28a)]();},_0x13abef),this['_retryCount']+=0x1;}['_onMessage'](_0x4c9a42,_0x2f53ee){const _0x45391d=_0x2914c,{cmd:_0x17d30d}=_0x2f53ee;_0x17d30d===b[_0x45391d(0x533)]&&!this['_socketReady']&&(_0x4c9a42[_0x45391d(0x3ad)]=_0x2f53ee[_0x45391d(0x498)]['memberID'],this[_0x45391d(0x5c7)][_0x45391d(0x49a)](_0x4c9a42),this[_0x45391d(0x386)]['next'](H[_0x45391d(0x475)]),this[_0x45391d(0x1f4)]=!0x0,this[_0x45391d(0x270)]=null),_0x17d30d===b[_0x45391d(0x58e)]&&this[_0x45391d(0x268)](),this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x35b09a=_0x2914c;var _0x47241e;this[_0x35b09a(0x22e)](),this[_0x35b09a(0x4ac)]=window[_0x35b09a(0x322)](()=>this[_0x35b09a(0x398)](),(_0x47241e=this[_0x35b09a(0x288)][_0x35b09a(0x36c)](mt))!=null?_0x47241e:Qt);}[_0x2914c(0x398)](){const _0x35a394=_0x2914c;this[_0x35a394(0x2f2)]['send']({'cmd':b[_0x35a394(0x58e)]}),this[_0x35a394(0x3ee)]();}[_0x2914c(0x3ee)](){const _0x1189b0=_0x2914c;var _0xd51128;this[_0x1189b0(0x29f)]=window[_0x1189b0(0x322)](()=>this[_0x1189b0(0x255)](),(_0xd51128=this[_0x1189b0(0x288)]['getConfig'](Ge))!=null?_0xd51128:ft);}[_0x2914c(0x22e)](){const _0x24a54a=_0x2914c;this[_0x24a54a(0x4ac)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x24a54a(0x4ac)]=null);}[_0x2914c(0x268)](){const _0x519a5f=_0x2914c;this[_0x519a5f(0x29f)]!=null&&(clearTimeout(this[_0x519a5f(0x29f)]),this[_0x519a5f(0x29f)]=null);}},exports[_0x2914c(0x4fa)]=Cs([Z(0x0,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),Z(0x1,a['Inject'](a['LocaleService'])),Z(0x2,A['IMessageService']),Z(0x3,a[_0x2914c(0x485)]),Z(0x4,a[_0x2914c(0x4b3)]),Z(0x5,Ke)],exports['CollaborationSessionService']);var O=[];for(var Ue=0x0;Ue<0x100;++Ue)O['push']((Ue+0x100)['toString'](0x10)['slice'](0x1));function Es(_0xc58dce,_0x195fe4=0x0){const _0x4b51b0=_0x2914c;return(O[_0xc58dce[_0x195fe4+0x0]]+O[_0xc58dce[_0x195fe4+0x1]]+O[_0xc58dce[_0x195fe4+0x2]]+O[_0xc58dce[_0x195fe4+0x3]]+'-'+O[_0xc58dce[_0x195fe4+0x4]]+O[_0xc58dce[_0x195fe4+0x5]]+'-'+O[_0xc58dce[_0x195fe4+0x6]]+O[_0xc58dce[_0x195fe4+0x7]]+'-'+O[_0xc58dce[_0x195fe4+0x8]]+O[_0xc58dce[_0x195fe4+0x9]]+'-'+O[_0xc58dce[_0x195fe4+0xa]]+O[_0xc58dce[_0x195fe4+0xb]]+O[_0xc58dce[_0x195fe4+0xc]]+O[_0xc58dce[_0x195fe4+0xd]]+O[_0xc58dce[_0x195fe4+0xe]]+O[_0xc58dce[_0x195fe4+0xf]])[_0x4b51b0(0x395)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x4ce029=_0x2914c;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x4ce029(0x550)]&&crypto[_0x4ce029(0x550)]['bind'](crypto),!Se))throw new Error(_0x4ce029(0x4f8));return Se(bs);}var Rs=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x2914c(0x419)][_0x2914c(0x310)](crypto);const st={'randomUUID':Rs};function Os(_0x3010c4,_0x28d139,_0x27c65c){const _0x2b3077=_0x2914c;if(st[_0x2b3077(0x419)]&&!_0x28d139&&!_0x3010c4)return st[_0x2b3077(0x419)]();_0x3010c4=_0x3010c4||{};var _0x23c995=_0x3010c4['random']||(_0x3010c4[_0x2b3077(0x240)]||Ts)();return _0x23c995[0x6]=_0x23c995[0x6]&0xf|0x40,_0x23c995[0x8]=_0x23c995[0x8]&0x3f|0x80,Es(_0x23c995);}var Ds=Object[_0x2914c(0x4a2)],ys=Object[_0x2914c(0x5df)],Us=(_0x305add,_0x51445c,_0x3791c7,_0x35c028)=>{const _0x28a524=_0x2914c;for(var _0x32c5a4=_0x35c028>0x1?void 0x0:_0x35c028?ys(_0x51445c,_0x3791c7):_0x51445c,_0x17ffa6=_0x305add[_0x28a524(0x286)]-0x1,_0xa169be;_0x17ffa6>=0x0;_0x17ffa6--)(_0xa169be=_0x305add[_0x17ffa6])&&(_0x32c5a4=(_0x35c028?_0xa169be(_0x51445c,_0x3791c7,_0x32c5a4):_0xa169be(_0x32c5a4))||_0x32c5a4);return _0x35c028&&_0x32c5a4&&Ds(_0x51445c,_0x3791c7,_0x32c5a4),_0x32c5a4;},Pe=(_0x586860,_0xd08837)=>(_0x12f583,_0x2220b9)=>_0xd08837(_0x12f583,_0x2220b9,_0x586860);let fe=class{constructor(_0x1a5795,_0x27ab3e,_0x314600){const _0x5c19fd=_0x2914c;this['_injector']=_0x1a5795,this[_0x5c19fd(0x249)]=_0x27ab3e,this[_0x5c19fd(0x2a5)]=_0x314600;}[_0x2914c(0x307)](_0x4047ec){const _0x4f43bf=_0x2914c;this[_0x4f43bf(0x50b)](_0x4047ec),this[_0x4f43bf(0x366)](_0x4047ec);}[_0x2914c(0x3fd)](_0x5453f2){const _0x56bf3d=_0x2914c,{unitID:_0x510c98}=_0x5453f2,_0x457058=this[_0x56bf3d(0x2a5)]['getRenderById'](_0x510c98)['with'](N[_0x56bf3d(0x35f)]),{redoCache:_0x2f1cab}=_0x457058['getUndoRedoMutationParamsCache']();if(_0x2f1cab[_0x56bf3d(0x286)]===0x0)return _0x5453f2;let _0x221e92=a[_0x56bf3d(0x27f)][_0x56bf3d(0x216)](_0x5453f2[_0x56bf3d(0x433)][0x0]);for(let _0x23923c=0x0;_0x23923c<_0x2f1cab[_0x56bf3d(0x286)];_0x23923c++){const _0x51de20={'id':_0x56bf3d(0x2c7),'params':{..._0x2f1cab[_0x23923c]}},_0x1aba72=this[_0x56bf3d(0x249)]['transformMutation'](_0x221e92,_0x51de20,!0x1);if(_[_0x56bf3d(0x44b)](_0x1aba72))throw _0x1aba72[_0x56bf3d(0x219)];_0x221e92=_0x1aba72[_0x56bf3d(0x39a)];}return{...a[_0x56bf3d(0x27f)][_0x56bf3d(0x216)](_0x5453f2),'mutations':[_0x221e92]};}[_0x2914c(0x50b)](_0x5e50f9){const _0x2ed66a=_0x2914c,{unitID:_0x374e19}=_0x5e50f9,_0x3290b5=this['_renderManagerService'][_0x2ed66a(0x21c)](_0x374e19)['with'](N[_0x2ed66a(0x35f)]),{undoCache:_0x3eca28,redoCache:_0x36c5fc}=_0x3290b5['getUndoRedoMutationParamsCache']();if(_0x3eca28[_0x2ed66a(0x286)]===0x0||_0x36c5fc['length']===0x0)return;const _0x34d8c9=[],_0x1a64bc=[];let _0x5bed40=a[_0x2ed66a(0x27f)]['deepClone'](_0x5e50f9['mutations'][0x0]),_0x29e256=a[_0x2ed66a(0x27f)][_0x2ed66a(0x216)](_0x5e50f9['mutations'][0x0]);for(let _0x36c4c4=_0x3eca28[_0x2ed66a(0x286)]-0x1;_0x36c4c4>=0x0;_0x36c4c4--){const _0x4882ed={'id':'doc.mutation.rich-text-editing','params':{..._0x3eca28[_0x36c4c4]}},_0x1ce18d={'id':_0x2ed66a(0x2c7),'params':{..._0x36c5fc[_0x36c4c4]}},_0x46f7d5=this[_0x2ed66a(0x249)][_0x2ed66a(0x2ce)](_0x5bed40,_0x4882ed,!0x1),_0x40936a=this[_0x2ed66a(0x249)]['transformMutation'](_0x29e256,_0x1ce18d,!0x1);if(_[_0x2ed66a(0x44b)](_0x46f7d5))throw _0x46f7d5['error'];if(_[_0x2ed66a(0x44b)](_0x40936a))throw _0x40936a['error'];_0x34d8c9[_0x2ed66a(0x22f)](_0x46f7d5[_0x2ed66a(0x2c2)]['params']),_0x1a64bc['unshift'](_0x40936a['m2Prime']['params']),_0x5bed40=_0x46f7d5[_0x2ed66a(0x39a)],_0x29e256=_0x40936a[_0x2ed66a(0x39a)];}_0x3290b5[_0x2ed66a(0x3e8)]({'undoCache':_0x34d8c9,'redoCache':_0x1a64bc});}['_transformPreviousActiveRange'](_0x51d13f){const _0x45e2eb=_0x2914c,{unitID:_0x52ecd3}=_0x51d13f,_0x523b51=this[_0x45e2eb(0x2a5)][_0x45e2eb(0x21c)](_0x52ecd3)[_0x45e2eb(0x466)](N[_0x45e2eb(0x35f)]),_0xda976b=_0x523b51[_0x45e2eb(0x1ce)]();if(_0xda976b==null)return;const _0x13ff12=[{'id':_0x45e2eb(0x2c7),'params':{'unitId':_0x51d13f[_0x45e2eb(0x3a9)],'actions':null,'textRanges':[_0xda976b]}}],_0x2f4100=this['_transformService'][_0x45e2eb(0x280)](_0x51d13f,_0x13ff12);if(!_[_0x45e2eb(0x48c)](_0x2f4100))throw _0x2f4100[_0x45e2eb(0x219)];const _0x2f5113=_0x2f4100[_0x45e2eb(0x2c2)][0x0][_0x45e2eb(0x3af)]['textRanges'];Array[_0x45e2eb(0x5dd)](_0x2f5113)&&_0x2f5113['length']&&_0x523b51[_0x45e2eb(0x55f)](_0x2f5113[0x0]);}};fe=Us([Pe(0x0,a[_0x2914c(0x5d4)](a['Injector'])),Pe(0x1,_['ITransformService']),Pe(0x2,D['IRenderManagerService'])],fe);var Ps=Object[_0x2914c(0x4a2)],ws=Object[_0x2914c(0x5df)],Ns=(_0x3eb7ec,_0x1a8a93,_0x236ea0,_0x232d8c)=>{const _0x59406f=_0x2914c;for(var _0x2d6de9=_0x232d8c>0x1?void 0x0:_0x232d8c?ws(_0x1a8a93,_0x236ea0):_0x1a8a93,_0x389875=_0x3eb7ec[_0x59406f(0x286)]-0x1,_0x1f223b;_0x389875>=0x0;_0x389875--)(_0x1f223b=_0x3eb7ec[_0x389875])&&(_0x2d6de9=(_0x232d8c?_0x1f223b(_0x1a8a93,_0x236ea0,_0x2d6de9):_0x1f223b(_0x2d6de9))||_0x2d6de9);return _0x232d8c&&_0x2d6de9&&Ps(_0x1a8a93,_0x236ea0,_0x2d6de9),_0x2d6de9;},ce=(_0x16f290,_0x1b2173)=>(_0x834341,_0x109f7a)=>_0x1b2173(_0x834341,_0x109f7a,_0x16f290);exports[_0x2914c(0x467)]=class extends a['Disposable']{constructor(_0x5266e1,_0x3c061a,_0x49129c,_0x58065c,_0x509a1f){const _0x2d833d=_0x2914c;super(),u(this,_0x2d833d(0x264),new Map()),u(this,_0x2d833d(0x48a),new Map()),u(this,_0x2d833d(0x514),!0x1),(this['_configService']=_0x5266e1,this[_0x2d833d(0x2bc)]=_0x3c061a,this[_0x2d833d(0x4de)]=_0x49129c,this[_0x2d833d(0x304)]=_0x58065c,this['_revisionService']=_0x509a1f,this['_setupBeforeClosingHandler']());}[_0x2914c(0x53d)](){const _0x5ec999=_0x2914c;this[_0x5ec999(0x514)]=!0x0;}[_0x2914c(0x321)](){const _0x16e7dc=_0x2914c;this[_0x16e7dc(0x514)]=!0x1;}['dispose'](){const _0x41fe20=_0x2914c;this['exhaustSavingTask']()[_0x41fe20(0x22c)](()=>super[_0x41fe20(0x377)]());}async[_0x2914c(0x3aa)](_0x24829a){const _0x4345eb=_0x2914c;return this[_0x4345eb(0x514)]?null:this[_0x4345eb(0x2bc)][_0x4345eb(0x5a2)](it(_0x24829a));}async[_0x2914c(0x3bd)](_0x1dbe4c,_0x2e014a){const _0x8ffda8=_0x2914c;return!!this['_localStorageService'][_0x8ffda8(0x512)](_0x1dbe4c,_0x2e014a);}[_0x2914c(0x3cc)](_0xad8f53,_0x46093a,_0x1e454c,_0x128b18){const _0x29d557=_0x2914c,_0xc2ea53=this[_0x29d557(0x5ac)][_0x29d557(0x27c)](_0xad8f53);this[_0x29d557(0x264)][_0x29d557(0x41d)](_0xad8f53,{'unitID':_0xad8f53,'type':_0x46093a,'awaitingChangeset':_0x1e454c,'mutations':_0x128b18,'rev':_0xc2ea53}),this[_0x29d557(0x48a)][_0x29d557(0x5bd)](_0xad8f53)||this['_scheduleSaving'](_0xad8f53);}[_0x2914c(0x546)](_0x55cbcd){const _0x2236b3=_0x2914c,_0x136655=this[_0x2236b3(0x274)]();_0x136655===0x0?this['_saveCache'](_0x55cbcd):this[_0x2236b3(0x48a)][_0x2236b3(0x41d)](_0x55cbcd,setTimeout(()=>this[_0x2236b3(0x5a1)](_0x55cbcd),_0x136655));}[_0x2914c(0x274)](){const _0x43eafc=_0x2914c;var _0x42188d;return(_0x42188d=this['_configService'][_0x43eafc(0x36c)](pt))!=null?_0x42188d:ss;}[_0x2914c(0x5a1)](_0x5de5e8){const _0x3ea96c=_0x2914c,_0x27a81a=this[_0x3ea96c(0x48a)][_0x3ea96c(0x24c)](_0x5de5e8);return _0x27a81a!==void 0x0&&window[_0x3ea96c(0x417)](_0x27a81a),this[_0x3ea96c(0x2bc)][_0x3ea96c(0x512)](it(_0x5de5e8),this[_0x3ea96c(0x264)][_0x3ea96c(0x24c)](_0x5de5e8))[_0x3ea96c(0x22c)](()=>this[_0x3ea96c(0x48a)][_0x3ea96c(0x2fd)](_0x5de5e8));}async[_0x2914c(0x57b)](){const _0x5a2372=_0x2914c,_0x3caf8e=[];this['_saveTaskMap'][_0x5a2372(0x1ca)]((_0x3d4573,_0x40e01d)=>{const _0x114b2c=_0x5a2372;window[_0x114b2c(0x417)](_0x3d4573),_0x3caf8e[_0x114b2c(0x4ed)](this['_saveCache'](_0x40e01d)[_0x114b2c(0x22c)](()=>{const _0x434482=_0x114b2c;this[_0x434482(0x48a)][_0x434482(0x2fd)](_0x40e01d);}));}),await Promise['all'](_0x3caf8e);}[_0x2914c(0x4a8)](){const _0x27a2d2=_0x2914c;this[_0x27a2d2(0x449)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x53184e=_0x27a2d2;if(this[_0x53184e(0x48a)][_0x53184e(0x585)])return this[_0x53184e(0x304)]['t'](_0x53184e(0x568));}));}},exports[_0x2914c(0x467)]=Ns([ce(0x0,a[_0x2914c(0x4b3)]),ce(0x1,a[_0x2914c(0x5cb)]),ce(0x2,A[_0x2914c(0x32d)]),ce(0x3,a[_0x2914c(0x5d4)](a[_0x2914c(0x372)])),ce(0x4,a[_0x2914c(0x5d4)](_[_0x2914c(0x1fc)]))],exports['LocalCacheService']);function it(_0x1e966f){const _0x4a8704=_0x2914c;return _0x4a8704(0x1fd)+_0x1e966f;}var Ms=Object['defineProperty'],As=Object[_0x2914c(0x5df)],Ls=(_0x2df05a,_0x138d40,_0x6cb2cc,_0xc3eef3)=>{const _0x310874=_0x2914c;for(var _0x50882f=_0xc3eef3>0x1?void 0x0:_0xc3eef3?As(_0x138d40,_0x6cb2cc):_0x138d40,_0x45f0f9=_0x2df05a[_0x310874(0x286)]-0x1,_0x4f2e4e;_0x45f0f9>=0x0;_0x45f0f9--)(_0x4f2e4e=_0x2df05a[_0x45f0f9])&&(_0x50882f=(_0xc3eef3?_0x4f2e4e(_0x138d40,_0x6cb2cc,_0x50882f):_0x4f2e4e(_0x50882f))||_0x50882f);return _0xc3eef3&&_0x50882f&&Ms(_0x138d40,_0x6cb2cc,_0x50882f),_0x50882f;},we=(_0x2e35b1,_0x144e3)=>(_0x148317,_0x35080e)=>_0x144e3(_0x148317,_0x35080e,_0x2e35b1);function js(_0x49c0cf){const _0x1d4b41=_0x2914c,{unitID:_0xaed3ec,mutations:_0x4e6d72}=_0x49c0cf;return{'unitId':_0xaed3ec,'subUnitId':_0x4e6d72[0x0][_0x1d4b41(0x3af)][_0x1d4b41(0x471)]};}let Ie=class{constructor(_0x990e9c,_0x55907c,_0x38285f){const _0x3af00b=_0x2914c;this[_0x3af00b(0x311)]=_0x990e9c,this[_0x3af00b(0x249)]=_0x55907c,this[_0x3af00b(0x5be)]=_0x38285f;}['transformSelections'](_0x512b26){const _0x44caf1=_0x2914c;var _0x375da8,_0x32f7fa,_0x5dbd02,_0x53294e;const _0x460190=this[_0x44caf1(0x311)][_0x44caf1(0x24c)](C[_0x44caf1(0x1e4)]),{unitId:_0x3e967d,subUnitId:_0x54140c}=js(_0x512b26),_0x109293=_0x460190[_0x44caf1(0x3dc)](_0x3e967d)['getCurrentSelections'](),_0x257910=(_0x32f7fa=(_0x375da8=this[_0x44caf1(0x5be)][_0x44caf1(0x244)](_0x3e967d))==null?void 0x0:_0x375da8[_0x44caf1(0x4cf)]())==null?void 0x0:_0x32f7fa[_0x44caf1(0x567)]();if(_0x109293['length']===0x0||!_0x3e967d||!_0x54140c)return;const _0x447131=[{'id':C[_0x44caf1(0x460)]['id'],'params':{'unitId':_0x3e967d,'subUnitId':_0x257910,'selections':a[_0x44caf1(0x27f)]['deepClone'](_0x109293)}}],_0x570570=this['_transformService'][_0x44caf1(0x280)](_0x512b26,_0x447131);if(!_[_0x44caf1(0x48c)](_0x570570))throw _0x570570[_0x44caf1(0x219)];const _0x166f77=(_0x53294e=(_0x5dbd02=_0x570570[_0x44caf1(0x2c2)][0x0])==null?void 0x0:_0x5dbd02[_0x44caf1(0x3af)])==null?void 0x0:_0x53294e[_0x44caf1(0x491)];if(Array['isArray'](_0x166f77)&&_0x166f77[_0x44caf1(0x286)]){if(_0x166f77[_0x44caf1(0x286)]===_0x447131[0x0][_0x44caf1(0x3af)][_0x44caf1(0x491)]['length']&&_0x166f77[_0x44caf1(0x5b0)]((_0x4f1560,_0x3e2a31)=>a[_0x44caf1(0x33a)]['equals'](_0x4f1560[_0x44caf1(0x2f8)],_0x447131[0x0][_0x44caf1(0x3af)][_0x44caf1(0x491)][_0x3e2a31]['range'])))return;this[_0x44caf1(0x311)][_0x44caf1(0x24c)](a[_0x44caf1(0x1d2)])[_0x44caf1(0x3f1)](C['SetSelectionsOperation']['id'],{'unitId':_0x3e967d,'subUnitId':_0x257910,'selections':_0x166f77});}}};Ie=Ls([we(0x0,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),we(0x1,_[_0x2914c(0x456)]),we(0x2,a[_0x2914c(0x202)])],Ie);const Re=a[_0x2914c(0x4e8)]('univer-pro.collaboration-client.single-active-unit-service');var Dt=(_0xa74d5=>(_0xa74d5[_0xa74d5[_0x2914c(0x3dd)]=0x0]=_0x2914c(0x3dd),_0xa74d5[_0xa74d5[_0x2914c(0x4d3)]=0x1]=_0x2914c(0x4d3),_0xa74d5))(Dt||{});const nt=0x7530,rt=_0x2914c(0x4ee);class $s extends a[_0x2914c(0x38b)]{constructor(){const _0x42a0c5=_0x2914c;super(),u(this,'_id',a[_0x42a0c5(0x27f)][_0x42a0c5(0x5d5)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0x42a0c5(0x4c1),new Map()),u(this,_0x42a0c5(0x46e),null),u(this,_0x42a0c5(0x3d3),new Map()),u(this,_0x42a0c5(0x5b1),new Map()),this[_0x42a0c5(0x1f9)]();}[_0x2914c(0x377)](){const _0x39ff73=_0x2914c;super[_0x39ff73(0x377)](),this[_0x39ff73(0x3d3)]['forEach']((_0x1a0556,_0x4cc9de)=>this[_0x39ff73(0x439)](_0x4cc9de)),this['_heartbeatTimer']&&window[_0x39ff73(0x58f)](this[_0x39ff73(0x46e)]);}[_0x2914c(0x222)](_0x4b6c23){const _0x25448f=_0x2914c;return this[_0x25448f(0x207)](_0x4b6c23)['pipe'](v[_0x25448f(0x5cc)]());}[_0x2914c(0x273)](_0x3bbf87){const _0x392aae=_0x2914c;this['_selfUnitIDs'][_0x392aae(0x585)]===0x0&&this[_0x392aae(0x504)](),this[_0x392aae(0x308)][_0x392aae(0x287)](_0x3bbf87),this[_0x392aae(0x224)]({'type':0x0,'memberID':this[_0x392aae(0x315)],'unitIDs':[_0x3bbf87],'isForwarded':!0x1});}[_0x2914c(0x33c)](_0x578a9a){const _0x4d5b4f=_0x2914c;this[_0x4d5b4f(0x308)]['delete'](_0x578a9a),this[_0x4d5b4f(0x308)][_0x4d5b4f(0x585)]===0x0&&this[_0x4d5b4f(0x46e)]&&window[_0x4d5b4f(0x58f)](this[_0x4d5b4f(0x46e)]);}[_0x2914c(0x1f9)](){const _0x345941=_0x2914c;this[_0x345941(0x449)](a[_0x345941(0x1d3)](v[_0x345941(0x556)](window,_0x345941(0x212))[_0x345941(0x24b)](_0x1dcacd=>{const _0x10d858=_0x345941;if(_0x1dcacd[_0x10d858(0x26d)]!==rt||!_0x1dcacd['newValue'])return;const _0x49c05c=JSON[_0x10d858(0x2aa)](_0x1dcacd[_0x10d858(0x26f)]);this[_0x10d858(0x528)](_0x49c05c);}))),window[_0x345941(0x5c8)](_0x345941(0x2e8),()=>this[_0x345941(0x224)]({'type':0x1,'memberID':this[_0x345941(0x315)],'unitIDs':Array[_0x345941(0x2ca)](this[_0x345941(0x308)])}));}[_0x2914c(0x528)](_0x3a2f21){const _0x2f438a=_0x2914c;switch(_0x3a2f21[_0x2f438a(0x355)]){case 0x0:this['_handleJoinEvent'](_0x3a2f21);break;case 0x1:this[_0x2f438a(0x2e9)](_0x3a2f21);break;case 0x2:this[_0x2f438a(0x4fe)](_0x3a2f21);break;}}[_0x2914c(0x5d1)](_0x34b6d4){const _0x57e0bb=_0x2914c,{unitIDs:_0x548607,memberID:_0x13a740,isForwarded:_0x405412}=_0x34b6d4;_0x548607[_0x57e0bb(0x1ca)](_0x5878bd=>{const _0x33fa79=_0x57e0bb;if(!_0x405412&&this[_0x33fa79(0x4c1)][_0x33fa79(0x5bd)](_0x5878bd)&&this[_0x33fa79(0x207)](_0x5878bd)[_0x33fa79(0x49a)](0x1),!this['_unitOnClients'][_0x33fa79(0x5bd)](_0x5878bd)||!this[_0x33fa79(0x4c1)][_0x33fa79(0x24c)](_0x5878bd)[_0x33fa79(0x5bd)](_0x13a740)){const _0x28cb28=this[_0x33fa79(0x4c1)][_0x33fa79(0x24c)](_0x5878bd)||new Set();_0x28cb28['add'](_0x13a740),this['_unitOnClients']['set'](_0x5878bd,_0x28cb28),this[_0x33fa79(0x1bd)](_0x13a740);}}),_0x405412||this[_0x57e0bb(0x224)]({'type':0x0,'memberID':this[_0x57e0bb(0x315)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2914c(0x1bd)](_0xa43cd6){const _0x191aa4=_0x2914c;this[_0x191aa4(0x439)](_0xa43cd6);const _0x27c1ba=window[_0x191aa4(0x322)](()=>{const _0x787cd5=_0x191aa4;this['_unitOnClients'][_0x787cd5(0x1ca)](_0x2f5af2=>{_0x2f5af2['delete'](_0xa43cd6);});},nt*0x2);this['_clearOtherTimers'][_0x191aa4(0x41d)](_0xa43cd6,_0x27c1ba);}['_removeClearOtherTimer'](_0x334693){const _0x328168=_0x2914c;if(this[_0x328168(0x3d3)]['has'](_0x334693)){const _0x1b4bfa=this[_0x328168(0x3d3)]['get'](_0x334693);_0x1b4bfa&&window[_0x328168(0x417)](_0x1b4bfa),this[_0x328168(0x3d3)][_0x328168(0x41d)](_0x334693,null);}}['_handleLeaveEvent'](_0x3ac71c){const _0x573ec1=_0x2914c,{memberID:_0x19d7ce,unitIDs:_0x51f8d3}=_0x3ac71c;_0x51f8d3['forEach'](_0x395074=>{const _0x421039=_0x190c;var _0x112ff3;const _0x5acf28=this[_0x421039(0x4c1)][_0x421039(0x24c)](_0x395074);_0x5acf28&&(_0x5acf28['delete'](_0x19d7ce),(_0x112ff3=this[_0x421039(0x207)](_0x395074))==null||_0x112ff3['next'](_0x5acf28[_0x421039(0x585)]===0x0?0x0:0x1));}),this[_0x573ec1(0x439)](_0x19d7ce);}[_0x2914c(0x4fe)](_0x55b0ca){const _0x19d57f=_0x2914c;this[_0x19d57f(0x1bd)](_0x55b0ca[_0x19d57f(0x3ad)]);}['_send'](_0x5c5965){const _0x3d5036=_0x2914c;localStorage[_0x3d5036(0x512)](rt,JSON['stringify'](_0x5c5965));}[_0x2914c(0x504)](){const _0x10cb90=_0x2914c;this[_0x10cb90(0x46e)]=window[_0x10cb90(0x21a)](()=>{const _0x2e89b3=_0x10cb90;this[_0x2e89b3(0x224)]({'type':0x2,'memberID':this[_0x2e89b3(0x315)]});},nt);}[_0x2914c(0x207)](_0x2c2f69){const _0x134397=_0x2914c;return this['_unitStatus']['has'](_0x2c2f69)||this['_unitStatus'][_0x134397(0x41d)](_0x2c2f69,new v[(_0x134397(0x5b4))](0x0)),this['_unitStatus'][_0x134397(0x24c)](_0x2c2f69);}}function yt(_0x1a5968){let _0x542cea='';for(const _0x4eda6d of _0x1a5968){const {startOffset:_0x3adf0f,endOffset:_0x354961,isActive:_0x3be2df}=_0x4eda6d;_0x542cea['length']&&(_0x542cea+=','),_0x542cea+=_0x3adf0f+':'+_0x354961+':'+(_0x3be2df?'1':'0');}return _0x542cea;}function Hs(_0x450115){const _0x5c6fe5=_0x2914c,_0x33d129=_0x450115['split'](','),_0x45c04c=[];for(const _0x590eae of _0x33d129){const [_0x36d064,_0x3995ea,_0x2a2f64]=_0x590eae[_0x5c6fe5(0x3a7)](':');_0x45c04c[_0x5c6fe5(0x4ed)]({'startOffset':Number(_0x36d064),'endOffset':Number(_0x3995ea),'collapsed':_0x36d064===_0x3995ea,'isActive':_0x2a2f64==='1'});}return _0x45c04c['some'](_0x10d2ac=>_0x10d2ac[_0x5c6fe5(0x4bc)])||(_0x45c04c[0x0][_0x5c6fe5(0x4bc)]=!0x0),_0x45c04c;}class qe extends a[_0x2914c(0x325)]{constructor(){const _0xfc52e9=_0x2914c;super(...arguments),u(this,'_collabCursorState$',new v[(_0xfc52e9(0x5b4))](null)),u(this,_0xfc52e9(0x4f4),this[_0xfc52e9(0x43d)][_0xfc52e9(0x33d)]());}[_0x2914c(0x5b9)](_0x1f160a){const _0x9e908c=_0x2914c,{unitID:_0x16f0e7,memberID:_0x455b57,textRanges:_0x5b282e}=_0x1f160a,_0x4c4a55=yt(_0x5b282e),_0x514097={'unitID':_0x16f0e7,'memberID':_0x455b57,'selection':_0x4c4a55};this[_0x9e908c(0x43d)][_0x9e908c(0x49a)](_0x514097);}}var xs=Object[_0x2914c(0x4a2)],ks=Object[_0x2914c(0x5df)],Bs=(_0x35af37,_0x4149b2,_0xf43e2b,_0x53d9c1)=>{const _0x538e59=_0x2914c;for(var _0x1813db=_0x53d9c1>0x1?void 0x0:_0x53d9c1?ks(_0x4149b2,_0xf43e2b):_0x4149b2,_0x33ffd0=_0x35af37[_0x538e59(0x286)]-0x1,_0x518dac;_0x33ffd0>=0x0;_0x33ffd0--)(_0x518dac=_0x35af37[_0x33ffd0])&&(_0x1813db=(_0x53d9c1?_0x518dac(_0x4149b2,_0xf43e2b,_0x1813db):_0x518dac(_0x1813db))||_0x1813db);return _0x53d9c1&&_0x1813db&&xs(_0x4149b2,_0xf43e2b,_0x1813db),_0x1813db;},ot=(_0x3958eb,_0x410c0c)=>(_0x8ca49b,_0x367faf)=>_0x410c0c(_0x8ca49b,_0x367faf,_0x3958eb);let pe=class{constructor(_0x55f2b4,_0x2cfea4){const _0x5d0da4=_0x2914c;this[_0x5d0da4(0x311)]=_0x55f2b4,this[_0x5d0da4(0x249)]=_0x2cfea4;}[_0x2914c(0x1f8)](_0x15bf62){const _0x5bf074=_0x2914c;var _0x26f697;const _0x5a77b3=this[_0x5bf074(0x311)][_0x5bf074(0x24c)](se['DocSelectionManagerService']),_0x4747c9=(_0x26f697=_0x5a77b3[_0x5bf074(0x54d)]())!=null?_0x26f697:[];if(_0x4747c9[_0x5bf074(0x286)]===0x0)return;const _0x3a9f20=[{'id':_0x5bf074(0x2c7),'params':{'unitId':_0x15bf62[_0x5bf074(0x3a9)],'actions':null,'textRanges':_0x4747c9}}],_0x1538f8=this[_0x5bf074(0x249)][_0x5bf074(0x280)](_0x15bf62,_0x3a9f20);if(!_[_0x5bf074(0x48c)](_0x1538f8))throw _0x1538f8[_0x5bf074(0x219)];const _0x3b4076=_0x1538f8[_0x5bf074(0x2c2)][0x0][_0x5bf074(0x3af)][_0x5bf074(0x301)];Array['isArray'](_0x3b4076)&&_0x3b4076[_0x5bf074(0x286)]&&_0x5a77b3[_0x5bf074(0x335)](_0x3b4076,!0x1);}};pe=Bs([ot(0x0,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),ot(0x1,_[_0x2914c(0x456)])],pe);const Vs=new Set([C[_0x2914c(0x1c7)]['id']]);function at(_0x193847,_0x182e11,_0x541a98,_0x3cd652,_0x25c760){const _0x3b9e2a=_0x2914c;var _0x42559f,_0x80a836,_0x5ce2f0,_0x5e9959;const _0x21ab2d=[];for(const _0x5cdbeb of _0x193847)if(Vs[_0x3b9e2a(0x5bd)](_0x5cdbeb['id'])){if(_0x21ab2d[_0x3b9e2a(0x286)]>0x0)break;_0x21ab2d[_0x3b9e2a(0x4ed)](_0x5cdbeb);break;}else _0x21ab2d['push'](_0x5cdbeb);const _0x447367=(_0x80a836=(_0x42559f=_0x25c760[_0x3b9e2a(0x2d9)]())==null?void 0x0:_0x42559f[_0x3b9e2a(0x5e7)])!=null?_0x80a836:_0x3b9e2a(0x532),_0x1f3b3f=(_0x5e9959=(_0x5ce2f0=_0x25c760[_0x3b9e2a(0x2d9)]())==null?void 0x0:_0x5ce2f0[_0x3b9e2a(0x3ad)])!=null?_0x5e9959:'unknown';return{'changeset':{'unitID':_0x182e11,'type':_[_0x3b9e2a(0x3a1)](_0x541a98[_0x3b9e2a(0x39c)](_0x182e11)),'baseRev':_0x3cd652[_0x3b9e2a(0x27c)](_0x182e11),'revision':0x0,'userID':_0x447367,'memberID':_0x1f3b3f,'mutations':_0x21ab2d},'pendingMutations':_0x193847[_0x3b9e2a(0x42f)](_0x21ab2d['length'])};}function Ws(_0x2f9dcf,_0x31001b,_0x53e1cd,_0x4e8a6b,_0x1cdae3){const _0x2e844c=_0x2914c;var _0x4004ab,_0x1ca1f2,_0x17701f,_0x3e0570;const _0x43f2b4=[_0x2f9dcf[_0x2e844c(0x241)]((_0x42ac92,_0x54d982)=>{const _0x595180=_0x2e844c;var _0x40a18b;const {id:_0x272747}=_0x42ac92,{id:_0x4ee188,type:_0x3e76c5}=_0x54d982,_0x120768=(_0x40a18b=_0x42ac92[_0x595180(0x3af)])!=null?_0x40a18b:{'actions':null},_0x2b969c=_0x54d982[_0x595180(0x3af)];if(_0x272747&&_0x272747!==_0x4ee188)throw new Error(_0x595180(0x4cb)+_0x272747+_0x595180(0x209)+_0x4ee188+'.');return{..._0x42ac92,'id':_0x4ee188,'type':_0x3e76c5,'params':{'unitId':_0x2b969c['unitId'],'textRanges':_0x2b969c[_0x595180(0x301)],'actions':a[_0x595180(0x32b)]['compose'](_0x120768[_0x595180(0x205)],_0x2b969c['actions'])}};},{})],_0x295ccc=(_0x1ca1f2=(_0x4004ab=_0x1cdae3['getCurrentUser']())==null?void 0x0:_0x4004ab[_0x2e844c(0x5e7)])!=null?_0x1ca1f2:_0x2e844c(0x532),_0xcf8be=(_0x3e0570=(_0x17701f=_0x1cdae3['getCurrentUser']())==null?void 0x0:_0x17701f[_0x2e844c(0x3ad)])!=null?_0x3e0570:'unknown';return{'changeset':{'unitID':_0x31001b,'type':_[_0x2e844c(0x3a1)](_0x53e1cd['getUnitType'](_0x31001b)),'baseRev':_0x4e8a6b['getCurrentRevOfUnit'](_0x31001b),'revision':0x0,'userID':_0x295ccc,'memberID':_0xcf8be,'mutations':_0x43f2b4},'pendingMutations':[]};}const Fs={'id':C['EmptyMutation']['id'],'type':a['CommandType'][_0x2914c(0x526)],'params':{}};var Gs=Object[_0x2914c(0x4a2)],Ys=Object[_0x2914c(0x5df)],z=(_0x134b7e,_0x4a0029,_0x28946a,_0x294efe)=>{for(var _0x1dc0db=_0x294efe>0x1?void 0x0:_0x294efe?Ys(_0x4a0029,_0x28946a):_0x4a0029,_0x4987f8=_0x134b7e['length']-0x1,_0x223e55;_0x4987f8>=0x0;_0x4987f8--)(_0x223e55=_0x134b7e[_0x4987f8])&&(_0x1dc0db=(_0x294efe?_0x223e55(_0x4a0029,_0x28946a,_0x1dc0db):_0x223e55(_0x1dc0db))||_0x1dc0db);return _0x294efe&&_0x1dc0db&&Gs(_0x4a0029,_0x28946a,_0x1dc0db),_0x1dc0db;},m=(_0x8787bc,_0x3c54a0)=>(_0x20cb35,_0x5a55a0)=>_0x3c54a0(_0x20cb35,_0x5a55a0,_0x8787bc),U=(_0x2d342e=>(_0x2d342e[_0x2914c(0x428)]='not_collab',_0x2d342e[_0x2914c(0x410)]=_0x2914c(0x3e6),_0x2d342e[_0x2914c(0x409)]='pending',_0x2d342e[_0x2914c(0x461)]=_0x2914c(0x465),_0x2d342e[_0x2914c(0x30a)]=_0x2914c(0x34e),_0x2d342e[_0x2914c(0x4b2)]=_0x2914c(0x2d1),_0x2d342e[_0x2914c(0x523)]=_0x2914c(0x435),_0x2d342e[_0x2914c(0x2f5)]='offline',_0x2d342e))(U||{});class J{constructor(_0x46d88f,_0x12d660,_0x35a4d1,_0x5248dc,_0x3bc3a2,_0x257099,_0x5d4ecc,_0x4759b6,_0xb645d5){const _0x5bd89a=_0x2914c;u(this,'_awaitingChangeset',null),u(this,_0x5bd89a(0x49d),[]),(this[_0x5bd89a(0x3a9)]=_0x46d88f,this[_0x5bd89a(0x355)]=_0x12d660,this[_0x5bd89a(0x41e)]=_0x3bc3a2,this['_commandService']=_0x257099,this[_0x5bd89a(0x51d)]=_0x5d4ecc,this[_0x5bd89a(0x5ac)]=_0x4759b6,this[_0x5bd89a(0x56f)]=_0xb645d5,this[_0x5bd89a(0x3a6)]=_0x35a4d1,this[_0x5bd89a(0x49d)]=_0x5248dc);}['_checkMissing'](_0x218f7f){const _0x993f25=_0x2914c,_0x4e0017=this[_0x993f25(0x5ac)][_0x993f25(0x27c)](this['unitID']);return _0x218f7f[_0x993f25(0x34d)]>_0x4e0017+0x1?(this['_handler'][_0x993f25(0x562)]({'from':_0x4e0017,'to':_0x218f7f['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x3f68ca){const _0x34b4f=_0x2914c;this[_0x34b4f(0x51d)][_0x34b4f(0x2ee)](this[_0x34b4f(0x3a9)],_0x3f68ca);}['_transformSelections'](_0x18d988){const _0x48f713=_0x2914c;var _0x2d9674,_0x3e58da;(_0x3e58da=(_0x2d9674=this[_0x48f713(0x41e)])[_0x48f713(0x285)])==null||_0x3e58da['call'](_0x2d9674,_0x18d988);}['_transformIMECache'](_0x2cc6de){const _0xcb323d=_0x2914c;var _0x5c2c28,_0x53342f;return(_0x53342f=(_0x5c2c28=this[_0xcb323d(0x41e)])[_0xcb323d(0x3bb)])==null?void 0x0:_0x53342f[_0xcb323d(0x42b)](_0x5c2c28,_0x2cc6de);}[_0x2914c(0x239)](_0x4b55c9){const _0x18d769=_0x2914c;var _0x4be89b,_0x1cd0d7,_0xb52808;return(_0xb52808=(_0x1cd0d7=(_0x4be89b=this['_handler'])[_0x18d769(0x4a1)])==null?void 0x0:_0x1cd0d7[_0x18d769(0x42b)](_0x4be89b,_0x4b55c9))!=null?_0xb52808:_0x4b55c9;}['_syncEditingCollabCursor'](_0x5ac18d){const _0x2ac5e1=_0x2914c;var _0x556c88,_0x45f530;if(this[_0x2ac5e1(0x355)]===$[_0x2ac5e1(0x1e3)]){const {unitID:_0x2506cf,mutations:_0x16b46e,memberID:_0xeac2a}=_0x5ac18d,_0x37b53b=_0x16b46e[0x0]['params'][_0x2ac5e1(0x301)];Array[_0x2ac5e1(0x5dd)](_0x37b53b)&&_0x37b53b[_0x2ac5e1(0x286)]>0x0&&((_0x45f530=(_0x556c88=this[_0x2ac5e1(0x41e)])[_0x2ac5e1(0x452)])==null||_0x45f530[_0x2ac5e1(0x42b)](_0x556c88,{'unitID':_0x2506cf,'memberID':_0xeac2a,'textRanges':_0x37b53b}));}}[_0x2914c(0x551)](){const _0x8b3d5c=_0x2914c;this['_localCacheService'][_0x8b3d5c(0x3cc)](this[_0x8b3d5c(0x3a9)],this[_0x8b3d5c(0x355)],this[_0x8b3d5c(0x3a6)],this[_0x8b3d5c(0x49d)]);}[_0x2914c(0x426)](){const _0xfb488c=_0x2914c;return this[_0xfb488c(0x5ac)][_0xfb488c(0x27c)](this[_0xfb488c(0x3a9)]);}[_0x2914c(0x448)](){const _0x385f75=_0x2914c;this[_0x385f75(0x5ac)][_0x385f75(0x4fb)](this['unitID']);}['_executeRemoteChangeset'](_0x15a0fb){const _0x2045b2=_0x2914c;var _0x435121;const _0x17a608=this[_0x2045b2(0x239)](_0x15a0fb),_0x592354=a['sequenceExecute'](_0x17a608[_0x2045b2(0x433)],this['_commandService'],{'fromCollab':!0x0});if(!_0x592354[_0x2045b2(0x319)])throw _0x592354[_0x2045b2(0x219)]instanceof Error?_0x592354[_0x2045b2(0x219)]:new Error((_0x435121=_0x592354[_0x2045b2(0x219)])!=null?_0x435121:_0x2045b2(0x431));this[_0x2045b2(0x4d2)](_0x17a608),this[_0x2045b2(0x4e7)](_0x15a0fb),this[_0x2045b2(0x3ba)](_0x17a608),this[_0x2045b2(0x53f)](_0x17a608),this[_0x2045b2(0x448)]();}}let ie=class extends J{constructor(_0xbd245f,_0x2edc35,_0x18b46b,_0x1deb12,_0x46794c,_0x58ab1d,_0x42abf3,_0x4202fd,_0x1856b2,_0x4c0502){const _0x174ab0=_0x2914c;super(_0xbd245f,_0x2edc35,null,[],_0x18b46b,_0x4202fd,_0x42abf3,_0x1deb12,_0x46794c),u(this,_0x174ab0(0x29a),'synced'),(this['_injector']=_0x58ab1d,this[_0x174ab0(0x483)]=_0x1856b2,this[_0x174ab0(0x249)]=_0x4c0502);}['appendMutation'](_0x42edc0){const _0x40a5c3=_0x2914c,_0x4df510=this['_injector'][_0x40a5c3(0x1e2)](k,this['unitID'],this[_0x40a5c3(0x355)],[_0x42edc0],this[_0x40a5c3(0x41e)]);return _0x4df510[_0x40a5c3(0x1f7)](),_0x4df510['_updateLocalCache'](),_0x4df510;}[_0x2914c(0x1ed)](_0x3baec5){const _0x234349=_0x2914c;if(this[_0x234349(0x2f9)](_0x3baec5))return this[_0x234349(0x311)][_0x234349(0x1e2)](x,this[_0x234349(0x3a9)],this[_0x234349(0x355)],null,[],null,[_0x3baec5],this[_0x234349(0x41e)]);try{const _0x12f8ca=this[_0x234349(0x249)]['transformMutationsWithChangeset'](_0x3baec5,[Fs]);if(_['isTransformMutationsWithChangesetSuccess'](_0x12f8ca)){const {c1Prime:_0x9fe654}=_0x12f8ca;return this['_executeRemoteChangeset'](_0x9fe654),this;}throw _0x12f8ca[_0x234349(0x219)];}catch(_0x392c86){return this[_0x234349(0x483)]['error'](_0x392c86),this[_0x234349(0x4b8)](!0x1);}}[_0x2914c(0x4b8)](_0x90013e){const _0x5532aa=_0x2914c;return this[_0x5532aa(0x311)]['createInstance'](F,this[_0x5532aa(0x3a9)],this[_0x5532aa(0x355)],null,[],this[_0x5532aa(0x41e)],_0x90013e);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x522711=_0x2914c;throw new Error(_0x522711(0x572));}[_0x2914c(0x44a)](){const _0x45591c=_0x2914c;return this[_0x45591c(0x311)][_0x45591c(0x1e2)](G,this[_0x45591c(0x3a9)],this[_0x45591c(0x355)],null,[],this[_0x45591c(0x41e)]);}[_0x2914c(0x3e5)](){return this;}[_0x2914c(0x20d)](){const _0x37c99f=_0x2914c;throw new Error(_0x37c99f(0x329));}['fetchMiss'](){const _0x4740ab=_0x2914c,_0x2342b4=this[_0x4740ab(0x5ac)][_0x4740ab(0x27c)](this[_0x4740ab(0x3a9)]);return this[_0x4740ab(0x41e)][_0x4740ab(0x562)]({'from':_0x2342b4,'to':0x0}),this[_0x4740ab(0x311)][_0x4740ab(0x1e2)](x,this[_0x4740ab(0x3a9)],this[_0x4740ab(0x355)],null,[],null,[],this[_0x4740ab(0x41e)]);}};ie=z([m(0x3,a['Inject'](_[_0x2914c(0x1fc)])),m(0x4,a[_0x2914c(0x5d4)](exports['LocalCacheService'])),m(0x5,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),m(0x6,a[_0x2914c(0x581)]),m(0x7,a[_0x2914c(0x1d2)]),m(0x8,a['ILogService']),m(0x9,_[_0x2914c(0x456)])],ie);let k=class extends J{constructor(_0x8a550,_0x43dfae,_0x332d13,_0x12ad82,_0x5416e1,_0x214c89,_0x2b35af,_0x477f18,_0xd63029,_0x20ad2d,_0x17f9ae,_0x3984b5,_0x500d9a,_0x4e55fd){const _0x5d7548=_0x2914c;super(_0x8a550,_0x43dfae,null,_0x332d13,_0x12ad82,_0x20ad2d,_0x4e55fd,_0x214c89,_0x2b35af),u(this,'status',_0x5d7548(0x1d4)),u(this,_0x5d7548(0x37d),null),u(this,_0x5d7548(0x55a),null),(this['_injector']=_0x5416e1,this['_memberService']=_0x477f18,this[_0x5d7548(0x483)]=_0xd63029,this['_configService']=_0x17f9ae,this['_transformService']=_0x3984b5,this[_0x5d7548(0x1cc)]=_0x500d9a);}[_0x2914c(0x468)](_0x10784f){const _0x19daa9=_0x2914c;return this[_0x19daa9(0x49d)][_0x19daa9(0x4ed)](_0x10784f),this[_0x19daa9(0x551)](),this;}[_0x2914c(0x1ed)](_0x19eb99){const _0x140ebb=_0x2914c;if(this[_0x140ebb(0x2f9)](_0x19eb99))return this[_0x140ebb(0x21e)](),this[_0x140ebb(0x311)][_0x140ebb(0x1e2)](x,this['unitID'],this[_0x140ebb(0x355)],null,this['_pendingMutations'],null,[_0x19eb99],this['_handler']);try{const _0x1df039=this[_0x140ebb(0x249)][_0x140ebb(0x280)](_0x19eb99,this[_0x140ebb(0x49d)]);if(_[_0x140ebb(0x48c)](_0x1df039)){const {c1Prime:_0x36f3b8,m2Prime:_0x2c63b1}=_0x1df039;this[_0x140ebb(0x334)](_0x36f3b8);const _0x25a887=this[_0x140ebb(0x311)][_0x140ebb(0x1e2)](k,this[_0x140ebb(0x3a9)],this['type'],_0x2c63b1,this[_0x140ebb(0x41e)]);return this[_0x140ebb(0x21e)](),_0x25a887[_0x140ebb(0x1f7)](this['_scheduleTimestamp']?Math[_0x140ebb(0x5cf)](0x0,new Date()[_0x140ebb(0x530)]()-this[_0x140ebb(0x37d)]):this[_0x140ebb(0x367)]()),_0x25a887;}throw _0x1df039[_0x140ebb(0x219)];}catch(_0x52c4dc){return this['_logService'][_0x140ebb(0x219)](_0x52c4dc),this[_0x140ebb(0x4b8)](!0x1);}}[_0x2914c(0x223)](){const _0x49cb4e=_0x2914c;throw new Error(_0x49cb4e(0x52a));}[_0x2914c(0x1e1)](){const _0x283f28=_0x2914c;throw new Error(_0x283f28(0x4b7));}['toggleOffline'](){const _0x11e1fe=_0x2914c;return this[_0x11e1fe(0x21e)](),this[_0x11e1fe(0x311)][_0x11e1fe(0x1e2)](G,this[_0x11e1fe(0x3a9)],this['type'],null,this[_0x11e1fe(0x49d)],this[_0x11e1fe(0x41e)]);}[_0x2914c(0x3e5)](){return this;}[_0x2914c(0x1f7)](_0xfd9930){const _0xe8889b=_0x2914c,_0x20d161=_0xfd9930!=null?_0xfd9930:this[_0xe8889b(0x367)]();this['_scheduleTimestamp']=new Date()[_0xe8889b(0x530)](),this[_0xe8889b(0x55a)]=window['setTimeout'](()=>{const _0x5a1d54=_0xe8889b;this[_0x5a1d54(0x21e)]();let _0x3a3eec=null;switch(this[_0x5a1d54(0x355)]){case $[_0x5a1d54(0x55c)]:{_0x3a3eec=at(this[_0x5a1d54(0x49d)],this['unitID'],this['_univerInstanceService'],this[_0x5a1d54(0x5ac)],this['_memberService']);break;}case $['UNIVER_DOC']:{this[_0x5a1d54(0x49d)]['every'](_0xbd7c86=>_0xbd7c86['id']===se['RichTextEditingMutation']['id'])?_0x3a3eec=Ws(this['_pendingMutations'],this['unitID'],this[_0x5a1d54(0x1cc)],this[_0x5a1d54(0x5ac)],this['_memberService']):_0x3a3eec=at(this[_0x5a1d54(0x49d)],this[_0x5a1d54(0x3a9)],this['_univerInstanceService'],this[_0x5a1d54(0x5ac)],this[_0x5a1d54(0x263)]);break;}default:throw new Error(_0x5a1d54(0x221)+this[_0x5a1d54(0x355)]+_0x5a1d54(0x5b2));}const {changeset:_0x1b5503,pendingMutations:_0x33dfed}=_0x3a3eec;this[_0x5a1d54(0x41e)][_0x5a1d54(0x21b)](_0x1b5503);const _0x1b8264=_0x33dfed[_0x5a1d54(0x286)]?this[_0x5a1d54(0x311)][_0x5a1d54(0x1e2)](B,this[_0x5a1d54(0x3a9)],this[_0x5a1d54(0x355)],_0x1b5503,_0x33dfed,this['_handler']):this[_0x5a1d54(0x311)]['createInstance'](W,this['unitID'],this[_0x5a1d54(0x355)],_0x1b5503,this[_0x5a1d54(0x41e)]);_0x1b8264['_updateLocalCache'](),this[_0x5a1d54(0x41e)][_0x5a1d54(0x418)](this,_0x1b8264);},_0x20d161);}[_0x2914c(0x367)](){const _0x594db9=_0x2914c;var _0x236946;const _0x395c61=this[_0x594db9(0x288)]['getConfig'](L);return(_0x236946=_0x395c61==null?void 0x0:_0x395c61[_0x594db9(0x472)])!=null?_0x236946:Jt;}['resend'](){const _0x29e373=_0x2914c;throw new Error(_0x29e373(0x511));}[_0x2914c(0x21e)](){const _0x16e916=_0x2914c;this[_0x16e916(0x55a)]!=null&&(clearTimeout(this[_0x16e916(0x55a)]),this[_0x16e916(0x55a)]=null);}['_onConflict'](_0x56fc2d){const _0xcc13f4=_0x2914c;return this[_0xcc13f4(0x21e)](),this[_0xcc13f4(0x311)][_0xcc13f4(0x1e2)](F,this[_0xcc13f4(0x3a9)],this['type'],null,this[_0xcc13f4(0x49d)],this[_0xcc13f4(0x41e)],_0x56fc2d);}};k=z([m(0x4,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),m(0x5,a[_0x2914c(0x5d4)](_[_0x2914c(0x1fc)])),m(0x6,a[_0x2914c(0x5d4)](exports[_0x2914c(0x467)])),m(0x7,a[_0x2914c(0x5d4)](q)),m(0x8,a['ILogService']),m(0x9,a['ICommandService']),m(0xa,a[_0x2914c(0x4b3)]),m(0xb,_[_0x2914c(0x456)]),m(0xc,a[_0x2914c(0x202)]),m(0xd,a[_0x2914c(0x581)])],k);let W=class extends J{constructor(_0x1fe9d5,_0x3a196b,_0x3c3876,_0x11b48e,_0x1c38e4,_0x42f054,_0x47de56,_0x4f1342,_0x7acda0,_0x2667cc,_0x22ec8a){const _0x13a3d0=_0x2914c;super(_0x1fe9d5,_0x3a196b,_0x3c3876,[],_0x11b48e,_0x4f1342,_0x22ec8a,_0x42f054,_0x47de56),u(this,_0x13a3d0(0x29a),_0x13a3d0(0x465)),(this['_injector']=_0x1c38e4,this[_0x13a3d0(0x483)]=_0x7acda0,this[_0x13a3d0(0x249)]=_0x2667cc);}['appendMutation'](_0xd8b715){const _0x394f3f=_0x2914c,_0x124991=this['_injector'][_0x394f3f(0x1e2)](B,this['unitID'],this['type'],this['_awaitingChangeset'],[_0xd8b715],this['_handler']);return _0x124991[_0x394f3f(0x551)](),_0x124991;}[_0x2914c(0x1ed)](_0x2058ae){const _0x426ae5=_0x2914c;if(this[_0x426ae5(0x2f9)](_0x2058ae))return this[_0x426ae5(0x311)][_0x426ae5(0x1e2)](x,this['unitID'],this[_0x426ae5(0x355)],this[_0x426ae5(0x3a6)],[],null,[_0x2058ae],this['_handler']);try{const _0x4a015d=this[_0x426ae5(0x249)][_0x426ae5(0x2b0)]([_0x2058ae],[this[_0x426ae5(0x3a6)]],!0x1);if(_[_0x426ae5(0x5b8)](_0x4a015d)){const {c1Prime:_0x67a382,c2Prime:_0x47731a}=_0x4a015d;this['_executeRemoteChangeset'](_0x67a382[0x0]),_0x47731a[0x0][_0x426ae5(0x303)]=this[_0x426ae5(0x426)]();const _0x15fe2c=this[_0x426ae5(0x311)][_0x426ae5(0x1e2)](W,this['unitID'],this[_0x426ae5(0x355)],_0x47731a[0x0],this[_0x426ae5(0x41e)]);return _0x15fe2c[_0x426ae5(0x551)](),_0x15fe2c;}return this[_0x426ae5(0x4b8)](!0x1);}catch(_0x266e6e){return this[_0x426ae5(0x483)][_0x426ae5(0x219)](_0x266e6e),this[_0x426ae5(0x4b8)](!0x1);}}[_0x2914c(0x223)](_0x102c70){const _0x37dc80=_0x2914c,_0x35017d=this[_0x37dc80(0x5ac)][_0x37dc80(0x27c)](this['unitID']);if(_0x102c70[_0x37dc80(0x34d)]<_0x35017d-0x1)return this;if(this[_0x37dc80(0x2f9)](_0x102c70))return this['_injector'][_0x37dc80(0x1e2)](x,this[_0x37dc80(0x3a9)],this['type'],null,[],this[_0x37dc80(0x3a6)],[],this[_0x37dc80(0x41e)]);this[_0x37dc80(0x448)]();const _0x591d2a=this['_injector']['createInstance'](ie,this[_0x37dc80(0x3a9)],this[_0x37dc80(0x355)],this[_0x37dc80(0x41e)]);return _0x591d2a[_0x37dc80(0x551)](),_0x591d2a;}[_0x2914c(0x1e1)](_0x27accf){const _0x299fa5=_0x2914c;return this[_0x299fa5(0x4b8)](!!(_0x27accf!=null&&_0x27accf['isPermissionRej']));}[_0x2914c(0x44a)](){const _0x5a9640=_0x2914c;return this[_0x5a9640(0x311)]['createInstance'](G,this[_0x5a9640(0x3a9)],this[_0x5a9640(0x355)],this[_0x5a9640(0x3a6)],[],this['_handler']);}[_0x2914c(0x3e5)](){return this;}[_0x2914c(0x20d)](){const _0xccc97b=_0x2914c;this['_handler'][_0xccc97b(0x21b)](this[_0xccc97b(0x3a6)]);}['_onConflict'](_0x12c242){const _0x2de995=_0x2914c;return this[_0x2de995(0x311)][_0x2de995(0x1e2)](F,this[_0x2de995(0x3a9)],this[_0x2de995(0x355)],this[_0x2de995(0x3a6)],[],this['_handler'],_0x12c242);}};W=z([m(0x4,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),m(0x5,a['Inject'](_[_0x2914c(0x1fc)])),m(0x6,a['Inject'](exports['LocalCacheService'])),m(0x7,a[_0x2914c(0x1d2)]),m(0x8,a[_0x2914c(0x485)]),m(0x9,_[_0x2914c(0x456)]),m(0xa,a[_0x2914c(0x581)])],W);let B=class extends J{constructor(_0x4664ad,_0x2d07b6,_0x239584,_0x545c66,_0x545ec2,_0x83ff05,_0x4f1231,_0x80efdc,_0x1ea9fd,_0x78cad1,_0x34a9c9,_0x55141d){const _0x2fffe8=_0x2914c;super(_0x4664ad,_0x2d07b6,_0x239584,_0x545c66,_0x545ec2,_0x1ea9fd,_0x55141d,_0x4f1231,_0x80efdc),u(this,_0x2fffe8(0x29a),'awaiting_with_pending'),(this[_0x2fffe8(0x311)]=_0x83ff05,this[_0x2fffe8(0x483)]=_0x78cad1,this[_0x2fffe8(0x249)]=_0x34a9c9);}[_0x2914c(0x468)](_0x5bfefa){const _0x5dcb81=_0x2914c;return this[_0x5dcb81(0x49d)][_0x5dcb81(0x4ed)](_0x5bfefa),this;}[_0x2914c(0x1ed)](_0x40a1c2){const _0x45a022=_0x2914c;if(this[_0x45a022(0x2f9)](_0x40a1c2))return this[_0x45a022(0x311)][_0x45a022(0x1e2)](x,this[_0x45a022(0x3a9)],this[_0x45a022(0x355)],this[_0x45a022(0x3a6)],this['_pendingMutations'],null,[_0x40a1c2],this['_handler']);try{const _0x59e1e3=this[_0x45a022(0x249)][_0x45a022(0x2b0)]([_0x40a1c2],[this[_0x45a022(0x3a6)]],!0x1);if(_[_0x45a022(0x5b8)](_0x59e1e3)){const {c1Prime:_0x248627,c2Prime:_0x51697a}=_0x59e1e3,_0x566b3a=this[_0x45a022(0x249)]['transformMutationsWithChangeset'](_0x248627[0x0],this[_0x45a022(0x49d)]);if(_[_0x45a022(0x48c)](_0x566b3a)){const {c1Prime:_0x71427c,m2Prime:_0x368e8f}=_0x566b3a;return this['_executeRemoteChangeset'](_0x71427c),_0x51697a[0x0][_0x45a022(0x303)]=this[_0x45a022(0x426)](),this[_0x45a022(0x311)]['createInstance'](B,this[_0x45a022(0x3a9)],this[_0x45a022(0x355)],_0x51697a[0x0],_0x368e8f,this[_0x45a022(0x41e)]);}throw _0x566b3a[_0x45a022(0x219)];}throw _0x59e1e3[_0x45a022(0x219)];}catch(_0x3a98a6){return this[_0x45a022(0x483)][_0x45a022(0x219)](_0x3a98a6),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x4ab951){const _0x55068b=_0x2914c;if(this['_checkMissing'](_0x4ab951))return this[_0x55068b(0x311)][_0x55068b(0x1e2)](x,this[_0x55068b(0x3a9)],this[_0x55068b(0x355)],null,this[_0x55068b(0x49d)],this[_0x55068b(0x3a6)],[],this[_0x55068b(0x41e)]);this[_0x55068b(0x448)]();const _0x1a7bd3=this[_0x55068b(0x311)][_0x55068b(0x1e2)](k,this[_0x55068b(0x3a9)],this['type'],this[_0x55068b(0x49d)],this[_0x55068b(0x41e)]);return _0x1a7bd3[_0x55068b(0x1f7)](),_0x1a7bd3[_0x55068b(0x551)](),_0x1a7bd3;}[_0x2914c(0x1e1)](_0x3401d5){const _0x401198=_0x2914c;return this[_0x401198(0x4b8)](!!(_0x3401d5!=null&&_0x3401d5[_0x401198(0x52d)]));}[_0x2914c(0x44a)](){const _0x2d4631=_0x2914c;return this[_0x2d4631(0x311)][_0x2d4631(0x1e2)](G,this[_0x2d4631(0x3a9)],this[_0x2d4631(0x355)],this[_0x2d4631(0x3a6)],this[_0x2d4631(0x49d)],this[_0x2d4631(0x41e)]);}[_0x2914c(0x3e5)](){return this;}[_0x2914c(0x20d)](){const _0x1c8534=_0x2914c;this[_0x1c8534(0x41e)]['onSendChangeset'](this[_0x1c8534(0x3a6)]);}['_onConflict'](_0x4626ac){const _0x47f7f3=_0x2914c;return this[_0x47f7f3(0x311)]['createInstance'](F,this[_0x47f7f3(0x3a9)],this[_0x47f7f3(0x355)],null,this[_0x47f7f3(0x49d)],this[_0x47f7f3(0x41e)],_0x4626ac);}};B=z([m(0x5,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),m(0x6,a['Inject'](_[_0x2914c(0x1fc)])),m(0x7,a[_0x2914c(0x5d4)](exports['LocalCacheService'])),m(0x8,a[_0x2914c(0x1d2)]),m(0x9,a[_0x2914c(0x485)]),m(0xa,_['ITransformService']),m(0xb,a[_0x2914c(0x581)])],B);let F=class extends J{constructor(_0x424385,_0x236f7e,_0x27ed7e,_0x527ebd,_0x48c162,_0x502976=!0x1,_0x2b0393,_0x41aaf2,_0x186b1c,_0x5d67b1,_0x3ef165,_0x2a019d,_0x3a4705){const _0x1b17f2=_0x2914c;super(_0x424385,_0x236f7e,_0x27ed7e,_0x527ebd,_0x48c162,_0x41aaf2,_0x186b1c,_0x3ef165,_0x5d67b1),u(this,'status','conflict'),(this[_0x1b17f2(0x333)]=_0x502976,this[_0x1b17f2(0x1d8)]=_0x2b0393,this['_localeService']=_0x2a019d,this[_0x1b17f2(0x482)]=_0x3a4705,this[_0x1b17f2(0x3e9)](),this[_0x1b17f2(0x4ec)](),this['_disableEditing']());}[_0x2914c(0x468)](){return this;}[_0x2914c(0x1ed)](){return this;}[_0x2914c(0x223)](){return this;}[_0x2914c(0x1e1)](){return this;}[_0x2914c(0x44a)](){return this;}[_0x2914c(0x3e5)](){return this;}[_0x2914c(0x20d)](){const _0x35a92b=_0x2914c;throw new Error(_0x35a92b(0x599));}[_0x2914c(0x4ec)](){const _0x5f21ea=_0x2914c;this[_0x5f21ea(0x56f)][_0x5f21ea(0x3cc)](this['unitID'],this[_0x5f21ea(0x355)],null,[]);}[_0x2914c(0x3e9)](){const _0x2535e0=_0x2914c;this[_0x2535e0(0x333)]?this[_0x2535e0(0x482)][_0x2535e0(0x408)]({'title':this[_0x2535e0(0x304)]['t'](_0x2535e0(0x4c8)),'content':this[_0x2535e0(0x304)]['t'](_0x2535e0(0x360)),'type':_0x2535e0(0x219),'duration':0x0}):this[_0x2535e0(0x482)][_0x2535e0(0x408)]({'title':this[_0x2535e0(0x304)]['t'](_0x2535e0(0x4f5)),'content':this[_0x2535e0(0x304)]['t'](_0x2535e0(0x1bc)),'type':'error','duration':0x0});}[_0x2914c(0x50a)](){const _0x76c2f1=_0x2914c;this[_0x76c2f1(0x1d8)][_0x76c2f1(0x380)](new C['WorkbookEditablePermission'](this[_0x76c2f1(0x3a9)])['id'],!0x1);}};F=z([m(0x6,a[_0x2914c(0x5d4)](a[_0x2914c(0x323)])),m(0x7,a[_0x2914c(0x1d2)]),m(0x8,a[_0x2914c(0x581)]),m(0x9,a[_0x2914c(0x5d4)](exports[_0x2914c(0x467)])),m(0xa,a[_0x2914c(0x5d4)](_[_0x2914c(0x1fc)])),m(0xb,a[_0x2914c(0x5d4)](a[_0x2914c(0x372)])),m(0xc,A[_0x2914c(0x539)])],F);let G=class extends J{constructor(_0x59506e,_0x384e38,_0x4bdbe5,_0x43526c,_0x3dfa20,_0xb0a929,_0x535d14,_0x2e0a3f,_0xf66a2d,_0x9ac4){const _0x287511=_0x2914c;super(_0x59506e,_0x384e38,_0x4bdbe5,_0x43526c,_0x3dfa20,_0xf66a2d,_0x9ac4,_0x535d14,_0x2e0a3f),u(this,_0x287511(0x29a),'offline'),this['_injector']=_0xb0a929;}[_0x2914c(0x468)](_0x22354a){const _0x3abb60=_0x2914c;return this[_0x3abb60(0x49d)][_0x3abb60(0x4ed)](_0x22354a),this['_updateLocalCache'](),this;}[_0x2914c(0x1ed)](_0x814841){const _0x59ec66=_0x2914c;throw new Error(_0x59ec66(0x420));}[_0x2914c(0x223)](){const _0x45ba7a=_0x2914c;throw new Error(_0x45ba7a(0x379));}['onRemoteRej'](){const _0x22fc4b=_0x2914c;throw new Error(_0x22fc4b(0x543));}[_0x2914c(0x44a)](){return this;}['toggleOnline'](){const _0x3b95d7=_0x2914c,{_injector:_0x557201,_pendingMutations:_0x4f7f38,_awaitingChangeset:_0x4500b1,unitID:_0x1b682f,_handler:_0x261fcf,type:_0x2141bd}=this,_0x3fa242=Ut(_0x557201,_0x1b682f,_0x2141bd,_0x4500b1,_0x4f7f38,_0x261fcf);return _0x3fa242 instanceof k?_0x3fa242[_0x3b95d7(0x1f7)]():(_0x3fa242 instanceof B||_0x3fa242 instanceof W)&&_0x3fa242[_0x3b95d7(0x20d)](),_0x3fa242;}[_0x2914c(0x20d)](){const _0xcb19f6=_0x2914c;throw new Error(_0xcb19f6(0x26a));}};G=z([m(0x5,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),m(0x6,a[_0x2914c(0x5d4)](_[_0x2914c(0x1fc)])),m(0x7,a[_0x2914c(0x5d4)](exports['LocalCacheService'])),m(0x8,a[_0x2914c(0x1d2)]),m(0x9,a[_0x2914c(0x581)])],G);let x=class extends J{constructor(_0x59c0b7,_0x2c883d,_0x5af978,_0x148704,_0x4c7357,_0x173905,_0x467d10,_0x55cca9,_0x1903e5,_0xdba1c3,_0x2006f2,_0x3bc8e5,_0x13ffc0,_0x13cb73){const _0x4d3271=_0x2914c;super(_0x59c0b7,_0x2c883d,_0x5af978,_0x148704,_0x467d10,_0x3bc8e5,_0x13ffc0,_0x1903e5,_0xdba1c3),u(this,_0x4d3271(0x29a),_0x4d3271(0x2d1)),(this[_0x4d3271(0x414)]=_0x4c7357,this['_queuedRemoteChangesets']=_0x173905,this['_injector']=_0x55cca9,this['_logService']=_0x2006f2,this['_transformService']=_0x13cb73);}[_0x2914c(0x364)](_0x1d821d){const _0x4a2210=_0x2914c;try{const _0x2f41be=[..._0x1d821d,...this[_0x4a2210(0x36b)]],_0x3f2f6a=[this[_0x4a2210(0x3a6)]||this['_acknowledgedAwaitingChangeset']][_0x4a2210(0x48d)](_0x36058d=>!!_0x36058d);let _0x590942,_0x32b192;if(_0x3f2f6a['length']){const _0x1fbf8c=this[_0x4a2210(0x249)][_0x4a2210(0x2b0)](_0x2f41be,_0x3f2f6a,!0x1);if(!_[_0x4a2210(0x5b8)](_0x1fbf8c))throw _0x1fbf8c[_0x4a2210(0x219)];_0x590942=_0x1fbf8c['c1Prime'],_0x32b192=_0x1fbf8c[_0x4a2210(0x59d)];}else _0x590942=_0x2f41be,_0x32b192=[];let _0x3bd17a=this['_pendingMutations'];_0x590942[_0x4a2210(0x1ca)](_0x46cf07=>{const _0x4f7692=_0x4a2210;let _0x4032b0;if(_0x3bd17a[_0x4f7692(0x286)]){const _0x3ee6e2=this[_0x4f7692(0x249)][_0x4f7692(0x280)](_0x46cf07,_0x3bd17a);if(!_[_0x4f7692(0x48c)](_0x3ee6e2))throw _0x3ee6e2['error'];_0x4032b0=_0x3ee6e2[_0x4f7692(0x51a)],_0x3bd17a=_0x3ee6e2['m2Prime'];}else _0x4032b0=_0x46cf07;this[_0x4f7692(0x334)](_0x4032b0);}),this[_0x4a2210(0x414)]&&this[_0x4a2210(0x448)](),this['_awaitingChangeset']&&_0x32b192[_0x4a2210(0x286)]&&(_0x32b192[0x0][_0x4a2210(0x303)]=this[_0x4a2210(0x426)]());let _0x272039;if(this[_0x4a2210(0x3a6)]&&_0x3bd17a['length']!==0x0)_0x272039=this[_0x4a2210(0x311)]['createInstance'](B,this[_0x4a2210(0x3a9)],this[_0x4a2210(0x355)],_0x32b192[0x0],_0x3bd17a,this[_0x4a2210(0x41e)]);else{if(this[_0x4a2210(0x3a6)]&&_0x3bd17a['length']===0x0)_0x32b192[0x0][_0x4a2210(0x303)]=this[_0x4a2210(0x426)](),_0x272039=this['_injector'][_0x4a2210(0x1e2)](W,this['unitID'],this['type'],_0x32b192[0x0],this[_0x4a2210(0x41e)]);else{if(_0x3bd17a[_0x4a2210(0x286)]!==0x0){const _0x3f5341=this[_0x4a2210(0x311)][_0x4a2210(0x1e2)](k,this[_0x4a2210(0x3a9)],this['type'],_0x3bd17a,this[_0x4a2210(0x41e)]);_0x3f5341[_0x4a2210(0x1f7)](),_0x272039=_0x3f5341;}else _0x272039=this[_0x4a2210(0x311)][_0x4a2210(0x1e2)](ie,this[_0x4a2210(0x3a9)],this[_0x4a2210(0x355)],this[_0x4a2210(0x41e)]);}}return _0x272039['_updateLocalCache'](),_0x272039;}catch(_0x2ad942){return this[_0x4a2210(0x483)][_0x4a2210(0x219)]('[FetchMissState]',_0x4a2210(0x4ab),_0x2ad942),this[_0x4a2210(0x311)][_0x4a2210(0x1e2)](F,this[_0x4a2210(0x3a9)],this[_0x4a2210(0x355)],this[_0x4a2210(0x3a6)],this[_0x4a2210(0x49d)],this[_0x4a2210(0x41e)],!0x1);}}[_0x2914c(0x20d)](){const _0xdcc9e6=_0x2914c;throw new Error(_0xdcc9e6(0x2eb));}['appendMutation'](_0x483c0f){const _0x2fcbab=_0x2914c;return this['_pendingMutations'][_0x2fcbab(0x4ed)](_0x483c0f),this;}[_0x2914c(0x1ed)](_0x41b6cb){const _0x2e7944=_0x2914c;return this[_0x2e7944(0x36b)][_0x2e7944(0x4ed)](_0x41b6cb),this;}[_0x2914c(0x223)](_0x232090){const _0x21714c=_0x2914c;if(this[_0x21714c(0x3a6)])return this[_0x21714c(0x414)]=this[_0x21714c(0x3a6)],this[_0x21714c(0x3a6)]=null,this;throw new Error(_0x21714c(0x438));}['onRemoteRej'](_0x3b28b9){const _0x5fc674=_0x2914c;return this[_0x5fc674(0x4b8)](!!(_0x3b28b9!=null&&_0x3b28b9[_0x5fc674(0x52d)]));}[_0x2914c(0x44a)](){const _0x1aa284=_0x2914c;return this[_0x1aa284(0x311)][_0x1aa284(0x1e2)](G,this[_0x1aa284(0x3a9)],this[_0x1aa284(0x355)],this[_0x1aa284(0x3a6)],this['_pendingMutations'],this[_0x1aa284(0x41e)]);}[_0x2914c(0x3e5)](){return this;}[_0x2914c(0x4b8)](_0x4110b0){const _0x291658=_0x2914c;return this[_0x291658(0x311)][_0x291658(0x1e2)](F,this[_0x291658(0x3a9)],this[_0x291658(0x355)],this['_awaitingChangeset'],this[_0x291658(0x49d)],this[_0x291658(0x41e)],_0x4110b0);}};x=z([m(0x7,a[_0x2914c(0x5d4)](a['Injector'])),m(0x8,a['Inject'](_[_0x2914c(0x1fc)])),m(0x9,a[_0x2914c(0x5d4)](exports[_0x2914c(0x467)])),m(0xa,a[_0x2914c(0x485)]),m(0xb,a[_0x2914c(0x1d2)]),m(0xc,a[_0x2914c(0x581)]),m(0xd,_[_0x2914c(0x456)])],x);function Ut(_0x4dee28,_0x144401,_0x55aed8,_0x30fce6,_0x3cb407,_0x339451){const _0x3fde20=_0x2914c;return _0x30fce6&&_0x3cb407[_0x3fde20(0x286)]?_0x4dee28[_0x3fde20(0x1e2)](B,_0x144401,_0x55aed8,_0x30fce6,_0x3cb407,_0x339451):_0x30fce6?_0x4dee28[_0x3fde20(0x1e2)](W,_0x144401,_0x55aed8,_0x30fce6,_0x339451):_0x3cb407['length']?_0x4dee28[_0x3fde20(0x1e2)](k,_0x144401,_0x55aed8,_0x3cb407,_0x339451):_0x4dee28[_0x3fde20(0x1e2)](ie,_0x144401,_0x55aed8,_0x339451);}var Ks=Object['defineProperty'],Xs=Object[_0x2914c(0x5df)],ze=(_0x2efce2,_0x2cbc1c,_0x10bfa6,_0x1c6b6d)=>{const _0xa2504e=_0x2914c;for(var _0x3d2e51=_0x1c6b6d>0x1?void 0x0:_0x1c6b6d?Xs(_0x2cbc1c,_0x10bfa6):_0x2cbc1c,_0x449de5=_0x2efce2[_0xa2504e(0x286)]-0x1,_0x1e538b;_0x449de5>=0x0;_0x449de5--)(_0x1e538b=_0x2efce2[_0x449de5])&&(_0x3d2e51=(_0x1c6b6d?_0x1e538b(_0x2cbc1c,_0x10bfa6,_0x3d2e51):_0x1e538b(_0x3d2e51))||_0x3d2e51);return _0x1c6b6d&&_0x3d2e51&&Ks(_0x2cbc1c,_0x10bfa6,_0x3d2e51),_0x3d2e51;},p=(_0x3b527b,_0x15a7b0)=>(_0x44cb89,_0x31a6e7)=>_0x15a7b0(_0x44cb89,_0x31a6e7,_0x3b527b);exports[_0x2914c(0x2e7)]=class extends a[_0x2914c(0x325)]{constructor(_0x3ed9f6,_0x42a5b3,_0x44700a,_0x35d8c3,_0x2f7773,_0x31f340,_0x1ab74,_0x4bacd9,_0x4c1aa7,_0x3b2397,_0x9439dc,_0x3a260c,_0x1e400f){const _0x1c40dd=_0x2914c;super(),u(this,'_state$',new v[(_0x1c40dd(0x5b4))](null)),u(this,'state$',this[_0x1c40dd(0x21f)]['asObservable']()),u(this,'_state'),u(this,_0x1c40dd(0x35b),!0x1),u(this,_0x1c40dd(0x469),''),u(this,_0x1c40dd(0x3f4),0x0),u(this,_0x1c40dd(0x518),this['state$'][_0x1c40dd(0x2e1)](v['map'](_0x3ecb23=>_0x3ecb23?_0x3ecb23[_0x1c40dd(0x29a)]:U[_0x1c40dd(0x2f5)]),v[_0x1c40dd(0x59c)](0x1))),u(this,_0x1c40dd(0x23a),!0x1),u(this,_0x1c40dd(0x3c8),[]),(this[_0x1c40dd(0x3a9)]=_0x3ed9f6,this['session']=_0x42a5b3,this[_0x1c40dd(0x54b)]=_0x44700a,this[_0x1c40dd(0x311)]=_0x35d8c3,this[_0x1c40dd(0x56f)]=_0x2f7773,this[_0x1c40dd(0x43b)]=_0x31f340,this['_localeService']=_0x1ab74,this[_0x1c40dd(0x5ac)]=_0x4bacd9,this[_0x1c40dd(0x483)]=_0x4c1aa7,this['_commandService']=_0x3b2397,this[_0x1c40dd(0x541)]=_0x9439dc,this[_0x1c40dd(0x1d8)]=_0x3a260c,this[_0x1c40dd(0x3b5)]=_0x1e400f);}get[_0x2914c(0x313)](){return this['_state'];}async[_0x2914c(0x4ea)](){const _0x5bf73c=_0x2914c;if(this[_0x5bf73c(0x313)])throw new Error(_0x5bf73c(0x374));await this[_0x5bf73c(0x1f9)]();}['pauseCollaboration'](){const _0x43ae22=_0x2914c;return this[_0x43ae22(0x35b)]=!0x0,a['toDisposable'](()=>{const _0x3f0e02=_0x43ae22;this[_0x3f0e02(0x35b)]=!0x1,this[_0x3f0e02(0x28c)]();});}[_0x2914c(0x3c9)](_0x568073){const _0xab4c5a=_0x2914c;this[_0xab4c5a(0x1f2)]=_0x568073,this['_state$'][_0xab4c5a(0x49a)](_0x568073);}async[_0x2914c(0x1f9)](){const _0x1c16fa=_0x2914c;var _0x5c684c;this[_0x1c16fa(0x3c9)](await this[_0x1c16fa(0x23d)]()),this[_0x1c16fa(0x3b5)]&&((_0x5c684c=this[_0x1c16fa(0x3b5)])==null||_0x5c684c['editingUnit'](this['unitID']),this['disposeWithMe'](this[_0x1c16fa(0x3b5)][_0x1c16fa(0x222)](this[_0x1c16fa(0x3a9)])[_0x1c16fa(0x24b)](_0x1f2e57=>{const _0x29fb29=_0x1c16fa;this[_0x29fb29(0x483)][_0x29fb29(0x387)](_0x29fb29(0x229),'editing\x20status\x20changed\x20to',_0x1f2e57),_0x1f2e57===Dt['OTHER_CLIENTS_EDITING']?(this[_0x29fb29(0x541)][_0x29fb29(0x408)]({'content':this[_0x29fb29(0x304)]['t'](_0x29fb29(0x44e)),'type':X[_0x29fb29(0x1b2)][_0x29fb29(0x26c)]}),this[_0x29fb29(0x1d8)][_0x29fb29(0x380)](new C[(_0x29fb29(0x324))](this[_0x29fb29(0x3a9)])['id'],!0x1)):this[_0x29fb29(0x1d8)]['updatePermissionPoint'](new C[(_0x29fb29(0x324))](this[_0x29fb29(0x3a9)])['id'],!0x0);})));let _0x4365f5=!0x1;return this[_0x1c16fa(0x449)](this[_0x1c16fa(0x1eb)][_0x1c16fa(0x51f)][_0x1c16fa(0x24b)](_0x105e40=>{const _0x386d14=_0x1c16fa;_0x105e40===H[_0x386d14(0x475)]?this[_0x386d14(0x2ad)](_0x4365f5):_0x105e40===H[_0x386d14(0x2f5)]&&(_0x4365f5=!0x0,this[_0x386d14(0x37b)]());})),this[_0x1c16fa(0x449)](this['session'][_0x1c16fa(0x339)][_0x1c16fa(0x24b)](_0x4c202b=>{const _0x5b8909=_0x1c16fa;try{switch(_0x4c202b[_0x5b8909(0x57f)]){case _[_0x5b8909(0x5bf)][_0x5b8909(0x34f)]:{this[_0x5b8909(0x33f)](_[_0x5b8909(0x24f)](_0x4c202b[_0x5b8909(0x498)]));break;}case _[_0x5b8909(0x5bf)][_0x5b8909(0x4d6)]:{this[_0x5b8909(0x407)](_0x4c202b[_0x5b8909(0x498)]);break;}case _['CollaborationEvent'][_0x5b8909(0x276)]:{this[_0x5b8909(0x507)]();break;}case _[_0x5b8909(0x5bf)][_0x5b8909(0x506)]:{this['_onFetchMissResult'](_0x4c202b['data'][_0x5b8909(0x370)][_0x5b8909(0x53b)](_0x1c96cc=>_[_0x5b8909(0x24f)](_0x1c96cc)));break;}case _['CollaborationEvent'][_0x5b8909(0x345)]:this[_0x5b8909(0x507)]({'isPermissionRej':!0x0});}}catch(_0x98fd6d){throw console[_0x5b8909(0x219)](_0x5b8909(0x52e),_0x98fd6d),_0x98fd6d;}})),this[_0x1c16fa(0x1f2)];}[_0x2914c(0x294)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x5b7d9a=_0x2914c;if(this['_transitionLocked'])throw new Error('[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.');this[_0x5b7d9a(0x23a)]=!0x0;}[_0x2914c(0x515)](_0x4536d7){const _0x22ba87=_0x2914c;this[_0x22ba87(0x40f)](),this[_0x22ba87(0x3c9)](this[_0x22ba87(0x1f2)][_0x22ba87(0x468)](_0x4536d7)),this[_0x22ba87(0x294)]();}[_0x2914c(0x33f)](_0x2c8a2b){const _0x2dbc34=_0x2914c;if(!(_0x2c8a2b[_0x2dbc34(0x34d)]<=this['_revisionService'][_0x2dbc34(0x27c)](this[_0x2dbc34(0x3a9)]))){if(this[_0x2dbc34(0x35b)]){this[_0x2dbc34(0x3c8)][_0x2dbc34(0x4ed)](_0x2c8a2b);return;}this[_0x2dbc34(0x547)](_0x2c8a2b);}}[_0x2914c(0x28c)](){const _0x3a1c83=_0x2914c;this['_remoteChangesetQueue'][_0x3a1c83(0x1ca)](_0xfc5cdf=>this['_applyRemoteChangeset'](_0xfc5cdf)),this['_remoteChangesetQueue']=[];}[_0x2914c(0x547)](_0x1164a4){const _0x3a11ac=_0x2914c,_0x26937e=this['_compressMutationService'][_0x3a11ac(0x5e4)][_0x3a11ac(0x3cd)](this[_0x3a11ac(0x43b)][_0x3a11ac(0x5e4)][_0x3a11ac(0x217)]()[_0x3a11ac(0x47a)])(_0x1164a4[_0x3a11ac(0x433)],null)||_0x1164a4[_0x3a11ac(0x433)],_0x49ce95={..._0x1164a4,'mutations':_0x26937e};this[_0x3a11ac(0x40f)](),this[_0x3a11ac(0x3c9)](this[_0x3a11ac(0x1f2)][_0x3a11ac(0x1ed)](_0x49ce95)),this[_0x3a11ac(0x294)]();}[_0x2914c(0x407)](_0x2a5ae5){const _0x2e0dcf=_0x2914c;this[_0x2e0dcf(0x40f)](),this[_0x2e0dcf(0x3c9)](this['_state'][_0x2e0dcf(0x223)](_0x2a5ae5)),this['_unlockTransition']();}[_0x2914c(0x507)](_0x24ca7e){const _0x3fbc57=_0x2914c;this[_0x3fbc57(0x40f)](),this['_updateState'](this[_0x3fbc57(0x1f2)][_0x3fbc57(0x1e1)](_0x24ca7e)),this[_0x3fbc57(0x294)]();}[_0x2914c(0x29e)](_0xa0485){const _0x539029=_0x2914c;if(!(this[_0x539029(0x1f2)]instanceof x))throw new TypeError(_0x539029(0x486));const _0x386b0b=_0xa0485['map'](_0x5dd1ac=>{const _0x1d7fcf=_0x539029,_0x24c026=this[_0x1d7fcf(0x43b)][_0x1d7fcf(0x5e4)][_0x1d7fcf(0x3cd)](this[_0x1d7fcf(0x43b)]['interceptor'][_0x1d7fcf(0x217)]()[_0x1d7fcf(0x47a)])(_0x5dd1ac[_0x1d7fcf(0x433)],null)||_0x5dd1ac[_0x1d7fcf(0x433)];return{..._0x5dd1ac,'mutations':_0x24c026};});this['_lockTransition'](),this['_updateState'](this[_0x539029(0x1f2)][_0x539029(0x364)](_0x386b0b)),this['_unlockTransition']();}[_0x2914c(0x37b)](){const _0x27cae6=_0x2914c;this['_lockTransition'](),this[_0x27cae6(0x3c9)](this[_0x27cae6(0x1f2)][_0x27cae6(0x44a)]()),this[_0x27cae6(0x294)]();}[_0x2914c(0x2ad)](_0x43893b=!0x1){const _0x320a21=_0x2914c;this[_0x320a21(0x40f)](),this[_0x320a21(0x3c9)](this['_state'][_0x320a21(0x3e5)]()),this[_0x320a21(0x294)]();const _0x531c78=this[_0x320a21(0x1f2)];_0x43893b&&_0x531c78 instanceof ie&&(this[_0x320a21(0x40f)](),this[_0x320a21(0x3c9)](_0x531c78[_0x320a21(0x38f)]()),this[_0x320a21(0x294)]());}async[_0x2914c(0x23d)](){return new Promise(_0x157b97=>{const _0x10cd00=_0x190c;this[_0x10cd00(0x1eb)]['sessionStatus$'][_0x10cd00(0x2e1)](v[_0x10cd00(0x5ba)](0x1))[_0x10cd00(0x24b)](async _0x4f4be6=>{_0x157b97(await this['_createInitialStateImpl'](_0x4f4be6===H['ONLINE']));});});}[_0x2914c(0x3a3)](){const _0x1fdd49=this['unitID'];return{'onStateChange':(_0x4295a4,_0x23a35b)=>{const _0x2b2a5d=_0x190c;if(_0x4295a4!==this[_0x2b2a5d(0x1f2)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x4295a4[_0x2b2a5d(0x29a)]+'\x0aAfter:\x20'+_0x23a35b[_0x2b2a5d(0x29a)]+_0x2b2a5d(0x393)+this[_0x2b2a5d(0x1f2)]['status']);this[_0x2b2a5d(0x3c9)](_0x23a35b);},'onSendChangeset':_0x342cdf=>{const _0x23afd2=_0x190c;_0x342cdf[_0x23afd2(0x2d7)]||(_0x342cdf[_0x23afd2(0x2d7)]=this[_0x23afd2(0x469)],_0x342cdf[_0x23afd2(0x558)]=++this['_changesetReqId']);const _0x26d610={'eventID':_[_0x23afd2(0x5bf)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x342cdf[_0x23afd2(0x3a9)],'unitType':this[_0x23afd2(0x54b)],'changeset':_0x342cdf,'memberID':this[_0x23afd2(0x1eb)]['getMemberID']()}};this[_0x23afd2(0x1eb)][_0x23afd2(0x225)](_0x26d610,this['unitID']);},'onMissingChangesets':({from:_0x284945,to:_0x1b59b0})=>{const _0x4026a6=_0x190c;this[_0x4026a6(0x483)]['debug'](_0x4026a6(0x229),'fetching\x20missing\x20changesets\x20from\x20'+_0x284945+_0x4026a6(0x3b7)+_0x1b59b0);const _0x47d629={'eventID':_['CollaborationEvent'][_0x4026a6(0x453)],'data':{'unitID':_0x1fdd49,'unitType':this[_0x4026a6(0x54b)],'from':_0x284945,'to':_0x1b59b0}};this['session'][_0x4026a6(0x225)](_0x47d629,this['unitID']);}};}async[_0x2914c(0x39e)](_0x49b151){const _0x5b18a5=_0x2914c;var _0x21d1bf,_0x1e0c73;const _0x3af48f=await this[_0x5b18a5(0x56f)]['loadOfflineData'](this[_0x5b18a5(0x3a9)]),_0x445e41=(_0x21d1bf=_0x3af48f==null?void 0x0:_0x3af48f[_0x5b18a5(0x433)])!=null?_0x21d1bf:[],_0x15c00a=(_0x1e0c73=_0x3af48f==null?void 0x0:_0x3af48f[_0x5b18a5(0x2b5)])!=null?_0x1e0c73:null,_0x51b0ab=!!(_0x15c00a!=null&&_0x15c00a[_0x5b18a5(0x2d7)])&&!!(_0x15c00a!=null&&_0x15c00a[_0x5b18a5(0x558)]);this[_0x5b18a5(0x469)]=_0x51b0ab?_0x15c00a['sid']:Os(),this[_0x5b18a5(0x3f4)]=_0x51b0ab?_0x15c00a[_0x5b18a5(0x558)]:0x0;const _0xcb8af0=this['unitID'];try{this['_replayCachedMutations'](_0x15c00a,_0x445e41);}catch(_0x5587f3){this[_0x5b18a5(0x483)][_0x5b18a5(0x219)](_0x5587f3);}const _0x38f847=this[_0x5b18a5(0x3a3)]();if(_0x49b151){const _0x33f1fe=Ut(this[_0x5b18a5(0x311)],_0xcb8af0,this[_0x5b18a5(0x54b)],_0x15c00a,_0x445e41,_0x38f847);return _0x33f1fe instanceof k?_0x33f1fe[_0x5b18a5(0x1f7)]():(_0x33f1fe instanceof B||_0x33f1fe instanceof W)&&_0x33f1fe[_0x5b18a5(0x20d)](),_0x33f1fe;}return this['_injector'][_0x5b18a5(0x1e2)](G,_0xcb8af0,this[_0x5b18a5(0x54b)],_0x15c00a,_0x445e41,_0x38f847);}[_0x2914c(0x5a6)](_0x451639,_0x26098e){const _0x394494=_0x2914c;var _0x1c7822,_0x10bead;const _0x15c245=this[_0x394494(0x43b)]['interceptor'][_0x394494(0x3cd)](this[_0x394494(0x43b)][_0x394494(0x5e4)][_0x394494(0x217)]()[_0x394494(0x47a)]);(_0x1c7822=_0x15c245((_0x451639==null?void 0x0:_0x451639[_0x394494(0x433)])||[],null))==null||_0x1c7822['forEach'](_0x40fc89=>this[_0x394494(0x5d2)][_0x394494(0x3f1)](_0x40fc89['id'],_0x40fc89[_0x394494(0x3af)])),(_0x10bead=_0x15c245(_0x26098e||[],null))==null||_0x10bead[_0x394494(0x1ca)](_0x2aa872=>this[_0x394494(0x5d2)][_0x394494(0x3f1)](_0x2aa872['id'],_0x2aa872[_0x394494(0x3af)]));}},exports[_0x2914c(0x2e7)]=ze([p(0x3,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),p(0x4,a['Inject'](exports['LocalCacheService'])),p(0x5,a[_0x2914c(0x5d4)](_[_0x2914c(0x496)])),p(0x6,a[_0x2914c(0x5d4)](a['LocaleService'])),p(0x7,a[_0x2914c(0x5d4)](_['RevisionService'])),p(0x8,a[_0x2914c(0x485)]),p(0x9,a['ICommandService']),p(0xa,A[_0x2914c(0x561)]),p(0xb,a[_0x2914c(0x323)]),p(0xc,a['Optional'](Re))],exports[_0x2914c(0x2e7)]),exports['DocCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x2f06c9,_0x163c89,_0x36ad53,_0x469531,_0x15a4a7,_0x100ed5,_0x34fee2,_0x175ada,_0x588221,_0x14b412,_0x49b89f,_0x47f821,_0x5f1077,_0x52a433,_0x397868,_0x4e86f8,_0x1c4bc7){const _0x711cd=_0x2914c;super(_0x2f06c9,_0x36ad53,_0x163c89,_0x469531,_0x15a4a7,_0x100ed5,_0x34fee2,_0x175ada,_0x5f1077,_0x52a433,_0x397868,_0x4e86f8,_0x1c4bc7),this[_0x711cd(0x3a9)]=_0x2f06c9,this[_0x711cd(0x355)]=_0x163c89,this[_0x711cd(0x454)]=_0x588221,this[_0x711cd(0x4db)]=_0x14b412,this['_docTransformSelectionsService']=_0x49b89f,this['_docSyncEditingCollabCursorService']=_0x47f821;}[_0x2914c(0x3a3)](){const _0x87444f=_0x2914c,_0x2e7860=super[_0x87444f(0x3a3)]();return _0x2e7860['onTransformIME']=_0x151687=>this[_0x87444f(0x4db)][_0x87444f(0x307)](_0x151687),_0x2e7860[_0x87444f(0x285)]=_0x127e1b=>this[_0x87444f(0x362)][_0x87444f(0x1f8)](_0x127e1b),_0x2e7860[_0x87444f(0x452)]=_0x32086c=>this[_0x87444f(0x56b)][_0x87444f(0x5b9)](_0x32086c),_0x2e7860[_0x87444f(0x4a1)]=_0x1db520=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x1db520),_0x2e7860;}async['_init'](){const _0x3fa4c3=_0x2914c,_0xc9c6db=await super[_0x3fa4c3(0x1f9)]();return this['_docStateChangeManagerService'][_0x3fa4c3(0x1ba)][_0x3fa4c3(0x2e1)](v['takeUntil'](this['dispose$']))[_0x3fa4c3(0x24b)](_0x33edd3=>{const _0x11de19=_0x3fa4c3;if(_0x33edd3==null)return;const {unitId:_0x317f12,redoState:_0x253968,commandId:_0x251b71}=_0x33edd3;if(_0x317f12!==this[_0x11de19(0x3a9)])return;const _0x463905={'id':_0x251b71,'type':a[_0x11de19(0x458)][_0x11de19(0x526)],'params':{'unitId':_0x317f12,'actions':_0x253968['actions'],'textRanges':null}};this[_0x11de19(0x515)](_0x463905);}),_0xc9c6db;}},exports[_0x2914c(0x3e0)]=ze([p(0x3,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),p(0x4,a[_0x2914c(0x5d4)](exports[_0x2914c(0x467)])),p(0x5,a[_0x2914c(0x5d4)](_['CompressMutationService'])),p(0x6,a['Inject'](a[_0x2914c(0x372)])),p(0x7,a['Inject'](_[_0x2914c(0x1fc)])),p(0x8,a[_0x2914c(0x5d4)](N[_0x2914c(0x3b2)])),p(0x9,a[_0x2914c(0x5d4)](fe)),p(0xa,a[_0x2914c(0x5d4)](pe)),p(0xb,a[_0x2914c(0x5d4)](qe)),p(0xc,a['ILogService']),p(0xd,a[_0x2914c(0x1d2)]),p(0xe,A['IMessageService']),p(0xf,a[_0x2914c(0x323)]),p(0x10,a[_0x2914c(0x563)](Re))],exports['DocCollaborationEntity']),exports[_0x2914c(0x2ec)]=class extends exports['CollaborationEntity']{constructor(_0x37489b,_0x33e1ba,_0x49d907,_0x50c117,_0x45e91f,_0x5306a6,_0x322183,_0x30ce08,_0x9c5426,_0x274710,_0x5df257,_0x37bd55,_0x58aa23,_0x43edc7){const _0x1780cf=_0x2914c;super(_0x37489b,_0x49d907,_0x33e1ba,_0x50c117,_0x45e91f,_0x5306a6,_0x322183,_0x30ce08,_0x274710,_0x5df257,_0x37bd55,_0x58aa23,_0x43edc7),this['unitID']=_0x37489b,this['type']=_0x33e1ba,this[_0x1780cf(0x457)]=_0x9c5426;}[_0x2914c(0x3a3)](){const _0x52ddd6=_0x2914c,_0x3bc3e4=super[_0x52ddd6(0x3a3)]();return _0x3bc3e4[_0x52ddd6(0x285)]=_0x547b30=>this['_sheetTransformSelectionsService'][_0x52ddd6(0x1f8)](_0x547b30),_0x3bc3e4;}async[_0x2914c(0x1f9)](){const _0x4c5c45=_0x2914c,_0x591689=await super[_0x4c5c45(0x1f9)]();return this[_0x4c5c45(0x449)](this['_commandService'][_0x4c5c45(0x545)]((_0x59c069,_0xda02c)=>{const _0x15f016=_0x4c5c45;if(_0x59c069['type']!==a[_0x15f016(0x458)][_0x15f016(0x526)]||_0xda02c!=null&&_0xda02c[_0x15f016(0x5af)]||_0xda02c!=null&&_0xda02c[_0x15f016(0x40a)])return;const _0x48526b=_0x59c069[_0x15f016(0x3af)];if((_0x48526b==null?void 0x0:_0x48526b[_0x15f016(0x41c)])!==this[_0x15f016(0x3a9)])return;const _0x31a151=_0x59c069,_0x2b89c6=this[_0x15f016(0x43b)][_0x15f016(0x5e4)][_0x15f016(0x3cd)](this[_0x15f016(0x43b)][_0x15f016(0x5e4)][_0x15f016(0x217)]()[_0x15f016(0x50e)])([_0x31a151],null)||[_0x31a151];this['_onLocalMutation'](_0x2b89c6[0x0]);})),_0x591689;}},exports[_0x2914c(0x2ec)]=ze([p(0x3,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),p(0x4,a[_0x2914c(0x5d4)](exports[_0x2914c(0x467)])),p(0x5,a[_0x2914c(0x5d4)](_['CompressMutationService'])),p(0x6,a['Inject'](a['LocaleService'])),p(0x7,a[_0x2914c(0x5d4)](_['RevisionService'])),p(0x8,a['Inject'](Ie)),p(0x9,a['ILogService']),p(0xa,a[_0x2914c(0x1d2)]),p(0xb,A[_0x2914c(0x561)]),p(0xc,a[_0x2914c(0x323)]),p(0xd,a[_0x2914c(0x563)](Re))],exports[_0x2914c(0x2ec)]);var qs=Object['defineProperty'],zs=Object[_0x2914c(0x5df)],Js=(_0xd203a3,_0x22ade0,_0x57f5ea,_0x3c8d29)=>{const _0x52c3f9=_0x2914c;for(var _0x2c1e5e=_0x3c8d29>0x1?void 0x0:_0x3c8d29?zs(_0x22ade0,_0x57f5ea):_0x22ade0,_0x2207ab=_0xd203a3[_0x52c3f9(0x286)]-0x1,_0x358635;_0x2207ab>=0x0;_0x2207ab--)(_0x358635=_0xd203a3[_0x2207ab])&&(_0x2c1e5e=(_0x3c8d29?_0x358635(_0x22ade0,_0x57f5ea,_0x2c1e5e):_0x358635(_0x2c1e5e))||_0x2c1e5e);return _0x3c8d29&&_0x2c1e5e&&qs(_0x22ade0,_0x57f5ea,_0x2c1e5e),_0x2c1e5e;},Ne=(_0x1f55fe,_0x33ccd7)=>(_0x590b1a,_0x51dcd5)=>_0x33ccd7(_0x590b1a,_0x51dcd5,_0x1f55fe);exports[_0x2914c(0x5dc)]=class extends a[_0x2914c(0x325)]{constructor(_0x1afced,_0x336e52,_0x5782ee){const _0x47c560=_0x2914c;super(),u(this,_0x47c560(0x538),new Map()),u(this,_0x47c560(0x290),new v['Subject']()),(this['_injector']=_0x1afced,this[_0x47c560(0x49c)]=_0x336e52,this[_0x47c560(0x1cc)]=_0x5782ee,this[_0x47c560(0x1f9)]());}['dispose'](){const _0x397f86=_0x2914c;super[_0x397f86(0x377)](),this[_0x397f86(0x538)][_0x397f86(0x1ca)](_0x54e42e=>_0x54e42e['dispose']()),this['_entities']['clear']();}['getCollabEntity'](_0x579ebd){const _0x1c9938=_0x2914c;var _0x4f1b96;return(_0x4f1b96=this['_entities'][_0x1c9938(0x24c)](_0x579ebd))!=null?_0x4f1b96:null;}[_0x2914c(0x35a)](_0x426298){const _0x3c0fbf=_0x2914c,_0x2f42c1=this[_0x3c0fbf(0x299)](_0x426298);return _0x2f42c1?v['of'](_0x2f42c1):this[_0x3c0fbf(0x290)][_0x3c0fbf(0x2e1)](E['filter'](_0x88606=>_0x88606['unitID']===_0x426298));}['_init'](){const _0x406b87=_0x2914c;this[_0x406b87(0x1cc)]['getTypeOfUnitAdded$'](a[_0x406b87(0x3ed)][_0x406b87(0x55c)])[_0x406b87(0x2e1)](v[_0x406b87(0x432)](this[_0x406b87(0x29c)]),E[_0x406b87(0x4f6)](0x10))[_0x406b87(0x24b)](async _0x5a1a0a=>{const _0x1971ba=_0x406b87,_0x4b1f53=_0x5a1a0a['getUnitId'](),_0x5e36a7=await this['_startCollaboration'](_0x4b1f53,$[_0x1971ba(0x55c)]);this[_0x1971ba(0x538)][_0x1971ba(0x41d)](_0x4b1f53,_0x5e36a7);}),this['_univerInstanceService'][_0x406b87(0x4dd)](a[_0x406b87(0x3ed)][_0x406b87(0x1e3)])[_0x406b87(0x2e1)](v[_0x406b87(0x432)](this[_0x406b87(0x29c)]),E[_0x406b87(0x4f6)](0x10))[_0x406b87(0x2e1)](E[_0x406b87(0x48d)](_0x17a19e=>!_0x17a19e[_0x406b87(0x3f8)]()[_0x406b87(0x349)]('__')))[_0x406b87(0x24b)](async _0x508961=>{const _0x3714c7=_0x406b87,_0x20aed2=_0x508961[_0x3714c7(0x3f8)](),_0x4dcc68=await this[_0x3714c7(0x347)](_0x20aed2,$[_0x3714c7(0x1e3)]);this[_0x3714c7(0x538)]['set'](_0x20aed2,_0x4dcc68);}),v[_0x406b87(0x27d)](this[_0x406b87(0x1cc)][_0x406b87(0x30d)](a['UniverInstanceType'][_0x406b87(0x55c)]),this['_univerInstanceService'][_0x406b87(0x30d)](a[_0x406b87(0x3ed)][_0x406b87(0x1e3)]))[_0x406b87(0x2e1)](v['takeUntil'](this[_0x406b87(0x29c)]))['subscribe'](_0x107f43=>{const _0x5498f4=_0x406b87,_0x4e31a6=_0x107f43[_0x5498f4(0x3f8)](),_0x1217c8=this['_entities'][_0x5498f4(0x24c)](_0x4e31a6);_0x1217c8&&(_0x1217c8[_0x5498f4(0x377)](),this[_0x5498f4(0x538)]['delete'](_0x4e31a6));});}async[_0x2914c(0x347)](_0x32dfbe,_0x240323){const _0x266958=_0x2914c,_0x5cb84b=await this[_0x266958(0x49c)][_0x266958(0x2e2)](_0x32dfbe),_0x276599=this[_0x266958(0x311)][_0x266958(0x1e2)](this[_0x266958(0x1dc)](_0x240323),_0x32dfbe,_0x240323,_0x5cb84b);return await _0x276599['init'](),this[_0x266958(0x290)][_0x266958(0x49a)](_0x276599),_0x276599;}[_0x2914c(0x1dc)](_0x15eedd){const _0x217bc4=_0x2914c;switch(_0x15eedd){case $[_0x217bc4(0x1e3)]:return exports[_0x217bc4(0x3e0)];case $[_0x217bc4(0x55c)]:return exports[_0x217bc4(0x2ec)];default:throw new Error(_0x217bc4(0x4f9)+_0x15eedd);}}},exports['CollaborationController']=Js([Ne(0x0,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),Ne(0x1,a[_0x2914c(0x5d4)](exports[_0x2914c(0x4fa)])),Ne(0x2,a[_0x2914c(0x202)])],exports[_0x2914c(0x5dc)]);const ct=[_0x2914c(0x58c),_0x2914c(0x597),_0x2914c(0x54e),_0x2914c(0x403),_0x2914c(0x4ef),_0x2914c(0x525)];class Je extends a['Disposable']{constructor(){const _0x31817d=_0x2914c;super(...arguments),u(this,_0x31817d(0x5e5),new Map()),u(this,_0x31817d(0x41b),0x0);}[_0x2914c(0x253)](_0x19c61e){const _0x57330b=_0x2914c;if(this[_0x57330b(0x5e5)][_0x57330b(0x5bd)](_0x19c61e))return this['_assignedColors'][_0x57330b(0x24c)](_0x19c61e);const _0x3159e3=ct[this['_colorIndex']];return this[_0x57330b(0x41b)]=(this[_0x57330b(0x41b)]+0x1)%ct['length'],this[_0x57330b(0x5e5)]['set'](_0x19c61e,_0x3159e3),_0x3159e3;}}var Zs=Object[_0x2914c(0x4a2)],Qs=Object['getOwnPropertyDescriptor'],ei=(_0x5bd434,_0x474cf2,_0x520c88,_0x4285c4)=>{const _0x15566e=_0x2914c;for(var _0x127976=_0x4285c4>0x1?void 0x0:_0x4285c4?Qs(_0x474cf2,_0x520c88):_0x474cf2,_0x59849b=_0x5bd434[_0x15566e(0x286)]-0x1,_0x3d37e5;_0x59849b>=0x0;_0x59849b--)(_0x3d37e5=_0x5bd434[_0x59849b])&&(_0x127976=(_0x4285c4?_0x3d37e5(_0x474cf2,_0x520c88,_0x127976):_0x3d37e5(_0x127976))||_0x127976);return _0x4285c4&&_0x127976&&Zs(_0x474cf2,_0x520c88,_0x127976),_0x127976;},K=(_0x251b12,_0x2a344e)=>(_0x27ef49,_0x50192d)=>_0x2a344e(_0x27ef49,_0x50192d,_0x251b12);const ti=0x12c,si=0x64;let ke=class extends a['RxDisposable']{constructor(_0x424e1f,_0x164adc,_0x377a29,_0x49e554,_0x1911aa,_0x5acf8c,_0x5cea61,_0x4558d1,_0x87e6ef){const _0x5396d8=_0x2914c;super(),u(this,_0x5396d8(0x41f),!0x1),u(this,_0x5396d8(0x1f9),!0x1),u(this,_0x5396d8(0x4e0),new v[(_0x5396d8(0x5b4))](new Map())),u(this,'cursorInfo$',this['_cursorInfo$'][_0x5396d8(0x33d)]()),u(this,'_roomMembers$',new v[(_0x5396d8(0x5b4))]([])),u(this,_0x5396d8(0x2c1),this['_roomMembers$']['pipe'](v[_0x5396d8(0x30c)](ti))),u(this,_0x5396d8(0x3c7),a[_0x5396d8(0x305)](_0x459b9c=>{const _0x304089=_0x5396d8,_0x34cdc7={'eventID':_[_0x304089(0x5bf)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x304089(0x56d)][_0x304089(0x499)](),'selection':yt(_0x459b9c)}};this[_0x304089(0x56d)][_0x304089(0x225)](_0x34cdc7,this[_0x304089(0x3a9)]);},si)),(this[_0x5396d8(0x3a9)]=_0x424e1f,this['_session']=_0x164adc,this[_0x5396d8(0x311)]=_0x377a29,this[_0x5396d8(0x2b4)]=_0x49e554,this[_0x5396d8(0x263)]=_0x1911aa,this[_0x5396d8(0x46d)]=_0x5acf8c,this[_0x5396d8(0x249)]=_0x5cea61,this[_0x5396d8(0x1cc)]=_0x4558d1,this[_0x5396d8(0x5d2)]=_0x87e6ef);}get['cursorInfo'](){const _0x49ff65=_0x2914c;return this[_0x49ff65(0x4e0)][_0x49ff65(0x3b1)]();}get[_0x2914c(0x4ca)](){const _0x570cc3=_0x2914c;return this[_0x570cc3(0x402)][_0x570cc3(0x3b1)]();}['dispose'](){const _0x32d0e3=_0x2914c;super[_0x32d0e3(0x377)](),this[_0x32d0e3(0x4e0)][_0x32d0e3(0x49a)](new Map()),this[_0x32d0e3(0x4e0)][_0x32d0e3(0x343)](),this[_0x32d0e3(0x402)][_0x32d0e3(0x49a)]([]),this[_0x32d0e3(0x402)][_0x32d0e3(0x343)]();}[_0x2914c(0x4ea)](){const _0x32d49b=_0x2914c;this['_init']||(this[_0x32d49b(0x1f9)]=!0x0,this[_0x32d49b(0x56d)][_0x32d49b(0x51f)][_0x32d49b(0x2e1)](v[_0x32d49b(0x432)](this[_0x32d49b(0x29c)]))[_0x32d49b(0x24b)](_0x3f8dc9=>{const _0x2e8376=_0x32d49b;_0x3f8dc9===H[_0x2e8376(0x475)]?this['_toggleOnline']():this[_0x2e8376(0x37b)]();}),this[_0x32d49b(0x56d)][_0x32d49b(0x339)]['pipe'](v[_0x32d49b(0x432)](this[_0x32d49b(0x29c)]))[_0x32d49b(0x24b)](_0x3a717c=>{const _0xc4f6f4=_0x32d49b,_0x560990=_0x3a717c[_0xc4f6f4(0x57f)];_0x560990===_[_0xc4f6f4(0x5bf)]['UPDATE_CURSOR']&&this[_0xc4f6f4(0x3fa)](_0x3a717c),_0x560990===_[_0xc4f6f4(0x5bf)][_0xc4f6f4(0x397)]&&this['_onCursorDelete'](_0x3a717c);}),this[_0x32d49b(0x449)](this[_0x32d49b(0x5d2)][_0x32d49b(0x545)](_0x589bdd=>{const _0x194d96=_0x32d49b,_0x4c3564=_0x589bdd[_0x194d96(0x3af)];_0x4c3564!=null&&this[_0x194d96(0x41f)]&&_0x589bdd['id']===se['SetTextSelectionsOperation']['id']&&_0x4c3564['unitId']===this[_0x194d96(0x3a9)]&&_0x4c3564['isEditing']===!0x1&&this[_0x194d96(0x3c7)](_0x4c3564[_0x194d96(0x354)]);})),this['_syncEditingCollabCursorService'][_0x32d49b(0x4f4)][_0x32d49b(0x2e1)](v[_0x32d49b(0x432)](this[_0x32d49b(0x29c)]))['subscribe'](_0x251435=>{const _0x22abad=_0x32d49b;if((_0x251435==null?void 0x0:_0x251435[_0x22abad(0x3a9)])!==this[_0x22abad(0x3a9)])return;const _0x3ef2e4={'eventID':_[_0x22abad(0x5bf)]['UPDATE_CURSOR'],'data':_0x251435};this[_0x22abad(0x3fa)](_0x3ef2e4);}),this['disposeWithMe'](this[_0x32d49b(0x5d2)][_0x32d49b(0x545)](_0x3a105b=>{const _0xf5cf6b=_0x32d49b;if(_0x3a105b[_0xf5cf6b(0x3af)]==null)return;const _0x3b16c9=_0x3a105b['params'];if(_0x3a105b['id']!==se[_0xf5cf6b(0x462)]['id']||_0x3b16c9['unitId']!==this['unitID'])return;const _0x240536={'id':_0xf5cf6b(0x2c7),'params':_0x3b16c9},_0x5da8c8=this[_0xf5cf6b(0x284)];for(const [_0x410e3b,_0x437477]of _0x5da8c8){const _0x495b43={'id':_0xf5cf6b(0x2c7),'params':{'unitId':this[_0xf5cf6b(0x3a9)],'actions':null,'textRanges':_0x437477[_0xf5cf6b(0x354)]}},_0x5f3c1d=this[_0xf5cf6b(0x249)][_0xf5cf6b(0x2ce)](_0x240536,_0x495b43,!0x1);if(_[_0xf5cf6b(0x44b)](_0x5f3c1d))throw _0x5f3c1d[_0xf5cf6b(0x219)];_0x5da8c8['set'](_0x410e3b,{..._0x437477,'ranges':_0x5f3c1d['m2Prime'][_0xf5cf6b(0x3af)]['textRanges']});}queueMicrotask(()=>{const _0x4be28f=_0xf5cf6b;this[_0x4be28f(0x4e0)][_0x4be28f(0x49a)](_0x5da8c8);});})));}[_0x2914c(0x3fa)](_0x3f6ed3){const _0x32d83c=_0x2914c;var _0x19e2a5,_0x5cfe7f;const {memberID:_0x4bbce2,selection:_0x346115}=_0x3f6ed3['data'],_0x13c16b=Hs(_0x346115),_0x558e49=(_0x5cfe7f=(_0x19e2a5=this[_0x32d83c(0x263)][_0x32d83c(0x282)](this[_0x32d83c(0x3a9)],_0x4bbce2))==null?void 0x0:_0x19e2a5[_0x32d83c(0x593)])!=null?_0x5cfe7f:_0x32d83c(0x250),_0x3ec09b={'color':this[_0x32d83c(0x2b4)]['assignAColorForMemberID'](_0x4bbce2),'name':_0x558e49,'ranges':_0x13c16b},_0x37ad6d=this[_0x32d83c(0x284)];_0x37ad6d['set'](_0x4bbce2,_0x3ec09b),this[_0x32d83c(0x4e0)][_0x32d83c(0x49a)](_0x37ad6d);}[_0x2914c(0x4c0)](_0x48e00b){const _0x441270=_0x2914c,{memberID:_0x4ed569}=_0x48e00b[_0x441270(0x498)],_0x30cb68=this[_0x441270(0x284)];_0x30cb68[_0x441270(0x2fd)](_0x4ed569),this[_0x441270(0x4e0)][_0x441270(0x49a)](_0x30cb68);}['_toggleOnline'](){const _0x52d6b8=_0x2914c;var _0x368b2b;if(this[_0x52d6b8(0x41f)]=!0x0,((_0x368b2b=this[_0x52d6b8(0x1cc)][_0x52d6b8(0x592)]())==null?void 0x0:_0x368b2b['getUnitId']())!==this[_0x52d6b8(0x3a9)])return;const _0x53aa72=this[_0x52d6b8(0x311)][_0x52d6b8(0x24c)](se[_0x52d6b8(0x5ad)])[_0x52d6b8(0x54d)]();Array[_0x52d6b8(0x5dd)](_0x53aa72)&&_0x53aa72[_0x52d6b8(0x286)]>0x0&&this['_updateLocalCursor'](_0x53aa72);}[_0x2914c(0x37b)](){const _0x1b2fb9=_0x2914c;this[_0x1b2fb9(0x41f)]=!0x1;}};ke=ei([K(0x2,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),K(0x3,a[_0x2914c(0x5d4)](Je)),K(0x4,a[_0x2914c(0x5d4)](q)),K(0x5,a[_0x2914c(0x5d4)](qe)),K(0x6,_[_0x2914c(0x456)]),K(0x7,a[_0x2914c(0x202)]),K(0x8,a[_0x2914c(0x1d2)])],ke);var ii=Object['defineProperty'],ni=Object[_0x2914c(0x5df)],ri=(_0x20efb2,_0x43041c,_0x4dad04,_0x411557)=>{for(var _0x360aab=_0x411557>0x1?void 0x0:_0x411557?ni(_0x43041c,_0x4dad04):_0x43041c,_0x4e435c=_0x20efb2['length']-0x1,_0x1c0652;_0x4e435c>=0x0;_0x4e435c--)(_0x1c0652=_0x20efb2[_0x4e435c])&&(_0x360aab=(_0x411557?_0x1c0652(_0x43041c,_0x4dad04,_0x360aab):_0x1c0652(_0x360aab))||_0x360aab);return _0x411557&&_0x360aab&&ii(_0x43041c,_0x4dad04,_0x360aab),_0x360aab;},Q=(_0x3b9c11,_0x4de125)=>(_0x164c48,_0x34bbfc)=>_0x4de125(_0x164c48,_0x34bbfc,_0x3b9c11);const oi=0x12c,ai=0x64,ci=()=>{let _0x58e962=[],_0xe055c7=!0x1;return _0x22104b=>{const _0x234e59=_0x190c;_0x58e962[_0x234e59(0x4ed)](_0x22104b),_0xe055c7||(_0xe055c7=!0x0,setTimeout(()=>{_0x58e962['forEach'](_0x355052=>_0x355052()),_0x58e962=[],_0xe055c7=!0x1;}));};};let Be=class extends a[_0x2914c(0x325)]{constructor(_0x4b3c2a,_0x4866b0,_0x35e775,_0x266512,_0xd5a168,_0x68c0c3,_0x49b68d,_0x411dda){const _0x45d4d6=_0x2914c;super(),u(this,'_online',!0x1),u(this,_0x45d4d6(0x1f9),!0x1),u(this,'_cursorInfo$',new v[(_0x45d4d6(0x5b4))](new Map())),u(this,_0x45d4d6(0x50c),this[_0x45d4d6(0x4e0)][_0x45d4d6(0x33d)]()),u(this,_0x45d4d6(0x402),new v[(_0x45d4d6(0x5b4))]([])),u(this,_0x45d4d6(0x2c1),this[_0x45d4d6(0x402)][_0x45d4d6(0x2e1)](v[_0x45d4d6(0x30c)](oi))),u(this,'_updateLocalCursor',a['debounce']((_0x308497,_0x5f0833)=>{const _0x28138e=_0x45d4d6,_0x3fb4e2={'eventID':_['CollaborationEvent'][_0x28138e(0x4ba)],'data':{'unitID':this['unitID'],'memberID':this[_0x28138e(0x56d)][_0x28138e(0x499)](),'selection':et[_0x28138e(0x2d2)](_0x308497,_0x5f0833[_0x28138e(0x2f8)])}};this[_0x28138e(0x56d)][_0x28138e(0x225)](_0x3fb4e2,this['unitID']);},ai)),(this[_0x45d4d6(0x3a9)]=_0x4b3c2a,this[_0x45d4d6(0x56d)]=_0x4866b0,this[_0x45d4d6(0x311)]=_0x35e775,this[_0x45d4d6(0x2b4)]=_0x266512,this[_0x45d4d6(0x263)]=_0xd5a168,this[_0x45d4d6(0x1cc)]=_0x68c0c3,this[_0x45d4d6(0x5d2)]=_0x49b68d,this[_0x45d4d6(0x463)]=_0x411dda);}get[_0x2914c(0x284)](){const _0x59a297=_0x2914c;return this[_0x59a297(0x4e0)][_0x59a297(0x3b1)]();}get[_0x2914c(0x4ca)](){const _0xb25faa=_0x2914c;return this['_roomMembers$'][_0xb25faa(0x3b1)]();}[_0x2914c(0x377)](){const _0x349337=_0x2914c;super[_0x349337(0x377)](),this[_0x349337(0x4e0)][_0x349337(0x49a)](new Map()),this[_0x349337(0x4e0)][_0x349337(0x343)](),this[_0x349337(0x402)][_0x349337(0x49a)]([]),this['_roomMembers$']['complete']();}[_0x2914c(0x4ea)](){const _0x9e6032=_0x2914c;this['_init']||(this['_init']=!0x0,this[_0x9e6032(0x56d)]['sessionStatus$'][_0x9e6032(0x2e1)](v['takeUntil'](this['dispose$']))['subscribe'](_0x314463=>{const _0x4015ae=_0x9e6032;_0x314463===H[_0x4015ae(0x475)]?this[_0x4015ae(0x2ad)]():this[_0x4015ae(0x37b)]();}),this[_0x9e6032(0x56d)][_0x9e6032(0x339)][_0x9e6032(0x2e1)](v['takeUntil'](this[_0x9e6032(0x29c)]))[_0x9e6032(0x24b)](_0xd2530=>{const _0x423fef=_0x9e6032,_0x571d37=_0xd2530['eventID'];_0x571d37===_[_0x423fef(0x5bf)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0xd2530),_0x571d37===_[_0x423fef(0x5bf)][_0x423fef(0x397)]&&this[_0x423fef(0x4c0)](_0xd2530);}),this['_onRefRangeChange'](),this[_0x9e6032(0x449)](this[_0x9e6032(0x5d2)][_0x9e6032(0x545)](_0x5a74e4=>{const _0x1ead81=_0x9e6032;if(this[_0x1ead81(0x41f)]&&_0x5a74e4['id']===C[_0x1ead81(0x460)]['id']&&_0x5a74e4[_0x1ead81(0x3af)][_0x1ead81(0x41c)]===this['unitID']){const _0xb3a6d0=_0x5a74e4[_0x1ead81(0x3af)];this['_updateLocalCursor'](_0xb3a6d0[_0x1ead81(0x471)],_0xb3a6d0[_0x1ead81(0x491)][0x0]);}})));}[_0x2914c(0x3fa)](_0x1ea345){const _0x1de200=_0x2914c;var _0x1fb4a4,_0x47be76;const {memberID:_0x596f39,selection:_0x2e174c}=_0x1ea345[_0x1de200(0x498)],{sheetName:_0x1e3ddb,range:_0x560b11}=et[_0x1de200(0x3eb)](_0x2e174c),_0x330c0a={'name':(_0x47be76=(_0x1fb4a4=this[_0x1de200(0x263)][_0x1de200(0x282)](this['unitID'],_0x596f39))==null?void 0x0:_0x1fb4a4[_0x1de200(0x593)])!=null?_0x47be76:_0x1de200(0x250),'range':this[_0x1de200(0x450)](_0x1e3ddb,_0x560b11),'sheetID':_0x1e3ddb,'color':this[_0x1de200(0x2b4)][_0x1de200(0x253)](_0x596f39),'selection':_0x2e174c},_0x1b35fa=this['cursorInfo'];_0x1b35fa[_0x1de200(0x41d)](_0x596f39,_0x330c0a),this[_0x1de200(0x4e0)]['next'](_0x1b35fa);}[_0x2914c(0x4c0)](_0x2dfa83){const _0xab4e00=_0x2914c,{memberID:_0xe913fe}=_0x2dfa83[_0xab4e00(0x498)],_0x4ac5b3=this[_0xab4e00(0x284)];_0x4ac5b3['delete'](_0xe913fe),this[_0xab4e00(0x4e0)][_0xab4e00(0x49a)](_0x4ac5b3);}[_0x2914c(0x450)](_0x2c9e60,_0x1aa67b){const _0x3ae4dd=_0x2914c;var _0x41ecfd,_0x4745a2;const _0x4f7765=(_0x4745a2=(_0x41ecfd=this[_0x3ae4dd(0x1cc)][_0x3ae4dd(0x1ea)](this['unitID']))==null?void 0x0:_0x41ecfd['getSheetBySheetId'](_0x2c9e60))==null?void 0x0:_0x4745a2[_0x3ae4dd(0x4a6)]();return(_0x4f7765==null?void 0x0:_0x4f7765[_0x3ae4dd(0x55b)](_0x37b718=>a[_0x3ae4dd(0x33a)][_0x3ae4dd(0x1cb)](_0x37b718,_0x1aa67b)))||_0x1aa67b;}['_onRefRangeChange'](){const _0x49b8f2=_0x2914c,_0x4d275a=new a['DisposableCollection'](),_0x455a34=ci(),_0x54f93e=()=>{const _0xe833b1=_0x190c;_0x4d275a[_0xe833b1(0x377)]();const _0x39fdef=(_0x398756,_0x5b35e5,_0x482ec1,_0x365020)=>{const _0x417a04=_0xe833b1;let _0x397b46=[];switch(_0x398756['id']){case C[_0x417a04(0x5de)][_0x417a04(0x537)]:{_0x397b46=C[_0x417a04(0x32c)](_0x398756,_0x365020);break;}case C[_0x417a04(0x5de)]['DeleteRangeMoveUpCommandId']:{_0x397b46=C[_0x417a04(0x312)](_0x398756,_0x365020);break;}case C[_0x417a04(0x5de)]['InsertColCommandId']:{_0x397b46=C[_0x417a04(0x416)](_0x398756,_0x365020);break;}case C[_0x417a04(0x5de)][_0x417a04(0x1d7)]:{_0x397b46=C['handleInsertRangeMoveDown'](_0x398756,_0x365020);break;}case C[_0x417a04(0x5de)][_0x417a04(0x3ab)]:{_0x397b46=C[_0x417a04(0x519)](_0x398756,_0x365020);break;}case C[_0x417a04(0x5de)][_0x417a04(0x411)]:{_0x397b46=C[_0x417a04(0x272)](_0x398756,_0x365020);break;}case C['EffectRefRangId'][_0x417a04(0x513)]:{_0x397b46=C[_0x417a04(0x203)](_0x398756,_0x365020);break;}case C[_0x417a04(0x5de)]['RemoveColCommandId']:{_0x397b46=C[_0x417a04(0x328)](_0x398756,_0x365020);break;}case C[_0x417a04(0x5de)][_0x417a04(0x441)]:{_0x397b46=C[_0x417a04(0x28e)](_0x398756,_0x365020);break;}}const _0x5e2f1d=C[_0x417a04(0x1dd)](_0x397b46,_0x365020),_0x3c0cab=this[_0x417a04(0x284)][_0x417a04(0x24c)](_0x5b35e5);if(_0x3c0cab&&_0x5e2f1d){const _0x2252cb={..._0x3c0cab,'range':_0x5e2f1d};this[_0x417a04(0x284)][_0x417a04(0x41d)](_0x5b35e5,_0x2252cb),_0x455a34(()=>{const _0x263332=_0x417a04,_0x441a24=this['_refRangeService'][_0x263332(0x201)](_0x5e2f1d,_0x464632=>(_0x441a24[_0x263332(0x377)](),_0x39fdef(_0x464632,_0x5b35e5,_0x482ec1,_0x5e2f1d)));_0x4d275a[_0x263332(0x287)](_0x441a24);});}return{'redos':[],'undos':[]};};this[_0xe833b1(0x284)][_0xe833b1(0x1ca)]((_0x526d76,_0x3a9aff)=>{const _0x520c1a=_0xe833b1,{range:_0xb239a3,sheetID:_0x498504}=_0x526d76,_0x46e36d=this[_0x520c1a(0x463)][_0x520c1a(0x201)](_0xb239a3,_0x33902d=>(_0x46e36d['dispose'](),_0x39fdef(_0x33902d,_0x3a9aff,_0x498504,_0xb239a3)));_0x4d275a[_0x520c1a(0x287)](_0x46e36d);});};this[_0x49b8f2(0x449)](a[_0x49b8f2(0x1d3)](this[_0x49b8f2(0x4e0)][_0x49b8f2(0x24b)](()=>{_0x54f93e();})));}[_0x2914c(0x2ad)](){const _0x6b79a2=_0x2914c;var _0x49e49f,_0x4bfb74;if(this['_online']=!0x0,((_0x49e49f=this[_0x6b79a2(0x1cc)][_0x6b79a2(0x592)]())==null?void 0x0:_0x49e49f[_0x6b79a2(0x3f8)]())!==this[_0x6b79a2(0x3a9)])return;const _0x347acb=(_0x4bfb74=this[_0x6b79a2(0x311)][_0x6b79a2(0x24c)](C[_0x6b79a2(0x1e4)])['getCurrentSelections']())==null?void 0x0:_0x4bfb74[0x0],_0x179fe8=this[_0x6b79a2(0x1cc)][_0x6b79a2(0x23c)](a['UniverInstanceType'][_0x6b79a2(0x55c)])[_0x6b79a2(0x4cf)]();_0x347acb&&_0x179fe8&&this[_0x6b79a2(0x3c7)](_0x179fe8[_0x6b79a2(0x567)](),_0x347acb);}[_0x2914c(0x37b)](){const _0x47e5da=_0x2914c;this[_0x47e5da(0x41f)]=!0x1;}};Be=ri([Q(0x2,a['Inject'](a[_0x2914c(0x544)])),Q(0x3,a[_0x2914c(0x5d4)](Je)),Q(0x4,a[_0x2914c(0x5d4)](q)),Q(0x5,a[_0x2914c(0x202)]),Q(0x6,a[_0x2914c(0x1d2)]),Q(0x7,a[_0x2914c(0x5d4)](C[_0x2914c(0x1e5)]))],Be);var li=Object['defineProperty'],hi=Object[_0x2914c(0x5df)],_i=(_0xef76d8,_0x535cd7,_0xdd125a,_0x1a5e08)=>{const _0x828b95=_0x2914c;for(var _0x10fcf6=_0x1a5e08>0x1?void 0x0:_0x1a5e08?hi(_0x535cd7,_0xdd125a):_0x535cd7,_0x2c6a95=_0xef76d8[_0x828b95(0x286)]-0x1,_0x589403;_0x2c6a95>=0x0;_0x2c6a95--)(_0x589403=_0xef76d8[_0x2c6a95])&&(_0x10fcf6=(_0x1a5e08?_0x589403(_0x535cd7,_0xdd125a,_0x10fcf6):_0x589403(_0x10fcf6))||_0x10fcf6);return _0x1a5e08&&_0x10fcf6&&li(_0x535cd7,_0xdd125a,_0x10fcf6),_0x10fcf6;},Me=(_0x2dc5ac,_0x1a67a6)=>(_0x1aa069,_0x105a6c)=>_0x1a67a6(_0x1aa069,_0x105a6c,_0x2dc5ac);let ne=class extends a[_0x2914c(0x325)]{constructor(_0x340dad,_0x2012e9,_0xf77600){const _0x17035c=_0x2914c;super(),u(this,_0x17035c(0x538),new Map()),u(this,_0x17035c(0x290),new v[(_0x17035c(0x430))]()),(this[_0x17035c(0x1cc)]=_0x340dad,this['_injector']=_0x2012e9,this['_collabSessionService']=_0xf77600,this[_0x17035c(0x1f9)]());}[_0x2914c(0x377)](){const _0x1679c7=_0x2914c;super['dispose'](),this[_0x1679c7(0x290)][_0x1679c7(0x343)](),this[_0x1679c7(0x538)][_0x1679c7(0x1ca)](_0x2c65c2=>_0x2c65c2[_0x1679c7(0x377)]());}[_0x2914c(0x4a4)](_0x505eec){const _0x290f8c=_0x2914c;return this[_0x290f8c(0x538)][_0x290f8c(0x5bd)](_0x505eec)?this[_0x290f8c(0x538)][_0x290f8c(0x24c)](_0x505eec)[_0x290f8c(0x50c)]:this[_0x290f8c(0x290)][_0x290f8c(0x2e1)](v[_0x290f8c(0x48d)](_0x4c8704=>_0x4c8704[_0x290f8c(0x3a9)]===_0x505eec),v['switchMap'](_0x11a672=>_0x11a672[_0x290f8c(0x50c)]));}[_0x2914c(0x1f9)](){const _0x4f213b=_0x2914c;this[_0x4f213b(0x1cc)][_0x4f213b(0x4dd)](a['UniverInstanceType'][_0x4f213b(0x55c)])[_0x4f213b(0x2e1)](v[_0x4f213b(0x432)](this[_0x4f213b(0x29c)]))[_0x4f213b(0x24b)](async _0x489b1f=>{const _0x29b44e=_0x4f213b,_0x57b321=_0x489b1f[_0x29b44e(0x3f8)](),_0x5d8f91=await this[_0x29b44e(0x266)](_0x57b321);this['_entityInit$'][_0x29b44e(0x49a)](_0x5d8f91),this[_0x29b44e(0x538)][_0x29b44e(0x41d)](_0x57b321,_0x5d8f91);}),this[_0x4f213b(0x1cc)][_0x4f213b(0x4dd)](a[_0x4f213b(0x3ed)][_0x4f213b(0x1e3)])[_0x4f213b(0x2e1)](v['takeUntil'](this['dispose$']))[_0x4f213b(0x2e1)](v[_0x4f213b(0x48d)](_0x2fe45b=>!_0x2fe45b[_0x4f213b(0x3f8)]()[_0x4f213b(0x349)]('__')))[_0x4f213b(0x24b)](async _0x3152ea=>{const _0x3c714c=_0x4f213b,_0x51f87b=_0x3152ea['getUnitId'](),_0x2f1e5f=await this['_startDocCollabCursor'](_0x51f87b);this['_entityInit$'][_0x3c714c(0x49a)](_0x2f1e5f),this[_0x3c714c(0x538)]['set'](_0x51f87b,_0x2f1e5f);}),v['merge'](this[_0x4f213b(0x1cc)][_0x4f213b(0x30d)](a[_0x4f213b(0x3ed)]['UNIVER_DOC']),this[_0x4f213b(0x1cc)][_0x4f213b(0x30d)](a[_0x4f213b(0x3ed)][_0x4f213b(0x55c)]))['pipe'](v[_0x4f213b(0x432)](this['dispose$']))[_0x4f213b(0x24b)](_0x3daa78=>{const _0x4821e2=_0x4f213b,_0x5609f6=_0x3daa78[_0x4821e2(0x3f8)](),_0x466f49=this['_entities']['get'](_0x5609f6);_0x466f49&&(_0x466f49[_0x4821e2(0x377)](),this[_0x4821e2(0x538)]['delete'](_0x5609f6));});}async['_startSheetCollabCursor'](_0x245d15){const _0x17c077=_0x2914c,_0xe1dc51=await this[_0x17c077(0x49c)][_0x17c077(0x2e2)](_0x245d15),_0x19ab7f=this[_0x17c077(0x311)][_0x17c077(0x1e2)](Be,_0x245d15,_0xe1dc51);return _0x19ab7f[_0x17c077(0x4ea)](),_0x19ab7f;}async[_0x2914c(0x53e)](_0x3dac01){const _0x530432=_0x2914c,_0x152900=await this[_0x530432(0x49c)]['requireSession'](_0x3dac01),_0x427d43=this['_injector'][_0x530432(0x1e2)](ke,_0x3dac01,_0x152900);return _0x427d43[_0x530432(0x4ea)](),_0x427d43;}};ne=_i([Me(0x0,a['IUniverInstanceService']),Me(0x1,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),Me(0x2,a[_0x2914c(0x5d4)](exports['CollaborationSessionService']))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x19067d,_0x46100c){const _0x18c0a4=_0x2914c;let {radius:_0x34d2fc,width:_0x47db6b,height:_0x3cd3f0}=_0x46100c;_0x34d2fc=_0x34d2fc!=null?_0x34d2fc:0x0,_0x47db6b=_0x47db6b!=null?_0x47db6b:0x1e,_0x3cd3f0=_0x3cd3f0!=null?_0x3cd3f0:0x1e;let _0x531d18=0x0,_0xfd33c2=0x0,_0x17a0a2=0x0;_0x531d18=_0xfd33c2=_0x17a0a2=Math[_0x18c0a4(0x2f1)](_0x34d2fc,_0x47db6b/0x2,_0x3cd3f0/0x2),_0x19067d[_0x18c0a4(0x455)](),_0x19067d['moveTo'](_0x531d18,0x0),_0x19067d[_0x18c0a4(0x2b7)](_0x47db6b-_0xfd33c2,0x0),_0x19067d[_0x18c0a4(0x36d)](_0x47db6b-_0xfd33c2,_0xfd33c2,_0xfd33c2,Math['PI']*0x3/0x2,0x0,!0x1),_0x19067d[_0x18c0a4(0x2b7)](_0x47db6b,_0x3cd3f0-_0x17a0a2),_0x19067d[_0x18c0a4(0x36d)](_0x47db6b-_0x17a0a2,_0x3cd3f0-_0x17a0a2,_0x17a0a2,0x0,Math['PI']/0x2,!0x1),_0x19067d[_0x18c0a4(0x2b7)](0x0,_0x3cd3f0),_0x19067d['lineTo'](0x0,_0x531d18),_0x19067d[_0x18c0a4(0x36d)](_0x531d18,_0x531d18,_0x531d18,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x19067d[_0x18c0a4(0x31f)](),_0x46100c[_0x18c0a4(0x234)]&&(_0x19067d[_0x18c0a4(0x278)](),_0x19067d['fillStyle']=_0x46100c[_0x18c0a4(0x234)],_0x46100c['fillRule']===_0x18c0a4(0x470)?_0x19067d['fill']('evenodd'):_0x19067d['fill'](),_0x19067d[_0x18c0a4(0x258)]());}class Oe extends D[_0x2914c(0x257)]{constructor(_0x53ba06,_0x4b4098){const _0x43a1d7=_0x2914c;super(_0x53ba06,_0x4b4098),u(this,_0x43a1d7(0x495)),u(this,_0x43a1d7(0x259)),(this[_0x43a1d7(0x495)]=_0x4b4098==null?void 0x0:_0x4b4098[_0x43a1d7(0x495)],this['text']=_0x4b4098==null?void 0x0:_0x4b4098['text']);}static[_0x2914c(0x4a3)](_0x58ba64,_0x538e55){const _0x2262c1=_0x2914c,{text:_0x274cd0,color:_0x30007e}=_0x538e55;_0x58ba64[_0x2262c1(0x278)](),_0x58ba64[_0x2262c1(0x373)]=_0x2262c1(0x25e);const _0x5910cc=_0x58ba64['measureText'](_0x274cd0)[_0x2262c1(0x2c0)],_0x460659=Math['min'](_0x5910cc+0x2*Ae,lt);di(_0x58ba64,{'height':de,'radius':0x4,'width':_0x460659,'fill':_0x30007e,'evented':!0x1}),_0x58ba64[_0x2262c1(0x53a)]=_0x2262c1(0x30f);const _0x47d163=Ae,_0x5d73c1=de-ui,_0x1b85d4=lt-0x2*Ae;if(_0x5910cc>_0x1b85d4){let _0x503f6f='',_0x313a71=0x0;for(const _0x1506a2 of _0x274cd0){const _0x2f831f=_0x58ba64['measureText'](_0x1506a2)[_0x2262c1(0x2c0)];if(_0x313a71+_0x2f831f<=_0x1b85d4-_0x58ba64['measureText'](_0x2262c1(0x293))['width'])_0x503f6f+=_0x1506a2,_0x313a71+=_0x2f831f;else{_0x503f6f+=_0x2262c1(0x293);break;}}_0x58ba64[_0x2262c1(0x446)](_0x503f6f,_0x47d163,_0x5d73c1);}else _0x58ba64['fillText'](_0x274cd0,_0x47d163,_0x5d73c1);_0x58ba64[_0x2262c1(0x258)]();}[_0x2914c(0x56c)](_0x4f90c2){const _0x1a6e6e=_0x2914c;Oe[_0x1a6e6e(0x4a3)](_0x4f90c2,this);}}const Le=_0x2914c(0x306),Si=_0x2914c(0x232),vi=_0x2914c(0x20a),le=0x6,gi=1.5,je=0x4,mi=1.5,fi=_0x2914c(0x361);class ht{constructor(_0x68309e,_0x642a68,_0x3b8d0b,_0x1422d2){const _0xd77bcf=_0x2914c;u(this,_0xd77bcf(0x534),[]),u(this,_0xd77bcf(0x20e),null),u(this,'_textBubble',null),u(this,'_anchorDot',null),u(this,_0xd77bcf(0x28f),null),u(this,_0xd77bcf(0x36a),null),(this[_0xd77bcf(0x5ab)]=_0x68309e,this[_0xd77bcf(0x235)]=_0x642a68,this['_docSkeleton']=_0x3b8d0b,this[_0xd77bcf(0x4b1)]=_0x1422d2,this[_0xd77bcf(0x1d1)]());}set[_0x2914c(0x595)](_0x41aff1){const _0x37ed79=_0x2914c;_0x41aff1?(this['_anchorDot']&&this[_0x37ed79(0x2ed)]['hide'](),this['_textBubble']&&this[_0x37ed79(0x4a9)][_0x37ed79(0x408)]()):(this[_0x37ed79(0x2ed)]&&this[_0x37ed79(0x2ed)][_0x37ed79(0x408)](),this[_0x37ed79(0x4a9)]&&this[_0x37ed79(0x4a9)][_0x37ed79(0x2fe)]());}['dispose'](){const _0x98ad=_0x2914c;for(const _0x5187de of this[_0x98ad(0x534)])_0x5187de[_0x98ad(0x377)]();this['_textBubble']&&this[_0x98ad(0x4a9)][_0x98ad(0x377)](),this[_0x98ad(0x2ed)]&&this['_anchorDot'][_0x98ad(0x377)](),this['_anchor']&&this[_0x98ad(0x20e)][_0x98ad(0x377)](),this[_0x98ad(0x36a)]&&this['_eventUnsubscribe']();}['_render'](){const _0x27a5b1=_0x2914c;var _0x36317c;const {_docSkeleton:_0x47af3a,_document:_0x4724af}=this,{color:_0x2c47ea,name:_0x24a6b6,ranges:_0x3f4bba}=this[_0x27a5b1(0x5ab)],_0x232b8d=_0x4724af[_0x27a5b1(0x2c6)](),{docsLeft:_0x21a7b5,docsTop:_0x50eaf1}=_0x232b8d,_0x50da61=new N[(_0x27a5b1(0x3d8))](_0x232b8d,_0x47af3a);for(const {startOffset:_0x290012,endOffset:_0xba98d0,collapsed:_0x1493e1,isActive:_0x38fb4d}of _0x3f4bba){const _0x432ec9=_0x47af3a[_0x27a5b1(0x4d1)](_0x290012),_0x2ef78d=_0x47af3a[_0x27a5b1(0x4d1)](_0xba98d0);if(_0x38fb4d){const {contentBoxPointGroup:_0x4f5f91}=_0x50da61['getRangePointData'](_0x2ef78d,_0x2ef78d);if(_0x4f5f91[_0x27a5b1(0x286)]===0x0)continue;this[_0x27a5b1(0x535)](_0x2c47ea,_0x4f5f91,_0x21a7b5,_0x50eaf1,_0x24a6b6),this[_0x27a5b1(0x36a)]=this['_handleHover']();}if(!_0x1493e1&&_0x432ec9&&_0x2ef78d){if(N['isValidRectRange'](_0x432ec9,_0x2ef78d)){const _0x39d191=new N['NodePositionConvertToRectRange'](_0x232b8d,_0x47af3a),{pointGroup:_0x1dbc6d}=(_0x36317c=_0x39d191[_0x27a5b1(0x368)](_0x432ec9,_0x2ef78d))!=null?_0x36317c:{};if(_0x1dbc6d==null||_0x1dbc6d[_0x27a5b1(0x286)]===0x0)continue;this['_drawRectRange'](_0x2c47ea,_0x1dbc6d,_0x21a7b5,_0x50eaf1);}else{const {contentBoxPointGroup:_0x215b9d}=_0x50da61[_0x27a5b1(0x368)](_0x432ec9,_0x2ef78d);if(_0x215b9d[_0x27a5b1(0x286)]===0x0)continue;this[_0x27a5b1(0x1df)](_0x2c47ea,_0x215b9d,_0x21a7b5,_0x50eaf1);}}}}[_0x2914c(0x535)](_0x4b6094,_0x2e9570,_0x241c90,_0x82f8fd,_0x267505){const _0x60aff=_0x2914c,_0x16337f=this[_0x60aff(0x47f)](_0x2e9570),{left:_0x2906c9,top:_0x1553b6,height:_0x14380c}=_0x16337f,_0x231e41=this['_getScale'](),_0x251eff=mi/_0x231e41,_0x1b2307=new D[(_0x60aff(0x5bb))](Le+a[_0x60aff(0x27f)][_0x60aff(0x5d5)](le),{'left':_0x2906c9+_0x241c90-_0x251eff,'top':_0x1553b6+_0x82f8fd,'height':_0x14380c,'width':gi,'fill':_0x4b6094||D[_0x60aff(0x3a0)](a['COLORS']['black'],0x0),'strokeWidth':_0x251eff,'stroke':fi,'evented':!0x0});this[_0x60aff(0x20e)]=_0x1b2307,this[_0x60aff(0x235)][_0x60aff(0x575)](_0x1b2307,N['TEXT_RANGE_LAYER_INDEX']);const _0xbd28d7=new D[(_0x60aff(0x5bb))](Le+a[_0x60aff(0x27f)][_0x60aff(0x5d5)](le),{'left':_0x2906c9+_0x241c90-_0x251eff,'top':_0x1553b6+_0x82f8fd-je/0x2,'height':je,'width':je,'fill':_0x4b6094||D['getColor'](a['COLORS'][_0x60aff(0x1b1)],0x0),'strokeWidth':0x0,'stroke':_0x4b6094||D[_0x60aff(0x3a0)](a[_0x60aff(0x213)][_0x60aff(0x1b1)],0x0),'evented':!0x1});this[_0x60aff(0x2ed)]=_0xbd28d7,this[_0x60aff(0x235)][_0x60aff(0x575)](_0xbd28d7,N[_0x60aff(0x3b9)]);const _0x2b7701=new Oe(Le+a[_0x60aff(0x27f)][_0x60aff(0x5d5)](le),{'left':_0x2906c9+_0x241c90-_0x251eff,'top':_0x1553b6+_0x82f8fd-de,'text':_0x267505,'color':_0x4b6094});this['_textBubble']=_0x2b7701,this['_scene'][_0x60aff(0x575)](_0x2b7701,N[_0x60aff(0x3b9)]),this[_0x60aff(0x595)]=!0x1;}[_0x2914c(0x2cc)](){const _0x3190fd=_0x2914c,_0x5eaf27=this[_0x3190fd(0x20e)][_0x3190fd(0x336)][_0x3190fd(0x536)](()=>{const _0x15d427=_0x3190fd;this[_0x15d427(0x595)]=!0x0;}),_0x40aafd=this['_anchor'][_0x3190fd(0x44d)][_0x3190fd(0x536)](()=>{const _0x3281c0=_0x3190fd;this[_0x3281c0(0x28f)]&&clearTimeout(this[_0x3281c0(0x28f)]),this[_0x3281c0(0x28f)]=setTimeout(()=>{const _0x234db9=_0x3281c0;this[_0x234db9(0x595)]=!0x1;},0x7d0);});return()=>{const _0x26682d=_0x3190fd;_0x5eaf27[_0x26682d(0x1da)](),_0x40aafd[_0x26682d(0x1da)]();};}[_0x2914c(0x1df)](_0x5ce6e9,_0x16389d,_0xe9eb53,_0x38d49f){const _0x58ad70=_0x2914c,_0x3aaf40=new a[(_0x58ad70(0x5d6))](_0x5ce6e9)[_0x58ad70(0x57a)](0.2)[_0x58ad70(0x4d8)](),_0x254079=new D['RegularPolygon'](Si+a['Tools'][_0x58ad70(0x5d5)](le),{'pointsGroup':_0x16389d,'fill':_0x3aaf40||D[_0x58ad70(0x3a0)](a[_0x58ad70(0x213)][_0x58ad70(0x1b1)],0.2),'left':_0xe9eb53,'top':_0x38d49f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x58ad70(0x4ed)](_0x254079),this[_0x58ad70(0x235)][_0x58ad70(0x575)](_0x254079,N[_0x58ad70(0x3b9)]);}[_0x2914c(0x3e2)](_0x5ded12,_0x39eeea,_0x5ab9d4,_0x50db4b){const _0x1752d9=_0x2914c,_0x39a005=new a[(_0x1752d9(0x5d6))](_0x5ded12)[_0x1752d9(0x57a)](0.2)[_0x1752d9(0x4d8)](),_0x703767=new D[(_0x1752d9(0x1d9))](vi+a[_0x1752d9(0x27f)][_0x1752d9(0x5d5)](le),{'pointsGroup':_0x39eeea,'fill':_0x39a005||D[_0x1752d9(0x3a0)](a[_0x1752d9(0x213)]['black'],0.2),'left':_0x5ab9d4,'top':_0x50db4b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1752d9(0x534)][_0x1752d9(0x4ed)](_0x703767),this['_scene'][_0x1752d9(0x575)](_0x703767,N[_0x1752d9(0x3b9)]);}['_getAnchorBounding'](_0x1620d2){const _0x3fd195=_0x1620d2[0x0],_0x2db50b=_0x3fd195[0x0],_0x57e1a8=_0x3fd195[0x2],{x:_0x519a93,y:_0x2c48dc}=_0x2db50b,{x:_0x15d9da,y:_0x40155f}=_0x57e1a8;return{'left':_0x519a93,'top':_0x2c48dc,'width':_0x15d9da-_0x519a93,'height':_0x40155f-_0x2c48dc};}[_0x2914c(0x59a)](){const _0x13824a=_0x2914c,{scaleX:_0xb57c79,scaleY:_0x4d7f83}=this[_0x13824a(0x235)]['getAncestorScale']();return Math[_0x13824a(0x5cf)](_0xb57c79,_0x4d7f83);}}var Ii=Object[_0x2914c(0x4a2)],pi=Object['getOwnPropertyDescriptor'],Ci=(_0x1a524c,_0x172211,_0x19294f,_0x4c9a73)=>{for(var _0x235b6a=_0x4c9a73>0x1?void 0x0:_0x4c9a73?pi(_0x172211,_0x19294f):_0x172211,_0xf3afc6=_0x1a524c['length']-0x1,_0x54807f;_0xf3afc6>=0x0;_0xf3afc6--)(_0x54807f=_0x1a524c[_0xf3afc6])&&(_0x235b6a=(_0x4c9a73?_0x54807f(_0x172211,_0x19294f,_0x235b6a):_0x54807f(_0x235b6a))||_0x235b6a);return _0x4c9a73&&_0x235b6a&&Ii(_0x172211,_0x19294f,_0x235b6a),_0x235b6a;},ve=(_0x58c750,_0x10ce12)=>(_0x551ef8,_0x2fa3d4)=>_0x10ce12(_0x551ef8,_0x2fa3d4,_0x58c750);let Ve=class extends a['RxDisposable']{constructor(_0x30fdc8,_0x286afb,_0x5c48fa,_0x3007b4,_0x4dca4f){const _0x41bcd9=_0x2914c;super(),u(this,_0x41bcd9(0x3a8),[]),u(this,_0x41bcd9(0x1c1),[]),(this['_context']=_0x30fdc8,this[_0x41bcd9(0x38d)]=_0x286afb,this[_0x41bcd9(0x37c)]=_0x5c48fa,this['_commandService']=_0x3007b4,this[_0x41bcd9(0x1b6)]=_0x4dca4f,this[_0x41bcd9(0x1f9)]());}[_0x2914c(0x1f9)](){const _0x44c037=_0x2914c,_0x17cf9e=this[_0x44c037(0x1e9)][_0x44c037(0x41c)],_0x1092a8=this[_0x44c037(0x38d)];this[_0x44c037(0x449)](v[_0x44c037(0x2e4)]([this[_0x44c037(0x37c)][_0x44c037(0x4a4)](_0x17cf9e),this[_0x44c037(0x1b6)][_0x44c037(0x413)]])['pipe'](E[_0x44c037(0x53b)](([_0x68418d,_0x4baea5])=>({'skeleton':_0x1092a8[_0x44c037(0x2a2)](),'cursors':[..._0x68418d[_0x44c037(0x39b)]()][_0x44c037(0x4d5)](_0x1a81c8=>({..._0x1a81c8,'color':_0x4baea5[_0x1a81c8[_0x44c037(0x495)]]}))})))[_0x44c037(0x24b)](_0x153ee0=>{const _0x4dbc68=_0x44c037;if(this[_0x4dbc68(0x427)](),_0x153ee0){const {skeleton:_0x27edab,cursors:_0x1f6226}=_0x153ee0;this['_updateCollabCursors'](_0x27edab,_0x1f6226);}})),this['_initResize'](),this[_0x44c037(0x58d)]();}[_0x2914c(0x262)](_0x336364,_0x2dff62){const _0x451538=_0x2914c,{scene:_0x50379b,mainComponent:_0x486b47}=this[_0x451538(0x1e9)],_0x3d7296=_0x2dff62['map'](_0x4690a4=>new ht(_0x4690a4,_0x50379b,_0x336364,_0x486b47));this['_cursorShapes']=_0x3d7296,this[_0x451538(0x1c1)]=_0x2dff62;}[_0x2914c(0x540)](){const _0x43523e=_0x2914c;this['_removeCollabCursors']();const {scene:_0x54d5bc,mainComponent:_0xf85db7}=this[_0x43523e(0x1e9)],_0x31b67c=this[_0x43523e(0x38d)][_0x43523e(0x2a2)](),_0x3ed0dc=this[_0x43523e(0x1c1)]['map'](_0x4b145b=>new ht(_0x4b145b,_0x54d5bc,_0x31b67c,_0xf85db7));this[_0x43523e(0x3a8)]=_0x3ed0dc;}[_0x2914c(0x427)](){const _0x586283=_0x2914c;this[_0x586283(0x3a8)][_0x586283(0x1ca)](_0x735924=>_0x735924[_0x586283(0x377)]()),this[_0x586283(0x3a8)]=[];}[_0x2914c(0x58d)](){const _0x50240c=_0x2914c,_0x463d19=[N[_0x50240c(0x1fe)]['id']];this[_0x50240c(0x449)](this[_0x50240c(0x5d2)][_0x50240c(0x545)](_0x357fd0=>{const _0xffb9bc=_0x50240c;_0x463d19[_0xffb9bc(0x396)](_0x357fd0['id'])&&_0x357fd0[_0xffb9bc(0x3af)]['unitId']===this[_0xffb9bc(0x1e9)][_0xffb9bc(0x41c)]&&this[_0xffb9bc(0x540)]();}));}[_0x2914c(0x43a)](){const _0x181cb4=_0x2914c;this[_0x181cb4(0x449)](a[_0x181cb4(0x1c3)](this[_0x181cb4(0x1e9)][_0x181cb4(0x2cf)][_0x181cb4(0x32e)])[_0x181cb4(0x2e1)](E[_0x181cb4(0x48d)](_0x4429d7=>_0x4429d7[_0x181cb4(0x355)]===D[_0x181cb4(0x509)][_0x181cb4(0x200)]),E['throttleTime'](0x10))[_0x181cb4(0x24b)](()=>{const _0x2363d7=_0x181cb4;this[_0x2363d7(0x540)]();}));}};Ve=Ci([ve(0x1,a[_0x2914c(0x5d4)](se[_0x2914c(0x49b)])),ve(0x2,a['Inject'](ne)),ve(0x3,a[_0x2914c(0x1d2)]),ve(0x4,a[_0x2914c(0x5d4)](a[_0x2914c(0x35d)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends D[_0x2914c(0x257)]{constructor(_0x445a13,_0x11ab61){const _0x520522=_0x2914c;super(_0x445a13,_0x11ab61),u(this,_0x520522(0x320)),u(this,_0x520522(0x5cd),!0x1),u(this,_0x520522(0x332)),u(this,_0x520522(0x22b),''),u(this,_0x520522(0x591),'top'),u(this,_0x520522(0x1fb)),(_0x11ab61&&this[_0x520522(0x5a9)](_0x11ab61),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x520522(0x5a9)]({'hovered':!0x0})),this[_0x520522(0x44d)][_0x520522(0x536)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2914c(0x5a9)](_0x5ae3cd){const _0x443e39=_0x2914c;var _0x48b409,_0x276fcb,_0x4d3d5e,_0x18699c,_0x1b06d2,_0x30d0fc;this['_color']=(_0x48b409=_0x5ae3cd[_0x443e39(0x495)])!=null?_0x48b409:this[_0x443e39(0x320)],this['_hovered']=(_0x276fcb=_0x5ae3cd['hovered'])!=null?_0x276fcb:this[_0x443e39(0x5cd)],this[_0x443e39(0x332)]=(_0x4d3d5e=_0x5ae3cd[_0x443e39(0x2f8)])!=null?_0x4d3d5e:this[_0x443e39(0x332)],this[_0x443e39(0x22b)]=(_0x18699c=_0x5ae3cd[_0x443e39(0x593)])!=null?_0x18699c:this[_0x443e39(0x22b)],this[_0x443e39(0x591)]=(_0x1b06d2=_0x5ae3cd[_0x443e39(0x3f0)])!=null?_0x1b06d2:this[_0x443e39(0x591)],this[_0x443e39(0x1fb)]=(_0x30d0fc=_0x5ae3cd['backgroundColor'])!=null?_0x30d0fc:this[_0x443e39(0x1fb)],this[_0x443e39(0x3d0)]({'width':_0x5ae3cd[_0x443e39(0x2c0)],'height':_0x5ae3cd[_0x443e39(0x42a)]});}[_0x2914c(0x3f5)](_0x5748fa){const _0x276e02=_0x2914c,{row:_0x533b82,column:_0x2c1cbc}=_0x5748fa;if(_0x533b82>=this['_range'][_0x276e02(0x27e)]&&_0x533b82<=this[_0x276e02(0x332)]['endRow']&&_0x2c1cbc>=this[_0x276e02(0x332)]['startColumn']&&_0x2c1cbc<=this[_0x276e02(0x332)][_0x276e02(0x5e1)]){this[_0x276e02(0x5a9)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x2f9a3a){return!0x1;}[_0x2914c(0x56c)](_0x2c4ca1){const _0x3f2cc1=_0x2914c;D[_0x3f2cc1(0x5bb)][_0x3f2cc1(0x4a3)](_0x2c4ca1,{'width':this[_0x3f2cc1(0x2c0)],'height':this['height'],'strokeWidth':bi,'stroke':this[_0x3f2cc1(0x320)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x2c4ca1[_0x3f2cc1(0x278)](),_0x2c4ca1[_0x3f2cc1(0x206)](0x1,0x0,0x0,0x1,this[_0x3f2cc1(0x2c0)],this[_0x3f2cc1(0x591)]===_0x3f2cc1(0x2fa)?0x0:-de),Oe[_0x3f2cc1(0x4a3)](_0x2c4ca1,{'text':this['_name'],'color':this['_color']}),_0x2c4ca1[_0x3f2cc1(0x258)]());}}var Ti=Object[_0x2914c(0x4a2)],Ri=Object[_0x2914c(0x5df)],Oi=(_0x580078,_0x308f85,_0x482c37,_0x14cb40)=>{const _0x8d7e56=_0x2914c;for(var _0x38bef2=_0x14cb40>0x1?void 0x0:_0x14cb40?Ri(_0x308f85,_0x482c37):_0x308f85,_0x41fb7e=_0x580078[_0x8d7e56(0x286)]-0x1,_0x58c727;_0x41fb7e>=0x0;_0x41fb7e--)(_0x58c727=_0x580078[_0x41fb7e])&&(_0x38bef2=(_0x14cb40?_0x58c727(_0x308f85,_0x482c37,_0x38bef2):_0x58c727(_0x38bef2))||_0x38bef2);return _0x14cb40&&_0x38bef2&&Ti(_0x308f85,_0x482c37,_0x38bef2),_0x38bef2;},$e=(_0x433234,_0x5dba1f)=>(_0x162366,_0xc7cb7f)=>_0x5dba1f(_0x162366,_0xc7cb7f,_0x433234);const Di=0x1389;let We=class extends a[_0x2914c(0x325)]{constructor(_0x18f0a8,_0x3a71c6,_0x300a2c,_0xdac1a1){const _0x1945ee=_0x2914c;super(),u(this,_0x1945ee(0x1c1),new Set()),u(this,'_lastPointer',null),(this[_0x1945ee(0x1e9)]=_0x18f0a8,this[_0x1945ee(0x254)]=_0x3a71c6,this[_0x1945ee(0x37c)]=_0x300a2c,this[_0x1945ee(0x1b6)]=_0xdac1a1,this['_init']());}['_init'](){const _0x17f25d=_0x2914c;this[_0x17f25d(0x254)][_0x17f25d(0x1d5)][_0x17f25d(0x2e1)](E[_0x17f25d(0x432)](this['dispose$']),E[_0x17f25d(0x22a)](_0x52e494=>{const _0x279877=_0x17f25d;if(_0x52e494){const _0x38005e=_0x52e494[_0x279877(0x2f6)];return v[_0x279877(0x2e4)](this[_0x279877(0x37c)]['getCollabCursors$'](this[_0x279877(0x1e9)]['unitId']),this[_0x279877(0x1b6)][_0x279877(0x413)])[_0x279877(0x2e1)](E[_0x279877(0x53b)](([_0x29749f,_0x7ff94c])=>{const _0x362609=_0x279877,_0x5b47f9=new Map();return _0x29749f[_0x362609(0x1ca)]((_0x904ab5,_0x2e4b64)=>{const _0x42239d=_0x362609;if(_0x904ab5['sheetID']===_0x38005e){const _0x157632={..._0x904ab5};_0x157632[_0x42239d(0x495)]=_0x7ff94c[_0x904ab5[_0x42239d(0x495)]],_0x5b47f9[_0x42239d(0x41d)](_0x2e4b64,_0x157632);}}),{'skeleton':_0x52e494,'cursors':_0x5b47f9};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x17f25d(0x24b)](({skeleton:_0x54219b,cursors:_0xf9f6b3})=>{const _0x295558=_0x17f25d;this[_0x295558(0x427)](),_0x54219b&&this[_0x295558(0x262)](_0x54219b,_0xf9f6b3);}),this[_0x17f25d(0x254)]['currentSkeleton$'][_0x17f25d(0x24b)](_0x28b22a=>{const _0x170d0e=_0x17f25d;if(_0x28b22a==null)return;const {skeleton:_0x277d2a}=_0x28b22a,{scene:_0x27c4bf}=this[_0x170d0e(0x1e9)];_0x27c4bf['onPointerMove$'][_0x170d0e(0x536)](a[_0x170d0e(0x305)](_0x6ee6cc=>{const _0x3f0c42=_0x170d0e;var _0x200643,_0x4cb6e1;const {offsetX:_0x33e033,offsetY:_0x30499a}=_0x6ee6cc,{x:_0x59af8a,y:_0x2cf023}=_0x27c4bf[_0x3f0c42(0x59e)](D[_0x3f0c42(0x25f)][_0x3f0c42(0x4ce)]([_0x33e033,_0x30499a])),{scaleX:_0x4603fd,scaleY:_0x43d991}=_0x27c4bf['getAncestorScale'](),_0x13e233=_0x27c4bf[_0x3f0c42(0x375)](te[_0x3f0c42(0x2c8)]['VIEW_MAIN']),_0x5a80e4=_0x27c4bf[_0x3f0c42(0x5b7)](D[_0x3f0c42(0x25f)][_0x3f0c42(0x4ce)]([_0x59af8a,_0x2cf023]),_0x13e233),_0x259cc1=_0x277d2a[_0x3f0c42(0x4c6)](_0x33e033,_0x30499a,_0x4603fd,_0x43d991,_0x5a80e4);((_0x200643=this[_0x3f0c42(0x4a5)])==null?void 0x0:_0x200643[_0x3f0c42(0x316)])===_0x259cc1[_0x3f0c42(0x316)]&&((_0x4cb6e1=this['_lastPointer'])==null?void 0x0:_0x4cb6e1[_0x3f0c42(0x4ad)])===_0x259cc1[_0x3f0c42(0x4ad)]||this[_0x3f0c42(0x1c1)][_0x3f0c42(0x1ca)](_0x3379c4=>{const _0x4279d5=_0x3f0c42;_0x3379c4[_0x4279d5(0x3f5)](_0x259cc1);});},0x64));});}[_0x2914c(0x262)](_0x162fce,_0x7c3873){const _0x5cf39c=_0x2914c;var _0x524f06;const _0x2fab8a=(_0x524f06=this[_0x5cf39c(0x254)]['getCurrent']())==null?void 0x0:_0x524f06[_0x5cf39c(0x317)];if(!_0x2fab8a)return;const _0x505647=this[_0x5cf39c(0x269)]();if(!_0x505647)return;this['_cursors']['forEach'](_0x468495=>{const _0x335e48=_0x5cf39c;_0x468495[_0x335e48(0x267)]();});const {scene:_0x9ef788}=_0x505647,_0x4e4dd3=yi(Array[_0x5cf39c(0x2ca)](_0x7c3873[_0x5cf39c(0x39b)]()))[_0x5cf39c(0x53b)](_0x5cbdfa=>{const _0xeed453=_0x5cf39c,{color:_0x8baeee,range:_0x3ab2dc,name:_0x209982,selection:_0xef1427,sheetID:_0x1847ba}=_0x5cbdfa,{startColumn:_0x3d1ac2,startRow:_0x481071,endColumn:_0x3b1c4f,endRow:_0x5e579a}=_0x3ab2dc,_0x1808ea=te['getCoordByCell'](_0x481071,_0x3d1ac2,_0x9ef788,_0x2fab8a),_0x4dbf0e=te['getCoordByCell'](_0x5e579a,_0x3b1c4f,_0x9ef788,_0x2fab8a),{columnHeaderHeightAndMarginTop:_0x2ad472}=_0x2fab8a,{startX:_0x4c0a1f,startY:_0x2641d9}=_0x1808ea,{endX:_0x998d9f,endY:_0x19ee37}=_0x4dbf0e,_0x450f90=_0x998d9f-_0x4c0a1f,_0x15b1c9=_0x19ee37-_0x2641d9,_0xd837ee={'labelPosition':_0x2641d9-_0x2ad472>=de?_0xeed453(0x500):_0xeed453(0x2fa),'sheetID':_0x1847ba,'range':_0x3ab2dc,'color':_0x8baeee,'name':_0x209982,'selection':_0xef1427,'left':_0x4c0a1f,'top':_0x2641d9,'width':_0x450f90,'height':_0x15b1c9,'evented':!0x1,'zIndex':Di};return new Pt(_0x209982,_0xd837ee);});_0x9ef788[_0x5cf39c(0x275)](_0x4e4dd3,Ei),this[_0x5cf39c(0x1c1)]=new Set(_0x4e4dd3);}['_removeCollabCursors'](){const _0x355e0=_0x2914c;var _0x481939;(_0x481939=this[_0x355e0(0x1c1)])==null||_0x481939[_0x355e0(0x1ca)](_0x5b0392=>_0x5b0392[_0x355e0(0x377)]());}['_getSheetObject'](){const _0x2cdbad=_0x2914c;return te[_0x2cdbad(0x3d1)](this[_0x2cdbad(0x1e9)]['unit'],this[_0x2cdbad(0x1e9)]);}};We=Oi([$e(0x1,a[_0x2914c(0x5d4)](te[_0x2914c(0x4c5)])),$e(0x2,a['Inject'](ne)),$e(0x3,a[_0x2914c(0x5d4)](a[_0x2914c(0x35d)]))],We);function yi(_0x1209be){const _0x21b9c8=_0x2914c,_0x869988=new Map();return _0x1209be['forEach'](_0x11b588=>{const _0x5d23d8=_0x190c;if(_0x869988[_0x5d23d8(0x5bd)](_0x11b588[_0x5d23d8(0x48f)])){const _0x4d32ba=_0x869988[_0x5d23d8(0x24c)](_0x11b588['selection']);_0x4d32ba[_0x5d23d8(0x593)]+=',\x20'+_0x11b588['name'];}else _0x869988[_0x5d23d8(0x41d)](_0x11b588[_0x5d23d8(0x48f)],_0x11b588);}),Array[_0x21b9c8(0x2ca)](_0x869988['values']());}var M=function(){const _0x4b128f=_0x2914c;return M=Object[_0x4b128f(0x1b9)]||function(_0x3ffcd7){const _0x5e448b=_0x4b128f;for(var _0x29e79d,_0x13e992=0x1,_0x107209=arguments[_0x5e448b(0x286)];_0x13e992<_0x107209;_0x13e992++){_0x29e79d=arguments[_0x13e992];for(var _0x18d5b7 in _0x29e79d)Object[_0x5e448b(0x353)]['hasOwnProperty'][_0x5e448b(0x42b)](_0x29e79d,_0x18d5b7)&&(_0x3ffcd7[_0x18d5b7]=_0x29e79d[_0x18d5b7]);}return _0x3ffcd7;},M['apply'](this,arguments);},Ui=function(_0x20869e,_0x1d209d){const _0x544180=_0x2914c;var _0x2298b1={};for(var _0x4d0d91 in _0x20869e)Object[_0x544180(0x353)]['hasOwnProperty'][_0x544180(0x42b)](_0x20869e,_0x4d0d91)&&_0x1d209d[_0x544180(0x2f3)](_0x4d0d91)<0x0&&(_0x2298b1[_0x4d0d91]=_0x20869e[_0x4d0d91]);if(_0x20869e!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0xa4b34e=0x0,_0x4d0d91=Object[_0x544180(0x350)](_0x20869e);_0xa4b34e<_0x4d0d91[_0x544180(0x286)];_0xa4b34e++)_0x1d209d['indexOf'](_0x4d0d91[_0xa4b34e])<0x0&&Object[_0x544180(0x353)][_0x544180(0x5a4)][_0x544180(0x42b)](_0x20869e,_0x4d0d91[_0xa4b34e])&&(_0x2298b1[_0x4d0d91[_0xa4b34e]]=_0x20869e[_0x4d0d91[_0xa4b34e]]);}return _0x2298b1;},Ze=P['forwardRef'](function(_0x2247e6,_0xff0417){const _0x374935=_0x2914c;var _0x4eacc6=_0x2247e6[_0x374935(0x1cd)],_0x35bc56=_0x2247e6['id'],_0x3a38cd=_0x2247e6[_0x374935(0x289)],_0x5bf342=_0x2247e6[_0x374935(0x4e4)],_0x4feba6=Ui(_0x2247e6,[_0x374935(0x1cd),'id',_0x374935(0x289),'extend']),_0x26af8e=_0x374935(0x4bb)[_0x374935(0x2ac)](_0x35bc56,'\x20')[_0x374935(0x2ac)](_0x3a38cd||'')['trim'](),_0x4200a4=P[_0x374935(0x2b1)]('_'['concat'](Ni()));return wt(_0x4eacc6,''[_0x374935(0x2ac)](_0x35bc56),{'defIds':_0x4eacc6[_0x374935(0x3c6)],'idSuffix':_0x4200a4[_0x374935(0x555)]},M({'ref':_0xff0417,'className':_0x26af8e},_0x4feba6),_0x5bf342);});function wt(_0x1f1bc2,_0x24cbe1,_0x29ff95,_0x99ca55,_0x435078){const _0x5f398e=_0x2914c;return P[_0x5f398e(0x58a)](_0x1f1bc2['tag'],M(M({'key':_0x24cbe1},Pi(_0x1f1bc2,_0x29ff95,_0x435078)),_0x99ca55),(wi(_0x1f1bc2,_0x29ff95)[_0x5f398e(0x557)]||[])[_0x5f398e(0x53b)](function(_0x8a4cef,_0x27b0ae){const _0x48945a=_0x5f398e;return wt(_0x8a4cef,''['concat'](_0x24cbe1,'-')[_0x48945a(0x2ac)](_0x1f1bc2[_0x48945a(0x406)],'-')[_0x48945a(0x2ac)](_0x27b0ae),_0x29ff95,void 0x0,_0x435078);}));}function Pi(_0x223587,_0x44e3af,_0x44099c){const _0x1ad0fb=_0x2914c;var _0xe0a276=M({},_0x223587['attrs']);_0x44099c!=null&&_0x44099c[_0x1ad0fb(0x2de)]&&_0xe0a276[_0x1ad0fb(0x234)]==='colorChannel1'&&(_0xe0a276[_0x1ad0fb(0x234)]=_0x44099c['colorChannel1']);var _0x127e3c=_0x44e3af[_0x1ad0fb(0x3c6)];return!_0x127e3c||_0x127e3c[_0x1ad0fb(0x286)]===0x0||(_0x223587['tag']===_0x1ad0fb(0x53c)&&_0xe0a276[_0x1ad0fb(0x476)]&&(_0xe0a276[_0x1ad0fb(0x476)]=_0xe0a276[_0x1ad0fb(0x476)]+_0x44e3af['idSuffix']),Object['entries'](_0xe0a276)[_0x1ad0fb(0x1ca)](function(_0x1170ed){const _0x585afe=_0x1ad0fb;var _0x1ea4ec=_0x1170ed[0x0],_0x4c829a=_0x1170ed[0x1];typeof _0x4c829a==_0x585afe(0x542)&&(_0xe0a276[_0x1ea4ec]=_0x4c829a[_0x585afe(0x49f)](/url\(#(.*)\)/,_0x585afe(0x31a)[_0x585afe(0x2ac)](_0x44e3af[_0x585afe(0x1f5)],')')));})),_0xe0a276;}function wi(_0x33afba,_0xdc05b5){const _0xddff23=_0x2914c;var _0x357f4f,_0x126cba=_0xdc05b5[_0xddff23(0x3c6)];return!_0x126cba||_0x126cba[_0xddff23(0x286)]===0x0?_0x33afba:_0x33afba['tag']===_0xddff23(0x2c9)&&(!((_0x357f4f=_0x33afba[_0xddff23(0x557)])===null||_0x357f4f===void 0x0)&&_0x357f4f[_0xddff23(0x286)])?M(M({},_0x33afba),{'children':_0x33afba[_0xddff23(0x557)]['map'](function(_0x78f0f5){const _0x5df0ec=_0xddff23;return typeof _0x78f0f5[_0x5df0ec(0x570)]['id']==_0x5df0ec(0x542)&&_0x126cba&&_0x126cba['indexOf'](_0x78f0f5[_0x5df0ec(0x570)]['id'])>-0x1?M(M({},_0x78f0f5),{'attrs':M(M({},_0x78f0f5['attrs']),{'id':_0x78f0f5[_0x5df0ec(0x570)]['id']+_0xdc05b5[_0x5df0ec(0x1f5)]})}):_0x78f0f5;})}):_0x33afba;}function Ni(){const _0xe7c942=_0x2914c;return Math[_0xe7c942(0x21d)]()['toString'](0x24)[_0xe7c942(0x5c1)](0x2,0x8);}Ze['displayName']='UniverIcon';var Mi={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2914c(0x348),'height':_0x2914c(0x348)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x2914c(0x2be),'attrs':{'stroke':_0x2914c(0x4dc),'d':'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','strokeLinecap':'round','strokeLinejoin':_0x2914c(0x1ee),'strokeWidth':1.2}}]},{'tag':_0x2914c(0x2c9),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x2914c(0x2be),'attrs':{'fill':'#fff','d':_0x2914c(0x33b)}}]}]}],'defIds':[_0x2914c(0x1e6)]},Nt=P[_0x2914c(0x204)](function(_0x42c52f,_0x5df8ea){const _0x2983cd=_0x2914c;return P[_0x2983cd(0x58a)](Ze,Object[_0x2983cd(0x1b9)]({},_0x42c52f,{'id':_0x2983cd(0x1e7),'ref':_0x5df8ea,'icon':Mi}));});Nt[_0x2914c(0x59f)]=_0x2914c(0x493);var Ai={'tag':_0x2914c(0x1d0),'attrs':{'fill':_0x2914c(0x4eb),'viewBox':_0x2914c(0x405),'width':_0x2914c(0x348),'height':_0x2914c(0x348)},'children':[{'tag':'g','attrs':{'clipPath':_0x2914c(0x344)},'children':[{'tag':_0x2914c(0x2be),'attrs':{'stroke':'currentColor','d':_0x2914c(0x4be),'strokeLinecap':_0x2914c(0x1ee),'strokeLinejoin':_0x2914c(0x1ee),'strokeWidth':1.2}}]},{'tag':_0x2914c(0x2c9),'attrs':{},'children':[{'tag':_0x2914c(0x4c2),'attrs':{'id':_0x2914c(0x574)},'children':[{'tag':'path','attrs':{'fill':_0x2914c(0x302),'d':_0x2914c(0x33b),'transform':_0x2914c(0x3c3)}}]}]}],'defIds':[_0x2914c(0x574)]},Mt=P['forwardRef'](function(_0x8e4593,_0x4e01dd){const _0x50e67a=_0x2914c;return P[_0x50e67a(0x58a)](Ze,Object['assign']({},_0x8e4593,{'id':_0x50e67a(0x522),'ref':_0x4e01dd,'icon':Ai}));});Mt['displayName']=_0x2914c(0x5d8);function At(_0x5342db){const _0x3e6ee8=_0x2914c;var _0x35d6d7,_0x398b68,_0x17ca9a='';if(typeof _0x5342db==_0x3e6ee8(0x542)||typeof _0x5342db==_0x3e6ee8(0x480))_0x17ca9a+=_0x5342db;else{if(typeof _0x5342db==_0x3e6ee8(0x4bf)){if(Array[_0x3e6ee8(0x5dd)](_0x5342db)){var _0x2bd6e3=_0x5342db[_0x3e6ee8(0x286)];for(_0x35d6d7=0x0;_0x35d6d7<_0x2bd6e3;_0x35d6d7++)_0x5342db[_0x35d6d7]&&(_0x398b68=At(_0x5342db[_0x35d6d7]))&&(_0x17ca9a&&(_0x17ca9a+='\x20'),_0x17ca9a+=_0x398b68);}else{for(_0x398b68 in _0x5342db)_0x5342db[_0x398b68]&&(_0x17ca9a&&(_0x17ca9a+='\x20'),_0x17ca9a+=_0x398b68);}}}return _0x17ca9a;}function Li(){for(var _0x371efc,_0x2af130,_0x12dd99=0x0,_0x1e1f61='',_0x3fe848=arguments['length'];_0x12dd99<_0x3fe848;_0x12dd99++)(_0x371efc=arguments[_0x12dd99])&&(_0x2af130=At(_0x371efc))&&(_0x1e1f61&&(_0x1e1f61+='\x20'),_0x1e1f61+=_0x2af130);return _0x1e1f61;}const ji=_0x2914c(0x5bc),$i=_0x2914c(0x390),Hi=_0x2914c(0x4e6),xi=_0x2914c(0x2a1),ki=_0x2914c(0x3f3),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x25bf8f){const _0x5baafa=_0x2914c;switch(_0x25bf8f){case U[_0x5baafa(0x2f5)]:return'collabStatus.offline';case U['CONFLICT']:return'collabStatus.conflict';case U['FETCH_MISS']:return _0x5baafa(0x261);case U[_0x5baafa(0x428)]:return _0x5baafa(0x3e1);case U['PENDING']:case U['AWAITING']:case U['AWAITING_WITH_PENDING']:return _0x5baafa(0x577);case U[_0x5baafa(0x410)]:return _0x5baafa(0x2fc);}}function Lt(_0x137843){const _0x45a3ca=_0x2914c,{status$:_0x4b6db3}=_0x137843,_0x27ecbc=A[_0x45a3ca(0x4a0)](_0x4b6db3,U[_0x45a3ca(0x428)]),_0x31269c=a['useDependency'](a[_0x45a3ca(0x372)]),_0x138522=a[_0x45a3ca(0x421)](exports[_0x45a3ca(0x4fa)]),_0x3e810c=_0x27ecbc!==U[_0x45a3ca(0x2f5)],_0x40c24c=_0x31269c['t'](Bi(_0x27ecbc)),_0x34ed2d=Li(he[_0x45a3ca(0x359)],{[he['online']]:_0x3e810c,[he[_0x45a3ca(0x503)]]:!_0x3e810c}),_0x198b1b=_0x3e810c?P[_0x45a3ca(0x58a)](Mt,null):P[_0x45a3ca(0x58a)](Nt,null),_0x1b2253=P[_0x45a3ca(0x34b)](()=>{const _0x393ca0=_0x45a3ca;_0x3e810c||_0x138522[_0x393ca0(0x376)]();},[_0x3e810c,_0x138522]);function _0x1eaf82(){const _0x24b0aa=_0x45a3ca;return P[_0x24b0aa(0x58a)](_0x24b0aa(0x226),{'className':_0x34ed2d,'onClick':_0x1b2253},P[_0x24b0aa(0x58a)](_0x24b0aa(0x226),{'className':he[_0x24b0aa(0x39f)]},_0x198b1b),P[_0x24b0aa(0x58a)]('div',{'className':he[_0x24b0aa(0x5ae)]},_0x40c24c));}return _0x3e810c?_0x1eaf82():P[_0x45a3ca(0x58a)](X[_0x45a3ca(0x2b6)],{'title':_0x31269c['t'](_0x45a3ca(0x210))},_0x1eaf82());}var Vi=Object[_0x2914c(0x4a2)],Wi=Object[_0x2914c(0x5df)],Fi=(_0xcfa4b7,_0x7311d7,_0x3bfe98,_0x250521)=>{const _0x41b7c7=_0x2914c;for(var _0x2fbeac=_0x250521>0x1?void 0x0:_0x250521?Wi(_0x7311d7,_0x3bfe98):_0x7311d7,_0x3f5c0b=_0xcfa4b7[_0x41b7c7(0x286)]-0x1,_0xcbbfc6;_0x3f5c0b>=0x0;_0x3f5c0b--)(_0xcbbfc6=_0xcfa4b7[_0x3f5c0b])&&(_0x2fbeac=(_0x250521?_0xcbbfc6(_0x7311d7,_0x3bfe98,_0x2fbeac):_0xcbbfc6(_0x2fbeac))||_0x2fbeac);return _0x250521&&_0x2fbeac&&Vi(_0x7311d7,_0x3bfe98,_0x2fbeac),_0x2fbeac;},ge=(_0x2be18b,_0x3a508a)=>(_0x1fff75,_0x160960)=>_0x3a508a(_0x1fff75,_0x160960,_0x2be18b);exports[_0x2914c(0x357)]=class extends a['Disposable']{constructor(_0x1ea5e4,_0x17e1e7,_0x468d24,_0xe799fe){const _0x11df87=_0x2914c;super(),u(this,'_status$',new v['BehaviorSubject'](U['NOT_COLLAB'])),(this[_0x11df87(0x1cc)]=_0x1ea5e4,this[_0x11df87(0x3b0)]=_0x17e1e7,this[_0x11df87(0x311)]=_0x468d24,this[_0x11df87(0x44f)]=_0xe799fe,this[_0x11df87(0x3c5)](),this[_0x11df87(0x3ce)]());}[_0x2914c(0x3ce)](){const _0x4a2055=_0x2914c;this[_0x4a2055(0x449)](this['_univerInstanceService'][_0x4a2055(0x1c9)][_0x4a2055(0x2e1)](v[_0x4a2055(0x22a)](()=>{const _0x5bbad0=_0x4a2055,_0x1f53a5=this[_0x5bbad0(0x1cc)][_0x5bbad0(0x592)]();return _0x1f53a5?this['_collaborationController'][_0x5bbad0(0x35a)](_0x1f53a5[_0x5bbad0(0x3f8)]()):v['of'](null);}),v['switchMap'](_0x47b8a8=>_0x47b8a8?_0x47b8a8['status$']:v['of'](U[_0x4a2055(0x428)])))[_0x4a2055(0x24b)](_0x5568da=>{const _0x1ed6d7=_0x4a2055;this[_0x1ed6d7(0x386)][_0x1ed6d7(0x49a)](_0x5568da);}));}['_initStatusComponent'](){const _0x5b6fbf=_0x2914c;this[_0x5b6fbf(0x449)](this['_uiPartsService']['registerComponent'](A[_0x5b6fbf(0x3a5)][_0x5b6fbf(0x247)],()=>a['connectInjector'](Gi({'status$':this[_0x5b6fbf(0x386)][_0x5b6fbf(0x33d)]()}),this[_0x5b6fbf(0x311)])));}},exports['DesktopCollaborationStatusDisplayController']=Fi([ge(0x0,a[_0x2914c(0x202)]),ge(0x1,A['IUIPartsService']),ge(0x2,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),ge(0x3,a[_0x2914c(0x5d4)](exports[_0x2914c(0x5dc)]))],exports['DesktopCollaborationStatusDisplayController']);function Gi(_0x30dbe2){const {status$:_0x5481b0}=_0x30dbe2;return function(){return P['createElement'](Lt,{'status$':_0x5481b0});};}const Qe=a[_0x2914c(0x4e8)](_0x2914c(0x47b));var Yi=Object[_0x2914c(0x4a2)],Ki=Object[_0x2914c(0x5df)],Xi=(_0x35f559,_0x4f4299,_0x4069ee,_0x20fc61)=>{for(var _0x130237=_0x20fc61>0x1?void 0x0:_0x20fc61?Ki(_0x4f4299,_0x4069ee):_0x4f4299,_0x4cbe9a=_0x35f559['length']-0x1,_0x16e114;_0x4cbe9a>=0x0;_0x4cbe9a--)(_0x16e114=_0x35f559[_0x4cbe9a])&&(_0x130237=(_0x20fc61?_0x16e114(_0x4f4299,_0x4069ee,_0x130237):_0x16e114(_0x130237))||_0x130237);return _0x20fc61&&_0x130237&&Yi(_0x4f4299,_0x4069ee,_0x130237),_0x130237;},ee=(_0xb1528,_0x33c9b9)=>(_0x5269d0,_0x4cc24f)=>_0x33c9b9(_0x5269d0,_0x4cc24f,_0xb1528);exports[_0x2914c(0x5c5)]=class extends a[_0x2914c(0x325)]{constructor(_0x27b698,_0x5f4f37,_0x51a276,_0x4da35d,_0x1700d7,_0x3a357a){const _0x1f707d=_0x2914c;super(),this[_0x1f707d(0x2ef)]=_0x27b698,this[_0x1f707d(0x483)]=_0x5f4f37,this[_0x1f707d(0x5d2)]=_0x51a276,this[_0x1f707d(0x56f)]=_0x4da35d,this['_snapshotService']=_0x1700d7,_0x3a357a?_0x3a357a==null||_0x3a357a[_0x1f707d(0x47d)]()[_0x1f707d(0x22c)](()=>this[_0x1f707d(0x1f9)]()):(this[_0x1f707d(0x483)][_0x1f707d(0x387)](_0x1f707d(0x50d),_0x1f707d(0x218)),this[_0x1f707d(0x1f9)]());}async['_init'](){const _0x2916d1=_0x2914c,_0x80e308=this[_0x2916d1(0x2ef)][_0x2916d1(0x27a)](_0x2916d1(0x531)),_0x40fe05=this['_urlService'][_0x2916d1(0x27a)](_0x2916d1(0x355));if(!_0x80e308||!_0x40fe05){this[_0x2916d1(0x483)][_0x2916d1(0x387)](_0x2916d1(0x50d),_0x2916d1(0x46a));return;}switch(Number(_0x40fe05)){case $[_0x2916d1(0x55c)]:{const _0x403fde=await this[_0x2916d1(0x30e)](_0x80e308);this[_0x2916d1(0x40b)](_0x403fde);break;}case $[_0x2916d1(0x1e3)]:{await this[_0x2916d1(0x3d4)](_0x80e308);break;}default:{this['_logService'][_0x2916d1(0x219)](_0x2916d1(0x50d),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x2914c(0x40b)](_0x5b8c3c){const _0x1b2d87=_0x2914c;await this[_0x1b2d87(0x440)](_0x5b8c3c),_0x5b8c3c[_0x1b2d87(0x211)]['pipe'](v[_0x1b2d87(0x432)](this[_0x1b2d87(0x29c)]))[_0x1b2d87(0x24b)](_0x2d9af8=>{const _0x2fbad5=_0x1b2d87;_0x2d9af8&&this[_0x2fbad5(0x388)](_0x2d9af8);}),this['_urlService'][_0x1b2d87(0x50f)][_0x1b2d87(0x2e1)](v[_0x1b2d87(0x432)](this['dispose$']))[_0x1b2d87(0x24b)](()=>this[_0x1b2d87(0x440)](_0x5b8c3c));}[_0x2914c(0x388)](_0x3d672f,_0x1752a7=!0x1){const _0x2cabae=_0x2914c,_0x3aa946=this[_0x2cabae(0x2ef)][_0x2cabae(0x27a)](_0x2cabae(0x2c3));_0x3d672f[_0x2cabae(0x567)]()!==_0x3aa946&&this[_0x2cabae(0x2ef)][_0x2cabae(0x34c)](_0x2cabae(0x2c3),_0x3d672f['getSheetId'](),_0x1752a7);}async['_updateSubUnitFromURLParams'](_0x589019){const _0xbb0a46=_0x2914c;var _0x520235;const _0x41cd75=this['_urlService'][_0xbb0a46(0x27a)](_0xbb0a46(0x2c3));if(!_0x41cd75||!_0x589019[_0xbb0a46(0x2bb)](_0x41cd75)){const _0x1aca4d=_0x589019[_0xbb0a46(0x464)]()[0x0],_0x4684ee=_0x589019['getSheetBySheetId'](_0x1aca4d);if(!_0x4684ee)return;this[_0xbb0a46(0x388)](_0x4684ee,!0x0),await this['_commandService']['executeCommand'](C[_0xbb0a46(0x39d)]['id'],{'unitId':_0x589019[_0xbb0a46(0x3f8)](),'subUnitId':_0x1aca4d});return;}((_0x520235=_0x589019[_0xbb0a46(0x4cf)]())==null?void 0x0:_0x520235[_0xbb0a46(0x567)]())!==_0x41cd75&&await this[_0xbb0a46(0x5d2)]['executeCommand'](C[_0xbb0a46(0x39d)]['id'],{'unitId':_0x589019[_0xbb0a46(0x3f8)](),'subUnitId':_0x41cd75});}async[_0x2914c(0x30e)](_0x28172b){const _0x1cda6a=_0x2914c;let _0x2f0c6c=0x0;const _0x2d946b=await this['_localCacheService']['loadOfflineData'](_0x28172b);return _0x2d946b&&(_0x2d946b['awaitingChangeset']||_0x2d946b['mutations']['length']!==0x0)&&(_0x2f0c6c=_0x2d946b[_0x1cda6a(0x42e)]),_0x2f0c6c===0x0&&this[_0x1cda6a(0x483)][_0x1cda6a(0x387)](_0x1cda6a(0x50d),_0x1cda6a(0x352)),this['_snapshotService'][_0x1cda6a(0x459)](_0x28172b,_0x2f0c6c);}async[_0x2914c(0x3d4)](_0x393102){const _0x30b808=_0x2914c;let _0x4b9d49=0x0;const _0x1944a6=await this[_0x30b808(0x56f)][_0x30b808(0x3aa)](_0x393102);return _0x1944a6&&(_0x1944a6[_0x30b808(0x2b5)]||_0x1944a6['mutations']['length']!==0x0)&&(_0x4b9d49=_0x1944a6[_0x30b808(0x42e)]),_0x4b9d49===0x0&&this[_0x30b808(0x483)]['debug']('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x30b808(0x51e)](_0x393102,_0x4b9d49);}},exports[_0x2914c(0x5c5)]=Xi([ee(0x0,Qe),ee(0x1,a['ILogService']),ee(0x2,a[_0x2914c(0x1d2)]),ee(0x3,a[_0x2914c(0x5d4)](exports[_0x2914c(0x467)])),ee(0x4,a[_0x2914c(0x5d4)](_['SnapshotService'])),ee(0x5,a[_0x2914c(0x563)](Kt[_0x2914c(0x4a7)]))],exports[_0x2914c(0x5c5)]);var qi=Object[_0x2914c(0x4a2)],zi=Object[_0x2914c(0x5df)],Ji=(_0x41bc64,_0xbf7dda,_0xd09525,_0x76ea35)=>{for(var _0x5b3b69=_0x76ea35>0x1?void 0x0:_0x76ea35?zi(_0xbf7dda,_0xd09525):_0xbf7dda,_0x59d05a=_0x41bc64['length']-0x1,_0x3b403c;_0x59d05a>=0x0;_0x59d05a--)(_0x3b403c=_0x41bc64[_0x59d05a])&&(_0x5b3b69=(_0x76ea35?_0x3b403c(_0xbf7dda,_0xd09525,_0x5b3b69):_0x3b403c(_0x5b3b69))||_0x5b3b69);return _0x76ea35&&_0x5b3b69&&qi(_0xbf7dda,_0xd09525,_0x5b3b69),_0x5b3b69;},_t=(_0x56f1fc,_0x31c419)=>(_0x5a7e60,_0x19e88b)=>_0x31c419(_0x5a7e60,_0x19e88b,_0x56f1fc);const Zi=_0x2914c(0x3ef),Qi=_0x2914c(0x5d0);let Ce=class extends a['Disposable']{constructor(_0x3bbab4,_0xf2d00a){const _0x21a490=_0x2914c;super(),this[_0x21a490(0x1cc)]=_0x3bbab4,this[_0x21a490(0x288)]=_0xf2d00a,this[_0x21a490(0x1f9)]();}[_0x2914c(0x1f9)](){const _0x286ac2=_0x2914c;this[_0x286ac2(0x449)](this[_0x286ac2(0x1cc)][_0x286ac2(0x1c9)][_0x286ac2(0x24b)](()=>{const _0x59e9ca=_0x286ac2;var _0x4d2f25;const _0x45926b=this[_0x59e9ca(0x1cc)][_0x59e9ca(0x592)]();let _0x1542a2=(_0x4d2f25=this[_0x59e9ca(0x288)][_0x59e9ca(0x36c)](Zi))!=null?_0x4d2f25:Qi;_0x45926b instanceof a['Workbook']&&(_0x1542a2=_0x45926b[_0x59e9ca(0x593)]),document[_0x59e9ca(0x327)]=_0x1542a2;}));}};Ce=Ji([_t(0x0,a[_0x2914c(0x202)]),_t(0x1,a['IConfigService'])],Ce);var en=Object['defineProperty'],tn=Object[_0x2914c(0x5df)],sn=(_0x37172d,_0x4d7b4c,_0x1922a4,_0x1c6fd5)=>{const _0x1b6f59=_0x2914c;for(var _0x812f49=_0x1c6fd5>0x1?void 0x0:_0x1c6fd5?tn(_0x4d7b4c,_0x1922a4):_0x4d7b4c,_0x5df3b6=_0x37172d[_0x1b6f59(0x286)]-0x1,_0x2d9df4;_0x5df3b6>=0x0;_0x5df3b6--)(_0x2d9df4=_0x37172d[_0x5df3b6])&&(_0x812f49=(_0x1c6fd5?_0x2d9df4(_0x4d7b4c,_0x1922a4,_0x812f49):_0x2d9df4(_0x812f49))||_0x812f49);return _0x1c6fd5&&_0x812f49&&en(_0x4d7b4c,_0x1922a4,_0x812f49),_0x812f49;},He=(_0x261213,_0x333e73)=>(_0xc4264f,_0x2edb1f)=>_0x333e73(_0xc4264f,_0x2edb1f,_0x261213);let Ee=class{constructor(_0x5825ea,_0x4a81a9,_0x88e92b){const _0x1bb012=_0x2914c;this[_0x1bb012(0x288)]=_0x5825ea,this[_0x1bb012(0x401)]=_0x4a81a9,this[_0x1bb012(0x252)]=_0x88e92b,this[_0x1bb012(0x4ea)]();}[_0x2914c(0x4ea)](){const _0x4b0d91=_0x2914c;this[_0x4b0d91(0x401)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x376175,_0x5a7db0)=>_0x5a7db0(_0x376175)['pipe'](v[_0x4b0d91(0x3e4)](async _0x250d90=>{const _0x3d1b4a=_0x4b0d91,_0x2e7bd9=_0x250d90;if(_0x2e7bd9[_0x3d1b4a(0x29a)]===0x191&&window[_0x3d1b4a(0x1f3)](this[_0x3d1b4a(0x252)]['t'](_0x3d1b4a(0x246)))){const _0x111f75=window['encodeURIComponent'](window['location'][_0x3d1b4a(0x5ca)]);window[_0x3d1b4a(0x383)]['href']=this[_0x3d1b4a(0x3cb)]()+_0x3d1b4a(0x3bc)+_0x111f75;}return _0x2e7bd9;}))});}[_0x2914c(0x3cb)](){const _0x34ec49=_0x2914c;var _0x3e7287,_0x333fcc;const _0x423c0a=this[_0x34ec49(0x288)][_0x34ec49(0x36c)](Et),_0x6ffe8c=this[_0x34ec49(0x288)][_0x34ec49(0x36c)](L);return(_0x333fcc=(_0x3e7287=_0x6ffe8c==null?void 0x0:_0x6ffe8c[_0x34ec49(0x412)])!=null?_0x3e7287:_0x423c0a)!=null?_0x333fcc:ns;}};Ee=sn([He(0x0,a[_0x2914c(0x4b3)]),He(0x1,a[_0x2914c(0x5d4)](w[_0x2914c(0x548)])),He(0x2,a[_0x2914c(0x5d4)](a[_0x2914c(0x372)]))],Ee);var nn=Object[_0x2914c(0x4a2)],rn=Object[_0x2914c(0x5df)],on=(_0x1953a0,_0x1a4a76,_0x10e15c,_0x4fd886)=>{const _0xbece3e=_0x2914c;for(var _0x35a240=_0x4fd886>0x1?void 0x0:_0x4fd886?rn(_0x1a4a76,_0x10e15c):_0x1a4a76,_0x2f3bb2=_0x1953a0[_0xbece3e(0x286)]-0x1,_0x44d12c;_0x2f3bb2>=0x0;_0x2f3bb2--)(_0x44d12c=_0x1953a0[_0x2f3bb2])&&(_0x35a240=(_0x4fd886?_0x44d12c(_0x1a4a76,_0x10e15c,_0x35a240):_0x44d12c(_0x35a240))||_0x35a240);return _0x4fd886&&_0x35a240&&nn(_0x1a4a76,_0x10e15c,_0x35a240),_0x35a240;},ut=(_0x410ccc,_0x5e7bf3)=>(_0xc3713,_0x4dc93c)=>_0x5e7bf3(_0xc3713,_0x4dc93c,_0x410ccc);const jt='AUTHZ_URL_KEY',an='/universer-api/authz';exports[_0x2914c(0x580)]=class extends a['Disposable']{constructor(_0x417531,_0x5ba31f){const _0x864a48=_0x2914c;super(),this['_HTTPService']=_0x417531,this['_configService']=_0x5ba31f,this[_0x864a48(0x1b4)]();}[_0x2914c(0x1b4)](){const _0x5a55fd=_0x2914c,_0x1bf0ba=this;this['disposeWithMe'](this[_0x5a55fd(0x3d7)][_0x5a55fd(0x4c7)]({'priority':0x3e7,'interceptor':w[_0x5a55fd(0x31c)]({'isMatch'(_0x4e28e0){const _0x330eac=_0x5a55fd;var _0x36bd9f;if(_0x4e28e0[_0x330eac(0x46c)]==='POST'&&((_0x36bd9f=_0x4e28e0[_0x330eac(0x582)])!=null&&_0x36bd9f[_0x330eac(0x2a6)])){const {objectID:_0x2237b0,objectType:_0x5d9bfd}=_0x4e28e0[_0x330eac(0x582)][_0x330eac(0x2a6)]||{};if(!_0x2237b0||_0x5d9bfd===void 0x0)return!0x1;const _0xde1dd=_0x1bf0ba[_0x330eac(0x43f)]()+'/'+_0x5d9bfd+_0x330eac(0x583)+_0x2237b0+_0x330eac(0x5a0);if(_0x4e28e0[_0x330eac(0x521)]===_0xde1dd)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x327c9f){const _0x5f33d6=_0x5a55fd;var _0x38fcb0;return(_0x38fcb0=_0x327c9f[_0x5f33d6(0x582)])==null?void 0x0:_0x38fcb0['body'];},'mergeParamsToRequest'(_0x179397,_0x4770be){const _0x22a203=_0x5a55fd,_0x5834b7=_0x1bf0ba[_0x22a203(0x43f)]()+_0x22a203(0x1bb),_0xee95fd=_0x179397[_0x22a203(0x241)]((_0x34006b,_0x4d27d3)=>{const _0x34c949=_0x22a203,{unitID:_0x1ef907,objectID:_0x5ba85f,objectType:_0x13376e,actions:_0x10db70}=_0x4d27d3;return _0x34006b[_0x1ef907]||(_0x34006b[_0x1ef907]={}),_0x34006b[_0x1ef907][_0x5ba85f]||(_0x34006b[_0x1ef907][_0x5ba85f]={'objectID':_0x5ba85f,'objectType':_0x13376e,'actions':[]}),_0x34006b[_0x1ef907][_0x5ba85f][_0x34c949(0x205)][_0x34c949(0x4ed)](..._0x10db70),_0x34006b;},{}),_0x58a889=[];for(const _0x5adfc5 in _0xee95fd)for(const _0x455b69 in _0xee95fd[_0x5adfc5]){const {actions:_0x3c31bf,objectType:_0x24e0e8}=_0xee95fd[_0x5adfc5][_0x455b69],_0x5e1e5b=[...new Set(_0x3c31bf)];_0x58a889[_0x22a203(0x4ed)]({'unitID':_0x5adfc5,'objectID':_0x455b69,'objectType':_0x24e0e8,'actions':_0x5e1e5b});}return new w[(_0x22a203(0x588))](_0x22a203(0x3f7),_0x5834b7,{'headers':_0x4770be[_0x22a203(0x35c)],'withCredentials':_0x4770be[_0x22a203(0x2d3)],'responseType':_0x4770be[_0x22a203(0x37f)],'body':{'requests':_0x58a889}});}},{'distributeResult'(_0x4a1c02,_0x75f195){const _0x255745=_0x5a55fd,{objectActions:_0x8ba731}=_0x4a1c02;return _0x75f195[_0x255745(0x53b)](_0x4a224b=>{const _0x16b291=_0x255745,{unitID:_0x8e0503,objectID:_0x3793dd,actions:_0x5cc85e}=_0x4a224b,_0x4fe477=_0x8ba731[_0x16b291(0x55b)](_0x4070e9=>_0x4070e9[_0x16b291(0x3a9)]===_0x8e0503&&_0x4070e9[_0x16b291(0x559)]===_0x3793dd),_0x37a462=_0x5cc85e[_0x16b291(0x53b)](_0xdbfbf2=>_0x4fe477==null?void 0x0:_0x4fe477[_0x16b291(0x205)]['find'](_0x37813b=>_0x37813b['action']===_0xdbfbf2))[_0x16b291(0x48d)](_0x1f1b55=>!!_0x1f1b55);return{'config':_0x4a224b,'result':{'actions':_0x37a462,'error':_0x4a1c02[_0x16b291(0x219)]}};});}})}));}[_0x2914c(0x43f)](){const _0x361ecb=_0x2914c;var _0x3ea661,_0x330484;const _0x1bb7e4=this[_0x361ecb(0x288)][_0x361ecb(0x36c)](jt),_0x27550f=this[_0x361ecb(0x288)][_0x361ecb(0x36c)](L);return(_0x330484=(_0x3ea661=_0x27550f==null?void 0x0:_0x27550f[_0x361ecb(0x36f)])!=null?_0x3ea661:_0x1bb7e4)!=null?_0x330484:an;}async[_0x2914c(0x5e0)](_0x47950c){const _0x13c026=_0x2914c,_0x3a6f7d=this[_0x13c026(0x43f)]()+'/'+_0x47950c[_0x13c026(0x208)]+_0x13c026(0x2db);return(await this[_0x13c026(0x3d7)][_0x13c026(0x564)](_0x3a6f7d,{'body':_0x47950c}))['body']['objectID']||'';}async[_0x2914c(0x356)](_0x52e84a){const _0x3b06ef=_0x2914c,_0x1045e8=this[_0x3b06ef(0x43f)]()+_0x3b06ef(0x2fb);return(await this[_0x3b06ef(0x3d7)][_0x3b06ef(0x564)](_0x1045e8,{'body':_0x52e84a}))[_0x3b06ef(0x2a6)][_0x3b06ef(0x400)];}async['update'](_0x33e70a){const _0x174b4a=_0x2914c,_0x40aba1=this[_0x174b4a(0x43f)]()+'/'+_0x33e70a['objectType']+_0x174b4a(0x583)+_0x33e70a[_0x174b4a(0x559)];await this[_0x174b4a(0x3d7)][_0x174b4a(0x589)](_0x40aba1,{'body':_0x33e70a});}async['allowed'](_0x3d8800){const _0x175644=_0x2914c,_0xb432c0=this['_getAPIPrefixPath']()+'/'+_0x3d8800[_0x175644(0x208)]+_0x175644(0x583)+_0x3d8800[_0x175644(0x559)]+_0x175644(0x5a0);return(await this[_0x175644(0x3d7)][_0x175644(0x564)](_0xb432c0,{'body':_0x3d8800}))[_0x175644(0x2a6)][_0x175644(0x205)];}async['batchAllowed'](_0x7bfe3b){const _0x505b75=_0x2914c,_0x5c74ba=this[_0x505b75(0x43f)]()+_0x505b75(0x1bb);return(await this['_HTTPService']['post'](_0x5c74ba,{'body':{'requests':_0x7bfe3b}}))[_0x505b75(0x2a6)]['objectActions'];}async['listRoles'](_0x16ada9){const _0x1b304c=_0x2914c,_0x3692b8=this[_0x1b304c(0x43f)]()+'/'+_0x16ada9[_0x1b304c(0x208)]+_0x1b304c(0x5e3),_0x56e177=await this[_0x1b304c(0x3d7)]['post'](_0x3692b8,{'body':_0x16ada9});return{'roles':_0x56e177[_0x1b304c(0x2a6)][_0x1b304c(0x338)],'actions':_0x56e177[_0x1b304c(0x2a6)]['actions']};}async[_0x2914c(0x381)](_0x338fac){const _0x4bb083=_0x2914c,_0x8fdacc=this[_0x4bb083(0x43f)]()+_0x4bb083(0x5ce);await this[_0x4bb083(0x3d7)][_0x4bb083(0x2fd)](_0x8fdacc,{'params':{'collaboratorID':_0x338fac['collaboratorID'],'objectID':_0x338fac[_0x4bb083(0x559)],'unitID':_0x338fac[_0x4bb083(0x3a9)]}});}async[_0x2914c(0x20f)](_0x51426c){const _0x1a14e5=_0x2914c,_0x558c58=this[_0x1a14e5(0x43f)]()+_0x1a14e5(0x5ce);await this[_0x1a14e5(0x3d7)][_0x1a14e5(0x251)](_0x558c58,{'body':_0x51426c});}async[_0x2914c(0x4aa)](_0x4329f5){const _0xed59fb=_0x2914c,_0x25b0a7=this[_0xed59fb(0x43f)]()+_0xed59fb(0x5ce);await this[_0xed59fb(0x3d7)]['post'](_0x25b0a7,{'body':_0x4329f5});}async[_0x2914c(0x3ea)](_0x5eb28c){const _0x5459d1=_0x2914c,_0x1e419c=this['_getAPIPrefixPath']()+_0x5459d1(0x5ce);return(await this[_0x5459d1(0x3d7)][_0x5459d1(0x24c)](_0x1e419c,{'params':{'objectID':_0x5eb28c[_0x5459d1(0x559)],'unitID':_0x5eb28c[_0x5459d1(0x3a9)]}}))[_0x5459d1(0x2a6)][_0x5459d1(0x4b0)];}async[_0x2914c(0x2f0)](_0x7b9dba){const _0x4e70a8=_0x2914c,_0x56d289=this[_0x4e70a8(0x43f)]()+_0x4e70a8(0x5ce);await this[_0x4e70a8(0x3d7)][_0x4e70a8(0x589)](_0x56d289,{'body':_0x7b9dba});}},exports[_0x2914c(0x580)]=on([ut(0x0,a[_0x2914c(0x5d4)](w[_0x2914c(0x548)])),ut(0x1,a[_0x2914c(0x5d4)](a['IConfigService']))],exports[_0x2914c(0x580)]);var cn=Object[_0x2914c(0x4a2)],ln=Object[_0x2914c(0x5df)],hn=(_0x59bf65,_0x10052e,_0x7947d1,_0x510d7c)=>{const _0x21729f=_0x2914c;for(var _0x5b32c9=_0x510d7c>0x1?void 0x0:_0x510d7c?ln(_0x10052e,_0x7947d1):_0x10052e,_0x46e839=_0x59bf65[_0x21729f(0x286)]-0x1,_0x1f4303;_0x46e839>=0x0;_0x46e839--)(_0x1f4303=_0x59bf65[_0x46e839])&&(_0x5b32c9=(_0x510d7c?_0x1f4303(_0x10052e,_0x7947d1,_0x5b32c9):_0x1f4303(_0x5b32c9))||_0x5b32c9);return _0x510d7c&&_0x5b32c9&&cn(_0x10052e,_0x7947d1,_0x5b32c9),_0x5b32c9;},_n=(_0x179bed,_0x3abac5)=>(_0xf26263,_0x36475a)=>_0x3abac5(_0xf26263,_0x36475a,_0x179bed);let be=class{constructor(_0x4a2e76){const _0x42fd6c=_0x2914c;this[_0x42fd6c(0x401)]=_0x4a2e76,this[_0x42fd6c(0x51b)]();}['_initRequestHeader'](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x348908,_0x4aa0e7)=>{const _0x2cc353=_0x190c,_0xae48bd=_0x348908[_0x2cc353(0x35c)],_0x27a32f=Xt[_0x2cc353(0x4bd)]();return _0x27a32f&&_0xae48bd[_0x2cc353(0x41d)](_0x2cc353(0x309),_0x27a32f),_0x4aa0e7(_0x348908);}});}};be=hn([_n(0x0,a[_0x2914c(0x5d4)](w[_0x2914c(0x548)]))],be);var un=Object[_0x2914c(0x4a2)],dn=Object[_0x2914c(0x5df)],Sn=(_0x452297,_0x5504f6,_0x23e38e,_0x39d27f)=>{const _0x291f2e=_0x2914c;for(var _0x25da9f=_0x39d27f>0x1?void 0x0:_0x39d27f?dn(_0x5504f6,_0x23e38e):_0x5504f6,_0x1a72d7=_0x452297[_0x291f2e(0x286)]-0x1,_0x5c1145;_0x1a72d7>=0x0;_0x1a72d7--)(_0x5c1145=_0x452297[_0x1a72d7])&&(_0x25da9f=(_0x39d27f?_0x5c1145(_0x5504f6,_0x23e38e,_0x25da9f):_0x5c1145(_0x25da9f))||_0x25da9f);return _0x39d27f&&_0x25da9f&&un(_0x5504f6,_0x23e38e,_0x25da9f),_0x25da9f;},xe=(_0x51484e,_0x327465)=>(_0x3654d9,_0x2eb388)=>_0x327465(_0x3654d9,_0x2eb388,_0x51484e);const vn=[_0x2914c(0x4fc),_0x2914c(0x1b3),_0x2914c(0x444),'image/gif',_0x2914c(0x20b)],gn=0x5*0x400*0x400,mn=_0x2914c(0x378),fn=_0x2914c(0x25b),In=_0x2914c(0x47c),pn='/universer-api/file/{fileID}/sign-url';exports[_0x2914c(0x28b)]=class{constructor(_0x275502,_0x39e4bf,_0x5b3e44){const _0x46e012=_0x2914c;u(this,_0x46e012(0x5c4),0x0),u(this,_0x46e012(0x510),new v[(_0x46e012(0x430))]()),u(this,_0x46e012(0x560),this['_change$']),u(this,'_imageSourceCache',new Map()),(this[_0x46e012(0x401)]=_0x275502,this[_0x46e012(0x288)]=_0x39e4bf,this[_0x46e012(0x1cc)]=_0x5b3e44);}[_0x2914c(0x230)](_0x5b7a7a){const _0x4f91dd=_0x2914c;this[_0x4f91dd(0x5c4)]=_0x5b7a7a,this[_0x4f91dd(0x510)][_0x4f91dd(0x49a)](_0x5b7a7a);}['getImageSourceCache'](_0x468300,_0x3424ad){const _0x4803b0=_0x2914c;if(_0x3424ad===j[_0x4803b0(0x2a3)][_0x4803b0(0x2a8)]){const _0x1757b5=new Image();return _0x1757b5['src']=_0x468300,_0x1757b5;}return this[_0x4803b0(0x1d6)][_0x4803b0(0x24c)](_0x468300);}[_0x2914c(0x28d)](_0x5177c1,_0x39b2ad,_0x2b969e){const _0x2603d6=_0x2914c;_0x39b2ad===j['ImageSourceType']['BASE64']||_0x2b969e==null||this['_imageSourceCache'][_0x2603d6(0x41d)](_0x5177c1,_0x2b969e);}async[_0x2914c(0x26e)](_0x4d75d7){const _0x495947=_0x2914c;try{const _0x1ac49a=this[_0x495947(0x1de)](this[_0x495947(0x54c)](),''+_0x4d75d7),_0x2eb6ac=(await this[_0x495947(0x401)][_0x495947(0x24c)](_0x1ac49a))['body'];if(_0x2eb6ac['error']&&_0x2eb6ac[_0x495947(0x219)][_0x495947(0x389)]===bt['OK']){const _0x5711a=new URL(_0x2eb6ac['url'],this[_0x495947(0x45b)]())['toString']();return Promise[_0x495947(0x2dc)](_0x5711a);}return Promise['reject'](_0x2eb6ac[_0x495947(0x219)]);}catch(_0x543f2a){return Promise['reject'](_0x543f2a);}}async[_0x2914c(0x55e)](_0x3f3cf8){const _0x3e2397=_0x2914c;let _0x518ded='';if(!vn[_0x3e2397(0x396)](_0x3f3cf8['type']))return this[_0x3e2397(0x3b6)](),Promise[_0x3e2397(0x566)](new Error(j[_0x3e2397(0x2d5)][_0x3e2397(0x4c3)]));if(_0x3f3cf8[_0x3e2397(0x585)]>gn)return this['_decreaseWaiting'](),Promise['reject'](new Error(j[_0x3e2397(0x2d5)][_0x3e2397(0x59b)]));try{const _0x3118bd=new FormData();_0x3118bd[_0x3e2397(0x32f)](_0x3e2397(0x45d),_0x3f3cf8);const _0x4ef118=this[_0x3e2397(0x1cc)]['getFocusedUnit'](),_0x2beffc=_0x4ef118==null?void 0x0:_0x4ef118[_0x3e2397(0x3f8)]();if(!_0x2beffc)throw new Error('unitId\x20is\x20not\x20found');const _0x3ceb75=this['_getUploadFileURL']()+_0x3e2397(0x3e7)+_0x3f3cf8[_0x3e2397(0x585)]['toString']()+_0x3e2397(0x25d)+Tt[_0x3e2397(0x3db)]+'&assign='+encodeURIComponent(_0x2beffc),_0x2419b5=await(await fetch(_0x3ceb75,{'method':'POST','body':_0x3118bd}))[_0x3e2397(0x520)]();if(typeof _0x2419b5[_0x3e2397(0x292)]!='string')return this[_0x3e2397(0x3b6)](),Promise[_0x3e2397(0x566)](new Error(j['ImageUploadStatusType']['ERROR_IMAGE']));_0x518ded=_0x2419b5[_0x3e2397(0x292)];}catch{return this[_0x3e2397(0x3b6)](),Promise[_0x3e2397(0x566)](new Error(j[_0x3e2397(0x2d5)][_0x3e2397(0x233)]));}return new Promise((_0x513711,_0x2baab5)=>{const _0x44c444=_0x3e2397,_0x54d1c9=new FileReader();_0x54d1c9[_0x44c444(0x553)](_0x3f3cf8),_0x54d1c9[_0x44c444(0x3ac)]=_0x1a2c6e=>{const _0x523e3a=_0x44c444;var _0xa85db1;const _0x5ee099=(_0xa85db1=_0x1a2c6e[_0x523e3a(0x481)])==null?void 0x0:_0xa85db1[_0x523e3a(0x319)];if(_0x5ee099==null){this['_decreaseWaiting'](),_0x2baab5(new Error(j[_0x523e3a(0x2d5)][_0x523e3a(0x233)]));return;}const _0x2410dc=a[_0x523e3a(0x27f)]['generateRandomId'](0x6);_0x513711({'imageId':_0x2410dc,'imageSourceType':j['ImageSourceType'][_0x523e3a(0x245)],'source':_0x518ded,'base64Cache':_0x5ee099,'status':j[_0x523e3a(0x2d5)][_0x523e3a(0x4f3)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x1b7791=_0x2914c;var _0x1fff3b,_0x40812d;const _0x4a56e5=this['_configService']['getConfig'](mn),_0x4f1ff6=this[_0x1b7791(0x288)]['getConfig'](L);return(_0x40812d=(_0x1fff3b=_0x4f1ff6==null?void 0x0:_0x4f1ff6['uploadFileServerUrl'])!=null?_0x1fff3b:_0x4a56e5)!=null?_0x40812d:fn;}[_0x2914c(0x54c)](){const _0x3269fe=_0x2914c;var _0x3e2e1e,_0x234550;const _0x28cead=this[_0x3269fe(0x288)][_0x3269fe(0x36c)](In),_0x19440e=this['_configService']['getConfig'](L);return(_0x234550=(_0x3e2e1e=_0x19440e==null?void 0x0:_0x19440e[_0x3269fe(0x594)])!=null?_0x3e2e1e:_0x28cead)!=null?_0x234550:pn;}['_getDownloadEndpointURL'](){const _0x367c72=_0x2914c;var _0x51ccdb;const _0x4dad1c=this[_0x367c72(0x288)][_0x367c72(0x36c)](L);return(_0x51ccdb=_0x4dad1c==null?void 0x0:_0x4dad1c[_0x367c72(0x424)])!=null?_0x51ccdb:location[_0x367c72(0x248)];}['_replaceFileID'](_0x171069,_0x57befa){const _0x3c8932=_0x2914c;return _0x171069[_0x3c8932(0x49f)]('{fileID}',_0x57befa);}[_0x2914c(0x3b6)](){const _0x4ac3b6=_0x2914c;this['_waitCount']-=0x1,this['_change$']['next'](this[_0x4ac3b6(0x5c4)]);}},exports['ImageIoService']=Sn([xe(0x0,a['Inject'](w[_0x2914c(0x548)])),xe(0x1,a['IConfigService']),xe(0x2,a[_0x2914c(0x5d4)](a[_0x2914c(0x202)]))],exports[_0x2914c(0x28b)]);var Cn=Object['defineProperty'],En=Object['getOwnPropertyDescriptor'],bn=(_0x691b23,_0x2d09a2,_0x102149,_0x57f2d6)=>{const _0x4ce137=_0x2914c;for(var _0x5b8b6f=_0x57f2d6>0x1?void 0x0:_0x57f2d6?En(_0x2d09a2,_0x102149):_0x2d09a2,_0x552b13=_0x691b23[_0x4ce137(0x286)]-0x1,_0x1eedea;_0x552b13>=0x0;_0x552b13--)(_0x1eedea=_0x691b23[_0x552b13])&&(_0x5b8b6f=(_0x57f2d6?_0x1eedea(_0x2d09a2,_0x102149,_0x5b8b6f):_0x1eedea(_0x5b8b6f))||_0x5b8b6f);return _0x57f2d6&&_0x5b8b6f&&Cn(_0x2d09a2,_0x102149,_0x5b8b6f),_0x5b8b6f;},_e=(_0x59a928,_0x3a3825)=>(_0x478fe3,_0x2ae2b1)=>_0x3a3825(_0x478fe3,_0x2ae2b1,_0x59a928);let Te=class extends a[_0x2914c(0x325)]{constructor(_0x4edb9e,_0x243bae,_0x37baf3,_0x2de2ac,_0x54fefb){const _0x5b9d0c=_0x2914c;super(),this[_0x5b9d0c(0x311)]=_0x4edb9e,this[_0x5b9d0c(0x1cc)]=_0x243bae,this[_0x5b9d0c(0x1d8)]=_0x37baf3,this[_0x5b9d0c(0x56a)]=_0x2de2ac,this[_0x5b9d0c(0x304)]=_0x54fefb,this['_initUnitPermissionChange'](),this[_0x5b9d0c(0x586)]();}[_0x2914c(0x586)](){const _0x5793ff=_0x2914c,_0x1345da=async _0x306de3=>{const _0xd48d35=_0x190c;(await this[_0xd48d35(0x56a)][_0xd48d35(0x2e2)](_0x306de3))[_0xd48d35(0x339)][_0xd48d35(0x2e1)](E[_0xd48d35(0x48d)](_0x300dc1=>_0x300dc1[_0xd48d35(0x57f)]===_['CollaborationEvent'][_0xd48d35(0x5d3)]),E[_0xd48d35(0x432)](this[_0xd48d35(0x29c)]))[_0xd48d35(0x24b)](_0x220315=>{const _0x5e577f=_0xd48d35,_0x25403d=_0x220315,{reason:_0x1164f0}=_0x25403d[_0x5e577f(0x498)];this[_0x5e577f(0x311)][_0x5e577f(0x24c)](A[_0x5e577f(0x561)])['show']({'type':X['MessageType'][_0x5e577f(0x4b5)],'content':this[_0x5e577f(0x304)]['t'](_0x5e577f(0x45c))+'('+_0x1164f0+')'}),this[_0x5e577f(0x1d8)][_0x5e577f(0x380)](new C['WorkbookEditablePermission'](_0x306de3)['id'],!0x1),this[_0x5e577f(0x56a)][_0x5e577f(0x2a9)](_0x306de3);});};v[_0x5793ff(0x27d)](this[_0x5793ff(0x1cc)][_0x5793ff(0x4dd)](a['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService'][_0x5793ff(0x4dd)](a[_0x5793ff(0x3ed)][_0x5793ff(0x1e3)]))['pipe'](E['map'](_0x5286d9=>_0x5286d9[_0x5793ff(0x3f8)]()),E[_0x5793ff(0x48d)](_0x36cf29=>!a[_0x5793ff(0x2bd)](_0x36cf29)),E[_0x5793ff(0x432)](this[_0x5793ff(0x29c)]))['subscribe'](_0xa3304f=>{_0x1345da(_0xa3304f);});}[_0x2914c(0x341)](){const _0x373213=_0x2914c,_0x266873=async _0x3edce8=>{const _0x200314=_0x190c;(await this[_0x200314(0x56a)][_0x200314(0x2e2)](_0x3edce8))['event$'][_0x200314(0x2e1)](E[_0x200314(0x48d)](_0x4f8fc4=>_0x4f8fc4['eventID']===_['CollaborationEvent'][_0x200314(0x331)]),E[_0x200314(0x432)](this['dispose$']))[_0x200314(0x24b)](_0x5dd905=>{const _0x2264d4=_0x200314,_0x47c6e0=_0x5dd905,{objectId:_0x41056b}=_0x47c6e0[_0x2264d4(0x498)],_0x474e91=this[_0x2264d4(0x311)][_0x2264d4(0x24c)](te[_0x2264d4(0x237)]);_0x41056b===_0x3edce8?_0x474e91[_0x2264d4(0x4d7)](_0x3edce8):_0x474e91[_0x2264d4(0x1b8)](_0x3edce8,_0x41056b);});};v[_0x373213(0x27d)](this[_0x373213(0x1cc)]['getTypeOfUnitAdded$'](a[_0x373213(0x3ed)][_0x373213(0x55c)]),this[_0x373213(0x1cc)][_0x373213(0x4dd)](a[_0x373213(0x3ed)][_0x373213(0x1e3)]))[_0x373213(0x2e1)](E[_0x373213(0x53b)](_0x495f88=>_0x495f88[_0x373213(0x3f8)]()),E[_0x373213(0x48d)](_0x323626=>!a[_0x373213(0x2bd)](_0x323626)),E[_0x373213(0x432)](this[_0x373213(0x29c)]))[_0x373213(0x24b)](_0x5b177e=>{_0x266873(_0x5b177e);});}};Te=bn([_e(0x0,a[_0x2914c(0x5d4)](a['Injector'])),_e(0x1,a[_0x2914c(0x202)]),_e(0x2,a[_0x2914c(0x323)]),_e(0x3,a[_0x2914c(0x5d4)](exports['CollaborationSessionService'])),_e(0x4,a[_0x2914c(0x5d4)](a['LocaleService']))],Te);function _0x190c(_0x279dfc,_0x3974a9){const _0x21e91b=_0x21e9();return _0x190c=function(_0x190c8f,_0x45b2db){_0x190c8f=_0x190c8f-0x1b1;let _0x457630=_0x21e91b[_0x190c8f];return _0x457630;},_0x190c(_0x279dfc,_0x3974a9);}var Tn=Object[_0x2914c(0x4a2)],Rn=Object[_0x2914c(0x5df)],On=(_0x30c313,_0x59aca5,_0x509fc2,_0x235908)=>{const _0x295a41=_0x2914c;for(var _0x9fd2b8=_0x235908>0x1?void 0x0:_0x235908?Rn(_0x59aca5,_0x509fc2):_0x59aca5,_0x10f00a=_0x30c313[_0x295a41(0x286)]-0x1,_0x4904b6;_0x10f00a>=0x0;_0x10f00a--)(_0x4904b6=_0x30c313[_0x10f00a])&&(_0x9fd2b8=(_0x235908?_0x4904b6(_0x59aca5,_0x509fc2,_0x9fd2b8):_0x4904b6(_0x9fd2b8))||_0x9fd2b8);return _0x235908&&_0x9fd2b8&&Tn(_0x59aca5,_0x509fc2,_0x9fd2b8),_0x9fd2b8;},dt=(_0x415db5,_0x2ab1a9)=>(_0x5560c0,_0x377f09)=>_0x2ab1a9(_0x5560c0,_0x377f09,_0x415db5);exports[_0x2914c(0x4ae)]=class{constructor(_0x53fc55,_0x59fc35){const _0x58b7ed=_0x2914c;this[_0x58b7ed(0x288)]=_0x53fc55,this[_0x58b7ed(0x401)]=_0x59fc35;}async[_0x2914c(0x295)](_0x447de5,_0x58bf66){const _0x4cda4a=_0x2914c;var _0x246528;const {unitID:_0xd86d3e,type:_0xb8e5b1,revision:_0x1ccd72=0x0}=_0x58bf66,_0x4652bd=this[_0x4cda4a(0x38e)]()+'/'+_0xb8e5b1+_0x4cda4a(0x283)+_0xd86d3e+_0x4cda4a(0x3f9)+_0x1ccd72,_0x59d8e3=(await this[_0x4cda4a(0x401)][_0x4cda4a(0x24c)](_0x4652bd))[_0x4cda4a(0x2a6)],_0x42d0a2=(_0x246528=_0x59d8e3[_0x4cda4a(0x2ae)])==null?void 0x0:_0x246528[_0x4cda4a(0x40e)];if(_0x42d0a2){const _0x50eb8a=_0x42d0a2==null?void 0x0:_0x42d0a2['originalMeta'],_0x3285f1=_[_0x4cda4a(0x300)][_0x4cda4a(0x369)](_[_0x4cda4a(0x3d6)](_0x50eb8a));_0x42d0a2[_0x4cda4a(0x271)]=_0x3285f1,Object['entries'](_0x42d0a2[_0x4cda4a(0x436)])[_0x4cda4a(0x1ca)](([,_0x4f5917])=>{const _0x395faf=_0x4cda4a,_0x280aaf=_0x4f5917['originalMeta'],_0x1ad5ec=_[_0x395faf(0x300)][_0x395faf(0x369)](_[_0x395faf(0x3d6)](_0x280aaf));_0x4f5917[_0x395faf(0x271)]=_0x1ad5ec;});}return _0x59d8e3;}async[_0x2914c(0x598)](_0x14ebac,_0x411857){const _0x39dc81=_0x2914c,{unitID:_0x4a584d,type:_0x11ef9c,blockID:_0x4cf7ff}=_0x411857,_0x3d42de=this[_0x39dc81(0x277)]()+'/'+_0x11ef9c+_0x39dc81(0x283)+_0x4a584d+'/block/'+_0x4cf7ff;return(await this[_0x39dc81(0x401)][_0x39dc81(0x24c)](_0x3d42de))[_0x39dc81(0x2a6)];}async[_0x2914c(0x23e)](_0x2f57b8,_0x5671ba){const _0x215b08=_0x2914c,{unitID:_0x168c19,type:_0x52a365,blockID:_0x15e0fa}=_0x5671ba,_0x215f13=this['_getAPIPrefix']()+_0x215b08(0x423)+_0x52a365+_0x215b08(0x283)+_0x168c19+'/block/'+_0x15e0fa;return(await this['_httpService'][_0x215b08(0x24c)](_0x215f13))[_0x215b08(0x2a6)];}async[_0x2914c(0x1ff)](_0x5b81aa,_0x81a905){const _0x176ca7=_0x2914c,{unitID:_0x1737f6,type:_0x488f4f,from:_0x7ad26,to:_0x5efe9a}=_0x81a905,_0x551825=this[_0x176ca7(0x277)]()+'/'+_0x488f4f+_0x176ca7(0x283)+_0x1737f6+_0x176ca7(0x43e)+_0x7ad26+_0x176ca7(0x579)+_0x5efe9a;return(await this[_0x176ca7(0x401)][_0x176ca7(0x24c)](_0x551825))['body'];}[_0x2914c(0x38e)](){const _0x3e051f=_0x2914c;var _0x2d7809;return(_0x2d7809=this['_configService'][_0x3e051f(0x36c)](vt))!=null?_0x2d7809:this[_0x3e051f(0x277)]();}[_0x2914c(0x277)](){const _0x16fc49=_0x2914c;var _0x51f9c2,_0x13a5fd;const _0x40d9cd=this[_0x16fc49(0x288)][_0x16fc49(0x36c)](St),_0x516aec=this[_0x16fc49(0x288)][_0x16fc49(0x36c)](L);return(_0x13a5fd=(_0x51f9c2=_0x516aec==null?void 0x0:_0x516aec[_0x16fc49(0x5b6)])!=null?_0x51f9c2:_0x40d9cd)!=null?_0x13a5fd:qt;}async[_0x2914c(0x279)](_0x20f5fd,_0xb19410){const _0x3129b1=_0x2914c,_0x12addc='/universer-api/snapshot/'+_0xb19410[_0x3129b1(0x355)]+_0x3129b1(0x283)+_0xb19410[_0x3129b1(0x3a9)]+_0x3129b1(0x5a7);return(await this['_httpService'][_0x3129b1(0x24c)](_0x12addc,{'params':{'resourceId':JSON[_0x3129b1(0x2d0)](_0xb19410[_0x3129b1(0x3ae)])}}))[_0x3129b1(0x2a6)];}['saveSnapshot'](){const _0x6148d2=_0x2914c;throw new Error(_0x6148d2(0x5c9));}[_0x2914c(0x415)](){const _0x235261=_0x2914c;throw new Error(_0x235261(0x5c9));}[_0x2914c(0x4ff)](){const _0x47ce2e=_0x2914c;throw new Error(_0x47ce2e(0x5c9));}[_0x2914c(0x2f7)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x4d40a6=_0x2914c;throw new Error(_0x4d40a6(0x5c9));}},exports[_0x2914c(0x4ae)]=On([dt(0x0,a[_0x2914c(0x4b3)]),dt(0x1,a[_0x2914c(0x5d4)](w['HTTPService']))],exports['SnapshotServerOverHTTPService']);var Dn=Object[_0x2914c(0x4a2)],yn=Object[_0x2914c(0x5df)],Un=(_0x58c419,_0x428a1b,_0x289491,_0x4db61f)=>{const _0x1125bd=_0x2914c;for(var _0x4a593a=_0x4db61f>0x1?void 0x0:_0x4db61f?yn(_0x428a1b,_0x289491):_0x428a1b,_0x4da2c6=_0x58c419[_0x1125bd(0x286)]-0x1,_0xac806d;_0x4da2c6>=0x0;_0x4da2c6--)(_0xac806d=_0x58c419[_0x4da2c6])&&(_0x4a593a=(_0x4db61f?_0xac806d(_0x428a1b,_0x289491,_0x4a593a):_0xac806d(_0x4a593a))||_0x4a593a);return _0x4db61f&&_0x4a593a&&Dn(_0x428a1b,_0x289491,_0x4a593a),_0x4a593a;},ue=(_0xcae049,_0x46444d)=>(_0x51211a,_0x5b871b)=>_0x46444d(_0x51211a,_0x5b871b,_0xcae049);let Fe=class extends a[_0x2914c(0x5a3)]{constructor(_0x5a24f0,_0x517eea,_0x5a6d1a,_0x5e8fd7,_0x302eb0){const _0x2465b9=_0x2914c;super(_0x5a24f0,_0x517eea,_0x5a6d1a),this[_0x2465b9(0x249)]=_0x5e8fd7,this[_0x2465b9(0x483)]=_0x302eb0;}['transformUndoRedo'](_0x2e58f4,_0x2faed8){const _0x3bf41e=_0x2914c,_0x198411=this[_0x3bf41e(0x42c)](_0x2e58f4);if(_0x198411)try{const _0x274b0d=this[_0x3bf41e(0x391)](_0x198411,_0x2faed8);this['_substituteUndoStack'](_0x2e58f4,_0x274b0d);}catch(_0x55c916){this[_0x3bf41e(0x483)][_0x3bf41e(0x219)]('[CollaborationUndoRedoService]',_0x55c916),this[_0x3bf41e(0x5e9)](_0x2e58f4);}const _0x2fbfb0=this[_0x3bf41e(0x4d9)](_0x2e58f4);if(_0x2fbfb0)try{const _0x361d0e=this[_0x3bf41e(0x391)](_0x2fbfb0,_0x2faed8);this[_0x3bf41e(0x24a)](_0x2e58f4,_0x361d0e);}catch(_0x36ce3f){this['_logService']['error'](_0x36ce3f),this[_0x3bf41e(0x52b)](_0x2e58f4);}}[_0x2914c(0x5e9)](_0x5eb145){const _0x57cb22=_0x2914c,_0x117d7c=this['_getUndoStack'](_0x5eb145);_0x117d7c&&(_0x117d7c[_0x57cb22(0x286)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x129524){const _0x4733b4=_0x2914c,_0xcda4a=this[_0x4733b4(0x4d9)](_0x129524);_0xcda4a&&(_0xcda4a[_0x4733b4(0x286)]=0x0,this['_updateStatus']());}[_0x2914c(0x1c2)](_0x1043c5,_0x3a65aa){const _0x49d9bb=_0x2914c;this[_0x49d9bb(0x23b)][_0x49d9bb(0x41d)](_0x1043c5,_0x3a65aa),this[_0x49d9bb(0x1ef)]();}[_0x2914c(0x24a)](_0x231e21,_0x131640){const _0x34292e=_0x2914c;this[_0x34292e(0x508)]['set'](_0x231e21,_0x131640),this[_0x34292e(0x1ef)]();}['_transformStack'](_0xd39c10,_0x365664){const _0x2d7682=_0x2914c,_0x2fd17b=[];let _0x3955eb=_0x365664,_0xe5603c=_0x365664;for(let _0x42c949=_0xd39c10['length']-0x1;_0x42c949>=0x0;_0x42c949--){const {unitID:_0x16ad16,undoMutations:_0x4a1c49,redoMutations:_0x4d53e7}=_0xd39c10[_0x42c949],_0x32c92f=this[_0x2d7682(0x249)][_0x2d7682(0x280)](_0x3955eb,_0x4a1c49),_0x4e5617=this['_transformService'][_0x2d7682(0x280)](_0xe5603c,_0x4d53e7);if(_[_0x2d7682(0x346)](_0x32c92f)||_[_0x2d7682(0x346)](_0x4e5617)){this[_0x2d7682(0x483)][_0x2d7682(0x219)](_0x2d7682(0x33e),'transformStack\x20failed!',_0x32c92f,_0x4e5617);break;}_0x3955eb=_0x32c92f[_0x2d7682(0x51a)],_0xe5603c=_0x4e5617['c1Prime'],_0x2fd17b[_0x2d7682(0x4ed)]({'unitID':_0x16ad16,'undoMutations':_0x32c92f[_0x2d7682(0x2c2)],'redoMutations':_0x4e5617[_0x2d7682(0x2c2)]});}return _0x2fd17b[_0x2d7682(0x242)]();}};Fe=Un([ue(0x0,a[_0x2914c(0x202)]),ue(0x1,a[_0x2914c(0x1d2)]),ue(0x2,a[_0x2914c(0x5b5)]),ue(0x3,_[_0x2914c(0x456)]),ue(0x4,a['ILogService'])],Fe);class $t extends a[_0x2914c(0x325)]{constructor(){const _0x107f98=_0x2914c;super(),u(this,_0x107f98(0x50f)),this[_0x107f98(0x50f)]=v[_0x107f98(0x556)](window,'popstate')[_0x107f98(0x2e1)](v[_0x107f98(0x432)](this[_0x107f98(0x29c)]),v[_0x107f98(0x59c)](0x1),v[_0x107f98(0x41a)](void 0x0));}[_0x2914c(0x34c)](_0x22ee1b,_0x112ca5,_0x394ebe=!0x1){const _0x3b8acb=_0x2914c,_0x5641e0=new URL(window['location'][_0x3b8acb(0x5ca)]);_0x5641e0['searchParams'][_0x3b8acb(0x41d)](_0x22ee1b,_0x112ca5),_0x394ebe?window[_0x3b8acb(0x4c4)][_0x3b8acb(0x2ff)]('','',_0x5641e0[_0x3b8acb(0x4e2)]()):window[_0x3b8acb(0x4c4)][_0x3b8acb(0x477)]('','',_0x5641e0[_0x3b8acb(0x4e2)]());}['removeParam'](_0x5159fc,_0x2db911=!0x1){const _0x446acc=_0x2914c,_0x501a4d=new URL(window['location'][_0x446acc(0x5ca)]);_0x501a4d[_0x446acc(0x1be)]['delete'](_0x5159fc),_0x2db911?window['history'][_0x446acc(0x2ff)]('','',_0x501a4d[_0x446acc(0x4e2)]()):window[_0x446acc(0x4c4)]['pushState']('','',_0x501a4d[_0x446acc(0x4e2)]());}[_0x2914c(0x27a)](_0x4c0e12){const _0x488d00=_0x2914c;var _0x2f1b46;return(_0x2f1b46=new URL(window['location'][_0x488d00(0x5ca)])['searchParams']['get'](_0x4c0e12))!=null?_0x2f1b46:void 0x0;}}var Ht=Object[_0x2914c(0x4a2)],Pn=Object[_0x2914c(0x5df)],wn=(_0x543bc5,_0x1912e2,_0x1a1ae1)=>_0x1912e2 in _0x543bc5?Ht(_0x543bc5,_0x1912e2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a1ae1}):_0x543bc5[_0x1912e2]=_0x1a1ae1,Nn=(_0x26e02b,_0x32cbf9,_0x3cb4c8,_0x44e085)=>{const _0x2de89d=_0x2914c;for(var _0x1abd1f=_0x44e085>0x1?void 0x0:_0x44e085?Pn(_0x32cbf9,_0x3cb4c8):_0x32cbf9,_0x27921d=_0x26e02b[_0x2de89d(0x286)]-0x1,_0x5cec92;_0x27921d>=0x0;_0x27921d--)(_0x5cec92=_0x26e02b[_0x27921d])&&(_0x1abd1f=(_0x44e085?_0x5cec92(_0x32cbf9,_0x3cb4c8,_0x1abd1f):_0x5cec92(_0x1abd1f))||_0x1abd1f);return _0x44e085&&_0x1abd1f&&Ht(_0x32cbf9,_0x3cb4c8,_0x1abd1f),_0x1abd1f;},me=(_0x3128f3,_0x417df5)=>(_0x226258,_0x1ccbf7)=>_0x417df5(_0x226258,_0x1ccbf7,_0x3128f3),Mn=(_0x528a2b,_0x2cc663,_0x43653e)=>wn(_0x528a2b,_0x2cc663+'',_0x43653e);const An='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x2914c(0x3bf)]=class extends a[_0x2914c(0x318)]{constructor(_0x4d9de5=rs,_0xb6f80d,_0x15f2eb,_0xfa46e,_0x18abdb){const _0x2c81bd=_0x2914c;super(),this[_0x2c81bd(0x479)]=_0x4d9de5,this[_0x2c81bd(0x483)]=_0xb6f80d,this[_0x2c81bd(0x2a5)]=_0x15f2eb,this[_0x2c81bd(0x311)]=_0xfa46e,this[_0x2c81bd(0x288)]=_0x18abdb;const {..._0x4e4bfd}=this[_0x2c81bd(0x479)];this[_0x2c81bd(0x288)][_0x2c81bd(0x596)](L,_0x4e4bfd);}['onStarting'](){const _0x549541=_0x2914c;this[_0x549541(0x46b)](),a[_0x549541(0x5a8)](this[_0x549541(0x311)],[[ne],[exports[_0x549541(0x5c5)]],[Te]]);}['onReady'](){const _0x158359=_0x2914c;a['touchDependencies'](this[_0x158359(0x311)],[[Ce]]);}[_0x2914c(0x5b3)](){const _0x39bdd5=_0x2914c;this[_0x39bdd5(0x517)]();}[_0x2914c(0x46b)](){const _0x28ca30=_0x2914c;var _0x205e3f,_0x250dfc,_0x58045d,_0x45824b;this[_0x28ca30(0x311)][_0x28ca30(0x5bd)](a[_0x28ca30(0x581)])&&this[_0x28ca30(0x483)]['error'](_0x28ca30(0x330),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x19c27b=[[a['IUndoRedoService'],{'useClass':Fe}],[exports[_0x28ca30(0x4fa)]],[Je],[w['HTTPService']],[Qe,{'useClass':$t}],[q],[exports['LocalCacheService']],[w[_0x28ca30(0x47e)]],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x250dfc=(_0x205e3f=this['_config'])==null?void 0x0:_0x205e3f[_0x28ca30(0x2ba)])!=null?_0x250dfc:exports[_0x28ca30(0x5e2)]}],[w[_0x28ca30(0x227)],{'useClass':w['XHRHTTPImplementation']}],[_['ISnapshotServerService'],{'useClass':exports['SnapshotServerOverHTTPService']}],[a[_0x28ca30(0x1c5)],{'useClass':exports['AuthzIoHttpService']}],[j[_0x28ca30(0x27b)],{'useClass':exports[_0x28ca30(0x28b)]}],[exports[_0x28ca30(0x5dc)]],[exports['DataLoaderController']],[exports[_0x28ca30(0x357)]],[Ce],[ne]];(_0x58045d=this[_0x28ca30(0x479)])!=null&&_0x58045d[_0x28ca30(0x587)]&&_0x19c27b[_0x28ca30(0x4ed)]([Re,{'useClass':$s}]),_0x19c27b=a[_0x28ca30(0x4b9)](_0x19c27b,(_0x45824b=this[_0x28ca30(0x479)])==null?void 0x0:_0x45824b[_0x28ca30(0x4b6)]),_0x19c27b[_0x28ca30(0x1ca)](_0x1a5dd5=>this[_0x28ca30(0x311)][_0x28ca30(0x287)](_0x1a5dd5)),this[_0x28ca30(0x46f)]();}['_registerRenderDependencies'](){const _0x109a6e=_0x2914c;this[_0x109a6e(0x449)](this['_renderManagerService'][_0x109a6e(0x1db)](a['UniverInstanceType'][_0x109a6e(0x1e3)],[Ve])),this[_0x109a6e(0x449)](this[_0x109a6e(0x2a5)][_0x109a6e(0x1db)](a[_0x109a6e(0x3ed)]['UNIVER_SHEET'],[We]));}[_0x2914c(0x46f)](){const _0x420fd6=_0x2914c;var _0x12d9a3,_0x386934;this[_0x420fd6(0x311)][_0x420fd6(0x24c)](w[_0x420fd6(0x548)])[_0x420fd6(0x4c7)]({'priority':0x14,'interceptor':w[_0x420fd6(0x314)]({'maxParallel':0x6})}),this[_0x420fd6(0x311)][_0x420fd6(0x24c)](be),(_0x12d9a3=this[_0x420fd6(0x479)])!=null&&_0x12d9a3[_0x420fd6(0x565)]||this[_0x420fd6(0x311)][_0x420fd6(0x24c)](exports[_0x420fd6(0x467)])[_0x420fd6(0x53d)](),(_0x386934=this[_0x420fd6(0x479)])!=null&&_0x386934[_0x420fd6(0x365)]&&this['_injector'][_0x420fd6(0x24c)](Ee),this[_0x420fd6(0x311)]['get'](exports[_0x420fd6(0x5dc)]),this[_0x420fd6(0x311)][_0x420fd6(0x5bd)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x420fd6(0x311)][_0x420fd6(0x24c)](exports['DesktopCollaborationStatusDisplayController']);}},Mn(exports[_0x2914c(0x3bf)],_0x2914c(0x57d),An),exports[_0x2914c(0x3bf)]=Nn([a[_0x2914c(0x2d6)](_['UniverCollaborationPlugin']),me(0x1,a[_0x2914c(0x485)]),me(0x2,D['IRenderManagerService']),me(0x3,a[_0x2914c(0x5d4)](a[_0x2914c(0x544)])),me(0x4,a[_0x2914c(0x4b3)])],exports[_0x2914c(0x3bf)]),exports[_0x2914c(0x394)]=jt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=Ct,exports['COLLAB_WEB_SOCKET_URL_KEY']=gt,exports[_0x2914c(0x58b)]=U,exports['CollaborationStatusDisplay']=Lt,exports[_0x2914c(0x385)]=Xe,exports[_0x2914c(0x2a4)]=mt,exports['HEARTBEAT_TIMEOUT_KEY']=Ge,exports[_0x2914c(0x489)]=Ke,exports[_0x2914c(0x2d8)]=Qe,exports['LOCAL_CACHE_INTERVAL_KEY']=pt,exports['LOGIN_URL_KEY']=Et,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=It,exports[_0x2914c(0x442)]=zt,exports[_0x2914c(0x497)]=St,exports[_0x2914c(0x37e)]=vt,exports[_0x2914c(0x40d)]=H,exports[_0x2914c(0x2af)]=Pt,exports['WebURLService']=$t,exports[_0x2914c(0x573)]=Rt,exports[_0x2914c(0x26b)]=Ot;