@univerjs-pro/collaboration-client 0.4.0-nightly.202410161605 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +17 -17
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x57f41f=_0x1fa7;(function(_0x458ed1,_0x31cdd1){const _0x40ec3f=_0x1fa7,_0x4e4c97=_0x458ed1();while(!![]){try{const _0x3d5cb5=-parseInt(_0x40ec3f(0x4bc))/0x1*(-parseInt(_0x40ec3f(0x544))/0x2)+-parseInt(_0x40ec3f(0x26f))/0x3+parseInt(_0x40ec3f(0x464))/0x4*(parseInt(_0x40ec3f(0x3f0))/0x5)+-parseInt(_0x40ec3f(0x2ca))/0x6*(parseInt(_0x40ec3f(0x368))/0x7)+-parseInt(_0x40ec3f(0x156))/0x8+-parseInt(_0x40ec3f(0x278))/0x9+parseInt(_0x40ec3f(0x1c7))/0xa;if(_0x3d5cb5===_0x31cdd1)break;else _0x4e4c97['push'](_0x4e4c97['shift']());}catch(_0x3b5f81){_0x4e4c97['push'](_0x4e4c97['shift']());}}}(_0xf60c,0x418de));var Ft=Object[_0x57f41f(0x522)],Gt=(_0x5839d3,_0x1d5f5a,_0x5a81fd)=>_0x1d5f5a in _0x5839d3?Ft(_0x5839d3,_0x1d5f5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a81fd}):_0x5839d3[_0x1d5f5a]=_0x5a81fd,u=(_0x5d7167,_0x4c5a3f,_0x473b3b)=>Gt(_0x5d7167,typeof _0x4c5a3f!='symbol'?_0x4c5a3f+'':_0x4c5a3f,_0x473b3b);Object[_0x57f41f(0x522)](exports,Symbol['toStringTag'],{'value':_0x57f41f(0x359)});const a=require('@univerjs/core'),v=require(_0x57f41f(0x1f0)),E=require('rxjs/operators'),X=require('@univerjs/design'),A=require(_0x57f41f(0x363)),w=require(_0x57f41f(0x3dc)),_=require(_0x57f41f(0x301)),Yt=require(_0x57f41f(0x16e)),N=require(_0x57f41f(0x2ae)),C=require('@univerjs/sheets'),O=require('@univerjs/engine-render'),se=require(_0x57f41f(0x26d)),j=require('@univerjs/drawing'),et=require(_0x57f41f(0x514)),te=require(_0x57f41f(0x32b)),P=require(_0x57f41f(0x4ba)),Kt=require(_0x57f41f(0x1c1)),Xt=require(_0x57f41f(0x1ef)),St='SNAPSHOT_SERVER_URL_KEY',qt=_0x57f41f(0x390),vt=_0x57f41f(0x54a),zt=_0x57f41f(0x46b),Jt=0x7d0,gt=_0x57f41f(0x406),Zt=_0x57f41f(0x1f6),mt='HEARTBEAT_INTERVAL',Qt=0x7530,Ge=_0x57f41f(0x51c),ft=0x4e20,es=0x4e20,It=_0x57f41f(0x149),ts=0x3,pt=_0x57f41f(0x2b7),ss=0x3e8,Ct=_0x57f41f(0x143),is=_0x57f41f(0x415),Et=_0x57f41f(0x511),ns='/universer-api/oidc/authpage';var bt=(_0x717648=>(_0x717648[_0x717648['UNDEFINED']=0x0]=_0x57f41f(0x4d5),_0x717648[_0x717648['OK']=0x1]='OK',_0x717648[_0x717648[_0x57f41f(0x1a9)]=0x2]=_0x57f41f(0x1a9),_0x717648[_0x717648[_0x57f41f(0x48a)]=0x3]=_0x57f41f(0x48a),_0x717648[_0x717648[_0x57f41f(0x367)]=0x4]=_0x57f41f(0x367),_0x717648[_0x717648[_0x57f41f(0x2a7)]=0x5]=_0x57f41f(0x2a7),_0x717648[_0x717648[_0x57f41f(0x2d3)]=0x6]='ALREADY_EXISTS',_0x717648[_0x717648['INVALID_ARGUMENT']=0x7]=_0x57f41f(0x463),_0x717648[_0x717648[_0x57f41f(0x213)]=0x8]=_0x57f41f(0x213),_0x717648[_0x717648['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x717648[_0x717648[_0x57f41f(0x378)]=0x1389]=_0x57f41f(0x378),_0x717648[_0x717648[_0x57f41f(0x3a5)]=0x1771]=_0x57f41f(0x3a5),_0x717648[_0x717648[_0x57f41f(0x290)]=0x1772]=_0x57f41f(0x290),_0x717648[_0x717648[_0x57f41f(0x291)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x717648[_0x717648['APPLY_REJECT']=0x1b59]=_0x57f41f(0x419),_0x717648[_0x717648['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x57f41f(0x39a),_0x717648[_0x717648[_0x57f41f(0x23d)]=0x1b5b]=_0x57f41f(0x23d),_0x717648[_0x717648[_0x57f41f(0x2c3)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x717648[_0x717648['APPLY_DUPLICATED']=0x1b5d]=_0x57f41f(0x19e),_0x717648[_0x717648['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x717648[_0x717648[_0x57f41f(0x404)]=0x2329]=_0x57f41f(0x404),_0x717648[_0x717648[_0x57f41f(0x50f)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x717648[_0x717648[_0x57f41f(0x4c4)]=0x232b]=_0x57f41f(0x4c4),_0x717648[_0x717648[_0x57f41f(0x3bf)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x717648[_0x717648['LICENSE_DISTRO_REJECTED']=0x232d]=_0x57f41f(0x14e),_0x717648[_0x717648['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x57f41f(0x1b6),_0x717648[_0x717648[_0x57f41f(0x484)]=0x2712]=_0x57f41f(0x484),_0x717648[_0x717648['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x57f41f(0x1ee),_0x717648[_0x717648[_0x57f41f(0x49f)]=0x2714]=_0x57f41f(0x49f),_0x717648[_0x717648[_0x57f41f(0x35a)]=-0x1]=_0x57f41f(0x35a),_0x717648))(bt||{}),$=(_0x3b5308=>(_0x3b5308[_0x3b5308[_0x57f41f(0x229)]=0x0]=_0x57f41f(0x229),_0x3b5308[_0x3b5308[_0x57f41f(0x1a7)]=0x1]='UNIVER_DOC',_0x3b5308[_0x3b5308[_0x57f41f(0x197)]=0x2]=_0x57f41f(0x197),_0x3b5308[_0x3b5308['UNIVER_SLIDE']=0x3]=_0x57f41f(0x439),_0x3b5308[_0x3b5308[_0x57f41f(0x501)]=0x4]=_0x57f41f(0x501),_0x3b5308[_0x3b5308[_0x57f41f(0x35a)]=-0x1]='UNRECOGNIZED',_0x3b5308))($||{}),b=(_0x502554=>(_0x502554[_0x502554[_0x57f41f(0x400)]=0x0]='UNKNOWN_CMD',_0x502554[_0x502554['HELLO']=0x1]=_0x57f41f(0x528),_0x502554[_0x502554[_0x57f41f(0x54d)]=0x2]=_0x57f41f(0x54d),_0x502554[_0x502554[_0x57f41f(0x358)]=0x3]=_0x57f41f(0x358),_0x502554[_0x502554[_0x57f41f(0x349)]=0x4]=_0x57f41f(0x349),_0x502554[_0x502554[_0x57f41f(0x2fd)]=0x5]=_0x57f41f(0x2fd),_0x502554[_0x502554[_0x57f41f(0x2db)]=0x6]=_0x57f41f(0x2db),_0x502554[_0x502554[_0x57f41f(0x35a)]=-0x1]=_0x57f41f(0x35a),_0x502554))(b||{}),Ye=(_0x3a6cd4=>(_0x3a6cd4[_0x3a6cd4[_0x57f41f(0x22b)]=0x0]=_0x57f41f(0x22b),_0x3a6cd4[_0x3a6cd4['OK']=0x1]='OK',_0x3a6cd4[_0x3a6cd4[_0x57f41f(0x46d)]=0x2]=_0x57f41f(0x46d),_0x3a6cd4[_0x3a6cd4[_0x57f41f(0x35a)]=-0x1]=_0x57f41f(0x35a),_0x3a6cd4))(Ye||{}),Tt=(_0x4ac63f=>(_0x4ac63f[_0x4ac63f[_0x57f41f(0x4e9)]=0x0]=_0x57f41f(0x4e9),_0x4ac63f[_0x4ac63f['HttpImport']=0x1]=_0x57f41f(0x1eb),_0x4ac63f[_0x4ac63f[_0x57f41f(0x220)]=0x2]=_0x57f41f(0x220),_0x4ac63f[_0x4ac63f['UnitEmbedded']=0x3]=_0x57f41f(0x312),_0x4ac63f[_0x4ac63f[_0x57f41f(0x36b)]=0x4]=_0x57f41f(0x36b),_0x4ac63f[_0x4ac63f['UNRECOGNIZED']=-0x1]=_0x57f41f(0x35a),_0x4ac63f))(Tt||{});const L=_0x57f41f(0x216),rs={};function Rt(_0x3f9a31){const _0x557d0d=_0x57f41f;var _0x51dd35,_0x16d844,_0x3b6b65,_0x390da5;const _0x3405a5=_0x3f9a31[_0x557d0d(0x198)],_0x1359e1=JSON[_0x557d0d(0x1a1)](_0x3405a5);switch(_0x1359e1[_0x557d0d(0x466)]){case b[_0x557d0d(0x2fd)]:case b[_0x557d0d(0x528)]:{const _0x2c473e=_0x1359e1['infoRsp'];return{..._0x1359e1,'data':_0x2c473e,'cmd':_0x1359e1[_0x557d0d(0x466)]};}case b[_0x557d0d(0x54d)]:{const _0x26ea62=_0x1359e1[_0x557d0d(0x3a0)];return{..._0x1359e1,'data':_0x26ea62,'cmd':_0x1359e1['cmd']};}case b[_0x557d0d(0x2db)]:{const _0x37f251=_0x1359e1[_0x557d0d(0x1cb)];switch(_0x37f251[_0x557d0d(0x538)]){case _[_0x557d0d(0x48e)][_0x557d0d(0x4d2)]:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x51dd35=_0x37f251[_0x557d0d(0x391)])==null?void 0x0:_0x51dd35['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _['CollaborationEvent'][_0x557d0d(0x269)]:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x16d844=_0x37f251['csAckEvent'])==null?void 0x0:_0x16d844['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _['CollaborationEvent'][_0x557d0d(0x3af)]:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x3b6b65=_0x37f251[_0x557d0d(0x152)])==null?void 0x0:_0x3b6b65['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['CHANGESET_REJ']:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x390da5=_0x37f251[_0x557d0d(0x36d)])==null?void 0x0:_0x390da5['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x153)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x24a)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['USERS_ENTER']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x2aa)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['USERS_LEAVE']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251['leaveEvent']},'cmd':_0x1359e1['cmd']};case _[_0x557d0d(0x48e)]['LIVESHARE_NEW_HOST']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x339)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['LIVESHARE_FETCH_OPERATIONS']:case _['CollaborationEvent'][_0x557d0d(0x28c)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251['liveShareOperation']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['LIVESHARE_TERMINATE']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x339)]},'cmd':_0x1359e1['cmd']};case _[_0x557d0d(0x48e)][_0x557d0d(0x4a6)]:return{..._0x1359e1,'data':_0x37f251,'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x3db)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x343)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x3d3)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x38e)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x283)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251['shouldCloseConn']},'cmd':_0x1359e1[_0x557d0d(0x466)]};default:return _0x1359e1;}}default:return _0x1359e1;}}function Ot(_0x1f50a9){const _0x4690c3=_0x57f41f;switch(_0x1f50a9[_0x4690c3(0x466)]){case b['HEARTBEAT']:case b[_0x4690c3(0x528)]:return JSON[_0x4690c3(0x3bc)]({'cmd':_0x1f50a9[_0x4690c3(0x466)],'routeKey':_0x1f50a9[_0x4690c3(0x1ff)]});case b[_0x4690c3(0x349)]:{let _0x480aee;switch(_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x538)]){case _['CollaborationEvent'][_0x4690c3(0x153)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)][_0x4690c3(0x153)],'updateCursorEvent':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _['CollaborationEvent'][_0x4690c3(0x4af)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['USERS_LEAVE'],'leaveEvent':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _[_0x4690c3(0x48e)]['USERS_ENTER']:{_0x480aee={'eventID':_['CollaborationEvent'][_0x4690c3(0x226)],'joinEvent':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _[_0x4690c3(0x48e)]['LIVESHARE_NEW_HOST']:{_0x480aee={'eventID':_[_0x4690c3(0x48e)][_0x4690c3(0x2fa)],'liveShareNewHost':_0x1f50a9['data']['data']};break;}case _[_0x4690c3(0x48e)][_0x4690c3(0x28c)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _['CollaborationEvent'][_0x4690c3(0x475)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _[_0x4690c3(0x48e)]['LIVESHARE_REQUEST_HOST']:{_0x480aee={'eventID':_[_0x4690c3(0x48e)][_0x4690c3(0x3fe)],'liveShareRequestHost':_0x1f50a9[_0x4690c3(0x198)]['data']};break;}case _[_0x4690c3(0x48e)][_0x4690c3(0x496)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x480aee={'eventID':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x538)]};}return JSON['stringify']({'cmd':_0x1f50a9[_0x4690c3(0x466)],'routeKey':_0x1f50a9['routeKey'],'collaMsg':_0x480aee});}case b[_0x4690c3(0x54d)]:return JSON[_0x4690c3(0x3bc)]({'cmd':_0x1f50a9['cmd'],'routeKey':_0x1f50a9[_0x4690c3(0x1ff)],'joinReq':_0x1f50a9[_0x4690c3(0x198)]});case b[_0x4690c3(0x358)]:return JSON['stringify']({'cmd':_0x1f50a9[_0x4690c3(0x466)],'routeKey':_0x1f50a9['routeKey'],'leaveReq':_0x1f50a9['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var os=Object[_0x57f41f(0x522)],as=Object[_0x57f41f(0x191)],cs=(_0x209804,_0x2970ad,_0x4fc539,_0x3cac35)=>{const _0xd56578=_0x57f41f;for(var _0x14a213=_0x3cac35>0x1?void 0x0:_0x3cac35?as(_0x2970ad,_0x4fc539):_0x2970ad,_0x154e89=_0x209804[_0xd56578(0x460)]-0x1,_0x443938;_0x154e89>=0x0;_0x154e89--)(_0x443938=_0x209804[_0x154e89])&&(_0x14a213=(_0x3cac35?_0x443938(_0x2970ad,_0x4fc539,_0x14a213):_0x443938(_0x14a213))||_0x14a213);return _0x3cac35&&_0x14a213&&os(_0x2970ad,_0x4fc539,_0x14a213),_0x14a213;},ae=(_0x3471da,_0x5253f9)=>(_0x3f5f34,_0x32dc41)=>_0x5253f9(_0x3f5f34,_0x32dc41,_0x3471da);const Ke=a[_0x57f41f(0x193)](_0x57f41f(0x342));function ls(_0xe5faf5,_0x1db33e,_0x3caf10){const _0x441a27=_0x57f41f;return _0xe5faf5+'/'+_0x1db33e+_0x441a27(0x170)+_0x3caf10+_0x441a27(0x1ce);}exports[_0x57f41f(0x253)]=class extends a['Disposable']{constructor(_0x1a1973,_0x5b41b4,_0x1bde50,_0x1ebdc8,_0x34ca73){const _0x189b3c=_0x57f41f;super(),this[_0x189b3c(0x182)]=_0x1a1973,this[_0x189b3c(0x279)]=_0x5b41b4,this[_0x189b3c(0x172)]=_0x1bde50,this[_0x189b3c(0x181)]=_0x1ebdc8,this[_0x189b3c(0x154)]=_0x34ca73;}[_0x57f41f(0x4b5)](_0x42a1e5){const _0x225451=_0x57f41f,_0x29be4a=this['_ws'][_0x225451(0x4b5)](_0x42a1e5);if(!_0x29be4a)throw new Error(_0x225451(0x25e));const _0x3a819d=new a['DisposableCollection'](),_0x4b3baa=new v[(_0x225451(0x54c))]();_0x3a819d[_0x225451(0x150)](_0x29be4a['close$'][_0x225451(0x3ee)](_0x5db5a3=>_0x4b3baa[_0x225451(0x49c)](_0x5db5a3))),_0x3a819d[_0x225451(0x150)](a[_0x225451(0x1f9)](()=>_0x4b3baa[_0x225451(0x4a4)]()));const _0x57ee81=new v['Subject']();_0x3a819d[_0x225451(0x150)](_0x29be4a[_0x225451(0x1ae)]['subscribe'](_0x24846b=>_0x57ee81[_0x225451(0x49c)](_0x24846b))),_0x3a819d['add'](a[_0x225451(0x1f9)](()=>_0x57ee81[_0x225451(0x4a4)]()));const _0x53d073=new v['Subject']();_0x3a819d['add'](_0x29be4a[_0x225451(0x41c)][_0x225451(0x3ee)](_0x46862a=>{const _0x3052a8=_0x225451,_0x28ee1b=Rt(_0x46862a);_0x53d073[_0x3052a8(0x49c)](_0x28ee1b);})),_0x3a819d['add'](a[_0x225451(0x1f9)](()=>_0x53d073['complete']()));let _0x38c277;const _0x52bdf9=()=>{const _0x12654a=_0x225451;_0x57ee81['next'](new Event('connection\x20error')),_0x4b3baa['next'](new CloseEvent(_0x12654a(0x315))),_0x38c277[_0x12654a(0x316)]();};return _0x38c277={'memberID':'','close$':_0x4b3baa['asObservable'](),'error$':_0x57ee81[_0x225451(0x41e)](),'open$':_0x29be4a['open$'],'message$':_0x53d073[_0x225451(0x41e)](),'send':_0x45f8ba=>{const _0x1ac876=_0x225451;if(_0x45f8ba[_0x1ac876(0x466)]===b['INGEST']){if(_0x45f8ba['data'][_0x1ac876(0x538)]===_[_0x1ac876(0x48e)][_0x1ac876(0x389)]){this[_0x1ac876(0x4d6)](_0x38c277,_0x45f8ba[_0x1ac876(0x198)])[_0x1ac876(0x3f2)](_0x6e5f41=>{const _0x1951f6=_0x1ac876;this['_logService'][_0x1951f6(0x542)](_0x6e5f41),_0x52bdf9();});return;}if(_0x45f8ba['data'][_0x1ac876(0x538)]===_['CollaborationEvent'][_0x1ac876(0x27a)]){const _0x2ffe73=_0x45f8ba[_0x1ac876(0x198)];this[_0x1ac876(0x184)](_0x2ffe73)['then'](_0x39e24d=>{const _0x232eaa=_0x1ac876;_0x53d073['next']({'cmd':b[_0x232eaa(0x2db)],'code':Ye['OK'],'routeKey':_0x2ffe73[_0x232eaa(0x198)][_0x232eaa(0x36e)],'routeType':'','data':{'eventID':_[_0x232eaa(0x48e)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x39e24d}}});})[_0x1ac876(0x3f2)](_0x3e8cb1=>{const _0x1c3f9f=_0x1ac876;this[_0x1c3f9f(0x181)][_0x1c3f9f(0x542)](_0x3e8cb1),_0x52bdf9();});return;}}_0x29be4a[_0x1ac876(0x47b)](Ot(_0x45f8ba));},'close':()=>{const _0x43eda4=_0x225451;_0x29be4a[_0x43eda4(0x316)](),_0x3a819d[_0x43eda4(0x3a4)]();}},_0x38c277;}async[_0x57f41f(0x4d6)](_0x447ad9,_0x22eaf){const _0x243bc6=_0x57f41f;var _0x3112d7,_0x388698;const {unitType:_0x2dbf50,unitID:_0x23a727,changeset:_0x1c944d}=_0x22eaf[_0x243bc6(0x198)],_0x183d08={'unitID':_0x23a727,'memberID':_0x447ad9[_0x243bc6(0x20c)],'type':_0x2dbf50,'changeset':_[_0x243bc6(0x442)](_0x1c944d)},_0x54cff=this[_0x243bc6(0x172)][_0x243bc6(0x37f)](Ct),_0x5785de=this[_0x243bc6(0x172)][_0x243bc6(0x37f)](L),_0x257d09=ls((_0x388698=(_0x3112d7=_0x5785de==null?void 0x0:_0x5785de[_0x243bc6(0x274)])!=null?_0x3112d7:_0x54cff)!=null?_0x388698:is,_0x2dbf50,_0x23a727);try{await this['_http'][_0x243bc6(0x2a6)](_0x257d09,{'body':_0x183d08});}catch(_0x1cbbe0){throw this[_0x243bc6(0x181)][_0x243bc6(0x542)](_0x243bc6(0x161),'submit\x20changeset\x20error!'),_0x1cbbe0;}}async['_fetchMissChangesets'](_0x47b7d0){const _0x45840b=_0x57f41f,{unitID:_0x32300b,from:_0x1f961c,to:_0x33baed,unitType:_0x41aaee}=_0x47b7d0[_0x45840b(0x198)];return(await this[_0x45840b(0x154)][_0x45840b(0x455)]({'metadata':void 0x0},{'unitID':_0x32300b,'type':_0x41aaee,'from':_0x1f961c,'to':_0x33baed}))[_0x45840b(0x271)];}},exports['CollaborationSocketService']=cs([ae(0x0,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)])),ae(0x1,a['Inject'](w[_0x57f41f(0x43c)])),ae(0x2,a[_0x57f41f(0x435)]),ae(0x3,a[_0x57f41f(0x162)]),ae(0x4,_['ISnapshotServerService'])],exports[_0x57f41f(0x253)]);const hs=_0x57f41f(0x239);function _s(_0x144ff9){const _0x3e1ba0=_0x57f41f;return JSON[_0x3e1ba0(0x3bc)](_0x144ff9)[_0x3e1ba0(0x460)];}class Xe{constructor(){const _0x4a29b3=_0x57f41f;u(this,'_commentUpdate$',new v[(_0x4a29b3(0x54c))]()),u(this,'commentUpdate$',this['_commentUpdate$']['asObservable']());}[_0x57f41f(0x4bf)](_0x392969){const _0x372b5e=_0x57f41f;this[_0x372b5e(0x1d4)]['next'](_0x392969);}}var us=Object[_0x57f41f(0x522)],ds=Object[_0x57f41f(0x191)],Ss=(_0x472ff5,_0x241d57,_0x318b3c,_0x473692)=>{for(var _0x2ee130=_0x473692>0x1?void 0x0:_0x473692?ds(_0x241d57,_0x318b3c):_0x241d57,_0x578af2=_0x472ff5['length']-0x1,_0x2f9139;_0x578af2>=0x0;_0x578af2--)(_0x2f9139=_0x472ff5[_0x578af2])&&(_0x2ee130=(_0x473692?_0x2f9139(_0x241d57,_0x318b3c,_0x2ee130):_0x2f9139(_0x2ee130))||_0x2ee130);return _0x473692&&_0x2ee130&&us(_0x241d57,_0x318b3c,_0x2ee130),_0x2ee130;},tt=(_0x42585d,_0x5260a4)=>(_0x208ac3,_0x274377)=>_0x5260a4(_0x208ac3,_0x274377,_0x42585d);let q=class extends a[_0x57f41f(0x1b5)]{constructor(_0x3574d9,_0xf16ca2){const _0x489d70=_0x57f41f;super(),u(this,_0x489d70(0x2e9),new Map()),(this[_0x489d70(0x131)]=_0x3574d9,this['_userManagerService']=_0xf16ca2,this[_0x489d70(0x1e2)](a[_0x489d70(0x1f9)](v[_0x489d70(0x3d0)](this[_0x489d70(0x131)][_0x489d70(0x41f)](a[_0x489d70(0x4f6)][_0x489d70(0x197)])[_0x489d70(0x4bb)](E[_0x489d70(0x366)](_0x30a245=>_0x30a245[_0x489d70(0x263)]())),this['_univerInstanceService'][_0x489d70(0x41f)](a['UniverInstanceType'][_0x489d70(0x1a7)])[_0x489d70(0x4bb)](E[_0x489d70(0x366)](_0x15d5c5=>_0x15d5c5[_0x489d70(0x263)]())),this[_0x489d70(0x131)][_0x489d70(0x41f)](a[_0x489d70(0x4f6)][_0x489d70(0x439)])[_0x489d70(0x4bb)](E[_0x489d70(0x366)](_0x5b16d1=>_0x5b16d1[_0x489d70(0x263)]())))[_0x489d70(0x3ee)](_0x33e2ee=>this['_removeRoom'](_0x33e2ee)))));}['setCurrentUser'](_0x5258f7){const _0x433b95=_0x57f41f;this[_0x433b95(0x443)][_0x433b95(0x44e)](_0x5258f7);}[_0x57f41f(0x45c)](){const _0x4a24dd=_0x57f41f;return this[_0x4a24dd(0x443)][_0x4a24dd(0x45c)]();}[_0x57f41f(0x14b)](_0x52776a,_0x4f7658){const _0x64a779=_0x57f41f;let _0x4e98eb=this[_0x64a779(0x2e9)][_0x64a779(0x31f)](_0x52776a);_0x4e98eb||(_0x4e98eb=new vs(),this[_0x64a779(0x2e9)]['set'](_0x52776a,_0x4e98eb)),_0x4e98eb[_0x64a779(0x14b)](_0x4f7658);}[_0x57f41f(0x50e)](_0x5245eb,_0x2869b7){const _0x2cc452=_0x57f41f,_0x43a0a6=this[_0x2cc452(0x2e9)][_0x2cc452(0x31f)](_0x5245eb);_0x43a0a6&&_0x43a0a6[_0x2cc452(0x50e)](_0x2869b7);}[_0x57f41f(0x2f3)](_0x15fcf4){const _0x57bdd9=_0x57f41f;return this[_0x57bdd9(0x2e9)][_0x57bdd9(0x31f)](_0x15fcf4);}['getMember'](_0x15cd24,_0x497b89){const _0x517f44=_0x57f41f,_0x217fb2=this[_0x517f44(0x2e9)][_0x517f44(0x31f)](_0x15cd24);if(_0x217fb2)return _0x217fb2[_0x517f44(0x487)](_0x497b89);}[_0x57f41f(0x27b)](_0x95b1d4){const _0x511605=_0x57f41f,_0x46b621=this[_0x511605(0x2e9)][_0x511605(0x31f)](_0x95b1d4);_0x46b621&&(_0x46b621[_0x511605(0x3a4)](),this[_0x511605(0x2e9)][_0x511605(0x3e0)](_0x95b1d4));}[_0x57f41f(0x3a4)](){const _0xa04846=_0x57f41f;this['_roomMembers'][_0xa04846(0x50c)](_0x1082d0=>_0x1082d0[_0xa04846(0x3a4)]()),this[_0xa04846(0x2e9)][_0xa04846(0x159)]();}};q=Ss([tt(0x0,a[_0x57f41f(0x546)]),tt(0x1,a[_0x57f41f(0x1ec)](a['UserManagerService']))],q);class vs extends a[_0x57f41f(0x1b5)]{constructor(){const _0x247e68=_0x57f41f;super(...arguments),u(this,_0x247e68(0x550),new Map());}[_0x57f41f(0x3a4)](){this['_members']['clear']();}['updateMember'](_0x305218){const _0x18d63c=_0x57f41f;this[_0x18d63c(0x550)][_0x18d63c(0x20b)](_0x305218['memberID'],_0x305218);}[_0x57f41f(0x50e)](_0x1ae979){const _0x56d881=_0x57f41f;this[_0x56d881(0x550)][_0x56d881(0x3e0)](_0x1ae979);}['getMember'](_0x37dc44){const _0x175b03=_0x57f41f;return this['_members'][_0x175b03(0x31f)](_0x37dc44);}}var gs=Object['defineProperty'],ms=Object['getOwnPropertyDescriptor'],fs=(_0x32ef93,_0x442a73,_0x885377,_0x59a56e)=>{const _0x4eb2d9=_0x57f41f;for(var _0x4610da=_0x59a56e>0x1?void 0x0:_0x59a56e?ms(_0x442a73,_0x885377):_0x442a73,_0x4434d=_0x32ef93[_0x4eb2d9(0x460)]-0x1,_0x417276;_0x4434d>=0x0;_0x4434d--)(_0x417276=_0x32ef93[_0x4434d])&&(_0x4610da=(_0x59a56e?_0x417276(_0x442a73,_0x885377,_0x4610da):_0x417276(_0x4610da))||_0x4610da);return _0x59a56e&&_0x4610da&&gs(_0x442a73,_0x885377,_0x4610da),_0x4610da;},V=(_0x11542a,_0x2791d0)=>(_0x1ede2d,_0x319206)=>_0x2791d0(_0x1ede2d,_0x319206,_0x11542a),H=(_0x1900b3=>(_0x1900b3[_0x1900b3[_0x57f41f(0x4e4)]=0x0]=_0x57f41f(0x4e4),_0x1900b3[_0x1900b3[_0x57f41f(0x489)]=0x1]=_0x57f41f(0x489),_0x1900b3[_0x1900b3[_0x57f41f(0x2d2)]=0x2]=_0x57f41f(0x2d2),_0x1900b3[_0x1900b3[_0x57f41f(0x436)]=0x3]=_0x57f41f(0x436),_0x1900b3))(H||{});exports[_0x57f41f(0x2e3)]=class extends a[_0x57f41f(0x1c5)]{constructor(_0x34c8d0,_0x476103,_0x2dfbd4,_0x50d1fe,_0x4e5498,_0x2b77de,_0x61e447,_0x51f41,_0x5cdbcb,_0x34e36b){const _0x1bca0c=_0x57f41f;super(),u(this,_0x1bca0c(0x3cc),new v['BehaviorSubject'](0x0)),u(this,_0x1bca0c(0x1bd),this['_sessionStatus$'][_0x1bca0c(0x41e)]()),u(this,_0x1bca0c(0x2f5),new v['Subject']()),u(this,_0x1bca0c(0x438),this['_event$'][_0x1bca0c(0x41e)]()),u(this,_0x1bca0c(0x364)),u(this,_0x1bca0c(0x46c)),u(this,_0x1bca0c(0x235)),u(this,_0x1bca0c(0x50d),!0x1),u(this,'_telemetryInfo',null),(this['_unitID']=_0x34c8d0,this['_logService']=_0x2dfbd4,this[_0x1bca0c(0x270)]=_0x50d1fe,this[_0x1bca0c(0x4b9)]=_0x4e5498,this[_0x1bca0c(0x172)]=_0x2b77de,this['_localeService']=_0x61e447,this['_memberService']=_0x51f41,this[_0x1bca0c(0x2bb)]=_0x5cdbcb,this[_0x1bca0c(0x4cd)]=_0x34e36b,this[_0x1bca0c(0x50d)]=!!this['_telemetryService'],_0x476103[_0x1bca0c(0x4bb)](v[_0x1bca0c(0x12b)](this[_0x1bca0c(0x43a)]))[_0x1bca0c(0x3ee)](_0x57a07e=>{const _0x328238=_0x1bca0c;var _0x29c9eb;typeof _0x57a07e>'u'||(this[_0x328238(0x364)]=_0x57a07e,_0x57a07e?(this[_0x328238(0x26e)](_0x57a07e),this[_0x328238(0x46c)]=_0x57a07e[_0x328238(0x41c)][_0x328238(0x3ee)](_0x29d5e5=>{const _0x340861=_0x328238;_0x29d5e5[_0x340861(0x1ff)]===this['_unitID']&&this[_0x340861(0x1ba)](_0x29d5e5);})):(this[_0x328238(0x42e)](),this[_0x328238(0x3cc)]['next'](0x2),(_0x29c9eb=this['_socketMessageSubscription'])==null||_0x29c9eb[_0x328238(0x373)](),this[_0x328238(0x46c)]=null));}),this[_0x1bca0c(0x1e2)](this['_beforeCloseService'][_0x1bca0c(0x4b8)](()=>{const _0x5bbd03=_0x1bca0c;var _0x482fbc;(_0x482fbc=this[_0x5bbd03(0x364)])==null||_0x482fbc[_0x5bbd03(0x47b)]({'cmd':b[_0x5bbd03(0x358)],'data':{'roomID':this[_0x5bbd03(0x28e)]}});})));}get['sessionStatus'](){const _0x5395cf=_0x57f41f;return this[_0x5395cf(0x3cc)][_0x5395cf(0x3a2)]();}[_0x57f41f(0x145)](){const _0x12ec13=_0x57f41f;var _0x1479d1,_0x96db48;return(_0x96db48=(_0x1479d1=this['_socket'])==null?void 0x0:_0x1479d1[_0x12ec13(0x20c)])!=null?_0x96db48:null;}[_0x57f41f(0x3a4)](){const _0x1a55c9=_0x57f41f;super[_0x1a55c9(0x3a4)](),this[_0x1a55c9(0x43a)]['next'](),this[_0x1a55c9(0x43a)][_0x1a55c9(0x4a4)]();}['close'](){const _0x1140bd=_0x57f41f;var _0x1dcbe1,_0x277598;this['_throwTelemetryCollaborationNewChangeset'](),(_0x1dcbe1=this['_socket'])==null||_0x1dcbe1[_0x1140bd(0x47b)]({'cmd':b[_0x1140bd(0x358)],'data':{'roomID':this[_0x1140bd(0x28e)]}}),(_0x277598=this[_0x1140bd(0x364)])==null||_0x277598[_0x1140bd(0x316)](),this['_event$']['complete'](),this['_sessionStatus$']['complete'](),this[_0x1140bd(0x3a4)]();}[_0x57f41f(0x1ba)](_0x434c69){const _0x535386=_0x57f41f;_0x434c69['cmd']===b['JOIN']?this[_0x535386(0x2fc)](_0x434c69):_0x434c69['cmd']===b[_0x535386(0x2db)]&&this[_0x535386(0x4fe)](_0x434c69);}['_joinRoom'](_0x1d6db1){const _0x22283c=_0x57f41f;this[_0x22283c(0x3cc)][_0x22283c(0x49c)](0x1),_0x1d6db1[_0x22283c(0x47b)]({'cmd':b[_0x22283c(0x54d)],'routeKey':this[_0x22283c(0x28e)],'routeType':'','data':{'rooms':[{'roomID':this[_0x22283c(0x28e)]}]}});}[_0x57f41f(0x2fc)](_0x1ec27d){const _0xeccb6d=_0x57f41f;var _0x2e732b;if(_0x1ec27d[_0xeccb6d(0x399)]===Ye[_0xeccb6d(0x46d)]){this['_messageService'][_0xeccb6d(0x375)]({'type':X[_0xeccb6d(0x1cf)][_0xeccb6d(0x1b4)],'content':this['_localeService']['t'](_0xeccb6d(0x437))}),this[_0xeccb6d(0x3cc)]['next'](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x39151d=(_0x2e732b=_0x1ec27d[_0xeccb6d(0x198)][_0xeccb6d(0x1c4)][this[_0xeccb6d(0x28e)]])==null?void 0x0:_0x2e732b[_0xeccb6d(0x163)];_0x39151d&&_0x39151d[_0xeccb6d(0x50c)](_0x4a67d2=>this['_memberService']['updateMember'](this[_0xeccb6d(0x28e)],_0x4a67d2));}[_0x57f41f(0x4fe)](_0x35047f){const _0x2c0c0a=_0x57f41f;try{const _0x126f22=_0x35047f[_0x2c0c0a(0x198)];switch(_0x126f22['eventID']){case _['CollaborationEvent'][_0x2c0c0a(0x226)]:this['_onUserJoin'](_0x126f22),this[_0x2c0c0a(0x2f5)]['next'](_0x126f22);break;case _[_0x2c0c0a(0x48e)][_0x2c0c0a(0x4af)]:this[_0x2c0c0a(0x2a3)](_0x126f22),this['_event$'][_0x2c0c0a(0x49c)](_0x126f22);break;case _['CollaborationEvent'][_0x2c0c0a(0x269)]:this[_0x2c0c0a(0x4c5)](),this[_0x2c0c0a(0x473)](),this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);break;case _[_0x2c0c0a(0x48e)][_0x2c0c0a(0x4a6)]:this[_0x2c0c0a(0x181)]['error'](_0x2c0c0a(0x1fa)+JSON[_0x2c0c0a(0x3bc)](_0x126f22)),this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);break;case _[_0x2c0c0a(0x48e)][_0x2c0c0a(0x3db)]:this[_0x2c0c0a(0x2bb)][_0x2c0c0a(0x4bf)](_0x126f22[_0x2c0c0a(0x198)]),this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);break;default:this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);}}catch(_0x53ac1d){this[_0x2c0c0a(0x181)][_0x2c0c0a(0x542)](_0x53ac1d,_0x35047f);}}[_0x57f41f(0x2b8)](_0x3616c4){const _0x2d1c65=_0x57f41f;this[_0x2d1c65(0x384)][_0x2d1c65(0x14b)](this['_unitID'],_0x3616c4[_0x2d1c65(0x198)]);}[_0x57f41f(0x2a3)](_0xdd64d9){const _0x1f7bb9=_0x57f41f;this[_0x1f7bb9(0x384)][_0x1f7bb9(0x50e)](this[_0x1f7bb9(0x28e)],_0xdd64d9[_0x1f7bb9(0x198)][_0x1f7bb9(0x20c)]);}async[_0x57f41f(0x47b)](_0x2f9b8b,_0x5408a8){const _0x560d89=_0x57f41f;if(this[_0x560d89(0x4a9)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2f9b8b['eventID']===_[_0x560d89(0x48e)][_0x560d89(0x389)]&&(this[_0x560d89(0x4de)](),this[_0x560d89(0x457)](_0x2f9b8b)),this['_socket'][_0x560d89(0x47b)]({'cmd':b[_0x560d89(0x349)],'routeKey':_0x5408a8,'routeType':'','data':_0x2f9b8b});}catch(_0x349269){this[_0x560d89(0x181)][_0x560d89(0x542)](_0x349269);}}['_scheduleCollaborationTimeoutTimer'](){const _0x524bc8=_0x57f41f;var _0x3518cd;this['_collaborationTimeoutTimer']=window[_0x524bc8(0x540)](()=>{const _0x27fbd3=_0x524bc8;this[_0x27fbd3(0x235)]=null,this[_0x27fbd3(0x4b9)][_0x27fbd3(0x375)]({'type':X[_0x27fbd3(0x1cf)][_0x27fbd3(0x411)],'content':this['_localeService']['t'](_0x27fbd3(0x468))});},(_0x3518cd=this[_0x524bc8(0x172)][_0x524bc8(0x37f)](Ge))!=null?_0x3518cd:ft);}['_clearCollaborationTimeoutTimer'](){const _0x2c622a=_0x57f41f;this[_0x2c622a(0x235)]&&(clearTimeout(this[_0x2c622a(0x235)]),this[_0x2c622a(0x235)]=null);}[_0x57f41f(0x457)](_0x592659){const _0x1e3c99=_0x57f41f;if(!this[_0x1e3c99(0x50d)])return;const {data:_0x5eeab8}=_0x592659,{unitID:_0x20b539,changeset:_0x43f894}=_0x5eeab8,{mutations:_0x64aaf,type:_0x5db3db}=_0x43f894;this[_0x1e3c99(0x1be)]={'unitId':_0x20b539,'type':_0x5db3db,'startTime':performance[_0x1e3c99(0x4fb)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x64aaf)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5397ba=_0x57f41f;if(this[_0x5397ba(0x50d)]){if(!this[_0x5397ba(0x1be)]){this[_0x5397ba(0x181)][_0x5397ba(0x542)](_0x5397ba(0x161),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x5397ba(0x3d4)]=performance[_0x5397ba(0x4fb)](),this['_telemetryInfo']['duration']=this[_0x5397ba(0x1be)][_0x5397ba(0x3d4)]-this[_0x5397ba(0x1be)][_0x5397ba(0x192)],this[_0x5397ba(0x4cd)][_0x5397ba(0x4c1)](hs,this[_0x5397ba(0x1be)]),this[_0x5397ba(0x1be)]=null;}}[_0x57f41f(0x42e)](){const _0x3dbf18=_0x57f41f;this[_0x3dbf18(0x1be)]=null;}},exports[_0x57f41f(0x2e3)]=fs([V(0x2,a[_0x57f41f(0x162)]),V(0x3,A[_0x57f41f(0x3e8)]),V(0x4,A['IMessageService']),V(0x5,a['IConfigService']),V(0x6,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),V(0x7,a['Inject'](q)),V(0x8,a['Inject'](Xe)),V(0x9,a[_0x57f41f(0x177)](Yt['ITelemetryService']))],exports[_0x57f41f(0x2e3)]);var Is=Object[_0x57f41f(0x522)],ps=Object[_0x57f41f(0x191)],Cs=(_0x1aef6e,_0x58231e,_0x55d7fb,_0x4701d9)=>{for(var _0x59c6e7=_0x4701d9>0x1?void 0x0:_0x4701d9?ps(_0x58231e,_0x55d7fb):_0x58231e,_0x22e2b6=_0x1aef6e['length']-0x1,_0x25baf7;_0x22e2b6>=0x0;_0x22e2b6--)(_0x25baf7=_0x1aef6e[_0x22e2b6])&&(_0x59c6e7=(_0x4701d9?_0x25baf7(_0x58231e,_0x55d7fb,_0x59c6e7):_0x25baf7(_0x59c6e7))||_0x59c6e7);return _0x4701d9&&_0x59c6e7&&Is(_0x58231e,_0x55d7fb,_0x59c6e7),_0x59c6e7;},Z=(_0x1e6907,_0x110ec2)=>(_0x9d29a7,_0x4dbe38)=>_0x110ec2(_0x9d29a7,_0x4dbe38,_0x1e6907);exports[_0x57f41f(0x19b)]=class extends a[_0x57f41f(0x1b5)]{constructor(_0x4a0f85,_0x219805,_0x55d154,_0x4b41ad,_0x5958a7,_0x294a69){const _0x3379ab=_0x57f41f;super(),u(this,'_socket$',new v[(_0x3379ab(0x3ab))](void 0x0)),u(this,'socket$',this[_0x3379ab(0x321)][_0x3379ab(0x41e)]()),u(this,_0x3379ab(0x47f),null),u(this,_0x3379ab(0x24d),new Map()),u(this,'_status$',new v[(_0x3379ab(0x3ab))](H[_0x3379ab(0x4e4)])),u(this,_0x3379ab(0x26c),this[_0x3379ab(0x524)][_0x3379ab(0x41e)]()),u(this,'_socketReady',!0x1),u(this,_0x3379ab(0x2d5)),u(this,'_retryCount',0x0),u(this,_0x3379ab(0x2ac)),u(this,_0x3379ab(0x4b6)),(this[_0x3379ab(0x331)]=_0x4a0f85,this[_0x3379ab(0x3c6)]=_0x219805,this[_0x3379ab(0x4b9)]=_0x55d154,this[_0x3379ab(0x181)]=_0x4b41ad,this['_configService']=_0x5958a7,this[_0x3379ab(0x3c1)]=_0x294a69,this[_0x3379ab(0x3e5)]());}get[_0x57f41f(0x364)](){const _0xf59f7b=_0x57f41f;return this[_0xf59f7b(0x321)]['getValue']();}[_0x57f41f(0x3e5)](){const _0x13eb0d=_0x57f41f;this['_listenToOfflineEvent'](),this[_0x13eb0d(0x12e)]();}['dispose'](){const _0x5a458a=_0x57f41f;super[_0x5a458a(0x3a4)](),this[_0x5a458a(0x24d)]['forEach'](_0x37a94d=>_0x37a94d[_0x5a458a(0x3a4)]()),this[_0x5a458a(0x24d)][_0x5a458a(0x159)](),this[_0x5a458a(0x524)][_0x5a458a(0x4a4)]();}async[_0x57f41f(0x2b6)](_0x23f22f){const _0x194040=_0x57f41f;if(this['_sessions'][_0x194040(0x2c9)](_0x23f22f))return this['_sessions'][_0x194040(0x31f)](_0x23f22f);this[_0x194040(0x2f4)]();const _0x439387=this[_0x194040(0x331)][_0x194040(0x4eb)](exports['CollaborationSession'],_0x23f22f,this['_socket$']['asObservable']());return this[_0x194040(0x24d)]['set'](_0x23f22f,_0x439387),_0x439387;}[_0x57f41f(0x1a2)](_0x4a2864){const _0x23d4d0=_0x57f41f;var _0x47bb9c;const _0x43980d=this[_0x23d4d0(0x24d)][_0x23d4d0(0x31f)](_0x4a2864);_0x43980d&&(this[_0x23d4d0(0x24d)][_0x23d4d0(0x3e0)](_0x4a2864),_0x43980d['close']()),this[_0x23d4d0(0x24d)]['size']||(_0x47bb9c=this[_0x23d4d0(0x364)])==null||_0x47bb9c[_0x23d4d0(0x316)]();}[_0x57f41f(0x17f)](){const _0x30b1c4=_0x57f41f;this[_0x30b1c4(0x1dc)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x30b1c4(0x2d5)]),this['_retryConnectingTimer']=null),this[_0x30b1c4(0x48b)]();}[_0x57f41f(0x167)](){const _0x536ab3=_0x57f41f;var _0x2064ad,_0x3c9837;const _0x525f6d=this[_0x536ab3(0x172)][_0x536ab3(0x37f)](gt),_0x3bc581=this[_0x536ab3(0x172)][_0x536ab3(0x37f)](L),_0x43e75c=(_0x3c9837=(_0x2064ad=_0x3bc581==null?void 0x0:_0x3bc581[_0x536ab3(0x537)])!=null?_0x2064ad:_0x525f6d)!=null?_0x3c9837:Zt,_0x573925=this['_socketService'][_0x536ab3(0x4b5)](_0x43e75c);return this[_0x536ab3(0x47f)]=_0x573925,_0x573925;}[_0x57f41f(0x2f4)](){const _0x1cc2ea=_0x57f41f;var _0x896124,_0x15c010;try{const _0x5da404=(_0x15c010=(_0x896124=this['_socket'])!=null?_0x896124:this[_0x1cc2ea(0x47f)])!=null?_0x15c010:this[_0x1cc2ea(0x167)]();if(_0x5da404){const _0x1e41be=_0x5da404[_0x1cc2ea(0x47b)];_0x5da404[_0x1cc2ea(0x47b)]=_0x349014=>(this['_rescheduleHeartbeat'](),_0x1e41be[_0x1cc2ea(0x254)](_0x5da404,[_0x349014])),_0x5da404[_0x1cc2ea(0x41c)]['subscribe'](_0x37057b=>this[_0x1cc2ea(0x31d)](_0x5da404,_0x37057b)),_0x5da404['error$']['pipe'](E[_0x1cc2ea(0x241)](0x1))[_0x1cc2ea(0x3ee)](_0x3827d8=>this['_logService']['error'](_0x1cc2ea(0x37d),_0x3827d8)),_0x5da404['open$']['pipe'](E['take'](0x1))[_0x1cc2ea(0x3ee)](()=>{const _0x48c18e=_0x1cc2ea;this[_0x48c18e(0x30a)](_0x5da404);}),_0x5da404[_0x1cc2ea(0x3b6)][_0x1cc2ea(0x4bb)](E[_0x1cc2ea(0x241)](0x1))[_0x1cc2ea(0x3ee)](_0x41b500=>{const _0x215527=_0x1cc2ea;this[_0x215527(0x181)]['debug'](_0x215527(0x187),_0x215527(0x381),_0x41b500),this[_0x215527(0x2dc)]();});}}catch(_0x2b8f81){this[_0x1cc2ea(0x181)]['error'](_0x2b8f81),this[_0x1cc2ea(0x2dc)]();}}[_0x57f41f(0x30a)](_0x124918){const _0xae7feb=_0x57f41f;this[_0xae7feb(0x181)][_0xae7feb(0x2e5)]('[CollaborationSessionService]',_0xae7feb(0x158)),_0x124918[_0xae7feb(0x47b)]({'cmd':b[_0xae7feb(0x528)]}),this[_0xae7feb(0x3bb)]();}['_listenToOfflineEvent'](){const _0x1f9919=_0x57f41f;window['addEventListener'](_0x1f9919(0x341),()=>this[_0x1f9919(0x3cb)]());}[_0x57f41f(0x3cb)](){const _0x28066e=_0x57f41f;this[_0x28066e(0x2df)]=!0x1,this[_0x28066e(0x47f)]=null,this[_0x28066e(0x524)]['next'](H[_0x28066e(0x2d2)]),this[_0x28066e(0x321)][_0x28066e(0x49c)](null),this[_0x28066e(0x2c7)](),this[_0x28066e(0x259)]();}[_0x57f41f(0x2dc)](){const _0x3d61c9=_0x57f41f;var _0x4fdaa8;this[_0x3d61c9(0x3cb)](),this[_0x3d61c9(0x1dc)]<((_0x4fdaa8=this[_0x3d61c9(0x172)][_0x3d61c9(0x37f)](It))!=null?_0x4fdaa8:ts)?(this['_messageService']['show']({'key':_0x3d61c9(0x472),'type':X[_0x3d61c9(0x1cf)][_0x3d61c9(0x1b4)],'content':this[_0x3d61c9(0x3c6)]['t'](_0x3d61c9(0x319))}),this[_0x3d61c9(0x48b)]()):this[_0x3d61c9(0x4b9)][_0x3d61c9(0x375)]({'key':_0x3d61c9(0x472),'type':X[_0x3d61c9(0x1cf)]['Error'],'content':this[_0x3d61c9(0x3c6)]['t']('session.connection-failed')});}[_0x57f41f(0x12e)](){const _0x5af779=_0x57f41f,_0x3f0118=()=>{const _0x584d7f=_0x1fa7;this[_0x584d7f(0x364)]||this[_0x584d7f(0x17f)]();},_0x250435=()=>{const _0x414d45=_0x1fa7;this[_0x414d45(0x364)]||document[_0x414d45(0x3df)]==='hidden'||this[_0x414d45(0x17f)]();};window[_0x5af779(0x37b)]('online',_0x3f0118),document[_0x5af779(0x37b)]('visibilitychange',_0x250435);}['_tryReconnect'](){const _0x52dc09=_0x57f41f;var _0x2ae79c;const _0x26455e=this[_0x52dc09(0x1dc)],_0x4b0db8=this[_0x52dc09(0x172)][_0x52dc09(0x37f)](L),_0x40638c=_0x26455e===0x0?0x0:((_0x2ae79c=_0x4b0db8==null?void 0x0:_0x4b0db8['retryConnectingInterval'])!=null?_0x2ae79c:es)*0x2**_0x26455e;this[_0x52dc09(0x2d5)]=window[_0x52dc09(0x540)](()=>{const _0x24df14=_0x52dc09;clearTimeout(this['_retryConnectingTimer']),this[_0x24df14(0x2d5)]=null,this[_0x24df14(0x2f4)]();},_0x40638c),this[_0x52dc09(0x1dc)]+=0x1;}[_0x57f41f(0x31d)](_0x1b5fae,_0x468b45){const _0x4fb9c7=_0x57f41f,{cmd:_0x4c7899}=_0x468b45;_0x4c7899===b[_0x4fb9c7(0x528)]&&!this[_0x4fb9c7(0x2df)]&&(_0x1b5fae['memberID']=_0x468b45[_0x4fb9c7(0x198)]['memberID'],this[_0x4fb9c7(0x321)][_0x4fb9c7(0x49c)](_0x1b5fae),this[_0x4fb9c7(0x524)]['next'](H[_0x4fb9c7(0x436)]),this[_0x4fb9c7(0x2df)]=!0x0,this[_0x4fb9c7(0x47f)]=null),_0x4c7899===b[_0x4fb9c7(0x2fd)]&&this[_0x4fb9c7(0x2c7)](),this['_rescheduleHeartbeat']();}[_0x57f41f(0x3bb)](){const _0x1aea50=_0x57f41f;var _0x26b54a;this['_clearHeartbeatTimer'](),this[_0x1aea50(0x2ac)]=window[_0x1aea50(0x540)](()=>this[_0x1aea50(0x1e6)](),(_0x26b54a=this[_0x1aea50(0x172)][_0x1aea50(0x37f)](mt))!=null?_0x26b54a:Qt);}[_0x57f41f(0x1e6)](){const _0x113255=_0x57f41f;this[_0x113255(0x364)][_0x113255(0x47b)]({'cmd':b[_0x113255(0x2fd)]}),this[_0x113255(0x22e)]();}[_0x57f41f(0x22e)](){const _0xce5af6=_0x57f41f;var _0x2efbef;this[_0xce5af6(0x4b6)]=window['setTimeout'](()=>this[_0xce5af6(0x2dc)](),(_0x2efbef=this[_0xce5af6(0x172)][_0xce5af6(0x37f)](Ge))!=null?_0x2efbef:ft);}[_0x57f41f(0x259)](){const _0xbbae0e=_0x57f41f;this[_0xbbae0e(0x2ac)]!=null&&(clearTimeout(this[_0xbbae0e(0x2ac)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x565105=_0x57f41f;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x565105(0x4b6)]),this[_0x565105(0x4b6)]=null);}},exports[_0x57f41f(0x19b)]=Cs([Z(0x0,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),Z(0x1,a['Inject'](a[_0x57f41f(0x405)])),Z(0x2,A[_0x57f41f(0x34b)]),Z(0x3,a['ILogService']),Z(0x4,a[_0x57f41f(0x435)]),Z(0x5,Ke)],exports['CollaborationSessionService']);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R['push']((Ue+0x100)[_0x57f41f(0x258)](0x10)[_0x57f41f(0x423)](0x1));function Es(_0x385abc,_0x5076c9=0x0){const _0x353890=_0x57f41f;return(R[_0x385abc[_0x5076c9+0x0]]+R[_0x385abc[_0x5076c9+0x1]]+R[_0x385abc[_0x5076c9+0x2]]+R[_0x385abc[_0x5076c9+0x3]]+'-'+R[_0x385abc[_0x5076c9+0x4]]+R[_0x385abc[_0x5076c9+0x5]]+'-'+R[_0x385abc[_0x5076c9+0x6]]+R[_0x385abc[_0x5076c9+0x7]]+'-'+R[_0x385abc[_0x5076c9+0x8]]+R[_0x385abc[_0x5076c9+0x9]]+'-'+R[_0x385abc[_0x5076c9+0xa]]+R[_0x385abc[_0x5076c9+0xb]]+R[_0x385abc[_0x5076c9+0xc]]+R[_0x385abc[_0x5076c9+0xd]]+R[_0x385abc[_0x5076c9+0xe]]+R[_0x385abc[_0x5076c9+0xf]])[_0x353890(0x322)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x4e6a22=_0x57f41f;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x4e6a22(0x417)]&&crypto[_0x4e6a22(0x417)][_0x4e6a22(0x136)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(bs);}var Rs=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x57f41f(0x1df)][_0x57f41f(0x136)](crypto);const st={'randomUUID':Rs};function Os(_0x1be5a0,_0x37f3ef,_0x1ec38e){const _0x36122e=_0x57f41f;if(st['randomUUID']&&!_0x37f3ef&&!_0x1be5a0)return st[_0x36122e(0x1df)]();_0x1be5a0=_0x1be5a0||{};var _0xf4274d=_0x1be5a0[_0x36122e(0x2f7)]||(_0x1be5a0[_0x36122e(0x510)]||Ts)();return _0xf4274d[0x6]=_0xf4274d[0x6]&0xf|0x40,_0xf4274d[0x8]=_0xf4274d[0x8]&0x3f|0x80,Es(_0xf4274d);}var Ds=Object[_0x57f41f(0x522)],ys=Object[_0x57f41f(0x191)],Us=(_0x327424,_0x19873a,_0x185657,_0x93d802)=>{const _0x31e35d=_0x57f41f;for(var _0x539224=_0x93d802>0x1?void 0x0:_0x93d802?ys(_0x19873a,_0x185657):_0x19873a,_0x301cbb=_0x327424[_0x31e35d(0x460)]-0x1,_0x839ba1;_0x301cbb>=0x0;_0x301cbb--)(_0x839ba1=_0x327424[_0x301cbb])&&(_0x539224=(_0x93d802?_0x839ba1(_0x19873a,_0x185657,_0x539224):_0x839ba1(_0x539224))||_0x539224);return _0x93d802&&_0x539224&&Ds(_0x19873a,_0x185657,_0x539224),_0x539224;},Pe=(_0x54ee57,_0x237e83)=>(_0x12ad1e,_0x5871d0)=>_0x237e83(_0x12ad1e,_0x5871d0,_0x54ee57);let fe=class{constructor(_0x474983,_0x3992ba,_0x33bcac){const _0x36884d=_0x57f41f;this[_0x36884d(0x331)]=_0x474983,this[_0x36884d(0x365)]=_0x3992ba,this[_0x36884d(0x46a)]=_0x33bcac;}[_0x57f41f(0x4c0)](_0x4012c2){const _0x35d65f=_0x57f41f;this[_0x35d65f(0x287)](_0x4012c2),this[_0x35d65f(0x285)](_0x4012c2);}[_0x57f41f(0x31a)](_0x1b39eb){const _0x50f5bc=_0x57f41f,{unitID:_0x1d6179}=_0x1b39eb,_0x117c37=this[_0x50f5bc(0x46a)][_0x50f5bc(0x488)](_0x1d6179)[_0x50f5bc(0x401)](N['DocIMEInputManagerService']),{redoCache:_0x11c6d8}=_0x117c37[_0x50f5bc(0x2e1)]();if(_0x11c6d8[_0x50f5bc(0x460)]===0x0)return _0x1b39eb;let _0xb95371=a['Tools'][_0x50f5bc(0x4b2)](_0x1b39eb[_0x50f5bc(0x506)][0x0]);for(let _0xd88f4a=0x0;_0xd88f4a<_0x11c6d8['length'];_0xd88f4a++){const _0x468cfb={'id':'doc.mutation.rich-text-editing','params':{..._0x11c6d8[_0xd88f4a]}},_0x14155a=this[_0x50f5bc(0x365)]['transformMutation'](_0xb95371,_0x468cfb,!0x1);if(_[_0x50f5bc(0x28a)](_0x14155a))throw _0x14155a[_0x50f5bc(0x542)];_0xb95371=_0x14155a[_0x50f5bc(0x36a)];}return{...a['Tools'][_0x50f5bc(0x4b2)](_0x1b39eb),'mutations':[_0xb95371]};}['_transformUndoRedoStack'](_0x5c1031){const _0x5babd7=_0x57f41f,{unitID:_0x2435a6}=_0x5c1031,_0x3034fb=this[_0x5babd7(0x46a)][_0x5babd7(0x488)](_0x2435a6)['with'](N[_0x5babd7(0x2e2)]),{undoCache:_0x4b4786,redoCache:_0x3134fc}=_0x3034fb[_0x5babd7(0x2e1)]();if(_0x4b4786[_0x5babd7(0x460)]===0x0||_0x3134fc[_0x5babd7(0x460)]===0x0)return;const _0x238656=[],_0x3db31f=[];let _0x5c9a14=a[_0x5babd7(0x25c)][_0x5babd7(0x4b2)](_0x5c1031[_0x5babd7(0x506)][0x0]),_0x468a4e=a['Tools'][_0x5babd7(0x4b2)](_0x5c1031[_0x5babd7(0x506)][0x0]);for(let _0x319737=_0x4b4786['length']-0x1;_0x319737>=0x0;_0x319737--){const _0x5e49ea={'id':_0x5babd7(0x44f),'params':{..._0x4b4786[_0x319737]}},_0x588a98={'id':'doc.mutation.rich-text-editing','params':{..._0x3134fc[_0x319737]}},_0x81d2a2=this['_transformService']['transformMutation'](_0x5c9a14,_0x5e49ea,!0x1),_0x25f6f8=this[_0x5babd7(0x365)][_0x5babd7(0x1e4)](_0x468a4e,_0x588a98,!0x1);if(_[_0x5babd7(0x28a)](_0x81d2a2))throw _0x81d2a2[_0x5babd7(0x542)];if(_[_0x5babd7(0x28a)](_0x25f6f8))throw _0x25f6f8[_0x5babd7(0x542)];_0x238656[_0x5babd7(0x54b)](_0x81d2a2[_0x5babd7(0x353)][_0x5babd7(0x15b)]),_0x3db31f[_0x5babd7(0x54b)](_0x25f6f8[_0x5babd7(0x353)][_0x5babd7(0x15b)]),_0x5c9a14=_0x81d2a2[_0x5babd7(0x36a)],_0x468a4e=_0x25f6f8[_0x5babd7(0x36a)];}_0x3034fb[_0x5babd7(0x19f)]({'undoCache':_0x238656,'redoCache':_0x3db31f});}[_0x57f41f(0x285)](_0x178d83){const _0x2a6f92=_0x57f41f,{unitID:_0x59da63}=_0x178d83,_0x4212b8=this['_renderManagerService'][_0x2a6f92(0x488)](_0x59da63)[_0x2a6f92(0x401)](N['DocIMEInputManagerService']),_0x31664a=_0x4212b8[_0x2a6f92(0x481)]();if(_0x31664a==null)return;const _0x5f4081=[{'id':_0x2a6f92(0x44f),'params':{'unitId':_0x178d83['unitID'],'actions':null,'textRanges':[_0x31664a]}}],_0x5b9a55=this['_transformService']['transformMutationsWithChangeset'](_0x178d83,_0x5f4081);if(!_[_0x2a6f92(0x41b)](_0x5b9a55))throw _0x5b9a55['error'];const _0x5c00f8=_0x5b9a55[_0x2a6f92(0x353)][0x0]['params'][_0x2a6f92(0x179)];Array[_0x2a6f92(0x2f8)](_0x5c00f8)&&_0x5c00f8[_0x2a6f92(0x460)]&&_0x4212b8['setActiveRange'](_0x5c00f8[0x0]);}};fe=Us([Pe(0x0,a['Inject'](a['Injector'])),Pe(0x1,_[_0x57f41f(0x127)]),Pe(0x2,O[_0x57f41f(0x15c)])],fe);var Ps=Object['defineProperty'],ws=Object[_0x57f41f(0x191)],Ns=(_0x2e066d,_0x1dc29e,_0x4388aa,_0x4febe5)=>{const _0x4a6eab=_0x57f41f;for(var _0x19c933=_0x4febe5>0x1?void 0x0:_0x4febe5?ws(_0x1dc29e,_0x4388aa):_0x1dc29e,_0x5b8ac4=_0x2e066d[_0x4a6eab(0x460)]-0x1,_0x37990b;_0x5b8ac4>=0x0;_0x5b8ac4--)(_0x37990b=_0x2e066d[_0x5b8ac4])&&(_0x19c933=(_0x4febe5?_0x37990b(_0x1dc29e,_0x4388aa,_0x19c933):_0x37990b(_0x19c933))||_0x19c933);return _0x4febe5&&_0x19c933&&Ps(_0x1dc29e,_0x4388aa,_0x19c933),_0x19c933;},ce=(_0x82dfc9,_0x38a0b6)=>(_0x35a924,_0x34a77a)=>_0x38a0b6(_0x35a924,_0x34a77a,_0x82dfc9);exports['LocalCacheService']=class extends a[_0x57f41f(0x1b5)]{constructor(_0x3d3273,_0x1e71e8,_0x278355,_0x3c96f5,_0x1f20d8){const _0x4c6dc9=_0x57f41f;super(),u(this,_0x4c6dc9(0x3ac),new Map()),u(this,_0x4c6dc9(0x38c),new Map()),u(this,_0x4c6dc9(0x531),!0x1),(this[_0x4c6dc9(0x172)]=_0x3d3273,this[_0x4c6dc9(0x294)]=_0x1e71e8,this['_beforeCloseService']=_0x278355,this[_0x4c6dc9(0x3c6)]=_0x3c96f5,this['_revisionService']=_0x1f20d8,this['_setupBeforeClosingHandler']());}[_0x57f41f(0x1f2)](){const _0x239527=_0x57f41f;this[_0x239527(0x531)]=!0x0;}[_0x57f41f(0x4a3)](){const _0x5558e9=_0x57f41f;this[_0x5558e9(0x531)]=!0x1;}[_0x57f41f(0x3a4)](){const _0x1d813b=_0x57f41f;this['exhaustSavingTask']()[_0x1d813b(0x407)](()=>super[_0x1d813b(0x3a4)]());}async[_0x57f41f(0x1e0)](_0x12a4ff){const _0x5b7df6=_0x57f41f;return this[_0x5b7df6(0x531)]?null:this[_0x5b7df6(0x294)][_0x5b7df6(0x176)](it(_0x12a4ff));}async[_0x57f41f(0x40a)](_0x5cccb9,_0x3b1af6){const _0x38d889=_0x57f41f;return!!this[_0x38d889(0x294)][_0x38d889(0x1de)](_0x5cccb9,_0x3b1af6);}[_0x57f41f(0x4dc)](_0xf6c77d,_0x196305,_0x52db0d,_0x20b1da){const _0x2a3efa=_0x57f41f,_0x3b428f=this[_0x2a3efa(0x51e)]['getCurrentRevOfUnit'](_0xf6c77d);this[_0x2a3efa(0x3ac)][_0x2a3efa(0x20b)](_0xf6c77d,{'unitID':_0xf6c77d,'type':_0x196305,'awaitingChangeset':_0x52db0d,'mutations':_0x20b1da,'rev':_0x3b428f}),this[_0x2a3efa(0x38c)][_0x2a3efa(0x2c9)](_0xf6c77d)||this['_scheduleSaving'](_0xf6c77d);}[_0x57f41f(0x513)](_0x44e338){const _0x1a41a7=_0x57f41f,_0x3599f2=this[_0x1a41a7(0x1fc)]();_0x3599f2===0x0?this[_0x1a41a7(0x4f2)](_0x44e338):this[_0x1a41a7(0x38c)][_0x1a41a7(0x20b)](_0x44e338,setTimeout(()=>this[_0x1a41a7(0x4f2)](_0x44e338),_0x3599f2));}[_0x57f41f(0x1fc)](){const _0x5064d4=_0x57f41f;var _0x458b87;return(_0x458b87=this['_configService'][_0x5064d4(0x37f)](pt))!=null?_0x458b87:ss;}[_0x57f41f(0x4f2)](_0x1ba67d){const _0x138f04=_0x57f41f,_0x5bbd81=this['_saveTaskMap']['get'](_0x1ba67d);return _0x5bbd81!==void 0x0&&window['clearTimeout'](_0x5bbd81),this['_localStorageService']['setItem'](it(_0x1ba67d),this[_0x138f04(0x3ac)]['get'](_0x1ba67d))[_0x138f04(0x407)](()=>this['_saveTaskMap'][_0x138f04(0x3e0)](_0x1ba67d));}async[_0x57f41f(0x4ad)](){const _0x2abf18=_0x57f41f,_0x107ea9=[];this[_0x2abf18(0x38c)][_0x2abf18(0x50c)]((_0x47b467,_0xdbd431)=>{const _0x24566b=_0x2abf18;window[_0x24566b(0x509)](_0x47b467),_0x107ea9[_0x24566b(0x2d0)](this['_saveCache'](_0xdbd431)['then'](()=>{const _0x2236b5=_0x24566b;this[_0x2236b5(0x38c)][_0x2236b5(0x3e0)](_0xdbd431);}));}),await Promise[_0x2abf18(0x38d)](_0x107ea9);}[_0x57f41f(0x2d4)](){const _0x420c2c=_0x57f41f;this[_0x420c2c(0x1e2)](this[_0x420c2c(0x270)][_0x420c2c(0x4c6)](()=>{const _0x53d20e=_0x420c2c;if(this[_0x53d20e(0x38c)][_0x53d20e(0x3f1)])return this[_0x53d20e(0x3c6)]['t'](_0x53d20e(0x3c0));}));}},exports[_0x57f41f(0x4a8)]=Ns([ce(0x0,a[_0x57f41f(0x435)]),ce(0x1,a[_0x57f41f(0x549)]),ce(0x2,A[_0x57f41f(0x3e8)]),ce(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),ce(0x4,a['Inject'](_[_0x57f41f(0x441)]))],exports[_0x57f41f(0x4a8)]);function it(_0x2d97f6){const _0x1cd4a3=_0x57f41f;return _0x1cd4a3(0x46e)+_0x2d97f6;}var Ms=Object[_0x57f41f(0x522)],As=Object['getOwnPropertyDescriptor'],Ls=(_0x2ac897,_0x526e5f,_0x2b72be,_0xb39d75)=>{for(var _0x9bdfe9=_0xb39d75>0x1?void 0x0:_0xb39d75?As(_0x526e5f,_0x2b72be):_0x526e5f,_0x394c02=_0x2ac897['length']-0x1,_0x11c769;_0x394c02>=0x0;_0x394c02--)(_0x11c769=_0x2ac897[_0x394c02])&&(_0x9bdfe9=(_0xb39d75?_0x11c769(_0x526e5f,_0x2b72be,_0x9bdfe9):_0x11c769(_0x9bdfe9))||_0x9bdfe9);return _0xb39d75&&_0x9bdfe9&&Ms(_0x526e5f,_0x2b72be,_0x9bdfe9),_0x9bdfe9;},we=(_0x2a7a29,_0x2577f1)=>(_0x370ec0,_0x200052)=>_0x2577f1(_0x370ec0,_0x200052,_0x2a7a29);function js(_0x302022){const _0x48db99=_0x57f41f,{unitID:_0x94c27a,mutations:_0x5e6b8f}=_0x302022;return{'unitId':_0x94c27a,'subUnitId':_0x5e6b8f[0x0]['params'][_0x48db99(0x3aa)]};}let Ie=class{constructor(_0x370002,_0x36385b,_0x2c0dce){const _0x428065=_0x57f41f;this[_0x428065(0x331)]=_0x370002,this[_0x428065(0x365)]=_0x36385b,this[_0x428065(0x517)]=_0x2c0dce;}[_0x57f41f(0x357)](_0xb92b08){const _0x549061=_0x57f41f;var _0x3db529,_0x35a11d,_0x9779de,_0xa145f3;const _0x1bafef=this[_0x549061(0x331)][_0x549061(0x31f)](C[_0x549061(0x428)]),{unitId:_0x463271,subUnitId:_0x5857b9}=js(_0xb92b08),_0x213411=_0x1bafef[_0x549061(0x3b4)](_0x463271)[_0x549061(0x3a7)](),_0xd99ec9=(_0x35a11d=(_0x3db529=this[_0x549061(0x517)][_0x549061(0x2fe)](_0x463271))==null?void 0x0:_0x3db529[_0x549061(0x2ad)]())==null?void 0x0:_0x35a11d[_0x549061(0x255)]();if(_0x213411[_0x549061(0x460)]===0x0||!_0x463271||!_0x5857b9)return;const _0x4204e5=[{'id':C[_0x549061(0x4a1)]['id'],'params':{'unitId':_0x463271,'subUnitId':_0xd99ec9,'selections':a['Tools'][_0x549061(0x4b2)](_0x213411)}}],_0x1a1ecf=this[_0x549061(0x365)]['transformMutationsWithChangeset'](_0xb92b08,_0x4204e5);if(!_[_0x549061(0x41b)](_0x1a1ecf))throw _0x1a1ecf[_0x549061(0x542)];const _0xa4be6f=(_0xa145f3=(_0x9779de=_0x1a1ecf['m2Prime'][0x0])==null?void 0x0:_0x9779de[_0x549061(0x15b)])==null?void 0x0:_0xa145f3[_0x549061(0x266)];Array[_0x549061(0x2f8)](_0xa4be6f)&&_0xa4be6f[_0x549061(0x460)]&&this[_0x549061(0x331)][_0x549061(0x31f)](a['ICommandService'])[_0x549061(0x449)](C[_0x549061(0x4a1)]['id'],{'unitId':_0x463271,'subUnitId':_0xd99ec9,'selections':_0xa4be6f});}};Ie=Ls([we(0x0,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),we(0x1,_[_0x57f41f(0x127)]),we(0x2,a[_0x57f41f(0x546)])],Ie);const Re=a[_0x57f41f(0x193)]('univer-pro.collaboration-client.single-active-unit-service');var Dt=(_0x5991dd=>(_0x5991dd[_0x5991dd[_0x57f41f(0x243)]=0x0]=_0x57f41f(0x243),_0x5991dd[_0x5991dd[_0x57f41f(0x53e)]=0x1]=_0x57f41f(0x53e),_0x5991dd))(Dt||{});const nt=0x7530,rt=_0x57f41f(0x289);class $s extends a[_0x57f41f(0x1b5)]{constructor(){const _0x1234d1=_0x57f41f;super(),u(this,'_id',a[_0x1234d1(0x25c)][_0x1234d1(0x465)]()),u(this,_0x1234d1(0x521),new Set()),u(this,'_unitOnClients',new Map()),u(this,'_heartbeatTimer',null),u(this,'_clearOtherTimers',new Map()),u(this,_0x1234d1(0x13a),new Map()),this[_0x1234d1(0x326)]();}[_0x57f41f(0x3a4)](){const _0x2c4fcc=_0x57f41f;super[_0x2c4fcc(0x3a4)](),this[_0x2c4fcc(0x34f)][_0x2c4fcc(0x50c)]((_0x2ca8de,_0x501e95)=>this['_removeClearOtherTimer'](_0x501e95)),this[_0x2c4fcc(0x293)]&&window['clearInterval'](this[_0x2c4fcc(0x293)]);}[_0x57f41f(0x1e1)](_0x182dcf){const _0xa604ce=_0x57f41f;return this[_0xa604ce(0x44b)](_0x182dcf)[_0xa604ce(0x4bb)](v[_0xa604ce(0x52b)]());}[_0x57f41f(0x208)](_0x2f3ea7){const _0x5b495b=_0x57f41f;this[_0x5b495b(0x521)][_0x5b495b(0x3f1)]===0x0&&this[_0x5b495b(0x492)](),this['_selfUnitIDs'][_0x5b495b(0x150)](_0x2f3ea7),this[_0x5b495b(0x203)]({'type':0x0,'memberID':this[_0x5b495b(0x372)],'unitIDs':[_0x2f3ea7],'isForwarded':!0x1});}[_0x57f41f(0x27e)](_0x535821){const _0x1f62e5=_0x57f41f;this['_selfUnitIDs'][_0x1f62e5(0x3e0)](_0x535821),this[_0x1f62e5(0x521)]['size']===0x0&&this[_0x1f62e5(0x293)]&&window[_0x1f62e5(0x4f8)](this[_0x1f62e5(0x293)]);}['_init'](){const _0x3498ef=_0x57f41f;this[_0x3498ef(0x1e2)](a[_0x3498ef(0x1f9)](v['fromEvent'](window,_0x3498ef(0x397))[_0x3498ef(0x3ee)](_0x343f09=>{const _0x41b08b=_0x3498ef;if(_0x343f09[_0x41b08b(0x2b3)]!==rt||!_0x343f09[_0x41b08b(0x4bd)])return;const _0x39c9ae=JSON[_0x41b08b(0x1a1)](_0x343f09[_0x41b08b(0x4bd)]);this[_0x41b08b(0x440)](_0x39c9ae);}))),window[_0x3498ef(0x37b)](_0x3498ef(0x3b7),()=>this['_send']({'type':0x1,'memberID':this[_0x3498ef(0x372)],'unitIDs':Array['from'](this[_0x3498ef(0x521)])}));}[_0x57f41f(0x440)](_0x1fdb51){const _0x55e999=_0x57f41f;switch(_0x1fdb51[_0x55e999(0x221)]){case 0x0:this['_handleJoinEvent'](_0x1fdb51);break;case 0x1:this['_handleLeaveEvent'](_0x1fdb51);break;case 0x2:this[_0x55e999(0x30e)](_0x1fdb51);break;}}[_0x57f41f(0x3c9)](_0x28f43e){const _0x5cbf35=_0x57f41f,{unitIDs:_0x5af215,memberID:_0xbf9035,isForwarded:_0x5003ff}=_0x28f43e;_0x5af215[_0x5cbf35(0x50c)](_0xd2ac58=>{const _0x1d3012=_0x5cbf35;if(!_0x5003ff&&this[_0x1d3012(0x242)][_0x1d3012(0x2c9)](_0xd2ac58)&&this[_0x1d3012(0x44b)](_0xd2ac58)['next'](0x1),!this['_unitOnClients']['has'](_0xd2ac58)||!this['_unitOnClients'][_0x1d3012(0x31f)](_0xd2ac58)[_0x1d3012(0x2c9)](_0xbf9035)){const _0x349675=this[_0x1d3012(0x242)][_0x1d3012(0x31f)](_0xd2ac58)||new Set();_0x349675[_0x1d3012(0x150)](_0xbf9035),this[_0x1d3012(0x242)][_0x1d3012(0x20b)](_0xd2ac58,_0x349675),this[_0x1d3012(0x311)](_0xbf9035);}}),_0x5003ff||this[_0x5cbf35(0x203)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x5cbf35(0x521)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x7cc3a7){const _0x15cb8c=_0x57f41f;this[_0x15cb8c(0x3bd)](_0x7cc3a7);const _0x2234ec=window[_0x15cb8c(0x540)](()=>{const _0x531e8b=_0x15cb8c;this['_unitOnClients'][_0x531e8b(0x50c)](_0x1509d4=>{const _0x50fecc=_0x531e8b;_0x1509d4[_0x50fecc(0x3e0)](_0x7cc3a7);});},nt*0x2);this[_0x15cb8c(0x34f)][_0x15cb8c(0x20b)](_0x7cc3a7,_0x2234ec);}['_removeClearOtherTimer'](_0x5bf5d6){const _0x24c1ae=_0x57f41f;if(this[_0x24c1ae(0x34f)][_0x24c1ae(0x2c9)](_0x5bf5d6)){const _0x235e53=this[_0x24c1ae(0x34f)][_0x24c1ae(0x31f)](_0x5bf5d6);_0x235e53&&window[_0x24c1ae(0x509)](_0x235e53),this['_clearOtherTimers']['set'](_0x5bf5d6,null);}}[_0x57f41f(0x3ec)](_0x29b1bc){const _0x1f1a5e=_0x57f41f,{memberID:_0x25dd23,unitIDs:_0x5b550d}=_0x29b1bc;_0x5b550d[_0x1f1a5e(0x50c)](_0x19ede2=>{const _0x60ac05=_0x1f1a5e;var _0x10b212;const _0x5d899b=this[_0x60ac05(0x242)][_0x60ac05(0x31f)](_0x19ede2);_0x5d899b&&(_0x5d899b[_0x60ac05(0x3e0)](_0x25dd23),(_0x10b212=this[_0x60ac05(0x44b)](_0x19ede2))==null||_0x10b212[_0x60ac05(0x49c)](_0x5d899b[_0x60ac05(0x3f1)]===0x0?0x0:0x1));}),this[_0x1f1a5e(0x3bd)](_0x25dd23);}[_0x57f41f(0x30e)](_0x2f8de6){const _0x13bafc=_0x57f41f;this[_0x13bafc(0x311)](_0x2f8de6[_0x13bafc(0x20c)]);}[_0x57f41f(0x203)](_0x5be66d){const _0x56a1ea=_0x57f41f;localStorage['setItem'](rt,JSON[_0x56a1ea(0x3bc)](_0x5be66d));}['_scheduleHeartbeat'](){const _0x1b7a2e=_0x57f41f;this[_0x1b7a2e(0x293)]=window[_0x1b7a2e(0x4f7)](()=>{const _0x52d242=_0x1b7a2e;this[_0x52d242(0x203)]({'type':0x2,'memberID':this[_0x52d242(0x372)]});},nt);}[_0x57f41f(0x44b)](_0x2618f0){const _0x35ccc1=_0x57f41f;return this['_unitStatus']['has'](_0x2618f0)||this[_0x35ccc1(0x13a)][_0x35ccc1(0x20b)](_0x2618f0,new v[(_0x35ccc1(0x3ab))](0x0)),this[_0x35ccc1(0x13a)][_0x35ccc1(0x31f)](_0x2618f0);}}function yt(_0x29bc4e){const _0x387eca=_0x57f41f;let _0x190c38='';for(const _0x1728cb of _0x29bc4e){const {startOffset:_0x89fad4,endOffset:_0x4f7fa2,isActive:_0x5b366f}=_0x1728cb;_0x190c38[_0x387eca(0x460)]&&(_0x190c38+=','),_0x190c38+=_0x89fad4+':'+_0x4f7fa2+':'+(_0x5b366f?'1':'0');}return _0x190c38;}function Hs(_0x11928f){const _0x3f647a=_0x57f41f,_0x1b58b7=_0x11928f[_0x3f647a(0x309)](','),_0x2a65b=[];for(const _0x32faf2 of _0x1b58b7){const [_0x3266d1,_0x56ecf0,_0x5998be]=_0x32faf2[_0x3f647a(0x309)](':');_0x2a65b['push']({'startOffset':Number(_0x3266d1),'endOffset':Number(_0x56ecf0),'collapsed':_0x3266d1===_0x56ecf0,'isActive':_0x5998be==='1'});}return _0x2a65b['some'](_0x4fb40c=>_0x4fb40c[_0x3f647a(0x4ef)])||(_0x2a65b[0x0][_0x3f647a(0x4ef)]=!0x0),_0x2a65b;}class qe extends a['RxDisposable']{constructor(){const _0x2361b5=_0x57f41f;super(...arguments),u(this,_0x2361b5(0x2b5),new v['BehaviorSubject'](null)),u(this,'collabCursorState$',this[_0x2361b5(0x2b5)][_0x2361b5(0x41e)]());}['syncEditingCollabCursor'](_0x56fb62){const _0x2fd018=_0x57f41f,{unitID:_0xff3b9f,memberID:_0x1140f2,textRanges:_0x55ef39}=_0x56fb62,_0x123b41=yt(_0x55ef39),_0xf71e71={'unitID':_0xff3b9f,'memberID':_0x1140f2,'selection':_0x123b41};this[_0x2fd018(0x2b5)][_0x2fd018(0x49c)](_0xf71e71);}}var xs=Object[_0x57f41f(0x522)],ks=Object[_0x57f41f(0x191)],Bs=(_0x1506b5,_0x5e58e8,_0x37ff0f,_0x5c48f3)=>{const _0x17e1de=_0x57f41f;for(var _0x4d6485=_0x5c48f3>0x1?void 0x0:_0x5c48f3?ks(_0x5e58e8,_0x37ff0f):_0x5e58e8,_0x2b904d=_0x1506b5[_0x17e1de(0x460)]-0x1,_0x4b867f;_0x2b904d>=0x0;_0x2b904d--)(_0x4b867f=_0x1506b5[_0x2b904d])&&(_0x4d6485=(_0x5c48f3?_0x4b867f(_0x5e58e8,_0x37ff0f,_0x4d6485):_0x4b867f(_0x4d6485))||_0x4d6485);return _0x5c48f3&&_0x4d6485&&xs(_0x5e58e8,_0x37ff0f,_0x4d6485),_0x4d6485;},ot=(_0xecab61,_0xac4d42)=>(_0x17beb5,_0xa85ea1)=>_0xac4d42(_0x17beb5,_0xa85ea1,_0xecab61);let pe=class{constructor(_0x2e2373,_0x1c7309){const _0x3f9797=_0x57f41f;this['_injector']=_0x2e2373,this[_0x3f9797(0x365)]=_0x1c7309;}['transformSelections'](_0x849c13){const _0x5c1a0b=_0x57f41f;var _0x55ecb7;const _0x82e810=this[_0x5c1a0b(0x331)][_0x5c1a0b(0x31f)](se[_0x5c1a0b(0x1d0)]),_0x336fed=(_0x55ecb7=_0x82e810[_0x5c1a0b(0x328)]())!=null?_0x55ecb7:[];if(_0x336fed[_0x5c1a0b(0x460)]===0x0)return;const _0x35f9ff=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x849c13[_0x5c1a0b(0x36e)],'actions':null,'textRanges':_0x336fed}}],_0x5c3efa=this[_0x5c1a0b(0x365)][_0x5c1a0b(0x323)](_0x849c13,_0x35f9ff);if(!_['isTransformMutationsWithChangesetSuccess'](_0x5c3efa))throw _0x5c3efa['error'];const _0x544c47=_0x5c3efa[_0x5c1a0b(0x353)][0x0][_0x5c1a0b(0x15b)][_0x5c1a0b(0x179)];Array[_0x5c1a0b(0x2f8)](_0x544c47)&&_0x544c47[_0x5c1a0b(0x460)]&&_0x82e810[_0x5c1a0b(0x485)](_0x544c47,!0x1);}};pe=Bs([ot(0x0,a['Inject'](a[_0x57f41f(0x410)])),ot(0x1,_[_0x57f41f(0x127)])],pe);const Vs=new Set([C[_0x57f41f(0x1c8)]['id']]);function at(_0x338d06,_0x4942f0,_0x5d8f85,_0x45ba5b,_0xa14841){const _0x10ed84=_0x57f41f;var _0x202ec2,_0x2a0e38,_0x17d430,_0x1099dd;const _0x4ae431=[];for(const _0x379452 of _0x338d06)if(Vs[_0x10ed84(0x2c9)](_0x379452['id'])){if(_0x4ae431[_0x10ed84(0x460)]>0x0)break;_0x4ae431[_0x10ed84(0x2d0)](_0x379452);break;}else _0x4ae431[_0x10ed84(0x2d0)](_0x379452);const _0x39690f=(_0x2a0e38=(_0x202ec2=_0xa14841[_0x10ed84(0x45c)]())==null?void 0x0:_0x202ec2[_0x10ed84(0x33a)])!=null?_0x2a0e38:_0x10ed84(0x1c9),_0x4f2279=(_0x1099dd=(_0x17d430=_0xa14841[_0x10ed84(0x45c)]())==null?void 0x0:_0x17d430[_0x10ed84(0x20c)])!=null?_0x1099dd:_0x10ed84(0x1c9);return{'changeset':{'unitID':_0x4942f0,'type':_['mapDocumentTypeToUniverType'](_0x5d8f85['getUnitType'](_0x4942f0)),'baseRev':_0x45ba5b['getCurrentRevOfUnit'](_0x4942f0),'revision':0x0,'userID':_0x39690f,'memberID':_0x4f2279,'mutations':_0x4ae431},'pendingMutations':_0x338d06['slice'](_0x4ae431[_0x10ed84(0x460)])};}function Ws(_0x40ec11,_0x42c869,_0x34fe08,_0x16f2be,_0x574318){const _0x35866d=_0x57f41f;var _0x13ee60,_0x1ca8d6,_0x32d78d,_0x121d98;const _0x3341cc=[_0x40ec11[_0x35866d(0x545)]((_0x432f39,_0xccc0d7)=>{const _0x597e07=_0x35866d;var _0x5b49d3;const {id:_0x11a257}=_0x432f39,{id:_0x420fc6,type:_0x3b9ca3}=_0xccc0d7,_0x39c0ad=(_0x5b49d3=_0x432f39[_0x597e07(0x15b)])!=null?_0x5b49d3:{'actions':null},_0x2fe971=_0xccc0d7[_0x597e07(0x15b)];if(_0x11a257&&_0x11a257!==_0x420fc6)throw new Error(_0x597e07(0x138)+_0x11a257+_0x597e07(0x515)+_0x420fc6+'.');return{..._0x432f39,'id':_0x420fc6,'type':_0x3b9ca3,'params':{'unitId':_0x2fe971[_0x597e07(0x1d1)],'textRanges':_0x2fe971[_0x597e07(0x179)],'actions':a[_0x597e07(0x13b)][_0x597e07(0x139)](_0x39c0ad[_0x597e07(0x15e)],_0x2fe971[_0x597e07(0x15e)])}};},{})],_0x1d5245=(_0x1ca8d6=(_0x13ee60=_0x574318[_0x35866d(0x45c)]())==null?void 0x0:_0x13ee60['userID'])!=null?_0x1ca8d6:'unknown',_0x6ae38c=(_0x121d98=(_0x32d78d=_0x574318[_0x35866d(0x45c)]())==null?void 0x0:_0x32d78d[_0x35866d(0x20c)])!=null?_0x121d98:_0x35866d(0x1c9);return{'changeset':{'unitID':_0x42c869,'type':_[_0x35866d(0x2f1)](_0x34fe08[_0x35866d(0x276)](_0x42c869)),'baseRev':_0x16f2be[_0x35866d(0x52e)](_0x42c869),'revision':0x0,'userID':_0x1d5245,'memberID':_0x6ae38c,'mutations':_0x3341cc},'pendingMutations':[]};}const Fs={'id':C[_0x57f41f(0x52c)]['id'],'type':a[_0x57f41f(0x4a7)][_0x57f41f(0x385)],'params':{}};var Gs=Object['defineProperty'],Ys=Object[_0x57f41f(0x191)],z=(_0x4d0361,_0x12e9f2,_0x26851d,_0x136895)=>{const _0x42a162=_0x57f41f;for(var _0x42b732=_0x136895>0x1?void 0x0:_0x136895?Ys(_0x12e9f2,_0x26851d):_0x12e9f2,_0x258b69=_0x4d0361[_0x42a162(0x460)]-0x1,_0x220ac2;_0x258b69>=0x0;_0x258b69--)(_0x220ac2=_0x4d0361[_0x258b69])&&(_0x42b732=(_0x136895?_0x220ac2(_0x12e9f2,_0x26851d,_0x42b732):_0x220ac2(_0x42b732))||_0x42b732);return _0x136895&&_0x42b732&&Gs(_0x12e9f2,_0x26851d,_0x42b732),_0x42b732;},m=(_0x404bf3,_0x193019)=>(_0x57979b,_0x3decc3)=>_0x193019(_0x57979b,_0x3decc3,_0x404bf3),U=(_0x3729dd=>(_0x3729dd[_0x57f41f(0x233)]=_0x57f41f(0x217),_0x3729dd['SYNCED']='synced',_0x3729dd[_0x57f41f(0x508)]=_0x57f41f(0x305),_0x3729dd[_0x57f41f(0x265)]='awaiting',_0x3729dd[_0x57f41f(0x2a0)]=_0x57f41f(0x3fa),_0x3729dd[_0x57f41f(0x2d9)]=_0x57f41f(0x454),_0x3729dd[_0x57f41f(0x21c)]=_0x57f41f(0x22a),_0x3729dd[_0x57f41f(0x2d2)]=_0x57f41f(0x341),_0x3729dd))(U||{});class J{constructor(_0xd5f1f9,_0x26d8b9,_0x268aa5,_0x243b0b,_0x5abe9d,_0x10e54c,_0x119b03,_0x5a8009,_0x320d20){const _0x2be726=_0x57f41f;u(this,'_awaitingChangeset',null),u(this,'_pendingMutations',[]),(this['unitID']=_0xd5f1f9,this['type']=_0x26d8b9,this['_handler']=_0x5abe9d,this['_commandService']=_0x10e54c,this['_undoRedoService']=_0x119b03,this['_revisionService']=_0x5a8009,this[_0x2be726(0x190)]=_0x320d20,this[_0x2be726(0x47c)]=_0x268aa5,this[_0x2be726(0x248)]=_0x243b0b);}[_0x57f41f(0x54e)](_0x3f1457){const _0x337a5a=_0x57f41f,_0x51d24f=this[_0x337a5a(0x51e)]['getCurrentRevOfUnit'](this[_0x337a5a(0x36e)]);return _0x3f1457[_0x337a5a(0x308)]>_0x51d24f+0x1?(this[_0x337a5a(0x1e5)][_0x337a5a(0x52f)]({'from':_0x51d24f,'to':_0x3f1457[_0x337a5a(0x308)]-0x1}),!0x0):!0x1;}[_0x57f41f(0x1af)](_0x288275){const _0x18436e=_0x57f41f;this[_0x18436e(0x27c)][_0x18436e(0x130)](this[_0x18436e(0x36e)],_0x288275);}[_0x57f41f(0x4cb)](_0x48ccfc){const _0x261097=_0x57f41f;var _0x49a8c4,_0x18cfe3;(_0x18cfe3=(_0x49a8c4=this[_0x261097(0x1e5)])[_0x261097(0x230)])==null||_0x18cfe3[_0x261097(0x19d)](_0x49a8c4,_0x48ccfc);}[_0x57f41f(0x3d1)](_0x259bb4){const _0x1fdb8f=_0x57f41f;var _0x508329,_0x23c132;return(_0x23c132=(_0x508329=this['_handler'])[_0x1fdb8f(0x307)])==null?void 0x0:_0x23c132[_0x1fdb8f(0x19d)](_0x508329,_0x259bb4);}[_0x57f41f(0x194)](_0x7e5fec){const _0x44d6f7=_0x57f41f;var _0x37f8d3,_0x3eec2d,_0x37ad55;return(_0x37ad55=(_0x3eec2d=(_0x37f8d3=this[_0x44d6f7(0x1e5)])[_0x44d6f7(0x448)])==null?void 0x0:_0x3eec2d[_0x44d6f7(0x19d)](_0x37f8d3,_0x7e5fec))!=null?_0x37ad55:_0x7e5fec;}[_0x57f41f(0x21b)](_0x4f87eb){const _0x35c865=_0x57f41f;var _0x8ff8eb,_0x3fb9ad;if(this['type']===$[_0x35c865(0x1a7)]){const {unitID:_0x18c11f,mutations:_0x56de93,memberID:_0x2be62a}=_0x4f87eb,_0x33d146=_0x56de93[0x0][_0x35c865(0x15b)]['textRanges'];Array[_0x35c865(0x2f8)](_0x33d146)&&_0x33d146[_0x35c865(0x460)]>0x0&&((_0x3fb9ad=(_0x8ff8eb=this[_0x35c865(0x1e5)])['onSyncEditingCollabCursor'])==null||_0x3fb9ad['call'](_0x8ff8eb,{'unitID':_0x18c11f,'memberID':_0x2be62a,'textRanges':_0x33d146}));}}[_0x57f41f(0x26b)](){const _0x339a88=_0x57f41f;this[_0x339a88(0x190)]['updateOfflineData'](this[_0x339a88(0x36e)],this[_0x339a88(0x221)],this[_0x339a88(0x47c)],this['_pendingMutations']);}[_0x57f41f(0x2c1)](){const _0xafbf8e=_0x57f41f;return this[_0xafbf8e(0x51e)][_0xafbf8e(0x52e)](this[_0xafbf8e(0x36e)]);}[_0x57f41f(0x28b)](){const _0x196dce=_0x57f41f;this['_revisionService']['incrementRevOfUnit'](this[_0x196dce(0x36e)]);}[_0x57f41f(0x26a)](_0x372bca){const _0x25121c=_0x57f41f;var _0x2099ff;const _0x3559a2=this[_0x25121c(0x194)](_0x372bca),_0x42b00f=a[_0x25121c(0x476)](_0x3559a2['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x42b00f[_0x25121c(0x16c)])throw _0x42b00f[_0x25121c(0x542)]instanceof Error?_0x42b00f['error']:new Error((_0x2099ff=_0x42b00f[_0x25121c(0x542)])!=null?_0x2099ff:_0x25121c(0x348));this[_0x25121c(0x3d1)](_0x3559a2),this[_0x25121c(0x1af)](_0x372bca),this[_0x25121c(0x4cb)](_0x3559a2),this['_syncEditingCollabCursor'](_0x3559a2),this[_0x25121c(0x28b)]();}}let ie=class extends J{constructor(_0x5eb050,_0x4e3271,_0x3ed136,_0x2f06a7,_0x1f9aeb,_0x2ac52c,_0x2c31c7,_0x217ccf,_0x34856a,_0x505ad3){const _0x42f1c4=_0x57f41f;super(_0x5eb050,_0x4e3271,null,[],_0x3ed136,_0x217ccf,_0x2c31c7,_0x2f06a7,_0x1f9aeb),u(this,_0x42f1c4(0x2d7),_0x42f1c4(0x4d0)),(this[_0x42f1c4(0x331)]=_0x2ac52c,this[_0x42f1c4(0x181)]=_0x34856a,this[_0x42f1c4(0x365)]=_0x505ad3);}[_0x57f41f(0x4fa)](_0x23956c){const _0x4a9a95=_0x57f41f,_0x21af26=this[_0x4a9a95(0x331)][_0x4a9a95(0x4eb)](k,this[_0x4a9a95(0x36e)],this['type'],[_0x23956c],this[_0x4a9a95(0x1e5)]);return _0x21af26[_0x4a9a95(0x23a)](),_0x21af26['_updateLocalCache'](),_0x21af26;}['onRemoteChangeset'](_0x13233a){const _0x3f0272=_0x57f41f;if(this[_0x3f0272(0x54e)](_0x13233a))return this['_injector'][_0x3f0272(0x4eb)](x,this[_0x3f0272(0x36e)],this[_0x3f0272(0x221)],null,[],null,[_0x13233a],this[_0x3f0272(0x1e5)]);try{const _0x28963c=this[_0x3f0272(0x365)][_0x3f0272(0x323)](_0x13233a,[Fs]);if(_[_0x3f0272(0x41b)](_0x28963c)){const {c1Prime:_0x46c4ca}=_0x28963c;return this['_executeRemoteChangeset'](_0x46c4ca),this;}throw _0x28963c[_0x3f0272(0x542)];}catch(_0x382f94){return this['_logService'][_0x3f0272(0x542)](_0x382f94),this[_0x3f0272(0x32c)](!0x1);}}[_0x57f41f(0x32c)](_0x10ac23){const _0x199582=_0x57f41f;return this[_0x199582(0x331)]['createInstance'](F,this[_0x199582(0x36e)],this['type'],null,[],this['_handler'],_0x10ac23);}[_0x57f41f(0x13d)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x57f41f(0x4f9)](){const _0x258df3=_0x57f41f;return this['_injector'][_0x258df3(0x4eb)](G,this[_0x258df3(0x36e)],this[_0x258df3(0x221)],null,[],this[_0x258df3(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){const _0x1d329d=_0x57f41f;throw new Error(_0x1d329d(0x1cc));}['fetchMiss'](){const _0x37b1b0=_0x57f41f,_0x1e596c=this[_0x37b1b0(0x51e)]['getCurrentRevOfUnit'](this[_0x37b1b0(0x36e)]);return this[_0x37b1b0(0x1e5)][_0x37b1b0(0x52f)]({'from':_0x1e596c,'to':0x0}),this[_0x37b1b0(0x331)]['createInstance'](x,this[_0x37b1b0(0x36e)],this[_0x37b1b0(0x221)],null,[],null,[],this[_0x37b1b0(0x1e5)]);}};ie=z([m(0x3,a['Inject'](_[_0x57f41f(0x441)])),m(0x4,a['Inject'](exports[_0x57f41f(0x4a8)])),m(0x5,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),m(0x6,a[_0x57f41f(0x24e)]),m(0x7,a[_0x57f41f(0x178)]),m(0x8,a[_0x57f41f(0x162)]),m(0x9,_[_0x57f41f(0x127)])],ie);let k=class extends J{constructor(_0x282731,_0x597e6d,_0x2302f1,_0x1db769,_0x42d9f1,_0x1fe881,_0x35646a,_0x5f3da2,_0x111d89,_0x1a428b,_0x47e9ca,_0x320bc0,_0x5537f0,_0x278537){const _0x2f9c7f=_0x57f41f;super(_0x282731,_0x597e6d,null,_0x2302f1,_0x1db769,_0x1a428b,_0x278537,_0x1fe881,_0x35646a),u(this,_0x2f9c7f(0x2d7),_0x2f9c7f(0x305)),u(this,_0x2f9c7f(0x25b),null),u(this,_0x2f9c7f(0x35d),null),(this[_0x2f9c7f(0x331)]=_0x42d9f1,this['_memberService']=_0x5f3da2,this[_0x2f9c7f(0x181)]=_0x111d89,this['_configService']=_0x47e9ca,this['_transformService']=_0x320bc0,this['_univerInstanceService']=_0x5537f0);}[_0x57f41f(0x4fa)](_0x308f24){const _0x7c0813=_0x57f41f;return this[_0x7c0813(0x248)][_0x7c0813(0x2d0)](_0x308f24),this[_0x7c0813(0x26b)](),this;}[_0x57f41f(0x4a5)](_0xed48d6){const _0x93bbcd=_0x57f41f;if(this['_checkMissing'](_0xed48d6))return this['_clearScheduledTask'](),this[_0x93bbcd(0x331)][_0x93bbcd(0x4eb)](x,this[_0x93bbcd(0x36e)],this[_0x93bbcd(0x221)],null,this[_0x93bbcd(0x248)],null,[_0xed48d6],this['_handler']);try{const _0x2ae520=this[_0x93bbcd(0x365)]['transformMutationsWithChangeset'](_0xed48d6,this['_pendingMutations']);if(_[_0x93bbcd(0x41b)](_0x2ae520)){const {c1Prime:_0x370c66,m2Prime:_0x187e27}=_0x2ae520;this[_0x93bbcd(0x26a)](_0x370c66);const _0x33aea3=this[_0x93bbcd(0x331)]['createInstance'](k,this['unitID'],this[_0x93bbcd(0x221)],_0x187e27,this[_0x93bbcd(0x1e5)]);return this['_clearScheduledTask'](),_0x33aea3[_0x93bbcd(0x23a)](this[_0x93bbcd(0x25b)]?Math[_0x93bbcd(0x1d5)](0x0,new Date()[_0x93bbcd(0x2c2)]()-this[_0x93bbcd(0x25b)]):this[_0x93bbcd(0x302)]()),_0x33aea3;}throw _0x2ae520['error'];}catch(_0x198c72){return this[_0x93bbcd(0x181)][_0x93bbcd(0x542)](_0x198c72),this[_0x93bbcd(0x32c)](!0x1);}}[_0x57f41f(0x13d)](){const _0x18c4b2=_0x57f41f;throw new Error(_0x18c4b2(0x1e9));}[_0x57f41f(0x2bd)](){const _0x9afcd5=_0x57f41f;throw new Error(_0x9afcd5(0x527));}[_0x57f41f(0x4f9)](){const _0x597885=_0x57f41f;return this[_0x597885(0x31c)](),this[_0x597885(0x331)][_0x597885(0x4eb)](G,this[_0x597885(0x36e)],this[_0x597885(0x221)],null,this[_0x597885(0x248)],this[_0x597885(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}['_schedule'](_0x6f369b){const _0x49b7fc=_0x57f41f,_0x220b2e=_0x6f369b!=null?_0x6f369b:this[_0x49b7fc(0x302)]();this[_0x49b7fc(0x25b)]=new Date()[_0x49b7fc(0x2c2)](),this[_0x49b7fc(0x35d)]=window['setTimeout'](()=>{const _0x647cb0=_0x49b7fc;this['_clearScheduledTask']();let _0x253036=null;switch(this[_0x647cb0(0x221)]){case $['UNIVER_SHEET']:{_0x253036=at(this[_0x647cb0(0x248)],this['unitID'],this[_0x647cb0(0x131)],this[_0x647cb0(0x51e)],this[_0x647cb0(0x384)]);break;}case $[_0x647cb0(0x1a7)]:{this[_0x647cb0(0x248)][_0x647cb0(0x394)](_0x14eb3b=>_0x14eb3b['id']===se[_0x647cb0(0x286)]['id'])?_0x253036=Ws(this['_pendingMutations'],this[_0x647cb0(0x36e)],this[_0x647cb0(0x131)],this[_0x647cb0(0x51e)],this['_memberService']):_0x253036=at(this[_0x647cb0(0x248)],this[_0x647cb0(0x36e)],this[_0x647cb0(0x131)],this['_revisionService'],this[_0x647cb0(0x384)]);break;}default:throw new Error(_0x647cb0(0x4fd)+this[_0x647cb0(0x221)]+_0x647cb0(0x1c0));}const {changeset:_0x2c7a07,pendingMutations:_0x2667f8}=_0x253036;this[_0x647cb0(0x1e5)][_0x647cb0(0x188)](_0x2c7a07);const _0x5d5b5e=_0x2667f8[_0x647cb0(0x460)]?this['_injector'][_0x647cb0(0x4eb)](B,this['unitID'],this['type'],_0x2c7a07,_0x2667f8,this[_0x647cb0(0x1e5)]):this[_0x647cb0(0x331)][_0x647cb0(0x4eb)](W,this[_0x647cb0(0x36e)],this['type'],_0x2c7a07,this['_handler']);_0x5d5b5e[_0x647cb0(0x26b)](),this[_0x647cb0(0x1e5)][_0x647cb0(0x396)](this,_0x5d5b5e);},_0x220b2e);}['_getSendChangesetTimeout'](){const _0x9ef613=_0x57f41f;var _0x48d478;const _0x423115=this[_0x9ef613(0x172)][_0x9ef613(0x37f)](L);return(_0x48d478=_0x423115==null?void 0x0:_0x423115['sendChangesetTimeout'])!=null?_0x48d478:Jt;}[_0x57f41f(0x518)](){const _0x1c983e=_0x57f41f;throw new Error(_0x1c983e(0x4f3));}[_0x57f41f(0x31c)](){const _0x296341=_0x57f41f;this[_0x296341(0x35d)]!=null&&(clearTimeout(this[_0x296341(0x35d)]),this['_sendingTimer']=null);}[_0x57f41f(0x32c)](_0x38927e){const _0x37970a=_0x57f41f;return this[_0x37970a(0x31c)](),this[_0x37970a(0x331)][_0x37970a(0x4eb)](F,this[_0x37970a(0x36e)],this[_0x37970a(0x221)],null,this['_pendingMutations'],this[_0x37970a(0x1e5)],_0x38927e);}};k=z([m(0x4,a[_0x57f41f(0x1ec)](a['Injector'])),m(0x5,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),m(0x6,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x4a8)])),m(0x7,a['Inject'](q)),m(0x8,a[_0x57f41f(0x162)]),m(0x9,a[_0x57f41f(0x178)]),m(0xa,a[_0x57f41f(0x435)]),m(0xb,_[_0x57f41f(0x127)]),m(0xc,a['IUniverInstanceService']),m(0xd,a[_0x57f41f(0x24e)])],k);let W=class extends J{constructor(_0x33d348,_0x116188,_0x514e9f,_0x2cb3d8,_0x403c46,_0x4f37cc,_0x5cdada,_0x5de137,_0xf57d75,_0x962e92,_0x210fe6){const _0xc6a19f=_0x57f41f;super(_0x33d348,_0x116188,_0x514e9f,[],_0x2cb3d8,_0x5de137,_0x210fe6,_0x4f37cc,_0x5cdada),u(this,_0xc6a19f(0x2d7),'awaiting'),(this['_injector']=_0x403c46,this[_0xc6a19f(0x181)]=_0xf57d75,this[_0xc6a19f(0x365)]=_0x962e92);}[_0x57f41f(0x4fa)](_0xec2fb9){const _0xffe252=_0x57f41f,_0x2e7afa=this[_0xffe252(0x331)][_0xffe252(0x4eb)](B,this[_0xffe252(0x36e)],this[_0xffe252(0x221)],this[_0xffe252(0x47c)],[_0xec2fb9],this[_0xffe252(0x1e5)]);return _0x2e7afa[_0xffe252(0x26b)](),_0x2e7afa;}[_0x57f41f(0x4a5)](_0x371365){const _0x559c7b=_0x57f41f;if(this[_0x559c7b(0x54e)](_0x371365))return this[_0x559c7b(0x331)][_0x559c7b(0x4eb)](x,this[_0x559c7b(0x36e)],this[_0x559c7b(0x221)],this[_0x559c7b(0x47c)],[],null,[_0x371365],this[_0x559c7b(0x1e5)]);try{const _0x3357c4=this[_0x559c7b(0x365)]['transformChangesets']([_0x371365],[this[_0x559c7b(0x47c)]],!0x1);if(_[_0x559c7b(0x45f)](_0x3357c4)){const {c1Prime:_0x2c2e2e,c2Prime:_0x247429}=_0x3357c4;this[_0x559c7b(0x26a)](_0x2c2e2e[0x0]),_0x247429[0x0]['baseRev']=this[_0x559c7b(0x2c1)]();const _0x38f686=this['_injector']['createInstance'](W,this['unitID'],this[_0x559c7b(0x221)],_0x247429[0x0],this[_0x559c7b(0x1e5)]);return _0x38f686[_0x559c7b(0x26b)](),_0x38f686;}return this[_0x559c7b(0x32c)](!0x1);}catch(_0x109e6f){return this[_0x559c7b(0x181)][_0x559c7b(0x542)](_0x109e6f),this[_0x559c7b(0x32c)](!0x1);}}[_0x57f41f(0x13d)](_0x24c724){const _0x2c5068=_0x57f41f,_0x489872=this[_0x2c5068(0x51e)][_0x2c5068(0x52e)](this[_0x2c5068(0x36e)]);if(_0x24c724[_0x2c5068(0x308)]<_0x489872-0x1)return this;if(this[_0x2c5068(0x54e)](_0x24c724))return this[_0x2c5068(0x331)][_0x2c5068(0x4eb)](x,this[_0x2c5068(0x36e)],this[_0x2c5068(0x221)],null,[],this['_awaitingChangeset'],[],this[_0x2c5068(0x1e5)]);this['_incrementRevisionNumber']();const _0x57e2c6=this['_injector']['createInstance'](ie,this['unitID'],this[_0x2c5068(0x221)],this[_0x2c5068(0x1e5)]);return _0x57e2c6[_0x2c5068(0x26b)](),_0x57e2c6;}[_0x57f41f(0x2bd)](_0x1655e2){const _0x1b2e98=_0x57f41f;return this[_0x1b2e98(0x32c)](!!(_0x1655e2!=null&&_0x1655e2[_0x1b2e98(0x245)]));}[_0x57f41f(0x4f9)](){const _0x5ad230=_0x57f41f;return this[_0x5ad230(0x331)][_0x5ad230(0x4eb)](G,this[_0x5ad230(0x36e)],this['type'],this[_0x5ad230(0x47c)],[],this[_0x5ad230(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){const _0x27ad65=_0x57f41f;this[_0x27ad65(0x1e5)][_0x27ad65(0x188)](this[_0x27ad65(0x47c)]);}['_onConflict'](_0x300098){const _0x561d1b=_0x57f41f;return this[_0x561d1b(0x331)][_0x561d1b(0x4eb)](F,this[_0x561d1b(0x36e)],this[_0x561d1b(0x221)],this[_0x561d1b(0x47c)],[],this['_handler'],_0x300098);}};W=z([m(0x4,a['Inject'](a[_0x57f41f(0x410)])),m(0x5,a[_0x57f41f(0x1ec)](_['RevisionService'])),m(0x6,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),m(0x7,a['ICommandService']),m(0x8,a['ILogService']),m(0x9,_[_0x57f41f(0x127)]),m(0xa,a[_0x57f41f(0x24e)])],W);let B=class extends J{constructor(_0x1edb5b,_0x1667e1,_0x39c0be,_0x3e8dd3,_0x52ce90,_0x3fcfcf,_0x38a507,_0x53cb91,_0x4e6c29,_0x2906f4,_0x4b168b,_0x3acd3d){const _0x547aaf=_0x57f41f;super(_0x1edb5b,_0x1667e1,_0x39c0be,_0x3e8dd3,_0x52ce90,_0x4e6c29,_0x3acd3d,_0x38a507,_0x53cb91),u(this,_0x547aaf(0x2d7),_0x547aaf(0x3fa)),(this[_0x547aaf(0x331)]=_0x3fcfcf,this[_0x547aaf(0x181)]=_0x2906f4,this[_0x547aaf(0x365)]=_0x4b168b);}[_0x57f41f(0x4fa)](_0x326b99){const _0x38a0d2=_0x57f41f;return this[_0x38a0d2(0x248)]['push'](_0x326b99),this;}[_0x57f41f(0x4a5)](_0x2b4856){const _0x308538=_0x57f41f;if(this[_0x308538(0x54e)](_0x2b4856))return this[_0x308538(0x331)]['createInstance'](x,this[_0x308538(0x36e)],this[_0x308538(0x221)],this[_0x308538(0x47c)],this[_0x308538(0x248)],null,[_0x2b4856],this[_0x308538(0x1e5)]);try{const _0x2884e3=this[_0x308538(0x365)]['transformChangesets']([_0x2b4856],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x2884e3)){const {c1Prime:_0x4e8f39,c2Prime:_0x32e286}=_0x2884e3,_0x17ddbb=this[_0x308538(0x365)][_0x308538(0x323)](_0x4e8f39[0x0],this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0x17ddbb)){const {c1Prime:_0x2667c9,m2Prime:_0x295722}=_0x17ddbb;return this['_executeRemoteChangeset'](_0x2667c9),_0x32e286[0x0]['baseRev']=this[_0x308538(0x2c1)](),this[_0x308538(0x331)][_0x308538(0x4eb)](B,this['unitID'],this[_0x308538(0x221)],_0x32e286[0x0],_0x295722,this[_0x308538(0x1e5)]);}throw _0x17ddbb[_0x308538(0x542)];}throw _0x2884e3['error'];}catch(_0x359d32){return this['_logService'][_0x308538(0x542)](_0x359d32),this[_0x308538(0x32c)](!0x1);}}['onRemoteAck'](_0x2eed54){const _0x4e7f09=_0x57f41f;if(this[_0x4e7f09(0x54e)](_0x2eed54))return this[_0x4e7f09(0x331)][_0x4e7f09(0x4eb)](x,this['unitID'],this[_0x4e7f09(0x221)],null,this[_0x4e7f09(0x248)],this[_0x4e7f09(0x47c)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x47b646=this[_0x4e7f09(0x331)]['createInstance'](k,this['unitID'],this[_0x4e7f09(0x221)],this['_pendingMutations'],this['_handler']);return _0x47b646[_0x4e7f09(0x23a)](),_0x47b646['_updateLocalCache'](),_0x47b646;}[_0x57f41f(0x2bd)](_0x332804){const _0x592a1a=_0x57f41f;return this[_0x592a1a(0x32c)](!!(_0x332804!=null&&_0x332804[_0x592a1a(0x245)]));}['toggleOffline'](){const _0x439669=_0x57f41f;return this[_0x439669(0x331)][_0x439669(0x4eb)](G,this[_0x439669(0x36e)],this['type'],this[_0x439669(0x47c)],this[_0x439669(0x248)],this[_0x439669(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){const _0x2327e8=_0x57f41f;this[_0x2327e8(0x1e5)][_0x2327e8(0x188)](this[_0x2327e8(0x47c)]);}['_onConflict'](_0x5e2f33){const _0xa4da69=_0x57f41f;return this[_0xa4da69(0x331)][_0xa4da69(0x4eb)](F,this[_0xa4da69(0x36e)],this[_0xa4da69(0x221)],null,this[_0xa4da69(0x248)],this[_0xa4da69(0x1e5)],_0x5e2f33);}};B=z([m(0x5,a['Inject'](a[_0x57f41f(0x410)])),m(0x6,a['Inject'](_[_0x57f41f(0x441)])),m(0x7,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),m(0x8,a[_0x57f41f(0x178)]),m(0x9,a[_0x57f41f(0x162)]),m(0xa,_[_0x57f41f(0x127)]),m(0xb,a['IUndoRedoService'])],B);let F=class extends J{constructor(_0x3ffd26,_0x3559fe,_0x58b0e9,_0x54e771,_0x45b8ed,_0x18fcd3=!0x1,_0x3d2d60,_0x262828,_0x5e3b29,_0x1dcdb4,_0x363912,_0x41e953,_0x297d1d){const _0x42b150=_0x57f41f;super(_0x3ffd26,_0x3559fe,_0x58b0e9,_0x54e771,_0x45b8ed,_0x262828,_0x5e3b29,_0x363912,_0x1dcdb4),u(this,'status',_0x42b150(0x22a)),(this['_isPermissionRej']=_0x18fcd3,this['_permissionService']=_0x3d2d60,this['_localeService']=_0x41e953,this[_0x42b150(0x49a)]=_0x297d1d,this[_0x42b150(0x2c4)](),this[_0x42b150(0x532)](),this['_disableEditing']());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x57f41f(0x13d)](){return this;}['onRemoteRej'](){return this;}[_0x57f41f(0x4f9)](){return this;}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x57f41f(0x532)](){const _0x715b51=_0x57f41f;this[_0x715b51(0x190)][_0x715b51(0x4dc)](this[_0x715b51(0x36e)],this[_0x715b51(0x221)],null,[]);}['_showConflictNotification'](){const _0x546599=_0x57f41f;this['_isPermissionRej']?this[_0x546599(0x49a)][_0x546599(0x375)]({'title':this[_0x546599(0x3c6)]['t'](_0x546599(0x22f)),'content':this['_localeService']['t']('permission.content'),'type':_0x546599(0x542),'duration':0x0}):this[_0x546599(0x49a)][_0x546599(0x375)]({'title':this[_0x546599(0x3c6)]['t'](_0x546599(0x3ae)),'content':this[_0x546599(0x3c6)]['t'](_0x546599(0x48c)),'type':_0x546599(0x542),'duration':0x0});}['_disableEditing'](){const _0x374d8e=_0x57f41f;this[_0x374d8e(0x1cd)][_0x374d8e(0x2c5)](new C[(_0x374d8e(0x4e0))](this[_0x374d8e(0x36e)])['id'],!0x1);}};F=z([m(0x6,a['Inject'](a[_0x57f41f(0x169)])),m(0x7,a[_0x57f41f(0x178)]),m(0x8,a['IUndoRedoService']),m(0x9,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x4a8)])),m(0xa,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),m(0xb,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),m(0xc,A[_0x57f41f(0x2d1)])],F);let G=class extends J{constructor(_0x1d9655,_0x186b0c,_0x2e690f,_0x21faf0,_0x2ae16a,_0x529cab,_0x4922c9,_0xb36dc8,_0x64bca,_0xfafd1a){const _0x295679=_0x57f41f;super(_0x1d9655,_0x186b0c,_0x2e690f,_0x21faf0,_0x2ae16a,_0x64bca,_0xfafd1a,_0x4922c9,_0xb36dc8),u(this,_0x295679(0x2d7),_0x295679(0x341)),this[_0x295679(0x331)]=_0x529cab;}['appendMutation'](_0x1a58bf){const _0x29c0af=_0x57f41f;return this[_0x29c0af(0x248)]['push'](_0x1a58bf),this[_0x29c0af(0x26b)](),this;}[_0x57f41f(0x4a5)](_0x4d22db){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x57f41f(0x13d)](){const _0x447b55=_0x57f41f;throw new Error(_0x447b55(0x45b));}[_0x57f41f(0x2bd)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x57f41f(0x4f9)](){return this;}[_0x57f41f(0x3f6)](){const _0x4e08da=_0x57f41f,{_injector:_0x9f61ab,_pendingMutations:_0x2fb764,_awaitingChangeset:_0xd47b47,unitID:_0x2b9d7d,_handler:_0x24760c,type:_0x22ceac}=this,_0x2ee948=Ut(_0x9f61ab,_0x2b9d7d,_0x22ceac,_0xd47b47,_0x2fb764,_0x24760c);return _0x2ee948 instanceof k?_0x2ee948[_0x4e08da(0x23a)]():(_0x2ee948 instanceof B||_0x2ee948 instanceof W)&&_0x2ee948[_0x4e08da(0x518)](),_0x2ee948;}[_0x57f41f(0x518)](){const _0x3d90e5=_0x57f41f;throw new Error(_0x3d90e5(0x499));}};G=z([m(0x5,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),m(0x6,a[_0x57f41f(0x1ec)](_['RevisionService'])),m(0x7,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x4a8)])),m(0x8,a['ICommandService']),m(0x9,a['IUndoRedoService'])],G);let x=class extends J{constructor(_0x55a952,_0x3f0e1b,_0xef856f,_0x484977,_0x4c9acc,_0x56a0cf,_0x2d5c05,_0x2228ec,_0x2e478a,_0x350f24,_0x4eb90c,_0x16bef1,_0x1bb9b2,_0x406131){const _0x49cdfd=_0x57f41f;super(_0x55a952,_0x3f0e1b,_0xef856f,_0x484977,_0x2d5c05,_0x16bef1,_0x1bb9b2,_0x2e478a,_0x350f24),u(this,'status',_0x49cdfd(0x454)),(this[_0x49cdfd(0x155)]=_0x4c9acc,this[_0x49cdfd(0x4f4)]=_0x56a0cf,this['_injector']=_0x2228ec,this[_0x49cdfd(0x181)]=_0x4eb90c,this[_0x49cdfd(0x365)]=_0x406131);}[_0x57f41f(0x356)](_0xfc562){const _0x3942b5=_0x57f41f;try{const _0x177887=[..._0xfc562,...this['_queuedRemoteChangesets']],_0x57dd61=[this['_awaitingChangeset']||this[_0x3942b5(0x155)]][_0x3942b5(0x222)](_0x8d76a9=>!!_0x8d76a9);let _0x1c3426,_0x433061;if(_0x57dd61[_0x3942b5(0x460)]){const _0x1d6a0b=this[_0x3942b5(0x365)]['transformChangesets'](_0x177887,_0x57dd61,!0x1);if(!_[_0x3942b5(0x45f)](_0x1d6a0b))throw _0x1d6a0b[_0x3942b5(0x542)];_0x1c3426=_0x1d6a0b[_0x3942b5(0x19c)],_0x433061=_0x1d6a0b[_0x3942b5(0x31e)];}else _0x1c3426=_0x177887,_0x433061=[];let _0x4fec02=this[_0x3942b5(0x248)];_0x1c3426[_0x3942b5(0x50c)](_0x184f0f=>{const _0x42c585=_0x3942b5;let _0x3cc82f;if(_0x4fec02['length']){const _0x5c6434=this['_transformService'][_0x42c585(0x323)](_0x184f0f,_0x4fec02);if(!_[_0x42c585(0x41b)](_0x5c6434))throw _0x5c6434['error'];_0x3cc82f=_0x5c6434['c1Prime'],_0x4fec02=_0x5c6434['m2Prime'];}else _0x3cc82f=_0x184f0f;this[_0x42c585(0x26a)](_0x3cc82f);}),this[_0x3942b5(0x155)]&&this['_incrementRevisionNumber'](),this[_0x3942b5(0x47c)]&&_0x433061[_0x3942b5(0x460)]&&(_0x433061[0x0]['baseRev']=this[_0x3942b5(0x2c1)]());let _0x580baa;if(this[_0x3942b5(0x47c)]&&_0x4fec02[_0x3942b5(0x460)]!==0x0)_0x580baa=this[_0x3942b5(0x331)]['createInstance'](B,this[_0x3942b5(0x36e)],this[_0x3942b5(0x221)],_0x433061[0x0],_0x4fec02,this[_0x3942b5(0x1e5)]);else{if(this[_0x3942b5(0x47c)]&&_0x4fec02[_0x3942b5(0x460)]===0x0)_0x433061[0x0]['baseRev']=this[_0x3942b5(0x2c1)](),_0x580baa=this[_0x3942b5(0x331)][_0x3942b5(0x4eb)](W,this[_0x3942b5(0x36e)],this[_0x3942b5(0x221)],_0x433061[0x0],this[_0x3942b5(0x1e5)]);else{if(_0x4fec02[_0x3942b5(0x460)]!==0x0){const _0x30d8d0=this[_0x3942b5(0x331)][_0x3942b5(0x4eb)](k,this['unitID'],this[_0x3942b5(0x221)],_0x4fec02,this[_0x3942b5(0x1e5)]);_0x30d8d0[_0x3942b5(0x23a)](),_0x580baa=_0x30d8d0;}else _0x580baa=this['_injector'][_0x3942b5(0x4eb)](ie,this[_0x3942b5(0x36e)],this[_0x3942b5(0x221)],this[_0x3942b5(0x1e5)]);}}return _0x580baa[_0x3942b5(0x26b)](),_0x580baa;}catch(_0x5c1087){return this[_0x3942b5(0x181)][_0x3942b5(0x542)](_0x3942b5(0x379),_0x3942b5(0x141),_0x5c1087),this[_0x3942b5(0x331)]['createInstance'](F,this['unitID'],this['type'],this[_0x3942b5(0x47c)],this[_0x3942b5(0x248)],this['_handler'],!0x1);}}['resend'](){const _0x24d2dc=_0x57f41f;throw new Error(_0x24d2dc(0x1f4));}[_0x57f41f(0x4fa)](_0x1596bd){const _0x3d691f=_0x57f41f;return this[_0x3d691f(0x248)][_0x3d691f(0x2d0)](_0x1596bd),this;}[_0x57f41f(0x4a5)](_0x484ebd){const _0x51bea1=_0x57f41f;return this[_0x51bea1(0x4f4)][_0x51bea1(0x2d0)](_0x484ebd),this;}['onRemoteAck'](_0x349532){const _0x501c1b=_0x57f41f;if(this['_awaitingChangeset'])return this[_0x501c1b(0x155)]=this[_0x501c1b(0x47c)],this[_0x501c1b(0x47c)]=null,this;throw new Error(_0x501c1b(0x1d8));}['onRemoteRej'](_0x51d1de){return this['_onConflict'](!!(_0x51d1de!=null&&_0x51d1de['isPermissionRej']));}[_0x57f41f(0x4f9)](){const _0x16eb04=_0x57f41f;return this[_0x16eb04(0x331)]['createInstance'](G,this['unitID'],this[_0x16eb04(0x221)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x16eb04(0x1e5)]);}['toggleOnline'](){return this;}[_0x57f41f(0x32c)](_0x508d5f){const _0x317a3e=_0x57f41f;return this[_0x317a3e(0x331)]['createInstance'](F,this[_0x317a3e(0x36e)],this[_0x317a3e(0x221)],this[_0x317a3e(0x47c)],this[_0x317a3e(0x248)],this[_0x317a3e(0x1e5)],_0x508d5f);}};x=z([m(0x7,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),m(0x8,a['Inject'](_['RevisionService'])),m(0x9,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),m(0xa,a[_0x57f41f(0x162)]),m(0xb,a[_0x57f41f(0x178)]),m(0xc,a[_0x57f41f(0x24e)]),m(0xd,_[_0x57f41f(0x127)])],x);function Ut(_0x1e1ba9,_0x26cb7f,_0x3919f4,_0x144e7f,_0x23cd0b,_0x33361f){const _0xb75605=_0x57f41f;return _0x144e7f&&_0x23cd0b[_0xb75605(0x460)]?_0x1e1ba9[_0xb75605(0x4eb)](B,_0x26cb7f,_0x3919f4,_0x144e7f,_0x23cd0b,_0x33361f):_0x144e7f?_0x1e1ba9[_0xb75605(0x4eb)](W,_0x26cb7f,_0x3919f4,_0x144e7f,_0x33361f):_0x23cd0b[_0xb75605(0x460)]?_0x1e1ba9[_0xb75605(0x4eb)](k,_0x26cb7f,_0x3919f4,_0x23cd0b,_0x33361f):_0x1e1ba9['createInstance'](ie,_0x26cb7f,_0x3919f4,_0x33361f);}var Ks=Object[_0x57f41f(0x522)],Xs=Object[_0x57f41f(0x191)],ze=(_0x4491f8,_0x4a0f20,_0x3e73e9,_0x3a0245)=>{for(var _0x509773=_0x3a0245>0x1?void 0x0:_0x3a0245?Xs(_0x4a0f20,_0x3e73e9):_0x4a0f20,_0x4ff453=_0x4491f8['length']-0x1,_0x53fbc6;_0x4ff453>=0x0;_0x4ff453--)(_0x53fbc6=_0x4491f8[_0x4ff453])&&(_0x509773=(_0x3a0245?_0x53fbc6(_0x4a0f20,_0x3e73e9,_0x509773):_0x53fbc6(_0x509773))||_0x509773);return _0x3a0245&&_0x509773&&Ks(_0x4a0f20,_0x3e73e9,_0x509773),_0x509773;},I=(_0x182b4f,_0x2a865b)=>(_0x4ce9fb,_0x308e23)=>_0x2a865b(_0x4ce9fb,_0x308e23,_0x182b4f);exports[_0x57f41f(0x500)]=class extends a[_0x57f41f(0x1c5)]{constructor(_0x276f3,_0x3aa281,_0x41fc0f,_0x12e99f,_0x3c35f9,_0x42739b,_0x2cf555,_0x5c7cb6,_0x167acf,_0x111666,_0x30da48,_0x1cb088,_0x2cb282){const _0x24cba7=_0x57f41f;super(),u(this,'_state$',new v[(_0x24cba7(0x3ab))](null)),u(this,_0x24cba7(0x17a),this[_0x24cba7(0x1ed)][_0x24cba7(0x41e)]()),u(this,_0x24cba7(0x3c2)),u(this,_0x24cba7(0x380),!0x1),u(this,_0x24cba7(0x16a),''),u(this,_0x24cba7(0x1e7),0x0),u(this,'status$',this[_0x24cba7(0x17a)]['pipe'](v[_0x24cba7(0x366)](_0x15305e=>_0x15305e?_0x15305e[_0x24cba7(0x2d7)]:U[_0x24cba7(0x2d2)]),v[_0x24cba7(0x320)](0x1))),u(this,'_transitionLocked',!0x1),u(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x276f3,this['session']=_0x3aa281,this[_0x24cba7(0x1b2)]=_0x41fc0f,this[_0x24cba7(0x331)]=_0x12e99f,this[_0x24cba7(0x190)]=_0x3c35f9,this['_compressMutationService']=_0x42739b,this[_0x24cba7(0x3c6)]=_0x2cf555,this[_0x24cba7(0x51e)]=_0x5c7cb6,this[_0x24cba7(0x181)]=_0x167acf,this[_0x24cba7(0x547)]=_0x111666,this[_0x24cba7(0x4b9)]=_0x30da48,this['_permissionService']=_0x1cb088,this['_singleActiveUnitService']=_0x2cb282);}get[_0x57f41f(0x1d9)](){const _0x6f1bf4=_0x57f41f;return this[_0x6f1bf4(0x3c2)];}async[_0x57f41f(0x350)](){const _0x14e2e5=_0x57f41f;if(this['state'])throw new Error(_0x14e2e5(0x1f8));await this['_init']();}[_0x57f41f(0x4f1)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x1b3c06=_0x1fa7;this[_0x1b3c06(0x380)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x57f41f(0x306)](_0x334bad){const _0x28a4f1=_0x57f41f;this[_0x28a4f1(0x3c2)]=_0x334bad,this[_0x28a4f1(0x1ed)][_0x28a4f1(0x49c)](_0x334bad);}async[_0x57f41f(0x326)](){const _0x3bde99=_0x57f41f;var _0x41c4ed;this[_0x3bde99(0x306)](await this['_createInitialState']()),this[_0x3bde99(0x452)]&&((_0x41c4ed=this[_0x3bde99(0x452)])==null||_0x41c4ed['editingUnit'](this['unitID']),this[_0x3bde99(0x1e2)](this[_0x3bde99(0x452)][_0x3bde99(0x1e1)](this[_0x3bde99(0x36e)])[_0x3bde99(0x3ee)](_0x535654=>{const _0x29bc27=_0x3bde99;this[_0x29bc27(0x181)][_0x29bc27(0x2e5)]('[CollaborationEntity]',_0x29bc27(0x40f),_0x535654),_0x535654===Dt[_0x29bc27(0x53e)]?(this['_messageService'][_0x29bc27(0x375)]({'content':this[_0x29bc27(0x3c6)]['t'](_0x29bc27(0x1d3)),'type':X[_0x29bc27(0x1cf)][_0x29bc27(0x1b4)]}),this['_permissionService']['updatePermissionPoint'](new C[(_0x29bc27(0x4e0))](this[_0x29bc27(0x36e)])['id'],!0x1)):this[_0x29bc27(0x1cd)][_0x29bc27(0x2c5)](new C[(_0x29bc27(0x4e0))](this['unitID'])['id'],!0x0);})));let _0x1cda47=!0x1;return this[_0x3bde99(0x1e2)](this['session'][_0x3bde99(0x1bd)][_0x3bde99(0x3ee)](_0x21171f=>{const _0x4241fd=_0x3bde99;_0x21171f===H[_0x4241fd(0x436)]?this[_0x4241fd(0x284)](_0x1cda47):_0x21171f===H[_0x4241fd(0x2d2)]&&(_0x1cda47=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x3bde99(0x3dd)][_0x3bde99(0x438)][_0x3bde99(0x3ee)](_0x5642b1=>{const _0x2cdaca=_0x3bde99;try{switch(_0x5642b1[_0x2cdaca(0x538)]){case _[_0x2cdaca(0x48e)]['NEW_CHANGESETS']:{this[_0x2cdaca(0x4c3)](_[_0x2cdaca(0x33b)](_0x5642b1[_0x2cdaca(0x198)]));break;}case _[_0x2cdaca(0x48e)][_0x2cdaca(0x269)]:{this['_onRemoteACK'](_0x5642b1[_0x2cdaca(0x198)]);break;}case _[_0x2cdaca(0x48e)]['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _[_0x2cdaca(0x48e)][_0x2cdaca(0x330)]:{this[_0x2cdaca(0x246)](_0x5642b1[_0x2cdaca(0x198)]['changesets'][_0x2cdaca(0x366)](_0x55ea7c=>_[_0x2cdaca(0x33b)](_0x55ea7c)));break;}case _['CollaborationEvent'][_0x2cdaca(0x4d2)]:this[_0x2cdaca(0x12f)]({'isPermissionRej':!0x0});}}catch(_0x5b0d03){throw console[_0x2cdaca(0x542)](_0x2cdaca(0x325),_0x5b0d03),_0x5b0d03;}})),this[_0x3bde99(0x3c2)];}[_0x57f41f(0x36f)](){const _0x405f60=_0x57f41f;this[_0x405f60(0x418)]=!0x1;}[_0x57f41f(0x370)](){const _0x98698d=_0x57f41f;if(this[_0x98698d(0x418)])throw new Error(_0x98698d(0x377));this[_0x98698d(0x418)]=!0x0;}['_onLocalMutation'](_0x21a6e9){const _0x339e8a=_0x57f41f;this[_0x339e8a(0x370)](),this[_0x339e8a(0x306)](this[_0x339e8a(0x3c2)][_0x339e8a(0x4fa)](_0x21a6e9)),this[_0x339e8a(0x36f)]();}[_0x57f41f(0x4c3)](_0x522ba9){const _0x4014e3=_0x57f41f;if(!(_0x522ba9['revision']<=this[_0x4014e3(0x51e)][_0x4014e3(0x52e)](this['unitID']))){if(this[_0x4014e3(0x380)]){this['_remoteChangesetQueue']['push'](_0x522ba9);return;}this[_0x4014e3(0x2bc)](_0x522ba9);}}['_exhaustRemoteChangesetQueue'](){const _0x276fbb=_0x57f41f;this[_0x276fbb(0x34e)]['forEach'](_0x28adad=>this[_0x276fbb(0x2bc)](_0x28adad)),this['_remoteChangesetQueue']=[];}[_0x57f41f(0x2bc)](_0x152827){const _0x3049d9=_0x57f41f,_0x5e24c7=this[_0x3049d9(0x314)][_0x3049d9(0x267)][_0x3049d9(0x296)](this[_0x3049d9(0x314)][_0x3049d9(0x267)][_0x3049d9(0x1e3)]()['COMPRESS_MUTATION_APPLY'])(_0x152827['mutations'],null)||_0x152827['mutations'],_0x3f0d72={..._0x152827,'mutations':_0x5e24c7};this['_lockTransition'](),this[_0x3049d9(0x306)](this[_0x3049d9(0x3c2)]['onRemoteChangeset'](_0x3f0d72)),this[_0x3049d9(0x36f)]();}[_0x57f41f(0x165)](_0x1d214a){const _0x5d2269=_0x57f41f;this[_0x5d2269(0x370)](),this[_0x5d2269(0x306)](this[_0x5d2269(0x3c2)][_0x5d2269(0x13d)](_0x1d214a)),this['_unlockTransition']();}[_0x57f41f(0x12f)](_0x48bbe7){const _0x3166f9=_0x57f41f;this['_lockTransition'](),this[_0x3166f9(0x306)](this[_0x3166f9(0x3c2)][_0x3166f9(0x2bd)](_0x48bbe7)),this['_unlockTransition']();}[_0x57f41f(0x246)](_0x2cf962){const _0x33cfe3=_0x57f41f;if(!(this[_0x33cfe3(0x3c2)]instanceof x))throw new TypeError(_0x33cfe3(0x3cd));const _0x1738cc=_0x2cf962[_0x33cfe3(0x366)](_0x16fcc3=>{const _0x2833c2=_0x33cfe3,_0x19fef8=this['_compressMutationService'][_0x2833c2(0x267)][_0x2833c2(0x296)](this[_0x2833c2(0x314)]['interceptor'][_0x2833c2(0x1e3)]()[_0x2833c2(0x471)])(_0x16fcc3[_0x2833c2(0x506)],null)||_0x16fcc3['mutations'];return{..._0x16fcc3,'mutations':_0x19fef8};});this[_0x33cfe3(0x370)](),this[_0x33cfe3(0x306)](this[_0x33cfe3(0x3c2)][_0x33cfe3(0x356)](_0x1738cc)),this['_unlockTransition']();}[_0x57f41f(0x49d)](){const _0x1ee596=_0x57f41f;this[_0x1ee596(0x370)](),this[_0x1ee596(0x306)](this[_0x1ee596(0x3c2)][_0x1ee596(0x4f9)]()),this[_0x1ee596(0x36f)]();}[_0x57f41f(0x284)](_0xd8fbd4=!0x1){const _0x33798d=_0x57f41f;this[_0x33798d(0x370)](),this[_0x33798d(0x306)](this[_0x33798d(0x3c2)][_0x33798d(0x3f6)]()),this[_0x33798d(0x36f)]();const _0x3882c3=this[_0x33798d(0x3c2)];_0xd8fbd4&&_0x3882c3 instanceof ie&&(this[_0x33798d(0x370)](),this['_updateState'](_0x3882c3[_0x33798d(0x516)]()),this[_0x33798d(0x36f)]());}async[_0x57f41f(0x29e)](){return new Promise(_0xd61655=>{const _0x41648a=_0x1fa7;this['session'][_0x41648a(0x1bd)][_0x41648a(0x4bb)](v[_0x41648a(0x241)](0x1))[_0x41648a(0x3ee)](async _0x1823e5=>{const _0x18ba7f=_0x41648a;_0xd61655(await this[_0x18ba7f(0x1c3)](_0x1823e5===H[_0x18ba7f(0x436)]));});});}[_0x57f41f(0x52a)](){const _0x46e88b=_0x57f41f,_0x234862=this[_0x46e88b(0x36e)];return{'onStateChange':(_0x5288fb,_0x5d9afe)=>{const _0x23e4a9=_0x46e88b;if(_0x5288fb!==this[_0x23e4a9(0x3c2)])throw new Error(_0x23e4a9(0x403)+_0x5288fb[_0x23e4a9(0x2d7)]+_0x23e4a9(0x1a8)+_0x5d9afe[_0x23e4a9(0x2d7)]+_0x23e4a9(0x288)+this[_0x23e4a9(0x3c2)][_0x23e4a9(0x2d7)]);this[_0x23e4a9(0x306)](_0x5d9afe);},'onSendChangeset':_0x551bef=>{const _0x102a55=_0x46e88b;_0x551bef[_0x102a55(0x31b)]||(_0x551bef['sid']=this[_0x102a55(0x16a)],_0x551bef['reqId']=++this[_0x102a55(0x1e7)]);const _0x470b0a={'eventID':_[_0x102a55(0x48e)][_0x102a55(0x389)],'data':{'unitID':_0x551bef['unitID'],'unitType':this[_0x102a55(0x1b2)],'changeset':_0x551bef,'memberID':this[_0x102a55(0x3dd)][_0x102a55(0x145)]()}};this[_0x102a55(0x3dd)][_0x102a55(0x47b)](_0x470b0a,this[_0x102a55(0x36e)]);},'onMissingChangesets':({from:_0x4fc8d7,to:_0x52db7b})=>{const _0x5698d5=_0x46e88b;this[_0x5698d5(0x181)]['debug']('[CollaborationEntity]',_0x5698d5(0x39f)+_0x4fc8d7+_0x5698d5(0x29f)+_0x52db7b);const _0x1cbf58={'eventID':_[_0x5698d5(0x48e)][_0x5698d5(0x27a)],'data':{'unitID':_0x234862,'unitType':this[_0x5698d5(0x1b2)],'from':_0x4fc8d7,'to':_0x52db7b}};this[_0x5698d5(0x3dd)]['send'](_0x1cbf58,this[_0x5698d5(0x36e)]);}};}async[_0x57f41f(0x1c3)](_0x597736){const _0x2ffafc=_0x57f41f;var _0x3e746d,_0x598800;const _0x8a62a9=await this[_0x2ffafc(0x190)][_0x2ffafc(0x1e0)](this[_0x2ffafc(0x36e)]),_0x22b7ea=(_0x3e746d=_0x8a62a9==null?void 0x0:_0x8a62a9['mutations'])!=null?_0x3e746d:[],_0xa1ee0f=(_0x598800=_0x8a62a9==null?void 0x0:_0x8a62a9[_0x2ffafc(0x47a)])!=null?_0x598800:null,_0x395430=!!(_0xa1ee0f!=null&&_0xa1ee0f[_0x2ffafc(0x31b)])&&!!(_0xa1ee0f!=null&&_0xa1ee0f['reqId']);this[_0x2ffafc(0x16a)]=_0x395430?_0xa1ee0f['sid']:Os(),this[_0x2ffafc(0x1e7)]=_0x395430?_0xa1ee0f[_0x2ffafc(0x40e)]:0x0;const _0x45a7cc=this[_0x2ffafc(0x36e)];try{this['_replayCachedMutations'](_0xa1ee0f,_0x22b7ea);}catch(_0xc4e2bd){this[_0x2ffafc(0x181)][_0x2ffafc(0x542)](_0xc4e2bd);}const _0x2120eb=this['_createHandler']();if(_0x597736){const _0x1de360=Ut(this['_injector'],_0x45a7cc,this['_type'],_0xa1ee0f,_0x22b7ea,_0x2120eb);return _0x1de360 instanceof k?_0x1de360[_0x2ffafc(0x23a)]():(_0x1de360 instanceof B||_0x1de360 instanceof W)&&_0x1de360[_0x2ffafc(0x518)](),_0x1de360;}return this[_0x2ffafc(0x331)][_0x2ffafc(0x4eb)](G,_0x45a7cc,this['_type'],_0xa1ee0f,_0x22b7ea,_0x2120eb);}[_0x57f41f(0x17b)](_0x42ffcf,_0x1cde6c){const _0x4c2000=_0x57f41f;var _0xa1fb3c,_0x3299ee;const _0x35d7dd=this[_0x4c2000(0x314)]['interceptor'][_0x4c2000(0x296)](this['_compressMutationService'][_0x4c2000(0x267)]['getInterceptPoints']()[_0x4c2000(0x471)]);(_0xa1fb3c=_0x35d7dd((_0x42ffcf==null?void 0x0:_0x42ffcf[_0x4c2000(0x506)])||[],null))==null||_0xa1fb3c[_0x4c2000(0x50c)](_0x246ee9=>this['_commandService']['executeCommand'](_0x246ee9['id'],_0x246ee9[_0x4c2000(0x15b)])),(_0x3299ee=_0x35d7dd(_0x1cde6c||[],null))==null||_0x3299ee[_0x4c2000(0x50c)](_0x425704=>this[_0x4c2000(0x547)][_0x4c2000(0x449)](_0x425704['id'],_0x425704['params']));}},exports['CollaborationEntity']=ze([I(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a['Inject'](_[_0x57f41f(0x45a)])),I(0x6,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),I(0x7,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),I(0x8,a[_0x57f41f(0x162)]),I(0x9,a[_0x57f41f(0x178)]),I(0xa,A[_0x57f41f(0x34b)]),I(0xb,a[_0x57f41f(0x169)]),I(0xc,a[_0x57f41f(0x177)](Re))],exports['CollaborationEntity']),exports[_0x57f41f(0x223)]=class extends exports['CollaborationEntity']{constructor(_0x285ab6,_0x1a34d4,_0x26e5a1,_0x9a7082,_0x8b166a,_0x4de861,_0x58b8b7,_0x2c0232,_0x2b7d84,_0x2eaea1,_0x2e9301,_0x159596,_0x4768dd,_0x4eda77,_0x2a1bdc,_0x5723ba,_0x2e3af6){const _0xa15324=_0x57f41f;super(_0x285ab6,_0x26e5a1,_0x1a34d4,_0x9a7082,_0x8b166a,_0x4de861,_0x58b8b7,_0x2c0232,_0x4768dd,_0x4eda77,_0x2a1bdc,_0x5723ba,_0x2e3af6),this['unitID']=_0x285ab6,this['type']=_0x1a34d4,this['_docStateChangeManagerService']=_0x2b7d84,this['_docTransformIMECacheService']=_0x2eaea1,this[_0xa15324(0x1da)]=_0x2e9301,this[_0xa15324(0x2ed)]=_0x159596;}[_0x57f41f(0x52a)](){const _0x507670=_0x57f41f,_0xc9b482=super['_createHandler']();return _0xc9b482[_0x507670(0x307)]=_0x215b13=>this[_0x507670(0x425)]['transformIMECache'](_0x215b13),_0xc9b482[_0x507670(0x230)]=_0x4ba217=>this['_docTransformSelectionsService'][_0x507670(0x357)](_0x4ba217),_0xc9b482[_0x507670(0x43f)]=_0x16da33=>this['_docSyncEditingCollabCursorService'][_0x507670(0x2ff)](_0x16da33),_0xc9b482['onTransformRemoteChangesetByIMECache']=_0x4efe3d=>this[_0x507670(0x425)]['transformRemoteChangeset'](_0x4efe3d),_0xc9b482;}async['_init'](){const _0xcca41a=_0x57f41f,_0x6dc074=await super[_0xcca41a(0x326)]();return this[_0xcca41a(0x2cf)]['docStateChange$'][_0xcca41a(0x4bb)](v[_0xcca41a(0x12b)](this['dispose$']))[_0xcca41a(0x3ee)](_0x1b3935=>{const _0x31de68=_0xcca41a;if(_0x1b3935==null)return;const {unitId:_0x2f118f,redoState:_0x273678,commandId:_0x2bdc9b}=_0x1b3935;if(_0x2f118f!==this[_0x31de68(0x36e)])return;const _0x19ceae={'id':_0x2bdc9b,'type':a[_0x31de68(0x4a7)][_0x31de68(0x385)],'params':{'unitId':_0x2f118f,'actions':_0x273678['actions'],'textRanges':null}};this[_0x31de68(0x252)](_0x19ceae);}),_0x6dc074;}},exports[_0x57f41f(0x223)]=ze([I(0x3,a['Inject'](a[_0x57f41f(0x410)])),I(0x4,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),I(0x5,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x45a)])),I(0x6,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),I(0x7,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),I(0x8,a['Inject'](N[_0x57f41f(0x345)])),I(0x9,a[_0x57f41f(0x1ec)](fe)),I(0xa,a[_0x57f41f(0x1ec)](pe)),I(0xb,a[_0x57f41f(0x1ec)](qe)),I(0xc,a['ILogService']),I(0xd,a[_0x57f41f(0x178)]),I(0xe,A[_0x57f41f(0x34b)]),I(0xf,a['IPermissionService']),I(0x10,a[_0x57f41f(0x177)](Re))],exports[_0x57f41f(0x223)]),exports['SheetCollaborationEntity']=class extends exports[_0x57f41f(0x500)]{constructor(_0x1e47b2,_0x51c15e,_0x31e2f7,_0x2f0f7a,_0xd6747a,_0x3f87cc,_0x3bfe3b,_0x27915e,_0x1852ad,_0x54786d,_0x3ae82d,_0x3e28a0,_0x5e9daa,_0x4135c3){const _0x319961=_0x57f41f;super(_0x1e47b2,_0x31e2f7,_0x51c15e,_0x2f0f7a,_0xd6747a,_0x3f87cc,_0x3bfe3b,_0x27915e,_0x54786d,_0x3ae82d,_0x3e28a0,_0x5e9daa,_0x4135c3),this[_0x319961(0x36e)]=_0x1e47b2,this[_0x319961(0x221)]=_0x51c15e,this['_sheetTransformSelectionsService']=_0x1852ad;}['_createHandler'](){const _0x452fa5=_0x57f41f,_0x2fe3d2=super[_0x452fa5(0x52a)]();return _0x2fe3d2[_0x452fa5(0x230)]=_0x503aef=>this['_sheetTransformSelectionsService'][_0x452fa5(0x357)](_0x503aef),_0x2fe3d2;}async[_0x57f41f(0x326)](){const _0x59611a=_0x57f41f,_0x1bf2ce=await super['_init']();return this[_0x59611a(0x1e2)](this[_0x59611a(0x547)][_0x59611a(0x36c)]((_0x5bdd1f,_0x559284)=>{const _0x471e92=_0x59611a;if(_0x5bdd1f[_0x471e92(0x221)]!==a['CommandType'][_0x471e92(0x385)]||_0x559284!=null&&_0x559284[_0x471e92(0x25a)]||_0x559284!=null&&_0x559284[_0x471e92(0x1b3)])return;const _0x476762=_0x5bdd1f['params'];if((_0x476762==null?void 0x0:_0x476762[_0x471e92(0x1d1)])!==this['unitID'])return;const _0x31bab2=_0x5bdd1f,_0x5787dc=this['_compressMutationService'][_0x471e92(0x267)][_0x471e92(0x296)](this[_0x471e92(0x314)][_0x471e92(0x267)]['getInterceptPoints']()[_0x471e92(0x433)])([_0x31bab2],null)||[_0x31bab2];this[_0x471e92(0x252)](_0x5787dc[0x0]);})),_0x1bf2ce;}},exports[_0x57f41f(0x374)]=ze([I(0x3,a[_0x57f41f(0x1ec)](a['Injector'])),I(0x4,a['Inject'](exports[_0x57f41f(0x4a8)])),I(0x5,a['Inject'](_[_0x57f41f(0x45a)])),I(0x6,a['Inject'](a[_0x57f41f(0x405)])),I(0x7,a[_0x57f41f(0x1ec)](_['RevisionService'])),I(0x8,a[_0x57f41f(0x1ec)](Ie)),I(0x9,a[_0x57f41f(0x162)]),I(0xa,a[_0x57f41f(0x178)]),I(0xb,A[_0x57f41f(0x34b)]),I(0xc,a[_0x57f41f(0x169)]),I(0xd,a[_0x57f41f(0x177)](Re))],exports['SheetCollaborationEntity']);var qs=Object[_0x57f41f(0x522)],zs=Object[_0x57f41f(0x191)],Js=(_0x305936,_0x536906,_0x35c908,_0x5d14bd)=>{const _0x2ce411=_0x57f41f;for(var _0x13dd79=_0x5d14bd>0x1?void 0x0:_0x5d14bd?zs(_0x536906,_0x35c908):_0x536906,_0x3f15d5=_0x305936[_0x2ce411(0x460)]-0x1,_0x172043;_0x3f15d5>=0x0;_0x3f15d5--)(_0x172043=_0x305936[_0x3f15d5])&&(_0x13dd79=(_0x5d14bd?_0x172043(_0x536906,_0x35c908,_0x13dd79):_0x172043(_0x13dd79))||_0x13dd79);return _0x5d14bd&&_0x13dd79&&qs(_0x536906,_0x35c908,_0x13dd79),_0x13dd79;},Ne=(_0x5f0839,_0x46f00b)=>(_0x3848b5,_0x47711c)=>_0x46f00b(_0x3848b5,_0x47711c,_0x5f0839);exports[_0x57f41f(0x34d)]=class extends a['RxDisposable']{constructor(_0x5412ca,_0x4438ff,_0x41ea0e){const _0x553826=_0x57f41f;super(),u(this,_0x553826(0x3b5),new Map()),u(this,_0x553826(0x445),new v[(_0x553826(0x54c))]()),(this[_0x553826(0x331)]=_0x5412ca,this[_0x553826(0x4e7)]=_0x4438ff,this['_univerInstanceService']=_0x41ea0e,this[_0x553826(0x326)]());}[_0x57f41f(0x3a4)](){const _0x7fb2b6=_0x57f41f;super['dispose'](),this[_0x7fb2b6(0x3b5)][_0x7fb2b6(0x50c)](_0x44a5da=>_0x44a5da[_0x7fb2b6(0x3a4)]()),this[_0x7fb2b6(0x3b5)][_0x7fb2b6(0x159)]();}['getCollabEntity'](_0x345efd){const _0x3b55e3=_0x57f41f;var _0x22593e;return(_0x22593e=this[_0x3b55e3(0x3b5)]['get'](_0x345efd))!=null?_0x22593e:null;}[_0x57f41f(0x4c9)](_0x284c4f){const _0x4fe5b9=_0x57f41f,_0x24d290=this[_0x4fe5b9(0x3a8)](_0x284c4f);return _0x24d290?v['of'](_0x24d290):this[_0x4fe5b9(0x445)][_0x4fe5b9(0x4bb)](E[_0x4fe5b9(0x222)](_0x1f8439=>_0x1f8439[_0x4fe5b9(0x36e)]===_0x284c4f));}['_init'](){const _0x3eda20=_0x57f41f;this[_0x3eda20(0x131)][_0x3eda20(0x317)](a[_0x3eda20(0x4f6)]['UNIVER_SHEET'])[_0x3eda20(0x4bb)](v[_0x3eda20(0x12b)](this[_0x3eda20(0x43a)]),E[_0x3eda20(0x4d8)](0x10))['subscribe'](async _0x4d2081=>{const _0x18f0e0=_0x3eda20,_0x145db4=_0x4d2081[_0x18f0e0(0x263)](),_0x534aea=await this[_0x18f0e0(0x4e2)](_0x145db4,$['UNIVER_SHEET']);this[_0x18f0e0(0x3b5)][_0x18f0e0(0x20b)](_0x145db4,_0x534aea);}),this[_0x3eda20(0x131)][_0x3eda20(0x317)](a[_0x3eda20(0x4f6)][_0x3eda20(0x1a7)])[_0x3eda20(0x4bb)](v[_0x3eda20(0x12b)](this['dispose$']),E[_0x3eda20(0x4d8)](0x10))[_0x3eda20(0x4bb)](E[_0x3eda20(0x222)](_0x1e5d0a=>!_0x1e5d0a[_0x3eda20(0x263)]()['startsWith']('__')))[_0x3eda20(0x3ee)](async _0x16354b=>{const _0x475fdf=_0x3eda20,_0x469db3=_0x16354b[_0x475fdf(0x263)](),_0x417fe5=await this['_startCollaboration'](_0x469db3,$[_0x475fdf(0x1a7)]);this[_0x475fdf(0x3b5)][_0x475fdf(0x20b)](_0x469db3,_0x417fe5);}),v['merge'](this[_0x3eda20(0x131)][_0x3eda20(0x41f)](a[_0x3eda20(0x4f6)][_0x3eda20(0x197)]),this[_0x3eda20(0x131)][_0x3eda20(0x41f)](a[_0x3eda20(0x4f6)][_0x3eda20(0x1a7)]))[_0x3eda20(0x4bb)](v['takeUntil'](this[_0x3eda20(0x43a)]))[_0x3eda20(0x3ee)](_0x51ec95=>{const _0x13141c=_0x3eda20,_0x120721=_0x51ec95['getUnitId'](),_0x3dc516=this[_0x13141c(0x3b5)][_0x13141c(0x31f)](_0x120721);_0x3dc516&&(_0x3dc516[_0x13141c(0x3a4)](),this[_0x13141c(0x3b5)][_0x13141c(0x3e0)](_0x120721));});}async[_0x57f41f(0x4e2)](_0x563813,_0x598680){const _0x41e671=_0x57f41f,_0x4bd73f=await this[_0x41e671(0x4e7)][_0x41e671(0x2b6)](_0x563813),_0xb77896=this[_0x41e671(0x331)][_0x41e671(0x4eb)](this[_0x41e671(0x360)](_0x598680),_0x563813,_0x598680,_0x4bd73f);return await _0xb77896[_0x41e671(0x350)](),this[_0x41e671(0x445)][_0x41e671(0x49c)](_0xb77896),_0xb77896;}['_getCtorByUniverType'](_0x469955){const _0x434f50=_0x57f41f;switch(_0x469955){case $['UNIVER_DOC']:return exports[_0x434f50(0x223)];case $[_0x434f50(0x197)]:return exports[_0x434f50(0x374)];default:throw new Error(_0x434f50(0x4db)+_0x469955);}}},exports[_0x57f41f(0x34d)]=Js([Ne(0x0,a[_0x57f41f(0x1ec)](a['Injector'])),Ne(0x1,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x19b)])),Ne(0x2,a['IUniverInstanceService'])],exports['CollaborationController']);const ct=[_0x57f41f(0x211),_0x57f41f(0x3fd),'verdancy600',_0x57f41f(0x2f0),_0x57f41f(0x40b),'gold400'];function _0x1fa7(_0x109946,_0x1a1c7e){const _0xf60c29=_0xf60c();return _0x1fa7=function(_0x1fa7f7,_0x56247){_0x1fa7f7=_0x1fa7f7-0x127;let _0x434c81=_0xf60c29[_0x1fa7f7];return _0x434c81;},_0x1fa7(_0x109946,_0x1a1c7e);}class Je extends a['Disposable']{constructor(){const _0x4372e2=_0x57f41f;super(...arguments),u(this,_0x4372e2(0x3f7),new Map()),u(this,_0x4372e2(0x135),0x0);}['assignAColorForMemberID'](_0x32d57f){const _0x4222da=_0x57f41f;if(this['_assignedColors'][_0x4222da(0x2c9)](_0x32d57f))return this['_assignedColors']['get'](_0x32d57f);const _0x5818e5=ct[this[_0x4222da(0x135)]];return this[_0x4222da(0x135)]=(this[_0x4222da(0x135)]+0x1)%ct[_0x4222da(0x460)],this['_assignedColors'][_0x4222da(0x20b)](_0x32d57f,_0x5818e5),_0x5818e5;}}var Zs=Object[_0x57f41f(0x522)],Qs=Object[_0x57f41f(0x191)],ei=(_0x364a50,_0x375c95,_0xb0d0a6,_0xd7c747)=>{for(var _0x57d125=_0xd7c747>0x1?void 0x0:_0xd7c747?Qs(_0x375c95,_0xb0d0a6):_0x375c95,_0x1ac66d=_0x364a50['length']-0x1,_0x21e068;_0x1ac66d>=0x0;_0x1ac66d--)(_0x21e068=_0x364a50[_0x1ac66d])&&(_0x57d125=(_0xd7c747?_0x21e068(_0x375c95,_0xb0d0a6,_0x57d125):_0x21e068(_0x57d125))||_0x57d125);return _0xd7c747&&_0x57d125&&Zs(_0x375c95,_0xb0d0a6,_0x57d125),_0x57d125;},K=(_0x27f190,_0x118078)=>(_0x3acc5f,_0x49f743)=>_0x118078(_0x3acc5f,_0x49f743,_0x27f190);const ti=0x12c,si=0x64;let ke=class extends a[_0x57f41f(0x1c5)]{constructor(_0x4364d2,_0x48398d,_0x33c43a,_0x1794eb,_0xba900e,_0x48d431,_0x3b239e,_0x1446aa,_0x53be6d){const _0x5507cd=_0x57f41f;super(),u(this,_0x5507cd(0x32d),!0x1),u(this,_0x5507cd(0x326),!0x1),u(this,_0x5507cd(0x329),new v[(_0x5507cd(0x3ab))](new Map())),u(this,_0x5507cd(0x260),this[_0x5507cd(0x329)]['asObservable']()),u(this,_0x5507cd(0x4e8),new v[(_0x5507cd(0x3ab))]([])),u(this,_0x5507cd(0x18f),this[_0x5507cd(0x4e8)][_0x5507cd(0x4bb)](v[_0x5507cd(0x49b)](ti))),u(this,'_updateLocalCursor',a[_0x5507cd(0x189)](_0x247eaf=>{const _0x1d3bc0=_0x5507cd,_0x1bd4fa={'eventID':_[_0x1d3bc0(0x48e)][_0x1d3bc0(0x153)],'data':{'unitID':this[_0x1d3bc0(0x36e)],'memberID':this[_0x1d3bc0(0x2cd)]['getMemberID'](),'selection':yt(_0x247eaf)}};this[_0x1d3bc0(0x2cd)][_0x1d3bc0(0x47b)](_0x1bd4fa,this[_0x1d3bc0(0x36e)]);},si)),(this[_0x5507cd(0x36e)]=_0x4364d2,this['_session']=_0x48398d,this[_0x5507cd(0x331)]=_0x33c43a,this[_0x5507cd(0x3f4)]=_0x1794eb,this['_memberService']=_0xba900e,this[_0x5507cd(0x40d)]=_0x48d431,this[_0x5507cd(0x365)]=_0x3b239e,this[_0x5507cd(0x131)]=_0x1446aa,this[_0x5507cd(0x547)]=_0x53be6d);}get['cursorInfo'](){const _0x36dcfd=_0x57f41f;return this[_0x36dcfd(0x329)]['getValue']();}get[_0x57f41f(0x234)](){return this['_roomMembers$']['getValue']();}[_0x57f41f(0x3a4)](){const _0x356825=_0x57f41f;super[_0x356825(0x3a4)](),this['_cursorInfo$']['next'](new Map()),this[_0x356825(0x329)][_0x356825(0x4a4)](),this[_0x356825(0x4e8)]['next']([]),this[_0x356825(0x4e8)]['complete']();}[_0x57f41f(0x350)](){const _0x51e017=_0x57f41f;this[_0x51e017(0x326)]||(this[_0x51e017(0x326)]=!0x0,this[_0x51e017(0x2cd)]['sessionStatus$'][_0x51e017(0x4bb)](v[_0x51e017(0x12b)](this[_0x51e017(0x43a)]))['subscribe'](_0x5ebee3=>{const _0x369f99=_0x51e017;_0x5ebee3===H[_0x369f99(0x436)]?this[_0x369f99(0x284)]():this[_0x369f99(0x49d)]();}),this[_0x51e017(0x2cd)]['event$'][_0x51e017(0x4bb)](v[_0x51e017(0x12b)](this[_0x51e017(0x43a)]))[_0x51e017(0x3ee)](_0x401de4=>{const _0x48eea7=_0x51e017,_0x4269fc=_0x401de4[_0x48eea7(0x538)];_0x4269fc===_[_0x48eea7(0x48e)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x401de4),_0x4269fc===_[_0x48eea7(0x48e)][_0x48eea7(0x4af)]&&this[_0x48eea7(0x1a5)](_0x401de4);}),this['disposeWithMe'](this['_commandService'][_0x51e017(0x36c)](_0x30a7c1=>{const _0xef0f7c=_0x51e017,_0x4c011e=_0x30a7c1[_0xef0f7c(0x15b)];_0x4c011e!=null&&this[_0xef0f7c(0x32d)]&&_0x30a7c1['id']===se[_0xef0f7c(0x1ab)]['id']&&_0x4c011e[_0xef0f7c(0x1d1)]===this[_0xef0f7c(0x36e)]&&_0x4c011e['isEditing']===!0x1&&this[_0xef0f7c(0x34a)](_0x4c011e[_0xef0f7c(0x4ee)]);})),this[_0x51e017(0x40d)]['collabCursorState$'][_0x51e017(0x4bb)](v[_0x51e017(0x12b)](this['dispose$']))['subscribe'](_0x4ff8e1=>{const _0x4be9a6=_0x51e017;if((_0x4ff8e1==null?void 0x0:_0x4ff8e1[_0x4be9a6(0x36e)])!==this[_0x4be9a6(0x36e)])return;const _0x1553e0={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x4ff8e1};this[_0x4be9a6(0x4d4)](_0x1553e0);}),this[_0x51e017(0x1e2)](this[_0x51e017(0x547)][_0x51e017(0x36c)](_0x454bf3=>{const _0x271f67=_0x51e017;if(_0x454bf3[_0x271f67(0x15b)]==null)return;const _0x21af1e=_0x454bf3['params'];if(_0x454bf3['id']!==se[_0x271f67(0x286)]['id']||_0x21af1e[_0x271f67(0x1d1)]!==this[_0x271f67(0x36e)])return;const _0x5d8a5b={'id':_0x271f67(0x44f),'params':_0x21af1e},_0x426d40=this[_0x271f67(0x494)];for(const [_0x192bf5,_0xf934fa]of _0x426d40){const _0x27fee9={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xf934fa['ranges']}},_0x4f8756=this[_0x271f67(0x365)][_0x271f67(0x1e4)](_0x5d8a5b,_0x27fee9,!0x1);if(_['isTransformMutationFailure'](_0x4f8756))throw _0x4f8756[_0x271f67(0x542)];_0x426d40[_0x271f67(0x20b)](_0x192bf5,{..._0xf934fa,'ranges':_0x4f8756[_0x271f67(0x353)][_0x271f67(0x15b)][_0x271f67(0x179)]});}queueMicrotask(()=>{const _0x5e98fa=_0x271f67;this[_0x5e98fa(0x329)][_0x5e98fa(0x49c)](_0x426d40);});})));}[_0x57f41f(0x4d4)](_0x4bff2c){const _0x45618a=_0x57f41f;var _0x4f73ff,_0x1e77b5;const {memberID:_0x2eb9df,selection:_0x4cb7e9}=_0x4bff2c['data'],_0x1fcf8a=Hs(_0x4cb7e9),_0x24a5f8=(_0x1e77b5=(_0x4f73ff=this['_memberService']['getMember'](this[_0x45618a(0x36e)],_0x2eb9df))==null?void 0x0:_0x4f73ff[_0x45618a(0x33e)])!=null?_0x1e77b5:_0x45618a(0x14a),_0x390abf={'color':this[_0x45618a(0x3f4)][_0x45618a(0x533)](_0x2eb9df),'name':_0x24a5f8,'ranges':_0x1fcf8a},_0x2159ba=this['cursorInfo'];_0x2159ba['set'](_0x2eb9df,_0x390abf),this[_0x45618a(0x329)]['next'](_0x2159ba);}['_onCursorDelete'](_0x5981b3){const _0x4812c7=_0x57f41f,{memberID:_0x1db1d6}=_0x5981b3[_0x4812c7(0x198)],_0x1113c2=this[_0x4812c7(0x494)];_0x1113c2['delete'](_0x1db1d6),this[_0x4812c7(0x329)][_0x4812c7(0x49c)](_0x1113c2);}['_toggleOnline'](){const _0x444eeb=_0x57f41f;var _0x44f744;if(this[_0x444eeb(0x32d)]=!0x0,((_0x44f744=this[_0x444eeb(0x131)][_0x444eeb(0x324)]())==null?void 0x0:_0x44f744[_0x444eeb(0x263)]())!==this[_0x444eeb(0x36e)])return;const _0x3d1fe1=this['_injector']['get'](se[_0x444eeb(0x1d0)])[_0x444eeb(0x328)]();Array[_0x444eeb(0x2f8)](_0x3d1fe1)&&_0x3d1fe1['length']>0x0&&this['_updateLocalCursor'](_0x3d1fe1);}[_0x57f41f(0x49d)](){const _0x396093=_0x57f41f;this[_0x396093(0x32d)]=!0x1;}};ke=ei([K(0x2,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),K(0x3,a['Inject'](Je)),K(0x4,a['Inject'](q)),K(0x5,a[_0x57f41f(0x1ec)](qe)),K(0x6,_['ITransformService']),K(0x7,a[_0x57f41f(0x546)]),K(0x8,a['ICommandService'])],ke);var ii=Object['defineProperty'],ni=Object[_0x57f41f(0x191)],ri=(_0x1e9854,_0x2cd3b,_0xa78b6b,_0x38a486)=>{for(var _0x1fedda=_0x38a486>0x1?void 0x0:_0x38a486?ni(_0x2cd3b,_0xa78b6b):_0x2cd3b,_0x2e5e9d=_0x1e9854['length']-0x1,_0x12698a;_0x2e5e9d>=0x0;_0x2e5e9d--)(_0x12698a=_0x1e9854[_0x2e5e9d])&&(_0x1fedda=(_0x38a486?_0x12698a(_0x2cd3b,_0xa78b6b,_0x1fedda):_0x12698a(_0x1fedda))||_0x1fedda);return _0x38a486&&_0x1fedda&&ii(_0x2cd3b,_0xa78b6b,_0x1fedda),_0x1fedda;},Q=(_0x405b32,_0x26d608)=>(_0x2e214e,_0x305f4a)=>_0x26d608(_0x2e214e,_0x305f4a,_0x405b32);const oi=0x12c,ai=0x64,ci=()=>{let _0x470581=[],_0x2efec9=!0x1;return _0x249d6a=>{_0x470581['push'](_0x249d6a),_0x2efec9||(_0x2efec9=!0x0,setTimeout(()=>{const _0x1f44a=_0x1fa7;_0x470581[_0x1f44a(0x50c)](_0x416ce0=>_0x416ce0()),_0x470581=[],_0x2efec9=!0x1;}));};};let Be=class extends a[_0x57f41f(0x1c5)]{constructor(_0x2ad12d,_0x1111e0,_0x3a0e1d,_0xa78af2,_0x1ea5a6,_0xa13dfa,_0x43a971,_0x5336ad){const _0x5b016b=_0x57f41f;super(),u(this,_0x5b016b(0x32d),!0x1),u(this,_0x5b016b(0x326),!0x1),u(this,_0x5b016b(0x329),new v[(_0x5b016b(0x3ab))](new Map())),u(this,_0x5b016b(0x260),this['_cursorInfo$']['asObservable']()),u(this,_0x5b016b(0x4e8),new v[(_0x5b016b(0x3ab))]([])),u(this,_0x5b016b(0x18f),this[_0x5b016b(0x4e8)][_0x5b016b(0x4bb)](v[_0x5b016b(0x49b)](oi))),u(this,_0x5b016b(0x34a),a[_0x5b016b(0x189)]((_0x3ebfc6,_0x26915a)=>{const _0x1dd580=_0x5b016b,_0x5101a0={'eventID':_[_0x1dd580(0x48e)][_0x1dd580(0x153)],'data':{'unitID':this[_0x1dd580(0x36e)],'memberID':this['_session'][_0x1dd580(0x145)](),'selection':et[_0x1dd580(0x4b3)](_0x3ebfc6,_0x26915a['range'])}};this[_0x1dd580(0x2cd)][_0x1dd580(0x47b)](_0x5101a0,this[_0x1dd580(0x36e)]);},ai)),(this[_0x5b016b(0x36e)]=_0x2ad12d,this[_0x5b016b(0x2cd)]=_0x1111e0,this[_0x5b016b(0x331)]=_0x3a0e1d,this['_colorAssignService']=_0xa78af2,this['_memberService']=_0x1ea5a6,this[_0x5b016b(0x131)]=_0xa13dfa,this['_commandService']=_0x43a971,this['_refRangeService']=_0x5336ad);}get[_0x57f41f(0x494)](){const _0x12d4b8=_0x57f41f;return this[_0x12d4b8(0x329)][_0x12d4b8(0x3a2)]();}get[_0x57f41f(0x234)](){const _0x2a9131=_0x57f41f;return this[_0x2a9131(0x4e8)]['getValue']();}[_0x57f41f(0x3a4)](){const _0x3195cf=_0x57f41f;super[_0x3195cf(0x3a4)](),this[_0x3195cf(0x329)]['next'](new Map()),this[_0x3195cf(0x329)][_0x3195cf(0x4a4)](),this[_0x3195cf(0x4e8)][_0x3195cf(0x49c)]([]),this[_0x3195cf(0x4e8)][_0x3195cf(0x4a4)]();}[_0x57f41f(0x350)](){const _0x52acf4=_0x57f41f;this[_0x52acf4(0x326)]||(this[_0x52acf4(0x326)]=!0x0,this[_0x52acf4(0x2cd)][_0x52acf4(0x1bd)]['pipe'](v['takeUntil'](this['dispose$']))['subscribe'](_0x58cd76=>{const _0x421639=_0x52acf4;_0x58cd76===H[_0x421639(0x436)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x52acf4(0x2cd)][_0x52acf4(0x438)][_0x52acf4(0x4bb)](v[_0x52acf4(0x12b)](this[_0x52acf4(0x43a)]))[_0x52acf4(0x3ee)](_0x30154c=>{const _0x104f26=_0x52acf4,_0x7a9a9f=_0x30154c[_0x104f26(0x538)];_0x7a9a9f===_[_0x104f26(0x48e)]['UPDATE_CURSOR']&&this[_0x104f26(0x4d4)](_0x30154c),_0x7a9a9f===_[_0x104f26(0x48e)]['USERS_LEAVE']&&this[_0x104f26(0x1a5)](_0x30154c);}),this[_0x52acf4(0x495)](),this[_0x52acf4(0x1e2)](this['_commandService']['onCommandExecuted'](_0x3ed920=>{const _0x2a3b98=_0x52acf4;if(this[_0x2a3b98(0x32d)]&&_0x3ed920['id']===C['SetSelectionsOperation']['id']&&_0x3ed920['params'][_0x2a3b98(0x1d1)]===this['unitID']){const _0x6cf7b6=_0x3ed920['params'];this[_0x2a3b98(0x34a)](_0x6cf7b6[_0x2a3b98(0x3aa)],_0x6cf7b6[_0x2a3b98(0x266)][0x0]);}})));}[_0x57f41f(0x4d4)](_0x58f4f1){const _0x32f848=_0x57f41f;var _0x43e52c,_0x55aa9e;const {memberID:_0xc2d456,selection:_0x4ff518}=_0x58f4f1['data'],{sheetName:_0x1cbf29,range:_0x36a3da}=et[_0x32f848(0x196)](_0x4ff518),_0xcb3a0b={'name':(_0x55aa9e=(_0x43e52c=this[_0x32f848(0x384)][_0x32f848(0x487)](this[_0x32f848(0x36e)],_0xc2d456))==null?void 0x0:_0x43e52c['name'])!=null?_0x55aa9e:_0x32f848(0x14a),'range':this[_0x32f848(0x3e9)](_0x1cbf29,_0x36a3da),'sheetID':_0x1cbf29,'color':this[_0x32f848(0x3f4)][_0x32f848(0x533)](_0xc2d456),'selection':_0x4ff518},_0x3db0f2=this[_0x32f848(0x494)];_0x3db0f2[_0x32f848(0x20b)](_0xc2d456,_0xcb3a0b),this[_0x32f848(0x329)][_0x32f848(0x49c)](_0x3db0f2);}[_0x57f41f(0x1a5)](_0x2e1297){const _0x510c08=_0x57f41f,{memberID:_0x51a461}=_0x2e1297['data'],_0x18cdc6=this[_0x510c08(0x494)];_0x18cdc6[_0x510c08(0x3e0)](_0x51a461),this[_0x510c08(0x329)][_0x510c08(0x49c)](_0x18cdc6);}[_0x57f41f(0x3e9)](_0x357ae8,_0x3d8e3){const _0x124efd=_0x57f41f;var _0x16bb92,_0xec9c85;const _0x34d18d=(_0xec9c85=(_0x16bb92=this[_0x124efd(0x131)][_0x124efd(0x3de)](this[_0x124efd(0x36e)]))==null?void 0x0:_0x16bb92[_0x124efd(0x446)](_0x357ae8))==null?void 0x0:_0xec9c85[_0x124efd(0x168)]();return(_0x34d18d==null?void 0x0:_0x34d18d[_0x124efd(0x4df)](_0x3f6f17=>a[_0x124efd(0x1b8)][_0x124efd(0x48f)](_0x3f6f17,_0x3d8e3)))||_0x3d8e3;}[_0x57f41f(0x495)](){const _0x424121=_0x57f41f,_0x4d3433=new a[(_0x424121(0x1f7))](),_0x4066dc=ci(),_0x34ae48=()=>{const _0x66126=_0x424121;_0x4d3433['dispose']();const _0x1940df=(_0x4c7fc9,_0x50261c,_0x2fbe59,_0x4b437c)=>{const _0x22bdef=_0x1fa7;let _0x13f578=[];switch(_0x4c7fc9['id']){case C[_0x22bdef(0x32a)]['DeleteRangeMoveLeftCommandId']:{_0x13f578=C['handleDeleteRangeMoveLeft'](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)][_0x22bdef(0x30c)]:{_0x13f578=C['handleDeleteRangeMoveUp'](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)]['InsertColCommandId']:{_0x13f578=C[_0x22bdef(0x526)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)][_0x22bdef(0x2f9)]:{_0x13f578=C[_0x22bdef(0x44d)](_0x4c7fc9,_0x4b437c);break;}case C['EffectRefRangId'][_0x22bdef(0x2b9)]:{_0x13f578=C[_0x22bdef(0x393)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)][_0x22bdef(0x2a4)]:{_0x13f578=C[_0x22bdef(0x16d)](_0x4c7fc9,_0x4b437c);break;}case C['EffectRefRangId'][_0x22bdef(0x2ce)]:{_0x13f578=C[_0x22bdef(0x4f0)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)]['RemoveColCommandId']:{_0x13f578=C[_0x22bdef(0x232)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)]['RemoveRowCommandId']:{_0x13f578=C[_0x22bdef(0x295)](_0x4c7fc9,_0x4b437c);break;}}const _0x1bfdeb=C[_0x22bdef(0x38f)](_0x13f578,_0x4b437c),_0x816afc=this['cursorInfo'][_0x22bdef(0x31f)](_0x50261c);if(_0x816afc&&_0x1bfdeb){const _0x4ccddd={..._0x816afc,'range':_0x1bfdeb};this[_0x22bdef(0x494)][_0x22bdef(0x20b)](_0x50261c,_0x4ccddd),_0x4066dc(()=>{const _0x2993b5=_0x22bdef,_0x1b81ad=this['_refRangeService'][_0x2993b5(0x42f)](_0x1bfdeb,_0x2ef4c8=>(_0x1b81ad[_0x2993b5(0x3a4)](),_0x1940df(_0x2ef4c8,_0x50261c,_0x2fbe59,_0x1bfdeb)));_0x4d3433[_0x2993b5(0x150)](_0x1b81ad);});}return{'redos':[],'undos':[]};};this[_0x66126(0x494)][_0x66126(0x50c)]((_0x40dd3a,_0x582828)=>{const _0x1f99f4=_0x66126,{range:_0x5a2fb7,sheetID:_0x57dd30}=_0x40dd3a,_0x2ccb62=this['_refRangeService']['registerRefRange'](_0x5a2fb7,_0x22f053=>(_0x2ccb62['dispose'](),_0x1940df(_0x22f053,_0x582828,_0x57dd30,_0x5a2fb7)));_0x4d3433[_0x1f99f4(0x150)](_0x2ccb62);});};this[_0x424121(0x1e2)](a[_0x424121(0x1f9)](this[_0x424121(0x329)][_0x424121(0x3ee)](()=>{_0x34ae48();})));}['_toggleOnline'](){const _0x1c6d0a=_0x57f41f;var _0x103e7a,_0x395bad;if(this[_0x1c6d0a(0x32d)]=!0x0,((_0x103e7a=this[_0x1c6d0a(0x131)][_0x1c6d0a(0x324)]())==null?void 0x0:_0x103e7a[_0x1c6d0a(0x263)]())!==this[_0x1c6d0a(0x36e)])return;const _0x21b235=(_0x395bad=this[_0x1c6d0a(0x331)][_0x1c6d0a(0x31f)](C['SheetsSelectionsService'])[_0x1c6d0a(0x3a7)]())==null?void 0x0:_0x395bad[0x0],_0x4a4e27=this['_univerInstanceService'][_0x1c6d0a(0x3b3)](a[_0x1c6d0a(0x4f6)]['UNIVER_SHEET'])['getActiveSheet']();_0x21b235&&_0x4a4e27&&this[_0x1c6d0a(0x34a)](_0x4a4e27[_0x1c6d0a(0x255)](),_0x21b235);}[_0x57f41f(0x49d)](){this['_online']=!0x1;}};Be=ri([Q(0x2,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),Q(0x3,a['Inject'](Je)),Q(0x4,a[_0x57f41f(0x1ec)](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a['ICommandService']),Q(0x7,a[_0x57f41f(0x1ec)](C[_0x57f41f(0x240)]))],Be);var li=Object['defineProperty'],hi=Object[_0x57f41f(0x191)],_i=(_0x83bf38,_0xb23a27,_0x2a53c9,_0x110cc0)=>{const _0x1e349d=_0x57f41f;for(var _0x326009=_0x110cc0>0x1?void 0x0:_0x110cc0?hi(_0xb23a27,_0x2a53c9):_0xb23a27,_0x6ef67a=_0x83bf38[_0x1e349d(0x460)]-0x1,_0x4a2895;_0x6ef67a>=0x0;_0x6ef67a--)(_0x4a2895=_0x83bf38[_0x6ef67a])&&(_0x326009=(_0x110cc0?_0x4a2895(_0xb23a27,_0x2a53c9,_0x326009):_0x4a2895(_0x326009))||_0x326009);return _0x110cc0&&_0x326009&&li(_0xb23a27,_0x2a53c9,_0x326009),_0x326009;},Me=(_0x3b727e,_0x55b5a1)=>(_0x94f3ed,_0x3c4455)=>_0x55b5a1(_0x94f3ed,_0x3c4455,_0x3b727e);let ne=class extends a[_0x57f41f(0x1c5)]{constructor(_0x4562ad,_0x584a9a,_0x4d1f4d){const _0x5efa94=_0x57f41f;super(),u(this,_0x5efa94(0x3b5),new Map()),u(this,_0x5efa94(0x445),new v['Subject']()),(this['_univerInstanceService']=_0x4562ad,this[_0x5efa94(0x331)]=_0x584a9a,this['_collabSessionService']=_0x4d1f4d,this[_0x5efa94(0x326)]());}[_0x57f41f(0x3a4)](){const _0x444f02=_0x57f41f;super[_0x444f02(0x3a4)](),this[_0x444f02(0x445)][_0x444f02(0x4a4)](),this[_0x444f02(0x3b5)]['forEach'](_0x404dc1=>_0x404dc1[_0x444f02(0x3a4)]());}['getCollabCursors$'](_0x5299f4){const _0x5d264c=_0x57f41f;return this[_0x5d264c(0x3b5)][_0x5d264c(0x2c9)](_0x5299f4)?this[_0x5d264c(0x3b5)][_0x5d264c(0x31f)](_0x5299f4)[_0x5d264c(0x260)]:this[_0x5d264c(0x445)][_0x5d264c(0x4bb)](v[_0x5d264c(0x222)](_0x9b3613=>_0x9b3613[_0x5d264c(0x36e)]===_0x5299f4),v['switchMap'](_0x1226d8=>_0x1226d8[_0x5d264c(0x260)]));}['_init'](){const _0x3e8f54=_0x57f41f;this[_0x3e8f54(0x131)][_0x3e8f54(0x317)](a[_0x3e8f54(0x4f6)]['UNIVER_SHEET'])[_0x3e8f54(0x4bb)](v[_0x3e8f54(0x12b)](this[_0x3e8f54(0x43a)]))[_0x3e8f54(0x3ee)](async _0x3a683e=>{const _0x1940a7=_0x3e8f54,_0x1c17a0=_0x3a683e[_0x1940a7(0x263)](),_0x5cad23=await this[_0x1940a7(0x3d6)](_0x1c17a0);this['_entityInit$']['next'](_0x5cad23),this['_entities']['set'](_0x1c17a0,_0x5cad23);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x3e8f54(0x4f6)][_0x3e8f54(0x1a7)])[_0x3e8f54(0x4bb)](v['takeUntil'](this[_0x3e8f54(0x43a)]))[_0x3e8f54(0x4bb)](v[_0x3e8f54(0x222)](_0x5ea88a=>!_0x5ea88a[_0x3e8f54(0x263)]()[_0x3e8f54(0x414)]('__')))[_0x3e8f54(0x3ee)](async _0x14a098=>{const _0x426634=_0x3e8f54,_0x3d0d2b=_0x14a098['getUnitId'](),_0x5b49d1=await this[_0x426634(0x429)](_0x3d0d2b);this[_0x426634(0x445)]['next'](_0x5b49d1),this[_0x426634(0x3b5)][_0x426634(0x20b)](_0x3d0d2b,_0x5b49d1);}),v['merge'](this[_0x3e8f54(0x131)][_0x3e8f54(0x41f)](a[_0x3e8f54(0x4f6)]['UNIVER_DOC']),this[_0x3e8f54(0x131)][_0x3e8f54(0x41f)](a[_0x3e8f54(0x4f6)]['UNIVER_SHEET']))[_0x3e8f54(0x4bb)](v[_0x3e8f54(0x12b)](this[_0x3e8f54(0x43a)]))[_0x3e8f54(0x3ee)](_0x23fb60=>{const _0x57e0bf=_0x3e8f54,_0x42c43d=_0x23fb60['getUnitId'](),_0x606cdd=this[_0x57e0bf(0x3b5)]['get'](_0x42c43d);_0x606cdd&&(_0x606cdd[_0x57e0bf(0x3a4)](),this['_entities'][_0x57e0bf(0x3e0)](_0x42c43d));});}async[_0x57f41f(0x3d6)](_0x31263c){const _0x18cc58=_0x57f41f,_0xdc822a=await this[_0x18cc58(0x4e7)][_0x18cc58(0x2b6)](_0x31263c),_0x10da50=this[_0x18cc58(0x331)][_0x18cc58(0x4eb)](Be,_0x31263c,_0xdc822a);return _0x10da50[_0x18cc58(0x350)](),_0x10da50;}async[_0x57f41f(0x429)](_0x5f54a5){const _0xb1c9c5=_0x57f41f,_0x4cd6e0=await this[_0xb1c9c5(0x4e7)][_0xb1c9c5(0x2b6)](_0x5f54a5),_0x14f182=this[_0xb1c9c5(0x331)][_0xb1c9c5(0x4eb)](ke,_0x5f54a5,_0x4cd6e0);return _0x14f182[_0xb1c9c5(0x350)](),_0x14f182;}};ne=_i([Me(0x0,a[_0x57f41f(0x546)]),Me(0x1,a[_0x57f41f(0x1ec)](a['Injector'])),Me(0x2,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x19b)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x30c6c9,_0x5c9c46){const _0x1025fd=_0x57f41f;let {radius:_0x968158,width:_0x4d1aa5,height:_0x5e7afd}=_0x5c9c46;_0x968158=_0x968158!=null?_0x968158:0x0,_0x4d1aa5=_0x4d1aa5!=null?_0x4d1aa5:0x1e,_0x5e7afd=_0x5e7afd!=null?_0x5e7afd:0x1e;let _0x8f3b06=0x0,_0x2b9869=0x0,_0x47fffd=0x0;_0x8f3b06=_0x2b9869=_0x47fffd=Math['min'](_0x968158,_0x4d1aa5/0x2,_0x5e7afd/0x2),_0x30c6c9[_0x1025fd(0x25f)](),_0x30c6c9[_0x1025fd(0x2b2)](_0x8f3b06,0x0),_0x30c6c9[_0x1025fd(0x3eb)](_0x4d1aa5-_0x2b9869,0x0),_0x30c6c9['arc'](_0x4d1aa5-_0x2b9869,_0x2b9869,_0x2b9869,Math['PI']*0x3/0x2,0x0,!0x1),_0x30c6c9[_0x1025fd(0x3eb)](_0x4d1aa5,_0x5e7afd-_0x47fffd),_0x30c6c9[_0x1025fd(0x3e3)](_0x4d1aa5-_0x47fffd,_0x5e7afd-_0x47fffd,_0x47fffd,0x0,Math['PI']/0x2,!0x1),_0x30c6c9[_0x1025fd(0x3eb)](0x0,_0x5e7afd),_0x30c6c9[_0x1025fd(0x3eb)](0x0,_0x8f3b06),_0x30c6c9[_0x1025fd(0x3e3)](_0x8f3b06,_0x8f3b06,_0x8f3b06,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x30c6c9[_0x1025fd(0x525)](),_0x5c9c46[_0x1025fd(0x512)]&&(_0x30c6c9[_0x1025fd(0x453)](),_0x30c6c9[_0x1025fd(0x4ac)]=_0x5c9c46[_0x1025fd(0x512)],_0x5c9c46['fillRule']==='evenodd'?_0x30c6c9[_0x1025fd(0x512)](_0x1025fd(0x3fc)):_0x30c6c9[_0x1025fd(0x512)](),_0x30c6c9['restore']());}class Oe extends O['Shape']{constructor(_0x4d5972,_0x416197){const _0x56c3f7=_0x57f41f;super(_0x4d5972,_0x416197),u(this,'color'),u(this,'text'),(this[_0x56c3f7(0x21a)]=_0x416197==null?void 0x0:_0x416197[_0x56c3f7(0x21a)],this[_0x56c3f7(0x50a)]=_0x416197==null?void 0x0:_0x416197['text']);}static[_0x57f41f(0x300)](_0x5b4170,_0xeb4f46){const _0x1355f3=_0x57f41f,{text:_0x5a5370,color:_0x2a425f}=_0xeb4f46;_0x5b4170[_0x1355f3(0x453)](),_0x5b4170[_0x1355f3(0x467)]=_0x1355f3(0x54f);const _0x315f13=_0x5b4170[_0x1355f3(0x3da)](_0x5a5370)[_0x1355f3(0x1a3)],_0x56ff0b=Math[_0x1355f3(0x129)](_0x315f13+0x2*Ae,lt);di(_0x5b4170,{'height':de,'radius':0x4,'width':_0x56ff0b,'fill':_0x2a425f,'evented':!0x1}),_0x5b4170[_0x1355f3(0x4ac)]='#FFF';const _0x61b7c8=Ae,_0x2b378a=de-ui,_0x45151b=lt-0x2*Ae;if(_0x315f13>_0x45151b){let _0x3d2ccb='',_0x496a4f=0x0;for(const _0x5f1e84 of _0x5a5370){const _0x5c124c=_0x5b4170[_0x1355f3(0x3da)](_0x5f1e84)[_0x1355f3(0x1a3)];if(_0x496a4f+_0x5c124c<=_0x45151b-_0x5b4170[_0x1355f3(0x3da)](_0x1355f3(0x4ab))[_0x1355f3(0x1a3)])_0x3d2ccb+=_0x5f1e84,_0x496a4f+=_0x5c124c;else{_0x3d2ccb+=_0x1355f3(0x4ab);break;}}_0x5b4170[_0x1355f3(0x22c)](_0x3d2ccb,_0x61b7c8,_0x2b378a);}else _0x5b4170['fillText'](_0x5a5370,_0x61b7c8,_0x2b378a);_0x5b4170[_0x1355f3(0x35c)]();}['_draw'](_0x5988e2){const _0x2d7ea3=_0x57f41f;Oe[_0x2d7ea3(0x300)](_0x5988e2,this);}}const Le=_0x57f41f(0x334),Si=_0x57f41f(0x421),vi=_0x57f41f(0x4d3),le=0x6,gi=1.5,je=0x4,mi=1.5,fi=_0x57f41f(0x262);class ht{constructor(_0x497bc1,_0x455119,_0x5b1505,_0x10f22a){const _0x172d2d=_0x57f41f;u(this,_0x172d2d(0x483),[]),u(this,'_anchor',null),u(this,_0x172d2d(0x2b1),null),u(this,_0x172d2d(0x395),null),u(this,'_hideTimer',null),u(this,_0x172d2d(0x536),null),(this[_0x172d2d(0x39e)]=_0x497bc1,this[_0x172d2d(0x1f3)]=_0x455119,this['_docSkeleton']=_0x5b1505,this[_0x172d2d(0x310)]=_0x10f22a,this[_0x172d2d(0x4c7)]());}set[_0x57f41f(0x430)](_0x56e1b2){const _0x49dba8=_0x57f41f;_0x56e1b2?(this[_0x49dba8(0x395)]&&this[_0x49dba8(0x395)][_0x49dba8(0x4e5)](),this['_textBubble']&&this[_0x49dba8(0x2b1)]['show']()):(this[_0x49dba8(0x395)]&&this[_0x49dba8(0x395)][_0x49dba8(0x375)](),this[_0x49dba8(0x2b1)]&&this['_textBubble'][_0x49dba8(0x4e5)]());}[_0x57f41f(0x3a4)](){const _0x26a61f=_0x57f41f;for(const _0x3f73d7 of this[_0x26a61f(0x483)])_0x3f73d7[_0x26a61f(0x3a4)]();this[_0x26a61f(0x2b1)]&&this[_0x26a61f(0x2b1)][_0x26a61f(0x3a4)](),this[_0x26a61f(0x395)]&&this[_0x26a61f(0x395)][_0x26a61f(0x3a4)](),this[_0x26a61f(0x3e7)]&&this[_0x26a61f(0x3e7)][_0x26a61f(0x3a4)](),this['_eventUnsubscribe']&&this[_0x26a61f(0x536)]();}[_0x57f41f(0x4c7)](){const _0x33f0f9=_0x57f41f;var _0x7b3562;const {_docSkeleton:_0x424e59,_document:_0xaa4724}=this,{color:_0xcae3e8,name:_0xdd1ea9,ranges:_0x39d17d}=this[_0x33f0f9(0x39e)],_0x5420e7=_0xaa4724[_0x33f0f9(0x3c4)](),{docsLeft:_0xa2b889,docsTop:_0x28fb5a}=_0x5420e7,_0x3128a5=new N[(_0x33f0f9(0x53d))](_0x5420e7,_0x424e59);for(const {startOffset:_0x365958,endOffset:_0x3e7e88,collapsed:_0x3309b2,isActive:_0x1210b8}of _0x39d17d){const _0x843cde=_0x424e59[_0x33f0f9(0x3f5)](_0x365958),_0x1aac9f=_0x424e59[_0x33f0f9(0x3f5)](_0x3e7e88);if(_0x1210b8){const {contentBoxPointGroup:_0x346e10}=_0x3128a5[_0x33f0f9(0x49e)](_0x1aac9f,_0x1aac9f);if(_0x346e10[_0x33f0f9(0x460)]===0x0)continue;this[_0x33f0f9(0x219)](_0xcae3e8,_0x346e10,_0xa2b889,_0x28fb5a,_0xdd1ea9),this[_0x33f0f9(0x536)]=this[_0x33f0f9(0x1d6)]();}if(!_0x3309b2&&_0x843cde&&_0x1aac9f){if(N['isValidRectRange'](_0x843cde,_0x1aac9f)){const _0x29d667=new N['NodePositionConvertToRectRange'](_0x5420e7,_0x424e59),{pointGroup:_0x75ca25}=(_0x7b3562=_0x29d667[_0x33f0f9(0x49e)](_0x843cde,_0x1aac9f))!=null?_0x7b3562:{};if(_0x75ca25==null||_0x75ca25[_0x33f0f9(0x460)]===0x0)continue;this['_drawRectRange'](_0xcae3e8,_0x75ca25,_0xa2b889,_0x28fb5a);}else{const {contentBoxPointGroup:_0x492048}=_0x3128a5[_0x33f0f9(0x49e)](_0x843cde,_0x1aac9f);if(_0x492048[_0x33f0f9(0x460)]===0x0)continue;this[_0x33f0f9(0x338)](_0xcae3e8,_0x492048,_0xa2b889,_0x28fb5a);}}}}[_0x57f41f(0x219)](_0x453623,_0x182df5,_0xf0e344,_0xc45b38,_0x185023){const _0x261472=_0x57f41f,_0x4eacee=this['_getAnchorBounding'](_0x182df5),{left:_0x36143d,top:_0x33e6f5,height:_0x3b3d37}=_0x4eacee,_0x1b8a40=this['_getScale'](),_0xda22d=mi/_0x1b8a40,_0x69a0e3=new O[(_0x261472(0x3b9))](Le+a[_0x261472(0x25c)][_0x261472(0x465)](le),{'left':_0x36143d+_0xf0e344-_0xda22d,'top':_0x33e6f5+_0xc45b38,'height':_0x3b3d37,'width':gi,'fill':_0x453623||O[_0x261472(0x173)](a[_0x261472(0x1a4)][_0x261472(0x318)],0x0),'strokeWidth':_0xda22d,'stroke':fi,'evented':!0x0});this[_0x261472(0x3e7)]=_0x69a0e3,this['_scene'][_0x261472(0x200)](_0x69a0e3,N['TEXT_RANGE_LAYER_INDEX']);const _0x5cb708=new O[(_0x261472(0x3b9))](Le+a[_0x261472(0x25c)][_0x261472(0x465)](le),{'left':_0x36143d+_0xf0e344-_0xda22d,'top':_0x33e6f5+_0xc45b38-je/0x2,'height':je,'width':je,'fill':_0x453623||O[_0x261472(0x173)](a['COLORS'][_0x261472(0x318)],0x0),'strokeWidth':0x0,'stroke':_0x453623||O[_0x261472(0x173)](a[_0x261472(0x1a4)]['black'],0x0),'evented':!0x1});this[_0x261472(0x395)]=_0x5cb708,this[_0x261472(0x1f3)]['addObject'](_0x5cb708,N[_0x261472(0x128)]);const _0x29818e=new Oe(Le+a[_0x261472(0x25c)][_0x261472(0x465)](le),{'left':_0x36143d+_0xf0e344-_0xda22d,'top':_0x33e6f5+_0xc45b38-de,'text':_0x185023,'color':_0x453623});this['_textBubble']=_0x29818e,this['_scene']['addObject'](_0x29818e,N['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x57f41f(0x1d6)](){const _0x414869=_0x57f41f,_0x457698=this[_0x414869(0x3e7)][_0x414869(0x210)][_0x414869(0x362)](()=>{const _0x122c32=_0x414869;this[_0x122c32(0x430)]=!0x0;}),_0x15a688=this[_0x414869(0x3e7)][_0x414869(0x4ed)]['subscribeEvent'](()=>{const _0x2d4aff=_0x414869;this[_0x2d4aff(0x20e)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x2469a8=_0x2d4aff;this[_0x2469a8(0x430)]=!0x1;},0x7d0);});return()=>{const _0x451410=_0x414869;_0x457698[_0x451410(0x373)](),_0x15a688[_0x451410(0x373)]();};}[_0x57f41f(0x338)](_0x4401bb,_0x344a05,_0x223f98,_0x231dcb){const _0x18491e=_0x57f41f,_0x1130a5=new a[(_0x18491e(0x1bb))](_0x4401bb)[_0x18491e(0x28f)](0.2)[_0x18491e(0x3e2)](),_0x26d672=new O['RegularPolygon'](Si+a[_0x18491e(0x25c)][_0x18491e(0x465)](le),{'pointsGroup':_0x344a05,'fill':_0x1130a5||O[_0x18491e(0x173)](a['COLORS'][_0x18491e(0x318)],0.2),'left':_0x223f98,'top':_0x231dcb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x18491e(0x483)][_0x18491e(0x2d0)](_0x26d672),this['_scene']['addObject'](_0x26d672,N[_0x18491e(0x128)]);}[_0x57f41f(0x502)](_0x23c15a,_0x9df610,_0x277101,_0x50636a){const _0x1ba2c6=_0x57f41f,_0x3f71f1=new a[(_0x1ba2c6(0x1bb))](_0x23c15a)[_0x1ba2c6(0x28f)](0.2)[_0x1ba2c6(0x3e2)](),_0x2d550c=new O[(_0x1ba2c6(0x1ea))](vi+a[_0x1ba2c6(0x25c)][_0x1ba2c6(0x465)](le),{'pointsGroup':_0x9df610,'fill':_0x3f71f1||O[_0x1ba2c6(0x173)](a[_0x1ba2c6(0x1a4)][_0x1ba2c6(0x318)],0.2),'left':_0x277101,'top':_0x50636a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1ba2c6(0x2d0)](_0x2d550c),this[_0x1ba2c6(0x1f3)][_0x1ba2c6(0x200)](_0x2d550c,N['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0xaf5e19){const _0x397b19=_0xaf5e19[0x0],_0x5ae09a=_0x397b19[0x0],_0x1869e7=_0x397b19[0x2],{x:_0x35ce6d,y:_0x3fc102}=_0x5ae09a,{x:_0x47fb58,y:_0x1a3505}=_0x1869e7;return{'left':_0x35ce6d,'top':_0x3fc102,'width':_0x47fb58-_0x35ce6d,'height':_0x1a3505-_0x3fc102};}['_getScale'](){const _0x440b74=_0x57f41f,{scaleX:_0x7000b9,scaleY:_0xc7089b}=this[_0x440b74(0x1f3)]['getAncestorScale']();return Math[_0x440b74(0x1d5)](_0x7000b9,_0xc7089b);}}var Ii=Object[_0x57f41f(0x522)],pi=Object[_0x57f41f(0x191)],Ci=(_0x3dfb8e,_0xc4e71e,_0x2de170,_0x80ae8)=>{for(var _0x329bff=_0x80ae8>0x1?void 0x0:_0x80ae8?pi(_0xc4e71e,_0x2de170):_0xc4e71e,_0x434905=_0x3dfb8e['length']-0x1,_0x2dd484;_0x434905>=0x0;_0x434905--)(_0x2dd484=_0x3dfb8e[_0x434905])&&(_0x329bff=(_0x80ae8?_0x2dd484(_0xc4e71e,_0x2de170,_0x329bff):_0x2dd484(_0x329bff))||_0x329bff);return _0x80ae8&&_0x329bff&&Ii(_0xc4e71e,_0x2de170,_0x329bff),_0x329bff;},ve=(_0x297a2f,_0x180fa6)=>(_0xb9281b,_0x44bbc0)=>_0x180fa6(_0xb9281b,_0x44bbc0,_0x297a2f);let Ve=class extends a[_0x57f41f(0x1c5)]{constructor(_0x2d7606,_0x3f85eb,_0x52222c,_0x43923d,_0x59f8d7){const _0xfc1b92=_0x57f41f;super(),u(this,_0xfc1b92(0x4b4),[]),u(this,_0xfc1b92(0x3d5),[]),(this['_context']=_0x2d7606,this[_0xfc1b92(0x3a9)]=_0x3f85eb,this[_0xfc1b92(0x15d)]=_0x52222c,this[_0xfc1b92(0x547)]=_0x43923d,this[_0xfc1b92(0x548)]=_0x59f8d7,this[_0xfc1b92(0x326)]());}['_init'](){const _0x24dbdb=_0x57f41f,_0x47f629=this['_context'][_0x24dbdb(0x1d1)],_0x2e3bc0=this['_docSkeletonManagerService'];this[_0x24dbdb(0x1e2)](v[_0x24dbdb(0x3c7)]([this[_0x24dbdb(0x15d)]['getCollabCursors$'](_0x47f629),this[_0x24dbdb(0x548)][_0x24dbdb(0x21e)]])[_0x24dbdb(0x4bb)](E['map'](([_0x1a53e0,_0x3cc611])=>({'skeleton':_0x2e3bc0[_0x24dbdb(0x413)](),'cursors':[..._0x1a53e0[_0x24dbdb(0x458)]()][_0x24dbdb(0x1b9)](_0x54f35c=>({..._0x54f35c,'color':_0x3cc611[_0x54f35c['color']]}))})))[_0x24dbdb(0x3ee)](_0x444cf5=>{const _0x5264cf=_0x24dbdb;if(this[_0x5264cf(0x444)](),_0x444cf5){const {skeleton:_0x397ec2,cursors:_0x1bb62f}=_0x444cf5;this['_updateCollabCursors'](_0x397ec2,_0x1bb62f);}})),this['_initResize'](),this[_0x24dbdb(0x42d)]();}[_0x57f41f(0x352)](_0x257e1f,_0x40c76c){const _0x31e9fa=_0x57f41f,{scene:_0x56c54f,mainComponent:_0x191ee4}=this[_0x31e9fa(0x355)],_0x35333e=_0x40c76c[_0x31e9fa(0x366)](_0x462a0b=>new ht(_0x462a0b,_0x56c54f,_0x257e1f,_0x191ee4));this[_0x31e9fa(0x4b4)]=_0x35333e,this[_0x31e9fa(0x3d5)]=_0x40c76c;}[_0x57f41f(0x39c)](){const _0x254f58=_0x57f41f;this['_removeCollabCursors']();const {scene:_0x4f7dde,mainComponent:_0x1a1d66}=this['_context'],_0x3ee7c2=this[_0x254f58(0x3a9)]['getSkeleton'](),_0x50c697=this[_0x254f58(0x3d5)][_0x254f58(0x366)](_0x40749d=>new ht(_0x40749d,_0x4f7dde,_0x3ee7c2,_0x1a1d66));this[_0x254f58(0x4b4)]=_0x50c697;}[_0x57f41f(0x444)](){const _0x196b97=_0x57f41f;this[_0x196b97(0x4b4)][_0x196b97(0x50c)](_0x57eb6b=>_0x57eb6b['dispose']()),this[_0x196b97(0x4b4)]=[];}[_0x57f41f(0x42d)](){const _0xcea53d=_0x57f41f,_0x4a9b22=[N[_0xcea53d(0x146)]['id']];this[_0xcea53d(0x1e2)](this['_commandService'][_0xcea53d(0x36c)](_0x18c949=>{const _0x464821=_0xcea53d;_0x4a9b22[_0x464821(0x29a)](_0x18c949['id'])&&_0x18c949[_0x464821(0x15b)][_0x464821(0x1d1)]===this[_0x464821(0x355)][_0x464821(0x1d1)]&&this[_0x464821(0x39c)]();}));}[_0x57f41f(0x272)](){const _0x2a2b8d=_0x57f41f;this[_0x2a2b8d(0x1e2)](a[_0x2a2b8d(0x43e)](this['_context'][_0x2a2b8d(0x541)][_0x2a2b8d(0x1f1)])[_0x2a2b8d(0x4bb)](E[_0x2a2b8d(0x222)](_0xf23ea7=>_0xf23ea7[_0x2a2b8d(0x221)]===O[_0x2a2b8d(0x543)]['resize']),E[_0x2a2b8d(0x3ef)](0x10))[_0x2a2b8d(0x3ee)](()=>{const _0x2efe26=_0x2a2b8d;this[_0x2efe26(0x39c)]();}));}};Ve=Ci([ve(0x1,a[_0x57f41f(0x1ec)](se[_0x57f41f(0x292)])),ve(0x2,a[_0x57f41f(0x1ec)](ne)),ve(0x3,a[_0x57f41f(0x178)]),ve(0x4,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x41a)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends O[_0x57f41f(0x304)]{constructor(_0x4a0aeb,_0x531d60){const _0x100e16=_0x57f41f;super(_0x4a0aeb,_0x531d60),u(this,_0x100e16(0x539)),u(this,_0x100e16(0x416),!0x1),u(this,'_range'),u(this,_0x100e16(0x17e),''),u(this,'_labelPosition','top'),u(this,_0x100e16(0x23e)),(_0x531d60&&this[_0x100e16(0x33d)](_0x531d60),this[_0x100e16(0x210)][_0x100e16(0x362)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x100e16(0x362)](()=>this[_0x100e16(0x33d)]({'hovered':!0x1})));}['setShapeProps'](_0x9221c3){const _0x1f9a9c=_0x57f41f;var _0xd3a1b8,_0x2ba6d1,_0x232e7d,_0x191f1a,_0x2d6df4,_0x4b1d35;this[_0x1f9a9c(0x539)]=(_0xd3a1b8=_0x9221c3[_0x1f9a9c(0x21a)])!=null?_0xd3a1b8:this[_0x1f9a9c(0x539)],this[_0x1f9a9c(0x416)]=(_0x2ba6d1=_0x9221c3['hovered'])!=null?_0x2ba6d1:this[_0x1f9a9c(0x416)],this[_0x1f9a9c(0x17c)]=(_0x232e7d=_0x9221c3['range'])!=null?_0x232e7d:this[_0x1f9a9c(0x17c)],this[_0x1f9a9c(0x17e)]=(_0x191f1a=_0x9221c3[_0x1f9a9c(0x33e)])!=null?_0x191f1a:this[_0x1f9a9c(0x17e)],this[_0x1f9a9c(0x3b1)]=(_0x2d6df4=_0x9221c3[_0x1f9a9c(0x303)])!=null?_0x2d6df4:this[_0x1f9a9c(0x3b1)],this[_0x1f9a9c(0x23e)]=(_0x4b1d35=_0x9221c3[_0x1f9a9c(0x39d)])!=null?_0x4b1d35:this[_0x1f9a9c(0x23e)],this[_0x1f9a9c(0x1b1)]({'width':_0x9221c3['width'],'height':_0x9221c3[_0x1f9a9c(0x261)]});}[_0x57f41f(0x264)](_0x3ae152){const _0x3c0fed=_0x57f41f,{row:_0x3e9e33,column:_0x408179}=_0x3ae152;if(_0x3e9e33>=this[_0x3c0fed(0x17c)][_0x3c0fed(0x37a)]&&_0x3e9e33<=this[_0x3c0fed(0x17c)]['endRow']&&_0x408179>=this[_0x3c0fed(0x17c)][_0x3c0fed(0x282)]&&_0x408179<=this[_0x3c0fed(0x17c)][_0x3c0fed(0x45e)]){this[_0x3c0fed(0x33d)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x57f41f(0x51b)](_0x2491d8){return!0x1;}['_draw'](_0x590bd6){const _0x379e5c=_0x57f41f;O[_0x379e5c(0x3b9)]['drawWith'](_0x590bd6,{'width':this[_0x379e5c(0x1a3)],'height':this[_0x379e5c(0x261)],'strokeWidth':bi,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x379e5c(0x23e)]}),this['_hovered']&&(_0x590bd6[_0x379e5c(0x453)](),_0x590bd6[_0x379e5c(0x451)](0x1,0x0,0x0,0x1,this[_0x379e5c(0x1a3)],this[_0x379e5c(0x3b1)]===_0x379e5c(0x336)?0x0:-de),Oe[_0x379e5c(0x300)](_0x590bd6,{'text':this[_0x379e5c(0x17e)],'color':this[_0x379e5c(0x539)]}),_0x590bd6[_0x379e5c(0x35c)]());}}var Ti=Object[_0x57f41f(0x522)],Ri=Object[_0x57f41f(0x191)],Oi=(_0x4f9e63,_0xee171f,_0x5a55e9,_0x1a6e38)=>{const _0x41d449=_0x57f41f;for(var _0x58534a=_0x1a6e38>0x1?void 0x0:_0x1a6e38?Ri(_0xee171f,_0x5a55e9):_0xee171f,_0x2ce54f=_0x4f9e63[_0x41d449(0x460)]-0x1,_0x501250;_0x2ce54f>=0x0;_0x2ce54f--)(_0x501250=_0x4f9e63[_0x2ce54f])&&(_0x58534a=(_0x1a6e38?_0x501250(_0xee171f,_0x5a55e9,_0x58534a):_0x501250(_0x58534a))||_0x58534a);return _0x1a6e38&&_0x58534a&&Ti(_0xee171f,_0x5a55e9,_0x58534a),_0x58534a;},$e=(_0x34c1fd,_0x547fdd)=>(_0x3d0419,_0x1a789d)=>_0x547fdd(_0x3d0419,_0x1a789d,_0x34c1fd);const Di=0x1389;let We=class extends a['RxDisposable']{constructor(_0xc0eb7a,_0x395f2e,_0x3a82f5,_0x3baffc){const _0x29806a=_0x57f41f;super(),u(this,_0x29806a(0x3d5),new Set()),u(this,'_lastPointer',null),(this['_context']=_0xc0eb7a,this[_0x29806a(0x4cf)]=_0x395f2e,this[_0x29806a(0x15d)]=_0x3a82f5,this['_themeService']=_0x3baffc,this['_init']());}[_0x57f41f(0x326)](){const _0xca293e=_0x57f41f;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe'](E['takeUntil'](this[_0xca293e(0x43a)]),E[_0xca293e(0x237)](_0x4234da=>{const _0x2b332a=_0xca293e;if(_0x4234da){const _0x3479b5=_0x4234da[_0x2b332a(0x24b)];return v[_0x2b332a(0x3c7)](this[_0x2b332a(0x15d)][_0x2b332a(0x2cb)](this[_0x2b332a(0x355)][_0x2b332a(0x1d1)]),this[_0x2b332a(0x548)]['currentTheme$'])[_0x2b332a(0x4bb)](E['map'](([_0x5f103e,_0x38df32])=>{const _0x450466=new Map();return _0x5f103e['forEach']((_0xf0acc8,_0x278230)=>{const _0x1d5fe3=_0x1fa7;if(_0xf0acc8[_0x1d5fe3(0x2f6)]===_0x3479b5){const _0x196196={..._0xf0acc8};_0x196196['color']=_0x38df32[_0xf0acc8[_0x1d5fe3(0x21a)]],_0x450466[_0x1d5fe3(0x20b)](_0x278230,_0x196196);}}),{'skeleton':_0x4234da,'cursors':_0x450466};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0xca293e(0x3ee)](({skeleton:_0x570fe9,cursors:_0x2dc27b})=>{this['_removeCollabCursors'](),_0x570fe9&&this['_updateCollabCursors'](_0x570fe9,_0x2dc27b);}),this[_0xca293e(0x4cf)][_0xca293e(0x447)][_0xca293e(0x3ee)](_0x40198b=>{const _0x3f8857=_0xca293e;if(_0x40198b==null)return;const {skeleton:_0x3a251b}=_0x40198b,{scene:_0x244b13}=this[_0x3f8857(0x355)];_0x244b13[_0x3f8857(0x534)][_0x3f8857(0x362)](a[_0x3f8857(0x189)](_0x23022a=>{const _0x50a453=_0x3f8857;var _0x1a7837,_0x43fe3b;const {offsetX:_0x5619ef,offsetY:_0x1208c8}=_0x23022a,{x:_0x254042,y:_0x2085eb}=_0x244b13[_0x50a453(0x4e3)](O[_0x50a453(0x2b4)][_0x50a453(0x15a)]([_0x5619ef,_0x1208c8])),{scaleX:_0x3083c7,scaleY:_0x394255}=_0x244b13[_0x50a453(0x387)](),_0x1a203e=_0x244b13[_0x50a453(0x4cc)](te[_0x50a453(0x346)][_0x50a453(0x174)]),_0x3fc217=_0x244b13['getVpScrollXYInfoByPosToVp'](O[_0x50a453(0x2b4)][_0x50a453(0x15a)]([_0x254042,_0x2085eb]),_0x1a203e),_0x257bf2=_0x3a251b[_0x50a453(0x4be)](_0x5619ef,_0x1208c8,_0x3083c7,_0x394255,_0x3fc217);((_0x1a7837=this[_0x50a453(0x1ad)])==null?void 0x0:_0x1a7837['column'])===_0x257bf2[_0x50a453(0x244)]&&((_0x43fe3b=this[_0x50a453(0x1ad)])==null?void 0x0:_0x43fe3b[_0x50a453(0x16f)])===_0x257bf2[_0x50a453(0x16f)]||this[_0x50a453(0x3d5)]['forEach'](_0x55ebee=>{const _0x3540b5=_0x50a453;_0x55ebee[_0x3540b5(0x264)](_0x257bf2);});},0x64));});}[_0x57f41f(0x352)](_0x20d334,_0x8fc22c){const _0x52a634=_0x57f41f;var _0x5b6887;const _0x3e82c0=(_0x5b6887=this[_0x52a634(0x4cf)][_0x52a634(0x3ad)]())==null?void 0x0:_0x5b6887[_0x52a634(0x503)];if(!_0x3e82c0)return;const _0x8f8269=this['_getSheetObject']();if(!_0x8f8269)return;this[_0x52a634(0x3d5)]['forEach'](_0xf9074a=>{const _0x45858c=_0x52a634;_0xf9074a[_0x45858c(0x18d)]();});const {scene:_0xa57084}=_0x8f8269,_0x2b4e92=yi(Array['from'](_0x8fc22c[_0x52a634(0x458)]()))[_0x52a634(0x366)](_0xe3831b=>{const _0x53b994=_0x52a634,{color:_0x357156,range:_0x1afd4b,name:_0x68233a,selection:_0x3f7f40,sheetID:_0x434182}=_0xe3831b,{startColumn:_0x1cf6f8,startRow:_0x3eef5e,endColumn:_0x3c0c04,endRow:_0x59ccc5}=_0x1afd4b,_0x531ef7=te['getCoordByCell'](_0x3eef5e,_0x1cf6f8,_0xa57084,_0x3e82c0),_0x14c9af=te[_0x53b994(0x4ae)](_0x59ccc5,_0x3c0c04,_0xa57084,_0x3e82c0),{columnHeaderHeightAndMarginTop:_0x5248af}=_0x3e82c0,{startX:_0x1de0ec,startY:_0x2f719f}=_0x531ef7,{endX:_0x2c3b72,endY:_0x7420f0}=_0x14c9af,_0x88e26e=_0x2c3b72-_0x1de0ec,_0x2de171=_0x7420f0-_0x2f719f,_0x2f5dd6={'labelPosition':_0x2f719f-_0x5248af>=de?_0x53b994(0x361):_0x53b994(0x336),'sheetID':_0x434182,'range':_0x1afd4b,'color':_0x357156,'name':_0x68233a,'selection':_0x3f7f40,'left':_0x1de0ec,'top':_0x2f719f,'width':_0x88e26e,'height':_0x2de171,'evented':!0x1,'zIndex':Di};return new Pt(_0x68233a,_0x2f5dd6);});_0xa57084['addObjects'](_0x2b4e92,Ei),this[_0x52a634(0x3d5)]=new Set(_0x2b4e92);}['_removeCollabCursors'](){const _0x3d660f=_0x57f41f;var _0x4737d2;(_0x4737d2=this[_0x3d660f(0x3d5)])==null||_0x4737d2[_0x3d660f(0x50c)](_0x2908ab=>_0x2908ab[_0x3d660f(0x3a4)]());}[_0x57f41f(0x519)](){const _0x2adacd=_0x57f41f;return te['getSheetObject'](this['_context'][_0x2adacd(0x422)],this[_0x2adacd(0x355)]);}};We=Oi([$e(0x1,a[_0x57f41f(0x1ec)](te[_0x57f41f(0x42c)])),$e(0x2,a[_0x57f41f(0x1ec)](ne)),$e(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x41a)]))],We);function yi(_0x46a53d){const _0x5f0a66=_0x57f41f,_0x3222d6=new Map();return _0x46a53d['forEach'](_0x3ae5ce=>{const _0xbaa05b=_0x1fa7;if(_0x3222d6[_0xbaa05b(0x2c9)](_0x3ae5ce[_0xbaa05b(0x486)])){const _0x265ee4=_0x3222d6[_0xbaa05b(0x31f)](_0x3ae5ce[_0xbaa05b(0x486)]);_0x265ee4[_0xbaa05b(0x33e)]+=',\x20'+_0x3ae5ce[_0xbaa05b(0x33e)];}else _0x3222d6[_0xbaa05b(0x20b)](_0x3ae5ce['selection'],_0x3ae5ce);}),Array[_0x5f0a66(0x180)](_0x3222d6[_0x5f0a66(0x458)]());}var M=function(){const _0x1716a3=_0x57f41f;return M=Object['assign']||function(_0x18d58a){const _0x38f7e=_0x1fa7;for(var _0x3aef3b,_0x57621b=0x1,_0x1a44bc=arguments['length'];_0x57621b<_0x1a44bc;_0x57621b++){_0x3aef3b=arguments[_0x57621b];for(var _0x527a55 in _0x3aef3b)Object[_0x38f7e(0x29d)][_0x38f7e(0x42a)][_0x38f7e(0x19d)](_0x3aef3b,_0x527a55)&&(_0x18d58a[_0x527a55]=_0x3aef3b[_0x527a55]);}return _0x18d58a;},M[_0x1716a3(0x254)](this,arguments);},Ui=function(_0x1a7d51,_0x58bdf6){const _0x1dbff3=_0x57f41f;var _0x4306be={};for(var _0x6cb2cf in _0x1a7d51)Object[_0x1dbff3(0x29d)][_0x1dbff3(0x42a)]['call'](_0x1a7d51,_0x6cb2cf)&&_0x58bdf6['indexOf'](_0x6cb2cf)<0x0&&(_0x4306be[_0x6cb2cf]=_0x1a7d51[_0x6cb2cf]);if(_0x1a7d51!=null&&typeof Object[_0x1dbff3(0x39b)]=='function'){for(var _0x37b12e=0x0,_0x6cb2cf=Object['getOwnPropertySymbols'](_0x1a7d51);_0x37b12e<_0x6cb2cf[_0x1dbff3(0x460)];_0x37b12e++)_0x58bdf6[_0x1dbff3(0x456)](_0x6cb2cf[_0x37b12e])<0x0&&Object[_0x1dbff3(0x29d)][_0x1dbff3(0x470)][_0x1dbff3(0x19d)](_0x1a7d51,_0x6cb2cf[_0x37b12e])&&(_0x4306be[_0x6cb2cf[_0x37b12e]]=_0x1a7d51[_0x6cb2cf[_0x37b12e]]);}return _0x4306be;},Ze=P[_0x57f41f(0x3b8)](function(_0x22c4c3,_0x516bd3){const _0x389c19=_0x57f41f;var _0x2deb52=_0x22c4c3[_0x389c19(0x21f)],_0x1626ec=_0x22c4c3['id'],_0x196b2f=_0x22c4c3[_0x389c19(0x142)],_0x58b37d=_0x22c4c3[_0x389c19(0x185)],_0x2eafea=Ui(_0x22c4c3,[_0x389c19(0x21f),'id','className',_0x389c19(0x185)]),_0x210329='univerjs-icon\x20univerjs-icon-'[_0x389c19(0x22d)](_0x1626ec,'\x20')[_0x389c19(0x22d)](_0x196b2f||'')[_0x389c19(0x388)](),_0xb949aa=P['useRef']('_'[_0x389c19(0x22d)](Ni()));return wt(_0x2deb52,''[_0x389c19(0x22d)](_0x1626ec),{'defIds':_0x2deb52[_0x389c19(0x3e4)],'idSuffix':_0xb949aa['current']},M({'ref':_0x516bd3,'className':_0x210329},_0x2eafea),_0x58b37d);});function wt(_0x15c729,_0x11a4ae,_0x5a5524,_0x4ded74,_0x387b4b){const _0x2c08b5=_0x57f41f;return P[_0x2c08b5(0x505)](_0x15c729[_0x2c08b5(0x3f3)],M(M({'key':_0x11a4ae},Pi(_0x15c729,_0x5a5524,_0x387b4b)),_0x4ded74),(wi(_0x15c729,_0x5a5524)[_0x2c08b5(0x251)]||[])[_0x2c08b5(0x366)](function(_0x559106,_0x2f3af1){const _0x22af81=_0x2c08b5;return wt(_0x559106,''['concat'](_0x11a4ae,'-')[_0x22af81(0x22d)](_0x15c729[_0x22af81(0x3f3)],'-')[_0x22af81(0x22d)](_0x2f3af1),_0x5a5524,void 0x0,_0x387b4b);}));}function Pi(_0x3320eb,_0x171ed8,_0x48a0dd){const _0x239fb6=_0x57f41f;var _0x569d15=M({},_0x3320eb['attrs']);_0x48a0dd!=null&&_0x48a0dd[_0x239fb6(0x1d2)]&&_0x569d15[_0x239fb6(0x512)]==='colorChannel1'&&(_0x569d15['fill']=_0x48a0dd['colorChannel1']);var _0x30e32b=_0x171ed8[_0x239fb6(0x3e4)];return!_0x30e32b||_0x30e32b[_0x239fb6(0x460)]===0x0||(_0x3320eb[_0x239fb6(0x3f3)]===_0x239fb6(0x175)&&_0x569d15[_0x239fb6(0x1bc)]&&(_0x569d15[_0x239fb6(0x1bc)]=_0x569d15[_0x239fb6(0x1bc)]+_0x171ed8[_0x239fb6(0x4dd)]),Object[_0x239fb6(0x424)](_0x569d15)[_0x239fb6(0x50c)](function(_0x597ade){const _0x1a2095=_0x239fb6;var _0x4294ac=_0x597ade[0x0],_0x4ae163=_0x597ade[0x1];typeof _0x4ae163=='string'&&(_0x569d15[_0x4294ac]=_0x4ae163[_0x1a2095(0x132)](/url\(#(.*)\)/,_0x1a2095(0x23b)[_0x1a2095(0x22d)](_0x171ed8[_0x1a2095(0x4dd)],')')));})),_0x569d15;}function wi(_0x3d2a0e,_0x17335e){const _0x3f02c2=_0x57f41f;var _0x453dd7,_0x4559ff=_0x17335e[_0x3f02c2(0x3e4)];return!_0x4559ff||_0x4559ff[_0x3f02c2(0x460)]===0x0?_0x3d2a0e:_0x3d2a0e[_0x3f02c2(0x3f3)]===_0x3f02c2(0x148)&&(!((_0x453dd7=_0x3d2a0e[_0x3f02c2(0x251)])===null||_0x453dd7===void 0x0)&&_0x453dd7['length'])?M(M({},_0x3d2a0e),{'children':_0x3d2a0e[_0x3f02c2(0x251)]['map'](function(_0x126d3d){const _0x51db87=_0x3f02c2;return typeof _0x126d3d[_0x51db87(0x3e1)]['id']==_0x51db87(0x2a8)&&_0x4559ff&&_0x4559ff[_0x51db87(0x456)](_0x126d3d['attrs']['id'])>-0x1?M(M({},_0x126d3d),{'attrs':M(M({},_0x126d3d[_0x51db87(0x3e1)]),{'id':_0x126d3d[_0x51db87(0x3e1)]['id']+_0x17335e[_0x51db87(0x4dd)]})}):_0x126d3d;})}):_0x3d2a0e;}function Ni(){const _0x2d2d2b=_0x57f41f;return Math[_0x2d2d2b(0x2f7)]()['toString'](0x24)[_0x2d2d2b(0x3ba)](0x2,0x8);}Ze['displayName']=_0x57f41f(0x480);var Mi={'tag':_0x57f41f(0x171),'attrs':{'fill':_0x57f41f(0x20d),'viewBox':_0x57f41f(0x47e),'width':_0x57f41f(0x206),'height':_0x57f41f(0x206)},'children':[{'tag':'g','attrs':{'clipPath':_0x57f41f(0x14c)},'children':[{'tag':'path','attrs':{'stroke':_0x57f41f(0x2ec),'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':_0x57f41f(0x477),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x57f41f(0x148),'attrs':{},'children':[{'tag':_0x57f41f(0x48d),'attrs':{'id':_0x57f41f(0x46f)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x57f41f(0x18e)}}]}]}],'defIds':[_0x57f41f(0x46f)]},Nt=P[_0x57f41f(0x3b8)](function(_0x5f4e9f,_0x18bed1){const _0x314cc8=_0x57f41f;return P['createElement'](Ze,Object[_0x314cc8(0x1c2)]({},_0x5f4e9f,{'id':_0x314cc8(0x42b),'ref':_0x18bed1,'icon':Mi}));});Nt[_0x57f41f(0x3d9)]=_0x57f41f(0x32e);var Ai={'tag':_0x57f41f(0x171),'attrs':{'fill':'none','viewBox':_0x57f41f(0x44c),'width':_0x57f41f(0x206),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x57f41f(0x35f)},'children':[{'tag':_0x57f41f(0x1a6),'attrs':{'stroke':_0x57f41f(0x2ec),'d':_0x57f41f(0x140),'strokeLinecap':_0x57f41f(0x477),'strokeLinejoin':_0x57f41f(0x477),'strokeWidth':1.2}}]},{'tag':_0x57f41f(0x148),'attrs':{},'children':[{'tag':_0x57f41f(0x48d),'attrs':{'id':_0x57f41f(0x212)},'children':[{'tag':'path','attrs':{'fill':_0x57f41f(0x3a3),'d':_0x57f41f(0x18e),'transform':_0x57f41f(0x2fb)}}]}]}],'defIds':[_0x57f41f(0x212)]},Mt=P[_0x57f41f(0x3b8)](function(_0x46e702,_0x12434c){const _0x488ff7=_0x57f41f;return P['createElement'](Ze,Object[_0x488ff7(0x1c2)]({},_0x46e702,{'id':_0x488ff7(0x426),'ref':_0x12434c,'icon':Ai}));});Mt[_0x57f41f(0x3d9)]=_0x57f41f(0x147);function At(_0x3cde9a){const _0x2455ff=_0x57f41f;var _0x1f15eb,_0x230d68,_0x4abfbf='';if(typeof _0x3cde9a=='string'||typeof _0x3cde9a==_0x2455ff(0x1fe))_0x4abfbf+=_0x3cde9a;else{if(typeof _0x3cde9a==_0x2455ff(0x412)){if(Array[_0x2455ff(0x2f8)](_0x3cde9a)){var _0x2873c1=_0x3cde9a[_0x2455ff(0x460)];for(_0x1f15eb=0x0;_0x1f15eb<_0x2873c1;_0x1f15eb++)_0x3cde9a[_0x1f15eb]&&(_0x230d68=At(_0x3cde9a[_0x1f15eb]))&&(_0x4abfbf&&(_0x4abfbf+='\x20'),_0x4abfbf+=_0x230d68);}else{for(_0x230d68 in _0x3cde9a)_0x3cde9a[_0x230d68]&&(_0x4abfbf&&(_0x4abfbf+='\x20'),_0x4abfbf+=_0x230d68);}}}return _0x4abfbf;}function Li(){const _0x16c0cf=_0x57f41f;for(var _0x7e538d,_0x453c86,_0x28e449=0x0,_0x257dfe='',_0x39a203=arguments[_0x16c0cf(0x460)];_0x28e449<_0x39a203;_0x28e449++)(_0x7e538d=arguments[_0x28e449])&&(_0x453c86=At(_0x7e538d))&&(_0x257dfe&&(_0x257dfe+='\x20'),_0x257dfe+=_0x453c86);return _0x257dfe;}const ji=_0x57f41f(0x18a),$i=_0x57f41f(0x313),Hi=_0x57f41f(0x3d2),xi='univer-online',ki=_0x57f41f(0x33f),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x25f2cf){const _0x227696=_0x57f41f;switch(_0x25f2cf){case U['OFFLINE']:return _0x227696(0x535);case U[_0x227696(0x21c)]:return'collabStatus.conflict';case U['FETCH_MISS']:return _0x227696(0x4ca);case U[_0x227696(0x233)]:return _0x227696(0x215);case U[_0x227696(0x508)]:case U['AWAITING']:case U['AWAITING_WITH_PENDING']:return _0x227696(0x133);case U[_0x227696(0x3c5)]:return'collabStatus.synced';}}function Lt(_0x1ec028){const _0x4657a5=_0x57f41f,{status$:_0x4c3dd5}=_0x1ec028,_0x5bb162=A[_0x4657a5(0x3f9)](_0x4c3dd5,U['NOT_COLLAB']),_0x462bb7=a[_0x4657a5(0x2a9)](a['LocaleService']),_0x2408ae=a[_0x4657a5(0x2a9)](exports[_0x4657a5(0x19b)]),_0x547e5f=_0x5bb162!==U[_0x4657a5(0x2d2)],_0x2edbe7=_0x462bb7['t'](Bi(_0x5bb162)),_0x3e1d7a=Li(he['onlineStatus'],{[he[_0x4657a5(0x398)]]:_0x547e5f,[he['offline']]:!_0x547e5f}),_0x47ba26=_0x547e5f?P[_0x4657a5(0x505)](Mt,null):P[_0x4657a5(0x505)](Nt,null),_0x1bb165=P['useCallback'](()=>{const _0x5482b9=_0x4657a5;_0x547e5f||_0x2408ae[_0x5482b9(0x17f)]();},[_0x547e5f,_0x2408ae]);function _0x48866a(){const _0x284395=_0x4657a5;return P[_0x284395(0x505)](_0x284395(0x18b),{'className':_0x3e1d7a,'onClick':_0x1bb165},P[_0x284395(0x505)](_0x284395(0x18b),{'className':he[_0x284395(0x2ef)]},_0x47ba26),P['createElement'](_0x284395(0x18b),{'className':he[_0x284395(0x298)]},_0x2edbe7));}return _0x547e5f?_0x48866a():P[_0x4657a5(0x505)](X['Tooltip'],{'title':_0x462bb7['t'](_0x4657a5(0x3ca))},_0x48866a());}var Vi=Object['defineProperty'],Wi=Object[_0x57f41f(0x191)],Fi=(_0x41c816,_0x46c83b,_0x2373af,_0x317377)=>{const _0x5470f5=_0x57f41f;for(var _0x13d3e6=_0x317377>0x1?void 0x0:_0x317377?Wi(_0x46c83b,_0x2373af):_0x46c83b,_0x22d2b6=_0x41c816[_0x5470f5(0x460)]-0x1,_0x195ce2;_0x22d2b6>=0x0;_0x22d2b6--)(_0x195ce2=_0x41c816[_0x22d2b6])&&(_0x13d3e6=(_0x317377?_0x195ce2(_0x46c83b,_0x2373af,_0x13d3e6):_0x195ce2(_0x13d3e6))||_0x13d3e6);return _0x317377&&_0x13d3e6&&Vi(_0x46c83b,_0x2373af,_0x13d3e6),_0x13d3e6;},ge=(_0x518d9b,_0x1842dd)=>(_0x4d272d,_0x41ea69)=>_0x1842dd(_0x4d272d,_0x41ea69,_0x518d9b);exports[_0x57f41f(0x2bf)]=class extends a['Disposable']{constructor(_0x59d361,_0x166ca9,_0x36e423,_0x112d56){const _0x1ede16=_0x57f41f;super(),u(this,_0x1ede16(0x524),new v['BehaviorSubject'](U[_0x1ede16(0x233)])),(this[_0x1ede16(0x131)]=_0x59d361,this['_uiPartsService']=_0x166ca9,this[_0x1ede16(0x331)]=_0x36e423,this[_0x1ede16(0x186)]=_0x112d56,this[_0x1ede16(0x2ab)](),this[_0x1ede16(0x37c)]());}[_0x57f41f(0x37c)](){const _0x3cf3e1=_0x57f41f;this[_0x3cf3e1(0x1e2)](this[_0x3cf3e1(0x131)]['focused$'][_0x3cf3e1(0x4bb)](v[_0x3cf3e1(0x237)](()=>{const _0x5b7c8b=_0x3cf3e1,_0x4363a6=this[_0x5b7c8b(0x131)][_0x5b7c8b(0x324)]();return _0x4363a6?this[_0x5b7c8b(0x186)][_0x5b7c8b(0x4c9)](_0x4363a6[_0x5b7c8b(0x263)]()):v['of'](null);}),v[_0x3cf3e1(0x237)](_0x2016e5=>_0x2016e5?_0x2016e5[_0x3cf3e1(0x26c)]:v['of'](U[_0x3cf3e1(0x233)])))[_0x3cf3e1(0x3ee)](_0x5aa6e5=>{const _0x360070=_0x3cf3e1;this['_status$'][_0x360070(0x49c)](_0x5aa6e5);}));}[_0x57f41f(0x2ab)](){const _0x140af2=_0x57f41f;this[_0x140af2(0x1e2)](this['_uiPartsService'][_0x140af2(0x4ec)](A[_0x140af2(0x504)][_0x140af2(0x43d)],()=>a['connectInjector'](Gi({'status$':this['_status$'][_0x140af2(0x41e)]()}),this[_0x140af2(0x331)])));}},exports['DesktopCollaborationStatusDisplayController']=Fi([ge(0x0,a['IUniverInstanceService']),ge(0x1,A[_0x57f41f(0x228)]),ge(0x2,a['Inject'](a[_0x57f41f(0x410)])),ge(0x3,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x34d)]))],exports['DesktopCollaborationStatusDisplayController']);function Gi(_0x43de61){const {status$:_0xdeadbe}=_0x43de61;return function(){return P['createElement'](Lt,{'status$':_0xdeadbe});};}const Qe=a['createIdentifier'](_0x57f41f(0x1f5));var Yi=Object[_0x57f41f(0x522)],Ki=Object[_0x57f41f(0x191)],Xi=(_0x1f4c92,_0x357d1c,_0x4f07ea,_0x374105)=>{const _0x3008bb=_0x57f41f;for(var _0x28508e=_0x374105>0x1?void 0x0:_0x374105?Ki(_0x357d1c,_0x4f07ea):_0x357d1c,_0x20b7f0=_0x1f4c92[_0x3008bb(0x460)]-0x1,_0x23bb6f;_0x20b7f0>=0x0;_0x20b7f0--)(_0x23bb6f=_0x1f4c92[_0x20b7f0])&&(_0x28508e=(_0x374105?_0x23bb6f(_0x357d1c,_0x4f07ea,_0x28508e):_0x23bb6f(_0x28508e))||_0x28508e);return _0x374105&&_0x28508e&&Yi(_0x357d1c,_0x4f07ea,_0x28508e),_0x28508e;},ee=(_0x248b96,_0x4e49da)=>(_0x4764d2,_0x35393d)=>_0x4e49da(_0x4764d2,_0x35393d,_0x248b96);exports[_0x57f41f(0x327)]=class extends a[_0x57f41f(0x1c5)]{constructor(_0xa1cabe,_0x31e264,_0x3db53e,_0x126c15,_0x4c0229,_0x264ed1){const _0x13a280=_0x57f41f;super(),this[_0x13a280(0x4e1)]=_0xa1cabe,this[_0x13a280(0x181)]=_0x31e264,this['_commandService']=_0x3db53e,this['_localCacheService']=_0x126c15,this['_snapshotService']=_0x4c0229,_0x264ed1?_0x264ed1==null||_0x264ed1[_0x13a280(0x392)]()[_0x13a280(0x407)](()=>this[_0x13a280(0x326)]()):(this['_logService'][_0x13a280(0x2e5)](_0x13a280(0x4b1),_0x13a280(0x204)),this[_0x13a280(0x326)]());}async[_0x57f41f(0x326)](){const _0x39b44b=_0x57f41f,_0x15254d=this[_0x39b44b(0x4e1)][_0x39b44b(0x41d)]('unit'),_0x4d6b80=this[_0x39b44b(0x4e1)][_0x39b44b(0x41d)](_0x39b44b(0x221));if(!_0x15254d||!_0x4d6b80){this[_0x39b44b(0x181)][_0x39b44b(0x2e5)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x4d6b80)){case $[_0x39b44b(0x197)]:{const _0x549eb6=await this['_loadSheet'](_0x15254d);this[_0x39b44b(0x1bf)](_0x549eb6);break;}case $['UNIVER_DOC']:{await this[_0x39b44b(0x432)](_0x15254d);break;}default:{this[_0x39b44b(0x181)]['error'](_0x39b44b(0x4b1),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x57f41f(0x1bf)](_0x93e00){const _0x5a7acc=_0x57f41f;await this[_0x5a7acc(0x4ce)](_0x93e00),_0x93e00[_0x5a7acc(0x277)][_0x5a7acc(0x4bb)](v[_0x5a7acc(0x12b)](this[_0x5a7acc(0x43a)]))[_0x5a7acc(0x3ee)](_0x45719d=>{const _0x471ed4=_0x5a7acc;_0x45719d&&this[_0x471ed4(0x2f2)](_0x45719d);}),this[_0x5a7acc(0x4e1)]['urlChange$']['pipe'](v[_0x5a7acc(0x12b)](this[_0x5a7acc(0x43a)]))['subscribe'](()=>this[_0x5a7acc(0x4ce)](_0x93e00));}[_0x57f41f(0x2f2)](_0x873a1,_0x42020b=!0x1){const _0x846eb6=_0x57f41f,_0x597785=this[_0x846eb6(0x4e1)][_0x846eb6(0x41d)](_0x846eb6(0x44a));_0x873a1[_0x846eb6(0x255)]()!==_0x597785&&this['_urlService']['setParam'](_0x846eb6(0x44a),_0x873a1[_0x846eb6(0x255)](),_0x42020b);}async[_0x57f41f(0x4ce)](_0x2c9fe5){const _0x28b92f=_0x57f41f;var _0xa3e27a;const _0x2f07e4=this[_0x28b92f(0x4e1)][_0x28b92f(0x41d)](_0x28b92f(0x44a));if(!_0x2f07e4||!_0x2c9fe5[_0x28b92f(0x446)](_0x2f07e4)){const _0x8e822b=_0x2c9fe5[_0x28b92f(0x4ff)]()[0x0],_0x27e495=_0x2c9fe5['getSheetBySheetId'](_0x8e822b);if(!_0x27e495)return;this[_0x28b92f(0x2f2)](_0x27e495,!0x0),await this[_0x28b92f(0x547)][_0x28b92f(0x449)](C[_0x28b92f(0x34c)]['id'],{'unitId':_0x2c9fe5['getUnitId'](),'subUnitId':_0x8e822b});return;}((_0xa3e27a=_0x2c9fe5[_0x28b92f(0x2ad)]())==null?void 0x0:_0xa3e27a[_0x28b92f(0x255)]())!==_0x2f07e4&&await this[_0x28b92f(0x547)][_0x28b92f(0x449)](C[_0x28b92f(0x34c)]['id'],{'unitId':_0x2c9fe5['getUnitId'](),'subUnitId':_0x2f07e4});}async[_0x57f41f(0x1ca)](_0x23195e){const _0x42a5f4=_0x57f41f;let _0x1fcf38=0x0;const _0x2a8c8b=await this['_localCacheService'][_0x42a5f4(0x1e0)](_0x23195e);return _0x2a8c8b&&(_0x2a8c8b[_0x42a5f4(0x47a)]||_0x2a8c8b[_0x42a5f4(0x506)][_0x42a5f4(0x460)]!==0x0)&&(_0x1fcf38=_0x2a8c8b[_0x42a5f4(0x183)]),_0x1fcf38===0x0&&this[_0x42a5f4(0x181)][_0x42a5f4(0x2e5)](_0x42a5f4(0x4b1),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x42a5f4(0x16b)][_0x42a5f4(0x420)](_0x23195e,_0x1fcf38);}async['_loadDoc'](_0x151ad7){const _0xbf976b=_0x57f41f;let _0x2b8670=0x0;const _0x219152=await this['_localCacheService'][_0xbf976b(0x1e0)](_0x151ad7);return _0x219152&&(_0x219152[_0xbf976b(0x47a)]||_0x219152[_0xbf976b(0x506)]['length']!==0x0)&&(_0x2b8670=_0x219152[_0xbf976b(0x183)]),_0x2b8670===0x0&&this[_0xbf976b(0x181)][_0xbf976b(0x2e5)]('[DataLoaderController]',_0xbf976b(0x30f)),this['_snapshotService']['loadDoc'](_0x151ad7,_0x2b8670);}},exports[_0x57f41f(0x327)]=Xi([ee(0x0,Qe),ee(0x1,a['ILogService']),ee(0x2,a['ICommandService']),ee(0x3,a['Inject'](exports[_0x57f41f(0x4a8)])),ee(0x4,a['Inject'](_[_0x57f41f(0x20f)])),ee(0x5,a[_0x57f41f(0x177)](Kt[_0x57f41f(0x2d8)]))],exports[_0x57f41f(0x327)]);var qi=Object[_0x57f41f(0x522)],zi=Object[_0x57f41f(0x191)],Ji=(_0x1417df,_0x2180ee,_0x9c0f3,_0x3951de)=>{const _0x11b160=_0x57f41f;for(var _0xd3d246=_0x3951de>0x1?void 0x0:_0x3951de?zi(_0x2180ee,_0x9c0f3):_0x2180ee,_0x528764=_0x1417df[_0x11b160(0x460)]-0x1,_0x20de58;_0x528764>=0x0;_0x528764--)(_0x20de58=_0x1417df[_0x528764])&&(_0xd3d246=(_0x3951de?_0x20de58(_0x2180ee,_0x9c0f3,_0xd3d246):_0x20de58(_0xd3d246))||_0xd3d246);return _0x3951de&&_0xd3d246&&qi(_0x2180ee,_0x9c0f3,_0xd3d246),_0xd3d246;},_t=(_0x59d900,_0x35fd6d)=>(_0x2cffb0,_0x4d93d3)=>_0x35fd6d(_0x2cffb0,_0x4d93d3,_0x59d900);const Zi=_0x57f41f(0x4a0),Qi=_0x57f41f(0x382);let Ce=class extends a[_0x57f41f(0x1b5)]{constructor(_0x1eebd2,_0x5ae679){const _0x404a60=_0x57f41f;super(),this['_univerInstanceService']=_0x1eebd2,this[_0x404a60(0x172)]=_0x5ae679,this[_0x404a60(0x326)]();}[_0x57f41f(0x326)](){const _0x46be79=_0x57f41f;this[_0x46be79(0x1e2)](this['_univerInstanceService'][_0x46be79(0x490)][_0x46be79(0x3ee)](()=>{const _0x16967f=_0x46be79;var _0x102b78;const _0x4cb8d3=this[_0x16967f(0x131)][_0x16967f(0x324)]();let _0x135f87=(_0x102b78=this[_0x16967f(0x172)][_0x16967f(0x37f)](Zi))!=null?_0x102b78:Qi;_0x4cb8d3 instanceof a['Workbook']&&(_0x135f87=_0x4cb8d3['name']),document[_0x16967f(0x164)]=_0x135f87;}));}};Ce=Ji([_t(0x0,a[_0x57f41f(0x546)]),_t(0x1,a[_0x57f41f(0x435)])],Ce);function _0xf60c(){const _0x468e35=['toRgbString','arc','defIds','_initEventListeners','LOCAL_CACHE_INTERVAL_KEY','_anchor','IBeforeCloseService','_getMergeRange','IContextService','lineTo','_handleLeaveEvent','url','subscribe','throttleTime','105kSwSdZ','size','catch','tag','_colorAssignService','findNodePositionByCharIndex','toggleOnline','_assignedColors','&source=','useObservable','awaiting_with_pending','AuthzIoHttpService','evenodd','jiqing500','LIVESHARE_REQUEST_HOST','_imageSourceCache','UNKNOWN_CMD','with','MergeInterceptorFactory','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','LICENSE_MAX_UNITS_EXCEEDED','LocaleService','COLLAB_WEB_SOCKET_URL','then','WebURLService','reverse','saveOfflineData','blue400','_collaborationSessionService','_syncEditingCollabCursorService','reqId','editing\x20status\x20changed\x20to','Injector','Error','object','getSkeleton','startsWith','/universer-api/comb','_hovered','getRandomValues','_transitionLocked','APPLY_REJECT','ThemeService','isTransformMutationsWithChangesetSuccess','message$','getParam','asObservable','getTypeOfUnitDisposed$','loadSheet','collab-text-range-','unit','slice','entries','_docTransformIMECacheService','on-line-single','/universer-api/stream/file/upload','SheetsSelectionsService','_startDocCollabCursor','hasOwnProperty','off-line-single','SheetSkeletonManagerService','_initCommandExecutedListener','_throwTelemetryCollaborationNewChangeset','registerRefRange','_hover','pluginName','_loadDoc','COMPRESS_MUTATION_SEND','ImageIoService','IConfigService','ONLINE','session.room-full','event$','UNIVER_SLIDE','dispose$','AUTHZ_URL_KEY','WebSocketService','HEADER_MENU','fromEventSubject','onSyncEditingCollabCursor','_handleEvent','RevisionService','parseChangesetToProtocol','_userManagerService','_removeCollabCursors','_entityInit$','getSheetBySheetId','currentSkeleton$','onTransformRemoteChangesetByIMECache','executeCommand','subunit','_ensureSubject','0\x200\x2017\x2016','handleInsertRangeMoveDown','setCurrentUser','doc.mutation.rich-text-editing','listRoles','transform','_singleActiveUnitService','save','fetch_missing','fetchMissingChangesets','indexOf','_startTelemetryCollaborationNewChangeset','values','getDeserializedSheetBlock','CompressMutationService','[OfflineState]:\x20received\x20acknowledgement.','getCurrentUser','HTTPService','endColumn','isTransformChangesetsSuccess','length','uploadFileServerUrl','[UniverCollaborationClientPlugin]','INVALID_ARGUMENT','41128mZOrSE','generateRandomId','cmd','font','session.collaboration-timeout','mergeOverrideWithDependencies','_renderManagerService','SEND_CHANGESET_TIMEOUT','_socketMessageSubscription','FAIL','unit-cache-','off-line-single_clip0_910_343','propertyIsEnumerable','COMPRESS_MUTATION_APPLY','collaboration-session-retry','_clearCollaborationTimeoutTimer','batchAllowed','LIVESHARE_TERMINATE','sequenceExecute','round','/-/object/list','resourceIDs','awaitingChangeset','send','_awaitingChangeset','snapshot','0\x200\x2016\x2016','_candidateSocket','UniverIcon','getActiveRange','fromEvent','_shapes','YUUMI_URL_COL_OUT_OF_RANGE','replaceTextRanges','selection','getMember','getRenderById','JOINING','PERMISSION_DENIED','_tryReconnect','conflict.content','clipPath','CollaborationEvent','contains','focused$','/rev/','_scheduleHeartbeat','textEncoder','cursorInfo','_onRefRangeChange','LIVESHARE_FETCH_OPERATIONS','method','_httpService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_notificationService','debounceTime','next','_toggleOffline','getRangePointData','YUUMI_SUBSCRIPTION_NOT_FOUND','DEFAULT_FILE_NAME','SetSelectionsOperation','deleteCollaborator','enableLocalCache','complete','onRemoteChangeset','MSG_FOR_ERROR','CommandType','LocalCacheService','sessionStatus','createCollaborator','...','fillStyle','exhaustSavingTask','getCoordByCell','USERS_LEAVE','/universer-api/authz','[DataLoaderController]','deepClone','serializeRangeWithSheet','_cursorShapes','createSocket','_timeoutTimer','POST','registerOnClose','_messageService','react','pipe','274603anMymP','newValue','getCellPositionByOffset','onCommentUpdate','transformIMECache','capture','reject','_onRemoteChangeset','LICENSE_IMPORT_SIZE_EXCEEDED','_stopTelemetryCollaborationNewChangeset','registerBeforeClose','_render','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','getCollabEntity$','collabStatus.fetchMiss','_transformSelections','getViewport','_telemetryService','_updateSubUnitFromURLParams','_sheetSkeletonManagerService','synced','IHTTPImplementation','PERMISSION_REJ','collab-rect-range-','_onCursorUpdate','UNDEFINED','_submitChangeset','objectActions','delay','_waitCount','onload','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','updateOfflineData','idSuffix','_scheduleCollaborationTimeoutTimer','find','WorkbookEditablePermission','_urlService','_startCollaboration','getRelativeToViewportCoord','IDLE','hide','headers','_collabSessionService','_roomMembers$','Undefined','getResourcesRequest','createInstance','registerComponent','onPointerLeave$','ranges','isActive','handleMoveRange','pauseCollaboration','_saveCache','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_queuedRemoteChangesets','BASE64','UniverInstanceType','setInterval','clearInterval','toggleOffline','appendMutation','now','EXCHANGE_SIGN_URL_SERVER_URL_KEY','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onRecvEvent','getUnhiddenWorksheets','CollaborationEntity','UNIVER_PROJECT','_drawRectRange','skeleton','BuiltInUIPart','createElement','mutations','getLatestCsReqIdBySid','PENDING','clearTimeout','text','_clearUndo','forEach','_shouldReportTelemetry','removeMember','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','rng','LOGIN_URL_KEY','fill','_scheduleSaving','@univerjs/engine-formula','\x20-\x20','fetchMiss','_instanceService','resend','_getSheetObject','/block/','triggerDblclick','HEARTBEAT_TIMEOUT','encodeURIComponent','_revisionService','update','IAuthzIoService','_selfUnitIDs','defineProperty','_updateStatus','_status$','closePath','handleInsertCol','[PendingState]:\x20received\x20rejection.','HELLO','_clearRedo','_createHandler','distinctUntilChanged','EmptyMutation','getAttachHeader','getCurrentRevOfUnit','onMissingChangesets','workbook','_disabled','_clearLocalCache','assignAColorForMemberID','onPointerMove$','collabStatus.offline','_eventUnsubscribe','collabWebSocketUrl','eventID','_color','isTransformMutationsWithChangesetFailure','ImageSourceType','getUnitOnRev','NodePositionConvertToCursor','OTHER_CLIENTS_EDITING','SNAPSHOT_SERVER_URL_KEY','setTimeout','engine','error','TRANSFORM_CHANGE_OBSERVABLE_TYPE','2sdvziQ','reduce','IUniverInstanceService','_commandService','_themeService','ILocalStorageService','SNAPSHOT_URL_KEY','unshift','Subject','JOIN','_checkMissing','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_members','registerRenderModule','ITransformService','TEXT_RANGE_LAYER_INDEX','min','responseType','takeUntil','put','enableSingleActiveInstanceLock','_listenToOnlineEvent','_onRemoteRejected','transformUndoRedo','_univerInstanceService','replace','collabStatus.syncing','_registerRenderDependencies','_colorIndex','bind','collaboration.closeRoom','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','compose','_unitStatus','JSONX','SessionStatus','onRemoteAck','_HTTPService','target','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','failed\x20to\x20apply\x20missed\x20changesets!','className','COLLAB_SUBMIT_CHANGESET_URL','ISnapshotServerService','getMemberID','SetDocZoomRatioOperation','OnLineSingle','defs','RETRY_CONNECTING_MAX_COUNT','Unknown\x20user','updateMember','url(#off-line-single_clip0_910_343)','snapshotServerUrl','LICENSE_DISTRO_REJECTED','/object','add','touchDependencies','newCsEvent','UPDATE_CURSOR','_snapshotServerService','_acknowledgedAwaitingChangeset','774792cEPNyc','/role','socket\x20open.','clear','FromArray','params','IRenderManagerService','_collabCursorController','actions','_initModules','updateCollaborator','[CollaborationSession]','ILogService','members','title','_onRemoteACK','socketService','_createSocket','getMergeData','IPermissionService','_changesetSessionId','_snapshotService','result','handleInsertRow','@univerjs/telemetry','row','/unit/','svg','_configService','getColor','VIEW_MAIN','use','getItem','Optional','ICommandService','textRanges','state$','_replayCachedMutations','_range','location','_name','reconnect','from','_logService','_http','rev','_fetchMissChangesets','extend','_collaborationController','[CollaborationSessionService]','onSendChangeset','debounce','univer-online-status-icon','div','deserializeToCombResponse','makeDirty','M0\x200H16V16H0z','roomMembers$','_localCacheService','getOwnPropertyDescriptor','startTime','createIdentifier','_transformRemoteChangesetByIMECache','ERROR_IMAGE','deserializeRangeWithSheet','UNIVER_SHEET','data','/universer-api/snapshot/','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','CollaborationSessionService','c1Prime','call','APPLY_DUPLICATED','setUndoRedoMutationParamsCache','body','parse','closeSession','width','COLORS','_onCursorDelete','path','UNIVER_DOC','\x0aAfter:\x20','INTERNAL_ERROR','image/jpg','SetTextSelectionsOperation','_replaceFileID','_lastPointer','error$','_transformUndoredo','LocalUndoRedoService','transformByState','_type','onlyLocal','Warning','Disposable','YUUMI_UNABLE_LOAD_URL','/collaborator','Rectangle','flatMap','_onCombEvent','ColorKit','xlink:href','sessionStatus$','_telemetryInfo','_setupSubUnitSync','\x20in\x20_schedule.','@univerjs/rpc','assign','_createInitialStateImpl','roomInfos','RxDisposable','HEARTBEAT_INTERVAL_KEY','1524050gLqxRW','InsertSheetMutation','unknown','_loadSheet','collaMsg','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_permissionService','/new_changes','MessageType','DocSelectionManagerService','unitId','colorChannel1','collaboration.single-unit.warning','_commentUpdate$','max','_handleHover','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','state','_docTransformSelectionsService','IURLService','_retryCount','resolve','setItem','randomUUID','loadOfflineData','getUnitStatus$','disposeWithMe','getInterceptPoints','transformMutation','_handler','_sendHeartbeat','_changesetReqId','sheets','[PendingState]:\x20received\x20acknowledgement.','RegularPolygon','HttpImport','Inject','_state$','YUUMI_RATE_OVER_LIMIT','@univerjs-pro/license','rxjs','onTransformChange$','disableLocalCache','_scene','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','uni.network.url-service','ws://127.0.0.1:8000/universer-api/comb/connect','DisposableCollection','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','toDisposable','save\x20fail\x20reason\x20is\x20','enableOfflineEditing','_getSaveTimeout','history','number','routeKey','addObject','getImage','/fetchmissing?from=','_send','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','readAsDataURL','1em','objectID','editingUnit','setParam','_getAPIPrefixPath','set','memberID','none','_hideTimer','SnapshotService','onPointerEnter$','purple300','on-line-single_clip0_910_349','TOO_MANY_REQUESTS','/-/object/-/batch_allowed','collabStatus.notCollab','collaboration-client.config','not_collab','setConfig','_drawAnchor','color','_syncEditingCollabCursor','CONFLICT','UUID','currentTheme$','icon','HttpExport','type','filter','DocCollaborationEntity','authzUrl','file','USERS_ENTER','_getUndoStack','IUIPartsService','UNIVER_UNKNOWN','conflict','UNKNOWN_CODE','fillText','concat','_waitForHeartbeatResponse','permission.title','onTransformSelections','_initMergeInterceptor','handleIRemoveCol','NOT_COLLAB','roomMembers','_collaborationTimeoutTimer','originalMeta','switchMap','b64DecodeUnicode','collaboration_new_changeset','_schedule','url(#$1','removeParam','APPLY_REVISION_CONFILICT','_backgroundColor','origin','RefRangeService','take','_unitOnClients','NO_OTHER_CLIENTS_EDITING','column','isPermissionRej','_onFetchMissResult','enableAuthServer','_pendingMutations','_getRedoStack','updateCursorEvent','sheetId','_initUnitPermissionChange','_sessions','IUndoRedoService','/object/','src','children','_onLocalMutation','CollaborationSocketService','apply','getSheetId','_getSignURL','?url=','toString','_clearHeartbeatTimer','fromCollab','_scheduleTimestamp','Tools','urlChange$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','beginPath','cursorInfo$','height','rgba(255,\x20255,\x20255,\x200.01)','getUnitId','onMouseMove','AWAITING','selections','interceptor','COLLAB_WEB_SOCKET_URL_KEY','CHANGESET_ACK','_executeRemoteChangeset','_updateLocalCache','status$','@univerjs/docs','_joinRoom','253650KwWGXG','_beforeCloseService','changesets','_initResize','_change$','collabSubmitChangesetUrl','_getUploadFileURL','getUnitType','activeSheet$','597186wkZGcP','_ws','FETCH_MISSING','_removeRoom','_undoRedoService','{fileID}','disposeUnit','pushState','_initCloseConn','ERROR_EXCEED_SIZE','startColumn','SHOULD_CLOSE_CONN','_toggleOnline','_transformPreviousActiveRange','RichTextEditingMutation','_transformUndoRedoStack','\x0aCurrent:\x20','ACTIVE_UNIT_EVENT_CHANNEL','isTransformMutationFailure','_incrementRevisionNumber','LIVESHARE_OPERATION','localeService','_unitID','setAlpha','SNAPSHOT_HAS_BEEN_REMOVED','ENSURE_SNAPSHOT_EXECUTION','DocSkeletonManagerService','_heartbeatTimer','_localStorageService','handleIRemoveRow','fetchThroughInterceptors','action','onlineStatusTitle','?size=','includes','/resources','UNIVER_COLLABORATION_CLIENT_PLUGIN','prototype','_createInitialState','\x20to\x20','AWAITING_WITH_PENDING','allowed','listCollaborators','_onUserLeave','InsertRowCommandId','ImageUploadStatusType','post','UNAUTHENTICATED','string','useDependency','joinEvent','_initStatusComponent','_sendHeartbeatTimer','getActiveSheet','@univerjs/docs-ui','onReady','_getDownloadEndpointURL','_textBubble','moveTo','key','Vector2','_collabCursorState$','requireSession','LOCAL_CACHE_INTERVAL','_onUserJoin','InsertRangeMoveRightCommandId','isInternalEditorID','_commentService','_applyRemoteChangeset','onRemoteRej','_substituteUndoStack','DesktopCollaborationStatusDisplayController','auth.needGotoLoginAlert','_getCurrentRevision','getTime','APPLY_PERMISSION_DENIED','_showConflictNotification','updatePermissionPoint','downloadEndpointUrl','_clearTimeoutTimer','_decreaseWaiting','has','102GYahEy','getCollabCursors$','COLLAB_SUBMIT_CHANGESET_URL_KEY','_session','MoveRangeCommandId','_docStateChangeManagerService','push','INotificationService','OFFLINE','ALREADY_EXISTS','_setupBeforeClosingHandler','_retryConnectingTimer','_initRequestHeader','status','IRemoteInstanceService','FETCH_MISS','href','RECV','_onConnectionFailed','registerHTTPInterceptor','override','_socketReady','unitId\x20is\x20not\x20found','getUndoRedoMutationParamsCache','DocIMEInputManagerService','CollaborationSession','list','debug','requestParams','[CollaborationUndoRedoService]','collaboratorID','_roomMembers','SUCCUSS','image/jpeg','currentColor','_docSyncEditingCollabCursorService','UniverCollaborationClientPlugin','onlineStatusIcon','red300','mapDocumentTypeToUniverType','_updateURLWithCurrentState','getRoom','_tryEnsureSocket','_event$','sheetID','random','isArray','InsertRangeMoveDownCommandId','LIVESHARE_NEW_HOST','translate(.97)','_onJoinRoomEvent','HEARTBEAT','getUnit','syncEditingCollabCursor','drawWith','@univerjs-pro/collaboration','_getSendChangesetTimeout','labelPosition','Shape','pending','_updateState','onTransformIME','revision','split','_onConnectionOpen','UniverCollaborationPlugin','DeleteRangeMoveUpCommandId','serializeCombRequest','_handleHeartbeatEvent','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_document','_scheduleClearOtherTimer','UnitEmbedded','univer-online-status-title','_compressMutationService','connection\x20error','close','getTypeOfUnitAdded$','black','session.will-retry','transformRemoteChangeset','sid','_clearScheduledTask','_onMessage','c2Prime','get','shareReplay','_socket$','toLowerCase','transformMutationsWithChangeset','getFocusedUnit','Error\x20on\x20receiving\x20event','_init','DataLoaderController','getDocRanges','_cursorInfo$','EffectRefRangId','@univerjs/sheets-ui','_onConflict','_online','OffLineSingle','_transformStack','PSEUDO_FETCH_MISSING_RESULT','_injector','withCredentials','getImageSourceCache','collab-text-anchor-','mapTo','bottom','_getSnapshotAPIPrefix','_drawTextRange','liveShareNewHost','userID','parseProtocolChangeset','HEARTBEAT_TIMEOUT_KEY','setShapeProps','name','univer-offline','saveSnapshot','offline','univer-pro.collaboration-client-socket-service','commentUpdateEvent','change$','DocStateChangeManagerService','VIEWPORT_KEY','_substituteRedoStack','[CollaborationState]:\x20apply\x20error!','INGEST','_updateLocalCursor','IMessageService','SetWorksheetActivateCommand','CollaborationController','_remoteChangesetQueue','_clearOtherTimers','init','onStarting','_updateCollabCursors','m2Prime','popstate','_context','onMissedChangesetFetched','transformSelections','LEAVE','Module','UNRECOGNIZED','CollaborationStatus','restore','_sendingTimer','objectType','url(#on-line-single_clip0_910_349)','_getCtorByUniverType','top','subscribeEvent','@univerjs/ui','_socket','_transformService','map','NOT_FOUND','52157bHonoS','saveChangeset','m1Prime','UnitSnapshot','onCommandExecuted','csRejEvent','unitID','_unlockTransition','_lockTransition','x-univer-host','_id','unsubscribe','SheetCollaborationEntity','show','HTTPRequest','[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.','CHANGESET_REVISION_CONFILICT','[FetchMissState]','startRow','addEventListener','_initStatusListener','[CollaborationSessionService]:\x20socket\x20error','onRendered','getConfig','_collaborationPaused','socket\x20close','Univer','image/png','_memberService','MUTATION','FileId','getAncestorScale','trim','SUBMIT_CHANGESET','collaborators','_registerDependencies','_saveTaskMap','all','updatePermissionObjEvent','runRefRangeMutations','/universer-api/snapshot','permissionRejEvent','whenReady','handleInsertRangeMoveRight','every','_anchorDot','onStateChange','storage','online','code','APPLY_NON_SEQUENTIAL_REVISION','getOwnPropertySymbols','_refreshCollabCursors','backgroundColor','_cursor','fetching\x20missing\x20changesets\x20from\x20','joinRsp','searchParams','getValue','#fff','dispose','SNAPSHOT_INVALID_SNAPSHOT','confirm','getCurrentSelections','getCollabEntity','_docSkeletonManagerService','subUnitId','BehaviorSubject','_cachedData','getCurrent','conflict.title','NEW_CHANGESETS','_getAPIPrefix','_labelPosition','replaceState','getCurrentUnitForType','getWorkbookSelections','_entities','close$','unload','forwardRef','Rect','substring','_rescheduleHeartbeat','stringify','_removeClearOtherTimer','copyFileMeta','LICENSE_EXPORT_SIZE_EXCEEDED','collaboration-client.offline-data-not-saved','_socketService','_state','/allowed','getOffsetConfig','SYNCED','_localeService','combineLatest','getSheetBlock','_handleJoinEvent','collab-client.tooltip.reconnect','_onOffline','_sessionStatus$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','SnapshotServerOverHTTPService','/universer-api/file/{fileID}/sign-url','merge','_transformIMECache','univer-online-status','UPDATE_PERMISSION_OBJ','stopTime','_cursors','_startSheetCollabCursor','IImageIoService','_config','displayName','measureText','COMMENT_UPDATE','@univerjs/network','session','getUniverSheetInstance','visibilityState','delete','attrs'];_0xf60c=function(){return _0x468e35;};return _0xf60c();}var en=Object[_0x57f41f(0x522)],tn=Object[_0x57f41f(0x191)],sn=(_0x50ee77,_0x4953f6,_0x5b1384,_0x2e0ced)=>{const _0xff6cd=_0x57f41f;for(var _0x55a24e=_0x2e0ced>0x1?void 0x0:_0x2e0ced?tn(_0x4953f6,_0x5b1384):_0x4953f6,_0x40cef5=_0x50ee77[_0xff6cd(0x460)]-0x1,_0x2d0f62;_0x40cef5>=0x0;_0x40cef5--)(_0x2d0f62=_0x50ee77[_0x40cef5])&&(_0x55a24e=(_0x2e0ced?_0x2d0f62(_0x4953f6,_0x5b1384,_0x55a24e):_0x2d0f62(_0x55a24e))||_0x55a24e);return _0x2e0ced&&_0x55a24e&&en(_0x4953f6,_0x5b1384,_0x55a24e),_0x55a24e;},He=(_0x36a523,_0x31727a)=>(_0x23ba85,_0x24b258)=>_0x31727a(_0x23ba85,_0x24b258,_0x36a523);let Ee=class{constructor(_0x469bf2,_0x2c45df,_0x46bfd8){const _0x3c4618=_0x57f41f;this['_configService']=_0x469bf2,this[_0x3c4618(0x498)]=_0x2c45df,this[_0x3c4618(0x28d)]=_0x46bfd8,this[_0x3c4618(0x350)]();}[_0x57f41f(0x350)](){const _0x5973bd=_0x57f41f;this[_0x5973bd(0x498)][_0x5973bd(0x2dd)]({'priority':0x1,'interceptor':(_0x315f96,_0x43a647)=>_0x43a647(_0x315f96)[_0x5973bd(0x4bb)](v['concatMap'](async _0x550ca1=>{const _0x409d95=_0x5973bd,_0x15d2d5=_0x550ca1;if(_0x15d2d5[_0x409d95(0x2d7)]===0x191&&window[_0x409d95(0x3a6)](this[_0x409d95(0x28d)]['t'](_0x409d95(0x2c0)))){const _0x128d5c=window[_0x409d95(0x51d)](window[_0x409d95(0x17d)][_0x409d95(0x2da)]);window[_0x409d95(0x17d)]['href']=this['_getLoginPath']()+_0x409d95(0x257)+_0x128d5c;}return _0x15d2d5;}))});}['_getLoginPath'](){const _0x2992a0=_0x57f41f;var _0x4ff4f7,_0x10a88a;const _0x10495c=this[_0x2992a0(0x172)][_0x2992a0(0x37f)](Et),_0x523965=this[_0x2992a0(0x172)]['getConfig'](L);return(_0x10a88a=(_0x4ff4f7=_0x523965==null?void 0x0:_0x523965['loginUrlKey'])!=null?_0x4ff4f7:_0x10495c)!=null?_0x10a88a:ns;}};Ee=sn([He(0x0,a['IConfigService']),He(0x1,a['Inject'](w[_0x57f41f(0x45d)])),He(0x2,a['Inject'](a[_0x57f41f(0x405)]))],Ee);var nn=Object[_0x57f41f(0x522)],rn=Object[_0x57f41f(0x191)],on=(_0x6e2b6f,_0x265821,_0x272e6f,_0x20feac)=>{for(var _0x342cf3=_0x20feac>0x1?void 0x0:_0x20feac?rn(_0x265821,_0x272e6f):_0x265821,_0x5ee4ae=_0x6e2b6f['length']-0x1,_0x43c68f;_0x5ee4ae>=0x0;_0x5ee4ae--)(_0x43c68f=_0x6e2b6f[_0x5ee4ae])&&(_0x342cf3=(_0x20feac?_0x43c68f(_0x265821,_0x272e6f,_0x342cf3):_0x43c68f(_0x342cf3))||_0x342cf3);return _0x20feac&&_0x342cf3&&nn(_0x265821,_0x272e6f,_0x342cf3),_0x342cf3;},ut=(_0x3e20de,_0x4125f8)=>(_0x3ff163,_0x16d0e7)=>_0x4125f8(_0x3ff163,_0x16d0e7,_0x3e20de);const jt='AUTHZ_URL_KEY',an=_0x57f41f(0x4b0);exports['AuthzIoHttpService']=class extends a['Disposable']{constructor(_0x1a11f1,_0x34ad55){const _0x5295b2=_0x57f41f;super(),this[_0x5295b2(0x13e)]=_0x1a11f1,this[_0x5295b2(0x172)]=_0x34ad55,this[_0x5295b2(0x231)]();}[_0x57f41f(0x231)](){const _0x4cfafe=_0x57f41f,_0x1c9456=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':w[_0x4cfafe(0x402)]({'isMatch'(_0x38b107){const _0x4e35c7=_0x4cfafe;var _0x5e5bcc;if(_0x38b107[_0x4e35c7(0x497)]===_0x4e35c7(0x4b7)&&((_0x5e5bcc=_0x38b107['requestParams'])!=null&&_0x5e5bcc[_0x4e35c7(0x1a0)])){const {objectID:_0x7ce6cf,objectType:_0x595746}=_0x38b107['requestParams'][_0x4e35c7(0x1a0)]||{};if(!_0x7ce6cf||_0x595746===void 0x0)return!0x1;const _0x2de11a=_0x1c9456[_0x4e35c7(0x20a)]()+'/'+_0x595746+_0x4e35c7(0x24f)+_0x7ce6cf+'/allowed';if(_0x38b107[_0x4e35c7(0x3ed)]===_0x2de11a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x40eed1){const _0x2e694b=_0x4cfafe;var _0x13bc50;return(_0x13bc50=_0x40eed1[_0x2e694b(0x2e6)])==null?void 0x0:_0x13bc50[_0x2e694b(0x1a0)];},'mergeParamsToRequest'(_0xbbffe7,_0x44f236){const _0x5c6d91=_0x4cfafe,_0x2b9495=_0x1c9456['_getAPIPrefixPath']()+_0x5c6d91(0x214),_0x1b77a6=_0xbbffe7['reduce']((_0x4cfe63,_0x26a062)=>{const _0x46571f=_0x5c6d91,{unitID:_0x28840e,objectID:_0x45b444,objectType:_0xaace8e,actions:_0x486981}=_0x26a062;return _0x4cfe63[_0x28840e]||(_0x4cfe63[_0x28840e]={}),_0x4cfe63[_0x28840e][_0x45b444]||(_0x4cfe63[_0x28840e][_0x45b444]={'objectID':_0x45b444,'objectType':_0xaace8e,'actions':[]}),_0x4cfe63[_0x28840e][_0x45b444][_0x46571f(0x15e)][_0x46571f(0x2d0)](..._0x486981),_0x4cfe63;},{}),_0x319755=[];for(const _0x8d53d3 in _0x1b77a6)for(const _0x186b6c in _0x1b77a6[_0x8d53d3]){const {actions:_0x498a20,objectType:_0x133aad}=_0x1b77a6[_0x8d53d3][_0x186b6c],_0x4c073b=[...new Set(_0x498a20)];_0x319755[_0x5c6d91(0x2d0)]({'unitID':_0x8d53d3,'objectID':_0x186b6c,'objectType':_0x133aad,'actions':_0x4c073b});}return new w[(_0x5c6d91(0x376))]('POST',_0x2b9495,{'headers':_0x44f236[_0x5c6d91(0x4e6)],'withCredentials':_0x44f236[_0x5c6d91(0x332)],'responseType':_0x44f236[_0x5c6d91(0x12a)],'body':{'requests':_0x319755}});}},{'distributeResult'(_0x59bdfe,_0x17d88c){const {objectActions:_0x31e53e}=_0x59bdfe;return _0x17d88c['map'](_0xae585d=>{const _0x4d75c9=_0x1fa7,{unitID:_0x5744a1,objectID:_0x325a13,actions:_0x2addfc}=_0xae585d,_0xaa120f=_0x31e53e[_0x4d75c9(0x4df)](_0x2e7d33=>_0x2e7d33[_0x4d75c9(0x36e)]===_0x5744a1&&_0x2e7d33[_0x4d75c9(0x207)]===_0x325a13),_0x51b653=_0x2addfc[_0x4d75c9(0x366)](_0x4145f1=>_0xaa120f==null?void 0x0:_0xaa120f[_0x4d75c9(0x15e)][_0x4d75c9(0x4df)](_0x1b9901=>_0x1b9901[_0x4d75c9(0x297)]===_0x4145f1))['filter'](_0x10a41e=>!!_0x10a41e);return{'config':_0xae585d,'result':{'actions':_0x51b653,'error':_0x59bdfe[_0x4d75c9(0x542)]}};});}})}));}[_0x57f41f(0x20a)](){const _0x13703e=_0x57f41f;var _0x2c02ee,_0x4c2d28;const _0x374c34=this[_0x13703e(0x172)][_0x13703e(0x37f)](jt),_0x5e931e=this[_0x13703e(0x172)]['getConfig'](L);return(_0x4c2d28=(_0x2c02ee=_0x5e931e==null?void 0x0:_0x5e931e[_0x13703e(0x224)])!=null?_0x2c02ee:_0x374c34)!=null?_0x4c2d28:an;}async['create'](_0x2a6fd0){const _0x36f3c3=_0x57f41f,_0x237a5c=this['_getAPIPrefixPath']()+'/'+_0x2a6fd0[_0x36f3c3(0x35e)]+_0x36f3c3(0x14f);return(await this[_0x36f3c3(0x13e)]['post'](_0x237a5c,{'body':_0x2a6fd0}))[_0x36f3c3(0x1a0)][_0x36f3c3(0x207)]||'';}async[_0x57f41f(0x2e4)](_0x1573bd){const _0x2e751b=_0x57f41f,_0xbfd69e=this[_0x2e751b(0x20a)]()+_0x2e751b(0x478);return(await this[_0x2e751b(0x13e)][_0x2e751b(0x2a6)](_0xbfd69e,{'body':_0x1573bd}))[_0x2e751b(0x1a0)]['objects'];}async[_0x57f41f(0x51f)](_0x939117){const _0x572462=_0x57f41f,_0x45aea9=this[_0x572462(0x20a)]()+'/'+_0x939117[_0x572462(0x35e)]+_0x572462(0x24f)+_0x939117[_0x572462(0x207)];await this['_HTTPService'][_0x572462(0x12c)](_0x45aea9,{'body':_0x939117});}async[_0x57f41f(0x2a1)](_0x20be40){const _0x530882=_0x57f41f,_0x5ae2d4=this['_getAPIPrefixPath']()+'/'+_0x20be40['objectType']+_0x530882(0x24f)+_0x20be40['objectID']+_0x530882(0x3c3);return(await this[_0x530882(0x13e)][_0x530882(0x2a6)](_0x5ae2d4,{'body':_0x20be40}))[_0x530882(0x1a0)][_0x530882(0x15e)];}async[_0x57f41f(0x474)](_0x2d6a5f){const _0x47bb0e=_0x57f41f,_0x5d0b91=this[_0x47bb0e(0x20a)]()+_0x47bb0e(0x214);return(await this[_0x47bb0e(0x13e)][_0x47bb0e(0x2a6)](_0x5d0b91,{'body':{'requests':_0x2d6a5f}}))[_0x47bb0e(0x1a0)][_0x47bb0e(0x4d7)];}async[_0x57f41f(0x450)](_0x4e870c){const _0x22821d=_0x57f41f,_0x3aa665=this[_0x22821d(0x20a)]()+'/'+_0x4e870c['objectType']+_0x22821d(0x157),_0x1e141a=await this[_0x22821d(0x13e)]['post'](_0x3aa665,{'body':_0x4e870c});return{'roles':_0x1e141a[_0x22821d(0x1a0)]['roles'],'actions':_0x1e141a[_0x22821d(0x1a0)][_0x22821d(0x15e)]};}async[_0x57f41f(0x4a2)](_0x44f572){const _0x576929=_0x57f41f,_0x364417=this[_0x576929(0x20a)]()+'/collaborator';await this[_0x576929(0x13e)]['delete'](_0x364417,{'params':{'collaboratorID':_0x44f572[_0x576929(0x2e8)],'objectID':_0x44f572[_0x576929(0x207)],'unitID':_0x44f572['unitID']}});}async[_0x57f41f(0x160)](_0x1d7b52){const _0x1fd466=_0x57f41f,_0x545392=this['_getAPIPrefixPath']()+_0x1fd466(0x1b7);await this['_HTTPService']['patch'](_0x545392,{'body':_0x1d7b52});}async[_0x57f41f(0x4aa)](_0x4c3415){const _0x1f6997=_0x57f41f,_0x18db54=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1f6997(0x13e)]['post'](_0x18db54,{'body':_0x4c3415});}async[_0x57f41f(0x2a2)](_0x16eaaa){const _0x2ef18a=_0x57f41f,_0x116e14=this[_0x2ef18a(0x20a)]()+'/collaborator';return(await this[_0x2ef18a(0x13e)][_0x2ef18a(0x31f)](_0x116e14,{'params':{'objectID':_0x16eaaa[_0x2ef18a(0x207)],'unitID':_0x16eaaa[_0x2ef18a(0x36e)]}}))[_0x2ef18a(0x1a0)][_0x2ef18a(0x38a)];}async['putCollaborators'](_0x325e63){const _0x526deb=_0x57f41f,_0xab4e6a=this['_getAPIPrefixPath']()+_0x526deb(0x1b7);await this[_0x526deb(0x13e)][_0x526deb(0x12c)](_0xab4e6a,{'body':_0x325e63});}},exports[_0x57f41f(0x3fb)]=on([ut(0x0,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)])),ut(0x1,a['Inject'](a[_0x57f41f(0x435)]))],exports[_0x57f41f(0x3fb)]);var cn=Object[_0x57f41f(0x522)],ln=Object[_0x57f41f(0x191)],hn=(_0x56ed3a,_0x1ceccc,_0x2a8735,_0x197d7a)=>{const _0xcde298=_0x57f41f;for(var _0x2d0389=_0x197d7a>0x1?void 0x0:_0x197d7a?ln(_0x1ceccc,_0x2a8735):_0x1ceccc,_0xe5eb3a=_0x56ed3a[_0xcde298(0x460)]-0x1,_0x4ed085;_0xe5eb3a>=0x0;_0xe5eb3a--)(_0x4ed085=_0x56ed3a[_0xe5eb3a])&&(_0x2d0389=(_0x197d7a?_0x4ed085(_0x1ceccc,_0x2a8735,_0x2d0389):_0x4ed085(_0x2d0389))||_0x2d0389);return _0x197d7a&&_0x2d0389&&cn(_0x1ceccc,_0x2a8735,_0x2d0389),_0x2d0389;},_n=(_0x16fcde,_0x41b20b)=>(_0x412052,_0x3c3a22)=>_0x41b20b(_0x412052,_0x3c3a22,_0x16fcde);let be=class{constructor(_0x23f855){this['_httpService']=_0x23f855,this['_initRequestHeader']();}[_0x57f41f(0x2d6)](){const _0x5035a6=_0x57f41f;this[_0x5035a6(0x498)]['registerHTTPInterceptor']({'interceptor':(_0x3dc4cc,_0xda2be0)=>{const _0x4a689f=_0x5035a6,_0x3b651f=_0x3dc4cc[_0x4a689f(0x4e6)],_0xb88128=Xt[_0x4a689f(0x52d)]();return _0xb88128&&_0x3b651f[_0x4a689f(0x20b)](_0x4a689f(0x371),_0xb88128),_0xda2be0(_0x3dc4cc);}});}};be=hn([_n(0x0,a[_0x57f41f(0x1ec)](w['HTTPService']))],be);var un=Object['defineProperty'],dn=Object[_0x57f41f(0x191)],Sn=(_0x767886,_0x232458,_0x2bcf44,_0x2eebee)=>{for(var _0x1fbb09=_0x2eebee>0x1?void 0x0:_0x2eebee?dn(_0x232458,_0x2bcf44):_0x232458,_0x34c1e7=_0x767886['length']-0x1,_0x3a410e;_0x34c1e7>=0x0;_0x34c1e7--)(_0x3a410e=_0x767886[_0x34c1e7])&&(_0x1fbb09=(_0x2eebee?_0x3a410e(_0x232458,_0x2bcf44,_0x1fbb09):_0x3a410e(_0x1fbb09))||_0x1fbb09);return _0x2eebee&&_0x1fbb09&&un(_0x232458,_0x2bcf44,_0x1fbb09),_0x1fbb09;},xe=(_0x235293,_0x1ca36a)=>(_0x32796a,_0x298a82)=>_0x1ca36a(_0x32796a,_0x298a82,_0x235293);const vn=[_0x57f41f(0x383),_0x57f41f(0x2eb),_0x57f41f(0x1aa),'image/gif','image/bmp'],gn=0x5*0x400*0x400,mn=_0x57f41f(0x4c8),fn=_0x57f41f(0x427),In=_0x57f41f(0x4fc),pn=_0x57f41f(0x3cf);exports[_0x57f41f(0x434)]=class{constructor(_0x50e3c1,_0x1cd307,_0x5a4585){const _0x34d273=_0x57f41f;u(this,_0x34d273(0x4d9),0x0),u(this,_0x34d273(0x273),new v['Subject']()),u(this,_0x34d273(0x344),this[_0x34d273(0x273)]),u(this,_0x34d273(0x3ff),new Map()),(this[_0x34d273(0x498)]=_0x50e3c1,this['_configService']=_0x1cd307,this[_0x34d273(0x131)]=_0x5a4585);}['setWaitCount'](_0xe199af){const _0x21adc8=_0x57f41f;this[_0x21adc8(0x4d9)]=_0xe199af,this[_0x21adc8(0x273)][_0x21adc8(0x49c)](_0xe199af);}[_0x57f41f(0x333)](_0x1f980e,_0x363978){const _0x2e914d=_0x57f41f;if(_0x363978===j[_0x2e914d(0x53b)][_0x2e914d(0x4f5)]){const _0x749429=new Image();return _0x749429[_0x2e914d(0x250)]=_0x1f980e,_0x749429;}return this[_0x2e914d(0x3ff)][_0x2e914d(0x31f)](_0x1f980e);}['addImageSourceCache'](_0x2b163a,_0x346d06,_0x281f06){const _0x1d2c2e=_0x57f41f;_0x346d06===j[_0x1d2c2e(0x53b)][_0x1d2c2e(0x4f5)]||_0x281f06==null||this[_0x1d2c2e(0x3ff)][_0x1d2c2e(0x20b)](_0x2b163a,_0x281f06);}async[_0x57f41f(0x201)](_0x214d11){const _0x51f7fd=_0x57f41f;try{const _0x5c4104=this['_replaceFileID'](this[_0x51f7fd(0x256)](),''+_0x214d11),_0x1a0c91=(await this[_0x51f7fd(0x498)][_0x51f7fd(0x31f)](_0x5c4104))[_0x51f7fd(0x1a0)];if(_0x1a0c91[_0x51f7fd(0x542)]&&_0x1a0c91[_0x51f7fd(0x542)][_0x51f7fd(0x399)]===bt['OK']){const _0x331460=new URL(_0x1a0c91['url'],this[_0x51f7fd(0x2b0)]())[_0x51f7fd(0x258)]();return Promise[_0x51f7fd(0x1dd)](_0x331460);}return Promise[_0x51f7fd(0x4c2)](_0x1a0c91[_0x51f7fd(0x542)]);}catch(_0x4ca676){return Promise[_0x51f7fd(0x4c2)](_0x4ca676);}}async['saveImage'](_0x88bd0){const _0x4f2fc8=_0x57f41f;let _0x285999='';if(!vn[_0x4f2fc8(0x29a)](_0x88bd0[_0x4f2fc8(0x221)]))return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j[_0x4f2fc8(0x2a5)]['ERROR_IMAGE_TYPE']));if(_0x88bd0[_0x4f2fc8(0x3f1)]>gn)return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j[_0x4f2fc8(0x2a5)][_0x4f2fc8(0x281)]));try{const _0x5b64d3=new FormData();_0x5b64d3['append'](_0x4f2fc8(0x225),_0x88bd0);const _0x1695c5=this[_0x4f2fc8(0x131)][_0x4f2fc8(0x324)](),_0x496f3a=_0x1695c5==null?void 0x0:_0x1695c5['getUnitId']();if(!_0x496f3a)throw new Error(_0x4f2fc8(0x2e0));const _0x169f96=this['_getUploadFileURL']()+_0x4f2fc8(0x299)+_0x88bd0['size'][_0x4f2fc8(0x258)]()+_0x4f2fc8(0x3f8)+Tt['UnitEmbedded']+'&assign='+encodeURIComponent(_0x496f3a),_0x3fa37c=await(await fetch(_0x169f96,{'method':_0x4f2fc8(0x4b7),'body':_0x5b64d3}))['json']();if(typeof _0x3fa37c[_0x4f2fc8(0x386)]!='string')return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j[_0x4f2fc8(0x2a5)][_0x4f2fc8(0x195)]));_0x285999=_0x3fa37c[_0x4f2fc8(0x386)];}catch{return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x455fc5,_0x4a5701)=>{const _0x44ff5f=_0x4f2fc8,_0x1ea394=new FileReader();_0x1ea394[_0x44ff5f(0x205)](_0x88bd0),_0x1ea394[_0x44ff5f(0x4da)]=_0x27b96c=>{const _0x6eae78=_0x44ff5f;var _0xe33e0f;const _0x2a4f0d=(_0xe33e0f=_0x27b96c[_0x6eae78(0x13f)])==null?void 0x0:_0xe33e0f[_0x6eae78(0x16c)];if(_0x2a4f0d==null){this[_0x6eae78(0x2c8)](),_0x4a5701(new Error(j[_0x6eae78(0x2a5)]['ERROR_IMAGE']));return;}const _0x5a55a2=a[_0x6eae78(0x25c)][_0x6eae78(0x465)](0x6);_0x455fc5({'imageId':_0x5a55a2,'imageSourceType':j[_0x6eae78(0x53b)][_0x6eae78(0x21d)],'source':_0x285999,'base64Cache':_0x2a4f0d,'status':j[_0x6eae78(0x2a5)][_0x6eae78(0x2ea)]}),this[_0x6eae78(0x2c8)]();};});}[_0x57f41f(0x275)](){const _0x204c94=_0x57f41f;var _0x27ca4e,_0x291771;const _0x4c4b80=this[_0x204c94(0x172)]['getConfig'](mn),_0x2b0a0e=this['_configService'][_0x204c94(0x37f)](L);return(_0x291771=(_0x27ca4e=_0x2b0a0e==null?void 0x0:_0x2b0a0e[_0x204c94(0x461)])!=null?_0x27ca4e:_0x4c4b80)!=null?_0x291771:fn;}[_0x57f41f(0x256)](){const _0x42b650=_0x57f41f;var _0x45d5f8,_0x578158;const _0x413e3b=this[_0x42b650(0x172)][_0x42b650(0x37f)](In),_0x88df66=this[_0x42b650(0x172)][_0x42b650(0x37f)](L);return(_0x578158=(_0x45d5f8=_0x88df66==null?void 0x0:_0x88df66['signUrlServerUrl'])!=null?_0x45d5f8:_0x413e3b)!=null?_0x578158:pn;}['_getDownloadEndpointURL'](){const _0x57c7f9=_0x57f41f;var _0x34a859;const _0x2c89f7=this[_0x57c7f9(0x172)][_0x57c7f9(0x37f)](L);return(_0x34a859=_0x2c89f7==null?void 0x0:_0x2c89f7[_0x57c7f9(0x2c6)])!=null?_0x34a859:location[_0x57c7f9(0x23f)];}[_0x57f41f(0x1ac)](_0x246c18,_0x237e03){const _0x2a867c=_0x57f41f;return _0x246c18['replace'](_0x2a867c(0x27d),_0x237e03);}['_decreaseWaiting'](){const _0x200e92=_0x57f41f;this[_0x200e92(0x4d9)]-=0x1,this[_0x200e92(0x273)][_0x200e92(0x49c)](this['_waitCount']);}},exports[_0x57f41f(0x434)]=Sn([xe(0x0,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)])),xe(0x1,a[_0x57f41f(0x435)]),xe(0x2,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x546)]))],exports[_0x57f41f(0x434)]);var Cn=Object[_0x57f41f(0x522)],En=Object[_0x57f41f(0x191)],bn=(_0x5c67a6,_0x34c720,_0x329ee4,_0x34a11f)=>{for(var _0x43168b=_0x34a11f>0x1?void 0x0:_0x34a11f?En(_0x34c720,_0x329ee4):_0x34c720,_0x4e823d=_0x5c67a6['length']-0x1,_0x537a12;_0x4e823d>=0x0;_0x4e823d--)(_0x537a12=_0x5c67a6[_0x4e823d])&&(_0x43168b=(_0x34a11f?_0x537a12(_0x34c720,_0x329ee4,_0x43168b):_0x537a12(_0x43168b))||_0x43168b);return _0x34a11f&&_0x43168b&&Cn(_0x34c720,_0x329ee4,_0x43168b),_0x43168b;},_e=(_0x4dc8c1,_0x49ac2a)=>(_0x2a4438,_0x13783f)=>_0x49ac2a(_0x2a4438,_0x13783f,_0x4dc8c1);let Te=class extends a[_0x57f41f(0x1c5)]{constructor(_0x517da4,_0x52ddf1,_0x54ad43,_0x10aadb,_0x35321){const _0x183084=_0x57f41f;super(),this['_injector']=_0x517da4,this[_0x183084(0x131)]=_0x52ddf1,this['_permissionService']=_0x54ad43,this['_collaborationSessionService']=_0x10aadb,this['_localeService']=_0x35321,this[_0x183084(0x24c)](),this[_0x183084(0x280)]();}[_0x57f41f(0x280)](){const _0x56f53f=_0x57f41f,_0x3f1954=async _0x30623c=>{const _0x282503=_0x1fa7;(await this[_0x282503(0x40c)][_0x282503(0x2b6)](_0x30623c))[_0x282503(0x438)][_0x282503(0x4bb)](E[_0x282503(0x222)](_0x5f4c9a=>_0x5f4c9a[_0x282503(0x538)]===_[_0x282503(0x48e)][_0x282503(0x283)]),E[_0x282503(0x12b)](this[_0x282503(0x43a)]))[_0x282503(0x3ee)](_0x50f0d4=>{const _0x1daf3d=_0x282503,_0x1fd45b=_0x50f0d4,{reason:_0x3a8849}=_0x1fd45b[_0x1daf3d(0x198)];this[_0x1daf3d(0x331)]['get'](A[_0x1daf3d(0x34b)])[_0x1daf3d(0x375)]({'type':X[_0x1daf3d(0x1cf)][_0x1daf3d(0x411)],'content':this['_localeService']['t'](_0x1daf3d(0x137))+'('+_0x3a8849+')'}),this[_0x1daf3d(0x1cd)]['updatePermissionPoint'](new C[(_0x1daf3d(0x4e0))](_0x30623c)['id'],!0x1),this['_collaborationSessionService'][_0x1daf3d(0x1a2)](_0x30623c);});};v[_0x56f53f(0x3d0)](this[_0x56f53f(0x131)]['getTypeOfUnitAdded$'](a[_0x56f53f(0x4f6)][_0x56f53f(0x197)]),this['_univerInstanceService'][_0x56f53f(0x317)](a[_0x56f53f(0x4f6)][_0x56f53f(0x1a7)]))[_0x56f53f(0x4bb)](E[_0x56f53f(0x366)](_0x4b6aca=>_0x4b6aca[_0x56f53f(0x263)]()),E[_0x56f53f(0x222)](_0xa35839=>!a['isInternalEditorID'](_0xa35839)),E[_0x56f53f(0x12b)](this[_0x56f53f(0x43a)]))['subscribe'](_0x29f12f=>{_0x3f1954(_0x29f12f);});}[_0x57f41f(0x24c)](){const _0x57c27a=_0x57f41f,_0x340a9e=async _0x437333=>{const _0x32a6bf=_0x1fa7;(await this[_0x32a6bf(0x40c)][_0x32a6bf(0x2b6)](_0x437333))[_0x32a6bf(0x438)][_0x32a6bf(0x4bb)](E[_0x32a6bf(0x222)](_0x5f3401=>_0x5f3401['eventID']===_[_0x32a6bf(0x48e)]['UPDATE_PERMISSION_OBJ']),E['takeUntil'](this[_0x32a6bf(0x43a)]))[_0x32a6bf(0x3ee)](_0x2f5d35=>{const _0x4b1333=_0x32a6bf,_0x456787=_0x2f5d35,{objectId:_0x4ab1ce}=_0x456787[_0x4b1333(0x198)],_0x1376ed=this['_injector'][_0x4b1333(0x31f)](te['SheetPermissionInitController']);_0x4ab1ce===_0x437333?_0x1376ed['initWorkbookPermissionChange'](_0x437333):_0x1376ed['refreshPermission'](_0x437333,_0x4ab1ce);});};v['merge'](this[_0x57c27a(0x131)][_0x57c27a(0x317)](a['UniverInstanceType']['UNIVER_SHEET']),this[_0x57c27a(0x131)][_0x57c27a(0x317)](a[_0x57c27a(0x4f6)][_0x57c27a(0x1a7)]))[_0x57c27a(0x4bb)](E[_0x57c27a(0x366)](_0x2230de=>_0x2230de[_0x57c27a(0x263)]()),E['filter'](_0x1f5e6d=>!a[_0x57c27a(0x2ba)](_0x1f5e6d)),E[_0x57c27a(0x12b)](this[_0x57c27a(0x43a)]))['subscribe'](_0x112f45=>{_0x340a9e(_0x112f45);});}};Te=bn([_e(0x0,a['Inject'](a[_0x57f41f(0x410)])),_e(0x1,a[_0x57f41f(0x546)]),_e(0x2,a[_0x57f41f(0x169)]),_e(0x3,a[_0x57f41f(0x1ec)](exports['CollaborationSessionService'])),_e(0x4,a['Inject'](a[_0x57f41f(0x405)]))],Te);var Tn=Object[_0x57f41f(0x522)],Rn=Object[_0x57f41f(0x191)],On=(_0xe67714,_0x24841f,_0x280f32,_0xf74f9c)=>{const _0x1bde28=_0x57f41f;for(var _0x3e58bc=_0xf74f9c>0x1?void 0x0:_0xf74f9c?Rn(_0x24841f,_0x280f32):_0x24841f,_0x596165=_0xe67714[_0x1bde28(0x460)]-0x1,_0x2e6b35;_0x596165>=0x0;_0x596165--)(_0x2e6b35=_0xe67714[_0x596165])&&(_0x3e58bc=(_0xf74f9c?_0x2e6b35(_0x24841f,_0x280f32,_0x3e58bc):_0x2e6b35(_0x3e58bc))||_0x3e58bc);return _0xf74f9c&&_0x3e58bc&&Tn(_0x24841f,_0x280f32,_0x3e58bc),_0x3e58bc;},dt=(_0x2dd35f,_0x49fde9)=>(_0x48c20b,_0x6e1f72)=>_0x49fde9(_0x48c20b,_0x6e1f72,_0x2dd35f);exports[_0x57f41f(0x3ce)]=class{constructor(_0x11f832,_0x12db6f){const _0x3fa743=_0x57f41f;this[_0x3fa743(0x172)]=_0x11f832,this[_0x3fa743(0x498)]=_0x12db6f;}async[_0x57f41f(0x53c)](_0x485eab,_0x22ab56){const _0x868c20=_0x57f41f;var _0x22b47b;const {unitID:_0x1b2728,type:_0x420bcb,revision:_0x3c4fcf=0x0}=_0x22ab56,_0x47fbe6=this[_0x868c20(0x337)]()+'/'+_0x420bcb+'/unit/'+_0x1b2728+_0x868c20(0x491)+_0x3c4fcf,_0x4bfbb5=(await this[_0x868c20(0x498)][_0x868c20(0x31f)](_0x47fbe6))[_0x868c20(0x1a0)],_0x37eb7d=(_0x22b47b=_0x4bfbb5[_0x868c20(0x47d)])==null?void 0x0:_0x22b47b[_0x868c20(0x530)];if(_0x37eb7d){const _0x5ecbcf=_0x37eb7d==null?void 0x0:_0x37eb7d[_0x868c20(0x236)],_0x255909=_['textEncoder']['encode'](_[_0x868c20(0x238)](_0x5ecbcf));_0x37eb7d[_0x868c20(0x236)]=_0x255909,Object['entries'](_0x37eb7d[_0x868c20(0x1e8)])['forEach'](([,_0x4ac34a])=>{const _0x3eebe0=_0x868c20,_0x33cfcf=_0x4ac34a[_0x3eebe0(0x236)],_0x18ff99=_[_0x3eebe0(0x493)]['encode'](_[_0x3eebe0(0x238)](_0x33cfcf));_0x4ac34a[_0x3eebe0(0x236)]=_0x18ff99;});}return _0x4bfbb5;}async[_0x57f41f(0x3c8)](_0x136df1,_0x21c8b4){const _0x5df8fe=_0x57f41f,{unitID:_0x40ab88,type:_0x2561ce,blockID:_0x3785a7}=_0x21c8b4,_0x264b99=this['_getAPIPrefix']()+'/'+_0x2561ce+'/unit/'+_0x40ab88+_0x5df8fe(0x51a)+_0x3785a7;return(await this[_0x5df8fe(0x498)][_0x5df8fe(0x31f)](_0x264b99))[_0x5df8fe(0x1a0)];}async[_0x57f41f(0x459)](_0x396f15,_0x2504a6){const _0x2fcabf=_0x57f41f,{unitID:_0x605c95,type:_0x577959,blockID:_0x56727f}=_0x2504a6,_0x43313a=this['_getAPIPrefix']()+_0x2fcabf(0x51a)+_0x577959+_0x2fcabf(0x170)+_0x605c95+'/block/'+_0x56727f;return(await this[_0x2fcabf(0x498)][_0x2fcabf(0x31f)](_0x43313a))['body'];}async[_0x57f41f(0x455)](_0x57a39a,_0x5cd0ae){const _0x268512=_0x57f41f,{unitID:_0x4af092,type:_0x3dbbdf,from:_0x4392b3,to:_0x1b1df7}=_0x5cd0ae,_0x4a4065=this[_0x268512(0x3b0)]()+'/'+_0x3dbbdf+_0x268512(0x170)+_0x4af092+_0x268512(0x202)+_0x4392b3+'&to='+_0x1b1df7;return(await this['_httpService']['get'](_0x4a4065))[_0x268512(0x1a0)];}['_getSnapshotAPIPrefix'](){const _0x2c2241=_0x57f41f;var _0x249e80;return(_0x249e80=this[_0x2c2241(0x172)][_0x2c2241(0x37f)](vt))!=null?_0x249e80:this[_0x2c2241(0x3b0)]();}[_0x57f41f(0x3b0)](){const _0x11c088=_0x57f41f;var _0x582e6c,_0x603989;const _0xb69e83=this[_0x11c088(0x172)][_0x11c088(0x37f)](St),_0x49e011=this['_configService']['getConfig'](L);return(_0x603989=(_0x582e6c=_0x49e011==null?void 0x0:_0x49e011[_0x11c088(0x14d)])!=null?_0x582e6c:_0xb69e83)!=null?_0x603989:qt;}async[_0x57f41f(0x4ea)](_0x4c8755,_0x2948e3){const _0x13e840=_0x57f41f,_0x9854d9=_0x13e840(0x199)+_0x2948e3[_0x13e840(0x221)]+'/unit/'+_0x2948e3[_0x13e840(0x36e)]+_0x13e840(0x29b);return(await this[_0x13e840(0x498)][_0x13e840(0x31f)](_0x9854d9,{'params':{'resourceId':JSON[_0x13e840(0x3bc)](_0x2948e3[_0x13e840(0x479)])}}))[_0x13e840(0x1a0)];}[_0x57f41f(0x340)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x3db3ef=_0x57f41f;throw new Error(_0x3db3ef(0x19a));}[_0x57f41f(0x369)](){const _0x8820b2=_0x57f41f;throw new Error(_0x8820b2(0x19a));}[_0x57f41f(0x3be)](){const _0x1503ea=_0x57f41f;throw new Error(_0x1503ea(0x19a));}[_0x57f41f(0x507)](){const _0x4bea8a=_0x57f41f;throw new Error(_0x4bea8a(0x19a));}},exports['SnapshotServerOverHTTPService']=On([dt(0x0,a[_0x57f41f(0x435)]),dt(0x1,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)]))],exports[_0x57f41f(0x3ce)]);var Dn=Object[_0x57f41f(0x522)],yn=Object[_0x57f41f(0x191)],Un=(_0x27b823,_0x259182,_0x2ef55d,_0xb0f48d)=>{const _0x1deec2=_0x57f41f;for(var _0x3dfbad=_0xb0f48d>0x1?void 0x0:_0xb0f48d?yn(_0x259182,_0x2ef55d):_0x259182,_0x22c5da=_0x27b823[_0x1deec2(0x460)]-0x1,_0x5d8f1c;_0x22c5da>=0x0;_0x22c5da--)(_0x5d8f1c=_0x27b823[_0x22c5da])&&(_0x3dfbad=(_0xb0f48d?_0x5d8f1c(_0x259182,_0x2ef55d,_0x3dfbad):_0x5d8f1c(_0x3dfbad))||_0x3dfbad);return _0xb0f48d&&_0x3dfbad&&Dn(_0x259182,_0x2ef55d,_0x3dfbad),_0x3dfbad;},ue=(_0x1710a6,_0x3011f2)=>(_0x1f62de,_0x19a0a6)=>_0x3011f2(_0x1f62de,_0x19a0a6,_0x1710a6);let Fe=class extends a[_0x57f41f(0x1b0)]{constructor(_0x2f3ada,_0x388db0,_0x20d906,_0x246da9,_0x5c8263){const _0x5127a0=_0x57f41f;super(_0x2f3ada,_0x388db0,_0x20d906),this[_0x5127a0(0x365)]=_0x246da9,this['_logService']=_0x5c8263;}[_0x57f41f(0x130)](_0x21f7af,_0x11b861){const _0x5ad358=_0x57f41f,_0x20315b=this[_0x5ad358(0x227)](_0x21f7af);if(_0x20315b)try{const _0x13ac47=this[_0x5ad358(0x32f)](_0x20315b,_0x11b861);this['_substituteUndoStack'](_0x21f7af,_0x13ac47);}catch(_0x4d4678){this[_0x5ad358(0x181)][_0x5ad358(0x542)](_0x5ad358(0x2e7),_0x4d4678),this[_0x5ad358(0x50b)](_0x21f7af);}const _0x2739da=this['_getRedoStack'](_0x21f7af);if(_0x2739da)try{const _0x361fca=this[_0x5ad358(0x32f)](_0x2739da,_0x11b861);this['_substituteRedoStack'](_0x21f7af,_0x361fca);}catch(_0x22e3a5){this[_0x5ad358(0x181)]['error'](_0x22e3a5),this[_0x5ad358(0x529)](_0x21f7af);}}[_0x57f41f(0x50b)](_0x547085){const _0x2886d7=_0x57f41f,_0x13a71e=this[_0x2886d7(0x227)](_0x547085);_0x13a71e&&(_0x13a71e[_0x2886d7(0x460)]=0x0,this[_0x2886d7(0x523)]());}[_0x57f41f(0x529)](_0x2a363d){const _0x349f6d=_0x57f41f,_0x185ab1=this[_0x349f6d(0x249)](_0x2a363d);_0x185ab1&&(_0x185ab1['length']=0x0,this[_0x349f6d(0x523)]());}[_0x57f41f(0x2be)](_0x55bf40,_0x3cac5c){const _0x21581b=_0x57f41f;this['_undoStacks'][_0x21581b(0x20b)](_0x55bf40,_0x3cac5c),this[_0x21581b(0x523)]();}[_0x57f41f(0x347)](_0x586366,_0x507b4f){const _0x254059=_0x57f41f;this['_redoStacks'][_0x254059(0x20b)](_0x586366,_0x507b4f),this['_updateStatus']();}[_0x57f41f(0x32f)](_0x3663c3,_0x49b6e0){const _0x28276d=_0x57f41f,_0x1d9822=[];let _0x4f8acd=_0x49b6e0,_0x72ba51=_0x49b6e0;for(let _0x2a7190=_0x3663c3[_0x28276d(0x460)]-0x1;_0x2a7190>=0x0;_0x2a7190--){const {unitID:_0x53f6e9,undoMutations:_0x2f665f,redoMutations:_0x5c94ce}=_0x3663c3[_0x2a7190],_0x2d6502=this['_transformService']['transformMutationsWithChangeset'](_0x4f8acd,_0x2f665f),_0x32d7df=this['_transformService'][_0x28276d(0x323)](_0x72ba51,_0x5c94ce);if(_[_0x28276d(0x53a)](_0x2d6502)||_[_0x28276d(0x53a)](_0x32d7df)){this[_0x28276d(0x181)][_0x28276d(0x542)](_0x28276d(0x2e7),'transformStack\x20failed!',_0x2d6502,_0x32d7df);break;}_0x4f8acd=_0x2d6502[_0x28276d(0x19c)],_0x72ba51=_0x32d7df[_0x28276d(0x19c)],_0x1d9822[_0x28276d(0x2d0)]({'unitID':_0x53f6e9,'undoMutations':_0x2d6502[_0x28276d(0x353)],'redoMutations':_0x32d7df[_0x28276d(0x353)]});}return _0x1d9822[_0x28276d(0x409)]();}};Fe=Un([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x57f41f(0x178)]),ue(0x2,a[_0x57f41f(0x3ea)]),ue(0x3,_[_0x57f41f(0x127)]),ue(0x4,a[_0x57f41f(0x162)])],Fe);class $t extends a[_0x57f41f(0x1c5)]{constructor(){const _0x4330b3=_0x57f41f;super(),u(this,_0x4330b3(0x25d)),this[_0x4330b3(0x25d)]=v[_0x4330b3(0x482)](window,_0x4330b3(0x354))[_0x4330b3(0x4bb)](v[_0x4330b3(0x12b)](this[_0x4330b3(0x43a)]),v[_0x4330b3(0x320)](0x1),v[_0x4330b3(0x335)](void 0x0));}[_0x57f41f(0x209)](_0x39feef,_0x29a79e,_0x85e67e=!0x1){const _0x5e226c=_0x57f41f,_0x4d6dd5=new URL(window[_0x5e226c(0x17d)][_0x5e226c(0x2da)]);_0x4d6dd5['searchParams']['set'](_0x39feef,_0x29a79e),_0x85e67e?window[_0x5e226c(0x1fd)][_0x5e226c(0x3b2)]('','',_0x4d6dd5[_0x5e226c(0x258)]()):window[_0x5e226c(0x1fd)][_0x5e226c(0x27f)]('','',_0x4d6dd5[_0x5e226c(0x258)]());}[_0x57f41f(0x23c)](_0x1440cc,_0x291ff7=!0x1){const _0x2f5d22=_0x57f41f,_0x5d4113=new URL(window['location'][_0x2f5d22(0x2da)]);_0x5d4113[_0x2f5d22(0x3a1)][_0x2f5d22(0x3e0)](_0x1440cc),_0x291ff7?window['history'][_0x2f5d22(0x3b2)]('','',_0x5d4113[_0x2f5d22(0x258)]()):window['history'][_0x2f5d22(0x27f)]('','',_0x5d4113['toString']());}[_0x57f41f(0x41d)](_0x2b8be1){const _0x1245d1=_0x57f41f;var _0x1f182f;return(_0x1f182f=new URL(window['location'][_0x1245d1(0x2da)])['searchParams']['get'](_0x2b8be1))!=null?_0x1f182f:void 0x0;}}var Ht=Object[_0x57f41f(0x522)],Pn=Object['getOwnPropertyDescriptor'],wn=(_0x49a066,_0x130d4b,_0x27934a)=>_0x130d4b in _0x49a066?Ht(_0x49a066,_0x130d4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27934a}):_0x49a066[_0x130d4b]=_0x27934a,Nn=(_0x3f1aac,_0x1d22bd,_0x126279,_0x15c80f)=>{const _0x26f8fb=_0x57f41f;for(var _0x506fc5=_0x15c80f>0x1?void 0x0:_0x15c80f?Pn(_0x1d22bd,_0x126279):_0x1d22bd,_0x5094ff=_0x3f1aac[_0x26f8fb(0x460)]-0x1,_0x271d7e;_0x5094ff>=0x0;_0x5094ff--)(_0x271d7e=_0x3f1aac[_0x5094ff])&&(_0x506fc5=(_0x15c80f?_0x271d7e(_0x1d22bd,_0x126279,_0x506fc5):_0x271d7e(_0x506fc5))||_0x506fc5);return _0x15c80f&&_0x506fc5&&Ht(_0x1d22bd,_0x126279,_0x506fc5),_0x506fc5;},me=(_0x5bd43c,_0x1fe7be)=>(_0x1cb190,_0x306d63)=>_0x1fe7be(_0x1cb190,_0x306d63,_0x5bd43c),Mn=(_0x390632,_0x389fbd,_0x15be98)=>wn(_0x390632,_0x389fbd+'',_0x15be98);const An=_0x57f41f(0x29c);exports[_0x57f41f(0x2ee)]=class extends a['Plugin']{constructor(_0x4031b5=rs,_0xcc8a25,_0x4121fb,_0x2c2699,_0x5649bb){const _0x329804=_0x57f41f;super(),this['_config']=_0x4031b5,this[_0x329804(0x181)]=_0xcc8a25,this[_0x329804(0x46a)]=_0x4121fb,this[_0x329804(0x331)]=_0x2c2699,this[_0x329804(0x172)]=_0x5649bb;const {..._0x2bb520}=this[_0x329804(0x3d8)];this[_0x329804(0x172)][_0x329804(0x218)](L,_0x2bb520);}[_0x57f41f(0x351)](){const _0x5e838e=_0x57f41f;this['_registerDependencies'](),a['touchDependencies'](this['_injector'],[[ne],[exports[_0x5e838e(0x327)]],[Te]]);}[_0x57f41f(0x2af)](){const _0x4d8954=_0x57f41f;a[_0x4d8954(0x151)](this[_0x4d8954(0x331)],[[Ce]]);}[_0x57f41f(0x37e)](){const _0x33ad7f=_0x57f41f;this[_0x33ad7f(0x134)]();}[_0x57f41f(0x38b)](){const _0x1f6ec1=_0x57f41f;var _0x5182bb,_0x182559,_0x465357,_0x3b5090;this[_0x1f6ec1(0x331)][_0x1f6ec1(0x2c9)](a[_0x1f6ec1(0x24e)])&&this['_logService'][_0x1f6ec1(0x542)](_0x1f6ec1(0x462),_0x1f6ec1(0x1d7));let _0x59d739=[[a[_0x1f6ec1(0x24e)],{'useClass':Fe}],[exports[_0x1f6ec1(0x19b)]],[Je],[w[_0x1f6ec1(0x45d)]],[Qe,{'useClass':$t}],[q],[exports[_0x1f6ec1(0x4a8)]],[w[_0x1f6ec1(0x43c)]],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x182559=(_0x5182bb=this[_0x1f6ec1(0x3d8)])==null?void 0x0:_0x5182bb[_0x1f6ec1(0x166)])!=null?_0x182559:exports[_0x1f6ec1(0x253)]}],[w[_0x1f6ec1(0x4d1)],{'useClass':w['XHRHTTPImplementation']}],[_[_0x1f6ec1(0x144)],{'useClass':exports[_0x1f6ec1(0x3ce)]}],[a[_0x1f6ec1(0x520)],{'useClass':exports[_0x1f6ec1(0x3fb)]}],[j[_0x1f6ec1(0x3d7)],{'useClass':exports[_0x1f6ec1(0x434)]}],[exports[_0x1f6ec1(0x34d)]],[exports[_0x1f6ec1(0x327)]],[exports[_0x1f6ec1(0x2bf)]],[Ce],[ne]];(_0x465357=this[_0x1f6ec1(0x3d8)])!=null&&_0x465357[_0x1f6ec1(0x12d)]&&_0x59d739[_0x1f6ec1(0x2d0)]([Re,{'useClass':$s}]),_0x59d739=a[_0x1f6ec1(0x469)](_0x59d739,(_0x3b5090=this[_0x1f6ec1(0x3d8)])==null?void 0x0:_0x3b5090[_0x1f6ec1(0x2de)]),_0x59d739[_0x1f6ec1(0x50c)](_0x57a95f=>this['_injector'][_0x1f6ec1(0x150)](_0x57a95f)),this['_initModules']();}['_registerRenderDependencies'](){const _0x46dd9c=_0x57f41f;this[_0x46dd9c(0x1e2)](this[_0x46dd9c(0x46a)][_0x46dd9c(0x551)](a[_0x46dd9c(0x4f6)][_0x46dd9c(0x1a7)],[Ve])),this[_0x46dd9c(0x1e2)](this[_0x46dd9c(0x46a)][_0x46dd9c(0x551)](a[_0x46dd9c(0x4f6)]['UNIVER_SHEET'],[We]));}[_0x57f41f(0x15f)](){const _0xe5b2b=_0x57f41f;var _0x284d82,_0x2bd932;this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](w[_0xe5b2b(0x45d)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':w['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_injector'][_0xe5b2b(0x31f)](be),(_0x284d82=this[_0xe5b2b(0x3d8)])!=null&&_0x284d82[_0xe5b2b(0x1fb)]||this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](exports[_0xe5b2b(0x4a8)])[_0xe5b2b(0x1f2)](),(_0x2bd932=this['_config'])!=null&&_0x2bd932[_0xe5b2b(0x247)]&&this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](Ee),this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](exports[_0xe5b2b(0x34d)]),this[_0xe5b2b(0x331)][_0xe5b2b(0x2c9)](exports[_0xe5b2b(0x2bf)])&&this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](exports[_0xe5b2b(0x2bf)]);}},Mn(exports[_0x57f41f(0x2ee)],_0x57f41f(0x431),An),exports['UniverCollaborationClientPlugin']=Nn([a['DependentOn'](_[_0x57f41f(0x30b)]),me(0x1,a['ILogService']),me(0x2,O['IRenderManagerService']),me(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),me(0x4,a[_0x57f41f(0x435)])],exports[_0x57f41f(0x2ee)]),exports[_0x57f41f(0x43b)]=jt,exports[_0x57f41f(0x2cc)]=Ct,exports[_0x57f41f(0x268)]=gt,exports[_0x57f41f(0x35b)]=U,exports['CollaborationStatusDisplay']=Lt,exports['CommentService']=Xe,exports[_0x57f41f(0x1c6)]=mt,exports[_0x57f41f(0x33c)]=Ge,exports['ICollaborationSocketService']=Ke,exports[_0x57f41f(0x1db)]=Qe,exports[_0x57f41f(0x3e6)]=pt,exports[_0x57f41f(0x511)]=Et,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=It,exports['SEND_CHANGESET_TIMEOUT_KEY']=zt,exports[_0x57f41f(0x53f)]=St,exports[_0x57f41f(0x54a)]=vt,exports[_0x57f41f(0x13c)]=H,exports['SheetCollabCursorShape']=Pt,exports[_0x57f41f(0x408)]=$t,exports[_0x57f41f(0x18c)]=Rt,exports[_0x57f41f(0x30d)]=Ot;
|
1
|
+
'use strict';const _0x4821de=_0x370a;(function(_0x3535b0,_0x4133bc){const _0x514ce6=_0x370a,_0x4daf23=_0x3535b0();while(!![]){try{const _0x21b8d7=parseInt(_0x514ce6(0x529))/0x1*(parseInt(_0x514ce6(0x530))/0x2)+-parseInt(_0x514ce6(0x2e2))/0x3+parseInt(_0x514ce6(0x495))/0x4*(parseInt(_0x514ce6(0x35d))/0x5)+parseInt(_0x514ce6(0x45f))/0x6+parseInt(_0x514ce6(0x20b))/0x7*(-parseInt(_0x514ce6(0x3e4))/0x8)+parseInt(_0x514ce6(0x3d6))/0x9*(parseInt(_0x514ce6(0x2ed))/0xa)+-parseInt(_0x514ce6(0x382))/0xb;if(_0x21b8d7===_0x4133bc)break;else _0x4daf23['push'](_0x4daf23['shift']());}catch(_0x47d58c){_0x4daf23['push'](_0x4daf23['shift']());}}}(_0x5af9,0x33dbc));var Ft=Object[_0x4821de(0x51a)],Gt=(_0xa58f9d,_0x237cf5,_0x413e3a)=>_0x237cf5 in _0xa58f9d?Ft(_0xa58f9d,_0x237cf5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413e3a}):_0xa58f9d[_0x237cf5]=_0x413e3a,u=(_0x31f1d7,_0x196944,_0x2076f4)=>Gt(_0x31f1d7,typeof _0x196944!=_0x4821de(0x46c)?_0x196944+'':_0x196944,_0x2076f4);Object[_0x4821de(0x51a)](exports,Symbol['toStringTag'],{'value':_0x4821de(0x404)});const a=require('@univerjs/core'),v=require('rxjs'),E=require('rxjs/operators'),X=require('@univerjs/design'),A=require('@univerjs/ui'),w=require(_0x4821de(0x3dd)),_=require(_0x4821de(0x24e)),Yt=require('@univerjs/telemetry'),N=require('@univerjs/docs-ui'),C=require('@univerjs/sheets'),O=require(_0x4821de(0x400)),se=require(_0x4821de(0x584)),j=require(_0x4821de(0x45d)),et=require(_0x4821de(0x3e0)),te=require(_0x4821de(0x410)),P=require(_0x4821de(0x2ef)),Kt=require(_0x4821de(0x619)),Xt=require('@univerjs-pro/license'),St=_0x4821de(0x5ec),qt=_0x4821de(0x4c1),vt='SNAPSHOT_URL_KEY',zt=_0x4821de(0x4f6),Jt=0x7d0,gt=_0x4821de(0x271),Zt=_0x4821de(0x33d),mt=_0x4821de(0x25e),Qt=0x7530,Ge=_0x4821de(0x308),ft=0x4e20,es=0x4e20,It=_0x4821de(0x499),ts=0x3,pt=_0x4821de(0x23e),ss=0x3e8,Ct='COLLAB_SUBMIT_CHANGESET_URL',is=_0x4821de(0x36e),Et=_0x4821de(0x552),ns='/universer-api/oidc/authpage';var bt=(_0x10c196=>(_0x10c196[_0x10c196['UNDEFINED']=0x0]=_0x4821de(0x298),_0x10c196[_0x10c196['OK']=0x1]='OK',_0x10c196[_0x10c196[_0x4821de(0x4e4)]=0x2]=_0x4821de(0x4e4),_0x10c196[_0x10c196[_0x4821de(0x5c2)]=0x3]='PERMISSION_DENIED',_0x10c196[_0x10c196[_0x4821de(0x3a6)]=0x4]='NOT_FOUND',_0x10c196[_0x10c196['UNAUTHENTICATED']=0x5]=_0x4821de(0x2e6),_0x10c196[_0x10c196[_0x4821de(0x391)]=0x6]='ALREADY_EXISTS',_0x10c196[_0x10c196['INVALID_ARGUMENT']=0x7]=_0x4821de(0x3c8),_0x10c196[_0x10c196[_0x4821de(0x2bb)]=0x8]=_0x4821de(0x2bb),_0x10c196[_0x10c196[_0x4821de(0x2af)]=0x9]='COMPLETION_FINISHED',_0x10c196[_0x10c196[_0x4821de(0x542)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x10c196[_0x10c196[_0x4821de(0x35e)]=0x1771]=_0x4821de(0x35e),_0x10c196[_0x10c196[_0x4821de(0x477)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x10c196[_0x10c196[_0x4821de(0x295)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x10c196[_0x10c196[_0x4821de(0x483)]=0x1b59]=_0x4821de(0x483),_0x10c196[_0x10c196[_0x4821de(0x5f1)]=0x1b5a]=_0x4821de(0x5f1),_0x10c196[_0x10c196['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x4821de(0x2d0),_0x10c196[_0x10c196[_0x4821de(0x543)]=0x1b5c]=_0x4821de(0x543),_0x10c196[_0x10c196[_0x4821de(0x23a)]=0x1b5d]=_0x4821de(0x23a),_0x10c196[_0x10c196[_0x4821de(0x4ca)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x10c196[_0x10c196['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4821de(0x4e1),_0x10c196[_0x10c196[_0x4821de(0x37c)]=0x232a]=_0x4821de(0x37c),_0x10c196[_0x10c196['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4821de(0x47d),_0x10c196[_0x10c196['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4821de(0x1ff),_0x10c196[_0x10c196[_0x4821de(0x4fd)]=0x232d]=_0x4821de(0x4fd),_0x10c196[_0x10c196[_0x4821de(0x26a)]=0x2711]=_0x4821de(0x26a),_0x10c196[_0x10c196['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4821de(0x57d),_0x10c196[_0x10c196[_0x4821de(0x4bd)]=0x2713]=_0x4821de(0x4bd),_0x10c196[_0x10c196[_0x4821de(0x3c3)]=0x2714]=_0x4821de(0x3c3),_0x10c196[_0x10c196['UNRECOGNIZED']=-0x1]=_0x4821de(0x4c0),_0x10c196))(bt||{}),$=(_0x26bff8=>(_0x26bff8[_0x26bff8[_0x4821de(0x387)]=0x0]=_0x4821de(0x387),_0x26bff8[_0x26bff8['UNIVER_DOC']=0x1]=_0x4821de(0x5f0),_0x26bff8[_0x26bff8[_0x4821de(0x453)]=0x2]=_0x4821de(0x453),_0x26bff8[_0x26bff8[_0x4821de(0x34e)]=0x3]=_0x4821de(0x34e),_0x26bff8[_0x26bff8[_0x4821de(0x615)]=0x4]=_0x4821de(0x615),_0x26bff8[_0x26bff8[_0x4821de(0x4c0)]=-0x1]=_0x4821de(0x4c0),_0x26bff8))($||{}),b=(_0x2fd3a0=>(_0x2fd3a0[_0x2fd3a0[_0x4821de(0x5d9)]=0x0]='UNKNOWN_CMD',_0x2fd3a0[_0x2fd3a0['HELLO']=0x1]=_0x4821de(0x325),_0x2fd3a0[_0x2fd3a0[_0x4821de(0x569)]=0x2]=_0x4821de(0x569),_0x2fd3a0[_0x2fd3a0['LEAVE']=0x3]=_0x4821de(0x5fd),_0x2fd3a0[_0x2fd3a0[_0x4821de(0x276)]=0x4]=_0x4821de(0x276),_0x2fd3a0[_0x2fd3a0[_0x4821de(0x348)]=0x5]=_0x4821de(0x348),_0x2fd3a0[_0x2fd3a0[_0x4821de(0x27c)]=0x6]=_0x4821de(0x27c),_0x2fd3a0[_0x2fd3a0[_0x4821de(0x4c0)]=-0x1]='UNRECOGNIZED',_0x2fd3a0))(b||{}),Ye=(_0x4ed184=>(_0x4ed184[_0x4ed184[_0x4821de(0x2b0)]=0x0]=_0x4821de(0x2b0),_0x4ed184[_0x4ed184['OK']=0x1]='OK',_0x4ed184[_0x4ed184[_0x4821de(0x355)]=0x2]=_0x4821de(0x355),_0x4ed184[_0x4ed184['UNRECOGNIZED']=-0x1]=_0x4821de(0x4c0),_0x4ed184))(Ye||{}),Tt=(_0x310b83=>(_0x310b83[_0x310b83['Undefined']=0x0]='Undefined',_0x310b83[_0x310b83['HttpImport']=0x1]=_0x4821de(0x390),_0x310b83[_0x310b83[_0x4821de(0x37d)]=0x2]=_0x4821de(0x37d),_0x310b83[_0x310b83['UnitEmbedded']=0x3]='UnitEmbedded',_0x310b83[_0x310b83[_0x4821de(0x544)]=0x4]=_0x4821de(0x544),_0x310b83[_0x310b83[_0x4821de(0x4c0)]=-0x1]='UNRECOGNIZED',_0x310b83))(Tt||{});const L='collaboration-client.config',rs={};function Rt(_0x16f02f){const _0x276572=_0x4821de;var _0x36bd58,_0x1746f5,_0x145958,_0x5f36bd;const _0x5ddcd1=_0x16f02f[_0x276572(0x434)],_0x5ee267=JSON[_0x276572(0x5f4)](_0x5ddcd1);switch(_0x5ee267[_0x276572(0x358)]){case b[_0x276572(0x348)]:case b[_0x276572(0x325)]:{const _0x3a70db=_0x5ee267[_0x276572(0x376)];return{..._0x5ee267,'data':_0x3a70db,'cmd':_0x5ee267[_0x276572(0x358)]};}case b[_0x276572(0x569)]:{const _0x3cf390=_0x5ee267[_0x276572(0x5b3)];return{..._0x5ee267,'data':_0x3cf390,'cmd':_0x5ee267['cmd']};}case b['RECV']:{const _0x101bd7=_0x5ee267[_0x276572(0x2ec)];switch(_0x101bd7[_0x276572(0x2ab)]){case _['CollaborationEvent'][_0x276572(0x21d)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':(_0x36bd58=_0x101bd7[_0x276572(0x50f)])==null?void 0x0:_0x36bd58['cs']},'cmd':_0x5ee267['cmd']};case _[_0x276572(0x215)][_0x276572(0x32a)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':(_0x1746f5=_0x101bd7[_0x276572(0x246)])==null?void 0x0:_0x1746f5['cs']},'cmd':_0x5ee267[_0x276572(0x358)]};case _[_0x276572(0x215)][_0x276572(0x609)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':(_0x145958=_0x101bd7[_0x276572(0x3f5)])==null?void 0x0:_0x145958['cs']},'cmd':_0x5ee267[_0x276572(0x358)]};case _['CollaborationEvent'][_0x276572(0x3da)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':(_0x5f36bd=_0x101bd7[_0x276572(0x322)])==null?void 0x0:_0x5f36bd['cs']},'cmd':_0x5ee267[_0x276572(0x358)]};case _[_0x276572(0x215)][_0x276572(0x30c)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x2f3)]},'cmd':_0x5ee267['cmd']};case _[_0x276572(0x215)][_0x276572(0x289)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x282)]},'cmd':_0x5ee267[_0x276572(0x358)]};case _[_0x276572(0x215)]['USERS_LEAVE']:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x204)]},'cmd':_0x5ee267[_0x276572(0x358)]};case _[_0x276572(0x215)]['LIVESHARE_NEW_HOST']:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x3f4)]},'cmd':_0x5ee267['cmd']};case _['CollaborationEvent'][_0x276572(0x262)]:case _[_0x276572(0x215)][_0x276572(0x516)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x535)]},'cmd':_0x5ee267[_0x276572(0x358)]};case _['CollaborationEvent'][_0x276572(0x281)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x3f4)]},'cmd':_0x5ee267['cmd']};case _[_0x276572(0x215)][_0x276572(0x25d)]:return{..._0x5ee267,'data':_0x101bd7,'cmd':_0x5ee267[_0x276572(0x358)]};case _[_0x276572(0x215)]['COMMENT_UPDATE']:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x288)]},'cmd':_0x5ee267['cmd']};case _[_0x276572(0x215)][_0x276572(0x28a)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x2bf)]},'cmd':_0x5ee267['cmd']};case _[_0x276572(0x215)][_0x276572(0x39c)]:return{..._0x5ee267,'data':{..._0x101bd7,'data':_0x101bd7[_0x276572(0x46b)]},'cmd':_0x5ee267[_0x276572(0x358)]};default:return _0x5ee267;}}default:return _0x5ee267;}}function Ot(_0x20d06d){const _0x352935=_0x4821de;switch(_0x20d06d[_0x352935(0x358)]){case b[_0x352935(0x348)]:case b[_0x352935(0x325)]:return JSON['stringify']({'cmd':_0x20d06d[_0x352935(0x358)],'routeKey':_0x20d06d[_0x352935(0x54d)]});case b[_0x352935(0x276)]:{let _0x2f5191;switch(_0x20d06d[_0x352935(0x434)][_0x352935(0x2ab)]){case _[_0x352935(0x215)][_0x352935(0x30c)]:{_0x2f5191={'eventID':_[_0x352935(0x215)]['UPDATE_CURSOR'],'updateCursorEvent':_0x20d06d[_0x352935(0x434)][_0x352935(0x434)]};break;}case _[_0x352935(0x215)][_0x352935(0x520)]:{_0x2f5191={'eventID':_['CollaborationEvent'][_0x352935(0x520)],'leaveEvent':_0x20d06d['data']['data']};break;}case _[_0x352935(0x215)][_0x352935(0x289)]:{_0x2f5191={'eventID':_[_0x352935(0x215)]['USERS_ENTER'],'joinEvent':_0x20d06d['data'][_0x352935(0x434)]};break;}case _[_0x352935(0x215)]['LIVESHARE_NEW_HOST']:{_0x2f5191={'eventID':_['CollaborationEvent'][_0x352935(0x5d0)],'liveShareNewHost':_0x20d06d['data'][_0x352935(0x434)]};break;}case _[_0x352935(0x215)]['LIVESHARE_OPERATION']:{_0x2f5191={'eventID':_[_0x352935(0x215)][_0x352935(0x516)],'liveShareOperation':_0x20d06d[_0x352935(0x434)][_0x352935(0x434)]};break;}case _[_0x352935(0x215)][_0x352935(0x281)]:{_0x2f5191={'eventID':_['CollaborationEvent'][_0x352935(0x281)],'liveShareTerminate':_0x20d06d[_0x352935(0x434)][_0x352935(0x434)]};break;}case _['CollaborationEvent'][_0x352935(0x4fe)]:{_0x2f5191={'eventID':_['CollaborationEvent'][_0x352935(0x4fe)],'liveShareRequestHost':_0x20d06d[_0x352935(0x434)]['data']};break;}case _[_0x352935(0x215)][_0x352935(0x262)]:{_0x2f5191={'eventID':_[_0x352935(0x215)][_0x352935(0x262)]};break;}default:_0x2f5191={'eventID':_0x20d06d['data'][_0x352935(0x2ab)]};}return JSON['stringify']({'cmd':_0x20d06d[_0x352935(0x358)],'routeKey':_0x20d06d['routeKey'],'collaMsg':_0x2f5191});}case b[_0x352935(0x569)]:return JSON['stringify']({'cmd':_0x20d06d['cmd'],'routeKey':_0x20d06d['routeKey'],'joinReq':_0x20d06d[_0x352935(0x434)]});case b['LEAVE']:return JSON[_0x352935(0x44f)]({'cmd':_0x20d06d[_0x352935(0x358)],'routeKey':_0x20d06d['routeKey'],'leaveReq':_0x20d06d[_0x352935(0x434)]});default:throw new Error(_0x352935(0x3d4));}}var os=Object['defineProperty'],as=Object[_0x4821de(0x4f8)],cs=(_0xa331c7,_0x2617bd,_0x5d3757,_0x1812ce)=>{for(var _0x4555bc=_0x1812ce>0x1?void 0x0:_0x1812ce?as(_0x2617bd,_0x5d3757):_0x2617bd,_0x55a544=_0xa331c7['length']-0x1,_0x4b6d3d;_0x55a544>=0x0;_0x55a544--)(_0x4b6d3d=_0xa331c7[_0x55a544])&&(_0x4555bc=(_0x1812ce?_0x4b6d3d(_0x2617bd,_0x5d3757,_0x4555bc):_0x4b6d3d(_0x4555bc))||_0x4555bc);return _0x1812ce&&_0x4555bc&&os(_0x2617bd,_0x5d3757,_0x4555bc),_0x4555bc;},ae=(_0x51c2bc,_0x1cd825)=>(_0x44fe2b,_0x3f06f8)=>_0x1cd825(_0x44fe2b,_0x3f06f8,_0x51c2bc);const Ke=a['createIdentifier'](_0x4821de(0x426));function ls(_0x2d9f01,_0x377eb2,_0x5d8d01){const _0x543cea=_0x4821de;return _0x2d9f01+'/'+_0x377eb2+_0x543cea(0x46d)+_0x5d8d01+_0x543cea(0x524);}exports[_0x4821de(0x485)]=class extends a[_0x4821de(0x357)]{constructor(_0x5dae70,_0x4d6350,_0x1ff98f,_0x3f4ffa,_0x5c8660){const _0x1a6c19=_0x4821de;super(),this[_0x1a6c19(0x61d)]=_0x5dae70,this[_0x1a6c19(0x32c)]=_0x4d6350,this[_0x1a6c19(0x519)]=_0x1ff98f,this['_logService']=_0x3f4ffa,this[_0x1a6c19(0x448)]=_0x5c8660;}[_0x4821de(0x27a)](_0x188f2b){const _0x42738e=_0x4821de,_0xe7f232=this[_0x42738e(0x32c)]['createSocket'](_0x188f2b);if(!_0xe7f232)throw new Error(_0x42738e(0x441));const _0x528893=new a[(_0x42738e(0x490))](),_0x3b1187=new v[(_0x42738e(0x2a2))]();_0x528893[_0x42738e(0x201)](_0xe7f232['close$'][_0x42738e(0x48c)](_0x288192=>_0x3b1187[_0x42738e(0x56e)](_0x288192))),_0x528893[_0x42738e(0x201)](a[_0x42738e(0x35f)](()=>_0x3b1187[_0x42738e(0x56b)]()));const _0x1af23a=new v[(_0x42738e(0x2a2))]();_0x528893[_0x42738e(0x201)](_0xe7f232['error$'][_0x42738e(0x48c)](_0x203f19=>_0x1af23a[_0x42738e(0x56e)](_0x203f19))),_0x528893[_0x42738e(0x201)](a[_0x42738e(0x35f)](()=>_0x1af23a[_0x42738e(0x56b)]()));const _0x2030a8=new v[(_0x42738e(0x2a2))]();_0x528893['add'](_0xe7f232[_0x42738e(0x492)]['subscribe'](_0x590e04=>{const _0x517808=Rt(_0x590e04);_0x2030a8['next'](_0x517808);})),_0x528893[_0x42738e(0x201)](a[_0x42738e(0x35f)](()=>_0x2030a8[_0x42738e(0x56b)]()));let _0x1b95c6;const _0x390641=()=>{const _0x5baa22=_0x42738e;_0x1af23a[_0x5baa22(0x56e)](new Event(_0x5baa22(0x343))),_0x3b1187[_0x5baa22(0x56e)](new CloseEvent(_0x5baa22(0x343))),_0x1b95c6[_0x5baa22(0x23f)]();};return _0x1b95c6={'memberID':'','close$':_0x3b1187[_0x42738e(0x43a)](),'error$':_0x1af23a[_0x42738e(0x43a)](),'open$':_0xe7f232[_0x42738e(0x4cb)],'message$':_0x2030a8[_0x42738e(0x43a)](),'send':_0x271252=>{const _0x580df2=_0x42738e;if(_0x271252[_0x580df2(0x358)]===b[_0x580df2(0x276)]){if(_0x271252[_0x580df2(0x434)]['eventID']===_[_0x580df2(0x215)]['SUBMIT_CHANGESET']){this[_0x580df2(0x235)](_0x1b95c6,_0x271252[_0x580df2(0x434)])[_0x580df2(0x4ba)](_0x210174=>{const _0x1a9461=_0x580df2;this[_0x1a9461(0x244)]['error'](_0x210174),_0x390641();});return;}if(_0x271252[_0x580df2(0x434)][_0x580df2(0x2ab)]===_[_0x580df2(0x215)]['FETCH_MISSING']){const _0x5755bb=_0x271252['data'];this[_0x580df2(0x3d7)](_0x5755bb)[_0x580df2(0x379)](_0x290065=>{const _0x5a22bf=_0x580df2;_0x2030a8[_0x5a22bf(0x56e)]({'cmd':b[_0x5a22bf(0x27c)],'code':Ye['OK'],'routeKey':_0x5755bb[_0x5a22bf(0x434)][_0x5a22bf(0x4ef)],'routeType':'','data':{'eventID':_[_0x5a22bf(0x215)][_0x5a22bf(0x4bb)],'data':{'changesets':_0x290065}}});})[_0x580df2(0x4ba)](_0x361393=>{const _0x4b7062=_0x580df2;this[_0x4b7062(0x244)]['error'](_0x361393),_0x390641();});return;}}_0xe7f232[_0x580df2(0x42f)](Ot(_0x271252));},'close':()=>{const _0x652f12=_0x42738e;_0xe7f232[_0x652f12(0x23f)](),_0x528893[_0x652f12(0x442)]();}},_0x1b95c6;}async[_0x4821de(0x235)](_0x52556e,_0x4cda26){const _0x41bbe7=_0x4821de;var _0x3be93f,_0x43c7e8;const {unitType:_0x2a581e,unitID:_0x32f93e,changeset:_0x45d31f}=_0x4cda26['data'],_0x269a12={'unitID':_0x32f93e,'memberID':_0x52556e[_0x41bbe7(0x5f6)],'type':_0x2a581e,'changeset':_[_0x41bbe7(0x5ac)](_0x45d31f)},_0x3733e0=this[_0x41bbe7(0x519)]['getConfig'](Ct),_0x4752dc=this['_configService'][_0x41bbe7(0x2ce)](L),_0x23a57f=ls((_0x43c7e8=(_0x3be93f=_0x4752dc==null?void 0x0:_0x4752dc[_0x41bbe7(0x265)])!=null?_0x3be93f:_0x3733e0)!=null?_0x43c7e8:is,_0x2a581e,_0x32f93e);try{await this['_http'][_0x41bbe7(0x3a7)](_0x23a57f,{'body':_0x269a12});}catch(_0x5450a8){throw this[_0x41bbe7(0x244)]['error'](_0x41bbe7(0x24d),_0x41bbe7(0x4ff)),_0x5450a8;}}async['_fetchMissChangesets'](_0x293397){const _0x4668ed=_0x4821de,{unitID:_0x550f45,from:_0x506523,to:_0x50ed75,unitType:_0x35e041}=_0x293397[_0x4668ed(0x434)];return(await this[_0x4668ed(0x448)][_0x4668ed(0x38b)]({'metadata':void 0x0},{'unitID':_0x550f45,'type':_0x35e041,'from':_0x506523,'to':_0x50ed75}))[_0x4668ed(0x28e)];}},exports[_0x4821de(0x485)]=cs([ae(0x0,a['Inject'](w[_0x4821de(0x538)])),ae(0x1,a['Inject'](w['WebSocketService'])),ae(0x2,a[_0x4821de(0x482)]),ae(0x3,a[_0x4821de(0x49c)]),ae(0x4,_[_0x4821de(0x44a)])],exports[_0x4821de(0x485)]);const hs=_0x4821de(0x454);function _s(_0x24c60f){const _0x43629d=_0x4821de;return JSON[_0x43629d(0x44f)](_0x24c60f)['length'];}class Xe{constructor(){const _0xac716b=_0x4821de;u(this,_0xac716b(0x5e1),new v[(_0xac716b(0x2a2))]()),u(this,_0xac716b(0x4c5),this[_0xac716b(0x5e1)][_0xac716b(0x43a)]());}[_0x4821de(0x269)](_0x34e77c){this['_commentUpdate$']['next'](_0x34e77c);}}var us=Object[_0x4821de(0x51a)],ds=Object[_0x4821de(0x4f8)],Ss=(_0x371cc7,_0x5b1f80,_0xa2e67d,_0x4b7eb2)=>{const _0x4a108f=_0x4821de;for(var _0x3f5ac1=_0x4b7eb2>0x1?void 0x0:_0x4b7eb2?ds(_0x5b1f80,_0xa2e67d):_0x5b1f80,_0x50c9e5=_0x371cc7[_0x4a108f(0x1fe)]-0x1,_0x16ef53;_0x50c9e5>=0x0;_0x50c9e5--)(_0x16ef53=_0x371cc7[_0x50c9e5])&&(_0x3f5ac1=(_0x4b7eb2?_0x16ef53(_0x5b1f80,_0xa2e67d,_0x3f5ac1):_0x16ef53(_0x3f5ac1))||_0x3f5ac1);return _0x4b7eb2&&_0x3f5ac1&&us(_0x5b1f80,_0xa2e67d,_0x3f5ac1),_0x3f5ac1;},tt=(_0x13b286,_0x52f48e)=>(_0x5660b5,_0x2386ac)=>_0x52f48e(_0x5660b5,_0x2386ac,_0x13b286);let q=class extends a[_0x4821de(0x357)]{constructor(_0x5ea8de,_0x5ccb37){const _0x3882a2=_0x4821de;super(),u(this,_0x3882a2(0x24c),new Map()),(this[_0x3882a2(0x487)]=_0x5ea8de,this[_0x3882a2(0x26f)]=_0x5ccb37,this[_0x3882a2(0x4b1)](a[_0x3882a2(0x35f)](v[_0x3882a2(0x371)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3882a2(0x2a5)](E['map'](_0x2444b9=>_0x2444b9[_0x3882a2(0x1f7)]())),this[_0x3882a2(0x487)][_0x3882a2(0x528)](a['UniverInstanceType']['UNIVER_DOC'])[_0x3882a2(0x2a5)](E[_0x3882a2(0x27e)](_0x3af44f=>_0x3af44f[_0x3882a2(0x1f7)]())),this[_0x3882a2(0x487)][_0x3882a2(0x528)](a[_0x3882a2(0x22e)][_0x3882a2(0x34e)])['pipe'](E[_0x3882a2(0x27e)](_0x285cca=>_0x285cca['getUnitId']())))[_0x3882a2(0x48c)](_0x5a2cf4=>this['_removeRoom'](_0x5a2cf4)))));}[_0x4821de(0x537)](_0x3ffee5){const _0x76286a=_0x4821de;this['_userManagerService'][_0x76286a(0x537)](_0x3ffee5);}['getCurrentUser'](){const _0x5d9674=_0x4821de;return this[_0x5d9674(0x26f)][_0x5d9674(0x42c)]();}[_0x4821de(0x3bd)](_0x5e04b1,_0x1fc352){const _0xce2eb9=_0x4821de;let _0x45c3ae=this[_0xce2eb9(0x24c)]['get'](_0x5e04b1);_0x45c3ae||(_0x45c3ae=new vs(),this[_0xce2eb9(0x24c)][_0xce2eb9(0x4d0)](_0x5e04b1,_0x45c3ae)),_0x45c3ae[_0xce2eb9(0x3bd)](_0x1fc352);}[_0x4821de(0x5b7)](_0x389d6e,_0x50bae6){const _0x1d9bc7=_0x4821de,_0x7bb22e=this[_0x1d9bc7(0x24c)]['get'](_0x389d6e);_0x7bb22e&&_0x7bb22e['removeMember'](_0x50bae6);}[_0x4821de(0x2fd)](_0x4768f4){const _0x565639=_0x4821de;return this[_0x565639(0x24c)]['get'](_0x4768f4);}[_0x4821de(0x489)](_0x59b202,_0x4c5d0c){const _0x180cf3=_0x4821de,_0x38a4d5=this[_0x180cf3(0x24c)][_0x180cf3(0x56d)](_0x59b202);if(_0x38a4d5)return _0x38a4d5[_0x180cf3(0x489)](_0x4c5d0c);}[_0x4821de(0x49a)](_0x556df6){const _0x17bc48=_0x4821de,_0x650d68=this['_roomMembers'][_0x17bc48(0x56d)](_0x556df6);_0x650d68&&(_0x650d68[_0x17bc48(0x442)](),this[_0x17bc48(0x24c)][_0x17bc48(0x28c)](_0x556df6));}[_0x4821de(0x442)](){const _0x2222e9=_0x4821de;this[_0x2222e9(0x24c)][_0x2222e9(0x3c2)](_0x4cddc3=>_0x4cddc3['dispose']()),this[_0x2222e9(0x24c)][_0x2222e9(0x25a)]();}};q=Ss([tt(0x0,a['IUniverInstanceService']),tt(0x1,a['Inject'](a[_0x4821de(0x47f)]))],q);class vs extends a[_0x4821de(0x357)]{constructor(){const _0x2476ac=_0x4821de;super(...arguments),u(this,_0x2476ac(0x4b5),new Map());}[_0x4821de(0x442)](){const _0x2e315e=_0x4821de;this[_0x2e315e(0x4b5)]['clear']();}['updateMember'](_0x4bc56b){const _0x4c02dd=_0x4821de;this['_members'][_0x4c02dd(0x4d0)](_0x4bc56b[_0x4c02dd(0x5f6)],_0x4bc56b);}[_0x4821de(0x5b7)](_0x4c4953){const _0x59be6c=_0x4821de;this[_0x59be6c(0x4b5)][_0x59be6c(0x28c)](_0x4c4953);}[_0x4821de(0x489)](_0x468083){const _0x3bc6ca=_0x4821de;return this[_0x3bc6ca(0x4b5)][_0x3bc6ca(0x56d)](_0x468083);}}var gs=Object['defineProperty'],ms=Object['getOwnPropertyDescriptor'],fs=(_0x3d8f84,_0x448d0b,_0x5322cc,_0x5cc535)=>{const _0x37b045=_0x4821de;for(var _0xa9e183=_0x5cc535>0x1?void 0x0:_0x5cc535?ms(_0x448d0b,_0x5322cc):_0x448d0b,_0x4b2e66=_0x3d8f84[_0x37b045(0x1fe)]-0x1,_0x2560bc;_0x4b2e66>=0x0;_0x4b2e66--)(_0x2560bc=_0x3d8f84[_0x4b2e66])&&(_0xa9e183=(_0x5cc535?_0x2560bc(_0x448d0b,_0x5322cc,_0xa9e183):_0x2560bc(_0xa9e183))||_0xa9e183);return _0x5cc535&&_0xa9e183&&gs(_0x448d0b,_0x5322cc,_0xa9e183),_0xa9e183;},V=(_0x6ffe79,_0x114261)=>(_0x1446bf,_0x33e55d)=>_0x114261(_0x1446bf,_0x33e55d,_0x6ffe79),H=(_0x14f24b=>(_0x14f24b[_0x14f24b[_0x4821de(0x4cf)]=0x0]=_0x4821de(0x4cf),_0x14f24b[_0x14f24b[_0x4821de(0x5d1)]=0x1]=_0x4821de(0x5d1),_0x14f24b[_0x14f24b[_0x4821de(0x266)]=0x2]=_0x4821de(0x266),_0x14f24b[_0x14f24b['ONLINE']=0x3]=_0x4821de(0x451),_0x14f24b))(H||{});exports[_0x4821de(0x27b)]=class extends a[_0x4821de(0x56f)]{constructor(_0x2a5198,_0x4c5155,_0x22b968,_0x3f56fa,_0x5041ee,_0x15708b,_0x1b4fd8,_0x479029,_0x1d7bcc,_0x13cd2f){const _0x3a2088=_0x4821de;super(),u(this,_0x3a2088(0x203),new v[(_0x3a2088(0x611))](0x0)),u(this,_0x3a2088(0x2a8),this[_0x3a2088(0x203)][_0x3a2088(0x43a)]()),u(this,'_event$',new v[(_0x3a2088(0x2a2))]()),u(this,_0x3a2088(0x29f),this[_0x3a2088(0x4bf)][_0x3a2088(0x43a)]()),u(this,_0x3a2088(0x4f3)),u(this,_0x3a2088(0x594)),u(this,_0x3a2088(0x5bc)),u(this,_0x3a2088(0x553),!0x1),u(this,_0x3a2088(0x446),null),(this[_0x3a2088(0x4f0)]=_0x2a5198,this[_0x3a2088(0x244)]=_0x22b968,this[_0x3a2088(0x5cf)]=_0x3f56fa,this['_messageService']=_0x5041ee,this[_0x3a2088(0x519)]=_0x15708b,this[_0x3a2088(0x28b)]=_0x1b4fd8,this[_0x3a2088(0x2ae)]=_0x479029,this[_0x3a2088(0x506)]=_0x1d7bcc,this['_telemetryService']=_0x13cd2f,this['_shouldReportTelemetry']=!!this[_0x3a2088(0x349)],_0x4c5155[_0x3a2088(0x2a5)](v['takeUntil'](this[_0x3a2088(0x3ec)]))[_0x3a2088(0x48c)](_0xd817d8=>{const _0x2e27f7=_0x3a2088;var _0x4b16cb;typeof _0xd817d8>'u'||(this[_0x2e27f7(0x4f3)]=_0xd817d8,_0xd817d8?(this['_joinRoom'](_0xd817d8),this[_0x2e27f7(0x594)]=_0xd817d8['message$'][_0x2e27f7(0x48c)](_0x441bbf=>{const _0x4715d2=_0x2e27f7;_0x441bbf[_0x4715d2(0x54d)]===this[_0x4715d2(0x4f0)]&&this[_0x4715d2(0x3ca)](_0x441bbf);})):(this[_0x2e27f7(0x4ac)](),this[_0x2e27f7(0x203)]['next'](0x2),(_0x4b16cb=this['_socketMessageSubscription'])==null||_0x4b16cb[_0x2e27f7(0x31d)](),this[_0x2e27f7(0x594)]=null));}),this['disposeWithMe'](this[_0x3a2088(0x5cf)]['registerOnClose'](()=>{const _0x3ba979=_0x3a2088;var _0x5b04b0;(_0x5b04b0=this['_socket'])==null||_0x5b04b0[_0x3ba979(0x42f)]({'cmd':b[_0x3ba979(0x5fd)],'data':{'roomID':this[_0x3ba979(0x4f0)]}});})));}get['sessionStatus'](){const _0x3489f0=_0x4821de;return this['_sessionStatus$'][_0x3489f0(0x40b)]();}[_0x4821de(0x4e3)](){const _0x3d4d21=_0x4821de;var _0xf3f030,_0x398990;return(_0x398990=(_0xf3f030=this[_0x3d4d21(0x4f3)])==null?void 0x0:_0xf3f030[_0x3d4d21(0x5f6)])!=null?_0x398990:null;}[_0x4821de(0x442)](){const _0x3b7522=_0x4821de;super[_0x3b7522(0x442)](),this[_0x3b7522(0x3ec)][_0x3b7522(0x56e)](),this[_0x3b7522(0x3ec)][_0x3b7522(0x56b)]();}['close'](){const _0x3240cc=_0x4821de;var _0x173595,_0x49fab8;this[_0x3240cc(0x4ac)](),(_0x173595=this[_0x3240cc(0x4f3)])==null||_0x173595['send']({'cmd':b['LEAVE'],'data':{'roomID':this[_0x3240cc(0x4f0)]}}),(_0x49fab8=this[_0x3240cc(0x4f3)])==null||_0x49fab8[_0x3240cc(0x23f)](),this[_0x3240cc(0x4bf)][_0x3240cc(0x56b)](),this['_sessionStatus$'][_0x3240cc(0x56b)](),this[_0x3240cc(0x442)]();}[_0x4821de(0x3ca)](_0x33eef8){const _0x2e4a0a=_0x4821de;_0x33eef8['cmd']===b[_0x2e4a0a(0x569)]?this[_0x2e4a0a(0x305)](_0x33eef8):_0x33eef8[_0x2e4a0a(0x358)]===b['RECV']&&this[_0x2e4a0a(0x2b1)](_0x33eef8);}[_0x4821de(0x409)](_0x3c3cbf){const _0xa59a3a=_0x4821de;this[_0xa59a3a(0x203)][_0xa59a3a(0x56e)](0x1),_0x3c3cbf[_0xa59a3a(0x42f)]({'cmd':b['JOIN'],'routeKey':this[_0xa59a3a(0x4f0)],'routeType':'','data':{'rooms':[{'roomID':this[_0xa59a3a(0x4f0)]}]}});}[_0x4821de(0x305)](_0x1ebeb5){const _0x40b02d=_0x4821de;var _0x149515;if(_0x1ebeb5[_0x40b02d(0x361)]===Ye[_0x40b02d(0x355)]){this[_0x40b02d(0x3cb)][_0x40b02d(0x4d2)]({'type':X[_0x40b02d(0x43c)][_0x40b02d(0x33a)],'content':this[_0x40b02d(0x28b)]['t']('session.room-full')}),this[_0x40b02d(0x203)][_0x40b02d(0x56e)](0x2);return;}this[_0x40b02d(0x203)][_0x40b02d(0x56e)](0x3);const _0x55bbcc=(_0x149515=_0x1ebeb5['data']['roomInfos'][this[_0x40b02d(0x4f0)]])==null?void 0x0:_0x149515[_0x40b02d(0x566)];_0x55bbcc&&_0x55bbcc['forEach'](_0x20690a=>this['_memberService']['updateMember'](this[_0x40b02d(0x4f0)],_0x20690a));}[_0x4821de(0x2b1)](_0x10c458){const _0x5c5d35=_0x4821de;try{const _0x2d0b2f=_0x10c458['data'];switch(_0x2d0b2f[_0x5c5d35(0x2ab)]){case _['CollaborationEvent'][_0x5c5d35(0x289)]:this['_onUserJoin'](_0x2d0b2f),this[_0x5c5d35(0x4bf)][_0x5c5d35(0x56e)](_0x2d0b2f);break;case _[_0x5c5d35(0x215)][_0x5c5d35(0x520)]:this[_0x5c5d35(0x4b9)](_0x2d0b2f),this[_0x5c5d35(0x4bf)]['next'](_0x2d0b2f);break;case _[_0x5c5d35(0x215)]['CHANGESET_ACK']:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x5c5d35(0x56e)](_0x2d0b2f);break;case _[_0x5c5d35(0x215)][_0x5c5d35(0x25d)]:this[_0x5c5d35(0x244)][_0x5c5d35(0x5ee)](_0x5c5d35(0x5e3)+JSON['stringify'](_0x2d0b2f)),this[_0x5c5d35(0x4bf)][_0x5c5d35(0x56e)](_0x2d0b2f);break;case _[_0x5c5d35(0x215)][_0x5c5d35(0x21b)]:this[_0x5c5d35(0x506)][_0x5c5d35(0x269)](_0x2d0b2f[_0x5c5d35(0x434)]),this[_0x5c5d35(0x4bf)][_0x5c5d35(0x56e)](_0x2d0b2f);break;default:this[_0x5c5d35(0x4bf)][_0x5c5d35(0x56e)](_0x2d0b2f);}}catch(_0x4694a0){this[_0x5c5d35(0x244)][_0x5c5d35(0x5ee)](_0x4694a0,_0x10c458);}}[_0x4821de(0x237)](_0x3898a4){const _0x59bcc7=_0x4821de;this[_0x59bcc7(0x2ae)]['updateMember'](this[_0x59bcc7(0x4f0)],_0x3898a4[_0x59bcc7(0x434)]);}[_0x4821de(0x4b9)](_0x4a4225){const _0x597e63=_0x4821de;this[_0x597e63(0x2ae)][_0x597e63(0x5b7)](this[_0x597e63(0x4f0)],_0x4a4225['data'][_0x597e63(0x5f6)]);}async[_0x4821de(0x42f)](_0x256b2b,_0x5c79e8){const _0x59994c=_0x4821de;if(this[_0x59994c(0x356)]!==0x3||!this[_0x59994c(0x4f3)])throw new Error(_0x59994c(0x270));try{_0x256b2b[_0x59994c(0x2ab)]===_[_0x59994c(0x215)][_0x59994c(0x328)]&&(this[_0x59994c(0x417)](),this['_startTelemetryCollaborationNewChangeset'](_0x256b2b)),this[_0x59994c(0x4f3)][_0x59994c(0x42f)]({'cmd':b[_0x59994c(0x276)],'routeKey':_0x5c79e8,'routeType':'','data':_0x256b2b});}catch(_0x2bf1ec){this[_0x59994c(0x244)][_0x59994c(0x5ee)](_0x2bf1ec);}}[_0x4821de(0x417)](){const _0x34ab13=_0x4821de;var _0x52f753;this[_0x34ab13(0x5bc)]=window[_0x34ab13(0x3b5)](()=>{const _0x34dc11=_0x34ab13;this['_collaborationTimeoutTimer']=null,this['_messageService']['show']({'type':X[_0x34dc11(0x43c)][_0x34dc11(0x56a)],'content':this[_0x34dc11(0x28b)]['t']('session.collaboration-timeout')});},(_0x52f753=this[_0x34ab13(0x519)][_0x34ab13(0x2ce)](Ge))!=null?_0x52f753:ft);}['_clearCollaborationTimeoutTimer'](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x4821de(0x61b)](_0x1fb179){const _0x4492ed=_0x4821de;if(!this['_shouldReportTelemetry'])return;const {data:_0x131b8e}=_0x1fb179,{unitID:_0x5e319c,changeset:_0xf0ee80}=_0x131b8e,{mutations:_0x2e05ed,type:_0x9b7740}=_0xf0ee80;this[_0x4492ed(0x446)]={'unitId':_0x5e319c,'type':_0x9b7740,'startTime':performance[_0x4492ed(0x3b8)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x2e05ed)};}[_0x4821de(0x5e4)](){const _0x39a453=_0x4821de;if(this[_0x39a453(0x553)]){if(!this[_0x39a453(0x446)]){this['_logService'][_0x39a453(0x5ee)]('[CollaborationSession]',_0x39a453(0x496));return;}this[_0x39a453(0x446)][_0x39a453(0x5a4)]=performance[_0x39a453(0x3b8)](),this[_0x39a453(0x446)][_0x39a453(0x21f)]=this[_0x39a453(0x446)][_0x39a453(0x5a4)]-this[_0x39a453(0x446)][_0x39a453(0x2fa)],this[_0x39a453(0x349)][_0x39a453(0x3b4)](hs,this[_0x39a453(0x446)]),this[_0x39a453(0x446)]=null;}}[_0x4821de(0x4ac)](){this['_telemetryInfo']=null;}},exports[_0x4821de(0x27b)]=fs([V(0x2,a['ILogService']),V(0x3,A[_0x4821de(0x292)]),V(0x4,A[_0x4821de(0x200)]),V(0x5,a['IConfigService']),V(0x6,a['Inject'](a[_0x4821de(0x53d)])),V(0x7,a[_0x4821de(0x579)](q)),V(0x8,a['Inject'](Xe)),V(0x9,a['Optional'](Yt[_0x4821de(0x255)]))],exports[_0x4821de(0x27b)]);var Is=Object[_0x4821de(0x51a)],ps=Object[_0x4821de(0x4f8)],Cs=(_0x1068ed,_0x118057,_0x29cf5f,_0x28b158)=>{for(var _0x456256=_0x28b158>0x1?void 0x0:_0x28b158?ps(_0x118057,_0x29cf5f):_0x118057,_0x393b78=_0x1068ed['length']-0x1,_0x42b151;_0x393b78>=0x0;_0x393b78--)(_0x42b151=_0x1068ed[_0x393b78])&&(_0x456256=(_0x28b158?_0x42b151(_0x118057,_0x29cf5f,_0x456256):_0x42b151(_0x456256))||_0x456256);return _0x28b158&&_0x456256&&Is(_0x118057,_0x29cf5f,_0x456256),_0x456256;},Z=(_0x5ab3c1,_0x38898d)=>(_0x517585,_0xec8531)=>_0x38898d(_0x517585,_0xec8531,_0x5ab3c1);exports['CollaborationSessionService']=class extends a[_0x4821de(0x357)]{constructor(_0x10c61d,_0x4ad11c,_0x3a0d41,_0x7627d1,_0x178a55,_0x2ab06e){const _0x27c0a6=_0x4821de;super(),u(this,_0x27c0a6(0x2fc),new v[(_0x27c0a6(0x611))](void 0x0)),u(this,_0x27c0a6(0x3e2),this[_0x27c0a6(0x2fc)][_0x27c0a6(0x43a)]()),u(this,_0x27c0a6(0x52b),null),u(this,'_sessions',new Map()),u(this,_0x27c0a6(0x4e6),new v[(_0x27c0a6(0x611))](H[_0x27c0a6(0x4cf)])),u(this,_0x27c0a6(0x345),this[_0x27c0a6(0x4e6)][_0x27c0a6(0x43a)]()),u(this,_0x27c0a6(0x4d1),!0x1),u(this,'_retryConnectingTimer'),u(this,_0x27c0a6(0x46f),0x0),u(this,_0x27c0a6(0x4a6)),u(this,_0x27c0a6(0x440)),(this[_0x27c0a6(0x2ac)]=_0x10c61d,this['_localeService']=_0x4ad11c,this[_0x27c0a6(0x3cb)]=_0x3a0d41,this[_0x27c0a6(0x244)]=_0x7627d1,this[_0x27c0a6(0x519)]=_0x178a55,this[_0x27c0a6(0x205)]=_0x2ab06e,this[_0x27c0a6(0x3ac)]());}get['_socket'](){return this['_socket$']['getValue']();}[_0x4821de(0x3ac)](){const _0xfa446c=_0x4821de;this[_0xfa446c(0x2bd)](),this['_listenToOnlineEvent']();}[_0x4821de(0x442)](){const _0x49e882=_0x4821de;super[_0x49e882(0x442)](),this[_0x49e882(0x22c)]['forEach'](_0x3545c5=>_0x3545c5[_0x49e882(0x442)]()),this[_0x49e882(0x22c)][_0x49e882(0x25a)](),this['_status$'][_0x49e882(0x56b)]();}async[_0x4821de(0x277)](_0x34d988){const _0x92609f=_0x4821de;if(this['_sessions']['has'](_0x34d988))return this['_sessions'][_0x92609f(0x56d)](_0x34d988);this[_0x92609f(0x287)]();const _0x150e40=this[_0x92609f(0x2ac)]['createInstance'](exports[_0x92609f(0x27b)],_0x34d988,this[_0x92609f(0x2fc)][_0x92609f(0x43a)]());return this[_0x92609f(0x22c)]['set'](_0x34d988,_0x150e40),_0x150e40;}[_0x4821de(0x27d)](_0x189cc3){const _0x1d21fc=_0x4821de;var _0x59a40e;const _0x5e2d4a=this[_0x1d21fc(0x22c)][_0x1d21fc(0x56d)](_0x189cc3);_0x5e2d4a&&(this['_sessions'][_0x1d21fc(0x28c)](_0x189cc3),_0x5e2d4a[_0x1d21fc(0x23f)]()),this[_0x1d21fc(0x22c)][_0x1d21fc(0x5c1)]||(_0x59a40e=this[_0x1d21fc(0x4f3)])==null||_0x59a40e[_0x1d21fc(0x23f)]();}[_0x4821de(0x3e7)](){const _0x34f0bc=_0x4821de;this[_0x34f0bc(0x46f)]=0x0,this[_0x34f0bc(0x493)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x34f0bc(0x493)]=null),this[_0x34f0bc(0x392)]();}[_0x4821de(0x60f)](){const _0x4f3dc3=_0x4821de;var _0xa3c471,_0x45c153;const _0x56424f=this[_0x4f3dc3(0x519)][_0x4f3dc3(0x2ce)](gt),_0x2d584c=this[_0x4f3dc3(0x519)][_0x4f3dc3(0x2ce)](L),_0x4a46fa=(_0x45c153=(_0xa3c471=_0x2d584c==null?void 0x0:_0x2d584c[_0x4f3dc3(0x58e)])!=null?_0xa3c471:_0x56424f)!=null?_0x45c153:Zt,_0x333fba=this[_0x4f3dc3(0x205)][_0x4f3dc3(0x27a)](_0x4a46fa);return this[_0x4f3dc3(0x52b)]=_0x333fba,_0x333fba;}[_0x4821de(0x287)](){const _0x95436a=_0x4821de;var _0x550569,_0x18fcce;try{const _0x74ff66=(_0x18fcce=(_0x550569=this[_0x95436a(0x4f3)])!=null?_0x550569:this['_candidateSocket'])!=null?_0x18fcce:this[_0x95436a(0x60f)]();if(_0x74ff66){const _0x5892cf=_0x74ff66[_0x95436a(0x42f)];_0x74ff66[_0x95436a(0x42f)]=_0x5a9f34=>(this['_rescheduleHeartbeat'](),_0x5892cf[_0x95436a(0x2d8)](_0x74ff66,[_0x5a9f34])),_0x74ff66[_0x95436a(0x492)][_0x95436a(0x48c)](_0x35012b=>this[_0x95436a(0x501)](_0x74ff66,_0x35012b)),_0x74ff66[_0x95436a(0x35b)][_0x95436a(0x2a5)](E[_0x95436a(0x5ad)](0x1))[_0x95436a(0x48c)](_0x1acfdc=>this[_0x95436a(0x244)][_0x95436a(0x5ee)](_0x95436a(0x59b),_0x1acfdc)),_0x74ff66['open$'][_0x95436a(0x2a5)](E[_0x95436a(0x5ad)](0x1))[_0x95436a(0x48c)](()=>{const _0x40c147=_0x95436a;this[_0x40c147(0x4a1)](_0x74ff66);}),_0x74ff66[_0x95436a(0x511)][_0x95436a(0x2a5)](E[_0x95436a(0x5ad)](0x1))['subscribe'](_0x355048=>{const _0x3b5735=_0x95436a;this['_logService'][_0x3b5735(0x233)](_0x3b5735(0x4b0),_0x3b5735(0x4dc),_0x355048),this[_0x3b5735(0x319)]();});}}catch(_0x1a55b8){this[_0x95436a(0x244)]['error'](_0x1a55b8),this[_0x95436a(0x319)]();}}[_0x4821de(0x4a1)](_0x596c44){const _0x31ada5=_0x4821de;this[_0x31ada5(0x244)][_0x31ada5(0x233)](_0x31ada5(0x4b0),_0x31ada5(0x432)),_0x596c44['send']({'cmd':b[_0x31ada5(0x325)]}),this[_0x31ada5(0x479)]();}[_0x4821de(0x2bd)](){const _0x5e9746=_0x4821de;window['addEventListener']('offline',()=>this[_0x5e9746(0x252)]());}['_onOffline'](){const _0x418836=_0x4821de;this[_0x418836(0x4d1)]=!0x1,this[_0x418836(0x52b)]=null,this[_0x418836(0x4e6)][_0x418836(0x56e)](H[_0x418836(0x266)]),this[_0x418836(0x2fc)][_0x418836(0x56e)](null),this[_0x418836(0x2e3)](),this[_0x418836(0x464)]();}['_onConnectionFailed'](){const _0x29fc84=_0x4821de;var _0x402e03;this[_0x29fc84(0x252)](),this[_0x29fc84(0x46f)]<((_0x402e03=this[_0x29fc84(0x519)]['getConfig'](It))!=null?_0x402e03:ts)?(this[_0x29fc84(0x3cb)][_0x29fc84(0x4d2)]({'key':'collaboration-session-retry','type':X[_0x29fc84(0x43c)][_0x29fc84(0x33a)],'content':this['_localeService']['t'](_0x29fc84(0x5ba))}),this[_0x29fc84(0x392)]()):this[_0x29fc84(0x3cb)][_0x29fc84(0x4d2)]({'key':_0x29fc84(0x612),'type':X[_0x29fc84(0x43c)][_0x29fc84(0x56a)],'content':this[_0x29fc84(0x28b)]['t'](_0x29fc84(0x307))});}['_listenToOnlineEvent'](){const _0x5b3b03=_0x4821de,_0x4c8bd1=()=>{const _0x491bf0=_0x370a;this[_0x491bf0(0x4f3)]||this[_0x491bf0(0x3e7)]();},_0x160c44=()=>{const _0x546892=_0x370a;this['_socket']||document[_0x546892(0x427)]===_0x546892(0x3ad)||this[_0x546892(0x3e7)]();};window['addEventListener'](_0x5b3b03(0x33c),_0x4c8bd1),document['addEventListener'](_0x5b3b03(0x551),_0x160c44);}[_0x4821de(0x392)](){const _0x56d8b6=_0x4821de;var _0x3860cb;const _0x6aa39a=this[_0x56d8b6(0x46f)],_0x38584a=this[_0x56d8b6(0x519)][_0x56d8b6(0x2ce)](L),_0x292098=_0x6aa39a===0x0?0x0:((_0x3860cb=_0x38584a==null?void 0x0:_0x38584a['retryConnectingInterval'])!=null?_0x3860cb:es)*0x2**_0x6aa39a;this[_0x56d8b6(0x493)]=window[_0x56d8b6(0x3b5)](()=>{const _0x4eb6a8=_0x56d8b6;clearTimeout(this[_0x4eb6a8(0x493)]),this[_0x4eb6a8(0x493)]=null,this[_0x4eb6a8(0x287)]();},_0x292098),this[_0x56d8b6(0x46f)]+=0x1;}[_0x4821de(0x501)](_0x8904d0,_0xa2635f){const _0x53a629=_0x4821de,{cmd:_0x4d96e2}=_0xa2635f;_0x4d96e2===b['HELLO']&&!this[_0x53a629(0x4d1)]&&(_0x8904d0[_0x53a629(0x5f6)]=_0xa2635f[_0x53a629(0x434)][_0x53a629(0x5f6)],this[_0x53a629(0x2fc)][_0x53a629(0x56e)](_0x8904d0),this[_0x53a629(0x4e6)][_0x53a629(0x56e)](H[_0x53a629(0x451)]),this[_0x53a629(0x4d1)]=!0x0,this[_0x53a629(0x52b)]=null),_0x4d96e2===b[_0x53a629(0x348)]&&this[_0x53a629(0x2e3)](),this['_rescheduleHeartbeat']();}[_0x4821de(0x479)](){const _0x386acb=_0x4821de;var _0xbc82d7;this[_0x386acb(0x464)](),this['_sendHeartbeatTimer']=window[_0x386acb(0x3b5)](()=>this[_0x386acb(0x5b1)](),(_0xbc82d7=this['_configService'][_0x386acb(0x2ce)](mt))!=null?_0xbc82d7:Qt);}[_0x4821de(0x5b1)](){const _0x54c378=_0x4821de;this[_0x54c378(0x4f3)][_0x54c378(0x42f)]({'cmd':b[_0x54c378(0x348)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x3797af=_0x4821de;var _0x448171;this[_0x3797af(0x440)]=window[_0x3797af(0x3b5)](()=>this[_0x3797af(0x319)](),(_0x448171=this[_0x3797af(0x519)]['getConfig'](Ge))!=null?_0x448171:ft);}[_0x4821de(0x464)](){const _0x366c68=_0x4821de;this[_0x366c68(0x4a6)]!=null&&(clearTimeout(this[_0x366c68(0x4a6)]),this[_0x366c68(0x4a6)]=null);}[_0x4821de(0x2e3)](){const _0x3e0868=_0x4821de;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x3e0868(0x440)]),this[_0x3e0868(0x440)]=null);}},exports[_0x4821de(0x3d5)]=Cs([Z(0x0,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),Z(0x1,a[_0x4821de(0x579)](a['LocaleService'])),Z(0x2,A['IMessageService']),Z(0x3,a[_0x4821de(0x49c)]),Z(0x4,a['IConfigService']),Z(0x5,Ke)],exports['CollaborationSessionService']);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R[_0x4821de(0x25b)]((Ue+0x100)['toString'](0x10)[_0x4821de(0x603)](0x1));function Es(_0x461bfe,_0xdce999=0x0){const _0x3202d6=_0x4821de;return(R[_0x461bfe[_0xdce999+0x0]]+R[_0x461bfe[_0xdce999+0x1]]+R[_0x461bfe[_0xdce999+0x2]]+R[_0x461bfe[_0xdce999+0x3]]+'-'+R[_0x461bfe[_0xdce999+0x4]]+R[_0x461bfe[_0xdce999+0x5]]+'-'+R[_0x461bfe[_0xdce999+0x6]]+R[_0x461bfe[_0xdce999+0x7]]+'-'+R[_0x461bfe[_0xdce999+0x8]]+R[_0x461bfe[_0xdce999+0x9]]+'-'+R[_0x461bfe[_0xdce999+0xa]]+R[_0x461bfe[_0xdce999+0xb]]+R[_0x461bfe[_0xdce999+0xc]]+R[_0x461bfe[_0xdce999+0xd]]+R[_0x461bfe[_0xdce999+0xe]]+R[_0x461bfe[_0xdce999+0xf]])[_0x3202d6(0x443)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x4ed6fd=_0x4821de;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x4ed6fd(0x59e)]&&crypto['getRandomValues'][_0x4ed6fd(0x20a)](crypto),!Se))throw new Error(_0x4ed6fd(0x55e));return Se(bs);}var Rs=typeof crypto<'u'&&crypto[_0x4821de(0x3a4)]&&crypto['randomUUID']['bind'](crypto);const st={'randomUUID':Rs};function Os(_0x5dbbec,_0x41fb8e,_0x524d09){const _0x45f945=_0x4821de;if(st[_0x45f945(0x3a4)]&&!_0x41fb8e&&!_0x5dbbec)return st[_0x45f945(0x3a4)]();_0x5dbbec=_0x5dbbec||{};var _0x1b9957=_0x5dbbec[_0x45f945(0x52c)]||(_0x5dbbec[_0x45f945(0x206)]||Ts)();return _0x1b9957[0x6]=_0x1b9957[0x6]&0xf|0x40,_0x1b9957[0x8]=_0x1b9957[0x8]&0x3f|0x80,Es(_0x1b9957);}var Ds=Object['defineProperty'],ys=Object[_0x4821de(0x4f8)],Us=(_0x420f10,_0x1559c3,_0x276ea6,_0x57c4c2)=>{const _0x13bec1=_0x4821de;for(var _0x4da0bf=_0x57c4c2>0x1?void 0x0:_0x57c4c2?ys(_0x1559c3,_0x276ea6):_0x1559c3,_0x2d730f=_0x420f10[_0x13bec1(0x1fe)]-0x1,_0x3507cc;_0x2d730f>=0x0;_0x2d730f--)(_0x3507cc=_0x420f10[_0x2d730f])&&(_0x4da0bf=(_0x57c4c2?_0x3507cc(_0x1559c3,_0x276ea6,_0x4da0bf):_0x3507cc(_0x4da0bf))||_0x4da0bf);return _0x57c4c2&&_0x4da0bf&&Ds(_0x1559c3,_0x276ea6,_0x4da0bf),_0x4da0bf;},Pe=(_0x4baf1f,_0x2ba279)=>(_0x420c2c,_0x14fce6)=>_0x2ba279(_0x420c2c,_0x14fce6,_0x4baf1f);let fe=class{constructor(_0x3cf62d,_0x30d885,_0x46b973){const _0x48a09d=_0x4821de;this[_0x48a09d(0x2ac)]=_0x3cf62d,this[_0x48a09d(0x577)]=_0x30d885,this['_renderManagerService']=_0x46b973;}['transformIMECache'](_0x11ac64){const _0x25b1e7=_0x4821de;this[_0x25b1e7(0x20f)](_0x11ac64),this[_0x25b1e7(0x60c)](_0x11ac64);}[_0x4821de(0x54a)](_0x42b190){const _0x31ae05=_0x4821de,{unitID:_0x2c8484}=_0x42b190,_0x1aa5dc=this[_0x31ae05(0x396)][_0x31ae05(0x5d6)](_0x2c8484)[_0x31ae05(0x546)](N[_0x31ae05(0x22b)]),{redoCache:_0x2ce185}=_0x1aa5dc[_0x31ae05(0x340)]();if(_0x2ce185[_0x31ae05(0x1fe)]===0x0)return _0x42b190;let _0xca7ca=a['Tools'][_0x31ae05(0x613)](_0x42b190[_0x31ae05(0x2c2)][0x0]);for(let _0x112876=0x0;_0x112876<_0x2ce185[_0x31ae05(0x1fe)];_0x112876++){const _0x161ab4={'id':'doc.mutation.rich-text-editing','params':{..._0x2ce185[_0x112876]}},_0x192e31=this[_0x31ae05(0x577)][_0x31ae05(0x225)](_0xca7ca,_0x161ab4,!0x1);if(_[_0x31ae05(0x467)](_0x192e31))throw _0x192e31[_0x31ae05(0x5ee)];_0xca7ca=_0x192e31[_0x31ae05(0x232)];}return{...a[_0x31ae05(0x57b)][_0x31ae05(0x613)](_0x42b190),'mutations':[_0xca7ca]};}[_0x4821de(0x20f)](_0x5a0966){const _0x3fb507=_0x4821de,{unitID:_0x5a14c9}=_0x5a0966,_0x41fa13=this[_0x3fb507(0x396)][_0x3fb507(0x5d6)](_0x5a14c9)[_0x3fb507(0x546)](N[_0x3fb507(0x22b)]),{undoCache:_0x4bf7e3,redoCache:_0x58ec4f}=_0x41fa13[_0x3fb507(0x340)]();if(_0x4bf7e3['length']===0x0||_0x58ec4f[_0x3fb507(0x1fe)]===0x0)return;const _0x40c3df=[],_0x360ad0=[];let _0x2053d4=a[_0x3fb507(0x57b)][_0x3fb507(0x613)](_0x5a0966[_0x3fb507(0x2c2)][0x0]),_0x596876=a[_0x3fb507(0x57b)][_0x3fb507(0x613)](_0x5a0966[_0x3fb507(0x2c2)][0x0]);for(let _0x404822=_0x4bf7e3['length']-0x1;_0x404822>=0x0;_0x404822--){const _0xa3e0b7={'id':_0x3fb507(0x297),'params':{..._0x4bf7e3[_0x404822]}},_0x3c27f1={'id':_0x3fb507(0x297),'params':{..._0x58ec4f[_0x404822]}},_0x1b742c=this[_0x3fb507(0x577)][_0x3fb507(0x225)](_0x2053d4,_0xa3e0b7,!0x1),_0xd50bcf=this[_0x3fb507(0x577)][_0x3fb507(0x225)](_0x596876,_0x3c27f1,!0x1);if(_[_0x3fb507(0x467)](_0x1b742c))throw _0x1b742c[_0x3fb507(0x5ee)];if(_['isTransformMutationFailure'](_0xd50bcf))throw _0xd50bcf[_0x3fb507(0x5ee)];_0x40c3df[_0x3fb507(0x5d8)](_0x1b742c['m2Prime'][_0x3fb507(0x247)]),_0x360ad0[_0x3fb507(0x5d8)](_0xd50bcf[_0x3fb507(0x309)][_0x3fb507(0x247)]),_0x2053d4=_0x1b742c[_0x3fb507(0x232)],_0x596876=_0xd50bcf[_0x3fb507(0x232)];}_0x41fa13[_0x3fb507(0x4c2)]({'undoCache':_0x40c3df,'redoCache':_0x360ad0});}['_transformPreviousActiveRange'](_0x16768d){const _0x2c7add=_0x4821de,{unitID:_0x31717a}=_0x16768d,_0x2b535e=this[_0x2c7add(0x396)][_0x2c7add(0x5d6)](_0x31717a)['with'](N[_0x2c7add(0x22b)]),_0x59ff6c=_0x2b535e['getActiveRange']();if(_0x59ff6c==null)return;const _0x5dcfd0=[{'id':_0x2c7add(0x297),'params':{'unitId':_0x16768d['unitID'],'actions':null,'textRanges':[_0x59ff6c]}}],_0x18ffbd=this['_transformService'][_0x2c7add(0x209)](_0x16768d,_0x5dcfd0);if(!_[_0x2c7add(0x2f1)](_0x18ffbd))throw _0x18ffbd[_0x2c7add(0x5ee)];const _0x5cc34a=_0x18ffbd[_0x2c7add(0x309)][0x0][_0x2c7add(0x247)]['textRanges'];Array[_0x2c7add(0x4d3)](_0x5cc34a)&&_0x5cc34a[_0x2c7add(0x1fe)]&&_0x2b535e[_0x2c7add(0x51d)](_0x5cc34a[0x0]);}};fe=Us([Pe(0x0,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),Pe(0x1,_[_0x4821de(0x2c7)]),Pe(0x2,O[_0x4821de(0x24a)])],fe);var Ps=Object[_0x4821de(0x51a)],ws=Object[_0x4821de(0x4f8)],Ns=(_0x3d8df2,_0x58ce00,_0x318158,_0x42f0d4)=>{const _0x5d48fc=_0x4821de;for(var _0x26870c=_0x42f0d4>0x1?void 0x0:_0x42f0d4?ws(_0x58ce00,_0x318158):_0x58ce00,_0x31bf46=_0x3d8df2[_0x5d48fc(0x1fe)]-0x1,_0x2aee5d;_0x31bf46>=0x0;_0x31bf46--)(_0x2aee5d=_0x3d8df2[_0x31bf46])&&(_0x26870c=(_0x42f0d4?_0x2aee5d(_0x58ce00,_0x318158,_0x26870c):_0x2aee5d(_0x26870c))||_0x26870c);return _0x42f0d4&&_0x26870c&&Ps(_0x58ce00,_0x318158,_0x26870c),_0x26870c;},ce=(_0x150076,_0x4c0bbb)=>(_0x5a7393,_0x498b85)=>_0x4c0bbb(_0x5a7393,_0x498b85,_0x150076);exports[_0x4821de(0x4c6)]=class extends a[_0x4821de(0x357)]{constructor(_0x39da56,_0x7a444f,_0x4ceb98,_0x33adb0,_0x134e70){const _0x410b00=_0x4821de;super(),u(this,_0x410b00(0x4eb),new Map()),u(this,_0x410b00(0x601),new Map()),u(this,_0x410b00(0x1fc),!0x1),(this[_0x410b00(0x519)]=_0x39da56,this[_0x410b00(0x599)]=_0x7a444f,this['_beforeCloseService']=_0x4ceb98,this[_0x410b00(0x28b)]=_0x33adb0,this['_revisionService']=_0x134e70,this[_0x410b00(0x468)]());}[_0x4821de(0x39a)](){this['_disabled']=!0x0;}[_0x4821de(0x3b1)](){const _0x1c746a=_0x4821de;this[_0x1c746a(0x1fc)]=!0x1;}[_0x4821de(0x442)](){const _0x5c28ac=_0x4821de;this[_0x5c28ac(0x2b4)]()['then'](()=>super[_0x5c28ac(0x442)]());}async[_0x4821de(0x572)](_0x51fd55){const _0x2d2ac7=_0x4821de;return this[_0x2d2ac7(0x1fc)]?null:this[_0x2d2ac7(0x599)][_0x2d2ac7(0x33f)](it(_0x51fd55));}async['saveOfflineData'](_0x23c910,_0x4bf369){const _0x1169cb=_0x4821de;return!!this[_0x1169cb(0x599)][_0x1169cb(0x22a)](_0x23c910,_0x4bf369);}[_0x4821de(0x2b5)](_0xcad2c9,_0x73a949,_0x5d5832,_0x21139b){const _0x25ae0a=_0x4821de,_0x57818c=this['_revisionService'][_0x25ae0a(0x1f2)](_0xcad2c9);this[_0x25ae0a(0x4eb)][_0x25ae0a(0x4d0)](_0xcad2c9,{'unitID':_0xcad2c9,'type':_0x73a949,'awaitingChangeset':_0x5d5832,'mutations':_0x21139b,'rev':_0x57818c}),this['_saveTaskMap'][_0x25ae0a(0x1f6)](_0xcad2c9)||this['_scheduleSaving'](_0xcad2c9);}[_0x4821de(0x3fc)](_0x579209){const _0x129fe1=_0x4821de,_0x14c517=this[_0x129fe1(0x471)]();_0x14c517===0x0?this[_0x129fe1(0x2ea)](_0x579209):this[_0x129fe1(0x601)][_0x129fe1(0x4d0)](_0x579209,setTimeout(()=>this[_0x129fe1(0x2ea)](_0x579209),_0x14c517));}[_0x4821de(0x471)](){const _0x20d62f=_0x4821de;var _0x4c4bb4;return(_0x4c4bb4=this[_0x20d62f(0x519)][_0x20d62f(0x2ce)](pt))!=null?_0x4c4bb4:ss;}['_saveCache'](_0x27fe37){const _0x59a636=_0x4821de,_0x323680=this[_0x59a636(0x601)][_0x59a636(0x56d)](_0x27fe37);return _0x323680!==void 0x0&&window[_0x59a636(0x375)](_0x323680),this[_0x59a636(0x599)][_0x59a636(0x22a)](it(_0x27fe37),this['_cachedData'][_0x59a636(0x56d)](_0x27fe37))[_0x59a636(0x379)](()=>this[_0x59a636(0x601)][_0x59a636(0x28c)](_0x27fe37));}async['exhaustSavingTask'](){const _0x4b1e9b=_0x4821de,_0x490293=[];this['_saveTaskMap'][_0x4b1e9b(0x3c2)]((_0x18ca20,_0x56c494)=>{const _0xc7c80e=_0x4b1e9b;window['clearTimeout'](_0x18ca20),_0x490293['push'](this[_0xc7c80e(0x2ea)](_0x56c494)[_0xc7c80e(0x379)](()=>{const _0x4ba3a3=_0xc7c80e;this[_0x4ba3a3(0x601)][_0x4ba3a3(0x28c)](_0x56c494);}));}),await Promise[_0x4b1e9b(0x548)](_0x490293);}[_0x4821de(0x468)](){const _0xbf9d4f=_0x4821de;this[_0xbf9d4f(0x4b1)](this[_0xbf9d4f(0x5cf)]['registerBeforeClose'](()=>{const _0x5acdd7=_0xbf9d4f;if(this[_0x5acdd7(0x601)][_0x5acdd7(0x5c1)])return this[_0x5acdd7(0x28b)]['t'](_0x5acdd7(0x5f9));}));}},exports[_0x4821de(0x4c6)]=Ns([ce(0x0,a[_0x4821de(0x482)]),ce(0x1,a[_0x4821de(0x29b)]),ce(0x2,A[_0x4821de(0x292)]),ce(0x3,a[_0x4821de(0x579)](a[_0x4821de(0x53d)])),ce(0x4,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)]))],exports['LocalCacheService']);function it(_0x7cbd2d){const _0x4c803d=_0x4821de;return _0x4c803d(0x491)+_0x7cbd2d;}var Ms=Object[_0x4821de(0x51a)],As=Object[_0x4821de(0x4f8)],Ls=(_0x58636f,_0x38af37,_0xa5d551,_0x40d3f7)=>{const _0x4a86a4=_0x4821de;for(var _0x47fa46=_0x40d3f7>0x1?void 0x0:_0x40d3f7?As(_0x38af37,_0xa5d551):_0x38af37,_0x35fccd=_0x58636f[_0x4a86a4(0x1fe)]-0x1,_0x108cc3;_0x35fccd>=0x0;_0x35fccd--)(_0x108cc3=_0x58636f[_0x35fccd])&&(_0x47fa46=(_0x40d3f7?_0x108cc3(_0x38af37,_0xa5d551,_0x47fa46):_0x108cc3(_0x47fa46))||_0x47fa46);return _0x40d3f7&&_0x47fa46&&Ms(_0x38af37,_0xa5d551,_0x47fa46),_0x47fa46;},we=(_0x1cc8bb,_0x5345db)=>(_0x42eaf3,_0x5b8682)=>_0x5345db(_0x42eaf3,_0x5b8682,_0x1cc8bb);function js(_0x31ce7d){const _0x2b9b68=_0x4821de,{unitID:_0x380740,mutations:_0xe40460}=_0x31ce7d;return{'unitId':_0x380740,'subUnitId':_0xe40460[0x0][_0x2b9b68(0x247)][_0x2b9b68(0x32d)]};}let Ie=class{constructor(_0x10d9d0,_0x525433,_0x232e6c){const _0x1e26e7=_0x4821de;this[_0x1e26e7(0x2ac)]=_0x10d9d0,this[_0x1e26e7(0x577)]=_0x525433,this[_0x1e26e7(0x2a9)]=_0x232e6c;}[_0x4821de(0x1f9)](_0x19d44e){const _0x1be860=_0x4821de;var _0xf8aacf,_0x34d004,_0x40e814,_0x314c73;const _0x12fba6=this[_0x1be860(0x2ac)][_0x1be860(0x56d)](C[_0x1be860(0x2a7)]),{unitId:_0x30d971,subUnitId:_0x90bfe6}=js(_0x19d44e),_0x138a7c=_0x12fba6[_0x1be860(0x312)](_0x30d971)['getCurrentSelections'](),_0x6da52f=(_0x34d004=(_0xf8aacf=this[_0x1be860(0x2a9)][_0x1be860(0x5e9)](_0x30d971))==null?void 0x0:_0xf8aacf[_0x1be860(0x220)]())==null?void 0x0:_0x34d004['getSheetId']();if(_0x138a7c['length']===0x0||!_0x30d971||!_0x90bfe6)return;const _0x399017=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x30d971,'subUnitId':_0x6da52f,'selections':a[_0x1be860(0x57b)][_0x1be860(0x613)](_0x138a7c)}}],_0x19e7ca=this['_transformService']['transformMutationsWithChangeset'](_0x19d44e,_0x399017);if(!_[_0x1be860(0x2f1)](_0x19e7ca))throw _0x19e7ca[_0x1be860(0x5ee)];const _0x3c4afb=(_0x314c73=(_0x40e814=_0x19e7ca[_0x1be860(0x309)][0x0])==null?void 0x0:_0x40e814[_0x1be860(0x247)])==null?void 0x0:_0x314c73['selections'];Array[_0x1be860(0x4d3)](_0x3c4afb)&&_0x3c4afb[_0x1be860(0x1fe)]&&this[_0x1be860(0x2ac)][_0x1be860(0x56d)](a['ICommandService'])[_0x1be860(0x461)](C[_0x1be860(0x556)]['id'],{'unitId':_0x30d971,'subUnitId':_0x6da52f,'selections':_0x3c4afb});}};Ie=Ls([we(0x0,a['Inject'](a['Injector'])),we(0x1,_[_0x4821de(0x2c7)]),we(0x2,a[_0x4821de(0x258)])],Ie);const Re=a[_0x4821de(0x23b)](_0x4821de(0x2c6));var Dt=(_0x565ff2=>(_0x565ff2[_0x565ff2[_0x4821de(0x5dd)]=0x0]=_0x4821de(0x5dd),_0x565ff2[_0x565ff2[_0x4821de(0x3fb)]=0x1]='OTHER_CLIENTS_EDITING',_0x565ff2))(Dt||{});const nt=0x7530,rt=_0x4821de(0x474);class $s extends a['Disposable']{constructor(){const _0x1e5dda=_0x4821de;super(),u(this,_0x1e5dda(0x521),a[_0x1e5dda(0x57b)][_0x1e5dda(0x24f)]()),u(this,_0x1e5dda(0x411),new Set()),u(this,_0x1e5dda(0x518),new Map()),u(this,_0x1e5dda(0x422),null),u(this,'_clearOtherTimers',new Map()),u(this,_0x1e5dda(0x397),new Map()),this[_0x1e5dda(0x402)]();}[_0x4821de(0x442)](){const _0x16e90d=_0x4821de;super[_0x16e90d(0x442)](),this[_0x16e90d(0x5db)][_0x16e90d(0x3c2)]((_0x7b7eb3,_0x569d32)=>this[_0x16e90d(0x2d2)](_0x569d32)),this[_0x16e90d(0x422)]&&window[_0x16e90d(0x421)](this[_0x16e90d(0x422)]);}[_0x4821de(0x2cc)](_0x5dc372){const _0x298235=_0x4821de;return this[_0x298235(0x3a5)](_0x5dc372)[_0x298235(0x2a5)](v[_0x298235(0x4f2)]());}[_0x4821de(0x58f)](_0x59959f){const _0x5b419a=_0x4821de;this[_0x5b419a(0x411)]['size']===0x0&&this[_0x5b419a(0x509)](),this[_0x5b419a(0x411)][_0x5b419a(0x201)](_0x59959f),this[_0x5b419a(0x2c3)]({'type':0x0,'memberID':this[_0x5b419a(0x521)],'unitIDs':[_0x59959f],'isForwarded':!0x1});}[_0x4821de(0x602)](_0x1e07c8){const _0x33c3d2=_0x4821de;this[_0x33c3d2(0x411)][_0x33c3d2(0x28c)](_0x1e07c8),this[_0x33c3d2(0x411)][_0x33c3d2(0x5c1)]===0x0&&this[_0x33c3d2(0x422)]&&window[_0x33c3d2(0x421)](this[_0x33c3d2(0x422)]);}[_0x4821de(0x402)](){const _0x9faf55=_0x4821de;this['disposeWithMe'](a['toDisposable'](v[_0x9faf55(0x3c7)](window,_0x9faf55(0x386))['subscribe'](_0x567d3e=>{const _0x1ab46f=_0x9faf55;if(_0x567d3e[_0x1ab46f(0x236)]!==rt||!_0x567d3e[_0x1ab46f(0x32b)])return;const _0x439e6c=JSON[_0x1ab46f(0x5f4)](_0x567d3e[_0x1ab46f(0x32b)]);this['_handleEvent'](_0x439e6c);}))),window[_0x9faf55(0x35a)]('unload',()=>this[_0x9faf55(0x2c3)]({'type':0x1,'memberID':this[_0x9faf55(0x521)],'unitIDs':Array['from'](this[_0x9faf55(0x411)])}));}[_0x4821de(0x310)](_0x16366d){const _0x4357a6=_0x4821de;switch(_0x16366d[_0x4357a6(0x3b6)]){case 0x0:this['_handleJoinEvent'](_0x16366d);break;case 0x1:this['_handleLeaveEvent'](_0x16366d);break;case 0x2:this['_handleHeartbeatEvent'](_0x16366d);break;}}['_handleJoinEvent'](_0x4141ef){const _0x4b1e70=_0x4821de,{unitIDs:_0x489b86,memberID:_0x240f8e,isForwarded:_0x500c5c}=_0x4141ef;_0x489b86[_0x4b1e70(0x3c2)](_0x2e4625=>{const _0x23db1c=_0x4b1e70;if(!_0x500c5c&&this[_0x23db1c(0x518)]['has'](_0x2e4625)&&this[_0x23db1c(0x3a5)](_0x2e4625)[_0x23db1c(0x56e)](0x1),!this[_0x23db1c(0x518)][_0x23db1c(0x1f6)](_0x2e4625)||!this[_0x23db1c(0x518)]['get'](_0x2e4625)[_0x23db1c(0x1f6)](_0x240f8e)){const _0x54ec68=this[_0x23db1c(0x518)][_0x23db1c(0x56d)](_0x2e4625)||new Set();_0x54ec68['add'](_0x240f8e),this[_0x23db1c(0x518)][_0x23db1c(0x4d0)](_0x2e4625,_0x54ec68),this[_0x23db1c(0x381)](_0x240f8e);}}),_0x500c5c||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4b1e70(0x411)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xecfe0c){const _0x5348fc=_0x4821de;this[_0x5348fc(0x2d2)](_0xecfe0c);const _0x27d2f4=window[_0x5348fc(0x3b5)](()=>{const _0x3dc43b=_0x5348fc;this[_0x3dc43b(0x518)][_0x3dc43b(0x3c2)](_0x55b71f=>{const _0x2fa8ae=_0x3dc43b;_0x55b71f[_0x2fa8ae(0x28c)](_0xecfe0c);});},nt*0x2);this['_clearOtherTimers'][_0x5348fc(0x4d0)](_0xecfe0c,_0x27d2f4);}[_0x4821de(0x2d2)](_0x426337){const _0x449ab4=_0x4821de;if(this[_0x449ab4(0x5db)]['has'](_0x426337)){const _0x33c2eb=this[_0x449ab4(0x5db)][_0x449ab4(0x56d)](_0x426337);_0x33c2eb&&window[_0x449ab4(0x375)](_0x33c2eb),this[_0x449ab4(0x5db)][_0x449ab4(0x4d0)](_0x426337,null);}}[_0x4821de(0x37b)](_0x48e5fe){const _0x250e8d=_0x4821de,{memberID:_0x29205f,unitIDs:_0x5bcebc}=_0x48e5fe;_0x5bcebc[_0x250e8d(0x3c2)](_0x138a44=>{const _0x469800=_0x250e8d;var _0x3011b7;const _0x173d4f=this[_0x469800(0x518)][_0x469800(0x56d)](_0x138a44);_0x173d4f&&(_0x173d4f[_0x469800(0x28c)](_0x29205f),(_0x3011b7=this[_0x469800(0x3a5)](_0x138a44))==null||_0x3011b7[_0x469800(0x56e)](_0x173d4f['size']===0x0?0x0:0x1));}),this[_0x250e8d(0x2d2)](_0x29205f);}[_0x4821de(0x31a)](_0x2faeaf){const _0x595674=_0x4821de;this[_0x595674(0x381)](_0x2faeaf['memberID']);}[_0x4821de(0x2c3)](_0x23c90d){const _0x44fbd4=_0x4821de;localStorage[_0x44fbd4(0x22a)](rt,JSON[_0x44fbd4(0x44f)](_0x23c90d));}['_scheduleHeartbeat'](){const _0x5dca17=_0x4821de;this[_0x5dca17(0x422)]=window[_0x5dca17(0x3e8)](()=>{const _0x3f1296=_0x5dca17;this[_0x3f1296(0x2c3)]({'type':0x2,'memberID':this[_0x3f1296(0x521)]});},nt);}[_0x4821de(0x3a5)](_0x6fe915){const _0x1a7cb6=_0x4821de;return this[_0x1a7cb6(0x397)]['has'](_0x6fe915)||this[_0x1a7cb6(0x397)]['set'](_0x6fe915,new v['BehaviorSubject'](0x0)),this[_0x1a7cb6(0x397)][_0x1a7cb6(0x56d)](_0x6fe915);}}function yt(_0x2c5a8d){const _0x9f7a63=_0x4821de;let _0x5e6c0a='';for(const _0x10ea82 of _0x2c5a8d){const {startOffset:_0xabc71d,endOffset:_0x462845,isActive:_0x1a1a90}=_0x10ea82;_0x5e6c0a[_0x9f7a63(0x1fe)]&&(_0x5e6c0a+=','),_0x5e6c0a+=_0xabc71d+':'+_0x462845+':'+(_0x1a1a90?'1':'0');}return _0x5e6c0a;}function Hs(_0x2d5cf5){const _0x410b64=_0x4821de,_0x4a06e4=_0x2d5cf5[_0x410b64(0x4b8)](','),_0x564bd3=[];for(const _0x5a27b2 of _0x4a06e4){const [_0x3dbcb6,_0x304445,_0x5e22bc]=_0x5a27b2['split'](':');_0x564bd3[_0x410b64(0x25b)]({'startOffset':Number(_0x3dbcb6),'endOffset':Number(_0x304445),'collapsed':_0x3dbcb6===_0x304445,'isActive':_0x5e22bc==='1'});}return _0x564bd3[_0x410b64(0x347)](_0x31779a=>_0x31779a[_0x410b64(0x416)])||(_0x564bd3[0x0]['isActive']=!0x0),_0x564bd3;}class qe extends a[_0x4821de(0x56f)]{constructor(){const _0x5d6053=_0x4821de;super(...arguments),u(this,'_collabCursorState$',new v[(_0x5d6053(0x611))](null)),u(this,_0x5d6053(0x31f),this[_0x5d6053(0x320)][_0x5d6053(0x43a)]());}[_0x4821de(0x37a)](_0xcbfcf0){const _0x45b8e2=_0x4821de,{unitID:_0x6e6572,memberID:_0x5e67b4,textRanges:_0xb8d584}=_0xcbfcf0,_0x1b059f=yt(_0xb8d584),_0x19d8dd={'unitID':_0x6e6572,'memberID':_0x5e67b4,'selection':_0x1b059f};this[_0x45b8e2(0x320)][_0x45b8e2(0x56e)](_0x19d8dd);}}var xs=Object[_0x4821de(0x51a)],ks=Object[_0x4821de(0x4f8)],Bs=(_0x35f1d9,_0x2f7e0a,_0x216b0b,_0x5de09e)=>{for(var _0x2a3b56=_0x5de09e>0x1?void 0x0:_0x5de09e?ks(_0x2f7e0a,_0x216b0b):_0x2f7e0a,_0x4ca6b9=_0x35f1d9['length']-0x1,_0x44b7b8;_0x4ca6b9>=0x0;_0x4ca6b9--)(_0x44b7b8=_0x35f1d9[_0x4ca6b9])&&(_0x2a3b56=(_0x5de09e?_0x44b7b8(_0x2f7e0a,_0x216b0b,_0x2a3b56):_0x44b7b8(_0x2a3b56))||_0x2a3b56);return _0x5de09e&&_0x2a3b56&&xs(_0x2f7e0a,_0x216b0b,_0x2a3b56),_0x2a3b56;},ot=(_0x4ecd88,_0x46936c)=>(_0x297a5c,_0x2f99f6)=>_0x46936c(_0x297a5c,_0x2f99f6,_0x4ecd88);let pe=class{constructor(_0x14e024,_0x90c379){const _0x5ccb3b=_0x4821de;this[_0x5ccb3b(0x2ac)]=_0x14e024,this[_0x5ccb3b(0x577)]=_0x90c379;}[_0x4821de(0x1f9)](_0xcdf6d2){const _0x8b9513=_0x4821de;var _0x562b34;const _0x2a94e5=this['_injector']['get'](se[_0x8b9513(0x3f2)]),_0x1f2217=(_0x562b34=_0x2a94e5['getDocRanges']())!=null?_0x562b34:[];if(_0x1f2217['length']===0x0)return;const _0x147150=[{'id':_0x8b9513(0x297),'params':{'unitId':_0xcdf6d2[_0x8b9513(0x4ef)],'actions':null,'textRanges':_0x1f2217}}],_0xecb252=this[_0x8b9513(0x577)][_0x8b9513(0x209)](_0xcdf6d2,_0x147150);if(!_[_0x8b9513(0x2f1)](_0xecb252))throw _0xecb252['error'];const _0x406d72=_0xecb252['m2Prime'][0x0][_0x8b9513(0x247)][_0x8b9513(0x53b)];Array[_0x8b9513(0x4d3)](_0x406d72)&&_0x406d72[_0x8b9513(0x1fe)]&&_0x2a94e5[_0x8b9513(0x470)](_0x406d72,!0x1);}};pe=Bs([ot(0x0,a[_0x4821de(0x579)](a['Injector'])),ot(0x1,_['ITransformService'])],pe);const Vs=new Set([C[_0x4821de(0x226)]['id']]);function at(_0x40a343,_0x20c432,_0x4a4a8c,_0x28452a,_0xe11caf){const _0x5c0158=_0x4821de;var _0x22163e,_0x59bac1,_0x454fde,_0x127fbb;const _0x50a86f=[];for(const _0x23c636 of _0x40a343)if(Vs[_0x5c0158(0x1f6)](_0x23c636['id'])){if(_0x50a86f[_0x5c0158(0x1fe)]>0x0)break;_0x50a86f[_0x5c0158(0x25b)](_0x23c636);break;}else _0x50a86f[_0x5c0158(0x25b)](_0x23c636);const _0x1b92be=(_0x59bac1=(_0x22163e=_0xe11caf[_0x5c0158(0x42c)]())==null?void 0x0:_0x22163e[_0x5c0158(0x5e2)])!=null?_0x59bac1:_0x5c0158(0x2e8),_0x52f523=(_0x127fbb=(_0x454fde=_0xe11caf[_0x5c0158(0x42c)]())==null?void 0x0:_0x454fde[_0x5c0158(0x5f6)])!=null?_0x127fbb:_0x5c0158(0x2e8);return{'changeset':{'unitID':_0x20c432,'type':_['mapDocumentTypeToUniverType'](_0x4a4a8c[_0x5c0158(0x2b8)](_0x20c432)),'baseRev':_0x28452a['getCurrentRevOfUnit'](_0x20c432),'revision':0x0,'userID':_0x1b92be,'memberID':_0x52f523,'mutations':_0x50a86f},'pendingMutations':_0x40a343[_0x5c0158(0x603)](_0x50a86f[_0x5c0158(0x1fe)])};}function Ws(_0x25dffe,_0xe3df43,_0x40bc02,_0x3929eb,_0x4cfb9b){const _0x445743=_0x4821de;var _0x1b4557,_0x3ee2e0,_0x577b4d,_0x958fa0;const _0x3fc996=[_0x25dffe[_0x445743(0x4d6)]((_0x45fa44,_0x3cd000)=>{const _0x390acd=_0x445743;var _0x3e8cb4;const {id:_0xdc1a04}=_0x45fa44,{id:_0x5503f7,type:_0x1ece69}=_0x3cd000,_0x5ae5ae=(_0x3e8cb4=_0x45fa44[_0x390acd(0x247)])!=null?_0x3e8cb4:{'actions':null},_0x2408ed=_0x3cd000[_0x390acd(0x247)];if(_0xdc1a04&&_0xdc1a04!==_0x5503f7)throw new Error(_0x390acd(0x608)+_0xdc1a04+'\x20-\x20'+_0x5503f7+'.');return{..._0x45fa44,'id':_0x5503f7,'type':_0x1ece69,'params':{'unitId':_0x2408ed[_0x390acd(0x466)],'textRanges':_0x2408ed[_0x390acd(0x53b)],'actions':a[_0x390acd(0x595)]['compose'](_0x5ae5ae['actions'],_0x2408ed[_0x390acd(0x268)])}};},{})],_0x4a84e8=(_0x3ee2e0=(_0x1b4557=_0x4cfb9b[_0x445743(0x42c)]())==null?void 0x0:_0x1b4557['userID'])!=null?_0x3ee2e0:_0x445743(0x2e8),_0x55d6b4=(_0x958fa0=(_0x577b4d=_0x4cfb9b['getCurrentUser']())==null?void 0x0:_0x577b4d[_0x445743(0x5f6)])!=null?_0x958fa0:'unknown';return{'changeset':{'unitID':_0xe3df43,'type':_[_0x445743(0x51f)](_0x40bc02['getUnitType'](_0xe3df43)),'baseRev':_0x3929eb['getCurrentRevOfUnit'](_0xe3df43),'revision':0x0,'userID':_0x4a84e8,'memberID':_0x55d6b4,'mutations':_0x3fc996},'pendingMutations':[]};}const Fs={'id':C[_0x4821de(0x565)]['id'],'type':a[_0x4821de(0x36c)][_0x4821de(0x34b)],'params':{}};var Gs=Object['defineProperty'],Ys=Object['getOwnPropertyDescriptor'],z=(_0x3951f1,_0x1892fe,_0x57e581,_0x2efc63)=>{const _0x3a009a=_0x4821de;for(var _0x12f83f=_0x2efc63>0x1?void 0x0:_0x2efc63?Ys(_0x1892fe,_0x57e581):_0x1892fe,_0x2ade8d=_0x3951f1[_0x3a009a(0x1fe)]-0x1,_0x278f0c;_0x2ade8d>=0x0;_0x2ade8d--)(_0x278f0c=_0x3951f1[_0x2ade8d])&&(_0x12f83f=(_0x2efc63?_0x278f0c(_0x1892fe,_0x57e581,_0x12f83f):_0x278f0c(_0x12f83f))||_0x12f83f);return _0x2efc63&&_0x12f83f&&Gs(_0x1892fe,_0x57e581,_0x12f83f),_0x12f83f;},m=(_0x32ad34,_0x166fe6)=>(_0x5591b9,_0x617d96)=>_0x166fe6(_0x5591b9,_0x617d96,_0x32ad34),U=(_0x1970ab=>(_0x1970ab[_0x4821de(0x2f9)]=_0x4821de(0x5ea),_0x1970ab[_0x4821de(0x318)]=_0x4821de(0x229),_0x1970ab[_0x4821de(0x450)]='pending',_0x1970ab[_0x4821de(0x3bf)]='awaiting',_0x1970ab[_0x4821de(0x316)]=_0x4821de(0x45c),_0x1970ab['FETCH_MISS']=_0x4821de(0x5d7),_0x1970ab[_0x4821de(0x2c0)]=_0x4821de(0x360),_0x1970ab[_0x4821de(0x266)]=_0x4821de(0x478),_0x1970ab))(U||{});class J{constructor(_0x3662a7,_0x211433,_0x13a567,_0x51398e,_0x4114bc,_0x1cbef4,_0x52f969,_0x2e8b5a,_0x4ddbb5){const _0x49e2b3=_0x4821de;u(this,_0x49e2b3(0x321),null),u(this,_0x49e2b3(0x590),[]),(this['unitID']=_0x3662a7,this['type']=_0x211433,this[_0x49e2b3(0x604)]=_0x4114bc,this[_0x49e2b3(0x2bc)]=_0x1cbef4,this['_undoRedoService']=_0x52f969,this[_0x49e2b3(0x55a)]=_0x2e8b5a,this[_0x49e2b3(0x32f)]=_0x4ddbb5,this[_0x49e2b3(0x321)]=_0x13a567,this[_0x49e2b3(0x590)]=_0x51398e);}[_0x4821de(0x34c)](_0x5209d0){const _0x5140b8=_0x4821de,_0x2f8e7f=this[_0x5140b8(0x55a)][_0x5140b8(0x1f2)](this[_0x5140b8(0x4ef)]);return _0x5209d0['revision']>_0x2f8e7f+0x1?(this['_handler'][_0x5140b8(0x3eb)]({'from':_0x2f8e7f,'to':_0x5209d0[_0x5140b8(0x3a9)]-0x1}),!0x0):!0x1;}[_0x4821de(0x311)](_0x398150){const _0x1d379c=_0x4821de;this[_0x1d379c(0x264)]['transformUndoRedo'](this[_0x1d379c(0x4ef)],_0x398150);}[_0x4821de(0x373)](_0x494a52){const _0x2a905c=_0x4821de;var _0x5e2250,_0x208e2b;(_0x208e2b=(_0x5e2250=this[_0x2a905c(0x604)])['onTransformSelections'])==null||_0x208e2b[_0x2a905c(0x4a7)](_0x5e2250,_0x494a52);}[_0x4821de(0x2fe)](_0x26277a){const _0x5b2fc0=_0x4821de;var _0x3fa0ea,_0x124ed6;return(_0x124ed6=(_0x3fa0ea=this['_handler'])[_0x5b2fc0(0x3bc)])==null?void 0x0:_0x124ed6[_0x5b2fc0(0x4a7)](_0x3fa0ea,_0x26277a);}[_0x4821de(0x5b6)](_0x5034f1){const _0x3c7ef3=_0x4821de;var _0x3c09db,_0x96c8ad,_0x3a8fb2;return(_0x3a8fb2=(_0x96c8ad=(_0x3c09db=this[_0x3c7ef3(0x604)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x96c8ad[_0x3c7ef3(0x4a7)](_0x3c09db,_0x5034f1))!=null?_0x3a8fb2:_0x5034f1;}[_0x4821de(0x275)](_0x18d61d){const _0x4bf77f=_0x4821de;var _0x6a25f7,_0x54e7ce;if(this[_0x4bf77f(0x3b6)]===$[_0x4bf77f(0x5f0)]){const {unitID:_0x12c4ac,mutations:_0x40e22d,memberID:_0x529bec}=_0x18d61d,_0x3c388b=_0x40e22d[0x0][_0x4bf77f(0x247)][_0x4bf77f(0x53b)];Array[_0x4bf77f(0x4d3)](_0x3c388b)&&_0x3c388b['length']>0x0&&((_0x54e7ce=(_0x6a25f7=this[_0x4bf77f(0x604)])['onSyncEditingCollabCursor'])==null||_0x54e7ce[_0x4bf77f(0x4a7)](_0x6a25f7,{'unitID':_0x12c4ac,'memberID':_0x529bec,'textRanges':_0x3c388b}));}}[_0x4821de(0x536)](){const _0x3dd150=_0x4821de;this['_localCacheService'][_0x3dd150(0x2b5)](this[_0x3dd150(0x4ef)],this[_0x3dd150(0x3b6)],this[_0x3dd150(0x321)],this[_0x3dd150(0x590)]);}[_0x4821de(0x583)](){const _0x3f31e7=_0x4821de;return this['_revisionService']['getCurrentRevOfUnit'](this[_0x3f31e7(0x4ef)]);}[_0x4821de(0x44d)](){const _0x1e55cd=_0x4821de;this[_0x1e55cd(0x55a)][_0x1e55cd(0x568)](this[_0x1e55cd(0x4ef)]);}[_0x4821de(0x24b)](_0x5172a4){const _0x747daa=_0x4821de;var _0x354647;const _0x1129c2=this[_0x747daa(0x5b6)](_0x5172a4),_0x58026a=a[_0x747daa(0x3d2)](_0x1129c2[_0x747daa(0x2c2)],this[_0x747daa(0x2bc)],{'fromCollab':!0x0});if(!_0x58026a['result'])throw _0x58026a['error']instanceof Error?_0x58026a['error']:new Error((_0x354647=_0x58026a[_0x747daa(0x5ee)])!=null?_0x354647:_0x747daa(0x43b));this['_transformIMECache'](_0x1129c2),this[_0x747daa(0x311)](_0x5172a4),this['_transformSelections'](_0x1129c2),this[_0x747daa(0x275)](_0x1129c2),this['_incrementRevisionNumber']();}}let ie=class extends J{constructor(_0x129eb8,_0x52b85f,_0x111b62,_0x45a94,_0x23acb3,_0x4d74fa,_0x30df6c,_0x5700bb,_0x43c556,_0x43af14){const _0x19b540=_0x4821de;super(_0x129eb8,_0x52b85f,null,[],_0x111b62,_0x5700bb,_0x30df6c,_0x45a94,_0x23acb3),u(this,'status',_0x19b540(0x229)),(this[_0x19b540(0x2ac)]=_0x4d74fa,this[_0x19b540(0x244)]=_0x43c556,this[_0x19b540(0x577)]=_0x43af14);}[_0x4821de(0x380)](_0x1835d5){const _0x287631=_0x4821de,_0x1a391a=this['_injector'][_0x287631(0x5d3)](k,this[_0x287631(0x4ef)],this[_0x287631(0x3b6)],[_0x1835d5],this[_0x287631(0x604)]);return _0x1a391a['_schedule'](),_0x1a391a['_updateLocalCache'](),_0x1a391a;}['onRemoteChangeset'](_0x2d5d99){const _0x420257=_0x4821de;if(this[_0x420257(0x34c)](_0x2d5d99))return this[_0x420257(0x2ac)]['createInstance'](x,this['unitID'],this[_0x420257(0x3b6)],null,[],null,[_0x2d5d99],this[_0x420257(0x604)]);try{const _0x48415b=this[_0x420257(0x577)][_0x420257(0x209)](_0x2d5d99,[Fs]);if(_['isTransformMutationsWithChangesetSuccess'](_0x48415b)){const {c1Prime:_0x28b070}=_0x48415b;return this['_executeRemoteChangeset'](_0x28b070),this;}throw _0x48415b[_0x420257(0x5ee)];}catch(_0x26ab5c){return this['_logService']['error'](_0x26ab5c),this[_0x420257(0x51e)](!0x1);}}[_0x4821de(0x51e)](_0x15648d){const _0xb244a1=_0x4821de;return this['_injector']['createInstance'](F,this[_0xb244a1(0x4ef)],this[_0xb244a1(0x3b6)],null,[],this['_handler'],_0x15648d);}[_0x4821de(0x44e)](){const _0x52b286=_0x4821de;throw new Error(_0x52b286(0x59c));}[_0x4821de(0x38d)](){const _0x5d15d6=_0x4821de;throw new Error(_0x5d15d6(0x2ad));}[_0x4821de(0x576)](){return this['_injector']['createInstance'](G,this['unitID'],this['type'],null,[],this['_handler']);}[_0x4821de(0x4d5)](){return this;}['resend'](){const _0x338978=_0x4821de;throw new Error(_0x338978(0x324));}[_0x4821de(0x60a)](){const _0x515b21=_0x4821de,_0x154b5b=this[_0x515b21(0x55a)][_0x515b21(0x1f2)](this[_0x515b21(0x4ef)]);return this[_0x515b21(0x604)][_0x515b21(0x3eb)]({'from':_0x154b5b,'to':0x0}),this[_0x515b21(0x2ac)][_0x515b21(0x5d3)](x,this[_0x515b21(0x4ef)],this[_0x515b21(0x3b6)],null,[],null,[],this[_0x515b21(0x604)]);}};ie=z([m(0x3,a[_0x4821de(0x579)](_['RevisionService'])),m(0x4,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0x5,a[_0x4821de(0x579)](a['Injector'])),m(0x6,a[_0x4821de(0x3c4)]),m(0x7,a[_0x4821de(0x5a9)]),m(0x8,a['ILogService']),m(0x9,_[_0x4821de(0x2c7)])],ie);let k=class extends J{constructor(_0xf38f69,_0x29b48b,_0x4eb6f9,_0x3784a5,_0x2ae685,_0x4a382b,_0x3b4177,_0x5a7faf,_0x781313,_0x298ae6,_0x13f76b,_0x4a1a89,_0x4b3d16,_0x4c6b93){const _0x3df241=_0x4821de;super(_0xf38f69,_0x29b48b,null,_0x4eb6f9,_0x3784a5,_0x298ae6,_0x4c6b93,_0x4a382b,_0x3b4177),u(this,_0x3df241(0x49e),_0x3df241(0x5c0)),u(this,_0x3df241(0x50a),null),u(this,_0x3df241(0x5f2),null),(this[_0x3df241(0x2ac)]=_0x2ae685,this[_0x3df241(0x2ae)]=_0x5a7faf,this[_0x3df241(0x244)]=_0x781313,this['_configService']=_0x13f76b,this[_0x3df241(0x577)]=_0x4a1a89,this[_0x3df241(0x487)]=_0x4b3d16);}[_0x4821de(0x380)](_0x3afef6){const _0x277e8f=_0x4821de;return this[_0x277e8f(0x590)][_0x277e8f(0x25b)](_0x3afef6),this['_updateLocalCache'](),this;}[_0x4821de(0x4b2)](_0x4018e3){const _0xd9b45a=_0x4821de;if(this[_0xd9b45a(0x34c)](_0x4018e3))return this[_0xd9b45a(0x425)](),this[_0xd9b45a(0x2ac)][_0xd9b45a(0x5d3)](x,this[_0xd9b45a(0x4ef)],this['type'],null,this[_0xd9b45a(0x590)],null,[_0x4018e3],this[_0xd9b45a(0x604)]);try{const _0x32323b=this[_0xd9b45a(0x577)]['transformMutationsWithChangeset'](_0x4018e3,this[_0xd9b45a(0x590)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x32323b)){const {c1Prime:_0x5d34ed,m2Prime:_0x3dd9e0}=_0x32323b;this['_executeRemoteChangeset'](_0x5d34ed);const _0x5771ab=this[_0xd9b45a(0x2ac)][_0xd9b45a(0x5d3)](k,this[_0xd9b45a(0x4ef)],this[_0xd9b45a(0x3b6)],_0x3dd9e0,this[_0xd9b45a(0x604)]);return this[_0xd9b45a(0x425)](),_0x5771ab[_0xd9b45a(0x42e)](this[_0xd9b45a(0x50a)]?Math[_0xd9b45a(0x476)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x5771ab;}throw _0x32323b[_0xd9b45a(0x5ee)];}catch(_0x2d324a){return this['_logService'][_0xd9b45a(0x5ee)](_0x2d324a),this[_0xd9b45a(0x51e)](!0x1);}}[_0x4821de(0x44e)](){const _0x957887=_0x4821de;throw new Error(_0x957887(0x557));}['onRemoteRej'](){const _0x2036d4=_0x4821de;throw new Error(_0x2036d4(0x4a3));}[_0x4821de(0x576)](){const _0x104e3f=_0x4821de;return this[_0x104e3f(0x425)](),this[_0x104e3f(0x2ac)][_0x104e3f(0x5d3)](G,this[_0x104e3f(0x4ef)],this['type'],null,this[_0x104e3f(0x590)],this[_0x104e3f(0x604)]);}[_0x4821de(0x4d5)](){return this;}['_schedule'](_0x17e125){const _0x49d8b9=_0x4821de,_0x4e762b=_0x17e125!=null?_0x17e125:this[_0x49d8b9(0x562)]();this[_0x49d8b9(0x50a)]=new Date()['getTime'](),this[_0x49d8b9(0x5f2)]=window['setTimeout'](()=>{const _0x512680=_0x49d8b9;this[_0x512680(0x425)]();let _0x14aab3=null;switch(this[_0x512680(0x3b6)]){case $['UNIVER_SHEET']:{_0x14aab3=at(this['_pendingMutations'],this[_0x512680(0x4ef)],this[_0x512680(0x487)],this[_0x512680(0x55a)],this['_memberService']);break;}case $[_0x512680(0x5f0)]:{this[_0x512680(0x590)]['every'](_0x4cab76=>_0x4cab76['id']===se[_0x512680(0x43f)]['id'])?_0x14aab3=Ws(this['_pendingMutations'],this['unitID'],this[_0x512680(0x487)],this['_revisionService'],this[_0x512680(0x2ae)]):_0x14aab3=at(this[_0x512680(0x590)],this['unitID'],this[_0x512680(0x487)],this[_0x512680(0x55a)],this[_0x512680(0x2ae)]);break;}default:throw new Error(_0x512680(0x23d)+this['type']+_0x512680(0x4da));}const {changeset:_0x50b25e,pendingMutations:_0x4cb5dc}=_0x14aab3;this[_0x512680(0x604)]['onSendChangeset'](_0x50b25e);const _0x2ea44a=_0x4cb5dc['length']?this[_0x512680(0x2ac)][_0x512680(0x5d3)](B,this['unitID'],this[_0x512680(0x3b6)],_0x50b25e,_0x4cb5dc,this[_0x512680(0x604)]):this[_0x512680(0x2ac)][_0x512680(0x5d3)](W,this['unitID'],this[_0x512680(0x3b6)],_0x50b25e,this[_0x512680(0x604)]);_0x2ea44a['_updateLocalCache'](),this['_handler'][_0x512680(0x5ca)](this,_0x2ea44a);},_0x4e762b);}[_0x4821de(0x562)](){const _0x3d915f=_0x4821de;var _0x1e03b3;const _0x445020=this[_0x3d915f(0x519)]['getConfig'](L);return(_0x1e03b3=_0x445020==null?void 0x0:_0x445020[_0x3d915f(0x570)])!=null?_0x1e03b3:Jt;}['resend'](){const _0x3eb5ad=_0x4821de;throw new Error(_0x3eb5ad(0x34f));}[_0x4821de(0x425)](){const _0x4bcf3a=_0x4821de;this['_sendingTimer']!=null&&(clearTimeout(this[_0x4bcf3a(0x5f2)]),this[_0x4bcf3a(0x5f2)]=null);}['_onConflict'](_0x4d484f){const _0x1659b3=_0x4821de;return this[_0x1659b3(0x425)](),this[_0x1659b3(0x2ac)][_0x1659b3(0x5d3)](F,this[_0x1659b3(0x4ef)],this[_0x1659b3(0x3b6)],null,this[_0x1659b3(0x590)],this[_0x1659b3(0x604)],_0x4d484f);}};k=z([m(0x4,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),m(0x5,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),m(0x6,a['Inject'](exports[_0x4821de(0x4c6)])),m(0x7,a['Inject'](q)),m(0x8,a[_0x4821de(0x49c)]),m(0x9,a[_0x4821de(0x5a9)]),m(0xa,a[_0x4821de(0x482)]),m(0xb,_[_0x4821de(0x2c7)]),m(0xc,a[_0x4821de(0x258)]),m(0xd,a['IUndoRedoService'])],k);let W=class extends J{constructor(_0x3c799f,_0x92023f,_0xb5036,_0x502c9b,_0x38665e,_0x526e89,_0x18c98e,_0x70bd49,_0x5feee5,_0x8a64a5,_0x13cfe3){const _0x55580a=_0x4821de;super(_0x3c799f,_0x92023f,_0xb5036,[],_0x502c9b,_0x70bd49,_0x13cfe3,_0x526e89,_0x18c98e),u(this,_0x55580a(0x49e),_0x55580a(0x4a0)),(this[_0x55580a(0x2ac)]=_0x38665e,this[_0x55580a(0x244)]=_0x5feee5,this[_0x55580a(0x577)]=_0x8a64a5);}['appendMutation'](_0x375083){const _0x19be63=_0x4821de,_0x8c7de3=this[_0x19be63(0x2ac)][_0x19be63(0x5d3)](B,this['unitID'],this[_0x19be63(0x3b6)],this[_0x19be63(0x321)],[_0x375083],this[_0x19be63(0x604)]);return _0x8c7de3['_updateLocalCache'](),_0x8c7de3;}['onRemoteChangeset'](_0x196a4b){const _0x56b32b=_0x4821de;if(this[_0x56b32b(0x34c)](_0x196a4b))return this[_0x56b32b(0x2ac)][_0x56b32b(0x5d3)](x,this[_0x56b32b(0x4ef)],this['type'],this[_0x56b32b(0x321)],[],null,[_0x196a4b],this[_0x56b32b(0x604)]);try{const _0x34c723=this[_0x56b32b(0x577)]['transformChangesets']([_0x196a4b],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x34c723)){const {c1Prime:_0x56b4a3,c2Prime:_0x2171f0}=_0x34c723;this['_executeRemoteChangeset'](_0x56b4a3[0x0]),_0x2171f0[0x0][_0x56b32b(0x484)]=this[_0x56b32b(0x583)]();const _0x468340=this[_0x56b32b(0x2ac)][_0x56b32b(0x5d3)](W,this[_0x56b32b(0x4ef)],this[_0x56b32b(0x3b6)],_0x2171f0[0x0],this['_handler']);return _0x468340['_updateLocalCache'](),_0x468340;}return this[_0x56b32b(0x51e)](!0x1);}catch(_0x3b5177){return this['_logService']['error'](_0x3b5177),this['_onConflict'](!0x1);}}[_0x4821de(0x44e)](_0x5a3aeb){const _0x47e602=_0x4821de,_0x4ede08=this[_0x47e602(0x55a)][_0x47e602(0x1f2)](this[_0x47e602(0x4ef)]);if(_0x5a3aeb[_0x47e602(0x3a9)]<_0x4ede08-0x1)return this;if(this[_0x47e602(0x34c)](_0x5a3aeb))return this['_injector'][_0x47e602(0x5d3)](x,this[_0x47e602(0x4ef)],this[_0x47e602(0x3b6)],null,[],this[_0x47e602(0x321)],[],this[_0x47e602(0x604)]);this[_0x47e602(0x44d)]();const _0x34f7fd=this[_0x47e602(0x2ac)][_0x47e602(0x5d3)](ie,this['unitID'],this['type'],this[_0x47e602(0x604)]);return _0x34f7fd[_0x47e602(0x536)](),_0x34f7fd;}[_0x4821de(0x38d)](_0xc53e39){const _0x2ab3f0=_0x4821de;return this['_onConflict'](!!(_0xc53e39!=null&&_0xc53e39[_0x2ab3f0(0x3e9)]));}[_0x4821de(0x576)](){const _0x540488=_0x4821de;return this['_injector'][_0x540488(0x5d3)](G,this[_0x540488(0x4ef)],this[_0x540488(0x3b6)],this['_awaitingChangeset'],[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x56cd44=_0x4821de;this[_0x56cd44(0x604)][_0x56cd44(0x5c3)](this[_0x56cd44(0x321)]);}['_onConflict'](_0x1fa822){const _0x5e1dfe=_0x4821de;return this['_injector'][_0x5e1dfe(0x5d3)](F,this[_0x5e1dfe(0x4ef)],this[_0x5e1dfe(0x3b6)],this[_0x5e1dfe(0x321)],[],this[_0x5e1dfe(0x604)],_0x1fa822);}};W=z([m(0x4,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),m(0x5,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),m(0x6,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0x7,a[_0x4821de(0x5a9)]),m(0x8,a['ILogService']),m(0x9,_[_0x4821de(0x2c7)]),m(0xa,a[_0x4821de(0x3c4)])],W);let B=class extends J{constructor(_0x525a05,_0xfbc410,_0x43e824,_0x46ecbf,_0x3920c6,_0x35ccd2,_0x2a368d,_0x3513cf,_0xf160a8,_0x4566e5,_0x3c0194,_0x4c2b6e){const _0x59e677=_0x4821de;super(_0x525a05,_0xfbc410,_0x43e824,_0x46ecbf,_0x3920c6,_0xf160a8,_0x4c2b6e,_0x2a368d,_0x3513cf),u(this,_0x59e677(0x49e),_0x59e677(0x45c)),(this[_0x59e677(0x2ac)]=_0x35ccd2,this[_0x59e677(0x244)]=_0x4566e5,this[_0x59e677(0x577)]=_0x3c0194);}[_0x4821de(0x380)](_0x46ea0c){const _0x1a4cee=_0x4821de;return this[_0x1a4cee(0x590)]['push'](_0x46ea0c),this;}[_0x4821de(0x4b2)](_0xca0162){const _0x58599d=_0x4821de;if(this['_checkMissing'](_0xca0162))return this[_0x58599d(0x2ac)]['createInstance'](x,this[_0x58599d(0x4ef)],this['type'],this[_0x58599d(0x321)],this[_0x58599d(0x590)],null,[_0xca0162],this[_0x58599d(0x604)]);try{const _0x2f38a7=this[_0x58599d(0x577)][_0x58599d(0x4d9)]([_0xca0162],[this[_0x58599d(0x321)]],!0x1);if(_[_0x58599d(0x55d)](_0x2f38a7)){const {c1Prime:_0x17f7a5,c2Prime:_0xb49288}=_0x2f38a7,_0x419c75=this[_0x58599d(0x577)]['transformMutationsWithChangeset'](_0x17f7a5[0x0],this[_0x58599d(0x590)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x419c75)){const {c1Prime:_0x3d1967,m2Prime:_0x479fb7}=_0x419c75;return this[_0x58599d(0x24b)](_0x3d1967),_0xb49288[0x0][_0x58599d(0x484)]=this[_0x58599d(0x583)](),this[_0x58599d(0x2ac)][_0x58599d(0x5d3)](B,this[_0x58599d(0x4ef)],this[_0x58599d(0x3b6)],_0xb49288[0x0],_0x479fb7,this['_handler']);}throw _0x419c75[_0x58599d(0x5ee)];}throw _0x2f38a7['error'];}catch(_0xcefd97){return this['_logService'][_0x58599d(0x5ee)](_0xcefd97),this[_0x58599d(0x51e)](!0x1);}}[_0x4821de(0x44e)](_0x571f58){const _0x99a5b2=_0x4821de;if(this[_0x99a5b2(0x34c)](_0x571f58))return this['_injector'][_0x99a5b2(0x5d3)](x,this[_0x99a5b2(0x4ef)],this[_0x99a5b2(0x3b6)],null,this[_0x99a5b2(0x590)],this[_0x99a5b2(0x321)],[],this[_0x99a5b2(0x604)]);this['_incrementRevisionNumber']();const _0x5ef834=this[_0x99a5b2(0x2ac)][_0x99a5b2(0x5d3)](k,this['unitID'],this['type'],this['_pendingMutations'],this[_0x99a5b2(0x604)]);return _0x5ef834[_0x99a5b2(0x42e)](),_0x5ef834['_updateLocalCache'](),_0x5ef834;}[_0x4821de(0x38d)](_0x1cc022){const _0x14b335=_0x4821de;return this[_0x14b335(0x51e)](!!(_0x1cc022!=null&&_0x1cc022[_0x14b335(0x3e9)]));}[_0x4821de(0x576)](){const _0x58cf91=_0x4821de;return this['_injector'][_0x58cf91(0x5d3)](G,this[_0x58cf91(0x4ef)],this[_0x58cf91(0x3b6)],this[_0x58cf91(0x321)],this[_0x58cf91(0x590)],this['_handler']);}['toggleOnline'](){return this;}[_0x4821de(0x3de)](){const _0x34b1e4=_0x4821de;this[_0x34b1e4(0x604)][_0x34b1e4(0x5c3)](this['_awaitingChangeset']);}[_0x4821de(0x51e)](_0x444438){const _0x298de7=_0x4821de;return this['_injector'][_0x298de7(0x5d3)](F,this[_0x298de7(0x4ef)],this[_0x298de7(0x3b6)],null,this[_0x298de7(0x590)],this[_0x298de7(0x604)],_0x444438);}};B=z([m(0x5,a['Inject'](a[_0x4821de(0x2cd)])),m(0x6,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),m(0x7,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0x8,a[_0x4821de(0x5a9)]),m(0x9,a[_0x4821de(0x49c)]),m(0xa,_[_0x4821de(0x2c7)]),m(0xb,a[_0x4821de(0x3c4)])],B);let F=class extends J{constructor(_0x14b7bd,_0x9ada36,_0x4642da,_0x5af131,_0xd2e5de,_0x377ef8=!0x1,_0x265443,_0x395313,_0x5699c2,_0x153132,_0x557bb9,_0xfa6f0c,_0x1b44c3){const _0x7ab4fd=_0x4821de;super(_0x14b7bd,_0x9ada36,_0x4642da,_0x5af131,_0xd2e5de,_0x395313,_0x5699c2,_0x557bb9,_0x153132),u(this,_0x7ab4fd(0x49e),'conflict'),(this['_isPermissionRej']=_0x377ef8,this['_permissionService']=_0x265443,this[_0x7ab4fd(0x28b)]=_0xfa6f0c,this[_0x7ab4fd(0x213)]=_0x1b44c3,this['_showConflictNotification'](),this[_0x7ab4fd(0x2a3)](),this['_disableEditing']());}[_0x4821de(0x380)](){return this;}[_0x4821de(0x4b2)](){return this;}[_0x4821de(0x44e)](){return this;}[_0x4821de(0x38d)](){return this;}[_0x4821de(0x576)](){return this;}['toggleOnline'](){return this;}[_0x4821de(0x3de)](){const _0x44ed34=_0x4821de;throw new Error(_0x44ed34(0x57e));}[_0x4821de(0x2a3)](){const _0x51a200=_0x4821de;this[_0x51a200(0x32f)][_0x51a200(0x2b5)](this[_0x51a200(0x4ef)],this['type'],null,[]);}[_0x4821de(0x582)](){const _0x530c0c=_0x4821de;this[_0x530c0c(0x55b)]?this['_notificationService'][_0x530c0c(0x4d2)]({'title':this[_0x530c0c(0x28b)]['t'](_0x530c0c(0x5a3)),'content':this[_0x530c0c(0x28b)]['t'](_0x530c0c(0x364)),'type':'error','duration':0x0}):this[_0x530c0c(0x213)][_0x530c0c(0x4d2)]({'title':this[_0x530c0c(0x28b)]['t'](_0x530c0c(0x5aa)),'content':this[_0x530c0c(0x28b)]['t'](_0x530c0c(0x407)),'type':_0x530c0c(0x5ee),'duration':0x0});}[_0x4821de(0x3e5)](){const _0x3d5249=_0x4821de;this[_0x3d5249(0x368)][_0x3d5249(0x61c)](new C[(_0x3d5249(0x60b))](this[_0x3d5249(0x4ef)])['id'],!0x1);}};F=z([m(0x6,a['Inject'](a[_0x4821de(0x54c)])),m(0x7,a['ICommandService']),m(0x8,a[_0x4821de(0x3c4)]),m(0x9,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0xa,a[_0x4821de(0x579)](_['RevisionService'])),m(0xb,a['Inject'](a[_0x4821de(0x53d)])),m(0xc,A['INotificationService'])],F);let G=class extends J{constructor(_0x3a7443,_0x3028e5,_0x4bb2aa,_0x2f6f72,_0x58a2c1,_0x4033f8,_0x4871d9,_0x37263b,_0x3aaba9,_0x21b902){const _0x1a31e1=_0x4821de;super(_0x3a7443,_0x3028e5,_0x4bb2aa,_0x2f6f72,_0x58a2c1,_0x3aaba9,_0x21b902,_0x4871d9,_0x37263b),u(this,_0x1a31e1(0x49e),_0x1a31e1(0x478)),this[_0x1a31e1(0x2ac)]=_0x4033f8;}[_0x4821de(0x380)](_0x38fd57){const _0x184bb1=_0x4821de;return this[_0x184bb1(0x590)][_0x184bb1(0x25b)](_0x38fd57),this[_0x184bb1(0x536)](),this;}[_0x4821de(0x4b2)](_0x56e235){const _0x5e37ca=_0x4821de;throw new Error(_0x5e37ca(0x4ab));}[_0x4821de(0x44e)](){const _0x2c925d=_0x4821de;throw new Error(_0x2c925d(0x549));}[_0x4821de(0x38d)](){const _0xcadbb8=_0x4821de;throw new Error(_0xcadbb8(0x5b8));}['toggleOffline'](){return this;}[_0x4821de(0x4d5)](){const _0x491baf=_0x4821de,{_injector:_0x4abefd,_pendingMutations:_0x17bd14,_awaitingChangeset:_0x12fc92,unitID:_0x5a97c0,_handler:_0x210f27,type:_0x1881c3}=this,_0x587a2d=Ut(_0x4abefd,_0x5a97c0,_0x1881c3,_0x12fc92,_0x17bd14,_0x210f27);return _0x587a2d instanceof k?_0x587a2d[_0x491baf(0x42e)]():(_0x587a2d instanceof B||_0x587a2d instanceof W)&&_0x587a2d[_0x491baf(0x3de)](),_0x587a2d;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};G=z([m(0x5,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),m(0x6,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),m(0x7,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0x8,a[_0x4821de(0x5a9)]),m(0x9,a[_0x4821de(0x3c4)])],G);let x=class extends J{constructor(_0x3028f4,_0x82d58d,_0x2e5b04,_0x556c42,_0x5d4bc0,_0x18d20d,_0x163a6,_0x222e47,_0xeb299b,_0xc2c292,_0x4567f6,_0x96b647,_0x294671,_0x376394){const _0x13fe9e=_0x4821de;super(_0x3028f4,_0x82d58d,_0x2e5b04,_0x556c42,_0x163a6,_0x96b647,_0x294671,_0xeb299b,_0xc2c292),u(this,_0x13fe9e(0x49e),_0x13fe9e(0x5d7)),(this['_acknowledgedAwaitingChangeset']=_0x5d4bc0,this[_0x13fe9e(0x50b)]=_0x18d20d,this[_0x13fe9e(0x2ac)]=_0x222e47,this[_0x13fe9e(0x244)]=_0x4567f6,this['_transformService']=_0x376394);}[_0x4821de(0x4de)](_0x4cb44a){const _0x6ecb95=_0x4821de;try{const _0x547a4f=[..._0x4cb44a,...this[_0x6ecb95(0x50b)]],_0x3956e7=[this[_0x6ecb95(0x321)]||this[_0x6ecb95(0x4df)]]['filter'](_0x51c2b3=>!!_0x51c2b3);let _0x4d8c69,_0x2c957e;if(_0x3956e7[_0x6ecb95(0x1fe)]){const _0x134dfb=this[_0x6ecb95(0x577)][_0x6ecb95(0x4d9)](_0x547a4f,_0x3956e7,!0x1);if(!_[_0x6ecb95(0x55d)](_0x134dfb))throw _0x134dfb[_0x6ecb95(0x5ee)];_0x4d8c69=_0x134dfb['c1Prime'],_0x2c957e=_0x134dfb['c2Prime'];}else _0x4d8c69=_0x547a4f,_0x2c957e=[];let _0x516b6d=this['_pendingMutations'];_0x4d8c69['forEach'](_0x20871d=>{const _0x50d102=_0x6ecb95;let _0x1935b2;if(_0x516b6d['length']){const _0x2fc9a8=this[_0x50d102(0x577)][_0x50d102(0x209)](_0x20871d,_0x516b6d);if(!_[_0x50d102(0x2f1)](_0x2fc9a8))throw _0x2fc9a8[_0x50d102(0x5ee)];_0x1935b2=_0x2fc9a8['c1Prime'],_0x516b6d=_0x2fc9a8[_0x50d102(0x309)];}else _0x1935b2=_0x20871d;this['_executeRemoteChangeset'](_0x1935b2);}),this[_0x6ecb95(0x4df)]&&this[_0x6ecb95(0x44d)](),this[_0x6ecb95(0x321)]&&_0x2c957e[_0x6ecb95(0x1fe)]&&(_0x2c957e[0x0][_0x6ecb95(0x484)]=this['_getCurrentRevision']());let _0x4853f4;if(this[_0x6ecb95(0x321)]&&_0x516b6d[_0x6ecb95(0x1fe)]!==0x0)_0x4853f4=this[_0x6ecb95(0x2ac)]['createInstance'](B,this[_0x6ecb95(0x4ef)],this[_0x6ecb95(0x3b6)],_0x2c957e[0x0],_0x516b6d,this['_handler']);else{if(this['_awaitingChangeset']&&_0x516b6d[_0x6ecb95(0x1fe)]===0x0)_0x2c957e[0x0]['baseRev']=this['_getCurrentRevision'](),_0x4853f4=this[_0x6ecb95(0x2ac)][_0x6ecb95(0x5d3)](W,this[_0x6ecb95(0x4ef)],this[_0x6ecb95(0x3b6)],_0x2c957e[0x0],this[_0x6ecb95(0x604)]);else{if(_0x516b6d['length']!==0x0){const _0x6417ee=this['_injector'][_0x6ecb95(0x5d3)](k,this[_0x6ecb95(0x4ef)],this['type'],_0x516b6d,this[_0x6ecb95(0x604)]);_0x6417ee[_0x6ecb95(0x42e)](),_0x4853f4=_0x6417ee;}else _0x4853f4=this[_0x6ecb95(0x2ac)][_0x6ecb95(0x5d3)](ie,this[_0x6ecb95(0x4ef)],this['type'],this[_0x6ecb95(0x604)]);}}return _0x4853f4[_0x6ecb95(0x536)](),_0x4853f4;}catch(_0x43e4cf){return this[_0x6ecb95(0x244)][_0x6ecb95(0x5ee)](_0x6ecb95(0x497),_0x6ecb95(0x384),_0x43e4cf),this[_0x6ecb95(0x2ac)][_0x6ecb95(0x5d3)](F,this[_0x6ecb95(0x4ef)],this[_0x6ecb95(0x3b6)],this['_awaitingChangeset'],this[_0x6ecb95(0x590)],this[_0x6ecb95(0x604)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4821de(0x380)](_0x3d3f22){const _0x3d6f39=_0x4821de;return this[_0x3d6f39(0x590)][_0x3d6f39(0x25b)](_0x3d3f22),this;}[_0x4821de(0x4b2)](_0x506b8a){return this['_queuedRemoteChangesets']['push'](_0x506b8a),this;}[_0x4821de(0x44e)](_0x25deca){const _0xbb5a05=_0x4821de;if(this[_0xbb5a05(0x321)])return this[_0xbb5a05(0x4df)]=this[_0xbb5a05(0x321)],this[_0xbb5a05(0x321)]=null,this;throw new Error(_0xbb5a05(0x4a4));}[_0x4821de(0x38d)](_0x183c98){const _0x52cae2=_0x4821de;return this['_onConflict'](!!(_0x183c98!=null&&_0x183c98[_0x52cae2(0x3e9)]));}['toggleOffline'](){const _0x24ae6b=_0x4821de;return this['_injector'][_0x24ae6b(0x5d3)](G,this[_0x24ae6b(0x4ef)],this['type'],this[_0x24ae6b(0x321)],this[_0x24ae6b(0x590)],this['_handler']);}['toggleOnline'](){return this;}['_onConflict'](_0x47cd82){const _0x13f9eb=_0x4821de;return this['_injector'][_0x13f9eb(0x5d3)](F,this['unitID'],this[_0x13f9eb(0x3b6)],this[_0x13f9eb(0x321)],this[_0x13f9eb(0x590)],this[_0x13f9eb(0x604)],_0x47cd82);}};x=z([m(0x7,a['Inject'](a[_0x4821de(0x2cd)])),m(0x8,a[_0x4821de(0x579)](_['RevisionService'])),m(0x9,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),m(0xa,a['ILogService']),m(0xb,a[_0x4821de(0x5a9)]),m(0xc,a[_0x4821de(0x3c4)]),m(0xd,_[_0x4821de(0x2c7)])],x);function Ut(_0x23c86c,_0x1cd4f6,_0x2843f3,_0x4b094b,_0x41381d,_0x307ff2){const _0x277811=_0x4821de;return _0x4b094b&&_0x41381d[_0x277811(0x1fe)]?_0x23c86c[_0x277811(0x5d3)](B,_0x1cd4f6,_0x2843f3,_0x4b094b,_0x41381d,_0x307ff2):_0x4b094b?_0x23c86c[_0x277811(0x5d3)](W,_0x1cd4f6,_0x2843f3,_0x4b094b,_0x307ff2):_0x41381d['length']?_0x23c86c['createInstance'](k,_0x1cd4f6,_0x2843f3,_0x41381d,_0x307ff2):_0x23c86c['createInstance'](ie,_0x1cd4f6,_0x2843f3,_0x307ff2);}var Ks=Object[_0x4821de(0x51a)],Xs=Object[_0x4821de(0x4f8)],ze=(_0x30170e,_0x24a580,_0x416d2c,_0x569923)=>{const _0x24d915=_0x4821de;for(var _0x3f6fac=_0x569923>0x1?void 0x0:_0x569923?Xs(_0x24a580,_0x416d2c):_0x24a580,_0x1530c4=_0x30170e[_0x24d915(0x1fe)]-0x1,_0x2f53fb;_0x1530c4>=0x0;_0x1530c4--)(_0x2f53fb=_0x30170e[_0x1530c4])&&(_0x3f6fac=(_0x569923?_0x2f53fb(_0x24a580,_0x416d2c,_0x3f6fac):_0x2f53fb(_0x3f6fac))||_0x3f6fac);return _0x569923&&_0x3f6fac&&Ks(_0x24a580,_0x416d2c,_0x3f6fac),_0x3f6fac;},I=(_0x4e3701,_0x45be33)=>(_0x46c91b,_0x232285)=>_0x45be33(_0x46c91b,_0x232285,_0x4e3701);exports[_0x4821de(0x26b)]=class extends a['RxDisposable']{constructor(_0xc50522,_0x351189,_0x1e7607,_0x59df24,_0x1782a3,_0x4c85e9,_0x6a00f7,_0x25f82d,_0x15491e,_0x2d23e6,_0x18c52b,_0x4bcaa4,_0x1e347b){const _0x46a6ce=_0x4821de;super(),u(this,_0x46a6ce(0x46e),new v[(_0x46a6ce(0x611))](null)),u(this,'state$',this[_0x46a6ce(0x46e)][_0x46a6ce(0x43a)]()),u(this,_0x46a6ce(0x257)),u(this,_0x46a6ce(0x2f4),!0x1),u(this,'_changesetSessionId',''),u(this,_0x46a6ce(0x41b),0x0),u(this,_0x46a6ce(0x345),this[_0x46a6ce(0x5c6)][_0x46a6ce(0x2a5)](v['map'](_0x4a1dfe=>_0x4a1dfe?_0x4a1dfe[_0x46a6ce(0x49e)]:U[_0x46a6ce(0x266)]),v['shareReplay'](0x1))),u(this,_0x46a6ce(0x428),!0x1),u(this,_0x46a6ce(0x294),[]),(this[_0x46a6ce(0x4ef)]=_0xc50522,this['session']=_0x351189,this[_0x46a6ce(0x581)]=_0x1e7607,this[_0x46a6ce(0x2ac)]=_0x59df24,this[_0x46a6ce(0x32f)]=_0x1782a3,this[_0x46a6ce(0x503)]=_0x4c85e9,this[_0x46a6ce(0x28b)]=_0x6a00f7,this[_0x46a6ce(0x55a)]=_0x25f82d,this[_0x46a6ce(0x244)]=_0x15491e,this[_0x46a6ce(0x2bc)]=_0x2d23e6,this[_0x46a6ce(0x3cb)]=_0x18c52b,this[_0x46a6ce(0x368)]=_0x4bcaa4,this[_0x46a6ce(0x5e5)]=_0x1e347b);}get[_0x4821de(0x4f4)](){const _0x1949b9=_0x4821de;return this[_0x1949b9(0x257)];}async[_0x4821de(0x28f)](){const _0x226d29=_0x4821de;if(this['state'])throw new Error(_0x226d29(0x57f));await this[_0x226d29(0x402)]();}[_0x4821de(0x61a)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x168dd9=_0x370a;this[_0x168dd9(0x2f4)]=!0x1,this[_0x168dd9(0x51c)]();});}[_0x4821de(0x243)](_0x3e0d49){const _0x8843ae=_0x4821de;this[_0x8843ae(0x257)]=_0x3e0d49,this[_0x8843ae(0x46e)]['next'](_0x3e0d49);}async[_0x4821de(0x402)](){const _0x325669=_0x4821de;var _0x2b9229;this[_0x325669(0x243)](await this[_0x325669(0x30f)]()),this[_0x325669(0x5e5)]&&((_0x2b9229=this['_singleActiveUnitService'])==null||_0x2b9229[_0x325669(0x58f)](this['unitID']),this[_0x325669(0x4b1)](this[_0x325669(0x5e5)][_0x325669(0x2cc)](this[_0x325669(0x4ef)])[_0x325669(0x48c)](_0x2853a4=>{const _0x4e48c1=_0x325669;this[_0x4e48c1(0x244)][_0x4e48c1(0x233)]('[CollaborationEntity]',_0x4e48c1(0x5da),_0x2853a4),_0x2853a4===Dt[_0x4e48c1(0x3fb)]?(this['_messageService'][_0x4e48c1(0x4d2)]({'content':this[_0x4e48c1(0x28b)]['t'](_0x4e48c1(0x533)),'type':X[_0x4e48c1(0x43c)][_0x4e48c1(0x33a)]}),this['_permissionService'][_0x4e48c1(0x61c)](new C[(_0x4e48c1(0x60b))](this['unitID'])['id'],!0x1)):this[_0x4e48c1(0x368)][_0x4e48c1(0x61c)](new C[(_0x4e48c1(0x60b))](this[_0x4e48c1(0x4ef)])['id'],!0x0);})));let _0x72dd6f=!0x1;return this['disposeWithMe'](this['session']['sessionStatus$'][_0x325669(0x48c)](_0x13f466=>{const _0x6b3e07=_0x325669;_0x13f466===H[_0x6b3e07(0x451)]?this[_0x6b3e07(0x31e)](_0x72dd6f):_0x13f466===H[_0x6b3e07(0x266)]&&(_0x72dd6f=!0x0,this[_0x6b3e07(0x313)]());})),this['disposeWithMe'](this[_0x325669(0x259)]['event$'][_0x325669(0x48c)](_0x371e21=>{const _0x41374c=_0x325669;try{switch(_0x371e21[_0x41374c(0x2ab)]){case _['CollaborationEvent'][_0x41374c(0x609)]:{this['_onRemoteChangeset'](_[_0x41374c(0x534)](_0x371e21[_0x41374c(0x434)]));break;}case _[_0x41374c(0x215)]['CHANGESET_ACK']:{this[_0x41374c(0x245)](_0x371e21[_0x41374c(0x434)]);break;}case _[_0x41374c(0x215)][_0x41374c(0x3da)]:{this[_0x41374c(0x3ea)]();break;}case _[_0x41374c(0x215)][_0x41374c(0x4bb)]:{this[_0x41374c(0x388)](_0x371e21[_0x41374c(0x434)][_0x41374c(0x28e)]['map'](_0x2861ae=>_['parseProtocolChangeset'](_0x2861ae)));break;}case _[_0x41374c(0x215)][_0x41374c(0x21d)]:this[_0x41374c(0x3ea)]({'isPermissionRej':!0x0});}}catch(_0x37aca1){throw console[_0x41374c(0x5ee)](_0x41374c(0x2e5),_0x37aca1),_0x37aca1;}})),this[_0x325669(0x257)];}[_0x4821de(0x5a2)](){const _0x5bd3e3=_0x4821de;this[_0x5bd3e3(0x428)]=!0x1;}[_0x4821de(0x4ad)](){const _0x473b2e=_0x4821de;if(this['_transitionLocked'])throw new Error(_0x473b2e(0x54b));this['_transitionLocked']=!0x0;}[_0x4821de(0x22d)](_0x4b79b6){const _0x1dee82=_0x4821de;this['_lockTransition'](),this['_updateState'](this[_0x1dee82(0x257)][_0x1dee82(0x380)](_0x4b79b6)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x3bc608){const _0x6474ec=_0x4821de;if(!(_0x3bc608['revision']<=this[_0x6474ec(0x55a)]['getCurrentRevOfUnit'](this[_0x6474ec(0x4ef)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x6474ec(0x25b)](_0x3bc608);return;}this[_0x6474ec(0x3bb)](_0x3bc608);}}[_0x4821de(0x51c)](){const _0x595908=_0x4821de;this['_remoteChangesetQueue']['forEach'](_0xf80aa5=>this[_0x595908(0x3bb)](_0xf80aa5)),this[_0x595908(0x294)]=[];}[_0x4821de(0x3bb)](_0x4e4936){const _0x877944=_0x4821de,_0x334cf5=this['_compressMutationService']['interceptor'][_0x877944(0x335)](this['_compressMutationService'][_0x877944(0x3ed)][_0x877944(0x359)]()[_0x877944(0x4a5)])(_0x4e4936['mutations'],null)||_0x4e4936[_0x877944(0x2c2)],_0x1d4601={..._0x4e4936,'mutations':_0x334cf5};this[_0x877944(0x4ad)](),this[_0x877944(0x243)](this[_0x877944(0x257)][_0x877944(0x4b2)](_0x1d4601)),this[_0x877944(0x5a2)]();}[_0x4821de(0x245)](_0x92333a){const _0x1d3d0f=_0x4821de;this[_0x1d3d0f(0x4ad)](),this[_0x1d3d0f(0x243)](this['_state'][_0x1d3d0f(0x44e)](_0x92333a)),this[_0x1d3d0f(0x5a2)]();}[_0x4821de(0x3ea)](_0x1bd0b7){const _0x305625=_0x4821de;this[_0x305625(0x4ad)](),this[_0x305625(0x243)](this[_0x305625(0x257)][_0x305625(0x38d)](_0x1bd0b7)),this[_0x305625(0x5a2)]();}[_0x4821de(0x388)](_0x5cd920){const _0xbd385d=_0x4821de;if(!(this[_0xbd385d(0x257)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x1ed48e=_0x5cd920[_0xbd385d(0x27e)](_0x15d84e=>{const _0x1605ca=_0xbd385d,_0x597468=this[_0x1605ca(0x503)][_0x1605ca(0x3ed)][_0x1605ca(0x335)](this[_0x1605ca(0x503)]['interceptor']['getInterceptPoints']()[_0x1605ca(0x4a5)])(_0x15d84e[_0x1605ca(0x2c2)],null)||_0x15d84e[_0x1605ca(0x2c2)];return{..._0x15d84e,'mutations':_0x597468};});this[_0xbd385d(0x4ad)](),this[_0xbd385d(0x243)](this['_state'][_0xbd385d(0x4de)](_0x1ed48e)),this[_0xbd385d(0x5a2)]();}[_0x4821de(0x313)](){const _0xe0b0a0=_0x4821de;this[_0xe0b0a0(0x4ad)](),this[_0xe0b0a0(0x243)](this[_0xe0b0a0(0x257)][_0xe0b0a0(0x576)]()),this['_unlockTransition']();}[_0x4821de(0x31e)](_0xc93a6c=!0x1){const _0x5c7c65=_0x4821de;this[_0x5c7c65(0x4ad)](),this['_updateState'](this[_0x5c7c65(0x257)][_0x5c7c65(0x4d5)]()),this['_unlockTransition']();const _0x3ef165=this[_0x5c7c65(0x257)];_0xc93a6c&&_0x3ef165 instanceof ie&&(this['_lockTransition'](),this[_0x5c7c65(0x243)](_0x3ef165['fetchMiss']()),this[_0x5c7c65(0x5a2)]());}async['_createInitialState'](){return new Promise(_0x55aaff=>{const _0x3db5f9=_0x370a;this[_0x3db5f9(0x259)][_0x3db5f9(0x2a8)][_0x3db5f9(0x2a5)](v['take'](0x1))[_0x3db5f9(0x48c)](async _0x108394=>{const _0x5eb0e6=_0x3db5f9;_0x55aaff(await this[_0x5eb0e6(0x3b9)](_0x108394===H[_0x5eb0e6(0x451)]));});});}['_createHandler'](){const _0xc31cc8=this['unitID'];return{'onStateChange':(_0x5f3386,_0x146d16)=>{const _0x7cdc81=_0x370a;if(_0x5f3386!==this['_state'])throw new Error(_0x7cdc81(0x4fa)+_0x5f3386['status']+_0x7cdc81(0x20d)+_0x146d16[_0x7cdc81(0x49e)]+_0x7cdc81(0x27f)+this['_state'][_0x7cdc81(0x49e)]);this['_updateState'](_0x146d16);},'onSendChangeset':_0x1a2c9d=>{const _0x4a7a7a=_0x370a;_0x1a2c9d[_0x4a7a7a(0x473)]||(_0x1a2c9d[_0x4a7a7a(0x473)]=this[_0x4a7a7a(0x280)],_0x1a2c9d[_0x4a7a7a(0x2d4)]=++this[_0x4a7a7a(0x41b)]);const _0x20f9b0={'eventID':_[_0x4a7a7a(0x215)][_0x4a7a7a(0x328)],'data':{'unitID':_0x1a2c9d[_0x4a7a7a(0x4ef)],'unitType':this[_0x4a7a7a(0x581)],'changeset':_0x1a2c9d,'memberID':this[_0x4a7a7a(0x259)][_0x4a7a7a(0x4e3)]()}};this['session']['send'](_0x20f9b0,this[_0x4a7a7a(0x4ef)]);},'onMissingChangesets':({from:_0x2578de,to:_0x1bbc88})=>{const _0x37f1e4=_0x370a;this[_0x37f1e4(0x244)][_0x37f1e4(0x233)](_0x37f1e4(0x47e),_0x37f1e4(0x419)+_0x2578de+'\x20to\x20'+_0x1bbc88);const _0x4be87d={'eventID':_[_0x37f1e4(0x215)][_0x37f1e4(0x3d8)],'data':{'unitID':_0xc31cc8,'unitType':this[_0x37f1e4(0x581)],'from':_0x2578de,'to':_0x1bbc88}};this[_0x37f1e4(0x259)][_0x37f1e4(0x42f)](_0x4be87d,this[_0x37f1e4(0x4ef)]);}};}async[_0x4821de(0x3b9)](_0xec679d){const _0x2cafdc=_0x4821de;var _0x340230,_0x117754;const _0x3836cf=await this['_localCacheService']['loadOfflineData'](this[_0x2cafdc(0x4ef)]),_0x442034=(_0x340230=_0x3836cf==null?void 0x0:_0x3836cf['mutations'])!=null?_0x340230:[],_0x39e6cc=(_0x117754=_0x3836cf==null?void 0x0:_0x3836cf['awaitingChangeset'])!=null?_0x117754:null,_0x4049dd=!!(_0x39e6cc!=null&&_0x39e6cc[_0x2cafdc(0x473)])&&!!(_0x39e6cc!=null&&_0x39e6cc['reqId']);this[_0x2cafdc(0x280)]=_0x4049dd?_0x39e6cc[_0x2cafdc(0x473)]:Os(),this['_changesetReqId']=_0x4049dd?_0x39e6cc[_0x2cafdc(0x2d4)]:0x0;const _0x470573=this[_0x2cafdc(0x4ef)];try{this['_replayCachedMutations'](_0x39e6cc,_0x442034);}catch(_0x4f9496){this['_logService'][_0x2cafdc(0x5ee)](_0x4f9496);}const _0x139b63=this['_createHandler']();if(_0xec679d){const _0x3b6840=Ut(this[_0x2cafdc(0x2ac)],_0x470573,this['_type'],_0x39e6cc,_0x442034,_0x139b63);return _0x3b6840 instanceof k?_0x3b6840[_0x2cafdc(0x42e)]():(_0x3b6840 instanceof B||_0x3b6840 instanceof W)&&_0x3b6840[_0x2cafdc(0x3de)](),_0x3b6840;}return this[_0x2cafdc(0x2ac)][_0x2cafdc(0x5d3)](G,_0x470573,this['_type'],_0x39e6cc,_0x442034,_0x139b63);}[_0x4821de(0x30a)](_0x434e57,_0x3998c1){const _0x3fc9c3=_0x4821de;var _0x204bb3,_0x4ff1b8;const _0xd20430=this[_0x3fc9c3(0x503)][_0x3fc9c3(0x3ed)][_0x3fc9c3(0x335)](this['_compressMutationService'][_0x3fc9c3(0x3ed)]['getInterceptPoints']()[_0x3fc9c3(0x4a5)]);(_0x204bb3=_0xd20430((_0x434e57==null?void 0x0:_0x434e57[_0x3fc9c3(0x2c2)])||[],null))==null||_0x204bb3['forEach'](_0x604a61=>this[_0x3fc9c3(0x2bc)][_0x3fc9c3(0x461)](_0x604a61['id'],_0x604a61[_0x3fc9c3(0x247)])),(_0x4ff1b8=_0xd20430(_0x3998c1||[],null))==null||_0x4ff1b8[_0x3fc9c3(0x3c2)](_0x14682f=>this[_0x3fc9c3(0x2bc)][_0x3fc9c3(0x461)](_0x14682f['id'],_0x14682f[_0x3fc9c3(0x247)]));}},exports[_0x4821de(0x26b)]=ze([I(0x3,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),I(0x4,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),I(0x5,a[_0x4821de(0x579)](_[_0x4821de(0x5be)])),I(0x6,a[_0x4821de(0x579)](a[_0x4821de(0x53d)])),I(0x7,a[_0x4821de(0x579)](_['RevisionService'])),I(0x8,a[_0x4821de(0x49c)]),I(0x9,a['ICommandService']),I(0xa,A[_0x4821de(0x200)]),I(0xb,a[_0x4821de(0x54c)]),I(0xc,a[_0x4821de(0x555)](Re))],exports['CollaborationEntity']),exports[_0x4821de(0x2c8)]=class extends exports[_0x4821de(0x26b)]{constructor(_0x5d31ed,_0xb64df2,_0x22640f,_0x2e46d6,_0x5e993e,_0x24163f,_0x39825b,_0x193797,_0x255dc0,_0x14164e,_0x5f1d69,_0x22c01a,_0x53a092,_0x11f69d,_0x4c3e15,_0x56a38b,_0x2d7ba7){const _0x475845=_0x4821de;super(_0x5d31ed,_0x22640f,_0xb64df2,_0x2e46d6,_0x5e993e,_0x24163f,_0x39825b,_0x193797,_0x53a092,_0x11f69d,_0x4c3e15,_0x56a38b,_0x2d7ba7),this[_0x475845(0x4ef)]=_0x5d31ed,this[_0x475845(0x3b6)]=_0xb64df2,this[_0x475845(0x3b3)]=_0x255dc0,this['_docTransformIMECacheService']=_0x14164e,this[_0x475845(0x5cb)]=_0x5f1d69,this[_0x475845(0x2b6)]=_0x22c01a;}[_0x4821de(0x522)](){const _0x39241a=_0x4821de,_0x1ff66d=super[_0x39241a(0x522)]();return _0x1ff66d[_0x39241a(0x3bc)]=_0x279917=>this[_0x39241a(0x3f0)][_0x39241a(0x610)](_0x279917),_0x1ff66d[_0x39241a(0x456)]=_0x32ab2c=>this[_0x39241a(0x5cb)][_0x39241a(0x1f9)](_0x32ab2c),_0x1ff66d[_0x39241a(0x58a)]=_0x5988b3=>this[_0x39241a(0x2b6)]['syncEditingCollabCursor'](_0x5988b3),_0x1ff66d[_0x39241a(0x29d)]=_0x582033=>this[_0x39241a(0x3f0)][_0x39241a(0x54a)](_0x582033),_0x1ff66d;}async[_0x4821de(0x402)](){const _0x18b300=_0x4821de,_0x1becca=await super[_0x18b300(0x402)]();return this[_0x18b300(0x3b3)][_0x18b300(0x285)][_0x18b300(0x2a5)](v['takeUntil'](this[_0x18b300(0x3ec)]))[_0x18b300(0x48c)](_0x5d8466=>{const _0x5cc628=_0x18b300;if(_0x5d8466==null)return;const {unitId:_0x4e2ae8,redoState:_0x383b65,commandId:_0xcf279a}=_0x5d8466;if(_0x4e2ae8!==this[_0x5cc628(0x4ef)])return;const _0x4f3742={'id':_0xcf279a,'type':a[_0x5cc628(0x36c)][_0x5cc628(0x34b)],'params':{'unitId':_0x4e2ae8,'actions':_0x383b65[_0x5cc628(0x268)],'textRanges':null}};this[_0x5cc628(0x22d)](_0x4f3742);}),_0x1becca;}},exports['DocCollaborationEntity']=ze([I(0x3,a[_0x4821de(0x579)](a['Injector'])),I(0x4,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),I(0x5,a[_0x4821de(0x579)](_['CompressMutationService'])),I(0x6,a[_0x4821de(0x579)](a[_0x4821de(0x53d)])),I(0x7,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),I(0x8,a[_0x4821de(0x579)](N[_0x4821de(0x3dc)])),I(0x9,a[_0x4821de(0x579)](fe)),I(0xa,a[_0x4821de(0x579)](pe)),I(0xb,a[_0x4821de(0x579)](qe)),I(0xc,a[_0x4821de(0x49c)]),I(0xd,a[_0x4821de(0x5a9)]),I(0xe,A[_0x4821de(0x200)]),I(0xf,a[_0x4821de(0x54c)]),I(0x10,a['Optional'](Re))],exports[_0x4821de(0x2c8)]),exports[_0x4821de(0x563)]=class extends exports[_0x4821de(0x26b)]{constructor(_0x526ba0,_0x9bc896,_0x1058c0,_0x88c9db,_0x375d4b,_0x210d06,_0xf77ab,_0x1a0f2a,_0x43e91e,_0x4602a1,_0x1d98cf,_0xa07aa,_0x56875d,_0x21e7d8){const _0x4a8f6c=_0x4821de;super(_0x526ba0,_0x1058c0,_0x9bc896,_0x88c9db,_0x375d4b,_0x210d06,_0xf77ab,_0x1a0f2a,_0x4602a1,_0x1d98cf,_0xa07aa,_0x56875d,_0x21e7d8),this[_0x4a8f6c(0x4ef)]=_0x526ba0,this[_0x4a8f6c(0x3b6)]=_0x9bc896,this[_0x4a8f6c(0x2c5)]=_0x43e91e;}[_0x4821de(0x522)](){const _0x4ff028=_0x4821de,_0x3eb20b=super[_0x4ff028(0x522)]();return _0x3eb20b['onTransformSelections']=_0x548445=>this[_0x4ff028(0x2c5)][_0x4ff028(0x1f9)](_0x548445),_0x3eb20b;}async[_0x4821de(0x402)](){const _0x4785aa=_0x4821de,_0x1b3f71=await super[_0x4785aa(0x402)]();return this[_0x4785aa(0x4b1)](this[_0x4785aa(0x2bc)][_0x4785aa(0x2df)]((_0x580142,_0x1e220b)=>{const _0x3ea5a9=_0x4785aa;if(_0x580142[_0x3ea5a9(0x3b6)]!==a[_0x3ea5a9(0x36c)][_0x3ea5a9(0x34b)]||_0x1e220b!=null&&_0x1e220b[_0x3ea5a9(0x38c)]||_0x1e220b!=null&&_0x1e220b[_0x3ea5a9(0x405)])return;const _0x4e4ef2=_0x580142[_0x3ea5a9(0x247)];if((_0x4e4ef2==null?void 0x0:_0x4e4ef2[_0x3ea5a9(0x466)])!==this[_0x3ea5a9(0x4ef)])return;const _0x29184c=_0x580142,_0x2d7e98=this[_0x3ea5a9(0x503)][_0x3ea5a9(0x3ed)][_0x3ea5a9(0x335)](this[_0x3ea5a9(0x503)][_0x3ea5a9(0x3ed)][_0x3ea5a9(0x359)]()['COMPRESS_MUTATION_SEND'])([_0x29184c],null)||[_0x29184c];this[_0x3ea5a9(0x22d)](_0x2d7e98[0x0]);})),_0x1b3f71;}},exports[_0x4821de(0x563)]=ze([I(0x3,a['Inject'](a[_0x4821de(0x2cd)])),I(0x4,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),I(0x5,a[_0x4821de(0x579)](_[_0x4821de(0x5be)])),I(0x6,a[_0x4821de(0x579)](a['LocaleService'])),I(0x7,a[_0x4821de(0x579)](_[_0x4821de(0x4e7)])),I(0x8,a[_0x4821de(0x579)](Ie)),I(0x9,a['ILogService']),I(0xa,a['ICommandService']),I(0xb,A[_0x4821de(0x200)]),I(0xc,a[_0x4821de(0x54c)]),I(0xd,a['Optional'](Re))],exports[_0x4821de(0x563)]);var qs=Object[_0x4821de(0x51a)],zs=Object[_0x4821de(0x4f8)],Js=(_0x33b993,_0x1cf871,_0x48a6eb,_0x17069d)=>{const _0x2e586e=_0x4821de;for(var _0x3e86bd=_0x17069d>0x1?void 0x0:_0x17069d?zs(_0x1cf871,_0x48a6eb):_0x1cf871,_0x404bfb=_0x33b993[_0x2e586e(0x1fe)]-0x1,_0x4e25bd;_0x404bfb>=0x0;_0x404bfb--)(_0x4e25bd=_0x33b993[_0x404bfb])&&(_0x3e86bd=(_0x17069d?_0x4e25bd(_0x1cf871,_0x48a6eb,_0x3e86bd):_0x4e25bd(_0x3e86bd))||_0x3e86bd);return _0x17069d&&_0x3e86bd&&qs(_0x1cf871,_0x48a6eb,_0x3e86bd),_0x3e86bd;},Ne=(_0x2b557f,_0x35519d)=>(_0x57a0f5,_0x421bf2)=>_0x35519d(_0x57a0f5,_0x421bf2,_0x2b557f);exports[_0x4821de(0x330)]=class extends a[_0x4821de(0x56f)]{constructor(_0x3e5ae9,_0x3ee2cf,_0x1f0059){const _0x49d814=_0x4821de;super(),u(this,_0x49d814(0x291),new Map()),u(this,_0x49d814(0x5c7),new v['Subject']()),(this[_0x49d814(0x2ac)]=_0x3e5ae9,this[_0x49d814(0x208)]=_0x3ee2cf,this[_0x49d814(0x487)]=_0x1f0059,this[_0x49d814(0x402)]());}[_0x4821de(0x442)](){const _0x322464=_0x4821de;super['dispose'](),this['_entities'][_0x322464(0x3c2)](_0x33a243=>_0x33a243[_0x322464(0x442)]()),this[_0x322464(0x291)][_0x322464(0x25a)]();}[_0x4821de(0x415)](_0x3ef046){const _0x2881a0=_0x4821de;var _0x1bad54;return(_0x1bad54=this[_0x2881a0(0x291)][_0x2881a0(0x56d)](_0x3ef046))!=null?_0x1bad54:null;}[_0x4821de(0x5dc)](_0x2f8d2a){const _0x585505=_0x4821de,_0x4474a4=this[_0x585505(0x415)](_0x2f8d2a);return _0x4474a4?v['of'](_0x4474a4):this['_entityInit$'][_0x585505(0x2a5)](E['filter'](_0x356b34=>_0x356b34['unitID']===_0x2f8d2a));}[_0x4821de(0x402)](){const _0x25925d=_0x4821de;this[_0x25925d(0x487)][_0x25925d(0x2da)](a[_0x25925d(0x22e)][_0x25925d(0x453)])[_0x25925d(0x2a5)](v[_0x25925d(0x3ba)](this['dispose$']),E['delay'](0x10))[_0x25925d(0x48c)](async _0x211a07=>{const _0x3036b8=_0x25925d,_0x346fb8=_0x211a07[_0x3036b8(0x1f7)](),_0x3fceb7=await this[_0x3036b8(0x588)](_0x346fb8,$[_0x3036b8(0x453)]);this['_entities'][_0x3036b8(0x4d0)](_0x346fb8,_0x3fceb7);}),this[_0x25925d(0x487)]['getTypeOfUnitAdded$'](a[_0x25925d(0x22e)][_0x25925d(0x5f0)])[_0x25925d(0x2a5)](v['takeUntil'](this['dispose$']),E['delay'](0x10))['pipe'](E[_0x25925d(0x341)](_0x29de11=>!_0x29de11[_0x25925d(0x1f7)]()[_0x25925d(0x37f)]('__')))[_0x25925d(0x48c)](async _0x46df57=>{const _0x11749f=_0x25925d,_0x1a6872=_0x46df57[_0x11749f(0x1f7)](),_0x3a0727=await this[_0x11749f(0x588)](_0x1a6872,$['UNIVER_DOC']);this[_0x11749f(0x291)][_0x11749f(0x4d0)](_0x1a6872,_0x3a0727);}),v[_0x25925d(0x371)](this[_0x25925d(0x487)][_0x25925d(0x528)](a[_0x25925d(0x22e)][_0x25925d(0x453)]),this[_0x25925d(0x487)][_0x25925d(0x528)](a['UniverInstanceType']['UNIVER_DOC']))[_0x25925d(0x2a5)](v[_0x25925d(0x3ba)](this['dispose$']))['subscribe'](_0x3c513b=>{const _0x320278=_0x25925d,_0x4c25b0=_0x3c513b[_0x320278(0x1f7)](),_0x1961ef=this['_entities'][_0x320278(0x56d)](_0x4c25b0);_0x1961ef&&(_0x1961ef['dispose'](),this[_0x320278(0x291)]['delete'](_0x4c25b0));});}async[_0x4821de(0x588)](_0x1e1427,_0x223d20){const _0x807531=_0x4821de,_0x753682=await this[_0x807531(0x208)]['requireSession'](_0x1e1427),_0x228887=this['_injector'][_0x807531(0x5d3)](this[_0x807531(0x4c9)](_0x223d20),_0x1e1427,_0x223d20,_0x753682);return await _0x228887[_0x807531(0x28f)](),this[_0x807531(0x5c7)][_0x807531(0x56e)](_0x228887),_0x228887;}[_0x4821de(0x4c9)](_0x193a2c){const _0x1c3ff8=_0x4821de;switch(_0x193a2c){case $['UNIVER_DOC']:return exports[_0x1c3ff8(0x2c8)];case $[_0x1c3ff8(0x453)]:return exports['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x193a2c);}}},exports['CollaborationController']=Js([Ne(0x0,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),Ne(0x1,a[_0x4821de(0x579)](exports['CollaborationSessionService'])),Ne(0x2,a[_0x4821de(0x258)])],exports[_0x4821de(0x330)]);const ct=[_0x4821de(0x3f1),_0x4821de(0x48f),_0x4821de(0x4af),'red300',_0x4821de(0x2de),_0x4821de(0x2dc)];class Je extends a[_0x4821de(0x357)]{constructor(){const _0x1054e9=_0x4821de;super(...arguments),u(this,_0x1054e9(0x589),new Map()),u(this,_0x1054e9(0x54e),0x0);}[_0x4821de(0x3fe)](_0x358efd){const _0x4a5a10=_0x4821de;if(this[_0x4a5a10(0x589)][_0x4a5a10(0x1f6)](_0x358efd))return this[_0x4a5a10(0x589)][_0x4a5a10(0x56d)](_0x358efd);const _0x345058=ct[this['_colorIndex']];return this[_0x4a5a10(0x54e)]=(this[_0x4a5a10(0x54e)]+0x1)%ct['length'],this[_0x4a5a10(0x589)][_0x4a5a10(0x4d0)](_0x358efd,_0x345058),_0x345058;}}var Zs=Object[_0x4821de(0x51a)],Qs=Object[_0x4821de(0x4f8)],ei=(_0x43ca9f,_0x42c71b,_0x5d5ea8,_0x4a70e0)=>{const _0x28b0c2=_0x4821de;for(var _0x374100=_0x4a70e0>0x1?void 0x0:_0x4a70e0?Qs(_0x42c71b,_0x5d5ea8):_0x42c71b,_0x6d87e6=_0x43ca9f[_0x28b0c2(0x1fe)]-0x1,_0x2360b2;_0x6d87e6>=0x0;_0x6d87e6--)(_0x2360b2=_0x43ca9f[_0x6d87e6])&&(_0x374100=(_0x4a70e0?_0x2360b2(_0x42c71b,_0x5d5ea8,_0x374100):_0x2360b2(_0x374100))||_0x374100);return _0x4a70e0&&_0x374100&&Zs(_0x42c71b,_0x5d5ea8,_0x374100),_0x374100;},K=(_0xd84c7e,_0x3bb978)=>(_0x5caa83,_0x3fe3e0)=>_0x3bb978(_0x5caa83,_0x3fe3e0,_0xd84c7e);const ti=0x12c,si=0x64;let ke=class extends a['RxDisposable']{constructor(_0x3c4a06,_0x2078a6,_0x54d22e,_0x3dca8e,_0x10f491,_0x285bf6,_0x2395ec,_0x13e5aa,_0x1e6b91){const _0x2cb85f=_0x4821de;super(),u(this,'_online',!0x1),u(this,_0x2cb85f(0x402),!0x1),u(this,_0x2cb85f(0x532),new v['BehaviorSubject'](new Map())),u(this,_0x2cb85f(0x4bc),this[_0x2cb85f(0x532)][_0x2cb85f(0x43a)]()),u(this,_0x2cb85f(0x28d),new v[(_0x2cb85f(0x611))]([])),u(this,_0x2cb85f(0x3c5),this[_0x2cb85f(0x28d)][_0x2cb85f(0x2a5)](v['debounceTime'](ti))),u(this,_0x2cb85f(0x346),a[_0x2cb85f(0x567)](_0x3672e8=>{const _0x2abe22=_0x2cb85f,_0x2b4984={'eventID':_[_0x2abe22(0x215)][_0x2abe22(0x30c)],'data':{'unitID':this[_0x2abe22(0x4ef)],'memberID':this[_0x2abe22(0x41e)][_0x2abe22(0x4e3)](),'selection':yt(_0x3672e8)}};this[_0x2abe22(0x41e)][_0x2abe22(0x42f)](_0x2b4984,this[_0x2abe22(0x4ef)]);},si)),(this[_0x2cb85f(0x4ef)]=_0x3c4a06,this[_0x2cb85f(0x41e)]=_0x2078a6,this[_0x2cb85f(0x2ac)]=_0x54d22e,this[_0x2cb85f(0x5e7)]=_0x3dca8e,this['_memberService']=_0x10f491,this['_syncEditingCollabCursorService']=_0x285bf6,this[_0x2cb85f(0x577)]=_0x2395ec,this[_0x2cb85f(0x487)]=_0x13e5aa,this[_0x2cb85f(0x2bc)]=_0x1e6b91);}get[_0x4821de(0x47c)](){const _0x341ccb=_0x4821de;return this[_0x341ccb(0x532)]['getValue']();}get[_0x4821de(0x3e6)](){const _0x5b9cc9=_0x4821de;return this[_0x5b9cc9(0x28d)][_0x5b9cc9(0x40b)]();}[_0x4821de(0x442)](){const _0x1ba91f=_0x4821de;super[_0x1ba91f(0x442)](),this[_0x1ba91f(0x532)][_0x1ba91f(0x56e)](new Map()),this[_0x1ba91f(0x532)]['complete'](),this['_roomMembers$'][_0x1ba91f(0x56e)]([]),this[_0x1ba91f(0x28d)]['complete']();}[_0x4821de(0x28f)](){const _0x51052e=_0x4821de;this[_0x51052e(0x402)]||(this[_0x51052e(0x402)]=!0x0,this[_0x51052e(0x41e)][_0x51052e(0x2a8)][_0x51052e(0x2a5)](v[_0x51052e(0x3ba)](this[_0x51052e(0x3ec)]))['subscribe'](_0x15f99c=>{const _0x3b8fbe=_0x51052e;_0x15f99c===H[_0x3b8fbe(0x451)]?this[_0x3b8fbe(0x31e)]():this[_0x3b8fbe(0x313)]();}),this[_0x51052e(0x41e)][_0x51052e(0x29f)][_0x51052e(0x2a5)](v[_0x51052e(0x3ba)](this[_0x51052e(0x3ec)]))[_0x51052e(0x48c)](_0x5e8e98=>{const _0x347bd3=_0x51052e,_0x23a7c0=_0x5e8e98[_0x347bd3(0x2ab)];_0x23a7c0===_[_0x347bd3(0x215)][_0x347bd3(0x30c)]&&this[_0x347bd3(0x2f7)](_0x5e8e98),_0x23a7c0===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x347bd3(0x3f7)](_0x5e8e98);}),this[_0x51052e(0x4b1)](this[_0x51052e(0x2bc)][_0x51052e(0x2df)](_0x2fefed=>{const _0x201a46=_0x51052e,_0x3b611d=_0x2fefed['params'];_0x3b611d!=null&&this['_online']&&_0x2fefed['id']===se[_0x201a46(0x33e)]['id']&&_0x3b611d[_0x201a46(0x466)]===this[_0x201a46(0x4ef)]&&_0x3b611d['isEditing']===!0x1&&this[_0x201a46(0x346)](_0x3b611d['ranges']);})),this['_syncEditingCollabCursorService'][_0x51052e(0x31f)]['pipe'](v[_0x51052e(0x3ba)](this[_0x51052e(0x3ec)]))[_0x51052e(0x48c)](_0x138c03=>{const _0x479dd7=_0x51052e;if((_0x138c03==null?void 0x0:_0x138c03[_0x479dd7(0x4ef)])!==this[_0x479dd7(0x4ef)])return;const _0x36502f={'eventID':_[_0x479dd7(0x215)]['UPDATE_CURSOR'],'data':_0x138c03};this[_0x479dd7(0x2f7)](_0x36502f);}),this[_0x51052e(0x4b1)](this['_commandService'][_0x51052e(0x2df)](_0x129154=>{const _0x390ec3=_0x51052e;if(_0x129154[_0x390ec3(0x247)]==null)return;const _0x264bae=_0x129154[_0x390ec3(0x247)];if(_0x129154['id']!==se[_0x390ec3(0x43f)]['id']||_0x264bae['unitId']!==this[_0x390ec3(0x4ef)])return;const _0x4f50c1={'id':_0x390ec3(0x297),'params':_0x264bae},_0x52fc8a=this[_0x390ec3(0x47c)];for(const [_0x376371,_0x400c57]of _0x52fc8a){const _0xaf63ea={'id':_0x390ec3(0x297),'params':{'unitId':this[_0x390ec3(0x4ef)],'actions':null,'textRanges':_0x400c57[_0x390ec3(0x5e0)]}},_0x9fd242=this['_transformService'][_0x390ec3(0x225)](_0x4f50c1,_0xaf63ea,!0x1);if(_[_0x390ec3(0x467)](_0x9fd242))throw _0x9fd242['error'];_0x52fc8a['set'](_0x376371,{..._0x400c57,'ranges':_0x9fd242['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x52fc8a);});})));}[_0x4821de(0x2f7)](_0x1d3d5f){const _0xcf27fc=_0x4821de;var _0x157814,_0x1a747e;const {memberID:_0x5bdf67,selection:_0x1bd9ec}=_0x1d3d5f[_0xcf27fc(0x434)],_0x18f21a=Hs(_0x1bd9ec),_0x1e1d05=(_0x1a747e=(_0x157814=this[_0xcf27fc(0x2ae)][_0xcf27fc(0x489)](this[_0xcf27fc(0x4ef)],_0x5bdf67))==null?void 0x0:_0x157814['name'])!=null?_0x1a747e:_0xcf27fc(0x303),_0x3e4a20={'color':this[_0xcf27fc(0x5e7)][_0xcf27fc(0x3fe)](_0x5bdf67),'name':_0x1e1d05,'ranges':_0x18f21a},_0x16e976=this[_0xcf27fc(0x47c)];_0x16e976[_0xcf27fc(0x4d0)](_0x5bdf67,_0x3e4a20),this[_0xcf27fc(0x532)][_0xcf27fc(0x56e)](_0x16e976);}['_onCursorDelete'](_0x9f1faa){const _0x2b4556=_0x4821de,{memberID:_0x3ccebc}=_0x9f1faa[_0x2b4556(0x434)],_0x401493=this[_0x2b4556(0x47c)];_0x401493[_0x2b4556(0x28c)](_0x3ccebc),this[_0x2b4556(0x532)]['next'](_0x401493);}[_0x4821de(0x31e)](){const _0x3976f1=_0x4821de;var _0x1ed554;if(this[_0x3976f1(0x393)]=!0x0,((_0x1ed554=this[_0x3976f1(0x487)][_0x3976f1(0x513)]())==null?void 0x0:_0x1ed554[_0x3976f1(0x1f7)]())!==this[_0x3976f1(0x4ef)])return;const _0x2c0b02=this[_0x3976f1(0x2ac)][_0x3976f1(0x56d)](se['DocSelectionManagerService'])[_0x3976f1(0x50e)]();Array[_0x3976f1(0x4d3)](_0x2c0b02)&&_0x2c0b02[_0x3976f1(0x1fe)]>0x0&&this[_0x3976f1(0x346)](_0x2c0b02);}[_0x4821de(0x313)](){const _0x4a407c=_0x4821de;this[_0x4a407c(0x393)]=!0x1;}};ke=ei([K(0x2,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),K(0x3,a['Inject'](Je)),K(0x4,a[_0x4821de(0x579)](q)),K(0x5,a[_0x4821de(0x579)](qe)),K(0x6,_['ITransformService']),K(0x7,a['IUniverInstanceService']),K(0x8,a[_0x4821de(0x5a9)])],ke);var ii=Object[_0x4821de(0x51a)],ni=Object[_0x4821de(0x4f8)],ri=(_0x34d9a6,_0x11dad7,_0x56d2c0,_0x225160)=>{const _0x4b355a=_0x4821de;for(var _0x219207=_0x225160>0x1?void 0x0:_0x225160?ni(_0x11dad7,_0x56d2c0):_0x11dad7,_0x3a1b9a=_0x34d9a6[_0x4b355a(0x1fe)]-0x1,_0x35f5cc;_0x3a1b9a>=0x0;_0x3a1b9a--)(_0x35f5cc=_0x34d9a6[_0x3a1b9a])&&(_0x219207=(_0x225160?_0x35f5cc(_0x11dad7,_0x56d2c0,_0x219207):_0x35f5cc(_0x219207))||_0x219207);return _0x225160&&_0x219207&&ii(_0x11dad7,_0x56d2c0,_0x219207),_0x219207;},Q=(_0x463907,_0x3992cb)=>(_0x36a816,_0x2e2b75)=>_0x3992cb(_0x36a816,_0x2e2b75,_0x463907);const oi=0x12c,ai=0x64,ci=()=>{let _0x40d06f=[],_0x40af10=!0x1;return _0x3ea9e4=>{_0x40d06f['push'](_0x3ea9e4),_0x40af10||(_0x40af10=!0x0,setTimeout(()=>{const _0x447f76=_0x370a;_0x40d06f[_0x447f76(0x3c2)](_0x59f4ce=>_0x59f4ce()),_0x40d06f=[],_0x40af10=!0x1;}));};};let Be=class extends a[_0x4821de(0x56f)]{constructor(_0x340a2c,_0x47016a,_0x45d2de,_0x5beccd,_0x4db2dd,_0x4beab6,_0x3e1690,_0xfc5647){const _0xff69=_0x4821de;super(),u(this,_0xff69(0x393),!0x1),u(this,'_init',!0x1),u(this,'_cursorInfo$',new v[(_0xff69(0x611))](new Map())),u(this,_0xff69(0x4bc),this[_0xff69(0x532)][_0xff69(0x43a)]()),u(this,_0xff69(0x28d),new v[(_0xff69(0x611))]([])),u(this,_0xff69(0x3c5),this['_roomMembers$']['pipe'](v[_0xff69(0x39e)](oi))),u(this,_0xff69(0x346),a['debounce']((_0x2918d3,_0xb7bc26)=>{const _0x4a5077=_0xff69,_0x285d1f={'eventID':_[_0x4a5077(0x215)][_0x4a5077(0x30c)],'data':{'unitID':this[_0x4a5077(0x4ef)],'memberID':this[_0x4a5077(0x41e)]['getMemberID'](),'selection':et[_0x4a5077(0x274)](_0x2918d3,_0xb7bc26[_0x4a5077(0x20e)])}};this[_0x4a5077(0x41e)][_0x4a5077(0x42f)](_0x285d1f,this[_0x4a5077(0x4ef)]);},ai)),(this[_0xff69(0x4ef)]=_0x340a2c,this[_0xff69(0x41e)]=_0x47016a,this[_0xff69(0x2ac)]=_0x45d2de,this['_colorAssignService']=_0x5beccd,this['_memberService']=_0x4db2dd,this['_univerInstanceService']=_0x4beab6,this[_0xff69(0x2bc)]=_0x3e1690,this[_0xff69(0x463)]=_0xfc5647);}get[_0x4821de(0x47c)](){const _0x17a8d9=_0x4821de;return this[_0x17a8d9(0x532)][_0x17a8d9(0x40b)]();}get[_0x4821de(0x3e6)](){const _0x2825eb=_0x4821de;return this[_0x2825eb(0x28d)][_0x2825eb(0x40b)]();}[_0x4821de(0x442)](){const _0x102dfa=_0x4821de;super[_0x102dfa(0x442)](),this['_cursorInfo$'][_0x102dfa(0x56e)](new Map()),this['_cursorInfo$'][_0x102dfa(0x56b)](),this[_0x102dfa(0x28d)]['next']([]),this[_0x102dfa(0x28d)][_0x102dfa(0x56b)]();}['init'](){const _0x5be22b=_0x4821de;this[_0x5be22b(0x402)]||(this['_init']=!0x0,this[_0x5be22b(0x41e)][_0x5be22b(0x2a8)][_0x5be22b(0x2a5)](v[_0x5be22b(0x3ba)](this[_0x5be22b(0x3ec)]))[_0x5be22b(0x48c)](_0x4d9da0=>{const _0x295c30=_0x5be22b;_0x4d9da0===H[_0x295c30(0x451)]?this['_toggleOnline']():this[_0x295c30(0x313)]();}),this[_0x5be22b(0x41e)]['event$'][_0x5be22b(0x2a5)](v['takeUntil'](this[_0x5be22b(0x3ec)]))[_0x5be22b(0x48c)](_0x3bc55d=>{const _0x4f879b=_0x5be22b,_0xadb92f=_0x3bc55d[_0x4f879b(0x2ab)];_0xadb92f===_[_0x4f879b(0x215)][_0x4f879b(0x30c)]&&this['_onCursorUpdate'](_0x3bc55d),_0xadb92f===_[_0x4f879b(0x215)][_0x4f879b(0x520)]&&this[_0x4f879b(0x3f7)](_0x3bc55d);}),this[_0x5be22b(0x290)](),this['disposeWithMe'](this['_commandService'][_0x5be22b(0x2df)](_0x21f5cc=>{const _0x4e864b=_0x5be22b;if(this[_0x4e864b(0x393)]&&_0x21f5cc['id']===C['SetSelectionsOperation']['id']&&_0x21f5cc[_0x4e864b(0x247)]['unitId']===this['unitID']){const _0x2b3a18=_0x21f5cc[_0x4e864b(0x247)];this[_0x4e864b(0x346)](_0x2b3a18[_0x4e864b(0x32d)],_0x2b3a18[_0x4e864b(0x3b2)][0x0]);}})));}[_0x4821de(0x2f7)](_0x3e668f){const _0x49a68f=_0x4821de;var _0x3110bd,_0x4a9be4;const {memberID:_0x14b5ba,selection:_0x2c330f}=_0x3e668f[_0x49a68f(0x434)],{sheetName:_0x28181a,range:_0x4ef3eb}=et['deserializeRangeWithSheet'](_0x2c330f),_0x2ed595={'name':(_0x4a9be4=(_0x3110bd=this[_0x49a68f(0x2ae)][_0x49a68f(0x489)](this[_0x49a68f(0x4ef)],_0x14b5ba))==null?void 0x0:_0x3110bd[_0x49a68f(0x32e)])!=null?_0x4a9be4:_0x49a68f(0x303),'range':this[_0x49a68f(0x3ab)](_0x28181a,_0x4ef3eb),'sheetID':_0x28181a,'color':this[_0x49a68f(0x5e7)][_0x49a68f(0x3fe)](_0x14b5ba),'selection':_0x2c330f},_0x8fb7b1=this[_0x49a68f(0x47c)];_0x8fb7b1[_0x49a68f(0x4d0)](_0x14b5ba,_0x2ed595),this[_0x49a68f(0x532)]['next'](_0x8fb7b1);}[_0x4821de(0x3f7)](_0x1758ca){const _0x1965d3=_0x4821de,{memberID:_0x223500}=_0x1758ca[_0x1965d3(0x434)],_0x1a2af8=this[_0x1965d3(0x47c)];_0x1a2af8[_0x1965d3(0x28c)](_0x223500),this['_cursorInfo$'][_0x1965d3(0x56e)](_0x1a2af8);}[_0x4821de(0x3ab)](_0x5ba69e,_0x592f9c){const _0x480db5=_0x4821de;var _0xee902d,_0x2615d1;const _0xbcfe41=(_0x2615d1=(_0xee902d=this[_0x480db5(0x487)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0xee902d['getSheetBySheetId'](_0x5ba69e))==null?void 0x0:_0x2615d1[_0x480db5(0x408)]();return(_0xbcfe41==null?void 0x0:_0xbcfe41['find'](_0x1c11d2=>a['Rectangle'][_0x480db5(0x315)](_0x1c11d2,_0x592f9c)))||_0x592f9c;}[_0x4821de(0x290)](){const _0x20419f=_0x4821de,_0x127063=new a[(_0x20419f(0x490))](),_0x4f8ffb=ci(),_0x49dbc0=()=>{const _0x204172=_0x20419f;_0x127063[_0x204172(0x442)]();const _0x5f20bb=(_0x461a1f,_0x18e358,_0x36cfa2,_0x67cfff)=>{const _0x30d0ac=_0x204172;let _0x378b7d=[];switch(_0x461a1f['id']){case C[_0x30d0ac(0x4a8)][_0x30d0ac(0x224)]:{_0x378b7d=C[_0x30d0ac(0x2f0)](_0x461a1f,_0x67cfff);break;}case C['EffectRefRangId'][_0x30d0ac(0x227)]:{_0x378b7d=C[_0x30d0ac(0x5af)](_0x461a1f,_0x67cfff);break;}case C[_0x30d0ac(0x4a8)][_0x30d0ac(0x344)]:{_0x378b7d=C[_0x30d0ac(0x4a9)](_0x461a1f,_0x67cfff);break;}case C[_0x30d0ac(0x4a8)]['InsertRangeMoveDownCommandId']:{_0x378b7d=C['handleInsertRangeMoveDown'](_0x461a1f,_0x67cfff);break;}case C[_0x30d0ac(0x4a8)]['InsertRangeMoveRightCommandId']:{_0x378b7d=C[_0x30d0ac(0x250)](_0x461a1f,_0x67cfff);break;}case C['EffectRefRangId'][_0x30d0ac(0x4c7)]:{_0x378b7d=C['handleInsertRow'](_0x461a1f,_0x67cfff);break;}case C[_0x30d0ac(0x4a8)][_0x30d0ac(0x2db)]:{_0x378b7d=C[_0x30d0ac(0x58d)](_0x461a1f,_0x67cfff);break;}case C['EffectRefRangId'][_0x30d0ac(0x4fb)]:{_0x378b7d=C[_0x30d0ac(0x459)](_0x461a1f,_0x67cfff);break;}case C['EffectRefRangId'][_0x30d0ac(0x525)]:{_0x378b7d=C[_0x30d0ac(0x53a)](_0x461a1f,_0x67cfff);break;}}const _0xeb9ea5=C[_0x30d0ac(0x304)](_0x378b7d,_0x67cfff),_0x464b59=this['cursorInfo']['get'](_0x18e358);if(_0x464b59&&_0xeb9ea5){const _0x5868ba={..._0x464b59,'range':_0xeb9ea5};this['cursorInfo']['set'](_0x18e358,_0x5868ba),_0x4f8ffb(()=>{const _0x57538a=_0x30d0ac,_0x380bcc=this[_0x57538a(0x463)][_0x57538a(0x3fd)](_0xeb9ea5,_0x5ca9f5=>(_0x380bcc[_0x57538a(0x442)](),_0x5f20bb(_0x5ca9f5,_0x18e358,_0x36cfa2,_0xeb9ea5)));_0x127063[_0x57538a(0x201)](_0x380bcc);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0xc4ac86,_0x13a9d6)=>{const _0x8b1447=_0x204172,{range:_0x2100c2,sheetID:_0xdd7f1a}=_0xc4ac86,_0x3ce736=this[_0x8b1447(0x463)][_0x8b1447(0x3fd)](_0x2100c2,_0x15686a=>(_0x3ce736[_0x8b1447(0x442)](),_0x5f20bb(_0x15686a,_0x13a9d6,_0xdd7f1a,_0x2100c2)));_0x127063[_0x8b1447(0x201)](_0x3ce736);});};this[_0x20419f(0x4b1)](a[_0x20419f(0x35f)](this['_cursorInfo$']['subscribe'](()=>{_0x49dbc0();})));}[_0x4821de(0x31e)](){const _0x1fa2d7=_0x4821de;var _0x47420d,_0x1e7dc7;if(this[_0x1fa2d7(0x393)]=!0x0,((_0x47420d=this[_0x1fa2d7(0x487)][_0x1fa2d7(0x513)]())==null?void 0x0:_0x47420d['getUnitId']())!==this[_0x1fa2d7(0x4ef)])return;const _0x4f3f3e=(_0x1e7dc7=this[_0x1fa2d7(0x2ac)]['get'](C[_0x1fa2d7(0x2a7)])[_0x1fa2d7(0x342)]())==null?void 0x0:_0x1e7dc7[0x0],_0xfe1f2f=this[_0x1fa2d7(0x487)][_0x1fa2d7(0x4f9)](a[_0x1fa2d7(0x22e)][_0x1fa2d7(0x453)])['getActiveSheet']();_0x4f3f3e&&_0xfe1f2f&&this[_0x1fa2d7(0x346)](_0xfe1f2f[_0x1fa2d7(0x370)](),_0x4f3f3e);}[_0x4821de(0x313)](){const _0x339a66=_0x4821de;this[_0x339a66(0x393)]=!0x1;}};Be=ri([Q(0x2,a['Inject'](a[_0x4821de(0x2cd)])),Q(0x3,a[_0x4821de(0x579)](Je)),Q(0x4,a[_0x4821de(0x579)](q)),Q(0x5,a[_0x4821de(0x258)]),Q(0x6,a[_0x4821de(0x5a9)]),Q(0x7,a[_0x4821de(0x579)](C[_0x4821de(0x4cd)]))],Be);var li=Object[_0x4821de(0x51a)],hi=Object[_0x4821de(0x4f8)],_i=(_0x2e2727,_0x177205,_0x93460e,_0x4f8627)=>{const _0x2a84b3=_0x4821de;for(var _0x1293c1=_0x4f8627>0x1?void 0x0:_0x4f8627?hi(_0x177205,_0x93460e):_0x177205,_0x21816e=_0x2e2727[_0x2a84b3(0x1fe)]-0x1,_0x20e521;_0x21816e>=0x0;_0x21816e--)(_0x20e521=_0x2e2727[_0x21816e])&&(_0x1293c1=(_0x4f8627?_0x20e521(_0x177205,_0x93460e,_0x1293c1):_0x20e521(_0x1293c1))||_0x1293c1);return _0x4f8627&&_0x1293c1&&li(_0x177205,_0x93460e,_0x1293c1),_0x1293c1;},Me=(_0x287508,_0x4f3883)=>(_0x3451e3,_0x578098)=>_0x4f3883(_0x3451e3,_0x578098,_0x287508);let ne=class extends a['RxDisposable']{constructor(_0x1497ce,_0x50eb63,_0x4b52ba){const _0x17fb59=_0x4821de;super(),u(this,_0x17fb59(0x291),new Map()),u(this,_0x17fb59(0x5c7),new v['Subject']()),(this[_0x17fb59(0x487)]=_0x1497ce,this[_0x17fb59(0x2ac)]=_0x50eb63,this[_0x17fb59(0x208)]=_0x4b52ba,this[_0x17fb59(0x402)]());}[_0x4821de(0x442)](){const _0x1ebf31=_0x4821de;super['dispose'](),this['_entityInit$'][_0x1ebf31(0x56b)](),this['_entities'][_0x1ebf31(0x3c2)](_0x2743c7=>_0x2743c7['dispose']());}[_0x4821de(0x2f6)](_0x20c406){const _0x356607=_0x4821de;return this['_entities'][_0x356607(0x1f6)](_0x20c406)?this[_0x356607(0x291)][_0x356607(0x56d)](_0x20c406)[_0x356607(0x4bc)]:this[_0x356607(0x5c7)][_0x356607(0x2a5)](v[_0x356607(0x341)](_0x1b7293=>_0x1b7293[_0x356607(0x4ef)]===_0x20c406),v['switchMap'](_0x46a4cc=>_0x46a4cc[_0x356607(0x4bc)]));}[_0x4821de(0x402)](){const _0xb80719=_0x4821de;this[_0xb80719(0x487)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0xb80719(0x453)])[_0xb80719(0x2a5)](v[_0xb80719(0x3ba)](this[_0xb80719(0x3ec)]))[_0xb80719(0x48c)](async _0x5476c0=>{const _0x40ad72=_0xb80719,_0x2e8376=_0x5476c0[_0x40ad72(0x1f7)](),_0x132245=await this[_0x40ad72(0x606)](_0x2e8376);this[_0x40ad72(0x5c7)][_0x40ad72(0x56e)](_0x132245),this[_0x40ad72(0x291)][_0x40ad72(0x4d0)](_0x2e8376,_0x132245);}),this[_0xb80719(0x487)][_0xb80719(0x2da)](a[_0xb80719(0x22e)][_0xb80719(0x5f0)])[_0xb80719(0x2a5)](v[_0xb80719(0x3ba)](this[_0xb80719(0x3ec)]))[_0xb80719(0x2a5)](v[_0xb80719(0x341)](_0x198a4c=>!_0x198a4c[_0xb80719(0x1f7)]()[_0xb80719(0x37f)]('__')))[_0xb80719(0x48c)](async _0x11249c=>{const _0x514cb1=_0xb80719,_0x5cc3a0=_0x11249c[_0x514cb1(0x1f7)](),_0x4ddc58=await this[_0x514cb1(0x299)](_0x5cc3a0);this[_0x514cb1(0x5c7)][_0x514cb1(0x56e)](_0x4ddc58),this[_0x514cb1(0x291)][_0x514cb1(0x4d0)](_0x5cc3a0,_0x4ddc58);}),v[_0xb80719(0x371)](this[_0xb80719(0x487)][_0xb80719(0x528)](a['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService'][_0xb80719(0x528)](a[_0xb80719(0x22e)][_0xb80719(0x453)]))[_0xb80719(0x2a5)](v[_0xb80719(0x3ba)](this[_0xb80719(0x3ec)]))['subscribe'](_0x2182ce=>{const _0x190ae3=_0xb80719,_0x9f33e3=_0x2182ce[_0x190ae3(0x1f7)](),_0x1c0fad=this[_0x190ae3(0x291)][_0x190ae3(0x56d)](_0x9f33e3);_0x1c0fad&&(_0x1c0fad['dispose'](),this[_0x190ae3(0x291)]['delete'](_0x9f33e3));});}async['_startSheetCollabCursor'](_0x361b51){const _0x4d58b7=_0x4821de,_0x49b048=await this[_0x4d58b7(0x208)][_0x4d58b7(0x277)](_0x361b51),_0x15e8e6=this['_injector'][_0x4d58b7(0x5d3)](Be,_0x361b51,_0x49b048);return _0x15e8e6[_0x4d58b7(0x28f)](),_0x15e8e6;}async[_0x4821de(0x299)](_0x224c5d){const _0x1baaef=_0x4821de,_0xe9d9cb=await this[_0x1baaef(0x208)][_0x1baaef(0x277)](_0x224c5d),_0x2f2aab=this[_0x1baaef(0x2ac)]['createInstance'](ke,_0x224c5d,_0xe9d9cb);return _0x2f2aab[_0x1baaef(0x28f)](),_0x2f2aab;}};ne=_i([Me(0x0,a[_0x4821de(0x258)]),Me(0x1,a[_0x4821de(0x579)](a['Injector'])),Me(0x2,a[_0x4821de(0x579)](exports[_0x4821de(0x3d5)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x1bec7b,_0x4480a6){const _0x1a385f=_0x4821de;let {radius:_0x452f8e,width:_0x2a0e1f,height:_0x3bc70d}=_0x4480a6;_0x452f8e=_0x452f8e!=null?_0x452f8e:0x0,_0x2a0e1f=_0x2a0e1f!=null?_0x2a0e1f:0x1e,_0x3bc70d=_0x3bc70d!=null?_0x3bc70d:0x1e;let _0x88d9a4=0x0,_0x16b103=0x0,_0x8a9496=0x0;_0x88d9a4=_0x16b103=_0x8a9496=Math['min'](_0x452f8e,_0x2a0e1f/0x2,_0x3bc70d/0x2),_0x1bec7b[_0x1a385f(0x56c)](),_0x1bec7b[_0x1a385f(0x238)](_0x88d9a4,0x0),_0x1bec7b['lineTo'](_0x2a0e1f-_0x16b103,0x0),_0x1bec7b[_0x1a385f(0x34d)](_0x2a0e1f-_0x16b103,_0x16b103,_0x16b103,Math['PI']*0x3/0x2,0x0,!0x1),_0x1bec7b[_0x1a385f(0x4e5)](_0x2a0e1f,_0x3bc70d-_0x8a9496),_0x1bec7b[_0x1a385f(0x34d)](_0x2a0e1f-_0x8a9496,_0x3bc70d-_0x8a9496,_0x8a9496,0x0,Math['PI']/0x2,!0x1),_0x1bec7b[_0x1a385f(0x4e5)](0x0,_0x3bc70d),_0x1bec7b[_0x1a385f(0x4e5)](0x0,_0x88d9a4),_0x1bec7b[_0x1a385f(0x34d)](_0x88d9a4,_0x88d9a4,_0x88d9a4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1bec7b[_0x1a385f(0x605)](),_0x4480a6[_0x1a385f(0x472)]&&(_0x1bec7b['save'](),_0x1bec7b['fillStyle']=_0x4480a6[_0x1a385f(0x472)],_0x4480a6[_0x1a385f(0x49d)]===_0x1a385f(0x4e9)?_0x1bec7b[_0x1a385f(0x472)](_0x1a385f(0x4e9)):_0x1bec7b[_0x1a385f(0x472)](),_0x1bec7b[_0x1a385f(0x4e2)]());}class Oe extends O['Shape']{constructor(_0x52a26f,_0x2a9c15){const _0x8471ba=_0x4821de;super(_0x52a26f,_0x2a9c15),u(this,_0x8471ba(0x494)),u(this,'text'),(this[_0x8471ba(0x494)]=_0x2a9c15==null?void 0x0:_0x2a9c15[_0x8471ba(0x494)],this[_0x8471ba(0x2b7)]=_0x2a9c15==null?void 0x0:_0x2a9c15[_0x8471ba(0x2b7)]);}static['drawWith'](_0x56a0d6,_0x42aa62){const _0x4dadb4=_0x4821de,{text:_0xefe3aa,color:_0x43fdfd}=_0x42aa62;_0x56a0d6[_0x4dadb4(0x50c)](),_0x56a0d6[_0x4dadb4(0x2c1)]=_0x4dadb4(0x4b4);const _0x36e030=_0x56a0d6[_0x4dadb4(0x3d3)](_0xefe3aa)[_0x4dadb4(0x430)],_0x43bacf=Math[_0x4dadb4(0x210)](_0x36e030+0x2*Ae,lt);di(_0x56a0d6,{'height':de,'radius':0x4,'width':_0x43bacf,'fill':_0x43fdfd,'evented':!0x1}),_0x56a0d6[_0x4dadb4(0x3c0)]='#FFF';const _0x39b3d2=Ae,_0x342945=de-ui,_0x2cea90=lt-0x2*Ae;if(_0x36e030>_0x2cea90){let _0xabfbb5='',_0x56a1af=0x0;for(const _0x3e6396 of _0xefe3aa){const _0x39e898=_0x56a0d6[_0x4dadb4(0x3d3)](_0x3e6396)[_0x4dadb4(0x430)];if(_0x56a1af+_0x39e898<=_0x2cea90-_0x56a0d6[_0x4dadb4(0x3d3)](_0x4dadb4(0x5b0))[_0x4dadb4(0x430)])_0xabfbb5+=_0x3e6396,_0x56a1af+=_0x39e898;else{_0xabfbb5+='...';break;}}_0x56a0d6['fillText'](_0xabfbb5,_0x39b3d2,_0x342945);}else _0x56a0d6[_0x4dadb4(0x512)](_0xefe3aa,_0x39b3d2,_0x342945);_0x56a0d6['restore']();}[_0x4821de(0x228)](_0x13f61b){Oe['drawWith'](_0x13f61b,this);}}const Le=_0x4821de(0x42b),Si=_0x4821de(0x20c),vi=_0x4821de(0x218),le=0x6,gi=1.5,je=0x4,mi=1.5,fi=_0x4821de(0x3d9);class ht{constructor(_0x251de1,_0x5446c4,_0x2fade2,_0x223cdb){const _0x3d2504=_0x4821de;u(this,'_shapes',[]),u(this,_0x3d2504(0x278),null),u(this,_0x3d2504(0x39d),null),u(this,'_anchorDot',null),u(this,_0x3d2504(0x5bd),null),u(this,_0x3d2504(0x31c),null),(this[_0x3d2504(0x462)]=_0x251de1,this[_0x3d2504(0x406)]=_0x5446c4,this[_0x3d2504(0x5c9)]=_0x2fade2,this[_0x3d2504(0x4e0)]=_0x223cdb,this[_0x3d2504(0x40a)]());}set[_0x4821de(0x223)](_0x503d7c){const _0x1c22fb=_0x4821de;_0x503d7c?(this[_0x1c22fb(0x3f3)]&&this['_anchorDot'][_0x1c22fb(0x403)](),this[_0x1c22fb(0x39d)]&&this[_0x1c22fb(0x39d)][_0x1c22fb(0x4d2)]()):(this[_0x1c22fb(0x3f3)]&&this['_anchorDot'][_0x1c22fb(0x4d2)](),this[_0x1c22fb(0x39d)]&&this[_0x1c22fb(0x39d)]['hide']());}['dispose'](){const _0x2660c6=_0x4821de;for(const _0xba156c of this[_0x2660c6(0x418)])_0xba156c[_0x2660c6(0x442)]();this[_0x2660c6(0x39d)]&&this['_textBubble'][_0x2660c6(0x442)](),this[_0x2660c6(0x3f3)]&&this['_anchorDot'][_0x2660c6(0x442)](),this['_anchor']&&this[_0x2660c6(0x278)][_0x2660c6(0x442)](),this['_eventUnsubscribe']&&this[_0x2660c6(0x31c)]();}[_0x4821de(0x40a)](){const _0x134fcd=_0x4821de;var _0x110338;const {_docSkeleton:_0x329753,_document:_0x5c6926}=this,{color:_0x555a5d,name:_0xb07a6,ranges:_0x205f30}=this[_0x134fcd(0x462)],_0x359095=_0x5c6926[_0x134fcd(0x2d7)](),{docsLeft:_0xf837c6,docsTop:_0x1e073a}=_0x359095,_0x3bd075=new N[(_0x134fcd(0x385))](_0x359095,_0x329753);for(const {startOffset:_0x2d4722,endOffset:_0x27987c,collapsed:_0x182fe3,isActive:_0x3aa2f8}of _0x205f30){const _0x2d0267=_0x329753[_0x134fcd(0x337)](_0x2d4722),_0x11138b=_0x329753['findNodePositionByCharIndex'](_0x27987c);if(_0x3aa2f8){const {contentBoxPointGroup:_0x535193}=_0x3bd075[_0x134fcd(0x458)](_0x11138b,_0x11138b);if(_0x535193[_0x134fcd(0x1fe)]===0x0)continue;this[_0x134fcd(0x26d)](_0x555a5d,_0x535193,_0xf837c6,_0x1e073a,_0xb07a6),this[_0x134fcd(0x31c)]=this[_0x134fcd(0x5b9)]();}if(!_0x182fe3&&_0x2d0267&&_0x11138b){if(N[_0x134fcd(0x47a)](_0x2d0267,_0x11138b)){const _0x5b975f=new N['NodePositionConvertToRectRange'](_0x359095,_0x329753),{pointGroup:_0x24645f}=(_0x110338=_0x5b975f[_0x134fcd(0x458)](_0x2d0267,_0x11138b))!=null?_0x110338:{};if(_0x24645f==null||_0x24645f[_0x134fcd(0x1fe)]===0x0)continue;this[_0x134fcd(0x600)](_0x555a5d,_0x24645f,_0xf837c6,_0x1e073a);}else{const {contentBoxPointGroup:_0x676752}=_0x3bd075[_0x134fcd(0x458)](_0x2d0267,_0x11138b);if(_0x676752[_0x134fcd(0x1fe)]===0x0)continue;this[_0x134fcd(0x378)](_0x555a5d,_0x676752,_0xf837c6,_0x1e073a);}}}}[_0x4821de(0x26d)](_0x4b03d6,_0x39e067,_0x23d099,_0x24eb81,_0x567c4f){const _0x4d0aea=_0x4821de,_0x42d362=this[_0x4d0aea(0x48b)](_0x39e067),{left:_0x3966f2,top:_0x4f9d11,height:_0x525a88}=_0x42d362,_0x5b0f44=this[_0x4d0aea(0x301)](),_0x3bab6b=mi/_0x5b0f44,_0x2ef268=new O['Rect'](Le+a[_0x4d0aea(0x57b)][_0x4d0aea(0x24f)](le),{'left':_0x3966f2+_0x23d099-_0x3bab6b,'top':_0x4f9d11+_0x24eb81,'height':_0x525a88,'width':gi,'fill':_0x4b03d6||O[_0x4d0aea(0x2cf)](a[_0x4d0aea(0x575)][_0x4d0aea(0x2e9)],0x0),'strokeWidth':_0x3bab6b,'stroke':fi,'evented':!0x0});this[_0x4d0aea(0x278)]=_0x2ef268,this[_0x4d0aea(0x406)][_0x4d0aea(0x350)](_0x2ef268,N['TEXT_RANGE_LAYER_INDEX']);const _0x436f7a=new O[(_0x4d0aea(0x40f))](Le+a['Tools'][_0x4d0aea(0x24f)](le),{'left':_0x3966f2+_0x23d099-_0x3bab6b,'top':_0x4f9d11+_0x24eb81-je/0x2,'height':je,'width':je,'fill':_0x4b03d6||O[_0x4d0aea(0x2cf)](a[_0x4d0aea(0x575)][_0x4d0aea(0x2e9)],0x0),'strokeWidth':0x0,'stroke':_0x4b03d6||O[_0x4d0aea(0x2cf)](a[_0x4d0aea(0x575)][_0x4d0aea(0x2e9)],0x0),'evented':!0x1});this[_0x4d0aea(0x3f3)]=_0x436f7a,this[_0x4d0aea(0x406)][_0x4d0aea(0x350)](_0x436f7a,N[_0x4d0aea(0x460)]);const _0x5730f9=new Oe(Le+a[_0x4d0aea(0x57b)][_0x4d0aea(0x24f)](le),{'left':_0x3966f2+_0x23d099-_0x3bab6b,'top':_0x4f9d11+_0x24eb81-de,'text':_0x567c4f,'color':_0x4b03d6});this[_0x4d0aea(0x39d)]=_0x5730f9,this[_0x4d0aea(0x406)][_0x4d0aea(0x350)](_0x5730f9,N[_0x4d0aea(0x460)]),this[_0x4d0aea(0x223)]=!0x1;}[_0x4821de(0x5b9)](){const _0x1ca651=_0x4821de,_0x374f6e=this[_0x1ca651(0x278)][_0x1ca651(0x498)][_0x1ca651(0x251)](()=>{this['_hover']=!0x0;}),_0x3d493c=this['_anchor'][_0x1ca651(0x369)][_0x1ca651(0x251)](()=>{const _0x2ecd41=_0x1ca651;this[_0x2ecd41(0x5bd)]&&clearTimeout(this[_0x2ecd41(0x5bd)]),this[_0x2ecd41(0x5bd)]=setTimeout(()=>{const _0x2ed992=_0x2ecd41;this[_0x2ed992(0x223)]=!0x1;},0x7d0);});return()=>{const _0x54aa6c=_0x1ca651;_0x374f6e[_0x54aa6c(0x31d)](),_0x3d493c[_0x54aa6c(0x31d)]();};}[_0x4821de(0x378)](_0x566f81,_0x41bd4a,_0x389d45,_0x4a23c4){const _0x5022a5=_0x4821de,_0x28eccb=new a[(_0x5022a5(0x4f1))](_0x566f81)[_0x5022a5(0x45e)](0.2)[_0x5022a5(0x3a3)](),_0x2a8b8e=new O[(_0x5022a5(0x334))](Si+a[_0x5022a5(0x57b)][_0x5022a5(0x24f)](le),{'pointsGroup':_0x41bd4a,'fill':_0x28eccb||O[_0x5022a5(0x2cf)](a[_0x5022a5(0x575)][_0x5022a5(0x2e9)],0.2),'left':_0x389d45,'top':_0x4a23c4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5022a5(0x418)][_0x5022a5(0x25b)](_0x2a8b8e),this[_0x5022a5(0x406)][_0x5022a5(0x350)](_0x2a8b8e,N['TEXT_RANGE_LAYER_INDEX']);}[_0x4821de(0x600)](_0x144b9f,_0x13419b,_0x239943,_0x14f5f0){const _0x20aac9=_0x4821de,_0xd167aa=new a[(_0x20aac9(0x4f1))](_0x144b9f)[_0x20aac9(0x45e)](0.2)[_0x20aac9(0x3a3)](),_0x51e846=new O[(_0x20aac9(0x334))](vi+a[_0x20aac9(0x57b)]['generateRandomId'](le),{'pointsGroup':_0x13419b,'fill':_0xd167aa||O[_0x20aac9(0x2cf)](a[_0x20aac9(0x575)][_0x20aac9(0x2e9)],0.2),'left':_0x239943,'top':_0x14f5f0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20aac9(0x418)][_0x20aac9(0x25b)](_0x51e846),this['_scene'][_0x20aac9(0x350)](_0x51e846,N[_0x20aac9(0x460)]);}['_getAnchorBounding'](_0xcf7d53){const _0x1c0b7b=_0xcf7d53[0x0],_0x1e28c3=_0x1c0b7b[0x0],_0x21b87b=_0x1c0b7b[0x2],{x:_0x3529b0,y:_0x1ad7e6}=_0x1e28c3,{x:_0x2215e4,y:_0x8483dd}=_0x21b87b;return{'left':_0x3529b0,'top':_0x1ad7e6,'width':_0x2215e4-_0x3529b0,'height':_0x8483dd-_0x1ad7e6};}[_0x4821de(0x301)](){const _0x551133=_0x4821de,{scaleX:_0x309bd5,scaleY:_0xcbda42}=this[_0x551133(0x406)][_0x551133(0x214)]();return Math['max'](_0x309bd5,_0xcbda42);}}var Ii=Object[_0x4821de(0x51a)],pi=Object[_0x4821de(0x4f8)],Ci=(_0x274949,_0x19c360,_0x5b280a,_0x4fc60e)=>{const _0x1542c8=_0x4821de;for(var _0x2a1376=_0x4fc60e>0x1?void 0x0:_0x4fc60e?pi(_0x19c360,_0x5b280a):_0x19c360,_0x3403f1=_0x274949[_0x1542c8(0x1fe)]-0x1,_0x5936a9;_0x3403f1>=0x0;_0x3403f1--)(_0x5936a9=_0x274949[_0x3403f1])&&(_0x2a1376=(_0x4fc60e?_0x5936a9(_0x19c360,_0x5b280a,_0x2a1376):_0x5936a9(_0x2a1376))||_0x2a1376);return _0x4fc60e&&_0x2a1376&&Ii(_0x19c360,_0x5b280a,_0x2a1376),_0x2a1376;},ve=(_0x481f8b,_0x5a04d9)=>(_0x2fcd8b,_0x5577d2)=>_0x5a04d9(_0x2fcd8b,_0x5577d2,_0x481f8b);let Ve=class extends a[_0x4821de(0x56f)]{constructor(_0x42b0db,_0x1c2808,_0x96c0dc,_0x20eb8d,_0x2323e1){const _0xc09ba4=_0x4821de;super(),u(this,_0xc09ba4(0x332),[]),u(this,_0xc09ba4(0x38e),[]),(this[_0xc09ba4(0x2e7)]=_0x42b0db,this['_docSkeletonManagerService']=_0x1c2808,this['_collabCursorController']=_0x96c0dc,this[_0xc09ba4(0x2bc)]=_0x20eb8d,this[_0xc09ba4(0x59d)]=_0x2323e1,this[_0xc09ba4(0x402)]());}[_0x4821de(0x402)](){const _0x5306b9=_0x4821de,_0x3dc180=this[_0x5306b9(0x2e7)][_0x5306b9(0x466)],_0x320050=this[_0x5306b9(0x614)];this[_0x5306b9(0x4b1)](v[_0x5306b9(0x53f)]([this[_0x5306b9(0x3fa)][_0x5306b9(0x2f6)](_0x3dc180),this[_0x5306b9(0x59d)]['currentTheme$']])['pipe'](E[_0x5306b9(0x27e)](([_0x4c540a,_0x45f7c6])=>({'skeleton':_0x320050[_0x5306b9(0x431)](),'cursors':[..._0x4c540a[_0x5306b9(0x5fa)]()][_0x5306b9(0x242)](_0x2e45ee=>({..._0x2e45ee,'color':_0x45f7c6[_0x2e45ee[_0x5306b9(0x494)]]}))})))[_0x5306b9(0x48c)](_0x2c67fd=>{const _0x3544f7=_0x5306b9;if(this[_0x3544f7(0x338)](),_0x2c67fd){const {skeleton:_0x2dfd3b,cursors:_0x272e5f}=_0x2c67fd;this[_0x3544f7(0x22f)](_0x2dfd3b,_0x272e5f);}})),this[_0x5306b9(0x2d5)](),this[_0x5306b9(0x3a1)]();}[_0x4821de(0x22f)](_0x4ac01b,_0x10dd99){const _0x572d69=_0x4821de,{scene:_0x158a32,mainComponent:_0x74825a}=this[_0x572d69(0x2e7)],_0x41c7ad=_0x10dd99[_0x572d69(0x27e)](_0x3938f6=>new ht(_0x3938f6,_0x158a32,_0x4ac01b,_0x74825a));this['_cursorShapes']=_0x41c7ad,this[_0x572d69(0x38e)]=_0x10dd99;}[_0x4821de(0x3a0)](){const _0xef9d92=_0x4821de;this[_0xef9d92(0x338)]();const {scene:_0x22e71b,mainComponent:_0x3d1490}=this['_context'],_0xb6c7c1=this[_0xef9d92(0x614)][_0xef9d92(0x431)](),_0x1590ac=this[_0xef9d92(0x38e)][_0xef9d92(0x27e)](_0x13a4f0=>new ht(_0x13a4f0,_0x22e71b,_0xb6c7c1,_0x3d1490));this[_0xef9d92(0x332)]=_0x1590ac;}[_0x4821de(0x338)](){const _0x3ea038=_0x4821de;this['_cursorShapes'][_0x3ea038(0x3c2)](_0x389a20=>_0x389a20[_0x3ea038(0x442)]()),this[_0x3ea038(0x332)]=[];}[_0x4821de(0x3a1)](){const _0xf8fb59=_0x4821de,_0x4fe18a=[N['SetDocZoomRatioOperation']['id']];this[_0xf8fb59(0x4b1)](this[_0xf8fb59(0x2bc)][_0xf8fb59(0x2df)](_0x1aa26a=>{const _0x1d465b=_0xf8fb59;_0x4fe18a[_0x1d465b(0x3be)](_0x1aa26a['id'])&&_0x1aa26a[_0x1d465b(0x247)][_0x1d465b(0x466)]===this['_context'][_0x1d465b(0x466)]&&this[_0x1d465b(0x3a0)]();}));}[_0x4821de(0x2d5)](){const _0x2d68a8=_0x4821de;this[_0x2d68a8(0x4b1)](a['fromEventSubject'](this[_0x2d68a8(0x2e7)][_0x2d68a8(0x586)]['onTransformChange$'])[_0x2d68a8(0x2a5)](E[_0x2d68a8(0x341)](_0x4df9f7=>_0x4df9f7[_0x2d68a8(0x3b6)]===O['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),E['throttleTime'](0x10))[_0x2d68a8(0x48c)](()=>{const _0x1dac07=_0x2d68a8;this[_0x1dac07(0x3a0)]();}));}};Ve=Ci([ve(0x1,a[_0x4821de(0x579)](se[_0x4821de(0x4a2)])),ve(0x2,a['Inject'](ne)),ve(0x3,a[_0x4821de(0x5a9)]),ve(0x4,a[_0x4821de(0x579)](a['ThemeService']))],Ve);const Ei=0x1,bi=1.5;class Pt extends O['Shape']{constructor(_0x35cfcb,_0x436afb){const _0x2198df=_0x4821de;super(_0x35cfcb,_0x436afb),u(this,'_color'),u(this,_0x2198df(0x508),!0x1),u(this,_0x2198df(0x279)),u(this,_0x2198df(0x377),''),u(this,_0x2198df(0x36f),_0x2198df(0x3c1)),u(this,_0x2198df(0x52a)),(_0x436afb&&this[_0x2198df(0x3cf)](_0x436afb),this[_0x2198df(0x498)][_0x2198df(0x251)](()=>this[_0x2198df(0x3cf)]({'hovered':!0x0})),this[_0x2198df(0x369)]['subscribeEvent'](()=>this[_0x2198df(0x3cf)]({'hovered':!0x1})));}[_0x4821de(0x3cf)](_0x1a5d5f){const _0x43be82=_0x4821de;var _0x5997b8,_0x263b59,_0x2d2cb4,_0x1deb8e,_0xf4dc1c,_0x51a2a6;this[_0x43be82(0x39b)]=(_0x5997b8=_0x1a5d5f[_0x43be82(0x494)])!=null?_0x5997b8:this[_0x43be82(0x39b)],this['_hovered']=(_0x263b59=_0x1a5d5f[_0x43be82(0x36b)])!=null?_0x263b59:this[_0x43be82(0x508)],this[_0x43be82(0x279)]=(_0x2d2cb4=_0x1a5d5f[_0x43be82(0x20e)])!=null?_0x2d2cb4:this[_0x43be82(0x279)],this['_name']=(_0x1deb8e=_0x1a5d5f[_0x43be82(0x32e)])!=null?_0x1deb8e:this[_0x43be82(0x377)],this[_0x43be82(0x36f)]=(_0xf4dc1c=_0x1a5d5f['labelPosition'])!=null?_0xf4dc1c:this[_0x43be82(0x36f)],this[_0x43be82(0x52a)]=(_0x51a2a6=_0x1a5d5f['backgroundColor'])!=null?_0x51a2a6:this[_0x43be82(0x52a)],this[_0x43be82(0x452)]({'width':_0x1a5d5f[_0x43be82(0x430)],'height':_0x1a5d5f[_0x43be82(0x61e)]});}[_0x4821de(0x5a6)](_0x545094){const _0x54f00f=_0x4821de,{row:_0x269185,column:_0x2d0fd1}=_0x545094;if(_0x269185>=this[_0x54f00f(0x279)][_0x54f00f(0x592)]&&_0x269185<=this[_0x54f00f(0x279)][_0x54f00f(0x293)]&&_0x2d0fd1>=this['_range']['startColumn']&&_0x2d0fd1<=this[_0x54f00f(0x279)][_0x54f00f(0x53e)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x54f00f(0x3cf)]({'hovered':!0x1});}[_0x4821de(0x514)](_0x529f65){return!0x1;}[_0x4821de(0x228)](_0x269f6a){const _0x141e6f=_0x4821de;O['Rect'][_0x141e6f(0x40e)](_0x269f6a,{'width':this[_0x141e6f(0x430)],'height':this[_0x141e6f(0x61e)],'strokeWidth':bi,'stroke':this[_0x141e6f(0x39b)],'evented':!0x1,'fill':this[_0x141e6f(0x52a)]}),this['_hovered']&&(_0x269f6a[_0x141e6f(0x50c)](),_0x269f6a[_0x141e6f(0x4b6)](0x1,0x0,0x0,0x1,this['width'],this[_0x141e6f(0x36f)]===_0x141e6f(0x2a6)?0x0:-de),Oe['drawWith'](_0x269f6a,{'text':this[_0x141e6f(0x377)],'color':this[_0x141e6f(0x39b)]}),_0x269f6a[_0x141e6f(0x4e2)]());}}var Ti=Object['defineProperty'],Ri=Object[_0x4821de(0x4f8)],Oi=(_0x31a6e9,_0x1fe470,_0x13412f,_0x3f2694)=>{const _0x94d6f5=_0x4821de;for(var _0xd670a1=_0x3f2694>0x1?void 0x0:_0x3f2694?Ri(_0x1fe470,_0x13412f):_0x1fe470,_0x207524=_0x31a6e9[_0x94d6f5(0x1fe)]-0x1,_0x654c43;_0x207524>=0x0;_0x207524--)(_0x654c43=_0x31a6e9[_0x207524])&&(_0xd670a1=(_0x3f2694?_0x654c43(_0x1fe470,_0x13412f,_0xd670a1):_0x654c43(_0xd670a1))||_0xd670a1);return _0x3f2694&&_0xd670a1&&Ti(_0x1fe470,_0x13412f,_0xd670a1),_0xd670a1;},$e=(_0x117d47,_0x264d85)=>(_0x5992e5,_0xe6d7af)=>_0x264d85(_0x5992e5,_0xe6d7af,_0x117d47);const Di=0x1389;let We=class extends a[_0x4821de(0x56f)]{constructor(_0x5cb822,_0x350b50,_0xc429c8,_0x37bd0f){const _0x4d94ed=_0x4821de;super(),u(this,'_cursors',new Set()),u(this,_0x4d94ed(0x447),null),(this['_context']=_0x5cb822,this[_0x4d94ed(0x424)]=_0x350b50,this[_0x4d94ed(0x3fa)]=_0xc429c8,this['_themeService']=_0x37bd0f,this[_0x4d94ed(0x402)]());}[_0x4821de(0x402)](){const _0x56b01a=_0x4821de;this[_0x56b01a(0x424)]['currentSkeleton$'][_0x56b01a(0x2a5)](E['takeUntil'](this['dispose$']),E[_0x56b01a(0x365)](_0xc0474=>{const _0x5efb95=_0x56b01a;if(_0xc0474){const _0x129c42=_0xc0474[_0x5efb95(0x585)];return v[_0x5efb95(0x53f)](this[_0x5efb95(0x3fa)]['getCollabCursors$'](this[_0x5efb95(0x2e7)][_0x5efb95(0x466)]),this[_0x5efb95(0x59d)][_0x5efb95(0x4fc)])[_0x5efb95(0x2a5)](E['map'](([_0x5dd723,_0x484d0b])=>{const _0x5e549d=new Map();return _0x5dd723['forEach']((_0x252839,_0x5c6139)=>{const _0x268bbe=_0x370a;if(_0x252839[_0x268bbe(0x5cc)]===_0x129c42){const _0x5e894a={..._0x252839};_0x5e894a[_0x268bbe(0x494)]=_0x484d0b[_0x252839['color']],_0x5e549d[_0x268bbe(0x4d0)](_0x5c6139,_0x5e894a);}}),{'skeleton':_0xc0474,'cursors':_0x5e549d};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x56b01a(0x48c)](({skeleton:_0x17e760,cursors:_0x9428c})=>{const _0x1e3036=_0x56b01a;this['_removeCollabCursors'](),_0x17e760&&this[_0x1e3036(0x22f)](_0x17e760,_0x9428c);}),this[_0x56b01a(0x424)][_0x56b01a(0x4be)]['subscribe'](_0x5ce71d=>{const _0x177bfe=_0x56b01a;if(_0x5ce71d==null)return;const {skeleton:_0x1d6b29}=_0x5ce71d,{scene:_0x1f9246}=this[_0x177bfe(0x2e7)];_0x1f9246[_0x177bfe(0x256)]['subscribeEvent'](a[_0x177bfe(0x567)](_0x2998b5=>{const _0x58bd35=_0x177bfe;var _0x5e2ad3,_0x25c572;const {offsetX:_0x5b4bad,offsetY:_0x33d482}=_0x2998b5,{x:_0x323c6b,y:_0x3fa1ab}=_0x1f9246[_0x58bd35(0x39f)](O['Vector2']['FromArray']([_0x5b4bad,_0x33d482])),{scaleX:_0x4dfae7,scaleY:_0x5c24b4}=_0x1f9246[_0x58bd35(0x214)](),_0x1729f0=_0x1f9246[_0x58bd35(0x504)](te['VIEWPORT_KEY']['VIEW_MAIN']),_0x25984c=_0x1f9246[_0x58bd35(0x4ec)](O['Vector2']['FromArray']([_0x323c6b,_0x3fa1ab]),_0x1729f0),_0x3a86ac=_0x1d6b29[_0x58bd35(0x5c8)](_0x5b4bad,_0x33d482,_0x4dfae7,_0x5c24b4,_0x25984c);((_0x5e2ad3=this[_0x58bd35(0x447)])==null?void 0x0:_0x5e2ad3[_0x58bd35(0x3b7)])===_0x3a86ac[_0x58bd35(0x3b7)]&&((_0x25c572=this[_0x58bd35(0x447)])==null?void 0x0:_0x25c572[_0x58bd35(0x2e0)])===_0x3a86ac[_0x58bd35(0x2e0)]||this[_0x58bd35(0x38e)][_0x58bd35(0x3c2)](_0x1c51f8=>{const _0x185111=_0x58bd35;_0x1c51f8[_0x185111(0x5a6)](_0x3a86ac);});},0x64));});}[_0x4821de(0x22f)](_0x3cac50,_0x3bd1a8){const _0x36e745=_0x4821de;var _0x728e54;const _0x3a256f=(_0x728e54=this[_0x36e745(0x424)][_0x36e745(0x230)]())==null?void 0x0:_0x728e54[_0x36e745(0x412)];if(!_0x3a256f)return;const _0x3a5224=this['_getSheetObject']();if(!_0x3a5224)return;this['_cursors'][_0x36e745(0x3c2)](_0x308027=>{const _0x144261=_0x36e745;_0x308027[_0x144261(0x580)]();});const {scene:_0x2ba0cf}=_0x3a5224,_0x5856b3=yi(Array[_0x36e745(0x2a4)](_0x3bd1a8[_0x36e745(0x5fa)]()))[_0x36e745(0x27e)](_0x2e5aa4=>{const _0x2fe1a0=_0x36e745,{color:_0x201cc5,range:_0x25ba39,name:_0x23cf5e,selection:_0x1cf96d,sheetID:_0xd06421}=_0x2e5aa4,{startColumn:_0x2b5767,startRow:_0x56e397,endColumn:_0x1240a5,endRow:_0x424b04}=_0x25ba39,_0x20c239=te['getCoordByCell'](_0x56e397,_0x2b5767,_0x2ba0cf,_0x3a256f),_0x6bfee4=te['getCoordByCell'](_0x424b04,_0x1240a5,_0x2ba0cf,_0x3a256f),{columnHeaderHeightAndMarginTop:_0x41d3ae}=_0x3a256f,{startX:_0x5d097b,startY:_0x4d6978}=_0x20c239,{endX:_0x1ffb7c,endY:_0x247450}=_0x6bfee4,_0x590ff5=_0x1ffb7c-_0x5d097b,_0x2d10bd=_0x247450-_0x4d6978,_0x115d4c={'labelPosition':_0x4d6978-_0x41d3ae>=de?_0x2fe1a0(0x3c1):_0x2fe1a0(0x2a6),'sheetID':_0xd06421,'range':_0x25ba39,'color':_0x201cc5,'name':_0x23cf5e,'selection':_0x1cf96d,'left':_0x5d097b,'top':_0x4d6978,'width':_0x590ff5,'height':_0x2d10bd,'evented':!0x1,'zIndex':Di};return new Pt(_0x23cf5e,_0x115d4c);});_0x2ba0cf['addObjects'](_0x5856b3,Ei),this[_0x36e745(0x38e)]=new Set(_0x5856b3);}[_0x4821de(0x338)](){const _0x4db745=_0x4821de;var _0x141d85;(_0x141d85=this[_0x4db745(0x38e)])==null||_0x141d85[_0x4db745(0x3c2)](_0x557d58=>_0x557d58[_0x4db745(0x442)]());}[_0x4821de(0x35c)](){const _0x48962b=_0x4821de;return te[_0x48962b(0x389)](this[_0x48962b(0x2e7)]['unit'],this[_0x48962b(0x2e7)]);}};We=Oi([$e(0x1,a['Inject'](te[_0x4821de(0x372)])),$e(0x2,a[_0x4821de(0x579)](ne)),$e(0x3,a[_0x4821de(0x579)](a[_0x4821de(0x202)]))],We);function _0x5af9(){const _0x3e6996=['_getAnchorBounding','subscribe','_clearUndo','IContextService','jiqing500','DisposableCollection','unit-cache-','message$','_retryConnectingTimer','color','17256PpNWpS','telemetry\x20info\x20is\x20not\x20initialized','[FetchMissState]','onPointerEnter$','RETRY_CONNECTING_MAX_COUNT','_removeRoom','_setupSubUnitSync','ILogService','fillRule','status','responseType','awaiting','_onConnectionOpen','DocSkeletonManagerService','[PendingState]:\x20received\x20rejection.','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','COMPRESS_MUTATION_APPLY','_sendHeartbeatTimer','call','EffectRefRangId','handleInsertCol','BASE64','[OfflineState]:\x20received\x20changeset.','_throwTelemetryCollaborationNewChangeset','_lockTransition','change$','verdancy600','[CollaborationSessionService]','disposeWithMe','onRemoteChangeset','AUTHZ_URL_KEY','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_members','transform','_registerDependencies','split','_onUserLeave','catch','PSEUDO_FETCH_MISSING_RESULT','cursorInfo$','YUUMI_RATE_OVER_LIMIT','currentSkeleton$','_event$','UNRECOGNIZED','/universer-api/snapshot','setUndoRedoMutationParamsCache','authzUrl','off-line-single','commentUpdate$','LocalCacheService','InsertRowCommandId','defs','_getCtorByUniverType','CONNECTOR_DATA_TOO_LARGE','open$','XHRHTTPImplementation','RefRangeService','originalMeta','IDLE','set','_socketReady','show','isArray','x-univer-host','toggleOnline','reduce','entries','_initUnitPermissionChange','transformChangesets','\x20in\x20_schedule.','url(#off-line-single_clip0_910_343)','socket\x20close','objectActions','onMissedChangesetFetched','_acknowledgedAwaitingChangeset','_document','LICENSE_MAX_UNITS_EXCEEDED','restore','getMemberID','INTERNAL_ERROR','lineTo','_status$','RevisionService','_initRequestHeader','evenodd','listRoles','_cachedData','getVpScrollXYInfoByPosToVp','create','find','unitID','_unitID','ColorKit','distinctUntilChanged','_socket','state','downloadEndpointUrl','SEND_CHANGESET_TIMEOUT','urlChange$','getOwnPropertyDescriptor','getCurrentUnitForType','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','RemoveColCommandId','currentTheme$','LICENSE_DISTRO_REJECTED','LIVESHARE_REQUEST_HOST','submit\x20changeset\x20error!','round','_onMessage','_snapshotService','_compressMutationService','getViewport','_getLoginPath','_commentService','getSheetBlock','_hovered','_scheduleHeartbeat','_scheduleTimestamp','_queuedRemoteChangesets','save','_replaceFileID','getDocRanges','permissionRejEvent','_substituteRedoStack','close$','fillText','getFocusedUnit','triggerDblclick','update','LIVESHARE_OPERATION','updateCollaborator','_unitOnClients','_configService','defineProperty','getUnhiddenWorksheets','_exhaustRemoteChangesetQueue','setActiveRange','_onConflict','mapDocumentTypeToUniverType','USERS_LEAVE','_id','_createHandler','shareReplay','/new_changes','RemoveRowCommandId','SUCCUSS','collabStatus.fetchMiss','getTypeOfUnitDisposed$','5MbmRHl','_backgroundColor','_candidateSocket','random','current','[DataLoaderController]','/object/','20834CpVLEv','_updateStatus','_cursorInfo$','collaboration.single-unit.warning','parseProtocolChangeset','liveShareOperation','_updateLocalCache','setCurrentUser','HTTPService','connectInjector','handleIRemoveRow','textRanges','/rev/','LocaleService','endColumn','combineLatest','toString','collabStatus.syncing','CHANGESET_REVISION_CONFILICT','APPLY_PERMISSION_DENIED','UnitSnapshot','enableOfflineEditing','with','currentColor','all','[OfflineState]:\x20received\x20acknowledgement.','transformRemoteChangeset','[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.','IPermissionService','routeKey','_colorIndex','unit','registerComponent','visibilitychange','LOGIN_URL_KEY','_shouldReportTelemetry','ImageUploadStatusType','Optional','SetSelectionsOperation','[PendingState]:\x20received\x20acknowledgement.','result','sheets','_revisionService','_isPermissionRej','workbook','isTransformChangesetsSuccess','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','useRef','awaitingChangeset','title','_getSendChangesetTimeout','SheetCollaborationEntity','setParam','EmptyMutation','members','debounce','incrementRevOfUnit','JOIN','Error','complete','beginPath','get','next','RxDisposable','sendChangesetTimeout','uni.network.url-service','loadOfflineData','translate(.97)','&assign=','COLORS','toggleOffline','_transformService','IHTTPImplementation','Inject','createCollaborator','Tools','image/bmp','YUUMI_URL_COL_OUT_OF_RANGE','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','makeDirty','_type','_showConflictNotification','_getCurrentRevision','@univerjs/docs','sheetId','engine','readAsDataURL','_startCollaboration','_assignedColors','onSyncEditingCollabCursor','icon','_initStatusComponent','handleMoveRange','collabWebSocketUrl','editingUnit','_pendingMutations','pushState','startRow','univerjs-icon\x20univerjs-icon-','_socketMessageSubscription','JSONX','SNAPSHOT_URL_KEY','defIds','Tooltip','_localStorageService','on-line-single','[CollaborationSessionService]:\x20socket\x20error','[SyncedState]:\x20received\x20acknowledgement.','_themeService','getRandomValues','_collaborationController','LocalUndoRedoService','b64DecodeUnicode','_unlockTransition','permission.title','stopTime','getUnitOnRev','onMouseMove','_decreaseWaiting','0\x200\x2017\x2016','ICommandService','conflict.title','_initModules','parseChangesetToProtocol','take','DEFAULT_FILE_NAME','handleDeleteRangeMoveUp','...','_sendHeartbeat','_getSignURL','joinRsp','useDependency','initWorkbookPermissionChange','_transformRemoteChangesetByIMECache','removeMember','[OfflineState]:\x20received\x20rejection.','_handleHover','session.will-retry','textEncoder','_collaborationTimeoutTimer','_hideTimer','CompressMutationService','target','pending','size','PERMISSION_DENIED','onSendChangeset','collabStatus.notCollab','/block/','state$','_entityInit$','getCellPositionByOffset','_docSkeleton','onStateChange','_docTransformSelectionsService','sheetID','children','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_beforeCloseService','LIVESHARE_NEW_HOST','JOINING','removeParam','createInstance','image/png','_HTTPService','getRenderById','fetch_missing','unshift','UNKNOWN_CMD','editing\x20status\x20changed\x20to','_clearOtherTimers','getCollabEntity$','NO_OTHER_CLIENTS_EDITING','colorChannel1','path','ranges','_commentUpdate$','userID','save\x20fail\x20reason\x20is\x20','_stopTelemetryCollaborationNewChangeset','_singleActiveUnitService','batchAllowed','_colorAssignService','transformStack\x20failed!','getUnit','not_collab','univer-offline','SNAPSHOT_SERVER_URL_KEY','encodeURIComponent','error','&source=','UNIVER_DOC','APPLY_NON_SEQUENTIAL_REVISION','_sendingTimer','useCallback','parse','loginUrlKey','memberID','href','_clearRedo','collaboration-client.offline-data-not-saved','values','SheetPermissionInitController','_initMergeInterceptor','LEAVE','getParam','SnapshotServerOverHTTPService','_drawRectRange','_saveTaskMap','disposeUnit','slice','_handler','closePath','_startSheetCollabCursor','loadDoc','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','NEW_CHANGESETS','fetchMiss','WorkbookEditablePermission','_transformPreviousActiveRange','/universer-api/file/{fileID}/sign-url','HEARTBEAT_TIMEOUT_KEY','_createSocket','transformIMECache','BehaviorSubject','collaboration-session-retry','deepClone','_docSkeletonManagerService','UNIVER_PROJECT','_urlService','clipPath','indexOf','@univerjs/rpc','pauseCollaboration','_startTelemetryCollaborationNewChangeset','updatePermissionPoint','_http','height','/resources','getCurrentRevOfUnit','location','prototype','object','has','getUnitId','tag','transformSelections','_getUploadFileURL','patch','_disabled','[CollaborationUndoRedoService]','length','LICENSE_EXPORT_SIZE_EXCEEDED','IMessageService','add','ThemeService','_sessionStatus$','leaveEvent','_socketService','rng','_initStatusListener','_collabSessionService','transformMutationsWithChangeset','bind','7bTrYmJ','collab-text-range-','\x0aAfter:\x20','range','_transformUndoRedoStack','min','image/jpg','resourceIDs','_notificationService','getAncestorScale','CollaborationEvent','deleteCollaborator','M0\x200H16V16H0z','collab-rect-range-','registerHTTPInterceptor','selection','COMMENT_UPDATE','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','PERMISSION_REJ','_getDownloadEndpointURL','duration','getActiveSheet','objects','0\x200\x2016\x2016','_hover','DeleteRangeMoveLeftCommandId','transformMutation','InsertSheetMutation','DeleteRangeMoveUpCommandId','_draw','synced','setItem','DocIMEInputManagerService','_sessions','_onLocalMutation','UniverInstanceType','_updateCollabCursors','getCurrent','_getSnapshotAPIPrefix','m1Prime','debug','/allowed','_submitChangeset','key','_onUserJoin','moveTo','collaborators','APPLY_DUPLICATED','createIdentifier','ERROR_IMAGE_TYPE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','LOCAL_CACHE_INTERVAL','close','getLatestCsReqIdBySid','_registerRenderDependencies','flatMap','_updateState','_logService','_onRemoteACK','csAckEvent','params','ThresholdInterceptorFactory','off-line-single_clip0_910_343','IRenderManagerService','_executeRemoteChangeset','_roomMembers','[CollaborationSession]','@univerjs-pro/collaboration','generateRandomId','handleInsertRangeMoveRight','subscribeEvent','_onOffline','_imageSourceCache','Univer','ITelemetryService','onPointerMove$','_state','IUniverInstanceService','session','clear','push','IUIPartsService','MSG_FOR_ERROR','HEARTBEAT_INTERVAL','UNIVER_COLLABORATION_CLIENT_PLUGIN','getImage','history','LIVESHARE_FETCH_OPERATIONS','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','_undoRedoService','collabSubmitChangesetUrl','OFFLINE','/fetchmissing?from=','actions','onCommentUpdate','YUUMI_UNABLE_LOAD_URL','CollaborationEntity','assign','_drawAnchor','IImageIoService','_userManagerService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','COLLAB_WEB_SOCKET_URL','number','Workbook','serializeRangeWithSheet','_syncEditingCollabCursor','INGEST','requireSession','_anchor','_range','createSocket','CollaborationSession','RECV','closeSession','map','\x0aCurrent:\x20','_changesetSessionId','LIVESHARE_TERMINATE','joinEvent','useObservable','onReady','docStateChange$','univer-online-status-icon','_tryEnsureSocket','commentUpdateEvent','USERS_ENTER','UPDATE_PERMISSION_OBJ','_localeService','delete','_roomMembers$','changesets','init','_onRefRangeChange','_entities','IBeforeCloseService','endRow','_remoteChangesetQueue','ENSURE_SNAPSHOT_EXECUTION','getAttachHeader','doc.mutation.rich-text-editing','UNDEFINED','_startDocCollabCursor','COLLAB_SUBMIT_CHANGESET_URL_KEY','ILocalStorageService','_getAPIPrefix','onTransformRemoteChangesetByIMECache','DesktopCollaborationStatusDisplayController','event$','objectType','_httpService','Subject','_clearLocalCache','from','pipe','bottom','SheetsSelectionsService','sessionStatus$','_instanceService','onlineStatusIcon','eventID','_injector','[SyncedState]:\x20received\x20rejection.','_memberService','COMPLETION_FINISHED','UNKNOWN_CODE','_onRecvEvent','_getUndoStack','ERROR_IMAGE','exhaustSavingTask','updateOfflineData','_docSyncEditingCollabCursorService','text','getUnitType','/-/object/-/batch_allowed','_change$','TOO_MANY_REQUESTS','_commandService','_listenToOfflineEvent','collabStatus.synced','updatePermissionObjEvent','CONFLICT','font','mutations','_send','getOwnPropertySymbols','_sheetTransformSelectionsService','univer-pro.collaboration-client.single-active-unit-service','ITransformService','DocCollaborationEntity','/collaborator','CommentService','UnitEmbedded','getUnitStatus$','Injector','getConfig','getColor','APPLY_REVISION_CONFILICT','focused$','_removeClearOtherTimer','OnLineSingle','reqId','_initResize','append','getOffsetConfig','apply','_updateSubUnitFromURLParams','getTypeOfUnitAdded$','MoveRangeCommandId','gold400','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','blue400','onCommandExecuted','row','ERROR_EXCEED_SIZE','514887EPiqcA','_clearTimeoutTimer','RETRY_CONNECTING_MAX_COUNT_KEY','Error\x20on\x20receiving\x20event','UNAUTHENTICATED','_context','unknown','black','_saveCache','objectID','collaMsg','10rryCJT','putCollaborators','react','handleDeleteRangeMoveLeft','isTransformMutationsWithChangesetSuccess','_uiPartsService','updateCursorEvent','_collaborationPaused','univer-online','getCollabCursors$','_onCursorUpdate','none','NOT_COLLAB','startTime','forwardRef','_socket$','getRoom','_transformIMECache','POST','file','_getScale','getSheetBySheetId','Unknown\x20user','runRefRangeMutations','_onJoinRoomEvent','replace','session.connection-failed','HEARTBEAT_TIMEOUT','m2Prime','_replayCachedMutations','requestParams','UPDATE_CURSOR','mapTo','createElement','_createInitialState','_handleEvent','_transformUndoredo','getWorkbookSelections','_toggleOffline','_getRedoStack','contains','AWAITING_WITH_PENDING','setConfig','SYNCED','_onConnectionFailed','_handleHeartbeatEvent','url(#on-line-single_clip0_910_349)','_eventUnsubscribe','unsubscribe','_toggleOnline','collabCursorState$','_collabCursorState$','_awaitingChangeset','csRejEvent','/role','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','HELLO','action','image/jpeg','SUBMIT_CHANGESET','_config','CHANGESET_ACK','newValue','_ws','subUnitId','name','_localCacheService','CollaborationController','_substituteUndoStack','_cursorShapes','attrs','RegularPolygon','fetchThroughInterceptors','CollaborationStatus','findNodePositionByCharIndex','_removeCollabCursors','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','Warning','isTransformMutationsWithChangesetFailure','online','ws://127.0.0.1:8000/universer-api/comb/connect','SetTextSelectionsOperation','getItem','getUndoRedoMutationParamsCache','filter','getCurrentSelections','connection\x20error','InsertColCommandId','status$','_updateLocalCursor','some','HEARTBEAT','_telemetryService','roles','MUTATION','_checkMissing','arc','UNIVER_SLIDE','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','addObject','/object','concatMap','xlink:href','string','FAIL','sessionStatus','Disposable','cmd','getInterceptPoints','addEventListener','error$','_getSheetObject','430akDAUY','SNAPSHOT_INVALID_SNAPSHOT','toDisposable','conflict','code','c1Prime','trim','permission.content','switchMap','ImageIoService','mergeOverrideWithDependencies','_permissionService','onPointerLeave$','div','hovered','CommandType','listCollaborators','/universer-api/comb','_labelPosition','getSheetId','merge','SheetSkeletonManagerService','_transformSelections','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','clearTimeout','infoRsp','_name','_drawTextRange','then','syncEditingCollabCursor','_handleLeaveEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','HttpExport','SetWorksheetActivateCommand','startsWith','appendMutation','_scheduleClearOtherTimer','4078250MdDWat','searchParams','failed\x20to\x20apply\x20missed\x20changesets!','NodePositionConvertToCursor','storage','UNIVER_UNKNOWN','_onFetchMissResult','getSheetObject','signUrlServerUrl','fetchMissingChangesets','fromCollab','onRemoteRej','_cursors','saveSnapshot','HttpImport','ALREADY_EXISTS','_tryReconnect','_online','[UniverCollaborationClientPlugin]','replaceState','_renderManagerService','_unitStatus','socketService','onStarting','disableLocalCache','_color','SHOULD_CLOSE_CONN','_textBubble','debounceTime','getRelativeToViewportCoord','_refreshCollabCursors','_initCommandExecutedListener','HEADER_MENU','toRgbString','randomUUID','_ensureSubject','NOT_FOUND','post','concat','revision','enableSingleActiveInstanceLock','_getMergeRange','_initEventListeners','hidden','univer-online-status','OffLineSingle','svg','enableLocalCache','selections','_docStateChangeManagerService','capture','setTimeout','type','column','now','_createInitialStateImpl','takeUntil','_applyRemoteChangeset','onTransformIME','updateMember','includes','AWAITING','fillStyle','top','forEach','YUUMI_SUBSCRIPTION_NOT_FOUND','IUndoRedoService','roomMembers$','pluginName','fromEvent','INVALID_ARGUMENT','_collaborationSessionService','_onCombEvent','_messageService','idSuffix','getResourcesRequest','1em','setShapeProps','#fff','onlineStatusTitle','sequenceExecute','measureText','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','CollaborationSessionService','1790433LaMEBX','_fetchMissChangesets','FETCH_MISSING','rgba(255,\x20255,\x20255,\x200.01)','CHANGESET_REJ','put','DocStateChangeManagerService','@univerjs/network','resend','hasOwnProperty','@univerjs/engine-formula','rev','socket$','getImageSourceCache','760520vwxiqw','_disableEditing','roomMembers','reconnect','setInterval','isPermissionRej','_onRemoteRejected','onMissingChangesets','dispose$','interceptor','SnapshotService','popstate','_docTransformIMECacheService','purple300','DocSelectionManagerService','_anchorDot','liveShareNewHost','newCsEvent','_initCloseConn','_onCursorDelete','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_transformStack','_collabCursorController','OTHER_CLIENTS_EDITING','_scheduleSaving','registerRefRange','assignAColorForMemberID','?size=','@univerjs/engine-render','image/gif','_init','hide','Module','onlyLocal','_scene','conflict.content','getMergeData','_joinRoom','_render','getValue','_getAPIPrefixPath','_waitCount','drawWith','Rect','@univerjs/sheets-ui','_selfUnitIDs','skeleton','uploadFileServerUrl','url','getCollabEntity','isActive','_scheduleCollaborationTimeoutTimer','_shapes','fetching\x20missing\x20changesets\x20from\x20','localeService','_changesetReqId','registerRenderModule','?url=','_session','Plugin','FileId','clearInterval','_heartbeatTimer','extend','_sheetSkeletonManagerService','_clearScheduledTask','univer-pro.collaboration-client-socket-service','visibilityState','_transitionLocked','override','_loadSheet','collab-text-anchor-','getCurrentUser','body','_schedule','send','width','getSkeleton','socket\x20open.','getDeserializedSheetBlock','data','AuthzIoHttpService','DataLoaderController','_loadDoc','touchDependencies','SessionStatus','asObservable','[CollaborationState]:\x20apply\x20error!','MessageType','copyFileMeta','on-line-single_clip0_910_349','RichTextEditingMutation','_timeoutTimer','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','dispose','toLowerCase','collaboration.closeRoom','isInternalEditorID','_telemetryInfo','_lastPointer','_snapshotServerService','subunit','ISnapshotServerService','SheetCollabCursorShape','encode','_incrementRevisionNumber','onRemoteAck','stringify','PENDING','ONLINE','transformByState','UNIVER_SHEET','collaboration_new_changeset','substring','onTransformSelections','/-/object/list','getRangePointData','handleIRemoveCol','UniverCollaborationClientPlugin','CollaborationStatusDisplay','awaiting_with_pending','@univerjs/drawing','setAlpha','1366980owVOAu','TEXT_RANGE_LAYER_INDEX','executeCommand','_cursor','_refRangeService','_clearHeartbeatTimer','snapshotServerUrl','unitId','isTransformMutationFailure','_setupBeforeClosingHandler','displayName','SEND_CHANGESET_TIMEOUT_KEY','shouldCloseConn','symbol','/unit/','_state$','_retryCount','replaceTextRanges','_getSaveTimeout','fill','sid','ACTIVE_UNIT_EVENT_CHANNEL','ImageSourceType','max','SNAPSHOT_HAS_BEEN_REMOVED','offline','_rescheduleHeartbeat','isValidRectRange','onRendered','cursorInfo','LICENSE_IMPORT_SIZE_EXCEEDED','[CollaborationEntity]','UserManagerService','_undoStacks','UniverCollaborationPlugin','IConfigService','APPLY_REJECT','baseRev','CollaborationSocketService','_updateURLWithCurrentState','_univerInstanceService','snapshot','getMember','reject'];_0x5af9=function(){return _0x3e6996;};return _0x5af9();}function yi(_0x4c147f){const _0x91c431=_0x4821de,_0x3a5ab3=new Map();return _0x4c147f['forEach'](_0xcf7f9f=>{const _0x54807c=_0x370a;if(_0x3a5ab3[_0x54807c(0x1f6)](_0xcf7f9f[_0x54807c(0x21a)])){const _0xfe54e3=_0x3a5ab3[_0x54807c(0x56d)](_0xcf7f9f[_0x54807c(0x21a)]);_0xfe54e3[_0x54807c(0x32e)]+=',\x20'+_0xcf7f9f[_0x54807c(0x32e)];}else _0x3a5ab3[_0x54807c(0x4d0)](_0xcf7f9f[_0x54807c(0x21a)],_0xcf7f9f);}),Array['from'](_0x3a5ab3[_0x91c431(0x5fa)]());}var M=function(){const _0x5bb206=_0x4821de;return M=Object[_0x5bb206(0x26c)]||function(_0x42ec68){const _0x1411d1=_0x5bb206;for(var _0x41c7b7,_0x98168c=0x1,_0x3ce8ed=arguments[_0x1411d1(0x1fe)];_0x98168c<_0x3ce8ed;_0x98168c++){_0x41c7b7=arguments[_0x98168c];for(var _0x18f321 in _0x41c7b7)Object['prototype'][_0x1411d1(0x3df)]['call'](_0x41c7b7,_0x18f321)&&(_0x42ec68[_0x18f321]=_0x41c7b7[_0x18f321]);}return _0x42ec68;},M[_0x5bb206(0x2d8)](this,arguments);},Ui=function(_0x33ae6a,_0x29e25a){const _0x486ddf=_0x4821de;var _0x184621={};for(var _0x1cd7a2 in _0x33ae6a)Object[_0x486ddf(0x1f4)][_0x486ddf(0x3df)][_0x486ddf(0x4a7)](_0x33ae6a,_0x1cd7a2)&&_0x29e25a[_0x486ddf(0x618)](_0x1cd7a2)<0x0&&(_0x184621[_0x1cd7a2]=_0x33ae6a[_0x1cd7a2]);if(_0x33ae6a!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x161f9c=0x0,_0x1cd7a2=Object[_0x486ddf(0x2c4)](_0x33ae6a);_0x161f9c<_0x1cd7a2['length'];_0x161f9c++)_0x29e25a['indexOf'](_0x1cd7a2[_0x161f9c])<0x0&&Object[_0x486ddf(0x1f4)]['propertyIsEnumerable'][_0x486ddf(0x4a7)](_0x33ae6a,_0x1cd7a2[_0x161f9c])&&(_0x184621[_0x1cd7a2[_0x161f9c]]=_0x33ae6a[_0x1cd7a2[_0x161f9c]]);}return _0x184621;},Ze=P['forwardRef'](function(_0x2b0ad5,_0x97efc2){const _0x513b1e=_0x4821de;var _0x5e161e=_0x2b0ad5[_0x513b1e(0x58b)],_0x326b79=_0x2b0ad5['id'],_0x42cf4a=_0x2b0ad5['className'],_0x4ad397=_0x2b0ad5[_0x513b1e(0x423)],_0x527faa=Ui(_0x2b0ad5,[_0x513b1e(0x58b),'id','className',_0x513b1e(0x423)]),_0x2173c9=_0x513b1e(0x593)['concat'](_0x326b79,'\x20')[_0x513b1e(0x3a8)](_0x42cf4a||'')[_0x513b1e(0x363)](),_0x28b862=P[_0x513b1e(0x55f)]('_'[_0x513b1e(0x3a8)](Ni()));return wt(_0x5e161e,''[_0x513b1e(0x3a8)](_0x326b79),{'defIds':_0x5e161e[_0x513b1e(0x597)],'idSuffix':_0x28b862[_0x513b1e(0x52d)]},M({'ref':_0x97efc2,'className':_0x2173c9},_0x527faa),_0x4ad397);});function wt(_0x513f1c,_0x7c89d7,_0x52b6da,_0x7e589a,_0x1502d3){const _0x2d4b65=_0x4821de;return P['createElement'](_0x513f1c[_0x2d4b65(0x1f8)],M(M({'key':_0x7c89d7},Pi(_0x513f1c,_0x52b6da,_0x1502d3)),_0x7e589a),(wi(_0x513f1c,_0x52b6da)[_0x2d4b65(0x5cd)]||[])[_0x2d4b65(0x27e)](function(_0x45a20e,_0x69dc67){const _0x4f42d9=_0x2d4b65;return wt(_0x45a20e,''[_0x4f42d9(0x3a8)](_0x7c89d7,'-')['concat'](_0x513f1c[_0x4f42d9(0x1f8)],'-')['concat'](_0x69dc67),_0x52b6da,void 0x0,_0x1502d3);}));}function Pi(_0x1cd6dd,_0x296f27,_0x1838f6){const _0x49364d=_0x4821de;var _0x1594a2=M({},_0x1cd6dd[_0x49364d(0x333)]);_0x1838f6!=null&&_0x1838f6[_0x49364d(0x5de)]&&_0x1594a2[_0x49364d(0x472)]===_0x49364d(0x5de)&&(_0x1594a2['fill']=_0x1838f6['colorChannel1']);var _0x25a8a3=_0x296f27['defIds'];return!_0x25a8a3||_0x25a8a3['length']===0x0||(_0x1cd6dd[_0x49364d(0x1f8)]==='use'&&_0x1594a2[_0x49364d(0x353)]&&(_0x1594a2['xlink:href']=_0x1594a2['xlink:href']+_0x296f27[_0x49364d(0x3cc)]),Object[_0x49364d(0x4d7)](_0x1594a2)[_0x49364d(0x3c2)](function(_0x521ffc){const _0x3115f3=_0x49364d;var _0x3ba4d2=_0x521ffc[0x0],_0x2f4bb7=_0x521ffc[0x1];typeof _0x2f4bb7==_0x3115f3(0x354)&&(_0x1594a2[_0x3ba4d2]=_0x2f4bb7[_0x3115f3(0x306)](/url\(#(.*)\)/,'url(#$1'[_0x3115f3(0x3a8)](_0x296f27[_0x3115f3(0x3cc)],')')));})),_0x1594a2;}function wi(_0xf7022f,_0x246b89){const _0xe2795a=_0x4821de;var _0x315928,_0x193a7b=_0x246b89[_0xe2795a(0x597)];return!_0x193a7b||_0x193a7b[_0xe2795a(0x1fe)]===0x0?_0xf7022f:_0xf7022f[_0xe2795a(0x1f8)]==='defs'&&(!((_0x315928=_0xf7022f['children'])===null||_0x315928===void 0x0)&&_0x315928[_0xe2795a(0x1fe)])?M(M({},_0xf7022f),{'children':_0xf7022f[_0xe2795a(0x5cd)][_0xe2795a(0x27e)](function(_0x4781f2){const _0x42774a=_0xe2795a;return typeof _0x4781f2[_0x42774a(0x333)]['id']==_0x42774a(0x354)&&_0x193a7b&&_0x193a7b['indexOf'](_0x4781f2[_0x42774a(0x333)]['id'])>-0x1?M(M({},_0x4781f2),{'attrs':M(M({},_0x4781f2[_0x42774a(0x333)]),{'id':_0x4781f2[_0x42774a(0x333)]['id']+_0x246b89[_0x42774a(0x3cc)]})}):_0x4781f2;})}):_0xf7022f;}function Ni(){const _0xe9caf5=_0x4821de;return Math[_0xe9caf5(0x52c)]()[_0xe9caf5(0x540)](0x24)[_0xe9caf5(0x455)](0x2,0x8);}Ze[_0x4821de(0x469)]='UniverIcon';var Mi={'tag':_0x4821de(0x3b0),'attrs':{'fill':_0x4821de(0x2f8),'viewBox':_0x4821de(0x222),'width':_0x4821de(0x3ce),'height':_0x4821de(0x3ce)},'children':[{'tag':'g','attrs':{'clipPath':_0x4821de(0x4db)},'children':[{'tag':'path','attrs':{'stroke':_0x4821de(0x547),'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':'round','strokeWidth':1.2}}]},{'tag':_0x4821de(0x4c8),'attrs':{},'children':[{'tag':_0x4821de(0x617),'attrs':{'id':_0x4821de(0x249)},'children':[{'tag':'path','attrs':{'fill':_0x4821de(0x3d0),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4821de(0x249)]},Nt=P[_0x4821de(0x2fb)](function(_0x2a3d99,_0xc98788){const _0x57e2c3=_0x4821de;return P[_0x57e2c3(0x30e)](Ze,Object[_0x57e2c3(0x26c)]({},_0x2a3d99,{'id':_0x57e2c3(0x4c4),'ref':_0xc98788,'icon':Mi}));});Nt[_0x4821de(0x469)]=_0x4821de(0x3af);var Ai={'tag':_0x4821de(0x3b0),'attrs':{'fill':_0x4821de(0x2f8),'viewBox':_0x4821de(0x5a8),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4821de(0x31b)},'children':[{'tag':_0x4821de(0x5df),'attrs':{'stroke':'currentColor','d':_0x4821de(0x263),'strokeLinecap':_0x4821de(0x500),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4821de(0x4c8),'attrs':{},'children':[{'tag':_0x4821de(0x617),'attrs':{'id':_0x4821de(0x43e)},'children':[{'tag':_0x4821de(0x5df),'attrs':{'fill':_0x4821de(0x3d0),'d':_0x4821de(0x217),'transform':_0x4821de(0x573)}}]}]}],'defIds':[_0x4821de(0x43e)]},Mt=P[_0x4821de(0x2fb)](function(_0x4c403d,_0x1e7555){const _0x5233c0=_0x4821de;return P[_0x5233c0(0x30e)](Ze,Object[_0x5233c0(0x26c)]({},_0x4c403d,{'id':_0x5233c0(0x59a),'ref':_0x1e7555,'icon':Ai}));});Mt[_0x4821de(0x469)]=_0x4821de(0x2d3);function At(_0xa6a66a){const _0x5254cb=_0x4821de;var _0x21ba72,_0x46c6ed,_0x3b537e='';if(typeof _0xa6a66a==_0x5254cb(0x354)||typeof _0xa6a66a==_0x5254cb(0x272))_0x3b537e+=_0xa6a66a;else{if(typeof _0xa6a66a==_0x5254cb(0x1f5)){if(Array[_0x5254cb(0x4d3)](_0xa6a66a)){var _0x2ce443=_0xa6a66a['length'];for(_0x21ba72=0x0;_0x21ba72<_0x2ce443;_0x21ba72++)_0xa6a66a[_0x21ba72]&&(_0x46c6ed=At(_0xa6a66a[_0x21ba72]))&&(_0x3b537e&&(_0x3b537e+='\x20'),_0x3b537e+=_0x46c6ed);}else{for(_0x46c6ed in _0xa6a66a)_0xa6a66a[_0x46c6ed]&&(_0x3b537e&&(_0x3b537e+='\x20'),_0x3b537e+=_0x46c6ed);}}}return _0x3b537e;}function Li(){const _0x2a8400=_0x4821de;for(var _0x9d99e7,_0x582cb5,_0x5ad935=0x0,_0xf0d19e='',_0x5f6f6=arguments[_0x2a8400(0x1fe)];_0x5ad935<_0x5f6f6;_0x5ad935++)(_0x9d99e7=arguments[_0x5ad935])&&(_0x582cb5=At(_0x9d99e7))&&(_0xf0d19e&&(_0xf0d19e+='\x20'),_0xf0d19e+=_0x582cb5);return _0xf0d19e;}const ji=_0x4821de(0x286),$i='univer-online-status-title',Hi=_0x4821de(0x3ae),xi=_0x4821de(0x2f5),ki=_0x4821de(0x5eb),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x5cda37){const _0x3b34a6=_0x4821de;switch(_0x5cda37){case U[_0x3b34a6(0x266)]:return'collabStatus.offline';case U[_0x3b34a6(0x2c0)]:return'collabStatus.conflict';case U['FETCH_MISS']:return _0x3b34a6(0x527);case U[_0x3b34a6(0x2f9)]:return _0x3b34a6(0x5c4);case U[_0x3b34a6(0x450)]:case U[_0x3b34a6(0x3bf)]:case U[_0x3b34a6(0x316)]:return _0x3b34a6(0x541);case U[_0x3b34a6(0x318)]:return _0x3b34a6(0x2be);}}function Lt(_0x2bcc54){const _0x52182a=_0x4821de,{status$:_0x36f106}=_0x2bcc54,_0x11b314=A[_0x52182a(0x283)](_0x36f106,U[_0x52182a(0x2f9)]),_0x4c3ad2=a['useDependency'](a[_0x52182a(0x53d)]),_0x51a385=a[_0x52182a(0x5b4)](exports['CollaborationSessionService']),_0x2d6758=_0x11b314!==U[_0x52182a(0x266)],_0x12c43d=_0x4c3ad2['t'](Bi(_0x11b314)),_0x321721=Li(he['onlineStatus'],{[he[_0x52182a(0x33c)]]:_0x2d6758,[he['offline']]:!_0x2d6758}),_0x88e2bf=_0x2d6758?P['createElement'](Mt,null):P[_0x52182a(0x30e)](Nt,null),_0x3be103=P[_0x52182a(0x5f3)](()=>{_0x2d6758||_0x51a385['reconnect']();},[_0x2d6758,_0x51a385]);function _0x5c0271(){const _0x557792=_0x52182a;return P['createElement']('div',{'className':_0x321721,'onClick':_0x3be103},P[_0x557792(0x30e)](_0x557792(0x36a),{'className':he[_0x557792(0x2aa)]},_0x88e2bf),P['createElement'](_0x557792(0x36a),{'className':he[_0x557792(0x3d1)]},_0x12c43d));}return _0x2d6758?_0x5c0271():P[_0x52182a(0x30e)](X[_0x52182a(0x598)],{'title':_0x4c3ad2['t']('collab-client.tooltip.reconnect')},_0x5c0271());}var Vi=Object['defineProperty'],Wi=Object[_0x4821de(0x4f8)],Fi=(_0x259f4d,_0x51bb98,_0x57e89e,_0x3658f2)=>{const _0x1b68e6=_0x4821de;for(var _0x2e3a85=_0x3658f2>0x1?void 0x0:_0x3658f2?Wi(_0x51bb98,_0x57e89e):_0x51bb98,_0x4a6169=_0x259f4d[_0x1b68e6(0x1fe)]-0x1,_0xded0ae;_0x4a6169>=0x0;_0x4a6169--)(_0xded0ae=_0x259f4d[_0x4a6169])&&(_0x2e3a85=(_0x3658f2?_0xded0ae(_0x51bb98,_0x57e89e,_0x2e3a85):_0xded0ae(_0x2e3a85))||_0x2e3a85);return _0x3658f2&&_0x2e3a85&&Vi(_0x51bb98,_0x57e89e,_0x2e3a85),_0x2e3a85;},ge=(_0x424191,_0x4cb1bb)=>(_0x58916b,_0x34b773)=>_0x4cb1bb(_0x58916b,_0x34b773,_0x424191);exports[_0x4821de(0x29e)]=class extends a[_0x4821de(0x357)]{constructor(_0x1948fe,_0x1fcabe,_0x51b6b3,_0x11866d){const _0x25af29=_0x4821de;super(),u(this,_0x25af29(0x4e6),new v['BehaviorSubject'](U[_0x25af29(0x2f9)])),(this['_univerInstanceService']=_0x1948fe,this[_0x25af29(0x2f2)]=_0x1fcabe,this[_0x25af29(0x2ac)]=_0x51b6b3,this[_0x25af29(0x59f)]=_0x11866d,this['_initStatusComponent'](),this[_0x25af29(0x207)]());}[_0x4821de(0x207)](){const _0x1f06b8=_0x4821de;this[_0x1f06b8(0x4b1)](this[_0x1f06b8(0x487)][_0x1f06b8(0x2d1)][_0x1f06b8(0x2a5)](v[_0x1f06b8(0x365)](()=>{const _0x4fd754=_0x1f06b8,_0x2607e0=this[_0x4fd754(0x487)]['getFocusedUnit']();return _0x2607e0?this[_0x4fd754(0x59f)][_0x4fd754(0x5dc)](_0x2607e0[_0x4fd754(0x1f7)]()):v['of'](null);}),v[_0x1f06b8(0x365)](_0x351f45=>_0x351f45?_0x351f45[_0x1f06b8(0x345)]:v['of'](U['NOT_COLLAB'])))[_0x1f06b8(0x48c)](_0x37b64c=>{const _0x38bae3=_0x1f06b8;this[_0x38bae3(0x4e6)][_0x38bae3(0x56e)](_0x37b64c);}));}[_0x4821de(0x58c)](){const _0xdca39=_0x4821de;this[_0xdca39(0x4b1)](this[_0xdca39(0x2f2)][_0xdca39(0x550)](A['BuiltInUIPart'][_0xdca39(0x3a2)],()=>a[_0xdca39(0x539)](Gi({'status$':this[_0xdca39(0x4e6)][_0xdca39(0x43a)]()}),this['_injector'])));}},exports[_0x4821de(0x29e)]=Fi([ge(0x0,a[_0x4821de(0x258)]),ge(0x1,A[_0x4821de(0x25c)]),ge(0x2,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),ge(0x3,a['Inject'](exports['CollaborationController']))],exports[_0x4821de(0x29e)]);function Gi(_0x2b9895){const {status$:_0x263b8b}=_0x2b9895;return function(){const _0x998fae=_0x370a;return P[_0x998fae(0x30e)](Lt,{'status$':_0x263b8b});};}const Qe=a[_0x4821de(0x23b)](_0x4821de(0x571));var Yi=Object[_0x4821de(0x51a)],Ki=Object['getOwnPropertyDescriptor'],Xi=(_0x3cfdec,_0x19ed07,_0x465e87,_0x61f222)=>{const _0x3abc9b=_0x4821de;for(var _0x44e404=_0x61f222>0x1?void 0x0:_0x61f222?Ki(_0x19ed07,_0x465e87):_0x19ed07,_0x875d8f=_0x3cfdec[_0x3abc9b(0x1fe)]-0x1,_0x14e8d3;_0x875d8f>=0x0;_0x875d8f--)(_0x14e8d3=_0x3cfdec[_0x875d8f])&&(_0x44e404=(_0x61f222?_0x14e8d3(_0x19ed07,_0x465e87,_0x44e404):_0x14e8d3(_0x44e404))||_0x44e404);return _0x61f222&&_0x44e404&&Yi(_0x19ed07,_0x465e87,_0x44e404),_0x44e404;},ee=(_0x49d97d,_0x2063bc)=>(_0x17d394,_0x14eb43)=>_0x2063bc(_0x17d394,_0x14eb43,_0x49d97d);exports[_0x4821de(0x436)]=class extends a[_0x4821de(0x56f)]{constructor(_0x1d9a93,_0x5795e9,_0x3bc521,_0x4324d6,_0x1fe5f5,_0xf4c057){const _0x494c11=_0x4821de;super(),this[_0x494c11(0x616)]=_0x1d9a93,this['_logService']=_0x5795e9,this['_commandService']=_0x3bc521,this[_0x494c11(0x32f)]=_0x4324d6,this[_0x494c11(0x502)]=_0x1fe5f5,_0xf4c057?_0xf4c057==null||_0xf4c057['whenReady']()[_0x494c11(0x379)](()=>this[_0x494c11(0x402)]()):(this[_0x494c11(0x244)][_0x494c11(0x233)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x494c11(0x402)]());}async['_init'](){const _0x5169fe=_0x4821de,_0x43136c=this[_0x5169fe(0x616)][_0x5169fe(0x5fe)](_0x5169fe(0x54f)),_0x28320c=this['_urlService']['getParam'](_0x5169fe(0x3b6));if(!_0x43136c||!_0x28320c){this[_0x5169fe(0x244)]['debug'](_0x5169fe(0x52e),_0x5169fe(0x2dd));return;}switch(Number(_0x28320c)){case $[_0x5169fe(0x453)]:{const _0x300dbd=await this[_0x5169fe(0x42a)](_0x43136c);this[_0x5169fe(0x49b)](_0x300dbd);break;}case $[_0x5169fe(0x5f0)]:{await this[_0x5169fe(0x437)](_0x43136c);break;}default:{this[_0x5169fe(0x244)]['error'](_0x5169fe(0x52e),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async['_setupSubUnitSync'](_0x39d3c4){const _0x40ffea=_0x4821de;await this[_0x40ffea(0x2d9)](_0x39d3c4),_0x39d3c4['activeSheet$']['pipe'](v[_0x40ffea(0x3ba)](this[_0x40ffea(0x3ec)]))[_0x40ffea(0x48c)](_0x5be7ff=>{const _0x4e91e6=_0x40ffea;_0x5be7ff&&this[_0x4e91e6(0x486)](_0x5be7ff);}),this[_0x40ffea(0x616)][_0x40ffea(0x4f7)][_0x40ffea(0x2a5)](v[_0x40ffea(0x3ba)](this[_0x40ffea(0x3ec)]))[_0x40ffea(0x48c)](()=>this[_0x40ffea(0x2d9)](_0x39d3c4));}[_0x4821de(0x486)](_0xb1ec99,_0xea8b26=!0x1){const _0x3814de=_0x4821de,_0x29fc30=this[_0x3814de(0x616)]['getParam'](_0x3814de(0x449));_0xb1ec99[_0x3814de(0x370)]()!==_0x29fc30&&this[_0x3814de(0x616)][_0x3814de(0x564)](_0x3814de(0x449),_0xb1ec99[_0x3814de(0x370)](),_0xea8b26);}async[_0x4821de(0x2d9)](_0x553243){const _0x55fa03=_0x4821de;var _0x5b2ae6;const _0x281969=this[_0x55fa03(0x616)]['getParam'](_0x55fa03(0x449));if(!_0x281969||!_0x553243[_0x55fa03(0x302)](_0x281969)){const _0x33f634=_0x553243[_0x55fa03(0x51b)]()[0x0],_0x380caf=_0x553243[_0x55fa03(0x302)](_0x33f634);if(!_0x380caf)return;this[_0x55fa03(0x486)](_0x380caf,!0x0),await this[_0x55fa03(0x2bc)]['executeCommand'](C[_0x55fa03(0x37e)]['id'],{'unitId':_0x553243[_0x55fa03(0x1f7)](),'subUnitId':_0x33f634});return;}((_0x5b2ae6=_0x553243['getActiveSheet']())==null?void 0x0:_0x5b2ae6[_0x55fa03(0x370)]())!==_0x281969&&await this[_0x55fa03(0x2bc)][_0x55fa03(0x461)](C[_0x55fa03(0x37e)]['id'],{'unitId':_0x553243[_0x55fa03(0x1f7)](),'subUnitId':_0x281969});}async[_0x4821de(0x42a)](_0xc3ea8f){const _0x4f634e=_0x4821de;let _0x224d31=0x0;const _0x2b899b=await this[_0x4f634e(0x32f)][_0x4f634e(0x572)](_0xc3ea8f);return _0x2b899b&&(_0x2b899b[_0x4f634e(0x560)]||_0x2b899b[_0x4f634e(0x2c2)]['length']!==0x0)&&(_0x224d31=_0x2b899b[_0x4f634e(0x3e1)]),_0x224d31===0x0&&this[_0x4f634e(0x244)][_0x4f634e(0x233)]('[DataLoaderController]',_0x4f634e(0x21c)),this[_0x4f634e(0x502)]['loadSheet'](_0xc3ea8f,_0x224d31);}async[_0x4821de(0x437)](_0x18fb6e){const _0x1a2b16=_0x4821de;let _0x302c82=0x0;const _0x4d1e0f=await this[_0x1a2b16(0x32f)]['loadOfflineData'](_0x18fb6e);return _0x4d1e0f&&(_0x4d1e0f['awaitingChangeset']||_0x4d1e0f['mutations']['length']!==0x0)&&(_0x302c82=_0x4d1e0f[_0x1a2b16(0x3e1)]),_0x302c82===0x0&&this['_logService'][_0x1a2b16(0x233)]('[DataLoaderController]',_0x1a2b16(0x21c)),this[_0x1a2b16(0x502)][_0x1a2b16(0x607)](_0x18fb6e,_0x302c82);}},exports[_0x4821de(0x436)]=Xi([ee(0x0,Qe),ee(0x1,a[_0x4821de(0x49c)]),ee(0x2,a[_0x4821de(0x5a9)]),ee(0x3,a[_0x4821de(0x579)](exports[_0x4821de(0x4c6)])),ee(0x4,a[_0x4821de(0x579)](_[_0x4821de(0x3ee)])),ee(0x5,a[_0x4821de(0x555)](Kt['IRemoteInstanceService']))],exports[_0x4821de(0x436)]);var qi=Object[_0x4821de(0x51a)],zi=Object[_0x4821de(0x4f8)],Ji=(_0x231774,_0x2f5d8e,_0xc3981b,_0x335b10)=>{const _0x1f7e22=_0x4821de;for(var _0x6423f=_0x335b10>0x1?void 0x0:_0x335b10?zi(_0x2f5d8e,_0xc3981b):_0x2f5d8e,_0x5a4aa6=_0x231774[_0x1f7e22(0x1fe)]-0x1,_0x1e66d9;_0x5a4aa6>=0x0;_0x5a4aa6--)(_0x1e66d9=_0x231774[_0x5a4aa6])&&(_0x6423f=(_0x335b10?_0x1e66d9(_0x2f5d8e,_0xc3981b,_0x6423f):_0x1e66d9(_0x6423f))||_0x6423f);return _0x335b10&&_0x6423f&&qi(_0x2f5d8e,_0xc3981b,_0x6423f),_0x6423f;},_t=(_0x6accbf,_0x2ae10f)=>(_0x28a5b2,_0x5ea734)=>_0x2ae10f(_0x28a5b2,_0x5ea734,_0x6accbf);const Zi=_0x4821de(0x5ae),Qi=_0x4821de(0x254);let Ce=class extends a[_0x4821de(0x357)]{constructor(_0x906efd,_0x428eff){const _0x579cdd=_0x4821de;super(),this[_0x579cdd(0x487)]=_0x906efd,this[_0x579cdd(0x519)]=_0x428eff,this[_0x579cdd(0x402)]();}[_0x4821de(0x402)](){const _0x2ee654=_0x4821de;this[_0x2ee654(0x4b1)](this[_0x2ee654(0x487)]['focused$'][_0x2ee654(0x48c)](()=>{const _0x2304f6=_0x2ee654;var _0x581a4a;const _0x377188=this[_0x2304f6(0x487)]['getFocusedUnit']();let _0x27a1f6=(_0x581a4a=this[_0x2304f6(0x519)][_0x2304f6(0x2ce)](Zi))!=null?_0x581a4a:Qi;_0x377188 instanceof a[_0x2304f6(0x273)]&&(_0x27a1f6=_0x377188[_0x2304f6(0x32e)]),document[_0x2304f6(0x561)]=_0x27a1f6;}));}};Ce=Ji([_t(0x0,a[_0x4821de(0x258)]),_t(0x1,a[_0x4821de(0x482)])],Ce);var en=Object[_0x4821de(0x51a)],tn=Object['getOwnPropertyDescriptor'],sn=(_0x291089,_0x47d4d6,_0x2ca062,_0x21e8c7)=>{const _0x25d235=_0x4821de;for(var _0x5660e1=_0x21e8c7>0x1?void 0x0:_0x21e8c7?tn(_0x47d4d6,_0x2ca062):_0x47d4d6,_0x58f8f5=_0x291089[_0x25d235(0x1fe)]-0x1,_0x4717a5;_0x58f8f5>=0x0;_0x58f8f5--)(_0x4717a5=_0x291089[_0x58f8f5])&&(_0x5660e1=(_0x21e8c7?_0x4717a5(_0x47d4d6,_0x2ca062,_0x5660e1):_0x4717a5(_0x5660e1))||_0x5660e1);return _0x21e8c7&&_0x5660e1&&en(_0x47d4d6,_0x2ca062,_0x5660e1),_0x5660e1;},He=(_0x5165f9,_0x5d19f1)=>(_0x2ee2ff,_0xfee38d)=>_0x5d19f1(_0x2ee2ff,_0xfee38d,_0x5165f9);let Ee=class{constructor(_0x25a9e5,_0x3bed67,_0x416419){const _0x421337=_0x4821de;this['_configService']=_0x25a9e5,this[_0x421337(0x2a1)]=_0x3bed67,this[_0x421337(0x41a)]=_0x416419,this['init']();}[_0x4821de(0x28f)](){const _0x43b387=_0x4821de;this[_0x43b387(0x2a1)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x1430bc,_0x496524)=>_0x496524(_0x1430bc)[_0x43b387(0x2a5)](v[_0x43b387(0x352)](async _0x2a2783=>{const _0x58fb32=_0x43b387,_0x18b5ce=_0x2a2783;if(_0x18b5ce['status']===0x191&&window['confirm'](this[_0x58fb32(0x41a)]['t']('auth.needGotoLoginAlert'))){const _0x46d8b5=window[_0x58fb32(0x5ed)](window[_0x58fb32(0x1f3)][_0x58fb32(0x5f7)]);window[_0x58fb32(0x1f3)][_0x58fb32(0x5f7)]=this[_0x58fb32(0x505)]()+_0x58fb32(0x41d)+_0x46d8b5;}return _0x18b5ce;}))});}[_0x4821de(0x505)](){const _0x560fdb=_0x4821de;var _0x3a8950,_0x535a79;const _0x1537c7=this['_configService'][_0x560fdb(0x2ce)](Et),_0x4fa253=this[_0x560fdb(0x519)][_0x560fdb(0x2ce)](L);return(_0x535a79=(_0x3a8950=_0x4fa253==null?void 0x0:_0x4fa253[_0x560fdb(0x5f5)])!=null?_0x3a8950:_0x1537c7)!=null?_0x535a79:ns;}};Ee=sn([He(0x0,a[_0x4821de(0x482)]),He(0x1,a['Inject'](w['HTTPService'])),He(0x2,a[_0x4821de(0x579)](a['LocaleService']))],Ee);var nn=Object[_0x4821de(0x51a)],rn=Object['getOwnPropertyDescriptor'],on=(_0x363b6e,_0x5a4533,_0x38b7ad,_0x1861f6)=>{const _0x721efa=_0x4821de;for(var _0x5e2bff=_0x1861f6>0x1?void 0x0:_0x1861f6?rn(_0x5a4533,_0x38b7ad):_0x5a4533,_0x44da0d=_0x363b6e[_0x721efa(0x1fe)]-0x1,_0x479398;_0x44da0d>=0x0;_0x44da0d--)(_0x479398=_0x363b6e[_0x44da0d])&&(_0x5e2bff=(_0x1861f6?_0x479398(_0x5a4533,_0x38b7ad,_0x5e2bff):_0x479398(_0x5e2bff))||_0x5e2bff);return _0x1861f6&&_0x5e2bff&&nn(_0x5a4533,_0x38b7ad,_0x5e2bff),_0x5e2bff;},ut=(_0x55fb9d,_0x518833)=>(_0x154005,_0x163d7e)=>_0x518833(_0x154005,_0x163d7e,_0x55fb9d);const jt='AUTHZ_URL_KEY',an='/universer-api/authz';exports[_0x4821de(0x435)]=class extends a[_0x4821de(0x357)]{constructor(_0x85e845,_0x45978c){const _0x1d2743=_0x4821de;super(),this['_HTTPService']=_0x85e845,this['_configService']=_0x45978c,this[_0x1d2743(0x5fc)]();}[_0x4821de(0x5fc)](){const _0x58fb22=_0x4821de,_0x4fc87e=this;this[_0x58fb22(0x4b1)](this[_0x58fb22(0x5d5)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':w['MergeInterceptorFactory']({'isMatch'(_0x2083a8){const _0x32684d=_0x58fb22;var _0x10ea83;if(_0x2083a8['method']===_0x32684d(0x2ff)&&((_0x10ea83=_0x2083a8['requestParams'])!=null&&_0x10ea83[_0x32684d(0x42d)])){const {objectID:_0x41ebfd,objectType:_0xb92d9c}=_0x2083a8[_0x32684d(0x30b)][_0x32684d(0x42d)]||{};if(!_0x41ebfd||_0xb92d9c===void 0x0)return!0x1;const _0x57ce95=_0x4fc87e[_0x32684d(0x40c)]()+'/'+_0xb92d9c+_0x32684d(0x52f)+_0x41ebfd+_0x32684d(0x234);if(_0x2083a8[_0x32684d(0x414)]===_0x57ce95)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2e2cb2){const _0x302c2b=_0x58fb22;var _0x49e8d7;return(_0x49e8d7=_0x2e2cb2['requestParams'])==null?void 0x0:_0x49e8d7[_0x302c2b(0x42d)];},'mergeParamsToRequest'(_0x11f678,_0x124e74){const _0x40a934=_0x58fb22,_0x3e835b=_0x4fc87e[_0x40a934(0x40c)]()+_0x40a934(0x2b9),_0x573c90=_0x11f678['reduce']((_0x5b0468,_0x4a0ebe)=>{const {unitID:_0x2a2897,objectID:_0x3c5bfa,objectType:_0x37eaa6,actions:_0x59327b}=_0x4a0ebe;return _0x5b0468[_0x2a2897]||(_0x5b0468[_0x2a2897]={}),_0x5b0468[_0x2a2897][_0x3c5bfa]||(_0x5b0468[_0x2a2897][_0x3c5bfa]={'objectID':_0x3c5bfa,'objectType':_0x37eaa6,'actions':[]}),_0x5b0468[_0x2a2897][_0x3c5bfa]['actions']['push'](..._0x59327b),_0x5b0468;},{}),_0x1de2b7=[];for(const _0x547192 in _0x573c90)for(const _0x5ba4d7 in _0x573c90[_0x547192]){const {actions:_0x1085be,objectType:_0x9a08e6}=_0x573c90[_0x547192][_0x5ba4d7],_0x286650=[...new Set(_0x1085be)];_0x1de2b7['push']({'unitID':_0x547192,'objectID':_0x5ba4d7,'objectType':_0x9a08e6,'actions':_0x286650});}return new w['HTTPRequest'](_0x40a934(0x2ff),_0x3e835b,{'headers':_0x124e74['headers'],'withCredentials':_0x124e74['withCredentials'],'responseType':_0x124e74[_0x40a934(0x49f)],'body':{'requests':_0x1de2b7}});}},{'distributeResult'(_0x20b6ec,_0x1f847a){const _0x9a6b40=_0x58fb22,{objectActions:_0x1a3f22}=_0x20b6ec;return _0x1f847a[_0x9a6b40(0x27e)](_0x337472=>{const _0x482fac=_0x9a6b40,{unitID:_0x144589,objectID:_0x509df9,actions:_0x307513}=_0x337472,_0x1ee637=_0x1a3f22[_0x482fac(0x4ee)](_0x58f436=>_0x58f436['unitID']===_0x144589&&_0x58f436[_0x482fac(0x2eb)]===_0x509df9),_0x5f3a28=_0x307513['map'](_0x4152e7=>_0x1ee637==null?void 0x0:_0x1ee637['actions'][_0x482fac(0x4ee)](_0x50535f=>_0x50535f[_0x482fac(0x326)]===_0x4152e7))['filter'](_0x3736ef=>!!_0x3736ef);return{'config':_0x337472,'result':{'actions':_0x5f3a28,'error':_0x20b6ec[_0x482fac(0x5ee)]}};});}})}));}['_getAPIPrefixPath'](){const _0x22f737=_0x4821de;var _0x4481dc,_0x4e4b78;const _0x27bc45=this[_0x22f737(0x519)]['getConfig'](jt),_0x361fac=this[_0x22f737(0x519)]['getConfig'](L);return(_0x4e4b78=(_0x4481dc=_0x361fac==null?void 0x0:_0x361fac[_0x22f737(0x4c3)])!=null?_0x4481dc:_0x27bc45)!=null?_0x4e4b78:an;}async[_0x4821de(0x4ed)](_0x4acd24){const _0x319508=_0x4821de,_0x53c3a3=this[_0x319508(0x40c)]()+'/'+_0x4acd24[_0x319508(0x2a0)]+_0x319508(0x351);return(await this[_0x319508(0x5d5)][_0x319508(0x3a7)](_0x53c3a3,{'body':_0x4acd24}))['body']['objectID']||'';}async['list'](_0xcc004c){const _0x2a9b89=_0x4821de,_0x1b36aa=this[_0x2a9b89(0x40c)]()+_0x2a9b89(0x457);return(await this['_HTTPService'][_0x2a9b89(0x3a7)](_0x1b36aa,{'body':_0xcc004c}))[_0x2a9b89(0x42d)][_0x2a9b89(0x221)];}async[_0x4821de(0x515)](_0x4841d8){const _0x47d65f=_0x4821de,_0x599e28=this[_0x47d65f(0x40c)]()+'/'+_0x4841d8['objectType']+_0x47d65f(0x52f)+_0x4841d8[_0x47d65f(0x2eb)];await this[_0x47d65f(0x5d5)]['put'](_0x599e28,{'body':_0x4841d8});}async['allowed'](_0x3979f0){const _0x5d508d=_0x4821de,_0x30837b=this[_0x5d508d(0x40c)]()+'/'+_0x3979f0['objectType']+_0x5d508d(0x52f)+_0x3979f0[_0x5d508d(0x2eb)]+'/allowed';return(await this[_0x5d508d(0x5d5)][_0x5d508d(0x3a7)](_0x30837b,{'body':_0x3979f0}))['body']['actions'];}async[_0x4821de(0x5e6)](_0x24183f){const _0xb26cd1=_0x4821de,_0x5734c2=this[_0xb26cd1(0x40c)]()+_0xb26cd1(0x2b9);return(await this[_0xb26cd1(0x5d5)]['post'](_0x5734c2,{'body':{'requests':_0x24183f}}))[_0xb26cd1(0x42d)][_0xb26cd1(0x4dd)];}async[_0x4821de(0x4ea)](_0x3e6d3b){const _0x37a034=_0x4821de,_0x978cb5=this[_0x37a034(0x40c)]()+'/'+_0x3e6d3b[_0x37a034(0x2a0)]+_0x37a034(0x323),_0x226c05=await this[_0x37a034(0x5d5)]['post'](_0x978cb5,{'body':_0x3e6d3b});return{'roles':_0x226c05[_0x37a034(0x42d)][_0x37a034(0x34a)],'actions':_0x226c05[_0x37a034(0x42d)][_0x37a034(0x268)]};}async[_0x4821de(0x216)](_0x555221){const _0xc5518=_0x4821de,_0x198e70=this[_0xc5518(0x40c)]()+_0xc5518(0x2c9);await this['_HTTPService']['delete'](_0x198e70,{'params':{'collaboratorID':_0x555221['collaboratorID'],'objectID':_0x555221['objectID'],'unitID':_0x555221['unitID']}});}async[_0x4821de(0x517)](_0x417633){const _0x59aaf0=_0x4821de,_0x2966d2=this[_0x59aaf0(0x40c)]()+_0x59aaf0(0x2c9);await this[_0x59aaf0(0x5d5)][_0x59aaf0(0x1fb)](_0x2966d2,{'body':_0x417633});}async[_0x4821de(0x57a)](_0x2f7b98){const _0x1a71c0=_0x4821de,_0x3b5838=this['_getAPIPrefixPath']()+_0x1a71c0(0x2c9);await this[_0x1a71c0(0x5d5)][_0x1a71c0(0x3a7)](_0x3b5838,{'body':_0x2f7b98});}async[_0x4821de(0x36d)](_0x255524){const _0x5f1803=_0x4821de,_0x1250e2=this[_0x5f1803(0x40c)]()+_0x5f1803(0x2c9);return(await this['_HTTPService']['get'](_0x1250e2,{'params':{'objectID':_0x255524[_0x5f1803(0x2eb)],'unitID':_0x255524[_0x5f1803(0x4ef)]}}))[_0x5f1803(0x42d)][_0x5f1803(0x239)];}async[_0x4821de(0x2ee)](_0x1d293c){const _0x4f648c=_0x4821de,_0x290f72=this[_0x4f648c(0x40c)]()+_0x4f648c(0x2c9);await this[_0x4f648c(0x5d5)][_0x4f648c(0x3db)](_0x290f72,{'body':_0x1d293c});}},exports['AuthzIoHttpService']=on([ut(0x0,a[_0x4821de(0x579)](w[_0x4821de(0x538)])),ut(0x1,a['Inject'](a['IConfigService']))],exports[_0x4821de(0x435)]);var cn=Object[_0x4821de(0x51a)],ln=Object[_0x4821de(0x4f8)],hn=(_0x798561,_0x4e5951,_0x441768,_0x5ab4f3)=>{const _0x3d9058=_0x4821de;for(var _0x9ca89b=_0x5ab4f3>0x1?void 0x0:_0x5ab4f3?ln(_0x4e5951,_0x441768):_0x4e5951,_0xcb6376=_0x798561[_0x3d9058(0x1fe)]-0x1,_0x2f208b;_0xcb6376>=0x0;_0xcb6376--)(_0x2f208b=_0x798561[_0xcb6376])&&(_0x9ca89b=(_0x5ab4f3?_0x2f208b(_0x4e5951,_0x441768,_0x9ca89b):_0x2f208b(_0x9ca89b))||_0x9ca89b);return _0x5ab4f3&&_0x9ca89b&&cn(_0x4e5951,_0x441768,_0x9ca89b),_0x9ca89b;},_n=(_0xe0290b,_0x49d47a)=>(_0x1131c5,_0x2450e9)=>_0x49d47a(_0x1131c5,_0x2450e9,_0xe0290b);let be=class{constructor(_0x1cb343){const _0x4dc4ca=_0x4821de;this[_0x4dc4ca(0x2a1)]=_0x1cb343,this[_0x4dc4ca(0x4e8)]();}['_initRequestHeader'](){const _0x46649d=_0x4821de;this[_0x46649d(0x2a1)][_0x46649d(0x219)]({'interceptor':(_0x1d0e2f,_0x1f0534)=>{const _0x196f96=_0x46649d,_0x24b565=_0x1d0e2f['headers'],_0x21b8ea=Xt[_0x196f96(0x296)]();return _0x21b8ea&&_0x24b565[_0x196f96(0x4d0)](_0x196f96(0x4d4),_0x21b8ea),_0x1f0534(_0x1d0e2f);}});}};be=hn([_n(0x0,a['Inject'](w[_0x4821de(0x538)]))],be);var un=Object[_0x4821de(0x51a)],dn=Object['getOwnPropertyDescriptor'],Sn=(_0x379fba,_0x1b1bb8,_0x4225d6,_0x2e5310)=>{for(var _0x461ff5=_0x2e5310>0x1?void 0x0:_0x2e5310?dn(_0x1b1bb8,_0x4225d6):_0x1b1bb8,_0x20e26c=_0x379fba['length']-0x1,_0xa0da8c;_0x20e26c>=0x0;_0x20e26c--)(_0xa0da8c=_0x379fba[_0x20e26c])&&(_0x461ff5=(_0x2e5310?_0xa0da8c(_0x1b1bb8,_0x4225d6,_0x461ff5):_0xa0da8c(_0x461ff5))||_0x461ff5);return _0x2e5310&&_0x461ff5&&un(_0x1b1bb8,_0x4225d6,_0x461ff5),_0x461ff5;},xe=(_0x8cec14,_0x50c165)=>(_0x313cf1,_0x3edb10)=>_0x50c165(_0x313cf1,_0x3edb10,_0x8cec14);const vn=[_0x4821de(0x5d4),_0x4821de(0x327),_0x4821de(0x211),_0x4821de(0x401),_0x4821de(0x57c)],gn=0x5*0x400*0x400,mn=_0x4821de(0x3f8),fn='/universer-api/stream/file/upload',In=_0x4821de(0x5ce),pn=_0x4821de(0x60d);exports['ImageIoService']=class{constructor(_0x42f509,_0x560150,_0x3f2d83){const _0xa0d11b=_0x4821de;u(this,_0xa0d11b(0x40d),0x0),u(this,_0xa0d11b(0x2ba),new v['Subject']()),u(this,_0xa0d11b(0x4ae),this[_0xa0d11b(0x2ba)]),u(this,_0xa0d11b(0x253),new Map()),(this[_0xa0d11b(0x2a1)]=_0x42f509,this[_0xa0d11b(0x519)]=_0x560150,this[_0xa0d11b(0x487)]=_0x3f2d83);}['setWaitCount'](_0x563c6d){const _0x291475=_0x4821de;this['_waitCount']=_0x563c6d,this[_0x291475(0x2ba)][_0x291475(0x56e)](_0x563c6d);}[_0x4821de(0x3e3)](_0x1d006d,_0x1f9a48){const _0x17b6be=_0x4821de;if(_0x1f9a48===j[_0x17b6be(0x475)]['BASE64']){const _0x476693=new Image();return _0x476693['src']=_0x1d006d,_0x476693;}return this[_0x17b6be(0x253)][_0x17b6be(0x56d)](_0x1d006d);}['addImageSourceCache'](_0x238344,_0x35bdc3,_0x1ec24c){const _0x237fc3=_0x4821de;_0x35bdc3===j['ImageSourceType'][_0x237fc3(0x4aa)]||_0x1ec24c==null||this[_0x237fc3(0x253)]['set'](_0x238344,_0x1ec24c);}async[_0x4821de(0x260)](_0x9b245){const _0x2d9046=_0x4821de;try{const _0x394100=this[_0x2d9046(0x50d)](this[_0x2d9046(0x5b2)](),''+_0x9b245),_0x29c1a7=(await this['_httpService'][_0x2d9046(0x56d)](_0x394100))['body'];if(_0x29c1a7['error']&&_0x29c1a7[_0x2d9046(0x5ee)][_0x2d9046(0x361)]===bt['OK']){const _0x37c984=new URL(_0x29c1a7[_0x2d9046(0x414)],this[_0x2d9046(0x21e)]())[_0x2d9046(0x540)]();return Promise['resolve'](_0x37c984);}return Promise[_0x2d9046(0x48a)](_0x29c1a7['error']);}catch(_0x35c4d7){return Promise[_0x2d9046(0x48a)](_0x35c4d7);}}async['saveImage'](_0x53ba13){const _0x5044c4=_0x4821de;let _0x3fd040='';if(!vn[_0x5044c4(0x3be)](_0x53ba13[_0x5044c4(0x3b6)]))return this[_0x5044c4(0x5a7)](),Promise[_0x5044c4(0x48a)](new Error(j[_0x5044c4(0x554)][_0x5044c4(0x23c)]));if(_0x53ba13['size']>gn)return this[_0x5044c4(0x5a7)](),Promise['reject'](new Error(j[_0x5044c4(0x554)][_0x5044c4(0x2e1)]));try{const _0x276ce5=new FormData();_0x276ce5[_0x5044c4(0x2d6)](_0x5044c4(0x300),_0x53ba13);const _0x72fea0=this['_univerInstanceService'][_0x5044c4(0x513)](),_0x1e89a8=_0x72fea0==null?void 0x0:_0x72fea0[_0x5044c4(0x1f7)]();if(!_0x1e89a8)throw new Error('unitId\x20is\x20not\x20found');const _0x2cd575=this['_getUploadFileURL']()+_0x5044c4(0x3ff)+_0x53ba13[_0x5044c4(0x5c1)][_0x5044c4(0x540)]()+_0x5044c4(0x5ef)+Tt[_0x5044c4(0x2cb)]+_0x5044c4(0x574)+encodeURIComponent(_0x1e89a8),_0x53bcaf=await(await fetch(_0x2cd575,{'method':_0x5044c4(0x2ff),'body':_0x276ce5}))['json']();if(typeof _0x53bcaf[_0x5044c4(0x420)]!=_0x5044c4(0x354))return this['_decreaseWaiting'](),Promise[_0x5044c4(0x48a)](new Error(j['ImageUploadStatusType'][_0x5044c4(0x2b3)]));_0x3fd040=_0x53bcaf[_0x5044c4(0x420)];}catch{return this[_0x5044c4(0x5a7)](),Promise[_0x5044c4(0x48a)](new Error(j[_0x5044c4(0x554)][_0x5044c4(0x2b3)]));}return new Promise((_0x538f89,_0x2b464e)=>{const _0x3d4fa3=_0x5044c4,_0x2f3b51=new FileReader();_0x2f3b51[_0x3d4fa3(0x587)](_0x53ba13),_0x2f3b51['onload']=_0x5aa9d3=>{const _0x28bef0=_0x3d4fa3;var _0x4a8ac1;const _0x1ace84=(_0x4a8ac1=_0x5aa9d3[_0x28bef0(0x5bf)])==null?void 0x0:_0x4a8ac1[_0x28bef0(0x558)];if(_0x1ace84==null){this['_decreaseWaiting'](),_0x2b464e(new Error(j[_0x28bef0(0x554)][_0x28bef0(0x2b3)]));return;}const _0x5ce4ad=a[_0x28bef0(0x57b)]['generateRandomId'](0x6);_0x538f89({'imageId':_0x5ce4ad,'imageSourceType':j[_0x28bef0(0x475)]['UUID'],'source':_0x3fd040,'base64Cache':_0x1ace84,'status':j[_0x28bef0(0x554)][_0x28bef0(0x526)]}),this[_0x28bef0(0x5a7)]();};});}[_0x4821de(0x1fa)](){const _0x5b7299=_0x4821de;var _0x270d7c,_0xde7b10;const _0x3289af=this[_0x5b7299(0x519)]['getConfig'](mn),_0x285550=this[_0x5b7299(0x519)][_0x5b7299(0x2ce)](L);return(_0xde7b10=(_0x270d7c=_0x285550==null?void 0x0:_0x285550[_0x5b7299(0x413)])!=null?_0x270d7c:_0x3289af)!=null?_0xde7b10:fn;}[_0x4821de(0x5b2)](){const _0x5c43bf=_0x4821de;var _0x413470,_0x15d0f8;const _0x525009=this['_configService'][_0x5c43bf(0x2ce)](In),_0x555790=this[_0x5c43bf(0x519)][_0x5c43bf(0x2ce)](L);return(_0x15d0f8=(_0x413470=_0x555790==null?void 0x0:_0x555790[_0x5c43bf(0x38a)])!=null?_0x413470:_0x525009)!=null?_0x15d0f8:pn;}[_0x4821de(0x21e)](){const _0x4fe70d=_0x4821de;var _0xc97f26;const _0x16ce55=this[_0x4fe70d(0x519)][_0x4fe70d(0x2ce)](L);return(_0xc97f26=_0x16ce55==null?void 0x0:_0x16ce55[_0x4fe70d(0x4f5)])!=null?_0xc97f26:location['origin'];}['_replaceFileID'](_0x25c41b,_0x1e8e34){const _0x31b907=_0x4821de;return _0x25c41b[_0x31b907(0x306)]('{fileID}',_0x1e8e34);}[_0x4821de(0x5a7)](){const _0x30d182=_0x4821de;this[_0x30d182(0x40d)]-=0x1,this['_change$'][_0x30d182(0x56e)](this[_0x30d182(0x40d)]);}},exports[_0x4821de(0x366)]=Sn([xe(0x0,a[_0x4821de(0x579)](w['HTTPService'])),xe(0x1,a[_0x4821de(0x482)]),xe(0x2,a['Inject'](a[_0x4821de(0x258)]))],exports['ImageIoService']);var Cn=Object[_0x4821de(0x51a)],En=Object[_0x4821de(0x4f8)],bn=(_0x3123aa,_0x4809f4,_0x590d32,_0x39b734)=>{const _0xa4443d=_0x4821de;for(var _0x1e7e3c=_0x39b734>0x1?void 0x0:_0x39b734?En(_0x4809f4,_0x590d32):_0x4809f4,_0x25b003=_0x3123aa[_0xa4443d(0x1fe)]-0x1,_0x3803f6;_0x25b003>=0x0;_0x25b003--)(_0x3803f6=_0x3123aa[_0x25b003])&&(_0x1e7e3c=(_0x39b734?_0x3803f6(_0x4809f4,_0x590d32,_0x1e7e3c):_0x3803f6(_0x1e7e3c))||_0x1e7e3c);return _0x39b734&&_0x1e7e3c&&Cn(_0x4809f4,_0x590d32,_0x1e7e3c),_0x1e7e3c;},_e=(_0x51553a,_0xdfccc1)=>(_0x43d04b,_0x2f0bf6)=>_0xdfccc1(_0x43d04b,_0x2f0bf6,_0x51553a);let Te=class extends a[_0x4821de(0x56f)]{constructor(_0x23ca82,_0x1c53b9,_0x34da98,_0x170111,_0x54d95f){const _0x70f4f6=_0x4821de;super(),this[_0x70f4f6(0x2ac)]=_0x23ca82,this[_0x70f4f6(0x487)]=_0x1c53b9,this[_0x70f4f6(0x368)]=_0x34da98,this[_0x70f4f6(0x3c9)]=_0x170111,this[_0x70f4f6(0x28b)]=_0x54d95f,this[_0x70f4f6(0x4d8)](),this['_initCloseConn']();}[_0x4821de(0x3f6)](){const _0x354508=_0x4821de,_0x5e81c2=async _0x4152f4=>{const _0x3fd379=_0x370a;(await this[_0x3fd379(0x3c9)][_0x3fd379(0x277)](_0x4152f4))[_0x3fd379(0x29f)][_0x3fd379(0x2a5)](E[_0x3fd379(0x341)](_0x182eab=>_0x182eab[_0x3fd379(0x2ab)]===_['CollaborationEvent']['SHOULD_CLOSE_CONN']),E[_0x3fd379(0x3ba)](this['dispose$']))[_0x3fd379(0x48c)](_0x340248=>{const _0x211302=_0x3fd379,_0x144421=_0x340248,{reason:_0x2b9356}=_0x144421['data'];this['_injector']['get'](A[_0x211302(0x200)])[_0x211302(0x4d2)]({'type':X[_0x211302(0x43c)][_0x211302(0x56a)],'content':this[_0x211302(0x28b)]['t'](_0x211302(0x444))+'('+_0x2b9356+')'}),this[_0x211302(0x368)][_0x211302(0x61c)](new C[(_0x211302(0x60b))](_0x4152f4)['id'],!0x1),this[_0x211302(0x3c9)]['closeSession'](_0x4152f4);});};v[_0x354508(0x371)](this[_0x354508(0x487)][_0x354508(0x2da)](a[_0x354508(0x22e)][_0x354508(0x453)]),this[_0x354508(0x487)][_0x354508(0x2da)](a['UniverInstanceType']['UNIVER_DOC']))['pipe'](E[_0x354508(0x27e)](_0x47cacb=>_0x47cacb[_0x354508(0x1f7)]()),E[_0x354508(0x341)](_0x4b088d=>!a[_0x354508(0x445)](_0x4b088d)),E[_0x354508(0x3ba)](this[_0x354508(0x3ec)]))[_0x354508(0x48c)](_0x2897e6=>{_0x5e81c2(_0x2897e6);});}[_0x4821de(0x4d8)](){const _0x1a2beb=_0x4821de,_0x5b5f11=async _0xc26f96=>{const _0x4fb979=_0x370a;(await this[_0x4fb979(0x3c9)]['requireSession'](_0xc26f96))[_0x4fb979(0x29f)][_0x4fb979(0x2a5)](E['filter'](_0x39b3db=>_0x39b3db[_0x4fb979(0x2ab)]===_[_0x4fb979(0x215)]['UPDATE_PERMISSION_OBJ']),E[_0x4fb979(0x3ba)](this[_0x4fb979(0x3ec)]))['subscribe'](_0x25fdcc=>{const _0x5934cb=_0x4fb979,_0x33c0df=_0x25fdcc,{objectId:_0xabb584}=_0x33c0df[_0x5934cb(0x434)],_0x187a17=this[_0x5934cb(0x2ac)][_0x5934cb(0x56d)](te[_0x5934cb(0x5fb)]);_0xabb584===_0xc26f96?_0x187a17[_0x5934cb(0x5b5)](_0xc26f96):_0x187a17['refreshPermission'](_0xc26f96,_0xabb584);});};v[_0x1a2beb(0x371)](this['_univerInstanceService'][_0x1a2beb(0x2da)](a[_0x1a2beb(0x22e)]['UNIVER_SHEET']),this[_0x1a2beb(0x487)]['getTypeOfUnitAdded$'](a[_0x1a2beb(0x22e)][_0x1a2beb(0x5f0)]))[_0x1a2beb(0x2a5)](E[_0x1a2beb(0x27e)](_0x560340=>_0x560340[_0x1a2beb(0x1f7)]()),E[_0x1a2beb(0x341)](_0x28e4c2=>!a[_0x1a2beb(0x445)](_0x28e4c2)),E[_0x1a2beb(0x3ba)](this['dispose$']))[_0x1a2beb(0x48c)](_0x484f45=>{_0x5b5f11(_0x484f45);});}};function _0x370a(_0x49913c,_0x2793bf){const _0x5af9b4=_0x5af9();return _0x370a=function(_0x370add,_0x3eba53){_0x370add=_0x370add-0x1f2;let _0x22f409=_0x5af9b4[_0x370add];return _0x22f409;},_0x370a(_0x49913c,_0x2793bf);}Te=bn([_e(0x0,a[_0x4821de(0x579)](a[_0x4821de(0x2cd)])),_e(0x1,a['IUniverInstanceService']),_e(0x2,a[_0x4821de(0x54c)]),_e(0x3,a[_0x4821de(0x579)](exports[_0x4821de(0x3d5)])),_e(0x4,a['Inject'](a[_0x4821de(0x53d)]))],Te);var Tn=Object[_0x4821de(0x51a)],Rn=Object[_0x4821de(0x4f8)],On=(_0x3bc5eb,_0x212055,_0x25bd7f,_0x10378a)=>{const _0x182887=_0x4821de;for(var _0x1e5c0a=_0x10378a>0x1?void 0x0:_0x10378a?Rn(_0x212055,_0x25bd7f):_0x212055,_0x3f4c71=_0x3bc5eb[_0x182887(0x1fe)]-0x1,_0x2806f1;_0x3f4c71>=0x0;_0x3f4c71--)(_0x2806f1=_0x3bc5eb[_0x3f4c71])&&(_0x1e5c0a=(_0x10378a?_0x2806f1(_0x212055,_0x25bd7f,_0x1e5c0a):_0x2806f1(_0x1e5c0a))||_0x1e5c0a);return _0x10378a&&_0x1e5c0a&&Tn(_0x212055,_0x25bd7f,_0x1e5c0a),_0x1e5c0a;},dt=(_0x52a829,_0x17aac3)=>(_0x2501a5,_0x4980a8)=>_0x17aac3(_0x2501a5,_0x4980a8,_0x52a829);exports[_0x4821de(0x5ff)]=class{constructor(_0xaf5ff7,_0xd117f2){const _0x5a3238=_0x4821de;this[_0x5a3238(0x519)]=_0xaf5ff7,this['_httpService']=_0xd117f2;}async[_0x4821de(0x5a5)](_0x4ce1ea,_0x218403){const _0x372adf=_0x4821de;var _0xc95fa7;const {unitID:_0x42306b,type:_0x4f5928,revision:_0x4d1c04=0x0}=_0x218403,_0x19dbeb=this[_0x372adf(0x231)]()+'/'+_0x4f5928+_0x372adf(0x46d)+_0x42306b+_0x372adf(0x53c)+_0x4d1c04,_0x2f6aa3=(await this['_httpService']['get'](_0x19dbeb))[_0x372adf(0x42d)],_0x3329d7=(_0xc95fa7=_0x2f6aa3[_0x372adf(0x488)])==null?void 0x0:_0xc95fa7[_0x372adf(0x55c)];if(_0x3329d7){const _0x333c18=_0x3329d7==null?void 0x0:_0x3329d7[_0x372adf(0x4ce)],_0xae1141=_[_0x372adf(0x5bb)]['encode'](_[_0x372adf(0x5a1)](_0x333c18));_0x3329d7[_0x372adf(0x4ce)]=_0xae1141,Object[_0x372adf(0x4d7)](_0x3329d7[_0x372adf(0x559)])[_0x372adf(0x3c2)](([,_0x22d6e5])=>{const _0x323612=_0x372adf,_0x4376fc=_0x22d6e5['originalMeta'],_0x25a15a=_[_0x323612(0x5bb)][_0x323612(0x44c)](_[_0x323612(0x5a1)](_0x4376fc));_0x22d6e5[_0x323612(0x4ce)]=_0x25a15a;});}return _0x2f6aa3;}async[_0x4821de(0x507)](_0x4f62ba,_0x5edbc5){const _0x2d36f3=_0x4821de,{unitID:_0x5a2231,type:_0x5560ab,blockID:_0x44a196}=_0x5edbc5,_0x2b1360=this['_getAPIPrefix']()+'/'+_0x5560ab+_0x2d36f3(0x46d)+_0x5a2231+_0x2d36f3(0x5c5)+_0x44a196;return(await this[_0x2d36f3(0x2a1)]['get'](_0x2b1360))[_0x2d36f3(0x42d)];}async[_0x4821de(0x433)](_0x158528,_0x2fe839){const _0x3a16d1=_0x4821de,{unitID:_0x209165,type:_0xfca343,blockID:_0x59e34b}=_0x2fe839,_0xc58ded=this['_getAPIPrefix']()+_0x3a16d1(0x5c5)+_0xfca343+_0x3a16d1(0x46d)+_0x209165+_0x3a16d1(0x5c5)+_0x59e34b;return(await this[_0x3a16d1(0x2a1)]['get'](_0xc58ded))['body'];}async[_0x4821de(0x38b)](_0x4583ae,_0x3ab2a4){const _0x4f93b3=_0x4821de,{unitID:_0x4c3989,type:_0x4e57f4,from:_0x23522a,to:_0x4fd6bc}=_0x3ab2a4,_0x3a42cc=this[_0x4f93b3(0x29c)]()+'/'+_0x4e57f4+_0x4f93b3(0x46d)+_0x4c3989+_0x4f93b3(0x267)+_0x23522a+'&to='+_0x4fd6bc;return(await this['_httpService'][_0x4f93b3(0x56d)](_0x3a42cc))[_0x4f93b3(0x42d)];}[_0x4821de(0x231)](){const _0x513a1e=_0x4821de;var _0x409a4e;return(_0x409a4e=this[_0x513a1e(0x519)][_0x513a1e(0x2ce)](vt))!=null?_0x409a4e:this['_getAPIPrefix']();}[_0x4821de(0x29c)](){const _0x2310f7=_0x4821de;var _0x5e8d95,_0x25a0b8;const _0x197d2a=this[_0x2310f7(0x519)][_0x2310f7(0x2ce)](St),_0x1f182a=this['_configService'][_0x2310f7(0x2ce)](L);return(_0x25a0b8=(_0x5e8d95=_0x1f182a==null?void 0x0:_0x1f182a[_0x2310f7(0x465)])!=null?_0x5e8d95:_0x197d2a)!=null?_0x25a0b8:qt;}async[_0x4821de(0x3cd)](_0x2cc51e,_0x16ad05){const _0x3ff1c=_0x4821de,_0x2bbe4a='/universer-api/snapshot/'+_0x16ad05['type']+_0x3ff1c(0x46d)+_0x16ad05[_0x3ff1c(0x4ef)]+_0x3ff1c(0x61f);return(await this['_httpService'][_0x3ff1c(0x56d)](_0x2bbe4a,{'params':{'resourceId':JSON[_0x3ff1c(0x44f)](_0x16ad05[_0x3ff1c(0x212)])}}))[_0x3ff1c(0x42d)];}[_0x4821de(0x38f)](){const _0x5deade=_0x4821de;throw new Error(_0x5deade(0x339));}['saveSheetBlock'](){const _0x5b5445=_0x4821de;throw new Error(_0x5b5445(0x339));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4821de(0x43d)](){const _0x41bab3=_0x4821de;throw new Error(_0x41bab3(0x339));}[_0x4821de(0x240)](){const _0x202302=_0x4821de;throw new Error(_0x202302(0x339));}},exports[_0x4821de(0x5ff)]=On([dt(0x0,a[_0x4821de(0x482)]),dt(0x1,a[_0x4821de(0x579)](w['HTTPService']))],exports[_0x4821de(0x5ff)]);var Dn=Object[_0x4821de(0x51a)],yn=Object[_0x4821de(0x4f8)],Un=(_0x20a8b7,_0x17fda0,_0x1c7015,_0x437553)=>{for(var _0x55572f=_0x437553>0x1?void 0x0:_0x437553?yn(_0x17fda0,_0x1c7015):_0x17fda0,_0x391c0b=_0x20a8b7['length']-0x1,_0x1087a1;_0x391c0b>=0x0;_0x391c0b--)(_0x1087a1=_0x20a8b7[_0x391c0b])&&(_0x55572f=(_0x437553?_0x1087a1(_0x17fda0,_0x1c7015,_0x55572f):_0x1087a1(_0x55572f))||_0x55572f);return _0x437553&&_0x55572f&&Dn(_0x17fda0,_0x1c7015,_0x55572f),_0x55572f;},ue=(_0x517cff,_0x5d12b5)=>(_0x4285db,_0x353fd5)=>_0x5d12b5(_0x4285db,_0x353fd5,_0x517cff);let Fe=class extends a[_0x4821de(0x5a0)]{constructor(_0x2151fc,_0x7d650d,_0x191096,_0x58bea3,_0x8d600d){const _0x15e4cd=_0x4821de;super(_0x2151fc,_0x7d650d,_0x191096),this[_0x15e4cd(0x577)]=_0x58bea3,this[_0x15e4cd(0x244)]=_0x8d600d;}['transformUndoRedo'](_0x4aafc5,_0x1c3b53){const _0x2b3643=_0x4821de,_0x5a273b=this[_0x2b3643(0x2b2)](_0x4aafc5);if(_0x5a273b)try{const _0x3275e9=this[_0x2b3643(0x3f9)](_0x5a273b,_0x1c3b53);this[_0x2b3643(0x331)](_0x4aafc5,_0x3275e9);}catch(_0x1174d3){this[_0x2b3643(0x244)][_0x2b3643(0x5ee)](_0x2b3643(0x1fd),_0x1174d3),this['_clearUndo'](_0x4aafc5);}const _0x59aa38=this[_0x2b3643(0x314)](_0x4aafc5);if(_0x59aa38)try{const _0x2281f1=this[_0x2b3643(0x3f9)](_0x59aa38,_0x1c3b53);this['_substituteRedoStack'](_0x4aafc5,_0x2281f1);}catch(_0x50674e){this[_0x2b3643(0x244)][_0x2b3643(0x5ee)](_0x50674e),this[_0x2b3643(0x5f8)](_0x4aafc5);}}[_0x4821de(0x48d)](_0x48638a){const _0x85e5d5=_0x4821de,_0x3a4291=this[_0x85e5d5(0x2b2)](_0x48638a);_0x3a4291&&(_0x3a4291[_0x85e5d5(0x1fe)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x4c627e){const _0x124ea1=_0x4821de,_0x2d1d20=this[_0x124ea1(0x314)](_0x4c627e);_0x2d1d20&&(_0x2d1d20[_0x124ea1(0x1fe)]=0x0,this[_0x124ea1(0x531)]());}[_0x4821de(0x331)](_0x15fd10,_0x2c0dc4){const _0x17ba37=_0x4821de;this[_0x17ba37(0x480)][_0x17ba37(0x4d0)](_0x15fd10,_0x2c0dc4),this[_0x17ba37(0x531)]();}[_0x4821de(0x510)](_0x4aded6,_0x4d625a){const _0x21ab1c=_0x4821de;this['_redoStacks'][_0x21ab1c(0x4d0)](_0x4aded6,_0x4d625a),this[_0x21ab1c(0x531)]();}[_0x4821de(0x3f9)](_0x5b509b,_0x207330){const _0x186cf6=_0x4821de,_0x218997=[];let _0x24dde9=_0x207330,_0x1bf95b=_0x207330;for(let _0x52f6a8=_0x5b509b['length']-0x1;_0x52f6a8>=0x0;_0x52f6a8--){const {unitID:_0x233c39,undoMutations:_0x33a052,redoMutations:_0x1dfd3e}=_0x5b509b[_0x52f6a8],_0x523d16=this[_0x186cf6(0x577)][_0x186cf6(0x209)](_0x24dde9,_0x33a052),_0x4bd194=this['_transformService'][_0x186cf6(0x209)](_0x1bf95b,_0x1dfd3e);if(_['isTransformMutationsWithChangesetFailure'](_0x523d16)||_[_0x186cf6(0x33b)](_0x4bd194)){this[_0x186cf6(0x244)]['error']('[CollaborationUndoRedoService]',_0x186cf6(0x5e8),_0x523d16,_0x4bd194);break;}_0x24dde9=_0x523d16[_0x186cf6(0x362)],_0x1bf95b=_0x4bd194['c1Prime'],_0x218997['push']({'unitID':_0x233c39,'undoMutations':_0x523d16[_0x186cf6(0x309)],'redoMutations':_0x4bd194[_0x186cf6(0x309)]});}return _0x218997['reverse']();}};Fe=Un([ue(0x0,a[_0x4821de(0x258)]),ue(0x1,a[_0x4821de(0x5a9)]),ue(0x2,a[_0x4821de(0x48e)]),ue(0x3,_[_0x4821de(0x2c7)]),ue(0x4,a[_0x4821de(0x49c)])],Fe);class $t extends a[_0x4821de(0x56f)]{constructor(){const _0x10f35b=_0x4821de;super(),u(this,_0x10f35b(0x4f7)),this[_0x10f35b(0x4f7)]=v['fromEvent'](window,_0x10f35b(0x3ef))[_0x10f35b(0x2a5)](v[_0x10f35b(0x3ba)](this[_0x10f35b(0x3ec)]),v[_0x10f35b(0x523)](0x1),v[_0x10f35b(0x30d)](void 0x0));}[_0x4821de(0x564)](_0x2a2818,_0x534048,_0x4582e6=!0x1){const _0x4f2502=_0x4821de,_0x4d91b6=new URL(window['location'][_0x4f2502(0x5f7)]);_0x4d91b6[_0x4f2502(0x383)]['set'](_0x2a2818,_0x534048),_0x4582e6?window[_0x4f2502(0x261)][_0x4f2502(0x395)]('','',_0x4d91b6[_0x4f2502(0x540)]()):window['history'][_0x4f2502(0x591)]('','',_0x4d91b6[_0x4f2502(0x540)]());}[_0x4821de(0x5d2)](_0x486a38,_0x1a122a=!0x1){const _0x4805ef=_0x4821de,_0x5a3de9=new URL(window[_0x4805ef(0x1f3)][_0x4805ef(0x5f7)]);_0x5a3de9[_0x4805ef(0x383)][_0x4805ef(0x28c)](_0x486a38),_0x1a122a?window['history'][_0x4805ef(0x395)]('','',_0x5a3de9[_0x4805ef(0x540)]()):window[_0x4805ef(0x261)][_0x4805ef(0x591)]('','',_0x5a3de9[_0x4805ef(0x540)]());}[_0x4821de(0x5fe)](_0x3a6703){const _0x5c84f1=_0x4821de;var _0x5c062e;return(_0x5c062e=new URL(window[_0x5c84f1(0x1f3)][_0x5c84f1(0x5f7)])['searchParams'][_0x5c84f1(0x56d)](_0x3a6703))!=null?_0x5c062e:void 0x0;}}var Ht=Object[_0x4821de(0x51a)],Pn=Object['getOwnPropertyDescriptor'],wn=(_0x144b5c,_0x2cb07c,_0x5dce81)=>_0x2cb07c in _0x144b5c?Ht(_0x144b5c,_0x2cb07c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dce81}):_0x144b5c[_0x2cb07c]=_0x5dce81,Nn=(_0x3580c7,_0x24ad3d,_0x4a6e30,_0x4ced88)=>{for(var _0x3f222d=_0x4ced88>0x1?void 0x0:_0x4ced88?Pn(_0x24ad3d,_0x4a6e30):_0x24ad3d,_0x33a8ca=_0x3580c7['length']-0x1,_0x4a826a;_0x33a8ca>=0x0;_0x33a8ca--)(_0x4a826a=_0x3580c7[_0x33a8ca])&&(_0x3f222d=(_0x4ced88?_0x4a826a(_0x24ad3d,_0x4a6e30,_0x3f222d):_0x4a826a(_0x3f222d))||_0x3f222d);return _0x4ced88&&_0x3f222d&&Ht(_0x24ad3d,_0x4a6e30,_0x3f222d),_0x3f222d;},me=(_0x4e6b23,_0x1af055)=>(_0x1ce956,_0x3c15c1)=>_0x1af055(_0x1ce956,_0x3c15c1,_0x4e6b23),Mn=(_0x4da721,_0x254c12,_0x327c21)=>wn(_0x4da721,_0x254c12+'',_0x327c21);const An=_0x4821de(0x25f);exports[_0x4821de(0x45a)]=class extends a[_0x4821de(0x41f)]{constructor(_0x4ba402=rs,_0x2418c4,_0x57e93f,_0x3a8439,_0x45d317){const _0x51d09d=_0x4821de;super(),this[_0x51d09d(0x329)]=_0x4ba402,this[_0x51d09d(0x244)]=_0x2418c4,this['_renderManagerService']=_0x57e93f,this[_0x51d09d(0x2ac)]=_0x3a8439,this['_configService']=_0x45d317;const {..._0x3712f0}=this[_0x51d09d(0x329)];this[_0x51d09d(0x519)][_0x51d09d(0x317)](L,_0x3712f0);}[_0x4821de(0x399)](){const _0x1986b8=_0x4821de;this[_0x1986b8(0x4b7)](),a[_0x1986b8(0x438)](this[_0x1986b8(0x2ac)],[[ne],[exports[_0x1986b8(0x436)]],[Te]]);}[_0x4821de(0x284)](){const _0x1f53f9=_0x4821de;a[_0x1f53f9(0x438)](this[_0x1f53f9(0x2ac)],[[Ce]]);}[_0x4821de(0x47b)](){const _0x2c667a=_0x4821de;this[_0x2c667a(0x241)]();}[_0x4821de(0x4b7)](){const _0x12d265=_0x4821de;var _0x3b84dc,_0x45a3d9,_0x363730,_0x41a522;this[_0x12d265(0x2ac)]['has'](a[_0x12d265(0x3c4)])&&this['_logService'][_0x12d265(0x5ee)](_0x12d265(0x394),_0x12d265(0x374));let _0x1ab362=[[a['IUndoRedoService'],{'useClass':Fe}],[exports['CollaborationSessionService']],[Je],[w[_0x12d265(0x538)]],[Qe,{'useClass':$t}],[q],[exports['LocalCacheService']],[w['WebSocketService']],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x45a3d9=(_0x3b84dc=this[_0x12d265(0x329)])==null?void 0x0:_0x3b84dc[_0x12d265(0x398)])!=null?_0x45a3d9:exports[_0x12d265(0x485)]}],[w[_0x12d265(0x578)],{'useClass':w[_0x12d265(0x4cc)]}],[_['ISnapshotServerService'],{'useClass':exports[_0x12d265(0x5ff)]}],[a['IAuthzIoService'],{'useClass':exports[_0x12d265(0x435)]}],[j[_0x12d265(0x26e)],{'useClass':exports[_0x12d265(0x366)]}],[exports[_0x12d265(0x330)]],[exports[_0x12d265(0x436)]],[exports[_0x12d265(0x29e)]],[Ce],[ne]];(_0x363730=this[_0x12d265(0x329)])!=null&&_0x363730[_0x12d265(0x3aa)]&&_0x1ab362['push']([Re,{'useClass':$s}]),_0x1ab362=a[_0x12d265(0x367)](_0x1ab362,(_0x41a522=this['_config'])==null?void 0x0:_0x41a522[_0x12d265(0x429)]),_0x1ab362[_0x12d265(0x3c2)](_0x242dc5=>this['_injector'][_0x12d265(0x201)](_0x242dc5)),this[_0x12d265(0x5ab)]();}[_0x4821de(0x241)](){const _0x377452=_0x4821de;this[_0x377452(0x4b1)](this[_0x377452(0x396)][_0x377452(0x41c)](a['UniverInstanceType'][_0x377452(0x5f0)],[Ve])),this['disposeWithMe'](this[_0x377452(0x396)][_0x377452(0x41c)](a[_0x377452(0x22e)][_0x377452(0x453)],[We]));}[_0x4821de(0x5ab)](){const _0x3c2713=_0x4821de;var _0x41f203,_0x336be8;this[_0x3c2713(0x2ac)][_0x3c2713(0x56d)](w['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':w[_0x3c2713(0x248)]({'maxParallel':0x6})}),this[_0x3c2713(0x2ac)][_0x3c2713(0x56d)](be),(_0x41f203=this['_config'])!=null&&_0x41f203[_0x3c2713(0x545)]||this[_0x3c2713(0x2ac)][_0x3c2713(0x56d)](exports[_0x3c2713(0x4c6)])[_0x3c2713(0x39a)](),(_0x336be8=this[_0x3c2713(0x329)])!=null&&_0x336be8['enableAuthServer']&&this[_0x3c2713(0x2ac)][_0x3c2713(0x56d)](Ee),this['_injector'][_0x3c2713(0x56d)](exports['CollaborationController']),this['_injector']['has'](exports[_0x3c2713(0x29e)])&&this[_0x3c2713(0x2ac)][_0x3c2713(0x56d)](exports[_0x3c2713(0x29e)]);}},Mn(exports[_0x4821de(0x45a)],_0x4821de(0x3c6),An),exports[_0x4821de(0x45a)]=Nn([a['DependentOn'](_[_0x4821de(0x481)]),me(0x1,a[_0x4821de(0x49c)]),me(0x2,O[_0x4821de(0x24a)]),me(0x3,a['Inject'](a[_0x4821de(0x2cd)])),me(0x4,a[_0x4821de(0x482)])],exports[_0x4821de(0x45a)]),exports[_0x4821de(0x4b3)]=jt,exports[_0x4821de(0x29a)]=Ct,exports['COLLAB_WEB_SOCKET_URL_KEY']=gt,exports[_0x4821de(0x336)]=U,exports[_0x4821de(0x45b)]=Lt,exports[_0x4821de(0x2ca)]=Xe,exports['HEARTBEAT_INTERVAL_KEY']=mt,exports[_0x4821de(0x60e)]=Ge,exports['ICollaborationSocketService']=Ke,exports['IURLService']=Qe,exports['LOCAL_CACHE_INTERVAL_KEY']=pt,exports['LOGIN_URL_KEY']=Et,exports[_0x4821de(0x2e4)]=It,exports[_0x4821de(0x46a)]=zt,exports[_0x4821de(0x5ec)]=St,exports[_0x4821de(0x596)]=vt,exports[_0x4821de(0x439)]=H,exports[_0x4821de(0x44b)]=Pt,exports['WebURLService']=$t,exports['deserializeToCombResponse']=Rt,exports['serializeCombRequest']=Ot;
|