@univerjs-pro/collaboration-client 0.3.0-alpha.0 → 0.3.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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xb0c99b=_0x4e0f;(function(_0x4e6fbe,_0x33ad7c){const _0x34e23a=_0x4e0f,_0x3b6f7a=_0x4e6fbe();while(!![]){try{const _0x55a4ea=-parseInt(_0x34e23a(0x3a6))/0x1+-parseInt(_0x34e23a(0x267))/0x2+-parseInt(_0x34e23a(0x45b))/0x3+parseInt(_0x34e23a(0x1da))/0x4+parseInt(_0x34e23a(0x172))/0x5*(-parseInt(_0x34e23a(0x39a))/0x6)+parseInt(_0x34e23a(0x2a3))/0x7+-parseInt(_0x34e23a(0x411))/0x8*(-parseInt(_0x34e23a(0x482))/0x9);if(_0x55a4ea===_0x33ad7c)break;else _0x3b6f7a['push'](_0x3b6f7a['shift']());}catch(_0x457cba){_0x3b6f7a['push'](_0x3b6f7a['shift']());}}}(_0x4d94,0xa4c07));var xt=Object[_0xb0c99b(0x3dd)],kt=(_0x23a151,_0x231d62,_0x79fa55)=>_0x231d62 in _0x23a151?xt(_0x23a151,_0x231d62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x79fa55}):_0x23a151[_0x231d62]=_0x79fa55,d=(_0x5f9ab1,_0x3304c3,_0x4130d0)=>kt(_0x5f9ab1,typeof _0x3304c3!='symbol'?_0x3304c3+'':_0x3304c3,_0x4130d0);Object[_0xb0c99b(0x3dd)](exports,Symbol[_0xb0c99b(0x39e)],{'value':_0xb0c99b(0x182)});const a=require(_0xb0c99b(0x165)),v=require(_0xb0c99b(0x346)),E=require('rxjs/operators'),X=require(_0xb0c99b(0x330)),N=require(_0xb0c99b(0x29f)),P=require(_0xb0c99b(0x34b)),_=require(_0xb0c99b(0x42d)),Bt=require(_0xb0c99b(0x213)),V=require('@univerjs/docs'),w=require(_0xb0c99b(0x413)),C=require('@univerjs/sheets'),R=require(_0xb0c99b(0x314)),A=require(_0xb0c99b(0x220)),Je=require(_0xb0c99b(0x1dc)),te=require(_0xb0c99b(0x1e0)),U=require(_0xb0c99b(0x227)),Vt=require(_0xb0c99b(0x2b5)),Wt=require(_0xb0c99b(0x1be)),Ft=require(_0xb0c99b(0x3d0)),ht=_0xb0c99b(0x40d),Gt=_0xb0c99b(0x1e1),_t=_0xb0c99b(0x23b),Yt=_0xb0c99b(0x16d),Kt=0x7d0,ut=_0xb0c99b(0x4e1),Xt='ws://127.0.0.1:8000/universer-api/comb/connect',dt='HEARTBEAT_INTERVAL',qt=0x7530,Ve=_0xb0c99b(0x2f6),St=0x4e20,zt=0x4e20,vt=_0xb0c99b(0x391),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt='COLLAB_SUBMIT_CHANGESET_URL',Qt=_0xb0c99b(0xf8),mt=_0xb0c99b(0x281),es=_0xb0c99b(0x130);var It=(_0x1ba80d=>(_0x1ba80d[_0x1ba80d[_0xb0c99b(0x3fc)]=0x0]=_0xb0c99b(0x3fc),_0x1ba80d[_0x1ba80d['OK']=0x1]='OK',_0x1ba80d[_0x1ba80d[_0xb0c99b(0x232)]=0x2]=_0xb0c99b(0x232),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x29a)]=0x3]=_0xb0c99b(0x29a),_0x1ba80d[_0x1ba80d['NOT_FOUND']=0x4]=_0xb0c99b(0x42e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x12e)]=0x5]=_0xb0c99b(0x12e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x384)]=0x6]=_0xb0c99b(0x384),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x409)]=0x7]=_0xb0c99b(0x409),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x30e)]=0x8]=_0xb0c99b(0x30e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x1bc)]=0x9]=_0xb0c99b(0x1bc),_0x1ba80d[_0x1ba80d['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xb0c99b(0x159),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x3a1)]=0x1771]=_0xb0c99b(0x3a1),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x29c)]=0x1772]=_0xb0c99b(0x29c),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x13e)]=0x1b59]=_0xb0c99b(0x13e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x245)]=0x1b5a]=_0xb0c99b(0x245),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x4a9)]=0x1b5b]=_0xb0c99b(0x4a9),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x1a3)]=0x1b5c]=_0xb0c99b(0x1a3),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x27c)]=0x1f41]=_0xb0c99b(0x27c),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x171)]=0x2329]=_0xb0c99b(0x171),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x211)]=0x232a]=_0xb0c99b(0x211),_0x1ba80d[_0x1ba80d['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xb0c99b(0x4e8),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x11b)]=0x232c]=_0xb0c99b(0x11b),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x326)]=0x232d]=_0xb0c99b(0x326),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x155)]=0x2711]=_0xb0c99b(0x155),_0x1ba80d[_0x1ba80d['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1ba80d[_0x1ba80d['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1ba80d[_0x1ba80d[_0xb0c99b(0x271)]=0x2714]=_0xb0c99b(0x271),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x2cf)]=-0x1]=_0xb0c99b(0x2cf),_0x1ba80d))(It||{}),$=(_0x1c7852=>(_0x1c7852[_0x1c7852[_0xb0c99b(0x218)]=0x0]=_0xb0c99b(0x218),_0x1c7852[_0x1c7852[_0xb0c99b(0x254)]=0x1]=_0xb0c99b(0x254),_0x1c7852[_0x1c7852[_0xb0c99b(0x3e6)]=0x2]='UNIVER_SHEET',_0x1c7852[_0x1c7852[_0xb0c99b(0x170)]=0x3]=_0xb0c99b(0x170),_0x1c7852[_0x1c7852[_0xb0c99b(0x34a)]=0x4]=_0xb0c99b(0x34a),_0x1c7852[_0x1c7852[_0xb0c99b(0x2cf)]=-0x1]=_0xb0c99b(0x2cf),_0x1c7852))($||{}),b=(_0x4bff63=>(_0x4bff63[_0x4bff63['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x4bff63[_0x4bff63[_0xb0c99b(0x2db)]=0x1]=_0xb0c99b(0x2db),_0x4bff63[_0x4bff63[_0xb0c99b(0x1ae)]=0x2]=_0xb0c99b(0x1ae),_0x4bff63[_0x4bff63[_0xb0c99b(0x33c)]=0x3]=_0xb0c99b(0x33c),_0x4bff63[_0x4bff63[_0xb0c99b(0x46b)]=0x4]=_0xb0c99b(0x46b),_0x4bff63[_0x4bff63['HEARTBEAT']=0x5]='HEARTBEAT',_0x4bff63[_0x4bff63[_0xb0c99b(0x2a8)]=0x6]=_0xb0c99b(0x2a8),_0x4bff63[_0x4bff63[_0xb0c99b(0x2cf)]=-0x1]='UNRECOGNIZED',_0x4bff63))(b||{}),We=(_0x5f0ee7=>(_0x5f0ee7[_0x5f0ee7[_0xb0c99b(0x39b)]=0x0]='UNKNOWN_CODE',_0x5f0ee7[_0x5f0ee7['OK']=0x1]='OK',_0x5f0ee7[_0x5f0ee7[_0xb0c99b(0x4c2)]=0x2]=_0xb0c99b(0x4c2),_0x5f0ee7[_0x5f0ee7['UNRECOGNIZED']=-0x1]=_0xb0c99b(0x2cf),_0x5f0ee7))(We||{}),pt=(_0x86540c=>(_0x86540c[_0x86540c[_0xb0c99b(0x26a)]=0x0]=_0xb0c99b(0x26a),_0x86540c[_0x86540c[_0xb0c99b(0x11f)]=0x1]=_0xb0c99b(0x11f),_0x86540c[_0x86540c['HttpExport']=0x2]=_0xb0c99b(0x118),_0x86540c[_0x86540c[_0xb0c99b(0x394)]=0x3]='UnitEmbedded',_0x86540c[_0x86540c[_0xb0c99b(0x398)]=0x4]=_0xb0c99b(0x398),_0x86540c[_0x86540c['UNRECOGNIZED']=-0x1]=_0xb0c99b(0x2cf),_0x86540c))(pt||{});const L=_0xb0c99b(0x192),ts={};function Ct(_0x3c7a85){const _0x279446=_0xb0c99b;var _0x3dbd20,_0x5e8b8f,_0x17c0b5,_0x38e05e;const _0x4ca1cd=_0x3c7a85[_0x279446(0x494)],_0x1fb073=JSON[_0x279446(0x435)](_0x4ca1cd);switch(_0x1fb073[_0x279446(0xf2)]){case b['HEARTBEAT']:case b[_0x279446(0x2db)]:{const _0x450c8e=_0x1fb073[_0x279446(0x333)];return{..._0x1fb073,'data':_0x450c8e,'cmd':_0x1fb073[_0x279446(0xf2)]};}case b[_0x279446(0x1ae)]:{const _0x421ae2=_0x1fb073['joinRsp'];return{..._0x1fb073,'data':_0x421ae2,'cmd':_0x1fb073[_0x279446(0xf2)]};}case b['RECV']:{const _0x3a6d6c=_0x1fb073[_0x279446(0x1b2)];switch(_0x3a6d6c[_0x279446(0x1bd)]){case _[_0x279446(0x153)][_0x279446(0xf6)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x3dbd20=_0x3a6d6c[_0x279446(0x1d2)])==null?void 0x0:_0x3dbd20['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _['CollaborationEvent']['CHANGESET_ACK']:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x5e8b8f=_0x3a6d6c[_0x279446(0x403)])==null?void 0x0:_0x5e8b8f['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x291)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x17c0b5=_0x3a6d6c[_0x279446(0x3fa)])==null?void 0x0:_0x17c0b5['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x3fe)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x38e05e=_0x3a6d6c[_0x279446(0x3b4)])==null?void 0x0:_0x38e05e['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x2c7)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['updateCursorEvent']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x25b)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0xf4)]},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x1cc)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['leaveEvent']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x197)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x38f)]},'cmd':_0x1fb073['cmd']};case _[_0x279446(0x153)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x279446(0x153)][_0x279446(0x189)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['liveShareOperation']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x1df)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x38f)]},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x174)]:return{..._0x1fb073,'data':_0x3a6d6c,'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)]['COMMENT_UPDATE']:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x2d4)]},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)]['UPDATE_PERMISSION_OBJ']:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['updatePermissionObjEvent']},'cmd':_0x1fb073['cmd']};case _[_0x279446(0x153)][_0x279446(0x430)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x35d)]},'cmd':_0x1fb073[_0x279446(0xf2)]};default:return _0x1fb073;}}default:return _0x1fb073;}}function Et(_0x41da6b){const _0x322fe3=_0xb0c99b;switch(_0x41da6b[_0x322fe3(0xf2)]){case b['HEARTBEAT']:case b[_0x322fe3(0x2db)]:return JSON['stringify']({'cmd':_0x41da6b['cmd'],'routeKey':_0x41da6b['routeKey']});case b['INGEST']:{let _0x3be880;switch(_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x1bd)]){case _[_0x322fe3(0x153)][_0x322fe3(0x2c7)]:{_0x3be880={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x1cc)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x1cc)],'leaveEvent':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x25b)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x25b)],'joinEvent':_0x41da6b['data'][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x197)]:{_0x3be880={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x189)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x41da6b['data'][_0x322fe3(0x494)]};break;}case _['CollaborationEvent'][_0x322fe3(0x1df)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x1df)],'liveShareTerminate':_0x41da6b[_0x322fe3(0x494)]['data']};break;}case _['CollaborationEvent'][_0x322fe3(0x3c2)]:{_0x3be880={'eventID':_['CollaborationEvent'][_0x322fe3(0x3c2)],'liveShareRequestHost':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)]['LIVESHARE_FETCH_OPERATIONS']:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x444)]};break;}default:_0x3be880={'eventID':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x1bd)]};}return JSON[_0x322fe3(0x36d)]({'cmd':_0x41da6b['cmd'],'routeKey':_0x41da6b['routeKey'],'collaMsg':_0x3be880});}case b[_0x322fe3(0x1ae)]:return JSON[_0x322fe3(0x36d)]({'cmd':_0x41da6b[_0x322fe3(0xf2)],'routeKey':_0x41da6b[_0x322fe3(0x28d)],'joinReq':_0x41da6b[_0x322fe3(0x494)]});case b[_0x322fe3(0x33c)]:return JSON['stringify']({'cmd':_0x41da6b[_0x322fe3(0xf2)],'routeKey':_0x41da6b[_0x322fe3(0x28d)],'leaveReq':_0x41da6b[_0x322fe3(0x494)]});default:throw new Error(_0x322fe3(0x2fb));}}var ss=Object[_0xb0c99b(0x3dd)],is=Object['getOwnPropertyDescriptor'],ns=(_0x53b0f6,_0x4293f9,_0x2f447c,_0x58715e)=>{for(var _0xd6474b=_0x58715e>0x1?void 0x0:_0x58715e?is(_0x4293f9,_0x2f447c):_0x4293f9,_0x15e975=_0x53b0f6['length']-0x1,_0x3b63cf;_0x15e975>=0x0;_0x15e975--)(_0x3b63cf=_0x53b0f6[_0x15e975])&&(_0xd6474b=(_0x58715e?_0x3b63cf(_0x4293f9,_0x2f447c,_0xd6474b):_0x3b63cf(_0xd6474b))||_0xd6474b);return _0x58715e&&_0xd6474b&&ss(_0x4293f9,_0x2f447c,_0xd6474b),_0xd6474b;},oe=(_0x2f451e,_0x3f5780)=>(_0x490f59,_0x16e005)=>_0x3f5780(_0x490f59,_0x16e005,_0x2f451e);const Fe=a['createIdentifier'](_0xb0c99b(0x20d));function rs(_0x27207a,_0x3caf43,_0x2af2fb){const _0x5c5d9b=_0xb0c99b;return _0x27207a+'/'+_0x3caf43+'/unit/'+_0x2af2fb+_0x5c5d9b(0x3cc);}exports['CollaborationSocketService']=class extends a[_0xb0c99b(0x463)]{constructor(_0x3ed9fc,_0x34be7f,_0x3933ce,_0x29b06f,_0x536530){const _0x6c3f9c=_0xb0c99b;super(),this['_http']=_0x3ed9fc,this['_ws']=_0x34be7f,this[_0x6c3f9c(0x3ec)]=_0x3933ce,this['_logService']=_0x29b06f,this[_0x6c3f9c(0x1c1)]=_0x536530;}[_0xb0c99b(0x324)](_0x143896){const _0x5a9d68=_0xb0c99b,_0x2d9bcb=this['_ws'][_0x5a9d68(0x324)](_0x143896);if(!_0x2d9bcb)throw new Error(_0x5a9d68(0x3f1));const _0x5ef885=new a[(_0x5a9d68(0x283))](),_0x449ea4=new v[(_0x5a9d68(0x349))]();_0x5ef885[_0x5a9d68(0x143)](_0x2d9bcb[_0x5a9d68(0x38a)][_0x5a9d68(0x33b)](_0x399f95=>_0x449ea4[_0x5a9d68(0x3c7)](_0x399f95))),_0x5ef885[_0x5a9d68(0x143)](a[_0x5a9d68(0x2ef)](()=>_0x449ea4[_0x5a9d68(0x484)]()));const _0x1dec8a=new v[(_0x5a9d68(0x349))]();_0x5ef885[_0x5a9d68(0x143)](_0x2d9bcb[_0x5a9d68(0x385)][_0x5a9d68(0x33b)](_0xdaa254=>_0x1dec8a[_0x5a9d68(0x3c7)](_0xdaa254))),_0x5ef885[_0x5a9d68(0x143)](a['toDisposable'](()=>_0x1dec8a[_0x5a9d68(0x484)]()));const _0x38987b=new v[(_0x5a9d68(0x349))]();_0x5ef885[_0x5a9d68(0x143)](_0x2d9bcb[_0x5a9d68(0xfb)][_0x5a9d68(0x33b)](_0x428859=>{const _0x179550=Ct(_0x428859);_0x38987b['next'](_0x179550);})),_0x5ef885[_0x5a9d68(0x143)](a['toDisposable'](()=>_0x38987b[_0x5a9d68(0x484)]()));let _0x4a7d55;const _0xb2c681=()=>{const _0x30447e=_0x5a9d68;_0x1dec8a[_0x30447e(0x3c7)](new Event(_0x30447e(0x19e))),_0x449ea4[_0x30447e(0x3c7)](new CloseEvent(_0x30447e(0x19e))),_0x4a7d55['close']();};return _0x4a7d55={'memberID':'','close$':_0x449ea4['asObservable'](),'error$':_0x1dec8a[_0x5a9d68(0x3af)](),'open$':_0x2d9bcb[_0x5a9d68(0x407)],'message$':_0x38987b[_0x5a9d68(0x3af)](),'send':_0x10e380=>{const _0x5e804b=_0x5a9d68;if(_0x10e380[_0x5e804b(0xf2)]===b[_0x5e804b(0x46b)]){if(_0x10e380[_0x5e804b(0x494)][_0x5e804b(0x1bd)]===_[_0x5e804b(0x153)]['SUBMIT_CHANGESET']){this[_0x5e804b(0x4c9)](_0x4a7d55,_0x10e380[_0x5e804b(0x494)])['catch'](_0x25cae6=>{this['_logService']['error'](_0x25cae6),_0xb2c681();});return;}if(_0x10e380['data']['eventID']===_['CollaborationEvent']['FETCH_MISSING']){const _0x3d36b1=_0x10e380['data'];this[_0x5e804b(0x284)](_0x3d36b1)[_0x5e804b(0x20e)](_0x18e2ab=>{const _0x44dce7=_0x5e804b;_0x38987b['next']({'cmd':b['RECV'],'code':We['OK'],'routeKey':_0x3d36b1[_0x44dce7(0x494)][_0x44dce7(0x4c3)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x44dce7(0x30a)],'data':{'changesets':_0x18e2ab}}});})[_0x5e804b(0x2be)](_0x31f328=>{const _0x5f0c6e=_0x5e804b;this['_logService'][_0x5f0c6e(0x4d1)](_0x31f328),_0xb2c681();});return;}}_0x2d9bcb[_0x5e804b(0x3c3)](Et(_0x10e380));},'close':()=>{const _0x36773a=_0x5a9d68;_0x2d9bcb[_0x36773a(0x1ea)](),_0x5ef885['dispose']();}},_0x4a7d55;}async[_0xb0c99b(0x4c9)](_0x4ea2b4,_0x454660){const _0x5c40cb=_0xb0c99b;var _0x56cbe1,_0x2bc4ae;const {unitType:_0x13d0d6,unitID:_0x407143,changeset:_0x1a91ca}=_0x454660['data'],_0x5a957a={'unitID':_0x407143,'memberID':_0x4ea2b4[_0x5c40cb(0x37a)],'type':_0x13d0d6,'changeset':_[_0x5c40cb(0x3db)](_0x1a91ca)},_0x132a07=this['_configService'][_0x5c40cb(0x2aa)](gt),_0x232fb5=this['_configService'][_0x5c40cb(0x2aa)](L),_0x4f68bb=rs((_0x2bc4ae=(_0x56cbe1=_0x232fb5==null?void 0x0:_0x232fb5[_0x5c40cb(0x3a5)])!=null?_0x56cbe1:_0x132a07)!=null?_0x2bc4ae:Qt,_0x13d0d6,_0x407143);try{await this[_0x5c40cb(0x337)][_0x5c40cb(0x3e7)](_0x4f68bb,{'body':_0x5a957a});}catch(_0x3c2913){throw this[_0x5c40cb(0x3cd)][_0x5c40cb(0x4d1)](_0x5c40cb(0x48d),_0x5c40cb(0x3d7)),_0x3c2913;}}async[_0xb0c99b(0x284)](_0x5b91bd){const _0x363afc=_0xb0c99b,{unitID:_0x2d6f4f,from:_0x42b66f,to:_0x33d1e2,unitType:_0x15910c}=_0x5b91bd[_0x363afc(0x494)];return(await this[_0x363afc(0x1c1)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x2d6f4f,'type':_0x15910c,'from':_0x42b66f,'to':_0x33d1e2}))['changesets'];}},exports[_0xb0c99b(0x18a)]=ns([oe(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)])),oe(0x1,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x300)])),oe(0x2,a[_0xb0c99b(0x195)]),oe(0x3,a[_0xb0c99b(0x2b2)]),oe(0x4,_[_0xb0c99b(0x1ee)])],exports[_0xb0c99b(0x18a)]);const os=_0xb0c99b(0x2a5);function as(_0x56498d){const _0x2f3119=_0xb0c99b;return JSON[_0x2f3119(0x36d)](_0x56498d)[_0x2f3119(0x23c)];}class Ge{constructor(){const _0x2d2eaf=_0xb0c99b;d(this,_0x2d2eaf(0x371),new v[(_0x2d2eaf(0x349))]()),d(this,_0x2d2eaf(0x1a5),this[_0x2d2eaf(0x371)]['asObservable']());}['onCommentUpdate'](_0x23b978){const _0x5c5049=_0xb0c99b;this[_0x5c5049(0x371)][_0x5c5049(0x3c7)](_0x23b978);}}var cs=Object['defineProperty'],ls=Object[_0xb0c99b(0x18e)],hs=(_0x171750,_0x30bbd2,_0x352989,_0x2a4cc3)=>{for(var _0x3af6e3=_0x2a4cc3>0x1?void 0x0:_0x2a4cc3?ls(_0x30bbd2,_0x352989):_0x30bbd2,_0x2004d4=_0x171750['length']-0x1,_0x1e7f08;_0x2004d4>=0x0;_0x2004d4--)(_0x1e7f08=_0x171750[_0x2004d4])&&(_0x3af6e3=(_0x2a4cc3?_0x1e7f08(_0x30bbd2,_0x352989,_0x3af6e3):_0x1e7f08(_0x3af6e3))||_0x3af6e3);return _0x2a4cc3&&_0x3af6e3&&cs(_0x30bbd2,_0x352989,_0x3af6e3),_0x3af6e3;},Ze=(_0x32cf69,_0x35657d)=>(_0x5672a5,_0x461b4b)=>_0x35657d(_0x5672a5,_0x461b4b,_0x32cf69);let q=class extends a[_0xb0c99b(0x463)]{constructor(_0x2dab2a,_0x2ccf72){const _0x37fd6e=_0xb0c99b;super(),d(this,_0x37fd6e(0x479),new Map()),(this[_0x37fd6e(0x3fb)]=_0x2dab2a,this['_userManagerService']=_0x2ccf72,this[_0x37fd6e(0x3d3)](a[_0x37fd6e(0x2ef)](v[_0x37fd6e(0x387)](this['_univerInstanceService'][_0x37fd6e(0x1a4)](a[_0x37fd6e(0x111)][_0x37fd6e(0x3e6)])[_0x37fd6e(0x3a7)](E[_0x37fd6e(0x1af)](_0x55b2e5=>_0x55b2e5[_0x37fd6e(0x4dd)]())),this[_0x37fd6e(0x3fb)][_0x37fd6e(0x1a4)](a[_0x37fd6e(0x111)]['UNIVER_DOC'])[_0x37fd6e(0x3a7)](E[_0x37fd6e(0x1af)](_0x4c1ea0=>_0x4c1ea0[_0x37fd6e(0x4dd)]())),this[_0x37fd6e(0x3fb)][_0x37fd6e(0x1a4)](a[_0x37fd6e(0x111)][_0x37fd6e(0x170)])['pipe'](E[_0x37fd6e(0x1af)](_0x4565a8=>_0x4565a8[_0x37fd6e(0x4dd)]())))[_0x37fd6e(0x33b)](_0x2a9bbf=>this[_0x37fd6e(0x4f4)](_0x2a9bbf)))));}[_0xb0c99b(0x1b5)](_0x369c4c){const _0x2bff04=_0xb0c99b;this[_0x2bff04(0xfe)]['setCurrentUser'](_0x369c4c);}['getCurrentUser'](){const _0x7f81a3=_0xb0c99b;return this[_0x7f81a3(0xfe)][_0x7f81a3(0x348)]();}[_0xb0c99b(0x117)](_0x178b44,_0x2196ea){const _0x400999=_0xb0c99b;let _0x296ca7=this[_0x400999(0x479)]['get'](_0x178b44);_0x296ca7||(_0x296ca7=new _s(),this[_0x400999(0x479)][_0x400999(0x4d0)](_0x178b44,_0x296ca7)),_0x296ca7[_0x400999(0x117)](_0x2196ea);}['removeMember'](_0x49436a,_0x5179f4){const _0x137742=_0xb0c99b,_0x12533a=this[_0x137742(0x479)][_0x137742(0x1a0)](_0x49436a);_0x12533a&&_0x12533a['removeMember'](_0x5179f4);}['getRoom'](_0x5dc253){const _0x276f24=_0xb0c99b;return this[_0x276f24(0x479)][_0x276f24(0x1a0)](_0x5dc253);}[_0xb0c99b(0x4b8)](_0x4fc2f7,_0x3e284c){const _0x377119=_0xb0c99b,_0x51345d=this[_0x377119(0x479)]['get'](_0x4fc2f7);if(_0x51345d)return _0x51345d[_0x377119(0x4b8)](_0x3e284c);}[_0xb0c99b(0x4f4)](_0x240573){const _0x4835cb=_0xb0c99b,_0x4b2d98=this['_roomMembers'][_0x4835cb(0x1a0)](_0x240573);_0x4b2d98&&(_0x4b2d98['dispose'](),this[_0x4835cb(0x479)][_0x4835cb(0x456)](_0x240573));}['dispose'](){const _0x5bed79=_0xb0c99b;this[_0x5bed79(0x479)][_0x5bed79(0x1cb)](_0x4539f1=>_0x4539f1[_0x5bed79(0x11c)]()),this[_0x5bed79(0x479)][_0x5bed79(0x460)]();}};q=hs([Ze(0x0,a[_0xb0c99b(0x49b)]),Ze(0x1,a[_0xb0c99b(0x455)](a['UserManagerService']))],q);class _s extends a['Disposable']{constructor(){super(...arguments),d(this,'_members',new Map());}[_0xb0c99b(0x11c)](){const _0xa17fe9=_0xb0c99b;this[_0xa17fe9(0x419)][_0xa17fe9(0x460)]();}[_0xb0c99b(0x117)](_0x18838a){const _0x321bd0=_0xb0c99b;this['_members'][_0x321bd0(0x4d0)](_0x18838a['memberID'],_0x18838a);}['removeMember'](_0x26b35f){this['_members']['delete'](_0x26b35f);}[_0xb0c99b(0x4b8)](_0x2a1150){const _0xf0b7b0=_0xb0c99b;return this[_0xf0b7b0(0x419)][_0xf0b7b0(0x1a0)](_0x2a1150);}}var us=Object[_0xb0c99b(0x3dd)],ds=Object['getOwnPropertyDescriptor'],Ss=(_0x409d59,_0x3b592b,_0x32f5f3,_0x18d9d0)=>{const _0x58f711=_0xb0c99b;for(var _0x369692=_0x18d9d0>0x1?void 0x0:_0x18d9d0?ds(_0x3b592b,_0x32f5f3):_0x3b592b,_0x540fae=_0x409d59[_0x58f711(0x23c)]-0x1,_0x28de0b;_0x540fae>=0x0;_0x540fae--)(_0x28de0b=_0x409d59[_0x540fae])&&(_0x369692=(_0x18d9d0?_0x28de0b(_0x3b592b,_0x32f5f3,_0x369692):_0x28de0b(_0x369692))||_0x369692);return _0x18d9d0&&_0x369692&&us(_0x3b592b,_0x32f5f3,_0x369692),_0x369692;},B=(_0x2830dc,_0x448171)=>(_0xc1a5b5,_0x4f3b75)=>_0x448171(_0xc1a5b5,_0x4f3b75,_0x2830dc),j=(_0x3e1d4f=>(_0x3e1d4f[_0x3e1d4f['IDLE']=0x0]=_0xb0c99b(0x382),_0x3e1d4f[_0x3e1d4f[_0xb0c99b(0x214)]=0x1]=_0xb0c99b(0x214),_0x3e1d4f[_0x3e1d4f[_0xb0c99b(0x4ed)]=0x2]=_0xb0c99b(0x4ed),_0x3e1d4f[_0x3e1d4f['ONLINE']=0x3]='ONLINE',_0x3e1d4f))(j||{});exports[_0xb0c99b(0x183)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x2bf398,_0x174bcf,_0x47655c,_0x36094c,_0x4bf2cb,_0x203017,_0x476ca9,_0x452b40,_0x11673c,_0xe34d00){const _0x2a442f=_0xb0c99b;super(),d(this,_0x2a442f(0x199),new v[(_0x2a442f(0x4b1))](0x0)),d(this,_0x2a442f(0x404),this[_0x2a442f(0x199)]['asObservable']()),d(this,_0x2a442f(0x380),new v[(_0x2a442f(0x349))]()),d(this,_0x2a442f(0x1c0),this['_event$'][_0x2a442f(0x3af)]()),d(this,_0x2a442f(0x1c7)),d(this,_0x2a442f(0x49f)),d(this,_0x2a442f(0x125)),d(this,_0x2a442f(0x350),!0x1),d(this,'_telemetryInfo',null),(this[_0x2a442f(0x47f)]=_0x2bf398,this[_0x2a442f(0x3cd)]=_0x47655c,this[_0x2a442f(0x2e7)]=_0x36094c,this[_0x2a442f(0x33f)]=_0x4bf2cb,this[_0x2a442f(0x3ec)]=_0x203017,this[_0x2a442f(0x26d)]=_0x476ca9,this[_0x2a442f(0x3f3)]=_0x452b40,this[_0x2a442f(0x22e)]=_0x11673c,this[_0x2a442f(0x467)]=_0xe34d00,this[_0x2a442f(0x350)]=!!this['_telemetryService'],_0x174bcf[_0x2a442f(0x3a7)](v['takeUntil'](this['dispose$']))[_0x2a442f(0x33b)](_0x38f5ed=>{const _0x2f1e67=_0x2a442f;var _0x42192a;typeof _0x38f5ed>'u'||(this['_socket']=_0x38f5ed,_0x38f5ed?(this[_0x2f1e67(0x496)](_0x38f5ed),this[_0x2f1e67(0x49f)]=_0x38f5ed['message$']['subscribe'](_0x5aa239=>{const _0x1fff58=_0x2f1e67;_0x5aa239[_0x1fff58(0x28d)]===this[_0x1fff58(0x47f)]&&this[_0x1fff58(0x2c0)](_0x5aa239);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x2f1e67(0x199)][_0x2f1e67(0x3c7)](0x2),(_0x42192a=this[_0x2f1e67(0x49f)])==null||_0x42192a[_0x2f1e67(0x3e9)](),this[_0x2f1e67(0x49f)]=null));}),this[_0x2a442f(0x3d3)](this[_0x2a442f(0x2e7)]['registerOnClose'](()=>{const _0x270974=_0x2a442f;var _0x178ee2;(_0x178ee2=this[_0x270974(0x1c7)])==null||_0x178ee2[_0x270974(0x3c3)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x270974(0x47f)]}});})));}get['sessionStatus'](){const _0x2d5b40=_0xb0c99b;return this[_0x2d5b40(0x199)][_0x2d5b40(0x3d1)]();}[_0xb0c99b(0x34f)](){const _0x16df02=_0xb0c99b;var _0x1dc6c1,_0x286390;return(_0x286390=(_0x1dc6c1=this[_0x16df02(0x1c7)])==null?void 0x0:_0x1dc6c1[_0x16df02(0x37a)])!=null?_0x286390:null;}[_0xb0c99b(0x11c)](){const _0x4ef17f=_0xb0c99b;super[_0x4ef17f(0x11c)](),this[_0x4ef17f(0x495)]['next'](),this[_0x4ef17f(0x495)][_0x4ef17f(0x484)]();}['close'](){const _0x117093=_0xb0c99b;var _0x3631bd,_0x51eb4f;this[_0x117093(0x16b)](),(_0x3631bd=this[_0x117093(0x1c7)])==null||_0x3631bd[_0x117093(0x3c3)]({'cmd':b[_0x117093(0x33c)],'data':{'roomID':this[_0x117093(0x47f)]}}),(_0x51eb4f=this[_0x117093(0x1c7)])==null||_0x51eb4f[_0x117093(0x1ea)](),this[_0x117093(0x380)][_0x117093(0x484)](),this['_sessionStatus$'][_0x117093(0x484)](),this[_0x117093(0x11c)]();}[_0xb0c99b(0x2c0)](_0x36b87f){const _0x483005=_0xb0c99b;_0x36b87f[_0x483005(0xf2)]===b['JOIN']?this[_0x483005(0x128)](_0x36b87f):_0x36b87f['cmd']===b[_0x483005(0x2a8)]&&this['_onRecvEvent'](_0x36b87f);}[_0xb0c99b(0x496)](_0x5f072c){const _0x349552=_0xb0c99b;this[_0x349552(0x199)]['next'](0x1),_0x5f072c[_0x349552(0x3c3)]({'cmd':b['JOIN'],'routeKey':this[_0x349552(0x47f)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0xb0c99b(0x128)](_0x27a588){const _0x5622b8=_0xb0c99b;var _0x5ed199;if(_0x27a588[_0x5622b8(0x17f)]===We[_0x5622b8(0x4c2)]){this[_0x5622b8(0x33f)]['show']({'type':X['MessageType'][_0x5622b8(0x4ba)],'content':this[_0x5622b8(0x26d)]['t']('session.room-full')}),this[_0x5622b8(0x199)][_0x5622b8(0x3c7)](0x2);return;}this[_0x5622b8(0x199)][_0x5622b8(0x3c7)](0x3);const _0x5aa84e=(_0x5ed199=_0x27a588[_0x5622b8(0x494)][_0x5622b8(0x358)][this[_0x5622b8(0x47f)]])==null?void 0x0:_0x5ed199[_0x5622b8(0x1fe)];_0x5aa84e&&_0x5aa84e[_0x5622b8(0x1cb)](_0x3ec962=>this[_0x5622b8(0x3f3)][_0x5622b8(0x117)](this[_0x5622b8(0x47f)],_0x3ec962));}[_0xb0c99b(0x41b)](_0x509a15){const _0x10c477=_0xb0c99b;try{const _0x484e2e=_0x509a15['data'];switch(_0x484e2e['eventID']){case _['CollaborationEvent'][_0x10c477(0x25b)]:this[_0x10c477(0x15a)](_0x484e2e),this['_event$'][_0x10c477(0x3c7)](_0x484e2e);break;case _['CollaborationEvent'][_0x10c477(0x1cc)]:this[_0x10c477(0x19a)](_0x484e2e),this['_event$'][_0x10c477(0x3c7)](_0x484e2e);break;case _['CollaborationEvent']['CHANGESET_ACK']:this[_0x10c477(0x15b)](),this[_0x10c477(0x4f2)](),this[_0x10c477(0x380)][_0x10c477(0x3c7)](_0x484e2e);break;case _[_0x10c477(0x153)][_0x10c477(0x174)]:this[_0x10c477(0x3cd)][_0x10c477(0x4d1)](_0x10c477(0x1f7)+JSON['stringify'](_0x484e2e)),this[_0x10c477(0x380)][_0x10c477(0x3c7)](_0x484e2e);break;case _['CollaborationEvent'][_0x10c477(0x201)]:this[_0x10c477(0x22e)][_0x10c477(0x483)](_0x484e2e[_0x10c477(0x494)]),this['_event$'][_0x10c477(0x3c7)](_0x484e2e);break;default:this[_0x10c477(0x380)][_0x10c477(0x3c7)](_0x484e2e);}}catch(_0x4c1be8){this[_0x10c477(0x3cd)][_0x10c477(0x4d1)](_0x4c1be8,_0x509a15);}}['_onUserJoin'](_0x40268d){const _0x29291e=_0xb0c99b;this[_0x29291e(0x3f3)]['updateMember'](this['_unitID'],_0x40268d['data']);}[_0xb0c99b(0x19a)](_0x372762){const _0x142959=_0xb0c99b;this[_0x142959(0x3f3)][_0x142959(0x359)](this[_0x142959(0x47f)],_0x372762[_0x142959(0x494)][_0x142959(0x37a)]);}async[_0xb0c99b(0x3c3)](_0x323994,_0x57d891){const _0x5051bf=_0xb0c99b;if(this['sessionStatus']!==0x3||!this[_0x5051bf(0x1c7)])throw new Error(_0x5051bf(0x1e8));try{_0x323994[_0x5051bf(0x1bd)]===_[_0x5051bf(0x153)][_0x5051bf(0x21f)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x5051bf(0x311)](_0x323994)),this[_0x5051bf(0x1c7)]['send']({'cmd':b['INGEST'],'routeKey':_0x57d891,'routeType':'','data':_0x323994});}catch(_0x5d9f42){this[_0x5051bf(0x3cd)]['error'](_0x5d9f42);}}[_0xb0c99b(0x46a)](){const _0x3782dc=_0xb0c99b;var _0x45bb42;this[_0x3782dc(0x125)]=window[_0x3782dc(0x2f0)](()=>{const _0x55f044=_0x3782dc;this[_0x55f044(0x125)]=null,this[_0x55f044(0x33f)][_0x55f044(0x126)]({'type':X[_0x55f044(0x20b)]['Error'],'content':this[_0x55f044(0x26d)]['t'](_0x55f044(0x2bd))});},(_0x45bb42=this[_0x3782dc(0x3ec)][_0x3782dc(0x2aa)](Ve))!=null?_0x45bb42:St);}[_0xb0c99b(0x4f2)](){const _0x8ca39f=_0xb0c99b;this[_0x8ca39f(0x125)]&&(clearTimeout(this[_0x8ca39f(0x125)]),this[_0x8ca39f(0x125)]=null);}[_0xb0c99b(0x311)](_0xe96236){const _0x2f8467=_0xb0c99b;if(!this[_0x2f8467(0x350)])return;const {data:_0x2e874b}=_0xe96236,{unitID:_0x388f9b,changeset:_0x44adf5}=_0x2e874b,{mutations:_0x380939,type:_0x25d0d7}=_0x44adf5;this[_0x2f8467(0x4aa)]={'unitId':_0x388f9b,'type':_0x25d0d7,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':as(_0x380939)};}[_0xb0c99b(0x15b)](){const _0x54dcbc=_0xb0c99b;if(this[_0x54dcbc(0x350)]){if(!this[_0x54dcbc(0x4aa)]){this['_logService'][_0x54dcbc(0x4d1)](_0x54dcbc(0x48d),_0x54dcbc(0x355));return;}this[_0x54dcbc(0x4aa)][_0x54dcbc(0x2dd)]=performance[_0x54dcbc(0x4b4)](),this[_0x54dcbc(0x4aa)][_0x54dcbc(0x238)]=this[_0x54dcbc(0x4aa)]['stopTime']-this[_0x54dcbc(0x4aa)]['startTime'],this[_0x54dcbc(0x467)][_0x54dcbc(0x274)](os,this[_0x54dcbc(0x4aa)]),this[_0x54dcbc(0x4aa)]=null;}}[_0xb0c99b(0x16b)](){this['_telemetryInfo']=null;}},exports[_0xb0c99b(0x183)]=Ss([B(0x2,a[_0xb0c99b(0x2b2)]),B(0x3,N[_0xb0c99b(0x221)]),B(0x4,N['IMessageService']),B(0x5,a[_0xb0c99b(0x195)]),B(0x6,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),B(0x7,a[_0xb0c99b(0x455)](q)),B(0x8,a['Inject'](Ge)),B(0x9,a[_0xb0c99b(0x1c6)](Bt[_0xb0c99b(0x1c8)]))],exports['CollaborationSession']);function _0x4d94(){const _0x3825d8=['FETCH_MISS','_getCtorByUniverType','parseChangesetToProtocol','m1Prime','defineProperty','AWAITING_WITH_PENDING','unit-cache-','visibilityState','create','_executeRemoteChangeset','_updateSubUnitFromURLParams','_transformUndoRedoStack','getUnitStatus$','UNIVER_SHEET','post','IRemoteInstanceService','unsubscribe','CollaborationStatusDisplay','NOT_COLLAB','_configService','_render','_docSyncEditingCollabCursorService','getParam','getOffsetConfig','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_eventUnsubscribe','_memberService','values','_drawAnchor','pending','BASE64','POST','_acknowledgedAwaitingChangeset','newCsEvent','_univerInstanceService','UNDEFINED','target','CHANGESET_REJ','InsertRowCommandId','row','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_cursors','csAckEvent','sessionStatus$','svg','_handleEvent','open$','loginUrlKey','INVALID_ARGUMENT','SetSelectionsOperation','_localCacheService','addObject','SNAPSHOT_SERVER_URL_KEY','size','function','_retryConnectingTimer','655432BEARTo','IUIPartsService','@univerjs/docs-ui','_transformStack','1em','_scheduleSaving','session','searchParams','_members','Injector','_onRecvEvent','_getAnchorBounding','unit','hasOwnProperty','_init','off-line-single','UniverCollaborationPlugin','textRanges','_sendHeartbeatTimer','/object/','_commandService','editing\x20status\x20changed\x20to','_initMergeInterceptor','serializeRangeWithSheet','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_updateState','arc','[CollaborationSessionService]','@univerjs-pro/collaboration','NOT_FOUND','readAsDataURL','SHOULD_CLOSE_CONN','NodePositionConvertToRectRange','_setupBeforeClosingHandler','current','_uiPartsService','parse','_lockTransition','_rescheduleHeartbeat','exhaustSavingTask','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_color','retryConnectingInterval','_getSendChangesetTimeout','getRangePointData','take','DocIMEInputManagerService','_remoteChangesetQueue','random','auth.needGotoLoginAlert','InsertRangeMoveRightCommandId','LIVESHARE_FETCH_OPERATIONS','_tryReconnect','_docTransformIMECacheService','IAuthzIoService','HEARTBEAT_TIMEOUT_KEY','onPointerMove$','_sendingTimer','getRenderById','EmptyMutation','_type','onload','SEND_CHANGESET_TIMEOUT_KEY','takeUntil','attrs','max','appendMutation','fetch_missing','Inject','delete','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','saveChangeset','onMissingChangesets','handleInsertRow','2127036rgqVzG','_startDocCollabCursor','registerHTTPInterceptor','history','column','clear','_clearScheduledTask','_singleActiveUnitService','Disposable','image/bmp','_state$','flatMap','_telemetryService','transformSelections','c2Prime','_scheduleCollaborationTimeoutTimer','INGEST','ImageUploadStatusType','TRANSFORM_CHANGE_OBSERVABLE_TYPE','width','synced','onMouseMove','handleMoveRange','LocaleService','\x20-\x20','SnapshotServerOverHTTPService','makeDirty','_listenToOnlineEvent','startsWith','deleteCollaborator','_roomMembers','currentSkeleton$','transformStack\x20failed!','_collabCursorController','_clearOtherTimers','ICommandService','_unitID','_createInitialState','_onLocalMutation','81pBYtta','onCommentUpdate','complete','objectType','[UniverCollaborationClientPlugin]','cursorInfo','_scheduleClearOtherTimer','COMPRESS_MUTATION_SEND','_onCursorDelete','isTransformMutationFailure','_clearUndo','[CollaborationSession]','_saveCache','apply','[CollaborationSessionService]:\x20socket\x20error','editingUnit','_awaitingChangeset','socket\x20open.','data','dispose$','_joinRoom','_removeClearOtherTimer','type','toString','_scheduleTimestamp','IUniverInstanceService','distinctUntilChanged','#fff','_getLoginPath','_socketMessageSubscription','_handleJoinEvent','red300','_lastPointer','setItem','_startSheetCollabCursor','reduce','originalMeta','/role','clearInterval','APPLY_REVISION_CONFILICT','_telemetryInfo','headers','put','_transformPreviousActiveRange','update','UniverCollaborationClientPlugin','patch','BehaviorSubject','awaiting_with_pending','_unitStatus','now','_getUndoStack','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','_sheetSkeletonManagerService','getMember','_initRequestHeader','Warning','conflict.content','newValue','_collaborationPaused','ThemeService','AuthzIoHttpService','body','getUndoRedoMutationParamsCache','FAIL','unitID','_cachedData','updateOfflineData','image/jpg','_undoRedoService','_status$','_submitChangeset','_urlService','toggleOffline','enableAuthServer','_collaborationSessionService','bottom','xlink:href','set','error','fromEventSubject','/allowed','transformUndoRedo','_entityInit$','delay','_createInitialStateImpl','_setupSubUnitSync','\x20to\x20','from','_themeService','evenodd','getUnitId','_onCursorUpdate','CollaborationStatus','fetchMissingChangesets','COLLAB_WEB_SOCKET_URL','addEventListener','loadOfflineData','mutations','interceptor','useDependency','all','LICENSE_IMPORT_SIZE_EXCEEDED','transformIMECache','_heartbeatTimer','popstate','range','OFFLINE','allowed','/universer-api/stream/file/upload','_handleLeaveEvent','_getSaveTimeout','_clearCollaborationTimeoutTimer','[OfflineState]:\x20received\x20changeset.','_removeRoom','_hover','ICollaborationSocketService','_clearTimeoutTimer','_createSocket','startRow','_clearLocalCache','createIdentifier','deepClone','color','not_collab','_getAPIPrefix','shareReplay','_replaceFileID','getColor','onlineStatusIcon','div','session.will-retry','[PendingState]:\x20received\x20acknowledgement.','cmd','isTransformMutationsWithChangesetSuccess','joinEvent','fill','PERMISSION_REJ','action','/universer-api/comb','_initStatusComponent','_updateURLWithCurrentState','message$','_handler','triggerDblclick','_userManagerService','actions','onPointerLeave$','throttleTime','isTransformChangesetsSuccess','FromArray','connectInjector','resize','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_undoStacks','_getScale','CollaborationController','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_ensureSubject','OnLifecycle','UniverIcon','UPDATE_PERMISSION_OBJ','_initCloseConn','_getMergeRange','UniverInstanceType','handleInsertRangeMoveDown','findNodePositionByCharIndex','_labelPosition','_permissionService','[CollaborationUndoRedoService]','updateMember','HttpExport','_selfUnitIDs','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','LICENSE_EXPORT_SIZE_EXCEEDED','dispose','RegularPolygon','listCollaborators','HttpImport','_unlockTransition','split','M0\x200H16V16H0z','#FFF','_transformSelections','_collaborationTimeoutTimer','show','Tooltip','_onJoinRoomEvent','_schedule','_initStatusListener','Vector2','currentColor','_docTransformSelectionsService','UNAUTHENTICATED','_injector','/universer-api/oidc/authpage','createCollaborator','getDocRanges','LifecycleStages','getSheetBySheetId','executeCommand','_online','result','_hideTimer','_colorAssignService','unitId','filter','location','COLORS','APPLY_REJECT','syncEditingCollabCursor','failed\x20to\x20apply\x20missed\x20changesets!','onRendered','_updateLocalCache','add','getSheetBlock','DocCollaborationEntity','x-univer-host','url(#on-line-single_clip0_910_349)','getAttachHeader','_registerRenderDependencies','_transitionLocked','WebURLService','Plugin','Error','getInterceptPoints','lineTo','roomMembers$','runRefRangeMutations','Univer','CollaborationEvent','image/jpeg','YUUMI_UNABLE_LOAD_URL','status$','onTransformChange$','IURLService','CHANGESET_REVISION_CONFILICT','_onUserJoin','_stopTelemetryCollaborationNewChangeset','Rect','subscribeEvent','_onRemoteChangeset','collab-text-range-','_registerDependencies','_textBubble','_backgroundColor','textEncoder','addImageSourceCache','@univerjs/core','_docStateChangeManagerService','collabStatus.syncing','\x20in\x20_schedule.','_socketService','Starting','_throwTelemetryCollaborationNewChangeset','_waitCount','SEND_CHANGESET_TIMEOUT','unitId\x20is\x20not\x20found','InsertRangeMoveDownCommandId','UNIVER_SLIDE','LICENSE_MAX_UNITS_EXCEEDED','324265mvBCsh','top','MSG_FOR_ERROR','_id','visibilitychange','[PendingState]:\x20received\x20rejection.','COMPRESS_MUTATION_APPLY','getMergeData','_draw','XHRHTTPImplementation','0\x200\x2017\x2016','assign','/universer-api/snapshot/','code','_initEventListeners','storage','Module','CollaborationSession','univer-offline','collabCursorState$','_range','url','init','LIVESHARE_OPERATION','CollaborationSocketService','_loadSheet','icon','_localStorageService','getOwnPropertyDescriptor','DependentOn','collaboratorID','has','collaboration-client.config','/block/','collaboration-client.offline-data-not-saved','IConfigService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','LIVESHARE_NEW_HOST','InsertSheetMutation','_sessionStatus$','_onUserLeave','subUnitId','&to=','height','connection\x20error','/unit/','get','createElement','CommandType','APPLY_PERMISSION_DENIED','getTypeOfUnitDisposed$','commentUpdate$','_compressMutationService','_createHandler','TEXT_RANGE_LAYER_INDEX','[CollaborationEntity]','_queuedRemoteChangesets','getCoordByCell','DesktopCollaborationStatusDisplayController','string','JOIN','map','DocSelectionManagerService','setParam','collaMsg','getTime','AWAITING','setCurrentUser','off-line-single_clip0_910_343','resend','offline','revision','getActiveSheet','substring','COMPLETION_FINISHED','eventID','@univerjs/rpc','children','event$','_snapshotServerService','DeleteRangeMoveUpCommandId','incrementRevOfUnit','defIds','onSendChangeset','Optional','_socket','ITelemetryService','/-/object/list','_onFetchMissResult','forEach','USERS_LEAVE','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','saveSnapshot','UNIVER_COLLABORATION_CLIENT_PLUGIN','Rectangle','_socketReady','permissionRejEvent','_sendHeartbeat','black','some','getCurrent','DataLoaderController','drawWith','registerRenderModule','1893656cHEelM','_scheduleHeartbeat','@univerjs/engine-formula','_onConflict','RETRY_CONNECTING_MAX_COUNT_KEY','LIVESHARE_TERMINATE','@univerjs/sheets-ui','/universer-api/snapshot','_docSkeletonManagerService','[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.','onTransformSelections','_getRedoStack','indexOf','SheetCollaborationEntity','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','assignAColorForMemberID','close','setShapeProps','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','includes','ISnapshotServerService','updateCollaborator','IPermissionService','setConfig','_transformService','SheetsSelectionsService','getUnitOnRev','[CollaborationState]:\x20apply\x20error!','onTransformIME','save\x20fail\x20reason\x20is\x20','getVpScrollXYInfoByPosToVp','extend','HEADER_MENU','getSheetId','disposeUnit','_getDownloadEndpointURL','members','_cursorShapes','m2Prime','COMMENT_UPDATE','useCallback','focused$','snapshotServerUrl','onStarting','unknown','entries','_imageSourceCache','objects','getImage','MessageType','_transformRemoteChangesetByIMECache','univer-pro.collaboration-client-socket-service','then','NO_OTHER_CLIENTS_EDITING','getCurrentSelections','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','collabStatus.fetchMiss','@univerjs/telemetry','JOINING','sequenceExecute','purple300','_revisionService','UNIVER_UNKNOWN','_removeCollabCursors','awaiting','ERROR_EXCEED_SIZE','append','reject','_clearRedo','SUBMIT_CHANGESET','@univerjs/drawing','IBeforeCloseService','toggleOnline','method','&assign=','_transformIMECache','ImageIoService','react','batchAllowed','CONFLICT','switchMap','key','unload','SetWorksheetActivateCommand','_commentService','hide','requireSession','forwardRef','INTERNAL_ERROR','backgroundColor','IHTTPImplementation','onPointerEnter$','hovered','replaceState','duration','[DataLoaderController]','saveSheetBlock','SNAPSHOT_URL_KEY','length','getUnhiddenWorksheets','uni.network.url-service','SUCCUSS','isTransformMutationsWithChangesetFailure','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','DeleteRangeMoveLeftCommandId','_substituteUndoStack','conflict','APPLY_NON_SEQUENTIAL_REVISION','engine','SnapshotService','_disabled','awaitingChangeset','with','find','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUniverSheetInstance','OnLineSingle','_context','json','transformByState','sendChangesetTimeout','getCollabEntity$','UNIVER_DOC','getAncestorScale','PENDING','_hovered','_getCurrentRevision','_state','_cursorInfo$','USERS_ENTER','title','defs','getImageSourceCache','reconnect','resourceIDs','skeleton','b64DecodeUnicode','_waitForHeartbeatResponse','JSONX','...','text','50500ixnZYw','_snapshotService','origin','Undefined','_roomMembers$','verdancy600','_localeService','_colorIndex','saveImage','HEARTBEAT_INTERVAL_KEY','YUUMI_SUBSCRIPTION_NOT_FOUND','_updateLocalCursor','ILocalStorageService','capture','CollaborationEntity','_session','VIEWPORT_KEY','collab-text-anchor-','_onConnectionFailed','currentTheme$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','CONNECTOR_DATA_TOO_LARGE','onRemoteChangeset','/resources','_candidateSocket','downloadEndpointUrl','LOGIN_URL_KEY','_replayCachedMutations','DisposableCollection','_fetchMissChangesets','_renderManagerService','Tools','mapDocumentTypeToUniverType','_showConflictNotification','Shape','CollaborationSessionService','prototype','_decreaseWaiting','routeKey','removeParam','NodePositionConvertToCursor','changesets','NEW_CHANGESETS','serializeCombRequest','MUTATION','enableOfflineEditing','idSuffix','selection','tag','compose','registerComponent','PERMISSION_DENIED','createInstance','SNAPSHOT_HAS_BEEN_REMOVED','name','_handleHover','@univerjs/ui','_scene','_instanceService','_anchor','4610333yHWVUe','getTypeOfUnitAdded$','collaboration_new_changeset','ranges','getSkeleton','RECV','registerRefRange','getConfig','getUnitType','onCommandExecuted','0\x200\x2016\x2016','SheetPermissionInitController','SheetCollabCursorShape','isInternalEditorID','_initCommandExecutedListener','ILogService','_drawTextRange','contains','clsx','/collaborator','state','baseRev','LocalCacheService','_config','toRgbString','onStateChange','session.collaboration-timeout','catch','pluginName','_onCombEvent','_retryCount','SYNCED','replace','?size=','_collabSessionService','_updateCollabCursors','UPDATE_CURSOR','ImageSourceType','deserializeToCombResponse','ThresholdInterceptorFactory','_collabCursorState$','_incrementRevisionNumber','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isPermissionRej','UNRECOGNIZED','BuiltInUIPart','on-line-single_clip0_910_349','AUTHZ_URL_KEY','colorChannel1','commentUpdateEvent','c1Prime','transformMutationsWithChangeset','userID','_isPermissionRej','save','push','HELLO','getWorkbookSelections','stopTime','\x0aCurrent:\x20','collaboration-session-retry','setActiveRange','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','/-/object/-/batch_allowed','params','_updateStatus','[SyncedState]:\x20received\x20rejection.','MergeInterceptorFactory','_beforeCloseService','_httpService','_saveTaskMap','getDeserializedSheetBlock','handleDeleteRangeMoveUp','roomMembers','isArray','_sheetTransformSelectionsService','toDisposable','setTimeout','min','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onTransformRemoteChangesetByIMECache','online','call','HEARTBEAT_TIMEOUT','getCollabCursors$','none','_transformUndoredo','getCurrentRevOfUnit','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','round','className','closeSession','collab-client.tooltip.reconnect','WebSocketService','debounce','_onRemoteRejected','collaboration.single-unit.warning','_onMessage','ONLINE','HTTPRequest','/universer-api/file/{fileID}/sign-url','_socket$','OTHER_CLIENTS_EDITING','PSEUDO_FETCH_MISSING_RESULT','_change$','getCollabEntity','objectActions','TOO_MANY_REQUESTS','_refRangeService','gold400','_startTelemetryCollaborationNewChangeset','ColorKit','_initResize','@univerjs/engine-render','transformRemoteChangeset','unshift','onSyncEditingCollabCursor','encodeURIComponent','HTTPService','_redoStacks','[OfflineState]:\x20received\x20acknowledgement.','rgba(255,\x20255,\x20255,\x200.01)','FETCH_MISSING','_getAPIPrefixPath','_collaborationController','getOwnPropertySymbols','_assignedColors','_name','onlyLocal','createSocket','_onOffline','LICENSE_DISTRO_REJECTED','transformMutation','{fileID}','_send','CompressMutationService','objectID','replaceTextRanges','_notificationService','_shapes','fillStyle','@univerjs/design','_onConnectionOpen','measureText','infoRsp','useRef','_timeoutTimer','translate(.97)','_http','_unitOnClients','onMissedChangesetFetched','handleInsertRangeMoveRight','subscribe','LEAVE','restore','collaboration.closeRoom','_messageService','saveOfflineData','_onRemoteACK','RevisionService','refreshPermission','onlineStatusTitle','getFocusedUnit','rxjs','debug','getCurrentUser','Subject','UNIVER_PROJECT','@univerjs/network','univer-online-status','IContextService','use','getMemberID','_shouldReportTelemetry','enableLocalCache','_onRefRangeChange','&source=','override','telemetry\x20info\x20is\x20not\x20initialized','doc.mutation.rich-text-editing','_startCollaboration','roomInfos','removeMember','transformChangesets','parseProtocolChangeset','SessionStatus','shouldCloseConn','deserializeRangeWithSheet','fillText','DEFAULT_FILE_NAME','COLLAB_SUBMIT_CHANGESET_URL_KEY','getSheetObject','href','_applyRemoteChangeset','_refreshCollabCursors','status','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','endRow','Steady','generateRandomId','permission.content','path','stringify','_anchorDot','transform','getResourcesRequest','_commentUpdate$','setAlpha','concat','_initUnitPermissionChange','conflict.title','_toggleOnline','handleDeleteRangeMoveLeft','ACTIVE_UNIT_EVENT_CHANNEL','ERROR_IMAGE_TYPE','memberID','LOCAL_CACHE_INTERVAL_KEY','ITransformService','EffectRefRangId','displayName','_syncEditingCollabCursorService','_event$','_syncEditingCollabCursor','IDLE','_docSkeleton','ALREADY_EXISTS','error$','?url=','merge','isActive','_getUploadFileURL','close$','disableLocalCache','image/png','clearTimeout','localeService','liveShareNewHost','onRemoteAck','RETRY_CONNECTING_MAX_COUNT','initWorkbookPermissionChange','RemoveRowCommandId','UnitEmbedded','IUndoRedoService','RichTextEditingMutation','requestParams','UnitSnapshot','file','42sElnpu','UNKNOWN_CODE','_checkMissing','_HTTPService','toStringTag','_loadDoc','fetchMiss','SNAPSHOT_INVALID_SNAPSHOT','COLLAB_WEB_SOCKET_URL_KEY','putCollaborators','_entities','collabSubmitChangesetUrl','6338zFntzX','pipe','_pendingMutations','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onRemoteRej','combineLatest','fetchThroughInterceptors','univerjs-icon\x20univerjs-icon-','onlineStatus','asObservable','jiqing500','fromCollab','getCellPositionByOffset','_tryEnsureSocket','csRejEvent','FileId','encode','collabWebSocketUrl','urlChange$','_getSnapshotAPIPrefix','authzUrl','IMessageService','WorkbookEditablePermission','cursorInfo$','_sessions','confirm','_drawRectRange','RxDisposable','LIVESHARE_REQUEST_HOST','send','_getSheetObject','collabStatus.offline','getCurrentUnitForType','next','updatePermissionPoint','_handleHeartbeatEvent','registerBeforeClose','/universer-api/authz','/new_changes','_logService','CommentService','/object','@univerjs-pro/license','getValue','_toggleOffline','disposeWithMe','reverse','ERROR_IMAGE','debounceTime','submit\x20changeset\x20error!','snapshot'];_0x4d94=function(){return _0x3825d8;};return _0x4d94();}var vs=Object[_0xb0c99b(0x3dd)],fs=Object[_0xb0c99b(0x18e)],gs=(_0x22d9b8,_0x243933,_0xf38017,_0x2b234d)=>{const _0xcda1af=_0xb0c99b;for(var _0x4c0b8b=_0x2b234d>0x1?void 0x0:_0x2b234d?fs(_0x243933,_0xf38017):_0x243933,_0x432714=_0x22d9b8[_0xcda1af(0x23c)]-0x1,_0x1799ea;_0x432714>=0x0;_0x432714--)(_0x1799ea=_0x22d9b8[_0x432714])&&(_0x4c0b8b=(_0x2b234d?_0x1799ea(_0x243933,_0xf38017,_0x4c0b8b):_0x1799ea(_0x4c0b8b))||_0x4c0b8b);return _0x2b234d&&_0x4c0b8b&&vs(_0x243933,_0xf38017,_0x4c0b8b),_0x4c0b8b;},Z=(_0x2f81f4,_0x2b10a7)=>(_0x45744c,_0xf8f8bf)=>_0x2b10a7(_0x45744c,_0xf8f8bf,_0x2f81f4);exports[_0xb0c99b(0x28a)]=class extends a[_0xb0c99b(0x463)]{constructor(_0x300ec8,_0x50e410,_0x56a4ee,_0x3f345f,_0x2540a5,_0x2ae296){const _0x687f65=_0xb0c99b;super(),d(this,_0x687f65(0x308),new v[(_0x687f65(0x4b1))](void 0x0)),d(this,'socket$',this['_socket$'][_0x687f65(0x3af)]()),d(this,_0x687f65(0x27f),null),d(this,_0x687f65(0x3be),new Map()),d(this,'_status$',new v[(_0x687f65(0x4b1))](j[_0x687f65(0x382)])),d(this,_0x687f65(0x156),this[_0x687f65(0x4c8)][_0x687f65(0x3af)]()),d(this,'_socketReady',!0x1),d(this,_0x687f65(0x410)),d(this,'_retryCount',0x0),d(this,_0x687f65(0x423)),d(this,_0x687f65(0x335)),(this[_0x687f65(0x12f)]=_0x300ec8,this[_0x687f65(0x26d)]=_0x50e410,this[_0x687f65(0x33f)]=_0x56a4ee,this[_0x687f65(0x3cd)]=_0x3f345f,this[_0x687f65(0x3ec)]=_0x2540a5,this[_0x687f65(0x169)]=_0x2ae296,this[_0x687f65(0x180)]());}get[_0xb0c99b(0x1c7)](){const _0x3426b9=_0xb0c99b;return this[_0x3426b9(0x308)]['getValue']();}[_0xb0c99b(0x180)](){this['_listenToOfflineEvent'](),this['_listenToOnlineEvent']();}['dispose'](){const _0x5aca15=_0xb0c99b;super['dispose'](),this[_0x5aca15(0x3be)][_0x5aca15(0x1cb)](_0x3f897f=>_0x3f897f[_0x5aca15(0x11c)]()),this[_0x5aca15(0x3be)][_0x5aca15(0x460)](),this[_0x5aca15(0x4c8)][_0x5aca15(0x484)]();}async[_0xb0c99b(0x230)](_0x2a8985){const _0x4b94a3=_0xb0c99b;if(this[_0x4b94a3(0x3be)][_0x4b94a3(0x191)](_0x2a8985))return this[_0x4b94a3(0x3be)][_0x4b94a3(0x1a0)](_0x2a8985);this[_0x4b94a3(0x3b3)]();const _0x2a920b=this[_0x4b94a3(0x12f)]['createInstance'](exports[_0x4b94a3(0x183)],_0x2a8985,this[_0x4b94a3(0x308)]['asObservable']());return this[_0x4b94a3(0x3be)][_0x4b94a3(0x4d0)](_0x2a8985,_0x2a920b),_0x2a920b;}[_0xb0c99b(0x2fe)](_0x32488c){const _0x1d6f5e=_0xb0c99b;var _0x17a38f;const _0x39bca6=this[_0x1d6f5e(0x3be)][_0x1d6f5e(0x1a0)](_0x32488c);_0x39bca6&&(this['_sessions'][_0x1d6f5e(0x456)](_0x32488c),_0x39bca6[_0x1d6f5e(0x1ea)]()),this[_0x1d6f5e(0x3be)][_0x1d6f5e(0x40e)]||(_0x17a38f=this[_0x1d6f5e(0x1c7)])==null||_0x17a38f[_0x1d6f5e(0x1ea)]();}[_0xb0c99b(0x25f)](){const _0x5e1f36=_0xb0c99b;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x5e1f36(0x410)]),this[_0x5e1f36(0x410)]=null),this[_0x5e1f36(0x445)]();}[_0xb0c99b(0x4f8)](){const _0x10eb7a=_0xb0c99b;var _0x3131e9,_0x174163;const _0x239af2=this[_0x10eb7a(0x3ec)][_0x10eb7a(0x2aa)](ut),_0x1d9b1f=this['_configService'][_0x10eb7a(0x2aa)](L),_0x463940=(_0x174163=(_0x3131e9=_0x1d9b1f==null?void 0x0:_0x1d9b1f[_0x10eb7a(0x3b7)])!=null?_0x3131e9:_0x239af2)!=null?_0x174163:Xt,_0x3c2a7b=this[_0x10eb7a(0x169)]['createSocket'](_0x463940);return this[_0x10eb7a(0x27f)]=_0x3c2a7b,_0x3c2a7b;}[_0xb0c99b(0x3b3)](){const _0x4ff10e=_0xb0c99b;var _0x5735f3,_0x3edeec;try{const _0x11893a=(_0x3edeec=(_0x5735f3=this[_0x4ff10e(0x1c7)])!=null?_0x5735f3:this['_candidateSocket'])!=null?_0x3edeec:this[_0x4ff10e(0x4f8)]();if(_0x11893a){const _0x51d697=_0x11893a[_0x4ff10e(0x3c3)];_0x11893a[_0x4ff10e(0x3c3)]=_0x4a98a7=>(this[_0x4ff10e(0x437)](),_0x51d697[_0x4ff10e(0x48f)](_0x11893a,[_0x4a98a7])),_0x11893a[_0x4ff10e(0xfb)][_0x4ff10e(0x33b)](_0x342e1f=>this[_0x4ff10e(0x304)](_0x11893a,_0x342e1f)),_0x11893a[_0x4ff10e(0x385)][_0x4ff10e(0x3a7)](E[_0x4ff10e(0x43e)](0x1))[_0x4ff10e(0x33b)](_0x88c1b1=>this['_logService'][_0x4ff10e(0x4d1)](_0x4ff10e(0x490),_0x88c1b1)),_0x11893a[_0x4ff10e(0x407)]['pipe'](E[_0x4ff10e(0x43e)](0x1))[_0x4ff10e(0x33b)](()=>{const _0x417d84=_0x4ff10e;this[_0x417d84(0x331)](_0x11893a);}),_0x11893a[_0x4ff10e(0x38a)]['pipe'](E[_0x4ff10e(0x43e)](0x1))['subscribe'](_0x3ebc49=>{const _0x1de49a=_0x4ff10e;this[_0x1de49a(0x3cd)][_0x1de49a(0x347)]('[CollaborationSessionService]','socket\x20close',_0x3ebc49),this[_0x1de49a(0x279)]();});}}catch(_0x61d779){this['_logService'][_0x4ff10e(0x4d1)](_0x61d779),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x31aeaa){const _0x3a5933=_0xb0c99b;this[_0x3a5933(0x3cd)]['debug'](_0x3a5933(0x42c),_0x3a5933(0x493)),_0x31aeaa['send']({'cmd':b['HELLO']}),this[_0x3a5933(0x437)]();}['_listenToOfflineEvent'](){const _0x258d8d=_0xb0c99b;window[_0x258d8d(0x4e2)](_0x258d8d(0x1b8),()=>this[_0x258d8d(0x325)]());}[_0xb0c99b(0x325)](){const _0x1c1513=_0xb0c99b;this[_0x1c1513(0x1d1)]=!0x1,this[_0x1c1513(0x27f)]=null,this[_0x1c1513(0x4c8)]['next'](j['OFFLINE']),this[_0x1c1513(0x308)][_0x1c1513(0x3c7)](null),this[_0x1c1513(0x4f7)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x38f6ad=_0xb0c99b;var _0x54da4f;this[_0x38f6ad(0x325)](),this[_0x38f6ad(0x2c1)]<((_0x54da4f=this[_0x38f6ad(0x3ec)][_0x38f6ad(0x2aa)](vt))!=null?_0x54da4f:Jt)?(this['_messageService'][_0x38f6ad(0x126)]({'key':_0x38f6ad(0x2df),'type':X['MessageType']['Warning'],'content':this[_0x38f6ad(0x26d)]['t'](_0x38f6ad(0xf0))}),this[_0x38f6ad(0x445)]()):this[_0x38f6ad(0x33f)]['show']({'key':_0x38f6ad(0x2df),'type':X['MessageType']['Error'],'content':this[_0x38f6ad(0x26d)]['t']('session.connection-failed')});}[_0xb0c99b(0x476)](){const _0x59c3c9=_0xb0c99b,_0x83ae86=()=>{const _0xd3f6eb=_0x4e0f;this[_0xd3f6eb(0x1c7)]||this[_0xd3f6eb(0x25f)]();},_0x212f59=()=>{const _0x19f098=_0x4e0f;this[_0x19f098(0x1c7)]||document[_0x19f098(0x3e0)]==='hidden'||this[_0x19f098(0x25f)]();};window[_0x59c3c9(0x4e2)](_0x59c3c9(0x2f4),_0x83ae86),document['addEventListener'](_0x59c3c9(0x176),_0x212f59);}[_0xb0c99b(0x445)](){const _0x124d2e=_0xb0c99b;var _0x21cd09;const _0x27d50c=this[_0x124d2e(0x2c1)],_0x2a2402=this[_0x124d2e(0x3ec)][_0x124d2e(0x2aa)](L),_0x543a0f=_0x27d50c===0x0?0x0:((_0x21cd09=_0x2a2402==null?void 0x0:_0x2a2402[_0x124d2e(0x43b)])!=null?_0x21cd09:zt)*0x2**_0x27d50c;this[_0x124d2e(0x410)]=window[_0x124d2e(0x2f0)](()=>{const _0x9213a5=_0x124d2e;clearTimeout(this[_0x9213a5(0x410)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x543a0f),this[_0x124d2e(0x2c1)]+=0x1;}[_0xb0c99b(0x304)](_0x110ffc,_0x234b11){const _0x1a0794=_0xb0c99b,{cmd:_0x1a886d}=_0x234b11;_0x1a886d===b['HELLO']&&!this['_socketReady']&&(_0x110ffc[_0x1a0794(0x37a)]=_0x234b11['data'][_0x1a0794(0x37a)],this[_0x1a0794(0x308)]['next'](_0x110ffc),this[_0x1a0794(0x4c8)]['next'](j[_0x1a0794(0x305)]),this[_0x1a0794(0x1d1)]=!0x0,this[_0x1a0794(0x27f)]=null),_0x1a886d===b['HEARTBEAT']&&this[_0x1a0794(0x4f7)](),this[_0x1a0794(0x437)]();}[_0xb0c99b(0x437)](){const _0x17f2c3=_0xb0c99b;var _0x323fbf;this['_clearHeartbeatTimer'](),this[_0x17f2c3(0x423)]=window['setTimeout'](()=>this[_0x17f2c3(0x1d3)](),(_0x323fbf=this[_0x17f2c3(0x3ec)][_0x17f2c3(0x2aa)](dt))!=null?_0x323fbf:qt);}[_0xb0c99b(0x1d3)](){const _0x33263a=_0xb0c99b;this[_0x33263a(0x1c7)][_0x33263a(0x3c3)]({'cmd':b['HEARTBEAT']}),this[_0x33263a(0x263)]();}['_waitForHeartbeatResponse'](){const _0x39004c=_0xb0c99b;var _0x3235d2;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x39004c(0x279)](),(_0x3235d2=this[_0x39004c(0x3ec)][_0x39004c(0x2aa)](Ve))!=null?_0x3235d2:St);}['_clearHeartbeatTimer'](){const _0x1686ac=_0xb0c99b;this[_0x1686ac(0x423)]!=null&&(clearTimeout(this[_0x1686ac(0x423)]),this[_0x1686ac(0x423)]=null);}[_0xb0c99b(0x4f7)](){const _0x45fc02=_0xb0c99b;this[_0x45fc02(0x335)]!=null&&(clearTimeout(this[_0x45fc02(0x335)]),this[_0x45fc02(0x335)]=null);}},exports[_0xb0c99b(0x28a)]=gs([Z(0x0,a[_0xb0c99b(0x455)](a['Injector'])),Z(0x1,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),Z(0x2,N[_0xb0c99b(0x3bb)]),Z(0x3,a[_0xb0c99b(0x2b2)]),Z(0x4,a['IConfigService']),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0xb0c99b(0x3dd)],Is=Object[_0xb0c99b(0x18e)],ps=(_0x16694c,_0x4b04f9,_0x4a29c0,_0x285272)=>{const _0x432e4f=_0xb0c99b;for(var _0x553bb6=_0x285272>0x1?void 0x0:_0x285272?Is(_0x4b04f9,_0x4a29c0):_0x4b04f9,_0x3aeb50=_0x16694c[_0x432e4f(0x23c)]-0x1,_0x47b7c5;_0x3aeb50>=0x0;_0x3aeb50--)(_0x47b7c5=_0x16694c[_0x3aeb50])&&(_0x553bb6=(_0x285272?_0x47b7c5(_0x4b04f9,_0x4a29c0,_0x553bb6):_0x47b7c5(_0x553bb6))||_0x553bb6);return _0x285272&&_0x553bb6&&ms(_0x4b04f9,_0x4a29c0,_0x553bb6),_0x553bb6;},ye=(_0x118404,_0x3c0e85)=>(_0x8af845,_0x4ca255)=>_0x3c0e85(_0x8af845,_0x4ca255,_0x118404);let Ie=class{constructor(_0x548ed7,_0x42416d,_0x11e8bf){const _0x4206c0=_0xb0c99b;this[_0x4206c0(0x12f)]=_0x548ed7,this[_0x4206c0(0x1f2)]=_0x42416d,this['_renderManagerService']=_0x11e8bf;}[_0xb0c99b(0x4e9)](_0x2ac268){const _0x39e260=_0xb0c99b;this[_0x39e260(0x3e4)](_0x2ac268),this['_transformPreviousActiveRange'](_0x2ac268);}['transformRemoteChangeset'](_0x24d5d2){const _0xdfebe5=_0xb0c99b,{unitID:_0x230e24}=_0x24d5d2,_0x524c48=this['_renderManagerService'][_0xdfebe5(0x44b)](_0x230e24)[_0xdfebe5(0x24a)](w[_0xdfebe5(0x43f)]),{redoCache:_0x43b625}=_0x524c48[_0xdfebe5(0x4c1)]();if(_0x43b625[_0xdfebe5(0x23c)]===0x0)return _0x24d5d2;let _0x528c8c=a[_0xdfebe5(0x286)]['deepClone'](_0x24d5d2[_0xdfebe5(0x4e4)][0x0]);for(let _0x43c8c3=0x0;_0x43c8c3<_0x43b625[_0xdfebe5(0x23c)];_0x43c8c3++){const _0x666fba={'id':_0xdfebe5(0x356),'params':{..._0x43b625[_0x43c8c3]}},_0x346e32=this[_0xdfebe5(0x1f2)][_0xdfebe5(0x327)](_0x528c8c,_0x666fba,!0x1);if(_[_0xdfebe5(0x48b)](_0x346e32))throw _0x346e32[_0xdfebe5(0x4d1)];_0x528c8c=_0x346e32[_0xdfebe5(0x3dc)];}return{...a['Tools'][_0xdfebe5(0xe7)](_0x24d5d2),'mutations':[_0x528c8c]};}[_0xb0c99b(0x3e4)](_0x5789d4){const _0x541d0f=_0xb0c99b,{unitID:_0x5e7fe4}=_0x5789d4,_0x452fcc=this[_0x541d0f(0x285)][_0x541d0f(0x44b)](_0x5e7fe4)[_0x541d0f(0x24a)](w['DocIMEInputManagerService']),{undoCache:_0x10eb2e,redoCache:_0x13c5cd}=_0x452fcc[_0x541d0f(0x4c1)]();if(_0x10eb2e['length']===0x0||_0x13c5cd[_0x541d0f(0x23c)]===0x0)return;const _0x1ede26=[],_0x54b8a5=[];let _0x237dee=a[_0x541d0f(0x286)][_0x541d0f(0xe7)](_0x5789d4['mutations'][0x0]),_0x15b3e6=a[_0x541d0f(0x286)][_0x541d0f(0xe7)](_0x5789d4[_0x541d0f(0x4e4)][0x0]);for(let _0x5b0563=_0x10eb2e[_0x541d0f(0x23c)]-0x1;_0x5b0563>=0x0;_0x5b0563--){const _0x3790bf={'id':_0x541d0f(0x356),'params':{..._0x10eb2e[_0x5b0563]}},_0xb57c09={'id':_0x541d0f(0x356),'params':{..._0x13c5cd[_0x5b0563]}},_0x19bf3e=this['_transformService'][_0x541d0f(0x327)](_0x237dee,_0x3790bf,!0x1),_0x5c154a=this[_0x541d0f(0x1f2)][_0x541d0f(0x327)](_0x15b3e6,_0xb57c09,!0x1);if(_['isTransformMutationFailure'](_0x19bf3e))throw _0x19bf3e[_0x541d0f(0x4d1)];if(_[_0x541d0f(0x48b)](_0x5c154a))throw _0x5c154a[_0x541d0f(0x4d1)];_0x1ede26[_0x541d0f(0x316)](_0x19bf3e[_0x541d0f(0x200)][_0x541d0f(0x2e3)]),_0x54b8a5[_0x541d0f(0x316)](_0x5c154a[_0x541d0f(0x200)][_0x541d0f(0x2e3)]),_0x237dee=_0x19bf3e[_0x541d0f(0x3dc)],_0x15b3e6=_0x5c154a[_0x541d0f(0x3dc)];}_0x452fcc['setUndoRedoMutationParamsCache']({'undoCache':_0x1ede26,'redoCache':_0x54b8a5});}[_0xb0c99b(0x4ad)](_0x390070){const _0x4b3f43=_0xb0c99b,{unitID:_0x163a62}=_0x390070,_0x7d8691=this[_0x4b3f43(0x285)][_0x4b3f43(0x44b)](_0x163a62)[_0x4b3f43(0x24a)](w[_0x4b3f43(0x43f)]),_0x27f77e=_0x7d8691['getActiveRange']();if(_0x27f77e==null)return;const _0x2fdf8c=[{'id':_0x4b3f43(0x356),'params':{'unitId':_0x390070[_0x4b3f43(0x4c3)],'actions':null,'textRanges':[_0x27f77e]}}],_0x107767=this[_0x4b3f43(0x1f2)][_0x4b3f43(0x2d6)](_0x390070,_0x2fdf8c);if(!_[_0x4b3f43(0xf3)](_0x107767))throw _0x107767[_0x4b3f43(0x4d1)];const _0x53e0a2=_0x107767['m2Prime'][0x0]['params']['textRanges'];Array[_0x4b3f43(0x2ed)](_0x53e0a2)&&_0x53e0a2['length']&&_0x7d8691[_0x4b3f43(0x2e0)](_0x53e0a2[0x0]);}};Ie=ps([ye(0x0,a['Inject'](a[_0xb0c99b(0x41a)])),ye(0x1,_[_0xb0c99b(0x37c)]),ye(0x2,R['IRenderManagerService'])],Ie);var Cs=Object[_0xb0c99b(0x3dd)],Es=Object[_0xb0c99b(0x18e)],bs=(_0x208077,_0x36f1b2,_0x48cb08,_0x254feb)=>{const _0x57a860=_0xb0c99b;for(var _0x3ef470=_0x254feb>0x1?void 0x0:_0x254feb?Es(_0x36f1b2,_0x48cb08):_0x36f1b2,_0x3f6424=_0x208077[_0x57a860(0x23c)]-0x1,_0x333ddf;_0x3f6424>=0x0;_0x3f6424--)(_0x333ddf=_0x208077[_0x3f6424])&&(_0x3ef470=(_0x254feb?_0x333ddf(_0x36f1b2,_0x48cb08,_0x3ef470):_0x333ddf(_0x3ef470))||_0x3ef470);return _0x254feb&&_0x3ef470&&Cs(_0x36f1b2,_0x48cb08,_0x3ef470),_0x3ef470;},ae=(_0xe3f988,_0x981f2b)=>(_0x54ea91,_0x1cdd55)=>_0x981f2b(_0x54ea91,_0x1cdd55,_0xe3f988);exports[_0xb0c99b(0x2b9)]=class extends a[_0xb0c99b(0x463)]{constructor(_0x377291,_0x399923,_0x817d49,_0x4673d9,_0x5045ee){const _0x32e1b8=_0xb0c99b;super(),d(this,_0x32e1b8(0x4c4),new Map()),d(this,_0x32e1b8(0x2e9),new Map()),d(this,_0x32e1b8(0x248),!0x1),(this['_configService']=_0x377291,this['_localStorageService']=_0x399923,this[_0x32e1b8(0x2e7)]=_0x817d49,this[_0x32e1b8(0x26d)]=_0x4673d9,this[_0x32e1b8(0x217)]=_0x5045ee,this[_0x32e1b8(0x432)]());}[_0xb0c99b(0x38b)](){const _0x5982f9=_0xb0c99b;this[_0x5982f9(0x248)]=!0x0;}[_0xb0c99b(0x351)](){const _0x1a053a=_0xb0c99b;this[_0x1a053a(0x248)]=!0x1;}[_0xb0c99b(0x11c)](){const _0x4e6dc8=_0xb0c99b;this[_0x4e6dc8(0x438)]()[_0x4e6dc8(0x20e)](()=>super[_0x4e6dc8(0x11c)]());}async[_0xb0c99b(0x4e3)](_0x34baf5){const _0x48e5fe=_0xb0c99b;return this['_disabled']?null:this[_0x48e5fe(0x18d)]['getItem'](Qe(_0x34baf5));}async[_0xb0c99b(0x340)](_0x25849b,_0x794015){const _0xd7f5a7=_0xb0c99b;return!!this[_0xd7f5a7(0x18d)][_0xd7f5a7(0x4a3)](_0x25849b,_0x794015);}['updateOfflineData'](_0x286246,_0xd6c02b,_0x1b0054,_0x1c5c2b){const _0xfcfd5c=_0xb0c99b,_0x39f425=this[_0xfcfd5c(0x217)][_0xfcfd5c(0x2fa)](_0x286246);this[_0xfcfd5c(0x4c4)][_0xfcfd5c(0x4d0)](_0x286246,{'unitID':_0x286246,'type':_0xd6c02b,'awaitingChangeset':_0x1b0054,'mutations':_0x1c5c2b,'rev':_0x39f425}),this[_0xfcfd5c(0x2e9)]['has'](_0x286246)||this[_0xfcfd5c(0x416)](_0x286246);}['_scheduleSaving'](_0x453c70){const _0xa368b8=_0xb0c99b,_0x55de42=this[_0xa368b8(0x4f1)]();_0x55de42===0x0?this[_0xa368b8(0x48e)](_0x453c70):this[_0xa368b8(0x2e9)]['set'](_0x453c70,setTimeout(()=>this[_0xa368b8(0x48e)](_0x453c70),_0x55de42));}[_0xb0c99b(0x4f1)](){const _0x2f0a6a=_0xb0c99b;var _0x3dbe84;return(_0x3dbe84=this[_0x2f0a6a(0x3ec)][_0x2f0a6a(0x2aa)](ft))!=null?_0x3dbe84:Zt;}['_saveCache'](_0x1f126f){const _0x326fa4=_0xb0c99b,_0x31f55a=this['_saveTaskMap'][_0x326fa4(0x1a0)](_0x1f126f);return _0x31f55a!==void 0x0&&window['clearTimeout'](_0x31f55a),this[_0x326fa4(0x18d)][_0x326fa4(0x4a3)](Qe(_0x1f126f),this['_cachedData'][_0x326fa4(0x1a0)](_0x1f126f))[_0x326fa4(0x20e)](()=>this[_0x326fa4(0x2e9)][_0x326fa4(0x456)](_0x1f126f));}async['exhaustSavingTask'](){const _0x2cbe44=_0xb0c99b,_0x1e046f=[];this[_0x2cbe44(0x2e9)][_0x2cbe44(0x1cb)]((_0x298262,_0x14657e)=>{const _0x4989b7=_0x2cbe44;window[_0x4989b7(0x38d)](_0x298262),_0x1e046f[_0x4989b7(0x2da)](this[_0x4989b7(0x48e)](_0x14657e)['then'](()=>{const _0x2e64c9=_0x4989b7;this['_saveTaskMap'][_0x2e64c9(0x456)](_0x14657e);}));}),await Promise[_0x2cbe44(0x4e7)](_0x1e046f);}['_setupBeforeClosingHandler'](){const _0x45f148=_0xb0c99b;this[_0x45f148(0x3d3)](this[_0x45f148(0x2e7)][_0x45f148(0x3ca)](()=>{const _0x2ed9f0=_0x45f148;if(this[_0x2ed9f0(0x2e9)][_0x2ed9f0(0x40e)])return this[_0x2ed9f0(0x26d)]['t'](_0x2ed9f0(0x194));}));}},exports[_0xb0c99b(0x2b9)]=bs([ae(0x0,a[_0xb0c99b(0x195)]),ae(0x1,a[_0xb0c99b(0x273)]),ae(0x2,N[_0xb0c99b(0x221)]),ae(0x3,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),ae(0x4,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)]))],exports[_0xb0c99b(0x2b9)]);function Qe(_0x13d9c1){const _0x50fac0=_0xb0c99b;return _0x50fac0(0x3df)+_0x13d9c1;}var Ts=Object['defineProperty'],Rs=Object['getOwnPropertyDescriptor'],Os=(_0x31f434,_0x1e4ce5,_0x13fabf,_0x2aef68)=>{const _0x4ad737=_0xb0c99b;for(var _0x114012=_0x2aef68>0x1?void 0x0:_0x2aef68?Rs(_0x1e4ce5,_0x13fabf):_0x1e4ce5,_0x10b753=_0x31f434[_0x4ad737(0x23c)]-0x1,_0x4841b6;_0x10b753>=0x0;_0x10b753--)(_0x4841b6=_0x31f434[_0x10b753])&&(_0x114012=(_0x2aef68?_0x4841b6(_0x1e4ce5,_0x13fabf,_0x114012):_0x4841b6(_0x114012))||_0x114012);return _0x2aef68&&_0x114012&&Ts(_0x1e4ce5,_0x13fabf,_0x114012),_0x114012;},Ue=(_0x58a447,_0x33e9a3)=>(_0x2649d6,_0x2ec1d7)=>_0x33e9a3(_0x2649d6,_0x2ec1d7,_0x58a447);function Ds(_0x3420ed){const _0x182451=_0xb0c99b,{unitID:_0x53af49,mutations:_0x2a67a5}=_0x3420ed;return{'unitId':_0x53af49,'subUnitId':_0x2a67a5[0x0][_0x182451(0x2e3)][_0x182451(0x19b)]};}let pe=class{constructor(_0x3c1869,_0x178654,_0x3ecc1f){const _0x58834b=_0xb0c99b;this[_0x58834b(0x12f)]=_0x3c1869,this[_0x58834b(0x1f2)]=_0x178654,this[_0x58834b(0x2a1)]=_0x3ecc1f;}[_0xb0c99b(0x468)](_0x261ad8){const _0xa3dba3=_0xb0c99b;var _0xd971b4,_0x2efa51,_0x246048,_0x7b02b1;const _0xb3a0c9=this[_0xa3dba3(0x12f)][_0xa3dba3(0x1a0)](C['SheetsSelectionsService']),{unitId:_0x27ce67,subUnitId:_0x514254}=Ds(_0x261ad8),_0xde6896=_0xb3a0c9[_0xa3dba3(0x2dc)](_0x27ce67)['getCurrentSelections'](),_0x5ad58d=(_0x2efa51=(_0xd971b4=this['_instanceService']['getUnit'](_0x27ce67))==null?void 0x0:_0xd971b4[_0xa3dba3(0x1ba)]())==null?void 0x0:_0x2efa51['getSheetId']();if(_0xde6896['length']===0x0||!_0x27ce67||!_0x514254)return;const _0xb6f881=[{'id':C[_0xa3dba3(0x40a)]['id'],'params':{'unitId':_0x27ce67,'subUnitId':_0x5ad58d,'selections':a[_0xa3dba3(0x286)]['deepClone'](_0xde6896)}}],_0x190f69=this[_0xa3dba3(0x1f2)][_0xa3dba3(0x2d6)](_0x261ad8,_0xb6f881);if(!_[_0xa3dba3(0xf3)](_0x190f69))throw _0x190f69[_0xa3dba3(0x4d1)];const _0x1e672b=(_0x7b02b1=(_0x246048=_0x190f69[_0xa3dba3(0x200)][0x0])==null?void 0x0:_0x246048[_0xa3dba3(0x2e3)])==null?void 0x0:_0x7b02b1['selections'];Array[_0xa3dba3(0x2ed)](_0x1e672b)&&_0x1e672b[_0xa3dba3(0x23c)]&&this[_0xa3dba3(0x12f)]['get'](a['ICommandService'])['executeCommand'](C[_0xa3dba3(0x40a)]['id'],{'unitId':_0x27ce67,'subUnitId':_0x5ad58d,'selections':_0x1e672b});}};pe=Os([Ue(0x0,a[_0xb0c99b(0x455)](a['Injector'])),Ue(0x1,_['ITransformService']),Ue(0x2,a[_0xb0c99b(0x49b)])],pe);const Te=a[_0xb0c99b(0xe6)]('univer-pro.collaboration-client.single-active-unit-service');var bt=(_0x24c946=>(_0x24c946[_0x24c946[_0xb0c99b(0x20f)]=0x0]=_0xb0c99b(0x20f),_0x24c946[_0x24c946[_0xb0c99b(0x309)]=0x1]=_0xb0c99b(0x309),_0x24c946))(bt||{});const et=0x7530,tt=_0xb0c99b(0x378);class ys extends a[_0xb0c99b(0x463)]{constructor(){const _0x2e81f9=_0xb0c99b;super(),d(this,_0x2e81f9(0x175),a[_0x2e81f9(0x286)][_0x2e81f9(0x36a)]()),d(this,'_selfUnitIDs',new Set()),d(this,_0x2e81f9(0x338),new Map()),d(this,'_heartbeatTimer',null),d(this,_0x2e81f9(0x47d),new Map()),d(this,_0x2e81f9(0x4b3),new Map()),this[_0x2e81f9(0x41f)]();}[_0xb0c99b(0x11c)](){const _0x5b9f9e=_0xb0c99b;super[_0x5b9f9e(0x11c)](),this[_0x5b9f9e(0x47d)][_0x5b9f9e(0x1cb)]((_0x36202b,_0x2b6012)=>this[_0x5b9f9e(0x497)](_0x2b6012)),this[_0x5b9f9e(0x4ea)]&&window['clearInterval'](this[_0x5b9f9e(0x4ea)]);}[_0xb0c99b(0x3e5)](_0x51af76){const _0x34d93d=_0xb0c99b;return this[_0x34d93d(0x10b)](_0x51af76)[_0x34d93d(0x3a7)](v[_0x34d93d(0x49c)]());}[_0xb0c99b(0x491)](_0x43990f){const _0x9f2ed7=_0xb0c99b;this[_0x9f2ed7(0x119)]['size']===0x0&&this[_0x9f2ed7(0x1db)](),this[_0x9f2ed7(0x119)][_0x9f2ed7(0x143)](_0x43990f),this['_send']({'type':0x0,'memberID':this[_0x9f2ed7(0x175)],'unitIDs':[_0x43990f],'isForwarded':!0x1});}[_0xb0c99b(0x1fc)](_0x41c7dc){const _0x583c17=_0xb0c99b;this['_selfUnitIDs'][_0x583c17(0x456)](_0x41c7dc),this[_0x583c17(0x119)][_0x583c17(0x40e)]===0x0&&this[_0x583c17(0x4ea)]&&window[_0x583c17(0x4a8)](this['_heartbeatTimer']);}[_0xb0c99b(0x41f)](){const _0x4ab484=_0xb0c99b;this['disposeWithMe'](a[_0x4ab484(0x2ef)](v['fromEvent'](window,_0x4ab484(0x181))[_0x4ab484(0x33b)](_0x15f150=>{const _0x334f06=_0x4ab484;if(_0x15f150[_0x334f06(0x22b)]!==tt||!_0x15f150[_0x334f06(0x4bc)])return;const _0x4b7c7b=JSON['parse'](_0x15f150[_0x334f06(0x4bc)]);this[_0x334f06(0x406)](_0x4b7c7b);}))),window[_0x4ab484(0x4e2)](_0x4ab484(0x22c),()=>this[_0x4ab484(0x329)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4ab484(0x4da)](this[_0x4ab484(0x119)])}));}[_0xb0c99b(0x406)](_0x52f590){const _0x4f777d=_0xb0c99b;switch(_0x52f590[_0x4f777d(0x498)]){case 0x0:this['_handleJoinEvent'](_0x52f590);break;case 0x1:this[_0x4f777d(0x4f0)](_0x52f590);break;case 0x2:this[_0x4f777d(0x3c9)](_0x52f590);break;}}[_0xb0c99b(0x4a0)](_0x4bac7a){const _0x3ac378=_0xb0c99b,{unitIDs:_0x49ec8c,memberID:_0x1fb1a6,isForwarded:_0x1a3baf}=_0x4bac7a;_0x49ec8c[_0x3ac378(0x1cb)](_0x48dbbf=>{const _0x5262ed=_0x3ac378;if(!_0x1a3baf&&this[_0x5262ed(0x338)][_0x5262ed(0x191)](_0x48dbbf)&&this[_0x5262ed(0x10b)](_0x48dbbf)[_0x5262ed(0x3c7)](0x1),!this['_unitOnClients'][_0x5262ed(0x191)](_0x48dbbf)||!this[_0x5262ed(0x338)][_0x5262ed(0x1a0)](_0x48dbbf)[_0x5262ed(0x191)](_0x1fb1a6)){const _0x243ede=this[_0x5262ed(0x338)][_0x5262ed(0x1a0)](_0x48dbbf)||new Set();_0x243ede[_0x5262ed(0x143)](_0x1fb1a6),this[_0x5262ed(0x338)]['set'](_0x48dbbf,_0x243ede),this[_0x5262ed(0x488)](_0x1fb1a6);}}),_0x1a3baf||this[_0x3ac378(0x329)]({'type':0x0,'memberID':this[_0x3ac378(0x175)],'unitIDs':[...this[_0x3ac378(0x119)]],'isForwarded':!0x0});}[_0xb0c99b(0x488)](_0x565533){const _0x40858d=_0xb0c99b;this['_removeClearOtherTimer'](_0x565533);const _0x32dcd5=window['setTimeout'](()=>{const _0x4e764f=_0x4e0f;this[_0x4e764f(0x338)][_0x4e764f(0x1cb)](_0xae9da0=>{const _0x467493=_0x4e764f;_0xae9da0[_0x467493(0x456)](_0x565533);});},et*0x2);this[_0x40858d(0x47d)][_0x40858d(0x4d0)](_0x565533,_0x32dcd5);}[_0xb0c99b(0x497)](_0x5b8996){const _0x452161=_0xb0c99b;if(this[_0x452161(0x47d)][_0x452161(0x191)](_0x5b8996)){const _0x14c480=this[_0x452161(0x47d)][_0x452161(0x1a0)](_0x5b8996);_0x14c480&&window['clearTimeout'](_0x14c480),this[_0x452161(0x47d)][_0x452161(0x4d0)](_0x5b8996,null);}}[_0xb0c99b(0x4f0)](_0x1cdd44){const {memberID:_0x317d59,unitIDs:_0x4bc616}=_0x1cdd44;_0x4bc616['forEach'](_0x40f2a8=>{const _0x35a146=_0x4e0f;var _0x130fc5;const _0x45cbc5=this[_0x35a146(0x338)]['get'](_0x40f2a8);_0x45cbc5&&(_0x45cbc5[_0x35a146(0x456)](_0x317d59),(_0x130fc5=this[_0x35a146(0x10b)](_0x40f2a8))==null||_0x130fc5[_0x35a146(0x3c7)](_0x45cbc5[_0x35a146(0x40e)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x317d59);}[_0xb0c99b(0x3c9)](_0x45788c){const _0x1d85ea=_0xb0c99b;this[_0x1d85ea(0x488)](_0x45788c[_0x1d85ea(0x37a)]);}[_0xb0c99b(0x329)](_0x46cc4b){const _0x3f530a=_0xb0c99b;localStorage['setItem'](tt,JSON[_0x3f530a(0x36d)](_0x46cc4b));}[_0xb0c99b(0x1db)](){const _0x44a6d9=_0xb0c99b;this[_0x44a6d9(0x4ea)]=window['setInterval'](()=>{const _0x499fde=_0x44a6d9;this[_0x499fde(0x329)]({'type':0x2,'memberID':this[_0x499fde(0x175)]});},et);}['_ensureSubject'](_0x52b568){const _0x555921=_0xb0c99b;return this[_0x555921(0x4b3)][_0x555921(0x191)](_0x52b568)||this[_0x555921(0x4b3)][_0x555921(0x4d0)](_0x52b568,new v[(_0x555921(0x4b1))](0x0)),this['_unitStatus'][_0x555921(0x1a0)](_0x52b568);}}function Tt(_0x228268){const _0x297dc4=_0xb0c99b;let _0x23607c='';for(const _0x1d0d5b of _0x228268){const {startOffset:_0x30237f,endOffset:_0x2332c4,isActive:_0x520ead}=_0x1d0d5b;_0x23607c[_0x297dc4(0x23c)]&&(_0x23607c+=','),_0x23607c+=_0x30237f+':'+_0x2332c4+':'+(_0x520ead?'1':'0');}return _0x23607c;}function Us(_0x504242){const _0x3e6f03=_0xb0c99b,_0x23561b=_0x504242[_0x3e6f03(0x121)](','),_0xbe6e84=[];for(const _0x109a6b of _0x23561b){const [_0x3d7cd0,_0x2d3924,_0x483128]=_0x109a6b['split'](':');_0xbe6e84['push']({'startOffset':Number(_0x3d7cd0),'endOffset':Number(_0x2d3924),'collapsed':_0x3d7cd0===_0x2d3924,'isActive':_0x483128==='1'});}return _0xbe6e84[_0x3e6f03(0x1d5)](_0x28aac2=>_0x28aac2[_0x3e6f03(0x388)])||(_0xbe6e84[0x0]['isActive']=!0x0),_0xbe6e84;}class Ye extends a[_0xb0c99b(0x3c1)]{constructor(){const _0x55d7dd=_0xb0c99b;super(...arguments),d(this,_0x55d7dd(0x2cb),new v[(_0x55d7dd(0x4b1))](null)),d(this,_0x55d7dd(0x185),this[_0x55d7dd(0x2cb)]['asObservable']());}[_0xb0c99b(0x13f)](_0x369f46){const _0x1277fe=_0xb0c99b,{unitID:_0x4183f2,memberID:_0x178d7d,textRanges:_0x527aa7}=_0x369f46,_0x1ac9b5=Tt(_0x527aa7),_0x38f5bd={'unitID':_0x4183f2,'memberID':_0x178d7d,'selection':_0x1ac9b5};this[_0x1277fe(0x2cb)][_0x1277fe(0x3c7)](_0x38f5bd);}}var Ps=Object['defineProperty'],ws=Object['getOwnPropertyDescriptor'],Ms=(_0x4f07ee,_0x2a4373,_0xd1cd7,_0x493517)=>{const _0x5d7ae0=_0xb0c99b;for(var _0x5848e6=_0x493517>0x1?void 0x0:_0x493517?ws(_0x2a4373,_0xd1cd7):_0x2a4373,_0x5879ad=_0x4f07ee[_0x5d7ae0(0x23c)]-0x1,_0x170a70;_0x5879ad>=0x0;_0x5879ad--)(_0x170a70=_0x4f07ee[_0x5879ad])&&(_0x5848e6=(_0x493517?_0x170a70(_0x2a4373,_0xd1cd7,_0x5848e6):_0x170a70(_0x5848e6))||_0x5848e6);return _0x493517&&_0x5848e6&&Ps(_0x2a4373,_0xd1cd7,_0x5848e6),_0x5848e6;},st=(_0x3e179a,_0x613ef5)=>(_0x9554d3,_0x26341f)=>_0x613ef5(_0x9554d3,_0x26341f,_0x3e179a);let Ce=class{constructor(_0x120579,_0x2bac3e){const _0x3df009=_0xb0c99b;this[_0x3df009(0x12f)]=_0x120579,this[_0x3df009(0x1f2)]=_0x2bac3e;}[_0xb0c99b(0x468)](_0x37364a){const _0x5daddf=_0xb0c99b;var _0x28e584;const _0x3ad24b=this[_0x5daddf(0x12f)]['get'](V[_0x5daddf(0x1b0)]),_0x18712d=(_0x28e584=_0x3ad24b[_0x5daddf(0x132)]())!=null?_0x28e584:[];if(_0x18712d['length']===0x0)return;const _0x253dbf=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x37364a[_0x5daddf(0x4c3)],'actions':null,'textRanges':_0x18712d}}],_0x3522a4=this[_0x5daddf(0x1f2)][_0x5daddf(0x2d6)](_0x37364a,_0x253dbf);if(!_[_0x5daddf(0xf3)](_0x3522a4))throw _0x3522a4[_0x5daddf(0x4d1)];const _0x57a957=_0x3522a4[_0x5daddf(0x200)][0x0][_0x5daddf(0x2e3)]['textRanges'];Array[_0x5daddf(0x2ed)](_0x57a957)&&_0x57a957[_0x5daddf(0x23c)]&&_0x3ad24b[_0x5daddf(0x32c)](_0x57a957,!0x1);}};Ce=Ms([st(0x0,a[_0xb0c99b(0x455)](a['Injector'])),st(0x1,_['ITransformService'])],Ce);const Ns=new Set([C[_0xb0c99b(0x198)]['id']]);function it(_0x548a10,_0x31c9d3,_0xbb3092,_0x383d57,_0x4d0b87){const _0x2b6501=_0xb0c99b;var _0x2ada3e,_0x500e0d,_0x64c9cb,_0x346f7d;const _0x2e4d25=[];for(const _0x3f0be6 of _0x548a10)if(Ns[_0x2b6501(0x191)](_0x3f0be6['id'])){if(_0x2e4d25['length']>0x0)break;_0x2e4d25[_0x2b6501(0x2da)](_0x3f0be6);break;}else _0x2e4d25['push'](_0x3f0be6);const _0x3e942c=(_0x500e0d=(_0x2ada3e=_0x4d0b87[_0x2b6501(0x348)]())==null?void 0x0:_0x2ada3e['userID'])!=null?_0x500e0d:'unknown',_0x2249fa=(_0x346f7d=(_0x64c9cb=_0x4d0b87[_0x2b6501(0x348)]())==null?void 0x0:_0x64c9cb[_0x2b6501(0x37a)])!=null?_0x346f7d:_0x2b6501(0x206);return{'changeset':{'unitID':_0x31c9d3,'type':_[_0x2b6501(0x287)](_0xbb3092['getUnitType'](_0x31c9d3)),'baseRev':_0x383d57[_0x2b6501(0x2fa)](_0x31c9d3),'revision':0x0,'userID':_0x3e942c,'memberID':_0x2249fa,'mutations':_0x2e4d25},'pendingMutations':_0x548a10['slice'](_0x2e4d25[_0x2b6501(0x23c)])};}function Ls(_0x79d85,_0x1a077b,_0x5ac338,_0x31ed75,_0x59b4a1){const _0x52f857=_0xb0c99b;var _0x57290e,_0x19233e,_0x3bcc6b,_0x7c1450;const _0x54872a=[_0x79d85[_0x52f857(0x4a5)]((_0x1e4b55,_0x545543)=>{const _0x211b5=_0x52f857;var _0x37be25;const {id:_0x129363}=_0x1e4b55,{id:_0x53d7e4,type:_0xc51594}=_0x545543,_0x18a1ff=(_0x37be25=_0x1e4b55[_0x211b5(0x2e3)])!=null?_0x37be25:{'actions':null},_0x1309cf=_0x545543[_0x211b5(0x2e3)];if(_0x129363&&_0x129363!==_0x53d7e4)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x129363+_0x211b5(0x473)+_0x53d7e4+'.');return{..._0x1e4b55,'id':_0x53d7e4,'type':_0xc51594,'params':{'unitId':_0x1309cf['unitId'],'textRanges':_0x1309cf['textRanges'],'actions':a[_0x211b5(0x264)][_0x211b5(0x298)](_0x18a1ff[_0x211b5(0xff)],_0x1309cf[_0x211b5(0xff)])}};},{})],_0x4bb2ae=(_0x19233e=(_0x57290e=_0x59b4a1[_0x52f857(0x348)]())==null?void 0x0:_0x57290e[_0x52f857(0x2d7)])!=null?_0x19233e:_0x52f857(0x206),_0xa63dde=(_0x7c1450=(_0x3bcc6b=_0x59b4a1[_0x52f857(0x348)]())==null?void 0x0:_0x3bcc6b[_0x52f857(0x37a)])!=null?_0x7c1450:_0x52f857(0x206);return{'changeset':{'unitID':_0x1a077b,'type':_[_0x52f857(0x287)](_0x5ac338[_0x52f857(0x2ab)](_0x1a077b)),'baseRev':_0x31ed75['getCurrentRevOfUnit'](_0x1a077b),'revision':0x0,'userID':_0x4bb2ae,'memberID':_0xa63dde,'mutations':_0x54872a},'pendingMutations':[]};}const As={'id':C[_0xb0c99b(0x44c)]['id'],'type':a[_0xb0c99b(0x1a2)][_0xb0c99b(0x293)],'params':{}};var $s=Object[_0xb0c99b(0x3dd)],js=Object['getOwnPropertyDescriptor'],z=(_0x290628,_0x140302,_0x4ef47b,_0x4e39d4)=>{const _0x3dbc43=_0xb0c99b;for(var _0x506cc0=_0x4e39d4>0x1?void 0x0:_0x4e39d4?js(_0x140302,_0x4ef47b):_0x140302,_0x16567b=_0x290628[_0x3dbc43(0x23c)]-0x1,_0x36e342;_0x16567b>=0x0;_0x16567b--)(_0x36e342=_0x290628[_0x16567b])&&(_0x506cc0=(_0x4e39d4?_0x36e342(_0x140302,_0x4ef47b,_0x506cc0):_0x36e342(_0x506cc0))||_0x506cc0);return _0x4e39d4&&_0x506cc0&&$s(_0x140302,_0x4ef47b,_0x506cc0),_0x506cc0;},g=(_0x5116ea,_0x188007)=>(_0xc31149,_0x58cbde)=>_0x188007(_0xc31149,_0x58cbde,_0x5116ea),y=(_0x3eb1c5=>(_0x3eb1c5[_0xb0c99b(0x3eb)]=_0xb0c99b(0xe9),_0x3eb1c5[_0xb0c99b(0x2c2)]=_0xb0c99b(0x46f),_0x3eb1c5[_0xb0c99b(0x256)]=_0xb0c99b(0x3f6),_0x3eb1c5[_0xb0c99b(0x1b4)]=_0xb0c99b(0x21a),_0x3eb1c5[_0xb0c99b(0x3de)]='awaiting_with_pending',_0x3eb1c5[_0xb0c99b(0x3d9)]=_0xb0c99b(0x454),_0x3eb1c5[_0xb0c99b(0x229)]=_0xb0c99b(0x244),_0x3eb1c5[_0xb0c99b(0x4ed)]=_0xb0c99b(0x1b8),_0x3eb1c5))(y||{});class J{constructor(_0x3f9add,_0x2d8087,_0x4a2f05,_0x4c4fe8,_0x164d1a,_0x2bb6a5,_0x245fc5,_0x1b5562,_0x2c3812){const _0x470ced=_0xb0c99b;d(this,_0x470ced(0x492),null),d(this,_0x470ced(0x3a8),[]),(this[_0x470ced(0x4c3)]=_0x3f9add,this['type']=_0x2d8087,this[_0x470ced(0xfc)]=_0x164d1a,this['_commandService']=_0x2bb6a5,this[_0x470ced(0x4c7)]=_0x245fc5,this[_0x470ced(0x217)]=_0x1b5562,this[_0x470ced(0x40b)]=_0x2c3812,this['_awaitingChangeset']=_0x4a2f05,this[_0x470ced(0x3a8)]=_0x4c4fe8);}[_0xb0c99b(0x39c)](_0x7d0f5f){const _0x10a3c7=_0xb0c99b,_0x11dfb9=this[_0x10a3c7(0x217)]['getCurrentRevOfUnit'](this[_0x10a3c7(0x4c3)]);return _0x7d0f5f[_0x10a3c7(0x1b9)]>_0x11dfb9+0x1?(this[_0x10a3c7(0xfc)][_0x10a3c7(0x459)]({'from':_0x11dfb9,'to':_0x7d0f5f[_0x10a3c7(0x1b9)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x3817b0){const _0x59408c=_0xb0c99b;this[_0x59408c(0x4c7)]['transformUndoRedo'](this[_0x59408c(0x4c3)],_0x3817b0);}[_0xb0c99b(0x124)](_0x150a28){const _0xbb0ef7=_0xb0c99b;var _0x360b66,_0x2b8228;(_0x2b8228=(_0x360b66=this[_0xbb0ef7(0xfc)])[_0xbb0ef7(0x1e4)])==null||_0x2b8228[_0xbb0ef7(0x2f5)](_0x360b66,_0x150a28);}[_0xb0c99b(0x225)](_0x4bee9e){const _0x1916c3=_0xb0c99b;var _0x5aaade,_0x2a2cb0;return(_0x2a2cb0=(_0x5aaade=this['_handler'])[_0x1916c3(0x1f6)])==null?void 0x0:_0x2a2cb0[_0x1916c3(0x2f5)](_0x5aaade,_0x4bee9e);}['_transformRemoteChangesetByIMECache'](_0x3b1b2c){const _0x121751=_0xb0c99b;var _0x35c944,_0x17828d,_0x41cd65;return(_0x41cd65=(_0x17828d=(_0x35c944=this[_0x121751(0xfc)])[_0x121751(0x2f3)])==null?void 0x0:_0x17828d[_0x121751(0x2f5)](_0x35c944,_0x3b1b2c))!=null?_0x41cd65:_0x3b1b2c;}[_0xb0c99b(0x381)](_0x477bb3){const _0xd0c8eb=_0xb0c99b;var _0xd45f2e,_0x999414;if(this[_0xd0c8eb(0x498)]===$['UNIVER_DOC']){const {unitID:_0x788b47,mutations:_0x199538,memberID:_0x5828a1}=_0x477bb3,_0x17ca7e=_0x199538[0x0]['params'][_0xd0c8eb(0x422)];Array[_0xd0c8eb(0x2ed)](_0x17ca7e)&&_0x17ca7e['length']>0x0&&((_0x999414=(_0xd45f2e=this[_0xd0c8eb(0xfc)])[_0xd0c8eb(0x317)])==null||_0x999414[_0xd0c8eb(0x2f5)](_0xd45f2e,{'unitID':_0x788b47,'memberID':_0x5828a1,'textRanges':_0x17ca7e}));}}['_updateLocalCache'](){const _0xfcf5af=_0xb0c99b;this[_0xfcf5af(0x40b)][_0xfcf5af(0x4c5)](this[_0xfcf5af(0x4c3)],this[_0xfcf5af(0x498)],this[_0xfcf5af(0x492)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x5b2dad=_0xb0c99b;return this[_0x5b2dad(0x217)][_0x5b2dad(0x2fa)](this[_0x5b2dad(0x4c3)]);}[_0xb0c99b(0x2cc)](){const _0xc86671=_0xb0c99b;this[_0xc86671(0x217)][_0xc86671(0x1c3)](this[_0xc86671(0x4c3)]);}['_executeRemoteChangeset'](_0xbf66b){const _0x3e3ee2=_0xb0c99b;var _0x46aee2;const _0x1bff77=this[_0x3e3ee2(0x20c)](_0xbf66b),_0x184db8=a[_0x3e3ee2(0x215)](_0x1bff77[_0x3e3ee2(0x4e4)],this[_0x3e3ee2(0x425)],{'fromCollab':!0x0});if(!_0x184db8[_0x3e3ee2(0x137)])throw _0x184db8['error']instanceof Error?_0x184db8[_0x3e3ee2(0x4d1)]:new Error((_0x46aee2=_0x184db8[_0x3e3ee2(0x4d1)])!=null?_0x46aee2:_0x3e3ee2(0x1f5));this[_0x3e3ee2(0x225)](_0x1bff77),this[_0x3e3ee2(0x2f9)](_0xbf66b),this[_0x3e3ee2(0x124)](_0x1bff77),this[_0x3e3ee2(0x381)](_0x1bff77),this[_0x3e3ee2(0x2cc)]();}}let ie=class extends J{constructor(_0xe73905,_0x2f57b0,_0x2a5c7f,_0x3cff7e,_0x2ee7a9,_0x1e6ebf,_0x3a5e0f,_0x534f01,_0x180b17,_0x6e2cd8){const _0x4df734=_0xb0c99b;super(_0xe73905,_0x2f57b0,null,[],_0x2a5c7f,_0x534f01,_0x3a5e0f,_0x3cff7e,_0x2ee7a9),d(this,'status',_0x4df734(0x46f)),(this[_0x4df734(0x12f)]=_0x1e6ebf,this[_0x4df734(0x3cd)]=_0x180b17,this[_0x4df734(0x1f2)]=_0x6e2cd8);}['appendMutation'](_0x3b8aab){const _0x10d355=_0xb0c99b,_0x39e83d=this['_injector'][_0x10d355(0x29b)](x,this['unitID'],this['type'],[_0x3b8aab],this[_0x10d355(0xfc)]);return _0x39e83d[_0x10d355(0x129)](),_0x39e83d[_0x10d355(0x142)](),_0x39e83d;}[_0xb0c99b(0x27d)](_0x3f4f5d){const _0xa9a610=_0xb0c99b;if(this['_checkMissing'](_0x3f4f5d))return this['_injector'][_0xa9a610(0x29b)](H,this[_0xa9a610(0x4c3)],this['type'],null,[],null,[_0x3f4f5d],this['_handler']);try{const _0x4478ce=this[_0xa9a610(0x1f2)][_0xa9a610(0x2d6)](_0x3f4f5d,[As]);if(_[_0xa9a610(0xf3)](_0x4478ce)){const {c1Prime:_0x561355}=_0x4478ce;return this[_0xa9a610(0x3e2)](_0x561355),this;}throw _0x4478ce['error'];}catch(_0x203ee0){return this[_0xa9a610(0x3cd)]['error'](_0x203ee0),this[_0xa9a610(0x1dd)](!0x1);}}['_onConflict'](_0x3e0a61){const _0x48f2b9=_0xb0c99b;return this[_0x48f2b9(0x12f)]['createInstance'](F,this[_0x48f2b9(0x4c3)],this[_0x48f2b9(0x498)],null,[],this[_0x48f2b9(0xfc)],_0x3e0a61);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0xb0c99b(0x3aa)](){const _0x2a57cc=_0xb0c99b;throw new Error(_0x2a57cc(0x2e5));}['toggleOffline'](){const _0x2a6ef2=_0xb0c99b;return this[_0x2a6ef2(0x12f)][_0x2a6ef2(0x29b)](G,this['unitID'],this['type'],null,[],this[_0x2a6ef2(0xfc)]);}[_0xb0c99b(0x222)](){return this;}[_0xb0c99b(0x1b7)](){const _0x172966=_0xb0c99b;throw new Error(_0x172966(0x3a9));}[_0xb0c99b(0x3a0)](){const _0x51bec3=_0xb0c99b,_0xf45625=this[_0x51bec3(0x217)]['getCurrentRevOfUnit'](this['unitID']);return this['_handler']['onMissingChangesets']({'from':_0xf45625,'to':0x0}),this['_injector'][_0x51bec3(0x29b)](H,this[_0x51bec3(0x4c3)],this[_0x51bec3(0x498)],null,[],null,[],this[_0x51bec3(0xfc)]);}};ie=z([g(0x3,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x4,a['Inject'](exports['LocalCacheService'])),g(0x5,a[_0xb0c99b(0x455)](a['Injector'])),g(0x6,a['IUndoRedoService']),g(0x7,a[_0xb0c99b(0x47e)]),g(0x8,a[_0xb0c99b(0x2b2)]),g(0x9,_[_0xb0c99b(0x37c)])],ie);let x=class extends J{constructor(_0x2d1e46,_0x4ef925,_0x5bc021,_0x213997,_0x4ff8db,_0x5ac162,_0x238d5b,_0x28c761,_0x20d48a,_0x4b4fa7,_0x3002ea,_0x495bcf,_0x4319cc,_0x504bca){const _0x28b52c=_0xb0c99b;super(_0x2d1e46,_0x4ef925,null,_0x5bc021,_0x213997,_0x4b4fa7,_0x504bca,_0x5ac162,_0x238d5b),d(this,'status',_0x28b52c(0x3f6)),d(this,_0x28b52c(0x49a),null),d(this,_0x28b52c(0x44a),null),(this[_0x28b52c(0x12f)]=_0x4ff8db,this[_0x28b52c(0x3f3)]=_0x28c761,this['_logService']=_0x20d48a,this[_0x28b52c(0x3ec)]=_0x3002ea,this[_0x28b52c(0x1f2)]=_0x495bcf,this[_0x28b52c(0x3fb)]=_0x4319cc);}[_0xb0c99b(0x453)](_0x4c4535){const _0x2874f0=_0xb0c99b;return this[_0x2874f0(0x3a8)][_0x2874f0(0x2da)](_0x4c4535),this[_0x2874f0(0x142)](),this;}[_0xb0c99b(0x27d)](_0xeb42b5){const _0x2c624d=_0xb0c99b;if(this['_checkMissing'](_0xeb42b5))return this[_0x2c624d(0x461)](),this[_0x2c624d(0x12f)][_0x2c624d(0x29b)](H,this[_0x2c624d(0x4c3)],this[_0x2c624d(0x498)],null,this[_0x2c624d(0x3a8)],null,[_0xeb42b5],this['_handler']);try{const _0x42aa11=this['_transformService'][_0x2c624d(0x2d6)](_0xeb42b5,this[_0x2c624d(0x3a8)]);if(_[_0x2c624d(0xf3)](_0x42aa11)){const {c1Prime:_0xadf96f,m2Prime:_0x427ead}=_0x42aa11;this[_0x2c624d(0x3e2)](_0xadf96f);const _0x27df70=this[_0x2c624d(0x12f)][_0x2c624d(0x29b)](x,this[_0x2c624d(0x4c3)],this[_0x2c624d(0x498)],_0x427ead,this['_handler']);return this[_0x2c624d(0x461)](),_0x27df70['_schedule'](this[_0x2c624d(0x49a)]?Math[_0x2c624d(0x452)](0x0,new Date()[_0x2c624d(0x1b3)]()-this[_0x2c624d(0x49a)]):this[_0x2c624d(0x43c)]()),_0x27df70;}throw _0x42aa11[_0x2c624d(0x4d1)];}catch(_0xbe29a3){return this[_0x2c624d(0x3cd)]['error'](_0xbe29a3),this['_onConflict'](!0x1);}}[_0xb0c99b(0x390)](){const _0x58f005=_0xb0c99b;throw new Error(_0x58f005(0xf1));}['onRemoteRej'](){const _0xac8497=_0xb0c99b;throw new Error(_0xac8497(0x177));}[_0xb0c99b(0x4cb)](){const _0x369dcf=_0xb0c99b;return this[_0x369dcf(0x461)](),this[_0x369dcf(0x12f)][_0x369dcf(0x29b)](G,this[_0x369dcf(0x4c3)],this['type'],null,this[_0x369dcf(0x3a8)],this[_0x369dcf(0xfc)]);}['toggleOnline'](){return this;}['_schedule'](_0x5ce163){const _0x49828a=_0xb0c99b,_0x373465=_0x5ce163!=null?_0x5ce163:this[_0x49828a(0x43c)]();this[_0x49828a(0x49a)]=new Date()[_0x49828a(0x1b3)](),this[_0x49828a(0x44a)]=window[_0x49828a(0x2f0)](()=>{const _0x394ce3=_0x49828a;this['_clearScheduledTask']();let _0x23ddab=null;switch(this[_0x394ce3(0x498)]){case $['UNIVER_SHEET']:{_0x23ddab=it(this['_pendingMutations'],this[_0x394ce3(0x4c3)],this[_0x394ce3(0x3fb)],this[_0x394ce3(0x217)],this['_memberService']);break;}case $[_0x394ce3(0x254)]:{this['_pendingMutations']['every'](_0xbb8cf1=>_0xbb8cf1['id']===V[_0x394ce3(0x396)]['id'])?_0x23ddab=Ls(this[_0x394ce3(0x3a8)],this[_0x394ce3(0x4c3)],this[_0x394ce3(0x3fb)],this[_0x394ce3(0x217)],this[_0x394ce3(0x3f3)]):_0x23ddab=it(this[_0x394ce3(0x3a8)],this[_0x394ce3(0x4c3)],this[_0x394ce3(0x3fb)],this[_0x394ce3(0x217)],this['_memberService']);break;}default:throw new Error(_0x394ce3(0x439)+this[_0x394ce3(0x498)]+_0x394ce3(0x168));}const {changeset:_0x2237f0,pendingMutations:_0x1a49e8}=_0x23ddab;this[_0x394ce3(0xfc)]['onSendChangeset'](_0x2237f0);const _0x576f54=_0x1a49e8[_0x394ce3(0x23c)]?this[_0x394ce3(0x12f)][_0x394ce3(0x29b)](k,this[_0x394ce3(0x4c3)],this[_0x394ce3(0x498)],_0x2237f0,_0x1a49e8,this[_0x394ce3(0xfc)]):this[_0x394ce3(0x12f)][_0x394ce3(0x29b)](W,this['unitID'],this[_0x394ce3(0x498)],_0x2237f0,this[_0x394ce3(0xfc)]);_0x576f54[_0x394ce3(0x142)](),this[_0x394ce3(0xfc)][_0x394ce3(0x2bc)](this,_0x576f54);},_0x373465);}['_getSendChangesetTimeout'](){const _0x283508=_0xb0c99b;var _0x5ebea2;const _0x1079f7=this[_0x283508(0x3ec)]['getConfig'](L);return(_0x5ebea2=_0x1079f7==null?void 0x0:_0x1079f7[_0x283508(0x252)])!=null?_0x5ebea2:Kt;}[_0xb0c99b(0x1b7)](){const _0x599eca=_0xb0c99b;throw new Error(_0x599eca(0x429));}['_clearScheduledTask'](){const _0x40a839=_0xb0c99b;this['_sendingTimer']!=null&&(clearTimeout(this[_0x40a839(0x44a)]),this[_0x40a839(0x44a)]=null);}['_onConflict'](_0x402ef2){const _0x58d177=_0xb0c99b;return this[_0x58d177(0x461)](),this[_0x58d177(0x12f)]['createInstance'](F,this[_0x58d177(0x4c3)],this['type'],null,this[_0x58d177(0x3a8)],this[_0x58d177(0xfc)],_0x402ef2);}};x=z([g(0x4,a[_0xb0c99b(0x455)](a['Injector'])),g(0x5,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x6,a['Inject'](exports[_0xb0c99b(0x2b9)])),g(0x7,a[_0xb0c99b(0x455)](q)),g(0x8,a['ILogService']),g(0x9,a[_0xb0c99b(0x47e)]),g(0xa,a[_0xb0c99b(0x195)]),g(0xb,_['ITransformService']),g(0xc,a['IUniverInstanceService']),g(0xd,a[_0xb0c99b(0x395)])],x);let W=class extends J{constructor(_0x504226,_0x1f609b,_0x162231,_0xd234ae,_0xd6b262,_0x17622e,_0x4e9dfb,_0x21a5ea,_0x4322ea,_0x36bdfc,_0x10de33){const _0x3fcbde=_0xb0c99b;super(_0x504226,_0x1f609b,_0x162231,[],_0xd234ae,_0x21a5ea,_0x10de33,_0x17622e,_0x4e9dfb),d(this,'status',_0x3fcbde(0x21a)),(this[_0x3fcbde(0x12f)]=_0xd6b262,this[_0x3fcbde(0x3cd)]=_0x4322ea,this[_0x3fcbde(0x1f2)]=_0x36bdfc);}[_0xb0c99b(0x453)](_0x40d8a2){const _0x4bddac=_0xb0c99b,_0x35c4d0=this[_0x4bddac(0x12f)][_0x4bddac(0x29b)](k,this[_0x4bddac(0x4c3)],this[_0x4bddac(0x498)],this[_0x4bddac(0x492)],[_0x40d8a2],this[_0x4bddac(0xfc)]);return _0x35c4d0[_0x4bddac(0x142)](),_0x35c4d0;}[_0xb0c99b(0x27d)](_0x6a386e){const _0x1099c9=_0xb0c99b;if(this[_0x1099c9(0x39c)](_0x6a386e))return this['_injector'][_0x1099c9(0x29b)](H,this[_0x1099c9(0x4c3)],this['type'],this[_0x1099c9(0x492)],[],null,[_0x6a386e],this['_handler']);try{const _0x5d6eaf=this[_0x1099c9(0x1f2)][_0x1099c9(0x35a)]([_0x6a386e],[this['_awaitingChangeset']],!0x1);if(_[_0x1099c9(0x102)](_0x5d6eaf)){const {c1Prime:_0x5dd40a,c2Prime:_0x2b98aa}=_0x5d6eaf;this['_executeRemoteChangeset'](_0x5dd40a[0x0]),_0x2b98aa[0x0]['baseRev']=this[_0x1099c9(0x258)]();const _0x3d20b4=this[_0x1099c9(0x12f)][_0x1099c9(0x29b)](W,this['unitID'],this['type'],_0x2b98aa[0x0],this[_0x1099c9(0xfc)]);return _0x3d20b4[_0x1099c9(0x142)](),_0x3d20b4;}return this[_0x1099c9(0x1dd)](!0x1);}catch(_0x5add5d){return this[_0x1099c9(0x3cd)][_0x1099c9(0x4d1)](_0x5add5d),this['_onConflict'](!0x1);}}[_0xb0c99b(0x390)](_0x1d8451){const _0x410447=_0xb0c99b,_0x2ee2d5=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);if(_0x1d8451[_0x410447(0x1b9)]<_0x2ee2d5-0x1)return this;if(this['_checkMissing'](_0x1d8451))return this[_0x410447(0x12f)][_0x410447(0x29b)](H,this['unitID'],this['type'],null,[],this[_0x410447(0x492)],[],this[_0x410447(0xfc)]);this['_incrementRevisionNumber']();const _0x10ec37=this[_0x410447(0x12f)][_0x410447(0x29b)](ie,this['unitID'],this['type'],this[_0x410447(0xfc)]);return _0x10ec37[_0x410447(0x142)](),_0x10ec37;}[_0xb0c99b(0x3aa)](_0xce8d7d){const _0x29da3d=_0xb0c99b;return this['_onConflict'](!!(_0xce8d7d!=null&&_0xce8d7d[_0x29da3d(0x2ce)]));}[_0xb0c99b(0x4cb)](){const _0x53f9a8=_0xb0c99b;return this[_0x53f9a8(0x12f)][_0x53f9a8(0x29b)](G,this['unitID'],this['type'],this[_0x53f9a8(0x492)],[],this[_0x53f9a8(0xfc)]);}[_0xb0c99b(0x222)](){return this;}[_0xb0c99b(0x1b7)](){const _0xc2ed12=_0xb0c99b;this[_0xc2ed12(0xfc)][_0xc2ed12(0x1c5)](this[_0xc2ed12(0x492)]);}['_onConflict'](_0x389ec4){const _0xac15da=_0xb0c99b;return this[_0xac15da(0x12f)][_0xac15da(0x29b)](F,this[_0xac15da(0x4c3)],this[_0xac15da(0x498)],this[_0xac15da(0x492)],[],this[_0xac15da(0xfc)],_0x389ec4);}};W=z([g(0x4,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),g(0x5,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x6,a['Inject'](exports['LocalCacheService'])),g(0x7,a[_0xb0c99b(0x47e)]),g(0x8,a['ILogService']),g(0x9,_['ITransformService']),g(0xa,a[_0xb0c99b(0x395)])],W);let k=class extends J{constructor(_0x57b34d,_0x92f397,_0x569567,_0x3c945d,_0x522ae3,_0x19b44f,_0x409a9d,_0x4b14ae,_0x58530a,_0x5ff26f,_0x53435c,_0x3f0f16){const _0x2bc434=_0xb0c99b;super(_0x57b34d,_0x92f397,_0x569567,_0x3c945d,_0x522ae3,_0x58530a,_0x3f0f16,_0x409a9d,_0x4b14ae),d(this,_0x2bc434(0x366),_0x2bc434(0x4b2)),(this[_0x2bc434(0x12f)]=_0x19b44f,this[_0x2bc434(0x3cd)]=_0x5ff26f,this[_0x2bc434(0x1f2)]=_0x53435c);}[_0xb0c99b(0x453)](_0x8aa7dc){const _0xcc2ca5=_0xb0c99b;return this['_pendingMutations'][_0xcc2ca5(0x2da)](_0x8aa7dc),this;}[_0xb0c99b(0x27d)](_0xbd5ded){const _0xba76a4=_0xb0c99b;if(this[_0xba76a4(0x39c)](_0xbd5ded))return this[_0xba76a4(0x12f)][_0xba76a4(0x29b)](H,this['unitID'],this[_0xba76a4(0x498)],this[_0xba76a4(0x492)],this[_0xba76a4(0x3a8)],null,[_0xbd5ded],this[_0xba76a4(0xfc)]);try{const _0x540f0c=this[_0xba76a4(0x1f2)][_0xba76a4(0x35a)]([_0xbd5ded],[this[_0xba76a4(0x492)]],!0x1);if(_[_0xba76a4(0x102)](_0x540f0c)){const {c1Prime:_0xbdbce8,c2Prime:_0x28a9e5}=_0x540f0c,_0x163ae1=this[_0xba76a4(0x1f2)][_0xba76a4(0x2d6)](_0xbdbce8[0x0],this[_0xba76a4(0x3a8)]);if(_[_0xba76a4(0xf3)](_0x163ae1)){const {c1Prime:_0x14fdb5,m2Prime:_0x5e66b3}=_0x163ae1;return this['_executeRemoteChangeset'](_0x14fdb5),_0x28a9e5[0x0][_0xba76a4(0x2b8)]=this['_getCurrentRevision'](),this[_0xba76a4(0x12f)][_0xba76a4(0x29b)](k,this[_0xba76a4(0x4c3)],this[_0xba76a4(0x498)],_0x28a9e5[0x0],_0x5e66b3,this[_0xba76a4(0xfc)]);}throw _0x163ae1['error'];}throw _0x540f0c['error'];}catch(_0x5d8d69){return this[_0xba76a4(0x3cd)][_0xba76a4(0x4d1)](_0x5d8d69),this[_0xba76a4(0x1dd)](!0x1);}}[_0xb0c99b(0x390)](_0x262272){const _0x5ad7d8=_0xb0c99b;if(this[_0x5ad7d8(0x39c)](_0x262272))return this[_0x5ad7d8(0x12f)]['createInstance'](H,this[_0x5ad7d8(0x4c3)],this[_0x5ad7d8(0x498)],null,this[_0x5ad7d8(0x3a8)],this[_0x5ad7d8(0x492)],[],this[_0x5ad7d8(0xfc)]);this[_0x5ad7d8(0x2cc)]();const _0x398d47=this[_0x5ad7d8(0x12f)][_0x5ad7d8(0x29b)](x,this['unitID'],this[_0x5ad7d8(0x498)],this[_0x5ad7d8(0x3a8)],this[_0x5ad7d8(0xfc)]);return _0x398d47[_0x5ad7d8(0x129)](),_0x398d47[_0x5ad7d8(0x142)](),_0x398d47;}['onRemoteRej'](_0x24a917){const _0x5abac9=_0xb0c99b;return this[_0x5abac9(0x1dd)](!!(_0x24a917!=null&&_0x24a917[_0x5abac9(0x2ce)]));}['toggleOffline'](){const _0x810ae8=_0xb0c99b;return this[_0x810ae8(0x12f)][_0x810ae8(0x29b)](G,this[_0x810ae8(0x4c3)],this[_0x810ae8(0x498)],this['_awaitingChangeset'],this[_0x810ae8(0x3a8)],this['_handler']);}['toggleOnline'](){return this;}[_0xb0c99b(0x1b7)](){const _0x96602=_0xb0c99b;this[_0x96602(0xfc)][_0x96602(0x1c5)](this[_0x96602(0x492)]);}[_0xb0c99b(0x1dd)](_0x4f41af){const _0x7c0d3b=_0xb0c99b;return this['_injector'][_0x7c0d3b(0x29b)](F,this[_0x7c0d3b(0x4c3)],this[_0x7c0d3b(0x498)],null,this['_pendingMutations'],this[_0x7c0d3b(0xfc)],_0x4f41af);}};k=z([g(0x5,a['Inject'](a[_0xb0c99b(0x41a)])),g(0x6,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x7,a[_0xb0c99b(0x455)](exports['LocalCacheService'])),g(0x8,a[_0xb0c99b(0x47e)]),g(0x9,a['ILogService']),g(0xa,_[_0xb0c99b(0x37c)]),g(0xb,a[_0xb0c99b(0x395)])],k);let F=class extends J{constructor(_0x9da5,_0x3b8f86,_0x4509cc,_0x3f5159,_0x1d6cca,_0x5614ef=!0x1,_0x18256b,_0xfeca43,_0x542f08,_0x2a0796,_0x1e2dd3,_0x364ebb,_0x113c0b){const _0x476f2a=_0xb0c99b;super(_0x9da5,_0x3b8f86,_0x4509cc,_0x3f5159,_0x1d6cca,_0xfeca43,_0x542f08,_0x1e2dd3,_0x2a0796),d(this,_0x476f2a(0x366),_0x476f2a(0x244)),(this[_0x476f2a(0x2d8)]=_0x5614ef,this[_0x476f2a(0x115)]=_0x18256b,this[_0x476f2a(0x26d)]=_0x364ebb,this[_0x476f2a(0x32d)]=_0x113c0b,this['_showConflictNotification'](),this[_0x476f2a(0xe5)](),this['_disableEditing']());}[_0xb0c99b(0x453)](){return this;}[_0xb0c99b(0x27d)](){return this;}[_0xb0c99b(0x390)](){return this;}[_0xb0c99b(0x3aa)](){return this;}[_0xb0c99b(0x4cb)](){return this;}[_0xb0c99b(0x222)](){return this;}['resend'](){const _0x25403b=_0xb0c99b;throw new Error(_0x25403b(0x106));}[_0xb0c99b(0xe5)](){const _0x23c563=_0xb0c99b;this[_0x23c563(0x40b)]['updateOfflineData'](this[_0x23c563(0x4c3)],this[_0x23c563(0x498)],null,[]);}[_0xb0c99b(0x288)](){const _0xd26f05=_0xb0c99b;this[_0xd26f05(0x2d8)]?this['_notificationService'][_0xd26f05(0x126)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0xd26f05(0x36b)),'type':_0xd26f05(0x4d1),'duration':0x0}):this[_0xd26f05(0x32d)][_0xd26f05(0x126)]({'title':this[_0xd26f05(0x26d)]['t'](_0xd26f05(0x375)),'content':this[_0xd26f05(0x26d)]['t'](_0xd26f05(0x4bb)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x32016d=_0xb0c99b;this[_0x32016d(0x115)]['updatePermissionPoint'](new C[(_0x32016d(0x3bc))](this[_0x32016d(0x4c3)])['id'],!0x1);}};F=z([g(0x6,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x1f0)])),g(0x7,a[_0xb0c99b(0x47e)]),g(0x8,a[_0xb0c99b(0x395)]),g(0x9,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),g(0xa,a['Inject'](_[_0xb0c99b(0x342)])),g(0xb,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),g(0xc,N['INotificationService'])],F);let G=class extends J{constructor(_0x29170f,_0x2e35a2,_0x106417,_0x53b8f5,_0x353785,_0x320517,_0x3b1c70,_0x107f62,_0x5df2c6,_0x3ced9c){const _0x58bcfa=_0xb0c99b;super(_0x29170f,_0x2e35a2,_0x106417,_0x53b8f5,_0x353785,_0x5df2c6,_0x3ced9c,_0x3b1c70,_0x107f62),d(this,_0x58bcfa(0x366),_0x58bcfa(0x1b8)),this[_0x58bcfa(0x12f)]=_0x320517;}['appendMutation'](_0x30a0bf){const _0x15c2f5=_0xb0c99b;return this[_0x15c2f5(0x3a8)][_0x15c2f5(0x2da)](_0x30a0bf),this[_0x15c2f5(0x142)](),this;}[_0xb0c99b(0x27d)](_0x5dc0c2){const _0x548a98=_0xb0c99b;throw new Error(_0x548a98(0x4f3));}['onRemoteAck'](){const _0x1cef10=_0xb0c99b;throw new Error(_0x1cef10(0x31b));}[_0xb0c99b(0x3aa)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}[_0xb0c99b(0x222)](){const _0x34e4c4=_0xb0c99b,{_injector:_0x1b684a,_pendingMutations:_0x3aa45c,_awaitingChangeset:_0x1a6429,unitID:_0x2c7a02,_handler:_0x4ee6b3,type:_0xdf1912}=this,_0x68d4a3=Rt(_0x1b684a,_0x2c7a02,_0xdf1912,_0x1a6429,_0x3aa45c,_0x4ee6b3);return _0x68d4a3 instanceof x?_0x68d4a3['_schedule']():(_0x68d4a3 instanceof k||_0x68d4a3 instanceof W)&&_0x68d4a3[_0x34e4c4(0x1b7)](),_0x68d4a3;}[_0xb0c99b(0x1b7)](){const _0x516e1e=_0xb0c99b;throw new Error(_0x516e1e(0x196));}};G=z([g(0x5,a['Inject'](a[_0xb0c99b(0x41a)])),g(0x6,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x7,a['Inject'](exports['LocalCacheService'])),g(0x8,a[_0xb0c99b(0x47e)]),g(0x9,a[_0xb0c99b(0x395)])],G);let H=class extends J{constructor(_0x55f776,_0x451491,_0x200f91,_0x29a113,_0x34fe6f,_0x7da351,_0x2e8f91,_0x5e4e27,_0x5b04fe,_0x22d4f6,_0x29b795,_0x4a1842,_0x13e410,_0x464d72){const _0x5ac5a8=_0xb0c99b;super(_0x55f776,_0x451491,_0x200f91,_0x29a113,_0x2e8f91,_0x4a1842,_0x13e410,_0x5b04fe,_0x22d4f6),d(this,'status',_0x5ac5a8(0x454)),(this[_0x5ac5a8(0x3f9)]=_0x34fe6f,this[_0x5ac5a8(0x1aa)]=_0x7da351,this[_0x5ac5a8(0x12f)]=_0x5e4e27,this['_logService']=_0x29b795,this[_0x5ac5a8(0x1f2)]=_0x464d72);}['onMissedChangesetFetched'](_0xa5368b){const _0x2a4f70=_0xb0c99b;try{const _0x47bf8f=[..._0xa5368b,...this['_queuedRemoteChangesets']],_0x1d168d=[this[_0x2a4f70(0x492)]||this[_0x2a4f70(0x3f9)]][_0x2a4f70(0x13b)](_0x279a4d=>!!_0x279a4d);let _0x49a187,_0x3bc502;if(_0x1d168d[_0x2a4f70(0x23c)]){const _0x30433c=this[_0x2a4f70(0x1f2)][_0x2a4f70(0x35a)](_0x47bf8f,_0x1d168d,!0x1);if(!_['isTransformChangesetsSuccess'](_0x30433c))throw _0x30433c[_0x2a4f70(0x4d1)];_0x49a187=_0x30433c[_0x2a4f70(0x2d5)],_0x3bc502=_0x30433c[_0x2a4f70(0x469)];}else _0x49a187=_0x47bf8f,_0x3bc502=[];let _0x41975a=this[_0x2a4f70(0x3a8)];_0x49a187[_0x2a4f70(0x1cb)](_0x38f212=>{const _0x537783=_0x2a4f70;let _0x4ffcea;if(_0x41975a['length']){const _0x323612=this['_transformService'][_0x537783(0x2d6)](_0x38f212,_0x41975a);if(!_[_0x537783(0xf3)](_0x323612))throw _0x323612[_0x537783(0x4d1)];_0x4ffcea=_0x323612[_0x537783(0x2d5)],_0x41975a=_0x323612['m2Prime'];}else _0x4ffcea=_0x38f212;this[_0x537783(0x3e2)](_0x4ffcea);}),this[_0x2a4f70(0x3f9)]&&this[_0x2a4f70(0x2cc)](),this[_0x2a4f70(0x492)]&&_0x3bc502[_0x2a4f70(0x23c)]&&(_0x3bc502[0x0][_0x2a4f70(0x2b8)]=this[_0x2a4f70(0x258)]());let _0x12ee76;if(this['_awaitingChangeset']&&_0x41975a[_0x2a4f70(0x23c)]!==0x0)_0x12ee76=this['_injector']['createInstance'](k,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],_0x3bc502[0x0],_0x41975a,this[_0x2a4f70(0xfc)]);else{if(this[_0x2a4f70(0x492)]&&_0x41975a[_0x2a4f70(0x23c)]===0x0)_0x3bc502[0x0][_0x2a4f70(0x2b8)]=this[_0x2a4f70(0x258)](),_0x12ee76=this[_0x2a4f70(0x12f)][_0x2a4f70(0x29b)](W,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],_0x3bc502[0x0],this[_0x2a4f70(0xfc)]);else{if(_0x41975a[_0x2a4f70(0x23c)]!==0x0){const _0x40601e=this[_0x2a4f70(0x12f)]['createInstance'](x,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],_0x41975a,this[_0x2a4f70(0xfc)]);_0x40601e['_schedule'](),_0x12ee76=_0x40601e;}else _0x12ee76=this[_0x2a4f70(0x12f)]['createInstance'](ie,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],this[_0x2a4f70(0xfc)]);}}return _0x12ee76[_0x2a4f70(0x142)](),_0x12ee76;}catch(_0x2b81cd){return this[_0x2a4f70(0x3cd)][_0x2a4f70(0x4d1)]('[FetchMissState]',_0x2a4f70(0x140),_0x2b81cd),this['_injector'][_0x2a4f70(0x29b)](F,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],this[_0x2a4f70(0x492)],this[_0x2a4f70(0x3a8)],this[_0x2a4f70(0xfc)],!0x1);}}[_0xb0c99b(0x1b7)](){const _0x268d1e=_0xb0c99b;throw new Error(_0x268d1e(0x10a));}['appendMutation'](_0x3d6653){const _0x20adf4=_0xb0c99b;return this[_0x20adf4(0x3a8)][_0x20adf4(0x2da)](_0x3d6653),this;}[_0xb0c99b(0x27d)](_0x5716e3){const _0x107232=_0xb0c99b;return this[_0x107232(0x1aa)][_0x107232(0x2da)](_0x5716e3),this;}[_0xb0c99b(0x390)](_0x48174c){const _0x494e31=_0xb0c99b;if(this['_awaitingChangeset'])return this[_0x494e31(0x3f9)]=this[_0x494e31(0x492)],this[_0x494e31(0x492)]=null,this;throw new Error(_0x494e31(0x401));}[_0xb0c99b(0x3aa)](_0x546e67){const _0x19eb01=_0xb0c99b;return this[_0x19eb01(0x1dd)](!!(_0x546e67!=null&&_0x546e67['isPermissionRej']));}[_0xb0c99b(0x4cb)](){const _0x49403e=_0xb0c99b;return this['_injector'][_0x49403e(0x29b)](G,this[_0x49403e(0x4c3)],this[_0x49403e(0x498)],this[_0x49403e(0x492)],this['_pendingMutations'],this[_0x49403e(0xfc)]);}[_0xb0c99b(0x222)](){return this;}[_0xb0c99b(0x1dd)](_0x180919){const _0x5d3bd3=_0xb0c99b;return this[_0x5d3bd3(0x12f)][_0x5d3bd3(0x29b)](F,this[_0x5d3bd3(0x4c3)],this['type'],this['_awaitingChangeset'],this[_0x5d3bd3(0x3a8)],this['_handler'],_0x180919);}};H=z([g(0x7,a['Inject'](a[_0xb0c99b(0x41a)])),g(0x8,a[_0xb0c99b(0x455)](_['RevisionService'])),g(0x9,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),g(0xa,a['ILogService']),g(0xb,a[_0xb0c99b(0x47e)]),g(0xc,a[_0xb0c99b(0x395)]),g(0xd,_[_0xb0c99b(0x37c)])],H);function Rt(_0x3ca286,_0x3ce087,_0x19387f,_0x319877,_0xaace67,_0x4d13d4){const _0x5b2ac2=_0xb0c99b;return _0x319877&&_0xaace67[_0x5b2ac2(0x23c)]?_0x3ca286[_0x5b2ac2(0x29b)](k,_0x3ce087,_0x19387f,_0x319877,_0xaace67,_0x4d13d4):_0x319877?_0x3ca286[_0x5b2ac2(0x29b)](W,_0x3ce087,_0x19387f,_0x319877,_0x4d13d4):_0xaace67['length']?_0x3ca286[_0x5b2ac2(0x29b)](x,_0x3ce087,_0x19387f,_0xaace67,_0x4d13d4):_0x3ca286[_0x5b2ac2(0x29b)](ie,_0x3ce087,_0x19387f,_0x4d13d4);}var Hs=Object[_0xb0c99b(0x3dd)],xs=Object[_0xb0c99b(0x18e)],Ke=(_0x4f3b6a,_0xd60c7c,_0x271e30,_0x42b427)=>{for(var _0x1f6461=_0x42b427>0x1?void 0x0:_0x42b427?xs(_0xd60c7c,_0x271e30):_0xd60c7c,_0x876a61=_0x4f3b6a['length']-0x1,_0xd2eca8;_0x876a61>=0x0;_0x876a61--)(_0xd2eca8=_0x4f3b6a[_0x876a61])&&(_0x1f6461=(_0x42b427?_0xd2eca8(_0xd60c7c,_0x271e30,_0x1f6461):_0xd2eca8(_0x1f6461))||_0x1f6461);return _0x42b427&&_0x1f6461&&Hs(_0xd60c7c,_0x271e30,_0x1f6461),_0x1f6461;},I=(_0x51de2b,_0x1f38d8)=>(_0x52b355,_0x51c7f8)=>_0x1f38d8(_0x52b355,_0x51c7f8,_0x51de2b);exports[_0xb0c99b(0x275)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x5e210a,_0x920e6,_0xc9ca6f,_0x13c132,_0x1ab491,_0xa5311b,_0x101056,_0x9559c8,_0x51b13b,_0x3f15a1,_0x15793b,_0x13b4a1,_0x1348e0){const _0x474b90=_0xb0c99b;super(),d(this,_0x474b90(0x465),new v[(_0x474b90(0x4b1))](null)),d(this,'state$',this[_0x474b90(0x465)]['asObservable']()),d(this,'_state'),d(this,'_collaborationPaused',!0x1),d(this,'status$',this['state$'][_0x474b90(0x3a7)](v[_0x474b90(0x1af)](_0x4de116=>_0x4de116?_0x4de116[_0x474b90(0x366)]:y[_0x474b90(0x4ed)]),v[_0x474b90(0xeb)](0x1))),d(this,_0x474b90(0x14a),!0x1),d(this,_0x474b90(0x440),[]),(this['unitID']=_0x5e210a,this['session']=_0x920e6,this[_0x474b90(0x44d)]=_0xc9ca6f,this[_0x474b90(0x12f)]=_0x13c132,this[_0x474b90(0x40b)]=_0x1ab491,this[_0x474b90(0x1a6)]=_0xa5311b,this['_localeService']=_0x101056,this['_revisionService']=_0x9559c8,this[_0x474b90(0x3cd)]=_0x51b13b,this[_0x474b90(0x425)]=_0x3f15a1,this[_0x474b90(0x33f)]=_0x15793b,this[_0x474b90(0x115)]=_0x13b4a1,this[_0x474b90(0x462)]=_0x1348e0);}get[_0xb0c99b(0x2b7)](){const _0x4a70b9=_0xb0c99b;return this[_0x4a70b9(0x259)];}async[_0xb0c99b(0x188)](){const _0x6877f6=_0xb0c99b;if(this[_0x6877f6(0x2b7)])throw new Error(_0x6877f6(0x2f2));await this[_0x6877f6(0x41f)]();}['pauseCollaboration'](){const _0x296364=_0xb0c99b;return this[_0x296364(0x4bd)]=!0x0,a[_0x296364(0x2ef)](()=>{const _0x4da8f9=_0x296364;this[_0x4da8f9(0x4bd)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0xb0c99b(0x42a)](_0x84eec8){const _0x22fdfa=_0xb0c99b;this[_0x22fdfa(0x259)]=_0x84eec8,this[_0x22fdfa(0x465)][_0x22fdfa(0x3c7)](_0x84eec8);}async['_init'](){const _0x587a19=_0xb0c99b;var _0x5163c2;this[_0x587a19(0x42a)](await this['_createInitialState']()),this[_0x587a19(0x462)]&&((_0x5163c2=this[_0x587a19(0x462)])==null||_0x5163c2[_0x587a19(0x491)](this[_0x587a19(0x4c3)]),this[_0x587a19(0x3d3)](this[_0x587a19(0x462)]['getUnitStatus$'](this[_0x587a19(0x4c3)])[_0x587a19(0x33b)](_0x21b410=>{const _0x4bb098=_0x587a19;this['_logService']['debug']('[CollaborationEntity]',_0x4bb098(0x426),_0x21b410),_0x21b410===bt['OTHER_CLIENTS_EDITING']?(this[_0x4bb098(0x33f)][_0x4bb098(0x126)]({'content':this[_0x4bb098(0x26d)]['t'](_0x4bb098(0x303)),'type':X['MessageType'][_0x4bb098(0x4ba)]}),this['_permissionService'][_0x4bb098(0x3c8)](new C[(_0x4bb098(0x3bc))](this[_0x4bb098(0x4c3)])['id'],!0x1)):this[_0x4bb098(0x115)]['updatePermissionPoint'](new C[(_0x4bb098(0x3bc))](this[_0x4bb098(0x4c3)])['id'],!0x0);})));let _0x152de9=!0x1;return this['disposeWithMe'](this[_0x587a19(0x417)]['sessionStatus$'][_0x587a19(0x33b)](_0x158242=>{const _0x32ec5c=_0x587a19;_0x158242===j[_0x32ec5c(0x305)]?this[_0x32ec5c(0x376)](_0x152de9):_0x158242===j[_0x32ec5c(0x4ed)]&&(_0x152de9=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x587a19(0x417)][_0x587a19(0x1c0)][_0x587a19(0x33b)](_0x23dbdc=>{const _0x2297b8=_0x587a19;try{switch(_0x23dbdc[_0x2297b8(0x1bd)]){case _[_0x2297b8(0x153)][_0x2297b8(0x291)]:{this['_onRemoteChangeset'](_['parseProtocolChangeset'](_0x23dbdc[_0x2297b8(0x494)]));break;}case _[_0x2297b8(0x153)]['CHANGESET_ACK']:{this[_0x2297b8(0x341)](_0x23dbdc[_0x2297b8(0x494)]);break;}case _[_0x2297b8(0x153)][_0x2297b8(0x3fe)]:{this['_onRemoteRejected']();break;}case _[_0x2297b8(0x153)][_0x2297b8(0x30a)]:{this[_0x2297b8(0x1ca)](_0x23dbdc[_0x2297b8(0x494)][_0x2297b8(0x290)]['map'](_0x716548=>_[_0x2297b8(0x35b)](_0x716548)));break;}case _[_0x2297b8(0x153)][_0x2297b8(0xf6)]:this[_0x2297b8(0x302)]({'isPermissionRej':!0x0});}}catch(_0x1321b4){throw console[_0x2297b8(0x4d1)]('Error\x20on\x20receiving\x20event',_0x1321b4),_0x1321b4;}})),this['_state'];}[_0xb0c99b(0x120)](){const _0x4c0658=_0xb0c99b;this[_0x4c0658(0x14a)]=!0x1;}['_lockTransition'](){const _0x53a17d=_0xb0c99b;if(this[_0x53a17d(0x14a)])throw new Error(_0x53a17d(0x1e3));this['_transitionLocked']=!0x0;}[_0xb0c99b(0x481)](_0x1b5eb4){const _0x2ee432=_0xb0c99b;this[_0x2ee432(0x436)](),this[_0x2ee432(0x42a)](this[_0x2ee432(0x259)][_0x2ee432(0x453)](_0x1b5eb4)),this[_0x2ee432(0x120)]();}[_0xb0c99b(0x15e)](_0x273503){const _0x29c82f=_0xb0c99b;if(!(_0x273503['revision']<=this[_0x29c82f(0x217)][_0x29c82f(0x2fa)](this[_0x29c82f(0x4c3)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x29c82f(0x2da)](_0x273503);return;}this['_applyRemoteChangeset'](_0x273503);}}['_exhaustRemoteChangesetQueue'](){const _0x302af1=_0xb0c99b;this[_0x302af1(0x440)][_0x302af1(0x1cb)](_0x310e68=>this[_0x302af1(0x364)](_0x310e68)),this[_0x302af1(0x440)]=[];}['_applyRemoteChangeset'](_0x614257){const _0x485b6a=_0xb0c99b,_0x5df3a9=this['_compressMutationService'][_0x485b6a(0x4e5)][_0x485b6a(0x3ac)](this[_0x485b6a(0x1a6)]['interceptor'][_0x485b6a(0x14e)]()[_0x485b6a(0x178)])(_0x614257[_0x485b6a(0x4e4)],null)||_0x614257[_0x485b6a(0x4e4)],_0x323ce6={..._0x614257,'mutations':_0x5df3a9};this[_0x485b6a(0x436)](),this[_0x485b6a(0x42a)](this[_0x485b6a(0x259)][_0x485b6a(0x27d)](_0x323ce6)),this[_0x485b6a(0x120)]();}[_0xb0c99b(0x341)](_0xdf2fbd){const _0xce5f6c=_0xb0c99b;this[_0xce5f6c(0x436)](),this['_updateState'](this[_0xce5f6c(0x259)]['onRemoteAck'](_0xdf2fbd)),this[_0xce5f6c(0x120)]();}[_0xb0c99b(0x302)](_0x5e194c){const _0x3f1134=_0xb0c99b;this[_0x3f1134(0x436)](),this[_0x3f1134(0x42a)](this[_0x3f1134(0x259)][_0x3f1134(0x3aa)](_0x5e194c)),this['_unlockTransition']();}[_0xb0c99b(0x1ca)](_0x2d31cc){const _0xd2a885=_0xb0c99b;if(!(this['_state']instanceof H))throw new TypeError(_0xd2a885(0x367));const _0x3b387b=_0x2d31cc[_0xd2a885(0x1af)](_0x1c94f1=>{const _0x4842f8=_0xd2a885,_0x25e562=this[_0x4842f8(0x1a6)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x4842f8(0x4e5)][_0x4842f8(0x14e)]()[_0x4842f8(0x178)])(_0x1c94f1['mutations'],null)||_0x1c94f1[_0x4842f8(0x4e4)];return{..._0x1c94f1,'mutations':_0x25e562};});this[_0xd2a885(0x436)](),this[_0xd2a885(0x42a)](this[_0xd2a885(0x259)][_0xd2a885(0x339)](_0x3b387b)),this['_unlockTransition']();}[_0xb0c99b(0x3d2)](){const _0xfd01d4=_0xb0c99b;this['_lockTransition'](),this['_updateState'](this[_0xfd01d4(0x259)][_0xfd01d4(0x4cb)]()),this[_0xfd01d4(0x120)]();}[_0xb0c99b(0x376)](_0x415185=!0x1){const _0x30ec72=_0xb0c99b;this['_lockTransition'](),this['_updateState'](this[_0x30ec72(0x259)][_0x30ec72(0x222)]()),this[_0x30ec72(0x120)]();const _0x261496=this[_0x30ec72(0x259)];_0x415185&&_0x261496 instanceof ie&&(this[_0x30ec72(0x436)](),this[_0x30ec72(0x42a)](_0x261496[_0x30ec72(0x3a0)]()),this[_0x30ec72(0x120)]());}async[_0xb0c99b(0x480)](){return new Promise(_0x1fc47d=>{const _0x33a642=_0x4e0f;this['session']['sessionStatus$'][_0x33a642(0x3a7)](v['take'](0x1))[_0x33a642(0x33b)](async _0x2b509a=>{const _0x1209c9=_0x33a642;_0x1fc47d(await this[_0x1209c9(0x4d7)](_0x2b509a===j[_0x1209c9(0x305)]));});});}['_createHandler'](){const _0xc5834=_0xb0c99b,_0x5e3c21=this[_0xc5834(0x4c3)];return{'onStateChange':(_0x1af793,_0x4f0e1e)=>{const _0x11ae9d=_0xc5834;if(_0x1af793!==this[_0x11ae9d(0x259)])throw new Error(_0x11ae9d(0x457)+_0x1af793['status']+'\x0aAfter:\x20'+_0x4f0e1e['status']+_0x11ae9d(0x2de)+this[_0x11ae9d(0x259)][_0x11ae9d(0x366)]);this[_0x11ae9d(0x42a)](_0x4f0e1e);},'onSendChangeset':_0x1d238e=>{const _0x468356=_0xc5834,_0x5bf29f={'eventID':_[_0x468356(0x153)][_0x468356(0x21f)],'data':{'unitID':_0x1d238e[_0x468356(0x4c3)],'unitType':this[_0x468356(0x44d)],'changeset':_0x1d238e,'memberID':this[_0x468356(0x417)]['getMemberID']()}};this['session'][_0x468356(0x3c3)](_0x5bf29f,this['unitID']);},'onMissingChangesets':({from:_0x4e9cc8,to:_0x2d3111})=>{const _0x1a926b=_0xc5834;this[_0x1a926b(0x3cd)][_0x1a926b(0x347)](_0x1a926b(0x1a9),'fetching\x20missing\x20changesets\x20from\x20'+_0x4e9cc8+_0x1a926b(0x4d9)+_0x2d3111);const _0x109fad={'eventID':_[_0x1a926b(0x153)][_0x1a926b(0x31d)],'data':{'unitID':_0x5e3c21,'unitType':this[_0x1a926b(0x44d)],'from':_0x4e9cc8,'to':_0x2d3111}};this['session'][_0x1a926b(0x3c3)](_0x109fad,this[_0x1a926b(0x4c3)]);}};}async[_0xb0c99b(0x4d7)](_0x23dcbb){const _0x5b7df7=_0xb0c99b;var _0x57acc7,_0x5f1f34;const _0x5ec78c=await this[_0x5b7df7(0x40b)][_0x5b7df7(0x4e3)](this['unitID']),_0x8226aa=(_0x57acc7=_0x5ec78c==null?void 0x0:_0x5ec78c[_0x5b7df7(0x4e4)])!=null?_0x57acc7:[],_0x5ca6fa=(_0x5f1f34=_0x5ec78c==null?void 0x0:_0x5ec78c[_0x5b7df7(0x249)])!=null?_0x5f1f34:null,_0x46fe3a=this[_0x5b7df7(0x4c3)];try{this[_0x5b7df7(0x282)](_0x5ca6fa,_0x8226aa);}catch(_0x5cf70a){this[_0x5b7df7(0x3cd)][_0x5b7df7(0x4d1)](_0x5cf70a);}const _0x68e1ed=this[_0x5b7df7(0x1a7)]();if(_0x23dcbb){const _0x45f016=Rt(this['_injector'],_0x46fe3a,this[_0x5b7df7(0x44d)],_0x5ca6fa,_0x8226aa,_0x68e1ed);return _0x45f016 instanceof x?_0x45f016[_0x5b7df7(0x129)]():(_0x45f016 instanceof k||_0x45f016 instanceof W)&&_0x45f016['resend'](),_0x45f016;}return this[_0x5b7df7(0x12f)]['createInstance'](G,_0x46fe3a,this[_0x5b7df7(0x44d)],_0x5ca6fa,_0x8226aa,_0x68e1ed);}[_0xb0c99b(0x282)](_0x1d8571,_0x531463){const _0x4638ec=_0xb0c99b;var _0x5d520e,_0x36fe10;const _0x5b2d00=this['_compressMutationService'][_0x4638ec(0x4e5)][_0x4638ec(0x3ac)](this[_0x4638ec(0x1a6)][_0x4638ec(0x4e5)][_0x4638ec(0x14e)]()[_0x4638ec(0x178)]);(_0x5d520e=_0x5b2d00((_0x1d8571==null?void 0x0:_0x1d8571['mutations'])||[],null))==null||_0x5d520e[_0x4638ec(0x1cb)](_0x503ec3=>this[_0x4638ec(0x425)][_0x4638ec(0x135)](_0x503ec3['id'],_0x503ec3[_0x4638ec(0x2e3)])),(_0x36fe10=_0x5b2d00(_0x531463||[],null))==null||_0x36fe10['forEach'](_0x59e4b4=>this[_0x4638ec(0x425)][_0x4638ec(0x135)](_0x59e4b4['id'],_0x59e4b4[_0x4638ec(0x2e3)]));}},exports[_0xb0c99b(0x275)]=Ke([I(0x3,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x32a)])),I(0x6,a['Inject'](a[_0xb0c99b(0x472)])),I(0x7,a[_0xb0c99b(0x455)](_['RevisionService'])),I(0x8,a[_0xb0c99b(0x2b2)]),I(0x9,a[_0xb0c99b(0x47e)]),I(0xa,N['IMessageService']),I(0xb,a['IPermissionService']),I(0xc,a[_0xb0c99b(0x1c6)](Te))],exports['CollaborationEntity']),exports[_0xb0c99b(0x145)]=class extends exports['CollaborationEntity']{constructor(_0x15e317,_0xdfdcb,_0x336379,_0x4a759f,_0x2b7c65,_0x3864c2,_0x2d6918,_0x38988a,_0x3a7077,_0x33b221,_0x4f2e10,_0x4356aa,_0x486a34,_0x5bd63d,_0x36aa8a,_0x1b30b8,_0x5abe74){const _0x4e02cf=_0xb0c99b;super(_0x15e317,_0x336379,_0xdfdcb,_0x4a759f,_0x2b7c65,_0x3864c2,_0x2d6918,_0x38988a,_0x486a34,_0x5bd63d,_0x36aa8a,_0x1b30b8,_0x5abe74),this[_0x4e02cf(0x4c3)]=_0x15e317,this[_0x4e02cf(0x498)]=_0xdfdcb,this[_0x4e02cf(0x166)]=_0x3a7077,this['_docTransformIMECacheService']=_0x33b221,this[_0x4e02cf(0x12d)]=_0x4f2e10,this[_0x4e02cf(0x3ee)]=_0x4356aa;}['_createHandler'](){const _0x15e856=_0xb0c99b,_0x1cf4e7=super['_createHandler']();return _0x1cf4e7['onTransformIME']=_0x13622d=>this['_docTransformIMECacheService'][_0x15e856(0x4e9)](_0x13622d),_0x1cf4e7[_0x15e856(0x1e4)]=_0x5f4b80=>this['_docTransformSelectionsService']['transformSelections'](_0x5f4b80),_0x1cf4e7['onSyncEditingCollabCursor']=_0x198916=>this[_0x15e856(0x3ee)][_0x15e856(0x13f)](_0x198916),_0x1cf4e7[_0x15e856(0x2f3)]=_0x24d376=>this[_0x15e856(0x446)][_0x15e856(0x315)](_0x24d376),_0x1cf4e7;}async['_init'](){const _0x3a9196=_0xb0c99b,_0x3dd0d1=await super[_0x3a9196(0x41f)]();return this['disposeWithMe'](this[_0x3a9196(0x425)][_0x3a9196(0x2ac)]((_0xadd1b5,_0x4043e9)=>{const _0x5d7133=_0x3a9196;if(_0xadd1b5[_0x5d7133(0x498)]!==a[_0x5d7133(0x1a2)][_0x5d7133(0x293)]||_0x4043e9!=null&&_0x4043e9[_0x5d7133(0x3b1)]||_0x4043e9!=null&&_0x4043e9['onlyLocal'])return;const _0xab9842=_0xadd1b5[_0x5d7133(0x2e3)];if((_0xab9842==null?void 0x0:_0xab9842[_0x5d7133(0x13a)])!==this[_0x5d7133(0x4c3)])return;let _0x150777=_0xadd1b5;if(_0x150777['id']===V[_0x5d7133(0x396)]['id']){const _0x26c141=_0x150777[_0x5d7133(0x2e3)];_0x150777={'id':V[_0x5d7133(0x396)]['id'],'type':a[_0x5d7133(0x1a2)][_0x5d7133(0x293)],'params':{'unitId':_0x26c141[_0x5d7133(0x13a)],'actions':_0x26c141[_0x5d7133(0xff)],'textRanges':null}};}const _0x11caa9=this[_0x5d7133(0x1a6)]['interceptor'][_0x5d7133(0x3ac)](this['_compressMutationService']['interceptor'][_0x5d7133(0x14e)]()['COMPRESS_MUTATION_SEND'])([_0x150777],null)||[_0x150777];this['_onLocalMutation'](_0x11caa9[0x0]);})),_0x3dd0d1;}},exports[_0xb0c99b(0x145)]=Ke([I(0x3,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),I(0x4,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),I(0x5,a['Inject'](_[_0xb0c99b(0x32a)])),I(0x6,a['Inject'](a[_0xb0c99b(0x472)])),I(0x7,a['Inject'](_[_0xb0c99b(0x342)])),I(0x8,a[_0xb0c99b(0x455)](w['DocStateChangeManagerService'])),I(0x9,a['Inject'](Ie)),I(0xa,a['Inject'](Ce)),I(0xb,a[_0xb0c99b(0x455)](Ye)),I(0xc,a['ILogService']),I(0xd,a['ICommandService']),I(0xe,N[_0xb0c99b(0x3bb)]),I(0xf,a[_0xb0c99b(0x1f0)]),I(0x10,a['Optional'](Te))],exports[_0xb0c99b(0x145)]),exports[_0xb0c99b(0x1e7)]=class extends exports[_0xb0c99b(0x275)]{constructor(_0x36c78f,_0x59d152,_0x42809e,_0xa6e85c,_0x1d371c,_0x59ab40,_0x4f62e9,_0x38fd32,_0x5538e2,_0x48bbeb,_0xd05dc3,_0x5ce26b,_0xefdc8d,_0x591a4e){const _0x5bb1da=_0xb0c99b;super(_0x36c78f,_0x42809e,_0x59d152,_0xa6e85c,_0x1d371c,_0x59ab40,_0x4f62e9,_0x38fd32,_0x48bbeb,_0xd05dc3,_0x5ce26b,_0xefdc8d,_0x591a4e),this[_0x5bb1da(0x4c3)]=_0x36c78f,this[_0x5bb1da(0x498)]=_0x59d152,this[_0x5bb1da(0x2ee)]=_0x5538e2;}[_0xb0c99b(0x1a7)](){const _0x2e94b8=_0xb0c99b,_0xee790f=super[_0x2e94b8(0x1a7)]();return _0xee790f[_0x2e94b8(0x1e4)]=_0x39aa41=>this['_sheetTransformSelectionsService'][_0x2e94b8(0x468)](_0x39aa41),_0xee790f;}async[_0xb0c99b(0x41f)](){const _0x26cb1a=_0xb0c99b,_0x24b33f=await super[_0x26cb1a(0x41f)]();return this[_0x26cb1a(0x3d3)](this['_commandService'][_0x26cb1a(0x2ac)]((_0x393dae,_0x54c38e)=>{const _0x1cf8eb=_0x26cb1a;if(_0x393dae[_0x1cf8eb(0x498)]!==a[_0x1cf8eb(0x1a2)][_0x1cf8eb(0x293)]||_0x54c38e!=null&&_0x54c38e[_0x1cf8eb(0x3b1)]||_0x54c38e!=null&&_0x54c38e[_0x1cf8eb(0x323)])return;const _0x267b5a=_0x393dae[_0x1cf8eb(0x2e3)];if((_0x267b5a==null?void 0x0:_0x267b5a[_0x1cf8eb(0x13a)])!==this[_0x1cf8eb(0x4c3)])return;const _0x56f695=_0x393dae,_0x42d846=this[_0x1cf8eb(0x1a6)][_0x1cf8eb(0x4e5)]['fetchThroughInterceptors'](this[_0x1cf8eb(0x1a6)][_0x1cf8eb(0x4e5)][_0x1cf8eb(0x14e)]()[_0x1cf8eb(0x489)])([_0x56f695],null)||[_0x56f695];this[_0x1cf8eb(0x481)](_0x42d846[0x0]);})),_0x24b33f;}},exports['SheetCollaborationEntity']=Ke([I(0x3,a['Inject'](a[_0xb0c99b(0x41a)])),I(0x4,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),I(0x5,a['Inject'](_[_0xb0c99b(0x32a)])),I(0x6,a['Inject'](a[_0xb0c99b(0x472)])),I(0x7,a[_0xb0c99b(0x455)](_['RevisionService'])),I(0x8,a[_0xb0c99b(0x455)](pe)),I(0x9,a['ILogService']),I(0xa,a[_0xb0c99b(0x47e)]),I(0xb,N[_0xb0c99b(0x3bb)]),I(0xc,a[_0xb0c99b(0x1f0)]),I(0xd,a[_0xb0c99b(0x1c6)](Te))],exports[_0xb0c99b(0x1e7)]);var ks=Object['defineProperty'],Bs=Object[_0xb0c99b(0x18e)],Vs=(_0x10c62d,_0x4c119d,_0x536177,_0x391b4e)=>{for(var _0x4735a9=_0x391b4e>0x1?void 0x0:_0x391b4e?Bs(_0x4c119d,_0x536177):_0x4c119d,_0x37992e=_0x10c62d['length']-0x1,_0x14a286;_0x37992e>=0x0;_0x37992e--)(_0x14a286=_0x10c62d[_0x37992e])&&(_0x4735a9=(_0x391b4e?_0x14a286(_0x4c119d,_0x536177,_0x4735a9):_0x14a286(_0x4735a9))||_0x4735a9);return _0x391b4e&&_0x4735a9&&ks(_0x4c119d,_0x536177,_0x4735a9),_0x4735a9;},Pe=(_0x136f1b,_0x202ec4)=>(_0x3c3517,_0x4f30fd)=>_0x202ec4(_0x3c3517,_0x4f30fd,_0x136f1b);exports[_0xb0c99b(0x109)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x937af9,_0x2351d5,_0x489387){const _0x50b96d=_0xb0c99b;super(),d(this,'_entities',new Map()),d(this,_0x50b96d(0x4d5),new v[(_0x50b96d(0x349))]()),(this[_0x50b96d(0x12f)]=_0x937af9,this[_0x50b96d(0x2c5)]=_0x2351d5,this[_0x50b96d(0x3fb)]=_0x489387,this[_0x50b96d(0x41f)]());}[_0xb0c99b(0x11c)](){const _0x2f1f30=_0xb0c99b;super[_0x2f1f30(0x11c)](),this[_0x2f1f30(0x3a4)][_0x2f1f30(0x1cb)](_0x39b4a3=>_0x39b4a3[_0x2f1f30(0x11c)]()),this['_entities'][_0x2f1f30(0x460)]();}[_0xb0c99b(0x30c)](_0x437b76){const _0x4ab63b=_0xb0c99b;var _0x1cf8cb;return(_0x1cf8cb=this[_0x4ab63b(0x3a4)][_0x4ab63b(0x1a0)](_0x437b76))!=null?_0x1cf8cb:null;}[_0xb0c99b(0x253)](_0x208388){const _0xb92a80=_0xb0c99b,_0x6615d9=this[_0xb92a80(0x30c)](_0x208388);return _0x6615d9?v['of'](_0x6615d9):this[_0xb92a80(0x4d5)]['pipe'](E['filter'](_0x3778b6=>_0x3778b6[_0xb92a80(0x4c3)]===_0x208388));}['_init'](){const _0x2ab5fb=_0xb0c99b;this[_0x2ab5fb(0x3fb)][_0x2ab5fb(0x2a4)](a[_0x2ab5fb(0x111)][_0x2ab5fb(0x3e6)])[_0x2ab5fb(0x3a7)](v[_0x2ab5fb(0x450)](this[_0x2ab5fb(0x495)]),E[_0x2ab5fb(0x4d6)](0x10))[_0x2ab5fb(0x33b)](async _0x25822b=>{const _0x21c478=_0x2ab5fb,_0x1e7290=_0x25822b[_0x21c478(0x4dd)](),_0x996d2b=await this[_0x21c478(0x357)](_0x1e7290,$[_0x21c478(0x3e6)]);this[_0x21c478(0x3a4)][_0x21c478(0x4d0)](_0x1e7290,_0x996d2b);}),this['_univerInstanceService'][_0x2ab5fb(0x2a4)](a[_0x2ab5fb(0x111)]['UNIVER_DOC'])['pipe'](v[_0x2ab5fb(0x450)](this[_0x2ab5fb(0x495)]),E['delay'](0x10))[_0x2ab5fb(0x3a7)](E[_0x2ab5fb(0x13b)](_0x7671a8=>!_0x7671a8[_0x2ab5fb(0x4dd)]()[_0x2ab5fb(0x477)]('__')))[_0x2ab5fb(0x33b)](async _0x3050a6=>{const _0x5d2e7a=_0x2ab5fb,_0x1017a0=_0x3050a6[_0x5d2e7a(0x4dd)](),_0x18d1dd=await this['_startCollaboration'](_0x1017a0,$[_0x5d2e7a(0x254)]);this[_0x5d2e7a(0x3a4)][_0x5d2e7a(0x4d0)](_0x1017a0,_0x18d1dd);}),v['merge'](this['_univerInstanceService'][_0x2ab5fb(0x1a4)](a[_0x2ab5fb(0x111)][_0x2ab5fb(0x3e6)]),this[_0x2ab5fb(0x3fb)]['getTypeOfUnitDisposed$'](a[_0x2ab5fb(0x111)][_0x2ab5fb(0x254)]))[_0x2ab5fb(0x3a7)](v[_0x2ab5fb(0x450)](this[_0x2ab5fb(0x495)]))['subscribe'](_0xa06dee=>{const _0x285454=_0x2ab5fb,_0x1d4799=_0xa06dee[_0x285454(0x4dd)](),_0x510017=this[_0x285454(0x3a4)][_0x285454(0x1a0)](_0x1d4799);_0x510017&&(_0x510017[_0x285454(0x11c)](),this[_0x285454(0x3a4)][_0x285454(0x456)](_0x1d4799));});}async[_0xb0c99b(0x357)](_0x56efe2,_0x58d5){const _0x5e0ba4=_0xb0c99b,_0x5db296=await this[_0x5e0ba4(0x2c5)][_0x5e0ba4(0x230)](_0x56efe2),_0x31c7d1=this[_0x5e0ba4(0x12f)][_0x5e0ba4(0x29b)](this[_0x5e0ba4(0x3da)](_0x58d5),_0x56efe2,_0x58d5,_0x5db296);return await _0x31c7d1['init'](),this['_entityInit$'][_0x5e0ba4(0x3c7)](_0x31c7d1),_0x31c7d1;}['_getCtorByUniverType'](_0x615c09){const _0x3284af=_0xb0c99b;switch(_0x615c09){case $['UNIVER_DOC']:return exports['DocCollaborationEntity'];case $['UNIVER_SHEET']:return exports[_0x3284af(0x1e7)];default:throw new Error(_0x3284af(0x2e1)+_0x615c09);}}},exports[_0xb0c99b(0x109)]=Vs([Pe(0x0,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),Pe(0x1,a['Inject'](exports[_0xb0c99b(0x28a)])),Pe(0x2,a['IUniverInstanceService'])],exports[_0xb0c99b(0x109)]);const nt=[_0xb0c99b(0x216),_0xb0c99b(0x3b0),_0xb0c99b(0x26c),_0xb0c99b(0x4a1),'blue400',_0xb0c99b(0x310)];class Xe extends a['Disposable']{constructor(){const _0x4f712e=_0xb0c99b;super(...arguments),d(this,_0x4f712e(0x321),new Map()),d(this,'_colorIndex',0x0);}[_0xb0c99b(0x1e9)](_0x53ee5e){const _0x5cc0ec=_0xb0c99b;if(this[_0x5cc0ec(0x321)][_0x5cc0ec(0x191)](_0x53ee5e))return this[_0x5cc0ec(0x321)]['get'](_0x53ee5e);const _0x364e39=nt[this[_0x5cc0ec(0x26e)]];return this[_0x5cc0ec(0x26e)]=(this[_0x5cc0ec(0x26e)]+0x1)%nt['length'],this[_0x5cc0ec(0x321)]['set'](_0x53ee5e,_0x364e39),_0x364e39;}}var Ws=Object[_0xb0c99b(0x3dd)],Fs=Object[_0xb0c99b(0x18e)],Gs=(_0x3524c0,_0x3d5fad,_0xba5e76,_0x19c5cf)=>{const _0x21b88b=_0xb0c99b;for(var _0x5d433e=_0x19c5cf>0x1?void 0x0:_0x19c5cf?Fs(_0x3d5fad,_0xba5e76):_0x3d5fad,_0x4d622=_0x3524c0[_0x21b88b(0x23c)]-0x1,_0x5a3e68;_0x4d622>=0x0;_0x4d622--)(_0x5a3e68=_0x3524c0[_0x4d622])&&(_0x5d433e=(_0x19c5cf?_0x5a3e68(_0x3d5fad,_0xba5e76,_0x5d433e):_0x5a3e68(_0x5d433e))||_0x5d433e);return _0x19c5cf&&_0x5d433e&&Ws(_0x3d5fad,_0xba5e76,_0x5d433e),_0x5d433e;},Q=(_0x1292ed,_0x32b540)=>(_0x2a67f8,_0x102a64)=>_0x32b540(_0x2a67f8,_0x102a64,_0x1292ed);const Ys=0x12c,Ks=0x64,Xs=()=>{let _0x12598f=[],_0x244827=!0x1;return _0x328690=>{const _0x21d165=_0x4e0f;_0x12598f[_0x21d165(0x2da)](_0x328690),_0x244827||(_0x244827=!0x0,setTimeout(()=>{const _0x27998b=_0x21d165;_0x12598f[_0x27998b(0x1cb)](_0x4fb6d2=>_0x4fb6d2()),_0x12598f=[],_0x244827=!0x1;}));};};let He=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x3dce05,_0x1599c9,_0x4f6e63,_0x2b239f,_0x4678d7,_0x5722ec,_0x146cc1,_0x5e780a){const _0x51db1a=_0xb0c99b;super(),d(this,'_online',!0x1),d(this,_0x51db1a(0x41f),!0x1),d(this,_0x51db1a(0x25a),new v[(_0x51db1a(0x4b1))](new Map())),d(this,_0x51db1a(0x3bd),this[_0x51db1a(0x25a)][_0x51db1a(0x3af)]()),d(this,_0x51db1a(0x26b),new v['BehaviorSubject']([])),d(this,_0x51db1a(0x150),this[_0x51db1a(0x26b)]['pipe'](v[_0x51db1a(0x3d6)](Ys))),d(this,_0x51db1a(0x272),a['debounce']((_0x4ae4d4,_0x1b1adc)=>{const _0x5536f8=_0x51db1a,_0x4cb4aa={'eventID':_[_0x5536f8(0x153)][_0x5536f8(0x2c7)],'data':{'unitID':this[_0x5536f8(0x4c3)],'memberID':this[_0x5536f8(0x276)]['getMemberID'](),'selection':Je[_0x5536f8(0x428)](_0x4ae4d4,_0x1b1adc[_0x5536f8(0x4ec)])}};this['_session']['send'](_0x4cb4aa,this[_0x5536f8(0x4c3)]);},Ks)),(this[_0x51db1a(0x4c3)]=_0x3dce05,this['_session']=_0x1599c9,this[_0x51db1a(0x12f)]=_0x4f6e63,this[_0x51db1a(0x139)]=_0x2b239f,this[_0x51db1a(0x3f3)]=_0x4678d7,this[_0x51db1a(0x3fb)]=_0x5722ec,this[_0x51db1a(0x425)]=_0x146cc1,this[_0x51db1a(0x30f)]=_0x5e780a);}get[_0xb0c99b(0x487)](){const _0x401a59=_0xb0c99b;return this[_0x401a59(0x25a)][_0x401a59(0x3d1)]();}get[_0xb0c99b(0x2ec)](){const _0x4773fb=_0xb0c99b;return this[_0x4773fb(0x26b)][_0x4773fb(0x3d1)]();}[_0xb0c99b(0x11c)](){const _0x3277e3=_0xb0c99b;super['dispose'](),this['_cursorInfo$'][_0x3277e3(0x3c7)](new Map()),this['_cursorInfo$'][_0x3277e3(0x484)](),this['_roomMembers$'][_0x3277e3(0x3c7)]([]),this[_0x3277e3(0x26b)][_0x3277e3(0x484)]();}['init'](){const _0xb06f3e=_0xb0c99b;this[_0xb06f3e(0x41f)]||(this['_init']=!0x0,this[_0xb06f3e(0x276)]['sessionStatus$'][_0xb06f3e(0x3a7)](v['takeUntil'](this[_0xb06f3e(0x495)]))[_0xb06f3e(0x33b)](_0x356639=>{const _0x3c1aab=_0xb06f3e;_0x356639===j['ONLINE']?this[_0x3c1aab(0x376)]():this[_0x3c1aab(0x3d2)]();}),this[_0xb06f3e(0x276)][_0xb06f3e(0x1c0)][_0xb06f3e(0x3a7)](v['takeUntil'](this['dispose$']))[_0xb06f3e(0x33b)](_0xb5e684=>{const _0x2d20b2=_0xb06f3e,_0x3462a2=_0xb5e684['eventID'];_0x3462a2===_['CollaborationEvent'][_0x2d20b2(0x2c7)]&&this[_0x2d20b2(0x4de)](_0xb5e684),_0x3462a2===_[_0x2d20b2(0x153)]['USERS_LEAVE']&&this[_0x2d20b2(0x48a)](_0xb5e684);}),this[_0xb06f3e(0x352)](),this['disposeWithMe'](this[_0xb06f3e(0x425)]['onCommandExecuted'](_0x3d9536=>{const _0x3032d2=_0xb06f3e;if(this[_0x3032d2(0x136)]&&_0x3d9536['id']===C['SetSelectionsOperation']['id']&&_0x3d9536[_0x3032d2(0x2e3)]['unitId']===this[_0x3032d2(0x4c3)]){const _0x29c343=_0x3d9536[_0x3032d2(0x2e3)];this['_updateLocalCursor'](_0x29c343['subUnitId'],_0x29c343['selections'][0x0]);}})));}[_0xb0c99b(0x4de)](_0x41f6da){const _0x545a25=_0xb0c99b;var _0x471bc2,_0x29a85f;const {memberID:_0x4f5488,selection:_0x52460f}=_0x41f6da['data'],{sheetName:_0x2b40d0,range:_0x3ac8ba}=Je[_0x545a25(0x35e)](_0x52460f),_0x269733={'name':(_0x29a85f=(_0x471bc2=this['_memberService'][_0x545a25(0x4b8)](this[_0x545a25(0x4c3)],_0x4f5488))==null?void 0x0:_0x471bc2[_0x545a25(0x29d)])!=null?_0x29a85f:'Unknown\x20user','range':this[_0x545a25(0x110)](_0x2b40d0,_0x3ac8ba),'sheetID':_0x2b40d0,'color':this[_0x545a25(0x139)][_0x545a25(0x1e9)](_0x4f5488),'selection':_0x52460f},_0x3af2d4=this[_0x545a25(0x487)];_0x3af2d4[_0x545a25(0x4d0)](_0x4f5488,_0x269733),this[_0x545a25(0x25a)]['next'](_0x3af2d4);}[_0xb0c99b(0x48a)](_0x2625d4){const _0x3c8ef0=_0xb0c99b,{memberID:_0x119410}=_0x2625d4['data'],_0x3b67e8=this['cursorInfo'];_0x3b67e8[_0x3c8ef0(0x456)](_0x119410),this['_cursorInfo$'][_0x3c8ef0(0x3c7)](_0x3b67e8);}['_getMergeRange'](_0x47c785,_0x3dcffe){const _0x3dd373=_0xb0c99b;var _0x3a8a31,_0x6d02b;const _0xd030b9=(_0x6d02b=(_0x3a8a31=this['_univerInstanceService'][_0x3dd373(0x24d)](this[_0x3dd373(0x4c3)]))==null?void 0x0:_0x3a8a31[_0x3dd373(0x134)](_0x47c785))==null?void 0x0:_0x6d02b[_0x3dd373(0x179)]();return(_0xd030b9==null?void 0x0:_0xd030b9[_0x3dd373(0x24b)](_0xfb6a8c=>a[_0x3dd373(0x1d0)][_0x3dd373(0x2b4)](_0xfb6a8c,_0x3dcffe)))||_0x3dcffe;}['_onRefRangeChange'](){const _0x575d8d=_0xb0c99b,_0x14b82c=new a[(_0x575d8d(0x283))](),_0x3c4f02=Xs(),_0x5f1092=()=>{const _0x3805b2=_0x575d8d;_0x14b82c[_0x3805b2(0x11c)]();const _0x305b5d=(_0x4c2e4a,_0x5a0fda,_0x9d4988,_0x33a328)=>{const _0x448299=_0x3805b2;let _0x1afc9e=[];switch(_0x4c2e4a['id']){case C[_0x448299(0x37d)][_0x448299(0x242)]:{_0x1afc9e=C[_0x448299(0x377)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)][_0x448299(0x1c2)]:{_0x1afc9e=C[_0x448299(0x2eb)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)]['InsertColCommandId']:{_0x1afc9e=C['handleInsertCol'](_0x4c2e4a,_0x33a328);break;}case C['EffectRefRangId'][_0x448299(0x16f)]:{_0x1afc9e=C[_0x448299(0x112)](_0x4c2e4a,_0x33a328);break;}case C['EffectRefRangId'][_0x448299(0x443)]:{_0x1afc9e=C[_0x448299(0x33a)](_0x4c2e4a,_0x33a328);break;}case C['EffectRefRangId'][_0x448299(0x3ff)]:{_0x1afc9e=C[_0x448299(0x45a)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)]['MoveRangeCommandId']:{_0x1afc9e=C[_0x448299(0x471)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)]['RemoveColCommandId']:{_0x1afc9e=C['handleIRemoveCol'](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)][_0x448299(0x393)]:{_0x1afc9e=C['handleIRemoveRow'](_0x4c2e4a,_0x33a328);break;}}const _0x133bcb=C[_0x448299(0x151)](_0x1afc9e,_0x33a328),_0x794490=this[_0x448299(0x487)][_0x448299(0x1a0)](_0x5a0fda);if(_0x794490&&_0x133bcb){const _0x544fda={..._0x794490,'range':_0x133bcb};this['cursorInfo']['set'](_0x5a0fda,_0x544fda),_0x3c4f02(()=>{const _0x5dd255=_0x448299,_0x292e59=this[_0x5dd255(0x30f)][_0x5dd255(0x2a9)](_0x133bcb,_0x57ef0d=>(_0x292e59['dispose'](),_0x305b5d(_0x57ef0d,_0x5a0fda,_0x9d4988,_0x133bcb)));_0x14b82c['add'](_0x292e59);});}return{'redos':[],'undos':[]};};this[_0x3805b2(0x487)][_0x3805b2(0x1cb)]((_0x282204,_0x37cf24)=>{const _0xd66119=_0x3805b2,{range:_0x51f2eb,sheetID:_0x50c474}=_0x282204,_0x2d857d=this[_0xd66119(0x30f)][_0xd66119(0x2a9)](_0x51f2eb,_0x5d9e0e=>(_0x2d857d[_0xd66119(0x11c)](),_0x305b5d(_0x5d9e0e,_0x37cf24,_0x50c474,_0x51f2eb)));_0x14b82c[_0xd66119(0x143)](_0x2d857d);});};this[_0x575d8d(0x3d3)](a[_0x575d8d(0x2ef)](this['_cursorInfo$'][_0x575d8d(0x33b)](()=>{_0x5f1092();})));}[_0xb0c99b(0x376)](){const _0x2b55de=_0xb0c99b;var _0x39f4f6,_0x1a3263;if(this[_0x2b55de(0x136)]=!0x0,((_0x39f4f6=this['_univerInstanceService'][_0x2b55de(0x345)]())==null?void 0x0:_0x39f4f6[_0x2b55de(0x4dd)]())!==this['unitID'])return;const _0x144ec1=(_0x1a3263=this['_injector'][_0x2b55de(0x1a0)](C[_0x2b55de(0x1f3)])[_0x2b55de(0x210)]())==null?void 0x0:_0x1a3263[0x0],_0x2a3f5c=this['_univerInstanceService'][_0x2b55de(0x3c6)](a[_0x2b55de(0x111)][_0x2b55de(0x3e6)])[_0x2b55de(0x1ba)]();_0x144ec1&&_0x2a3f5c&&this['_updateLocalCursor'](_0x2a3f5c['getSheetId'](),_0x144ec1);}[_0xb0c99b(0x3d2)](){const _0x4005bd=_0xb0c99b;this[_0x4005bd(0x136)]=!0x1;}};He=Gs([Q(0x2,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),Q(0x3,a[_0xb0c99b(0x455)](Xe)),Q(0x4,a[_0xb0c99b(0x455)](q)),Q(0x5,a[_0xb0c99b(0x49b)]),Q(0x6,a[_0xb0c99b(0x47e)]),Q(0x7,a['Inject'](C['RefRangeService']))],He);var qs=Object[_0xb0c99b(0x3dd)],zs=Object['getOwnPropertyDescriptor'],Js=(_0x2622e0,_0x568e02,_0x31eefe,_0x45fe0e)=>{const _0x536179=_0xb0c99b;for(var _0x5424fe=_0x45fe0e>0x1?void 0x0:_0x45fe0e?zs(_0x568e02,_0x31eefe):_0x568e02,_0x31c37d=_0x2622e0[_0x536179(0x23c)]-0x1,_0x4b7d7d;_0x31c37d>=0x0;_0x31c37d--)(_0x4b7d7d=_0x2622e0[_0x31c37d])&&(_0x5424fe=(_0x45fe0e?_0x4b7d7d(_0x568e02,_0x31eefe,_0x5424fe):_0x4b7d7d(_0x5424fe))||_0x5424fe);return _0x45fe0e&&_0x5424fe&&qs(_0x568e02,_0x31eefe,_0x5424fe),_0x5424fe;},K=(_0x5e0a86,_0x5529fd)=>(_0x3079b2,_0xf4230c)=>_0x5529fd(_0x3079b2,_0xf4230c,_0x5e0a86);const Zs=0x12c,Qs=0x64;let xe=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x93393a,_0x3d958f,_0xbccd15,_0x1f340d,_0x4015d6,_0x37f1c2,_0x1bf133,_0x3301c5,_0x345208){const _0x425de8=_0xb0c99b;super(),d(this,_0x425de8(0x136),!0x1),d(this,_0x425de8(0x41f),!0x1),d(this,_0x425de8(0x25a),new v['BehaviorSubject'](new Map())),d(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),d(this,_0x425de8(0x26b),new v['BehaviorSubject']([])),d(this,'roomMembers$',this['_roomMembers$'][_0x425de8(0x3a7)](v['debounceTime'](Zs))),d(this,'_updateLocalCursor',a[_0x425de8(0x301)](_0x506385=>{const _0x4b78dd=_0x425de8,_0x161fec={'eventID':_[_0x4b78dd(0x153)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x4b78dd(0x276)][_0x4b78dd(0x34f)](),'selection':Tt(_0x506385)}};this[_0x4b78dd(0x276)][_0x4b78dd(0x3c3)](_0x161fec,this[_0x4b78dd(0x4c3)]);},Qs)),(this[_0x425de8(0x4c3)]=_0x93393a,this[_0x425de8(0x276)]=_0x3d958f,this[_0x425de8(0x12f)]=_0xbccd15,this['_colorAssignService']=_0x1f340d,this['_memberService']=_0x4015d6,this[_0x425de8(0x37f)]=_0x37f1c2,this[_0x425de8(0x1f2)]=_0x1bf133,this[_0x425de8(0x3fb)]=_0x3301c5,this[_0x425de8(0x425)]=_0x345208);}get['cursorInfo'](){const _0x5c58c6=_0xb0c99b;return this[_0x5c58c6(0x25a)][_0x5c58c6(0x3d1)]();}get[_0xb0c99b(0x2ec)](){const _0x2f49d5=_0xb0c99b;return this[_0x2f49d5(0x26b)][_0x2f49d5(0x3d1)]();}[_0xb0c99b(0x11c)](){const _0x480a5b=_0xb0c99b;super[_0x480a5b(0x11c)](),this[_0x480a5b(0x25a)][_0x480a5b(0x3c7)](new Map()),this['_cursorInfo$'][_0x480a5b(0x484)](),this[_0x480a5b(0x26b)][_0x480a5b(0x3c7)]([]),this[_0x480a5b(0x26b)][_0x480a5b(0x484)]();}[_0xb0c99b(0x188)](){const _0x5b2a93=_0xb0c99b;this[_0x5b2a93(0x41f)]||(this['_init']=!0x0,this[_0x5b2a93(0x276)][_0x5b2a93(0x404)][_0x5b2a93(0x3a7)](v[_0x5b2a93(0x450)](this['dispose$']))[_0x5b2a93(0x33b)](_0x635c69=>{const _0x5a3418=_0x5b2a93;_0x635c69===j[_0x5a3418(0x305)]?this[_0x5a3418(0x376)]():this[_0x5a3418(0x3d2)]();}),this[_0x5b2a93(0x276)][_0x5b2a93(0x1c0)][_0x5b2a93(0x3a7)](v['takeUntil'](this[_0x5b2a93(0x495)]))['subscribe'](_0x39d83b=>{const _0x27c3a0=_0x5b2a93,_0x355f27=_0x39d83b[_0x27c3a0(0x1bd)];_0x355f27===_[_0x27c3a0(0x153)]['UPDATE_CURSOR']&&this[_0x27c3a0(0x4de)](_0x39d83b),_0x355f27===_[_0x27c3a0(0x153)]['USERS_LEAVE']&&this[_0x27c3a0(0x48a)](_0x39d83b);}),this[_0x5b2a93(0x3d3)](this[_0x5b2a93(0x425)][_0x5b2a93(0x2ac)](_0x1adc61=>{const _0x9a6120=_0x5b2a93,_0x3c48a3=_0x1adc61[_0x9a6120(0x2e3)];_0x3c48a3!=null&&this[_0x9a6120(0x136)]&&_0x1adc61['id']===V['SetTextSelectionsOperation']['id']&&_0x3c48a3['unitId']===this[_0x9a6120(0x4c3)]&&_0x3c48a3['isEditing']===!0x1&&this[_0x9a6120(0x272)](_0x3c48a3[_0x9a6120(0x2a6)]);})),this[_0x5b2a93(0x37f)][_0x5b2a93(0x185)][_0x5b2a93(0x3a7)](v[_0x5b2a93(0x450)](this[_0x5b2a93(0x495)]))[_0x5b2a93(0x33b)](_0x58e45f=>{const _0x334f97=_0x5b2a93;if((_0x58e45f==null?void 0x0:_0x58e45f[_0x334f97(0x4c3)])!==this[_0x334f97(0x4c3)])return;const _0x1c3dce={'eventID':_['CollaborationEvent'][_0x334f97(0x2c7)],'data':_0x58e45f};this[_0x334f97(0x4de)](_0x1c3dce);}),this[_0x5b2a93(0x3d3)](this['_commandService']['onCommandExecuted'](_0x30fcba=>{const _0x12d6dc=_0x5b2a93;if(_0x30fcba['params']==null)return;const _0x3d60ee=_0x30fcba[_0x12d6dc(0x2e3)];if(_0x30fcba['id']!==V['RichTextEditingMutation']['id']||_0x3d60ee[_0x12d6dc(0x13a)]!==this[_0x12d6dc(0x4c3)])return;const _0x3ba58e={'id':'doc.mutation.rich-text-editing','params':_0x3d60ee},_0x1fbaf7=this[_0x12d6dc(0x487)];for(const [_0x3b7f5f,_0x919d7b]of _0x1fbaf7){const _0x1287e3={'id':_0x12d6dc(0x356),'params':{'unitId':this[_0x12d6dc(0x4c3)],'actions':null,'textRanges':_0x919d7b['ranges']}},_0x41d003=this[_0x12d6dc(0x1f2)]['transformMutation'](_0x3ba58e,_0x1287e3,!0x1);if(_[_0x12d6dc(0x48b)](_0x41d003))throw _0x41d003[_0x12d6dc(0x4d1)];_0x1fbaf7['set'](_0x3b7f5f,{..._0x919d7b,'ranges':_0x41d003[_0x12d6dc(0x200)]['params'][_0x12d6dc(0x422)]});}queueMicrotask(()=>{const _0x41acb0=_0x12d6dc;this[_0x41acb0(0x25a)][_0x41acb0(0x3c7)](_0x1fbaf7);});})));}[_0xb0c99b(0x4de)](_0x1af157){const _0x129b93=_0xb0c99b;var _0x21ed1c,_0x570900;const {memberID:_0x26f6a7,selection:_0x4ab656}=_0x1af157['data'],_0x4fb267=Us(_0x4ab656),_0x61eb4d=(_0x570900=(_0x21ed1c=this['_memberService'][_0x129b93(0x4b8)](this['unitID'],_0x26f6a7))==null?void 0x0:_0x21ed1c[_0x129b93(0x29d)])!=null?_0x570900:'Unknown\x20user',_0x547322={'color':this[_0x129b93(0x139)][_0x129b93(0x1e9)](_0x26f6a7),'name':_0x61eb4d,'ranges':_0x4fb267},_0x4ec82d=this['cursorInfo'];_0x4ec82d[_0x129b93(0x4d0)](_0x26f6a7,_0x547322),this[_0x129b93(0x25a)]['next'](_0x4ec82d);}[_0xb0c99b(0x48a)](_0x31a526){const _0xba9d2a=_0xb0c99b,{memberID:_0x525b64}=_0x31a526[_0xba9d2a(0x494)],_0x148b87=this[_0xba9d2a(0x487)];_0x148b87[_0xba9d2a(0x456)](_0x525b64),this[_0xba9d2a(0x25a)][_0xba9d2a(0x3c7)](_0x148b87);}[_0xb0c99b(0x376)](){const _0x35a01f=_0xb0c99b;var _0x96e20d;if(this[_0x35a01f(0x136)]=!0x0,((_0x96e20d=this[_0x35a01f(0x3fb)][_0x35a01f(0x345)]())==null?void 0x0:_0x96e20d[_0x35a01f(0x4dd)]())!==this[_0x35a01f(0x4c3)])return;const _0x5268a3=this['_injector'][_0x35a01f(0x1a0)](V[_0x35a01f(0x1b0)])[_0x35a01f(0x132)]();Array['isArray'](_0x5268a3)&&_0x5268a3[_0x35a01f(0x23c)]>0x0&&this[_0x35a01f(0x272)](_0x5268a3);}['_toggleOffline'](){const _0x3b1428=_0xb0c99b;this[_0x3b1428(0x136)]=!0x1;}};xe=Js([K(0x2,a['Inject'](a[_0xb0c99b(0x41a)])),K(0x3,a['Inject'](Xe)),K(0x4,a[_0xb0c99b(0x455)](q)),K(0x5,a[_0xb0c99b(0x455)](Ye)),K(0x6,_[_0xb0c99b(0x37c)]),K(0x7,a[_0xb0c99b(0x49b)]),K(0x8,a[_0xb0c99b(0x47e)])],xe);var ei=Object[_0xb0c99b(0x3dd)],ti=Object[_0xb0c99b(0x18e)],si=(_0x22d48b,_0x51d389,_0x267339,_0x5cb83f)=>{const _0xc0a22d=_0xb0c99b;for(var _0x4b447b=_0x5cb83f>0x1?void 0x0:_0x5cb83f?ti(_0x51d389,_0x267339):_0x51d389,_0x2dd232=_0x22d48b[_0xc0a22d(0x23c)]-0x1,_0x51bed5;_0x2dd232>=0x0;_0x2dd232--)(_0x51bed5=_0x22d48b[_0x2dd232])&&(_0x4b447b=(_0x5cb83f?_0x51bed5(_0x51d389,_0x267339,_0x4b447b):_0x51bed5(_0x4b447b))||_0x4b447b);return _0x5cb83f&&_0x4b447b&&ei(_0x51d389,_0x267339,_0x4b447b),_0x4b447b;},we=(_0x14635a,_0x24cda7)=>(_0x2624ee,_0x3216cb)=>_0x24cda7(_0x2624ee,_0x3216cb,_0x14635a);let se=class extends a[_0xb0c99b(0x3c1)]{constructor(_0xfbd20a,_0xa523ee,_0x5e908a){const _0x2ec0f1=_0xb0c99b;super(),d(this,'_entities',new Map()),d(this,_0x2ec0f1(0x4d5),new v[(_0x2ec0f1(0x349))]()),(this['_univerInstanceService']=_0xfbd20a,this['_injector']=_0xa523ee,this[_0x2ec0f1(0x2c5)]=_0x5e908a,this[_0x2ec0f1(0x41f)]());}[_0xb0c99b(0x11c)](){const _0x20c0cb=_0xb0c99b;super['dispose'](),this[_0x20c0cb(0x4d5)][_0x20c0cb(0x484)](),this[_0x20c0cb(0x3a4)][_0x20c0cb(0x1cb)](_0x54a3d3=>_0x54a3d3[_0x20c0cb(0x11c)]());}[_0xb0c99b(0x2f7)](_0x5c9916){const _0x7c625d=_0xb0c99b;return this[_0x7c625d(0x3a4)]['has'](_0x5c9916)?this[_0x7c625d(0x3a4)]['get'](_0x5c9916)['cursorInfo$']:this[_0x7c625d(0x4d5)][_0x7c625d(0x3a7)](v['filter'](_0x4e33a0=>_0x4e33a0[_0x7c625d(0x4c3)]===_0x5c9916),v[_0x7c625d(0x22a)](_0x5b49f1=>_0x5b49f1['cursorInfo$']));}[_0xb0c99b(0x41f)](){const _0x41fca9=_0xb0c99b;this[_0x41fca9(0x3fb)][_0x41fca9(0x2a4)](a[_0x41fca9(0x111)]['UNIVER_SHEET'])['pipe'](v[_0x41fca9(0x450)](this[_0x41fca9(0x495)]))['subscribe'](async _0x511d71=>{const _0x3ef23a=_0x41fca9,_0x26297b=_0x511d71[_0x3ef23a(0x4dd)](),_0x2c1305=await this['_startSheetCollabCursor'](_0x26297b);this['_entityInit$'][_0x3ef23a(0x3c7)](_0x2c1305),this[_0x3ef23a(0x3a4)][_0x3ef23a(0x4d0)](_0x26297b,_0x2c1305);}),this[_0x41fca9(0x3fb)][_0x41fca9(0x2a4)](a[_0x41fca9(0x111)][_0x41fca9(0x254)])[_0x41fca9(0x3a7)](v[_0x41fca9(0x450)](this['dispose$']))[_0x41fca9(0x3a7)](v[_0x41fca9(0x13b)](_0x11820b=>!_0x11820b['getUnitId']()['startsWith']('__')))[_0x41fca9(0x33b)](async _0x3d0d52=>{const _0x1121ba=_0x41fca9,_0x2f4552=_0x3d0d52[_0x1121ba(0x4dd)](),_0x1ad743=await this[_0x1121ba(0x45c)](_0x2f4552);this[_0x1121ba(0x4d5)][_0x1121ba(0x3c7)](_0x1ad743),this[_0x1121ba(0x3a4)][_0x1121ba(0x4d0)](_0x2f4552,_0x1ad743);}),v[_0x41fca9(0x387)](this[_0x41fca9(0x3fb)][_0x41fca9(0x1a4)](a[_0x41fca9(0x111)][_0x41fca9(0x254)]),this[_0x41fca9(0x3fb)]['getTypeOfUnitDisposed$'](a[_0x41fca9(0x111)][_0x41fca9(0x3e6)]))['pipe'](v['takeUntil'](this[_0x41fca9(0x495)]))[_0x41fca9(0x33b)](_0x4c4d73=>{const _0x2daa1b=_0x41fca9,_0x12ce9a=_0x4c4d73[_0x2daa1b(0x4dd)](),_0x17060b=this['_entities'][_0x2daa1b(0x1a0)](_0x12ce9a);_0x17060b&&(_0x17060b[_0x2daa1b(0x11c)](),this[_0x2daa1b(0x3a4)][_0x2daa1b(0x456)](_0x12ce9a));});}async[_0xb0c99b(0x4a4)](_0x23a437){const _0x1dfd66=_0xb0c99b,_0x100aee=await this[_0x1dfd66(0x2c5)]['requireSession'](_0x23a437),_0x190d44=this[_0x1dfd66(0x12f)][_0x1dfd66(0x29b)](He,_0x23a437,_0x100aee);return _0x190d44['init'](),_0x190d44;}async[_0xb0c99b(0x45c)](_0x5486f1){const _0x5a9a3f=_0xb0c99b,_0x559ad4=await this[_0x5a9a3f(0x2c5)][_0x5a9a3f(0x230)](_0x5486f1),_0x40059a=this[_0x5a9a3f(0x12f)][_0x5a9a3f(0x29b)](xe,_0x5486f1,_0x559ad4);return _0x40059a[_0x5a9a3f(0x188)](),_0x40059a;}};se=si([a[_0xb0c99b(0x10c)](a[_0xb0c99b(0x133)]['Starting'],se),we(0x0,a[_0xb0c99b(0x49b)]),we(0x1,a['Inject'](a['Injector'])),we(0x2,a['Inject'](exports[_0xb0c99b(0x28a)]))],se);const ue=0x14,rt=0xc8,Me=0x4,ii=0x5;function ni(_0x3f6242,_0x171ac6){const _0x3f2295=_0xb0c99b;let {radius:_0xc2c4b,width:_0x48ed68,height:_0x479788}=_0x171ac6;_0xc2c4b=_0xc2c4b!=null?_0xc2c4b:0x0,_0x48ed68=_0x48ed68!=null?_0x48ed68:0x1e,_0x479788=_0x479788!=null?_0x479788:0x1e;let _0x56133b=0x0,_0x37ddba=0x0,_0x1f3f0c=0x0;_0x56133b=_0x37ddba=_0x1f3f0c=Math[_0x3f2295(0x2f1)](_0xc2c4b,_0x48ed68/0x2,_0x479788/0x2),_0x3f6242['beginPath'](),_0x3f6242['moveTo'](_0x56133b,0x0),_0x3f6242[_0x3f2295(0x14f)](_0x48ed68-_0x37ddba,0x0),_0x3f6242[_0x3f2295(0x42b)](_0x48ed68-_0x37ddba,_0x37ddba,_0x37ddba,Math['PI']*0x3/0x2,0x0,!0x1),_0x3f6242[_0x3f2295(0x14f)](_0x48ed68,_0x479788-_0x1f3f0c),_0x3f6242[_0x3f2295(0x42b)](_0x48ed68-_0x1f3f0c,_0x479788-_0x1f3f0c,_0x1f3f0c,0x0,Math['PI']/0x2,!0x1),_0x3f6242[_0x3f2295(0x14f)](0x0,_0x479788),_0x3f6242['lineTo'](0x0,_0x56133b),_0x3f6242[_0x3f2295(0x42b)](_0x56133b,_0x56133b,_0x56133b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3f6242['closePath'](),_0x171ac6[_0x3f2295(0xf5)]&&(_0x3f6242[_0x3f2295(0x2d9)](),_0x3f6242[_0x3f2295(0x32f)]=_0x171ac6['fill'],_0x171ac6['fillRule']===_0x3f2295(0x4dc)?_0x3f6242['fill'](_0x3f2295(0x4dc)):_0x3f6242[_0x3f2295(0xf5)](),_0x3f6242[_0x3f2295(0x33d)]());}class Re extends R[_0xb0c99b(0x289)]{constructor(_0x279c09,_0x548505){const _0x488371=_0xb0c99b;super(_0x279c09,_0x548505),d(this,_0x488371(0xe8)),d(this,_0x488371(0x266)),(this[_0x488371(0xe8)]=_0x548505==null?void 0x0:_0x548505['color'],this[_0x488371(0x266)]=_0x548505==null?void 0x0:_0x548505[_0x488371(0x266)]);}static[_0xb0c99b(0x1d8)](_0x3e33a0,_0x3a8561){const _0x5d8072=_0xb0c99b,{text:_0x3c1ec3,color:_0x37b4c}=_0x3a8561;_0x3e33a0[_0x5d8072(0x2d9)](),_0x3e33a0['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x26c6ad=_0x3e33a0[_0x5d8072(0x332)](_0x3c1ec3)['width'],_0x165ac0=Math[_0x5d8072(0x2f1)](_0x26c6ad+0x2*Me,rt);ni(_0x3e33a0,{'height':ue,'radius':0x4,'width':_0x165ac0,'fill':_0x37b4c,'evented':!0x1}),_0x3e33a0['fillStyle']=_0x5d8072(0x123);const _0x169ff9=Me,_0x4c8e70=ue-ii,_0x26eed1=rt-0x2*Me;if(_0x26c6ad>_0x26eed1){let _0x2243d3='',_0x5529ff=0x0;for(const _0x5b1d09 of _0x3c1ec3){const _0x589a6b=_0x3e33a0[_0x5d8072(0x332)](_0x5b1d09)[_0x5d8072(0x46e)];if(_0x5529ff+_0x589a6b<=_0x26eed1-_0x3e33a0[_0x5d8072(0x332)](_0x5d8072(0x265))[_0x5d8072(0x46e)])_0x2243d3+=_0x5b1d09,_0x5529ff+=_0x589a6b;else{_0x2243d3+=_0x5d8072(0x265);break;}}_0x3e33a0[_0x5d8072(0x35f)](_0x2243d3,_0x169ff9,_0x4c8e70);}else _0x3e33a0['fillText'](_0x3c1ec3,_0x169ff9,_0x4c8e70);_0x3e33a0[_0x5d8072(0x33d)]();}[_0xb0c99b(0x17a)](_0x5a94ff){Re['drawWith'](_0x5a94ff,this);}}const Ne=_0xb0c99b(0x278),ri=_0xb0c99b(0x15f),oi='collab-rect-range-',ce=0x6,ai=1.5,Le=0x4,ci=1.5,li=_0xb0c99b(0x31c);class ot{constructor(_0x2fa8cc,_0x4f1239,_0x278fa3,_0x3cfed4){const _0x25bdcd=_0xb0c99b;d(this,_0x25bdcd(0x32e),[]),d(this,_0x25bdcd(0x2a2),null),d(this,_0x25bdcd(0x161),null),d(this,'_anchorDot',null),d(this,_0x25bdcd(0x138),null),d(this,_0x25bdcd(0x3f2),null),(this['_cursor']=_0x2fa8cc,this[_0x25bdcd(0x2a0)]=_0x4f1239,this[_0x25bdcd(0x383)]=_0x278fa3,this['_document']=_0x3cfed4,this[_0x25bdcd(0x3ed)]());}set['_hover'](_0x4ccc23){const _0x365462=_0xb0c99b;_0x4ccc23?(this['_anchorDot']&&this[_0x365462(0x36e)][_0x365462(0x22f)](),this[_0x365462(0x161)]&&this[_0x365462(0x161)][_0x365462(0x126)]()):(this['_anchorDot']&&this[_0x365462(0x36e)]['show'](),this[_0x365462(0x161)]&&this[_0x365462(0x161)][_0x365462(0x22f)]());}[_0xb0c99b(0x11c)](){const _0x52639f=_0xb0c99b;for(const _0x9624b3 of this[_0x52639f(0x32e)])_0x9624b3[_0x52639f(0x11c)]();this[_0x52639f(0x161)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x52639f(0x11c)](),this[_0x52639f(0x2a2)]&&this[_0x52639f(0x2a2)][_0x52639f(0x11c)](),this[_0x52639f(0x3f2)]&&this[_0x52639f(0x3f2)]();}['_render'](){const _0x28e1e8=_0xb0c99b;var _0x4137ed;const {_docSkeleton:_0xba9a77,_document:_0x3a80b6}=this,{color:_0x106922,name:_0x1647e0,ranges:_0x3dbf87}=this['_cursor'],_0x39c0df=_0x3a80b6[_0x28e1e8(0x3f0)](),{docsLeft:_0xd2add8,docsTop:_0x37f63e}=_0x39c0df,_0x44ca0a=new w[(_0x28e1e8(0x28f))](_0x39c0df,_0xba9a77);for(const {startOffset:_0x3fe9e1,endOffset:_0x107312,collapsed:_0x1c273e,isActive:_0xa7a838}of _0x3dbf87){const _0x1f38a9=_0xba9a77['findNodePositionByCharIndex'](_0x3fe9e1),_0x583852=_0xba9a77[_0x28e1e8(0x113)](_0x107312);if(_0xa7a838){const {contentBoxPointGroup:_0x4f4f1c}=_0x44ca0a[_0x28e1e8(0x43d)](_0x583852,_0x583852);if(_0x4f4f1c['length']===0x0)continue;this[_0x28e1e8(0x3f5)](_0x106922,_0x4f4f1c,_0xd2add8,_0x37f63e,_0x1647e0),this[_0x28e1e8(0x3f2)]=this['_handleHover']();}if(!_0x1c273e&&_0x1f38a9&&_0x583852){if(w['isValidRectRange'](_0x1f38a9,_0x583852)){const _0x3fd644=new w[(_0x28e1e8(0x431))](_0x39c0df,_0xba9a77),{pointGroup:_0xc98308}=(_0x4137ed=_0x3fd644[_0x28e1e8(0x43d)](_0x1f38a9,_0x583852))!=null?_0x4137ed:{};if(_0xc98308==null||_0xc98308['length']===0x0)continue;this[_0x28e1e8(0x3c0)](_0x106922,_0xc98308,_0xd2add8,_0x37f63e);}else{const {contentBoxPointGroup:_0x5348ff}=_0x44ca0a[_0x28e1e8(0x43d)](_0x1f38a9,_0x583852);if(_0x5348ff[_0x28e1e8(0x23c)]===0x0)continue;this[_0x28e1e8(0x2b3)](_0x106922,_0x5348ff,_0xd2add8,_0x37f63e);}}}}[_0xb0c99b(0x3f5)](_0x39a65b,_0x51a4c1,_0xcc1bce,_0x1f0199,_0x22c850){const _0x254e68=_0xb0c99b,_0x5ee4fd=this[_0x254e68(0x41c)](_0x51a4c1),{left:_0x25967a,top:_0x41f21b,height:_0x217aa8}=_0x5ee4fd,_0x3a3c93=this['_getScale'](),_0xb4d4d0=ci/_0x3a3c93,_0x2f9755=new R['Rect'](Ne+a['Tools'][_0x254e68(0x36a)](ce),{'left':_0x25967a+_0xcc1bce-_0xb4d4d0,'top':_0x41f21b+_0x1f0199,'height':_0x217aa8,'width':ai,'fill':_0x39a65b||R[_0x254e68(0xed)](a[_0x254e68(0x13d)]['black'],0x0),'strokeWidth':_0xb4d4d0,'stroke':li,'evented':!0x0});this[_0x254e68(0x2a2)]=_0x2f9755,this['_scene'][_0x254e68(0x40c)](_0x2f9755,w[_0x254e68(0x1a8)]);const _0xcbd86d=new R[(_0x254e68(0x15c))](Ne+a['Tools'][_0x254e68(0x36a)](ce),{'left':_0x25967a+_0xcc1bce-_0xb4d4d0,'top':_0x41f21b+_0x1f0199-Le/0x2,'height':Le,'width':Le,'fill':_0x39a65b||R[_0x254e68(0xed)](a[_0x254e68(0x13d)][_0x254e68(0x1d4)],0x0),'strokeWidth':0x0,'stroke':_0x39a65b||R[_0x254e68(0xed)](a[_0x254e68(0x13d)][_0x254e68(0x1d4)],0x0),'evented':!0x1});this['_anchorDot']=_0xcbd86d,this[_0x254e68(0x2a0)][_0x254e68(0x40c)](_0xcbd86d,w[_0x254e68(0x1a8)]);const _0xda7711=new Re(Ne+a[_0x254e68(0x286)][_0x254e68(0x36a)](ce),{'left':_0x25967a+_0xcc1bce-_0xb4d4d0,'top':_0x41f21b+_0x1f0199-ue,'text':_0x22c850,'color':_0x39a65b});this[_0x254e68(0x161)]=_0xda7711,this[_0x254e68(0x2a0)][_0x254e68(0x40c)](_0xda7711,w[_0x254e68(0x1a8)]),this[_0x254e68(0x4f5)]=!0x1;}[_0xb0c99b(0x29e)](){const _0x44d6db=_0xb0c99b,_0x4400f1=this[_0x44d6db(0x2a2)][_0x44d6db(0x235)][_0x44d6db(0x15d)](()=>{this['_hover']=!0x0;}),_0xbb4d39=this[_0x44d6db(0x2a2)][_0x44d6db(0x100)]['subscribeEvent'](()=>{const _0x32d167=_0x44d6db;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x32d167(0x138)]=setTimeout(()=>{const _0x1eb30c=_0x32d167;this[_0x1eb30c(0x4f5)]=!0x1;},0x7d0);});return()=>{_0x4400f1['unsubscribe'](),_0xbb4d39['unsubscribe']();};}[_0xb0c99b(0x2b3)](_0x41a613,_0x5e1db7,_0x44cbd4,_0x1e76a0){const _0x27e2c8=_0xb0c99b,_0x513f53=new a[(_0x27e2c8(0x312))](_0x41a613)[_0x27e2c8(0x372)](0.2)[_0x27e2c8(0x2bb)](),_0xb9a98a=new R[(_0x27e2c8(0x11d))](ri+a[_0x27e2c8(0x286)][_0x27e2c8(0x36a)](ce),{'pointsGroup':_0x5e1db7,'fill':_0x513f53||R['getColor'](a[_0x27e2c8(0x13d)]['black'],0.2),'left':_0x44cbd4,'top':_0x1e76a0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27e2c8(0x32e)][_0x27e2c8(0x2da)](_0xb9a98a),this[_0x27e2c8(0x2a0)]['addObject'](_0xb9a98a,w[_0x27e2c8(0x1a8)]);}[_0xb0c99b(0x3c0)](_0xfe416,_0x1fde5d,_0x1ae38e,_0x4b2782){const _0x1f2766=_0xb0c99b,_0x22ce67=new a[(_0x1f2766(0x312))](_0xfe416)[_0x1f2766(0x372)](0.2)[_0x1f2766(0x2bb)](),_0x348cbd=new R[(_0x1f2766(0x11d))](oi+a[_0x1f2766(0x286)][_0x1f2766(0x36a)](ce),{'pointsGroup':_0x1fde5d,'fill':_0x22ce67||R[_0x1f2766(0xed)](a[_0x1f2766(0x13d)][_0x1f2766(0x1d4)],0.2),'left':_0x1ae38e,'top':_0x4b2782,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1f2766(0x2da)](_0x348cbd),this[_0x1f2766(0x2a0)][_0x1f2766(0x40c)](_0x348cbd,w[_0x1f2766(0x1a8)]);}[_0xb0c99b(0x41c)](_0x129ec9){const _0x3c70e0=_0x129ec9[0x0],_0x4fe615=_0x3c70e0[0x0],_0x595c19=_0x3c70e0[0x2],{x:_0x507bd8,y:_0x2332cf}=_0x4fe615,{x:_0x15fa16,y:_0x44a177}=_0x595c19;return{'left':_0x507bd8,'top':_0x2332cf,'width':_0x15fa16-_0x507bd8,'height':_0x44a177-_0x2332cf};}[_0xb0c99b(0x108)](){const _0x265921=_0xb0c99b,{scaleX:_0x229fcd,scaleY:_0x3a356b}=this['_scene'][_0x265921(0x255)]();return Math[_0x265921(0x452)](_0x229fcd,_0x3a356b);}}var hi=Object[_0xb0c99b(0x3dd)],_i=Object[_0xb0c99b(0x18e)],ui=(_0x562cb0,_0x3304b0,_0x23ea92,_0xce8754)=>{const _0x958d11=_0xb0c99b;for(var _0x3ce6ca=_0xce8754>0x1?void 0x0:_0xce8754?_i(_0x3304b0,_0x23ea92):_0x3304b0,_0xf6219a=_0x562cb0[_0x958d11(0x23c)]-0x1,_0x29892b;_0xf6219a>=0x0;_0xf6219a--)(_0x29892b=_0x562cb0[_0xf6219a])&&(_0x3ce6ca=(_0xce8754?_0x29892b(_0x3304b0,_0x23ea92,_0x3ce6ca):_0x29892b(_0x3ce6ca))||_0x3ce6ca);return _0xce8754&&_0x3ce6ca&&hi(_0x3304b0,_0x23ea92,_0x3ce6ca),_0x3ce6ca;},de=(_0x35826c,_0x4f71f9)=>(_0xb9c343,_0xba6e1)=>_0x4f71f9(_0xb9c343,_0xba6e1,_0x35826c);let fe=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x229efb,_0x15811a,_0x25ee30,_0xba6d7b,_0x5a7857){const _0x1b66bb=_0xb0c99b;super(),d(this,'_cursorShapes',[]),d(this,_0x1b66bb(0x402),[]),(this[_0x1b66bb(0x24f)]=_0x229efb,this[_0x1b66bb(0x1e2)]=_0x15811a,this[_0x1b66bb(0x47c)]=_0x25ee30,this[_0x1b66bb(0x425)]=_0xba6d7b,this['_themeService']=_0x5a7857,this[_0x1b66bb(0x41f)]());}['_init'](){const _0xf00e3c=_0xb0c99b,_0x4c4e46=this[_0xf00e3c(0x24f)]['unitId'],_0x41eabd=this[_0xf00e3c(0x1e2)];this[_0xf00e3c(0x3d3)](v[_0xf00e3c(0x3ab)]([this[_0xf00e3c(0x47c)][_0xf00e3c(0x2f7)](_0x4c4e46),this[_0xf00e3c(0x4db)][_0xf00e3c(0x27a)]])[_0xf00e3c(0x3a7)](E[_0xf00e3c(0x1af)](([_0x1a7207,_0x2a6a0])=>({'skeleton':_0x41eabd[_0xf00e3c(0x2a7)](),'cursors':[..._0x1a7207['values']()][_0xf00e3c(0x466)](_0x5900f8=>({..._0x5900f8,'color':_0x2a6a0[_0x5900f8['color']]}))})))[_0xf00e3c(0x33b)](_0xbf2c18=>{const _0x29551c=_0xf00e3c;if(this[_0x29551c(0x219)](),_0xbf2c18){const {skeleton:_0x37bc8f,cursors:_0x529e2b}=_0xbf2c18;this[_0x29551c(0x2c6)](_0x37bc8f,_0x529e2b);}})),this[_0xf00e3c(0x313)](),this[_0xf00e3c(0x2b1)]();}[_0xb0c99b(0x2c6)](_0x325c89,_0x3d6f51){const _0x5857e6=_0xb0c99b,{scene:_0x3e5ac2,mainComponent:_0x1aa4b8}=this[_0x5857e6(0x24f)],_0x54d661=_0x3d6f51[_0x5857e6(0x1af)](_0x5ea00d=>new ot(_0x5ea00d,_0x3e5ac2,_0x325c89,_0x1aa4b8));this['_cursorShapes']=_0x54d661,this[_0x5857e6(0x402)]=_0x3d6f51;}[_0xb0c99b(0x365)](){const _0x47c465=_0xb0c99b;this['_removeCollabCursors']();const {scene:_0x27fffb,mainComponent:_0x2662c1}=this[_0x47c465(0x24f)],_0xdaad7d=this[_0x47c465(0x1e2)][_0x47c465(0x2a7)](),_0x5b745f=this[_0x47c465(0x402)][_0x47c465(0x1af)](_0x11dfef=>new ot(_0x11dfef,_0x27fffb,_0xdaad7d,_0x2662c1));this[_0x47c465(0x1ff)]=_0x5b745f;}[_0xb0c99b(0x219)](){const _0x4782ca=_0xb0c99b;this[_0x4782ca(0x1ff)]['forEach'](_0x17f330=>_0x17f330[_0x4782ca(0x11c)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x46bfd0=_0xb0c99b,_0x576626=[w['SetDocZoomRatioOperation']['id']];this[_0x46bfd0(0x3d3)](this['_commandService'][_0x46bfd0(0x2ac)](_0x30f94e=>{const _0x58984f=_0x46bfd0;_0x576626[_0x58984f(0x1ed)](_0x30f94e['id'])&&_0x30f94e[_0x58984f(0x2e3)][_0x58984f(0x13a)]===this[_0x58984f(0x24f)][_0x58984f(0x13a)]&&this[_0x58984f(0x365)]();}));}[_0xb0c99b(0x313)](){const _0x584749=_0xb0c99b;this['disposeWithMe'](a[_0x584749(0x4d2)](this['_context'][_0x584749(0x246)][_0x584749(0x157)])['pipe'](E['filter'](_0x220648=>_0x220648[_0x584749(0x498)]===R[_0x584749(0x46d)][_0x584749(0x105)]),E[_0x584749(0x101)](0x10))[_0x584749(0x33b)](()=>{const _0x1ba18d=_0x584749;this[_0x1ba18d(0x365)]();}));}};fe=ui([a[_0xb0c99b(0x10c)](a['LifecycleStages'][_0xb0c99b(0x369)],fe),de(0x1,a[_0xb0c99b(0x455)](V['DocSkeletonManagerService'])),de(0x2,a['Inject'](se)),de(0x3,a[_0xb0c99b(0x47e)]),de(0x4,a['Inject'](a[_0xb0c99b(0x4be)]))],fe);const di=0x1,Si=1.5;class Ot extends R['Shape']{constructor(_0x4053aa,_0x589940){const _0x54078d=_0xb0c99b;super(_0x4053aa,_0x589940),d(this,'_color'),d(this,_0x54078d(0x257),!0x1),d(this,'_range'),d(this,_0x54078d(0x322),''),d(this,_0x54078d(0x114),'top'),d(this,_0x54078d(0x162)),(_0x589940&&this[_0x54078d(0x1eb)](_0x589940),this[_0x54078d(0x235)]['subscribeEvent'](()=>this[_0x54078d(0x1eb)]({'hovered':!0x0})),this[_0x54078d(0x100)][_0x54078d(0x15d)](()=>this[_0x54078d(0x1eb)]({'hovered':!0x1})));}[_0xb0c99b(0x1eb)](_0x176aa0){const _0xb0228d=_0xb0c99b;var _0x4a7abd,_0x2ea4a8,_0x12aa2c,_0x4696f1,_0x2969e2,_0x19a059;this[_0xb0228d(0x43a)]=(_0x4a7abd=_0x176aa0[_0xb0228d(0xe8)])!=null?_0x4a7abd:this['_color'],this[_0xb0228d(0x257)]=(_0x2ea4a8=_0x176aa0[_0xb0228d(0x236)])!=null?_0x2ea4a8:this['_hovered'],this['_range']=(_0x12aa2c=_0x176aa0[_0xb0228d(0x4ec)])!=null?_0x12aa2c:this[_0xb0228d(0x186)],this[_0xb0228d(0x322)]=(_0x4696f1=_0x176aa0[_0xb0228d(0x29d)])!=null?_0x4696f1:this[_0xb0228d(0x322)],this[_0xb0228d(0x114)]=(_0x2969e2=_0x176aa0['labelPosition'])!=null?_0x2969e2:this[_0xb0228d(0x114)],this[_0xb0228d(0x162)]=(_0x19a059=_0x176aa0[_0xb0228d(0x233)])!=null?_0x19a059:this['_backgroundColor'],this[_0xb0228d(0x251)]({'width':_0x176aa0[_0xb0228d(0x46e)],'height':_0x176aa0['height']});}[_0xb0c99b(0x470)](_0x4732cd){const _0x27ef4c=_0xb0c99b,{row:_0x4fb839,column:_0x4e9367}=_0x4732cd;if(_0x4fb839>=this[_0x27ef4c(0x186)][_0x27ef4c(0x4f9)]&&_0x4fb839<=this[_0x27ef4c(0x186)][_0x27ef4c(0x368)]&&_0x4e9367>=this['_range']['startColumn']&&_0x4e9367<=this[_0x27ef4c(0x186)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x27ef4c(0x1eb)]({'hovered':!0x1});}[_0xb0c99b(0xfd)](_0x572e0e){return!0x1;}[_0xb0c99b(0x17a)](_0x47d6d7){const _0x2fbcf4=_0xb0c99b;R[_0x2fbcf4(0x15c)][_0x2fbcf4(0x1d8)](_0x47d6d7,{'width':this[_0x2fbcf4(0x46e)],'height':this[_0x2fbcf4(0x19d)],'strokeWidth':Si,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2fbcf4(0x162)]}),this[_0x2fbcf4(0x257)]&&(_0x47d6d7[_0x2fbcf4(0x2d9)](),_0x47d6d7[_0x2fbcf4(0x36f)](0x1,0x0,0x0,0x1,this[_0x2fbcf4(0x46e)],this[_0x2fbcf4(0x114)]===_0x2fbcf4(0x4ce)?0x0:-ue),Re[_0x2fbcf4(0x1d8)](_0x47d6d7,{'text':this[_0x2fbcf4(0x322)],'color':this[_0x2fbcf4(0x43a)]}),_0x47d6d7[_0x2fbcf4(0x33d)]());}}var vi=Object[_0xb0c99b(0x3dd)],fi=Object[_0xb0c99b(0x18e)],gi=(_0x508d02,_0x39c179,_0x2ce306,_0x3e45fa)=>{const _0x598606=_0xb0c99b;for(var _0x770f19=_0x3e45fa>0x1?void 0x0:_0x3e45fa?fi(_0x39c179,_0x2ce306):_0x39c179,_0x5f0a91=_0x508d02[_0x598606(0x23c)]-0x1,_0x14f950;_0x5f0a91>=0x0;_0x5f0a91--)(_0x14f950=_0x508d02[_0x5f0a91])&&(_0x770f19=(_0x3e45fa?_0x14f950(_0x39c179,_0x2ce306,_0x770f19):_0x14f950(_0x770f19))||_0x770f19);return _0x3e45fa&&_0x770f19&&vi(_0x39c179,_0x2ce306,_0x770f19),_0x770f19;},Ae=(_0x47b426,_0x4fe06a)=>(_0x306816,_0x579352)=>_0x4fe06a(_0x306816,_0x579352,_0x47b426);const mi=0x1389;let ke=class extends a['RxDisposable']{constructor(_0x46bcf5,_0x40b4d0,_0x4ac27e,_0x48b486){const _0x270aa2=_0xb0c99b;super(),d(this,_0x270aa2(0x402),new Set()),d(this,_0x270aa2(0x4a2),null),(this[_0x270aa2(0x24f)]=_0x46bcf5,this[_0x270aa2(0x4b7)]=_0x40b4d0,this[_0x270aa2(0x47c)]=_0x4ac27e,this['_themeService']=_0x48b486,this[_0x270aa2(0x41f)]());}[_0xb0c99b(0x41f)](){const _0x2006b2=_0xb0c99b;this['_sheetSkeletonManagerService'][_0x2006b2(0x47a)][_0x2006b2(0x3a7)](E['takeUntil'](this[_0x2006b2(0x495)]),E[_0x2006b2(0x22a)](_0x5cc900=>{const _0x2a3af1=_0x2006b2;if(_0x5cc900){const _0x2b893f=_0x5cc900['sheetId'];return v[_0x2a3af1(0x3ab)](this['_collabCursorController']['getCollabCursors$'](this[_0x2a3af1(0x24f)][_0x2a3af1(0x13a)]),this[_0x2a3af1(0x4db)][_0x2a3af1(0x27a)])['pipe'](E['map'](([_0x132a70,_0x4d488b])=>{const _0x5a636e=_0x2a3af1,_0x2a4a1c=new Map();return _0x132a70[_0x5a636e(0x1cb)]((_0x246ea3,_0x2565d7)=>{const _0x3a1e8c=_0x5a636e;if(_0x246ea3['sheetID']===_0x2b893f){const _0x173f2a={..._0x246ea3};_0x173f2a['color']=_0x4d488b[_0x246ea3[_0x3a1e8c(0xe8)]],_0x2a4a1c[_0x3a1e8c(0x4d0)](_0x2565d7,_0x173f2a);}}),{'skeleton':_0x5cc900,'cursors':_0x2a4a1c};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x430c3e,cursors:_0x46f82d})=>{const _0xb525fe=_0x2006b2;this[_0xb525fe(0x219)](),_0x430c3e&&this[_0xb525fe(0x2c6)](_0x430c3e,_0x46f82d);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x4d364c=>{const _0x5609ce=_0x2006b2;if(_0x4d364c==null)return;const {skeleton:_0x2288fd}=_0x4d364c,{scene:_0x2bf1be}=this[_0x5609ce(0x24f)];_0x2bf1be[_0x5609ce(0x449)][_0x5609ce(0x15d)](a[_0x5609ce(0x301)](_0x3ff6cb=>{const _0x350aac=_0x5609ce;var _0x9c77c5,_0x19f4e8;const {offsetX:_0x455540,offsetY:_0x3c304c}=_0x3ff6cb,{x:_0x1773e0,y:_0x84dfc9}=_0x2bf1be['getRelativeToViewportCoord'](R[_0x350aac(0x12b)][_0x350aac(0x103)]([_0x455540,_0x3c304c])),{scaleX:_0x3da324,scaleY:_0x5de984}=_0x2bf1be[_0x350aac(0x255)](),_0x1836ed=_0x2bf1be['getViewport'](te[_0x350aac(0x277)]['VIEW_MAIN']),_0x532465=_0x2bf1be[_0x350aac(0x1f8)](R['Vector2'][_0x350aac(0x103)]([_0x1773e0,_0x84dfc9]),_0x1836ed),_0x4a8251=_0x2288fd[_0x350aac(0x3b2)](_0x455540,_0x3c304c,_0x3da324,_0x5de984,_0x532465);((_0x9c77c5=this[_0x350aac(0x4a2)])==null?void 0x0:_0x9c77c5['column'])===_0x4a8251[_0x350aac(0x45f)]&&((_0x19f4e8=this[_0x350aac(0x4a2)])==null?void 0x0:_0x19f4e8[_0x350aac(0x400)])===_0x4a8251['row']||this[_0x350aac(0x402)][_0x350aac(0x1cb)](_0x3b052b=>{const _0x3e8ba5=_0x350aac;_0x3b052b[_0x3e8ba5(0x470)](_0x4a8251);});},0x64));});}['_updateCollabCursors'](_0x7767e1,_0x25ea18){const _0x5c8f62=_0xb0c99b;var _0x1cfd16;const _0x469c00=(_0x1cfd16=this[_0x5c8f62(0x4b7)][_0x5c8f62(0x1d6)]())==null?void 0x0:_0x1cfd16[_0x5c8f62(0x261)];if(!_0x469c00)return;const _0x54d1d5=this[_0x5c8f62(0x3c4)]();if(!_0x54d1d5)return;this['_cursors']['forEach'](_0x420ca3=>{const _0x6540f8=_0x5c8f62;_0x420ca3[_0x6540f8(0x475)]();});const {scene:_0x259989}=_0x54d1d5,_0x1f6847=Ii(Array[_0x5c8f62(0x4da)](_0x25ea18['values']()))['map'](_0x235b1d=>{const _0x1cddc3=_0x5c8f62,{color:_0x2820eb,range:_0x631f81,name:_0x39788a,selection:_0x2d03a5,sheetID:_0x162c27}=_0x235b1d,{startColumn:_0x59f8dc,startRow:_0x3c412b,endColumn:_0x5cb460,endRow:_0x51a942}=_0x631f81,_0x603f15=te['getCoordByCell'](_0x3c412b,_0x59f8dc,_0x259989,_0x469c00),_0x3f6eee=te[_0x1cddc3(0x1ab)](_0x51a942,_0x5cb460,_0x259989,_0x469c00),{columnHeaderHeightAndMarginTop:_0x1ac8e3}=_0x469c00,{startX:_0x18159c,startY:_0x26c82c}=_0x603f15,{endX:_0x58cecf,endY:_0x818cbe}=_0x3f6eee,_0x230530=_0x58cecf-_0x18159c,_0xf7ea67=_0x818cbe-_0x26c82c,_0x59c43e={'labelPosition':_0x26c82c-_0x1ac8e3>=ue?_0x1cddc3(0x173):_0x1cddc3(0x4ce),'sheetID':_0x162c27,'range':_0x631f81,'color':_0x2820eb,'name':_0x39788a,'selection':_0x2d03a5,'left':_0x18159c,'top':_0x26c82c,'width':_0x230530,'height':_0xf7ea67,'evented':!0x1,'zIndex':mi};return new Ot(_0x39788a,_0x59c43e);});_0x259989['addObjects'](_0x1f6847,di),this[_0x5c8f62(0x402)]=new Set(_0x1f6847);}[_0xb0c99b(0x219)](){const _0x119539=_0xb0c99b;var _0xcbe75;(_0xcbe75=this['_cursors'])==null||_0xcbe75[_0x119539(0x1cb)](_0xb1041=>_0xb1041[_0x119539(0x11c)]());}[_0xb0c99b(0x3c4)](){const _0x4acf5b=_0xb0c99b;return te[_0x4acf5b(0x362)](this[_0x4acf5b(0x24f)][_0x4acf5b(0x41d)],this[_0x4acf5b(0x24f)]);}};ke=gi([Ae(0x1,a[_0xb0c99b(0x455)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](se)),Ae(0x3,a[_0xb0c99b(0x455)](a['ThemeService']))],ke);function Ii(_0x22f68d){const _0xcf5078=_0xb0c99b,_0x2b247d=new Map();return _0x22f68d[_0xcf5078(0x1cb)](_0x73d556=>{const _0x10203d=_0xcf5078;if(_0x2b247d[_0x10203d(0x191)](_0x73d556['selection'])){const _0x5d3624=_0x2b247d[_0x10203d(0x1a0)](_0x73d556['selection']);_0x5d3624['name']+=',\x20'+_0x73d556[_0x10203d(0x29d)];}else _0x2b247d['set'](_0x73d556[_0x10203d(0x296)],_0x73d556);}),Array[_0xcf5078(0x4da)](_0x2b247d[_0xcf5078(0x3f4)]());}var M=function(){const _0x59acda=_0xb0c99b;return M=Object[_0x59acda(0x17d)]||function(_0x3d968d){const _0x36fb1f=_0x59acda;for(var _0x492dbc,_0x4af869=0x1,_0x516f79=arguments['length'];_0x4af869<_0x516f79;_0x4af869++){_0x492dbc=arguments[_0x4af869];for(var _0x39e04e in _0x492dbc)Object[_0x36fb1f(0x28b)][_0x36fb1f(0x41e)][_0x36fb1f(0x2f5)](_0x492dbc,_0x39e04e)&&(_0x3d968d[_0x39e04e]=_0x492dbc[_0x39e04e]);}return _0x3d968d;},M[_0x59acda(0x48f)](this,arguments);},pi=function(_0x3aea4a,_0x2e8398){const _0x2bd2ae=_0xb0c99b;var _0x5d1697={};for(var _0x3d3447 in _0x3aea4a)Object[_0x2bd2ae(0x28b)][_0x2bd2ae(0x41e)][_0x2bd2ae(0x2f5)](_0x3aea4a,_0x3d3447)&&_0x2e8398[_0x2bd2ae(0x1e6)](_0x3d3447)<0x0&&(_0x5d1697[_0x3d3447]=_0x3aea4a[_0x3d3447]);if(_0x3aea4a!=null&&typeof Object[_0x2bd2ae(0x320)]==_0x2bd2ae(0x40f)){for(var _0x3157d7=0x0,_0x3d3447=Object['getOwnPropertySymbols'](_0x3aea4a);_0x3157d7<_0x3d3447['length'];_0x3157d7++)_0x2e8398[_0x2bd2ae(0x1e6)](_0x3d3447[_0x3157d7])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x2bd2ae(0x2f5)](_0x3aea4a,_0x3d3447[_0x3157d7])&&(_0x5d1697[_0x3d3447[_0x3157d7]]=_0x3aea4a[_0x3d3447[_0x3157d7]]);}return _0x5d1697;},qe=U[_0xb0c99b(0x231)](function(_0x2b68b9,_0x91c10d){const _0x3fdb0b=_0xb0c99b;var _0x463484=_0x2b68b9[_0x3fdb0b(0x18c)],_0x5831d1=_0x2b68b9['id'],_0xedeea7=_0x2b68b9[_0x3fdb0b(0x2fd)],_0x3d62ed=_0x2b68b9[_0x3fdb0b(0x1f9)],_0x425baa=pi(_0x2b68b9,[_0x3fdb0b(0x18c),'id','className',_0x3fdb0b(0x1f9)]),_0x584fff=_0x3fdb0b(0x3ad)['concat'](_0x5831d1,'\x20')[_0x3fdb0b(0x373)](_0xedeea7||'')['trim'](),_0x579588=U[_0x3fdb0b(0x334)]('_'[_0x3fdb0b(0x373)](bi()));return Dt(_0x463484,''[_0x3fdb0b(0x373)](_0x5831d1),{'defIds':_0x463484[_0x3fdb0b(0x1c4)],'idSuffix':_0x579588[_0x3fdb0b(0x433)]},M({'ref':_0x91c10d,'className':_0x584fff},_0x425baa),_0x3d62ed);});function Dt(_0x293115,_0xe44963,_0x9e2b86,_0x2b373d,_0x4349ee){const _0x4a24e8=_0xb0c99b;return U[_0x4a24e8(0x1a1)](_0x293115[_0x4a24e8(0x297)],M(M({'key':_0xe44963},Ci(_0x293115,_0x9e2b86,_0x4349ee)),_0x2b373d),(Ei(_0x293115,_0x9e2b86)[_0x4a24e8(0x1bf)]||[])[_0x4a24e8(0x1af)](function(_0x157dca,_0x2bc9f9){const _0x19967b=_0x4a24e8;return Dt(_0x157dca,''['concat'](_0xe44963,'-')['concat'](_0x293115[_0x19967b(0x297)],'-')[_0x19967b(0x373)](_0x2bc9f9),_0x9e2b86,void 0x0,_0x4349ee);}));}function Ci(_0x3e69e5,_0x265f64,_0xda6c7e){const _0x244f1b=_0xb0c99b;var _0x5377ed=M({},_0x3e69e5[_0x244f1b(0x451)]);_0xda6c7e!=null&&_0xda6c7e[_0x244f1b(0x2d3)]&&_0x5377ed[_0x244f1b(0xf5)]===_0x244f1b(0x2d3)&&(_0x5377ed['fill']=_0xda6c7e[_0x244f1b(0x2d3)]);var _0x1bed91=_0x265f64[_0x244f1b(0x1c4)];return!_0x1bed91||_0x1bed91['length']===0x0||(_0x3e69e5[_0x244f1b(0x297)]===_0x244f1b(0x34e)&&_0x5377ed[_0x244f1b(0x4cf)]&&(_0x5377ed[_0x244f1b(0x4cf)]=_0x5377ed['xlink:href']+_0x265f64[_0x244f1b(0x295)]),Object[_0x244f1b(0x207)](_0x5377ed)[_0x244f1b(0x1cb)](function(_0x155c0c){const _0x84ad64=_0x244f1b;var _0x5d1cd5=_0x155c0c[0x0],_0x15bcaf=_0x155c0c[0x1];typeof _0x15bcaf==_0x84ad64(0x1ad)&&(_0x5377ed[_0x5d1cd5]=_0x15bcaf['replace'](/url\(#(.*)\)/,'url(#$1'[_0x84ad64(0x373)](_0x265f64[_0x84ad64(0x295)],')')));})),_0x5377ed;}function Ei(_0x50a58d,_0x286e68){const _0x46b83f=_0xb0c99b;var _0x42bbd2,_0xd54842=_0x286e68[_0x46b83f(0x1c4)];return!_0xd54842||_0xd54842['length']===0x0?_0x50a58d:_0x50a58d['tag']==='defs'&&(!((_0x42bbd2=_0x50a58d[_0x46b83f(0x1bf)])===null||_0x42bbd2===void 0x0)&&_0x42bbd2[_0x46b83f(0x23c)])?M(M({},_0x50a58d),{'children':_0x50a58d[_0x46b83f(0x1bf)][_0x46b83f(0x1af)](function(_0x31b139){const _0x3f8c8d=_0x46b83f;return typeof _0x31b139[_0x3f8c8d(0x451)]['id']==_0x3f8c8d(0x1ad)&&_0xd54842&&_0xd54842[_0x3f8c8d(0x1e6)](_0x31b139[_0x3f8c8d(0x451)]['id'])>-0x1?M(M({},_0x31b139),{'attrs':M(M({},_0x31b139['attrs']),{'id':_0x31b139[_0x3f8c8d(0x451)]['id']+_0x286e68[_0x3f8c8d(0x295)]})}):_0x31b139;})}):_0x50a58d;}function bi(){const _0x3a2dc8=_0xb0c99b;return Math[_0x3a2dc8(0x441)]()['toString'](0x24)[_0x3a2dc8(0x1bb)](0x2,0x8);}qe[_0xb0c99b(0x37e)]=_0xb0c99b(0x10d);var Ti={'tag':_0xb0c99b(0x405),'attrs':{'fill':_0xb0c99b(0x2f8),'viewBox':_0xb0c99b(0x2ad),'width':_0xb0c99b(0x415),'height':_0xb0c99b(0x415)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'stroke':_0xb0c99b(0x12c),'d':_0xb0c99b(0x4b6),'strokeLinecap':_0xb0c99b(0x2fc),'strokeLinejoin':_0xb0c99b(0x2fc),'strokeWidth':1.2}}]},{'tag':_0xb0c99b(0x25d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb0c99b(0x1b6)},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'fill':_0xb0c99b(0x49d),'d':_0xb0c99b(0x122)}}]}]}],'defIds':['off-line-single_clip0_910_343']},yt=U[_0xb0c99b(0x231)](function(_0x4a9e0e,_0x42c4f3){const _0x5ec06f=_0xb0c99b;return U[_0x5ec06f(0x1a1)](qe,Object[_0x5ec06f(0x17d)]({},_0x4a9e0e,{'id':_0x5ec06f(0x420),'ref':_0x42c4f3,'icon':Ti}));});yt['displayName']='OffLineSingle';var Ri={'tag':_0xb0c99b(0x405),'attrs':{'fill':'none','viewBox':_0xb0c99b(0x17c),'width':'1em','height':_0xb0c99b(0x415)},'children':[{'tag':'g','attrs':{'clipPath':_0xb0c99b(0x147)},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'stroke':_0xb0c99b(0x12c),'d':_0xb0c99b(0x241),'strokeLinecap':_0xb0c99b(0x2fc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb0c99b(0x2d1)},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'fill':_0xb0c99b(0x49d),'d':_0xb0c99b(0x122),'transform':_0xb0c99b(0x336)}}]}]}],'defIds':[_0xb0c99b(0x2d1)]},Ut=U[_0xb0c99b(0x231)](function(_0x5cf952,_0x338f1e){const _0x28b0ea=_0xb0c99b;return U[_0x28b0ea(0x1a1)](qe,Object[_0x28b0ea(0x17d)]({},_0x5cf952,{'id':'on-line-single','ref':_0x338f1e,'icon':Ri}));});Ut[_0xb0c99b(0x37e)]=_0xb0c99b(0x24e);const Oi='univer-online-status-icon',Di='univer-online-status-title',yi=_0xb0c99b(0x34c),Ui='univer-online',Pi=_0xb0c99b(0x184),le={'onlineStatusIcon':Oi,'onlineStatusTitle':Di,'onlineStatus':yi,'online':Ui,'offline':Pi};function wi(_0x1bec89){const _0x3a40b1=_0xb0c99b;switch(_0x1bec89){case y[_0x3a40b1(0x4ed)]:return _0x3a40b1(0x3c5);case y[_0x3a40b1(0x229)]:return'collabStatus.conflict';case y[_0x3a40b1(0x3d9)]:return _0x3a40b1(0x212);case y[_0x3a40b1(0x3eb)]:return'collabStatus.notCollab';case y[_0x3a40b1(0x256)]:case y[_0x3a40b1(0x1b4)]:case y[_0x3a40b1(0x3de)]:return _0x3a40b1(0x167);case y[_0x3a40b1(0x2c2)]:return'collabStatus.synced';}}function Pt(_0x51dc68){const _0x2a27ce=_0xb0c99b,{status$:_0x1f40cd}=_0x51dc68,_0x29c298=N['useObservable'](_0x1f40cd,y[_0x2a27ce(0x3eb)]),_0x16c241=a[_0x2a27ce(0x4e6)](a[_0x2a27ce(0x472)]),_0x31b068=a[_0x2a27ce(0x4e6)](exports[_0x2a27ce(0x28a)]),_0x5061f1=_0x29c298!==y[_0x2a27ce(0x4ed)],_0x31a134=_0x16c241['t'](wi(_0x29c298)),_0x173aa0=Vt(le[_0x2a27ce(0x3ae)],{[le[_0x2a27ce(0x2f4)]]:_0x5061f1,[le[_0x2a27ce(0x1b8)]]:!_0x5061f1}),_0x495eb6=_0x5061f1?U[_0x2a27ce(0x1a1)](Ut,null):U[_0x2a27ce(0x1a1)](yt,null),_0x552694=U[_0x2a27ce(0x202)](()=>{const _0x18451c=_0x2a27ce;_0x5061f1||_0x31b068[_0x18451c(0x25f)]();},[_0x5061f1,_0x31b068]);function _0x3e1566(){const _0x1c04f6=_0x2a27ce;return U[_0x1c04f6(0x1a1)](_0x1c04f6(0xef),{'className':_0x173aa0,'onClick':_0x552694},U[_0x1c04f6(0x1a1)](_0x1c04f6(0xef),{'className':le[_0x1c04f6(0xee)]},_0x495eb6),U[_0x1c04f6(0x1a1)](_0x1c04f6(0xef),{'className':le[_0x1c04f6(0x344)]},_0x31a134));}return _0x5061f1?_0x3e1566():U[_0x2a27ce(0x1a1)](X[_0x2a27ce(0x127)],{'title':_0x16c241['t'](_0x2a27ce(0x2ff))},_0x3e1566());}var Mi=Object[_0xb0c99b(0x3dd)],Ni=Object[_0xb0c99b(0x18e)],Li=(_0x4ffa8f,_0x53fc3b,_0x2efe13,_0x3544e7)=>{const _0x4083b2=_0xb0c99b;for(var _0x2a6fb1=_0x3544e7>0x1?void 0x0:_0x3544e7?Ni(_0x53fc3b,_0x2efe13):_0x53fc3b,_0x4eea22=_0x4ffa8f[_0x4083b2(0x23c)]-0x1,_0x2a493f;_0x4eea22>=0x0;_0x4eea22--)(_0x2a493f=_0x4ffa8f[_0x4eea22])&&(_0x2a6fb1=(_0x3544e7?_0x2a493f(_0x53fc3b,_0x2efe13,_0x2a6fb1):_0x2a493f(_0x2a6fb1))||_0x2a6fb1);return _0x3544e7&&_0x2a6fb1&&Mi(_0x53fc3b,_0x2efe13,_0x2a6fb1),_0x2a6fb1;},Se=(_0x54d357,_0x3419a7)=>(_0x115aef,_0x3b23bd)=>_0x3419a7(_0x115aef,_0x3b23bd,_0x54d357);exports[_0xb0c99b(0x1ac)]=class extends a[_0xb0c99b(0x463)]{constructor(_0x38027b,_0x1993e7,_0x53bf66,_0x1d0701){const _0x42e118=_0xb0c99b;super(),d(this,_0x42e118(0x4c8),new v[(_0x42e118(0x4b1))](y['NOT_COLLAB'])),(this['_univerInstanceService']=_0x38027b,this['_uiPartsService']=_0x1993e7,this[_0x42e118(0x12f)]=_0x53bf66,this['_collaborationController']=_0x1d0701,this['_initStatusComponent'](),this[_0x42e118(0x12a)]());}[_0xb0c99b(0x12a)](){const _0x439c18=_0xb0c99b;this[_0x439c18(0x3d3)](this[_0x439c18(0x3fb)][_0x439c18(0x203)][_0x439c18(0x3a7)](v[_0x439c18(0x22a)](()=>{const _0x38e90a=_0x439c18,_0x3f9608=this[_0x38e90a(0x3fb)][_0x38e90a(0x345)]();return _0x3f9608?this[_0x38e90a(0x31f)][_0x38e90a(0x253)](_0x3f9608[_0x38e90a(0x4dd)]()):v['of'](null);}),v[_0x439c18(0x22a)](_0x20332f=>_0x20332f?_0x20332f['status$']:v['of'](y[_0x439c18(0x3eb)])))[_0x439c18(0x33b)](_0x4e630a=>{const _0x1e1154=_0x439c18;this[_0x1e1154(0x4c8)][_0x1e1154(0x3c7)](_0x4e630a);}));}[_0xb0c99b(0xf9)](){const _0x39755f=_0xb0c99b;this[_0x39755f(0x3d3)](this[_0x39755f(0x434)][_0x39755f(0x299)](N[_0x39755f(0x2d0)][_0x39755f(0x1fa)],()=>a[_0x39755f(0x104)](Ai({'status$':this['_status$'][_0x39755f(0x3af)]()}),this['_injector'])));}},exports[_0xb0c99b(0x1ac)]=Li([Se(0x0,a[_0xb0c99b(0x49b)]),Se(0x1,N[_0xb0c99b(0x412)]),Se(0x2,a['Inject'](a[_0xb0c99b(0x41a)])),Se(0x3,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x109)]))],exports[_0xb0c99b(0x1ac)]);function Ai(_0x2f1285){const {status$:_0x59fb3a}=_0x2f1285;return function(){const _0x6fb6cb=_0x4e0f;return U[_0x6fb6cb(0x1a1)](Pt,{'status$':_0x59fb3a});};}const ze=a[_0xb0c99b(0xe6)](_0xb0c99b(0x23e));var $i=Object[_0xb0c99b(0x3dd)],ji=Object[_0xb0c99b(0x18e)],Hi=(_0x249605,_0x2a6a66,_0x43ad81,_0x7b88a6)=>{const _0x369b41=_0xb0c99b;for(var _0x42b525=_0x7b88a6>0x1?void 0x0:_0x7b88a6?ji(_0x2a6a66,_0x43ad81):_0x2a6a66,_0x5d67bf=_0x249605[_0x369b41(0x23c)]-0x1,_0x2afe1d;_0x5d67bf>=0x0;_0x5d67bf--)(_0x2afe1d=_0x249605[_0x5d67bf])&&(_0x42b525=(_0x7b88a6?_0x2afe1d(_0x2a6a66,_0x43ad81,_0x42b525):_0x2afe1d(_0x42b525))||_0x42b525);return _0x7b88a6&&_0x42b525&&$i(_0x2a6a66,_0x43ad81,_0x42b525),_0x42b525;},ee=(_0x178747,_0x9963a5)=>(_0x47b467,_0x532c67)=>_0x9963a5(_0x47b467,_0x532c67,_0x178747);exports[_0xb0c99b(0x1d7)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x540e58,_0x3de513,_0x1da8e1,_0x3246cd,_0x55c9dc,_0x528122){const _0xb05b28=_0xb0c99b;super(),this[_0xb05b28(0x4ca)]=_0x540e58,this[_0xb05b28(0x3cd)]=_0x3de513,this[_0xb05b28(0x425)]=_0x1da8e1,this[_0xb05b28(0x40b)]=_0x3246cd,this[_0xb05b28(0x268)]=_0x55c9dc,_0x528122?_0x528122==null||_0x528122['whenReady']()[_0xb05b28(0x20e)](()=>this[_0xb05b28(0x41f)]()):(this[_0xb05b28(0x3cd)]['debug'](_0xb05b28(0x239),_0xb05b28(0x2cd)),this['_init']());}async[_0xb0c99b(0x41f)](){const _0x4d57a7=_0xb0c99b,_0x5e2b5c=this[_0x4d57a7(0x4ca)][_0x4d57a7(0x3ef)]('unit'),_0x2dfc8b=this['_urlService'][_0x4d57a7(0x3ef)](_0x4d57a7(0x498));if(!_0x5e2b5c||!_0x2dfc8b){this[_0x4d57a7(0x3cd)]['debug'](_0x4d57a7(0x239),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2dfc8b)){case $[_0x4d57a7(0x3e6)]:{const _0x231d48=await this[_0x4d57a7(0x18b)](_0x5e2b5c);this[_0x4d57a7(0x4d8)](_0x231d48);break;}case $[_0x4d57a7(0x254)]:{await this[_0x4d57a7(0x39f)](_0x5e2b5c);break;}default:{this[_0x4d57a7(0x3cd)]['error'](_0x4d57a7(0x239),_0x4d57a7(0x24c));break;}}}async['_setupSubUnitSync'](_0xeb80ab){const _0x3379ea=_0xb0c99b;await this[_0x3379ea(0x3e3)](_0xeb80ab),_0xeb80ab['activeSheet$']['pipe'](v[_0x3379ea(0x450)](this[_0x3379ea(0x495)]))[_0x3379ea(0x33b)](_0x190b74=>{const _0x22f070=_0x3379ea;_0x190b74&&this[_0x22f070(0xfa)](_0x190b74);}),this[_0x3379ea(0x4ca)][_0x3379ea(0x3b8)][_0x3379ea(0x3a7)](v['takeUntil'](this[_0x3379ea(0x495)]))[_0x3379ea(0x33b)](()=>this[_0x3379ea(0x3e3)](_0xeb80ab));}[_0xb0c99b(0xfa)](_0x424d0,_0x436e2c=!0x1){const _0x1c0e18=_0xb0c99b,_0x47db3b=this['_urlService']['getParam']('subunit');_0x424d0[_0x1c0e18(0x1fb)]()!==_0x47db3b&&this['_urlService'][_0x1c0e18(0x1b1)]('subunit',_0x424d0[_0x1c0e18(0x1fb)](),_0x436e2c);}async[_0xb0c99b(0x3e3)](_0x3852e9){const _0x5dcc21=_0xb0c99b;var _0x34df55;const _0x2076c6=this[_0x5dcc21(0x4ca)]['getParam']('subunit');if(!_0x2076c6||!_0x3852e9['getSheetBySheetId'](_0x2076c6)){const _0x867095=_0x3852e9[_0x5dcc21(0x23d)]()[0x0],_0x616a56=_0x3852e9[_0x5dcc21(0x134)](_0x867095);if(!_0x616a56)return;this[_0x5dcc21(0xfa)](_0x616a56,!0x0),await this['_commandService'][_0x5dcc21(0x135)](C[_0x5dcc21(0x22d)]['id'],{'unitId':_0x3852e9[_0x5dcc21(0x4dd)](),'subUnitId':_0x867095});return;}((_0x34df55=_0x3852e9[_0x5dcc21(0x1ba)]())==null?void 0x0:_0x34df55[_0x5dcc21(0x1fb)]())!==_0x2076c6&&await this[_0x5dcc21(0x425)][_0x5dcc21(0x135)](C[_0x5dcc21(0x22d)]['id'],{'unitId':_0x3852e9['getUnitId'](),'subUnitId':_0x2076c6});}async[_0xb0c99b(0x18b)](_0x47f867){const _0x23dc17=_0xb0c99b;let _0x3dde54=0x0;const _0x9bc90=await this[_0x23dc17(0x40b)]['loadOfflineData'](_0x47f867);return _0x9bc90&&(_0x9bc90[_0x23dc17(0x249)]||_0x9bc90[_0x23dc17(0x4e4)][_0x23dc17(0x23c)]!==0x0)&&(_0x3dde54=_0x9bc90['rev']),_0x3dde54===0x0&&this['_logService'][_0x23dc17(0x347)](_0x23dc17(0x239),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x23dc17(0x268)]['loadSheet'](_0x47f867,_0x3dde54);}async['_loadDoc'](_0x396ff3){const _0x5066ef=_0xb0c99b;let _0x33a864=0x0;const _0x571429=await this[_0x5066ef(0x40b)][_0x5066ef(0x4e3)](_0x396ff3);return _0x571429&&(_0x571429[_0x5066ef(0x249)]||_0x571429[_0x5066ef(0x4e4)]['length']!==0x0)&&(_0x33a864=_0x571429['rev']),_0x33a864===0x0&&this[_0x5066ef(0x3cd)][_0x5066ef(0x347)](_0x5066ef(0x239),_0x5066ef(0x1cd)),this[_0x5066ef(0x268)]['loadDoc'](_0x396ff3,_0x33a864);}},exports[_0xb0c99b(0x1d7)]=Hi([a[_0xb0c99b(0x10c)](a[_0xb0c99b(0x133)]['Starting'],exports[_0xb0c99b(0x1d7)]),ee(0x0,ze),ee(0x1,a[_0xb0c99b(0x2b2)]),ee(0x2,a[_0xb0c99b(0x47e)]),ee(0x3,a[_0xb0c99b(0x455)](exports['LocalCacheService'])),ee(0x4,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x247)])),ee(0x5,a['Optional'](Wt[_0xb0c99b(0x3e8)]))],exports[_0xb0c99b(0x1d7)]);var xi=Object['defineProperty'],ki=Object['getOwnPropertyDescriptor'],Bi=(_0x2b2849,_0xcc825a,_0x4bfd51,_0x2e08f8)=>{const _0x1588ab=_0xb0c99b;for(var _0x183eeb=_0x2e08f8>0x1?void 0x0:_0x2e08f8?ki(_0xcc825a,_0x4bfd51):_0xcc825a,_0x45a943=_0x2b2849[_0x1588ab(0x23c)]-0x1,_0x47ea12;_0x45a943>=0x0;_0x45a943--)(_0x47ea12=_0x2b2849[_0x45a943])&&(_0x183eeb=(_0x2e08f8?_0x47ea12(_0xcc825a,_0x4bfd51,_0x183eeb):_0x47ea12(_0x183eeb))||_0x183eeb);return _0x2e08f8&&_0x183eeb&&xi(_0xcc825a,_0x4bfd51,_0x183eeb),_0x183eeb;},at=(_0x18f617,_0x21db14)=>(_0x144f76,_0x1130e7)=>_0x21db14(_0x144f76,_0x1130e7,_0x18f617);const Vi=_0xb0c99b(0x360),Wi=_0xb0c99b(0x152);let ge=class extends a[_0xb0c99b(0x463)]{constructor(_0x4b3af9,_0x2b46f4){const _0x53f70a=_0xb0c99b;super(),this['_univerInstanceService']=_0x4b3af9,this[_0x53f70a(0x3ec)]=_0x2b46f4,this['_init']();}[_0xb0c99b(0x41f)](){const _0x397932=_0xb0c99b;this[_0x397932(0x3d3)](a[_0x397932(0x2ef)](this[_0x397932(0x3fb)]['focused$'][_0x397932(0x33b)](()=>{const _0x35b3c2=_0x397932;var _0x5ee97e;const _0x39f5de=this[_0x35b3c2(0x3fb)][_0x35b3c2(0x345)]();let _0x5ce413=(_0x5ee97e=this[_0x35b3c2(0x3ec)][_0x35b3c2(0x2aa)](Vi))!=null?_0x5ee97e:Wi;_0x39f5de instanceof a['Workbook']&&(_0x5ce413=_0x39f5de[_0x35b3c2(0x29d)]),document[_0x35b3c2(0x25c)]=_0x5ce413;})));}};ge=Bi([a[_0xb0c99b(0x10c)](a[_0xb0c99b(0x133)]['Ready'],ge),at(0x0,a[_0xb0c99b(0x49b)]),at(0x1,a[_0xb0c99b(0x195)])],ge);var Fi=Object[_0xb0c99b(0x3dd)],Gi=Object[_0xb0c99b(0x18e)],Yi=(_0x57bce4,_0x2af540,_0x432c50,_0x41b5f4)=>{for(var _0x10bdc3=_0x41b5f4>0x1?void 0x0:_0x41b5f4?Gi(_0x2af540,_0x432c50):_0x2af540,_0x1d8438=_0x57bce4['length']-0x1,_0x44fb83;_0x1d8438>=0x0;_0x1d8438--)(_0x44fb83=_0x57bce4[_0x1d8438])&&(_0x10bdc3=(_0x41b5f4?_0x44fb83(_0x2af540,_0x432c50,_0x10bdc3):_0x44fb83(_0x10bdc3))||_0x10bdc3);return _0x41b5f4&&_0x10bdc3&&Fi(_0x2af540,_0x432c50,_0x10bdc3),_0x10bdc3;},$e=(_0x9e2076,_0x3ee2ad)=>(_0x1f2be2,_0x5dd383)=>_0x3ee2ad(_0x1f2be2,_0x5dd383,_0x9e2076);let Ee=class{constructor(_0x27f742,_0x32e43a,_0x32f5a5){const _0x57f5a0=_0xb0c99b;this[_0x57f5a0(0x3ec)]=_0x27f742,this[_0x57f5a0(0x2e8)]=_0x32e43a,this[_0x57f5a0(0x38e)]=_0x32f5a5,this['init']();}[_0xb0c99b(0x188)](){const _0x1138bd=_0xb0c99b;this[_0x1138bd(0x2e8)][_0x1138bd(0x45d)]({'priority':0x1,'interceptor':(_0x311e06,_0xc90f69)=>_0xc90f69(_0x311e06)[_0x1138bd(0x3a7)](v['concatMap'](async _0x4325c8=>{const _0x482f51=_0x1138bd,_0x2e9368=_0x4325c8;if(_0x2e9368[_0x482f51(0x366)]===0x191&&window[_0x482f51(0x3bf)](this['localeService']['t'](_0x482f51(0x442)))){const _0x43d8b5=window[_0x482f51(0x318)](window[_0x482f51(0x13c)][_0x482f51(0x363)]);window[_0x482f51(0x13c)]['href']=this[_0x482f51(0x49e)]()+_0x482f51(0x386)+_0x43d8b5;}return _0x2e9368;}))});}[_0xb0c99b(0x49e)](){const _0xcef7a=_0xb0c99b;var _0x5957f6,_0x115806;const _0x473c4e=this[_0xcef7a(0x3ec)][_0xcef7a(0x2aa)](mt),_0x4e2ae5=this['_configService'][_0xcef7a(0x2aa)](L);return(_0x115806=(_0x5957f6=_0x4e2ae5==null?void 0x0:_0x4e2ae5[_0xcef7a(0x408)])!=null?_0x5957f6:_0x473c4e)!=null?_0x115806:es;}};Ee=Yi([$e(0x0,a[_0xb0c99b(0x195)]),$e(0x1,a[_0xb0c99b(0x455)](P['HTTPService'])),$e(0x2,a['Inject'](a[_0xb0c99b(0x472)]))],Ee);var Ki=Object['defineProperty'],Xi=Object[_0xb0c99b(0x18e)],qi=(_0x31eec2,_0x3aa9a1,_0xac27ea,_0x3692a2)=>{const _0xf68251=_0xb0c99b;for(var _0x18e595=_0x3692a2>0x1?void 0x0:_0x3692a2?Xi(_0x3aa9a1,_0xac27ea):_0x3aa9a1,_0x33372d=_0x31eec2[_0xf68251(0x23c)]-0x1,_0x550e68;_0x33372d>=0x0;_0x33372d--)(_0x550e68=_0x31eec2[_0x33372d])&&(_0x18e595=(_0x3692a2?_0x550e68(_0x3aa9a1,_0xac27ea,_0x18e595):_0x550e68(_0x18e595))||_0x18e595);return _0x3692a2&&_0x18e595&&Ki(_0x3aa9a1,_0xac27ea,_0x18e595),_0x18e595;},ct=(_0x2f15ac,_0x3765f7)=>(_0x4f6252,_0x29f0b2)=>_0x3765f7(_0x4f6252,_0x29f0b2,_0x2f15ac);const wt=_0xb0c99b(0x2d2),zi=_0xb0c99b(0x3cb);exports[_0xb0c99b(0x4bf)]=class extends a['Disposable']{constructor(_0x8d419a,_0x312dbe){const _0x4c503e=_0xb0c99b;super(),this[_0x4c503e(0x39d)]=_0x8d419a,this[_0x4c503e(0x3ec)]=_0x312dbe,this[_0x4c503e(0x427)]();}[_0xb0c99b(0x427)](){const _0x4db37f=_0xb0c99b,_0x4ea2f9=this;this[_0x4db37f(0x3d3)](this[_0x4db37f(0x39d)][_0x4db37f(0x45d)]({'priority':0x3e7,'interceptor':P[_0x4db37f(0x2e6)]({'isMatch'(_0x568087){const _0x5b10b2=_0x4db37f;var _0x1da5bd;if(_0x568087[_0x5b10b2(0x223)]===_0x5b10b2(0x3f8)&&((_0x1da5bd=_0x568087[_0x5b10b2(0x397)])!=null&&_0x1da5bd[_0x5b10b2(0x4c0)])){const {objectID:_0x338889,objectType:_0x2e15a7}=_0x568087[_0x5b10b2(0x397)]['body']||{};if(!_0x338889||_0x2e15a7===void 0x0)return!0x1;const _0x51e353=_0x4ea2f9[_0x5b10b2(0x31e)]()+'/'+_0x2e15a7+'/object/'+_0x338889+_0x5b10b2(0x4d3);if(_0x568087[_0x5b10b2(0x187)]===_0x51e353)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x39fbf9){const _0x4f334c=_0x4db37f;var _0x352bf5;return(_0x352bf5=_0x39fbf9['requestParams'])==null?void 0x0:_0x352bf5[_0x4f334c(0x4c0)];},'mergeParamsToRequest'(_0x1e83ed,_0x1470d2){const _0x20610c=_0x4db37f,_0x180036=_0x4ea2f9[_0x20610c(0x31e)]()+_0x20610c(0x2e2),_0x14cf9e=_0x1e83ed[_0x20610c(0x4a5)]((_0x452c90,_0xa1fcc)=>{const _0x58969f=_0x20610c,{unitID:_0x18ec0d,objectID:_0x2d7b51,objectType:_0x24a76b,actions:_0x483375}=_0xa1fcc;return _0x452c90[_0x18ec0d]||(_0x452c90[_0x18ec0d]={}),_0x452c90[_0x18ec0d][_0x2d7b51]||(_0x452c90[_0x18ec0d][_0x2d7b51]={'objectID':_0x2d7b51,'objectType':_0x24a76b,'actions':[]}),_0x452c90[_0x18ec0d][_0x2d7b51][_0x58969f(0xff)][_0x58969f(0x2da)](..._0x483375),_0x452c90;},{}),_0x1736af=[];for(const _0x1b9f71 in _0x14cf9e)for(const _0x4de305 in _0x14cf9e[_0x1b9f71]){const {actions:_0x3e8c8d,objectType:_0x251aba}=_0x14cf9e[_0x1b9f71][_0x4de305],_0x5bfa98=[...new Set(_0x3e8c8d)];_0x1736af['push']({'unitID':_0x1b9f71,'objectID':_0x4de305,'objectType':_0x251aba,'actions':_0x5bfa98});}return new P[(_0x20610c(0x306))](_0x20610c(0x3f8),_0x180036,{'headers':_0x1470d2[_0x20610c(0x4ab)],'withCredentials':_0x1470d2['withCredentials'],'responseType':_0x1470d2['responseType'],'body':{'requests':_0x1736af}});}},{'distributeResult'(_0x3a1629,_0x1a7fbc){const _0x2e6d5b=_0x4db37f,{objectActions:_0x5d3765}=_0x3a1629;return _0x1a7fbc[_0x2e6d5b(0x1af)](_0x43208a=>{const _0x21f77c=_0x2e6d5b,{unitID:_0x366b03,objectID:_0x32607b,actions:_0x3b579a}=_0x43208a,_0x43de04=_0x5d3765[_0x21f77c(0x24b)](_0x46a929=>_0x46a929['unitID']===_0x366b03&&_0x46a929['objectID']===_0x32607b),_0x34495c=_0x3b579a[_0x21f77c(0x1af)](_0x45ed46=>_0x43de04==null?void 0x0:_0x43de04['actions']['find'](_0x53338b=>_0x53338b[_0x21f77c(0xf7)]===_0x45ed46))[_0x21f77c(0x13b)](_0x3292c4=>!!_0x3292c4);return{'config':_0x43208a,'result':{'actions':_0x34495c,'error':_0x3a1629[_0x21f77c(0x4d1)]}};});}})}));}[_0xb0c99b(0x31e)](){const _0x1e947f=_0xb0c99b;var _0x20a6b4,_0x4abab5;const _0x358365=this[_0x1e947f(0x3ec)]['getConfig'](wt),_0x443f1a=this['_configService'][_0x1e947f(0x2aa)](L);return(_0x4abab5=(_0x20a6b4=_0x443f1a==null?void 0x0:_0x443f1a[_0x1e947f(0x3ba)])!=null?_0x20a6b4:_0x358365)!=null?_0x4abab5:zi;}async[_0xb0c99b(0x3e1)](_0x192d3c){const _0x54ee3f=_0xb0c99b,_0x208f1e=this[_0x54ee3f(0x31e)]()+'/'+_0x192d3c['objectType']+_0x54ee3f(0x3cf);return(await this[_0x54ee3f(0x39d)]['post'](_0x208f1e,{'body':_0x192d3c}))[_0x54ee3f(0x4c0)][_0x54ee3f(0x32b)]||'';}async['list'](_0x5bbe01){const _0x566a53=_0xb0c99b,_0x507d60=this['_getAPIPrefixPath']()+_0x566a53(0x1c9);return(await this[_0x566a53(0x39d)][_0x566a53(0x3e7)](_0x507d60,{'body':_0x5bbe01}))[_0x566a53(0x4c0)][_0x566a53(0x209)];}async[_0xb0c99b(0x4ae)](_0x202570){const _0x418326=_0xb0c99b,_0x9b3837=this[_0x418326(0x31e)]()+'/'+_0x202570[_0x418326(0x485)]+_0x418326(0x424)+_0x202570[_0x418326(0x32b)];await this[_0x418326(0x39d)][_0x418326(0x4ac)](_0x9b3837,{'body':_0x202570});}async[_0xb0c99b(0x4ee)](_0x1c507b){const _0x41e7e5=_0xb0c99b,_0x187855=this[_0x41e7e5(0x31e)]()+'/'+_0x1c507b[_0x41e7e5(0x485)]+_0x41e7e5(0x424)+_0x1c507b[_0x41e7e5(0x32b)]+'/allowed';return(await this[_0x41e7e5(0x39d)]['post'](_0x187855,{'body':_0x1c507b}))[_0x41e7e5(0x4c0)]['actions'];}async[_0xb0c99b(0x228)](_0xe1ac9c){const _0x20c6ec=_0xb0c99b,_0x3c18a5=this[_0x20c6ec(0x31e)]()+_0x20c6ec(0x2e2);return(await this[_0x20c6ec(0x39d)][_0x20c6ec(0x3e7)](_0x3c18a5,{'body':{'requests':_0xe1ac9c}}))['body'][_0x20c6ec(0x30d)];}async['listRoles'](_0x42acc2){const _0x860c13=_0xb0c99b,_0x46099d=this[_0x860c13(0x31e)]()+'/'+_0x42acc2[_0x860c13(0x485)]+_0x860c13(0x4a7),_0x541d60=await this[_0x860c13(0x39d)]['post'](_0x46099d,{'body':_0x42acc2});return{'roles':_0x541d60[_0x860c13(0x4c0)]['roles'],'actions':_0x541d60[_0x860c13(0x4c0)]['actions']};}async[_0xb0c99b(0x478)](_0xd2da70){const _0x343e3b=_0xb0c99b,_0x32a2ed=this['_getAPIPrefixPath']()+_0x343e3b(0x2b6);await this['_HTTPService'][_0x343e3b(0x456)](_0x32a2ed,{'params':{'collaboratorID':_0xd2da70[_0x343e3b(0x190)],'objectID':_0xd2da70['objectID'],'unitID':_0xd2da70[_0x343e3b(0x4c3)]}});}async[_0xb0c99b(0x1ef)](_0x5696e2){const _0x384e45=_0xb0c99b,_0x4b07c8=this[_0x384e45(0x31e)]()+'/collaborator';await this[_0x384e45(0x39d)][_0x384e45(0x4b0)](_0x4b07c8,{'body':_0x5696e2});}async[_0xb0c99b(0x131)](_0x59a9dc){const _0x1ae020=_0xb0c99b,_0x422631=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1ae020(0x39d)][_0x1ae020(0x3e7)](_0x422631,{'body':_0x59a9dc});}async[_0xb0c99b(0x11e)](_0x172129){const _0x4eb6ad=_0xb0c99b,_0x140f60=this['_getAPIPrefixPath']()+_0x4eb6ad(0x2b6);return(await this[_0x4eb6ad(0x39d)][_0x4eb6ad(0x1a0)](_0x140f60,{'params':{'objectID':_0x172129[_0x4eb6ad(0x32b)],'unitID':_0x172129[_0x4eb6ad(0x4c3)]}}))[_0x4eb6ad(0x4c0)]['collaborators'];}async[_0xb0c99b(0x3a3)](_0x2cf77d){const _0x553678=_0xb0c99b,_0x416c7a=this[_0x553678(0x31e)]()+_0x553678(0x2b6);await this[_0x553678(0x39d)]['put'](_0x416c7a,{'body':_0x2cf77d});}},exports['AuthzIoHttpService']=qi([ct(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)])),ct(0x1,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x195)]))],exports[_0xb0c99b(0x4bf)]);var Ji=Object[_0xb0c99b(0x3dd)],Zi=Object[_0xb0c99b(0x18e)],Qi=(_0xc66aec,_0x5be503,_0x54df9e,_0x5814fc)=>{const _0x318890=_0xb0c99b;for(var _0x3fa31d=_0x5814fc>0x1?void 0x0:_0x5814fc?Zi(_0x5be503,_0x54df9e):_0x5be503,_0x5d7574=_0xc66aec[_0x318890(0x23c)]-0x1,_0x15bb34;_0x5d7574>=0x0;_0x5d7574--)(_0x15bb34=_0xc66aec[_0x5d7574])&&(_0x3fa31d=(_0x5814fc?_0x15bb34(_0x5be503,_0x54df9e,_0x3fa31d):_0x15bb34(_0x3fa31d))||_0x3fa31d);return _0x5814fc&&_0x3fa31d&&Ji(_0x5be503,_0x54df9e,_0x3fa31d),_0x3fa31d;},en=(_0x5dcbeb,_0x1f3038)=>(_0x56cc55,_0x4b7e69)=>_0x1f3038(_0x56cc55,_0x4b7e69,_0x5dcbeb);let be=class{constructor(_0x50d4db){const _0x5ed813=_0xb0c99b;this[_0x5ed813(0x2e8)]=_0x50d4db,this[_0x5ed813(0x4b9)]();}[_0xb0c99b(0x4b9)](){const _0x43158b=_0xb0c99b;this[_0x43158b(0x2e8)][_0x43158b(0x45d)]({'interceptor':(_0x210f54,_0x938d31)=>{const _0x3291ac=_0x43158b,_0x47a917=_0x210f54[_0x3291ac(0x4ab)],_0x502fae=Ft[_0x3291ac(0x148)]();return _0x502fae&&_0x47a917['set'](_0x3291ac(0x146),_0x502fae),_0x938d31(_0x210f54);}});}};be=Qi([en(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)]))],be);var tn=Object['defineProperty'],sn=Object[_0xb0c99b(0x18e)],nn=(_0x3d6003,_0x30598a,_0x591b78,_0x3ac0d2)=>{const _0x2898f5=_0xb0c99b;for(var _0x5eeeb0=_0x3ac0d2>0x1?void 0x0:_0x3ac0d2?sn(_0x30598a,_0x591b78):_0x30598a,_0x15341c=_0x3d6003[_0x2898f5(0x23c)]-0x1,_0x1dbc4c;_0x15341c>=0x0;_0x15341c--)(_0x1dbc4c=_0x3d6003[_0x15341c])&&(_0x5eeeb0=(_0x3ac0d2?_0x1dbc4c(_0x30598a,_0x591b78,_0x5eeeb0):_0x1dbc4c(_0x5eeeb0))||_0x5eeeb0);return _0x3ac0d2&&_0x5eeeb0&&tn(_0x30598a,_0x591b78,_0x5eeeb0),_0x5eeeb0;},je=(_0xc357f,_0x150f97)=>(_0x70a476,_0x5a6771)=>_0x150f97(_0x70a476,_0x5a6771,_0xc357f);const rn=[_0xb0c99b(0x38c),_0xb0c99b(0x154),_0xb0c99b(0x4c6),'image/gif',_0xb0c99b(0x464)],on=0x5*0x400*0x400,an=_0xb0c99b(0x11a),cn=_0xb0c99b(0x4ef),ln='EXCHANGE_SIGN_URL_SERVER_URL_KEY',hn=_0xb0c99b(0x307);exports[_0xb0c99b(0x226)]=class{constructor(_0xa8244f,_0x4ee89c,_0x2fef89){const _0x2f5228=_0xb0c99b;d(this,_0x2f5228(0x16c),0x0),d(this,_0x2f5228(0x30b),new v['Subject']()),d(this,'change$',this['_change$']),d(this,_0x2f5228(0x208),new Map()),(this[_0x2f5228(0x2e8)]=_0xa8244f,this[_0x2f5228(0x3ec)]=_0x4ee89c,this[_0x2f5228(0x3fb)]=_0x2fef89);}['setWaitCount'](_0x37a503){const _0x36fa1c=_0xb0c99b;this[_0x36fa1c(0x16c)]=_0x37a503,this[_0x36fa1c(0x30b)][_0x36fa1c(0x3c7)](_0x37a503);}[_0xb0c99b(0x25e)](_0x1649db,_0x262d03){const _0x2e47a1=_0xb0c99b;if(_0x262d03===A[_0x2e47a1(0x2c8)][_0x2e47a1(0x3f7)]){const _0x45aea9=new Image();return _0x45aea9['src']=_0x1649db,_0x45aea9;}return this[_0x2e47a1(0x208)][_0x2e47a1(0x1a0)](_0x1649db);}[_0xb0c99b(0x164)](_0x31b506,_0x1857ef,_0x2ce803){const _0x2a1658=_0xb0c99b;_0x1857ef===A[_0x2a1658(0x2c8)][_0x2a1658(0x3f7)]||_0x2ce803==null||this[_0x2a1658(0x208)][_0x2a1658(0x4d0)](_0x31b506,_0x2ce803);}async[_0xb0c99b(0x20a)](_0x7a650a){const _0x765ddc=_0xb0c99b;try{const _0x447756=this['_replaceFileID'](this['_getSignURL'](),''+_0x7a650a),_0x487a82=(await this['_httpService'][_0x765ddc(0x1a0)](_0x447756))['body'];if(_0x487a82[_0x765ddc(0x4d1)]&&_0x487a82[_0x765ddc(0x4d1)][_0x765ddc(0x17f)]===It['OK']){const _0x28167f=new URL(_0x487a82[_0x765ddc(0x187)],this['_getDownloadEndpointURL']())[_0x765ddc(0x499)]();return Promise['resolve'](_0x28167f);}return Promise['reject'](_0x487a82['error']);}catch(_0x48aed7){return Promise['reject'](_0x48aed7);}}async[_0xb0c99b(0x26f)](_0xccc835){const _0x370011=_0xb0c99b;let _0x524a44='';if(!rn['includes'](_0xccc835[_0x370011(0x498)]))return this[_0x370011(0x28c)](),Promise[_0x370011(0x21d)](new Error(A[_0x370011(0x46c)][_0x370011(0x379)]));if(_0xccc835[_0x370011(0x40e)]>on)return this[_0x370011(0x28c)](),Promise[_0x370011(0x21d)](new Error(A[_0x370011(0x46c)][_0x370011(0x21b)]));try{const _0x56fd83=new FormData();_0x56fd83[_0x370011(0x21c)](_0x370011(0x399),_0xccc835);const _0x3a8713=this[_0x370011(0x3fb)][_0x370011(0x345)](),_0x500a1d=_0x3a8713==null?void 0x0:_0x3a8713[_0x370011(0x4dd)]();if(!_0x500a1d)throw new Error(_0x370011(0x16e));const _0x482c92=this[_0x370011(0x389)]()+_0x370011(0x2c4)+_0xccc835[_0x370011(0x40e)]['toString']()+_0x370011(0x353)+pt[_0x370011(0x394)]+_0x370011(0x224)+encodeURIComponent(_0x500a1d),_0x1b26c1=await(await fetch(_0x482c92,{'method':_0x370011(0x3f8),'body':_0x56fd83}))[_0x370011(0x250)]();if(typeof _0x1b26c1[_0x370011(0x3b5)]!='string')return this[_0x370011(0x28c)](),Promise[_0x370011(0x21d)](new Error(A[_0x370011(0x46c)][_0x370011(0x3d5)]));_0x524a44=_0x1b26c1['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x370011(0x21d)](new Error(A['ImageUploadStatusType'][_0x370011(0x3d5)]));}return new Promise((_0x1bc391,_0x2d02ba)=>{const _0x15d3b8=_0x370011,_0x113309=new FileReader();_0x113309[_0x15d3b8(0x42f)](_0xccc835),_0x113309[_0x15d3b8(0x44e)]=_0x52b894=>{const _0x44c823=_0x15d3b8;var _0x179d9f;const _0x67b270=(_0x179d9f=_0x52b894[_0x44c823(0x3fd)])==null?void 0x0:_0x179d9f[_0x44c823(0x137)];if(_0x67b270==null){this[_0x44c823(0x28c)](),_0x2d02ba(new Error(A['ImageUploadStatusType'][_0x44c823(0x3d5)]));return;}const _0x36843e=a[_0x44c823(0x286)][_0x44c823(0x36a)](0x6);_0x1bc391({'imageId':_0x36843e,'imageSourceType':A[_0x44c823(0x2c8)]['UUID'],'source':_0x524a44,'base64Cache':_0x67b270,'status':A['ImageUploadStatusType'][_0x44c823(0x23f)]}),this[_0x44c823(0x28c)]();};});}[_0xb0c99b(0x389)](){const _0x46355f=_0xb0c99b;var _0x25fe68,_0x2d06f6;const _0x1c5b9d=this[_0x46355f(0x3ec)][_0x46355f(0x2aa)](an),_0xd3f72c=this[_0x46355f(0x3ec)]['getConfig'](L);return(_0x2d06f6=(_0x25fe68=_0xd3f72c==null?void 0x0:_0xd3f72c['uploadFileServerUrl'])!=null?_0x25fe68:_0x1c5b9d)!=null?_0x2d06f6:cn;}['_getSignURL'](){const _0x4d9429=_0xb0c99b;var _0x5888ee,_0x1a1a8c;const _0x5c9431=this['_configService'][_0x4d9429(0x2aa)](ln),_0x50fab6=this[_0x4d9429(0x3ec)]['getConfig'](L);return(_0x1a1a8c=(_0x5888ee=_0x50fab6==null?void 0x0:_0x50fab6['signUrlServerUrl'])!=null?_0x5888ee:_0x5c9431)!=null?_0x1a1a8c:hn;}[_0xb0c99b(0x1fd)](){const _0x191aba=_0xb0c99b;var _0x3814fc;const _0x5fc0ae=this['_configService'][_0x191aba(0x2aa)](L);return(_0x3814fc=_0x5fc0ae==null?void 0x0:_0x5fc0ae[_0x191aba(0x280)])!=null?_0x3814fc:location[_0x191aba(0x269)];}[_0xb0c99b(0xec)](_0x38b354,_0x3fd1e3){const _0x203bb1=_0xb0c99b;return _0x38b354[_0x203bb1(0x2c3)](_0x203bb1(0x328),_0x3fd1e3);}[_0xb0c99b(0x28c)](){const _0x6fcc9b=_0xb0c99b;this[_0x6fcc9b(0x16c)]-=0x1,this[_0x6fcc9b(0x30b)]['next'](this[_0x6fcc9b(0x16c)]);}},exports[_0xb0c99b(0x226)]=nn([je(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)])),je(0x1,a[_0xb0c99b(0x195)]),je(0x2,a[_0xb0c99b(0x455)](a['IUniverInstanceService']))],exports[_0xb0c99b(0x226)]);var _n=Object[_0xb0c99b(0x3dd)],un=Object[_0xb0c99b(0x18e)],dn=(_0x338b06,_0x269155,_0x165b6f,_0x319447)=>{for(var _0x830578=_0x319447>0x1?void 0x0:_0x319447?un(_0x269155,_0x165b6f):_0x269155,_0xb9deb9=_0x338b06['length']-0x1,_0x2c793a;_0xb9deb9>=0x0;_0xb9deb9--)(_0x2c793a=_0x338b06[_0xb9deb9])&&(_0x830578=(_0x319447?_0x2c793a(_0x269155,_0x165b6f,_0x830578):_0x2c793a(_0x830578))||_0x830578);return _0x319447&&_0x830578&&_n(_0x269155,_0x165b6f,_0x830578),_0x830578;},he=(_0x50ffd8,_0xb2784e)=>(_0xf24bb8,_0x13fd29)=>_0xb2784e(_0xf24bb8,_0x13fd29,_0x50ffd8);let me=class extends a['RxDisposable']{constructor(_0x40153d,_0xc1a70e,_0x455e92,_0x421203,_0x386d51){const _0x1a2389=_0xb0c99b;super(),this[_0x1a2389(0x12f)]=_0x40153d,this[_0x1a2389(0x3fb)]=_0xc1a70e,this[_0x1a2389(0x115)]=_0x455e92,this[_0x1a2389(0x4cd)]=_0x421203,this[_0x1a2389(0x26d)]=_0x386d51,this['_initUnitPermissionChange'](),this[_0x1a2389(0x10f)]();}[_0xb0c99b(0x10f)](){const _0x3add5a=_0xb0c99b,_0x3e6cc2=async _0x3e468a=>{const _0x510731=_0x4e0f;(await this[_0x510731(0x4cd)]['requireSession'](_0x3e468a))[_0x510731(0x1c0)]['pipe'](E['filter'](_0x15ff06=>_0x15ff06[_0x510731(0x1bd)]===_[_0x510731(0x153)][_0x510731(0x430)]),E[_0x510731(0x450)](this[_0x510731(0x495)]))[_0x510731(0x33b)](_0x29df85=>{const _0x37fa62=_0x510731,_0x4680ec=_0x29df85,{reason:_0x500d9d}=_0x4680ec[_0x37fa62(0x494)];this[_0x37fa62(0x12f)][_0x37fa62(0x1a0)](N[_0x37fa62(0x3bb)])[_0x37fa62(0x126)]({'type':X[_0x37fa62(0x20b)][_0x37fa62(0x14d)],'content':this['_localeService']['t'](_0x37fa62(0x33e))+'('+_0x500d9d+')'}),this['_permissionService'][_0x37fa62(0x3c8)](new C[(_0x37fa62(0x3bc))](_0x3e468a)['id'],!0x1),this[_0x37fa62(0x4cd)][_0x37fa62(0x2fe)](_0x3e468a);});};v['merge'](this[_0x3add5a(0x3fb)]['getTypeOfUnitAdded$'](a[_0x3add5a(0x111)][_0x3add5a(0x3e6)]),this[_0x3add5a(0x3fb)][_0x3add5a(0x2a4)](a[_0x3add5a(0x111)][_0x3add5a(0x254)]))[_0x3add5a(0x3a7)](E[_0x3add5a(0x1af)](_0x4ede8b=>_0x4ede8b[_0x3add5a(0x4dd)]()),E['filter'](_0x55a695=>!a[_0x3add5a(0x2b0)](_0x55a695)),E[_0x3add5a(0x450)](this[_0x3add5a(0x495)]))[_0x3add5a(0x33b)](_0x19c9d5=>{_0x3e6cc2(_0x19c9d5);});}[_0xb0c99b(0x374)](){const _0x44d593=_0xb0c99b,_0x3113ae=async _0xf9a211=>{const _0x546f8c=_0x4e0f;(await this[_0x546f8c(0x4cd)][_0x546f8c(0x230)](_0xf9a211))[_0x546f8c(0x1c0)][_0x546f8c(0x3a7)](E[_0x546f8c(0x13b)](_0x4409e7=>_0x4409e7[_0x546f8c(0x1bd)]===_['CollaborationEvent'][_0x546f8c(0x10e)]),E[_0x546f8c(0x450)](this[_0x546f8c(0x495)]))[_0x546f8c(0x33b)](_0x5d5879=>{const _0x6cb539=_0x546f8c,_0x485c4a=_0x5d5879,{objectId:_0x4e06fd}=_0x485c4a[_0x6cb539(0x494)],_0x2653a2=this[_0x6cb539(0x12f)][_0x6cb539(0x1a0)](te[_0x6cb539(0x2ae)]);_0x4e06fd===_0xf9a211?_0x2653a2[_0x6cb539(0x392)](_0xf9a211):_0x2653a2[_0x6cb539(0x343)](_0xf9a211,_0x4e06fd);});};v[_0x44d593(0x387)](this[_0x44d593(0x3fb)]['getTypeOfUnitAdded$'](a[_0x44d593(0x111)][_0x44d593(0x3e6)]),this['_univerInstanceService'][_0x44d593(0x2a4)](a['UniverInstanceType'][_0x44d593(0x254)]))[_0x44d593(0x3a7)](E[_0x44d593(0x1af)](_0x30ef73=>_0x30ef73[_0x44d593(0x4dd)]()),E[_0x44d593(0x13b)](_0x1aa713=>!a[_0x44d593(0x2b0)](_0x1aa713)),E['takeUntil'](this[_0x44d593(0x495)]))['subscribe'](_0x52402e=>{_0x3113ae(_0x52402e);});}};me=dn([a['OnLifecycle'](a['LifecycleStages'][_0xb0c99b(0x16a)],me),he(0x0,a['Inject'](a[_0xb0c99b(0x41a)])),he(0x1,a['IUniverInstanceService']),he(0x2,a['IPermissionService']),he(0x3,a[_0xb0c99b(0x455)](exports['CollaborationSessionService'])),he(0x4,a[_0xb0c99b(0x455)](a['LocaleService']))],me);var Sn=Object[_0xb0c99b(0x3dd)],vn=Object[_0xb0c99b(0x18e)],fn=(_0x27564d,_0x1a6722,_0x5e18d0,_0x18c2c8)=>{const _0x3098c8=_0xb0c99b;for(var _0x2ff618=_0x18c2c8>0x1?void 0x0:_0x18c2c8?vn(_0x1a6722,_0x5e18d0):_0x1a6722,_0x3976df=_0x27564d[_0x3098c8(0x23c)]-0x1,_0x12fcca;_0x3976df>=0x0;_0x3976df--)(_0x12fcca=_0x27564d[_0x3976df])&&(_0x2ff618=(_0x18c2c8?_0x12fcca(_0x1a6722,_0x5e18d0,_0x2ff618):_0x12fcca(_0x2ff618))||_0x2ff618);return _0x18c2c8&&_0x2ff618&&Sn(_0x1a6722,_0x5e18d0,_0x2ff618),_0x2ff618;},lt=(_0x33f2e9,_0x150f5a)=>(_0x3e7d1e,_0x5adbc8)=>_0x150f5a(_0x3e7d1e,_0x5adbc8,_0x33f2e9);exports[_0xb0c99b(0x474)]=class{constructor(_0x27de7e,_0x27758b){const _0x190ce5=_0xb0c99b;this[_0x190ce5(0x3ec)]=_0x27de7e,this[_0x190ce5(0x2e8)]=_0x27758b;}async[_0xb0c99b(0x1f4)](_0x804a4a,_0x4aee79){const _0x4644b1=_0xb0c99b;var _0x554e3b;const {unitID:_0x992e02,type:_0x5a13f3,revision:_0x5cb5f0=0x0}=_0x4aee79,_0x4cc4c0=this[_0x4644b1(0x3b9)]()+'/'+_0x5a13f3+_0x4644b1(0x19f)+_0x992e02+'/rev/'+_0x5cb5f0,_0x1a603b=(await this[_0x4644b1(0x2e8)][_0x4644b1(0x1a0)](_0x4cc4c0))[_0x4644b1(0x4c0)],_0x2f0268=(_0x554e3b=_0x1a603b[_0x4644b1(0x3d8)])==null?void 0x0:_0x554e3b['workbook'];if(_0x2f0268){const _0x22efae=_0x2f0268==null?void 0x0:_0x2f0268[_0x4644b1(0x4a6)],_0x3f9cc6=_[_0x4644b1(0x163)][_0x4644b1(0x3b6)](_[_0x4644b1(0x262)](_0x22efae));_0x2f0268[_0x4644b1(0x4a6)]=_0x3f9cc6,Object[_0x4644b1(0x207)](_0x2f0268['sheets'])[_0x4644b1(0x1cb)](([,_0x15f5ca])=>{const _0xe0be84=_0x4644b1,_0x3e2525=_0x15f5ca[_0xe0be84(0x4a6)],_0x3a20a7=_[_0xe0be84(0x163)][_0xe0be84(0x3b6)](_[_0xe0be84(0x262)](_0x3e2525));_0x15f5ca[_0xe0be84(0x4a6)]=_0x3a20a7;});}return _0x1a603b;}async[_0xb0c99b(0x144)](_0x43599e,_0x3258c8){const _0x6b6ab4=_0xb0c99b,{unitID:_0x3aca1c,type:_0x5a3572,blockID:_0x5c006e}=_0x3258c8,_0x35f4f7=this[_0x6b6ab4(0xea)]()+'/'+_0x5a3572+_0x6b6ab4(0x19f)+_0x3aca1c+_0x6b6ab4(0x193)+_0x5c006e;return(await this[_0x6b6ab4(0x2e8)][_0x6b6ab4(0x1a0)](_0x35f4f7))[_0x6b6ab4(0x4c0)];}async[_0xb0c99b(0x2ea)](_0x44dc87,_0xfb252c){const _0x6b2ced=_0xb0c99b,{unitID:_0x1f7691,type:_0x1616dc,blockID:_0x9bc817}=_0xfb252c,_0x59c52e=this[_0x6b2ced(0xea)]()+_0x6b2ced(0x193)+_0x1616dc+_0x6b2ced(0x19f)+_0x1f7691+_0x6b2ced(0x193)+_0x9bc817;return(await this[_0x6b2ced(0x2e8)][_0x6b2ced(0x1a0)](_0x59c52e))[_0x6b2ced(0x4c0)];}async[_0xb0c99b(0x4e0)](_0x43ce6a,_0x600ba9){const _0x81cbd3=_0xb0c99b,{unitID:_0x18da91,type:_0x144e45,from:_0x852ee2,to:_0x436cd1}=_0x600ba9,_0x11b392=this[_0x81cbd3(0xea)]()+'/'+_0x144e45+_0x81cbd3(0x19f)+_0x18da91+'/fetchmissing?from='+_0x852ee2+_0x81cbd3(0x19c)+_0x436cd1;return(await this['_httpService']['get'](_0x11b392))['body'];}[_0xb0c99b(0x3b9)](){const _0x30b1ee=_0xb0c99b;var _0x4a0a32;return(_0x4a0a32=this['_configService'][_0x30b1ee(0x2aa)](_t))!=null?_0x4a0a32:this[_0x30b1ee(0xea)]();}[_0xb0c99b(0xea)](){const _0x31b92b=_0xb0c99b;var _0x951487,_0x582d85;const _0x1c45e6=this[_0x31b92b(0x3ec)][_0x31b92b(0x2aa)](ht),_0x5ab688=this[_0x31b92b(0x3ec)]['getConfig'](L);return(_0x582d85=(_0x951487=_0x5ab688==null?void 0x0:_0x5ab688[_0x31b92b(0x204)])!=null?_0x951487:_0x1c45e6)!=null?_0x582d85:Gt;}async[_0xb0c99b(0x370)](_0x454d7a,_0x5c00c7){const _0x92bca0=_0xb0c99b,_0xb7e618=_0x92bca0(0x17e)+_0x5c00c7[_0x92bca0(0x498)]+'/unit/'+_0x5c00c7[_0x92bca0(0x4c3)]+_0x92bca0(0x27e);return(await this[_0x92bca0(0x2e8)][_0x92bca0(0x1a0)](_0xb7e618,{'params':{'resourceId':JSON[_0x92bca0(0x36d)](_0x5c00c7[_0x92bca0(0x260)])}}))['body'];}[_0xb0c99b(0x1ce)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0xb0c99b(0x23a)](){const _0x614fb1=_0xb0c99b;throw new Error(_0x614fb1(0x1ec));}[_0xb0c99b(0x458)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x325f35=_0xb0c99b;throw new Error(_0x325f35(0x1ec));}},exports[_0xb0c99b(0x474)]=fn([lt(0x0,a['IConfigService']),lt(0x1,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)]))],exports['SnapshotServerOverHTTPService']);var gn=Object[_0xb0c99b(0x3dd)],mn=Object[_0xb0c99b(0x18e)],In=(_0x162d0f,_0x314379,_0x3f3481,_0x105d20)=>{for(var _0xd79dad=_0x105d20>0x1?void 0x0:_0x105d20?mn(_0x314379,_0x3f3481):_0x314379,_0x2eeaa5=_0x162d0f['length']-0x1,_0x3c30ac;_0x2eeaa5>=0x0;_0x2eeaa5--)(_0x3c30ac=_0x162d0f[_0x2eeaa5])&&(_0xd79dad=(_0x105d20?_0x3c30ac(_0x314379,_0x3f3481,_0xd79dad):_0x3c30ac(_0xd79dad))||_0xd79dad);return _0x105d20&&_0xd79dad&&gn(_0x314379,_0x3f3481,_0xd79dad),_0xd79dad;},_e=(_0x4f8fc8,_0x4e761d)=>(_0x1f67be,_0x38260d)=>_0x4e761d(_0x1f67be,_0x38260d,_0x4f8fc8);function _0x4e0f(_0x4ee815,_0x587a41){const _0x4d94b7=_0x4d94();return _0x4e0f=function(_0x4e0fdb,_0x43140c){_0x4e0fdb=_0x4e0fdb-0xe5;let _0x4650e7=_0x4d94b7[_0x4e0fdb];return _0x4650e7;},_0x4e0f(_0x4ee815,_0x587a41);}let Be=class extends a['LocalUndoRedoService']{constructor(_0x5bca08,_0x123564,_0x296714,_0x455b37,_0x4fe4d6){const _0x42db89=_0xb0c99b;super(_0x5bca08,_0x123564,_0x296714),this[_0x42db89(0x1f2)]=_0x455b37,this['_logService']=_0x4fe4d6;}[_0xb0c99b(0x4d4)](_0x33ab68,_0x1d7032){const _0x5bfbad=_0xb0c99b,_0x4c0779=this[_0x5bfbad(0x4b5)](_0x33ab68);if(_0x4c0779)try{const _0x5a0d37=this[_0x5bfbad(0x414)](_0x4c0779,_0x1d7032);this['_substituteUndoStack'](_0x33ab68,_0x5a0d37);}catch(_0x19146d){this[_0x5bfbad(0x3cd)][_0x5bfbad(0x4d1)](_0x5bfbad(0x116),_0x19146d),this[_0x5bfbad(0x48c)](_0x33ab68);}const _0x25cfe2=this[_0x5bfbad(0x1e5)](_0x33ab68);if(_0x25cfe2)try{const _0x3738ad=this['_transformStack'](_0x25cfe2,_0x1d7032);this['_substituteRedoStack'](_0x33ab68,_0x3738ad);}catch(_0x519296){this['_logService'][_0x5bfbad(0x4d1)](_0x519296),this[_0x5bfbad(0x21e)](_0x33ab68);}}[_0xb0c99b(0x48c)](_0x103735){const _0xc245dc=_0xb0c99b,_0xeacc77=this[_0xc245dc(0x4b5)](_0x103735);_0xeacc77&&(_0xeacc77[_0xc245dc(0x23c)]=0x0,this[_0xc245dc(0x2e4)]());}['_clearRedo'](_0x340d3d){const _0x1240c5=_0xb0c99b,_0x2b8f8d=this['_getRedoStack'](_0x340d3d);_0x2b8f8d&&(_0x2b8f8d['length']=0x0,this[_0x1240c5(0x2e4)]());}[_0xb0c99b(0x243)](_0xf0ad51,_0x172702){const _0x2b0e00=_0xb0c99b;this[_0x2b0e00(0x107)]['set'](_0xf0ad51,_0x172702),this['_updateStatus']();}['_substituteRedoStack'](_0x102e16,_0x4663cd){const _0x16f62b=_0xb0c99b;this[_0x16f62b(0x31a)][_0x16f62b(0x4d0)](_0x102e16,_0x4663cd),this['_updateStatus']();}['_transformStack'](_0xa45ce5,_0x1a992c){const _0xb7d7b9=_0xb0c99b,_0x212f41=[];let _0x1a5342=_0x1a992c,_0x3c13de=_0x1a992c;for(let _0x18321e=_0xa45ce5['length']-0x1;_0x18321e>=0x0;_0x18321e--){const {unitID:_0x5204cf,undoMutations:_0x33d462,redoMutations:_0x573fc3}=_0xa45ce5[_0x18321e],_0x58c856=this[_0xb7d7b9(0x1f2)][_0xb7d7b9(0x2d6)](_0x1a5342,_0x33d462),_0x580038=this['_transformService'][_0xb7d7b9(0x2d6)](_0x3c13de,_0x573fc3);if(_[_0xb7d7b9(0x240)](_0x58c856)||_[_0xb7d7b9(0x240)](_0x580038)){this[_0xb7d7b9(0x3cd)][_0xb7d7b9(0x4d1)]('[CollaborationUndoRedoService]',_0xb7d7b9(0x47b),_0x58c856,_0x580038);break;}_0x1a5342=_0x58c856[_0xb7d7b9(0x2d5)],_0x3c13de=_0x580038[_0xb7d7b9(0x2d5)],_0x212f41[_0xb7d7b9(0x2da)]({'unitID':_0x5204cf,'undoMutations':_0x58c856[_0xb7d7b9(0x200)],'redoMutations':_0x580038['m2Prime']});}return _0x212f41[_0xb7d7b9(0x3d4)]();}};Be=In([_e(0x0,a['IUniverInstanceService']),_e(0x1,a[_0xb0c99b(0x47e)]),_e(0x2,a[_0xb0c99b(0x34d)]),_e(0x3,_['ITransformService']),_e(0x4,a[_0xb0c99b(0x2b2)])],Be);class Mt extends a[_0xb0c99b(0x3c1)]{constructor(){const _0x37d003=_0xb0c99b;super(),d(this,'urlChange$'),this[_0x37d003(0x3b8)]=v['fromEvent'](window,_0x37d003(0x4eb))['pipe'](v[_0x37d003(0x450)](this[_0x37d003(0x495)]),v[_0x37d003(0xeb)](0x1),v['mapTo'](void 0x0));}[_0xb0c99b(0x1b1)](_0x4f9147,_0x4ab832,_0x245646=!0x1){const _0x53a33f=_0xb0c99b,_0x28e78c=new URL(window['location']['href']);_0x28e78c['searchParams'][_0x53a33f(0x4d0)](_0x4f9147,_0x4ab832),_0x245646?window[_0x53a33f(0x45e)][_0x53a33f(0x237)]('','',_0x28e78c[_0x53a33f(0x499)]()):window[_0x53a33f(0x45e)]['pushState']('','',_0x28e78c[_0x53a33f(0x499)]());}[_0xb0c99b(0x28e)](_0xb19889,_0x4ca050=!0x1){const _0x3c2078=_0xb0c99b,_0x4e72ed=new URL(window[_0x3c2078(0x13c)][_0x3c2078(0x363)]);_0x4e72ed[_0x3c2078(0x418)]['delete'](_0xb19889),_0x4ca050?window['history']['replaceState']('','',_0x4e72ed[_0x3c2078(0x499)]()):window['history']['pushState']('','',_0x4e72ed['toString']());}[_0xb0c99b(0x3ef)](_0x32477f){const _0x574511=_0xb0c99b;var _0x5abe55;return(_0x5abe55=new URL(window['location']['href'])[_0x574511(0x418)][_0x574511(0x1a0)](_0x32477f))!=null?_0x5abe55:void 0x0;}}var Nt=Object['defineProperty'],pn=Object['getOwnPropertyDescriptor'],Cn=(_0x422740,_0x3f4e62,_0x7564a0)=>_0x3f4e62 in _0x422740?Nt(_0x422740,_0x3f4e62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7564a0}):_0x422740[_0x3f4e62]=_0x7564a0,En=(_0x4a4a42,_0x510217,_0x2fb593,_0x167a39)=>{for(var _0x366406=_0x167a39>0x1?void 0x0:_0x167a39?pn(_0x510217,_0x2fb593):_0x510217,_0x1ac253=_0x4a4a42['length']-0x1,_0x8f969c;_0x1ac253>=0x0;_0x1ac253--)(_0x8f969c=_0x4a4a42[_0x1ac253])&&(_0x366406=(_0x167a39?_0x8f969c(_0x510217,_0x2fb593,_0x366406):_0x8f969c(_0x366406))||_0x366406);return _0x167a39&&_0x366406&&Nt(_0x510217,_0x2fb593,_0x366406),_0x366406;},ve=(_0x1515c5,_0x483c53)=>(_0x369847,_0x358c6d)=>_0x483c53(_0x369847,_0x358c6d,_0x1515c5),bn=(_0x2ca60d,_0xb3947d,_0x49e92a)=>Cn(_0x2ca60d,_0xb3947d+'',_0x49e92a);const Tn=_0xb0c99b(0x1cf);exports[_0xb0c99b(0x4af)]=class extends a[_0xb0c99b(0x14c)]{constructor(_0x2ee49b=ts,_0x58b0ca,_0x436c0d,_0x14dc4c,_0x4c1a47){const _0x200128=_0xb0c99b;super(),this[_0x200128(0x2ba)]=_0x2ee49b,this[_0x200128(0x3cd)]=_0x58b0ca,this[_0x200128(0x285)]=_0x436c0d,this[_0x200128(0x12f)]=_0x14dc4c,this[_0x200128(0x3ec)]=_0x4c1a47;const {..._0x2d62a3}=this[_0x200128(0x2ba)];this[_0x200128(0x3ec)][_0x200128(0x1f1)](L,_0x2d62a3);}[_0xb0c99b(0x205)](){const _0x2a93fa=_0xb0c99b;this[_0x2a93fa(0x160)]();}[_0xb0c99b(0x141)](){const _0x16b390=_0xb0c99b;this[_0x16b390(0x149)]();}[_0xb0c99b(0x160)](){const _0x1c473c=_0xb0c99b;var _0xc280db,_0x1fedee,_0x9c15b2,_0x425024;this[_0x1c473c(0x12f)][_0x1c473c(0x191)](a[_0x1c473c(0x395)])&&this[_0x1c473c(0x3cd)][_0x1c473c(0x4d1)](_0x1c473c(0x486),_0x1c473c(0x27b));let _0x16ac80=[[a[_0x1c473c(0x395)],{'useClass':Be}],[exports[_0x1c473c(0x28a)]],[Xe],[P['HTTPService']],[ze,{'useClass':Mt}],[q],[exports[_0x1c473c(0x2b9)]],[P[_0x1c473c(0x300)]],[pe],[Ce],[Ie],[Ye],[Ee],[be],[Ge],[me],[Fe,{'useClass':(_0x1fedee=(_0xc280db=this[_0x1c473c(0x2ba)])==null?void 0x0:_0xc280db['socketService'])!=null?_0x1fedee:exports[_0x1c473c(0x18a)]}],[P[_0x1c473c(0x234)],{'useClass':P[_0x1c473c(0x17b)]}],[_[_0x1c473c(0x1ee)],{'useClass':exports[_0x1c473c(0x474)]}],[a[_0x1c473c(0x447)],{'useClass':exports[_0x1c473c(0x4bf)]}],[A['IImageIoService'],{'useClass':exports['ImageIoService']}],[exports['CollaborationController']],[exports[_0x1c473c(0x1d7)]],[exports[_0x1c473c(0x1ac)]],[ge],[se]];(_0x9c15b2=this['_config'])!=null&&_0x9c15b2['enableSingleActiveInstanceLock']&&_0x16ac80[_0x1c473c(0x2da)]([Te,{'useClass':ys}]),_0x16ac80=a['mergeOverrideWithDependencies'](_0x16ac80,(_0x425024=this['_config'])==null?void 0x0:_0x425024[_0x1c473c(0x354)]),_0x16ac80[_0x1c473c(0x1cb)](_0x2054c4=>this['_injector'][_0x1c473c(0x143)](_0x2054c4)),this['_initModules']();}[_0xb0c99b(0x149)](){const _0x26ade5=_0xb0c99b;this[_0x26ade5(0x3d3)](this[_0x26ade5(0x285)][_0x26ade5(0x1d9)](a['UniverInstanceType'][_0x26ade5(0x254)],[fe])),this[_0x26ade5(0x3d3)](this[_0x26ade5(0x285)][_0x26ade5(0x1d9)](a[_0x26ade5(0x111)]['UNIVER_SHEET'],[ke]));}['_initModules'](){const _0x463f04=_0xb0c99b;var _0x10df00,_0x1dff75;this[_0x463f04(0x12f)][_0x463f04(0x1a0)](P[_0x463f04(0x319)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':P[_0x463f04(0x2ca)]({'maxParallel':0x6})}),this[_0x463f04(0x12f)][_0x463f04(0x1a0)](be),(_0x10df00=this['_config'])!=null&&_0x10df00[_0x463f04(0x294)]||this[_0x463f04(0x12f)][_0x463f04(0x1a0)](exports['LocalCacheService'])[_0x463f04(0x38b)](),(_0x1dff75=this[_0x463f04(0x2ba)])!=null&&_0x1dff75[_0x463f04(0x4cc)]&&this[_0x463f04(0x12f)][_0x463f04(0x1a0)](Ee),this[_0x463f04(0x12f)][_0x463f04(0x1a0)](exports['CollaborationController']),this[_0x463f04(0x12f)]['has'](exports[_0x463f04(0x1ac)])&&this[_0x463f04(0x12f)][_0x463f04(0x1a0)](exports['DesktopCollaborationStatusDisplayController']);}},bn(exports['UniverCollaborationClientPlugin'],_0xb0c99b(0x2bf),Tn),exports[_0xb0c99b(0x4af)]=En([a[_0xb0c99b(0x18f)](_[_0xb0c99b(0x421)]),ve(0x1,a[_0xb0c99b(0x2b2)]),ve(0x2,R['IRenderManagerService']),ve(0x3,a['Inject'](a[_0xb0c99b(0x41a)])),ve(0x4,a[_0xb0c99b(0x195)])],exports['UniverCollaborationClientPlugin']),exports[_0xb0c99b(0x2d2)]=wt,exports[_0xb0c99b(0x361)]=gt,exports[_0xb0c99b(0x3a2)]=ut,exports[_0xb0c99b(0x4df)]=y,exports[_0xb0c99b(0x3ea)]=Pt,exports[_0xb0c99b(0x3ce)]=Ge,exports[_0xb0c99b(0x270)]=dt,exports[_0xb0c99b(0x448)]=Ve,exports[_0xb0c99b(0x4f6)]=Fe,exports[_0xb0c99b(0x158)]=ze,exports[_0xb0c99b(0x37b)]=ft,exports[_0xb0c99b(0x281)]=mt,exports[_0xb0c99b(0x1de)]=vt,exports[_0xb0c99b(0x44f)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0xb0c99b(0x23b)]=_t,exports[_0xb0c99b(0x35c)]=j,exports[_0xb0c99b(0x2af)]=Ot,exports[_0xb0c99b(0x14b)]=Mt,exports[_0xb0c99b(0x2c9)]=Ct,exports[_0xb0c99b(0x292)]=Et;
1
+ 'use strict';const _0x2658a4=_0x5b2d;(function(_0xabca5,_0x96d7b8){const _0x1363fb=_0x5b2d,_0x112060=_0xabca5();while(!![]){try{const _0x2eff72=-parseInt(_0x1363fb(0x493))/0x1*(parseInt(_0x1363fb(0x47c))/0x2)+-parseInt(_0x1363fb(0x358))/0x3+-parseInt(_0x1363fb(0x201))/0x4+parseInt(_0x1363fb(0x59b))/0x5+parseInt(_0x1363fb(0x5b0))/0x6*(parseInt(_0x1363fb(0x1ed))/0x7)+-parseInt(_0x1363fb(0x473))/0x8*(parseInt(_0x1363fb(0x4bf))/0x9)+parseInt(_0x1363fb(0x1f8))/0xa;if(_0x2eff72===_0x96d7b8)break;else _0x112060['push'](_0x112060['shift']());}catch(_0x451ff8){_0x112060['push'](_0x112060['shift']());}}}(_0x1540,0x64f7e));var xt=Object['defineProperty'],kt=(_0x368f12,_0x17d479,_0xe4a694)=>_0x17d479 in _0x368f12?xt(_0x368f12,_0x17d479,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe4a694}):_0x368f12[_0x17d479]=_0xe4a694,d=(_0x4c16f6,_0x2680ae,_0x549b06)=>kt(_0x4c16f6,typeof _0x2680ae!=_0x2658a4(0x4cc)?_0x2680ae+'':_0x2680ae,_0x549b06);Object[_0x2658a4(0x30c)](exports,Symbol[_0x2658a4(0x2b5)],{'value':_0x2658a4(0x3ee)});const a=require(_0x2658a4(0x566)),v=require(_0x2658a4(0x3d3)),E=require(_0x2658a4(0x33f)),X=require(_0x2658a4(0x558)),N=require('@univerjs/ui'),P=require(_0x2658a4(0x49e)),_=require(_0x2658a4(0x52e)),Bt=require('@univerjs/telemetry'),V=require(_0x2658a4(0x4e8)),w=require('@univerjs/docs-ui'),C=require(_0x2658a4(0x464)),R=require(_0x2658a4(0x3d4)),A=require(_0x2658a4(0x1b2)),Je=require('@univerjs/engine-formula'),te=require(_0x2658a4(0x3eb)),U=require(_0x2658a4(0x3ff)),Vt=require(_0x2658a4(0x3b9)),Wt=require(_0x2658a4(0x296)),Ft=require(_0x2658a4(0x360)),ht=_0x2658a4(0x208),Gt=_0x2658a4(0x312),_t=_0x2658a4(0x4f7),Yt='SEND_CHANGESET_TIMEOUT',Kt=0x7d0,ut=_0x2658a4(0x57a),Xt=_0x2658a4(0x581),dt=_0x2658a4(0x482),qt=0x7530,Ve=_0x2658a4(0x1b3),St=0x4e20,zt=0x4e20,vt=_0x2658a4(0x23a),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt='COLLAB_SUBMIT_CHANGESET_URL',Qt=_0x2658a4(0x59c),mt=_0x2658a4(0x522),es=_0x2658a4(0x2b0);var It=(_0x1c2fce=>(_0x1c2fce[_0x1c2fce['UNDEFINED']=0x0]=_0x2658a4(0x4eb),_0x1c2fce[_0x1c2fce['OK']=0x1]='OK',_0x1c2fce[_0x1c2fce[_0x2658a4(0x523)]=0x2]=_0x2658a4(0x523),_0x1c2fce[_0x1c2fce[_0x2658a4(0x549)]=0x3]='PERMISSION_DENIED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x43f)]=0x4]=_0x2658a4(0x43f),_0x1c2fce[_0x1c2fce[_0x2658a4(0x241)]=0x5]='UNAUTHENTICATED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x3d7)]=0x6]=_0x2658a4(0x3d7),_0x1c2fce[_0x1c2fce[_0x2658a4(0x461)]=0x7]=_0x2658a4(0x461),_0x1c2fce[_0x1c2fce[_0x2658a4(0x35f)]=0x8]=_0x2658a4(0x35f),_0x1c2fce[_0x1c2fce[_0x2658a4(0x270)]=0x9]=_0x2658a4(0x270),_0x1c2fce[_0x1c2fce[_0x2658a4(0x48b)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1c2fce[_0x1c2fce[_0x2658a4(0x452)]=0x1771]=_0x2658a4(0x452),_0x1c2fce[_0x1c2fce['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1c2fce[_0x1c2fce['APPLY_REJECT']=0x1b59]=_0x2658a4(0x4f2),_0x1c2fce[_0x1c2fce['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1c2fce[_0x1c2fce[_0x2658a4(0x256)]=0x1b5b]=_0x2658a4(0x256),_0x1c2fce[_0x1c2fce[_0x2658a4(0x26e)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x5ad)]=0x1f41]=_0x2658a4(0x5ad),_0x1c2fce[_0x1c2fce[_0x2658a4(0x4cb)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x20a)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x5ab)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x45c)]=0x232c]=_0x2658a4(0x45c),_0x1c2fce[_0x1c2fce[_0x2658a4(0x2d2)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x1c2fce[_0x1c2fce[_0x2658a4(0x46c)]=0x2711]=_0x2658a4(0x46c),_0x1c2fce[_0x1c2fce[_0x2658a4(0x2b6)]=0x2712]=_0x2658a4(0x2b6),_0x1c2fce[_0x1c2fce[_0x2658a4(0x247)]=0x2713]=_0x2658a4(0x247),_0x1c2fce[_0x1c2fce[_0x2658a4(0x2af)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1c2fce[_0x1c2fce[_0x2658a4(0x1ef)]=-0x1]=_0x2658a4(0x1ef),_0x1c2fce))(It||{}),$=(_0x3d78ce=>(_0x3d78ce[_0x3d78ce[_0x2658a4(0x42b)]=0x0]=_0x2658a4(0x42b),_0x3d78ce[_0x3d78ce['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x3d78ce[_0x3d78ce[_0x2658a4(0x3d2)]=0x2]=_0x2658a4(0x3d2),_0x3d78ce[_0x3d78ce['UNIVER_SLIDE']=0x3]=_0x2658a4(0x21d),_0x3d78ce[_0x3d78ce[_0x2658a4(0x369)]=0x4]=_0x2658a4(0x369),_0x3d78ce[_0x3d78ce[_0x2658a4(0x1ef)]=-0x1]=_0x2658a4(0x1ef),_0x3d78ce))($||{}),b=(_0x5dd7b1=>(_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x490)]=0x0]=_0x2658a4(0x490),_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x2c6)]=0x1]='HELLO',_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x2b4)]=0x2]=_0x2658a4(0x2b4),_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x3da)]=0x3]=_0x2658a4(0x3da),_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x5aa)]=0x4]=_0x2658a4(0x5aa),_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x1d5)]=0x5]='HEARTBEAT',_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x2da)]=0x6]=_0x2658a4(0x2da),_0x5dd7b1[_0x5dd7b1[_0x2658a4(0x1ef)]=-0x1]='UNRECOGNIZED',_0x5dd7b1))(b||{}),We=(_0x534041=>(_0x534041[_0x534041[_0x2658a4(0x400)]=0x0]=_0x2658a4(0x400),_0x534041[_0x534041['OK']=0x1]='OK',_0x534041[_0x534041[_0x2658a4(0x480)]=0x2]=_0x2658a4(0x480),_0x534041[_0x534041[_0x2658a4(0x1ef)]=-0x1]=_0x2658a4(0x1ef),_0x534041))(We||{}),pt=(_0x1f9f82=>(_0x1f9f82[_0x1f9f82[_0x2658a4(0x2f7)]=0x0]=_0x2658a4(0x2f7),_0x1f9f82[_0x1f9f82[_0x2658a4(0x43d)]=0x1]=_0x2658a4(0x43d),_0x1f9f82[_0x1f9f82['HttpExport']=0x2]=_0x2658a4(0x1e1),_0x1f9f82[_0x1f9f82['UnitEmbedded']=0x3]=_0x2658a4(0x3db),_0x1f9f82[_0x1f9f82[_0x2658a4(0x2fe)]=0x4]='UnitSnapshot',_0x1f9f82[_0x1f9f82[_0x2658a4(0x1ef)]=-0x1]=_0x2658a4(0x1ef),_0x1f9f82))(pt||{});const L=_0x2658a4(0x4e0),ts={};function Ct(_0x21f959){const _0x585fb2=_0x2658a4;var _0x2dd891,_0x2c2479,_0x15880c,_0x15ee5d;const _0x4d9263=_0x21f959['data'],_0x45ce25=JSON[_0x585fb2(0x529)](_0x4d9263);switch(_0x45ce25[_0x585fb2(0x2bc)]){case b['HEARTBEAT']:case b[_0x585fb2(0x2c6)]:{const _0x1e935f=_0x45ce25[_0x585fb2(0x295)];return{..._0x45ce25,'data':_0x1e935f,'cmd':_0x45ce25[_0x585fb2(0x2bc)]};}case b[_0x585fb2(0x2b4)]:{const _0x91bdc9=_0x45ce25[_0x585fb2(0x24e)];return{..._0x45ce25,'data':_0x91bdc9,'cmd':_0x45ce25['cmd']};}case b[_0x585fb2(0x2da)]:{const _0x35453b=_0x45ce25['collaMsg'];switch(_0x35453b['eventID']){case _['CollaborationEvent'][_0x585fb2(0x245)]:return{..._0x45ce25,'data':{..._0x35453b,'data':(_0x2dd891=_0x35453b[_0x585fb2(0x3d0)])==null?void 0x0:_0x2dd891['cs']},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)]['CHANGESET_ACK']:return{..._0x45ce25,'data':{..._0x35453b,'data':(_0x2c2479=_0x35453b[_0x585fb2(0x37e)])==null?void 0x0:_0x2c2479['cs']},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)][_0x585fb2(0x54f)]:return{..._0x45ce25,'data':{..._0x35453b,'data':(_0x15880c=_0x35453b['newCsEvent'])==null?void 0x0:_0x15880c['cs']},'cmd':_0x45ce25['cmd']};case _[_0x585fb2(0x2d5)]['CHANGESET_REJ']:return{..._0x45ce25,'data':{..._0x35453b,'data':(_0x15ee5d=_0x35453b[_0x585fb2(0x44d)])==null?void 0x0:_0x15ee5d['cs']},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)][_0x585fb2(0x574)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x25c)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)][_0x585fb2(0x1d6)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x4c4)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)]['USERS_LEAVE']:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x217)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _['CollaborationEvent'][_0x585fb2(0x267)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x582)]},'cmd':_0x45ce25['cmd']};case _[_0x585fb2(0x2d5)][_0x585fb2(0x517)]:case _['CollaborationEvent'][_0x585fb2(0x240)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x543)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)][_0x585fb2(0x3fd)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x582)]},'cmd':_0x45ce25['cmd']};case _[_0x585fb2(0x2d5)][_0x585fb2(0x544)]:return{..._0x45ce25,'data':_0x35453b,'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _['CollaborationEvent'][_0x585fb2(0x1c1)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b['commentUpdateEvent']},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _['CollaborationEvent'][_0x585fb2(0x437)]:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x52c)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};case _[_0x585fb2(0x2d5)]['SHOULD_CLOSE_CONN']:return{..._0x45ce25,'data':{..._0x35453b,'data':_0x35453b[_0x585fb2(0x39b)]},'cmd':_0x45ce25[_0x585fb2(0x2bc)]};default:return _0x45ce25;}}default:return _0x45ce25;}}function Et(_0x4d1c8a){const _0x2b4c2c=_0x2658a4;switch(_0x4d1c8a[_0x2b4c2c(0x2bc)]){case b[_0x2b4c2c(0x1d5)]:case b[_0x2b4c2c(0x2c6)]:return JSON[_0x2b4c2c(0x427)]({'cmd':_0x4d1c8a[_0x2b4c2c(0x2bc)],'routeKey':_0x4d1c8a[_0x2b4c2c(0x378)]});case b['INGEST']:{let _0x83956d;switch(_0x4d1c8a['data'][_0x2b4c2c(0x44e)]){case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x574)]:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x574)],'updateCursorEvent':_0x4d1c8a[_0x2b4c2c(0x46e)][_0x2b4c2c(0x46e)]};break;}case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x3b3)]:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x3b3)],'leaveEvent':_0x4d1c8a[_0x2b4c2c(0x46e)][_0x2b4c2c(0x46e)]};break;}case _[_0x2b4c2c(0x2d5)]['USERS_ENTER']:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)]['USERS_ENTER'],'joinEvent':_0x4d1c8a[_0x2b4c2c(0x46e)][_0x2b4c2c(0x46e)]};break;}case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x4d1c8a[_0x2b4c2c(0x46e)][_0x2b4c2c(0x46e)]};break;}case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x240)]:{_0x83956d={'eventID':_['CollaborationEvent'][_0x2b4c2c(0x240)],'liveShareOperation':_0x4d1c8a['data'][_0x2b4c2c(0x46e)]};break;}case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x3fd)]:{_0x83956d={'eventID':_['CollaborationEvent'][_0x2b4c2c(0x3fd)],'liveShareTerminate':_0x4d1c8a['data'][_0x2b4c2c(0x46e)]};break;}case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x386)]:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x4d1c8a[_0x2b4c2c(0x46e)]['data']};break;}case _[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x517)]:{_0x83956d={'eventID':_[_0x2b4c2c(0x2d5)][_0x2b4c2c(0x517)]};break;}default:_0x83956d={'eventID':_0x4d1c8a[_0x2b4c2c(0x46e)][_0x2b4c2c(0x44e)]};}return JSON[_0x2b4c2c(0x427)]({'cmd':_0x4d1c8a['cmd'],'routeKey':_0x4d1c8a[_0x2b4c2c(0x378)],'collaMsg':_0x83956d});}case b[_0x2b4c2c(0x2b4)]:return JSON[_0x2b4c2c(0x427)]({'cmd':_0x4d1c8a[_0x2b4c2c(0x2bc)],'routeKey':_0x4d1c8a['routeKey'],'joinReq':_0x4d1c8a['data']});case b[_0x2b4c2c(0x3da)]:return JSON[_0x2b4c2c(0x427)]({'cmd':_0x4d1c8a[_0x2b4c2c(0x2bc)],'routeKey':_0x4d1c8a[_0x2b4c2c(0x378)],'leaveReq':_0x4d1c8a[_0x2b4c2c(0x46e)]});default:throw new Error(_0x2b4c2c(0x362));}}var ss=Object['defineProperty'],is=Object[_0x2658a4(0x222)],ns=(_0x4e11d1,_0x588dc7,_0x1643e3,_0x267f4a)=>{for(var _0x1e8d09=_0x267f4a>0x1?void 0x0:_0x267f4a?is(_0x588dc7,_0x1643e3):_0x588dc7,_0x69072=_0x4e11d1['length']-0x1,_0x2fc2bf;_0x69072>=0x0;_0x69072--)(_0x2fc2bf=_0x4e11d1[_0x69072])&&(_0x1e8d09=(_0x267f4a?_0x2fc2bf(_0x588dc7,_0x1643e3,_0x1e8d09):_0x2fc2bf(_0x1e8d09))||_0x1e8d09);return _0x267f4a&&_0x1e8d09&&ss(_0x588dc7,_0x1643e3,_0x1e8d09),_0x1e8d09;},oe=(_0x391df7,_0x2146ff)=>(_0xd746c8,_0x2b6243)=>_0x2146ff(_0xd746c8,_0x2b6243,_0x391df7);const Fe=a[_0x2658a4(0x5b9)](_0x2658a4(0x1be));function rs(_0x50e5d0,_0x326ea8,_0x2009ff){const _0x106f99=_0x2658a4;return _0x50e5d0+'/'+_0x326ea8+_0x106f99(0x4f9)+_0x2009ff+_0x106f99(0x560);}exports[_0x2658a4(0x500)]=class extends a[_0x2658a4(0x1df)]{constructor(_0x11aff0,_0x1ff69d,_0x57ed6f,_0x2897a7,_0x16eaca){const _0x3ace1d=_0x2658a4;super(),this[_0x3ace1d(0x4d0)]=_0x11aff0,this[_0x3ace1d(0x3f3)]=_0x1ff69d,this['_configService']=_0x57ed6f,this[_0x3ace1d(0x3dd)]=_0x2897a7,this[_0x3ace1d(0x284)]=_0x16eaca;}['createSocket'](_0x382780){const _0x1108ea=_0x2658a4,_0x45635b=this[_0x1108ea(0x3f3)][_0x1108ea(0x383)](_0x382780);if(!_0x45635b)throw new Error(_0x1108ea(0x51f));const _0x430974=new a[(_0x1108ea(0x41c))](),_0x19911f=new v['Subject']();_0x430974[_0x1108ea(0x463)](_0x45635b['close$'][_0x1108ea(0x2a3)](_0x1ed261=>_0x19911f[_0x1108ea(0x460)](_0x1ed261))),_0x430974[_0x1108ea(0x463)](a[_0x1108ea(0x23f)](()=>_0x19911f[_0x1108ea(0x431)]()));const _0x5ba1b8=new v['Subject']();_0x430974['add'](_0x45635b[_0x1108ea(0x443)][_0x1108ea(0x2a3)](_0x567bfe=>_0x5ba1b8['next'](_0x567bfe))),_0x430974[_0x1108ea(0x463)](a[_0x1108ea(0x23f)](()=>_0x5ba1b8['complete']()));const _0x5d6406=new v[(_0x1108ea(0x1f9))]();_0x430974['add'](_0x45635b[_0x1108ea(0x343)][_0x1108ea(0x2a3)](_0x4f0471=>{const _0x388868=_0x1108ea,_0x31ad23=Ct(_0x4f0471);_0x5d6406[_0x388868(0x460)](_0x31ad23);})),_0x430974[_0x1108ea(0x463)](a[_0x1108ea(0x23f)](()=>_0x5d6406[_0x1108ea(0x431)]()));let _0xfe4912;const _0x1f770e=()=>{const _0x461ae5=_0x1108ea;_0x5ba1b8[_0x461ae5(0x460)](new Event(_0x461ae5(0x54b))),_0x19911f[_0x461ae5(0x460)](new CloseEvent(_0x461ae5(0x54b))),_0xfe4912[_0x461ae5(0x537)]();};return _0xfe4912={'memberID':'','close$':_0x19911f[_0x1108ea(0x329)](),'error$':_0x5ba1b8[_0x1108ea(0x329)](),'open$':_0x45635b[_0x1108ea(0x3f0)],'message$':_0x5d6406['asObservable'](),'send':_0xefe02d=>{const _0x4678e6=_0x1108ea;if(_0xefe02d['cmd']===b['INGEST']){if(_0xefe02d['data'][_0x4678e6(0x44e)]===_['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0x4678e6(0x485)](_0xfe4912,_0xefe02d[_0x4678e6(0x46e)])[_0x4678e6(0x1f7)](_0x29fcd8=>{const _0x50998c=_0x4678e6;this['_logService'][_0x50998c(0x2ad)](_0x29fcd8),_0x1f770e();});return;}if(_0xefe02d[_0x4678e6(0x46e)][_0x4678e6(0x44e)]===_['CollaborationEvent'][_0x4678e6(0x589)]){const _0x1a8fbd=_0xefe02d['data'];this[_0x4678e6(0x3ea)](_0x1a8fbd)[_0x4678e6(0x451)](_0x4d500e=>{const _0x1f16d1=_0x4678e6;_0x5d6406[_0x1f16d1(0x460)]({'cmd':b['RECV'],'code':We['OK'],'routeKey':_0x1a8fbd[_0x1f16d1(0x46e)][_0x1f16d1(0x35d)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x1f16d1(0x32b)],'data':{'changesets':_0x4d500e}}});})[_0x4678e6(0x1f7)](_0x12a379=>{const _0x24da0a=_0x4678e6;this[_0x24da0a(0x3dd)][_0x24da0a(0x2ad)](_0x12a379),_0x1f770e();});return;}}_0x45635b[_0x4678e6(0x1f6)](Et(_0xefe02d));},'close':()=>{const _0x5a793d=_0x1108ea;_0x45635b[_0x5a793d(0x537)](),_0x430974[_0x5a793d(0x3c3)]();}},_0xfe4912;}async[_0x2658a4(0x485)](_0x467547,_0x4c8af4){const _0x3af04b=_0x2658a4;var _0x2cf21b,_0x268a54;const {unitType:_0x255430,unitID:_0xd3d94a,changeset:_0x5cfcf1}=_0x4c8af4[_0x3af04b(0x46e)],_0x3439c3={'unitID':_0xd3d94a,'memberID':_0x467547[_0x3af04b(0x504)],'type':_0x255430,'changeset':_[_0x3af04b(0x4f5)](_0x5cfcf1)},_0x5ddd01=this[_0x3af04b(0x519)][_0x3af04b(0x455)](gt),_0x4584ff=this[_0x3af04b(0x519)][_0x3af04b(0x455)](L),_0x496f05=rs((_0x268a54=(_0x2cf21b=_0x4584ff==null?void 0x0:_0x4584ff[_0x3af04b(0x44c)])!=null?_0x2cf21b:_0x5ddd01)!=null?_0x268a54:Qt,_0x255430,_0xd3d94a);try{await this[_0x3af04b(0x4d0)][_0x3af04b(0x2c2)](_0x496f05,{'body':_0x3439c3});}catch(_0x232e65){throw this['_logService'][_0x3af04b(0x2ad)]('[CollaborationSession]',_0x3af04b(0x224)),_0x232e65;}}async['_fetchMissChangesets'](_0x3591aa){const _0x79c14d=_0x2658a4,{unitID:_0x5ef7a1,from:_0x4532d6,to:_0xa5f42,unitType:_0x328d94}=_0x3591aa[_0x79c14d(0x46e)];return(await this[_0x79c14d(0x284)][_0x79c14d(0x3a2)]({'metadata':void 0x0},{'unitID':_0x5ef7a1,'type':_0x328d94,'from':_0x4532d6,'to':_0xa5f42}))[_0x79c14d(0x528)];}},exports[_0x2658a4(0x500)]=ns([oe(0x0,a[_0x2658a4(0x349)](P['HTTPService'])),oe(0x1,a[_0x2658a4(0x349)](P[_0x2658a4(0x207)])),oe(0x2,a['IConfigService']),oe(0x3,a[_0x2658a4(0x2f2)]),oe(0x4,_[_0x2658a4(0x258)])],exports[_0x2658a4(0x500)]);const os=_0x2658a4(0x4e2);function as(_0x3ff1c3){const _0x5e4b0c=_0x2658a4;return JSON[_0x5e4b0c(0x427)](_0x3ff1c3)[_0x5e4b0c(0x532)];}class Ge{constructor(){const _0x36b8f2=_0x2658a4;d(this,'_commentUpdate$',new v[(_0x36b8f2(0x1f9))]()),d(this,_0x36b8f2(0x4ed),this[_0x36b8f2(0x367)]['asObservable']());}[_0x2658a4(0x4c0)](_0x19504c){const _0x5f17ec=_0x2658a4;this[_0x5f17ec(0x367)][_0x5f17ec(0x460)](_0x19504c);}}var cs=Object[_0x2658a4(0x30c)],ls=Object[_0x2658a4(0x222)],hs=(_0x294bff,_0xba8a1f,_0x48e261,_0x41cd8)=>{const _0x2bc0e6=_0x2658a4;for(var _0x212a80=_0x41cd8>0x1?void 0x0:_0x41cd8?ls(_0xba8a1f,_0x48e261):_0xba8a1f,_0x4bdb31=_0x294bff[_0x2bc0e6(0x532)]-0x1,_0x279e72;_0x4bdb31>=0x0;_0x4bdb31--)(_0x279e72=_0x294bff[_0x4bdb31])&&(_0x212a80=(_0x41cd8?_0x279e72(_0xba8a1f,_0x48e261,_0x212a80):_0x279e72(_0x212a80))||_0x212a80);return _0x41cd8&&_0x212a80&&cs(_0xba8a1f,_0x48e261,_0x212a80),_0x212a80;},Ze=(_0x14c41c,_0x6c9761)=>(_0x5151e3,_0x4fe0d4)=>_0x6c9761(_0x5151e3,_0x4fe0d4,_0x14c41c);let q=class extends a[_0x2658a4(0x1df)]{constructor(_0x5537ce,_0x45e4b2){const _0xde1773=_0x2658a4;super(),d(this,'_roomMembers',new Map()),(this[_0xde1773(0x446)]=_0x5537ce,this[_0xde1773(0x412)]=_0x45e4b2,this['disposeWithMe'](a[_0xde1773(0x23f)](v[_0xde1773(0x50c)](this[_0xde1773(0x446)][_0xde1773(0x5a8)](a['UniverInstanceType'][_0xde1773(0x3d2)])['pipe'](E[_0xde1773(0x1ec)](_0x3f6aaf=>_0x3f6aaf[_0xde1773(0x365)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0xde1773(0x1e8)])[_0xde1773(0x348)](E[_0xde1773(0x1ec)](_0x3e2e7f=>_0x3e2e7f[_0xde1773(0x365)]())),this[_0xde1773(0x446)][_0xde1773(0x5a8)](a[_0xde1773(0x313)][_0xde1773(0x21d)])[_0xde1773(0x348)](E[_0xde1773(0x1ec)](_0x1f311a=>_0x1f311a[_0xde1773(0x365)]())))[_0xde1773(0x2a3)](_0xba5d0c=>this[_0xde1773(0x2b3)](_0xba5d0c)))));}[_0x2658a4(0x592)](_0x2f4aa7){const _0x4e99c8=_0x2658a4;this[_0x4e99c8(0x412)][_0x4e99c8(0x592)](_0x2f4aa7);}[_0x2658a4(0x2c8)](){const _0x4866da=_0x2658a4;return this[_0x4866da(0x412)][_0x4866da(0x2c8)]();}[_0x2658a4(0x564)](_0x436bec,_0x12a795){const _0x312299=_0x2658a4;let _0x2720b0=this['_roomMembers'][_0x312299(0x3cc)](_0x436bec);_0x2720b0||(_0x2720b0=new _s(),this[_0x312299(0x30b)][_0x312299(0x2ce)](_0x436bec,_0x2720b0)),_0x2720b0[_0x312299(0x564)](_0x12a795);}[_0x2658a4(0x503)](_0x574653,_0x455c88){const _0x55153a=_0x2658a4,_0x4a473a=this[_0x55153a(0x30b)][_0x55153a(0x3cc)](_0x574653);_0x4a473a&&_0x4a473a[_0x55153a(0x503)](_0x455c88);}['getRoom'](_0x5b9cba){const _0x3be30b=_0x2658a4;return this[_0x3be30b(0x30b)][_0x3be30b(0x3cc)](_0x5b9cba);}[_0x2658a4(0x4ae)](_0x1dc0b6,_0x1b8ae8){const _0x18721d=_0x2658a4,_0x3b198a=this[_0x18721d(0x30b)][_0x18721d(0x3cc)](_0x1dc0b6);if(_0x3b198a)return _0x3b198a[_0x18721d(0x4ae)](_0x1b8ae8);}[_0x2658a4(0x2b3)](_0x576e5d){const _0x110b42=_0x2658a4,_0x162e84=this[_0x110b42(0x30b)]['get'](_0x576e5d);_0x162e84&&(_0x162e84[_0x110b42(0x3c3)](),this['_roomMembers'][_0x110b42(0x364)](_0x576e5d));}['dispose'](){const _0x24b1d0=_0x2658a4;this['_roomMembers']['forEach'](_0x5281dc=>_0x5281dc[_0x24b1d0(0x3c3)]()),this[_0x24b1d0(0x30b)][_0x24b1d0(0x2ae)]();}};q=hs([Ze(0x0,a[_0x2658a4(0x4e5)]),Ze(0x1,a['Inject'](a[_0x2658a4(0x402)]))],q);class _s extends a['Disposable']{constructor(){const _0x3bd859=_0x2658a4;super(...arguments),d(this,_0x3bd859(0x385),new Map());}['dispose'](){const _0x4aaa93=_0x2658a4;this[_0x4aaa93(0x385)][_0x4aaa93(0x2ae)]();}[_0x2658a4(0x564)](_0x201296){const _0x467128=_0x2658a4;this[_0x467128(0x385)][_0x467128(0x2ce)](_0x201296[_0x467128(0x504)],_0x201296);}[_0x2658a4(0x503)](_0x61ca4e){this['_members']['delete'](_0x61ca4e);}[_0x2658a4(0x4ae)](_0x5b7872){const _0x158059=_0x2658a4;return this['_members'][_0x158059(0x3cc)](_0x5b7872);}}var us=Object[_0x2658a4(0x30c)],ds=Object[_0x2658a4(0x222)],Ss=(_0x25b7ec,_0x1409d2,_0x47c21f,_0x508c32)=>{const _0x15fb32=_0x2658a4;for(var _0xe18dda=_0x508c32>0x1?void 0x0:_0x508c32?ds(_0x1409d2,_0x47c21f):_0x1409d2,_0x19fe6a=_0x25b7ec[_0x15fb32(0x532)]-0x1,_0x12c349;_0x19fe6a>=0x0;_0x19fe6a--)(_0x12c349=_0x25b7ec[_0x19fe6a])&&(_0xe18dda=(_0x508c32?_0x12c349(_0x1409d2,_0x47c21f,_0xe18dda):_0x12c349(_0xe18dda))||_0xe18dda);return _0x508c32&&_0xe18dda&&us(_0x1409d2,_0x47c21f,_0xe18dda),_0xe18dda;},B=(_0x1ac55e,_0x1f4265)=>(_0x4a19eb,_0x350f5f)=>_0x1f4265(_0x4a19eb,_0x350f5f,_0x1ac55e),j=(_0x14a8e3=>(_0x14a8e3[_0x14a8e3['IDLE']=0x0]='IDLE',_0x14a8e3[_0x14a8e3[_0x2658a4(0x1e9)]=0x1]=_0x2658a4(0x1e9),_0x14a8e3[_0x14a8e3[_0x2658a4(0x1fc)]=0x2]=_0x2658a4(0x1fc),_0x14a8e3[_0x14a8e3['ONLINE']=0x3]=_0x2658a4(0x3ae),_0x14a8e3))(j||{});exports[_0x2658a4(0x1aa)]=class extends a[_0x2658a4(0x354)]{constructor(_0x156a08,_0x26c4a0,_0x211b5c,_0x4098f8,_0x33b23f,_0x93be2,_0x44e191,_0x621678,_0xcba62b,_0x5d938b){const _0x4cacd0=_0x2658a4;super(),d(this,_0x4cacd0(0x539),new v['BehaviorSubject'](0x0)),d(this,_0x4cacd0(0x596),this[_0x4cacd0(0x539)][_0x4cacd0(0x329)]()),d(this,_0x4cacd0(0x4c7),new v[(_0x4cacd0(0x1f9))]()),d(this,_0x4cacd0(0x39e),this['_event$'][_0x4cacd0(0x329)]()),d(this,_0x4cacd0(0x545)),d(this,_0x4cacd0(0x234)),d(this,'_collaborationTimeoutTimer'),d(this,_0x4cacd0(0x520),!0x1),d(this,_0x4cacd0(0x239),null),(this[_0x4cacd0(0x40c)]=_0x156a08,this[_0x4cacd0(0x3dd)]=_0x211b5c,this[_0x4cacd0(0x232)]=_0x4098f8,this['_messageService']=_0x33b23f,this[_0x4cacd0(0x519)]=_0x93be2,this[_0x4cacd0(0x1a5)]=_0x44e191,this['_memberService']=_0x621678,this[_0x4cacd0(0x33a)]=_0xcba62b,this[_0x4cacd0(0x35c)]=_0x5d938b,this['_shouldReportTelemetry']=!!this[_0x4cacd0(0x35c)],_0x26c4a0[_0x4cacd0(0x348)](v[_0x4cacd0(0x3b1)](this['dispose$']))[_0x4cacd0(0x2a3)](_0x89a091=>{const _0x44d421=_0x4cacd0;var _0x2c5f54;typeof _0x89a091>'u'||(this[_0x44d421(0x545)]=_0x89a091,_0x89a091?(this['_joinRoom'](_0x89a091),this['_socketMessageSubscription']=_0x89a091['message$']['subscribe'](_0x30e39e=>{const _0x54da81=_0x44d421;_0x30e39e['routeKey']===this[_0x54da81(0x40c)]&&this[_0x54da81(0x4a0)](_0x30e39e);})):(this[_0x44d421(0x1ee)](),this[_0x44d421(0x539)]['next'](0x2),(_0x2c5f54=this[_0x44d421(0x234)])==null||_0x2c5f54[_0x44d421(0x488)](),this[_0x44d421(0x234)]=null));}),this[_0x4cacd0(0x2f0)](this['_beforeCloseService'][_0x4cacd0(0x49d)](()=>{const _0x110e6b=_0x4cacd0;var _0x53d089;(_0x53d089=this[_0x110e6b(0x545)])==null||_0x53d089[_0x110e6b(0x1f6)]({'cmd':b[_0x110e6b(0x3da)],'data':{'roomID':this[_0x110e6b(0x40c)]}});})));}get[_0x2658a4(0x5b1)](){const _0x48e832=_0x2658a4;return this[_0x48e832(0x539)][_0x48e832(0x4c1)]();}[_0x2658a4(0x408)](){const _0x5ddb1e=_0x2658a4;var _0x3a6600,_0x18256b;return(_0x18256b=(_0x3a6600=this[_0x5ddb1e(0x545)])==null?void 0x0:_0x3a6600[_0x5ddb1e(0x504)])!=null?_0x18256b:null;}[_0x2658a4(0x3c3)](){const _0xb98c6b=_0x2658a4;super[_0xb98c6b(0x3c3)](),this[_0xb98c6b(0x576)]['next'](),this[_0xb98c6b(0x576)][_0xb98c6b(0x431)]();}[_0x2658a4(0x537)](){const _0x238fb5=_0x2658a4;var _0x2c70c7,_0x14fb9a;this[_0x238fb5(0x1ee)](),(_0x2c70c7=this['_socket'])==null||_0x2c70c7[_0x238fb5(0x1f6)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x238fb5(0x40c)]}}),(_0x14fb9a=this[_0x238fb5(0x545)])==null||_0x14fb9a[_0x238fb5(0x537)](),this[_0x238fb5(0x4c7)]['complete'](),this['_sessionStatus$'][_0x238fb5(0x431)](),this[_0x238fb5(0x3c3)]();}[_0x2658a4(0x4a0)](_0x4cfcb0){const _0x7b7a97=_0x2658a4;_0x4cfcb0[_0x7b7a97(0x2bc)]===b[_0x7b7a97(0x2b4)]?this[_0x7b7a97(0x2ba)](_0x4cfcb0):_0x4cfcb0[_0x7b7a97(0x2bc)]===b[_0x7b7a97(0x2da)]&&this[_0x7b7a97(0x3e0)](_0x4cfcb0);}[_0x2658a4(0x37c)](_0x5bb678){const _0xc54651=_0x2658a4;this['_sessionStatus$'][_0xc54651(0x460)](0x1),_0x5bb678[_0xc54651(0x1f6)]({'cmd':b[_0xc54651(0x2b4)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xc54651(0x40c)]}]}});}[_0x2658a4(0x2ba)](_0x4488b1){const _0x1ca8f4=_0x2658a4;var _0x84874a;if(_0x4488b1[_0x1ca8f4(0x243)]===We['FAIL']){this[_0x1ca8f4(0x467)]['show']({'type':X[_0x1ca8f4(0x406)][_0x1ca8f4(0x575)],'content':this[_0x1ca8f4(0x1a5)]['t'](_0x1ca8f4(0x3ce))}),this[_0x1ca8f4(0x539)][_0x1ca8f4(0x460)](0x2);return;}this[_0x1ca8f4(0x539)][_0x1ca8f4(0x460)](0x3);const _0xe2d075=(_0x84874a=_0x4488b1[_0x1ca8f4(0x46e)][_0x1ca8f4(0x2e8)][this[_0x1ca8f4(0x40c)]])==null?void 0x0:_0x84874a[_0x1ca8f4(0x4fd)];_0xe2d075&&_0xe2d075['forEach'](_0x1c5676=>this[_0x1ca8f4(0x3f8)][_0x1ca8f4(0x564)](this['_unitID'],_0x1c5676));}[_0x2658a4(0x3e0)](_0x3627b6){const _0x2d88c4=_0x2658a4;try{const _0x1e84e0=_0x3627b6[_0x2d88c4(0x46e)];switch(_0x1e84e0[_0x2d88c4(0x44e)]){case _['CollaborationEvent'][_0x2d88c4(0x1d6)]:this[_0x2d88c4(0x5a3)](_0x1e84e0),this[_0x2d88c4(0x4c7)][_0x2d88c4(0x460)](_0x1e84e0);break;case _['CollaborationEvent'][_0x2d88c4(0x3b3)]:this[_0x2d88c4(0x20f)](_0x1e84e0),this['_event$'][_0x2d88c4(0x460)](_0x1e84e0);break;case _[_0x2d88c4(0x2d5)][_0x2d88c4(0x593)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this[_0x2d88c4(0x4c7)][_0x2d88c4(0x460)](_0x1e84e0);break;case _[_0x2d88c4(0x2d5)][_0x2d88c4(0x544)]:this[_0x2d88c4(0x3dd)][_0x2d88c4(0x2ad)](_0x2d88c4(0x297)+JSON[_0x2d88c4(0x427)](_0x1e84e0)),this[_0x2d88c4(0x4c7)]['next'](_0x1e84e0);break;case _['CollaborationEvent']['COMMENT_UPDATE']:this[_0x2d88c4(0x33a)]['onCommentUpdate'](_0x1e84e0['data']),this[_0x2d88c4(0x4c7)][_0x2d88c4(0x460)](_0x1e84e0);break;default:this['_event$'][_0x2d88c4(0x460)](_0x1e84e0);}}catch(_0x2a699a){this[_0x2d88c4(0x3dd)]['error'](_0x2a699a,_0x3627b6);}}['_onUserJoin'](_0xbccbb9){const _0x194add=_0x2658a4;this[_0x194add(0x3f8)]['updateMember'](this['_unitID'],_0xbccbb9[_0x194add(0x46e)]);}[_0x2658a4(0x20f)](_0x29a4f4){const _0x15e7bc=_0x2658a4;this[_0x15e7bc(0x3f8)][_0x15e7bc(0x503)](this[_0x15e7bc(0x40c)],_0x29a4f4[_0x15e7bc(0x46e)][_0x15e7bc(0x504)]);}async['send'](_0x4e64ba,_0x3b9b15){const _0xabde1a=_0x2658a4;if(this[_0xabde1a(0x5b1)]!==0x3||!this[_0xabde1a(0x545)])throw new Error(_0xabde1a(0x41a));try{_0x4e64ba['eventID']===_[_0xabde1a(0x2d5)][_0xabde1a(0x265)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0xabde1a(0x4f1)](_0x4e64ba)),this[_0xabde1a(0x545)][_0xabde1a(0x1f6)]({'cmd':b[_0xabde1a(0x5aa)],'routeKey':_0x3b9b15,'routeType':'','data':_0x4e64ba});}catch(_0x234e83){this[_0xabde1a(0x3dd)]['error'](_0x234e83);}}[_0x2658a4(0x2b2)](){const _0x15e652=_0x2658a4;var _0x196748;this['_collaborationTimeoutTimer']=window[_0x15e652(0x47d)](()=>{const _0x9aef8d=_0x15e652;this[_0x9aef8d(0x307)]=null,this[_0x9aef8d(0x467)]['show']({'type':X[_0x9aef8d(0x406)][_0x9aef8d(0x3c2)],'content':this[_0x9aef8d(0x1a5)]['t'](_0x9aef8d(0x38e))});},(_0x196748=this[_0x15e652(0x519)][_0x15e652(0x455)](Ve))!=null?_0x196748:St);}[_0x2658a4(0x4fc)](){const _0x48f344=_0x2658a4;this[_0x48f344(0x307)]&&(clearTimeout(this[_0x48f344(0x307)]),this['_collaborationTimeoutTimer']=null);}[_0x2658a4(0x4f1)](_0x1ea6a9){const _0x5661a0=_0x2658a4;if(!this[_0x5661a0(0x520)])return;const {data:_0x3309e4}=_0x1ea6a9,{unitID:_0x5d1da7,changeset:_0x453f}=_0x3309e4,{mutations:_0x419d3c,type:_0x328c63}=_0x453f;this[_0x5661a0(0x239)]={'unitId':_0x5d1da7,'type':_0x328c63,'startTime':performance[_0x5661a0(0x3bc)](),'stopTime':0x0,'duration':0x0,'size':as(_0x419d3c)};}[_0x2658a4(0x4f4)](){const _0x5bb8d7=_0x2658a4;if(this[_0x5bb8d7(0x520)]){if(!this[_0x5bb8d7(0x239)]){this[_0x5bb8d7(0x3dd)][_0x5bb8d7(0x2ad)]('[CollaborationSession]',_0x5bb8d7(0x225));return;}this['_telemetryInfo'][_0x5bb8d7(0x527)]=performance['now'](),this[_0x5bb8d7(0x239)]['duration']=this[_0x5bb8d7(0x239)][_0x5bb8d7(0x527)]-this['_telemetryInfo']['startTime'],this['_telemetryService']['capture'](os,this[_0x5bb8d7(0x239)]),this['_telemetryInfo']=null;}}[_0x2658a4(0x1ee)](){const _0x48aa1b=_0x2658a4;this[_0x48aa1b(0x239)]=null;}},exports[_0x2658a4(0x1aa)]=Ss([B(0x2,a['ILogService']),B(0x3,N[_0x2658a4(0x49c)]),B(0x4,N[_0x2658a4(0x305)]),B(0x5,a[_0x2658a4(0x35a)]),B(0x6,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),B(0x7,a[_0x2658a4(0x349)](q)),B(0x8,a[_0x2658a4(0x349)](Ge)),B(0x9,a[_0x2658a4(0x4a2)](Bt[_0x2658a4(0x57b)]))],exports['CollaborationSession']);function _0x5b2d(_0x55a785,_0x14ef62){const _0x1540bb=_0x1540();return _0x5b2d=function(_0x5b2dd0,_0x353b80){_0x5b2dd0=_0x5b2dd0-0x1a5;let _0x1eb9f5=_0x1540bb[_0x5b2dd0];return _0x1eb9f5;},_0x5b2d(_0x55a785,_0x14ef62);}var vs=Object[_0x2658a4(0x30c)],fs=Object['getOwnPropertyDescriptor'],gs=(_0x29de43,_0x877809,_0x3ecd06,_0x5b6397)=>{const _0x162051=_0x2658a4;for(var _0x554e65=_0x5b6397>0x1?void 0x0:_0x5b6397?fs(_0x877809,_0x3ecd06):_0x877809,_0x452715=_0x29de43[_0x162051(0x532)]-0x1,_0x388ca8;_0x452715>=0x0;_0x452715--)(_0x388ca8=_0x29de43[_0x452715])&&(_0x554e65=(_0x5b6397?_0x388ca8(_0x877809,_0x3ecd06,_0x554e65):_0x388ca8(_0x554e65))||_0x554e65);return _0x5b6397&&_0x554e65&&vs(_0x877809,_0x3ecd06,_0x554e65),_0x554e65;},Z=(_0x83e743,_0x1b8f0c)=>(_0x3ef485,_0x2d6b95)=>_0x1b8f0c(_0x3ef485,_0x2d6b95,_0x83e743);exports[_0x2658a4(0x4c6)]=class extends a['Disposable']{constructor(_0x5d2f1e,_0x1c25e0,_0x1fc6fb,_0x184a72,_0x295c08,_0x562133){const _0x2814ce=_0x2658a4;super(),d(this,_0x2814ce(0x465),new v['BehaviorSubject'](void 0x0)),d(this,_0x2814ce(0x1d9),this[_0x2814ce(0x465)][_0x2814ce(0x329)]()),d(this,_0x2814ce(0x39f),null),d(this,_0x2814ce(0x551),new Map()),d(this,_0x2814ce(0x303),new v['BehaviorSubject'](j['IDLE'])),d(this,_0x2814ce(0x3bd),this[_0x2814ce(0x303)][_0x2814ce(0x329)]()),d(this,_0x2814ce(0x405),!0x1),d(this,_0x2814ce(0x497)),d(this,_0x2814ce(0x321),0x0),d(this,_0x2814ce(0x548)),d(this,_0x2814ce(0x3a6)),(this[_0x2814ce(0x584)]=_0x5d2f1e,this[_0x2814ce(0x1a5)]=_0x1c25e0,this[_0x2814ce(0x467)]=_0x1fc6fb,this[_0x2814ce(0x3dd)]=_0x184a72,this[_0x2814ce(0x519)]=_0x295c08,this[_0x2814ce(0x3ab)]=_0x562133,this[_0x2814ce(0x411)]());}get[_0x2658a4(0x545)](){const _0x1e7228=_0x2658a4;return this[_0x1e7228(0x465)][_0x1e7228(0x4c1)]();}['_initEventListeners'](){const _0xe744ed=_0x2658a4;this[_0xe744ed(0x259)](),this[_0xe744ed(0x271)]();}['dispose'](){const _0x1cb7e6=_0x2658a4;super[_0x1cb7e6(0x3c3)](),this[_0x1cb7e6(0x551)][_0x1cb7e6(0x4ab)](_0xaf1312=>_0xaf1312[_0x1cb7e6(0x3c3)]()),this[_0x1cb7e6(0x551)][_0x1cb7e6(0x2ae)](),this['_status$'][_0x1cb7e6(0x431)]();}async['requireSession'](_0x51edc3){const _0x41262b=_0x2658a4;if(this[_0x41262b(0x551)][_0x41262b(0x304)](_0x51edc3))return this['_sessions']['get'](_0x51edc3);this[_0x41262b(0x413)]();const _0x25286a=this[_0x41262b(0x584)][_0x41262b(0x2d3)](exports[_0x41262b(0x1aa)],_0x51edc3,this[_0x41262b(0x465)][_0x41262b(0x329)]());return this[_0x41262b(0x551)][_0x41262b(0x2ce)](_0x51edc3,_0x25286a),_0x25286a;}[_0x2658a4(0x4b6)](_0x49237f){const _0x326b61=_0x2658a4;var _0x2654e1;const _0x377ee6=this[_0x326b61(0x551)][_0x326b61(0x3cc)](_0x49237f);_0x377ee6&&(this[_0x326b61(0x551)][_0x326b61(0x364)](_0x49237f),_0x377ee6[_0x326b61(0x537)]()),this[_0x326b61(0x551)]['size']||(_0x2654e1=this[_0x326b61(0x545)])==null||_0x2654e1[_0x326b61(0x537)]();}[_0x2658a4(0x381)](){const _0x4064e1=_0x2658a4;this['_retryCount']=0x0,this[_0x4064e1(0x497)]!=null&&(clearTimeout(this[_0x4064e1(0x497)]),this[_0x4064e1(0x497)]=null),this[_0x4064e1(0x32c)]();}['_createSocket'](){const _0x1afb33=_0x2658a4;var _0x3ae831,_0x555587;const _0x5f0708=this['_configService'][_0x1afb33(0x455)](ut),_0x378040=this['_configService'][_0x1afb33(0x455)](L),_0xf69722=(_0x555587=(_0x3ae831=_0x378040==null?void 0x0:_0x378040['collabWebSocketUrl'])!=null?_0x3ae831:_0x5f0708)!=null?_0x555587:Xt,_0x14cb75=this[_0x1afb33(0x3ab)][_0x1afb33(0x383)](_0xf69722);return this[_0x1afb33(0x39f)]=_0x14cb75,_0x14cb75;}[_0x2658a4(0x413)](){const _0x325b80=_0x2658a4;var _0x135254,_0x4aeb88;try{const _0x455627=(_0x4aeb88=(_0x135254=this[_0x325b80(0x545)])!=null?_0x135254:this[_0x325b80(0x39f)])!=null?_0x4aeb88:this[_0x325b80(0x1fe)]();if(_0x455627){const _0x5d6d4a=_0x455627[_0x325b80(0x1f6)];_0x455627[_0x325b80(0x1f6)]=_0x319ac0=>(this[_0x325b80(0x324)](),_0x5d6d4a[_0x325b80(0x4b8)](_0x455627,[_0x319ac0])),_0x455627[_0x325b80(0x343)][_0x325b80(0x2a3)](_0x5104ea=>this[_0x325b80(0x3d6)](_0x455627,_0x5104ea)),_0x455627['error$'][_0x325b80(0x348)](E[_0x325b80(0x3f5)](0x1))['subscribe'](_0x3949d2=>this['_logService'][_0x325b80(0x2ad)]('[CollaborationSessionService]:\x20socket\x20error',_0x3949d2)),_0x455627['open$'][_0x325b80(0x348)](E['take'](0x1))['subscribe'](()=>{const _0xc26a10=_0x325b80;this[_0xc26a10(0x4d4)](_0x455627);}),_0x455627[_0x325b80(0x226)][_0x325b80(0x348)](E[_0x325b80(0x3f5)](0x1))[_0x325b80(0x2a3)](_0x34152c=>{const _0x38f332=_0x325b80;this[_0x38f332(0x3dd)][_0x38f332(0x4b0)](_0x38f332(0x4aa),_0x38f332(0x255),_0x34152c),this[_0x38f332(0x41b)]();});}}catch(_0x565c67){this[_0x325b80(0x3dd)][_0x325b80(0x2ad)](_0x565c67),this[_0x325b80(0x41b)]();}}[_0x2658a4(0x4d4)](_0x38feaf){const _0x339af2=_0x2658a4;this[_0x339af2(0x3dd)][_0x339af2(0x4b0)](_0x339af2(0x4aa),_0x339af2(0x416)),_0x38feaf[_0x339af2(0x1f6)]({'cmd':b[_0x339af2(0x2c6)]}),this[_0x339af2(0x324)]();}[_0x2658a4(0x259)](){const _0x5b6759=_0x2658a4;window[_0x5b6759(0x4ad)](_0x5b6759(0x37b),()=>this[_0x5b6759(0x4a4)]());}[_0x2658a4(0x4a4)](){const _0x26f271=_0x2658a4;this[_0x26f271(0x405)]=!0x1,this['_candidateSocket']=null,this[_0x26f271(0x303)][_0x26f271(0x460)](j[_0x26f271(0x1fc)]),this[_0x26f271(0x465)][_0x26f271(0x460)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}[_0x2658a4(0x41b)](){const _0x2e35d3=_0x2658a4;var _0x36f895;this[_0x2e35d3(0x4a4)](),this[_0x2e35d3(0x321)]<((_0x36f895=this[_0x2e35d3(0x519)][_0x2e35d3(0x455)](vt))!=null?_0x36f895:Jt)?(this[_0x2e35d3(0x467)]['show']({'key':_0x2e35d3(0x391),'type':X[_0x2e35d3(0x406)][_0x2e35d3(0x575)],'content':this[_0x2e35d3(0x1a5)]['t']('session.will-retry')}),this[_0x2e35d3(0x32c)]()):this['_messageService'][_0x2e35d3(0x50d)]({'key':'collaboration-session-retry','type':X[_0x2e35d3(0x406)][_0x2e35d3(0x3c2)],'content':this['_localeService']['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x280263=_0x2658a4,_0x4b853f=()=>{const _0x41d5ba=_0x5b2d;this[_0x41d5ba(0x545)]||this[_0x41d5ba(0x381)]();},_0xbfe1e3=()=>{const _0x14b943=_0x5b2d;this[_0x14b943(0x545)]||document[_0x14b943(0x29d)]==='hidden'||this[_0x14b943(0x381)]();};window[_0x280263(0x4ad)](_0x280263(0x36e),_0x4b853f),document[_0x280263(0x4ad)](_0x280263(0x34e),_0xbfe1e3);}[_0x2658a4(0x32c)](){const _0x3e1be3=_0x2658a4;var _0x57d445;const _0x12331a=this[_0x3e1be3(0x321)],_0x9e18e2=this[_0x3e1be3(0x519)][_0x3e1be3(0x455)](L),_0x2b2834=_0x12331a===0x0?0x0:((_0x57d445=_0x9e18e2==null?void 0x0:_0x9e18e2[_0x3e1be3(0x3f7)])!=null?_0x57d445:zt)*0x2**_0x12331a;this[_0x3e1be3(0x497)]=window[_0x3e1be3(0x47d)](()=>{const _0x4447a3=_0x3e1be3;clearTimeout(this[_0x4447a3(0x497)]),this[_0x4447a3(0x497)]=null,this['_tryEnsureSocket']();},_0x2b2834),this[_0x3e1be3(0x321)]+=0x1;}['_onMessage'](_0x3ceaa0,_0x3e6b90){const _0x18eec2=_0x2658a4,{cmd:_0x19e85c}=_0x3e6b90;_0x19e85c===b[_0x18eec2(0x2c6)]&&!this[_0x18eec2(0x405)]&&(_0x3ceaa0[_0x18eec2(0x504)]=_0x3e6b90['data']['memberID'],this[_0x18eec2(0x465)][_0x18eec2(0x460)](_0x3ceaa0),this[_0x18eec2(0x303)][_0x18eec2(0x460)](j['ONLINE']),this['_socketReady']=!0x0,this[_0x18eec2(0x39f)]=null),_0x19e85c===b[_0x18eec2(0x1d5)]&&this[_0x18eec2(0x1b5)](),this['_rescheduleHeartbeat']();}[_0x2658a4(0x324)](){const _0x140339=_0x2658a4;var _0x4fedb1;this[_0x140339(0x4a1)](),this[_0x140339(0x548)]=window[_0x140339(0x47d)](()=>this[_0x140339(0x518)](),(_0x4fedb1=this['_configService']['getConfig'](dt))!=null?_0x4fedb1:qt);}[_0x2658a4(0x518)](){const _0x24e1a5=_0x2658a4;this[_0x24e1a5(0x545)][_0x24e1a5(0x1f6)]({'cmd':b['HEARTBEAT']}),this[_0x24e1a5(0x1c4)]();}[_0x2658a4(0x1c4)](){const _0x4418fe=_0x2658a4;var _0x3167c5;this['_timeoutTimer']=window[_0x4418fe(0x47d)](()=>this[_0x4418fe(0x41b)](),(_0x3167c5=this['_configService']['getConfig'](Ve))!=null?_0x3167c5:St);}[_0x2658a4(0x4a1)](){const _0x238d4a=_0x2658a4;this[_0x238d4a(0x548)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x2658a4(0x1b5)](){const _0x4b4fe4=_0x2658a4;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x4b4fe4(0x3a6)]),this[_0x4b4fe4(0x3a6)]=null);}},exports['CollaborationSessionService']=gs([Z(0x0,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),Z(0x1,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),Z(0x2,N[_0x2658a4(0x305)]),Z(0x3,a[_0x2658a4(0x2f2)]),Z(0x4,a[_0x2658a4(0x35a)]),Z(0x5,Fe)],exports[_0x2658a4(0x4c6)]);var ms=Object['defineProperty'],Is=Object[_0x2658a4(0x222)],ps=(_0x2af906,_0x1dfc6d,_0x4fa125,_0x40c880)=>{for(var _0xc287b7=_0x40c880>0x1?void 0x0:_0x40c880?Is(_0x1dfc6d,_0x4fa125):_0x1dfc6d,_0x5f54b2=_0x2af906['length']-0x1,_0x25be60;_0x5f54b2>=0x0;_0x5f54b2--)(_0x25be60=_0x2af906[_0x5f54b2])&&(_0xc287b7=(_0x40c880?_0x25be60(_0x1dfc6d,_0x4fa125,_0xc287b7):_0x25be60(_0xc287b7))||_0xc287b7);return _0x40c880&&_0xc287b7&&ms(_0x1dfc6d,_0x4fa125,_0xc287b7),_0xc287b7;},ye=(_0x771b6b,_0x173e5f)=>(_0x2cf95d,_0x2d810e)=>_0x173e5f(_0x2cf95d,_0x2d810e,_0x771b6b);let Ie=class{constructor(_0x2bdc8f,_0x4768c1,_0x21ae9a){const _0x5b8e15=_0x2658a4;this[_0x5b8e15(0x584)]=_0x2bdc8f,this[_0x5b8e15(0x3c8)]=_0x4768c1,this[_0x5b8e15(0x3c1)]=_0x21ae9a;}[_0x2658a4(0x29f)](_0x288b50){const _0x20d010=_0x2658a4;this['_transformUndoRedoStack'](_0x288b50),this[_0x20d010(0x32d)](_0x288b50);}[_0x2658a4(0x429)](_0x2843f3){const _0x4b8282=_0x2658a4,{unitID:_0x3a67fd}=_0x2843f3,_0x581df7=this[_0x4b8282(0x3c1)][_0x4b8282(0x376)](_0x3a67fd)['with'](w[_0x4b8282(0x4a3)]),{redoCache:_0x2c62b6}=_0x581df7['getUndoRedoMutationParamsCache']();if(_0x2c62b6[_0x4b8282(0x532)]===0x0)return _0x2843f3;let _0x11c76e=a[_0x4b8282(0x2d0)][_0x4b8282(0x4b2)](_0x2843f3[_0x4b8282(0x1ad)][0x0]);for(let _0x1d83d1=0x0;_0x1d83d1<_0x2c62b6['length'];_0x1d83d1++){const _0x5d71ca={'id':_0x4b8282(0x4fa),'params':{..._0x2c62b6[_0x1d83d1]}},_0x4c9bb0=this[_0x4b8282(0x3c8)][_0x4b8282(0x317)](_0x11c76e,_0x5d71ca,!0x1);if(_[_0x4b8282(0x1cf)](_0x4c9bb0))throw _0x4c9bb0[_0x4b8282(0x2ad)];_0x11c76e=_0x4c9bb0['m1Prime'];}return{...a[_0x4b8282(0x2d0)][_0x4b8282(0x4b2)](_0x2843f3),'mutations':[_0x11c76e]};}[_0x2658a4(0x445)](_0xfbc7fc){const _0x2d361e=_0x2658a4,{unitID:_0x55bcd5}=_0xfbc7fc,_0x30d703=this[_0x2d361e(0x3c1)][_0x2d361e(0x376)](_0x55bcd5)[_0x2d361e(0x35e)](w['DocIMEInputManagerService']),{undoCache:_0x3fbf0f,redoCache:_0xfd0e4f}=_0x30d703[_0x2d361e(0x236)]();if(_0x3fbf0f[_0x2d361e(0x532)]===0x0||_0xfd0e4f['length']===0x0)return;const _0x2e5758=[],_0x491a0f=[];let _0x3fe305=a[_0x2d361e(0x2d0)][_0x2d361e(0x4b2)](_0xfbc7fc[_0x2d361e(0x1ad)][0x0]),_0x136dbb=a[_0x2d361e(0x2d0)][_0x2d361e(0x4b2)](_0xfbc7fc[_0x2d361e(0x1ad)][0x0]);for(let _0x41bfd3=_0x3fbf0f[_0x2d361e(0x532)]-0x1;_0x41bfd3>=0x0;_0x41bfd3--){const _0x3d7fd2={'id':_0x2d361e(0x4fa),'params':{..._0x3fbf0f[_0x41bfd3]}},_0xbca142={'id':_0x2d361e(0x4fa),'params':{..._0xfd0e4f[_0x41bfd3]}},_0x3a78b7=this[_0x2d361e(0x3c8)][_0x2d361e(0x317)](_0x3fe305,_0x3d7fd2,!0x1),_0x5971ee=this[_0x2d361e(0x3c8)][_0x2d361e(0x317)](_0x136dbb,_0xbca142,!0x1);if(_[_0x2d361e(0x1cf)](_0x3a78b7))throw _0x3a78b7[_0x2d361e(0x2ad)];if(_['isTransformMutationFailure'](_0x5971ee))throw _0x5971ee[_0x2d361e(0x2ad)];_0x2e5758[_0x2d361e(0x1cd)](_0x3a78b7[_0x2d361e(0x1b9)][_0x2d361e(0x415)]),_0x491a0f[_0x2d361e(0x1cd)](_0x5971ee[_0x2d361e(0x1b9)][_0x2d361e(0x415)]),_0x3fe305=_0x3a78b7[_0x2d361e(0x477)],_0x136dbb=_0x5971ee[_0x2d361e(0x477)];}_0x30d703[_0x2d361e(0x28e)]({'undoCache':_0x2e5758,'redoCache':_0x491a0f});}[_0x2658a4(0x32d)](_0x492b85){const _0x422ca6=_0x2658a4,{unitID:_0x5d01e2}=_0x492b85,_0x86e1be=this[_0x422ca6(0x3c1)]['getRenderById'](_0x5d01e2)[_0x422ca6(0x35e)](w['DocIMEInputManagerService']),_0x4bf5f2=_0x86e1be['getActiveRange']();if(_0x4bf5f2==null)return;const _0x43770d=[{'id':_0x422ca6(0x4fa),'params':{'unitId':_0x492b85['unitID'],'actions':null,'textRanges':[_0x4bf5f2]}}],_0x56fcb6=this[_0x422ca6(0x3c8)][_0x422ca6(0x554)](_0x492b85,_0x43770d);if(!_[_0x422ca6(0x580)](_0x56fcb6))throw _0x56fcb6[_0x422ca6(0x2ad)];const _0x373393=_0x56fcb6[_0x422ca6(0x1b9)][0x0][_0x422ca6(0x415)]['textRanges'];Array[_0x422ca6(0x2f6)](_0x373393)&&_0x373393[_0x422ca6(0x532)]&&_0x86e1be[_0x422ca6(0x2f4)](_0x373393[0x0]);}};Ie=ps([ye(0x0,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),ye(0x1,_['ITransformService']),ye(0x2,R['IRenderManagerService'])],Ie);var Cs=Object[_0x2658a4(0x30c)],Es=Object[_0x2658a4(0x222)],bs=(_0x57dfc7,_0x1b0cb9,_0x49d8ff,_0x57bf8f)=>{const _0x8e4570=_0x2658a4;for(var _0x3fdb3b=_0x57bf8f>0x1?void 0x0:_0x57bf8f?Es(_0x1b0cb9,_0x49d8ff):_0x1b0cb9,_0x24c7c4=_0x57dfc7[_0x8e4570(0x532)]-0x1,_0x4af859;_0x24c7c4>=0x0;_0x24c7c4--)(_0x4af859=_0x57dfc7[_0x24c7c4])&&(_0x3fdb3b=(_0x57bf8f?_0x4af859(_0x1b0cb9,_0x49d8ff,_0x3fdb3b):_0x4af859(_0x3fdb3b))||_0x3fdb3b);return _0x57bf8f&&_0x3fdb3b&&Cs(_0x1b0cb9,_0x49d8ff,_0x3fdb3b),_0x3fdb3b;},ae=(_0x542444,_0x5ea65b)=>(_0x206703,_0x1d34ee)=>_0x5ea65b(_0x206703,_0x1d34ee,_0x542444);exports[_0x2658a4(0x20c)]=class extends a[_0x2658a4(0x1df)]{constructor(_0x1a5cfa,_0x278a8c,_0x3c674a,_0xeacc79,_0x300e1b){const _0x28d061=_0x2658a4;super(),d(this,_0x28d061(0x432),new Map()),d(this,_0x28d061(0x263),new Map()),d(this,_0x28d061(0x447),!0x1),(this[_0x28d061(0x519)]=_0x1a5cfa,this[_0x28d061(0x4dd)]=_0x278a8c,this['_beforeCloseService']=_0x3c674a,this['_localeService']=_0xeacc79,this[_0x28d061(0x2ac)]=_0x300e1b,this[_0x28d061(0x50a)]());}[_0x2658a4(0x1ba)](){const _0x1173b7=_0x2658a4;this[_0x1173b7(0x447)]=!0x0;}[_0x2658a4(0x268)](){const _0x1532b9=_0x2658a4;this[_0x1532b9(0x447)]=!0x1;}[_0x2658a4(0x3c3)](){const _0x2e899c=_0x2658a4;this[_0x2e899c(0x308)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x10b305){const _0x329f97=_0x2658a4;return this[_0x329f97(0x447)]?null:this['_localStorageService']['getItem'](Qe(_0x10b305));}async[_0x2658a4(0x260)](_0x139474,_0x4d2816){const _0x54480c=_0x2658a4;return!!this[_0x54480c(0x4dd)][_0x54480c(0x200)](_0x139474,_0x4d2816);}['updateOfflineData'](_0x26e8f0,_0x35de4f,_0x7e564c,_0x25fb15){const _0x9005b0=_0x2658a4,_0x48e75e=this[_0x9005b0(0x2ac)][_0x9005b0(0x2e7)](_0x26e8f0);this['_cachedData'][_0x9005b0(0x2ce)](_0x26e8f0,{'unitID':_0x26e8f0,'type':_0x35de4f,'awaitingChangeset':_0x7e564c,'mutations':_0x25fb15,'rev':_0x48e75e}),this['_saveTaskMap'][_0x9005b0(0x304)](_0x26e8f0)||this[_0x9005b0(0x210)](_0x26e8f0);}[_0x2658a4(0x210)](_0x1adc42){const _0x11f18c=_0x2658a4,_0x481cfc=this[_0x11f18c(0x215)]();_0x481cfc===0x0?this[_0x11f18c(0x3fc)](_0x1adc42):this[_0x11f18c(0x263)]['set'](_0x1adc42,setTimeout(()=>this[_0x11f18c(0x3fc)](_0x1adc42),_0x481cfc));}['_getSaveTimeout'](){const _0x1f8589=_0x2658a4;var _0x2ab160;return(_0x2ab160=this[_0x1f8589(0x519)]['getConfig'](ft))!=null?_0x2ab160:Zt;}[_0x2658a4(0x3fc)](_0x5db5ba){const _0x364aa9=_0x2658a4,_0x13f163=this[_0x364aa9(0x263)][_0x364aa9(0x3cc)](_0x5db5ba);return _0x13f163!==void 0x0&&window[_0x364aa9(0x587)](_0x13f163),this[_0x364aa9(0x4dd)][_0x364aa9(0x200)](Qe(_0x5db5ba),this[_0x364aa9(0x432)][_0x364aa9(0x3cc)](_0x5db5ba))[_0x364aa9(0x451)](()=>this['_saveTaskMap'][_0x364aa9(0x364)](_0x5db5ba));}async[_0x2658a4(0x308)](){const _0x5ece43=_0x2658a4,_0x1e29ce=[];this[_0x5ece43(0x263)]['forEach']((_0x6760ae,_0x3d5806)=>{const _0x396b41=_0x5ece43;window[_0x396b41(0x587)](_0x6760ae),_0x1e29ce[_0x396b41(0x4d7)](this['_saveCache'](_0x3d5806)[_0x396b41(0x451)](()=>{const _0x51d057=_0x396b41;this['_saveTaskMap'][_0x51d057(0x364)](_0x3d5806);}));}),await Promise[_0x5ece43(0x322)](_0x1e29ce);}[_0x2658a4(0x50a)](){const _0x23363b=_0x2658a4;this[_0x23363b(0x2f0)](this[_0x23363b(0x232)][_0x23363b(0x4c9)](()=>{const _0x412c3b=_0x23363b;if(this[_0x412c3b(0x263)][_0x412c3b(0x357)])return this[_0x412c3b(0x1a5)]['t'](_0x412c3b(0x4ec));}));}},exports[_0x2658a4(0x20c)]=bs([ae(0x0,a[_0x2658a4(0x35a)]),ae(0x1,a[_0x2658a4(0x2d6)]),ae(0x2,N[_0x2658a4(0x49c)]),ae(0x3,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),ae(0x4,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)]))],exports[_0x2658a4(0x20c)]);function Qe(_0x116a58){const _0x149124=_0x2658a4;return _0x149124(0x483)+_0x116a58;}var Ts=Object[_0x2658a4(0x30c)],Rs=Object[_0x2658a4(0x222)],Os=(_0x589a79,_0x13590e,_0x158f9c,_0x4950e0)=>{for(var _0x47897f=_0x4950e0>0x1?void 0x0:_0x4950e0?Rs(_0x13590e,_0x158f9c):_0x13590e,_0x58ab34=_0x589a79['length']-0x1,_0x58e90a;_0x58ab34>=0x0;_0x58ab34--)(_0x58e90a=_0x589a79[_0x58ab34])&&(_0x47897f=(_0x4950e0?_0x58e90a(_0x13590e,_0x158f9c,_0x47897f):_0x58e90a(_0x47897f))||_0x47897f);return _0x4950e0&&_0x47897f&&Ts(_0x13590e,_0x158f9c,_0x47897f),_0x47897f;},Ue=(_0x32b25b,_0x2a482d)=>(_0x4899c3,_0x31ea92)=>_0x2a482d(_0x4899c3,_0x31ea92,_0x32b25b);function Ds(_0x12ccd8){const _0x30a06c=_0x2658a4,{unitID:_0x28c6fa,mutations:_0xe0393b}=_0x12ccd8;return{'unitId':_0x28c6fa,'subUnitId':_0xe0393b[0x0][_0x30a06c(0x415)][_0x30a06c(0x28b)]};}let pe=class{constructor(_0xc225e8,_0x16ea7f,_0xa3e046){const _0x133f6d=_0x2658a4;this[_0x133f6d(0x584)]=_0xc225e8,this[_0x133f6d(0x3c8)]=_0x16ea7f,this[_0x133f6d(0x46f)]=_0xa3e046;}['transformSelections'](_0x2f9eec){const _0x3781c9=_0x2658a4;var _0x4eb66a,_0x267138,_0x4addcc,_0x1fa015;const _0x537fd6=this[_0x3781c9(0x584)]['get'](C[_0x3781c9(0x4e6)]),{unitId:_0x2c3c5a,subUnitId:_0x4ed138}=Ds(_0x2f9eec),_0x2ce545=_0x537fd6[_0x3781c9(0x55d)](_0x2c3c5a)['getCurrentSelections'](),_0x5e59a9=(_0x267138=(_0x4eb66a=this[_0x3781c9(0x46f)]['getUnit'](_0x2c3c5a))==null?void 0x0:_0x4eb66a['getActiveSheet']())==null?void 0x0:_0x267138[_0x3781c9(0x33b)]();if(_0x2ce545[_0x3781c9(0x532)]===0x0||!_0x2c3c5a||!_0x4ed138)return;const _0x23edb7=[{'id':C[_0x3781c9(0x51e)]['id'],'params':{'unitId':_0x2c3c5a,'subUnitId':_0x5e59a9,'selections':a[_0x3781c9(0x2d0)][_0x3781c9(0x4b2)](_0x2ce545)}}],_0x21425d=this['_transformService']['transformMutationsWithChangeset'](_0x2f9eec,_0x23edb7);if(!_[_0x3781c9(0x580)](_0x21425d))throw _0x21425d[_0x3781c9(0x2ad)];const _0x3f3177=(_0x1fa015=(_0x4addcc=_0x21425d[_0x3781c9(0x1b9)][0x0])==null?void 0x0:_0x4addcc['params'])==null?void 0x0:_0x1fa015[_0x3781c9(0x30e)];Array[_0x3781c9(0x2f6)](_0x3f3177)&&_0x3f3177['length']&&this[_0x3781c9(0x584)][_0x3781c9(0x3cc)](a[_0x3781c9(0x2db)])[_0x3781c9(0x4ea)](C[_0x3781c9(0x51e)]['id'],{'unitId':_0x2c3c5a,'subUnitId':_0x5e59a9,'selections':_0x3f3177});}};pe=Os([Ue(0x0,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),Ue(0x1,_[_0x2658a4(0x334)]),Ue(0x2,a['IUniverInstanceService'])],pe);const Te=a['createIdentifier'](_0x2658a4(0x1a8));var bt=(_0x1cd6de=>(_0x1cd6de[_0x1cd6de['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2658a4(0x410),_0x1cd6de[_0x1cd6de[_0x2658a4(0x31d)]=0x1]=_0x2658a4(0x31d),_0x1cd6de))(bt||{});const et=0x7530,tt=_0x2658a4(0x56e);class ys extends a[_0x2658a4(0x1df)]{constructor(){const _0x1ce622=_0x2658a4;super(),d(this,_0x1ce622(0x42e),a[_0x1ce622(0x2d0)]['generateRandomId']()),d(this,'_selfUnitIDs',new Set()),d(this,_0x1ce622(0x538),new Map()),d(this,_0x1ce622(0x3b6),null),d(this,'_clearOtherTimers',new Map()),d(this,_0x1ce622(0x45a),new Map()),this['_init']();}[_0x2658a4(0x3c3)](){const _0x5e0013=_0x2658a4;super[_0x5e0013(0x3c3)](),this['_clearOtherTimers'][_0x5e0013(0x4ab)]((_0x102ca4,_0x8b5d01)=>this[_0x5e0013(0x24d)](_0x8b5d01)),this[_0x5e0013(0x3b6)]&&window['clearInterval'](this[_0x5e0013(0x3b6)]);}[_0x2658a4(0x3c9)](_0x380cf8){const _0x410100=_0x2658a4;return this[_0x410100(0x21f)](_0x380cf8)[_0x410100(0x348)](v[_0x410100(0x507)]());}[_0x2658a4(0x221)](_0xfd78b8){const _0x2df175=_0x2658a4;this[_0x2df175(0x5b3)]['size']===0x0&&this[_0x2df175(0x56d)](),this[_0x2df175(0x5b3)][_0x2df175(0x463)](_0xfd78b8),this[_0x2df175(0x2ea)]({'type':0x0,'memberID':this[_0x2df175(0x42e)],'unitIDs':[_0xfd78b8],'isForwarded':!0x1});}['disposeUnit'](_0x46f6cf){const _0x211c58=_0x2658a4;this[_0x211c58(0x5b3)][_0x211c58(0x364)](_0x46f6cf),this['_selfUnitIDs']['size']===0x0&&this[_0x211c58(0x3b6)]&&window[_0x211c58(0x3af)](this[_0x211c58(0x3b6)]);}['_init'](){const _0x266678=_0x2658a4;this['disposeWithMe'](a['toDisposable'](v[_0x266678(0x1cb)](window,'storage')[_0x266678(0x2a3)](_0x2b1a85=>{const _0x5f5c2d=_0x266678;if(_0x2b1a85[_0x5f5c2d(0x337)]!==tt||!_0x2b1a85[_0x5f5c2d(0x289)])return;const _0x21a040=JSON[_0x5f5c2d(0x529)](_0x2b1a85[_0x5f5c2d(0x289)]);this[_0x5f5c2d(0x502)](_0x21a040);}))),window[_0x266678(0x4ad)](_0x266678(0x283),()=>this['_send']({'type':0x1,'memberID':this[_0x266678(0x42e)],'unitIDs':Array[_0x266678(0x58c)](this[_0x266678(0x5b3)])}));}[_0x2658a4(0x502)](_0x3692be){const _0xdb8fd5=_0x2658a4;switch(_0x3692be[_0xdb8fd5(0x2aa)]){case 0x0:this['_handleJoinEvent'](_0x3692be);break;case 0x1:this['_handleLeaveEvent'](_0x3692be);break;case 0x2:this[_0xdb8fd5(0x2d7)](_0x3692be);break;}}['_handleJoinEvent'](_0x2a2ea9){const _0x123b53=_0x2658a4,{unitIDs:_0x3d067a,memberID:_0x4e16c3,isForwarded:_0x4c06fb}=_0x2a2ea9;_0x3d067a[_0x123b53(0x4ab)](_0x32b4c8=>{const _0x48a057=_0x123b53;if(!_0x4c06fb&&this[_0x48a057(0x538)]['has'](_0x32b4c8)&&this[_0x48a057(0x21f)](_0x32b4c8)['next'](0x1),!this['_unitOnClients']['has'](_0x32b4c8)||!this[_0x48a057(0x538)][_0x48a057(0x3cc)](_0x32b4c8)[_0x48a057(0x304)](_0x4e16c3)){const _0x1887aa=this['_unitOnClients'][_0x48a057(0x3cc)](_0x32b4c8)||new Set();_0x1887aa[_0x48a057(0x463)](_0x4e16c3),this[_0x48a057(0x538)]['set'](_0x32b4c8,_0x1887aa),this[_0x48a057(0x22f)](_0x4e16c3);}}),_0x4c06fb||this[_0x123b53(0x2ea)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x123b53(0x5b3)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x17f4d6){const _0x535ad0=_0x2658a4;this[_0x535ad0(0x24d)](_0x17f4d6);const _0x27171e=window[_0x535ad0(0x47d)](()=>{const _0x5040c9=_0x535ad0;this[_0x5040c9(0x538)][_0x5040c9(0x4ab)](_0xc0a361=>{const _0x4513b5=_0x5040c9;_0xc0a361[_0x4513b5(0x364)](_0x17f4d6);});},et*0x2);this[_0x535ad0(0x40e)][_0x535ad0(0x2ce)](_0x17f4d6,_0x27171e);}['_removeClearOtherTimer'](_0x2ed35d){const _0x38fb6d=_0x2658a4;if(this['_clearOtherTimers'][_0x38fb6d(0x304)](_0x2ed35d)){const _0x1293f2=this[_0x38fb6d(0x40e)][_0x38fb6d(0x3cc)](_0x2ed35d);_0x1293f2&&window[_0x38fb6d(0x587)](_0x1293f2),this[_0x38fb6d(0x40e)][_0x38fb6d(0x2ce)](_0x2ed35d,null);}}['_handleLeaveEvent'](_0x4ebb4b){const _0x3385cf=_0x2658a4,{memberID:_0x28c065,unitIDs:_0x5cd15f}=_0x4ebb4b;_0x5cd15f['forEach'](_0x10e505=>{const _0x8ec5d5=_0x5b2d;var _0x5b3253;const _0x2d967d=this[_0x8ec5d5(0x538)][_0x8ec5d5(0x3cc)](_0x10e505);_0x2d967d&&(_0x2d967d[_0x8ec5d5(0x364)](_0x28c065),(_0x5b3253=this[_0x8ec5d5(0x21f)](_0x10e505))==null||_0x5b3253[_0x8ec5d5(0x460)](_0x2d967d[_0x8ec5d5(0x357)]===0x0?0x0:0x1));}),this[_0x3385cf(0x24d)](_0x28c065);}['_handleHeartbeatEvent'](_0x1ef4a5){const _0x44a3c7=_0x2658a4;this[_0x44a3c7(0x22f)](_0x1ef4a5[_0x44a3c7(0x504)]);}[_0x2658a4(0x2ea)](_0x1be6e8){const _0x57f247=_0x2658a4;localStorage[_0x57f247(0x200)](tt,JSON[_0x57f247(0x427)](_0x1be6e8));}[_0x2658a4(0x56d)](){const _0x584668=_0x2658a4;this[_0x584668(0x3b6)]=window[_0x584668(0x2dd)](()=>{const _0x5c4a15=_0x584668;this['_send']({'type':0x2,'memberID':this[_0x5c4a15(0x42e)]});},et);}['_ensureSubject'](_0x3aa8f0){const _0x58147a=_0x2658a4;return this[_0x58147a(0x45a)]['has'](_0x3aa8f0)||this[_0x58147a(0x45a)][_0x58147a(0x2ce)](_0x3aa8f0,new v[(_0x58147a(0x58a))](0x0)),this[_0x58147a(0x45a)][_0x58147a(0x3cc)](_0x3aa8f0);}}function Tt(_0x2ea46f){const _0x7bf28a=_0x2658a4;let _0x3e5018='';for(const _0xfd7105 of _0x2ea46f){const {startOffset:_0x55947d,endOffset:_0x4c5d7a,isActive:_0xe3d507}=_0xfd7105;_0x3e5018[_0x7bf28a(0x532)]&&(_0x3e5018+=','),_0x3e5018+=_0x55947d+':'+_0x4c5d7a+':'+(_0xe3d507?'1':'0');}return _0x3e5018;}function Us(_0x410b54){const _0x1ab974=_0x2658a4,_0x829f9b=_0x410b54[_0x1ab974(0x350)](','),_0x2b6c73=[];for(const _0x3a3248 of _0x829f9b){const [_0x345dc9,_0x557458,_0x178bfa]=_0x3a3248[_0x1ab974(0x350)](':');_0x2b6c73[_0x1ab974(0x4d7)]({'startOffset':Number(_0x345dc9),'endOffset':Number(_0x557458),'collapsed':_0x345dc9===_0x557458,'isActive':_0x178bfa==='1'});}return _0x2b6c73['some'](_0x5669e2=>_0x5669e2[_0x1ab974(0x1ac)])||(_0x2b6c73[0x0]['isActive']=!0x0),_0x2b6c73;}class Ye extends a['RxDisposable']{constructor(){const _0x3ba970=_0x2658a4;super(...arguments),d(this,_0x3ba970(0x56f),new v[(_0x3ba970(0x58a))](null)),d(this,'collabCursorState$',this[_0x3ba970(0x56f)][_0x3ba970(0x329)]());}[_0x2658a4(0x2c3)](_0x256cff){const _0x2c5d93=_0x2658a4,{unitID:_0x1c5424,memberID:_0x128a2a,textRanges:_0xb00216}=_0x256cff,_0x2d2d58=Tt(_0xb00216),_0x35e80={'unitID':_0x1c5424,'memberID':_0x128a2a,'selection':_0x2d2d58};this[_0x2c5d93(0x56f)][_0x2c5d93(0x460)](_0x35e80);}}var Ps=Object[_0x2658a4(0x30c)],ws=Object['getOwnPropertyDescriptor'],Ms=(_0x3a1b2a,_0x22502d,_0x54fb1f,_0x325ee0)=>{const _0x29459b=_0x2658a4;for(var _0x4e27f1=_0x325ee0>0x1?void 0x0:_0x325ee0?ws(_0x22502d,_0x54fb1f):_0x22502d,_0x550507=_0x3a1b2a[_0x29459b(0x532)]-0x1,_0x7b8126;_0x550507>=0x0;_0x550507--)(_0x7b8126=_0x3a1b2a[_0x550507])&&(_0x4e27f1=(_0x325ee0?_0x7b8126(_0x22502d,_0x54fb1f,_0x4e27f1):_0x7b8126(_0x4e27f1))||_0x4e27f1);return _0x325ee0&&_0x4e27f1&&Ps(_0x22502d,_0x54fb1f,_0x4e27f1),_0x4e27f1;},st=(_0xdbbec6,_0x2baadb)=>(_0x1e6e32,_0x3b0a65)=>_0x2baadb(_0x1e6e32,_0x3b0a65,_0xdbbec6);let Ce=class{constructor(_0x1a22e2,_0x283ab8){const _0x51354c=_0x2658a4;this['_injector']=_0x1a22e2,this[_0x51354c(0x3c8)]=_0x283ab8;}['transformSelections'](_0x2ab18a){const _0x22eb16=_0x2658a4;var _0x29ceba;const _0x1efc3c=this[_0x22eb16(0x584)]['get'](V[_0x22eb16(0x24c)]),_0x141db2=(_0x29ceba=_0x1efc3c[_0x22eb16(0x499)]())!=null?_0x29ceba:[];if(_0x141db2[_0x22eb16(0x532)]===0x0)return;const _0x12fc76=[{'id':_0x22eb16(0x4fa),'params':{'unitId':_0x2ab18a[_0x22eb16(0x35d)],'actions':null,'textRanges':_0x141db2}}],_0x2a8a2a=this['_transformService'][_0x22eb16(0x554)](_0x2ab18a,_0x12fc76);if(!_['isTransformMutationsWithChangesetSuccess'](_0x2a8a2a))throw _0x2a8a2a['error'];const _0x962401=_0x2a8a2a[_0x22eb16(0x1b9)][0x0][_0x22eb16(0x415)][_0x22eb16(0x531)];Array['isArray'](_0x962401)&&_0x962401[_0x22eb16(0x532)]&&_0x1efc3c[_0x22eb16(0x471)](_0x962401,!0x1);}};Ce=Ms([st(0x0,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),st(0x1,_[_0x2658a4(0x334)])],Ce);const Ns=new Set([C[_0x2658a4(0x476)]['id']]);function it(_0xd33fb8,_0x2a7b4a,_0x555ff2,_0x3c77b6,_0x1af373){const _0x77fef0=_0x2658a4;var _0x49c7c3,_0x23cbe2,_0x35a437,_0x130843;const _0x1517fa=[];for(const _0x3f5e65 of _0xd33fb8)if(Ns[_0x77fef0(0x304)](_0x3f5e65['id'])){if(_0x1517fa['length']>0x0)break;_0x1517fa['push'](_0x3f5e65);break;}else _0x1517fa[_0x77fef0(0x4d7)](_0x3f5e65);const _0x2eb04e=(_0x23cbe2=(_0x49c7c3=_0x1af373['getCurrentUser']())==null?void 0x0:_0x49c7c3[_0x77fef0(0x273)])!=null?_0x23cbe2:_0x77fef0(0x27d),_0x54d4e1=(_0x130843=(_0x35a437=_0x1af373[_0x77fef0(0x2c8)]())==null?void 0x0:_0x35a437[_0x77fef0(0x504)])!=null?_0x130843:'unknown';return{'changeset':{'unitID':_0x2a7b4a,'type':_[_0x77fef0(0x32f)](_0x555ff2[_0x77fef0(0x2eb)](_0x2a7b4a)),'baseRev':_0x3c77b6[_0x77fef0(0x2e7)](_0x2a7b4a),'revision':0x0,'userID':_0x2eb04e,'memberID':_0x54d4e1,'mutations':_0x1517fa},'pendingMutations':_0xd33fb8[_0x77fef0(0x320)](_0x1517fa['length'])};}function Ls(_0x55ab5e,_0x3277ea,_0x539577,_0x13de9d,_0x94a816){const _0x2cd235=_0x2658a4;var _0x22584f,_0x43bd3e,_0x389a05,_0x20f7e2;const _0x342f45=[_0x55ab5e[_0x2cd235(0x20d)]((_0x23a624,_0x1baba0)=>{const _0xda962e=_0x2cd235;var _0x4b0359;const {id:_0x5ed3f2}=_0x23a624,{id:_0x91f859,type:_0x48cd5a}=_0x1baba0,_0x544551=(_0x4b0359=_0x23a624['params'])!=null?_0x4b0359:{'actions':null},_0x518bd9=_0x1baba0['params'];if(_0x5ed3f2&&_0x5ed3f2!==_0x91f859)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x5ed3f2+_0xda962e(0x3a9)+_0x91f859+'.');return{..._0x23a624,'id':_0x91f859,'type':_0x48cd5a,'params':{'unitId':_0x518bd9['unitId'],'textRanges':_0x518bd9[_0xda962e(0x531)],'actions':a[_0xda962e(0x203)][_0xda962e(0x3b7)](_0x544551[_0xda962e(0x342)],_0x518bd9[_0xda962e(0x342)])}};},{})],_0x62a017=(_0x43bd3e=(_0x22584f=_0x94a816[_0x2cd235(0x2c8)]())==null?void 0x0:_0x22584f[_0x2cd235(0x273)])!=null?_0x43bd3e:_0x2cd235(0x27d),_0x10a2f0=(_0x20f7e2=(_0x389a05=_0x94a816['getCurrentUser']())==null?void 0x0:_0x389a05['memberID'])!=null?_0x20f7e2:'unknown';return{'changeset':{'unitID':_0x3277ea,'type':_[_0x2cd235(0x32f)](_0x539577[_0x2cd235(0x2eb)](_0x3277ea)),'baseRev':_0x13de9d[_0x2cd235(0x2e7)](_0x3277ea),'revision':0x0,'userID':_0x62a017,'memberID':_0x10a2f0,'mutations':_0x342f45},'pendingMutations':[]};}const As={'id':C['EmptyMutation']['id'],'type':a[_0x2658a4(0x444)][_0x2658a4(0x1a7)],'params':{}};var $s=Object['defineProperty'],js=Object['getOwnPropertyDescriptor'],z=(_0x599fbc,_0x5f3d25,_0x3e4007,_0x52e3c6)=>{const _0x367444=_0x2658a4;for(var _0x5555b5=_0x52e3c6>0x1?void 0x0:_0x52e3c6?js(_0x5f3d25,_0x3e4007):_0x5f3d25,_0x330cb8=_0x599fbc[_0x367444(0x532)]-0x1,_0x930d94;_0x330cb8>=0x0;_0x330cb8--)(_0x930d94=_0x599fbc[_0x330cb8])&&(_0x5555b5=(_0x52e3c6?_0x930d94(_0x5f3d25,_0x3e4007,_0x5555b5):_0x930d94(_0x5555b5))||_0x5555b5);return _0x52e3c6&&_0x5555b5&&$s(_0x5f3d25,_0x3e4007,_0x5555b5),_0x5555b5;},g=(_0x470b01,_0x1343a0)=>(_0x50e8a9,_0x244efe)=>_0x1343a0(_0x50e8a9,_0x244efe,_0x470b01),y=(_0x501aba=>(_0x501aba['NOT_COLLAB']=_0x2658a4(0x46d),_0x501aba['SYNCED']=_0x2658a4(0x47e),_0x501aba[_0x2658a4(0x2bd)]='pending',_0x501aba[_0x2658a4(0x1dd)]=_0x2658a4(0x2ed),_0x501aba[_0x2658a4(0x238)]=_0x2658a4(0x3a5),_0x501aba[_0x2658a4(0x5b4)]='fetch_missing',_0x501aba[_0x2658a4(0x31a)]=_0x2658a4(0x422),_0x501aba[_0x2658a4(0x1fc)]=_0x2658a4(0x37b),_0x501aba))(y||{});class J{constructor(_0xeefae4,_0x5bf75d,_0x1ebd5a,_0x53cbfe,_0x245001,_0x226a72,_0x727fe,_0x5256e7,_0x4ec093){const _0x431e62=_0x2658a4;d(this,_0x431e62(0x27e),null),d(this,_0x431e62(0x3ad),[]),(this[_0x431e62(0x35d)]=_0xeefae4,this['type']=_0x5bf75d,this[_0x431e62(0x394)]=_0x245001,this[_0x431e62(0x407)]=_0x226a72,this[_0x431e62(0x521)]=_0x727fe,this[_0x431e62(0x2ac)]=_0x5256e7,this[_0x431e62(0x36f)]=_0x4ec093,this['_awaitingChangeset']=_0x1ebd5a,this[_0x431e62(0x3ad)]=_0x53cbfe);}[_0x2658a4(0x4e3)](_0x2d8748){const _0x6554cf=_0x2658a4,_0x513b52=this[_0x6554cf(0x2ac)][_0x6554cf(0x2e7)](this[_0x6554cf(0x35d)]);return _0x2d8748['revision']>_0x513b52+0x1?(this[_0x6554cf(0x394)][_0x6554cf(0x25f)]({'from':_0x513b52,'to':_0x2d8748[_0x6554cf(0x4a8)]-0x1}),!0x0):!0x1;}[_0x2658a4(0x39c)](_0x59fdcb){const _0x22c459=_0x2658a4;this[_0x22c459(0x521)][_0x22c459(0x298)](this['unitID'],_0x59fdcb);}['_transformSelections'](_0x48118c){const _0x51639f=_0x2658a4;var _0x3a741a,_0x22821e;(_0x22821e=(_0x3a741a=this['_handler'])[_0x51639f(0x540)])==null||_0x22821e[_0x51639f(0x2cc)](_0x3a741a,_0x48118c);}['_transformIMECache'](_0x433a34){const _0xa68d50=_0x2658a4;var _0x3f3d44,_0x2dc758;return(_0x2dc758=(_0x3f3d44=this[_0xa68d50(0x394)])[_0xa68d50(0x1de)])==null?void 0x0:_0x2dc758[_0xa68d50(0x2cc)](_0x3f3d44,_0x433a34);}[_0x2658a4(0x1af)](_0x3adcd5){const _0x15d39c=_0x2658a4;var _0x2bc80c,_0x240f02,_0x278dda;return(_0x278dda=(_0x240f02=(_0x2bc80c=this[_0x15d39c(0x394)])[_0x15d39c(0x309)])==null?void 0x0:_0x240f02[_0x15d39c(0x2cc)](_0x2bc80c,_0x3adcd5))!=null?_0x278dda:_0x3adcd5;}[_0x2658a4(0x3dc)](_0x36bc24){const _0x47691c=_0x2658a4;var _0x122ce8,_0x939166;if(this['type']===$[_0x47691c(0x1e8)]){const {unitID:_0x2e77ef,mutations:_0x19fe27,memberID:_0x30aca5}=_0x36bc24,_0x7a547b=_0x19fe27[0x0][_0x47691c(0x415)][_0x47691c(0x531)];Array[_0x47691c(0x2f6)](_0x7a547b)&&_0x7a547b[_0x47691c(0x532)]>0x0&&((_0x939166=(_0x122ce8=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x939166[_0x47691c(0x2cc)](_0x122ce8,{'unitID':_0x2e77ef,'memberID':_0x30aca5,'textRanges':_0x7a547b}));}}[_0x2658a4(0x3e2)](){const _0x334f5a=_0x2658a4;this[_0x334f5a(0x36f)]['updateOfflineData'](this['unitID'],this['type'],this[_0x334f5a(0x27e)],this['_pendingMutations']);}[_0x2658a4(0x278)](){const _0x3ba8ee=_0x2658a4;return this['_revisionService'][_0x3ba8ee(0x2e7)](this[_0x3ba8ee(0x35d)]);}[_0x2658a4(0x2c0)](){const _0x30dc08=_0x2658a4;this['_revisionService'][_0x30dc08(0x492)](this[_0x30dc08(0x35d)]);}[_0x2658a4(0x5b5)](_0xe4ccb3){const _0x11c5f5=_0x2658a4;var _0x3dff7d;const _0x368eb6=this[_0x11c5f5(0x1af)](_0xe4ccb3),_0x1f2c43=a[_0x11c5f5(0x2c7)](_0x368eb6['mutations'],this[_0x11c5f5(0x407)],{'fromCollab':!0x0});if(!_0x1f2c43[_0x11c5f5(0x209)])throw _0x1f2c43[_0x11c5f5(0x2ad)]instanceof Error?_0x1f2c43[_0x11c5f5(0x2ad)]:new Error((_0x3dff7d=_0x1f2c43[_0x11c5f5(0x2ad)])!=null?_0x3dff7d:_0x11c5f5(0x459));this['_transformIMECache'](_0x368eb6),this[_0x11c5f5(0x39c)](_0xe4ccb3),this['_transformSelections'](_0x368eb6),this[_0x11c5f5(0x3dc)](_0x368eb6),this[_0x11c5f5(0x2c0)]();}}let ie=class extends J{constructor(_0xf8adb4,_0x421c68,_0x326669,_0x3543f1,_0x2cf4f0,_0x4fd109,_0x549322,_0x5b5ac9,_0x109b97,_0x553999){const _0x49fbc0=_0x2658a4;super(_0xf8adb4,_0x421c68,null,[],_0x326669,_0x5b5ac9,_0x549322,_0x3543f1,_0x2cf4f0),d(this,_0x49fbc0(0x533),_0x49fbc0(0x47e)),(this[_0x49fbc0(0x584)]=_0x4fd109,this[_0x49fbc0(0x3dd)]=_0x109b97,this[_0x49fbc0(0x3c8)]=_0x553999);}[_0x2658a4(0x40b)](_0x2b58d9){const _0xb0929c=_0x2658a4,_0x167811=this[_0xb0929c(0x584)][_0xb0929c(0x2d3)](x,this['unitID'],this[_0xb0929c(0x2aa)],[_0x2b58d9],this['_handler']);return _0x167811[_0xb0929c(0x211)](),_0x167811[_0xb0929c(0x3e2)](),_0x167811;}[_0x2658a4(0x230)](_0x36ac04){const _0x13f4d8=_0x2658a4;if(this[_0x13f4d8(0x4e3)](_0x36ac04))return this[_0x13f4d8(0x584)]['createInstance'](H,this['unitID'],this['type'],null,[],null,[_0x36ac04],this['_handler']);try{const _0x377748=this[_0x13f4d8(0x3c8)][_0x13f4d8(0x554)](_0x36ac04,[As]);if(_['isTransformMutationsWithChangesetSuccess'](_0x377748)){const {c1Prime:_0x20089a}=_0x377748;return this[_0x13f4d8(0x5b5)](_0x20089a),this;}throw _0x377748[_0x13f4d8(0x2ad)];}catch(_0x1fc40f){return this[_0x13f4d8(0x3dd)][_0x13f4d8(0x2ad)](_0x1fc40f),this['_onConflict'](!0x1);}}[_0x2658a4(0x498)](_0x53b57f){const _0x69b858=_0x2658a4;return this[_0x69b858(0x584)][_0x69b858(0x2d3)](F,this[_0x69b858(0x35d)],this['type'],null,[],this[_0x69b858(0x394)],_0x53b57f);}['onRemoteAck'](){const _0x31ab0f=_0x2658a4;throw new Error(_0x31ab0f(0x338));}[_0x2658a4(0x56b)](){const _0x790289=_0x2658a4;throw new Error(_0x790289(0x359));}[_0x2658a4(0x26a)](){const _0x3cb77c=_0x2658a4;return this[_0x3cb77c(0x584)][_0x3cb77c(0x2d3)](G,this[_0x3cb77c(0x35d)],this[_0x3cb77c(0x2aa)],null,[],this[_0x3cb77c(0x394)]);}['toggleOnline'](){return this;}[_0x2658a4(0x2f3)](){const _0x42d4ac=_0x2658a4;throw new Error(_0x42d4ac(0x57e));}[_0x2658a4(0x25b)](){const _0x141b49=_0x2658a4,_0x4c9fd7=this['_revisionService'][_0x141b49(0x2e7)](this['unitID']);return this[_0x141b49(0x394)][_0x141b49(0x25f)]({'from':_0x4c9fd7,'to':0x0}),this[_0x141b49(0x584)]['createInstance'](H,this[_0x141b49(0x35d)],this[_0x141b49(0x2aa)],null,[],null,[],this[_0x141b49(0x394)]);}};ie=z([g(0x3,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),g(0x4,a[_0x2658a4(0x349)](exports['LocalCacheService'])),g(0x5,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),g(0x6,a[_0x2658a4(0x511)]),g(0x7,a[_0x2658a4(0x2db)]),g(0x8,a[_0x2658a4(0x2f2)]),g(0x9,_[_0x2658a4(0x334)])],ie);let x=class extends J{constructor(_0x2f561e,_0xe33e92,_0x7ac625,_0x3bb5cb,_0x3a8514,_0x47a98a,_0x26d6c5,_0x4d56fc,_0x4b855f,_0xe6c0e6,_0x3fec26,_0x4439bb,_0xd349c4,_0x18d049){const _0x35223c=_0x2658a4;super(_0x2f561e,_0xe33e92,null,_0x7ac625,_0x3bb5cb,_0xe6c0e6,_0x18d049,_0x47a98a,_0x26d6c5),d(this,'status',_0x35223c(0x3b4)),d(this,_0x35223c(0x31f),null),d(this,'_sendingTimer',null),(this['_injector']=_0x3a8514,this[_0x35223c(0x3f8)]=_0x4d56fc,this[_0x35223c(0x3dd)]=_0x4b855f,this[_0x35223c(0x519)]=_0x3fec26,this[_0x35223c(0x3c8)]=_0x4439bb,this[_0x35223c(0x446)]=_0xd349c4);}[_0x2658a4(0x40b)](_0x8b1060){const _0x48ca3c=_0x2658a4;return this[_0x48ca3c(0x3ad)][_0x48ca3c(0x4d7)](_0x8b1060),this[_0x48ca3c(0x3e2)](),this;}[_0x2658a4(0x230)](_0x980b76){const _0x1ad3a2=_0x2658a4;if(this['_checkMissing'](_0x980b76))return this[_0x1ad3a2(0x4b9)](),this['_injector'][_0x1ad3a2(0x2d3)](H,this['unitID'],this['type'],null,this[_0x1ad3a2(0x3ad)],null,[_0x980b76],this[_0x1ad3a2(0x394)]);try{const _0x5cfc87=this[_0x1ad3a2(0x3c8)][_0x1ad3a2(0x554)](_0x980b76,this[_0x1ad3a2(0x3ad)]);if(_[_0x1ad3a2(0x580)](_0x5cfc87)){const {c1Prime:_0x197288,m2Prime:_0x23ef50}=_0x5cfc87;this['_executeRemoteChangeset'](_0x197288);const _0x47e0c7=this[_0x1ad3a2(0x584)][_0x1ad3a2(0x2d3)](x,this[_0x1ad3a2(0x35d)],this['type'],_0x23ef50,this[_0x1ad3a2(0x394)]);return this[_0x1ad3a2(0x4b9)](),_0x47e0c7[_0x1ad3a2(0x211)](this['_scheduleTimestamp']?Math[_0x1ad3a2(0x4ce)](0x0,new Date()[_0x1ad3a2(0x1dc)]()-this['_scheduleTimestamp']):this[_0x1ad3a2(0x286)]()),_0x47e0c7;}throw _0x5cfc87[_0x1ad3a2(0x2ad)];}catch(_0xb821fc){return this[_0x1ad3a2(0x3dd)]['error'](_0xb821fc),this['_onConflict'](!0x1);}}[_0x2658a4(0x366)](){const _0x3e3b9c=_0x2658a4;throw new Error(_0x3e3b9c(0x509));}[_0x2658a4(0x56b)](){const _0x49c817=_0x2658a4;throw new Error(_0x49c817(0x3ec));}['toggleOffline'](){const _0x2a9954=_0x2658a4;return this[_0x2a9954(0x4b9)](),this[_0x2a9954(0x584)][_0x2a9954(0x2d3)](G,this[_0x2a9954(0x35d)],this[_0x2a9954(0x2aa)],null,this[_0x2a9954(0x3ad)],this[_0x2a9954(0x394)]);}[_0x2658a4(0x41e)](){return this;}['_schedule'](_0x140034){const _0x2148b6=_0x2658a4,_0x16099c=_0x140034!=null?_0x140034:this[_0x2148b6(0x286)]();this[_0x2148b6(0x31f)]=new Date()[_0x2148b6(0x1dc)](),this['_sendingTimer']=window[_0x2148b6(0x47d)](()=>{const _0x3dd9aa=_0x2148b6;this[_0x3dd9aa(0x4b9)]();let _0x2a201b=null;switch(this[_0x3dd9aa(0x2aa)]){case $[_0x3dd9aa(0x3d2)]:{_0x2a201b=it(this[_0x3dd9aa(0x3ad)],this[_0x3dd9aa(0x35d)],this[_0x3dd9aa(0x446)],this[_0x3dd9aa(0x2ac)],this['_memberService']);break;}case $[_0x3dd9aa(0x1e8)]:{this['_pendingMutations'][_0x3dd9aa(0x4a6)](_0x58644b=>_0x58644b['id']===V[_0x3dd9aa(0x1d1)]['id'])?_0x2a201b=Ls(this['_pendingMutations'],this[_0x3dd9aa(0x35d)],this[_0x3dd9aa(0x446)],this[_0x3dd9aa(0x2ac)],this[_0x3dd9aa(0x3f8)]):_0x2a201b=it(this[_0x3dd9aa(0x3ad)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x3dd9aa(0x3f8)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x3dd9aa(0x2aa)]+'\x20in\x20_schedule.');}const {changeset:_0x281cdb,pendingMutations:_0x36b051}=_0x2a201b;this[_0x3dd9aa(0x394)][_0x3dd9aa(0x3b2)](_0x281cdb);const _0x1d9fa4=_0x36b051[_0x3dd9aa(0x532)]?this[_0x3dd9aa(0x584)]['createInstance'](k,this[_0x3dd9aa(0x35d)],this[_0x3dd9aa(0x2aa)],_0x281cdb,_0x36b051,this['_handler']):this[_0x3dd9aa(0x584)]['createInstance'](W,this[_0x3dd9aa(0x35d)],this['type'],_0x281cdb,this[_0x3dd9aa(0x394)]);_0x1d9fa4[_0x3dd9aa(0x3e2)](),this[_0x3dd9aa(0x394)][_0x3dd9aa(0x433)](this,_0x1d9fa4);},_0x16099c);}[_0x2658a4(0x286)](){const _0x4a8b7c=_0x2658a4;var _0x5c43da;const _0x50fc44=this[_0x4a8b7c(0x519)][_0x4a8b7c(0x455)](L);return(_0x5c43da=_0x50fc44==null?void 0x0:_0x50fc44[_0x4a8b7c(0x2e9)])!=null?_0x5c43da:Kt;}[_0x2658a4(0x2f3)](){const _0x14ce94=_0x2658a4;throw new Error(_0x14ce94(0x341));}[_0x2658a4(0x4b9)](){const _0x264220=_0x2658a4;this[_0x264220(0x4b1)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x264220(0x4b1)]=null);}[_0x2658a4(0x498)](_0x50afbe){const _0x39ca54=_0x2658a4;return this['_clearScheduledTask'](),this[_0x39ca54(0x584)]['createInstance'](F,this[_0x39ca54(0x35d)],this['type'],null,this[_0x39ca54(0x3ad)],this[_0x39ca54(0x394)],_0x50afbe);}};x=z([g(0x4,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),g(0x5,a['Inject'](_[_0x2658a4(0x449)])),g(0x6,a[_0x2658a4(0x349)](exports[_0x2658a4(0x20c)])),g(0x7,a[_0x2658a4(0x349)](q)),g(0x8,a[_0x2658a4(0x2f2)]),g(0x9,a[_0x2658a4(0x2db)]),g(0xa,a[_0x2658a4(0x35a)]),g(0xb,_['ITransformService']),g(0xc,a[_0x2658a4(0x4e5)]),g(0xd,a[_0x2658a4(0x511)])],x);let W=class extends J{constructor(_0x1176bf,_0x82a471,_0x32f87e,_0x50aa0a,_0x133ff8,_0x1a7a8f,_0x7991d3,_0x459e76,_0x58340f,_0x55b121,_0x397a74){const _0x3fc1f9=_0x2658a4;super(_0x1176bf,_0x82a471,_0x32f87e,[],_0x50aa0a,_0x459e76,_0x397a74,_0x1a7a8f,_0x7991d3),d(this,_0x3fc1f9(0x533),'awaiting'),(this[_0x3fc1f9(0x584)]=_0x133ff8,this['_logService']=_0x58340f,this['_transformService']=_0x55b121);}['appendMutation'](_0x17715d){const _0x4da96d=_0x2658a4,_0x3e7d82=this[_0x4da96d(0x584)][_0x4da96d(0x2d3)](k,this[_0x4da96d(0x35d)],this[_0x4da96d(0x2aa)],this[_0x4da96d(0x27e)],[_0x17715d],this['_handler']);return _0x3e7d82['_updateLocalCache'](),_0x3e7d82;}[_0x2658a4(0x230)](_0x3eebf5){const _0x4dda24=_0x2658a4;if(this[_0x4dda24(0x4e3)](_0x3eebf5))return this[_0x4dda24(0x584)][_0x4dda24(0x2d3)](H,this['unitID'],this[_0x4dda24(0x2aa)],this[_0x4dda24(0x27e)],[],null,[_0x3eebf5],this[_0x4dda24(0x394)]);try{const _0x459f2d=this[_0x4dda24(0x3c8)][_0x4dda24(0x340)]([_0x3eebf5],[this[_0x4dda24(0x27e)]],!0x1);if(_[_0x4dda24(0x395)](_0x459f2d)){const {c1Prime:_0x10b6ec,c2Prime:_0x137dcc}=_0x459f2d;this[_0x4dda24(0x5b5)](_0x10b6ec[0x0]),_0x137dcc[0x0]['baseRev']=this[_0x4dda24(0x278)]();const _0xcbd318=this[_0x4dda24(0x584)][_0x4dda24(0x2d3)](W,this[_0x4dda24(0x35d)],this['type'],_0x137dcc[0x0],this['_handler']);return _0xcbd318[_0x4dda24(0x3e2)](),_0xcbd318;}return this['_onConflict'](!0x1);}catch(_0xb3f935){return this[_0x4dda24(0x3dd)][_0x4dda24(0x2ad)](_0xb3f935),this['_onConflict'](!0x1);}}[_0x2658a4(0x366)](_0x4b4ec2){const _0xfbe615=_0x2658a4,_0x4bed34=this[_0xfbe615(0x2ac)]['getCurrentRevOfUnit'](this[_0xfbe615(0x35d)]);if(_0x4b4ec2[_0xfbe615(0x4a8)]<_0x4bed34-0x1)return this;if(this[_0xfbe615(0x4e3)](_0x4b4ec2))return this[_0xfbe615(0x584)][_0xfbe615(0x2d3)](H,this[_0xfbe615(0x35d)],this[_0xfbe615(0x2aa)],null,[],this[_0xfbe615(0x27e)],[],this['_handler']);this[_0xfbe615(0x2c0)]();const _0x24223b=this['_injector']['createInstance'](ie,this[_0xfbe615(0x35d)],this[_0xfbe615(0x2aa)],this[_0xfbe615(0x394)]);return _0x24223b[_0xfbe615(0x3e2)](),_0x24223b;}[_0x2658a4(0x56b)](_0x56053b){const _0x2c480b=_0x2658a4;return this[_0x2c480b(0x498)](!!(_0x56053b!=null&&_0x56053b[_0x2c480b(0x474)]));}[_0x2658a4(0x26a)](){const _0x49dec8=_0x2658a4;return this[_0x49dec8(0x584)][_0x49dec8(0x2d3)](G,this[_0x49dec8(0x35d)],this[_0x49dec8(0x2aa)],this[_0x49dec8(0x27e)],[],this[_0x49dec8(0x394)]);}['toggleOnline'](){return this;}[_0x2658a4(0x2f3)](){const _0x930c49=_0x2658a4;this['_handler'][_0x930c49(0x3b2)](this[_0x930c49(0x27e)]);}[_0x2658a4(0x498)](_0x482779){const _0x52a005=_0x2658a4;return this[_0x52a005(0x584)][_0x52a005(0x2d3)](F,this['unitID'],this[_0x52a005(0x2aa)],this[_0x52a005(0x27e)],[],this[_0x52a005(0x394)],_0x482779);}};W=z([g(0x4,a['Inject'](a[_0x2658a4(0x1f0)])),g(0x5,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),g(0x6,a[_0x2658a4(0x349)](exports['LocalCacheService'])),g(0x7,a[_0x2658a4(0x2db)]),g(0x8,a[_0x2658a4(0x2f2)]),g(0x9,_[_0x2658a4(0x334)]),g(0xa,a[_0x2658a4(0x511)])],W);let k=class extends J{constructor(_0x5db01d,_0x32c95f,_0x24544f,_0x51c5df,_0x2c0671,_0x4e418d,_0x149934,_0x15d80a,_0x4cf707,_0x2b1251,_0x499acb,_0x4e8298){const _0x144c1b=_0x2658a4;super(_0x5db01d,_0x32c95f,_0x24544f,_0x51c5df,_0x2c0671,_0x4cf707,_0x4e8298,_0x149934,_0x15d80a),d(this,_0x144c1b(0x533),'awaiting_with_pending'),(this[_0x144c1b(0x584)]=_0x4e418d,this['_logService']=_0x2b1251,this[_0x144c1b(0x3c8)]=_0x499acb);}[_0x2658a4(0x40b)](_0x1b1173){const _0x28fa7f=_0x2658a4;return this[_0x28fa7f(0x3ad)]['push'](_0x1b1173),this;}[_0x2658a4(0x230)](_0x141524){const _0x2db813=_0x2658a4;if(this['_checkMissing'](_0x141524))return this[_0x2db813(0x584)][_0x2db813(0x2d3)](H,this[_0x2db813(0x35d)],this[_0x2db813(0x2aa)],this[_0x2db813(0x27e)],this[_0x2db813(0x3ad)],null,[_0x141524],this[_0x2db813(0x394)]);try{const _0x39d6f4=this[_0x2db813(0x3c8)][_0x2db813(0x340)]([_0x141524],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x39d6f4)){const {c1Prime:_0x17f71c,c2Prime:_0x5b9374}=_0x39d6f4,_0x3c9a10=this[_0x2db813(0x3c8)][_0x2db813(0x554)](_0x17f71c[0x0],this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0x3c9a10)){const {c1Prime:_0x259558,m2Prime:_0x7b748}=_0x3c9a10;return this[_0x2db813(0x5b5)](_0x259558),_0x5b9374[0x0][_0x2db813(0x2a0)]=this[_0x2db813(0x278)](),this['_injector'][_0x2db813(0x2d3)](k,this[_0x2db813(0x35d)],this[_0x2db813(0x2aa)],_0x5b9374[0x0],_0x7b748,this[_0x2db813(0x394)]);}throw _0x3c9a10[_0x2db813(0x2ad)];}throw _0x39d6f4[_0x2db813(0x2ad)];}catch(_0x3d45d8){return this[_0x2db813(0x3dd)][_0x2db813(0x2ad)](_0x3d45d8),this['_onConflict'](!0x1);}}[_0x2658a4(0x366)](_0xc640d9){const _0x3db83e=_0x2658a4;if(this[_0x3db83e(0x4e3)](_0xc640d9))return this[_0x3db83e(0x584)][_0x3db83e(0x2d3)](H,this[_0x3db83e(0x35d)],this['type'],null,this[_0x3db83e(0x3ad)],this[_0x3db83e(0x27e)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x418bf0=this[_0x3db83e(0x584)][_0x3db83e(0x2d3)](x,this['unitID'],this['type'],this[_0x3db83e(0x3ad)],this[_0x3db83e(0x394)]);return _0x418bf0[_0x3db83e(0x211)](),_0x418bf0['_updateLocalCache'](),_0x418bf0;}['onRemoteRej'](_0x841bd3){const _0x3aee90=_0x2658a4;return this[_0x3aee90(0x498)](!!(_0x841bd3!=null&&_0x841bd3['isPermissionRej']));}[_0x2658a4(0x26a)](){const _0x83824b=_0x2658a4;return this[_0x83824b(0x584)]['createInstance'](G,this['unitID'],this[_0x83824b(0x2aa)],this['_awaitingChangeset'],this[_0x83824b(0x3ad)],this[_0x83824b(0x394)]);}['toggleOnline'](){return this;}[_0x2658a4(0x2f3)](){const _0x13b3c0=_0x2658a4;this[_0x13b3c0(0x394)][_0x13b3c0(0x3b2)](this[_0x13b3c0(0x27e)]);}[_0x2658a4(0x498)](_0x3c9925){const _0xc7e518=_0x2658a4;return this['_injector'][_0xc7e518(0x2d3)](F,this['unitID'],this[_0xc7e518(0x2aa)],null,this[_0xc7e518(0x3ad)],this[_0xc7e518(0x394)],_0x3c9925);}};k=z([g(0x5,a['Inject'](a[_0x2658a4(0x1f0)])),g(0x6,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),g(0x7,a[_0x2658a4(0x349)](exports[_0x2658a4(0x20c)])),g(0x8,a[_0x2658a4(0x2db)]),g(0x9,a[_0x2658a4(0x2f2)]),g(0xa,_[_0x2658a4(0x334)]),g(0xb,a['IUndoRedoService'])],k);let F=class extends J{constructor(_0x49cb92,_0x50f9de,_0xd05c96,_0x58396e,_0x3a1427,_0x2a4401=!0x1,_0x39dfe5,_0x186248,_0x1dadad,_0x1c1746,_0x18e55,_0x3d8059,_0x1ba866){const _0x36ebf4=_0x2658a4;super(_0x49cb92,_0x50f9de,_0xd05c96,_0x58396e,_0x3a1427,_0x186248,_0x1dadad,_0x18e55,_0x1c1746),d(this,_0x36ebf4(0x533),_0x36ebf4(0x422)),(this[_0x36ebf4(0x3c4)]=_0x2a4401,this[_0x36ebf4(0x34c)]=_0x39dfe5,this[_0x36ebf4(0x1a5)]=_0x3d8059,this[_0x36ebf4(0x2a1)]=_0x1ba866,this[_0x36ebf4(0x4fe)](),this[_0x36ebf4(0x423)](),this[_0x36ebf4(0x2be)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x2658a4(0x26a)](){return this;}['toggleOnline'](){return this;}[_0x2658a4(0x2f3)](){const _0xe30a23=_0x2658a4;throw new Error(_0xe30a23(0x33d));}[_0x2658a4(0x423)](){const _0x53bef1=_0x2658a4;this['_localCacheService'][_0x53bef1(0x37d)](this['unitID'],this[_0x53bef1(0x2aa)],null,[]);}['_showConflictNotification'](){const _0x4a99d0=_0x2658a4;this[_0x4a99d0(0x3c4)]?this[_0x4a99d0(0x2a1)][_0x4a99d0(0x50d)]({'title':this[_0x4a99d0(0x1a5)]['t']('permission.title'),'content':this[_0x4a99d0(0x1a5)]['t'](_0x4a99d0(0x565)),'type':_0x4a99d0(0x2ad),'duration':0x0}):this[_0x4a99d0(0x2a1)]['show']({'title':this[_0x4a99d0(0x1a5)]['t'](_0x4a99d0(0x526)),'content':this[_0x4a99d0(0x1a5)]['t'](_0x4a99d0(0x3fb)),'type':_0x4a99d0(0x2ad),'duration':0x0});}[_0x2658a4(0x2be)](){const _0x526103=_0x2658a4;this[_0x526103(0x34c)][_0x526103(0x356)](new C[(_0x526103(0x541))](this['unitID'])['id'],!0x1);}};F=z([g(0x6,a[_0x2658a4(0x349)](a[_0x2658a4(0x223)])),g(0x7,a[_0x2658a4(0x2db)]),g(0x8,a[_0x2658a4(0x511)]),g(0x9,a[_0x2658a4(0x349)](exports[_0x2658a4(0x20c)])),g(0xa,a['Inject'](_[_0x2658a4(0x449)])),g(0xb,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),g(0xc,N['INotificationService'])],F);let G=class extends J{constructor(_0x42f5ee,_0x357963,_0x244430,_0x8705fd,_0x1558eb,_0x5e09ee,_0x5b2242,_0x398cdd,_0x2c5731,_0x4c033a){const _0x2bf5c7=_0x2658a4;super(_0x42f5ee,_0x357963,_0x244430,_0x8705fd,_0x1558eb,_0x2c5731,_0x4c033a,_0x5b2242,_0x398cdd),d(this,_0x2bf5c7(0x533),'offline'),this['_injector']=_0x5e09ee;}[_0x2658a4(0x40b)](_0x4b532d){const _0x320819=_0x2658a4;return this[_0x320819(0x3ad)][_0x320819(0x4d7)](_0x4b532d),this[_0x320819(0x3e2)](),this;}[_0x2658a4(0x230)](_0x2d20a9){const _0x33cd2a=_0x2658a4;throw new Error(_0x33cd2a(0x426));}[_0x2658a4(0x366)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x2658a4(0x26a)](){return this;}[_0x2658a4(0x41e)](){const _0x216656=_0x2658a4,{_injector:_0x1f36fc,_pendingMutations:_0x39eb6f,_awaitingChangeset:_0x193ff6,unitID:_0x47c6a4,_handler:_0x54fc91,type:_0x44c654}=this,_0x90ab0f=Rt(_0x1f36fc,_0x47c6a4,_0x44c654,_0x193ff6,_0x39eb6f,_0x54fc91);return _0x90ab0f instanceof x?_0x90ab0f['_schedule']():(_0x90ab0f instanceof k||_0x90ab0f instanceof W)&&_0x90ab0f[_0x216656(0x2f3)](),_0x90ab0f;}[_0x2658a4(0x2f3)](){const _0x52477a=_0x2658a4;throw new Error(_0x52477a(0x1b0));}};G=z([g(0x5,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),g(0x6,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),g(0x7,a[_0x2658a4(0x349)](exports[_0x2658a4(0x20c)])),g(0x8,a[_0x2658a4(0x2db)]),g(0x9,a['IUndoRedoService'])],G);let H=class extends J{constructor(_0x3a20f1,_0x3d29c1,_0x59e43c,_0x5c4ace,_0x562e72,_0x28a9b9,_0x8e4cbf,_0x22773f,_0x254f74,_0xa5dfe3,_0x134954,_0x3c22eb,_0xa33efb,_0x53ed6f){const _0x4dca2c=_0x2658a4;super(_0x3a20f1,_0x3d29c1,_0x59e43c,_0x5c4ace,_0x8e4cbf,_0x3c22eb,_0xa33efb,_0x254f74,_0xa5dfe3),d(this,_0x4dca2c(0x533),_0x4dca2c(0x2c5)),(this[_0x4dca2c(0x1d4)]=_0x562e72,this[_0x4dca2c(0x45b)]=_0x28a9b9,this[_0x4dca2c(0x584)]=_0x22773f,this[_0x4dca2c(0x3dd)]=_0x134954,this[_0x4dca2c(0x3c8)]=_0x53ed6f);}[_0x2658a4(0x546)](_0x43a512){const _0x466cc1=_0x2658a4;try{const _0x4510a3=[..._0x43a512,...this[_0x466cc1(0x45b)]],_0x3a8081=[this[_0x466cc1(0x27e)]||this[_0x466cc1(0x1d4)]][_0x466cc1(0x2cd)](_0x5ca9b7=>!!_0x5ca9b7);let _0x12e329,_0x252212;if(_0x3a8081[_0x466cc1(0x532)]){const _0x4a623c=this[_0x466cc1(0x3c8)][_0x466cc1(0x340)](_0x4510a3,_0x3a8081,!0x1);if(!_[_0x466cc1(0x395)](_0x4a623c))throw _0x4a623c[_0x466cc1(0x2ad)];_0x12e329=_0x4a623c[_0x466cc1(0x202)],_0x252212=_0x4a623c[_0x466cc1(0x22d)];}else _0x12e329=_0x4510a3,_0x252212=[];let _0x247d4d=this['_pendingMutations'];_0x12e329[_0x466cc1(0x4ab)](_0x383f52=>{const _0x25366a=_0x466cc1;let _0x10185a;if(_0x247d4d['length']){const _0x985219=this[_0x25366a(0x3c8)][_0x25366a(0x554)](_0x383f52,_0x247d4d);if(!_['isTransformMutationsWithChangesetSuccess'](_0x985219))throw _0x985219[_0x25366a(0x2ad)];_0x10185a=_0x985219[_0x25366a(0x202)],_0x247d4d=_0x985219[_0x25366a(0x1b9)];}else _0x10185a=_0x383f52;this[_0x25366a(0x5b5)](_0x10185a);}),this['_acknowledgedAwaitingChangeset']&&this[_0x466cc1(0x2c0)](),this[_0x466cc1(0x27e)]&&_0x252212[_0x466cc1(0x532)]&&(_0x252212[0x0][_0x466cc1(0x2a0)]=this[_0x466cc1(0x278)]());let _0x3ee0ec;if(this[_0x466cc1(0x27e)]&&_0x247d4d['length']!==0x0)_0x3ee0ec=this[_0x466cc1(0x584)]['createInstance'](k,this[_0x466cc1(0x35d)],this[_0x466cc1(0x2aa)],_0x252212[0x0],_0x247d4d,this[_0x466cc1(0x394)]);else{if(this['_awaitingChangeset']&&_0x247d4d[_0x466cc1(0x532)]===0x0)_0x252212[0x0]['baseRev']=this[_0x466cc1(0x278)](),_0x3ee0ec=this['_injector'][_0x466cc1(0x2d3)](W,this['unitID'],this[_0x466cc1(0x2aa)],_0x252212[0x0],this['_handler']);else{if(_0x247d4d['length']!==0x0){const _0x231e7e=this[_0x466cc1(0x584)][_0x466cc1(0x2d3)](x,this[_0x466cc1(0x35d)],this[_0x466cc1(0x2aa)],_0x247d4d,this[_0x466cc1(0x394)]);_0x231e7e[_0x466cc1(0x211)](),_0x3ee0ec=_0x231e7e;}else _0x3ee0ec=this[_0x466cc1(0x584)]['createInstance'](ie,this[_0x466cc1(0x35d)],this[_0x466cc1(0x2aa)],this[_0x466cc1(0x394)]);}}return _0x3ee0ec[_0x466cc1(0x3e2)](),_0x3ee0ec;}catch(_0x1b7ba9){return this[_0x466cc1(0x3dd)]['error']('[FetchMissState]',_0x466cc1(0x439),_0x1b7ba9),this[_0x466cc1(0x584)][_0x466cc1(0x2d3)](F,this[_0x466cc1(0x35d)],this[_0x466cc1(0x2aa)],this['_awaitingChangeset'],this[_0x466cc1(0x3ad)],this[_0x466cc1(0x394)],!0x1);}}[_0x2658a4(0x2f3)](){const _0x14766a=_0x2658a4;throw new Error(_0x14766a(0x28f));}[_0x2658a4(0x40b)](_0x366bad){const _0x323e54=_0x2658a4;return this[_0x323e54(0x3ad)][_0x323e54(0x4d7)](_0x366bad),this;}[_0x2658a4(0x230)](_0x5f29f4){const _0x32d718=_0x2658a4;return this[_0x32d718(0x45b)]['push'](_0x5f29f4),this;}['onRemoteAck'](_0x4de320){const _0x581ca3=_0x2658a4;if(this[_0x581ca3(0x27e)])return this['_acknowledgedAwaitingChangeset']=this[_0x581ca3(0x27e)],this['_awaitingChangeset']=null,this;throw new Error(_0x581ca3(0x1e4));}['onRemoteRej'](_0x2a5d31){const _0x1305e2=_0x2658a4;return this[_0x1305e2(0x498)](!!(_0x2a5d31!=null&&_0x2a5d31[_0x1305e2(0x474)]));}['toggleOffline'](){const _0x51aee6=_0x2658a4;return this[_0x51aee6(0x584)][_0x51aee6(0x2d3)](G,this['unitID'],this[_0x51aee6(0x2aa)],this[_0x51aee6(0x27e)],this[_0x51aee6(0x3ad)],this[_0x51aee6(0x394)]);}[_0x2658a4(0x41e)](){return this;}['_onConflict'](_0x4c02e1){const _0x4e68fa=_0x2658a4;return this[_0x4e68fa(0x584)][_0x4e68fa(0x2d3)](F,this[_0x4e68fa(0x35d)],this[_0x4e68fa(0x2aa)],this[_0x4e68fa(0x27e)],this[_0x4e68fa(0x3ad)],this[_0x4e68fa(0x394)],_0x4c02e1);}};H=z([g(0x7,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),g(0x8,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),g(0x9,a[_0x2658a4(0x349)](exports[_0x2658a4(0x20c)])),g(0xa,a['ILogService']),g(0xb,a[_0x2658a4(0x2db)]),g(0xc,a['IUndoRedoService']),g(0xd,_['ITransformService'])],H);function Rt(_0x358e6b,_0x333f46,_0x205ced,_0x348b07,_0x8f9e63,_0x58287b){const _0x5e356f=_0x2658a4;return _0x348b07&&_0x8f9e63[_0x5e356f(0x532)]?_0x358e6b['createInstance'](k,_0x333f46,_0x205ced,_0x348b07,_0x8f9e63,_0x58287b):_0x348b07?_0x358e6b[_0x5e356f(0x2d3)](W,_0x333f46,_0x205ced,_0x348b07,_0x58287b):_0x8f9e63[_0x5e356f(0x532)]?_0x358e6b[_0x5e356f(0x2d3)](x,_0x333f46,_0x205ced,_0x8f9e63,_0x58287b):_0x358e6b['createInstance'](ie,_0x333f46,_0x205ced,_0x58287b);}var Hs=Object[_0x2658a4(0x30c)],xs=Object['getOwnPropertyDescriptor'],Ke=(_0x35f738,_0x52f22a,_0x133f39,_0x1e5ef5)=>{const _0x368a80=_0x2658a4;for(var _0x4f14e8=_0x1e5ef5>0x1?void 0x0:_0x1e5ef5?xs(_0x52f22a,_0x133f39):_0x52f22a,_0x1235fd=_0x35f738[_0x368a80(0x532)]-0x1,_0x6fb085;_0x1235fd>=0x0;_0x1235fd--)(_0x6fb085=_0x35f738[_0x1235fd])&&(_0x4f14e8=(_0x1e5ef5?_0x6fb085(_0x52f22a,_0x133f39,_0x4f14e8):_0x6fb085(_0x4f14e8))||_0x4f14e8);return _0x1e5ef5&&_0x4f14e8&&Hs(_0x52f22a,_0x133f39,_0x4f14e8),_0x4f14e8;},I=(_0x450be3,_0x14e425)=>(_0x2a9f0f,_0x2421f6)=>_0x14e425(_0x2a9f0f,_0x2421f6,_0x450be3);exports[_0x2658a4(0x2bf)]=class extends a[_0x2658a4(0x354)]{constructor(_0xb72e96,_0xfa966d,_0x10583c,_0x1ddc19,_0xc1f5ab,_0x586c63,_0x30cfbf,_0x5eb287,_0xb38af,_0x6a1afe,_0x12a668,_0x429827,_0xcf3dc0){const _0x38fd44=_0x2658a4;super(),d(this,_0x38fd44(0x54a),new v[(_0x38fd44(0x58a))](null)),d(this,_0x38fd44(0x50e),this[_0x38fd44(0x54a)][_0x38fd44(0x329)]()),d(this,_0x38fd44(0x1c8)),d(this,_0x38fd44(0x1c5),!0x1),d(this,_0x38fd44(0x3bd),this[_0x38fd44(0x50e)]['pipe'](v[_0x38fd44(0x1ec)](_0x575eda=>_0x575eda?_0x575eda[_0x38fd44(0x533)]:y[_0x38fd44(0x1fc)]),v[_0x38fd44(0x49a)](0x1))),d(this,_0x38fd44(0x489),!0x1),d(this,_0x38fd44(0x2a5),[]),(this[_0x38fd44(0x35d)]=_0xb72e96,this['session']=_0xfa966d,this[_0x38fd44(0x5ae)]=_0x10583c,this[_0x38fd44(0x584)]=_0x1ddc19,this[_0x38fd44(0x36f)]=_0xc1f5ab,this[_0x38fd44(0x421)]=_0x586c63,this['_localeService']=_0x30cfbf,this[_0x38fd44(0x2ac)]=_0x5eb287,this[_0x38fd44(0x3dd)]=_0xb38af,this[_0x38fd44(0x407)]=_0x6a1afe,this['_messageService']=_0x12a668,this['_permissionService']=_0x429827,this['_singleActiveUnitService']=_0xcf3dc0);}get[_0x2658a4(0x3ba)](){return this['_state'];}async[_0x2658a4(0x52f)](){const _0x26111b=_0x2658a4;if(this[_0x26111b(0x3ba)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x26111b(0x567)]();}[_0x2658a4(0x28a)](){const _0x395ac7=_0x2658a4;return this[_0x395ac7(0x1c5)]=!0x0,a[_0x395ac7(0x23f)](()=>{const _0x2c9129=_0x395ac7;this[_0x2c9129(0x1c5)]=!0x1,this[_0x2c9129(0x4d1)]();});}[_0x2658a4(0x3b8)](_0x26c368){const _0x3ae1e0=_0x2658a4;this[_0x3ae1e0(0x1c8)]=_0x26c368,this[_0x3ae1e0(0x54a)][_0x3ae1e0(0x460)](_0x26c368);}async[_0x2658a4(0x567)](){const _0x1ae789=_0x2658a4;var _0x407a96;this[_0x1ae789(0x3b8)](await this[_0x1ae789(0x457)]()),this[_0x1ae789(0x450)]&&((_0x407a96=this['_singleActiveUnitService'])==null||_0x407a96[_0x1ae789(0x221)](this['unitID']),this[_0x1ae789(0x2f0)](this[_0x1ae789(0x450)][_0x1ae789(0x3c9)](this[_0x1ae789(0x35d)])[_0x1ae789(0x2a3)](_0xcadb92=>{const _0x12ea55=_0x1ae789;this[_0x12ea55(0x3dd)]['debug']('[CollaborationEntity]',_0x12ea55(0x32a),_0xcadb92),_0xcadb92===bt[_0x12ea55(0x31d)]?(this[_0x12ea55(0x467)]['show']({'content':this[_0x12ea55(0x1a5)]['t'](_0x12ea55(0x47a)),'type':X['MessageType'][_0x12ea55(0x575)]}),this[_0x12ea55(0x34c)][_0x12ea55(0x356)](new C[(_0x12ea55(0x541))](this[_0x12ea55(0x35d)])['id'],!0x1)):this['_permissionService'][_0x12ea55(0x356)](new C[(_0x12ea55(0x541))](this[_0x12ea55(0x35d)])['id'],!0x0);})));let _0x451384=!0x1;return this['disposeWithMe'](this[_0x1ae789(0x380)]['sessionStatus$'][_0x1ae789(0x2a3)](_0x3f0830=>{const _0x55a8f4=_0x1ae789;_0x3f0830===j['ONLINE']?this[_0x55a8f4(0x4c3)](_0x451384):_0x3f0830===j[_0x55a8f4(0x1fc)]&&(_0x451384=!0x0,this[_0x55a8f4(0x54c)]());})),this[_0x1ae789(0x2f0)](this[_0x1ae789(0x380)]['event$']['subscribe'](_0x4882cb=>{const _0x2789c1=_0x1ae789;try{switch(_0x4882cb[_0x2789c1(0x44e)]){case _[_0x2789c1(0x2d5)][_0x2789c1(0x54f)]:{this[_0x2789c1(0x3f4)](_[_0x2789c1(0x24f)](_0x4882cb[_0x2789c1(0x46e)]));break;}case _[_0x2789c1(0x2d5)][_0x2789c1(0x593)]:{this[_0x2789c1(0x2d4)](_0x4882cb[_0x2789c1(0x46e)]);break;}case _['CollaborationEvent'][_0x2789c1(0x288)]:{this['_onRemoteRejected']();break;}case _['CollaborationEvent'][_0x2789c1(0x32b)]:{this[_0x2789c1(0x212)](_0x4882cb['data'][_0x2789c1(0x528)][_0x2789c1(0x1ec)](_0xd5f7b8=>_[_0x2789c1(0x24f)](_0xd5f7b8)));break;}case _[_0x2789c1(0x2d5)][_0x2789c1(0x245)]:this[_0x2789c1(0x3a7)]({'isPermissionRej':!0x0});}}catch(_0x34a9cb){throw console[_0x2789c1(0x2ad)](_0x2789c1(0x277),_0x34a9cb),_0x34a9cb;}})),this['_state'];}['_unlockTransition'](){const _0x1e9b55=_0x2658a4;this[_0x1e9b55(0x489)]=!0x1;}[_0x2658a4(0x1c2)](){const _0x5355f0=_0x2658a4;if(this[_0x5355f0(0x489)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x5355f0(0x489)]=!0x0;}[_0x2658a4(0x2d1)](_0x37116e){const _0x516fd5=_0x2658a4;this[_0x516fd5(0x1c2)](),this['_updateState'](this['_state'][_0x516fd5(0x40b)](_0x37116e)),this['_unlockTransition']();}[_0x2658a4(0x3f4)](_0x3397b3){const _0x13ad5=_0x2658a4;if(!(_0x3397b3[_0x13ad5(0x4a8)]<=this[_0x13ad5(0x2ac)][_0x13ad5(0x2e7)](this[_0x13ad5(0x35d)]))){if(this['_collaborationPaused']){this[_0x13ad5(0x2a5)]['push'](_0x3397b3);return;}this[_0x13ad5(0x1b8)](_0x3397b3);}}[_0x2658a4(0x4d1)](){const _0x29c23d=_0x2658a4;this[_0x29c23d(0x2a5)][_0x29c23d(0x4ab)](_0x39d122=>this[_0x29c23d(0x1b8)](_0x39d122)),this[_0x29c23d(0x2a5)]=[];}[_0x2658a4(0x1b8)](_0x4f21fc){const _0x395e98=_0x2658a4,_0x2c51dc=this['_compressMutationService'][_0x395e98(0x506)][_0x395e98(0x1e2)](this[_0x395e98(0x421)]['interceptor'][_0x395e98(0x2c9)]()[_0x395e98(0x1d2)])(_0x4f21fc[_0x395e98(0x1ad)],null)||_0x4f21fc[_0x395e98(0x1ad)],_0x4f804b={..._0x4f21fc,'mutations':_0x2c51dc};this[_0x395e98(0x1c2)](),this[_0x395e98(0x3b8)](this[_0x395e98(0x1c8)]['onRemoteChangeset'](_0x4f804b)),this[_0x395e98(0x1ff)]();}[_0x2658a4(0x2d4)](_0x5209be){const _0x480043=_0x2658a4;this[_0x480043(0x1c2)](),this[_0x480043(0x3b8)](this['_state'][_0x480043(0x366)](_0x5209be)),this[_0x480043(0x1ff)]();}[_0x2658a4(0x3a7)](_0x2cf35c){const _0x37d8f8=_0x2658a4;this[_0x37d8f8(0x1c2)](),this[_0x37d8f8(0x3b8)](this[_0x37d8f8(0x1c8)]['onRemoteRej'](_0x2cf35c)),this[_0x37d8f8(0x1ff)]();}[_0x2658a4(0x212)](_0xa80be5){const _0x36fec5=_0x2658a4;if(!(this[_0x36fec5(0x1c8)]instanceof H))throw new TypeError(_0x36fec5(0x41f));const _0x1928ee=_0xa80be5[_0x36fec5(0x1ec)](_0x2b4913=>{const _0x57520a=_0x36fec5,_0xe0882a=this[_0x57520a(0x421)][_0x57520a(0x506)]['fetchThroughInterceptors'](this[_0x57520a(0x421)][_0x57520a(0x506)][_0x57520a(0x2c9)]()[_0x57520a(0x1d2)])(_0x2b4913[_0x57520a(0x1ad)],null)||_0x2b4913[_0x57520a(0x1ad)];return{..._0x2b4913,'mutations':_0xe0882a};});this[_0x36fec5(0x1c2)](),this[_0x36fec5(0x3b8)](this[_0x36fec5(0x1c8)][_0x36fec5(0x546)](_0x1928ee)),this[_0x36fec5(0x1ff)]();}['_toggleOffline'](){const _0x5914f2=_0x2658a4;this[_0x5914f2(0x1c2)](),this[_0x5914f2(0x3b8)](this['_state'][_0x5914f2(0x26a)]()),this['_unlockTransition']();}[_0x2658a4(0x4c3)](_0x19ee08=!0x1){const _0x642958=_0x2658a4;this[_0x642958(0x1c2)](),this[_0x642958(0x3b8)](this['_state']['toggleOnline']()),this[_0x642958(0x1ff)]();const _0x59aff1=this[_0x642958(0x1c8)];_0x19ee08&&_0x59aff1 instanceof ie&&(this[_0x642958(0x1c2)](),this[_0x642958(0x3b8)](_0x59aff1[_0x642958(0x25b)]()),this[_0x642958(0x1ff)]());}async[_0x2658a4(0x457)](){return new Promise(_0x38208d=>{const _0x13f562=_0x5b2d;this[_0x13f562(0x380)][_0x13f562(0x596)][_0x13f562(0x348)](v['take'](0x1))[_0x13f562(0x2a3)](async _0x42188e=>{const _0x3525f4=_0x13f562;_0x38208d(await this[_0x3525f4(0x29b)](_0x42188e===j['ONLINE']));});});}['_createHandler'](){const _0x56dbfd=_0x2658a4,_0x33d806=this[_0x56dbfd(0x35d)];return{'onStateChange':(_0x224903,_0x379412)=>{const _0x35d0e3=_0x56dbfd;if(_0x224903!==this['_state'])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x224903[_0x35d0e3(0x533)]+_0x35d0e3(0x25e)+_0x379412[_0x35d0e3(0x533)]+_0x35d0e3(0x2ff)+this[_0x35d0e3(0x1c8)][_0x35d0e3(0x533)]);this[_0x35d0e3(0x3b8)](_0x379412);},'onSendChangeset':_0x4003c0=>{const _0xef33b2=_0x56dbfd,_0x4690d2={'eventID':_[_0xef33b2(0x2d5)][_0xef33b2(0x265)],'data':{'unitID':_0x4003c0[_0xef33b2(0x35d)],'unitType':this['_type'],'changeset':_0x4003c0,'memberID':this[_0xef33b2(0x380)][_0xef33b2(0x408)]()}};this['session'][_0xef33b2(0x1f6)](_0x4690d2,this[_0xef33b2(0x35d)]);},'onMissingChangesets':({from:_0x619dad,to:_0x34dad4})=>{const _0x125389=_0x56dbfd;this[_0x125389(0x3dd)][_0x125389(0x4b0)]('[CollaborationEntity]',_0x125389(0x1eb)+_0x619dad+_0x125389(0x2fd)+_0x34dad4);const _0x2836e3={'eventID':_['CollaborationEvent'][_0x125389(0x589)],'data':{'unitID':_0x33d806,'unitType':this[_0x125389(0x5ae)],'from':_0x619dad,'to':_0x34dad4}};this[_0x125389(0x380)][_0x125389(0x1f6)](_0x2836e3,this[_0x125389(0x35d)]);}};}async[_0x2658a4(0x29b)](_0x1e74a4){const _0x1abdd5=_0x2658a4;var _0xdd7139,_0x444912;const _0x37f9e3=await this[_0x1abdd5(0x36f)]['loadOfflineData'](this[_0x1abdd5(0x35d)]),_0x7a66f5=(_0xdd7139=_0x37f9e3==null?void 0x0:_0x37f9e3[_0x1abdd5(0x1ad)])!=null?_0xdd7139:[],_0x44f1dd=(_0x444912=_0x37f9e3==null?void 0x0:_0x37f9e3[_0x1abdd5(0x280)])!=null?_0x444912:null,_0x41bb32=this['unitID'];try{this[_0x1abdd5(0x327)](_0x44f1dd,_0x7a66f5);}catch(_0x42dbe6){this[_0x1abdd5(0x3dd)][_0x1abdd5(0x2ad)](_0x42dbe6);}const _0x1daaf3=this[_0x1abdd5(0x1db)]();if(_0x1e74a4){const _0x1b88c6=Rt(this[_0x1abdd5(0x584)],_0x41bb32,this[_0x1abdd5(0x5ae)],_0x44f1dd,_0x7a66f5,_0x1daaf3);return _0x1b88c6 instanceof x?_0x1b88c6[_0x1abdd5(0x211)]():(_0x1b88c6 instanceof k||_0x1b88c6 instanceof W)&&_0x1b88c6[_0x1abdd5(0x2f3)](),_0x1b88c6;}return this['_injector'][_0x1abdd5(0x2d3)](G,_0x41bb32,this[_0x1abdd5(0x5ae)],_0x44f1dd,_0x7a66f5,_0x1daaf3);}[_0x2658a4(0x327)](_0x542623,_0x297fe9){const _0x515dfa=_0x2658a4;var _0x2da345,_0x165b87;const _0x305735=this[_0x515dfa(0x421)][_0x515dfa(0x506)][_0x515dfa(0x1e2)](this['_compressMutationService'][_0x515dfa(0x506)][_0x515dfa(0x2c9)]()['COMPRESS_MUTATION_APPLY']);(_0x2da345=_0x305735((_0x542623==null?void 0x0:_0x542623['mutations'])||[],null))==null||_0x2da345['forEach'](_0x3e7f9a=>this[_0x515dfa(0x407)]['executeCommand'](_0x3e7f9a['id'],_0x3e7f9a[_0x515dfa(0x415)])),(_0x165b87=_0x305735(_0x297fe9||[],null))==null||_0x165b87['forEach'](_0x15d34b=>this[_0x515dfa(0x407)][_0x515dfa(0x4ea)](_0x15d34b['id'],_0x15d34b[_0x515dfa(0x415)]));}},exports[_0x2658a4(0x2bf)]=Ke([I(0x3,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),I(0x4,a['Inject'](exports[_0x2658a4(0x20c)])),I(0x5,a[_0x2658a4(0x349)](_[_0x2658a4(0x2fa)])),I(0x6,a['Inject'](a[_0x2658a4(0x3fa)])),I(0x7,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),I(0x8,a[_0x2658a4(0x2f2)]),I(0x9,a[_0x2658a4(0x2db)]),I(0xa,N[_0x2658a4(0x305)]),I(0xb,a[_0x2658a4(0x223)]),I(0xc,a[_0x2658a4(0x4a2)](Te))],exports[_0x2658a4(0x2bf)]),exports[_0x2658a4(0x4b5)]=class extends exports[_0x2658a4(0x2bf)]{constructor(_0x470711,_0x3eb479,_0x5e6e8c,_0x437dcb,_0x5d220,_0x20cd54,_0x7fd3fd,_0x3d806b,_0x5c32b4,_0x3e399c,_0x21c4dd,_0x17f668,_0x42a405,_0x46bc62,_0xc2f301,_0x4ad2ba,_0x10a2a6){const _0x2b760e=_0x2658a4;super(_0x470711,_0x5e6e8c,_0x3eb479,_0x437dcb,_0x5d220,_0x20cd54,_0x7fd3fd,_0x3d806b,_0x42a405,_0x46bc62,_0xc2f301,_0x4ad2ba,_0x10a2a6),this[_0x2b760e(0x35d)]=_0x470711,this[_0x2b760e(0x2aa)]=_0x3eb479,this[_0x2b760e(0x347)]=_0x5c32b4,this[_0x2b760e(0x5bb)]=_0x3e399c,this['_docTransformSelectionsService']=_0x21c4dd,this[_0x2b760e(0x1e5)]=_0x17f668;}[_0x2658a4(0x1db)](){const _0x48fe88=_0x2658a4,_0x4e89d4=super[_0x48fe88(0x1db)]();return _0x4e89d4[_0x48fe88(0x1de)]=_0x2b6f2b=>this[_0x48fe88(0x5bb)][_0x48fe88(0x29f)](_0x2b6f2b),_0x4e89d4['onTransformSelections']=_0x204aff=>this[_0x48fe88(0x54e)]['transformSelections'](_0x204aff),_0x4e89d4[_0x48fe88(0x231)]=_0x5f5a90=>this[_0x48fe88(0x1e5)][_0x48fe88(0x2c3)](_0x5f5a90),_0x4e89d4[_0x48fe88(0x309)]=_0x20cb77=>this[_0x48fe88(0x5bb)][_0x48fe88(0x429)](_0x20cb77),_0x4e89d4;}async[_0x2658a4(0x567)](){const _0x153787=_0x2658a4,_0x4a6644=await super[_0x153787(0x567)]();return this[_0x153787(0x2f0)](this['_commandService'][_0x153787(0x1bf)]((_0x4a49a6,_0x210f64)=>{const _0x1324aa=_0x153787;if(_0x4a49a6[_0x1324aa(0x2aa)]!==a[_0x1324aa(0x444)][_0x1324aa(0x1a7)]||_0x210f64!=null&&_0x210f64[_0x1324aa(0x1b4)]||_0x210f64!=null&&_0x210f64['onlyLocal'])return;const _0x2a849f=_0x4a49a6[_0x1324aa(0x415)];if((_0x2a849f==null?void 0x0:_0x2a849f[_0x1324aa(0x3e6)])!==this[_0x1324aa(0x35d)])return;let _0xa81037=_0x4a49a6;if(_0xa81037['id']===V['RichTextEditingMutation']['id']){const _0x326065=_0xa81037[_0x1324aa(0x415)];_0xa81037={'id':V[_0x1324aa(0x1d1)]['id'],'type':a[_0x1324aa(0x444)][_0x1324aa(0x1a7)],'params':{'unitId':_0x326065[_0x1324aa(0x3e6)],'actions':_0x326065['actions'],'textRanges':null}};}const _0x6c8346=this['_compressMutationService'][_0x1324aa(0x506)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x1324aa(0x506)][_0x1324aa(0x2c9)]()[_0x1324aa(0x29e)])([_0xa81037],null)||[_0xa81037];this['_onLocalMutation'](_0x6c8346[0x0]);})),_0x4a6644;}},exports[_0x2658a4(0x4b5)]=Ke([I(0x3,a['Inject'](a[_0x2658a4(0x1f0)])),I(0x4,a[_0x2658a4(0x349)](exports['LocalCacheService'])),I(0x5,a[_0x2658a4(0x349)](_[_0x2658a4(0x2fa)])),I(0x6,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),I(0x7,a[_0x2658a4(0x349)](_[_0x2658a4(0x449)])),I(0x8,a['Inject'](w[_0x2658a4(0x590)])),I(0x9,a[_0x2658a4(0x349)](Ie)),I(0xa,a['Inject'](Ce)),I(0xb,a[_0x2658a4(0x349)](Ye)),I(0xc,a[_0x2658a4(0x2f2)]),I(0xd,a['ICommandService']),I(0xe,N['IMessageService']),I(0xf,a[_0x2658a4(0x223)]),I(0x10,a[_0x2658a4(0x4a2)](Te))],exports[_0x2658a4(0x4b5)]),exports['SheetCollaborationEntity']=class extends exports[_0x2658a4(0x2bf)]{constructor(_0x441877,_0x17d884,_0x519c28,_0x2b9499,_0x92a17d,_0x389c7c,_0x5655ca,_0x1569a0,_0x198bea,_0x32ff13,_0x26311a,_0x29ff4d,_0x4001ee,_0x273148){const _0x36bf77=_0x2658a4;super(_0x441877,_0x519c28,_0x17d884,_0x2b9499,_0x92a17d,_0x389c7c,_0x5655ca,_0x1569a0,_0x32ff13,_0x26311a,_0x29ff4d,_0x4001ee,_0x273148),this[_0x36bf77(0x35d)]=_0x441877,this['type']=_0x17d884,this[_0x36bf77(0x553)]=_0x198bea;}['_createHandler'](){const _0x5bcfa6=_0x2658a4,_0x2ccf52=super[_0x5bcfa6(0x1db)]();return _0x2ccf52['onTransformSelections']=_0x26dc5b=>this[_0x5bcfa6(0x553)][_0x5bcfa6(0x382)](_0x26dc5b),_0x2ccf52;}async['_init'](){const _0x2549df=_0x2658a4,_0x4a6115=await super[_0x2549df(0x567)]();return this[_0x2549df(0x2f0)](this[_0x2549df(0x407)][_0x2549df(0x1bf)]((_0x4b4e80,_0x200c88)=>{const _0x542430=_0x2549df;if(_0x4b4e80[_0x542430(0x2aa)]!==a[_0x542430(0x444)][_0x542430(0x1a7)]||_0x200c88!=null&&_0x200c88[_0x542430(0x1b4)]||_0x200c88!=null&&_0x200c88['onlyLocal'])return;const _0x42c6ab=_0x4b4e80[_0x542430(0x415)];if((_0x42c6ab==null?void 0x0:_0x42c6ab[_0x542430(0x3e6)])!==this[_0x542430(0x35d)])return;const _0x3c5b51=_0x4b4e80,_0x49450b=this[_0x542430(0x421)][_0x542430(0x506)][_0x542430(0x1e2)](this['_compressMutationService']['interceptor'][_0x542430(0x2c9)]()[_0x542430(0x29e)])([_0x3c5b51],null)||[_0x3c5b51];this[_0x542430(0x2d1)](_0x49450b[0x0]);})),_0x4a6115;}},exports[_0x2658a4(0x370)]=Ke([I(0x3,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),I(0x4,a['Inject'](exports[_0x2658a4(0x20c)])),I(0x5,a[_0x2658a4(0x349)](_['CompressMutationService'])),I(0x6,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)])),I(0x7,a['Inject'](_['RevisionService'])),I(0x8,a[_0x2658a4(0x349)](pe)),I(0x9,a[_0x2658a4(0x2f2)]),I(0xa,a[_0x2658a4(0x2db)]),I(0xb,N[_0x2658a4(0x305)]),I(0xc,a[_0x2658a4(0x223)]),I(0xd,a[_0x2658a4(0x4a2)](Te))],exports['SheetCollaborationEntity']);function _0x1540(){const _0x37f39c=['_transformUndoRedoStack','_univerInstanceService','_disabled','getCurrentUnitForType','RevisionService','resolve','name','collabSubmitChangesetUrl','csRejEvent','eventID','_refreshCollabCursors','_singleActiveUnitService','then','SNAPSHOT_INVALID_SNAPSHOT','_replaceFileID','&to=','getConfig','url(#off-line-single_clip0_910_343)','_createInitialState','toString','[CollaborationState]:\x20apply\x20error!','_unitStatus','_queuedRemoteChangesets','LICENSE_EXPORT_SIZE_EXCEEDED','getImage','getUnhiddenWorksheets','_cursors','next','INVALID_ARGUMENT','UNIVER_COLLABORATION_CLIENT_PLUGIN','add','@univerjs/sheets','_socket$','path','_messageService','subunit','_labelPosition','off-line-single_clip0_910_343','hasOwnProperty','YUUMI_UNABLE_LOAD_URL','not_collab','data','_instanceService','getColor','replaceTextRanges','append','8VHnWUE','isPermissionRej','getResourcesRequest','InsertSheetMutation','m1Prime','OffLineSingle','_initRequestHeader','collaboration.single-unit.warning','_clearUndo','10VuMPaI','setTimeout','synced','getFocusedUnit','FAIL','fillRule','HEARTBEAT_INTERVAL','unit-cache-','CollaborationStatus','_submitChangeset','getAncestorScale','updateCollaborator','unsubscribe','_transitionLocked','collab-text-range-','CHANGESET_REVISION_CONFILICT','[CollaborationUndoRedoService]','top','url(#$1','_initCloseConn','UNKNOWN_CMD','collabStatus.notCollab','incrementRevOfUnit','11090gmjVNo','onPointerMove$','/object/','?size=','_retryConnectingTimer','_onConflict','getDocRanges','shareReplay','isTransformMutationsWithChangesetFailure','IBeforeCloseService','registerOnClose','@univerjs/network','SheetSkeletonManagerService','_onCombEvent','_clearHeartbeatTimer','Optional','DocIMEInputManagerService','_onOffline','mergeOverrideWithDependencies','every','origin','revision','initWorkbookPermissionChange','[CollaborationSessionService]','forEach','xlink:href','addEventListener','getMember','RemoveRowCommandId','debug','_sendingTimer','deepClone','transform','auth.needGotoLoginAlert','DocCollaborationEntity','closeSession','SetWorksheetActivateCommand','apply','_clearScheduledTask','pluginName','saveImage','DesktopCollaborationStatusDisplayController','collab-text-anchor-','_loadDoc','3456045OEiAMF','onCommentUpdate','getValue','fill','_toggleOnline','joinEvent','gold400','CollaborationSessionService','_event$','_getScale','registerBeforeClose','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','LICENSE_MAX_UNITS_EXCEEDED','symbol','NOT_COLLAB','max','SnapshotServerOverHTTPService','_http','_exhaustRemoteChangesetQueue','_onCursorUpdate','onMouseMove','_onConnectionOpen','DependentOn','extend','push','SnapshotService','_getAPIPrefixPath','/allowed','fillText','_setupSubUnitSync','_localStorageService','originalMeta','Plugin','collaboration-client.config','uni.network.url-service','collaboration_new_changeset','_checkMissing','concat','IUniverInstanceService','SheetsSelectionsService','CommentService','@univerjs/docs','getCoordByCell','executeCommand','UNDEFINED','collaboration-client.offline-data-not-saved','commentUpdate$','propertyIsEnumerable','currentColor','?url=','_startTelemetryCollaborationNewChangeset','APPLY_REJECT','_themeService','_stopTelemetryCollaborationNewChangeset','parseChangesetToProtocol','saveSheetBlock','SNAPSHOT_URL_KEY','_getAnchorBounding','/unit/','doc.mutation.rich-text-editing','lineTo','_clearCollaborationTimeoutTimer','members','_showConflictNotification','_initUnitPermissionChange','CollaborationSocketService','delay','_handleEvent','removeMember','memberID','find','interceptor','distinctUntilChanged','_uiPartsService','[PendingState]:\x20received\x20acknowledgement.','_setupBeforeClosingHandler','snapshot','merge','show','state$','isInternalEditorID','RemoveColCommandId','IUndoRedoService','#fff','indexOf','_hovered','collabCursorState$','getSheetBlock','LIVESHARE_FETCH_OPERATIONS','_sendHeartbeat','_configService','_drawAnchor','serializeCombRequest','resize','_registerRenderDependencies','SetSelectionsOperation','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_shouldReportTelemetry','_undoRedoService','LOGIN_URL_KEY','INTERNAL_ERROR','assign','currentSkeleton$','conflict.title','stopTime','changesets','parse','ERROR_EXCEED_SIZE','_imageSourceCache','updatePermissionObjEvent','verdancy600','@univerjs-pro/collaboration','init','image/jpg','textRanges','length','status','setParam','useDependency','startColumn','close','_unitOnClients','_sessionStatus$','onload','deleteCollaborator','Unknown\x20user','_anchorDot','registerRefRange','_textBubble','onTransformSelections','WorkbookEditablePermission','defIds','liveShareOperation','MSG_FOR_ERROR','_socket','onMissedChangesetFetched','_getRedoStack','_sendHeartbeatTimer','PERMISSION_DENIED','_state$','connection\x20error','_toggleOffline','_colorIndex','_docTransformSelectionsService','NEW_CHANGESETS','uploadFileServerUrl','_sessions','startsWith','_sheetTransformSelectionsService','transformMutationsWithChangeset','_shapes','image/bmp','_handleHover','@univerjs/design','/-/object/list','InsertRowCommandId','tag','removeParam','getWorkbookSelections','COLORS','handleDeleteRangeMoveUp','/new_changes','&source=','_collabSessionService','socketService','updateMember','permission.content','@univerjs/core','_init','subscribeEvent','/role','requestParams','onRemoteRej','reject','_scheduleHeartbeat','ACTIVE_UNIT_EVENT_CHANNEL','_collabCursorState$','BuiltInUIPart','action','getSkeleton','_colorAssignService','UPDATE_CURSOR','Warning','dispose$','IAuthzIoService','SetDocZoomRatioOperation','IRemoteInstanceService','COLLAB_WEB_SOCKET_URL','ITelemetryService','getRangePointData','defs','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','ImageSourceType','isTransformMutationsWithChangesetSuccess','ws://127.0.0.1:8000/universer-api/comb/connect','liveShareNewHost','_snapshotService','_injector','getParam','_initCommandExecutedListener','clearTimeout','jiqing500','FETCH_MISSING','BehaviorSubject','HTTPRequest','from','ranges','searchParams','CollaborationController','DocStateChangeManagerService','_updateURLWithCurrentState','setCurrentUser','CHANGESET_ACK','_drawTextRange','focused$','sessionStatus$','Rect','authzUrl','_name','getSheetObject','1583280mTJDJP','/universer-api/comb','enableAuthServer','_initModules','_initMergeInterceptor','_getSignURL','drawWith','univerjs-icon\x20univerjs-icon-','_onUserJoin','attrs','collabStatus.fetchMiss','transformStack\x20failed!','_collaborationController','getTypeOfUnitDisposed$','_getLoginPath','INGEST','LICENSE_IMPORT_SIZE_EXCEEDED','enableOfflineEditing','CONNECTOR_DATA_TOO_LARGE','_type','switchMap','3222sJJidd','sessionStatus','on-line-single_clip0_910_349','_selfUnitIDs','FETCH_MISS','_executeRemoteChangeset','height','saveChangeset','generateRandomId','createIdentifier','onStarting','_docTransformIMECacheService','ColorKit','transformByState','isValidRectRange','displayName','_localeService','currentTheme$','MUTATION','univer-pro.collaboration-client.single-active-unit-service','debounceTime','CollaborationSession','InsertColCommandId','isActive','mutations','setWaitCount','_transformRemoteChangesetByIMECache','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','IURLService','@univerjs/drawing','HEARTBEAT_TIMEOUT','fromCollab','_clearTimeoutTimer','getOwnPropertySymbols','encodeURIComponent','_applyRemoteChangeset','m2Prime','disableLocalCache','sheetId','children','textEncoder','univer-pro.collaboration-client-socket-service','onCommandExecuted','_updateSubUnitFromURLParams','COMMENT_UPDATE','_lockTransition','OnLineSingle','_waitForHeartbeatResponse','_collaborationPaused','objectID','Tooltip','_state','univer-online-status-icon','getAttachHeader','fromEvent','idSuffix','unshift','onPointerLeave$','isTransformMutationFailure','arc','RichTextEditingMutation','COMPRESS_MUTATION_APPLY','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_acknowledgedAwaitingChangeset','HEARTBEAT','USERS_ENTER','Vector2','prototype','socket$','addObject','_createHandler','getTime','AWAITING','onTransformIME','Disposable','_anchor','HttpExport','fetchThroughInterceptors','_undoStacks','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_docSyncEditingCollabCursorService','#FFF','concatMap','UNIVER_DOC','JOINING','_range','fetching\x20missing\x20changesets\x20from\x20','map','2296CmNPds','_throwTelemetryCollaborationNewChangeset','UNRECOGNIZED','Injector','_redoStacks','skeleton','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_urlService','serializeRangeWithSheet','send','catch','13953560hWoqME','Subject','_context','clipPath','OFFLINE','setShapeProps','_createSocket','_unlockTransition','setItem','3097712EniOwf','c1Prime','JSONX','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','/universer-api/file/{fileID}/sign-url','debounce','WebSocketService','SNAPSHOT_SERVER_URL_KEY','result','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','putCollaborators','LocalCacheService','reduce','href','_onUserLeave','_scheduleSaving','_schedule','_onFetchMissResult','_HTTPService','getTypeOfUnitAdded$','_getSaveTimeout','roomMembers$','leaveEvent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getOffsetConfig','LifecycleStages','list','CollaborationStatusDisplay','UNIVER_SLIDE','DataLoaderController','_ensureSubject','SessionStatus','editingUnit','getOwnPropertyDescriptor','IPermissionService','submit\x20changeset\x20error!','telemetry\x20info\x20is\x20not\x20initialized','close$','measureText','image/jpeg','color','getImageSourceCache','_startDocCollabCursor','values','c2Prime','_hideTimer','_scheduleClearOtherTimer','onRemoteChangeset','onSyncEditingCollabCursor','_beforeCloseService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_socketMessageSubscription','loadOfflineData','getUndoRedoMutationParamsCache','1em','AWAITING_WITH_PENDING','_telemetryInfo','RETRY_CONNECTING_MAX_COUNT','endRow','XHRHTTPImplementation','ERROR_IMAGE','create','toDisposable','LIVESHARE_OPERATION','UNAUTHENTICATED','json','code','BASE64','PERMISSION_REJ','encode','YUUMI_RATE_OVER_LIMIT','/resources','_substituteRedoStack','purple300','fromEventSubject','DocSelectionManagerService','_removeClearOtherTimer','joinRsp','parseProtocolChangeset','IUIPartsService','_document','combineLatest','getCollabCursors$','collabStatus.offline','socket\x20close','APPLY_REVISION_CONFILICT','/universer-api/authz','ISnapshotServerService','_listenToOfflineEvent','/collaborator','fetchMiss','updateCursorEvent','_transformStack','\x0aAfter:\x20','onMissingChangesets','saveOfflineData','VIEWPORT_KEY','handleIRemoveCol','_saveTaskMap','title','SUBMIT_CHANGESET','url(#on-line-single_clip0_910_349)','LIVESHARE_NEW_HOST','enableLocalCache','copyFileMeta','toggleOffline','url','_loadSheet','loginUrlKey','APPLY_PERMISSION_DENIED','bottom','COMPLETION_FINISHED','_listenToOnlineEvent','onPointerEnter$','userID','collabStatus.conflict','isEditing','div','Error\x20on\x20receiving\x20event','_getCurrentRevision','update','Shape','setConfig','_eventUnsubscribe','unknown','_awaitingChangeset','rev','awaitingChangeset','objectType','UUID','unload','_snapshotServerService','replace','_getSendChangesetTimeout','SEND_CHANGESET_TIMEOUT_KEY','CHANGESET_REJ','newValue','pauseCollaboration','subUnitId','width','handleDeleteRangeMoveLeft','setUndoRedoMutationParamsCache','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','text','workbook','_config','/fetchmissing?from=','getRelativeToViewportCoord','infoRsp','@univerjs/rpc','save\x20fail\x20reason\x20is\x20','transformUndoRedo','getDeserializedSheetBlock','forwardRef','_createInitialStateImpl','evenodd','visibilityState','COMPRESS_MUTATION_SEND','transformIMECache','baseRev','_notificationService','override','subscribe','put','_remoteChangesetQueue','UniverIcon','_updateLocalCursor','COLLAB_SUBMIT_CHANGESET_URL_KEY','_httpService','type','entries','_revisionService','error','clear','YUUMI_SUBSCRIPTION_NOT_FOUND','/universer-api/oidc/authpage','engine','_scheduleCollaborationTimeoutTimer','_removeRoom','JOIN','toStringTag','YUUMI_URL_COL_OUT_OF_RANGE','collaborators','handleInsertCol','black','_onJoinRoomEvent','activeSheet$','cmd','PENDING','_disableEditing','CollaborationEntity','_incrementRevisionNumber','_updateStatus','post','syncEditingCollabCursor','getUnitOnRev','fetch_missing','HELLO','sequenceExecute','getCurrentUser','getInterceptPoints','_roomMembers$','MergeInterceptorFactory','call','filter','set','univer-online','Tools','_onLocalMutation','LICENSE_DISTRO_REJECTED','createInstance','_onRemoteACK','CollaborationEvent','ILocalStorageService','_handleHeartbeatEvent','SheetCollabCursorShape','/block/','RECV','ICommandService','_docSkeleton','setInterval','/rev/','loadDoc','image/png','_getDownloadEndpointURL','FileId','body','none','use','_startCollaboration','getCurrentRevOfUnit','roomInfos','sendChangesetTimeout','_send','getUnitType','DEFAULT_FILE_NAME','awaiting','_backgroundColor','UniverCollaborationClientPlugin','disposeWithMe','_entityInit$','ILogService','resend','setActiveRange','history','isArray','Undefined','objectActions','contains','CompressMutationService','SYNCED','save','\x20to\x20','UnitSnapshot','\x0aCurrent:\x20','_draw','_entities','patch','_status$','has','IMessageService','cursorInfo$','_collaborationTimeoutTimer','exhaustSavingTask','onTransformRemoteChangesetByIMECache','includes','_roomMembers','defineProperty','moveTo','selections','responseType','listCollaborators','cursorInfo','/universer-api/snapshot','UniverInstanceType','ThemeService','fillStyle','_session','transformMutation','restore','batchAllowed','CONFLICT','_sheetSkeletonManagerService','_render','OTHER_CLIENTS_EDITING','SheetPermissionInitController','_scheduleTimestamp','slice','_retryCount','all','_onRefRangeChange','_rescheduleHeartbeat','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','row','_replayCachedMutations','b64DecodeUnicode','asObservable','editing\x20status\x20changed\x20to','PSEUDO_FETCH_MISSING_RESULT','_tryReconnect','_transformPreviousActiveRange','_collabCursorController','mapDocumentTypeToUniverType','useRef','resourceIDs','_drawRectRange','range','ITransformService','_change$','_removeCollabCursors','key','[SyncedState]:\x20received\x20acknowledgement.','/-/object/-/batch_allowed','_commentService','getSheetId','_scene','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','round','rxjs/operators','transformChangesets','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','actions','message$','target','string','handleIRemoveRow','_docStateChangeManagerService','pipe','Inject','WebURLService','_getSheetObject','_permissionService','AuthzIoHttpService','visibilitychange','urlChange$','split','_getAPIPrefix','image/gif','UniverCollaborationPlugin','RxDisposable','unit','updatePermissionPoint','size','782097yZVLLl','[SyncedState]:\x20received\x20rejection.','IConfigService','createCollaborator','_telemetryService','unitID','with','TOO_MANY_REQUESTS','@univerjs-pro/license','_onCursorDelete','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','flatMap','delete','getUnitId','onRemoteAck','_commentUpdate$','headers','UNIVER_PROJECT','sheets','loadSheet','SetTextSelectionsOperation','requireSession','online','_localCacheService','SheetCollaborationEntity','addImageSourceCache','collab-rect-range-','_waitCount','getUniverSheetInstance','univer-online-status-title','getRenderById','TEXT_RANGE_LAYER_INDEX','routeKey','_assignedColors','_refRangeService','offline','_joinRoom','updateOfflineData','csAckEvent','/universer-api/stream/file/upload','session','reconnect','transformSelections','createSocket','RegularPolygon','_members','LIVESHARE_REQUEST_HOST','[DataLoaderController]','_updateCollabCursors','toRgbString','SHOULD_CLOSE_CONN','Starting','column','_getMergeRange','session.collaboration-timeout','red300','getCollabEntity$','collaboration-session-retry','_syncEditingCollabCursorService','_hover','_handler','isTransformChangesetsSuccess','ImageUploadStatusType','VIEW_MAIN','_cursorShapes','_getUploadFileURL','font','shouldCloseConn','_transformUndoredo','onlineStatus','event$','_candidateSocket','_collaborationSessionService','HEADER_MENU','fetchMissingChangesets','_substituteUndoStack','roomMembers','awaiting_with_pending','_timeoutTimer','_onRemoteRejected','POST','\x20-\x20','...','_socketService','_color','_pendingMutations','ONLINE','clearInterval','_getCtorByUniverType','takeUntil','onSendChangeset','USERS_LEAVE','pending','svg','_heartbeatTimer','compose','_updateState','clsx','state','downloadEndpointUrl','now','status$','_getUndoStack','min','collabStatus.syncing','_renderManagerService','Error','dispose','_isPermissionRej','_startSheetCollabCursor','AUTHZ_URL_KEY','_cursor','_transformService','getUnitStatus$','{fileID}','_decreaseWaiting','get','localeService','session.room-full','allowed','permissionRejEvent','registerRenderModule','UNIVER_SHEET','rxjs','@univerjs/engine-render','_getSnapshotAPIPrefix','_onMessage','ALREADY_EXISTS','ImageIoService','runRefRangeMutations','LEAVE','UnitEmbedded','_syncEditingCollabCursor','_logService','COLLAB_WEB_SOCKET_URL_KEY','startRow','_onRecvEvent','readAsDataURL','_updateLocalCache','src','pushState','onTransformChange$','unitId','_cursorInfo$','EffectRefRangId','className','_fetchMissChangesets','@univerjs/sheets-ui','[PendingState]:\x20received\x20rejection.','popstate','Module','handleMoveRange','open$','[UniverCollaborationClientPlugin]','hovered','_ws','_onRemoteChangeset','take','hide','retryConnectingInterval','_memberService','registerHTTPInterceptor','LocaleService','conflict.content','_saveCache','LIVESHARE_TERMINATE','_initStatusComponent','react','UNKNOWN_CODE','_clearRedo','UserManagerService','deserializeToCombResponse','0\x200\x2017\x2016','_socketReady','MessageType','_commandService','getMemberID','Univer','random','appendMutation','_unitID','_lastPointer','_clearOtherTimers','throttleTime','NO_OTHER_CLIENTS_EDITING','_initEventListeners','_userManagerService','_tryEnsureSocket','HTTPService','params','socket\x20open.','replaceState','triggerDblclick','IImageIoService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_onConnectionFailed','DisposableCollection','createElement','toggleOnline','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','mapTo','_compressMutationService','conflict','_clearLocalCache','getSheetBySheetId','colorChannel1','[OfflineState]:\x20received\x20changeset.','stringify','_initResize','transformRemoteChangeset','IRenderManagerService','UNIVER_UNKNOWN','OnLifecycle','icon','_id','_docSkeletonManagerService','assignAColorForMemberID','complete','_cachedData','onStateChange','onlineStatusIcon','handleInsertRow','Workbook','UPDATE_PERMISSION_OBJ','handleInsertRangeMoveRight','failed\x20to\x20apply\x20missed\x20changesets!','getVpScrollXYInfoByPosToVp','ICollaborationSocketService','setAlpha','HttpImport','Ready','NOT_FOUND','_online','TRANSFORM_CHANGE_OBSERVABLE_TYPE','location','error$','CommandType'];_0x1540=function(){return _0x37f39c;};return _0x1540();}var ks=Object['defineProperty'],Bs=Object[_0x2658a4(0x222)],Vs=(_0x237478,_0x302e6c,_0x14cd67,_0x5e7be3)=>{const _0x443095=_0x2658a4;for(var _0x10c879=_0x5e7be3>0x1?void 0x0:_0x5e7be3?Bs(_0x302e6c,_0x14cd67):_0x302e6c,_0x5aaacc=_0x237478[_0x443095(0x532)]-0x1,_0x30df32;_0x5aaacc>=0x0;_0x5aaacc--)(_0x30df32=_0x237478[_0x5aaacc])&&(_0x10c879=(_0x5e7be3?_0x30df32(_0x302e6c,_0x14cd67,_0x10c879):_0x30df32(_0x10c879))||_0x10c879);return _0x5e7be3&&_0x10c879&&ks(_0x302e6c,_0x14cd67,_0x10c879),_0x10c879;},Pe=(_0x1454bc,_0x544683)=>(_0x2a0def,_0x3c0742)=>_0x544683(_0x2a0def,_0x3c0742,_0x1454bc);exports[_0x2658a4(0x58f)]=class extends a[_0x2658a4(0x354)]{constructor(_0x135d27,_0x2064dd,_0x487bd2){const _0x1e6b8b=_0x2658a4;super(),d(this,_0x1e6b8b(0x301),new Map()),d(this,_0x1e6b8b(0x2f1),new v['Subject']()),(this[_0x1e6b8b(0x584)]=_0x135d27,this[_0x1e6b8b(0x562)]=_0x2064dd,this[_0x1e6b8b(0x446)]=_0x487bd2,this['_init']());}[_0x2658a4(0x3c3)](){const _0x20375f=_0x2658a4;super[_0x20375f(0x3c3)](),this[_0x20375f(0x301)]['forEach'](_0x165b8c=>_0x165b8c['dispose']()),this[_0x20375f(0x301)]['clear']();}['getCollabEntity'](_0x535092){const _0x17bc9c=_0x2658a4;var _0x28d25e;return(_0x28d25e=this[_0x17bc9c(0x301)][_0x17bc9c(0x3cc)](_0x535092))!=null?_0x28d25e:null;}[_0x2658a4(0x390)](_0x7fbcbb){const _0x7d3486=_0x2658a4,_0x12238a=this['getCollabEntity'](_0x7fbcbb);return _0x12238a?v['of'](_0x12238a):this['_entityInit$'][_0x7d3486(0x348)](E[_0x7d3486(0x2cd)](_0x1bfefd=>_0x1bfefd[_0x7d3486(0x35d)]===_0x7fbcbb));}[_0x2658a4(0x567)](){const _0x526462=_0x2658a4;this[_0x526462(0x446)][_0x526462(0x214)](a[_0x526462(0x313)][_0x526462(0x3d2)])['pipe'](v['takeUntil'](this['dispose$']),E[_0x526462(0x501)](0x10))[_0x526462(0x2a3)](async _0x74bb46=>{const _0x25dcd5=_0x526462,_0x405393=_0x74bb46['getUnitId'](),_0x2f0bd1=await this[_0x25dcd5(0x2e6)](_0x405393,$[_0x25dcd5(0x3d2)]);this['_entities'][_0x25dcd5(0x2ce)](_0x405393,_0x2f0bd1);}),this['_univerInstanceService'][_0x526462(0x214)](a[_0x526462(0x313)][_0x526462(0x1e8)])[_0x526462(0x348)](v[_0x526462(0x3b1)](this[_0x526462(0x576)]),E['delay'](0x10))[_0x526462(0x348)](E[_0x526462(0x2cd)](_0x12dd6b=>!_0x12dd6b['getUnitId']()[_0x526462(0x552)]('__')))[_0x526462(0x2a3)](async _0x58b9e0=>{const _0x4704e3=_0x526462,_0x15fc33=_0x58b9e0['getUnitId'](),_0xae9df5=await this[_0x4704e3(0x2e6)](_0x15fc33,$[_0x4704e3(0x1e8)]);this[_0x4704e3(0x301)][_0x4704e3(0x2ce)](_0x15fc33,_0xae9df5);}),v[_0x526462(0x50c)](this['_univerInstanceService'][_0x526462(0x5a8)](a[_0x526462(0x313)]['UNIVER_SHEET']),this[_0x526462(0x446)][_0x526462(0x5a8)](a[_0x526462(0x313)]['UNIVER_DOC']))[_0x526462(0x348)](v['takeUntil'](this[_0x526462(0x576)]))[_0x526462(0x2a3)](_0x3663db=>{const _0x43e334=_0x526462,_0x3b8961=_0x3663db[_0x43e334(0x365)](),_0x3cae46=this['_entities'][_0x43e334(0x3cc)](_0x3b8961);_0x3cae46&&(_0x3cae46[_0x43e334(0x3c3)](),this[_0x43e334(0x301)]['delete'](_0x3b8961));});}async[_0x2658a4(0x2e6)](_0x4f16f4,_0x369b7e){const _0x23746a=_0x2658a4,_0x2fc072=await this[_0x23746a(0x562)][_0x23746a(0x36d)](_0x4f16f4),_0x17fffc=this['_injector'][_0x23746a(0x2d3)](this['_getCtorByUniverType'](_0x369b7e),_0x4f16f4,_0x369b7e,_0x2fc072);return await _0x17fffc['init'](),this[_0x23746a(0x2f1)][_0x23746a(0x460)](_0x17fffc),_0x17fffc;}[_0x2658a4(0x3b0)](_0x27b4a3){const _0x19927a=_0x2658a4;switch(_0x27b4a3){case $[_0x19927a(0x1e8)]:return exports[_0x19927a(0x4b5)];case $['UNIVER_SHEET']:return exports[_0x19927a(0x370)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x27b4a3);}}},exports[_0x2658a4(0x58f)]=Vs([Pe(0x0,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),Pe(0x1,a['Inject'](exports['CollaborationSessionService'])),Pe(0x2,a['IUniverInstanceService'])],exports[_0x2658a4(0x58f)]);const nt=[_0x2658a4(0x24a),_0x2658a4(0x588),_0x2658a4(0x52d),_0x2658a4(0x38f),'blue400',_0x2658a4(0x4c5)];class Xe extends a[_0x2658a4(0x1df)]{constructor(){const _0x271397=_0x2658a4;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x271397(0x54d),0x0);}['assignAColorForMemberID'](_0x3a6ef8){const _0x53723d=_0x2658a4;if(this[_0x53723d(0x379)][_0x53723d(0x304)](_0x3a6ef8))return this[_0x53723d(0x379)]['get'](_0x3a6ef8);const _0x282c37=nt[this[_0x53723d(0x54d)]];return this[_0x53723d(0x54d)]=(this[_0x53723d(0x54d)]+0x1)%nt[_0x53723d(0x532)],this[_0x53723d(0x379)][_0x53723d(0x2ce)](_0x3a6ef8,_0x282c37),_0x282c37;}}var Ws=Object[_0x2658a4(0x30c)],Fs=Object[_0x2658a4(0x222)],Gs=(_0x247906,_0x467e1e,_0x5262e9,_0x170c44)=>{const _0x36700f=_0x2658a4;for(var _0x874a77=_0x170c44>0x1?void 0x0:_0x170c44?Fs(_0x467e1e,_0x5262e9):_0x467e1e,_0x1921ca=_0x247906[_0x36700f(0x532)]-0x1,_0x15bf0a;_0x1921ca>=0x0;_0x1921ca--)(_0x15bf0a=_0x247906[_0x1921ca])&&(_0x874a77=(_0x170c44?_0x15bf0a(_0x467e1e,_0x5262e9,_0x874a77):_0x15bf0a(_0x874a77))||_0x874a77);return _0x170c44&&_0x874a77&&Ws(_0x467e1e,_0x5262e9,_0x874a77),_0x874a77;},Q=(_0xf886ad,_0x5a04bc)=>(_0x4c27cf,_0x52404b)=>_0x5a04bc(_0x4c27cf,_0x52404b,_0xf886ad);const Ys=0x12c,Ks=0x64,Xs=()=>{let _0x4f8ec9=[],_0x2259fd=!0x1;return _0x27909f=>{const _0x566224=_0x5b2d;_0x4f8ec9[_0x566224(0x4d7)](_0x27909f),_0x2259fd||(_0x2259fd=!0x0,setTimeout(()=>{const _0x33595a=_0x566224;_0x4f8ec9[_0x33595a(0x4ab)](_0x2754c6=>_0x2754c6()),_0x4f8ec9=[],_0x2259fd=!0x1;}));};};let He=class extends a[_0x2658a4(0x354)]{constructor(_0x46463b,_0x51d6b4,_0x5e2af6,_0x1e1b0e,_0x4c1267,_0x56fd78,_0x481f01,_0x4ba942){const _0x53bff9=_0x2658a4;super(),d(this,_0x53bff9(0x440),!0x1),d(this,_0x53bff9(0x567),!0x1),d(this,'_cursorInfo$',new v[(_0x53bff9(0x58a))](new Map())),d(this,_0x53bff9(0x306),this[_0x53bff9(0x3e7)][_0x53bff9(0x329)]()),d(this,_0x53bff9(0x2ca),new v['BehaviorSubject']([])),d(this,_0x53bff9(0x216),this['_roomMembers$'][_0x53bff9(0x348)](v[_0x53bff9(0x1a9)](Ys))),d(this,'_updateLocalCursor',a[_0x53bff9(0x206)]((_0x5c0e02,_0x4efacc)=>{const _0x3e157b=_0x53bff9,_0x30240d={'eventID':_[_0x3e157b(0x2d5)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3e157b(0x316)][_0x3e157b(0x408)](),'selection':Je[_0x3e157b(0x1f5)](_0x5c0e02,_0x4efacc[_0x3e157b(0x333)])}};this[_0x3e157b(0x316)]['send'](_0x30240d,this[_0x3e157b(0x35d)]);},Ks)),(this[_0x53bff9(0x35d)]=_0x46463b,this[_0x53bff9(0x316)]=_0x51d6b4,this[_0x53bff9(0x584)]=_0x5e2af6,this[_0x53bff9(0x573)]=_0x1e1b0e,this[_0x53bff9(0x3f8)]=_0x4c1267,this['_univerInstanceService']=_0x56fd78,this[_0x53bff9(0x407)]=_0x481f01,this['_refRangeService']=_0x4ba942);}get[_0x2658a4(0x311)](){const _0x2ad5ba=_0x2658a4;return this[_0x2ad5ba(0x3e7)][_0x2ad5ba(0x4c1)]();}get[_0x2658a4(0x3a4)](){const _0x5c7618=_0x2658a4;return this['_roomMembers$'][_0x5c7618(0x4c1)]();}[_0x2658a4(0x3c3)](){const _0x4f7551=_0x2658a4;super['dispose'](),this[_0x4f7551(0x3e7)][_0x4f7551(0x460)](new Map()),this[_0x4f7551(0x3e7)]['complete'](),this[_0x4f7551(0x2ca)]['next']([]),this[_0x4f7551(0x2ca)][_0x4f7551(0x431)]();}[_0x2658a4(0x52f)](){const _0xa7ca80=_0x2658a4;this[_0xa7ca80(0x567)]||(this[_0xa7ca80(0x567)]=!0x0,this['_session']['sessionStatus$'][_0xa7ca80(0x348)](v[_0xa7ca80(0x3b1)](this[_0xa7ca80(0x576)]))['subscribe'](_0x9c0583=>{const _0x5c6bca=_0xa7ca80;_0x9c0583===j[_0x5c6bca(0x3ae)]?this[_0x5c6bca(0x4c3)]():this[_0x5c6bca(0x54c)]();}),this[_0xa7ca80(0x316)][_0xa7ca80(0x39e)]['pipe'](v[_0xa7ca80(0x3b1)](this[_0xa7ca80(0x576)]))[_0xa7ca80(0x2a3)](_0x12db6a=>{const _0x3ac3e7=_0xa7ca80,_0xdc7d88=_0x12db6a[_0x3ac3e7(0x44e)];_0xdc7d88===_[_0x3ac3e7(0x2d5)][_0x3ac3e7(0x574)]&&this[_0x3ac3e7(0x4d2)](_0x12db6a),_0xdc7d88===_[_0x3ac3e7(0x2d5)][_0x3ac3e7(0x3b3)]&&this[_0x3ac3e7(0x361)](_0x12db6a);}),this[_0xa7ca80(0x323)](),this[_0xa7ca80(0x2f0)](this[_0xa7ca80(0x407)][_0xa7ca80(0x1bf)](_0x213a51=>{const _0x231b68=_0xa7ca80;if(this[_0x231b68(0x440)]&&_0x213a51['id']===C[_0x231b68(0x51e)]['id']&&_0x213a51[_0x231b68(0x415)][_0x231b68(0x3e6)]===this[_0x231b68(0x35d)]){const _0x271a20=_0x213a51[_0x231b68(0x415)];this[_0x231b68(0x2a7)](_0x271a20[_0x231b68(0x28b)],_0x271a20['selections'][0x0]);}})));}[_0x2658a4(0x4d2)](_0x2f3eac){const _0x2b3b47=_0x2658a4;var _0x4c8911,_0x10d70d;const {memberID:_0x62b695,selection:_0x1d6eb8}=_0x2f3eac['data'],{sheetName:_0x2fe341,range:_0x593d35}=Je['deserializeRangeWithSheet'](_0x1d6eb8),_0x723107={'name':(_0x10d70d=(_0x4c8911=this[_0x2b3b47(0x3f8)][_0x2b3b47(0x4ae)](this[_0x2b3b47(0x35d)],_0x62b695))==null?void 0x0:_0x4c8911[_0x2b3b47(0x44b)])!=null?_0x10d70d:_0x2b3b47(0x53c),'range':this['_getMergeRange'](_0x2fe341,_0x593d35),'sheetID':_0x2fe341,'color':this[_0x2b3b47(0x573)][_0x2b3b47(0x430)](_0x62b695),'selection':_0x1d6eb8},_0x35825c=this['cursorInfo'];_0x35825c[_0x2b3b47(0x2ce)](_0x62b695,_0x723107),this[_0x2b3b47(0x3e7)]['next'](_0x35825c);}[_0x2658a4(0x361)](_0x53dbc3){const _0x9d5502=_0x2658a4,{memberID:_0x3b5dd5}=_0x53dbc3[_0x9d5502(0x46e)],_0x206a0d=this[_0x9d5502(0x311)];_0x206a0d['delete'](_0x3b5dd5),this[_0x9d5502(0x3e7)][_0x9d5502(0x460)](_0x206a0d);}[_0x2658a4(0x38d)](_0x4a7c93,_0x22756b){const _0x536ec2=_0x2658a4;var _0x7faf26,_0x2e9a7d;const _0x5a036c=(_0x2e9a7d=(_0x7faf26=this[_0x536ec2(0x446)][_0x536ec2(0x374)](this['unitID']))==null?void 0x0:_0x7faf26[_0x536ec2(0x424)](_0x4a7c93))==null?void 0x0:_0x2e9a7d['getMergeData']();return(_0x5a036c==null?void 0x0:_0x5a036c[_0x536ec2(0x505)](_0x374dbd=>a['Rectangle'][_0x536ec2(0x2f9)](_0x374dbd,_0x22756b)))||_0x22756b;}[_0x2658a4(0x323)](){const _0x48532a=_0x2658a4,_0x14611d=new a[(_0x48532a(0x41c))](),_0x426ec1=Xs(),_0x5928ce=()=>{const _0x10d002=_0x48532a;_0x14611d['dispose']();const _0x1e3a63=(_0x17a036,_0x3884ea,_0x520f07,_0x4ce69a)=>{const _0xab0363=_0x5b2d;let _0x12ec18=[];switch(_0x17a036['id']){case C[_0xab0363(0x3e8)]['DeleteRangeMoveLeftCommandId']:{_0x12ec18=C[_0xab0363(0x28d)](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)]['DeleteRangeMoveUpCommandId']:{_0x12ec18=C[_0xab0363(0x55f)](_0x17a036,_0x4ce69a);break;}case C['EffectRefRangId'][_0xab0363(0x1ab)]:{_0x12ec18=C[_0xab0363(0x2b8)](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)]['InsertRangeMoveDownCommandId']:{_0x12ec18=C['handleInsertRangeMoveDown'](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)]['InsertRangeMoveRightCommandId']:{_0x12ec18=C[_0xab0363(0x438)](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)][_0xab0363(0x55a)]:{_0x12ec18=C[_0xab0363(0x435)](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)]['MoveRangeCommandId']:{_0x12ec18=C[_0xab0363(0x3ef)](_0x17a036,_0x4ce69a);break;}case C[_0xab0363(0x3e8)][_0xab0363(0x510)]:{_0x12ec18=C[_0xab0363(0x262)](_0x17a036,_0x4ce69a);break;}case C['EffectRefRangId'][_0xab0363(0x4af)]:{_0x12ec18=C[_0xab0363(0x346)](_0x17a036,_0x4ce69a);break;}}const _0x12c1db=C[_0xab0363(0x3d9)](_0x12ec18,_0x4ce69a),_0x433be3=this['cursorInfo'][_0xab0363(0x3cc)](_0x3884ea);if(_0x433be3&&_0x12c1db){const _0x480322={..._0x433be3,'range':_0x12c1db};this[_0xab0363(0x311)][_0xab0363(0x2ce)](_0x3884ea,_0x480322),_0x426ec1(()=>{const _0x47a9a3=_0xab0363,_0x51ca7d=this[_0x47a9a3(0x37a)]['registerRefRange'](_0x12c1db,_0x278b50=>(_0x51ca7d[_0x47a9a3(0x3c3)](),_0x1e3a63(_0x278b50,_0x3884ea,_0x520f07,_0x12c1db)));_0x14611d[_0x47a9a3(0x463)](_0x51ca7d);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x10d002(0x4ab)]((_0x28b4de,_0x447039)=>{const _0x573fd8=_0x10d002,{range:_0x3c18ce,sheetID:_0x31d549}=_0x28b4de,_0x162a6a=this['_refRangeService'][_0x573fd8(0x53e)](_0x3c18ce,_0x18af8a=>(_0x162a6a[_0x573fd8(0x3c3)](),_0x1e3a63(_0x18af8a,_0x447039,_0x31d549,_0x3c18ce)));_0x14611d[_0x573fd8(0x463)](_0x162a6a);});};this[_0x48532a(0x2f0)](a[_0x48532a(0x23f)](this[_0x48532a(0x3e7)][_0x48532a(0x2a3)](()=>{_0x5928ce();})));}[_0x2658a4(0x4c3)](){const _0xd1acfa=_0x2658a4;var _0x460911,_0x41dfd4;if(this['_online']=!0x0,((_0x460911=this[_0xd1acfa(0x446)][_0xd1acfa(0x47f)]())==null?void 0x0:_0x460911[_0xd1acfa(0x365)]())!==this[_0xd1acfa(0x35d)])return;const _0x5639a7=(_0x41dfd4=this[_0xd1acfa(0x584)][_0xd1acfa(0x3cc)](C['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x41dfd4[0x0],_0x32e580=this[_0xd1acfa(0x446)][_0xd1acfa(0x448)](a[_0xd1acfa(0x313)]['UNIVER_SHEET'])['getActiveSheet']();_0x5639a7&&_0x32e580&&this['_updateLocalCursor'](_0x32e580[_0xd1acfa(0x33b)](),_0x5639a7);}[_0x2658a4(0x54c)](){this['_online']=!0x1;}};He=Gs([Q(0x2,a['Inject'](a[_0x2658a4(0x1f0)])),Q(0x3,a[_0x2658a4(0x349)](Xe)),Q(0x4,a[_0x2658a4(0x349)](q)),Q(0x5,a[_0x2658a4(0x4e5)]),Q(0x6,a[_0x2658a4(0x2db)]),Q(0x7,a[_0x2658a4(0x349)](C['RefRangeService']))],He);var qs=Object[_0x2658a4(0x30c)],zs=Object['getOwnPropertyDescriptor'],Js=(_0x111af5,_0x520e4a,_0x464f09,_0x3b8b24)=>{const _0x2f53e7=_0x2658a4;for(var _0x1f6833=_0x3b8b24>0x1?void 0x0:_0x3b8b24?zs(_0x520e4a,_0x464f09):_0x520e4a,_0x490c16=_0x111af5[_0x2f53e7(0x532)]-0x1,_0x2392ee;_0x490c16>=0x0;_0x490c16--)(_0x2392ee=_0x111af5[_0x490c16])&&(_0x1f6833=(_0x3b8b24?_0x2392ee(_0x520e4a,_0x464f09,_0x1f6833):_0x2392ee(_0x1f6833))||_0x1f6833);return _0x3b8b24&&_0x1f6833&&qs(_0x520e4a,_0x464f09,_0x1f6833),_0x1f6833;},K=(_0x2196a3,_0x2de711)=>(_0x2c5fae,_0x376c44)=>_0x2de711(_0x2c5fae,_0x376c44,_0x2196a3);const Zs=0x12c,Qs=0x64;let xe=class extends a[_0x2658a4(0x354)]{constructor(_0x25a00d,_0x7c7d13,_0x41672f,_0x183337,_0x5cf9d6,_0x167a22,_0x1912eb,_0x57ab11,_0x3d4b39){const _0x649bd5=_0x2658a4;super(),d(this,_0x649bd5(0x440),!0x1),d(this,_0x649bd5(0x567),!0x1),d(this,'_cursorInfo$',new v[(_0x649bd5(0x58a))](new Map())),d(this,_0x649bd5(0x306),this['_cursorInfo$'][_0x649bd5(0x329)]()),d(this,_0x649bd5(0x2ca),new v[(_0x649bd5(0x58a))]([])),d(this,_0x649bd5(0x216),this[_0x649bd5(0x2ca)][_0x649bd5(0x348)](v['debounceTime'](Zs))),d(this,_0x649bd5(0x2a7),a[_0x649bd5(0x206)](_0x2f4db9=>{const _0x1ffa2d=_0x649bd5,_0x148ea1={'eventID':_[_0x1ffa2d(0x2d5)][_0x1ffa2d(0x574)],'data':{'unitID':this[_0x1ffa2d(0x35d)],'memberID':this[_0x1ffa2d(0x316)]['getMemberID'](),'selection':Tt(_0x2f4db9)}};this[_0x1ffa2d(0x316)][_0x1ffa2d(0x1f6)](_0x148ea1,this['unitID']);},Qs)),(this[_0x649bd5(0x35d)]=_0x25a00d,this[_0x649bd5(0x316)]=_0x7c7d13,this[_0x649bd5(0x584)]=_0x41672f,this[_0x649bd5(0x573)]=_0x183337,this[_0x649bd5(0x3f8)]=_0x5cf9d6,this[_0x649bd5(0x392)]=_0x167a22,this[_0x649bd5(0x3c8)]=_0x1912eb,this[_0x649bd5(0x446)]=_0x57ab11,this['_commandService']=_0x3d4b39);}get[_0x2658a4(0x311)](){const _0xb24279=_0x2658a4;return this[_0xb24279(0x3e7)]['getValue']();}get['roomMembers'](){const _0x3f25dc=_0x2658a4;return this[_0x3f25dc(0x2ca)]['getValue']();}[_0x2658a4(0x3c3)](){const _0x3eaa81=_0x2658a4;super[_0x3eaa81(0x3c3)](),this['_cursorInfo$'][_0x3eaa81(0x460)](new Map()),this[_0x3eaa81(0x3e7)]['complete'](),this['_roomMembers$'][_0x3eaa81(0x460)]([]),this['_roomMembers$'][_0x3eaa81(0x431)]();}[_0x2658a4(0x52f)](){const _0x4be7f5=_0x2658a4;this[_0x4be7f5(0x567)]||(this[_0x4be7f5(0x567)]=!0x0,this[_0x4be7f5(0x316)][_0x4be7f5(0x596)][_0x4be7f5(0x348)](v[_0x4be7f5(0x3b1)](this[_0x4be7f5(0x576)]))['subscribe'](_0x57a041=>{const _0xc96234=_0x4be7f5;_0x57a041===j['ONLINE']?this[_0xc96234(0x4c3)]():this['_toggleOffline']();}),this[_0x4be7f5(0x316)]['event$'][_0x4be7f5(0x348)](v[_0x4be7f5(0x3b1)](this['dispose$']))['subscribe'](_0x5a9c77=>{const _0x2b307a=_0x4be7f5,_0x444ecd=_0x5a9c77[_0x2b307a(0x44e)];_0x444ecd===_[_0x2b307a(0x2d5)][_0x2b307a(0x574)]&&this[_0x2b307a(0x4d2)](_0x5a9c77),_0x444ecd===_['CollaborationEvent']['USERS_LEAVE']&&this['_onCursorDelete'](_0x5a9c77);}),this[_0x4be7f5(0x2f0)](this['_commandService'][_0x4be7f5(0x1bf)](_0x591d68=>{const _0x17f0a2=_0x4be7f5,_0x2f789e=_0x591d68[_0x17f0a2(0x415)];_0x2f789e!=null&&this[_0x17f0a2(0x440)]&&_0x591d68['id']===V[_0x17f0a2(0x36c)]['id']&&_0x2f789e['unitId']===this[_0x17f0a2(0x35d)]&&_0x2f789e[_0x17f0a2(0x275)]===!0x1&&this['_updateLocalCursor'](_0x2f789e[_0x17f0a2(0x58d)]);})),this[_0x4be7f5(0x392)][_0x4be7f5(0x515)][_0x4be7f5(0x348)](v[_0x4be7f5(0x3b1)](this[_0x4be7f5(0x576)]))[_0x4be7f5(0x2a3)](_0x3af479=>{const _0x2e1761=_0x4be7f5;if((_0x3af479==null?void 0x0:_0x3af479[_0x2e1761(0x35d)])!==this[_0x2e1761(0x35d)])return;const _0x1e68c9={'eventID':_[_0x2e1761(0x2d5)][_0x2e1761(0x574)],'data':_0x3af479};this['_onCursorUpdate'](_0x1e68c9);}),this[_0x4be7f5(0x2f0)](this[_0x4be7f5(0x407)][_0x4be7f5(0x1bf)](_0x2bc9e8=>{const _0x51fa6b=_0x4be7f5;if(_0x2bc9e8[_0x51fa6b(0x415)]==null)return;const _0x45a63d=_0x2bc9e8['params'];if(_0x2bc9e8['id']!==V['RichTextEditingMutation']['id']||_0x45a63d[_0x51fa6b(0x3e6)]!==this['unitID'])return;const _0x5a22f5={'id':_0x51fa6b(0x4fa),'params':_0x45a63d},_0x329772=this[_0x51fa6b(0x311)];for(const [_0x323d6f,_0x2c5c27]of _0x329772){const _0x32d5f5={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x51fa6b(0x35d)],'actions':null,'textRanges':_0x2c5c27[_0x51fa6b(0x58d)]}},_0x465227=this[_0x51fa6b(0x3c8)][_0x51fa6b(0x317)](_0x5a22f5,_0x32d5f5,!0x1);if(_['isTransformMutationFailure'](_0x465227))throw _0x465227[_0x51fa6b(0x2ad)];_0x329772['set'](_0x323d6f,{..._0x2c5c27,'ranges':_0x465227[_0x51fa6b(0x1b9)][_0x51fa6b(0x415)][_0x51fa6b(0x531)]});}queueMicrotask(()=>{const _0x4ea2a1=_0x51fa6b;this[_0x4ea2a1(0x3e7)][_0x4ea2a1(0x460)](_0x329772);});})));}[_0x2658a4(0x4d2)](_0x40020e){const _0x2917fc=_0x2658a4;var _0x148ea8,_0x2e0959;const {memberID:_0x2c3a82,selection:_0x2c7d3a}=_0x40020e[_0x2917fc(0x46e)],_0x1aeb1e=Us(_0x2c7d3a),_0x4e10a6=(_0x2e0959=(_0x148ea8=this[_0x2917fc(0x3f8)][_0x2917fc(0x4ae)](this[_0x2917fc(0x35d)],_0x2c3a82))==null?void 0x0:_0x148ea8[_0x2917fc(0x44b)])!=null?_0x2e0959:'Unknown\x20user',_0x583c59={'color':this['_colorAssignService'][_0x2917fc(0x430)](_0x2c3a82),'name':_0x4e10a6,'ranges':_0x1aeb1e},_0xa87e2a=this[_0x2917fc(0x311)];_0xa87e2a[_0x2917fc(0x2ce)](_0x2c3a82,_0x583c59),this['_cursorInfo$'][_0x2917fc(0x460)](_0xa87e2a);}[_0x2658a4(0x361)](_0x472e78){const _0x42f4ef=_0x2658a4,{memberID:_0x1f47a4}=_0x472e78[_0x42f4ef(0x46e)],_0x461020=this[_0x42f4ef(0x311)];_0x461020['delete'](_0x1f47a4),this[_0x42f4ef(0x3e7)]['next'](_0x461020);}[_0x2658a4(0x4c3)](){const _0x16ebe2=_0x2658a4;var _0x151f5f;if(this[_0x16ebe2(0x440)]=!0x0,((_0x151f5f=this[_0x16ebe2(0x446)]['getFocusedUnit']())==null?void 0x0:_0x151f5f[_0x16ebe2(0x365)]())!==this[_0x16ebe2(0x35d)])return;const _0x1bf535=this['_injector'][_0x16ebe2(0x3cc)](V[_0x16ebe2(0x24c)])['getDocRanges']();Array[_0x16ebe2(0x2f6)](_0x1bf535)&&_0x1bf535[_0x16ebe2(0x532)]>0x0&&this[_0x16ebe2(0x2a7)](_0x1bf535);}[_0x2658a4(0x54c)](){const _0x371296=_0x2658a4;this[_0x371296(0x440)]=!0x1;}};xe=Js([K(0x2,a[_0x2658a4(0x349)](a['Injector'])),K(0x3,a[_0x2658a4(0x349)](Xe)),K(0x4,a[_0x2658a4(0x349)](q)),K(0x5,a[_0x2658a4(0x349)](Ye)),K(0x6,_[_0x2658a4(0x334)]),K(0x7,a[_0x2658a4(0x4e5)]),K(0x8,a[_0x2658a4(0x2db)])],xe);var ei=Object[_0x2658a4(0x30c)],ti=Object[_0x2658a4(0x222)],si=(_0x3c679e,_0x475bd6,_0x13eb00,_0x240c0f)=>{const _0x24b186=_0x2658a4;for(var _0xc63328=_0x240c0f>0x1?void 0x0:_0x240c0f?ti(_0x475bd6,_0x13eb00):_0x475bd6,_0x1259ee=_0x3c679e[_0x24b186(0x532)]-0x1,_0x4ccd24;_0x1259ee>=0x0;_0x1259ee--)(_0x4ccd24=_0x3c679e[_0x1259ee])&&(_0xc63328=(_0x240c0f?_0x4ccd24(_0x475bd6,_0x13eb00,_0xc63328):_0x4ccd24(_0xc63328))||_0xc63328);return _0x240c0f&&_0xc63328&&ei(_0x475bd6,_0x13eb00,_0xc63328),_0xc63328;},we=(_0x28f0c1,_0x10d4d6)=>(_0x3f6759,_0x2c5090)=>_0x10d4d6(_0x3f6759,_0x2c5090,_0x28f0c1);let se=class extends a[_0x2658a4(0x354)]{constructor(_0x2e4c67,_0x2edfa9,_0x3ff58d){const _0x312467=_0x2658a4;super(),d(this,'_entities',new Map()),d(this,'_entityInit$',new v[(_0x312467(0x1f9))]()),(this[_0x312467(0x446)]=_0x2e4c67,this[_0x312467(0x584)]=_0x2edfa9,this['_collabSessionService']=_0x3ff58d,this[_0x312467(0x567)]());}[_0x2658a4(0x3c3)](){const _0x28b9f8=_0x2658a4;super[_0x28b9f8(0x3c3)](),this['_entityInit$'][_0x28b9f8(0x431)](),this[_0x28b9f8(0x301)][_0x28b9f8(0x4ab)](_0xf87f0a=>_0xf87f0a[_0x28b9f8(0x3c3)]());}['getCollabCursors$'](_0x390a91){const _0x1afca0=_0x2658a4;return this[_0x1afca0(0x301)][_0x1afca0(0x304)](_0x390a91)?this[_0x1afca0(0x301)][_0x1afca0(0x3cc)](_0x390a91)[_0x1afca0(0x306)]:this[_0x1afca0(0x2f1)][_0x1afca0(0x348)](v[_0x1afca0(0x2cd)](_0x2f4307=>_0x2f4307[_0x1afca0(0x35d)]===_0x390a91),v['switchMap'](_0x1ebc6d=>_0x1ebc6d['cursorInfo$']));}[_0x2658a4(0x567)](){const _0xd66f2c=_0x2658a4;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0xd66f2c(0x313)]['UNIVER_SHEET'])['pipe'](v[_0xd66f2c(0x3b1)](this[_0xd66f2c(0x576)]))['subscribe'](async _0x31ff6c=>{const _0x5af822=_0xd66f2c,_0x4ab668=_0x31ff6c[_0x5af822(0x365)](),_0x5d9c68=await this[_0x5af822(0x3c5)](_0x4ab668);this[_0x5af822(0x2f1)][_0x5af822(0x460)](_0x5d9c68),this[_0x5af822(0x301)]['set'](_0x4ab668,_0x5d9c68);}),this[_0xd66f2c(0x446)][_0xd66f2c(0x214)](a['UniverInstanceType'][_0xd66f2c(0x1e8)])[_0xd66f2c(0x348)](v[_0xd66f2c(0x3b1)](this[_0xd66f2c(0x576)]))[_0xd66f2c(0x348)](v[_0xd66f2c(0x2cd)](_0x4c7f43=>!_0x4c7f43[_0xd66f2c(0x365)]()[_0xd66f2c(0x552)]('__')))[_0xd66f2c(0x2a3)](async _0xf188f=>{const _0x5a641d=_0xd66f2c,_0x3044cb=_0xf188f[_0x5a641d(0x365)](),_0x116363=await this[_0x5a641d(0x22b)](_0x3044cb);this[_0x5a641d(0x2f1)]['next'](_0x116363),this[_0x5a641d(0x301)][_0x5a641d(0x2ce)](_0x3044cb,_0x116363);}),v[_0xd66f2c(0x50c)](this[_0xd66f2c(0x446)][_0xd66f2c(0x5a8)](a[_0xd66f2c(0x313)][_0xd66f2c(0x1e8)]),this['_univerInstanceService'][_0xd66f2c(0x5a8)](a['UniverInstanceType'][_0xd66f2c(0x3d2)]))[_0xd66f2c(0x348)](v[_0xd66f2c(0x3b1)](this[_0xd66f2c(0x576)]))[_0xd66f2c(0x2a3)](_0x9279f8=>{const _0xe833bf=_0xd66f2c,_0x4636f8=_0x9279f8[_0xe833bf(0x365)](),_0x309339=this[_0xe833bf(0x301)][_0xe833bf(0x3cc)](_0x4636f8);_0x309339&&(_0x309339[_0xe833bf(0x3c3)](),this[_0xe833bf(0x301)][_0xe833bf(0x364)](_0x4636f8));});}async[_0x2658a4(0x3c5)](_0x5df247){const _0x54cc54=_0x2658a4,_0x14a742=await this[_0x54cc54(0x562)][_0x54cc54(0x36d)](_0x5df247),_0x195feb=this[_0x54cc54(0x584)][_0x54cc54(0x2d3)](He,_0x5df247,_0x14a742);return _0x195feb['init'](),_0x195feb;}async[_0x2658a4(0x22b)](_0x7274e1){const _0x561966=_0x2658a4,_0x4d6524=await this['_collabSessionService'][_0x561966(0x36d)](_0x7274e1),_0x2fcde0=this[_0x561966(0x584)][_0x561966(0x2d3)](xe,_0x7274e1,_0x4d6524);return _0x2fcde0['init'](),_0x2fcde0;}};se=si([a[_0x2658a4(0x42c)](a[_0x2658a4(0x21a)][_0x2658a4(0x38b)],se),we(0x0,a['IUniverInstanceService']),we(0x1,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),we(0x2,a['Inject'](exports['CollaborationSessionService']))],se);const ue=0x14,rt=0xc8,Me=0x4,ii=0x5;function ni(_0xbe9002,_0x59c8a5){const _0x37d502=_0x2658a4;let {radius:_0x4e3731,width:_0x99b03e,height:_0x69fde6}=_0x59c8a5;_0x4e3731=_0x4e3731!=null?_0x4e3731:0x0,_0x99b03e=_0x99b03e!=null?_0x99b03e:0x1e,_0x69fde6=_0x69fde6!=null?_0x69fde6:0x1e;let _0x52e085=0x0,_0x3617e0=0x0,_0x30acc2=0x0;_0x52e085=_0x3617e0=_0x30acc2=Math[_0x37d502(0x3bf)](_0x4e3731,_0x99b03e/0x2,_0x69fde6/0x2),_0xbe9002['beginPath'](),_0xbe9002[_0x37d502(0x30d)](_0x52e085,0x0),_0xbe9002['lineTo'](_0x99b03e-_0x3617e0,0x0),_0xbe9002[_0x37d502(0x1d0)](_0x99b03e-_0x3617e0,_0x3617e0,_0x3617e0,Math['PI']*0x3/0x2,0x0,!0x1),_0xbe9002[_0x37d502(0x4fb)](_0x99b03e,_0x69fde6-_0x30acc2),_0xbe9002[_0x37d502(0x1d0)](_0x99b03e-_0x30acc2,_0x69fde6-_0x30acc2,_0x30acc2,0x0,Math['PI']/0x2,!0x1),_0xbe9002['lineTo'](0x0,_0x69fde6),_0xbe9002[_0x37d502(0x4fb)](0x0,_0x52e085),_0xbe9002[_0x37d502(0x1d0)](_0x52e085,_0x52e085,_0x52e085,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xbe9002['closePath'](),_0x59c8a5['fill']&&(_0xbe9002[_0x37d502(0x2fc)](),_0xbe9002['fillStyle']=_0x59c8a5[_0x37d502(0x4c2)],_0x59c8a5[_0x37d502(0x481)]==='evenodd'?_0xbe9002[_0x37d502(0x4c2)](_0x37d502(0x29c)):_0xbe9002[_0x37d502(0x4c2)](),_0xbe9002[_0x37d502(0x318)]());}class Re extends R[_0x2658a4(0x27a)]{constructor(_0x9f67ff,_0xd4c1d2){const _0x116ef6=_0x2658a4;super(_0x9f67ff,_0xd4c1d2),d(this,_0x116ef6(0x229)),d(this,_0x116ef6(0x290)),(this[_0x116ef6(0x229)]=_0xd4c1d2==null?void 0x0:_0xd4c1d2[_0x116ef6(0x229)],this['text']=_0xd4c1d2==null?void 0x0:_0xd4c1d2[_0x116ef6(0x290)]);}static[_0x2658a4(0x5a1)](_0x454ec3,_0x49b180){const _0x3feb1d=_0x2658a4,{text:_0x23eb8c,color:_0xa6016d}=_0x49b180;_0x454ec3[_0x3feb1d(0x2fc)](),_0x454ec3[_0x3feb1d(0x39a)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x4d2ca1=_0x454ec3[_0x3feb1d(0x227)](_0x23eb8c)['width'],_0x3bd07c=Math[_0x3feb1d(0x3bf)](_0x4d2ca1+0x2*Me,rt);ni(_0x454ec3,{'height':ue,'radius':0x4,'width':_0x3bd07c,'fill':_0xa6016d,'evented':!0x1}),_0x454ec3[_0x3feb1d(0x315)]=_0x3feb1d(0x1e6);const _0xefa857=Me,_0x3a228f=ue-ii,_0x3f1d75=rt-0x2*Me;if(_0x4d2ca1>_0x3f1d75){let _0x7f06d0='',_0x3bf405=0x0;for(const _0x382f7e of _0x23eb8c){const _0x343b1d=_0x454ec3['measureText'](_0x382f7e)[_0x3feb1d(0x28c)];if(_0x3bf405+_0x343b1d<=_0x3f1d75-_0x454ec3[_0x3feb1d(0x227)]('...')[_0x3feb1d(0x28c)])_0x7f06d0+=_0x382f7e,_0x3bf405+=_0x343b1d;else{_0x7f06d0+=_0x3feb1d(0x3aa);break;}}_0x454ec3[_0x3feb1d(0x4db)](_0x7f06d0,_0xefa857,_0x3a228f);}else _0x454ec3['fillText'](_0x23eb8c,_0xefa857,_0x3a228f);_0x454ec3['restore']();}[_0x2658a4(0x300)](_0x3757bc){Re['drawWith'](_0x3757bc,this);}}const Ne=_0x2658a4(0x4bd),ri=_0x2658a4(0x48a),oi=_0x2658a4(0x372),ce=0x6,ai=1.5,Le=0x4,ci=1.5,li='rgba(255,\x20255,\x20255,\x200.01)';class ot{constructor(_0x4ff052,_0x2889f4,_0x3ebcc9,_0x3d5dfc){const _0x538cf8=_0x2658a4;d(this,_0x538cf8(0x555),[]),d(this,_0x538cf8(0x1e0),null),d(this,_0x538cf8(0x53f),null),d(this,_0x538cf8(0x53d),null),d(this,_0x538cf8(0x22e),null),d(this,_0x538cf8(0x27c),null),(this[_0x538cf8(0x3c7)]=_0x4ff052,this[_0x538cf8(0x33c)]=_0x2889f4,this[_0x538cf8(0x2dc)]=_0x3ebcc9,this[_0x538cf8(0x251)]=_0x3d5dfc,this['_render']());}set[_0x2658a4(0x393)](_0x5960cc){const _0x32f50f=_0x2658a4;_0x5960cc?(this[_0x32f50f(0x53d)]&&this[_0x32f50f(0x53d)][_0x32f50f(0x3f6)](),this[_0x32f50f(0x53f)]&&this['_textBubble'][_0x32f50f(0x50d)]()):(this[_0x32f50f(0x53d)]&&this[_0x32f50f(0x53d)][_0x32f50f(0x50d)](),this[_0x32f50f(0x53f)]&&this[_0x32f50f(0x53f)][_0x32f50f(0x3f6)]());}[_0x2658a4(0x3c3)](){const _0x530865=_0x2658a4;for(const _0x54e52f of this[_0x530865(0x555)])_0x54e52f[_0x530865(0x3c3)]();this[_0x530865(0x53f)]&&this['_textBubble'][_0x530865(0x3c3)](),this[_0x530865(0x53d)]&&this['_anchorDot'][_0x530865(0x3c3)](),this[_0x530865(0x1e0)]&&this[_0x530865(0x1e0)][_0x530865(0x3c3)](),this['_eventUnsubscribe']&&this[_0x530865(0x27c)]();}[_0x2658a4(0x31c)](){const _0x542e7a=_0x2658a4;var _0x535c45;const {_docSkeleton:_0x28b713,_document:_0x583a40}=this,{color:_0x3d315d,name:_0x5a86b3,ranges:_0x5b5997}=this[_0x542e7a(0x3c7)],_0x5640a2=_0x583a40[_0x542e7a(0x219)](),{docsLeft:_0x4cc058,docsTop:_0x2bb4ff}=_0x5640a2,_0x248f7b=new w['NodePositionConvertToCursor'](_0x5640a2,_0x28b713);for(const {startOffset:_0x4fb83b,endOffset:_0xbf3232,collapsed:_0x284a23,isActive:_0x19238d}of _0x5b5997){const _0x30cefa=_0x28b713['findNodePositionByCharIndex'](_0x4fb83b),_0x2164fb=_0x28b713['findNodePositionByCharIndex'](_0xbf3232);if(_0x19238d){const {contentBoxPointGroup:_0x20c372}=_0x248f7b[_0x542e7a(0x57c)](_0x2164fb,_0x2164fb);if(_0x20c372['length']===0x0)continue;this[_0x542e7a(0x51a)](_0x3d315d,_0x20c372,_0x4cc058,_0x2bb4ff,_0x5a86b3),this[_0x542e7a(0x27c)]=this[_0x542e7a(0x557)]();}if(!_0x284a23&&_0x30cefa&&_0x2164fb){if(w[_0x542e7a(0x5be)](_0x30cefa,_0x2164fb)){const _0x13f42d=new w['NodePositionConvertToRectRange'](_0x5640a2,_0x28b713),{pointGroup:_0x5ece07}=(_0x535c45=_0x13f42d['getRangePointData'](_0x30cefa,_0x2164fb))!=null?_0x535c45:{};if(_0x5ece07==null||_0x5ece07['length']===0x0)continue;this[_0x542e7a(0x332)](_0x3d315d,_0x5ece07,_0x4cc058,_0x2bb4ff);}else{const {contentBoxPointGroup:_0x3e348a}=_0x248f7b['getRangePointData'](_0x30cefa,_0x2164fb);if(_0x3e348a['length']===0x0)continue;this[_0x542e7a(0x594)](_0x3d315d,_0x3e348a,_0x4cc058,_0x2bb4ff);}}}}[_0x2658a4(0x51a)](_0x4f0505,_0x4ceb70,_0x169069,_0x332f9b,_0x1ca3b4){const _0x3babb0=_0x2658a4,_0x280324=this[_0x3babb0(0x4f8)](_0x4ceb70),{left:_0x32fac7,top:_0x5d9da6,height:_0x39257d}=_0x280324,_0x399605=this[_0x3babb0(0x4c8)](),_0x268e81=ci/_0x399605,_0x38b260=new R['Rect'](Ne+a[_0x3babb0(0x2d0)][_0x3babb0(0x5b8)](ce),{'left':_0x32fac7+_0x169069-_0x268e81,'top':_0x5d9da6+_0x332f9b,'height':_0x39257d,'width':ai,'fill':_0x4f0505||R[_0x3babb0(0x470)](a[_0x3babb0(0x55e)][_0x3babb0(0x2b9)],0x0),'strokeWidth':_0x268e81,'stroke':li,'evented':!0x0});this[_0x3babb0(0x1e0)]=_0x38b260,this[_0x3babb0(0x33c)]['addObject'](_0x38b260,w['TEXT_RANGE_LAYER_INDEX']);const _0x1f55a5=new R[(_0x3babb0(0x597))](Ne+a[_0x3babb0(0x2d0)][_0x3babb0(0x5b8)](ce),{'left':_0x32fac7+_0x169069-_0x268e81,'top':_0x5d9da6+_0x332f9b-Le/0x2,'height':Le,'width':Le,'fill':_0x4f0505||R['getColor'](a[_0x3babb0(0x55e)][_0x3babb0(0x2b9)],0x0),'strokeWidth':0x0,'stroke':_0x4f0505||R[_0x3babb0(0x470)](a[_0x3babb0(0x55e)][_0x3babb0(0x2b9)],0x0),'evented':!0x1});this[_0x3babb0(0x53d)]=_0x1f55a5,this[_0x3babb0(0x33c)][_0x3babb0(0x1da)](_0x1f55a5,w['TEXT_RANGE_LAYER_INDEX']);const _0x4a1fb2=new Re(Ne+a[_0x3babb0(0x2d0)]['generateRandomId'](ce),{'left':_0x32fac7+_0x169069-_0x268e81,'top':_0x5d9da6+_0x332f9b-ue,'text':_0x1ca3b4,'color':_0x4f0505});this[_0x3babb0(0x53f)]=_0x4a1fb2,this[_0x3babb0(0x33c)][_0x3babb0(0x1da)](_0x4a1fb2,w[_0x3babb0(0x377)]),this[_0x3babb0(0x393)]=!0x1;}[_0x2658a4(0x557)](){const _0x59542e=_0x2658a4,_0x2dae8c=this[_0x59542e(0x1e0)][_0x59542e(0x272)][_0x59542e(0x568)](()=>{this['_hover']=!0x0;}),_0x373a2d=this['_anchor'][_0x59542e(0x1ce)][_0x59542e(0x568)](()=>{const _0x2c2559=_0x59542e;this[_0x2c2559(0x22e)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x5a3e72=_0x2c2559;this[_0x5a3e72(0x393)]=!0x1;},0x7d0);});return()=>{_0x2dae8c['unsubscribe'](),_0x373a2d['unsubscribe']();};}[_0x2658a4(0x594)](_0x4d2aed,_0x59a9e8,_0x33baf8,_0x3ecb66){const _0x4fd5ca=_0x2658a4,_0x48ef4e=new a[(_0x4fd5ca(0x5bc))](_0x4d2aed)[_0x4fd5ca(0x43c)](0.2)[_0x4fd5ca(0x389)](),_0x503d44=new R[(_0x4fd5ca(0x384))](ri+a[_0x4fd5ca(0x2d0)][_0x4fd5ca(0x5b8)](ce),{'pointsGroup':_0x59a9e8,'fill':_0x48ef4e||R['getColor'](a['COLORS']['black'],0.2),'left':_0x33baf8,'top':_0x3ecb66,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4fd5ca(0x555)]['push'](_0x503d44),this[_0x4fd5ca(0x33c)][_0x4fd5ca(0x1da)](_0x503d44,w[_0x4fd5ca(0x377)]);}[_0x2658a4(0x332)](_0x1fe68d,_0x3e9343,_0x4b38e8,_0x44eb9c){const _0x27aa8f=_0x2658a4,_0x41bcc1=new a[(_0x27aa8f(0x5bc))](_0x1fe68d)[_0x27aa8f(0x43c)](0.2)[_0x27aa8f(0x389)](),_0x7779c9=new R[(_0x27aa8f(0x384))](oi+a[_0x27aa8f(0x2d0)][_0x27aa8f(0x5b8)](ce),{'pointsGroup':_0x3e9343,'fill':_0x41bcc1||R[_0x27aa8f(0x470)](a[_0x27aa8f(0x55e)][_0x27aa8f(0x2b9)],0.2),'left':_0x4b38e8,'top':_0x44eb9c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27aa8f(0x555)][_0x27aa8f(0x4d7)](_0x7779c9),this['_scene']['addObject'](_0x7779c9,w[_0x27aa8f(0x377)]);}[_0x2658a4(0x4f8)](_0x1f0116){const _0x469a4f=_0x1f0116[0x0],_0x4cf31c=_0x469a4f[0x0],_0x5b9fb=_0x469a4f[0x2],{x:_0x1b0a96,y:_0x256b38}=_0x4cf31c,{x:_0x2f27cb,y:_0x5e85c1}=_0x5b9fb;return{'left':_0x1b0a96,'top':_0x256b38,'width':_0x2f27cb-_0x1b0a96,'height':_0x5e85c1-_0x256b38};}['_getScale'](){const _0x449022=_0x2658a4,{scaleX:_0xed624d,scaleY:_0x320fc2}=this[_0x449022(0x33c)][_0x449022(0x486)]();return Math[_0x449022(0x4ce)](_0xed624d,_0x320fc2);}}var hi=Object[_0x2658a4(0x30c)],_i=Object[_0x2658a4(0x222)],ui=(_0x40dfe6,_0xc59ebb,_0xefc6f3,_0x57f49d)=>{const _0x52770f=_0x2658a4;for(var _0x1230b0=_0x57f49d>0x1?void 0x0:_0x57f49d?_i(_0xc59ebb,_0xefc6f3):_0xc59ebb,_0x1c05a4=_0x40dfe6[_0x52770f(0x532)]-0x1,_0x4d69ac;_0x1c05a4>=0x0;_0x1c05a4--)(_0x4d69ac=_0x40dfe6[_0x1c05a4])&&(_0x1230b0=(_0x57f49d?_0x4d69ac(_0xc59ebb,_0xefc6f3,_0x1230b0):_0x4d69ac(_0x1230b0))||_0x1230b0);return _0x57f49d&&_0x1230b0&&hi(_0xc59ebb,_0xefc6f3,_0x1230b0),_0x1230b0;},de=(_0x8654ba,_0x3f2d5e)=>(_0x516e01,_0x3c3ebb)=>_0x3f2d5e(_0x516e01,_0x3c3ebb,_0x8654ba);let fe=class extends a[_0x2658a4(0x354)]{constructor(_0x337a39,_0x23e94b,_0x56e683,_0x249e6e,_0x459462){const _0x37ec29=_0x2658a4;super(),d(this,_0x37ec29(0x398),[]),d(this,_0x37ec29(0x45f),[]),(this[_0x37ec29(0x1fa)]=_0x337a39,this['_docSkeletonManagerService']=_0x23e94b,this[_0x37ec29(0x32e)]=_0x56e683,this['_commandService']=_0x249e6e,this[_0x37ec29(0x4f3)]=_0x459462,this[_0x37ec29(0x567)]());}[_0x2658a4(0x567)](){const _0x1b4463=_0x2658a4,_0x4aec81=this['_context']['unitId'],_0x47ce9e=this[_0x1b4463(0x42f)];this['disposeWithMe'](v[_0x1b4463(0x252)]([this['_collabCursorController'][_0x1b4463(0x253)](_0x4aec81),this[_0x1b4463(0x4f3)][_0x1b4463(0x1a6)]])[_0x1b4463(0x348)](E[_0x1b4463(0x1ec)](([_0xce5516,_0x163a27])=>({'skeleton':_0x47ce9e[_0x1b4463(0x572)](),'cursors':[..._0xce5516[_0x1b4463(0x22c)]()][_0x1b4463(0x363)](_0x58bba8=>({..._0x58bba8,'color':_0x163a27[_0x58bba8[_0x1b4463(0x229)]]}))})))[_0x1b4463(0x2a3)](_0x5aede7=>{const _0x9060ad=_0x1b4463;if(this[_0x9060ad(0x336)](),_0x5aede7){const {skeleton:_0x2bd079,cursors:_0x557541}=_0x5aede7;this['_updateCollabCursors'](_0x2bd079,_0x557541);}})),this['_initResize'](),this[_0x1b4463(0x586)]();}[_0x2658a4(0x388)](_0x42609a,_0xc67a28){const _0x5bbecb=_0x2658a4,{scene:_0x50fd32,mainComponent:_0x4277ee}=this[_0x5bbecb(0x1fa)],_0x4aaf5d=_0xc67a28['map'](_0x3ef3f7=>new ot(_0x3ef3f7,_0x50fd32,_0x42609a,_0x4277ee));this['_cursorShapes']=_0x4aaf5d,this[_0x5bbecb(0x45f)]=_0xc67a28;}[_0x2658a4(0x44f)](){const _0x4e0f8f=_0x2658a4;this[_0x4e0f8f(0x336)]();const {scene:_0x51c7e7,mainComponent:_0x254be2}=this[_0x4e0f8f(0x1fa)],_0x35acbd=this[_0x4e0f8f(0x42f)]['getSkeleton'](),_0xc8a71f=this['_cursors']['map'](_0x133103=>new ot(_0x133103,_0x51c7e7,_0x35acbd,_0x254be2));this[_0x4e0f8f(0x398)]=_0xc8a71f;}[_0x2658a4(0x336)](){const _0x10c731=_0x2658a4;this['_cursorShapes'][_0x10c731(0x4ab)](_0x162faa=>_0x162faa[_0x10c731(0x3c3)]()),this[_0x10c731(0x398)]=[];}[_0x2658a4(0x586)](){const _0x41cbb9=_0x2658a4,_0x755269=[w[_0x41cbb9(0x578)]['id']];this['disposeWithMe'](this['_commandService'][_0x41cbb9(0x1bf)](_0x4eacec=>{const _0x40206d=_0x41cbb9;_0x755269[_0x40206d(0x30a)](_0x4eacec['id'])&&_0x4eacec[_0x40206d(0x415)][_0x40206d(0x3e6)]===this[_0x40206d(0x1fa)][_0x40206d(0x3e6)]&&this['_refreshCollabCursors']();}));}[_0x2658a4(0x428)](){const _0x4ce38a=_0x2658a4;this[_0x4ce38a(0x2f0)](a[_0x4ce38a(0x24b)](this['_context'][_0x4ce38a(0x2b1)][_0x4ce38a(0x3e5)])[_0x4ce38a(0x348)](E[_0x4ce38a(0x2cd)](_0x5b6edd=>_0x5b6edd[_0x4ce38a(0x2aa)]===R[_0x4ce38a(0x441)][_0x4ce38a(0x51c)]),E[_0x4ce38a(0x40f)](0x10))['subscribe'](()=>{const _0x2cfd0b=_0x4ce38a;this[_0x2cfd0b(0x44f)]();}));}};fe=ui([a[_0x2658a4(0x42c)](a['LifecycleStages']['Steady'],fe),de(0x1,a['Inject'](V['DocSkeletonManagerService'])),de(0x2,a[_0x2658a4(0x349)](se)),de(0x3,a[_0x2658a4(0x2db)]),de(0x4,a[_0x2658a4(0x349)](a[_0x2658a4(0x314)]))],fe);const di=0x1,Si=1.5;class Ot extends R[_0x2658a4(0x27a)]{constructor(_0x385161,_0x6d171f){const _0x53ba3d=_0x2658a4;super(_0x385161,_0x6d171f),d(this,'_color'),d(this,_0x53ba3d(0x514),!0x1),d(this,_0x53ba3d(0x1ea)),d(this,_0x53ba3d(0x599),''),d(this,_0x53ba3d(0x469),'top'),d(this,_0x53ba3d(0x2ee)),(_0x6d171f&&this[_0x53ba3d(0x1fd)](_0x6d171f),this[_0x53ba3d(0x272)]['subscribeEvent'](()=>this[_0x53ba3d(0x1fd)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2658a4(0x1fd)](_0x447796){const _0xbdab8c=_0x2658a4;var _0x29e16b,_0x3d15a2,_0x3a47d1,_0x412442,_0x377e90,_0x1a02d0;this['_color']=(_0x29e16b=_0x447796[_0xbdab8c(0x229)])!=null?_0x29e16b:this[_0xbdab8c(0x3ac)],this[_0xbdab8c(0x514)]=(_0x3d15a2=_0x447796[_0xbdab8c(0x3f2)])!=null?_0x3d15a2:this[_0xbdab8c(0x514)],this['_range']=(_0x3a47d1=_0x447796[_0xbdab8c(0x333)])!=null?_0x3a47d1:this[_0xbdab8c(0x1ea)],this[_0xbdab8c(0x599)]=(_0x412442=_0x447796[_0xbdab8c(0x44b)])!=null?_0x412442:this[_0xbdab8c(0x599)],this[_0xbdab8c(0x469)]=(_0x377e90=_0x447796['labelPosition'])!=null?_0x377e90:this[_0xbdab8c(0x469)],this[_0xbdab8c(0x2ee)]=(_0x1a02d0=_0x447796['backgroundColor'])!=null?_0x1a02d0:this['_backgroundColor'],this[_0xbdab8c(0x5bd)]({'width':_0x447796[_0xbdab8c(0x28c)],'height':_0x447796[_0xbdab8c(0x5b6)]});}[_0x2658a4(0x4d3)](_0x710b68){const _0x5e63b0=_0x2658a4,{row:_0x23f072,column:_0xe6940e}=_0x710b68;if(_0x23f072>=this[_0x5e63b0(0x1ea)][_0x5e63b0(0x3df)]&&_0x23f072<=this[_0x5e63b0(0x1ea)][_0x5e63b0(0x23b)]&&_0xe6940e>=this[_0x5e63b0(0x1ea)][_0x5e63b0(0x536)]&&_0xe6940e<=this[_0x5e63b0(0x1ea)]['endColumn']){this[_0x5e63b0(0x1fd)]({'hovered':!0x0});return;}this[_0x5e63b0(0x1fd)]({'hovered':!0x1});}[_0x2658a4(0x418)](_0x31550){return!0x1;}[_0x2658a4(0x300)](_0x5b609b){const _0x4ae7d5=_0x2658a4;R[_0x4ae7d5(0x597)][_0x4ae7d5(0x5a1)](_0x5b609b,{'width':this[_0x4ae7d5(0x28c)],'height':this['height'],'strokeWidth':Si,'stroke':this[_0x4ae7d5(0x3ac)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x5b609b[_0x4ae7d5(0x2fc)](),_0x5b609b[_0x4ae7d5(0x4b3)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x4ae7d5(0x26f)?0x0:-ue),Re[_0x4ae7d5(0x5a1)](_0x5b609b,{'text':this[_0x4ae7d5(0x599)],'color':this[_0x4ae7d5(0x3ac)]}),_0x5b609b['restore']());}}var vi=Object[_0x2658a4(0x30c)],fi=Object[_0x2658a4(0x222)],gi=(_0x561423,_0x9abca4,_0x275295,_0x34fdda)=>{const _0x49a25f=_0x2658a4;for(var _0x423830=_0x34fdda>0x1?void 0x0:_0x34fdda?fi(_0x9abca4,_0x275295):_0x9abca4,_0x3dda9a=_0x561423[_0x49a25f(0x532)]-0x1,_0x29378c;_0x3dda9a>=0x0;_0x3dda9a--)(_0x29378c=_0x561423[_0x3dda9a])&&(_0x423830=(_0x34fdda?_0x29378c(_0x9abca4,_0x275295,_0x423830):_0x29378c(_0x423830))||_0x423830);return _0x34fdda&&_0x423830&&vi(_0x9abca4,_0x275295,_0x423830),_0x423830;},Ae=(_0x530d4c,_0x2c721c)=>(_0x5013b6,_0x25f522)=>_0x2c721c(_0x5013b6,_0x25f522,_0x530d4c);const mi=0x1389;let ke=class extends a[_0x2658a4(0x354)]{constructor(_0x3d2b09,_0x5f3d66,_0x5c5fd4,_0x44e677){const _0x4cd9d5=_0x2658a4;super(),d(this,_0x4cd9d5(0x45f),new Set()),d(this,_0x4cd9d5(0x40d),null),(this[_0x4cd9d5(0x1fa)]=_0x3d2b09,this[_0x4cd9d5(0x31b)]=_0x5f3d66,this[_0x4cd9d5(0x32e)]=_0x5c5fd4,this[_0x4cd9d5(0x4f3)]=_0x44e677,this[_0x4cd9d5(0x567)]());}[_0x2658a4(0x567)](){const _0x71e9d8=_0x2658a4;this[_0x71e9d8(0x31b)][_0x71e9d8(0x525)][_0x71e9d8(0x348)](E[_0x71e9d8(0x3b1)](this[_0x71e9d8(0x576)]),E[_0x71e9d8(0x5af)](_0x44f2cd=>{const _0xff37e7=_0x71e9d8;if(_0x44f2cd){const _0x20cdf6=_0x44f2cd[_0xff37e7(0x1bb)];return v['combineLatest'](this[_0xff37e7(0x32e)][_0xff37e7(0x253)](this[_0xff37e7(0x1fa)][_0xff37e7(0x3e6)]),this[_0xff37e7(0x4f3)][_0xff37e7(0x1a6)])[_0xff37e7(0x348)](E[_0xff37e7(0x1ec)](([_0x3f2afc,_0x5a9187])=>{const _0xc7ae98=_0xff37e7,_0x30c21a=new Map();return _0x3f2afc[_0xc7ae98(0x4ab)]((_0x465ba2,_0x1aa673)=>{const _0x3a5900=_0xc7ae98;if(_0x465ba2['sheetID']===_0x20cdf6){const _0xa7393b={..._0x465ba2};_0xa7393b[_0x3a5900(0x229)]=_0x5a9187[_0x465ba2[_0x3a5900(0x229)]],_0x30c21a[_0x3a5900(0x2ce)](_0x1aa673,_0xa7393b);}}),{'skeleton':_0x44f2cd,'cursors':_0x30c21a};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x71e9d8(0x2a3)](({skeleton:_0x19e79,cursors:_0x520785})=>{const _0x57600d=_0x71e9d8;this[_0x57600d(0x336)](),_0x19e79&&this[_0x57600d(0x388)](_0x19e79,_0x520785);}),this[_0x71e9d8(0x31b)]['currentSkeleton$'][_0x71e9d8(0x2a3)](_0x333d47=>{const _0x1cd57e=_0x71e9d8;if(_0x333d47==null)return;const {skeleton:_0x34d95e}=_0x333d47,{scene:_0x30c96c}=this[_0x1cd57e(0x1fa)];_0x30c96c[_0x1cd57e(0x494)][_0x1cd57e(0x568)](a['debounce'](_0x41fe80=>{const _0x3fa4f1=_0x1cd57e;var _0x2c1d4a,_0xdbaf29;const {offsetX:_0x56fba3,offsetY:_0x1224ae}=_0x41fe80,{x:_0x33c5bd,y:_0x5b7844}=_0x30c96c[_0x3fa4f1(0x294)](R[_0x3fa4f1(0x1d7)]['FromArray']([_0x56fba3,_0x1224ae])),{scaleX:_0x267b22,scaleY:_0xdccb23}=_0x30c96c[_0x3fa4f1(0x486)](),_0x4c05c9=_0x30c96c['getViewport'](te[_0x3fa4f1(0x261)][_0x3fa4f1(0x397)]),_0x34da72=_0x30c96c[_0x3fa4f1(0x43a)](R[_0x3fa4f1(0x1d7)]['FromArray']([_0x33c5bd,_0x5b7844]),_0x4c05c9),_0x44e069=_0x34d95e['getCellPositionByOffset'](_0x56fba3,_0x1224ae,_0x267b22,_0xdccb23,_0x34da72);((_0x2c1d4a=this[_0x3fa4f1(0x40d)])==null?void 0x0:_0x2c1d4a['column'])===_0x44e069[_0x3fa4f1(0x38c)]&&((_0xdbaf29=this['_lastPointer'])==null?void 0x0:_0xdbaf29[_0x3fa4f1(0x326)])===_0x44e069[_0x3fa4f1(0x326)]||this[_0x3fa4f1(0x45f)][_0x3fa4f1(0x4ab)](_0x1f8dd9=>{const _0x488c75=_0x3fa4f1;_0x1f8dd9[_0x488c75(0x4d3)](_0x44e069);});},0x64));});}[_0x2658a4(0x388)](_0x56a19f,_0x26d56b){const _0x1c4822=_0x2658a4;var _0x5c2d1c;const _0x57e04d=(_0x5c2d1c=this[_0x1c4822(0x31b)]['getCurrent']())==null?void 0x0:_0x5c2d1c[_0x1c4822(0x1f2)];if(!_0x57e04d)return;const _0x1c744e=this[_0x1c4822(0x34b)]();if(!_0x1c744e)return;this['_cursors']['forEach'](_0x468336=>{_0x468336['makeDirty']();});const {scene:_0x4af784}=_0x1c744e,_0x42c0ab=Ii(Array[_0x1c4822(0x58c)](_0x26d56b[_0x1c4822(0x22c)]()))['map'](_0x5985ff=>{const _0x21c39f=_0x1c4822,{color:_0x236396,range:_0x34138e,name:_0x56fa64,selection:_0x40c3c9,sheetID:_0x3d84fd}=_0x5985ff,{startColumn:_0x268c5b,startRow:_0xd2ea66,endColumn:_0x41342a,endRow:_0x510343}=_0x34138e,_0x2cc186=te[_0x21c39f(0x4e9)](_0xd2ea66,_0x268c5b,_0x4af784,_0x57e04d),_0x2ef842=te['getCoordByCell'](_0x510343,_0x41342a,_0x4af784,_0x57e04d),{columnHeaderHeightAndMarginTop:_0x195c86}=_0x57e04d,{startX:_0x14249f,startY:_0x1a9928}=_0x2cc186,{endX:_0x344e64,endY:_0x2b50c8}=_0x2ef842,_0x3bc1a1=_0x344e64-_0x14249f,_0x4902a0=_0x2b50c8-_0x1a9928,_0x32856b={'labelPosition':_0x1a9928-_0x195c86>=ue?_0x21c39f(0x48d):_0x21c39f(0x26f),'sheetID':_0x3d84fd,'range':_0x34138e,'color':_0x236396,'name':_0x56fa64,'selection':_0x40c3c9,'left':_0x14249f,'top':_0x1a9928,'width':_0x3bc1a1,'height':_0x4902a0,'evented':!0x1,'zIndex':mi};return new Ot(_0x56fa64,_0x32856b);});_0x4af784['addObjects'](_0x42c0ab,di),this[_0x1c4822(0x45f)]=new Set(_0x42c0ab);}[_0x2658a4(0x336)](){const _0x6a90e5=_0x2658a4;var _0x27b7a1;(_0x27b7a1=this['_cursors'])==null||_0x27b7a1[_0x6a90e5(0x4ab)](_0x52c0e8=>_0x52c0e8[_0x6a90e5(0x3c3)]());}[_0x2658a4(0x34b)](){const _0x483389=_0x2658a4;return te[_0x483389(0x59a)](this['_context']['unit'],this[_0x483389(0x1fa)]);}};ke=gi([Ae(0x1,a[_0x2658a4(0x349)](te[_0x2658a4(0x49f)])),Ae(0x2,a['Inject'](se)),Ae(0x3,a['Inject'](a[_0x2658a4(0x314)]))],ke);function Ii(_0x44f816){const _0x541806=_0x2658a4,_0x180b71=new Map();return _0x44f816['forEach'](_0x5c439a=>{const _0x24de6a=_0x5b2d;if(_0x180b71['has'](_0x5c439a['selection'])){const _0x2e7f6c=_0x180b71[_0x24de6a(0x3cc)](_0x5c439a['selection']);_0x2e7f6c[_0x24de6a(0x44b)]+=',\x20'+_0x5c439a[_0x24de6a(0x44b)];}else _0x180b71[_0x24de6a(0x2ce)](_0x5c439a['selection'],_0x5c439a);}),Array['from'](_0x180b71[_0x541806(0x22c)]());}var M=function(){const _0x4bb540=_0x2658a4;return M=Object[_0x4bb540(0x524)]||function(_0x308c94){const _0x4b36aa=_0x4bb540;for(var _0x141b06,_0x555284=0x1,_0x4a321c=arguments[_0x4b36aa(0x532)];_0x555284<_0x4a321c;_0x555284++){_0x141b06=arguments[_0x555284];for(var _0x292a9d in _0x141b06)Object['prototype'][_0x4b36aa(0x46b)][_0x4b36aa(0x2cc)](_0x141b06,_0x292a9d)&&(_0x308c94[_0x292a9d]=_0x141b06[_0x292a9d]);}return _0x308c94;},M[_0x4bb540(0x4b8)](this,arguments);},pi=function(_0x24bf1f,_0x4c955e){const _0xee1bb5=_0x2658a4;var _0x1065e8={};for(var _0x4a87a9 in _0x24bf1f)Object[_0xee1bb5(0x1d8)]['hasOwnProperty'][_0xee1bb5(0x2cc)](_0x24bf1f,_0x4a87a9)&&_0x4c955e['indexOf'](_0x4a87a9)<0x0&&(_0x1065e8[_0x4a87a9]=_0x24bf1f[_0x4a87a9]);if(_0x24bf1f!=null&&typeof Object[_0xee1bb5(0x1b6)]=='function'){for(var _0x520eb5=0x0,_0x4a87a9=Object[_0xee1bb5(0x1b6)](_0x24bf1f);_0x520eb5<_0x4a87a9[_0xee1bb5(0x532)];_0x520eb5++)_0x4c955e[_0xee1bb5(0x513)](_0x4a87a9[_0x520eb5])<0x0&&Object[_0xee1bb5(0x1d8)][_0xee1bb5(0x4ee)][_0xee1bb5(0x2cc)](_0x24bf1f,_0x4a87a9[_0x520eb5])&&(_0x1065e8[_0x4a87a9[_0x520eb5]]=_0x24bf1f[_0x4a87a9[_0x520eb5]]);}return _0x1065e8;},qe=U[_0x2658a4(0x29a)](function(_0x142083,_0x35477c){const _0x3ea8d4=_0x2658a4;var _0x29459c=_0x142083[_0x3ea8d4(0x42d)],_0x3ab6ae=_0x142083['id'],_0x23c952=_0x142083[_0x3ea8d4(0x3e9)],_0x12b9be=_0x142083['extend'],_0x2c3a76=pi(_0x142083,[_0x3ea8d4(0x42d),'id','className',_0x3ea8d4(0x4d6)]),_0x23cf82=_0x3ea8d4(0x5a2)[_0x3ea8d4(0x4e4)](_0x3ab6ae,'\x20')['concat'](_0x23c952||'')['trim'](),_0x1b00a5=U[_0x3ea8d4(0x330)]('_'['concat'](bi()));return Dt(_0x29459c,''[_0x3ea8d4(0x4e4)](_0x3ab6ae),{'defIds':_0x29459c[_0x3ea8d4(0x542)],'idSuffix':_0x1b00a5['current']},M({'ref':_0x35477c,'className':_0x23cf82},_0x2c3a76),_0x12b9be);});function Dt(_0x503606,_0x4b5700,_0x39c8a8,_0x2a76e2,_0x2821f9){const _0x2a82ae=_0x2658a4;return U[_0x2a82ae(0x41d)](_0x503606[_0x2a82ae(0x55b)],M(M({'key':_0x4b5700},Ci(_0x503606,_0x39c8a8,_0x2821f9)),_0x2a76e2),(Ei(_0x503606,_0x39c8a8)['children']||[])[_0x2a82ae(0x1ec)](function(_0x720fa3,_0xb55aa2){const _0x5888b4=_0x2a82ae;return Dt(_0x720fa3,''[_0x5888b4(0x4e4)](_0x4b5700,'-')[_0x5888b4(0x4e4)](_0x503606[_0x5888b4(0x55b)],'-')[_0x5888b4(0x4e4)](_0xb55aa2),_0x39c8a8,void 0x0,_0x2821f9);}));}function Ci(_0x308a28,_0x132432,_0xc909d1){const _0x177b64=_0x2658a4;var _0x27432e=M({},_0x308a28['attrs']);_0xc909d1!=null&&_0xc909d1['colorChannel1']&&_0x27432e[_0x177b64(0x4c2)]===_0x177b64(0x425)&&(_0x27432e['fill']=_0xc909d1[_0x177b64(0x425)]);var _0x5e9951=_0x132432[_0x177b64(0x542)];return!_0x5e9951||_0x5e9951[_0x177b64(0x532)]===0x0||(_0x308a28[_0x177b64(0x55b)]===_0x177b64(0x2e5)&&_0x27432e[_0x177b64(0x4ac)]&&(_0x27432e['xlink:href']=_0x27432e[_0x177b64(0x4ac)]+_0x132432['idSuffix']),Object[_0x177b64(0x2ab)](_0x27432e)[_0x177b64(0x4ab)](function(_0x55b42d){const _0x1c18d7=_0x177b64;var _0x2c893d=_0x55b42d[0x0],_0x8038b0=_0x55b42d[0x1];typeof _0x8038b0=='string'&&(_0x27432e[_0x2c893d]=_0x8038b0['replace'](/url\(#(.*)\)/,_0x1c18d7(0x48e)[_0x1c18d7(0x4e4)](_0x132432[_0x1c18d7(0x1cc)],')')));})),_0x27432e;}function Ei(_0x10a73b,_0x482e3d){const _0x373c90=_0x2658a4;var _0x10c891,_0x134984=_0x482e3d[_0x373c90(0x542)];return!_0x134984||_0x134984[_0x373c90(0x532)]===0x0?_0x10a73b:_0x10a73b['tag']===_0x373c90(0x57d)&&(!((_0x10c891=_0x10a73b[_0x373c90(0x1bc)])===null||_0x10c891===void 0x0)&&_0x10c891[_0x373c90(0x532)])?M(M({},_0x10a73b),{'children':_0x10a73b['children'][_0x373c90(0x1ec)](function(_0x3bc780){const _0x4b3479=_0x373c90;return typeof _0x3bc780[_0x4b3479(0x5a4)]['id']==_0x4b3479(0x345)&&_0x134984&&_0x134984[_0x4b3479(0x513)](_0x3bc780['attrs']['id'])>-0x1?M(M({},_0x3bc780),{'attrs':M(M({},_0x3bc780[_0x4b3479(0x5a4)]),{'id':_0x3bc780[_0x4b3479(0x5a4)]['id']+_0x482e3d[_0x4b3479(0x1cc)]})}):_0x3bc780;})}):_0x10a73b;}function bi(){const _0xd31570=_0x2658a4;return Math[_0xd31570(0x40a)]()[_0xd31570(0x458)](0x24)['substring'](0x2,0x8);}qe[_0x2658a4(0x5bf)]=_0x2658a4(0x2a6);var Ti={'tag':'svg','attrs':{'fill':_0x2658a4(0x2e4),'viewBox':'0\x200\x2016\x2016','width':_0x2658a4(0x237),'height':_0x2658a4(0x237)},'children':[{'tag':'g','attrs':{'clipPath':_0x2658a4(0x456)},'children':[{'tag':_0x2658a4(0x466),'attrs':{'stroke':_0x2658a4(0x4ef),'d':_0x2658a4(0x325),'strokeLinecap':_0x2658a4(0x33e),'strokeLinejoin':_0x2658a4(0x33e),'strokeWidth':1.2}}]},{'tag':_0x2658a4(0x57d),'attrs':{},'children':[{'tag':_0x2658a4(0x1fb),'attrs':{'id':_0x2658a4(0x46a)},'children':[{'tag':_0x2658a4(0x466),'attrs':{'fill':_0x2658a4(0x512),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2658a4(0x46a)]},yt=U['forwardRef'](function(_0x50758e,_0x4749a0){const _0x22e630=_0x2658a4;return U['createElement'](qe,Object[_0x22e630(0x524)]({},_0x50758e,{'id':'off-line-single','ref':_0x4749a0,'icon':Ti}));});yt[_0x2658a4(0x5bf)]=_0x2658a4(0x478);var Ri={'tag':_0x2658a4(0x3b5),'attrs':{'fill':_0x2658a4(0x2e4),'viewBox':_0x2658a4(0x404),'width':_0x2658a4(0x237),'height':_0x2658a4(0x237)},'children':[{'tag':'g','attrs':{'clipPath':_0x2658a4(0x266)},'children':[{'tag':_0x2658a4(0x466),'attrs':{'stroke':_0x2658a4(0x4ef),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x2658a4(0x33e),'strokeWidth':1.2}}]},{'tag':_0x2658a4(0x57d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x2658a4(0x466),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x2658a4(0x5b2)]},Ut=U[_0x2658a4(0x29a)](function(_0x59b453,_0x896efe){const _0x3805bb=_0x2658a4;return U[_0x3805bb(0x41d)](qe,Object[_0x3805bb(0x524)]({},_0x59b453,{'id':'on-line-single','ref':_0x896efe,'icon':Ri}));});Ut['displayName']=_0x2658a4(0x1c3);const Oi=_0x2658a4(0x1c9),Di=_0x2658a4(0x375),yi='univer-online-status',Ui=_0x2658a4(0x2cf),Pi='univer-offline',le={'onlineStatusIcon':Oi,'onlineStatusTitle':Di,'onlineStatus':yi,'online':Ui,'offline':Pi};function wi(_0x114269){const _0x4222c5=_0x2658a4;switch(_0x114269){case y[_0x4222c5(0x1fc)]:return _0x4222c5(0x254);case y['CONFLICT']:return _0x4222c5(0x274);case y[_0x4222c5(0x5b4)]:return _0x4222c5(0x5a5);case y[_0x4222c5(0x4cd)]:return _0x4222c5(0x491);case y['PENDING']:case y[_0x4222c5(0x1dd)]:case y['AWAITING_WITH_PENDING']:return _0x4222c5(0x3c0);case y[_0x4222c5(0x2fb)]:return'collabStatus.synced';}}function Pt(_0x4dc65a){const _0x140c47=_0x2658a4,{status$:_0x753fb1}=_0x4dc65a,_0x3e9b46=N['useObservable'](_0x753fb1,y['NOT_COLLAB']),_0x4caf17=a['useDependency'](a[_0x140c47(0x3fa)]),_0xa7905d=a[_0x140c47(0x535)](exports['CollaborationSessionService']),_0x3f6954=_0x3e9b46!==y[_0x140c47(0x1fc)],_0x39afd1=_0x4caf17['t'](wi(_0x3e9b46)),_0x3143ca=Vt(le[_0x140c47(0x39d)],{[le[_0x140c47(0x36e)]]:_0x3f6954,[le['offline']]:!_0x3f6954}),_0x23f755=_0x3f6954?U[_0x140c47(0x41d)](Ut,null):U[_0x140c47(0x41d)](yt,null),_0x5577d9=U['useCallback'](()=>{const _0x8850ba=_0x140c47;_0x3f6954||_0xa7905d[_0x8850ba(0x381)]();},[_0x3f6954,_0xa7905d]);function _0x3cd2db(){const _0xccfeca=_0x140c47;return U[_0xccfeca(0x41d)](_0xccfeca(0x276),{'className':_0x3143ca,'onClick':_0x5577d9},U[_0xccfeca(0x41d)](_0xccfeca(0x276),{'className':le[_0xccfeca(0x434)]},_0x23f755),U[_0xccfeca(0x41d)](_0xccfeca(0x276),{'className':le['onlineStatusTitle']},_0x39afd1));}return _0x3f6954?_0x3cd2db():U[_0x140c47(0x41d)](X[_0x140c47(0x1c7)],{'title':_0x4caf17['t']('collab-client.tooltip.reconnect')},_0x3cd2db());}var Mi=Object['defineProperty'],Ni=Object[_0x2658a4(0x222)],Li=(_0x47d7b7,_0x4d235e,_0xbf577c,_0x18144a)=>{const _0xe728c4=_0x2658a4;for(var _0x255850=_0x18144a>0x1?void 0x0:_0x18144a?Ni(_0x4d235e,_0xbf577c):_0x4d235e,_0x2ba8d9=_0x47d7b7[_0xe728c4(0x532)]-0x1,_0x36d452;_0x2ba8d9>=0x0;_0x2ba8d9--)(_0x36d452=_0x47d7b7[_0x2ba8d9])&&(_0x255850=(_0x18144a?_0x36d452(_0x4d235e,_0xbf577c,_0x255850):_0x36d452(_0x255850))||_0x255850);return _0x18144a&&_0x255850&&Mi(_0x4d235e,_0xbf577c,_0x255850),_0x255850;},Se=(_0x1b61da,_0x20a22b)=>(_0x352927,_0x2e91f4)=>_0x20a22b(_0x352927,_0x2e91f4,_0x1b61da);exports[_0x2658a4(0x4bc)]=class extends a[_0x2658a4(0x1df)]{constructor(_0x43a569,_0x49fc60,_0x5186be,_0x2f2624){const _0x72a2bb=_0x2658a4;super(),d(this,_0x72a2bb(0x303),new v[(_0x72a2bb(0x58a))](y['NOT_COLLAB'])),(this[_0x72a2bb(0x446)]=_0x43a569,this[_0x72a2bb(0x508)]=_0x49fc60,this['_injector']=_0x5186be,this[_0x72a2bb(0x5a7)]=_0x2f2624,this[_0x72a2bb(0x3fe)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x1ff846=_0x2658a4;this[_0x1ff846(0x2f0)](this['_univerInstanceService'][_0x1ff846(0x595)][_0x1ff846(0x348)](v[_0x1ff846(0x5af)](()=>{const _0x34a9c5=_0x1ff846,_0x28517f=this[_0x34a9c5(0x446)][_0x34a9c5(0x47f)]();return _0x28517f?this[_0x34a9c5(0x5a7)]['getCollabEntity$'](_0x28517f[_0x34a9c5(0x365)]()):v['of'](null);}),v[_0x1ff846(0x5af)](_0x1b1769=>_0x1b1769?_0x1b1769[_0x1ff846(0x3bd)]:v['of'](y[_0x1ff846(0x4cd)])))['subscribe'](_0x80857a=>{const _0x4bb61b=_0x1ff846;this[_0x4bb61b(0x303)][_0x4bb61b(0x460)](_0x80857a);}));}[_0x2658a4(0x3fe)](){const _0xfcea59=_0x2658a4;this[_0xfcea59(0x2f0)](this['_uiPartsService']['registerComponent'](N[_0xfcea59(0x570)][_0xfcea59(0x3a1)],()=>a['connectInjector'](Ai({'status$':this['_status$'][_0xfcea59(0x329)]()}),this['_injector'])));}},exports[_0x2658a4(0x4bc)]=Li([Se(0x0,a[_0x2658a4(0x4e5)]),Se(0x1,N[_0x2658a4(0x250)]),Se(0x2,a[_0x2658a4(0x349)](a[_0x2658a4(0x1f0)])),Se(0x3,a[_0x2658a4(0x349)](exports[_0x2658a4(0x58f)]))],exports['DesktopCollaborationStatusDisplayController']);function Ai(_0x599a93){const {status$:_0x40c603}=_0x599a93;return function(){const _0x5d68ab=_0x5b2d;return U[_0x5d68ab(0x41d)](Pt,{'status$':_0x40c603});};}const ze=a[_0x2658a4(0x5b9)](_0x2658a4(0x4e1));var $i=Object['defineProperty'],ji=Object[_0x2658a4(0x222)],Hi=(_0x24e9c0,_0x5b01ed,_0x43a5d0,_0x3e3398)=>{const _0xf71cb1=_0x2658a4;for(var _0x29400e=_0x3e3398>0x1?void 0x0:_0x3e3398?ji(_0x5b01ed,_0x43a5d0):_0x5b01ed,_0x2b9e01=_0x24e9c0[_0xf71cb1(0x532)]-0x1,_0x4bf6f2;_0x2b9e01>=0x0;_0x2b9e01--)(_0x4bf6f2=_0x24e9c0[_0x2b9e01])&&(_0x29400e=(_0x3e3398?_0x4bf6f2(_0x5b01ed,_0x43a5d0,_0x29400e):_0x4bf6f2(_0x29400e))||_0x29400e);return _0x3e3398&&_0x29400e&&$i(_0x5b01ed,_0x43a5d0,_0x29400e),_0x29400e;},ee=(_0x20088a,_0x312664)=>(_0x364d8f,_0x58a711)=>_0x312664(_0x364d8f,_0x58a711,_0x20088a);exports[_0x2658a4(0x21e)]=class extends a['RxDisposable']{constructor(_0xbecedd,_0x3b1fab,_0x1786cd,_0x584dea,_0x21486a,_0x36367c){const _0x2e256a=_0x2658a4;super(),this[_0x2e256a(0x1f4)]=_0xbecedd,this[_0x2e256a(0x3dd)]=_0x3b1fab,this[_0x2e256a(0x407)]=_0x1786cd,this[_0x2e256a(0x36f)]=_0x584dea,this[_0x2e256a(0x583)]=_0x21486a,_0x36367c?_0x36367c==null||_0x36367c['whenReady']()['then'](()=>this[_0x2e256a(0x567)]()):(this['_logService'][_0x2e256a(0x4b0)](_0x2e256a(0x387),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2e256a(0x567)]());}async[_0x2658a4(0x567)](){const _0x2bc3b3=_0x2658a4,_0x3d8953=this[_0x2bc3b3(0x1f4)][_0x2bc3b3(0x585)](_0x2bc3b3(0x355)),_0x452643=this[_0x2bc3b3(0x1f4)][_0x2bc3b3(0x585)]('type');if(!_0x3d8953||!_0x452643){this[_0x2bc3b3(0x3dd)][_0x2bc3b3(0x4b0)](_0x2bc3b3(0x387),_0x2bc3b3(0x218));return;}switch(Number(_0x452643)){case $[_0x2bc3b3(0x3d2)]:{const _0x27100b=await this['_loadSheet'](_0x3d8953);this[_0x2bc3b3(0x4dc)](_0x27100b);break;}case $[_0x2bc3b3(0x1e8)]:{await this[_0x2bc3b3(0x4be)](_0x3d8953);break;}default:{this['_logService'][_0x2bc3b3(0x2ad)](_0x2bc3b3(0x387),_0x2bc3b3(0x4ca));break;}}}async['_setupSubUnitSync'](_0x45ce2f){const _0x11ad37=_0x2658a4;await this[_0x11ad37(0x1c0)](_0x45ce2f),_0x45ce2f[_0x11ad37(0x2bb)][_0x11ad37(0x348)](v['takeUntil'](this['dispose$']))[_0x11ad37(0x2a3)](_0x2d0bca=>{const _0x584a88=_0x11ad37;_0x2d0bca&&this[_0x584a88(0x591)](_0x2d0bca);}),this[_0x11ad37(0x1f4)][_0x11ad37(0x34f)][_0x11ad37(0x348)](v['takeUntil'](this[_0x11ad37(0x576)]))['subscribe'](()=>this[_0x11ad37(0x1c0)](_0x45ce2f));}[_0x2658a4(0x591)](_0x125eaf,_0x14912d=!0x1){const _0xd991da=_0x2658a4,_0x5b54f5=this['_urlService'][_0xd991da(0x585)](_0xd991da(0x468));_0x125eaf[_0xd991da(0x33b)]()!==_0x5b54f5&&this['_urlService'][_0xd991da(0x534)]('subunit',_0x125eaf['getSheetId'](),_0x14912d);}async['_updateSubUnitFromURLParams'](_0x448828){const _0x1b8982=_0x2658a4;var _0x463d79;const _0x53e284=this[_0x1b8982(0x1f4)]['getParam'](_0x1b8982(0x468));if(!_0x53e284||!_0x448828[_0x1b8982(0x424)](_0x53e284)){const _0x4ff3f7=_0x448828[_0x1b8982(0x45e)]()[0x0],_0x14239e=_0x448828['getSheetBySheetId'](_0x4ff3f7);if(!_0x14239e)return;this[_0x1b8982(0x591)](_0x14239e,!0x0),await this[_0x1b8982(0x407)][_0x1b8982(0x4ea)](C[_0x1b8982(0x4b7)]['id'],{'unitId':_0x448828[_0x1b8982(0x365)](),'subUnitId':_0x4ff3f7});return;}((_0x463d79=_0x448828['getActiveSheet']())==null?void 0x0:_0x463d79[_0x1b8982(0x33b)]())!==_0x53e284&&await this[_0x1b8982(0x407)][_0x1b8982(0x4ea)](C[_0x1b8982(0x4b7)]['id'],{'unitId':_0x448828[_0x1b8982(0x365)](),'subUnitId':_0x53e284});}async[_0x2658a4(0x26c)](_0x5001bc){const _0xe19f5f=_0x2658a4;let _0x313cc1=0x0;const _0x42f310=await this[_0xe19f5f(0x36f)][_0xe19f5f(0x235)](_0x5001bc);return _0x42f310&&(_0x42f310[_0xe19f5f(0x280)]||_0x42f310[_0xe19f5f(0x1ad)][_0xe19f5f(0x532)]!==0x0)&&(_0x313cc1=_0x42f310['rev']),_0x313cc1===0x0&&this[_0xe19f5f(0x3dd)][_0xe19f5f(0x4b0)](_0xe19f5f(0x387),_0xe19f5f(0x1f3)),this[_0xe19f5f(0x583)][_0xe19f5f(0x36b)](_0x5001bc,_0x313cc1);}async[_0x2658a4(0x4be)](_0x3189fe){const _0x1f4100=_0x2658a4;let _0x1bac94=0x0;const _0x2fd1db=await this[_0x1f4100(0x36f)][_0x1f4100(0x235)](_0x3189fe);return _0x2fd1db&&(_0x2fd1db[_0x1f4100(0x280)]||_0x2fd1db['mutations'][_0x1f4100(0x532)]!==0x0)&&(_0x1bac94=_0x2fd1db[_0x1f4100(0x27f)]),_0x1bac94===0x0&&this['_logService']['debug'](_0x1f4100(0x387),_0x1f4100(0x1f3)),this['_snapshotService'][_0x1f4100(0x2df)](_0x3189fe,_0x1bac94);}},exports[_0x2658a4(0x21e)]=Hi([a[_0x2658a4(0x42c)](a['LifecycleStages'][_0x2658a4(0x38b)],exports['DataLoaderController']),ee(0x0,ze),ee(0x1,a['ILogService']),ee(0x2,a[_0x2658a4(0x2db)]),ee(0x3,a['Inject'](exports[_0x2658a4(0x20c)])),ee(0x4,a[_0x2658a4(0x349)](_[_0x2658a4(0x4d8)])),ee(0x5,a['Optional'](Wt[_0x2658a4(0x579)]))],exports[_0x2658a4(0x21e)]);var xi=Object[_0x2658a4(0x30c)],ki=Object[_0x2658a4(0x222)],Bi=(_0x1abb0d,_0x1bad2c,_0x297c4f,_0x438c57)=>{for(var _0x13f1e2=_0x438c57>0x1?void 0x0:_0x438c57?ki(_0x1bad2c,_0x297c4f):_0x1bad2c,_0x34087d=_0x1abb0d['length']-0x1,_0xeb88de;_0x34087d>=0x0;_0x34087d--)(_0xeb88de=_0x1abb0d[_0x34087d])&&(_0x13f1e2=(_0x438c57?_0xeb88de(_0x1bad2c,_0x297c4f,_0x13f1e2):_0xeb88de(_0x13f1e2))||_0x13f1e2);return _0x438c57&&_0x13f1e2&&xi(_0x1bad2c,_0x297c4f,_0x13f1e2),_0x13f1e2;},at=(_0x16649a,_0x2f8e30)=>(_0x17a71b,_0x59ea55)=>_0x2f8e30(_0x17a71b,_0x59ea55,_0x16649a);const Vi=_0x2658a4(0x2ec),Wi=_0x2658a4(0x409);let ge=class extends a[_0x2658a4(0x1df)]{constructor(_0x5a5fa9,_0x2472e3){const _0x1242b1=_0x2658a4;super(),this[_0x1242b1(0x446)]=_0x5a5fa9,this['_configService']=_0x2472e3,this[_0x1242b1(0x567)]();}[_0x2658a4(0x567)](){const _0x3631a4=_0x2658a4;this[_0x3631a4(0x2f0)](a['toDisposable'](this[_0x3631a4(0x446)][_0x3631a4(0x595)]['subscribe'](()=>{const _0x2e5e1b=_0x3631a4;var _0x30a55c;const _0x2b14ff=this[_0x2e5e1b(0x446)][_0x2e5e1b(0x47f)]();let _0x44ab17=(_0x30a55c=this[_0x2e5e1b(0x519)][_0x2e5e1b(0x455)](Vi))!=null?_0x30a55c:Wi;_0x2b14ff instanceof a[_0x2e5e1b(0x436)]&&(_0x44ab17=_0x2b14ff[_0x2e5e1b(0x44b)]),document[_0x2e5e1b(0x264)]=_0x44ab17;})));}};ge=Bi([a['OnLifecycle'](a['LifecycleStages'][_0x2658a4(0x43e)],ge),at(0x0,a[_0x2658a4(0x4e5)]),at(0x1,a['IConfigService'])],ge);var Fi=Object[_0x2658a4(0x30c)],Gi=Object[_0x2658a4(0x222)],Yi=(_0x2ab161,_0xc67d5d,_0x1ece30,_0x5257e8)=>{const _0x1e8e6d=_0x2658a4;for(var _0x3bb2dd=_0x5257e8>0x1?void 0x0:_0x5257e8?Gi(_0xc67d5d,_0x1ece30):_0xc67d5d,_0x11c91c=_0x2ab161[_0x1e8e6d(0x532)]-0x1,_0x2d91b4;_0x11c91c>=0x0;_0x11c91c--)(_0x2d91b4=_0x2ab161[_0x11c91c])&&(_0x3bb2dd=(_0x5257e8?_0x2d91b4(_0xc67d5d,_0x1ece30,_0x3bb2dd):_0x2d91b4(_0x3bb2dd))||_0x3bb2dd);return _0x5257e8&&_0x3bb2dd&&Fi(_0xc67d5d,_0x1ece30,_0x3bb2dd),_0x3bb2dd;},$e=(_0x2e654a,_0xcaea2a)=>(_0x103336,_0x3721c8)=>_0xcaea2a(_0x103336,_0x3721c8,_0x2e654a);let Ee=class{constructor(_0x2fc967,_0x2fb869,_0x3e2e4b){const _0x12e616=_0x2658a4;this[_0x12e616(0x519)]=_0x2fc967,this[_0x12e616(0x2a9)]=_0x2fb869,this[_0x12e616(0x3cd)]=_0x3e2e4b,this['init']();}[_0x2658a4(0x52f)](){const _0x43e5ba=_0x2658a4;this[_0x43e5ba(0x2a9)][_0x43e5ba(0x3f9)]({'priority':0x1,'interceptor':(_0x31e09e,_0x2af97c)=>_0x2af97c(_0x31e09e)[_0x43e5ba(0x348)](v[_0x43e5ba(0x1e7)](async _0x112a23=>{const _0x115e83=_0x43e5ba,_0x1d20a7=_0x112a23;if(_0x1d20a7[_0x115e83(0x533)]===0x191&&window['confirm'](this[_0x115e83(0x3cd)]['t'](_0x115e83(0x4b4)))){const _0x596195=window[_0x115e83(0x1b7)](window[_0x115e83(0x442)][_0x115e83(0x20e)]);window['location'][_0x115e83(0x20e)]=this[_0x115e83(0x5a9)]()+_0x115e83(0x4f0)+_0x596195;}return _0x1d20a7;}))});}[_0x2658a4(0x5a9)](){const _0x44a464=_0x2658a4;var _0x1e35b6,_0x5492bc;const _0x295b38=this['_configService']['getConfig'](mt),_0x5701de=this[_0x44a464(0x519)][_0x44a464(0x455)](L);return(_0x5492bc=(_0x1e35b6=_0x5701de==null?void 0x0:_0x5701de[_0x44a464(0x26d)])!=null?_0x1e35b6:_0x295b38)!=null?_0x5492bc:es;}};Ee=Yi([$e(0x0,a[_0x2658a4(0x35a)]),$e(0x1,a[_0x2658a4(0x349)](P[_0x2658a4(0x414)])),$e(0x2,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)]))],Ee);var Ki=Object[_0x2658a4(0x30c)],Xi=Object[_0x2658a4(0x222)],qi=(_0x237571,_0x29f7ce,_0x58e427,_0x3fd0ba)=>{const _0x1cb8ea=_0x2658a4;for(var _0x4ce3a7=_0x3fd0ba>0x1?void 0x0:_0x3fd0ba?Xi(_0x29f7ce,_0x58e427):_0x29f7ce,_0x2acd35=_0x237571[_0x1cb8ea(0x532)]-0x1,_0x3c1448;_0x2acd35>=0x0;_0x2acd35--)(_0x3c1448=_0x237571[_0x2acd35])&&(_0x4ce3a7=(_0x3fd0ba?_0x3c1448(_0x29f7ce,_0x58e427,_0x4ce3a7):_0x3c1448(_0x4ce3a7))||_0x4ce3a7);return _0x3fd0ba&&_0x4ce3a7&&Ki(_0x29f7ce,_0x58e427,_0x4ce3a7),_0x4ce3a7;},ct=(_0x10996a,_0x5080bd)=>(_0x3adbe8,_0x575777)=>_0x5080bd(_0x3adbe8,_0x575777,_0x10996a);const wt=_0x2658a4(0x3c6),zi=_0x2658a4(0x257);exports[_0x2658a4(0x34d)]=class extends a[_0x2658a4(0x1df)]{constructor(_0x332b38,_0x19f33f){const _0x5b057d=_0x2658a4;super(),this[_0x5b057d(0x213)]=_0x332b38,this[_0x5b057d(0x519)]=_0x19f33f,this[_0x5b057d(0x59f)]();}[_0x2658a4(0x59f)](){const _0x346b87=_0x2658a4,_0x1b4328=this;this['disposeWithMe'](this['_HTTPService'][_0x346b87(0x3f9)]({'priority':0x3e7,'interceptor':P[_0x346b87(0x2cb)]({'isMatch'(_0xb9a154){const _0x427116=_0x346b87;var _0x94f408;if(_0xb9a154['method']===_0x427116(0x3a8)&&((_0x94f408=_0xb9a154[_0x427116(0x56a)])!=null&&_0x94f408[_0x427116(0x2e3)])){const {objectID:_0x4c0e03,objectType:_0x56ae5c}=_0xb9a154[_0x427116(0x56a)][_0x427116(0x2e3)]||{};if(!_0x4c0e03||_0x56ae5c===void 0x0)return!0x1;const _0x30f20b=_0x1b4328['_getAPIPrefixPath']()+'/'+_0x56ae5c+_0x427116(0x495)+_0x4c0e03+_0x427116(0x4da);if(_0xb9a154[_0x427116(0x26b)]===_0x30f20b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5526e4){const _0xd87a88=_0x346b87;var _0x38bc7a;return(_0x38bc7a=_0x5526e4[_0xd87a88(0x56a)])==null?void 0x0:_0x38bc7a[_0xd87a88(0x2e3)];},'mergeParamsToRequest'(_0x57e193,_0x589595){const _0x1cacad=_0x346b87,_0x4c1b05=_0x1b4328['_getAPIPrefixPath']()+_0x1cacad(0x339),_0x247168=_0x57e193[_0x1cacad(0x20d)]((_0x120249,_0x72c57b)=>{const _0xfcf4b0=_0x1cacad,{unitID:_0x504898,objectID:_0xb3768f,objectType:_0x20cf1b,actions:_0x23add9}=_0x72c57b;return _0x120249[_0x504898]||(_0x120249[_0x504898]={}),_0x120249[_0x504898][_0xb3768f]||(_0x120249[_0x504898][_0xb3768f]={'objectID':_0xb3768f,'objectType':_0x20cf1b,'actions':[]}),_0x120249[_0x504898][_0xb3768f][_0xfcf4b0(0x342)][_0xfcf4b0(0x4d7)](..._0x23add9),_0x120249;},{}),_0x30ed90=[];for(const _0x2512ca in _0x247168)for(const _0x77b0f3 in _0x247168[_0x2512ca]){const {actions:_0x5f5a66,objectType:_0x2a4677}=_0x247168[_0x2512ca][_0x77b0f3],_0x419248=[...new Set(_0x5f5a66)];_0x30ed90[_0x1cacad(0x4d7)]({'unitID':_0x2512ca,'objectID':_0x77b0f3,'objectType':_0x2a4677,'actions':_0x419248});}return new P[(_0x1cacad(0x58b))]('POST',_0x4c1b05,{'headers':_0x589595[_0x1cacad(0x368)],'withCredentials':_0x589595['withCredentials'],'responseType':_0x589595[_0x1cacad(0x30f)],'body':{'requests':_0x30ed90}});}},{'distributeResult'(_0x5ba452,_0x477a83){const _0x2c379a=_0x346b87,{objectActions:_0x4e53a6}=_0x5ba452;return _0x477a83[_0x2c379a(0x1ec)](_0x41fb5c=>{const _0x97eecc=_0x2c379a,{unitID:_0x2d50b5,objectID:_0xf6e787,actions:_0x149f4e}=_0x41fb5c,_0x2a672d=_0x4e53a6['find'](_0x2e1284=>_0x2e1284[_0x97eecc(0x35d)]===_0x2d50b5&&_0x2e1284[_0x97eecc(0x1c6)]===_0xf6e787),_0x3088af=_0x149f4e[_0x97eecc(0x1ec)](_0x122923=>_0x2a672d==null?void 0x0:_0x2a672d['actions'][_0x97eecc(0x505)](_0x4f7887=>_0x4f7887[_0x97eecc(0x571)]===_0x122923))[_0x97eecc(0x2cd)](_0xa19a51=>!!_0xa19a51);return{'config':_0x41fb5c,'result':{'actions':_0x3088af,'error':_0x5ba452['error']}};});}})}));}['_getAPIPrefixPath'](){const _0xe21618=_0x2658a4;var _0x357faa,_0x3af024;const _0x5a2f5f=this['_configService'][_0xe21618(0x455)](wt),_0x3d4164=this[_0xe21618(0x519)]['getConfig'](L);return(_0x3af024=(_0x357faa=_0x3d4164==null?void 0x0:_0x3d4164[_0xe21618(0x598)])!=null?_0x357faa:_0x5a2f5f)!=null?_0x3af024:zi;}async[_0x2658a4(0x23e)](_0xdb8977){const _0x370fed=_0x2658a4,_0x382e9f=this['_getAPIPrefixPath']()+'/'+_0xdb8977[_0x370fed(0x281)]+'/object';return(await this[_0x370fed(0x213)]['post'](_0x382e9f,{'body':_0xdb8977}))[_0x370fed(0x2e3)][_0x370fed(0x1c6)]||'';}async[_0x2658a4(0x21b)](_0x11de43){const _0x18f091=_0x2658a4,_0x2b1b34=this['_getAPIPrefixPath']()+_0x18f091(0x559);return(await this['_HTTPService'][_0x18f091(0x2c2)](_0x2b1b34,{'body':_0x11de43}))[_0x18f091(0x2e3)]['objects'];}async[_0x2658a4(0x279)](_0x3427ca){const _0x57bfba=_0x2658a4,_0x559cf9=this[_0x57bfba(0x4d9)]()+'/'+_0x3427ca[_0x57bfba(0x281)]+'/object/'+_0x3427ca[_0x57bfba(0x1c6)];await this[_0x57bfba(0x213)]['put'](_0x559cf9,{'body':_0x3427ca});}async[_0x2658a4(0x3cf)](_0x13b587){const _0x4925ea=_0x2658a4,_0x20d76d=this['_getAPIPrefixPath']()+'/'+_0x13b587[_0x4925ea(0x281)]+'/object/'+_0x13b587['objectID']+_0x4925ea(0x4da);return(await this[_0x4925ea(0x213)][_0x4925ea(0x2c2)](_0x20d76d,{'body':_0x13b587}))[_0x4925ea(0x2e3)][_0x4925ea(0x342)];}async[_0x2658a4(0x319)](_0x22e3da){const _0x508a7a=_0x2658a4,_0x27450a=this[_0x508a7a(0x4d9)]()+_0x508a7a(0x339);return(await this[_0x508a7a(0x213)]['post'](_0x27450a,{'body':{'requests':_0x22e3da}}))[_0x508a7a(0x2e3)][_0x508a7a(0x2f8)];}async['listRoles'](_0x93f5ab){const _0x4bd43c=_0x2658a4,_0x3ad430=this[_0x4bd43c(0x4d9)]()+'/'+_0x93f5ab[_0x4bd43c(0x281)]+_0x4bd43c(0x569),_0x7e7b08=await this[_0x4bd43c(0x213)]['post'](_0x3ad430,{'body':_0x93f5ab});return{'roles':_0x7e7b08[_0x4bd43c(0x2e3)]['roles'],'actions':_0x7e7b08[_0x4bd43c(0x2e3)]['actions']};}async[_0x2658a4(0x53b)](_0x4be69a){const _0x3da013=_0x2658a4,_0x372edd=this[_0x3da013(0x4d9)]()+_0x3da013(0x25a);await this[_0x3da013(0x213)][_0x3da013(0x364)](_0x372edd,{'params':{'collaboratorID':_0x4be69a['collaboratorID'],'objectID':_0x4be69a[_0x3da013(0x1c6)],'unitID':_0x4be69a[_0x3da013(0x35d)]}});}async[_0x2658a4(0x487)](_0x22b40a){const _0x397599=_0x2658a4,_0x30ab3d=this[_0x397599(0x4d9)]()+_0x397599(0x25a);await this[_0x397599(0x213)][_0x397599(0x302)](_0x30ab3d,{'body':_0x22b40a});}async[_0x2658a4(0x35b)](_0x136832){const _0x802809=_0x2658a4,_0x4a4ccb=this[_0x802809(0x4d9)]()+_0x802809(0x25a);await this['_HTTPService'][_0x802809(0x2c2)](_0x4a4ccb,{'body':_0x136832});}async[_0x2658a4(0x310)](_0x22c027){const _0x17b561=_0x2658a4,_0x8c2ee4=this[_0x17b561(0x4d9)]()+_0x17b561(0x25a);return(await this['_HTTPService'][_0x17b561(0x3cc)](_0x8c2ee4,{'params':{'objectID':_0x22c027[_0x17b561(0x1c6)],'unitID':_0x22c027[_0x17b561(0x35d)]}}))[_0x17b561(0x2e3)][_0x17b561(0x2b7)];}async[_0x2658a4(0x20b)](_0x250fc6){const _0x3408fa=_0x2658a4,_0x1d60ff=this[_0x3408fa(0x4d9)]()+'/collaborator';await this['_HTTPService'][_0x3408fa(0x2a4)](_0x1d60ff,{'body':_0x250fc6});}},exports[_0x2658a4(0x34d)]=qi([ct(0x0,a['Inject'](P[_0x2658a4(0x414)])),ct(0x1,a['Inject'](a['IConfigService']))],exports[_0x2658a4(0x34d)]);var Ji=Object[_0x2658a4(0x30c)],Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x429b64,_0x311e39,_0x42c563,_0x51a87c)=>{const _0x451561=_0x2658a4;for(var _0x5118ac=_0x51a87c>0x1?void 0x0:_0x51a87c?Zi(_0x311e39,_0x42c563):_0x311e39,_0x549e3b=_0x429b64[_0x451561(0x532)]-0x1,_0x2ff0ea;_0x549e3b>=0x0;_0x549e3b--)(_0x2ff0ea=_0x429b64[_0x549e3b])&&(_0x5118ac=(_0x51a87c?_0x2ff0ea(_0x311e39,_0x42c563,_0x5118ac):_0x2ff0ea(_0x5118ac))||_0x5118ac);return _0x51a87c&&_0x5118ac&&Ji(_0x311e39,_0x42c563,_0x5118ac),_0x5118ac;},en=(_0x440bfe,_0xe50aac)=>(_0x423c2e,_0x3c2b57)=>_0xe50aac(_0x423c2e,_0x3c2b57,_0x440bfe);let be=class{constructor(_0x3cd29b){const _0x4d9eeb=_0x2658a4;this[_0x4d9eeb(0x2a9)]=_0x3cd29b,this[_0x4d9eeb(0x479)]();}[_0x2658a4(0x479)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x43fa9b,_0x37f398)=>{const _0x135b3b=_0x5b2d,_0x2c205f=_0x43fa9b['headers'],_0x39762e=Ft[_0x135b3b(0x1ca)]();return _0x39762e&&_0x2c205f[_0x135b3b(0x2ce)]('x-univer-host',_0x39762e),_0x37f398(_0x43fa9b);}});}};be=Qi([en(0x0,a[_0x2658a4(0x349)](P[_0x2658a4(0x414)]))],be);var tn=Object[_0x2658a4(0x30c)],sn=Object['getOwnPropertyDescriptor'],nn=(_0x519c5b,_0x15e58f,_0x2f8d6d,_0x1da292)=>{for(var _0x4112fc=_0x1da292>0x1?void 0x0:_0x1da292?sn(_0x15e58f,_0x2f8d6d):_0x15e58f,_0x40a362=_0x519c5b['length']-0x1,_0x19d73d;_0x40a362>=0x0;_0x40a362--)(_0x19d73d=_0x519c5b[_0x40a362])&&(_0x4112fc=(_0x1da292?_0x19d73d(_0x15e58f,_0x2f8d6d,_0x4112fc):_0x19d73d(_0x4112fc))||_0x4112fc);return _0x1da292&&_0x4112fc&&tn(_0x15e58f,_0x2f8d6d,_0x4112fc),_0x4112fc;},je=(_0x4c890b,_0x5eaca2)=>(_0xf3af55,_0x5cbd40)=>_0x5eaca2(_0xf3af55,_0x5cbd40,_0x4c890b);const rn=[_0x2658a4(0x2e0),_0x2658a4(0x228),_0x2658a4(0x530),_0x2658a4(0x352),_0x2658a4(0x556)],on=0x5*0x400*0x400,an=_0x2658a4(0x233),cn=_0x2658a4(0x37f),ln='EXCHANGE_SIGN_URL_SERVER_URL_KEY',hn=_0x2658a4(0x205);exports[_0x2658a4(0x3d8)]=class{constructor(_0x288569,_0x5cd985,_0x463e01){const _0x326fa8=_0x2658a4;d(this,_0x326fa8(0x373),0x0),d(this,_0x326fa8(0x335),new v[(_0x326fa8(0x1f9))]()),d(this,'change$',this[_0x326fa8(0x335)]),d(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x288569,this[_0x326fa8(0x519)]=_0x5cd985,this[_0x326fa8(0x446)]=_0x463e01);}[_0x2658a4(0x1ae)](_0x41cba4){const _0x4d995a=_0x2658a4;this[_0x4d995a(0x373)]=_0x41cba4,this[_0x4d995a(0x335)][_0x4d995a(0x460)](_0x41cba4);}[_0x2658a4(0x22a)](_0x5a877f,_0x1de9e4){const _0x5b71ac=_0x2658a4;if(_0x1de9e4===A['ImageSourceType'][_0x5b71ac(0x244)]){const _0x4a30dd=new Image();return _0x4a30dd[_0x5b71ac(0x3e3)]=_0x5a877f,_0x4a30dd;}return this['_imageSourceCache'][_0x5b71ac(0x3cc)](_0x5a877f);}[_0x2658a4(0x371)](_0x12dc7d,_0x4187b4,_0x1ac19e){const _0x3b46f3=_0x2658a4;_0x4187b4===A[_0x3b46f3(0x57f)][_0x3b46f3(0x244)]||_0x1ac19e==null||this[_0x3b46f3(0x52b)][_0x3b46f3(0x2ce)](_0x12dc7d,_0x1ac19e);}async[_0x2658a4(0x45d)](_0x2d7022){const _0x4b524e=_0x2658a4;try{const _0x8519ce=this[_0x4b524e(0x453)](this[_0x4b524e(0x5a0)](),''+_0x2d7022),_0x16ef33=(await this['_httpService'][_0x4b524e(0x3cc)](_0x8519ce))[_0x4b524e(0x2e3)];if(_0x16ef33['error']&&_0x16ef33[_0x4b524e(0x2ad)]['code']===It['OK']){const _0x4cb54a=new URL(_0x16ef33[_0x4b524e(0x26b)],this[_0x4b524e(0x2e1)]())['toString']();return Promise[_0x4b524e(0x44a)](_0x4cb54a);}return Promise[_0x4b524e(0x56c)](_0x16ef33[_0x4b524e(0x2ad)]);}catch(_0x3690fd){return Promise[_0x4b524e(0x56c)](_0x3690fd);}}async[_0x2658a4(0x4bb)](_0x135c96){const _0x50348b=_0x2658a4;let _0x20c1dd='';if(!rn['includes'](_0x135c96[_0x50348b(0x2aa)]))return this[_0x50348b(0x3cb)](),Promise[_0x50348b(0x56c)](new Error(A[_0x50348b(0x396)]['ERROR_IMAGE_TYPE']));if(_0x135c96[_0x50348b(0x357)]>on)return this[_0x50348b(0x3cb)](),Promise[_0x50348b(0x56c)](new Error(A[_0x50348b(0x396)][_0x50348b(0x52a)]));try{const _0x92c3b9=new FormData();_0x92c3b9[_0x50348b(0x472)]('file',_0x135c96);const _0x35354a=this[_0x50348b(0x446)][_0x50348b(0x47f)](),_0x11fe2c=_0x35354a==null?void 0x0:_0x35354a[_0x50348b(0x365)]();if(!_0x11fe2c)throw new Error('unitId\x20is\x20not\x20found');const _0x5ebe48=this['_getUploadFileURL']()+_0x50348b(0x496)+_0x135c96['size'][_0x50348b(0x458)]()+_0x50348b(0x561)+pt[_0x50348b(0x3db)]+'&assign='+encodeURIComponent(_0x11fe2c),_0x22f2e4=await(await fetch(_0x5ebe48,{'method':_0x50348b(0x3a8),'body':_0x92c3b9}))[_0x50348b(0x242)]();if(typeof _0x22f2e4[_0x50348b(0x2e2)]!=_0x50348b(0x345))return this['_decreaseWaiting'](),Promise[_0x50348b(0x56c)](new Error(A[_0x50348b(0x396)][_0x50348b(0x23d)]));_0x20c1dd=_0x22f2e4['FileId'];}catch{return this[_0x50348b(0x3cb)](),Promise[_0x50348b(0x56c)](new Error(A[_0x50348b(0x396)]['ERROR_IMAGE']));}return new Promise((_0x411a32,_0xd75344)=>{const _0x5d7375=_0x50348b,_0x4e3476=new FileReader();_0x4e3476[_0x5d7375(0x3e1)](_0x135c96),_0x4e3476[_0x5d7375(0x53a)]=_0x51310d=>{const _0x42f23d=_0x5d7375;var _0x5cc881;const _0x3492d9=(_0x5cc881=_0x51310d[_0x42f23d(0x344)])==null?void 0x0:_0x5cc881[_0x42f23d(0x209)];if(_0x3492d9==null){this['_decreaseWaiting'](),_0xd75344(new Error(A['ImageUploadStatusType'][_0x42f23d(0x23d)]));return;}const _0x45608a=a[_0x42f23d(0x2d0)][_0x42f23d(0x5b8)](0x6);_0x411a32({'imageId':_0x45608a,'imageSourceType':A[_0x42f23d(0x57f)][_0x42f23d(0x282)],'source':_0x20c1dd,'base64Cache':_0x3492d9,'status':A[_0x42f23d(0x396)]['SUCCUSS']}),this[_0x42f23d(0x3cb)]();};});}[_0x2658a4(0x399)](){const _0x3ac335=_0x2658a4;var _0x19db21,_0x383909;const _0x2816c7=this[_0x3ac335(0x519)]['getConfig'](an),_0x103957=this['_configService'][_0x3ac335(0x455)](L);return(_0x383909=(_0x19db21=_0x103957==null?void 0x0:_0x103957[_0x3ac335(0x550)])!=null?_0x19db21:_0x2816c7)!=null?_0x383909:cn;}[_0x2658a4(0x5a0)](){const _0x1294c9=_0x2658a4;var _0xbebff2,_0x190b26;const _0x5b02e2=this[_0x1294c9(0x519)][_0x1294c9(0x455)](ln),_0x3adf59=this[_0x1294c9(0x519)]['getConfig'](L);return(_0x190b26=(_0xbebff2=_0x3adf59==null?void 0x0:_0x3adf59['signUrlServerUrl'])!=null?_0xbebff2:_0x5b02e2)!=null?_0x190b26:hn;}[_0x2658a4(0x2e1)](){const _0xb81556=_0x2658a4;var _0x352c59;const _0x1c77f7=this[_0xb81556(0x519)][_0xb81556(0x455)](L);return(_0x352c59=_0x1c77f7==null?void 0x0:_0x1c77f7[_0xb81556(0x3bb)])!=null?_0x352c59:location[_0xb81556(0x4a7)];}[_0x2658a4(0x453)](_0x805b88,_0x346b62){const _0x1e4773=_0x2658a4;return _0x805b88[_0x1e4773(0x285)](_0x1e4773(0x3ca),_0x346b62);}['_decreaseWaiting'](){const _0x1b2a88=_0x2658a4;this[_0x1b2a88(0x373)]-=0x1,this[_0x1b2a88(0x335)]['next'](this[_0x1b2a88(0x373)]);}},exports[_0x2658a4(0x3d8)]=nn([je(0x0,a[_0x2658a4(0x349)](P[_0x2658a4(0x414)])),je(0x1,a['IConfigService']),je(0x2,a['Inject'](a[_0x2658a4(0x4e5)]))],exports['ImageIoService']);var _n=Object[_0x2658a4(0x30c)],un=Object[_0x2658a4(0x222)],dn=(_0x341042,_0x512bdb,_0x2c2193,_0x5d7cd4)=>{const _0x5bf134=_0x2658a4;for(var _0x256515=_0x5d7cd4>0x1?void 0x0:_0x5d7cd4?un(_0x512bdb,_0x2c2193):_0x512bdb,_0x5a232a=_0x341042[_0x5bf134(0x532)]-0x1,_0x4d2435;_0x5a232a>=0x0;_0x5a232a--)(_0x4d2435=_0x341042[_0x5a232a])&&(_0x256515=(_0x5d7cd4?_0x4d2435(_0x512bdb,_0x2c2193,_0x256515):_0x4d2435(_0x256515))||_0x256515);return _0x5d7cd4&&_0x256515&&_n(_0x512bdb,_0x2c2193,_0x256515),_0x256515;},he=(_0x2a0c5a,_0x2aa628)=>(_0x4aba83,_0x5332d6)=>_0x2aa628(_0x4aba83,_0x5332d6,_0x2a0c5a);let me=class extends a[_0x2658a4(0x354)]{constructor(_0x4206c4,_0x4b65f7,_0x159273,_0x432bd9,_0x4c7df5){const _0x34e05c=_0x2658a4;super(),this['_injector']=_0x4206c4,this[_0x34e05c(0x446)]=_0x4b65f7,this[_0x34e05c(0x34c)]=_0x159273,this[_0x34e05c(0x3a0)]=_0x432bd9,this[_0x34e05c(0x1a5)]=_0x4c7df5,this[_0x34e05c(0x4ff)](),this[_0x34e05c(0x48f)]();}[_0x2658a4(0x48f)](){const _0x18ef36=_0x2658a4,_0x40f428=async _0x47808a=>{const _0x14a441=_0x5b2d;(await this['_collaborationSessionService'][_0x14a441(0x36d)](_0x47808a))[_0x14a441(0x39e)]['pipe'](E[_0x14a441(0x2cd)](_0x8e5203=>_0x8e5203[_0x14a441(0x44e)]===_['CollaborationEvent'][_0x14a441(0x38a)]),E[_0x14a441(0x3b1)](this['dispose$']))[_0x14a441(0x2a3)](_0x29421a=>{const _0x39bffa=_0x14a441,_0x5234d3=_0x29421a,{reason:_0x4647d6}=_0x5234d3['data'];this['_injector']['get'](N[_0x39bffa(0x305)])['show']({'type':X[_0x39bffa(0x406)][_0x39bffa(0x3c2)],'content':this[_0x39bffa(0x1a5)]['t']('collaboration.closeRoom')+'('+_0x4647d6+')'}),this['_permissionService'][_0x39bffa(0x356)](new C[(_0x39bffa(0x541))](_0x47808a)['id'],!0x1),this[_0x39bffa(0x3a0)][_0x39bffa(0x4b6)](_0x47808a);});};v[_0x18ef36(0x50c)](this[_0x18ef36(0x446)][_0x18ef36(0x214)](a['UniverInstanceType'][_0x18ef36(0x3d2)]),this['_univerInstanceService'][_0x18ef36(0x214)](a['UniverInstanceType'][_0x18ef36(0x1e8)]))['pipe'](E['map'](_0x318e15=>_0x318e15[_0x18ef36(0x365)]()),E[_0x18ef36(0x2cd)](_0x3e6a0e=>!a[_0x18ef36(0x50f)](_0x3e6a0e)),E['takeUntil'](this[_0x18ef36(0x576)]))[_0x18ef36(0x2a3)](_0x404faf=>{_0x40f428(_0x404faf);});}[_0x2658a4(0x4ff)](){const _0x112233=_0x2658a4,_0x3d9673=async _0x1ec012=>{const _0x1c4de1=_0x5b2d;(await this['_collaborationSessionService']['requireSession'](_0x1ec012))['event$']['pipe'](E[_0x1c4de1(0x2cd)](_0xa53b44=>_0xa53b44[_0x1c4de1(0x44e)]===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E['takeUntil'](this['dispose$']))['subscribe'](_0x50235d=>{const _0x1a8e7e=_0x1c4de1,_0x19db41=_0x50235d,{objectId:_0x27b40a}=_0x19db41['data'],_0x30edc4=this[_0x1a8e7e(0x584)]['get'](te[_0x1a8e7e(0x31e)]);_0x27b40a===_0x1ec012?_0x30edc4[_0x1a8e7e(0x4a9)](_0x1ec012):_0x30edc4['refreshPermission'](_0x1ec012,_0x27b40a);});};v[_0x112233(0x50c)](this[_0x112233(0x446)][_0x112233(0x214)](a[_0x112233(0x313)][_0x112233(0x3d2)]),this[_0x112233(0x446)]['getTypeOfUnitAdded$'](a[_0x112233(0x313)]['UNIVER_DOC']))[_0x112233(0x348)](E[_0x112233(0x1ec)](_0x32f9b2=>_0x32f9b2[_0x112233(0x365)]()),E[_0x112233(0x2cd)](_0xdec41f=>!a[_0x112233(0x50f)](_0xdec41f)),E[_0x112233(0x3b1)](this[_0x112233(0x576)]))['subscribe'](_0x582c3e=>{_0x3d9673(_0x582c3e);});}};me=dn([a['OnLifecycle'](a[_0x2658a4(0x21a)][_0x2658a4(0x38b)],me),he(0x0,a['Inject'](a[_0x2658a4(0x1f0)])),he(0x1,a[_0x2658a4(0x4e5)]),he(0x2,a[_0x2658a4(0x223)]),he(0x3,a[_0x2658a4(0x349)](exports[_0x2658a4(0x4c6)])),he(0x4,a[_0x2658a4(0x349)](a[_0x2658a4(0x3fa)]))],me);var Sn=Object['defineProperty'],vn=Object['getOwnPropertyDescriptor'],fn=(_0x1cc58f,_0x22db4c,_0x5dcc88,_0x18cc2c)=>{for(var _0x1de55d=_0x18cc2c>0x1?void 0x0:_0x18cc2c?vn(_0x22db4c,_0x5dcc88):_0x22db4c,_0xd69be1=_0x1cc58f['length']-0x1,_0x4086e2;_0xd69be1>=0x0;_0xd69be1--)(_0x4086e2=_0x1cc58f[_0xd69be1])&&(_0x1de55d=(_0x18cc2c?_0x4086e2(_0x22db4c,_0x5dcc88,_0x1de55d):_0x4086e2(_0x1de55d))||_0x1de55d);return _0x18cc2c&&_0x1de55d&&Sn(_0x22db4c,_0x5dcc88,_0x1de55d),_0x1de55d;},lt=(_0x5a8c7b,_0x9aa946)=>(_0x382044,_0x2efa39)=>_0x9aa946(_0x382044,_0x2efa39,_0x5a8c7b);exports[_0x2658a4(0x4cf)]=class{constructor(_0x60ad4b,_0x40fd43){const _0x20a931=_0x2658a4;this[_0x20a931(0x519)]=_0x60ad4b,this[_0x20a931(0x2a9)]=_0x40fd43;}async[_0x2658a4(0x2c4)](_0x5ceda1,_0x32595a){const _0x43e314=_0x2658a4;var _0x1c8a38;const {unitID:_0x3010c4,type:_0x4cb8a4,revision:_0x206ef6=0x0}=_0x32595a,_0x294b76=this[_0x43e314(0x3d5)]()+'/'+_0x4cb8a4+_0x43e314(0x4f9)+_0x3010c4+_0x43e314(0x2de)+_0x206ef6,_0x45acab=(await this['_httpService'][_0x43e314(0x3cc)](_0x294b76))[_0x43e314(0x2e3)],_0x1d7732=(_0x1c8a38=_0x45acab[_0x43e314(0x50b)])==null?void 0x0:_0x1c8a38[_0x43e314(0x291)];if(_0x1d7732){const _0x42fd15=_0x1d7732==null?void 0x0:_0x1d7732[_0x43e314(0x4de)],_0x44ec57=_[_0x43e314(0x1bd)][_0x43e314(0x246)](_[_0x43e314(0x328)](_0x42fd15));_0x1d7732[_0x43e314(0x4de)]=_0x44ec57,Object[_0x43e314(0x2ab)](_0x1d7732[_0x43e314(0x36a)])[_0x43e314(0x4ab)](([,_0x1e546a])=>{const _0x1812c4=_0x43e314,_0x42a45c=_0x1e546a[_0x1812c4(0x4de)],_0x5a5599=_[_0x1812c4(0x1bd)][_0x1812c4(0x246)](_[_0x1812c4(0x328)](_0x42a45c));_0x1e546a[_0x1812c4(0x4de)]=_0x5a5599;});}return _0x45acab;}async[_0x2658a4(0x516)](_0xd483c5,_0x1e01df){const _0x11a542=_0x2658a4,{unitID:_0x404882,type:_0x3fb5cb,blockID:_0x411217}=_0x1e01df,_0x248e2a=this[_0x11a542(0x351)]()+'/'+_0x3fb5cb+'/unit/'+_0x404882+_0x11a542(0x2d9)+_0x411217;return(await this[_0x11a542(0x2a9)]['get'](_0x248e2a))[_0x11a542(0x2e3)];}async[_0x2658a4(0x299)](_0x33adb0,_0x255e25){const _0x31ad9b=_0x2658a4,{unitID:_0x3754cc,type:_0x4e44ac,blockID:_0x1fa331}=_0x255e25,_0x1911c2=this['_getAPIPrefix']()+_0x31ad9b(0x2d9)+_0x4e44ac+_0x31ad9b(0x4f9)+_0x3754cc+_0x31ad9b(0x2d9)+_0x1fa331;return(await this['_httpService'][_0x31ad9b(0x3cc)](_0x1911c2))[_0x31ad9b(0x2e3)];}async['fetchMissingChangesets'](_0x48325b,_0x2bec53){const _0x2d7e95=_0x2658a4,{unitID:_0x29d5ba,type:_0x201875,from:_0x97faa5,to:_0x1f2609}=_0x2bec53,_0x564787=this[_0x2d7e95(0x351)]()+'/'+_0x201875+'/unit/'+_0x29d5ba+_0x2d7e95(0x293)+_0x97faa5+_0x2d7e95(0x454)+_0x1f2609;return(await this[_0x2d7e95(0x2a9)][_0x2d7e95(0x3cc)](_0x564787))['body'];}['_getSnapshotAPIPrefix'](){const _0x2852b9=_0x2658a4;var _0x1067f0;return(_0x1067f0=this[_0x2852b9(0x519)]['getConfig'](_t))!=null?_0x1067f0:this[_0x2852b9(0x351)]();}[_0x2658a4(0x351)](){const _0x1fd3e1=_0x2658a4;var _0x4e3cf3,_0x3a684d;const _0x260fd6=this[_0x1fd3e1(0x519)][_0x1fd3e1(0x455)](ht),_0x1e2635=this[_0x1fd3e1(0x519)][_0x1fd3e1(0x455)](L);return(_0x3a684d=(_0x4e3cf3=_0x1e2635==null?void 0x0:_0x1e2635['snapshotServerUrl'])!=null?_0x4e3cf3:_0x260fd6)!=null?_0x3a684d:Gt;}async[_0x2658a4(0x475)](_0x1bbf20,_0x30f740){const _0x412b7f=_0x2658a4,_0x55eece='/universer-api/snapshot/'+_0x30f740[_0x412b7f(0x2aa)]+'/unit/'+_0x30f740[_0x412b7f(0x35d)]+_0x412b7f(0x248);return(await this[_0x412b7f(0x2a9)][_0x412b7f(0x3cc)](_0x55eece,{'params':{'resourceId':JSON[_0x412b7f(0x427)](_0x30f740[_0x412b7f(0x331)])}}))[_0x412b7f(0x2e3)];}['saveSnapshot'](){const _0x5b91f6=_0x2658a4;throw new Error(_0x5b91f6(0x1d3));}[_0x2658a4(0x4f6)](){const _0x137b1d=_0x2658a4;throw new Error(_0x137b1d(0x1d3));}[_0x2658a4(0x5b7)](){const _0x4fae91=_0x2658a4;throw new Error(_0x4fae91(0x1d3));}[_0x2658a4(0x269)](){const _0x19a6d5=_0x2658a4;throw new Error(_0x19a6d5(0x1d3));}},exports[_0x2658a4(0x4cf)]=fn([lt(0x0,a['IConfigService']),lt(0x1,a[_0x2658a4(0x349)](P['HTTPService']))],exports[_0x2658a4(0x4cf)]);var gn=Object[_0x2658a4(0x30c)],mn=Object[_0x2658a4(0x222)],In=(_0x46d173,_0x41fbd2,_0x409b34,_0x42616e)=>{const _0x2a30fc=_0x2658a4;for(var _0x9dacbe=_0x42616e>0x1?void 0x0:_0x42616e?mn(_0x41fbd2,_0x409b34):_0x41fbd2,_0x1f198e=_0x46d173[_0x2a30fc(0x532)]-0x1,_0x14bf7b;_0x1f198e>=0x0;_0x1f198e--)(_0x14bf7b=_0x46d173[_0x1f198e])&&(_0x9dacbe=(_0x42616e?_0x14bf7b(_0x41fbd2,_0x409b34,_0x9dacbe):_0x14bf7b(_0x9dacbe))||_0x9dacbe);return _0x42616e&&_0x9dacbe&&gn(_0x41fbd2,_0x409b34,_0x9dacbe),_0x9dacbe;},_e=(_0x54f4c4,_0x265c85)=>(_0x495fba,_0x3996e5)=>_0x265c85(_0x495fba,_0x3996e5,_0x54f4c4);let Be=class extends a['LocalUndoRedoService']{constructor(_0x185638,_0x5d86b4,_0x49859c,_0x128d92,_0x388481){super(_0x185638,_0x5d86b4,_0x49859c),this['_transformService']=_0x128d92,this['_logService']=_0x388481;}[_0x2658a4(0x298)](_0x5ba329,_0x68d474){const _0x586d2e=_0x2658a4,_0x17e076=this[_0x586d2e(0x3be)](_0x5ba329);if(_0x17e076)try{const _0x48b18c=this[_0x586d2e(0x25d)](_0x17e076,_0x68d474);this[_0x586d2e(0x3a3)](_0x5ba329,_0x48b18c);}catch(_0x29cb67){this[_0x586d2e(0x3dd)][_0x586d2e(0x2ad)](_0x586d2e(0x48c),_0x29cb67),this[_0x586d2e(0x47b)](_0x5ba329);}const _0x2d9c83=this[_0x586d2e(0x547)](_0x5ba329);if(_0x2d9c83)try{const _0x3e4c75=this[_0x586d2e(0x25d)](_0x2d9c83,_0x68d474);this[_0x586d2e(0x249)](_0x5ba329,_0x3e4c75);}catch(_0x2a9516){this['_logService'][_0x586d2e(0x2ad)](_0x2a9516),this[_0x586d2e(0x401)](_0x5ba329);}}['_clearUndo'](_0x2425d8){const _0x5e8aee=_0x2658a4,_0x2445ad=this[_0x5e8aee(0x3be)](_0x2425d8);_0x2445ad&&(_0x2445ad[_0x5e8aee(0x532)]=0x0,this[_0x5e8aee(0x2c1)]());}['_clearRedo'](_0x505dc7){const _0x45e3cc=_0x2658a4,_0x45e6b7=this['_getRedoStack'](_0x505dc7);_0x45e6b7&&(_0x45e6b7['length']=0x0,this[_0x45e3cc(0x2c1)]());}['_substituteUndoStack'](_0x250cda,_0x44f912){const _0x3f70ed=_0x2658a4;this[_0x3f70ed(0x1e3)][_0x3f70ed(0x2ce)](_0x250cda,_0x44f912),this[_0x3f70ed(0x2c1)]();}[_0x2658a4(0x249)](_0x56f797,_0x4098f6){const _0x3e72e7=_0x2658a4;this[_0x3e72e7(0x1f1)]['set'](_0x56f797,_0x4098f6),this[_0x3e72e7(0x2c1)]();}[_0x2658a4(0x25d)](_0x470762,_0x3d39a8){const _0x224034=_0x2658a4,_0x34482a=[];let _0x4db4ed=_0x3d39a8,_0x2503f2=_0x3d39a8;for(let _0x249ef4=_0x470762['length']-0x1;_0x249ef4>=0x0;_0x249ef4--){const {unitID:_0x21d9ff,undoMutations:_0x13e4ca,redoMutations:_0x23dc6a}=_0x470762[_0x249ef4],_0x4733ef=this['_transformService'][_0x224034(0x554)](_0x4db4ed,_0x13e4ca),_0x3c4a80=this['_transformService'][_0x224034(0x554)](_0x2503f2,_0x23dc6a);if(_[_0x224034(0x49b)](_0x4733ef)||_['isTransformMutationsWithChangesetFailure'](_0x3c4a80)){this[_0x224034(0x3dd)][_0x224034(0x2ad)](_0x224034(0x48c),_0x224034(0x5a6),_0x4733ef,_0x3c4a80);break;}_0x4db4ed=_0x4733ef['c1Prime'],_0x2503f2=_0x3c4a80['c1Prime'],_0x34482a[_0x224034(0x4d7)]({'unitID':_0x21d9ff,'undoMutations':_0x4733ef['m2Prime'],'redoMutations':_0x3c4a80[_0x224034(0x1b9)]});}return _0x34482a['reverse']();}};Be=In([_e(0x0,a[_0x2658a4(0x4e5)]),_e(0x1,a[_0x2658a4(0x2db)]),_e(0x2,a['IContextService']),_e(0x3,_[_0x2658a4(0x334)]),_e(0x4,a[_0x2658a4(0x2f2)])],Be);class Mt extends a[_0x2658a4(0x354)]{constructor(){const _0x7aac42=_0x2658a4;super(),d(this,_0x7aac42(0x34f)),this[_0x7aac42(0x34f)]=v['fromEvent'](window,_0x7aac42(0x3ed))[_0x7aac42(0x348)](v[_0x7aac42(0x3b1)](this[_0x7aac42(0x576)]),v[_0x7aac42(0x49a)](0x1),v[_0x7aac42(0x420)](void 0x0));}['setParam'](_0x2dc0c6,_0x352373,_0x5df8ac=!0x1){const _0x2691c4=_0x2658a4,_0x3ac99c=new URL(window[_0x2691c4(0x442)]['href']);_0x3ac99c[_0x2691c4(0x58e)][_0x2691c4(0x2ce)](_0x2dc0c6,_0x352373),_0x5df8ac?window[_0x2691c4(0x2f5)][_0x2691c4(0x417)]('','',_0x3ac99c[_0x2691c4(0x458)]()):window['history'][_0x2691c4(0x3e4)]('','',_0x3ac99c[_0x2691c4(0x458)]());}[_0x2658a4(0x55c)](_0x5c3c83,_0x21cb99=!0x1){const _0xfb8b19=_0x2658a4,_0x4606ec=new URL(window['location'][_0xfb8b19(0x20e)]);_0x4606ec[_0xfb8b19(0x58e)][_0xfb8b19(0x364)](_0x5c3c83),_0x21cb99?window[_0xfb8b19(0x2f5)][_0xfb8b19(0x417)]('','',_0x4606ec[_0xfb8b19(0x458)]()):window[_0xfb8b19(0x2f5)]['pushState']('','',_0x4606ec['toString']());}[_0x2658a4(0x585)](_0x36385a){const _0x243c39=_0x2658a4;var _0x402922;return(_0x402922=new URL(window['location'][_0x243c39(0x20e)])['searchParams']['get'](_0x36385a))!=null?_0x402922:void 0x0;}}var Nt=Object['defineProperty'],pn=Object[_0x2658a4(0x222)],Cn=(_0x316acd,_0x542c2a,_0x532099)=>_0x542c2a in _0x316acd?Nt(_0x316acd,_0x542c2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x532099}):_0x316acd[_0x542c2a]=_0x532099,En=(_0x3ed563,_0x10025c,_0x583e64,_0x2740c8)=>{for(var _0x58e9c1=_0x2740c8>0x1?void 0x0:_0x2740c8?pn(_0x10025c,_0x583e64):_0x10025c,_0x2f1f5d=_0x3ed563['length']-0x1,_0x619b4b;_0x2f1f5d>=0x0;_0x2f1f5d--)(_0x619b4b=_0x3ed563[_0x2f1f5d])&&(_0x58e9c1=(_0x2740c8?_0x619b4b(_0x10025c,_0x583e64,_0x58e9c1):_0x619b4b(_0x58e9c1))||_0x58e9c1);return _0x2740c8&&_0x58e9c1&&Nt(_0x10025c,_0x583e64,_0x58e9c1),_0x58e9c1;},ve=(_0x22a70b,_0x1b6635)=>(_0x114c45,_0x2ee533)=>_0x1b6635(_0x114c45,_0x2ee533,_0x22a70b),bn=(_0x32a327,_0x393e0a,_0x1d2fa8)=>Cn(_0x32a327,_0x393e0a+'',_0x1d2fa8);const Tn=_0x2658a4(0x462);exports[_0x2658a4(0x2ef)]=class extends a[_0x2658a4(0x4df)]{constructor(_0x121a03=ts,_0x1afe33,_0x3a785c,_0x2b9f5e,_0x4b654c){const _0x88041f=_0x2658a4;super(),this['_config']=_0x121a03,this[_0x88041f(0x3dd)]=_0x1afe33,this[_0x88041f(0x3c1)]=_0x3a785c,this['_injector']=_0x2b9f5e,this['_configService']=_0x4b654c;const {..._0xd2565a}=this['_config'];this[_0x88041f(0x519)][_0x88041f(0x27b)](L,_0xd2565a);}[_0x2658a4(0x5ba)](){this['_registerDependencies']();}['onRendered'](){const _0x1b9f71=_0x2658a4;this[_0x1b9f71(0x51d)]();}['_registerDependencies'](){const _0x2a5c16=_0x2658a4;var _0x36777c,_0x415a20,_0x5c670d,_0x4faa54;this[_0x2a5c16(0x584)]['has'](a['IUndoRedoService'])&&this['_logService'][_0x2a5c16(0x2ad)](_0x2a5c16(0x3f1),_0x2a5c16(0x204));let _0xaa7360=[[a[_0x2a5c16(0x511)],{'useClass':Be}],[exports[_0x2a5c16(0x4c6)]],[Xe],[P['HTTPService']],[ze,{'useClass':Mt}],[q],[exports[_0x2a5c16(0x20c)]],[P[_0x2a5c16(0x207)]],[pe],[Ce],[Ie],[Ye],[Ee],[be],[Ge],[me],[Fe,{'useClass':(_0x415a20=(_0x36777c=this['_config'])==null?void 0x0:_0x36777c[_0x2a5c16(0x563)])!=null?_0x415a20:exports[_0x2a5c16(0x500)]}],[P['IHTTPImplementation'],{'useClass':P[_0x2a5c16(0x23c)]}],[_[_0x2a5c16(0x258)],{'useClass':exports[_0x2a5c16(0x4cf)]}],[a[_0x2a5c16(0x577)],{'useClass':exports[_0x2a5c16(0x34d)]}],[A[_0x2a5c16(0x419)],{'useClass':exports[_0x2a5c16(0x3d8)]}],[exports[_0x2a5c16(0x58f)]],[exports[_0x2a5c16(0x21e)]],[exports[_0x2a5c16(0x4bc)]],[ge],[se]];(_0x5c670d=this[_0x2a5c16(0x292)])!=null&&_0x5c670d['enableSingleActiveInstanceLock']&&_0xaa7360['push']([Te,{'useClass':ys}]),_0xaa7360=a[_0x2a5c16(0x4a5)](_0xaa7360,(_0x4faa54=this[_0x2a5c16(0x292)])==null?void 0x0:_0x4faa54[_0x2a5c16(0x2a2)]),_0xaa7360[_0x2a5c16(0x4ab)](_0x47d7a6=>this[_0x2a5c16(0x584)][_0x2a5c16(0x463)](_0x47d7a6)),this[_0x2a5c16(0x59e)]();}['_registerRenderDependencies'](){const _0x10c4b8=_0x2658a4;this['disposeWithMe'](this['_renderManagerService'][_0x10c4b8(0x3d1)](a[_0x10c4b8(0x313)][_0x10c4b8(0x1e8)],[fe])),this[_0x10c4b8(0x2f0)](this[_0x10c4b8(0x3c1)][_0x10c4b8(0x3d1)](a[_0x10c4b8(0x313)]['UNIVER_SHEET'],[ke]));}[_0x2658a4(0x59e)](){const _0x4cda41=_0x2658a4;var _0x39d164,_0x16673c;this[_0x4cda41(0x584)][_0x4cda41(0x3cc)](P[_0x4cda41(0x414)])[_0x4cda41(0x3f9)]({'priority':0x14,'interceptor':P['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x4cda41(0x584)][_0x4cda41(0x3cc)](be),(_0x39d164=this[_0x4cda41(0x292)])!=null&&_0x39d164[_0x4cda41(0x5ac)]||this[_0x4cda41(0x584)][_0x4cda41(0x3cc)](exports[_0x4cda41(0x20c)])[_0x4cda41(0x1ba)](),(_0x16673c=this[_0x4cda41(0x292)])!=null&&_0x16673c[_0x4cda41(0x59d)]&&this[_0x4cda41(0x584)][_0x4cda41(0x3cc)](Ee),this['_injector'][_0x4cda41(0x3cc)](exports[_0x4cda41(0x58f)]),this[_0x4cda41(0x584)][_0x4cda41(0x304)](exports[_0x4cda41(0x4bc)])&&this[_0x4cda41(0x584)][_0x4cda41(0x3cc)](exports['DesktopCollaborationStatusDisplayController']);}},bn(exports[_0x2658a4(0x2ef)],_0x2658a4(0x4ba),Tn),exports[_0x2658a4(0x2ef)]=En([a[_0x2658a4(0x4d5)](_[_0x2658a4(0x353)]),ve(0x1,a[_0x2658a4(0x2f2)]),ve(0x2,R[_0x2658a4(0x42a)]),ve(0x3,a['Inject'](a[_0x2658a4(0x1f0)])),ve(0x4,a['IConfigService'])],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=wt,exports[_0x2658a4(0x2a8)]=gt,exports[_0x2658a4(0x3de)]=ut,exports[_0x2658a4(0x484)]=y,exports[_0x2658a4(0x21c)]=Pt,exports[_0x2658a4(0x4e7)]=Ge,exports['HEARTBEAT_INTERVAL_KEY']=dt,exports['HEARTBEAT_TIMEOUT_KEY']=Ve,exports[_0x2658a4(0x43b)]=Fe,exports[_0x2658a4(0x1b1)]=ze,exports['LOCAL_CACHE_INTERVAL_KEY']=ft,exports[_0x2658a4(0x522)]=mt,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=vt,exports[_0x2658a4(0x287)]=Yt,exports[_0x2658a4(0x208)]=ht,exports[_0x2658a4(0x4f7)]=_t,exports[_0x2658a4(0x220)]=j,exports[_0x2658a4(0x2d8)]=Ot,exports[_0x2658a4(0x34a)]=Mt,exports[_0x2658a4(0x403)]=Ct,exports[_0x2658a4(0x51b)]=Et;